@salesforce/lds-adapters-platform-interaction-orchestrator 1.124.1 → 1.124.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. package/dist/es/es2018/platform-interaction-orchestrator.js +1066 -1066
  2. package/dist/{types → es/es2018/types}/src/generated/adapters/adapter-utils.d.ts +66 -66
  3. package/dist/{types → es/es2018/types}/src/generated/adapters/getOrchestrationInstanceCollection.d.ts +27 -27
  4. package/dist/{types → es/es2018/types}/src/generated/artifacts/main.d.ts +1 -1
  5. package/dist/{types → es/es2018/types}/src/generated/artifacts/sfdc.d.ts +3 -3
  6. package/dist/{types → es/es2018/types}/src/generated/resources/getConnectInteractionOrchestrationInstances.d.ts +16 -16
  7. package/dist/{types → es/es2018/types}/src/generated/types/FlowOrchestrationInstanceCollectionRepresentation.d.ts +31 -31
  8. package/dist/{types → es/es2018/types}/src/generated/types/FlowOrchestrationInstanceRepresentation.d.ts +48 -48
  9. package/dist/{types → es/es2018/types}/src/generated/types/FlowOrchestrationStageInstanceRepresentation.d.ts +42 -42
  10. package/dist/{types → es/es2018/types}/src/generated/types/FlowOrchestrationStepInstanceRepresentation.d.ts +45 -45
  11. package/dist/{types → es/es2018/types}/src/generated/types/FlowOrchestrationWorkAssignmentRepresentation.d.ts +26 -26
  12. package/dist/{types → es/es2018/types}/src/generated/types/FlowOrchestrationWorkItemRepresentation.d.ts +53 -53
  13. package/dist/{types → es/es2018/types}/src/generated/types/type-utils.d.ts +39 -39
  14. package/package.json +5 -5
  15. package/sfdc/index.d.ts +1 -1
  16. package/sfdc/index.js +1086 -1086
  17. package/dist/umd/es2018/platform-interaction-orchestrator.js +0 -1101
  18. package/dist/umd/es5/platform-interaction-orchestrator.js +0 -1106
package/sfdc/index.js CHANGED
@@ -16,1110 +16,1110 @@ import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstruct
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
17
  import { serializeStructuredKey, StoreKeyMap } from 'force/luvioEngine';
18
18
 
