@wix/auto_sdk_arrivals_arrivals 1.0.5 → 1.0.6
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 +14 -12
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +12 -11
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +14 -12
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +12 -11
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +6 -2
- package/build/internal/cjs/index.typings.d.ts +20 -14
- package/build/internal/cjs/meta.d.ts +12 -11
- package/build/internal/es/index.d.mts +6 -2
- package/build/internal/es/index.typings.d.mts +20 -14
- package/build/internal/es/meta.d.mts +12 -11
- package/package.json +2 -2
|
@@ -35,7 +35,7 @@ interface Arrival extends ArrivalGrantedByOneOf {
|
|
|
35
35
|
*/
|
|
36
36
|
revision?: string | null;
|
|
37
37
|
/**
|
|
38
|
-
* Date and time the arrival was created: the moment the person was evaluated at the entrance
|
|
38
|
+
* Date and time the arrival was created: the moment 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 staff overrode afterwards, it is the denial's time, and the override's time is `updatedDate`.
|
|
39
39
|
* @readonly
|
|
40
40
|
*/
|
|
41
41
|
_createdDate?: Date | null;
|
|
@@ -315,7 +315,7 @@ declare enum EntryIssue {
|
|
|
315
315
|
NO_ELIGIBLE_GRANT = "NO_ELIGIBLE_GRANT",
|
|
316
316
|
/** 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. */
|
|
317
317
|
INTAKE_FORM_MISSING = "INTAKE_FORM_MISSING",
|
|
318
|
-
/** 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.
|
|
318
|
+
/** 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`: for an overridden arrival, from its denial. 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. */
|
|
319
319
|
RECENT_ENTRY = "RECENT_ENTRY",
|
|
320
320
|
/** 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`. */
|
|
321
321
|
PRICING_PLANS_UNAVAILABLE = "PRICING_PLANS_UNAVAILABLE",
|
|
@@ -538,7 +538,8 @@ interface CheckEligibilityRequest {
|
|
|
538
538
|
* does not admit — entry into the area follows the area's window — and is listed with `OUTSIDE_ENTRY_WINDOW`.
|
|
539
539
|
* Everything else is evaluated with the area's window, so `status` and `eligibilityDetails.issues`
|
|
540
540
|
* still say what Create Arrival would find. Not set: only the
|
|
541
|
-
* area's window is used.
|
|
541
|
+
* area's window is used. Always validated (`SEARCH_WINDOW_INVALID`), but finds no events while the area's
|
|
542
|
+
* `scheduledEventsPolicy.entryGrantingAppIds` is empty.
|
|
542
543
|
*/
|
|
543
544
|
scheduledEventSearchWindow?: ScheduledEventSearchWindow;
|
|
544
545
|
}
|
|
@@ -564,7 +565,7 @@ interface ScheduledEventSearchWindow {
|
|
|
564
565
|
interface CheckEligibilityResponse {
|
|
565
566
|
/** 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
567
|
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
|
|
568
|
+
/** 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; staff who decide to let the person in anyway call Create Arrival with `denialOverride`. */
|
|
568
569
|
status?: StatusWithLiterals;
|
|
569
570
|
/**
|
|
570
571
|
* What the engine found — the same message Create Arrival records on the arrival: the entry's `issues`, the
|
|
@@ -574,19 +575,19 @@ interface CheckEligibilityResponse {
|
|
|
574
575
|
*/
|
|
575
576
|
eligibilityDetails?: EligibilityDetails;
|
|
576
577
|
/**
|
|
577
|
-
* Present when `eligibilityDetails.issues` contains `RECENT_ENTRY`: the
|
|
578
|
-
* within the last 15 minutes, for an app to tell staff "let in 4 minutes ago".
|
|
578
|
+
* Present when `eligibilityDetails.issues` contains `RECENT_ENTRY`: the earlier arrival that granted this person this
|
|
579
|
+
* area within the last 15 minutes, for an app to tell staff "let in 4 minutes ago".
|
|
579
580
|
*/
|
|
580
581
|
recentArrival?: RecentArrival;
|
|
581
582
|
}
|
|
582
|
-
/** An earlier granted arrival of the same person into the same area,
|
|
583
|
+
/** An earlier granted arrival of the same person into the same area, created within the last 15 minutes. */
|
|
583
584
|
interface RecentArrival {
|
|
584
585
|
/**
|
|
585
586
|
* ID of that arrival.
|
|
586
587
|
* @format GUID
|
|
587
588
|
*/
|
|
588
589
|
arrivalId?: string;
|
|
589
|
-
/**
|
|
590
|
+
/** That arrival's `createdDate`, for an app to tell staff "let in 4 minutes ago". For an arrival staff overrode, it is the time of the denial they overrode. What granted it is on that arrival: call Get Arrival with `arrivalId` and read its `planBenefit` or `scheduledEvent`. */
|
|
590
591
|
_createdDate?: Date | null;
|
|
591
592
|
}
|
|
592
593
|
interface GetArrivalRequest {
|
|
@@ -908,7 +909,7 @@ type TypeWithLiterals = Type | 'NFC_CARD';
|
|
|
908
909
|
interface CheckEligibilityByCredentialResponse {
|
|
909
910
|
/** 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. */
|
|
910
911
|
contactDetails?: ContactDetails;
|
|
911
|
-
/** 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
|
|
912
|
+
/** 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; staff who decide to let the person in anyway call Create Arrival by contact ID with `denialOverride`, since Create Arrival By Credential carries no override. */
|
|
912
913
|
status?: StatusWithLiterals;
|
|
913
914
|
/**
|
|
914
915
|
* What the engine found — the same message Create Arrival records on the arrival: the entry's `issues`, the
|
|
@@ -918,8 +919,8 @@ interface CheckEligibilityByCredentialResponse {
|
|
|
918
919
|
*/
|
|
919
920
|
eligibilityDetails?: EligibilityDetails;
|
|
920
921
|
/**
|
|
921
|
-
* Present when `eligibilityDetails.issues` contains `RECENT_ENTRY`: the
|
|
922
|
-
* within the last 15 minutes, for an app to tell staff "let in 4 minutes ago".
|
|
922
|
+
* Present when `eligibilityDetails.issues` contains `RECENT_ENTRY`: the earlier arrival that granted this person this
|
|
923
|
+
* area within the last 15 minutes, for an app to tell staff "let in 4 minutes ago".
|
|
923
924
|
*/
|
|
924
925
|
recentArrival?: RecentArrival;
|
|
925
926
|
}
|
|
@@ -1097,7 +1098,8 @@ interface CheckEligibilityOptions {
|
|
|
1097
1098
|
* does not admit — entry into the area follows the area's window — and is listed with `OUTSIDE_ENTRY_WINDOW`.
|
|
1098
1099
|
* Everything else is evaluated with the area's window, so `status` and `eligibilityDetails.issues`
|
|
1099
1100
|
* still say what Create Arrival would find. Not set: only the
|
|
1100
|
-
* area's window is used.
|
|
1101
|
+
* area's window is used. Always validated (`SEARCH_WINDOW_INVALID`), but finds no events while the area's
|
|
1102
|
+
* `scheduledEventsPolicy.entryGrantingAppIds` is empty.
|
|
1101
1103
|
*/
|
|
1102
1104
|
scheduledEventSearchWindow?: ScheduledEventSearchWindow;
|
|
1103
1105
|
}
|