@nizam-os/carrier-sdk 2.5.2 → 2.5.3
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/api/types/HeatmapCell.d.ts +18 -0
- package/dist/api/types/HeatmapCell.js +10 -0
- package/dist/api/types/ListResponseHeatmapCell.d.ts +27 -0
- package/dist/api/types/ListResponseHeatmapCell.js +11 -0
- package/dist/api/types/ListResponseOperatorPosition.d.ts +27 -0
- package/dist/api/types/ListResponseOperatorPosition.js +11 -0
- package/dist/api/types/ListResponsePosition.d.ts +27 -0
- package/dist/api/types/ListResponsePosition.js +11 -0
- package/dist/api/types/MqttToken.d.ts +12 -0
- package/dist/api/types/MqttToken.js +3 -0
- package/dist/api/types/OperatorPosition.d.ts +28 -0
- package/dist/api/types/OperatorPosition.js +10 -0
- package/dist/api/types/Position.d.ts +30 -0
- package/dist/api/types/Position.js +10 -0
- package/dist/api/types/index.d.ts +7 -0
- package/dist/api/types/index.js +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Aggregated position count for one H3 hex cell.
|
|
3
|
+
*/
|
|
4
|
+
export interface HeatmapCell {
|
|
5
|
+
/** H3 cell index, lowercase hex (string — H3 indexes exceed the JS safe-integer range). */
|
|
6
|
+
h3_cell?: string | undefined;
|
|
7
|
+
/** H3 resolution of the cell (9 or 11). */
|
|
8
|
+
h3_res?: number | undefined;
|
|
9
|
+
/** Number of positions recorded in the cell over the window. */
|
|
10
|
+
count?: number | undefined;
|
|
11
|
+
object?: HeatmapCell.Object_ | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace HeatmapCell {
|
|
14
|
+
const Object_: {
|
|
15
|
+
readonly HeatmapCell: "heatmap_cell";
|
|
16
|
+
};
|
|
17
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.HeatmapCell = void 0;
|
|
5
|
+
var HeatmapCell;
|
|
6
|
+
(function (HeatmapCell) {
|
|
7
|
+
HeatmapCell.Object_ = {
|
|
8
|
+
HeatmapCell: "heatmap_cell",
|
|
9
|
+
};
|
|
10
|
+
})(HeatmapCell || (exports.HeatmapCell = HeatmapCell = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as NizamCarrier from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Envelope for paginated list responses (Stripe-style cursor pagination).
|
|
4
|
+
*/
|
|
5
|
+
export interface ListResponseHeatmapCell {
|
|
6
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
7
|
+
object?: ListResponseHeatmapCell.Object_ | undefined;
|
|
8
|
+
/** Page of resources. Empty array when there are no matches. */
|
|
9
|
+
data?: NizamCarrier.HeatmapCell[] | undefined;
|
|
10
|
+
/** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
|
|
11
|
+
has_more?: boolean | undefined;
|
|
12
|
+
/** True when earlier pages exist; pass `prev_cursor` as `?ending_before=` to fetch the previous page. */
|
|
13
|
+
has_previous?: boolean | undefined;
|
|
14
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
15
|
+
next_cursor?: string | undefined;
|
|
16
|
+
/** Opaque cursor for the previous page. `null` on the first page. */
|
|
17
|
+
prev_cursor?: string | undefined;
|
|
18
|
+
/** Page size that produced this response. */
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace ListResponseHeatmapCell {
|
|
22
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
23
|
+
const Object_: {
|
|
24
|
+
readonly List: "list";
|
|
25
|
+
};
|
|
26
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ListResponseHeatmapCell = void 0;
|
|
5
|
+
var ListResponseHeatmapCell;
|
|
6
|
+
(function (ListResponseHeatmapCell) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
8
|
+
ListResponseHeatmapCell.Object_ = {
|
|
9
|
+
List: "list",
|
|
10
|
+
};
|
|
11
|
+
})(ListResponseHeatmapCell || (exports.ListResponseHeatmapCell = ListResponseHeatmapCell = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as NizamCarrier from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Envelope for paginated list responses (Stripe-style cursor pagination).
|
|
4
|
+
*/
|
|
5
|
+
export interface ListResponseOperatorPosition {
|
|
6
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
7
|
+
object?: ListResponseOperatorPosition.Object_ | undefined;
|
|
8
|
+
/** Page of resources. Empty array when there are no matches. */
|
|
9
|
+
data?: NizamCarrier.OperatorPosition[] | undefined;
|
|
10
|
+
/** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
|
|
11
|
+
has_more?: boolean | undefined;
|
|
12
|
+
/** True when earlier pages exist; pass `prev_cursor` as `?ending_before=` to fetch the previous page. */
|
|
13
|
+
has_previous?: boolean | undefined;
|
|
14
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
15
|
+
next_cursor?: string | undefined;
|
|
16
|
+
/** Opaque cursor for the previous page. `null` on the first page. */
|
|
17
|
+
prev_cursor?: string | undefined;
|
|
18
|
+
/** Page size that produced this response. */
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace ListResponseOperatorPosition {
|
|
22
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
23
|
+
const Object_: {
|
|
24
|
+
readonly List: "list";
|
|
25
|
+
};
|
|
26
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ListResponseOperatorPosition = void 0;
|
|
5
|
+
var ListResponseOperatorPosition;
|
|
6
|
+
(function (ListResponseOperatorPosition) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
8
|
+
ListResponseOperatorPosition.Object_ = {
|
|
9
|
+
List: "list",
|
|
10
|
+
};
|
|
11
|
+
})(ListResponseOperatorPosition || (exports.ListResponseOperatorPosition = ListResponseOperatorPosition = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as NizamCarrier from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Envelope for paginated list responses (Stripe-style cursor pagination).
|
|
4
|
+
*/
|
|
5
|
+
export interface ListResponsePosition {
|
|
6
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
7
|
+
object?: ListResponsePosition.Object_ | undefined;
|
|
8
|
+
/** Page of resources. Empty array when there are no matches. */
|
|
9
|
+
data?: NizamCarrier.Position[] | undefined;
|
|
10
|
+
/** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
|
|
11
|
+
has_more?: boolean | undefined;
|
|
12
|
+
/** True when earlier pages exist; pass `prev_cursor` as `?ending_before=` to fetch the previous page. */
|
|
13
|
+
has_previous?: boolean | undefined;
|
|
14
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
15
|
+
next_cursor?: string | undefined;
|
|
16
|
+
/** Opaque cursor for the previous page. `null` on the first page. */
|
|
17
|
+
prev_cursor?: string | undefined;
|
|
18
|
+
/** Page size that produced this response. */
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace ListResponsePosition {
|
|
22
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
23
|
+
const Object_: {
|
|
24
|
+
readonly List: "list";
|
|
25
|
+
};
|
|
26
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ListResponsePosition = void 0;
|
|
5
|
+
var ListResponsePosition;
|
|
6
|
+
(function (ListResponsePosition) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
8
|
+
ListResponsePosition.Object_ = {
|
|
9
|
+
List: "list",
|
|
10
|
+
};
|
|
11
|
+
})(ListResponsePosition || (exports.ListResponsePosition = ListResponsePosition = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A short-lived MQTT publish credential for the position ingest broker.
|
|
3
|
+
*/
|
|
4
|
+
export interface MqttToken {
|
|
5
|
+
/** JWT to present as the MQTT CONNECT password. The CONNECT username must be the operator id embedded in the token's operator_id claim. */
|
|
6
|
+
token?: string | undefined;
|
|
7
|
+
/** Seconds until the token expires. Re-mint before this elapses to stay connected. */
|
|
8
|
+
expires_in?: number | undefined;
|
|
9
|
+
/** The only topic this credential may publish to: nizam/{organizationId}/operators/{operatorId}/location. */
|
|
10
|
+
topic?: string | undefined;
|
|
11
|
+
object?: string | undefined;
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The current position of one operator.
|
|
3
|
+
*/
|
|
4
|
+
export interface OperatorPosition {
|
|
5
|
+
/** Operator id. */
|
|
6
|
+
operator_id?: string | undefined;
|
|
7
|
+
/** Latitude (WGS84). */
|
|
8
|
+
lat?: number | undefined;
|
|
9
|
+
/** Longitude (WGS84). */
|
|
10
|
+
lng?: number | undefined;
|
|
11
|
+
/** Direction of travel, compass degrees [0,360). */
|
|
12
|
+
heading?: number | undefined;
|
|
13
|
+
/** Course over ground, compass degrees [0,360). */
|
|
14
|
+
bearing?: number | undefined;
|
|
15
|
+
/** Ground speed, km/h. */
|
|
16
|
+
speed?: number | undefined;
|
|
17
|
+
/** Altitude above the WGS84 ellipsoid, metres. */
|
|
18
|
+
altitude?: number | undefined;
|
|
19
|
+
/** Device-time of the fix. */
|
|
20
|
+
captured_at?: string | undefined;
|
|
21
|
+
object?: OperatorPosition.Object_ | undefined;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace OperatorPosition {
|
|
24
|
+
const Object_: {
|
|
25
|
+
readonly OperatorPosition: "operator_position";
|
|
26
|
+
};
|
|
27
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
28
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.OperatorPosition = void 0;
|
|
5
|
+
var OperatorPosition;
|
|
6
|
+
(function (OperatorPosition) {
|
|
7
|
+
OperatorPosition.Object_ = {
|
|
8
|
+
OperatorPosition: "operator_position",
|
|
9
|
+
};
|
|
10
|
+
})(OperatorPosition || (exports.OperatorPosition = OperatorPosition = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One recorded GPS position of an operator.
|
|
3
|
+
*/
|
|
4
|
+
export interface Position {
|
|
5
|
+
/** Position id. */
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
/** Operator the fix belongs to. */
|
|
8
|
+
operator_id?: string | undefined;
|
|
9
|
+
/** Latitude (WGS84). */
|
|
10
|
+
lat?: number | undefined;
|
|
11
|
+
/** Longitude (WGS84). */
|
|
12
|
+
lng?: number | undefined;
|
|
13
|
+
/** Direction of travel, compass degrees [0,360). */
|
|
14
|
+
heading?: number | undefined;
|
|
15
|
+
/** Course over ground toward the destination, compass degrees [0,360). */
|
|
16
|
+
bearing?: number | undefined;
|
|
17
|
+
/** Ground speed, km/h. */
|
|
18
|
+
speed?: number | undefined;
|
|
19
|
+
/** Altitude above the WGS84 ellipsoid, metres. */
|
|
20
|
+
altitude?: number | undefined;
|
|
21
|
+
/** Device-time the fix was captured (authoritative). */
|
|
22
|
+
recorded_at?: string | undefined;
|
|
23
|
+
object?: Position.Object_ | undefined;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace Position {
|
|
26
|
+
const Object_: {
|
|
27
|
+
readonly Position: "position";
|
|
28
|
+
};
|
|
29
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
30
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Position = void 0;
|
|
5
|
+
var Position;
|
|
6
|
+
(function (Position) {
|
|
7
|
+
Position.Object_ = {
|
|
8
|
+
Position: "position",
|
|
9
|
+
};
|
|
10
|
+
})(Position || (exports.Position = Position = {}));
|
|
@@ -16,6 +16,7 @@ export * from "./CreateOperatorRequest.js";
|
|
|
16
16
|
export * from "./CreateOrganizationRequest.js";
|
|
17
17
|
export * from "./CreateTeleoperatedOperatorRequest.js";
|
|
18
18
|
export * from "./Currency.js";
|
|
19
|
+
export * from "./HeatmapCell.js";
|
|
19
20
|
export * from "./InternalUserUpdateRequest.js";
|
|
20
21
|
export * from "./Invite.js";
|
|
21
22
|
export * from "./InviteUserRequest.js";
|
|
@@ -27,18 +28,24 @@ export * from "./ListResponseAssetListItem.js";
|
|
|
27
28
|
export * from "./ListResponseBusinessCategory.js";
|
|
28
29
|
export * from "./ListResponseCountry.js";
|
|
29
30
|
export * from "./ListResponseCurrency.js";
|
|
31
|
+
export * from "./ListResponseHeatmapCell.js";
|
|
30
32
|
export * from "./ListResponseJob.js";
|
|
31
33
|
export * from "./ListResponseLanguage.js";
|
|
32
34
|
export * from "./ListResponseMembership.js";
|
|
35
|
+
export * from "./ListResponseOperatorPosition.js";
|
|
33
36
|
export * from "./ListResponseOrganization.js";
|
|
37
|
+
export * from "./ListResponsePosition.js";
|
|
34
38
|
export * from "./ListResponseTimezone.js";
|
|
35
39
|
export * from "./ListResponseUserResource.js";
|
|
36
40
|
export * from "./Membership.js";
|
|
37
41
|
export * from "./MembershipChoice.js";
|
|
38
42
|
export * from "./MembershipDriftResponse.js";
|
|
43
|
+
export * from "./MqttToken.js";
|
|
39
44
|
export * from "./OpenAssignmentRequest.js";
|
|
40
45
|
export * from "./Operator.js";
|
|
46
|
+
export * from "./OperatorPosition.js";
|
|
41
47
|
export * from "./Organization.js";
|
|
48
|
+
export * from "./Position.js";
|
|
42
49
|
export * from "./ProblemDetail.js";
|
|
43
50
|
export * from "./RealtimeTicket.js";
|
|
44
51
|
export * from "./ReconcileResponse.js";
|
package/dist/api/types/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __exportStar(require("./CreateOperatorRequest.js"), exports);
|
|
|
32
32
|
__exportStar(require("./CreateOrganizationRequest.js"), exports);
|
|
33
33
|
__exportStar(require("./CreateTeleoperatedOperatorRequest.js"), exports);
|
|
34
34
|
__exportStar(require("./Currency.js"), exports);
|
|
35
|
+
__exportStar(require("./HeatmapCell.js"), exports);
|
|
35
36
|
__exportStar(require("./InternalUserUpdateRequest.js"), exports);
|
|
36
37
|
__exportStar(require("./Invite.js"), exports);
|
|
37
38
|
__exportStar(require("./InviteUserRequest.js"), exports);
|
|
@@ -43,18 +44,24 @@ __exportStar(require("./ListResponseAssetListItem.js"), exports);
|
|
|
43
44
|
__exportStar(require("./ListResponseBusinessCategory.js"), exports);
|
|
44
45
|
__exportStar(require("./ListResponseCountry.js"), exports);
|
|
45
46
|
__exportStar(require("./ListResponseCurrency.js"), exports);
|
|
47
|
+
__exportStar(require("./ListResponseHeatmapCell.js"), exports);
|
|
46
48
|
__exportStar(require("./ListResponseJob.js"), exports);
|
|
47
49
|
__exportStar(require("./ListResponseLanguage.js"), exports);
|
|
48
50
|
__exportStar(require("./ListResponseMembership.js"), exports);
|
|
51
|
+
__exportStar(require("./ListResponseOperatorPosition.js"), exports);
|
|
49
52
|
__exportStar(require("./ListResponseOrganization.js"), exports);
|
|
53
|
+
__exportStar(require("./ListResponsePosition.js"), exports);
|
|
50
54
|
__exportStar(require("./ListResponseTimezone.js"), exports);
|
|
51
55
|
__exportStar(require("./ListResponseUserResource.js"), exports);
|
|
52
56
|
__exportStar(require("./Membership.js"), exports);
|
|
53
57
|
__exportStar(require("./MembershipChoice.js"), exports);
|
|
54
58
|
__exportStar(require("./MembershipDriftResponse.js"), exports);
|
|
59
|
+
__exportStar(require("./MqttToken.js"), exports);
|
|
55
60
|
__exportStar(require("./OpenAssignmentRequest.js"), exports);
|
|
56
61
|
__exportStar(require("./Operator.js"), exports);
|
|
62
|
+
__exportStar(require("./OperatorPosition.js"), exports);
|
|
57
63
|
__exportStar(require("./Organization.js"), exports);
|
|
64
|
+
__exportStar(require("./Position.js"), exports);
|
|
58
65
|
__exportStar(require("./ProblemDetail.js"), exports);
|
|
59
66
|
__exportStar(require("./RealtimeTicket.js"), exports);
|
|
60
67
|
__exportStar(require("./ReconcileResponse.js"), exports);
|