19
- const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
- const { keys: ObjectKeys, freeze: ObjectFreeze, create: ObjectCreate } = Object;
21
- const { isArray: ArrayIsArray$1 } = Array;
22
- /**
23
- * Validates an adapter config is well-formed.
24
- * @param config The config to validate.
25
- * @param adapter The adapter validation configuration.
26
- * @param oneOf The keys the config must contain at least one of.
27
- * @throws A TypeError if config doesn't satisfy the adapter's config validation.
28
- */
29
- function validateConfig(config, adapter, oneOf) {
30
- const { displayName } = adapter;
31
- const { required, optional, unsupported } = adapter.parameters;
32
- if (config === undefined ||
33
- required.every(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
34
- throw new TypeError(`adapter ${displayName} configuration must specify ${required.sort().join(', ')}`);
35
- }
36
- if (oneOf && oneOf.some(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
37
- throw new TypeError(`adapter ${displayName} configuration must specify one of ${oneOf.sort().join(', ')}`);
38
- }
39
- if (unsupported !== undefined &&
40
- unsupported.some(req => ObjectPrototypeHasOwnProperty.call(config, req))) {
41
- throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
42
- }
43
- const supported = required.concat(optional);
44
- if (ObjectKeys(config).some(key => !supported.includes(key))) {
45
- throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
46
- }
47
- }
48
- function untrustedIsObject(untrusted) {
49
- return typeof untrusted === 'object' && untrusted !== null && ArrayIsArray$1(untrusted) === false;
50
- }
51
- function areRequiredParametersPresent(config, configPropertyNames) {
52
- return configPropertyNames.parameters.required.every(req => req in config);
53
- }
54
- const snapshotRefreshOptions = {
55
- overrides: {
56
- headers: {
57
- 'Cache-Control': 'no-cache',
58
- },
59
- }
60
- };
19
+ const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
+ const { keys: ObjectKeys, freeze: ObjectFreeze, create: ObjectCreate } = Object;
21
+ const { isArray: ArrayIsArray$1 } = Array;
22
+ /**
23
+ * Validates an adapter config is well-formed.
24
+ * @param config The config to validate.
25
+ * @param adapter The adapter validation configuration.
26
+ * @param oneOf The keys the config must contain at least one of.
27
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
28
+ */
29
+ function validateConfig(config, adapter, oneOf) {
30
+ const { displayName } = adapter;
31
+ const { required, optional, unsupported } = adapter.parameters;
32
+ if (config === undefined ||
33
+ required.every(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
34
+ throw new TypeError(`adapter ${displayName} configuration must specify ${required.sort().join(', ')}`);
35
+ }
36
+ if (oneOf && oneOf.some(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
37
+ throw new TypeError(`adapter ${displayName} configuration must specify one of ${oneOf.sort().join(', ')}`);
38
+ }
39
+ if (unsupported !== undefined &&
40
+ unsupported.some(req => ObjectPrototypeHasOwnProperty.call(config, req))) {
41
+ throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
42
+ }
43
+ const supported = required.concat(optional);
44
+ if (ObjectKeys(config).some(key => !supported.includes(key))) {
45
+ throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
46
+ }
47
+ }
48
+ function untrustedIsObject(untrusted) {
49
+ return typeof untrusted === 'object' && untrusted !== null && ArrayIsArray$1(untrusted) === false;
50
+ }
51
+ function areRequiredParametersPresent(config, configPropertyNames) {
52
+ return configPropertyNames.parameters.required.every(req => req in config);
53
+ }
54
+ const snapshotRefreshOptions = {
55
+ overrides: {
56
+ headers: {
57
+ 'Cache-Control': 'no-cache',
58
+ },
59
+ }
60
+ };
61
61
  const keyPrefix = 'InteractionOrchestrator';
62
62
 
63
- const { isArray: ArrayIsArray } = Array;
64
- function equalsArray(a, b, equalsItem) {
65
- const aLength = a.length;
66
- const bLength = b.length;
67
- if (aLength !== bLength) {
68
- return false;
69
- }
70
- for (let i = 0; i < aLength; i++) {
71
- if (equalsItem(a[i], b[i]) === false) {
72
- return false;
73
- }
74
- }
75
- return true;
76
- }
77
- function createLink(ref) {
78
- return {
79
- __ref: serializeStructuredKey(ref),
80
- };
63
+ const { isArray: ArrayIsArray } = Array;
64
+ function equalsArray(a, b, equalsItem) {
65
+ const aLength = a.length;
66
+ const bLength = b.length;
67
+ if (aLength !== bLength) {
68
+ return false;
69
+ }
70
+ for (let i = 0; i < aLength; i++) {
71
+ if (equalsItem(a[i], b[i]) === false) {
72
+ return false;
73
+ }
74
+ }
75
+ return true;
76
+ }
77
+ function createLink(ref) {
78
+ return {
79
+ __ref: serializeStructuredKey(ref),
80
+ };
81
81
  }
82
82
 
83
- const VERSION$4 = "ab05f41c9070286098c01e14dc5587f6";
84
- function validate$4(obj, path = 'FlowOrchestrationWorkItemRepresentation') {
85
- const v_error = (() => {
86
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
87
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
88
- }
89
- const obj_assigneeId = obj.assigneeId;
90
- const path_assigneeId = path + '.assigneeId';
91
- if (typeof obj_assigneeId !== 'string') {
92
- return new TypeError('Expected "string" but received "' + typeof obj_assigneeId + '" (at "' + path_assigneeId + '")');
93
- }
94
- const obj_description = obj.description;
95
- const path_description = path + '.description';
96
- let obj_description_union0 = null;
97
- const obj_description_union0_error = (() => {
98
- if (typeof obj_description !== 'string') {
99
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
100
- }
101
- })();
102
- if (obj_description_union0_error != null) {
103
- obj_description_union0 = obj_description_union0_error.message;
104
- }
105
- let obj_description_union1 = null;
106
- const obj_description_union1_error = (() => {
107
- if (obj_description !== null) {
108
- return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
109
- }
110
- })();
111
- if (obj_description_union1_error != null) {
112
- obj_description_union1 = obj_description_union1_error.message;
113
- }
114
- if (obj_description_union0 && obj_description_union1) {
115
- let message = 'Object doesn\'t match union (at "' + path_description + '")';
116
- message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
117
- message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
118
- return new TypeError(message);
119
- }
120
- const obj_id = obj.id;
121
- const path_id = path + '.id';
122
- if (typeof obj_id !== 'string') {
123
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
124
- }
125
- const obj_label = obj.label;
126
- const path_label = path + '.label';
127
- let obj_label_union0 = null;
128
- const obj_label_union0_error = (() => {
129
- if (typeof obj_label !== 'string') {
130
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
131
- }
132
- })();
133
- if (obj_label_union0_error != null) {
134
- obj_label_union0 = obj_label_union0_error.message;
135
- }
136
- let obj_label_union1 = null;
137
- const obj_label_union1_error = (() => {
138
- if (obj_label !== null) {
139
- return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
140
- }
141
- })();
142
- if (obj_label_union1_error != null) {
143
- obj_label_union1 = obj_label_union1_error.message;
144
- }
145
- if (obj_label_union0 && obj_label_union1) {
146
- let message = 'Object doesn\'t match union (at "' + path_label + '")';
147
- message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
148
- message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
149
- return new TypeError(message);
150
- }
151
- const obj_relatedRecordId = obj.relatedRecordId;
152
- const path_relatedRecordId = path + '.relatedRecordId';
153
- let obj_relatedRecordId_union0 = null;
154
- const obj_relatedRecordId_union0_error = (() => {
155
- if (typeof obj_relatedRecordId !== 'string') {
156
- return new TypeError('Expected "string" but received "' + typeof obj_relatedRecordId + '" (at "' + path_relatedRecordId + '")');
157
- }
158
- })();
159
- if (obj_relatedRecordId_union0_error != null) {
160
- obj_relatedRecordId_union0 = obj_relatedRecordId_union0_error.message;
161
- }
162
- let obj_relatedRecordId_union1 = null;
163
- const obj_relatedRecordId_union1_error = (() => {
164
- if (obj_relatedRecordId !== null) {
165
- return new TypeError('Expected "null" but received "' + typeof obj_relatedRecordId + '" (at "' + path_relatedRecordId + '")');
166
- }
167
- })();
168
- if (obj_relatedRecordId_union1_error != null) {
169
- obj_relatedRecordId_union1 = obj_relatedRecordId_union1_error.message;
170
- }
171
- if (obj_relatedRecordId_union0 && obj_relatedRecordId_union1) {
172
- let message = 'Object doesn\'t match union (at "' + path_relatedRecordId + '")';
173
- message += '\n' + obj_relatedRecordId_union0.split('\n').map((line) => '\t' + line).join('\n');
174
- message += '\n' + obj_relatedRecordId_union1.split('\n').map((line) => '\t' + line).join('\n');
175
- return new TypeError(message);
176
- }
177
- const obj_screenFlowDeveloperName = obj.screenFlowDeveloperName;
178
- const path_screenFlowDeveloperName = path + '.screenFlowDeveloperName';
179
- if (typeof obj_screenFlowDeveloperName !== 'string') {
180
- return new TypeError('Expected "string" but received "' + typeof obj_screenFlowDeveloperName + '" (at "' + path_screenFlowDeveloperName + '")');
181
- }
182
- const obj_screenFlowId = obj.screenFlowId;
183
- const path_screenFlowId = path + '.screenFlowId';
184
- if (typeof obj_screenFlowId !== 'string') {
185
- return new TypeError('Expected "string" but received "' + typeof obj_screenFlowId + '" (at "' + path_screenFlowId + '")');
186
- }
187
- const obj_screenFlowInputs = obj.screenFlowInputs;
188
- const path_screenFlowInputs = path + '.screenFlowInputs';
189
- if (typeof obj_screenFlowInputs !== 'string') {
190
- return new TypeError('Expected "string" but received "' + typeof obj_screenFlowInputs + '" (at "' + path_screenFlowInputs + '")');
191
- }
192
- const obj_status = obj.status;
193
- const path_status = path + '.status';
194
- if (typeof obj_status !== 'string') {
195
- return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
196
- }
197
- })();
198
- return v_error === undefined ? null : v_error;
199
- }
200
- const select$5 = function FlowOrchestrationWorkItemRepresentationSelect() {
201
- return {
202
- kind: 'Fragment',
203
- version: VERSION$4,
204
- private: [],
205
- selections: [
206
- {
207
- name: 'assigneeId',
208
- kind: 'Scalar'
209
- },
210
- {
211
- name: 'description',
212
- kind: 'Scalar'
213
- },
214
- {
215
- name: 'id',
216
- kind: 'Scalar'
217
- },
218
- {
219
- name: 'label',
220
- kind: 'Scalar'
221
- },
222
- {
223
- name: 'relatedRecordId',
224
- kind: 'Scalar'
225
- },
226
- {
227
- name: 'screenFlowDeveloperName',
228
- kind: 'Scalar'
229
- },
230
- {
231
- name: 'screenFlowId',
232
- kind: 'Scalar'
233
- },
234
- {
235
- name: 'screenFlowInputs',
236
- kind: 'Scalar'
237
- },
238
- {
239
- name: 'status',
240
- kind: 'Scalar'
241
- }
242
- ]
243
- };
244
- };
245
- function equals$4(existing, incoming) {
246
- const existing_assigneeId = existing.assigneeId;
247
- const incoming_assigneeId = incoming.assigneeId;
248
- if (!(existing_assigneeId === incoming_assigneeId)) {
249
- return false;
250
- }
251
- const existing_id = existing.id;
252
- const incoming_id = incoming.id;
253
- if (!(existing_id === incoming_id)) {
254
- return false;
255
- }
256
- const existing_screenFlowDeveloperName = existing.screenFlowDeveloperName;
257
- const incoming_screenFlowDeveloperName = incoming.screenFlowDeveloperName;
258
- if (!(existing_screenFlowDeveloperName === incoming_screenFlowDeveloperName)) {
259
- return false;
260
- }
261
- const existing_screenFlowId = existing.screenFlowId;
262
- const incoming_screenFlowId = incoming.screenFlowId;
263
- if (!(existing_screenFlowId === incoming_screenFlowId)) {
264
- return false;
265
- }
266
- const existing_screenFlowInputs = existing.screenFlowInputs;
267
- const incoming_screenFlowInputs = incoming.screenFlowInputs;
268
- if (!(existing_screenFlowInputs === incoming_screenFlowInputs)) {
269
- return false;
270
- }
271
- const existing_status = existing.status;
272
- const incoming_status = incoming.status;
273
- if (!(existing_status === incoming_status)) {
274
- return false;
275
- }
276
- const existing_description = existing.description;
277
- const incoming_description = incoming.description;
278
- if (!(existing_description === incoming_description)) {
279
- return false;
280
- }
281
- const existing_label = existing.label;
282
- const incoming_label = incoming.label;
283
- if (!(existing_label === incoming_label)) {
284
- return false;
285
- }
286
- const existing_relatedRecordId = existing.relatedRecordId;
287
- const incoming_relatedRecordId = incoming.relatedRecordId;
288
- if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
289
- return false;
290
- }
291
- return true;
83
+ const VERSION$4 = "ab05f41c9070286098c01e14dc5587f6";
84
+ function validate$4(obj, path = 'FlowOrchestrationWorkItemRepresentation') {
85
+ const v_error = (() => {
86
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
87
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
88
+ }
89
+ const obj_assigneeId = obj.assigneeId;
90
+ const path_assigneeId = path + '.assigneeId';
91
+ if (typeof obj_assigneeId !== 'string') {
92
+ return new TypeError('Expected "string" but received "' + typeof obj_assigneeId + '" (at "' + path_assigneeId + '")');
93
+ }
94
+ const obj_description = obj.description;
95
+ const path_description = path + '.description';
96
+ let obj_description_union0 = null;
97
+ const obj_description_union0_error = (() => {
98
+ if (typeof obj_description !== 'string') {
99
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
100
+ }
101
+ })();
102
+ if (obj_description_union0_error != null) {
103
+ obj_description_union0 = obj_description_union0_error.message;
104
+ }
105
+ let obj_description_union1 = null;
106
+ const obj_description_union1_error = (() => {
107
+ if (obj_description !== null) {
108
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
109
+ }
110
+ })();
111
+ if (obj_description_union1_error != null) {
112
+ obj_description_union1 = obj_description_union1_error.message;
113
+ }
114
+ if (obj_description_union0 && obj_description_union1) {
115
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
116
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
117
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
118
+ return new TypeError(message);
119
+ }
120
+ const obj_id = obj.id;
121
+ const path_id = path + '.id';
122
+ if (typeof obj_id !== 'string') {
123
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
124
+ }
125
+ const obj_label = obj.label;
126
+ const path_label = path + '.label';
127
+ let obj_label_union0 = null;
128
+ const obj_label_union0_error = (() => {
129
+ if (typeof obj_label !== 'string') {
130
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
131
+ }
132
+ })();
133
+ if (obj_label_union0_error != null) {
134
+ obj_label_union0 = obj_label_union0_error.message;
135
+ }
136
+ let obj_label_union1 = null;
137
+ const obj_label_union1_error = (() => {
138
+ if (obj_label !== null) {
139
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
140
+ }
141
+ })();
142
+ if (obj_label_union1_error != null) {
143
+ obj_label_union1 = obj_label_union1_error.message;
144
+ }
145
+ if (obj_label_union0 && obj_label_union1) {
146
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
147
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
148
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
149
+ return new TypeError(message);
150
+ }
151
+ const obj_relatedRecordId = obj.relatedRecordId;
152
+ const path_relatedRecordId = path + '.relatedRecordId';
153
+ let obj_relatedRecordId_union0 = null;
154
+ const obj_relatedRecordId_union0_error = (() => {
155
+ if (typeof obj_relatedRecordId !== 'string') {
156
+ return new TypeError('Expected "string" but received "' + typeof obj_relatedRecordId + '" (at "' + path_relatedRecordId + '")');
157
+ }
158
+ })();
159
+ if (obj_relatedRecordId_union0_error != null) {
160
+ obj_relatedRecordId_union0 = obj_relatedRecordId_union0_error.message;
161
+ }
162
+ let obj_relatedRecordId_union1 = null;
163
+ const obj_relatedRecordId_union1_error = (() => {
164
+ if (obj_relatedRecordId !== null) {
165
+ return new TypeError('Expected "null" but received "' + typeof obj_relatedRecordId + '" (at "' + path_relatedRecordId + '")');
166
+ }
167
+ })();
168
+ if (obj_relatedRecordId_union1_error != null) {
169
+ obj_relatedRecordId_union1 = obj_relatedRecordId_union1_error.message;
170
+ }
171
+ if (obj_relatedRecordId_union0 && obj_relatedRecordId_union1) {
172
+ let message = 'Object doesn\'t match union (at "' + path_relatedRecordId + '")';
173
+ message += '\n' + obj_relatedRecordId_union0.split('\n').map((line) => '\t' + line).join('\n');
174
+ message += '\n' + obj_relatedRecordId_union1.split('\n').map((line) => '\t' + line).join('\n');
175
+ return new TypeError(message);
176
+ }
177
+ const obj_screenFlowDeveloperName = obj.screenFlowDeveloperName;
178
+ const path_screenFlowDeveloperName = path + '.screenFlowDeveloperName';
179
+ if (typeof obj_screenFlowDeveloperName !== 'string') {
180
+ return new TypeError('Expected "string" but received "' + typeof obj_screenFlowDeveloperName + '" (at "' + path_screenFlowDeveloperName + '")');
181
+ }
182
+ const obj_screenFlowId = obj.screenFlowId;
183
+ const path_screenFlowId = path + '.screenFlowId';
184
+ if (typeof obj_screenFlowId !== 'string') {
185
+ return new TypeError('Expected "string" but received "' + typeof obj_screenFlowId + '" (at "' + path_screenFlowId + '")');
186
+ }
187
+ const obj_screenFlowInputs = obj.screenFlowInputs;
188
+ const path_screenFlowInputs = path + '.screenFlowInputs';
189
+ if (typeof obj_screenFlowInputs !== 'string') {
190
+ return new TypeError('Expected "string" but received "' + typeof obj_screenFlowInputs + '" (at "' + path_screenFlowInputs + '")');
191
+ }
192
+ const obj_status = obj.status;
193
+ const path_status = path + '.status';
194
+ if (typeof obj_status !== 'string') {
195
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
196
+ }
197
+ })();
198
+ return v_error === undefined ? null : v_error;
199
+ }
200
+ const select$5 = function FlowOrchestrationWorkItemRepresentationSelect() {
201
+ return {
202
+ kind: 'Fragment',
203
+ version: VERSION$4,
204
+ private: [],
205
+ selections: [
206
+ {
207
+ name: 'assigneeId',
208
+ kind: 'Scalar'
209
+ },
210
+ {
211
+ name: 'description',
212
+ kind: 'Scalar'
213
+ },
214
+ {
215
+ name: 'id',
216
+ kind: 'Scalar'
217
+ },
218
+ {
219
+ name: 'label',
220
+ kind: 'Scalar'
221
+ },
222
+ {
223
+ name: 'relatedRecordId',
224
+ kind: 'Scalar'
225
+ },
226
+ {
227
+ name: 'screenFlowDeveloperName',
228
+ kind: 'Scalar'
229
+ },
230
+ {
231
+ name: 'screenFlowId',
232
+ kind: 'Scalar'
233
+ },
234
+ {
235
+ name: 'screenFlowInputs',
236
+ kind: 'Scalar'
237
+ },
238
+ {
239
+ name: 'status',
240
+ kind: 'Scalar'
241
+ }
242
+ ]
243
+ };
244
+ };
245
+ function equals$4(existing, incoming) {
246
+ const existing_assigneeId = existing.assigneeId;
247
+ const incoming_assigneeId = incoming.assigneeId;
248
+ if (!(existing_assigneeId === incoming_assigneeId)) {
249
+ return false;
250
+ }
251
+ const existing_id = existing.id;
252
+ const incoming_id = incoming.id;
253
+ if (!(existing_id === incoming_id)) {
254
+ return false;
255
+ }
256
+ const existing_screenFlowDeveloperName = existing.screenFlowDeveloperName;
257
+ const incoming_screenFlowDeveloperName = incoming.screenFlowDeveloperName;
258
+ if (!(existing_screenFlowDeveloperName === incoming_screenFlowDeveloperName)) {
259
+ return false;
260
+ }
261
+ const existing_screenFlowId = existing.screenFlowId;
262
+ const incoming_screenFlowId = incoming.screenFlowId;
263
+ if (!(existing_screenFlowId === incoming_screenFlowId)) {
264
+ return false;
265
+ }
266
+ const existing_screenFlowInputs = existing.screenFlowInputs;
267
+ const incoming_screenFlowInputs = incoming.screenFlowInputs;
268
+ if (!(existing_screenFlowInputs === incoming_screenFlowInputs)) {
269
+ return false;
270
+ }
271
+ const existing_status = existing.status;
272
+ const incoming_status = incoming.status;
273
+ if (!(existing_status === incoming_status)) {
274
+ return false;
275
+ }
276
+ const existing_description = existing.description;
277
+ const incoming_description = incoming.description;
278
+ if (!(existing_description === incoming_description)) {
279
+ return false;
280
+ }
281
+ const existing_label = existing.label;
282
+ const incoming_label = incoming.label;
283
+ if (!(existing_label === incoming_label)) {
284
+ return false;
285
+ }
286
+ const existing_relatedRecordId = existing.relatedRecordId;
287
+ const incoming_relatedRecordId = incoming.relatedRecordId;
288
+ if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
289
+ return false;
290
+ }
291
+ return true;
292
292
  }
293
293
 
294
- const VERSION$3 = "9817b563e81370d761a0d7f4b18410e4";
295
- function validate$3(obj, path = 'FlowOrchestrationStepInstanceRepresentation') {
296
- const v_error = (() => {
297
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
298
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
299
- }
300
- const obj_id = obj.id;
301
- const path_id = path + '.id';
302
- if (typeof obj_id !== 'string') {
303
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
304
- }
305
- const obj_label = obj.label;
306
- const path_label = path + '.label';
307
- let obj_label_union0 = null;
308
- const obj_label_union0_error = (() => {
309
- if (typeof obj_label !== 'string') {
310
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
311
- }
312
- })();
313
- if (obj_label_union0_error != null) {
314
- obj_label_union0 = obj_label_union0_error.message;
315
- }
316
- let obj_label_union1 = null;
317
- const obj_label_union1_error = (() => {
318
- if (obj_label !== null) {
319
- return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
320
- }
321
- })();
322
- if (obj_label_union1_error != null) {
323
- obj_label_union1 = obj_label_union1_error.message;
324
- }
325
- if (obj_label_union0 && obj_label_union1) {
326
- let message = 'Object doesn\'t match union (at "' + path_label + '")';
327
- message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
328
- message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
329
- return new TypeError(message);
330
- }
331
- const obj_name = obj.name;
332
- const path_name = path + '.name';
333
- let obj_name_union0 = null;
334
- const obj_name_union0_error = (() => {
335
- if (typeof obj_name !== 'string') {
336
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
337
- }
338
- })();
339
- if (obj_name_union0_error != null) {
340
- obj_name_union0 = obj_name_union0_error.message;
341
- }
342
- let obj_name_union1 = null;
343
- const obj_name_union1_error = (() => {
344
- if (obj_name !== null) {
345
- return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
346
- }
347
- })();
348
- if (obj_name_union1_error != null) {
349
- obj_name_union1 = obj_name_union1_error.message;
350
- }
351
- if (obj_name_union0 && obj_name_union1) {
352
- let message = 'Object doesn\'t match union (at "' + path_name + '")';
353
- message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
354
- message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
355
- return new TypeError(message);
356
- }
357
- const obj_status = obj.status;
358
- const path_status = path + '.status';
359
- if (typeof obj_status !== 'string') {
360
- return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
361
- }
362
- const obj_stepType = obj.stepType;
363
- const path_stepType = path + '.stepType';
364
- if (typeof obj_stepType !== 'string') {
365
- return new TypeError('Expected "string" but received "' + typeof obj_stepType + '" (at "' + path_stepType + '")');
366
- }
367
- const obj_workItems = obj.workItems;
368
- const path_workItems = path + '.workItems';
369
- if (!ArrayIsArray(obj_workItems)) {
370
- return new TypeError('Expected "array" but received "' + typeof obj_workItems + '" (at "' + path_workItems + '")');
371
- }
372
- for (let i = 0; i < obj_workItems.length; i++) {
373
- const obj_workItems_item = obj_workItems[i];
374
- const path_workItems_item = path_workItems + '[' + i + ']';
375
- const referencepath_workItems_itemValidationError = validate$4(obj_workItems_item, path_workItems_item);
376
- if (referencepath_workItems_itemValidationError !== null) {
377
- let message = 'Object doesn\'t match FlowOrchestrationWorkItemRepresentation (at "' + path_workItems_item + '")\n';
378
- message += referencepath_workItems_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
379
- return new TypeError(message);
380
- }
381
- }
382
- })();
383
- return v_error === undefined ? null : v_error;
384
- }
385
- const select$4 = function FlowOrchestrationStepInstanceRepresentationSelect() {
386
- const { selections: FlowOrchestrationWorkItemRepresentation__selections, opaque: FlowOrchestrationWorkItemRepresentation__opaque, } = select$5();
387
- return {
388
- kind: 'Fragment',
389
- version: VERSION$3,
390
- private: [],
391
- selections: [
392
- {
393
- name: 'id',
394
- kind: 'Scalar'
395
- },
396
- {
397
- name: 'label',
398
- kind: 'Scalar'
399
- },
400
- {
401
- name: 'name',
402
- kind: 'Scalar'
403
- },
404
- {
405
- name: 'status',
406
- kind: 'Scalar'
407
- },
408
- {
409
- name: 'stepType',
410
- kind: 'Scalar'
411
- },
412
- {
413
- name: 'workItems',
414
- kind: 'Object',
415
- plural: true,
416
- selections: FlowOrchestrationWorkItemRepresentation__selections
417
- }
418
- ]
419
- };
420
- };
421
- function equals$3(existing, incoming) {
422
- const existing_id = existing.id;
423
- const incoming_id = incoming.id;
424
- if (!(existing_id === incoming_id)) {
425
- return false;
426
- }
427
- const existing_status = existing.status;
428
- const incoming_status = incoming.status;
429
- if (!(existing_status === incoming_status)) {
430
- return false;
431
- }
432
- const existing_stepType = existing.stepType;
433
- const incoming_stepType = incoming.stepType;
434
- if (!(existing_stepType === incoming_stepType)) {
435
- return false;
436
- }
437
- const existing_label = existing.label;
438
- const incoming_label = incoming.label;
439
- if (!(existing_label === incoming_label)) {
440
- return false;
441
- }
442
- const existing_name = existing.name;
443
- const incoming_name = incoming.name;
444
- if (!(existing_name === incoming_name)) {
445
- return false;
446
- }
447
- const existing_workItems = existing.workItems;
448
- const incoming_workItems = incoming.workItems;
449
- const equals_workItems_items = equalsArray(existing_workItems, incoming_workItems, (existing_workItems_item, incoming_workItems_item) => {
450
- if (!(equals$4(existing_workItems_item, incoming_workItems_item))) {
451
- return false;
452
- }
453
- });
454
- if (equals_workItems_items === false) {
455
- return false;
456
- }
457
- return true;
294
+ const VERSION$3 = "9817b563e81370d761a0d7f4b18410e4";
295
+ function validate$3(obj, path = 'FlowOrchestrationStepInstanceRepresentation') {
296
+ const v_error = (() => {
297
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
298
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
299
+ }
300
+ const obj_id = obj.id;
301
+ const path_id = path + '.id';
302
+ if (typeof obj_id !== 'string') {
303
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
304
+ }
305
+ const obj_label = obj.label;
306
+ const path_label = path + '.label';
307
+ let obj_label_union0 = null;
308
+ const obj_label_union0_error = (() => {
309
+ if (typeof obj_label !== 'string') {
310
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
311
+ }
312
+ })();
313
+ if (obj_label_union0_error != null) {
314
+ obj_label_union0 = obj_label_union0_error.message;
315
+ }
316
+ let obj_label_union1 = null;
317
+ const obj_label_union1_error = (() => {
318
+ if (obj_label !== null) {
319
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
320
+ }
321
+ })();
322
+ if (obj_label_union1_error != null) {
323
+ obj_label_union1 = obj_label_union1_error.message;
324
+ }
325
+ if (obj_label_union0 && obj_label_union1) {
326
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
327
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
328
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
329
+ return new TypeError(message);
330
+ }
331
+ const obj_name = obj.name;
332
+ const path_name = path + '.name';
333
+ let obj_name_union0 = null;
334
+ const obj_name_union0_error = (() => {
335
+ if (typeof obj_name !== 'string') {
336
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
337
+ }
338
+ })();
339
+ if (obj_name_union0_error != null) {
340
+ obj_name_union0 = obj_name_union0_error.message;
341
+ }
342
+ let obj_name_union1 = null;
343
+ const obj_name_union1_error = (() => {
344
+ if (obj_name !== null) {
345
+ return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
346
+ }
347
+ })();
348
+ if (obj_name_union1_error != null) {
349
+ obj_name_union1 = obj_name_union1_error.message;
350
+ }
351
+ if (obj_name_union0 && obj_name_union1) {
352
+ let message = 'Object doesn\'t match union (at "' + path_name + '")';
353
+ message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
354
+ message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
355
+ return new TypeError(message);
356
+ }
357
+ const obj_status = obj.status;
358
+ const path_status = path + '.status';
359
+ if (typeof obj_status !== 'string') {
360
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
361
+ }
362
+ const obj_stepType = obj.stepType;
363
+ const path_stepType = path + '.stepType';
364
+ if (typeof obj_stepType !== 'string') {
365
+ return new TypeError('Expected "string" but received "' + typeof obj_stepType + '" (at "' + path_stepType + '")');
366
+ }
367
+ const obj_workItems = obj.workItems;
368
+ const path_workItems = path + '.workItems';
369
+ if (!ArrayIsArray(obj_workItems)) {
370
+ return new TypeError('Expected "array" but received "' + typeof obj_workItems + '" (at "' + path_workItems + '")');
371
+ }
372
+ for (let i = 0; i < obj_workItems.length; i++) {
373
+ const obj_workItems_item = obj_workItems[i];
374
+ const path_workItems_item = path_workItems + '[' + i + ']';
375
+ const referencepath_workItems_itemValidationError = validate$4(obj_workItems_item, path_workItems_item);
376
+ if (referencepath_workItems_itemValidationError !== null) {
377
+ let message = 'Object doesn\'t match FlowOrchestrationWorkItemRepresentation (at "' + path_workItems_item + '")\n';
378
+ message += referencepath_workItems_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
379
+ return new TypeError(message);
380
+ }
381
+ }
382
+ })();
383
+ return v_error === undefined ? null : v_error;
384
+ }
385
+ const select$4 = function FlowOrchestrationStepInstanceRepresentationSelect() {
386
+ const { selections: FlowOrchestrationWorkItemRepresentation__selections, opaque: FlowOrchestrationWorkItemRepresentation__opaque, } = select$5();
387
+ return {
388
+ kind: 'Fragment',
389
+ version: VERSION$3,
390
+ private: [],
391
+ selections: [
392
+ {
393
+ name: 'id',
394
+ kind: 'Scalar'
395
+ },
396
+ {
397
+ name: 'label',
398
+ kind: 'Scalar'
399
+ },
400
+ {
401
+ name: 'name',
402
+ kind: 'Scalar'
403
+ },
404
+ {
405
+ name: 'status',
406
+ kind: 'Scalar'
407
+ },
408
+ {
409
+ name: 'stepType',
410
+ kind: 'Scalar'
411
+ },
412
+ {
413
+ name: 'workItems',
414
+ kind: 'Object',
415
+ plural: true,
416
+ selections: FlowOrchestrationWorkItemRepresentation__selections
417
+ }
418
+ ]
419
+ };
420
+ };
421
+ function equals$3(existing, incoming) {
422
+ const existing_id = existing.id;
423
+ const incoming_id = incoming.id;
424
+ if (!(existing_id === incoming_id)) {
425
+ return false;
426
+ }
427
+ const existing_status = existing.status;
428
+ const incoming_status = incoming.status;
429
+ if (!(existing_status === incoming_status)) {
430
+ return false;
431
+ }
432
+ const existing_stepType = existing.stepType;
433
+ const incoming_stepType = incoming.stepType;
434
+ if (!(existing_stepType === incoming_stepType)) {
435
+ return false;
436
+ }
437
+ const existing_label = existing.label;
438
+ const incoming_label = incoming.label;
439
+ if (!(existing_label === incoming_label)) {
440
+ return false;
441
+ }
442
+ const existing_name = existing.name;
443
+ const incoming_name = incoming.name;
444
+ if (!(existing_name === incoming_name)) {
445
+ return false;
446
+ }
447
+ const existing_workItems = existing.workItems;
448
+ const incoming_workItems = incoming.workItems;
449
+ const equals_workItems_items = equalsArray(existing_workItems, incoming_workItems, (existing_workItems_item, incoming_workItems_item) => {
450
+ if (!(equals$4(existing_workItems_item, incoming_workItems_item))) {
451
+ return false;
452
+ }
453
+ });
454
+ if (equals_workItems_items === false) {
455
+ return false;
456
+ }
457
+ return true;
458
458
  }
459
459
 
460
- const VERSION$2 = "4d586ae3293b53e776853c9b4e1ad36b";
461
- function validate$2(obj, path = 'FlowOrchestrationStageInstanceRepresentation') {
462
- const v_error = (() => {
463
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
464
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
465
- }
466
- const obj_id = obj.id;
467
- const path_id = path + '.id';
468
- if (typeof obj_id !== 'string') {
469
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
470
- }
471
- const obj_label = obj.label;
472
- const path_label = path + '.label';
473
- let obj_label_union0 = null;
474
- const obj_label_union0_error = (() => {
475
- if (typeof obj_label !== 'string') {
476
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
477
- }
478
- })();
479
- if (obj_label_union0_error != null) {
480
- obj_label_union0 = obj_label_union0_error.message;
481
- }
482
- let obj_label_union1 = null;
483
- const obj_label_union1_error = (() => {
484
- if (obj_label !== null) {
485
- return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
486
- }
487
- })();
488
- if (obj_label_union1_error != null) {
489
- obj_label_union1 = obj_label_union1_error.message;
490
- }
491
- if (obj_label_union0 && obj_label_union1) {
492
- let message = 'Object doesn\'t match union (at "' + path_label + '")';
493
- message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
494
- message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
495
- return new TypeError(message);
496
- }
497
- const obj_name = obj.name;
498
- const path_name = path + '.name';
499
- let obj_name_union0 = null;
500
- const obj_name_union0_error = (() => {
501
- if (typeof obj_name !== 'string') {
502
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
503
- }
504
- })();
505
- if (obj_name_union0_error != null) {
506
- obj_name_union0 = obj_name_union0_error.message;
507
- }
508
- let obj_name_union1 = null;
509
- const obj_name_union1_error = (() => {
510
- if (obj_name !== null) {
511
- return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
512
- }
513
- })();
514
- if (obj_name_union1_error != null) {
515
- obj_name_union1 = obj_name_union1_error.message;
516
- }
517
- if (obj_name_union0 && obj_name_union1) {
518
- let message = 'Object doesn\'t match union (at "' + path_name + '")';
519
- message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
520
- message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
521
- return new TypeError(message);
522
- }
523
- const obj_status = obj.status;
524
- const path_status = path + '.status';
525
- if (typeof obj_status !== 'string') {
526
- return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
527
- }
528
- const obj_stepInstances = obj.stepInstances;
529
- const path_stepInstances = path + '.stepInstances';
530
- if (!ArrayIsArray(obj_stepInstances)) {
531
- return new TypeError('Expected "array" but received "' + typeof obj_stepInstances + '" (at "' + path_stepInstances + '")');
532
- }
533
- for (let i = 0; i < obj_stepInstances.length; i++) {
534
- const obj_stepInstances_item = obj_stepInstances[i];
535
- const path_stepInstances_item = path_stepInstances + '[' + i + ']';
536
- const referencepath_stepInstances_itemValidationError = validate$3(obj_stepInstances_item, path_stepInstances_item);
537
- if (referencepath_stepInstances_itemValidationError !== null) {
538
- let message = 'Object doesn\'t match FlowOrchestrationStepInstanceRepresentation (at "' + path_stepInstances_item + '")\n';
539
- message += referencepath_stepInstances_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
540
- return new TypeError(message);
541
- }
542
- }
543
- })();
544
- return v_error === undefined ? null : v_error;
545
- }
546
- const select$3 = function FlowOrchestrationStageInstanceRepresentationSelect() {
547
- const { selections: FlowOrchestrationStepInstanceRepresentation__selections, opaque: FlowOrchestrationStepInstanceRepresentation__opaque, } = select$4();
548
- return {
549
- kind: 'Fragment',
550
- version: VERSION$2,
551
- private: [],
552
- selections: [
553
- {
554
- name: 'id',
555
- kind: 'Scalar'
556
- },
557
- {
558
- name: 'label',
559
- kind: 'Scalar'
560
- },
561
- {
562
- name: 'name',
563
- kind: 'Scalar'
564
- },
565
- {
566
- name: 'status',
567
- kind: 'Scalar'
568
- },
569
- {
570
- name: 'stepInstances',
571
- kind: 'Object',
572
- plural: true,
573
- selections: FlowOrchestrationStepInstanceRepresentation__selections
574
- }
575
- ]
576
- };
577
- };
578
- function equals$2(existing, incoming) {
579
- const existing_id = existing.id;
580
- const incoming_id = incoming.id;
581
- if (!(existing_id === incoming_id)) {
582
- return false;
583
- }
584
- const existing_status = existing.status;
585
- const incoming_status = incoming.status;
586
- if (!(existing_status === incoming_status)) {
587
- return false;
588
- }
589
- const existing_label = existing.label;
590
- const incoming_label = incoming.label;
591
- if (!(existing_label === incoming_label)) {
592
- return false;
593
- }
594
- const existing_name = existing.name;
595
- const incoming_name = incoming.name;
596
- if (!(existing_name === incoming_name)) {
597
- return false;
598
- }
599
- const existing_stepInstances = existing.stepInstances;
600
- const incoming_stepInstances = incoming.stepInstances;
601
- const equals_stepInstances_items = equalsArray(existing_stepInstances, incoming_stepInstances, (existing_stepInstances_item, incoming_stepInstances_item) => {
602
- if (!(equals$3(existing_stepInstances_item, incoming_stepInstances_item))) {
603
- return false;
604
- }
605
- });
606
- if (equals_stepInstances_items === false) {
607
- return false;
608
- }
609
- return true;
460
+ const VERSION$2 = "4d586ae3293b53e776853c9b4e1ad36b";
461
+ function validate$2(obj, path = 'FlowOrchestrationStageInstanceRepresentation') {
462
+ const v_error = (() => {
463
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
464
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
465
+ }
466
+ const obj_id = obj.id;
467
+ const path_id = path + '.id';
468
+ if (typeof obj_id !== 'string') {
469
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
470
+ }
471
+ const obj_label = obj.label;
472
+ const path_label = path + '.label';
473
+ let obj_label_union0 = null;
474
+ const obj_label_union0_error = (() => {
475
+ if (typeof obj_label !== 'string') {
476
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
477
+ }
478
+ })();
479
+ if (obj_label_union0_error != null) {
480
+ obj_label_union0 = obj_label_union0_error.message;
481
+ }
482
+ let obj_label_union1 = null;
483
+ const obj_label_union1_error = (() => {
484
+ if (obj_label !== null) {
485
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
486
+ }
487
+ })();
488
+ if (obj_label_union1_error != null) {
489
+ obj_label_union1 = obj_label_union1_error.message;
490
+ }
491
+ if (obj_label_union0 && obj_label_union1) {
492
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
493
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
494
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
495
+ return new TypeError(message);
496
+ }
497
+ const obj_name = obj.name;
498
+ const path_name = path + '.name';
499
+ let obj_name_union0 = null;
500
+ const obj_name_union0_error = (() => {
501
+ if (typeof obj_name !== 'string') {
502
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
503
+ }
504
+ })();
505
+ if (obj_name_union0_error != null) {
506
+ obj_name_union0 = obj_name_union0_error.message;
507
+ }
508
+ let obj_name_union1 = null;
509
+ const obj_name_union1_error = (() => {
510
+ if (obj_name !== null) {
511
+ return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
512
+ }
513
+ })();
514
+ if (obj_name_union1_error != null) {
515
+ obj_name_union1 = obj_name_union1_error.message;
516
+ }
517
+ if (obj_name_union0 && obj_name_union1) {
518
+ let message = 'Object doesn\'t match union (at "' + path_name + '")';
519
+ message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
520
+ message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
521
+ return new TypeError(message);
522
+ }
523
+ const obj_status = obj.status;
524
+ const path_status = path + '.status';
525
+ if (typeof obj_status !== 'string') {
526
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
527
+ }
528
+ const obj_stepInstances = obj.stepInstances;
529
+ const path_stepInstances = path + '.stepInstances';
530
+ if (!ArrayIsArray(obj_stepInstances)) {
531
+ return new TypeError('Expected "array" but received "' + typeof obj_stepInstances + '" (at "' + path_stepInstances + '")');
532
+ }
533
+ for (let i = 0; i < obj_stepInstances.length; i++) {
534
+ const obj_stepInstances_item = obj_stepInstances[i];
535
+ const path_stepInstances_item = path_stepInstances + '[' + i + ']';
536
+ const referencepath_stepInstances_itemValidationError = validate$3(obj_stepInstances_item, path_stepInstances_item);
537
+ if (referencepath_stepInstances_itemValidationError !== null) {
538
+ let message = 'Object doesn\'t match FlowOrchestrationStepInstanceRepresentation (at "' + path_stepInstances_item + '")\n';
539
+ message += referencepath_stepInstances_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
540
+ return new TypeError(message);
541
+ }
542
+ }
543
+ })();
544
+ return v_error === undefined ? null : v_error;
545
+ }
546
+ const select$3 = function FlowOrchestrationStageInstanceRepresentationSelect() {
547
+ const { selections: FlowOrchestrationStepInstanceRepresentation__selections, opaque: FlowOrchestrationStepInstanceRepresentation__opaque, } = select$4();
548
+ return {
549
+ kind: 'Fragment',
550
+ version: VERSION$2,
551
+ private: [],
552
+ selections: [
553
+ {
554
+ name: 'id',
555
+ kind: 'Scalar'
556
+ },
557
+ {
558
+ name: 'label',
559
+ kind: 'Scalar'
560
+ },
561
+ {
562
+ name: 'name',
563
+ kind: 'Scalar'
564
+ },
565
+ {
566
+ name: 'status',
567
+ kind: 'Scalar'
568
+ },
569
+ {
570
+ name: 'stepInstances',
571
+ kind: 'Object',
572
+ plural: true,
573
+ selections: FlowOrchestrationStepInstanceRepresentation__selections
574
+ }
575
+ ]
576
+ };
577
+ };
578
+ function equals$2(existing, incoming) {
579
+ const existing_id = existing.id;
580
+ const incoming_id = incoming.id;
581
+ if (!(existing_id === incoming_id)) {
582
+ return false;
583
+ }
584
+ const existing_status = existing.status;
585
+ const incoming_status = incoming.status;
586
+ if (!(existing_status === incoming_status)) {
587
+ return false;
588
+ }
589
+ const existing_label = existing.label;
590
+ const incoming_label = incoming.label;
591
+ if (!(existing_label === incoming_label)) {
592
+ return false;
593
+ }
594
+ const existing_name = existing.name;
595
+ const incoming_name = incoming.name;
596
+ if (!(existing_name === incoming_name)) {
597
+ return false;
598
+ }
599
+ const existing_stepInstances = existing.stepInstances;
600
+ const incoming_stepInstances = incoming.stepInstances;
601
+ const equals_stepInstances_items = equalsArray(existing_stepInstances, incoming_stepInstances, (existing_stepInstances_item, incoming_stepInstances_item) => {
602
+ if (!(equals$3(existing_stepInstances_item, incoming_stepInstances_item))) {
603
+ return false;
604
+ }
605
+ });
606
+ if (equals_stepInstances_items === false) {
607
+ return false;
608
+ }
609
+ return true;
610
610
  }
