@salesforce/lds-adapters-revenue-billing-batch 1.170.0 → 1.170.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. package/dist/es/es2018/revenue-billing-batch.js +17 -13
  2. package/dist/es/es2018/types/src/generated/resources/postCommerceInvoicingInvoiceSchedulers.d.ts +2 -2
  3. package/dist/es/es2018/types/src/generated/resources/postCommercePaymentsPaymentSchedulers.d.ts +2 -2
  4. package/dist/es/es2018/types/src/generated/types/BatchFilterCriteriaInputRepresentation.d.ts +2 -2
  5. package/dist/es/es2018/types/src/generated/types/BatchInvoiceSchedulerInputRepresentation.d.ts +2 -2
  6. package/dist/es/es2018/types/src/generated/types/BatchInvoiceSchedulerInputWrapperRepresentation.d.ts +2 -2
  7. package/dist/es/es2018/types/src/generated/types/BillingBatchSchedulerRepresentation.d.ts +2 -2
  8. package/dist/es/es2018/types/src/generated/types/InvoicesBatchSchedulerOutputRepresentation.d.ts +1 -1
  9. package/dist/es/es2018/types/src/generated/types/PaymentRunBatchFilterCriteriaInputRepresentation.d.ts +2 -2
  10. package/dist/es/es2018/types/src/generated/types/PaymentRunBatchFilterCriteriaInputRepresentations.d.ts +2 -2
  11. package/dist/es/es2018/types/src/generated/types/PaymentsBatchSchedulerInputRepresentation.d.ts +2 -2
  12. package/dist/es/es2018/types/src/generated/types/PaymentsBatchSchedulerInputWrapperRepresentation.d.ts +2 -2
  13. package/dist/es/es2018/types/src/generated/types/PaymentsBatchSchedulerOutputRepresentation.d.ts +1 -1
  14. package/dist/es/es2018/types/src/generated/types/ScheduleOptionsInputRepresentation.d.ts +2 -2
  15. package/dist/es/es2018/types/src/generated/types/ScheduleOptionsInputRepresentationForInvoice.d.ts +2 -2
  16. package/package.json +1 -1
  17. package/sfdc/index.js +18 -14
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, StoreKeyMap, deepFreeze } from '@luvio/engine';
7
+ import { serializeStructuredKey, deepFreeze, StoreKeyMap } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -222,8 +222,7 @@ const ingest$1 = function PaymentsBatchSchedulerOutputRepresentationIngest(input
222
222
  }
223
223
  return createLink(key);
224
224
  };
225
- function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
226
- const rootKeySet = new StoreKeyMap();
225
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
227
226
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
228
227
  const rootKey = keyBuilderFromType$1(luvio, input);
229
228
  rootKeySet.set(rootKey, {
@@ -231,14 +230,13 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
231
230
  representationName: RepresentationType$1,
232
231
  mergeable: false
233
232
  });
234
- return rootKeySet;
235
233
  }
236
234
 
237
235
  function select$2(luvio, params) {
238
236
  return select$3();
239
237
  }
240
- function getResponseCacheKeys$1(luvio, resourceParams, response) {
241
- return getTypeCacheKeys$1(luvio, response);
238
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
239
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
242
240
  }
243
241
  function ingestSuccess$1(luvio, resourceParams, response) {
244
242
  const { body } = response;
@@ -316,7 +314,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
316
314
  return luvio.handleSuccessResponse(() => {
317
315
  const snapshot = ingestSuccess$1(luvio, resourceParams, response);
318
316
  return luvio.storeBroadcast().then(() => snapshot);
319
- }, () => getResponseCacheKeys$1(luvio, resourceParams, response.body));
317
+ }, () => {
318
+ const cache = new StoreKeyMap();
319
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
320
+ return cache;
321
+ });
320
322
  }, (response) => {
321
323
  deepFreeze(response);
322
324
  throw response;
@@ -486,8 +488,7 @@ const ingest = function InvoicesBatchSchedulerOutputRepresentationIngest(input,
486
488
  }
487
489
  return createLink(key);
488
490
  };
