@salesforce/lds-adapters-industries-scheduler 1.273.0 → 1.274.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.
Files changed (23) hide show
  1. package/dist/es/es2018/industries-scheduler.js +1279 -544
  2. package/dist/es/es2018/types/src/generated/adapters/createServiceAppointmentAttendee.d.ts +18 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getServiceTerritoryCapacity.d.ts +29 -0
  4. package/dist/es/es2018/types/src/generated/adapters/updateServiceAppointmentAttendee.d.ts +19 -0
  5. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -1
  7. package/dist/es/es2018/types/src/generated/resources/getConnectSchedulingServiceTerritoryCapacity.d.ts +17 -0
  8. package/dist/es/es2018/types/src/generated/resources/patchConnectSchedulingServiceAppointmentAttendee.d.ts +16 -0
  9. package/dist/es/es2018/types/src/generated/resources/postConnectSchedulingServiceAppointmentAttendee.d.ts +15 -0
  10. package/dist/es/es2018/types/src/generated/types/CreateServiceAppointmentAttendeeInputRepresentation.d.ts +35 -0
  11. package/dist/es/es2018/types/src/generated/types/DayCapacity.d.ts +31 -0
  12. package/dist/es/es2018/types/src/generated/types/GetServiceTerritoryCapacityOutputRepresentation.d.ts +28 -0
  13. package/dist/es/es2018/types/src/generated/types/ServiceAppointmentAttendeeInputRepresentation.d.ts +34 -0
  14. package/dist/es/es2018/types/src/generated/types/ServiceAppointmentAttendeeOutputRepresentation.d.ts +46 -0
  15. package/dist/es/es2018/types/src/generated/types/ServiceAppointmentAttendeeResult.d.ts +37 -0
  16. package/dist/es/es2018/types/src/generated/types/ServiceTerritoryCapacityInputRepresentation.d.ts +34 -0
  17. package/dist/es/es2018/types/src/generated/types/ServiceTerritoryCapacityWorkTypeListResult.d.ts +29 -0
  18. package/dist/es/es2018/types/src/generated/types/ServiceTerritoryWorkTypeCapacity.d.ts +32 -0
  19. package/dist/es/es2018/types/src/generated/types/UpdateServiceAppointmentAttendeeInputRepresentation.d.ts +38 -0
  20. package/package.json +6 -5
  21. package/sfdc/index.js +1872 -1120
  22. package/src/raml/api.raml +167 -0
  23. package/src/raml/luvio.raml +17 -0
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckConfig as typeCheckConfig$9, StoreKeyMap, createResourceParams as createResourceParams$9 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6, typeCheckConfig as typeCheckConfig$c, StoreKeyMap, createResourceParams as createResourceParams$c } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -91,8 +91,8 @@ function createLink(ref) {
91
91
  };
92
92
  }
93
93
 
94
- const VERSION$p = "745ed19773bc6307c6816a6d100b0cbe";
95
- function validate$t(obj, path = 'GetEngagementChannelTypeResult') {
94
+ const VERSION$v = "745ed19773bc6307c6816a6d100b0cbe";
95
+ function validate$z(obj, path = 'GetEngagementChannelTypeResult') {
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 + '")');
@@ -156,10 +156,10 @@ function validate$t(obj, path = 'GetEngagementChannelTypeResult') {
156
156
  })();
157
157
  return v_error === undefined ? null : v_error;
158
158
  }