611
611
 
612
- const VERSION$1 = "5cd09fe6e4e088f4787a6cf1b9ab7a2a";
613
- function validate$1(obj, path = 'FlowOrchestrationInstanceRepresentation') {
614
- const v_error = (() => {
615
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
616
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
617
- }
618
- const obj_flowDefinitionDeveloperName = obj.flowDefinitionDeveloperName;
619
- const path_flowDefinitionDeveloperName = path + '.flowDefinitionDeveloperName';
620
- let obj_flowDefinitionDeveloperName_union0 = null;
621
- const obj_flowDefinitionDeveloperName_union0_error = (() => {
622
- if (typeof obj_flowDefinitionDeveloperName !== 'string') {
623
- return new TypeError('Expected "string" but received "' + typeof obj_flowDefinitionDeveloperName + '" (at "' + path_flowDefinitionDeveloperName + '")');
624
- }
625
- })();
626
- if (obj_flowDefinitionDeveloperName_union0_error != null) {
627
- obj_flowDefinitionDeveloperName_union0 = obj_flowDefinitionDeveloperName_union0_error.message;
628
- }
629
- let obj_flowDefinitionDeveloperName_union1 = null;
630
- const obj_flowDefinitionDeveloperName_union1_error = (() => {
631
- if (obj_flowDefinitionDeveloperName !== null) {
632
- return new TypeError('Expected "null" but received "' + typeof obj_flowDefinitionDeveloperName + '" (at "' + path_flowDefinitionDeveloperName + '")');
633
- }
634
- })();
635
- if (obj_flowDefinitionDeveloperName_union1_error != null) {
636
- obj_flowDefinitionDeveloperName_union1 = obj_flowDefinitionDeveloperName_union1_error.message;
637
- }
638
- if (obj_flowDefinitionDeveloperName_union0 && obj_flowDefinitionDeveloperName_union1) {
639
- let message = 'Object doesn\'t match union (at "' + path_flowDefinitionDeveloperName + '")';
640
- message += '\n' + obj_flowDefinitionDeveloperName_union0.split('\n').map((line) => '\t' + line).join('\n');
641
- message += '\n' + obj_flowDefinitionDeveloperName_union1.split('\n').map((line) => '\t' + line).join('\n');
642
- return new TypeError(message);
643
- }
644
- const obj_flowDefinitionId = obj.flowDefinitionId;
645
- const path_flowDefinitionId = path + '.flowDefinitionId';
646
- let obj_flowDefinitionId_union0 = null;
647
- const obj_flowDefinitionId_union0_error = (() => {
648
- if (typeof obj_flowDefinitionId !== 'string') {
649
- return new TypeError('Expected "string" but received "' + typeof obj_flowDefinitionId + '" (at "' + path_flowDefinitionId + '")');
650
- }
651
- })();
652
- if (obj_flowDefinitionId_union0_error != null) {
653
- obj_flowDefinitionId_union0 = obj_flowDefinitionId_union0_error.message;
654
- }
655
- let obj_flowDefinitionId_union1 = null;
656
- const obj_flowDefinitionId_union1_error = (() => {
657
- if (obj_flowDefinitionId !== null) {
658
- return new TypeError('Expected "null" but received "' + typeof obj_flowDefinitionId + '" (at "' + path_flowDefinitionId + '")');
659
- }
660
- })();
661
- if (obj_flowDefinitionId_union1_error != null) {
662
- obj_flowDefinitionId_union1 = obj_flowDefinitionId_union1_error.message;
663
- }
664
- if (obj_flowDefinitionId_union0 && obj_flowDefinitionId_union1) {
665
- let message = 'Object doesn\'t match union (at "' + path_flowDefinitionId + '")';
666
- message += '\n' + obj_flowDefinitionId_union0.split('\n').map((line) => '\t' + line).join('\n');
667
- message += '\n' + obj_flowDefinitionId_union1.split('\n').map((line) => '\t' + line).join('\n');
668
- return new TypeError(message);
669
- }
670
- const obj_flowDefinitionName = obj.flowDefinitionName;
671
- const path_flowDefinitionName = path + '.flowDefinitionName';
672
- let obj_flowDefinitionName_union0 = null;
673
- const obj_flowDefinitionName_union0_error = (() => {
674
- if (typeof obj_flowDefinitionName !== 'string') {
675
- return new TypeError('Expected "string" but received "' + typeof obj_flowDefinitionName + '" (at "' + path_flowDefinitionName + '")');
676
- }
677
- })();
678
- if (obj_flowDefinitionName_union0_error != null) {
679
- obj_flowDefinitionName_union0 = obj_flowDefinitionName_union0_error.message;
680
- }
681
- let obj_flowDefinitionName_union1 = null;
682
- const obj_flowDefinitionName_union1_error = (() => {
683
- if (obj_flowDefinitionName !== null) {
684
- return new TypeError('Expected "null" but received "' + typeof obj_flowDefinitionName + '" (at "' + path_flowDefinitionName + '")');
685
- }
686
- })();
687
- if (obj_flowDefinitionName_union1_error != null) {
688
- obj_flowDefinitionName_union1 = obj_flowDefinitionName_union1_error.message;
689
- }
690
- if (obj_flowDefinitionName_union0 && obj_flowDefinitionName_union1) {
691
- let message = 'Object doesn\'t match union (at "' + path_flowDefinitionName + '")';
692
- message += '\n' + obj_flowDefinitionName_union0.split('\n').map((line) => '\t' + line).join('\n');
693
- message += '\n' + obj_flowDefinitionName_union1.split('\n').map((line) => '\t' + line).join('\n');
694
- return new TypeError(message);
695
- }
696
- const obj_id = obj.id;
697
- const path_id = path + '.id';
698
- if (typeof obj_id !== 'string') {
699
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
700
- }
701
- const obj_interviewId = obj.interviewId;
702
- const path_interviewId = path + '.interviewId';
703
- let obj_interviewId_union0 = null;
704
- const obj_interviewId_union0_error = (() => {
705
- if (typeof obj_interviewId !== 'string') {
706
- return new TypeError('Expected "string" but received "' + typeof obj_interviewId + '" (at "' + path_interviewId + '")');
707
- }
708
- })();
709
- if (obj_interviewId_union0_error != null) {
710
- obj_interviewId_union0 = obj_interviewId_union0_error.message;
711
- }
712
- let obj_interviewId_union1 = null;
713
- const obj_interviewId_union1_error = (() => {
714
- if (obj_interviewId !== null) {
715
- return new TypeError('Expected "null" but received "' + typeof obj_interviewId + '" (at "' + path_interviewId + '")');
716
- }
717
- })();
718
- if (obj_interviewId_union1_error != null) {
719
- obj_interviewId_union1 = obj_interviewId_union1_error.message;
720
- }
721
- if (obj_interviewId_union0 && obj_interviewId_union1) {
722
- let message = 'Object doesn\'t match union (at "' + path_interviewId + '")';
723
- message += '\n' + obj_interviewId_union0.split('\n').map((line) => '\t' + line).join('\n');
724
- message += '\n' + obj_interviewId_union1.split('\n').map((line) => '\t' + line).join('\n');
725
- return new TypeError(message);
726
- }
727
- const obj_stageInstances = obj.stageInstances;
728
- const path_stageInstances = path + '.stageInstances';
729
- if (!ArrayIsArray(obj_stageInstances)) {
730
- return new TypeError('Expected "array" but received "' + typeof obj_stageInstances + '" (at "' + path_stageInstances + '")');
731
- }
732
- for (let i = 0; i < obj_stageInstances.length; i++) {
733
- const obj_stageInstances_item = obj_stageInstances[i];
734
- const path_stageInstances_item = path_stageInstances + '[' + i + ']';
735
- const referencepath_stageInstances_itemValidationError = validate$2(obj_stageInstances_item, path_stageInstances_item);
736
- if (referencepath_stageInstances_itemValidationError !== null) {
737
- let message = 'Object doesn\'t match FlowOrchestrationStageInstanceRepresentation (at "' + path_stageInstances_item + '")\n';
738
- message += referencepath_stageInstances_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
739
- return new TypeError(message);
740
- }
741
- }
742
- const obj_status = obj.status;
743
- const path_status = path + '.status';
744
- if (typeof obj_status !== 'string') {
745
- return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
746
- }
747
- })();
748
- return v_error === undefined ? null : v_error;
749
- }
750
- const select$2 = function FlowOrchestrationInstanceRepresentationSelect() {
751
- const { selections: FlowOrchestrationStageInstanceRepresentation__selections, opaque: FlowOrchestrationStageInstanceRepresentation__opaque, } = select$3();
752
- return {
753
- kind: 'Fragment',
754
- version: VERSION$1,
755
- private: [],
756
- selections: [
757
- {
758
- name: 'flowDefinitionDeveloperName',
759
- kind: 'Scalar'
760
- },
761
- {
762
- name: 'flowDefinitionId',
763
- kind: 'Scalar'
764
- },
765
- {
766
- name: 'flowDefinitionName',
767
- kind: 'Scalar'
768
- },
769
- {
770
- name: 'id',
771
- kind: 'Scalar'
772
- },
773
- {
774
- name: 'interviewId',
775
- kind: 'Scalar'
776
- },
777
- {
778
- name: 'stageInstances',
779
- kind: 'Object',
780
- plural: true,
781
- selections: FlowOrchestrationStageInstanceRepresentation__selections
782
- },
783
- {
784
- name: 'status',
785
- kind: 'Scalar'
786
- }
787
- ]
788
- };
789
- };
790
- function equals$1(existing, incoming) {
791
- const existing_id = existing.id;
792
- const incoming_id = incoming.id;
793
- if (!(existing_id === incoming_id)) {
794
- return false;
795
- }
796
- const existing_status = existing.status;
797
- const incoming_status = incoming.status;
798
- if (!(existing_status === incoming_status)) {
799
- return false;
800
- }
801
- const existing_flowDefinitionDeveloperName = existing.flowDefinitionDeveloperName;
802
- const incoming_flowDefinitionDeveloperName = incoming.flowDefinitionDeveloperName;
803
- if (!(existing_flowDefinitionDeveloperName === incoming_flowDefinitionDeveloperName)) {
804
- return false;
805
- }
806
- const existing_flowDefinitionId = existing.flowDefinitionId;
807
- const incoming_flowDefinitionId = incoming.flowDefinitionId;
808
- if (!(existing_flowDefinitionId === incoming_flowDefinitionId)) {
809
- return false;
810
- }
811
- const existing_flowDefinitionName = existing.flowDefinitionName;
812
- const incoming_flowDefinitionName = incoming.flowDefinitionName;
813
- if (!(existing_flowDefinitionName === incoming_flowDefinitionName)) {
814
- return false;
815
- }
816
- const existing_interviewId = existing.interviewId;
817
- const incoming_interviewId = incoming.interviewId;
818
- if (!(existing_interviewId === incoming_interviewId)) {
819
- return false;
820
- }
821
- const existing_stageInstances = existing.stageInstances;
822
- const incoming_stageInstances = incoming.stageInstances;
823
- const equals_stageInstances_items = equalsArray(existing_stageInstances, incoming_stageInstances, (existing_stageInstances_item, incoming_stageInstances_item) => {
824
- if (!(equals$2(existing_stageInstances_item, incoming_stageInstances_item))) {
825
- return false;
826
- }
827
- });
828
- if (equals_stageInstances_items === false) {
829
- return false;
830
- }
831
- return true;
612
+ const VERSION$1 = "5cd09fe6e4e088f4787a6cf1b9ab7a2a";
613
+ function validate$1(obj, path = 'FlowOrchestrationInstanceRepresentation') {
614
+ const v_error = (() => {
615
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
616
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
617
+ }
618
+ const obj_flowDefinitionDeveloperName = obj.flowDefinitionDeveloperName;
619
+ const path_flowDefinitionDeveloperName = path + '.flowDefinitionDeveloperName';
620
+ let obj_flowDefinitionDeveloperName_union0 = null;
621
+ const obj_flowDefinitionDeveloperName_union0_error = (() => {
622
+ if (typeof obj_flowDefinitionDeveloperName !== 'string') {
623
+ return new TypeError('Expected "string" but received "' + typeof obj_flowDefinitionDeveloperName + '" (at "' + path_flowDefinitionDeveloperName + '")');
624
+ }
625
+ })();
626
+ if (obj_flowDefinitionDeveloperName_union0_error != null) {
627
+ obj_flowDefinitionDeveloperName_union0 = obj_flowDefinitionDeveloperName_union0_error.message;
628
+ }
629
+ let obj_flowDefinitionDeveloperName_union1 = null;
630
+ const obj_flowDefinitionDeveloperName_union1_error = (() => {
631
+ if (obj_flowDefinitionDeveloperName !== null) {
632
+ return new TypeError('Expected "null" but received "' + typeof obj_flowDefinitionDeveloperName + '" (at "' + path_flowDefinitionDeveloperName + '")');
633
+ }
634
+ })();
635
+ if (obj_flowDefinitionDeveloperName_union1_error != null) {
636
+ obj_flowDefinitionDeveloperName_union1 = obj_flowDefinitionDeveloperName_union1_error.message;
637
+ }
638
+ if (obj_flowDefinitionDeveloperName_union0 && obj_flowDefinitionDeveloperName_union1) {
639
+ let message = 'Object doesn\'t match union (at "' + path_flowDefinitionDeveloperName + '")';
640
+ message += '\n' + obj_flowDefinitionDeveloperName_union0.split('\n').map((line) => '\t' + line).join('\n');
641
+ message += '\n' + obj_flowDefinitionDeveloperName_union1.split('\n').map((line) => '\t' + line).join('\n');
642
+ return new TypeError(message);
643
+ }
644
+ const obj_flowDefinitionId = obj.flowDefinitionId;
645
+ const path_flowDefinitionId = path + '.flowDefinitionId';
646
+ let obj_flowDefinitionId_union0 = null;
647
+ const obj_flowDefinitionId_union0_error = (() => {
648
+ if (typeof obj_flowDefinitionId !== 'string') {
649
+ return new TypeError('Expected "string" but received "' + typeof obj_flowDefinitionId + '" (at "' + path_flowDefinitionId + '")');
650
+ }
651
+ })();
652
+ if (obj_flowDefinitionId_union0_error != null) {
653
+ obj_flowDefinitionId_union0 = obj_flowDefinitionId_union0_error.message;
654
+ }
655
+ let obj_flowDefinitionId_union1 = null;
656
+ const obj_flowDefinitionId_union1_error = (() => {
657
+ if (obj_flowDefinitionId !== null) {
658
+ return new TypeError('Expected "null" but received "' + typeof obj_flowDefinitionId + '" (at "' + path_flowDefinitionId + '")');
659
+ }
660
+ })();
661
+ if (obj_flowDefinitionId_union1_error != null) {
662
+ obj_flowDefinitionId_union1 = obj_flowDefinitionId_union1_error.message;
663
+ }
664
+ if (obj_flowDefinitionId_union0 && obj_flowDefinitionId_union1) {
665
+ let message = 'Object doesn\'t match union (at "' + path_flowDefinitionId + '")';
666
+ message += '\n' + obj_flowDefinitionId_union0.split('\n').map((line) => '\t' + line).join('\n');
667
+ message += '\n' + obj_flowDefinitionId_union1.split('\n').map((line) => '\t' + line).join('\n');
668
+ return new TypeError(message);
669
+ }
670
+ const obj_flowDefinitionName = obj.flowDefinitionName;
671
+ const path_flowDefinitionName = path + '.flowDefinitionName';
672
+ let obj_flowDefinitionName_union0 = null;
673
+ const obj_flowDefinitionName_union0_error = (() => {
674
+ if (typeof obj_flowDefinitionName !== 'string') {
675
+ return new TypeError('Expected "string" but received "' + typeof obj_flowDefinitionName + '" (at "' + path_flowDefinitionName + '")');
676
+ }
677
+ })();
678
+ if (obj_flowDefinitionName_union0_error != null) {
679
+ obj_flowDefinitionName_union0 = obj_flowDefinitionName_union0_error.message;
680
+ }
681
+ let obj_flowDefinitionName_union1 = null;
682
+ const obj_flowDefinitionName_union1_error = (() => {
683
+ if (obj_flowDefinitionName !== null) {
684
+ return new TypeError('Expected "null" but received "' + typeof obj_flowDefinitionName + '" (at "' + path_flowDefinitionName + '")');
685
+ }
686
+ })();
687
+ if (obj_flowDefinitionName_union1_error != null) {
688
+ obj_flowDefinitionName_union1 = obj_flowDefinitionName_union1_error.message;
689
+ }
690
+ if (obj_flowDefinitionName_union0 && obj_flowDefinitionName_union1) {
691
+ let message = 'Object doesn\'t match union (at "' + path_flowDefinitionName + '")';
692
+ message += '\n' + obj_flowDefinitionName_union0.split('\n').map((line) => '\t' + line).join('\n');
693
+ message += '\n' + obj_flowDefinitionName_union1.split('\n').map((line) => '\t' + line).join('\n');
694
+ return new TypeError(message);
695
+ }
696
+ const obj_id = obj.id;
697
+ const path_id = path + '.id';
698
+ if (typeof obj_id !== 'string') {
699
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
700
+ }
701
+ const obj_interviewId = obj.interviewId;
702
+ const path_interviewId = path + '.interviewId';
703
+ let obj_interviewId_union0 = null;
704
+ const obj_interviewId_union0_error = (() => {
705
+ if (typeof obj_interviewId !== 'string') {
706
+ return new TypeError('Expected "string" but received "' + typeof obj_interviewId + '" (at "' + path_interviewId + '")');
707
+ }
708
+ })();
709
+ if (obj_interviewId_union0_error != null) {
710
+ obj_interviewId_union0 = obj_interviewId_union0_error.message;
711
+ }
712
+ let obj_interviewId_union1 = null;
713
+ const obj_interviewId_union1_error = (() => {
714
+ if (obj_interviewId !== null) {
715
+ return new TypeError('Expected "null" but received "' + typeof obj_interviewId + '" (at "' + path_interviewId + '")');
716
+ }
717
+ })();
718
+ if (obj_interviewId_union1_error != null) {
719
+ obj_interviewId_union1 = obj_interviewId_union1_error.message;
720
+ }
721
+ if (obj_interviewId_union0 && obj_interviewId_union1) {
722
+ let message = 'Object doesn\'t match union (at "' + path_interviewId + '")';
723
+ message += '\n' + obj_interviewId_union0.split('\n').map((line) => '\t' + line).join('\n');
724
+ message += '\n' + obj_interviewId_union1.split('\n').map((line) => '\t' + line).join('\n');
725
+ return new TypeError(message);
726
+ }
727
+ const obj_stageInstances = obj.stageInstances;
728
+ const path_stageInstances = path + '.stageInstances';
729
+ if (!ArrayIsArray(obj_stageInstances)) {
730
+ return new TypeError('Expected "array" but received "' + typeof obj_stageInstances + '" (at "' + path_stageInstances + '")');
731
+ }
732
+ for (let i = 0; i < obj_stageInstances.length; i++) {
733
+ const obj_stageInstances_item = obj_stageInstances[i];
734
+ const path_stageInstances_item = path_stageInstances + '[' + i + ']';
735
+ const referencepath_stageInstances_itemValidationError = validate$2(obj_stageInstances_item, path_stageInstances_item);
736
+ if (referencepath_stageInstances_itemValidationError !== null) {
737
+ let message = 'Object doesn\'t match FlowOrchestrationStageInstanceRepresentation (at "' + path_stageInstances_item + '")\n';
738
+ message += referencepath_stageInstances_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
739
+ return new TypeError(message);
740
+ }
741
+ }
742
+ const obj_status = obj.status;
743
+ const path_status = path + '.status';
744
+ if (typeof obj_status !== 'string') {
745
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
746
+ }
747
+ })();
748
+ return v_error === undefined ? null : v_error;
749
+ }
750
+ const select$2 = function FlowOrchestrationInstanceRepresentationSelect() {
751
+ const { selections: FlowOrchestrationStageInstanceRepresentation__selections, opaque: FlowOrchestrationStageInstanceRepresentation__opaque, } = select$3();
752
+ return {
753
+ kind: 'Fragment',
754
+ version: VERSION$1,
755
+ private: [],
756
+ selections: [
757
+ {
758
+ name: 'flowDefinitionDeveloperName',
759
+ kind: 'Scalar'
760
+ },
761
+ {
762
+ name: 'flowDefinitionId',
763
+ kind: 'Scalar'
764
+ },
765
+ {
766
+ name: 'flowDefinitionName',
767
+ kind: 'Scalar'
768
+ },
769
+ {
770
+ name: 'id',
771
+ kind: 'Scalar'
772
+ },
773
+ {
774
+ name: 'interviewId',
775
+ kind: 'Scalar'
776
+ },
777
+ {
778
+ name: 'stageInstances',
779
+ kind: 'Object',
780
+ plural: true,
781
+ selections: FlowOrchestrationStageInstanceRepresentation__selections
782
+ },
783
+ {
784
+ name: 'status',
785
+ kind: 'Scalar'
786
+ }
787
+ ]
788
+ };
789
+ };
790
+ function equals$1(existing, incoming) {
791
+ const existing_id = existing.id;
792
+ const incoming_id = incoming.id;
793
+ if (!(existing_id === incoming_id)) {
794
+ return false;
795
+ }
796
+ const existing_status = existing.status;
797
+ const incoming_status = incoming.status;
798
+ if (!(existing_status === incoming_status)) {
799
+ return false;
800
+ }
801
+ const existing_flowDefinitionDeveloperName = existing.flowDefinitionDeveloperName;
802
+ const incoming_flowDefinitionDeveloperName = incoming.flowDefinitionDeveloperName;
803
+ if (!(existing_flowDefinitionDeveloperName === incoming_flowDefinitionDeveloperName)) {
804
+ return false;
805
+ }
806
+ const existing_flowDefinitionId = existing.flowDefinitionId;
807
+ const incoming_flowDefinitionId = incoming.flowDefinitionId;
808
+ if (!(existing_flowDefinitionId === incoming_flowDefinitionId)) {
809
+ return false;
810
+ }
811
+ const existing_flowDefinitionName = existing.flowDefinitionName;
812
+ const incoming_flowDefinitionName = incoming.flowDefinitionName;
813
+ if (!(existing_flowDefinitionName === incoming_flowDefinitionName)) {
814
+ return false;
815
+ }
816
+ const existing_interviewId = existing.interviewId;
817
+ const incoming_interviewId = incoming.interviewId;
818
+ if (!(existing_interviewId === incoming_interviewId)) {
819
+ return false;
820
+ }
821
+ const existing_stageInstances = existing.stageInstances;
822
+ const incoming_stageInstances = incoming.stageInstances;
823
+ const equals_stageInstances_items = equalsArray(existing_stageInstances, incoming_stageInstances, (existing_stageInstances_item, incoming_stageInstances_item) => {
824
+ if (!(equals$2(existing_stageInstances_item, incoming_stageInstances_item))) {
825
+ return false;
826
+ }
827
+ });
828
+ if (equals_stageInstances_items === false) {
829
+ return false;
830
+ }
831
+ return true;
832
832
  }
