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