@salesforce/lds-adapters-platform-flow-builder 1.124.2 → 1.124.4

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 (28) hide show
  1. package/dist/es/es2018/platform-flow-builder.js +856 -856
  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/getRules.d.ts +28 -28
  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/getConnectInteractionBuilderRules.d.ts +17 -17
  7. package/dist/{types → es/es2018/types}/src/generated/resources/getConnectInteractionOrchestrationInstances.d.ts +15 -15
  8. package/dist/{types → es/es2018/types}/src/generated/resources/postConnectInteractionRuntimeNavigateFlowByFlowDevName.d.ts +22 -22
  9. package/dist/{types → es/es2018/types}/src/generated/resources/postConnectInteractionRuntimeResumeFlowByFlowDevName.d.ts +15 -15
  10. package/dist/{types → es/es2018/types}/src/generated/resources/postConnectInteractionRuntimeStartFlowByFlowDevName.d.ts +19 -19
  11. package/dist/{types → es/es2018/types}/src/generated/types/FlowOperatorParameterRepresentation.d.ts +53 -53
  12. package/dist/{types → es/es2018/types}/src/generated/types/FlowOperatorRepresentation.d.ts +29 -29
  13. package/dist/{types → es/es2018/types}/src/generated/types/FlowOperatorRuleCollectionRepresentation.d.ts +30 -30
  14. package/dist/{types → es/es2018/types}/src/generated/types/FlowOperatorRuleRepresentation.d.ts +52 -52
  15. package/dist/{types → es/es2018/types}/src/generated/types/FlowOrchestrationInstanceCollectionRepresentation.d.ts +30 -30
  16. package/dist/{types → es/es2018/types}/src/generated/types/FlowOrchestrationInstanceRepresentation.d.ts +48 -48
  17. package/dist/{types → es/es2018/types}/src/generated/types/FlowOrchestrationStageInstanceRepresentation.d.ts +42 -42
  18. package/dist/{types → es/es2018/types}/src/generated/types/FlowOrchestrationStepInstanceRepresentation.d.ts +45 -45
  19. package/dist/{types → es/es2018/types}/src/generated/types/FlowOrchestrationWorkItemRepresentation.d.ts +53 -53
  20. package/dist/{types → es/es2018/types}/src/generated/types/FlowRuntimeNavigateRequestRepresentation.d.ts +48 -48
  21. package/dist/{types → es/es2018/types}/src/generated/types/FlowRuntimeNavigationFieldValueRepresentation.d.ts +35 -35
  22. package/dist/{types → es/es2018/types}/src/generated/types/FlowRuntimeResponseRepresentation.d.ts +32 -32
  23. package/dist/{types → es/es2018/types}/src/generated/types/type-utils.d.ts +39 -39
  24. package/package.json +5 -5
  25. package/sfdc/index.d.ts +1 -1
  26. package/sfdc/index.js +876 -876
  27. package/dist/umd/es2018/platform-flow-builder.js +0 -889
  28. package/dist/umd/es5/platform-flow-builder.js +0 -893
package/sfdc/index.js CHANGED
@@ -16,898 +16,898 @@ 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 = 'flow-builder';
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$3 = "f21baf31691a4049568a8fd0232f6f99";
84
- function validate$3(obj, path = 'FlowOperatorRepresentation') {
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_value = obj.value;
90
- const path_value = path + '.value';
91
- let obj_value_union0 = null;
92
- const obj_value_union0_error = (() => {
93
- if (typeof obj_value !== 'string') {
94
- return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
95
- }
96
- })();
97
- if (obj_value_union0_error != null) {
98
- obj_value_union0 = obj_value_union0_error.message;
99
- }
100
- let obj_value_union1 = null;
101
- const obj_value_union1_error = (() => {
102
- if (obj_value !== null) {
103
- return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
104
- }
105
- })();
106
- if (obj_value_union1_error != null) {
107
- obj_value_union1 = obj_value_union1_error.message;
108
- }
109
- if (obj_value_union0 && obj_value_union1) {
110
- let message = 'Object doesn\'t match union (at "' + path_value + '")';
111
- message += '\n' + obj_value_union0.split('\n').map((line) => '\t' + line).join('\n');
112
- message += '\n' + obj_value_union1.split('\n').map((line) => '\t' + line).join('\n');
113
- return new TypeError(message);
114
- }
115
- })();
116
- return v_error === undefined ? null : v_error;
117
- }
118
- const select$4 = function FlowOperatorRepresentationSelect() {
119
- return {
120
- kind: 'Fragment',
121
- version: VERSION$3,
122
- private: [],
123
- selections: [
124
- {
125
- name: 'value',
126
- kind: 'Scalar'
127
- }
128
- ]
129
- };
130
- };
131
- function equals$3(existing, incoming) {
132
- const existing_value = existing.value;
133
- const incoming_value = incoming.value;
134
- if (!(existing_value === incoming_value)) {
135
- return false;
136
- }
137
- return true;
83
+ const VERSION$3 = "f21baf31691a4049568a8fd0232f6f99";
84
+ function validate$3(obj, path = 'FlowOperatorRepresentation') {
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_value = obj.value;
90
+ const path_value = path + '.value';
91
+ let obj_value_union0 = null;
92
+ const obj_value_union0_error = (() => {
93
+ if (typeof obj_value !== 'string') {
94
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
95
+ }
96
+ })();
97
+ if (obj_value_union0_error != null) {
98
+ obj_value_union0 = obj_value_union0_error.message;
99
+ }
100
+ let obj_value_union1 = null;
101
+ const obj_value_union1_error = (() => {
102
+ if (obj_value !== null) {
103
+ return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
104
+ }
105
+ })();
106
+ if (obj_value_union1_error != null) {
107
+ obj_value_union1 = obj_value_union1_error.message;
108
+ }
109
+ if (obj_value_union0 && obj_value_union1) {
110
+ let message = 'Object doesn\'t match union (at "' + path_value + '")';
111
+ message += '\n' + obj_value_union0.split('\n').map((line) => '\t' + line).join('\n');
112
+ message += '\n' + obj_value_union1.split('\n').map((line) => '\t' + line).join('\n');
113
+ return new TypeError(message);
114
+ }
115
+ })();
116
+ return v_error === undefined ? null : v_error;
117
+ }
118
+ const select$4 = function FlowOperatorRepresentationSelect() {
119
+ return {
120
+ kind: 'Fragment',
121
+ version: VERSION$3,
122
+ private: [],
123
+ selections: [
124
+ {
125
+ name: 'value',
126
+ kind: 'Scalar'
127
+ }
128
+ ]
129
+ };
130
+ };
131
+ function equals$3(existing, incoming) {
132
+ const existing_value = existing.value;
133
+ const incoming_value = incoming.value;
134
+ if (!(existing_value === incoming_value)) {
135
+ return false;
136
+ }
137
+ return true;
138
138
  }
139
139
 
