@wix/auto_sdk_arrivals_arrivals 1.0.13 → 1.0.15
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/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +47 -45
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +45 -43
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +47 -45
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +45 -43
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +10 -10
- package/build/internal/cjs/index.typings.d.ts +59 -57
- package/build/internal/cjs/meta.d.ts +45 -43
- package/build/internal/es/index.d.mts +10 -10
- package/build/internal/es/index.typings.d.mts +59 -57
- package/build/internal/es/meta.d.mts +45 -43
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -4,11 +4,12 @@ import '@wix/sdk-types';
|
|
|
4
4
|
/**
|
|
5
5
|
* An arrival is the record of one entry into an area, at one of its entrances: who arrived, where, what the
|
|
6
6
|
* eligibility engine found (`eligibilityDetails`), and whether access was given (`status`). Arrivals are written
|
|
7
|
-
* only by Create Arrival, directly or through Create Arrival By Credential. An arrival changes only when
|
|
7
|
+
* only by Create Arrival, directly or through Create Arrival By Credential. An arrival changes only when a site user overrides it, which
|
|
8
8
|
* moves a denial to `GRANTED` (Override Arrival as Granted, or a repeat of Create Arrival within 5 seconds that carries
|
|
9
9
|
* `denialOverride`), and when two contacts are merged in CRM, which moves
|
|
10
|
-
* `contactDetails.contactId` to the surviving contact; the snapshot stays as it was
|
|
11
|
-
*
|
|
10
|
+
* `contactDetails.contactId` to the surviving contact; the snapshot stays as it was; and when the contact's personal data is
|
|
11
|
+
* deleted for privacy, which replaces `contactDetails.firstName`, `contactDetails.lastName` and `overrideReason` with `****`
|
|
12
|
+
* and removes the picture. Otherwise, the person's name and picture are kept as they were when the arrival was written, and a granted arrival keeps what granted the entry. `eligibilityDetails` and
|
|
12
13
|
* `overrideReason` say why a person was not eligible, so they are returned only to callers with the
|
|
13
14
|
* `arrivals:v1:arrival:read_eligibility_details` permission.
|
|
14
15
|
*/
|
|
@@ -30,19 +31,19 @@ interface Arrival extends ArrivalGrantedByOneOf {
|
|
|
30
31
|
*/
|
|
31
32
|
id?: string | null;
|
|
32
33
|
/**
|
|
33
|
-
* Revision number. Moves when
|
|
34
|
+
* Revision number. Moves when a site user overrides a denied arrival — with Override Arrival as Granted, or with a repeat of
|
|
34
35
|
* Create Arrival within 5 seconds that carries `denialOverride` — and when a CRM contact merge
|
|
35
36
|
* moves the arrival to the surviving contact; nothing else changes an arrival.
|
|
36
37
|
* @readonly
|
|
37
38
|
*/
|
|
38
39
|
revision?: string | null;
|
|
39
40
|
/**
|
|
40
|
-
* Date and time the arrival was written, right after the person was evaluated at the entrance. For a granted arrival that was not overridden, it is the time the person was let in; for one
|
|
41
|
+
* Date and time the arrival was written, right after the person was evaluated at the entrance. For a granted arrival that was not overridden, it is the time the person was let in; for one that a site user overrode afterwards, it is the denial's time, and the override's time is `overriddenDate`; for one let in with `denialOverride` on the Create Arrival call that wrote it, it is the time the arrival was written, a moment after its `overriddenDate`.
|
|
41
42
|
* @readonly
|
|
42
43
|
*/
|
|
43
44
|
createdDate?: Date | null;
|
|
44
45
|
/**
|
|
45
|
-
* Date and time the arrival was last updated. Equal to `createdDate` until
|
|
46
|
+
* Date and time the arrival was last updated. Equal to `createdDate` until a site user overrides the arrival or a contact merge moves it. For the time of the override itself, read `overriddenDate`, which a later merge does not move.
|
|
46
47
|
* @readonly
|
|
47
48
|
*/
|
|
48
49
|
updatedDate?: Date | null;
|
|
@@ -76,18 +77,18 @@ interface Arrival extends ArrivalGrantedByOneOf {
|
|
|
76
77
|
*/
|
|
77
78
|
status?: StatusWithLiterals;
|
|
78
79
|
/**
|
|
79
|
-
* Why
|
|
80
|
+
* Why a site user let the person in against the issues, in their own words. Optional; written by Override Arrival as Granted, or from `denialOverride.reason` when Create Arrival let the person in despite a denial, so it can be present only on a `GRANTED` arrival with issues; either way the actor is `overriddenBy`. Free text that may describe the person, so it is personal data: `****` after the contact's personal data is deleted for privacy. It is returned only to callers with the `arrivals:v1:arrival:read_eligibility_details` permission.
|
|
80
81
|
* @maxLength 500
|
|
81
82
|
* @readonly
|
|
82
83
|
*/
|
|
83
84
|
overrideReason?: string | null;
|
|
84
85
|
/**
|
|
85
|
-
* Who let the person in against a denial: the caller of Override Arrival as Granted, or of Create Arrival with `denialOverride`. Set by the server; present only on an arrival
|
|
86
|
+
* Who let the person in against a denial: the caller of Override Arrival as Granted, or of Create Arrival with `denialOverride`. Set by the server; present only on an arrival a site user let in against a denial, absent on every other arrival. Always a Wix user (`wixUserId`), since only site users may override. Who wrote the arrival is `source.createdBy`; the two can differ.
|
|
86
87
|
* @readonly
|
|
87
88
|
*/
|
|
88
89
|
overriddenBy?: CommonIdentificationData;
|
|
89
90
|
/**
|
|
90
|
-
* Date and time
|
|
91
|
+
* Date and time a site user let the person in against a denial, set once with `overriddenBy`: when Override Arrival as Granted granted the arrival, or the time Create Arrival evaluated the person when it let them in with `denialOverride` on the call that wrote it: a moment before that arrival's `createdDate`, which is stamped when the arrival is written. Set by the server; absent on every arrival no site user overrode. A later contact merge moves `updatedDate` but never this.
|
|
91
92
|
* @readonly
|
|
92
93
|
*/
|
|
93
94
|
overriddenDate?: Date | null;
|
|
@@ -109,7 +110,8 @@ interface ArrivalGrantedByOneOf {
|
|
|
109
110
|
* The person who arrived: their contact ID, and their name and picture as the Contacts API held them when the
|
|
110
111
|
* arrival was written. The name and picture are a snapshot — for history and live lists without a Contacts
|
|
111
112
|
* read; a later change in Contacts does not update them. A contact merge moves `contactId` to the surviving
|
|
112
|
-
* contact and leaves the snapshot as it was.
|
|
113
|
+
* contact and leaves the snapshot as it was. When the contact's personal data is deleted for privacy, the names that
|
|
114
|
+
* were set become `****` and the picture is removed. Named as Bookings names the same thing on a booking. The name and
|
|
113
115
|
* picture are absent when the contact has none, or when Contacts did not answer (`CONTACTS_UNAVAILABLE` in
|
|
114
116
|
* `eligibilityDetails.issues`).
|
|
115
117
|
*/
|
|
@@ -120,19 +122,19 @@ interface ContactDetails {
|
|
|
120
122
|
*/
|
|
121
123
|
contactId?: string;
|
|
122
124
|
/**
|
|
123
|
-
* The contact's first name at the time of the arrival. Set by the server; personal data.
|
|
125
|
+
* The contact's first name at the time of the arrival. Set by the server; personal data. `****` after the contact's personal data is deleted for privacy.
|
|
124
126
|
* @maxLength 1000
|
|
125
127
|
* @readonly
|
|
126
128
|
*/
|
|
127
129
|
firstName?: string | null;
|
|
128
130
|
/**
|
|
129
|
-
* The contact's last name at the time of the arrival. Set by the server; personal data.
|
|
131
|
+
* The contact's last name at the time of the arrival. Set by the server; personal data. `****` after the contact's personal data is deleted for privacy.
|
|
130
132
|
* @maxLength 1000
|
|
131
133
|
* @readonly
|
|
132
134
|
*/
|
|
133
135
|
lastName?: string | null;
|
|
134
136
|
/**
|
|
135
|
-
* The contact's profile picture at the time of the arrival, as Contacts held it. Set by the server;
|
|
137
|
+
* The contact's profile picture at the time of the arrival, as Contacts held it. Set by the server; personal data. Absent when the contact has none, and absent after the contact's personal data is deleted for privacy.
|
|
136
138
|
* @readonly
|
|
137
139
|
*/
|
|
138
140
|
picture?: Image;
|
|
@@ -173,19 +175,19 @@ interface Image {
|
|
|
173
175
|
}
|
|
174
176
|
/** How an arrival came to be, and who created it. Set by the server. */
|
|
175
177
|
interface ArrivalSource {
|
|
176
|
-
/** How the person was identified: `BY_TOKEN` when the interaction began with a presented token, `BY_NFC_CARD` when it began with a presented NFC card (both through Create Arrival By Credential), `BY_CONTACT` when the arrival was written by contact ID with nothing presented. Who wrote the arrival —
|
|
178
|
+
/** How the person was identified: `BY_TOKEN` when the interaction began with a presented token, `BY_NFC_CARD` when it began with a presented NFC card (both through Create Arrival By Credential), `BY_CONTACT` when the arrival was written by contact ID with nothing presented. Who wrote the arrival — a Wix user, or an app such as a reader at an entrance — is `createdBy`. */
|
|
177
179
|
identifiedBy?: IdentificationMethodWithLiterals;
|
|
178
180
|
/**
|
|
179
|
-
* Who created the arrival, from the call identity: a Wix user (`wixUserId`) —
|
|
180
|
-
* the contact card — or an app (`appId`) — a reader at an entrance, or a partner app. This, not `identifiedBy`, is what tells
|
|
181
|
-
* from
|
|
181
|
+
* Who created the arrival, from the call identity: a Wix user (`wixUserId`) — a site collaborator in a scanner app, or an owner on
|
|
182
|
+
* the contact card — or an app (`appId`) — a reader at an entrance, or a partner app. This, not `identifiedBy`, is what tells a Wix user
|
|
183
|
+
* from an app, such as a reader or a partner app. Only `wixUserId` or `appId` is ever set; `anonymousVisitorId` and `memberId` never appear on an arrival,
|
|
182
184
|
* since members and visitors cannot create arrivals. Who let the person in against a denial is `overriddenBy`, not this field.
|
|
183
185
|
*/
|
|
184
186
|
createdBy?: CommonIdentificationData;
|
|
185
187
|
}
|
|
186
188
|
/** How the person was identified when the arrival was written. */
|
|
187
189
|
declare enum IdentificationMethod {
|
|
188
|
-
/** A token was presented at the entrance — a QR code scanned by
|
|
190
|
+
/** A token was presented at the entrance — a QR code scanned by a site collaborator in a scanner app, or by a reader; `createdBy` says which. The interaction began with Create Arrival By Credential with `token`. */
|
|
189
191
|
BY_TOKEN = "BY_TOKEN",
|
|
190
192
|
/** Written by contact ID with nothing presented — from the contact card in the dashboard, or by an app — even when the contact holds a credential. */
|
|
191
193
|
BY_CONTACT = "BY_CONTACT",
|
|
@@ -297,7 +299,7 @@ interface AreaInfo {
|
|
|
297
299
|
interface EligibilityDetails {
|
|
298
300
|
/**
|
|
299
301
|
* The issues of the entry as a whole. The issues decide the status the evaluation gives: `GRANTED` when there are none, or only
|
|
300
|
-
* `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. When
|
|
302
|
+
* `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. When a site user lets the person in —
|
|
301
303
|
* afterwards with Override Arrival as Granted, or beforehand with `denialOverride` on Create Arrival — the status is
|
|
302
304
|
* `GRANTED` whatever the issues, and the issues show what was overridden. On an arrival, `PRICING_PLANS_UNAVAILABLE`
|
|
303
305
|
* and `CONTACTS_UNAVAILABLE` are found only that way, with `denialOverride`, since otherwise Create Arrival fails with
|
|
@@ -307,7 +309,7 @@ interface EligibilityDetails {
|
|
|
307
309
|
*/
|
|
308
310
|
issues?: EntryIssueWithLiterals[];
|
|
309
311
|
/**
|
|
310
|
-
* Every intake form the area's policy requires and the person has no valid submission for, with its `blocksEntry`, so an app can point
|
|
312
|
+
* Every intake form the area's policy requires and the person has no valid submission for, with its `blocksEntry`, so an app can point site collaborators to the right form. Empty unless `issues` contains `INTAKE_FORM_MISSING`.
|
|
311
313
|
* @maxSize 20
|
|
312
314
|
*/
|
|
313
315
|
missingIntakeForms?: MissingIntakeForm[];
|
|
@@ -334,7 +336,7 @@ interface EligibilityDetails {
|
|
|
334
336
|
}
|
|
335
337
|
/**
|
|
336
338
|
* An issue of the entry as a whole. The issues decide the status the evaluation gives: `GRANTED` when there are none, or only
|
|
337
|
-
* `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. When
|
|
339
|
+
* `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. When a site user lets the person in —
|
|
338
340
|
* afterwards with Override Arrival as Granted, or beforehand with `denialOverride` on Create Arrival — the status is
|
|
339
341
|
* `GRANTED` whatever the issues, and the issues show what was overridden. On an arrival, `PRICING_PLANS_UNAVAILABLE`
|
|
340
342
|
* and `CONTACTS_UNAVAILABLE` are found only that way, with `denialOverride`, since otherwise Create Arrival fails with
|
|
@@ -351,18 +353,18 @@ declare enum EntryIssue {
|
|
|
351
353
|
* finds none. Also reported when a
|
|
352
354
|
* credit pack would admit but the person is booked on an event here and now that still waits for approval: no
|
|
353
355
|
* credit is spent while the booking may be approved moments later (the event carries `PENDING_CONFIRMATION`).
|
|
354
|
-
* Declines at creation;
|
|
356
|
+
* Declines at creation; site collaborators override, or sell a plan, approve the booking or renew the plan and create a new
|
|
355
357
|
* arrival. Not reported when Pricing Plans or Contacts did not answer: `PRICING_PLANS_UNAVAILABLE` or
|
|
356
358
|
* `CONTACTS_UNAVAILABLE` takes its place.
|
|
357
359
|
*/
|
|
358
360
|
NO_ELIGIBLE_GRANT = "NO_ELIGIBLE_GRANT",
|
|
359
|
-
/** The person has no valid submission for at least one intake form the area's policy requires: never submitted, expired, canceled or pending approval. The forms are listed in `missingIntakeForms`. Declines at creation when a missing form has `blocksEntry`; otherwise grants, with the issue kept on the arrival so
|
|
361
|
+
/** The person has no valid submission for at least one intake form the area's policy requires: never submitted, expired, canceled or pending approval. The forms are listed in `missingIntakeForms`. Declines at creation when a missing form has `blocksEntry`; otherwise grants, with the issue kept on the arrival so site collaborators can chase the paperwork. */
|
|
360
362
|
INTAKE_FORM_MISSING = "INTAKE_FORM_MISSING",
|
|
361
|
-
/** The person was already granted entry into this area within the last 15 minutes and a credit would be spent again: a retried scan, a re-entry, or a guest on the same credential. The earlier entry counts whatever granted it: a credit, an unlimited plan, a scheduled event or an override, and the 15 minutes count from that arrival's `createdDate`, or for an overridden arrival from its `overriddenDate`, when
|
|
363
|
+
/** The person was already granted entry into this area within the last 15 minutes and a credit would be spent again: a retried scan, a re-entry, or a guest on the same credential. The earlier entry counts whatever granted it: a credit, an unlimited plan, a scheduled event or an override, and the 15 minutes count from that arrival's `createdDate`, or for an overridden arrival from its `overriddenDate`, when a site user let the person in. Declines at creation; the override spends a credit. Reported only when this entry would spend a credit: not when an unlimited plan or a scheduled event admits now. */
|
|
362
364
|
RECENT_ENTRY = "RECENT_ENTRY",
|
|
363
|
-
/** Pricing Plans did not answer — it could not be reached, did not answer in time, or failed on its side; any of these is an outage — so plan benefits were not checked. On an arrival, only on one let in by Create Arrival with `denialOverride`, since without a
|
|
365
|
+
/** Pricing Plans did not answer — it could not be reached, did not answer in time, or failed on its side; any of these is an outage — so plan benefits were not checked. On an arrival, only on one let in by Create Arrival with `denialOverride`, since without a site user's decision the call fails with `UNAVAILABLE` instead and no denied arrival is written; Check Eligibility reports it without failing; Override Arrival as Granted does not call Pricing Plans. `planBenefits` is empty, no `planBenefit` is recorded and nothing is redeemed; scheduled events and intake forms are still evaluated. Reported instead of `NO_ELIGIBLE_GRANT`, never with it: plan benefits were not checked, so the person may hold one that admits. An issue a scheduled event has of its own stays on that event in `eligibilityDetails`. */
|
|
364
366
|
PRICING_PLANS_UNAVAILABLE = "PRICING_PLANS_UNAVAILABLE",
|
|
365
|
-
/** Contacts did not answer — it could not be reached, did not answer in time, or failed on its side; any of these is an outage — so the person's member is unknown and plan benefits were not checked. On an arrival, only on one let in by Create Arrival with `denialOverride`, since without a
|
|
367
|
+
/** Contacts did not answer — it could not be reached, did not answer in time, or failed on its side; any of these is an outage — so the person's member is unknown and plan benefits were not checked. On an arrival, only on one let in by Create Arrival with `denialOverride`, since without a site user's decision the call fails with `UNAVAILABLE` instead and no denied arrival is written; Check Eligibility reports it without failing. `planBenefits` is empty, no `planBenefit` is recorded, nothing is redeemed, and `contactDetails` has the contact ID alone, with no name or picture; scheduled events, read by contact, are still evaluated. Reported instead of `NO_ELIGIBLE_GRANT` and `PRICING_PLANS_UNAVAILABLE`, never with them: Pricing Plans is not read without the member. */
|
|
366
368
|
CONTACTS_UNAVAILABLE = "CONTACTS_UNAVAILABLE"
|
|
367
369
|
}
|
|
368
370
|
/** @enumType */
|
|
@@ -374,7 +376,7 @@ interface MissingIntakeForm {
|
|
|
374
376
|
* @format GUID
|
|
375
377
|
*/
|
|
376
378
|
formId?: string;
|
|
377
|
-
/** Whether this missing form blocks entry, as configured on the area's policy (`policy.intakeForms[].blocksEntry` in the Areas API). `false`: the arrival is granted and
|
|
379
|
+
/** Whether this missing form blocks entry, as configured on the area's policy (`policy.intakeForms[].blocksEntry` in the Areas API). `false`: the arrival is granted and site collaborators are warned. `true`: the arrival is denied until the form is submitted; site collaborators can still override. */
|
|
378
380
|
blocksEntry?: boolean;
|
|
379
381
|
}
|
|
380
382
|
/**
|
|
@@ -438,13 +440,13 @@ declare enum PlanBenefitType {
|
|
|
438
440
|
type PlanBenefitTypeWithLiterals = PlanBenefitType | 'CREDIT' | 'UNLIMITED';
|
|
439
441
|
/** Why a Pricing Plans benefit does not admit. Where Pricing Plans has a word for a finding, the value uses it. */
|
|
440
442
|
declare enum PlanBenefitIssue {
|
|
441
|
-
/** The benefit's plan is not active at the time of the entry — ended, cancelled, paused, not started yet, or for a moment while it is being renewed — as Pricing Plans reports.
|
|
443
|
+
/** The benefit's plan is not active at the time of the entry — ended, cancelled, paused, not started yet, or for a moment while it is being renewed — as Pricing Plans reports. Site collaborators override, or renew the plan and create a new arrival. */
|
|
442
444
|
PLAN_NOT_ACTIVE = "PLAN_NOT_ACTIVE",
|
|
443
|
-
/** A credit pack with no credits left, as Pricing Plans reports.
|
|
445
|
+
/** A credit pack with no credits left, as Pricing Plans reports. Site collaborators override, or sell credits and create a new arrival. */
|
|
444
446
|
NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
|
|
445
447
|
/** The plan's usage policy does not allow entry at this hour or on this day, or another rule of the plan refuses entry, as Pricing Plans reports. A used-up limit on its own is `USAGE_LIMIT_REACHED`. */
|
|
446
448
|
OUTSIDE_ACCESS_HOURS = "OUTSIDE_ACCESS_HOURS",
|
|
447
|
-
/** The plan's usage policy limits how often it can be used, such as three entries a week, and that limit is used up for the current period, as Pricing Plans reports.
|
|
449
|
+
/** The plan's usage policy limits how often it can be used, such as three entries a week, and that limit is used up for the current period, as Pricing Plans reports. Site collaborators override, or the client comes back in the next period. */
|
|
448
450
|
USAGE_LIMIT_REACHED = "USAGE_LIMIT_REACHED"
|
|
449
451
|
}
|
|
450
452
|
/** @enumType */
|
|
@@ -492,7 +494,7 @@ interface ScheduledEvent {
|
|
|
492
494
|
}
|
|
493
495
|
/** Why a scheduled event does not admit. At most one per event; `OUTSIDE_ENTRY_WINDOW` wins over `PENDING_CONFIRMATION`. */
|
|
494
496
|
declare enum ScheduledEventIssue {
|
|
495
|
-
/** The person is booked on the event here and now, but the booking still waits for the business's approval. Only an appointment can be pending. A credit pack is not spent instead (`NO_ELIGIBLE_GRANT`), since the booking may be approved moments later; an unlimited plan allowed into the area still admits.
|
|
497
|
+
/** The person is booked on the event here and now, but the booking still waits for the business's approval. Only an appointment can be pending. A credit pack is not spent instead (`NO_ELIGIBLE_GRANT`), since the booking may be approved moments later; an unlimited plan allowed into the area still admits. Site collaborators approve the booking and create a new arrival, or override. */
|
|
496
498
|
PENDING_CONFIRMATION = "PENDING_CONFIRMATION",
|
|
497
499
|
/** The person is booked on the event, but now is outside the area's entry window for it (`policy.scheduledEventsPolicy.entryWindow` in the Areas API). Only on an event listed by a Check Eligibility with `scheduledEventSearchWindow`; never on an arrival, since Create Arrival does not find events outside the area's window. */
|
|
498
500
|
OUTSIDE_ENTRY_WINDOW = "OUTSIDE_ENTRY_WINDOW"
|
|
@@ -501,9 +503,9 @@ declare enum ScheduledEventIssue {
|
|
|
501
503
|
type ScheduledEventIssueWithLiterals = ScheduledEventIssue | 'PENDING_CONFIRMATION' | 'OUTSIDE_ENTRY_WINDOW';
|
|
502
504
|
/** Whether access was given. */
|
|
503
505
|
declare enum Status {
|
|
504
|
-
/** Access was given: the person entered. Either the engine found
|
|
506
|
+
/** Access was given: the person entered. Either the engine found no issue that blocks entry, or a site user overrode a denial — afterwards with Override Arrival as Granted, or on Create Arrival with `denialOverride`; `eligibilityDetails.issues` then holds what was overridden. */
|
|
505
507
|
GRANTED = "GRANTED",
|
|
506
|
-
/** Access was not given: the engine found an issue that declines (see `EntryIssue`), and
|
|
508
|
+
/** Access was not given: the engine found an issue that declines (see `EntryIssue`), and no site user has overridden it. A site user may still override with Override Arrival as Granted, which moves the status to `GRANTED`. */
|
|
507
509
|
DENIED = "DENIED"
|
|
508
510
|
}
|
|
509
511
|
/** @enumType */
|
|
@@ -516,7 +518,7 @@ interface CreateArrivalRequest {
|
|
|
516
518
|
*/
|
|
517
519
|
arrival: Arrival;
|
|
518
520
|
/**
|
|
519
|
-
*
|
|
521
|
+
* A site user's decision to let the person in even if the evaluation denies them, made before the call. Its presence is the decision: send it, even empty (`{}`), to let the person in on a denial; omit it for no override. When the
|
|
520
522
|
* evaluation grants, it is ignored; when it denies, the arrival is written `GRANTED` with `overrideReason` set to
|
|
521
523
|
* `reason`. Only a site user may send it (`OVERRIDE_NOT_ALLOWED` otherwise). On a
|
|
522
524
|
* repeat within 5 seconds onto an existing `DENIED` arrival, it grants that arrival as Override Arrival as Granted
|
|
@@ -524,10 +526,10 @@ interface CreateArrivalRequest {
|
|
|
524
526
|
*/
|
|
525
527
|
denialOverride?: DenialOverride;
|
|
526
528
|
}
|
|
527
|
-
/**
|
|
529
|
+
/** A site user's decision, made before the call, to let the person in even if the evaluation denies them. Its presence is the decision: send it, even empty (`{}`), to let the person in on a denial; omit it for no override. */
|
|
528
530
|
interface DenialOverride {
|
|
529
531
|
/**
|
|
530
|
-
* Why
|
|
532
|
+
* Why a site user let the person in, in their own words. Optional; stored as the arrival's `overrideReason` when the evaluation denies. Free text that may describe the person, so it is personal data.
|
|
531
533
|
* @maxLength 500
|
|
532
534
|
*/
|
|
533
535
|
reason?: string | null;
|
|
@@ -543,7 +545,7 @@ interface OverrideArrivalAsGrantedRequest {
|
|
|
543
545
|
*/
|
|
544
546
|
arrivalId: string;
|
|
545
547
|
/**
|
|
546
|
-
* Why
|
|
548
|
+
* Why a site user let the person in, in their own words. Optional; stored as the arrival's `overrideReason`. Free text that may describe the person, so it is personal data.
|
|
547
549
|
* @maxLength 500
|
|
548
550
|
*/
|
|
549
551
|
overrideReason?: string | null;
|
|
@@ -598,7 +600,7 @@ interface ScheduledEventSearchWindow {
|
|
|
598
600
|
interface CheckEligibilityResponse {
|
|
599
601
|
/** The contact given: their contact ID, name and picture as Contacts holds them now. When Contacts did not answer (`CONTACTS_UNAVAILABLE` in `eligibilityDetails.issues`), only `contactId` is set. When creating an arrival, send `arrival.contactDetails.contactId`; the server fills in the rest. */
|
|
600
602
|
contactDetails?: ContactDetails;
|
|
601
|
-
/** The status Create Arrival would write now, derived from `eligibilityDetails.issues`: `GRANTED` when there are none, or only `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. Also `DENIED` when Pricing Plans or Contacts did not answer and nothing else admits the contact (`PRICING_PLANS_UNAVAILABLE` or `CONTACTS_UNAVAILABLE` in `eligibilityDetails.issues`): the engine could not decide, so show that the check could not be completed, with an option to try again;
|
|
603
|
+
/** The status Create Arrival would write now, derived from `eligibilityDetails.issues`: `GRANTED` when there are none, or only `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. Also `DENIED` when Pricing Plans or Contacts did not answer and nothing else admits the contact (`PRICING_PLANS_UNAVAILABLE` or `CONTACTS_UNAVAILABLE` in `eligibilityDetails.issues`): the engine could not decide, so show that the check could not be completed, with an option to try again; a site user who decides to let the person in anyway calls Create Arrival with `denialOverride`. */
|
|
602
604
|
status?: StatusWithLiterals;
|
|
603
605
|
/**
|
|
604
606
|
* What the engine found — the same message Create Arrival records on the arrival: the entry's `issues`, the
|
|
@@ -609,7 +611,7 @@ interface CheckEligibilityResponse {
|
|
|
609
611
|
eligibilityDetails?: EligibilityDetails;
|
|
610
612
|
/**
|
|
611
613
|
* Present when `eligibilityDetails.issues` contains `RECENT_ENTRY`: the earlier arrival that granted this person this
|
|
612
|
-
* area within the last 15 minutes, for an app to tell
|
|
614
|
+
* area within the last 15 minutes, for an app to tell site collaborators "let in 4 minutes ago".
|
|
613
615
|
*/
|
|
614
616
|
recentArrival?: RecentArrival;
|
|
615
617
|
}
|
|
@@ -620,7 +622,7 @@ interface RecentArrival {
|
|
|
620
622
|
* @format GUID
|
|
621
623
|
*/
|
|
622
624
|
arrivalId?: string;
|
|
623
|
-
/** That arrival's `createdDate`, for an app to tell
|
|
625
|
+
/** That arrival's `createdDate`, for an app to tell site collaborators "let in 4 minutes ago". For an arrival overridden after it was written, it is the time of the denial; for every overridden arrival the 15 minutes count from its `overriddenDate`: call Get Arrival to show when the person was let in. What granted it is on that arrival: call Get Arrival with `arrivalId` and read its `planBenefit` or `scheduledEvent`. */
|
|
624
626
|
createdDate?: Date | null;
|
|
625
627
|
}
|
|
626
628
|
interface GetArrivalRequest {
|
|
@@ -946,7 +948,7 @@ type TypeWithLiterals = Type | 'NFC_CARD';
|
|
|
946
948
|
interface CheckEligibilityByCredentialResponse {
|
|
947
949
|
/** The holder of the presented credential: their contact ID, name and picture as Contacts holds them now. When Contacts did not answer (`CONTACTS_UNAVAILABLE` in `eligibilityDetails.issues`), only `contactId` is set. */
|
|
948
950
|
contactDetails?: ContactDetails;
|
|
949
|
-
/** The status Create Arrival would write now, derived from `eligibilityDetails.issues`: `GRANTED` when there are none, or only `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. Also `DENIED` when Pricing Plans or Contacts did not answer and nothing else admits the contact (`PRICING_PLANS_UNAVAILABLE` or `CONTACTS_UNAVAILABLE` in `eligibilityDetails.issues`): the engine could not decide, so show that the check could not be completed, with an option to try again;
|
|
951
|
+
/** The status Create Arrival would write now, derived from `eligibilityDetails.issues`: `GRANTED` when there are none, or only `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. Also `DENIED` when Pricing Plans or Contacts did not answer and nothing else admits the contact (`PRICING_PLANS_UNAVAILABLE` or `CONTACTS_UNAVAILABLE` in `eligibilityDetails.issues`): the engine could not decide, so show that the check could not be completed, with an option to try again; a site user who decides to let the person in anyway calls Create Arrival by contact ID with `denialOverride`, since Create Arrival By Credential carries no override. */
|
|
950
952
|
status?: StatusWithLiterals;
|
|
951
953
|
/**
|
|
952
954
|
* What the engine found — the same message Create Arrival records on the arrival: the entry's `issues`, the
|
|
@@ -957,7 +959,7 @@ interface CheckEligibilityByCredentialResponse {
|
|
|
957
959
|
eligibilityDetails?: EligibilityDetails;
|
|
958
960
|
/**
|
|
959
961
|
* Present when `eligibilityDetails.issues` contains `RECENT_ENTRY`: the earlier arrival that granted this person this
|
|
960
|
-
* area within the last 15 minutes, for an app to tell
|
|
962
|
+
* area within the last 15 minutes, for an app to tell site collaborators "let in 4 minutes ago".
|
|
961
963
|
*/
|
|
962
964
|
recentArrival?: RecentArrival;
|
|
963
965
|
}
|
|
@@ -987,7 +989,7 @@ interface CreateArrivalByCredentialRequestCredentialOneOf {
|
|
|
987
989
|
}
|
|
988
990
|
interface CreateArrivalByCredentialResponse {
|
|
989
991
|
/**
|
|
990
|
-
* The created arrival, with `source.identifiedBy` `BY_TOKEN` or `BY_NFC_CARD`. `GRANTED`: the person is in. `DENIED`: show
|
|
992
|
+
* The created arrival, with `source.identifiedBy` `BY_TOKEN` or `BY_NFC_CARD`. `GRANTED`: the person is in. `DENIED`: show site collaborators why from its `eligibilityDetails`; letting
|
|
991
993
|
* the person in anyway is Override Arrival as Granted with this arrival's ID.
|
|
992
994
|
*/
|
|
993
995
|
arrival?: Arrival;
|