159
- const select$y = function GetEngagementChannelTypeResultSelect() {
159
+ const select$H = function GetEngagementChannelTypeResultSelect() {
160
160
  return {
161
161
  kind: 'Fragment',
162
- version: VERSION$p,
162
+ version: VERSION$v,
163
163
  private: [],
164
164
  selections: [
165
165
  {
@@ -197,7 +197,7 @@ const select$y = function GetEngagementChannelTypeResultSelect() {
197
197
  ]
198
198
  };
199
199
  };
200
- function equals$p(existing, incoming) {
200
+ function equals$v(existing, incoming) {
201
201
  const existing_contactPoint = existing.contactPoint;
202
202
  const incoming_contactPoint = incoming.contactPoint;
203
203
  // if at least one of these optionals is defined
@@ -289,8 +289,8 @@ function equals$p(existing, incoming) {
289
289
  return true;
290
290
  }
291
291
 
292
- const VERSION$o = "129c53d5f8fb579d31c255a020838251";
293
- function validate$s(obj, path = 'GetEngagementChannelTypeListResult') {
292
+ const VERSION$u = "129c53d5f8fb579d31c255a020838251";
293
+ function validate$y(obj, path = 'GetEngagementChannelTypeListResult') {
294
294
  const v_error = (() => {
295
295
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
296
296
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -303,7 +303,7 @@ function validate$s(obj, path = 'GetEngagementChannelTypeListResult') {
303
303
  for (let i = 0; i < obj_engagementChannelTypes.length; i++) {
304
304
  const obj_engagementChannelTypes_item = obj_engagementChannelTypes[i];
305
305
  const path_engagementChannelTypes_item = path_engagementChannelTypes + '[' + i + ']';
306
- const referencepath_engagementChannelTypes_itemValidationError = validate$t(obj_engagementChannelTypes_item, path_engagementChannelTypes_item);
306
+ const referencepath_engagementChannelTypes_itemValidationError = validate$z(obj_engagementChannelTypes_item, path_engagementChannelTypes_item);
307
307
  if (referencepath_engagementChannelTypes_itemValidationError !== null) {
308
308
  let message = 'Object doesn\'t match GetEngagementChannelTypeResult (at "' + path_engagementChannelTypes_item + '")\n';
309
309
  message += referencepath_engagementChannelTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -313,11 +313,11 @@ function validate$s(obj, path = 'GetEngagementChannelTypeListResult') {
313
313
  })();
314
314
  return v_error === undefined ? null : v_error;
315
315
  }
316
- const select$x = function GetEngagementChannelTypeListResultSelect() {
317
- const { selections: GetEngagementChannelTypeResult__selections, opaque: GetEngagementChannelTypeResult__opaque, } = select$y();
316
+ const select$G = function GetEngagementChannelTypeListResultSelect() {
317
+ const { selections: GetEngagementChannelTypeResult__selections, opaque: GetEngagementChannelTypeResult__opaque, } = select$H();
318
318
  return {
319
319
  kind: 'Fragment',
320
- version: VERSION$o,
320
+ version: VERSION$u,
321
321
  private: [],
322
322
  selections: [
323
323
  {
@@ -329,11 +329,11 @@ const select$x = function GetEngagementChannelTypeListResultSelect() {
329
329
  ]
330
330
  };
331
331
  };
332
- function equals$o(existing, incoming) {
332
+ function equals$u(existing, incoming) {
333
333
  const existing_engagementChannelTypes = existing.engagementChannelTypes;
334
334
  const incoming_engagementChannelTypes = incoming.engagementChannelTypes;
335
335
  const equals_engagementChannelTypes_items = equalsArray(existing_engagementChannelTypes, incoming_engagementChannelTypes, (existing_engagementChannelTypes_item, incoming_engagementChannelTypes_item) => {
336
- if (!(equals$p(existing_engagementChannelTypes_item, incoming_engagementChannelTypes_item))) {
336
+ if (!(equals$v(existing_engagementChannelTypes_item, incoming_engagementChannelTypes_item))) {
337
337
  return false;
338
338
  }
339
339
  });
@@ -343,15 +343,15 @@ function equals$o(existing, incoming) {
343
343
  return true;
344
344
  }
345
345
 
346
- const VERSION$n = "622654426aa18b7c8846e6d863a5f446";
347
- function validate$r(obj, path = 'GetEngagementChannelTypeOutputRepresentation') {
346
+ const VERSION$t = "622654426aa18b7c8846e6d863a5f446";
347
+ function validate$x(obj, path = 'GetEngagementChannelTypeOutputRepresentation') {
348
348
  const v_error = (() => {
349
349
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
350
350
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
351
351
  }
352
352
  const obj_result = obj.result;
353
353
  const path_result = path + '.result';
354
- const referencepath_resultValidationError = validate$s(obj_result, path_result);
354
+ const referencepath_resultValidationError = validate$y(obj_result, path_result);
355
355
  if (referencepath_resultValidationError !== null) {
356
356
  let message = 'Object doesn\'t match GetEngagementChannelTypeListResult (at "' + path_result + '")\n';
357
357
  message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -360,15 +360,15 @@ function validate$r(obj, path = 'GetEngagementChannelTypeOutputRepresentation')
360
360
  })();
361
361
  return v_error === undefined ? null : v_error;
362
362
  }
363
- const RepresentationType$a = 'GetEngagementChannelTypeOutputRepresentation';
364
- function normalize$a(input, existing, path, luvio, store, timestamp) {
363
+ const RepresentationType$d = 'GetEngagementChannelTypeOutputRepresentation';
364
+ function normalize$d(input, existing, path, luvio, store, timestamp) {
365
365
  return input;
366
366
  }
367
- const select$w = function GetEngagementChannelTypeOutputRepresentationSelect() {
368
- const { selections: GetEngagementChannelTypeListResult__selections, opaque: GetEngagementChannelTypeListResult__opaque, } = select$x();
367
+ const select$F = function GetEngagementChannelTypeOutputRepresentationSelect() {
368
+ const { selections: GetEngagementChannelTypeListResult__selections, opaque: GetEngagementChannelTypeListResult__opaque, } = select$G();
369
369
  return {
370
370
  kind: 'Fragment',
371
- version: VERSION$n,
371
+ version: VERSION$t,
372
372
  private: [],
373
373
  selections: [
374
374
  {
@@ -379,52 +379,52 @@ const select$w = function GetEngagementChannelTypeOutputRepresentationSelect() {
379
379
  ]
380
380
  };
381
381
  };
382
- function equals$n(existing, incoming) {
382
+ function equals$t(existing, incoming) {
383
383
  const existing_result = existing.result;
384
384
  const incoming_result = incoming.result;
385
- if (!(equals$o(existing_result, incoming_result))) {
385
+ if (!(equals$u(existing_result, incoming_result))) {
386
386
  return false;
387
387
  }
388
388
  return true;
389
389
  }
390
- const ingest$a = function GetEngagementChannelTypeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
390
+ const ingest$d = function GetEngagementChannelTypeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
391
391
  if (process.env.NODE_ENV !== 'production') {
392
- const validateError = validate$r(input);
392
+ const validateError = validate$x(input);
393
393
  if (validateError !== null) {
394
394
  throw validateError;
395
395
  }
396
396
  }
397
397
  const key = path.fullPath;
398
398
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
399
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "IndustriesScheduler", VERSION$n, RepresentationType$a, equals$n);
399
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "IndustriesScheduler", VERSION$t, RepresentationType$d, equals$t);
400
400
  return createLink(key);
401
401
  };
402
- function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
402
+ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
403
403
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
404
404
  const rootKey = fullPathFactory();
405
405
  rootKeySet.set(rootKey, {
406
406
  namespace: keyPrefix,
407
- representationName: RepresentationType$a,
407
+ representationName: RepresentationType$d,
408
408
  mergeable: false
409
409
  });
410
410
  }
411
411
 
412
- function select$v(luvio, params) {
413
- return select$w();
412
+ function select$E(luvio, params) {
413
+ return select$F();
414
414
  }
415
- function keyBuilder$f(luvio, params) {
415
+ function keyBuilder$j(luvio, params) {
416
416
  return keyPrefix + '::GetEngagementChannelTypeOutputRepresentation:(' + 'workTypeGroupIds:' + params.queryParams.workTypeGroupIds + ',' + 'workTypeIds:' + params.queryParams.workTypeIds + ')';
417
417
  }
418
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
419
- getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
418
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
419
+ getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
420
420
  }
421
- function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
421
+ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
422
422
  const { body } = response;
423
- const key = keyBuilder$f(luvio, resourceParams);
424
- luvio.storeIngest(key, ingest$a, body);
423
+ const key = keyBuilder$j(luvio, resourceParams);
424
+ luvio.storeIngest(key, ingest$d, body);
425
425
  const snapshot = luvio.storeLookup({
426
426
  recordId: key,
427
- node: select$v(),
427
+ node: select$E(),
428
428
  variables: {},
429
429
  }, snapshotRefresh);
430
430
  if (process.env.NODE_ENV !== 'production') {
@@ -435,13 +435,13 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
435
435
  deepFreeze(snapshot.data);
436
436
  return snapshot;
437
437
  }
438
- function ingestError$4(luvio, params, error, snapshotRefresh) {
439
- const key = keyBuilder$f(luvio, params);
438
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
439
+ const key = keyBuilder$j(luvio, params);
440
440
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
441
441
  luvio.storeIngestError(key, errorSnapshot);
442
442
  return errorSnapshot;
443
443
  }
444
- function createResourceRequest$8(config) {
444
+ function createResourceRequest$b(config) {
445
445
  const headers = {};
446
446
  return {
447
447
  baseUri: '/services/data/v61.0',
@@ -455,95 +455,95 @@ function createResourceRequest$8(config) {
455
455
  };
456
456
  }
457
457
 
458
- const adapterName$8 = 'getEngagementChannelTypes';
458
+ const adapterName$b = 'getEngagementChannelTypes';
459
459
  const getEngagementChannelTypes_ConfigPropertyMetadata = [
460
460
  generateParamConfigMetadata('workTypeGroupIds', false, 1 /* QueryParameter */, 0 /* String */, true),
461
461
  generateParamConfigMetadata('workTypeIds', false, 1 /* QueryParameter */, 0 /* String */, true),
462
462
  ];
463
- const getEngagementChannelTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getEngagementChannelTypes_ConfigPropertyMetadata);
464
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(getEngagementChannelTypes_ConfigPropertyMetadata);
465
- function keyBuilder$e(luvio, config) {
466
- const resourceParams = createResourceParams$8(config);
467
- return keyBuilder$f(luvio, resourceParams);
463
+ const getEngagementChannelTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getEngagementChannelTypes_ConfigPropertyMetadata);
464
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(getEngagementChannelTypes_ConfigPropertyMetadata);
465
+ function keyBuilder$i(luvio, config) {
466
+ const resourceParams = createResourceParams$b(config);
467
+ return keyBuilder$j(luvio, resourceParams);
468
468
  }
469
- function typeCheckConfig$8(untrustedConfig) {
469
+ function typeCheckConfig$b(untrustedConfig) {
470
470
  const config = {};
471
- typeCheckConfig$9(untrustedConfig, config, getEngagementChannelTypes_ConfigPropertyMetadata);
471
+ typeCheckConfig$c(untrustedConfig, config, getEngagementChannelTypes_ConfigPropertyMetadata);
472
472
  return config;
473
473
  }
474
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
474
+ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
475
475
  if (!untrustedIsObject(untrustedConfig)) {
476
476
  return null;
477
477
  }
478
478
  if (process.env.NODE_ENV !== 'production') {
479
479
  validateConfig(untrustedConfig, configPropertyNames);
480
480
  }
481
- const config = typeCheckConfig$8(untrustedConfig);
481
+ const config = typeCheckConfig$b(untrustedConfig);
482
482
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
483
483
  return null;
484
484
  }
485
485
  return config;
486
486
  }
487
- function adapterFragment$4(luvio, config) {
488
- createResourceParams$8(config);
489
- return select$v();
487
+ function adapterFragment$5(luvio, config) {
488
+ createResourceParams$b(config);
489
+ return select$E();
490
490
  }
491
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
492
- const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
491
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
492
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
493
493
  config,
494
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
494
+ resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
495
495
  });
496
496
  return luvio.storeBroadcast().then(() => snapshot);
497
497
  }
498
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
499
- const snapshot = ingestError$4(luvio, resourceParams, response, {
498
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
499
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
500
500
  config,
501
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
501
+ resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
502
502
  });
503
503
  return luvio.storeBroadcast().then(() => snapshot);
504
504
  }
505
- function buildNetworkSnapshot$8(luvio, config, options) {
506
- const resourceParams = createResourceParams$8(config);
507
- const request = createResourceRequest$8(resourceParams);
505
+ function buildNetworkSnapshot$b(luvio, config, options) {
506
+ const resourceParams = createResourceParams$b(config);
507
+ const request = createResourceRequest$b(resourceParams);
508
508
  return luvio.dispatchResourceRequest(request, options)
509
509
  .then((response) => {
510
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
510
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
511
511
  const cache = new StoreKeyMap();
512
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
512
+ getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
513
513
  return cache;
514
514
  });
515
515
  }, (response) => {
516
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
516
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
517
517
  });
518
518
  }
519
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
520
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
519
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
520
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
521
521
  }
522
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
522
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
523
523
  const { luvio, config } = context;
524
524
  const selector = {
525
- recordId: keyBuilder$e(luvio, config),
526
- node: adapterFragment$4(luvio, config),
525
+ recordId: keyBuilder$i(luvio, config),
526
+ node: adapterFragment$5(luvio, config),
527
527
  variables: {},
528
528
  };
529
529
  const cacheSnapshot = storeLookup(selector, {
530
530
  config,
531
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
531
+ resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
532
532
  });
533
533
  return cacheSnapshot;
534
534
  }
535
535
  const getEngagementChannelTypesAdapterFactory = (luvio) => function IndustriesScheduler__getEngagementChannelTypes(untrustedConfig, requestContext) {
536
- const config = validateAdapterConfig$8(untrustedConfig, getEngagementChannelTypes_ConfigPropertyNames);
536
+ const config = validateAdapterConfig$b(untrustedConfig, getEngagementChannelTypes_ConfigPropertyNames);
537
537
  // Invalid or incomplete config
538
538
  if (config === null) {
539
539
  return null;
540
540
  }
541
541
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
542
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
542
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
543
543
  };
544
544
 
545
- const VERSION$m = "235368820a5a56f542c7f4ecb4e2141c";
546
- function validate$q(obj, path = 'WaitlistServiceResourceWithWorkTypes') {
545
+ const VERSION$s = "235368820a5a56f542c7f4ecb4e2141c";
546
+ function validate$w(obj, path = 'WaitlistServiceResourceWithWorkTypes') {
547
547
  const v_error = (() => {
548
548
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
549
549
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -578,10 +578,10 @@ function validate$q(obj, path = 'WaitlistServiceResourceWithWorkTypes') {
578
578
  })();
579
579
  return v_error === undefined ? null : v_error;
580
580
  }
581
- const select$u = function WaitlistServiceResourceWithWorkTypesSelect() {
581
+ const select$D = function WaitlistServiceResourceWithWorkTypesSelect() {
582
582
  return {
583
583
  kind: 'Fragment',
584
- version: VERSION$m,
584
+ version: VERSION$s,
585
585
  private: [],
586
586
  selections: [
587
587
  {
@@ -604,7 +604,7 @@ const select$u = function WaitlistServiceResourceWithWorkTypesSelect() {
604
604
  ]
605
605
  };
606
606
  };
607
- function equals$m(existing, incoming) {
607
+ function equals$s(existing, incoming) {
608
608
  const existing_id = existing.id;
609
609
  const incoming_id = incoming.id;
610
610
  if (!(existing_id === incoming_id)) {
@@ -633,8 +633,8 @@ function equals$m(existing, incoming) {
633
633
  return true;
634
634
  }
635
635
 
636
- const VERSION$l = "9d573b064500fae0b4205231dae5af50";
637
- function validate$p(obj, path = 'WaitlistWorkTypeGroup') {
636
+ const VERSION$r = "9d573b064500fae0b4205231dae5af50";
637
+ function validate$v(obj, path = 'WaitlistWorkTypeGroup') {
638
638
  const v_error = (() => {
639
639
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
640
640
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -656,10 +656,10 @@ function validate$p(obj, path = 'WaitlistWorkTypeGroup') {
656
656
  })();
657
657
  return v_error === undefined ? null : v_error;
658
658
  }
659
- const select$t = function WaitlistWorkTypeGroupSelect() {
659
+ const select$C = function WaitlistWorkTypeGroupSelect() {
660
660
  return {
661
661
  kind: 'Fragment',
662
- version: VERSION$l,
662
+ version: VERSION$r,
663
663
  private: [],
664
664
  selections: [
665
665
  {
@@ -675,7 +675,7 @@ const select$t = function WaitlistWorkTypeGroupSelect() {
675
675
  ]
676
676
  };
677
677
  };
678
- function equals$l(existing, incoming) {
678
+ function equals$r(existing, incoming) {
679
679
  const existing_id = existing.id;
680
680
  const incoming_id = incoming.id;
681
681
  // if at least one of these optionals is defined
@@ -705,8 +705,8 @@ function equals$l(existing, incoming) {
705
705
  return true;
706
706
  }
707
707
 
708
- const VERSION$k = "30392f4c9c348c3e9081046d48f7bd4b";
709
- function validate$o(obj, path = 'GetNextWaitlistParticipantResult') {
708
+ const VERSION$q = "30392f4c9c348c3e9081046d48f7bd4b";
709
+ function validate$u(obj, path = 'GetNextWaitlistParticipantResult') {
710
710
  const v_error = (() => {
711
711
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
712
712
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -720,7 +720,7 @@ function validate$o(obj, path = 'GetNextWaitlistParticipantResult') {
720
720
  }
721
721
  const obj_waitlistServiceResource = obj.waitlistServiceResource;
722
722
  const path_waitlistServiceResource = path + '.waitlistServiceResource';
723
- const referencepath_waitlistServiceResourceValidationError = validate$q(obj_waitlistServiceResource, path_waitlistServiceResource);
723
+ const referencepath_waitlistServiceResourceValidationError = validate$w(obj_waitlistServiceResource, path_waitlistServiceResource);
724
724
  if (referencepath_waitlistServiceResourceValidationError !== null) {
725
725
  let message = 'Object doesn\'t match WaitlistServiceResourceWithWorkTypes (at "' + path_waitlistServiceResource + '")\n';
726
726
  message += referencepath_waitlistServiceResourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -735,7 +735,7 @@ function validate$o(obj, path = 'GetNextWaitlistParticipantResult') {
735
735
  for (let i = 0; i < obj_workTypeGroups.length; i++) {
736
736
  const obj_workTypeGroups_item = obj_workTypeGroups[i];
737
737
  const path_workTypeGroups_item = path_workTypeGroups + '[' + i + ']';
738
- const referencepath_workTypeGroups_itemValidationError = validate$p(obj_workTypeGroups_item, path_workTypeGroups_item);
738
+ const referencepath_workTypeGroups_itemValidationError = validate$v(obj_workTypeGroups_item, path_workTypeGroups_item);
739
739
  if (referencepath_workTypeGroups_itemValidationError !== null) {
740
740
  let message = 'Object doesn\'t match WaitlistWorkTypeGroup (at "' + path_workTypeGroups_item + '")\n';
741
741
  message += referencepath_workTypeGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -753,12 +753,12 @@ function validate$o(obj, path = 'GetNextWaitlistParticipantResult') {
753
753
  })();
754
754
  return v_error === undefined ? null : v_error;
755
755
  }
756
- const select$s = function GetNextWaitlistParticipantResultSelect() {
757
- const { selections: WaitlistServiceResourceWithWorkTypes__selections, opaque: WaitlistServiceResourceWithWorkTypes__opaque, } = select$u();
758
- const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$t();
756
+ const select$B = function GetNextWaitlistParticipantResultSelect() {
757
+ const { selections: WaitlistServiceResourceWithWorkTypes__selections, opaque: WaitlistServiceResourceWithWorkTypes__opaque, } = select$D();
758
+ const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$C();
759
759
  return {
760
760
  kind: 'Fragment',
761
- version: VERSION$k,
761
+ version: VERSION$q,
762
762
  private: [],
763
763
  selections: [
764
764
  {
@@ -786,7 +786,7 @@ const select$s = function GetNextWaitlistParticipantResultSelect() {
786
786
  ]
787
787
  };
788
788
  };
789
- function equals$k(existing, incoming) {
789
+ function equals$q(existing, incoming) {
790
790
  const existing_waitlistParticipantId = existing.waitlistParticipantId;
791
791
  const incoming_waitlistParticipantId = incoming.waitlistParticipantId;
792
792
  // if at least one of these optionals is defined
@@ -815,7 +815,7 @@ function equals$k(existing, incoming) {
815
815
  }
816
816
  const existing_waitlistServiceResource = existing.waitlistServiceResource;
817
817
  const incoming_waitlistServiceResource = incoming.waitlistServiceResource;
818
- if (!(equals$m(existing_waitlistServiceResource, incoming_waitlistServiceResource))) {
818
+ if (!(equals$s(existing_waitlistServiceResource, incoming_waitlistServiceResource))) {
819
819
  return false;
820
820
  }
821
821
  const existing_workTypeGroups = existing.workTypeGroups;
@@ -828,7 +828,7 @@ function equals$k(existing, incoming) {
828
828
  return false;
829
829
  }
830
830
  const equals_workTypeGroups_items = equalsArray(existing_workTypeGroups, incoming_workTypeGroups, (existing_workTypeGroups_item, incoming_workTypeGroups_item) => {
831
- if (!(equals$l(existing_workTypeGroups_item, incoming_workTypeGroups_item))) {
831
+ if (!(equals$r(existing_workTypeGroups_item, incoming_workTypeGroups_item))) {
832
832
  return false;
833
833
  }
834
834
  });
@@ -839,15 +839,15 @@ function equals$k(existing, incoming) {
839
839
  return true;
840
840
  }
841
841
 
842
- const VERSION$j = "fdb3c9715f03c84992830bbcea4fb245";
843
- function validate$n(obj, path = 'GetNextWaitlistParticipantOutputRepresentation') {
842
+ const VERSION$p = "fdb3c9715f03c84992830bbcea4fb245";
843
+ function validate$t(obj, path = 'GetNextWaitlistParticipantOutputRepresentation') {
844
844
  const v_error = (() => {
845
845
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
846
846
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
847
847
  }
848
848
  const obj_result = obj.result;
849
849
  const path_result = path + '.result';
850
- const referencepath_resultValidationError = validate$o(obj_result, path_result);
850
+ const referencepath_resultValidationError = validate$u(obj_result, path_result);
851
851
  if (referencepath_resultValidationError !== null) {
852
852
  let message = 'Object doesn\'t match GetNextWaitlistParticipantResult (at "' + path_result + '")\n';
853
853
  message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -856,15 +856,15 @@ function validate$n(obj, path = 'GetNextWaitlistParticipantOutputRepresentation'
856
856
  })();
857
857
  return v_error === undefined ? null : v_error;
858
858
  }
859
- const RepresentationType$9 = 'GetNextWaitlistParticipantOutputRepresentation';
860
- function normalize$9(input, existing, path, luvio, store, timestamp) {
859
+ const RepresentationType$c = 'GetNextWaitlistParticipantOutputRepresentation';
860
+ function normalize$c(input, existing, path, luvio, store, timestamp) {
861
861
  return input;
862
862
  }
863
- const select$r = function GetNextWaitlistParticipantOutputRepresentationSelect() {
864
- const { selections: GetNextWaitlistParticipantResult__selections, opaque: GetNextWaitlistParticipantResult__opaque, } = select$s();
863
+ const select$A = function GetNextWaitlistParticipantOutputRepresentationSelect() {
864
+ const { selections: GetNextWaitlistParticipantResult__selections, opaque: GetNextWaitlistParticipantResult__opaque, } = select$B();
865
865
  return {
866
866
  kind: 'Fragment',
867
- version: VERSION$j,
867
+ version: VERSION$p,
868
868
  private: [],
869
869
  selections: [
870
870
  {
@@ -875,52 +875,52 @@ const select$r = function GetNextWaitlistParticipantOutputRepresentationSelect()
875
875
  ]
876
876
  };
877
877
  };
878
- function equals$j(existing, incoming) {
878
+ function equals$p(existing, incoming) {
879
879
  const existing_result = existing.result;
880
880
  const incoming_result = incoming.result;
881
- if (!(equals$k(existing_result, incoming_result))) {
881
+ if (!(equals$q(existing_result, incoming_result))) {
882
882
  return false;
883
883
  }
884
884
  return true;
885
885
  }
886
- const ingest$9 = function GetNextWaitlistParticipantOutputRepresentationIngest(input, path, luvio, store, timestamp) {
886
+ const ingest$c = function GetNextWaitlistParticipantOutputRepresentationIngest(input, path, luvio, store, timestamp) {
887
887
  if (process.env.NODE_ENV !== 'production') {
888
- const validateError = validate$n(input);
888
+ const validateError = validate$t(input);
889
889
  if (validateError !== null) {
890
890
  throw validateError;
891
891
  }
892
892
  }
893
893
  const key = path.fullPath;
894
894
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
895
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "IndustriesScheduler", VERSION$j, RepresentationType$9, equals$j);
895
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "IndustriesScheduler", VERSION$p, RepresentationType$c, equals$p);
896
896
  return createLink(key);
897
897
  };
898
- function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
898
+ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
899
899
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
900
900
  const rootKey = fullPathFactory();
901
901
  rootKeySet.set(rootKey, {
902
902
  namespace: keyPrefix,
903
- representationName: RepresentationType$9,
903
+ representationName: RepresentationType$c,
904
904
  mergeable: false
905
905
  });
906
906
  }
907
907
 
908
- function select$q(luvio, params) {
909
- return select$r();
908
+ function select$z(luvio, params) {
909
+ return select$A();
910
910
  }
911
- function keyBuilder$d(luvio, params) {
911
+ function keyBuilder$h(luvio, params) {
912
912
  return keyPrefix + '::GetNextWaitlistParticipantOutputRepresentation:(' + 'userId:' + params.queryParams.userId + ')';
913
913
  }
914
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
915
- getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
914
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
915
+ getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$h(luvio, resourceParams));
916
916
  }
917
- function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
917
+ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
918
918
  const { body } = response;
919
- const key = keyBuilder$d(luvio, resourceParams);
920
- luvio.storeIngest(key, ingest$9, body);
919
+ const key = keyBuilder$h(luvio, resourceParams);
920
+ luvio.storeIngest(key, ingest$c, body);
921
921
  const snapshot = luvio.storeLookup({
922
922
  recordId: key,
923
- node: select$q(),
923
+ node: select$z(),
924
924
  variables: {},
925
925
  }, snapshotRefresh);
926
926
  if (process.env.NODE_ENV !== 'production') {
@@ -931,13 +931,13 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
931
931
  deepFreeze(snapshot.data);
932
932
  return snapshot;
933
933
  }
934
- function ingestError$3(luvio, params, error, snapshotRefresh) {
935
- const key = keyBuilder$d(luvio, params);
934
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
935
+ const key = keyBuilder$h(luvio, params);
936
936
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
937
937
  luvio.storeIngestError(key, errorSnapshot);
938
938
  return errorSnapshot;
939
939
  }
940
- function createResourceRequest$7(config) {
940
+ function createResourceRequest$a(config) {
941
941
  const headers = {};
942
942
  return {
943
943
  baseUri: '/services/data/v61.0',
@@ -951,94 +951,94 @@ function createResourceRequest$7(config) {
951
951
  };
952
952
  }
953
953
 
954
- const adapterName$7 = 'getNextWaitlistParticipant';
954
+ const adapterName$a = 'getNextWaitlistParticipant';
955
955
  const getNextWaitlistParticipant_ConfigPropertyMetadata = [
956
956
  generateParamConfigMetadata('userId', false, 1 /* QueryParameter */, 0 /* String */),
957
957
  ];
958
- const getNextWaitlistParticipant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getNextWaitlistParticipant_ConfigPropertyMetadata);
959
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(getNextWaitlistParticipant_ConfigPropertyMetadata);
960
- function keyBuilder$c(luvio, config) {
961
- const resourceParams = createResourceParams$7(config);
962
- return keyBuilder$d(luvio, resourceParams);
958
+ const getNextWaitlistParticipant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getNextWaitlistParticipant_ConfigPropertyMetadata);
959
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(getNextWaitlistParticipant_ConfigPropertyMetadata);
960
+ function keyBuilder$g(luvio, config) {
961
+ const resourceParams = createResourceParams$a(config);
962
+ return keyBuilder$h(luvio, resourceParams);
963
963
  }
964
- function typeCheckConfig$7(untrustedConfig) {
964
+ function typeCheckConfig$a(untrustedConfig) {
965
965
  const config = {};
966
- typeCheckConfig$9(untrustedConfig, config, getNextWaitlistParticipant_ConfigPropertyMetadata);
966
+ typeCheckConfig$c(untrustedConfig, config, getNextWaitlistParticipant_ConfigPropertyMetadata);
967
967
  return config;
968
968
  }
969
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
969
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
970
970
  if (!untrustedIsObject(untrustedConfig)) {
971
971
  return null;
972
972
  }
973
973
  if (process.env.NODE_ENV !== 'production') {
974
974
  validateConfig(untrustedConfig, configPropertyNames);
975
975
  }
976
- const config = typeCheckConfig$7(untrustedConfig);
976
+ const config = typeCheckConfig$a(untrustedConfig);
977
977
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
978
978
  return null;
979
979
  }
980
980
  return config;
981
981
  }
982
- function adapterFragment$3(luvio, config) {
983
- createResourceParams$7(config);
984
- return select$q();
982
+ function adapterFragment$4(luvio, config) {
983
+ createResourceParams$a(config);
984
+ return select$z();
985
985
  }
986
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
987
- const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
986
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
987
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
988
988
  config,
989
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
989
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
990
990
  });
991
991
  return luvio.storeBroadcast().then(() => snapshot);
992
992
  }
993
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
994
- const snapshot = ingestError$3(luvio, resourceParams, response, {
993
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
994
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
995
995
  config,
996
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
996
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
997
997
  });
998
998
  return luvio.storeBroadcast().then(() => snapshot);
999
999
  }
1000
- function buildNetworkSnapshot$7(luvio, config, options) {
1001
- const resourceParams = createResourceParams$7(config);
1002
- const request = createResourceRequest$7(resourceParams);
1000
+ function buildNetworkSnapshot$a(luvio, config, options) {
1001
+ const resourceParams = createResourceParams$a(config);
1002
+ const request = createResourceRequest$a(resourceParams);
1003
1003
  return luvio.dispatchResourceRequest(request, options)
1004
1004
  .then((response) => {
1005
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
1005
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
1006
1006
  const cache = new StoreKeyMap();
1007
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1007
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
1008
1008
  return cache;
1009
1009
  });
1010
1010
  }, (response) => {
1011
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
1011
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
1012
1012
  });
1013
1013
  }
1014
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
1015
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
1014
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
1015
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
1016
1016
  }
1017
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
1017
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
1018
1018
  const { luvio, config } = context;
1019
1019
  const selector = {
1020
- recordId: keyBuilder$c(luvio, config),
1021
- node: adapterFragment$3(luvio, config),
1020
+ recordId: keyBuilder$g(luvio, config),
1021
+ node: adapterFragment$4(luvio, config),
1022
1022
  variables: {},
1023
1023
  };
1024
1024
  const cacheSnapshot = storeLookup(selector, {
1025
1025
  config,
1026
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1026
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
1027
1027
  });
1028
1028
  return cacheSnapshot;
1029
1029
  }
1030
1030
  const getNextWaitlistParticipantAdapterFactory = (luvio) => function IndustriesScheduler__getNextWaitlistParticipant(untrustedConfig, requestContext) {
1031
- const config = validateAdapterConfig$7(untrustedConfig, getNextWaitlistParticipant_ConfigPropertyNames);
1031
+ const config = validateAdapterConfig$a(untrustedConfig, getNextWaitlistParticipant_ConfigPropertyNames);
1032
1032
  // Invalid or incomplete config
1033
1033
  if (config === null) {
1034
1034
  return null;
1035
1035
  }
1036
1036
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1037
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
1037
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
1038
1038
  };
1039
1039
 
1040
- const VERSION$i = "2ef071c700b84cba91e63e981e2eede7";
1041
- function validate$m(obj, path = 'WaitlistServiceResource') {
1040
+ const VERSION$o = "2ef071c700b84cba91e63e981e2eede7";
1041
+ function validate$s(obj, path = 'WaitlistServiceResource') {
1042
1042
  const v_error = (() => {
1043
1043
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1044
1044
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1060,10 +1060,10 @@ function validate$m(obj, path = 'WaitlistServiceResource') {
1060
1060
  })();
1061
1061
  return v_error === undefined ? null : v_error;
1062
1062
  }
1063
- const select$p = function WaitlistServiceResourceSelect() {
1063
+ const select$y = function WaitlistServiceResourceSelect() {
1064
1064
  return {
1065
1065
  kind: 'Fragment',
1066
- version: VERSION$i,
1066
+ version: VERSION$o,
1067
1067
  private: [],
1068
1068
  selections: [
1069
1069
  {
@@ -1079,7 +1079,7 @@ const select$p = function WaitlistServiceResourceSelect() {
1079
1079
  ]
1080
1080
  };
1081
1081
  };
1082
- function equals$i(existing, incoming) {
1082
+ function equals$o(existing, incoming) {
1083
1083
  const existing_id = existing.id;
1084
1084
  const incoming_id = incoming.id;
1085
1085
  // if at least one of these optionals is defined
@@ -1109,8 +1109,8 @@ function equals$i(existing, incoming) {
1109
1109
  return true;
1110
1110
  }
1111
1111
 
1112
- const VERSION$h = "94839138e6c7630a1a31cfdb12c02cf8";
1113
- function validate$l(obj, path = 'ParticipantRecentInteractionsResult') {
1112
+ const VERSION$n = "94839138e6c7630a1a31cfdb12c02cf8";
1113
+ function validate$r(obj, path = 'ParticipantRecentInteractionsResult') {
1114
1114
  const v_error = (() => {
1115
1115
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1116
1116
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1123,7 +1123,7 @@ function validate$l(obj, path = 'ParticipantRecentInteractionsResult') {
1123
1123
  for (let i = 0; i < obj_serviceResources.length; i++) {
1124
1124
  const obj_serviceResources_item = obj_serviceResources[i];
1125
1125
  const path_serviceResources_item = path_serviceResources + '[' + i + ']';
1126
- const referencepath_serviceResources_itemValidationError = validate$m(obj_serviceResources_item, path_serviceResources_item);
1126
+ const referencepath_serviceResources_itemValidationError = validate$s(obj_serviceResources_item, path_serviceResources_item);
1127
1127
  if (referencepath_serviceResources_itemValidationError !== null) {
1128
1128
  let message = 'Object doesn\'t match WaitlistServiceResource (at "' + path_serviceResources_item + '")\n';
1129
1129
  message += referencepath_serviceResources_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1133,11 +1133,11 @@ function validate$l(obj, path = 'ParticipantRecentInteractionsResult') {
1133
1133
  })();
1134
1134
  return v_error === undefined ? null : v_error;
1135
1135
  }
1136
- const select$o = function ParticipantRecentInteractionsResultSelect() {
1137
- const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$p();
1136
+ const select$x = function ParticipantRecentInteractionsResultSelect() {
1137
+ const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$y();
1138
1138
  return {
1139
1139
  kind: 'Fragment',
1140
- version: VERSION$h,
1140
+ version: VERSION$n,
1141
1141
  private: [],
1142
1142
  selections: [
1143
1143
  {
@@ -1149,11 +1149,11 @@ const select$o = function ParticipantRecentInteractionsResultSelect() {
1149
1149
  ]
1150
1150
  };
1151
1151
  };
1152
- function equals$h(existing, incoming) {
1152
+ function equals$n(existing, incoming) {
1153
1153
  const existing_serviceResources = existing.serviceResources;
1154
1154
  const incoming_serviceResources = incoming.serviceResources;
1155
1155
  const equals_serviceResources_items = equalsArray(existing_serviceResources, incoming_serviceResources, (existing_serviceResources_item, incoming_serviceResources_item) => {
1156
- if (!(equals$i(existing_serviceResources_item, incoming_serviceResources_item))) {
1156
+ if (!(equals$o(existing_serviceResources_item, incoming_serviceResources_item))) {
1157
1157
  return false;
1158
1158
  }
1159
1159
  });
@@ -1163,15 +1163,15 @@ function equals$h(existing, incoming) {
1163
1163
  return true;
1164
1164
  }
1165
1165
 
1166
- const VERSION$g = "24dc5bcc8caeafb90382a21924b4dda8";
1167
- function validate$k(obj, path = 'ParticipantRecentInteractionsOutputRepresentation') {
1166
+ const VERSION$m = "24dc5bcc8caeafb90382a21924b4dda8";
1167
+ function validate$q(obj, path = 'ParticipantRecentInteractionsOutputRepresentation') {
1168
1168
  const v_error = (() => {
1169
1169
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1170
1170
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1171
1171
  }
1172
1172
  const obj_result = obj.result;
1173
1173
  const path_result = path + '.result';
1174
- const referencepath_resultValidationError = validate$l(obj_result, path_result);
1174
+ const referencepath_resultValidationError = validate$r(obj_result, path_result);
1175
1175
  if (referencepath_resultValidationError !== null) {
1176
1176
  let message = 'Object doesn\'t match ParticipantRecentInteractionsResult (at "' + path_result + '")\n';
1177
1177
  message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1180,15 +1180,15 @@ function validate$k(obj, path = 'ParticipantRecentInteractionsOutputRepresentati
1180
1180
  })();
1181
1181
  return v_error === undefined ? null : v_error;
1182
1182
  }
1183
- const RepresentationType$8 = 'ParticipantRecentInteractionsOutputRepresentation';
1184
- function normalize$8(input, existing, path, luvio, store, timestamp) {
1183
+ const RepresentationType$b = 'ParticipantRecentInteractionsOutputRepresentation';
1184
+ function normalize$b(input, existing, path, luvio, store, timestamp) {
1185
1185
  return input;
1186
1186
  }
1187
- const select$n = function ParticipantRecentInteractionsOutputRepresentationSelect() {
1188
- const { selections: ParticipantRecentInteractionsResult__selections, opaque: ParticipantRecentInteractionsResult__opaque, } = select$o();
1187
+ const select$w = function ParticipantRecentInteractionsOutputRepresentationSelect() {
1188
+ const { selections: ParticipantRecentInteractionsResult__selections, opaque: ParticipantRecentInteractionsResult__opaque, } = select$x();
1189
1189
  return {
1190
1190
  kind: 'Fragment',
1191
- version: VERSION$g,
1191
+ version: VERSION$m,
1192
1192
  private: [],
1193
1193
  selections: [
1194
1194
  {
@@ -1199,52 +1199,52 @@ const select$n = function ParticipantRecentInteractionsOutputRepresentationSelec
1199
1199
  ]
1200
1200
  };
1201
1201
  };
1202
- function equals$g(existing, incoming) {
1202
+ function equals$m(existing, incoming) {
1203
1203
  const existing_result = existing.result;
1204
1204
  const incoming_result = incoming.result;
1205
- if (!(equals$h(existing_result, incoming_result))) {
1205
+ if (!(equals$n(existing_result, incoming_result))) {
1206
1206
  return false;
1207
1207
  }
1208
1208
  return true;
1209
1209
  }
1210
- const ingest$8 = function ParticipantRecentInteractionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1210
+ const ingest$b = function ParticipantRecentInteractionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1211
1211
  if (process.env.NODE_ENV !== 'production') {
1212
- const validateError = validate$k(input);
1212
+ const validateError = validate$q(input);
1213
1213
  if (validateError !== null) {
1214
1214
  throw validateError;
1215
1215
  }
1216
1216
  }
1217
1217
  const key = path.fullPath;
1218
1218
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1219
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "IndustriesScheduler", VERSION$g, RepresentationType$8, equals$g);
1219
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "IndustriesScheduler", VERSION$m, RepresentationType$b, equals$m);
1220
1220
  return createLink(key);
1221
1221
  };
1222
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1222
+ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
1223
1223
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1224
1224
  const rootKey = fullPathFactory();
1225
1225
  rootKeySet.set(rootKey, {
1226
1226
  namespace: keyPrefix,
1227
- representationName: RepresentationType$8,
1227
+ representationName: RepresentationType$b,
1228
1228
  mergeable: false
1229
1229
  });
1230
1230
  }
1231
1231
 
1232
- function select$m(luvio, params) {
1233
- return select$n();
1232
+ function select$v(luvio, params) {
1233
+ return select$w();
1234
1234
  }
1235
- function keyBuilder$b(luvio, params) {
1235
+ function keyBuilder$f(luvio, params) {
1236
1236
  return keyPrefix + '::ParticipantRecentInteractionsOutputRepresentation:(' + 'filterByResourceIds:' + params.queryParams.filterByResourceIds + ',' + 'participantId:' + params.queryParams.participantId + ',' + 'territoryId:' + params.queryParams.territoryId + ')';
1237
1237
  }
1238
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1239
- getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
1238
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1239
+ getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
1240
1240
  }
1241
- function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1241
+ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
1242
1242
  const { body } = response;
1243
- const key = keyBuilder$b(luvio, resourceParams);
1244
- luvio.storeIngest(key, ingest$8, body);
1243
+ const key = keyBuilder$f(luvio, resourceParams);
1244
+ luvio.storeIngest(key, ingest$b, body);
1245
1245
  const snapshot = luvio.storeLookup({
1246
1246
  recordId: key,
1247
- node: select$m(),
1247
+ node: select$v(),
1248
1248
  variables: {},
1249
1249
  }, snapshotRefresh);
1250
1250
  if (process.env.NODE_ENV !== 'production') {
@@ -1255,13 +1255,13 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1255
1255
  deepFreeze(snapshot.data);
1256
1256
  return snapshot;
1257
1257
  }
1258
- function ingestError$2(luvio, params, error, snapshotRefresh) {
1259
- const key = keyBuilder$b(luvio, params);
1258
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
1259
+ const key = keyBuilder$f(luvio, params);
1260
1260
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1261
1261
  luvio.storeIngestError(key, errorSnapshot);
1262
1262
  return errorSnapshot;
1263
1263
  }
1264
- function createResourceRequest$6(config) {
1264
+ function createResourceRequest$9(config) {
1265
1265
  const headers = {};
1266
1266
  return {
1267
1267
  baseUri: '/services/data/v61.0',
@@ -1275,195 +1275,608 @@ function createResourceRequest$6(config) {
1275
1275
  };
1276
1276
  }
1277
1277
 
1278
- const adapterName$6 = 'getParticipantRecentInteractions';
1278
+ const adapterName$9 = 'getParticipantRecentInteractions';
1279
1279
  const getParticipantRecentInteractions_ConfigPropertyMetadata = [
1280
1280
  generateParamConfigMetadata('filterByResourceIds', false, 1 /* QueryParameter */, 0 /* String */, true),
1281
1281
  generateParamConfigMetadata('participantId', false, 1 /* QueryParameter */, 0 /* String */),
1282
1282
  generateParamConfigMetadata('territoryId', false, 1 /* QueryParameter */, 0 /* String */),
1283
1283
  ];
1284
- const getParticipantRecentInteractions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getParticipantRecentInteractions_ConfigPropertyMetadata);
1285
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(getParticipantRecentInteractions_ConfigPropertyMetadata);
1286
- function keyBuilder$a(luvio, config) {
1287
- const resourceParams = createResourceParams$6(config);
1288
- return keyBuilder$b(luvio, resourceParams);
1284
+ const getParticipantRecentInteractions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getParticipantRecentInteractions_ConfigPropertyMetadata);
1285
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(getParticipantRecentInteractions_ConfigPropertyMetadata);
1286
+ function keyBuilder$e(luvio, config) {
1287
+ const resourceParams = createResourceParams$9(config);
1288
+ return keyBuilder$f(luvio, resourceParams);
1289
1289
  }
1290
- function typeCheckConfig$6(untrustedConfig) {
1290
+ function typeCheckConfig$9(untrustedConfig) {
1291
1291
  const config = {};
1292
- typeCheckConfig$9(untrustedConfig, config, getParticipantRecentInteractions_ConfigPropertyMetadata);
1292
+ typeCheckConfig$c(untrustedConfig, config, getParticipantRecentInteractions_ConfigPropertyMetadata);
1293
1293
  return config;
1294
1294
  }
1295
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1295
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1296
1296
  if (!untrustedIsObject(untrustedConfig)) {
1297
1297
  return null;
1298
1298
  }
1299
1299
  if (process.env.NODE_ENV !== 'production') {
1300
1300
  validateConfig(untrustedConfig, configPropertyNames);
1301
1301
  }
1302
- const config = typeCheckConfig$6(untrustedConfig);
1302
+ const config = typeCheckConfig$9(untrustedConfig);
1303
1303
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1304
1304
  return null;
1305
1305
  }
1306
1306
  return config;
1307
1307
  }
1308
- function adapterFragment$2(luvio, config) {
1309
- createResourceParams$6(config);
1310
- return select$m();
1308
+ function adapterFragment$3(luvio, config) {
1309
+ createResourceParams$9(config);
1310
+ return select$v();
1311
1311
  }
1312
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
1313
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
1312
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
1313
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
1314
1314
  config,
1315
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1315
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1316
1316
  });
1317
1317
  return luvio.storeBroadcast().then(() => snapshot);
1318
1318
  }
1319
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
1320
- const snapshot = ingestError$2(luvio, resourceParams, response, {
1319
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
1320
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
1321
1321
  config,
1322
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1322
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1323
1323
  });
1324
1324
  return luvio.storeBroadcast().then(() => snapshot);
1325
1325
  }
1326
- function buildNetworkSnapshot$6(luvio, config, options) {
1327
- const resourceParams = createResourceParams$6(config);
1328
- const request = createResourceRequest$6(resourceParams);
1326
+ function buildNetworkSnapshot$9(luvio, config, options) {
1327
+ const resourceParams = createResourceParams$9(config);
1328
+ const request = createResourceRequest$9(resourceParams);
1329
1329
  return luvio.dispatchResourceRequest(request, options)
1330
1330
  .then((response) => {
1331
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
1331
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
1332
1332
  const cache = new StoreKeyMap();
1333
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1333
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
1334
1334
  return cache;
1335
1335
  });
1336
1336
  }, (response) => {
1337
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
1337
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
1338
1338
  });
1339
1339
  }
1340
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
1341
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
1340
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
1341
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
1342
1342
  }
1343
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1343
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
1344
1344
  const { luvio, config } = context;
1345
1345
  const selector = {
1346
- recordId: keyBuilder$a(luvio, config),
1347
- node: adapterFragment$2(luvio, config),
1346
+ recordId: keyBuilder$e(luvio, config),
1347
+ node: adapterFragment$3(luvio, config),
1348
1348
  variables: {},
1349
1349
  };
1350
1350
  const cacheSnapshot = storeLookup(selector, {
1351
1351
  config,
1352
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1352
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1353
1353
  });
1354
1354
  return cacheSnapshot;
1355
1355
  }
1356
1356
  const getParticipantRecentInteractionsAdapterFactory = (luvio) => function IndustriesScheduler__getParticipantRecentInteractions(untrustedConfig, requestContext) {
1357
- const config = validateAdapterConfig$6(untrustedConfig, getParticipantRecentInteractions_ConfigPropertyNames);
1357
+ const config = validateAdapterConfig$9(untrustedConfig, getParticipantRecentInteractions_ConfigPropertyNames);
1358
1358
  // Invalid or incomplete config
1359
1359
  if (config === null) {
1360
1360
  return null;
1361
1361
  }
1362
1362
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1363
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
1363
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
1364
1364
  };
1365
1365
 
1366
- function validate$j(obj, path = 'UpdateServiceAppointmentInputRepresentation') {
1366
+ const VERSION$l = "c53d2d7c54f3f7e132ff8f6059f30726";
1367
+ function validate$p(obj, path = 'ExtendedFieldsOutputRepresentation') {
1367
1368
  const v_error = (() => {
1368
1369
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1369
1370
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1370
1371
  }
1371
- if (obj.assignedResources !== undefined) {
1372
- const obj_assignedResources = obj.assignedResources;
1373
- const path_assignedResources = path + '.assignedResources';
1374
- if (!ArrayIsArray(obj_assignedResources)) {
1375
- return new TypeError('Expected "array" but received "' + typeof obj_assignedResources + '" (at "' + path_assignedResources + '")');
1376
- }
1377
- for (let i = 0; i < obj_assignedResources.length; i++) {
1378
- const obj_assignedResources_item = obj_assignedResources[i];
1379
- const path_assignedResources_item = path_assignedResources + '[' + i + ']';
1380
- if (typeof obj_assignedResources_item !== 'object' || ArrayIsArray(obj_assignedResources_item) || obj_assignedResources_item === null) {
1381
- return new TypeError('Expected "object" but received "' + typeof obj_assignedResources_item + '" (at "' + path_assignedResources_item + '")');
1382
- }
1383
- }
1384
- }
1385
- if (obj.lead !== undefined) {
1386
- const obj_lead = obj.lead;
1387
- const path_lead = path + '.lead';
1388
- if (typeof obj_lead !== 'object' || ArrayIsArray(obj_lead) || obj_lead === null) {
1389
- return new TypeError('Expected "object" but received "' + typeof obj_lead + '" (at "' + path_lead + '")');
1390
- }
1391
- }
1392
- if (obj.schedulingPolicyId !== undefined) {
1393
- const obj_schedulingPolicyId = obj.schedulingPolicyId;
1394
- const path_schedulingPolicyId = path + '.schedulingPolicyId';
1395
- if (typeof obj_schedulingPolicyId !== 'string') {
1396
- return new TypeError('Expected "string" but received "' + typeof obj_schedulingPolicyId + '" (at "' + path_schedulingPolicyId + '")');
1397
- }
1398
- }
1399
- const obj_serviceAppointment = obj.serviceAppointment;
1400
- const path_serviceAppointment = path + '.serviceAppointment';
1401
- if (typeof obj_serviceAppointment !== 'object' || ArrayIsArray(obj_serviceAppointment) || obj_serviceAppointment === null) {
1402
- return new TypeError('Expected "object" but received "' + typeof obj_serviceAppointment + '" (at "' + path_serviceAppointment + '")');
1372
+ const obj_name = obj.name;
1373
+ const path_name = path + '.name';
1374
+ if (typeof obj_name !== 'string') {
1375
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1403
1376
  }
1404
- const obj_serviceAppointmentId = obj.serviceAppointmentId;
1405
- const path_serviceAppointmentId = path + '.serviceAppointmentId';
1406
- if (typeof obj_serviceAppointmentId !== 'string') {
1407
- return new TypeError('Expected "string" but received "' + typeof obj_serviceAppointmentId + '" (at "' + path_serviceAppointmentId + '")');
1377
+ const obj_value = obj.value;
1378
+ const path_value = path + '.value';
1379
+ if (typeof obj_value !== 'string') {
1380
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1408
1381
  }
1409
1382
  })();
1410
1383
  return v_error === undefined ? null : v_error;
1411
1384
  }
1385
+ const select$u = function ExtendedFieldsOutputRepresentationSelect() {
1386
+ return {
1387
+ kind: 'Fragment',
1388
+ version: VERSION$l,
1389
+ private: [],
1390
+ selections: [
1391
+ {
1392
+ name: 'name',
1393
+ kind: 'Scalar'
1394
+ },
1395
+ {
1396
+ name: 'value',
1397
+ kind: 'Scalar'
1398
+ }
1399
+ ]
1400
+ };
1401
+ };
1402
+ function equals$l(existing, incoming) {
1403
+ const existing_name = existing.name;
1404
+ const incoming_name = incoming.name;
1405
+ if (!(existing_name === incoming_name)) {
1406
+ return false;
1407
+ }
1408
+ const existing_value = existing.value;
1409
+ const incoming_value = incoming.value;
1410
+ if (!(existing_value === incoming_value)) {
1411
+ return false;
1412
+ }
1413
+ return true;
1414
+ }
1412
1415
 
1413
- const VERSION$f = "2f0614d98c99215427524626e17e574b";
1414
- function validate$i(obj, path = 'ServiceAppointmentResult') {
1416
+ const VERSION$k = "d5db628ccd69eb00e87ff518e66c3467";
1417
+ function validate$o(obj, path = 'ServiceAppointmentAttendeeResult') {
1415
1418
  const v_error = (() => {
1416
1419
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1417
1420
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1418
1421
  }
1419
- const obj_assignedResourceIds = obj.assignedResourceIds;
1420
- const path_assignedResourceIds = path + '.assignedResourceIds';
1421
- if (!ArrayIsArray(obj_assignedResourceIds)) {
1422
- return new TypeError('Expected "array" but received "' + typeof obj_assignedResourceIds + '" (at "' + path_assignedResourceIds + '")');
1423
- }
1424
- for (let i = 0; i < obj_assignedResourceIds.length; i++) {
1425
- const obj_assignedResourceIds_item = obj_assignedResourceIds[i];
1426
- const path_assignedResourceIds_item = path_assignedResourceIds + '[' + i + ']';
1427
- if (typeof obj_assignedResourceIds_item !== 'string') {
1428
- return new TypeError('Expected "string" but received "' + typeof obj_assignedResourceIds_item + '" (at "' + path_assignedResourceIds_item + '")');
1429
- }
1430
- }
1431
- if (obj.parentRecordId !== undefined) {
1432
- const obj_parentRecordId = obj.parentRecordId;
1433
- const path_parentRecordId = path + '.parentRecordId';
1434
- if (typeof obj_parentRecordId !== 'string') {
1435
- return new TypeError('Expected "string" but received "' + typeof obj_parentRecordId + '" (at "' + path_parentRecordId + '")');
1436
- }
1437
- }
1438
- const obj_serviceAppointmentId = obj.serviceAppointmentId;
1439
- const path_serviceAppointmentId = path + '.serviceAppointmentId';
1440
- if (typeof obj_serviceAppointmentId !== 'string') {
1441
- return new TypeError('Expected "string" but received "' + typeof obj_serviceAppointmentId + '" (at "' + path_serviceAppointmentId + '")');
1422
+ const obj_serviceAppointmentAttendeeId = obj.serviceAppointmentAttendeeId;
1423
+ const path_serviceAppointmentAttendeeId = path + '.serviceAppointmentAttendeeId';
1424
+ if (typeof obj_serviceAppointmentAttendeeId !== 'string') {
1425
+ return new TypeError('Expected "string" but received "' + typeof obj_serviceAppointmentAttendeeId + '" (at "' + path_serviceAppointmentAttendeeId + '")');
1442
1426
  }
1443
1427
  })();
1444
1428
  return v_error === undefined ? null : v_error;
1445
1429
  }
1446
- const RepresentationType$7 = 'ServiceAppointmentResult';
1447
- function keyBuilder$9(luvio, config) {
1448
- return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
1430
+ const RepresentationType$a = 'ServiceAppointmentAttendeeResult';
1431
+ function keyBuilder$d(luvio, config) {
1432
+ return keyPrefix + '::' + RepresentationType$a + ':' + config.id;
1449
1433
  }
1450
- function keyBuilderFromType$5(luvio, object) {
1434
+ function keyBuilderFromType$7(luvio, object) {
1451
1435
  const keyParams = {
1452
- id: object.serviceAppointmentId
1436
+ id: object.serviceAppointmentAttendeeId
1453
1437
  };
1454
- return keyBuilder$9(luvio, keyParams);
1438
+ return keyBuilder$d(luvio, keyParams);
1455
1439
  }
1456
- function normalize$7(input, existing, path, luvio, store, timestamp) {
1440
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
1457
1441
  return input;
1458
1442
  }
1459
- const select$l = function ServiceAppointmentResultSelect() {
1443
+ const select$t = function ServiceAppointmentAttendeeResultSelect() {
1460
1444
  return {
1461
1445
  kind: 'Fragment',
1462
- version: VERSION$f,
1446
+ version: VERSION$k,
1463
1447
  private: [],
1464
1448
  selections: [
1465
1449
  {
1466
- name: 'assignedResourceIds',
1450
+ name: 'serviceAppointmentAttendeeId',
1451
+ kind: 'Scalar'
1452
+ }
1453
+ ]
1454
+ };
1455
+ };
1456
+ function equals$k(existing, incoming) {
1457
+ const existing_serviceAppointmentAttendeeId = existing.serviceAppointmentAttendeeId;
1458
+ const incoming_serviceAppointmentAttendeeId = incoming.serviceAppointmentAttendeeId;
1459
+ if (!(existing_serviceAppointmentAttendeeId === incoming_serviceAppointmentAttendeeId)) {
1460
+ return false;
1461
+ }
1462
+ return true;
1463
+ }
1464
+ const ingest$a = function ServiceAppointmentAttendeeResultIngest(input, path, luvio, store, timestamp) {
1465
+ if (process.env.NODE_ENV !== 'production') {
1466
+ const validateError = validate$o(input);
1467
+ if (validateError !== null) {
1468
+ throw validateError;
1469
+ }
1470
+ }
1471
+ const key = keyBuilderFromType$7(luvio, input);
1472
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1473
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "IndustriesScheduler", VERSION$k, RepresentationType$a, equals$k);
1474
+ return createLink(key);
1475
+ };
1476
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
1477
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1478
+ const rootKey = keyBuilderFromType$7(luvio, input);
1479
+ rootKeySet.set(rootKey, {
1480
+ namespace: keyPrefix,
1481
+ representationName: RepresentationType$a,
1482
+ mergeable: false
1483
+ });
1484
+ }
1485
+
1486
+ const VERSION$j = "5c5b3e37dfffc3539569033454c183b4";
1487
+ function validate$n(obj, path = 'ServiceAppointmentAttendeeOutputRepresentation') {
1488
+ const v_error = (() => {
1489
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1490
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1491
+ }
1492
+ const obj_result = obj.result;
1493
+ const path_result = path + '.result';
1494
+ if (typeof obj_result !== 'object') {
1495
+ return new TypeError('Expected "object" but received "' + typeof obj_result + '" (at "' + path_result + '")');
1496
+ }
1497
+ })();
1498
+ return v_error === undefined ? null : v_error;
1499
+ }
1500
+ const RepresentationType$9 = 'ServiceAppointmentAttendeeOutputRepresentation';
1501
+ function keyBuilder$c(luvio, config) {
1502
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
1503
+ }
1504
+ function keyBuilderFromType$6(luvio, object) {
1505
+ const keyParams = {
1506
+ id: object.result.serviceAppointmentAttendeeId
1507
+ };
1508
+ return keyBuilder$c(luvio, keyParams);
1509
+ }
1510
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
1511
+ const input_result = input.result;
1512
+ const input_result_id = path.fullPath + '__result';
1513
+ input.result = ingest$a(input_result, {
1514
+ fullPath: input_result_id,
1515
+ propertyName: 'result',
1516
+ parent: {
1517
+ data: input,
1518
+ key: path.fullPath,
1519
+ existing: existing,
1520
+ },
1521
+ ttl: path.ttl
1522
+ }, luvio, store, timestamp);
1523
+ return input;
1524
+ }
1525
+ const select$s = function ServiceAppointmentAttendeeOutputRepresentationSelect() {
1526
+ return {
1527
+ kind: 'Fragment',
1528
+ version: VERSION$j,
1529
+ private: [],
1530
+ selections: [
1531
+ {
1532
+ name: 'result',
1533
+ kind: 'Link',
1534
+ fragment: select$t()
1535
+ }
1536
+ ]
1537
+ };
1538
+ };
1539
+ function equals$j(existing, incoming) {
1540
+ const existing_result = existing.result;
1541
+ const incoming_result = incoming.result;
1542
+ if (!(existing_result.__ref === incoming_result.__ref)) {
1543
+ return false;
1544
+ }
1545
+ return true;
1546
+ }
1547
+ const ingest$9 = function ServiceAppointmentAttendeeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1548
+ if (process.env.NODE_ENV !== 'production') {
1549
+ const validateError = validate$n(input);
1550
+ if (validateError !== null) {
1551
+ throw validateError;
1552
+ }
1553
+ }
1554
+ const key = keyBuilderFromType$6(luvio, input);
1555
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1556
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "IndustriesScheduler", VERSION$j, RepresentationType$9, equals$j);
1557
+ return createLink(key);
1558
+ };
1559
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
1560
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1561
+ const rootKey = keyBuilderFromType$6(luvio, input);
1562
+ rootKeySet.set(rootKey, {
1563
+ namespace: keyPrefix,
1564
+ representationName: RepresentationType$9,
1565
+ mergeable: false
1566
+ });
1567
+ getTypeCacheKeys$a(rootKeySet, luvio, input.result);
1568
+ }
1569
+
1570
+ function select$r(luvio, params) {
1571
+ return select$s();
1572
+ }
1573
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1574
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
1575
+ }
1576
+ function ingestSuccess$8(luvio, resourceParams, response) {
1577
+ const { body } = response;
1578
+ const key = keyBuilderFromType$6(luvio, body);
1579
+ luvio.storeIngest(key, ingest$9, body);
1580
+ const snapshot = luvio.storeLookup({
1581
+ recordId: key,
1582
+ node: select$r(),
1583
+ variables: {},
1584
+ });
1585
+ if (process.env.NODE_ENV !== 'production') {
1586
+ if (snapshot.state !== 'Fulfilled') {
1587
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1588
+ }
1589
+ }
1590
+ deepFreeze(snapshot.data);
1591
+ return snapshot;
1592
+ }
1593
+ function createResourceRequest$8(config) {
1594
+ const headers = {};
1595
+ return {
1596
+ baseUri: '/services/data/v61.0',
1597
+ basePath: '/connect/scheduling/service-appointment-attendee',
1598
+ method: 'patch',
1599
+ body: config.body,
1600
+ urlParams: {},
1601
+ queryParams: {},
1602
+ headers,
1603
+ priority: 'normal',
1604
+ };
1605
+ }
1606
+
1607
+ const adapterName$8 = 'updateServiceAppointmentAttendee';
1608
+ const updateServiceAppointmentAttendee_ConfigPropertyMetadata = [
1609
+ generateParamConfigMetadata('serviceAppointmentAttendeeId', true, 2 /* Body */, 0 /* String */),
1610
+ generateParamConfigMetadata('appointmentId', false, 2 /* Body */, 0 /* String */),
1611
+ generateParamConfigMetadata('attendeeId', false, 2 /* Body */, 0 /* String */),
1612
+ generateParamConfigMetadata('extendedFields', false, 2 /* Body */, 4 /* Unsupported */, true),
1613
+ ];
1614
+ const updateServiceAppointmentAttendee_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, updateServiceAppointmentAttendee_ConfigPropertyMetadata);
1615
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(updateServiceAppointmentAttendee_ConfigPropertyMetadata);
1616
+ function typeCheckConfig$8(untrustedConfig) {
1617
+ const config = {};
1618
+ typeCheckConfig$c(untrustedConfig, config, updateServiceAppointmentAttendee_ConfigPropertyMetadata);
1619
+ const untrustedConfig_extendedFields = untrustedConfig.extendedFields;
1620
+ if (ArrayIsArray$1(untrustedConfig_extendedFields)) {
1621
+ const untrustedConfig_extendedFields_array = [];
1622
+ for (let i = 0, arrayLength = untrustedConfig_extendedFields.length; i < arrayLength; i++) {
1623
+ const untrustedConfig_extendedFields_item = untrustedConfig_extendedFields[i];
1624
+ const referenceExtendedFieldsOutputRepresentationValidationError = validate$p(untrustedConfig_extendedFields_item);
1625
+ if (referenceExtendedFieldsOutputRepresentationValidationError === null) {
1626
+ untrustedConfig_extendedFields_array.push(untrustedConfig_extendedFields_item);
1627
+ }
1628
+ }
1629
+ config.extendedFields = untrustedConfig_extendedFields_array;
1630
+ }
1631
+ return config;
1632
+ }
1633
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1634
+ if (!untrustedIsObject(untrustedConfig)) {
1635
+ return null;
1636
+ }
1637
+ if (process.env.NODE_ENV !== 'production') {
1638
+ validateConfig(untrustedConfig, configPropertyNames);
1639
+ }
1640
+ const config = typeCheckConfig$8(untrustedConfig);
1641
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1642
+ return null;
1643
+ }
1644
+ return config;
1645
+ }
1646
+ function buildNetworkSnapshot$8(luvio, config, options) {
1647
+ const resourceParams = createResourceParams$8(config);
1648
+ const request = createResourceRequest$8(resourceParams);
1649
+ return luvio.dispatchResourceRequest(request, options)
1650
+ .then((response) => {
1651
+ return luvio.handleSuccessResponse(() => {
1652
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
1653
+ return luvio.storeBroadcast().then(() => snapshot);
1654
+ }, () => {
1655
+ const cache = new StoreKeyMap();
1656
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1657
+ return cache;
1658
+ });
1659
+ }, (response) => {
1660
+ deepFreeze(response);
1661
+ throw response;
1662
+ });
1663
+ }
1664
+ const updateServiceAppointmentAttendeeAdapterFactory = (luvio) => {
1665
+ return function updateServiceAppointmentAttendee(untrustedConfig) {
1666
+ const config = validateAdapterConfig$8(untrustedConfig, updateServiceAppointmentAttendee_ConfigPropertyNames);
1667
+ // Invalid or incomplete config
1668
+ if (config === null) {
1669
+ throw new Error('Invalid config for "updateServiceAppointmentAttendee"');
1670
+ }
1671
+ return buildNetworkSnapshot$8(luvio, config);
1672
+ };
1673
+ };
1674
+
1675
+ function select$q(luvio, params) {
1676
+ return select$s();
1677
+ }
1678
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1679
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
1680
+ }
1681
+ function ingestSuccess$7(luvio, resourceParams, response) {
1682
+ const { body } = response;
1683
+ const key = keyBuilderFromType$6(luvio, body);
1684
+ luvio.storeIngest(key, ingest$9, body);
1685
+ const snapshot = luvio.storeLookup({
1686
+ recordId: key,
1687
+ node: select$q(),
1688
+ variables: {},
1689
+ });
1690
+ if (process.env.NODE_ENV !== 'production') {
1691
+ if (snapshot.state !== 'Fulfilled') {
1692
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1693
+ }
1694
+ }
1695
+ deepFreeze(snapshot.data);
1696
+ return snapshot;
1697
+ }
1698
+ function createResourceRequest$7(config) {
1699
+ const headers = {};
1700
+ return {
1701
+ baseUri: '/services/data/v61.0',
1702
+ basePath: '/connect/scheduling/service-appointment-attendee',
1703
+ method: 'post',
1704
+ body: config.body,
1705
+ urlParams: {},
1706
+ queryParams: {},
1707
+ headers,
1708
+ priority: 'normal',
1709
+ };
1710
+ }
1711
+
1712
+ const adapterName$7 = 'createServiceAppointmentAttendee';
1713
+ const createServiceAppointmentAttendee_ConfigPropertyMetadata = [
1714
+ generateParamConfigMetadata('appointmentId', true, 2 /* Body */, 0 /* String */),
1715
+ generateParamConfigMetadata('attendeeId', true, 2 /* Body */, 0 /* String */),
1716
+ generateParamConfigMetadata('extendedFields', false, 2 /* Body */, 4 /* Unsupported */, true),
1717
+ ];
1718
+ const createServiceAppointmentAttendee_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createServiceAppointmentAttendee_ConfigPropertyMetadata);
1719
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(createServiceAppointmentAttendee_ConfigPropertyMetadata);
1720
+ function typeCheckConfig$7(untrustedConfig) {
1721
+ const config = {};
1722
+ typeCheckConfig$c(untrustedConfig, config, createServiceAppointmentAttendee_ConfigPropertyMetadata);
1723
+ const untrustedConfig_extendedFields = untrustedConfig.extendedFields;
1724
+ if (ArrayIsArray$1(untrustedConfig_extendedFields)) {
1725
+ const untrustedConfig_extendedFields_array = [];
1726
+ for (let i = 0, arrayLength = untrustedConfig_extendedFields.length; i < arrayLength; i++) {
1727
+ const untrustedConfig_extendedFields_item = untrustedConfig_extendedFields[i];
1728
+ const referenceExtendedFieldsOutputRepresentationValidationError = validate$p(untrustedConfig_extendedFields_item);
1729
+ if (referenceExtendedFieldsOutputRepresentationValidationError === null) {
1730
+ untrustedConfig_extendedFields_array.push(untrustedConfig_extendedFields_item);
1731
+ }
1732
+ }
1733
+ config.extendedFields = untrustedConfig_extendedFields_array;
1734
+ }
1735
+ return config;
1736
+ }
1737
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1738
+ if (!untrustedIsObject(untrustedConfig)) {
1739
+ return null;
1740
+ }
1741
+ if (process.env.NODE_ENV !== 'production') {
1742
+ validateConfig(untrustedConfig, configPropertyNames);
1743
+ }
1744
+ const config = typeCheckConfig$7(untrustedConfig);
1745
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1746
+ return null;
1747
+ }
1748
+ return config;
1749
+ }
1750
+ function buildNetworkSnapshot$7(luvio, config, options) {
1751
+ const resourceParams = createResourceParams$7(config);
1752
+ const request = createResourceRequest$7(resourceParams);
1753
+ return luvio.dispatchResourceRequest(request, options)
1754
+ .then((response) => {
1755
+ return luvio.handleSuccessResponse(() => {
1756
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1757
+ return luvio.storeBroadcast().then(() => snapshot);
1758
+ }, () => {
1759
+ const cache = new StoreKeyMap();
1760
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1761
+ return cache;
1762
+ });
1763
+ }, (response) => {
1764
+ deepFreeze(response);
1765
+ throw response;
1766
+ });
1767
+ }
1768
+ const createServiceAppointmentAttendeeAdapterFactory = (luvio) => {
1769
+ return function createServiceAppointmentAttendee(untrustedConfig) {
1770
+ const config = validateAdapterConfig$7(untrustedConfig, createServiceAppointmentAttendee_ConfigPropertyNames);
1771
+ // Invalid or incomplete config
1772
+ if (config === null) {
1773
+ throw new Error('Invalid config for "createServiceAppointmentAttendee"');
1774
+ }
1775
+ return buildNetworkSnapshot$7(luvio, config);
1776
+ };
1777
+ };
1778
+
1779
+ function validate$m(obj, path = 'UpdateServiceAppointmentInputRepresentation') {
1780
+ const v_error = (() => {
1781
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1782
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1783
+ }
1784
+ if (obj.assignedResources !== undefined) {
1785
+ const obj_assignedResources = obj.assignedResources;
1786
+ const path_assignedResources = path + '.assignedResources';
1787
+ if (!ArrayIsArray(obj_assignedResources)) {
1788
+ return new TypeError('Expected "array" but received "' + typeof obj_assignedResources + '" (at "' + path_assignedResources + '")');
1789
+ }
1790
+ for (let i = 0; i < obj_assignedResources.length; i++) {
1791
+ const obj_assignedResources_item = obj_assignedResources[i];
1792
+ const path_assignedResources_item = path_assignedResources + '[' + i + ']';
1793
+ if (typeof obj_assignedResources_item !== 'object' || ArrayIsArray(obj_assignedResources_item) || obj_assignedResources_item === null) {
1794
+ return new TypeError('Expected "object" but received "' + typeof obj_assignedResources_item + '" (at "' + path_assignedResources_item + '")');
1795
+ }
1796
+ }
1797
+ }
1798
+ if (obj.lead !== undefined) {
1799
+ const obj_lead = obj.lead;
1800
+ const path_lead = path + '.lead';
1801
+ if (typeof obj_lead !== 'object' || ArrayIsArray(obj_lead) || obj_lead === null) {
1802
+ return new TypeError('Expected "object" but received "' + typeof obj_lead + '" (at "' + path_lead + '")');
1803
+ }
1804
+ }
1805
+ if (obj.schedulingPolicyId !== undefined) {
1806
+ const obj_schedulingPolicyId = obj.schedulingPolicyId;
1807
+ const path_schedulingPolicyId = path + '.schedulingPolicyId';
1808
+ if (typeof obj_schedulingPolicyId !== 'string') {
1809
+ return new TypeError('Expected "string" but received "' + typeof obj_schedulingPolicyId + '" (at "' + path_schedulingPolicyId + '")');
1810
+ }
1811
+ }
1812
+ const obj_serviceAppointment = obj.serviceAppointment;
1813
+ const path_serviceAppointment = path + '.serviceAppointment';
1814
+ if (typeof obj_serviceAppointment !== 'object' || ArrayIsArray(obj_serviceAppointment) || obj_serviceAppointment === null) {
1815
+ return new TypeError('Expected "object" but received "' + typeof obj_serviceAppointment + '" (at "' + path_serviceAppointment + '")');
1816
+ }
1817
+ const obj_serviceAppointmentId = obj.serviceAppointmentId;
1818
+ const path_serviceAppointmentId = path + '.serviceAppointmentId';
1819
+ if (typeof obj_serviceAppointmentId !== 'string') {
1820
+ return new TypeError('Expected "string" but received "' + typeof obj_serviceAppointmentId + '" (at "' + path_serviceAppointmentId + '")');
1821
+ }
1822
+ })();
1823
+ return v_error === undefined ? null : v_error;
1824
+ }
1825
+
1826
+ const VERSION$i = "2f0614d98c99215427524626e17e574b";
1827
+ function validate$l(obj, path = 'ServiceAppointmentResult') {
1828
+ const v_error = (() => {
1829
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1830
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1831
+ }
1832
+ const obj_assignedResourceIds = obj.assignedResourceIds;
1833
+ const path_assignedResourceIds = path + '.assignedResourceIds';
1834
+ if (!ArrayIsArray(obj_assignedResourceIds)) {
1835
+ return new TypeError('Expected "array" but received "' + typeof obj_assignedResourceIds + '" (at "' + path_assignedResourceIds + '")');
1836
+ }
1837
+ for (let i = 0; i < obj_assignedResourceIds.length; i++) {
1838
+ const obj_assignedResourceIds_item = obj_assignedResourceIds[i];
1839
+ const path_assignedResourceIds_item = path_assignedResourceIds + '[' + i + ']';
1840
+ if (typeof obj_assignedResourceIds_item !== 'string') {
1841
+ return new TypeError('Expected "string" but received "' + typeof obj_assignedResourceIds_item + '" (at "' + path_assignedResourceIds_item + '")');
1842
+ }
1843
+ }
1844
+ if (obj.parentRecordId !== undefined) {
1845
+ const obj_parentRecordId = obj.parentRecordId;
1846
+ const path_parentRecordId = path + '.parentRecordId';
1847
+ if (typeof obj_parentRecordId !== 'string') {
1848
+ return new TypeError('Expected "string" but received "' + typeof obj_parentRecordId + '" (at "' + path_parentRecordId + '")');
1849
+ }
1850
+ }
1851
+ const obj_serviceAppointmentId = obj.serviceAppointmentId;
1852
+ const path_serviceAppointmentId = path + '.serviceAppointmentId';
1853
+ if (typeof obj_serviceAppointmentId !== 'string') {
1854
+ return new TypeError('Expected "string" but received "' + typeof obj_serviceAppointmentId + '" (at "' + path_serviceAppointmentId + '")');
1855
+ }
1856
+ })();
1857
+ return v_error === undefined ? null : v_error;
1858
+ }
1859
+ const RepresentationType$8 = 'ServiceAppointmentResult';
1860
+ function keyBuilder$b(luvio, config) {
1861
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
1862
+ }
1863
+ function keyBuilderFromType$5(luvio, object) {
1864
+ const keyParams = {
1865
+ id: object.serviceAppointmentId
1866
+ };
1867
+ return keyBuilder$b(luvio, keyParams);
1868
+ }
1869
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
1870
+ return input;
1871
+ }
1872
+ const select$p = function ServiceAppointmentResultSelect() {
1873
+ return {
1874
+ kind: 'Fragment',
1875
+ version: VERSION$i,
1876
+ private: [],
1877
+ selections: [
1878
+ {
1879
+ name: 'assignedResourceIds',
1467
1880
  kind: 'Scalar',
1468
1881
  plural: true
1469
1882
  },
@@ -1479,7 +1892,7 @@ const select$l = function ServiceAppointmentResultSelect() {
1479
1892
  ]
1480
1893
  };
1481
1894
  };
1482
- function equals$f(existing, incoming) {
1895
+ function equals$i(existing, incoming) {
1483
1896
  const existing_parentRecordId = existing.parentRecordId;
1484
1897
  const incoming_parentRecordId = incoming.parentRecordId;
1485
1898
  // if at least one of these optionals is defined
@@ -1510,30 +1923,30 @@ function equals$f(existing, incoming) {
1510
1923
  }
1511
1924
  return true;
1512
1925
  }
1513
- const ingest$7 = function ServiceAppointmentResultIngest(input, path, luvio, store, timestamp) {
1926
+ const ingest$8 = function ServiceAppointmentResultIngest(input, path, luvio, store, timestamp) {
1514
1927
  if (process.env.NODE_ENV !== 'production') {
1515
- const validateError = validate$i(input);
1928
+ const validateError = validate$l(input);
1516
1929
  if (validateError !== null) {
1517
1930
  throw validateError;
1518
1931
  }
1519
1932
  }
1520
1933
  const key = keyBuilderFromType$5(luvio, input);
1521
1934
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1522
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "IndustriesScheduler", VERSION$f, RepresentationType$7, equals$f);
1935
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "IndustriesScheduler", VERSION$i, RepresentationType$8, equals$i);
1523
1936
  return createLink(key);
1524
1937
  };
1525
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1938
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1526
1939
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1527
1940
  const rootKey = keyBuilderFromType$5(luvio, input);
1528
1941
  rootKeySet.set(rootKey, {
1529
1942
  namespace: keyPrefix,
1530
- representationName: RepresentationType$7,
1943
+ representationName: RepresentationType$8,
1531
1944
  mergeable: false
1532
1945
  });
1533
1946
  }
1534
1947
 
1535
- const VERSION$e = "09b2befd1e1777ff063639379004b1b7";
1536
- function validate$h(obj, path = 'ServiceAppointmentOutputRepresentation') {
1948
+ const VERSION$h = "09b2befd1e1777ff063639379004b1b7";
1949
+ function validate$k(obj, path = 'ServiceAppointmentOutputRepresentation') {
1537
1950
  const v_error = (() => {
1538
1951
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1539
1952
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1546,20 +1959,20 @@ function validate$h(obj, path = 'ServiceAppointmentOutputRepresentation') {
1546
1959
  })();
1547
1960
  return v_error === undefined ? null : v_error;
1548
1961
  }
1549
- const RepresentationType$6 = 'ServiceAppointmentOutputRepresentation';
1550
- function keyBuilder$8(luvio, config) {
1551
- return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
1962
+ const RepresentationType$7 = 'ServiceAppointmentOutputRepresentation';
1963
+ function keyBuilder$a(luvio, config) {
1964
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
1552
1965
  }
1553
1966
  function keyBuilderFromType$4(luvio, object) {
1554
1967
  const keyParams = {
1555
1968
  id: object.result.serviceAppointmentId
1556
1969
  };
1557
- return keyBuilder$8(luvio, keyParams);
1970
+ return keyBuilder$a(luvio, keyParams);
1558
1971
  }
1559
- function normalize$6(input, existing, path, luvio, store, timestamp) {
1972
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1560
1973
  const input_result = input.result;
1561
1974
  const input_result_id = path.fullPath + '__result';
1562
- input.result = ingest$7(input_result, {
1975
+ input.result = ingest$8(input_result, {
1563
1976
  fullPath: input_result_id,
1564
1977
  propertyName: 'result',
1565
1978
  parent: {
@@ -1571,21 +1984,21 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
1571
1984
  }, luvio, store, timestamp);
1572
1985
  return input;
1573
1986
  }
1574
- const select$k = function ServiceAppointmentOutputRepresentationSelect() {
1987
+ const select$o = function ServiceAppointmentOutputRepresentationSelect() {
1575
1988
  return {
1576
1989
  kind: 'Fragment',
1577
- version: VERSION$e,
1990
+ version: VERSION$h,
1578
1991
  private: [],
1579
1992
  selections: [
1580
1993
  {
1581
1994
  name: 'result',
1582
1995
  kind: 'Link',
1583
- fragment: select$l()
1996
+ fragment: select$p()
1584
1997
  }
1585
1998
  ]
1586
1999
  };
1587
2000
  };
1588
- function equals$e(existing, incoming) {
2001
+ function equals$h(existing, incoming) {
1589
2002
  const existing_result = existing.result;
1590
2003
  const incoming_result = incoming.result;
1591
2004
  if (!(existing_result.__ref === incoming_result.__ref)) {
@@ -1593,42 +2006,42 @@ function equals$e(existing, incoming) {
1593
2006
  }
1594
2007
  return true;
1595
2008
  }
1596
- const ingest$6 = function ServiceAppointmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2009
+ const ingest$7 = function ServiceAppointmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1597
2010
  if (process.env.NODE_ENV !== 'production') {
1598
- const validateError = validate$h(input);
2011
+ const validateError = validate$k(input);
1599
2012
  if (validateError !== null) {
1600
2013
  throw validateError;
1601
2014
  }
1602
2015
  }
1603
2016
  const key = keyBuilderFromType$4(luvio, input);
1604
2017
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1605
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "IndustriesScheduler", VERSION$e, RepresentationType$6, equals$e);
2018
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "IndustriesScheduler", VERSION$h, RepresentationType$7, equals$h);
1606
2019
  return createLink(key);
1607
2020
  };
1608
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
2021
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1609
2022
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1610
2023
  const rootKey = keyBuilderFromType$4(luvio, input);
1611
2024
  rootKeySet.set(rootKey, {
1612
2025
  namespace: keyPrefix,
1613
- representationName: RepresentationType$6,
2026
+ representationName: RepresentationType$7,
1614
2027
  mergeable: false
1615
2028
  });
1616
- getTypeCacheKeys$7(rootKeySet, luvio, input.result);
2029
+ getTypeCacheKeys$8(rootKeySet, luvio, input.result);
1617
2030
  }
1618
2031
 
1619
- function select$j(luvio, params) {
1620
- return select$k();
2032
+ function select$n(luvio, params) {
2033
+ return select$o();
1621
2034
  }
1622
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1623
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
2035
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
2036
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
1624
2037
  }
1625
- function ingestSuccess$5(luvio, resourceParams, response) {
2038
+ function ingestSuccess$6(luvio, resourceParams, response) {
1626
2039
  const { body } = response;
1627
2040
  const key = keyBuilderFromType$4(luvio, body);
1628
- luvio.storeIngest(key, ingest$6, body);
2041
+ luvio.storeIngest(key, ingest$7, body);
1629
2042
  const snapshot = luvio.storeLookup({
1630
2043
  recordId: key,
1631
- node: select$j(),
2044
+ node: select$n(),
1632
2045
  variables: {},
1633
2046
  });
1634
2047
  if (process.env.NODE_ENV !== 'production') {
@@ -1639,7 +2052,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
1639
2052
  deepFreeze(snapshot.data);
1640
2053
  return snapshot;
1641
2054
  }
1642
- function createResourceRequest$5(config) {
2055
+ function createResourceRequest$6(config) {
1643
2056
  const headers = {};
1644
2057
  return {
1645
2058
  baseUri: '/services/data/v61.0',
@@ -1653,21 +2066,166 @@ function createResourceRequest$5(config) {
1653
2066
  };
1654
2067
  }
1655
2068
 
1656
- const adapterName$5 = 'updateServiceAppointment';
2069
+ const adapterName$6 = 'updateServiceAppointment';
1657
2070
  const updateServiceAppointment_ConfigPropertyMetadata = [
1658
2071
  generateParamConfigMetadata('updateServiceAppointmentInput', true, 2 /* Body */, 4 /* Unsupported */),
1659
2072
  ];
1660
- const updateServiceAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateServiceAppointment_ConfigPropertyMetadata);
1661
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(updateServiceAppointment_ConfigPropertyMetadata);
1662
- function typeCheckConfig$5(untrustedConfig) {
2073
+ const updateServiceAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, updateServiceAppointment_ConfigPropertyMetadata);
2074
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(updateServiceAppointment_ConfigPropertyMetadata);
2075
+ function typeCheckConfig$6(untrustedConfig) {
1663
2076
  const config = {};
1664
2077
  const untrustedConfig_updateServiceAppointmentInput = untrustedConfig.updateServiceAppointmentInput;
1665
- const referenceUpdateServiceAppointmentInputRepresentationValidationError = validate$j(untrustedConfig_updateServiceAppointmentInput);
2078
+ const referenceUpdateServiceAppointmentInputRepresentationValidationError = validate$m(untrustedConfig_updateServiceAppointmentInput);
1666
2079
  if (referenceUpdateServiceAppointmentInputRepresentationValidationError === null) {
1667
2080
  config.updateServiceAppointmentInput = untrustedConfig_updateServiceAppointmentInput;
1668
2081
  }
1669
2082
  return config;
1670
2083
  }
2084
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
2085
+ if (!untrustedIsObject(untrustedConfig)) {
2086
+ return null;
2087
+ }
2088
+ if (process.env.NODE_ENV !== 'production') {
2089
+ validateConfig(untrustedConfig, configPropertyNames);
2090
+ }
2091
+ const config = typeCheckConfig$6(untrustedConfig);
2092
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2093
+ return null;
2094
+ }
2095
+ return config;
2096
+ }
2097
+ function buildNetworkSnapshot$6(luvio, config, options) {
2098
+ const resourceParams = createResourceParams$6(config);
2099
+ const request = createResourceRequest$6(resourceParams);
2100
+ return luvio.dispatchResourceRequest(request, options)
2101
+ .then((response) => {
2102
+ return luvio.handleSuccessResponse(() => {
2103
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response);
2104
+ return luvio.storeBroadcast().then(() => snapshot);
2105
+ }, () => {
2106
+ const cache = new StoreKeyMap();
2107
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2108
+ return cache;
2109
+ });
2110
+ }, (response) => {
2111
+ deepFreeze(response);
2112
+ throw response;
2113
+ });
2114
+ }
2115
+ const updateServiceAppointmentAdapterFactory = (luvio) => {
2116
+ return function updateServiceAppointment(untrustedConfig) {
2117
+ const config = validateAdapterConfig$6(untrustedConfig, updateServiceAppointment_ConfigPropertyNames);
2118
+ // Invalid or incomplete config
2119
+ if (config === null) {
2120
+ throw new Error('Invalid config for "updateServiceAppointment"');
2121
+ }
2122
+ return buildNetworkSnapshot$6(luvio, config);
2123
+ };
2124
+ };
2125
+
2126
+ function validate$j(obj, path = 'CreateServiceAppointmentInputRepresentation') {
2127
+ const v_error = (() => {
2128
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2129
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2130
+ }
2131
+ if (obj.assignedResources !== undefined) {
2132
+ const obj_assignedResources = obj.assignedResources;
2133
+ const path_assignedResources = path + '.assignedResources';
2134
+ if (!ArrayIsArray(obj_assignedResources)) {
2135
+ return new TypeError('Expected "array" but received "' + typeof obj_assignedResources + '" (at "' + path_assignedResources + '")');
2136
+ }
2137
+ for (let i = 0; i < obj_assignedResources.length; i++) {
2138
+ const obj_assignedResources_item = obj_assignedResources[i];
2139
+ const path_assignedResources_item = path_assignedResources + '[' + i + ']';
2140
+ if (typeof obj_assignedResources_item !== 'object' || ArrayIsArray(obj_assignedResources_item) || obj_assignedResources_item === null) {
2141
+ return new TypeError('Expected "object" but received "' + typeof obj_assignedResources_item + '" (at "' + path_assignedResources_item + '")');
2142
+ }
2143
+ }
2144
+ }
2145
+ if (obj.lead !== undefined) {
2146
+ const obj_lead = obj.lead;
2147
+ const path_lead = path + '.lead';
2148
+ if (typeof obj_lead !== 'object' || ArrayIsArray(obj_lead) || obj_lead === null) {
2149
+ return new TypeError('Expected "object" but received "' + typeof obj_lead + '" (at "' + path_lead + '")');
2150
+ }
2151
+ }
2152
+ if (obj.schedulingPolicyId !== undefined) {
2153
+ const obj_schedulingPolicyId = obj.schedulingPolicyId;
2154
+ const path_schedulingPolicyId = path + '.schedulingPolicyId';
2155
+ if (typeof obj_schedulingPolicyId !== 'string') {
2156
+ return new TypeError('Expected "string" but received "' + typeof obj_schedulingPolicyId + '" (at "' + path_schedulingPolicyId + '")');
2157
+ }
2158
+ }
2159
+ if (obj.serviceAppointment !== undefined) {
2160
+ const obj_serviceAppointment = obj.serviceAppointment;
2161
+ const path_serviceAppointment = path + '.serviceAppointment';
2162
+ if (typeof obj_serviceAppointment !== 'object' || ArrayIsArray(obj_serviceAppointment) || obj_serviceAppointment === null) {
2163
+ return new TypeError('Expected "object" but received "' + typeof obj_serviceAppointment + '" (at "' + path_serviceAppointment + '")');
2164
+ }
2165
+ }
2166
+ if (obj.serviceAppointmentId !== undefined) {
2167
+ const obj_serviceAppointmentId = obj.serviceAppointmentId;
2168
+ const path_serviceAppointmentId = path + '.serviceAppointmentId';
2169
+ if (typeof obj_serviceAppointmentId !== 'string') {
2170
+ return new TypeError('Expected "string" but received "' + typeof obj_serviceAppointmentId + '" (at "' + path_serviceAppointmentId + '")');
2171
+ }
2172
+ }
2173
+ })();
2174
+ return v_error === undefined ? null : v_error;
2175
+ }
2176
+
2177
+ function select$m(luvio, params) {
2178
+ return select$o();
2179
+ }
2180
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2181
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
2182
+ }
2183
+ function ingestSuccess$5(luvio, resourceParams, response) {
2184
+ const { body } = response;
2185
+ const key = keyBuilderFromType$4(luvio, body);
2186
+ luvio.storeIngest(key, ingest$7, body);
2187
+ const snapshot = luvio.storeLookup({
2188
+ recordId: key,
2189
+ node: select$m(),
2190
+ variables: {},
2191
+ });
2192
+ if (process.env.NODE_ENV !== 'production') {
2193
+ if (snapshot.state !== 'Fulfilled') {
2194
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2195
+ }
2196
+ }
2197
+ deepFreeze(snapshot.data);
2198
+ return snapshot;
2199
+ }
2200
+ function createResourceRequest$5(config) {
2201
+ const headers = {};
2202
+ return {
2203
+ baseUri: '/services/data/v61.0',
2204
+ basePath: '/connect/scheduling/service-appointments',
2205
+ method: 'post',
2206
+ body: config.body,
2207
+ urlParams: {},
2208
+ queryParams: {},
2209
+ headers,
2210
+ priority: 'normal',
2211
+ };
2212
+ }
2213
+
2214
+ const adapterName$5 = 'createServiceAppointment';
2215
+ const createServiceAppointment_ConfigPropertyMetadata = [
2216
+ generateParamConfigMetadata('createServiceAppointmentInput', true, 2 /* Body */, 4 /* Unsupported */),
2217
+ ];
2218
+ const createServiceAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createServiceAppointment_ConfigPropertyMetadata);
2219
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(createServiceAppointment_ConfigPropertyMetadata);
2220
+ function typeCheckConfig$5(untrustedConfig) {
2221
+ const config = {};
2222
+ const untrustedConfig_createServiceAppointmentInput = untrustedConfig.createServiceAppointmentInput;
2223
+ const referenceCreateServiceAppointmentInputRepresentationValidationError = validate$j(untrustedConfig_createServiceAppointmentInput);
2224
+ if (referenceCreateServiceAppointmentInputRepresentationValidationError === null) {
2225
+ config.createServiceAppointmentInput = untrustedConfig_createServiceAppointmentInput;
2226
+ }
2227
+ return config;
2228
+ }
1671
2229
  function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1672
2230
  if (!untrustedIsObject(untrustedConfig)) {
1673
2231
  return null;
@@ -1699,83 +2257,273 @@ function buildNetworkSnapshot$5(luvio, config, options) {
1699
2257
  throw response;
1700
2258
  });
1701
2259
  }
1702
- const updateServiceAppointmentAdapterFactory = (luvio) => {
1703
- return function updateServiceAppointment(untrustedConfig) {
1704
- const config = validateAdapterConfig$5(untrustedConfig, updateServiceAppointment_ConfigPropertyNames);
2260
+ const createServiceAppointmentAdapterFactory = (luvio) => {
2261
+ return function createServiceAppointment(untrustedConfig) {
2262
+ const config = validateAdapterConfig$5(untrustedConfig, createServiceAppointment_ConfigPropertyNames);
1705
2263
  // Invalid or incomplete config
1706
2264
  if (config === null) {
1707
- throw new Error('Invalid config for "updateServiceAppointment"');
2265
+ throw new Error('Invalid config for "createServiceAppointment"');
2266
+ }
2267
+ return buildNetworkSnapshot$5(luvio, config);
2268
+ };
2269
+ };
2270
+
2271
+ const VERSION$g = "4e66532a4f41f39090aa3ff8b27fd629";
2272
+ function validate$i(obj, path = 'DayCapacity') {
2273
+ const v_error = (() => {
2274
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2275
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2276
+ }
2277
+ const obj_capacity = obj.capacity;
2278
+ const path_capacity = path + '.capacity';
2279
+ if (typeof obj_capacity !== 'number' || (typeof obj_capacity === 'number' && Math.floor(obj_capacity) !== obj_capacity)) {
2280
+ return new TypeError('Expected "integer" but received "' + typeof obj_capacity + '" (at "' + path_capacity + '")');
2281
+ }
2282
+ const obj_date = obj.date;
2283
+ const path_date = path + '.date';
2284
+ if (typeof obj_date !== 'string') {
2285
+ return new TypeError('Expected "string" but received "' + typeof obj_date + '" (at "' + path_date + '")');
2286
+ }
2287
+ })();
2288
+ return v_error === undefined ? null : v_error;
2289
+ }
2290
+ const select$l = function DayCapacitySelect() {
2291
+ return {
2292
+ kind: 'Fragment',
2293
+ version: VERSION$g,
2294
+ private: [],
2295
+ selections: [
2296
+ {
2297
+ name: 'capacity',
2298
+ kind: 'Scalar'
2299
+ },
2300
+ {
2301
+ name: 'date',
2302
+ kind: 'Scalar'
2303
+ }
2304
+ ]
2305
+ };
2306
+ };
2307
+ function equals$g(existing, incoming) {
2308
+ const existing_capacity = existing.capacity;
2309
+ const incoming_capacity = incoming.capacity;
2310
+ if (!(existing_capacity === incoming_capacity)) {
2311
+ return false;
2312
+ }
2313
+ const existing_date = existing.date;
2314
+ const incoming_date = incoming.date;
2315
+ if (!(existing_date === incoming_date)) {
2316
+ return false;
2317
+ }
2318
+ return true;
2319
+ }
2320
+
2321
+ const VERSION$f = "93f95d8e530e45c43a6adac2bda32001";
2322
+ function validate$h(obj, path = 'ServiceTerritoryWorkTypeCapacity') {
2323
+ const v_error = (() => {
2324
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2325
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2326
+ }
2327
+ const obj_dayCapacityList = obj.dayCapacityList;
2328
+ const path_dayCapacityList = path + '.dayCapacityList';
2329
+ if (!ArrayIsArray(obj_dayCapacityList)) {
2330
+ return new TypeError('Expected "array" but received "' + typeof obj_dayCapacityList + '" (at "' + path_dayCapacityList + '")');
2331
+ }
2332
+ for (let i = 0; i < obj_dayCapacityList.length; i++) {
2333
+ const obj_dayCapacityList_item = obj_dayCapacityList[i];
2334
+ const path_dayCapacityList_item = path_dayCapacityList + '[' + i + ']';
2335
+ const referencepath_dayCapacityList_itemValidationError = validate$i(obj_dayCapacityList_item, path_dayCapacityList_item);
2336
+ if (referencepath_dayCapacityList_itemValidationError !== null) {
2337
+ let message = 'Object doesn\'t match DayCapacity (at "' + path_dayCapacityList_item + '")\n';
2338
+ message += referencepath_dayCapacityList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2339
+ return new TypeError(message);
2340
+ }
2341
+ }
2342
+ const obj_workTypeId = obj.workTypeId;
2343
+ const path_workTypeId = path + '.workTypeId';
2344
+ if (typeof obj_workTypeId !== 'string') {
2345
+ return new TypeError('Expected "string" but received "' + typeof obj_workTypeId + '" (at "' + path_workTypeId + '")');
2346
+ }
2347
+ })();
2348
+ return v_error === undefined ? null : v_error;
2349
+ }
2350
+ const select$k = function ServiceTerritoryWorkTypeCapacitySelect() {
2351
+ const { selections: DayCapacity__selections, opaque: DayCapacity__opaque, } = select$l();
2352
+ return {
2353
+ kind: 'Fragment',
2354
+ version: VERSION$f,
2355
+ private: [],
2356
+ selections: [
2357
+ {
2358
+ name: 'dayCapacityList',
2359
+ kind: 'Object',
2360
+ plural: true,
2361
+ selections: DayCapacity__selections
2362
+ },
2363
+ {
2364
+ name: 'workTypeId',
2365
+ kind: 'Scalar'
2366
+ }
2367
+ ]
2368
+ };
2369
+ };
2370
+ function equals$f(existing, incoming) {
2371
+ const existing_workTypeId = existing.workTypeId;
2372
+ const incoming_workTypeId = incoming.workTypeId;
2373
+ if (!(existing_workTypeId === incoming_workTypeId)) {
2374
+ return false;
2375
+ }
2376
+ const existing_dayCapacityList = existing.dayCapacityList;
2377
+ const incoming_dayCapacityList = incoming.dayCapacityList;
2378
+ const equals_dayCapacityList_items = equalsArray(existing_dayCapacityList, incoming_dayCapacityList, (existing_dayCapacityList_item, incoming_dayCapacityList_item) => {
2379
+ if (!(equals$g(existing_dayCapacityList_item, incoming_dayCapacityList_item))) {
2380
+ return false;
1708
2381
  }
1709
- return buildNetworkSnapshot$5(luvio, config);
1710
- };
1711
- };
2382
+ });
2383
+ if (equals_dayCapacityList_items === false) {
2384
+ return false;
2385
+ }
2386
+ return true;
2387
+ }
1712
2388
 
1713
- function validate$g(obj, path = 'CreateServiceAppointmentInputRepresentation') {
2389
+ const VERSION$e = "78e3f0760ab3fc0ba358665bd29dcdc9";
2390
+ function validate$g(obj, path = 'ServiceTerritoryCapacityWorkTypeListResult') {
1714
2391
  const v_error = (() => {
1715
2392
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1716
2393
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1717
2394
  }
1718
- if (obj.assignedResources !== undefined) {
1719
- const obj_assignedResources = obj.assignedResources;
1720
- const path_assignedResources = path + '.assignedResources';
1721
- if (!ArrayIsArray(obj_assignedResources)) {
1722
- return new TypeError('Expected "array" but received "' + typeof obj_assignedResources + '" (at "' + path_assignedResources + '")');
1723
- }
1724
- for (let i = 0; i < obj_assignedResources.length; i++) {
1725
- const obj_assignedResources_item = obj_assignedResources[i];
1726
- const path_assignedResources_item = path_assignedResources + '[' + i + ']';
1727
- if (typeof obj_assignedResources_item !== 'object' || ArrayIsArray(obj_assignedResources_item) || obj_assignedResources_item === null) {
1728
- return new TypeError('Expected "object" but received "' + typeof obj_assignedResources_item + '" (at "' + path_assignedResources_item + '")');
1729
- }
1730
- }
1731
- }
1732
- if (obj.lead !== undefined) {
1733
- const obj_lead = obj.lead;
1734
- const path_lead = path + '.lead';
1735
- if (typeof obj_lead !== 'object' || ArrayIsArray(obj_lead) || obj_lead === null) {
1736
- return new TypeError('Expected "object" but received "' + typeof obj_lead + '" (at "' + path_lead + '")');
2395
+ const obj_serviceTerritoryCapacityWorkTypeListResult = obj.serviceTerritoryCapacityWorkTypeListResult;
2396
+ const path_serviceTerritoryCapacityWorkTypeListResult = path + '.serviceTerritoryCapacityWorkTypeListResult';
2397
+ if (!ArrayIsArray(obj_serviceTerritoryCapacityWorkTypeListResult)) {
2398
+ return new TypeError('Expected "array" but received "' + typeof obj_serviceTerritoryCapacityWorkTypeListResult + '" (at "' + path_serviceTerritoryCapacityWorkTypeListResult + '")');
2399
+ }
2400
+ for (let i = 0; i < obj_serviceTerritoryCapacityWorkTypeListResult.length; i++) {
2401
+ const obj_serviceTerritoryCapacityWorkTypeListResult_item = obj_serviceTerritoryCapacityWorkTypeListResult[i];
2402
+ const path_serviceTerritoryCapacityWorkTypeListResult_item = path_serviceTerritoryCapacityWorkTypeListResult + '[' + i + ']';
2403
+ const referencepath_serviceTerritoryCapacityWorkTypeListResult_itemValidationError = validate$h(obj_serviceTerritoryCapacityWorkTypeListResult_item, path_serviceTerritoryCapacityWorkTypeListResult_item);
2404
+ if (referencepath_serviceTerritoryCapacityWorkTypeListResult_itemValidationError !== null) {
2405
+ let message = 'Object doesn\'t match ServiceTerritoryWorkTypeCapacity (at "' + path_serviceTerritoryCapacityWorkTypeListResult_item + '")\n';
2406
+ message += referencepath_serviceTerritoryCapacityWorkTypeListResult_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2407
+ return new TypeError(message);
1737
2408
  }
1738
2409
  }
1739
- if (obj.schedulingPolicyId !== undefined) {
1740
- const obj_schedulingPolicyId = obj.schedulingPolicyId;
1741
- const path_schedulingPolicyId = path + '.schedulingPolicyId';
1742
- if (typeof obj_schedulingPolicyId !== 'string') {
1743
- return new TypeError('Expected "string" but received "' + typeof obj_schedulingPolicyId + '" (at "' + path_schedulingPolicyId + '")');
2410
+ })();
2411
+ return v_error === undefined ? null : v_error;
2412
+ }
2413
+ const select$j = function ServiceTerritoryCapacityWorkTypeListResultSelect() {
2414
+ const { selections: ServiceTerritoryWorkTypeCapacity__selections, opaque: ServiceTerritoryWorkTypeCapacity__opaque, } = select$k();
2415
+ return {
2416
+ kind: 'Fragment',
2417
+ version: VERSION$e,
2418
+ private: [],
2419
+ selections: [
2420
+ {
2421
+ name: 'serviceTerritoryCapacityWorkTypeListResult',
2422
+ kind: 'Object',
2423
+ plural: true,
2424
+ selections: ServiceTerritoryWorkTypeCapacity__selections
1744
2425
  }
2426
+ ]
2427
+ };
2428
+ };
2429
+ function equals$e(existing, incoming) {
2430
+ const existing_serviceTerritoryCapacityWorkTypeListResult = existing.serviceTerritoryCapacityWorkTypeListResult;
2431
+ const incoming_serviceTerritoryCapacityWorkTypeListResult = incoming.serviceTerritoryCapacityWorkTypeListResult;
2432
+ const equals_serviceTerritoryCapacityWorkTypeListResult_items = equalsArray(existing_serviceTerritoryCapacityWorkTypeListResult, incoming_serviceTerritoryCapacityWorkTypeListResult, (existing_serviceTerritoryCapacityWorkTypeListResult_item, incoming_serviceTerritoryCapacityWorkTypeListResult_item) => {
2433
+ if (!(equals$f(existing_serviceTerritoryCapacityWorkTypeListResult_item, incoming_serviceTerritoryCapacityWorkTypeListResult_item))) {
2434
+ return false;
1745
2435
  }
1746
- if (obj.serviceAppointment !== undefined) {
1747
- const obj_serviceAppointment = obj.serviceAppointment;
1748
- const path_serviceAppointment = path + '.serviceAppointment';
1749
- if (typeof obj_serviceAppointment !== 'object' || ArrayIsArray(obj_serviceAppointment) || obj_serviceAppointment === null) {
1750
- return new TypeError('Expected "object" but received "' + typeof obj_serviceAppointment + '" (at "' + path_serviceAppointment + '")');
1751
- }
2436
+ });
2437
+ if (equals_serviceTerritoryCapacityWorkTypeListResult_items === false) {
2438
+ return false;
2439
+ }
2440
+ return true;
2441
+ }
2442
+
2443
+ const VERSION$d = "e5b654f8e34cc1712e1c90d2038ebe3f";
2444
+ function validate$f(obj, path = 'GetServiceTerritoryCapacityOutputRepresentation') {
2445
+ const v_error = (() => {
2446
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2447
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1752
2448
  }
1753
- if (obj.serviceAppointmentId !== undefined) {
1754
- const obj_serviceAppointmentId = obj.serviceAppointmentId;
1755
- const path_serviceAppointmentId = path + '.serviceAppointmentId';
1756
- if (typeof obj_serviceAppointmentId !== 'string') {
1757
- return new TypeError('Expected "string" but received "' + typeof obj_serviceAppointmentId + '" (at "' + path_serviceAppointmentId + '")');
1758
- }
2449
+ const obj_result = obj.result;
2450
+ const path_result = path + '.result';
2451
+ const referencepath_resultValidationError = validate$g(obj_result, path_result);
2452
+ if (referencepath_resultValidationError !== null) {
2453
+ let message = 'Object doesn\'t match ServiceTerritoryCapacityWorkTypeListResult (at "' + path_result + '")\n';
2454
+ message += referencepath_resultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2455
+ return new TypeError(message);
1759
2456
  }
1760
2457
  })();
1761
2458
  return v_error === undefined ? null : v_error;
1762
2459
  }
2460
+ const RepresentationType$6 = 'GetServiceTerritoryCapacityOutputRepresentation';
2461
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
2462
+ return input;
2463
+ }
2464
+ const select$i = function GetServiceTerritoryCapacityOutputRepresentationSelect() {
2465
+ const { selections: ServiceTerritoryCapacityWorkTypeListResult__selections, opaque: ServiceTerritoryCapacityWorkTypeListResult__opaque, } = select$j();
2466
+ return {
2467
+ kind: 'Fragment',
2468
+ version: VERSION$d,
2469
+ private: [],
2470
+ selections: [
2471
+ {
2472
+ name: 'result',
2473
+ kind: 'Object',
2474
+ selections: ServiceTerritoryCapacityWorkTypeListResult__selections
2475
+ }
2476
+ ]
2477
+ };
2478
+ };
2479
+ function equals$d(existing, incoming) {
2480
+ const existing_result = existing.result;
2481
+ const incoming_result = incoming.result;
2482
+ if (!(equals$e(existing_result, incoming_result))) {
2483
+ return false;
2484
+ }
2485
+ return true;
2486
+ }
2487
+ const ingest$6 = function GetServiceTerritoryCapacityOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2488
+ if (process.env.NODE_ENV !== 'production') {
2489
+ const validateError = validate$f(input);
2490
+ if (validateError !== null) {
2491
+ throw validateError;
2492
+ }
2493
+ }
2494
+ const key = path.fullPath;
2495
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
2496
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "IndustriesScheduler", VERSION$d, RepresentationType$6, equals$d);
2497
+ return createLink(key);
2498
+ };
2499
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
2500
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2501
+ const rootKey = fullPathFactory();
2502
+ rootKeySet.set(rootKey, {
2503
+ namespace: keyPrefix,
2504
+ representationName: RepresentationType$6,
2505
+ mergeable: false
2506
+ });
2507
+ }
1763
2508
 
1764
- function select$i(luvio, params) {
1765
- return select$k();
2509
+ function select$h(luvio, params) {
2510
+ return select$i();
2511
+ }
2512
+ function keyBuilder$9(luvio, params) {
2513
+ return keyPrefix + '::GetServiceTerritoryCapacityOutputRepresentation:(' + 'endDate:' + params.queryParams.endDate + ',' + 'serviceTerritoryId:' + params.queryParams.serviceTerritoryId + ',' + 'startDate:' + params.queryParams.startDate + ')';
1766
2514
  }
1767
2515
  function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1768
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
2516
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
1769
2517
  }
1770
- function ingestSuccess$4(luvio, resourceParams, response) {
2518
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1771
2519
  const { body } = response;
1772
- const key = keyBuilderFromType$4(luvio, body);
2520
+ const key = keyBuilder$9(luvio, resourceParams);
1773
2521
  luvio.storeIngest(key, ingest$6, body);
1774
2522
  const snapshot = luvio.storeLookup({
1775
2523
  recordId: key,
1776
- node: select$i(),
2524
+ node: select$h(),
1777
2525
  variables: {},
1778
- });
2526
+ }, snapshotRefresh);
1779
2527
  if (process.env.NODE_ENV !== 'production') {
1780
2528
  if (snapshot.state !== 'Fulfilled') {
1781
2529
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
@@ -1784,33 +2532,41 @@ function ingestSuccess$4(luvio, resourceParams, response) {
1784
2532
  deepFreeze(snapshot.data);
1785
2533
  return snapshot;
1786
2534
  }
2535
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
2536
+ const key = keyBuilder$9(luvio, params);
2537
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2538
+ luvio.storeIngestError(key, errorSnapshot);
2539
+ return errorSnapshot;
2540
+ }
1787
2541
  function createResourceRequest$4(config) {
1788
2542
  const headers = {};
1789
2543
  return {
1790
2544
  baseUri: '/services/data/v61.0',
1791
- basePath: '/connect/scheduling/service-appointments',
1792
- method: 'post',
1793
- body: config.body,
2545
+ basePath: '/connect/scheduling/service-territory-capacity',
2546
+ method: 'get',
2547
+ body: null,
1794
2548
  urlParams: {},
1795
- queryParams: {},
2549
+ queryParams: config.queryParams,
1796
2550
  headers,
1797
2551
  priority: 'normal',
1798
2552
  };
1799
2553
  }
1800
2554
 
1801
- const adapterName$4 = 'createServiceAppointment';
1802
- const createServiceAppointment_ConfigPropertyMetadata = [
1803
- generateParamConfigMetadata('createServiceAppointmentInput', true, 2 /* Body */, 4 /* Unsupported */),
2555
+ const adapterName$4 = 'getServiceTerritoryCapacity';
2556
+ const getServiceTerritoryCapacity_ConfigPropertyMetadata = [
2557
+ generateParamConfigMetadata('endDate', false, 1 /* QueryParameter */, 0 /* String */),
2558
+ generateParamConfigMetadata('serviceTerritoryId', false, 1 /* QueryParameter */, 0 /* String */),
2559
+ generateParamConfigMetadata('startDate', false, 1 /* QueryParameter */, 0 /* String */),
1804
2560
  ];
1805
- const createServiceAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createServiceAppointment_ConfigPropertyMetadata);
1806
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(createServiceAppointment_ConfigPropertyMetadata);
2561
+ const getServiceTerritoryCapacity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getServiceTerritoryCapacity_ConfigPropertyMetadata);
2562
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(getServiceTerritoryCapacity_ConfigPropertyMetadata);
2563
+ function keyBuilder$8(luvio, config) {
2564
+ const resourceParams = createResourceParams$4(config);
2565
+ return keyBuilder$9(luvio, resourceParams);
2566
+ }
1807
2567
  function typeCheckConfig$4(untrustedConfig) {
1808
2568
  const config = {};
1809
- const untrustedConfig_createServiceAppointmentInput = untrustedConfig.createServiceAppointmentInput;
1810
- const referenceCreateServiceAppointmentInputRepresentationValidationError = validate$g(untrustedConfig_createServiceAppointmentInput);
1811
- if (referenceCreateServiceAppointmentInputRepresentationValidationError === null) {
1812
- config.createServiceAppointmentInput = untrustedConfig_createServiceAppointmentInput;
1813
- }
2569
+ typeCheckConfig$c(untrustedConfig, config, getServiceTerritoryCapacity_ConfigPropertyMetadata);
1814
2570
  return config;
1815
2571
  }
1816
2572
  function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
@@ -1826,36 +2582,65 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1826
2582
  }
1827
2583
  return config;
1828
2584
  }
2585
+ function adapterFragment$2(luvio, config) {
2586
+ createResourceParams$4(config);
2587
+ return select$h();
2588
+ }
2589
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
2590
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2591
+ config,
2592
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2593
+ });
2594
+ return luvio.storeBroadcast().then(() => snapshot);
2595
+ }
2596
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
2597
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
2598
+ config,
2599
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2600
+ });
2601
+ return luvio.storeBroadcast().then(() => snapshot);
2602
+ }
1829
2603
  function buildNetworkSnapshot$4(luvio, config, options) {
1830
2604
  const resourceParams = createResourceParams$4(config);
1831
2605
  const request = createResourceRequest$4(resourceParams);
1832
2606
  return luvio.dispatchResourceRequest(request, options)
1833
2607
  .then((response) => {
1834
- return luvio.handleSuccessResponse(() => {
1835
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
1836
- return luvio.storeBroadcast().then(() => snapshot);
1837
- }, () => {
2608
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
1838
2609
  const cache = new StoreKeyMap();
1839
2610
  getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1840
2611
  return cache;
1841
2612
  });
1842
2613
  }, (response) => {
1843
- deepFreeze(response);
1844
- throw response;
2614
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
1845
2615
  });
1846
2616
  }
1847
- const createServiceAppointmentAdapterFactory = (luvio) => {
1848
- return function createServiceAppointment(untrustedConfig) {
1849
- const config = validateAdapterConfig$4(untrustedConfig, createServiceAppointment_ConfigPropertyNames);
1850
- // Invalid or incomplete config
1851
- if (config === null) {
1852
- throw new Error('Invalid config for "createServiceAppointment"');
1853
- }
1854
- return buildNetworkSnapshot$4(luvio, config);
2617
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2618
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2619
+ }
2620
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2621
+ const { luvio, config } = context;
2622
+ const selector = {
2623
+ recordId: keyBuilder$8(luvio, config),
2624
+ node: adapterFragment$2(luvio, config),
2625
+ variables: {},
1855
2626
  };
2627
+ const cacheSnapshot = storeLookup(selector, {
2628
+ config,
2629
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2630
+ });
2631
+ return cacheSnapshot;
2632
+ }
2633
+ const getServiceTerritoryCapacityAdapterFactory = (luvio) => function IndustriesScheduler__getServiceTerritoryCapacity(untrustedConfig, requestContext) {
2634
+ const config = validateAdapterConfig$4(untrustedConfig, getServiceTerritoryCapacity_ConfigPropertyNames);
2635
+ // Invalid or incomplete config
2636
+ if (config === null) {
2637
+ return null;
2638
+ }
2639
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2640
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
1856
2641
  };
1857
2642
 
1858
- function validate$f(obj, path = 'WaitlistAppointmentInputRepresentation') {
2643
+ function validate$e(obj, path = 'WaitlistAppointmentInputRepresentation') {
1859
2644
  const v_error = (() => {
1860
2645
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1861
2646
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1874,8 +2659,8 @@ function validate$f(obj, path = 'WaitlistAppointmentInputRepresentation') {
1874
2659
  return v_error === undefined ? null : v_error;
1875
2660
  }
1876
2661
 
1877
- const VERSION$d = "2388e3a226fc68c6f2df6f2089af2eb9";
1878
- function validate$e(obj, path = 'WaitlistAppointmentResult') {
2662
+ const VERSION$c = "2388e3a226fc68c6f2df6f2089af2eb9";
2663
+ function validate$d(obj, path = 'WaitlistAppointmentResult') {
1879
2664
  const v_error = (() => {
1880
2665
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1881
2666
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1915,10 +2700,10 @@ function keyBuilderFromType$3(luvio, object) {
1915
2700
  function normalize$5(input, existing, path, luvio, store, timestamp) {
1916
2701
  return input;
1917
2702
  }
1918
- const select$h = function WaitlistAppointmentResultSelect() {
2703
+ const select$g = function WaitlistAppointmentResultSelect() {
1919
2704
  return {
1920
2705
  kind: 'Fragment',
1921
- version: VERSION$d,
2706
+ version: VERSION$c,
1922
2707
  private: [],
1923
2708
  selections: [
1924
2709
  {
@@ -1938,7 +2723,7 @@ const select$h = function WaitlistAppointmentResultSelect() {
1938
2723
  ]
1939
2724
  };
1940
2725
  };
1941
- function equals$d(existing, incoming) {
2726
+ function equals$c(existing, incoming) {
1942
2727
  const existing_assignedResourceId = existing.assignedResourceId;
1943
2728
  const incoming_assignedResourceId = incoming.assignedResourceId;
1944
2729
  // if at least one of these optionals is defined
@@ -1974,14 +2759,14 @@ function equals$d(existing, incoming) {
1974
2759
  }
1975
2760
  const ingest$5 = function WaitlistAppointmentResultIngest(input, path, luvio, store, timestamp) {
1976
2761
  if (process.env.NODE_ENV !== 'production') {
1977
- const validateError = validate$e(input);
2762
+ const validateError = validate$d(input);
1978
2763
  if (validateError !== null) {
1979
2764
  throw validateError;
1980
2765
  }
1981
2766
  }
1982
2767
  const key = keyBuilderFromType$3(luvio, input);
1983
2768
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1984
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "IndustriesScheduler", VERSION$d, RepresentationType$5, equals$d);
2769
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "IndustriesScheduler", VERSION$c, RepresentationType$5, equals$c);
1985
2770
  return createLink(key);
1986
2771
  };
1987
2772
  function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
@@ -1994,8 +2779,8 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1994
2779
  });
1995
2780
  }
1996
2781
 
1997
- const VERSION$c = "5799b00165759bd7affc50aeb97a1898";
1998
- function validate$d(obj, path = 'WaitlistAppointmentOutputRepresentation') {
2782
+ const VERSION$b = "5799b00165759bd7affc50aeb97a1898";
2783
+ function validate$c(obj, path = 'WaitlistAppointmentOutputRepresentation') {
1999
2784
  const v_error = (() => {
2000
2785
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2001
2786
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2033,21 +2818,21 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
2033
2818
  }, luvio, store, timestamp);
2034
2819
  return input;
2035
2820
  }
2036
- const select$g = function WaitlistAppointmentOutputRepresentationSelect() {
2821
+ const select$f = function WaitlistAppointmentOutputRepresentationSelect() {
2037
2822
  return {
2038
2823
  kind: 'Fragment',
2039
- version: VERSION$c,
2824
+ version: VERSION$b,
2040
2825
  private: [],
2041
2826
  selections: [
2042
2827
  {
2043
2828
  name: 'result',
2044
2829
  kind: 'Link',
2045
- fragment: select$h()
2830
+ fragment: select$g()
2046
2831
  }
2047
2832
  ]
2048
2833
  };
2049
2834
  };
2050
- function equals$c(existing, incoming) {
2835
+ function equals$b(existing, incoming) {
2051
2836
  const existing_result = existing.result;
2052
2837
  const incoming_result = incoming.result;
2053
2838
  if (!(existing_result.__ref === incoming_result.__ref)) {
@@ -2057,14 +2842,14 @@ function equals$c(existing, incoming) {
2057
2842
  }
2058
2843
  const ingest$4 = function WaitlistAppointmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2059
2844
  if (process.env.NODE_ENV !== 'production') {
2060
- const validateError = validate$d(input);
2845
+ const validateError = validate$c(input);
2061
2846
  if (validateError !== null) {
2062
2847
  throw validateError;
2063
2848
  }
2064
2849
  }
2065
2850
  const key = keyBuilderFromType$2(luvio, input);
2066
2851
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
2067
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "IndustriesScheduler", VERSION$c, RepresentationType$4, equals$c);
2852
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "IndustriesScheduler", VERSION$b, RepresentationType$4, equals$b);
2068
2853
  return createLink(key);
2069
2854
  };
2070
2855
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -2078,8 +2863,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2078
2863
  getTypeCacheKeys$5(rootKeySet, luvio, input.result);
2079
2864
  }
2080
2865
 
2081
- function select$f(luvio, params) {
2082
- return select$g();
2866
+ function select$e(luvio, params) {
2867
+ return select$f();
2083
2868
  }
2084
2869
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2085
2870
  getTypeCacheKeys$4(storeKeyMap, luvio, response);
@@ -2090,7 +2875,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
2090
2875
  luvio.storeIngest(key, ingest$4, body);
2091
2876
  const snapshot = luvio.storeLookup({
2092
2877
  recordId: key,
2093
- node: select$f(),
2878
+ node: select$e(),
2094
2879
  variables: {},
2095
2880
  });
2096
2881
  if (process.env.NODE_ENV !== 'production') {
@@ -2120,11 +2905,11 @@ const createWaitlistAppointment_ConfigPropertyMetadata = [
2120
2905
  generateParamConfigMetadata('waitlistAppointmentInput', true, 2 /* Body */, 4 /* Unsupported */),
2121
2906
  ];
2122
2907
  const createWaitlistAppointment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createWaitlistAppointment_ConfigPropertyMetadata);
2123
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(createWaitlistAppointment_ConfigPropertyMetadata);
2908
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(createWaitlistAppointment_ConfigPropertyMetadata);
2124
2909
  function typeCheckConfig$3(untrustedConfig) {
2125
2910
  const config = {};
2126
2911
  const untrustedConfig_waitlistAppointmentInput = untrustedConfig.waitlistAppointmentInput;
2127
- const referenceWaitlistAppointmentInputRepresentationValidationError = validate$f(untrustedConfig_waitlistAppointmentInput);
2912
+ const referenceWaitlistAppointmentInputRepresentationValidationError = validate$e(untrustedConfig_waitlistAppointmentInput);
2128
2913
  if (referenceWaitlistAppointmentInputRepresentationValidationError === null) {
2129
2914
  config.waitlistAppointmentInput = untrustedConfig_waitlistAppointmentInput;
2130
2915
  }
@@ -2172,7 +2957,7 @@ const createWaitlistAppointmentAdapterFactory = (luvio) => {
2172
2957
  };
2173
2958
  };
2174
2959
 
2175
- function validate$c(obj, path = 'WaitlistCheckInInputRepresentation') {
2960
+ function validate$b(obj, path = 'WaitlistCheckInInputRepresentation') {
2176
2961
  const v_error = (() => {
2177
2962
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2178
2963
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2242,8 +3027,8 @@ function validate$c(obj, path = 'WaitlistCheckInInputRepresentation') {
2242
3027
  return v_error === undefined ? null : v_error;
2243
3028
  }
2244
3029
 
2245
- const VERSION$b = "4fbac69ed905edc864d482f04963c3a8";
2246
- function validate$b(obj, path = 'WaitlistCheckInResult') {
3030
+ const VERSION$a = "4fbac69ed905edc864d482f04963c3a8";
3031
+ function validate$a(obj, path = 'WaitlistCheckInResult') {
2247
3032
  const v_error = (() => {
2248
3033
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2249
3034
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2283,10 +3068,10 @@ function keyBuilderFromType$1(luvio, object) {
2283
3068
  function normalize$3(input, existing, path, luvio, store, timestamp) {
2284
3069
  return input;
2285
3070
  }
2286
- const select$e = function WaitlistCheckInResultSelect() {
3071
+ const select$d = function WaitlistCheckInResultSelect() {
2287
3072
  return {
2288
3073
  kind: 'Fragment',
2289
- version: VERSION$b,
3074
+ version: VERSION$a,
2290
3075
  private: [],
2291
3076
  selections: [
2292
3077
  {
@@ -2306,7 +3091,7 @@ const select$e = function WaitlistCheckInResultSelect() {
2306
3091
  ]
2307
3092
  };
2308
3093
  };
2309
- function equals$b(existing, incoming) {
3094
+ function equals$a(existing, incoming) {
2310
3095
  const existing_participantId = existing.participantId;
2311
3096
  const incoming_participantId = incoming.participantId;
2312
3097
  // if at least one of these optionals is defined
@@ -2342,14 +3127,14 @@ function equals$b(existing, incoming) {
2342
3127
  }
2343
3128
  const ingest$3 = function WaitlistCheckInResultIngest(input, path, luvio, store, timestamp) {
2344
3129
  if (process.env.NODE_ENV !== 'production') {
2345
- const validateError = validate$b(input);
3130
+ const validateError = validate$a(input);
2346
3131
  if (validateError !== null) {
2347
3132
  throw validateError;
2348
3133
  }
2349
3134
  }
2350
3135
  const key = keyBuilderFromType$1(luvio, input);
2351
3136
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
2352
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "IndustriesScheduler", VERSION$b, RepresentationType$3, equals$b);
3137
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "IndustriesScheduler", VERSION$a, RepresentationType$3, equals$a);
2353
3138
  return createLink(key);
2354
3139
  };
2355
3140
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -2362,8 +3147,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2362
3147
  });
2363
3148
  }
2364
3149
 
2365
- const VERSION$a = "6e5688bfa73cabc430625d75ccf54af9";
2366
- function validate$a(obj, path = 'WaitlistCheckInOutputRepresentation') {
3150
+ const VERSION$9 = "6e5688bfa73cabc430625d75ccf54af9";
3151
+ function validate$9(obj, path = 'WaitlistCheckInOutputRepresentation') {
2367
3152
  const v_error = (() => {
2368
3153
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2369
3154
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2401,21 +3186,21 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
2401
3186
  }, luvio, store, timestamp);
2402
3187
  return input;
2403
3188
  }
2404
- const select$d = function WaitlistCheckInOutputRepresentationSelect() {
3189
+ const select$c = function WaitlistCheckInOutputRepresentationSelect() {
2405
3190
  return {
2406
3191
  kind: 'Fragment',
2407
- version: VERSION$a,
3192
+ version: VERSION$9,
2408
3193
  private: [],
2409
3194
  selections: [
2410
3195
  {
2411
3196
  name: 'result',
2412
3197
  kind: 'Link',
2413
- fragment: select$e()
3198
+ fragment: select$d()
2414
3199
  }
2415
3200
  ]
2416
3201
  };
2417
3202
  };
2418
- function equals$a(existing, incoming) {
3203
+ function equals$9(existing, incoming) {
2419
3204
  const existing_result = existing.result;
2420
3205
  const incoming_result = incoming.result;
2421
3206
  if (!(existing_result.__ref === incoming_result.__ref)) {
@@ -2425,14 +3210,14 @@ function equals$a(existing, incoming) {
2425
3210
  }
2426
3211
  const ingest$2 = function WaitlistCheckInOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2427
3212
  if (process.env.NODE_ENV !== 'production') {
2428
- const validateError = validate$a(input);
3213
+ const validateError = validate$9(input);
2429
3214
  if (validateError !== null) {
2430
3215
  throw validateError;
2431
3216
  }
2432
3217
  }
2433
3218
  const key = keyBuilderFromType(luvio, input);
2434
3219
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
2435
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "IndustriesScheduler", VERSION$a, RepresentationType$2, equals$a);
3220
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "IndustriesScheduler", VERSION$9, RepresentationType$2, equals$9);
2436
3221
  return createLink(key);
2437
3222
  };
2438
3223
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -2446,8 +3231,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2446
3231
  getTypeCacheKeys$3(rootKeySet, luvio, input.result);
2447
3232
  }
2448
3233
 
2449
- function select$c(luvio, params) {
2450
- return select$d();
3234
+ function select$b(luvio, params) {
3235
+ return select$c();
2451
3236
  }
2452
3237
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2453
3238
  getTypeCacheKeys$2(storeKeyMap, luvio, response);
@@ -2458,7 +3243,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
2458
3243
  luvio.storeIngest(key, ingest$2, body);
2459
3244
  const snapshot = luvio.storeLookup({
2460
3245
  recordId: key,
2461
- node: select$c(),
3246
+ node: select$b(),
2462
3247
  variables: {},
2463
3248
  });
2464
3249
  if (process.env.NODE_ENV !== 'production') {
@@ -2488,11 +3273,11 @@ const createWaitlistCheckIn_ConfigPropertyMetadata = [
2488
3273
  generateParamConfigMetadata('waitlistCheckInInput', true, 2 /* Body */, 4 /* Unsupported */),
2489
3274
  ];
2490
3275
  const createWaitlistCheckIn_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createWaitlistCheckIn_ConfigPropertyMetadata);
2491
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(createWaitlistCheckIn_ConfigPropertyMetadata);
3276
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(createWaitlistCheckIn_ConfigPropertyMetadata);
2492
3277
  function typeCheckConfig$2(untrustedConfig) {
2493
3278
  const config = {};
2494
3279
  const untrustedConfig_waitlistCheckInInput = untrustedConfig.waitlistCheckInInput;
2495
- const referenceWaitlistCheckInInputRepresentationValidationError = validate$c(untrustedConfig_waitlistCheckInInput);
3280
+ const referenceWaitlistCheckInInputRepresentationValidationError = validate$b(untrustedConfig_waitlistCheckInInput);
2496
3281
  if (referenceWaitlistCheckInInputRepresentationValidationError === null) {
2497
3282
  config.waitlistCheckInInput = untrustedConfig_waitlistCheckInInput;
2498
3283
  }
@@ -2540,8 +3325,8 @@ const createWaitlistCheckInAdapterFactory = (luvio) => {
2540
3325
  };
2541
3326
  };
2542
3327
 
2543
- const VERSION$9 = "5a8d355aacd467fef5d099caef462b30";
2544
- function validate$9(obj, path = 'WaitlistAnalytics') {
3328
+ const VERSION$8 = "5a8d355aacd467fef5d099caef462b30";
3329
+ function validate$8(obj, path = 'WaitlistAnalytics') {
2545
3330
  const v_error = (() => {
2546
3331
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2547
3332
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2585,10 +3370,10 @@ function validate$9(obj, path = 'WaitlistAnalytics') {
2585
3370
  })();
2586
3371
  return v_error === undefined ? null : v_error;
2587
3372
  }
2588
- const select$b = function WaitlistAnalyticsSelect() {
3373
+ const select$a = function WaitlistAnalyticsSelect() {
2589
3374
  return {
2590
3375
  kind: 'Fragment',
2591
- version: VERSION$9,
3376
+ version: VERSION$8,
2592
3377
  private: [],
2593
3378
  selections: [
2594
3379
  {
@@ -2621,7 +3406,7 @@ const select$b = function WaitlistAnalyticsSelect() {
2621
3406
  ]
2622
3407
  };
2623
3408
  };
2624
- function equals$9(existing, incoming) {
3409
+ function equals$8(existing, incoming) {
2625
3410
  const existing_avgParticipants = existing.avgParticipants;
2626
3411
  const incoming_avgParticipants = incoming.avgParticipants;
2627
3412
  if (!(existing_avgParticipants === incoming_avgParticipants)) {
@@ -2679,56 +3464,6 @@ function equals$9(existing, incoming) {
2679
3464
  return true;
2680
3465
  }
2681
3466
 
2682
- const VERSION$8 = "c53d2d7c54f3f7e132ff8f6059f30726";
2683
- function validate$8(obj, path = 'ExtendedFieldsOutputRepresentation') {
2684
- const v_error = (() => {
2685
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2686
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2687
- }
2688
- const obj_name = obj.name;
2689
- const path_name = path + '.name';
2690
- if (typeof obj_name !== 'string') {
2691
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2692
- }
2693
- const obj_value = obj.value;
2694
- const path_value = path + '.value';
2695
- if (typeof obj_value !== 'string') {
2696
- return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
2697
- }
2698
- })();
2699
- return v_error === undefined ? null : v_error;
2700
- }
2701
- const select$a = function ExtendedFieldsOutputRepresentationSelect() {
2702
- return {
2703
- kind: 'Fragment',
2704
- version: VERSION$8,
2705
- private: [],
2706
- selections: [
2707
- {
2708
- name: 'name',
2709
- kind: 'Scalar'
2710
- },
2711
- {
2712
- name: 'value',
2713
- kind: 'Scalar'
2714
- }
2715
- ]
2716
- };
2717
- };
2718
- function equals$8(existing, incoming) {
2719
- const existing_name = existing.name;
2720
- const incoming_name = incoming.name;
2721
- if (!(existing_name === incoming_name)) {
2722
- return false;
2723
- }
2724
- const existing_value = existing.value;
2725
- const incoming_value = incoming.value;
2726
- if (!(existing_value === incoming_value)) {
2727
- return false;
2728
- }
2729
- return true;
2730
- }
2731
-
2732
3467
  const VERSION$7 = "d2fff3a212d202fe7105cf673cefd052";
2733
3468
  function validate$7(obj, path = 'WaitlistParticipantParticipant') {
2734
3469
  const v_error = (() => {
@@ -2820,7 +3555,7 @@ function validate$6(obj, path = 'WaitlistParticipantResult') {
2820
3555
  for (let i = 0; i < obj_extendedFields.length; i++) {
2821
3556
  const obj_extendedFields_item = obj_extendedFields[i];
2822
3557
  const path_extendedFields_item = path_extendedFields + '[' + i + ']';
2823
- const referencepath_extendedFields_itemValidationError = validate$8(obj_extendedFields_item, path_extendedFields_item);
3558
+ const referencepath_extendedFields_itemValidationError = validate$p(obj_extendedFields_item, path_extendedFields_item);
2824
3559
  if (referencepath_extendedFields_itemValidationError !== null) {
2825
3560
  let message = 'Object doesn\'t match ExtendedFieldsOutputRepresentation (at "' + path_extendedFields_item + '")\n';
2826
3561
  message += referencepath_extendedFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2852,7 +3587,7 @@ function validate$6(obj, path = 'WaitlistParticipantResult') {
2852
3587
  if (obj.serviceResource !== undefined) {
2853
3588
  const obj_serviceResource = obj.serviceResource;
2854
3589
  const path_serviceResource = path + '.serviceResource';
2855
- const referencepath_serviceResourceValidationError = validate$m(obj_serviceResource, path_serviceResource);
3590
+ const referencepath_serviceResourceValidationError = validate$s(obj_serviceResource, path_serviceResource);
2856
3591
  if (referencepath_serviceResourceValidationError !== null) {
2857
3592
  let message = 'Object doesn\'t match WaitlistServiceResource (at "' + path_serviceResource + '")\n';
2858
3593
  message += referencepath_serviceResourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2869,7 +3604,7 @@ function validate$6(obj, path = 'WaitlistParticipantResult') {
2869
3604
  if (obj.workTypeGroup !== undefined) {
2870
3605
  const obj_workTypeGroup = obj.workTypeGroup;
2871
3606
  const path_workTypeGroup = path + '.workTypeGroup';
2872
- const referencepath_workTypeGroupValidationError = validate$p(obj_workTypeGroup, path_workTypeGroup);
3607
+ const referencepath_workTypeGroupValidationError = validate$v(obj_workTypeGroup, path_workTypeGroup);
2873
3608
  if (referencepath_workTypeGroupValidationError !== null) {
2874
3609
  let message = 'Object doesn\'t match WaitlistWorkTypeGroup (at "' + path_workTypeGroup + '")\n';
2875
3610
  message += referencepath_workTypeGroupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2880,10 +3615,10 @@ function validate$6(obj, path = 'WaitlistParticipantResult') {
2880
3615
  return v_error === undefined ? null : v_error;
2881
3616
  }
2882
3617
  const select$8 = function WaitlistParticipantResultSelect() {
2883
- const { selections: ExtendedFieldsOutputRepresentation__selections, opaque: ExtendedFieldsOutputRepresentation__opaque, } = select$a();
3618
+ const { selections: ExtendedFieldsOutputRepresentation__selections, opaque: ExtendedFieldsOutputRepresentation__opaque, } = select$u();
2884
3619
  const { selections: WaitlistParticipantParticipant__selections, opaque: WaitlistParticipantParticipant__opaque, } = select$9();
2885
- const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$p();
2886
- const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$t();
3620
+ const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$y();
3621
+ const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$C();
2887
3622
  return {
2888
3623
  kind: 'Fragment',
2889
3624
  version: VERSION$6,
@@ -2974,7 +3709,7 @@ function equals$6(existing, incoming) {
2974
3709
  const existing_extendedFields = existing.extendedFields;
2975
3710
  const incoming_extendedFields = incoming.extendedFields;
2976
3711
  const equals_extendedFields_items = equalsArray(existing_extendedFields, incoming_extendedFields, (existing_extendedFields_item, incoming_extendedFields_item) => {
2977
- if (!(equals$8(existing_extendedFields_item, incoming_extendedFields_item))) {
3712
+ if (!(equals$l(existing_extendedFields_item, incoming_extendedFields_item))) {
2978
3713
  return false;
2979
3714
  }
2980
3715
  });
@@ -3003,7 +3738,7 @@ function equals$6(existing, incoming) {
3003
3738
  if (existing_serviceResource === undefined || incoming_serviceResource === undefined) {
3004
3739
  return false;
3005
3740
  }
3006
- if (!(equals$i(existing_serviceResource, incoming_serviceResource))) {
3741
+ if (!(equals$o(existing_serviceResource, incoming_serviceResource))) {
3007
3742
  return false;
3008
3743
  }
3009
3744
  }
@@ -3016,7 +3751,7 @@ function equals$6(existing, incoming) {
3016
3751
  if (existing_workTypeGroup === undefined || incoming_workTypeGroup === undefined) {
3017
3752
  return false;
3018
3753
  }
3019
- if (!(equals$l(existing_workTypeGroup, incoming_workTypeGroup))) {
3754
+ if (!(equals$r(existing_workTypeGroup, incoming_workTypeGroup))) {
3020
3755
  return false;
3021
3756
  }
3022
3757
  }
@@ -3059,7 +3794,7 @@ function validate$5(obj, path = 'WaitlistResult') {
3059
3794
  for (let i = 0; i < obj_serviceResources.length; i++) {
3060
3795
  const obj_serviceResources_item = obj_serviceResources[i];
3061
3796
  const path_serviceResources_item = path_serviceResources + '[' + i + ']';
3062
- const referencepath_serviceResources_itemValidationError = validate$m(obj_serviceResources_item, path_serviceResources_item);
3797
+ const referencepath_serviceResources_itemValidationError = validate$s(obj_serviceResources_item, path_serviceResources_item);
3063
3798
  if (referencepath_serviceResources_itemValidationError !== null) {
3064
3799
  let message = 'Object doesn\'t match WaitlistServiceResource (at "' + path_serviceResources_item + '")\n';
3065
3800
  message += referencepath_serviceResources_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3070,7 +3805,7 @@ function validate$5(obj, path = 'WaitlistResult') {
3070
3805
  if (obj.waitlistAnalytics !== undefined) {
3071
3806
  const obj_waitlistAnalytics = obj.waitlistAnalytics;
3072
3807
  const path_waitlistAnalytics = path + '.waitlistAnalytics';
3073
- const referencepath_waitlistAnalyticsValidationError = validate$9(obj_waitlistAnalytics, path_waitlistAnalytics);
3808
+ const referencepath_waitlistAnalyticsValidationError = validate$8(obj_waitlistAnalytics, path_waitlistAnalytics);
3074
3809
  if (referencepath_waitlistAnalyticsValidationError !== null) {
3075
3810
  let message = 'Object doesn\'t match WaitlistAnalytics (at "' + path_waitlistAnalytics + '")\n';
3076
3811
  message += referencepath_waitlistAnalyticsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3110,7 +3845,7 @@ function validate$5(obj, path = 'WaitlistResult') {
3110
3845
  for (let i = 0; i < obj_workTypeGroups.length; i++) {
3111
3846
  const obj_workTypeGroups_item = obj_workTypeGroups[i];
3112
3847
  const path_workTypeGroups_item = path_workTypeGroups + '[' + i + ']';
3113
- const referencepath_workTypeGroups_itemValidationError = validate$p(obj_workTypeGroups_item, path_workTypeGroups_item);
3848
+ const referencepath_workTypeGroups_itemValidationError = validate$v(obj_workTypeGroups_item, path_workTypeGroups_item);
3114
3849
  if (referencepath_workTypeGroups_itemValidationError !== null) {
3115
3850
  let message = 'Object doesn\'t match WaitlistWorkTypeGroup (at "' + path_workTypeGroups_item + '")\n';
3116
3851
  message += referencepath_workTypeGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3122,10 +3857,10 @@ function validate$5(obj, path = 'WaitlistResult') {
3122
3857
  return v_error === undefined ? null : v_error;
3123
3858
  }
3124
3859
  const select$7 = function WaitlistResultSelect() {
3125
- const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$p();
3126
- const { selections: WaitlistAnalytics__selections, opaque: WaitlistAnalytics__opaque, } = select$b();
3860
+ const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$y();
3861
+ const { selections: WaitlistAnalytics__selections, opaque: WaitlistAnalytics__opaque, } = select$a();
3127
3862
  const { selections: WaitlistParticipantResult__selections, opaque: WaitlistParticipantResult__opaque, } = select$8();
3128
- const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$t();
3863
+ const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$C();
3129
3864
  return {
3130
3865
  kind: 'Fragment',
3131
3866
  version: VERSION$5,
@@ -3244,7 +3979,7 @@ function equals$5(existing, incoming) {
3244
3979
  return false;
3245
3980
  }
3246
3981
  const equals_serviceResources_items = equalsArray(existing_serviceResources, incoming_serviceResources, (existing_serviceResources_item, incoming_serviceResources_item) => {
3247
- if (!(equals$i(existing_serviceResources_item, incoming_serviceResources_item))) {
3982
+ if (!(equals$o(existing_serviceResources_item, incoming_serviceResources_item))) {
3248
3983
  return false;
3249
3984
  }
3250
3985
  });
@@ -3261,7 +3996,7 @@ function equals$5(existing, incoming) {
3261
3996
  if (existing_waitlistAnalytics === undefined || incoming_waitlistAnalytics === undefined) {
3262
3997
  return false;
3263
3998
  }
3264
- if (!(equals$9(existing_waitlistAnalytics, incoming_waitlistAnalytics))) {
3999
+ if (!(equals$8(existing_waitlistAnalytics, incoming_waitlistAnalytics))) {
3265
4000
  return false;
3266
4001
  }
3267
4002
  }
@@ -3293,7 +4028,7 @@ function equals$5(existing, incoming) {
3293
4028
  return false;
3294
4029
  }
3295
4030
  const equals_workTypeGroups_items = equalsArray(existing_workTypeGroups, incoming_workTypeGroups, (existing_workTypeGroups_item, incoming_workTypeGroups_item) => {
3296
- if (!(equals$l(existing_workTypeGroups_item, incoming_workTypeGroups_item))) {
4031
+ if (!(equals$r(existing_workTypeGroups_item, incoming_workTypeGroups_item))) {
3297
4032
  return false;
3298
4033
  }
3299
4034
  });
@@ -3337,7 +4072,7 @@ function validate$4(obj, path = 'WaitlistWorkType') {
3337
4072
  if (obj.workTypeGroup !== undefined) {
3338
4073
  const obj_workTypeGroup = obj.workTypeGroup;
3339
4074
  const path_workTypeGroup = path + '.workTypeGroup';
3340
- const referencepath_workTypeGroupValidationError = validate$p(obj_workTypeGroup, path_workTypeGroup);
4075
+ const referencepath_workTypeGroupValidationError = validate$v(obj_workTypeGroup, path_workTypeGroup);
3341
4076
  if (referencepath_workTypeGroupValidationError !== null) {
3342
4077
  let message = 'Object doesn\'t match WaitlistWorkTypeGroup (at "' + path_workTypeGroup + '")\n';
3343
4078
  message += referencepath_workTypeGroupValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3349,7 +4084,7 @@ function validate$4(obj, path = 'WaitlistWorkType') {
3349
4084
  }
3350
4085
  const select$6 = function WaitlistWorkTypeSelect() {
3351
4086
  const { selections: WaitlistResult__selections, opaque: WaitlistResult__opaque, } = select$7();
3352
- const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$t();
4087
+ const { selections: WaitlistWorkTypeGroup__selections, opaque: WaitlistWorkTypeGroup__opaque, } = select$C();
3353
4088
  return {
3354
4089
  kind: 'Fragment',
3355
4090
  version: VERSION$4,
@@ -3429,7 +4164,7 @@ function equals$4(existing, incoming) {
3429
4164
  if (existing_workTypeGroup === undefined || incoming_workTypeGroup === undefined) {
3430
4165
  return false;
3431
4166
  }
3432
- if (!(equals$l(existing_workTypeGroup, incoming_workTypeGroup))) {
4167
+ if (!(equals$r(existing_workTypeGroup, incoming_workTypeGroup))) {
3433
4168
  return false;
3434
4169
  }
3435
4170
  }
@@ -3451,7 +4186,7 @@ function validate$3(obj, path = 'WaitlistRelationshipsResult') {
3451
4186
  for (let i = 0; i < obj_serviceResources.length; i++) {
3452
4187
  const obj_serviceResources_item = obj_serviceResources[i];
3453
4188
  const path_serviceResources_item = path_serviceResources + '[' + i + ']';
3454
- const referencepath_serviceResources_itemValidationError = validate$m(obj_serviceResources_item, path_serviceResources_item);
4189
+ const referencepath_serviceResources_itemValidationError = validate$s(obj_serviceResources_item, path_serviceResources_item);
3455
4190
  if (referencepath_serviceResources_itemValidationError !== null) {
3456
4191
  let message = 'Object doesn\'t match WaitlistServiceResource (at "' + path_serviceResources_item + '")\n';
3457
4192
  message += referencepath_serviceResources_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3480,7 +4215,7 @@ function validate$3(obj, path = 'WaitlistRelationshipsResult') {
3480
4215
  return v_error === undefined ? null : v_error;
3481
4216
  }
3482
4217
  const select$5 = function WaitlistRelationshipsResultSelect() {
3483
- const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$p();
4218
+ const { selections: WaitlistServiceResource__selections, opaque: WaitlistServiceResource__opaque, } = select$y();
3484
4219
  const { selections: WaitlistWorkType__selections, opaque: WaitlistWorkType__opaque, } = select$6();
3485
4220
  return {
3486
4221
  kind: 'Fragment',
@@ -3515,7 +4250,7 @@ function equals$3(existing, incoming) {
3515
4250
  return false;
3516
4251
  }
3517
4252
  const equals_serviceResources_items = equalsArray(existing_serviceResources, incoming_serviceResources, (existing_serviceResources_item, incoming_serviceResources_item) => {
3518
- if (!(equals$i(existing_serviceResources_item, incoming_serviceResources_item))) {
4253
+ if (!(equals$o(existing_serviceResources_item, incoming_serviceResources_item))) {
3519
4254
  return false;
3520
4255
  }
3521
4256
  });
@@ -3663,14 +4398,14 @@ const getWaitlistRelationships_ConfigPropertyMetadata = [
3663
4398
  generateParamConfigMetadata('workTypeIds', false, 1 /* QueryParameter */, 0 /* String */, true),
3664
4399
  ];
3665
4400
  const getWaitlistRelationships_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getWaitlistRelationships_ConfigPropertyMetadata);
3666
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(getWaitlistRelationships_ConfigPropertyMetadata);
4401
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(getWaitlistRelationships_ConfigPropertyMetadata);
3667
4402
  function keyBuilder$2(luvio, config) {
3668
4403
  const resourceParams = createResourceParams$1(config);
3669
4404
  return keyBuilder$3(luvio, resourceParams);
3670
4405
  }
3671
4406
  function typeCheckConfig$1(untrustedConfig) {
3672
4407
  const config = {};
3673
- typeCheckConfig$9(untrustedConfig, config, getWaitlistRelationships_ConfigPropertyMetadata);
4408
+ typeCheckConfig$c(untrustedConfig, config, getWaitlistRelationships_ConfigPropertyMetadata);
3674
4409
  return config;
3675
4410
  }
3676
4411
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -3719,7 +4454,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
3719
4454
  });
3720
4455
  }
3721
4456
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3722
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4457
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3723
4458
  }
3724
4459
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3725
4460
  const { luvio, config } = context;
@@ -3921,14 +4656,14 @@ const getWaitlists_ConfigPropertyMetadata = [
3921
4656
  generateParamConfigMetadata('waitlistIds', false, 1 /* QueryParameter */, 0 /* String */, true),
3922
4657
  ];
3923
4658
  const getWaitlists_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getWaitlists_ConfigPropertyMetadata);
3924
- const createResourceParams = /*#__PURE__*/ createResourceParams$9(getWaitlists_ConfigPropertyMetadata);
4659
+ const createResourceParams = /*#__PURE__*/ createResourceParams$c(getWaitlists_ConfigPropertyMetadata);
3925
4660
  function keyBuilder(luvio, config) {
3926
4661
  const resourceParams = createResourceParams(config);
3927
4662
  return keyBuilder$1(luvio, resourceParams);
3928
4663
  }
3929
4664
  function typeCheckConfig(untrustedConfig) {
3930
4665
  const config = {};
3931
- typeCheckConfig$9(untrustedConfig, config, getWaitlists_ConfigPropertyMetadata);
4666
+ typeCheckConfig$c(untrustedConfig, config, getWaitlists_ConfigPropertyMetadata);
3932
4667
  return config;
3933
4668
  }
3934
4669
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -3977,7 +4712,7 @@ function buildNetworkSnapshot(luvio, config, options) {
3977
4712
  });
3978
4713
  }
3979
4714
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3980
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4715
+ return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3981
4716
  }
3982
4717
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
3983
4718
  const { luvio, config } = context;
@@ -4002,4 +4737,4 @@ const getWaitlistsAdapterFactory = (luvio) => function IndustriesScheduler__getW
4002
4737
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
4003
4738
  };
4004
4739
 
4005
- export { createServiceAppointmentAdapterFactory, createWaitlistAppointmentAdapterFactory, createWaitlistCheckInAdapterFactory, getEngagementChannelTypesAdapterFactory, getNextWaitlistParticipantAdapterFactory, getParticipantRecentInteractionsAdapterFactory, getWaitlistRelationshipsAdapterFactory, getWaitlistsAdapterFactory, updateServiceAppointmentAdapterFactory };
4740
+ export { createServiceAppointmentAdapterFactory, createServiceAppointmentAttendeeAdapterFactory, createWaitlistAppointmentAdapterFactory, createWaitlistCheckInAdapterFactory, getEngagementChannelTypesAdapterFactory, getNextWaitlistParticipantAdapterFactory, getParticipantRecentInteractionsAdapterFactory, getServiceTerritoryCapacityAdapterFactory, getWaitlistRelationshipsAdapterFactory, getWaitlistsAdapterFactory, updateServiceAppointmentAdapterFactory, updateServiceAppointmentAttendeeAdapterFactory };