@salesforce/lds-adapters-industries-scheduler 1.282.0 → 1.284.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.
@@ -91,17 +91,277 @@ function createLink(ref) {
91
91
  };
92
92
  }
93
93
 
94
- const VERSION$B = "634dc06358471b779c123191ac182d64";
95
- function validate$F(obj, path = 'ServiceAppointmentRepresentation') {
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 = "e1942247bd0b4b845f6e33cb6ef21a75";
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
+ if (obj.latitude !== undefined) {
166
+ const obj_latitude = obj.latitude;
167
+ const path_latitude = path + '.latitude';
168
+ if (typeof obj_latitude !== 'string') {
169
+ return new TypeError('Expected "string" but received "' + typeof obj_latitude + '" (at "' + path_latitude + '")');
170
+ }
171
+ }
172
+ if (obj.longitude !== undefined) {
173
+ const obj_longitude = obj.longitude;
174
+ const path_longitude = path + '.longitude';
175
+ if (typeof obj_longitude !== 'string') {
176
+ return new TypeError('Expected "string" but received "' + typeof obj_longitude + '" (at "' + path_longitude + '")');
177
+ }
178
+ }
179
+ const obj_name = obj.name;
180
+ const path_name = path + '.name';
181
+ if (typeof obj_name !== 'string') {
182
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
183
+ }
184
+ if (obj.operatingHoursId !== undefined) {
185
+ const obj_operatingHoursId = obj.operatingHoursId;
186
+ const path_operatingHoursId = path + '.operatingHoursId';
187
+ if (typeof obj_operatingHoursId !== 'string') {
188
+ return new TypeError('Expected "string" but received "' + typeof obj_operatingHoursId + '" (at "' + path_operatingHoursId + '")');
189
+ }
190
+ }
191
+ const obj_postalCode = obj.postalCode;
192
+ const path_postalCode = path + '.postalCode';
193
+ if (typeof obj_postalCode !== 'string') {
194
+ return new TypeError('Expected "string" but received "' + typeof obj_postalCode + '" (at "' + path_postalCode + '")');
195
+ }
196
+ const obj_state = obj.state;
197
+ const path_state = path + '.state';
198
+ if (typeof obj_state !== 'string') {
199
+ return new TypeError('Expected "string" but received "' + typeof obj_state + '" (at "' + path_state + '")');
200
+ }
201
+ const obj_street = obj.street;
202
+ const path_street = path + '.street';
203
+ if (typeof obj_street !== 'string') {
204
+ return new TypeError('Expected "string" but received "' + typeof obj_street + '" (at "' + path_street + '")');
205
+ }
206
+ })();
207
+ return v_error === undefined ? null : v_error;
208
+ }
209
+ const select$R = function GetServiceTerritoriesResultSelect() {
210
+ return {
211
+ kind: 'Fragment',
212
+ version: VERSION$D,
213
+ private: [],
214
+ selections: [
215
+ {
216
+ name: 'city',
217
+ kind: 'Scalar'
218
+ },
219
+ {
220
+ name: 'country',
221
+ kind: 'Scalar'
222
+ },
223
+ {
224
+ name: 'id',
225
+ kind: 'Scalar'
226
+ },
227
+ {
228
+ name: 'latitude',
229
+ kind: 'Scalar',
230
+ required: false
231
+ },
232
+ {
233
+ name: 'longitude',
234
+ kind: 'Scalar',
235
+ required: false
236
+ },
237
+ {
238
+ name: 'name',
239
+ kind: 'Scalar'
240
+ },
241
+ {
242
+ name: 'operatingHoursId',
243
+ kind: 'Scalar',
244
+ required: false
245
+ },
246
+ {
247
+ name: 'postalCode',
248
+ kind: 'Scalar'
249
+ },
250
+ {
251
+ name: 'state',
252
+ kind: 'Scalar'
253
+ },
254
+ {
255
+ name: 'street',
256
+ kind: 'Scalar'
257
+ }
258
+ ]
259
+ };
260
+ };
261
+ function equals$D(existing, incoming) {
262
+ const existing_city = existing.city;
263
+ const incoming_city = incoming.city;
264
+ if (!(existing_city === incoming_city)) {
265
+ return false;
266
+ }
267
+ const existing_country = existing.country;
268
+ const incoming_country = incoming.country;
269
+ if (!(existing_country === incoming_country)) {
270
+ return false;
271
+ }
272
+ const existing_id = existing.id;
273
+ const incoming_id = incoming.id;
274
+ if (!(existing_id === incoming_id)) {
275
+ return false;
276
+ }
277
+ const existing_latitude = existing.latitude;
278
+ const incoming_latitude = incoming.latitude;
279
+ // if at least one of these optionals is defined
280
+ if (existing_latitude !== undefined || incoming_latitude !== undefined) {
281
+ // if one of these is not defined we know the other is defined and therefore
282
+ // not equal
283
+ if (existing_latitude === undefined || incoming_latitude === undefined) {
284
+ return false;
285
+ }
286
+ if (!(existing_latitude === incoming_latitude)) {
287
+ return false;
288
+ }
289
+ }
290
+ const existing_longitude = existing.longitude;
291
+ const incoming_longitude = incoming.longitude;
292
+ // if at least one of these optionals is defined
293
+ if (existing_longitude !== undefined || incoming_longitude !== undefined) {
294
+ // if one of these is not defined we know the other is defined and therefore
295
+ // not equal
296
+ if (existing_longitude === undefined || incoming_longitude === undefined) {
297
+ return false;
298
+ }
299
+ if (!(existing_longitude === incoming_longitude)) {
300
+ return false;
301
+ }
302
+ }
303
+ const existing_name = existing.name;
304
+ const incoming_name = incoming.name;
305
+ if (!(existing_name === incoming_name)) {
306
+ return false;
307
+ }
308
+ const existing_operatingHoursId = existing.operatingHoursId;
309
+ const incoming_operatingHoursId = incoming.operatingHoursId;
310
+ // if at least one of these optionals is defined
311
+ if (existing_operatingHoursId !== undefined || incoming_operatingHoursId !== undefined) {
312
+ // if one of these is not defined we know the other is defined and therefore
313
+ // not equal
314
+ if (existing_operatingHoursId === undefined || incoming_operatingHoursId === undefined) {
315
+ return false;
316
+ }
317
+ if (!(existing_operatingHoursId === incoming_operatingHoursId)) {
318
+ return false;
319
+ }
320
+ }
321
+ const existing_postalCode = existing.postalCode;
322
+ const incoming_postalCode = incoming.postalCode;
323
+ if (!(existing_postalCode === incoming_postalCode)) {
324
+ return false;
325
+ }
326
+ const existing_state = existing.state;
327
+ const incoming_state = incoming.state;
328
+ if (!(existing_state === incoming_state)) {
329
+ return false;
330
+ }
331
+ const existing_street = existing.street;
332
+ const incoming_street = incoming.street;
333
+ if (!(existing_street === incoming_street)) {
334
+ return false;
335
+ }
336
+ return true;
337
+ }
338
+
339
+ const VERSION$C = "8b15cce0754cf4733a7724c1628bc305";
340
+ function validate$G(obj, path = 'ServiceAppointmentRepresentation') {
341
+ const v_error = (() => {
342
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
343
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
344
+ }
345
+ const obj_additionalInformation = obj.additionalInformation;
346
+ const path_additionalInformation = path + '.additionalInformation';
347
+ if (typeof obj_additionalInformation !== 'string') {
348
+ return new TypeError('Expected "string" but received "' + typeof obj_additionalInformation + '" (at "' + path_additionalInformation + '")');
349
+ }
100
350
  const obj_appointmentType = obj.appointmentType;
101
351
  const path_appointmentType = path + '.appointmentType';
102
352
  if (typeof obj_appointmentType !== 'string') {
103
353
  return new TypeError('Expected "string" but received "' + typeof obj_appointmentType + '" (at "' + path_appointmentType + '")');
104
354
  }
355
+ const obj_comments = obj.comments;
356
+ const path_comments = path + '.comments';
357
+ if (typeof obj_comments !== 'string') {
358
+ return new TypeError('Expected "string" but received "' + typeof obj_comments + '" (at "' + path_comments + '")');
359
+ }
360
+ const obj_description = obj.description;
361
+ const path_description = path + '.description';
362
+ if (typeof obj_description !== 'string') {
363
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
364
+ }
105
365
  const obj_engagementChannelTypeId = obj.engagementChannelTypeId;
106
366
  const path_engagementChannelTypeId = path + '.engagementChannelTypeId';
107
367
  if (typeof obj_engagementChannelTypeId !== 'string') {
@@ -122,6 +382,21 @@ function validate$F(obj, path = 'ServiceAppointmentRepresentation') {
122
382
  if (typeof obj_parentRecordId !== 'string') {
123
383
  return new TypeError('Expected "string" but received "' + typeof obj_parentRecordId + '" (at "' + path_parentRecordId + '")');
124
384
  }
385
+ const obj_relatedRecordFields = obj.relatedRecordFields;
386
+ const path_relatedRecordFields = path + '.relatedRecordFields';
387
+ if (!ArrayIsArray(obj_relatedRecordFields)) {
388
+ return new TypeError('Expected "array" but received "' + typeof obj_relatedRecordFields + '" (at "' + path_relatedRecordFields + '")');
389
+ }
390
+ for (let i = 0; i < obj_relatedRecordFields.length; i++) {
391
+ const obj_relatedRecordFields_item = obj_relatedRecordFields[i];
392
+ const path_relatedRecordFields_item = path_relatedRecordFields + '[' + i + ']';
393
+ const referencepath_relatedRecordFields_itemValidationError = validate$I(obj_relatedRecordFields_item, path_relatedRecordFields_item);
394
+ if (referencepath_relatedRecordFields_itemValidationError !== null) {
395
+ let message = 'Object doesn\'t match SchedulerExtendedFieldsOutputRepresentation (at "' + path_relatedRecordFields_item + '")\n';
396
+ message += referencepath_relatedRecordFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
397
+ return new TypeError(message);
398
+ }
399
+ }
125
400
  const obj_schedEndTime = obj.schedEndTime;
126
401
  const path_schedEndTime = path + '.schedEndTime';
127
402
  if (typeof obj_schedEndTime !== 'string') {
@@ -132,6 +407,14 @@ function validate$F(obj, path = 'ServiceAppointmentRepresentation') {
132
407
  if (typeof obj_schedStartTime !== 'string') {
133
408
  return new TypeError('Expected "string" but received "' + typeof obj_schedStartTime + '" (at "' + path_schedStartTime + '")');
134
409
  }
410
+ const obj_serviceTerritory = obj.serviceTerritory;
411
+ const path_serviceTerritory = path + '.serviceTerritory';
412
+ const referencepath_serviceTerritoryValidationError = validate$H(obj_serviceTerritory, path_serviceTerritory);
413
+ if (referencepath_serviceTerritoryValidationError !== null) {
414
+ let message = 'Object doesn\'t match GetServiceTerritoriesResult (at "' + path_serviceTerritory + '")\n';
415
+ message += referencepath_serviceTerritoryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
416
+ return new TypeError(message);
417
+ }
135
418
  const obj_serviceTerritoryId = obj.serviceTerritoryId;
136
419
  const path_serviceTerritoryId = path + '.serviceTerritoryId';
137
420
  if (typeof obj_serviceTerritoryId !== 'string') {
@@ -147,6 +430,11 @@ function validate$F(obj, path = 'ServiceAppointmentRepresentation') {
147
430
  if (typeof obj_statusCategory !== 'string') {
148
431
  return new TypeError('Expected "string" but received "' + typeof obj_statusCategory + '" (at "' + path_statusCategory + '")');
149
432
  }
433
+ const obj_subject = obj.subject;
434
+ const path_subject = path + '.subject';
435
+ if (typeof obj_subject !== 'string') {
436
+ return new TypeError('Expected "string" but received "' + typeof obj_subject + '" (at "' + path_subject + '")');
437
+ }
150
438
  const obj_workTypeId = obj.workTypeId;
151
439
  const path_workTypeId = path + '.workTypeId';
152
440
  if (typeof obj_workTypeId !== 'string') {
@@ -155,16 +443,30 @@ function validate$F(obj, path = 'ServiceAppointmentRepresentation') {
155
443
  })();
156
444
  return v_error === undefined ? null : v_error;
157
445
  }
158
- const select$P = function ServiceAppointmentRepresentationSelect() {
446
+ const select$Q = function ServiceAppointmentRepresentationSelect() {
447
+ const { selections: SchedulerExtendedFieldsOutputRepresentation__selections, opaque: SchedulerExtendedFieldsOutputRepresentation__opaque, } = select$S();
448
+ const { selections: GetServiceTerritoriesResult__selections, opaque: GetServiceTerritoriesResult__opaque, } = select$R();
159
449
  return {
160
450
  kind: 'Fragment',
161
- version: VERSION$B,
451
+ version: VERSION$C,
162
452
  private: [],
163
453
  selections: [
454
+ {
455
+ name: 'additionalInformation',
456
+ kind: 'Scalar'
457
+ },
164
458
  {
165
459
  name: 'appointmentType',
166
460
  kind: 'Scalar'
167
461
  },
462
+ {
463
+ name: 'comments',
464
+ kind: 'Scalar'
465
+ },
466
+ {
467
+ name: 'description',
468
+ kind: 'Scalar'
469
+ },
168
470
  {
169
471
  name: 'engagementChannelTypeId',
170
472
  kind: 'Scalar'
@@ -181,6 +483,12 @@ const select$P = function ServiceAppointmentRepresentationSelect() {
181
483
  name: 'parentRecordId',
182
484
  kind: 'Scalar'
183
485
  },
486
+ {
487
+ name: 'relatedRecordFields',
488
+ kind: 'Object',
489
+ plural: true,
490
+ selections: SchedulerExtendedFieldsOutputRepresentation__selections
491
+ },
184
492
  {
185
493
  name: 'schedEndTime',
186
494
  kind: 'Scalar'
@@ -189,6 +497,11 @@ const select$P = function ServiceAppointmentRepresentationSelect() {
189
497
  name: 'schedStartTime',
190
498
  kind: 'Scalar'
191
499
  },
500
+ {
501
+ name: 'serviceTerritory',
502
+ kind: 'Object',
503
+ selections: GetServiceTerritoriesResult__selections
504
+ },
192
505
  {
193
506
  name: 'serviceTerritoryId',
194
507
  kind: 'Scalar'
@@ -201,6 +514,10 @@ const select$P = function ServiceAppointmentRepresentationSelect() {
201
514
  name: 'statusCategory',
202
515
  kind: 'Scalar'
203
516
  },
517
+ {
518
+ name: 'subject',
519
+ kind: 'Scalar'
520
+ },
204
521
  {
205
522
  name: 'workTypeId',
206
523
  kind: 'Scalar'
@@ -208,17 +525,32 @@ const select$P = function ServiceAppointmentRepresentationSelect() {
208
525
  ]
209
526
  };
210
527
  };
211
- function equals$B(existing, incoming) {
528
+ function equals$C(existing, incoming) {
212
529
  const existing_isAnonymousBooking = existing.isAnonymousBooking;
213
530
  const incoming_isAnonymousBooking = incoming.isAnonymousBooking;
214
531
  if (!(existing_isAnonymousBooking === incoming_isAnonymousBooking)) {
215
532
  return false;
216
533
  }
534
+ const existing_additionalInformation = existing.additionalInformation;
535
+ const incoming_additionalInformation = incoming.additionalInformation;
536
+ if (!(existing_additionalInformation === incoming_additionalInformation)) {
537
+ return false;
538
+ }
217
539
  const existing_appointmentType = existing.appointmentType;
218
540
  const incoming_appointmentType = incoming.appointmentType;
219
541
  if (!(existing_appointmentType === incoming_appointmentType)) {
220
542
  return false;
221
543
  }
544
+ const existing_comments = existing.comments;
545
+ const incoming_comments = incoming.comments;
546
+ if (!(existing_comments === incoming_comments)) {
547
+ return false;
548
+ }
549
+ const existing_description = existing.description;
550
+ const incoming_description = incoming.description;
551
+ if (!(existing_description === incoming_description)) {
552
+ return false;
553
+ }
222
554
  const existing_engagementChannelTypeId = existing.engagementChannelTypeId;
223
555
  const incoming_engagementChannelTypeId = incoming.engagementChannelTypeId;
224
556
  if (!(existing_engagementChannelTypeId === incoming_engagementChannelTypeId)) {
@@ -259,15 +591,85 @@ function equals$B(existing, incoming) {
259
591
  if (!(existing_statusCategory === incoming_statusCategory)) {
260
592
  return false;
261
593
  }
594
+ const existing_subject = existing.subject;
595
+ const incoming_subject = incoming.subject;
596
+ if (!(existing_subject === incoming_subject)) {
597
+ return false;
598
+ }
262
599
  const existing_workTypeId = existing.workTypeId;
263
600
  const incoming_workTypeId = incoming.workTypeId;
264
601
  if (!(existing_workTypeId === incoming_workTypeId)) {
265
602
  return false;
266
603
  }
604
+ const existing_relatedRecordFields = existing.relatedRecordFields;
605
+ const incoming_relatedRecordFields = incoming.relatedRecordFields;
606
+ const equals_relatedRecordFields_items = equalsArray(existing_relatedRecordFields, incoming_relatedRecordFields, (existing_relatedRecordFields_item, incoming_relatedRecordFields_item) => {
607
+ if (!(equals$E(existing_relatedRecordFields_item, incoming_relatedRecordFields_item))) {
608
+ return false;
609
+ }
610
+ });
611
+ if (equals_relatedRecordFields_items === false) {
612
+ return false;
613
+ }
614
+ const existing_serviceTerritory = existing.serviceTerritory;
615
+ const incoming_serviceTerritory = incoming.serviceTerritory;
616
+ if (!(equals$D(existing_serviceTerritory, incoming_serviceTerritory))) {
617
+ return false;
618
+ }
619
+ return true;
620
+ }
621
+
622
+ const VERSION$B = "0ebc6f397590a38f7d774c4af6fe342f";
623
+ function validate$F(obj, path = 'WorkTypeGroupRepresentation') {
624
+ const v_error = (() => {
625
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
626
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
627
+ }
628
+ const obj_id = obj.id;
629
+ const path_id = path + '.id';
630
+ if (typeof obj_id !== 'string') {
631
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
632
+ }
633
+ const obj_name = obj.name;
634
+ const path_name = path + '.name';
635
+ if (typeof obj_name !== 'string') {
636
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
637
+ }
638
+ })();
639
+ return v_error === undefined ? null : v_error;
640
+ }
641
+ const select$P = function WorkTypeGroupRepresentationSelect() {
642
+ return {
643
+ kind: 'Fragment',
644
+ version: VERSION$B,
645
+ private: [],
646
+ selections: [
647
+ {
648
+ name: 'id',
649
+ kind: 'Scalar'
650
+ },
651
+ {
652
+ name: 'name',
653
+ kind: 'Scalar'
654
+ }
655
+ ]
656
+ };
657
+ };
658
+ function equals$B(existing, incoming) {
659
+ const existing_id = existing.id;
660
+ const incoming_id = incoming.id;
661
+ if (!(existing_id === incoming_id)) {
662
+ return false;
663
+ }
664
+ const existing_name = existing.name;
665
+ const incoming_name = incoming.name;
666
+ if (!(existing_name === incoming_name)) {
667
+ return false;
668
+ }
267
669
  return true;
268
670
  }
269
671
 
270
- const VERSION$A = "b1536afef5d2b4f327b99edfd2bcde75";
672
+ const VERSION$A = "26d9d68e403f1fc11715c68781ebef23";
271
673
  function validate$E(obj, path = 'GetAppointmentFromTokenResult') {
272
674
  const v_error = (() => {
273
675
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -275,7 +677,7 @@ function validate$E(obj, path = 'GetAppointmentFromTokenResult') {
275
677
  }
276
678
  const obj_serviceAppointment = obj.serviceAppointment;
277
679
  const path_serviceAppointment = path + '.serviceAppointment';
278
- const referencepath_serviceAppointmentValidationError = validate$F(obj_serviceAppointment, path_serviceAppointment);
680
+ const referencepath_serviceAppointmentValidationError = validate$G(obj_serviceAppointment, path_serviceAppointment);
279
681
  if (referencepath_serviceAppointmentValidationError !== null) {
280
682
  let message = 'Object doesn\'t match ServiceAppointmentRepresentation (at "' + path_serviceAppointment + '")\n';
281
683
  message += referencepath_serviceAppointmentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -286,16 +688,20 @@ function validate$E(obj, path = 'GetAppointmentFromTokenResult') {
286
688
  if (typeof obj_serviceResourceId !== 'string') {
287
689
  return new TypeError('Expected "string" but received "' + typeof obj_serviceResourceId + '" (at "' + path_serviceResourceId + '")');
288
690
  }
289
- const obj_workTypeGroupId = obj.workTypeGroupId;
290
- const path_workTypeGroupId = path + '.workTypeGroupId';
291
- if (typeof obj_workTypeGroupId !== 'string') {
292
- return new TypeError('Expected "string" but received "' + typeof obj_workTypeGroupId + '" (at "' + path_workTypeGroupId + '")');
691
+ const obj_workTypeGroup = obj.workTypeGroup;
692
+ const path_workTypeGroup = path + '.workTypeGroup';
693
+ const referencepath_workTypeGroupValidationError = validate$F(obj_workTypeGroup, path_workTypeGroup);
694
+ if (referencepath_workTypeGroupValidationError !== null) {
695
+ let message = 'Object doesn\'t match WorkTypeGroupRepresentation (at "' + path_workTypeGroup + '")\n';
696
+ message += referencepath_workTypeGroupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
697
+ return new TypeError(message);
293
698
  }
294
699
  })();
295
700
  return v_error === undefined ? null : v_error;
296
701
  }
297
702
  const select$O = function GetAppointmentFromTokenResultSelect() {
298
- const { selections: ServiceAppointmentRepresentation__selections, opaque: ServiceAppointmentRepresentation__opaque, } = select$P();
703
+ const { selections: ServiceAppointmentRepresentation__selections, opaque: ServiceAppointmentRepresentation__opaque, } = select$Q();
704
+ const { selections: WorkTypeGroupRepresentation__selections, opaque: WorkTypeGroupRepresentation__opaque, } = select$P();
299
705
  return {
300
706
  kind: 'Fragment',
301
707
  version: VERSION$A,
@@ -311,8 +717,9 @@ const select$O = function GetAppointmentFromTokenResultSelect() {
311
717
  kind: 'Scalar'
312
718
  },
313
719
  {
314
- name: 'workTypeGroupId',
315
- kind: 'Scalar'
720
+ name: 'workTypeGroup',
721
+ kind: 'Object',
722
+ selections: WorkTypeGroupRepresentation__selections
316
723
  }
317
724
  ]
318
725
  };
@@ -323,14 +730,14 @@ function equals$A(existing, incoming) {
323
730
  if (!(existing_serviceResourceId === incoming_serviceResourceId)) {
324
731
  return false;
325
732
  }
326
- const existing_workTypeGroupId = existing.workTypeGroupId;
327
- const incoming_workTypeGroupId = incoming.workTypeGroupId;
328
- if (!(existing_workTypeGroupId === incoming_workTypeGroupId)) {
329
- return false;
330
- }
331
733
  const existing_serviceAppointment = existing.serviceAppointment;
332
734
  const incoming_serviceAppointment = incoming.serviceAppointment;
333
- if (!(equals$B(existing_serviceAppointment, incoming_serviceAppointment))) {
735
+ if (!(equals$C(existing_serviceAppointment, incoming_serviceAppointment))) {
736
+ return false;
737
+ }
738
+ const existing_workTypeGroup = existing.workTypeGroup;
739
+ const incoming_workTypeGroup = incoming.workTypeGroup;
740
+ if (!(equals$B(existing_workTypeGroup, incoming_workTypeGroup))) {
334
741
  return false;
335
742
  }
336
743
  return true;
@@ -406,7 +813,7 @@ function select$M(luvio, params) {
406
813
  return select$N();
407
814
  }
408
815
  function keyBuilder$n(luvio, params) {
409
- return keyPrefix + '::GetAppointmentFromTokenOutputRepresentation:(' + 'appointmentToken:' + params.queryParams.appointmentToken + ')';
816
+ return keyPrefix + '::GetAppointmentFromTokenOutputRepresentation:(' + 'token:' + params.queryParams.token + ')';
410
817
  }
411
818
  function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
412
819
  getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$n(luvio, resourceParams));
@@ -450,7 +857,7 @@ function createResourceRequest$d(config) {
450
857
 
451
858
  const adapterName$d = 'getAppointmentFromToken';
452
859
  const getAppointmentFromToken_ConfigPropertyMetadata = [
453
- generateParamConfigMetadata('appointmentToken', false, 1 /* QueryParameter */, 0 /* String */),
860
+ generateParamConfigMetadata('token', false, 1 /* QueryParameter */, 0 /* String */),
454
861
  ];
455
862
  const getAppointmentFromToken_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getAppointmentFromToken_ConfigPropertyMetadata);
456
863
  const createResourceParams$d = /*#__PURE__*/ createResourceParams$e(getAppointmentFromToken_ConfigPropertyMetadata);
@@ -1487,7 +1894,7 @@ function select$D(luvio, params) {
1487
1894
  return select$E();
1488
1895
  }
1489
1896
  function keyBuilder$j(luvio, params) {
1490
- return keyPrefix + '::GetGroupAppointmentsOutputRepresentation:(' + (params.body.startTime === undefined ? 'startTime' : 'startTime:' + params.body.startTime) + '::' + (params.body.endTime === undefined ? 'endTime' : 'endTime:' + params.body.endTime) + '::' + (params.body.limit === undefined ? 'limit' : 'limit:' + params.body.limit) + '::' + (params.body.offset === undefined ? 'offset' : 'offset:' + params.body.offset) + '::' + (params.body.filterByWorkTypeGroups === undefined ? 'filterByWorkTypeGroups' : 'filterByWorkTypeGroups:' + params.body.filterByWorkTypeGroups) + '::' + (params.body.filterByWorkTypes === undefined ? 'filterByWorkTypes' : 'filterByWorkTypes:' + params.body.filterByWorkTypes) + '::' + (params.body.filterByParentRecords === undefined ? 'filterByParentRecords' : 'filterByParentRecords:' + params.body.filterByParentRecords) + '::' + (params.body.filterByTerritories === undefined ? 'filterByTerritories' : 'filterByTerritories:' + params.body.filterByTerritories) + '::' + (params.body.filterByResources === undefined ? 'filterByResources' : 'filterByResources:' + params.body.filterByResources) + '::' + (params.body.extendedFieldsToQuery === undefined ? 'extendedFieldsToQuery' : 'extendedFieldsToQuery:' + params.body.extendedFieldsToQuery) + ')';
1897
+ return keyPrefix + '::GetGroupAppointmentsOutputRepresentation:(' + (params.body.startTime === undefined ? 'startTime' : 'startTime:' + params.body.startTime) + '::' + (params.body.endTime === undefined ? 'endTime' : 'endTime:' + params.body.endTime) + '::' + (params.body.limit === undefined ? 'limit' : 'limit:' + params.body.limit) + '::' + (params.body.offset === undefined ? 'offset' : 'offset:' + params.body.offset) + '::' + (params.body.filterByWorkTypeGroups === undefined ? 'filterByWorkTypeGroups' : 'filterByWorkTypeGroups:' + params.body.filterByWorkTypeGroups) + '::' + (params.body.filterByWorkTypes === undefined ? 'filterByWorkTypes' : 'filterByWorkTypes:' + params.body.filterByWorkTypes) + '::' + (params.body.filterByParentRecords === undefined ? 'filterByParentRecords' : 'filterByParentRecords:' + params.body.filterByParentRecords) + '::' + (params.body.filterByTerritories === undefined ? 'filterByTerritories' : 'filterByTerritories:' + params.body.filterByTerritories) + '::' + (params.body.filterByResources === undefined ? 'filterByResources' : 'filterByResources:' + params.body.filterByResources) + '::' + (params.body.excludeAssociatedAppts === undefined ? 'excludeAssociatedAppts' : 'excludeAssociatedAppts:' + params.body.excludeAssociatedAppts) + '::' + (params.body.extendedFieldsToQuery === undefined ? 'extendedFieldsToQuery' : 'extendedFieldsToQuery:' + params.body.extendedFieldsToQuery) + ')';
1491
1898
  }
1492
1899
  function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
1493
1900
  getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
@@ -1540,6 +1947,7 @@ const getGroupAppointments_ConfigPropertyMetadata = [
1540
1947
  generateParamConfigMetadata('filterByParentRecords', false, 2 /* Body */, 0 /* String */, true),
1541
1948
  generateParamConfigMetadata('filterByTerritories', false, 2 /* Body */, 0 /* String */, true),
1542
1949
  generateParamConfigMetadata('filterByResources', false, 2 /* Body */, 0 /* String */, true),
1950
+ generateParamConfigMetadata('excludeAssociatedAppts', false, 2 /* Body */, 1 /* Boolean */),
1543
1951
  generateParamConfigMetadata('extendedFieldsToQuery', false, 2 /* Body */, 0 /* String */, true),
1544
1952
  ];
1545
1953
  const getGroupAppointments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getGroupAppointments_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
- appointmentToken?: string;
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;
@@ -15,6 +15,7 @@ export interface GetGroupAppointmentsConfig {
15
15
  filterByParentRecords?: Array<string>;
16
16
  filterByTerritories?: Array<string>;
17
17
  filterByResources?: Array<string>;
18
+ excludeAssociatedAppts?: boolean;
18
19
  extendedFieldsToQuery?: Array<string>;
19
20
  }
20
21
  export declare const createResourceParams: (config: GetGroupAppointmentsConfig) => resources_postConnectSchedulingGroupAppointments_ResourceRequestConfig;
@@ -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
- appointmentToken?: string;
5
+ token?: string;
6
6
  };
7
7
  }
8
8
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -11,6 +11,7 @@ export interface ResourceRequestConfig {
11
11
  filterByParentRecords?: Array<string>;
12
12
  filterByTerritories?: Array<string>;
13
13
  filterByResources?: Array<string>;
14
+ excludeAssociatedAppts?: boolean;
14
15
  extendedFieldsToQuery?: Array<string>;
15
16
  };
16
17
  }