@wix/auto_sdk_events_tickets 1.0.17 → 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 +19 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +13 -13
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +34 -45
- package/build/es/index.d.mts +19 -8
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +13 -13
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +34 -45
- package/build/internal/cjs/index.d.ts +19 -8
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +13 -25
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +34 -45
- package/build/internal/es/index.d.mts +19 -8
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +13 -25
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +34 -45
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { ListTicketsRequest as ListTicketsRequest$1, ListTicketsResponse as List
|
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface TicketingTicket {
|
|
5
|
-
/** Unique ticket number
|
|
5
|
+
/** Unique ticket number which is assigned automatically when creating a ticket. */
|
|
6
6
|
ticketNumber?: string;
|
|
7
7
|
/** Associated order number. */
|
|
8
8
|
orderNumber?: string;
|
|
@@ -20,20 +20,15 @@ interface TicketingTicket {
|
|
|
20
20
|
* @readonly
|
|
21
21
|
*/
|
|
22
22
|
free?: boolean;
|
|
23
|
-
/**
|
|
23
|
+
/** Ticket and event policies. */
|
|
24
24
|
policy?: string;
|
|
25
|
-
/**
|
|
26
|
-
* *Deprecated:** Use `tickets.checkInUrl` instead.
|
|
27
|
-
* @deprecated
|
|
28
|
-
*/
|
|
29
|
-
qrCode?: string;
|
|
30
25
|
/** Ticket check-in. */
|
|
31
26
|
checkIn?: CheckIn;
|
|
32
27
|
/** Associated order status. */
|
|
33
28
|
orderStatus?: OrderStatusWithLiterals;
|
|
34
29
|
/**
|
|
35
30
|
* Whether the order and ticket are archived.
|
|
36
|
-
* If set to `true`, they
|
|
31
|
+
* If set to `true`, they aren't visible in the order list.
|
|
37
32
|
*/
|
|
38
33
|
orderArchived?: boolean;
|
|
39
34
|
/** Buyer full name. */
|
|
@@ -42,13 +37,8 @@ interface TicketingTicket {
|
|
|
42
37
|
guestFullName?: string | null;
|
|
43
38
|
/** Guest personal details. */
|
|
44
39
|
guestDetails?: GuestDetails;
|
|
45
|
-
/** Whether ticket is visible in
|
|
40
|
+
/** Whether the ticket is visible in an order. */
|
|
46
41
|
archived?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* *Deprecated:** Use `tickets.ticketPdfUrl` instead.
|
|
49
|
-
* @deprecated
|
|
50
|
-
*/
|
|
51
|
-
ticketPdf?: string;
|
|
52
42
|
/**
|
|
53
43
|
* Ticket owner member ID.
|
|
54
44
|
* @format GUID
|
|
@@ -72,7 +62,7 @@ interface TicketingTicket {
|
|
|
72
62
|
/** Associated order checkout channel type. */
|
|
73
63
|
channel?: ChannelTypeWithLiterals;
|
|
74
64
|
/**
|
|
75
|
-
* URL to download ticket in `.pkpass` format for Apple Wallet.
|
|
65
|
+
* URL to download a ticket in `.pkpass` format for Apple Wallet.
|
|
76
66
|
* @format WEB_URL
|
|
77
67
|
* @readonly
|
|
78
68
|
*/
|
|
@@ -91,7 +81,7 @@ interface Money {
|
|
|
91
81
|
*/
|
|
92
82
|
amount?: string;
|
|
93
83
|
/**
|
|
94
|
-
*
|
|
84
|
+
* 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. For example, `USD`.
|
|
95
85
|
* @format CURRENCY
|
|
96
86
|
*/
|
|
97
87
|
currency?: string;
|
|
@@ -102,11 +92,11 @@ interface Money {
|
|
|
102
92
|
value?: string | null;
|
|
103
93
|
}
|
|
104
94
|
interface CheckIn {
|
|
105
|
-
/** Time of check-in. */
|
|
95
|
+
/** Time of a ticket's check-in. */
|
|
106
96
|
created?: Date | null;
|
|
107
97
|
}
|
|
108
98
|
declare enum OrderStatus {
|
|
109
|
-
/** Order status
|
|
99
|
+
/** Order status isn't available for this request fieldset. */
|
|
110
100
|
NA_ORDER_STATUS = "NA_ORDER_STATUS",
|
|
111
101
|
/** Order is confirmed, no payment is required. */
|
|
112
102
|
FREE = "FREE",
|
|
@@ -114,9 +104,9 @@ declare enum OrderStatus {
|
|
|
114
104
|
PENDING = "PENDING",
|
|
115
105
|
/** Order is paid. */
|
|
116
106
|
PAID = "PAID",
|
|
117
|
-
/** Order is confirmed but
|
|
107
|
+
/** Order is confirmed but must be paid via offline payment. Status needs to be manually updated to `"PAID"`. */
|
|
118
108
|
OFFLINE_PENDING = "OFFLINE_PENDING",
|
|
119
|
-
/** Order is
|
|
109
|
+
/** Order is waiting for payment at the cashier. */
|
|
120
110
|
INITIATED = "INITIATED",
|
|
121
111
|
/** Order is canceled. */
|
|
122
112
|
CANCELED = "CANCELED",
|
|
@@ -158,31 +148,31 @@ interface GuestDetails {
|
|
|
158
148
|
}
|
|
159
149
|
interface FormResponse {
|
|
160
150
|
/**
|
|
161
|
-
*
|
|
151
|
+
* Form field inputs.
|
|
162
152
|
* @maxSize 200
|
|
163
153
|
*/
|
|
164
154
|
inputValues?: InputValue[];
|
|
165
155
|
}
|
|
166
156
|
interface InputValue {
|
|
167
157
|
/**
|
|
168
|
-
*
|
|
158
|
+
* Form field input name.
|
|
169
159
|
* @maxLength 100
|
|
170
160
|
*/
|
|
171
161
|
inputName?: string;
|
|
172
162
|
/**
|
|
173
|
-
*
|
|
163
|
+
* Form field value.
|
|
174
164
|
* @maxLength 5000
|
|
175
165
|
*/
|
|
176
166
|
value?: string;
|
|
177
167
|
/**
|
|
178
|
-
*
|
|
168
|
+
* Form field values.
|
|
179
169
|
* @maxSize 100
|
|
180
170
|
* @maxLength 5000
|
|
181
171
|
*/
|
|
182
172
|
values?: string[];
|
|
183
173
|
}
|
|
184
174
|
declare enum ChannelType {
|
|
185
|
-
/** Buyer created the order via an online channel, such as a website or
|
|
175
|
+
/** Buyer created the order via an online channel, such as a website or mobile app. */
|
|
186
176
|
ONLINE = "ONLINE",
|
|
187
177
|
/** Sales person created the order and collected the money. */
|
|
188
178
|
OFFLINE_POS = "OFFLINE_POS"
|
|
@@ -191,14 +181,14 @@ declare enum ChannelType {
|
|
|
191
181
|
type ChannelTypeWithLiterals = ChannelType | 'ONLINE' | 'OFFLINE_POS';
|
|
192
182
|
interface ListTicketsRequest {
|
|
193
183
|
/**
|
|
194
|
-
* Event IDs.
|
|
184
|
+
* Event IDs to which the tickets belong.
|
|
195
185
|
* @format GUID
|
|
196
186
|
*/
|
|
197
187
|
eventId: string[];
|
|
198
|
-
/**
|
|
188
|
+
/** Paging offset. */
|
|
199
189
|
offset?: number;
|
|
200
190
|
/**
|
|
201
|
-
* Number of items to load per page.
|
|
191
|
+
* Number of items to load per page.
|
|
202
192
|
* @max 100
|
|
203
193
|
*/
|
|
204
194
|
limit?: number;
|
|
@@ -217,7 +207,7 @@ interface ListTicketsRequest {
|
|
|
217
207
|
*/
|
|
218
208
|
ticketNumber?: string[];
|
|
219
209
|
/**
|
|
220
|
-
* Textual search filter - search is performed on "orderFullName"
|
|
210
|
+
* Textual search filter - search is performed on `"orderFullName"`, `"guestFullName"`, and `"ticketNumber"`.
|
|
221
211
|
* @maxLength 200
|
|
222
212
|
*/
|
|
223
213
|
searchPhrase?: string;
|
|
@@ -243,15 +233,13 @@ interface ListTicketsRequest {
|
|
|
243
233
|
*/
|
|
244
234
|
memberId?: string[];
|
|
245
235
|
/**
|
|
246
|
-
* Filter facets.
|
|
247
|
-
* See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-tickets).
|
|
236
|
+
* Filter facets. For supported facets, see Events Schema for Wix Search ([SDK](https://dev.wix.com/docs/sdk/backend-modules/events/events-schema-for-wix-search) | [REST](https://dev.wix.com/docs/rest/business-solutions/events/tickets/list-tickets))
|
|
248
237
|
* @maxLength 100
|
|
249
238
|
* @maxSize 20
|
|
250
239
|
*/
|
|
251
240
|
facet?: string[];
|
|
252
241
|
/**
|
|
253
|
-
* Sort order. Defaults to
|
|
254
|
-
* See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-tickets).
|
|
242
|
+
* Sort order. Defaults to `ticketNumber` in ascending order.
|
|
255
243
|
* @maxLength 100
|
|
256
244
|
*/
|
|
257
245
|
sort?: string;
|
|
@@ -307,9 +295,9 @@ declare enum State {
|
|
|
307
295
|
/** @enumType */
|
|
308
296
|
type StateWithLiterals = State | 'ORDER_ARCHIVED' | 'ORDER_ACTIVE' | 'TICKET_ARCHIVED' | 'TICKET_ACTIVE' | 'CHECKED_IN' | 'NON_CHECKED_IN' | 'FREE' | 'PAID' | 'MEMBER';
|
|
309
297
|
interface ListTicketsResponse {
|
|
310
|
-
/** Total tickets matching the
|
|
298
|
+
/** Total tickets matching the specified filters. */
|
|
311
299
|
total?: number;
|
|
312
|
-
/**
|
|
300
|
+
/** Paging offset. */
|
|
313
301
|
offset?: number;
|
|
314
302
|
/**
|
|
315
303
|
* Limit.
|
|
@@ -327,7 +315,7 @@ interface FacetCounts {
|
|
|
327
315
|
}
|
|
328
316
|
interface GetTicketRequest {
|
|
329
317
|
/**
|
|
330
|
-
* Event ID.
|
|
318
|
+
* Event ID to which the ticket belongs.
|
|
331
319
|
* @format GUID
|
|
332
320
|
*/
|
|
333
321
|
eventId: string;
|
|
@@ -348,7 +336,7 @@ interface GetTicketResponse {
|
|
|
348
336
|
}
|
|
349
337
|
interface CheckInTicketRequest {
|
|
350
338
|
/**
|
|
351
|
-
* Event ID.
|
|
339
|
+
* Event ID to which the ticket belongs.
|
|
352
340
|
* @format GUID
|
|
353
341
|
*/
|
|
354
342
|
eventId: string;
|
|
@@ -367,12 +355,12 @@ interface CheckInTicketResponse {
|
|
|
367
355
|
}
|
|
368
356
|
interface DeleteTicketCheckInRequest {
|
|
369
357
|
/**
|
|
370
|
-
* Event ID.
|
|
358
|
+
* Event ID to which the ticket belongs.
|
|
371
359
|
* @format GUID
|
|
372
360
|
*/
|
|
373
361
|
eventId: string;
|
|
374
362
|
/**
|
|
375
|
-
*
|
|
363
|
+
* Ticket numbers to delete check-ins for.
|
|
376
364
|
* @minLength 1
|
|
377
365
|
* @maxLength 36
|
|
378
366
|
* @minSize 1
|
|
@@ -386,7 +374,7 @@ interface DeleteTicketCheckInResponse {
|
|
|
386
374
|
}
|
|
387
375
|
interface UpdateTicketRequest {
|
|
388
376
|
/**
|
|
389
|
-
* Event ID.
|
|
377
|
+
* Event ID to which the ticket belongs.
|
|
390
378
|
* @format GUID
|
|
391
379
|
*/
|
|
392
380
|
eventId: string;
|
|
@@ -402,17 +390,18 @@ interface UpdateTicketRequest {
|
|
|
402
390
|
* Behavior follows [google.protobuf.FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask) semantics.
|
|
403
391
|
*/
|
|
404
392
|
fields?: string[];
|
|
405
|
-
/** Whether
|
|
393
|
+
/** Whether to archive the ticket. */
|
|
406
394
|
archived?: boolean;
|
|
407
395
|
/** Assigned guest details. */
|
|
408
396
|
guestDetails?: GuestDetailsUpdate;
|
|
409
397
|
}
|
|
410
398
|
interface GuestDetailsUpdate {
|
|
411
399
|
/**
|
|
412
|
-
*
|
|
413
|
-
*
|
|
400
|
+
* Form of a guest assigned to a ticket.
|
|
401
|
+
*
|
|
402
|
+
* To update the form of a guest not assigned to a ticket, call Update Order.
|
|
414
403
|
*
|
|
415
|
-
*
|
|
404
|
+
* Doesn't support partial updates, the entire form object will be replaced when `guestDetails.form` is masked.
|
|
416
405
|
*/
|
|
417
406
|
form?: FormResponse;
|
|
418
407
|
}
|
|
@@ -422,7 +411,7 @@ interface UpdateTicketResponse {
|
|
|
422
411
|
}
|
|
423
412
|
interface BulkUpdateTicketsRequest {
|
|
424
413
|
/**
|
|
425
|
-
* Event ID.
|
|
414
|
+
* Event ID to which the tickets belong.
|
|
426
415
|
* @format GUID
|
|
427
416
|
*/
|
|
428
417
|
eventId: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { ListTicketsOptions, ListTicketsResponse, GetTicketIdentifiers, GetTicketOptions, TicketingTicket, CheckInTicketsOptions, CheckInTicketResponse, DeleteTicketCheckInsOptions, DeleteTicketCheckInResponse, UpdateTicketIdentifiers, UpdateTicketOptions, UpdateTicketResponse, BulkUpdateTicketsOptions, BulkUpdateTicketsResponse, TicketOrderUpdatedEnvelope } from './index.typings.mjs';
|
|
3
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.mjs';
|
|
4
4
|
|
|
5
|
+
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`;
|
|
5
6
|
declare function listTickets$1(httpClient: HttpClient): ListTicketsSignature;
|
|
6
7
|
interface ListTicketsSignature {
|
|
7
8
|
/**
|
|
@@ -10,10 +11,12 @@ interface ListTicketsSignature {
|
|
|
10
11
|
* <!--
|
|
11
12
|
* >**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.
|
|
12
13
|
* -->
|
|
13
|
-
* @param - Event IDs.
|
|
14
|
+
* @param - Event IDs to which the tickets belong.
|
|
14
15
|
* @param - Options for defining the returned list of tickets.
|
|
15
16
|
*/
|
|
16
|
-
(eventId: string[], options?: ListTicketsOptions
|
|
17
|
+
(eventId: string[], options?: ListTicketsOptions): Promise<NonNullablePaths<ListTicketsResponse, `total` | `offset` | `limit` | {
|
|
18
|
+
[P in TicketNonNullablePaths]: `tickets.${number}.${P}`;
|
|
19
|
+
}[TicketNonNullablePaths]>>;
|
|
17
20
|
}
|
|
18
21
|
declare function getTicket$1(httpClient: HttpClient): GetTicketSignature;
|
|
19
22
|
interface GetTicketSignature {
|
|
@@ -23,7 +26,7 @@ interface GetTicketSignature {
|
|
|
23
26
|
* @param - Options for the returned ticket data.
|
|
24
27
|
* @returns Ticket.
|
|
25
28
|
*/
|
|
26
|
-
(identifiers: GetTicketIdentifiers, options?: GetTicketOptions
|
|
29
|
+
(identifiers: NonNullablePaths<GetTicketIdentifiers, `eventId` | `ticketNumber`>, options?: GetTicketOptions): Promise<NonNullablePaths<TicketingTicket, TicketNonNullablePaths>>;
|
|
27
30
|
}
|
|
28
31
|
declare function checkInTickets$1(httpClient: HttpClient): CheckInTicketsSignature;
|
|
29
32
|
interface CheckInTicketsSignature {
|
|
@@ -32,7 +35,9 @@ interface CheckInTicketsSignature {
|
|
|
32
35
|
* @param - Event ID to which the ticket belongs.
|
|
33
36
|
* @param - Options for tickets to check-in.
|
|
34
37
|
*/
|
|
35
|
-
(eventId: string, options?: CheckInTicketsOptions
|
|
38
|
+
(eventId: string, options?: CheckInTicketsOptions): Promise<NonNullablePaths<CheckInTicketResponse, {
|
|
39
|
+
[P in TicketNonNullablePaths]: `tickets.${number}.${P}`;
|
|
40
|
+
}[TicketNonNullablePaths]>>;
|
|
36
41
|
}
|
|
37
42
|
declare function deleteTicketCheckIns$1(httpClient: HttpClient): DeleteTicketCheckInsSignature;
|
|
38
43
|
interface DeleteTicketCheckInsSignature {
|
|
@@ -41,7 +46,9 @@ interface DeleteTicketCheckInsSignature {
|
|
|
41
46
|
* @param - Event ID to which the ticket belongs.
|
|
42
47
|
* @param - Options for tickets to delete.
|
|
43
48
|
*/
|
|
44
|
-
(eventId: string, options?: DeleteTicketCheckInsOptions
|
|
49
|
+
(eventId: string, options?: DeleteTicketCheckInsOptions): Promise<NonNullablePaths<DeleteTicketCheckInResponse, {
|
|
50
|
+
[P in TicketNonNullablePaths]: `tickets.${number}.${P}`;
|
|
51
|
+
}[TicketNonNullablePaths]>>;
|
|
45
52
|
}
|
|
46
53
|
declare function updateTicket$1(httpClient: HttpClient): UpdateTicketSignature;
|
|
47
54
|
interface UpdateTicketSignature {
|
|
@@ -50,7 +57,9 @@ interface UpdateTicketSignature {
|
|
|
50
57
|
* @param - Details for the ticket to update.
|
|
51
58
|
* @param - Ticket details to update.
|
|
52
59
|
*/
|
|
53
|
-
(identifiers: UpdateTicketIdentifiers, options?: UpdateTicketOptions
|
|
60
|
+
(identifiers: NonNullablePaths<UpdateTicketIdentifiers, `eventId` | `ticketNumber`>, options?: UpdateTicketOptions): Promise<NonNullablePaths<UpdateTicketResponse, {
|
|
61
|
+
[P in TicketNonNullablePaths]: `ticket.${P}`;
|
|
62
|
+
}[TicketNonNullablePaths]>>;
|
|
54
63
|
}
|
|
55
64
|
declare function bulkUpdateTickets$1(httpClient: HttpClient): BulkUpdateTicketsSignature;
|
|
56
65
|
interface BulkUpdateTicketsSignature {
|
|
@@ -59,7 +68,9 @@ interface BulkUpdateTicketsSignature {
|
|
|
59
68
|
* @param - Options for updating the tickets.
|
|
60
69
|
* @param - Event ID to which the ticket belongs.
|
|
61
70
|
*/
|
|
62
|
-
(eventId: string, options?: BulkUpdateTicketsOptions
|
|
71
|
+
(eventId: string, options?: BulkUpdateTicketsOptions): Promise<NonNullablePaths<BulkUpdateTicketsResponse, {
|
|
72
|
+
[P in TicketNonNullablePaths]: `tickets.${number}.${P}`;
|
|
73
|
+
}[TicketNonNullablePaths]>>;
|
|
63
74
|
}
|
|
64
75
|
declare const onTicketOrderUpdated$1: EventDefinition<TicketOrderUpdatedEnvelope, "wix.events.ticketing.events.OrderUpdated">;
|
|
65
76
|
|