@wix/auto_sdk_arrivals_arrivals 1.0.2 → 1.0.4
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 +2 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +41 -28
- package/build/cjs/index.typings.js +2 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +41 -28
- package/build/cjs/meta.js +2 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +2 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +41 -28
- package/build/es/index.typings.mjs +2 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +41 -28
- package/build/es/meta.mjs +2 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +16 -10
- package/build/internal/cjs/index.typings.d.ts +57 -38
- package/build/internal/cjs/meta.d.ts +41 -28
- package/build/internal/es/index.d.mts +16 -10
- package/build/internal/es/index.typings.d.mts +57 -38
- package/build/internal/es/meta.d.mts +41 -28
- package/package.json +4 -4
|
@@ -100,7 +100,9 @@ interface ArrivalGrantedByOneOf {
|
|
|
100
100
|
* The person who arrived: their contact ID, and their name and picture as the Contacts API held them when the
|
|
101
101
|
* arrival was written. The name and picture are a snapshot — for history and live lists without a Contacts
|
|
102
102
|
* read; a later change in Contacts does not update them. A contact merge moves `contactId` to the surviving
|
|
103
|
-
* contact and leaves the snapshot as it was. Named as Bookings names the same thing on a booking.
|
|
103
|
+
* contact and leaves the snapshot as it was. Named as Bookings names the same thing on a booking. The name and
|
|
104
|
+
* picture are absent when the contact has none, or when Contacts did not answer (`CONTACTS_UNAVAILABLE` in
|
|
105
|
+
* `eligibilityDetails.issues`).
|
|
104
106
|
*/
|
|
105
107
|
interface ContactDetails {
|
|
106
108
|
/**
|
|
@@ -259,8 +261,9 @@ interface EligibilityDetails {
|
|
|
259
261
|
* The issues of the entry as a whole. The issues decide the status the evaluation gives: `GRANTED` when there are none, or only
|
|
260
262
|
* `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. When staff let the person in —
|
|
261
263
|
* afterwards with Override Arrival as Granted, or beforehand with `denialOverride` on Create Arrival — the status is
|
|
262
|
-
* `GRANTED` whatever the issues, and the issues show what was overridden. `PRICING_PLANS_UNAVAILABLE`
|
|
263
|
-
* only that way, with `denialOverride`, since otherwise
|
|
264
|
+
* `GRANTED` whatever the issues, and the issues show what was overridden. On an arrival, `PRICING_PLANS_UNAVAILABLE`
|
|
265
|
+
* and `CONTACTS_UNAVAILABLE` are found only that way, with `denialOverride`, since otherwise Create Arrival fails with
|
|
266
|
+
* `UNAVAILABLE`; Check Eligibility reports them without failing. A `DENIED` arrival always has at
|
|
264
267
|
* least one. Empty when nothing stood in the way.
|
|
265
268
|
* @maxSize 3
|
|
266
269
|
*/
|
|
@@ -273,8 +276,10 @@ interface EligibilityDetails {
|
|
|
273
276
|
/**
|
|
274
277
|
* The person's Pricing Plans benefits allowed into this area, each a `planBenefit` with its own `issues`: empty
|
|
275
278
|
* means the benefit admits. Listed on a `DENIED` arrival too, admitting ones included, so an override can take one
|
|
276
|
-
* later. The grant picks one by the rule on the arrival's `planBenefit` and records it there.
|
|
277
|
-
*
|
|
279
|
+
* later. The grant picks one by the rule on the arrival's `planBenefit` and records it there. Listed in the order of
|
|
280
|
+
* that rule, so the first is the one a grant takes; at most 20 are listed, the first 20 in that order. Empty when the
|
|
281
|
+
* person holds no benefit for this area, and when the status of the contact's site member (`memberInfo.status` in
|
|
282
|
+
* Contacts) is `BLOCKED`, `DELETED` or `OFFLINE`, since such a member holds no plans here.
|
|
278
283
|
* @maxSize 20
|
|
279
284
|
*/
|
|
280
285
|
planBenefits?: PlanBenefitEligibility[];
|
|
@@ -293,8 +298,9 @@ interface EligibilityDetails {
|
|
|
293
298
|
* An issue of the entry as a whole. The issues decide the status the evaluation gives: `GRANTED` when there are none, or only
|
|
294
299
|
* `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. When staff let the person in —
|
|
295
300
|
* afterwards with Override Arrival as Granted, or beforehand with `denialOverride` on Create Arrival — the status is
|
|
296
|
-
* `GRANTED` whatever the issues, and the issues show what was overridden. `PRICING_PLANS_UNAVAILABLE`
|
|
297
|
-
* only that way, with `denialOverride`, since otherwise
|
|
301
|
+
* `GRANTED` whatever the issues, and the issues show what was overridden. On an arrival, `PRICING_PLANS_UNAVAILABLE`
|
|
302
|
+
* and `CONTACTS_UNAVAILABLE` are found only that way, with `denialOverride`, since otherwise Create Arrival fails with
|
|
303
|
+
* `UNAVAILABLE`; Check Eligibility reports them without failing. Why a single benefit or event does not admit is on
|
|
298
304
|
* that item (`PlanBenefitIssue`, `ScheduledEventIssue`), not here.
|
|
299
305
|
*/
|
|
300
306
|
declare enum EntryIssue {
|
|
@@ -302,22 +308,27 @@ declare enum EntryIssue {
|
|
|
302
308
|
* No grant the person holds admits them into this area now. A grant is what can grant entry — a plan benefit
|
|
303
309
|
* (`planBenefits`) or a scheduled event they are booked on (`scheduledEvents`) — the same two kinds an arrival
|
|
304
310
|
* records in `planBenefit` or `scheduledEvent` once granted. Either nothing was found — `planBenefits` and
|
|
305
|
-
* `scheduledEvents` are empty — or everything found has an issue of its own, which says why.
|
|
311
|
+
* `scheduledEvents` are empty — or everything found has an issue of its own, which says why. A contact whose site
|
|
312
|
+
* member's status (`memberInfo.status` in Contacts) is `BLOCKED`, `DELETED` or `OFFLINE` holds no plans here, so it
|
|
313
|
+
* finds none. Also reported when a
|
|
306
314
|
* credit pack would admit but the person is booked on an event here and now that still waits for approval: no
|
|
307
315
|
* credit is spent while the booking may be approved moments later (the event carries `PENDING_CONFIRMATION`).
|
|
308
316
|
* Declines at creation; staff override, or sell a plan, approve the booking or renew the plan and create a new
|
|
309
|
-
* arrival. Not reported when Pricing Plans did not answer: `PRICING_PLANS_UNAVAILABLE`
|
|
317
|
+
* arrival. Not reported when Pricing Plans or Contacts did not answer: `PRICING_PLANS_UNAVAILABLE` or
|
|
318
|
+
* `CONTACTS_UNAVAILABLE` takes its place.
|
|
310
319
|
*/
|
|
311
320
|
NO_ELIGIBLE_GRANT = "NO_ELIGIBLE_GRANT",
|
|
312
321
|
/** 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 staff can chase the paperwork. */
|
|
313
322
|
INTAKE_FORM_MISSING = "INTAKE_FORM_MISSING",
|
|
314
323
|
/** 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. Declines at creation; the override spends a credit. Not reported when nothing would be spent twice (an unlimited plan, a scheduled event). */
|
|
315
324
|
RECENT_ENTRY = "RECENT_ENTRY",
|
|
316
|
-
/** Pricing Plans did not answer, so plan benefits were not checked.
|
|
317
|
-
PRICING_PLANS_UNAVAILABLE = "PRICING_PLANS_UNAVAILABLE"
|
|
325
|
+
/** 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 staff 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`. */
|
|
326
|
+
PRICING_PLANS_UNAVAILABLE = "PRICING_PLANS_UNAVAILABLE",
|
|
327
|
+
/** 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 staff 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. */
|
|
328
|
+
CONTACTS_UNAVAILABLE = "CONTACTS_UNAVAILABLE"
|
|
318
329
|
}
|
|
319
330
|
/** @enumType */
|
|
320
|
-
type EntryIssueWithLiterals = EntryIssue | 'NO_ELIGIBLE_GRANT' | 'INTAKE_FORM_MISSING' | 'RECENT_ENTRY' | 'PRICING_PLANS_UNAVAILABLE';
|
|
331
|
+
type EntryIssueWithLiterals = EntryIssue | 'NO_ELIGIBLE_GRANT' | 'INTAKE_FORM_MISSING' | 'RECENT_ENTRY' | 'PRICING_PLANS_UNAVAILABLE' | 'CONTACTS_UNAVAILABLE';
|
|
321
332
|
/** An intake form the area's policy requires that the person has no valid submission for. */
|
|
322
333
|
interface MissingIntakeForm {
|
|
323
334
|
/**
|
|
@@ -389,15 +400,17 @@ declare enum PlanBenefitType {
|
|
|
389
400
|
type PlanBenefitTypeWithLiterals = PlanBenefitType | 'CREDIT' | 'UNLIMITED';
|
|
390
401
|
/** Why a Pricing Plans benefit does not admit. Where Pricing Plans has a word for a finding, the value uses it. */
|
|
391
402
|
declare enum PlanBenefitIssue {
|
|
392
|
-
/** The benefit's plan is not active — ended, cancelled or
|
|
403
|
+
/** 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. Staff override, or renew the plan and create a new arrival. */
|
|
393
404
|
PLAN_NOT_ACTIVE = "PLAN_NOT_ACTIVE",
|
|
394
405
|
/** A credit pack with no credits left, as Pricing Plans reports. Staff override, or sell credits and create a new arrival. */
|
|
395
406
|
NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
|
|
396
|
-
/** The plan's usage policy does not allow entry at this hour or on this day, as Pricing Plans reports. */
|
|
397
|
-
OUTSIDE_ACCESS_HOURS = "OUTSIDE_ACCESS_HOURS"
|
|
407
|
+
/** 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`. */
|
|
408
|
+
OUTSIDE_ACCESS_HOURS = "OUTSIDE_ACCESS_HOURS",
|
|
409
|
+
/** 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. Staff override, or the client comes back in the next period. */
|
|
410
|
+
USAGE_LIMIT_REACHED = "USAGE_LIMIT_REACHED"
|
|
398
411
|
}
|
|
399
412
|
/** @enumType */
|
|
400
|
-
type PlanBenefitIssueWithLiterals = PlanBenefitIssue | 'PLAN_NOT_ACTIVE' | 'NOT_ENOUGH_BALANCE' | 'OUTSIDE_ACCESS_HOURS';
|
|
413
|
+
type PlanBenefitIssueWithLiterals = PlanBenefitIssue | 'PLAN_NOT_ACTIVE' | 'NOT_ENOUGH_BALANCE' | 'OUTSIDE_ACCESS_HOURS' | 'USAGE_LIMIT_REACHED';
|
|
401
414
|
/**
|
|
402
415
|
* A scheduled event the engine found for the person at this area, with whether it admits: the event itself, of
|
|
403
416
|
* the same type as the arrival's `scheduledEvent`, and its `issues`.
|
|
@@ -554,9 +567,9 @@ interface ScheduledEventSearchWindow {
|
|
|
554
567
|
* returns the same fields.
|
|
555
568
|
*/
|
|
556
569
|
interface CheckEligibilityResponse {
|
|
557
|
-
/** The contact given: their contact ID, name and picture as Contacts holds them now. When creating an arrival, send `arrival.contactDetails.contactId`; the server fills in the rest. */
|
|
570
|
+
/** 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. */
|
|
558
571
|
contactDetails?: ContactDetails;
|
|
559
|
-
/** 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. */
|
|
572
|
+
/** 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 failed and can be tried again, not a denial. */
|
|
560
573
|
status?: StatusWithLiterals;
|
|
561
574
|
/**
|
|
562
575
|
* What the engine found — the same message Create Arrival records on the arrival: the entry's `issues`, the
|
|
@@ -898,9 +911,9 @@ type TypeWithLiterals = Type | 'NFC_CARD';
|
|
|
898
911
|
* area's own entry window.
|
|
899
912
|
*/
|
|
900
913
|
interface CheckEligibilityByCredentialResponse {
|
|
901
|
-
/** The holder of the presented credential: their contact ID, name and picture as Contacts holds them now. */
|
|
914
|
+
/** 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. */
|
|
902
915
|
contactDetails?: ContactDetails;
|
|
903
|
-
/** 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. */
|
|
916
|
+
/** 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 failed and can be tried again, not a denial. */
|
|
904
917
|
status?: StatusWithLiterals;
|
|
905
918
|
/**
|
|
906
919
|
* What the engine found — the same message Create Arrival records on the arrival: the entry's `issues`, the
|
|
@@ -967,6 +980,10 @@ type CreateArrivalApplicationErrors = {
|
|
|
967
980
|
code?: 'PRICING_PLANS_UNAVAILABLE';
|
|
968
981
|
description?: string;
|
|
969
982
|
data?: Record<string, any>;
|
|
983
|
+
} | {
|
|
984
|
+
code?: 'CONTACTS_UNAVAILABLE';
|
|
985
|
+
description?: string;
|
|
986
|
+
data?: Record<string, any>;
|
|
970
987
|
};
|
|
971
988
|
/** @docsIgnore */
|
|
972
989
|
type OverrideArrivalAsGrantedApplicationErrors = {
|
|
@@ -995,10 +1012,6 @@ type CheckEligibilityApplicationErrors = {
|
|
|
995
1012
|
code?: 'AREA_ARCHIVED';
|
|
996
1013
|
description?: string;
|
|
997
1014
|
data?: Record<string, any>;
|
|
998
|
-
} | {
|
|
999
|
-
code?: 'PRICING_PLANS_UNAVAILABLE';
|
|
1000
|
-
description?: string;
|
|
1001
|
-
data?: Record<string, any>;
|
|
1002
1015
|
};
|
|
1003
1016
|
/** @docsIgnore */
|
|
1004
1017
|
type CountArrivalsApplicationErrors = {
|
|
@@ -1027,10 +1040,6 @@ type CheckEligibilityByCredentialApplicationErrors = {
|
|
|
1027
1040
|
code?: 'ENTRANCE_NOT_FOUND';
|
|
1028
1041
|
description?: string;
|
|
1029
1042
|
data?: Record<string, any>;
|
|
1030
|
-
} | {
|
|
1031
|
-
code?: 'PRICING_PLANS_UNAVAILABLE';
|
|
1032
|
-
description?: string;
|
|
1033
|
-
data?: Record<string, any>;
|
|
1034
1043
|
};
|
|
1035
1044
|
/** @docsIgnore */
|
|
1036
1045
|
type CreateArrivalByCredentialApplicationErrors = {
|
|
@@ -1057,6 +1066,10 @@ type CreateArrivalByCredentialApplicationErrors = {
|
|
|
1057
1066
|
code?: 'PRICING_PLANS_UNAVAILABLE';
|
|
1058
1067
|
description?: string;
|
|
1059
1068
|
data?: Record<string, any>;
|
|
1069
|
+
} | {
|
|
1070
|
+
code?: 'CONTACTS_UNAVAILABLE';
|
|
1071
|
+
description?: string;
|
|
1072
|
+
data?: Record<string, any>;
|
|
1060
1073
|
};
|
|
1061
1074
|
/**
|
|
1062
1075
|
* Evaluates a person for an area and writes one arrival, whatever it finds about them. For the flows that call
|
|
@@ -1079,10 +1092,11 @@ type CreateArrivalByCredentialApplicationErrors = {
|
|
|
1079
1092
|
* A call for the same contact and entrance by the same caller within 5 seconds of an arrival returns that
|
|
1080
1093
|
* arrival unchanged — unless it carries `denialOverride` and that arrival is `DENIED`: then the override is applied
|
|
1081
1094
|
* to that arrival exactly as Override Arrival as Granted applies it, from its stored evaluation, and Arrival Updated
|
|
1082
|
-
* and Arrival Granted fire instead of Arrival Created. On a `GRANTED` arrival `denialOverride` is ignored. `CONTACT_NOT_FOUND` and `ENTRANCE_NOT_FOUND` record nothing. When Pricing Plans cannot be
|
|
1083
|
-
* reached, the call fails with `UNAVAILABLE` (`PRICING_PLANS_UNAVAILABLE`
|
|
1084
|
-
*
|
|
1085
|
-
* benefit, and nothing redeemed.
|
|
1095
|
+
* and Arrival Granted fire instead of Arrival Created. On a `GRANTED` arrival `denialOverride` is ignored. `CONTACT_NOT_FOUND` and `ENTRANCE_NOT_FOUND` record nothing. When Pricing Plans or Contacts cannot be
|
|
1096
|
+
* reached and nothing else admits the person, the call fails with `UNAVAILABLE` (`PRICING_PLANS_UNAVAILABLE` or
|
|
1097
|
+
* `CONTACTS_UNAVAILABLE`) and records nothing — unless it carries `denialOverride`: staff have decided, so the
|
|
1098
|
+
* arrival is written `GRANTED` with that outage in its issues, no plan benefit, and nothing redeemed. Without
|
|
1099
|
+
* Contacts the arrival also has no name or picture.
|
|
1086
1100
|
* @param arrival - Arrival to create. Only `contactDetails.contactId` and `area.entranceId` are read; every other field —
|
|
1087
1101
|
* the rest of `contactDetails`, `eligibilityDetails`, `status`, `source`, the area's ID, name and location, the
|
|
1088
1102
|
* entrance's name, what granted the entry — is set by the server.
|
|
@@ -1153,9 +1167,12 @@ interface OverrideArrivalAsGrantedOptions {
|
|
|
1153
1167
|
* derive from it, and the contact's `contactDetails` (name and picture) as Contacts holds them now. With
|
|
1154
1168
|
* `scheduledEventSearchWindow`, events found only in that window are also listed, with `OUTSIDE_ENTRY_WINDOW`.
|
|
1155
1169
|
* Scheduled events are read only while the area's `policy.scheduledEventsPolicy.entryGrantingAppIds` is not
|
|
1156
|
-
* empty. A `contactId` that is not a contact of the site fails with `CONTACT_NOT_FOUND`,
|
|
1157
|
-
*
|
|
1158
|
-
* reached.
|
|
1170
|
+
* empty. A `contactId` that is not a contact of the site fails with `CONTACT_NOT_FOUND`, including a contact that was
|
|
1171
|
+
* merged into another, and an `entranceId` that names no entrance with `ENTRANCE_NOT_FOUND`. When Pricing Plans or
|
|
1172
|
+
* Contacts cannot be reached the call does not fail: the outage is reported in `eligibilityDetails.issues`
|
|
1173
|
+
* (`PRICING_PLANS_UNAVAILABLE` or `CONTACTS_UNAVAILABLE`). The status is then `DENIED`, unless something else admits
|
|
1174
|
+
* the person. Create Arrival, in the same case, fails with `UNAVAILABLE` unless it carries `denialOverride`. Without Contacts,
|
|
1175
|
+
* `contactDetails` has the contact ID alone.
|
|
1159
1176
|
* Nothing is stored. This method reveals plan state, so it has its own permission rather than the read
|
|
1160
1177
|
* permission of arrivals.
|
|
1161
1178
|
* @param contactId - ID of the contact whose eligibility to check.
|
|
@@ -1411,7 +1428,8 @@ interface CountArrivalsOptions {
|
|
|
1411
1428
|
* against the area's own entry window, so that it predicts the Create Arrival that follows the scan. A token that does not
|
|
1412
1429
|
* resolve to a live credential fails with `BAD_SIGNATURE` or `TOKEN_REVOKED`; an identifier that belongs to no
|
|
1413
1430
|
* credential fails with `IDENTIFIER_NOT_FOUND`, and an `entranceId` that names no entrance with `ENTRANCE_NOT_FOUND`; when
|
|
1414
|
-
* Pricing Plans cannot be reached the call
|
|
1431
|
+
* Pricing Plans or Contacts cannot be reached the call does not fail and reports the outage in
|
|
1432
|
+
* `eligibilityDetails.issues`, as Check Eligibility does. This method
|
|
1415
1433
|
* reveals plan state, so it has its own permission rather
|
|
1416
1434
|
* than the read permission of arrivals.
|
|
1417
1435
|
* @internal
|
|
@@ -1461,8 +1479,9 @@ interface CheckEligibilityByCredentialOptionsCredentialOneOf {
|
|
|
1461
1479
|
* that belongs to none with `IDENTIFIER_NOT_FOUND`, and an `entranceId` that names no entrance with
|
|
1462
1480
|
* `ENTRANCE_NOT_FOUND`; nothing is recorded. The arrival is recorded at the entrance, in the area it belongs to,
|
|
1463
1481
|
* with `source.identifiedBy` `BY_TOKEN` or `BY_NFC_CARD` and
|
|
1464
|
-
* `source.createdBy` naming the staff member or the device. When Pricing Plans cannot be reached
|
|
1465
|
-
* call fails with `UNAVAILABLE` (`PRICING_PLANS_UNAVAILABLE`
|
|
1482
|
+
* `source.createdBy` naming the staff member or the device. When Pricing Plans or Contacts cannot be reached and
|
|
1483
|
+
* nothing else admits the person, the call fails with `UNAVAILABLE` (`PRICING_PLANS_UNAVAILABLE` or
|
|
1484
|
+
* `CONTACTS_UNAVAILABLE`) and records nothing.
|
|
1466
1485
|
* @internal
|
|
1467
1486
|
* @documentationMaturity preview
|
|
1468
1487
|
* @requiredField options
|
|
@@ -100,7 +100,9 @@ interface ArrivalGrantedByOneOf {
|
|
|
100
100
|
* The person who arrived: their contact ID, and their name and picture as the Contacts API held them when the
|
|
101
101
|
* arrival was written. The name and picture are a snapshot — for history and live lists without a Contacts
|
|
102
102
|
* read; a later change in Contacts does not update them. A contact merge moves `contactId` to the surviving
|
|
103
|
-
* contact and leaves the snapshot as it was. Named as Bookings names the same thing on a booking.
|
|
103
|
+
* contact and leaves the snapshot as it was. Named as Bookings names the same thing on a booking. The name and
|
|
104
|
+
* picture are absent when the contact has none, or when Contacts did not answer (`CONTACTS_UNAVAILABLE` in
|
|
105
|
+
* `eligibilityDetails.issues`).
|
|
104
106
|
*/
|
|
105
107
|
interface ContactDetails {
|
|
106
108
|
/**
|
|
@@ -293,8 +295,9 @@ interface EligibilityDetails {
|
|
|
293
295
|
* The issues of the entry as a whole. The issues decide the status the evaluation gives: `GRANTED` when there are none, or only
|
|
294
296
|
* `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. When staff let the person in —
|
|
295
297
|
* afterwards with Override Arrival as Granted, or beforehand with `denialOverride` on Create Arrival — the status is
|
|
296
|
-
* `GRANTED` whatever the issues, and the issues show what was overridden. `PRICING_PLANS_UNAVAILABLE`
|
|
297
|
-
* only that way, with `denialOverride`, since otherwise
|
|
298
|
+
* `GRANTED` whatever the issues, and the issues show what was overridden. On an arrival, `PRICING_PLANS_UNAVAILABLE`
|
|
299
|
+
* and `CONTACTS_UNAVAILABLE` are found only that way, with `denialOverride`, since otherwise Create Arrival fails with
|
|
300
|
+
* `UNAVAILABLE`; Check Eligibility reports them without failing. A `DENIED` arrival always has at
|
|
298
301
|
* least one. Empty when nothing stood in the way.
|
|
299
302
|
* @maxSize 3
|
|
300
303
|
*/
|
|
@@ -307,8 +310,10 @@ interface EligibilityDetails {
|
|
|
307
310
|
/**
|
|
308
311
|
* The person's Pricing Plans benefits allowed into this area, each a `planBenefit` with its own `issues`: empty
|
|
309
312
|
* means the benefit admits. Listed on a `DENIED` arrival too, admitting ones included, so an override can take one
|
|
310
|
-
* later. The grant picks one by the rule on the arrival's `planBenefit` and records it there.
|
|
311
|
-
*
|
|
313
|
+
* later. The grant picks one by the rule on the arrival's `planBenefit` and records it there. Listed in the order of
|
|
314
|
+
* that rule, so the first is the one a grant takes; at most 20 are listed, the first 20 in that order. Empty when the
|
|
315
|
+
* person holds no benefit for this area, and when the status of the contact's site member (`memberInfo.status` in
|
|
316
|
+
* Contacts) is `BLOCKED`, `DELETED` or `OFFLINE`, since such a member holds no plans here.
|
|
312
317
|
* @maxSize 20
|
|
313
318
|
*/
|
|
314
319
|
planBenefits?: PlanBenefitEligibility[];
|
|
@@ -327,8 +332,9 @@ interface EligibilityDetails {
|
|
|
327
332
|
* An issue of the entry as a whole. The issues decide the status the evaluation gives: `GRANTED` when there are none, or only
|
|
328
333
|
* `INTAKE_FORM_MISSING` for forms that do not block entry; `DENIED` otherwise. When staff let the person in —
|
|
329
334
|
* afterwards with Override Arrival as Granted, or beforehand with `denialOverride` on Create Arrival — the status is
|
|
330
|
-
* `GRANTED` whatever the issues, and the issues show what was overridden. `PRICING_PLANS_UNAVAILABLE`
|
|
331
|
-
* only that way, with `denialOverride`, since otherwise
|
|
335
|
+
* `GRANTED` whatever the issues, and the issues show what was overridden. On an arrival, `PRICING_PLANS_UNAVAILABLE`
|
|
336
|
+
* and `CONTACTS_UNAVAILABLE` are found only that way, with `denialOverride`, since otherwise Create Arrival fails with
|
|
337
|
+
* `UNAVAILABLE`; Check Eligibility reports them without failing. Why a single benefit or event does not admit is on
|
|
332
338
|
* that item (`PlanBenefitIssue`, `ScheduledEventIssue`), not here.
|
|
333
339
|
*/
|
|
334
340
|
declare enum EntryIssue {
|
|
@@ -336,22 +342,27 @@ declare enum EntryIssue {
|
|
|
336
342
|
* No grant the person holds admits them into this area now. A grant is what can grant entry — a plan benefit
|
|
337
343
|
* (`planBenefits`) or a scheduled event they are booked on (`scheduledEvents`) — the same two kinds an arrival
|
|
338
344
|
* records in `planBenefit` or `scheduledEvent` once granted. Either nothing was found — `planBenefits` and
|
|
339
|
-
* `scheduledEvents` are empty — or everything found has an issue of its own, which says why.
|
|
345
|
+
* `scheduledEvents` are empty — or everything found has an issue of its own, which says why. A contact whose site
|
|
346
|
+
* member's status (`memberInfo.status` in Contacts) is `BLOCKED`, `DELETED` or `OFFLINE` holds no plans here, so it
|
|
347
|
+
* finds none. Also reported when a
|
|
340
348
|
* credit pack would admit but the person is booked on an event here and now that still waits for approval: no
|
|
341
349
|
* credit is spent while the booking may be approved moments later (the event carries `PENDING_CONFIRMATION`).
|
|
342
350
|
* Declines at creation; staff override, or sell a plan, approve the booking or renew the plan and create a new
|
|
343
|
-
* arrival. Not reported when Pricing Plans did not answer: `PRICING_PLANS_UNAVAILABLE`
|
|
351
|
+
* arrival. Not reported when Pricing Plans or Contacts did not answer: `PRICING_PLANS_UNAVAILABLE` or
|
|
352
|
+
* `CONTACTS_UNAVAILABLE` takes its place.
|
|
344
353
|
*/
|
|
345
354
|
NO_ELIGIBLE_GRANT = "NO_ELIGIBLE_GRANT",
|
|
346
355
|
/** 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 staff can chase the paperwork. */
|
|
347
356
|
INTAKE_FORM_MISSING = "INTAKE_FORM_MISSING",
|
|
348
357
|
/** 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. Declines at creation; the override spends a credit. Not reported when nothing would be spent twice (an unlimited plan, a scheduled event). */
|
|
349
358
|
RECENT_ENTRY = "RECENT_ENTRY",
|
|
350
|
-
/** Pricing Plans did not answer, so plan benefits were not checked.
|
|
351
|
-
PRICING_PLANS_UNAVAILABLE = "PRICING_PLANS_UNAVAILABLE"
|
|
359
|
+
/** 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 staff 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`. */
|
|
360
|
+
PRICING_PLANS_UNAVAILABLE = "PRICING_PLANS_UNAVAILABLE",
|
|
361
|
+
/** 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 staff 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. */
|
|
362
|
+
CONTACTS_UNAVAILABLE = "CONTACTS_UNAVAILABLE"
|
|
352
363
|
}
|
|
353
364
|
/** @enumType */
|
|
354
|
-
type EntryIssueWithLiterals = EntryIssue | 'NO_ELIGIBLE_GRANT' | 'INTAKE_FORM_MISSING' | 'RECENT_ENTRY' | 'PRICING_PLANS_UNAVAILABLE';
|
|
365
|
+
type EntryIssueWithLiterals = EntryIssue | 'NO_ELIGIBLE_GRANT' | 'INTAKE_FORM_MISSING' | 'RECENT_ENTRY' | 'PRICING_PLANS_UNAVAILABLE' | 'CONTACTS_UNAVAILABLE';
|
|
355
366
|
/** An intake form the area's policy requires that the person has no valid submission for. */
|
|
356
367
|
interface MissingIntakeForm {
|
|
357
368
|
/**
|
|
@@ -423,15 +434,17 @@ declare enum PlanBenefitType {
|
|
|
423
434
|
type PlanBenefitTypeWithLiterals = PlanBenefitType | 'CREDIT' | 'UNLIMITED';
|
|
424
435
|
/** Why a Pricing Plans benefit does not admit. Where Pricing Plans has a word for a finding, the value uses it. */
|
|
425
436
|
declare enum PlanBenefitIssue {
|
|
426
|
-
/** The benefit's plan is not active — ended, cancelled or
|
|
437
|
+
/** 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. Staff override, or renew the plan and create a new arrival. */
|
|
427
438
|
PLAN_NOT_ACTIVE = "PLAN_NOT_ACTIVE",
|
|
428
439
|
/** A credit pack with no credits left, as Pricing Plans reports. Staff override, or sell credits and create a new arrival. */
|
|
429
440
|
NOT_ENOUGH_BALANCE = "NOT_ENOUGH_BALANCE",
|
|
430
|
-
/** The plan's usage policy does not allow entry at this hour or on this day, as Pricing Plans reports. */
|
|
431
|
-
OUTSIDE_ACCESS_HOURS = "OUTSIDE_ACCESS_HOURS"
|
|
441
|
+
/** 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`. */
|
|
442
|
+
OUTSIDE_ACCESS_HOURS = "OUTSIDE_ACCESS_HOURS",
|
|
443
|
+
/** 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. Staff override, or the client comes back in the next period. */
|
|
444
|
+
USAGE_LIMIT_REACHED = "USAGE_LIMIT_REACHED"
|
|
432
445
|
}
|
|
433
446
|
/** @enumType */
|
|
434
|
-
type PlanBenefitIssueWithLiterals = PlanBenefitIssue | 'PLAN_NOT_ACTIVE' | 'NOT_ENOUGH_BALANCE' | 'OUTSIDE_ACCESS_HOURS';
|
|
447
|
+
type PlanBenefitIssueWithLiterals = PlanBenefitIssue | 'PLAN_NOT_ACTIVE' | 'NOT_ENOUGH_BALANCE' | 'OUTSIDE_ACCESS_HOURS' | 'USAGE_LIMIT_REACHED';
|
|
435
448
|
/**
|
|
436
449
|
* A scheduled event the engine found for the person at this area, with whether it admits: the event itself, of
|
|
437
450
|
* the same type as the arrival's `scheduledEvent`, and its `issues`.
|
|
@@ -588,9 +601,9 @@ interface ScheduledEventSearchWindow {
|
|
|
588
601
|
* returns the same fields.
|
|
589
602
|
*/
|
|
590
603
|
interface CheckEligibilityResponse {
|
|
591
|
-
/** The contact given: their contact ID, name and picture as Contacts holds them now. When creating an arrival, send `arrival.contactDetails.contactId`; the server fills in the rest. */
|
|
604
|
+
/** 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. */
|
|
592
605
|
contactDetails?: ContactDetails;
|
|
593
|
-
/** 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. */
|
|
606
|
+
/** 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 failed and can be tried again, not a denial. */
|
|
594
607
|
status?: StatusWithLiterals;
|
|
595
608
|
/**
|
|
596
609
|
* What the engine found — the same message Create Arrival records on the arrival: the entry's `issues`, the
|
|
@@ -976,9 +989,9 @@ type TypeWithLiterals = Type | 'NFC_CARD';
|
|
|
976
989
|
* area's own entry window.
|
|
977
990
|
*/
|
|
978
991
|
interface CheckEligibilityByCredentialResponse {
|
|
979
|
-
/** The holder of the presented credential: their contact ID, name and picture as Contacts holds them now. */
|
|
992
|
+
/** 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. */
|
|
980
993
|
contactDetails?: ContactDetails;
|
|
981
|
-
/** 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. */
|
|
994
|
+
/** 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 failed and can be tried again, not a denial. */
|
|
982
995
|
status?: StatusWithLiterals;
|
|
983
996
|
/**
|
|
984
997
|
* What the engine found — the same message Create Arrival records on the arrival: the entry's `issues`, the
|
|
@@ -1045,6 +1058,10 @@ type CreateArrivalApplicationErrors = {
|
|
|
1045
1058
|
code?: 'PRICING_PLANS_UNAVAILABLE';
|
|
1046
1059
|
description?: string;
|
|
1047
1060
|
data?: Record<string, any>;
|
|
1061
|
+
} | {
|
|
1062
|
+
code?: 'CONTACTS_UNAVAILABLE';
|
|
1063
|
+
description?: string;
|
|
1064
|
+
data?: Record<string, any>;
|
|
1048
1065
|
};
|
|
1049
1066
|
/** @docsIgnore */
|
|
1050
1067
|
type OverrideArrivalAsGrantedApplicationErrors = {
|
|
@@ -1073,10 +1090,6 @@ type CheckEligibilityApplicationErrors = {
|
|
|
1073
1090
|
code?: 'AREA_ARCHIVED';
|
|
1074
1091
|
description?: string;
|
|
1075
1092
|
data?: Record<string, any>;
|
|
1076
|
-
} | {
|
|
1077
|
-
code?: 'PRICING_PLANS_UNAVAILABLE';
|
|
1078
|
-
description?: string;
|
|
1079
|
-
data?: Record<string, any>;
|
|
1080
1093
|
};
|
|
1081
1094
|
/** @docsIgnore */
|
|
1082
1095
|
type CountArrivalsApplicationErrors = {
|
|
@@ -1105,10 +1118,6 @@ type CheckEligibilityByCredentialApplicationErrors = {
|
|
|
1105
1118
|
code?: 'ENTRANCE_NOT_FOUND';
|
|
1106
1119
|
description?: string;
|
|
1107
1120
|
data?: Record<string, any>;
|
|
1108
|
-
} | {
|
|
1109
|
-
code?: 'PRICING_PLANS_UNAVAILABLE';
|
|
1110
|
-
description?: string;
|
|
1111
|
-
data?: Record<string, any>;
|
|
1112
1121
|
};
|
|
1113
1122
|
/** @docsIgnore */
|
|
1114
1123
|
type CreateArrivalByCredentialApplicationErrors = {
|
|
@@ -1135,6 +1144,10 @@ type CreateArrivalByCredentialApplicationErrors = {
|
|
|
1135
1144
|
code?: 'PRICING_PLANS_UNAVAILABLE';
|
|
1136
1145
|
description?: string;
|
|
1137
1146
|
data?: Record<string, any>;
|
|
1147
|
+
} | {
|
|
1148
|
+
code?: 'CONTACTS_UNAVAILABLE';
|
|
1149
|
+
description?: string;
|
|
1150
|
+
data?: Record<string, any>;
|
|
1138
1151
|
};
|
|
1139
1152
|
|
|
1140
1153
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
@@ -26,10 +26,11 @@ interface CreateArrivalSignature {
|
|
|
26
26
|
* A call for the same contact and entrance by the same caller within 5 seconds of an arrival returns that
|
|
27
27
|
* arrival unchanged — unless it carries `denialOverride` and that arrival is `DENIED`: then the override is applied
|
|
28
28
|
* to that arrival exactly as Override Arrival as Granted applies it, from its stored evaluation, and Arrival Updated
|
|
29
|
-
* and Arrival Granted fire instead of Arrival Created. On a `GRANTED` arrival `denialOverride` is ignored. `CONTACT_NOT_FOUND` and `ENTRANCE_NOT_FOUND` record nothing. When Pricing Plans cannot be
|
|
30
|
-
* reached, the call fails with `UNAVAILABLE` (`PRICING_PLANS_UNAVAILABLE`
|
|
31
|
-
*
|
|
32
|
-
* benefit, and nothing redeemed.
|
|
29
|
+
* and Arrival Granted fire instead of Arrival Created. On a `GRANTED` arrival `denialOverride` is ignored. `CONTACT_NOT_FOUND` and `ENTRANCE_NOT_FOUND` record nothing. When Pricing Plans or Contacts cannot be
|
|
30
|
+
* reached and nothing else admits the person, the call fails with `UNAVAILABLE` (`PRICING_PLANS_UNAVAILABLE` or
|
|
31
|
+
* `CONTACTS_UNAVAILABLE`) and records nothing — unless it carries `denialOverride`: staff have decided, so the
|
|
32
|
+
* arrival is written `GRANTED` with that outage in its issues, no plan benefit, and nothing redeemed. Without
|
|
33
|
+
* Contacts the arrival also has no name or picture.
|
|
33
34
|
* @param - Arrival to create. Only `contactDetails.contactId` and `area.entranceId` are read; every other field —
|
|
34
35
|
* the rest of `contactDetails`, `eligibilityDetails`, `status`, `source`, the area's ID, name and location, the
|
|
35
36
|
* entrance's name, what granted the entry — is set by the server.
|
|
@@ -77,9 +78,12 @@ interface CheckEligibilitySignature {
|
|
|
77
78
|
* derive from it, and the contact's `contactDetails` (name and picture) as Contacts holds them now. With
|
|
78
79
|
* `scheduledEventSearchWindow`, events found only in that window are also listed, with `OUTSIDE_ENTRY_WINDOW`.
|
|
79
80
|
* Scheduled events are read only while the area's `policy.scheduledEventsPolicy.entryGrantingAppIds` is not
|
|
80
|
-
* empty. A `contactId` that is not a contact of the site fails with `CONTACT_NOT_FOUND`,
|
|
81
|
-
*
|
|
82
|
-
* reached.
|
|
81
|
+
* empty. A `contactId` that is not a contact of the site fails with `CONTACT_NOT_FOUND`, including a contact that was
|
|
82
|
+
* merged into another, and an `entranceId` that names no entrance with `ENTRANCE_NOT_FOUND`. When Pricing Plans or
|
|
83
|
+
* Contacts cannot be reached the call does not fail: the outage is reported in `eligibilityDetails.issues`
|
|
84
|
+
* (`PRICING_PLANS_UNAVAILABLE` or `CONTACTS_UNAVAILABLE`). The status is then `DENIED`, unless something else admits
|
|
85
|
+
* the person. Create Arrival, in the same case, fails with `UNAVAILABLE` unless it carries `denialOverride`. Without Contacts,
|
|
86
|
+
* `contactDetails` has the contact ID alone.
|
|
83
87
|
* Nothing is stored. This method reveals plan state, so it has its own permission rather than the read
|
|
84
88
|
* permission of arrivals.
|
|
85
89
|
* @param - ID of the contact whose eligibility to check.
|
|
@@ -133,7 +137,8 @@ interface CheckEligibilityByCredentialSignature {
|
|
|
133
137
|
* against the area's own entry window, so that it predicts the Create Arrival that follows the scan. A token that does not
|
|
134
138
|
* resolve to a live credential fails with `BAD_SIGNATURE` or `TOKEN_REVOKED`; an identifier that belongs to no
|
|
135
139
|
* credential fails with `IDENTIFIER_NOT_FOUND`, and an `entranceId` that names no entrance with `ENTRANCE_NOT_FOUND`; when
|
|
136
|
-
* Pricing Plans cannot be reached the call
|
|
140
|
+
* Pricing Plans or Contacts cannot be reached the call does not fail and reports the outage in
|
|
141
|
+
* `eligibilityDetails.issues`, as Check Eligibility does. This method
|
|
137
142
|
* reveals plan state, so it has its own permission rather
|
|
138
143
|
* than the read permission of arrivals.
|
|
139
144
|
* @returns What the engine would find for the credential's holder in this area, and the status Create
|
|
@@ -156,8 +161,9 @@ interface CreateArrivalByCredentialSignature {
|
|
|
156
161
|
* that belongs to none with `IDENTIFIER_NOT_FOUND`, and an `entranceId` that names no entrance with
|
|
157
162
|
* `ENTRANCE_NOT_FOUND`; nothing is recorded. The arrival is recorded at the entrance, in the area it belongs to,
|
|
158
163
|
* with `source.identifiedBy` `BY_TOKEN` or `BY_NFC_CARD` and
|
|
159
|
-
* `source.createdBy` naming the staff member or the device. When Pricing Plans cannot be reached
|
|
160
|
-
* call fails with `UNAVAILABLE` (`PRICING_PLANS_UNAVAILABLE`
|
|
164
|
+
* `source.createdBy` naming the staff member or the device. When Pricing Plans or Contacts cannot be reached and
|
|
165
|
+
* nothing else admits the person, the call fails with `UNAVAILABLE` (`PRICING_PLANS_UNAVAILABLE` or
|
|
166
|
+
* `CONTACTS_UNAVAILABLE`) and records nothing.
|
|
161
167
|
*/
|
|
162
168
|
(options: NonNullablePaths<CreateArrivalByCredentialOptions, `entranceId`, 0>): Promise<NonNullablePaths<CreateArrivalByCredentialResponse, `arrival.planBenefit.poolId` | `arrival.planBenefit.benefitKey` | `arrival.planBenefit.displayName` | `arrival.planBenefit.type` | `arrival.scheduledEvent.eventId` | `arrival.scheduledEvent.displayName` | `arrival.scheduledEvent.appId` | `arrival.contactDetails.contactId` | `arrival.source.identifiedBy` | `arrival.source.createdBy.anonymousVisitorId` | `arrival.source.createdBy.memberId` | `arrival.source.createdBy.wixUserId` | `arrival.source.createdBy.appId` | `arrival.area._id` | `arrival.area.locationId` | `arrival.area.name` | `arrival.area.entranceId` | `arrival.area.entranceName` | `arrival.eligibilityDetails.issues` | `arrival.eligibilityDetails.missingIntakeForms` | `arrival.eligibilityDetails.missingIntakeForms.${number}.formId` | `arrival.eligibilityDetails.missingIntakeForms.${number}.blocksEntry` | `arrival.eligibilityDetails.planBenefits` | `arrival.eligibilityDetails.scheduledEvents` | `arrival.status`, 4> & {
|
|
163
169
|
__applicationErrorsType?: CreateArrivalByCredentialApplicationErrors;
|