@chrt-inc/typescript-sdk 1.1013.0 → 1.1015.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.
Files changed (84) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.d.ts +1 -0
  3. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/Client.d.ts +11 -3
  4. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/Client.js +39 -11
  5. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/CargoOnFlightBookingSearchesGetV1Request.d.ts +29 -0
  6. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/CargoOnFlightBookingSearchesGetV1Request.js +5 -0
  7. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.ts +1 -0
  9. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/requests/OrderTemplateNewCargoClientCreate1.d.ts +1 -0
  10. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/requests/OrderTemplateNewCargoClientUpdate1.d.ts +1 -0
  11. package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/requests/CargoClientUpdate1.d.ts +1 -0
  12. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +13 -0
  13. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +59 -0
  14. package/dist/cjs/api/types/Cargo1.d.ts +1 -0
  15. package/dist/cjs/api/types/CargoClientCreate1.d.ts +1 -0
  16. package/dist/cjs/api/types/CargoOnFlightBooking1.d.ts +1 -0
  17. package/dist/cjs/api/types/CargoOnFlightBookingAircraftBodyTypeEnum1.d.ts +10 -0
  18. package/dist/cjs/api/types/CargoOnFlightBookingAircraftBodyTypeEnum1.js +12 -0
  19. package/dist/cjs/api/types/CargoOnFlightBookingItinerary1.d.ts +2 -0
  20. package/dist/cjs/api/types/CargoOnFlightBookingItineraryLeg1.d.ts +4 -0
  21. package/dist/cjs/api/types/CargoOnFlightBookingRate1.d.ts +7 -0
  22. package/dist/cjs/api/types/CargoOnFlightBookingRateCharge1.d.ts +14 -0
  23. package/dist/cjs/api/types/CargoOnFlightBookingRateCharge1.js +5 -0
  24. package/dist/cjs/api/types/CargoOnFlightBookingSearch1.d.ts +1 -0
  25. package/dist/cjs/api/types/CargoOnFlightBookingSearchResult1.d.ts +5 -0
  26. package/dist/cjs/api/types/CargoOnFlightBookingSearchResultSortByEnum.d.ts +9 -0
  27. package/dist/cjs/api/types/CargoOnFlightBookingSearchResultSortByEnum.js +11 -0
  28. package/dist/cjs/api/types/CargoOnFlightTaskActionEnum1.d.ts +3 -1
  29. package/dist/cjs/api/types/CargoOnFlightTaskActionEnum1.js +2 -0
  30. package/dist/cjs/api/types/OrderEventActionEnum1.d.ts +11 -1
  31. package/dist/cjs/api/types/OrderEventActionEnum1.js +10 -0
  32. package/dist/cjs/api/types/OrderEventEntity1.d.ts +2 -0
  33. package/dist/cjs/api/types/OrderEventSystemActorEnum1.d.ts +2 -1
  34. package/dist/cjs/api/types/OrderEventSystemActorEnum1.js +1 -0
  35. package/dist/cjs/api/types/OrderTemplateNewCargo1.d.ts +1 -0
  36. package/dist/cjs/api/types/SpecialHandlingCodeEnum1.d.ts +100 -0
  37. package/dist/cjs/api/types/SpecialHandlingCodeEnum1.js +102 -0
  38. package/dist/cjs/api/types/index.d.ts +4 -0
  39. package/dist/cjs/api/types/index.js +4 -0
  40. package/dist/cjs/version.d.ts +1 -1
  41. package/dist/cjs/version.js +1 -1
  42. package/dist/esm/Client.mjs +2 -2
  43. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.d.mts +1 -0
  44. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/Client.d.mts +11 -3
  45. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/Client.mjs +39 -11
  46. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/CargoOnFlightBookingSearchesGetV1Request.d.mts +29 -0
  47. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/CargoOnFlightBookingSearchesGetV1Request.mjs +4 -0
  48. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookingSearches/client/requests/index.d.mts +1 -0
  49. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.mts +1 -0
  50. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/requests/OrderTemplateNewCargoClientCreate1.d.mts +1 -0
  51. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/requests/OrderTemplateNewCargoClientUpdate1.d.mts +1 -0
  52. package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/requests/CargoClientUpdate1.d.mts +1 -0
  53. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +13 -0
  54. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +59 -0
  55. package/dist/esm/api/types/Cargo1.d.mts +1 -0
  56. package/dist/esm/api/types/CargoClientCreate1.d.mts +1 -0
  57. package/dist/esm/api/types/CargoOnFlightBooking1.d.mts +1 -0
  58. package/dist/esm/api/types/CargoOnFlightBookingAircraftBodyTypeEnum1.d.mts +10 -0
  59. package/dist/esm/api/types/CargoOnFlightBookingAircraftBodyTypeEnum1.mjs +9 -0
  60. package/dist/esm/api/types/CargoOnFlightBookingItinerary1.d.mts +2 -0
  61. package/dist/esm/api/types/CargoOnFlightBookingItineraryLeg1.d.mts +4 -0
  62. package/dist/esm/api/types/CargoOnFlightBookingRate1.d.mts +7 -0
  63. package/dist/esm/api/types/CargoOnFlightBookingRateCharge1.d.mts +14 -0
  64. package/dist/esm/api/types/CargoOnFlightBookingRateCharge1.mjs +4 -0
  65. package/dist/esm/api/types/CargoOnFlightBookingSearch1.d.mts +1 -0
  66. package/dist/esm/api/types/CargoOnFlightBookingSearchResult1.d.mts +5 -0
  67. package/dist/esm/api/types/CargoOnFlightBookingSearchResultSortByEnum.d.mts +9 -0
  68. package/dist/esm/api/types/CargoOnFlightBookingSearchResultSortByEnum.mjs +8 -0
  69. package/dist/esm/api/types/CargoOnFlightTaskActionEnum1.d.mts +3 -1
  70. package/dist/esm/api/types/CargoOnFlightTaskActionEnum1.mjs +2 -0
  71. package/dist/esm/api/types/OrderEventActionEnum1.d.mts +11 -1
  72. package/dist/esm/api/types/OrderEventActionEnum1.mjs +10 -0
  73. package/dist/esm/api/types/OrderEventEntity1.d.mts +2 -0
  74. package/dist/esm/api/types/OrderEventSystemActorEnum1.d.mts +2 -1
  75. package/dist/esm/api/types/OrderEventSystemActorEnum1.mjs +1 -0
  76. package/dist/esm/api/types/OrderTemplateNewCargo1.d.mts +1 -0
  77. package/dist/esm/api/types/SpecialHandlingCodeEnum1.d.mts +100 -0
  78. package/dist/esm/api/types/SpecialHandlingCodeEnum1.mjs +99 -0
  79. package/dist/esm/api/types/index.d.mts +4 -0
  80. package/dist/esm/api/types/index.mjs +4 -0
  81. package/dist/esm/version.d.mts +1 -1
  82. package/dist/esm/version.mjs +1 -1
  83. package/package.json +1 -1
  84. package/reference.md +81 -3
