@salesforce/lds-adapters-sales-pathassistant 1.246.0 → 1.248.0
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.
- package/dist/es/es2018/sales-pathassistant.js +36 -832
- package/dist/es/es2018/types/src/generated/types/PathAssistantMetadataRepresentation.d.ts +10 -5
- package/package.json +6 -2
- package/sfdc/index.js +37 -833
- package/src/raml/api.raml +9 -136
- package/dist/es/es2018/types/src/generated/types/AnimationRuleRepresentation.d.ts +0 -43
- package/dist/es/es2018/types/src/generated/types/PathAssistantFieldRepresentation.d.ts +0 -37
- package/dist/es/es2018/types/src/generated/types/PathAssistantRepresentation.d.ts +0 -52
- package/dist/es/es2018/types/src/generated/types/PathAssistantStepRepresentation.d.ts +0 -47
- package/dist/es/es2018/types/src/generated/types/PicklistEntryRepresentation.d.ts +0 -40
- package/dist/es/es2018/types/src/generated/types/PicklistForRecordTypeRepresentation.d.ts +0 -32
package/sfdc/index.js
CHANGED
|
@@ -83,875 +83,79 @@ const keyPrefix = 'pathassistant';
|
|
|
83
83
|
|
|
84
84
|
const { isArray: ArrayIsArray } = Array;
|
|
85
85
|
const { stringify: JSONStringify } = JSON;
|
|
86
|
-
function equalsArray(a, b, equalsItem) {
|
|
87
|
-
const aLength = a.length;
|
|
88
|
-
const bLength = b.length;
|
|
89
|
-
if (aLength !== bLength) {
|
|
90
|
-
return false;
|
|
91
|
-
}
|
|
92
|
-
for (let i = 0; i < aLength; i++) {
|
|
93
|
-
if (equalsItem(a[i], b[i]) === false) {
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return true;
|
|
98
|
-
}
|
|
99
86
|
function createLink(ref) {
|
|
100
87
|
return {
|
|
101
88
|
__ref: serializeStructuredKey(ref),
|
|
102
89
|
};
|
|
103
90
|
}
|
|
104
91
|
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
109
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
110
|
-
}
|
|
111
|
-
const obj_animationFrequency = obj.animationFrequency;
|
|
112
|
-
const path_animationFrequency = path + '.animationFrequency';
|
|
113
|
-
let obj_animationFrequency_union0 = null;
|
|
114
|
-
const obj_animationFrequency_union0_error = (() => {
|
|
115
|
-
if (typeof obj_animationFrequency !== 'string') {
|
|
116
|
-
return new TypeError('Expected "string" but received "' + typeof obj_animationFrequency + '" (at "' + path_animationFrequency + '")');
|
|
117
|
-
}
|
|
118
|
-
})();
|
|
119
|
-
if (obj_animationFrequency_union0_error != null) {
|
|
120
|
-
obj_animationFrequency_union0 = obj_animationFrequency_union0_error.message;
|
|
121
|
-
}
|
|
122
|
-
let obj_animationFrequency_union1 = null;
|
|
123
|
-
const obj_animationFrequency_union1_error = (() => {
|
|
124
|
-
if (obj_animationFrequency !== null) {
|
|
125
|
-
return new TypeError('Expected "null" but received "' + typeof obj_animationFrequency + '" (at "' + path_animationFrequency + '")');
|
|
126
|
-
}
|
|
127
|
-
})();
|
|
128
|
-
if (obj_animationFrequency_union1_error != null) {
|
|
129
|
-
obj_animationFrequency_union1 = obj_animationFrequency_union1_error.message;
|
|
130
|
-
}
|
|
131
|
-
if (obj_animationFrequency_union0 && obj_animationFrequency_union1) {
|
|
132
|
-
let message = 'Object doesn\'t match union (at "' + path_animationFrequency + '")';
|
|
133
|
-
message += '\n' + obj_animationFrequency_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
134
|
-
message += '\n' + obj_animationFrequency_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
135
|
-
return new TypeError(message);
|
|
136
|
-
}
|
|
137
|
-
const obj_isActive = obj.isActive;
|
|
138
|
-
const path_isActive = path + '.isActive';
|
|
139
|
-
if (typeof obj_isActive !== 'boolean') {
|
|
140
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
|
|
141
|
-
}
|
|
142
|
-
const obj_recordTypeContext = obj.recordTypeContext;
|
|
143
|
-
const path_recordTypeContext = path + '.recordTypeContext';
|
|
144
|
-
let obj_recordTypeContext_union0 = null;
|
|
145
|
-
const obj_recordTypeContext_union0_error = (() => {
|
|
146
|
-
if (typeof obj_recordTypeContext !== 'string') {
|
|
147
|
-
return new TypeError('Expected "string" but received "' + typeof obj_recordTypeContext + '" (at "' + path_recordTypeContext + '")');
|
|
148
|
-
}
|
|
149
|
-
})();
|
|
150
|
-
if (obj_recordTypeContext_union0_error != null) {
|
|
151
|
-
obj_recordTypeContext_union0 = obj_recordTypeContext_union0_error.message;
|
|
152
|
-
}
|
|
153
|
-
let obj_recordTypeContext_union1 = null;
|
|
154
|
-
const obj_recordTypeContext_union1_error = (() => {
|
|
155
|
-
if (obj_recordTypeContext !== null) {
|
|
156
|
-
return new TypeError('Expected "null" but received "' + typeof obj_recordTypeContext + '" (at "' + path_recordTypeContext + '")');
|
|
157
|
-
}
|
|
158
|
-
})();
|
|
159
|
-
if (obj_recordTypeContext_union1_error != null) {
|
|
160
|
-
obj_recordTypeContext_union1 = obj_recordTypeContext_union1_error.message;
|
|
161
|
-
}
|
|
162
|
-
if (obj_recordTypeContext_union0 && obj_recordTypeContext_union1) {
|
|
163
|
-
let message = 'Object doesn\'t match union (at "' + path_recordTypeContext + '")';
|
|
164
|
-
message += '\n' + obj_recordTypeContext_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
165
|
-
message += '\n' + obj_recordTypeContext_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
166
|
-
return new TypeError(message);
|
|
167
|
-
}
|
|
168
|
-
const obj_recordTypeId = obj.recordTypeId;
|
|
169
|
-
const path_recordTypeId = path + '.recordTypeId';
|
|
170
|
-
let obj_recordTypeId_union0 = null;
|
|
171
|
-
const obj_recordTypeId_union0_error = (() => {
|
|
172
|
-
if (typeof obj_recordTypeId !== 'string') {
|
|
173
|
-
return new TypeError('Expected "string" but received "' + typeof obj_recordTypeId + '" (at "' + path_recordTypeId + '")');
|
|
174
|
-
}
|
|
175
|
-
})();
|
|
176
|
-
if (obj_recordTypeId_union0_error != null) {
|
|
177
|
-
obj_recordTypeId_union0 = obj_recordTypeId_union0_error.message;
|
|
178
|
-
}
|
|
179
|
-
let obj_recordTypeId_union1 = null;
|
|
180
|
-
const obj_recordTypeId_union1_error = (() => {
|
|
181
|
-
if (obj_recordTypeId !== null) {
|
|
182
|
-
return new TypeError('Expected "null" but received "' + typeof obj_recordTypeId + '" (at "' + path_recordTypeId + '")');
|
|
183
|
-
}
|
|
184
|
-
})();
|
|
185
|
-
if (obj_recordTypeId_union1_error != null) {
|
|
186
|
-
obj_recordTypeId_union1 = obj_recordTypeId_union1_error.message;
|
|
187
|
-
}
|
|
188
|
-
if (obj_recordTypeId_union0 && obj_recordTypeId_union1) {
|
|
189
|
-
let message = 'Object doesn\'t match union (at "' + path_recordTypeId + '")';
|
|
190
|
-
message += '\n' + obj_recordTypeId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
191
|
-
message += '\n' + obj_recordTypeId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
192
|
-
return new TypeError(message);
|
|
193
|
-
}
|
|
194
|
-
const obj_targetField = obj.targetField;
|
|
195
|
-
const path_targetField = path + '.targetField';
|
|
196
|
-
if (typeof obj_targetField !== 'string') {
|
|
197
|
-
return new TypeError('Expected "string" but received "' + typeof obj_targetField + '" (at "' + path_targetField + '")');
|
|
198
|
-
}
|
|
199
|
-
const obj_targetFieldChangeToValues = obj.targetFieldChangeToValues;
|
|
200
|
-
const path_targetFieldChangeToValues = path + '.targetFieldChangeToValues';
|
|
201
|
-
if (typeof obj_targetFieldChangeToValues !== 'string') {
|
|
202
|
-
return new TypeError('Expected "string" but received "' + typeof obj_targetFieldChangeToValues + '" (at "' + path_targetFieldChangeToValues + '")');
|
|
203
|
-
}
|
|
204
|
-
})();
|
|
205
|
-
return v_error === undefined ? null : v_error;
|
|
206
|
-
}
|
|
207
|
-
const select$9 = function AnimationRuleRepresentationSelect() {
|
|
208
|
-
return {
|
|
209
|
-
kind: 'Fragment',
|
|
210
|
-
version: VERSION$7,
|
|
211
|
-
private: [],
|
|
212
|
-
selections: [
|
|
213
|
-
{
|
|
214
|
-
name: 'animationFrequency',
|
|
215
|
-
kind: 'Scalar'
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
name: 'isActive',
|
|
219
|
-
kind: 'Scalar'
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
name: 'recordTypeContext',
|
|
223
|
-
kind: 'Scalar'
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
name: 'recordTypeId',
|
|
227
|
-
kind: 'Scalar'
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
name: 'targetField',
|
|
231
|
-
kind: 'Scalar'
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
name: 'targetFieldChangeToValues',
|
|
235
|
-
kind: 'Scalar'
|
|
236
|
-
}
|
|
237
|
-
]
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
function equals$7(existing, incoming) {
|
|
241
|
-
const existing_isActive = existing.isActive;
|
|
242
|
-
const incoming_isActive = incoming.isActive;
|
|
243
|
-
if (!(existing_isActive === incoming_isActive)) {
|
|
244
|
-
return false;
|
|
245
|
-
}
|
|
246
|
-
const existing_targetField = existing.targetField;
|
|
247
|
-
const incoming_targetField = incoming.targetField;
|
|
248
|
-
if (!(existing_targetField === incoming_targetField)) {
|
|
249
|
-
return false;
|
|
250
|
-
}
|
|
251
|
-
const existing_targetFieldChangeToValues = existing.targetFieldChangeToValues;
|
|
252
|
-
const incoming_targetFieldChangeToValues = incoming.targetFieldChangeToValues;
|
|
253
|
-
if (!(existing_targetFieldChangeToValues === incoming_targetFieldChangeToValues)) {
|
|
254
|
-
return false;
|
|
255
|
-
}
|
|
256
|
-
const existing_animationFrequency = existing.animationFrequency;
|
|
257
|
-
const incoming_animationFrequency = incoming.animationFrequency;
|
|
258
|
-
if (!(existing_animationFrequency === incoming_animationFrequency)) {
|
|
259
|
-
return false;
|
|
260
|
-
}
|
|
261
|
-
const existing_recordTypeContext = existing.recordTypeContext;
|
|
262
|
-
const incoming_recordTypeContext = incoming.recordTypeContext;
|
|
263
|
-
if (!(existing_recordTypeContext === incoming_recordTypeContext)) {
|
|
264
|
-
return false;
|
|
265
|
-
}
|
|
266
|
-
const existing_recordTypeId = existing.recordTypeId;
|
|
267
|
-
const incoming_recordTypeId = incoming.recordTypeId;
|
|
268
|
-
if (!(existing_recordTypeId === incoming_recordTypeId)) {
|
|
269
|
-
return false;
|
|
270
|
-
}
|
|
271
|
-
return true;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
const VERSION$6 = "5f7a9f3543fe7279bf732a8914e5f50c";
|
|
275
|
-
function validate$6(obj, path = 'PicklistEntryRepresentation') {
|
|
276
|
-
const v_error = (() => {
|
|
277
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
278
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
279
|
-
}
|
|
280
|
-
const obj_isActive = obj.isActive;
|
|
281
|
-
const path_isActive = path + '.isActive';
|
|
282
|
-
if (typeof obj_isActive !== 'boolean') {
|
|
283
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
|
|
284
|
-
}
|
|
285
|
-
const obj_isDefault = obj.isDefault;
|
|
286
|
-
const path_isDefault = path + '.isDefault';
|
|
287
|
-
if (typeof obj_isDefault !== 'boolean') {
|
|
288
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
|
|
289
|
-
}
|
|
290
|
-
const obj_label = obj.label;
|
|
291
|
-
const path_label = path + '.label';
|
|
292
|
-
if (typeof obj_label !== 'string') {
|
|
293
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
294
|
-
}
|
|
295
|
-
const obj_validFor = obj.validFor;
|
|
296
|
-
const path_validFor = path + '.validFor';
|
|
297
|
-
let obj_validFor_union0 = null;
|
|
298
|
-
const obj_validFor_union0_error = (() => {
|
|
299
|
-
if (typeof obj_validFor !== 'string') {
|
|
300
|
-
return new TypeError('Expected "string" but received "' + typeof obj_validFor + '" (at "' + path_validFor + '")');
|
|
301
|
-
}
|
|
302
|
-
})();
|
|
303
|
-
if (obj_validFor_union0_error != null) {
|
|
304
|
-
obj_validFor_union0 = obj_validFor_union0_error.message;
|
|
305
|
-
}
|
|
306
|
-
let obj_validFor_union1 = null;
|
|
307
|
-
const obj_validFor_union1_error = (() => {
|
|
308
|
-
if (obj_validFor !== null) {
|
|
309
|
-
return new TypeError('Expected "null" but received "' + typeof obj_validFor + '" (at "' + path_validFor + '")');
|
|
310
|
-
}
|
|
311
|
-
})();
|
|
312
|
-
if (obj_validFor_union1_error != null) {
|
|
313
|
-
obj_validFor_union1 = obj_validFor_union1_error.message;
|
|
314
|
-
}
|
|
315
|
-
if (obj_validFor_union0 && obj_validFor_union1) {
|
|
316
|
-
let message = 'Object doesn\'t match union (at "' + path_validFor + '")';
|
|
317
|
-
message += '\n' + obj_validFor_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
318
|
-
message += '\n' + obj_validFor_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
319
|
-
return new TypeError(message);
|
|
320
|
-
}
|
|
321
|
-
const obj_value = obj.value;
|
|
322
|
-
const path_value = path + '.value';
|
|
323
|
-
if (typeof obj_value !== 'string') {
|
|
324
|
-
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
325
|
-
}
|
|
326
|
-
})();
|
|
327
|
-
return v_error === undefined ? null : v_error;
|
|
328
|
-
}
|
|
329
|
-
const select$8 = function PicklistEntryRepresentationSelect() {
|
|
330
|
-
return {
|
|
331
|
-
kind: 'Fragment',
|
|
332
|
-
version: VERSION$6,
|
|
333
|
-
private: [],
|
|
334
|
-
selections: [
|
|
335
|
-
{
|
|
336
|
-
name: 'isActive',
|
|
337
|
-
kind: 'Scalar'
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
name: 'isDefault',
|
|
341
|
-
kind: 'Scalar'
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
name: 'label',
|
|
345
|
-
kind: 'Scalar'
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
name: 'validFor',
|
|
349
|
-
kind: 'Scalar'
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
name: 'value',
|
|
353
|
-
kind: 'Scalar'
|
|
354
|
-
}
|
|
355
|
-
]
|
|
356
|
-
};
|
|
357
|
-
};
|
|
358
|
-
function equals$6(existing, incoming) {
|
|
359
|
-
const existing_isActive = existing.isActive;
|
|
360
|
-
const incoming_isActive = incoming.isActive;
|
|
361
|
-
if (!(existing_isActive === incoming_isActive)) {
|
|
362
|
-
return false;
|
|
363
|
-
}
|
|
364
|
-
const existing_isDefault = existing.isDefault;
|
|
365
|
-
const incoming_isDefault = incoming.isDefault;
|
|
366
|
-
if (!(existing_isDefault === incoming_isDefault)) {
|
|
367
|
-
return false;
|
|
368
|
-
}
|
|
369
|
-
const existing_label = existing.label;
|
|
370
|
-
const incoming_label = incoming.label;
|
|
371
|
-
if (!(existing_label === incoming_label)) {
|
|
372
|
-
return false;
|
|
373
|
-
}
|
|
374
|
-
const existing_value = existing.value;
|
|
375
|
-
const incoming_value = incoming.value;
|
|
376
|
-
if (!(existing_value === incoming_value)) {
|
|
377
|
-
return false;
|
|
378
|
-
}
|
|
379
|
-
const existing_validFor = existing.validFor;
|
|
380
|
-
const incoming_validFor = incoming.validFor;
|
|
381
|
-
if (!(existing_validFor === incoming_validFor)) {
|
|
382
|
-
return false;
|
|
383
|
-
}
|
|
384
|
-
return true;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
const VERSION$5 = "e10ca73b37a9eb96684d1646b4a8f0f8";
|
|
388
|
-
function validate$5(obj, path = 'PicklistForRecordTypeRepresentation') {
|
|
389
|
-
const v_error = (() => {
|
|
390
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
391
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
392
|
-
}
|
|
393
|
-
const obj_picklistName = obj.picklistName;
|
|
394
|
-
const path_picklistName = path + '.picklistName';
|
|
395
|
-
if (typeof obj_picklistName !== 'string') {
|
|
396
|
-
return new TypeError('Expected "string" but received "' + typeof obj_picklistName + '" (at "' + path_picklistName + '")');
|
|
397
|
-
}
|
|
398
|
-
const obj_picklists = obj.picklists;
|
|
399
|
-
const path_picklists = path + '.picklists';
|
|
400
|
-
if (!ArrayIsArray(obj_picklists)) {
|
|
401
|
-
return new TypeError('Expected "array" but received "' + typeof obj_picklists + '" (at "' + path_picklists + '")');
|
|
402
|
-
}
|
|
403
|
-
for (let i = 0; i < obj_picklists.length; i++) {
|
|
404
|
-
const obj_picklists_item = obj_picklists[i];
|
|
405
|
-
const path_picklists_item = path_picklists + '[' + i + ']';
|
|
406
|
-
const referencepath_picklists_itemValidationError = validate$6(obj_picklists_item, path_picklists_item);
|
|
407
|
-
if (referencepath_picklists_itemValidationError !== null) {
|
|
408
|
-
let message = 'Object doesn\'t match PicklistEntryRepresentation (at "' + path_picklists_item + '")\n';
|
|
409
|
-
message += referencepath_picklists_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
410
|
-
return new TypeError(message);
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
})();
|
|
414
|
-
return v_error === undefined ? null : v_error;
|
|
415
|
-
}
|
|
416
|
-
const select$7 = function PicklistForRecordTypeRepresentationSelect() {
|
|
417
|
-
const { selections: PicklistEntryRepresentation__selections, opaque: PicklistEntryRepresentation__opaque, } = select$8();
|
|
418
|
-
return {
|
|
419
|
-
kind: 'Fragment',
|
|
420
|
-
version: VERSION$5,
|
|
421
|
-
private: [],
|
|
422
|
-
selections: [
|
|
423
|
-
{
|
|
424
|
-
name: 'picklistName',
|
|
425
|
-
kind: 'Scalar'
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
name: 'picklists',
|
|
429
|
-
kind: 'Object',
|
|
430
|
-
plural: true,
|
|
431
|
-
selections: PicklistEntryRepresentation__selections
|
|
432
|
-
}
|
|
433
|
-
]
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
function equals$5(existing, incoming) {
|
|
437
|
-
const existing_picklistName = existing.picklistName;
|
|
438
|
-
const incoming_picklistName = incoming.picklistName;
|
|
439
|
-
if (!(existing_picklistName === incoming_picklistName)) {
|
|
440
|
-
return false;
|
|
441
|
-
}
|
|
442
|
-
const existing_picklists = existing.picklists;
|
|
443
|
-
const incoming_picklists = incoming.picklists;
|
|
444
|
-
const equals_picklists_items = equalsArray(existing_picklists, incoming_picklists, (existing_picklists_item, incoming_picklists_item) => {
|
|
445
|
-
if (!(equals$6(existing_picklists_item, incoming_picklists_item))) {
|
|
446
|
-
return false;
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
if (equals_picklists_items === false) {
|
|
450
|
-
return false;
|
|
451
|
-
}
|
|
452
|
-
return true;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
const VERSION$4 = "a9a458021c10424744525ec9f4af4fc4";
|
|
456
|
-
function validate$4(obj, path = 'PathAssistantFieldRepresentation') {
|
|
457
|
-
const v_error = (() => {
|
|
458
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
459
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
460
|
-
}
|
|
461
|
-
const obj_apiName = obj.apiName;
|
|
462
|
-
const path_apiName = path + '.apiName';
|
|
463
|
-
if (typeof obj_apiName !== 'string') {
|
|
464
|
-
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
465
|
-
}
|
|
466
|
-
const obj_isReadonly = obj.isReadonly;
|
|
467
|
-
const path_isReadonly = path + '.isReadonly';
|
|
468
|
-
if (typeof obj_isReadonly !== 'boolean') {
|
|
469
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isReadonly + '" (at "' + path_isReadonly + '")');
|
|
470
|
-
}
|
|
471
|
-
const obj_isRequired = obj.isRequired;
|
|
472
|
-
const path_isRequired = path + '.isRequired';
|
|
473
|
-
if (typeof obj_isRequired !== 'boolean') {
|
|
474
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isRequired + '" (at "' + path_isRequired + '")');
|
|
475
|
-
}
|
|
476
|
-
const obj_label = obj.label;
|
|
477
|
-
const path_label = path + '.label';
|
|
478
|
-
if (typeof obj_label !== 'string') {
|
|
479
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
480
|
-
}
|
|
481
|
-
})();
|
|
482
|
-
return v_error === undefined ? null : v_error;
|
|
483
|
-
}
|
|
484
|
-
const select$6 = function PathAssistantFieldRepresentationSelect() {
|
|
485
|
-
return {
|
|
486
|
-
kind: 'Fragment',
|
|
487
|
-
version: VERSION$4,
|
|
488
|
-
private: [],
|
|
489
|
-
selections: [
|
|
490
|
-
{
|
|
491
|
-
name: 'apiName',
|
|
492
|
-
kind: 'Scalar'
|
|
493
|
-
},
|
|
494
|
-
{
|
|
495
|
-
name: 'isReadonly',
|
|
496
|
-
kind: 'Scalar'
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
name: 'isRequired',
|
|
500
|
-
kind: 'Scalar'
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
name: 'label',
|
|
504
|
-
kind: 'Scalar'
|
|
505
|
-
}
|
|
506
|
-
]
|
|
507
|
-
};
|
|
508
|
-
};
|
|
509
|
-
function equals$4(existing, incoming) {
|
|
510
|
-
const existing_isReadonly = existing.isReadonly;
|
|
511
|
-
const incoming_isReadonly = incoming.isReadonly;
|
|
512
|
-
if (!(existing_isReadonly === incoming_isReadonly)) {
|
|
513
|
-
return false;
|
|
514
|
-
}
|
|
515
|
-
const existing_isRequired = existing.isRequired;
|
|
516
|
-
const incoming_isRequired = incoming.isRequired;
|
|
517
|
-
if (!(existing_isRequired === incoming_isRequired)) {
|
|
518
|
-
return false;
|
|
519
|
-
}
|
|
520
|
-
const existing_apiName = existing.apiName;
|
|
521
|
-
const incoming_apiName = incoming.apiName;
|
|
522
|
-
if (!(existing_apiName === incoming_apiName)) {
|
|
523
|
-
return false;
|
|
524
|
-
}
|
|
525
|
-
const existing_label = existing.label;
|
|
526
|
-
const incoming_label = incoming.label;
|
|
527
|
-
if (!(existing_label === incoming_label)) {
|
|
528
|
-
return false;
|
|
529
|
-
}
|
|
530
|
-
return true;
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
const VERSION$3 = "bd9d5be1254fbe6807c24a76ea15e9fd";
|
|
534
|
-
function validate$3(obj, path = 'PathAssistantStepRepresentation') {
|
|
92
|
+
const TTL$1 = 30000;
|
|
93
|
+
const VERSION$1 = "1f57b4fe53f48c0f19bd1bb4016dcfd9";
|
|
94
|
+
function validate$1(obj, path = 'PathAssistantMetadataRepresentation') {
|
|
535
95
|
const v_error = (() => {
|
|
536
96
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
537
97
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
538
98
|
}
|
|
539
|
-
const
|
|
540
|
-
const
|
|
541
|
-
if (
|
|
542
|
-
return new TypeError('Expected "
|
|
99
|
+
const obj_extraData = obj.extraData;
|
|
100
|
+
const path_extraData = path + '.extraData';
|
|
101
|
+
if (obj_extraData === undefined) {
|
|
102
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_extraData + '" (at "' + path_extraData + '")');
|
|
543
103
|
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
if (referencepath_fields_itemValidationError !== null) {
|
|
549
|
-
let message = 'Object doesn\'t match PathAssistantFieldRepresentation (at "' + path_fields_item + '")\n';
|
|
550
|
-
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
551
|
-
return new TypeError(message);
|
|
552
|
-
}
|
|
104
|
+
const obj_pathAssistant = obj.pathAssistant;
|
|
105
|
+
const path_pathAssistant = path + '.pathAssistant';
|
|
106
|
+
if (obj_pathAssistant === undefined) {
|
|
107
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_pathAssistant + '" (at "' + path_pathAssistant + '")');
|
|
553
108
|
}
|
|
554
|
-
const
|
|
555
|
-
const
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
if (typeof obj_guidance !== 'string') {
|
|
559
|
-
return new TypeError('Expected "string" but received "' + typeof obj_guidance + '" (at "' + path_guidance + '")');
|
|
560
|
-
}
|
|
561
|
-
})();
|
|
562
|
-
if (obj_guidance_union0_error != null) {
|
|
563
|
-
obj_guidance_union0 = obj_guidance_union0_error.message;
|
|
564
|
-
}
|
|
565
|
-
let obj_guidance_union1 = null;
|
|
566
|
-
const obj_guidance_union1_error = (() => {
|
|
567
|
-
if (obj_guidance !== null) {
|
|
568
|
-
return new TypeError('Expected "null" but received "' + typeof obj_guidance + '" (at "' + path_guidance + '")');
|
|
569
|
-
}
|
|
570
|
-
})();
|
|
571
|
-
if (obj_guidance_union1_error != null) {
|
|
572
|
-
obj_guidance_union1 = obj_guidance_union1_error.message;
|
|
573
|
-
}
|
|
574
|
-
if (obj_guidance_union0 && obj_guidance_union1) {
|
|
575
|
-
let message = 'Object doesn\'t match union (at "' + path_guidance + '")';
|
|
576
|
-
message += '\n' + obj_guidance_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
577
|
-
message += '\n' + obj_guidance_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
578
|
-
return new TypeError(message);
|
|
579
|
-
}
|
|
580
|
-
const obj_isClosed = obj.isClosed;
|
|
581
|
-
const path_isClosed = path + '.isClosed';
|
|
582
|
-
if (typeof obj_isClosed !== 'boolean') {
|
|
583
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isClosed + '" (at "' + path_isClosed + '")');
|
|
584
|
-
}
|
|
585
|
-
const obj_isConverted = obj.isConverted;
|
|
586
|
-
const path_isConverted = path + '.isConverted';
|
|
587
|
-
if (typeof obj_isConverted !== 'boolean') {
|
|
588
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isConverted + '" (at "' + path_isConverted + '")');
|
|
589
|
-
}
|
|
590
|
-
const obj_isWon = obj.isWon;
|
|
591
|
-
const path_isWon = path + '.isWon';
|
|
592
|
-
if (typeof obj_isWon !== 'boolean') {
|
|
593
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isWon + '" (at "' + path_isWon + '")');
|
|
594
|
-
}
|
|
595
|
-
const obj_picklistLabel = obj.picklistLabel;
|
|
596
|
-
const path_picklistLabel = path + '.picklistLabel';
|
|
597
|
-
if (typeof obj_picklistLabel !== 'string') {
|
|
598
|
-
return new TypeError('Expected "string" but received "' + typeof obj_picklistLabel + '" (at "' + path_picklistLabel + '")');
|
|
599
|
-
}
|
|
600
|
-
const obj_picklistValue = obj.picklistValue;
|
|
601
|
-
const path_picklistValue = path + '.picklistValue';
|
|
602
|
-
if (typeof obj_picklistValue !== 'string') {
|
|
603
|
-
return new TypeError('Expected "string" but received "' + typeof obj_picklistValue + '" (at "' + path_picklistValue + '")');
|
|
109
|
+
const obj_recordData = obj.recordData;
|
|
110
|
+
const path_recordData = path + '.recordData';
|
|
111
|
+
if (obj_recordData === undefined) {
|
|
112
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_recordData + '" (at "' + path_recordData + '")');
|
|
604
113
|
}
|
|
605
114
|
})();
|
|
606
115
|
return v_error === undefined ? null : v_error;
|
|
607
116
|
}
|
|
608
|
-
const
|
|
609
|
-
|
|
610
|
-
return
|
|
611
|
-
kind: 'Fragment',
|
|
612
|
-
version: VERSION$3,
|
|
613
|
-
private: [],
|
|
614
|
-
selections: [
|
|
615
|
-
{
|
|
616
|
-
name: 'fields',
|
|
617
|
-
kind: 'Object',
|
|
618
|
-
plural: true,
|
|
619
|
-
selections: PathAssistantFieldRepresentation__selections
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
name: 'guidance',
|
|
623
|
-
kind: 'Scalar'
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
name: 'isClosed',
|
|
627
|
-
kind: 'Scalar'
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
name: 'isConverted',
|
|
631
|
-
kind: 'Scalar'
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
name: 'isWon',
|
|
635
|
-
kind: 'Scalar'
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
name: 'picklistLabel',
|
|
639
|
-
kind: 'Scalar'
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
name: 'picklistValue',
|
|
643
|
-
kind: 'Scalar'
|
|
644
|
-
}
|
|
645
|
-
]
|
|
646
|
-
};
|
|
647
|
-
};
|
|
648
|
-
function equals$3(existing, incoming) {
|
|
649
|
-
const existing_isClosed = existing.isClosed;
|
|
650
|
-
const incoming_isClosed = incoming.isClosed;
|
|
651
|
-
if (!(existing_isClosed === incoming_isClosed)) {
|
|
652
|
-
return false;
|
|
653
|
-
}
|
|
654
|
-
const existing_isConverted = existing.isConverted;
|
|
655
|
-
const incoming_isConverted = incoming.isConverted;
|
|
656
|
-
if (!(existing_isConverted === incoming_isConverted)) {
|
|
657
|
-
return false;
|
|
658
|
-
}
|
|
659
|
-
const existing_isWon = existing.isWon;
|
|
660
|
-
const incoming_isWon = incoming.isWon;
|
|
661
|
-
if (!(existing_isWon === incoming_isWon)) {
|
|
662
|
-
return false;
|
|
663
|
-
}
|
|
664
|
-
const existing_picklistLabel = existing.picklistLabel;
|
|
665
|
-
const incoming_picklistLabel = incoming.picklistLabel;
|
|
666
|
-
if (!(existing_picklistLabel === incoming_picklistLabel)) {
|
|
667
|
-
return false;
|
|
668
|
-
}
|
|
669
|
-
const existing_picklistValue = existing.picklistValue;
|
|
670
|
-
const incoming_picklistValue = incoming.picklistValue;
|
|
671
|
-
if (!(existing_picklistValue === incoming_picklistValue)) {
|
|
672
|
-
return false;
|
|
673
|
-
}
|
|
674
|
-
const existing_fields = existing.fields;
|
|
675
|
-
const incoming_fields = incoming.fields;
|
|
676
|
-
const equals_fields_items = equalsArray(existing_fields, incoming_fields, (existing_fields_item, incoming_fields_item) => {
|
|
677
|
-
if (!(equals$4(existing_fields_item, incoming_fields_item))) {
|
|
678
|
-
return false;
|
|
679
|
-
}
|
|
680
|
-
});
|
|
681
|
-
if (equals_fields_items === false) {
|
|
682
|
-
return false;
|
|
683
|
-
}
|
|
684
|
-
const existing_guidance = existing.guidance;
|
|
685
|
-
const incoming_guidance = incoming.guidance;
|
|
686
|
-
if (!(existing_guidance === incoming_guidance)) {
|
|
687
|
-
return false;
|
|
688
|
-
}
|
|
689
|
-
return true;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
const VERSION$2 = "8f5dea957c8e0941055c593f74eeb0a5";
|
|
693
|
-
function validate$2(obj, path = 'PathAssistantRepresentation') {
|
|
694
|
-
const v_error = (() => {
|
|
695
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
696
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
697
|
-
}
|
|
698
|
-
const obj_animationRule = obj.animationRule;
|
|
699
|
-
const path_animationRule = path + '.animationRule';
|
|
700
|
-
if (!ArrayIsArray(obj_animationRule)) {
|
|
701
|
-
return new TypeError('Expected "array" but received "' + typeof obj_animationRule + '" (at "' + path_animationRule + '")');
|
|
702
|
-
}
|
|
703
|
-
for (let i = 0; i < obj_animationRule.length; i++) {
|
|
704
|
-
const obj_animationRule_item = obj_animationRule[i];
|
|
705
|
-
const path_animationRule_item = path_animationRule + '[' + i + ']';
|
|
706
|
-
const referencepath_animationRule_itemValidationError = validate$7(obj_animationRule_item, path_animationRule_item);
|
|
707
|
-
if (referencepath_animationRule_itemValidationError !== null) {
|
|
708
|
-
let message = 'Object doesn\'t match AnimationRuleRepresentation (at "' + path_animationRule_item + '")\n';
|
|
709
|
-
message += referencepath_animationRule_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
710
|
-
return new TypeError(message);
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
const obj_apiName = obj.apiName;
|
|
714
|
-
const path_apiName = path + '.apiName';
|
|
715
|
-
if (typeof obj_apiName !== 'string') {
|
|
716
|
-
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
717
|
-
}
|
|
718
|
-
const obj_isActive = obj.isActive;
|
|
719
|
-
const path_isActive = path + '.isActive';
|
|
720
|
-
if (typeof obj_isActive !== 'boolean') {
|
|
721
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
|
|
722
|
-
}
|
|
723
|
-
const obj_label = obj.label;
|
|
724
|
-
const path_label = path + '.label';
|
|
725
|
-
if (typeof obj_label !== 'string') {
|
|
726
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
727
|
-
}
|
|
728
|
-
const obj_picklistField = obj.picklistField;
|
|
729
|
-
const path_picklistField = path + '.picklistField';
|
|
730
|
-
if (typeof obj_picklistField !== 'string') {
|
|
731
|
-
return new TypeError('Expected "string" but received "' + typeof obj_picklistField + '" (at "' + path_picklistField + '")');
|
|
732
|
-
}
|
|
733
|
-
const obj_picklistsForRecordType = obj.picklistsForRecordType;
|
|
734
|
-
const path_picklistsForRecordType = path + '.picklistsForRecordType';
|
|
735
|
-
if (!ArrayIsArray(obj_picklistsForRecordType)) {
|
|
736
|
-
return new TypeError('Expected "array" but received "' + typeof obj_picklistsForRecordType + '" (at "' + path_picklistsForRecordType + '")');
|
|
737
|
-
}
|
|
738
|
-
for (let i = 0; i < obj_picklistsForRecordType.length; i++) {
|
|
739
|
-
const obj_picklistsForRecordType_item = obj_picklistsForRecordType[i];
|
|
740
|
-
const path_picklistsForRecordType_item = path_picklistsForRecordType + '[' + i + ']';
|
|
741
|
-
const referencepath_picklistsForRecordType_itemValidationError = validate$5(obj_picklistsForRecordType_item, path_picklistsForRecordType_item);
|
|
742
|
-
if (referencepath_picklistsForRecordType_itemValidationError !== null) {
|
|
743
|
-
let message = 'Object doesn\'t match PicklistForRecordTypeRepresentation (at "' + path_picklistsForRecordType_item + '")\n';
|
|
744
|
-
message += referencepath_picklistsForRecordType_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
745
|
-
return new TypeError(message);
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
const obj_recordTypeId = obj.recordTypeId;
|
|
749
|
-
const path_recordTypeId = path + '.recordTypeId';
|
|
750
|
-
let obj_recordTypeId_union0 = null;
|
|
751
|
-
const obj_recordTypeId_union0_error = (() => {
|
|
752
|
-
if (typeof obj_recordTypeId !== 'string') {
|
|
753
|
-
return new TypeError('Expected "string" but received "' + typeof obj_recordTypeId + '" (at "' + path_recordTypeId + '")');
|
|
754
|
-
}
|
|
755
|
-
})();
|
|
756
|
-
if (obj_recordTypeId_union0_error != null) {
|
|
757
|
-
obj_recordTypeId_union0 = obj_recordTypeId_union0_error.message;
|
|
758
|
-
}
|
|
759
|
-
let obj_recordTypeId_union1 = null;
|
|
760
|
-
const obj_recordTypeId_union1_error = (() => {
|
|
761
|
-
if (obj_recordTypeId !== null) {
|
|
762
|
-
return new TypeError('Expected "null" but received "' + typeof obj_recordTypeId + '" (at "' + path_recordTypeId + '")');
|
|
763
|
-
}
|
|
764
|
-
})();
|
|
765
|
-
if (obj_recordTypeId_union1_error != null) {
|
|
766
|
-
obj_recordTypeId_union1 = obj_recordTypeId_union1_error.message;
|
|
767
|
-
}
|
|
768
|
-
if (obj_recordTypeId_union0 && obj_recordTypeId_union1) {
|
|
769
|
-
let message = 'Object doesn\'t match union (at "' + path_recordTypeId + '")';
|
|
770
|
-
message += '\n' + obj_recordTypeId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
771
|
-
message += '\n' + obj_recordTypeId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
772
|
-
return new TypeError(message);
|
|
773
|
-
}
|
|
774
|
-
const obj_steps = obj.steps;
|
|
775
|
-
const path_steps = path + '.steps';
|
|
776
|
-
if (!ArrayIsArray(obj_steps)) {
|
|
777
|
-
return new TypeError('Expected "array" but received "' + typeof obj_steps + '" (at "' + path_steps + '")');
|
|
778
|
-
}
|
|
779
|
-
for (let i = 0; i < obj_steps.length; i++) {
|
|
780
|
-
const obj_steps_item = obj_steps[i];
|
|
781
|
-
const path_steps_item = path_steps + '[' + i + ']';
|
|
782
|
-
const referencepath_steps_itemValidationError = validate$3(obj_steps_item, path_steps_item);
|
|
783
|
-
if (referencepath_steps_itemValidationError !== null) {
|
|
784
|
-
let message = 'Object doesn\'t match PathAssistantStepRepresentation (at "' + path_steps_item + '")\n';
|
|
785
|
-
message += referencepath_steps_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
786
|
-
return new TypeError(message);
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
})();
|
|
790
|
-
return v_error === undefined ? null : v_error;
|
|
117
|
+
const RepresentationType$1 = 'PathAssistantMetadataRepresentation';
|
|
118
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
119
|
+
return input;
|
|
791
120
|
}
|
|
792
|
-
const select$
|
|
793
|
-
const { selections: AnimationRuleRepresentation__selections, opaque: AnimationRuleRepresentation__opaque, } = select$9();
|
|
794
|
-
const { selections: PicklistForRecordTypeRepresentation__selections, opaque: PicklistForRecordTypeRepresentation__opaque, } = select$7();
|
|
795
|
-
const { selections: PathAssistantStepRepresentation__selections, opaque: PathAssistantStepRepresentation__opaque, } = select$5();
|
|
121
|
+
const select$3 = function PathAssistantMetadataRepresentationSelect() {
|
|
796
122
|
return {
|
|
797
123
|
kind: 'Fragment',
|
|
798
|
-
version: VERSION$
|
|
124
|
+
version: VERSION$1,
|
|
799
125
|
private: [],
|
|
800
126
|
selections: [
|
|
801
127
|
{
|
|
802
|
-
name: '
|
|
128
|
+
name: 'extraData',
|
|
803
129
|
kind: 'Object',
|
|
804
|
-
|
|
805
|
-
selections: AnimationRuleRepresentation__selections
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
name: 'apiName',
|
|
809
|
-
kind: 'Scalar'
|
|
810
|
-
},
|
|
811
|
-
{
|
|
812
|
-
name: 'isActive',
|
|
813
|
-
kind: 'Scalar'
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
name: 'label',
|
|
817
|
-
kind: 'Scalar'
|
|
818
|
-
},
|
|
819
|
-
{
|
|
820
|
-
name: 'picklistField',
|
|
821
|
-
kind: 'Scalar'
|
|
130
|
+
// any
|
|
822
131
|
},
|
|
823
132
|
{
|
|
824
|
-
name: '
|
|
133
|
+
name: 'pathAssistant',
|
|
825
134
|
kind: 'Object',
|
|
826
|
-
|
|
827
|
-
selections: PicklistForRecordTypeRepresentation__selections
|
|
828
|
-
},
|
|
829
|
-
{
|
|
830
|
-
name: 'recordTypeId',
|
|
831
|
-
kind: 'Scalar'
|
|
135
|
+
// any
|
|
832
136
|
},
|
|
833
137
|
{
|
|
834
|
-
name: '
|
|
138
|
+
name: 'recordData',
|
|
835
139
|
kind: 'Object',
|
|
836
|
-
|
|
837
|
-
selections: PathAssistantStepRepresentation__selections
|
|
140
|
+
// any
|
|
838
141
|
}
|
|
839
142
|
]
|
|
840
143
|
};
|
|
841
144
|
};
|
|
842
|
-
function equals$
|
|
843
|
-
const
|
|
844
|
-
const
|
|
845
|
-
if (
|
|
846
|
-
return false;
|
|
847
|
-
}
|
|
848
|
-
const existing_apiName = existing.apiName;
|
|
849
|
-
const incoming_apiName = incoming.apiName;
|
|
850
|
-
if (!(existing_apiName === incoming_apiName)) {
|
|
851
|
-
return false;
|
|
852
|
-
}
|
|
853
|
-
const existing_label = existing.label;
|
|
854
|
-
const incoming_label = incoming.label;
|
|
855
|
-
if (!(existing_label === incoming_label)) {
|
|
856
|
-
return false;
|
|
857
|
-
}
|
|
858
|
-
const existing_picklistField = existing.picklistField;
|
|
859
|
-
const incoming_picklistField = incoming.picklistField;
|
|
860
|
-
if (!(existing_picklistField === incoming_picklistField)) {
|
|
861
|
-
return false;
|
|
862
|
-
}
|
|
863
|
-
const existing_animationRule = existing.animationRule;
|
|
864
|
-
const incoming_animationRule = incoming.animationRule;
|
|
865
|
-
const equals_animationRule_items = equalsArray(existing_animationRule, incoming_animationRule, (existing_animationRule_item, incoming_animationRule_item) => {
|
|
866
|
-
if (!(equals$7(existing_animationRule_item, incoming_animationRule_item))) {
|
|
867
|
-
return false;
|
|
868
|
-
}
|
|
869
|
-
});
|
|
870
|
-
if (equals_animationRule_items === false) {
|
|
871
|
-
return false;
|
|
872
|
-
}
|
|
873
|
-
const existing_picklistsForRecordType = existing.picklistsForRecordType;
|
|
874
|
-
const incoming_picklistsForRecordType = incoming.picklistsForRecordType;
|
|
875
|
-
const equals_picklistsForRecordType_items = equalsArray(existing_picklistsForRecordType, incoming_picklistsForRecordType, (existing_picklistsForRecordType_item, incoming_picklistsForRecordType_item) => {
|
|
876
|
-
if (!(equals$5(existing_picklistsForRecordType_item, incoming_picklistsForRecordType_item))) {
|
|
877
|
-
return false;
|
|
878
|
-
}
|
|
879
|
-
});
|
|
880
|
-
if (equals_picklistsForRecordType_items === false) {
|
|
145
|
+
function equals$1(existing, incoming) {
|
|
146
|
+
const existing_extraData = existing.extraData;
|
|
147
|
+
const incoming_extraData = incoming.extraData;
|
|
148
|
+
if (JSONStringify(incoming_extraData) !== JSONStringify(existing_extraData)) {
|
|
881
149
|
return false;
|
|
882
150
|
}
|
|
883
|
-
const
|
|
884
|
-
const
|
|
885
|
-
if (
|
|
151
|
+
const existing_pathAssistant = existing.pathAssistant;
|
|
152
|
+
const incoming_pathAssistant = incoming.pathAssistant;
|
|
153
|
+
if (JSONStringify(incoming_pathAssistant) !== JSONStringify(existing_pathAssistant)) {
|
|
886
154
|
return false;
|
|
887
155
|
}
|
|
888
|
-
const
|
|
889
|
-
const
|
|
890
|
-
|
|
891
|
-
if (!(equals$3(existing_steps_item, incoming_steps_item))) {
|
|
892
|
-
return false;
|
|
893
|
-
}
|
|
894
|
-
});
|
|
895
|
-
if (equals_steps_items === false) {
|
|
896
|
-
return false;
|
|
897
|
-
}
|
|
898
|
-
return true;
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
const TTL$1 = 30000;
|
|
902
|
-
const VERSION$1 = "7a55233dea628d1403e3f698a6559d74";
|
|
903
|
-
function validate$1(obj, path = 'PathAssistantMetadataRepresentation') {
|
|
904
|
-
const v_error = (() => {
|
|
905
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
906
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
907
|
-
}
|
|
908
|
-
const obj_pathAssistants = obj.pathAssistants;
|
|
909
|
-
const path_pathAssistants = path + '.pathAssistants';
|
|
910
|
-
if (!ArrayIsArray(obj_pathAssistants)) {
|
|
911
|
-
return new TypeError('Expected "array" but received "' + typeof obj_pathAssistants + '" (at "' + path_pathAssistants + '")');
|
|
912
|
-
}
|
|
913
|
-
for (let i = 0; i < obj_pathAssistants.length; i++) {
|
|
914
|
-
const obj_pathAssistants_item = obj_pathAssistants[i];
|
|
915
|
-
const path_pathAssistants_item = path_pathAssistants + '[' + i + ']';
|
|
916
|
-
const referencepath_pathAssistants_itemValidationError = validate$2(obj_pathAssistants_item, path_pathAssistants_item);
|
|
917
|
-
if (referencepath_pathAssistants_itemValidationError !== null) {
|
|
918
|
-
let message = 'Object doesn\'t match PathAssistantRepresentation (at "' + path_pathAssistants_item + '")\n';
|
|
919
|
-
message += referencepath_pathAssistants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
920
|
-
return new TypeError(message);
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
})();
|
|
924
|
-
return v_error === undefined ? null : v_error;
|
|
925
|
-
}
|
|
926
|
-
const RepresentationType$1 = 'PathAssistantMetadataRepresentation';
|
|
927
|
-
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
928
|
-
return input;
|
|
929
|
-
}
|
|
930
|
-
const select$3 = function PathAssistantMetadataRepresentationSelect() {
|
|
931
|
-
const { selections: PathAssistantRepresentation__selections, opaque: PathAssistantRepresentation__opaque, } = select$4();
|
|
932
|
-
return {
|
|
933
|
-
kind: 'Fragment',
|
|
934
|
-
version: VERSION$1,
|
|
935
|
-
private: [],
|
|
936
|
-
selections: [
|
|
937
|
-
{
|
|
938
|
-
name: 'pathAssistants',
|
|
939
|
-
kind: 'Object',
|
|
940
|
-
plural: true,
|
|
941
|
-
selections: PathAssistantRepresentation__selections
|
|
942
|
-
}
|
|
943
|
-
]
|
|
944
|
-
};
|
|
945
|
-
};
|
|
946
|
-
function equals$1(existing, incoming) {
|
|
947
|
-
const existing_pathAssistants = existing.pathAssistants;
|
|
948
|
-
const incoming_pathAssistants = incoming.pathAssistants;
|
|
949
|
-
const equals_pathAssistants_items = equalsArray(existing_pathAssistants, incoming_pathAssistants, (existing_pathAssistants_item, incoming_pathAssistants_item) => {
|
|
950
|
-
if (!(equals$2(existing_pathAssistants_item, incoming_pathAssistants_item))) {
|
|
951
|
-
return false;
|
|
952
|
-
}
|
|
953
|
-
});
|
|
954
|
-
if (equals_pathAssistants_items === false) {
|
|
156
|
+
const existing_recordData = existing.recordData;
|
|
157
|
+
const incoming_recordData = incoming.recordData;
|
|
158
|
+
if (JSONStringify(incoming_recordData) !== JSONStringify(existing_recordData)) {
|
|
955
159
|
return false;
|
|
956
160
|
}
|
|
957
161
|
return true;
|
|
@@ -1348,4 +552,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1348
552
|
});
|
|
1349
553
|
|
|
1350
554
|
export { getPathAssistant, getPathAssistantDaysInStage, getPathAssistantDaysInStage_imperative, getPathAssistant_imperative };
|
|
1351
|
-
// version: 1.
|
|
555
|
+
// version: 1.248.0-0a41f7ec3
|