@chrt-inc/typescript-sdk 1.892.0 → 1.894.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/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +1 -3
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +1 -3
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.ts +4 -4
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.ts +3 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +1 -3
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +1 -3
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.mts +4 -4
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromLineItemsReq.d.mts +3 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +0 -2
package/dist/cjs/Client.js
CHANGED
|
@@ -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.
|
|
62
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
61
|
+
"X-Fern-SDK-Version": "1.894.0",
|
|
62
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.894.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) });
|
|
@@ -75,8 +75,7 @@ export declare class InvoiceLineItems {
|
|
|
75
75
|
* currency_code: "USD",
|
|
76
76
|
* description: "description",
|
|
77
77
|
* invoice_type: "accounts_receivable",
|
|
78
|
-
* line_item_type: "base_rate"
|
|
79
|
-
* org_id: "org_id"
|
|
78
|
+
* line_item_type: "base_rate"
|
|
80
79
|
* })
|
|
81
80
|
*/
|
|
82
81
|
createFromAmountV1(request: Chrt.billingNew.CreateInvoiceLineItemsFromAmountReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.CreateInvoiceLineItemsFromAmountRes>;
|
|
@@ -98,7 +97,6 @@ export declare class InvoiceLineItems {
|
|
|
98
97
|
* },
|
|
99
98
|
* invoice_type: "accounts_receivable",
|
|
100
99
|
* line_item_type: "base_rate",
|
|
101
|
-
* org_id: "org_id",
|
|
102
100
|
* source_invoice_line_items: [{
|
|
103
101
|
* _id: "_id",
|
|
104
102
|
* created_at_timestamp: "2024-01-15T09:30:00Z",
|
|
@@ -198,8 +198,7 @@ class InvoiceLineItems {
|
|
|
198
198
|
* currency_code: "USD",
|
|
199
199
|
* description: "description",
|
|
200
200
|
* invoice_type: "accounts_receivable",
|
|
201
|
-
* line_item_type: "base_rate"
|
|
202
|
-
* org_id: "org_id"
|
|
201
|
+
* line_item_type: "base_rate"
|
|
203
202
|
* })
|
|
204
203
|
*/
|
|
205
204
|
createFromAmountV1(request, requestOptions) {
|
|
@@ -273,7 +272,6 @@ class InvoiceLineItems {
|
|
|
273
272
|
* },
|
|
274
273
|
* invoice_type: "accounts_receivable",
|
|
275
274
|
* line_item_type: "base_rate",
|
|
276
|
-
* org_id: "org_id",
|
|
277
275
|
* source_invoice_line_items: [{
|
|
278
276
|
* _id: "_id",
|
|
279
277
|
* created_at_timestamp: "2024-01-15T09:30:00Z",
|
|
@@ -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
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.894.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -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.
|
|
26
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
25
|
+
"X-Fern-SDK-Version": "1.894.0",
|
|
26
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.894.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) });
|
|
@@ -75,8 +75,7 @@ export declare class InvoiceLineItems {
|
|
|
75
75
|
* currency_code: "USD",
|
|
76
76
|
* description: "description",
|
|
77
77
|
* invoice_type: "accounts_receivable",
|
|
78
|
-
* line_item_type: "base_rate"
|
|
79
|
-
* org_id: "org_id"
|
|
78
|
+
* line_item_type: "base_rate"
|
|
80
79
|
* })
|
|
81
80
|
*/
|
|
82
81
|
createFromAmountV1(request: Chrt.billingNew.CreateInvoiceLineItemsFromAmountReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.CreateInvoiceLineItemsFromAmountRes>;
|
|
@@ -98,7 +97,6 @@ export declare class InvoiceLineItems {
|
|
|
98
97
|
* },
|
|
99
98
|
* invoice_type: "accounts_receivable",
|
|
100
99
|
* line_item_type: "base_rate",
|
|
101
|
-
* org_id: "org_id",
|
|
102
100
|
* source_invoice_line_items: [{
|
|
103
101
|
* _id: "_id",
|
|
104
102
|
* created_at_timestamp: "2024-01-15T09:30:00Z",
|
|
@@ -162,8 +162,7 @@ export class InvoiceLineItems {
|
|
|
162
162
|
* currency_code: "USD",
|
|
163
163
|
* description: "description",
|
|
164
164
|
* invoice_type: "accounts_receivable",
|
|
165
|
-
* line_item_type: "base_rate"
|
|
166
|
-
* org_id: "org_id"
|
|
165
|
+
* line_item_type: "base_rate"
|
|
167
166
|
* })
|
|
168
167
|
*/
|
|
169
168
|
createFromAmountV1(request, requestOptions) {
|
|
@@ -237,7 +236,6 @@ export class InvoiceLineItems {
|
|
|
237
236
|
* },
|
|
238
237
|
* invoice_type: "accounts_receivable",
|
|
239
238
|
* line_item_type: "base_rate",
|
|
240
|
-
* org_id: "org_id",
|
|
241
239
|
* source_invoice_line_items: [{
|
|
242
240
|
* _id: "_id",
|
|
243
241
|
* created_at_timestamp: "2024-01-15T09:30:00Z",
|
|
@@ -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
|
}
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.894.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.894.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -6468,7 +6468,6 @@ await client.billingNew.invoiceLineItems.createFromAmountV1({
|
|
|
6468
6468
|
description: "description",
|
|
6469
6469
|
invoice_type: "accounts_receivable",
|
|
6470
6470
|
line_item_type: "base_rate",
|
|
6471
|
-
org_id: "org_id",
|
|
6472
6471
|
});
|
|
6473
6472
|
```
|
|
6474
6473
|
|
|
@@ -6540,7 +6539,6 @@ await client.billingNew.invoiceLineItems.createFromLineItemsV1({
|
|
|
6540
6539
|
},
|
|
6541
6540
|
invoice_type: "accounts_receivable",
|
|
6542
6541
|
line_item_type: "base_rate",
|
|
6543
|
-
org_id: "org_id",
|
|
6544
6542
|
source_invoice_line_items: [
|
|
6545
6543
|
{
|
|
6546
6544
|
_id: "_id",
|