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