@chrt-inc/typescript-sdk 1.309.0 → 1.312.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 (140) 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/orgInfoForConnections/resources/courier/client/Client.js +297 -0
  18. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +73 -0
  19. package/dist/cjs/api/resources/{orgConnectionInfos/resources/courier → orgInfoForConnections/resources/forwarder}/client/Client.js +20 -20
  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/types/ForwarderCourierConnection1.d.ts +13 -0
  36. package/dist/cjs/api/types/ForwarderCourierConnection1.js +5 -0
  37. package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +13 -0
  38. package/dist/cjs/api/types/ShipperCourierConnection1.js +5 -0
  39. package/dist/cjs/api/types/ShipperForwarderConnection1.d.ts +13 -0
  40. package/dist/cjs/api/types/ShipperForwarderConnection1.js +5 -0
  41. package/dist/cjs/api/types/UserPublicData1.d.ts +1 -0
  42. package/dist/cjs/api/types/index.d.ts +3 -0
  43. package/dist/cjs/api/types/index.js +3 -0
  44. package/dist/cjs/version.d.ts +1 -1
  45. package/dist/cjs/version.js +1 -1
  46. package/dist/esm/Client.d.mts +3 -3
  47. package/dist/esm/Client.mjs +5 -5
  48. package/dist/esm/api/index.d.mts +1 -1
  49. package/dist/esm/api/index.mjs +1 -1
  50. package/dist/esm/api/resources/connections/client/Client.d.mts +13 -0
  51. package/dist/esm/api/resources/connections/client/Client.mjs +63 -0
  52. package/dist/esm/api/resources/connections/index.d.mts +1 -0
  53. package/dist/esm/api/resources/connections/index.mjs +1 -0
  54. package/dist/esm/api/resources/connections/types/ConnectionsGetByHandleV1Response.d.mts +5 -0
  55. package/dist/esm/api/resources/connections/types/index.d.mts +1 -0
  56. package/dist/esm/api/resources/connections/types/index.mjs +1 -0
  57. package/dist/esm/api/resources/index.d.mts +3 -2
  58. package/dist/esm/api/resources/index.mjs +3 -2
  59. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/Client.d.mts +7 -4
  60. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/Client.mjs +6 -1
  61. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/Client.d.mts +17 -7
  62. package/dist/esm/api/resources/orgInfoForConnections/resources/courier/client/Client.mjs +260 -0
  63. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +73 -0
  64. package/dist/esm/api/resources/{orgConnectionInfos/resources/courier → orgInfoForConnections/resources/forwarder}/client/Client.mjs +18 -18
  65. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.d.mts +24 -0
  66. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.d.mts +20 -0
  67. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.mjs +4 -0
  68. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/requests/index.d.mts +2 -0
  69. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/index.d.mts +2 -0
  70. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/index.mjs +2 -0
  71. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/Client.d.mts +7 -7
  72. package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/Client.mjs +11 -11
  73. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/index.d.mts +2 -0
  74. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/index.mjs +1 -0
  75. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.mjs +4 -0
  76. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.mjs +4 -0
  77. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/requests/index.mjs +1 -0
  78. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/index.d.mts +1 -0
  79. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/index.mjs +1 -0
  80. package/dist/esm/api/types/ForwarderCourierConnection1.d.mts +13 -0
  81. package/dist/esm/api/types/ForwarderCourierConnection1.mjs +4 -0
  82. package/dist/esm/api/types/ShipperCourierConnection1.d.mts +13 -0
  83. package/dist/esm/api/types/ShipperCourierConnection1.mjs +4 -0
  84. package/dist/esm/api/types/ShipperForwarderConnection1.d.mts +13 -0
  85. package/dist/esm/api/types/ShipperForwarderConnection1.mjs +4 -0
  86. package/dist/esm/api/types/UserPublicData1.d.mts +1 -0
  87. package/dist/esm/api/types/index.d.mts +3 -0
  88. package/dist/esm/api/types/index.mjs +3 -0
  89. package/dist/esm/version.d.mts +1 -1
  90. package/dist/esm/version.mjs +1 -1
  91. package/package.json +1 -1
  92. package/reference.md +322 -18
  93. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.js → connections/types/ConnectionsGetByHandleV1Response.js} +0 -0
  94. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/index.d.ts +0 -0
  95. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/index.js +0 -0
  96. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/index.d.ts +0 -0
  97. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/index.js +0 -0
  98. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/index.d.ts +0 -0
  99. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/index.js +0 -0
  100. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.ts +0 -0
  101. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.js → orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.js} +0 -0
  102. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.ts +0 -0
  103. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.js → orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.js} +0 -0
  104. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/index.d.ts +0 -0
  105. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/index.js +0 -0
  106. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/index.d.ts +0 -0
  107. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/index.js +0 -0
  108. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/index.d.ts +0 -0
  109. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/index.js +0 -0
  110. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.js → orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.js} +0 -0
  111. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/requests/index.js +0 -0
  112. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/index.d.ts +0 -0
  113. /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/index.js +0 -0
  114. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.ts +0 -0
  115. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.ts +0 -0
  116. /package/dist/cjs/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/index.d.ts +0 -0
  117. /package/dist/esm/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.mjs → connections/types/ConnectionsGetByHandleV1Response.mjs} +0 -0
  118. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/index.d.mts +0 -0
  119. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/client/index.mjs +0 -0
  120. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/index.d.mts +0 -0
  121. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/index.mjs +0 -0
  122. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/index.d.mts +0 -0
  123. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/index.mjs +0 -0
  124. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.mts +0 -0
  125. /package/dist/esm/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.mjs → orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.mjs} +0 -0
  126. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.mts +0 -0
  127. /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.mjs → orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.mjs} +0 -0
  128. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/index.d.mts +0 -0
  129. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/client/requests/index.mjs +0 -0
  130. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/index.d.mts +0 -0
  131. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/courier/index.mjs +0 -0
  132. /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/index.d.mts +0 -0
  133. /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/index.mjs +0 -0
  134. /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.mjs → orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.mjs} +0 -0
  135. /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/client/requests/index.mjs +0 -0
  136. /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/index.d.mts +0 -0
  137. /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper → orgInfoForConnections/resources/forwarder}/index.mjs +0 -0
  138. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.mts +0 -0
  139. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.mts +0 -0
  140. /package/dist/esm/api/resources/{orgConnectionInfos → orgInfoForConnections}/resources/shipper/client/requests/index.d.mts +0 -0
