@chrt-inc/typescript-sdk 1.892.0 → 1.895.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.
@@ -58,8 +58,8 @@ class ChrtClient {
58
58
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
59
59
  "X-Fern-Language": "JavaScript",
60
60
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
61
- "X-Fern-SDK-Version": "1.892.0",
62
- "User-Agent": "@chrt-inc/typescript-sdk/1.892.0",
61
+ "X-Fern-SDK-Version": "1.895.0",
62
+ "User-Agent": "@chrt-inc/typescript-sdk/1.895.0",
63
63
  "X-Fern-Runtime": core.RUNTIME.type,
64
64
  "X-Fern-Runtime-Version": core.RUNTIME.version,
65
65
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -41,7 +41,6 @@ export declare class InvoiceLineItems {
41
41
  * @example
42
42
  * await client.billingNew.invoiceLineItems.applyChrtGroundProviderRatesV1({
43
43
  * invoice_type: "accounts_receivable",
44
- * org_id: "org_id",
45
44
  * rate_sheet_id: "rate_sheet_id",
46
45
  * task_group_id: "task_group_id"
47
46
  * })
@@ -75,8 +74,7 @@ export declare class InvoiceLineItems {
75
74
  * currency_code: "USD",
76
75
  * description: "description",
77
76
  * invoice_type: "accounts_receivable",
78
- * line_item_type: "base_rate",
79
- * org_id: "org_id"
77
+ * line_item_type: "base_rate"
80
78
  * })
81
79
  */
82
80
  createFromAmountV1(request: Chrt.billingNew.CreateInvoiceLineItemsFromAmountReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.CreateInvoiceLineItemsFromAmountRes>;
@@ -98,7 +96,6 @@ export declare class InvoiceLineItems {
98
96
  * },
99
97
  * invoice_type: "accounts_receivable",
100
98
  * line_item_type: "base_rate",
101
- * org_id: "org_id",
102
99
  * source_invoice_line_items: [{
103
100
  * _id: "_id",
104
101
  * created_at_timestamp: "2024-01-15T09:30:00Z",
@@ -66,7 +66,6 @@ class InvoiceLineItems {
66
66
  * @example
67
67
  * await client.billingNew.invoiceLineItems.applyChrtGroundProviderRatesV1({
68
68
  * invoice_type: "accounts_receivable",
69
- * org_id: "org_id",
70
69
  * rate_sheet_id: "rate_sheet_id",
71
70
  * task_group_id: "task_group_id"
72
71
  * })
@@ -198,8 +197,7 @@ class InvoiceLineItems {
198
197
  * currency_code: "USD",
199
198
  * description: "description",
200
199
  * invoice_type: "accounts_receivable",
201
- * line_item_type: "base_rate",
202
- * org_id: "org_id"
200
+ * line_item_type: "base_rate"
203
201
  * })
204
202
  */
205
203
  createFromAmountV1(request, requestOptions) {
@@ -273,7 +271,6 @@ class InvoiceLineItems {
273
271
  * },
274
272
  * invoice_type: "accounts_receivable",
275
273
  * line_item_type: "base_rate",
276
- * org_id: "org_id",
277
274
  * source_invoice_line_items: [{
278
275
  * _id: "_id",
279
276
  * created_at_timestamp: "2024-01-15T09:30:00Z",
@@ -6,17 +6,17 @@ import * as Chrt from "../../../../../../index.js";
6
6
  * @example
7
7
  * {
8
8
  * invoice_type: "accounts_receivable",
9
- * org_id: "org_id",
10
9
  * rate_sheet_id: "rate_sheet_id",
11
10
  * task_group_id: "task_group_id"
12
11
  * }
13
12
  */
14
13
  export interface ApplyChrtGroundProviderRatesReq {
15
14
  account_id?: string | null;
15
+ counterparty_off_chrt_org_data_id?: string | null;
16
+ /** Must be a string starting with `org_` */
17
+ counterparty_org_id?: string | null;
16
18
  invoice_id?: string | null;
17
19
  invoice_type: Chrt.InvoiceTypeEnum1;
18
- /** Must be a string starting with `org_` */
19
- org_id: string;
20
20
  rate_sheet_id: string;
21
21
  task_group_id: string;
22
22
  }
@@ -9,20 +9,20 @@ import * as Chrt from "../../../../../../index.js";
9
9
  * currency_code: "USD",
10
10
  * description: "description",
11
11
  * invoice_type: "accounts_receivable",
12
- * line_item_type: "base_rate",
13
- * org_id: "org_id"
12
+ * line_item_type: "base_rate"
14
13
  * }
15
14
  */
16
15
  export interface CreateInvoiceLineItemsFromAmountReq {
17
16
  account_ids?: string[];
18
17
  amount: number;
18
+ counterparty_off_chrt_org_data_id?: string | null;
19
+ /** Must be a string starting with `org_` */
20
+ counterparty_org_id?: string | null;
19
21
  currency_code: Chrt.BillingCurrencyCodeEnum1;
20
22
  description: string;
21
23
  invoice_id?: string | null;
22
24
  invoice_type: Chrt.InvoiceTypeEnum1;
23
25
  line_item_type: Chrt.InvoiceLineItemTypeEnum1;
24
26
  order_id?: string | null;
25
- /** Must be a string starting with `org_` */
26
- org_id: string;
27
27
  task_group_id?: string | null;
28
28
  }
@@ -12,7 +12,6 @@ import * as Chrt from "../../../../../../index.js";
12
12
  * },
13
13
  * invoice_type: "accounts_receivable",
14
14
  * line_item_type: "base_rate",
15
- * org_id: "org_id",
16
15
  * source_invoice_line_items: [{
17
16
  * _id: "_id",
18
17
  * created_at_timestamp: "2024-01-15T09:30:00Z",
@@ -32,14 +31,15 @@ import * as Chrt from "../../../../../../index.js";
32
31
  */
33
32
  export interface CreateInvoiceLineItemsFromLineItemsReq {
34
33
  account_ids?: string[];
34
+ counterparty_off_chrt_org_data_id?: string | null;
35
+ /** Must be a string starting with `org_` */
36
+ counterparty_org_id?: string | null;
35
37
  description: string;
36
38
  invoice_id?: string | null;
37
39
  invoice_line_item_amount_transformation: Chrt.InvoiceLineItemAmountTransformation1;
38
40
  invoice_type: Chrt.InvoiceTypeEnum1;
39
41
  line_item_type: Chrt.InvoiceLineItemTypeEnum1;
40
42
  order_id?: string | null;
41
- /** Must be a string starting with `org_` */
42
- org_id: string;
43
43
  source_invoice_line_items: Chrt.InvoiceLineItem1[];
44
44
  task_group_id?: string | null;
45
45
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.892.0";
1
+ export declare const SDK_VERSION = "1.895.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.892.0";
4
+ exports.SDK_VERSION = "1.895.0";
@@ -22,8 +22,8 @@ export class ChrtClient {
22
22
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
23
23
  "X-Fern-Language": "JavaScript",
24
24
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
25
- "X-Fern-SDK-Version": "1.892.0",
26
- "User-Agent": "@chrt-inc/typescript-sdk/1.892.0",
25
+ "X-Fern-SDK-Version": "1.895.0",
26
+ "User-Agent": "@chrt-inc/typescript-sdk/1.895.0",
27
27
  "X-Fern-Runtime": core.RUNTIME.type,
28
28
  "X-Fern-Runtime-Version": core.RUNTIME.version,
29
29
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -41,7 +41,6 @@ export declare class InvoiceLineItems {
41
41
  * @example
42
42
  * await client.billingNew.invoiceLineItems.applyChrtGroundProviderRatesV1({
43
43
  * invoice_type: "accounts_receivable",
44
- * org_id: "org_id",
45
44
  * rate_sheet_id: "rate_sheet_id",
46
45
  * task_group_id: "task_group_id"
47
46
  * })
@@ -75,8 +74,7 @@ export declare class InvoiceLineItems {
75
74
  * currency_code: "USD",
76
75
  * description: "description",
77
76
  * invoice_type: "accounts_receivable",
78
- * line_item_type: "base_rate",
79
- * org_id: "org_id"
77
+ * line_item_type: "base_rate"
80
78
  * })
81
79
  */
82
80
  createFromAmountV1(request: Chrt.billingNew.CreateInvoiceLineItemsFromAmountReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.CreateInvoiceLineItemsFromAmountRes>;
@@ -98,7 +96,6 @@ export declare class InvoiceLineItems {
98
96
  * },
99
97
  * invoice_type: "accounts_receivable",
100
98
  * line_item_type: "base_rate",
101
- * org_id: "org_id",
102
99
  * source_invoice_line_items: [{
103
100
  * _id: "_id",
104
101
  * created_at_timestamp: "2024-01-15T09:30:00Z",
@@ -30,7 +30,6 @@ export class InvoiceLineItems {
30
30
  * @example
31
31
  * await client.billingNew.invoiceLineItems.applyChrtGroundProviderRatesV1({
32
32
  * invoice_type: "accounts_receivable",
33
- * org_id: "org_id",
34
33
  * rate_sheet_id: "rate_sheet_id",
35
34
  * task_group_id: "task_group_id"
36
35
  * })
@@ -162,8 +161,7 @@ export class InvoiceLineItems {
162
161
  * currency_code: "USD",
163
162
  * description: "description",
164
163
  * invoice_type: "accounts_receivable",
165
- * line_item_type: "base_rate",
166
- * org_id: "org_id"
164
+ * line_item_type: "base_rate"
167
165
  * })
168
166
  */
169
167
  createFromAmountV1(request, requestOptions) {
@@ -237,7 +235,6 @@ export class InvoiceLineItems {
237
235
  * },
238
236
  * invoice_type: "accounts_receivable",
239
237
  * line_item_type: "base_rate",
240
- * org_id: "org_id",
241
238
  * source_invoice_line_items: [{
242
239
  * _id: "_id",
243
240
  * created_at_timestamp: "2024-01-15T09:30:00Z",
@@ -6,17 +6,17 @@ import * as Chrt from "../../../../../../index.mjs";
6
6
  * @example
7
7
  * {
8
8
  * invoice_type: "accounts_receivable",
9
- * org_id: "org_id",
10
9
  * rate_sheet_id: "rate_sheet_id",
11
10
  * task_group_id: "task_group_id"
12
11
  * }
13
12
  */
14
13
  export interface ApplyChrtGroundProviderRatesReq {
15
14
  account_id?: string | null;
15
+ counterparty_off_chrt_org_data_id?: string | null;
16
+ /** Must be a string starting with `org_` */
17
+ counterparty_org_id?: string | null;
16
18
  invoice_id?: string | null;
17
19
  invoice_type: Chrt.InvoiceTypeEnum1;
18
- /** Must be a string starting with `org_` */
19
- org_id: string;
20
20
  rate_sheet_id: string;
21
21
  task_group_id: string;
22
22
  }
@@ -9,20 +9,20 @@ import * as Chrt from "../../../../../../index.mjs";
9
9
  * currency_code: "USD",
10
10
  * description: "description",
11
11
  * invoice_type: "accounts_receivable",
12
- * line_item_type: "base_rate",
13
- * org_id: "org_id"
12
+ * line_item_type: "base_rate"
14
13
  * }
15
14
  */
16
15
  export interface CreateInvoiceLineItemsFromAmountReq {
17
16
  account_ids?: string[];
18
17
  amount: number;
18
+ counterparty_off_chrt_org_data_id?: string | null;
19
+ /** Must be a string starting with `org_` */
20
+ counterparty_org_id?: string | null;
19
21
  currency_code: Chrt.BillingCurrencyCodeEnum1;
20
22
  description: string;
21
23
  invoice_id?: string | null;
22
24
  invoice_type: Chrt.InvoiceTypeEnum1;
23
25
  line_item_type: Chrt.InvoiceLineItemTypeEnum1;
24
26
  order_id?: string | null;
25
- /** Must be a string starting with `org_` */
26
- org_id: string;
27
27
  task_group_id?: string | null;
28
28
  }
@@ -12,7 +12,6 @@ import * as Chrt from "../../../../../../index.mjs";
12
12
  * },
13
13
  * invoice_type: "accounts_receivable",
14
14
  * line_item_type: "base_rate",
15
- * org_id: "org_id",
16
15
  * source_invoice_line_items: [{
17
16
  * _id: "_id",
18
17
  * created_at_timestamp: "2024-01-15T09:30:00Z",
@@ -32,14 +31,15 @@ import * as Chrt from "../../../../../../index.mjs";
32
31
  */
33
32
  export interface CreateInvoiceLineItemsFromLineItemsReq {
34
33
  account_ids?: string[];
34
+ counterparty_off_chrt_org_data_id?: string | null;
35
+ /** Must be a string starting with `org_` */
36
+ counterparty_org_id?: string | null;
35
37
  description: string;
36
38
  invoice_id?: string | null;
37
39
  invoice_line_item_amount_transformation: Chrt.InvoiceLineItemAmountTransformation1;
38
40
  invoice_type: Chrt.InvoiceTypeEnum1;
39
41
  line_item_type: Chrt.InvoiceLineItemTypeEnum1;
40
42
  order_id?: string | null;
41
- /** Must be a string starting with `org_` */
42
- org_id: string;
43
43
  source_invoice_line_items: Chrt.InvoiceLineItem1[];
44
44
  task_group_id?: string | null;
45
45
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.892.0";
1
+ export declare const SDK_VERSION = "1.895.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.892.0";
1
+ export const SDK_VERSION = "1.895.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.892.0",
3
+ "version": "1.895.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -6333,7 +6333,6 @@ Applies a caller-owned CHRT-ground rate sheet to a TaskGroup and atomically crea
6333
6333
  ```typescript
6334
6334
  await client.billingNew.invoiceLineItems.applyChrtGroundProviderRatesV1({
6335
6335
  invoice_type: "accounts_receivable",
6336
- org_id: "org_id",
6337
6336
  rate_sheet_id: "rate_sheet_id",
6338
6337
  task_group_id: "task_group_id",
6339
6338
  });
@@ -6468,7 +6467,6 @@ await client.billingNew.invoiceLineItems.createFromAmountV1({
6468
6467
  description: "description",
6469
6468
  invoice_type: "accounts_receivable",
6470
6469
  line_item_type: "base_rate",
6471
- org_id: "org_id",
6472
6470
  });
6473
6471
  ```
6474
6472
 
@@ -6540,7 +6538,6 @@ await client.billingNew.invoiceLineItems.createFromLineItemsV1({
6540
6538
  },
6541
6539
  invoice_type: "accounts_receivable",
6542
6540
  line_item_type: "base_rate",
6543
- org_id: "org_id",
6544
6541
  source_invoice_line_items: [
6545
6542
  {
6546
6543
  _id: "_id",