@salesforce/lds-adapters-revenue-billing-batch 1.213.0 → 1.213.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.
- package/dist/es/es2018/revenue-billing-batch.js +31 -53
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/adapters/createInvoicesBatchScheduler.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/createPaymentsBatchScheduler.d.ts +3 -2
- package/package.json +1 -1
- package/sfdc/index.js +32 -54
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -41,6 +41,24 @@ function untrustedIsObject(untrusted) {
|
|
|
41
41
|
function areRequiredParametersPresent(config, configPropertyNames) {
|
|
42
42
|
return configPropertyNames.parameters.required.every(req => req in config);
|
|
43
43
|
}
|
|
44
|
+
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
45
|
+
return {
|
|
46
|
+
name,
|
|
47
|
+
required,
|
|
48
|
+
coerceFn,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
52
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
53
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
54
|
+
return {
|
|
55
|
+
displayName,
|
|
56
|
+
parameters: {
|
|
57
|
+
required,
|
|
58
|
+
optional,
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
44
62
|
const keyPrefix = 'BillingBatch';
|
|
45
63
|
|
|
46
64
|
const { isArray: ArrayIsArray } = Array;
|
|
@@ -200,26 +218,8 @@ const ingest$1 = function PaymentsBatchSchedulerOutputRepresentationIngest(input
|
|
|
200
218
|
}
|
|
201
219
|
}
|
|
202
220
|
const key = keyBuilderFromType$1(luvio, input);
|
|
203
|
-
const existingRecord = store.readEntry(key);
|
|
204
221
|
const ttlToUse = TTL$1;
|
|
205
|
-
|
|
206
|
-
fullPath: key,
|
|
207
|
-
parent: path.parent,
|
|
208
|
-
propertyName: path.propertyName,
|
|
209
|
-
ttl: ttlToUse
|
|
210
|
-
});
|
|
211
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
212
|
-
luvio.storePublish(key, incomingRecord);
|
|
213
|
-
}
|
|
214
|
-
{
|
|
215
|
-
const storeMetadataParams = {
|
|
216
|
-
ttl: ttlToUse,
|
|
217
|
-
namespace: "BillingBatch",
|
|
218
|
-
version: VERSION$1,
|
|
219
|
-
representationName: RepresentationType$1,
|
|
220
|
-
};
|
|
221
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
222
|
-
}
|
|
222
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "BillingBatch", VERSION$1, RepresentationType$1, equals$1);
|
|
223
223
|
return createLink(key);
|
|
224
224
|
};
|
|
225
225
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -269,13 +269,11 @@ function createResourceRequest$1(config) {
|
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
const
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
};
|
|
272
|
+
const adapterName$1 = 'createPaymentsBatchScheduler';
|
|
273
|
+
const createPaymentsBatchScheduler_ConfigPropertyMetadata = [
|
|
274
|
+
generateParamConfigMetadata('PaymentsBatchSchedulerInput', true),
|
|
275
|
+
];
|
|
276
|
+
const createPaymentsBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createPaymentsBatchScheduler_ConfigPropertyMetadata);
|
|
279
277
|
function createResourceParams$1(config) {
|
|
280
278
|
const resourceParams = {
|
|
281
279
|
body: {
|
|
@@ -466,26 +464,8 @@ const ingest = function InvoicesBatchSchedulerOutputRepresentationIngest(input,
|
|
|
466
464
|
}
|
|
467
465
|
}
|
|
468
466
|
const key = keyBuilderFromType(luvio, input);
|
|
469
|
-
const existingRecord = store.readEntry(key);
|
|
470
467
|
const ttlToUse = TTL;
|
|
471
|
-
|
|
472
|
-
fullPath: key,
|
|
473
|
-
parent: path.parent,
|
|
474
|
-
propertyName: path.propertyName,
|
|
475
|
-
ttl: ttlToUse
|
|
476
|
-
});
|
|
477
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
478
|
-
luvio.storePublish(key, incomingRecord);
|
|
479
|
-
}
|
|
480
|
-
{
|
|
481
|
-
const storeMetadataParams = {
|
|
482
|
-
ttl: ttlToUse,
|
|
483
|
-
namespace: "BillingBatch",
|
|
484
|
-
version: VERSION,
|
|
485
|
-
representationName: RepresentationType,
|
|
486
|
-
};
|
|
487
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
488
|
-
}
|
|
468
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "BillingBatch", VERSION, RepresentationType, equals);
|
|
489
469
|
return createLink(key);
|
|
490
470
|
};
|
|
491
471
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -535,13 +515,11 @@ function createResourceRequest(config) {
|
|
|
535
515
|
};
|
|
536
516
|
}
|
|
537
517
|
|
|
538
|
-
const
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
}
|
|
544
|
-
};
|
|
518
|
+
const adapterName = 'createInvoicesBatchScheduler';
|
|
519
|
+
const createInvoicesBatchScheduler_ConfigPropertyMetadata = [
|
|
520
|
+
generateParamConfigMetadata('BatchInvoiceSchedulerInput', true),
|
|
521
|
+
];
|
|
522
|
+
const createInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, createInvoicesBatchScheduler_ConfigPropertyMetadata);
|
|
545
523
|
function createResourceParams(config) {
|
|
546
524
|
const resourceParams = {
|
|
547
525
|
body: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
|
|
1
|
+
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
3
3
|
declare const ObjectKeys: {
|
|
4
4
|
(o: object): string[];
|
|
@@ -57,4 +57,6 @@ export declare const snapshotRefreshOptions: {
|
|
|
57
57
|
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
58
|
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
59
|
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
|
+
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
60
62
|
export declare const keyPrefix = "BillingBatch";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
2
3
|
import { BatchInvoiceSchedulerInputRepresentation as types_BatchInvoiceSchedulerInputRepresentation_BatchInvoiceSchedulerInputRepresentation } from '../types/BatchInvoiceSchedulerInputRepresentation';
|
|
3
4
|
import { ResourceRequestConfig as resources_postCommerceInvoicingInvoiceSchedulers_ResourceRequestConfig } from '../resources/postCommerceInvoicingInvoiceSchedulers';
|
|
4
|
-
import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
5
5
|
import { InvoicesBatchSchedulerOutputRepresentation as types_InvoicesBatchSchedulerOutputRepresentation_InvoicesBatchSchedulerOutputRepresentation } from '../types/InvoicesBatchSchedulerOutputRepresentation';
|
|
6
6
|
export declare const adapterName = "createInvoicesBatchScheduler";
|
|
7
|
+
export declare const createInvoicesBatchScheduler_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
8
|
export declare const createInvoicesBatchScheduler_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
9
|
export interface CreateInvoicesBatchSchedulerConfig {
|
|
9
10
|
BatchInvoiceSchedulerInput: types_BatchInvoiceSchedulerInputRepresentation_BatchInvoiceSchedulerInputRepresentation;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
2
3
|
import { PaymentsBatchSchedulerInputRepresentation as types_PaymentsBatchSchedulerInputRepresentation_PaymentsBatchSchedulerInputRepresentation } from '../types/PaymentsBatchSchedulerInputRepresentation';
|
|
3
4
|
import { ResourceRequestConfig as resources_postCommercePaymentsPaymentSchedulers_ResourceRequestConfig } from '../resources/postCommercePaymentsPaymentSchedulers';
|
|
4
|
-
import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
5
5
|
import { PaymentsBatchSchedulerOutputRepresentation as types_PaymentsBatchSchedulerOutputRepresentation_PaymentsBatchSchedulerOutputRepresentation } from '../types/PaymentsBatchSchedulerOutputRepresentation';
|
|
6
6
|
export declare const adapterName = "createPaymentsBatchScheduler";
|
|
7
|
+
export declare const createPaymentsBatchScheduler_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
8
|
export declare const createPaymentsBatchScheduler_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
9
|
export interface CreatePaymentsBatchSchedulerConfig {
|
|
9
10
|
PaymentsBatchSchedulerInput: types_PaymentsBatchSchedulerInputRepresentation_PaymentsBatchSchedulerInputRepresentation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-revenue-billing-batch",
|
|
3
|
-
"version": "1.213.
|
|
3
|
+
"version": "1.213.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, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
|
|
16
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
|
|
17
17
|
|
|
18
18
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
19
19
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -50,6 +50,24 @@ function untrustedIsObject(untrusted) {
|
|
|
50
50
|
function areRequiredParametersPresent(config, configPropertyNames) {
|
|
51
51
|
return configPropertyNames.parameters.required.every(req => req in config);
|
|
52
52
|
}
|
|
53
|
+
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
54
|
+
return {
|
|
55
|
+
name,
|
|
56
|
+
required,
|
|
57
|
+
coerceFn,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
61
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
62
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
63
|
+
return {
|
|
64
|
+
displayName,
|
|
65
|
+
parameters: {
|
|
66
|
+
required,
|
|
67
|
+
optional,
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
53
71
|
const keyPrefix = 'BillingBatch';
|
|
54
72
|
|
|
55
73
|
const { isArray: ArrayIsArray } = Array;
|
|
@@ -205,26 +223,8 @@ const ingest$1 = function InvoicesBatchSchedulerOutputRepresentationIngest(input
|
|
|
205
223
|
}
|
|
206
224
|
}
|
|
207
225
|
const key = keyBuilderFromType$1(luvio, input);
|
|
208
|
-
const existingRecord = store.readEntry(key);
|
|
209
226
|
const ttlToUse = TTL$1;
|
|
210
|
-
|
|
211
|
-
fullPath: key,
|
|
212
|
-
parent: path.parent,
|
|
213
|
-
propertyName: path.propertyName,
|
|
214
|
-
ttl: ttlToUse
|
|
215
|
-
});
|
|
216
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
217
|
-
luvio.storePublish(key, incomingRecord);
|
|
218
|
-
}
|
|
219
|
-
{
|
|
220
|
-
const storeMetadataParams = {
|
|
221
|
-
ttl: ttlToUse,
|
|
222
|
-
namespace: "BillingBatch",
|
|
223
|
-
version: VERSION$1,
|
|
224
|
-
representationName: RepresentationType$1,
|
|
225
|
-
};
|
|
226
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
227
|
-
}
|
|
227
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "BillingBatch", VERSION$1, RepresentationType$1, equals$1);
|
|
228
228
|
return createLink(key);
|
|
229
229
|
};
|
|
230
230
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -274,13 +274,11 @@ function createResourceRequest$1(config) {
|
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
const
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
}
|
|
283
|
-
};
|
|
277
|
+
const adapterName$1 = 'createInvoicesBatchScheduler';
|
|
278
|
+
const createInvoicesBatchScheduler_ConfigPropertyMetadata = [
|
|
279
|
+
generateParamConfigMetadata('BatchInvoiceSchedulerInput', true),
|
|
280
|
+
];
|
|
281
|
+
const createInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createInvoicesBatchScheduler_ConfigPropertyMetadata);
|
|
284
282
|
function createResourceParams$1(config) {
|
|
285
283
|
const resourceParams = {
|
|
286
284
|
body: {
|
|
@@ -475,26 +473,8 @@ const ingest = function PaymentsBatchSchedulerOutputRepresentationIngest(input,
|
|
|
475
473
|
}
|
|
476
474
|
}
|
|
477
475
|
const key = keyBuilderFromType(luvio, input);
|
|
478
|
-
const existingRecord = store.readEntry(key);
|
|
479
476
|
const ttlToUse = TTL;
|
|
480
|
-
|
|
481
|
-
fullPath: key,
|
|
482
|
-
parent: path.parent,
|
|
483
|
-
propertyName: path.propertyName,
|
|
484
|
-
ttl: ttlToUse
|
|
485
|
-
});
|
|
486
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
487
|
-
luvio.storePublish(key, incomingRecord);
|
|
488
|
-
}
|
|
489
|
-
{
|
|
490
|
-
const storeMetadataParams = {
|
|
491
|
-
ttl: ttlToUse,
|
|
492
|
-
namespace: "BillingBatch",
|
|
493
|
-
version: VERSION,
|
|
494
|
-
representationName: RepresentationType,
|
|
495
|
-
};
|
|
496
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
497
|
-
}
|
|
477
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "BillingBatch", VERSION, RepresentationType, equals);
|
|
498
478
|
return createLink(key);
|
|
499
479
|
};
|
|
500
480
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -544,13 +524,11 @@ function createResourceRequest(config) {
|
|
|
544
524
|
};
|
|
545
525
|
}
|
|
546
526
|
|
|
547
|
-
const
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
}
|
|
553
|
-
};
|
|
527
|
+
const adapterName = 'createPaymentsBatchScheduler';
|
|
528
|
+
const createPaymentsBatchScheduler_ConfigPropertyMetadata = [
|
|
529
|
+
generateParamConfigMetadata('PaymentsBatchSchedulerInput', true),
|
|
530
|
+
];
|
|
531
|
+
const createPaymentsBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, createPaymentsBatchScheduler_ConfigPropertyMetadata);
|
|
554
532
|
function createResourceParams(config) {
|
|
555
533
|
const resourceParams = {
|
|
556
534
|
body: {
|
|
@@ -631,4 +609,4 @@ withDefaultLuvio((luvio) => {
|
|
|
631
609
|
});
|
|
632
610
|
|
|
633
611
|
export { createInvoicesBatchScheduler, createPaymentsBatchScheduler };
|
|
634
|
-
// version: 1.213.
|
|
612
|
+
// version: 1.213.1-79de10fe1
|