@salesforce/lds-adapters-revenue-billing-batch 1.302.0 → 1.303.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/sfdc/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
  /* proxy-compat-disable */
15
15
  import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$4, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$4 } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$5, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$5 } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -158,7 +158,7 @@ function createLink(ref) {
158
158
  };
159
159
  }
160
160
 
161
- function validate$9(obj, path = 'ScheduleOptionsInputRepresentationForInvoice') {
161
+ function validate$a(obj, path = 'ScheduleOptionsInputRepresentationForInvoice') {
162
162
  const v_error = (() => {
163
163
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
164
164
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -209,8 +209,8 @@ function validate$9(obj, path = 'ScheduleOptionsInputRepresentationForInvoice')
209
209
  return v_error === undefined ? null : v_error;
210
210
  }
211
211
 
212
- function validate$8(obj, path = 'BatchInvoiceSchedulerInputRepresentation') {
213
- const validateScheduleOptionsInputRepresentationForInvoice_validateError = validate$9(obj, path);
212
+ function validate$9(obj, path = 'BatchInvoiceSchedulerInputRepresentation') {
213
+ const validateScheduleOptionsInputRepresentationForInvoice_validateError = validate$a(obj, path);
214
214
  if (validateScheduleOptionsInputRepresentationForInvoice_validateError !== null) {
215
215
  return validateScheduleOptionsInputRepresentationForInvoice_validateError;
216
216
  }
@@ -236,7 +236,7 @@ function validate$8(obj, path = 'BatchInvoiceSchedulerInputRepresentation') {
236
236
  return v_error === undefined ? null : v_error;
237
237
  }
238
238
 
239
- function validate$7(obj, path = 'BillingBatchSchedulerRepresentation') {
239
+ function validate$8(obj, path = 'BillingBatchSchedulerRepresentation') {
240
240
  const v_error = (() => {
241
241
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
242
242
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -250,16 +250,16 @@ function validate$7(obj, path = 'BillingBatchSchedulerRepresentation') {
250
250
  return v_error === undefined ? null : v_error;
251
251
  }
252
252
 
253
- const TTL$3 = 1000;
254
- const VERSION$4 = "15c358b0b4903143c526f63f4010b958";
255
- function validate$6(obj, path = 'InvoicesBatchSchedulerOutputRepresentation') {
253
+ const TTL$4 = 1000;
254
+ const VERSION$5 = "15c358b0b4903143c526f63f4010b958";
255
+ function validate$7(obj, path = 'InvoicesBatchSchedulerOutputRepresentation') {
256
256
  const v_error = (() => {
257
257
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
258
258
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
259
259
  }
260
260
  const obj_billingBatchScheduler = obj.billingBatchScheduler;
261
261
  const path_billingBatchScheduler = path + '.billingBatchScheduler';
262
- const referencepath_billingBatchSchedulerValidationError = validate$7(obj_billingBatchScheduler, path_billingBatchScheduler);
262
+ const referencepath_billingBatchSchedulerValidationError = validate$8(obj_billingBatchScheduler, path_billingBatchScheduler);
263
263
  if (referencepath_billingBatchSchedulerValidationError !== null) {
264
264
  let message = 'Object doesn\'t match BillingBatchSchedulerRepresentation (at "' + path_billingBatchScheduler + '")\n';
265
265
  message += referencepath_billingBatchSchedulerValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -268,68 +268,68 @@ function validate$6(obj, path = 'InvoicesBatchSchedulerOutputRepresentation') {
268
268
  })();
269
269
  return v_error === undefined ? null : v_error;
270
270
  }
271
- const RepresentationType$3 = 'InvoicesBatchSchedulerOutputRepresentation';
272
- function keyBuilder$4(luvio, config) {
273
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.billingBatchSchedulerId;
271
+ const RepresentationType$4 = 'InvoicesBatchSchedulerOutputRepresentation';
272
+ function keyBuilder$5(luvio, config) {
273
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.billingBatchSchedulerId;
274
274
  }
275
- function keyBuilderFromType$2(luvio, object) {
275
+ function keyBuilderFromType$3(luvio, object) {
276
276
  const keyParams = {
277
277
  billingBatchSchedulerId: object.billingBatchScheduler.id
278
278
  };
279
- return keyBuilder$4(luvio, keyParams);
279
+ return keyBuilder$5(luvio, keyParams);
280
280
  }
281
- function normalize$3(input, existing, path, luvio, store, timestamp) {
281
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
282
282
  return input;
283
283
  }
284
- const select$8 = function InvoicesBatchSchedulerOutputRepresentationSelect() {
284
+ const select$a = function InvoicesBatchSchedulerOutputRepresentationSelect() {
285
285
  return {
286
286
  kind: 'Fragment',
287
- version: VERSION$4,
287
+ version: VERSION$5,
288
288
  private: [],
289
289
  opaque: true
290
290
  };
291
291
  };
292
- function equals$4(existing, incoming) {
292
+ function equals$5(existing, incoming) {
293
293
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
294
294
  return false;
295
295
  }
296
296
  return true;
297
297
  }
298
- const ingest$3 = function InvoicesBatchSchedulerOutputRepresentationIngest(input, path, luvio, store, timestamp) {
298
+ const ingest$4 = function InvoicesBatchSchedulerOutputRepresentationIngest(input, path, luvio, store, timestamp) {
299
299
  if (process.env.NODE_ENV !== 'production') {
300
- const validateError = validate$6(input);
300
+ const validateError = validate$7(input);
301
301
  if (validateError !== null) {
302
302
  throw validateError;
303
303
  }
304
304
  }
305
- const key = keyBuilderFromType$2(luvio, input);
306
- const ttlToUse = TTL$3;
307
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "BillingBatch", VERSION$4, RepresentationType$3, equals$4);
305
+ const key = keyBuilderFromType$3(luvio, input);
306
+ const ttlToUse = TTL$4;
307
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "BillingBatch", VERSION$5, RepresentationType$4, equals$5);
308
308
  return createLink(key);
309
309
  };
310
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
310
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
311
311
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
312
- const rootKey = keyBuilderFromType$2(luvio, input);
312
+ const rootKey = keyBuilderFromType$3(luvio, input);
313
313
  rootKeySet.set(rootKey, {
314
314
  namespace: keyPrefix,
315
- representationName: RepresentationType$3,
315
+ representationName: RepresentationType$4,
316
316
  mergeable: false
317
317
  });
318
318
  }
319
319
 
320
- function select$7(luvio, params) {
321
- return select$8();
320
+ function select$9(luvio, params) {
321
+ return select$a();
322
322
  }
323
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
324
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
323
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
324
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
325
325
  }
326
- function ingestSuccess$3(luvio, resourceParams, response) {
326
+ function ingestSuccess$4(luvio, resourceParams, response) {
327
327
  const { body } = response;
328
- const key = keyBuilderFromType$2(luvio, body);
329
- luvio.storeIngest(key, ingest$3, body);
328
+ const key = keyBuilderFromType$3(luvio, body);
329
+ luvio.storeIngest(key, ingest$4, body);
330
330
  const snapshot = luvio.storeLookup({
331
331
  recordId: key,
332
- node: select$7(),
332
+ node: select$9(),
333
333
  variables: {},
334
334
  });
335
335
  if (process.env.NODE_ENV !== 'production') {
@@ -340,7 +340,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
340
340
  deepFreeze(snapshot.data);
341
341
  return snapshot;
342
342
  }
343
- function createResourceRequest$3(config) {
343
+ function createResourceRequest$4(config) {
344
344
  const headers = {};
345
345
  return {
346
346
  baseUri: '/services/data/v62.0',
@@ -354,45 +354,45 @@ function createResourceRequest$3(config) {
354
354
  };
355
355
  }
356
356
 
357
- const adapterName$3 = 'createInvoicesBatchScheduler';
357
+ const adapterName$4 = 'createInvoicesBatchScheduler';
358
358
  const createInvoicesBatchScheduler_ConfigPropertyMetadata = [
359
359
  generateParamConfigMetadata('BatchInvoiceSchedulerInput', true, 2 /* Body */, 4 /* Unsupported */),
360
360
  ];
361
- const createInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createInvoicesBatchScheduler_ConfigPropertyMetadata);
362
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(createInvoicesBatchScheduler_ConfigPropertyMetadata);
363
- function typeCheckConfig$3(untrustedConfig) {
361
+ const createInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createInvoicesBatchScheduler_ConfigPropertyMetadata);
362
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(createInvoicesBatchScheduler_ConfigPropertyMetadata);
363
+ function typeCheckConfig$4(untrustedConfig) {
364
364
  const config = {};
365
365
  const untrustedConfig_BatchInvoiceSchedulerInput = untrustedConfig.BatchInvoiceSchedulerInput;
366
- const referenceBatchInvoiceSchedulerInputRepresentationValidationError = validate$8(untrustedConfig_BatchInvoiceSchedulerInput);
366
+ const referenceBatchInvoiceSchedulerInputRepresentationValidationError = validate$9(untrustedConfig_BatchInvoiceSchedulerInput);
367
367
  if (referenceBatchInvoiceSchedulerInputRepresentationValidationError === null) {
368
368
  config.BatchInvoiceSchedulerInput = untrustedConfig_BatchInvoiceSchedulerInput;
369
369
  }
370
370
  return config;
371
371
  }
372
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
372
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
373
373
  if (!untrustedIsObject(untrustedConfig)) {
374
374
  return null;
375
375
  }
376
376
  if (process.env.NODE_ENV !== 'production') {
377
377
  validateConfig(untrustedConfig, configPropertyNames);
378
378
  }
379
- const config = typeCheckConfig$3(untrustedConfig);
379
+ const config = typeCheckConfig$4(untrustedConfig);
380
380
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
381
381
  return null;
382
382
  }
383
383
  return config;
384
384
  }
385
- function buildNetworkSnapshot$3(luvio, config, options) {
386
- const resourceParams = createResourceParams$3(config);
387
- const request = createResourceRequest$3(resourceParams);
385
+ function buildNetworkSnapshot$4(luvio, config, options) {
386
+ const resourceParams = createResourceParams$4(config);
387
+ const request = createResourceRequest$4(resourceParams);
388
388
  return luvio.dispatchResourceRequest(request, options)
389
389
  .then((response) => {
390
390
  return luvio.handleSuccessResponse(() => {
391
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
391
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
392
392
  return luvio.storeBroadcast().then(() => snapshot);
393
393
  }, () => {
394
394
  const cache = new StoreKeyMap();
395
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
395
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
396
396
  return cache;
397
397
  });
398
398
  }, (response) => {
@@ -402,16 +402,16 @@ function buildNetworkSnapshot$3(luvio, config, options) {
402
402
  }
403
403
  const createInvoicesBatchSchedulerAdapterFactory = (luvio) => {
404
404
  return function createInvoicesBatchScheduler(untrustedConfig) {
405
- const config = validateAdapterConfig$3(untrustedConfig, createInvoicesBatchScheduler_ConfigPropertyNames);
405
+ const config = validateAdapterConfig$4(untrustedConfig, createInvoicesBatchScheduler_ConfigPropertyNames);
406
406
  // Invalid or incomplete config
407
407
  if (config === null) {
408
408
  throw new Error('Invalid config for "createInvoicesBatchScheduler"');
409
409
  }
410
- return buildNetworkSnapshot$3(luvio, config);
410
+ return buildNetworkSnapshot$4(luvio, config);
411
411
  };
412
412
  };
413
413
 
414
- function validate$5(obj, path = 'ScheduleOptionsInputRepresentation') {
414
+ function validate$6(obj, path = 'ScheduleOptionsInputRepresentation') {
415
415
  const v_error = (() => {
416
416
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
417
417
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -459,8 +459,8 @@ function validate$5(obj, path = 'ScheduleOptionsInputRepresentation') {
459
459
  return v_error === undefined ? null : v_error;
460
460
  }
461
461
 
462
- function validate$4(obj, path = 'PaymentsBatchSchedulerInputRepresentation') {
463
- const validateScheduleOptionsInputRepresentation_validateError = validate$5(obj, path);
462
+ function validate$5(obj, path = 'PaymentsBatchSchedulerInputRepresentation') {
463
+ const validateScheduleOptionsInputRepresentation_validateError = validate$6(obj, path);
464
464
  if (validateScheduleOptionsInputRepresentation_validateError !== null) {
465
465
  return validateScheduleOptionsInputRepresentation_validateError;
466
466
  }
@@ -493,16 +493,16 @@ function validate$4(obj, path = 'PaymentsBatchSchedulerInputRepresentation') {
493
493
  return v_error === undefined ? null : v_error;
494
494
  }
495
495
 
496
- const TTL$2 = 1000;
497
- const VERSION$3 = "eff71edc32270b9a1e6e1779cb811c3c";
498
- function validate$3(obj, path = 'PaymentsBatchSchedulerOutputRepresentation') {
496
+ const TTL$3 = 1000;
497
+ const VERSION$4 = "eff71edc32270b9a1e6e1779cb811c3c";
498
+ function validate$4(obj, path = 'PaymentsBatchSchedulerOutputRepresentation') {
499
499
  const v_error = (() => {
500
500
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
501
501
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
502
502
  }
503
503
  const obj_billingBatchScheduler = obj.billingBatchScheduler;
504
504
  const path_billingBatchScheduler = path + '.billingBatchScheduler';
505
- const referencepath_billingBatchSchedulerValidationError = validate$7(obj_billingBatchScheduler, path_billingBatchScheduler);
505
+ const referencepath_billingBatchSchedulerValidationError = validate$8(obj_billingBatchScheduler, path_billingBatchScheduler);
506
506
  if (referencepath_billingBatchSchedulerValidationError !== null) {
507
507
  let message = 'Object doesn\'t match BillingBatchSchedulerRepresentation (at "' + path_billingBatchScheduler + '")\n';
508
508
  message += referencepath_billingBatchSchedulerValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -511,68 +511,68 @@ function validate$3(obj, path = 'PaymentsBatchSchedulerOutputRepresentation') {
511
511
  })();
512
512
  return v_error === undefined ? null : v_error;
513
513
  }
514
- const RepresentationType$2 = 'PaymentsBatchSchedulerOutputRepresentation';
515
- function keyBuilder$3(luvio, config) {
516
- return keyPrefix + '::' + RepresentationType$2 + ':' + config.billingBatchSchedulerId;
514
+ const RepresentationType$3 = 'PaymentsBatchSchedulerOutputRepresentation';
515
+ function keyBuilder$4(luvio, config) {
516
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.billingBatchSchedulerId;
517
517
  }
518
- function keyBuilderFromType$1(luvio, object) {
518
+ function keyBuilderFromType$2(luvio, object) {
519
519
  const keyParams = {
520
520
  billingBatchSchedulerId: object.billingBatchScheduler.id
521
521
  };
522
- return keyBuilder$3(luvio, keyParams);
522
+ return keyBuilder$4(luvio, keyParams);
523
523
  }
524
- function normalize$2(input, existing, path, luvio, store, timestamp) {
524
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
525
525
  return input;
526
526
  }
527
- const select$6 = function PaymentsBatchSchedulerOutputRepresentationSelect() {
527
+ const select$8 = function PaymentsBatchSchedulerOutputRepresentationSelect() {
528
528
  return {
529
529
  kind: 'Fragment',
530
- version: VERSION$3,
530
+ version: VERSION$4,
531
531
  private: [],
532
532
  opaque: true
533
533
  };
534
534
  };
535
- function equals$3(existing, incoming) {
535
+ function equals$4(existing, incoming) {
536
536
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
537
537
  return false;
538
538
  }
539
539
  return true;
540
540
  }
541
- const ingest$2 = function PaymentsBatchSchedulerOutputRepresentationIngest(input, path, luvio, store, timestamp) {
541
+ const ingest$3 = function PaymentsBatchSchedulerOutputRepresentationIngest(input, path, luvio, store, timestamp) {
542
542
  if (process.env.NODE_ENV !== 'production') {
543
- const validateError = validate$3(input);
543
+ const validateError = validate$4(input);
544
544
  if (validateError !== null) {
545
545
  throw validateError;
546
546
  }
547
547
  }
548
- const key = keyBuilderFromType$1(luvio, input);
549
- const ttlToUse = TTL$2;
550
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "BillingBatch", VERSION$3, RepresentationType$2, equals$3);
548
+ const key = keyBuilderFromType$2(luvio, input);
549
+ const ttlToUse = TTL$3;
550
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "BillingBatch", VERSION$4, RepresentationType$3, equals$4);
551
551
  return createLink(key);
552
552
  };
553
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
553
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
554
554
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
555
- const rootKey = keyBuilderFromType$1(luvio, input);
555
+ const rootKey = keyBuilderFromType$2(luvio, input);
556
556
  rootKeySet.set(rootKey, {
557
557
  namespace: keyPrefix,
558
- representationName: RepresentationType$2,
558
+ representationName: RepresentationType$3,
559
559
  mergeable: false
560
560
  });
561
561
  }
562
562
 
563
- function select$5(luvio, params) {
564
- return select$6();
563
+ function select$7(luvio, params) {
564
+ return select$8();
565
565
  }
566
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
567
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
566
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
567
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
568
568
  }
569
- function ingestSuccess$2(luvio, resourceParams, response) {
569
+ function ingestSuccess$3(luvio, resourceParams, response) {
570
570
  const { body } = response;
571
- const key = keyBuilderFromType$1(luvio, body);
572
- luvio.storeIngest(key, ingest$2, body);
571
+ const key = keyBuilderFromType$2(luvio, body);
572
+ luvio.storeIngest(key, ingest$3, body);
573
573
  const snapshot = luvio.storeLookup({
574
574
  recordId: key,
575
- node: select$5(),
575
+ node: select$7(),
576
576
  variables: {},
577
577
  });
578
578
  if (process.env.NODE_ENV !== 'production') {
@@ -583,7 +583,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
583
583
  deepFreeze(snapshot.data);
584
584
  return snapshot;
585
585
  }
586
- function createResourceRequest$2(config) {
586
+ function createResourceRequest$3(config) {
587
587
  const headers = {};
588
588
  return {
589
589
  baseUri: '/services/data/v62.0',
@@ -597,45 +597,45 @@ function createResourceRequest$2(config) {
597
597
  };
598
598
  }
599
599
 
600
- const adapterName$2 = 'createPaymentsBatchScheduler';
600
+ const adapterName$3 = 'createPaymentsBatchScheduler';
601
601
  const createPaymentsBatchScheduler_ConfigPropertyMetadata = [
602
602
  generateParamConfigMetadata('PaymentsBatchSchedulerInput', true, 2 /* Body */, 4 /* Unsupported */),
603
603
  ];
604
- const createPaymentsBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createPaymentsBatchScheduler_ConfigPropertyMetadata);
605
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(createPaymentsBatchScheduler_ConfigPropertyMetadata);
606
- function typeCheckConfig$2(untrustedConfig) {
604
+ const createPaymentsBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createPaymentsBatchScheduler_ConfigPropertyMetadata);
605
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(createPaymentsBatchScheduler_ConfigPropertyMetadata);
606
+ function typeCheckConfig$3(untrustedConfig) {
607
607
  const config = {};
608
608
  const untrustedConfig_PaymentsBatchSchedulerInput = untrustedConfig.PaymentsBatchSchedulerInput;
609
- const referencePaymentsBatchSchedulerInputRepresentationValidationError = validate$4(untrustedConfig_PaymentsBatchSchedulerInput);
609
+ const referencePaymentsBatchSchedulerInputRepresentationValidationError = validate$5(untrustedConfig_PaymentsBatchSchedulerInput);
610
610
  if (referencePaymentsBatchSchedulerInputRepresentationValidationError === null) {
611
611
  config.PaymentsBatchSchedulerInput = untrustedConfig_PaymentsBatchSchedulerInput;
612
612
  }
613
613
  return config;
614
614
  }
615
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
615
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
616
616
  if (!untrustedIsObject(untrustedConfig)) {
617
617
  return null;
618
618
  }
619
619
  if (process.env.NODE_ENV !== 'production') {
620
620
  validateConfig(untrustedConfig, configPropertyNames);
621
621
  }
622
- const config = typeCheckConfig$2(untrustedConfig);
622
+ const config = typeCheckConfig$3(untrustedConfig);
623
623
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
624
624
  return null;
625
625
  }
626
626
  return config;
627
627
  }
628
- function buildNetworkSnapshot$2(luvio, config, options) {
629
- const resourceParams = createResourceParams$2(config);
630
- const request = createResourceRequest$2(resourceParams);
628
+ function buildNetworkSnapshot$3(luvio, config, options) {
629
+ const resourceParams = createResourceParams$3(config);
630
+ const request = createResourceRequest$3(resourceParams);
631
631
  return luvio.dispatchResourceRequest(request, options)
632
632
  .then((response) => {
633
633
  return luvio.handleSuccessResponse(() => {
634
- const snapshot = ingestSuccess$2(luvio, resourceParams, response);
634
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
635
635
  return luvio.storeBroadcast().then(() => snapshot);
636
636
  }, () => {
637
637
  const cache = new StoreKeyMap();
638
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
638
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
639
639
  return cache;
640
640
  });
641
641
  }, (response) => {
@@ -645,18 +645,18 @@ function buildNetworkSnapshot$2(luvio, config, options) {
645
645
  }
646
646
  const createPaymentsBatchSchedulerAdapterFactory = (luvio) => {
647
647
  return function createPaymentsBatchScheduler(untrustedConfig) {
648
- const config = validateAdapterConfig$2(untrustedConfig, createPaymentsBatchScheduler_ConfigPropertyNames);
648
+ const config = validateAdapterConfig$3(untrustedConfig, createPaymentsBatchScheduler_ConfigPropertyNames);
649
649
  // Invalid or incomplete config
650
650
  if (config === null) {
651
651
  throw new Error('Invalid config for "createPaymentsBatchScheduler"');
652
652
  }
653
- return buildNetworkSnapshot$2(luvio, config);
653
+ return buildNetworkSnapshot$3(luvio, config);
654
654
  };
655
655
  };
656
656
 
657
- const TTL$1 = 1000;
658
- const VERSION$2 = "1b89e7904345b50c1a8bfa0fc6e7dff0";
659
- function validate$2(obj, path = 'InvoiceBatchDraftToPostedOutputRepresentation') {
657
+ const TTL$2 = 1000;
658
+ const VERSION$3 = "1b89e7904345b50c1a8bfa0fc6e7dff0";
659
+ function validate$3(obj, path = 'InvoiceBatchDraftToPostedOutputRepresentation') {
660
660
  const v_error = (() => {
661
661
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
662
662
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -674,14 +674,14 @@ function validate$2(obj, path = 'InvoiceBatchDraftToPostedOutputRepresentation')
674
674
  })();
675
675
  return v_error === undefined ? null : v_error;
676
676
  }
677
- const RepresentationType$1 = 'InvoiceBatchDraftToPostedOutputRepresentation';
678
- function normalize$1(input, existing, path, luvio, store, timestamp) {
677
+ const RepresentationType$2 = 'InvoiceBatchDraftToPostedOutputRepresentation';
678
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
679
679
  return input;
680
680
  }
681
- const select$4 = function InvoiceBatchDraftToPostedOutputRepresentationSelect() {
681
+ const select$6 = function InvoiceBatchDraftToPostedOutputRepresentationSelect() {
682
682
  return {
683
683
  kind: 'Fragment',
684
- version: VERSION$2,
684
+ version: VERSION$3,
685
685
  private: [],
686
686
  selections: [
687
687
  {
@@ -695,7 +695,7 @@ const select$4 = function InvoiceBatchDraftToPostedOutputRepresentationSelect()
695
695
  ]
696
696
  };
697
697
  };
698
- function equals$2(existing, incoming) {
698
+ function equals$3(existing, incoming) {
699
699
  const existing_success = existing.success;
700
700
  const incoming_success = incoming.success;
701
701
  if (!(existing_success === incoming_success)) {
@@ -708,44 +708,44 @@ function equals$2(existing, incoming) {
708
708
  }
709
709
  return true;
710
710
  }
711
- const ingest$1 = function InvoiceBatchDraftToPostedOutputRepresentationIngest(input, path, luvio, store, timestamp) {
711
+ const ingest$2 = function InvoiceBatchDraftToPostedOutputRepresentationIngest(input, path, luvio, store, timestamp) {
712
712
  if (process.env.NODE_ENV !== 'production') {
713
- const validateError = validate$2(input);
713
+ const validateError = validate$3(input);
714
714
  if (validateError !== null) {
715
715
  throw validateError;
716
716
  }
717
717
  }
718
718
  const key = path.fullPath;
719
- const ttlToUse = TTL$1;
720
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "BillingBatch", VERSION$2, RepresentationType$1, equals$2);
719
+ const ttlToUse = TTL$2;
720
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "BillingBatch", VERSION$3, RepresentationType$2, equals$3);
721
721
  return createLink(key);
722
722
  };
723
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
723
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
724
724
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
725
725
  const rootKey = fullPathFactory();
726
726
  rootKeySet.set(rootKey, {
727
727
  namespace: keyPrefix,
728
- representationName: RepresentationType$1,
728
+ representationName: RepresentationType$2,
729
729
  mergeable: false
730
730
  });
731
731
  }
732
732
 
733
- function select$3(luvio, params) {
734
- return select$4();
733
+ function select$5(luvio, params) {
734
+ return select$6();
735
735
  }
736
- function keyBuilder$2(luvio, params) {
736
+ function keyBuilder$3(luvio, params) {
737
737
  return keyPrefix + '::InvoiceBatchDraftToPostedOutputRepresentation:(' + 'invoiceBatchRunId:' + params.urlParams.invoiceBatchRunId + ',' + stableJSONStringify(params.body) + ')';
738
738
  }
739
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
740
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
739
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
740
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
741
741
  }
742
- function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
742
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
743
743
  const { body } = response;
744
- const key = keyBuilder$2(luvio, resourceParams);
745
- luvio.storeIngest(key, ingest$1, body);
744
+ const key = keyBuilder$3(luvio, resourceParams);
745
+ luvio.storeIngest(key, ingest$2, body);
746
746
  const snapshot = luvio.storeLookup({
747
747
  recordId: key,
748
- node: select$3(),
748
+ node: select$5(),
749
749
  variables: {},
750
750
  }, snapshotRefresh);
751
751
  if (process.env.NODE_ENV !== 'production') {
@@ -757,18 +757,18 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
757
757
  return snapshot;
758
758
  }
759
759
  function ingestError(luvio, params, error, snapshotRefresh) {
760
- const key = keyBuilder$2(luvio, params);
760
+ const key = keyBuilder$3(luvio, params);
761
761
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
762
762
  const storeMetadataParams = {
763
- ttl: TTL$1,
763
+ ttl: TTL$2,
764
764
  namespace: keyPrefix,
765
- version: VERSION$2,
766
- representationName: RepresentationType$1
765
+ version: VERSION$3,
766
+ representationName: RepresentationType$2
767
767
  };
768
768
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
769
769
  return errorSnapshot;
770
770
  }
771
- function createResourceRequest$1(config) {
771
+ function createResourceRequest$2(config) {
772
772
  const headers = {};
773
773
  return {
774
774
  baseUri: '/services/data/v62.0',
@@ -782,60 +782,60 @@ function createResourceRequest$1(config) {
782
782
  };
783
783
  }
784
784
 
785
- const adapterName$1 = 'postBatchDraftInvoices';
785
+ const adapterName$2 = 'postBatchDraftInvoices';
786
786
  const postBatchDraftInvoices_ConfigPropertyMetadata = [
787
787
  generateParamConfigMetadata('invoiceBatchRunId', true, 0 /* UrlParameter */, 0 /* String */),
788
788
  ];
789
- const postBatchDraftInvoices_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postBatchDraftInvoices_ConfigPropertyMetadata);
790
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(postBatchDraftInvoices_ConfigPropertyMetadata);
791
- function keyBuilder$1(luvio, config) {
792
- const resourceParams = createResourceParams$1(config);
793
- return keyBuilder$2(luvio, resourceParams);
789
+ const postBatchDraftInvoices_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, postBatchDraftInvoices_ConfigPropertyMetadata);
790
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(postBatchDraftInvoices_ConfigPropertyMetadata);
791
+ function keyBuilder$2(luvio, config) {
792
+ const resourceParams = createResourceParams$2(config);
793
+ return keyBuilder$3(luvio, resourceParams);
794
794
  }
795
- function typeCheckConfig$1(untrustedConfig) {
795
+ function typeCheckConfig$2(untrustedConfig) {
796
796
  const config = {};
797
- typeCheckConfig$4(untrustedConfig, config, postBatchDraftInvoices_ConfigPropertyMetadata);
797
+ typeCheckConfig$5(untrustedConfig, config, postBatchDraftInvoices_ConfigPropertyMetadata);
798
798
  return config;
799
799
  }
800
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
800
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
801
801
  if (!untrustedIsObject(untrustedConfig)) {
802
802
  return null;
803
803
  }
804
804
  if (process.env.NODE_ENV !== 'production') {
805
805
  validateConfig(untrustedConfig, configPropertyNames);
806
806
  }
807
- const config = typeCheckConfig$1(untrustedConfig);
807
+ const config = typeCheckConfig$2(untrustedConfig);
808
808
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
809
809
  return null;
810
810
  }
811
811
  return config;
812
812
  }
813
813
  function adapterFragment(luvio, config) {
814
- createResourceParams$1(config);
815
- return select$3();
814
+ createResourceParams$2(config);
815
+ return select$5();
816
816
  }
817
817
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
818
- const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
818
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
819
819
  config,
820
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
820
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
821
821
  });
822
822
  return luvio.storeBroadcast().then(() => snapshot);
823
823
  }
824
824
  function onFetchResponseError(luvio, config, resourceParams, response) {
825
825
  const snapshot = ingestError(luvio, resourceParams, response, {
826
826
  config,
827
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
827
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
828
828
  });
829
829
  return luvio.storeBroadcast().then(() => snapshot);
830
830
  }
831
- function buildNetworkSnapshot$1(luvio, config, options) {
832
- const resourceParams = createResourceParams$1(config);
833
- const request = createResourceRequest$1(resourceParams);
831
+ function buildNetworkSnapshot$2(luvio, config, options) {
832
+ const resourceParams = createResourceParams$2(config);
833
+ const request = createResourceRequest$2(resourceParams);
834
834
  return luvio.dispatchResourceRequest(request, options)
835
835
  .then((response) => {
836
836
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
837
837
  const cache = new StoreKeyMap();
838
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
838
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
839
839
  return cache;
840
840
  });
841
841
  }, (response) => {
@@ -843,23 +843,23 @@ function buildNetworkSnapshot$1(luvio, config, options) {
843
843
  });
844
844
  }
845
845
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
846
- return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
846
+ return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, 'get', false);
847
847
  }
848
848
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
849
849
  const { luvio, config } = context;
850
850
  const selector = {
851
- recordId: keyBuilder$1(luvio, config),
851
+ recordId: keyBuilder$2(luvio, config),
852
852
  node: adapterFragment(luvio, config),
853
853
  variables: {},
854
854
  };
855
855
  const cacheSnapshot = storeLookup(selector, {
856
856
  config,
857
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
857
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
858
858
  });
859
859
  return cacheSnapshot;
860
860
  }
861
861
  const postBatchDraftInvoicesAdapterFactory = (luvio) => function BillingBatch__postBatchDraftInvoices(untrustedConfig, requestContext) {
862
- const config = validateAdapterConfig$1(untrustedConfig, postBatchDraftInvoices_ConfigPropertyNames);
862
+ const config = validateAdapterConfig$2(untrustedConfig, postBatchDraftInvoices_ConfigPropertyNames);
863
863
  // Invalid or incomplete config
864
864
  if (config === null) {
865
865
  return null;
@@ -868,8 +868,8 @@ const postBatchDraftInvoicesAdapterFactory = (luvio) => function BillingBatch__p
868
868
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
869
869
  };
870
870
 
871
- const VERSION$1 = "ae245aac2922b53e1ff758392e317d39";
872
- function validate$1(obj, path = 'BatchInvoiceDocGenErrorRepresentation') {
871
+ const VERSION$2 = "ae245aac2922b53e1ff758392e317d39";
872
+ function validate$2(obj, path = 'BatchInvoiceDocGenErrorRepresentation') {
873
873
  const v_error = (() => {
874
874
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
875
875
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -887,10 +887,10 @@ function validate$1(obj, path = 'BatchInvoiceDocGenErrorRepresentation') {
887
887
  })();
888
888
  return v_error === undefined ? null : v_error;
889
889
  }
890
- const select$2 = function BatchInvoiceDocGenErrorRepresentationSelect() {
890
+ const select$4 = function BatchInvoiceDocGenErrorRepresentationSelect() {
891
891
  return {
892
892
  kind: 'Fragment',
893
- version: VERSION$1,
893
+ version: VERSION$2,
894
894
  private: [],
895
895
  selections: [
896
896
  {
@@ -904,7 +904,7 @@ const select$2 = function BatchInvoiceDocGenErrorRepresentationSelect() {
904
904
  ]
905
905
  };
906
906
  };
907
- function equals$1(existing, incoming) {
907
+ function equals$2(existing, incoming) {
908
908
  const existing_errorCode = existing.errorCode;
909
909
  const incoming_errorCode = incoming.errorCode;
910
910
  if (!(existing_errorCode === incoming_errorCode)) {
@@ -918,9 +918,9 @@ function equals$1(existing, incoming) {
918
918
  return true;
919
919
  }
920
920
 
921
- const TTL = 1000;
922
- const VERSION = "1630988ffc3067417295a90783bd1812";
923
- function validate(obj, path = 'BatchInvoiceDocGenOutputRepresentation') {
921
+ const TTL$1 = 1000;
922
+ const VERSION$1 = "1630988ffc3067417295a90783bd1812";
923
+ function validate$1(obj, path = 'BatchInvoiceDocGenOutputRepresentation') {
924
924
  const v_error = (() => {
925
925
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
926
926
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -933,7 +933,7 @@ function validate(obj, path = 'BatchInvoiceDocGenOutputRepresentation') {
933
933
  for (let i = 0; i < obj_errors.length; i++) {
934
934
  const obj_errors_item = obj_errors[i];
935
935
  const path_errors_item = path_errors + '[' + i + ']';
936
- const referencepath_errors_itemValidationError = validate$1(obj_errors_item, path_errors_item);
936
+ const referencepath_errors_itemValidationError = validate$2(obj_errors_item, path_errors_item);
937
937
  if (referencepath_errors_itemValidationError !== null) {
938
938
  let message = 'Object doesn\'t match BatchInvoiceDocGenErrorRepresentation (at "' + path_errors_item + '")\n';
939
939
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -953,24 +953,24 @@ function validate(obj, path = 'BatchInvoiceDocGenOutputRepresentation') {
953
953
  })();
954
954
  return v_error === undefined ? null : v_error;
955
955
  }
956
- const RepresentationType = 'BatchInvoiceDocGenOutputRepresentation';
957
- function keyBuilder(luvio, config) {
958
- return keyPrefix + '::' + RepresentationType + ':' + config.requestIdentifier;
956
+ const RepresentationType$1 = 'BatchInvoiceDocGenOutputRepresentation';
957
+ function keyBuilder$1(luvio, config) {
958
+ return keyPrefix + '::' + RepresentationType$1 + ':' + config.requestIdentifier;
959
959
  }
960
- function keyBuilderFromType(luvio, object) {
960
+ function keyBuilderFromType$1(luvio, object) {
961
961
  const keyParams = {
962
962
  requestIdentifier: object.requestIdentifier
963
963
  };
964
- return keyBuilder(luvio, keyParams);
964
+ return keyBuilder$1(luvio, keyParams);
965
965
  }
966
- function normalize(input, existing, path, luvio, store, timestamp) {
966
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
967
967
  return input;
968
968
  }
969
- const select$1 = function BatchInvoiceDocGenOutputRepresentationSelect() {
970
- const { selections: BatchInvoiceDocGenErrorRepresentation__selections, opaque: BatchInvoiceDocGenErrorRepresentation__opaque, } = select$2();
969
+ const select$3 = function BatchInvoiceDocGenOutputRepresentationSelect() {
970
+ const { selections: BatchInvoiceDocGenErrorRepresentation__selections, opaque: BatchInvoiceDocGenErrorRepresentation__opaque, } = select$4();
971
971
  return {
972
972
  kind: 'Fragment',
973
- version: VERSION,
973
+ version: VERSION$1,
974
974
  private: [],
975
975
  selections: [
976
976
  {
@@ -990,7 +990,7 @@ const select$1 = function BatchInvoiceDocGenOutputRepresentationSelect() {
990
990
  ]
991
991
  };
992
992
  };
993
- function equals(existing, incoming) {
993
+ function equals$1(existing, incoming) {
994
994
  const existing_success = existing.success;
995
995
  const incoming_success = incoming.success;
996
996
  if (!(existing_success === incoming_success)) {
@@ -1004,7 +1004,7 @@ function equals(existing, incoming) {
1004
1004
  const existing_errors = existing.errors;
1005
1005
  const incoming_errors = incoming.errors;
1006
1006
  const equals_errors_items = equalsArray(existing_errors, incoming_errors, (existing_errors_item, incoming_errors_item) => {
1007
- if (!(equals$1(existing_errors_item, incoming_errors_item))) {
1007
+ if (!(equals$2(existing_errors_item, incoming_errors_item))) {
1008
1008
  return false;
1009
1009
  }
1010
1010
  });
@@ -1013,7 +1013,182 @@ function equals(existing, incoming) {
1013
1013
  }
1014
1014
  return true;
1015
1015
  }
1016
- const ingest = function BatchInvoiceDocGenOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1016
+ const ingest$1 = function BatchInvoiceDocGenOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1017
+ if (process.env.NODE_ENV !== 'production') {
1018
+ const validateError = validate$1(input);
1019
+ if (validateError !== null) {
1020
+ throw validateError;
1021
+ }
1022
+ }
1023
+ const key = keyBuilderFromType$1(luvio, input);
1024
+ const ttlToUse = TTL$1;
1025
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "BillingBatch", VERSION$1, RepresentationType$1, equals$1);
1026
+ return createLink(key);
1027
+ };
1028
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1029
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1030
+ const rootKey = keyBuilderFromType$1(luvio, input);
1031
+ rootKeySet.set(rootKey, {
1032
+ namespace: keyPrefix,
1033
+ representationName: RepresentationType$1,
1034
+ mergeable: false
1035
+ });
1036
+ }
1037
+
1038
+ function select$2(luvio, params) {
1039
+ return select$3();
1040
+ }
1041
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1042
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
1043
+ }
1044
+ function ingestSuccess$1(luvio, resourceParams, response) {
1045
+ const { body } = response;
1046
+ const key = keyBuilderFromType$1(luvio, body);
1047
+ luvio.storeIngest(key, ingest$1, body);
1048
+ const snapshot = luvio.storeLookup({
1049
+ recordId: key,
1050
+ node: select$2(),
1051
+ variables: {},
1052
+ });
1053
+ if (process.env.NODE_ENV !== 'production') {
1054
+ if (snapshot.state !== 'Fulfilled') {
1055
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1056
+ }
1057
+ }
1058
+ deepFreeze(snapshot.data);
1059
+ return snapshot;
1060
+ }
1061
+ function createResourceRequest$1(config) {
1062
+ const headers = {};
1063
+ return {
1064
+ baseUri: '/services/data/v62.0',
1065
+ basePath: '/commerce/billing/invoices/invoice-batch-docgen/' + config.urlParams.invoiceBatchRunId + '/actions/' + config.urlParams.actionName + '',
1066
+ method: 'post',
1067
+ body: null,
1068
+ urlParams: config.urlParams,
1069
+ queryParams: {},
1070
+ headers,
1071
+ priority: 'normal',
1072
+ };
1073
+ }
1074
+
1075
+ const adapterName$1 = 'postBatchInvoiceDocGen';
1076
+ const postBatchInvoiceDocGen_ConfigPropertyMetadata = [
1077
+ generateParamConfigMetadata('invoiceBatchRunId', true, 0 /* UrlParameter */, 0 /* String */),
1078
+ generateParamConfigMetadata('actionName', true, 0 /* UrlParameter */, 0 /* String */),
1079
+ ];
1080
+ const postBatchInvoiceDocGen_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postBatchInvoiceDocGen_ConfigPropertyMetadata);
1081
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(postBatchInvoiceDocGen_ConfigPropertyMetadata);
1082
+ function typeCheckConfig$1(untrustedConfig) {
1083
+ const config = {};
1084
+ typeCheckConfig$5(untrustedConfig, config, postBatchInvoiceDocGen_ConfigPropertyMetadata);
1085
+ return config;
1086
+ }
1087
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1088
+ if (!untrustedIsObject(untrustedConfig)) {
1089
+ return null;
1090
+ }
1091
+ if (process.env.NODE_ENV !== 'production') {
1092
+ validateConfig(untrustedConfig, configPropertyNames);
1093
+ }
1094
+ const config = typeCheckConfig$1(untrustedConfig);
1095
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1096
+ return null;
1097
+ }
1098
+ return config;
1099
+ }
1100
+ function buildNetworkSnapshot$1(luvio, config, options) {
1101
+ const resourceParams = createResourceParams$1(config);
1102
+ const request = createResourceRequest$1(resourceParams);
1103
+ return luvio.dispatchResourceRequest(request, options)
1104
+ .then((response) => {
1105
+ return luvio.handleSuccessResponse(() => {
1106
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response);
1107
+ return luvio.storeBroadcast().then(() => snapshot);
1108
+ }, () => {
1109
+ const cache = new StoreKeyMap();
1110
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1111
+ return cache;
1112
+ });
1113
+ }, (response) => {
1114
+ deepFreeze(response);
1115
+ throw response;
1116
+ });
1117
+ }
1118
+ const postBatchInvoiceDocGenAdapterFactory = (luvio) => {
1119
+ return function postBatchInvoiceDocGen(untrustedConfig) {
1120
+ const config = validateAdapterConfig$1(untrustedConfig, postBatchInvoiceDocGen_ConfigPropertyNames);
1121
+ // Invalid or incomplete config
1122
+ if (config === null) {
1123
+ throw new Error('Invalid config for "postBatchInvoiceDocGen"');
1124
+ }
1125
+ return buildNetworkSnapshot$1(luvio, config);
1126
+ };
1127
+ };
1128
+
1129
+ const TTL = 1000;
1130
+ const VERSION = "c7bbc92c6b88cd62361410ec3b1597e5";
1131
+ function validate(obj, path = 'CronExecutionDatesOutputRepresentation') {
1132
+ const v_error = (() => {
1133
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1134
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1135
+ }
1136
+ const obj_executionDates = obj.executionDates;
1137
+ const path_executionDates = path + '.executionDates';
1138
+ if (!ArrayIsArray(obj_executionDates)) {
1139
+ return new TypeError('Expected "array" but received "' + typeof obj_executionDates + '" (at "' + path_executionDates + '")');
1140
+ }
1141
+ for (let i = 0; i < obj_executionDates.length; i++) {
1142
+ const obj_executionDates_item = obj_executionDates[i];
1143
+ const path_executionDates_item = path_executionDates + '[' + i + ']';
1144
+ if (typeof obj_executionDates_item !== 'string') {
1145
+ return new TypeError('Expected "string" but received "' + typeof obj_executionDates_item + '" (at "' + path_executionDates_item + '")');
1146
+ }
1147
+ }
1148
+ })();
1149
+ return v_error === undefined ? null : v_error;
1150
+ }
1151
+ const RepresentationType = 'CronExecutionDatesOutputRepresentation';
1152
+ function keyBuilder(luvio, config) {
1153
+ return keyPrefix + '::' + RepresentationType + ':' + '[' + config.executionDates.join(',') + ']';
1154
+ }
1155
+ function keyBuilderFromType(luvio, object) {
1156
+ const keyParams = {
1157
+ executionDates: object.executionDates
1158
+ };
1159
+ return keyBuilder(luvio, keyParams);
1160
+ }
1161
+ function normalize(input, existing, path, luvio, store, timestamp) {
1162
+ return input;
1163
+ }
1164
+ const select$1 = function CronExecutionDatesOutputRepresentationSelect() {
1165
+ return {
1166
+ kind: 'Fragment',
1167
+ version: VERSION,
1168
+ private: [],
1169
+ selections: [
1170
+ {
1171
+ name: 'executionDates',
1172
+ kind: 'Scalar',
1173
+ plural: true
1174
+ }
1175
+ ]
1176
+ };
1177
+ };
1178
+ function equals(existing, incoming) {
1179
+ const existing_executionDates = existing.executionDates;
1180
+ const incoming_executionDates = incoming.executionDates;
1181
+ const equals_executionDates_items = equalsArray(existing_executionDates, incoming_executionDates, (existing_executionDates_item, incoming_executionDates_item) => {
1182
+ if (!(existing_executionDates_item === incoming_executionDates_item)) {
1183
+ return false;
1184
+ }
1185
+ });
1186
+ if (equals_executionDates_items === false) {
1187
+ return false;
1188
+ }
1189
+ return true;
1190
+ }
1191
+ const ingest = function CronExecutionDatesOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1017
1192
  if (process.env.NODE_ENV !== 'production') {
1018
1193
  const validateError = validate(input);
1019
1194
  if (validateError !== null) {
@@ -1062,26 +1237,25 @@ function createResourceRequest(config) {
1062
1237
  const headers = {};
1063
1238
  return {
1064
1239
  baseUri: '/services/data/v62.0',
1065
- basePath: '/commerce/billing/invoices/invoice-batch-docgen/' + config.urlParams.invoiceBatchRunId + '/actions/' + config.urlParams.actionName + '',
1240
+ basePath: '/connect/billing/batch/cron/execution-dates',
1066
1241
  method: 'post',
1067
- body: null,
1068
- urlParams: config.urlParams,
1242
+ body: config.body,
1243
+ urlParams: {},
1069
1244
  queryParams: {},
1070
1245
  headers,
1071
1246
  priority: 'normal',
1072
1247
  };
1073
1248
  }
1074
1249
 
1075
- const adapterName = 'postBatchInvoiceDocGen';
1076
- const postBatchInvoiceDocGen_ConfigPropertyMetadata = [
1077
- generateParamConfigMetadata('invoiceBatchRunId', true, 0 /* UrlParameter */, 0 /* String */),
1078
- generateParamConfigMetadata('actionName', true, 0 /* UrlParameter */, 0 /* String */),
1250
+ const adapterName = 'postCronExecutionDates';
1251
+ const postCronExecutionDates_ConfigPropertyMetadata = [
1252
+ generateParamConfigMetadata('numberOfNextExecutionDates', true, 2 /* Body */, 3 /* Integer */),
1079
1253
  ];
1080
- const postBatchInvoiceDocGen_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postBatchInvoiceDocGen_ConfigPropertyMetadata);
1081
- const createResourceParams = /*#__PURE__*/ createResourceParams$4(postBatchInvoiceDocGen_ConfigPropertyMetadata);
1254
+ const postCronExecutionDates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postCronExecutionDates_ConfigPropertyMetadata);
1255
+ const createResourceParams = /*#__PURE__*/ createResourceParams$5(postCronExecutionDates_ConfigPropertyMetadata);
1082
1256
  function typeCheckConfig(untrustedConfig) {
1083
1257
  const config = {};
1084
- typeCheckConfig$4(untrustedConfig, config, postBatchInvoiceDocGen_ConfigPropertyMetadata);
1258
+ typeCheckConfig$5(untrustedConfig, config, postCronExecutionDates_ConfigPropertyMetadata);
1085
1259
  return config;
1086
1260
  }
1087
1261
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -1115,12 +1289,12 @@ function buildNetworkSnapshot(luvio, config, options) {
1115
1289
  throw response;
1116
1290
  });
1117
1291
  }
1118
- const postBatchInvoiceDocGenAdapterFactory = (luvio) => {
1119
- return function postBatchInvoiceDocGen(untrustedConfig) {
1120
- const config = validateAdapterConfig(untrustedConfig, postBatchInvoiceDocGen_ConfigPropertyNames);
1292
+ const postCronExecutionDatesAdapterFactory = (luvio) => {
1293
+ return function postCronExecutionDates(untrustedConfig) {
1294
+ const config = validateAdapterConfig(untrustedConfig, postCronExecutionDates_ConfigPropertyNames);
1121
1295
  // Invalid or incomplete config
1122
1296
  if (config === null) {
1123
- throw new Error('Invalid config for "postBatchInvoiceDocGen"');
1297
+ throw new Error('Invalid config for "postCronExecutionDates"');
1124
1298
  }
1125
1299
  return buildNetworkSnapshot(luvio, config);
1126
1300
  };
@@ -1130,6 +1304,7 @@ let createInvoicesBatchScheduler;
1130
1304
  let createPaymentsBatchScheduler;
1131
1305
  let postBatchDraftInvoices;
1132
1306
  let postBatchInvoiceDocGen;
1307
+ let postCronExecutionDates;
1133
1308
  // Imperative GET Adapters
1134
1309
  let postBatchDraftInvoices_imperative;
1135
1310
  const postBatchDraftInvoicesMetadata = {
@@ -1150,6 +1325,7 @@ function bindExportsTo(luvio) {
1150
1325
  createPaymentsBatchScheduler: unwrapSnapshotData(createPaymentsBatchSchedulerAdapterFactory),
1151
1326
  postBatchDraftInvoices: createWireAdapterConstructor(luvio, postBatchDraftInvoices_ldsAdapter, postBatchDraftInvoicesMetadata),
1152
1327
  postBatchInvoiceDocGen: unwrapSnapshotData(postBatchInvoiceDocGenAdapterFactory),
1328
+ postCronExecutionDates: unwrapSnapshotData(postCronExecutionDatesAdapterFactory),
1153
1329
  // Imperative GET Adapters
1154
1330
  postBatchDraftInvoices_imperative: createImperativeAdapter(luvio, postBatchDraftInvoices_ldsAdapter, postBatchDraftInvoicesMetadata),
1155
1331
  // Notify Update Availables
@@ -1161,9 +1337,10 @@ withDefaultLuvio((luvio) => {
1161
1337
  createPaymentsBatchScheduler,
1162
1338
  postBatchDraftInvoices,
1163
1339
  postBatchInvoiceDocGen,
1340
+ postCronExecutionDates,
1164
1341
  postBatchDraftInvoices_imperative,
1165
1342
  } = bindExportsTo(luvio));
1166
1343
  });
1167
1344
 
1168
- export { createInvoicesBatchScheduler, createPaymentsBatchScheduler, postBatchDraftInvoices, postBatchDraftInvoices_imperative, postBatchInvoiceDocGen };
1169
- // version: 1.302.0-5fb014108f
1345
+ export { createInvoicesBatchScheduler, createPaymentsBatchScheduler, postBatchDraftInvoices, postBatchDraftInvoices_imperative, postBatchInvoiceDocGen, postCronExecutionDates };
1346
+ // version: 1.303.0-b6ed223d95