@wix/auto_sdk_events_tickets 1.0.15 → 1.0.17

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 (44) hide show
  1. package/build/{internal → cjs}/index.d.ts +2 -2
  2. package/build/cjs/index.js.map +1 -0
  3. package/build/{events-v1-ticket-tickets.universal-p2W3dHH_.d.mts → cjs/index.typings.d.ts} +108 -1
  4. package/build/cjs/index.typings.js +1168 -0
  5. package/build/cjs/index.typings.js.map +1 -0
  6. package/build/{internal → cjs}/meta.d.ts +2 -1
  7. package/build/{internal → es}/index.d.mts +2 -2
  8. package/build/es/index.mjs.map +1 -0
  9. package/build/{events-v1-ticket-tickets.universal-p2W3dHH_.d.ts → es/index.typings.d.mts} +108 -1
  10. package/build/es/index.typings.mjs +1133 -0
  11. package/build/es/index.typings.mjs.map +1 -0
  12. package/build/{internal → es}/meta.d.mts +2 -1
  13. package/build/es/package.json +3 -0
  14. package/build/{index.d.ts → internal/cjs/index.d.ts} +2 -2
  15. package/build/internal/cjs/index.js.map +1 -0
  16. package/build/internal/{events-v1-ticket-tickets.universal-pbX6XcSr.d.ts → cjs/index.typings.d.ts} +108 -1
  17. package/build/internal/cjs/index.typings.js +1168 -0
  18. package/build/internal/cjs/index.typings.js.map +1 -0
  19. package/build/{meta.d.ts → internal/cjs/meta.d.ts} +2 -1
  20. package/build/internal/cjs/meta.js.map +1 -0
  21. package/build/{index.d.mts → internal/es/index.d.mts} +2 -2
  22. package/build/internal/es/index.mjs.map +1 -0
  23. package/build/internal/{events-v1-ticket-tickets.universal-pbX6XcSr.d.mts → es/index.typings.d.mts} +108 -1
  24. package/build/internal/es/index.typings.mjs +1133 -0
  25. package/build/internal/es/index.typings.mjs.map +1 -0
  26. package/build/{meta.d.mts → internal/es/meta.d.mts} +2 -1
  27. package/build/internal/es/meta.mjs.map +1 -0
  28. package/package.json +11 -11
  29. package/build/index.js.map +0 -1
  30. package/build/index.mjs.map +0 -1
  31. package/build/internal/index.js.map +0 -1
  32. package/build/internal/index.mjs.map +0 -1
  33. package/build/meta.js.map +0 -1
  34. package/build/meta.mjs.map +0 -1
  35. /package/build/{index.js → cjs/index.js} +0 -0
  36. /package/build/{internal → cjs}/meta.js +0 -0
  37. /package/build/{internal → cjs}/meta.js.map +0 -0
  38. /package/build/{index.mjs → es/index.mjs} +0 -0
  39. /package/build/{internal → es}/meta.mjs +0 -0
  40. /package/build/{internal → es}/meta.mjs.map +0 -0
  41. /package/build/internal/{index.js → cjs/index.js} +0 -0
  42. /package/build/{meta.js → internal/cjs/meta.js} +0 -0
  43. /package/build/internal/{index.mjs → es/index.mjs} +0 -0
  44. /package/build/{meta.mjs → internal/es/meta.mjs} +0 -0
