@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
|
@@ -4,11 +4,12 @@ import { QuerySpec, Query, NonNullablePaths } from '@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,38 +122,38 @@ 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?: string;
|
|
139
141
|
}
|
|
140
142
|
/** How an arrival came to be, and who created it. Set by the server. */
|
|
141
143
|
interface ArrivalSource {
|
|
142
|
-
/** 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 —
|
|
144
|
+
/** 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`. */
|
|
143
145
|
identifiedBy?: IdentificationMethodWithLiterals;
|
|
144
146
|
/**
|
|
145
|
-
* Who created the arrival, from the call identity: a Wix user (`wixUserId`) —
|
|
146
|
-
* the contact card — or an app (`appId`) — a reader at an entrance, or a partner app. This, not `identifiedBy`, is what tells
|
|
147
|
-
* from
|
|
147
|
+
* Who created the arrival, from the call identity: a Wix user (`wixUserId`) — a site collaborator in a scanner app, or an owner on
|
|
148
|
+
* 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
|
|
149
|
+
* 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,
|
|
148
150
|
* since members and visitors cannot create arrivals. Who let the person in against a denial is `overriddenBy`, not this field.
|
|
149
151
|
*/
|
|
150
152
|
createdBy?: CommonIdentificationData;
|
|
151
153
|
}
|
|
152
154
|
/** How the person was identified when the arrival was written. */
|
|
153
155
|
declare enum IdentificationMethod {
|
|
154
|
-
/** A token was presented at the entrance — a QR code scanned by
|
|
156
|
+
/** 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`. */
|
|
155
157
|
BY_TOKEN = "BY_TOKEN",
|
|
156
158
|
/** 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. */
|
|
157
159
|
BY_CONTACT = "BY_CONTACT",
|
|
@@ -263,7 +265,7 @@ interface AreaInfo {
|
|
|
263
265
|
interface EligibilityDetails {
|
|
264
266
|
/**
|
|
265
267
|
* The issues of the entry as a whole. The issues decide the status the evaluation gives: `GRANTED` when there are none, or only
|
|
266
|
-
* `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. When
|
|
268
|
+
* `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. When a site user lets the person in —
|
|
267
269
|
* afterwards with Override Arrival as Granted, or beforehand with `denialOverride` on Create Arrival — the status is
|
|
268
270
|
* `GRANTED` whatever the issues, and the issues show what was overridden. On an arrival, `PRICING_PLANS_UNAVAILABLE`
|
|
269
271
|
* and `CONTACTS_UNAVAILABLE` are found only that way, with `denialOverride`, since otherwise Create Arrival fails with
|
|
@@ -273,7 +275,7 @@ interface EligibilityDetails {
|
|
|
273
275
|
*/
|
|
274
276
|
issues?: EntryIssueWithLiterals[];
|
|
275
277
|
/**
|
|
276
|
-
* Every intake form the area's policy requires and the person has no valid submission for, with its `blocksEntry`, so an app can point
|
|
278
|
+
* 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`.
|
|
277
279
|
* @maxSize 20
|
|
278
280
|
*/
|
|
279
281
|
missingIntakeForms?: MissingIntakeForm[];
|
|
@@ -300,7 +302,7 @@ interface EligibilityDetails {
|
|
|
300
302
|
}
|
|
301
303
|
/**
|
|
302
304
|
* An issue of the entry as a whole. The issues decide the status the evaluation gives: `GRANTED` when there are none, or only
|
|
303
|
-
* `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. When
|
|
305
|
+
* `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. When a site user lets the person in —
|
|
304
306
|
* afterwards with Override Arrival as Granted, or beforehand with `denialOverride` on Create Arrival — the status is
|
|
305
307
|
* `GRANTED` whatever the issues, and the issues show what was overridden. On an arrival, `PRICING_PLANS_UNAVAILABLE`
|
|
306
308
|
* and `CONTACTS_UNAVAILABLE` are found only that way, with `denialOverride`, since otherwise Create Arrival fails with
|
|
@@ -317,18 +319,18 @@ declare enum EntryIssue {
|
|
|
317
319
|
* finds none. Also reported when a
|
|
318
320
|
* credit pack would admit but the person is booked on an event here and now that still waits for approval: no
|
|
319
321
|
* credit is spent while the booking may be approved moments later (the event carries `PENDING_CONFIRMATION`).
|
|
320
|
-
* Declines at creation;
|
|
322
|
+
* Declines at creation; site collaborators override, or sell a plan, approve the booking or renew the plan and create a new
|
|
321
323
|
* arrival. Not reported when Pricing Plans or Contacts did not answer: `PRICING_PLANS_UNAVAILABLE` or
|
|
322
324
|
* `CONTACTS_UNAVAILABLE` takes its place.
|
|
323
325
|
*/
|
|
324
326
|
NO_ELIGIBLE_GRANT = "NO_ELIGIBLE_GRANT",
|
|
325
|
-
/** 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
|
|
327
|
+
/** 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. */
|
|
326
328
|
INTAKE_FORM_MISSING = "INTAKE_FORM_MISSING",
|
|
327
|
-
/** 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
|
|
329
|
+
/** 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. */
|
|
328
330
|
RECENT_ENTRY = "RECENT_ENTRY",
|
|
329
|
-
/** 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
|
|
331
|
+
/** 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`. */
|
|
330
332
|
PRICING_PLANS_UNAVAILABLE = "PRICING_PLANS_UNAVAILABLE",
|
|
331
|
-
/** 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
|
|
333
|
+
/** 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. */
|
|
332
334
|
CONTACTS_UNAVAILABLE = "CONTACTS_UNAVAILABLE"
|
|
333
335
|
}
|
|
334
336
|
/** @enumType */
|
|
@@ -340,7 +342,7 @@ interface MissingIntakeForm {
|
|
|
340
342
|
* @format GUID
|
|
341
343
|
*/
|
|
342
344
|
formId?: string;
|
|
343
|
-
/** 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
|
|
345
|
+
/** 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. */
|
|
344
346
|
blocksEntry?: boolean;
|
|
345
347
|
}
|
|
346
348
|
/**
|
|
@@ -404,13 +406,13 @@ declare enum PlanBenefitType {
|
|
|
404
406
|
type PlanBenefitTypeWithLiterals = PlanBenefitType | 'CREDIT' | 'UNLIMITED';
|
|
405
407
|
/** Why a Pricing Plans benefit does not admit. Where Pricing Plans has a word for a finding, the value uses it. */
|
|
406
408
|
declare enum PlanBenefitIssue {
|
|
407
|
-
/** 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.
|
|
409
|
+
/** 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. */
|
|
408
410
|
PLAN_NOT_ACTIVE = "PLAN_NOT_ACTIVE",
|
|
409
|
-
/** A credit pack with no credits left, as Pricing Plans reports.
|
|
411
|
+
/** A credit pack with no credits left, as Pricing Plans reports. Site collaborators override, or sell credits and create a new arrival. */
|
|
410
412
|
NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
|
|
411
413
|
/** 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`. */
|
|
412
414
|
OUTSIDE_ACCESS_HOURS = "OUTSIDE_ACCESS_HOURS",
|
|
413
|
-
/** 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.
|
|
415
|
+
/** 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. */
|
|
414
416
|
USAGE_LIMIT_REACHED = "USAGE_LIMIT_REACHED"
|
|
415
417
|
}
|
|
416
418
|
/** @enumType */
|
|
@@ -458,7 +460,7 @@ interface ScheduledEvent {
|
|
|
458
460
|
}
|
|
459
461
|
/** Why a scheduled event does not admit. At most one per event; `OUTSIDE_ENTRY_WINDOW` wins over `PENDING_CONFIRMATION`. */
|
|
460
462
|
declare enum ScheduledEventIssue {
|
|
461
|
-
/** 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.
|
|
463
|
+
/** 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. */
|
|
462
464
|
PENDING_CONFIRMATION = "PENDING_CONFIRMATION",
|
|
463
465
|
/** 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. */
|
|
464
466
|
OUTSIDE_ENTRY_WINDOW = "OUTSIDE_ENTRY_WINDOW"
|
|
@@ -467,9 +469,9 @@ declare enum ScheduledEventIssue {
|
|
|
467
469
|
type ScheduledEventIssueWithLiterals = ScheduledEventIssue | 'PENDING_CONFIRMATION' | 'OUTSIDE_ENTRY_WINDOW';
|
|
468
470
|
/** Whether access was given. */
|
|
469
471
|
declare enum Status {
|
|
470
|
-
/** Access was given: the person entered. Either the engine found
|
|
472
|
+
/** 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. */
|
|
471
473
|
GRANTED = "GRANTED",
|
|
472
|
-
/** Access was not given: the engine found an issue that declines (see `EntryIssue`), and
|
|
474
|
+
/** 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`. */
|
|
473
475
|
DENIED = "DENIED"
|
|
474
476
|
}
|
|
475
477
|
/** @enumType */
|
|
@@ -482,7 +484,7 @@ interface CreateArrivalRequest {
|
|
|
482
484
|
*/
|
|
483
485
|
arrival: Arrival;
|
|
484
486
|
/**
|
|
485
|
-
*
|
|
487
|
+
* 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
|
|
486
488
|
* evaluation grants, it is ignored; when it denies, the arrival is written `GRANTED` with `overrideReason` set to
|
|
487
489
|
* `reason`. Only a site user may send it (`OVERRIDE_NOT_ALLOWED` otherwise). On a
|
|
488
490
|
* repeat within 5 seconds onto an existing `DENIED` arrival, it grants that arrival as Override Arrival as Granted
|
|
@@ -490,10 +492,10 @@ interface CreateArrivalRequest {
|
|
|
490
492
|
*/
|
|
491
493
|
denialOverride?: DenialOverride;
|
|
492
494
|
}
|
|
493
|
-
/**
|
|
495
|
+
/** 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. */
|
|
494
496
|
interface DenialOverride {
|
|
495
497
|
/**
|
|
496
|
-
* Why
|
|
498
|
+
* 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.
|
|
497
499
|
* @maxLength 500
|
|
498
500
|
*/
|
|
499
501
|
reason?: string | null;
|
|
@@ -509,7 +511,7 @@ interface OverrideArrivalAsGrantedRequest {
|
|
|
509
511
|
*/
|
|
510
512
|
arrivalId: string;
|
|
511
513
|
/**
|
|
512
|
-
* Why
|
|
514
|
+
* 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.
|
|
513
515
|
* @maxLength 500
|
|
514
516
|
*/
|
|
515
517
|
overrideReason?: string | null;
|
|
@@ -564,7 +566,7 @@ interface ScheduledEventSearchWindow {
|
|
|
564
566
|
interface CheckEligibilityResponse {
|
|
565
567
|
/** 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. */
|
|
566
568
|
contactDetails?: ContactDetails;
|
|
567
|
-
/** 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;
|
|
569
|
+
/** 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`. */
|
|
568
570
|
status?: StatusWithLiterals;
|
|
569
571
|
/**
|
|
570
572
|
* What the engine found — the same message Create Arrival records on the arrival: the entry's `issues`, the
|
|
@@ -575,7 +577,7 @@ interface CheckEligibilityResponse {
|
|
|
575
577
|
eligibilityDetails?: EligibilityDetails;
|
|
576
578
|
/**
|
|
577
579
|
* Present when `eligibilityDetails.issues` contains `RECENT_ENTRY`: the earlier arrival that granted this person this
|
|
578
|
-
* area within the last 15 minutes, for an app to tell
|
|
580
|
+
* area within the last 15 minutes, for an app to tell site collaborators "let in 4 minutes ago".
|
|
579
581
|
*/
|
|
580
582
|
recentArrival?: RecentArrival;
|
|
581
583
|
}
|
|
@@ -586,7 +588,7 @@ interface RecentArrival {
|
|
|
586
588
|
* @format GUID
|
|
587
589
|
*/
|
|
588
590
|
arrivalId?: string;
|
|
589
|
-
/** That arrival's `createdDate`, for an app to tell
|
|
591
|
+
/** 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`. */
|
|
590
592
|
_createdDate?: Date | null;
|
|
591
593
|
}
|
|
592
594
|
interface GetArrivalRequest {
|
|
@@ -910,7 +912,7 @@ type TypeWithLiterals = Type | 'NFC_CARD';
|
|
|
910
912
|
interface CheckEligibilityByCredentialResponse {
|
|
911
913
|
/** 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. */
|
|
912
914
|
contactDetails?: ContactDetails;
|
|
913
|
-
/** 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;
|
|
915
|
+
/** 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. */
|
|
914
916
|
status?: StatusWithLiterals;
|
|
915
917
|
/**
|
|
916
918
|
* What the engine found — the same message Create Arrival records on the arrival: the entry's `issues`, the
|
|
@@ -921,7 +923,7 @@ interface CheckEligibilityByCredentialResponse {
|
|
|
921
923
|
eligibilityDetails?: EligibilityDetails;
|
|
922
924
|
/**
|
|
923
925
|
* Present when `eligibilityDetails.issues` contains `RECENT_ENTRY`: the earlier arrival that granted this person this
|
|
924
|
-
* area within the last 15 minutes, for an app to tell
|
|
926
|
+
* area within the last 15 minutes, for an app to tell site collaborators "let in 4 minutes ago".
|
|
925
927
|
*/
|
|
926
928
|
recentArrival?: RecentArrival;
|
|
927
929
|
}
|
|
@@ -951,7 +953,7 @@ interface CreateArrivalByCredentialRequestCredentialOneOf {
|
|
|
951
953
|
}
|
|
952
954
|
interface CreateArrivalByCredentialResponse {
|
|
953
955
|
/**
|
|
954
|
-
* The created arrival, with `source.identifiedBy` `BY_TOKEN` or `BY_NFC_CARD`. `GRANTED`: the person is in. `DENIED`: show
|
|
956
|
+
* 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
|
|
955
957
|
* the person in anyway is Override Arrival as Granted with this arrival's ID.
|
|
956
958
|
*/
|
|
957
959
|
arrival?: Arrival;
|
|
@@ -1080,7 +1082,7 @@ type CreateArrivalByCredentialApplicationErrors = {
|
|
|
1080
1082
|
};
|
|
1081
1083
|
interface CreateArrivalOptions {
|
|
1082
1084
|
/**
|
|
1083
|
-
*
|
|
1085
|
+
* 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
|
|
1084
1086
|
* evaluation grants, it is ignored; when it denies, the arrival is written `GRANTED` with `overrideReason` set to
|
|
1085
1087
|
* `reason`. Only a site user may send it (`OVERRIDE_NOT_ALLOWED` otherwise). On a
|
|
1086
1088
|
* repeat within 5 seconds onto an existing `DENIED` arrival, it grants that arrival as Override Arrival as Granted
|
|
@@ -1090,7 +1092,7 @@ interface CreateArrivalOptions {
|
|
|
1090
1092
|
}
|
|
1091
1093
|
interface OverrideArrivalAsGrantedOptions {
|
|
1092
1094
|
/**
|
|
1093
|
-
* Why
|
|
1095
|
+
* 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.
|
|
1094
1096
|
* @maxLength 500
|
|
1095
1097
|
*/
|
|
1096
1098
|
overrideReason?: string | null;
|