@chrt-inc/typescript-sdk 1.344.1 → 1.353.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 (50) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +7 -9
  3. package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +10 -18
  4. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.ts +1 -7
  5. package/dist/cjs/api/resources/orgs/client/Client.d.ts +10 -0
  6. package/dist/cjs/api/resources/orgs/client/Client.js +51 -0
  7. package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +14 -0
  8. package/dist/cjs/api/resources/taskGroups/client/Client.js +60 -0
  9. package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.d.ts +13 -13
  10. package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.js +48 -48
  11. package/dist/cjs/api/types/LineItemGroupStatusEnum1.d.ts +1 -2
  12. package/dist/cjs/api/types/LineItemGroupStatusEnum1.js +0 -1
  13. package/dist/cjs/api/types/OrgPrivateData1.d.ts +20 -0
  14. package/dist/cjs/api/types/Statement1.d.ts +0 -3
  15. package/dist/cjs/api/types/StatementSortByEnum.d.ts +1 -2
  16. package/dist/cjs/api/types/StatementSortByEnum.js +0 -1
  17. package/dist/cjs/api/types/StatementStatusEnum1.d.ts +1 -2
  18. package/dist/cjs/api/types/StatementStatusEnum1.js +0 -1
  19. package/dist/cjs/api/types/index.d.ts +1 -1
  20. package/dist/cjs/api/types/index.js +1 -1
  21. package/dist/cjs/version.d.ts +1 -1
  22. package/dist/cjs/version.js +1 -1
  23. package/dist/esm/Client.mjs +2 -2
  24. package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +7 -9
  25. package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +10 -18
  26. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.mts +1 -7
  27. package/dist/esm/api/resources/orgs/client/Client.d.mts +10 -0
  28. package/dist/esm/api/resources/orgs/client/Client.mjs +51 -0
  29. package/dist/esm/api/resources/taskGroups/client/Client.d.mts +14 -0
  30. package/dist/esm/api/resources/taskGroups/client/Client.mjs +60 -0
  31. package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.d.mts +13 -13
  32. package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.mjs +48 -48
  33. package/dist/esm/api/types/LineItemGroupStatusEnum1.d.mts +1 -2
  34. package/dist/esm/api/types/LineItemGroupStatusEnum1.mjs +0 -1
  35. package/dist/esm/api/types/OrgPrivateData1.d.mts +20 -0
  36. package/dist/esm/api/types/Statement1.d.mts +0 -3
  37. package/dist/esm/api/types/StatementSortByEnum.d.mts +1 -2
  38. package/dist/esm/api/types/StatementSortByEnum.mjs +0 -1
  39. package/dist/esm/api/types/StatementStatusEnum1.d.mts +1 -2
  40. package/dist/esm/api/types/StatementStatusEnum1.mjs +0 -1
  41. package/dist/esm/api/types/index.d.mts +1 -1
  42. package/dist/esm/api/types/index.mjs +1 -1
  43. package/dist/esm/version.d.mts +1 -1
  44. package/dist/esm/version.mjs +1 -1
  45. package/package.json +1 -1
  46. package/reference.md +153 -29
  47. package/dist/cjs/api/types/SyncInvoiceRes.d.ts +0 -10
  48. package/dist/esm/api/types/SyncInvoiceRes.d.mts +0 -10
  49. /package/dist/cjs/api/types/{SyncInvoiceRes.js → OrgPrivateData1.js} +0 -0
  50. /package/dist/esm/api/types/{SyncInvoiceRes.mjs → OrgPrivateData1.mjs} +0 -0