@@ -0,0 +1,100 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type SpecialHandlingCodeEnum1 = "ACT" | "AOG" | "ATT" | "AVI" | "BIG" | "BUP" | "CAO" | "CAT" | "COL" | "COM" | "CRT" | "DIP" | "EAP" | "EAT" | "EAW" | "ECC" | "ECP" | "ELI" | "ELM" | "EMD" | "ERT" | "FIL" | "FRI" | "FRO" | "GOH" | "HEA" | "HEG" | "HUM" | "ICE" | "LHO" | "LIC" | "MAG" | "MAL" | "MUW" | "NSC" | "NWP" | "OBX" | "OHG" | "PAC" | "PEA" | "PEF" | "PEM" | "PEP" | "PER" | "PES" | "PIL" | "PIP" | "QRT" | "RAC" | "RBI" | "RBM" | "RCL" | "RCM" | "RCX" | "RDS" | "REQ" | "REX" | "RFG" | "RFL" | "RFS" | "RFW" | "RGX" | "RIS" | "RLI" | "RLM" | "RMD" | "RNG" | "ROP" | "ROX" | "RPB" | "RPG" | "RRE" | "RRW" | "RRY" | "RSB" | "RSC" | "RXB" | "RXC" | "RXD" | "RXE" | "RXG" | "RXS" | "SCO" | "SHL" | "SHR" | "SPF" | "SPX" | "SUR" | "SWP" | "VAL" | "VOL" | "VUN" | "WET" | "XPS";
5
+ export declare const SpecialHandlingCodeEnum1: {
6
+ readonly Act: "ACT";
7
+ readonly Aog: "AOG";
8
+ readonly Att: "ATT";
9
+ readonly Avi: "AVI";
10
+ readonly Big: "BIG";
11
+ readonly Bup: "BUP";
12
+ readonly Cao: "CAO";
13
+ readonly Cat: "CAT";
14
+ readonly Col: "COL";
15
+ readonly Com: "COM";
16
+ readonly Crt: "CRT";
17
+ readonly Dip: "DIP";
18
+ readonly Eap: "EAP";
19
+ readonly Eat: "EAT";
20
+ readonly Eaw: "EAW";
21
+ readonly Ecc: "ECC";
22
+ readonly Ecp: "ECP";
23
+ readonly Eli: "ELI";
24
+ readonly Elm: "ELM";
25
+ readonly Emd: "EMD";
26
+ readonly Ert: "ERT";
27
+ readonly Fil: "FIL";
28
+ readonly Fri: "FRI";
29
+ readonly Fro: "FRO";
30
+ readonly Goh: "GOH";
31
+ readonly Hea: "HEA";
32
+ readonly Heg: "HEG";
33
+ readonly Hum: "HUM";
34
+ readonly Ice: "ICE";
35
+ readonly Lho: "LHO";
36
+ readonly Lic: "LIC";
37
+ readonly Mag: "MAG";
38
+ readonly Mal: "MAL";
39
+ readonly Muw: "MUW";
40
+ readonly Nsc: "NSC";
41
+ readonly Nwp: "NWP";
42
+ readonly Obx: "OBX";
43
+ readonly Ohg: "OHG";
44
+ readonly Pac: "PAC";
45
+ readonly Pea: "PEA";
46
+ readonly Pef: "PEF";
47
+ readonly Pem: "PEM";
48
+ readonly Pep: "PEP";
49
+ readonly Per: "PER";
50
+ readonly Pes: "PES";
51
+ readonly Pil: "PIL";
52
+ readonly Pip: "PIP";
53
+ readonly Qrt: "QRT";
54
+ readonly Rac: "RAC";
55
+ readonly Rbi: "RBI";
56
+ readonly Rbm: "RBM";
57
+ readonly Rcl: "RCL";
58
+ readonly Rcm: "RCM";
59
+ readonly Rcx: "RCX";
60
+ readonly Rds: "RDS";
61
+ readonly Req: "REQ";
62
+ readonly Rex: "REX";
63
+ readonly Rfg: "RFG";
64
+ readonly Rfl: "RFL";
65
+ readonly Rfs: "RFS";
66
+ readonly Rfw: "RFW";
67
+ readonly Rgx: "RGX";
68
+ readonly Ris: "RIS";
69
+ readonly Rli: "RLI";
70
+ readonly Rlm: "RLM";
71
+ readonly Rmd: "RMD";
72
+ readonly Rng: "RNG";
73
+ readonly Rop: "ROP";
74
+ readonly Rox: "ROX";
75
+ readonly Rpb: "RPB";
76
+ readonly Rpg: "RPG";
77
+ readonly Rre: "RRE";
78
+ readonly Rrw: "RRW";
79
+ readonly Rry: "RRY";
80
+ readonly Rsb: "RSB";
81
+ readonly Rsc: "RSC";
82
+ readonly Rxb: "RXB";
83
+ readonly Rxc: "RXC";
84
+ readonly Rxd: "RXD";
85
+ readonly Rxe: "RXE";
86
+ readonly Rxg: "RXG";
87
+ readonly Rxs: "RXS";
88
+ readonly Sco: "SCO";
89
+ readonly Shl: "SHL";
90
+ readonly Shr: "SHR";
91
+ readonly Spf: "SPF";
92
+ readonly Spx: "SPX";
93
+ readonly Sur: "SUR";
94
+ readonly Swp: "SWP";
95
+ readonly Val: "VAL";
96
+ readonly Vol: "VOL";
97
+ readonly Vun: "VUN";
98
+ readonly Wet: "WET";
99
+ readonly Xps: "XPS";
100
+ };
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SpecialHandlingCodeEnum1 = void 0;
7
+ exports.SpecialHandlingCodeEnum1 = {
8
+ Act: "ACT",
9
+ Aog: "AOG",
10
+ Att: "ATT",
11
+ Avi: "AVI",
12
+ Big: "BIG",
13
+ Bup: "BUP",
14
+ Cao: "CAO",
15
+ Cat: "CAT",
16
+ Col: "COL",
17
+ Com: "COM",
18
+ Crt: "CRT",
19
+ Dip: "DIP",
20
+ Eap: "EAP",
21
+ Eat: "EAT",
22
+ Eaw: "EAW",
23
+ Ecc: "ECC",
24
+ Ecp: "ECP",
25
+ Eli: "ELI",
26
+ Elm: "ELM",
27
+ Emd: "EMD",
28
+ Ert: "ERT",
29
+ Fil: "FIL",
30
+ Fri: "FRI",
31
+ Fro: "FRO",
32
+ Goh: "GOH",
33
+ Hea: "HEA",
34
+ Heg: "HEG",
35
+ Hum: "HUM",
36
+ Ice: "ICE",
37
+ Lho: "LHO",
38
+ Lic: "LIC",
39
+ Mag: "MAG",
40
+ Mal: "MAL",
41
+ Muw: "MUW",
42
+ Nsc: "NSC",
43
+ Nwp: "NWP",
44
+ Obx: "OBX",
45
+ Ohg: "OHG",
46
+ Pac: "PAC",
47
+ Pea: "PEA",
48
+ Pef: "PEF",
49
+ Pem: "PEM",
50
+ Pep: "PEP",
51
+ Per: "PER",
52
+ Pes: "PES",
53
+ Pil: "PIL",
54
+ Pip: "PIP",
55
+ Qrt: "QRT",
56
+ Rac: "RAC",
57
+ Rbi: "RBI",
58
+ Rbm: "RBM",
59
+ Rcl: "RCL",
60
+ Rcm: "RCM",
61
+ Rcx: "RCX",
62
+ Rds: "RDS",
63
+ Req: "REQ",
64
+ Rex: "REX",
65
+ Rfg: "RFG",
66
+ Rfl: "RFL",
67
+ Rfs: "RFS",
68
+ Rfw: "RFW",
69
+ Rgx: "RGX",
70
+ Ris: "RIS",
71
+ Rli: "RLI",
72
+ Rlm: "RLM",
73
+ Rmd: "RMD",
74
+ Rng: "RNG",
75
+ Rop: "ROP",
76
+ Rox: "ROX",
77
+ Rpb: "RPB",
78
+ Rpg: "RPG",
79
+ Rre: "RRE",
80
+ Rrw: "RRW",
81
+ Rry: "RRY",
82
+ Rsb: "RSB",
83
+ Rsc: "RSC",
84
+ Rxb: "RXB",
85
+ Rxc: "RXC",
86
+ Rxd: "RXD",
87
+ Rxe: "RXE",
88
+ Rxg: "RXG",
89
+ Rxs: "RXS",
90
+ Sco: "SCO",
91
+ Shl: "SHL",
92
+ Shr: "SHR",
93
+ Spf: "SPF",
94
+ Spx: "SPX",
95
+ Sur: "SUR",
96
+ Swp: "SWP",
97
+ Val: "VAL",
98
+ Vol: "VOL",
99
+ Vun: "VUN",
100
+ Wet: "WET",
101
+ Xps: "XPS",
102
+ };
@@ -76,14 +76,17 @@ export * from "./CargoByDriverDataPointMetadata1.js";
76
76
  export * from "./CargoByDriverSharingSettings1.js";
