@wix/auto_sdk_events_tickets 1.0.16 → 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.
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { L as ListTicketsOptions, a as ListTicketsResponse, G as GetTicketIdentifiers, b as GetTicketOptions, T as TicketingTicket, C as CheckInTicketsOptions, c as CheckInTicketResponse, D as DeleteTicketCheckInsOptions, d as DeleteTicketCheckInResponse, U as UpdateTicketIdentifiers, e as UpdateTicketOptions, f as UpdateTicketResponse, B as BulkUpdateTicketsOptions, g as BulkUpdateTicketsResponse, h as TicketOrderUpdatedEnvelope } from './events-v1-ticket-tickets.universal-p2W3dHH_.js';
3
- export { A as Address, q as AddressLocation, o as AddressStreetOneOf, a0 as BaseEventMetadata, V as BulkUpdateTicketsRequest, i as ChannelType, l as CheckIn, H as CheckInTicketRequest, y as Counts, P as DeleteTicketCheckInRequest, v as FacetCounts, F as FormResponse, n as FormattedAddress, X as GetDemoTicketRequest, Y as GetDemoTicketResponse, z as GetTicketRequest, E as GetTicketResponse, m as GuestDetails, R as GuestDetailsUpdate, _ as IdentificationData, $ as IdentificationDataIdOneOf, I as InputValue, u as ListTicketsRequest, Z as MessageEnvelope, M as Money, N as OnlineConferencingLogin, O as OrderStatus, J as OrderUpdated, s as StandardDetails, k as State, p as StreetAddress, r as Subdivision, S as SubdivisionType, K as Ticket, t as TicketDetails, x as TicketFacetCounts, w as TicketFacets, j as TicketFieldset, Q as UpdateTicketRequest, W as WebhookIdentityType } from './events-v1-ticket-tickets.universal-p2W3dHH_.js';
2
+ import { ListTicketsOptions, ListTicketsResponse, GetTicketIdentifiers, GetTicketOptions, TicketingTicket, CheckInTicketsOptions, CheckInTicketResponse, DeleteTicketCheckInsOptions, DeleteTicketCheckInResponse, UpdateTicketIdentifiers, UpdateTicketOptions, UpdateTicketResponse, BulkUpdateTicketsOptions, BulkUpdateTicketsResponse, TicketOrderUpdatedEnvelope } from './index.typings.js';
3
+ export { Address, AddressLocation, AddressStreetOneOf, BaseEventMetadata, BulkUpdateTicketsRequest, ChannelType, CheckIn, CheckInTicketRequest, Counts, DeleteTicketCheckInRequest, FacetCounts, FormResponse, FormattedAddress, GetDemoTicketRequest, GetDemoTicketResponse, GetTicketRequest, GetTicketResponse, GuestDetails, GuestDetailsUpdate, IdentificationData, IdentificationDataIdOneOf, InputValue, ListTicketsRequest, MessageEnvelope, Money, OnlineConferencingLogin, OrderStatus, OrderUpdated, StandardDetails, State, StreetAddress, Subdivision, SubdivisionType, Ticket, TicketDetails, TicketFacetCounts, TicketFacets, TicketFieldset, UpdateTicketRequest, WebhookIdentityType } from './index.typings.js';
4
4
 
5
5
  declare function listTickets$1(httpClient: HttpClient): ListTicketsSignature;
