@chrt-inc/typescript-sdk 1.925.0 → 1.929.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 (212) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +1 -1
  4. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +3 -1
  5. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +11 -3
  6. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.ts +3 -0
  7. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +3 -0
  8. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +6 -1
  9. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +30 -2
  10. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +17 -0
  11. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/tasks/client/requests/OrderTemplateNewTaskClientUpdate1.d.ts +1 -0
  12. package/dist/cjs/api/resources/shipping/resources/orders/resources/task/client/requests/TaskClientUpdate1.d.ts +1 -0
  13. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +19 -2
  14. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +74 -5
  15. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskCompleteReq.d.ts +10 -0
  16. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.d.ts +12 -0
  17. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/index.d.ts +2 -0
  18. package/dist/cjs/api/resources/tracking/client/Client.d.ts +6 -0
  19. package/dist/cjs/api/resources/tracking/client/Client.js +16 -6
  20. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/Client.d.ts +140 -0
  21. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/Client.js +494 -0
  22. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/index.d.ts +2 -0
  23. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/index.js +17 -0
  24. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.d.ts +45 -0
  25. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.d.ts +28 -0
  26. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.d.ts +14 -0
  27. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.js +5 -0
  28. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/index.d.ts +3 -0
  29. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/index.js +2 -0
  30. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/index.js +17 -0
  32. package/dist/cjs/api/resources/tracking/resources/index.d.ts +4 -0
  33. package/dist/cjs/api/resources/tracking/resources/index.js +5 -1
  34. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/Client.d.ts +117 -0
  35. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/Client.js +393 -0
  36. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/index.d.ts +2 -0
  37. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/index.js +17 -0
  38. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.d.ts +12 -0
  39. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.js +5 -0
  40. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.d.ts +13 -0
  41. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.js +5 -0
  42. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.d.ts +10 -0
  43. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.js +5 -0
  44. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/index.d.ts +3 -0
  45. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/index.js +2 -0
  46. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/index.js +17 -0
  48. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +8 -8
  49. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +5 -5
  50. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionClientUpdate1.d.ts → SessionClientUpdate2.d.ts} +1 -5
  51. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate2.js +5 -0
  52. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionClientCreate1.d.ts → SessionsCreateV1Req.d.ts} +3 -3
  53. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsCreateV1Req.js +5 -0
  54. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +2 -2
  55. package/dist/cjs/api/types/BillingInvoiceApprovedWebhookPayload.d.ts +10 -0
  56. package/dist/cjs/api/types/BillingInvoiceApprovedWebhookPayload.js +5 -0
  57. package/dist/cjs/api/types/DeviceExpandedRes.d.ts +2 -2
  58. package/dist/cjs/api/types/GeofencePointLocationFeature1.d.ts +14 -0
  59. package/dist/cjs/api/types/GeofencePointLocationFeature1.js +5 -0
  60. package/dist/cjs/api/types/GeofenceTemplateListRes.d.ts +8 -0
  61. package/dist/cjs/api/types/GeofenceTemplateListRes.js +5 -0
  62. package/dist/cjs/api/types/GeofenceTemplateSortByEnum.d.ts +10 -0
  63. package/dist/cjs/api/types/GeofenceTemplateSortByEnum.js +12 -0
  64. package/dist/cjs/api/types/InvoiceExpandedRes.d.ts +1 -1
  65. package/dist/cjs/api/types/InvoiceLineItemExpandedRes.d.ts +12 -0
  66. package/dist/cjs/api/types/InvoiceLineItemExpandedRes.js +5 -0
  67. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +2 -2
  68. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +1 -1
  69. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +3 -2
  70. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +2 -1
  71. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +3 -2
  72. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +2 -1
  73. package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +1 -0
  74. package/dist/cjs/api/types/OrderExpandedForProvider.d.ts +1 -0
  75. package/dist/cjs/api/types/OrderTemplateNewExpanded1.d.ts +37 -0
  76. package/dist/cjs/api/types/OrderTemplateNewExpanded1.js +5 -0
  77. package/dist/cjs/api/types/OrderTemplateNewListRes.d.ts +1 -1
  78. package/dist/cjs/api/types/OrderTemplateNewTaskGroupExpanded1.d.ts +10 -0
  79. package/dist/cjs/api/types/OrderTemplateNewTaskGroupExpanded1.js +5 -0
  80. package/dist/cjs/api/types/Point.d.ts +1 -0
  81. package/dist/cjs/api/types/{Session1.d.ts → Session2.d.ts} +2 -4
  82. package/dist/cjs/api/types/Session2.js +5 -0
  83. package/dist/cjs/api/types/SessionGeofence1.d.ts +12 -0
  84. package/dist/cjs/api/types/SessionGeofence1.js +5 -0
  85. package/dist/cjs/api/types/SessionGeofenceBase1.d.ts +9 -0
  86. package/dist/cjs/api/types/SessionGeofenceBase1.js +5 -0
  87. package/dist/cjs/api/types/SessionGeofenceClientCreate1.d.ts +9 -0
  88. package/dist/cjs/api/types/SessionGeofenceClientCreate1.js +5 -0
  89. package/dist/cjs/api/types/SessionGeofenceTemplate1.d.ts +19 -0
  90. package/dist/cjs/api/types/SessionGeofenceTemplate1.js +5 -0
  91. package/dist/cjs/api/types/SessionListRes.d.ts +1 -1
  92. package/dist/cjs/api/types/Task1.d.ts +1 -0
  93. package/dist/cjs/api/types/TaskListToApplyToOrderExpanded.d.ts +8 -0
  94. package/dist/cjs/api/types/TaskListToApplyToOrderExpanded.js +5 -0
  95. package/dist/cjs/api/types/TrackingSessionGeofenceEnteredWebhookPayload.d.ts +14 -0
  96. package/dist/cjs/api/types/TrackingSessionGeofenceEnteredWebhookPayload.js +5 -0
  97. package/dist/cjs/api/types/index.d.ts +14 -2
  98. package/dist/cjs/api/types/index.js +14 -2
  99. package/dist/cjs/version.d.ts +1 -1
  100. package/dist/cjs/version.js +1 -1
  101. package/dist/esm/Client.mjs +2 -2
  102. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +1 -1
  103. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +1 -1
  104. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +3 -1
  105. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +11 -3
  106. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.mts +3 -0
  107. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +3 -0
  108. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +6 -1
  109. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +30 -2
  110. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +17 -0
  111. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/tasks/client/requests/OrderTemplateNewTaskClientUpdate1.d.mts +1 -0
  112. package/dist/esm/api/resources/shipping/resources/orders/resources/task/client/requests/TaskClientUpdate1.d.mts +1 -0
  113. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +19 -2
  114. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +74 -5
  115. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskCompleteReq.d.mts +10 -0
  116. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.d.mts +12 -0
  117. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/index.d.mts +2 -0
  118. package/dist/esm/api/resources/tracking/client/Client.d.mts +6 -0
  119. package/dist/esm/api/resources/tracking/client/Client.mjs +10 -0
  120. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/Client.d.mts +140 -0
  121. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/Client.mjs +457 -0
  122. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/index.d.mts +2 -0
  123. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/index.mjs +1 -0
  124. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.d.mts +45 -0
  125. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.d.mts +28 -0
  126. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.d.mts +14 -0
  127. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.mjs +4 -0
  128. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/index.d.mts +3 -0
  129. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/index.mjs +1 -0
  130. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/index.d.mts +1 -0
  131. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/index.mjs +1 -0
  132. package/dist/esm/api/resources/tracking/resources/index.d.mts +4 -0
  133. package/dist/esm/api/resources/tracking/resources/index.mjs +4 -0
  134. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/Client.d.mts +117 -0
  135. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/Client.mjs +356 -0
  136. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/index.d.mts +2 -0
  137. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/index.mjs +1 -0
  138. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.d.mts +12 -0
  139. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.mjs +4 -0
  140. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.d.mts +13 -0
  141. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.mjs +4 -0
  142. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.d.mts +10 -0
  143. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.mjs +4 -0
  144. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/index.d.mts +3 -0
  145. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/index.mjs +1 -0
  146. package/dist/esm/api/resources/tracking/resources/sessionGeofences/index.d.mts +1 -0
  147. package/dist/esm/api/resources/tracking/resources/sessionGeofences/index.mjs +1 -0
  148. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +8 -8
  149. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +5 -5
  150. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionClientUpdate1.d.mts → SessionClientUpdate2.d.mts} +1 -5
  151. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate2.mjs +4 -0
  152. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionClientCreate1.d.mts → SessionsCreateV1Req.d.mts} +3 -3
  153. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsCreateV1Req.mjs +4 -0
  154. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +2 -2
  155. package/dist/esm/api/types/BillingInvoiceApprovedWebhookPayload.d.mts +10 -0
  156. package/dist/esm/api/types/BillingInvoiceApprovedWebhookPayload.mjs +4 -0
  157. package/dist/esm/api/types/DeviceExpandedRes.d.mts +2 -2
  158. package/dist/esm/api/types/GeofencePointLocationFeature1.d.mts +14 -0
  159. package/dist/esm/api/types/GeofencePointLocationFeature1.mjs +4 -0
  160. package/dist/esm/api/types/GeofenceTemplateListRes.d.mts +8 -0
  161. package/dist/esm/api/types/GeofenceTemplateListRes.mjs +4 -0
  162. package/dist/esm/api/types/GeofenceTemplateSortByEnum.d.mts +10 -0
  163. package/dist/esm/api/types/GeofenceTemplateSortByEnum.mjs +9 -0
  164. package/dist/esm/api/types/InvoiceExpandedRes.d.mts +1 -1
  165. package/dist/esm/api/types/InvoiceLineItemExpandedRes.d.mts +12 -0
  166. package/dist/esm/api/types/InvoiceLineItemExpandedRes.mjs +4 -0
  167. package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +2 -2
  168. package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +1 -1
  169. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +3 -2
  170. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +2 -1
  171. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +3 -2
  172. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +2 -1
  173. package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +1 -0
  174. package/dist/esm/api/types/OrderExpandedForProvider.d.mts +1 -0
  175. package/dist/esm/api/types/OrderTemplateNewExpanded1.d.mts +37 -0
  176. package/dist/esm/api/types/OrderTemplateNewExpanded1.mjs +4 -0
  177. package/dist/esm/api/types/OrderTemplateNewListRes.d.mts +1 -1
  178. package/dist/esm/api/types/OrderTemplateNewTaskGroupExpanded1.d.mts +10 -0
  179. package/dist/esm/api/types/OrderTemplateNewTaskGroupExpanded1.mjs +4 -0
  180. package/dist/esm/api/types/Point.d.mts +1 -0
  181. package/dist/esm/api/types/{Session1.d.mts → Session2.d.mts} +2 -4
  182. package/dist/esm/api/types/Session2.mjs +4 -0
  183. package/dist/esm/api/types/SessionGeofence1.d.mts +12 -0
  184. package/dist/esm/api/types/SessionGeofence1.mjs +4 -0
  185. package/dist/esm/api/types/SessionGeofenceBase1.d.mts +9 -0
  186. package/dist/esm/api/types/SessionGeofenceBase1.mjs +4 -0
  187. package/dist/esm/api/types/SessionGeofenceClientCreate1.d.mts +9 -0
  188. package/dist/esm/api/types/SessionGeofenceClientCreate1.mjs +4 -0
  189. package/dist/esm/api/types/SessionGeofenceTemplate1.d.mts +19 -0
  190. package/dist/esm/api/types/SessionGeofenceTemplate1.mjs +4 -0
  191. package/dist/esm/api/types/SessionListRes.d.mts +1 -1
  192. package/dist/esm/api/types/Task1.d.mts +1 -0
  193. package/dist/esm/api/types/TaskListToApplyToOrderExpanded.d.mts +8 -0
  194. package/dist/esm/api/types/TaskListToApplyToOrderExpanded.mjs +4 -0
  195. package/dist/esm/api/types/TrackingSessionGeofenceEnteredWebhookPayload.d.mts +14 -0
  196. package/dist/esm/api/types/TrackingSessionGeofenceEnteredWebhookPayload.mjs +4 -0
  197. package/dist/esm/api/types/index.d.mts +14 -2
  198. package/dist/esm/api/types/index.mjs +14 -2
  199. package/dist/esm/version.d.mts +1 -1
  200. package/dist/esm/version.mjs +1 -1
  201. package/package.json +1 -1
  202. package/reference.md +982 -100
  203. package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.ts +0 -10
  204. package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.mts +0 -10
  205. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionClientCreate1.js → shipping/resources/tasks/client/requests/TaskCompleteReq.js} +0 -0
  206. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionClientUpdate1.js → shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.js} +0 -0
  207. /package/dist/cjs/api/{types/Session1.js → resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.js} +0 -0
  208. /package/dist/cjs/api/{types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.js → resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.js} +0 -0
  209. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionClientCreate1.mjs → shipping/resources/tasks/client/requests/TaskCompleteReq.mjs} +0 -0
  210. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionClientUpdate1.mjs → shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.mjs} +0 -0
  211. /package/dist/esm/api/{types/Session1.mjs → resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.mjs} +0 -0
  212. /package/dist/esm/api/{types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.mjs → resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.mjs} +0 -0
