@chrt-inc/typescript-sdk 0.0.183-b → 0.0.184

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 (96) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/dev/client/Client.d.ts +10 -10
  3. package/dist/cjs/api/resources/dev/client/Client.js +47 -47
  4. package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +1 -1
  5. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +1 -1
  6. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +1 -1
  7. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +1 -1
  8. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +1 -1
  9. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +1 -1
  10. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +1 -1
  11. package/dist/cjs/api/resources/payments/client/Client.d.ts +41 -0
  12. package/dist/cjs/api/resources/payments/client/Client.js +174 -0
  13. package/dist/cjs/api/resources/payments/client/requests/CreateConnectAccountLinkReq.d.ts +12 -0
  14. package/dist/cjs/api/resources/payments/client/requests/CreateDirectChargeReq.d.ts +17 -0
  15. package/dist/cjs/api/resources/payments/client/requests/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +1 -1
  17. package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +1 -1
  18. package/dist/cjs/api/types/{BaseModel.d.ts → CreateConnectAccountLinkRes.d.ts} +2 -1
  19. package/dist/cjs/api/types/CreateConnectAccountRes.d.ts +6 -0
  20. package/dist/cjs/api/types/CreateDirectChargeRes.d.ts +8 -0
  21. package/dist/cjs/api/types/CreateDirectChargeRes.js +5 -0
  22. package/dist/cjs/api/types/Driver1.d.ts +1 -1
  23. package/dist/cjs/api/types/LocationFeature.d.ts +17 -0
  24. package/dist/cjs/api/types/LocationFeature.js +5 -0
  25. package/dist/cjs/api/types/{FeatureInputGeometry.d.ts → LocationFeatureInputGeometry.d.ts} +2 -2
  26. package/dist/cjs/api/types/LocationFeatureInputGeometry.js +5 -0
  27. package/dist/cjs/api/types/{FeatureOutputGeometry.d.ts → LocationFeatureOutputGeometry.d.ts} +2 -2
  28. package/dist/cjs/api/types/LocationFeatureOutputGeometry.js +5 -0
  29. package/dist/cjs/api/types/LocationProperties.d.ts +11 -0
  30. package/dist/cjs/api/types/LocationProperties.js +5 -0
  31. package/dist/cjs/api/types/Milestone1.d.ts +1 -1
  32. package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +1 -1
  33. package/dist/cjs/api/types/ShipperContactInfo1.d.ts +1 -1
  34. package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +1 -1
  35. package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +1 -1
  36. package/dist/cjs/api/types/Task1.d.ts +1 -1
  37. package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
  38. package/dist/cjs/api/types/UserPublicData6.d.ts +1 -0
  39. package/dist/cjs/api/types/index.d.ts +7 -4
  40. package/dist/cjs/api/types/index.js +7 -4
  41. package/dist/cjs/version.d.ts +1 -1
  42. package/dist/cjs/version.js +1 -1
  43. package/dist/esm/Client.mjs +2 -2
  44. package/dist/esm/api/resources/dev/client/Client.d.mts +10 -10
  45. package/dist/esm/api/resources/dev/client/Client.mjs +47 -47
  46. package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +1 -1
  47. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +1 -1
  48. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +1 -1
  49. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +1 -1
  50. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +1 -1
  51. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +1 -1
  52. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +1 -1
  53. package/dist/esm/api/resources/payments/client/Client.d.mts +41 -0
  54. package/dist/esm/api/resources/payments/client/Client.mjs +174 -0
  55. package/dist/esm/api/resources/payments/client/requests/CreateConnectAccountLinkReq.d.mts +12 -0
  56. package/dist/esm/api/resources/payments/client/requests/CreateDirectChargeReq.d.mts +17 -0
  57. package/dist/esm/api/resources/payments/client/requests/index.d.mts +2 -0
  58. package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +1 -1
  59. package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +1 -1
  60. package/dist/esm/api/types/{BaseModel.d.mts → CreateConnectAccountLinkRes.d.mts} +2 -1
  61. package/dist/esm/api/types/CreateConnectAccountRes.d.mts +6 -0
  62. package/dist/esm/api/types/CreateDirectChargeRes.d.mts +8 -0
  63. package/dist/esm/api/types/CreateDirectChargeRes.mjs +4 -0
  64. package/dist/esm/api/types/Driver1.d.mts +1 -1
  65. package/dist/esm/api/types/LocationFeature.d.mts +17 -0
  66. package/dist/esm/api/types/LocationFeature.mjs +4 -0
  67. package/dist/esm/api/types/{FeatureInputGeometry.d.mts → LocationFeatureInputGeometry.d.mts} +2 -2
  68. package/dist/esm/api/types/LocationFeatureInputGeometry.mjs +4 -0
  69. package/dist/esm/api/types/{FeatureOutputGeometry.d.mts → LocationFeatureOutputGeometry.d.mts} +2 -2
  70. package/dist/esm/api/types/LocationFeatureOutputGeometry.mjs +4 -0
  71. package/dist/esm/api/types/LocationProperties.d.mts +11 -0
  72. package/dist/esm/api/types/LocationProperties.mjs +4 -0
  73. package/dist/esm/api/types/Milestone1.d.mts +1 -1
  74. package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +1 -1
  75. package/dist/esm/api/types/ShipperContactInfo1.d.mts +1 -1
  76. package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +1 -1
  77. package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +1 -1
  78. package/dist/esm/api/types/Task1.d.mts +1 -1
  79. package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
  80. package/dist/esm/api/types/UserPublicData6.d.mts +1 -0
  81. package/dist/esm/api/types/index.d.mts +7 -4
  82. package/dist/esm/api/types/index.mjs +7 -4
  83. package/dist/esm/version.d.mts +1 -1
  84. package/dist/esm/version.mjs +1 -1
  85. package/package.json +1 -1
  86. package/reference.md +207 -21
  87. package/dist/cjs/api/types/Feature.d.ts +0 -18
  88. package/dist/esm/api/types/Feature.d.mts +0 -18
  89. /package/dist/cjs/api/{types/BaseModel.js → resources/payments/client/requests/CreateConnectAccountLinkReq.js} +0 -0
  90. /package/dist/cjs/api/{types/Feature.js → resources/payments/client/requests/CreateDirectChargeReq.js} +0 -0
  91. /package/dist/cjs/api/types/{FeatureInputGeometry.js → CreateConnectAccountLinkRes.js} +0 -0
  92. /package/dist/cjs/api/types/{FeatureOutputGeometry.js → CreateConnectAccountRes.js} +0 -0
  93. /package/dist/esm/api/{types/BaseModel.mjs → resources/payments/client/requests/CreateConnectAccountLinkReq.mjs} +0 -0
  94. /package/dist/esm/api/{types/Feature.mjs → resources/payments/client/requests/CreateDirectChargeReq.mjs} +0 -0
  95. /package/dist/esm/api/types/{FeatureInputGeometry.mjs → CreateConnectAccountLinkRes.mjs} +0 -0
  96. /package/dist/esm/api/types/{FeatureOutputGeometry.mjs → CreateConnectAccountRes.mjs} +0 -0
