@chrt-inc/typescript-sdk 1.1035.0 → 1.1037.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/cargoOnFlightIntegrations/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/Client.js +7 -2
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.d.ts +88 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.js +269 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.js +17 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.d.ts +18 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.d.ts +12 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.js +5 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/index.d.ts +1 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/index.js +17 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.js +1 -1
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/index.js +3 -1
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/client/Client.js +19 -14
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.d.ts +137 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.js +528 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.d.ts +12 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.d.ts +27 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.d.ts +12 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.d.ts +13 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.d.ts +13 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/index.js +3 -1
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/AirWaybillStockNumber1.d.ts +21 -0
- package/dist/cjs/api/types/AirWaybillStockNumber1.js +5 -0
- package/dist/cjs/api/types/AirWaybillStockNumberListRes.d.ts +8 -0
- package/dist/cjs/api/types/AirWaybillStockNumberListRes.js +5 -0
- package/dist/cjs/api/types/AirWaybillStockNumberSortByEnum.d.ts +9 -0
- package/dist/cjs/api/types/AirWaybillStockNumberSortByEnum.js +11 -0
- package/dist/cjs/api/types/AirWaybillStockNumberStatusEnum1.d.ts +10 -0
- package/dist/cjs/api/types/AirWaybillStockNumberStatusEnum1.js +12 -0
- package/dist/cjs/api/types/AirWaybillStockNumbersAddRes.d.ts +8 -0
- package/dist/cjs/api/types/AirWaybillStockNumbersAddRes.js +5 -0
- package/dist/cjs/api/types/AirWaybillStockNumbersSummaryRes.d.ts +10 -0
- package/dist/cjs/api/types/AirWaybillStockNumbersSummaryRes.js +5 -0
- package/dist/cjs/api/{resources/cargoOnFlightIntegrations/resources/cargoai/client/requests → types}/CargoOnFlightBookingSearchClientCreate1.d.ts +0 -10
- package/dist/cjs/api/types/CargoOnFlightBookingSearchClientCreate1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.d.ts +2 -1
- package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.js +1 -0
- package/dist/cjs/api/types/index.d.ts +7 -0
- package/dist/cjs/api/types/index.js +7 -0
- 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/cargoOnFlightIntegrations/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/client/Client.mjs +5 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.d.mts +88 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.mjs +232 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.d.mts +2 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.mjs +1 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.d.mts +18 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.d.mts +12 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.mjs +4 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/index.d.mts +1 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/index.mjs +1 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.mjs +1 -1
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/index.mjs +2 -0
- package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/orgs/client/Client.mjs +5 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.d.mts +137 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.mjs +491 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.d.mts +12 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.d.mts +27 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.d.mts +12 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.d.mts +13 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.d.mts +13 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/index.mjs +2 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/AirWaybillStockNumber1.d.mts +21 -0
- package/dist/esm/api/types/AirWaybillStockNumber1.mjs +4 -0
- package/dist/esm/api/types/AirWaybillStockNumberListRes.d.mts +8 -0
- package/dist/esm/api/types/AirWaybillStockNumberListRes.mjs +4 -0
- package/dist/esm/api/types/AirWaybillStockNumberSortByEnum.d.mts +9 -0
- package/dist/esm/api/types/AirWaybillStockNumberSortByEnum.mjs +8 -0
- package/dist/esm/api/types/AirWaybillStockNumberStatusEnum1.d.mts +10 -0
- package/dist/esm/api/types/AirWaybillStockNumberStatusEnum1.mjs +9 -0
- package/dist/esm/api/types/AirWaybillStockNumbersAddRes.d.mts +8 -0
- package/dist/esm/api/types/AirWaybillStockNumbersAddRes.mjs +4 -0
- package/dist/esm/api/types/AirWaybillStockNumbersSummaryRes.d.mts +10 -0
- package/dist/esm/api/types/AirWaybillStockNumbersSummaryRes.mjs +4 -0
- package/dist/esm/api/{resources/cargoOnFlightIntegrations/resources/cargoai/client/requests → types}/CargoOnFlightBookingSearchClientCreate1.d.mts +0 -10
- package/dist/esm/api/types/CargoOnFlightBookingSearchClientCreate1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.d.mts +2 -1
- package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.mjs +1 -0
- package/dist/esm/api/types/index.d.mts +7 -0
- package/dist/esm/api/types/index.mjs +7 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +679 -2
- /package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/{cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.js → airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.js} +0 -0
- /package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/{cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.mjs → airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.mjs} +0 -0
|
@@ -52,13 +52,14 @@ const Chrt = __importStar(require("../../../index.js"));
|
|
|
52
52
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
54
|
const Client_js_1 = require("../resources/accounts/client/Client.js");
|
|
55
|
-
const Client_js_2 = require("../resources/
|
|
56
|
-
const Client_js_3 = require("../resources/
|
|
57
|
-
const Client_js_4 = require("../resources/
|
|
58
|
-
const Client_js_5 = require("../resources/
|
|
59
|
-
const Client_js_6 = require("../resources/
|
|
60
|
-
const Client_js_7 = require("../resources/
|
|
61
|
-
const Client_js_8 = require("../resources/
|
|
55
|
+
const Client_js_2 = require("../resources/airWaybillStockNumbers/client/Client.js");
|
|
56
|
+
const Client_js_3 = require("../resources/complianceDocuments/client/Client.js");
|
|
57
|
+
const Client_js_4 = require("../resources/connections/client/Client.js");
|
|
58
|
+
const Client_js_5 = require("../resources/contacts/client/Client.js");
|
|
59
|
+
const Client_js_6 = require("../resources/iataCassOffices/client/Client.js");
|
|
60
|
+
const Client_js_7 = require("../resources/offChrtOrgData/client/Client.js");
|
|
61
|
+
const Client_js_8 = require("../resources/privateData/client/Client.js");
|
|
62
|
+
const Client_js_9 = require("../resources/publicData/client/Client.js");
|
|
62
63
|
class Orgs {
|
|
63
64
|
constructor(_options = {}) {
|
|
64
65
|
this._options = _options;
|
|
@@ -67,33 +68,37 @@ class Orgs {
|
|
|
67
68
|
var _a;
|
|
68
69
|
return ((_a = this._accounts) !== null && _a !== void 0 ? _a : (this._accounts = new Client_js_1.Accounts(this._options)));
|
|
69
70
|
}
|
|
71
|
+
get airWaybillStockNumbers() {
|
|
72
|
+
var _a;
|
|
73
|
+
return ((_a = this._airWaybillStockNumbers) !== null && _a !== void 0 ? _a : (this._airWaybillStockNumbers = new Client_js_2.AirWaybillStockNumbers(this._options)));
|
|
74
|
+
}
|
|
70
75
|
get complianceDocuments() {
|
|
71
76
|
var _a;
|
|
72
|
-
return ((_a = this._complianceDocuments) !== null && _a !== void 0 ? _a : (this._complianceDocuments = new
|
|
77
|
+
return ((_a = this._complianceDocuments) !== null && _a !== void 0 ? _a : (this._complianceDocuments = new Client_js_3.ComplianceDocuments(this._options)));
|
|
73
78
|
}
|
|
74
79
|
get connections() {
|
|
75
80
|
var _a;
|
|
76
|
-
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new
|
|
81
|
+
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_js_4.Connections(this._options)));
|
|
77
82
|
}
|
|
78
83
|
get contacts() {
|
|
79
84
|
var _a;
|
|
80
|
-
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new
|
|
85
|
+
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new Client_js_5.Contacts(this._options)));
|
|
81
86
|
}
|
|
82
87
|
get iataCassOffices() {
|
|
83
88
|
var _a;
|
|
84
|
-
return ((_a = this._iataCassOffices) !== null && _a !== void 0 ? _a : (this._iataCassOffices = new
|
|
89
|
+
return ((_a = this._iataCassOffices) !== null && _a !== void 0 ? _a : (this._iataCassOffices = new Client_js_6.IataCassOffices(this._options)));
|
|
85
90
|
}
|
|
86
91
|
get offChrtOrgData() {
|
|
87
92
|
var _a;
|
|
88
|
-
return ((_a = this._offChrtOrgData) !== null && _a !== void 0 ? _a : (this._offChrtOrgData = new
|
|
93
|
+
return ((_a = this._offChrtOrgData) !== null && _a !== void 0 ? _a : (this._offChrtOrgData = new Client_js_7.OffChrtOrgData(this._options)));
|
|
89
94
|
}
|
|
90
95
|
get privateData() {
|
|
91
96
|
var _a;
|
|
92
|
-
return ((_a = this._privateData) !== null && _a !== void 0 ? _a : (this._privateData = new
|
|
97
|
+
return ((_a = this._privateData) !== null && _a !== void 0 ? _a : (this._privateData = new Client_js_8.PrivateData(this._options)));
|
|
93
98
|
}
|
|
94
99
|
get publicData() {
|
|
95
100
|
var _a;
|
|
96
|
-
return ((_a = this._publicData) !== null && _a !== void 0 ? _a : (this._publicData = new
|
|
101
|
+
return ((_a = this._publicData) !== null && _a !== void 0 ? _a : (this._publicData = new Client_js_9.PublicData(this._options)));
|
|
97
102
|
}
|
|
98
103
|
/**
|
|
99
104
|
* Retrieves basic organization information from the authentication service. | () -> (OrgInfoResponse)
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../index.js";
|
|
7
|
+
export declare namespace AirWaybillStockNumbers {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class AirWaybillStockNumbers {
|
|
31
|
+
protected readonly _options: AirWaybillStockNumbers.Options;
|
|
32
|
+
constructor(_options?: AirWaybillStockNumbers.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Adds AWB numbers an airline gave the caller's organization to its AWB stock, skipping numbers already in it. | authz: min_org_role=operator | (AirWaybillStockNumbersAddReq) -> (AirWaybillStockNumbersAddRes)
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.orgs.AirWaybillStockNumbersAddReq} request
|
|
37
|
+
* @param {AirWaybillStockNumbers.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.orgs.airWaybillStockNumbers.addV1({
|
|
43
|
+
* awb_numbers: ["awb_numbers"]
|
|
44
|
+
* })
|
|
45
|
+
*/
|
|
46
|
+
addV1(request: Chrt.orgs.AirWaybillStockNumbersAddReq, requestOptions?: AirWaybillStockNumbers.RequestOptions): core.HttpResponsePromise<Chrt.AirWaybillStockNumbersAddRes>;
|
|
47
|
+
private __addV1;
|
|
48
|
+
/**
|
|
49
|
+
* Deletes an available AWB number from the caller's organization's AWB stock, e.g. one added by mistake. | authz: min_org_role=operator | () -> (bool)
|
|
50
|
+
*
|
|
51
|
+
* @param {string} airWaybillStockNumberId
|
|
52
|
+
* @param {AirWaybillStockNumbers.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* await client.orgs.airWaybillStockNumbers.deleteV1("air_waybill_stock_number_id")
|
|
58
|
+
*/
|
|
59
|
+
deleteV1(airWaybillStockNumberId: string, requestOptions?: AirWaybillStockNumbers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
60
|
+
private __deleteV1;
|
|
61
|
+
/**
|
|
62
|
+
* Lists the AWB numbers in the caller's organization's AWB stock, by airline prefix and status. | () -> (AirWaybillStockNumberListRes)
|
|
63
|
+
*
|
|
64
|
+
* @param {Chrt.orgs.AirWaybillStockNumbersListV1Request} request
|
|
65
|
+
* @param {AirWaybillStockNumbers.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.orgs.airWaybillStockNumbers.listV1({
|
|
71
|
+
* filter_awb_prefix: "filter_awb_prefix",
|
|
72
|
+
* filter_status: ["available"],
|
|
73
|
+
* sort_by: "awb_number",
|
|
74
|
+
* sort_order: "asc",
|
|
75
|
+
* page: 1,
|
|
76
|
+
* page_size: 1
|
|
77
|
+
* })
|
|
78
|
+
*/
|
|
79
|
+
listV1(request?: Chrt.orgs.AirWaybillStockNumbersListV1Request, requestOptions?: AirWaybillStockNumbers.RequestOptions): core.HttpResponsePromise<Chrt.AirWaybillStockNumberListRes>;
|
|
80
|
+
private __listV1;
|
|
81
|
+
/**
|
|
82
|
+
* Marks AWB numbers of the caller's organization's AWB stock as available, whatever their status, taking them off their booking. | authz: min_org_role=operator | (AirWaybillStockNumbersMarkAvailableReq) -> (list[AirWaybillStockNumber1])
|
|
83
|
+
*
|
|
84
|
+
* @param {Chrt.orgs.AirWaybillStockNumbersMarkAvailableReq} request
|
|
85
|
+
* @param {AirWaybillStockNumbers.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* await client.orgs.airWaybillStockNumbers.markAvailableV1({
|
|
91
|
+
* awb_numbers: ["awb_numbers"]
|
|
92
|
+
* })
|
|
93
|
+
*/
|
|
94
|
+
markAvailableV1(request: Chrt.orgs.AirWaybillStockNumbersMarkAvailableReq, requestOptions?: AirWaybillStockNumbers.RequestOptions): core.HttpResponsePromise<Chrt.AirWaybillStockNumber1[]>;
|
|
95
|
+
private __markAvailableV1;
|
|
96
|
+
/**
|
|
97
|
+
* Marks AWB numbers of the caller's organization's AWB stock as used, whatever their status, e.g. booked outside CHRT. | authz: min_org_role=operator | (AirWaybillStockNumbersMarkUsedReq) -> (list[AirWaybillStockNumber1])
|
|
98
|
+
*
|
|
99
|
+
* @param {Chrt.orgs.AirWaybillStockNumbersMarkUsedReq} request
|
|
100
|
+
* @param {AirWaybillStockNumbers.RequestOptions} requestOptions - Request-specific configuration.
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* await client.orgs.airWaybillStockNumbers.markUsedV1({
|
|
106
|
+
* awb_numbers: ["awb_numbers"]
|
|
107
|
+
* })
|
|
108
|
+
*/
|
|
109
|
+
markUsedV1(request: Chrt.orgs.AirWaybillStockNumbersMarkUsedReq, requestOptions?: AirWaybillStockNumbers.RequestOptions): core.HttpResponsePromise<Chrt.AirWaybillStockNumber1[]>;
|
|
110
|
+
private __markUsedV1;
|
|
111
|
+
/**
|
|
112
|
+
* Counts the caller's organization's AWB stock per airline prefix and status. | () -> (list[AirWaybillStockNumbersSummaryRes])
|
|
113
|
+
*
|
|
114
|
+
* @param {AirWaybillStockNumbers.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* await client.orgs.airWaybillStockNumbers.summaryV1()
|
|
118
|
+
*/
|
|
119
|
+
summaryV1(requestOptions?: AirWaybillStockNumbers.RequestOptions): core.HttpResponsePromise<Chrt.AirWaybillStockNumbersSummaryRes[]>;
|
|
120
|
+
private __summaryV1;
|
|
121
|
+
/**
|
|
122
|
+
* Voids available AWB numbers of the caller's organization's AWB stock, e.g. spoiled or returned to the airline. | authz: min_org_role=operator | (AirWaybillStockNumbersVoidReq) -> (list[AirWaybillStockNumber1])
|
|
123
|
+
*
|
|
124
|
+
* @param {Chrt.orgs.AirWaybillStockNumbersVoidReq} request
|
|
125
|
+
* @param {AirWaybillStockNumbers.RequestOptions} requestOptions - Request-specific configuration.
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* await client.orgs.airWaybillStockNumbers.voidV1({
|
|
131
|
+
* awb_numbers: ["awb_numbers"]
|
|
132
|
+
* })
|
|
133
|
+
*/
|
|
134
|
+
voidV1(request: Chrt.orgs.AirWaybillStockNumbersVoidReq, requestOptions?: AirWaybillStockNumbers.RequestOptions): core.HttpResponsePromise<Chrt.AirWaybillStockNumber1[]>;
|
|
135
|
+
private __voidV1;
|
|
136
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
137
|
+
}
|