@nizam-os/carrier-sdk 2.5.1 → 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/BulkJobSubmission.d.ts +15 -0
- package/dist/api/types/BulkJobSubmission.js +10 -0
- package/dist/api/types/HeatmapCell.d.ts +18 -0
- package/dist/api/types/HeatmapCell.js +10 -0
- package/dist/api/types/Job.d.ts +66 -0
- package/dist/api/types/Job.js +24 -0
- package/dist/api/types/JobSubmission.d.ts +14 -0
- package/dist/api/types/JobSubmission.js +10 -0
- package/dist/api/types/ListResponseHeatmapCell.d.ts +27 -0
- package/dist/api/types/ListResponseHeatmapCell.js +11 -0
- package/dist/api/types/ListResponseJob.d.ts +27 -0
- package/dist/api/types/ListResponseJob.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 +11 -0
- package/dist/api/types/index.js +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Acknowledgement of a bulk admin action that fanned out one job per work item.
|
|
3
|
+
*/
|
|
4
|
+
export interface BulkJobSubmission {
|
|
5
|
+
job_ids?: string[] | undefined;
|
|
6
|
+
/** Number of jobs created (one per matched service account). */
|
|
7
|
+
count?: number | undefined;
|
|
8
|
+
object?: BulkJobSubmission.Object_ | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace BulkJobSubmission {
|
|
11
|
+
const Object_: {
|
|
12
|
+
readonly BulkJobSubmission: "bulk_job_submission";
|
|
13
|
+
};
|
|
14
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
15
|
+
}
|
|
@@ -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.BulkJobSubmission = void 0;
|
|
5
|
+
var BulkJobSubmission;
|
|
6
|
+
(function (BulkJobSubmission) {
|
|
7
|
+
BulkJobSubmission.Object_ = {
|
|
8
|
+
BulkJobSubmission: "bulk_job_submission",
|
|
9
|
+
};
|
|
10
|
+
})(BulkJobSubmission || (exports.BulkJobSubmission = BulkJobSubmission = {}));
|
|
@@ -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,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A long-running, retryable, operator-visible unit of work — bulk imports, exports, backfills, cache rebuilds. The job row is the persistent handle; the executing engine (Temporal workflow or lease worker, declared per kind) reports progress into it. Cancellation is cooperative: already-running work continues until the engine's next checkpoint.
|
|
3
|
+
*/
|
|
4
|
+
export interface Job {
|
|
5
|
+
/** Stable job id. */
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
/** Owning organization. */
|
|
8
|
+
organization_id?: string | undefined;
|
|
9
|
+
/** What kind of work this job performs; the kind also fixes the executing engine. */
|
|
10
|
+
kind?: Job.Kind | undefined;
|
|
11
|
+
/** Lifecycle status. Terminal states are `completed`, `failed`, `cancelled`. */
|
|
12
|
+
status?: Job.Status | undefined;
|
|
13
|
+
/** User who submitted the job. Null only if that user was since deleted. */
|
|
14
|
+
requested_by_id?: string | undefined;
|
|
15
|
+
/** Input handle the job consumes (kind-specific), e.g. an uploaded import file. */
|
|
16
|
+
source_uri?: string | undefined;
|
|
17
|
+
/** Artifact produced by a completed job (kind-specific), e.g. a result report. */
|
|
18
|
+
report_uri?: string | undefined;
|
|
19
|
+
/** Total work items, once the engine has sized the work. Null while unknown. */
|
|
20
|
+
rows_total?: number | undefined;
|
|
21
|
+
/** Work items processed so far (monotonic). */
|
|
22
|
+
rows_processed?: number | undefined;
|
|
23
|
+
/** Work items that failed so far (monotonic). */
|
|
24
|
+
rows_failed?: number | undefined;
|
|
25
|
+
/** Operator-facing failure reason. Set only when status is `failed`. */
|
|
26
|
+
error_summary?: string | undefined;
|
|
27
|
+
/** Temporal workflow id (Temporal-engine kinds only) — cross-reference into the Temporal UI. */
|
|
28
|
+
workflow_id?: string | undefined;
|
|
29
|
+
/** Temporal run id of the latest attempt (changes across workflow retries). */
|
|
30
|
+
run_id?: string | undefined;
|
|
31
|
+
/** Engine execution attempts spent so far. */
|
|
32
|
+
attempt_count?: number | undefined;
|
|
33
|
+
/** Retry budget: a failed job with attempt_count >= max_attempts is dead-lettered. */
|
|
34
|
+
max_attempts?: number | undefined;
|
|
35
|
+
/** When the first engine attempt started. Null while pending (and for jobs cancelled before starting). */
|
|
36
|
+
started_at?: string | undefined;
|
|
37
|
+
/** When the job reached a terminal status. */
|
|
38
|
+
finished_at?: string | undefined;
|
|
39
|
+
/** Submission time. */
|
|
40
|
+
created_at?: string | undefined;
|
|
41
|
+
/** Last state/progress change. */
|
|
42
|
+
updated_at?: string | undefined;
|
|
43
|
+
object?: Job.Object_ | undefined;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace Job {
|
|
46
|
+
/** What kind of work this job performs; the kind also fixes the executing engine. */
|
|
47
|
+
const Kind: {
|
|
48
|
+
readonly MembershipCacheRebuild: "membership_cache_rebuild";
|
|
49
|
+
readonly ServiceAccountApiKeyRegeneration: "service_account_api_key_regeneration";
|
|
50
|
+
};
|
|
51
|
+
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
52
|
+
/** Lifecycle status. Terminal states are `completed`, `failed`, `cancelled`. */
|
|
53
|
+
const Status: {
|
|
54
|
+
readonly Pending: "pending";
|
|
55
|
+
readonly Running: "running";
|
|
56
|
+
readonly Cancelling: "cancelling";
|
|
57
|
+
readonly Completed: "completed";
|
|
58
|
+
readonly Failed: "failed";
|
|
59
|
+
readonly Cancelled: "cancelled";
|
|
60
|
+
};
|
|
61
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
62
|
+
const Object_: {
|
|
63
|
+
readonly Job: "job";
|
|
64
|
+
};
|
|
65
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
66
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Job = void 0;
|
|
5
|
+
var Job;
|
|
6
|
+
(function (Job) {
|
|
7
|
+
/** What kind of work this job performs; the kind also fixes the executing engine. */
|
|
8
|
+
Job.Kind = {
|
|
9
|
+
MembershipCacheRebuild: "membership_cache_rebuild",
|
|
10
|
+
ServiceAccountApiKeyRegeneration: "service_account_api_key_regeneration",
|
|
11
|
+
};
|
|
12
|
+
/** Lifecycle status. Terminal states are `completed`, `failed`, `cancelled`. */
|
|
13
|
+
Job.Status = {
|
|
14
|
+
Pending: "pending",
|
|
15
|
+
Running: "running",
|
|
16
|
+
Cancelling: "cancelling",
|
|
17
|
+
Completed: "completed",
|
|
18
|
+
Failed: "failed",
|
|
19
|
+
Cancelled: "cancelled",
|
|
20
|
+
};
|
|
21
|
+
Job.Object_ = {
|
|
22
|
+
Job: "job",
|
|
23
|
+
};
|
|
24
|
+
})(Job || (exports.Job = Job = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Acknowledgement that a job was submitted to its engine.
|
|
3
|
+
*/
|
|
4
|
+
export interface JobSubmission {
|
|
5
|
+
/** The created job — poll/cancel it via /v1/jobs/{id}. */
|
|
6
|
+
job_id?: string | undefined;
|
|
7
|
+
object?: JobSubmission.Object_ | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace JobSubmission {
|
|
10
|
+
const Object_: {
|
|
11
|
+
readonly JobSubmission: "job_submission";
|
|
12
|
+
};
|
|
13
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
14
|
+
}
|
|
@@ -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.JobSubmission = void 0;
|
|
5
|
+
var JobSubmission;
|
|
6
|
+
(function (JobSubmission) {
|
|
7
|
+
JobSubmission.Object_ = {
|
|
8
|
+
JobSubmission: "job_submission",
|
|
9
|
+
};
|
|
10
|
+
})(JobSubmission || (exports.JobSubmission = JobSubmission = {}));
|
|
@@ -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 ListResponseJob {
|
|
6
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
7
|
+
object?: ListResponseJob.Object_ | undefined;
|
|
8
|
+
/** Page of resources. Empty array when there are no matches. */
|
|
9
|
+
data?: NizamCarrier.Job[] | 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 ListResponseJob {
|
|
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.ListResponseJob = void 0;
|
|
5
|
+
var ListResponseJob;
|
|
6
|
+
(function (ListResponseJob) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
8
|
+
ListResponseJob.Object_ = {
|
|
9
|
+
List: "list",
|
|
10
|
+
};
|
|
11
|
+
})(ListResponseJob || (exports.ListResponseJob = ListResponseJob = {}));
|
|
@@ -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 = {}));
|
|
@@ -4,6 +4,7 @@ export * from "./ApiFieldError.js";
|
|
|
4
4
|
export * from "./Asset.js";
|
|
5
5
|
export * from "./AssetListItem.js";
|
|
6
6
|
export * from "./Assignment.js";
|
|
7
|
+
export * from "./BulkJobSubmission.js";
|
|
7
8
|
export * from "./BusinessCategory.js";
|
|
8
9
|
export * from "./CloseAssignmentRequest.js";
|
|
9
10
|
export * from "./Country.js";
|
|
@@ -15,26 +16,36 @@ export * from "./CreateOperatorRequest.js";
|
|
|
15
16
|
export * from "./CreateOrganizationRequest.js";
|
|
16
17
|
export * from "./CreateTeleoperatedOperatorRequest.js";
|
|
17
18
|
export * from "./Currency.js";
|
|
19
|
+
export * from "./HeatmapCell.js";
|
|
18
20
|
export * from "./InternalUserUpdateRequest.js";
|
|
19
21
|
export * from "./Invite.js";
|
|
20
22
|
export * from "./InviteUserRequest.js";
|
|
23
|
+
export * from "./Job.js";
|
|
24
|
+
export * from "./JobSubmission.js";
|
|
21
25
|
export * from "./Language.js";
|
|
22
26
|
export * from "./ListResponseActivityResource.js";
|
|
23
27
|
export * from "./ListResponseAssetListItem.js";
|
|
24
28
|
export * from "./ListResponseBusinessCategory.js";
|
|
25
29
|
export * from "./ListResponseCountry.js";
|
|
26
30
|
export * from "./ListResponseCurrency.js";
|
|
31
|
+
export * from "./ListResponseHeatmapCell.js";
|
|
32
|
+
export * from "./ListResponseJob.js";
|
|
27
33
|
export * from "./ListResponseLanguage.js";
|
|
28
34
|
export * from "./ListResponseMembership.js";
|
|
35
|
+
export * from "./ListResponseOperatorPosition.js";
|
|
29
36
|
export * from "./ListResponseOrganization.js";
|
|
37
|
+
export * from "./ListResponsePosition.js";
|
|
30
38
|
export * from "./ListResponseTimezone.js";
|
|
31
39
|
export * from "./ListResponseUserResource.js";
|
|
32
40
|
export * from "./Membership.js";
|
|
33
41
|
export * from "./MembershipChoice.js";
|
|
34
42
|
export * from "./MembershipDriftResponse.js";
|
|
43
|
+
export * from "./MqttToken.js";
|
|
35
44
|
export * from "./OpenAssignmentRequest.js";
|
|
36
45
|
export * from "./Operator.js";
|
|
46
|
+
export * from "./OperatorPosition.js";
|
|
37
47
|
export * from "./Organization.js";
|
|
48
|
+
export * from "./Position.js";
|
|
38
49
|
export * from "./ProblemDetail.js";
|
|
39
50
|
export * from "./RealtimeTicket.js";
|
|
40
51
|
export * from "./ReconcileResponse.js";
|
package/dist/api/types/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./ApiFieldError.js"), exports);
|
|
|
20
20
|
__exportStar(require("./Asset.js"), exports);
|
|
21
21
|
__exportStar(require("./AssetListItem.js"), exports);
|
|
22
22
|
__exportStar(require("./Assignment.js"), exports);
|
|
23
|
+
__exportStar(require("./BulkJobSubmission.js"), exports);
|
|
23
24
|
__exportStar(require("./BusinessCategory.js"), exports);
|
|
24
25
|
__exportStar(require("./CloseAssignmentRequest.js"), exports);
|
|
25
26
|
__exportStar(require("./Country.js"), exports);
|
|
@@ -31,26 +32,36 @@ __exportStar(require("./CreateOperatorRequest.js"), exports);
|
|
|
31
32
|
__exportStar(require("./CreateOrganizationRequest.js"), exports);
|
|
32
33
|
__exportStar(require("./CreateTeleoperatedOperatorRequest.js"), exports);
|
|
33
34
|
__exportStar(require("./Currency.js"), exports);
|
|
35
|
+
__exportStar(require("./HeatmapCell.js"), exports);
|
|
34
36
|
__exportStar(require("./InternalUserUpdateRequest.js"), exports);
|
|
35
37
|
__exportStar(require("./Invite.js"), exports);
|
|
36
38
|
__exportStar(require("./InviteUserRequest.js"), exports);
|
|
39
|
+
__exportStar(require("./Job.js"), exports);
|
|
40
|
+
__exportStar(require("./JobSubmission.js"), exports);
|
|
37
41
|
__exportStar(require("./Language.js"), exports);
|
|
38
42
|
__exportStar(require("./ListResponseActivityResource.js"), exports);
|
|
39
43
|
__exportStar(require("./ListResponseAssetListItem.js"), exports);
|
|
40
44
|
__exportStar(require("./ListResponseBusinessCategory.js"), exports);
|
|
41
45
|
__exportStar(require("./ListResponseCountry.js"), exports);
|
|
42
46
|
__exportStar(require("./ListResponseCurrency.js"), exports);
|
|
47
|
+
__exportStar(require("./ListResponseHeatmapCell.js"), exports);
|
|
48
|
+
__exportStar(require("./ListResponseJob.js"), exports);
|
|
43
49
|
__exportStar(require("./ListResponseLanguage.js"), exports);
|
|
44
50
|
__exportStar(require("./ListResponseMembership.js"), exports);
|
|
51
|
+
__exportStar(require("./ListResponseOperatorPosition.js"), exports);
|
|
45
52
|
__exportStar(require("./ListResponseOrganization.js"), exports);
|
|
53
|
+
__exportStar(require("./ListResponsePosition.js"), exports);
|
|
46
54
|
__exportStar(require("./ListResponseTimezone.js"), exports);
|
|
47
55
|
__exportStar(require("./ListResponseUserResource.js"), exports);
|
|
48
56
|
__exportStar(require("./Membership.js"), exports);
|
|
49
57
|
__exportStar(require("./MembershipChoice.js"), exports);
|
|
50
58
|
__exportStar(require("./MembershipDriftResponse.js"), exports);
|
|
59
|
+
__exportStar(require("./MqttToken.js"), exports);
|
|
51
60
|
__exportStar(require("./OpenAssignmentRequest.js"), exports);
|
|
52
61
|
__exportStar(require("./Operator.js"), exports);
|
|
62
|
+
__exportStar(require("./OperatorPosition.js"), exports);
|
|
53
63
|
__exportStar(require("./Organization.js"), exports);
|
|
64
|
+
__exportStar(require("./Position.js"), exports);
|
|
54
65
|
__exportStar(require("./ProblemDetail.js"), exports);
|
|
55
66
|
__exportStar(require("./RealtimeTicket.js"), exports);
|
|
56
67
|
__exportStar(require("./ReconcileResponse.js"), exports);
|