@@ -81,6 +81,180 @@ export class Payments {
81
81
  }
82
82
  });
83
83
  }
84
+ /**
85
+ * Create a Stripe Connect account for receiving payments
86
+ *
87
+ * @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
88
+ *
89
+ * @example
90
+ * await client.payments.createConnectAccount()
91
+ */
92
+ createConnectAccount(requestOptions) {
93
+ return core.HttpResponsePromise.fromPromise(this.__createConnectAccount(requestOptions));
94
+ }
95
+ __createConnectAccount(requestOptions) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ var _a, _b, _c, _d;
98
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
99
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "payments/create-connect-account"),
100
+ method: "POST",
101
+ headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
102
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
103
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
104
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
105
+ });
106
+ if (_response.ok) {
107
+ return { data: _response.body, rawResponse: _response.rawResponse };
108
+ }
109
+ if (_response.error.reason === "status-code") {
110
+ throw new errors.ChrtError({
111
+ statusCode: _response.error.statusCode,
112
+ body: _response.error.body,
113
+ rawResponse: _response.rawResponse,
114
+ });
115
+ }
116
+ switch (_response.error.reason) {
117
+ case "non-json":
118
+ throw new errors.ChrtError({
119
+ statusCode: _response.error.statusCode,
120
+ body: _response.error.rawBody,
121
+ rawResponse: _response.rawResponse,
122
+ });
123
+ case "timeout":
124
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /payments/create-connect-account.");
125
+ case "unknown":
126
+ throw new errors.ChrtError({
127
+ message: _response.error.errorMessage,
128
+ rawResponse: _response.rawResponse,
129
+ });
130
+ }
131
+ });
132
+ }
133
+ /**
134
+ * Create an onboarding link for a Stripe Connect account
135
+ *
136
+ * @param {Chrt.CreateConnectAccountLinkReq} request
137
+ * @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
138
+ *
139
+ * @throws {@link Chrt.UnprocessableEntityError}
140
+ *
141
+ * @example
142
+ * await client.payments.createConnectAccountLink({
143
+ * account_id: "account_id"
144
+ * })
145
+ */
146
+ createConnectAccountLink(request, requestOptions) {
147
+ return core.HttpResponsePromise.fromPromise(this.__createConnectAccountLink(request, requestOptions));
148
+ }
149
+ __createConnectAccountLink(request, requestOptions) {
150
+ return __awaiter(this, void 0, void 0, function* () {
151
+ var _a, _b, _c, _d;
152
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
153
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "payments/create-connect-account-link"),
154
+ method: "POST",
155
+ headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
+ contentType: "application/json",
157
+ requestType: "json",
158
+ body: request,
159
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
160
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
161
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
162
+ });
163
+ if (_response.ok) {
164
+ return { data: _response.body, rawResponse: _response.rawResponse };
165
+ }
166
+ if (_response.error.reason === "status-code") {
167
+ switch (_response.error.statusCode) {
168
+ case 422:
169
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
170
+ default:
171
+ throw new errors.ChrtError({
172
+ statusCode: _response.error.statusCode,
173
+ body: _response.error.body,
174
+ rawResponse: _response.rawResponse,
175
+ });
176
+ }
177
+ }
178
+ switch (_response.error.reason) {
179
+ case "non-json":
180
+ throw new errors.ChrtError({
181
+ statusCode: _response.error.statusCode,
182
+ body: _response.error.rawBody,
183
+ rawResponse: _response.rawResponse,
184
+ });
185
+ case "timeout":
186
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /payments/create-connect-account-link.");
187
+ case "unknown":
188
+ throw new errors.ChrtError({
189
+ message: _response.error.errorMessage,
190
+ rawResponse: _response.rawResponse,
191
+ });
192
+ }
193
+ });
194
+ }
195
+ /**
196
+ * Create a direct charge checkout session to a Connect account
197
+ *
198
+ * @param {Chrt.CreateDirectChargeReq} request
199
+ * @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
200
+ *
201
+ * @throws {@link Chrt.UnprocessableEntityError}
202
+ *
203
+ * @example
204
+ * await client.payments.createDirectCharge({
205
+ * amount: 1,
206
+ * connect_account_id: "connect_account_id"
207
+ * })
208
+ */
209
+ createDirectCharge(request, requestOptions) {
210
+ return core.HttpResponsePromise.fromPromise(this.__createDirectCharge(request, requestOptions));
211
+ }
212
+ __createDirectCharge(request, requestOptions) {
213
+ return __awaiter(this, void 0, void 0, function* () {
214
+ var _a, _b, _c, _d;
215
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
216
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "payments/create-direct-charge"),
217
+ method: "POST",
218
+ headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
219
+ contentType: "application/json",
220
+ requestType: "json",
221
+ body: request,
222
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
223
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
224
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
225
+ });
226
+ if (_response.ok) {
227
+ return { data: _response.body, rawResponse: _response.rawResponse };
228
+ }
229
+ if (_response.error.reason === "status-code") {
230
+ switch (_response.error.statusCode) {
231
+ case 422:
232
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
233
+ default:
234
+ throw new errors.ChrtError({
235
+ statusCode: _response.error.statusCode,
236
+ body: _response.error.body,
237
+ rawResponse: _response.rawResponse,
238
+ });
239
+ }
240
+ }
241
+ switch (_response.error.reason) {
242
+ case "non-json":
243
+ throw new errors.ChrtError({
244
+ statusCode: _response.error.statusCode,
245
+ body: _response.error.rawBody,
246
+ rawResponse: _response.rawResponse,
247
+ });
248
+ case "timeout":
249
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /payments/create-direct-charge.");
250
+ case "unknown":
251
+ throw new errors.ChrtError({
252
+ message: _response.error.errorMessage,
253
+ rawResponse: _response.rawResponse,
254
+ });
255
+ }
256
+ });
257
+ }
84
258
  /**
85
259
  * Synchronizes subscription data from Stripe to the authentication service for the current user.
86
260
  *
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * account_id: "account_id"
8
+ * }
9
+ */
10
+ export interface CreateConnectAccountLinkReq {
11
+ account_id: string;
12
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * amount: 1,
8
+ * connect_account_id: "connect_account_id"
9
+ * }
10
+ */
11
+ export interface CreateDirectChargeReq {
12
+ amount: number;
13
+ connect_account_id: string;
14
+ description?: string;
15
+ success_url?: string;
16
+ cancel_url?: string;
17
+ }
@@ -1 +1,3 @@
1
1
  export { type CreateCheckoutSessionReq2 } from "./CreateCheckoutSessionReq2.mjs";
