@chrt-inc/typescript-sdk 1.691.0 → 1.702.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 (210) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/operations/client/Client.d.ts +6 -0
  3. package/dist/cjs/api/resources/operations/client/Client.js +12 -2
  4. package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +100 -0
  5. package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +394 -0
  6. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.ts +12 -0
  7. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.js +5 -0
  8. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.ts +15 -0
  9. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.js +5 -0
  10. package/dist/cjs/api/resources/operations/resources/cases/client/requests/index.d.ts +2 -0
  11. package/dist/cjs/api/resources/operations/resources/checklists/client/Client.d.ts +150 -0
  12. package/dist/cjs/api/resources/operations/resources/checklists/client/Client.js +581 -0
  13. package/dist/cjs/api/resources/operations/resources/checklists/client/index.d.ts +2 -0
  14. package/dist/cjs/api/resources/operations/resources/checklists/client/index.js +17 -0
  15. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistChecksAdd1.d.ts +11 -0
  16. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistChecksAdd1.js +5 -0
  17. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.d.ts +11 -0
  18. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.js +5 -0
  19. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistClientCreate1.d.ts +17 -0
  20. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistClientCreate1.js +5 -0
  21. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.d.ts +12 -0
  22. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.js +5 -0
  23. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistsListV1Request.d.ts +24 -0
  24. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistsListV1Request.js +5 -0
  25. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/index.d.ts +5 -0
  26. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/index.js +2 -0
  27. package/dist/cjs/api/resources/operations/resources/checklists/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/operations/resources/checklists/index.js +17 -0
  29. package/dist/cjs/api/resources/operations/resources/index.d.ts +4 -0
  30. package/dist/cjs/api/resources/operations/resources/index.js +5 -1
  31. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +170 -0
  32. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +653 -0
  33. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/index.d.ts +2 -0
  34. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/index.js +17 -0
  35. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskAddCommentReq1.d.ts +12 -0
  36. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskAddCommentReq1.js +5 -0
  37. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.ts +19 -0
  38. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.js +5 -0
  39. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.ts +12 -0
  40. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.js +5 -0
  41. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +33 -0
  42. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.js +5 -0
  43. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +4 -0
  44. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.js +2 -0
  45. package/dist/cjs/api/resources/operations/resources/operationsTasks/index.d.ts +1 -0
  46. package/dist/cjs/api/resources/operations/resources/operationsTasks/index.js +17 -0
  47. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/Client.d.ts +14 -0
  48. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/Client.js +63 -0
  49. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.d.ts +1 -0
  50. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientUpdate1.d.ts +11 -0
  51. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientUpdate1.js +5 -0
  52. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/client/requests/index.d.ts +1 -0
  53. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.d.ts +14 -0
  54. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.js +63 -0
  55. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.d.ts +1 -0
  56. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientUpdate1.d.ts +11 -0
  57. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientUpdate1.js +5 -0
  58. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.d.ts +1 -0
  59. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +26 -0
  60. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +75 -0
  61. package/dist/cjs/api/types/AiImageDescription.d.ts +30 -0
  62. package/dist/cjs/api/types/AiImageDescription.js +5 -0
  63. package/dist/cjs/api/types/Case1.d.ts +4 -0
  64. package/dist/cjs/api/types/CaseChecksDisableReq.d.ts +7 -0
  65. package/dist/cjs/api/types/CaseChecksDisableReq.js +5 -0
  66. package/dist/cjs/api/types/CaseChecksDismissReq.d.ts +8 -0
  67. package/dist/cjs/api/types/CaseChecksDismissReq.js +5 -0
  68. package/dist/cjs/api/types/CaseChecksSummary1.d.ts +27 -0
  69. package/dist/cjs/api/types/CaseChecksSummary1.js +5 -0
  70. package/dist/cjs/api/types/Check1.d.ts +33 -0
  71. package/dist/cjs/api/types/Check1.js +5 -0
  72. package/dist/cjs/api/types/CheckEnum.d.ts +46 -0
  73. package/dist/cjs/api/types/CheckEnum.js +23 -0
  74. package/dist/cjs/api/types/CheckStatusEnum.d.ts +32 -0
  75. package/dist/cjs/api/types/CheckStatusEnum.js +15 -0
  76. package/dist/cjs/api/types/Checklist1.d.ts +18 -0
  77. package/dist/cjs/api/types/Checklist1.js +5 -0
  78. package/dist/cjs/api/types/ChecklistCheck1.d.ts +15 -0
  79. package/dist/cjs/api/types/ChecklistCheck1.js +5 -0
  80. package/dist/cjs/api/types/ChecklistListRes.d.ts +8 -0
  81. package/dist/cjs/api/types/ChecklistListRes.js +5 -0
  82. package/dist/cjs/api/types/ChecklistSortByEnum.d.ts +9 -0
  83. package/dist/cjs/api/types/ChecklistSortByEnum.js +11 -0
  84. package/dist/cjs/api/types/DriverComplianceDocument1.d.ts +1 -0
  85. package/dist/cjs/api/types/DriverComplianceDocumentTypeEnum1.d.ts +16 -1
  86. package/dist/cjs/api/types/DriverComplianceDocumentTypeEnum1.js +15 -0
  87. package/dist/cjs/api/types/LlmModelEnum.d.ts +12 -0
  88. package/dist/cjs/api/types/LlmModelEnum.js +14 -0
  89. package/dist/cjs/api/types/OperationsTask1.d.ts +19 -0
  90. package/dist/cjs/api/types/OperationsTask1.js +5 -0
  91. package/dist/cjs/api/types/OperationsTaskComment1.d.ts +10 -0
  92. package/dist/cjs/api/types/OperationsTaskComment1.js +5 -0
  93. package/dist/cjs/api/types/OperationsTaskListRes.d.ts +8 -0
  94. package/dist/cjs/api/types/OperationsTaskListRes.js +5 -0
  95. package/dist/cjs/api/types/OperationsTaskSortByEnum.d.ts +8 -0
  96. package/dist/cjs/api/types/OperationsTaskSortByEnum.js +10 -0
  97. package/dist/cjs/api/types/OrgComplianceDocument1.d.ts +1 -0
  98. package/dist/cjs/api/types/OrgComplianceDocumentTypeEnum1.d.ts +11 -1
  99. package/dist/cjs/api/types/OrgComplianceDocumentTypeEnum1.js +10 -0
  100. package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.d.ts +2 -0
  101. package/dist/cjs/api/types/index.d.ts +16 -0
  102. package/dist/cjs/api/types/index.js +16 -0
  103. package/dist/cjs/version.d.ts +1 -1
  104. package/dist/cjs/version.js +1 -1
  105. package/dist/esm/Client.mjs +2 -2
  106. package/dist/esm/api/resources/operations/client/Client.d.mts +6 -0
  107. package/dist/esm/api/resources/operations/client/Client.mjs +10 -0
  108. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +100 -0
  109. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +394 -0
  110. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.mts +12 -0
  111. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.mjs +4 -0
  112. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.mts +15 -0
  113. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.mjs +4 -0
  114. package/dist/esm/api/resources/operations/resources/cases/client/requests/index.d.mts +2 -0
  115. package/dist/esm/api/resources/operations/resources/checklists/client/Client.d.mts +150 -0
  116. package/dist/esm/api/resources/operations/resources/checklists/client/Client.mjs +544 -0
  117. package/dist/esm/api/resources/operations/resources/checklists/client/index.d.mts +2 -0
  118. package/dist/esm/api/resources/operations/resources/checklists/client/index.mjs +1 -0
  119. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksAdd1.d.mts +11 -0
  120. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksAdd1.mjs +4 -0
  121. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.d.mts +11 -0
  122. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.mjs +4 -0
  123. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientCreate1.d.mts +17 -0
  124. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientCreate1.mjs +4 -0
  125. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.d.mts +12 -0
  126. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.mjs +4 -0
  127. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistsListV1Request.d.mts +24 -0
  128. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistsListV1Request.mjs +4 -0
  129. package/dist/esm/api/resources/operations/resources/checklists/client/requests/index.d.mts +5 -0
  130. package/dist/esm/api/resources/operations/resources/checklists/client/requests/index.mjs +1 -0
  131. package/dist/esm/api/resources/operations/resources/checklists/index.d.mts +1 -0
  132. package/dist/esm/api/resources/operations/resources/checklists/index.mjs +1 -0
  133. package/dist/esm/api/resources/operations/resources/index.d.mts +4 -0
  134. package/dist/esm/api/resources/operations/resources/index.mjs +4 -0
  135. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +170 -0
  136. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +616 -0
  137. package/dist/esm/api/resources/operations/resources/operationsTasks/client/index.d.mts +2 -0
  138. package/dist/esm/api/resources/operations/resources/operationsTasks/client/index.mjs +1 -0
  139. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskAddCommentReq1.d.mts +12 -0
  140. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskAddCommentReq1.mjs +4 -0
  141. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.mts +19 -0
  142. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.mjs +4 -0
  143. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.mts +12 -0
  144. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.mjs +4 -0
  145. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +33 -0
  146. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.mjs +4 -0
  147. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +4 -0
  148. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.mjs +1 -0
  149. package/dist/esm/api/resources/operations/resources/operationsTasks/index.d.mts +1 -0
  150. package/dist/esm/api/resources/operations/resources/operationsTasks/index.mjs +1 -0
  151. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/Client.d.mts +14 -0
  152. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/Client.mjs +63 -0
  153. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientCreate1.d.mts +1 -0
  154. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientUpdate1.d.mts +11 -0
  155. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/OrgComplianceDocumentClientUpdate1.mjs +4 -0
  156. package/dist/esm/api/resources/orgs/resources/complianceDocuments/client/requests/index.d.mts +1 -0
  157. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.d.mts +14 -0
  158. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/Client.mjs +63 -0
  159. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientCreate1.d.mts +1 -0
  160. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientUpdate1.d.mts +11 -0
  161. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/DriverComplianceDocumentClientUpdate1.mjs +4 -0
  162. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/client/requests/index.d.mts +1 -0
  163. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +26 -0
  164. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +75 -0
  165. package/dist/esm/api/types/AiImageDescription.d.mts +30 -0
  166. package/dist/esm/api/types/AiImageDescription.mjs +4 -0
  167. package/dist/esm/api/types/Case1.d.mts +4 -0
  168. package/dist/esm/api/types/CaseChecksDisableReq.d.mts +7 -0
  169. package/dist/esm/api/types/CaseChecksDisableReq.mjs +4 -0
  170. package/dist/esm/api/types/CaseChecksDismissReq.d.mts +8 -0
  171. package/dist/esm/api/types/CaseChecksDismissReq.mjs +4 -0
  172. package/dist/esm/api/types/CaseChecksSummary1.d.mts +27 -0
  173. package/dist/esm/api/types/CaseChecksSummary1.mjs +4 -0
  174. package/dist/esm/api/types/Check1.d.mts +33 -0
  175. package/dist/esm/api/types/Check1.mjs +4 -0
  176. package/dist/esm/api/types/CheckEnum.d.mts +46 -0
  177. package/dist/esm/api/types/CheckEnum.mjs +20 -0
  178. package/dist/esm/api/types/CheckStatusEnum.d.mts +32 -0
  179. package/dist/esm/api/types/CheckStatusEnum.mjs +12 -0
  180. package/dist/esm/api/types/Checklist1.d.mts +18 -0
  181. package/dist/esm/api/types/Checklist1.mjs +4 -0
  182. package/dist/esm/api/types/ChecklistCheck1.d.mts +15 -0
  183. package/dist/esm/api/types/ChecklistCheck1.mjs +4 -0
  184. package/dist/esm/api/types/ChecklistListRes.d.mts +8 -0
  185. package/dist/esm/api/types/ChecklistListRes.mjs +4 -0
  186. package/dist/esm/api/types/ChecklistSortByEnum.d.mts +9 -0
  187. package/dist/esm/api/types/ChecklistSortByEnum.mjs +8 -0
  188. package/dist/esm/api/types/DriverComplianceDocument1.d.mts +1 -0
  189. package/dist/esm/api/types/DriverComplianceDocumentTypeEnum1.d.mts +16 -1
  190. package/dist/esm/api/types/DriverComplianceDocumentTypeEnum1.mjs +15 -0
  191. package/dist/esm/api/types/LlmModelEnum.d.mts +12 -0
  192. package/dist/esm/api/types/LlmModelEnum.mjs +11 -0
  193. package/dist/esm/api/types/OperationsTask1.d.mts +19 -0
  194. package/dist/esm/api/types/OperationsTask1.mjs +4 -0
  195. package/dist/esm/api/types/OperationsTaskComment1.d.mts +10 -0
  196. package/dist/esm/api/types/OperationsTaskComment1.mjs +4 -0
  197. package/dist/esm/api/types/OperationsTaskListRes.d.mts +8 -0
  198. package/dist/esm/api/types/OperationsTaskListRes.mjs +4 -0
  199. package/dist/esm/api/types/OperationsTaskSortByEnum.d.mts +8 -0
  200. package/dist/esm/api/types/OperationsTaskSortByEnum.mjs +7 -0
  201. package/dist/esm/api/types/OrgComplianceDocument1.d.mts +1 -0
  202. package/dist/esm/api/types/OrgComplianceDocumentTypeEnum1.d.mts +11 -1
  203. package/dist/esm/api/types/OrgComplianceDocumentTypeEnum1.mjs +10 -0
  204. package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.d.mts +2 -0
  205. package/dist/esm/api/types/index.d.mts +16 -0
  206. package/dist/esm/api/types/index.mjs +16 -0
  207. package/dist/esm/version.d.mts +1 -1
  208. package/dist/esm/version.mjs +1 -1
  209. package/package.json +1 -1
  210. package/reference.md +1957 -142
