@samsarahq/samsara 13.5.0 → 13.7.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 (50) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +4 -6
  3. package/dist/cjs/api/resources/betaApIs/client/Client.js +6 -8
  4. package/dist/cjs/api/resources/betaApIs/client/requests/GetPlacesRequest.d.ts +2 -2
  5. package/dist/cjs/api/resources/betaApIs/client/requests/PlacesPatchPlaceRequestBody.d.ts +22 -7
  6. package/dist/cjs/api/resources/betaApIs/client/requests/PlacesPatchPlaceRequestBody.js +13 -0
  7. package/dist/cjs/api/resources/betaApIs/client/requests/PlacesPostPlaceRequestBody.d.ts +18 -1
  8. package/dist/cjs/api/resources/betaApIs/client/requests/PlacesPostPlaceRequestBody.js +13 -0
  9. package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +2 -2
  10. package/dist/cjs/api/resources/betaApIs/client/requests/index.js +5 -1
  11. package/dist/cjs/api/types/PatchPlaceHubLocationUpsertBodyRequestBody.d.ts +7 -0
  12. package/dist/cjs/api/types/PlaceHubLocationRequiredSkillInputRequestBody.d.ts +7 -0
  13. package/dist/cjs/api/types/PlaceHubLocationRequiredSkillInputRequestBody.js +3 -0
  14. package/dist/cjs/api/types/PlaceHubLocationServiceWindowInputRequestBody.d.ts +11 -0
  15. package/dist/cjs/api/types/PlaceHubLocationServiceWindowInputRequestBody.js +3 -0
  16. package/dist/cjs/api/types/PlaceStreetViewResponseRequestBody.d.ts +17 -0
  17. package/dist/cjs/api/types/PlaceStreetViewResponseRequestBody.js +3 -0
  18. package/dist/cjs/api/types/ServiceTaskInstanceInputObjectRequestBody.d.ts +2 -0
  19. package/dist/cjs/api/types/ServiceTaskInstanceObjectResponseBody.d.ts +2 -0
  20. package/dist/cjs/api/types/ServiceTaskInstanceWithTimeEntriesObjectResponseBody.d.ts +2 -0
  21. package/dist/cjs/api/types/index.d.ts +3 -0
  22. package/dist/cjs/api/types/index.js +3 -0
  23. package/dist/cjs/version.d.ts +1 -1
  24. package/dist/cjs/version.js +1 -1
  25. package/dist/esm/BaseClient.mjs +2 -2
  26. package/dist/esm/api/resources/betaApIs/client/Client.d.mts +4 -6
  27. package/dist/esm/api/resources/betaApIs/client/Client.mjs +6 -8
  28. package/dist/esm/api/resources/betaApIs/client/requests/GetPlacesRequest.d.mts +2 -2
  29. package/dist/esm/api/resources/betaApIs/client/requests/PlacesPatchPlaceRequestBody.d.mts +22 -7
  30. package/dist/esm/api/resources/betaApIs/client/requests/PlacesPatchPlaceRequestBody.mjs +12 -1
  31. package/dist/esm/api/resources/betaApIs/client/requests/PlacesPostPlaceRequestBody.d.mts +18 -1
  32. package/dist/esm/api/resources/betaApIs/client/requests/PlacesPostPlaceRequestBody.mjs +12 -1
  33. package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +2 -2
  34. package/dist/esm/api/resources/betaApIs/client/requests/index.mjs +2 -0
  35. package/dist/esm/api/types/PatchPlaceHubLocationUpsertBodyRequestBody.d.mts +7 -0
  36. package/dist/esm/api/types/PlaceHubLocationRequiredSkillInputRequestBody.d.mts +7 -0
  37. package/dist/esm/api/types/PlaceHubLocationRequiredSkillInputRequestBody.mjs +2 -0
  38. package/dist/esm/api/types/PlaceHubLocationServiceWindowInputRequestBody.d.mts +11 -0
  39. package/dist/esm/api/types/PlaceHubLocationServiceWindowInputRequestBody.mjs +2 -0
  40. package/dist/esm/api/types/PlaceStreetViewResponseRequestBody.d.mts +17 -0
  41. package/dist/esm/api/types/PlaceStreetViewResponseRequestBody.mjs +2 -0
  42. package/dist/esm/api/types/ServiceTaskInstanceInputObjectRequestBody.d.mts +2 -0
  43. package/dist/esm/api/types/ServiceTaskInstanceObjectResponseBody.d.mts +2 -0
  44. package/dist/esm/api/types/ServiceTaskInstanceWithTimeEntriesObjectResponseBody.d.mts +2 -0
  45. package/dist/esm/api/types/index.d.mts +3 -0
  46. package/dist/esm/api/types/index.mjs +3 -0
  47. package/dist/esm/version.d.mts +1 -1
  48. package/dist/esm/version.mjs +1 -1
  49. package/package.json +1 -1
  50. package/reference.md +3 -5
