@samsarahq/samsara 13.20.0 → 13.22.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 (164) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +89 -0
  3. package/dist/cjs/api/resources/betaApIs/client/Client.js +267 -0
  4. package/dist/cjs/api/resources/betaApIs/client/requests/ListPreventiveMaintenanceSchedulesRequest.d.ts +12 -0
  5. package/dist/cjs/api/resources/betaApIs/client/requests/ListUpcomingPreventiveMaintenanceRequest.d.ts +14 -0
  6. package/dist/cjs/api/resources/betaApIs/client/requests/ListUpcomingPreventiveMaintenanceRequest.js +3 -0
  7. package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +3 -0
  8. package/dist/cjs/api/resources/previewApIs/client/Client.d.ts +0 -39
  9. package/dist/cjs/api/resources/previewApIs/client/Client.js +0 -96
  10. package/dist/cjs/api/resources/previewApIs/client/requests/index.d.ts +0 -1
  11. package/dist/cjs/api/types/CreateRoutesStopRequestObjectRequestBody.d.ts +1 -1
  12. package/dist/cjs/api/types/EntityListPreventiveMaintenanceSchedulesTypeResponseBody.d.ts +22 -0
  13. package/dist/cjs/api/types/EntityListPreventiveMaintenanceSchedulesTypeResponseBody.js +3 -0
  14. package/dist/cjs/api/types/EntityListTachographLiveDataTypeResponseBody.d.ts +22 -22
  15. package/dist/cjs/api/types/EntityListUpcomingPreventiveMaintenanceTypeResponseBody.d.ts +33 -0
  16. package/dist/cjs/api/types/EntityListUpcomingPreventiveMaintenanceTypeResponseBody.js +3 -0
  17. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulePreventativeMaintenanceScheduleRefTypeResponseBody.d.ts +7 -0
  18. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulePreventativeMaintenanceScheduleRefTypeResponseBody.js +3 -0
  19. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesBadGatewayErrorResponseBody.d.ts +9 -0
  20. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesBadGatewayErrorResponseBody.js +3 -0
  21. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesGatewayTimeoutErrorResponseBody.d.ts +9 -0
  22. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesGatewayTimeoutErrorResponseBody.js +3 -0
  23. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesInternalServerErrorResponseBody.d.ts +9 -0
  24. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesInternalServerErrorResponseBody.js +3 -0
  25. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesMethodNotAllowedErrorResponseBody.d.ts +9 -0
  26. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesMethodNotAllowedErrorResponseBody.js +3 -0
  27. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotFoundErrorResponseBody.d.ts +9 -0
  28. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotFoundErrorResponseBody.js +3 -0
  29. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotImplementedErrorResponseBody.d.ts +9 -0
  30. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotImplementedErrorResponseBody.js +3 -0
  31. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesResponseBody.d.ts +6 -0
  32. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesResponseBody.js +3 -0
  33. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesServiceUnavailableErrorResponseBody.d.ts +9 -0
  34. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesServiceUnavailableErrorResponseBody.js +3 -0
  35. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesTooManyRequestsErrorResponseBody.d.ts +9 -0
  36. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesTooManyRequestsErrorResponseBody.js +3 -0
  37. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesUnauthorizedErrorResponseBody.d.ts +9 -0
  38. package/dist/cjs/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesUnauthorizedErrorResponseBody.js +3 -0
  39. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenanceAssetRefTypeResponseBody.d.ts +7 -0
  40. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenanceAssetRefTypeResponseBody.js +3 -0
  41. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancePreventativeMaintenanceScheduleRefTypeResponseBody.d.ts +7 -0
  42. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancePreventativeMaintenanceScheduleRefTypeResponseBody.js +3 -0
  43. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenanceWorkOrderRefTypeResponseBody.d.ts +7 -0
  44. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenanceWorkOrderRefTypeResponseBody.js +3 -0
  45. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceBadGatewayErrorResponseBody.d.ts +9 -0
  46. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceBadGatewayErrorResponseBody.js +3 -0
  47. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceGatewayTimeoutErrorResponseBody.d.ts +9 -0
  48. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceGatewayTimeoutErrorResponseBody.js +3 -0
  49. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceInternalServerErrorResponseBody.d.ts +9 -0
  50. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceInternalServerErrorResponseBody.js +3 -0
  51. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceMethodNotAllowedErrorResponseBody.d.ts +9 -0
  52. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceMethodNotAllowedErrorResponseBody.js +3 -0
  53. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotFoundErrorResponseBody.d.ts +9 -0
  54. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotFoundErrorResponseBody.js +3 -0
  55. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotImplementedErrorResponseBody.d.ts +9 -0
  56. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotImplementedErrorResponseBody.js +3 -0
  57. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceResponseBody.d.ts +6 -0
  58. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceResponseBody.js +3 -0
  59. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceServiceUnavailableErrorResponseBody.d.ts +9 -0
  60. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceServiceUnavailableErrorResponseBody.js +3 -0
  61. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceTooManyRequestsErrorResponseBody.d.ts +9 -0
  62. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceTooManyRequestsErrorResponseBody.js +3 -0
  63. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceUnauthorizedErrorResponseBody.d.ts +9 -0
  64. package/dist/cjs/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceUnauthorizedErrorResponseBody.js +3 -0
  65. package/dist/cjs/api/types/HosDutyStatusDataResponseBody.d.ts +7 -0
  66. package/dist/cjs/api/types/HosDutyStatusDataResponseBody.js +3 -0
  67. package/dist/cjs/api/types/RouteStopAppointmentWindowRequestBody.d.ts +6 -0
  68. package/dist/cjs/api/types/RouteStopAppointmentWindowRequestBody.js +3 -0
  69. package/dist/cjs/api/types/RouteStopAppointmentWindowResponseBody.d.ts +6 -0
  70. package/dist/cjs/api/types/RouteStopAppointmentWindowResponseBody.js +3 -0
  71. package/dist/cjs/api/types/RoutesStopResponseObjectResponseBody.d.ts +1 -1
  72. package/dist/cjs/api/types/UpdateRoutesStopRequestObjectRequestBody.d.ts +1 -1
  73. package/dist/cjs/api/types/WorkflowIncidentDetailsObjectResponseBody.d.ts +1 -0
  74. package/dist/cjs/api/types/index.d.ts +29 -1
  75. package/dist/cjs/api/types/index.js +29 -1
  76. package/dist/cjs/version.d.ts +1 -1
  77. package/dist/cjs/version.js +1 -1
  78. package/dist/esm/BaseClient.mjs +2 -2
  79. package/dist/esm/api/resources/betaApIs/client/Client.d.mts +89 -0
  80. package/dist/esm/api/resources/betaApIs/client/Client.mjs +267 -0
  81. package/dist/esm/api/resources/betaApIs/client/requests/ListPreventiveMaintenanceSchedulesRequest.d.mts +12 -0
  82. package/dist/esm/api/resources/betaApIs/client/requests/ListUpcomingPreventiveMaintenanceRequest.d.mts +14 -0
  83. package/dist/esm/api/resources/betaApIs/client/requests/ListUpcomingPreventiveMaintenanceRequest.mjs +2 -0
  84. package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +3 -0
  85. package/dist/esm/api/resources/previewApIs/client/Client.d.mts +0 -39
  86. package/dist/esm/api/resources/previewApIs/client/Client.mjs +0 -96
  87. package/dist/esm/api/resources/previewApIs/client/requests/index.d.mts +0 -1
  88. package/dist/esm/api/types/CreateRoutesStopRequestObjectRequestBody.d.mts +1 -1
  89. package/dist/esm/api/types/EntityListPreventiveMaintenanceSchedulesTypeResponseBody.d.mts +22 -0
  90. package/dist/esm/api/types/EntityListPreventiveMaintenanceSchedulesTypeResponseBody.mjs +2 -0
  91. package/dist/esm/api/types/EntityListTachographLiveDataTypeResponseBody.d.mts +22 -22
  92. package/dist/esm/api/types/EntityListUpcomingPreventiveMaintenanceTypeResponseBody.d.mts +33 -0
  93. package/dist/esm/api/types/EntityListUpcomingPreventiveMaintenanceTypeResponseBody.mjs +2 -0
  94. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulePreventativeMaintenanceScheduleRefTypeResponseBody.d.mts +7 -0
  95. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulePreventativeMaintenanceScheduleRefTypeResponseBody.mjs +2 -0
  96. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesBadGatewayErrorResponseBody.d.mts +9 -0
  97. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesBadGatewayErrorResponseBody.mjs +2 -0
  98. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesGatewayTimeoutErrorResponseBody.d.mts +9 -0
  99. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesGatewayTimeoutErrorResponseBody.mjs +2 -0
  100. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesInternalServerErrorResponseBody.d.mts +9 -0
  101. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesInternalServerErrorResponseBody.mjs +2 -0
  102. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesMethodNotAllowedErrorResponseBody.d.mts +9 -0
  103. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesMethodNotAllowedErrorResponseBody.mjs +2 -0
  104. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotFoundErrorResponseBody.d.mts +9 -0
  105. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotFoundErrorResponseBody.mjs +2 -0
  106. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotImplementedErrorResponseBody.d.mts +9 -0
  107. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesNotImplementedErrorResponseBody.mjs +2 -0
  108. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesResponseBody.d.mts +6 -0
  109. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesResponseBody.mjs +2 -0
  110. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesServiceUnavailableErrorResponseBody.d.mts +9 -0
  111. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesServiceUnavailableErrorResponseBody.mjs +2 -0
  112. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesTooManyRequestsErrorResponseBody.d.mts +9 -0
  113. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesTooManyRequestsErrorResponseBody.mjs +2 -0
  114. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesUnauthorizedErrorResponseBody.d.mts +9 -0
  115. package/dist/esm/api/types/EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesUnauthorizedErrorResponseBody.mjs +2 -0
  116. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenanceAssetRefTypeResponseBody.d.mts +7 -0
  117. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenanceAssetRefTypeResponseBody.mjs +2 -0
  118. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancePreventativeMaintenanceScheduleRefTypeResponseBody.d.mts +7 -0
  119. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancePreventativeMaintenanceScheduleRefTypeResponseBody.mjs +2 -0
  120. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenanceWorkOrderRefTypeResponseBody.d.mts +7 -0
  121. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenanceWorkOrderRefTypeResponseBody.mjs +2 -0
  122. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceBadGatewayErrorResponseBody.d.mts +9 -0
  123. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceBadGatewayErrorResponseBody.mjs +2 -0
  124. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceGatewayTimeoutErrorResponseBody.d.mts +9 -0
  125. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceGatewayTimeoutErrorResponseBody.mjs +2 -0
  126. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceInternalServerErrorResponseBody.d.mts +9 -0
  127. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceInternalServerErrorResponseBody.mjs +2 -0
  128. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceMethodNotAllowedErrorResponseBody.d.mts +9 -0
  129. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceMethodNotAllowedErrorResponseBody.mjs +2 -0
  130. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotFoundErrorResponseBody.d.mts +9 -0
  131. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotFoundErrorResponseBody.mjs +2 -0
  132. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotImplementedErrorResponseBody.d.mts +9 -0
  133. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceNotImplementedErrorResponseBody.mjs +2 -0
  134. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceResponseBody.d.mts +6 -0
  135. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceResponseBody.mjs +2 -0
  136. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceServiceUnavailableErrorResponseBody.d.mts +9 -0
  137. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceServiceUnavailableErrorResponseBody.mjs +2 -0
  138. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceTooManyRequestsErrorResponseBody.d.mts +9 -0
  139. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceTooManyRequestsErrorResponseBody.mjs +2 -0
  140. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceUnauthorizedErrorResponseBody.d.mts +9 -0
  141. package/dist/esm/api/types/EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceUnauthorizedErrorResponseBody.mjs +2 -0
  142. package/dist/esm/api/types/HosDutyStatusDataResponseBody.d.mts +7 -0
  143. package/dist/esm/api/types/HosDutyStatusDataResponseBody.mjs +2 -0
  144. package/dist/esm/api/types/RouteStopAppointmentWindowRequestBody.d.mts +6 -0
  145. package/dist/esm/api/types/RouteStopAppointmentWindowRequestBody.mjs +2 -0
  146. package/dist/esm/api/types/RouteStopAppointmentWindowResponseBody.d.mts +6 -0
  147. package/dist/esm/api/types/RouteStopAppointmentWindowResponseBody.mjs +2 -0
  148. package/dist/esm/api/types/RoutesStopResponseObjectResponseBody.d.mts +1 -1
  149. package/dist/esm/api/types/UpdateRoutesStopRequestObjectRequestBody.d.mts +1 -1
  150. package/dist/esm/api/types/WorkflowIncidentDetailsObjectResponseBody.d.mts +1 -0
  151. package/dist/esm/api/types/index.d.mts +29 -1
  152. package/dist/esm/api/types/index.mjs +29 -1
  153. package/dist/esm/version.d.mts +1 -1
  154. package/dist/esm/version.mjs +1 -1
  155. package/package.json +1 -1
  156. package/reference.md +215 -81
  157. package/dist/cjs/api/types/HosViolationDayObjectRequestBody.d.ts +0 -6
  158. package/dist/esm/api/types/HosViolationDayObjectRequestBody.d.mts +0 -6
  159. /package/dist/cjs/api/resources/{previewApIs → betaApIs}/client/requests/GatewaysPairGatewaysRequestBody.d.ts +0 -0
  160. /package/dist/cjs/api/resources/{previewApIs → betaApIs}/client/requests/GatewaysPairGatewaysRequestBody.js +0 -0
  161. /package/dist/cjs/api/{types/HosViolationDayObjectRequestBody.js → resources/betaApIs/client/requests/ListPreventiveMaintenanceSchedulesRequest.js} +0 -0
  162. /package/dist/esm/api/resources/{previewApIs → betaApIs}/client/requests/GatewaysPairGatewaysRequestBody.d.mts +0 -0
  163. /package/dist/esm/api/resources/{previewApIs → betaApIs}/client/requests/GatewaysPairGatewaysRequestBody.mjs +0 -0
  164. /package/dist/esm/api/{types/HosViolationDayObjectRequestBody.mjs → resources/betaApIs/client/requests/ListPreventiveMaintenanceSchedulesRequest.mjs} +0 -0
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
44
44
  const headers = (0, headers_js_1.mergeHeaders)({
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "@samsarahq/samsara",
47
- "X-Fern-SDK-Version": "13.20.0",
48
- "User-Agent": "@samsarahq/samsara/13.20.0",
47
+ "X-Fern-SDK-Version": "13.22.0",
48
+ "User-Agent": "@samsarahq/samsara/13.22.0",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  "X-Samsara-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-06-11",
@@ -1142,6 +1142,39 @@ export declare class BetaApIsClient {
1142
1142
  */
1143
1143
  getFunctionRun(request: Samsara.GetFunctionRunRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.FunctionsGetFunctionRunResponseBody>;
1144
1144
  private __getFunctionRun;
1145
+ /**
1146
+ * Reassign one or more gateways to different devices in a single call. Mirrors the dashboard's "Pair Gateway" flow and accepts up to 50 gateway-device pairs per request. Works for any device type: vehicles, assets, equipment, trailers, industrial machines, and asset tags. By default, devices that the reassigned gateways were previously linked to remain in their current group. Pass `removeOrphanDevices: true` to move those orphaned devices to the unassigned group and clear their tags. The endpoint is currently in Beta and gated behind a feature configuration; contact your Samsara representative to enable access.
1147
+ *
1148
+ * <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1149
+ *
1150
+ * To use this endpoint, select **Write Gateways** under the Setup & Administration category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
1151
+ *
1152
+ *
1153
+ * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
1154
+ *
1155
+ * @param {Samsara.GatewaysPairGatewaysRequestBody} request
1156
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
1157
+ *
1158
+ * @throws {@link Samsara.UnauthorizedError}
1159
+ * @throws {@link Samsara.NotFoundError}
1160
+ * @throws {@link Samsara.MethodNotAllowedError}
1161
+ * @throws {@link Samsara.TooManyRequestsError}
1162
+ * @throws {@link Samsara.InternalServerError}
1163
+ * @throws {@link Samsara.NotImplementedError}
1164
+ * @throws {@link Samsara.BadGatewayError}
1165
+ * @throws {@link Samsara.ServiceUnavailableError}
1166
+ * @throws {@link Samsara.GatewayTimeoutError}
1167
+ *
1168
+ * @example
1169
+ * await client.betaApIs.pairGateways({
1170
+ * pairs: [{
1171
+ * deviceSerial: "GFRV-43N-VGX",
1172
+ * gatewaySerial: "GFRV-43N-VGX"
1173
+ * }]
1174
+ * })
1175
+ */
1176
+ pairGateways(request: Samsara.GatewaysPairGatewaysRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.GatewaysPairGatewaysResponseBody>;
1177
+ private __pairGateways;
1145
1178
  /**
1146
1179
  * Update the shippingDocs field of an existing assignment.
1147
1180
  *
@@ -1298,6 +1331,62 @@ export declare class BetaApIsClient {
1298
1331
  */
1299
1332
  deleteHubRouteTemplate(request: Samsara.DeleteHubRouteTemplateRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<void>;
1300
1333
  private __deleteHubRouteTemplate;
1334
+ /**
1335
+ * Returns a paginated list of preventive maintenance schedules for the organization.
1336
+ *
1337
+ * <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1338
+ *
1339
+ * To use this endpoint, select **Read Preventive Maintenance Schedules** under the Preventive Maintenance category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
1340
+ *
1341
+ *
1342
+ * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
1343
+ *
1344
+ * @param {Samsara.ListPreventiveMaintenanceSchedulesRequest} request
1345
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
1346
+ *
1347
+ * @throws {@link Samsara.UnauthorizedError}
1348
+ * @throws {@link Samsara.NotFoundError}
1349
+ * @throws {@link Samsara.MethodNotAllowedError}
1350
+ * @throws {@link Samsara.TooManyRequestsError}
1351
+ * @throws {@link Samsara.InternalServerError}
1352
+ * @throws {@link Samsara.NotImplementedError}
1353
+ * @throws {@link Samsara.BadGatewayError}
1354
+ * @throws {@link Samsara.ServiceUnavailableError}
1355
+ * @throws {@link Samsara.GatewayTimeoutError}
1356
+ *
1357
+ * @example
1358
+ * await client.betaApIs.listPreventiveMaintenanceSchedules()
1359
+ */
1360
+ listPreventiveMaintenanceSchedules(request?: Samsara.ListPreventiveMaintenanceSchedulesRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.EntityPreventativeMaintenanceSchedulesServiceListPreventiveMaintenanceSchedulesResponseBody>;
1361
+ private __listPreventiveMaintenanceSchedules;
1362
+ /**
1363
+ * Returns a paginated list of upcoming preventive maintenance schedules for the organization's assets, enriched with live telemetry (current odometer, engine hours) and due-date projections.
1364
+ *
1365
+ * <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1366
+ *
1367
+ * To use this endpoint, select **Read Upcoming Preventive Maintenance** under the Preventive Maintenance category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
1368
+ *
1369
+ *
1370
+ * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
1371
+ *
1372
+ * @param {Samsara.ListUpcomingPreventiveMaintenanceRequest} request
1373
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
1374
+ *
1375
+ * @throws {@link Samsara.UnauthorizedError}
1376
+ * @throws {@link Samsara.NotFoundError}
1377
+ * @throws {@link Samsara.MethodNotAllowedError}
1378
+ * @throws {@link Samsara.TooManyRequestsError}
1379
+ * @throws {@link Samsara.InternalServerError}
1380
+ * @throws {@link Samsara.NotImplementedError}
1381
+ * @throws {@link Samsara.BadGatewayError}
1382
+ * @throws {@link Samsara.ServiceUnavailableError}
1383
+ * @throws {@link Samsara.GatewayTimeoutError}
1384
+ *
1385
+ * @example
1386
+ * await client.betaApIs.listUpcomingPreventiveMaintenance()
1387
+ */
1388
+ listUpcomingPreventiveMaintenance(request?: Samsara.ListUpcomingPreventiveMaintenanceRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.EntityUpcomingPreventativeMaintenancesServiceListUpcomingPreventiveMaintenanceResponseBody>;
1389
+ private __listUpcomingPreventiveMaintenance;
1301
1390
  /**
1302
1391
  * Gets work order templates. Optionally filter to specific template ids; ids that do not resolve to a template (e.g. deleted) are omitted from the response.
1303
1392
  *
@@ -3413,6 +3413,96 @@ class BetaApIsClient {
3413
3413
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/functions/{name}/runs/{correlationId}");
3414
3414
  });
3415
3415
  }
3416
+ /**
3417
+ * Reassign one or more gateways to different devices in a single call. Mirrors the dashboard's "Pair Gateway" flow and accepts up to 50 gateway-device pairs per request. Works for any device type: vehicles, assets, equipment, trailers, industrial machines, and asset tags. By default, devices that the reassigned gateways were previously linked to remain in their current group. Pass `removeOrphanDevices: true` to move those orphaned devices to the unassigned group and clear their tags. The endpoint is currently in Beta and gated behind a feature configuration; contact your Samsara representative to enable access.
3418
+ *
3419
+ * <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
3420
+ *
3421
+ * To use this endpoint, select **Write Gateways** under the Setup & Administration category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
3422
+ *
3423
+ *
3424
+ * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
3425
+ *
3426
+ * @param {Samsara.GatewaysPairGatewaysRequestBody} request
3427
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
3428
+ *
3429
+ * @throws {@link Samsara.UnauthorizedError}
3430
+ * @throws {@link Samsara.NotFoundError}
3431
+ * @throws {@link Samsara.MethodNotAllowedError}
3432
+ * @throws {@link Samsara.TooManyRequestsError}
3433
+ * @throws {@link Samsara.InternalServerError}
3434
+ * @throws {@link Samsara.NotImplementedError}
3435
+ * @throws {@link Samsara.BadGatewayError}
3436
+ * @throws {@link Samsara.ServiceUnavailableError}
3437
+ * @throws {@link Samsara.GatewayTimeoutError}
3438
+ *
3439
+ * @example
3440
+ * await client.betaApIs.pairGateways({
3441
+ * pairs: [{
3442
+ * deviceSerial: "GFRV-43N-VGX",
3443
+ * gatewaySerial: "GFRV-43N-VGX"
3444
+ * }]
3445
+ * })
3446
+ */
3447
+ pairGateways(request, requestOptions) {
3448
+ return core.HttpResponsePromise.fromPromise(this.__pairGateways(request, requestOptions));
3449
+ }
3450
+ __pairGateways(request, requestOptions) {
3451
+ return __awaiter(this, void 0, void 0, function* () {
3452
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3453
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
3454
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
3455
+ const _response = yield core.fetcher({
3456
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, "gateways/pair"),
3457
+ method: "POST",
3458
+ headers: _headers,
3459
+ contentType: "application/json",
3460
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
3461
+ requestType: "json",
3462
+ body: request,
3463
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
3464
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
3465
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3466
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
3467
+ logging: this._options.logging,
3468
+ });
3469
+ if (_response.ok) {
3470
+ return {
3471
+ data: _response.body,
3472
+ rawResponse: _response.rawResponse,
3473
+ };
3474
+ }
3475
+ if (_response.error.reason === "status-code") {
3476
+ switch (_response.error.statusCode) {
3477
+ case 401:
3478
+ throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
3479
+ case 404:
3480
+ throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
3481
+ case 405:
3482
+ throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
3483
+ case 429:
3484
+ throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
3485
+ case 500:
3486
+ throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
3487
+ case 501:
3488
+ throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
3489
+ case 502:
3490
+ throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
3491
+ case 503:
3492
+ throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
3493
+ case 504:
3494
+ throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
3495
+ default:
3496
+ throw new errors.SamsaraError({
3497
+ statusCode: _response.error.statusCode,
3498
+ body: _response.error.body,
3499
+ rawResponse: _response.rawResponse,
3500
+ });
3501
+ }
3502
+ }
3503
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/gateways/pair");
3504
+ });
3505
+ }
3416
3506
  /**
3417
3507
  * Update the shippingDocs field of an existing assignment.
3418
3508
  *
@@ -3866,6 +3956,183 @@ class BetaApIsClient {
3866
3956
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/hub/route-templates");
3867
3957
  });
3868
3958
  }
3959
+ /**
3960
+ * Returns a paginated list of preventive maintenance schedules for the organization.
3961
+ *
3962
+ * <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
3963
+ *
3964
+ * To use this endpoint, select **Read Preventive Maintenance Schedules** under the Preventive Maintenance category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
3965
+ *
3966
+ *
3967
+ * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
3968
+ *
3969
+ * @param {Samsara.ListPreventiveMaintenanceSchedulesRequest} request
3970
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
3971
+ *
3972
+ * @throws {@link Samsara.UnauthorizedError}
3973
+ * @throws {@link Samsara.NotFoundError}
3974
+ * @throws {@link Samsara.MethodNotAllowedError}
3975
+ * @throws {@link Samsara.TooManyRequestsError}
3976
+ * @throws {@link Samsara.InternalServerError}
3977
+ * @throws {@link Samsara.NotImplementedError}
3978
+ * @throws {@link Samsara.BadGatewayError}
3979
+ * @throws {@link Samsara.ServiceUnavailableError}
3980
+ * @throws {@link Samsara.GatewayTimeoutError}
3981
+ *
3982
+ * @example
3983
+ * await client.betaApIs.listPreventiveMaintenanceSchedules()
3984
+ */
3985
+ listPreventiveMaintenanceSchedules(request = {}, requestOptions) {
3986
+ return core.HttpResponsePromise.fromPromise(this.__listPreventiveMaintenanceSchedules(request, requestOptions));
3987
+ }
3988
+ __listPreventiveMaintenanceSchedules() {
3989
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
3990
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3991
+ const { idIn, after, limit } = request;
3992
+ const _queryParams = {
3993
+ idIn,
3994
+ after,
3995
+ limit,
3996
+ };
3997
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
3998
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
3999
+ const _response = yield core.fetcher({
4000
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, "maintenance/preventive/schedules"),
4001
+ method: "GET",
4002
+ headers: _headers,
4003
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
4004
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
4005
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
4006
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
4007
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
4008
+ logging: this._options.logging,
4009
+ });
4010
+ if (_response.ok) {
4011
+ return {
4012
+ data: _response.body,
4013
+ rawResponse: _response.rawResponse,
4014
+ };
4015
+ }
4016
+ if (_response.error.reason === "status-code") {
4017
+ switch (_response.error.statusCode) {
4018
+ case 401:
4019
+ throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
4020
+ case 404:
4021
+ throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
4022
+ case 405:
4023
+ throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
4024
+ case 429:
4025
+ throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
4026
+ case 500:
4027
+ throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
4028
+ case 501:
4029
+ throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
4030
+ case 502:
4031
+ throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
4032
+ case 503:
4033
+ throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
4034
+ case 504:
4035
+ throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
4036
+ default:
4037
+ throw new errors.SamsaraError({
4038
+ statusCode: _response.error.statusCode,
4039
+ body: _response.error.body,
4040
+ rawResponse: _response.rawResponse,
4041
+ });
4042
+ }
4043
+ }
4044
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/maintenance/preventive/schedules");
4045
+ });
4046
+ }
4047
+ /**
4048
+ * Returns a paginated list of upcoming preventive maintenance schedules for the organization's assets, enriched with live telemetry (current odometer, engine hours) and due-date projections.
4049
+ *
4050
+ * <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
4051
+ *
4052
+ * To use this endpoint, select **Read Upcoming Preventive Maintenance** under the Preventive Maintenance category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
4053
+ *
4054
+ *
4055
+ * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
4056
+ *
4057
+ * @param {Samsara.ListUpcomingPreventiveMaintenanceRequest} request
4058
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
4059
+ *
4060
+ * @throws {@link Samsara.UnauthorizedError}
4061
+ * @throws {@link Samsara.NotFoundError}
4062
+ * @throws {@link Samsara.MethodNotAllowedError}
4063
+ * @throws {@link Samsara.TooManyRequestsError}
4064
+ * @throws {@link Samsara.InternalServerError}
4065
+ * @throws {@link Samsara.NotImplementedError}
4066
+ * @throws {@link Samsara.BadGatewayError}
4067
+ * @throws {@link Samsara.ServiceUnavailableError}
4068
+ * @throws {@link Samsara.GatewayTimeoutError}
4069
+ *
4070
+ * @example
4071
+ * await client.betaApIs.listUpcomingPreventiveMaintenance()
4072
+ */
4073
+ listUpcomingPreventiveMaintenance(request = {}, requestOptions) {
4074
+ return core.HttpResponsePromise.fromPromise(this.__listUpcomingPreventiveMaintenance(request, requestOptions));
4075
+ }
4076
+ __listUpcomingPreventiveMaintenance() {
4077
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
4078
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
4079
+ const { preventativeMaintenanceScheduleIds, assetIds, after, limit } = request;
4080
+ const _queryParams = {
4081
+ preventativeMaintenanceScheduleIds,
4082
+ assetIds,
4083
+ after,
4084
+ limit,
4085
+ };
4086
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
4087
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
4088
+ const _response = yield core.fetcher({
4089
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, "maintenance/preventive/upcoming"),
4090
+ method: "GET",
4091
+ headers: _headers,
4092
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
4093
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
4094
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
4095
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
4096
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
4097
+ logging: this._options.logging,
4098
+ });
4099
+ if (_response.ok) {
4100
+ return {
4101
+ data: _response.body,
4102
+ rawResponse: _response.rawResponse,
4103
+ };
4104
+ }
4105
+ if (_response.error.reason === "status-code") {
4106
+ switch (_response.error.statusCode) {
4107
+ case 401:
4108
+ throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
4109
+ case 404:
4110
+ throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
4111
+ case 405:
4112
+ throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
4113
+ case 429:
4114
+ throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
4115
+ case 500:
4116
+ throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
4117
+ case 501:
4118
+ throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
4119
+ case 502:
4120
+ throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
4121
+ case 503:
4122
+ throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
4123
+ case 504:
4124
+ throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
4125
+ default:
4126
+ throw new errors.SamsaraError({
4127
+ statusCode: _response.error.statusCode,
4128
+ body: _response.error.body,
4129
+ rawResponse: _response.rawResponse,
4130
+ });
4131
+ }
4132
+ }
4133
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/maintenance/preventive/upcoming");
4134
+ });
4135
+ }
3869
4136
  /**
3870
4137
  * Gets work order templates. Optionally filter to specific template ids; ids that do not resolve to a template (e.g. deleted) are omitted from the response.
3871
4138
  *
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ListPreventiveMaintenanceSchedulesRequest {
6
+ /** A filter on the data based on this comma-separated list of ID values. */
7
+ idIn?: string;
8
+ /** If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results. */
9
+ after?: string;
10
+ /** The limit for how many objects will be in the response. Default and max for this value is 200 objects. */
11
+ limit?: number;
12
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ListUpcomingPreventiveMaintenanceRequest {
6
+ /** A filter on the data based on this comma-separated list of Preventive Maintenance Schedule ID values. */
7
+ preventativeMaintenanceScheduleIds?: string;
8
+ /** A filter on the data based on this comma-separated list of Asset ID values. */
9
+ assetIds?: string;
10
+ /** If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results. */
11
+ after?: string;
12
+ /** The limit for how many objects will be in the response. Default and max for this value is 200 objects. */
13
+ limit?: number;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,6 +17,7 @@ export type { FunctionsCreateFunctionRequestBody } from "./FunctionsCreateFuncti
17
17
  export type { FunctionsPatchFunctionRequestBody } from "./FunctionsPatchFunctionRequestBody.js";
18
18
  export type { FunctionsStartFunctionRunRequestBody } from "./FunctionsStartFunctionRunRequestBody.js";
19
19
  export type { FunctionsStorageCreateFunctionStorageFileRequestBody } from "./FunctionsStorageCreateFunctionStorageFileRequestBody.js";
20
+ export type { GatewaysPairGatewaysRequestBody } from "./GatewaysPairGatewaysRequestBody.js";
20
21
  export type { GetAempEquipmentListRequest } from "./GetAempEquipmentListRequest.js";
21
22
  export type { GetAssetsInputsRequest } from "./GetAssetsInputsRequest.js";
22
23
  export type { GetDatasetsRequest } from "./GetDatasetsRequest.js";
@@ -55,9 +56,11 @@ export type { ListHubRouteTemplatesRequest } from "./ListHubRouteTemplatesReques
55
56
  export type { ListMaintenanceVendorsRequest } from "./ListMaintenanceVendorsRequest.js";
56
57
  export type { ListPlanOrdersRequest } from "./ListPlanOrdersRequest.js";
57
58
  export type { ListPreferredStationsRequest } from "./ListPreferredStationsRequest.js";
59
+ export type { ListPreventiveMaintenanceSchedulesRequest } from "./ListPreventiveMaintenanceSchedulesRequest.js";
58
60
  export type { ListRidershipPassengersRequest } from "./ListRidershipPassengersRequest.js";
59
61
  export type { ListRidershipRouteSetupsRequest } from "./ListRidershipRouteSetupsRequest.js";
60
62
  export type { ListTachographLiveDataRequest } from "./ListTachographLiveDataRequest.js";
63
+ export type { ListUpcomingPreventiveMaintenanceRequest } from "./ListUpcomingPreventiveMaintenanceRequest.js";
61
64
  export type { ListVendorCategoriesRequest } from "./ListVendorCategoriesRequest.js";
62
65
  export { PlacesPatchPlaceRequestBody } from "./PlacesPatchPlaceRequestBody.js";
63
66
  export { PlacesPostPlaceRequestBody } from "./PlacesPostPlaceRequestBody.js";
@@ -118,43 +118,4 @@ export declare class PreviewApIsClient {
118
118
  */
119
119
  unlockVehicle(request: Samsara.UnlockVehicleRequest, requestOptions?: PreviewApIsClient.RequestOptions): core.HttpResponsePromise<void>;
120
120
  private __unlockVehicle;
121
- /**
122
- * Reassign one or more gateways to different devices in a single call. Mirrors the dashboard's "Pair Gateway" flow and accepts up to 50 gateway-device pairs per request. Works for any device type: vehicles, assets, equipment, trailers, industrial machines, and asset tags. By default, devices that the reassigned gateways were previously linked to remain in their current group. Pass `removeOrphanDevices: true` to move those orphaned devices to the unassigned group and clear their tags. The endpoint is currently in Preview and gated behind a feature configuration; contact your Samsara representative to enable access.
123
- *
124
- * <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
125
- *
126
- * To use this endpoint, select **Write Gateways** under the Setup & Administration category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
127
- *
128
- * Endpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications
129
- *
130
- * - Samsara may change the structure of a preview API's interface without versioning or any notice to API users.
131
- *
132
- * - When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).
133
- *
134
- *
135
- * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
136
- *
137
- * @param {Samsara.GatewaysPairGatewaysRequestBody} request
138
- * @param {PreviewApIsClient.RequestOptions} requestOptions - Request-specific configuration.
139
- *
140
- * @throws {@link Samsara.UnauthorizedError}
141
- * @throws {@link Samsara.NotFoundError}
142
- * @throws {@link Samsara.MethodNotAllowedError}
143
- * @throws {@link Samsara.TooManyRequestsError}
144
- * @throws {@link Samsara.InternalServerError}
145
- * @throws {@link Samsara.NotImplementedError}
146
- * @throws {@link Samsara.BadGatewayError}
147
- * @throws {@link Samsara.ServiceUnavailableError}
148
- * @throws {@link Samsara.GatewayTimeoutError}
149
- *
150
- * @example
151
- * await client.previewApIs.pairGateways({
152
- * pairs: [{
153
- * deviceSerial: "GFRV-43N-VGX",
154
- * gatewaySerial: "GFRV-43N-VGX"
155
- * }]
156
- * })
157
- */
158
- pairGateways(request: Samsara.GatewaysPairGatewaysRequestBody, requestOptions?: PreviewApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.GatewaysPairGatewaysResponseBody>;
159
- private __pairGateways;
160
121
  }
@@ -324,101 +324,5 @@ class PreviewApIsClient {
324
324
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/preview/fleet/vehicles/{id}/lock");
325
325
  });
326
326
  }
327
- /**
328
- * Reassign one or more gateways to different devices in a single call. Mirrors the dashboard's "Pair Gateway" flow and accepts up to 50 gateway-device pairs per request. Works for any device type: vehicles, assets, equipment, trailers, industrial machines, and asset tags. By default, devices that the reassigned gateways were previously linked to remain in their current group. Pass `removeOrphanDevices: true` to move those orphaned devices to the unassigned group and clear their tags. The endpoint is currently in Preview and gated behind a feature configuration; contact your Samsara representative to enable access.
329
- *
330
- * <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
331
- *
332
- * To use this endpoint, select **Write Gateways** under the Setup & Administration category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
333
- *
334
- * Endpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications
335
- *
336
- * - Samsara may change the structure of a preview API's interface without versioning or any notice to API users.
337
- *
338
- * - When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).
339
- *
340
- *
341
- * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
342
- *
343
- * @param {Samsara.GatewaysPairGatewaysRequestBody} request
344
- * @param {PreviewApIsClient.RequestOptions} requestOptions - Request-specific configuration.
345
- *
346
- * @throws {@link Samsara.UnauthorizedError}
347
- * @throws {@link Samsara.NotFoundError}
348
- * @throws {@link Samsara.MethodNotAllowedError}
349
- * @throws {@link Samsara.TooManyRequestsError}
350
- * @throws {@link Samsara.InternalServerError}
351
- * @throws {@link Samsara.NotImplementedError}
352
- * @throws {@link Samsara.BadGatewayError}
353
- * @throws {@link Samsara.ServiceUnavailableError}
354
- * @throws {@link Samsara.GatewayTimeoutError}
355
- *
356
- * @example
357
- * await client.previewApIs.pairGateways({
358
- * pairs: [{
359
- * deviceSerial: "GFRV-43N-VGX",
360
- * gatewaySerial: "GFRV-43N-VGX"
361
- * }]
362
- * })
363
- */
364
- pairGateways(request, requestOptions) {
365
- return core.HttpResponsePromise.fromPromise(this.__pairGateways(request, requestOptions));
366
- }
367
- __pairGateways(request, requestOptions) {
368
- return __awaiter(this, void 0, void 0, function* () {
369
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
370
- const _authRequest = yield this._options.authProvider.getAuthRequest();
371
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
372
- const _response = yield core.fetcher({
373
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SamsaraEnvironment.ProductionApi, "preview/gateways/pair"),
374
- method: "POST",
375
- headers: _headers,
376
- contentType: "application/json",
377
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
378
- requestType: "json",
379
- body: request,
380
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
381
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
382
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
383
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
384
- logging: this._options.logging,
385
- });
386
- if (_response.ok) {
387
- return {
388
- data: _response.body,
389
- rawResponse: _response.rawResponse,
390
- };
391
- }
392
- if (_response.error.reason === "status-code") {
393
- switch (_response.error.statusCode) {
394
- case 401:
395
- throw new Samsara.UnauthorizedError(_response.error.body, _response.rawResponse);
396
- case 404:
397
- throw new Samsara.NotFoundError(_response.error.body, _response.rawResponse);
398
- case 405:
399
- throw new Samsara.MethodNotAllowedError(_response.error.body, _response.rawResponse);
400
- case 429:
401
- throw new Samsara.TooManyRequestsError(_response.error.body, _response.rawResponse);
402
- case 500:
403
- throw new Samsara.InternalServerError(_response.error.body, _response.rawResponse);
404
- case 501:
405
- throw new Samsara.NotImplementedError(_response.error.body, _response.rawResponse);
406
- case 502:
407
- throw new Samsara.BadGatewayError(_response.error.body, _response.rawResponse);
408
- case 503:
409
- throw new Samsara.ServiceUnavailableError(_response.error.body, _response.rawResponse);
410
- case 504:
411
- throw new Samsara.GatewayTimeoutError(_response.error.body, _response.rawResponse);
412
- default:
413
- throw new errors.SamsaraError({
414
- statusCode: _response.error.statusCode,
415
- body: _response.error.body,
416
- rawResponse: _response.rawResponse,
417
- });
418
- }
419
- }
420
- return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/preview/gateways/pair");
421
- });
422
- }
423
327
  }
424
328
  exports.PreviewApIsClient = PreviewApIsClient;
@@ -1,4 +1,3 @@
1
1
  export type { DriversAuthTokenCreateDriverAuthTokenRequestBody } from "./DriversAuthTokenCreateDriverAuthTokenRequestBody.js";
2
- export type { GatewaysPairGatewaysRequestBody } from "./GatewaysPairGatewaysRequestBody.js";
3
2
  export type { LockVehicleRequest } from "./LockVehicleRequest.js";
4
3
  export type { UnlockVehicleRequest } from "./UnlockVehicleRequest.js";
@@ -3,7 +3,7 @@ export interface CreateRoutesStopRequestObjectRequestBody {
3
3
  /** ID of the address. An address [externalId](https://developers.samsara.com/docs/external-ids#using-external-ids) can also be used interchangeably here. */
4
4
  addressId?: string | undefined;
5
5
  /** Appointment windows for the stop. */
6
- appointmentWindows?: Samsara.HosViolationDayObjectRequestBody[] | undefined;
6
+ appointmentWindows?: Samsara.RouteStopAppointmentWindowRequestBody[] | undefined;
7
7
  /** A map of external ids */
8
8
  externalIds?: Record<string, string> | undefined;
9
9
  /** Name of the stop */