@@ -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 ChecklistClientUpdate1 {
9
+ name?: string | null;
10
+ description?: string | null;
11
+ description__set_to_None?: boolean;
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,24 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * sort_by: "created_at_timestamp",
9
+ * sort_order: "asc",
10
+ * page: 1,
11
+ * page_size: 1,
12
+ * filter_archived: true
13
+ * }
14
+ */
15
+ export interface ChecklistsListV1Request {
16
+ /** Field to sort by */
17
+ sort_by?: Chrt.ChecklistSortByEnum | null;
18
+ /** Sort order (asc or desc) */
19
+ sort_order?: Chrt.SortOrderEnum | null;
20
+ page?: number | null;
21
+ page_size?: number | null;
22
+ /** Filter by archived flag. None=all, True=archived only, False=unarchived only. */
23
+ filter_archived?: boolean | null;
24
+ }
@@ -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,5 @@
1
+ export { type ChecklistsListV1Request } from "./ChecklistsListV1Request.js";
2
+ export { type ChecklistClientUpdate1 } from "./ChecklistClientUpdate1.js";
3
+ export { type ChecklistClientCreate1 } from "./ChecklistClientCreate1.js";
4
+ export { type ChecklistChecksAdd1 } from "./ChecklistChecksAdd1.js";
5
+ export { type ChecklistChecksRemove1 } from "./ChecklistChecksRemove1.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -1,4 +1,8 @@
1
1
  export * as cases from "./cases/index.js";
