@salesforce/lds-adapters-revenue-billing-batch 1.297.0 → 1.298.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.
@@ -1052,7 +1052,7 @@ function createResourceRequest(config) {
1052
1052
  const headers = {};
1053
1053
  return {
1054
1054
  baseUri: '/services/data/v62.0',
1055
- basePath: '/commerce/billing/invoices/invoice-batch-docgen/' + config.urlParams.invoiceBatchRunId + '/actions/run',
1055
+ basePath: '/commerce/billing/invoices/invoice-batch-docgen/' + config.urlParams.invoiceBatchRunId + '/actions/' + config.urlParams.actionName + '',
1056
1056
  method: 'post',
1057
1057
  body: null,
1058
1058
  urlParams: config.urlParams,
@@ -1065,6 +1065,7 @@ function createResourceRequest(config) {
1065
1065
  const adapterName = 'postBatchInvoiceDocGen';
1066
1066
  const postBatchInvoiceDocGen_ConfigPropertyMetadata = [
1067
1067
  generateParamConfigMetadata('invoiceBatchRunId', true, 0 /* UrlParameter */, 0 /* String */),
1068
+ generateParamConfigMetadata('actionName', true, 0 /* UrlParameter */, 0 /* String */),
1068
1069
  ];
1069
1070
  const postBatchInvoiceDocGen_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postBatchInvoiceDocGen_ConfigPropertyMetadata);
1070
1071
  const createResourceParams = /*#__PURE__*/ createResourceParams$4(postBatchInvoiceDocGen_ConfigPropertyMetadata);
@@ -1,14 +1,15 @@
1
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
2
  import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
- import { ResourceRequestConfig as resources_postCommerceBillingInvoicesInvoiceBatchDocgenActionsRunByInvoiceBatchRunId_ResourceRequestConfig } from '../resources/postCommerceBillingInvoicesInvoiceBatchDocgenActionsRunByInvoiceBatchRunId';
3
+ import { ResourceRequestConfig as resources_postCommerceBillingInvoicesInvoiceBatchDocgenActionsByInvoiceBatchRunIdAndActionName_ResourceRequestConfig } from '../resources/postCommerceBillingInvoicesInvoiceBatchDocgenActionsByInvoiceBatchRunIdAndActionName';
4
4
  import { BatchInvoiceDocGenOutputRepresentation as types_BatchInvoiceDocGenOutputRepresentation_BatchInvoiceDocGenOutputRepresentation } from '../types/BatchInvoiceDocGenOutputRepresentation';
5
5
  export declare const adapterName = "postBatchInvoiceDocGen";
6
6
  export declare const postBatchInvoiceDocGen_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
7
  export declare const postBatchInvoiceDocGen_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
8
  export interface PostBatchInvoiceDocGenConfig {
9
9
  invoiceBatchRunId: string;
10
+ actionName: string;
10
11
  }
11
- export declare const createResourceParams: (config: PostBatchInvoiceDocGenConfig) => resources_postCommerceBillingInvoicesInvoiceBatchDocgenActionsRunByInvoiceBatchRunId_ResourceRequestConfig;
12
+ export declare const createResourceParams: (config: PostBatchInvoiceDocGenConfig) => resources_postCommerceBillingInvoicesInvoiceBatchDocgenActionsByInvoiceBatchRunIdAndActionName_ResourceRequestConfig;
12
13
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PostBatchInvoiceDocGenConfig>): adapter$45$utils_Untrusted<PostBatchInvoiceDocGenConfig>;
13
14
  export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): PostBatchInvoiceDocGenConfig | null;
14
15
  export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: PostBatchInvoiceDocGenConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_BatchInvoiceDocGenOutputRepresentation_BatchInvoiceDocGenOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_BatchInvoiceDocGenOutputRepresentation_BatchInvoiceDocGenOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_BatchInvoiceDocGenOutputRepresentation_BatchInvoiceDocGenOutputRepresentation, any>>;
