@samsarahq/samsara 13.18.0 → 13.19.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 (32) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/betaApIs/client/Client.js +1 -1
  4. package/dist/cjs/api/resources/betaApIs/client/requests/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.d.ts +1 -1
  5. package/dist/cjs/api/types/CreateRoutesStopRequestObjectRequestBody.d.ts +2 -0
  6. package/dist/cjs/api/types/HosViolationDayObjectRequestBody.d.ts +6 -0
  7. package/dist/cjs/api/types/HosViolationDayObjectRequestBody.js +3 -0
  8. package/dist/cjs/api/types/RoutesStopResponseObjectResponseBody.d.ts +2 -0
  9. package/dist/cjs/api/types/UpdateRoutesStopRequestObjectRequestBody.d.ts +2 -0
  10. package/dist/cjs/api/types/WorkOrderObjectResponseBody.d.ts +2 -0
  11. package/dist/cjs/api/types/WorkOrderWithTimeEntriesObjectResponseBody.d.ts +2 -0
  12. package/dist/cjs/api/types/index.d.ts +1 -0
  13. package/dist/cjs/api/types/index.js +1 -0
  14. package/dist/cjs/version.d.ts +1 -1
  15. package/dist/cjs/version.js +1 -1
  16. package/dist/esm/BaseClient.mjs +2 -2
  17. package/dist/esm/api/resources/betaApIs/client/Client.d.mts +1 -1
  18. package/dist/esm/api/resources/betaApIs/client/Client.mjs +1 -1
  19. package/dist/esm/api/resources/betaApIs/client/requests/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.d.mts +1 -1
  20. package/dist/esm/api/types/CreateRoutesStopRequestObjectRequestBody.d.mts +2 -0
  21. package/dist/esm/api/types/HosViolationDayObjectRequestBody.d.mts +6 -0
  22. package/dist/esm/api/types/HosViolationDayObjectRequestBody.mjs +2 -0
  23. package/dist/esm/api/types/RoutesStopResponseObjectResponseBody.d.mts +2 -0
  24. package/dist/esm/api/types/UpdateRoutesStopRequestObjectRequestBody.d.mts +2 -0
  25. package/dist/esm/api/types/WorkOrderObjectResponseBody.d.mts +2 -0
  26. package/dist/esm/api/types/WorkOrderWithTimeEntriesObjectResponseBody.d.mts +2 -0
  27. package/dist/esm/api/types/index.d.mts +1 -0
  28. package/dist/esm/api/types/index.mjs +1 -0
  29. package/dist/esm/version.d.mts +1 -1
  30. package/dist/esm/version.mjs +1 -1
  31. package/package.json +1 -1
  32. package/reference.md +1 -1