140
- const VERSION$2 = "1fbcf3729a54064347b98620da65caee";
141
- function validate$2(obj, path = 'FlowOperatorParameterRepresentation') {
142
- const v_error = (() => {
143
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
144
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
145
- }
146
- const obj_canBeApexProperty = obj.canBeApexProperty;
147
- const path_canBeApexProperty = path + '.canBeApexProperty';
148
- let obj_canBeApexProperty_union0 = null;
149
- const obj_canBeApexProperty_union0_error = (() => {
150
- if (typeof obj_canBeApexProperty !== 'string') {
151
- return new TypeError('Expected "string" but received "' + typeof obj_canBeApexProperty + '" (at "' + path_canBeApexProperty + '")');
152
- }
153
- })();
154
- if (obj_canBeApexProperty_union0_error != null) {
155
- obj_canBeApexProperty_union0 = obj_canBeApexProperty_union0_error.message;
156
- }
157
- let obj_canBeApexProperty_union1 = null;
158
- const obj_canBeApexProperty_union1_error = (() => {
159
- if (obj_canBeApexProperty !== null) {
160
- return new TypeError('Expected "null" but received "' + typeof obj_canBeApexProperty + '" (at "' + path_canBeApexProperty + '")');
161
- }
162
- })();
163
- if (obj_canBeApexProperty_union1_error != null) {
164
- obj_canBeApexProperty_union1 = obj_canBeApexProperty_union1_error.message;
165
- }
166
- if (obj_canBeApexProperty_union0 && obj_canBeApexProperty_union1) {
167
- let message = 'Object doesn\'t match union (at "' + path_canBeApexProperty + '")';
168
- message += '\n' + obj_canBeApexProperty_union0.split('\n').map((line) => '\t' + line).join('\n');
169
- message += '\n' + obj_canBeApexProperty_union1.split('\n').map((line) => '\t' + line).join('\n');
170
- return new TypeError(message);
171
- }
172
- const obj_canBeSobjectField = obj.canBeSobjectField;
173
- const path_canBeSobjectField = path + '.canBeSobjectField';
174
- let obj_canBeSobjectField_union0 = null;
175
- const obj_canBeSobjectField_union0_error = (() => {
176
- if (typeof obj_canBeSobjectField !== 'string') {
177
- return new TypeError('Expected "string" but received "' + typeof obj_canBeSobjectField + '" (at "' + path_canBeSobjectField + '")');
178
- }
179
- })();
180
- if (obj_canBeSobjectField_union0_error != null) {
181
- obj_canBeSobjectField_union0 = obj_canBeSobjectField_union0_error.message;
182
- }
183
- let obj_canBeSobjectField_union1 = null;
184
- const obj_canBeSobjectField_union1_error = (() => {
185
- if (obj_canBeSobjectField !== null) {
186
- return new TypeError('Expected "null" but received "' + typeof obj_canBeSobjectField + '" (at "' + path_canBeSobjectField + '")');
187
- }
188
- })();
189
- if (obj_canBeSobjectField_union1_error != null) {
190
- obj_canBeSobjectField_union1 = obj_canBeSobjectField_union1_error.message;
191
- }
192
- if (obj_canBeSobjectField_union0 && obj_canBeSobjectField_union1) {
193
- let message = 'Object doesn\'t match union (at "' + path_canBeSobjectField + '")';
194
- message += '\n' + obj_canBeSobjectField_union0.split('\n').map((line) => '\t' + line).join('\n');
195
- message += '\n' + obj_canBeSobjectField_union1.split('\n').map((line) => '\t' + line).join('\n');
196
- return new TypeError(message);
197
- }
198
- const obj_canBeSystemVariable = obj.canBeSystemVariable;
199
- const path_canBeSystemVariable = path + '.canBeSystemVariable';
200
- let obj_canBeSystemVariable_union0 = null;
201
- const obj_canBeSystemVariable_union0_error = (() => {
202
- if (typeof obj_canBeSystemVariable !== 'string') {
203
- return new TypeError('Expected "string" but received "' + typeof obj_canBeSystemVariable + '" (at "' + path_canBeSystemVariable + '")');
204
- }
205
- })();
206
- if (obj_canBeSystemVariable_union0_error != null) {
207
- obj_canBeSystemVariable_union0 = obj_canBeSystemVariable_union0_error.message;
208
- }
209
- let obj_canBeSystemVariable_union1 = null;
210
- const obj_canBeSystemVariable_union1_error = (() => {
211
- if (obj_canBeSystemVariable !== null) {
212
- return new TypeError('Expected "null" but received "' + typeof obj_canBeSystemVariable + '" (at "' + path_canBeSystemVariable + '")');
213
- }
214
- })();
215
- if (obj_canBeSystemVariable_union1_error != null) {
216
- obj_canBeSystemVariable_union1 = obj_canBeSystemVariable_union1_error.message;
217
- }
218
- if (obj_canBeSystemVariable_union0 && obj_canBeSystemVariable_union1) {
219
- let message = 'Object doesn\'t match union (at "' + path_canBeSystemVariable + '")';
220
- message += '\n' + obj_canBeSystemVariable_union0.split('\n').map((line) => '\t' + line).join('\n');
221
- message += '\n' + obj_canBeSystemVariable_union1.split('\n').map((line) => '\t' + line).join('\n');
222
- return new TypeError(message);
223
- }
224
- const obj_cannotBeElements = obj.cannotBeElements;
225
- const path_cannotBeElements = path + '.cannotBeElements';
226
- if (!ArrayIsArray(obj_cannotBeElements)) {
227
- return new TypeError('Expected "array" but received "' + typeof obj_cannotBeElements + '" (at "' + path_cannotBeElements + '")');
228
- }
229
- for (let i = 0; i < obj_cannotBeElements.length; i++) {
230
- const obj_cannotBeElements_item = obj_cannotBeElements[i];
231
- const path_cannotBeElements_item = path_cannotBeElements + '[' + i + ']';
232
- if (typeof obj_cannotBeElements_item !== 'string') {
233
- return new TypeError('Expected "string" but received "' + typeof obj_cannotBeElements_item + '" (at "' + path_cannotBeElements_item + '")');
234
- }
235
- }
236
- const obj_dataType = obj.dataType;
237
- const path_dataType = path + '.dataType';
238
- let obj_dataType_union0 = null;
239
- const obj_dataType_union0_error = (() => {
240
- if (typeof obj_dataType !== 'string') {
241
- return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
242
- }
243
- })();
244
- if (obj_dataType_union0_error != null) {
245
- obj_dataType_union0 = obj_dataType_union0_error.message;
246
- }
247
- let obj_dataType_union1 = null;
248
- const obj_dataType_union1_error = (() => {
249
- if (obj_dataType !== null) {
250
- return new TypeError('Expected "null" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
251
- }
252
- })();
253
- if (obj_dataType_union1_error != null) {
254
- obj_dataType_union1 = obj_dataType_union1_error.message;
255
- }
256
- if (obj_dataType_union0 && obj_dataType_union1) {
257
- let message = 'Object doesn\'t match union (at "' + path_dataType + '")';
258
- message += '\n' + obj_dataType_union0.split('\n').map((line) => '\t' + line).join('\n');
259
- message += '\n' + obj_dataType_union1.split('\n').map((line) => '\t' + line).join('\n');
260
- return new TypeError(message);
261
- }
262
- const obj_isCollection = obj.isCollection;
263
- const path_isCollection = path + '.isCollection';
264
- if (typeof obj_isCollection !== 'boolean') {
265
- return new TypeError('Expected "boolean" but received "' + typeof obj_isCollection + '" (at "' + path_isCollection + '")');
266
- }
267
- const obj_isNull = obj.isNull;
268
- const path_isNull = path + '.isNull';
269
- if (typeof obj_isNull !== 'boolean') {
270
- return new TypeError('Expected "boolean" but received "' + typeof obj_isNull + '" (at "' + path_isNull + '")');
271
- }
272
- const obj_mustBeElements = obj.mustBeElements;
273
- const path_mustBeElements = path + '.mustBeElements';
274
- if (!ArrayIsArray(obj_mustBeElements)) {
275
- return new TypeError('Expected "array" but received "' + typeof obj_mustBeElements + '" (at "' + path_mustBeElements + '")');
276
- }
277
- for (let i = 0; i < obj_mustBeElements.length; i++) {
278
- const obj_mustBeElements_item = obj_mustBeElements[i];
279
- const path_mustBeElements_item = path_mustBeElements + '[' + i + ']';
280
- if (typeof obj_mustBeElements_item !== 'string') {
281
- return new TypeError('Expected "string" but received "' + typeof obj_mustBeElements_item + '" (at "' + path_mustBeElements_item + '")');
282
- }
283
- }
284
- const obj_paramType = obj.paramType;
285
- const path_paramType = path + '.paramType';
286
- let obj_paramType_union0 = null;
287
- const obj_paramType_union0_error = (() => {
288
- if (typeof obj_paramType !== 'string') {
289
- return new TypeError('Expected "string" but received "' + typeof obj_paramType + '" (at "' + path_paramType + '")');
290
- }
291
- })();
292
- if (obj_paramType_union0_error != null) {
293
- obj_paramType_union0 = obj_paramType_union0_error.message;
294
- }
295
- let obj_paramType_union1 = null;
296
- const obj_paramType_union1_error = (() => {
297
- if (obj_paramType !== null) {
298
- return new TypeError('Expected "null" but received "' + typeof obj_paramType + '" (at "' + path_paramType + '")');
299
- }
300
- })();
301
- if (obj_paramType_union1_error != null) {
302
- obj_paramType_union1 = obj_paramType_union1_error.message;
303
- }
304
- if (obj_paramType_union0 && obj_paramType_union1) {
305
- let message = 'Object doesn\'t match union (at "' + path_paramType + '")';
306
- message += '\n' + obj_paramType_union0.split('\n').map((line) => '\t' + line).join('\n');
307
- message += '\n' + obj_paramType_union1.split('\n').map((line) => '\t' + line).join('\n');
308
- return new TypeError(message);
309
- }
310
- })();
311
- return v_error === undefined ? null : v_error;
312
- }
313
- const select$3 = function FlowOperatorParameterRepresentationSelect() {
314
- return {
315
- kind: 'Fragment',
316
- version: VERSION$2,
317
- private: [],
318
- selections: [
319
- {
320
- name: 'canBeApexProperty',
321
- kind: 'Scalar'
322
- },
323
- {
324
- name: 'canBeSobjectField',
325
- kind: 'Scalar'
326
- },
327
- {
328
- name: 'canBeSystemVariable',
329
- kind: 'Scalar'
330
- },
331
- {
332
- name: 'cannotBeElements',
333
- kind: 'Scalar',
334
- plural: true
335
- },
336
- {
337
- name: 'dataType',
338
- kind: 'Scalar'
339
- },
340
- {
341
- name: 'isCollection',
342
- kind: 'Scalar'
343
- },
344
- {
345
- name: 'isNull',
346
- kind: 'Scalar'
347
- },
348
- {
349
- name: 'mustBeElements',
350
- kind: 'Scalar',
351
- plural: true
352
- },
353
- {
354
- name: 'paramType',
355
- kind: 'Scalar'
356
- }
357
- ]
358
- };
359
- };
360
- function equals$2(existing, incoming) {
361
- const existing_isCollection = existing.isCollection;
362
- const incoming_isCollection = incoming.isCollection;
363
- if (!(existing_isCollection === incoming_isCollection)) {
364
- return false;
365
- }
366
- const existing_isNull = existing.isNull;
367
- const incoming_isNull = incoming.isNull;
368
- if (!(existing_isNull === incoming_isNull)) {
369
- return false;
370
- }
371
- const existing_canBeApexProperty = existing.canBeApexProperty;
372
- const incoming_canBeApexProperty = incoming.canBeApexProperty;
373
- if (!(existing_canBeApexProperty === incoming_canBeApexProperty)) {
374
- return false;
375
- }
376
- const existing_canBeSobjectField = existing.canBeSobjectField;
377
- const incoming_canBeSobjectField = incoming.canBeSobjectField;
378
- if (!(existing_canBeSobjectField === incoming_canBeSobjectField)) {
379
- return false;
380
- }
381
- const existing_canBeSystemVariable = existing.canBeSystemVariable;
382
- const incoming_canBeSystemVariable = incoming.canBeSystemVariable;
383
- if (!(existing_canBeSystemVariable === incoming_canBeSystemVariable)) {
384
- return false;
385
- }
386
- const existing_cannotBeElements = existing.cannotBeElements;
387
- const incoming_cannotBeElements = incoming.cannotBeElements;
388
- const equals_cannotBeElements_items = equalsArray(existing_cannotBeElements, incoming_cannotBeElements, (existing_cannotBeElements_item, incoming_cannotBeElements_item) => {
389
- if (!(existing_cannotBeElements_item === incoming_cannotBeElements_item)) {
390
- return false;
391
- }
392
- });
393
- if (equals_cannotBeElements_items === false) {
394
- return false;
395
- }
396
- const existing_dataType = existing.dataType;
397
- const incoming_dataType = incoming.dataType;
398
- if (!(existing_dataType === incoming_dataType)) {
399
- return false;
400
- }
401
- const existing_mustBeElements = existing.mustBeElements;
402
- const incoming_mustBeElements = incoming.mustBeElements;
403
- const equals_mustBeElements_items = equalsArray(existing_mustBeElements, incoming_mustBeElements, (existing_mustBeElements_item, incoming_mustBeElements_item) => {
404
- if (!(existing_mustBeElements_item === incoming_mustBeElements_item)) {
405
- return false;
406
- }
407
- });
408
- if (equals_mustBeElements_items === false) {
409
- return false;
410
- }
411
- const existing_paramType = existing.paramType;
412
- const incoming_paramType = incoming.paramType;
413
- if (!(existing_paramType === incoming_paramType)) {
414
- return false;
415
- }
416
- return true;
140
+ const VERSION$2 = "1fbcf3729a54064347b98620da65caee";
141
+ function validate$2(obj, path = 'FlowOperatorParameterRepresentation') {
142
+ const v_error = (() => {
143
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
144
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
145
+ }
146
+ const obj_canBeApexProperty = obj.canBeApexProperty;
147
+ const path_canBeApexProperty = path + '.canBeApexProperty';
148
+ let obj_canBeApexProperty_union0 = null;
149
+ const obj_canBeApexProperty_union0_error = (() => {
150
+ if (typeof obj_canBeApexProperty !== 'string') {
151
+ return new TypeError('Expected "string" but received "' + typeof obj_canBeApexProperty + '" (at "' + path_canBeApexProperty + '")');
152
+ }
153
+ })();
154
+ if (obj_canBeApexProperty_union0_error != null) {
155
+ obj_canBeApexProperty_union0 = obj_canBeApexProperty_union0_error.message;
156
+ }
157
+ let obj_canBeApexProperty_union1 = null;
158
+ const obj_canBeApexProperty_union1_error = (() => {
159
+ if (obj_canBeApexProperty !== null) {
160
+ return new TypeError('Expected "null" but received "' + typeof obj_canBeApexProperty + '" (at "' + path_canBeApexProperty + '")');
161
+ }
162
+ })();
163
+ if (obj_canBeApexProperty_union1_error != null) {
164
+ obj_canBeApexProperty_union1 = obj_canBeApexProperty_union1_error.message;
165
+ }
166
+ if (obj_canBeApexProperty_union0 && obj_canBeApexProperty_union1) {
167
+ let message = 'Object doesn\'t match union (at "' + path_canBeApexProperty + '")';
168
+ message += '\n' + obj_canBeApexProperty_union0.split('\n').map((line) => '\t' + line).join('\n');
169
+ message += '\n' + obj_canBeApexProperty_union1.split('\n').map((line) => '\t' + line).join('\n');
170
+ return new TypeError(message);
171
+ }
172
+ const obj_canBeSobjectField = obj.canBeSobjectField;
173
+ const path_canBeSobjectField = path + '.canBeSobjectField';
174
+ let obj_canBeSobjectField_union0 = null;
175
+ const obj_canBeSobjectField_union0_error = (() => {
176
+ if (typeof obj_canBeSobjectField !== 'string') {
177
+ return new TypeError('Expected "string" but received "' + typeof obj_canBeSobjectField + '" (at "' + path_canBeSobjectField + '")');
178
+ }
179
+ })();
180
+ if (obj_canBeSobjectField_union0_error != null) {
181
+ obj_canBeSobjectField_union0 = obj_canBeSobjectField_union0_error.message;
182
+ }
183
+ let obj_canBeSobjectField_union1 = null;
184
+ const obj_canBeSobjectField_union1_error = (() => {
185
+ if (obj_canBeSobjectField !== null) {
186
+ return new TypeError('Expected "null" but received "' + typeof obj_canBeSobjectField + '" (at "' + path_canBeSobjectField + '")');
187
+ }
188
+ })();
189
+ if (obj_canBeSobjectField_union1_error != null) {
190
+ obj_canBeSobjectField_union1 = obj_canBeSobjectField_union1_error.message;
191
+ }
192
+ if (obj_canBeSobjectField_union0 && obj_canBeSobjectField_union1) {
193
+ let message = 'Object doesn\'t match union (at "' + path_canBeSobjectField + '")';
194
+ message += '\n' + obj_canBeSobjectField_union0.split('\n').map((line) => '\t' + line).join('\n');
195
+ message += '\n' + obj_canBeSobjectField_union1.split('\n').map((line) => '\t' + line).join('\n');
196
+ return new TypeError(message);
197
+ }
198
+ const obj_canBeSystemVariable = obj.canBeSystemVariable;
199
+ const path_canBeSystemVariable = path + '.canBeSystemVariable';
200
+ let obj_canBeSystemVariable_union0 = null;
201
+ const obj_canBeSystemVariable_union0_error = (() => {
202
+ if (typeof obj_canBeSystemVariable !== 'string') {
203
+ return new TypeError('Expected "string" but received "' + typeof obj_canBeSystemVariable + '" (at "' + path_canBeSystemVariable + '")');
204
+ }
205
+ })();
206
+ if (obj_canBeSystemVariable_union0_error != null) {
207
+ obj_canBeSystemVariable_union0 = obj_canBeSystemVariable_union0_error.message;
208
+ }
209
+ let obj_canBeSystemVariable_union1 = null;
210
+ const obj_canBeSystemVariable_union1_error = (() => {
211
+ if (obj_canBeSystemVariable !== null) {
212
+ return new TypeError('Expected "null" but received "' + typeof obj_canBeSystemVariable + '" (at "' + path_canBeSystemVariable + '")');
213
+ }
214
+ })();
215
+ if (obj_canBeSystemVariable_union1_error != null) {
216
+ obj_canBeSystemVariable_union1 = obj_canBeSystemVariable_union1_error.message;
217
+ }
218
+ if (obj_canBeSystemVariable_union0 && obj_canBeSystemVariable_union1) {
219
+ let message = 'Object doesn\'t match union (at "' + path_canBeSystemVariable + '")';
220
+ message += '\n' + obj_canBeSystemVariable_union0.split('\n').map((line) => '\t' + line).join('\n');
221
+ message += '\n' + obj_canBeSystemVariable_union1.split('\n').map((line) => '\t' + line).join('\n');
222
+ return new TypeError(message);
223
+ }
224
+ const obj_cannotBeElements = obj.cannotBeElements;
225
+ const path_cannotBeElements = path + '.cannotBeElements';
226
+ if (!ArrayIsArray(obj_cannotBeElements)) {
227
+ return new TypeError('Expected "array" but received "' + typeof obj_cannotBeElements + '" (at "' + path_cannotBeElements + '")');
228
+ }
229
+ for (let i = 0; i < obj_cannotBeElements.length; i++) {
230
+ const obj_cannotBeElements_item = obj_cannotBeElements[i];
231
+ const path_cannotBeElements_item = path_cannotBeElements + '[' + i + ']';
232
+ if (typeof obj_cannotBeElements_item !== 'string') {
233
+ return new TypeError('Expected "string" but received "' + typeof obj_cannotBeElements_item + '" (at "' + path_cannotBeElements_item + '")');
234
+ }
235
+ }
236
+ const obj_dataType = obj.dataType;
237
+ const path_dataType = path + '.dataType';
238
+ let obj_dataType_union0 = null;
239
+ const obj_dataType_union0_error = (() => {
240
+ if (typeof obj_dataType !== 'string') {
241
+ return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
242
+ }
243
+ })();
244
+ if (obj_dataType_union0_error != null) {
245
+ obj_dataType_union0 = obj_dataType_union0_error.message;
246
+ }
247
+ let obj_dataType_union1 = null;
248
+ const obj_dataType_union1_error = (() => {
249
+ if (obj_dataType !== null) {
250
+ return new TypeError('Expected "null" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
251
+ }
252
+ })();
253
+ if (obj_dataType_union1_error != null) {
254
+ obj_dataType_union1 = obj_dataType_union1_error.message;
255
+ }
256
+ if (obj_dataType_union0 && obj_dataType_union1) {
257
+ let message = 'Object doesn\'t match union (at "' + path_dataType + '")';
258
+ message += '\n' + obj_dataType_union0.split('\n').map((line) => '\t' + line).join('\n');
259
+ message += '\n' + obj_dataType_union1.split('\n').map((line) => '\t' + line).join('\n');
260
+ return new TypeError(message);
261
+ }
262
+ const obj_isCollection = obj.isCollection;
263
+ const path_isCollection = path + '.isCollection';
264
+ if (typeof obj_isCollection !== 'boolean') {
265
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isCollection + '" (at "' + path_isCollection + '")');
266
+ }
267
+ const obj_isNull = obj.isNull;
268
+ const path_isNull = path + '.isNull';
269
+ if (typeof obj_isNull !== 'boolean') {
270
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isNull + '" (at "' + path_isNull + '")');
271
+ }
272
+ const obj_mustBeElements = obj.mustBeElements;
273
+ const path_mustBeElements = path + '.mustBeElements';
274
+ if (!ArrayIsArray(obj_mustBeElements)) {
275
+ return new TypeError('Expected "array" but received "' + typeof obj_mustBeElements + '" (at "' + path_mustBeElements + '")');
276
+ }
277
+ for (let i = 0; i < obj_mustBeElements.length; i++) {
278
+ const obj_mustBeElements_item = obj_mustBeElements[i];
279
+ const path_mustBeElements_item = path_mustBeElements + '[' + i + ']';
280
+ if (typeof obj_mustBeElements_item !== 'string') {
281
+ return new TypeError('Expected "string" but received "' + typeof obj_mustBeElements_item + '" (at "' + path_mustBeElements_item + '")');
282
+ }
283
+ }
284
+ const obj_paramType = obj.paramType;
285
+ const path_paramType = path + '.paramType';
286
+ let obj_paramType_union0 = null;
287
+ const obj_paramType_union0_error = (() => {
288
+ if (typeof obj_paramType !== 'string') {
289
+ return new TypeError('Expected "string" but received "' + typeof obj_paramType + '" (at "' + path_paramType + '")');
290
+ }
291
+ })();
292
+ if (obj_paramType_union0_error != null) {
293
+ obj_paramType_union0 = obj_paramType_union0_error.message;
294
+ }
295
+ let obj_paramType_union1 = null;
296
+ const obj_paramType_union1_error = (() => {
297
+ if (obj_paramType !== null) {
298
+ return new TypeError('Expected "null" but received "' + typeof obj_paramType + '" (at "' + path_paramType + '")');
299
+ }
300
+ })();
301
+ if (obj_paramType_union1_error != null) {
302
+ obj_paramType_union1 = obj_paramType_union1_error.message;
303
+ }
304
+ if (obj_paramType_union0 && obj_paramType_union1) {
305
+ let message = 'Object doesn\'t match union (at "' + path_paramType + '")';
306
+ message += '\n' + obj_paramType_union0.split('\n').map((line) => '\t' + line).join('\n');
307
+ message += '\n' + obj_paramType_union1.split('\n').map((line) => '\t' + line).join('\n');
308
+ return new TypeError(message);
309
+ }
310
+ })();
311
+ return v_error === undefined ? null : v_error;
312
+ }
313
+ const select$3 = function FlowOperatorParameterRepresentationSelect() {
314
+ return {
315
+ kind: 'Fragment',
316
+ version: VERSION$2,
317
+ private: [],
318
+ selections: [
319
+ {
320
+ name: 'canBeApexProperty',
321
+ kind: 'Scalar'
322
+ },
323
+ {
324
+ name: 'canBeSobjectField',
325
+ kind: 'Scalar'
326
+ },
327
+ {
328
+ name: 'canBeSystemVariable',
329
+ kind: 'Scalar'
330
+ },
331
+ {
332
+ name: 'cannotBeElements',
333
+ kind: 'Scalar',
334
+ plural: true
335
+ },
336
+ {
337
+ name: 'dataType',
338
+ kind: 'Scalar'
339
+ },
340
+ {
341
+ name: 'isCollection',
342
+ kind: 'Scalar'
343
+ },
344
+ {
345
+ name: 'isNull',
346
+ kind: 'Scalar'
347
+ },
348
+ {
349
+ name: 'mustBeElements',
350
+ kind: 'Scalar',
351
+ plural: true
352
+ },
353
+ {
354
+ name: 'paramType',
355
+ kind: 'Scalar'
356
+ }
357
+ ]
358
+ };
359
+ };
360
+ function equals$2(existing, incoming) {
361
+ const existing_isCollection = existing.isCollection;
362
+ const incoming_isCollection = incoming.isCollection;
363
+ if (!(existing_isCollection === incoming_isCollection)) {
364
+ return false;
365
+ }
366
+ const existing_isNull = existing.isNull;
367
+ const incoming_isNull = incoming.isNull;
368
+ if (!(existing_isNull === incoming_isNull)) {
369
+ return false;
370
+ }
371
+ const existing_canBeApexProperty = existing.canBeApexProperty;
372
+ const incoming_canBeApexProperty = incoming.canBeApexProperty;
373
+ if (!(existing_canBeApexProperty === incoming_canBeApexProperty)) {
374
+ return false;
375
+ }
376
+ const existing_canBeSobjectField = existing.canBeSobjectField;
377
+ const incoming_canBeSobjectField = incoming.canBeSobjectField;
378
+ if (!(existing_canBeSobjectField === incoming_canBeSobjectField)) {
379
+ return false;
380
+ }
381
+ const existing_canBeSystemVariable = existing.canBeSystemVariable;
382
+ const incoming_canBeSystemVariable = incoming.canBeSystemVariable;
383
+ if (!(existing_canBeSystemVariable === incoming_canBeSystemVariable)) {
384
+ return false;
385
+ }
386
+ const existing_cannotBeElements = existing.cannotBeElements;
387
+ const incoming_cannotBeElements = incoming.cannotBeElements;
388
+ const equals_cannotBeElements_items = equalsArray(existing_cannotBeElements, incoming_cannotBeElements, (existing_cannotBeElements_item, incoming_cannotBeElements_item) => {
389
+ if (!(existing_cannotBeElements_item === incoming_cannotBeElements_item)) {
390
+ return false;
391
+ }
392
+ });
393
+ if (equals_cannotBeElements_items === false) {
394
+ return false;
395
+ }
396
+ const existing_dataType = existing.dataType;
397
+ const incoming_dataType = incoming.dataType;
398
+ if (!(existing_dataType === incoming_dataType)) {
399
+ return false;
400
+ }
401
+ const existing_mustBeElements = existing.mustBeElements;
402
+ const incoming_mustBeElements = incoming.mustBeElements;
403
+ const equals_mustBeElements_items = equalsArray(existing_mustBeElements, incoming_mustBeElements, (existing_mustBeElements_item, incoming_mustBeElements_item) => {
404
+ if (!(existing_mustBeElements_item === incoming_mustBeElements_item)) {
405
+ return false;
406
+ }
407
+ });
408
+ if (equals_mustBeElements_items === false) {
409
+ return false;
410
+ }
411
+ const existing_paramType = existing.paramType;
412
+ const incoming_paramType = incoming.paramType;
413
+ if (!(existing_paramType === incoming_paramType)) {
414
+ return false;
415
+ }
416
+ return true;
417
417
  }