@@ -1,3 +1,5 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
1
3
  interface TicketingTicket {
2
4
  /** A unique ticket number which is assigned automatically when creating a ticket. */
3
5
  ticketNumber?: string;
@@ -259,6 +261,8 @@ declare enum SubdivisionType {
259
261
  /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
260
262
  COUNTRY = "COUNTRY"
261
263
  }
264
+ /** @enumType */
265
+ type SubdivisionTypeWithLiterals = SubdivisionType | 'UNKNOWN_SUBDIVISION_TYPE' | 'ADMINISTRATIVE_AREA_LEVEL_1' | 'ADMINISTRATIVE_AREA_LEVEL_2' | 'ADMINISTRATIVE_AREA_LEVEL_3' | 'ADMINISTRATIVE_AREA_LEVEL_4' | 'ADMINISTRATIVE_AREA_LEVEL_5' | 'COUNTRY';
262
266
  /** Subdivision Concordance values */
263
267
  interface StandardDetails {
264
268
  /**
@@ -830,6 +834,41 @@ interface TicketOrderUpdatedEnvelope {
830
834
  data: OrderUpdated;
831
835
  metadata: BaseEventMetadata;
832
836
  }
837
+ /** @permissionScope Read Events - all read permissions
838
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
839
+ * @permissionScope Manage Events - all permissions
840
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
841
+ * @permissionScope Manage Events
842
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
843
+ * @permissionScope Read Basic Events Order Info
844
+ * @permissionScopeId SCOPE.DC-EVENTS.READ-BASIC-ORDERS
845
+ * @permissionScope Manage Orders
846
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
847
+ * @permissionId WIX_EVENTS.READ_ORDERS
848
+ * @webhook
849
+ * @eventType wix.events.ticketing.events.OrderUpdated
850
+ * @serviceIdentifier wix.events.ticketing.TicketManagement
851
+ * @slug order_updated
852
+ */
853
+ declare function onTicketOrderUpdated(handler: (event: TicketOrderUpdatedEnvelope) => void | Promise<void>): void;
854
+ type TicketNonNullablePaths = `ticketNumber` | `orderNumber` | `ticketDefinitionId` | `name` | `price.amount` | `price.currency` | `free` | `policy` | `qrCode` | `orderStatus` | `orderArchived` | `orderFullName` | `guestDetails.guestAssigned` | `guestDetails.form.inputValues` | `guestDetails.form.inputValues.${number}.inputName` | `guestDetails.form.inputValues.${number}.value` | `archived` | `ticketPdf` | `anonymized` | `checkInUrl` | `ticketPdfUrl` | `channel` | `walletPassUrl`;
855
+ /**
856
+ * Retrieves a list of up to 100 tickets.
857
+ *
858
+ * <!--
859
+ * >**Note:** This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
860
+ * -->
861
+ * @param eventId - Event IDs.
862
+ * @public
863
+ * @requiredField eventId
864
+ * @param options - Options for defining the returned list of tickets.
865
+ * @permissionId WIX_EVENTS.READ_TICKETS
866
+ * @applicableIdentity APP
867
+ * @fqn wix.events.ticketing.TicketManagement.ListTickets
868
+ */
869
+ declare function listTickets(eventId: string[], options?: ListTicketsOptions): Promise<NonNullablePaths<ListTicketsResponse, `total` | `offset` | `limit` | {
870
+ [P in TicketNonNullablePaths]: `tickets.${number}.${P}`;
871
+ }[TicketNonNullablePaths]>>;
833
872
  interface ListTicketsOptions {
834
873
  /**
835
874
  *
@@ -927,6 +966,20 @@ interface ListTicketsOptions {
927
966
  */
928
967
  seatId?: string[];
929
968
  }
969
+ /**
970
+ * Retrieves a ticket by the unique ticket number.
971
+ * @public
972
+ * @requiredField identifiers
973
+ * @requiredField identifiers.eventId
974
+ * @requiredField identifiers.ticketNumber
975
+ * @param identifiers - Details for the ticket to retrieve.
976
+ * @param options - Options for the returned ticket data.
977
+ * @permissionId WIX_EVENTS.READ_TICKET_DETAILS
978
+ * @applicableIdentity APP
979
+ * @returns Ticket.
980
+ * @fqn wix.events.ticketing.TicketManagement.GetTicket
981
+ */
982
+ declare function getTicket(identifiers: NonNullablePaths<GetTicketIdentifiers, `eventId` | `ticketNumber`>, options?: GetTicketOptions): Promise<NonNullablePaths<TicketingTicket, TicketNonNullablePaths>>;
930
983
  interface GetTicketIdentifiers {
931
984
  /**
932
985
  * Event ID to which the ticket belongs.
@@ -951,6 +1004,19 @@ interface GetTicketOptions {
951
1004
  */
952
1005
  fieldset?: TicketFieldsetWithLiterals[];
953
1006
  }
1007
+ /**
1008
+ * Checks in 1 or more tickets.
1009
+ * @public
1010
+ * @requiredField eventId
1011
+ * @param eventId - Event ID to which the ticket belongs.
1012
+ * @param options - Options for tickets to check-in.
1013
+ * @permissionId WIX_EVENTS.CHECK-IN
1014
+ * @applicableIdentity APP
1015
+ * @fqn wix.events.ticketing.TicketManagement.CheckInTicket
1016
+ */
1017
+ declare function checkInTickets(eventId: string, options?: CheckInTicketsOptions): Promise<NonNullablePaths<CheckInTicketResponse, {
1018
+ [P in TicketNonNullablePaths]: `tickets.${number}.${P}`;
1019
+ }[TicketNonNullablePaths]>>;
954
1020
  interface CheckInTicketsOptions {
955
1021
  /**
956
1022
  * Tickets to check-in.
@@ -961,6 +1027,19 @@ interface CheckInTicketsOptions {
961
1027
  */
962
1028
  ticketNumber?: string[];
963
1029
  }
1030
+ /**
1031
+ * Deletes check-ins for 1 or more tickets.
1032
+ * @public
1033
+ * @requiredField eventId
1034
+ * @param eventId - Event ID to which the ticket belongs.
1035
+ * @param options - Options for tickets to delete.
1036
+ * @permissionId WIX_EVENTS.CHECK-IN
1037
+ * @applicableIdentity APP
1038
+ * @fqn wix.events.ticketing.TicketManagement.DeleteTicketCheckIn
1039
+ */
1040
+ declare function deleteTicketCheckIns(eventId: string, options?: DeleteTicketCheckInsOptions): Promise<NonNullablePaths<DeleteTicketCheckInResponse, {
1041
+ [P in TicketNonNullablePaths]: `tickets.${number}.${P}`;
1042
+ }[TicketNonNullablePaths]>>;
964
1043
  interface DeleteTicketCheckInsOptions {
965
1044
  /**
966
1045
  * Ticket numbers which check-ins to delete.
@@ -971,6 +1050,21 @@ interface DeleteTicketCheckInsOptions {
971
1050
  */
972
1051
  ticketNumber?: string[];
973
1052
  }
1053
+ /**
1054
+ * Updates a ticket.
1055
+ * @public
1056
+ * @requiredField identifiers
1057
+ * @requiredField identifiers.eventId
1058
+ * @requiredField identifiers.ticketNumber
1059
+ * @param identifiers - Details for the ticket to update.
1060
+ * @param options - Ticket details to update.
1061
+ * @permissionId WIX_EVENTS.MANAGE_TICKETS
1062
+ * @applicableIdentity APP
1063
+ * @fqn wix.events.ticketing.TicketManagement.UpdateTicket
1064
+ */
1065
+ declare function updateTicket(identifiers: NonNullablePaths<UpdateTicketIdentifiers, `eventId` | `ticketNumber`>, options?: UpdateTicketOptions): Promise<NonNullablePaths<UpdateTicketResponse, {
1066
+ [P in TicketNonNullablePaths]: `ticket.${P}`;
1067
+ }[TicketNonNullablePaths]>>;
974
1068
  interface UpdateTicketIdentifiers {
975
1069
  /**
976
1070
  * Event ID to which the ticket belongs.
@@ -996,6 +1090,19 @@ interface UpdateTicketOptions {
996
1090
  /** Assigned guest details. */
997
1091
  guestDetails?: GuestDetailsUpdate;
998
1092
  }
1093
+ /**
1094
+ * Archives multiple tickets.
1095
+ * @public
1096
+ * @requiredField eventId
1097
+ * @param options - Options for updating the tickets.
1098
+ * @param eventId - Event ID to which the ticket belongs.
1099
+ * @permissionId WIX_EVENTS.MANAGE_TICKETS
1100
+ * @applicableIdentity APP
1101
+ * @fqn wix.events.ticketing.TicketManagement.BulkUpdateTickets
1102
+ */
1103
+ declare function bulkUpdateTickets(eventId: string, options?: BulkUpdateTicketsOptions): Promise<NonNullablePaths<BulkUpdateTicketsResponse, {
1104
+ [P in TicketNonNullablePaths]: `tickets.${number}.${P}`;
1105
+ }[TicketNonNullablePaths]>>;
999
1106
  interface BulkUpdateTicketsOptions {
1000
1107
  /**
1001
1108
  * A unique ticket number which is assigned automatically when creating a ticket.
@@ -1009,4 +1116,4 @@ interface BulkUpdateTicketsOptions {
1009
1116
  archived?: boolean;
1010
1117
  }
1011
1118
 
1012
- export { type IdentificationDataIdOneOf as $, type Address as A, type BulkUpdateTicketsOptions as B, type CheckInTicketsOptions as C, type DeleteTicketCheckInsOptions as D, type GetTicketResponse as E, type FormResponse as F, type GetTicketIdentifiers as G, type CheckInTicketRequest as H, type InputValue as I, type OrderUpdated as J, type Ticket as K, type ListTicketsOptions as L, type Money as M, type OnlineConferencingLogin as N, OrderStatus as O, type DeleteTicketCheckInRequest as P, type UpdateTicketRequest as Q, type GuestDetailsUpdate as R, SubdivisionType as S, type TicketingTicket as T, type UpdateTicketIdentifiers as U, type BulkUpdateTicketsRequest as V, WebhookIdentityType as W, type GetDemoTicketRequest as X, type GetDemoTicketResponse as Y, type MessageEnvelope as Z, type IdentificationData as _, type ListTicketsResponse as a, type BaseEventMetadata as a0, type GetTicketOptions as b, type CheckInTicketResponse as c, type DeleteTicketCheckInResponse as d, type UpdateTicketOptions as e, type UpdateTicketResponse as f, type BulkUpdateTicketsResponse as g, type TicketOrderUpdatedEnvelope as h, ChannelType as i, TicketFieldset as j, State as k, type CheckIn as l, type GuestDetails as m, type FormattedAddress as n, type AddressStreetOneOf as o, type StreetAddress as p, type AddressLocation as q, type Subdivision as r, type StandardDetails as s, type TicketDetails as t, type ListTicketsRequest as u, type FacetCounts as v, type TicketFacets as w, type TicketFacetCounts as x, type Counts as y, type GetTicketRequest as z };
1119
+ export { type Address, type AddressLocation, type AddressStreetOneOf, type BaseEventMetadata, type BulkUpdateTicketsOptions, type BulkUpdateTicketsRequest, type BulkUpdateTicketsResponse, ChannelType, type ChannelTypeWithLiterals, type CheckIn, type CheckInTicketRequest, type CheckInTicketResponse, type CheckInTicketsOptions, type Counts, type DeleteTicketCheckInRequest, type DeleteTicketCheckInResponse, type DeleteTicketCheckInsOptions, type FacetCounts, type FormResponse, type FormattedAddress, type GetDemoTicketRequest, type GetDemoTicketResponse, type GetTicketIdentifiers, type GetTicketOptions, type GetTicketRequest, type GetTicketResponse, type GuestDetails, type GuestDetailsUpdate, type IdentificationData, type IdentificationDataIdOneOf, type InputValue, type ListTicketsOptions, type ListTicketsRequest, type ListTicketsResponse, type MessageEnvelope, type Money, type OnlineConferencingLogin, OrderStatus, type OrderStatusWithLiterals, type OrderUpdated, type StandardDetails, State, type StateWithLiterals, type StreetAddress, type Subdivision, SubdivisionType, type SubdivisionTypeWithLiterals, type Ticket, type TicketDetails, type TicketFacetCounts, type TicketFacets, TicketFieldset, type TicketFieldsetWithLiterals, type TicketOrderUpdatedEnvelope, type TicketingTicket, type UpdateTicketIdentifiers, type UpdateTicketOptions, type UpdateTicketRequest, type UpdateTicketResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkUpdateTickets, checkInTickets, deleteTicketCheckIns, getTicket, listTickets, onTicketOrderUpdated, updateTicket };