@@ -20,34 +20,44 @@ export class SharingSettings {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Get all tracking datasets and their sharing settings for a given order. | authz_personas=[shipper_org_operators, forwarder_org_operators, courier_org_operators] | () -> (list[TrackingSharingSettingsRes])
23
+ * Updates the sharing settings for a task group by driver tracking dataset. | authz_personas=[forwarder_org_operators, shipper_org_operators, courier_org_operators, courier_driver] | (TaskGroupByDriverSharingSettingsUpdateReq) -> (TaskGroupByDriverSharingSettings1)
24
24
  *
25
- * @param {string} orderIdOrShortId
25
+ * @param {Chrt.tracking.TaskGroupByDriverSharingSettingsUpdateReq} request
26
26
  * @param {SharingSettings.RequestOptions} requestOptions - Request-specific configuration.
27
27
  *
28
28
  * @throws {@link Chrt.UnprocessableEntityError}
29
29
  *
30
30
  * @example
31
- * await client.tracking.sharingSettings.getSettingsV1("order_id_or_short_id")
31
+ * await client.tracking.sharingSettings.taskGroupByDriverSharingSettingsV1({
32
+ * task_group_id: "task_group_id",
33
+ * driver_id: "driver_id",
34
+ * "public": true
35
+ * })
32
36
  */
33
- getSettingsV1(orderIdOrShortId, requestOptions) {
34
- return core.HttpResponsePromise.fromPromise(this.__getSettingsV1(orderIdOrShortId, requestOptions));
37
+ taskGroupByDriverSharingSettingsV1(request, requestOptions) {
38
+ return core.HttpResponsePromise.fromPromise(this.__taskGroupByDriverSharingSettingsV1(request, requestOptions));
35
39
  }
36
- __getSettingsV1(orderIdOrShortId, requestOptions) {
40
+ __taskGroupByDriverSharingSettingsV1(request, requestOptions) {
37
41
  return __awaiter(this, void 0, void 0, function* () {
38
42
  var _a, _b, _c, _d;
39
43
  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);
40
44
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
41
- 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, `tracking/sharing_settings/by_order/v1/${encodeURIComponent(orderIdOrShortId)}`),
42
- method: "GET",
45
+ 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, "tracking/sharing_settings/task_group_by_driver/v1"),
46
+ method: "POST",
43
47
  headers: _headers,
48
+ contentType: "application/json",
44
49
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
50
+ requestType: "json",
51
+ body: request,
45
52
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
46
53
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
47
54
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
48
55
  });
49
56
  if (_response.ok) {
50
- return { data: _response.body, rawResponse: _response.rawResponse };
57
+ return {
58
+ data: _response.body,
59
+ rawResponse: _response.rawResponse,
60
+ };
51
61
  }
52
62
  if (_response.error.reason === "status-code") {
53
63
  switch (_response.error.statusCode) {
@@ -69,7 +79,7 @@ export class SharingSettings {
69
79
  rawResponse: _response.rawResponse,
70
80
  });
71
81
  case "timeout":
72
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/sharing_settings/by_order/v1/{order_id_or_short_id}.");
82
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sharing_settings/task_group_by_driver/v1.");
73
83
  case "unknown":
74
84
  throw new errors.ChrtError({
75
85
  message: _response.error.errorMessage,
@@ -79,29 +89,30 @@ export class SharingSettings {
79
89
  });
80
90
  }
81
91
  /**
82
- * Updates the sharing settings for a task group by driver tracking dataset. | authz_personas=[forwarder_org_operators, shipper_org_operators, courier_org_operators, courier_driver] | (TaskGroupByDriverSharingSettingsUpdateReq) -> (TaskGroupByDriverSharingSettings1)
92
+ * Updates the sharing settings for a cargo by driver tracking dataset. | authz_personas=[forwarder_org_operators, shipper_org_operators, courier_org_operators, courier_driver] | (CargoByDriverSharingSettingsUpdateReq) -> (CargoByDriverSharingSettings1)
83
93
  *
84
- * @param {Chrt.tracking.TaskGroupByDriverSharingSettingsUpdateReq} request
94
+ * @param {Chrt.tracking.CargoByDriverSharingSettingsUpdateReq} request
85
95
  * @param {SharingSettings.RequestOptions} requestOptions - Request-specific configuration.
86
96
  *
87
97
  * @throws {@link Chrt.UnprocessableEntityError}
88
98
  *
89
99
  * @example
90
- * await client.tracking.sharingSettings.taskGroupByDriverSharingSettingsV1({
100
+ * await client.tracking.sharingSettings.cargoByDriverSettingsV1({
91
101
  * task_group_id: "task_group_id",
102
+ * cargo_id: "cargo_id",
92
103
  * driver_id: "driver_id",
93
104
  * "public": true
94
105
  * })
95
106
  */
96
- taskGroupByDriverSharingSettingsV1(request, requestOptions) {
97
- return core.HttpResponsePromise.fromPromise(this.__taskGroupByDriverSharingSettingsV1(request, requestOptions));
107
+ cargoByDriverSettingsV1(request, requestOptions) {
108
+ return core.HttpResponsePromise.fromPromise(this.__cargoByDriverSettingsV1(request, requestOptions));
98
109
  }
99
- __taskGroupByDriverSharingSettingsV1(request, requestOptions) {
110
+ __cargoByDriverSettingsV1(request, requestOptions) {
100
111
  return __awaiter(this, void 0, void 0, function* () {
101
112
  var _a, _b, _c, _d;
102
113
  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);
103
114
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
104
- 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, "tracking/sharing_settings/task_group_by_driver/v1"),
115
+ 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, "tracking/sharing_settings/cargo_by_driver/v1"),
105
116
  method: "POST",
106
117
  headers: _headers,
107
118
  contentType: "application/json",
@@ -113,10 +124,7 @@ export class SharingSettings {
113
124
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
114
125
  });
115
126
  if (_response.ok) {
116
- return {
117
- data: _response.body,
118
- rawResponse: _response.rawResponse,
119
- };
127
+ return { data: _response.body, rawResponse: _response.rawResponse };
120
128
  }
121
129
  if (_response.error.reason === "status-code") {
122
130
  switch (_response.error.statusCode) {
@@ -138,7 +146,7 @@ export class SharingSettings {
138
146
  rawResponse: _response.rawResponse,
139
147
  });
140
148
  case "timeout":
141
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sharing_settings/task_group_by_driver/v1.");
149
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sharing_settings/cargo_by_driver/v1.");
142
150
  case "unknown":
143
151
  throw new errors.ChrtError({
144
152
  message: _response.error.errorMessage,
@@ -148,30 +156,30 @@ export class SharingSettings {
148
156
  });
149
157
  }
150
158
  /**
151
- * Updates the sharing settings for a cargo by driver tracking dataset. | authz_personas=[forwarder_org_operators, shipper_org_operators, courier_org_operators, courier_driver] | (CargoByDriverSharingSettingsUpdateReq) -> (CargoByDriverSharingSettings1)
159
+ * Updates the sharing settings for a cargo by device tracking dataset. | authz_personas=[forwarder_org_operators, shipper_org_operators, order_creator_org_operators] | (CargoByDeviceSharingSettingsUpdateReq) -> (CargoByDeviceSharingSettings1)
152
160
  *
153
- * @param {Chrt.tracking.CargoByDriverSharingSettingsUpdateReq} request
161
+ * @param {Chrt.tracking.CargoByDeviceSharingSettingsUpdateReq} request
154
162
  * @param {SharingSettings.RequestOptions} requestOptions - Request-specific configuration.
155
163
  *
156
164
  * @throws {@link Chrt.UnprocessableEntityError}
157
165
  *
158
166
  * @example
159
- * await client.tracking.sharingSettings.cargoByDriverSettingsV1({
167
+ * await client.tracking.sharingSettings.cargoByDeviceSettingsV1({
160
168
  * task_group_id: "task_group_id",
161
169
  * cargo_id: "cargo_id",
162
- * driver_id: "driver_id",
170
+ * device_id: "device_id",
163
171
  * "public": true
164
172
  * })
165
173
  */
166
- cargoByDriverSettingsV1(request, requestOptions) {
167
- return core.HttpResponsePromise.fromPromise(this.__cargoByDriverSettingsV1(request, requestOptions));
174
+ cargoByDeviceSettingsV1(request, requestOptions) {
175
+ return core.HttpResponsePromise.fromPromise(this.__cargoByDeviceSettingsV1(request, requestOptions));
168
176
  }
169
- __cargoByDriverSettingsV1(request, requestOptions) {
177
+ __cargoByDeviceSettingsV1(request, requestOptions) {
170
178
  return __awaiter(this, void 0, void 0, function* () {
171
179
  var _a, _b, _c, _d;
172
180
  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);
173
181
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
174
- 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, "tracking/sharing_settings/cargo_by_driver/v1"),
182
+ 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, "tracking/sharing_settings/cargo_by_device/v1"),
175
183
  method: "POST",
176
184
  headers: _headers,
177
185
  contentType: "application/json",
@@ -205,7 +213,7 @@ export class SharingSettings {
205
213
  rawResponse: _response.rawResponse,
206
214
  });
207
215
  case "timeout":
208
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sharing_settings/cargo_by_driver/v1.");
216
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sharing_settings/cargo_by_device/v1.");
209
217
  case "unknown":
210
218
  throw new errors.ChrtError({
211
219
  message: _response.error.errorMessage,
@@ -215,36 +223,28 @@ export class SharingSettings {
215
223
  });
216
224
  }
217
225
  /**
218
- * Updates the sharing settings for a cargo by device tracking dataset. | authz_personas=[forwarder_org_operators, shipper_org_operators, order_creator_org_operators] | (CargoByDeviceSharingSettingsUpdateReq) -> (CargoByDeviceSharingSettings1)
226
+ * Get all tracking datasets and their sharing settings for a given order. If authenticated, returns datasets the user has direct access to plus public datasets. If unauthenticated, returns only datasets with public=True. | () -> (list[TrackingSharingSettingsRes])
219
227
  *
220
- * @param {Chrt.tracking.CargoByDeviceSharingSettingsUpdateReq} request
228
+ * @param {string} orderIdOrShortId
221
229
  * @param {SharingSettings.RequestOptions} requestOptions - Request-specific configuration.
222
230
  *
223
231
  * @throws {@link Chrt.UnprocessableEntityError}
224
232
  *
225
233
  * @example
226
- * await client.tracking.sharingSettings.cargoByDeviceSettingsV1({
227
- * task_group_id: "task_group_id",
228
- * cargo_id: "cargo_id",
229
- * device_id: "device_id",
230
- * "public": true
231
- * })
234
+ * await client.tracking.sharingSettings.getSettingsV1("order_id_or_short_id")
232
235
  */
233
- cargoByDeviceSettingsV1(request, requestOptions) {
234
- return core.HttpResponsePromise.fromPromise(this.__cargoByDeviceSettingsV1(request, requestOptions));
236
+ getSettingsV1(orderIdOrShortId, requestOptions) {
237
+ return core.HttpResponsePromise.fromPromise(this.__getSettingsV1(orderIdOrShortId, requestOptions));
235
238
  }
236
- __cargoByDeviceSettingsV1(request, requestOptions) {
239
+ __getSettingsV1(orderIdOrShortId, requestOptions) {
237
240
  return __awaiter(this, void 0, void 0, function* () {
238
241
  var _a, _b, _c, _d;
239
242
  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);
240
243
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
241
- 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, "tracking/sharing_settings/cargo_by_device/v1"),
242
- method: "POST",
244
+ 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, `tracking/sharing_settings/by_order/v1/${encodeURIComponent(orderIdOrShortId)}`),
245
+ method: "GET",
243
246
  headers: _headers,
244
- contentType: "application/json",
245
247
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
246
- requestType: "json",
247
- body: request,
248
248
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
249
249
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
250
250
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -272,7 +272,7 @@ export class SharingSettings {
272
272
  rawResponse: _response.rawResponse,
273
273
  });
274
274
  case "timeout":
275
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sharing_settings/cargo_by_device/v1.");
275
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/sharing_settings/by_order/v1/{order_id_or_short_id}.");
276
276
  case "unknown":
277
277
  throw new errors.ChrtError({
278
278
  message: _response.error.errorMessage,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type LineItemGroupStatusEnum1 = "staged" | "pending_rates" | "pending_calculation" | "adjustable" | "finalized" | "open" | "paid" | "uncollectible" | "void";
4
+ export type LineItemGroupStatusEnum1 = "staged" | "pending_rates" | "pending_calculation" | "adjustable" | "finalized" | "open" | "paid" | "uncollectible";
5
5
  export declare const LineItemGroupStatusEnum1: {
6
6
  readonly Staged: "staged";
7
7
  readonly PendingRates: "pending_rates";
@@ -11,5 +11,4 @@ export declare const LineItemGroupStatusEnum1: {
11
11
  readonly Open: "open";
12
12
  readonly Paid: "paid";
13
13
  readonly Uncollectible: "uncollectible";
14
- readonly Void: "void";
15
14
  };
@@ -10,5 +10,4 @@ export const LineItemGroupStatusEnum1 = {
10
10
  Open: "open",
11
11
  Paid: "paid",
12
12
  Uncollectible: "uncollectible",
13
- Void: "void",
14
13
  };
@@ -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
+ export interface OrgPrivateData1 {
6
+ schema_version: number;
7
+ org_type: Chrt.OrgTypeEnum;
8
+ /** Must be a string starting with `org_` */
9
+ org_id: string;
10
+ stripe_connect_account_id?: string | null;
11
+ default_rate_sheet__routed__shipper_pay_courier?: string | null;
12
+ default_rate_sheet__on_demand__shipper_pay_courier?: string | null;
13
+ default_rate_sheet__routed__courier_pay_driver?: string | null;
14
+ default_rate_sheet__on_demand__courier_pay_driver?: string | null;
15
+ default_rate_sheet__routed__shipper_pay_forwarder?: string | null;
16
+ default_rate_sheet__on_demand__shipper_pay_forwarder?: string | null;
17
+ default_rate_sheet__routed__forwarder_pay_courier?: string | null;
18
+ default_rate_sheet__on_demand__forwarder_pay_courier?: string | null;
19
+ _id: string;
20
+ }
@@ -29,14 +29,11 @@ export interface Statement1 {
29
29
  staged_at_timestamp?: string | null;
30
30
  opened_at_timestamp?: string | null;
31
31
  paid_at_timestamp?: string | null;
32
- voided_at_timestamp?: string | null;
33
32
  uncollectible_at_timestamp?: string | null;
34
33
  /** Must be a string starting with `user_` */
35
34
  marked_open_by_user_id?: string | null;
36
35
  /** Must be a string starting with `user_` */
37
36
  marked_paid_by_user_id?: string | null;
38
37
  /** Must be a string starting with `user_` */
39
- marked_voided_by_user_id?: string | null;
40
- /** Must be a string starting with `user_` */
41
38
  marked_uncollectible_by_user_id?: string | null;
42
39
  }
@@ -1,12 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type StatementSortByEnum = "amount" | "staged_at_timestamp" | "opened_at_timestamp" | "paid_at_timestamp" | "voided_at_timestamp" | "uncollectible_at_timestamp";
4
+ export type StatementSortByEnum = "amount" | "staged_at_timestamp" | "opened_at_timestamp" | "paid_at_timestamp" | "uncollectible_at_timestamp";
5
5
  export declare const StatementSortByEnum: {
6
6
  readonly Amount: "amount";
7
7
  readonly StagedAtTimestamp: "staged_at_timestamp";
8
8
  readonly OpenedAtTimestamp: "opened_at_timestamp";
9
9
  readonly PaidAtTimestamp: "paid_at_timestamp";
10
- readonly VoidedAtTimestamp: "voided_at_timestamp";
11
10
  readonly UncollectibleAtTimestamp: "uncollectible_at_timestamp";
12
11
  };
@@ -6,6 +6,5 @@ export const StatementSortByEnum = {
6
6
  StagedAtTimestamp: "staged_at_timestamp",
7
7
  OpenedAtTimestamp: "opened_at_timestamp",
8
8
  PaidAtTimestamp: "paid_at_timestamp",
9
- VoidedAtTimestamp: "voided_at_timestamp",
10
9
  UncollectibleAtTimestamp: "uncollectible_at_timestamp",
11
10
  };
@@ -1,11 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type StatementStatusEnum1 = "staged" | "open" | "paid" | "uncollectible" | "void";
4
+ export type StatementStatusEnum1 = "staged" | "open" | "paid" | "uncollectible";
5
5
  export declare const StatementStatusEnum1: {
6
6
  readonly Staged: "staged";
7
7
  readonly Open: "open";
8
8
  readonly Paid: "paid";
9
9
  readonly Uncollectible: "uncollectible";
10
- readonly Void: "void";
11
10
  };
@@ -6,5 +6,4 @@ export const StatementStatusEnum1 = {
6
6
  Open: "open",
7
7
  Paid: "paid",
8
8
  Uncollectible: "uncollectible",
9
- Void: "void",
10
9
  };
@@ -67,6 +67,7 @@ export * from "./OrdersExpandedListRes.mjs";
67
67
  export * from "./OrdersNewDraftRes.mjs";
68
68
  export * from "./OrgMemberDetails.mjs";
69
69
  export * from "./OrgMembersAndDrivers.mjs";
70
+ export * from "./OrgPrivateData1.mjs";
70
71
  export * from "./OrgProfileRes1.mjs";
71
72
  export * from "./OrgPublicData1.mjs";
72
73
  export * from "./OrgRoleEnum.mjs";
@@ -106,7 +107,6 @@ export * from "./StatementStatusEnum1.mjs";
106
107
  export * from "./StatementsListRes.mjs";
107
108
  export * from "./StripeConnectAccountOnboardingLinkRes.mjs";
108
109
  export * from "./StripeConnectInvoiceStatusEnum.mjs";
109
- export * from "./SyncInvoiceRes.mjs";
110
110
  export * from "./Task1.mjs";
111
111
  export * from "./TaskArtifact1.mjs";
112
112
  export * from "./TaskArtifactClientCreate1.mjs";
@@ -67,6 +67,7 @@ export * from "./OrdersExpandedListRes.mjs";
67
67
  export * from "./OrdersNewDraftRes.mjs";
68
68
  export * from "./OrgMemberDetails.mjs";
69
69
  export * from "./OrgMembersAndDrivers.mjs";
70
+ export * from "./OrgPrivateData1.mjs";
70
71
  export * from "./OrgProfileRes1.mjs";
71
72
  export * from "./OrgPublicData1.mjs";
72
73
  export * from "./OrgRoleEnum.mjs";
@@ -106,7 +107,6 @@ export * from "./StatementStatusEnum1.mjs";
106
107
  export * from "./StatementsListRes.mjs";
107
108
  export * from "./StripeConnectAccountOnboardingLinkRes.mjs";
108
109
  export * from "./StripeConnectInvoiceStatusEnum.mjs";
109
- export * from "./SyncInvoiceRes.mjs";
110
110
  export * from "./Task1.mjs";
111
111
  export * from "./TaskArtifact1.mjs";
112
112
  export * from "./TaskArtifactClientCreate1.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.344.1";
1
+ export declare const SDK_VERSION = "1.353.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.344.1";
1
+ export const SDK_VERSION = "1.353.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.344.1",
3
+ "version": "1.353.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",