418
418
 
419
- const VERSION$1 = "db9c200fd0583df1c75001ba9a103995";
420
- function validate$1(obj, path = 'FlowOperatorRuleRepresentation') {
421
- const v_error = (() => {
422
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
423
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
424
- }
425
- const obj_assignmentOperator = obj.assignmentOperator;
426
- const path_assignmentOperator = path + '.assignmentOperator';
427
- const referencepath_assignmentOperatorValidationError = validate$3(obj_assignmentOperator, path_assignmentOperator);
428
- if (referencepath_assignmentOperatorValidationError !== null) {
429
- let message = 'Object doesn\'t match FlowOperatorRepresentation (at "' + path_assignmentOperator + '")\n';
430
- message += referencepath_assignmentOperatorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
431
- return new TypeError(message);
432
- }
433
- const obj_comparisonOperator = obj.comparisonOperator;
434
- const path_comparisonOperator = path + '.comparisonOperator';
435
- const referencepath_comparisonOperatorValidationError = validate$3(obj_comparisonOperator, path_comparisonOperator);
436
- if (referencepath_comparisonOperatorValidationError !== null) {
437
- let message = 'Object doesn\'t match FlowOperatorRepresentation (at "' + path_comparisonOperator + '")\n';
438
- message += referencepath_comparisonOperatorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
439
- return new TypeError(message);
440
- }
441
- const obj_excludeElems = obj.excludeElems;
442
- const path_excludeElems = path + '.excludeElems';
443
- if (!ArrayIsArray(obj_excludeElems)) {
444
- return new TypeError('Expected "array" but received "' + typeof obj_excludeElems + '" (at "' + path_excludeElems + '")');
445
- }
446
- for (let i = 0; i < obj_excludeElems.length; i++) {
447
- const obj_excludeElems_item = obj_excludeElems[i];
448
- const path_excludeElems_item = path_excludeElems + '[' + i + ']';
449
- if (typeof obj_excludeElems_item !== 'string') {
450
- return new TypeError('Expected "string" but received "' + typeof obj_excludeElems_item + '" (at "' + path_excludeElems_item + '")');
451
- }
452
- }
453
- const obj_includeElems = obj.includeElems;
454
- const path_includeElems = path + '.includeElems';
455
- if (!ArrayIsArray(obj_includeElems)) {
456
- return new TypeError('Expected "array" but received "' + typeof obj_includeElems + '" (at "' + path_includeElems + '")');
457
- }
458
- for (let i = 0; i < obj_includeElems.length; i++) {
459
- const obj_includeElems_item = obj_includeElems[i];
460
- const path_includeElems_item = path_includeElems + '[' + i + ']';
461
- if (typeof obj_includeElems_item !== 'string') {
462
- return new TypeError('Expected "string" but received "' + typeof obj_includeElems_item + '" (at "' + path_includeElems_item + '")');
463
- }
464
- }
465
- const obj_left = obj.left;
466
- const path_left = path + '.left';
467
- const referencepath_leftValidationError = validate$2(obj_left, path_left);
468
- if (referencepath_leftValidationError !== null) {
469
- let message = 'Object doesn\'t match FlowOperatorParameterRepresentation (at "' + path_left + '")\n';
470
- message += referencepath_leftValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
471
- return new TypeError(message);
472
- }
473
- const obj_rhsParams = obj.rhsParams;
474
- const path_rhsParams = path + '.rhsParams';
475
- if (!ArrayIsArray(obj_rhsParams)) {
476
- return new TypeError('Expected "array" but received "' + typeof obj_rhsParams + '" (at "' + path_rhsParams + '")');
477
- }
478
- for (let i = 0; i < obj_rhsParams.length; i++) {
479
- const obj_rhsParams_item = obj_rhsParams[i];
480
- const path_rhsParams_item = path_rhsParams + '[' + i + ']';
481
- const referencepath_rhsParams_itemValidationError = validate$2(obj_rhsParams_item, path_rhsParams_item);
482
- if (referencepath_rhsParams_itemValidationError !== null) {
483
- let message = 'Object doesn\'t match FlowOperatorParameterRepresentation (at "' + path_rhsParams_item + '")\n';
484
- message += referencepath_rhsParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
485
- return new TypeError(message);
486
- }
487
- }
488
- const obj_ruleType = obj.ruleType;
489
- const path_ruleType = path + '.ruleType';
490
- if (typeof obj_ruleType !== 'string') {
491
- return new TypeError('Expected "string" but received "' + typeof obj_ruleType + '" (at "' + path_ruleType + '")');
492
- }
493
- const obj_validationType = obj.validationType;
494
- const path_validationType = path + '.validationType';
495
- let obj_validationType_union0 = null;
496
- const obj_validationType_union0_error = (() => {
497
- if (typeof obj_validationType !== 'string') {
498
- return new TypeError('Expected "string" but received "' + typeof obj_validationType + '" (at "' + path_validationType + '")');
499
- }
500
- })();
501
- if (obj_validationType_union0_error != null) {
502
- obj_validationType_union0 = obj_validationType_union0_error.message;
503
- }
504
- let obj_validationType_union1 = null;
505
- const obj_validationType_union1_error = (() => {
506
- if (obj_validationType !== null) {
507
- return new TypeError('Expected "null" but received "' + typeof obj_validationType + '" (at "' + path_validationType + '")');
508
- }
509
- })();
510
- if (obj_validationType_union1_error != null) {
511
- obj_validationType_union1 = obj_validationType_union1_error.message;
512
- }
513
- if (obj_validationType_union0 && obj_validationType_union1) {
514
- let message = 'Object doesn\'t match union (at "' + path_validationType + '")';
515
- message += '\n' + obj_validationType_union0.split('\n').map((line) => '\t' + line).join('\n');
516
- message += '\n' + obj_validationType_union1.split('\n').map((line) => '\t' + line).join('\n');
517
- return new TypeError(message);
518
- }
519
- })();
520
- return v_error === undefined ? null : v_error;
521
- }
522
- const select$2 = function FlowOperatorRuleRepresentationSelect() {
523
- const { selections: FlowOperatorRepresentation__selections, opaque: FlowOperatorRepresentation__opaque, } = select$4();
524
- const { selections: FlowOperatorParameterRepresentation__selections, opaque: FlowOperatorParameterRepresentation__opaque, } = select$3();
525
- return {
526
- kind: 'Fragment',
527
- version: VERSION$1,
528
- private: [],
529
- selections: [
530
- {
531
- name: 'assignmentOperator',
532
- kind: 'Object',
533
- selections: FlowOperatorRepresentation__selections
534
- },
535
- {
536
- name: 'comparisonOperator',
537
- kind: 'Object',
538
- selections: FlowOperatorRepresentation__selections
539
- },
540
- {
541
- name: 'excludeElems',
542
- kind: 'Scalar',
543
- plural: true
544
- },
545
- {
546
- name: 'includeElems',
547
- kind: 'Scalar',
548
- plural: true
549
- },
550
- {
551
- name: 'left',
552
- kind: 'Object',
553
- selections: FlowOperatorParameterRepresentation__selections
554
- },
555
- {
556
- name: 'rhsParams',
557
- kind: 'Object',
558
- plural: true,
559
- selections: FlowOperatorParameterRepresentation__selections
560
- },
561
- {
562
- name: 'ruleType',
563
- kind: 'Scalar'
564
- },
565
- {
566
- name: 'validationType',
567
- kind: 'Scalar'
568
- }
569
- ]
570
- };
571
- };
572
- function equals$1(existing, incoming) {
573
- const existing_ruleType = existing.ruleType;
574
- const incoming_ruleType = incoming.ruleType;
575
- if (!(existing_ruleType === incoming_ruleType)) {
576
- return false;
577
- }
578
- const existing_assignmentOperator = existing.assignmentOperator;
579
- const incoming_assignmentOperator = incoming.assignmentOperator;
580
- if (!(equals$3(existing_assignmentOperator, incoming_assignmentOperator))) {
581
- return false;
582
- }
583
- const existing_comparisonOperator = existing.comparisonOperator;
584
- const incoming_comparisonOperator = incoming.comparisonOperator;
585
- if (!(equals$3(existing_comparisonOperator, incoming_comparisonOperator))) {
586
- return false;
587
- }
588
- const existing_excludeElems = existing.excludeElems;
589
- const incoming_excludeElems = incoming.excludeElems;
590
- const equals_excludeElems_items = equalsArray(existing_excludeElems, incoming_excludeElems, (existing_excludeElems_item, incoming_excludeElems_item) => {
591
- if (!(existing_excludeElems_item === incoming_excludeElems_item)) {
592
- return false;
593
- }
594
- });
595
- if (equals_excludeElems_items === false) {
596
- return false;
597
- }
598
- const existing_includeElems = existing.includeElems;
599
- const incoming_includeElems = incoming.includeElems;
600
- const equals_includeElems_items = equalsArray(existing_includeElems, incoming_includeElems, (existing_includeElems_item, incoming_includeElems_item) => {
601
- if (!(existing_includeElems_item === incoming_includeElems_item)) {
602
- return false;
603
- }
604
- });
605
- if (equals_includeElems_items === false) {
606
- return false;
607
- }
608
- const existing_left = existing.left;
609
- const incoming_left = incoming.left;
610
- if (!(equals$2(existing_left, incoming_left))) {
611
- return false;
612
- }
613
- const existing_rhsParams = existing.rhsParams;
614
- const incoming_rhsParams = incoming.rhsParams;
615
- const equals_rhsParams_items = equalsArray(existing_rhsParams, incoming_rhsParams, (existing_rhsParams_item, incoming_rhsParams_item) => {
616
- if (!(equals$2(existing_rhsParams_item, incoming_rhsParams_item))) {
617
- return false;
618
- }
619
- });
620
- if (equals_rhsParams_items === false) {
621
- return false;
622
- }
623
- const existing_validationType = existing.validationType;
624
- const incoming_validationType = incoming.validationType;
625
- if (!(existing_validationType === incoming_validationType)) {
626
- return false;
627
- }
628
- return true;
419
+ const VERSION$1 = "db9c200fd0583df1c75001ba9a103995";
420
+ function validate$1(obj, path = 'FlowOperatorRuleRepresentation') {
421
+ const v_error = (() => {
422
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
423
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
424
+ }
425
+ const obj_assignmentOperator = obj.assignmentOperator;
426
+ const path_assignmentOperator = path + '.assignmentOperator';
427
+ const referencepath_assignmentOperatorValidationError = validate$3(obj_assignmentOperator, path_assignmentOperator);
428
+ if (referencepath_assignmentOperatorValidationError !== null) {
429
+ let message = 'Object doesn\'t match FlowOperatorRepresentation (at "' + path_assignmentOperator + '")\n';
430
+ message += referencepath_assignmentOperatorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
431
+ return new TypeError(message);
432
+ }
433
+ const obj_comparisonOperator = obj.comparisonOperator;
434
+ const path_comparisonOperator = path + '.comparisonOperator';
435
+ const referencepath_comparisonOperatorValidationError = validate$3(obj_comparisonOperator, path_comparisonOperator);
436
+ if (referencepath_comparisonOperatorValidationError !== null) {
437
+ let message = 'Object doesn\'t match FlowOperatorRepresentation (at "' + path_comparisonOperator + '")\n';
438
+ message += referencepath_comparisonOperatorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
439
+ return new TypeError(message);
440
+ }
441
+ const obj_excludeElems = obj.excludeElems;
442
+ const path_excludeElems = path + '.excludeElems';
443
+ if (!ArrayIsArray(obj_excludeElems)) {
444
+ return new TypeError('Expected "array" but received "' + typeof obj_excludeElems + '" (at "' + path_excludeElems + '")');
445
+ }
446
+ for (let i = 0; i < obj_excludeElems.length; i++) {
447
+ const obj_excludeElems_item = obj_excludeElems[i];
448
+ const path_excludeElems_item = path_excludeElems + '[' + i + ']';
449
+ if (typeof obj_excludeElems_item !== 'string') {
450
+ return new TypeError('Expected "string" but received "' + typeof obj_excludeElems_item + '" (at "' + path_excludeElems_item + '")');
451
+ }
452
+ }
453
+ const obj_includeElems = obj.includeElems;
454
+ const path_includeElems = path + '.includeElems';
455
+ if (!ArrayIsArray(obj_includeElems)) {
456
+ return new TypeError('Expected "array" but received "' + typeof obj_includeElems + '" (at "' + path_includeElems + '")');
457
+ }
458
+ for (let i = 0; i < obj_includeElems.length; i++) {
459
+ const obj_includeElems_item = obj_includeElems[i];
460
+ const path_includeElems_item = path_includeElems + '[' + i + ']';
461
+ if (typeof obj_includeElems_item !== 'string') {
462
+ return new TypeError('Expected "string" but received "' + typeof obj_includeElems_item + '" (at "' + path_includeElems_item + '")');
463
+ }
464
+ }
465
+ const obj_left = obj.left;
466
+ const path_left = path + '.left';
467
+ const referencepath_leftValidationError = validate$2(obj_left, path_left);
468
+ if (referencepath_leftValidationError !== null) {
469
+ let message = 'Object doesn\'t match FlowOperatorParameterRepresentation (at "' + path_left + '")\n';
470
+ message += referencepath_leftValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
471
+ return new TypeError(message);
472
+ }
473
+ const obj_rhsParams = obj.rhsParams;
474
+ const path_rhsParams = path + '.rhsParams';
475
+ if (!ArrayIsArray(obj_rhsParams)) {
476
+ return new TypeError('Expected "array" but received "' + typeof obj_rhsParams + '" (at "' + path_rhsParams + '")');
477
+ }
478
+ for (let i = 0; i < obj_rhsParams.length; i++) {
479
+ const obj_rhsParams_item = obj_rhsParams[i];
480
+ const path_rhsParams_item = path_rhsParams + '[' + i + ']';
481
+ const referencepath_rhsParams_itemValidationError = validate$2(obj_rhsParams_item, path_rhsParams_item);
482
+ if (referencepath_rhsParams_itemValidationError !== null) {
483
+ let message = 'Object doesn\'t match FlowOperatorParameterRepresentation (at "' + path_rhsParams_item + '")\n';
484
+ message += referencepath_rhsParams_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
485
+ return new TypeError(message);
486
+ }
487
+ }
488
+ const obj_ruleType = obj.ruleType;
489
+ const path_ruleType = path + '.ruleType';
490
+ if (typeof obj_ruleType !== 'string') {
491
+ return new TypeError('Expected "string" but received "' + typeof obj_ruleType + '" (at "' + path_ruleType + '")');
492
+ }
493
+ const obj_validationType = obj.validationType;
494
+ const path_validationType = path + '.validationType';
495
+ let obj_validationType_union0 = null;
496
+ const obj_validationType_union0_error = (() => {
497
+ if (typeof obj_validationType !== 'string') {
498
+ return new TypeError('Expected "string" but received "' + typeof obj_validationType + '" (at "' + path_validationType + '")');
499
+ }
500
+ })();
501
+ if (obj_validationType_union0_error != null) {
502
+ obj_validationType_union0 = obj_validationType_union0_error.message;
503
+ }
504
+ let obj_validationType_union1 = null;
505
+ const obj_validationType_union1_error = (() => {
506
+ if (obj_validationType !== null) {
507
+ return new TypeError('Expected "null" but received "' + typeof obj_validationType + '" (at "' + path_validationType + '")');
508
+ }
509
+ })();
510
+ if (obj_validationType_union1_error != null) {
511
+ obj_validationType_union1 = obj_validationType_union1_error.message;
512
+ }
513
+ if (obj_validationType_union0 && obj_validationType_union1) {
514
+ let message = 'Object doesn\'t match union (at "' + path_validationType + '")';
515
+ message += '\n' + obj_validationType_union0.split('\n').map((line) => '\t' + line).join('\n');
516
+ message += '\n' + obj_validationType_union1.split('\n').map((line) => '\t' + line).join('\n');
517
+ return new TypeError(message);
518
+ }
519
+ })();
520
+ return v_error === undefined ? null : v_error;
521
+ }
522
+ const select$2 = function FlowOperatorRuleRepresentationSelect() {
523
+ const { selections: FlowOperatorRepresentation__selections, opaque: FlowOperatorRepresentation__opaque, } = select$4();
524
+ const { selections: FlowOperatorParameterRepresentation__selections, opaque: FlowOperatorParameterRepresentation__opaque, } = select$3();
525
+ return {
526
+ kind: 'Fragment',
527
+ version: VERSION$1,
528
+ private: [],
529
+ selections: [
530
+ {
531
+ name: 'assignmentOperator',
532
+ kind: 'Object',
533
+ selections: FlowOperatorRepresentation__selections
534
+ },
535
+ {
536
+ name: 'comparisonOperator',
537
+ kind: 'Object',
538
+ selections: FlowOperatorRepresentation__selections
539
+ },
540
+ {
541
+ name: 'excludeElems',
542
+ kind: 'Scalar',
543
+ plural: true
544
+ },
545
+ {
546
+ name: 'includeElems',
547
+ kind: 'Scalar',
548
+ plural: true
549
+ },
550
+ {
551
+ name: 'left',
552
+ kind: 'Object',
553
+ selections: FlowOperatorParameterRepresentation__selections
554
+ },
555
+ {
556
+ name: 'rhsParams',
557
+ kind: 'Object',
558
+ plural: true,
559
+ selections: FlowOperatorParameterRepresentation__selections
560
+ },
561
+ {
562
+ name: 'ruleType',
563
+ kind: 'Scalar'
564
+ },
565
+ {
566
+ name: 'validationType',
567
+ kind: 'Scalar'
568
+ }
569
+ ]
570
+ };
571
+ };
572
+ function equals$1(existing, incoming) {
573
+ const existing_ruleType = existing.ruleType;
574
+ const incoming_ruleType = incoming.ruleType;
575
+ if (!(existing_ruleType === incoming_ruleType)) {
576
+ return false;
577
+ }
578
+ const existing_assignmentOperator = existing.assignmentOperator;
579
+ const incoming_assignmentOperator = incoming.assignmentOperator;
580
+ if (!(equals$3(existing_assignmentOperator, incoming_assignmentOperator))) {
581
+ return false;
582
+ }
583
+ const existing_comparisonOperator = existing.comparisonOperator;
584
+ const incoming_comparisonOperator = incoming.comparisonOperator;
585
+ if (!(equals$3(existing_comparisonOperator, incoming_comparisonOperator))) {
586
+ return false;
587
+ }
588
+ const existing_excludeElems = existing.excludeElems;
589
+ const incoming_excludeElems = incoming.excludeElems;
590
+ const equals_excludeElems_items = equalsArray(existing_excludeElems, incoming_excludeElems, (existing_excludeElems_item, incoming_excludeElems_item) => {
591
+ if (!(existing_excludeElems_item === incoming_excludeElems_item)) {
592
+ return false;
593
+ }
594
+ });
595
+ if (equals_excludeElems_items === false) {
596
+ return false;
597
+ }
598
+ const existing_includeElems = existing.includeElems;
599
+ const incoming_includeElems = incoming.includeElems;
600
+ const equals_includeElems_items = equalsArray(existing_includeElems, incoming_includeElems, (existing_includeElems_item, incoming_includeElems_item) => {
601
+ if (!(existing_includeElems_item === incoming_includeElems_item)) {
602
+ return false;
603
+ }
604
+ });
605
+ if (equals_includeElems_items === false) {
606
+ return false;
607
+ }
608
+ const existing_left = existing.left;
609
+ const incoming_left = incoming.left;
610
+ if (!(equals$2(existing_left, incoming_left))) {
611
+ return false;
612
+ }
613
+ const existing_rhsParams = existing.rhsParams;
614
+ const incoming_rhsParams = incoming.rhsParams;
615
+ const equals_rhsParams_items = equalsArray(existing_rhsParams, incoming_rhsParams, (existing_rhsParams_item, incoming_rhsParams_item) => {
616
+ if (!(equals$2(existing_rhsParams_item, incoming_rhsParams_item))) {
617
+ return false;
618
+ }
619
+ });
620
+ if (equals_rhsParams_items === false) {
621
+ return false;
622
+ }
623
+ const existing_validationType = existing.validationType;
624
+ const incoming_validationType = incoming.validationType;
625
+ if (!(existing_validationType === incoming_validationType)) {
626
+ return false;
627
+ }
628
+ return true;
629
629
  }
