@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.
@@ -6,7 +6,7 @@ import { QuerySpec, Query, NonNullablePaths } from '@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
- * `attendee.contactDetails.contactId` to the surviving contact; `attendee.contactCredentialId` and the snapshot stay as they were. The person's name and picture are kept as they were
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. Always present: `contactDetails` (the contact, with their name and picture as they were) for every arrival; `contactCredentialId` when the contact holds a credential. On Create Arrival only `contactDetails.contactId` is sent; the server fills in the rest. */
48
- attendee?: Attendee;
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 setting an arrival.
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;
@@ -139,13 +128,13 @@ interface ContactDetails {
139
128
  }
140
129
  /** How an arrival came to be, and who created it. Set by the server. */
141
130
  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 — whatever `attendee.contactCredentialId` says. Who wrote the arrival — staff or a device — is `createdBy`. */
131
+ /** 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`. */
143
132
  identifiedBy?: IdentificationMethodWithLiterals;
144
133
  /**
145
134
  * Who created the arrival, from the call identity: a Wix user (`wixUserId`) — staff in a scanner app, or an owner on
146
135
  * the contact card — or an app (`appId`) — a reader at an entrance, or a partner app. This, not `identifiedBy`, is what tells staff
147
136
  * from devices. Only `wixUserId` or `appId` is ever set; `anonymousVisitorId` and `memberId` never appear on an arrival,
148
- * since members and visitors cannot set arrivals. Who let the person in against a denial is `overriddenBy`, not this field.
137
+ * since members and visitors cannot create arrivals. Who let the person in against a denial is `overriddenBy`, not this field.
149
138
  */
150
139
  createdBy?: CommonIdentificationData;
151
140
  }
@@ -475,8 +464,8 @@ interface ArrivalDenied {
475
464
  }
