@jsm-mit/tigi-sharded-package 0.16.0 → 0.18.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.
@@ -33,15 +33,29 @@ type CarrierKind = variant {
33
33
  other : text;
34
34
  };
35
35
 
36
+ // D-42 (DRIVER-FLEET): the colour of a car as a code; the fronts translate it.
37
+ type CarColour = variant {
38
+ white; black; silver; grey; blue; navy; red; maroon; green; yellow; orange; brown;
39
+ beige; gold; purple; other;
40
+ };
41
+
42
+ // D-42: the car apart — the offer shows each field (WO-N13).
43
+ type CarInfo = record {
44
+ name : text; // make and model, ≤ 120 characters
45
+ plate : text; // ≤ 16 characters
46
+ colour : opt CarColour;
47
+ };
48
+
36
49
  // What the network shows of a driver in an offer (public). Photos are served by the
37
50
  // driver canister itself over HTTP: `/photos/<driverKey>/<index>` (U-11).
38
51
  type DriverCard = record {
39
52
  driverKey : DriverKey;
40
53
  name : text;
41
54
  carrierKind : CarrierKind;
42
- carDescription : text; // e.g. "Toyota Corolla, srebrna"
55
+ carDescription : text; // e.g. "Toyota Corolla · WX 12345" (also for fronts without `car`)
43
56
  carPhotoCount : nat8; // ≤ 6
44
57
  hasLicencePhoto : bool;
58
+ car : opt CarInfo; // D-42; none from a driver canister before the fleet
45
59
  };
46
60
 
