@salesforce/lds-adapters-industries-scheduler 1.282.0 → 1.283.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/industries-scheduler.js +396 -22
- package/dist/es/es2018/types/src/generated/adapters/getAppointmentFromToken.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectSchedulingAppointmentFromToken.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/GetAppointmentFromTokenResult.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/GetServiceTerritoriesResult.d.ts +55 -0
- package/dist/es/es2018/types/src/generated/types/SchedulerExtendedFieldsOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ServiceAppointmentRepresentation.d.ts +21 -1
- package/dist/es/es2018/types/src/generated/types/TokenInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/WorkTypeGroupRepresentation.d.ts +31 -0
- package/package.json +4 -4
- package/sfdc/index.js +490 -116
- package/src/raml/api.raml +84 -10
- package/dist/es/es2018/types/src/generated/types/AppointmentFromTokenInputRepresentation.d.ts +0 -28
|
@@ -91,17 +91,244 @@ function createLink(ref) {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
const VERSION$
|
|
95
|
-
function validate$
|
|
94
|
+
const VERSION$E = "ccbd37c17b881b95fe03fe4851c55909";
|
|
95
|
+
function validate$I(obj, path = 'SchedulerExtendedFieldsOutputRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
99
99
|
}
|
|
100
|
+
const obj_name = obj.name;
|
|
101
|
+
const path_name = path + '.name';
|
|
102
|
+
if (typeof obj_name !== 'string') {
|
|
103
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
104
|
+
}
|
|
105
|
+
const obj_value = obj.value;
|
|
106
|
+
const path_value = path + '.value';
|
|
107
|
+
if (typeof obj_value !== 'string') {
|
|
108
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
109
|
+
}
|
|
110
|
+
})();
|
|
111
|
+
return v_error === undefined ? null : v_error;
|
|
112
|
+
}
|
|
113
|
+
const select$S = function SchedulerExtendedFieldsOutputRepresentationSelect() {
|
|
114
|
+
return {
|
|
115
|
+
kind: 'Fragment',
|
|
116
|
+
version: VERSION$E,
|
|
117
|
+
private: [],
|
|
118
|
+
selections: [
|
|
119
|
+
{
|
|
120
|
+
name: 'name',
|
|
121
|
+
kind: 'Scalar'
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'value',
|
|
125
|
+
kind: 'Scalar'
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
function equals$E(existing, incoming) {
|
|
131
|
+
const existing_name = existing.name;
|
|
132
|
+
const incoming_name = incoming.name;
|
|
133
|
+
if (!(existing_name === incoming_name)) {
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
136
|
+
const existing_value = existing.value;
|
|
137
|
+
const incoming_value = incoming.value;
|
|
138
|
+
if (!(existing_value === incoming_value)) {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const VERSION$D = "84783b8b89fdd3345880668f9abf2e2c";
|
|
145
|
+
function validate$H(obj, path = 'GetServiceTerritoriesResult') {
|
|
146
|
+
const v_error = (() => {
|
|
147
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
148
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
149
|
+
}
|
|
150
|
+
const obj_city = obj.city;
|
|
151
|
+
const path_city = path + '.city';
|
|
152
|
+
if (typeof obj_city !== 'string') {
|
|
153
|
+
return new TypeError('Expected "string" but received "' + typeof obj_city + '" (at "' + path_city + '")');
|
|
154
|
+
}
|
|
155
|
+
const obj_country = obj.country;
|
|
156
|
+
const path_country = path + '.country';
|
|
157
|
+
if (typeof obj_country !== 'string') {
|
|
158
|
+
return new TypeError('Expected "string" but received "' + typeof obj_country + '" (at "' + path_country + '")');
|
|
159
|
+
}
|
|
160
|
+
const obj_id = obj.id;
|
|
161
|
+
const path_id = path + '.id';
|
|
162
|
+
if (typeof obj_id !== 'string') {
|
|
163
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
164
|
+
}
|
|
165
|
+
const obj_latitude = obj.latitude;
|
|
166
|
+
const path_latitude = path + '.latitude';
|
|
167
|
+
if (typeof obj_latitude !== 'string') {
|
|
168
|
+
return new TypeError('Expected "string" but received "' + typeof obj_latitude + '" (at "' + path_latitude + '")');
|
|
169
|
+
}
|
|
170
|
+
const obj_longitude = obj.longitude;
|
|
171
|
+
const path_longitude = path + '.longitude';
|
|
172
|
+
if (typeof obj_longitude !== 'string') {
|
|
173
|
+
return new TypeError('Expected "string" but received "' + typeof obj_longitude + '" (at "' + path_longitude + '")');
|
|
174
|
+
}
|
|
175
|
+
const obj_name = obj.name;
|
|
176
|
+
const path_name = path + '.name';
|
|
177
|
+
if (typeof obj_name !== 'string') {
|
|
178
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
179
|
+
}
|
|
180
|
+
const obj_operatingHoursId = obj.operatingHoursId;
|
|
181
|
+
const path_operatingHoursId = path + '.operatingHoursId';
|
|
182
|
+
if (typeof obj_operatingHoursId !== 'string') {
|
|
183
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operatingHoursId + '" (at "' + path_operatingHoursId + '")');
|
|
184
|
+
}
|
|
185
|
+
const obj_postalCode = obj.postalCode;
|
|
186
|
+
const path_postalCode = path + '.postalCode';
|
|
187
|
+
if (typeof obj_postalCode !== 'string') {
|
|
188
|
+
return new TypeError('Expected "string" but received "' + typeof obj_postalCode + '" (at "' + path_postalCode + '")');
|
|
189
|
+
}
|
|
190
|
+
const obj_state = obj.state;
|
|
191
|
+
const path_state = path + '.state';
|
|
192
|
+
if (typeof obj_state !== 'string') {
|
|
193
|
+
return new TypeError('Expected "string" but received "' + typeof obj_state + '" (at "' + path_state + '")');
|
|
194
|
+
}
|
|
195
|
+
const obj_street = obj.street;
|
|
196
|
+
const path_street = path + '.street';
|
|
197
|
+
if (typeof obj_street !== 'string') {
|
|
198
|
+
return new TypeError('Expected "string" but received "' + typeof obj_street + '" (at "' + path_street + '")');
|
|
199
|
+
}
|
|
200
|
+
})();
|
|
201
|
+
return v_error === undefined ? null : v_error;
|
|
202
|
+
}
|
|
203
|
+
const select$R = function GetServiceTerritoriesResultSelect() {
|
|
204
|
+
return {
|
|
205
|
+
kind: 'Fragment',
|
|
206
|
+
version: VERSION$D,
|
|
207
|
+
private: [],
|
|
208
|
+
selections: [
|
|
209
|
+
{
|
|
210
|
+
name: 'city',
|
|
211
|
+
kind: 'Scalar'
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'country',
|
|
215
|
+
kind: 'Scalar'
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: 'id',
|
|
219
|
+
kind: 'Scalar'
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: 'latitude',
|
|
223
|
+
kind: 'Scalar'
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
name: 'longitude',
|
|
227
|
+
kind: 'Scalar'
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: 'name',
|
|
231
|
+
kind: 'Scalar'
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: 'operatingHoursId',
|
|
235
|
+
kind: 'Scalar'
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
name: 'postalCode',
|
|
239
|
+
kind: 'Scalar'
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
name: 'state',
|
|
243
|
+
kind: 'Scalar'
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: 'street',
|
|
247
|
+
kind: 'Scalar'
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
function equals$D(existing, incoming) {
|
|
253
|
+
const existing_city = existing.city;
|
|
254
|
+
const incoming_city = incoming.city;
|
|
255
|
+
if (!(existing_city === incoming_city)) {
|
|
256
|
+
return false;
|
|
257
|
+
}
|
|
258
|
+
const existing_country = existing.country;
|
|
259
|
+
const incoming_country = incoming.country;
|
|
260
|
+
if (!(existing_country === incoming_country)) {
|
|
261
|
+
return false;
|
|
262
|
+
}
|
|
263
|
+
const existing_id = existing.id;
|
|
264
|
+
const incoming_id = incoming.id;
|
|
265
|
+
if (!(existing_id === incoming_id)) {
|
|
266
|
+
return false;
|
|
267
|
+
}
|
|
268
|
+
const existing_latitude = existing.latitude;
|
|
269
|
+
const incoming_latitude = incoming.latitude;
|
|
270
|
+
if (!(existing_latitude === incoming_latitude)) {
|
|
271
|
+
return false;
|
|
272
|
+
}
|
|
273
|
+
const existing_longitude = existing.longitude;
|
|
274
|
+
const incoming_longitude = incoming.longitude;
|
|
275
|
+
if (!(existing_longitude === incoming_longitude)) {
|
|
276
|
+
return false;
|
|
277
|
+
}
|
|
278
|
+
const existing_name = existing.name;
|
|
279
|
+
const incoming_name = incoming.name;
|
|
280
|
+
if (!(existing_name === incoming_name)) {
|
|
281
|
+
return false;
|
|
282
|
+
}
|
|
283
|
+
const existing_operatingHoursId = existing.operatingHoursId;
|
|
284
|
+
const incoming_operatingHoursId = incoming.operatingHoursId;
|
|
285
|
+
if (!(existing_operatingHoursId === incoming_operatingHoursId)) {
|
|
286
|
+
return false;
|
|
287
|
+
}
|
|
288
|
+
const existing_postalCode = existing.postalCode;
|
|
289
|
+
const incoming_postalCode = incoming.postalCode;
|
|
290
|
+
if (!(existing_postalCode === incoming_postalCode)) {
|
|
291
|
+
return false;
|
|
292
|
+
}
|
|
293
|
+
const existing_state = existing.state;
|
|
294
|
+
const incoming_state = incoming.state;
|
|
295
|
+
if (!(existing_state === incoming_state)) {
|
|
296
|
+
return false;
|
|
297
|
+
}
|
|
298
|
+
const existing_street = existing.street;
|
|
299
|
+
const incoming_street = incoming.street;
|
|
300
|
+
if (!(existing_street === incoming_street)) {
|
|
301
|
+
return false;
|
|
302
|
+
}
|
|
303
|
+
return true;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
const VERSION$C = "8b15cce0754cf4733a7724c1628bc305";
|
|
307
|
+
function validate$G(obj, path = 'ServiceAppointmentRepresentation') {
|
|
308
|
+
const v_error = (() => {
|
|
309
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
310
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
311
|
+
}
|
|
312
|
+
const obj_additionalInformation = obj.additionalInformation;
|
|
313
|
+
const path_additionalInformation = path + '.additionalInformation';
|
|
314
|
+
if (typeof obj_additionalInformation !== 'string') {
|
|
315
|
+
return new TypeError('Expected "string" but received "' + typeof obj_additionalInformation + '" (at "' + path_additionalInformation + '")');
|
|
316
|
+
}
|
|
100
317
|
const obj_appointmentType = obj.appointmentType;
|
|
101
318
|
const path_appointmentType = path + '.appointmentType';
|
|
102
319
|
if (typeof obj_appointmentType !== 'string') {
|
|
103
320
|
return new TypeError('Expected "string" but received "' + typeof obj_appointmentType + '" (at "' + path_appointmentType + '")');
|
|
104
321
|
}
|
|
322
|
+
const obj_comments = obj.comments;
|
|
323
|
+
const path_comments = path + '.comments';
|
|
324
|
+
if (typeof obj_comments !== 'string') {
|
|
325
|
+
return new TypeError('Expected "string" but received "' + typeof obj_comments + '" (at "' + path_comments + '")');
|
|
326
|
+
}
|
|
327
|
+
const obj_description = obj.description;
|
|
328
|
+
const path_description = path + '.description';
|
|
329
|
+
if (typeof obj_description !== 'string') {
|
|
330
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
331
|
+
}
|
|
105
332
|
const obj_engagementChannelTypeId = obj.engagementChannelTypeId;
|
|
106
333
|
const path_engagementChannelTypeId = path + '.engagementChannelTypeId';
|
|
107
334
|
if (typeof obj_engagementChannelTypeId !== 'string') {
|
|
@@ -122,6 +349,21 @@ function validate$F(obj, path = 'ServiceAppointmentRepresentation') {
|
|
|
122
349
|
if (typeof obj_parentRecordId !== 'string') {
|
|
123
350
|
return new TypeError('Expected "string" but received "' + typeof obj_parentRecordId + '" (at "' + path_parentRecordId + '")');
|
|
124
351
|
}
|
|
352
|
+
const obj_relatedRecordFields = obj.relatedRecordFields;
|
|
353
|
+
const path_relatedRecordFields = path + '.relatedRecordFields';
|
|
354
|
+
if (!ArrayIsArray(obj_relatedRecordFields)) {
|
|
355
|
+
return new TypeError('Expected "array" but received "' + typeof obj_relatedRecordFields + '" (at "' + path_relatedRecordFields + '")');
|
|
356
|
+
}
|
|
357
|
+
for (let i = 0; i < obj_relatedRecordFields.length; i++) {
|
|
358
|
+
const obj_relatedRecordFields_item = obj_relatedRecordFields[i];
|
|
359
|
+
const path_relatedRecordFields_item = path_relatedRecordFields + '[' + i + ']';
|
|
360
|
+
const referencepath_relatedRecordFields_itemValidationError = validate$I(obj_relatedRecordFields_item, path_relatedRecordFields_item);
|
|
361
|
+
if (referencepath_relatedRecordFields_itemValidationError !== null) {
|
|
362
|
+
let message = 'Object doesn\'t match SchedulerExtendedFieldsOutputRepresentation (at "' + path_relatedRecordFields_item + '")\n';
|
|
363
|
+
message += referencepath_relatedRecordFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
364
|
+
return new TypeError(message);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
125
367
|
const obj_schedEndTime = obj.schedEndTime;
|
|
126
368
|
const path_schedEndTime = path + '.schedEndTime';
|
|
127
369
|
if (typeof obj_schedEndTime !== 'string') {
|
|
@@ -132,6 +374,14 @@ function validate$F(obj, path = 'ServiceAppointmentRepresentation') {
|
|
|
132
374
|
if (typeof obj_schedStartTime !== 'string') {
|
|
133
375
|
return new TypeError('Expected "string" but received "' + typeof obj_schedStartTime + '" (at "' + path_schedStartTime + '")');
|
|
134
376
|
}
|
|
377
|
+
const obj_serviceTerritory = obj.serviceTerritory;
|
|
378
|
+
const path_serviceTerritory = path + '.serviceTerritory';
|
|
379
|
+
const referencepath_serviceTerritoryValidationError = validate$H(obj_serviceTerritory, path_serviceTerritory);
|
|
380
|
+
if (referencepath_serviceTerritoryValidationError !== null) {
|
|
381
|
+
let message = 'Object doesn\'t match GetServiceTerritoriesResult (at "' + path_serviceTerritory + '")\n';
|
|
382
|
+
message += referencepath_serviceTerritoryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
383
|
+
return new TypeError(message);
|
|
384
|
+
}
|
|
135
385
|
const obj_serviceTerritoryId = obj.serviceTerritoryId;
|
|
136
386
|
const path_serviceTerritoryId = path + '.serviceTerritoryId';
|
|
137
387
|
if (typeof obj_serviceTerritoryId !== 'string') {
|
|
@@ -147,6 +397,11 @@ function validate$F(obj, path = 'ServiceAppointmentRepresentation') {
|
|
|
147
397
|
if (typeof obj_statusCategory !== 'string') {
|
|
148
398
|
return new TypeError('Expected "string" but received "' + typeof obj_statusCategory + '" (at "' + path_statusCategory + '")');
|
|
149
399
|
}
|
|
400
|
+
const obj_subject = obj.subject;
|
|
401
|
+
const path_subject = path + '.subject';
|
|
402
|
+
if (typeof obj_subject !== 'string') {
|
|
403
|
+
return new TypeError('Expected "string" but received "' + typeof obj_subject + '" (at "' + path_subject + '")');
|
|
404
|
+
}
|
|
150
405
|
const obj_workTypeId = obj.workTypeId;
|
|
151
406
|
const path_workTypeId = path + '.workTypeId';
|
|
152
407
|
if (typeof obj_workTypeId !== 'string') {
|
|
@@ -155,16 +410,30 @@ function validate$F(obj, path = 'ServiceAppointmentRepresentation') {
|
|
|
155
410
|
})();
|
|
156
411
|
return v_error === undefined ? null : v_error;
|
|
157
412
|
}
|
|
158
|
-
const select$
|
|
413
|
+
const select$Q = function ServiceAppointmentRepresentationSelect() {
|
|
414
|
+
const { selections: SchedulerExtendedFieldsOutputRepresentation__selections, opaque: SchedulerExtendedFieldsOutputRepresentation__opaque, } = select$S();
|
|
415
|
+
const { selections: GetServiceTerritoriesResult__selections, opaque: GetServiceTerritoriesResult__opaque, } = select$R();
|
|
159
416
|
return {
|
|
160
417
|
kind: 'Fragment',
|
|
161
|
-
version: VERSION$
|
|
418
|
+
version: VERSION$C,
|
|
162
419
|
private: [],
|
|
163
420
|
selections: [
|
|
421
|
+
{
|
|
422
|
+
name: 'additionalInformation',
|
|
423
|
+
kind: 'Scalar'
|
|
424
|
+
},
|
|
164
425
|
{
|
|
165
426
|
name: 'appointmentType',
|
|
166
427
|
kind: 'Scalar'
|
|
167
428
|
},
|
|
429
|
+
{
|
|
430
|
+
name: 'comments',
|
|
431
|
+
kind: 'Scalar'
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
name: 'description',
|
|
435
|
+
kind: 'Scalar'
|
|
436
|
+
},
|
|
168
437
|
{
|
|
169
438
|
name: 'engagementChannelTypeId',
|
|
170
439
|
kind: 'Scalar'
|
|
@@ -181,6 +450,12 @@ const select$P = function ServiceAppointmentRepresentationSelect() {
|
|
|
181
450
|
name: 'parentRecordId',
|
|
182
451
|
kind: 'Scalar'
|
|
183
452
|
},
|
|
453
|
+
{
|
|
454
|
+
name: 'relatedRecordFields',
|
|
455
|
+
kind: 'Object',
|
|
456
|
+
plural: true,
|
|
457
|
+
selections: SchedulerExtendedFieldsOutputRepresentation__selections
|
|
458
|
+
},
|
|
184
459
|
{
|
|
185
460
|
name: 'schedEndTime',
|
|
186
461
|
kind: 'Scalar'
|
|
@@ -189,6 +464,11 @@ const select$P = function ServiceAppointmentRepresentationSelect() {
|
|
|
189
464
|
name: 'schedStartTime',
|
|
190
465
|
kind: 'Scalar'
|
|
191
466
|
},
|
|
467
|
+
{
|
|
468
|
+
name: 'serviceTerritory',
|
|
469
|
+
kind: 'Object',
|
|
470
|
+
selections: GetServiceTerritoriesResult__selections
|
|
471
|
+
},
|
|
192
472
|
{
|
|
193
473
|
name: 'serviceTerritoryId',
|
|
194
474
|
kind: 'Scalar'
|
|
@@ -201,6 +481,10 @@ const select$P = function ServiceAppointmentRepresentationSelect() {
|
|
|
201
481
|
name: 'statusCategory',
|
|
202
482
|
kind: 'Scalar'
|
|
203
483
|
},
|
|
484
|
+
{
|
|
485
|
+
name: 'subject',
|
|
486
|
+
kind: 'Scalar'
|
|
487
|
+
},
|
|
204
488
|
{
|
|
205
489
|
name: 'workTypeId',
|
|
206
490
|
kind: 'Scalar'
|
|
@@ -208,17 +492,32 @@ const select$P = function ServiceAppointmentRepresentationSelect() {
|
|
|
208
492
|
]
|
|
209
493
|
};
|
|
210
494
|
};
|
|
211
|
-
function equals$
|
|
495
|
+
function equals$C(existing, incoming) {
|
|
212
496
|
const existing_isAnonymousBooking = existing.isAnonymousBooking;
|
|
213
497
|
const incoming_isAnonymousBooking = incoming.isAnonymousBooking;
|
|
214
498
|
if (!(existing_isAnonymousBooking === incoming_isAnonymousBooking)) {
|
|
215
499
|
return false;
|
|
216
500
|
}
|
|
501
|
+
const existing_additionalInformation = existing.additionalInformation;
|
|
502
|
+
const incoming_additionalInformation = incoming.additionalInformation;
|
|
503
|
+
if (!(existing_additionalInformation === incoming_additionalInformation)) {
|
|
504
|
+
return false;
|
|
505
|
+
}
|
|
217
506
|
const existing_appointmentType = existing.appointmentType;
|
|
218
507
|
const incoming_appointmentType = incoming.appointmentType;
|
|
219
508
|
if (!(existing_appointmentType === incoming_appointmentType)) {
|
|
220
509
|
return false;
|
|
221
510
|
}
|
|
511
|
+
const existing_comments = existing.comments;
|
|
512
|
+
const incoming_comments = incoming.comments;
|
|
513
|
+
if (!(existing_comments === incoming_comments)) {
|
|
514
|
+
return false;
|
|
515
|
+
}
|
|
516
|
+
const existing_description = existing.description;
|
|
517
|
+
const incoming_description = incoming.description;
|
|
518
|
+
if (!(existing_description === incoming_description)) {
|
|
519
|
+
return false;
|
|
520
|
+
}
|
|
222
521
|
const existing_engagementChannelTypeId = existing.engagementChannelTypeId;
|
|
223
522
|
const incoming_engagementChannelTypeId = incoming.engagementChannelTypeId;
|
|
224
523
|
if (!(existing_engagementChannelTypeId === incoming_engagementChannelTypeId)) {
|
|
@@ -259,15 +558,85 @@ function equals$B(existing, incoming) {
|
|
|
259
558
|
if (!(existing_statusCategory === incoming_statusCategory)) {
|
|
260
559
|
return false;
|
|
261
560
|
}
|
|
561
|
+
const existing_subject = existing.subject;
|
|
562
|
+
const incoming_subject = incoming.subject;
|
|
563
|
+
if (!(existing_subject === incoming_subject)) {
|
|
564
|
+
return false;
|
|
565
|
+
}
|
|
262
566
|
const existing_workTypeId = existing.workTypeId;
|
|
263
567
|
const incoming_workTypeId = incoming.workTypeId;
|
|
264
568
|
if (!(existing_workTypeId === incoming_workTypeId)) {
|
|
265
569
|
return false;
|
|
266
570
|
}
|
|
571
|
+
const existing_relatedRecordFields = existing.relatedRecordFields;
|
|
572
|
+
const incoming_relatedRecordFields = incoming.relatedRecordFields;
|
|
573
|
+
const equals_relatedRecordFields_items = equalsArray(existing_relatedRecordFields, incoming_relatedRecordFields, (existing_relatedRecordFields_item, incoming_relatedRecordFields_item) => {
|
|
574
|
+
if (!(equals$E(existing_relatedRecordFields_item, incoming_relatedRecordFields_item))) {
|
|
575
|
+
return false;
|
|
576
|
+
}
|
|
577
|
+
});
|
|
578
|
+
if (equals_relatedRecordFields_items === false) {
|
|
579
|
+
return false;
|
|
580
|
+
}
|
|
581
|
+
const existing_serviceTerritory = existing.serviceTerritory;
|
|
582
|
+
const incoming_serviceTerritory = incoming.serviceTerritory;
|
|
583
|
+
if (!(equals$D(existing_serviceTerritory, incoming_serviceTerritory))) {
|
|
584
|
+
return false;
|
|
585
|
+
}
|
|
586
|
+
return true;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
const VERSION$B = "0ebc6f397590a38f7d774c4af6fe342f";
|
|
590
|
+
function validate$F(obj, path = 'WorkTypeGroupRepresentation') {
|
|
591
|
+
const v_error = (() => {
|
|
592
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
593
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
594
|
+
}
|
|
595
|
+
const obj_id = obj.id;
|
|
596
|
+
const path_id = path + '.id';
|
|
597
|
+
if (typeof obj_id !== 'string') {
|
|
598
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
599
|
+
}
|
|
600
|
+
const obj_name = obj.name;
|
|
601
|
+
const path_name = path + '.name';
|
|
602
|
+
if (typeof obj_name !== 'string') {
|
|
603
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
604
|
+
}
|
|
605
|
+
})();
|
|
606
|
+
return v_error === undefined ? null : v_error;
|
|
607
|
+
}
|
|
608
|
+
const select$P = function WorkTypeGroupRepresentationSelect() {
|
|
609
|
+
return {
|
|
610
|
+
kind: 'Fragment',
|
|
611
|
+
version: VERSION$B,
|
|
612
|
+
private: [],
|
|
613
|
+
selections: [
|
|
614
|
+
{
|
|
615
|
+
name: 'id',
|
|
616
|
+
kind: 'Scalar'
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
name: 'name',
|
|
620
|
+
kind: 'Scalar'
|
|
621
|
+
}
|
|
622
|
+
]
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
function equals$B(existing, incoming) {
|
|
626
|
+
const existing_id = existing.id;
|
|
627
|
+
const incoming_id = incoming.id;
|
|
628
|
+
if (!(existing_id === incoming_id)) {
|
|
629
|
+
return false;
|
|
630
|
+
}
|
|
631
|
+
const existing_name = existing.name;
|
|
632
|
+
const incoming_name = incoming.name;
|
|
633
|
+
if (!(existing_name === incoming_name)) {
|
|
634
|
+
return false;
|
|
635
|
+
}
|
|
267
636
|
return true;
|
|
268
637
|
}
|
|
269
638
|
|
|
270
|
-
const VERSION$A = "
|
|
639
|
+
const VERSION$A = "26d9d68e403f1fc11715c68781ebef23";
|
|
271
640
|
function validate$E(obj, path = 'GetAppointmentFromTokenResult') {
|
|
272
641
|
const v_error = (() => {
|
|
273
642
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -275,7 +644,7 @@ function validate$E(obj, path = 'GetAppointmentFromTokenResult') {
|
|
|
275
644
|
}
|
|
276
645
|
const obj_serviceAppointment = obj.serviceAppointment;
|
|
277
646
|
const path_serviceAppointment = path + '.serviceAppointment';
|
|
278
|
-
const referencepath_serviceAppointmentValidationError = validate$
|
|
647
|
+
const referencepath_serviceAppointmentValidationError = validate$G(obj_serviceAppointment, path_serviceAppointment);
|
|
279
648
|
if (referencepath_serviceAppointmentValidationError !== null) {
|
|
280
649
|
let message = 'Object doesn\'t match ServiceAppointmentRepresentation (at "' + path_serviceAppointment + '")\n';
|
|
281
650
|
message += referencepath_serviceAppointmentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -286,16 +655,20 @@ function validate$E(obj, path = 'GetAppointmentFromTokenResult') {
|
|
|
286
655
|
if (typeof obj_serviceResourceId !== 'string') {
|
|
287
656
|
return new TypeError('Expected "string" but received "' + typeof obj_serviceResourceId + '" (at "' + path_serviceResourceId + '")');
|
|
288
657
|
}
|
|
289
|
-
const
|
|
290
|
-
const
|
|
291
|
-
|
|
292
|
-
|
|
658
|
+
const obj_workTypeGroup = obj.workTypeGroup;
|
|
659
|
+
const path_workTypeGroup = path + '.workTypeGroup';
|
|
660
|
+
const referencepath_workTypeGroupValidationError = validate$F(obj_workTypeGroup, path_workTypeGroup);
|
|
661
|
+
if (referencepath_workTypeGroupValidationError !== null) {
|
|
662
|
+
let message = 'Object doesn\'t match WorkTypeGroupRepresentation (at "' + path_workTypeGroup + '")\n';
|
|
663
|
+
message += referencepath_workTypeGroupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
664
|
+
return new TypeError(message);
|
|
293
665
|
}
|
|
294
666
|
})();
|
|
295
667
|
return v_error === undefined ? null : v_error;
|
|
296
668
|
}
|
|
297
669
|
const select$O = function GetAppointmentFromTokenResultSelect() {
|
|
298
|
-
const { selections: ServiceAppointmentRepresentation__selections, opaque: ServiceAppointmentRepresentation__opaque, } = select$
|
|
670
|
+
const { selections: ServiceAppointmentRepresentation__selections, opaque: ServiceAppointmentRepresentation__opaque, } = select$Q();
|
|
671
|
+
const { selections: WorkTypeGroupRepresentation__selections, opaque: WorkTypeGroupRepresentation__opaque, } = select$P();
|
|
299
672
|
return {
|
|
300
673
|
kind: 'Fragment',
|
|
301
674
|
version: VERSION$A,
|
|
@@ -311,8 +684,9 @@ const select$O = function GetAppointmentFromTokenResultSelect() {
|
|
|
311
684
|
kind: 'Scalar'
|
|
312
685
|
},
|
|
313
686
|
{
|
|
314
|
-
name: '
|
|
315
|
-
kind: '
|
|
687
|
+
name: 'workTypeGroup',
|
|
688
|
+
kind: 'Object',
|
|
689
|
+
selections: WorkTypeGroupRepresentation__selections
|
|
316
690
|
}
|
|
317
691
|
]
|
|
318
692
|
};
|
|
@@ -323,14 +697,14 @@ function equals$A(existing, incoming) {
|
|
|
323
697
|
if (!(existing_serviceResourceId === incoming_serviceResourceId)) {
|
|
324
698
|
return false;
|
|
325
699
|
}
|
|
326
|
-
const existing_workTypeGroupId = existing.workTypeGroupId;
|
|
327
|
-
const incoming_workTypeGroupId = incoming.workTypeGroupId;
|
|
328
|
-
if (!(existing_workTypeGroupId === incoming_workTypeGroupId)) {
|
|
329
|
-
return false;
|
|
330
|
-
}
|
|
331
700
|
const existing_serviceAppointment = existing.serviceAppointment;
|
|
332
701
|
const incoming_serviceAppointment = incoming.serviceAppointment;
|
|
333
|
-
if (!(equals$
|
|
702
|
+
if (!(equals$C(existing_serviceAppointment, incoming_serviceAppointment))) {
|
|
703
|
+
return false;
|
|
704
|
+
}
|
|
705
|
+
const existing_workTypeGroup = existing.workTypeGroup;
|
|
706
|
+
const incoming_workTypeGroup = incoming.workTypeGroup;
|
|
707
|
+
if (!(equals$B(existing_workTypeGroup, incoming_workTypeGroup))) {
|
|
334
708
|
return false;
|
|
335
709
|
}
|
|
336
710
|
return true;
|
|
@@ -406,7 +780,7 @@ function select$M(luvio, params) {
|
|
|
406
780
|
return select$N();
|
|
407
781
|
}
|
|
408
782
|
function keyBuilder$n(luvio, params) {
|
|
409
|
-
return keyPrefix + '::GetAppointmentFromTokenOutputRepresentation:(' + '
|
|
783
|
+
return keyPrefix + '::GetAppointmentFromTokenOutputRepresentation:(' + 'token:' + params.queryParams.token + ')';
|
|
410
784
|
}
|
|
411
785
|
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
412
786
|
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$n(luvio, resourceParams));
|
|
@@ -450,7 +824,7 @@ function createResourceRequest$d(config) {
|
|
|
450
824
|
|
|
451
825
|
const adapterName$d = 'getAppointmentFromToken';
|
|
452
826
|
const getAppointmentFromToken_ConfigPropertyMetadata = [
|
|
453
|
-
generateParamConfigMetadata('
|
|
827
|
+
generateParamConfigMetadata('token', false, 1 /* QueryParameter */, 0 /* String */),
|
|
454
828
|
];
|
|
455
829
|
const getAppointmentFromToken_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getAppointmentFromToken_ConfigPropertyMetadata);
|
|
456
830
|
const createResourceParams$d = /*#__PURE__*/ createResourceParams$e(getAppointmentFromToken_ConfigPropertyMetadata);
|
|
@@ -6,7 +6,7 @@ export declare const adapterName = "getAppointmentFromToken";
|
|
|
6
6
|
export declare const getAppointmentFromToken_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const getAppointmentFromToken_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetAppointmentFromTokenConfig {
|
|
9
|
-
|
|
9
|
+
token?: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const createResourceParams: (config: GetAppointmentFromTokenConfig) => resources_getConnectSchedulingAppointmentFromToken_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetAppointmentFromTokenConfig): string;
|
package/dist/es/es2018/types/src/generated/resources/getConnectSchedulingAppointmentFromToken.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
|
2
2
|
import { GetAppointmentFromTokenOutputRepresentation as types_GetAppointmentFromTokenOutputRepresentation_GetAppointmentFromTokenOutputRepresentation } from '../types/GetAppointmentFromTokenOutputRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
5
|
-
|
|
5
|
+
token?: string;
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
8
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ServiceAppointmentRepresentation as ServiceAppointmentRepresentation_ServiceAppointmentRepresentation } from './ServiceAppointmentRepresentation';
|
|
2
|
+
import { WorkTypeGroupRepresentation as WorkTypeGroupRepresentation_WorkTypeGroupRepresentation } from './WorkTypeGroupRepresentation';
|
|
2
3
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "26d9d68e403f1fc11715c68781ebef23";
|
|
4
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
6
|
export declare const RepresentationType: string;
|
|
6
7
|
export declare function normalize(input: GetAppointmentFromTokenResult, existing: GetAppointmentFromTokenResultNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GetAppointmentFromTokenResultNormalized;
|
|
@@ -18,8 +19,7 @@ export interface GetAppointmentFromTokenResultNormalized {
|
|
|
18
19
|
serviceAppointment: ServiceAppointmentRepresentation_ServiceAppointmentRepresentation;
|
|
19
20
|
/** Service Resource ID */
|
|
20
21
|
serviceResourceId: string;
|
|
21
|
-
|
|
22
|
-
workTypeGroupId: string;
|
|
22
|
+
workTypeGroup: WorkTypeGroupRepresentation_WorkTypeGroupRepresentation;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* GetAppointmentFromToken result
|
|
@@ -30,5 +30,5 @@ export interface GetAppointmentFromTokenResultNormalized {
|
|
|
30
30
|
export interface GetAppointmentFromTokenResult {
|
|
31
31
|
serviceAppointment: ServiceAppointmentRepresentation_ServiceAppointmentRepresentation;
|
|
32
32
|
serviceResourceId: string;
|
|
33
|
-
|
|
33
|
+
workTypeGroup: WorkTypeGroupRepresentation_WorkTypeGroupRepresentation;
|
|
34
34
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "84783b8b89fdd3345880668f9abf2e2c";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: GetServiceTerritoriesResult, existing: GetServiceTerritoriesResultNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GetServiceTerritoriesResultNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: GetServiceTerritoriesResultNormalized, incoming: GetServiceTerritoriesResultNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: GetServiceTerritoriesResult, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Get service territories result
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface GetServiceTerritoriesResultNormalized {
|
|
17
|
+
/** Service territory city */
|
|
18
|
+
city: string;
|
|
19
|
+
/** Service territory country */
|
|
20
|
+
country: string;
|
|
21
|
+
/** Service territory ID */
|
|
22
|
+
id: string;
|
|
23
|
+
/** Service territory latitude */
|
|
24
|
+
latitude: string;
|
|
25
|
+
/** Service territory longitude */
|
|
26
|
+
longitude: string;
|
|
27
|
+
/** Service territory name */
|
|
28
|
+
name: string;
|
|
29
|
+
/** Service territory operating hours ID */
|
|
30
|
+
operatingHoursId: string;
|
|
31
|
+
/** Service territory postal code */
|
|
32
|
+
postalCode: string;
|
|
33
|
+
/** Service territory state */
|
|
34
|
+
state: string;
|
|
35
|
+
/** Service territory street */
|
|
36
|
+
street: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Get service territories result
|
|
40
|
+
*
|
|
41
|
+
* Keys:
|
|
42
|
+
* (none)
|
|
43
|
+
*/
|
|
44
|
+
export interface GetServiceTerritoriesResult {
|
|
45
|
+
city: string;
|
|
46
|
+
country: string;
|
|
47
|
+
id: string;
|
|
48
|
+
latitude: string;
|
|
49
|
+
longitude: string;
|
|
50
|
+
name: string;
|
|
51
|
+
operatingHoursId: string;
|
|
52
|
+
postalCode: string;
|
|
53
|
+
state: string;
|
|
54
|
+
street: string;
|
|
55
|
+
}
|