@wix/auto_sdk_events_tickets 1.0.16 → 1.0.18
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 +21 -10
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{events-v1-ticket-tickets.universal-p2W3dHH_.d.ts → index.typings.d.ts} +119 -12
- package/build/cjs/index.typings.js +1168 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +36 -46
- package/build/es/index.d.mts +21 -10
- package/build/es/index.mjs.map +1 -1
- package/build/es/{events-v1-ticket-tickets.universal-p2W3dHH_.d.mts → index.typings.d.mts} +119 -12
- package/build/es/index.typings.mjs +1133 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +36 -46
- package/build/internal/cjs/index.d.ts +21 -10
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{events-v1-ticket-tickets.universal-pbX6XcSr.d.ts → index.typings.d.ts} +119 -24
- package/build/internal/cjs/index.typings.js +1168 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +36 -46
- package/build/internal/es/index.d.mts +21 -10
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{events-v1-ticket-tickets.universal-pbX6XcSr.d.mts → index.typings.d.mts} +119 -24
- package/build/internal/es/index.typings.mjs +1133 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +36 -46
- package/package.json +3 -3
package/build/internal/es/{events-v1-ticket-tickets.universal-pbX6XcSr.d.mts → index.typings.d.mts}
RENAMED
|
@@ -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;
|
|
@@ -19,12 +21,6 @@ interface TicketingTicket {
|
|
|
19
21
|
free?: boolean;
|
|
20
22
|
/** Ticket and event policies. */
|
|
21
23
|
policy?: string;
|
|
22
|
-
/**
|
|
23
|
-
* @internal
|
|
24
|
-
* @internal
|
|
25
|
-
* @deprecated
|
|
26
|
-
*/
|
|
27
|
-
qrCode?: string;
|
|
28
24
|
/** Ticket check-in. */
|
|
29
25
|
checkIn?: CheckIn;
|
|
30
26
|
/**
|
|
@@ -40,7 +36,7 @@ interface TicketingTicket {
|
|
|
40
36
|
orderStatus?: OrderStatusWithLiterals;
|
|
41
37
|
/**
|
|
42
38
|
* Whether the order and ticket are archived.
|
|
43
|
-
* If set to `true`, they
|
|
39
|
+
* If set to `true`, they aren't visible in the order list.
|
|
44
40
|
*/
|
|
45
41
|
orderArchived?: boolean;
|
|
46
42
|
/** Buyer full name. */
|
|
@@ -51,12 +47,6 @@ interface TicketingTicket {
|
|
|
51
47
|
guestDetails?: GuestDetails;
|
|
52
48
|
/** Whether the ticket is visible in an order. */
|
|
53
49
|
archived?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
* @internal
|
|
57
|
-
* @deprecated
|
|
58
|
-
*/
|
|
59
|
-
ticketPdf?: string;
|
|
60
50
|
/**
|
|
61
51
|
* Ticket owner member ID.
|
|
62
52
|
* @format GUID
|
|
@@ -115,7 +105,7 @@ interface CheckIn {
|
|
|
115
105
|
created?: Date | null;
|
|
116
106
|
}
|
|
117
107
|
declare enum OrderStatus {
|
|
118
|
-
/** Order status
|
|
108
|
+
/** Order status isn't available for this request fieldset. */
|
|
119
109
|
NA_ORDER_STATUS = "NA_ORDER_STATUS",
|
|
120
110
|
/** Order is confirmed, no payment is required. */
|
|
121
111
|
FREE = "FREE",
|
|
@@ -123,9 +113,9 @@ declare enum OrderStatus {
|
|
|
123
113
|
PENDING = "PENDING",
|
|
124
114
|
/** Order is paid. */
|
|
125
115
|
PAID = "PAID",
|
|
126
|
-
/** Order is confirmed but
|
|
116
|
+
/** Order is confirmed but must be paid via offline payment. Status needs to be manually updated to `"PAID"`. */
|
|
127
117
|
OFFLINE_PENDING = "OFFLINE_PENDING",
|
|
128
|
-
/** Order is
|
|
118
|
+
/** Order is waiting for payment at the cashier. */
|
|
129
119
|
INITIATED = "INITIATED",
|
|
130
120
|
/** Order is canceled. */
|
|
131
121
|
CANCELED = "CANCELED",
|
|
@@ -192,11 +182,11 @@ interface InputValue {
|
|
|
192
182
|
}
|
|
193
183
|
interface FormattedAddress {
|
|
194
184
|
/**
|
|
195
|
-
*
|
|
185
|
+
* 1-line address representation.
|
|
196
186
|
* @maxLength 200
|
|
197
187
|
*/
|
|
198
188
|
formatted?: string;
|
|
199
|
-
/** Address components
|
|
189
|
+
/** Address components. */
|
|
200
190
|
address?: Address;
|
|
201
191
|
}
|
|
202
192
|
/** Physical address */
|
|
@@ -259,6 +249,8 @@ declare enum SubdivisionType {
|
|
|
259
249
|
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
260
250
|
COUNTRY = "COUNTRY"
|
|
261
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';
|
|
262
254
|
/** Subdivision Concordance values */
|
|
263
255
|
interface StandardDetails {
|
|
264
256
|
/**
|
|
@@ -268,7 +260,7 @@ interface StandardDetails {
|
|
|
268
260
|
iso31662?: string | null;
|
|
269
261
|
}
|
|
270
262
|
declare enum ChannelType {
|
|
271
|
-
/** Buyer created the order via an online channel, such as a website or
|
|
263
|
+
/** Buyer created the order via an online channel, such as a website or mobile app. */
|
|
272
264
|
ONLINE = "ONLINE",
|
|
273
265
|
/** Sales person created the order and collected the money. */
|
|
274
266
|
OFFLINE_POS = "OFFLINE_POS"
|
|
@@ -333,14 +325,14 @@ interface TicketDetails {
|
|
|
333
325
|
}
|
|
334
326
|
interface ListTicketsRequest {
|
|
335
327
|
/**
|
|
336
|
-
* Event IDs.
|
|
328
|
+
* Event IDs to which the tickets belong.
|
|
337
329
|
* @format GUID
|
|
338
330
|
*/
|
|
339
331
|
eventId: string[];
|
|
340
332
|
/** Offset. See [Pagination](/wix-events-v2/pagination). */
|
|
341
333
|
offset?: number;
|
|
342
334
|
/**
|
|
343
|
-
* Number of items to load per page.
|
|
335
|
+
* Number of items to load per page.
|
|
344
336
|
* @max 100
|
|
345
337
|
*/
|
|
346
338
|
limit?: number;
|
|
@@ -461,9 +453,9 @@ declare enum State {
|
|
|
461
453
|
/** @enumType */
|
|
462
454
|
type StateWithLiterals = State | 'ORDER_ARCHIVED' | 'ORDER_ACTIVE' | 'TICKET_ARCHIVED' | 'TICKET_ACTIVE' | 'CHECKED_IN' | 'NON_CHECKED_IN' | 'FREE' | 'PAID' | 'MEMBER';
|
|
463
455
|
interface ListTicketsResponse {
|
|
464
|
-
/** Total tickets matching the
|
|
456
|
+
/** Total tickets matching the specified filters. */
|
|
465
457
|
total?: number;
|
|
466
|
-
/**
|
|
458
|
+
/** Paging offset. */
|
|
467
459
|
offset?: number;
|
|
468
460
|
/**
|
|
469
461
|
* Limit.
|
|
@@ -830,6 +822,41 @@ interface TicketOrderUpdatedEnvelope {
|
|
|
830
822
|
data: OrderUpdated;
|
|
831
823
|
metadata: BaseEventMetadata;
|
|
832
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` | `orderStatus` | `orderArchived` | `orderFullName` | `guestDetails.guestAssigned` | `guestDetails.form.inputValues` | `guestDetails.form.inputValues.${number}.inputName` | `guestDetails.form.inputValues.${number}.value` | `archived` | `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 to which the tickets belong.
|
|
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]>>;
|
|
833
860
|
interface ListTicketsOptions {
|
|
834
861
|
/**
|
|
835
862
|
*
|
|
@@ -927,6 +954,20 @@ interface ListTicketsOptions {
|
|
|
927
954
|
*/
|
|
928
955
|
seatId?: string[];
|
|
929
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>>;
|
|
930
971
|
interface GetTicketIdentifiers {
|
|
931
972
|
/**
|
|
932
973
|
* Event ID to which the ticket belongs.
|
|
@@ -951,6 +992,19 @@ interface GetTicketOptions {
|
|
|
951
992
|
*/
|
|
952
993
|
fieldset?: TicketFieldsetWithLiterals[];
|
|
953
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]>>;
|
|
954
1008
|
interface CheckInTicketsOptions {
|
|
955
1009
|
/**
|
|
956
1010
|
* Tickets to check-in.
|
|
@@ -961,6 +1015,19 @@ interface CheckInTicketsOptions {
|
|
|
961
1015
|
*/
|
|
962
1016
|
ticketNumber?: string[];
|
|
963
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]>>;
|
|
964
1031
|
interface DeleteTicketCheckInsOptions {
|
|
965
1032
|
/**
|
|
966
1033
|
* Ticket numbers which check-ins to delete.
|
|
@@ -971,6 +1038,21 @@ interface DeleteTicketCheckInsOptions {
|
|
|
971
1038
|
*/
|
|
972
1039
|
ticketNumber?: string[];
|
|
973
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]>>;
|
|
974
1056
|
interface UpdateTicketIdentifiers {
|
|
975
1057
|
/**
|
|
976
1058
|
* Event ID to which the ticket belongs.
|
|
@@ -996,6 +1078,19 @@ interface UpdateTicketOptions {
|
|
|
996
1078
|
/** Assigned guest details. */
|
|
997
1079
|
guestDetails?: GuestDetailsUpdate;
|
|
998
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]>>;
|
|
999
1094
|
interface BulkUpdateTicketsOptions {
|
|
1000
1095
|
/**
|
|
1001
1096
|
* A unique ticket number which is assigned automatically when creating a ticket.
|
|
@@ -1009,4 +1104,4 @@ interface BulkUpdateTicketsOptions {
|
|
|
1009
1104
|
archived?: boolean;
|
|
1010
1105
|
}
|
|
1011
1106
|
|
|
1012
|
-
export { type
|
|
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 };
|