833
833
 
834
- const TTL = 100;
835
- const VERSION = "ff1028f6e4a6a9aeed322135fdf518b5";
836
- function validate(obj, path = 'FlowOrchestrationInstanceCollectionRepresentation') {
837
- const v_error = (() => {
838
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
839
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
840
- }
841
- const obj_instances = obj.instances;
842
- const path_instances = path + '.instances';
843
- if (!ArrayIsArray(obj_instances)) {
844
- return new TypeError('Expected "array" but received "' + typeof obj_instances + '" (at "' + path_instances + '")');
845
- }
846
- for (let i = 0; i < obj_instances.length; i++) {
847
- const obj_instances_item = obj_instances[i];
848
- const path_instances_item = path_instances + '[' + i + ']';
849
- const referencepath_instances_itemValidationError = validate$1(obj_instances_item, path_instances_item);
850
- if (referencepath_instances_itemValidationError !== null) {
851
- let message = 'Object doesn\'t match FlowOrchestrationInstanceRepresentation (at "' + path_instances_item + '")\n';
852
- message += referencepath_instances_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
853
- return new TypeError(message);
854
- }
855
- }
856
- })();
857
- return v_error === undefined ? null : v_error;
858
- }
859
- const RepresentationType = 'FlowOrchestrationInstanceCollectionRepresentation';
860
- function normalize(input, existing, path, luvio, store, timestamp) {
861
- return input;
862
- }
863
- const select$1 = function FlowOrchestrationInstanceCollectionRepresentationSelect() {
864
- const { selections: FlowOrchestrationInstanceRepresentation__selections, opaque: FlowOrchestrationInstanceRepresentation__opaque, } = select$2();
865
- return {
866
- kind: 'Fragment',
867
- version: VERSION,
868
- private: [],
869
- selections: [
870
- {
871
- name: 'instances',
872
- kind: 'Object',
873
- plural: true,
874
- selections: FlowOrchestrationInstanceRepresentation__selections
875
- }
876
- ]
877
- };
878
- };
879
- function equals(existing, incoming) {
880
- const existing_instances = existing.instances;
881
- const incoming_instances = incoming.instances;
882
- const equals_instances_items = equalsArray(existing_instances, incoming_instances, (existing_instances_item, incoming_instances_item) => {
883
- if (!(equals$1(existing_instances_item, incoming_instances_item))) {
884
- return false;
885
- }
886
- });
887
- if (equals_instances_items === false) {
888
- return false;
889
- }
890
- return true;
891
- }
892
- const ingest = function FlowOrchestrationInstanceCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
893
- if (process.env.NODE_ENV !== 'production') {
894
- const validateError = validate(input);
895
- if (validateError !== null) {
896
- throw validateError;
897
- }
898
- }
899
- const key = path.fullPath;
900
- const existingRecord = store.readEntry(key);
901
- const ttlToUse = TTL;
902
- let incomingRecord = normalize(input, store.readEntry(key), {
903
- fullPath: key,
904
- parent: path.parent,
905
- propertyName: path.propertyName,
906
- ttl: ttlToUse
907
- });
908
- if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
909
- luvio.storePublish(key, incomingRecord);
910
- }
911
- {
912
- const storeMetadataParams = {
913
- ttl: ttlToUse,
914
- namespace: "InteractionOrchestrator",
915
- version: VERSION,
916
- representationName: RepresentationType,
917
- };
918
- luvio.publishStoreMetadata(key, storeMetadataParams);
919
- }
920
- return createLink(key);
921
- };
922
- function getTypeCacheKeys(luvio, input, fullPathFactory) {
923
- const rootKeySet = new StoreKeyMap();
924
- // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
925
- const rootKey = fullPathFactory();
926
- rootKeySet.set(rootKey, {
927
- namespace: keyPrefix,
928
- representationName: RepresentationType,
929
- mergeable: false
930
- });
931
- return rootKeySet;
834
+ const TTL = 100;
835
+ const VERSION = "ff1028f6e4a6a9aeed322135fdf518b5";
836
+ function validate(obj, path = 'FlowOrchestrationInstanceCollectionRepresentation') {
837
+ const v_error = (() => {
838
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
839
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
840
+ }
841
+ const obj_instances = obj.instances;
842
+ const path_instances = path + '.instances';
843
+ if (!ArrayIsArray(obj_instances)) {
844
+ return new TypeError('Expected "array" but received "' + typeof obj_instances + '" (at "' + path_instances + '")');
845
+ }
846
+ for (let i = 0; i < obj_instances.length; i++) {
847
+ const obj_instances_item = obj_instances[i];
848
+ const path_instances_item = path_instances + '[' + i + ']';
849
+ const referencepath_instances_itemValidationError = validate$1(obj_instances_item, path_instances_item);
850
+ if (referencepath_instances_itemValidationError !== null) {
851
+ let message = 'Object doesn\'t match FlowOrchestrationInstanceRepresentation (at "' + path_instances_item + '")\n';
852
+ message += referencepath_instances_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
853
+ return new TypeError(message);
854
+ }
855
+ }
856
+ })();
857
+ return v_error === undefined ? null : v_error;
858
+ }
859
+ const RepresentationType = 'FlowOrchestrationInstanceCollectionRepresentation';
860
+ function normalize(input, existing, path, luvio, store, timestamp) {
861
+ return input;
862
+ }
863
+ const select$1 = function FlowOrchestrationInstanceCollectionRepresentationSelect() {
864
+ const { selections: FlowOrchestrationInstanceRepresentation__selections, opaque: FlowOrchestrationInstanceRepresentation__opaque, } = select$2();
865
+ return {
866
+ kind: 'Fragment',
867
+ version: VERSION,
868
+ private: [],
869
+ selections: [
870
+ {
871
+ name: 'instances',
872
+ kind: 'Object',
873
+ plural: true,
874
+ selections: FlowOrchestrationInstanceRepresentation__selections
875
+ }
876
+ ]
877
+ };
878
+ };
879
+ function equals(existing, incoming) {
880
+ const existing_instances = existing.instances;
881
+ const incoming_instances = incoming.instances;
882
+ const equals_instances_items = equalsArray(existing_instances, incoming_instances, (existing_instances_item, incoming_instances_item) => {
883
+ if (!(equals$1(existing_instances_item, incoming_instances_item))) {
884
+ return false;
885
+ }
886
+ });
887
+ if (equals_instances_items === false) {
888
+ return false;
889
+ }
890
+ return true;
891
+ }
892
+ const ingest = function FlowOrchestrationInstanceCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
893
+ if (process.env.NODE_ENV !== 'production') {
894
+ const validateError = validate(input);
895
+ if (validateError !== null) {
896
+ throw validateError;
897
+ }
898
+ }
899
+ const key = path.fullPath;
900
+ const existingRecord = store.readEntry(key);
901
+ const ttlToUse = TTL;
902
+ let incomingRecord = normalize(input, store.readEntry(key), {
903
+ fullPath: key,
904
+ parent: path.parent,
905
+ propertyName: path.propertyName,
906
+ ttl: ttlToUse
907
+ });
908
+ if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
909
+ luvio.storePublish(key, incomingRecord);
910
+ }
911
+ {
912
+ const storeMetadataParams = {
913
+ ttl: ttlToUse,
914
+ namespace: "InteractionOrchestrator",
915
+ version: VERSION,
916
+ representationName: RepresentationType,
917
+ };
918
+ luvio.publishStoreMetadata(key, storeMetadataParams);
919
+ }
920
+ return createLink(key);
921
+ };
922
+ function getTypeCacheKeys(luvio, input, fullPathFactory) {
923
+ const rootKeySet = new StoreKeyMap();
924
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
925
+ const rootKey = fullPathFactory();
926
+ rootKeySet.set(rootKey, {
927
+ namespace: keyPrefix,
928
+ representationName: RepresentationType,
929
+ mergeable: false
930
+ });
931
+ return rootKeySet;
932
932
  }
