@salesforce/lds-adapters-revenue-billing-batch 1.346.0 → 1.347.1

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.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$6, typeCheckConfig as typeCheckConfig$6, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$8, typeCheckConfig as typeCheckConfig$8, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -148,7 +148,7 @@ function createLink(ref) {
148
148
  };
149
149
  }
150
150
 
151
- function validate$a(obj, path = 'ScheduleOptionsInputRepresentation') {
151
+ function validate$d(obj, path = 'ScheduleOptionsInputRepresentation') {
152
152
  const v_error = (() => {
153
153
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
154
154
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -196,8 +196,8 @@ function validate$a(obj, path = 'ScheduleOptionsInputRepresentation') {
196
196
  return v_error === undefined ? null : v_error;
197
197
  }
198
198
 
199
- function validate$9(obj, path = 'PaymentsBatchSchedulerInputRepresentation') {
200
- const validateScheduleOptionsInputRepresentation_validateError = validate$a(obj, path);
199
+ function validate$c(obj, path = 'PaymentsBatchSchedulerInputRepresentation') {
200
+ const validateScheduleOptionsInputRepresentation_validateError = validate$d(obj, path);
201
201
  if (validateScheduleOptionsInputRepresentation_validateError !== null) {
202
202
  return validateScheduleOptionsInputRepresentation_validateError;
203
203
  }
@@ -230,7 +230,7 @@ function validate$9(obj, path = 'PaymentsBatchSchedulerInputRepresentation') {
230
230
  return v_error === undefined ? null : v_error;
231
231
  }
232
232
 
233
- function validate$8(obj, path = 'BillingBatchSchedulerRepresentation') {
233
+ function validate$b(obj, path = 'BillingBatchSchedulerRepresentation') {
234
234
  const v_error = (() => {
235
235
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
236
236
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -244,16 +244,16 @@ function validate$8(obj, path = 'BillingBatchSchedulerRepresentation') {
244
244
  return v_error === undefined ? null : v_error;
245
245
  }
246
246
 
247
- const TTL$4 = 1000;
248
- const VERSION$5 = "eff71edc32270b9a1e6e1779cb811c3c";
249
- function validate$7(obj, path = 'PaymentsBatchSchedulerOutputRepresentation') {
247
+ const TTL$6 = 1000;
248
+ const VERSION$7 = "eff71edc32270b9a1e6e1779cb811c3c";
249
+ function validate$a(obj, path = 'PaymentsBatchSchedulerOutputRepresentation') {
250
250
  const v_error = (() => {
251
251
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
252
252
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
253
253
  }
254
254
  const obj_billingBatchScheduler = obj.billingBatchScheduler;
255
255
  const path_billingBatchScheduler = path + '.billingBatchScheduler';
256
- const referencepath_billingBatchSchedulerValidationError = validate$8(obj_billingBatchScheduler, path_billingBatchScheduler);
256
+ const referencepath_billingBatchSchedulerValidationError = validate$b(obj_billingBatchScheduler, path_billingBatchScheduler);
257
257
  if (referencepath_billingBatchSchedulerValidationError !== null) {
258
258
  let message = 'Object doesn\'t match BillingBatchSchedulerRepresentation (at "' + path_billingBatchScheduler + '")\n';
259
259
  message += referencepath_billingBatchSchedulerValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -262,68 +262,68 @@ function validate$7(obj, path = 'PaymentsBatchSchedulerOutputRepresentation') {
262
262
  })();
263
263
  return v_error === undefined ? null : v_error;
264
264
  }
265
- const RepresentationType$4 = 'PaymentsBatchSchedulerOutputRepresentation';
266
- function keyBuilder$5(luvio, config) {
267
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.billingBatchSchedulerId;
265
+ const RepresentationType$6 = 'PaymentsBatchSchedulerOutputRepresentation';
266
+ function keyBuilder$7(luvio, config) {
267
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.billingBatchSchedulerId;
268
268
  }
269
- function keyBuilderFromType$3(luvio, object) {
269
+ function keyBuilderFromType$5(luvio, object) {
270
270
  const keyParams = {
271
271
  billingBatchSchedulerId: object.billingBatchScheduler.id
272
272
  };
273
- return keyBuilder$5(luvio, keyParams);
273
+ return keyBuilder$7(luvio, keyParams);
274
274
  }
275
- function normalize$4(input, existing, path, luvio, store, timestamp) {
275
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
276
276
  return input;
277
277
  }
278
- const select$b = function PaymentsBatchSchedulerOutputRepresentationSelect() {
278
+ const select$f = function PaymentsBatchSchedulerOutputRepresentationSelect() {
279
279
  return {
280
280
  kind: 'Fragment',
281
- version: VERSION$5,
281
+ version: VERSION$7,
282
282
  private: [],
283
283
  opaque: true
284
284
  };
285
285
  };
286
- function equals$5(existing, incoming) {
286
+ function equals$7(existing, incoming) {
287
287
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
288
288
  return false;
289
289
  }
290
290
  return true;
291
291
  }
292
- const ingest$4 = function PaymentsBatchSchedulerOutputRepresentationIngest(input, path, luvio, store, timestamp) {
292
+ const ingest$6 = function PaymentsBatchSchedulerOutputRepresentationIngest(input, path, luvio, store, timestamp) {
293
293
  if (process.env.NODE_ENV !== 'production') {
294
- const validateError = validate$7(input);
294
+ const validateError = validate$a(input);
295
295
  if (validateError !== null) {
296
296
  throw validateError;
297
297
  }
298
298
  }
299
- const key = keyBuilderFromType$3(luvio, input);
300
- const ttlToUse = TTL$4;
301
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "BillingBatch", VERSION$5, RepresentationType$4, equals$5);
299
+ const key = keyBuilderFromType$5(luvio, input);
300
+ const ttlToUse = TTL$6;
301
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "BillingBatch", VERSION$7, RepresentationType$6, equals$7);
302
302
  return createLink(key);
303
303
  };
304
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
304
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
305
305
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
306
- const rootKey = keyBuilderFromType$3(luvio, input);
306
+ const rootKey = keyBuilderFromType$5(luvio, input);
307
307
  rootKeySet.set(rootKey, {
308
308
  namespace: keyPrefix,
309
- representationName: RepresentationType$4,
309
+ representationName: RepresentationType$6,
310
310
  mergeable: false
311
311
  });
312
312
  }
313
313
 
314
- function select$a(luvio, params) {
315
- return select$b();
314
+ function select$e(luvio, params) {
315
+ return select$f();
316
316
  }
317
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
318
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
317
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
318
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
319
319
  }
320
- function ingestSuccess$5(luvio, resourceParams, response) {
320
+ function ingestSuccess$7(luvio, resourceParams, response) {
321
321
  const { body } = response;
322
- const key = keyBuilderFromType$3(luvio, body);
323
- luvio.storeIngest(key, ingest$4, body);
322
+ const key = keyBuilderFromType$5(luvio, body);
323
+ luvio.storeIngest(key, ingest$6, body);
324
324
  const snapshot = luvio.storeLookup({
325
325
  recordId: key,
326
- node: select$a(),
326
+ node: select$e(),
327
327
  variables: {},
328
328
  });
329
329
  if (process.env.NODE_ENV !== 'production') {
@@ -334,7 +334,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
334
334
  deepFreeze(snapshot.data);
335
335
  return snapshot;
336
336
  }
337
- function createResourceRequest$5(config) {
337
+ function createResourceRequest$7(config) {
338
338
  const headers = {};
339
339
  return {
340
340
  baseUri: '/services/data/v64.0',
@@ -348,45 +348,45 @@ function createResourceRequest$5(config) {
348
348
  };
349
349
  }
350
350
 
351
- const adapterName$5 = 'createPaymentsBatchScheduler';
351
+ const adapterName$7 = 'createPaymentsBatchScheduler';
352
352
  const createPaymentsBatchScheduler_ConfigPropertyMetadata = [
353
353
  generateParamConfigMetadata('PaymentsBatchSchedulerInput', true, 2 /* Body */, 4 /* Unsupported */),
354
354
  ];
355
- const createPaymentsBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createPaymentsBatchScheduler_ConfigPropertyMetadata);
356
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(createPaymentsBatchScheduler_ConfigPropertyMetadata);
357
- function typeCheckConfig$5(untrustedConfig) {
355
+ const createPaymentsBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createPaymentsBatchScheduler_ConfigPropertyMetadata);
356
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(createPaymentsBatchScheduler_ConfigPropertyMetadata);
357
+ function typeCheckConfig$7(untrustedConfig) {
358
358
  const config = {};
359
359
  const untrustedConfig_PaymentsBatchSchedulerInput = untrustedConfig.PaymentsBatchSchedulerInput;
360
- const referencePaymentsBatchSchedulerInputRepresentationValidationError = validate$9(untrustedConfig_PaymentsBatchSchedulerInput);
360
+ const referencePaymentsBatchSchedulerInputRepresentationValidationError = validate$c(untrustedConfig_PaymentsBatchSchedulerInput);
361
361
  if (referencePaymentsBatchSchedulerInputRepresentationValidationError === null) {
362
362
  config.PaymentsBatchSchedulerInput = untrustedConfig_PaymentsBatchSchedulerInput;
363
363
  }
364
364
  return config;
365
365
  }
366
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
366
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
367
367
  if (!untrustedIsObject(untrustedConfig)) {
368
368
  return null;
369
369
  }
370
370
  if (process.env.NODE_ENV !== 'production') {
371
371
  validateConfig(untrustedConfig, configPropertyNames);
372
372
  }
373
- const config = typeCheckConfig$5(untrustedConfig);
373
+ const config = typeCheckConfig$7(untrustedConfig);
374
374
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
375
375
  return null;
376
376
  }
377
377
  return config;
378
378
  }
379
- function buildNetworkSnapshot$5(luvio, config, options) {
380
- const resourceParams = createResourceParams$5(config);
381
- const request = createResourceRequest$5(resourceParams);
379
+ function buildNetworkSnapshot$7(luvio, config, options) {
380
+ const resourceParams = createResourceParams$7(config);
381
+ const request = createResourceRequest$7(resourceParams);
382
382
  return luvio.dispatchResourceRequest(request, options)
383
383
  .then((response) => {
384
384
  return luvio.handleSuccessResponse(() => {
385
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
385
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
386
386
  return luvio.storeBroadcast().then(() => snapshot);
387
387
  }, () => {
388
388
  const cache = new StoreKeyMap();
389
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
389
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
390
390
  return cache;
391
391
  });
392
392
  }, (response) => {
@@ -396,16 +396,16 @@ function buildNetworkSnapshot$5(luvio, config, options) {
396
396
  }
397
397
  const createPaymentsBatchSchedulerAdapterFactory = (luvio) => {
398
398
  return function createPaymentsBatchScheduler(untrustedConfig) {
399
- const config = validateAdapterConfig$5(untrustedConfig, createPaymentsBatchScheduler_ConfigPropertyNames);
399
+ const config = validateAdapterConfig$7(untrustedConfig, createPaymentsBatchScheduler_ConfigPropertyNames);
400
400
  // Invalid or incomplete config
401
401
  if (config === null) {
402
402
  throw new Error('Invalid config for "createPaymentsBatchScheduler"');
403
403
  }
404
- return buildNetworkSnapshot$5(luvio, config);
404
+ return buildNetworkSnapshot$7(luvio, config);
405
405
  };
406
406
  };
407
407
 
408
- function validate$6(obj, path = 'ScheduleOptionsInputRepresentationForInvoice') {
408
+ function validate$9(obj, path = 'ScheduleOptionsInputRepresentationForInvoice') {
409
409
  const v_error = (() => {
410
410
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
411
411
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -462,8 +462,8 @@ function validate$6(obj, path = 'ScheduleOptionsInputRepresentationForInvoice')
462
462
  return v_error === undefined ? null : v_error;
463
463
  }
464
464
 
465
- function validate$5(obj, path = 'BatchInvoiceSchedulerInputRepresentation') {
466
- const validateScheduleOptionsInputRepresentationForInvoice_validateError = validate$6(obj, path);
465
+ function validate$8(obj, path = 'BatchInvoiceSchedulerInputRepresentation') {
466
+ const validateScheduleOptionsInputRepresentationForInvoice_validateError = validate$9(obj, path);
467
467
  if (validateScheduleOptionsInputRepresentationForInvoice_validateError !== null) {
468
468
  return validateScheduleOptionsInputRepresentationForInvoice_validateError;
469
469
  }
@@ -489,16 +489,16 @@ function validate$5(obj, path = 'BatchInvoiceSchedulerInputRepresentation') {
489
489
  return v_error === undefined ? null : v_error;
490
490
  }
491
491
 
492
- const TTL$3 = 1000;
493
- const VERSION$4 = "15c358b0b4903143c526f63f4010b958";
494
- function validate$4(obj, path = 'InvoicesBatchSchedulerOutputRepresentation') {
492
+ const TTL$5 = 1000;
493
+ const VERSION$6 = "15c358b0b4903143c526f63f4010b958";
494
+ function validate$7(obj, path = 'InvoicesBatchSchedulerOutputRepresentation') {
495
495
  const v_error = (() => {
496
496
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
497
497
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
498
498
  }
499
499
  const obj_billingBatchScheduler = obj.billingBatchScheduler;
500
500
  const path_billingBatchScheduler = path + '.billingBatchScheduler';
501
- const referencepath_billingBatchSchedulerValidationError = validate$8(obj_billingBatchScheduler, path_billingBatchScheduler);
501
+ const referencepath_billingBatchSchedulerValidationError = validate$b(obj_billingBatchScheduler, path_billingBatchScheduler);
502
502
  if (referencepath_billingBatchSchedulerValidationError !== null) {
503
503
  let message = 'Object doesn\'t match BillingBatchSchedulerRepresentation (at "' + path_billingBatchScheduler + '")\n';
504
504
  message += referencepath_billingBatchSchedulerValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -507,68 +507,68 @@ function validate$4(obj, path = 'InvoicesBatchSchedulerOutputRepresentation') {
507
507
  })();
508
508
  return v_error === undefined ? null : v_error;
509
509
  }
510
- const RepresentationType$3 = 'InvoicesBatchSchedulerOutputRepresentation';
511
- function keyBuilder$4(luvio, config) {
512
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.billingBatchSchedulerId;
510
+ const RepresentationType$5 = 'InvoicesBatchSchedulerOutputRepresentation';
511
+ function keyBuilder$6(luvio, config) {
512
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.billingBatchSchedulerId;
513
513
  }
514
- function keyBuilderFromType$2(luvio, object) {
514
+ function keyBuilderFromType$4(luvio, object) {
515
515
  const keyParams = {
516
516
  billingBatchSchedulerId: object.billingBatchScheduler.id
517
517
  };
518
- return keyBuilder$4(luvio, keyParams);
518
+ return keyBuilder$6(luvio, keyParams);
519
519
  }
520
- function normalize$3(input, existing, path, luvio, store, timestamp) {
520
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
521
521
  return input;
522
522
  }
523
- const select$9 = function InvoicesBatchSchedulerOutputRepresentationSelect() {
523
+ const select$d = function InvoicesBatchSchedulerOutputRepresentationSelect() {
524
524
  return {
525
525
  kind: 'Fragment',
526
- version: VERSION$4,
526
+ version: VERSION$6,
527
527
  private: [],
528
528
  opaque: true
529
529
  };
530
530
  };
531
- function equals$4(existing, incoming) {
531
+ function equals$6(existing, incoming) {
532
532
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
533
533
  return false;
534
534
  }
535
535
  return true;
536
536
  }
537
- const ingest$3 = function InvoicesBatchSchedulerOutputRepresentationIngest(input, path, luvio, store, timestamp) {
537
+ const ingest$5 = function InvoicesBatchSchedulerOutputRepresentationIngest(input, path, luvio, store, timestamp) {
538
538
  if (process.env.NODE_ENV !== 'production') {
539
- const validateError = validate$4(input);
539
+ const validateError = validate$7(input);
540
540
  if (validateError !== null) {
541
541
  throw validateError;
542
542
  }
543
543
  }
544
- const key = keyBuilderFromType$2(luvio, input);
545
- const ttlToUse = TTL$3;
546
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "BillingBatch", VERSION$4, RepresentationType$3, equals$4);
544
+ const key = keyBuilderFromType$4(luvio, input);
545
+ const ttlToUse = TTL$5;
546
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "BillingBatch", VERSION$6, RepresentationType$5, equals$6);
547
547
  return createLink(key);
548
548
  };
549
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
549
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
550
550
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
551
- const rootKey = keyBuilderFromType$2(luvio, input);
551
+ const rootKey = keyBuilderFromType$4(luvio, input);
552
552
  rootKeySet.set(rootKey, {
553
553
  namespace: keyPrefix,
554
- representationName: RepresentationType$3,
554
+ representationName: RepresentationType$5,
555
555
  mergeable: false
556
556
  });
557
557
  }
558
558
 
559
- function select$8(luvio, params) {
560
- return select$9();
559
+ function select$c(luvio, params) {
560
+ return select$d();
561
561
  }
562
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
563
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
562
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
563
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
564
564
  }
565
- function ingestSuccess$4(luvio, resourceParams, response) {
565
+ function ingestSuccess$6(luvio, resourceParams, response) {
566
566
  const { body } = response;
567
- const key = keyBuilderFromType$2(luvio, body);
568
- luvio.storeIngest(key, ingest$3, body);
567
+ const key = keyBuilderFromType$4(luvio, body);
568
+ luvio.storeIngest(key, ingest$5, body);
569
569
  const snapshot = luvio.storeLookup({
570
570
  recordId: key,
571
- node: select$8(),
571
+ node: select$c(),
572
572
  variables: {},
573
573
  });
574
574
  if (process.env.NODE_ENV !== 'production') {
@@ -579,7 +579,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
579
579
  deepFreeze(snapshot.data);
580
580
  return snapshot;
581
581
  }
582
- function createResourceRequest$4(config) {
582
+ function createResourceRequest$6(config) {
583
583
  const headers = {};
584
584
  return {
585
585
  baseUri: '/services/data/v64.0',
@@ -593,45 +593,45 @@ function createResourceRequest$4(config) {
593
593
  };
594
594
  }
595
595
 
596
- const adapterName$4 = 'createInvoicesBatchScheduler';
596
+ const adapterName$6 = 'createInvoicesBatchScheduler';
597
597
  const createInvoicesBatchScheduler_ConfigPropertyMetadata = [
598
598
  generateParamConfigMetadata('BatchInvoiceSchedulerInput', true, 2 /* Body */, 4 /* Unsupported */),
599
599
  ];
600
- const createInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createInvoicesBatchScheduler_ConfigPropertyMetadata);
601
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$6(createInvoicesBatchScheduler_ConfigPropertyMetadata);
602
- function typeCheckConfig$4(untrustedConfig) {
600
+ const createInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createInvoicesBatchScheduler_ConfigPropertyMetadata);
601
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(createInvoicesBatchScheduler_ConfigPropertyMetadata);
602
+ function typeCheckConfig$6(untrustedConfig) {
603
603
  const config = {};
604
604
  const untrustedConfig_BatchInvoiceSchedulerInput = untrustedConfig.BatchInvoiceSchedulerInput;
605
- const referenceBatchInvoiceSchedulerInputRepresentationValidationError = validate$5(untrustedConfig_BatchInvoiceSchedulerInput);
605
+ const referenceBatchInvoiceSchedulerInputRepresentationValidationError = validate$8(untrustedConfig_BatchInvoiceSchedulerInput);
606
606
  if (referenceBatchInvoiceSchedulerInputRepresentationValidationError === null) {
607
607
  config.BatchInvoiceSchedulerInput = untrustedConfig_BatchInvoiceSchedulerInput;
608
608
  }
609
609
  return config;
610
610
  }
611
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
611
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
612
612
  if (!untrustedIsObject(untrustedConfig)) {
613
613
  return null;
614
614
  }
615
615
  if (process.env.NODE_ENV !== 'production') {
616
616
  validateConfig(untrustedConfig, configPropertyNames);
617
617
  }
618
- const config = typeCheckConfig$4(untrustedConfig);
618
+ const config = typeCheckConfig$6(untrustedConfig);
619
619
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
620
620
  return null;
621
621
  }
622
622
  return config;
623
623
  }
624
- function buildNetworkSnapshot$4(luvio, config, options) {
625
- const resourceParams = createResourceParams$4(config);
626
- const request = createResourceRequest$4(resourceParams);
624
+ function buildNetworkSnapshot$6(luvio, config, options) {
625
+ const resourceParams = createResourceParams$6(config);
626
+ const request = createResourceRequest$6(resourceParams);
627
627
  return luvio.dispatchResourceRequest(request, options)
628
628
  .then((response) => {
629
629
  return luvio.handleSuccessResponse(() => {
630
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
630
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response);
631
631
  return luvio.storeBroadcast().then(() => snapshot);
632
632
  }, () => {
633
633
  const cache = new StoreKeyMap();
634
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
634
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
635
635
  return cache;
636
636
  });
637
637
  }, (response) => {
@@ -641,28 +641,28 @@ function buildNetworkSnapshot$4(luvio, config, options) {
641
641
  }
642
642
  const createInvoicesBatchSchedulerAdapterFactory = (luvio) => {
643
643
  return function createInvoicesBatchScheduler(untrustedConfig) {
644
- const config = validateAdapterConfig$4(untrustedConfig, createInvoicesBatchScheduler_ConfigPropertyNames);
644
+ const config = validateAdapterConfig$6(untrustedConfig, createInvoicesBatchScheduler_ConfigPropertyNames);
645
645
  // Invalid or incomplete config
646
646
  if (config === null) {
647
647
  throw new Error('Invalid config for "createInvoicesBatchScheduler"');
648
648
  }
649
- return buildNetworkSnapshot$4(luvio, config);
649
+ return buildNetworkSnapshot$6(luvio, config);
650
650
  };
651
651
  };
652
652
 
653
- function select$7(luvio, params) {
654
- return select$9();
653
+ function select$b(luvio, params) {
654
+ return select$d();
655
655
  }
656
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
657
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
656
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
657
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
658
658
  }
659
- function ingestSuccess$3(luvio, resourceParams, response) {
659
+ function ingestSuccess$5(luvio, resourceParams, response) {
660
660
  const { body } = response;
661
- const key = keyBuilderFromType$2(luvio, body);
662
- luvio.storeIngest(key, ingest$3, body);
661
+ const key = keyBuilderFromType$4(luvio, body);
662
+ luvio.storeIngest(key, ingest$5, body);
663
663
  const snapshot = luvio.storeLookup({
664
664
  recordId: key,
665
- node: select$7(),
665
+ node: select$b(),
666
666
  variables: {},
667
667
  });
668
668
  if (process.env.NODE_ENV !== 'production') {
@@ -673,7 +673,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
673
673
  deepFreeze(snapshot.data);
674
674
  return snapshot;
675
675
  }
676
- function createResourceRequest$3(config) {
676
+ function createResourceRequest$5(config) {
677
677
  const headers = {};
678
678
  return {
679
679
  baseUri: '/services/data/v64.0',
@@ -687,47 +687,47 @@ function createResourceRequest$3(config) {
687
687
  };
688
688
  }
689
689
 
690
- const adapterName$3 = 'editInvoicesBatchScheduler';
690
+ const adapterName$5 = 'editInvoicesBatchScheduler';
691
691
  const editInvoicesBatchScheduler_ConfigPropertyMetadata = [
692
692
  generateParamConfigMetadata('billingBatchSchedulerId', true, 0 /* UrlParameter */, 0 /* String */),
693
693
  generateParamConfigMetadata('BatchInvoiceSchedulerInput', true, 2 /* Body */, 4 /* Unsupported */),
694
694
  ];
695
- const editInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, editInvoicesBatchScheduler_ConfigPropertyMetadata);
696
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$6(editInvoicesBatchScheduler_ConfigPropertyMetadata);
697
- function typeCheckConfig$3(untrustedConfig) {
695
+ const editInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, editInvoicesBatchScheduler_ConfigPropertyMetadata);
696
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(editInvoicesBatchScheduler_ConfigPropertyMetadata);
697
+ function typeCheckConfig$5(untrustedConfig) {
698
698
  const config = {};
699
- typeCheckConfig$6(untrustedConfig, config, editInvoicesBatchScheduler_ConfigPropertyMetadata);
699
+ typeCheckConfig$8(untrustedConfig, config, editInvoicesBatchScheduler_ConfigPropertyMetadata);
700
700
  const untrustedConfig_BatchInvoiceSchedulerInput = untrustedConfig.BatchInvoiceSchedulerInput;
701
- const referenceBatchInvoiceSchedulerInputRepresentationValidationError = validate$5(untrustedConfig_BatchInvoiceSchedulerInput);
701
+ const referenceBatchInvoiceSchedulerInputRepresentationValidationError = validate$8(untrustedConfig_BatchInvoiceSchedulerInput);
702
702
  if (referenceBatchInvoiceSchedulerInputRepresentationValidationError === null) {
703
703
  config.BatchInvoiceSchedulerInput = untrustedConfig_BatchInvoiceSchedulerInput;
704
704
  }
705
705
  return config;
706
706
  }
707
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
707
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
708
708
  if (!untrustedIsObject(untrustedConfig)) {
709
709
  return null;
710
710
  }
711
711
  if (process.env.NODE_ENV !== 'production') {
712
712
  validateConfig(untrustedConfig, configPropertyNames);
713
713
  }
714
- const config = typeCheckConfig$3(untrustedConfig);
714
+ const config = typeCheckConfig$5(untrustedConfig);
715
715
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
716
716
  return null;
717
717
  }
718
718
  return config;
719
719
  }
720
- function buildNetworkSnapshot$3(luvio, config, options) {
721
- const resourceParams = createResourceParams$3(config);
722
- const request = createResourceRequest$3(resourceParams);
720
+ function buildNetworkSnapshot$5(luvio, config, options) {
721
+ const resourceParams = createResourceParams$5(config);
722
+ const request = createResourceRequest$5(resourceParams);
723
723
  return luvio.dispatchResourceRequest(request, options)
724
724
  .then((response) => {
725
725
  return luvio.handleSuccessResponse(() => {
726
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
726
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
727
727
  return luvio.storeBroadcast().then(() => snapshot);
728
728
  }, () => {
729
729
  const cache = new StoreKeyMap();
730
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
730
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
731
731
  return cache;
732
732
  });
733
733
  }, (response) => {
@@ -737,18 +737,192 @@ function buildNetworkSnapshot$3(luvio, config, options) {
737
737
  }
738
738
  const editInvoicesBatchSchedulerAdapterFactory = (luvio) => {
739
739
  return function editInvoicesBatchScheduler(untrustedConfig) {
740
- const config = validateAdapterConfig$3(untrustedConfig, editInvoicesBatchScheduler_ConfigPropertyNames);
740
+ const config = validateAdapterConfig$5(untrustedConfig, editInvoicesBatchScheduler_ConfigPropertyNames);
741
741
  // Invalid or incomplete config
742
742
  if (config === null) {
743
743
  throw new Error('Invalid config for "editInvoicesBatchScheduler"');
744
744
  }
745
- return buildNetworkSnapshot$3(luvio, config);
745
+ return buildNetworkSnapshot$5(luvio, config);
746
746
  };
747
747
  };
748
748
 
749
- const TTL$2 = 1000;
750
- const VERSION$3 = "1b89e7904345b50c1a8bfa0fc6e7dff0";
751
- function validate$3(obj, path = 'InvoiceBatchDraftToPostedOutputRepresentation') {
749
+ function validate$6(obj, path = 'BatchInvoiceSchedulerUpdateInputRepresentation') {
750
+ const v_error = (() => {
751
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
752
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
753
+ }
754
+ const obj_status = obj.status;
755
+ const path_status = path + '.status';
756
+ if (typeof obj_status !== 'string') {
757
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
758
+ }
759
+ })();
760
+ return v_error === undefined ? null : v_error;
761
+ }
762
+
763
+ const TTL$4 = 1000;
764
+ const VERSION$5 = "b8411d559a539f8ec599e199e2e5514e";
765
+ function validate$5(obj, path = 'BatchInvoiceSchedulerUpdateOutputRepresentation') {
766
+ const v_error = (() => {
767
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
768
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
769
+ }
770
+ const obj_status = obj.status;
771
+ const path_status = path + '.status';
772
+ if (typeof obj_status !== 'string') {
773
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
774
+ }
775
+ })();
776
+ return v_error === undefined ? null : v_error;
777
+ }
778
+ const RepresentationType$4 = 'BatchInvoiceSchedulerUpdateOutputRepresentation';
779
+ function keyBuilder$5(luvio, config) {
780
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.status;
781
+ }
782
+ function keyBuilderFromType$3(luvio, object) {
783
+ const keyParams = {
784
+ status: object.status
785
+ };
786
+ return keyBuilder$5(luvio, keyParams);
787
+ }
788
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
789
+ return input;
790
+ }
791
+ const select$a = function BatchInvoiceSchedulerUpdateOutputRepresentationSelect() {
792
+ return {
793
+ kind: 'Fragment',
794
+ version: VERSION$5,
795
+ private: [],
796
+ opaque: true
797
+ };
798
+ };
799
+ function equals$5(existing, incoming) {
800
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
801
+ return false;
802
+ }
803
+ return true;
804
+ }
805
+ const ingest$4 = function BatchInvoiceSchedulerUpdateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
806
+ if (process.env.NODE_ENV !== 'production') {
807
+ const validateError = validate$5(input);
808
+ if (validateError !== null) {
809
+ throw validateError;
810
+ }
811
+ }
812
+ const key = keyBuilderFromType$3(luvio, input);
813
+ const ttlToUse = TTL$4;
814
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "BillingBatch", VERSION$5, RepresentationType$4, equals$5);
815
+ return createLink(key);
816
+ };
817
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
818
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
819
+ const rootKey = keyBuilderFromType$3(luvio, input);
820
+ rootKeySet.set(rootKey, {
821
+ namespace: keyPrefix,
822
+ representationName: RepresentationType$4,
823
+ mergeable: false
824
+ });
825
+ }
826
+
827
+ function select$9(luvio, params) {
828
+ return select$a();
829
+ }
830
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
831
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
832
+ }
833
+ function ingestSuccess$4(luvio, resourceParams, response) {
834
+ const { body } = response;
835
+ const key = keyBuilderFromType$3(luvio, body);
836
+ luvio.storeIngest(key, ingest$4, body);
837
+ const snapshot = luvio.storeLookup({
838
+ recordId: key,
839
+ node: select$9(),
840
+ variables: {},
841
+ });
842
+ if (process.env.NODE_ENV !== 'production') {
843
+ if (snapshot.state !== 'Fulfilled') {
844
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
845
+ }
846
+ }
847
+ deepFreeze(snapshot.data);
848
+ return snapshot;
849
+ }
850
+ function createResourceRequest$4(config) {
851
+ const headers = {};
852
+ return {
853
+ baseUri: '/services/data/v64.0',
854
+ basePath: '/commerce/invoicing/invoice-schedulers/' + config.urlParams.billingBatchSchedulerId + '',
855
+ method: 'patch',
856
+ body: config.body,
857
+ urlParams: config.urlParams,
858
+ queryParams: {},
859
+ headers,
860
+ priority: 'normal',
861
+ };
862
+ }
863
+
864
+ const adapterName$4 = 'updateInvoicesBatchScheduler';
865
+ const updateInvoicesBatchScheduler_ConfigPropertyMetadata = [
866
+ generateParamConfigMetadata('billingBatchSchedulerId', true, 0 /* UrlParameter */, 0 /* String */),
867
+ generateParamConfigMetadata('BatchInvoiceSchedulerUpdateInput', true, 2 /* Body */, 4 /* Unsupported */),
868
+ ];
869
+ const updateInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, updateInvoicesBatchScheduler_ConfigPropertyMetadata);
870
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(updateInvoicesBatchScheduler_ConfigPropertyMetadata);
871
+ function typeCheckConfig$4(untrustedConfig) {
872
+ const config = {};
873
+ typeCheckConfig$8(untrustedConfig, config, updateInvoicesBatchScheduler_ConfigPropertyMetadata);
874
+ const untrustedConfig_BatchInvoiceSchedulerUpdateInput = untrustedConfig.BatchInvoiceSchedulerUpdateInput;
875
+ const referenceBatchInvoiceSchedulerUpdateInputRepresentationValidationError = validate$6(untrustedConfig_BatchInvoiceSchedulerUpdateInput);
876
+ if (referenceBatchInvoiceSchedulerUpdateInputRepresentationValidationError === null) {
877
+ config.BatchInvoiceSchedulerUpdateInput = untrustedConfig_BatchInvoiceSchedulerUpdateInput;
878
+ }
879
+ return config;
880
+ }
881
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
882
+ if (!untrustedIsObject(untrustedConfig)) {
883
+ return null;
884
+ }
885
+ if (process.env.NODE_ENV !== 'production') {
886
+ validateConfig(untrustedConfig, configPropertyNames);
887
+ }
888
+ const config = typeCheckConfig$4(untrustedConfig);
889
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
890
+ return null;
891
+ }
892
+ return config;
893
+ }
894
+ function buildNetworkSnapshot$4(luvio, config, options) {
895
+ const resourceParams = createResourceParams$4(config);
896
+ const request = createResourceRequest$4(resourceParams);
897
+ return luvio.dispatchResourceRequest(request, options)
898
+ .then((response) => {
899
+ return luvio.handleSuccessResponse(() => {
900
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
901
+ return luvio.storeBroadcast().then(() => snapshot);
902
+ }, () => {
903
+ const cache = new StoreKeyMap();
904
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
905
+ return cache;
906
+ });
907
+ }, (response) => {
908
+ deepFreeze(response);
909
+ throw response;
910
+ });
911
+ }
912
+ const updateInvoicesBatchSchedulerAdapterFactory = (luvio) => {
913
+ return function updateInvoicesBatchScheduler(untrustedConfig) {
914
+ const config = validateAdapterConfig$4(untrustedConfig, updateInvoicesBatchScheduler_ConfigPropertyNames);
915
+ // Invalid or incomplete config
916
+ if (config === null) {
917
+ throw new Error('Invalid config for "updateInvoicesBatchScheduler"');
918
+ }
919
+ return buildNetworkSnapshot$4(luvio, config);
920
+ };
921
+ };
922
+
923
+ const TTL$3 = 1000;
924
+ const VERSION$4 = "1b89e7904345b50c1a8bfa0fc6e7dff0";
925
+ function validate$4(obj, path = 'InvoiceBatchDraftToPostedOutputRepresentation') {
752
926
  const v_error = (() => {
753
927
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
754
928
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -766,14 +940,14 @@ function validate$3(obj, path = 'InvoiceBatchDraftToPostedOutputRepresentation')
766
940
  })();
767
941
  return v_error === undefined ? null : v_error;
768
942
  }
769
- const RepresentationType$2 = 'InvoiceBatchDraftToPostedOutputRepresentation';
770
- function normalize$2(input, existing, path, luvio, store, timestamp) {
943
+ const RepresentationType$3 = 'InvoiceBatchDraftToPostedOutputRepresentation';
944
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
771
945
  return input;
772
946
  }
773
- const select$6 = function InvoiceBatchDraftToPostedOutputRepresentationSelect() {
947
+ const select$8 = function InvoiceBatchDraftToPostedOutputRepresentationSelect() {
774
948
  return {
775
949
  kind: 'Fragment',
776
- version: VERSION$3,
950
+ version: VERSION$4,
777
951
  private: [],
778
952
  selections: [
779
953
  {
@@ -787,7 +961,7 @@ const select$6 = function InvoiceBatchDraftToPostedOutputRepresentationSelect()
787
961
  ]
788
962
  };
789
963
  };
790
- function equals$3(existing, incoming) {
964
+ function equals$4(existing, incoming) {
791
965
  const existing_success = existing.success;
792
966
  const incoming_success = incoming.success;
793
967
  if (!(existing_success === incoming_success)) {
@@ -800,44 +974,44 @@ function equals$3(existing, incoming) {
800
974
  }
801
975
  return true;
802
976
  }
803
- const ingest$2 = function InvoiceBatchDraftToPostedOutputRepresentationIngest(input, path, luvio, store, timestamp) {
977
+ const ingest$3 = function InvoiceBatchDraftToPostedOutputRepresentationIngest(input, path, luvio, store, timestamp) {
804
978
  if (process.env.NODE_ENV !== 'production') {
805
- const validateError = validate$3(input);
979
+ const validateError = validate$4(input);
806
980
  if (validateError !== null) {
807
981
  throw validateError;
808
982
  }
809
983
  }
810
984
  const key = path.fullPath;
811
- const ttlToUse = TTL$2;
812
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "BillingBatch", VERSION$3, RepresentationType$2, equals$3);
985
+ const ttlToUse = TTL$3;
986
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "BillingBatch", VERSION$4, RepresentationType$3, equals$4);
813
987
  return createLink(key);
814
988
  };
815
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
989
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
816
990
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
817
991
  const rootKey = fullPathFactory();
818
992
  rootKeySet.set(rootKey, {
819
993
  namespace: keyPrefix,
820
- representationName: RepresentationType$2,
994
+ representationName: RepresentationType$3,
821
995
  mergeable: false
822
996
  });
823
997
  }
824
998
 
825
- function select$5(luvio, params) {
826
- return select$6();
999
+ function select$7(luvio, params) {
1000
+ return select$8();
827
1001
  }
828
- function keyBuilder$3(luvio, params) {
1002
+ function keyBuilder$4(luvio, params) {
829
1003
  return keyPrefix + '::InvoiceBatchDraftToPostedOutputRepresentation:(' + 'invoiceBatchRunId:' + params.urlParams.invoiceBatchRunId + ',' + stableJSONStringify(params.body) + ')';
830
1004
  }
831
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
832
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
1005
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1006
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
833
1007
  }
834
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1008
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
835
1009
  const { body } = response;
836
- const key = keyBuilder$3(luvio, resourceParams);
837
- luvio.storeIngest(key, ingest$2, body);
1010
+ const key = keyBuilder$4(luvio, resourceParams);
1011
+ luvio.storeIngest(key, ingest$3, body);
838
1012
  const snapshot = luvio.storeLookup({
839
1013
  recordId: key,
840
- node: select$5(),
1014
+ node: select$7(),
841
1015
  variables: {},
842
1016
  }, snapshotRefresh);
843
1017
  if (process.env.NODE_ENV !== 'production') {
@@ -849,18 +1023,18 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
849
1023
  return snapshot;
850
1024
  }
851
1025
  function ingestError(luvio, params, error, snapshotRefresh) {
852
- const key = keyBuilder$3(luvio, params);
1026
+ const key = keyBuilder$4(luvio, params);
853
1027
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
854
1028
  const storeMetadataParams = {
855
- ttl: TTL$2,
1029
+ ttl: TTL$3,
856
1030
  namespace: keyPrefix,
857
- version: VERSION$3,
858
- representationName: RepresentationType$2
1031
+ version: VERSION$4,
1032
+ representationName: RepresentationType$3
859
1033
  };
860
1034
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
861
1035
  return errorSnapshot;
862
1036
  }
863
- function createResourceRequest$2(config) {
1037
+ function createResourceRequest$3(config) {
864
1038
  const headers = {};
865
1039
  return {
866
1040
  baseUri: '/services/data/v64.0',
@@ -874,60 +1048,60 @@ function createResourceRequest$2(config) {
874
1048
  };
875
1049
  }
876
1050
 
877
- const adapterName$2 = 'postBatchDraftInvoices';
1051
+ const adapterName$3 = 'postBatchDraftInvoices';
878
1052
  const postBatchDraftInvoices_ConfigPropertyMetadata = [
879
1053
  generateParamConfigMetadata('invoiceBatchRunId', true, 0 /* UrlParameter */, 0 /* String */),
880
1054
  ];
881
- const postBatchDraftInvoices_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, postBatchDraftInvoices_ConfigPropertyMetadata);
882
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$6(postBatchDraftInvoices_ConfigPropertyMetadata);
883
- function keyBuilder$2(luvio, config) {
884
- const resourceParams = createResourceParams$2(config);
885
- return keyBuilder$3(luvio, resourceParams);
1055
+ const postBatchDraftInvoices_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, postBatchDraftInvoices_ConfigPropertyMetadata);
1056
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(postBatchDraftInvoices_ConfigPropertyMetadata);
1057
+ function keyBuilder$3(luvio, config) {
1058
+ const resourceParams = createResourceParams$3(config);
1059
+ return keyBuilder$4(luvio, resourceParams);
886
1060
  }
887
- function typeCheckConfig$2(untrustedConfig) {
1061
+ function typeCheckConfig$3(untrustedConfig) {
888
1062
  const config = {};
889
- typeCheckConfig$6(untrustedConfig, config, postBatchDraftInvoices_ConfigPropertyMetadata);
1063
+ typeCheckConfig$8(untrustedConfig, config, postBatchDraftInvoices_ConfigPropertyMetadata);
890
1064
  return config;
891
1065
  }
892
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1066
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
893
1067
  if (!untrustedIsObject(untrustedConfig)) {
894
1068
  return null;
895
1069
  }
896
1070
  if (process.env.NODE_ENV !== 'production') {
897
1071
  validateConfig(untrustedConfig, configPropertyNames);
898
1072
  }
899
- const config = typeCheckConfig$2(untrustedConfig);
1073
+ const config = typeCheckConfig$3(untrustedConfig);
900
1074
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
901
1075
  return null;
902
1076
  }
903
1077
  return config;
904
1078
  }
905
1079
  function adapterFragment(luvio, config) {
906
- createResourceParams$2(config);
907
- return select$5();
1080
+ createResourceParams$3(config);
1081
+ return select$7();
908
1082
  }
909
1083
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
910
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
1084
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
911
1085
  config,
912
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1086
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
913
1087
  });
914
1088
  return luvio.storeBroadcast().then(() => snapshot);
915
1089
  }
916
1090
  function onFetchResponseError(luvio, config, resourceParams, response) {
917
1091
  const snapshot = ingestError(luvio, resourceParams, response, {
918
1092
  config,
919
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1093
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
920
1094
  });
921
1095
  return luvio.storeBroadcast().then(() => snapshot);
922
1096
  }
923
- function buildNetworkSnapshot$2(luvio, config, options) {
924
- const resourceParams = createResourceParams$2(config);
925
- const request = createResourceRequest$2(resourceParams);
1097
+ function buildNetworkSnapshot$3(luvio, config, options) {
1098
+ const resourceParams = createResourceParams$3(config);
1099
+ const request = createResourceRequest$3(resourceParams);
926
1100
  return luvio.dispatchResourceRequest(request, options)
927
1101
  .then((response) => {
928
1102
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
929
1103
  const cache = new StoreKeyMap();
930
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1104
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
931
1105
  return cache;
932
1106
  });
933
1107
  }, (response) => {
@@ -935,23 +1109,23 @@ function buildNetworkSnapshot$2(luvio, config, options) {
935
1109
  });
936
1110
  }
937
1111
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
938
- return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, 'get', false);
1112
+ return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, 'get', false);
939
1113
  }
940
1114
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
941
1115
  const { luvio, config } = context;
942
1116
  const selector = {
943
- recordId: keyBuilder$2(luvio, config),
1117
+ recordId: keyBuilder$3(luvio, config),
944
1118
  node: adapterFragment(luvio, config),
945
1119
  variables: {},
946
1120
  };
947
1121
  const cacheSnapshot = storeLookup(selector, {
948
1122
  config,
949
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1123
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
950
1124
  });
951
1125
  return cacheSnapshot;
952
1126
  }
953
1127
  const postBatchDraftInvoicesAdapterFactory = (luvio) => function BillingBatch__postBatchDraftInvoices(untrustedConfig, requestContext) {
954
- const config = validateAdapterConfig$2(untrustedConfig, postBatchDraftInvoices_ConfigPropertyNames);
1128
+ const config = validateAdapterConfig$3(untrustedConfig, postBatchDraftInvoices_ConfigPropertyNames);
955
1129
  // Invalid or incomplete config
956
1130
  if (config === null) {
957
1131
  return null;
@@ -960,6 +1134,167 @@ const postBatchDraftInvoicesAdapterFactory = (luvio) => function BillingBatch__p
960
1134
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
961
1135
  };
962
1136
 
1137
+ const TTL$2 = 1000;
1138
+ const VERSION$3 = "1699644fc0c840df081099c1cdf7066a";
1139
+ function validate$3(obj, path = 'InvoiceBatchRunRecoveryOutputRepresentation') {
1140
+ const v_error = (() => {
1141
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1142
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1143
+ }
1144
+ const obj_invoiceBatchRunRecoveryId = obj.invoiceBatchRunRecoveryId;
1145
+ const path_invoiceBatchRunRecoveryId = path + '.invoiceBatchRunRecoveryId';
1146
+ if (typeof obj_invoiceBatchRunRecoveryId !== 'string') {
1147
+ return new TypeError('Expected "string" but received "' + typeof obj_invoiceBatchRunRecoveryId + '" (at "' + path_invoiceBatchRunRecoveryId + '")');
1148
+ }
1149
+ })();
1150
+ return v_error === undefined ? null : v_error;
1151
+ }
1152
+ const RepresentationType$2 = 'InvoiceBatchRunRecoveryOutputRepresentation';
1153
+ function keyBuilder$2(luvio, config) {
1154
+ return keyPrefix + '::' + RepresentationType$2 + ':' + config.invoiceBatchRunRecoveryId;
1155
+ }
1156
+ function keyBuilderFromType$2(luvio, object) {
1157
+ const keyParams = {
1158
+ invoiceBatchRunRecoveryId: object.invoiceBatchRunRecoveryId
1159
+ };
1160
+ return keyBuilder$2(luvio, keyParams);
1161
+ }
1162
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
1163
+ return input;
1164
+ }
1165
+ const select$6 = function InvoiceBatchRunRecoveryOutputRepresentationSelect() {
1166
+ return {
1167
+ kind: 'Fragment',
1168
+ version: VERSION$3,
1169
+ private: [],
1170
+ selections: [
1171
+ {
1172
+ name: 'invoiceBatchRunRecoveryId',
1173
+ kind: 'Scalar'
1174
+ }
1175
+ ]
1176
+ };
1177
+ };
1178
+ function equals$3(existing, incoming) {
1179
+ const existing_invoiceBatchRunRecoveryId = existing.invoiceBatchRunRecoveryId;
1180
+ const incoming_invoiceBatchRunRecoveryId = incoming.invoiceBatchRunRecoveryId;
1181
+ if (!(existing_invoiceBatchRunRecoveryId === incoming_invoiceBatchRunRecoveryId)) {
1182
+ return false;
1183
+ }
1184
+ return true;
1185
+ }
1186
+ const ingest$2 = function InvoiceBatchRunRecoveryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1187
+ if (process.env.NODE_ENV !== 'production') {
1188
+ const validateError = validate$3(input);
1189
+ if (validateError !== null) {
1190
+ throw validateError;
1191
+ }
1192
+ }
1193
+ const key = keyBuilderFromType$2(luvio, input);
1194
+ const ttlToUse = TTL$2;
1195
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "BillingBatch", VERSION$3, RepresentationType$2, equals$3);
1196
+ return createLink(key);
1197
+ };
1198
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1199
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1200
+ const rootKey = keyBuilderFromType$2(luvio, input);
1201
+ rootKeySet.set(rootKey, {
1202
+ namespace: keyPrefix,
1203
+ representationName: RepresentationType$2,
1204
+ mergeable: false
1205
+ });
1206
+ }
1207
+
1208
+ function select$5(luvio, params) {
1209
+ return select$6();
1210
+ }
1211
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1212
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
1213
+ }
1214
+ function ingestSuccess$2(luvio, resourceParams, response) {
1215
+ const { body } = response;
1216
+ const key = keyBuilderFromType$2(luvio, body);
1217
+ luvio.storeIngest(key, ingest$2, body);
1218
+ const snapshot = luvio.storeLookup({
1219
+ recordId: key,
1220
+ node: select$5(),
1221
+ variables: {},
1222
+ });
1223
+ if (process.env.NODE_ENV !== 'production') {
1224
+ if (snapshot.state !== 'Fulfilled') {
1225
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1226
+ }
1227
+ }
1228
+ deepFreeze(snapshot.data);
1229
+ return snapshot;
1230
+ }
1231
+ function createResourceRequest$2(config) {
1232
+ const headers = {};
1233
+ return {
1234
+ baseUri: '/services/data/v64.0',
1235
+ basePath: '/commerce/invoicing/invoice-batch-runs/' + config.urlParams.invoiceBatchRunId + '/actions/recover',
1236
+ method: 'post',
1237
+ body: null,
1238
+ urlParams: config.urlParams,
1239
+ queryParams: {},
1240
+ headers,
1241
+ priority: 'normal',
1242
+ };
1243
+ }
1244
+
1245
+ const adapterName$2 = 'batchInvoiceRunRecovery';
1246
+ const batchInvoiceRunRecovery_ConfigPropertyMetadata = [
1247
+ generateParamConfigMetadata('invoiceBatchRunId', true, 0 /* UrlParameter */, 0 /* String */),
1248
+ ];
1249
+ const batchInvoiceRunRecovery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, batchInvoiceRunRecovery_ConfigPropertyMetadata);
1250
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(batchInvoiceRunRecovery_ConfigPropertyMetadata);
1251
+ function typeCheckConfig$2(untrustedConfig) {
1252
+ const config = {};
1253
+ typeCheckConfig$8(untrustedConfig, config, batchInvoiceRunRecovery_ConfigPropertyMetadata);
1254
+ return config;
1255
+ }
1256
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1257
+ if (!untrustedIsObject(untrustedConfig)) {
1258
+ return null;
1259
+ }
1260
+ if (process.env.NODE_ENV !== 'production') {
1261
+ validateConfig(untrustedConfig, configPropertyNames);
1262
+ }
1263
+ const config = typeCheckConfig$2(untrustedConfig);
1264
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1265
+ return null;
1266
+ }
1267
+ return config;
1268
+ }
1269
+ function buildNetworkSnapshot$2(luvio, config, options) {
1270
+ const resourceParams = createResourceParams$2(config);
1271
+ const request = createResourceRequest$2(resourceParams);
1272
+ return luvio.dispatchResourceRequest(request, options)
1273
+ .then((response) => {
1274
+ return luvio.handleSuccessResponse(() => {
1275
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
1276
+ return luvio.storeBroadcast().then(() => snapshot);
1277
+ }, () => {
1278
+ const cache = new StoreKeyMap();
1279
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1280
+ return cache;
1281
+ });
1282
+ }, (response) => {
1283
+ deepFreeze(response);
1284
+ throw response;
1285
+ });
1286
+ }
1287
+ const batchInvoiceRunRecoveryAdapterFactory = (luvio) => {
1288
+ return function batchInvoiceRunRecovery(untrustedConfig) {
1289
+ const config = validateAdapterConfig$2(untrustedConfig, batchInvoiceRunRecovery_ConfigPropertyNames);
1290
+ // Invalid or incomplete config
1291
+ if (config === null) {
1292
+ throw new Error('Invalid config for "batchInvoiceRunRecovery"');
1293
+ }
1294
+ return buildNetworkSnapshot$2(luvio, config);
1295
+ };
1296
+ };
1297
+
963
1298
  const VERSION$2 = "ae245aac2922b53e1ff758392e317d39";
964
1299
  function validate$2(obj, path = 'BatchInvoiceDocGenErrorRepresentation') {
965
1300
  const v_error = (() => {
@@ -1170,10 +1505,10 @@ const postBatchInvoiceDocGen_ConfigPropertyMetadata = [
1170
1505
  generateParamConfigMetadata('actionName', true, 0 /* UrlParameter */, 0 /* String */),
1171
1506
  ];
1172
1507
  const postBatchInvoiceDocGen_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postBatchInvoiceDocGen_ConfigPropertyMetadata);
1173
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$6(postBatchInvoiceDocGen_ConfigPropertyMetadata);
1508
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(postBatchInvoiceDocGen_ConfigPropertyMetadata);
1174
1509
  function typeCheckConfig$1(untrustedConfig) {
1175
1510
  const config = {};
1176
- typeCheckConfig$6(untrustedConfig, config, postBatchInvoiceDocGen_ConfigPropertyMetadata);
1511
+ typeCheckConfig$8(untrustedConfig, config, postBatchInvoiceDocGen_ConfigPropertyMetadata);
1177
1512
  return config;
1178
1513
  }
1179
1514
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -1349,10 +1684,10 @@ const postCronExecutionDates_ConfigPropertyMetadata = [
1349
1684
  generateParamConfigMetadata('preferredTime', true, 2 /* Body */, 0 /* String */),
1350
1685
  ];
1351
1686
  const postCronExecutionDates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postCronExecutionDates_ConfigPropertyMetadata);
1352
- const createResourceParams = /*#__PURE__*/ createResourceParams$6(postCronExecutionDates_ConfigPropertyMetadata);
1687
+ const createResourceParams = /*#__PURE__*/ createResourceParams$8(postCronExecutionDates_ConfigPropertyMetadata);
1353
1688
  function typeCheckConfig(untrustedConfig) {
1354
1689
  const config = {};
1355
- typeCheckConfig$6(untrustedConfig, config, postCronExecutionDates_ConfigPropertyMetadata);
1690
+ typeCheckConfig$8(untrustedConfig, config, postCronExecutionDates_ConfigPropertyMetadata);
1356
1691
  const untrustedConfig_frequencyCadenceOptions = untrustedConfig.frequencyCadenceOptions;
1357
1692
  config.frequencyCadenceOptions = untrustedConfig_frequencyCadenceOptions;
1358
1693
  return config;
@@ -1399,4 +1734,4 @@ const postCronExecutionDatesAdapterFactory = (luvio) => {
1399
1734
  };
1400
1735
  };
1401
1736
 
1402
- export { createInvoicesBatchSchedulerAdapterFactory, createPaymentsBatchSchedulerAdapterFactory, editInvoicesBatchSchedulerAdapterFactory, postBatchDraftInvoicesAdapterFactory, postBatchInvoiceDocGenAdapterFactory, postCronExecutionDatesAdapterFactory };
1737
+ export { batchInvoiceRunRecoveryAdapterFactory, createInvoicesBatchSchedulerAdapterFactory, createPaymentsBatchSchedulerAdapterFactory, editInvoicesBatchSchedulerAdapterFactory, postBatchDraftInvoicesAdapterFactory, postBatchInvoiceDocGenAdapterFactory, postCronExecutionDatesAdapterFactory, updateInvoicesBatchSchedulerAdapterFactory };