@samsarahq/samsara 13.19.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 +1 -1
- package/dist/cjs/api/resources/betaApIs/client/Client.js +3 -2
- package/dist/cjs/api/resources/betaApIs/client/requests/GetWorkOrderTemplatesRequest.d.ts +3 -1
- package/dist/cjs/api/types/WorkOrdersGetWorkOrderTemplatesResponseBody.d.ts +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 +1 -1
- package/dist/esm/api/resources/betaApIs/client/Client.mjs +3 -2
- package/dist/esm/api/resources/betaApIs/client/requests/GetWorkOrderTemplatesRequest.d.mts +3 -1
- package/dist/esm/api/types/WorkOrdersGetWorkOrderTemplatesResponseBody.d.mts +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 +1 -1
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
|
*
|
|
@@ -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);
|
|
@@ -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
|
}
|
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
|
*
|
|
@@ -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);
|
|
@@ -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
|
}
|
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
|
|