47
61
  type ProtocolError = variant {
@@ -6,6 +6,33 @@ import type { IDL } from '@icp-sdk/core/candid';
6
6
  * P-22: a booking of a ride at a chosen time (the driver's "Jadę" / giving it up).
7
7
  */
8
8
  export interface BookingRef { 'requestId' : RequestId, 'driverKey' : DriverKey }
9
+ /**
10
+ * D-42 (DRIVER-FLEET): the colour of a car as a code; the fronts translate it.
11
+ */
12
+ export type CarColour = { 'red' : null } |
13
+ { 'other' : null } |
14
+ { 'blue' : null } |
15
+ { 'gold' : null } |
16
+ { 'grey' : null } |
17
+ { 'orange' : null } |
18
+ { 'navy' : null } |
19
+ { 'purple' : null } |
20
+ { 'green' : null } |
21
+ { 'beige' : null } |
22
+ { 'black' : null } |
23
+ { 'silver' : null } |
24
+ { 'brown' : null } |
25
+ { 'maroon' : null } |
26
+ { 'white' : null } |
27
+ { 'yellow' : null };
28
+ /**
29
+ * D-42: the car apart — the offer shows each field (WO-N13).
30
+ */
31
+ export interface CarInfo {
32
+ 'name' : string,
33
+ 'plate' : string,
34
+ 'colour' : [] | [CarColour],
35
+ }
9
36
  export interface CardPaymentArgs {
10
37
  'returnUrl' : string,
11
38
  'requestId' : RequestId,
@@ -38,6 +65,7 @@ export type CloseReason = { 'offerRejected' : null } |
38
65
  * driver canister itself over HTTP: `/photos/<driverKey>/<index>` (U-11).
39
66
  */
40
67
  export interface DriverCard {
68
+ 'car' : [] | [CarInfo],
41
69
  'carDescription' : string,
42
70
  'name' : string,
43
71
  'carrierKind' : CarrierKind,
@@ -42,6 +42,29 @@ export const idlFactory = ({ IDL }) => {
42
42
  'cancelledByDriver' : IDL.Record({ 'reason' : IDL.Text }),
43
43
  'inProgress' : IDL.Null,
44
44
  });
45
+ const CarColour = IDL.Variant({
46
+ 'red' : IDL.Null,
47
+ 'other' : IDL.Null,
48
+ 'blue' : IDL.Null,
49
+ 'gold' : IDL.Null,
50
+ 'grey' : IDL.Null,
51
+ 'orange' : IDL.Null,
52
+ 'navy' : IDL.Null,
53
+ 'purple' : IDL.Null,
54
+ 'green' : IDL.Null,
55
+ 'beige' : IDL.Null,
56
+ 'black' : IDL.Null,
57
+ 'silver' : IDL.Null,
58
+ 'brown' : IDL.Null,
59
+ 'maroon' : IDL.Null,
60
+ 'white' : IDL.Null,
61
+ 'yellow' : IDL.Null,
62
+ });
63
+ const CarInfo = IDL.Record({
64
+ 'name' : IDL.Text,
65
+ 'plate' : IDL.Text,
66
+ 'colour' : IDL.Opt(CarColour),
67
+ });
45
68
  const CarrierKind = IDL.Variant({
46
69
  'other' : IDL.Text,
47
70
  'taxi' : IDL.Null,
@@ -49,6 +72,7 @@ export const idlFactory = ({ IDL }) => {
49
72
  'privateDriver' : IDL.Null,
50
73
  });
51
74
  const DriverCard = IDL.Record({
75
+ 'car' : IDL.Opt(CarInfo),
52
76
  'carDescription' : IDL.Text,
53
77
  'name' : IDL.Text,
54
78
  'carrierKind' : CarrierKind,
@@ -1,4 +1,27 @@
1
1
  type CancelledByDriverStatus = record { reason : text };
2
+ // What the network shows of a driver in an offer (public). Photos are served by the driver
3
+ // canister itself over HTTP: `/photos/<driverKey>/<index>` (U-11).
4
+ // D-42 (DRIVER-FLEET): the colour of a car as a code; the fronts translate it.
5
+ type CarColour = variant {
6
+ red;
7
+ other;
8
+ blue;
9
+ gold;
10
+ grey;
11
+ orange;
12
+ navy;
13
+ purple;
14
+ green;
15
+ beige;
16
+ black;
17
+ silver;
18
+ brown;
19
+ maroon;
20
+ white;
21
+ yellow;
22
+ };
23
+ // D-42: the car apart — make and model, plate, colour (the offer shows each, WO-N13).
24
+ type CarInfo = record { name : text; plate : text; colour : opt CarColour };
2
25
  // `variant { ok : CardPaymentView; err : ProtocolError }`.
3
26
  type CardPaymentAnswer = variant { ok : CardPaymentView; err : ProtocolError };
4
27
  // P-20: `startCardPayment` — the rider's front gives the page Stripe sends the rider back to.
@@ -43,9 +66,9 @@ type CloseReason = variant {
43
66
  orderExpired;
44
67
  };
45
68
  type CompletedStatus = record { price : Money };
46
- // What the network shows of a driver in an offer (public). Photos are served by the driver
47
- // canister itself over HTTP: `/photos/<driverKey>/<index>` (U-11).
48
69
  type DriverCard = record {
70
+ // D-42: the car apart; none before the fleet.
71
+ car : opt CarInfo;
49
72
  carDescription : text;
50
73
  name : text;
51
74
  carrierKind : CarrierKind;
@@ -3,6 +3,35 @@ import type { ActorMethod } from '@icp-sdk/core/agent';
3
3
  import type { IDL } from '@icp-sdk/core/candid';
4
4
 
5
5
  export interface CancelledByDriverStatus { 'reason' : string }
6
+ /**
7
+ * What the network shows of a driver in an offer (public). Photos are served by the driver
8
+ * canister itself over HTTP: `/photos/<driverKey>/<index>` (U-11).
9
+ * D-42 (DRIVER-FLEET): the colour of a car as a code; the fronts translate it.
10
+ */
11
+ export type CarColour = { 'red' : null } |
12
+ { 'other' : null } |
13
+ { 'blue' : null } |
14
+ { 'gold' : null } |
15
+ { 'grey' : null } |
16
+ { 'orange' : null } |
17
+ { 'navy' : null } |
18
+ { 'purple' : null } |
19
+ { 'green' : null } |
20
+ { 'beige' : null } |
21
+ { 'black' : null } |
22
+ { 'silver' : null } |
23
+ { 'brown' : null } |
24
+ { 'maroon' : null } |
25
+ { 'white' : null } |
26
+ { 'yellow' : null };
27
+ /**
28
+ * D-42: the car apart — make and model, plate, colour (the offer shows each, WO-N13).
29
+ */
30
+ export interface CarInfo {
31
+ 'name' : string,
32
+ 'plate' : string,
33
+ 'colour' : [] | [CarColour],
34
+ }
6
35
  /**
7
36
  * `variant { ok : CardPaymentView; err : ProtocolError }`.
8
37
  */
@@ -82,11 +111,11 @@ export type CloseReason = {
82
111
  'orderExpired' : null
83
112
  };
84
113
  export interface CompletedStatus { 'price' : Money }
85
- /**
86
- * What the network shows of a driver in an offer (public). Photos are served by the driver
87
- * canister itself over HTTP: `/photos/<driverKey>/<index>` (U-11).
88
- */
89
114
  export interface DriverCard {
115
+ /**
116
+ * D-42: the car apart; none before the fleet.
117
+ */
118
+ 'car' : [] | [CarInfo],
90
119
  'carDescription' : string,
91
120
  'name' : string,
92
121
  'carrierKind' : CarrierKind,
@@ -74,6 +74,29 @@ export const idlFactory = ({ IDL }) => {
74
74
  'cancelledByDriver' : CancelledByDriverStatus,
75
75
  'inProgress' : IDL.Null,
76
76
  });
77
+ const CarColour = IDL.Variant({
78
+ 'red' : IDL.Null,
79
+ 'other' : IDL.Null,
80
+ 'blue' : IDL.Null,
81
+ 'gold' : IDL.Null,
82
+ 'grey' : IDL.Null,
83
+ 'orange' : IDL.Null,
84
+ 'navy' : IDL.Null,
85
+ 'purple' : IDL.Null,
86
+ 'green' : IDL.Null,
87
+ 'beige' : IDL.Null,
88
+ 'black' : IDL.Null,
89
+ 'silver' : IDL.Null,
90
+ 'brown' : IDL.Null,
91
+ 'maroon' : IDL.Null,
92
+ 'white' : IDL.Null,
93
+ 'yellow' : IDL.Null,
94
+ });
95
+ const CarInfo = IDL.Record({
96
+ 'name' : IDL.Text,
97
+ 'plate' : IDL.Text,
98
+ 'colour' : IDL.Opt(CarColour),
99
+ });
77
100
  const CarrierKind = IDL.Variant({
78
101
  'other' : IDL.Text,
79
102
  'taxi' : IDL.Null,
@@ -81,6 +104,7 @@ export const idlFactory = ({ IDL }) => {
81
104
  'privateDriver' : IDL.Null,
82
105
  });
83
106
  const DriverCard = IDL.Record({
107
+ 'car' : IDL.Opt(CarInfo),
84
108
  'carDescription' : IDL.Text,
85
109
  'name' : IDL.Text,
86
110
  'carrierKind' : CarrierKind,
@@ -132,6 +132,7 @@ type ScheduledStateView =
132
132
  variant {
133
133
  booked:
134
134
  record {
135
+ car: opt CarInfo;
135
136
  card: DriverCard;
136
137
  driverCanister: principal;
137
138
  driverKey: DriverKey;
@@ -292,7 +293,7 @@ type RequestId = text;
292
293
  type RegisterDriver =
293
294
  record {
294
295
  available: bool;
295
- card: DriverCard;
296
+ card: DriverCardIn;
296
297
  cardVersion: nat32;
297
298
  driverKey: DriverKey;
298
299
  freeAtNs: opt nat64;
@@ -301,7 +302,7 @@ type RegisterDriver =
301
302
  };
302
303
  type RegisterBase =
303
304
  record {
304
- card: DriverCard;
305
+ card: DriverCardIn;
305
306
  cardVersion: nat32;
306
307
  driverKey: DriverKey;
307
308
  geohash: Geohash;
@@ -364,6 +365,7 @@ type OrderAnswer =
364
365
  };
365
366
  type OfferView =
366
367
  record {
368
+ car: opt CarInfo;
367
369
  card: DriverCard;
368
370
  driverCanister: principal;
369
371
  driverKey: DriverKey;
@@ -460,6 +462,16 @@ type Error =
460
462
  logsJson: text;
461
463
  };
462
464
  type DriverKey = text;
465
+ type DriverCardIn =
466
+ record {
467
+ car: opt CarInfo;
468
+ carDescription: text;
469
+ carPhotoCount: nat8;
470
+ carrierKind: CarrierKind;
471
+ driverKey: DriverKey;
472
+ hasLicencePhoto: bool;
473
+ name: text;
474
+ };
463
475
  type DriverCard =
464
476
  record {
465
477
  carDescription: text;
@@ -553,6 +565,31 @@ type CarrierKind =
553
565
  rideHailing;
554
566
  taxi;
555
567
  };
568
+ type CarInfo =
569
+ record {
570
+ colour: opt CarColour;
571
+ name: text;
572
+ plate: text;
573
+ };
574
+ type CarColour =
575
+ variant {
576
+ beige;
577
+ black;
578
+ blue;
579
+ brown;
580
+ gold;
581
+ green;
582
+ grey;
583
+ maroon;
584
+ navy;
585
+ orange;
586
+ other;
587
+ purple;
588
+ red;
589
+ silver;
590
+ white;
591
+ yellow;
592
+ };
556
593
  type BookingRef =
557
594
  record {
558
595
  driverKey: DriverKey;
@@ -4,6 +4,27 @@ import type { IDL } from '@icp-sdk/core/candid';
4
4
 
5
5
  export interface AreaMap { 'entries' : Array<PrefixEntry>, 'version' : bigint }
6
6
  export interface BookingRef { 'requestId' : RequestId, 'driverKey' : DriverKey }
7
+ export type CarColour = { 'red' : null } |
8
+ { 'other' : null } |
9
+ { 'blue' : null } |
10
+ { 'gold' : null } |
11
+ { 'grey' : null } |
12
+ { 'orange' : null } |
13
+ { 'navy' : null } |
14
+ { 'purple' : null } |
15
+ { 'green' : null } |
16
+ { 'beige' : null } |
17
+ { 'black' : null } |
18
+ { 'silver' : null } |
19
+ { 'brown' : null } |
20
+ { 'maroon' : null } |
21
+ { 'white' : null } |
22
+ { 'yellow' : null };
23
+ export interface CarInfo {
24
+ 'name' : string,
25
+ 'plate' : string,
26
+ 'colour' : [] | [CarColour],
27
+ }
7
28
  export type CarrierKind = { 'other' : string } |
8
29
  { 'taxi' : null } |
9
30
  { 'rideHailing' : null } |
@@ -75,6 +96,15 @@ export interface DriverCard {
75
96
  'carPhotoCount' : number,
76
97
  'hasLicencePhoto' : boolean,
77
98
  }
99
+ export interface DriverCardIn {
100
+ 'car' : [] | [CarInfo],
101
+ 'carDescription' : string,
102
+ 'name' : string,
103
+ 'carrierKind' : CarrierKind,
104
+ 'driverKey' : DriverKey,
105
+ 'carPhotoCount' : number,
106
+ 'hasLicencePhoto' : boolean,
107
+ }
78
108
  export type DriverKey = string;
79
109
  export interface Error { 'details' : ErrorDetails, 'logsJson' : string }
80
110
  export type ErrorDetails = { 'InterCanisterConnectionError' : null } |
@@ -132,6 +162,7 @@ export interface OfferRef {
132
162
  'driverCanister' : Principal,
133
163
  }
134
164
  export interface OfferView {
165
+ 'car' : [] | [CarInfo],
135
166
  'freeAtNs' : [] | [bigint],
136
167
  'rideMeters' : number,
137
168
  'driverRating' : [] | [number],
@@ -184,14 +215,14 @@ export interface QuoteDecline {
184
215
  }
185
216
  export interface RateDriverArgs { 'requestId' : RequestId, 'stars' : number }
186
217
  export interface RegisterBase {
187
- 'card' : DriverCard,
218
+ 'card' : DriverCardIn,
188
219
  'cardVersion' : number,
189
220
  'geohash' : Geohash,
190
221
  'driverKey' : DriverKey,
191
222
  }
192
223
  export interface RegisterDriver {
193
224
  'freeAtNs' : [] | [bigint],
194
- 'card' : DriverCard,
225
+ 'card' : DriverCardIn,
195
226
  'cardVersion' : number,
196
227
  'geohash' : Geohash,
197
228
  'available' : boolean,
@@ -292,6 +323,7 @@ export type ScheduledStateView = { 'rescue' : { 'reason' : RescueReason } } |
292
323
  { 'started' : { 'driverKey' : DriverKey, 'driverCanister' : Principal } } |
293
324
  {
294
325
  'booked' : {
326
+ 'car' : [] | [CarInfo],
295
327
  'driverRating' : [] | [number],
296
328
  'card' : DriverCard,
297
329
  'driverKey' : DriverKey,
@@ -160,6 +160,29 @@ export const idlFactory = ({ IDL }) => {
160
160
  const Result_7 = IDL.Variant({ 'ok' : RouteLine, 'err' : Error });
161
161
  const PrefixCount = IDL.Record({ 'load' : IDL.Nat, 'prefix' : IDL.Text });
162
162
  const Result_6 = IDL.Variant({ 'ok' : IDL.Vec(PrefixCount), 'err' : Error });
163
+ const CarColour = IDL.Variant({
164
+ 'red' : IDL.Null,
165
+ 'other' : IDL.Null,
166
+ 'blue' : IDL.Null,
167
+ 'gold' : IDL.Null,
168
+ 'grey' : IDL.Null,
169
+ 'orange' : IDL.Null,
170
+ 'navy' : IDL.Null,
171
+ 'purple' : IDL.Null,
172
+ 'green' : IDL.Null,
173
+ 'beige' : IDL.Null,
174
+ 'black' : IDL.Null,
175
+ 'silver' : IDL.Null,
176
+ 'brown' : IDL.Null,
177
+ 'maroon' : IDL.Null,
178
+ 'white' : IDL.Null,
179
+ 'yellow' : IDL.Null,
180
+ });
181
+ const CarInfo = IDL.Record({
182
+ 'name' : IDL.Text,
183
+ 'plate' : IDL.Text,
184
+ 'colour' : IDL.Opt(CarColour),
185
+ });
163
186
  const CarrierKind = IDL.Variant({
164
187
  'other' : IDL.Text,
165
188
  'taxi' : IDL.Null,
@@ -177,6 +200,7 @@ export const idlFactory = ({ IDL }) => {
177
200
  const Money = IDL.Record({ 'currency' : IDL.Text, 'amount' : IDL.Nat64 });
178
201
  const Geo = IDL.Record({ 'lat' : IDL.Float64, 'lng' : IDL.Float64 });
179
202
  const OfferView = IDL.Record({
203
+ 'car' : IDL.Opt(CarInfo),
180
204
  'freeAtNs' : IDL.Opt(IDL.Nat64),
181
205
  'rideMeters' : IDL.Nat32,
182
206
  'driverRating' : IDL.Opt(IDL.Nat16),
@@ -241,6 +265,7 @@ export const idlFactory = ({ IDL }) => {
241
265
  'driverCanister' : IDL.Principal,
242
266
  }),
243
267
  'booked' : IDL.Record({
268
+ 'car' : IDL.Opt(CarInfo),
244
269
  'driverRating' : IDL.Opt(IDL.Nat16),
245
270
  'card' : DriverCard,
246
271
  'driverKey' : DriverKey,
@@ -306,16 +331,25 @@ export const idlFactory = ({ IDL }) => {
306
331
  'stars' : IDL.Nat8,
307
332
  'driverKey' : DriverKey,
308
333
  });
334
+ const DriverCardIn = IDL.Record({
335
+ 'car' : IDL.Opt(CarInfo),
336
+ 'carDescription' : IDL.Text,
337
+ 'name' : IDL.Text,
338
+ 'carrierKind' : CarrierKind,
339
+ 'driverKey' : DriverKey,
340
+ 'carPhotoCount' : IDL.Nat8,
341
+ 'hasLicencePhoto' : IDL.Bool,
342
+ });
309
343
  const Geohash = IDL.Text;
310
344
  const RegisterBase = IDL.Record({
311
- 'card' : DriverCard,
345
+ 'card' : DriverCardIn,
312
346
  'cardVersion' : IDL.Nat32,
313
347
  'geohash' : Geohash,
314
348
  'driverKey' : DriverKey,
315
349
  });
316
350
  const RegisterDriver = IDL.Record({
317
351
  'freeAtNs' : IDL.Opt(IDL.Nat64),
318
- 'card' : DriverCard,
352
+ 'card' : DriverCardIn,
319
353
  'cardVersion' : IDL.Nat32,
320
354
  'geohash' : Geohash,
321
355
  'available' : IDL.Bool,
@@ -1,7 +1,7 @@
1
1
  import type { Identity } from "@icp-sdk/core/agent";
2
- import type { ClaimCode as CandidClaimCode, DriverCanister as CandidDriverCanister } from "../../declarations/core/core.did.js";
2
+ import type { ClaimCode as CandidClaimCode, DriverCanister as CandidDriverCanister, FleetMembership as CandidFleetMembership } from "../../declarations/core/core.did.js";
3
3
  import { type GroupOptions } from "../group/canister-actor.js";
4
- import type { ClaimCodeView, DemoLeaseView, DriverCanisterQuoteView, DriverCanisterView, MapTicketRequest, MapTicketView } from "../interfaces.js";
4
+ import type { ClaimCodeView, DemoLeaseView, DriverCanisterQuoteView, DriverCanisterView, FleetMembershipView, MapTicketRequest, MapTicketView } from "../interfaces.js";
5
5
  /** The fragment key of a claim link: `https://<canister>.icp0.io/#claim=<code>`. */
6
6
  export declare const CLAIM_FRAGMENT_KEY = "claim";
7
7
  /** F-20a: a code is 32 characters of base64url; the core refuses more than this. */
@@ -18,7 +18,11 @@ export declare function claimLinkOf(canisterId: string, code: string, frontOrigi
18
18
  */
19
19
  export declare function claimCodeOfHash(hash: string): string | undefined;
20
20
  /** @internal */
21
- export declare function driverCanisterOf(record: Pick<CandidDriverCanister, "canister" | "owner" | "kind" | "leaseUntilNs" | "blocked">): DriverCanisterView;
21
+ export declare function driverCanisterOf(record: Pick<CandidDriverCanister, "canister" | "owner" | "kind" | "leaseUntilNs" | "blocked"> & {
22
+ fleet?: [] | [CandidFleetMembership];
23
+ }): DriverCanisterView;
24
+ /** @internal C-N12 */
25
+ export declare function fleetMembershipOf(fleet: CandidFleetMembership): FleetMembershipView;
22
26
  /** @internal */
23
27
  export declare function claimCodeOf(claim: CandidClaimCode): ClaimCodeView;
24
28
  export declare class DriverCanistersActor {
@@ -45,7 +49,8 @@ export declare class DriverCanistersActor {
45
49
  extendDemoAsyncUnsafe(): Promise<DriverCanisterView>;
46
50
  /**
47
51
  * The caller's own driver canister, or the demo canister the caller holds now (as the
48
- * lease holder — after a claim the canister's owner is the driver, `ownerPrincipal`).
52
+ * lease holder — after a claim the canister's owner is the driver, `ownerPrincipal`), or
53
+ * the canister of the fleet the caller drives for (C-N12; `fleet` says the role).
49
54
  * @returns undefined when the caller has none
50
55
  * @throws Error with message `CanisterError` — `NotAuthorized` (anonymous)
51
56
  * @throws Error with message `CriticalCanisterError` — the core could not be reached
@@ -1 +1 @@
1
- {"version":3,"file":"driver-canisters-actor.d.ts","sourceRoot":"","sources":["../../src/actors/driver-canisters-actor.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,IAAI,eAAe,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChI,OAAO,EAAkD,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/G,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGnJ,oFAAoF;AACpF,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C,oFAAoF;AACpF,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,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AAC,KAAK,CAAY;gBAEtB,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,GAAE,YAAiB;IAIjF;;;;;;;;;OASG;IACU,oBAAoB,IAAI,OAAO,CAAC,aAAa,CAAC;IAS3D;;;;;;OAMG;IACU,qBAAqB,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAIjE;;;;;;;OAOG;IACU,kBAAkB,IAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC;IAS1E;;;;;;OAMG;IACU,gBAAgB,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAMjE;;;;;;;;;OASG;IACU,cAAc,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAI1D;;;;;;;OAOG;IACU,uBAAuB,IAAI,OAAO,CAAC,aAAa,CAAC;IAI9D;;;;;;;;;;;OAWG;IACU,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAW5F;;;;;OAKG;IACU,+BAA+B,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAM3E;;;;;;;;;;;;;OAaG;IACU,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC;CAGvF"}
@@ -49,12 +49,23 @@ export function claimCodeOfHash(hash) {
49
49
  /** @internal */
50
50
  export function driverCanisterOf(record) {
51
51
  const until = record.leaseUntilNs[0];
52
+ const fleet = record.fleet?.[0];
52
53
  return {
53
54
  canisterId: record.canister.toText(),
54
55
  kind: "pool" in record.kind ? "pool" : "own",
55
56
  ownerPrincipal: record.owner.toText(),
56
57
  leaseUntilMs: until === undefined ? undefined : msOf(BigInt(until)),
57
58
  blocked: record.blocked,
59
+ ...(fleet === undefined ? {} : { fleet: fleetMembershipOf(fleet) }),
60
+ };
61
+ }
62
+ /** @internal C-N12 */
63
+ export function fleetMembershipOf(fleet) {
64
+ return {
65
+ driverKey: fleet.driverKey,
66
+ role: "boss" in fleet.role ? "boss" : "driver",
67
+ state: "suspended" in fleet.state ? "suspended" : "active",
68
+ drives: fleet.drives,
58
69
  };
59
70
  }
60
71
  /** @internal */
@@ -96,7 +107,8 @@ export class DriverCanistersActor {
96
107
  }
97
108
  /**
98
109
  * The caller's own driver canister, or the demo canister the caller holds now (as the
99
- * lease holder — after a claim the canister's owner is the driver, `ownerPrincipal`).
110
+ * lease holder — after a claim the canister's owner is the driver, `ownerPrincipal`), or
111
+ * the canister of the fleet the caller drives for (C-N12; `fleet` says the role).
100
112
  * @returns undefined when the caller has none
101
113
  * @throws Error with message `CanisterError` — `NotAuthorized` (anonymous)
102
114
  * @throws Error with message `CriticalCanisterError` — the core could not be reached
@@ -97,7 +97,7 @@ export class ScheduledRide {
97
97
  const rating = offer.driverRating[0];
98
98
  offers.push({
99
99
  offerId,
100
- card: cardOf(offer.card, canister, this.options.host),
100
+ card: cardOf(offer.card, canister, this.options.host, offer.car),
101
101
  ...(rating === undefined ? {} : { driverRating: rating / 100 }),
102
102
  rideMeters: offer.rideMeters,
103
103
  rideSec: offer.rideSec,
@@ -131,7 +131,7 @@ export class ScheduledRide {
131
131
  snapshot.nextStageMs = msOf(next);
132
132
  if ("booked" in state) {
133
133
  const rating = state.booked.driverRating[0];
134
- snapshot.booked = { card: cardOf(state.booked.card, state.booked.driverCanister.toText(), this.options.host), ...(rating === undefined ? {} : { driverRating: rating / 100 }), price: moneyOf(state.booked.price) };
134
+ snapshot.booked = { card: cardOf(state.booked.card, state.booked.driverCanister.toText(), this.options.host, state.booked.car), ...(rating === undefined ? {} : { driverRating: rating / 100 }), price: moneyOf(state.booked.price) };
135
135
  }
136
136
  if ("rescue" in state)
137
137
  snapshot.rescue = Object.keys(state.rescue.reason)[0];
@@ -8,14 +8,25 @@ export interface Money {
8
8
  }
9
9
  export type CarrierKind = "privateDriver" | "taxi" | "rideHailing" | "other";
10
10
  /** The public card of a driver (P-12), with the URLs of its car photos (P-7). */
11
+ /** D-42 (DRIVER-FLEET): the colour of a car as a code; the front translates it. */
12
+ export type CarColour = "white" | "black" | "silver" | "grey" | "blue" | "navy" | "red" | "maroon" | "green" | "yellow" | "orange" | "brown" | "beige" | "gold" | "purple" | "other";
13
+ /** D-42: a car apart — make and model, plate, colour. */
14
+ export interface CarView {
15
+ name: string;
16
+ plate: string;
17
+ colour?: CarColour;
18
+ }
11
19
  export interface DriverCardView {
12
20
  name: string;
13
21
  carrierKind: CarrierKind;
14
22
  /** The driver's own words when `carrierKind` is "other". */
15
23
  carrierOther?: string;
24
+ /** One text for fronts that do not show `car` (with a fleet car: "make and model · plate"). */
16
25
  carDescription: string;
17
26
  carPhotoUrls: string[];
18
27
  hasLicencePhoto: boolean;
28
+ /** WO-N13 (D-42): the car apart; none from a driver canister before the fleet. */
29
+ car?: CarView;
19
30
  }
20
31
  /**
21
32
  * Why an offer left the rider's list (U-42, ZO-11a). The entry keeps its place, so the front
@@ -260,6 +271,20 @@ export interface DriverCanisterView {
260
271
  /** A demo lease ends then (pool canisters). */
261
272
  leaseUntilMs?: number;
262
273
  blocked: boolean;
274
+ /**
275
+ * C-N12 (`getMineAsyncUnsafe` only): the caller's place in the fleet of this canister —
276
+ * the owner of an own canister is the `boss` (key ""); undefined for a demo or a bought
277
+ * canister seen from the rider's site.
278
+ */
279
+ fleet?: FleetMembershipView;
280
+ }
281
+ /** C-N12: a fleet driver — the boss (the owner, key "") or one of its drivers. */
282
+ export interface FleetMembershipView {
283
+ driverKey: string;
284
+ role: "boss" | "driver";
285
+ state: "active" | "suspended";
286
+ /** In the fleet's registry: the boss only while it said "I drive" (D-35); a driver always. */
287
+ drives: boolean;
263
288
  }
264
289
  /** F-20: a one-time code that hands the demo canister to whoever claims it, until `expiresAtMs`. */
265
290
  export interface ClaimCodeView {
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAy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