@@ -0,0 +1,260 @@
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 Courier {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Retrieves courier organization connection information for the authenticated organization. | () -> (CourierOrgInfoForConnections1)
24
+ *
25
+ * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
26
+ *
27
+ * @example
28
+ * await client.orgInfoForConnections.courier.getV1()
29
+ */
30
+ getV1(requestOptions) {
31
+ return core.HttpResponsePromise.fromPromise(this.__getV1(requestOptions));
32
+ }
33
+ __getV1(requestOptions) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ var _a, _b, _c, _d;
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
+ 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_info_for_connections/courier/v1"),
39
+ method: "GET",
40
+ headers: _headers,
41
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
42
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
43
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
44
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
45
+ });
46
+ if (_response.ok) {
47
+ return { data: _response.body, rawResponse: _response.rawResponse };
48
+ }
49
+ if (_response.error.reason === "status-code") {
50
+ throw new errors.ChrtError({
51
+ statusCode: _response.error.statusCode,
52
+ body: _response.error.body,
53
+ rawResponse: _response.rawResponse,
54
+ });
55
+ }
56
+ switch (_response.error.reason) {
57
+ case "non-json":
58
+ throw new errors.ChrtError({
59
+ statusCode: _response.error.statusCode,
60
+ body: _response.error.rawBody,
61
+ rawResponse: _response.rawResponse,
62
+ });
63
+ case "timeout":
64
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /connections/org_info_for_connections/courier/v1.");
65
+ case "unknown":
66
+ throw new errors.ChrtError({
67
+ message: _response.error.errorMessage,
68
+ rawResponse: _response.rawResponse,
69
+ });
70
+ }
71
+ });
72
+ }
73
+ /**
74
+ * Retrieves list of connected courier organizations for forwarder or shipper organizations. Not accessible by courier organizations. | () -> (list[CourierOrgInfoForConnections1])
75
+ *
76
+ * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
77
+ *
78
+ * @example
79
+ * await client.orgInfoForConnections.courier.listV1()
80
+ */
81
+ listV1(requestOptions) {
82
+ return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
83
+ }
84
+ __listV1(requestOptions) {
85
+ return __awaiter(this, void 0, void 0, function* () {
86
+ var _a, _b, _c, _d;
87
+ 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);
88
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
89
+ 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/courier/list/v1"),
90
+ method: "GET",
91
+ headers: _headers,
92
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
93
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
94
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
95
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
96
+ });
97
+ if (_response.ok) {
98
+ return { data: _response.body, rawResponse: _response.rawResponse };
99
+ }
100
+ if (_response.error.reason === "status-code") {
101
+ throw new errors.ChrtError({
102
+ statusCode: _response.error.statusCode,
103
+ body: _response.error.body,
104
+ rawResponse: _response.rawResponse,
105
+ });
106
+ }
107
+ switch (_response.error.reason) {
108
+ case "non-json":
109
+ throw new errors.ChrtError({
110
+ statusCode: _response.error.statusCode,
111
+ body: _response.error.rawBody,
112
+ rawResponse: _response.rawResponse,
113
+ });
114
+ case "timeout":
115
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /connections/org_info_for_connections/courier/list/v1.");
116
+ case "unknown":
117
+ throw new errors.ChrtError({
118
+ message: _response.error.errorMessage,
119
+ rawResponse: _response.rawResponse,
120
+ });
121
+ }
122
+ });
123
+ }
124
+ /**
125
+ * Creates courier organization connection information. Fails if already exists. | (CourierOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
126
+ *
127
+ * @param {Chrt.orgInfoForConnections.CourierOrgInfoForConnectionsClientCreate1} request
128
+ * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
129
+ *
130
+ * @throws {@link Chrt.UnprocessableEntityError}
131
+ *
132
+ * @example
133
+ * await client.orgInfoForConnections.courier.createV1({
134
+ * schema_version: 1,
135
+ * email_address_primary: "email_address_primary"
136
+ * })
137
+ */
138
+ createV1(request, requestOptions) {
139
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
140
+ }
141
+ __createV1(request, requestOptions) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ var _a, _b, _c, _d;
144
+ 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);
145
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
146
+ 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/courier/create/v1"),
147
+ method: "POST",
148
+ headers: _headers,
149
+ contentType: "application/json",
150
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
151
+ requestType: "json",
152
+ body: request,
153
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
154
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
155
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
156
+ });
157
+ if (_response.ok) {
158
+ return { data: _response.body, rawResponse: _response.rawResponse };
159
+ }
160
+ if (_response.error.reason === "status-code") {
161
+ switch (_response.error.statusCode) {
162
+ case 422:
163
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
164
+ default:
165
+ throw new errors.ChrtError({
166
+ statusCode: _response.error.statusCode,
167
+ body: _response.error.body,
168
+ rawResponse: _response.rawResponse,
169
+ });
170
+ }
171
+ }
172
+ switch (_response.error.reason) {
173
+ case "non-json":
174
+ throw new errors.ChrtError({
175
+ statusCode: _response.error.statusCode,
176
+ body: _response.error.rawBody,
177
+ rawResponse: _response.rawResponse,
178
+ });
179
+ case "timeout":
180
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /connections/org_info_for_connections/courier/create/v1.");
181
+ case "unknown":
182
+ throw new errors.ChrtError({
183
+ message: _response.error.errorMessage,
184
+ rawResponse: _response.rawResponse,
185
+ });
186
+ }
187
+ });
188
+ }
189
+ /**
190
+ * Updates existing courier organization connection information. | (CourierOrgInfoForConnectionsClientUpdate1) -> (bool)
191
+ *
192
+ * @param {Chrt.orgInfoForConnections.CourierOrgInfoForConnectionsClientUpdate1} request
193
+ * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
194
+ *
195
+ * @throws {@link Chrt.UnprocessableEntityError}
196
+ *
197
+ * @example
198
+ * await client.orgInfoForConnections.courier.updateV1()
199
+ */
200
+ updateV1(request = {}, requestOptions) {
201
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(request, requestOptions));
202
+ }
203
+ __updateV1() {
204
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
205
+ var _a, _b, _c, _d;
206
+ 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);
207
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
208
+ 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/courier/update/v1"),
209
+ method: "PATCH",
210
+ headers: _headers,
211
+ contentType: "application/json",
212
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
213
+ requestType: "json",
214
+ body: request,
215
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
216
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
217
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
218
+ });
219
+ if (_response.ok) {
220
+ return { data: _response.body, rawResponse: _response.rawResponse };
221
+ }
222
+ if (_response.error.reason === "status-code") {
223
+ switch (_response.error.statusCode) {
224
+ case 422:
225
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
226
+ default:
227
+ throw new errors.ChrtError({
228
+ statusCode: _response.error.statusCode,
229
+ body: _response.error.body,
230
+ rawResponse: _response.rawResponse,
231
+ });
232
+ }
233
+ }
234
+ switch (_response.error.reason) {
235
+ case "non-json":
236
+ throw new errors.ChrtError({
237
+ statusCode: _response.error.statusCode,
238
+ body: _response.error.rawBody,
239
+ rawResponse: _response.rawResponse,
240
+ });
241
+ case "timeout":
242
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /connections/org_info_for_connections/courier/update/v1.");
243
+ case "unknown":
244
+ throw new errors.ChrtError({
245
+ message: _response.error.errorMessage,
246
+ rawResponse: _response.rawResponse,
247
+ });
248
+ }
249
+ });
250
+ }
251
+ _getAuthorizationHeader() {
252
+ return __awaiter(this, void 0, void 0, function* () {
253
+ const bearer = yield core.Supplier.get(this._options.token);
254
+ if (bearer != null) {
255
+ return `Bearer ${bearer}`;
256
+ }
257
+ return undefined;
258
+ });
259
+ }
260
+ }
@@ -0,0 +1,73 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../index.mjs";
7
+ export declare namespace Forwarder {
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 Forwarder {
31
+ protected readonly _options: Forwarder.Options;
32
+ constructor(_options?: Forwarder.Options);
33
+ /**
34
+ * Retrieves forwarder organization connection information for the authenticated organization. | () -> (ForwarderOrgInfoForConnections1)
35
+ *
36
+ * @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
37
+ *
38
+ * @example
39
+ * await client.orgInfoForConnections.forwarder.getV1()
40
+ */
41
+ getV1(requestOptions?: Forwarder.RequestOptions): core.HttpResponsePromise<Chrt.ForwarderOrgInfoForConnections1>;
42
+ private __getV1;
43
+ /**
44
+ * Creates forwarder organization connection information. Fails if already exists. | (ForwarderOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
45
+ *
46
+ * @param {Chrt.orgInfoForConnections.ForwarderOrgInfoForConnectionsClientCreate1} request
47
+ * @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
48
+ *
49
+ * @throws {@link Chrt.UnprocessableEntityError}
50
+ *
51
+ * @example
52
+ * await client.orgInfoForConnections.forwarder.createV1({
53
+ * schema_version: 1,
54
+ * email_address_primary: "email_address_primary"
55
+ * })
56
+ */
57
+ createV1(request: Chrt.orgInfoForConnections.ForwarderOrgInfoForConnectionsClientCreate1, requestOptions?: Forwarder.RequestOptions): core.HttpResponsePromise<string>;
58
+ private __createV1;
59
+ /**
60
+ * Updates existing forwarder organization connection information. | (ForwarderOrgInfoForConnectionsClientUpdate1) -> (bool)
61
+ *
62
+ * @param {Chrt.orgInfoForConnections.ForwarderOrgInfoForConnectionsClientUpdate1} request
63
+ * @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link Chrt.UnprocessableEntityError}
66
+ *
67
+ * @example
68
+ * await client.orgInfoForConnections.forwarder.updateV1()
69
+ */
70
+ updateV1(request?: Chrt.orgInfoForConnections.ForwarderOrgInfoForConnectionsClientUpdate1, requestOptions?: Forwarder.RequestOptions): core.HttpResponsePromise<boolean>;
71
+ private __updateV1;
72
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
73
+ }
@@ -15,17 +15,17 @@ import * as core from "../../../../../../core/index.mjs";
15
15
  import * as Chrt from "../../../../../index.mjs";
16
16
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
17
17
  import * as errors from "../../../../../../errors/index.mjs";
18
- export class Courier {
18
+ export class Forwarder {
19
19
  constructor(_options = {}) {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves courier organization connection information for the authenticated organization. | () -> (CourierOrgInfoForConnections1)
23
+ * Retrieves forwarder organization connection information for the authenticated organization. | () -> (ForwarderOrgInfoForConnections1)
24
24
  *
25
- * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
25
+ * @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
27
27
  * @example
28
- * await client.orgConnectionInfos.courier.getV1()
28
+ * await client.orgInfoForConnections.forwarder.getV1()
29
29
  */
30
30
  getV1(requestOptions) {
31
31
  return core.HttpResponsePromise.fromPromise(this.__getV1(requestOptions));
@@ -35,7 +35,7 @@ export class Courier {
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/courier/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/forwarder/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 Courier {
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/courier/v1.");
64
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /connections/org_info_for_connections/forwarder/v1.");
65
65
  case "unknown":
66
66
  throw new errors.ChrtError({
67
67
  message: _response.error.errorMessage,
@@ -71,15 +71,15 @@ export class Courier {
71
71
  });
72
72
  }
73
73
  /**
74
- * Creates courier organization connection information. Fails if already exists. | (CourierOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
74
+ * Creates forwarder organization connection information. Fails if already exists. | (ForwarderOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
75
75
  *
76
- * @param {Chrt.orgConnectionInfos.CourierOrgInfoForConnectionsClientCreate1} request
77
- * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
76
+ * @param {Chrt.orgInfoForConnections.ForwarderOrgInfoForConnectionsClientCreate1} request
77
+ * @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
78
78
  *
79
79
  * @throws {@link Chrt.UnprocessableEntityError}
80
80
  *
81
81
  * @example
82
- * await client.orgConnectionInfos.courier.createV1({
82
+ * await client.orgInfoForConnections.forwarder.createV1({
83
83
  * schema_version: 1,
84
84
  * email_address_primary: "email_address_primary"
85
85
  * })
@@ -92,7 +92,7 @@ export class Courier {
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/courier/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/forwarder/create/v1"),
96
96
  method: "POST",
97
97
  headers: _headers,
98
98
  contentType: "application/json",
@@ -126,7 +126,7 @@ export class Courier {
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/courier/create/v1.");
129
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /connections/org_info_for_connections/forwarder/create/v1.");
130
130
  case "unknown":
131
131
  throw new errors.ChrtError({
132
132
  message: _response.error.errorMessage,
@@ -136,15 +136,15 @@ export class Courier {
136
136
  });
137
137
  }
138
138
  /**
139
- * Updates existing courier organization connection information. | (CourierOrgInfoForConnectionsClientUpdate1) -> (bool)
139
+ * Updates existing forwarder organization connection information. | (ForwarderOrgInfoForConnectionsClientUpdate1) -> (bool)
140
140
  *
141
- * @param {Chrt.orgConnectionInfos.CourierOrgInfoForConnectionsClientUpdate1} request
142
- * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
141
+ * @param {Chrt.orgInfoForConnections.ForwarderOrgInfoForConnectionsClientUpdate1} request
142
+ * @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
143
143
  *
144
144
  * @throws {@link Chrt.UnprocessableEntityError}
145
145
  *
146
146
  * @example
147
- * await client.orgConnectionInfos.courier.updateV1()
147
+ * await client.orgInfoForConnections.forwarder.updateV1()
148
148
  */
149
149
  updateV1(request = {}, requestOptions) {
150
150
  return core.HttpResponsePromise.fromPromise(this.__updateV1(request, requestOptions));
@@ -154,7 +154,7 @@ export class Courier {
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/courier/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/forwarder/update/v1"),
158
158
  method: "PATCH",
159
159
  headers: _headers,
160
160
  contentType: "application/json",
@@ -188,7 +188,7 @@ export class Courier {
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/courier/update/v1.");
191
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /connections/org_info_for_connections/forwarder/update/v1.");
192
192
  case "unknown":
193
193
  throw new errors.ChrtError({
194
194
  message: _response.error.errorMessage,
@@ -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
  }