630
630
 
631
- const VERSION = "7b00537edb93014057d98c364ea0fc84";
632
- function validate(obj, path = 'FlowOperatorRuleCollectionRepresentation') {
633
- const v_error = (() => {
634
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
635
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
636
- }
637
- const obj_rules = obj.rules;
638
- const path_rules = path + '.rules';
639
- if (!ArrayIsArray(obj_rules)) {
640
- return new TypeError('Expected "array" but received "' + typeof obj_rules + '" (at "' + path_rules + '")');
641
- }
642
- for (let i = 0; i < obj_rules.length; i++) {
643
- const obj_rules_item = obj_rules[i];
644
- const path_rules_item = path_rules + '[' + i + ']';
645
- const referencepath_rules_itemValidationError = validate$1(obj_rules_item, path_rules_item);
646
- if (referencepath_rules_itemValidationError !== null) {
647
- let message = 'Object doesn\'t match FlowOperatorRuleRepresentation (at "' + path_rules_item + '")\n';
648
- message += referencepath_rules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
649
- return new TypeError(message);
650
- }
651
- }
652
- })();
653
- return v_error === undefined ? null : v_error;
654
- }
655
- const RepresentationType = 'FlowOperatorRuleCollectionRepresentation';
656
- function normalize(input, existing, path, luvio, store, timestamp) {
657
- return input;
658
- }
659
- const select$1 = function FlowOperatorRuleCollectionRepresentationSelect() {
660
- const { selections: FlowOperatorRuleRepresentation__selections, opaque: FlowOperatorRuleRepresentation__opaque, } = select$2();
661
- return {
662
- kind: 'Fragment',
663
- version: VERSION,
664
- private: [],
665
- selections: [
666
- {
667
- name: 'rules',
668
- kind: 'Object',
669
- plural: true,
670
- selections: FlowOperatorRuleRepresentation__selections
671
- }
672
- ]
673
- };
674
- };
675
- function equals(existing, incoming) {
676
- const existing_rules = existing.rules;
677
- const incoming_rules = incoming.rules;
678
- const equals_rules_items = equalsArray(existing_rules, incoming_rules, (existing_rules_item, incoming_rules_item) => {
679
- if (!(equals$1(existing_rules_item, incoming_rules_item))) {
680
- return false;
681
- }
682
- });
683
- if (equals_rules_items === false) {
684
- return false;
685
- }
686
- return true;
687
- }
688
- const ingest = function FlowOperatorRuleCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
689
- if (process.env.NODE_ENV !== 'production') {
690
- const validateError = validate(input);
691
- if (validateError !== null) {
692
- throw validateError;
693
- }
694
- }
695
- const key = path.fullPath;
696
- const existingRecord = store.readEntry(key);
697
- const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
698
- let incomingRecord = normalize(input, store.readEntry(key), {
699
- fullPath: key,
700
- parent: path.parent,
701
- propertyName: path.propertyName,
702
- ttl: ttlToUse
703
- });
704
- if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
705
- luvio.storePublish(key, incomingRecord);
706
- }
707
- if (ttlToUse !== undefined) {
708
- const storeMetadataParams = {
709
- ttl: ttlToUse,
710
- namespace: "flow-builder",
711
- version: VERSION,
712
- representationName: RepresentationType,
713
- };
714
- luvio.publishStoreMetadata(key, storeMetadataParams);
715
- }
716
- return createLink(key);
717
- };
718
- function getTypeCacheKeys(luvio, input, fullPathFactory) {
719
- const rootKeySet = new StoreKeyMap();
720
- // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
721
- const rootKey = fullPathFactory();
722
- rootKeySet.set(rootKey, {
723
- namespace: keyPrefix,
724
- representationName: RepresentationType,
725
- mergeable: false
726
- });
727
- return rootKeySet;
631
+ const VERSION = "7b00537edb93014057d98c364ea0fc84";
632
+ function validate(obj, path = 'FlowOperatorRuleCollectionRepresentation') {
633
+ const v_error = (() => {
634
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
635
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
636
+ }
637
+ const obj_rules = obj.rules;
638
+ const path_rules = path + '.rules';
639
+ if (!ArrayIsArray(obj_rules)) {
640
+ return new TypeError('Expected "array" but received "' + typeof obj_rules + '" (at "' + path_rules + '")');
641
+ }
642
+ for (let i = 0; i < obj_rules.length; i++) {
643
+ const obj_rules_item = obj_rules[i];
644
+ const path_rules_item = path_rules + '[' + i + ']';
645
+ const referencepath_rules_itemValidationError = validate$1(obj_rules_item, path_rules_item);
646
+ if (referencepath_rules_itemValidationError !== null) {
647
+ let message = 'Object doesn\'t match FlowOperatorRuleRepresentation (at "' + path_rules_item + '")\n';
648
+ message += referencepath_rules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
649
+ return new TypeError(message);
650
+ }
651
+ }
652
+ })();
653
+ return v_error === undefined ? null : v_error;
654
+ }
655
+ const RepresentationType = 'FlowOperatorRuleCollectionRepresentation';
656
+ function normalize(input, existing, path, luvio, store, timestamp) {
657
+ return input;
658
+ }
659
+ const select$1 = function FlowOperatorRuleCollectionRepresentationSelect() {
660
+ const { selections: FlowOperatorRuleRepresentation__selections, opaque: FlowOperatorRuleRepresentation__opaque, } = select$2();
661
+ return {
662
+ kind: 'Fragment',
663
+ version: VERSION,
664
+ private: [],
665
+ selections: [
666
+ {
667
+ name: 'rules',
668
+ kind: 'Object',
669
+ plural: true,
670
+ selections: FlowOperatorRuleRepresentation__selections
671
+ }
672
+ ]
673
+ };
674
+ };
675
+ function equals(existing, incoming) {
676
+ const existing_rules = existing.rules;
677
+ const incoming_rules = incoming.rules;
678
+ const equals_rules_items = equalsArray(existing_rules, incoming_rules, (existing_rules_item, incoming_rules_item) => {
679
+ if (!(equals$1(existing_rules_item, incoming_rules_item))) {
680
+ return false;
681
+ }
682
+ });
683
+ if (equals_rules_items === false) {
684
+ return false;
685
+ }
686
+ return true;
687
+ }
688
+ const ingest = function FlowOperatorRuleCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
689
+ if (process.env.NODE_ENV !== 'production') {
690
+ const validateError = validate(input);
691
+ if (validateError !== null) {
692
+ throw validateError;
693
+ }
694
+ }
695
+ const key = path.fullPath;
696
+ const existingRecord = store.readEntry(key);
697
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
698
+ let incomingRecord = normalize(input, store.readEntry(key), {
699
+ fullPath: key,
700
+ parent: path.parent,
701
+ propertyName: path.propertyName,
702
+ ttl: ttlToUse
703
+ });
704
+ if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
705
+ luvio.storePublish(key, incomingRecord);
706
+ }
707
+ if (ttlToUse !== undefined) {
708
+ const storeMetadataParams = {
709
+ ttl: ttlToUse,
710
+ namespace: "flow-builder",
711
+ version: VERSION,
712
+ representationName: RepresentationType,
713
+ };
714
+ luvio.publishStoreMetadata(key, storeMetadataParams);
715
+ }
716
+ return createLink(key);
717
+ };
718
+ function getTypeCacheKeys(luvio, input, fullPathFactory) {
719
+ const rootKeySet = new StoreKeyMap();
720
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
721
+ const rootKey = fullPathFactory();
722
+ rootKeySet.set(rootKey, {
723
+ namespace: keyPrefix,
724
+ representationName: RepresentationType,
725
+ mergeable: false
726
+ });
727
+ return rootKeySet;
728
728
  }
