@chrt-inc/typescript-sdk 1.304.0 → 1.306.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 (145) hide show
  1. package/README.md +585 -0
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/drivers/client/Client.d.ts +10 -10
  4. package/dist/cjs/api/resources/drivers/client/Client.js +10 -10
  5. package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.d.ts +5 -5
  6. package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.js +5 -5
  7. package/dist/cjs/api/resources/orderDrafts/client/Client.d.ts +6 -6
  8. package/dist/cjs/api/resources/orderDrafts/client/Client.js +6 -6
  9. package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/Client.d.ts +4 -4
  10. package/dist/cjs/api/resources/orderDrafts/resources/cargo/client/Client.js +4 -4
  11. package/dist/cjs/api/resources/orderDrafts/resources/task/client/Client.d.ts +3 -3
  12. package/dist/cjs/api/resources/orderDrafts/resources/task/client/Client.js +3 -3
  13. package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/Client.d.ts +2 -2
  14. package/dist/cjs/api/resources/orderDrafts/resources/taskArtifact/client/Client.js +2 -2
  15. package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +16 -2
  16. package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/Client.js +65 -2
  17. package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/requests/UpdateTaskGroupDraftReq.d.ts +13 -0
  18. package/dist/cjs/api/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +1 -0
  19. package/dist/cjs/api/resources/orders/client/Client.d.ts +1 -1
  20. package/dist/cjs/api/resources/orders/client/Client.js +1 -1
  21. package/dist/cjs/api/resources/orders/resources/expanded/client/Client.d.ts +2 -2
  22. package/dist/cjs/api/resources/orders/resources/expanded/client/Client.js +2 -2
  23. package/dist/cjs/api/resources/orders/resources/expandedList/client/Client.d.ts +2 -2
  24. package/dist/cjs/api/resources/orders/resources/expandedList/client/Client.js +2 -2
  25. package/dist/cjs/api/resources/orgs/client/Client.d.ts +28 -5
  26. package/dist/cjs/api/resources/orgs/client/Client.js +122 -9
  27. package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +1 -5
  28. package/dist/cjs/api/resources/orgs/client/requests/SetOrgTypeReq.d.ts +13 -0
  29. package/dist/cjs/api/resources/orgs/client/requests/index.d.ts +1 -0
  30. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +9 -9
  31. package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +9 -9
  32. package/dist/cjs/api/resources/taskArtifacts/client/Client.d.ts +3 -3
  33. package/dist/cjs/api/resources/taskArtifacts/client/Client.js +3 -3
  34. package/dist/cjs/api/resources/taskArtifacts/resources/blurhash/client/Client.d.ts +1 -1
  35. package/dist/cjs/api/resources/taskArtifacts/resources/blurhash/client/Client.js +1 -1
  36. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.d.ts +3 -3
  37. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.js +3 -3
  38. package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +47 -19
  39. package/dist/cjs/api/resources/taskGroups/client/Client.js +157 -31
  40. package/dist/cjs/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.ts +12 -0
  41. package/dist/cjs/api/resources/taskGroups/client/requests/SetFlightNumberReq.js +5 -0
  42. package/dist/cjs/api/resources/taskGroups/client/requests/SetTaskOrderingReq.d.ts +12 -0
  43. package/dist/cjs/api/resources/taskGroups/client/requests/SetTaskOrderingReq.js +5 -0
  44. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.d.ts +12 -0
  45. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.js +5 -0
  46. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.d.ts +11 -0
  47. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.js +5 -0
  48. package/dist/cjs/api/resources/taskGroups/client/requests/index.d.ts +4 -2
  49. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.d.ts +3 -3
  50. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.js +3 -3
  51. package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/Client.d.ts +2 -2
  52. package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/Client.js +2 -2
  53. package/dist/cjs/api/resources/users/client/Client.d.ts +4 -4
  54. package/dist/cjs/api/resources/users/client/Client.js +5 -5
  55. package/dist/cjs/api/types/ClerkOrgData.d.ts +2 -1
  56. package/dist/cjs/api/types/CreateOrgPublicDataRes.d.ts +7 -0
  57. package/dist/cjs/api/types/CreateOrgPublicDataRes.js +5 -0
  58. package/dist/cjs/api/types/OrderDraftExpandedRes.d.ts +1 -0
  59. package/dist/cjs/api/types/OrgPublicData1.d.ts +1 -1
  60. package/dist/cjs/api/types/OrgRoleEnum.d.ts +28 -0
  61. package/dist/cjs/api/types/OrgRoleEnum.js +12 -0
  62. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +1 -0
  63. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
  64. package/dist/cjs/api/types/UserPublicData1.d.ts +1 -2
  65. package/dist/cjs/api/types/index.d.ts +2 -0
  66. package/dist/cjs/api/types/index.js +2 -0
  67. package/dist/cjs/version.d.ts +1 -1
  68. package/dist/cjs/version.js +1 -1
  69. package/dist/esm/Client.mjs +2 -2
  70. package/dist/esm/api/resources/drivers/client/Client.d.mts +10 -10
  71. package/dist/esm/api/resources/drivers/client/Client.mjs +10 -10
  72. package/dist/esm/api/resources/offChrtShipperOrg/client/Client.d.mts +5 -5
  73. package/dist/esm/api/resources/offChrtShipperOrg/client/Client.mjs +5 -5
  74. package/dist/esm/api/resources/orderDrafts/client/Client.d.mts +6 -6
  75. package/dist/esm/api/resources/orderDrafts/client/Client.mjs +6 -6
  76. package/dist/esm/api/resources/orderDrafts/resources/cargo/client/Client.d.mts +4 -4
  77. package/dist/esm/api/resources/orderDrafts/resources/cargo/client/Client.mjs +4 -4
  78. package/dist/esm/api/resources/orderDrafts/resources/task/client/Client.d.mts +3 -3
  79. package/dist/esm/api/resources/orderDrafts/resources/task/client/Client.mjs +3 -3
  80. package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/Client.d.mts +2 -2
  81. package/dist/esm/api/resources/orderDrafts/resources/taskArtifact/client/Client.mjs +2 -2
  82. package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +16 -2
  83. package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/Client.mjs +65 -2
  84. package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/requests/UpdateTaskGroupDraftReq.d.mts +13 -0
  85. package/dist/esm/api/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +1 -0
  86. package/dist/esm/api/resources/orders/client/Client.d.mts +1 -1
  87. package/dist/esm/api/resources/orders/client/Client.mjs +1 -1
  88. package/dist/esm/api/resources/orders/resources/expanded/client/Client.d.mts +2 -2
  89. package/dist/esm/api/resources/orders/resources/expanded/client/Client.mjs +2 -2
  90. package/dist/esm/api/resources/orders/resources/expandedList/client/Client.d.mts +2 -2
  91. package/dist/esm/api/resources/orders/resources/expandedList/client/Client.mjs +2 -2
  92. package/dist/esm/api/resources/orgs/client/Client.d.mts +28 -5
  93. package/dist/esm/api/resources/orgs/client/Client.mjs +122 -9
  94. package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +1 -5
  95. package/dist/esm/api/resources/orgs/client/requests/SetOrgTypeReq.d.mts +13 -0
  96. package/dist/esm/api/resources/orgs/client/requests/index.d.mts +1 -0
  97. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +9 -9
  98. package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +9 -9
  99. package/dist/esm/api/resources/taskArtifacts/client/Client.d.mts +3 -3
  100. package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +3 -3
  101. package/dist/esm/api/resources/taskArtifacts/resources/blurhash/client/Client.d.mts +1 -1
  102. package/dist/esm/api/resources/taskArtifacts/resources/blurhash/client/Client.mjs +1 -1
  103. package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.d.mts +3 -3
  104. package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.mjs +3 -3
  105. package/dist/esm/api/resources/taskGroups/client/Client.d.mts +47 -19
  106. package/dist/esm/api/resources/taskGroups/client/Client.mjs +157 -31
  107. package/dist/esm/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.mts +12 -0
  108. package/dist/esm/api/resources/taskGroups/client/requests/SetFlightNumberReq.mjs +4 -0
  109. package/dist/esm/api/resources/taskGroups/client/requests/SetTaskOrderingReq.d.mts +12 -0
  110. package/dist/esm/api/resources/taskGroups/client/requests/SetTaskOrderingReq.mjs +4 -0
  111. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.d.mts +12 -0
  112. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.mjs +4 -0
  113. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.d.mts +11 -0
  114. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.mjs +4 -0
  115. package/dist/esm/api/resources/taskGroups/client/requests/index.d.mts +4 -2
  116. package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.d.mts +3 -3
  117. package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.mjs +3 -3
  118. package/dist/esm/api/resources/taskGroups/resources/expandedList/client/Client.d.mts +2 -2
  119. package/dist/esm/api/resources/taskGroups/resources/expandedList/client/Client.mjs +2 -2
  120. package/dist/esm/api/resources/users/client/Client.d.mts +4 -4
  121. package/dist/esm/api/resources/users/client/Client.mjs +5 -5
  122. package/dist/esm/api/types/ClerkOrgData.d.mts +2 -1
  123. package/dist/esm/api/types/CreateOrgPublicDataRes.d.mts +7 -0
  124. package/dist/esm/api/types/CreateOrgPublicDataRes.mjs +4 -0
  125. package/dist/esm/api/types/OrderDraftExpandedRes.d.mts +1 -0
  126. package/dist/esm/api/types/OrgPublicData1.d.mts +1 -1
  127. package/dist/esm/api/types/OrgRoleEnum.d.mts +28 -0
  128. package/dist/esm/api/types/OrgRoleEnum.mjs +9 -0
  129. package/dist/esm/api/types/TaskClientUpdate1.d.mts +1 -0
  130. package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
  131. package/dist/esm/api/types/UserPublicData1.d.mts +1 -2
  132. package/dist/esm/api/types/index.d.mts +2 -0
  133. package/dist/esm/api/types/index.mjs +2 -0
  134. package/dist/esm/version.d.mts +1 -1
  135. package/dist/esm/version.mjs +1 -1
  136. package/package.json +1 -1
  137. package/reference.md +420 -82
  138. package/dist/cjs/api/resources/taskGroups/client/requests/SetTaskGroupPauseReq.d.ts +0 -14
  139. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.ts +0 -14
  140. package/dist/esm/api/resources/taskGroups/client/requests/SetTaskGroupPauseReq.d.mts +0 -14
  141. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.mts +0 -14
  142. /package/dist/cjs/api/resources/{taskGroups/client/requests/SetTaskGroupPauseReq.js → orderDrafts/resources/taskGroup/client/requests/UpdateTaskGroupDraftReq.js} +0 -0
  143. /package/dist/cjs/api/resources/{taskGroups/client/requests/UpdateTaskGroupReq.js → orgs/client/requests/SetOrgTypeReq.js} +0 -0
  144. /package/dist/esm/api/resources/{taskGroups/client/requests/SetTaskGroupPauseReq.mjs → orderDrafts/resources/taskGroup/client/requests/UpdateTaskGroupDraftReq.mjs} +0 -0
  145. /package/dist/esm/api/resources/{taskGroups/client/requests/UpdateTaskGroupReq.mjs → orgs/client/requests/SetOrgTypeReq.mjs} +0 -0
