@chrt-inc/typescript-sdk 1.308.0 → 1.311.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 (152) hide show
  1. package/dist/cjs/Client.d.ts +3 -3
  2. package/dist/cjs/Client.js +5 -5
  3. package/dist/cjs/api/index.d.ts +1 -1
  4. package/dist/cjs/api/index.js +1 -1
  5. package/dist/cjs/api/resources/connections/client/Client.d.ts +13 -0
  6. package/dist/cjs/api/resources/connections/client/Client.js +63 -0
  7. package/dist/cjs/api/resources/connections/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/connections/index.js +1 -0
  9. package/dist/cjs/api/resources/connections/types/ConnectionsGetByHandleV1Response.d.ts +5 -0
  10. package/dist/cjs/api/resources/connections/types/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/connections/types/index.js +17 -0
  12. package/dist/cjs/api/resources/index.d.ts +3 -2
  13. package/dist/cjs/api/resources/index.js +4 -3
  14. package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/Client.d.ts +7 -4
  15. package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/Client.js +8 -3
  16. package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/Client.d.ts +17 -7
  17. package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/Client.js +62 -11
  18. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +63 -0
  19. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.js +195 -0
  20. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.d.ts +24 -0
  21. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.d.ts +20 -0
  22. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.js +5 -0
  23. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/requests/index.d.ts +2 -0
  24. package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/index.d.ts +2 -0
  25. package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/index.js +3 -1
  26. package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/Client.d.ts +7 -7
  27. package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/Client.js +11 -11
  28. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/index.d.ts +2 -0
  29. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/index.js +17 -0
  30. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.js +5 -0
  31. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.js +5 -0
  32. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/requests/index.js +2 -0
  33. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/index.js +17 -0
  35. package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.d.ts +3 -3
  36. package/dist/cjs/api/types/Cargo1.d.ts +1 -1
  37. package/dist/cjs/api/types/ForwarderCourierConnection1.d.ts +13 -0
  38. package/dist/cjs/api/types/ForwarderCourierConnection1.js +5 -0
  39. package/dist/cjs/api/types/Order1.d.ts +1 -1
  40. package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +13 -0
  41. package/dist/cjs/api/types/ShipperCourierConnection1.js +5 -0
  42. package/dist/cjs/api/types/ShipperForwarderConnection1.d.ts +13 -0
  43. package/dist/cjs/api/types/ShipperForwarderConnection1.js +5 -0
  44. package/dist/cjs/api/types/ShipperPayCourierRateSheet1.d.ts +3 -3
  45. package/dist/cjs/api/types/Task1.d.ts +7 -7
  46. package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
  47. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +2 -2
  48. package/dist/cjs/api/types/index.d.ts +3 -0
  49. package/dist/cjs/api/types/index.js +3 -0
  50. package/dist/cjs/version.d.ts +1 -1
  51. package/dist/cjs/version.js +1 -1
  52. package/dist/esm/Client.d.mts +3 -3
  53. package/dist/esm/Client.mjs +5 -5
  54. package/dist/esm/api/index.d.mts +1 -1
  55. package/dist/esm/api/index.mjs +1 -1
  56. package/dist/esm/api/resources/connections/client/Client.d.mts +13 -0
  57. package/dist/esm/api/resources/connections/client/Client.mjs +63 -0
  58. package/dist/esm/api/resources/connections/index.d.mts +1 -0
  59. package/dist/esm/api/resources/connections/index.mjs +1 -0
  60. package/dist/esm/api/resources/connections/types/ConnectionsGetByHandleV1Response.d.mts +5 -0
  61. package/dist/esm/api/resources/connections/types/index.d.mts +1 -0
  62. package/dist/esm/api/resources/connections/types/index.mjs +1 -0
  63. package/dist/esm/api/resources/index.d.mts +3 -2
  64. package/dist/esm/api/resources/index.mjs +3 -2
  65. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/Client.d.mts +7 -4
  66. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/Client.mjs +6 -1
  67. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/Client.d.mts +17 -7
  68. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/Client.mjs +62 -11
  69. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +63 -0
  70. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.mjs +158 -0
  71. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.d.mts +24 -0
  72. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.d.mts +20 -0
  73. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.mjs +4 -0
  74. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/requests/index.d.mts +2 -0
  75. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/index.d.mts +2 -0
  76. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/index.mjs +2 -0
  77. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/Client.d.mts +7 -7
  78. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/Client.mjs +11 -11
  79. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/index.d.mts +2 -0
  80. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/index.mjs +1 -0
  81. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.mjs +4 -0
  82. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.mjs +4 -0
  83. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/requests/index.mjs +1 -0
  84. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/index.d.mts +1 -0
  85. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/index.mjs +1 -0
  86. package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.d.mts +3 -3
  87. package/dist/esm/api/types/Cargo1.d.mts +1 -1
  88. package/dist/esm/api/types/ForwarderCourierConnection1.d.mts +13 -0
  89. package/dist/esm/api/types/ForwarderCourierConnection1.mjs +4 -0
  90. package/dist/esm/api/types/Order1.d.mts +1 -1
  91. package/dist/esm/api/types/ShipperCourierConnection1.d.mts +13 -0
  92. package/dist/esm/api/types/ShipperCourierConnection1.mjs +4 -0
  93. package/dist/esm/api/types/ShipperForwarderConnection1.d.mts +13 -0
  94. package/dist/esm/api/types/ShipperForwarderConnection1.mjs +4 -0
  95. package/dist/esm/api/types/ShipperPayCourierRateSheet1.d.mts +3 -3
  96. package/dist/esm/api/types/Task1.d.mts +7 -7
  97. package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
  98. package/dist/esm/api/types/TaskClientUpdate1.d.mts +2 -2
  99. package/dist/esm/api/types/index.d.mts +3 -0
  100. package/dist/esm/api/types/index.mjs +3 -0
  101. package/dist/esm/version.d.mts +1 -1
  102. package/dist/esm/version.mjs +1 -1
  103. package/package.json +1 -1
  104. package/reference.md +267 -18
  105. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.js → connections/types/ConnectionsGetByHandleV1Response.js} +0 -0
  106. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/index.d.ts +0 -0
  107. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/index.js +0 -0
  108. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/index.d.ts +0 -0
  109. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/index.js +0 -0
  110. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/index.d.ts +0 -0
  111. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/index.js +0 -0
  112. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.ts +0 -0
  113. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.js → orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.js} +0 -0
  114. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.ts +0 -0
  115. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.js → orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.js} +0 -0
  116. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/index.d.ts +0 -0
  117. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/index.js +0 -0
  118. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/index.d.ts +0 -0
  119. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/index.js +0 -0
  120. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/index.d.ts +0 -0
  121. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/index.js +0 -0
  122. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.js → orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.js} +0 -0
  123. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/requests/index.js +0 -0
  124. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/index.d.ts +0 -0
  125. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/index.js +0 -0
  126. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.ts +0 -0
  127. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.ts +0 -0
  128. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/index.d.ts +0 -0
  129. /package/dist/esm/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.mjs → connections/types/ConnectionsGetByHandleV1Response.mjs} +0 -0
  130. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/index.d.mts +0 -0
  131. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/index.mjs +0 -0
  132. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/index.d.mts +0 -0
  133. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/index.mjs +0 -0
  134. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/index.d.mts +0 -0
  135. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/index.mjs +0 -0
  136. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.mts +0 -0
  137. /package/dist/esm/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.mjs → orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.mjs} +0 -0
  138. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.mts +0 -0
  139. /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.mjs → orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.mjs} +0 -0
  140. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/index.d.mts +0 -0
  141. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/index.mjs +0 -0
  142. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/index.d.mts +0 -0
  143. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/index.mjs +0 -0
  144. /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/index.d.mts +0 -0
  145. /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/index.mjs +0 -0
  146. /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.mjs → orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.mjs} +0 -0
  147. /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/requests/index.mjs +0 -0
  148. /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/index.d.mts +0 -0
  149. /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/index.mjs +0 -0
  150. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.mts +0 -0
  151. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.mts +0 -0
  152. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/index.d.mts +0 -0
