@iveri/contracts 0.30.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/conduit/endpoint.type.d.ts +9 -0
- package/dist/cjs/api/conduit/endpoint.type.d.ts.map +1 -1
- package/dist/cjs/api/mobility/mobility-dispatch.type.d.ts +25 -3
- package/dist/cjs/api/mobility/mobility-dispatch.type.d.ts.map +1 -1
- package/dist/esm/api/conduit/endpoint.type.d.ts +9 -0
- package/dist/esm/api/conduit/endpoint.type.d.ts.map +1 -1
- package/dist/esm/api/mobility/mobility-dispatch.type.d.ts +25 -3
- package/dist/esm/api/mobility/mobility-dispatch.type.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -62,5 +62,14 @@ export interface UpdateEndpointBody {
|
|
|
62
62
|
export interface GetEndpointsQuery {
|
|
63
63
|
limit?: number;
|
|
64
64
|
offset?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Case-insensitive partial match on the endpoint name.
|
|
67
|
+
*
|
|
68
|
+
* The panel renders endpoints as a filter dropdown, which takes one page — so past that page a
|
|
69
|
+
* workspace cannot select the rest at all, and a `<select>` holding the first hundred names
|
|
70
|
+
* looks exactly like one holding every name. `%` and `_` are matched literally rather than as
|
|
71
|
+
* wildcards, so a search matches what the operator typed.
|
|
72
|
+
*/
|
|
73
|
+
search?: string;
|
|
65
74
|
}
|
|
66
75
|
//# sourceMappingURL=endpoint.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint.type.d.ts","sourceRoot":"","sources":["../../../../src/api/conduit/endpoint.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,I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Aa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACjC,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/B,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACjC,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wCAAwC;AACxC,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IsoDateTime } from '../../type/iso-date-time.type.js';
|
|
2
|
+
import type { Nullable } from '../../type/nil.type.js';
|
|
2
3
|
import type { UUID } from '../../type/uuid.type.js';
|
|
3
4
|
import type { MobilityDispatchStatus } from './mobility-dispatch-status.enum.js';
|
|
4
5
|
import type { MobilityServiceType } from './mobility-service-type.enum.js';
|
|
@@ -13,15 +14,36 @@ export interface MobilityDispatch {
|
|
|
13
14
|
serviceType: MobilityServiceType;
|
|
14
15
|
subjectId: UUID;
|
|
15
16
|
status: MobilityDispatchStatus;
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* `null` once the dispatch is past Mobility's location retention window.
|
|
19
|
+
*
|
|
20
|
+
* **Nullable because it is redacted, not because it is optional** —
|
|
21
|
+
* `CreateMobilityDispatchBody` below still requires both, and a dispatch cannot exist without
|
|
22
|
+
* them. Mobility strips them from a terminal dispatch and keeps the row, because the
|
|
23
|
+
* assignment hanging off it is a worker's evidence of a job they did.
|
|
24
|
+
*
|
|
25
|
+
* This is the half of the products' own retention promise that lives here: Taxi and Delivery
|
|
26
|
+
* expire a ride's and a job's coordinates, and **the pickup survived in this table keyed by
|
|
27
|
+
* the same `subjectId`** until this window existed. A reader that holds this value past a
|
|
28
|
+
* product's window is holding what that product has already deleted.
|
|
29
|
+
*
|
|
30
|
+
* Both move together, so a consumer that can render one can render both.
|
|
31
|
+
*/
|
|
32
|
+
pickupLatitude: Nullable<number>;
|
|
33
|
+
pickupLongitude: Nullable<number>;
|
|
18
34
|
expiresAt: IsoDateTime;
|
|
19
35
|
/** Version of the dispatch state machine, not a worker or location version. */
|
|
20
36
|
version: number;
|
|
21
37
|
createdAt: IsoDateTime;
|
|
22
38
|
updatedAt: IsoDateTime;
|
|
23
39
|
}
|
|
24
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* `POST /api/v1/dispatches`; retry safety is supplied by the `Idempotency-Key` header.
|
|
42
|
+
*
|
|
43
|
+
* The two coordinates are **required here and nullable on `MobilityDispatch`**, deliberately: the
|
|
44
|
+
* request and the response are the same fields with opposite nullability, and widening this one so
|
|
45
|
+
* the two could share a type would let a caller submit a dispatch with nowhere to search from.
|
|
46
|
+
*/
|
|
25
47
|
export interface CreateMobilityDispatchBody {
|
|
26
48
|
serviceType: MobilityServiceType;
|
|
27
49
|
subjectId: UUID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobility-dispatch.type.d.ts","sourceRoot":"","sources":["../../../../src/api/mobility/mobility-dispatch.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAi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BAA8B;IAC3C,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -62,5 +62,14 @@ export interface UpdateEndpointBody {
|
|
|
62
62
|
export interface GetEndpointsQuery {
|
|
63
63
|
limit?: number;
|
|
64
64
|
offset?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Case-insensitive partial match on the endpoint name.
|
|
67
|
+
*
|
|
68
|
+
* The panel renders endpoints as a filter dropdown, which takes one page — so past that page a
|
|
69
|
+
* workspace cannot select the rest at all, and a `<select>` holding the first hundred names
|
|
70
|
+
* looks exactly like one holding every name. `%` and `_` are matched literally rather than as
|
|
71
|
+
* wildcards, so a search matches what the operator typed.
|
|
72
|
+
*/
|
|
73
|
+
search?: string;
|
|
65
74
|
}
|
|
66
75
|
//# sourceMappingURL=endpoint.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint.type.d.ts","sourceRoot":"","sources":["../../../../src/api/conduit/endpoint.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,IAAI,CAAC;IACT,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAE9B,0CAA0C;IAC1C,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAE9B,mFAAmF;IACnF,gBAAgB,EAAE,OAAO,CAAC;IAE1B,sDAAs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AQ,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wCAAwC;AACxC,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IsoDateTime } from '../../type/iso-date-time.type.js';
|
|
2
|
+
import type { Nullable } from '../../type/nil.type.js';
|
|
2
3
|
import type { UUID } from '../../type/uuid.type.js';
|
|
3
4
|
import type { MobilityDispatchStatus } from './mobility-dispatch-status.enum.js';
|
|
4
5
|
import type { MobilityServiceType } from './mobility-service-type.enum.js';
|
|
@@ -13,15 +14,36 @@ export interface MobilityDispatch {
|
|
|
13
14
|
serviceType: MobilityServiceType;
|
|
14
15
|
subjectId: UUID;
|
|
15
16
|
status: MobilityDispatchStatus;
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* `null` once the dispatch is past Mobility's location retention window.
|
|
19
|
+
*
|
|
20
|
+
* **Nullable because it is redacted, not because it is optional** —
|
|
21
|
+
* `CreateMobilityDispatchBody` below still requires both, and a dispatch cannot exist without
|
|
22
|
+
* them. Mobility strips them from a terminal dispatch and keeps the row, because the
|
|
23
|
+
* assignment hanging off it is a worker's evidence of a job they did.
|
|
24
|
+
*
|
|
25
|
+
* This is the half of the products' own retention promise that lives here: Taxi and Delivery
|
|
26
|
+
* expire a ride's and a job's coordinates, and **the pickup survived in this table keyed by
|
|
27
|
+
* the same `subjectId`** until this window existed. A reader that holds this value past a
|
|
28
|
+
* product's window is holding what that product has already deleted.
|
|
29
|
+
*
|
|
30
|
+
* Both move together, so a consumer that can render one can render both.
|
|
31
|
+
*/
|
|
32
|
+
pickupLatitude: Nullable<number>;
|
|
33
|
+
pickupLongitude: Nullable<number>;
|
|
18
34
|
expiresAt: IsoDateTime;
|
|
19
35
|
/** Version of the dispatch state machine, not a worker or location version. */
|
|
20
36
|
version: number;
|
|
21
37
|
createdAt: IsoDateTime;
|
|
22
38
|
updatedAt: IsoDateTime;
|
|
23
39
|
}
|
|
24
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* `POST /api/v1/dispatches`; retry safety is supplied by the `Idempotency-Key` header.
|
|
42
|
+
*
|
|
43
|
+
* The two coordinates are **required here and nullable on `MobilityDispatch`**, deliberately: the
|
|
44
|
+
* request and the response are the same fields with opposite nullability, and widening this one so
|
|
45
|
+
* the two could share a type would let a caller submit a dispatch with nowhere to search from.
|
|
46
|
+
*/
|
|
25
47
|
export interface CreateMobilityDispatchBody {
|
|
26
48
|
serviceType: MobilityServiceType;
|
|
27
49
|
subjectId: UUID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobility-dispatch.type.d.ts","sourceRoot":"","sources":["../../../../src/api/mobility/mobility-dispatch.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAE3E;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,IAAI,CAAC;IACT,WAAW,EAAE,mBAAmB,CAAC;IACjC,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,EAAE,sBAAsB,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"mobility-dispatch.type.d.ts","sourceRoot":"","sources":["../../../../src/api/mobility/mobility-dispatch.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,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