@salesforce/lds-adapters-service-serviceplan 1.348.0 → 1.349.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/service-serviceplan.js +46 -649
- package/dist/es/es2018/types/src/generated/adapters/generateServicePlan.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectServicePlanGenerationRequests.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanDetailsRepresentation.d.ts +5 -2
- package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationOutputRepresentation.d.ts +2 -21
- package/dist/es/es2018/types/src/generated/types/ServicePlanStepDetailsRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +47 -650
- package/src/raml/api.raml +70 -211
- package/src/raml/luvio.raml +0 -16
- package/dist/es/es2018/types/src/generated/resources/getConnectServicePlanExecuteByPlanOrStepId.d.ts +0 -15
- package/dist/es/es2018/types/src/generated/types/ServicePlanDataInputRepresentation.d.ts +0 -28
- package/dist/es/es2018/types/src/generated/types/ServicePlanDataOutputRepresentation.d.ts +0 -28
- package/dist/es/es2018/types/src/generated/types/ServicePlanExecutionSummaryRepresentation.d.ts +0 -35
- package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationSessionInformationOutputRepresentation.d.ts +0 -37
- package/dist/es/es2018/types/src/generated/types/ServicePlanOutputRepresentation.d.ts +0 -57
- package/dist/es/es2018/types/src/generated/types/ServicePlanRepresentation.d.ts +0 -44
- package/dist/es/es2018/types/src/generated/types/ServicePlanStepExecutionSummaryRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/ServicePlanStepRepresentation.d.ts +0 -37
|
@@ -93,8 +93,8 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
const VERSION$
|
|
97
|
-
function validate$
|
|
96
|
+
const VERSION$4 = "de8249c0171ece44729fbb33b422a074";
|
|
97
|
+
function validate$5(obj, path = 'ServicePlanStepExecutionStatusRepresentation') {
|
|
98
98
|
const v_error = (() => {
|
|
99
99
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
100
100
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -133,48 +133,48 @@ function validate$8(obj, path = 'ServicePlanStepExecutionStatusRepresentation')
|
|
|
133
133
|
})();
|
|
134
134
|
return v_error === undefined ? null : v_error;
|
|
135
135
|
}
|
|
136
|
-
const RepresentationType$
|
|
137
|
-
function normalize$
|
|
136
|
+
const RepresentationType$4 = 'ServicePlanStepExecutionStatusRepresentation';
|
|
137
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
138
138
|
return input;
|
|
139
139
|
}
|
|
140
|
-
const select$
|
|
140
|
+
const select$8 = function ServicePlanStepExecutionStatusRepresentationSelect() {
|
|
141
141
|
return {
|
|
142
142
|
kind: 'Fragment',
|
|
143
|
-
version: VERSION$
|
|
143
|
+
version: VERSION$4,
|
|
144
144
|
private: [],
|
|
145
145
|
opaque: true
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
|
-
function equals$
|
|
148
|
+
function equals$4(existing, incoming) {
|
|
149
149
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
150
150
|
return false;
|
|
151
151
|
}
|
|
152
152
|
return true;
|
|
153
153
|
}
|
|
154
|
-
const ingest$
|
|
154
|
+
const ingest$4 = function ServicePlanStepExecutionStatusRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
155
155
|
if (process.env.NODE_ENV !== 'production') {
|
|
156
|
-
const validateError = validate$
|
|
156
|
+
const validateError = validate$5(input);
|
|
157
157
|
if (validateError !== null) {
|
|
158
158
|
throw validateError;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
const key = path.fullPath;
|
|
162
162
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
163
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
163
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "ServicePlan", VERSION$4, RepresentationType$4, equals$4);
|
|
164
164
|
return createLink(key);
|
|
165
165
|
};
|
|
166
|
-
function getTypeCacheKeys$
|
|
166
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
167
167
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
168
168
|
const rootKey = fullPathFactory();
|
|
169
169
|
rootKeySet.set(rootKey, {
|
|
170
170
|
namespace: keyPrefix,
|
|
171
|
-
representationName: RepresentationType$
|
|
171
|
+
representationName: RepresentationType$4,
|
|
172
172
|
mergeable: false
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
const VERSION$
|
|
177
|
-
function validate$
|
|
176
|
+
const VERSION$3 = "f3a6de28bf56634adca757ba07accf43";
|
|
177
|
+
function validate$4(obj, path = 'ServicePlanExecutionOutputRepresentation') {
|
|
178
178
|
const v_error = (() => {
|
|
179
179
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
180
180
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -199,9 +199,9 @@ function validate$7(obj, path = 'ServicePlanExecutionOutputRepresentation') {
|
|
|
199
199
|
})();
|
|
200
200
|
return v_error === undefined ? null : v_error;
|
|
201
201
|
}
|
|
202
|
-
const RepresentationType$
|
|
202
|
+
const RepresentationType$3 = 'ServicePlanExecutionOutputRepresentation';
|
|
203
203
|
function keyBuilder$6(luvio, config) {
|
|
204
|
-
return keyPrefix + '::' + RepresentationType$
|
|
204
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
|
|
205
205
|
}
|
|
206
206
|
function keyBuilderFromType$2(luvio, object) {
|
|
207
207
|
const keyParams = {
|
|
@@ -209,13 +209,13 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
209
209
|
};
|
|
210
210
|
return keyBuilder$6(luvio, keyParams);
|
|
211
211
|
}
|
|
212
|
-
function normalize$
|
|
212
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
213
213
|
const input_planSteps = input.planSteps;
|
|
214
214
|
const input_planSteps_id = path.fullPath + '__planSteps';
|
|
215
215
|
for (let i = 0; i < input_planSteps.length; i++) {
|
|
216
216
|
const input_planSteps_item = input_planSteps[i];
|
|
217
217
|
let input_planSteps_item_id = input_planSteps_id + '__' + i;
|
|
218
|
-
input_planSteps[i] = ingest$
|
|
218
|
+
input_planSteps[i] = ingest$4(input_planSteps_item, {
|
|
219
219
|
fullPath: input_planSteps_item_id,
|
|
220
220
|
propertyName: i,
|
|
221
221
|
parent: {
|
|
@@ -228,10 +228,10 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
228
228
|
}
|
|
229
229
|
return input;
|
|
230
230
|
}
|
|
231
|
-
const select$
|
|
231
|
+
const select$7 = function ServicePlanExecutionOutputRepresentationSelect() {
|
|
232
232
|
return {
|
|
233
233
|
kind: 'Fragment',
|
|
234
|
-
version: VERSION$
|
|
234
|
+
version: VERSION$3,
|
|
235
235
|
private: [],
|
|
236
236
|
selections: [
|
|
237
237
|
{
|
|
@@ -242,12 +242,12 @@ const select$8 = function ServicePlanExecutionOutputRepresentationSelect() {
|
|
|
242
242
|
name: 'planSteps',
|
|
243
243
|
kind: 'Link',
|
|
244
244
|
plural: true,
|
|
245
|
-
fragment: select$
|
|
245
|
+
fragment: select$8()
|
|
246
246
|
}
|
|
247
247
|
]
|
|
248
248
|
};
|
|
249
249
|
};
|
|
250
|
-
function equals$
|
|
250
|
+
function equals$3(existing, incoming) {
|
|
251
251
|
const existing_executionStatus = existing.executionStatus;
|
|
252
252
|
const incoming_executionStatus = incoming.executionStatus;
|
|
253
253
|
if (!(existing_executionStatus === incoming_executionStatus)) {
|
|
@@ -265,45 +265,45 @@ function equals$4(existing, incoming) {
|
|
|
265
265
|
}
|
|
266
266
|
return true;
|
|
267
267
|
}
|
|
268
|
-
const ingest$
|
|
268
|
+
const ingest$3 = function ServicePlanExecutionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
269
269
|
if (process.env.NODE_ENV !== 'production') {
|
|
270
|
-
const validateError = validate$
|
|
270
|
+
const validateError = validate$4(input);
|
|
271
271
|
if (validateError !== null) {
|
|
272
272
|
throw validateError;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
const key = keyBuilderFromType$2(luvio, input);
|
|
276
276
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
277
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
277
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "ServicePlan", VERSION$3, RepresentationType$3, equals$3);
|
|
278
278
|
return createLink(key);
|
|
279
279
|
};
|
|
280
|
-
function getTypeCacheKeys$
|
|
280
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
281
281
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
282
282
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
283
283
|
rootKeySet.set(rootKey, {
|
|
284
284
|
namespace: keyPrefix,
|
|
285
|
-
representationName: RepresentationType$
|
|
285
|
+
representationName: RepresentationType$3,
|
|
286
286
|
mergeable: false
|
|
287
287
|
});
|
|
288
288
|
const input_planSteps_length = input.planSteps.length;
|
|
289
289
|
for (let i = 0; i < input_planSteps_length; i++) {
|
|
290
|
-
getTypeCacheKeys$
|
|
290
|
+
getTypeCacheKeys$4(rootKeySet, luvio, input.planSteps[i], () => '');
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
function select$
|
|
295
|
-
return select$
|
|
294
|
+
function select$6(luvio, params) {
|
|
295
|
+
return select$7();
|
|
296
296
|
}
|
|
297
297
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
298
|
-
getTypeCacheKeys$
|
|
298
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
299
299
|
}
|
|
300
300
|
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
301
301
|
const { body } = response;
|
|
302
302
|
const key = keyBuilderFromType$2(luvio, body);
|
|
303
|
-
luvio.storeIngest(key, ingest$
|
|
303
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
304
304
|
const snapshot = luvio.storeLookup({
|
|
305
305
|
recordId: key,
|
|
306
|
-
node: select$
|
|
306
|
+
node: select$6(),
|
|
307
307
|
variables: {},
|
|
308
308
|
});
|
|
309
309
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -382,550 +382,13 @@ const executeServicePlanAdapterFactory = (luvio) => {
|
|
|
382
382
|
};
|
|
383
383
|
};
|
|
384
384
|
|
|
385
|
-
function validate$6(obj, path = 'ServicePlanGenerationSessionInformationOutputRepresentation') {
|
|
386
|
-
const v_error = (() => {
|
|
387
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
388
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
389
|
-
}
|
|
390
|
-
const obj_clientFeatureKey = obj.clientFeatureKey;
|
|
391
|
-
const path_clientFeatureKey = path + '.clientFeatureKey';
|
|
392
|
-
let obj_clientFeatureKey_union0 = null;
|
|
393
|
-
const obj_clientFeatureKey_union0_error = (() => {
|
|
394
|
-
if (typeof obj_clientFeatureKey !== 'string') {
|
|
395
|
-
return new TypeError('Expected "string" but received "' + typeof obj_clientFeatureKey + '" (at "' + path_clientFeatureKey + '")');
|
|
396
|
-
}
|
|
397
|
-
})();
|
|
398
|
-
if (obj_clientFeatureKey_union0_error != null) {
|
|
399
|
-
obj_clientFeatureKey_union0 = obj_clientFeatureKey_union0_error.message;
|
|
400
|
-
}
|
|
401
|
-
let obj_clientFeatureKey_union1 = null;
|
|
402
|
-
const obj_clientFeatureKey_union1_error = (() => {
|
|
403
|
-
if (obj_clientFeatureKey !== null) {
|
|
404
|
-
return new TypeError('Expected "null" but received "' + typeof obj_clientFeatureKey + '" (at "' + path_clientFeatureKey + '")');
|
|
405
|
-
}
|
|
406
|
-
})();
|
|
407
|
-
if (obj_clientFeatureKey_union1_error != null) {
|
|
408
|
-
obj_clientFeatureKey_union1 = obj_clientFeatureKey_union1_error.message;
|
|
409
|
-
}
|
|
410
|
-
if (obj_clientFeatureKey_union0 && obj_clientFeatureKey_union1) {
|
|
411
|
-
let message = 'Object doesn\'t match union (at "' + path_clientFeatureKey + '")';
|
|
412
|
-
message += '\n' + obj_clientFeatureKey_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
413
|
-
message += '\n' + obj_clientFeatureKey_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
414
|
-
return new TypeError(message);
|
|
415
|
-
}
|
|
416
|
-
const obj_feedbackKey = obj.feedbackKey;
|
|
417
|
-
const path_feedbackKey = path + '.feedbackKey';
|
|
418
|
-
let obj_feedbackKey_union0 = null;
|
|
419
|
-
const obj_feedbackKey_union0_error = (() => {
|
|
420
|
-
if (typeof obj_feedbackKey !== 'string') {
|
|
421
|
-
return new TypeError('Expected "string" but received "' + typeof obj_feedbackKey + '" (at "' + path_feedbackKey + '")');
|
|
422
|
-
}
|
|
423
|
-
})();
|
|
424
|
-
if (obj_feedbackKey_union0_error != null) {
|
|
425
|
-
obj_feedbackKey_union0 = obj_feedbackKey_union0_error.message;
|
|
426
|
-
}
|
|
427
|
-
let obj_feedbackKey_union1 = null;
|
|
428
|
-
const obj_feedbackKey_union1_error = (() => {
|
|
429
|
-
if (obj_feedbackKey !== null) {
|
|
430
|
-
return new TypeError('Expected "null" but received "' + typeof obj_feedbackKey + '" (at "' + path_feedbackKey + '")');
|
|
431
|
-
}
|
|
432
|
-
})();
|
|
433
|
-
if (obj_feedbackKey_union1_error != null) {
|
|
434
|
-
obj_feedbackKey_union1 = obj_feedbackKey_union1_error.message;
|
|
435
|
-
}
|
|
436
|
-
if (obj_feedbackKey_union0 && obj_feedbackKey_union1) {
|
|
437
|
-
let message = 'Object doesn\'t match union (at "' + path_feedbackKey + '")';
|
|
438
|
-
message += '\n' + obj_feedbackKey_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
439
|
-
message += '\n' + obj_feedbackKey_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
440
|
-
return new TypeError(message);
|
|
441
|
-
}
|
|
442
|
-
const obj_planKey = obj.planKey;
|
|
443
|
-
const path_planKey = path + '.planKey';
|
|
444
|
-
let obj_planKey_union0 = null;
|
|
445
|
-
const obj_planKey_union0_error = (() => {
|
|
446
|
-
if (typeof obj_planKey !== 'string') {
|
|
447
|
-
return new TypeError('Expected "string" but received "' + typeof obj_planKey + '" (at "' + path_planKey + '")');
|
|
448
|
-
}
|
|
449
|
-
})();
|
|
450
|
-
if (obj_planKey_union0_error != null) {
|
|
451
|
-
obj_planKey_union0 = obj_planKey_union0_error.message;
|
|
452
|
-
}
|
|
453
|
-
let obj_planKey_union1 = null;
|
|
454
|
-
const obj_planKey_union1_error = (() => {
|
|
455
|
-
if (obj_planKey !== null) {
|
|
456
|
-
return new TypeError('Expected "null" but received "' + typeof obj_planKey + '" (at "' + path_planKey + '")');
|
|
457
|
-
}
|
|
458
|
-
})();
|
|
459
|
-
if (obj_planKey_union1_error != null) {
|
|
460
|
-
obj_planKey_union1 = obj_planKey_union1_error.message;
|
|
461
|
-
}
|
|
462
|
-
if (obj_planKey_union0 && obj_planKey_union1) {
|
|
463
|
-
let message = 'Object doesn\'t match union (at "' + path_planKey + '")';
|
|
464
|
-
message += '\n' + obj_planKey_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
465
|
-
message += '\n' + obj_planKey_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
466
|
-
return new TypeError(message);
|
|
467
|
-
}
|
|
468
|
-
const obj_sessionKey = obj.sessionKey;
|
|
469
|
-
const path_sessionKey = path + '.sessionKey';
|
|
470
|
-
let obj_sessionKey_union0 = null;
|
|
471
|
-
const obj_sessionKey_union0_error = (() => {
|
|
472
|
-
if (typeof obj_sessionKey !== 'string') {
|
|
473
|
-
return new TypeError('Expected "string" but received "' + typeof obj_sessionKey + '" (at "' + path_sessionKey + '")');
|
|
474
|
-
}
|
|
475
|
-
})();
|
|
476
|
-
if (obj_sessionKey_union0_error != null) {
|
|
477
|
-
obj_sessionKey_union0 = obj_sessionKey_union0_error.message;
|
|
478
|
-
}
|
|
479
|
-
let obj_sessionKey_union1 = null;
|
|
480
|
-
const obj_sessionKey_union1_error = (() => {
|
|
481
|
-
if (obj_sessionKey !== null) {
|
|
482
|
-
return new TypeError('Expected "null" but received "' + typeof obj_sessionKey + '" (at "' + path_sessionKey + '")');
|
|
483
|
-
}
|
|
484
|
-
})();
|
|
485
|
-
if (obj_sessionKey_union1_error != null) {
|
|
486
|
-
obj_sessionKey_union1 = obj_sessionKey_union1_error.message;
|
|
487
|
-
}
|
|
488
|
-
if (obj_sessionKey_union0 && obj_sessionKey_union1) {
|
|
489
|
-
let message = 'Object doesn\'t match union (at "' + path_sessionKey + '")';
|
|
490
|
-
message += '\n' + obj_sessionKey_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
491
|
-
message += '\n' + obj_sessionKey_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
492
|
-
return new TypeError(message);
|
|
493
|
-
}
|
|
494
|
-
})();
|
|
495
|
-
return v_error === undefined ? null : v_error;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
function validate$5(obj, path = 'ServicePlanStepRepresentation') {
|
|
499
|
-
const v_error = (() => {
|
|
500
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
501
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
502
|
-
}
|
|
503
|
-
const obj_groupName = obj.groupName;
|
|
504
|
-
const path_groupName = path + '.groupName';
|
|
505
|
-
let obj_groupName_union0 = null;
|
|
506
|
-
const obj_groupName_union0_error = (() => {
|
|
507
|
-
if (typeof obj_groupName !== 'string') {
|
|
508
|
-
return new TypeError('Expected "string" but received "' + typeof obj_groupName + '" (at "' + path_groupName + '")');
|
|
509
|
-
}
|
|
510
|
-
})();
|
|
511
|
-
if (obj_groupName_union0_error != null) {
|
|
512
|
-
obj_groupName_union0 = obj_groupName_union0_error.message;
|
|
513
|
-
}
|
|
514
|
-
let obj_groupName_union1 = null;
|
|
515
|
-
const obj_groupName_union1_error = (() => {
|
|
516
|
-
if (obj_groupName !== null) {
|
|
517
|
-
return new TypeError('Expected "null" but received "' + typeof obj_groupName + '" (at "' + path_groupName + '")');
|
|
518
|
-
}
|
|
519
|
-
})();
|
|
520
|
-
if (obj_groupName_union1_error != null) {
|
|
521
|
-
obj_groupName_union1 = obj_groupName_union1_error.message;
|
|
522
|
-
}
|
|
523
|
-
if (obj_groupName_union0 && obj_groupName_union1) {
|
|
524
|
-
let message = 'Object doesn\'t match union (at "' + path_groupName + '")';
|
|
525
|
-
message += '\n' + obj_groupName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
526
|
-
message += '\n' + obj_groupName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
527
|
-
return new TypeError(message);
|
|
528
|
-
}
|
|
529
|
-
const obj_id = obj.id;
|
|
530
|
-
const path_id = path + '.id';
|
|
531
|
-
if (typeof obj_id !== 'string') {
|
|
532
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
533
|
-
}
|
|
534
|
-
const obj_name = obj.name;
|
|
535
|
-
const path_name = path + '.name';
|
|
536
|
-
let obj_name_union0 = null;
|
|
537
|
-
const obj_name_union0_error = (() => {
|
|
538
|
-
if (typeof obj_name !== 'string') {
|
|
539
|
-
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
540
|
-
}
|
|
541
|
-
})();
|
|
542
|
-
if (obj_name_union0_error != null) {
|
|
543
|
-
obj_name_union0 = obj_name_union0_error.message;
|
|
544
|
-
}
|
|
545
|
-
let obj_name_union1 = null;
|
|
546
|
-
const obj_name_union1_error = (() => {
|
|
547
|
-
if (obj_name !== null) {
|
|
548
|
-
return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
549
|
-
}
|
|
550
|
-
})();
|
|
551
|
-
if (obj_name_union1_error != null) {
|
|
552
|
-
obj_name_union1 = obj_name_union1_error.message;
|
|
553
|
-
}
|
|
554
|
-
if (obj_name_union0 && obj_name_union1) {
|
|
555
|
-
let message = 'Object doesn\'t match union (at "' + path_name + '")';
|
|
556
|
-
message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
557
|
-
message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
558
|
-
return new TypeError(message);
|
|
559
|
-
}
|
|
560
|
-
const obj_order = obj.order;
|
|
561
|
-
const path_order = path + '.order';
|
|
562
|
-
if (typeof obj_order !== 'number' || (typeof obj_order === 'number' && Math.floor(obj_order) !== obj_order)) {
|
|
563
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_order + '" (at "' + path_order + '")');
|
|
564
|
-
}
|
|
565
|
-
})();
|
|
566
|
-
return v_error === undefined ? null : v_error;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
const VERSION$3 = "4c0fefe9caa169c4221be369e384ee56";
|
|
570
|
-
function validate$4(obj, path = 'ServicePlanOutputRepresentation') {
|
|
571
|
-
const v_error = (() => {
|
|
572
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
573
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
574
|
-
}
|
|
575
|
-
const obj_copilotSessionInfo = obj.copilotSessionInfo;
|
|
576
|
-
const path_copilotSessionInfo = path + '.copilotSessionInfo';
|
|
577
|
-
let obj_copilotSessionInfo_union0 = null;
|
|
578
|
-
const obj_copilotSessionInfo_union0_error = (() => {
|
|
579
|
-
const referencepath_copilotSessionInfoValidationError = validate$6(obj_copilotSessionInfo, path_copilotSessionInfo);
|
|
580
|
-
if (referencepath_copilotSessionInfoValidationError !== null) {
|
|
581
|
-
let message = 'Object doesn\'t match ServicePlanGenerationSessionInformationOutputRepresentation (at "' + path_copilotSessionInfo + '")\n';
|
|
582
|
-
message += referencepath_copilotSessionInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
583
|
-
return new TypeError(message);
|
|
584
|
-
}
|
|
585
|
-
})();
|
|
586
|
-
if (obj_copilotSessionInfo_union0_error != null) {
|
|
587
|
-
obj_copilotSessionInfo_union0 = obj_copilotSessionInfo_union0_error.message;
|
|
588
|
-
}
|
|
589
|
-
let obj_copilotSessionInfo_union1 = null;
|
|
590
|
-
const obj_copilotSessionInfo_union1_error = (() => {
|
|
591
|
-
if (obj_copilotSessionInfo !== null) {
|
|
592
|
-
return new TypeError('Expected "null" but received "' + typeof obj_copilotSessionInfo + '" (at "' + path_copilotSessionInfo + '")');
|
|
593
|
-
}
|
|
594
|
-
})();
|
|
595
|
-
if (obj_copilotSessionInfo_union1_error != null) {
|
|
596
|
-
obj_copilotSessionInfo_union1 = obj_copilotSessionInfo_union1_error.message;
|
|
597
|
-
}
|
|
598
|
-
if (obj_copilotSessionInfo_union0 && obj_copilotSessionInfo_union1) {
|
|
599
|
-
let message = 'Object doesn\'t match union (at "' + path_copilotSessionInfo + '")';
|
|
600
|
-
message += '\n' + obj_copilotSessionInfo_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
601
|
-
message += '\n' + obj_copilotSessionInfo_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
602
|
-
return new TypeError(message);
|
|
603
|
-
}
|
|
604
|
-
const obj_createdDate = obj.createdDate;
|
|
605
|
-
const path_createdDate = path + '.createdDate';
|
|
606
|
-
let obj_createdDate_union0 = null;
|
|
607
|
-
const obj_createdDate_union0_error = (() => {
|
|
608
|
-
if (typeof obj_createdDate !== 'string') {
|
|
609
|
-
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
610
|
-
}
|
|
611
|
-
})();
|
|
612
|
-
if (obj_createdDate_union0_error != null) {
|
|
613
|
-
obj_createdDate_union0 = obj_createdDate_union0_error.message;
|
|
614
|
-
}
|
|
615
|
-
let obj_createdDate_union1 = null;
|
|
616
|
-
const obj_createdDate_union1_error = (() => {
|
|
617
|
-
if (obj_createdDate !== null) {
|
|
618
|
-
return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
619
|
-
}
|
|
620
|
-
})();
|
|
621
|
-
if (obj_createdDate_union1_error != null) {
|
|
622
|
-
obj_createdDate_union1 = obj_createdDate_union1_error.message;
|
|
623
|
-
}
|
|
624
|
-
if (obj_createdDate_union0 && obj_createdDate_union1) {
|
|
625
|
-
let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
|
|
626
|
-
message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
627
|
-
message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
628
|
-
return new TypeError(message);
|
|
629
|
-
}
|
|
630
|
-
const obj_id = obj.id;
|
|
631
|
-
const path_id = path + '.id';
|
|
632
|
-
let obj_id_union0 = null;
|
|
633
|
-
const obj_id_union0_error = (() => {
|
|
634
|
-
if (typeof obj_id !== 'string') {
|
|
635
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
636
|
-
}
|
|
637
|
-
})();
|
|
638
|
-
if (obj_id_union0_error != null) {
|
|
639
|
-
obj_id_union0 = obj_id_union0_error.message;
|
|
640
|
-
}
|
|
641
|
-
let obj_id_union1 = null;
|
|
642
|
-
const obj_id_union1_error = (() => {
|
|
643
|
-
if (obj_id !== null) {
|
|
644
|
-
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
645
|
-
}
|
|
646
|
-
})();
|
|
647
|
-
if (obj_id_union1_error != null) {
|
|
648
|
-
obj_id_union1 = obj_id_union1_error.message;
|
|
649
|
-
}
|
|
650
|
-
if (obj_id_union0 && obj_id_union1) {
|
|
651
|
-
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
652
|
-
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
653
|
-
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
654
|
-
return new TypeError(message);
|
|
655
|
-
}
|
|
656
|
-
const obj_intent = obj.intent;
|
|
657
|
-
const path_intent = path + '.intent';
|
|
658
|
-
let obj_intent_union0 = null;
|
|
659
|
-
const obj_intent_union0_error = (() => {
|
|
660
|
-
if (typeof obj_intent !== 'string') {
|
|
661
|
-
return new TypeError('Expected "string" but received "' + typeof obj_intent + '" (at "' + path_intent + '")');
|
|
662
|
-
}
|
|
663
|
-
})();
|
|
664
|
-
if (obj_intent_union0_error != null) {
|
|
665
|
-
obj_intent_union0 = obj_intent_union0_error.message;
|
|
666
|
-
}
|
|
667
|
-
let obj_intent_union1 = null;
|
|
668
|
-
const obj_intent_union1_error = (() => {
|
|
669
|
-
if (obj_intent !== null) {
|
|
670
|
-
return new TypeError('Expected "null" but received "' + typeof obj_intent + '" (at "' + path_intent + '")');
|
|
671
|
-
}
|
|
672
|
-
})();
|
|
673
|
-
if (obj_intent_union1_error != null) {
|
|
674
|
-
obj_intent_union1 = obj_intent_union1_error.message;
|
|
675
|
-
}
|
|
676
|
-
if (obj_intent_union0 && obj_intent_union1) {
|
|
677
|
-
let message = 'Object doesn\'t match union (at "' + path_intent + '")';
|
|
678
|
-
message += '\n' + obj_intent_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
679
|
-
message += '\n' + obj_intent_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
680
|
-
return new TypeError(message);
|
|
681
|
-
}
|
|
682
|
-
const obj_plan = obj.plan;
|
|
683
|
-
const path_plan = path + '.plan';
|
|
684
|
-
let obj_plan_union0 = null;
|
|
685
|
-
const obj_plan_union0_error = (() => {
|
|
686
|
-
if (typeof obj_plan !== 'string') {
|
|
687
|
-
return new TypeError('Expected "string" but received "' + typeof obj_plan + '" (at "' + path_plan + '")');
|
|
688
|
-
}
|
|
689
|
-
})();
|
|
690
|
-
if (obj_plan_union0_error != null) {
|
|
691
|
-
obj_plan_union0 = obj_plan_union0_error.message;
|
|
692
|
-
}
|
|
693
|
-
let obj_plan_union1 = null;
|
|
694
|
-
const obj_plan_union1_error = (() => {
|
|
695
|
-
if (obj_plan !== null) {
|
|
696
|
-
return new TypeError('Expected "null" but received "' + typeof obj_plan + '" (at "' + path_plan + '")');
|
|
697
|
-
}
|
|
698
|
-
})();
|
|
699
|
-
if (obj_plan_union1_error != null) {
|
|
700
|
-
obj_plan_union1 = obj_plan_union1_error.message;
|
|
701
|
-
}
|
|
702
|
-
if (obj_plan_union0 && obj_plan_union1) {
|
|
703
|
-
let message = 'Object doesn\'t match union (at "' + path_plan + '")';
|
|
704
|
-
message += '\n' + obj_plan_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
705
|
-
message += '\n' + obj_plan_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
706
|
-
return new TypeError(message);
|
|
707
|
-
}
|
|
708
|
-
const obj_steps = obj.steps;
|
|
709
|
-
const path_steps = path + '.steps';
|
|
710
|
-
if (!ArrayIsArray(obj_steps)) {
|
|
711
|
-
return new TypeError('Expected "array" but received "' + typeof obj_steps + '" (at "' + path_steps + '")');
|
|
712
|
-
}
|
|
713
|
-
for (let i = 0; i < obj_steps.length; i++) {
|
|
714
|
-
const obj_steps_item = obj_steps[i];
|
|
715
|
-
const path_steps_item = path_steps + '[' + i + ']';
|
|
716
|
-
const referencepath_steps_itemValidationError = validate$5(obj_steps_item, path_steps_item);
|
|
717
|
-
if (referencepath_steps_itemValidationError !== null) {
|
|
718
|
-
let message = 'Object doesn\'t match ServicePlanStepRepresentation (at "' + path_steps_item + '")\n';
|
|
719
|
-
message += referencepath_steps_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
720
|
-
return new TypeError(message);
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
const obj_topicDescription = obj.topicDescription;
|
|
724
|
-
const path_topicDescription = path + '.topicDescription';
|
|
725
|
-
let obj_topicDescription_union0 = null;
|
|
726
|
-
const obj_topicDescription_union0_error = (() => {
|
|
727
|
-
if (typeof obj_topicDescription !== 'string') {
|
|
728
|
-
return new TypeError('Expected "string" but received "' + typeof obj_topicDescription + '" (at "' + path_topicDescription + '")');
|
|
729
|
-
}
|
|
730
|
-
})();
|
|
731
|
-
if (obj_topicDescription_union0_error != null) {
|
|
732
|
-
obj_topicDescription_union0 = obj_topicDescription_union0_error.message;
|
|
733
|
-
}
|
|
734
|
-
let obj_topicDescription_union1 = null;
|
|
735
|
-
const obj_topicDescription_union1_error = (() => {
|
|
736
|
-
if (obj_topicDescription !== null) {
|
|
737
|
-
return new TypeError('Expected "null" but received "' + typeof obj_topicDescription + '" (at "' + path_topicDescription + '")');
|
|
738
|
-
}
|
|
739
|
-
})();
|
|
740
|
-
if (obj_topicDescription_union1_error != null) {
|
|
741
|
-
obj_topicDescription_union1 = obj_topicDescription_union1_error.message;
|
|
742
|
-
}
|
|
743
|
-
if (obj_topicDescription_union0 && obj_topicDescription_union1) {
|
|
744
|
-
let message = 'Object doesn\'t match union (at "' + path_topicDescription + '")';
|
|
745
|
-
message += '\n' + obj_topicDescription_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
746
|
-
message += '\n' + obj_topicDescription_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
747
|
-
return new TypeError(message);
|
|
748
|
-
}
|
|
749
|
-
const obj_topicId = obj.topicId;
|
|
750
|
-
const path_topicId = path + '.topicId';
|
|
751
|
-
let obj_topicId_union0 = null;
|
|
752
|
-
const obj_topicId_union0_error = (() => {
|
|
753
|
-
if (typeof obj_topicId !== 'string') {
|
|
754
|
-
return new TypeError('Expected "string" but received "' + typeof obj_topicId + '" (at "' + path_topicId + '")');
|
|
755
|
-
}
|
|
756
|
-
})();
|
|
757
|
-
if (obj_topicId_union0_error != null) {
|
|
758
|
-
obj_topicId_union0 = obj_topicId_union0_error.message;
|
|
759
|
-
}
|
|
760
|
-
let obj_topicId_union1 = null;
|
|
761
|
-
const obj_topicId_union1_error = (() => {
|
|
762
|
-
if (obj_topicId !== null) {
|
|
763
|
-
return new TypeError('Expected "null" but received "' + typeof obj_topicId + '" (at "' + path_topicId + '")');
|
|
764
|
-
}
|
|
765
|
-
})();
|
|
766
|
-
if (obj_topicId_union1_error != null) {
|
|
767
|
-
obj_topicId_union1 = obj_topicId_union1_error.message;
|
|
768
|
-
}
|
|
769
|
-
if (obj_topicId_union0 && obj_topicId_union1) {
|
|
770
|
-
let message = 'Object doesn\'t match union (at "' + path_topicId + '")';
|
|
771
|
-
message += '\n' + obj_topicId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
772
|
-
message += '\n' + obj_topicId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
773
|
-
return new TypeError(message);
|
|
774
|
-
}
|
|
775
|
-
const obj_topicName = obj.topicName;
|
|
776
|
-
const path_topicName = path + '.topicName';
|
|
777
|
-
let obj_topicName_union0 = null;
|
|
778
|
-
const obj_topicName_union0_error = (() => {
|
|
779
|
-
if (typeof obj_topicName !== 'string') {
|
|
780
|
-
return new TypeError('Expected "string" but received "' + typeof obj_topicName + '" (at "' + path_topicName + '")');
|
|
781
|
-
}
|
|
782
|
-
})();
|
|
783
|
-
if (obj_topicName_union0_error != null) {
|
|
784
|
-
obj_topicName_union0 = obj_topicName_union0_error.message;
|
|
785
|
-
}
|
|
786
|
-
let obj_topicName_union1 = null;
|
|
787
|
-
const obj_topicName_union1_error = (() => {
|
|
788
|
-
if (obj_topicName !== null) {
|
|
789
|
-
return new TypeError('Expected "null" but received "' + typeof obj_topicName + '" (at "' + path_topicName + '")');
|
|
790
|
-
}
|
|
791
|
-
})();
|
|
792
|
-
if (obj_topicName_union1_error != null) {
|
|
793
|
-
obj_topicName_union1 = obj_topicName_union1_error.message;
|
|
794
|
-
}
|
|
795
|
-
if (obj_topicName_union0 && obj_topicName_union1) {
|
|
796
|
-
let message = 'Object doesn\'t match union (at "' + path_topicName + '")';
|
|
797
|
-
message += '\n' + obj_topicName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
798
|
-
message += '\n' + obj_topicName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
799
|
-
return new TypeError(message);
|
|
800
|
-
}
|
|
801
|
-
const obj_type = obj.type;
|
|
802
|
-
const path_type = path + '.type';
|
|
803
|
-
let obj_type_union0 = null;
|
|
804
|
-
const obj_type_union0_error = (() => {
|
|
805
|
-
if (typeof obj_type !== 'string') {
|
|
806
|
-
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
807
|
-
}
|
|
808
|
-
})();
|
|
809
|
-
if (obj_type_union0_error != null) {
|
|
810
|
-
obj_type_union0 = obj_type_union0_error.message;
|
|
811
|
-
}
|
|
812
|
-
let obj_type_union1 = null;
|
|
813
|
-
const obj_type_union1_error = (() => {
|
|
814
|
-
if (obj_type !== null) {
|
|
815
|
-
return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
816
|
-
}
|
|
817
|
-
})();
|
|
818
|
-
if (obj_type_union1_error != null) {
|
|
819
|
-
obj_type_union1 = obj_type_union1_error.message;
|
|
820
|
-
}
|
|
821
|
-
if (obj_type_union0 && obj_type_union1) {
|
|
822
|
-
let message = 'Object doesn\'t match union (at "' + path_type + '")';
|
|
823
|
-
message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
824
|
-
message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
825
|
-
return new TypeError(message);
|
|
826
|
-
}
|
|
827
|
-
})();
|
|
828
|
-
return v_error === undefined ? null : v_error;
|
|
829
|
-
}
|
|
830
|
-
const RepresentationType$3 = 'ServicePlanOutputRepresentation';
|
|
831
|
-
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
832
|
-
return input;
|
|
833
|
-
}
|
|
834
|
-
const select$6 = function ServicePlanOutputRepresentationSelect() {
|
|
835
|
-
return {
|
|
836
|
-
kind: 'Fragment',
|
|
837
|
-
version: VERSION$3,
|
|
838
|
-
private: [],
|
|
839
|
-
opaque: true
|
|
840
|
-
};
|
|
841
|
-
};
|
|
842
|
-
function equals$3(existing, incoming) {
|
|
843
|
-
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
844
|
-
return false;
|
|
845
|
-
}
|
|
846
|
-
return true;
|
|
847
|
-
}
|
|
848
|
-
const ingest$3 = function ServicePlanOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
849
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
850
|
-
const validateError = validate$4(input);
|
|
851
|
-
if (validateError !== null) {
|
|
852
|
-
throw validateError;
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
const key = path.fullPath;
|
|
856
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
857
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "ServicePlan", VERSION$3, RepresentationType$3, equals$3);
|
|
858
|
-
return createLink(key);
|
|
859
|
-
};
|
|
860
|
-
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
861
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
862
|
-
const rootKey = fullPathFactory();
|
|
863
|
-
rootKeySet.set(rootKey, {
|
|
864
|
-
namespace: keyPrefix,
|
|
865
|
-
representationName: RepresentationType$3,
|
|
866
|
-
mergeable: false
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
|
|
870
385
|
const TTL$1 = 1000;
|
|
871
|
-
const VERSION$2 = "
|
|
386
|
+
const VERSION$2 = "e7b90a0cede064026bfdd02757e2d945";
|
|
872
387
|
function validate$3(obj, path = 'ServicePlanGenerationOutputRepresentation') {
|
|
873
388
|
const v_error = (() => {
|
|
874
389
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
875
390
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
876
391
|
}
|
|
877
|
-
const obj_copilotId = obj.copilotId;
|
|
878
|
-
const path_copilotId = path + '.copilotId';
|
|
879
|
-
let obj_copilotId_union0 = null;
|
|
880
|
-
const obj_copilotId_union0_error = (() => {
|
|
881
|
-
if (typeof obj_copilotId !== 'string') {
|
|
882
|
-
return new TypeError('Expected "string" but received "' + typeof obj_copilotId + '" (at "' + path_copilotId + '")');
|
|
883
|
-
}
|
|
884
|
-
})();
|
|
885
|
-
if (obj_copilotId_union0_error != null) {
|
|
886
|
-
obj_copilotId_union0 = obj_copilotId_union0_error.message;
|
|
887
|
-
}
|
|
888
|
-
let obj_copilotId_union1 = null;
|
|
889
|
-
const obj_copilotId_union1_error = (() => {
|
|
890
|
-
if (obj_copilotId !== null) {
|
|
891
|
-
return new TypeError('Expected "null" but received "' + typeof obj_copilotId + '" (at "' + path_copilotId + '")');
|
|
892
|
-
}
|
|
893
|
-
})();
|
|
894
|
-
if (obj_copilotId_union1_error != null) {
|
|
895
|
-
obj_copilotId_union1 = obj_copilotId_union1_error.message;
|
|
896
|
-
}
|
|
897
|
-
if (obj_copilotId_union0 && obj_copilotId_union1) {
|
|
898
|
-
let message = 'Object doesn\'t match union (at "' + path_copilotId + '")';
|
|
899
|
-
message += '\n' + obj_copilotId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
900
|
-
message += '\n' + obj_copilotId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
901
|
-
return new TypeError(message);
|
|
902
|
-
}
|
|
903
|
-
const obj_copilotName = obj.copilotName;
|
|
904
|
-
const path_copilotName = path + '.copilotName';
|
|
905
|
-
let obj_copilotName_union0 = null;
|
|
906
|
-
const obj_copilotName_union0_error = (() => {
|
|
907
|
-
if (typeof obj_copilotName !== 'string') {
|
|
908
|
-
return new TypeError('Expected "string" but received "' + typeof obj_copilotName + '" (at "' + path_copilotName + '")');
|
|
909
|
-
}
|
|
910
|
-
})();
|
|
911
|
-
if (obj_copilotName_union0_error != null) {
|
|
912
|
-
obj_copilotName_union0 = obj_copilotName_union0_error.message;
|
|
913
|
-
}
|
|
914
|
-
let obj_copilotName_union1 = null;
|
|
915
|
-
const obj_copilotName_union1_error = (() => {
|
|
916
|
-
if (obj_copilotName !== null) {
|
|
917
|
-
return new TypeError('Expected "null" but received "' + typeof obj_copilotName + '" (at "' + path_copilotName + '")');
|
|
918
|
-
}
|
|
919
|
-
})();
|
|
920
|
-
if (obj_copilotName_union1_error != null) {
|
|
921
|
-
obj_copilotName_union1 = obj_copilotName_union1_error.message;
|
|
922
|
-
}
|
|
923
|
-
if (obj_copilotName_union0 && obj_copilotName_union1) {
|
|
924
|
-
let message = 'Object doesn\'t match union (at "' + path_copilotName + '")';
|
|
925
|
-
message += '\n' + obj_copilotName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
926
|
-
message += '\n' + obj_copilotName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
927
|
-
return new TypeError(message);
|
|
928
|
-
}
|
|
929
392
|
const obj_errorCode = obj.errorCode;
|
|
930
393
|
const path_errorCode = path + '.errorCode';
|
|
931
394
|
let obj_errorCode_union0 = null;
|
|
@@ -1004,32 +467,6 @@ function validate$3(obj, path = 'ServicePlanGenerationOutputRepresentation') {
|
|
|
1004
467
|
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1005
468
|
return new TypeError(message);
|
|
1006
469
|
}
|
|
1007
|
-
const obj_plan = obj.plan;
|
|
1008
|
-
const path_plan = path + '.plan';
|
|
1009
|
-
let obj_plan_union0 = null;
|
|
1010
|
-
const obj_plan_union0_error = (() => {
|
|
1011
|
-
if (typeof obj_plan !== 'object') {
|
|
1012
|
-
return new TypeError('Expected "object" but received "' + typeof obj_plan + '" (at "' + path_plan + '")');
|
|
1013
|
-
}
|
|
1014
|
-
})();
|
|
1015
|
-
if (obj_plan_union0_error != null) {
|
|
1016
|
-
obj_plan_union0 = obj_plan_union0_error.message;
|
|
1017
|
-
}
|
|
1018
|
-
let obj_plan_union1 = null;
|
|
1019
|
-
const obj_plan_union1_error = (() => {
|
|
1020
|
-
if (obj_plan !== null) {
|
|
1021
|
-
return new TypeError('Expected "null" but received "' + typeof obj_plan + '" (at "' + path_plan + '")');
|
|
1022
|
-
}
|
|
1023
|
-
})();
|
|
1024
|
-
if (obj_plan_union1_error != null) {
|
|
1025
|
-
obj_plan_union1 = obj_plan_union1_error.message;
|
|
1026
|
-
}
|
|
1027
|
-
if (obj_plan_union0 && obj_plan_union1) {
|
|
1028
|
-
let message = 'Object doesn\'t match union (at "' + path_plan + '")';
|
|
1029
|
-
message += '\n' + obj_plan_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1030
|
-
message += '\n' + obj_plan_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1031
|
-
return new TypeError(message);
|
|
1032
|
-
}
|
|
1033
470
|
const obj_reason = obj.reason;
|
|
1034
471
|
const path_reason = path + '.reason';
|
|
1035
472
|
if (typeof obj_reason !== 'string') {
|
|
@@ -1064,20 +501,6 @@ function keyBuilderFromType$1(luvio, object) {
|
|
|
1064
501
|
return keyBuilder$5(luvio, keyParams);
|
|
1065
502
|
}
|
|
1066
503
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
1067
|
-
const input_plan = input.plan;
|
|
1068
|
-
const input_plan_id = path.fullPath + '__plan';
|
|
1069
|
-
if (input_plan !== null && typeof input_plan === 'object') {
|
|
1070
|
-
input.plan = ingest$3(input_plan, {
|
|
1071
|
-
fullPath: input_plan_id,
|
|
1072
|
-
propertyName: 'plan',
|
|
1073
|
-
parent: {
|
|
1074
|
-
data: input,
|
|
1075
|
-
key: path.fullPath,
|
|
1076
|
-
existing: existing,
|
|
1077
|
-
},
|
|
1078
|
-
ttl: path.ttl
|
|
1079
|
-
}, luvio, store, timestamp);
|
|
1080
|
-
}
|
|
1081
504
|
return input;
|
|
1082
505
|
}
|
|
1083
506
|
const select$5 = function ServicePlanGenerationOutputRepresentationSelect() {
|
|
@@ -1086,14 +509,6 @@ const select$5 = function ServicePlanGenerationOutputRepresentationSelect() {
|
|
|
1086
509
|
version: VERSION$2,
|
|
1087
510
|
private: [],
|
|
1088
511
|
selections: [
|
|
1089
|
-
{
|
|
1090
|
-
name: 'copilotId',
|
|
1091
|
-
kind: 'Scalar'
|
|
1092
|
-
},
|
|
1093
|
-
{
|
|
1094
|
-
name: 'copilotName',
|
|
1095
|
-
kind: 'Scalar'
|
|
1096
|
-
},
|
|
1097
512
|
{
|
|
1098
513
|
name: 'errorCode',
|
|
1099
514
|
kind: 'Scalar'
|
|
@@ -1106,12 +521,6 @@ const select$5 = function ServicePlanGenerationOutputRepresentationSelect() {
|
|
|
1106
521
|
name: 'id',
|
|
1107
522
|
kind: 'Scalar'
|
|
1108
523
|
},
|
|
1109
|
-
{
|
|
1110
|
-
name: 'plan',
|
|
1111
|
-
kind: 'Link',
|
|
1112
|
-
nullable: true,
|
|
1113
|
-
fragment: select$6()
|
|
1114
|
-
},
|
|
1115
524
|
{
|
|
1116
525
|
name: 'reason',
|
|
1117
526
|
kind: 'Scalar'
|
|
@@ -1152,16 +561,6 @@ function equals$2(existing, incoming) {
|
|
|
1152
561
|
if (!(existing_type === incoming_type)) {
|
|
1153
562
|
return false;
|
|
1154
563
|
}
|
|
1155
|
-
const existing_copilotId = existing.copilotId;
|
|
1156
|
-
const incoming_copilotId = incoming.copilotId;
|
|
1157
|
-
if (!(existing_copilotId === incoming_copilotId)) {
|
|
1158
|
-
return false;
|
|
1159
|
-
}
|
|
1160
|
-
const existing_copilotName = existing.copilotName;
|
|
1161
|
-
const incoming_copilotName = incoming.copilotName;
|
|
1162
|
-
if (!(existing_copilotName === incoming_copilotName)) {
|
|
1163
|
-
return false;
|
|
1164
|
-
}
|
|
1165
564
|
const existing_errorCode = existing.errorCode;
|
|
1166
565
|
const incoming_errorCode = incoming.errorCode;
|
|
1167
566
|
if (!(existing_errorCode === incoming_errorCode)) {
|
|
@@ -1177,16 +576,6 @@ function equals$2(existing, incoming) {
|
|
|
1177
576
|
if (!(existing_id === incoming_id)) {
|
|
1178
577
|
return false;
|
|
1179
578
|
}
|
|
1180
|
-
const existing_plan = existing.plan;
|
|
1181
|
-
const incoming_plan = incoming.plan;
|
|
1182
|
-
if (!(existing_plan === incoming_plan
|
|
1183
|
-
|| (existing_plan != null &&
|
|
1184
|
-
incoming_plan != null &&
|
|
1185
|
-
existing_plan.__ref != null &&
|
|
1186
|
-
incoming_plan.__ref != null &&
|
|
1187
|
-
existing_plan.__ref === incoming_plan.__ref))) {
|
|
1188
|
-
return false;
|
|
1189
|
-
}
|
|
1190
579
|
return true;
|
|
1191
580
|
}
|
|
1192
581
|
const ingest$2 = function ServicePlanGenerationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -1209,9 +598,6 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1209
598
|
representationName: RepresentationType$2,
|
|
1210
599
|
mergeable: false
|
|
1211
600
|
});
|
|
1212
|
-
if (input.plan !== null && typeof input.plan === 'object') {
|
|
1213
|
-
getTypeCacheKeys$3(rootKeySet, luvio, input.plan, () => rootKey + "__" + "plan");
|
|
1214
|
-
}
|
|
1215
601
|
}
|
|
1216
602
|
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
1217
603
|
return function notifyServicePlanGenerationUpdateAvailable(configs) {
|
|
@@ -1269,6 +655,7 @@ const adapterName$2 = 'generateServicePlan';
|
|
|
1269
655
|
const generateServicePlan_ConfigPropertyMetadata = [
|
|
1270
656
|
generateParamConfigMetadata('processingMode', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1271
657
|
generateParamConfigMetadata('recordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
658
|
+
generateParamConfigMetadata('regenerate', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1272
659
|
generateParamConfigMetadata('additionalContext', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1273
660
|
generateParamConfigMetadata('generationMode', true, 2 /* Body */, 0 /* String */),
|
|
1274
661
|
generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
|
|
@@ -1515,6 +902,11 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
1515
902
|
message += '\n' + obj_groupName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1516
903
|
return new TypeError(message);
|
|
1517
904
|
}
|
|
905
|
+
const obj_isSuggested = obj.isSuggested;
|
|
906
|
+
const path_isSuggested = path + '.isSuggested';
|
|
907
|
+
if (typeof obj_isSuggested !== 'boolean') {
|
|
908
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuggested + '" (at "' + path_isSuggested + '")');
|
|
909
|
+
}
|
|
1518
910
|
const obj_order = obj.order;
|
|
1519
911
|
const path_order = path + '.order';
|
|
1520
912
|
if (typeof obj_order !== 'number' || (typeof obj_order === 'number' && Math.floor(obj_order) !== obj_order)) {
|
|
@@ -1539,7 +931,7 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
1539
931
|
return v_error === undefined ? null : v_error;
|
|
1540
932
|
}
|
|
1541
933
|
|
|
1542
|
-
const VERSION$1 = "
|
|
934
|
+
const VERSION$1 = "caa4875ebe47f9738944b0542d09f7ef";
|
|
1543
935
|
function validate$1(obj, path = 'ServicePlanDetailsRepresentation') {
|
|
1544
936
|
const v_error = (() => {
|
|
1545
937
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1649,6 +1041,11 @@ function validate$1(obj, path = 'ServicePlanDetailsRepresentation') {
|
|
|
1649
1041
|
message += '\n' + obj_feedbackId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1650
1042
|
return new TypeError(message);
|
|
1651
1043
|
}
|
|
1044
|
+
const obj_hasContextChanged = obj.hasContextChanged;
|
|
1045
|
+
const path_hasContextChanged = path + '.hasContextChanged';
|
|
1046
|
+
if (typeof obj_hasContextChanged !== 'boolean') {
|
|
1047
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasContextChanged + '" (at "' + path_hasContextChanged + '")');
|
|
1048
|
+
}
|
|
1652
1049
|
const obj_planHeader = obj.planHeader;
|
|
1653
1050
|
const path_planHeader = path + '.planHeader';
|
|
1654
1051
|
let obj_planHeader_union0 = null;
|