@@ -0,0 +1,158 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../../../environments.mjs";
14
+ import * as core from "../../../../../../core/index.mjs";
15
+ import * as Chrt from "../../../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
17
+ import * as errors from "../../../../../../errors/index.mjs";
18
+ export class Forwarder {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Creates forwarder organization connection information. Fails if already exists. | (ForwarderOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
24
+ *
25
+ * @param {Chrt.orgInfoForConnections.ForwarderOrgInfoForConnectionsClientCreate1} request
26
+ * @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Chrt.UnprocessableEntityError}
29
+ *
30
+ * @example
31
+ * await client.orgInfoForConnections.forwarder.createV1({
32
+ * schema_version: 1,
33
+ * email_address_primary: "email_address_primary"
34
+ * })
35
+ */
36
+ createV1(request, requestOptions) {
37
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
38
+ }
39
+ __createV1(request, requestOptions) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ var _a, _b, _c, _d;
42
+ 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);
43
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
44
+ 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, "connections/org_info_for_connections/forwarder/create/v1"),
45
+ method: "POST",
46
+ headers: _headers,
47
+ contentType: "application/json",
48
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
49
+ requestType: "json",
50
+ body: request,
51
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
52
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
53
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
54
+ });
55
+ if (_response.ok) {
56
+ return { data: _response.body, rawResponse: _response.rawResponse };
57
+ }
58
+ if (_response.error.reason === "status-code") {
59
+ switch (_response.error.statusCode) {
60
+ case 422:
61
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
62
+ default:
63
+ throw new errors.ChrtError({
64
+ statusCode: _response.error.statusCode,
65
+ body: _response.error.body,
66
+ rawResponse: _response.rawResponse,
67
+ });
68
+ }
69
+ }
70
+ switch (_response.error.reason) {
71
+ case "non-json":
72
+ throw new errors.ChrtError({
73
+ statusCode: _response.error.statusCode,
74
+ body: _response.error.rawBody,
75
+ rawResponse: _response.rawResponse,
76
+ });
77
+ case "timeout":
78
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /connections/org_info_for_connections/forwarder/create/v1.");
79
+ case "unknown":
80
+ throw new errors.ChrtError({
81
+ message: _response.error.errorMessage,
82
+ rawResponse: _response.rawResponse,
83
+ });
84
+ }
85
+ });
86
+ }
87
+ /**
88
+ * Updates existing forwarder organization connection information. | (ForwarderOrgInfoForConnectionsClientUpdate1) -> (bool)
89
+ *
90
+ * @param {Chrt.orgInfoForConnections.ForwarderOrgInfoForConnectionsClientUpdate1} request
91
+ * @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
92
+ *
93
+ * @throws {@link Chrt.UnprocessableEntityError}
94
+ *
95
+ * @example
96
+ * await client.orgInfoForConnections.forwarder.updateV1()
97
+ */
98
+ updateV1(request = {}, requestOptions) {
99
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(request, requestOptions));
100
+ }
101
+ __updateV1() {
102
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
103
+ var _a, _b, _c, _d;
104
+ 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);
105
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
106
+ 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, "connections/org_info_for_connections/forwarder/update/v1"),
107
+ method: "PATCH",
108
+ headers: _headers,
109
+ contentType: "application/json",
110
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
111
+ requestType: "json",
112
+ body: request,
113
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
114
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
115
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
116
+ });
117
+ if (_response.ok) {
118
+ return { data: _response.body, rawResponse: _response.rawResponse };
119
+ }
120
+ if (_response.error.reason === "status-code") {
121
+ switch (_response.error.statusCode) {
122
+ case 422:
123
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
124
+ default:
125
+ throw new errors.ChrtError({
126
+ statusCode: _response.error.statusCode,
127
+ body: _response.error.body,
128
+ rawResponse: _response.rawResponse,
129
+ });
130
+ }
131
+ }
132
+ switch (_response.error.reason) {
133
+ case "non-json":
134
+ throw new errors.ChrtError({
135
+ statusCode: _response.error.statusCode,
136
+ body: _response.error.rawBody,
137
+ rawResponse: _response.rawResponse,
138
+ });
139
+ case "timeout":
140
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /connections/org_info_for_connections/forwarder/update/v1.");
141
+ case "unknown":
142
+ throw new errors.ChrtError({
143
+ message: _response.error.errorMessage,
144
+ rawResponse: _response.rawResponse,
145
+ });
146
+ }
147
+ });
148
+ }
149
+ _getAuthorizationHeader() {
150
+ return __awaiter(this, void 0, void 0, function* () {
151
+ const bearer = yield core.Supplier.get(this._options.token);
152
+ if (bearer != null) {
153
+ return `Bearer ${bearer}`;
154
+ }
155
+ return undefined;
156
+ });
157
+ }
158
+ }
@@ -0,0 +1,24 @@
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
+ * schema_version: 1,
9
+ * email_address_primary: "email_address_primary"
10
+ * }
11
+ */
12
+ export interface ForwarderOrgInfoForConnectionsClientCreate1 {
13
+ schema_version: number;
14
+ industry?: string | null;
15
+ street_address?: Chrt.LocationFeature | null;
16
+ contact_first_name?: string | null;
17
+ contact_last_name?: string | null;
18
+ phone_number_primary?: string | null;
19
+ phone_number_secondary?: string | null;
20
+ email_address_primary: string;
21
+ email_address_secondary?: string | null;
22
+ job_title?: string | null;
23
+ notes?: string | null;
24
+ }
@@ -0,0 +1,20 @@
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
+ */
9
+ export interface ForwarderOrgInfoForConnectionsClientUpdate1 {
10
+ industry?: string | null;
11
+ street_address?: Chrt.LocationFeature | null;
12
+ contact_first_name?: string | null;
13
+ contact_last_name?: string | null;
14
+ phone_number_primary?: string | null;
15
+ phone_number_secondary?: string | null;
16
+ email_address_primary?: string | null;
17
+ email_address_secondary?: string | null;
18
+ job_title?: string | null;
19
+ notes?: string | null;
20
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,2 @@
1
+ export { type ForwarderOrgInfoForConnectionsClientCreate1 } from "./ForwarderOrgInfoForConnectionsClientCreate1.mjs";
2
+ export { type ForwarderOrgInfoForConnectionsClientUpdate1 } from "./ForwarderOrgInfoForConnectionsClientUpdate1.mjs";
@@ -1,4 +1,6 @@
1
1
  export * as shipper from "./shipper/index.mjs";
2
2
  export * as courier from "./courier/index.mjs";
3
+ export * as forwarder from "./forwarder/index.mjs";
3
4
  export * from "./shipper/client/requests/index.mjs";
4
5
  export * from "./courier/client/requests/index.mjs";
6
+ export * from "./forwarder/client/requests/index.mjs";
@@ -1,4 +1,6 @@
1
1
  export * as shipper from "./shipper/index.mjs";
2
2
  export * as courier from "./courier/index.mjs";
3
+ export * as forwarder from "./forwarder/index.mjs";
3
4
  export * from "./shipper/client/requests/index.mjs";
4
5
  export * from "./courier/client/requests/index.mjs";
6
+ export * from "./forwarder/client/requests/index.mjs";
@@ -36,38 +36,38 @@ export declare class Shipper {
36
36
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
38
38
  * @example
39
- * await client.orgConnectionInfos.shipper.getV1()
39
+ * await client.orgInfoForConnections.shipper.getV1()
40
40
  */
41
41
  getV1(requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperOrgInfoForConnections1>;
42
42
  private __getV1;
43
43
  /**
44
44
  * Creates shipper organization connection information. Fails if already exists. | (ShipperOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
45
45
  *
46
- * @param {Chrt.orgConnectionInfos.ShipperOrgInfoForConnectionsClientCreate1} request
46
+ * @param {Chrt.orgInfoForConnections.ShipperOrgInfoForConnectionsClientCreate1} request
47
47
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
48
48
  *
49
49
  * @throws {@link Chrt.UnprocessableEntityError}
50
50
  *
51
51
  * @example
52
- * await client.orgConnectionInfos.shipper.createV1({
52
+ * await client.orgInfoForConnections.shipper.createV1({
53
53
  * schema_version: 1,
54
54
  * email_address_primary: "email_address_primary"
55
55
  * })
56
56
  */
57
- createV1(request: Chrt.orgConnectionInfos.ShipperOrgInfoForConnectionsClientCreate1, requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<string>;
57
+ createV1(request: Chrt.orgInfoForConnections.ShipperOrgInfoForConnectionsClientCreate1, requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<string>;
58
58
  private __createV1;
59
59
  /**
60
60
  * Updates existing shipper organization connection information. | (ShipperOrgInfoForConnectionsClientUpdate1) -> (bool)
61
61
  *
62
- * @param {Chrt.orgConnectionInfos.ShipperOrgInfoForConnectionsClientUpdate1} request
62
+ * @param {Chrt.orgInfoForConnections.ShipperOrgInfoForConnectionsClientUpdate1} request
63
63
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
64
64
  *
65
65
  * @throws {@link Chrt.UnprocessableEntityError}
66
66
  *
67
67
  * @example
68
- * await client.orgConnectionInfos.shipper.updateV1()
68
+ * await client.orgInfoForConnections.shipper.updateV1()
69
69
  */
70
- updateV1(request?: Chrt.orgConnectionInfos.ShipperOrgInfoForConnectionsClientUpdate1, requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<boolean>;
70
+ updateV1(request?: Chrt.orgInfoForConnections.ShipperOrgInfoForConnectionsClientUpdate1, requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<boolean>;
71
71
  private __updateV1;
72
72
  protected _getAuthorizationHeader(): Promise<string | undefined>;
73
73
  }
@@ -25,7 +25,7 @@ export class Shipper {
25
25
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
27
27
  * @example
28
- * await client.orgConnectionInfos.shipper.getV1()
28
+ * await client.orgInfoForConnections.shipper.getV1()
29
29
  */
30
30
  getV1(requestOptions) {
31
31
  return core.HttpResponsePromise.fromPromise(this.__getV1(requestOptions));
@@ -35,7 +35,7 @@ export class Shipper {
35
35
  var _a, _b, _c, _d;
36
36
  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);
37
37
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
38
- 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, "connections/org_connection_infos/shipper/v1"),
38
+ 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, "connections/org_info_for_connections/shipper/v1"),
39
39
  method: "GET",
40
40
  headers: _headers,
41
41
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -61,7 +61,7 @@ export class Shipper {
61
61
  rawResponse: _response.rawResponse,
62
62
  });
63
63
  case "timeout":
64
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /connections/org_connection_infos/shipper/v1.");
64
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /connections/org_info_for_connections/shipper/v1.");
65
65
  case "unknown":
66
66
  throw new errors.ChrtError({
67
67
  message: _response.error.errorMessage,
@@ -73,13 +73,13 @@ export class Shipper {
73
73
  /**
74
74
  * Creates shipper organization connection information. Fails if already exists. | (ShipperOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
75
75
  *
76
- * @param {Chrt.orgConnectionInfos.ShipperOrgInfoForConnectionsClientCreate1} request
76
+ * @param {Chrt.orgInfoForConnections.ShipperOrgInfoForConnectionsClientCreate1} request
77
77
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
78
78
  *
79
79
  * @throws {@link Chrt.UnprocessableEntityError}
80
80
  *
81
81
  * @example
82
- * await client.orgConnectionInfos.shipper.createV1({
82
+ * await client.orgInfoForConnections.shipper.createV1({
83
83
  * schema_version: 1,
84
84
  * email_address_primary: "email_address_primary"
85
85
  * })
@@ -92,7 +92,7 @@ export class Shipper {
92
92
  var _a, _b, _c, _d;
93
93
  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);
94
94
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
95
- 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, "connections/org_connection_infos/shipper/create/v1"),
95
+ 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, "connections/org_info_for_connections/shipper/create/v1"),
96
96
  method: "POST",
97
97
  headers: _headers,
98
98
  contentType: "application/json",
@@ -126,7 +126,7 @@ export class Shipper {
126
126
  rawResponse: _response.rawResponse,
127
127
  });
128
128
  case "timeout":
129
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /connections/org_connection_infos/shipper/create/v1.");
129
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /connections/org_info_for_connections/shipper/create/v1.");
130
130
  case "unknown":
131
131
  throw new errors.ChrtError({
132
132
  message: _response.error.errorMessage,
@@ -138,13 +138,13 @@ export class Shipper {
138
138
  /**
139
139
  * Updates existing shipper organization connection information. | (ShipperOrgInfoForConnectionsClientUpdate1) -> (bool)
140
140
  *
141
- * @param {Chrt.orgConnectionInfos.ShipperOrgInfoForConnectionsClientUpdate1} request
141
+ * @param {Chrt.orgInfoForConnections.ShipperOrgInfoForConnectionsClientUpdate1} request
142
142
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
143
143
  *
144
144
  * @throws {@link Chrt.UnprocessableEntityError}
145
145
  *
146
146
  * @example
147
- * await client.orgConnectionInfos.shipper.updateV1()
147
+ * await client.orgInfoForConnections.shipper.updateV1()
148
148
  */
149
149
  updateV1(request = {}, requestOptions) {
150
150
  return core.HttpResponsePromise.fromPromise(this.__updateV1(request, requestOptions));
@@ -154,7 +154,7 @@ export class Shipper {
154
154
  var _a, _b, _c, _d;
155
155
  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);
156
156
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
157
- 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, "connections/org_connection_infos/shipper/update/v1"),
157
+ 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, "connections/org_info_for_connections/shipper/update/v1"),
158
158
  method: "PATCH",
159
159
  headers: _headers,
160
160
  contentType: "application/json",
@@ -188,7 +188,7 @@ export class Shipper {
188
188
  rawResponse: _response.rawResponse,
189
189
  });
190
190
  case "timeout":
191
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /connections/org_connection_infos/shipper/update/v1.");
191
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /connections/org_info_for_connections/shipper/update/v1.");
192
192
  case "unknown":
193
193
  throw new errors.ChrtError({
194
194
  message: _response.error.errorMessage,
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -24,9 +24,9 @@ import * as Chrt from "../../../../index.mjs";
24
24
  export interface ShipperPayCourierRateSheetClientCreate1 {
25
25
  schema_version: number;
26
26
  name?: string | null;
27
- cargo_types?: Chrt.CargoTypeEnum1[] | null;
28
- vehicle_types?: Chrt.VehicleTypeEnum[] | null;
29
- route_types?: Chrt.RouteTypeEnum1[] | null;
27
+ cargo_types?: Chrt.CargoTypeEnum1[];
28
+ vehicle_types?: Chrt.VehicleTypeEnum[];
29
+ route_types?: Chrt.RouteTypeEnum1[];
30
30
  /** Must be a string starting with `org_` */
31
31
  shipper_org_id?: string | null;
32
32
  off_chrt_shipper_org_id?: string | null;
@@ -20,7 +20,7 @@ export interface Cargo1 {
20
20
  created_by_org_id: string;
21
21
  /** Must be a string starting with `user_` */
22
22
  created_by_user_id: string;
23
- device_ids?: string[] | null;
23
+ device_ids?: string[];
24
24
  status?: Chrt.CargoStatusEnum1;
25
25
  draft_started_at_timestamp: string;
26
26
  staged_at_timestamp?: string | null;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ForwarderCourierConnection1 {
5
+ schema_version: number;
6
+ /** Must be a string starting with `org_` */
7
+ forwarder_org_id: string;
8
+ /** Must be a string starting with `org_` */
9
+ courier_org_id: string;
10
+ connected?: boolean;
11
+ forwarder_customer_id_for_courier_stripe_connect_account?: string | null;
12
+ _id: string;
13
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -6,7 +6,7 @@ export interface Order1 {
6
6
  schema_version: number;
7
7
  _id: string;
8
8
  short_id: string;
9
- task_group_ids?: string[] | null;
9
+ task_group_ids?: string[];
10
10
  created_by_org_type: Chrt.OrgTypeEnum;
11
11
  /** Must be a string starting with `org_` */
12
12
  created_by_org_id: string;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ShipperCourierConnection1 {
5
+ schema_version: number;
6
+ /** Must be a string starting with `org_` */
7
+ shipper_org_id: string;
8
+ /** Must be a string starting with `org_` */
9
+ courier_org_id: string;
10
+ connected?: boolean;
11
+ shipper_customer_id_for_courier_stripe_connect_account?: string | null;
12
+ _id: string;
13
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ShipperForwarderConnection1 {
5
+ schema_version: number;
6
+ /** Must be a string starting with `org_` */
7
+ shipper_org_id: string;
8
+ /** Must be a string starting with `org_` */
9
+ forwarder_org_id: string;
10
+ connected?: boolean;
11
+ shipper_customer_id_for_forwarder_stripe_connect_account?: string | null;
12
+ _id: string;
13
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -5,9 +5,9 @@ import * as Chrt from "../index.mjs";
5
5
  export interface ShipperPayCourierRateSheet1 {
6
6
  schema_version: number;
7
7
  name?: string | null;
8
- cargo_types?: Chrt.CargoTypeEnum1[] | null;
9
- vehicle_types?: Chrt.VehicleTypeEnum[] | null;
10
- route_types?: Chrt.RouteTypeEnum1[] | null;
8
+ cargo_types?: Chrt.CargoTypeEnum1[];
9
+ vehicle_types?: Chrt.VehicleTypeEnum[];
10
+ route_types?: Chrt.RouteTypeEnum1[];
11
11
  /** Must be a string starting with `org_` */
12
12
  shipper_org_id?: string | null;
13
13
  off_chrt_shipper_org_id?: string | null;
@@ -8,7 +8,7 @@ export interface Task1 {
8
8
  action?: Task1.Action | null;
9
9
  time_windows?: Chrt.TimeWindow1[];
10
10
  order_placer_comments?: string | null;
11
- shipper_contact_info_ids?: string[] | null;
11
+ shipper_contact_info_ids?: string[];
12
12
  flight_number?: string | null;
13
13
  _id: string;
14
14
  order_id: string;
@@ -22,18 +22,18 @@ export interface Task1 {
22
22
  completed_by_org_id?: string | null;
23
23
  /** Must be a string starting with `user_` */
24
24
  completed_by_user_id?: string | null;
25
- cargo_ids?: string[] | null;
26
- task_artifact_ids?: string[] | null;
25
+ cargo_ids?: string[];
26
+ task_artifact_ids?: string[];
27
27
  status?: Chrt.TaskStatusEnum1;
28
28
  draft_started_at_timestamp: string;
29
29
  staged_at_timestamp?: string | null;
30
30
  completed_at_timestamp?: string | null;
31
31
  exception_at_timestamp?: string | null;
32
32
  order_cancelled?: boolean;
33
- task_notification_email_ids?: string[] | null;
34
- task_notification_sms_ids?: string[] | null;
35
- task_notification_push_ids?: string[] | null;
36
- task_notification_voice_ids?: string[] | null;
33
+ task_notification_email_ids?: string[];
34
+ task_notification_sms_ids?: string[];
35
+ task_notification_push_ids?: string[];
36
+ task_notification_voice_ids?: string[];
37
37
  }
38
38
  export declare namespace Task1 {
39
39
  type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
@@ -8,7 +8,7 @@ export interface TaskClientCreate1 {
8
8
  action?: TaskClientCreate1.Action | null;
9
9
  time_windows?: Chrt.TimeWindow1[];
10
10
  order_placer_comments?: string | null;
11
- shipper_contact_info_ids?: string[] | null;
11
+ shipper_contact_info_ids?: string[];
12
12
  flight_number?: string | null;
13
13
  }
14
14
  export declare namespace TaskClientCreate1 {
@@ -5,9 +5,9 @@ import * as Chrt from "../index.mjs";
5
5
  export interface TaskClientUpdate1 {
6
6
  location?: Chrt.LocationFeature | null;
7
7
  action?: TaskClientUpdate1.Action | null;
8
- time_windows?: Chrt.TimeWindow1[] | null;
8
+ time_windows?: Chrt.TimeWindow1[];
9
9
  order_placer_comments?: string | null;
10
- shipper_contact_info_ids?: string[] | null;
10
+ shipper_contact_info_ids?: string[];
11
11
  flight_number?: string | null;
12
12
  }
13
13
  export declare namespace TaskClientUpdate1 {
@@ -31,6 +31,7 @@ export * from "./DriverStatusEnum.mjs";
31
31
  export * from "./DriverUpdateRes.mjs";
32
32
  export * from "./FlightTaskActionEnum1.mjs";
33
33
  export * from "./ForwarderConnectionRes.mjs";
34
+ export * from "./ForwarderCourierConnection1.mjs";
34
35
  export * from "./ForwarderOrgInfoForConnections1.mjs";
35
36
  export * from "./ForwarderOrgProfile1.mjs";
36
37
  export * from "./GenerateInvoiceRes.mjs";
@@ -86,6 +87,8 @@ export * from "./SessionByDeviceMarkOutliersResponse1.mjs";
86
87
  export * from "./ShipperConnectionRes.mjs";
87
88
  export * from "./ShipperContact1.mjs";
88
89
  export * from "./ShipperContactClientCreate1.mjs";
90
+ export * from "./ShipperCourierConnection1.mjs";
91
+ export * from "./ShipperForwarderConnection1.mjs";
89
92
  export * from "./ShipperNotificationEventEnum.mjs";
90
93
  export * from "./ShipperNotificationPreferences1.mjs";
91
94
  export * from "./ShipperOrgInfoForConnections1.mjs";
@@ -31,6 +31,7 @@ export * from "./DriverStatusEnum.mjs";
31
31
  export * from "./DriverUpdateRes.mjs";
32
32
  export * from "./FlightTaskActionEnum1.mjs";
33
33
  export * from "./ForwarderConnectionRes.mjs";
34
+ export * from "./ForwarderCourierConnection1.mjs";
34
35
  export * from "./ForwarderOrgInfoForConnections1.mjs";
35
36
  export * from "./ForwarderOrgProfile1.mjs";
36
37
  export * from "./GenerateInvoiceRes.mjs";
@@ -86,6 +87,8 @@ export * from "./SessionByDeviceMarkOutliersResponse1.mjs";
86
87
  export * from "./ShipperConnectionRes.mjs";
87
88
  export * from "./ShipperContact1.mjs";
88
89
  export * from "./ShipperContactClientCreate1.mjs";
90
+ export * from "./ShipperCourierConnection1.mjs";
91
+ export * from "./ShipperForwarderConnection1.mjs";
89
92
  export * from "./ShipperNotificationEventEnum.mjs";
90
93
  export * from "./ShipperNotificationPreferences1.mjs";
91
94
  export * from "./ShipperOrgInfoForConnections1.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.308.0";
1
+ export declare const SDK_VERSION = "1.311.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.308.0";
1
+ export const SDK_VERSION = "1.311.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.308.0",
3
+ "version": "1.311.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",