@wix/auto_sdk_events_tickets 1.0.32 → 1.0.34
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 +8 -7
- package/build/cjs/index.js +97 -52
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +27 -37
- package/build/cjs/index.typings.js +91 -44
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +6 -12
- package/build/cjs/meta.js +65 -18
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +8 -7
- package/build/es/index.mjs +97 -52
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +27 -37
- package/build/es/index.typings.mjs +91 -44
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +6 -12
- package/build/es/meta.mjs +65 -18
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +8 -7
- package/build/internal/cjs/index.js +97 -52
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +27 -37
- package/build/internal/cjs/index.typings.js +91 -44
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +6 -12
- package/build/internal/cjs/meta.js +65 -18
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +8 -7
- package/build/internal/es/index.mjs +97 -52
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +27 -37
- package/build/internal/es/index.typings.mjs +91 -44
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +6 -12
- package/build/internal/es/meta.mjs +65 -18
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -334,7 +334,7 @@ interface ListTicketsRequest {
|
|
|
334
334
|
* Event IDs to which the tickets belong.
|
|
335
335
|
* @format GUID
|
|
336
336
|
*/
|
|
337
|
-
eventId
|
|
337
|
+
eventId?: string[];
|
|
338
338
|
/** Offset. See [Pagination](/wix-events-v2/pagination). */
|
|
339
339
|
offset?: number;
|
|
340
340
|
/**
|
|
@@ -496,7 +496,7 @@ interface GetTicketRequest {
|
|
|
496
496
|
* Event ID to which the ticket belongs.
|
|
497
497
|
* @format GUID
|
|
498
498
|
*/
|
|
499
|
-
eventId
|
|
499
|
+
eventId?: string;
|
|
500
500
|
/**
|
|
501
501
|
* A unique ticket number which is assigned automatically when creating a ticket.
|
|
502
502
|
* @maxLength 36
|
|
@@ -680,7 +680,7 @@ interface UpdateTicketRequest {
|
|
|
680
680
|
* Event ID to which the ticket belongs.
|
|
681
681
|
* @format GUID
|
|
682
682
|
*/
|
|
683
|
-
eventId
|
|
683
|
+
eventId?: string;
|
|
684
684
|
/**
|
|
685
685
|
* A unique ticket number which is assigned automatically when creating a ticket.
|
|
686
686
|
* @minLength 1
|
|
@@ -711,7 +711,7 @@ interface BulkUpdateTicketsRequest {
|
|
|
711
711
|
* Event ID to which the ticket belongs.
|
|
712
712
|
* @format GUID
|
|
713
713
|
*/
|
|
714
|
-
eventId
|
|
714
|
+
eventId?: string;
|
|
715
715
|
/**
|
|
716
716
|
* A unique ticket number which is assigned automatically when creating a ticket.
|
|
717
717
|
* @minLength 1
|
|
@@ -851,16 +851,19 @@ declare function onTicketOrderUpdated(handler: (event: TicketOrderUpdatedEnvelop
|
|
|
851
851
|
* <!--
|
|
852
852
|
* >**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.
|
|
853
853
|
* -->
|
|
854
|
-
* @param eventId - Event IDs to which the tickets belong.
|
|
855
854
|
* @public
|
|
856
|
-
* @requiredField eventId
|
|
857
855
|
* @param options - Options for defining the returned list of tickets.
|
|
858
856
|
* @permissionId WIX_EVENTS.READ_TICKETS
|
|
859
857
|
* @applicableIdentity APP
|
|
860
858
|
* @fqn wix.events.ticketing.TicketManagement.ListTickets
|
|
861
859
|
*/
|
|
862
|
-
declare function listTickets(
|
|
860
|
+
declare function listTickets(options?: ListTicketsOptions): Promise<NonNullablePaths<ListTicketsResponse, `total` | `offset` | `limit` | `tickets` | `tickets.${number}.ticketNumber` | `tickets.${number}.orderNumber` | `tickets.${number}.ticketDefinitionId` | `tickets.${number}.name` | `tickets.${number}.price.amount` | `tickets.${number}.price.currency` | `tickets.${number}.free` | `tickets.${number}.policy` | `tickets.${number}.orderStatus` | `tickets.${number}.orderArchived` | `tickets.${number}.orderFullName` | `tickets.${number}.guestDetails.guestAssigned` | `tickets.${number}.archived` | `tickets.${number}.anonymized` | `tickets.${number}.checkInUrl` | `tickets.${number}.ticketPdfUrl` | `tickets.${number}.channel` | `tickets.${number}.walletPassUrl`, 5>>;
|
|
863
861
|
interface ListTicketsOptions {
|
|
862
|
+
/**
|
|
863
|
+
* Event IDs to which the tickets belong.
|
|
864
|
+
* @format GUID
|
|
865
|
+
*/
|
|
866
|
+
eventId?: string[];
|
|
864
867
|
/**
|
|
865
868
|
*
|
|
866
869
|
* Offset. See [Pagination](/wix-events-v2/pagination).
|
|
@@ -959,10 +962,9 @@ interface ListTicketsOptions {
|
|
|
959
962
|
}
|
|
960
963
|
/**
|
|
961
964
|
* Retrieves a ticket by the unique ticket number.
|
|
965
|
+
* @param ticketNumber - A unique ticket number which is assigned automatically when creating a ticket.
|
|
962
966
|
* @public
|
|
963
|
-
* @requiredField
|
|
964
|
-
* @requiredField identifiers.eventId
|
|
965
|
-
* @requiredField identifiers.ticketNumber
|
|
967
|
+
* @requiredField ticketNumber
|
|
966
968
|
* @param identifiers - Details for the ticket to retrieve.
|
|
967
969
|
* @param options - Options for the returned ticket data.
|
|
968
970
|
* @permissionId WIX_EVENTS.READ_TICKET_DETAILS
|
|
@@ -970,20 +972,13 @@ interface ListTicketsOptions {
|
|
|
970
972
|
* @returns Ticket.
|
|
971
973
|
* @fqn wix.events.ticketing.TicketManagement.GetTicket
|
|
972
974
|
*/
|
|
973
|
-
declare function getTicket(
|
|
974
|
-
interface
|
|
975
|
+
declare function getTicket(ticketNumber: string, options?: GetTicketOptions): Promise<NonNullablePaths<TicketingTicket, `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`, 6>>;
|
|
976
|
+
interface GetTicketOptions {
|
|
975
977
|
/**
|
|
976
978
|
* Event ID to which the ticket belongs.
|
|
977
979
|
* @format GUID
|
|
978
980
|
*/
|
|
979
|
-
eventId
|
|
980
|
-
/**
|
|
981
|
-
* A unique ticket number which is assigned automatically when creating a ticket.
|
|
982
|
-
* @maxLength 36
|
|
983
|
-
*/
|
|
984
|
-
ticketNumber: string;
|
|
985
|
-
}
|
|
986
|
-
interface GetTicketOptions {
|
|
981
|
+
eventId?: string;
|
|
987
982
|
/**
|
|
988
983
|
* Predefined sets of fields to return.
|
|
989
984
|
* - `TICKET_DETAILS`: Returns `ticketNumber`, `orderNumber`, `ticketDefinitionId`, `name`, `price`, `free`, `policy`, `qrCode`, `checkIn`, `orderStatus`, `orderArchived`, `archived`, `orderFullName`, `ticketPdf`, `checkInUrl` and `ticketPdfUrl`.
|
|
@@ -1039,31 +1034,22 @@ interface DeleteTicketCheckInsOptions {
|
|
|
1039
1034
|
}
|
|
1040
1035
|
/**
|
|
1041
1036
|
* Updates a ticket.
|
|
1037
|
+
* @param ticketNumber - A unique ticket number which is assigned automatically when creating a ticket.
|
|
1042
1038
|
* @public
|
|
1043
|
-
* @requiredField
|
|
1044
|
-
* @requiredField identifiers.eventId
|
|
1045
|
-
* @requiredField identifiers.ticketNumber
|
|
1039
|
+
* @requiredField ticketNumber
|
|
1046
1040
|
* @param identifiers - Details for the ticket to update.
|
|
1047
1041
|
* @param options - Ticket details to update.
|
|
1048
1042
|
* @permissionId WIX_EVENTS.MANAGE_TICKETS
|
|
1049
1043
|
* @applicableIdentity APP
|
|
1050
1044
|
* @fqn wix.events.ticketing.TicketManagement.UpdateTicket
|
|
1051
1045
|
*/
|
|
1052
|
-
declare function updateTicket(
|
|
1053
|
-
interface
|
|
1046
|
+
declare function updateTicket(ticketNumber: string, options?: UpdateTicketOptions): Promise<NonNullablePaths<UpdateTicketResponse, `ticket.ticketNumber` | `ticket.orderNumber` | `ticket.ticketDefinitionId` | `ticket.name` | `ticket.price.amount` | `ticket.price.currency` | `ticket.free` | `ticket.policy` | `ticket.orderStatus` | `ticket.orderArchived` | `ticket.orderFullName` | `ticket.guestDetails.guestAssigned` | `ticket.guestDetails.form.inputValues` | `ticket.guestDetails.form.inputValues.${number}.inputName` | `ticket.guestDetails.form.inputValues.${number}.value` | `ticket.archived` | `ticket.anonymized` | `ticket.checkInUrl` | `ticket.ticketPdfUrl` | `ticket.channel` | `ticket.walletPassUrl`, 7>>;
|
|
1047
|
+
interface UpdateTicketOptions {
|
|
1054
1048
|
/**
|
|
1055
1049
|
* Event ID to which the ticket belongs.
|
|
1056
1050
|
* @format GUID
|
|
1057
1051
|
*/
|
|
1058
|
-
eventId
|
|
1059
|
-
/**
|
|
1060
|
-
* A unique ticket number which is assigned automatically when creating a ticket.
|
|
1061
|
-
* @minLength 1
|
|
1062
|
-
* @maxLength 36
|
|
1063
|
-
*/
|
|
1064
|
-
ticketNumber: string;
|
|
1065
|
-
}
|
|
1066
|
-
interface UpdateTicketOptions {
|
|
1052
|
+
eventId?: string;
|
|
1067
1053
|
/**
|
|
1068
1054
|
* Set of field paths, specifying which parts of this resource to update.
|
|
1069
1055
|
* When `fields` is empty, the request is interpreted as a full update.
|
|
@@ -1078,15 +1064,19 @@ interface UpdateTicketOptions {
|
|
|
1078
1064
|
/**
|
|
1079
1065
|
* Archives multiple tickets.
|
|
1080
1066
|
* @public
|
|
1081
|
-
* @requiredField eventId
|
|
1082
1067
|
* @param options - Options for updating the tickets.
|
|
1083
1068
|
* @param eventId - Event ID to which the ticket belongs.
|
|
1084
1069
|
* @permissionId WIX_EVENTS.MANAGE_TICKETS
|
|
1085
1070
|
* @applicableIdentity APP
|
|
1086
1071
|
* @fqn wix.events.ticketing.TicketManagement.BulkUpdateTickets
|
|
1087
1072
|
*/
|
|
1088
|
-
declare function bulkUpdateTickets(
|
|
1073
|
+
declare function bulkUpdateTickets(options?: BulkUpdateTicketsOptions): Promise<NonNullablePaths<BulkUpdateTicketsResponse, `tickets` | `tickets.${number}.ticketNumber` | `tickets.${number}.orderNumber` | `tickets.${number}.ticketDefinitionId` | `tickets.${number}.name` | `tickets.${number}.price.amount` | `tickets.${number}.price.currency` | `tickets.${number}.free` | `tickets.${number}.policy` | `tickets.${number}.orderStatus` | `tickets.${number}.orderArchived` | `tickets.${number}.orderFullName` | `tickets.${number}.guestDetails.guestAssigned` | `tickets.${number}.archived` | `tickets.${number}.anonymized` | `tickets.${number}.checkInUrl` | `tickets.${number}.ticketPdfUrl` | `tickets.${number}.channel` | `tickets.${number}.walletPassUrl`, 5>>;
|
|
1089
1074
|
interface BulkUpdateTicketsOptions {
|
|
1075
|
+
/**
|
|
1076
|
+
* Event ID to which the ticket belongs.
|
|
1077
|
+
* @format GUID
|
|
1078
|
+
*/
|
|
1079
|
+
eventId?: string;
|
|
1090
1080
|
/**
|
|
1091
1081
|
* A unique ticket number which is assigned automatically when creating a ticket.
|
|
1092
1082
|
* @minLength 1
|
|
@@ -1099,4 +1089,4 @@ interface BulkUpdateTicketsOptions {
|
|
|
1099
1089
|
archived?: boolean;
|
|
1100
1090
|
}
|
|
1101
1091
|
|
|
1102
|
-
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
|
|
1092
|
+
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 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 UpdateTicketOptions, type UpdateTicketRequest, type UpdateTicketResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkUpdateTickets, checkInTickets, deleteTicketCheckIns, getTicket, listTickets, onTicketOrderUpdated, updateTicket };
|
|
@@ -51,6 +51,14 @@ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
|
51
51
|
function resolveWixEventsTicketingTicketManagementUrl(opts) {
|
|
52
52
|
const domainToMappings = {
|
|
53
53
|
"manage._base_domain_": [
|
|
54
|
+
{
|
|
55
|
+
srcPath: "/_api/wix-events-web/v1/tickets",
|
|
56
|
+
destPath: "/v1/tickets"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
srcPath: "/events/v1/tickets",
|
|
60
|
+
destPath: "/v1/tickets"
|
|
61
|
+
},
|
|
54
62
|
{
|
|
55
63
|
srcPath: "/events/v1/ticket-definitions",
|
|
56
64
|
destPath: "/v1/ticket-definitions"
|
|
@@ -159,6 +167,10 @@ function resolveWixEventsTicketingTicketManagementUrl(opts) {
|
|
|
159
167
|
srcPath: "/_api/wix-events-web/v1/ticket-definitions",
|
|
160
168
|
destPath: "/v1/ticket-definitions"
|
|
161
169
|
},
|
|
170
|
+
{
|
|
171
|
+
srcPath: "/_api/wix-events-web/v1/tickets",
|
|
172
|
+
destPath: "/v1/tickets"
|
|
173
|
+
},
|
|
162
174
|
{
|
|
163
175
|
srcPath: "/_api/wix-events-web/v1/tickets/available",
|
|
164
176
|
destPath: "/v1/tickets/available"
|
|
@@ -185,6 +197,10 @@ function resolveWixEventsTicketingTicketManagementUrl(opts) {
|
|
|
185
197
|
srcPath: "/_api/events/v1/checkout",
|
|
186
198
|
destPath: "/v1/checkout"
|
|
187
199
|
},
|
|
200
|
+
{
|
|
201
|
+
srcPath: "/_api/wix-events-web/v1/tickets",
|
|
202
|
+
destPath: "/v1/tickets"
|
|
203
|
+
},
|
|
188
204
|
{
|
|
189
205
|
srcPath: "/_api/wix-events-web/v1/checkout",
|
|
190
206
|
destPath: "/v1/checkout"
|
|
@@ -223,6 +239,10 @@ function resolveWixEventsTicketingTicketManagementUrl(opts) {
|
|
|
223
239
|
srcPath: "/_api/events/v1/checkout",
|
|
224
240
|
destPath: "/v1/checkout"
|
|
225
241
|
},
|
|
242
|
+
{
|
|
243
|
+
srcPath: "/_api/wix-events-web/v1/tickets",
|
|
244
|
+
destPath: "/v1/tickets"
|
|
245
|
+
},
|
|
226
246
|
{
|
|
227
247
|
srcPath: "/_api/wix-events-web/v1/checkout",
|
|
228
248
|
destPath: "/v1/checkout"
|
|
@@ -261,6 +281,10 @@ function resolveWixEventsTicketingTicketManagementUrl(opts) {
|
|
|
261
281
|
srcPath: "/_api/events/v1/checkout",
|
|
262
282
|
destPath: "/v1/checkout"
|
|
263
283
|
},
|
|
284
|
+
{
|
|
285
|
+
srcPath: "/_api/wix-events-web/v1/tickets",
|
|
286
|
+
destPath: "/v1/tickets"
|
|
287
|
+
},
|
|
264
288
|
{
|
|
265
289
|
srcPath: "/_api/wix-events-web/v1/checkout",
|
|
266
290
|
destPath: "/v1/checkout"
|
|
@@ -315,6 +339,10 @@ function resolveWixEventsTicketingTicketManagementUrl(opts) {
|
|
|
315
339
|
}
|
|
316
340
|
],
|
|
317
341
|
"api._base_domain_": [
|
|
342
|
+
{
|
|
343
|
+
srcPath: "/events/v1/tickets",
|
|
344
|
+
destPath: "/v1/tickets"
|
|
345
|
+
},
|
|
318
346
|
{
|
|
319
347
|
srcPath: "/events/v1/checkout",
|
|
320
348
|
destPath: "/v1/checkout"
|
|
@@ -333,6 +361,10 @@ function resolveWixEventsTicketingTicketManagementUrl(opts) {
|
|
|
333
361
|
}
|
|
334
362
|
],
|
|
335
363
|
"editor-flow.wixapps.net": [
|
|
364
|
+
{
|
|
365
|
+
srcPath: "/_api/wix-events-web/v1/tickets",
|
|
366
|
+
destPath: "/v1/tickets"
|
|
367
|
+
},
|
|
336
368
|
{
|
|
337
369
|
srcPath: "/_api/wix-events-web/v1/checkout",
|
|
338
370
|
destPath: "/v1/checkout"
|
|
@@ -351,6 +383,10 @@ function resolveWixEventsTicketingTicketManagementUrl(opts) {
|
|
|
351
383
|
}
|
|
352
384
|
],
|
|
353
385
|
"editor.wixapps.net": [
|
|
386
|
+
{
|
|
387
|
+
srcPath: "/_api/wix-events-web/v1/tickets",
|
|
388
|
+
destPath: "/v1/tickets"
|
|
389
|
+
},
|
|
354
390
|
{
|
|
355
391
|
srcPath: "/_api/wix-events-web/v1/checkout",
|
|
356
392
|
destPath: "/v1/checkout"
|
|
@@ -401,7 +437,7 @@ function listTickets(payload) {
|
|
|
401
437
|
optInTransformResponse: true
|
|
402
438
|
},
|
|
403
439
|
url: resolveWixEventsTicketingTicketManagementUrl({
|
|
404
|
-
protoPath: "/v1/
|
|
440
|
+
protoPath: "/v1/tickets",
|
|
405
441
|
data: payload,
|
|
406
442
|
host
|
|
407
443
|
}),
|
|
@@ -431,7 +467,7 @@ function listTickets(payload) {
|
|
|
431
467
|
{
|
|
432
468
|
method: "GET",
|
|
433
469
|
url: resolveWixEventsTicketingTicketManagementUrl({
|
|
434
|
-
protoPath: "/v1/
|
|
470
|
+
protoPath: "/v1/tickets",
|
|
435
471
|
data: payload,
|
|
436
472
|
host
|
|
437
473
|
}),
|
|
@@ -454,7 +490,7 @@ function getTicket(payload) {
|
|
|
454
490
|
optInTransformResponse: true
|
|
455
491
|
},
|
|
456
492
|
url: resolveWixEventsTicketingTicketManagementUrl({
|
|
457
|
-
protoPath: "/v1/
|
|
493
|
+
protoPath: "/v1/tickets/{ticketNumber}",
|
|
458
494
|
data: payload,
|
|
459
495
|
host
|
|
460
496
|
}),
|
|
@@ -479,7 +515,18 @@ function getTicket(payload) {
|
|
|
479
515
|
}
|
|
480
516
|
]
|
|
481
517
|
}
|
|
482
|
-
])
|
|
518
|
+
]),
|
|
519
|
+
fallback: [
|
|
520
|
+
{
|
|
521
|
+
method: "GET",
|
|
522
|
+
url: resolveWixEventsTicketingTicketManagementUrl({
|
|
523
|
+
protoPath: "/v1/tickets/{ticketNumber}",
|
|
524
|
+
data: payload,
|
|
525
|
+
host
|
|
526
|
+
}),
|
|
527
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
528
|
+
}
|
|
529
|
+
]
|
|
483
530
|
};
|
|
484
531
|
return metadata;
|
|
485
532
|
}
|
|
@@ -610,7 +657,7 @@ function updateTicket(payload) {
|
|
|
610
657
|
optInTransformResponse: true
|
|
611
658
|
},
|
|
612
659
|
url: resolveWixEventsTicketingTicketManagementUrl({
|
|
613
|
-
protoPath: "/v1/
|
|
660
|
+
protoPath: "/v1/tickets/{ticketNumber}",
|
|
614
661
|
data: serializedData,
|
|
615
662
|
host
|
|
616
663
|
}),
|
|
@@ -652,7 +699,7 @@ function bulkUpdateTickets(payload) {
|
|
|
652
699
|
optInTransformResponse: true
|
|
653
700
|
},
|
|
654
701
|
url: resolveWixEventsTicketingTicketManagementUrl({
|
|
655
|
-
protoPath: "/v1/
|
|
702
|
+
protoPath: "/v1/tickets",
|
|
656
703
|
data: payload,
|
|
657
704
|
host
|
|
658
705
|
}),
|
|
@@ -743,10 +790,10 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
743
790
|
WebhookIdentityType2["APP"] = "APP";
|
|
744
791
|
return WebhookIdentityType2;
|
|
745
792
|
})(WebhookIdentityType || {});
|
|
746
|
-
async function listTickets2(
|
|
747
|
-
const { httpClient, sideEffects } = arguments[
|
|
793
|
+
async function listTickets2(options) {
|
|
794
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
748
795
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
749
|
-
eventId,
|
|
796
|
+
eventId: options?.eventId,
|
|
750
797
|
offset: options?.offset,
|
|
751
798
|
limit: options?.limit,
|
|
752
799
|
orderNumber: options?.orderNumber,
|
|
@@ -783,35 +830,35 @@ async function listTickets2(eventId, options) {
|
|
|
783
830
|
{
|
|
784
831
|
spreadPathsToArguments: {},
|
|
785
832
|
explicitPathsToArguments: {
|
|
786
|
-
eventId: "$[0]",
|
|
787
|
-
offset: "$[
|
|
788
|
-
limit: "$[
|
|
789
|
-
orderNumber: "$[
|
|
790
|
-
ticketNumber: "$[
|
|
791
|
-
searchPhrase: "$[
|
|
792
|
-
orderStatus: "$[
|
|
793
|
-
fieldset: "$[
|
|
794
|
-
state: "$[
|
|
795
|
-
memberId: "$[
|
|
796
|
-
facet: "$[
|
|
797
|
-
sort: "$[
|
|
798
|
-
contactId: "$[
|
|
799
|
-
ticketDefinitionId: "$[
|
|
800
|
-
seatId: "$[
|
|
833
|
+
eventId: "$[0].eventId",
|
|
834
|
+
offset: "$[0].offset",
|
|
835
|
+
limit: "$[0].limit",
|
|
836
|
+
orderNumber: "$[0].orderNumber",
|
|
837
|
+
ticketNumber: "$[0].ticketNumber",
|
|
838
|
+
searchPhrase: "$[0].searchPhrase",
|
|
839
|
+
orderStatus: "$[0].orderStatus",
|
|
840
|
+
fieldset: "$[0].fieldset",
|
|
841
|
+
state: "$[0].state",
|
|
842
|
+
memberId: "$[0].memberId",
|
|
843
|
+
facet: "$[0].facet",
|
|
844
|
+
sort: "$[0].sort",
|
|
845
|
+
contactId: "$[0].contactId",
|
|
846
|
+
ticketDefinitionId: "$[0].ticketDefinitionId",
|
|
847
|
+
seatId: "$[0].seatId"
|
|
801
848
|
},
|
|
802
849
|
singleArgumentUnchanged: false
|
|
803
850
|
},
|
|
804
|
-
["
|
|
851
|
+
["options"]
|
|
805
852
|
);
|
|
806
853
|
sideEffects?.onError?.(err);
|
|
807
854
|
throw transformedError;
|
|
808
855
|
}
|
|
809
856
|
}
|
|
810
|
-
async function getTicket2(
|
|
857
|
+
async function getTicket2(ticketNumber, options) {
|
|
811
858
|
const { httpClient, sideEffects } = arguments[2];
|
|
812
859
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
813
|
-
|
|
814
|
-
|
|
860
|
+
ticketNumber,
|
|
861
|
+
eventId: options?.eventId,
|
|
815
862
|
fieldset: options?.fieldset
|
|
816
863
|
});
|
|
817
864
|
const reqOpts = getTicket(payload);
|
|
@@ -835,13 +882,13 @@ async function getTicket2(identifiers, options) {
|
|
|
835
882
|
{
|
|
836
883
|
spreadPathsToArguments: {},
|
|
837
884
|
explicitPathsToArguments: {
|
|
838
|
-
|
|
839
|
-
|
|
885
|
+
ticketNumber: "$[0]",
|
|
886
|
+
eventId: "$[1].eventId",
|
|
840
887
|
fieldset: "$[1].fieldset"
|
|
841
888
|
},
|
|
842
889
|
singleArgumentUnchanged: false
|
|
843
890
|
},
|
|
844
|
-
["
|
|
891
|
+
["ticketNumber", "options"]
|
|
845
892
|
);
|
|
846
893
|
sideEffects?.onError?.(err);
|
|
847
894
|
throw transformedError;
|
|
@@ -923,12 +970,12 @@ async function deleteTicketCheckIns(eventId, options) {
|
|
|
923
970
|
throw transformedError;
|
|
924
971
|
}
|
|
925
972
|
}
|
|
926
|
-
async function updateTicket2(
|
|
973
|
+
async function updateTicket2(ticketNumber, options) {
|
|
927
974
|
const { httpClient, sideEffects } = arguments[2];
|
|
928
975
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
929
976
|
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
930
|
-
|
|
931
|
-
|
|
977
|
+
ticketNumber,
|
|
978
|
+
eventId: options?.eventId,
|
|
932
979
|
fields: options?.fields,
|
|
933
980
|
archived: options?.archived,
|
|
934
981
|
guestDetails: options?.guestDetails
|
|
@@ -964,24 +1011,24 @@ async function updateTicket2(identifiers, options) {
|
|
|
964
1011
|
{
|
|
965
1012
|
spreadPathsToArguments: {},
|
|
966
1013
|
explicitPathsToArguments: {
|
|
967
|
-
|
|
968
|
-
|
|
1014
|
+
ticketNumber: "$[0]",
|
|
1015
|
+
eventId: "$[1].eventId",
|
|
969
1016
|
fields: "$[1].fields",
|
|
970
1017
|
archived: "$[1].archived",
|
|
971
1018
|
guestDetails: "$[1].guestDetails"
|
|
972
1019
|
},
|
|
973
1020
|
singleArgumentUnchanged: false
|
|
974
1021
|
},
|
|
975
|
-
["
|
|
1022
|
+
["ticketNumber", "options"]
|
|
976
1023
|
);
|
|
977
1024
|
sideEffects?.onError?.(err);
|
|
978
1025
|
throw transformedError;
|
|
979
1026
|
}
|
|
980
1027
|
}
|
|
981
|
-
async function bulkUpdateTickets2(
|
|
982
|
-
const { httpClient, sideEffects } = arguments[
|
|
1028
|
+
async function bulkUpdateTickets2(options) {
|
|
1029
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
983
1030
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
984
|
-
eventId,
|
|
1031
|
+
eventId: options?.eventId,
|
|
985
1032
|
ticketNumber: options?.ticketNumber,
|
|
986
1033
|
archived: options?.archived
|
|
987
1034
|
});
|
|
@@ -1006,13 +1053,13 @@ async function bulkUpdateTickets2(eventId, options) {
|
|
|
1006
1053
|
{
|
|
1007
1054
|
spreadPathsToArguments: {},
|
|
1008
1055
|
explicitPathsToArguments: {
|
|
1009
|
-
eventId: "$[0]",
|
|
1010
|
-
ticketNumber: "$[
|
|
1011
|
-
archived: "$[
|
|
1056
|
+
eventId: "$[0].eventId",
|
|
1057
|
+
ticketNumber: "$[0].ticketNumber",
|
|
1058
|
+
archived: "$[0].archived"
|
|
1012
1059
|
},
|
|
1013
1060
|
singleArgumentUnchanged: false
|
|
1014
1061
|
},
|
|
1015
|
-
["
|
|
1062
|
+
["options"]
|
|
1016
1063
|
);
|
|
1017
1064
|
sideEffects?.onError?.(err);
|
|
1018
1065
|
throw transformedError;
|