476
465
  interface CreateArrivalRequest {
477
466
  /**
478
- * Arrival to create. Only `attendee.contactDetails.contactId` and `area.entranceId` are read; every other field —
479
- * the rest of `attendee`, `eligibilityDetails`, `status`, `source`, the area's ID, name and location, the
467
+ * Arrival to create. Only `contactDetails.contactId` and `area.entranceId` are read; every other field —
468
+ * the rest of `contactDetails`, `eligibilityDetails`, `status`, `source`, the area's ID, name and location, the
480
469
  * entrance's name, what granted the entry — is set by the server.
481
470
  */
482
471
  arrival: Arrival;
@@ -524,10 +513,10 @@ interface CheckEligibilityRequest {
524
513
  */
525
514
  contactId: string;
526
515
  /**
527
- * ID of the area to check eligibility for.
516
+ * ID of the entrance to check eligibility at, one of an area's entrances. Eligibility is checked for the area it belongs to.
528
517
  * @format GUID
529
518
  */
530
- areaId: string;
519
+ entranceId: string;
531
520
  /**
532
521
  * A range of time to look for the person's scheduled events in, besides the area's
533
522
  * `policy.scheduledEventsPolicy.entryWindow`, for a what-if such as "which of this client's classes this evening could
@@ -560,8 +549,8 @@ interface ScheduledEventSearchWindow {
560
549
  * returns the same fields.
561
550
  */
562
551
  interface CheckEligibilityResponse {
563
- /** The contact given: their contact ID, name and picture as Contacts holds them now, and their credential ID when they hold one. When creating an arrival, send `arrival.attendee.contactDetails.contactId`; the server fills in the rest. */
564
- attendee?: Attendee;
552
+ /** 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. */
553
+ contactDetails?: ContactDetails;
565
554
  /** 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. */
566
555
  status?: StatusWithLiterals;
567
556
  /**
@@ -863,10 +852,10 @@ interface CheckEligibilityByCredentialRequest extends CheckEligibilityByCredenti
863
852
  /** 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. */
864
853
  identifier?: PresentedIdentifier;
865
854
  /**
866
- * ID of the area to check eligibility for.
855
+ * ID of the entrance the credential is presented at, one of an area's entrances. Eligibility is checked for the area it belongs to.
867
856
  * @format GUID
868
857
  */
869
- areaId: string;
858
+ entranceId: string;
870
859
  }
871
860
  /** @oneof */
872
861
  interface CheckEligibilityByCredentialRequestCredentialOneOf {
@@ -904,8 +893,8 @@ type TypeWithLiterals = Type | 'NFC_CARD';
904
893
  * area's own entry window.
905
894
  */
906
895
  interface CheckEligibilityByCredentialResponse {
907
- /** The holder of the presented credential: their contact ID, name and picture as Contacts holds them now, and their credential ID. When creating an arrival, send `arrival.attendee.contactDetails.contactId`; the server fills in the rest. */
908
- attendee?: Attendee;
896
+ /** The holder of the presented credential: their contact ID, name and picture as Contacts holds them now. */
897
+ contactDetails?: ContactDetails;
909
898
  /** 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. */
910
899
  status?: StatusWithLiterals;
911
900
  /**
@@ -986,7 +975,7 @@ type OverrideArrivalAsGrantedApplicationErrors = {
986
975
  };
987
976
  /** @docsIgnore */
988
977
  type CheckEligibilityApplicationErrors = {
989
- code?: 'AREA_NOT_FOUND';
978
+ code?: 'ENTRANCE_NOT_FOUND';
990
979
  description?: string;
991
980
  data?: Record<string, any>;
992
981
  } | {
@@ -1030,7 +1019,7 @@ type CheckEligibilityByCredentialApplicationErrors = {
1030
1019
  description?: string;
1031
1020
  data?: Record<string, any>;
1032
1021
  } | {
1033
- code?: 'AREA_NOT_FOUND';
1022
+ code?: 'ENTRANCE_NOT_FOUND';
1034
1023
  description?: string;
1035
1024
  data?: Record<string, any>;
1036
1025
  } | {
@@ -1083,10 +1072,10 @@ interface OverrideArrivalAsGrantedOptions {
1083
1072
  }
1084
1073
  interface CheckEligibilityOptions {
1085
1074
  /**
1086
- * ID of the area to check eligibility for.
1075
+ * ID of the entrance to check eligibility at, one of an area's entrances. Eligibility is checked for the area it belongs to.
1087
1076
  * @format GUID
1088
1077
  */
1089
- areaId: string;
1078
+ entranceId: string;
1090
1079
  /**
1091
1080
  * A range of time to look for the person's scheduled events in, besides the area's
1092
1081
  * `policy.scheduledEventsPolicy.entryWindow`, for a what-if such as "which of this client's classes this evening could
@@ -1117,49 +1106,49 @@ interface ArrivalsQueryBuilder {
1117
1106
  * @param value - Value to compare against.
1118
1107
  * @documentationMaturity preview
1119
1108
  */
1120
- eq: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | 'planBenefit.type' | '_id' | '_createdDate' | 'attendee.contactDetails.contactId' | 'attendee.contactCredentialId' | 'source.identifiedBy' | 'area.id' | 'area.locationId' | 'area.entranceId' | 'status', value: any) => ArrivalsQueryBuilder;
1109
+ eq: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | 'planBenefit.type' | '_id' | '_createdDate' | 'contactDetails.contactId' | 'source.identifiedBy' | 'area.id' | 'area.locationId' | 'area.entranceId' | 'status', value: any) => ArrivalsQueryBuilder;
1121
1110
  /** @param propertyName - Property whose value is compared with `value`.
1122
1111
  * @param value - Value to compare against.
1123
1112
  * @documentationMaturity preview
1124
1113
  */
1125
- ne: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | 'planBenefit.type' | '_id' | '_createdDate' | 'attendee.contactDetails.contactId' | 'attendee.contactCredentialId' | 'source.identifiedBy' | 'area.id' | 'area.locationId' | 'area.entranceId' | 'status', value: any) => ArrivalsQueryBuilder;
1114
+ ne: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | 'planBenefit.type' | '_id' | '_createdDate' | 'contactDetails.contactId' | 'source.identifiedBy' | 'area.id' | 'area.locationId' | 'area.entranceId' | 'status', value: any) => ArrivalsQueryBuilder;
1126
1115
  /** @param propertyName - Property whose value is compared with `value`.
1127
1116
  * @param value - Value to compare against.
1128
1117
  * @documentationMaturity preview
1129
1118
  */
1130
- ge: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | '_id' | '_createdDate' | 'attendee.contactDetails.contactId' | 'attendee.contactCredentialId' | 'area.id' | 'area.locationId' | 'area.entranceId', value: any) => ArrivalsQueryBuilder;
1119
+ ge: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | '_id' | '_createdDate' | 'contactDetails.contactId' | 'area.id' | 'area.locationId' | 'area.entranceId', value: any) => ArrivalsQueryBuilder;
1131
1120
  /** @param propertyName - Property whose value is compared with `value`.
1132
1121
  * @param value - Value to compare against.
1133
1122
  * @documentationMaturity preview
1134
1123
  */
1135
- gt: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | '_id' | '_createdDate' | 'attendee.contactDetails.contactId' | 'attendee.contactCredentialId' | 'area.id' | 'area.locationId' | 'area.entranceId', value: any) => ArrivalsQueryBuilder;
1124
+ gt: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | '_id' | '_createdDate' | 'contactDetails.contactId' | 'area.id' | 'area.locationId' | 'area.entranceId', value: any) => ArrivalsQueryBuilder;
1136
1125
  /** @param propertyName - Property whose value is compared with `value`.
1137
1126
  * @param value - Value to compare against.
1138
1127
  * @documentationMaturity preview
1139
1128
  */