729
729
 
730
- function select(luvio, params) {
731
- return select$1();
732
- }
733
- function keyBuilder$1(luvio, params) {
734
- return keyPrefix + '::FlowOperatorRuleCollectionRepresentation:(' + 'flowProcessType:' + params.queryParams.flowProcessType + ',' + 'flowTriggerType:' + params.queryParams.flowTriggerType + ',' + 'recordTriggerType:' + params.queryParams.recordTriggerType + ')';
735
- }
736
- function getResponseCacheKeys(luvio, resourceParams, response) {
737
- return getTypeCacheKeys(luvio, response, () => keyBuilder$1(luvio, resourceParams));
738
- }
739
- function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
740
- const { body } = response;
741
- const key = keyBuilder$1(luvio, resourceParams);
742
- luvio.storeIngest(key, ingest, body);
743
- const snapshot = luvio.storeLookup({
744
- recordId: key,
745
- node: select(),
746
- variables: {},
747
- }, snapshotRefresh);
748
- if (process.env.NODE_ENV !== 'production') {
749
- if (snapshot.state !== 'Fulfilled') {
750
- throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
751
- }
752
- }
753
- return snapshot;
754
- }
755
- function ingestError(luvio, params, error, snapshotRefresh) {
756
- const key = keyBuilder$1(luvio, params);
757
- const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
758
- luvio.storeIngestError(key, errorSnapshot);
759
- return errorSnapshot;
760
- }
761
- function createResourceRequest(config) {
762
- const headers = {};
763
- return {
764
- baseUri: '/services/data/v58.0',
765
- basePath: '/connect/interaction/builder/rules',
766
- method: 'get',
767
- body: null,
768
- urlParams: {},
769
- queryParams: config.queryParams,
770
- headers,
771
- priority: 'normal',
772
- };
730
+ function select(luvio, params) {
731
+ return select$1();
732
+ }
733
+ function keyBuilder$1(luvio, params) {
734
+ return keyPrefix + '::FlowOperatorRuleCollectionRepresentation:(' + 'flowProcessType:' + params.queryParams.flowProcessType + ',' + 'flowTriggerType:' + params.queryParams.flowTriggerType + ',' + 'recordTriggerType:' + params.queryParams.recordTriggerType + ')';
735
+ }
736
+ function getResponseCacheKeys(luvio, resourceParams, response) {
737
+ return getTypeCacheKeys(luvio, response, () => keyBuilder$1(luvio, resourceParams));
738
+ }
739
+ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
740
+ const { body } = response;
741
+ const key = keyBuilder$1(luvio, resourceParams);
742
+ luvio.storeIngest(key, ingest, body);
743
+ const snapshot = luvio.storeLookup({
744
+ recordId: key,
745
+ node: select(),
746
+ variables: {},
747
+ }, snapshotRefresh);
748
+ if (process.env.NODE_ENV !== 'production') {
749
+ if (snapshot.state !== 'Fulfilled') {
750
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
751
+ }
752
+ }
753
+ return snapshot;
754
+ }
755
+ function ingestError(luvio, params, error, snapshotRefresh) {
756
+ const key = keyBuilder$1(luvio, params);
757
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
758
+ luvio.storeIngestError(key, errorSnapshot);
759
+ return errorSnapshot;
760
+ }
761
+ function createResourceRequest(config) {
762
+ const headers = {};
763
+ return {
764
+ baseUri: '/services/data/v58.0',
765
+ basePath: '/connect/interaction/builder/rules',
766
+ method: 'get',
767
+ body: null,
768
+ urlParams: {},
769
+ queryParams: config.queryParams,
770
+ headers,
771
+ priority: 'normal',
772
+ };
773
773
  }