@@ -0,0 +1,393 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.SessionGeofences = void 0;
49
+ const environments = __importStar(require("../../../../../../environments.js"));
50
+ const core = __importStar(require("../../../../../../core/index.js"));
51
+ const Chrt = __importStar(require("../../../../../index.js"));
52
+ const headers_js_1 = require("../../../../../../core/headers.js");
53
+ const errors = __importStar(require("../../../../../../errors/index.js"));
54
+ class SessionGeofences {
55
+ constructor(_options = {}) {
56
+ this._options = _options;
57
+ }
58
+ /**
59
+ * Adds a geofence to an active session. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceClientCreate1) -> (Session2)
60
+ *
61
+ * @param {string} sessionId
62
+ * @param {Chrt.SessionGeofenceClientCreate1} request
63
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link Chrt.UnprocessableEntityError}
66
+ *
67
+ * @example
68
+ * await client.tracking.sessionGeofences.addV1("session_id", {
69
+ * display_name: "display_name",
70
+ * location: {
71
+ * geometry: {
72
+ * coordinates: [],
73
+ * type: "Point"
74
+ * },
75
+ * type: "Feature"
76
+ * },
77
+ * radius_miles: 1.1
78
+ * })
79
+ */
80
+ addV1(sessionId, request, requestOptions) {
81
+ return core.HttpResponsePromise.fromPromise(this.__addV1(sessionId, request, requestOptions));
82
+ }
83
+ __addV1(sessionId, request, requestOptions) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ var _a, _b, _c, _d;
86
+ 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);
87
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
88
+ 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/sessions/geofences/add/v1/${encodeURIComponent(sessionId)}`),
89
+ method: "POST",
90
+ headers: _headers,
91
+ contentType: "application/json",
92
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
93
+ requestType: "json",
94
+ body: request,
95
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
96
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
97
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
98
+ });
99
+ if (_response.ok) {
100
+ return { data: _response.body, rawResponse: _response.rawResponse };
101
+ }
102
+ if (_response.error.reason === "status-code") {
103
+ switch (_response.error.statusCode) {
104
+ case 422:
105
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
106
+ default:
107
+ throw new errors.ChrtError({
108
+ statusCode: _response.error.statusCode,
109
+ body: _response.error.body,
110
+ rawResponse: _response.rawResponse,
111
+ });
112
+ }
113
+ }
114
+ switch (_response.error.reason) {
115
+ case "non-json":
116
+ throw new errors.ChrtError({
117
+ statusCode: _response.error.statusCode,
118
+ body: _response.error.rawBody,
119
+ rawResponse: _response.rawResponse,
120
+ });
121
+ case "timeout":
122
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/geofences/add/v1/{session_id}.");
123
+ case "unknown":
124
+ throw new errors.ChrtError({
125
+ message: _response.error.errorMessage,
126
+ rawResponse: _response.rawResponse,
127
+ });
128
+ }
129
+ });
130
+ }
131
+ /**
132
+ * Replaces an active session's geofences from an active organization template. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceApplyTemplateReq) -> (Session2)
133
+ *
134
+ * @param {string} sessionId
135
+ * @param {Chrt.tracking.SessionGeofenceApplyTemplateReq} request
136
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
137
+ *
138
+ * @throws {@link Chrt.UnprocessableEntityError}
139
+ *
140
+ * @example
141
+ * await client.tracking.sessionGeofences.applyTemplateV1("session_id", {
142
+ * geofence_template_id: "geofence_template_id"
143
+ * })
144
+ */
145
+ applyTemplateV1(sessionId, request, requestOptions) {
146
+ return core.HttpResponsePromise.fromPromise(this.__applyTemplateV1(sessionId, request, requestOptions));
147
+ }
148
+ __applyTemplateV1(sessionId, request, requestOptions) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ var _a, _b, _c, _d;
151
+ 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);
152
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
153
+ 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/sessions/geofences/apply_template/v1/${encodeURIComponent(sessionId)}`),
154
+ method: "POST",
155
+ headers: _headers,
156
+ contentType: "application/json",
157
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
158
+ requestType: "json",
159
+ body: request,
160
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
161
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
162
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
163
+ });
164
+ if (_response.ok) {
165
+ return { data: _response.body, rawResponse: _response.rawResponse };
166
+ }
167
+ if (_response.error.reason === "status-code") {
168
+ switch (_response.error.statusCode) {
169
+ case 422:
170
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
171
+ default:
172
+ throw new errors.ChrtError({
173
+ statusCode: _response.error.statusCode,
174
+ body: _response.error.body,
175
+ rawResponse: _response.rawResponse,
176
+ });
177
+ }
178
+ }
179
+ switch (_response.error.reason) {
180
+ case "non-json":
181
+ throw new errors.ChrtError({
182
+ statusCode: _response.error.statusCode,
183
+ body: _response.error.rawBody,
184
+ rawResponse: _response.rawResponse,
185
+ });
186
+ case "timeout":
187
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/geofences/apply_template/v1/{session_id}.");
188
+ case "unknown":
189
+ throw new errors.ChrtError({
190
+ message: _response.error.errorMessage,
191
+ rawResponse: _response.rawResponse,
192
+ });
193
+ }
194
+ });
195
+ }
196
+ /**
197
+ * Reorders an active session's geofences using an exact ID permutation. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceReorderReq) -> (Session2)
198
+ *
199
+ * @param {string} sessionId
200
+ * @param {Chrt.tracking.SessionGeofenceReorderReq} request
201
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
202
+ *
203
+ * @throws {@link Chrt.UnprocessableEntityError}
204
+ *
205
+ * @example
206
+ * await client.tracking.sessionGeofences.reorderV1("session_id")
207
+ */
208
+ reorderV1(sessionId, request = {}, requestOptions) {
209
+ return core.HttpResponsePromise.fromPromise(this.__reorderV1(sessionId, request, requestOptions));
210
+ }
211
+ __reorderV1(sessionId_1) {
212
+ return __awaiter(this, arguments, void 0, function* (sessionId, request = {}, requestOptions) {
213
+ var _a, _b, _c, _d;
214
+ 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);
215
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
216
+ 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/sessions/geofences/reorder/v1/${encodeURIComponent(sessionId)}`),
217
+ method: "POST",
218
+ headers: _headers,
219
+ contentType: "application/json",
220
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
221
+ requestType: "json",
222
+ body: request,
223
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
224
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
225
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
226
+ });
227
+ if (_response.ok) {
228
+ return { data: _response.body, rawResponse: _response.rawResponse };
229
+ }
230
+ if (_response.error.reason === "status-code") {
231
+ switch (_response.error.statusCode) {
232
+ case 422:
233
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
234
+ default:
235
+ throw new errors.ChrtError({
236
+ statusCode: _response.error.statusCode,
237
+ body: _response.error.body,
238
+ rawResponse: _response.rawResponse,
239
+ });
240
+ }
241
+ }
242
+ switch (_response.error.reason) {
243
+ case "non-json":
244
+ throw new errors.ChrtError({
245
+ statusCode: _response.error.statusCode,
246
+ body: _response.error.rawBody,
247
+ rawResponse: _response.rawResponse,
248
+ });
249
+ case "timeout":
250
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/geofences/reorder/v1/{session_id}.");
251
+ case "unknown":
252
+ throw new errors.ChrtError({
253
+ message: _response.error.errorMessage,
254
+ rawResponse: _response.rawResponse,
255
+ });
256
+ }
257
+ });
258
+ }
259
+ /**
260
+ * Updates a session geofence, resetting entry state only when location or radius changes. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceClientUpdate1) -> (Session2)
261
+ *
262
+ * @param {string} sessionId
263
+ * @param {string} geofenceId
264
+ * @param {Chrt.tracking.SessionGeofenceClientUpdate1} request
265
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
266
+ *
267
+ * @throws {@link Chrt.UnprocessableEntityError}
268
+ *
269
+ * @example
270
+ * await client.tracking.sessionGeofences.updateV1("session_id", "geofence_id")
271
+ */
272
+ updateV1(sessionId, geofenceId, request = {}, requestOptions) {
273
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(sessionId, geofenceId, request, requestOptions));
274
+ }
275
+ __updateV1(sessionId_1, geofenceId_1) {
276
+ return __awaiter(this, arguments, void 0, function* (sessionId, geofenceId, request = {}, requestOptions) {
277
+ var _a, _b, _c, _d;
278
+ 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);
279
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
280
+ 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/sessions/geofences/update/v1/${encodeURIComponent(sessionId)}/${encodeURIComponent(geofenceId)}`),
281
+ method: "PATCH",
282
+ headers: _headers,
283
+ contentType: "application/json",
284
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
285
+ requestType: "json",
286
+ body: request,
287
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
288
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
289
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
290
+ });
291
+ if (_response.ok) {
292
+ return { data: _response.body, rawResponse: _response.rawResponse };
293
+ }
294
+ if (_response.error.reason === "status-code") {
295
+ switch (_response.error.statusCode) {
296
+ case 422:
297
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
298
+ default:
299
+ throw new errors.ChrtError({
300
+ statusCode: _response.error.statusCode,
301
+ body: _response.error.body,
302
+ rawResponse: _response.rawResponse,
303
+ });
304
+ }
305
+ }
306
+ switch (_response.error.reason) {
307
+ case "non-json":
308
+ throw new errors.ChrtError({
309
+ statusCode: _response.error.statusCode,
310
+ body: _response.error.rawBody,
311
+ rawResponse: _response.rawResponse,
312
+ });
313
+ case "timeout":
314
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /tracking/sessions/geofences/update/v1/{session_id}/{geofence_id}.");
315
+ case "unknown":
316
+ throw new errors.ChrtError({
317
+ message: _response.error.errorMessage,
318
+ rawResponse: _response.rawResponse,
319
+ });
320
+ }
321
+ });
322
+ }
323
+ /**
324
+ * Removes a geofence from an active session. | auth: api_key | authz: min_org_role=operator | () -> (Session2)
325
+ *
326
+ * @param {string} sessionId
327
+ * @param {string} geofenceId
328
+ * @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
329
+ *
330
+ * @throws {@link Chrt.UnprocessableEntityError}
331
+ *
332
+ * @example
333
+ * await client.tracking.sessionGeofences.removeV1("session_id", "geofence_id")
334
+ */
335
+ removeV1(sessionId, geofenceId, requestOptions) {
336
+ return core.HttpResponsePromise.fromPromise(this.__removeV1(sessionId, geofenceId, requestOptions));
337
+ }
338
+ __removeV1(sessionId, geofenceId, 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, `tracking/sessions/geofences/v1/${encodeURIComponent(sessionId)}/${encodeURIComponent(geofenceId)}`),
344
+ method: "DELETE",
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 DELETE /tracking/sessions/geofences/v1/{session_id}/{geofence_id}.");
375
+ case "unknown":
376
+ throw new errors.ChrtError({
377
+ message: _response.error.errorMessage,
378
+ rawResponse: _response.rawResponse,
379
+ });
380
+ }
381
+ });
382
+ }
383
+ _getAuthorizationHeader() {
384
+ return __awaiter(this, void 0, void 0, function* () {
385
+ const bearer = yield core.Supplier.get(this._options.token);
386
+ if (bearer != null) {
387
+ return `Bearer ${bearer}`;
388
+ }
389
+ return undefined;
390
+ });
391
+ }
392
+ }
393
+ exports.SessionGeofences = SessionGeofences;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/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("./requests/index.js"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * geofence_template_id: "geofence_template_id"
8
+ * }
9
+ */
10
+ export interface SessionGeofenceApplyTemplateReq {
11
+ geofence_template_id: 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,13 @@
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
+ */
9
+ export interface SessionGeofenceClientUpdate1 {
10
+ display_name?: string | null;
11
+ location?: Chrt.GeofencePointLocationFeature1 | null;
12
+ radius_miles?: number | null;
13
+ }
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface SessionGeofenceReorderReq {
9
+ ordered_geofence_ids?: string[];
10
+ }
@@ -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,3 @@
1
+ export { type SessionGeofenceApplyTemplateReq } from "./SessionGeofenceApplyTemplateReq.js";
2
+ export { type SessionGeofenceReorderReq } from "./SessionGeofenceReorderReq.js";
3
+ export { type SessionGeofenceClientUpdate1 } from "./SessionGeofenceClientUpdate1.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);
@@ -31,9 +31,9 @@ export declare class Sessions {
31
31
  protected readonly _options: Sessions.Options;
32
32
  constructor(_options?: Sessions.Options);
33
33
  /**
34
- * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Optionally seed a destination geofence (location + radius) to fire a destination geofence entered notification; attach flights afterwards via set_flight_info. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
34
+ * Creates a tracking session with ordered geofences or an organization template and links its device. | auth: api_key | authz: min_org_role=operator | (SessionsCreateV1Req) -> (PydanticObjectId)
35
35
  *
36
- * @param {Chrt.tracking.SessionClientCreate1} request
36
+ * @param {Chrt.tracking.SessionsCreateV1Req} request
37
37
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
38
38
  *
39
39
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -45,7 +45,7 @@ export declare class Sessions {
45
45
  * schema_version: 1
46
46
  * })
47
47
  */
48
- createSessionV1(request: Chrt.tracking.SessionClientCreate1, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<string>;
48
+ createSessionV1(request: Chrt.tracking.SessionsCreateV1Req, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<string>;
49
49
  private __createSessionV1;
50
50
  /**
51
51
  * Returns the session's flight legs in order, with Cirium-sourced status lazily resolved and refreshed on read. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (list[FlightLeg1])
@@ -79,7 +79,7 @@ export declare class Sessions {
79
79
  flightTrackV1(request: Chrt.tracking.SessionsFlightTrackV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.FlightTrackRes>;
80
80
  private __flightTrackV1;
81
81
  /**
82
- * Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (Session1)
82
+ * Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (Session2)
83
83
  *
84
84
  * @param {Chrt.tracking.SessionsGetV1Request} request
85
85
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -91,7 +91,7 @@ export declare class Sessions {
91
91
  * session_id: "session_id"
92
92
  * })
93
93
  */
94
- getV1(request: Chrt.tracking.SessionsGetV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.Session1>;
94
+ getV1(request: Chrt.tracking.SessionsGetV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.Session2>;
95
95
  private __getV1;
96
96
  /**
97
97
  * Lists sessions with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (SessionListRes)
@@ -185,9 +185,9 @@ export declare class Sessions {
185
185
  typeaheadV1(request: Chrt.tracking.SessionsTypeaheadV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.TrackingTypeaheadResult[]>;
186
186
  private __typeaheadV1;
187
187
  /**
188
- * Updates a session's mutable metadata (off_chrt_reference_id, comments, public, termination_scheduled_for_timestamp, destination_geofence_location, destination_geofence_radius_miles). Setting or replacing the destination geofence location resets the entered latch so it can fire again; clearing it (destination_geofence_location__set_to_None) also resets the latch. | auth: api_key | (SessionClientUpdate1) -> (bool)
188
+ * Updates mutable non-geofence session fields. Use dedicated geofence routes for geofence changes. | auth: api_key | authz: min_org_role=operator | (SessionClientUpdate2) -> (bool)
189
189
  *
190
- * @param {Chrt.tracking.SessionClientUpdate1} request
190
+ * @param {Chrt.tracking.SessionClientUpdate2} request
191
191
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
192
192
  *
193
193
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -197,7 +197,7 @@ export declare class Sessions {
197
197
  * session_id: "session_id"
198
198
  * })
199
199
  */
200
- updateV1(request: Chrt.tracking.SessionClientUpdate1, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<boolean>;
200
+ updateV1(request: Chrt.tracking.SessionClientUpdate2, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<boolean>;
201
201
  private __updateV1;
202
202
  /**
203
203
  * Adds and/or removes org_ids from a session's shared_with_org_ids list. Only the owning org may modify sharing. Removal overrides addition. | auth: api_key | (SessionsUpdateSharedOrgsReq1) -> (bool)
@@ -67,9 +67,9 @@ class Sessions {
67
67
  this._options = _options;
68
68
  }
69
69
  /**
70
- * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Optionally seed a destination geofence (location + radius) to fire a destination geofence entered notification; attach flights afterwards via set_flight_info. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
70
+ * Creates a tracking session with ordered geofences or an organization template and links its device. | auth: api_key | authz: min_org_role=operator | (SessionsCreateV1Req) -> (PydanticObjectId)
71
71
  *
72
- * @param {Chrt.tracking.SessionClientCreate1} request
72
+ * @param {Chrt.tracking.SessionsCreateV1Req} request
73
73
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
74
74
  *
75
75
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -269,7 +269,7 @@ class Sessions {
269
269
  });
270
270
  }
271
271
  /**
272
- * Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (Session1)
272
+ * Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (Session2)
273
273
  *
274
274
  * @param {Chrt.tracking.SessionsGetV1Request} request
275
275
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -688,9 +688,9 @@ class Sessions {
688
688
  });
689
689
  }
690
690
  /**
691
- * Updates a session's mutable metadata (off_chrt_reference_id, comments, public, termination_scheduled_for_timestamp, destination_geofence_location, destination_geofence_radius_miles). Setting or replacing the destination geofence location resets the entered latch so it can fire again; clearing it (destination_geofence_location__set_to_None) also resets the latch. | auth: api_key | (SessionClientUpdate1) -> (bool)
691
+ * Updates mutable non-geofence session fields. Use dedicated geofence routes for geofence changes. | auth: api_key | authz: min_org_role=operator | (SessionClientUpdate2) -> (bool)
692
692
  *
693
- * @param {Chrt.tracking.SessionClientUpdate1} request
693
+ * @param {Chrt.tracking.SessionClientUpdate2} request
694
694
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
695
695
  *
696
696
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -1,20 +1,16 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../../../../../../index.js";
5
4
  /**
6
5
  * @example
7
6
  * {
8
7
  * session_id: "session_id"
9
8
  * }
10
9
  */
11
- export interface SessionClientUpdate1 {
10
+ export interface SessionClientUpdate2 {
12
11
  session_id: string;
13
12
  comments?: string | null;
14
13
  comments__set_to_None?: boolean;
15
- destination_geofence_location?: Chrt.LocationFeature | null;
16
- destination_geofence_location__set_to_None?: boolean;
17
- destination_geofence_radius_miles?: number | null;
18
14
  /** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
19
15
  off_chrt_reference_id?: string | null;
20
16
  off_chrt_reference_id__set_to_None?: boolean;
@@ -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 });