1140
- le: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | '_id' | '_createdDate' | 'attendee.contactDetails.contactId' | 'attendee.contactCredentialId' | 'area.id' | 'area.locationId' | 'area.entranceId', value: any) => ArrivalsQueryBuilder;
1129
+ le: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | '_id' | '_createdDate' | 'contactDetails.contactId' | 'area.id' | 'area.locationId' | 'area.entranceId', value: any) => ArrivalsQueryBuilder;
1141
1130
  /** @param propertyName - Property whose value is compared with `value`.
1142
1131
  * @param value - Value to compare against.
1143
1132
  * @documentationMaturity preview
1144
1133
  */
1145
- lt: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | '_id' | '_createdDate' | 'attendee.contactDetails.contactId' | 'attendee.contactCredentialId' | 'area.id' | 'area.locationId' | 'area.entranceId', value: any) => ArrivalsQueryBuilder;
1134
+ lt: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | '_id' | '_createdDate' | 'contactDetails.contactId' | 'area.id' | 'area.locationId' | 'area.entranceId', value: any) => ArrivalsQueryBuilder;
1146
1135
  /** @param propertyName - Property whose value is compared with `string`.
1147
1136
  * @param string - String to compare against. Case-insensitive.
1148
1137
  * @documentationMaturity preview
1149
1138
  */
1150
- startsWith: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | '_id' | 'attendee.contactDetails.contactId' | 'attendee.contactCredentialId' | 'area.id' | 'area.locationId' | 'area.entranceId', value: string) => ArrivalsQueryBuilder;
1139
+ startsWith: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | '_id' | 'contactDetails.contactId' | 'area.id' | 'area.locationId' | 'area.entranceId', value: string) => ArrivalsQueryBuilder;
1151
1140
  /** @documentationMaturity preview */
1152
- in: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | 'planBenefit.type' | '_id' | '_createdDate' | 'attendee.contactDetails.contactId' | 'attendee.contactCredentialId' | 'source.identifiedBy' | 'area.id' | 'area.locationId' | 'area.entranceId' | 'status', value: any) => ArrivalsQueryBuilder;
1141
+ in: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | 'planBenefit.type' | '_id' | '_createdDate' | 'contactDetails.contactId' | 'source.identifiedBy' | 'area.id' | 'area.locationId' | 'area.entranceId' | 'status', value: any) => ArrivalsQueryBuilder;
1153
1142
  /** @documentationMaturity preview */