774
774
 
775
- const getRules_ConfigPropertyNames = {
776
- displayName: 'getRules',
777
- parameters: {
778
- required: [],
779
- optional: ['flowProcessType', 'flowTriggerType', 'recordTriggerType']
780
- }
781
- };
782
- function createResourceParams(config) {
783
- const resourceParams = {
784
- queryParams: {
785
- flowProcessType: config.flowProcessType, flowTriggerType: config.flowTriggerType, recordTriggerType: config.recordTriggerType
786
- }
787
- };
788
- return resourceParams;
789
- }
790
- function keyBuilder(luvio, config) {
791
- const resourceParams = createResourceParams(config);
792
- return keyBuilder$1(luvio, resourceParams);
793
- }
794
- function typeCheckConfig(untrustedConfig) {
795
- const config = {};
796
- const untrustedConfig_flowProcessType = untrustedConfig.flowProcessType;
797
- if (typeof untrustedConfig_flowProcessType === 'string') {
798
- config.flowProcessType = untrustedConfig_flowProcessType;
799
- }
800
- const untrustedConfig_flowTriggerType = untrustedConfig.flowTriggerType;
801
- if (typeof untrustedConfig_flowTriggerType === 'string') {
802
- config.flowTriggerType = untrustedConfig_flowTriggerType;
803
- }
804
- const untrustedConfig_recordTriggerType = untrustedConfig.recordTriggerType;
805
- if (typeof untrustedConfig_recordTriggerType === 'string') {
806
- config.recordTriggerType = untrustedConfig_recordTriggerType;
807
- }
808
- return config;
809
- }
810
- function validateAdapterConfig(untrustedConfig, configPropertyNames) {
811
- if (!untrustedIsObject(untrustedConfig)) {
812
- return null;
813
- }
814
- if (process.env.NODE_ENV !== 'production') {
815
- validateConfig(untrustedConfig, configPropertyNames);
816
- }
817
- const config = typeCheckConfig(untrustedConfig);
818
- if (!areRequiredParametersPresent(config, configPropertyNames)) {
819
- return null;
820
- }
821
- return config;
822
- }
823
- function adapterFragment(luvio, config) {
824
- createResourceParams(config);
825
- return select();
826
- }
827
- function onFetchResponseSuccess(luvio, config, resourceParams, response) {
828
- const snapshot = ingestSuccess(luvio, resourceParams, response, {
829
- config,
830
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
831
- });
832
- return luvio.storeBroadcast().then(() => snapshot);
833
- }
834
- function onFetchResponseError(luvio, config, resourceParams, response) {
835
- const snapshot = ingestError(luvio, resourceParams, response, {
836
- config,
837
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
838
- });
839
- return luvio.storeBroadcast().then(() => snapshot);
840
- }
841
- function buildNetworkSnapshot(luvio, config, options) {
842
- const resourceParams = createResourceParams(config);
843
- const request = createResourceRequest(resourceParams);
844
- return luvio.dispatchResourceRequest(request, options)
845
- .then((response) => {
846
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys(luvio, resourceParams, response.body));
847
- }, (response) => {
848
- return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
849
- });
850
- }
851
- function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
852
- const { luvio, config } = context;
853
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
854
- const dispatchOptions = {
855
- resourceRequestContext: {
856
- requestCorrelator,
857
- luvioRequestMethod: undefined,
858
- },
859
- eventObservers
860
- };
861
- if (networkPriority !== 'normal') {
862
- dispatchOptions.overrides = {
863
- priority: networkPriority
864
- };
865
- }
866
- return buildNetworkSnapshot(luvio, config, dispatchOptions);
867
- }
868
- function buildCachedSnapshotCachePolicy(context, storeLookup) {
869
- const { luvio, config } = context;
870
- const selector = {
871
- recordId: keyBuilder(luvio, config),
872
- node: adapterFragment(luvio, config),
873
- variables: {},
874
- };
875
- const cacheSnapshot = storeLookup(selector, {
876
- config,
877
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
878
- });
879
- return cacheSnapshot;
880
- }
881
- const getRulesAdapterFactory = (luvio) => function flowBuilder__getRules(untrustedConfig, requestContext) {
882
- const config = validateAdapterConfig(untrustedConfig, getRules_ConfigPropertyNames);
883
- // Invalid or incomplete config
884
- if (config === null) {
885
- return null;
886
- }
887
- return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
888
- buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
775
+ const getRules_ConfigPropertyNames = {
776
+ displayName: 'getRules',
777
+ parameters: {
778
+ required: [],
779
+ optional: ['flowProcessType', 'flowTriggerType', 'recordTriggerType']
780
+ }
781
+ };
782
+ function createResourceParams(config) {
783
+ const resourceParams = {
784
+ queryParams: {
785
+ flowProcessType: config.flowProcessType, flowTriggerType: config.flowTriggerType, recordTriggerType: config.recordTriggerType
786
+ }
787
+ };
788
+ return resourceParams;
789
+ }
790
+ function keyBuilder(luvio, config) {
791
+ const resourceParams = createResourceParams(config);
792
+ return keyBuilder$1(luvio, resourceParams);
793
+ }
794
+ function typeCheckConfig(untrustedConfig) {
795
+ const config = {};
796
+ const untrustedConfig_flowProcessType = untrustedConfig.flowProcessType;
797
+ if (typeof untrustedConfig_flowProcessType === 'string') {
798
+ config.flowProcessType = untrustedConfig_flowProcessType;
799
+ }
800
+ const untrustedConfig_flowTriggerType = untrustedConfig.flowTriggerType;
801
+ if (typeof untrustedConfig_flowTriggerType === 'string') {
802
+ config.flowTriggerType = untrustedConfig_flowTriggerType;
803
+ }
804
+ const untrustedConfig_recordTriggerType = untrustedConfig.recordTriggerType;
805
+ if (typeof untrustedConfig_recordTriggerType === 'string') {
806
+ config.recordTriggerType = untrustedConfig_recordTriggerType;
807
+ }
808
+ return config;
809
+ }
810
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
811
+ if (!untrustedIsObject(untrustedConfig)) {
812
+ return null;
813
+ }
814
+ if (process.env.NODE_ENV !== 'production') {
815
+ validateConfig(untrustedConfig, configPropertyNames);
816
+ }
817
+ const config = typeCheckConfig(untrustedConfig);
818
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
819
+ return null;
820
+ }
821
+ return config;
822
+ }
823
+ function adapterFragment(luvio, config) {
824
+ createResourceParams(config);
825
+ return select();
826
+ }
827
+ function onFetchResponseSuccess(luvio, config, resourceParams, response) {
828
+ const snapshot = ingestSuccess(luvio, resourceParams, response, {
829
+ config,
830
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
831
+ });
832
+ return luvio.storeBroadcast().then(() => snapshot);
833
+ }
834
+ function onFetchResponseError(luvio, config, resourceParams, response) {
835
+ const snapshot = ingestError(luvio, resourceParams, response, {
836
+ config,
837
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
838
+ });
839
+ return luvio.storeBroadcast().then(() => snapshot);
840
+ }
841
+ function buildNetworkSnapshot(luvio, config, options) {
842
+ const resourceParams = createResourceParams(config);
843
+ const request = createResourceRequest(resourceParams);
844
+ return luvio.dispatchResourceRequest(request, options)
845
+ .then((response) => {
846
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys(luvio, resourceParams, response.body));
847
+ }, (response) => {
848
+ return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
849
+ });
850
+ }
851
+ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
852
+ const { luvio, config } = context;
853
+ const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
854
+ const dispatchOptions = {
855
+ resourceRequestContext: {
856
+ requestCorrelator,
857
+ luvioRequestMethod: undefined,
858
+ },
859
+ eventObservers
860
+ };
861
+ if (networkPriority !== 'normal') {
862
+ dispatchOptions.overrides = {
863
+ priority: networkPriority
864
+ };
865
+ }
866
+ return buildNetworkSnapshot(luvio, config, dispatchOptions);
867
+ }
868
+ function buildCachedSnapshotCachePolicy(context, storeLookup) {
869
+ const { luvio, config } = context;
870
+ const selector = {
871
+ recordId: keyBuilder(luvio, config),
872
+ node: adapterFragment(luvio, config),
873
+ variables: {},
874
+ };
875
+ const cacheSnapshot = storeLookup(selector, {
876
+ config,
877
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
878
+ });
879
+ return cacheSnapshot;
880
+ }
881
+ const getRulesAdapterFactory = (luvio) => function flowBuilder__getRules(untrustedConfig, requestContext) {
882
+ const config = validateAdapterConfig(untrustedConfig, getRules_ConfigPropertyNames);
883
+ // Invalid or incomplete config
884
+ if (config === null) {
885
+ return null;
886
+ }
887
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
888
+ buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
889
889
  };
