@wix/auto_sdk_arrivals_arrivals 1.0.0 → 1.0.2
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.d.ts +1 -1
- package/build/cjs/index.js +35 -11
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +36 -48
- package/build/cjs/index.typings.js +35 -11
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +19 -30
- package/build/cjs/meta.js +28 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +35 -11
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +36 -48
- package/build/es/index.typings.mjs +35 -11
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +19 -30
- package/build/es/meta.mjs +28 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +24 -22
- package/build/internal/cjs/index.typings.d.ts +66 -75
- package/build/internal/cjs/meta.d.ts +19 -30
- package/build/internal/es/index.d.mts +24 -22
- package/build/internal/es/index.typings.d.mts +66 -75
- package/build/internal/es/meta.d.mts +19 -30
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import '@wix/sdk-types';
|
|
|
6
6
|
* eligibility engine found (`eligibilityDetails`), and whether access was given (`status`). Arrivals are written
|
|
7
7
|
* only by Create Arrival, directly or through Create Arrival By Credential. An arrival changes only through Override Arrival as
|
|
8
8
|
* Granted, which moves a denial to `GRANTED`, and when two contacts are merged in CRM, which moves
|
|
9
|
-
* `
|
|
9
|
+
* `contactDetails.contactId` to the surviving contact; the snapshot stays as it was. The person's name and picture are kept as they were
|
|
10
10
|
* when the arrival was written, and a granted arrival keeps what granted the entry. `eligibilityDetails` and
|
|
11
11
|
* `overrideReason` say why a person was not eligible, so they are returned only to callers with the
|
|
12
12
|
* `arrivals:v1:arrival:read_eligibility_details` permission.
|
|
@@ -44,8 +44,8 @@ interface Arrival extends ArrivalGrantedByOneOf {
|
|
|
44
44
|
* @readonly
|
|
45
45
|
*/
|
|
46
46
|
updatedDate?: Date | null;
|
|
47
|
-
/** Who arrived
|
|
48
|
-
|
|
47
|
+
/** Who arrived: the contact, with their name and picture as Contacts held them when the arrival was written. Always present. On Create Arrival only `contactDetails.contactId` is sent; the server fills in the rest. */
|
|
48
|
+
contactDetails?: ContactDetails;
|
|
49
49
|
/**
|
|
50
50
|
* How the arrival came to be, and who created it. Set by the server.
|
|
51
51
|
* @readonly
|
|
@@ -96,17 +96,6 @@ interface ArrivalGrantedByOneOf {
|
|
|
96
96
|
*/
|
|
97
97
|
scheduledEvent?: ScheduledEvent;
|
|
98
98
|
}
|
|
99
|
-
/** Who arrived: the contact, with a snapshot of their name and picture, and their credential when they hold one. */
|
|
100
|
-
interface Attendee {
|
|
101
|
-
/** The contact who arrived, with their name and picture as Contacts held them when the arrival was written. On Create Arrival only `contactDetails.contactId` is sent; the server fills in the rest. */
|
|
102
|
-
contactDetails?: ContactDetails;
|
|
103
|
-
/**
|
|
104
|
-
* ID of the person's contact credential, when they hold one. Set by the server: the credential whose token or identifier was presented at a scan, or the contact's credential on an arrival written by contact ID; a value sent when setting an arrival is ignored. Whether something was presented is `source.identifiedBy`, not this field. Absent when the contact has no credential. A CRM contact merge does not change it, so it may name a credential the merge deleted; to find all of a person's arrivals, query by `attendee.contactDetails.contactId`.
|
|
105
|
-
* @format GUID
|
|
106
|
-
* @readonly
|
|
107
|
-
*/
|
|
108
|
-
contactCredentialId?: string | null;
|
|
109
|
-
}
|
|
110
99
|
/**
|
|
111
100
|
* The person who arrived: their contact ID, and their name and picture as the Contacts API held them when the
|
|
112
101
|
* arrival was written. The name and picture are a snapshot — for history and live lists without a Contacts
|
|
@@ -115,7 +104,7 @@ interface Attendee {
|
|
|
115
104
|
*/
|
|
116
105
|
interface ContactDetails {
|
|
117
106
|
/**
|
|
118
|
-
* ID of the contact who arrived. The only field of `contactDetails` sent when
|
|
107
|
+
* ID of the contact who arrived. The only field of `contactDetails` sent when creating an arrival.
|
|
119
108
|
* @format GUID
|
|
120
109
|
*/
|
|
121
110
|
contactId?: string;
|
|
@@ -173,13 +162,13 @@ interface Image {
|
|
|
173
162
|
}
|
|
174
163
|
/** How an arrival came to be, and who created it. Set by the server. */
|
|
175
164
|
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
|
|
165
|
+
/** 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 — staff or a device — is `createdBy`. */
|
|
177
166
|
identifiedBy?: IdentificationMethodWithLiterals;
|
|
178
167
|
/**
|
|
179
168
|
* Who created the arrival, from the call identity: a Wix user (`wixUserId`) — staff in a scanner app, or an owner on
|
|
180
169
|
* the contact card — or an app (`appId`) — a reader at an entrance, or a partner app. This, not `identifiedBy`, is what tells staff
|
|
181
170
|
* from devices. Only `wixUserId` or `appId` is ever set; `anonymousVisitorId` and `memberId` never appear on an arrival,
|
|
182
|
-
* since members and visitors cannot
|
|
171
|
+
* since members and visitors cannot create arrivals. Who let the person in against a denial is `overriddenBy`, not this field.
|
|
183
172
|
*/
|
|
184
173
|
createdBy?: CommonIdentificationData;
|
|
185
174
|
}
|
|
@@ -509,8 +498,8 @@ interface ArrivalDenied {
|
|
|
509
498
|
}
|
|
510
499
|
interface CreateArrivalRequest {
|
|
511
500
|
/**
|
|
512
|
-
* Arrival to create. Only `
|
|
513
|
-
* the rest of `
|
|
501
|
+
* Arrival to create. Only `contactDetails.contactId` and `area.entranceId` are read; every other field —
|
|
502
|
+
* the rest of `contactDetails`, `eligibilityDetails`, `status`, `source`, the area's ID, name and location, the
|
|
514
503
|
* entrance's name, what granted the entry — is set by the server.
|
|
515
504
|
*/
|
|
516
505
|
arrival: Arrival;
|
|
@@ -558,10 +547,10 @@ interface CheckEligibilityRequest {
|
|
|
558
547
|
*/
|
|
559
548
|
contactId: string;
|
|
560
549
|
/**
|
|
561
|
-
* ID of the
|
|
550
|
+
* ID of the entrance to check eligibility at, one of an area's entrances. Eligibility is checked for the area it belongs to.
|
|
562
551
|
* @format GUID
|
|
563
552
|
*/
|
|
564
|
-
|
|
553
|
+
entranceId: string;
|
|
565
554
|
/**
|
|
566
555
|
* A range of time to look for the person's scheduled events in, besides the area's
|
|
567
556
|
* `policy.scheduledEventsPolicy.entryWindow`, for a what-if such as "which of this client's classes this evening could
|
|
@@ -594,8 +583,8 @@ interface ScheduledEventSearchWindow {
|
|
|
594
583
|
* returns the same fields.
|
|
595
584
|
*/
|
|
596
585
|
interface CheckEligibilityResponse {
|
|
597
|
-
/** The contact given: their contact ID, name and picture as Contacts holds them now
|
|
598
|
-
|
|
586
|
+
/** 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. */
|
|
587
|
+
contactDetails?: ContactDetails;
|
|
599
588
|
/** 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. */
|
|
600
589
|
status?: StatusWithLiterals;
|
|
601
590
|
/**
|
|
@@ -899,10 +888,10 @@ interface CheckEligibilityByCredentialRequest extends CheckEligibilityByCredenti
|
|
|
899
888
|
/** A presented identifier, such as an NFC card: its `type` and the `value` the reader reports, added to the credential with Add Credential Identifier in the Contact Credentials API. */
|
|
900
889
|
identifier?: PresentedIdentifier;
|
|
901
890
|
/**
|
|
902
|
-
* ID of the area
|
|
891
|
+
* ID of the entrance the credential is presented at, one of an area's entrances. Eligibility is checked for the area it belongs to.
|
|
903
892
|
* @format GUID
|
|
904
893
|
*/
|
|
905
|
-
|
|
894
|
+
entranceId: string;
|
|
906
895
|
}
|
|
907
896
|
/** @oneof */
|
|
908
897
|
interface CheckEligibilityByCredentialRequestCredentialOneOf {
|
|
@@ -940,8 +929,8 @@ type TypeWithLiterals = Type | 'NFC_CARD';
|
|
|
940
929
|
* area's own entry window.
|
|
941
930
|
*/
|
|
942
931
|
interface CheckEligibilityByCredentialResponse {
|
|
943
|
-
/** The holder of the presented credential: their contact ID, name and picture as Contacts holds them now
|
|
944
|
-
|
|
932
|
+
/** The holder of the presented credential: their contact ID, name and picture as Contacts holds them now. */
|
|
933
|
+
contactDetails?: ContactDetails;
|
|
945
934
|
/** 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. */
|
|
946
935
|
status?: StatusWithLiterals;
|
|
947
936
|
/**
|
|
@@ -1022,7 +1011,7 @@ type OverrideArrivalAsGrantedApplicationErrors = {
|
|
|
1022
1011
|
};
|
|
1023
1012
|
/** @docsIgnore */
|
|
1024
1013
|
type CheckEligibilityApplicationErrors = {
|
|
1025
|
-
code?: '
|
|
1014
|
+
code?: 'ENTRANCE_NOT_FOUND';
|
|
1026
1015
|
description?: string;
|
|
1027
1016
|
data?: Record<string, any>;
|
|
1028
1017
|
} | {
|
|
@@ -1066,7 +1055,7 @@ type CheckEligibilityByCredentialApplicationErrors = {
|
|
|
1066
1055
|
description?: string;
|
|
1067
1056
|
data?: Record<string, any>;
|
|
1068
1057
|
} | {
|
|
1069
|
-
code?: '
|
|
1058
|
+
code?: 'ENTRANCE_NOT_FOUND';
|
|
1070
1059
|
description?: string;
|
|
1071
1060
|
data?: Record<string, any>;
|
|
1072
1061
|
} | {
|
|
@@ -1124,4 +1113,4 @@ declare function countArrivals(): __PublicMethodMetaInfo<'POST', {}, CountArriva
|
|
|
1124
1113
|
declare function checkEligibilityByCredential(): __PublicMethodMetaInfo<'POST', {}, CheckEligibilityByCredentialRequest$1, CheckEligibilityByCredentialRequest, CheckEligibilityByCredentialResponse$1, CheckEligibilityByCredentialResponse>;
|
|
1125
1114
|
declare function createArrivalByCredential(): __PublicMethodMetaInfo<'POST', {}, CreateArrivalByCredentialRequest$1, CreateArrivalByCredentialRequest, CreateArrivalByCredentialResponse$1, CreateArrivalByCredentialResponse>;
|
|
1126
1115
|
|
|
1127
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AreaInfo as AreaInfoOriginal, type ArrivalDenied as ArrivalDeniedOriginal, type ArrivalGrantedByOneOf as ArrivalGrantedByOneOfOriginal, type ArrivalGranted as ArrivalGrantedOriginal, type Arrival as ArrivalOriginal, type ArrivalSource as ArrivalSourceOriginal, type
|
|
1116
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AreaInfo as AreaInfoOriginal, type ArrivalDenied as ArrivalDeniedOriginal, type ArrivalGrantedByOneOf as ArrivalGrantedByOneOfOriginal, type ArrivalGranted as ArrivalGrantedOriginal, type Arrival as ArrivalOriginal, type ArrivalSource as ArrivalSourceOriginal, type CheckEligibilityApplicationErrors as CheckEligibilityApplicationErrorsOriginal, type CheckEligibilityByCredentialApplicationErrors as CheckEligibilityByCredentialApplicationErrorsOriginal, type CheckEligibilityByCredentialRequestCredentialOneOf as CheckEligibilityByCredentialRequestCredentialOneOfOriginal, type CheckEligibilityByCredentialRequest as CheckEligibilityByCredentialRequestOriginal, type CheckEligibilityByCredentialResponse as CheckEligibilityByCredentialResponseOriginal, type CheckEligibilityRequest as CheckEligibilityRequestOriginal, type CheckEligibilityResponse as CheckEligibilityResponseOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type ContactDetails as ContactDetailsOriginal, type CountArrivalsApplicationErrors as CountArrivalsApplicationErrorsOriginal, type CountArrivalsRequest as CountArrivalsRequestOriginal, type CountArrivalsResponse as CountArrivalsResponseOriginal, type CreateArrivalApplicationErrors as CreateArrivalApplicationErrorsOriginal, type CreateArrivalByCredentialApplicationErrors as CreateArrivalByCredentialApplicationErrorsOriginal, type CreateArrivalByCredentialRequestCredentialOneOf as CreateArrivalByCredentialRequestCredentialOneOfOriginal, type CreateArrivalByCredentialRequest as CreateArrivalByCredentialRequestOriginal, type CreateArrivalByCredentialResponse as CreateArrivalByCredentialResponseOriginal, type CreateArrivalRequest as CreateArrivalRequestOriginal, type CreateArrivalResponse as CreateArrivalResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DenialOverride as DenialOverrideOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EligibilityDetails as EligibilityDetailsOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, EntryIssue as EntryIssueOriginal, type EntryIssueWithLiterals as EntryIssueWithLiteralsOriginal, type GetArrivalRequest as GetArrivalRequestOriginal, type GetArrivalResponse as GetArrivalResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, IdentificationMethod as IdentificationMethodOriginal, type IdentificationMethodWithLiterals as IdentificationMethodWithLiteralsOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, type Image as ImageOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MissingIntakeForm as MissingIntakeFormOriginal, type OverrideArrivalAsGrantedApplicationErrors as OverrideArrivalAsGrantedApplicationErrorsOriginal, type OverrideArrivalAsGrantedRequest as OverrideArrivalAsGrantedRequestOriginal, type OverrideArrivalAsGrantedResponse as OverrideArrivalAsGrantedResponseOriginal, type PlanBenefitEligibility as PlanBenefitEligibilityOriginal, PlanBenefitIssue as PlanBenefitIssueOriginal, type PlanBenefitIssueWithLiterals as PlanBenefitIssueWithLiteralsOriginal, type PlanBenefit as PlanBenefitOriginal, PlanBenefitType as PlanBenefitTypeOriginal, type PlanBenefitTypeWithLiterals as PlanBenefitTypeWithLiteralsOriginal, type PresentedIdentifier as PresentedIdentifierOriginal, type QueryArrivalsRequest as QueryArrivalsRequestOriginal, type QueryArrivalsResponse as QueryArrivalsResponseOriginal, type RecentArrival as RecentArrivalOriginal, type RestoreInfo as RestoreInfoOriginal, type ScheduledEventEligibility as ScheduledEventEligibilityOriginal, ScheduledEventIssue as ScheduledEventIssueOriginal, type ScheduledEventIssueWithLiterals as ScheduledEventIssueWithLiteralsOriginal, type ScheduledEvent as ScheduledEventOriginal, type ScheduledEventSearchWindow as ScheduledEventSearchWindowOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, checkEligibility, checkEligibilityByCredential, countArrivals, createArrival, createArrivalByCredential, getArrival, overrideArrivalAsGranted, queryArrivals };
|
package/build/es/meta.mjs
CHANGED
|
@@ -18,11 +18,37 @@ var TRANSFORM_PATHS_3 = [
|
|
|
18
18
|
{ path: "arrivals.updatedDate" }
|
|
19
19
|
];
|
|
20
20
|
function resolveWixArrivalsV1CredentialArrivalsServiceUrl(opts) {
|
|
21
|
-
const domainToMappings = {
|
|
21
|
+
const domainToMappings = {
|
|
22
|
+
"manage._base_domain_": [
|
|
23
|
+
{
|
|
24
|
+
srcPath: "/_api/arrivals-arrivals",
|
|
25
|
+
destPath: ""
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"www._base_domain_": [
|
|
29
|
+
{
|
|
30
|
+
srcPath: "/_api/arrivals-arrivals",
|
|
31
|
+
destPath: ""
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
};
|
|
22
35
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
23
36
|
}
|
|
24
37
|
function resolveWixArrivalsV1ArrivalsServiceUrl(opts) {
|
|
25
|
-
const domainToMappings = {
|
|
38
|
+
const domainToMappings = {
|
|
39
|
+
"manage._base_domain_": [
|
|
40
|
+
{
|
|
41
|
+
srcPath: "/_api/arrivals-arrivals",
|
|
42
|
+
destPath: ""
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"www._base_domain_": [
|
|
46
|
+
{
|
|
47
|
+
srcPath: "/_api/arrivals-arrivals",
|
|
48
|
+
destPath: ""
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
};
|
|
26
52
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
27
53
|
}
|
|
28
54
|
var PACKAGE_NAME = "@wix/auto_sdk_arrivals_arrivals";
|