1154
- exists: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | 'planBenefit.type' | '_id' | '_createdDate' | 'attendee.contactDetails.contactId' | 'attendee.contactCredentialId' | 'source.identifiedBy' | 'area.id' | 'area.locationId' | 'area.entranceId' | 'status', value: boolean) => ArrivalsQueryBuilder;
1143
+ exists: (propertyName: 'planBenefit.poolId' | 'planBenefit.benefitKey' | 'planBenefit.type' | '_id' | '_createdDate' | 'contactDetails.contactId' | 'source.identifiedBy' | 'area.id' | 'area.locationId' | 'area.entranceId' | 'status', value: boolean) => ArrivalsQueryBuilder;
1155
1144
  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1156
1145
  * @documentationMaturity preview
1157
1146
  */
1158
- ascending: (...propertyNames: Array<'planBenefit.poolId' | 'planBenefit.benefitKey' | 'planBenefit.type' | '_id' | '_createdDate' | 'attendee.contactDetails.contactId' | 'attendee.contactCredentialId' | 'source.identifiedBy' | 'area.id' | 'area.locationId' | 'area.entranceId' | 'eligibilityDetails.issues' | 'status'>) => ArrivalsQueryBuilder;
1147
+ ascending: (...propertyNames: Array<'planBenefit.poolId' | 'planBenefit.benefitKey' | 'planBenefit.type' | '_id' | '_createdDate' | 'contactDetails.contactId' | 'source.identifiedBy' | 'area.id' | 'area.locationId' | 'area.entranceId' | 'eligibilityDetails.issues' | 'status'>) => ArrivalsQueryBuilder;
1159
1148
  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1160
1149
  * @documentationMaturity preview
1161
1150
  */
1162
- descending: (...propertyNames: Array<'planBenefit.poolId' | 'planBenefit.benefitKey' | 'planBenefit.type' | '_id' | '_createdDate' | 'attendee.contactDetails.contactId' | 'attendee.contactCredentialId' | 'source.identifiedBy' | 'area.id' | 'area.locationId' | 'area.entranceId' | 'eligibilityDetails.issues' | 'status'>) => ArrivalsQueryBuilder;
1151
+ descending: (...propertyNames: Array<'planBenefit.poolId' | 'planBenefit.benefitKey' | 'planBenefit.type' | '_id' | '_createdDate' | 'contactDetails.contactId' | 'source.identifiedBy' | 'area.id' | 'area.locationId' | 'area.entranceId' | 'eligibilityDetails.issues' | 'status'>) => ArrivalsQueryBuilder;
1163
1152
  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1164
1153
  * @documentationMaturity preview
1165
1154
  */
