@wix/events 1.0.155 → 1.0.157
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/context.d.ts +11 -0
- package/build/cjs/context.js +38 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js +5 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4 -4
- package/build/cjs/index.typings.js +5 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +4 -4
- package/build/cjs/meta.js +5 -5
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/src/events-guests-v1-guest.context.d.ts +3 -0
- package/build/cjs/src/events-guests-v1-guest.context.js +16 -0
- package/build/cjs/src/events-guests-v1-guest.context.js.map +1 -0
- package/build/cjs/src/events-guests-v1-guest.universal.d.ts +0 -6
- package/build/cjs/src/events-guests-v1-guest.universal.js +1 -8
- package/build/cjs/src/events-guests-v1-guest.universal.js.map +1 -1
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.context.d.ts +5 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.context.js +38 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.context.js.map +1 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.d.ts +9 -60
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js +9 -60
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js.map +1 -1
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.d.ts +0 -12
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js +1 -23
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js.map +1 -1
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.context.d.ts +11 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.context.js +104 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.context.js.map +1 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.http.d.ts +9 -60
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.http.js +9 -60
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.http.js.map +1 -1
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.universal.d.ts +0 -33
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.universal.js +1 -49
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.universal.js.map +1 -1
- package/build/cjs/src/events-v1-category.context.d.ts +15 -0
- package/build/cjs/src/events-v1-category.context.js +148 -0
- package/build/cjs/src/events-v1-category.context.js.map +1 -0
- package/build/cjs/src/events-v1-category.universal.d.ts +0 -6
- package/build/cjs/src/events-v1-category.universal.js +1 -26
- package/build/cjs/src/events-v1-category.universal.js.map +1 -1
- package/build/cjs/src/events-v1-form.context.d.ts +9 -0
- package/build/cjs/src/events-v1-form.context.js +82 -0
- package/build/cjs/src/events-v1-form.context.js.map +1 -0
- package/build/cjs/src/events-v1-form.http.d.ts +25 -0
- package/build/cjs/src/events-v1-form.http.js +403 -0
- package/build/cjs/src/events-v1-form.http.js.map +1 -0
- package/build/cjs/src/events-v1-form.meta.d.ts +35 -0
- package/build/cjs/src/{events-v1-order-orders.meta.js → events-v1-form.meta.js} +57 -38
- package/build/cjs/src/events-v1-form.meta.js.map +1 -0
- package/build/cjs/src/events-v1-form.public.d.ts +91 -0
- package/build/cjs/src/events-v1-form.public.js +62 -0
- package/build/cjs/src/events-v1-form.public.js.map +1 -0
- package/build/cjs/src/events-v1-form.types.d.ts +1780 -0
- package/build/cjs/src/events-v1-form.types.js +159 -0
- package/build/cjs/src/events-v1-form.types.js.map +1 -0
- package/build/cjs/src/events-v1-form.universal.d.ts +1928 -0
- package/build/cjs/src/events-v1-form.universal.js +676 -0
- package/build/cjs/src/events-v1-form.universal.js.map +1 -0
- package/build/cjs/src/events-v1-order.context.d.ts +16 -0
- package/build/cjs/src/events-v1-order.context.js +159 -0
- package/build/cjs/src/events-v1-order.context.js.map +1 -0
- package/build/cjs/src/{events-v1-order-orders.http.d.ts → events-v1-order.http.d.ts} +1 -1
- package/build/cjs/src/{events-v1-order-orders.http.js → events-v1-order.http.js} +1 -1
- package/build/cjs/src/events-v1-order.http.js.map +1 -0
- package/build/{es/src/events-v1-order-checkout.meta.d.ts → cjs/src/events-v1-order.meta.d.ts} +18 -2
- package/build/cjs/src/{events-v1-order-checkout.meta.js → events-v1-order.meta.js} +117 -3
- package/build/cjs/src/events-v1-order.meta.js.map +1 -0
- package/build/cjs/src/{events-v1-order-orders.public.d.ts → events-v1-order.public.d.ts} +27 -19
- package/build/cjs/src/events-v1-order.public.js +105 -0
- package/build/cjs/src/events-v1-order.public.js.map +1 -0
- package/build/cjs/src/{events-v1-order-orders.types.js → events-v1-order.types.js} +1 -1
- package/build/cjs/src/events-v1-order.types.js.map +1 -0
- package/build/{es/src/events-v1-order-checkout.universal.d.ts → cjs/src/events-v1-order.universal.d.ts} +225 -6
- package/build/cjs/src/{events-v1-order-checkout.universal.js → events-v1-order.universal.js} +511 -24
- package/build/cjs/src/events-v1-order.universal.js.map +1 -0
- package/build/cjs/src/events-v1-rsvp.context.d.ts +11 -0
- package/build/cjs/src/events-v1-rsvp.context.js +104 -0
- package/build/cjs/src/events-v1-rsvp.context.js.map +1 -0
- package/build/cjs/src/events-v1-rsvp.http.js +235 -5
- package/build/cjs/src/events-v1-rsvp.http.js.map +1 -1
- package/build/cjs/src/events-v1-rsvp.universal.d.ts +18 -6
- package/build/cjs/src/events-v1-rsvp.universal.js +19 -23
- package/build/cjs/src/events-v1-rsvp.universal.js.map +1 -1
- package/build/cjs/src/events-v1-ticket-definition.context.d.ts +9 -0
- package/build/cjs/src/events-v1-ticket-definition.context.js +82 -0
- package/build/cjs/src/events-v1-ticket-definition.context.js.map +1 -0
- package/build/cjs/src/events-v1-ticket-definition.public.d.ts +1 -1
- package/build/cjs/src/events-v1-ticket-definition.types.d.ts +2 -2
- package/build/cjs/src/events-v1-ticket-definition.universal.d.ts +19 -8
- package/build/cjs/src/events-v1-ticket-definition.universal.js +18 -21
- package/build/cjs/src/events-v1-ticket-definition.universal.js.map +1 -1
- package/build/cjs/src/events-v1-ticket.context.d.ts +8 -0
- package/build/cjs/src/events-v1-ticket.context.js +71 -0
- package/build/cjs/src/events-v1-ticket.context.js.map +1 -0
- package/build/cjs/src/events-v1-ticket.universal.d.ts +12 -6
- package/build/cjs/src/events-v1-ticket.universal.js +13 -20
- package/build/cjs/src/events-v1-ticket.universal.js.map +1 -1
- package/build/cjs/src/events-v2-policy.context.d.ts +8 -0
- package/build/cjs/src/events-v2-policy.context.js +71 -0
- package/build/cjs/src/events-v2-policy.context.js.map +1 -0
- package/build/cjs/src/events-v2-policy.universal.d.ts +0 -6
- package/build/cjs/src/events-v2-policy.universal.js +1 -19
- package/build/cjs/src/events-v2-policy.universal.js.map +1 -1
- package/build/cjs/src/events-v3-event.context.d.ts +15 -0
- package/build/cjs/src/events-v3-event.context.js +148 -0
- package/build/cjs/src/events-v3-event.context.js.map +1 -0
- package/build/cjs/src/events-v3-event.http.js +6 -0
- package/build/cjs/src/events-v3-event.http.js.map +1 -1
- package/build/cjs/src/events-v3-event.public.d.ts +5 -5
- package/build/cjs/src/events-v3-event.public.js.map +1 -1
- package/build/cjs/src/events-v3-event.types.d.ts +27 -22
- package/build/cjs/src/events-v3-event.types.js.map +1 -1
- package/build/cjs/src/events-v3-event.universal.d.ts +33 -34
- package/build/cjs/src/events-v3-event.universal.js +31 -56
- package/build/cjs/src/events-v3-event.universal.js.map +1 -1
- package/build/es/context.d.ts +11 -0
- package/build/es/context.js +12 -0
- package/build/es/context.js.map +1 -0
- package/build/es/index.d.ts +4 -4
- package/build/es/index.js +4 -4
- package/build/es/index.js.map +1 -1
- package/build/es/index.typings.d.ts +4 -4
- package/build/es/index.typings.js +4 -4
- package/build/es/index.typings.js.map +1 -1
- package/build/es/meta.d.ts +4 -4
- package/build/es/meta.js +4 -4
- package/build/es/meta.js.map +1 -1
- package/build/es/src/events-guests-v1-guest.context.d.ts +3 -0
- package/build/es/src/events-guests-v1-guest.context.js +12 -0
- package/build/es/src/events-guests-v1-guest.context.js.map +1 -0
- package/build/es/src/events-guests-v1-guest.universal.d.ts +0 -6
- package/build/es/src/events-guests-v1-guest.universal.js +0 -7
- package/build/es/src/events-guests-v1-guest.universal.js.map +1 -1
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.context.d.ts +5 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.context.js +32 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.context.js.map +1 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.d.ts +9 -60
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js +9 -60
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js.map +1 -1
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.d.ts +0 -12
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js +0 -22
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js.map +1 -1
- package/build/es/src/events-schedule-v1-schedule-item-schedule.context.d.ts +11 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.context.js +92 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.context.js.map +1 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.http.d.ts +9 -60
- package/build/es/src/events-schedule-v1-schedule-item-schedule.http.js +9 -60
- package/build/es/src/events-schedule-v1-schedule-item-schedule.http.js.map +1 -1
- package/build/es/src/events-schedule-v1-schedule-item-schedule.universal.d.ts +0 -33
- package/build/es/src/events-schedule-v1-schedule-item-schedule.universal.js +0 -48
- package/build/es/src/events-schedule-v1-schedule-item-schedule.universal.js.map +1 -1
- package/build/es/src/events-v1-category.context.d.ts +15 -0
- package/build/es/src/events-v1-category.context.js +132 -0
- package/build/es/src/events-v1-category.context.js.map +1 -0
- package/build/es/src/events-v1-category.universal.d.ts +0 -6
- package/build/es/src/events-v1-category.universal.js +0 -25
- package/build/es/src/events-v1-category.universal.js.map +1 -1
- package/build/es/src/events-v1-form.context.d.ts +9 -0
- package/build/es/src/events-v1-form.context.js +72 -0
- package/build/es/src/events-v1-form.context.js.map +1 -0
- package/build/es/src/events-v1-form.http.d.ts +25 -0
- package/build/es/src/events-v1-form.http.js +393 -0
- package/build/es/src/events-v1-form.http.js.map +1 -0
- package/build/es/src/events-v1-form.meta.d.ts +35 -0
- package/build/es/src/events-v1-form.meta.js +128 -0
- package/build/es/src/events-v1-form.meta.js.map +1 -0
- package/build/es/src/events-v1-form.public.d.ts +91 -0
- package/build/es/src/events-v1-form.public.js +39 -0
- package/build/es/src/events-v1-form.public.js.map +1 -0
- package/build/es/src/events-v1-form.types.d.ts +1780 -0
- package/build/es/src/events-v1-form.types.js +156 -0
- package/build/es/src/events-v1-form.types.js.map +1 -0
- package/build/es/src/events-v1-form.universal.d.ts +1928 -0
- package/build/es/src/events-v1-form.universal.js +643 -0
- package/build/es/src/events-v1-form.universal.js.map +1 -0
- package/build/es/src/events-v1-order.context.d.ts +16 -0
- package/build/es/src/events-v1-order.context.js +142 -0
- package/build/es/src/events-v1-order.context.js.map +1 -0
- package/build/es/src/{events-v1-order-orders.http.d.ts → events-v1-order.http.d.ts} +1 -1
- package/build/es/src/{events-v1-order-orders.http.js → events-v1-order.http.js} +1 -1
- package/build/es/src/events-v1-order.http.js.map +1 -0
- package/build/{cjs/src/events-v1-order-checkout.meta.d.ts → es/src/events-v1-order.meta.d.ts} +18 -2
- package/build/es/src/{events-v1-order-checkout.meta.js → events-v1-order.meta.js} +110 -2
- package/build/es/src/events-v1-order.meta.js.map +1 -0
- package/build/es/src/{events-v1-order-orders.public.d.ts → events-v1-order.public.d.ts} +27 -19
- package/build/es/src/events-v1-order.public.js +74 -0
- package/build/es/src/events-v1-order.public.js.map +1 -0
- package/build/es/src/{events-v1-order-orders.types.js → events-v1-order.types.js} +1 -1
- package/build/es/src/events-v1-order.types.js.map +1 -0
- package/build/{cjs/src/events-v1-order-checkout.universal.d.ts → es/src/events-v1-order.universal.d.ts} +225 -6
- package/build/es/src/{events-v1-order-checkout.universal.js → events-v1-order.universal.js} +504 -23
- package/build/es/src/events-v1-order.universal.js.map +1 -0
- package/build/es/src/events-v1-rsvp.context.d.ts +11 -0
- package/build/es/src/events-v1-rsvp.context.js +92 -0
- package/build/es/src/events-v1-rsvp.context.js.map +1 -0
- package/build/es/src/events-v1-rsvp.http.js +235 -5
- package/build/es/src/events-v1-rsvp.http.js.map +1 -1
- package/build/es/src/events-v1-rsvp.universal.d.ts +18 -6
- package/build/es/src/events-v1-rsvp.universal.js +18 -22
- package/build/es/src/events-v1-rsvp.universal.js.map +1 -1
- package/build/es/src/events-v1-ticket-definition.context.d.ts +9 -0
- package/build/es/src/events-v1-ticket-definition.context.js +72 -0
- package/build/es/src/events-v1-ticket-definition.context.js.map +1 -0
- package/build/es/src/events-v1-ticket-definition.public.d.ts +1 -1
- package/build/es/src/events-v1-ticket-definition.types.d.ts +2 -2
- package/build/es/src/events-v1-ticket-definition.universal.d.ts +19 -8
- package/build/es/src/events-v1-ticket-definition.universal.js +17 -20
- package/build/es/src/events-v1-ticket-definition.universal.js.map +1 -1
- package/build/es/src/events-v1-ticket.context.d.ts +8 -0
- package/build/es/src/events-v1-ticket.context.js +62 -0
- package/build/es/src/events-v1-ticket.context.js.map +1 -0
- package/build/es/src/events-v1-ticket.universal.d.ts +12 -6
- package/build/es/src/events-v1-ticket.universal.js +12 -19
- package/build/es/src/events-v1-ticket.universal.js.map +1 -1
- package/build/es/src/events-v2-policy.context.d.ts +8 -0
- package/build/es/src/events-v2-policy.context.js +62 -0
- package/build/es/src/events-v2-policy.context.js.map +1 -0
- package/build/es/src/events-v2-policy.universal.d.ts +0 -6
- package/build/es/src/events-v2-policy.universal.js +0 -18
- package/build/es/src/events-v2-policy.universal.js.map +1 -1
- package/build/es/src/events-v3-event.context.d.ts +15 -0
- package/build/es/src/events-v3-event.context.js +132 -0
- package/build/es/src/events-v3-event.context.js.map +1 -0
- package/build/es/src/events-v3-event.http.js +6 -0
- package/build/es/src/events-v3-event.http.js.map +1 -1
- package/build/es/src/events-v3-event.public.d.ts +5 -5
- package/build/es/src/events-v3-event.public.js.map +1 -1
- package/build/es/src/events-v3-event.types.d.ts +27 -22
- package/build/es/src/events-v3-event.types.js.map +1 -1
- package/build/es/src/events-v3-event.universal.d.ts +33 -34
- package/build/es/src/events-v3-event.universal.js +30 -55
- package/build/es/src/events-v3-event.universal.js.map +1 -1
- package/context/package.json +6 -0
- package/package.json +6 -4
- package/build/cjs/src/events-v1-order-checkout.http.d.ts +0 -89
- package/build/cjs/src/events-v1-order-checkout.http.js +0 -1083
- package/build/cjs/src/events-v1-order-checkout.http.js.map +0 -1
- package/build/cjs/src/events-v1-order-checkout.meta.js.map +0 -1
- package/build/cjs/src/events-v1-order-checkout.public.d.ts +0 -15
- package/build/cjs/src/events-v1-order-checkout.public.js +0 -69
- package/build/cjs/src/events-v1-order-checkout.public.js.map +0 -1
- package/build/cjs/src/events-v1-order-checkout.types.js +0 -145
- package/build/cjs/src/events-v1-order-checkout.types.js.map +0 -1
- package/build/cjs/src/events-v1-order-checkout.universal.js.map +0 -1
- package/build/cjs/src/events-v1-order-orders.http.js.map +0 -1
- package/build/cjs/src/events-v1-order-orders.meta.d.ts +0 -28
- package/build/cjs/src/events-v1-order-orders.meta.js.map +0 -1
- package/build/cjs/src/events-v1-order-orders.public.js +0 -57
- package/build/cjs/src/events-v1-order-orders.public.js.map +0 -1
- package/build/cjs/src/events-v1-order-orders.types.js.map +0 -1
- package/build/cjs/src/events-v1-order-orders.universal.d.ts +0 -3620
- package/build/cjs/src/events-v1-order-orders.universal.js +0 -679
- package/build/cjs/src/events-v1-order-orders.universal.js.map +0 -1
- package/build/es/src/events-v1-order-checkout.http.d.ts +0 -89
- package/build/es/src/events-v1-order-checkout.http.js +0 -1066
- package/build/es/src/events-v1-order-checkout.http.js.map +0 -1
- package/build/es/src/events-v1-order-checkout.meta.js.map +0 -1
- package/build/es/src/events-v1-order-checkout.public.d.ts +0 -15
- package/build/es/src/events-v1-order-checkout.public.js +0 -44
- package/build/es/src/events-v1-order-checkout.public.js.map +0 -1
- package/build/es/src/events-v1-order-checkout.types.d.ts +0 -3631
- package/build/es/src/events-v1-order-checkout.types.js +0 -142
- package/build/es/src/events-v1-order-checkout.types.js.map +0 -1
- package/build/es/src/events-v1-order-checkout.universal.js.map +0 -1
- package/build/es/src/events-v1-order-orders.http.js.map +0 -1
- package/build/es/src/events-v1-order-orders.meta.d.ts +0 -28
- package/build/es/src/events-v1-order-orders.meta.js +0 -110
- package/build/es/src/events-v1-order-orders.meta.js.map +0 -1
- package/build/es/src/events-v1-order-orders.public.js +0 -34
- package/build/es/src/events-v1-order-orders.public.js.map +0 -1
- package/build/es/src/events-v1-order-orders.types.d.ts +0 -3631
- package/build/es/src/events-v1-order-orders.types.js.map +0 -1
- package/build/es/src/events-v1-order-orders.universal.d.ts +0 -3620
- package/build/es/src/events-v1-order-orders.universal.js +0 -647
- package/build/es/src/events-v1-order-orders.universal.js.map +0 -1
- /package/build/cjs/src/{events-v1-order-checkout.types.d.ts → events-v1-order.types.d.ts} +0 -0
- /package/build/{cjs/src/events-v1-order-orders.types.d.ts → es/src/events-v1-order.types.d.ts} +0 -0
|
@@ -9,20 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { serializer } from '@wix/metro-runtime/velo';
|
|
11
11
|
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
12
|
-
import * as ambassadorWixEventsV1Order from './events-v1-order
|
|
13
|
-
let __verbose = false;
|
|
14
|
-
function __log(...args) {
|
|
15
|
-
__verbose && console.log(...args);
|
|
16
|
-
}
|
|
17
|
-
function __inspect(obj) {
|
|
18
|
-
return obj;
|
|
19
|
-
}
|
|
20
|
-
export const __debug = {
|
|
21
|
-
verboseLogging: {
|
|
22
|
-
on: () => (__verbose = true),
|
|
23
|
-
off: () => (__verbose = false),
|
|
24
|
-
},
|
|
25
|
-
};
|
|
12
|
+
import * as ambassadorWixEventsV1Order from './events-v1-order.http';
|
|
26
13
|
const _toVeloEntity = '$';
|
|
27
14
|
const _fromVeloEntity = '$';
|
|
28
15
|
export var SubdivisionType;
|
|
@@ -166,10 +153,14 @@ export var TicketDefinitionFieldset;
|
|
|
166
153
|
/** Include dashboard in the response. */
|
|
167
154
|
TicketDefinitionFieldset["DASHBOARD"] = "DASHBOARD";
|
|
168
155
|
})(TicketDefinitionFieldset || (TicketDefinitionFieldset = {}));
|
|
156
|
+
const _bulkUpdateOrdersRequest = {};
|
|
157
|
+
const _bulkUpdateOrdersResponse = { orders: '_order' };
|
|
169
158
|
const _cancelReservationRequest = {};
|
|
170
159
|
const _cancelReservationResponse = {};
|
|
171
160
|
const _checkoutRequest = { guests: '_guest' };
|
|
172
161
|
const _checkoutResponse = { order: '_order' };
|
|
162
|
+
const _confirmOrderRequest = {};
|
|
163
|
+
const _confirmOrderResponse = { orders: '_order' };
|
|
173
164
|
const _createReservationRequest = {};
|
|
174
165
|
const _createReservationResponse = {};
|
|
175
166
|
const _formattedAddress = { address: 'wix.common.Address' };
|
|
@@ -178,17 +169,497 @@ const _getCheckoutOptionsRequest = {};
|
|
|
178
169
|
const _getCheckoutOptionsResponse = {};
|
|
179
170
|
const _getInvoiceRequest = {};
|
|
180
171
|
const _getInvoiceResponse = {};
|
|
172
|
+
const _getOrderRequest = {};
|
|
173
|
+
const _getOrderResponse = { order: '_order' };
|
|
174
|
+
const _getSummaryRequest = {};
|
|
175
|
+
const _getSummaryResponse = {};
|
|
181
176
|
const _guest = { form: '_formResponse' };
|
|
182
177
|
const _guestDetails = { form: '_formResponse' };
|
|
183
178
|
const _inputValue = { address: '_formattedAddress' };
|
|
184
179
|
const _listAvailableTicketsRequest = {};
|
|
185
180
|
const _listAvailableTicketsResponse = {};
|
|
181
|
+
const _listOrdersRequest = {};
|
|
182
|
+
const _listOrdersResponse = { orders: '_order' };
|
|
186
183
|
const _order = { checkoutForm: '_formResponse', tickets: '_ticketingTicket' };
|
|
187
184
|
const _queryAvailableTicketsRequest = {};
|
|
188
185
|
const _queryAvailableTicketsResponse = {};
|
|
189
186
|
const _ticketingTicket = { guestDetails: '_guestDetails' };
|
|
190
187
|
const _updateCheckoutRequest = { guests: '_guest' };
|
|
191
188
|
const _updateCheckoutResponse = { order: '_order' };
|
|
189
|
+
const _updateOrderRequest = { checkoutForm: '_formResponse' };
|
|
190
|
+
const _updateOrderResponse = { order: '_order' };
|
|
191
|
+
/**
|
|
192
|
+
* Retrieves a list of orders, including ticket data, with basic filter support.
|
|
193
|
+
* <!--
|
|
194
|
+
* > 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.
|
|
195
|
+
* -->
|
|
196
|
+
* @public
|
|
197
|
+
* @documentationMaturity preview
|
|
198
|
+
* @param options - An object representing the available options for retrieving a list of orders.
|
|
199
|
+
* @permissionScope Read Events - all read permissions
|
|
200
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
201
|
+
* @permissionScope Manage Events - all permissions
|
|
202
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
203
|
+
* @permissionScope Read Basic Events Order Info
|
|
204
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-BASIC-ORDERS
|
|
205
|
+
* @permissionScope Manage Orders
|
|
206
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
207
|
+
* @applicableIdentity APP
|
|
208
|
+
*/
|
|
209
|
+
export function listOrders(options) {
|
|
210
|
+
var _a, _b, _c;
|
|
211
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
212
|
+
const requestTransformation = {
|
|
213
|
+
offset: '$[0].offset',
|
|
214
|
+
limit: '$[0].limit',
|
|
215
|
+
fieldset: '$[0].fieldset',
|
|
216
|
+
status: '$[0].status',
|
|
217
|
+
eventId: '$[0].eventId',
|
|
218
|
+
orderNumber: '$[0].orderNumber',
|
|
219
|
+
memberId: '$[0].memberId',
|
|
220
|
+
facet: '$[0].facet',
|
|
221
|
+
searchPhrase: '$[0].searchPhrase',
|
|
222
|
+
eventCreatorId: '$[0].eventCreatorId',
|
|
223
|
+
sort: '$[0].sort',
|
|
224
|
+
tag: '$[0].tag',
|
|
225
|
+
};
|
|
226
|
+
const responseTransformation = '$';
|
|
227
|
+
// @ts-ignore
|
|
228
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
229
|
+
const { toAmbassadorRequest } = serializer({
|
|
230
|
+
rootSchema: _listOrdersRequest,
|
|
231
|
+
depSchemas: {},
|
|
232
|
+
fqdnTransformation: {
|
|
233
|
+
paths: [],
|
|
234
|
+
transformation: _fromVeloEntity,
|
|
235
|
+
},
|
|
236
|
+
customTransformation: requestTransformation,
|
|
237
|
+
});
|
|
238
|
+
const { fromJSON } = serializer({
|
|
239
|
+
rootSchema: _listOrdersResponse,
|
|
240
|
+
depSchemas: {
|
|
241
|
+
_formResponse,
|
|
242
|
+
_formattedAddress,
|
|
243
|
+
_guestDetails,
|
|
244
|
+
_inputValue,
|
|
245
|
+
_order,
|
|
246
|
+
_ticketingTicket,
|
|
247
|
+
},
|
|
248
|
+
fqdnTransformation: {
|
|
249
|
+
paths: [...['Array#orders']],
|
|
250
|
+
transformation: _toVeloEntity,
|
|
251
|
+
},
|
|
252
|
+
customTransformation: responseTransformation,
|
|
253
|
+
});
|
|
254
|
+
const payload = toAmbassadorRequest([options]);
|
|
255
|
+
const reqOpts = ambassadorWixEventsV1Order.listOrders(payload);
|
|
256
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
257
|
+
try {
|
|
258
|
+
const result = yield httpClient.request(reqOpts);
|
|
259
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
260
|
+
return fromJSON(result.data);
|
|
261
|
+
}
|
|
262
|
+
catch (err) {
|
|
263
|
+
const transformedError = sdkTransformError(err, {
|
|
264
|
+
spreadPathsToArguments: {},
|
|
265
|
+
explicitPathsToArguments: {
|
|
266
|
+
offset: '$[0].offset',
|
|
267
|
+
limit: '$[0].limit',
|
|
268
|
+
fieldset: '$[0].fieldset',
|
|
269
|
+
status: '$[0].status',
|
|
270
|
+
eventId: '$[0].eventId',
|
|
271
|
+
orderNumber: '$[0].orderNumber',
|
|
272
|
+
memberId: '$[0].memberId',
|
|
273
|
+
facet: '$[0].facet',
|
|
274
|
+
searchPhrase: '$[0].searchPhrase',
|
|
275
|
+
eventCreatorId: '$[0].eventCreatorId',
|
|
276
|
+
sort: '$[0].sort',
|
|
277
|
+
tag: '$[0].tag',
|
|
278
|
+
},
|
|
279
|
+
singleArgumentUnchanged: false,
|
|
280
|
+
}, ['options']);
|
|
281
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
282
|
+
throw transformedError;
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Retrieves an order, including ticket data.
|
|
288
|
+
* <!--
|
|
289
|
+
* >The fieldsets in this function are restricted and only run if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
290
|
+
* -->
|
|
291
|
+
* @public
|
|
292
|
+
* @documentationMaturity preview
|
|
293
|
+
* @requiredField identifiers
|
|
294
|
+
* @requiredField identifiers.eventId
|
|
295
|
+
* @requiredField identifiers.orderNumber
|
|
296
|
+
* @param options - An object representing the available options for getting an order.
|
|
297
|
+
* @param identifiers - An object containing identifiers for the order to be retrieved.
|
|
298
|
+
* @permissionScope Read Events - all read permissions
|
|
299
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
300
|
+
* @permissionScope Manage Events - all permissions
|
|
301
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
302
|
+
* @permissionScope Read Basic Events Order Info
|
|
303
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-BASIC-ORDERS
|
|
304
|
+
* @permissionScope Manage Orders
|
|
305
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
306
|
+
* @applicableIdentity APP
|
|
307
|
+
* @returns Requested order.
|
|
308
|
+
*/
|
|
309
|
+
export function getOrder(identifiers, options) {
|
|
310
|
+
var _a, _b, _c;
|
|
311
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
312
|
+
const requestTransformation = {
|
|
313
|
+
eventId: '$[0].eventId',
|
|
314
|
+
orderNumber: '$[0].orderNumber',
|
|
315
|
+
fieldset: '$[1].fieldset',
|
|
316
|
+
};
|
|
317
|
+
const responseTransformation = '$.order';
|
|
318
|
+
// @ts-ignore
|
|
319
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
320
|
+
const { toAmbassadorRequest } = serializer({
|
|
321
|
+
rootSchema: _getOrderRequest,
|
|
322
|
+
depSchemas: {},
|
|
323
|
+
fqdnTransformation: {
|
|
324
|
+
paths: [],
|
|
325
|
+
transformation: _fromVeloEntity,
|
|
326
|
+
},
|
|
327
|
+
customTransformation: requestTransformation,
|
|
328
|
+
});
|
|
329
|
+
const { fromJSON } = serializer({
|
|
330
|
+
rootSchema: _getOrderResponse,
|
|
331
|
+
depSchemas: {
|
|
332
|
+
_formResponse,
|
|
333
|
+
_formattedAddress,
|
|
334
|
+
_guestDetails,
|
|
335
|
+
_inputValue,
|
|
336
|
+
_order,
|
|
337
|
+
_ticketingTicket,
|
|
338
|
+
},
|
|
339
|
+
fqdnTransformation: {
|
|
340
|
+
paths: [...['order']],
|
|
341
|
+
transformation: _toVeloEntity,
|
|
342
|
+
},
|
|
343
|
+
customTransformation: responseTransformation,
|
|
344
|
+
});
|
|
345
|
+
const payload = toAmbassadorRequest([identifiers, options]);
|
|
346
|
+
const reqOpts = ambassadorWixEventsV1Order.getOrder(payload);
|
|
347
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
348
|
+
try {
|
|
349
|
+
const result = yield httpClient.request(reqOpts);
|
|
350
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
351
|
+
return fromJSON(result.data);
|
|
352
|
+
}
|
|
353
|
+
catch (err) {
|
|
354
|
+
const transformedError = sdkTransformError(err, {
|
|
355
|
+
spreadPathsToArguments: {},
|
|
356
|
+
explicitPathsToArguments: {
|
|
357
|
+
eventId: '$[0].eventId',
|
|
358
|
+
orderNumber: '$[0].orderNumber',
|
|
359
|
+
fieldset: '$[1].fieldset',
|
|
360
|
+
},
|
|
361
|
+
singleArgumentUnchanged: false,
|
|
362
|
+
}, ['identifiers', 'options']);
|
|
363
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
364
|
+
throw transformedError;
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Updates an order.
|
|
370
|
+
*
|
|
371
|
+
*
|
|
372
|
+
* See [Partial Updates](/wix-events-v2/partial-updates) for more information.
|
|
373
|
+
* <!--
|
|
374
|
+
* >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.
|
|
375
|
+
* -->
|
|
376
|
+
* @public
|
|
377
|
+
* @documentationMaturity preview
|
|
378
|
+
* @requiredField identifiers
|
|
379
|
+
* @requiredField identifiers.eventId
|
|
380
|
+
* @requiredField identifiers.orderNumber
|
|
381
|
+
* @param options - An object representing the available options for updating an order.
|
|
382
|
+
* @param identifiers - An object containing identifiers for the order to be updated.
|
|
383
|
+
* @permissionScope Manage Events - all permissions
|
|
384
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
385
|
+
* @permissionScope Manage Orders
|
|
386
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
387
|
+
* @applicableIdentity APP
|
|
388
|
+
*/
|
|
389
|
+
export function updateOrder(identifiers, options) {
|
|
390
|
+
var _a, _b, _c;
|
|
391
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
392
|
+
const requestTransformation = {
|
|
393
|
+
eventId: '$[0].eventId',
|
|
394
|
+
orderNumber: '$[0].orderNumber',
|
|
395
|
+
checkoutForm: '$[1].checkoutForm',
|
|
396
|
+
archived: '$[1].archived',
|
|
397
|
+
};
|
|
398
|
+
const responseTransformation = '$';
|
|
399
|
+
// @ts-ignore
|
|
400
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
401
|
+
const { toAmbassadorRequest } = serializer({
|
|
402
|
+
rootSchema: _updateOrderRequest,
|
|
403
|
+
depSchemas: { _formResponse, _formattedAddress, _inputValue },
|
|
404
|
+
fqdnTransformation: {
|
|
405
|
+
paths: [],
|
|
406
|
+
transformation: _fromVeloEntity,
|
|
407
|
+
},
|
|
408
|
+
customTransformation: requestTransformation,
|
|
409
|
+
});
|
|
410
|
+
const { fromJSON } = serializer({
|
|
411
|
+
rootSchema: _updateOrderResponse,
|
|
412
|
+
depSchemas: {
|
|
413
|
+
_formResponse,
|
|
414
|
+
_formattedAddress,
|
|
415
|
+
_guestDetails,
|
|
416
|
+
_inputValue,
|
|
417
|
+
_order,
|
|
418
|
+
_ticketingTicket,
|
|
419
|
+
},
|
|
420
|
+
fqdnTransformation: {
|
|
421
|
+
paths: [...['order']],
|
|
422
|
+
transformation: _toVeloEntity,
|
|
423
|
+
},
|
|
424
|
+
customTransformation: responseTransformation,
|
|
425
|
+
});
|
|
426
|
+
const payload = toAmbassadorRequest([identifiers, options]);
|
|
427
|
+
const reqOpts = ambassadorWixEventsV1Order.updateOrder(payload);
|
|
428
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
429
|
+
try {
|
|
430
|
+
const result = yield httpClient.request(reqOpts);
|
|
431
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
432
|
+
return fromJSON(result.data);
|
|
433
|
+
}
|
|
434
|
+
catch (err) {
|
|
435
|
+
const transformedError = sdkTransformError(err, {
|
|
436
|
+
spreadPathsToArguments: {},
|
|
437
|
+
explicitPathsToArguments: {
|
|
438
|
+
eventId: '$[0].eventId',
|
|
439
|
+
orderNumber: '$[0].orderNumber',
|
|
440
|
+
checkoutForm: '$[1].checkoutForm',
|
|
441
|
+
archived: '$[1].archived',
|
|
442
|
+
},
|
|
443
|
+
singleArgumentUnchanged: false,
|
|
444
|
+
}, ['identifiers', 'options']);
|
|
445
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
446
|
+
throw transformedError;
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* Updates multiple orders' `archived` status.
|
|
452
|
+
*
|
|
453
|
+
*
|
|
454
|
+
* See [Partial Updates](/wix-events-v2/partial-updates) for more information.
|
|
455
|
+
* <!--
|
|
456
|
+
* >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.
|
|
457
|
+
* -->
|
|
458
|
+
* @param eventId - Event ID.
|
|
459
|
+
* @public
|
|
460
|
+
* @documentationMaturity preview
|
|
461
|
+
* @requiredField eventId
|
|
462
|
+
* @param options - An object representing the available options for confirming an order.
|
|
463
|
+
* @permissionScope Manage Events - all permissions
|
|
464
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
465
|
+
* @permissionScope Manage Orders
|
|
466
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
467
|
+
* @applicableIdentity APP
|
|
468
|
+
*/
|
|
469
|
+
export function bulkUpdateOrders(eventId, options) {
|
|
470
|
+
var _a, _b, _c;
|
|
471
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
472
|
+
const requestTransformation = {
|
|
473
|
+
eventId: '$[0]',
|
|
474
|
+
orderNumber: '$[1].orderNumber',
|
|
475
|
+
archived: '$[1].archived',
|
|
476
|
+
};
|
|
477
|
+
const responseTransformation = '$';
|
|
478
|
+
// @ts-ignore
|
|
479
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
480
|
+
const { toAmbassadorRequest } = serializer({
|
|
481
|
+
rootSchema: _bulkUpdateOrdersRequest,
|
|
482
|
+
depSchemas: {},
|
|
483
|
+
fqdnTransformation: {
|
|
484
|
+
paths: [],
|
|
485
|
+
transformation: _fromVeloEntity,
|
|
486
|
+
},
|
|
487
|
+
customTransformation: requestTransformation,
|
|
488
|
+
});
|
|
489
|
+
const { fromJSON } = serializer({
|
|
490
|
+
rootSchema: _bulkUpdateOrdersResponse,
|
|
491
|
+
depSchemas: {
|
|
492
|
+
_formResponse,
|
|
493
|
+
_formattedAddress,
|
|
494
|
+
_guestDetails,
|
|
495
|
+
_inputValue,
|
|
496
|
+
_order,
|
|
497
|
+
_ticketingTicket,
|
|
498
|
+
},
|
|
499
|
+
fqdnTransformation: {
|
|
500
|
+
paths: [...['Array#orders']],
|
|
501
|
+
transformation: _toVeloEntity,
|
|
502
|
+
},
|
|
503
|
+
customTransformation: responseTransformation,
|
|
504
|
+
});
|
|
505
|
+
const payload = toAmbassadorRequest([eventId, options]);
|
|
506
|
+
const reqOpts = ambassadorWixEventsV1Order.bulkUpdateOrders(payload);
|
|
507
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
508
|
+
try {
|
|
509
|
+
const result = yield httpClient.request(reqOpts);
|
|
510
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
511
|
+
return fromJSON(result.data);
|
|
512
|
+
}
|
|
513
|
+
catch (err) {
|
|
514
|
+
const transformedError = sdkTransformError(err, {
|
|
515
|
+
spreadPathsToArguments: {},
|
|
516
|
+
explicitPathsToArguments: {
|
|
517
|
+
eventId: '$[0]',
|
|
518
|
+
orderNumber: '$[1].orderNumber',
|
|
519
|
+
archived: '$[1].archived',
|
|
520
|
+
},
|
|
521
|
+
singleArgumentUnchanged: false,
|
|
522
|
+
}, ['eventId', 'options']);
|
|
523
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
524
|
+
throw transformedError;
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Changes order status from "INITIATED, "PENDING", or "OFFLINE_PENDING" to "PAID". Previously confirmed orders (with status "PAID" or "FREE") are not changed. Confirming previously "INITIATED" or "PENDING" orders triggers an email with the tickets to the buyer (and to additional guests, if relevant and provided).
|
|
530
|
+
* <!--
|
|
531
|
+
* > 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.
|
|
532
|
+
* -->
|
|
533
|
+
* @param eventId - Event ID.
|
|
534
|
+
* @public
|
|
535
|
+
* @documentationMaturity preview
|
|
536
|
+
* @requiredField eventId
|
|
537
|
+
* @param options - An object representing the available options for confirming an order.
|
|
538
|
+
* @permissionScope Manage Events - all permissions
|
|
539
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
540
|
+
* @permissionScope Manage Orders
|
|
541
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
542
|
+
* @applicableIdentity APP
|
|
543
|
+
*/
|
|
544
|
+
export function confirmOrder(eventId, options) {
|
|
545
|
+
var _a, _b, _c;
|
|
546
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
547
|
+
const requestTransformation = {
|
|
548
|
+
eventId: '$[0]',
|
|
549
|
+
orderNumber: '$[1].orderNumber',
|
|
550
|
+
};
|
|
551
|
+
const responseTransformation = '$';
|
|
552
|
+
// @ts-ignore
|
|
553
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
554
|
+
const { toAmbassadorRequest } = serializer({
|
|
555
|
+
rootSchema: _confirmOrderRequest,
|
|
556
|
+
depSchemas: {},
|
|
557
|
+
fqdnTransformation: {
|
|
558
|
+
paths: [],
|
|
559
|
+
transformation: _fromVeloEntity,
|
|
560
|
+
},
|
|
561
|
+
customTransformation: requestTransformation,
|
|
562
|
+
});
|
|
563
|
+
const { fromJSON } = serializer({
|
|
564
|
+
rootSchema: _confirmOrderResponse,
|
|
565
|
+
depSchemas: {
|
|
566
|
+
_formResponse,
|
|
567
|
+
_formattedAddress,
|
|
568
|
+
_guestDetails,
|
|
569
|
+
_inputValue,
|
|
570
|
+
_order,
|
|
571
|
+
_ticketingTicket,
|
|
572
|
+
},
|
|
573
|
+
fqdnTransformation: {
|
|
574
|
+
paths: [...['Array#orders']],
|
|
575
|
+
transformation: _toVeloEntity,
|
|
576
|
+
},
|
|
577
|
+
customTransformation: responseTransformation,
|
|
578
|
+
});
|
|
579
|
+
const payload = toAmbassadorRequest([eventId, options]);
|
|
580
|
+
const reqOpts = ambassadorWixEventsV1Order.confirmOrder(payload);
|
|
581
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
582
|
+
try {
|
|
583
|
+
const result = yield httpClient.request(reqOpts);
|
|
584
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
585
|
+
return fromJSON(result.data);
|
|
586
|
+
}
|
|
587
|
+
catch (err) {
|
|
588
|
+
const transformedError = sdkTransformError(err, {
|
|
589
|
+
spreadPathsToArguments: {},
|
|
590
|
+
explicitPathsToArguments: {
|
|
591
|
+
eventId: '$[0]',
|
|
592
|
+
orderNumber: '$[1].orderNumber',
|
|
593
|
+
},
|
|
594
|
+
singleArgumentUnchanged: false,
|
|
595
|
+
}, ['eventId', 'options']);
|
|
596
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
597
|
+
throw transformedError;
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* Retrieves a summary of total ticket sales.
|
|
603
|
+
* <!--
|
|
604
|
+
* > 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.
|
|
605
|
+
* -->
|
|
606
|
+
* @public
|
|
607
|
+
* @documentationMaturity preview
|
|
608
|
+
* @param options - An object representing the available options for retrieving a summary of total ticket sales.
|
|
609
|
+
* @permissionScope Read Events - all read permissions
|
|
610
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
611
|
+
* @permissionScope Manage Events - all permissions
|
|
612
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
613
|
+
* @permissionScope Read Basic Events Order Info
|
|
614
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-BASIC-ORDERS
|
|
615
|
+
* @permissionScope Manage Orders
|
|
616
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
617
|
+
* @applicableIdentity APP
|
|
618
|
+
*/
|
|
619
|
+
export function getSummary(options) {
|
|
620
|
+
var _a, _b, _c;
|
|
621
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
622
|
+
const requestTransformation = { eventId: '$[0].eventId' };
|
|
623
|
+
const responseTransformation = '$';
|
|
624
|
+
// @ts-ignore
|
|
625
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
626
|
+
const { toAmbassadorRequest } = serializer({
|
|
627
|
+
rootSchema: _getSummaryRequest,
|
|
628
|
+
depSchemas: {},
|
|
629
|
+
fqdnTransformation: {
|
|
630
|
+
paths: [],
|
|
631
|
+
transformation: _fromVeloEntity,
|
|
632
|
+
},
|
|
633
|
+
customTransformation: requestTransformation,
|
|
634
|
+
});
|
|
635
|
+
const { fromJSON } = serializer({
|
|
636
|
+
rootSchema: _getSummaryResponse,
|
|
637
|
+
depSchemas: {},
|
|
638
|
+
fqdnTransformation: {
|
|
639
|
+
paths: [],
|
|
640
|
+
transformation: _toVeloEntity,
|
|
641
|
+
},
|
|
642
|
+
customTransformation: responseTransformation,
|
|
643
|
+
});
|
|
644
|
+
const payload = toAmbassadorRequest([options]);
|
|
645
|
+
const reqOpts = ambassadorWixEventsV1Order.getSummary(payload);
|
|
646
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
647
|
+
try {
|
|
648
|
+
const result = yield httpClient.request(reqOpts);
|
|
649
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
650
|
+
return fromJSON(result.data);
|
|
651
|
+
}
|
|
652
|
+
catch (err) {
|
|
653
|
+
const transformedError = sdkTransformError(err, {
|
|
654
|
+
spreadPathsToArguments: {},
|
|
655
|
+
explicitPathsToArguments: { eventId: '$[0].eventId' },
|
|
656
|
+
singleArgumentUnchanged: false,
|
|
657
|
+
}, ['options']);
|
|
658
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
659
|
+
throw transformedError;
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
}
|
|
192
663
|
/**
|
|
193
664
|
* Returns checkout meta data used in checkout UX.
|
|
194
665
|
* <!--
|
|
@@ -197,7 +668,9 @@ const _updateCheckoutResponse = { order: '_order' };
|
|
|
197
668
|
* @public
|
|
198
669
|
* @documentationMaturity preview
|
|
199
670
|
* @permissionScope Manage Events - all permissions
|
|
671
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
200
672
|
* @permissionScope Manage Orders
|
|
673
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
201
674
|
* @applicableIdentity APP
|
|
202
675
|
* @applicableIdentity MEMBER
|
|
203
676
|
* @applicableIdentity VISITOR
|
|
@@ -229,7 +702,6 @@ export function getCheckoutOptions() {
|
|
|
229
702
|
});
|
|
230
703
|
const payload = toAmbassadorRequest([]);
|
|
231
704
|
const reqOpts = ambassadorWixEventsV1Order.getCheckoutOptions(payload);
|
|
232
|
-
__log(`"GetCheckoutOptions" sending request with: ${__inspect(reqOpts)}`);
|
|
233
705
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
234
706
|
try {
|
|
235
707
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -256,7 +728,9 @@ export function getCheckoutOptions() {
|
|
|
256
728
|
* @documentationMaturity preview
|
|
257
729
|
* @param options - An object representing the available options for retrieving a list of tickets available for reservation.
|
|
258
730
|
* @permissionScope Manage Events - all permissions
|
|
731
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
259
732
|
* @permissionScope Manage Orders
|
|
733
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
260
734
|
* @applicableIdentity APP
|
|
261
735
|
* @applicableIdentity MEMBER
|
|
262
736
|
* @applicableIdentity VISITOR
|
|
@@ -294,7 +768,6 @@ export function listAvailableTickets(options) {
|
|
|
294
768
|
});
|
|
295
769
|
const payload = toAmbassadorRequest([options]);
|
|
296
770
|
const reqOpts = ambassadorWixEventsV1Order.listAvailableTickets(payload);
|
|
297
|
-
__log(`"ListAvailableTickets" sending request with: ${__inspect(reqOpts)}`);
|
|
298
771
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
299
772
|
try {
|
|
300
773
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -327,7 +800,9 @@ export function listAvailableTickets(options) {
|
|
|
327
800
|
* @documentationMaturity preview
|
|
328
801
|
* @param options - An object representing the available options for retrieving a list of tickets available for reservation.
|
|
329
802
|
* @permissionScope Manage Events - all permissions
|
|
803
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
330
804
|
* @permissionScope Manage Orders
|
|
805
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
331
806
|
* @applicableIdentity APP
|
|
332
807
|
* @applicableIdentity MEMBER
|
|
333
808
|
* @applicableIdentity VISITOR
|
|
@@ -365,7 +840,6 @@ export function queryAvailableTickets(options) {
|
|
|
365
840
|
});
|
|
366
841
|
const payload = toAmbassadorRequest([options]);
|
|
367
842
|
const reqOpts = ambassadorWixEventsV1Order.queryAvailableTickets(payload);
|
|
368
|
-
__log(`"QueryAvailableTickets" sending request with: ${__inspect(reqOpts)}`);
|
|
369
843
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
370
844
|
try {
|
|
371
845
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -402,7 +876,9 @@ export function queryAvailableTickets(options) {
|
|
|
402
876
|
* @requiredField eventId
|
|
403
877
|
* @param options - An object representing the available options for creating a reservation.
|
|
404
878
|
* @permissionScope Manage Events - all permissions
|
|
879
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
405
880
|
* @permissionScope Manage Orders
|
|
881
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
406
882
|
* @applicableIdentity APP
|
|
407
883
|
* @applicableIdentity MEMBER
|
|
408
884
|
* @applicableIdentity VISITOR
|
|
@@ -439,7 +915,6 @@ export function createReservation(eventId, options) {
|
|
|
439
915
|
});
|
|
440
916
|
const payload = toAmbassadorRequest([eventId, options]);
|
|
441
917
|
const reqOpts = ambassadorWixEventsV1Order.createReservation(payload);
|
|
442
|
-
__log(`"CreateReservation" sending request with: ${__inspect(reqOpts)}`);
|
|
443
918
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
444
919
|
try {
|
|
445
920
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -475,7 +950,9 @@ export function createReservation(eventId, options) {
|
|
|
475
950
|
* @requiredField eventId
|
|
476
951
|
* @param identifiers - An object containing identifiers for the reservation to be cancelled.
|
|
477
952
|
* @permissionScope Manage Events - all permissions
|
|
953
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
478
954
|
* @permissionScope Manage Orders
|
|
955
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
479
956
|
* @applicableIdentity APP
|
|
480
957
|
* @applicableIdentity MEMBER
|
|
481
958
|
* @applicableIdentity VISITOR
|
|
@@ -507,7 +984,6 @@ export function cancelReservation(_id, eventId) {
|
|
|
507
984
|
});
|
|
508
985
|
const payload = toAmbassadorRequest([_id, eventId]);
|
|
509
986
|
const reqOpts = ambassadorWixEventsV1Order.cancelReservation(payload);
|
|
510
|
-
__log(`"CancelReservation" sending request with: ${__inspect(reqOpts)}`);
|
|
511
987
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
512
988
|
try {
|
|
513
989
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -538,9 +1014,13 @@ export function cancelReservation(_id, eventId) {
|
|
|
538
1014
|
* @param options - An object representing the available options for generating a preview of a reservation invoice.
|
|
539
1015
|
* @param identifiers - An object containing identifiers for the reservation invoice preview to be generated.
|
|
540
1016
|
* @permissionScope Read Events - all read permissions
|
|
1017
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
541
1018
|
* @permissionScope Manage Events - all permissions
|
|
1019
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
542
1020
|
* @permissionScope Read Basic Events Order Info
|
|
1021
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-BASIC-ORDERS
|
|
543
1022
|
* @permissionScope Manage Orders
|
|
1023
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
544
1024
|
* @applicableIdentity APP
|
|
545
1025
|
* @applicableIdentity MEMBER
|
|
546
1026
|
* @applicableIdentity VISITOR
|
|
@@ -577,7 +1057,6 @@ export function getInvoice(reservationId, eventId, options) {
|
|
|
577
1057
|
});
|
|
578
1058
|
const payload = toAmbassadorRequest([reservationId, eventId, options]);
|
|
579
1059
|
const reqOpts = ambassadorWixEventsV1Order.getInvoice(payload);
|
|
580
|
-
__log(`"GetInvoice" sending request with: ${__inspect(reqOpts)}`);
|
|
581
1060
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
582
1061
|
try {
|
|
583
1062
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -624,7 +1103,9 @@ export function getInvoice(reservationId, eventId, options) {
|
|
|
624
1103
|
* @requiredField options.guests.form
|
|
625
1104
|
* @param options - An object representing the available options for checking out a reserved ticket.
|
|
626
1105
|
* @permissionScope Manage Events - all permissions
|
|
1106
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
627
1107
|
* @permissionScope Manage Orders
|
|
1108
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
628
1109
|
* @applicableIdentity APP
|
|
629
1110
|
* @applicableIdentity MEMBER
|
|
630
1111
|
* @applicableIdentity VISITOR
|
|
@@ -672,7 +1153,6 @@ export function checkout(eventId, options) {
|
|
|
672
1153
|
});
|
|
673
1154
|
const payload = toAmbassadorRequest([eventId, options]);
|
|
674
1155
|
const reqOpts = ambassadorWixEventsV1Order.checkout(payload);
|
|
675
|
-
__log(`"Checkout" sending request with: ${__inspect(reqOpts)}`);
|
|
676
1156
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
677
1157
|
try {
|
|
678
1158
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -714,7 +1194,9 @@ export function checkout(eventId, options) {
|
|
|
714
1194
|
* @param options - An object representing the available options for updating an order and tickets.
|
|
715
1195
|
* @param identifiers - An object containing identifiers for the order and tickets to be updated.
|
|
716
1196
|
* @permissionScope Manage Events - all permissions
|
|
1197
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
717
1198
|
* @permissionScope Manage Orders
|
|
1199
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
718
1200
|
* @applicableIdentity APP
|
|
719
1201
|
* @applicableIdentity MEMBER
|
|
720
1202
|
* @applicableIdentity VISITOR
|
|
@@ -761,7 +1243,6 @@ export function updateCheckout(orderNumber, eventId, options) {
|
|
|
761
1243
|
});
|
|
762
1244
|
const payload = toAmbassadorRequest([orderNumber, eventId, options]);
|
|
763
1245
|
const reqOpts = ambassadorWixEventsV1Order.updateCheckout(payload);
|
|
764
|
-
__log(`"UpdateCheckout" sending request with: ${__inspect(reqOpts)}`);
|
|
765
1246
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
766
1247
|
try {
|
|
767
1248
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -787,4 +1268,4 @@ export function updateCheckout(orderNumber, eventId, options) {
|
|
|
787
1268
|
}
|
|
788
1269
|
});
|
|
789
1270
|
}
|
|
790
|
-
//# sourceMappingURL=events-v1-order
|
|
1271
|
+
//# sourceMappingURL=events-v1-order.universal.js.map
|