@samsarahq/samsara 13.18.0 → 13.20.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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/betaApIs/client/Client.js +4 -3
- package/dist/cjs/api/resources/betaApIs/client/requests/GetWorkOrderTemplatesRequest.d.ts +3 -1
- package/dist/cjs/api/resources/betaApIs/client/requests/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.d.ts +1 -1
- package/dist/cjs/api/types/CreateRoutesStopRequestObjectRequestBody.d.ts +2 -0
- package/dist/cjs/api/types/HosViolationDayObjectRequestBody.d.ts +6 -0
- package/dist/cjs/api/types/HosViolationDayObjectRequestBody.js +3 -0
- package/dist/cjs/api/types/RoutesStopResponseObjectResponseBody.d.ts +2 -0
- package/dist/cjs/api/types/UpdateRoutesStopRequestObjectRequestBody.d.ts +2 -0
- package/dist/cjs/api/types/WorkOrderObjectResponseBody.d.ts +2 -0
- package/dist/cjs/api/types/WorkOrderWithTimeEntriesObjectResponseBody.d.ts +2 -0
- package/dist/cjs/api/types/WorkOrdersGetWorkOrderTemplatesResponseBody.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/betaApIs/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/betaApIs/client/Client.mjs +4 -3
- package/dist/esm/api/resources/betaApIs/client/requests/GetWorkOrderTemplatesRequest.d.mts +3 -1
- package/dist/esm/api/resources/betaApIs/client/requests/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.d.mts +1 -1
- package/dist/esm/api/types/CreateRoutesStopRequestObjectRequestBody.d.mts +2 -0
- package/dist/esm/api/types/HosViolationDayObjectRequestBody.d.mts +6 -0
- package/dist/esm/api/types/HosViolationDayObjectRequestBody.mjs +2 -0
- package/dist/esm/api/types/RoutesStopResponseObjectResponseBody.d.mts +2 -0
- package/dist/esm/api/types/UpdateRoutesStopRequestObjectRequestBody.d.mts +2 -0
- package/dist/esm/api/types/WorkOrderObjectResponseBody.d.mts +2 -0
- package/dist/esm/api/types/WorkOrderWithTimeEntriesObjectResponseBody.d.mts +2 -0
- package/dist/esm/api/types/WorkOrdersGetWorkOrderTemplatesResponseBody.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +2 -2
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.
|
|
48
|
-
"User-Agent": "@samsarahq/samsara/13.
|
|
47
|
+
"X-Fern-SDK-Version": "13.20.0",
|
|
48
|
+
"User-Agent": "@samsarahq/samsara/13.20.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",
|
|
@@ -1299,7 +1299,7 @@ export declare class BetaApIsClient {
|
|
|
1299
1299
|
deleteHubRouteTemplate(request: Samsara.DeleteHubRouteTemplateRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
1300
1300
|
private __deleteHubRouteTemplate;
|
|
1301
1301
|
/**
|
|
1302
|
-
* Gets work order templates
|
|
1302
|
+
* 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
1303
|
*
|
|
1304
1304
|
* <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>).
|
|
1305
1305
|
*
|
|
@@ -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"
|
|
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>;
|
|
@@ -3867,7 +3867,7 @@ class BetaApIsClient {
|
|
|
3867
3867
|
});
|
|
3868
3868
|
}
|
|
3869
3869
|
/**
|
|
3870
|
-
* Gets work order templates
|
|
3870
|
+
* 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
3871
|
*
|
|
3872
3872
|
* <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>).
|
|
3873
3873
|
*
|
|
@@ -3898,9 +3898,10 @@ class BetaApIsClient {
|
|
|
3898
3898
|
__getWorkOrderTemplates() {
|
|
3899
3899
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
3900
3900
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3901
|
-
const { ids } = request;
|
|
3901
|
+
const { ids, after } = request;
|
|
3902
3902
|
const _queryParams = {
|
|
3903
3903
|
ids,
|
|
3904
|
+
after,
|
|
3904
3905
|
};
|
|
3905
3906
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3906
3907
|
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);
|
|
@@ -7030,7 +7031,7 @@ class BetaApIsClient {
|
|
|
7030
7031
|
*
|
|
7031
7032
|
* @example
|
|
7032
7033
|
* await client.betaApIs.patchSafetyEventsV2Batch({
|
|
7033
|
-
* safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"
|
|
7034
|
+
* safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
|
|
7034
7035
|
* })
|
|
7035
7036
|
*/
|
|
7036
7037
|
patchSafetyEventsV2Batch(request, requestOptions) {
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* {}
|
|
4
4
|
*/
|
|
5
5
|
export interface GetWorkOrderTemplatesRequest {
|
|
6
|
-
/**
|
|
6
|
+
/** Filter by work order template IDs. Up to 100 ids. Returns all templates if no ids are provided. Ids that do not resolve to a template (e.g. deleted) are omitted from the response. */
|
|
7
7
|
ids?: string | 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;
|
|
8
10
|
}
|
|
@@ -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"
|
|
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
|
+
}
|
|
@@ -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);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "13.
|
|
1
|
+
export declare const SDK_VERSION = "13.20.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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.
|
|
11
|
-
"User-Agent": "@samsarahq/samsara/13.
|
|
10
|
+
"X-Fern-SDK-Version": "13.20.0",
|
|
11
|
+
"User-Agent": "@samsarahq/samsara/13.20.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",
|
|
@@ -1299,7 +1299,7 @@ export declare class BetaApIsClient {
|
|
|
1299
1299
|
deleteHubRouteTemplate(request: Samsara.DeleteHubRouteTemplateRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
1300
1300
|
private __deleteHubRouteTemplate;
|
|
1301
1301
|
/**
|
|
1302
|
-
* Gets work order templates
|
|
1302
|
+
* 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
1303
|
*
|
|
1304
1304
|
* <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>).
|
|
1305
1305
|
*
|
|
@@ -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"
|
|
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>;
|
|
@@ -3831,7 +3831,7 @@ export class BetaApIsClient {
|
|
|
3831
3831
|
});
|
|
3832
3832
|
}
|
|
3833
3833
|
/**
|
|
3834
|
-
* Gets work order templates
|
|
3834
|
+
* 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.
|
|
3835
3835
|
*
|
|
3836
3836
|
* <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>).
|
|
3837
3837
|
*
|
|
@@ -3862,9 +3862,10 @@ export class BetaApIsClient {
|
|
|
3862
3862
|
__getWorkOrderTemplates() {
|
|
3863
3863
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
3864
3864
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3865
|
-
const { ids } = request;
|
|
3865
|
+
const { ids, after } = request;
|
|
3866
3866
|
const _queryParams = {
|
|
3867
3867
|
ids,
|
|
3868
|
+
after,
|
|
3868
3869
|
};
|
|
3869
3870
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3870
3871
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Samsara-Version": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -6994,7 +6995,7 @@ export class BetaApIsClient {
|
|
|
6994
6995
|
*
|
|
6995
6996
|
* @example
|
|
6996
6997
|
* await client.betaApIs.patchSafetyEventsV2Batch({
|
|
6997
|
-
* safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"
|
|
6998
|
+
* safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
|
|
6998
6999
|
* })
|
|
6999
7000
|
*/
|
|
7000
7001
|
patchSafetyEventsV2Batch(request, requestOptions) {
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* {}
|
|
4
4
|
*/
|
|
5
5
|
export interface GetWorkOrderTemplatesRequest {
|
|
6
|
-
/**
|
|
6
|
+
/** Filter by work order template IDs. Up to 100 ids. Returns all templates if no ids are provided. Ids that do not resolve to a template (e.g. deleted) are omitted from the response. */
|
|
7
7
|
ids?: string | 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;
|
|
8
10
|
}
|
|
@@ -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"
|
|
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
|
+
}
|
|
@@ -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";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "13.
|
|
1
|
+
export declare const SDK_VERSION = "13.20.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "13.
|
|
1
|
+
export const SDK_VERSION = "13.20.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -3474,7 +3474,7 @@ await client.betaApIs.deleteHubRouteTemplate({
|
|
|
3474
3474
|
<dl>
|
|
3475
3475
|
<dd>
|
|
3476
3476
|
|
|
3477
|
-
Gets work order templates
|
|
3477
|
+
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.
|
|
3478
3478
|
|
|
3479
3479
|
<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>).
|
|
3480
3480
|
|
|
@@ -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"
|
|
6077
|
+
safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
|
|
6078
6078
|
});
|
|
6079
6079
|
|
|
6080
6080
|
```
|