933
933
 
934
- function select(luvio, params) {
935
- return select$1();
936
- }
937
- function keyBuilder$1(luvio, params) {
938
- return keyPrefix + '::FlowOrchestrationInstanceCollectionRepresentation:(' + 'contextRecordId:' + params.queryParams.contextRecordId + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ')';
939
- }
940
- function getResponseCacheKeys(luvio, resourceParams, response) {
941
- return getTypeCacheKeys(luvio, response, () => keyBuilder$1(luvio, resourceParams));
942
- }
943
- function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
944
- const { body } = response;
945
- const key = keyBuilder$1(luvio, resourceParams);
946
- luvio.storeIngest(key, ingest, body);
947
- const snapshot = luvio.storeLookup({
948
- recordId: key,
949
- node: select(),
950
- variables: {},
951
- }, snapshotRefresh);
952
- if (process.env.NODE_ENV !== 'production') {
953
- if (snapshot.state !== 'Fulfilled') {
954
- throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
955
- }
956
- }
957
- return snapshot;
958
- }
959
- function ingestError(luvio, params, error, snapshotRefresh) {
960
- const key = keyBuilder$1(luvio, params);
961
- const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
962
- const storeMetadataParams = {
963
- ttl: TTL,
964
- namespace: keyPrefix,
965
- version: VERSION,
966
- representationName: RepresentationType
967
- };
968
- luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
969
- return errorSnapshot;
970
- }
971
- function createResourceRequest(config) {
972
- const headers = {};
973
- return {
974
- baseUri: '/services/data/v58.0',
975
- basePath: '/connect/interaction/orchestration/instances',
976
- method: 'get',
977
- body: null,
978
- urlParams: {},
979
- queryParams: config.queryParams,
980
- headers,
981
- priority: 'normal',
982
- };
934
+ function select(luvio, params) {
935
+ return select$1();
936
+ }
937
+ function keyBuilder$1(luvio, params) {
938
+ return keyPrefix + '::FlowOrchestrationInstanceCollectionRepresentation:(' + 'contextRecordId:' + params.queryParams.contextRecordId + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ')';
939
+ }
940
+ function getResponseCacheKeys(luvio, resourceParams, response) {
941
+ return getTypeCacheKeys(luvio, response, () => keyBuilder$1(luvio, resourceParams));
942
+ }
943
+ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
944
+ const { body } = response;
945
+ const key = keyBuilder$1(luvio, resourceParams);
946
+ luvio.storeIngest(key, ingest, body);
947
+ const snapshot = luvio.storeLookup({
948
+ recordId: key,
949
+ node: select(),
950
+ variables: {},
951
+ }, snapshotRefresh);
952
+ if (process.env.NODE_ENV !== 'production') {
953
+ if (snapshot.state !== 'Fulfilled') {
954
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
955
+ }
956
+ }
957
+ return snapshot;
958
+ }
959
+ function ingestError(luvio, params, error, snapshotRefresh) {
960
+ const key = keyBuilder$1(luvio, params);
961
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
962
+ const storeMetadataParams = {
963
+ ttl: TTL,
964
+ namespace: keyPrefix,
965
+ version: VERSION,
966
+ representationName: RepresentationType
967
+ };
968
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
969
+ return errorSnapshot;
970
+ }
971
+ function createResourceRequest(config) {
972
+ const headers = {};
973
+ return {
974
+ baseUri: '/services/data/v58.0',
975
+ basePath: '/connect/interaction/orchestration/instances',
976
+ method: 'get',
977
+ body: null,
978
+ urlParams: {},
979
+ queryParams: config.queryParams,
980
+ headers,
981
+ priority: 'normal',
982
+ };
983
983
  }