77
77
  export * from "./CargoClientCreate1.js";
78
78
  export * from "./CargoOnFlightBooking1.js";
79
+ export * from "./CargoOnFlightBookingAircraftBodyTypeEnum1.js";
79
80
  export * from "./CargoOnFlightBookingCargoDimension1.js";
80
81
  export * from "./CargoOnFlightBookingItinerary1.js";
81
82
  export * from "./CargoOnFlightBookingItineraryLeg1.js";
82
83
  export * from "./CargoOnFlightBookingListRes.js";
83
84
  export * from "./CargoOnFlightBookingRate1.js";
85
+ export * from "./CargoOnFlightBookingRateCharge1.js";
84
86
  export * from "./CargoOnFlightBookingSearch1.js";
85
87
  export * from "./CargoOnFlightBookingSearchListRes.js";
86
88
  export * from "./CargoOnFlightBookingSearchResult1.js";
89
+ export * from "./CargoOnFlightBookingSearchResultSortByEnum.js";
87
90
  export * from "./CargoOnFlightBookingSearchSortByEnum.js";
88
91
  export * from "./CargoOnFlightBookingSortByEnum.js";
89
92
  export * from "./CargoOnFlightBookingStatusEnum1.js";
@@ -612,6 +615,7 @@ export * from "./ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.js";
612
615
  export * from "./ShippingTaskSkippedWebhookPayload.js";