@@ -1176,7 +1165,7 @@ interface ArrivalsQueryBuilder {
1176
1165
  * @fqn wix.arrivals.v1.ArrivalsService.QueryArrivals
1177
1166
  * @requiredField query
1178
1167
  */
1179
- declare function typedQueryArrivals(query: ArrivalQuery): Promise<NonNullablePaths<QueryArrivalsResponse, `arrivals` | `arrivals.${number}.planBenefit.poolId` | `arrivals.${number}.planBenefit.benefitKey` | `arrivals.${number}.planBenefit.displayName` | `arrivals.${number}.planBenefit.type` | `arrivals.${number}.scheduledEvent.eventId` | `arrivals.${number}.scheduledEvent.displayName` | `arrivals.${number}.scheduledEvent.appId` | `arrivals.${number}.attendee.contactDetails.contactId` | `arrivals.${number}.source.identifiedBy` | `arrivals.${number}.source.createdBy.anonymousVisitorId` | `arrivals.${number}.source.createdBy.memberId` | `arrivals.${number}.source.createdBy.wixUserId` | `arrivals.${number}.source.createdBy.appId` | `arrivals.${number}.area._id` | `arrivals.${number}.area.locationId` | `arrivals.${number}.area.name` | `arrivals.${number}.area.entranceId` | `arrivals.${number}.area.entranceName` | `arrivals.${number}.status`, 4>>;
1168
+ declare function typedQueryArrivals(query: ArrivalQuery): Promise<NonNullablePaths<QueryArrivalsResponse, `arrivals` | `arrivals.${number}.planBenefit.poolId` | `arrivals.${number}.planBenefit.benefitKey` | `arrivals.${number}.planBenefit.displayName` | `arrivals.${number}.planBenefit.type` | `arrivals.${number}.scheduledEvent.eventId` | `arrivals.${number}.scheduledEvent.displayName` | `arrivals.${number}.scheduledEvent.appId` | `arrivals.${number}.contactDetails.contactId` | `arrivals.${number}.source.identifiedBy` | `arrivals.${number}.source.createdBy.anonymousVisitorId` | `arrivals.${number}.source.createdBy.memberId` | `arrivals.${number}.source.createdBy.wixUserId` | `arrivals.${number}.source.createdBy.appId` | `arrivals.${number}.area._id` | `arrivals.${number}.area.locationId` | `arrivals.${number}.area.name` | `arrivals.${number}.area.entranceId` | `arrivals.${number}.area.entranceName` | `arrivals.${number}.status`, 4>>;
1180
1169
  interface ArrivalQuerySpec extends QuerySpec {
1181
1170
  paging: 'cursor';
1182
1171
  wql: [
@@ -1192,8 +1181,7 @@ interface ArrivalQuerySpec extends QuerySpec {
1192
1181
  'area._id',
1193
1182
  'area.entranceId',
1194
1183
  'area.locationId',
1195
- 'attendee.contactCredentialId',
1196
- 'attendee.contactDetails.contactId',
1184
+ 'contactDetails.contactId',
1197
1185
  'planBenefit.benefitKey',
1198
1186
  'planBenefit.poolId',
1199
1187
  'planBenefit.type',
@@ -1267,10 +1255,10 @@ interface CheckEligibilityByCredentialOptions extends CheckEligibilityByCredenti
1267
1255
  /** 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. */
1268
1256
  identifier?: PresentedIdentifier;
1269
1257
  /**
1270
- * ID of the area to check eligibility for.
1258
+ * ID of the entrance the credential is presented at, one of an area's entrances. Eligibility is checked for the area it belongs to.
1271
1259
  * @format GUID
1272
1260
  */
1273
- areaId: string;
1261
+ entranceId: string;
1274
1262
  }
1275
1263
  /** @oneof */
1276
1264
  interface CheckEligibilityByCredentialOptionsCredentialOneOf {
@@ -1307,4 +1295,4 @@ interface CreateArrivalByCredentialOptionsCredentialOneOf {
1307
1295
  identifier?: PresentedIdentifier;
1308
1296
  }
1309
1297
 
1310
- export { type AccountInfo, type ActionEvent, type AreaInfo, type Arrival, type ArrivalDenied, type ArrivalGranted, type ArrivalGrantedByOneOf, type ArrivalQuery, type ArrivalQuerySpec, type ArrivalSource, type ArrivalsQueryBuilder, type ArrivalsQueryResult, type Attendee, type CheckEligibilityApplicationErrors, type CheckEligibilityByCredentialApplicationErrors, type CheckEligibilityByCredentialOptions, type CheckEligibilityByCredentialOptionsCredentialOneOf, type CheckEligibilityByCredentialRequest, type CheckEligibilityByCredentialRequestCredentialOneOf, type CheckEligibilityByCredentialResponse, type CheckEligibilityOptions, type CheckEligibilityRequest, type CheckEligibilityResponse, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type CommonQueryWithEntityContext, type ContactDetails, type CountArrivalsApplicationErrors, type CountArrivalsOptions, type CountArrivalsRequest, type CountArrivalsResponse, type CreateArrivalApplicationErrors, type CreateArrivalByCredentialApplicationErrors, type CreateArrivalByCredentialOptions, type CreateArrivalByCredentialOptionsCredentialOneOf, type CreateArrivalByCredentialRequest, type CreateArrivalByCredentialRequestCredentialOneOf, type CreateArrivalByCredentialResponse, type CreateArrivalOptions, type CreateArrivalRequest, type CreateArrivalResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DenialOverride, type DomainEvent, type DomainEventBodyOneOf, type EligibilityDetails, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, EntryIssue, type EntryIssueWithLiterals, type GetArrivalRequest, type GetArrivalResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentificationMethod, type IdentificationMethodWithLiterals, IdentityType, type IdentityTypeWithLiterals, type MessageEnvelope, type MissingIntakeForm, type OverrideArrivalAsGrantedApplicationErrors, type OverrideArrivalAsGrantedOptions, type OverrideArrivalAsGrantedRequest, type OverrideArrivalAsGrantedResponse, type PlanBenefit, type PlanBenefitEligibility, PlanBenefitIssue, type PlanBenefitIssueWithLiterals, PlanBenefitType, type PlanBenefitTypeWithLiterals, type PresentedIdentifier, type QueryArrivalsRequest, type QueryArrivalsResponse, type RecentArrival, type RestoreInfo, type ScheduledEvent, type ScheduledEventEligibility, ScheduledEventIssue, type ScheduledEventIssueWithLiterals, type ScheduledEventSearchWindow, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, Type, type TypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, typedQueryArrivals, utils };
1298
+ export { type AccountInfo, type ActionEvent, type AreaInfo, type Arrival, type ArrivalDenied, type ArrivalGranted, type ArrivalGrantedByOneOf, type ArrivalQuery, type ArrivalQuerySpec, type ArrivalSource, type ArrivalsQueryBuilder, type ArrivalsQueryResult, type CheckEligibilityApplicationErrors, type CheckEligibilityByCredentialApplicationErrors, type CheckEligibilityByCredentialOptions, type CheckEligibilityByCredentialOptionsCredentialOneOf, type CheckEligibilityByCredentialRequest, type CheckEligibilityByCredentialRequestCredentialOneOf, type CheckEligibilityByCredentialResponse, type CheckEligibilityOptions, type CheckEligibilityRequest, type CheckEligibilityResponse, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type CommonQueryWithEntityContext, type ContactDetails, type CountArrivalsApplicationErrors, type CountArrivalsOptions, type CountArrivalsRequest, type CountArrivalsResponse, type CreateArrivalApplicationErrors, type CreateArrivalByCredentialApplicationErrors, type CreateArrivalByCredentialOptions, type CreateArrivalByCredentialOptionsCredentialOneOf, type CreateArrivalByCredentialRequest, type CreateArrivalByCredentialRequestCredentialOneOf, type CreateArrivalByCredentialResponse, type CreateArrivalOptions, type CreateArrivalRequest, type CreateArrivalResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DenialOverride, type DomainEvent, type DomainEventBodyOneOf, type EligibilityDetails, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, EntryIssue, type EntryIssueWithLiterals, type GetArrivalRequest, type GetArrivalResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentificationMethod, type IdentificationMethodWithLiterals, IdentityType, type IdentityTypeWithLiterals, type MessageEnvelope, type MissingIntakeForm, type OverrideArrivalAsGrantedApplicationErrors, type OverrideArrivalAsGrantedOptions, type OverrideArrivalAsGrantedRequest, type OverrideArrivalAsGrantedResponse, type PlanBenefit, type PlanBenefitEligibility, PlanBenefitIssue, type PlanBenefitIssueWithLiterals, PlanBenefitType, type PlanBenefitTypeWithLiterals, type PresentedIdentifier, type QueryArrivalsRequest, type QueryArrivalsResponse, type RecentArrival, type RestoreInfo, type ScheduledEvent, type ScheduledEventEligibility, ScheduledEventIssue, type ScheduledEventIssueWithLiterals, type ScheduledEventSearchWindow, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, Type, type TypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, typedQueryArrivals, utils };
@@ -68,11 +68,37 @@ var TRANSFORM_PATHS_3 = [
68
68
  { path: "arrivals.updatedDate" }
69
69
  ];
70
70
  function resolveWixArrivalsV1CredentialArrivalsServiceUrl(opts) {
71
- const domainToMappings = {};
71
+ const domainToMappings = {
72
+ "manage._base_domain_": [
73
+ {
74
+ srcPath: "/_api/arrivals-arrivals",
75
+ destPath: ""
76
+ }
77
+ ],
78
+ "www._base_domain_": [
79
+ {
80
+ srcPath: "/_api/arrivals-arrivals",
81
+ destPath: ""
82
+ }
83
+ ]
84
+ };
72
85
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
73
86
  }
74
87
  function resolveWixArrivalsV1ArrivalsServiceUrl(opts) {
75
- const domainToMappings = {};
88
+ const domainToMappings = {
89
+ "manage._base_domain_": [
90
+ {
91
+ srcPath: "/_api/arrivals-arrivals",
92
+ destPath: ""
93
+ }
94
+ ],
95
+ "www._base_domain_": [
96
+ {
97
+ srcPath: "/_api/arrivals-arrivals",
98
+ destPath: ""
99
+ }
100
+ ]
101
+ };
76
102
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
77
103
  }
78
104
  var PACKAGE_NAME = "@wix/auto_sdk_arrivals_arrivals";
@@ -315,11 +341,9 @@ var import_image = require("@wix/sdk-runtime/transformations/image");
315
341
  var import_image2 = require("@wix/sdk-runtime/transformations/image");
316
342
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
317
343
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
318
- var TRANSFORM_PATHS_02 = [{ path: "arrival.attendee.contactDetails.picture" }];
319
- var TRANSFORM_PATHS_12 = [{ path: "attendee.contactDetails.picture" }];
320
- var TRANSFORM_PATHS_22 = [
321
- { path: "arrivals.attendee.contactDetails.picture" }
322
- ];
344
+ var TRANSFORM_PATHS_02 = [{ path: "arrival.contactDetails.picture" }];
345
+ var TRANSFORM_PATHS_12 = [{ path: "contactDetails.picture" }];
346
+ var TRANSFORM_PATHS_22 = [{ path: "arrivals.contactDetails.picture" }];
323
347
  var IdentificationMethod = /* @__PURE__ */ ((IdentificationMethod2) => {
324
348
  IdentificationMethod2["BY_TOKEN"] = "BY_TOKEN";
325
349
  IdentificationMethod2["BY_CONTACT"] = "BY_CONTACT";
@@ -463,7 +487,7 @@ async function checkEligibility2(contactId, options) {
463
487
  const { httpClient, sideEffects } = arguments[2];
464
488
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
465
489
  contactId,
466
- areaId: options?.areaId,
490
+ entranceId: options?.entranceId,
467
491
  scheduledEventSearchWindow: options?.scheduledEventSearchWindow
468
492
  });
469
493
  const reqOpts = checkEligibility(payload);
@@ -486,7 +510,7 @@ async function checkEligibility2(contactId, options) {
486
510
  spreadPathsToArguments: {},
487
511
  explicitPathsToArguments: {
488
512
  contactId: "$[0]",
489
- areaId: "$[1].areaId",
513
+ entranceId: "$[1].entranceId",
490
514
  scheduledEventSearchWindow: "$[1].scheduledEventSearchWindow"
491
515
  },
492
516
  singleArgumentUnchanged: false
@@ -640,7 +664,7 @@ async function checkEligibilityByCredential2(options) {
640
664
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
641
665
  token: options?.token,
642
666
  identifier: options?.identifier,
643
- areaId: options?.areaId
667
+ entranceId: options?.entranceId
644
668
  });
645
669
  const reqOpts = checkEligibilityByCredential(payload);
646
670
  sideEffects?.onSiteCall?.();
@@ -663,7 +687,7 @@ async function checkEligibilityByCredential2(options) {
663
687
  explicitPathsToArguments: {
664
688
  token: "$[0].token",
665
689
  identifier: "$[0].identifier",
666
- areaId: "$[0].areaId"
690
+ entranceId: "$[0].entranceId"
667
691
  },
668
692
  singleArgumentUnchanged: false
669
693
  },