@salesforce/lds-adapters-revenue-billing-batch 1.215.0 → 1.216.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/dist/es/es2018/revenue-billing-batch.js +9 -20
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/createInvoicesBatchScheduler.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/createPaymentsBatchScheduler.d.ts +1 -1
- package/package.json +1 -1
- package/sfdc/index.js +10 -21
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$2 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -41,10 +41,13 @@ 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) {
|
|
44
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
45
45
|
return {
|
|
46
46
|
name,
|
|
47
47
|
required,
|
|
48
|
+
resourceType,
|
|
49
|
+
typeCheckShape,
|
|
50
|
+
isArrayShape,
|
|
48
51
|
coerceFn,
|
|
49
52
|
};
|
|
50
53
|
}
|
|
@@ -271,17 +274,10 @@ function createResourceRequest$1(config) {
|
|
|
271
274
|
|
|
272
275
|
const adapterName$1 = 'createPaymentsBatchScheduler';
|
|
273
276
|
const createPaymentsBatchScheduler_ConfigPropertyMetadata = [
|
|
274
|
-
generateParamConfigMetadata('PaymentsBatchSchedulerInput', true),
|
|
277
|
+
generateParamConfigMetadata('PaymentsBatchSchedulerInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
275
278
|
];
|
|
276
279
|
const createPaymentsBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createPaymentsBatchScheduler_ConfigPropertyMetadata);
|
|
277
|
-
|
|
278
|
-
const resourceParams = {
|
|
279
|
-
body: {
|
|
280
|
-
PaymentsBatchSchedulerInput: config.PaymentsBatchSchedulerInput
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
return resourceParams;
|
|
284
|
-
}
|
|
280
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(createPaymentsBatchScheduler_ConfigPropertyMetadata);
|
|
285
281
|
function typeCheckConfig$1(untrustedConfig) {
|
|
286
282
|
const config = {};
|
|
287
283
|
const untrustedConfig_PaymentsBatchSchedulerInput = untrustedConfig.PaymentsBatchSchedulerInput;
|
|
@@ -517,17 +513,10 @@ function createResourceRequest(config) {
|
|
|
517
513
|
|
|
518
514
|
const adapterName = 'createInvoicesBatchScheduler';
|
|
519
515
|
const createInvoicesBatchScheduler_ConfigPropertyMetadata = [
|
|
520
|
-
generateParamConfigMetadata('BatchInvoiceSchedulerInput', true),
|
|
516
|
+
generateParamConfigMetadata('BatchInvoiceSchedulerInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
521
517
|
];
|
|
522
518
|
const createInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, createInvoicesBatchScheduler_ConfigPropertyMetadata);
|
|
523
|
-
|
|
524
|
-
const resourceParams = {
|
|
525
|
-
body: {
|
|
526
|
-
BatchInvoiceSchedulerInput: config.BatchInvoiceSchedulerInput
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
|
-
return resourceParams;
|
|
530
|
-
}
|
|
519
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$2(createInvoicesBatchScheduler_ConfigPropertyMetadata);
|
|
531
520
|
function typeCheckConfig(untrustedConfig) {
|
|
532
521
|
const config = {};
|
|
533
522
|
const untrustedConfig_BatchInvoiceSchedulerInput = untrustedConfig.BatchInvoiceSchedulerInput;
|
|
@@ -57,6 +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;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
61
|
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
62
62
|
export declare const keyPrefix = "BillingBatch";
|
|
@@ -9,7 +9,7 @@ export declare const createInvoicesBatchScheduler_ConfigPropertyNames: adapter$4
|
|
|
9
9
|
export interface CreateInvoicesBatchSchedulerConfig {
|
|
10
10
|
BatchInvoiceSchedulerInput: types_BatchInvoiceSchedulerInputRepresentation_BatchInvoiceSchedulerInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: CreateInvoicesBatchSchedulerConfig) => resources_postCommerceInvoicingInvoiceSchedulers_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateInvoicesBatchSchedulerConfig>): adapter$45$utils_Untrusted<CreateInvoicesBatchSchedulerConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateInvoicesBatchSchedulerConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateInvoicesBatchSchedulerConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_InvoicesBatchSchedulerOutputRepresentation_InvoicesBatchSchedulerOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_InvoicesBatchSchedulerOutputRepresentation_InvoicesBatchSchedulerOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_InvoicesBatchSchedulerOutputRepresentation_InvoicesBatchSchedulerOutputRepresentation, any>>;
|
|
@@ -9,7 +9,7 @@ export declare const createPaymentsBatchScheduler_ConfigPropertyNames: adapter$4
|
|
|
9
9
|
export interface CreatePaymentsBatchSchedulerConfig {
|
|
10
10
|
PaymentsBatchSchedulerInput: types_PaymentsBatchSchedulerInputRepresentation_PaymentsBatchSchedulerInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: CreatePaymentsBatchSchedulerConfig) => resources_postCommercePaymentsPaymentSchedulers_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreatePaymentsBatchSchedulerConfig>): adapter$45$utils_Untrusted<CreatePaymentsBatchSchedulerConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreatePaymentsBatchSchedulerConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreatePaymentsBatchSchedulerConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_PaymentsBatchSchedulerOutputRepresentation_PaymentsBatchSchedulerOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_PaymentsBatchSchedulerOutputRepresentation_PaymentsBatchSchedulerOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_PaymentsBatchSchedulerOutputRepresentation_PaymentsBatchSchedulerOutputRepresentation, any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-revenue-billing-batch",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.216.0",
|
|
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, ingestShape, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
|
|
16
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$2 } from 'force/luvioEngine';
|
|
17
17
|
|
|
18
18
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
19
19
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -50,10 +50,13 @@ 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) {
|
|
53
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
54
54
|
return {
|
|
55
55
|
name,
|
|
56
56
|
required,
|
|
57
|
+
resourceType,
|
|
58
|
+
typeCheckShape,
|
|
59
|
+
isArrayShape,
|
|
57
60
|
coerceFn,
|
|
58
61
|
};
|
|
59
62
|
}
|
|
@@ -276,17 +279,10 @@ function createResourceRequest$1(config) {
|
|
|
276
279
|
|
|
277
280
|
const adapterName$1 = 'createInvoicesBatchScheduler';
|
|
278
281
|
const createInvoicesBatchScheduler_ConfigPropertyMetadata = [
|
|
279
|
-
generateParamConfigMetadata('BatchInvoiceSchedulerInput', true),
|
|
282
|
+
generateParamConfigMetadata('BatchInvoiceSchedulerInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
280
283
|
];
|
|
281
284
|
const createInvoicesBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createInvoicesBatchScheduler_ConfigPropertyMetadata);
|
|
282
|
-
|
|
283
|
-
const resourceParams = {
|
|
284
|
-
body: {
|
|
285
|
-
BatchInvoiceSchedulerInput: config.BatchInvoiceSchedulerInput
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
return resourceParams;
|
|
289
|
-
}
|
|
285
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(createInvoicesBatchScheduler_ConfigPropertyMetadata);
|
|
290
286
|
function typeCheckConfig$1(untrustedConfig) {
|
|
291
287
|
const config = {};
|
|
292
288
|
const untrustedConfig_BatchInvoiceSchedulerInput = untrustedConfig.BatchInvoiceSchedulerInput;
|
|
@@ -526,17 +522,10 @@ function createResourceRequest(config) {
|
|
|
526
522
|
|
|
527
523
|
const adapterName = 'createPaymentsBatchScheduler';
|
|
528
524
|
const createPaymentsBatchScheduler_ConfigPropertyMetadata = [
|
|
529
|
-
generateParamConfigMetadata('PaymentsBatchSchedulerInput', true),
|
|
525
|
+
generateParamConfigMetadata('PaymentsBatchSchedulerInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
530
526
|
];
|
|
531
527
|
const createPaymentsBatchScheduler_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, createPaymentsBatchScheduler_ConfigPropertyMetadata);
|
|
532
|
-
|
|
533
|
-
const resourceParams = {
|
|
534
|
-
body: {
|
|
535
|
-
PaymentsBatchSchedulerInput: config.PaymentsBatchSchedulerInput
|
|
536
|
-
}
|
|
537
|
-
};
|
|
538
|
-
return resourceParams;
|
|
539
|
-
}
|
|
528
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$2(createPaymentsBatchScheduler_ConfigPropertyMetadata);
|
|
540
529
|
function typeCheckConfig(untrustedConfig) {
|
|
541
530
|
const config = {};
|
|
542
531
|
const untrustedConfig_PaymentsBatchSchedulerInput = untrustedConfig.PaymentsBatchSchedulerInput;
|
|
@@ -609,4 +598,4 @@ withDefaultLuvio((luvio) => {
|
|
|
609
598
|
});
|
|
610
599
|
|
|
611
600
|
export { createInvoicesBatchScheduler, createPaymentsBatchScheduler };
|
|
612
|
-
// version: 1.
|
|
601
|
+
// version: 1.216.0-1d57d45fe
|