@salesforce/lds-adapters-revenue-billing-batch 1.345.0 → 1.347.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$6, typeCheckConfig as typeCheckConfig$6, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$8, typeCheckConfig as typeCheckConfig$8, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -158,7 +158,168 @@ function createLink(ref) {
158
158
  };
159
159
  }
160
160
 
161
- function validate$a(obj, path = 'ScheduleOptionsInputRepresentationForInvoice') {
161
+ const TTL$6 = 1000;
162
+ const VERSION$7 = "1699644fc0c840df081099c1cdf7066a";
163
+ function validate$d(obj, path = 'InvoiceBatchRunRecoveryOutputRepresentation') {
164
+ const v_error = (() => {
165
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
166
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
167
+ }
168
+ const obj_invoiceBatchRunRecoveryId = obj.invoiceBatchRunRecoveryId;
169
+ const path_invoiceBatchRunRecoveryId = path + '.invoiceBatchRunRecoveryId';
170
+ if (typeof obj_invoiceBatchRunRecoveryId !== 'string') {
171
+ return new TypeError('Expected "string" but received "' + typeof obj_invoiceBatchRunRecoveryId + '" (at "' + path_invoiceBatchRunRecoveryId + '")');
172
+ }
173
+ })();
174
+ return v_error === undefined ? null : v_error;
175
+ }
176
+ const RepresentationType$6 = 'InvoiceBatchRunRecoveryOutputRepresentation';
177
+ function keyBuilder$7(luvio, config) {
178
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.invoiceBatchRunRecoveryId;
179
+ }
180
+ function keyBuilderFromType$5(luvio, object) {
181
+ const keyParams = {
182
+ invoiceBatchRunRecoveryId: object.invoiceBatchRunRecoveryId
183
+ };
184
+ return keyBuilder$7(luvio, keyParams);
185
+ }
186
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
187
+ return input;
188
+ }
189
+ const select$f = function InvoiceBatchRunRecoveryOutputRepresentationSelect() {
190
+ return {
191
+ kind: 'Fragment',
192
+ version: VERSION$7,
193
+ private: [],
194
+ selections: [
195
+ {
196
+ name: 'invoiceBatchRunRecoveryId',
197
+ kind: 'Scalar'
198
+ }
199
+ ]
200
+ };
201
+ };
202
+ function equals$7(existing, incoming) {
203
+ const existing_invoiceBatchRunRecoveryId = existing.invoiceBatchRunRecoveryId;
204
+ const incoming_invoiceBatchRunRecoveryId = incoming.invoiceBatchRunRecoveryId;
205
+ if (!(existing_invoiceBatchRunRecoveryId === incoming_invoiceBatchRunRecoveryId)) {
206
+ return false;
207
+ }
208
+ return true;
209
+ }
210
+ const ingest$6 = function InvoiceBatchRunRecoveryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
211
+ if (process.env.NODE_ENV !== 'production') {
212
+ const validateError = validate$d(input);
213
+ if (validateError !== null) {
214
+ throw validateError;
215
+ }
216
+ }
217
+ const key = keyBuilderFromType$5(luvio, input);
218
+ const ttlToUse = TTL$6;
219
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "BillingBatch", VERSION$7, RepresentationType$6, equals$7);
220
+ return createLink(key);
221
+ };
222
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
223
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
224
+ const rootKey = keyBuilderFromType$5(luvio, input);
225
+ rootKeySet.set(rootKey, {
226
+ namespace: keyPrefix,
227
+ representationName: RepresentationType$6,
228
+ mergeable: false
229
+ });
230
+ }
231
+
232
+ function select$e(luvio, params) {
233
+ return select$f();
234
+ }
235
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
236
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
237
+ }
238
+ function ingestSuccess$7(luvio, resourceParams, response) {
239
+ const { body } = response;
240
+ const key = keyBuilderFromType$5(luvio, body);
241
+ luvio.storeIngest(key, ingest$6, body);
242
+ const snapshot = luvio.storeLookup({
243
+ recordId: key,
244
+ node: select$e(),
245
+ variables: {},
246
+ });
247
+ if (process.env.NODE_ENV !== 'production') {
248
+ if (snapshot.state !== 'Fulfilled') {
249
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
250
+ }
251
+ }
252
+ deepFreeze(snapshot.data);
253
+ return snapshot;
254
+ }
255
+ function createResourceRequest$7(config) {
256
+ const headers = {};
257
+ return {
258
+ baseUri: '/services/data/v64.0',
259
+ basePath: '/commerce/invoicing/invoice-batch-runs/' + config.urlParams.invoiceBatchRunId + '/actions/recover',
260
+ method: 'post',
261
+ body: null,
262
+ urlParams: config.urlParams,
263
+ queryParams: {},
264
+ headers,
265
+ priority: 'normal',
266
+ };
267
+ }
268
+
269
+ const adapterName$7 = 'batchInvoiceRunRecovery';
270
+ const batchInvoiceRunRecovery_ConfigPropertyMetadata = [
271
+ generateParamConfigMetadata('invoiceBatchRunId', true, 0 /* UrlParameter */, 0 /* String */),
272
+ ];
273
+ const batchInvoiceRunRecovery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, batchInvoiceRunRecovery_ConfigPropertyMetadata);
274
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(batchInvoiceRunRecovery_ConfigPropertyMetadata);
275
+ function typeCheckConfig$7(untrustedConfig) {
276
+ const config = {};
277
+ typeCheckConfig$8(untrustedConfig, config, batchInvoiceRunRecovery_ConfigPropertyMetadata);
278
+ return config;
279
+ }
280
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
281
+ if (!untrustedIsObject(untrustedConfig)) {
282
+ return null;
283
+ }
284
+ if (process.env.NODE_ENV !== 'production') {
285
+ validateConfig(untrustedConfig, configPropertyNames);
286
+ }
287
+ const config = typeCheckConfig$7(untrustedConfig);
288
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
289
+ return null;
290
+ }
291
+ return config;
292
+ }
293
+ function buildNetworkSnapshot$7(luvio, config, options) {
294
+ const resourceParams = createResourceParams$7(config);
295
+ const request = createResourceRequest$7(resourceParams);
296
+ return luvio.dispatchResourceRequest(request, options)
297
+ .then((response) => {
298
+ return luvio.handleSuccessResponse(() => {
299
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
300
+ return luvio.storeBroadcast().then(() => snapshot);
301
+ }, () => {
302
+ const cache = new StoreKeyMap();
303
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
304
+ return cache;
305
+ });
306
+ }, (response) => {
307
+ deepFreeze(response);
308
+ throw response;
309
+ });
310
+ }
311
+ const batchInvoiceRunRecoveryAdapterFactory = (luvio) => {
312
+ return function batchInvoiceRunRecovery(untrustedConfig) {
313
+ const config = validateAdapterConfig$7(untrustedConfig, batchInvoiceRunRecovery_ConfigPropertyNames);
314
+ // Invalid or incomplete config
315
+ if (config === null) {
316
+ throw new Error('Invalid config for "batchInvoiceRunRecovery"');
317
+ }
318
+ return buildNetworkSnapshot$7(luvio, config);
319
+ };
320
+ };
321
+
322
+ function validate$c(obj, path = 'ScheduleOptionsInputRepresentationForInvoice') {
162
323
  const v_error = (() => {
163
324
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
164
325
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -215,8 +376,8 @@ function validate$a(obj, path = 'ScheduleOptionsInputRepresentationForInvoice')
215
376
  return v_error === undefined ? null : v_error;
216
377
  }
217
378
 
218
- function validate$9(obj, path = 'BatchInvoiceSchedulerInputRepresentation') {
219
- const validateScheduleOptionsInputRepresentationForInvoice_validateError = validate$a(obj, path);
379
+ function validate$b(obj, path = 'BatchInvoiceSchedulerInputRepresentation') {
380
+ const validateScheduleOptionsInputRepresentationForInvoice_validateError = validate$c(obj, path);
220
381
  if (validateScheduleOptionsInputRepresentationForInvoice_validateError !== null) {
221
382
  return validateScheduleOptionsInputRepresentationForInvoice_validateError;
222
383
  }
@@ -242,7 +403,7 @@ function validate$9(obj, path = 'BatchInvoiceSchedulerInputRepresentation') {
242
403
  return v_error === undefined ? null : v_error;
243
404
  }
244
405
 
245
- function validate$8(obj, path = 'BillingBatchSchedulerRepresentation') {
406
+ function validate$a(obj, path = 'BillingBatchSchedulerRepresentation') {
246
407
  const v_error = (() => {
247
408
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
248
409
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -256,16 +417,16 @@ function validate$8(obj, path = 'BillingBatchSchedulerRepresentation') {
256
417
  return v_error === undefined ? null : v_error;
257
418
  }
258
419
 
259
- const TTL$4 = 1000;
260
- const VERSION$5 = "15c358b0b4903143c526f63f4010b958";
261
- function validate$7(obj, path = 'InvoicesBatchSchedulerOutputRepresentation') {
420
+ const TTL$5 = 1000;
421
+ const VERSION$6 = "15c358b0b4903143c526f63f4010b958";
422
+ function validate$9(obj, path = 'InvoicesBatchSchedulerOutputRepresentation') {
262
423
  const v_error = (() => {
263
424
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
264
425
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
265
426
  }
266
427
  const obj_billingBatchScheduler = obj.billingBatchScheduler;
267
428
  const path_billingBatchScheduler = path + '.billingBatchScheduler';
268
- const referencepath_billingBatchSchedulerValidationError = validate$8(obj_billingBatchScheduler, path_billingBatchScheduler);
429
+ const referencepath_billingBatchSchedulerValidationError = validate$a(obj_billingBatchScheduler, path_billingBatchScheduler);
269
430
  if (referencepath_billingBatchSchedulerValidationError !== null) {
270
431
  let message = 'Object doesn\'t match BillingBatchSchedulerRepresentation (at "' + path_billingBatchScheduler + '")\n';
271
432
  message += referencepath_billingBatchSchedulerValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -274,68 +435,68 @@ function validate$7(obj, path = 'InvoicesBatchSchedulerOutputRepresentation') {
274
435
  })();
275
436
  return v_error === undefined ? null : v_error;
276
437
  }
277
- const RepresentationType$4 = 'InvoicesBatchSchedulerOutputRepresentation';
278
- function keyBuilder$5(luvio, config) {
279
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.billingBatchSchedulerId;
438
+ const RepresentationType$5 = 'InvoicesBatchSchedulerOutputRepresentation';
439
+ function keyBuilder$6(luvio, config) {
440
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.billingBatchSchedulerId;
280
441
  }
281
- function keyBuilderFromType$3(luvio, object) {
442
+ function keyBuilderFromType$4(luvio, object) {
282
443
  const keyParams = {
283
444
  billingBatchSchedulerId: object.billingBatchScheduler.id
284
445
  };
285
- return keyBuilder$5(luvio, keyParams);
446
+ return keyBuilder$6(luvio, keyParams);
286
447
  }
287
- function normalize$4(input, existing, path, luvio, store, timestamp) {
448
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
288
449
  return input;
289
450
  }
290
- const select$b = function InvoicesBatchSchedulerOutputRepresentationSelect() {
451
+ const select$d = function InvoicesBatchSchedulerOutputRepresentationSelect() {
291
452
  return {
292
453
  kind: 'Fragment',
293
- version: VERSION$5,
454
+ version: VERSION$6,
294
455
  private: [],
295
456
  opaque: true
296
457
  };
297
458
  };
298
- function equals$5(existing, incoming) {
459
+ function equals$6(existing, incoming) {
299
460
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
300
461
  return false;
301
462
  }
302
463
  return true;
303
464
  }
304
- const ingest$4 = function InvoicesBatchSchedulerOutputRepresentationIngest(input, path, luvio, store, timestamp) {
465
+ const ingest$5 = function InvoicesBatchSchedulerOutputRepresentationIngest(input, path, luvio, store, timestamp) {
305
466
  if (process.env.NODE_ENV !== 'production') {
306
- const validateError = validate$7(input);
467
+ const validateError = validate$9(input);
307
468
  if (validateError !== null) {
308
469
  throw validateError;
309
470
  }
310
471
  }
311
- const key = keyBuilderFromType$3(luvio, input);
312
- const ttlToUse = TTL$4;
313
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "BillingBatch", VERSION$5, RepresentationType$4, equals$5);
472
+ const key = keyBuilderFromType$4(luvio, input);
473
+ const ttlToUse = TTL$5;
474
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "BillingBatch", VERSION$6, RepresentationType$5, equals$6);
314
475
  return createLink(key);
315
476
  };
316
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
477
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
317
478
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
318
- const rootKey = keyBuilderFromType$3(luvio, input);
479
+ const rootKey = keyBuilderFromType$4(luvio, input);
319
480
  rootKeySet.set(rootKey, {
320
481
  namespace: keyPrefix,
321
- representationName: RepresentationType$4,
482
+ representationName: RepresentationType$5,
322
483
  mergeable: false
323
484
  });
324
485
  }
325
486
 
326
- function select$a(luvio, params) {
327
- return select$b();
487
+ function select$c(luvio, params) {
488
+ return select$d();
328
489
  }
329
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
330
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
490
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
491
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
331
492
  }
332
- function ingestSuccess$5(luvio, resourceParams, response) {
493
+ function ingestSuccess$6(luvio, resourceParams, response) {
333
494
  const { body } = response;
334
- const key = keyBuilderFromType$3(luvio, body);
335
- luvio.storeIngest(key, ingest$4, body);
495
+ const key = keyBuilderFromType$4(luvio, body);
496
+ luvio.storeIngest(key, ingest$5, body);
336
497
  const snapshot = luvio.storeLookup({
337
498
  recordId: key,
338
- node: select$a(),
499
+ node: select$c(),
339
500
  variables: {},
340
501
  });
341
502
  if (process.env.NODE_ENV !== 'production') {
@@ -346,7 +507,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
346
507
  deepFreeze(snapshot.data);
347
508
  return snapshot;
348
509
  }
349
- function createResourceRequest$5(config) {
510
+ function createResourceRequest$6(config) {
350
511
  const headers = {};
351
512
  return {
352
513
  baseUri: '/services/data/v64.0',
@@ -360,45 +521,45 @@ function createResourceRequest$5(config) {
360
521
  };
361
522
  }
362
523
 
363
- const adapterName$5 = 'createInvoicesBatchScheduler';
524
+ const adapterName$6 = 'createInvoicesBatchScheduler';
364
525
  const createInvoicesBatchScheduler_ConfigPropertyMetadata = [
365
526
  generateParamConfigMetadata('BatchInvoiceSchedulerInput', true, 2 /* Body */, 4 /* Unsupported */),
366
527
  ];
367
- const createInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createInvoicesBatchScheduler_ConfigPropertyMetadata);
368
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(createInvoicesBatchScheduler_ConfigPropertyMetadata);
369
- function typeCheckConfig$5(untrustedConfig) {
528
+ const createInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createInvoicesBatchScheduler_ConfigPropertyMetadata);
529
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(createInvoicesBatchScheduler_ConfigPropertyMetadata);
530
+ function typeCheckConfig$6(untrustedConfig) {
370
531
  const config = {};
371
532
  const untrustedConfig_BatchInvoiceSchedulerInput = untrustedConfig.BatchInvoiceSchedulerInput;
372
- const referenceBatchInvoiceSchedulerInputRepresentationValidationError = validate$9(untrustedConfig_BatchInvoiceSchedulerInput);
533
+ const referenceBatchInvoiceSchedulerInputRepresentationValidationError = validate$b(untrustedConfig_BatchInvoiceSchedulerInput);
373
534
  if (referenceBatchInvoiceSchedulerInputRepresentationValidationError === null) {
374
535
  config.BatchInvoiceSchedulerInput = untrustedConfig_BatchInvoiceSchedulerInput;
375
536
  }
376
537
  return config;
377
538
  }
378
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
539
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
379
540
  if (!untrustedIsObject(untrustedConfig)) {
380
541
  return null;
381
542
  }
382
543
  if (process.env.NODE_ENV !== 'production') {
383
544
  validateConfig(untrustedConfig, configPropertyNames);
384
545
  }
385
- const config = typeCheckConfig$5(untrustedConfig);
546
+ const config = typeCheckConfig$6(untrustedConfig);
386
547
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
387
548
  return null;
388
549
  }
389
550
  return config;
390
551
  }
391
- function buildNetworkSnapshot$5(luvio, config, options) {
392
- const resourceParams = createResourceParams$5(config);
393
- const request = createResourceRequest$5(resourceParams);
552
+ function buildNetworkSnapshot$6(luvio, config, options) {
553
+ const resourceParams = createResourceParams$6(config);
554
+ const request = createResourceRequest$6(resourceParams);
394
555
  return luvio.dispatchResourceRequest(request, options)
395
556
  .then((response) => {
396
557
  return luvio.handleSuccessResponse(() => {
397
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
558
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response);
398
559
  return luvio.storeBroadcast().then(() => snapshot);
399
560
  }, () => {
400
561
  const cache = new StoreKeyMap();
401
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
562
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
402
563
  return cache;
403
564
  });
404
565
  }, (response) => {
@@ -408,16 +569,16 @@ function buildNetworkSnapshot$5(luvio, config, options) {
408
569
  }
409
570
  const createInvoicesBatchSchedulerAdapterFactory = (luvio) => {
410
571
  return function createInvoicesBatchScheduler(untrustedConfig) {
411
- const config = validateAdapterConfig$5(untrustedConfig, createInvoicesBatchScheduler_ConfigPropertyNames);
572
+ const config = validateAdapterConfig$6(untrustedConfig, createInvoicesBatchScheduler_ConfigPropertyNames);
412
573
  // Invalid or incomplete config
413
574
  if (config === null) {
414
575
  throw new Error('Invalid config for "createInvoicesBatchScheduler"');
415
576
  }
416
- return buildNetworkSnapshot$5(luvio, config);
577
+ return buildNetworkSnapshot$6(luvio, config);
417
578
  };
418
579
  };
419
580
 
420
- function validate$6(obj, path = 'ScheduleOptionsInputRepresentation') {
581
+ function validate$8(obj, path = 'ScheduleOptionsInputRepresentation') {
421
582
  const v_error = (() => {
422
583
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
423
584
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -465,8 +626,8 @@ function validate$6(obj, path = 'ScheduleOptionsInputRepresentation') {
465
626
  return v_error === undefined ? null : v_error;
466
627
  }
467
628
 
468
- function validate$5(obj, path = 'PaymentsBatchSchedulerInputRepresentation') {
469
- const validateScheduleOptionsInputRepresentation_validateError = validate$6(obj, path);
629
+ function validate$7(obj, path = 'PaymentsBatchSchedulerInputRepresentation') {
630
+ const validateScheduleOptionsInputRepresentation_validateError = validate$8(obj, path);
470
631
  if (validateScheduleOptionsInputRepresentation_validateError !== null) {
471
632
  return validateScheduleOptionsInputRepresentation_validateError;
472
633
  }
@@ -499,16 +660,16 @@ function validate$5(obj, path = 'PaymentsBatchSchedulerInputRepresentation') {
499
660
  return v_error === undefined ? null : v_error;
500
661
  }
501
662
 
502
- const TTL$3 = 1000;
503
- const VERSION$4 = "eff71edc32270b9a1e6e1779cb811c3c";
504
- function validate$4(obj, path = 'PaymentsBatchSchedulerOutputRepresentation') {
663
+ const TTL$4 = 1000;
664
+ const VERSION$5 = "eff71edc32270b9a1e6e1779cb811c3c";
665
+ function validate$6(obj, path = 'PaymentsBatchSchedulerOutputRepresentation') {
505
666
  const v_error = (() => {
506
667
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
507
668
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
508
669
  }
509
670
  const obj_billingBatchScheduler = obj.billingBatchScheduler;
510
671
  const path_billingBatchScheduler = path + '.billingBatchScheduler';
511
- const referencepath_billingBatchSchedulerValidationError = validate$8(obj_billingBatchScheduler, path_billingBatchScheduler);
672
+ const referencepath_billingBatchSchedulerValidationError = validate$a(obj_billingBatchScheduler, path_billingBatchScheduler);
512
673
  if (referencepath_billingBatchSchedulerValidationError !== null) {
513
674
  let message = 'Object doesn\'t match BillingBatchSchedulerRepresentation (at "' + path_billingBatchScheduler + '")\n';
514
675
  message += referencepath_billingBatchSchedulerValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -517,68 +678,68 @@ function validate$4(obj, path = 'PaymentsBatchSchedulerOutputRepresentation') {
517
678
  })();
518
679
  return v_error === undefined ? null : v_error;
519
680
  }
520
- const RepresentationType$3 = 'PaymentsBatchSchedulerOutputRepresentation';
521
- function keyBuilder$4(luvio, config) {
522
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.billingBatchSchedulerId;
681
+ const RepresentationType$4 = 'PaymentsBatchSchedulerOutputRepresentation';
682
+ function keyBuilder$5(luvio, config) {
683
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.billingBatchSchedulerId;
523
684
  }
524
- function keyBuilderFromType$2(luvio, object) {
685
+ function keyBuilderFromType$3(luvio, object) {
525
686
  const keyParams = {
526
687
  billingBatchSchedulerId: object.billingBatchScheduler.id
527
688
  };
528
- return keyBuilder$4(luvio, keyParams);
689
+ return keyBuilder$5(luvio, keyParams);
529
690
  }
530
- function normalize$3(input, existing, path, luvio, store, timestamp) {
691
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
531
692
  return input;
532
693
  }
533
- const select$9 = function PaymentsBatchSchedulerOutputRepresentationSelect() {
694
+ const select$b = function PaymentsBatchSchedulerOutputRepresentationSelect() {
534
695
  return {
535
696
  kind: 'Fragment',
536
- version: VERSION$4,
697
+ version: VERSION$5,
537
698
  private: [],
538
699
  opaque: true
539
700
  };
540
701
  };
541
- function equals$4(existing, incoming) {
702
+ function equals$5(existing, incoming) {
542
703
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
543
704
  return false;
544
705
  }
545
706
  return true;
546
707
  }
547
- const ingest$3 = function PaymentsBatchSchedulerOutputRepresentationIngest(input, path, luvio, store, timestamp) {
708
+ const ingest$4 = function PaymentsBatchSchedulerOutputRepresentationIngest(input, path, luvio, store, timestamp) {
548
709
  if (process.env.NODE_ENV !== 'production') {
549
- const validateError = validate$4(input);
710
+ const validateError = validate$6(input);
550
711
  if (validateError !== null) {
551
712
  throw validateError;
552
713
  }
553
714
  }
554
- const key = keyBuilderFromType$2(luvio, input);
555
- const ttlToUse = TTL$3;
556
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "BillingBatch", VERSION$4, RepresentationType$3, equals$4);
715
+ const key = keyBuilderFromType$3(luvio, input);
716
+ const ttlToUse = TTL$4;
717
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "BillingBatch", VERSION$5, RepresentationType$4, equals$5);
557
718
  return createLink(key);
558
719
  };
559
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
720
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
560
721
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
561
- const rootKey = keyBuilderFromType$2(luvio, input);
722
+ const rootKey = keyBuilderFromType$3(luvio, input);
562
723
  rootKeySet.set(rootKey, {
563
724
  namespace: keyPrefix,
564
- representationName: RepresentationType$3,
725
+ representationName: RepresentationType$4,
565
726
  mergeable: false
566
727
  });
567
728
  }
568
729
 
569
- function select$8(luvio, params) {
570
- return select$9();
730
+ function select$a(luvio, params) {
731
+ return select$b();
571
732
  }
572
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
573
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
733
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
734
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
574
735
  }
575
- function ingestSuccess$4(luvio, resourceParams, response) {
736
+ function ingestSuccess$5(luvio, resourceParams, response) {
576
737
  const { body } = response;
577
- const key = keyBuilderFromType$2(luvio, body);
578
- luvio.storeIngest(key, ingest$3, body);
738
+ const key = keyBuilderFromType$3(luvio, body);
739
+ luvio.storeIngest(key, ingest$4, body);
579
740
  const snapshot = luvio.storeLookup({
580
741
  recordId: key,
581
- node: select$8(),
742
+ node: select$a(),
582
743
  variables: {},
583
744
  });
584
745
  if (process.env.NODE_ENV !== 'production') {
@@ -589,7 +750,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
589
750
  deepFreeze(snapshot.data);
590
751
  return snapshot;
591
752
  }
592
- function createResourceRequest$4(config) {
753
+ function createResourceRequest$5(config) {
593
754
  const headers = {};
594
755
  return {
595
756
  baseUri: '/services/data/v64.0',
@@ -603,45 +764,45 @@ function createResourceRequest$4(config) {
603
764
  };
604
765
  }
605
766
 
606
- const adapterName$4 = 'createPaymentsBatchScheduler';
767
+ const adapterName$5 = 'createPaymentsBatchScheduler';
607
768
  const createPaymentsBatchScheduler_ConfigPropertyMetadata = [
608
769
  generateParamConfigMetadata('PaymentsBatchSchedulerInput', true, 2 /* Body */, 4 /* Unsupported */),
609
770
  ];
610
- const createPaymentsBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createPaymentsBatchScheduler_ConfigPropertyMetadata);
611
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$6(createPaymentsBatchScheduler_ConfigPropertyMetadata);
612
- function typeCheckConfig$4(untrustedConfig) {
771
+ const createPaymentsBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createPaymentsBatchScheduler_ConfigPropertyMetadata);
772
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(createPaymentsBatchScheduler_ConfigPropertyMetadata);
773
+ function typeCheckConfig$5(untrustedConfig) {
613
774
  const config = {};
614
775
  const untrustedConfig_PaymentsBatchSchedulerInput = untrustedConfig.PaymentsBatchSchedulerInput;
615
- const referencePaymentsBatchSchedulerInputRepresentationValidationError = validate$5(untrustedConfig_PaymentsBatchSchedulerInput);
776
+ const referencePaymentsBatchSchedulerInputRepresentationValidationError = validate$7(untrustedConfig_PaymentsBatchSchedulerInput);
616
777
  if (referencePaymentsBatchSchedulerInputRepresentationValidationError === null) {
617
778
  config.PaymentsBatchSchedulerInput = untrustedConfig_PaymentsBatchSchedulerInput;
618
779
  }
619
780
  return config;
620
781
  }
621
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
782
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
622
783
  if (!untrustedIsObject(untrustedConfig)) {
623
784
  return null;
624
785
  }
625
786
  if (process.env.NODE_ENV !== 'production') {
626
787
  validateConfig(untrustedConfig, configPropertyNames);
627
788
  }
628
- const config = typeCheckConfig$4(untrustedConfig);
789
+ const config = typeCheckConfig$5(untrustedConfig);
629
790
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
630
791
  return null;
631
792
  }
632
793
  return config;
633
794
  }
634
- function buildNetworkSnapshot$4(luvio, config, options) {
635
- const resourceParams = createResourceParams$4(config);
636
- const request = createResourceRequest$4(resourceParams);
795
+ function buildNetworkSnapshot$5(luvio, config, options) {
796
+ const resourceParams = createResourceParams$5(config);
797
+ const request = createResourceRequest$5(resourceParams);
637
798
  return luvio.dispatchResourceRequest(request, options)
638
799
  .then((response) => {
639
800
  return luvio.handleSuccessResponse(() => {
640
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
801
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
641
802
  return luvio.storeBroadcast().then(() => snapshot);
642
803
  }, () => {
643
804
  const cache = new StoreKeyMap();
644
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
805
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
645
806
  return cache;
646
807
  });
647
808
  }, (response) => {
@@ -651,28 +812,28 @@ function buildNetworkSnapshot$4(luvio, config, options) {
651
812
  }
652
813
  const createPaymentsBatchSchedulerAdapterFactory = (luvio) => {
653
814
  return function createPaymentsBatchScheduler(untrustedConfig) {
654
- const config = validateAdapterConfig$4(untrustedConfig, createPaymentsBatchScheduler_ConfigPropertyNames);
815
+ const config = validateAdapterConfig$5(untrustedConfig, createPaymentsBatchScheduler_ConfigPropertyNames);
655
816
  // Invalid or incomplete config
656
817
  if (config === null) {
657
818
  throw new Error('Invalid config for "createPaymentsBatchScheduler"');
658
819
  }
659
- return buildNetworkSnapshot$4(luvio, config);
820
+ return buildNetworkSnapshot$5(luvio, config);
660
821
  };
661
822
  };
662
823
 
663
- function select$7(luvio, params) {
664
- return select$b();
824
+ function select$9(luvio, params) {
825
+ return select$d();
665
826
  }
666
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
667
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
827
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
828
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
668
829
  }
669
- function ingestSuccess$3(luvio, resourceParams, response) {
830
+ function ingestSuccess$4(luvio, resourceParams, response) {
670
831
  const { body } = response;
671
- const key = keyBuilderFromType$3(luvio, body);
672
- luvio.storeIngest(key, ingest$4, body);
832
+ const key = keyBuilderFromType$4(luvio, body);
833
+ luvio.storeIngest(key, ingest$5, body);
673
834
  const snapshot = luvio.storeLookup({
674
835
  recordId: key,
675
- node: select$7(),
836
+ node: select$9(),
676
837
  variables: {},
677
838
  });
678
839
  if (process.env.NODE_ENV !== 'production') {
@@ -683,7 +844,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
683
844
  deepFreeze(snapshot.data);
684
845
  return snapshot;
685
846
  }
686
- function createResourceRequest$3(config) {
847
+ function createResourceRequest$4(config) {
687
848
  const headers = {};
688
849
  return {
689
850
  baseUri: '/services/data/v64.0',
@@ -697,47 +858,47 @@ function createResourceRequest$3(config) {
697
858
  };
698
859
  }
699
860
 
700
- const adapterName$3 = 'editInvoicesBatchScheduler';
861
+ const adapterName$4 = 'editInvoicesBatchScheduler';
701
862
  const editInvoicesBatchScheduler_ConfigPropertyMetadata = [
702
863
  generateParamConfigMetadata('billingBatchSchedulerId', true, 0 /* UrlParameter */, 0 /* String */),
703
864
  generateParamConfigMetadata('BatchInvoiceSchedulerInput', true, 2 /* Body */, 4 /* Unsupported */),
704
865
  ];
705
- const editInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, editInvoicesBatchScheduler_ConfigPropertyMetadata);
706
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$6(editInvoicesBatchScheduler_ConfigPropertyMetadata);
707
- function typeCheckConfig$3(untrustedConfig) {
866
+ const editInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, editInvoicesBatchScheduler_ConfigPropertyMetadata);
867
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(editInvoicesBatchScheduler_ConfigPropertyMetadata);
868
+ function typeCheckConfig$4(untrustedConfig) {
708
869
  const config = {};
709
- typeCheckConfig$6(untrustedConfig, config, editInvoicesBatchScheduler_ConfigPropertyMetadata);
870
+ typeCheckConfig$8(untrustedConfig, config, editInvoicesBatchScheduler_ConfigPropertyMetadata);
710
871
  const untrustedConfig_BatchInvoiceSchedulerInput = untrustedConfig.BatchInvoiceSchedulerInput;
711
- const referenceBatchInvoiceSchedulerInputRepresentationValidationError = validate$9(untrustedConfig_BatchInvoiceSchedulerInput);
872
+ const referenceBatchInvoiceSchedulerInputRepresentationValidationError = validate$b(untrustedConfig_BatchInvoiceSchedulerInput);
712
873
  if (referenceBatchInvoiceSchedulerInputRepresentationValidationError === null) {
713
874
  config.BatchInvoiceSchedulerInput = untrustedConfig_BatchInvoiceSchedulerInput;
714
875
  }
715
876
  return config;
716
877
  }
717
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
878
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
718
879
  if (!untrustedIsObject(untrustedConfig)) {
719
880
  return null;
720
881
  }
721
882
  if (process.env.NODE_ENV !== 'production') {
722
883
  validateConfig(untrustedConfig, configPropertyNames);
723
884
  }
724
- const config = typeCheckConfig$3(untrustedConfig);
885
+ const config = typeCheckConfig$4(untrustedConfig);
725
886
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
726
887
  return null;
727
888
  }
728
889
  return config;
729
890
  }
730
- function buildNetworkSnapshot$3(luvio, config, options) {
731
- const resourceParams = createResourceParams$3(config);
732
- const request = createResourceRequest$3(resourceParams);
891
+ function buildNetworkSnapshot$4(luvio, config, options) {
892
+ const resourceParams = createResourceParams$4(config);
893
+ const request = createResourceRequest$4(resourceParams);
733
894
  return luvio.dispatchResourceRequest(request, options)
734
895
  .then((response) => {
735
896
  return luvio.handleSuccessResponse(() => {
736
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
897
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
737
898
  return luvio.storeBroadcast().then(() => snapshot);
738
899
  }, () => {
739
900
  const cache = new StoreKeyMap();
740
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
901
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
741
902
  return cache;
742
903
  });
743
904
  }, (response) => {
@@ -747,18 +908,18 @@ function buildNetworkSnapshot$3(luvio, config, options) {
747
908
  }
748
909
  const editInvoicesBatchSchedulerAdapterFactory = (luvio) => {
749
910
  return function editInvoicesBatchScheduler(untrustedConfig) {
750
- const config = validateAdapterConfig$3(untrustedConfig, editInvoicesBatchScheduler_ConfigPropertyNames);
911
+ const config = validateAdapterConfig$4(untrustedConfig, editInvoicesBatchScheduler_ConfigPropertyNames);
751
912
  // Invalid or incomplete config
752
913
  if (config === null) {
753
914
  throw new Error('Invalid config for "editInvoicesBatchScheduler"');
754
915
  }
755
- return buildNetworkSnapshot$3(luvio, config);
916
+ return buildNetworkSnapshot$4(luvio, config);
756
917
  };
757
918
  };
758
919
 
759
- const TTL$2 = 1000;
760
- const VERSION$3 = "1b89e7904345b50c1a8bfa0fc6e7dff0";
761
- function validate$3(obj, path = 'InvoiceBatchDraftToPostedOutputRepresentation') {
920
+ const TTL$3 = 1000;
921
+ const VERSION$4 = "1b89e7904345b50c1a8bfa0fc6e7dff0";
922
+ function validate$5(obj, path = 'InvoiceBatchDraftToPostedOutputRepresentation') {
762
923
  const v_error = (() => {
763
924
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
764
925
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -776,14 +937,14 @@ function validate$3(obj, path = 'InvoiceBatchDraftToPostedOutputRepresentation')
776
937
  })();
777
938
  return v_error === undefined ? null : v_error;
778
939
  }
779
- const RepresentationType$2 = 'InvoiceBatchDraftToPostedOutputRepresentation';
780
- function normalize$2(input, existing, path, luvio, store, timestamp) {
940
+ const RepresentationType$3 = 'InvoiceBatchDraftToPostedOutputRepresentation';
941
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
781
942
  return input;
782
943
  }
783
- const select$6 = function InvoiceBatchDraftToPostedOutputRepresentationSelect() {
944
+ const select$8 = function InvoiceBatchDraftToPostedOutputRepresentationSelect() {
784
945
  return {
785
946
  kind: 'Fragment',
786
- version: VERSION$3,
947
+ version: VERSION$4,
787
948
  private: [],
788
949
  selections: [
789
950
  {
@@ -797,7 +958,7 @@ const select$6 = function InvoiceBatchDraftToPostedOutputRepresentationSelect()
797
958
  ]
798
959
  };
799
960
  };
800
- function equals$3(existing, incoming) {
961
+ function equals$4(existing, incoming) {
801
962
  const existing_success = existing.success;
802
963
  const incoming_success = incoming.success;
803
964
  if (!(existing_success === incoming_success)) {
@@ -810,44 +971,44 @@ function equals$3(existing, incoming) {
810
971
  }
811
972
  return true;
812
973
  }
813
- const ingest$2 = function InvoiceBatchDraftToPostedOutputRepresentationIngest(input, path, luvio, store, timestamp) {
974
+ const ingest$3 = function InvoiceBatchDraftToPostedOutputRepresentationIngest(input, path, luvio, store, timestamp) {
814
975
  if (process.env.NODE_ENV !== 'production') {
815
- const validateError = validate$3(input);
976
+ const validateError = validate$5(input);
816
977
  if (validateError !== null) {
817
978
  throw validateError;
818
979
  }
819
980
  }
820
981
  const key = path.fullPath;
821
- const ttlToUse = TTL$2;
822
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "BillingBatch", VERSION$3, RepresentationType$2, equals$3);
982
+ const ttlToUse = TTL$3;
983
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "BillingBatch", VERSION$4, RepresentationType$3, equals$4);
823
984
  return createLink(key);
824
985
  };
825
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
986
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
826
987
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
827
988
  const rootKey = fullPathFactory();
828
989
  rootKeySet.set(rootKey, {
829
990
  namespace: keyPrefix,
830
- representationName: RepresentationType$2,
991
+ representationName: RepresentationType$3,
831
992
  mergeable: false
832
993
  });
833
994
  }
834
995
 
835
- function select$5(luvio, params) {
836
- return select$6();
996
+ function select$7(luvio, params) {
997
+ return select$8();
837
998
  }
838
- function keyBuilder$3(luvio, params) {
999
+ function keyBuilder$4(luvio, params) {
839
1000
  return keyPrefix + '::InvoiceBatchDraftToPostedOutputRepresentation:(' + 'invoiceBatchRunId:' + params.urlParams.invoiceBatchRunId + ',' + stableJSONStringify(params.body) + ')';
840
1001
  }
841
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
842
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
1002
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1003
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
843
1004
  }
844
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1005
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
845
1006
  const { body } = response;
846
- const key = keyBuilder$3(luvio, resourceParams);
847
- luvio.storeIngest(key, ingest$2, body);
1007
+ const key = keyBuilder$4(luvio, resourceParams);
1008
+ luvio.storeIngest(key, ingest$3, body);
848
1009
  const snapshot = luvio.storeLookup({
849
1010
  recordId: key,
850
- node: select$5(),
1011
+ node: select$7(),
851
1012
  variables: {},
852
1013
  }, snapshotRefresh);
853
1014
  if (process.env.NODE_ENV !== 'production') {
@@ -859,18 +1020,18 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
859
1020
  return snapshot;
860
1021
  }
861
1022
  function ingestError(luvio, params, error, snapshotRefresh) {
862
- const key = keyBuilder$3(luvio, params);
1023
+ const key = keyBuilder$4(luvio, params);
863
1024
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
864
1025
  const storeMetadataParams = {
865
- ttl: TTL$2,
1026
+ ttl: TTL$3,
866
1027
  namespace: keyPrefix,
867
- version: VERSION$3,
868
- representationName: RepresentationType$2
1028
+ version: VERSION$4,
1029
+ representationName: RepresentationType$3
869
1030
  };
870
1031
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
871
1032
  return errorSnapshot;
872
1033
  }
873
- function createResourceRequest$2(config) {
1034
+ function createResourceRequest$3(config) {
874
1035
  const headers = {};
875
1036
  return {
876
1037
  baseUri: '/services/data/v64.0',
@@ -884,60 +1045,60 @@ function createResourceRequest$2(config) {
884
1045
  };
885
1046
  }
886
1047
 
887
- const adapterName$2 = 'postBatchDraftInvoices';
1048
+ const adapterName$3 = 'postBatchDraftInvoices';
888
1049
  const postBatchDraftInvoices_ConfigPropertyMetadata = [
889
1050
  generateParamConfigMetadata('invoiceBatchRunId', true, 0 /* UrlParameter */, 0 /* String */),
890
1051
  ];
891
- const postBatchDraftInvoices_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, postBatchDraftInvoices_ConfigPropertyMetadata);
892
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$6(postBatchDraftInvoices_ConfigPropertyMetadata);
893
- function keyBuilder$2(luvio, config) {
894
- const resourceParams = createResourceParams$2(config);
895
- return keyBuilder$3(luvio, resourceParams);
1052
+ const postBatchDraftInvoices_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, postBatchDraftInvoices_ConfigPropertyMetadata);
1053
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(postBatchDraftInvoices_ConfigPropertyMetadata);
1054
+ function keyBuilder$3(luvio, config) {
1055
+ const resourceParams = createResourceParams$3(config);
1056
+ return keyBuilder$4(luvio, resourceParams);
896
1057
  }
897
- function typeCheckConfig$2(untrustedConfig) {
1058
+ function typeCheckConfig$3(untrustedConfig) {
898
1059
  const config = {};
899
- typeCheckConfig$6(untrustedConfig, config, postBatchDraftInvoices_ConfigPropertyMetadata);
1060
+ typeCheckConfig$8(untrustedConfig, config, postBatchDraftInvoices_ConfigPropertyMetadata);
900
1061
  return config;
901
1062
  }
902
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1063
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
903
1064
  if (!untrustedIsObject(untrustedConfig)) {
904
1065
  return null;
905
1066
  }
906
1067
  if (process.env.NODE_ENV !== 'production') {
907
1068
  validateConfig(untrustedConfig, configPropertyNames);
908
1069
  }
909
- const config = typeCheckConfig$2(untrustedConfig);
1070
+ const config = typeCheckConfig$3(untrustedConfig);
910
1071
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
911
1072
  return null;
912
1073
  }
913
1074
  return config;
914
1075
  }
915
1076
  function adapterFragment(luvio, config) {
916
- createResourceParams$2(config);
917
- return select$5();
1077
+ createResourceParams$3(config);
1078
+ return select$7();
918
1079
  }
919
1080
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
920
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
1081
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
921
1082
  config,
922
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1083
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
923
1084
  });
924
1085
  return luvio.storeBroadcast().then(() => snapshot);
925
1086
  }
926
1087
  function onFetchResponseError(luvio, config, resourceParams, response) {
927
1088
  const snapshot = ingestError(luvio, resourceParams, response, {
928
1089
  config,
929
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1090
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
930
1091
  });
931
1092
  return luvio.storeBroadcast().then(() => snapshot);
932
1093
  }
933
- function buildNetworkSnapshot$2(luvio, config, options) {
934
- const resourceParams = createResourceParams$2(config);
935
- const request = createResourceRequest$2(resourceParams);
1094
+ function buildNetworkSnapshot$3(luvio, config, options) {
1095
+ const resourceParams = createResourceParams$3(config);
1096
+ const request = createResourceRequest$3(resourceParams);
936
1097
  return luvio.dispatchResourceRequest(request, options)
937
1098
  .then((response) => {
938
1099
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
939
1100
  const cache = new StoreKeyMap();
940
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1101
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
941
1102
  return cache;
942
1103
  });
943
1104
  }, (response) => {
@@ -945,23 +1106,23 @@ function buildNetworkSnapshot$2(luvio, config, options) {
945
1106
  });
946
1107
  }
947
1108
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
948
- return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, 'get', false);
1109
+ return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, 'get', false);
949
1110
  }
950
1111
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
951
1112
  const { luvio, config } = context;
952
1113
  const selector = {
953
- recordId: keyBuilder$2(luvio, config),
1114
+ recordId: keyBuilder$3(luvio, config),
954
1115
  node: adapterFragment(luvio, config),
955
1116
  variables: {},
956
1117
  };
957
1118
  const cacheSnapshot = storeLookup(selector, {
958
1119
  config,
959
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1120
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
960
1121
  });
961
1122
  return cacheSnapshot;
962
1123
  }
963
1124
  const postBatchDraftInvoicesAdapterFactory = (luvio) => function BillingBatch__postBatchDraftInvoices(untrustedConfig, requestContext) {
964
- const config = validateAdapterConfig$2(untrustedConfig, postBatchDraftInvoices_ConfigPropertyNames);
1125
+ const config = validateAdapterConfig$3(untrustedConfig, postBatchDraftInvoices_ConfigPropertyNames);
965
1126
  // Invalid or incomplete config
966
1127
  if (config === null) {
967
1128
  return null;
@@ -970,8 +1131,8 @@ const postBatchDraftInvoicesAdapterFactory = (luvio) => function BillingBatch__p
970
1131
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
971
1132
  };
972
1133
 
973
- const VERSION$2 = "ae245aac2922b53e1ff758392e317d39";
974
- function validate$2(obj, path = 'BatchInvoiceDocGenErrorRepresentation') {
1134
+ const VERSION$3 = "ae245aac2922b53e1ff758392e317d39";
1135
+ function validate$4(obj, path = 'BatchInvoiceDocGenErrorRepresentation') {
975
1136
  const v_error = (() => {
976
1137
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
977
1138
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -989,10 +1150,10 @@ function validate$2(obj, path = 'BatchInvoiceDocGenErrorRepresentation') {
989
1150
  })();
990
1151
  return v_error === undefined ? null : v_error;
991
1152
  }
992
- const select$4 = function BatchInvoiceDocGenErrorRepresentationSelect() {
1153
+ const select$6 = function BatchInvoiceDocGenErrorRepresentationSelect() {
993
1154
  return {
994
1155
  kind: 'Fragment',
995
- version: VERSION$2,
1156
+ version: VERSION$3,
996
1157
  private: [],
997
1158
  selections: [
998
1159
  {
@@ -1006,7 +1167,7 @@ const select$4 = function BatchInvoiceDocGenErrorRepresentationSelect() {
1006
1167
  ]
1007
1168
  };
1008
1169
  };
1009
- function equals$2(existing, incoming) {
1170
+ function equals$3(existing, incoming) {
1010
1171
  const existing_errorCode = existing.errorCode;
1011
1172
  const incoming_errorCode = incoming.errorCode;
1012
1173
  if (!(existing_errorCode === incoming_errorCode)) {
@@ -1020,9 +1181,9 @@ function equals$2(existing, incoming) {
1020
1181
  return true;
1021
1182
  }
1022
1183
 
1023
- const TTL$1 = 1000;
1024
- const VERSION$1 = "1630988ffc3067417295a90783bd1812";
1025
- function validate$1(obj, path = 'BatchInvoiceDocGenOutputRepresentation') {
1184
+ const TTL$2 = 1000;
1185
+ const VERSION$2 = "1630988ffc3067417295a90783bd1812";
1186
+ function validate$3(obj, path = 'BatchInvoiceDocGenOutputRepresentation') {
1026
1187
  const v_error = (() => {
1027
1188
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1028
1189
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1035,7 +1196,7 @@ function validate$1(obj, path = 'BatchInvoiceDocGenOutputRepresentation') {
1035
1196
  for (let i = 0; i < obj_errors.length; i++) {
1036
1197
  const obj_errors_item = obj_errors[i];
1037
1198
  const path_errors_item = path_errors + '[' + i + ']';
1038
- const referencepath_errors_itemValidationError = validate$2(obj_errors_item, path_errors_item);
1199
+ const referencepath_errors_itemValidationError = validate$4(obj_errors_item, path_errors_item);
1039
1200
  if (referencepath_errors_itemValidationError !== null) {
1040
1201
  let message = 'Object doesn\'t match BatchInvoiceDocGenErrorRepresentation (at "' + path_errors_item + '")\n';
1041
1202
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1055,24 +1216,24 @@ function validate$1(obj, path = 'BatchInvoiceDocGenOutputRepresentation') {
1055
1216
  })();
1056
1217
  return v_error === undefined ? null : v_error;
1057
1218
  }
1058
- const RepresentationType$1 = 'BatchInvoiceDocGenOutputRepresentation';
1059
- function keyBuilder$1(luvio, config) {
1060
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.requestIdentifier;
1219
+ const RepresentationType$2 = 'BatchInvoiceDocGenOutputRepresentation';
1220
+ function keyBuilder$2(luvio, config) {
1221
+ return keyPrefix + '::' + RepresentationType$2 + ':' + config.requestIdentifier;
1061
1222
  }
1062
- function keyBuilderFromType$1(luvio, object) {
1223
+ function keyBuilderFromType$2(luvio, object) {
1063
1224
  const keyParams = {
1064
1225
  requestIdentifier: object.requestIdentifier
1065
1226
  };
1066
- return keyBuilder$1(luvio, keyParams);
1227
+ return keyBuilder$2(luvio, keyParams);
1067
1228
  }
1068
- function normalize$1(input, existing, path, luvio, store, timestamp) {
1229
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
1069
1230
  return input;
1070
1231
  }
1071
- const select$3 = function BatchInvoiceDocGenOutputRepresentationSelect() {
1072
- const { selections: BatchInvoiceDocGenErrorRepresentation__selections, opaque: BatchInvoiceDocGenErrorRepresentation__opaque, } = select$4();
1232
+ const select$5 = function BatchInvoiceDocGenOutputRepresentationSelect() {
1233
+ const { selections: BatchInvoiceDocGenErrorRepresentation__selections, opaque: BatchInvoiceDocGenErrorRepresentation__opaque, } = select$6();
1073
1234
  return {
1074
1235
  kind: 'Fragment',
1075
- version: VERSION$1,
1236
+ version: VERSION$2,
1076
1237
  private: [],
1077
1238
  selections: [
1078
1239
  {
@@ -1092,7 +1253,7 @@ const select$3 = function BatchInvoiceDocGenOutputRepresentationSelect() {
1092
1253
  ]
1093
1254
  };
1094
1255
  };
1095
- function equals$1(existing, incoming) {
1256
+ function equals$2(existing, incoming) {
1096
1257
  const existing_success = existing.success;
1097
1258
  const incoming_success = incoming.success;
1098
1259
  if (!(existing_success === incoming_success)) {
@@ -1106,7 +1267,7 @@ function equals$1(existing, incoming) {
1106
1267
  const existing_errors = existing.errors;
1107
1268
  const incoming_errors = incoming.errors;
1108
1269
  const equals_errors_items = equalsArray(existing_errors, incoming_errors, (existing_errors_item, incoming_errors_item) => {
1109
- if (!(equals$2(existing_errors_item, incoming_errors_item))) {
1270
+ if (!(equals$3(existing_errors_item, incoming_errors_item))) {
1110
1271
  return false;
1111
1272
  }
1112
1273
  });
@@ -1115,41 +1276,41 @@ function equals$1(existing, incoming) {
1115
1276
  }
1116
1277
  return true;
1117
1278
  }
1118
- const ingest$1 = function BatchInvoiceDocGenOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1279
+ const ingest$2 = function BatchInvoiceDocGenOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1119
1280
  if (process.env.NODE_ENV !== 'production') {
1120
- const validateError = validate$1(input);
1281
+ const validateError = validate$3(input);
1121
1282
  if (validateError !== null) {
1122
1283
  throw validateError;
1123
1284
  }
1124
1285
  }
1125
- const key = keyBuilderFromType$1(luvio, input);
1126
- const ttlToUse = TTL$1;
1127
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "BillingBatch", VERSION$1, RepresentationType$1, equals$1);
1286
+ const key = keyBuilderFromType$2(luvio, input);
1287
+ const ttlToUse = TTL$2;
1288
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "BillingBatch", VERSION$2, RepresentationType$2, equals$2);
1128
1289
  return createLink(key);
1129
1290
  };
1130
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1291
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1131
1292
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1132
- const rootKey = keyBuilderFromType$1(luvio, input);
1293
+ const rootKey = keyBuilderFromType$2(luvio, input);
1133
1294
  rootKeySet.set(rootKey, {
1134
1295
  namespace: keyPrefix,
1135
- representationName: RepresentationType$1,
1296
+ representationName: RepresentationType$2,
1136
1297
  mergeable: false
1137
1298
  });
1138
1299
  }
1139
1300
 
1140
- function select$2(luvio, params) {
1141
- return select$3();
1301
+ function select$4(luvio, params) {
1302
+ return select$5();
1142
1303
  }
1143
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1144
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
1304
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1305
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
1145
1306
  }
1146
- function ingestSuccess$1(luvio, resourceParams, response) {
1307
+ function ingestSuccess$2(luvio, resourceParams, response) {
1147
1308
  const { body } = response;
1148
- const key = keyBuilderFromType$1(luvio, body);
1149
- luvio.storeIngest(key, ingest$1, body);
1309
+ const key = keyBuilderFromType$2(luvio, body);
1310
+ luvio.storeIngest(key, ingest$2, body);
1150
1311
  const snapshot = luvio.storeLookup({
1151
1312
  recordId: key,
1152
- node: select$2(),
1313
+ node: select$4(),
1153
1314
  variables: {},
1154
1315
  });
1155
1316
  if (process.env.NODE_ENV !== 'production') {
@@ -1160,7 +1321,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
1160
1321
  deepFreeze(snapshot.data);
1161
1322
  return snapshot;
1162
1323
  }
1163
- function createResourceRequest$1(config) {
1324
+ function createResourceRequest$2(config) {
1164
1325
  const headers = {};
1165
1326
  return {
1166
1327
  baseUri: '/services/data/v64.0',
@@ -1174,42 +1335,42 @@ function createResourceRequest$1(config) {
1174
1335
  };
1175
1336
  }
1176
1337
 
1177
- const adapterName$1 = 'postBatchInvoiceDocGen';
1338
+ const adapterName$2 = 'postBatchInvoiceDocGen';
1178
1339
  const postBatchInvoiceDocGen_ConfigPropertyMetadata = [
1179
1340
  generateParamConfigMetadata('invoiceBatchRunId', true, 0 /* UrlParameter */, 0 /* String */),
1180
1341
  generateParamConfigMetadata('actionName', true, 0 /* UrlParameter */, 0 /* String */),
1181
1342
  ];
1182
- const postBatchInvoiceDocGen_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postBatchInvoiceDocGen_ConfigPropertyMetadata);
1183
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$6(postBatchInvoiceDocGen_ConfigPropertyMetadata);
1184
- function typeCheckConfig$1(untrustedConfig) {
1343
+ const postBatchInvoiceDocGen_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, postBatchInvoiceDocGen_ConfigPropertyMetadata);
1344
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(postBatchInvoiceDocGen_ConfigPropertyMetadata);
1345
+ function typeCheckConfig$2(untrustedConfig) {
1185
1346
  const config = {};
1186
- typeCheckConfig$6(untrustedConfig, config, postBatchInvoiceDocGen_ConfigPropertyMetadata);
1347
+ typeCheckConfig$8(untrustedConfig, config, postBatchInvoiceDocGen_ConfigPropertyMetadata);
1187
1348
  return config;
1188
1349
  }
1189
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1350
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1190
1351
  if (!untrustedIsObject(untrustedConfig)) {
1191
1352
  return null;
1192
1353
  }
1193
1354
  if (process.env.NODE_ENV !== 'production') {
1194
1355
  validateConfig(untrustedConfig, configPropertyNames);
1195
1356
  }
1196
- const config = typeCheckConfig$1(untrustedConfig);
1357
+ const config = typeCheckConfig$2(untrustedConfig);
1197
1358
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1198
1359
  return null;
1199
1360
  }
1200
1361
  return config;
1201
1362
  }
1202
- function buildNetworkSnapshot$1(luvio, config, options) {
1203
- const resourceParams = createResourceParams$1(config);
1204
- const request = createResourceRequest$1(resourceParams);
1363
+ function buildNetworkSnapshot$2(luvio, config, options) {
1364
+ const resourceParams = createResourceParams$2(config);
1365
+ const request = createResourceRequest$2(resourceParams);
1205
1366
  return luvio.dispatchResourceRequest(request, options)
1206
1367
  .then((response) => {
1207
1368
  return luvio.handleSuccessResponse(() => {
1208
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
1369
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
1209
1370
  return luvio.storeBroadcast().then(() => snapshot);
1210
1371
  }, () => {
1211
1372
  const cache = new StoreKeyMap();
1212
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1373
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1213
1374
  return cache;
1214
1375
  });
1215
1376
  }, (response) => {
@@ -1219,18 +1380,18 @@ function buildNetworkSnapshot$1(luvio, config, options) {
1219
1380
  }
1220
1381
  const postBatchInvoiceDocGenAdapterFactory = (luvio) => {
1221
1382
  return function postBatchInvoiceDocGen(untrustedConfig) {
1222
- const config = validateAdapterConfig$1(untrustedConfig, postBatchInvoiceDocGen_ConfigPropertyNames);
1383
+ const config = validateAdapterConfig$2(untrustedConfig, postBatchInvoiceDocGen_ConfigPropertyNames);
1223
1384
  // Invalid or incomplete config
1224
1385
  if (config === null) {
1225
1386
  throw new Error('Invalid config for "postBatchInvoiceDocGen"');
1226
1387
  }
1227
- return buildNetworkSnapshot$1(luvio, config);
1388
+ return buildNetworkSnapshot$2(luvio, config);
1228
1389
  };
1229
1390
  };
1230
1391
 
1231
- const TTL = 1000;
1232
- const VERSION = "c7bbc92c6b88cd62361410ec3b1597e5";
1233
- function validate(obj, path = 'CronExecutionDatesOutputRepresentation') {
1392
+ const TTL$1 = 1000;
1393
+ const VERSION$1 = "c7bbc92c6b88cd62361410ec3b1597e5";
1394
+ function validate$2(obj, path = 'CronExecutionDatesOutputRepresentation') {
1234
1395
  const v_error = (() => {
1235
1396
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1236
1397
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1250,23 +1411,23 @@ function validate(obj, path = 'CronExecutionDatesOutputRepresentation') {
1250
1411
  })();
1251
1412
  return v_error === undefined ? null : v_error;
1252
1413
  }
1253
- const RepresentationType = 'CronExecutionDatesOutputRepresentation';
1254
- function keyBuilder(luvio, config) {
1255
- return keyPrefix + '::' + RepresentationType + ':' + '[' + config.executionDates.join(',') + ']';
1414
+ const RepresentationType$1 = 'CronExecutionDatesOutputRepresentation';
1415
+ function keyBuilder$1(luvio, config) {
1416
+ return keyPrefix + '::' + RepresentationType$1 + ':' + '[' + config.executionDates.join(',') + ']';
1256
1417
  }
1257
- function keyBuilderFromType(luvio, object) {
1418
+ function keyBuilderFromType$1(luvio, object) {
1258
1419
  const keyParams = {
1259
1420
  executionDates: object.executionDates
1260
1421
  };
1261
- return keyBuilder(luvio, keyParams);
1422
+ return keyBuilder$1(luvio, keyParams);
1262
1423
  }
1263
- function normalize(input, existing, path, luvio, store, timestamp) {
1424
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
1264
1425
  return input;
1265
1426
  }
1266
- const select$1 = function CronExecutionDatesOutputRepresentationSelect() {
1427
+ const select$3 = function CronExecutionDatesOutputRepresentationSelect() {
1267
1428
  return {
1268
1429
  kind: 'Fragment',
1269
- version: VERSION,
1430
+ version: VERSION$1,
1270
1431
  private: [],
1271
1432
  selections: [
1272
1433
  {
@@ -1277,7 +1438,7 @@ const select$1 = function CronExecutionDatesOutputRepresentationSelect() {
1277
1438
  ]
1278
1439
  };
1279
1440
  };
1280
- function equals(existing, incoming) {
1441
+ function equals$1(existing, incoming) {
1281
1442
  const existing_executionDates = existing.executionDates;
1282
1443
  const incoming_executionDates = incoming.executionDates;
1283
1444
  const equals_executionDates_items = equalsArray(existing_executionDates, incoming_executionDates, (existing_executionDates_item, incoming_executionDates_item) => {
@@ -1290,7 +1451,182 @@ function equals(existing, incoming) {
1290
1451
  }
1291
1452
  return true;
1292
1453
  }
1293
- const ingest = function CronExecutionDatesOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1454
+ const ingest$1 = function CronExecutionDatesOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1455
+ if (process.env.NODE_ENV !== 'production') {
1456
+ const validateError = validate$2(input);
1457
+ if (validateError !== null) {
1458
+ throw validateError;
1459
+ }
1460
+ }
1461
+ const key = keyBuilderFromType$1(luvio, input);
1462
+ const ttlToUse = TTL$1;
1463
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "BillingBatch", VERSION$1, RepresentationType$1, equals$1);
1464
+ return createLink(key);
1465
+ };
1466
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1467
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1468
+ const rootKey = keyBuilderFromType$1(luvio, input);
1469
+ rootKeySet.set(rootKey, {
1470
+ namespace: keyPrefix,
1471
+ representationName: RepresentationType$1,
1472
+ mergeable: false
1473
+ });
1474
+ }
1475
+
1476
+ function select$2(luvio, params) {
1477
+ return select$3();
1478
+ }
1479
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1480
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
1481
+ }
1482
+ function ingestSuccess$1(luvio, resourceParams, response) {
1483
+ const { body } = response;
1484
+ const key = keyBuilderFromType$1(luvio, body);
1485
+ luvio.storeIngest(key, ingest$1, body);
1486
+ const snapshot = luvio.storeLookup({
1487
+ recordId: key,
1488
+ node: select$2(),
1489
+ variables: {},
1490
+ });
1491
+ if (process.env.NODE_ENV !== 'production') {
1492
+ if (snapshot.state !== 'Fulfilled') {
1493
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1494
+ }
1495
+ }
1496
+ deepFreeze(snapshot.data);
1497
+ return snapshot;
1498
+ }
1499
+ function createResourceRequest$1(config) {
1500
+ const headers = {};
1501
+ return {
1502
+ baseUri: '/services/data/v64.0',
1503
+ basePath: '/connect/billing/batch/cron/execution-dates',
1504
+ method: 'post',
1505
+ body: config.body,
1506
+ urlParams: {},
1507
+ queryParams: {},
1508
+ headers,
1509
+ priority: 'normal',
1510
+ };
1511
+ }
1512
+
1513
+ const adapterName$1 = 'postCronExecutionDates';
1514
+ const postCronExecutionDates_ConfigPropertyMetadata = [
1515
+ generateParamConfigMetadata('numberOfNextExecutionDates', true, 2 /* Body */, 3 /* Integer */),
1516
+ generateParamConfigMetadata('startDate', true, 2 /* Body */, 0 /* String */),
1517
+ generateParamConfigMetadata('timezone', true, 2 /* Body */, 0 /* String */),
1518
+ generateParamConfigMetadata('frequencyCadenceOptions', true, 2 /* Body */, 4 /* Unsupported */),
1519
+ generateParamConfigMetadata('frequencyCadence', true, 2 /* Body */, 0 /* String */),
1520
+ generateParamConfigMetadata('preferredTime', true, 2 /* Body */, 0 /* String */),
1521
+ ];
1522
+ const postCronExecutionDates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postCronExecutionDates_ConfigPropertyMetadata);
1523
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(postCronExecutionDates_ConfigPropertyMetadata);
1524
+ function typeCheckConfig$1(untrustedConfig) {
1525
+ const config = {};
1526
+ typeCheckConfig$8(untrustedConfig, config, postCronExecutionDates_ConfigPropertyMetadata);
1527
+ const untrustedConfig_frequencyCadenceOptions = untrustedConfig.frequencyCadenceOptions;
1528
+ config.frequencyCadenceOptions = untrustedConfig_frequencyCadenceOptions;
1529
+ return config;
1530
+ }
1531
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1532
+ if (!untrustedIsObject(untrustedConfig)) {
1533
+ return null;
1534
+ }
1535
+ if (process.env.NODE_ENV !== 'production') {
1536
+ validateConfig(untrustedConfig, configPropertyNames);
1537
+ }
1538
+ const config = typeCheckConfig$1(untrustedConfig);
1539
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1540
+ return null;
1541
+ }
1542
+ return config;
1543
+ }
1544
+ function buildNetworkSnapshot$1(luvio, config, options) {
1545
+ const resourceParams = createResourceParams$1(config);
1546
+ const request = createResourceRequest$1(resourceParams);
1547
+ return luvio.dispatchResourceRequest(request, options)
1548
+ .then((response) => {
1549
+ return luvio.handleSuccessResponse(() => {
1550
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response);
1551
+ return luvio.storeBroadcast().then(() => snapshot);
1552
+ }, () => {
1553
+ const cache = new StoreKeyMap();
1554
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1555
+ return cache;
1556
+ });
1557
+ }, (response) => {
1558
+ deepFreeze(response);
1559
+ throw response;
1560
+ });
1561
+ }
1562
+ const postCronExecutionDatesAdapterFactory = (luvio) => {
1563
+ return function postCronExecutionDates(untrustedConfig) {
1564
+ const config = validateAdapterConfig$1(untrustedConfig, postCronExecutionDates_ConfigPropertyNames);
1565
+ // Invalid or incomplete config
1566
+ if (config === null) {
1567
+ throw new Error('Invalid config for "postCronExecutionDates"');
1568
+ }
1569
+ return buildNetworkSnapshot$1(luvio, config);
1570
+ };
1571
+ };
1572
+
1573
+ function validate$1(obj, path = 'BatchInvoiceSchedulerUpdateInputRepresentation') {
1574
+ const v_error = (() => {
1575
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1576
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1577
+ }
1578
+ const obj_status = obj.status;
1579
+ const path_status = path + '.status';
1580
+ if (typeof obj_status !== 'string') {
1581
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
1582
+ }
1583
+ })();
1584
+ return v_error === undefined ? null : v_error;
1585
+ }
1586
+
1587
+ const TTL = 1000;
1588
+ const VERSION = "b8411d559a539f8ec599e199e2e5514e";
1589
+ function validate(obj, path = 'BatchInvoiceSchedulerUpdateOutputRepresentation') {
1590
+ const v_error = (() => {
1591
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1592
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1593
+ }
1594
+ const obj_status = obj.status;
1595
+ const path_status = path + '.status';
1596
+ if (typeof obj_status !== 'string') {
1597
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
1598
+ }
1599
+ })();
1600
+ return v_error === undefined ? null : v_error;
1601
+ }
1602
+ const RepresentationType = 'BatchInvoiceSchedulerUpdateOutputRepresentation';
1603
+ function keyBuilder(luvio, config) {
1604
+ return keyPrefix + '::' + RepresentationType + ':' + config.status;
1605
+ }
1606
+ function keyBuilderFromType(luvio, object) {
1607
+ const keyParams = {
1608
+ status: object.status
1609
+ };
1610
+ return keyBuilder(luvio, keyParams);
1611
+ }
1612
+ function normalize(input, existing, path, luvio, store, timestamp) {
1613
+ return input;
1614
+ }
1615
+ const select$1 = function BatchInvoiceSchedulerUpdateOutputRepresentationSelect() {
1616
+ return {
1617
+ kind: 'Fragment',
1618
+ version: VERSION,
1619
+ private: [],
1620
+ opaque: true
1621
+ };
1622
+ };
1623
+ function equals(existing, incoming) {
1624
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1625
+ return false;
1626
+ }
1627
+ return true;
1628
+ }
1629
+ const ingest = function BatchInvoiceSchedulerUpdateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1294
1630
  if (process.env.NODE_ENV !== 'production') {
1295
1631
  const validateError = validate(input);
1296
1632
  if (validateError !== null) {
@@ -1339,32 +1675,31 @@ function createResourceRequest(config) {
1339
1675
  const headers = {};
1340
1676
  return {
1341
1677
  baseUri: '/services/data/v64.0',
1342
- basePath: '/connect/billing/batch/cron/execution-dates',
1343
- method: 'post',
1678
+ basePath: '/commerce/invoicing/invoice-schedulers/' + config.urlParams.billingBatchSchedulerId + '',
1679
+ method: 'patch',
1344
1680
  body: config.body,
1345
- urlParams: {},
1681
+ urlParams: config.urlParams,
1346
1682
  queryParams: {},
1347
1683
  headers,
1348
1684
  priority: 'normal',
1349
1685
  };
1350
1686
  }
1351
1687
 
1352
- const adapterName = 'postCronExecutionDates';
1353
- const postCronExecutionDates_ConfigPropertyMetadata = [
1354
- generateParamConfigMetadata('numberOfNextExecutionDates', true, 2 /* Body */, 3 /* Integer */),
1355
- generateParamConfigMetadata('startDate', true, 2 /* Body */, 0 /* String */),
1356
- generateParamConfigMetadata('timezone', true, 2 /* Body */, 0 /* String */),
1357
- generateParamConfigMetadata('frequencyCadenceOptions', true, 2 /* Body */, 4 /* Unsupported */),
1358
- generateParamConfigMetadata('frequencyCadence', true, 2 /* Body */, 0 /* String */),
1359
- generateParamConfigMetadata('preferredTime', true, 2 /* Body */, 0 /* String */),
1688
+ const adapterName = 'updateInvoicesBatchScheduler';
1689
+ const updateInvoicesBatchScheduler_ConfigPropertyMetadata = [
1690
+ generateParamConfigMetadata('billingBatchSchedulerId', true, 0 /* UrlParameter */, 0 /* String */),
1691
+ generateParamConfigMetadata('BatchInvoiceSchedulerUpdateInput', true, 2 /* Body */, 4 /* Unsupported */),
1360
1692
  ];
1361
- const postCronExecutionDates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postCronExecutionDates_ConfigPropertyMetadata);
1362
- const createResourceParams = /*#__PURE__*/ createResourceParams$6(postCronExecutionDates_ConfigPropertyMetadata);
1693
+ const updateInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateInvoicesBatchScheduler_ConfigPropertyMetadata);
1694
+ const createResourceParams = /*#__PURE__*/ createResourceParams$8(updateInvoicesBatchScheduler_ConfigPropertyMetadata);
1363
1695
  function typeCheckConfig(untrustedConfig) {
1364
1696
  const config = {};
1365
- typeCheckConfig$6(untrustedConfig, config, postCronExecutionDates_ConfigPropertyMetadata);
1366
- const untrustedConfig_frequencyCadenceOptions = untrustedConfig.frequencyCadenceOptions;
1367
- config.frequencyCadenceOptions = untrustedConfig_frequencyCadenceOptions;
1697
+ typeCheckConfig$8(untrustedConfig, config, updateInvoicesBatchScheduler_ConfigPropertyMetadata);
1698
+ const untrustedConfig_BatchInvoiceSchedulerUpdateInput = untrustedConfig.BatchInvoiceSchedulerUpdateInput;
1699
+ const referenceBatchInvoiceSchedulerUpdateInputRepresentationValidationError = validate$1(untrustedConfig_BatchInvoiceSchedulerUpdateInput);
1700
+ if (referenceBatchInvoiceSchedulerUpdateInputRepresentationValidationError === null) {
1701
+ config.BatchInvoiceSchedulerUpdateInput = untrustedConfig_BatchInvoiceSchedulerUpdateInput;
1702
+ }
1368
1703
  return config;
1369
1704
  }
1370
1705
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -1398,23 +1733,25 @@ function buildNetworkSnapshot(luvio, config, options) {
1398
1733
  throw response;
1399
1734
  });
1400
1735
  }
1401
- const postCronExecutionDatesAdapterFactory = (luvio) => {
1402
- return function postCronExecutionDates(untrustedConfig) {
1403
- const config = validateAdapterConfig(untrustedConfig, postCronExecutionDates_ConfigPropertyNames);
1736
+ const updateInvoicesBatchSchedulerAdapterFactory = (luvio) => {
1737
+ return function updateInvoicesBatchScheduler(untrustedConfig) {
1738
+ const config = validateAdapterConfig(untrustedConfig, updateInvoicesBatchScheduler_ConfigPropertyNames);
1404
1739
  // Invalid or incomplete config
1405
1740
  if (config === null) {
1406
- throw new Error('Invalid config for "postCronExecutionDates"');
1741
+ throw new Error('Invalid config for "updateInvoicesBatchScheduler"');
1407
1742
  }
1408
1743
  return buildNetworkSnapshot(luvio, config);
1409
1744
  };
1410
1745
  };
1411
1746
 
1747
+ let batchInvoiceRunRecovery;
1412
1748
  let createInvoicesBatchScheduler;
1413
1749
  let createPaymentsBatchScheduler;
1414
1750
  let editInvoicesBatchScheduler;
1415
1751
  let postBatchDraftInvoices;
1416
1752
  let postBatchInvoiceDocGen;
1417
1753
  let postCronExecutionDates;
1754
+ let updateInvoicesBatchScheduler;
1418
1755
  // Imperative GET Adapters
1419
1756
  let postBatchDraftInvoices_imperative;
1420
1757
  const postBatchDraftInvoicesMetadata = {
@@ -1431,12 +1768,14 @@ function bindExportsTo(luvio) {
1431
1768
  return (config) => adapter(config).then((snapshot) => snapshot.data);
1432
1769
  }
1433
1770
  return {
1771
+ batchInvoiceRunRecovery: unwrapSnapshotData(batchInvoiceRunRecoveryAdapterFactory),
1434
1772
  createInvoicesBatchScheduler: unwrapSnapshotData(createInvoicesBatchSchedulerAdapterFactory),
1435
1773
  createPaymentsBatchScheduler: unwrapSnapshotData(createPaymentsBatchSchedulerAdapterFactory),
1436
1774
  editInvoicesBatchScheduler: unwrapSnapshotData(editInvoicesBatchSchedulerAdapterFactory),
1437
1775
  postBatchDraftInvoices: createWireAdapterConstructor(luvio, postBatchDraftInvoices_ldsAdapter, postBatchDraftInvoicesMetadata),
1438
1776
  postBatchInvoiceDocGen: unwrapSnapshotData(postBatchInvoiceDocGenAdapterFactory),
1439
1777
  postCronExecutionDates: unwrapSnapshotData(postCronExecutionDatesAdapterFactory),
1778
+ updateInvoicesBatchScheduler: unwrapSnapshotData(updateInvoicesBatchSchedulerAdapterFactory),
1440
1779
  // Imperative GET Adapters
1441
1780
  postBatchDraftInvoices_imperative: createImperativeAdapter(luvio, postBatchDraftInvoices_ldsAdapter, postBatchDraftInvoicesMetadata),
1442
1781
  // Notify Update Availables
@@ -1444,15 +1783,17 @@ function bindExportsTo(luvio) {
1444
1783
  }
1445
1784
  withDefaultLuvio((luvio) => {
1446
1785
  ({
1786
+ batchInvoiceRunRecovery,
1447
1787
  createInvoicesBatchScheduler,
1448
1788
  createPaymentsBatchScheduler,
1449
1789
  editInvoicesBatchScheduler,
1450
1790
  postBatchDraftInvoices,
1451
1791
  postBatchInvoiceDocGen,
1452
1792
  postCronExecutionDates,
1793
+ updateInvoicesBatchScheduler,
1453
1794
  postBatchDraftInvoices_imperative,
1454
1795
  } = bindExportsTo(luvio));
1455
1796
  });
1456
1797
 
1457
- export { createInvoicesBatchScheduler, createPaymentsBatchScheduler, editInvoicesBatchScheduler, postBatchDraftInvoices, postBatchDraftInvoices_imperative, postBatchInvoiceDocGen, postCronExecutionDates };
1458
- // version: 1.345.0-faf201180e
1798
+ export { batchInvoiceRunRecovery, createInvoicesBatchScheduler, createPaymentsBatchScheduler, editInvoicesBatchScheduler, postBatchDraftInvoices, postBatchDraftInvoices_imperative, postBatchInvoiceDocGen, postCronExecutionDates, updateInvoicesBatchScheduler };
1799
+ // version: 1.347.0-31679f40fc