489
- function getTypeCacheKeys(luvio, input, fullPathFactory) {
490
- const rootKeySet = new StoreKeyMap();
491
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
491
492
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
492
493
  const rootKey = keyBuilderFromType(luvio, input);
493
494
  rootKeySet.set(rootKey, {
@@ -495,14 +496,13 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
495
496
  representationName: RepresentationType,
496
497
  mergeable: false
497
498
  });
498
- return rootKeySet;
499
499
  }
500
500
 
501
501
  function select(luvio, params) {
502
502
  return select$1();
503
503
  }
504
- function getResponseCacheKeys(luvio, resourceParams, response) {
505
- return getTypeCacheKeys(luvio, response);
504
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
505
+ getTypeCacheKeys(storeKeyMap, luvio, response);
506
506
  }
507
507
  function ingestSuccess(luvio, resourceParams, response) {
508
508
  const { body } = response;
@@ -580,7 +580,11 @@ function buildNetworkSnapshot(luvio, config, options) {
580
580
  return luvio.handleSuccessResponse(() => {
581
581
  const snapshot = ingestSuccess(luvio, resourceParams, response);
582
582
  return luvio.storeBroadcast().then(() => snapshot);
583
- }, () => getResponseCacheKeys(luvio, resourceParams, response.body));
583
+ }, () => {
584
+ const cache = new StoreKeyMap();
585
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
586
+ return cache;
587
+ });
584
588
  }, (response) => {
585
589
  deepFreeze(response);
586
590
  throw response;
@@ -1,5 +1,5 @@
1
1
  import { BatchInvoiceSchedulerInputRepresentation as types_BatchInvoiceSchedulerInputRepresentation_BatchInvoiceSchedulerInputRepresentation } from '../types/BatchInvoiceSchedulerInputRepresentation';
2
- import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
3
3
  import { InvoicesBatchSchedulerOutputRepresentation as types_InvoicesBatchSchedulerOutputRepresentation_InvoicesBatchSchedulerOutputRepresentation } from '../types/InvoicesBatchSchedulerOutputRepresentation';
4
4
  export interface ResourceRequestConfig {
5
5
  body: {
@@ -7,7 +7,7 @@ export interface ResourceRequestConfig {
7
7
  };
8
8
  }
9
9
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
10
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_InvoicesBatchSchedulerOutputRepresentation_InvoicesBatchSchedulerOutputRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
10
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_InvoicesBatchSchedulerOutputRepresentation_InvoicesBatchSchedulerOutputRepresentation): void;
11
11
  export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_InvoicesBatchSchedulerOutputRepresentation_InvoicesBatchSchedulerOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_InvoicesBatchSchedulerOutputRepresentation_InvoicesBatchSchedulerOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_InvoicesBatchSchedulerOutputRepresentation_InvoicesBatchSchedulerOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_InvoicesBatchSchedulerOutputRepresentation_InvoicesBatchSchedulerOutputRepresentation, any>;
12
12
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
13
13
  export default createResourceRequest;
@@ -1,5 +1,5 @@
1
1
  import { PaymentsBatchSchedulerInputRepresentation as types_PaymentsBatchSchedulerInputRepresentation_PaymentsBatchSchedulerInputRepresentation } from '../types/PaymentsBatchSchedulerInputRepresentation';
2
- import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
3
3
  import { PaymentsBatchSchedulerOutputRepresentation as types_PaymentsBatchSchedulerOutputRepresentation_PaymentsBatchSchedulerOutputRepresentation } from '../types/PaymentsBatchSchedulerOutputRepresentation';
4
4
  export interface ResourceRequestConfig {
5
5
  body: {
@@ -7,7 +7,7 @@ export interface ResourceRequestConfig {
7
7
  };
8
8
  }
9
9
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
10
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_PaymentsBatchSchedulerOutputRepresentation_PaymentsBatchSchedulerOutputRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
10
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_PaymentsBatchSchedulerOutputRepresentation_PaymentsBatchSchedulerOutputRepresentation): void;
11
11
  export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_PaymentsBatchSchedulerOutputRepresentation_PaymentsBatchSchedulerOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_PaymentsBatchSchedulerOutputRepresentation_PaymentsBatchSchedulerOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_PaymentsBatchSchedulerOutputRepresentation_PaymentsBatchSchedulerOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_PaymentsBatchSchedulerOutputRepresentation_PaymentsBatchSchedulerOutputRepresentation, any>;
12
12
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
13
13
  export default createResourceRequest;
@@ -1,4 +1,4 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  export declare const VERSION = "28e76bb93875e66ce10b645c10d0b2cd";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
@@ -6,7 +6,7 @@ export declare function normalize(input: BatchFilterCriteriaInputRepresentation,
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: BatchFilterCriteriaInputRepresentationNormalized, incoming: BatchFilterCriteriaInputRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: BatchFilterCriteriaInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: BatchFilterCriteriaInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Common elements of Billing Batch Filter Criteria Input Representation
12
12
  *
@@ -1,5 +1,5 @@
1
1
  import { ScheduleOptionsInputRepresentationForInvoice as ScheduleOptionsInputRepresentationForInvoice_ScheduleOptionsInputRepresentationForInvoice } from './ScheduleOptionsInputRepresentationForInvoice';
2
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
3
  export declare const VERSION = "8e298dd5fcb348f840546bf0c3a1730f";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
@@ -7,7 +7,7 @@ export declare function normalize(input: BatchInvoiceSchedulerInputRepresentatio
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: BatchInvoiceSchedulerInputRepresentationNormalized, incoming: BatchInvoiceSchedulerInputRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: BatchInvoiceSchedulerInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: BatchInvoiceSchedulerInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Invoices Batch Scheduler Input Representation
13
13
  *
@@ -1,5 +1,5 @@
1
1
  import { BatchInvoiceSchedulerInputRepresentation as BatchInvoiceSchedulerInputRepresentation_BatchInvoiceSchedulerInputRepresentation } from './BatchInvoiceSchedulerInputRepresentation';
2
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
3
  export declare const VERSION = "0348d890ee57305d1ab268133fa6ae96";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
@@ -7,7 +7,7 @@ export declare function normalize(input: BatchInvoiceSchedulerInputWrapperRepres
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: BatchInvoiceSchedulerInputWrapperRepresentationNormalized, incoming: BatchInvoiceSchedulerInputWrapperRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: BatchInvoiceSchedulerInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: BatchInvoiceSchedulerInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Wrapper for invoice batch scheduler input representation
13
13
  *
@@ -1,4 +1,4 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  export declare const VERSION = "1214fcab35d82b91e646f8ca43e7f5de";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
@@ -6,7 +6,7 @@ export declare function normalize(input: BillingBatchSchedulerRepresentation, ex
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: BillingBatchSchedulerRepresentationNormalized, incoming: BillingBatchSchedulerRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: BillingBatchSchedulerRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: BillingBatchSchedulerRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Billing Batch Scheduler Output Representation
12
12
  *
@@ -17,7 +17,7 @@ export declare function normalize(input: InvoicesBatchSchedulerOutputRepresentat
17
17
  export declare const select: () => $64$luvio_engine_BaseFragment;
18
18
  export declare function equals(existing: InvoicesBatchSchedulerOutputRepresentationNormalized, incoming: InvoicesBatchSchedulerOutputRepresentationNormalized): boolean;
19
19
  export declare const ingest: $64$luvio_engine_ResourceIngest;
20
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: InvoicesBatchSchedulerOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
20
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: InvoicesBatchSchedulerOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
21
  /**
22
22
  * Invoices Batch Scheduler Output Representation
23
23
  *
@@ -1,5 +1,5 @@
1
1
  import { BatchFilterCriteriaInputRepresentation as BatchFilterCriteriaInputRepresentation_BatchFilterCriteriaInputRepresentation } from './BatchFilterCriteriaInputRepresentation';
2
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
3
  export declare const VERSION = "9dd460d458d4926b4103b2d7f8201add";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
@@ -7,7 +7,7 @@ export declare function normalize(input: PaymentRunBatchFilterCriteriaInputRepre
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: PaymentRunBatchFilterCriteriaInputRepresentationNormalized, incoming: PaymentRunBatchFilterCriteriaInputRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PaymentRunBatchFilterCriteriaInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PaymentRunBatchFilterCriteriaInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Billing Batch Filter Criteria Input Representation
13
13
  *
@@ -1,4 +1,4 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  export declare const VERSION = "fd696ee1e708b9d5ca442c6455824fab";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
@@ -6,7 +6,7 @@ export declare function normalize(input: PaymentRunBatchFilterCriteriaInputRepre
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: PaymentRunBatchFilterCriteriaInputRepresentationsNormalized, incoming: PaymentRunBatchFilterCriteriaInputRepresentationsNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PaymentRunBatchFilterCriteriaInputRepresentations, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PaymentRunBatchFilterCriteriaInputRepresentations, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Batch Payments Filter Criteria Input Representations
12
12
  *
@@ -1,5 +1,5 @@
1
1
  import { ScheduleOptionsInputRepresentation as ScheduleOptionsInputRepresentation_ScheduleOptionsInputRepresentation } from './ScheduleOptionsInputRepresentation';
2
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
3
  export declare const VERSION = "27ff1f74ba4040815f1f99a939767f6d";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
@@ -7,7 +7,7 @@ export declare function normalize(input: PaymentsBatchSchedulerInputRepresentati
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: PaymentsBatchSchedulerInputRepresentationNormalized, incoming: PaymentsBatchSchedulerInputRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PaymentsBatchSchedulerInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PaymentsBatchSchedulerInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Payments Batch Scheduler Input Representation
13
13
  *
@@ -1,5 +1,5 @@
1
1
  import { PaymentsBatchSchedulerInputRepresentation as PaymentsBatchSchedulerInputRepresentation_PaymentsBatchSchedulerInputRepresentation } from './PaymentsBatchSchedulerInputRepresentation';
2
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
3
  export declare const VERSION = "2cfff4f9fc8c4c2ea21d4f20fd5e3926";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
@@ -7,7 +7,7 @@ export declare function normalize(input: PaymentsBatchSchedulerInputWrapperRepre
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: PaymentsBatchSchedulerInputWrapperRepresentationNormalized, incoming: PaymentsBatchSchedulerInputWrapperRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PaymentsBatchSchedulerInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PaymentsBatchSchedulerInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Wrapper for payment batch scheduler input representation
13
13
  *
@@ -17,7 +17,7 @@ export declare function normalize(input: PaymentsBatchSchedulerOutputRepresentat
17
17
  export declare const select: () => $64$luvio_engine_BaseFragment;
18
18
  export declare function equals(existing: PaymentsBatchSchedulerOutputRepresentationNormalized, incoming: PaymentsBatchSchedulerOutputRepresentationNormalized): boolean;
19
19
  export declare const ingest: $64$luvio_engine_ResourceIngest;
20
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PaymentsBatchSchedulerOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
20
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: PaymentsBatchSchedulerOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
21
  /**
22
22
  * Payments Batch Scheduler Output Representation
23
23
  *
@@ -1,4 +1,4 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  export declare const VERSION = "a10fe041b690d426de338f34c02b11ef";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
@@ -6,7 +6,7 @@ export declare function normalize(input: ScheduleOptionsInputRepresentation, exi
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ScheduleOptionsInputRepresentationNormalized, incoming: ScheduleOptionsInputRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ScheduleOptionsInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ScheduleOptionsInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Batch Scheduler Options Input Representation
12
12
  *
@@ -1,4 +1,4 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  export declare const VERSION = "3f30aad1ac3ea77d5e8aa1ef3256d637";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
@@ -6,7 +6,7 @@ export declare function normalize(input: ScheduleOptionsInputRepresentationForIn
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ScheduleOptionsInputRepresentationForInvoiceNormalized, incoming: ScheduleOptionsInputRepresentationForInvoiceNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ScheduleOptionsInputRepresentationForInvoice, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ScheduleOptionsInputRepresentationForInvoice, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Batch Scheduler Options Input Representation
12
12
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-revenue-billing-batch",
3
- "version": "1.170.0",
3
+ "version": "1.170.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "This API family is meant for all APIs required for Billing Batch.",
6
6
  "main": "dist/es/es2018/revenue-billing-batch.js",
package/sfdc/index.js CHANGED
@@ -13,7 +13,7 @@
13
13
  */
14
14
  /* proxy-compat-disable */
15
15
  import { withDefaultLuvio } from 'force/ldsEngine';
16
- import { serializeStructuredKey, StoreKeyMap, deepFreeze } from 'force/luvioEngine';
16
+ import { serializeStructuredKey, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
17
17
 
18
18
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
19
19
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -227,8 +227,7 @@ const ingest$1 = function InvoicesBatchSchedulerOutputRepresentationIngest(input
227
227
  }
228
228
  return createLink(key);
229
229
  };
230
- function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
231
- const rootKeySet = new StoreKeyMap();
230
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
232
231
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
233
232
  const rootKey = keyBuilderFromType$1(luvio, input);
234
233
  rootKeySet.set(rootKey, {
@@ -236,14 +235,13 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
236
235
  representationName: RepresentationType$1,
237
236
  mergeable: false
238
237
  });
239
- return rootKeySet;
240
238
  }
241
239
 
242
240
  function select$2(luvio, params) {
243
241
  return select$3();
244
242
  }
245
- function getResponseCacheKeys$1(luvio, resourceParams, response) {
246
- return getTypeCacheKeys$1(luvio, response);
243
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
244
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
247
245
  }
248
246
  function ingestSuccess$1(luvio, resourceParams, response) {
249
247
  const { body } = response;
@@ -321,7 +319,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
321
319
  return luvio.handleSuccessResponse(() => {
322
320
  const snapshot = ingestSuccess$1(luvio, resourceParams, response);
323
321
  return luvio.storeBroadcast().then(() => snapshot);
324
- }, () => getResponseCacheKeys$1(luvio, resourceParams, response.body));
322
+ }, () => {
323
+ const cache = new StoreKeyMap();
324
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
325
+ return cache;
326
+ });
325
327
  }, (response) => {
326
328
  deepFreeze(response);
327
329
  throw response;
@@ -495,8 +497,7 @@ const ingest = function PaymentsBatchSchedulerOutputRepresentationIngest(input,
495
497
  }
496
498
  return createLink(key);
497
499
  };
498
- function getTypeCacheKeys(luvio, input, fullPathFactory) {
499
- const rootKeySet = new StoreKeyMap();
500
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
500
501
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
501
502
  const rootKey = keyBuilderFromType(luvio, input);
502
503
  rootKeySet.set(rootKey, {
@@ -504,14 +505,13 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
504
505
  representationName: RepresentationType,
505
506
  mergeable: false
506
507
  });
507
- return rootKeySet;
508
508
  }
509
509
 
510
510
  function select(luvio, params) {
511
511
  return select$1();
512
512
  }
513
- function getResponseCacheKeys(luvio, resourceParams, response) {
514
- return getTypeCacheKeys(luvio, response);
513
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
514
+ getTypeCacheKeys(storeKeyMap, luvio, response);
515
515
  }
516
516
  function ingestSuccess(luvio, resourceParams, response) {
517
517
  const { body } = response;
@@ -589,7 +589,11 @@ function buildNetworkSnapshot(luvio, config, options) {
589
589
  return luvio.handleSuccessResponse(() => {
590
590
  const snapshot = ingestSuccess(luvio, resourceParams, response);
591
591
  return luvio.storeBroadcast().then(() => snapshot);
592
- }, () => getResponseCacheKeys(luvio, resourceParams, response.body));
592
+ }, () => {
593
+ const cache = new StoreKeyMap();
594
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
595
+ return cache;
596
+ });
593
597
  }, (response) => {
594
598
  deepFreeze(response);
595
599
  throw response;
@@ -627,4 +631,4 @@ withDefaultLuvio((luvio) => {
627
631
  });
628
632
 
629
633
  export { createInvoicesBatchScheduler, createPaymentsBatchScheduler };
630
- // version: 1.170.0-1813b78e7
634
+ // version: 1.170.1-5fb216cf1