2
+ export * as checklists from "./checklists/index.js";
2
3
  export * as departments from "./departments/index.js";
4
+ export * as operationsTasks from "./operationsTasks/index.js";
3
5
  export * from "./cases/client/requests/index.js";
6
+ export * from "./checklists/client/requests/index.js";
4
7
  export * from "./departments/client/requests/index.js";
8
+ export * from "./operationsTasks/client/requests/index.js";
@@ -36,8 +36,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.departments = exports.cases = void 0;
39
+ exports.operationsTasks = exports.departments = exports.checklists = exports.cases = void 0;
40
40
  exports.cases = __importStar(require("./cases/index.js"));
41
+ exports.checklists = __importStar(require("./checklists/index.js"));
41
42
  exports.departments = __importStar(require("./departments/index.js"));
43
+ exports.operationsTasks = __importStar(require("./operationsTasks/index.js"));
42
44
  __exportStar(require("./cases/client/requests/index.js"), exports);
45
+ __exportStar(require("./checklists/client/requests/index.js"), exports);
43
46
  __exportStar(require("./departments/client/requests/index.js"), exports);
47
+ __exportStar(require("./operationsTasks/client/requests/index.js"), exports);
@@ -0,0 +1,170 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.js";
5
+ import * as core from "../../../../../../core/index.js";
6
+ import * as Chrt from "../../../../../index.js";
7
+ export declare namespace OperationsTasks {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class OperationsTasks {
31
+ protected readonly _options: OperationsTasks.Options;
32
+ constructor(_options?: OperationsTasks.Options);
33
+ /**
34
+ * Lists incomplete OperationsTasks for the caller's organization by default, with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
35
+ *
36
+ * @param {Chrt.operations.OperationsTasksListV1Request} request
37
+ * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.operations.operationsTasks.listV1({
43
+ * sort_by: "deadline_timestamp",
44
+ * sort_order: "asc",
45
+ * page: 1,
46
+ * page_size: 1,
47
+ * filter_case_id: "filter_case_id",
48
+ * filter_completed: true,
49
+ * filter_deadline_gte: "2024-01-15T09:30:00Z",
50
+ * filter_deadline_lte: "2024-01-15T09:30:00Z"
51
+ * })
52
+ */
53
+ listV1(request?: Chrt.operations.OperationsTasksListV1Request, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskListRes>;
54
+ private __listV1;
55
+ /**
56
+ * Retrieves a single OperationsTask by id. | authz: min_org_role=operator | () -> (OperationsTask1)
57
+ *
58
+ * @param {string} taskId
59
+ * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
60
+ *
61
+ * @throws {@link Chrt.UnprocessableEntityError}
62
+ *
63
+ * @example
64
+ * await client.operations.operationsTasks.getV1("task_id")
65
+ */
66
+ getV1(taskId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTask1>;
67
+ private __getV1;
68
+ /**
69
+ * Hard-deletes an OperationsTask. | authz: min_org_role=operator | () -> (bool)
70
+ *
71
+ * @param {string} taskId
72
+ * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
73
+ *
74
+ * @throws {@link Chrt.UnprocessableEntityError}
75
+ *
76
+ * @example
77
+ * await client.operations.operationsTasks.deleteV1("task_id")
78
+ */
79
+ deleteV1(taskId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
80
+ private __deleteV1;
81
+ /**
82
+ * Updates scalar fields (title, description, deadline_timestamp) on an OperationsTask. | authz: min_org_role=operator | (OperationsTaskClientUpdate1) -> (bool)
83
+ *
84
+ * @param {string} taskId
85
+ * @param {Chrt.operations.OperationsTaskClientUpdate1} request
86
+ * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
87
+ *
88
+ * @throws {@link Chrt.UnprocessableEntityError}
89
+ *
90
+ * @example
91
+ * await client.operations.operationsTasks.updateV1("task_id")
92
+ */
93
+ updateV1(taskId: string, request?: Chrt.operations.OperationsTaskClientUpdate1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
94
+ private __updateV1;
95
+ /**
96
+ * Creates a new OperationsTask on a Case owned by the caller's organization. | authz: min_org_role=operator | (OperationsTaskClientCreate1) -> (PydanticObjectId)
97
+ *
98
+ * @param {Chrt.operations.OperationsTaskClientCreate1} request
99
+ * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
100
+ *
101
+ * @throws {@link Chrt.UnprocessableEntityError}
102
+ *
103
+ * @example
104
+ * await client.operations.operationsTasks.createV1({
105
+ * schema_version: 1,
106
+ * case_id: "case_id",
107
+ * title: "title",
108
+ * description: "description"
109
+ * })
110
+ */
111
+ createV1(request: Chrt.operations.OperationsTaskClientCreate1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<string>;
112
+ private __createV1;
113
+ /**
114
+ * Marks an OperationsTask as completed. Idempotent — calling on an already-completed task is a no-op that returns False. | authz: min_org_role=operator | () -> (bool)
115
+ *
116
+ * @param {string} taskId
117
+ * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
118
+ *
119
+ * @throws {@link Chrt.UnprocessableEntityError}
120
+ *
121
+ * @example
122
+ * await client.operations.operationsTasks.completeV1("task_id")
123
+ */
124
+ completeV1(taskId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
125
+ private __completeV1;
126
+ /**
127
+ * Marks a previously-completed OperationsTask as incomplete and clears its completion timestamps. Idempotent — calling on an already-incomplete task is a no-op that returns False. | authz: min_org_role=operator | () -> (bool)
128
+ *
129
+ * @param {string} taskId
130
+ * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
131
+ *
132
+ * @throws {@link Chrt.UnprocessableEntityError}
133
+ *
134
+ * @example
135
+ * await client.operations.operationsTasks.uncompleteV1("task_id")
136
+ */
137
+ uncompleteV1(taskId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
138
+ private __uncompleteV1;
139
+ /**
140
+ * Appends a comment to an OperationsTask's comment thread. Returns the new comment id. | authz: min_org_role=operator | (OperationsTaskAddCommentReq1) -> (str)
141
+ *
142
+ * @param {string} taskId
143
+ * @param {Chrt.operations.OperationsTaskAddCommentReq1} request
144
+ * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
145
+ *
146
+ * @throws {@link Chrt.UnprocessableEntityError}
147
+ *
148
+ * @example
149
+ * await client.operations.operationsTasks.addCommentV1("task_id", {
150
+ * comment: "comment"
151
+ * })
152
+ */
153
+ addCommentV1(taskId: string, request: Chrt.operations.OperationsTaskAddCommentReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<string>;
154
+ private __addCommentV1;
155
+ /**
156
+ * Deletes a comment from an OperationsTask's comment thread. 404 if the comment isn't found. | authz: min_org_role=operator | () -> (bool)
157
+ *
158
+ * @param {string} taskId
159
+ * @param {string} commentId
160
+ * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
161
+ *
162
+ * @throws {@link Chrt.UnprocessableEntityError}
163
+ *
164
+ * @example
165
+ * await client.operations.operationsTasks.deleteCommentV1("task_id", "comment_id")
166
+ */
167
+ deleteCommentV1(taskId: string, commentId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
168
+ private __deleteCommentV1;
169
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
170
+ }