2
+ export { type CreateConnectAccountLinkReq } from "./CreateConnectAccountLinkReq.mjs";
3
+ export { type CreateDirectChargeReq } from "./CreateDirectChargeReq.mjs";
@@ -9,7 +9,7 @@ import * as Chrt from "../../../../index.mjs";
9
9
  export interface ShipperContactInfoClientUpdate1 {
10
10
  company_name?: string | null;
11
11
  industry?: string | null;
12
- street_address?: Chrt.Feature | null;
12
+ street_address?: Chrt.LocationFeature | null;
13
13
  contact_first_name?: string | null;
14
14
  contact_last_name?: string | null;
15
15
  phone_number_primary?: string | null;
@@ -5,7 +5,7 @@ import * as Chrt from "../index.mjs";
5
5
  export interface CourierOrgConnectionInfo1 {
6
6
  schema_version: number;
7
7
  industry?: string | null;
8
- street_address?: Chrt.Feature | null;
8
+ street_address?: Chrt.LocationFeature | null;
9
9
  contact_first_name?: string | null;
10
10
  contact_last_name?: string | null;
11
11
  phone_number_primary?: string | null;
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface BaseModel {
4
+ export interface CreateConnectAccountLinkRes {
5
+ url: string;
5
6
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CreateConnectAccountRes {
5
+ account_id: string;
6
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CreateDirectChargeRes {
5
+ checkout_session_id: string;
6
+ checkout_url: string;
7
+ status: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -13,7 +13,7 @@ export interface Driver1 {
13
13
  last_name?: string | null;
14
14
  vehicle_types?: Chrt.VehicleTypeEnum[];
15
15
  status?: Chrt.DriverStatusEnum;
16
- last_seen_at_location?: Chrt.Feature | null;
16
+ last_seen_at_location?: Chrt.LocationFeature | null;
17
17
  last_seen_at_timestamp?: string | null;
18
18
  _id: string;
19
19
  /** Must be a string starting with `org_` */
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ /**
6
+ * GeoJSON Feature with typed properties for locations
7
+ */
8
+ export interface LocationFeature {
9
+ bbox?: unknown[];
10
+ type: "Feature";
11
+ geometry?: Chrt.LocationFeatureOutputGeometry | null;
12
+ properties?: Chrt.LocationProperties | null;
13
+ id?: LocationFeature.Id | null;
14
+ }
15
+ export declare namespace LocationFeature {
16
+ type Id = number | string;
17
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.mjs";
5
- export type FeatureInputGeometry = Chrt.FeatureInputGeometry.GeometryCollection | Chrt.FeatureInputGeometry.LineString | Chrt.FeatureInputGeometry.MultiLineString | Chrt.FeatureInputGeometry.MultiPoint | Chrt.FeatureInputGeometry.MultiPolygon | Chrt.FeatureInputGeometry.Point | Chrt.FeatureInputGeometry.Polygon;
6
- export declare namespace FeatureInputGeometry {
5
+ export type LocationFeatureInputGeometry = Chrt.LocationFeatureInputGeometry.GeometryCollection | Chrt.LocationFeatureInputGeometry.LineString | Chrt.LocationFeatureInputGeometry.MultiLineString | Chrt.LocationFeatureInputGeometry.MultiPoint | Chrt.LocationFeatureInputGeometry.MultiPolygon | Chrt.LocationFeatureInputGeometry.Point | Chrt.LocationFeatureInputGeometry.Polygon;
6
+ export declare namespace LocationFeatureInputGeometry {
7
7
  interface GeometryCollection extends Chrt.GeometryCollection {
8
8
  type: "GeometryCollection";
9
9
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.mjs";
5
- export type FeatureOutputGeometry = Chrt.FeatureOutputGeometry.GeometryCollection | Chrt.FeatureOutputGeometry.LineString | Chrt.FeatureOutputGeometry.MultiLineString | Chrt.FeatureOutputGeometry.MultiPoint | Chrt.FeatureOutputGeometry.MultiPolygon | Chrt.FeatureOutputGeometry.Point | Chrt.FeatureOutputGeometry.Polygon;
6
- export declare namespace FeatureOutputGeometry {
5
+ export type LocationFeatureOutputGeometry = Chrt.LocationFeatureOutputGeometry.GeometryCollection | Chrt.LocationFeatureOutputGeometry.LineString | Chrt.LocationFeatureOutputGeometry.MultiLineString | Chrt.LocationFeatureOutputGeometry.MultiPoint | Chrt.LocationFeatureOutputGeometry.MultiPolygon | Chrt.LocationFeatureOutputGeometry.Point | Chrt.LocationFeatureOutputGeometry.Polygon;
6
+ export declare namespace LocationFeatureOutputGeometry {
7
7
  interface GeometryCollection extends Chrt.GeometryCollection {
8
8
  type: "GeometryCollection";
9
9
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Properties for GeoJSON Feature objects
6
+ */
7
+ export interface LocationProperties {
8
+ address?: string | null;
9
+ name?: string | null;
10
+ mapbox_id?: string | null;
11
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -11,7 +11,7 @@ export interface Milestone1 {
11
11
  order_short_id: string;
12
12
  task_id: string;
13
13
  completed_at_timestamp?: string | null;
14
- completed_at_geojson_feature?: Chrt.Feature | null;
14
+ completed_at_geojson_feature?: Chrt.LocationFeature | null;
15
15
  /** Must be a string starting with `user_` */
16
16
  completed_by_user_id?: string | null;
17
17
  completed: boolean;
@@ -5,7 +5,7 @@ import * as Chrt from "../index.mjs";
5
5
  export interface OffChrtShipperOrgConnectionInfo1 {
6
6
  schema_version: number;
7
7
  industry?: string | null;
8
- street_address?: Chrt.Feature | null;
8
+ street_address?: Chrt.LocationFeature | null;
9
9
  contact_first_name?: string | null;
10
10
  contact_last_name?: string | null;
11
11
  phone_number_primary?: string | null;
@@ -6,7 +6,7 @@ export interface ShipperContactInfo1 {
6
6
  schema_version: number;
7
7
  company_name?: string | null;
8
8
  industry?: string | null;
9
- street_address?: Chrt.Feature | null;
9
+ street_address?: Chrt.LocationFeature | null;
10
10
  contact_first_name?: string | null;
11
11
  contact_last_name?: string | null;
12
12
  phone_number_primary?: string | null;
@@ -6,7 +6,7 @@ export interface ShipperContactInfoClientCreate1 {
6
6
  schema_version: number;
7
7
  company_name?: string | null;
8
8
  industry?: string | null;
9
- street_address?: Chrt.Feature | null;
9
+ street_address?: Chrt.LocationFeature | null;
10
10
  contact_first_name?: string | null;
11
11
  contact_last_name?: string | null;
12
12
  phone_number_primary?: string | null;
@@ -5,7 +5,7 @@ import * as Chrt from "../index.mjs";
5
5
  export interface ShipperOrgConnectionInfo1 {
6
6
  schema_version: number;
7
7
  industry?: string | null;
8
- street_address?: Chrt.Feature | null;
8
+ street_address?: Chrt.LocationFeature | null;
9
9
  contact_first_name?: string | null;
10
10
  contact_last_name?: string | null;
11
11
  phone_number_primary?: string | null;
@@ -4,7 +4,7 @@
4
4
  import * as Chrt from "../index.mjs";
5
5
  export interface Task1 {
6
6
  schema_version: number;
7
- location?: Chrt.Feature | null;
7
+ location?: Chrt.LocationFeature | null;
8
8
  action?: Task1.Action | null;
9
9
  shipper_contact_info_ids?: string[] | null;
10
10
  arrive_by?: string | null;
@@ -4,7 +4,7 @@
4
4
  import * as Chrt from "../index.mjs";
5
5
  export interface TaskClientCreate1 {
6
6
  schema_version: number;
7
- location?: Chrt.Feature | null;
7
+ location?: Chrt.LocationFeature | null;
8
8
  action?: TaskClientCreate1.Action | null;
9
9
  shipper_contact_info_ids?: string[] | null;
10
10
  arrive_by?: string | null;
@@ -8,6 +8,7 @@ export interface UserPublicData6 {
8
8
  courier_profile_is_public: boolean;
9
9
  user_id: string;
10
10
  customer_id?: string | null;
11
+ connect_account_id?: string | null;
11
12
  primary_email_address?: string | null;
12
13
  notes?: Record<string, unknown> | null;
13
14
  _id: string;
@@ -1,4 +1,3 @@
1
- export * from "./BaseModel.mjs";
2
1
  export * from "./Cargo1.mjs";
3
2
  export * from "./CargoClientCreate1.mjs";
4
3
  export * from "./CargoTypeEnum1.mjs";
@@ -10,14 +9,14 @@ export * from "./CourierPayDriverLineItemGroup1.mjs";
10
9
  export * from "./CourierPayDriverLineItemGroupClientCreate1.mjs";
11
10
  export * from "./CourierPayDriverRateSheet1.mjs";
12
11
  export * from "./CreateCheckoutSessionRes2.mjs";
12
+ export * from "./CreateConnectAccountLinkRes.mjs";
13
+ export * from "./CreateConnectAccountRes.mjs";
14
+ export * from "./CreateDirectChargeRes.mjs";
13
15
  export * from "./CreateOrderRes.mjs";
14
16
  export * from "./DecodedJwtWithOrgAndUserId.mjs";
15
17
  export * from "./Driver1.mjs";
16
18
  export * from "./DriverStatusEnum.mjs";
17
19
  export * from "./Expense1.mjs";
18
- export * from "./FeatureInputGeometry.mjs";
19
- export * from "./Feature.mjs";
20
- export * from "./FeatureOutputGeometry.mjs";
21
20
  export * from "./GeometryCollectionInputGeometriesItem.mjs";
22
21
  export * from "./GeometryCollection.mjs";
23
22
  export * from "./GeometryCollectionOutputGeometriesItem.mjs";
@@ -30,6 +29,10 @@ export * from "./Insurance1.mjs";
30
29
  export * from "./LineItem1.mjs";
31
30
  export * from "./LineItemEnum1.mjs";
32
31
  export * from "./LineString.mjs";
32
+ export * from "./LocationFeatureInputGeometry.mjs";
33
+ export * from "./LocationFeature.mjs";
34
+ export * from "./LocationFeatureOutputGeometry.mjs";
35
+ export * from "./LocationProperties.mjs";
33
36
  export * from "./Milestone1.mjs";
34
37
  export * from "./MilestoneClientCreate1.mjs";
35
38
  export * from "./MilestoneNotificationPreferences1.mjs";
@@ -1,4 +1,3 @@
1
- export * from "./BaseModel.mjs";
2
1
  export * from "./Cargo1.mjs";
3
2
  export * from "./CargoClientCreate1.mjs";
4
3
  export * from "./CargoTypeEnum1.mjs";
@@ -10,14 +9,14 @@ export * from "./CourierPayDriverLineItemGroup1.mjs";
10
9
  export * from "./CourierPayDriverLineItemGroupClientCreate1.mjs";
11
10
  export * from "./CourierPayDriverRateSheet1.mjs";
12
11
  export * from "./CreateCheckoutSessionRes2.mjs";
12
+ export * from "./CreateConnectAccountLinkRes.mjs";
13
+ export * from "./CreateConnectAccountRes.mjs";
14
+ export * from "./CreateDirectChargeRes.mjs";
13
15
  export * from "./CreateOrderRes.mjs";
14
16
  export * from "./DecodedJwtWithOrgAndUserId.mjs";
15
17
  export * from "./Driver1.mjs";
16
18
  export * from "./DriverStatusEnum.mjs";
17
19
  export * from "./Expense1.mjs";
18
- export * from "./FeatureInputGeometry.mjs";
19
- export * from "./Feature.mjs";
20
- export * from "./FeatureOutputGeometry.mjs";
21
20
  export * from "./GeometryCollectionInputGeometriesItem.mjs";
22
21
  export * from "./GeometryCollection.mjs";
23
22
  export * from "./GeometryCollectionOutputGeometriesItem.mjs";
@@ -30,6 +29,10 @@ export * from "./Insurance1.mjs";
30
29
  export * from "./LineItem1.mjs";
31
30
  export * from "./LineItemEnum1.mjs";
32
31
  export * from "./LineString.mjs";
32
+ export * from "./LocationFeatureInputGeometry.mjs";
33
+ export * from "./LocationFeature.mjs";
34
+ export * from "./LocationFeatureOutputGeometry.mjs";
35
+ export * from "./LocationProperties.mjs";
33
36
  export * from "./Milestone1.mjs";
34
37
  export * from "./MilestoneClientCreate1.mjs";
35
38
  export * from "./MilestoneNotificationPreferences1.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.183-b";
1
+ export declare const SDK_VERSION = "0.0.184";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.183-b";
1
+ export const SDK_VERSION = "0.0.184";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "0.0.183-b",
3
+ "version": "0.0.184",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",