@salesforce/lds-adapters-service-serviceplan 1.307.0 → 1.308.0-dev2
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 +673 -286
- package/dist/es/es2018/types/src/generated/adapters/executeServicePlan.d.ts +4 -6
- package/dist/es/es2018/types/src/generated/adapters/generateSync.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/resources/{getConnectServicePlanExecuteByGeneratedPlanId.d.ts → getConnectServicePlanExecuteByPlanOrStepId.d.ts} +1 -1
- package/dist/es/es2018/types/src/generated/resources/{postConnectServicePlanGenerateSyncByRecordId.d.ts → postConnectServicePlanGenerationRequests.d.ts} +2 -2
- package/dist/es/es2018/types/src/generated/resources/{putConnectServicePlanExecuteByGeneratedPlanId.d.ts → putConnectServicePlanExecuteByPlanOrStepId.d.ts} +2 -4
- package/dist/es/es2018/types/src/generated/types/ServicePlanDataInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanDataOutputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanExecutionInputRepresentation.d.ts +4 -10
- package/dist/es/es2018/types/src/generated/types/ServicePlanExecutionOutputRepresentation.d.ts +11 -16
- package/dist/es/es2018/types/src/generated/types/ServicePlanExecutionSummaryRepresentation.d.ts +2 -11
- package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationInputParamRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationSessionInformationOutputRepresentation.d.ts +13 -19
- package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationSyncOutputRepresentation.d.ts +25 -7
- package/dist/es/es2018/types/src/generated/types/ServicePlanOutputRepresentation.d.ts +27 -20
- package/dist/es/es2018/types/src/generated/types/ServicePlanStepExecutionStatusRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanStepRepresentation.d.ts +14 -15
- package/package.json +3 -3
- package/sfdc/index.js +674 -287
- package/src/raml/api.raml +122 -90
- package/src/raml/luvio.raml +8 -4
- package/dist/es/es2018/types/src/generated/types/ServicePlanStepAttributeRepresentation.d.ts +0 -31
|
@@ -85,165 +85,67 @@ function createLink(ref) {
|
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
const VERSION$
|
|
89
|
-
function validate$5(obj, path = '
|
|
88
|
+
const VERSION$3 = "de8249c0171ece44729fbb33b422a074";
|
|
89
|
+
function validate$5(obj, path = 'ServicePlanStepExecutionStatusRepresentation') {
|
|
90
90
|
const v_error = (() => {
|
|
91
91
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
92
92
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
const
|
|
96
|
-
if (typeof
|
|
97
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
94
|
+
const obj_executionStatus = obj.executionStatus;
|
|
95
|
+
const path_executionStatus = path + '.executionStatus';
|
|
96
|
+
if (typeof obj_executionStatus !== 'string') {
|
|
97
|
+
return new TypeError('Expected "string" but received "' + typeof obj_executionStatus + '" (at "' + path_executionStatus + '")');
|
|
98
98
|
}
|
|
99
|
-
const
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
return input;
|
|
110
|
-
}
|
|
111
|
-
const select$6 = function ServicePlanStepExecutionSummaryRepresentationSelect() {
|
|
112
|
-
return {
|
|
113
|
-
kind: 'Fragment',
|
|
114
|
-
version: VERSION$4,
|
|
115
|
-
private: [],
|
|
116
|
-
opaque: true
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
function equals$4(existing, incoming) {
|
|
120
|
-
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
121
|
-
return false;
|
|
122
|
-
}
|
|
123
|
-
return true;
|
|
124
|
-
}
|
|
125
|
-
const ingest$4 = function ServicePlanStepExecutionSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
126
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
127
|
-
const validateError = validate$5(input);
|
|
128
|
-
if (validateError !== null) {
|
|
129
|
-
throw validateError;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
const key = path.fullPath;
|
|
133
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 500;
|
|
134
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "ServicePlan", VERSION$4, RepresentationType$4, equals$4);
|
|
135
|
-
return createLink(key);
|
|
136
|
-
};
|
|
137
|
-
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
138
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
139
|
-
const rootKey = fullPathFactory();
|
|
140
|
-
rootKeySet.set(rootKey, {
|
|
141
|
-
namespace: keyPrefix,
|
|
142
|
-
representationName: RepresentationType$4,
|
|
143
|
-
mergeable: false
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
const VERSION$3 = "a662e9bd461c05a065cae3077b4084a7";
|
|
148
|
-
function validate$4(obj, path = 'ServicePlanExecutionSummaryRepresentation') {
|
|
149
|
-
const v_error = (() => {
|
|
150
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
151
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
152
|
-
}
|
|
153
|
-
const obj_executedDate = obj.executedDate;
|
|
154
|
-
const path_executedDate = path + '.executedDate';
|
|
155
|
-
if (typeof obj_executedDate !== 'string') {
|
|
156
|
-
return new TypeError('Expected "string" but received "' + typeof obj_executedDate + '" (at "' + path_executedDate + '")');
|
|
157
|
-
}
|
|
158
|
-
const obj_status = obj.status;
|
|
159
|
-
const path_status = path + '.status';
|
|
160
|
-
if (typeof obj_status !== 'string') {
|
|
161
|
-
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
162
|
-
}
|
|
163
|
-
const obj_steps = obj.steps;
|
|
164
|
-
const path_steps = path + '.steps';
|
|
165
|
-
if (!ArrayIsArray(obj_steps)) {
|
|
166
|
-
return new TypeError('Expected "array" but received "' + typeof obj_steps + '" (at "' + path_steps + '")');
|
|
99
|
+
const obj_stepId = obj.stepId;
|
|
100
|
+
const path_stepId = path + '.stepId';
|
|
101
|
+
let obj_stepId_union0 = null;
|
|
102
|
+
const obj_stepId_union0_error = (() => {
|
|
103
|
+
if (typeof obj_stepId !== 'string') {
|
|
104
|
+
return new TypeError('Expected "string" but received "' + typeof obj_stepId + '" (at "' + path_stepId + '")');
|
|
105
|
+
}
|
|
106
|
+
})();
|
|
107
|
+
if (obj_stepId_union0_error != null) {
|
|
108
|
+
obj_stepId_union0 = obj_stepId_union0_error.message;
|
|
167
109
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
return new TypeError('Expected "object" but received "' + typeof obj_steps_item + '" (at "' + path_steps_item + '")');
|
|
110
|
+
let obj_stepId_union1 = null;
|
|
111
|
+
const obj_stepId_union1_error = (() => {
|
|
112
|
+
if (obj_stepId !== null) {
|
|
113
|
+
return new TypeError('Expected "null" but received "' + typeof obj_stepId + '" (at "' + path_stepId + '")');
|
|
173
114
|
}
|
|
115
|
+
})();
|
|
116
|
+
if (obj_stepId_union1_error != null) {
|
|
117
|
+
obj_stepId_union1 = obj_stepId_union1_error.message;
|
|
118
|
+
}
|
|
119
|
+
if (obj_stepId_union0 && obj_stepId_union1) {
|
|
120
|
+
let message = 'Object doesn\'t match union (at "' + path_stepId + '")';
|
|
121
|
+
message += '\n' + obj_stepId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
122
|
+
message += '\n' + obj_stepId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
123
|
+
return new TypeError(message);
|
|
174
124
|
}
|
|
175
125
|
})();
|
|
176
126
|
return v_error === undefined ? null : v_error;
|
|
177
127
|
}
|
|
178
|
-
const RepresentationType$3 = '
|
|
128
|
+
const RepresentationType$3 = 'ServicePlanStepExecutionStatusRepresentation';
|
|
179
129
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
180
|
-
const input_steps = input.steps;
|
|
181
|
-
const input_steps_id = path.fullPath + '__steps';
|
|
182
|
-
for (let i = 0; i < input_steps.length; i++) {
|
|
183
|
-
const input_steps_item = input_steps[i];
|
|
184
|
-
let input_steps_item_id = input_steps_id + '__' + i;
|
|
185
|
-
input_steps[i] = ingest$4(input_steps_item, {
|
|
186
|
-
fullPath: input_steps_item_id,
|
|
187
|
-
propertyName: i,
|
|
188
|
-
parent: {
|
|
189
|
-
data: input,
|
|
190
|
-
key: path.fullPath,
|
|
191
|
-
existing: existing,
|
|
192
|
-
},
|
|
193
|
-
ttl: path.ttl
|
|
194
|
-
}, luvio, store, timestamp);
|
|
195
|
-
}
|
|
196
130
|
return input;
|
|
197
131
|
}
|
|
198
|
-
const select$5 = function
|
|
132
|
+
const select$5 = function ServicePlanStepExecutionStatusRepresentationSelect() {
|
|
199
133
|
return {
|
|
200
134
|
kind: 'Fragment',
|
|
201
135
|
version: VERSION$3,
|
|
202
136
|
private: [],
|
|
203
|
-
|
|
204
|
-
{
|
|
205
|
-
name: 'executedDate',
|
|
206
|
-
kind: 'Scalar'
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
name: 'status',
|
|
210
|
-
kind: 'Scalar'
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
name: 'steps',
|
|
214
|
-
kind: 'Link',
|
|
215
|
-
plural: true,
|
|
216
|
-
fragment: select$6()
|
|
217
|
-
}
|
|
218
|
-
]
|
|
137
|
+
opaque: true
|
|
219
138
|
};
|
|
220
139
|
};
|
|
221
140
|
function equals$3(existing, incoming) {
|
|
222
|
-
|
|
223
|
-
const incoming_executedDate = incoming.executedDate;
|
|
224
|
-
if (!(existing_executedDate === incoming_executedDate)) {
|
|
225
|
-
return false;
|
|
226
|
-
}
|
|
227
|
-
const existing_status = existing.status;
|
|
228
|
-
const incoming_status = incoming.status;
|
|
229
|
-
if (!(existing_status === incoming_status)) {
|
|
230
|
-
return false;
|
|
231
|
-
}
|
|
232
|
-
const existing_steps = existing.steps;
|
|
233
|
-
const incoming_steps = incoming.steps;
|
|
234
|
-
const equals_steps_items = equalsArray(existing_steps, incoming_steps, (existing_steps_item, incoming_steps_item) => {
|
|
235
|
-
if (!(existing_steps_item.__ref === incoming_steps_item.__ref)) {
|
|
236
|
-
return false;
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
if (equals_steps_items === false) {
|
|
141
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
240
142
|
return false;
|
|
241
143
|
}
|
|
242
144
|
return true;
|
|
243
145
|
}
|
|
244
|
-
const ingest$3 = function
|
|
146
|
+
const ingest$3 = function ServicePlanStepExecutionStatusRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
245
147
|
if (process.env.NODE_ENV !== 'production') {
|
|
246
|
-
const validateError = validate$
|
|
148
|
+
const validateError = validate$5(input);
|
|
247
149
|
if (validateError !== null) {
|
|
248
150
|
throw validateError;
|
|
249
151
|
}
|
|
@@ -261,37 +163,30 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
261
163
|
representationName: RepresentationType$3,
|
|
262
164
|
mergeable: false
|
|
263
165
|
});
|
|
264
|
-
const input_steps_length = input.steps.length;
|
|
265
|
-
for (let i = 0; i < input_steps_length; i++) {
|
|
266
|
-
getTypeCacheKeys$4(rootKeySet, luvio, input.steps[i], () => '');
|
|
267
|
-
}
|
|
268
166
|
}
|
|
269
167
|
|
|
270
|
-
const VERSION$2 = "
|
|
271
|
-
function validate$
|
|
168
|
+
const VERSION$2 = "f3a6de28bf56634adca757ba07accf43";
|
|
169
|
+
function validate$4(obj, path = 'ServicePlanExecutionOutputRepresentation') {
|
|
272
170
|
const v_error = (() => {
|
|
273
171
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
274
172
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
275
173
|
}
|
|
276
|
-
const
|
|
277
|
-
const
|
|
278
|
-
if (typeof
|
|
279
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
280
|
-
}
|
|
281
|
-
const obj_reasonDetails = obj.reasonDetails;
|
|
282
|
-
const path_reasonDetails = path + '.reasonDetails';
|
|
283
|
-
if (typeof obj_reasonDetails !== 'string') {
|
|
284
|
-
return new TypeError('Expected "string" but received "' + typeof obj_reasonDetails + '" (at "' + path_reasonDetails + '")');
|
|
174
|
+
const obj_executionStatus = obj.executionStatus;
|
|
175
|
+
const path_executionStatus = path + '.executionStatus';
|
|
176
|
+
if (typeof obj_executionStatus !== 'string') {
|
|
177
|
+
return new TypeError('Expected "string" but received "' + typeof obj_executionStatus + '" (at "' + path_executionStatus + '")');
|
|
285
178
|
}
|
|
286
|
-
const
|
|
287
|
-
const
|
|
288
|
-
if (
|
|
289
|
-
return new TypeError('Expected "
|
|
179
|
+
const obj_planSteps = obj.planSteps;
|
|
180
|
+
const path_planSteps = path + '.planSteps';
|
|
181
|
+
if (!ArrayIsArray(obj_planSteps)) {
|
|
182
|
+
return new TypeError('Expected "array" but received "' + typeof obj_planSteps + '" (at "' + path_planSteps + '")');
|
|
290
183
|
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
184
|
+
for (let i = 0; i < obj_planSteps.length; i++) {
|
|
185
|
+
const obj_planSteps_item = obj_planSteps[i];
|
|
186
|
+
const path_planSteps_item = path_planSteps + '[' + i + ']';
|
|
187
|
+
if (typeof obj_planSteps_item !== 'object') {
|
|
188
|
+
return new TypeError('Expected "object" but received "' + typeof obj_planSteps_item + '" (at "' + path_planSteps_item + '")');
|
|
189
|
+
}
|
|
295
190
|
}
|
|
296
191
|
})();
|
|
297
192
|
return v_error === undefined ? null : v_error;
|
|
@@ -302,23 +197,27 @@ function keyBuilder$1(luvio, config) {
|
|
|
302
197
|
}
|
|
303
198
|
function keyBuilderFromType$1(luvio, object) {
|
|
304
199
|
const keyParams = {
|
|
305
|
-
id: object.
|
|
200
|
+
id: object.executionStatus
|
|
306
201
|
};
|
|
307
202
|
return keyBuilder$1(luvio, keyParams);
|
|
308
203
|
}
|
|
309
204
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
310
|
-
const
|
|
311
|
-
const
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
205
|
+
const input_planSteps = input.planSteps;
|
|
206
|
+
const input_planSteps_id = path.fullPath + '__planSteps';
|
|
207
|
+
for (let i = 0; i < input_planSteps.length; i++) {
|
|
208
|
+
const input_planSteps_item = input_planSteps[i];
|
|
209
|
+
let input_planSteps_item_id = input_planSteps_id + '__' + i;
|
|
210
|
+
input_planSteps[i] = ingest$3(input_planSteps_item, {
|
|
211
|
+
fullPath: input_planSteps_item_id,
|
|
212
|
+
propertyName: i,
|
|
213
|
+
parent: {
|
|
214
|
+
data: input,
|
|
215
|
+
key: path.fullPath,
|
|
216
|
+
existing: existing,
|
|
217
|
+
},
|
|
218
|
+
ttl: path.ttl
|
|
219
|
+
}, luvio, store, timestamp);
|
|
220
|
+
}
|
|
322
221
|
return input;
|
|
323
222
|
}
|
|
324
223
|
const select$4 = function ServicePlanExecutionOutputRepresentationSelect() {
|
|
@@ -328,51 +227,39 @@ const select$4 = function ServicePlanExecutionOutputRepresentationSelect() {
|
|
|
328
227
|
private: [],
|
|
329
228
|
selections: [
|
|
330
229
|
{
|
|
331
|
-
name: '
|
|
230
|
+
name: 'executionStatus',
|
|
332
231
|
kind: 'Scalar'
|
|
333
232
|
},
|
|
334
233
|
{
|
|
335
|
-
name: '
|
|
336
|
-
kind: 'Scalar'
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
name: 'servicePlan',
|
|
234
|
+
name: 'planSteps',
|
|
340
235
|
kind: 'Link',
|
|
236
|
+
plural: true,
|
|
341
237
|
fragment: select$5()
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
name: 'status',
|
|
345
|
-
kind: 'Scalar'
|
|
346
238
|
}
|
|
347
239
|
]
|
|
348
240
|
};
|
|
349
241
|
};
|
|
350
242
|
function equals$2(existing, incoming) {
|
|
351
|
-
const
|
|
352
|
-
const
|
|
353
|
-
if (!(
|
|
354
|
-
return false;
|
|
355
|
-
}
|
|
356
|
-
const existing_reasonDetails = existing.reasonDetails;
|
|
357
|
-
const incoming_reasonDetails = incoming.reasonDetails;
|
|
358
|
-
if (!(existing_reasonDetails === incoming_reasonDetails)) {
|
|
243
|
+
const existing_executionStatus = existing.executionStatus;
|
|
244
|
+
const incoming_executionStatus = incoming.executionStatus;
|
|
245
|
+
if (!(existing_executionStatus === incoming_executionStatus)) {
|
|
359
246
|
return false;
|
|
360
247
|
}
|
|
361
|
-
const
|
|
362
|
-
const
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
if (
|
|
248
|
+
const existing_planSteps = existing.planSteps;
|
|
249
|
+
const incoming_planSteps = incoming.planSteps;
|
|
250
|
+
const equals_planSteps_items = equalsArray(existing_planSteps, incoming_planSteps, (existing_planSteps_item, incoming_planSteps_item) => {
|
|
251
|
+
if (!(existing_planSteps_item.__ref === incoming_planSteps_item.__ref)) {
|
|
252
|
+
return false;
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
if (equals_planSteps_items === false) {
|
|
369
256
|
return false;
|
|
370
257
|
}
|
|
371
258
|
return true;
|
|
372
259
|
}
|
|
373
260
|
const ingest$2 = function ServicePlanExecutionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
374
261
|
if (process.env.NODE_ENV !== 'production') {
|
|
375
|
-
const validateError = validate$
|
|
262
|
+
const validateError = validate$4(input);
|
|
376
263
|
if (validateError !== null) {
|
|
377
264
|
throw validateError;
|
|
378
265
|
}
|
|
@@ -390,7 +277,10 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
390
277
|
representationName: RepresentationType$2,
|
|
391
278
|
mergeable: false
|
|
392
279
|
});
|
|
393
|
-
|
|
280
|
+
const input_planSteps_length = input.planSteps.length;
|
|
281
|
+
for (let i = 0; i < input_planSteps_length; i++) {
|
|
282
|
+
getTypeCacheKeys$3(rootKeySet, luvio, input.planSteps[i], () => '');
|
|
283
|
+
}
|
|
394
284
|
}
|
|
395
285
|
|
|
396
286
|
function select$3(luvio, params) {
|
|
@@ -420,7 +310,7 @@ function createResourceRequest$1(config) {
|
|
|
420
310
|
const headers = {};
|
|
421
311
|
return {
|
|
422
312
|
baseUri: '/services/data/v62.0',
|
|
423
|
-
basePath: '/connect/service-plan/execute/' + config.urlParams.
|
|
313
|
+
basePath: '/connect/service-plan/execute/' + config.urlParams.planOrStepId + '',
|
|
424
314
|
method: 'put',
|
|
425
315
|
body: config.body,
|
|
426
316
|
urlParams: config.urlParams,
|
|
@@ -432,10 +322,8 @@ function createResourceRequest$1(config) {
|
|
|
432
322
|
|
|
433
323
|
const adapterName$1 = 'executeServicePlan';
|
|
434
324
|
const executeServicePlan_ConfigPropertyMetadata = [
|
|
435
|
-
generateParamConfigMetadata('
|
|
436
|
-
generateParamConfigMetadata('
|
|
437
|
-
generateParamConfigMetadata('planId', true, 2 /* Body */, 0 /* String */),
|
|
438
|
-
generateParamConfigMetadata('sessionId', true, 2 /* Body */, 0 /* String */),
|
|
325
|
+
generateParamConfigMetadata('planOrStepId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
326
|
+
generateParamConfigMetadata('action', true, 2 /* Body */, 0 /* String */),
|
|
439
327
|
];
|
|
440
328
|
const executeServicePlan_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, executeServicePlan_ConfigPropertyMetadata);
|
|
441
329
|
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(executeServicePlan_ConfigPropertyMetadata);
|
|
@@ -486,77 +374,290 @@ const executeServicePlanAdapterFactory = (luvio) => {
|
|
|
486
374
|
};
|
|
487
375
|
};
|
|
488
376
|
|
|
489
|
-
function validate$
|
|
377
|
+
function validate$3(obj, path = 'ServicePlanGenerationSessionInformationOutputRepresentation') {
|
|
490
378
|
const v_error = (() => {
|
|
491
379
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
492
380
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
493
381
|
}
|
|
494
|
-
const
|
|
495
|
-
const
|
|
496
|
-
|
|
497
|
-
|
|
382
|
+
const obj_clientFeatureKey = obj.clientFeatureKey;
|
|
383
|
+
const path_clientFeatureKey = path + '.clientFeatureKey';
|
|
384
|
+
let obj_clientFeatureKey_union0 = null;
|
|
385
|
+
const obj_clientFeatureKey_union0_error = (() => {
|
|
386
|
+
if (typeof obj_clientFeatureKey !== 'string') {
|
|
387
|
+
return new TypeError('Expected "string" but received "' + typeof obj_clientFeatureKey + '" (at "' + path_clientFeatureKey + '")');
|
|
388
|
+
}
|
|
389
|
+
})();
|
|
390
|
+
if (obj_clientFeatureKey_union0_error != null) {
|
|
391
|
+
obj_clientFeatureKey_union0 = obj_clientFeatureKey_union0_error.message;
|
|
392
|
+
}
|
|
393
|
+
let obj_clientFeatureKey_union1 = null;
|
|
394
|
+
const obj_clientFeatureKey_union1_error = (() => {
|
|
395
|
+
if (obj_clientFeatureKey !== null) {
|
|
396
|
+
return new TypeError('Expected "null" but received "' + typeof obj_clientFeatureKey + '" (at "' + path_clientFeatureKey + '")');
|
|
397
|
+
}
|
|
398
|
+
})();
|
|
399
|
+
if (obj_clientFeatureKey_union1_error != null) {
|
|
400
|
+
obj_clientFeatureKey_union1 = obj_clientFeatureKey_union1_error.message;
|
|
401
|
+
}
|
|
402
|
+
if (obj_clientFeatureKey_union0 && obj_clientFeatureKey_union1) {
|
|
403
|
+
let message = 'Object doesn\'t match union (at "' + path_clientFeatureKey + '")';
|
|
404
|
+
message += '\n' + obj_clientFeatureKey_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
405
|
+
message += '\n' + obj_clientFeatureKey_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
406
|
+
return new TypeError(message);
|
|
407
|
+
}
|
|
408
|
+
const obj_feedbackKey = obj.feedbackKey;
|
|
409
|
+
const path_feedbackKey = path + '.feedbackKey';
|
|
410
|
+
let obj_feedbackKey_union0 = null;
|
|
411
|
+
const obj_feedbackKey_union0_error = (() => {
|
|
412
|
+
if (typeof obj_feedbackKey !== 'string') {
|
|
413
|
+
return new TypeError('Expected "string" but received "' + typeof obj_feedbackKey + '" (at "' + path_feedbackKey + '")');
|
|
414
|
+
}
|
|
415
|
+
})();
|
|
416
|
+
if (obj_feedbackKey_union0_error != null) {
|
|
417
|
+
obj_feedbackKey_union0 = obj_feedbackKey_union0_error.message;
|
|
418
|
+
}
|
|
419
|
+
let obj_feedbackKey_union1 = null;
|
|
420
|
+
const obj_feedbackKey_union1_error = (() => {
|
|
421
|
+
if (obj_feedbackKey !== null) {
|
|
422
|
+
return new TypeError('Expected "null" but received "' + typeof obj_feedbackKey + '" (at "' + path_feedbackKey + '")');
|
|
423
|
+
}
|
|
424
|
+
})();
|
|
425
|
+
if (obj_feedbackKey_union1_error != null) {
|
|
426
|
+
obj_feedbackKey_union1 = obj_feedbackKey_union1_error.message;
|
|
427
|
+
}
|
|
428
|
+
if (obj_feedbackKey_union0 && obj_feedbackKey_union1) {
|
|
429
|
+
let message = 'Object doesn\'t match union (at "' + path_feedbackKey + '")';
|
|
430
|
+
message += '\n' + obj_feedbackKey_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
431
|
+
message += '\n' + obj_feedbackKey_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
432
|
+
return new TypeError(message);
|
|
433
|
+
}
|
|
434
|
+
const obj_planKey = obj.planKey;
|
|
435
|
+
const path_planKey = path + '.planKey';
|
|
436
|
+
let obj_planKey_union0 = null;
|
|
437
|
+
const obj_planKey_union0_error = (() => {
|
|
438
|
+
if (typeof obj_planKey !== 'string') {
|
|
439
|
+
return new TypeError('Expected "string" but received "' + typeof obj_planKey + '" (at "' + path_planKey + '")');
|
|
440
|
+
}
|
|
441
|
+
})();
|
|
442
|
+
if (obj_planKey_union0_error != null) {
|
|
443
|
+
obj_planKey_union0 = obj_planKey_union0_error.message;
|
|
498
444
|
}
|
|
499
|
-
|
|
500
|
-
const
|
|
501
|
-
|
|
502
|
-
|
|
445
|
+
let obj_planKey_union1 = null;
|
|
446
|
+
const obj_planKey_union1_error = (() => {
|
|
447
|
+
if (obj_planKey !== null) {
|
|
448
|
+
return new TypeError('Expected "null" but received "' + typeof obj_planKey + '" (at "' + path_planKey + '")');
|
|
449
|
+
}
|
|
450
|
+
})();
|
|
451
|
+
if (obj_planKey_union1_error != null) {
|
|
452
|
+
obj_planKey_union1 = obj_planKey_union1_error.message;
|
|
503
453
|
}
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
454
|
+
if (obj_planKey_union0 && obj_planKey_union1) {
|
|
455
|
+
let message = 'Object doesn\'t match union (at "' + path_planKey + '")';
|
|
456
|
+
message += '\n' + obj_planKey_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
457
|
+
message += '\n' + obj_planKey_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
458
|
+
return new TypeError(message);
|
|
508
459
|
}
|
|
509
|
-
const
|
|
510
|
-
const
|
|
511
|
-
|
|
512
|
-
|
|
460
|
+
const obj_sessionKey = obj.sessionKey;
|
|
461
|
+
const path_sessionKey = path + '.sessionKey';
|
|
462
|
+
let obj_sessionKey_union0 = null;
|
|
463
|
+
const obj_sessionKey_union0_error = (() => {
|
|
464
|
+
if (typeof obj_sessionKey !== 'string') {
|
|
465
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sessionKey + '" (at "' + path_sessionKey + '")');
|
|
466
|
+
}
|
|
467
|
+
})();
|
|
468
|
+
if (obj_sessionKey_union0_error != null) {
|
|
469
|
+
obj_sessionKey_union0 = obj_sessionKey_union0_error.message;
|
|
513
470
|
}
|
|
514
|
-
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
|
|
471
|
+
let obj_sessionKey_union1 = null;
|
|
472
|
+
const obj_sessionKey_union1_error = (() => {
|
|
473
|
+
if (obj_sessionKey !== null) {
|
|
474
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sessionKey + '" (at "' + path_sessionKey + '")');
|
|
475
|
+
}
|
|
476
|
+
})();
|
|
477
|
+
if (obj_sessionKey_union1_error != null) {
|
|
478
|
+
obj_sessionKey_union1 = obj_sessionKey_union1_error.message;
|
|
518
479
|
}
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
480
|
+
if (obj_sessionKey_union0 && obj_sessionKey_union1) {
|
|
481
|
+
let message = 'Object doesn\'t match union (at "' + path_sessionKey + '")';
|
|
482
|
+
message += '\n' + obj_sessionKey_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
483
|
+
message += '\n' + obj_sessionKey_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
484
|
+
return new TypeError(message);
|
|
523
485
|
}
|
|
524
486
|
})();
|
|
525
487
|
return v_error === undefined ? null : v_error;
|
|
526
488
|
}
|
|
527
489
|
|
|
528
|
-
|
|
490
|
+
function validate$2(obj, path = 'ServicePlanStepRepresentation') {
|
|
491
|
+
const v_error = (() => {
|
|
492
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
493
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
494
|
+
}
|
|
495
|
+
const obj_actionOrder = obj.actionOrder;
|
|
496
|
+
const path_actionOrder = path + '.actionOrder';
|
|
497
|
+
if (typeof obj_actionOrder !== 'number' || (typeof obj_actionOrder === 'number' && Math.floor(obj_actionOrder) !== obj_actionOrder)) {
|
|
498
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_actionOrder + '" (at "' + path_actionOrder + '")');
|
|
499
|
+
}
|
|
500
|
+
const obj_functionName = obj.functionName;
|
|
501
|
+
const path_functionName = path + '.functionName';
|
|
502
|
+
if (typeof obj_functionName !== 'string') {
|
|
503
|
+
return new TypeError('Expected "string" but received "' + typeof obj_functionName + '" (at "' + path_functionName + '")');
|
|
504
|
+
}
|
|
505
|
+
const obj_id = obj.id;
|
|
506
|
+
const path_id = path + '.id';
|
|
507
|
+
if (typeof obj_id !== 'string') {
|
|
508
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
509
|
+
}
|
|
510
|
+
const obj_relatedActionId = obj.relatedActionId;
|
|
511
|
+
const path_relatedActionId = path + '.relatedActionId';
|
|
512
|
+
if (typeof obj_relatedActionId !== 'string') {
|
|
513
|
+
return new TypeError('Expected "string" but received "' + typeof obj_relatedActionId + '" (at "' + path_relatedActionId + '")');
|
|
514
|
+
}
|
|
515
|
+
const obj_summary = obj.summary;
|
|
516
|
+
const path_summary = path + '.summary';
|
|
517
|
+
if (typeof obj_summary !== 'string') {
|
|
518
|
+
return new TypeError('Expected "string" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
|
|
519
|
+
}
|
|
520
|
+
})();
|
|
521
|
+
return v_error === undefined ? null : v_error;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
const VERSION$1 = "4c0fefe9caa169c4221be369e384ee56";
|
|
529
525
|
function validate$1(obj, path = 'ServicePlanOutputRepresentation') {
|
|
530
526
|
const v_error = (() => {
|
|
531
527
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
532
528
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
533
529
|
}
|
|
534
|
-
const
|
|
535
|
-
const
|
|
536
|
-
|
|
537
|
-
|
|
530
|
+
const obj_copilotSessionInfo = obj.copilotSessionInfo;
|
|
531
|
+
const path_copilotSessionInfo = path + '.copilotSessionInfo';
|
|
532
|
+
let obj_copilotSessionInfo_union0 = null;
|
|
533
|
+
const obj_copilotSessionInfo_union0_error = (() => {
|
|
534
|
+
const referencepath_copilotSessionInfoValidationError = validate$3(obj_copilotSessionInfo, path_copilotSessionInfo);
|
|
535
|
+
if (referencepath_copilotSessionInfoValidationError !== null) {
|
|
536
|
+
let message = 'Object doesn\'t match ServicePlanGenerationSessionInformationOutputRepresentation (at "' + path_copilotSessionInfo + '")\n';
|
|
537
|
+
message += referencepath_copilotSessionInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
538
|
+
return new TypeError(message);
|
|
539
|
+
}
|
|
540
|
+
})();
|
|
541
|
+
if (obj_copilotSessionInfo_union0_error != null) {
|
|
542
|
+
obj_copilotSessionInfo_union0 = obj_copilotSessionInfo_union0_error.message;
|
|
543
|
+
}
|
|
544
|
+
let obj_copilotSessionInfo_union1 = null;
|
|
545
|
+
const obj_copilotSessionInfo_union1_error = (() => {
|
|
546
|
+
if (obj_copilotSessionInfo !== null) {
|
|
547
|
+
return new TypeError('Expected "null" but received "' + typeof obj_copilotSessionInfo + '" (at "' + path_copilotSessionInfo + '")');
|
|
548
|
+
}
|
|
549
|
+
})();
|
|
550
|
+
if (obj_copilotSessionInfo_union1_error != null) {
|
|
551
|
+
obj_copilotSessionInfo_union1 = obj_copilotSessionInfo_union1_error.message;
|
|
552
|
+
}
|
|
553
|
+
if (obj_copilotSessionInfo_union0 && obj_copilotSessionInfo_union1) {
|
|
554
|
+
let message = 'Object doesn\'t match union (at "' + path_copilotSessionInfo + '")';
|
|
555
|
+
message += '\n' + obj_copilotSessionInfo_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
556
|
+
message += '\n' + obj_copilotSessionInfo_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
557
|
+
return new TypeError(message);
|
|
538
558
|
}
|
|
539
559
|
const obj_createdDate = obj.createdDate;
|
|
540
560
|
const path_createdDate = path + '.createdDate';
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
561
|
+
let obj_createdDate_union0 = null;
|
|
562
|
+
const obj_createdDate_union0_error = (() => {
|
|
563
|
+
if (typeof obj_createdDate !== 'string') {
|
|
564
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
565
|
+
}
|
|
566
|
+
})();
|
|
567
|
+
if (obj_createdDate_union0_error != null) {
|
|
568
|
+
obj_createdDate_union0 = obj_createdDate_union0_error.message;
|
|
569
|
+
}
|
|
570
|
+
let obj_createdDate_union1 = null;
|
|
571
|
+
const obj_createdDate_union1_error = (() => {
|
|
572
|
+
if (obj_createdDate !== null) {
|
|
573
|
+
return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
574
|
+
}
|
|
575
|
+
})();
|
|
576
|
+
if (obj_createdDate_union1_error != null) {
|
|
577
|
+
obj_createdDate_union1 = obj_createdDate_union1_error.message;
|
|
578
|
+
}
|
|
579
|
+
if (obj_createdDate_union0 && obj_createdDate_union1) {
|
|
580
|
+
let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
|
|
581
|
+
message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
582
|
+
message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
583
|
+
return new TypeError(message);
|
|
584
|
+
}
|
|
585
|
+
const obj_id = obj.id;
|
|
586
|
+
const path_id = path + '.id';
|
|
587
|
+
let obj_id_union0 = null;
|
|
588
|
+
const obj_id_union0_error = (() => {
|
|
589
|
+
if (typeof obj_id !== 'string') {
|
|
590
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
591
|
+
}
|
|
592
|
+
})();
|
|
593
|
+
if (obj_id_union0_error != null) {
|
|
594
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
595
|
+
}
|
|
596
|
+
let obj_id_union1 = null;
|
|
597
|
+
const obj_id_union1_error = (() => {
|
|
598
|
+
if (obj_id !== null) {
|
|
599
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
600
|
+
}
|
|
601
|
+
})();
|
|
602
|
+
if (obj_id_union1_error != null) {
|
|
603
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
604
|
+
}
|
|
605
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
606
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
607
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
608
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
609
|
+
return new TypeError(message);
|
|
610
|
+
}
|
|
611
|
+
const obj_intent = obj.intent;
|
|
612
|
+
const path_intent = path + '.intent';
|
|
613
|
+
let obj_intent_union0 = null;
|
|
614
|
+
const obj_intent_union0_error = (() => {
|
|
615
|
+
if (typeof obj_intent !== 'string') {
|
|
616
|
+
return new TypeError('Expected "string" but received "' + typeof obj_intent + '" (at "' + path_intent + '")');
|
|
617
|
+
}
|
|
618
|
+
})();
|
|
619
|
+
if (obj_intent_union0_error != null) {
|
|
620
|
+
obj_intent_union0 = obj_intent_union0_error.message;
|
|
621
|
+
}
|
|
622
|
+
let obj_intent_union1 = null;
|
|
623
|
+
const obj_intent_union1_error = (() => {
|
|
624
|
+
if (obj_intent !== null) {
|
|
625
|
+
return new TypeError('Expected "null" but received "' + typeof obj_intent + '" (at "' + path_intent + '")');
|
|
626
|
+
}
|
|
627
|
+
})();
|
|
628
|
+
if (obj_intent_union1_error != null) {
|
|
629
|
+
obj_intent_union1 = obj_intent_union1_error.message;
|
|
630
|
+
}
|
|
631
|
+
if (obj_intent_union0 && obj_intent_union1) {
|
|
632
|
+
let message = 'Object doesn\'t match union (at "' + path_intent + '")';
|
|
633
|
+
message += '\n' + obj_intent_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
634
|
+
message += '\n' + obj_intent_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
635
|
+
return new TypeError(message);
|
|
636
|
+
}
|
|
637
|
+
const obj_plan = obj.plan;
|
|
638
|
+
const path_plan = path + '.plan';
|
|
639
|
+
let obj_plan_union0 = null;
|
|
640
|
+
const obj_plan_union0_error = (() => {
|
|
641
|
+
if (typeof obj_plan !== 'string') {
|
|
642
|
+
return new TypeError('Expected "string" but received "' + typeof obj_plan + '" (at "' + path_plan + '")');
|
|
643
|
+
}
|
|
644
|
+
})();
|
|
645
|
+
if (obj_plan_union0_error != null) {
|
|
646
|
+
obj_plan_union0 = obj_plan_union0_error.message;
|
|
647
|
+
}
|
|
648
|
+
let obj_plan_union1 = null;
|
|
649
|
+
const obj_plan_union1_error = (() => {
|
|
650
|
+
if (obj_plan !== null) {
|
|
651
|
+
return new TypeError('Expected "null" but received "' + typeof obj_plan + '" (at "' + path_plan + '")');
|
|
652
|
+
}
|
|
653
|
+
})();
|
|
654
|
+
if (obj_plan_union1_error != null) {
|
|
655
|
+
obj_plan_union1 = obj_plan_union1_error.message;
|
|
656
|
+
}
|
|
657
|
+
if (obj_plan_union0 && obj_plan_union1) {
|
|
658
|
+
let message = 'Object doesn\'t match union (at "' + path_plan + '")';
|
|
659
|
+
message += '\n' + obj_plan_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
660
|
+
message += '\n' + obj_plan_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
560
661
|
return new TypeError(message);
|
|
561
662
|
}
|
|
562
663
|
const obj_steps = obj.steps;
|
|
@@ -567,19 +668,116 @@ function validate$1(obj, path = 'ServicePlanOutputRepresentation') {
|
|
|
567
668
|
for (let i = 0; i < obj_steps.length; i++) {
|
|
568
669
|
const obj_steps_item = obj_steps[i];
|
|
569
670
|
const path_steps_item = path_steps + '[' + i + ']';
|
|
570
|
-
|
|
571
|
-
|
|
671
|
+
const referencepath_steps_itemValidationError = validate$2(obj_steps_item, path_steps_item);
|
|
672
|
+
if (referencepath_steps_itemValidationError !== null) {
|
|
673
|
+
let message = 'Object doesn\'t match ServicePlanStepRepresentation (at "' + path_steps_item + '")\n';
|
|
674
|
+
message += referencepath_steps_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
675
|
+
return new TypeError(message);
|
|
572
676
|
}
|
|
573
677
|
}
|
|
574
|
-
const obj_topic = obj.topic;
|
|
575
|
-
const path_topic = path + '.topic';
|
|
576
|
-
if (typeof obj_topic !== 'string') {
|
|
577
|
-
return new TypeError('Expected "string" but received "' + typeof obj_topic + '" (at "' + path_topic + '")');
|
|
578
|
-
}
|
|
579
678
|
const obj_topicDescription = obj.topicDescription;
|
|
580
679
|
const path_topicDescription = path + '.topicDescription';
|
|
581
|
-
|
|
582
|
-
|
|
680
|
+
let obj_topicDescription_union0 = null;
|
|
681
|
+
const obj_topicDescription_union0_error = (() => {
|
|
682
|
+
if (typeof obj_topicDescription !== 'string') {
|
|
683
|
+
return new TypeError('Expected "string" but received "' + typeof obj_topicDescription + '" (at "' + path_topicDescription + '")');
|
|
684
|
+
}
|
|
685
|
+
})();
|
|
686
|
+
if (obj_topicDescription_union0_error != null) {
|
|
687
|
+
obj_topicDescription_union0 = obj_topicDescription_union0_error.message;
|
|
688
|
+
}
|
|
689
|
+
let obj_topicDescription_union1 = null;
|
|
690
|
+
const obj_topicDescription_union1_error = (() => {
|
|
691
|
+
if (obj_topicDescription !== null) {
|
|
692
|
+
return new TypeError('Expected "null" but received "' + typeof obj_topicDescription + '" (at "' + path_topicDescription + '")');
|
|
693
|
+
}
|
|
694
|
+
})();
|
|
695
|
+
if (obj_topicDescription_union1_error != null) {
|
|
696
|
+
obj_topicDescription_union1 = obj_topicDescription_union1_error.message;
|
|
697
|
+
}
|
|
698
|
+
if (obj_topicDescription_union0 && obj_topicDescription_union1) {
|
|
699
|
+
let message = 'Object doesn\'t match union (at "' + path_topicDescription + '")';
|
|
700
|
+
message += '\n' + obj_topicDescription_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
701
|
+
message += '\n' + obj_topicDescription_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
702
|
+
return new TypeError(message);
|
|
703
|
+
}
|
|
704
|
+
const obj_topicId = obj.topicId;
|
|
705
|
+
const path_topicId = path + '.topicId';
|
|
706
|
+
let obj_topicId_union0 = null;
|
|
707
|
+
const obj_topicId_union0_error = (() => {
|
|
708
|
+
if (typeof obj_topicId !== 'string') {
|
|
709
|
+
return new TypeError('Expected "string" but received "' + typeof obj_topicId + '" (at "' + path_topicId + '")');
|
|
710
|
+
}
|
|
711
|
+
})();
|
|
712
|
+
if (obj_topicId_union0_error != null) {
|
|
713
|
+
obj_topicId_union0 = obj_topicId_union0_error.message;
|
|
714
|
+
}
|
|
715
|
+
let obj_topicId_union1 = null;
|
|
716
|
+
const obj_topicId_union1_error = (() => {
|
|
717
|
+
if (obj_topicId !== null) {
|
|
718
|
+
return new TypeError('Expected "null" but received "' + typeof obj_topicId + '" (at "' + path_topicId + '")');
|
|
719
|
+
}
|
|
720
|
+
})();
|
|
721
|
+
if (obj_topicId_union1_error != null) {
|
|
722
|
+
obj_topicId_union1 = obj_topicId_union1_error.message;
|
|
723
|
+
}
|
|
724
|
+
if (obj_topicId_union0 && obj_topicId_union1) {
|
|
725
|
+
let message = 'Object doesn\'t match union (at "' + path_topicId + '")';
|
|
726
|
+
message += '\n' + obj_topicId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
727
|
+
message += '\n' + obj_topicId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
728
|
+
return new TypeError(message);
|
|
729
|
+
}
|
|
730
|
+
const obj_topicName = obj.topicName;
|
|
731
|
+
const path_topicName = path + '.topicName';
|
|
732
|
+
let obj_topicName_union0 = null;
|
|
733
|
+
const obj_topicName_union0_error = (() => {
|
|
734
|
+
if (typeof obj_topicName !== 'string') {
|
|
735
|
+
return new TypeError('Expected "string" but received "' + typeof obj_topicName + '" (at "' + path_topicName + '")');
|
|
736
|
+
}
|
|
737
|
+
})();
|
|
738
|
+
if (obj_topicName_union0_error != null) {
|
|
739
|
+
obj_topicName_union0 = obj_topicName_union0_error.message;
|
|
740
|
+
}
|
|
741
|
+
let obj_topicName_union1 = null;
|
|
742
|
+
const obj_topicName_union1_error = (() => {
|
|
743
|
+
if (obj_topicName !== null) {
|
|
744
|
+
return new TypeError('Expected "null" but received "' + typeof obj_topicName + '" (at "' + path_topicName + '")');
|
|
745
|
+
}
|
|
746
|
+
})();
|
|
747
|
+
if (obj_topicName_union1_error != null) {
|
|
748
|
+
obj_topicName_union1 = obj_topicName_union1_error.message;
|
|
749
|
+
}
|
|
750
|
+
if (obj_topicName_union0 && obj_topicName_union1) {
|
|
751
|
+
let message = 'Object doesn\'t match union (at "' + path_topicName + '")';
|
|
752
|
+
message += '\n' + obj_topicName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
753
|
+
message += '\n' + obj_topicName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
754
|
+
return new TypeError(message);
|
|
755
|
+
}
|
|
756
|
+
const obj_type = obj.type;
|
|
757
|
+
const path_type = path + '.type';
|
|
758
|
+
let obj_type_union0 = null;
|
|
759
|
+
const obj_type_union0_error = (() => {
|
|
760
|
+
if (typeof obj_type !== 'string') {
|
|
761
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
762
|
+
}
|
|
763
|
+
})();
|
|
764
|
+
if (obj_type_union0_error != null) {
|
|
765
|
+
obj_type_union0 = obj_type_union0_error.message;
|
|
766
|
+
}
|
|
767
|
+
let obj_type_union1 = null;
|
|
768
|
+
const obj_type_union1_error = (() => {
|
|
769
|
+
if (obj_type !== null) {
|
|
770
|
+
return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
771
|
+
}
|
|
772
|
+
})();
|
|
773
|
+
if (obj_type_union1_error != null) {
|
|
774
|
+
obj_type_union1 = obj_type_union1_error.message;
|
|
775
|
+
}
|
|
776
|
+
if (obj_type_union0 && obj_type_union1) {
|
|
777
|
+
let message = 'Object doesn\'t match union (at "' + path_type + '")';
|
|
778
|
+
message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
779
|
+
message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
780
|
+
return new TypeError(message);
|
|
583
781
|
}
|
|
584
782
|
})();
|
|
585
783
|
return v_error === undefined ? null : v_error;
|
|
@@ -625,12 +823,121 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
625
823
|
}
|
|
626
824
|
|
|
627
825
|
const TTL = 1000;
|
|
628
|
-
const VERSION = "
|
|
826
|
+
const VERSION = "e8180e1000b0af7a1bd8c7016fbb8ac2";
|
|
629
827
|
function validate(obj, path = 'ServicePlanGenerationSyncOutputRepresentation') {
|
|
630
828
|
const v_error = (() => {
|
|
631
829
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
632
830
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
633
831
|
}
|
|
832
|
+
const obj_copilotId = obj.copilotId;
|
|
833
|
+
const path_copilotId = path + '.copilotId';
|
|
834
|
+
let obj_copilotId_union0 = null;
|
|
835
|
+
const obj_copilotId_union0_error = (() => {
|
|
836
|
+
if (typeof obj_copilotId !== 'string') {
|
|
837
|
+
return new TypeError('Expected "string" but received "' + typeof obj_copilotId + '" (at "' + path_copilotId + '")');
|
|
838
|
+
}
|
|
839
|
+
})();
|
|
840
|
+
if (obj_copilotId_union0_error != null) {
|
|
841
|
+
obj_copilotId_union0 = obj_copilotId_union0_error.message;
|
|
842
|
+
}
|
|
843
|
+
let obj_copilotId_union1 = null;
|
|
844
|
+
const obj_copilotId_union1_error = (() => {
|
|
845
|
+
if (obj_copilotId !== null) {
|
|
846
|
+
return new TypeError('Expected "null" but received "' + typeof obj_copilotId + '" (at "' + path_copilotId + '")');
|
|
847
|
+
}
|
|
848
|
+
})();
|
|
849
|
+
if (obj_copilotId_union1_error != null) {
|
|
850
|
+
obj_copilotId_union1 = obj_copilotId_union1_error.message;
|
|
851
|
+
}
|
|
852
|
+
if (obj_copilotId_union0 && obj_copilotId_union1) {
|
|
853
|
+
let message = 'Object doesn\'t match union (at "' + path_copilotId + '")';
|
|
854
|
+
message += '\n' + obj_copilotId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
855
|
+
message += '\n' + obj_copilotId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
856
|
+
return new TypeError(message);
|
|
857
|
+
}
|
|
858
|
+
const obj_copilotName = obj.copilotName;
|
|
859
|
+
const path_copilotName = path + '.copilotName';
|
|
860
|
+
let obj_copilotName_union0 = null;
|
|
861
|
+
const obj_copilotName_union0_error = (() => {
|
|
862
|
+
if (typeof obj_copilotName !== 'string') {
|
|
863
|
+
return new TypeError('Expected "string" but received "' + typeof obj_copilotName + '" (at "' + path_copilotName + '")');
|
|
864
|
+
}
|
|
865
|
+
})();
|
|
866
|
+
if (obj_copilotName_union0_error != null) {
|
|
867
|
+
obj_copilotName_union0 = obj_copilotName_union0_error.message;
|
|
868
|
+
}
|
|
869
|
+
let obj_copilotName_union1 = null;
|
|
870
|
+
const obj_copilotName_union1_error = (() => {
|
|
871
|
+
if (obj_copilotName !== null) {
|
|
872
|
+
return new TypeError('Expected "null" but received "' + typeof obj_copilotName + '" (at "' + path_copilotName + '")');
|
|
873
|
+
}
|
|
874
|
+
})();
|
|
875
|
+
if (obj_copilotName_union1_error != null) {
|
|
876
|
+
obj_copilotName_union1 = obj_copilotName_union1_error.message;
|
|
877
|
+
}
|
|
878
|
+
if (obj_copilotName_union0 && obj_copilotName_union1) {
|
|
879
|
+
let message = 'Object doesn\'t match union (at "' + path_copilotName + '")';
|
|
880
|
+
message += '\n' + obj_copilotName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
881
|
+
message += '\n' + obj_copilotName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
882
|
+
return new TypeError(message);
|
|
883
|
+
}
|
|
884
|
+
const obj_errorMessage = obj.errorMessage;
|
|
885
|
+
const path_errorMessage = path + '.errorMessage';
|
|
886
|
+
let obj_errorMessage_union0 = null;
|
|
887
|
+
const obj_errorMessage_union0_error = (() => {
|
|
888
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
889
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
890
|
+
}
|
|
891
|
+
})();
|
|
892
|
+
if (obj_errorMessage_union0_error != null) {
|
|
893
|
+
obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
|
|
894
|
+
}
|
|
895
|
+
let obj_errorMessage_union1 = null;
|
|
896
|
+
const obj_errorMessage_union1_error = (() => {
|
|
897
|
+
if (obj_errorMessage !== null) {
|
|
898
|
+
return new TypeError('Expected "null" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
899
|
+
}
|
|
900
|
+
})();
|
|
901
|
+
if (obj_errorMessage_union1_error != null) {
|
|
902
|
+
obj_errorMessage_union1 = obj_errorMessage_union1_error.message;
|
|
903
|
+
}
|
|
904
|
+
if (obj_errorMessage_union0 && obj_errorMessage_union1) {
|
|
905
|
+
let message = 'Object doesn\'t match union (at "' + path_errorMessage + '")';
|
|
906
|
+
message += '\n' + obj_errorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
907
|
+
message += '\n' + obj_errorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
908
|
+
return new TypeError(message);
|
|
909
|
+
}
|
|
910
|
+
const obj_id = obj.id;
|
|
911
|
+
const path_id = path + '.id';
|
|
912
|
+
let obj_id_union0 = null;
|
|
913
|
+
const obj_id_union0_error = (() => {
|
|
914
|
+
if (typeof obj_id !== 'string') {
|
|
915
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
916
|
+
}
|
|
917
|
+
})();
|
|
918
|
+
if (obj_id_union0_error != null) {
|
|
919
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
920
|
+
}
|
|
921
|
+
let obj_id_union1 = null;
|
|
922
|
+
const obj_id_union1_error = (() => {
|
|
923
|
+
if (obj_id !== null) {
|
|
924
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
925
|
+
}
|
|
926
|
+
})();
|
|
927
|
+
if (obj_id_union1_error != null) {
|
|
928
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
929
|
+
}
|
|
930
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
931
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
932
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
933
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
934
|
+
return new TypeError(message);
|
|
935
|
+
}
|
|
936
|
+
const obj_plan = obj.plan;
|
|
937
|
+
const path_plan = path + '.plan';
|
|
938
|
+
if (typeof obj_plan !== 'object') {
|
|
939
|
+
return new TypeError('Expected "object" but received "' + typeof obj_plan + '" (at "' + path_plan + '")');
|
|
940
|
+
}
|
|
634
941
|
const obj_reason = obj.reason;
|
|
635
942
|
const path_reason = path + '.reason';
|
|
636
943
|
if (typeof obj_reason !== 'string') {
|
|
@@ -638,19 +945,45 @@ function validate(obj, path = 'ServicePlanGenerationSyncOutputRepresentation') {
|
|
|
638
945
|
}
|
|
639
946
|
const obj_reasonDetails = obj.reasonDetails;
|
|
640
947
|
const path_reasonDetails = path + '.reasonDetails';
|
|
641
|
-
|
|
642
|
-
|
|
948
|
+
let obj_reasonDetails_union0 = null;
|
|
949
|
+
const obj_reasonDetails_union0_error = (() => {
|
|
950
|
+
if (typeof obj_reasonDetails !== 'string') {
|
|
951
|
+
return new TypeError('Expected "string" but received "' + typeof obj_reasonDetails + '" (at "' + path_reasonDetails + '")');
|
|
952
|
+
}
|
|
953
|
+
})();
|
|
954
|
+
if (obj_reasonDetails_union0_error != null) {
|
|
955
|
+
obj_reasonDetails_union0 = obj_reasonDetails_union0_error.message;
|
|
643
956
|
}
|
|
644
|
-
|
|
645
|
-
const
|
|
646
|
-
|
|
647
|
-
|
|
957
|
+
let obj_reasonDetails_union1 = null;
|
|
958
|
+
const obj_reasonDetails_union1_error = (() => {
|
|
959
|
+
if (obj_reasonDetails !== null) {
|
|
960
|
+
return new TypeError('Expected "null" but received "' + typeof obj_reasonDetails + '" (at "' + path_reasonDetails + '")');
|
|
961
|
+
}
|
|
962
|
+
})();
|
|
963
|
+
if (obj_reasonDetails_union1_error != null) {
|
|
964
|
+
obj_reasonDetails_union1 = obj_reasonDetails_union1_error.message;
|
|
965
|
+
}
|
|
966
|
+
if (obj_reasonDetails_union0 && obj_reasonDetails_union1) {
|
|
967
|
+
let message = 'Object doesn\'t match union (at "' + path_reasonDetails + '")';
|
|
968
|
+
message += '\n' + obj_reasonDetails_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
969
|
+
message += '\n' + obj_reasonDetails_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
970
|
+
return new TypeError(message);
|
|
971
|
+
}
|
|
972
|
+
const obj_recordId = obj.recordId;
|
|
973
|
+
const path_recordId = path + '.recordId';
|
|
974
|
+
if (typeof obj_recordId !== 'string') {
|
|
975
|
+
return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
|
|
648
976
|
}
|
|
649
977
|
const obj_status = obj.status;
|
|
650
978
|
const path_status = path + '.status';
|
|
651
979
|
if (typeof obj_status !== 'string') {
|
|
652
980
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
653
981
|
}
|
|
982
|
+
const obj_type = obj.type;
|
|
983
|
+
const path_type = path + '.type';
|
|
984
|
+
if (typeof obj_type !== 'string') {
|
|
985
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
986
|
+
}
|
|
654
987
|
})();
|
|
655
988
|
return v_error === undefined ? null : v_error;
|
|
656
989
|
}
|
|
@@ -665,11 +998,11 @@ function keyBuilderFromType(luvio, object) {
|
|
|
665
998
|
return keyBuilder(luvio, keyParams);
|
|
666
999
|
}
|
|
667
1000
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
668
|
-
const
|
|
669
|
-
const
|
|
670
|
-
input.
|
|
671
|
-
fullPath:
|
|
672
|
-
propertyName: '
|
|
1001
|
+
const input_plan = input.plan;
|
|
1002
|
+
const input_plan_id = path.fullPath + '__plan';
|
|
1003
|
+
input.plan = ingest$1(input_plan, {
|
|
1004
|
+
fullPath: input_plan_id,
|
|
1005
|
+
propertyName: 'plan',
|
|
673
1006
|
parent: {
|
|
674
1007
|
data: input,
|
|
675
1008
|
key: path.fullPath,
|
|
@@ -686,21 +1019,45 @@ const select$1 = function ServicePlanGenerationSyncOutputRepresentationSelect()
|
|
|
686
1019
|
private: [],
|
|
687
1020
|
selections: [
|
|
688
1021
|
{
|
|
689
|
-
name: '
|
|
1022
|
+
name: 'copilotId',
|
|
690
1023
|
kind: 'Scalar'
|
|
691
1024
|
},
|
|
692
1025
|
{
|
|
693
|
-
name: '
|
|
1026
|
+
name: 'copilotName',
|
|
694
1027
|
kind: 'Scalar'
|
|
695
1028
|
},
|
|
696
1029
|
{
|
|
697
|
-
name: '
|
|
1030
|
+
name: 'errorMessage',
|
|
1031
|
+
kind: 'Scalar'
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
name: 'id',
|
|
1035
|
+
kind: 'Scalar'
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
name: 'plan',
|
|
698
1039
|
kind: 'Link',
|
|
699
1040
|
fragment: select$2()
|
|
700
1041
|
},
|
|
1042
|
+
{
|
|
1043
|
+
name: 'reason',
|
|
1044
|
+
kind: 'Scalar'
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
name: 'reasonDetails',
|
|
1048
|
+
kind: 'Scalar'
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
name: 'recordId',
|
|
1052
|
+
kind: 'Scalar'
|
|
1053
|
+
},
|
|
701
1054
|
{
|
|
702
1055
|
name: 'status',
|
|
703
1056
|
kind: 'Scalar'
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
name: 'type',
|
|
1060
|
+
kind: 'Scalar'
|
|
704
1061
|
}
|
|
705
1062
|
]
|
|
706
1063
|
};
|
|
@@ -711,9 +1068,9 @@ function equals(existing, incoming) {
|
|
|
711
1068
|
if (!(existing_reason === incoming_reason)) {
|
|
712
1069
|
return false;
|
|
713
1070
|
}
|
|
714
|
-
const
|
|
715
|
-
const
|
|
716
|
-
if (!(
|
|
1071
|
+
const existing_recordId = existing.recordId;
|
|
1072
|
+
const incoming_recordId = incoming.recordId;
|
|
1073
|
+
if (!(existing_recordId === incoming_recordId)) {
|
|
717
1074
|
return false;
|
|
718
1075
|
}
|
|
719
1076
|
const existing_status = existing.status;
|
|
@@ -721,9 +1078,39 @@ function equals(existing, incoming) {
|
|
|
721
1078
|
if (!(existing_status === incoming_status)) {
|
|
722
1079
|
return false;
|
|
723
1080
|
}
|
|
724
|
-
const
|
|
725
|
-
const
|
|
726
|
-
if (!(
|
|
1081
|
+
const existing_type = existing.type;
|
|
1082
|
+
const incoming_type = incoming.type;
|
|
1083
|
+
if (!(existing_type === incoming_type)) {
|
|
1084
|
+
return false;
|
|
1085
|
+
}
|
|
1086
|
+
const existing_copilotId = existing.copilotId;
|
|
1087
|
+
const incoming_copilotId = incoming.copilotId;
|
|
1088
|
+
if (!(existing_copilotId === incoming_copilotId)) {
|
|
1089
|
+
return false;
|
|
1090
|
+
}
|
|
1091
|
+
const existing_copilotName = existing.copilotName;
|
|
1092
|
+
const incoming_copilotName = incoming.copilotName;
|
|
1093
|
+
if (!(existing_copilotName === incoming_copilotName)) {
|
|
1094
|
+
return false;
|
|
1095
|
+
}
|
|
1096
|
+
const existing_errorMessage = existing.errorMessage;
|
|
1097
|
+
const incoming_errorMessage = incoming.errorMessage;
|
|
1098
|
+
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
1099
|
+
return false;
|
|
1100
|
+
}
|
|
1101
|
+
const existing_id = existing.id;
|
|
1102
|
+
const incoming_id = incoming.id;
|
|
1103
|
+
if (!(existing_id === incoming_id)) {
|
|
1104
|
+
return false;
|
|
1105
|
+
}
|
|
1106
|
+
const existing_plan = existing.plan;
|
|
1107
|
+
const incoming_plan = incoming.plan;
|
|
1108
|
+
if (!(existing_plan.__ref === incoming_plan.__ref)) {
|
|
1109
|
+
return false;
|
|
1110
|
+
}
|
|
1111
|
+
const existing_reasonDetails = existing.reasonDetails;
|
|
1112
|
+
const incoming_reasonDetails = incoming.reasonDetails;
|
|
1113
|
+
if (!(existing_reasonDetails === incoming_reasonDetails)) {
|
|
727
1114
|
return false;
|
|
728
1115
|
}
|
|
729
1116
|
return true;
|
|
@@ -748,7 +1135,7 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
748
1135
|
representationName: RepresentationType,
|
|
749
1136
|
mergeable: false
|
|
750
1137
|
});
|
|
751
|
-
getTypeCacheKeys$1(rootKeySet, luvio, input.
|
|
1138
|
+
getTypeCacheKeys$1(rootKeySet, luvio, input.plan, () => rootKey + "__" + "plan");
|
|
752
1139
|
}
|
|
753
1140
|
|
|
754
1141
|
function select(luvio, params) {
|
|
@@ -778,11 +1165,11 @@ function createResourceRequest(config) {
|
|
|
778
1165
|
const headers = {};
|
|
779
1166
|
return {
|
|
780
1167
|
baseUri: '/services/data/v62.0',
|
|
781
|
-
basePath: '/connect/service-plan/
|
|
1168
|
+
basePath: '/connect/service-plan/generationRequests',
|
|
782
1169
|
method: 'post',
|
|
783
1170
|
body: config.body,
|
|
784
|
-
urlParams:
|
|
785
|
-
queryParams:
|
|
1171
|
+
urlParams: {},
|
|
1172
|
+
queryParams: config.queryParams,
|
|
786
1173
|
headers,
|
|
787
1174
|
priority: 'normal',
|
|
788
1175
|
};
|
|
@@ -790,7 +1177,7 @@ function createResourceRequest(config) {
|
|
|
790
1177
|
|
|
791
1178
|
const adapterName = 'generateSync';
|
|
792
1179
|
const generateSync_ConfigPropertyMetadata = [
|
|
793
|
-
generateParamConfigMetadata('recordId',
|
|
1180
|
+
generateParamConfigMetadata('recordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
794
1181
|
generateParamConfigMetadata('additionalContext', true, 2 /* Body */, 4 /* Unsupported */),
|
|
795
1182
|
generateParamConfigMetadata('mode', true, 2 /* Body */, 0 /* String */),
|
|
796
1183
|
generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
|