File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed
packages/integration-sdk-runtime/src/synchronization Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,11 @@ export interface SynchronizeInput {
54
54
* Using `'api'` will allow data to be uploaded without associating it with a specific integration instance. This is
55
55
* useful when using the SDK to upload data from a script or other non-integration source.
56
56
*/
57
- source : 'integration-managed' | 'integration-external' | 'api' ;
57
+ source :
58
+ | 'integration-managed'
59
+ | 'integration-external'
60
+ | 'api'
61
+ | 'system-internal' ;
58
62
59
63
/**
60
64
* The `scope` value used when creating the synchronization job. This value will be null when the
@@ -136,9 +140,23 @@ function buildJobConfiguration({
136
140
integrationInstanceId,
137
141
integrationJobId,
138
142
} : SynchronizeInput ) {
139
- return source === 'api'
140
- ? { source, scope }
141
- : { source, integrationInstanceId, integrationJobId } ;
143
+ if ( source === 'api' ) {
144
+ return {
145
+ source,
146
+ scope,
147
+ } ;
148
+ }
149
+
150
+ if ( source === 'system-internal' ) {
151
+ return {
152
+ source,
153
+ scope,
154
+ integrationInstanceId,
155
+ integrationJobId,
156
+ } ;
157
+ }
158
+
159
+ return { source, integrationInstanceId, integrationJobId } ;
142
160
}
143
161
144
162
export interface SynchronizationJobContext {
You can’t perform that action at this time.
0 commit comments