613
616
  export * from "./ShippingTaskTaskArtifactCompletedWebhookPayload.js";
614
617
  export * from "./SortOrderEnum.js";
618
+ export * from "./SpecialHandlingCodeEnum1.js";
615
619
  export * from "./StartOfWeek.js";
616
620
  export * from "./StationaryCluster.js";
617
621
  export * from "./StoredModel.js";
@@ -92,14 +92,17 @@ __exportStar(require("./CargoByDriverDataPointMetadata1.js"), exports);
92
92
  __exportStar(require("./CargoByDriverSharingSettings1.js"), exports);
93
93
  __exportStar(require("./CargoClientCreate1.js"), exports);
94
94
  __exportStar(require("./CargoOnFlightBooking1.js"), exports);
95
+ __exportStar(require("./CargoOnFlightBookingAircraftBodyTypeEnum1.js"), exports);
95
96
  __exportStar(require("./CargoOnFlightBookingCargoDimension1.js"), exports);
96
97
  __exportStar(require("./CargoOnFlightBookingItinerary1.js"), exports);
97
98
  __exportStar(require("./CargoOnFlightBookingItineraryLeg1.js"), exports);
98
99
  __exportStar(require("./CargoOnFlightBookingListRes.js"), exports);
99
100
  __exportStar(require("./CargoOnFlightBookingRate1.js"), exports);