@@ -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.5.0",
48
- "User-Agent": "@samsarahq/samsara/13.5.0",
47
+ "X-Fern-SDK-Version": "13.7.0",
48
+ "User-Agent": "@samsarahq/samsara/13.7.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",
@@ -1241,7 +1241,7 @@ export declare class BetaApIsClient {
1241
1241
  deleteHubRouteTemplate(request: Samsara.DeleteHubRouteTemplateRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<void>;
1242
1242
  private __deleteHubRouteTemplate;
1243
1243
  /**
1244
- * Returns places for the authorized organization. Supports cursor pagination or batch fetch by Samsara place ids via `placeIds`.
1244
+ * Returns places for the authorized organization. Supports cursor pagination or batch fetch by Samsara place ids via `placeIds` or by external ids via `externalIds` (mutually exclusive).
1245
1245
  *
1246
1246
  * <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>).
1247
1247
  *
@@ -1330,7 +1330,7 @@ export declare class BetaApIsClient {
1330
1330
  deletePlace(request: Samsara.DeletePlaceRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<void>;
1331
1331
  private __deletePlace;
1332
1332
  /**
1333
- * Updates a place. Query parameter `placeId` (Samsara id) is required. Optional `externalId` (key:value) is reserved for a future release and must not be combined with `placeId`. Only fields present in the JSON body are changed; omit a field to leave it unchanged.
1333
+ * Updates a place. Provide exactly one of query parameter `placeId` (Samsara id) or `externalId` (key:value). Only fields present in the JSON body are changed; omit a field to leave it unchanged.
1334
1334
  *
1335
1335
  * <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>).
1336
1336
  *
@@ -1353,11 +1353,9 @@ export declare class BetaApIsClient {
1353
1353
  * @throws {@link Samsara.GatewayTimeoutError}
1354
1354
  *
1355
1355
  * @example
1356
- * await client.betaApIs.patchPlace({
1357
- * placeId: 1000000
1358
- * })
1356
+ * await client.betaApIs.patchPlace()
1359
1357
  */
1360
- patchPlace(request: Samsara.PlacesPatchPlaceRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.PlacesPatchPlaceResponseBody>;
1358
+ patchPlace(request?: Samsara.PlacesPatchPlaceRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.PlacesPatchPlaceResponseBody>;
1361
1359
  private __patchPlace;
1362
1360
  /**
1363
1361
  * List all preferred fuel stations for your organization.
@@ -3686,7 +3686,7 @@ class BetaApIsClient {
3686
3686
  });
3687
3687
  }
3688
3688
  /**
3689
- * Returns places for the authorized organization. Supports cursor pagination or batch fetch by Samsara place ids via `placeIds`.
3689
+ * Returns places for the authorized organization. Supports cursor pagination or batch fetch by Samsara place ids via `placeIds` or by external ids via `externalIds` (mutually exclusive).
3690
3690
  *
3691
3691
  * <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>).
3692
3692
  *
@@ -3948,7 +3948,7 @@ class BetaApIsClient {
3948
3948
  });
3949
3949
  }
3950
3950
  /**
3951
- * Updates a place. Query parameter `placeId` (Samsara id) is required. Optional `externalId` (key:value) is reserved for a future release and must not be combined with `placeId`. Only fields present in the JSON body are changed; omit a field to leave it unchanged.
3951
+ * Updates a place. Provide exactly one of query parameter `placeId` (Samsara id) or `externalId` (key:value). Only fields present in the JSON body are changed; omit a field to leave it unchanged.
3952
3952
  *
3953
3953
  * <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>).
3954
3954
  *
@@ -3971,15 +3971,13 @@ class BetaApIsClient {
3971
3971
  * @throws {@link Samsara.GatewayTimeoutError}
3972
3972
  *
3973
3973
  * @example
3974
- * await client.betaApIs.patchPlace({
3975
- * placeId: 1000000
3976
- * })
3974
+ * await client.betaApIs.patchPlace()
3977
3975
  */
3978
- patchPlace(request, requestOptions) {
3976
+ patchPlace(request = {}, requestOptions) {
3979
3977
  return core.HttpResponsePromise.fromPromise(this.__patchPlace(request, requestOptions));
3980
3978
  }
3981
- __patchPlace(request, requestOptions) {
3982
- return __awaiter(this, void 0, void 0, function* () {
3979
+ __patchPlace() {
3980
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
3983
3981
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3984
3982
  const { placeId, externalId } = request, _body = __rest(request, ["placeId", "externalId"]);
3985
3983
  const _queryParams = {
@@ -7,9 +7,9 @@ export interface GetPlacesRequest {
7
7
  after?: string;
8
8
  /** The limit for how many objects will be in the response. Default and max for this value is 512 objects. */
9
9
  limit?: number;
10
- /** Comma-separated Samsara place IDs for batch lookup (max 100). When set, list filters and cursor pagination are ignored. External id tokens (key:value) are not supported in this version. */
10
+ /** Comma-separated Samsara place IDs for batch lookup (max 100). When set, list filters and cursor pagination are ignored. Mutually exclusive with `externalIds`. */
11
11
  placeIds?: string;
12
- /** Reserved. Batch lookup by external IDs is not implemented in this API version. */
12
+ /** Comma-separated external ID tokens (`key:value`) for batch lookup (max 100). When set, list filters and cursor pagination are ignored. Mutually exclusive with `placeIds`. */
13
13
  externalIds?: string;
14
14
  /** When true, expands tag objects on each place. Defaults to false. */
15
15
  includeTags?: boolean;
@@ -1,22 +1,24 @@
1
1
  import type * as Samsara from "../../../../index.js";
2
2
  /**
3
3
  * @example
4
- * {
5
- * placeId: 1000000
6
- * }
4
+ * {}
7
5
  */
8
6
  export interface PlacesPatchPlaceRequestBody {
9
- /** Samsara place id to update (required). Do not send `externalId` in the same request. */
10
- placeId: number;
11
- /** External id token in `key:value` form (e.g. crmId:warehouse-east). Mutually exclusive with `placeId`. Batch lookup by external id is not implemented for this endpoint yet; callers should use `placeId` until supported. */
7
+ /** Samsara place id to update. Mutually exclusive with `externalId`; provide exactly one. */
8
+ placeId?: number;
9
+ /** External id token in `key:value` form (e.g. crmId:warehouse-east). Mutually exclusive with `placeId`; provide exactly one. */
12
10
  externalId?: string;
13
11
  /** Single-line address string. */
14
12
  address?: string;
13
+ /** Camera recording mode: fullRecording, driverPrivacy, completePrivacy, or inherit. Valid values: `fullRecording`, `driverPrivacy`, `completePrivacy`, `inherit`, `unknown`, `unspecified` */
14
+ cameraRecordingModeType?: PlacesPatchPlaceRequestBody.CameraRecordingModeType;
15
15
  /** When present, replaces external ids for the place. */
16
16
  externalIds?: PlacesPatchPlaceRequestBody.ExternalIds;
17
17
  /** Polygon vertices; at least three when switching to polygon mode. */
18
18
  geofence?: Samsara.GeofenceVertexInputRequestBody[];
19
19
  hubLocations?: Samsara.PatchPlaceHubLocationsBodyRequestBody;
20
+ /** When present, replaces IFTA exemption types for the place. */
21
+ iftaExemptionTypes?: string[];
20
22
  /** Center latitude when switching to or editing a circle geofence. */
21
23
  latitude?: number;
22
24
  /** Center longitude when switching to or editing a circle geofence. */
@@ -26,14 +28,27 @@ export interface PlacesPatchPlaceRequestBody {
26
28
  navigation?: Samsara.PostPlaceNavigationInputRequestBody;
27
29
  /** Notes. */
28
30
  notes?: string;
29
- /** Unsupported on patch; when provided this API returns InvalidArgument. */
31
+ /** When present, replaces address-type categories via address metadata. Metadata-derived types (hubLocation, navigation, iftaExemption) must match hubLocations, navigation, and IFTA metadata after this request; conflicting combinations return InvalidArgument. */
30
32
  placeTypes?: string[];
31
33
  /** Circle radius in meters; use with latitude and longitude. */
32
34
  radiusMeters?: number;
35
+ /** When present, replaces safety event exclusions for the place. */
36
+ safetyEventExclusions?: string[];
37
+ streetView?: Samsara.PlaceStreetViewResponseRequestBody;
33
38
  /** When present, replaces all tag associations for the place. */
34
39
  tags?: Samsara.PostPlaceTagRefRequestBody[];
35
40
  }
36
41
  export declare namespace PlacesPatchPlaceRequestBody {
42
+ /** Camera recording mode: fullRecording, driverPrivacy, completePrivacy, or inherit. Valid values: `fullRecording`, `driverPrivacy`, `completePrivacy`, `inherit`, `unknown`, `unspecified` */
43
+ const CameraRecordingModeType: {
44
+ readonly FullRecording: "fullRecording";
45
+ readonly DriverPrivacy: "driverPrivacy";
46
+ readonly CompletePrivacy: "completePrivacy";
47
+ readonly Inherit: "inherit";
48
+ readonly Unknown: "unknown";
49
+ readonly Unspecified: "unspecified";
50
+ };
51
+ type CameraRecordingModeType = (typeof CameraRecordingModeType)[keyof typeof CameraRecordingModeType];
37
52
  /**
38
53
  * When present, replaces external ids for the place.
39
54
  */
@@ -1,3 +1,16 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PlacesPatchPlaceRequestBody = void 0;
5
+ var PlacesPatchPlaceRequestBody;
6
+ (function (PlacesPatchPlaceRequestBody) {
7
+ /** Camera recording mode: fullRecording, driverPrivacy, completePrivacy, or inherit. Valid values: `fullRecording`, `driverPrivacy`, `completePrivacy`, `inherit`, `unknown`, `unspecified` */
8
+ PlacesPatchPlaceRequestBody.CameraRecordingModeType = {
9
+ FullRecording: "fullRecording",
10
+ DriverPrivacy: "driverPrivacy",
11
+ CompletePrivacy: "completePrivacy",
12
+ Inherit: "inherit",
13
+ Unknown: "unknown",
14
+ Unspecified: "unspecified",
15
+ };
16
+ })(PlacesPatchPlaceRequestBody || (exports.PlacesPatchPlaceRequestBody = PlacesPatchPlaceRequestBody = {}));
@@ -9,12 +9,16 @@ import type * as Samsara from "../../../../index.js";
9
9
  export interface PlacesPostPlaceRequestBody {
10
10
  /** Single-line address string. */
11
11
  address: string;
12
+ /** Camera recording mode: fullRecording, driverPrivacy, completePrivacy, or inherit. Valid values: `fullRecording`, `driverPrivacy`, `completePrivacy`, `inherit`, `unknown`, `unspecified` */
13
+ cameraRecordingModeType?: PlacesPostPlaceRequestBody.CameraRecordingModeType;
12
14
  /** External identifiers. */
13
15
  externalIds?: PlacesPostPlaceRequestBody.ExternalIds;
14
16
  /** Polygon vertices; at least three when using polygon mode (omit entirely when using latitude, longitude, and radiusMeters for a circle). */
15
17
  geofence?: Samsara.GeofenceVertexInputRequestBody[];
16
18
  /** Initial route-planning hub rows for the new place. Each entry requires hubId. Omit hubLocationId to let the server assign a row UUID, or set hubLocationId to pin the UUID for idempotent creates. */
17
19
  hubLocations?: Samsara.PatchPlaceHubLocationUpsertBodyRequestBody[];
20
+ /** IFTA exemption types for this place. */
21
+ iftaExemptionTypes?: string[];
18
22
  /** Center latitude when using a circle geofence with radiusMeters. */
19
23
  latitude?: number;
20
24
  /** Center longitude when using a circle geofence with radiusMeters. */
@@ -24,14 +28,27 @@ export interface PlacesPostPlaceRequestBody {
24
28
  navigation?: Samsara.PostPlaceNavigationInputRequestBody;
25
29
  /** Optional notes. */
26
30
  notes?: string;
27
- /** Unsupported on create; when provided this API returns InvalidArgument. */
31
+ /** When present, replaces address-type categories via address metadata. Metadata-derived types (hubLocation, navigation, iftaExemption) must match hubLocations, navigation, and existing IFTA metadata in the same request; conflicting combinations return InvalidArgument. */
28
32
  placeTypes?: string[];
29
33
  /** Circle radius in meters; requires latitude and longitude. Must be at least 1 when set. */
30
34
  radiusMeters?: number;
35
+ /** Safety event types excluded at this place. */
36
+ safetyEventExclusions?: string[];
37
+ streetView?: Samsara.PlaceStreetViewResponseRequestBody;
31
38
  /** Tags to associate. */
32
39
  tags?: Samsara.PostPlaceTagRefRequestBody[];
33
40
  }
34
41
  export declare namespace PlacesPostPlaceRequestBody {
42
+ /** Camera recording mode: fullRecording, driverPrivacy, completePrivacy, or inherit. Valid values: `fullRecording`, `driverPrivacy`, `completePrivacy`, `inherit`, `unknown`, `unspecified` */
43
+ const CameraRecordingModeType: {
44
+ readonly FullRecording: "fullRecording";
45
+ readonly DriverPrivacy: "driverPrivacy";
46
+ readonly CompletePrivacy: "completePrivacy";
47
+ readonly Inherit: "inherit";
48
+ readonly Unknown: "unknown";
49
+ readonly Unspecified: "unspecified";
50
+ };
51
+ type CameraRecordingModeType = (typeof CameraRecordingModeType)[keyof typeof CameraRecordingModeType];
35
52
  /**
36
53
  * External identifiers.
37
54
  */
@@ -1,3 +1,16 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PlacesPostPlaceRequestBody = void 0;
5
+ var PlacesPostPlaceRequestBody;
6
+ (function (PlacesPostPlaceRequestBody) {
7
+ /** Camera recording mode: fullRecording, driverPrivacy, completePrivacy, or inherit. Valid values: `fullRecording`, `driverPrivacy`, `completePrivacy`, `inherit`, `unknown`, `unspecified` */
8
+ PlacesPostPlaceRequestBody.CameraRecordingModeType = {
9
+ FullRecording: "fullRecording",
10
+ DriverPrivacy: "driverPrivacy",
11
+ CompletePrivacy: "completePrivacy",
12
+ Inherit: "inherit",
13
+ Unknown: "unknown",
14
+ Unspecified: "unspecified",
15
+ };
16
+ })(PlacesPostPlaceRequestBody || (exports.PlacesPostPlaceRequestBody = PlacesPostPlaceRequestBody = {}));
@@ -55,8 +55,8 @@ export type { ListRidershipPassengersRequest } from "./ListRidershipPassengersRe
55
55
  export type { ListRidershipRouteSetupsRequest } from "./ListRidershipRouteSetupsRequest.js";
56
56
  export type { ListTachographLiveDataRequest } from "./ListTachographLiveDataRequest.js";
57
57
  export type { ListVendorCategoriesRequest } from "./ListVendorCategoriesRequest.js";
58
- export type { PlacesPatchPlaceRequestBody } from "./PlacesPatchPlaceRequestBody.js";
59
- export type { PlacesPostPlaceRequestBody } from "./PlacesPostPlaceRequestBody.js";
58
+ export { PlacesPatchPlaceRequestBody } from "./PlacesPatchPlaceRequestBody.js";
59
+ export { PlacesPostPlaceRequestBody } from "./PlacesPostPlaceRequestBody.js";
60
60
  export type { PreferredStationsPatchPreferredStationRequestBody } from "./PreferredStationsPatchPreferredStationRequestBody.js";
61
61
  export type { PreferredStationsPostPreferredStationRequestBody } from "./PreferredStationsPostPreferredStationRequestBody.js";
62
62
  export type { QualificationsArchiveQualificationRecordRequestBody } from "./QualificationsArchiveQualificationRecordRequestBody.js";
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SafetyEventsV2PatchSafetyEventsV2BatchRequestBody = exports.RidershipPassengersUpdateRidershipPassengerRequestBody = exports.RidershipPassengersCreateRidershipPassengerRequestBody = exports.DeviceRecoveryRecoverAssetRequestBody = void 0;
3
+ exports.SafetyEventsV2PatchSafetyEventsV2BatchRequestBody = exports.RidershipPassengersUpdateRidershipPassengerRequestBody = exports.RidershipPassengersCreateRidershipPassengerRequestBody = exports.PlacesPostPlaceRequestBody = exports.PlacesPatchPlaceRequestBody = exports.DeviceRecoveryRecoverAssetRequestBody = void 0;
4
4
  var DeviceRecoveryRecoverAssetRequestBody_js_1 = require("./DeviceRecoveryRecoverAssetRequestBody.js");
5
5
  Object.defineProperty(exports, "DeviceRecoveryRecoverAssetRequestBody", { enumerable: true, get: function () { return DeviceRecoveryRecoverAssetRequestBody_js_1.DeviceRecoveryRecoverAssetRequestBody; } });
6
+ var PlacesPatchPlaceRequestBody_js_1 = require("./PlacesPatchPlaceRequestBody.js");
7
+ Object.defineProperty(exports, "PlacesPatchPlaceRequestBody", { enumerable: true, get: function () { return PlacesPatchPlaceRequestBody_js_1.PlacesPatchPlaceRequestBody; } });
8
+ var PlacesPostPlaceRequestBody_js_1 = require("./PlacesPostPlaceRequestBody.js");
9
+ Object.defineProperty(exports, "PlacesPostPlaceRequestBody", { enumerable: true, get: function () { return PlacesPostPlaceRequestBody_js_1.PlacesPostPlaceRequestBody; } });
6
10
  var RidershipPassengersCreateRidershipPassengerRequestBody_js_1 = require("./RidershipPassengersCreateRidershipPassengerRequestBody.js");
7
11
  Object.defineProperty(exports, "RidershipPassengersCreateRidershipPassengerRequestBody", { enumerable: true, get: function () { return RidershipPassengersCreateRidershipPassengerRequestBody_js_1.RidershipPassengersCreateRidershipPassengerRequestBody; } });
8
12
  var RidershipPassengersUpdateRidershipPassengerRequestBody_js_1 = require("./RidershipPassengersUpdateRidershipPassengerRequestBody.js");
@@ -1,3 +1,4 @@
1
+ import type * as Samsara from "../index.js";
1
2
  /**
2
3
  * Hub location upsert entry for PATCH /places.
3
4
  */
@@ -16,4 +17,10 @@ export interface PatchPlaceHubLocationUpsertBodyRequestBody {
16
17
  isIgnoreOrderServiceTimeEnabled?: boolean | undefined;
17
18
  /** Stop position preference: unspecified, any, first, or last. */
18
19
  locationPositionType?: string | undefined;
20
+ /** Required planner skills for this hub location. */
21
+ requiredSkills?: Samsara.PlaceHubLocationRequiredSkillInputRequestBody[] | undefined;
22
+ /** Recurring local-time service windows for this hub location. */
23
+ serviceWindows?: Samsara.PlaceHubLocationServiceWindowInputRequestBody[] | undefined;
24
+ /** Default instructions for drivers at this hub location. */
25
+ standardDriverInstructions?: string | undefined;
19
26
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Required planner skill reference for a place hub location row.
3
+ */
4
+ export interface PlaceHubLocationRequiredSkillInputRequestBody {
5
+ /** Planner skill UUID. */
6
+ id: string;
7
+ }
@@ -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 });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Recurring service window for a place hub location row.
3
+ */
4
+ export interface PlaceHubLocationServiceWindowInputRequestBody {
5
+ /** Days this window applies. */
6
+ days: string[];
7
+ /** End time as seconds since local midnight. */
8
+ endTime: number;
9
+ /** Start time as seconds since local midnight. */
10
+ startTime: number;
11
+ }
@@ -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 });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Street view settings for a place.
3
+ */
4
+ export interface PlaceStreetViewResponseRequestBody {
5
+ /** Camera heading. */
6
+ heading?: number | undefined;
7
+ /** Whether street view is enabled. */
8
+ isEnabled: boolean;
9
+ /** Latitude. */
10
+ latitude?: number | undefined;
11
+ /** Longitude. */
12
+ longitude?: number | undefined;
13
+ /** Camera pitch. */
14
+ pitch?: number | undefined;
15
+ /** Zoom level. */
16
+ zoom?: number | undefined;
17
+ }
@@ -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 });
@@ -8,6 +8,8 @@ export interface ServiceTaskInstanceInputObjectRequestBody {
8
8
  laborHourlyCost?: Samsara.WorkOrderMoneyObjectRequestBody | undefined;
9
9
  /** The time of labor needed */
10
10
  laborTimeMinutes?: number | undefined;
11
+ /** Free-form technician notes for the service task. */
12
+ notes?: string | undefined;
11
13
  /** Parts for the service task. */
12
14
  parts?: Samsara.PartInstanceInputObjectRequestBody[] | undefined;
13
15
  partsCost?: Samsara.WorkOrderMoneyObjectRequestBody | undefined;
@@ -8,6 +8,8 @@ export interface ServiceTaskInstanceObjectResponseBody {
8
8
  laborHourlyCost?: Samsara.WorkOrderMoneyObjectResponseBody | undefined;
9
9
  /** The time of labor needed */
10
10
  laborTimeMinutes?: number | undefined;
11
+ /** Free-form technician notes for the service task. */
12
+ notes?: string | undefined;
11
13
  /** Parts for the service task. */
12
14
  parts?: Samsara.PartInstanceObjectResponseBody[] | undefined;
13
15
  partsCost?: Samsara.WorkOrderMoneyObjectResponseBody | undefined;
@@ -8,6 +8,8 @@ export interface ServiceTaskInstanceWithTimeEntriesObjectResponseBody {
8
8
  laborHourlyCost?: Samsara.WorkOrderMoneyObjectResponseBody | undefined;
9
9
  /** The time of labor needed */
10
10
  laborTimeMinutes?: number | undefined;
11
+ /** Free-form technician notes for the service task. */
12
+ notes?: string | undefined;
11
13
  /** Parts for the service task. */
12
14
  parts?: Samsara.PartInstanceObjectResponseBody[] | undefined;
13
15
  partsCost?: Samsara.WorkOrderMoneyObjectResponseBody | undefined;
@@ -1878,9 +1878,12 @@ export * from "./PersonDetectedResponseBody.js";
1878
1878
  export * from "./PhotoValueObjectRequestBody.js";
1879
1879
  export * from "./PhotoValueObjectResponseBody.js";
1880
1880
  export * from "./PlaceGeofenceVertexResponseResponseBody.js";
1881
+ export * from "./PlaceHubLocationRequiredSkillInputRequestBody.js";
1882
+ export * from "./PlaceHubLocationServiceWindowInputRequestBody.js";
1881
1883
  export * from "./PlaceNavigationLocationResponseResponseBody.js";
1882
1884
  export * from "./PlaceNavigationResponseResponseBody.js";
1883
1885
  export * from "./PlaceResponseObjectResponseBody.js";
1886
+ export * from "./PlaceStreetViewResponseRequestBody.js";
1884
1887
  export * from "./PlaceStreetViewResponseResponseBody.js";
1885
1888
  export * from "./PlacesDeletePlaceBadGatewayErrorResponseBody.js";
1886
1889
  export * from "./PlacesDeletePlaceGatewayTimeoutErrorResponseBody.js";
@@ -1894,9 +1894,12 @@ __exportStar(require("./PersonDetectedResponseBody.js"), exports);
1894
1894
  __exportStar(require("./PhotoValueObjectRequestBody.js"), exports);
1895
1895
  __exportStar(require("./PhotoValueObjectResponseBody.js"), exports);
1896
1896
  __exportStar(require("./PlaceGeofenceVertexResponseResponseBody.js"), exports);
1897
+ __exportStar(require("./PlaceHubLocationRequiredSkillInputRequestBody.js"), exports);
1898
+ __exportStar(require("./PlaceHubLocationServiceWindowInputRequestBody.js"), exports);
1897
1899
  __exportStar(require("./PlaceNavigationLocationResponseResponseBody.js"), exports);
1898
1900
  __exportStar(require("./PlaceNavigationResponseResponseBody.js"), exports);
1899
1901
  __exportStar(require("./PlaceResponseObjectResponseBody.js"), exports);
1902
+ __exportStar(require("./PlaceStreetViewResponseRequestBody.js"), exports);
1900
1903
  __exportStar(require("./PlaceStreetViewResponseResponseBody.js"), exports);
1901
1904
  __exportStar(require("./PlacesDeletePlaceBadGatewayErrorResponseBody.js"), exports);
1902
1905
  __exportStar(require("./PlacesDeletePlaceGatewayTimeoutErrorResponseBody.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "13.5.0";
1
+ export declare const SDK_VERSION = "13.7.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.5.0";
4
+ exports.SDK_VERSION = "13.7.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.5.0",
11
- "User-Agent": "@samsarahq/samsara/13.5.0",
10
+ "X-Fern-SDK-Version": "13.7.0",
11
+ "User-Agent": "@samsarahq/samsara/13.7.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",
@@ -1241,7 +1241,7 @@ export declare class BetaApIsClient {
1241
1241
  deleteHubRouteTemplate(request: Samsara.DeleteHubRouteTemplateRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<void>;
1242
1242
  private __deleteHubRouteTemplate;
1243
1243
  /**
1244
- * Returns places for the authorized organization. Supports cursor pagination or batch fetch by Samsara place ids via `placeIds`.
1244
+ * Returns places for the authorized organization. Supports cursor pagination or batch fetch by Samsara place ids via `placeIds` or by external ids via `externalIds` (mutually exclusive).
1245
1245
  *
1246
1246
  * <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>).
1247
1247
  *
@@ -1330,7 +1330,7 @@ export declare class BetaApIsClient {
1330
1330
  deletePlace(request: Samsara.DeletePlaceRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<void>;
1331
1331
  private __deletePlace;
1332
1332
  /**
1333
- * Updates a place. Query parameter `placeId` (Samsara id) is required. Optional `externalId` (key:value) is reserved for a future release and must not be combined with `placeId`. Only fields present in the JSON body are changed; omit a field to leave it unchanged.
1333
+ * Updates a place. Provide exactly one of query parameter `placeId` (Samsara id) or `externalId` (key:value). Only fields present in the JSON body are changed; omit a field to leave it unchanged.
1334
1334
  *
1335
1335
  * <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>).
1336
1336
  *
@@ -1353,11 +1353,9 @@ export declare class BetaApIsClient {
1353
1353
  * @throws {@link Samsara.GatewayTimeoutError}
1354
1354
  *
1355
1355
  * @example
1356
- * await client.betaApIs.patchPlace({
1357
- * placeId: 1000000
1358
- * })
1356
+ * await client.betaApIs.patchPlace()
1359
1357
  */
1360
- patchPlace(request: Samsara.PlacesPatchPlaceRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.PlacesPatchPlaceResponseBody>;
1358
+ patchPlace(request?: Samsara.PlacesPatchPlaceRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.PlacesPatchPlaceResponseBody>;
1361
1359
  private __patchPlace;
1362
1360
  /**
1363
1361
  * List all preferred fuel stations for your organization.
@@ -3650,7 +3650,7 @@ export class BetaApIsClient {
3650
3650
  });
3651
3651
  }
3652
3652
  /**
3653
- * Returns places for the authorized organization. Supports cursor pagination or batch fetch by Samsara place ids via `placeIds`.
3653
+ * Returns places for the authorized organization. Supports cursor pagination or batch fetch by Samsara place ids via `placeIds` or by external ids via `externalIds` (mutually exclusive).
3654
3654
  *
3655
3655
  * <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>).
3656
3656
  *
@@ -3912,7 +3912,7 @@ export class BetaApIsClient {
3912
3912
  });
3913
3913
  }
3914
3914
  /**
3915
- * Updates a place. Query parameter `placeId` (Samsara id) is required. Optional `externalId` (key:value) is reserved for a future release and must not be combined with `placeId`. Only fields present in the JSON body are changed; omit a field to leave it unchanged.
3915
+ * Updates a place. Provide exactly one of query parameter `placeId` (Samsara id) or `externalId` (key:value). Only fields present in the JSON body are changed; omit a field to leave it unchanged.
3916
3916
  *
3917
3917
  * <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>).
3918
3918
  *
@@ -3935,15 +3935,13 @@ export class BetaApIsClient {
3935
3935
  * @throws {@link Samsara.GatewayTimeoutError}
3936
3936
  *
3937
3937
  * @example
3938
- * await client.betaApIs.patchPlace({
3939
- * placeId: 1000000
3940
- * })
3938
+ * await client.betaApIs.patchPlace()
3941
3939
  */
3942
- patchPlace(request, requestOptions) {
3940
+ patchPlace(request = {}, requestOptions) {
3943
3941
  return core.HttpResponsePromise.fromPromise(this.__patchPlace(request, requestOptions));
3944
3942
  }
3945
- __patchPlace(request, requestOptions) {
3946
- return __awaiter(this, void 0, void 0, function* () {
3943
+ __patchPlace() {
3944
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
3947
3945
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3948
3946
  const { placeId, externalId } = request, _body = __rest(request, ["placeId", "externalId"]);
3949
3947
  const _queryParams = {
@@ -7,9 +7,9 @@ export interface GetPlacesRequest {
7
7
  after?: string;
8
8
  /** The limit for how many objects will be in the response. Default and max for this value is 512 objects. */
9
9
  limit?: number;
10
- /** Comma-separated Samsara place IDs for batch lookup (max 100). When set, list filters and cursor pagination are ignored. External id tokens (key:value) are not supported in this version. */
10
+ /** Comma-separated Samsara place IDs for batch lookup (max 100). When set, list filters and cursor pagination are ignored. Mutually exclusive with `externalIds`. */
11
11
  placeIds?: string;
12
- /** Reserved. Batch lookup by external IDs is not implemented in this API version. */
12
+ /** Comma-separated external ID tokens (`key:value`) for batch lookup (max 100). When set, list filters and cursor pagination are ignored. Mutually exclusive with `placeIds`. */
13
13
  externalIds?: string;
14
14
  /** When true, expands tag objects on each place. Defaults to false. */
15
15
  includeTags?: boolean;
@@ -1,22 +1,24 @@
1
1
  import type * as Samsara from "../../../../index.mjs";
2
2
  /**
3
3
  * @example
4
- * {
5
- * placeId: 1000000
6
- * }
4
+ * {}
7
5
  */
8
6
  export interface PlacesPatchPlaceRequestBody {
9
- /** Samsara place id to update (required). Do not send `externalId` in the same request. */
10
- placeId: number;
11
- /** External id token in `key:value` form (e.g. crmId:warehouse-east). Mutually exclusive with `placeId`. Batch lookup by external id is not implemented for this endpoint yet; callers should use `placeId` until supported. */
7
+ /** Samsara place id to update. Mutually exclusive with `externalId`; provide exactly one. */
8
+ placeId?: number;
9
+ /** External id token in `key:value` form (e.g. crmId:warehouse-east). Mutually exclusive with `placeId`; provide exactly one. */
12
10
  externalId?: string;
13
11
  /** Single-line address string. */
14
12
  address?: string;
13
+ /** Camera recording mode: fullRecording, driverPrivacy, completePrivacy, or inherit. Valid values: `fullRecording`, `driverPrivacy`, `completePrivacy`, `inherit`, `unknown`, `unspecified` */
14
+ cameraRecordingModeType?: PlacesPatchPlaceRequestBody.CameraRecordingModeType;
15
15
  /** When present, replaces external ids for the place. */
16
16
  externalIds?: PlacesPatchPlaceRequestBody.ExternalIds;
17
17
  /** Polygon vertices; at least three when switching to polygon mode. */
18
18
  geofence?: Samsara.GeofenceVertexInputRequestBody[];
19
19
  hubLocations?: Samsara.PatchPlaceHubLocationsBodyRequestBody;
20
+ /** When present, replaces IFTA exemption types for the place. */
21
+ iftaExemptionTypes?: string[];
20
22
  /** Center latitude when switching to or editing a circle geofence. */
21
23
  latitude?: number;
22
24
  /** Center longitude when switching to or editing a circle geofence. */
@@ -26,14 +28,27 @@ export interface PlacesPatchPlaceRequestBody {
26
28
  navigation?: Samsara.PostPlaceNavigationInputRequestBody;
27
29
  /** Notes. */
28
30
  notes?: string;
29
- /** Unsupported on patch; when provided this API returns InvalidArgument. */
31
+ /** When present, replaces address-type categories via address metadata. Metadata-derived types (hubLocation, navigation, iftaExemption) must match hubLocations, navigation, and IFTA metadata after this request; conflicting combinations return InvalidArgument. */
30
32
  placeTypes?: string[];
31
33
  /** Circle radius in meters; use with latitude and longitude. */
32
34
  radiusMeters?: number;
35
+ /** When present, replaces safety event exclusions for the place. */
36
+ safetyEventExclusions?: string[];
37
+ streetView?: Samsara.PlaceStreetViewResponseRequestBody;
33
38
  /** When present, replaces all tag associations for the place. */
34
39
  tags?: Samsara.PostPlaceTagRefRequestBody[];
35
40
  }
36
41
  export declare namespace PlacesPatchPlaceRequestBody {
42
+ /** Camera recording mode: fullRecording, driverPrivacy, completePrivacy, or inherit. Valid values: `fullRecording`, `driverPrivacy`, `completePrivacy`, `inherit`, `unknown`, `unspecified` */
43
+ const CameraRecordingModeType: {
44
+ readonly FullRecording: "fullRecording";
45
+ readonly DriverPrivacy: "driverPrivacy";
46
+ readonly CompletePrivacy: "completePrivacy";
47
+ readonly Inherit: "inherit";
48
+ readonly Unknown: "unknown";
49
+ readonly Unspecified: "unspecified";
50
+ };
51
+ type CameraRecordingModeType = (typeof CameraRecordingModeType)[keyof typeof CameraRecordingModeType];
37
52
  /**
38
53
  * When present, replaces external ids for the place.
39
54
  */
@@ -1,2 +1,13 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var PlacesPatchPlaceRequestBody;
3
+ (function (PlacesPatchPlaceRequestBody) {
4
+ /** Camera recording mode: fullRecording, driverPrivacy, completePrivacy, or inherit. Valid values: `fullRecording`, `driverPrivacy`, `completePrivacy`, `inherit`, `unknown`, `unspecified` */
5
+ PlacesPatchPlaceRequestBody.CameraRecordingModeType = {
6
+ FullRecording: "fullRecording",
7
+ DriverPrivacy: "driverPrivacy",
8
+ CompletePrivacy: "completePrivacy",
9
+ Inherit: "inherit",
10
+ Unknown: "unknown",
11
+ Unspecified: "unspecified",
12
+ };
13
+ })(PlacesPatchPlaceRequestBody || (PlacesPatchPlaceRequestBody = {}));
@@ -9,12 +9,16 @@ import type * as Samsara from "../../../../index.mjs";
9
9
  export interface PlacesPostPlaceRequestBody {
10
10
  /** Single-line address string. */
11
11
  address: string;
12
+ /** Camera recording mode: fullRecording, driverPrivacy, completePrivacy, or inherit. Valid values: `fullRecording`, `driverPrivacy`, `completePrivacy`, `inherit`, `unknown`, `unspecified` */
13
+ cameraRecordingModeType?: PlacesPostPlaceRequestBody.CameraRecordingModeType;
12
14
  /** External identifiers. */
13
15
  externalIds?: PlacesPostPlaceRequestBody.ExternalIds;
14
16
  /** Polygon vertices; at least three when using polygon mode (omit entirely when using latitude, longitude, and radiusMeters for a circle). */
15
17
  geofence?: Samsara.GeofenceVertexInputRequestBody[];
16
18
  /** Initial route-planning hub rows for the new place. Each entry requires hubId. Omit hubLocationId to let the server assign a row UUID, or set hubLocationId to pin the UUID for idempotent creates. */
17
19
  hubLocations?: Samsara.PatchPlaceHubLocationUpsertBodyRequestBody[];
20
+ /** IFTA exemption types for this place. */
21
+ iftaExemptionTypes?: string[];
18
22
  /** Center latitude when using a circle geofence with radiusMeters. */
19
23
  latitude?: number;
20
24
  /** Center longitude when using a circle geofence with radiusMeters. */
@@ -24,14 +28,27 @@ export interface PlacesPostPlaceRequestBody {
24
28
  navigation?: Samsara.PostPlaceNavigationInputRequestBody;
25
29
  /** Optional notes. */
26
30
  notes?: string;
27
- /** Unsupported on create; when provided this API returns InvalidArgument. */
31
+ /** When present, replaces address-type categories via address metadata. Metadata-derived types (hubLocation, navigation, iftaExemption) must match hubLocations, navigation, and existing IFTA metadata in the same request; conflicting combinations return InvalidArgument. */
28
32
  placeTypes?: string[];
29
33
  /** Circle radius in meters; requires latitude and longitude. Must be at least 1 when set. */
30
34
  radiusMeters?: number;
35
+ /** Safety event types excluded at this place. */
36
+ safetyEventExclusions?: string[];
37
+ streetView?: Samsara.PlaceStreetViewResponseRequestBody;
31
38
  /** Tags to associate. */
32
39
  tags?: Samsara.PostPlaceTagRefRequestBody[];
33
40
  }
34
41
  export declare namespace PlacesPostPlaceRequestBody {
42
+ /** Camera recording mode: fullRecording, driverPrivacy, completePrivacy, or inherit. Valid values: `fullRecording`, `driverPrivacy`, `completePrivacy`, `inherit`, `unknown`, `unspecified` */
43
+ const CameraRecordingModeType: {
44
+ readonly FullRecording: "fullRecording";
45
+ readonly DriverPrivacy: "driverPrivacy";
46
+ readonly CompletePrivacy: "completePrivacy";
47
+ readonly Inherit: "inherit";
48
+ readonly Unknown: "unknown";
49
+ readonly Unspecified: "unspecified";
50
+ };
51
+ type CameraRecordingModeType = (typeof CameraRecordingModeType)[keyof typeof CameraRecordingModeType];
35
52
  /**
36
53
  * External identifiers.
37
54
  */
@@ -1,2 +1,13 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var PlacesPostPlaceRequestBody;
3
+ (function (PlacesPostPlaceRequestBody) {
4
+ /** Camera recording mode: fullRecording, driverPrivacy, completePrivacy, or inherit. Valid values: `fullRecording`, `driverPrivacy`, `completePrivacy`, `inherit`, `unknown`, `unspecified` */
5
+ PlacesPostPlaceRequestBody.CameraRecordingModeType = {
6
+ FullRecording: "fullRecording",
7
+ DriverPrivacy: "driverPrivacy",
8
+ CompletePrivacy: "completePrivacy",
9
+ Inherit: "inherit",
10
+ Unknown: "unknown",
11
+ Unspecified: "unspecified",
12
+ };
13
+ })(PlacesPostPlaceRequestBody || (PlacesPostPlaceRequestBody = {}));
@@ -55,8 +55,8 @@ export type { ListRidershipPassengersRequest } from "./ListRidershipPassengersRe
55
55
  export type { ListRidershipRouteSetupsRequest } from "./ListRidershipRouteSetupsRequest.mjs";
56
56
  export type { ListTachographLiveDataRequest } from "./ListTachographLiveDataRequest.mjs";
57
57
  export type { ListVendorCategoriesRequest } from "./ListVendorCategoriesRequest.mjs";
58
- export type { PlacesPatchPlaceRequestBody } from "./PlacesPatchPlaceRequestBody.mjs";
59
- export type { PlacesPostPlaceRequestBody } from "./PlacesPostPlaceRequestBody.mjs";
58
+ export { PlacesPatchPlaceRequestBody } from "./PlacesPatchPlaceRequestBody.mjs";
59
+ export { PlacesPostPlaceRequestBody } from "./PlacesPostPlaceRequestBody.mjs";
60
60
  export type { PreferredStationsPatchPreferredStationRequestBody } from "./PreferredStationsPatchPreferredStationRequestBody.mjs";
61
61
  export type { PreferredStationsPostPreferredStationRequestBody } from "./PreferredStationsPostPreferredStationRequestBody.mjs";
62
62
  export type { QualificationsArchiveQualificationRecordRequestBody } from "./QualificationsArchiveQualificationRecordRequestBody.mjs";
@@ -1,4 +1,6 @@
1
1
  export { DeviceRecoveryRecoverAssetRequestBody } from "./DeviceRecoveryRecoverAssetRequestBody.mjs";
2
+ export { PlacesPatchPlaceRequestBody } from "./PlacesPatchPlaceRequestBody.mjs";
3
+ export { PlacesPostPlaceRequestBody } from "./PlacesPostPlaceRequestBody.mjs";
2
4
  export { RidershipPassengersCreateRidershipPassengerRequestBody } from "./RidershipPassengersCreateRidershipPassengerRequestBody.mjs";
3
5
  export { RidershipPassengersUpdateRidershipPassengerRequestBody } from "./RidershipPassengersUpdateRidershipPassengerRequestBody.mjs";
4
6
  export { SafetyEventsV2PatchSafetyEventsV2BatchRequestBody } from "./SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.mjs";
@@ -1,3 +1,4 @@
1
+ import type * as Samsara from "../index.mjs";
1
2
  /**
2
3
  * Hub location upsert entry for PATCH /places.
3
4
  */
@@ -16,4 +17,10 @@ export interface PatchPlaceHubLocationUpsertBodyRequestBody {
16
17
  isIgnoreOrderServiceTimeEnabled?: boolean | undefined;
17
18
  /** Stop position preference: unspecified, any, first, or last. */
18
19
  locationPositionType?: string | undefined;
20
+ /** Required planner skills for this hub location. */
21
+ requiredSkills?: Samsara.PlaceHubLocationRequiredSkillInputRequestBody[] | undefined;
22
+ /** Recurring local-time service windows for this hub location. */
23
+ serviceWindows?: Samsara.PlaceHubLocationServiceWindowInputRequestBody[] | undefined;
24
+ /** Default instructions for drivers at this hub location. */
25
+ standardDriverInstructions?: string | undefined;
19
26
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Required planner skill reference for a place hub location row.
3
+ */
4
+ export interface PlaceHubLocationRequiredSkillInputRequestBody {
5
+ /** Planner skill UUID. */
6
+ id: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Recurring service window for a place hub location row.
3
+ */
4
+ export interface PlaceHubLocationServiceWindowInputRequestBody {
5
+ /** Days this window applies. */
6
+ days: string[];
7
+ /** End time as seconds since local midnight. */
8
+ endTime: number;
9
+ /** Start time as seconds since local midnight. */
10
+ startTime: number;
11
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Street view settings for a place.
3
+ */
4
+ export interface PlaceStreetViewResponseRequestBody {
5
+ /** Camera heading. */
6
+ heading?: number | undefined;
7
+ /** Whether street view is enabled. */
8
+ isEnabled: boolean;
9
+ /** Latitude. */
10
+ latitude?: number | undefined;
11
+ /** Longitude. */
12
+ longitude?: number | undefined;
13
+ /** Camera pitch. */
14
+ pitch?: number | undefined;
15
+ /** Zoom level. */
16
+ zoom?: number | undefined;
17
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -8,6 +8,8 @@ export interface ServiceTaskInstanceInputObjectRequestBody {
8
8
  laborHourlyCost?: Samsara.WorkOrderMoneyObjectRequestBody | undefined;
9
9
  /** The time of labor needed */
10
10
  laborTimeMinutes?: number | undefined;
11
+ /** Free-form technician notes for the service task. */
12
+ notes?: string | undefined;
11
13
  /** Parts for the service task. */
12
14
  parts?: Samsara.PartInstanceInputObjectRequestBody[] | undefined;
13
15
  partsCost?: Samsara.WorkOrderMoneyObjectRequestBody | undefined;
@@ -8,6 +8,8 @@ export interface ServiceTaskInstanceObjectResponseBody {
8
8
  laborHourlyCost?: Samsara.WorkOrderMoneyObjectResponseBody | undefined;
9
9
  /** The time of labor needed */
10
10
  laborTimeMinutes?: number | undefined;
11
+ /** Free-form technician notes for the service task. */
12
+ notes?: string | undefined;
11
13
  /** Parts for the service task. */
12
14
  parts?: Samsara.PartInstanceObjectResponseBody[] | undefined;
13
15
  partsCost?: Samsara.WorkOrderMoneyObjectResponseBody | undefined;
@@ -8,6 +8,8 @@ export interface ServiceTaskInstanceWithTimeEntriesObjectResponseBody {
8
8
  laborHourlyCost?: Samsara.WorkOrderMoneyObjectResponseBody | undefined;
9
9
  /** The time of labor needed */
10
10
  laborTimeMinutes?: number | undefined;
11
+ /** Free-form technician notes for the service task. */
12
+ notes?: string | undefined;
11
13
  /** Parts for the service task. */
12
14
  parts?: Samsara.PartInstanceObjectResponseBody[] | undefined;
13
15
  partsCost?: Samsara.WorkOrderMoneyObjectResponseBody | undefined;
@@ -1878,9 +1878,12 @@ export * from "./PersonDetectedResponseBody.mjs";
1878
1878
  export * from "./PhotoValueObjectRequestBody.mjs";
1879
1879
  export * from "./PhotoValueObjectResponseBody.mjs";
1880
1880
  export * from "./PlaceGeofenceVertexResponseResponseBody.mjs";
1881
+ export * from "./PlaceHubLocationRequiredSkillInputRequestBody.mjs";
1882
+ export * from "./PlaceHubLocationServiceWindowInputRequestBody.mjs";
1881
1883
  export * from "./PlaceNavigationLocationResponseResponseBody.mjs";
1882
1884
  export * from "./PlaceNavigationResponseResponseBody.mjs";
1883
1885
  export * from "./PlaceResponseObjectResponseBody.mjs";
1886
+ export * from "./PlaceStreetViewResponseRequestBody.mjs";
1884
1887
  export * from "./PlaceStreetViewResponseResponseBody.mjs";
1885
1888
  export * from "./PlacesDeletePlaceBadGatewayErrorResponseBody.mjs";
1886
1889
  export * from "./PlacesDeletePlaceGatewayTimeoutErrorResponseBody.mjs";
@@ -1878,9 +1878,12 @@ export * from "./PersonDetectedResponseBody.mjs";
1878
1878
  export * from "./PhotoValueObjectRequestBody.mjs";
1879
1879
  export * from "./PhotoValueObjectResponseBody.mjs";
1880
1880
  export * from "./PlaceGeofenceVertexResponseResponseBody.mjs";
1881
+ export * from "./PlaceHubLocationRequiredSkillInputRequestBody.mjs";
1882
+ export * from "./PlaceHubLocationServiceWindowInputRequestBody.mjs";
1881
1883
  export * from "./PlaceNavigationLocationResponseResponseBody.mjs";
1882
1884
  export * from "./PlaceNavigationResponseResponseBody.mjs";
1883
1885
  export * from "./PlaceResponseObjectResponseBody.mjs";
1886
+ export * from "./PlaceStreetViewResponseRequestBody.mjs";
1884
1887
  export * from "./PlaceStreetViewResponseResponseBody.mjs";
1885
1888
  export * from "./PlacesDeletePlaceBadGatewayErrorResponseBody.mjs";
1886
1889
  export * from "./PlacesDeletePlaceGatewayTimeoutErrorResponseBody.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "13.5.0";
1
+ export declare const SDK_VERSION = "13.7.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "13.5.0";
1
+ export const SDK_VERSION = "13.7.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samsarahq/samsara",
3
- "version": "13.5.0",
3
+ "version": "13.7.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -4454,7 +4454,7 @@ await client.betaApIs.deleteHubRouteTemplate({
4454
4454
  <dl>
4455
4455
  <dd>
4456
4456
 
4457
- Returns places for the authorized organization. Supports cursor pagination or batch fetch by Samsara place ids via `placeIds`.
4457
+ Returns places for the authorized organization. Supports cursor pagination or batch fetch by Samsara place ids via `placeIds` or by external ids via `externalIds` (mutually exclusive).
4458
4458
 
4459
4459
  <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>).
4460
4460
 
@@ -4669,7 +4669,7 @@ await client.betaApIs.deletePlace({
4669
4669
  <dl>
4670
4670
  <dd>
4671
4671
 
4672
- Updates a place. Query parameter `placeId` (Samsara id) is required. Optional `externalId` (key:value) is reserved for a future release and must not be combined with `placeId`. Only fields present in the JSON body are changed; omit a field to leave it unchanged.
4672
+ Updates a place. Provide exactly one of query parameter `placeId` (Samsara id) or `externalId` (key:value). Only fields present in the JSON body are changed; omit a field to leave it unchanged.
4673
4673
 
4674
4674
  <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>).
4675
4675
 
@@ -4691,9 +4691,7 @@ To use this endpoint, select **Write Places** under the Places category when cre
4691
4691
  <dd>
4692
4692
 
4693
4693
  ```typescript
4694
- await client.betaApIs.patchPlace({
4695
- placeId: 1000000
4696
- });
4694
+ await client.betaApIs.patchPlace();
4697
4695
 
4698
4696
  ```
4699
4697
  </dd>