@@ -3,6 +3,7 @@ import { BatchInvoiceDocGenOutputRepresentation as types_BatchInvoiceDocGenOutpu
3
3
  export interface ResourceRequestConfig {
4
4
  urlParams: {
5
5
  invoiceBatchRunId: string;
6
+ actionName: string;
6
7
  };
7
8
  }
8
9
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-revenue-billing-batch",
3
- "version": "1.297.0",
3
+ "version": "1.298.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",
@@ -40,11 +40,11 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.297.0"
43
+ "@salesforce/lds-bindings": "^1.298.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.297.0",
47
- "@salesforce/lds-karma": "^1.297.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.298.0",
47
+ "@salesforce/lds-karma": "^1.298.0"
48
48
  },
49
49
  "nx": {
50
50
  "targets": {
package/sfdc/index.js CHANGED
@@ -1062,7 +1062,7 @@ function createResourceRequest(config) {
1062
1062
  const headers = {};
1063
1063
  return {
1064
1064
  baseUri: '/services/data/v62.0',
1065
- basePath: '/commerce/billing/invoices/invoice-batch-docgen/' + config.urlParams.invoiceBatchRunId + '/actions/run',
1065
+ basePath: '/commerce/billing/invoices/invoice-batch-docgen/' + config.urlParams.invoiceBatchRunId + '/actions/' + config.urlParams.actionName + '',
1066
1066
  method: 'post',
1067
1067
  body: null,
1068
1068
  urlParams: config.urlParams,
@@ -1075,6 +1075,7 @@ function createResourceRequest(config) {
1075
1075
  const adapterName = 'postBatchInvoiceDocGen';
1076
1076
  const postBatchInvoiceDocGen_ConfigPropertyMetadata = [
1077
1077
  generateParamConfigMetadata('invoiceBatchRunId', true, 0 /* UrlParameter */, 0 /* String */),
1078
+ generateParamConfigMetadata('actionName', true, 0 /* UrlParameter */, 0 /* String */),
1078
1079
  ];
1079
1080
  const postBatchInvoiceDocGen_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postBatchInvoiceDocGen_ConfigPropertyMetadata);
1080
1081
  const createResourceParams = /*#__PURE__*/ createResourceParams$4(postBatchInvoiceDocGen_ConfigPropertyMetadata);
@@ -1165,4 +1166,4 @@ withDefaultLuvio((luvio) => {
1165
1166
  });
1166
1167
 
1167
1168
  export { createInvoicesBatchScheduler, createPaymentsBatchScheduler, postBatchDraftInvoices, postBatchDraftInvoices_imperative, postBatchInvoiceDocGen };
1168
- // version: 1.297.0-e0cfbd880
1169
+ // version: 1.298.0-6f15dc1ec
package/src/raml/api.raml CHANGED
@@ -291,9 +291,9 @@ types:
291
291
  type: string
292
292
  required: true
293
293
 
294
- # TODO Hand-rolled W-14972264
294
+ # TODO Hand-rolled W-14972264 + W-15776899
295
295
  /commerce:
296
- /billing/invoices/invoice-batch-docgen/{invoiceBatchRunId}/actions/run:
296
+ /billing/invoices/invoice-batch-docgen/{invoiceBatchRunId}/actions/{actionName}:
297
297
  post:
298
298
  displayName: postBatchInvoiceDocGen
299
299
  description: Generate batch invoice documents
@@ -307,3 +307,6 @@ types:
307
307
  invoiceBatchRunId:
308
308
  type: string
309
309
  required: true
310
+ actionName:
311
+ type: string
312
+ required: true
@@ -334,7 +334,7 @@ types:
334
334
  name: postBatchDraftInvoices
335
335
 
336
336
  /commerce:
337
- /billing/invoices/invoice-batch-docgen/{invoiceBatchRunId}/actions/run:
337
+ /billing/invoices/invoice-batch-docgen/{invoiceBatchRunId}/actions/{actionName}:
338
338
  post:
339
339
  (luvio.adapter):
340
340
  name: postBatchInvoiceDocGen