101
+ __exportStar(require("./CargoOnFlightBookingRateCharge1.js"), exports);
100
102
  __exportStar(require("./CargoOnFlightBookingSearch1.js"), exports);
101
103
  __exportStar(require("./CargoOnFlightBookingSearchListRes.js"), exports);
102
104
  __exportStar(require("./CargoOnFlightBookingSearchResult1.js"), exports);
105
+ __exportStar(require("./CargoOnFlightBookingSearchResultSortByEnum.js"), exports);
103
106
  __exportStar(require("./CargoOnFlightBookingSearchSortByEnum.js"), exports);
104
107
  __exportStar(require("./CargoOnFlightBookingSortByEnum.js"), exports);
105
108
  __exportStar(require("./CargoOnFlightBookingStatusEnum1.js"), exports);
@@ -628,6 +631,7 @@ __exportStar(require("./ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.js")
628
631
  __exportStar(require("./ShippingTaskSkippedWebhookPayload.js"), exports);
629
632
  __exportStar(require("./ShippingTaskTaskArtifactCompletedWebhookPayload.js"), exports);
630
633
  __exportStar(require("./SortOrderEnum.js"), exports);
634
+ __exportStar(require("./SpecialHandlingCodeEnum1.js"), exports);
631
635
  __exportStar(require("./StartOfWeek.js"), exports);
632
636
  __exportStar(require("./StationaryCluster.js"), exports);
633
637
  __exportStar(require("./StoredModel.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.1013.0";
1
+ export declare const SDK_VERSION = "1.1015.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.1013.0";
4
+ exports.SDK_VERSION = "1.1015.0";
@@ -25,8 +25,8 @@ export class ChrtClient {
25
25
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
26
26
  "X-Fern-Language": "JavaScript",
27
27
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
28
- "X-Fern-SDK-Version": "1.1013.0",
29
- "User-Agent": "@chrt-inc/typescript-sdk/1.1013.0",
28
+ "X-Fern-SDK-Version": "1.1015.0",
29
+ "User-Agent": "@chrt-inc/typescript-sdk/1.1015.0",
30
30
  "X-Fern-Runtime": core.RUNTIME.type,
31
31
  "X-Fern-Runtime-Version": core.RUNTIME.version,
32
32
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -15,6 +15,7 @@ export interface CargoOnFlightBookingSearchClientCreate1 {
15
15
  destination_iata: string;
16
16
  earliest_departure_date: string;
17
17
  iata_cass_office_id: string;
18
+ offset_days?: number;
18
19
  origin_iata: string;
19
20
  schema_version: number;
20
21
  }
@@ -52,17 +52,25 @@ export declare class CargoOnFlightBookingSearches {
52
52
  listV1(request: Chrt.shipping.CargoOnFlightBookingSearchesListV1Request, requestOptions?: CargoOnFlightBookingSearches.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBookingSearchListRes>;
53
53
  private __listV1;
54
54
  /**
55
- * Retrieves a cargo-on-flight booking search with its results. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBookingSearch1)
55
+ * Retrieves a cargo-on-flight booking search with its results, optionally filtered and sorted. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBookingSearch1)
56
56
  *
57
57
  * @param {string} cargoOnFlightBookingSearchId
58
+ * @param {Chrt.shipping.CargoOnFlightBookingSearchesGetV1Request} request
58
59
  * @param {CargoOnFlightBookingSearches.RequestOptions} requestOptions - Request-specific configuration.
59
60
  *
60
61
  * @throws {@link Chrt.UnprocessableEntityError}
61
62
  *
62
63
  * @example
63
- * await client.shipping.cargoOnFlightBookingSearches.getV1("cargo_on_flight_booking_search_id")
64
+ * await client.shipping.cargoOnFlightBookingSearches.getV1("cargo_on_flight_booking_search_id", {
65
+ * filter_bookable: true,
66
+ * filter_awb_required: true,
67
+ * filter_aircraft_body_type: "widebody",
68
+ * filter_currency_code: "filter_currency_code",
69
+ * sort_by: "departure",
70
+ * sort_order: "asc"
71
+ * })
64
72
  */
65
- getV1(cargoOnFlightBookingSearchId: string, requestOptions?: CargoOnFlightBookingSearches.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBookingSearch1>;
73
+ getV1(cargoOnFlightBookingSearchId: string, request?: Chrt.shipping.CargoOnFlightBookingSearchesGetV1Request, requestOptions?: CargoOnFlightBookingSearches.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBookingSearch1>;
66
74
  private __getV1;
67
75
  protected _getAuthorizationHeader(): Promise<string | undefined>;
68
76
  }
@@ -111,28 +111,56 @@ export class CargoOnFlightBookingSearches {
111
111
  });
112
112
  }
113
113
  /**
114
- * Retrieves a cargo-on-flight booking search with its results. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBookingSearch1)
114
+ * Retrieves a cargo-on-flight booking search with its results, optionally filtered and sorted. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightBookingSearch1)
115
115
  *
116
116
  * @param {string} cargoOnFlightBookingSearchId
117
+ * @param {Chrt.shipping.CargoOnFlightBookingSearchesGetV1Request} request
117
118
  * @param {CargoOnFlightBookingSearches.RequestOptions} requestOptions - Request-specific configuration.
118
119
  *
119
120
  * @throws {@link Chrt.UnprocessableEntityError}
120
121
  *
121
122
  * @example
122
- * await client.shipping.cargoOnFlightBookingSearches.getV1("cargo_on_flight_booking_search_id")
123
+ * await client.shipping.cargoOnFlightBookingSearches.getV1("cargo_on_flight_booking_search_id", {
124
+ * filter_bookable: true,
125
+ * filter_awb_required: true,
126
+ * filter_aircraft_body_type: "widebody",
127
+ * filter_currency_code: "filter_currency_code",
128
+ * sort_by: "departure",
129
+ * sort_order: "asc"
130
+ * })
123
131
  */
124
- getV1(cargoOnFlightBookingSearchId, requestOptions) {
125
- return core.HttpResponsePromise.fromPromise(this.__getV1(cargoOnFlightBookingSearchId, requestOptions));
132
+ getV1(cargoOnFlightBookingSearchId, request = {}, requestOptions) {
133
+ return core.HttpResponsePromise.fromPromise(this.__getV1(cargoOnFlightBookingSearchId, request, requestOptions));
126
134
  }
127
- __getV1(cargoOnFlightBookingSearchId, requestOptions) {
128
- return __awaiter(this, void 0, void 0, function* () {
129
- var _a, _b, _c, _d;
130
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
131
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
132
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/cargo_on_flight_booking_searches/v1/${encodeURIComponent(cargoOnFlightBookingSearchId)}`),
135
+ __getV1(cargoOnFlightBookingSearchId_1) {
136
+ return __awaiter(this, arguments, void 0, function* (cargoOnFlightBookingSearchId, request = {}, requestOptions) {
137
+ var _a, _b, _c, _d, _e, _f;
138
+ const { filter_bookable: filterBookable, filter_awb_required: filterAwbRequired, filter_aircraft_body_type: filterAircraftBodyType, filter_currency_code: filterCurrencyCode, sort_by: sortBy, sort_order: sortOrder, } = request;
139
+ const _queryParams = {};
140
+ if (filterBookable !== undefined) {
141
+ _queryParams["filter_bookable"] = (_a = filterBookable === null || filterBookable === void 0 ? void 0 : filterBookable.toString()) !== null && _a !== void 0 ? _a : null;
142
+ }
143
+ if (filterAwbRequired !== undefined) {
144
+ _queryParams["filter_awb_required"] = (_b = filterAwbRequired === null || filterAwbRequired === void 0 ? void 0 : filterAwbRequired.toString()) !== null && _b !== void 0 ? _b : null;
145
+ }
146
+ if (filterAircraftBodyType !== undefined) {
147
+ _queryParams["filter_aircraft_body_type"] = filterAircraftBodyType;
148
+ }
149
+ if (filterCurrencyCode !== undefined) {
150
+ _queryParams["filter_currency_code"] = filterCurrencyCode;
151
+ }
152
+ if (sortBy !== undefined) {
153
+ _queryParams["sort_by"] = sortBy;
154
+ }
155
+ if (sortOrder !== undefined) {
156
+ _queryParams["sort_order"] = sortOrder;
157
+ }
158
+ let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
159
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
160
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, `shipping/cargo_on_flight_booking_searches/v1/${encodeURIComponent(cargoOnFlightBookingSearchId)}`),
133
161
  method: "GET",
134
162
  headers: _headers,
135
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
163
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
136
164
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
137
165
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
138
166
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * filter_bookable: true,
9
+ * filter_awb_required: true,
10
+ * filter_aircraft_body_type: "widebody",
11
+ * filter_currency_code: "filter_currency_code",
12
+ * sort_by: "departure",
13
+ * sort_order: "asc"
14
+ * }
15
+ */
16
+ export interface CargoOnFlightBookingSearchesGetV1Request {
17
+ /** Filter results the integration accepts through its API. */
18
+ filter_bookable?: boolean | null;
19
+ /** Filter results that need the user's own AWB. */
20
+ filter_awb_required?: boolean | null;
21
+ /** Filter results whose every flown leg is on this body type. */
22
+ filter_aircraft_body_type?: Chrt.CargoOnFlightBookingAircraftBodyTypeEnum1 | null;
23
+ /** Keep only rates in this currency, and results with one. */
24
+ filter_currency_code?: string | null;
25
+ /** Field to sort results by; price needs filter_currency_code. */
26
+ sort_by?: Chrt.CargoOnFlightBookingSearchResultSortByEnum | null;
27
+ /** Sort order. */
28
+ sort_order?: Chrt.SortOrderEnum | null;
29
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -1 +1,2 @@
1
1
  export { type CargoOnFlightBookingSearchesListV1Request } from "./CargoOnFlightBookingSearchesListV1Request.mjs";
2
+ export { type CargoOnFlightBookingSearchesGetV1Request } from "./CargoOnFlightBookingSearchesGetV1Request.mjs";
@@ -27,5 +27,6 @@ export interface CargoOnFlightBookingClientCreate1 {
27
27
  cargo_ids: string[];
28
28
  cargo_on_flight_integration: Chrt.CargoOnFlightIntegrationEnum1;
29
29
  schema_version: number;
30
+ special_handling_codes?: Chrt.SpecialHandlingCodeEnum1[];
30
31
  task_group_id: string;
31
32
  }
@@ -18,6 +18,7 @@ export interface OrderTemplateNewCargoClientCreate1 {
18
18
  length_inches?: number | null;
19
19
  quantity?: number | null;
20
20
  schema_version?: number;
21
+ special_handling_codes?: Chrt.SpecialHandlingCodeEnum1[];
21
22
  stackable?: boolean | null;
22
23
  turnable?: boolean | null;
23
24
  weight_pounds?: number | null;
@@ -21,6 +21,7 @@ export interface OrderTemplateNewCargoClientUpdate1 {
21
21
  length_inches__set_to_None?: boolean;
22
22
  quantity?: number | null;
23
23
  quantity__set_to_None?: boolean;
24
+ special_handling_codes?: Chrt.SpecialHandlingCodeEnum1[];
24
25
  stackable?: boolean | null;
25
26
  stackable__set_to_None?: boolean;
26
27
  turnable?: boolean | null;
@@ -21,6 +21,7 @@ export interface CargoClientUpdate1 {
21
21
  length_inches__set_to_None?: boolean;
22
22
  quantity?: number | null;
23
23
  quantity__set_to_None?: boolean;
24
+ special_handling_codes?: Chrt.SpecialHandlingCodeEnum1[];
24
25
  stackable?: boolean | null;
25
26
  stackable__set_to_None?: boolean;
26
27
  turnable?: boolean | null;
@@ -118,6 +118,19 @@ export declare class Tasks {
118
118
  */
119
119
  skipV1(taskId: string, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<boolean>;
120
120
  private __skipV1;
121
+ /**
122
+ * Returns a task to STAGED to correct an accidental completion, skip, or attempt. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
123
+ *
124
+ * @param {string} taskId
125
+ * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
126
+ *
127
+ * @throws {@link Chrt.UnprocessableEntityError}
128
+ *
129
+ * @example
130
+ * await client.shipping.tasks.stageV1("task_id")
131
+ */
132
+ stageV1(taskId: string, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<boolean>;
133
+ private __stageV1;
121
134
  /**
122
135
  * Ends an active wait-time session for a task. | authz_personas=[driver_for_executor, executor_org_operators] | () -> (bool)
123
136
  *
@@ -400,6 +400,65 @@ export class Tasks {
400
400
  }
401
401
  });
402
402
  }
403
+ /**
404
+ * Returns a task to STAGED to correct an accidental completion, skip, or attempt. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
405
+ *
406
+ * @param {string} taskId
407
+ * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
408
+ *
409
+ * @throws {@link Chrt.UnprocessableEntityError}
410
+ *
411
+ * @example
412
+ * await client.shipping.tasks.stageV1("task_id")
413
+ */
414
+ stageV1(taskId, requestOptions) {
415
+ return core.HttpResponsePromise.fromPromise(this.__stageV1(taskId, requestOptions));
416
+ }
417
+ __stageV1(taskId, requestOptions) {
418
+ return __awaiter(this, void 0, void 0, function* () {
419
+ var _a, _b, _c, _d;
420
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
421
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
422
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/tasks/stage/v1/${encodeURIComponent(taskId)}`),
423
+ method: "PUT",
424
+ headers: _headers,
425
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
426
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
427
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
428
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
429
+ });
430
+ if (_response.ok) {
431
+ return { data: _response.body, rawResponse: _response.rawResponse };
432
+ }
433
+ if (_response.error.reason === "status-code") {
434
+ switch (_response.error.statusCode) {
435
+ case 422:
436
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
437
+ default:
438
+ throw new errors.ChrtError({
439
+ statusCode: _response.error.statusCode,
440
+ body: _response.error.body,
441
+ rawResponse: _response.rawResponse,
442
+ });
443
+ }
444
+ }
445
+ switch (_response.error.reason) {
446
+ case "non-json":
447
+ throw new errors.ChrtError({
448
+ statusCode: _response.error.statusCode,
449
+ body: _response.error.rawBody,
450
+ rawResponse: _response.rawResponse,
451
+ });
452
+ case "timeout":
453
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /shipping/tasks/stage/v1/{task_id}.");
454
+ case "unknown":
455
+ throw new errors.ChrtError({
456
+ message: _response.error.errorMessage,
457
+ rawResponse: _response.rawResponse,
458
+ });
459
+ }
460
+ });
461
+ }
403
462
  /**
404
463
  * Ends an active wait-time session for a task. | authz_personas=[driver_for_executor, executor_org_operators] | () -> (bool)
405
464
  *
@@ -27,6 +27,7 @@ export interface Cargo1 {
27
27
  quantity?: number | null;
28
28
  schema_version: number;
29
29
  skipped_at_timestamp?: string | null;
30
+ special_handling_codes?: Chrt.SpecialHandlingCodeEnum1[];
30
31
  stackable?: boolean | null;
31
32
  staged_at_timestamp?: string | null;
32
33
  status?: Chrt.CargoStatusEnum1;
@@ -12,6 +12,7 @@ export interface CargoClientCreate1 {
12
12
  length_inches?: number | null;
13
13
  quantity?: number | null;
14
14
  schema_version: number;
15
+ special_handling_codes?: Chrt.SpecialHandlingCodeEnum1[];
15
16
  stackable?: boolean | null;
16
17
  turnable?: boolean | null;
17
18
  weight_pounds?: number | null;
@@ -29,6 +29,7 @@ export interface CargoOnFlightBooking1 {
29
29
  rejected_at_timestamp?: string | null;
30
30
  requested_at_timestamp?: string | null;
31
31
  schema_version: number;
32
+ special_handling_codes?: Chrt.SpecialHandlingCodeEnum1[];
32
33
  status: Chrt.CargoOnFlightBookingStatusEnum1;
33
34
  task_group_id: string;
34
35
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type CargoOnFlightBookingAircraftBodyTypeEnum1 = "widebody" | "narrowbody" | "freighter" | "unknown";
5
+ export declare const CargoOnFlightBookingAircraftBodyTypeEnum1: {
6
+ readonly Widebody: "widebody";
7
+ readonly Narrowbody: "narrowbody";
8
+ readonly Freighter: "freighter";
9
+ readonly Unknown: "unknown";
10
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const CargoOnFlightBookingAircraftBodyTypeEnum1 = {
5
+ Widebody: "widebody",
6
+ Narrowbody: "narrowbody",
7
+ Freighter: "freighter",
8
+ Unknown: "unknown",
9
+ };
@@ -9,5 +9,7 @@ export interface CargoOnFlightBookingItinerary1 {
9
9
  carrier_iata: string;
10
10
  latest_acceptance_utc?: string | null;
11
11
  legs?: Chrt.CargoOnFlightBookingItineraryLeg1[];
12
+ origin_ground_handling_agent_address?: string | null;
13
+ origin_ground_handling_agent_name?: string | null;
12
14
  time_of_availability_utc?: string | null;
13
15
  }
@@ -1,13 +1,17 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../index.mjs";
4
5
  /**
5
6
  * One leg of an itinerary: a flight, or a road feeder truck (`surface_transport`).
6
7
  */
7
8
  export interface CargoOnFlightBookingItineraryLeg1 {
9
+ aircraft_body_type?: Chrt.CargoOnFlightBookingAircraftBodyTypeEnum1;
10
+ aircraft_code?: string | null;
8
11
  carrier_iata: string;
9
12
  destination_iata: string;
10
13
  flight_number: string;
14
+ integration_body_type?: string | null;
11
15
  origin_iata: string;
12
16
  scheduled_arrival_utc: string;
13
17
  scheduled_departure_utc: string;