890
890
 
891
- let getRules;
892
- // Imperative GET Adapters
893
- let getRules_imperative;
894
- // Adapter Metadata
895
- const getRulesMetadata = { apiFamily: 'flowbuilder', name: 'getRules' };
896
- function bindExportsTo(luvio) {
897
- // LDS Adapters
898
- const getRules_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRules', getRulesAdapterFactory), getRulesMetadata);
899
- return {
900
- getRules: createWireAdapterConstructor(luvio, getRules_ldsAdapter, getRulesMetadata),
901
- // Imperative GET Adapters
902
- getRules_imperative: createImperativeAdapter(luvio, getRules_ldsAdapter, getRulesMetadata)
903
- };
904
- }
905
- withDefaultLuvio((luvio) => {
906
- ({
907
- getRules,
908
- getRules_imperative
909
- } = bindExportsTo(luvio));
891
+ let getRules;
892
+ // Imperative GET Adapters
893
+ let getRules_imperative;
894
+ // Adapter Metadata
895
+ const getRulesMetadata = { apiFamily: 'flowbuilder', name: 'getRules' };
896
+ function bindExportsTo(luvio) {
897
+ // LDS Adapters
898
+ const getRules_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRules', getRulesAdapterFactory), getRulesMetadata);
899
+ return {
900
+ getRules: createWireAdapterConstructor(luvio, getRules_ldsAdapter, getRulesMetadata),
901
+ // Imperative GET Adapters
902
+ getRules_imperative: createImperativeAdapter(luvio, getRules_ldsAdapter, getRulesMetadata)
903
+ };
904
+ }
905
+ withDefaultLuvio((luvio) => {
906
+ ({
907
+ getRules,
908
+ getRules_imperative
909
+ } = bindExportsTo(luvio));
910
910
  });
911
911
 
912
912
  export { getRules, getRules_imperative };
913
- // version: 1.124.2-4dc3034f1
913
+ // version: 1.124.4-fc08995da