984
984
 
985
- const oneOfConfigPropertiesIdentifier = [
986
- 'relatedRecordId'
987
- ];
988
- const getOrchestrationInstanceCollection_ConfigPropertyNames = {
989
- displayName: 'getOrchestrationInstanceCollection',
990
- parameters: {
991
- required: [],
992
- optional: ['contextRecordId', 'relatedRecordId']
993
- }
994
- };
995
- function createResourceParams(config) {
996
- const resourceParams = {
997
- queryParams: {
998
- contextRecordId: config.contextRecordId, relatedRecordId: config.relatedRecordId
999
- }
1000
- };
1001
- return resourceParams;
1002
- }
1003
- function keyBuilder(luvio, config) {
1004
- const resourceParams = createResourceParams(config);
1005
- return keyBuilder$1(luvio, resourceParams);
1006
- }
1007
- function typeCheckConfig(untrustedConfig) {
1008
- const config = {};
1009
- const untrustedConfig_contextRecordId = untrustedConfig.contextRecordId;
1010
- if (typeof untrustedConfig_contextRecordId === 'string') {
1011
- config.contextRecordId = untrustedConfig_contextRecordId;
1012
- }
1013
- const untrustedConfig_relatedRecordId = untrustedConfig.relatedRecordId;
1014
- if (typeof untrustedConfig_relatedRecordId === 'string') {
1015
- config.relatedRecordId = untrustedConfig_relatedRecordId;
1016
- }
1017
- return config;
1018
- }
1019
- function validateAdapterConfig(untrustedConfig, configPropertyNames) {
1020
- if (!untrustedIsObject(untrustedConfig)) {
1021
- return null;
1022
- }
1023
- if (process.env.NODE_ENV !== 'production') {
1024
- validateConfig(untrustedConfig, configPropertyNames, oneOfConfigPropertiesIdentifier);
1025
- }
1026
- const config = typeCheckConfig(untrustedConfig);
1027
- if (!areRequiredParametersPresent(config, configPropertyNames)) {
1028
- return null;
1029
- }
1030
- if (config.relatedRecordId === undefined) {
1031
- return null;
1032
- }
1033
- return config;
1034
- }
1035
- function adapterFragment(luvio, config) {
1036
- createResourceParams(config);
1037
- return select();
1038
- }
1039
- function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1040
- const snapshot = ingestSuccess(luvio, resourceParams, response, {
1041
- config,
1042
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1043
- });
1044
- return luvio.storeBroadcast().then(() => snapshot);
1045
- }
1046
- function onFetchResponseError(luvio, config, resourceParams, response) {
1047
- const snapshot = ingestError(luvio, resourceParams, response, {
1048
- config,
1049
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1050
- });
1051
- return luvio.storeBroadcast().then(() => snapshot);
1052
- }
1053
- function buildNetworkSnapshot(luvio, config, options) {
1054
- const resourceParams = createResourceParams(config);
1055
- const request = createResourceRequest(resourceParams);
1056
- return luvio.dispatchResourceRequest(request, options)
1057
- .then((response) => {
1058
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys(luvio, resourceParams, response.body));
1059
- }, (response) => {
1060
- return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
1061
- });
1062
- }
1063
- function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1064
- const { luvio, config } = context;
1065
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1066
- const dispatchOptions = {
1067
- resourceRequestContext: {
1068
- requestCorrelator,
1069
- luvioRequestMethod: undefined,
1070
- },
1071
- eventObservers
1072
- };
1073
- if (networkPriority !== 'normal') {
1074
- dispatchOptions.overrides = {
1075
- priority: networkPriority
1076
- };
1077
- }
1078
- return buildNetworkSnapshot(luvio, config, dispatchOptions);
1079
- }
1080
- function buildCachedSnapshotCachePolicy(context, storeLookup) {
1081
- const { luvio, config } = context;
1082
- const selector = {
1083
- recordId: keyBuilder(luvio, config),
1084
- node: adapterFragment(luvio, config),
1085
- variables: {},
1086
- };
1087
- const cacheSnapshot = storeLookup(selector, {
1088
- config,
1089
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1090
- });
1091
- return cacheSnapshot;
1092
- }
1093
- const getOrchestrationInstanceCollectionAdapterFactory = (luvio) => function InteractionOrchestrator__getOrchestrationInstanceCollection(untrustedConfig, requestContext) {
1094
- const config = validateAdapterConfig(untrustedConfig, getOrchestrationInstanceCollection_ConfigPropertyNames);
1095
- // Invalid or incomplete config
1096
- if (config === null) {
1097
- return null;
1098
- }
1099
- return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1100
- buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
985
+ const oneOfConfigPropertiesIdentifier = [
986
+ 'relatedRecordId'
987
+ ];
988
+ const getOrchestrationInstanceCollection_ConfigPropertyNames = {
989
+ displayName: 'getOrchestrationInstanceCollection',
990
+ parameters: {
991
+ required: [],
992
+ optional: ['contextRecordId', 'relatedRecordId']
993
+ }
994
+ };
995
+ function createResourceParams(config) {
996
+ const resourceParams = {
997
+ queryParams: {
998
+ contextRecordId: config.contextRecordId, relatedRecordId: config.relatedRecordId
999
+ }
1000
+ };
1001
+ return resourceParams;
1002
+ }
1003
+ function keyBuilder(luvio, config) {
1004
+ const resourceParams = createResourceParams(config);
1005
+ return keyBuilder$1(luvio, resourceParams);
1006
+ }
1007
+ function typeCheckConfig(untrustedConfig) {
1008
+ const config = {};
1009
+ const untrustedConfig_contextRecordId = untrustedConfig.contextRecordId;
1010
+ if (typeof untrustedConfig_contextRecordId === 'string') {
1011
+ config.contextRecordId = untrustedConfig_contextRecordId;
1012
+ }
1013
+ const untrustedConfig_relatedRecordId = untrustedConfig.relatedRecordId;
1014
+ if (typeof untrustedConfig_relatedRecordId === 'string') {
1015
+ config.relatedRecordId = untrustedConfig_relatedRecordId;
1016
+ }
1017
+ return config;
1018
+ }
1019
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
1020
+ if (!untrustedIsObject(untrustedConfig)) {
1021
+ return null;
1022
+ }
1023
+ if (process.env.NODE_ENV !== 'production') {
1024
+ validateConfig(untrustedConfig, configPropertyNames, oneOfConfigPropertiesIdentifier);
1025
+ }
1026
+ const config = typeCheckConfig(untrustedConfig);
1027
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1028
+ return null;
1029
+ }
1030
+ if (config.relatedRecordId === undefined) {
1031
+ return null;
1032
+ }
1033
+ return config;
1034
+ }
1035
+ function adapterFragment(luvio, config) {
1036
+ createResourceParams(config);
1037
+ return select();
1038
+ }
1039
+ function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1040
+ const snapshot = ingestSuccess(luvio, resourceParams, response, {
1041
+ config,
1042
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1043
+ });
1044
+ return luvio.storeBroadcast().then(() => snapshot);
1045
+ }
1046
+ function onFetchResponseError(luvio, config, resourceParams, response) {
1047
+ const snapshot = ingestError(luvio, resourceParams, response, {
1048
+ config,
1049
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1050
+ });
1051
+ return luvio.storeBroadcast().then(() => snapshot);
1052
+ }
1053
+ function buildNetworkSnapshot(luvio, config, options) {
1054
+ const resourceParams = createResourceParams(config);
1055
+ const request = createResourceRequest(resourceParams);
1056
+ return luvio.dispatchResourceRequest(request, options)
1057
+ .then((response) => {
1058
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys(luvio, resourceParams, response.body));
1059
+ }, (response) => {
1060
+ return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
1061
+ });
1062
+ }
1063
+ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1064
+ const { luvio, config } = context;
1065
+ const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1066
+ const dispatchOptions = {
1067
+ resourceRequestContext: {
1068
+ requestCorrelator,
1069
+ luvioRequestMethod: undefined,
1070
+ },
1071
+ eventObservers
1072
+ };
1073
+ if (networkPriority !== 'normal') {
1074
+ dispatchOptions.overrides = {
1075
+ priority: networkPriority
1076
+ };
1077
+ }
1078
+ return buildNetworkSnapshot(luvio, config, dispatchOptions);
1079
+ }
1080
+ function buildCachedSnapshotCachePolicy(context, storeLookup) {
1081
+ const { luvio, config } = context;
1082
+ const selector = {
1083
+ recordId: keyBuilder(luvio, config),
1084
+ node: adapterFragment(luvio, config),
1085
+ variables: {},
1086
+ };
1087
+ const cacheSnapshot = storeLookup(selector, {
1088
+ config,
1089
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1090
+ });
1091
+ return cacheSnapshot;
1092
+ }
1093
+ const getOrchestrationInstanceCollectionAdapterFactory = (luvio) => function InteractionOrchestrator__getOrchestrationInstanceCollection(untrustedConfig, requestContext) {
1094
+ const config = validateAdapterConfig(untrustedConfig, getOrchestrationInstanceCollection_ConfigPropertyNames);
1095
+ // Invalid or incomplete config
1096
+ if (config === null) {
1097
+ return null;
1098
+ }
1099
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1100
+ buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1101
1101
  };
