@wix/auto_sdk_events_guests 1.0.53 → 1.0.54

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +58 -16
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +63 -7
  5. package/build/cjs/index.typings.js +41 -15
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +62 -6
  8. package/build/cjs/meta.js +41 -15
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +56 -16
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +63 -7
  14. package/build/es/index.typings.mjs +39 -15
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +62 -6
  17. package/build/es/meta.mjs +39 -15
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +58 -16
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +63 -7
  23. package/build/internal/cjs/index.typings.js +41 -15
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +62 -6
  26. package/build/internal/cjs/meta.js +41 -15
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +56 -16
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +63 -7
  32. package/build/internal/es/index.typings.mjs +39 -15
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +62 -6
  35. package/build/internal/es/meta.mjs +39 -15
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -77,6 +77,11 @@ interface EventGuest {
77
77
  * @readonly
78
78
  */
79
79
  revision?: string | null;
80
+ /**
81
+ * Additional Details
82
+ * @readonly
83
+ */
84
+ additionalDetails?: AdditionalDetails;
80
85
  }
81
86
  interface TicketDetails {
82
87
  /**
@@ -296,6 +301,52 @@ declare enum GuestType {
296
301
  }
297
302
  /** @enumType */
298
303
  type GuestTypeWithLiterals = GuestType | 'RSVP' | 'BUYER' | 'TICKET_HOLDER';
304
+ interface AdditionalDetails {
305
+ /** Date and time the source entity (RSVP or Order) was created. */
306
+ _createdDate?: Date | null;
307
+ /** Date and time the source entity (RSVP or Order) was updated. */
308
+ _updatedDate?: Date | null;
309
+ /** Rsvp Status */
310
+ rsvpStatus?: RsvpStatusWithLiterals;
311
+ /** Order Status */
312
+ orderStatus?: OrderStatusWithLiterals;
313
+ }
314
+ declare enum RsvpStatus {
315
+ /** Guest is attending the event. */
316
+ YES = "YES",
317
+ /** Guest isn't attending the event. */
318
+ NO = "NO",
319
+ /** Guest is on a waitlist. */
320
+ WAITLIST = "WAITLIST"
321
+ }
322
+ /** @enumType */
323
+ type RsvpStatusWithLiterals = RsvpStatus | 'YES' | 'NO' | 'WAITLIST';
324
+ declare enum OrderStatus {
325
+ /** Order status is not available for this request fieldset. */
326
+ UNKNOW_ORDER_STATUS = "UNKNOW_ORDER_STATUS",
327
+ /** Order is confirmed, no payment is required. */
328
+ FREE = "FREE",
329
+ /** Order was paid, but the payment gateway suspended the payment. */
330
+ PENDING = "PENDING",
331
+ /** Order is paid. */
332
+ PAID = "PAID",
333
+ /** Order is confirmed but has be paid via offline payment. Status needs to be manually updated to `"PAID"`. */
334
+ OFFLINE_PENDING = "OFFLINE_PENDING",
335
+ /** Order is awaiting for payment at the cashier. */
336
+ INITIATED = "INITIATED",
337
+ /** Order is canceled. */
338
+ CANCELED = "CANCELED",
339
+ /** Order payment is declined. */
340
+ DECLINED = "DECLINED",
341
+ /** Order payment is authorized. */
342
+ AUTHORIZED = "AUTHORIZED",
343
+ /** Order payment is voided. */
344
+ VOIDED = "VOIDED",
345
+ /** Order is partially paid with less than the total amount. */
346
+ PARTIALLY_PAID = "PARTIALLY_PAID"
347
+ }
348
+ /** @enumType */
349
+ type OrderStatusWithLiterals = OrderStatus | 'UNKNOW_ORDER_STATUS' | 'FREE' | 'PENDING' | 'PAID' | 'OFFLINE_PENDING' | 'INITIATED' | 'CANCELED' | 'DECLINED' | 'AUTHORIZED' | 'VOIDED' | 'PARTIALLY_PAID';
299
350
  interface GuestCountUpdated {
300
351
  /** Guest. */
301
352
  guest?: EventGuest;
@@ -738,11 +789,11 @@ declare enum Timing {
738
789
  type TimingWithLiterals = Timing | 'NOW' | 'STARTS_IN_1_DAY' | 'STARTS_IN_3_DAYS' | 'STARTS_IN_1_WEEK' | 'STARTS_IN_1_HOUR' | 'STARTS_IN_30_MINUTES' | 'STARTS_IN_2_HOURS';
739
790
  interface OrderDetails {
740
791
  /** Order status */
741
- orderStatus?: OrderStatusWithLiterals;
792
+ orderStatus?: TicketingOrderStatusWithLiterals;
742
793
  /** Invoice */
743
794
  invoice?: Invoice;
744
795
  }
745
- declare enum OrderStatus {
796
+ declare enum TicketingOrderStatus {
746
797
  /** Order status isn't available for this request fieldset. */
747
798
  NA_ORDER_STATUS = "NA_ORDER_STATUS",
748
799
  /** Order is confirmed, no payment is required. */
@@ -767,7 +818,7 @@ declare enum OrderStatus {
767
818
  PARTIALLY_PAID = "PARTIALLY_PAID"
768
819
  }
769
820
  /** @enumType */
770
- type OrderStatusWithLiterals = OrderStatus | 'NA_ORDER_STATUS' | 'FREE' | 'PENDING' | 'PAID' | 'OFFLINE_PENDING' | 'INITIATED' | 'CANCELED' | 'DECLINED' | 'AUTHORIZED' | 'VOIDED' | 'PARTIALLY_PAID';
821
+ type TicketingOrderStatusWithLiterals = TicketingOrderStatus | 'NA_ORDER_STATUS' | 'FREE' | 'PENDING' | 'PAID' | 'OFFLINE_PENDING' | 'INITIATED' | 'CANCELED' | 'DECLINED' | 'AUTHORIZED' | 'VOIDED' | 'PARTIALLY_PAID';
771
822
  interface Invoice {
772
823
  items?: Item[];
773
824
  /**
@@ -1326,6 +1377,11 @@ interface OrderConfirmed {
1326
1377
  * @readonly
1327
1378
  */
1328
1379
  created?: Date | null;
1380
+ /**
1381
+ * Date and time the order was updated.
1382
+ * @readonly
1383
+ */
1384
+ updated?: Date | null;
1329
1385
  /** Buyer first name. */
1330
1386
  firstName?: string;
1331
1387
  /** Buyer last name. */
@@ -1335,7 +1391,7 @@ interface OrderConfirmed {
1335
1391
  /** Checkout form response. */
1336
1392
  checkoutForm?: FormResponse;
1337
1393
  /** Order status. */
1338
- status?: OrderStatusWithLiterals;
1394
+ status?: TicketingOrderStatusWithLiterals;
1339
1395
  /** Payment method used for paid tickets purchase, i.e. "payPal", "creditCard", etc. */
1340
1396
  method?: string | null;
1341
1397
  /** Tickets (generated after payment). */
@@ -1446,7 +1502,7 @@ interface OrderUpdated {
1446
1502
  /** Whether order is confirmed - occurs once payment gateway processes the payment and funds reach merchant's account. */
1447
1503
  confirmed?: boolean;
1448
1504
  /** Order status. */
1449
- status?: OrderStatusWithLiterals;
1505
+ status?: TicketingOrderStatusWithLiterals;
1450
1506
  /** Payment method used for paid tickets purchase, i.e. "payPal", "creditCard", etc. */
1451
1507
  method?: string | null;
1452
1508
  /** Tickets generated after payment. */
@@ -1908,7 +1964,7 @@ interface GuestsQueryBuilder {
1908
1964
  * @requiredField query
1909
1965
  * @returns A `GuestsQueryBuilder` object that contains the refined query.
1910
1966
  */
1911
- declare function typedQueryGuests(query: EventGuestQuery, options?: QueryEventGuestsOptions): Promise<NonNullablePaths<QueryEventGuestsResponse, `guests` | `guests.${number}.guestDetails.checkedIn` | `guests.${number}.guestDetails.onlineConferencingLogin.link` | `guests.${number}.attendanceStatus` | `guests.${number}.guestType`, 6>>;
1967
+ declare function typedQueryGuests(query: EventGuestQuery, options?: QueryEventGuestsOptions): Promise<NonNullablePaths<QueryEventGuestsResponse, `guests` | `guests.${number}.guestDetails.checkedIn` | `guests.${number}.guestDetails.onlineConferencingLogin.link` | `guests.${number}.attendanceStatus` | `guests.${number}.guestType` | `guests.${number}.additionalDetails.rsvpStatus` | `guests.${number}.additionalDetails.orderStatus`, 6>>;
1912
1968
  interface EventGuestQuerySpec extends QuerySpec {
1913
1969
  paging: 'cursor';
1914
1970
  wql: [
@@ -1995,4 +2051,4 @@ declare const utils: {
1995
2051
  };
1996
2052
  };
1997
2053
 
1998
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type Address, type AddressLocation, type AddressStreetOneOf, AttendanceStatus, type AttendanceStatusWithLiterals, type BaseEventMetadata, type CheckIn, type CommonAddress, type CommonAddressLocation, type CommonAddressStreetOneOf, type CommonQueryWithEntityContext, type CommonStreetAddress, type CommonSubdivision, type ContactEventStatusUpdated, type CouponDiscount, type CursorPaging, type Cursors, type DateAndTimeSettings, type Discount, type DiscountItem, type DiscountItemDiscountOneOf, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventDeleted, type EventDetails, type EventGuest, type EventGuestQuery, type EventGuestQuerySpec, type EventMetadata, EventType, type EventTypeWithLiterals, type Fee, FeeName, type FeeNameWithLiterals, FeeType, type FeeTypeWithLiterals, type FormResponse, type FormSubmission, type Formatted, type FormattedAddress, type GuestCheckedIn, type GuestCheckedInEnvelope, type GuestCount, type GuestCountUpdate, type GuestCountUpdated, type GuestCreatedEnvelope, type GuestDeletedEnvelope, type GuestDetails, type GuestEventCanceled, type GuestEventCanceledEnvelope, type GuestEventStarts, type GuestEventStartsEnvelope, type GuestListPreview, type GuestOrderCanceled, type GuestOrderCanceledEnvelope, GuestType, type GuestTypeWithLiterals, type GuestUpdatedEnvelope, type GuestsQueryBuilder, type GuestsQueryResult, type IdentificationData, type IdentificationDataIdOneOf, type InputValue, type Invoice, type Item, type Language, type ListGuestListPreviewsRequest, type ListGuestListPreviewsResponse, type Location, LocationType, type LocationTypeWithLiterals, type MemberEventStatusUpdated, MemberEventStatusUpdatedEventType, type MemberEventStatusUpdatedEventTypeWithLiterals, type MemberGuest, type MemberGuests, type MessageEnvelope, type Money, NotifyActionType, type NotifyActionTypeWithLiterals, type NotifyGuestAction, type Occurrence, type OnlineConferencingLogin, type OrderConfirmed, type OrderDeleted, type OrderDetails, OrderStatus, type OrderStatusWithLiterals, OrderType, type OrderTypeWithLiterals, type OrderUpdated, type Paging, type PagingMetadataV2, type PaidPlanDiscount, type PaidPlanDiscountDiscountOneOf, type PercentDiscount, type QueryEventGuestsOptions, type QueryEventGuestsRequest, type QueryEventGuestsResponse, type QueryV2, type QueryV2PagingMethodOneOf, RecurrenceStatusStatus, type RecurrenceStatusStatusWithLiterals, type Recurrences, RequestedFields, RequestedFieldsEnumRequestedFields, type RequestedFieldsEnumRequestedFieldsWithLiterals, type RequestedFieldsWithLiterals, type RestoreInfo, type SecondaryLanguagesRequest, type SecondaryLanguagesResponse, SortOrder, type SortOrderWithLiterals, type Sorting, type StandardDetails, Status, type StatusWithLiterals, type StreamEventGuestsRequest, type StreetAddress, type Subdivision, SubdivisionSubdivisionType, type SubdivisionSubdivisionTypeWithLiterals, SubdivisionType, type SubdivisionTypeWithLiterals, type Task, type TaskContext, type TaskKey, type Tax, TaxType, type TaxTypeWithLiterals, type Ticket, type TicketDetails, type TicketGuestDetails, Timing, type TimingWithLiterals, type UpdateGuestRequest, type UpdateGuestResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, onGuestCheckedIn, onGuestCreated, onGuestDeleted, onGuestEventCanceled, onGuestEventStarts, onGuestOrderCanceled, onGuestUpdated, queryGuests, typedQueryGuests, utils };
2054
+ export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AdditionalDetails, type Address, type AddressLocation, type AddressStreetOneOf, AttendanceStatus, type AttendanceStatusWithLiterals, type BaseEventMetadata, type CheckIn, type CommonAddress, type CommonAddressLocation, type CommonAddressStreetOneOf, type CommonQueryWithEntityContext, type CommonStreetAddress, type CommonSubdivision, type ContactEventStatusUpdated, type CouponDiscount, type CursorPaging, type Cursors, type DateAndTimeSettings, type Discount, type DiscountItem, type DiscountItemDiscountOneOf, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventDeleted, type EventDetails, type EventGuest, type EventGuestQuery, type EventGuestQuerySpec, type EventMetadata, EventType, type EventTypeWithLiterals, type Fee, FeeName, type FeeNameWithLiterals, FeeType, type FeeTypeWithLiterals, type FormResponse, type FormSubmission, type Formatted, type FormattedAddress, type GuestCheckedIn, type GuestCheckedInEnvelope, type GuestCount, type GuestCountUpdate, type GuestCountUpdated, type GuestCreatedEnvelope, type GuestDeletedEnvelope, type GuestDetails, type GuestEventCanceled, type GuestEventCanceledEnvelope, type GuestEventStarts, type GuestEventStartsEnvelope, type GuestListPreview, type GuestOrderCanceled, type GuestOrderCanceledEnvelope, GuestType, type GuestTypeWithLiterals, type GuestUpdatedEnvelope, type GuestsQueryBuilder, type GuestsQueryResult, type IdentificationData, type IdentificationDataIdOneOf, type InputValue, type Invoice, type Item, type Language, type ListGuestListPreviewsRequest, type ListGuestListPreviewsResponse, type Location, LocationType, type LocationTypeWithLiterals, type MemberEventStatusUpdated, MemberEventStatusUpdatedEventType, type MemberEventStatusUpdatedEventTypeWithLiterals, type MemberGuest, type MemberGuests, type MessageEnvelope, type Money, NotifyActionType, type NotifyActionTypeWithLiterals, type NotifyGuestAction, type Occurrence, type OnlineConferencingLogin, type OrderConfirmed, type OrderDeleted, type OrderDetails, OrderStatus, type OrderStatusWithLiterals, OrderType, type OrderTypeWithLiterals, type OrderUpdated, type Paging, type PagingMetadataV2, type PaidPlanDiscount, type PaidPlanDiscountDiscountOneOf, type PercentDiscount, type QueryEventGuestsOptions, type QueryEventGuestsRequest, type QueryEventGuestsResponse, type QueryV2, type QueryV2PagingMethodOneOf, RecurrenceStatusStatus, type RecurrenceStatusStatusWithLiterals, type Recurrences, RequestedFields, RequestedFieldsEnumRequestedFields, type RequestedFieldsEnumRequestedFieldsWithLiterals, type RequestedFieldsWithLiterals, type RestoreInfo, RsvpStatus, type RsvpStatusWithLiterals, type SecondaryLanguagesRequest, type SecondaryLanguagesResponse, SortOrder, type SortOrderWithLiterals, type Sorting, type StandardDetails, Status, type StatusWithLiterals, type StreamEventGuestsRequest, type StreetAddress, type Subdivision, SubdivisionSubdivisionType, type SubdivisionSubdivisionTypeWithLiterals, SubdivisionType, type SubdivisionTypeWithLiterals, type Task, type TaskContext, type TaskKey, type Tax, TaxType, type TaxTypeWithLiterals, type Ticket, type TicketDetails, type TicketGuestDetails, TicketingOrderStatus, type TicketingOrderStatusWithLiterals, Timing, type TimingWithLiterals, type UpdateGuestRequest, type UpdateGuestResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, onGuestCheckedIn, onGuestCreated, onGuestDeleted, onGuestEventCanceled, onGuestEventStarts, onGuestOrderCanceled, onGuestUpdated, queryGuests, typedQueryGuests, utils };
@@ -86,7 +86,9 @@ function queryEventGuests(payload) {
86
86
  { path: "guests.createdDate" },
87
87
  { path: "guests.updatedDate" },
88
88
  { path: "guests.attendanceStatusUpdatedDate" },
89
- { path: "guests.guestDetails.formResponse.inputValues.dateTime" }
89
+ { path: "guests.guestDetails.formResponse.inputValues.dateTime" },
90
+ { path: "guests.additionalDetails.createdDate" },
91
+ { path: "guests.additionalDetails.updatedDate" }
90
92
  ]
91
93
  },
92
94
  {
@@ -134,6 +136,26 @@ var GuestType = /* @__PURE__ */ ((GuestType2) => {
134
136
  GuestType2["TICKET_HOLDER"] = "TICKET_HOLDER";
135
137
  return GuestType2;
136
138
  })(GuestType || {});
139
+ var RsvpStatus = /* @__PURE__ */ ((RsvpStatus2) => {
140
+ RsvpStatus2["YES"] = "YES";
141
+ RsvpStatus2["NO"] = "NO";
142
+ RsvpStatus2["WAITLIST"] = "WAITLIST";
143
+ return RsvpStatus2;
144
+ })(RsvpStatus || {});
145
+ var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
146
+ OrderStatus2["UNKNOW_ORDER_STATUS"] = "UNKNOW_ORDER_STATUS";
147
+ OrderStatus2["FREE"] = "FREE";
148
+ OrderStatus2["PENDING"] = "PENDING";
149
+ OrderStatus2["PAID"] = "PAID";
150
+ OrderStatus2["OFFLINE_PENDING"] = "OFFLINE_PENDING";
151
+ OrderStatus2["INITIATED"] = "INITIATED";
152
+ OrderStatus2["CANCELED"] = "CANCELED";
153
+ OrderStatus2["DECLINED"] = "DECLINED";
154
+ OrderStatus2["AUTHORIZED"] = "AUTHORIZED";
155
+ OrderStatus2["VOIDED"] = "VOIDED";
156
+ OrderStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
157
+ return OrderStatus2;
158
+ })(OrderStatus || {});
137
159
  var MemberEventStatusUpdatedEventType = /* @__PURE__ */ ((MemberEventStatusUpdatedEventType2) => {
138
160
  MemberEventStatusUpdatedEventType2["MEMBER_JOINED"] = "MEMBER_JOINED";
139
161
  MemberEventStatusUpdatedEventType2["MEMBER_LEFT"] = "MEMBER_LEFT";
@@ -198,20 +220,20 @@ var Timing = /* @__PURE__ */ ((Timing2) => {
198
220
  Timing2["STARTS_IN_2_HOURS"] = "STARTS_IN_2_HOURS";
199
221
  return Timing2;
200
222
  })(Timing || {});
201
- var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
202
- OrderStatus2["NA_ORDER_STATUS"] = "NA_ORDER_STATUS";
203
- OrderStatus2["FREE"] = "FREE";
204
- OrderStatus2["PENDING"] = "PENDING";
205
- OrderStatus2["PAID"] = "PAID";
206
- OrderStatus2["OFFLINE_PENDING"] = "OFFLINE_PENDING";
207
- OrderStatus2["INITIATED"] = "INITIATED";
208
- OrderStatus2["CANCELED"] = "CANCELED";
209
- OrderStatus2["DECLINED"] = "DECLINED";
210
- OrderStatus2["AUTHORIZED"] = "AUTHORIZED";
211
- OrderStatus2["VOIDED"] = "VOIDED";
212
- OrderStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
213
- return OrderStatus2;
214
- })(OrderStatus || {});
223
+ var TicketingOrderStatus = /* @__PURE__ */ ((TicketingOrderStatus2) => {
224
+ TicketingOrderStatus2["NA_ORDER_STATUS"] = "NA_ORDER_STATUS";
225
+ TicketingOrderStatus2["FREE"] = "FREE";
226
+ TicketingOrderStatus2["PENDING"] = "PENDING";
227
+ TicketingOrderStatus2["PAID"] = "PAID";
228
+ TicketingOrderStatus2["OFFLINE_PENDING"] = "OFFLINE_PENDING";
229
+ TicketingOrderStatus2["INITIATED"] = "INITIATED";
230
+ TicketingOrderStatus2["CANCELED"] = "CANCELED";
231
+ TicketingOrderStatus2["DECLINED"] = "DECLINED";
232
+ TicketingOrderStatus2["AUTHORIZED"] = "AUTHORIZED";
233
+ TicketingOrderStatus2["VOIDED"] = "VOIDED";
234
+ TicketingOrderStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
235
+ return TicketingOrderStatus2;
236
+ })(TicketingOrderStatus || {});
215
237
  var TaxType = /* @__PURE__ */ ((TaxType2) => {
216
238
  TaxType2["INCLUDED"] = "INCLUDED";
217
239
  TaxType2["ADDED"] = "ADDED";
@@ -367,11 +389,13 @@ export {
367
389
  RecurrenceStatusStatus,
368
390
  RequestedFields,
369
391
  RequestedFieldsEnumRequestedFields,
392
+ RsvpStatus,
370
393
  SortOrder,
371
394
  Status,
372
395
  SubdivisionSubdivisionType,
373
396
  SubdivisionType,
374
397
  TaxType,
398
+ TicketingOrderStatus,
375
399
  Timing,
376
400
  WebhookIdentityType,
377
401
  queryGuests,