@@ -37,49 +37,77 @@ export declare class TaskGroups {
37
37
  get expanded(): Expanded;
38
38
  get expandedList(): ExpandedList;
39
39
  /**
40
- * Updates task group driver assignments by adding or removing drivers.
40
+ * Updates the ordering of tasks in a task group. Task group must be in STAGED or IN_PROGRESS status. | authz_personas=[lig_org_operators] | (SetTaskOrderingReq) -> (bool)
41
41
  *
42
- * @param {Chrt.UpdateTaskGroupReq} request
42
+ * @param {string} taskGroupId
43
+ * @param {Chrt.SetTaskOrderingReq} request
43
44
  * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
44
45
  *
45
46
  * @throws {@link Chrt.UnprocessableEntityError}
46
47
  *
47
48
  * @example
48
- * await client.taskGroups.updateV1({
49
- * task_group_id: "task_group_id"
49
+ * await client.taskGroups.setTaskOrderingV1("task_group_id", {
50
+ * task_ordering: ["task_ordering"]
50
51
  * })
51
52
  */
52
- updateV1(request: Chrt.UpdateTaskGroupReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
53
- private __updateV1;
53
+ setTaskOrderingV1(taskGroupId: string, request: Chrt.SetTaskOrderingReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
54
+ private __setTaskOrderingV1;
54
55
  /**
55
- * Starts a task group by changing its status to in-progress and updating the order status. Only authorized personas (task_group_driver or task_group_courier_org_administrator) can start a task group.
56
+ * Updates the flight number on both task group and all its tasks. Task group must be in STAGED or IN_PROGRESS status. | authz_personas=[lig_org_operators] | (SetFlightNumberReq) -> (bool)
56
57
  *
57
58
  * @param {string} taskGroupId
59
+ * @param {Chrt.SetFlightNumberReq} request
58
60
  * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
59
61
  *
60
62
  * @throws {@link Chrt.UnprocessableEntityError}
61
63
  *
62
64
  * @example
63
- * await client.taskGroups.startV1("task_group_id")
65
+ * await client.taskGroups.setFlightNumberV1("task_group_id", {
66
+ * flight_number: "flight_number"
67
+ * })
64
68
  */
65
- startV1(taskGroupId: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
66
- private __startV1;
69
+ setFlightNumberV1(taskGroupId: string, request: Chrt.SetFlightNumberReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
70
+ private __setFlightNumberV1;
67
71
  /**
68
- * Toggles the pause status of an in-progress task group.
72
+ * Sets or removes the driver assigned to a task group. | authz_personas=[courier_org_operators] | (UpdateTaskGroupDriverReq) -> (bool)
69
73
  *
70
- * @param {string} id
71
- * @param {Chrt.SetTaskGroupPauseReq} request
74
+ * @param {string} taskGroupId
75
+ * @param {Chrt.UpdateTaskGroupDriverReq} request
72
76
  * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
73
77
  *
74
78
  * @throws {@link Chrt.UnprocessableEntityError}
75
79
  *
76
80
  * @example
77
- * await client.taskGroups.togglePauseV1("id", {
78
- * task_group_id: "task_group_id",
79
- * paused: true
80
- * })
81
+ * await client.taskGroups.updateDriverV1("task_group_id")
82
+ */
83
+ updateDriverV1(taskGroupId: string, request?: Chrt.UpdateTaskGroupDriverReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
84
+ private __updateDriverV1;
85
+ /**
86
+ * Sets or removes the courier organization assigned to a task group. | authz_personas=[forwarder_org_operators] | (UpdateTaskGroupCourierOrgReq) -> (bool)
87
+ *
88
+ * @param {string} taskGroupId
89
+ * @param {Chrt.UpdateTaskGroupCourierOrgReq} request
90
+ * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
91
+ *
92
+ * @throws {@link Chrt.UnprocessableEntityError}
93
+ *
94
+ * @example
95
+ * await client.taskGroups.updateCourierOrgV1("task_group_id")
96
+ */
97
+ updateCourierOrgV1(taskGroupId: string, request?: Chrt.UpdateTaskGroupCourierOrgReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
98
+ private __updateCourierOrgV1;
99
+ /**
100
+ * Starts a task group by changing its status to in-progress and updating the order status. | authz_personas=[courier_driver, lig_org_operators] | () -> (bool)
101
+ *
102
+ * @param {string} taskGroupId
103
+ * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
104
+ *
105
+ * @throws {@link Chrt.UnprocessableEntityError}
106
+ *
107
+ * @example
108
+ * await client.taskGroups.startV1("task_group_id")
81
109
  */
82
- togglePauseV1(id: string, request: Chrt.SetTaskGroupPauseReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
83
- private __togglePauseV1;
110
+ startV1(taskGroupId: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
111
+ private __startV1;
84
112
  protected _getAuthorizationHeader(): Promise<string | undefined>;
85
113
  }
@@ -66,27 +66,28 @@ class TaskGroups {
66
66
  return ((_a = this._expandedList) !== null && _a !== void 0 ? _a : (this._expandedList = new Client_js_2.ExpandedList(this._options)));
67
67
  }
68
68
  /**
69
- * Updates task group driver assignments by adding or removing drivers.
69
+ * Updates the ordering of tasks in a task group. Task group must be in STAGED or IN_PROGRESS status. | authz_personas=[lig_org_operators] | (SetTaskOrderingReq) -> (bool)
70
70
  *
71
- * @param {Chrt.UpdateTaskGroupReq} request
71
+ * @param {string} taskGroupId
72
+ * @param {Chrt.SetTaskOrderingReq} request
72
73
  * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
73
74
  *
74
75
  * @throws {@link Chrt.UnprocessableEntityError}
75
76
  *
76
77
  * @example
77
- * await client.taskGroups.updateV1({
78
- * task_group_id: "task_group_id"
78
+ * await client.taskGroups.setTaskOrderingV1("task_group_id", {
79
+ * task_ordering: ["task_ordering"]
79
80
  * })
80
81
  */
81
- updateV1(request, requestOptions) {
82
- return core.HttpResponsePromise.fromPromise(this.__updateV1(request, requestOptions));
82
+ setTaskOrderingV1(taskGroupId, request, requestOptions) {
83
+ return core.HttpResponsePromise.fromPromise(this.__setTaskOrderingV1(taskGroupId, request, requestOptions));
83
84
  }
84
- __updateV1(request, requestOptions) {
85
+ __setTaskOrderingV1(taskGroupId, request, requestOptions) {
85
86
  return __awaiter(this, void 0, void 0, function* () {
86
87
  var _a, _b, _c, _d;
87
88
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
88
89
  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, "oort/task_groups/update/v1"),
90
+ 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, `oort/task_groups/set_task_ordering/v1/${encodeURIComponent(taskGroupId)}`),
90
91
  method: "POST",
91
92
  headers: _headers,
92
93
  contentType: "application/json",
@@ -120,7 +121,7 @@ class TaskGroups {
120
121
  rawResponse: _response.rawResponse,
121
122
  });
122
123
  case "timeout":
123
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/update/v1.");
124
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/set_task_ordering/v1/{task_group_id}.");
124
125
  case "unknown":
125
126
  throw new errors.ChrtError({
126
127
  message: _response.error.errorMessage,
@@ -130,28 +131,34 @@ class TaskGroups {
130
131
  });
131
132
  }
132
133
  /**
133
- * Starts a task group by changing its status to in-progress and updating the order status. Only authorized personas (task_group_driver or task_group_courier_org_administrator) can start a task group.
134
+ * Updates the flight number on both task group and all its tasks. Task group must be in STAGED or IN_PROGRESS status. | authz_personas=[lig_org_operators] | (SetFlightNumberReq) -> (bool)
134
135
  *
135
136
  * @param {string} taskGroupId
137
+ * @param {Chrt.SetFlightNumberReq} request
136
138
  * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
137
139
  *
138
140
  * @throws {@link Chrt.UnprocessableEntityError}
139
141
  *
140
142
  * @example
141
- * await client.taskGroups.startV1("task_group_id")
143
+ * await client.taskGroups.setFlightNumberV1("task_group_id", {
144
+ * flight_number: "flight_number"
145
+ * })
142
146
  */
143
- startV1(taskGroupId, requestOptions) {
144
- return core.HttpResponsePromise.fromPromise(this.__startV1(taskGroupId, requestOptions));
147
+ setFlightNumberV1(taskGroupId, request, requestOptions) {
148
+ return core.HttpResponsePromise.fromPromise(this.__setFlightNumberV1(taskGroupId, request, requestOptions));
145
149
  }
146
- __startV1(taskGroupId, requestOptions) {
150
+ __setFlightNumberV1(taskGroupId, request, requestOptions) {
147
151
  return __awaiter(this, void 0, void 0, function* () {
148
152
  var _a, _b, _c, _d;
149
153
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
150
154
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
151
- 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, `oort/task_groups/start/v1/${encodeURIComponent(taskGroupId)}`),
152
- method: "PUT",
155
+ 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, `oort/task_groups/set_flight_number/v1/${encodeURIComponent(taskGroupId)}`),
156
+ method: "POST",
153
157
  headers: _headers,
158
+ contentType: "application/json",
154
159
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
160
+ requestType: "json",
161
+ body: request,
155
162
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
156
163
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
157
164
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -179,7 +186,7 @@ class TaskGroups {
179
186
  rawResponse: _response.rawResponse,
180
187
  });
181
188
  case "timeout":
182
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/task_groups/start/v1/{task_group_id}.");
189
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/set_flight_number/v1/{task_group_id}.");
183
190
  case "unknown":
184
191
  throw new errors.ChrtError({
185
192
  message: _response.error.errorMessage,
@@ -189,30 +196,90 @@ class TaskGroups {
189
196
  });
190
197
  }
191
198
  /**
192
- * Toggles the pause status of an in-progress task group.
199
+ * Sets or removes the driver assigned to a task group. | authz_personas=[courier_org_operators] | (UpdateTaskGroupDriverReq) -> (bool)
193
200
  *
194
- * @param {string} id
195
- * @param {Chrt.SetTaskGroupPauseReq} request
201
+ * @param {string} taskGroupId
202
+ * @param {Chrt.UpdateTaskGroupDriverReq} request
196
203
  * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
197
204
  *
198
205
  * @throws {@link Chrt.UnprocessableEntityError}
199
206
  *
200
207
  * @example
201
- * await client.taskGroups.togglePauseV1("id", {
202
- * task_group_id: "task_group_id",
203
- * paused: true
204
- * })
208
+ * await client.taskGroups.updateDriverV1("task_group_id")
205
209
  */
206
- togglePauseV1(id, request, requestOptions) {
207
- return core.HttpResponsePromise.fromPromise(this.__togglePauseV1(id, request, requestOptions));
210
+ updateDriverV1(taskGroupId, request = {}, requestOptions) {
211
+ return core.HttpResponsePromise.fromPromise(this.__updateDriverV1(taskGroupId, request, requestOptions));
208
212
  }
209
- __togglePauseV1(id, request, requestOptions) {
210
- return __awaiter(this, void 0, void 0, function* () {
213
+ __updateDriverV1(taskGroupId_1) {
214
+ return __awaiter(this, arguments, void 0, function* (taskGroupId, request = {}, requestOptions) {
211
215
  var _a, _b, _c, _d;
212
216
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
213
217
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
214
- 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, `oort/task_groups/toggle_pause/v1/${encodeURIComponent(id)}`),
215
- method: "PUT",
218
+ 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, `oort/task_groups/update_driver/v1/${encodeURIComponent(taskGroupId)}`),
219
+ method: "POST",
220
+ headers: _headers,
221
+ contentType: "application/json",
222
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
223
+ requestType: "json",
224
+ body: request,
225
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
226
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
227
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
228
+ });
229
+ if (_response.ok) {
230
+ return { data: _response.body, rawResponse: _response.rawResponse };
231
+ }
232
+ if (_response.error.reason === "status-code") {
233
+ switch (_response.error.statusCode) {
234
+ case 422:
235
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
236
+ default:
237
+ throw new errors.ChrtError({
238
+ statusCode: _response.error.statusCode,
239
+ body: _response.error.body,
240
+ rawResponse: _response.rawResponse,
241
+ });
242
+ }
243
+ }
244
+ switch (_response.error.reason) {
245
+ case "non-json":
246
+ throw new errors.ChrtError({
247
+ statusCode: _response.error.statusCode,
248
+ body: _response.error.rawBody,
249
+ rawResponse: _response.rawResponse,
250
+ });
251
+ case "timeout":
252
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/update_driver/v1/{task_group_id}.");
253
+ case "unknown":
254
+ throw new errors.ChrtError({
255
+ message: _response.error.errorMessage,
256
+ rawResponse: _response.rawResponse,
257
+ });
258
+ }
259
+ });
260
+ }
261
+ /**
262
+ * Sets or removes the courier organization assigned to a task group. | authz_personas=[forwarder_org_operators] | (UpdateTaskGroupCourierOrgReq) -> (bool)
263
+ *
264
+ * @param {string} taskGroupId
265
+ * @param {Chrt.UpdateTaskGroupCourierOrgReq} request
266
+ * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
267
+ *
268
+ * @throws {@link Chrt.UnprocessableEntityError}
269
+ *
270
+ * @example
271
+ * await client.taskGroups.updateCourierOrgV1("task_group_id")
272
+ */
273
+ updateCourierOrgV1(taskGroupId, request = {}, requestOptions) {
274
+ return core.HttpResponsePromise.fromPromise(this.__updateCourierOrgV1(taskGroupId, request, requestOptions));
275
+ }
276
+ __updateCourierOrgV1(taskGroupId_1) {
277
+ return __awaiter(this, arguments, void 0, function* (taskGroupId, request = {}, requestOptions) {
278
+ var _a, _b, _c, _d;
279
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
280
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
281
+ 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, `oort/task_groups/update_courier_org/v1/${encodeURIComponent(taskGroupId)}`),
282
+ method: "POST",
216
283
  headers: _headers,
217
284
  contentType: "application/json",
218
285
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -245,7 +312,66 @@ class TaskGroups {
245
312
  rawResponse: _response.rawResponse,
246
313
  });
247
314
  case "timeout":
248
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/task_groups/toggle_pause/v1/{id}.");
315
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/update_courier_org/v1/{task_group_id}.");
316
+ case "unknown":
317
+ throw new errors.ChrtError({
318
+ message: _response.error.errorMessage,
319
+ rawResponse: _response.rawResponse,
320
+ });
321
+ }
322
+ });
323
+ }
324
+ /**
325
+ * Starts a task group by changing its status to in-progress and updating the order status. | authz_personas=[courier_driver, lig_org_operators] | () -> (bool)
326
+ *
327
+ * @param {string} taskGroupId
328
+ * @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
329
+ *
330
+ * @throws {@link Chrt.UnprocessableEntityError}
331
+ *
332
+ * @example
333
+ * await client.taskGroups.startV1("task_group_id")
334
+ */
335
+ startV1(taskGroupId, requestOptions) {
336
+ return core.HttpResponsePromise.fromPromise(this.__startV1(taskGroupId, requestOptions));
337
+ }
338
+ __startV1(taskGroupId, requestOptions) {
339
+ return __awaiter(this, void 0, void 0, function* () {
340
+ var _a, _b, _c, _d;
341
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
342
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
343
+ 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, `oort/task_groups/start/v1/${encodeURIComponent(taskGroupId)}`),
344
+ method: "PUT",
345
+ headers: _headers,
346
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
347
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
348
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
349
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
350
+ });
351
+ if (_response.ok) {
352
+ return { data: _response.body, rawResponse: _response.rawResponse };
353
+ }
354
+ if (_response.error.reason === "status-code") {
355
+ switch (_response.error.statusCode) {
356
+ case 422:
357
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
358
+ default:
359
+ throw new errors.ChrtError({
360
+ statusCode: _response.error.statusCode,
361
+ body: _response.error.body,
362
+ rawResponse: _response.rawResponse,
363
+ });
364
+ }
365
+ }
366
+ switch (_response.error.reason) {
367
+ case "non-json":
368
+ throw new errors.ChrtError({
369
+ statusCode: _response.error.statusCode,
370
+ body: _response.error.rawBody,
371
+ rawResponse: _response.rawResponse,
372
+ });
373
+ case "timeout":
374
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/task_groups/start/v1/{task_group_id}.");
249
375
  case "unknown":
250
376
  throw new errors.ChrtError({
251
377
  message: _response.error.errorMessage,
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * flight_number: "flight_number"
8
+ * }
9
+ */
10
+ export interface SetFlightNumberReq {
11
+ flight_number: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * task_ordering: ["task_ordering"]
8
+ * }
9
+ */
10
+ export interface SetTaskOrderingReq {
11
+ task_ordering: string[];
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface UpdateTaskGroupCourierOrgReq {
9
+ remove_courier_org?: boolean | null;
10
+ /** Must be a string starting with `org_` */
11
+ set_courier_org_id?: string | null;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface UpdateTaskGroupDriverReq {
9
+ remove_driver?: boolean | null;
10
+ set_driver_id?: string | null;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,4 @@
1
- export { type UpdateTaskGroupReq } from "./UpdateTaskGroupReq.js";
2
- export { type SetTaskGroupPauseReq } from "./SetTaskGroupPauseReq.js";
1
+ export { type SetTaskOrderingReq } from "./SetTaskOrderingReq.js";
2
+ export { type SetFlightNumberReq } from "./SetFlightNumberReq.js";
3
+ export { type UpdateTaskGroupDriverReq } from "./UpdateTaskGroupDriverReq.js";
4
+ export { type UpdateTaskGroupCourierOrgReq } from "./UpdateTaskGroupCourierOrgReq.js";
@@ -31,7 +31,7 @@ export declare class Expanded {
31
31
  protected readonly _options: Expanded.Options;
32
32
  constructor(_options?: Expanded.Options);
33
33
  /**
34
- * Fetches an expanded task group for the courier org with expanded related data.
34
+ * Fetches an expanded task group for the courier org with expanded related data. | (TaskGroupExpandedForCourierAdministratorReq) -> (TaskGroupExpandedForCourierAdministrator)
35
35
  *
36
36
  * @param {string} id
37
37
  * @param {Chrt.TaskGroupExpandedForCourierAdministratorReq} request
@@ -45,7 +45,7 @@ export declare class Expanded {
45
45
  forCourierAdministratorByIdV1(id: string, request: Chrt.TaskGroupExpandedForCourierAdministratorReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpandedForCourierAdministrator>;
46
46
  private __forCourierAdministratorByIdV1;
47
47
  /**
48
- * Fetches an expanded task group assigned to a courier driver with optional expanded related data.
48
+ * Fetches an expanded task group assigned to a courier driver with optional expanded related data. | (TaskGroupExpandedForCourierDriverReq) -> (TaskGroupExpandedForCourierDriver)
49
49
  *
50
50
  * @param {string} id
51
51
  * @param {Chrt.TaskGroupExpandedForCourierDriverReq} request
@@ -59,7 +59,7 @@ export declare class Expanded {
59
59
  forCourierDriverByIdV1(id: string, request: Chrt.TaskGroupExpandedForCourierDriverReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpandedForCourierDriver>;
60
60
  private __forCourierDriverByIdV1;
61
61
  /**
62
- * Fetches an expanded task group for the shipper org with expanded related data.
62
+ * Fetches an expanded task group for the shipper org with expanded related data. | (TaskGroupExpandedForShipperReq) -> (TaskGroupExpandedForShipper)
63
63
  *
64
64
  * @param {string} id
65
65
  * @param {Chrt.taskGroups.TaskGroupExpandedForShipperReq} request
@@ -56,7 +56,7 @@ class Expanded {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Fetches an expanded task group for the courier org with expanded related data.
59
+ * Fetches an expanded task group for the courier org with expanded related data. | (TaskGroupExpandedForCourierAdministratorReq) -> (TaskGroupExpandedForCourierAdministrator)
60
60
  *
61
61
  * @param {string} id
62
62
  * @param {Chrt.TaskGroupExpandedForCourierAdministratorReq} request
@@ -122,7 +122,7 @@ class Expanded {
122
122
  });
123
123
  }
124
124
  /**
125
- * Fetches an expanded task group assigned to a courier driver with optional expanded related data.
125
+ * Fetches an expanded task group assigned to a courier driver with optional expanded related data. | (TaskGroupExpandedForCourierDriverReq) -> (TaskGroupExpandedForCourierDriver)
126
126
  *
127
127
  * @param {string} id
128
128
  * @param {Chrt.TaskGroupExpandedForCourierDriverReq} request
@@ -188,7 +188,7 @@ class Expanded {
188
188
  });
189
189
  }
190
190
  /**
191
- * Fetches an expanded task group for the shipper org with expanded related data.
191
+ * Fetches an expanded task group for the shipper org with expanded related data. | (TaskGroupExpandedForShipperReq) -> (TaskGroupExpandedForShipper)
192
192
  *
193
193
  * @param {string} id
194
194
  * @param {Chrt.taskGroups.TaskGroupExpandedForShipperReq} request
@@ -31,7 +31,7 @@ export declare class ExpandedList {
31
31
  protected readonly _options: ExpandedList.Options;
32
32
  constructor(_options?: ExpandedList.Options);
33
33
  /**
34
- * Fetches expanded task groups for the courier org with optional filters and expanded related data.
34
+ * Fetches expanded task groups for the courier org with optional filters and expanded related data. | (TaskGroupExpandedForCourierAdministratorReq) -> (TaskGroupsExpandedForCourierAdministratorRes)
35
35
  *
36
36
  * @param {Chrt.taskGroups.ExpandedListForCourierAdministratorV1Request} request
37
37
  * @param {ExpandedList.RequestOptions} requestOptions - Request-specific configuration.
@@ -59,7 +59,7 @@ export declare class ExpandedList {
59
59
  forCourierAdministratorV1(request: Chrt.taskGroups.ExpandedListForCourierAdministratorV1Request, requestOptions?: ExpandedList.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupsExpandedForCourierAdministratorRes>;
60
60
  private __forCourierAdministratorV1;
61
61
  /**
62
- * Fetches expanded task groups assigned to a courier driver with optional expanded related data.
62
+ * Fetches expanded task groups assigned to a courier driver with optional expanded related data. | (TaskGroupExpandedForCourierDriverReq) -> (TaskGroupsExpandedForCourierDriverRes)
63
63
  *
64
64
  * @param {Chrt.taskGroups.ExpandedListForCourierDriverV1Request} request
65
65
  * @param {ExpandedList.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class ExpandedList {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Fetches expanded task groups for the courier org with optional filters and expanded related data.
59
+ * Fetches expanded task groups for the courier org with optional filters and expanded related data. | (TaskGroupExpandedForCourierAdministratorReq) -> (TaskGroupsExpandedForCourierAdministratorRes)
60
60
  *
61
61
  * @param {Chrt.taskGroups.ExpandedListForCourierAdministratorV1Request} request
62
62
  * @param {ExpandedList.RequestOptions} requestOptions - Request-specific configuration.
@@ -185,7 +185,7 @@ class ExpandedList {
185
185
  });
186
186
  }
187
187
  /**
188
- * Fetches expanded task groups assigned to a courier driver with optional expanded related data.
188
+ * Fetches expanded task groups assigned to a courier driver with optional expanded related data. | (TaskGroupExpandedForCourierDriverReq) -> (TaskGroupsExpandedForCourierDriverRes)
189
189
  *
190
190
  * @param {Chrt.taskGroups.ExpandedListForCourierDriverV1Request} request
191
191
  * @param {ExpandedList.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,14 +31,14 @@ export declare class Users {
31
31
  protected readonly _options: Users.Options;
32
32
  constructor(_options?: Users.Options);
33
33
  /**
34
- * Retrieves public user data for the authenticated user, including email, notes, and Stripe customer information. | () -> (UserPublicData1)
34
+ * Retrieves public user data for the authenticated user. | () -> (UserPublicData1)
35
35
  *
36
36
  * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
38
38
  * @example
39
- * await client.users.getPublicDataV1()
39
+ * await client.users.getUserPublicDataV1()
40
40
  */
41
- getPublicDataV1(requestOptions?: Users.RequestOptions): core.HttpResponsePromise<Chrt.UserPublicData1>;
42
- private __getPublicDataV1;
41
+ getUserPublicDataV1(requestOptions?: Users.RequestOptions): core.HttpResponsePromise<Chrt.UserPublicData1>;
42
+ private __getUserPublicDataV1;
43
43
  protected _getAuthorizationHeader(): Promise<string | undefined>;
44
44
  }
@@ -55,17 +55,17 @@ class Users {
55
55
  this._options = _options;
56
56
  }
57
57
  /**
58
- * Retrieves public user data for the authenticated user, including email, notes, and Stripe customer information. | () -> (UserPublicData1)
58
+ * Retrieves public user data for the authenticated user. | () -> (UserPublicData1)
59
59
  *
60
60
  * @param {Users.RequestOptions} requestOptions - Request-specific configuration.
61
61
  *
62
62
  * @example
63
- * await client.users.getPublicDataV1()
63
+ * await client.users.getUserPublicDataV1()
64
64
  */
65
- getPublicDataV1(requestOptions) {
66
- return core.HttpResponsePromise.fromPromise(this.__getPublicDataV1(requestOptions));
65
+ getUserPublicDataV1(requestOptions) {
66
+ return core.HttpResponsePromise.fromPromise(this.__getUserPublicDataV1(requestOptions));
67
67
  }
68
- __getPublicDataV1(requestOptions) {
68
+ __getUserPublicDataV1(requestOptions) {
69
69
  return __awaiter(this, void 0, void 0, function* () {
70
70
  var _a, _b, _c, _d;
71
71
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../index.js";
4
5
  export interface ClerkOrgData {
5
6
  /** Must be a string starting with `org_` */
6
7
  id?: string | null;
7
- rol?: string | null;
8
+ rol?: Chrt.OrgRoleEnum | null;
8
9
  slg?: string | null;
9
10
  /** Accepts any additional properties */
10
11
  [key: string]: any;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CreateOrgPublicDataRes {
5
+ org_public_data_inserted_id: string;
6
+ org_private_data_inserted_id?: string | null;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,6 +5,7 @@ import * as Chrt from "../index.js";
5
5
  export interface OrderDraftExpandedRes {
6
6
  order: Chrt.Order1;
7
7
  task_groups_expanded?: Chrt.TaskGroupDraftExpanded[] | null;
8
+ cargos?: Chrt.Cargo1[] | null;
8
9
  shipper_org_company_name?: string | null;
9
10
  shipper_org_handle?: string | null;
10
11
  off_chrt_shipper_org_company_name?: string | null;