1102
1102
 
1103
- let getOrchestrationInstanceCollection;
1104
- // Imperative GET Adapters
1105
- let getOrchestrationInstanceCollection_imperative;
1106
- // Adapter Metadata
1107
- const getOrchestrationInstanceCollectionMetadata = { apiFamily: 'InteractionOrchestrator', name: 'getOrchestrationInstanceCollection', ttl: 100 };
1108
- function bindExportsTo(luvio) {
1109
- // LDS Adapters
1110
- const getOrchestrationInstanceCollection_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getOrchestrationInstanceCollection', getOrchestrationInstanceCollectionAdapterFactory), getOrchestrationInstanceCollectionMetadata);
1111
- return {
1112
- getOrchestrationInstanceCollection: createWireAdapterConstructor(luvio, getOrchestrationInstanceCollection_ldsAdapter, getOrchestrationInstanceCollectionMetadata),
1113
- // Imperative GET Adapters
1114
- getOrchestrationInstanceCollection_imperative: createImperativeAdapter(luvio, getOrchestrationInstanceCollection_ldsAdapter, getOrchestrationInstanceCollectionMetadata)
1115
- };
1116
- }
1117
- withDefaultLuvio((luvio) => {
1118
- ({
1119
- getOrchestrationInstanceCollection,
1120
- getOrchestrationInstanceCollection_imperative
1121
- } = bindExportsTo(luvio));
1103
+ let getOrchestrationInstanceCollection;
1104
+ // Imperative GET Adapters
1105
+ let getOrchestrationInstanceCollection_imperative;
1106
+ // Adapter Metadata
1107
+ const getOrchestrationInstanceCollectionMetadata = { apiFamily: 'InteractionOrchestrator', name: 'getOrchestrationInstanceCollection', ttl: 100 };
1108
+ function bindExportsTo(luvio) {
1109
+ // LDS Adapters
1110
+ const getOrchestrationInstanceCollection_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getOrchestrationInstanceCollection', getOrchestrationInstanceCollectionAdapterFactory), getOrchestrationInstanceCollectionMetadata);
1111
+ return {
1112
+ getOrchestrationInstanceCollection: createWireAdapterConstructor(luvio, getOrchestrationInstanceCollection_ldsAdapter, getOrchestrationInstanceCollectionMetadata),
1113
+ // Imperative GET Adapters
1114
+ getOrchestrationInstanceCollection_imperative: createImperativeAdapter(luvio, getOrchestrationInstanceCollection_ldsAdapter, getOrchestrationInstanceCollectionMetadata)
1115
+ };
1116
+ }
1117
+ withDefaultLuvio((luvio) => {
1118
+ ({
1119
+ getOrchestrationInstanceCollection,
1120
+ getOrchestrationInstanceCollection_imperative
1121
+ } = bindExportsTo(luvio));
1122
1122
  });
1123
1123
 
1124
1124
  export { getOrchestrationInstanceCollection, getOrchestrationInstanceCollection_imperative };
1125
- // version: 1.124.1-f96ced753
1125
+ // version: 1.124.3-c058f7d96