@@ -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.18.0",
48
- "User-Agent": "@samsarahq/samsara/13.18.0",
47
+ "X-Fern-SDK-Version": "13.19.0",
48
+ "User-Agent": "@samsarahq/samsara/13.19.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",
@@ -2430,7 +2430,7 @@ export declare class BetaApIsClient {
2430
2430
  *
2431
2431
  * @example
2432
2432
  * await client.betaApIs.patchSafetyEventsV2Batch({
2433
- * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
2433
+ * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
2434
2434
  * })
2435
2435
  */
2436
2436
  patchSafetyEventsV2Batch(request: Samsara.SafetyEventsV2PatchSafetyEventsV2BatchRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyEventsV2PatchSafetyEventsV2BatchResponseBody>;
@@ -7030,7 +7030,7 @@ class BetaApIsClient {
7030
7030
  *
7031
7031
  * @example
7032
7032
  * await client.betaApIs.patchSafetyEventsV2Batch({
7033
- * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
7033
+ * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
7034
7034
  * })
7035
7035
  */
7036
7036
  patchSafetyEventsV2Batch(request, requestOptions) {
@@ -2,7 +2,7 @@ import type * as Samsara from "../../../../index.js";
2
2
  /**
3
3
  * @example
4
4
  * {
5
- * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
5
+ * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
6
6
  * }
7
7
  */
8
8
  export interface SafetyEventsV2PatchSafetyEventsV2BatchRequestBody {
@@ -2,6 +2,8 @@ import type * as Samsara from "../index.js";
2
2
  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
+ /** Appointment windows for the stop. */
6
+ appointmentWindows?: Samsara.HosViolationDayObjectRequestBody[] | undefined;
5
7
  /** A map of external ids */
6
8
  externalIds?: Record<string, string> | undefined;
7
9
  /** Name of the stop */
@@ -0,0 +1,6 @@
1
+ export interface HosViolationDayObjectRequestBody {
2
+ /** The end time of the day on which the violation occurred in RFC 3339 format. This is determined by the driver's ELD start hour (00:00 or 12:00) */
3
+ endTime: string;
4
+ /** The start time of the day on which the violation occurred in RFC 3339 format. This is determined by the driver's ELD start hour (00:00 or 12:00) */
5
+ startTime: string;
6
+ }
@@ -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 });
@@ -7,6 +7,8 @@ export interface RoutesStopResponseObjectResponseBody {
7
7
  /** Actual GPS-measured distance traveled from the previous stop's departure to this stop's arrival, in meters. Null for the first stop, skipped stops, or if GPS data is unavailable. */
8
8
  actualDistanceMeters?: number | undefined;
9
9
  address?: Samsara.GoaAddressTinyResponseResponseBody | undefined;
10
+ /** Appointment windows for the stop. */
11
+ appointmentWindows?: Samsara.HosViolationDayObjectResponseBody[] | undefined;
10
12
  /** List of documents associated with the stop. */
11
13
  documents?: Samsara.GoaDocumentTinyResponseResponseBody[] | undefined;
12
14
  /** The time the stop became en-route, in RFC 3339 format. */
@@ -2,6 +2,8 @@ import type * as Samsara from "../index.js";
2
2
  export interface UpdateRoutesStopRequestObjectRequestBody {
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
+ /** Appointment windows for the stop. */
6
+ appointmentWindows?: Samsara.HosViolationDayObjectRequestBody[] | undefined;
5
7
  /** A map of external ids */
6
8
  externalIds?: Record<string, string> | undefined;
7
9
  /** ID of the stop */
@@ -51,6 +51,8 @@ export interface WorkOrderObjectResponseBody {
51
51
  updatedAtTime: string;
52
52
  /** The vendor UUID for the work order. */
53
53
  vendorUuid?: string | undefined;
54
+ /** IDs of the work order template(s) this work order was created from. May include templates that have since been deleted. */
55
+ workOrderTemplateIds?: string[] | undefined;
54
56
  }
55
57
  export declare namespace WorkOrderObjectResponseBody {
56
58
  /** The priority of the work order Valid values: `High`, `Low`, `Medium`, `Urgent` */
@@ -51,6 +51,8 @@ export interface WorkOrderWithTimeEntriesObjectResponseBody {
51
51
  updatedAtTime: string;
52
52
  /** The vendor UUID for the work order. */
53
53
  vendorUuid?: string | undefined;
54
+ /** IDs of the work order template(s) this work order was created from. May include templates that have since been deleted. */
55
+ workOrderTemplateIds?: string[] | undefined;
54
56
  }
55
57
  export declare namespace WorkOrderWithTimeEntriesObjectResponseBody {
56
58
  /** The priority of the work order Valid values: `High`, `Low`, `Medium`, `Urgent` */
@@ -1374,6 +1374,7 @@ export * from "./HosLogsList.js";
1374
1374
  export * from "./HosLogsResponse.js";
1375
1375
  export * from "./HosShift.js";
1376
1376
  export * from "./HosViolationDataResponseBody.js";
1377
+ export * from "./HosViolationDayObjectRequestBody.js";
1377
1378
  export * from "./HosViolationDayObjectResponseBody.js";
1378
1379
  export * from "./HosViolationObjectResponseBody.js";
1379
1380
  export * from "./HosViolations.js";
@@ -1390,6 +1390,7 @@ __exportStar(require("./HosLogsList.js"), exports);
1390
1390
  __exportStar(require("./HosLogsResponse.js"), exports);
1391
1391
  __exportStar(require("./HosShift.js"), exports);
1392
1392
  __exportStar(require("./HosViolationDataResponseBody.js"), exports);
1393
+ __exportStar(require("./HosViolationDayObjectRequestBody.js"), exports);
1393
1394
  __exportStar(require("./HosViolationDayObjectResponseBody.js"), exports);
1394
1395
  __exportStar(require("./HosViolationObjectResponseBody.js"), exports);
1395
1396
  __exportStar(require("./HosViolations.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "13.18.0";
1
+ export declare const SDK_VERSION = "13.19.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "13.18.0";
4
+ exports.SDK_VERSION = "13.19.0";
@@ -7,8 +7,8 @@ export function normalizeClientOptions(options) {
7
7
  const headers = mergeHeaders({
8
8
  "X-Fern-Language": "JavaScript",
9
9
  "X-Fern-SDK-Name": "@samsarahq/samsara",
10
- "X-Fern-SDK-Version": "13.18.0",
11
- "User-Agent": "@samsarahq/samsara/13.18.0",
10
+ "X-Fern-SDK-Version": "13.19.0",
11
+ "User-Agent": "@samsarahq/samsara/13.19.0",
12
12
  "X-Fern-Runtime": core.RUNTIME.type,
13
13
  "X-Fern-Runtime-Version": core.RUNTIME.version,
14
14
  "X-Samsara-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-06-11",
@@ -2430,7 +2430,7 @@ export declare class BetaApIsClient {
2430
2430
  *
2431
2431
  * @example
2432
2432
  * await client.betaApIs.patchSafetyEventsV2Batch({
2433
- * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
2433
+ * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
2434
2434
  * })
2435
2435
  */
2436
2436
  patchSafetyEventsV2Batch(request: Samsara.SafetyEventsV2PatchSafetyEventsV2BatchRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.SafetyEventsV2PatchSafetyEventsV2BatchResponseBody>;
@@ -6994,7 +6994,7 @@ export class BetaApIsClient {
6994
6994
  *
6995
6995
  * @example
6996
6996
  * await client.betaApIs.patchSafetyEventsV2Batch({
6997
- * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
6997
+ * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
6998
6998
  * })
6999
6999
  */
7000
7000
  patchSafetyEventsV2Batch(request, requestOptions) {
@@ -2,7 +2,7 @@ import type * as Samsara from "../../../../index.mjs";
2
2
  /**
3
3
  * @example
4
4
  * {
5
- * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
5
+ * safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
6
6
  * }
7
7
  */
8
8
  export interface SafetyEventsV2PatchSafetyEventsV2BatchRequestBody {
@@ -2,6 +2,8 @@ import type * as Samsara from "../index.mjs";
2
2
  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
+ /** Appointment windows for the stop. */
6
+ appointmentWindows?: Samsara.HosViolationDayObjectRequestBody[] | undefined;
5
7
  /** A map of external ids */
6
8
  externalIds?: Record<string, string> | undefined;
7
9
  /** Name of the stop */
@@ -0,0 +1,6 @@
1
+ export interface HosViolationDayObjectRequestBody {
2
+ /** The end time of the day on which the violation occurred in RFC 3339 format. This is determined by the driver's ELD start hour (00:00 or 12:00) */
3
+ endTime: string;
4
+ /** The start time of the day on which the violation occurred in RFC 3339 format. This is determined by the driver's ELD start hour (00:00 or 12:00) */
5
+ startTime: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -7,6 +7,8 @@ export interface RoutesStopResponseObjectResponseBody {
7
7
  /** Actual GPS-measured distance traveled from the previous stop's departure to this stop's arrival, in meters. Null for the first stop, skipped stops, or if GPS data is unavailable. */
8
8
  actualDistanceMeters?: number | undefined;
9
9
  address?: Samsara.GoaAddressTinyResponseResponseBody | undefined;
10
+ /** Appointment windows for the stop. */
11
+ appointmentWindows?: Samsara.HosViolationDayObjectResponseBody[] | undefined;
10
12
  /** List of documents associated with the stop. */
11
13
  documents?: Samsara.GoaDocumentTinyResponseResponseBody[] | undefined;
12
14
  /** The time the stop became en-route, in RFC 3339 format. */
@@ -2,6 +2,8 @@ import type * as Samsara from "../index.mjs";
2
2
  export interface UpdateRoutesStopRequestObjectRequestBody {
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
+ /** Appointment windows for the stop. */
6
+ appointmentWindows?: Samsara.HosViolationDayObjectRequestBody[] | undefined;
5
7
  /** A map of external ids */
6
8
  externalIds?: Record<string, string> | undefined;
7
9
  /** ID of the stop */
@@ -51,6 +51,8 @@ export interface WorkOrderObjectResponseBody {
51
51
  updatedAtTime: string;
52
52
  /** The vendor UUID for the work order. */
53
53
  vendorUuid?: string | undefined;
54
+ /** IDs of the work order template(s) this work order was created from. May include templates that have since been deleted. */
55
+ workOrderTemplateIds?: string[] | undefined;
54
56
  }
55
57
  export declare namespace WorkOrderObjectResponseBody {
56
58
  /** The priority of the work order Valid values: `High`, `Low`, `Medium`, `Urgent` */
@@ -51,6 +51,8 @@ export interface WorkOrderWithTimeEntriesObjectResponseBody {
51
51
  updatedAtTime: string;
52
52
  /** The vendor UUID for the work order. */
53
53
  vendorUuid?: string | undefined;
54
+ /** IDs of the work order template(s) this work order was created from. May include templates that have since been deleted. */
55
+ workOrderTemplateIds?: string[] | undefined;
54
56
  }
55
57
  export declare namespace WorkOrderWithTimeEntriesObjectResponseBody {
56
58
  /** The priority of the work order Valid values: `High`, `Low`, `Medium`, `Urgent` */
@@ -1374,6 +1374,7 @@ export * from "./HosLogsList.mjs";
1374
1374
  export * from "./HosLogsResponse.mjs";
1375
1375
  export * from "./HosShift.mjs";
1376
1376
  export * from "./HosViolationDataResponseBody.mjs";
1377
+ export * from "./HosViolationDayObjectRequestBody.mjs";
1377
1378
  export * from "./HosViolationDayObjectResponseBody.mjs";
1378
1379
  export * from "./HosViolationObjectResponseBody.mjs";
1379
1380
  export * from "./HosViolations.mjs";
@@ -1374,6 +1374,7 @@ export * from "./HosLogsList.mjs";
1374
1374
  export * from "./HosLogsResponse.mjs";
1375
1375
  export * from "./HosShift.mjs";
1376
1376
  export * from "./HosViolationDataResponseBody.mjs";
1377
+ export * from "./HosViolationDayObjectRequestBody.mjs";
1377
1378
  export * from "./HosViolationDayObjectResponseBody.mjs";
1378
1379
  export * from "./HosViolationObjectResponseBody.mjs";
1379
1380
  export * from "./HosViolations.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "13.18.0";
1
+ export declare const SDK_VERSION = "13.19.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "13.18.0";
1
+ export const SDK_VERSION = "13.19.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samsarahq/samsara",
3
- "version": "13.18.0",
3
+ "version": "13.19.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -6074,7 +6074,7 @@ To use this endpoint, select **Write Safety Events & Scores** under the Safety &
6074
6074
 
6075
6075
  ```typescript
6076
6076
  await client.betaApIs.patchSafetyEventsV2Batch({
6077
- safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
6077
+ safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
6078
6078
  });
6079
6079
 
6080
6080
  ```