@chrt-inc/typescript-sdk 1.894.0 → 1.897.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.894.0",
62
- "User-Agent": "@chrt-inc/typescript-sdk/1.894.0",
61
+ "X-Fern-SDK-Version": "1.897.0",
62
+ "User-Agent": "@chrt-inc/typescript-sdk/1.897.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
  * })
@@ -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
  * })
@@ -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
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type InvoiceLineItemTypeEnum1 = "base_rate" | "additional_mileage" | "long_distance_mileage" | "fuel" | "extra_stop" | "wait_time" | "attempt" | "pick_and_hold" | "parking" | "tolls" | "additional_fee" | "dispute" | "equipment" | "dangerous_goods" | "special_vehicle" | "after_hours" | "weekend" | "holiday" | "flight_cargo_booking" | "insurance" | "off_network_carrier" | "obc_day_rate" | "flight_ticket" | "tracking_device_label" | "tracking_device_tag" | "tracking_device_other" | "other";
4
+ export type InvoiceLineItemTypeEnum1 = "base_rate" | "additional_mileage" | "long_distance_mileage" | "fuel" | "extra_stop" | "wait_time" | "attempt" | "pick_and_hold" | "parking" | "tolls" | "additional_fee" | "dispute" | "equipment" | "dangerous_goods" | "special_vehicle" | "after_hours" | "weekend" | "holiday" | "air_waybill" | "insurance" | "off_network_carrier" | "obc_day_rate" | "flight_ticket" | "tracking_device_label" | "tracking_device_tag" | "tracking_device_other" | "other";
5
5
  export declare const InvoiceLineItemTypeEnum1: {
6
6
  readonly BaseRate: "base_rate";
7
7
  readonly AdditionalMileage: "additional_mileage";
@@ -21,7 +21,7 @@ export declare const InvoiceLineItemTypeEnum1: {
21
21
  readonly AfterHours: "after_hours";
22
22
  readonly Weekend: "weekend";
23
23
  readonly Holiday: "holiday";
24
- readonly FlightCargoBooking: "flight_cargo_booking";
24
+ readonly AirWaybill: "air_waybill";
25
25
  readonly Insurance: "insurance";
26
26
  readonly OffNetworkCarrier: "off_network_carrier";
27
27
  readonly ObcDayRate: "obc_day_rate";
@@ -23,7 +23,7 @@ exports.InvoiceLineItemTypeEnum1 = {
23
23
  AfterHours: "after_hours",
24
24
  Weekend: "weekend",
25
25
  Holiday: "holiday",
26
- FlightCargoBooking: "flight_cargo_booking",
26
+ AirWaybill: "air_waybill",
27
27
  Insurance: "insurance",
28
28
  OffNetworkCarrier: "off_network_carrier",
29
29
  ObcDayRate: "obc_day_rate",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.894.0";
1
+ export declare const SDK_VERSION = "1.897.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.894.0";
4
+ exports.SDK_VERSION = "1.897.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.894.0",
26
- "User-Agent": "@chrt-inc/typescript-sdk/1.894.0",
25
+ "X-Fern-SDK-Version": "1.897.0",
26
+ "User-Agent": "@chrt-inc/typescript-sdk/1.897.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
  * })
@@ -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
  * })
@@ -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
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type InvoiceLineItemTypeEnum1 = "base_rate" | "additional_mileage" | "long_distance_mileage" | "fuel" | "extra_stop" | "wait_time" | "attempt" | "pick_and_hold" | "parking" | "tolls" | "additional_fee" | "dispute" | "equipment" | "dangerous_goods" | "special_vehicle" | "after_hours" | "weekend" | "holiday" | "flight_cargo_booking" | "insurance" | "off_network_carrier" | "obc_day_rate" | "flight_ticket" | "tracking_device_label" | "tracking_device_tag" | "tracking_device_other" | "other";
4
+ export type InvoiceLineItemTypeEnum1 = "base_rate" | "additional_mileage" | "long_distance_mileage" | "fuel" | "extra_stop" | "wait_time" | "attempt" | "pick_and_hold" | "parking" | "tolls" | "additional_fee" | "dispute" | "equipment" | "dangerous_goods" | "special_vehicle" | "after_hours" | "weekend" | "holiday" | "air_waybill" | "insurance" | "off_network_carrier" | "obc_day_rate" | "flight_ticket" | "tracking_device_label" | "tracking_device_tag" | "tracking_device_other" | "other";
5
5
  export declare const InvoiceLineItemTypeEnum1: {
6
6
  readonly BaseRate: "base_rate";
7
7
  readonly AdditionalMileage: "additional_mileage";
@@ -21,7 +21,7 @@ export declare const InvoiceLineItemTypeEnum1: {
21
21
  readonly AfterHours: "after_hours";
22
22
  readonly Weekend: "weekend";
23
23
  readonly Holiday: "holiday";
24
- readonly FlightCargoBooking: "flight_cargo_booking";
24
+ readonly AirWaybill: "air_waybill";
25
25
  readonly Insurance: "insurance";
26
26
  readonly OffNetworkCarrier: "off_network_carrier";
27
27
  readonly ObcDayRate: "obc_day_rate";
@@ -20,7 +20,7 @@ export const InvoiceLineItemTypeEnum1 = {
20
20
  AfterHours: "after_hours",
21
21
  Weekend: "weekend",
22
22
  Holiday: "holiday",
23
- FlightCargoBooking: "flight_cargo_booking",
23
+ AirWaybill: "air_waybill",
24
24
  Insurance: "insurance",
25
25
  OffNetworkCarrier: "off_network_carrier",
26
26
  ObcDayRate: "obc_day_rate",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.894.0";
1
+ export declare const SDK_VERSION = "1.897.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.894.0";
1
+ export const SDK_VERSION = "1.897.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.894.0",
3
+ "version": "1.897.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
  });