6
6
  interface ListTicketsSignature {
@@ -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;
@@ -247,6 +249,8 @@ declare enum SubdivisionType {
247
249
  /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
248
250
  COUNTRY = "COUNTRY"
249
251
  }
252
+ /** @enumType */
253
+ 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';
250
254
  /** Subdivision Concordance values */
251
255
  interface StandardDetails {
252
256
  /**
@@ -818,6 +822,41 @@ interface TicketOrderUpdatedEnvelope {
818
822
  data: OrderUpdated;
819
823
  metadata: BaseEventMetadata;
820
824
  }
825
+ /** @permissionScope Read Events - all read permissions
826
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
827
+ * @permissionScope Manage Events - all permissions
828
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
829
+ * @permissionScope Manage Events
830
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
831
+ * @permissionScope Read Basic Events Order Info
832
+ * @permissionScopeId SCOPE.DC-EVENTS.READ-BASIC-ORDERS
833
+ * @permissionScope Manage Orders
834
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
835
+ * @permissionId WIX_EVENTS.READ_ORDERS
836
+ * @webhook
837
+ * @eventType wix.events.ticketing.events.OrderUpdated
838
+ * @serviceIdentifier wix.events.ticketing.TicketManagement
839
+ * @slug order_updated
840
+ */
841
+ declare function onTicketOrderUpdated(handler: (event: TicketOrderUpdatedEnvelope) => void | Promise<void>): void;
842
+ 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`;
843
+ /**
844
+ * Retrieves a list of up to 100 tickets.
845
+ *
846
+ * <!--
847
+ * >**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.
848
+ * -->
849
+ * @param eventId - Event IDs.
850
+ * @public
851
+ * @requiredField eventId
852
+ * @param options - Options for defining the returned list of tickets.
853
+ * @permissionId WIX_EVENTS.READ_TICKETS
854
+ * @applicableIdentity APP
855
+ * @fqn wix.events.ticketing.TicketManagement.ListTickets
856
+ */
857
+ declare function listTickets(eventId: string[], options?: ListTicketsOptions): Promise<NonNullablePaths<ListTicketsResponse, `total` | `offset` | `limit` | {
858
+ [P in TicketNonNullablePaths]: `tickets.${number}.${P}`;
859
+ }[TicketNonNullablePaths]>>;
821
860
  interface ListTicketsOptions {
822
861
  /**
823
862
  *
@@ -915,6 +954,20 @@ interface ListTicketsOptions {
915
954
  */
916
955
  seatId?: string[];
917
956
  }
957
+ /**
958
+ * Retrieves a ticket by the unique ticket number.
959
+ * @public
960
+ * @requiredField identifiers
961
+ * @requiredField identifiers.eventId
962
+ * @requiredField identifiers.ticketNumber
963
+ * @param identifiers - Details for the ticket to retrieve.
964
+ * @param options - Options for the returned ticket data.
965
+ * @permissionId WIX_EVENTS.READ_TICKET_DETAILS
966
+ * @applicableIdentity APP
967
+ * @returns Ticket.
968
+ * @fqn wix.events.ticketing.TicketManagement.GetTicket
969
+ */
970
+ declare function getTicket(identifiers: NonNullablePaths<GetTicketIdentifiers, `eventId` | `ticketNumber`>, options?: GetTicketOptions): Promise<NonNullablePaths<TicketingTicket, TicketNonNullablePaths>>;
918
971
  interface GetTicketIdentifiers {
919
972
  /**
920
973
  * Event ID to which the ticket belongs.
@@ -939,6 +992,19 @@ interface GetTicketOptions {
939
992
  */
940
993
  fieldset?: TicketFieldsetWithLiterals[];
941
994
  }
995
+ /**
996
+ * Checks in 1 or more tickets.
997
+ * @public
998
+ * @requiredField eventId
999
+ * @param eventId - Event ID to which the ticket belongs.
1000
+ * @param options - Options for tickets to check-in.
1001
+ * @permissionId WIX_EVENTS.CHECK-IN
1002
+ * @applicableIdentity APP
1003
+ * @fqn wix.events.ticketing.TicketManagement.CheckInTicket
1004
+ */
1005
+ declare function checkInTickets(eventId: string, options?: CheckInTicketsOptions): Promise<NonNullablePaths<CheckInTicketResponse, {
1006
+ [P in TicketNonNullablePaths]: `tickets.${number}.${P}`;
1007
+ }[TicketNonNullablePaths]>>;
942
1008
  interface CheckInTicketsOptions {
943
1009
  /**
944
1010
  * Tickets to check-in.
@@ -949,6 +1015,19 @@ interface CheckInTicketsOptions {
949
1015
  */
950
1016
  ticketNumber?: string[];
951
1017
  }
1018
+ /**
1019
+ * Deletes check-ins for 1 or more tickets.
1020
+ * @public
1021
+ * @requiredField eventId
1022
+ * @param eventId - Event ID to which the ticket belongs.
1023
+ * @param options - Options for tickets to delete.
1024
+ * @permissionId WIX_EVENTS.CHECK-IN
1025
+ * @applicableIdentity APP
1026
+ * @fqn wix.events.ticketing.TicketManagement.DeleteTicketCheckIn
1027
+ */
1028
+ declare function deleteTicketCheckIns(eventId: string, options?: DeleteTicketCheckInsOptions): Promise<NonNullablePaths<DeleteTicketCheckInResponse, {
1029
+ [P in TicketNonNullablePaths]: `tickets.${number}.${P}`;
1030
+ }[TicketNonNullablePaths]>>;
952
1031
  interface DeleteTicketCheckInsOptions {
953
1032
  /**
954
1033
  * Ticket numbers which check-ins to delete.
@@ -959,6 +1038,21 @@ interface DeleteTicketCheckInsOptions {
959
1038
  */
960
1039
  ticketNumber?: string[];
961
1040
  }
1041
+ /**
1042
+ * Updates a ticket.
1043
+ * @public
1044
+ * @requiredField identifiers
1045
+ * @requiredField identifiers.eventId
1046
+ * @requiredField identifiers.ticketNumber
1047
+ * @param identifiers - Details for the ticket to update.
1048
+ * @param options - Ticket details to update.
1049
+ * @permissionId WIX_EVENTS.MANAGE_TICKETS
1050
+ * @applicableIdentity APP
1051
+ * @fqn wix.events.ticketing.TicketManagement.UpdateTicket
1052
+ */
1053
+ declare function updateTicket(identifiers: NonNullablePaths<UpdateTicketIdentifiers, `eventId` | `ticketNumber`>, options?: UpdateTicketOptions): Promise<NonNullablePaths<UpdateTicketResponse, {
1054
+ [P in TicketNonNullablePaths]: `ticket.${P}`;
1055
+ }[TicketNonNullablePaths]>>;
962
1056
  interface UpdateTicketIdentifiers {
963
1057
  /**
964
1058
  * Event ID to which the ticket belongs.
@@ -984,6 +1078,19 @@ interface UpdateTicketOptions {
984
1078
  /** Assigned guest details. */
985
1079
  guestDetails?: GuestDetailsUpdate;
986
1080
  }
1081
+ /**
1082
+ * Archives multiple tickets.
1083
+ * @public
1084
+ * @requiredField eventId
1085
+ * @param options - Options for updating the tickets.
1086
+ * @param eventId - Event ID to which the ticket belongs.
1087
+ * @permissionId WIX_EVENTS.MANAGE_TICKETS
1088
+ * @applicableIdentity APP
1089
+ * @fqn wix.events.ticketing.TicketManagement.BulkUpdateTickets
1090
+ */
1091
+ declare function bulkUpdateTickets(eventId: string, options?: BulkUpdateTicketsOptions): Promise<NonNullablePaths<BulkUpdateTicketsResponse, {
1092
+ [P in TicketNonNullablePaths]: `tickets.${number}.${P}`;
1093
+ }[TicketNonNullablePaths]>>;
987
1094
  interface BulkUpdateTicketsOptions {
988
1095
  /**
989
1096
  * A unique ticket number which is assigned automatically when creating a ticket.
@@ -997,4 +1104,4 @@ interface BulkUpdateTicketsOptions {
997
1104
  archived?: boolean;
998
1105
  }
999
1106
 
1000
- 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 };
1107
+ 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 };