@wix/events 1.0.154 → 1.0.156
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 +4 -6
- package/build/cjs/src/events-guests-v1-guest.universal.js +5 -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 +1775 -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 +1923 -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 +14 -6
- package/build/cjs/src/events-v2-policy.universal.js +15 -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 +6 -6
- package/build/cjs/src/events-v3-event.public.js +8 -1
- package/build/cjs/src/events-v3-event.public.js.map +1 -1
- package/build/cjs/src/events-v3-event.types.d.ts +485 -38
- package/build/cjs/src/events-v3-event.types.js +78 -1
- package/build/cjs/src/events-v3-event.types.js.map +1 -1
- package/build/cjs/src/events-v3-event.universal.d.ts +523 -48
- package/build/cjs/src/events-v3-event.universal.js +154 -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 +4 -6
- package/build/es/src/events-guests-v1-guest.universal.js +4 -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 +1775 -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 +1923 -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 +14 -6
- package/build/es/src/events-v2-policy.universal.js +14 -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 +6 -6
- package/build/es/src/events-v3-event.public.js +1 -1
- package/build/es/src/events-v3-event.public.js.map +1 -1
- package/build/es/src/events-v3-event.types.d.ts +485 -38
- package/build/es/src/events-v3-event.types.js +77 -0
- package/build/es/src/events-v3-event.types.js.map +1 -1
- package/build/es/src/events-v3-event.universal.d.ts +523 -48
- package/build/es/src/events-v3-event.universal.js +153 -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
package/build/cjs/src/{events-v1-order-checkout.universal.js → events-v1-order.universal.js}
RENAMED
|
@@ -32,23 +32,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.updateCheckout = exports.checkout = exports.getInvoice = exports.cancelReservation = exports.createReservation = exports.queryAvailableTickets = exports.listAvailableTickets = exports.getCheckoutOptions = exports.TicketDefinitionFieldset = exports.Type = exports.TicketSaleStatus = exports.State = exports.ReservationStatus = exports.OrderTag = exports.OrderFieldset = exports.OrderType = exports.FeeType = exports.FeeName = exports.TaxType = exports.ChannelType = exports.OrderStatus = exports.SubdivisionType =
|
|
35
|
+
exports.updateCheckout = exports.checkout = exports.getInvoice = exports.cancelReservation = exports.createReservation = exports.queryAvailableTickets = exports.listAvailableTickets = exports.getCheckoutOptions = exports.getSummary = exports.confirmOrder = exports.bulkUpdateOrders = exports.updateOrder = exports.getOrder = exports.listOrders = exports.TicketDefinitionFieldset = exports.Type = exports.TicketSaleStatus = exports.State = exports.ReservationStatus = exports.OrderTag = exports.OrderFieldset = exports.OrderType = exports.FeeType = exports.FeeName = exports.TaxType = exports.ChannelType = exports.OrderStatus = exports.SubdivisionType = void 0;
|
|
36
36
|
const velo_1 = require("@wix/metro-runtime/velo");
|
|
37
37
|
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
38
|
-
const ambassadorWixEventsV1Order = __importStar(require("./events-v1-order
|
|
39
|
-
let __verbose = false;
|
|
40
|
-
function __log(...args) {
|
|
41
|
-
__verbose && console.log(...args);
|
|
42
|
-
}
|
|
43
|
-
function __inspect(obj) {
|
|
44
|
-
return obj;
|
|
45
|
-
}
|
|
46
|
-
exports.__debug = {
|
|
47
|
-
verboseLogging: {
|
|
48
|
-
on: () => (__verbose = true),
|
|
49
|
-
off: () => (__verbose = false),
|
|
50
|
-
},
|
|
51
|
-
};
|
|
38
|
+
const ambassadorWixEventsV1Order = __importStar(require("./events-v1-order.http"));
|
|
52
39
|
const _toVeloEntity = '$';
|
|
53
40
|
const _fromVeloEntity = '$';
|
|
54
41
|
var SubdivisionType;
|
|
@@ -192,10 +179,14 @@ var TicketDefinitionFieldset;
|
|
|
192
179
|
/** Include dashboard in the response. */
|
|
193
180
|
TicketDefinitionFieldset["DASHBOARD"] = "DASHBOARD";
|
|
194
181
|
})(TicketDefinitionFieldset || (exports.TicketDefinitionFieldset = TicketDefinitionFieldset = {}));
|
|
182
|
+
const _bulkUpdateOrdersRequest = {};
|
|
183
|
+
const _bulkUpdateOrdersResponse = { orders: '_order' };
|
|
195
184
|
const _cancelReservationRequest = {};
|
|
196
185
|
const _cancelReservationResponse = {};
|
|
197
186
|
const _checkoutRequest = { guests: '_guest' };
|
|
198
187
|
const _checkoutResponse = { order: '_order' };
|
|
188
|
+
const _confirmOrderRequest = {};
|
|
189
|
+
const _confirmOrderResponse = { orders: '_order' };
|
|
199
190
|
const _createReservationRequest = {};
|
|
200
191
|
const _createReservationResponse = {};
|
|
201
192
|
const _formattedAddress = { address: 'wix.common.Address' };
|
|
@@ -204,17 +195,503 @@ const _getCheckoutOptionsRequest = {};
|
|
|
204
195
|
const _getCheckoutOptionsResponse = {};
|
|
205
196
|
const _getInvoiceRequest = {};
|
|
206
197
|
const _getInvoiceResponse = {};
|
|
198
|
+
const _getOrderRequest = {};
|
|
199
|
+
const _getOrderResponse = { order: '_order' };
|
|
200
|
+
const _getSummaryRequest = {};
|
|
201
|
+
const _getSummaryResponse = {};
|
|
207
202
|
const _guest = { form: '_formResponse' };
|
|
208
203
|
const _guestDetails = { form: '_formResponse' };
|
|
209
204
|
const _inputValue = { address: '_formattedAddress' };
|
|
210
205
|
const _listAvailableTicketsRequest = {};
|
|
211
206
|
const _listAvailableTicketsResponse = {};
|
|
207
|
+
const _listOrdersRequest = {};
|
|
208
|
+
const _listOrdersResponse = { orders: '_order' };
|
|
212
209
|
const _order = { checkoutForm: '_formResponse', tickets: '_ticketingTicket' };
|
|
213
210
|
const _queryAvailableTicketsRequest = {};
|
|
214
211
|
const _queryAvailableTicketsResponse = {};
|
|
215
212
|
const _ticketingTicket = { guestDetails: '_guestDetails' };
|
|
216
213
|
const _updateCheckoutRequest = { guests: '_guest' };
|
|
217
214
|
const _updateCheckoutResponse = { order: '_order' };
|
|
215
|
+
const _updateOrderRequest = { checkoutForm: '_formResponse' };
|
|
216
|
+
const _updateOrderResponse = { order: '_order' };
|
|
217
|
+
/**
|
|
218
|
+
* Retrieves a list of orders, including ticket data, with basic filter support.
|
|
219
|
+
* <!--
|
|
220
|
+
* > 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.
|
|
221
|
+
* -->
|
|
222
|
+
* @public
|
|
223
|
+
* @documentationMaturity preview
|
|
224
|
+
* @param options - An object representing the available options for retrieving a list of orders.
|
|
225
|
+
* @permissionScope Read Events - all read permissions
|
|
226
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
227
|
+
* @permissionScope Manage Events - all permissions
|
|
228
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
229
|
+
* @permissionScope Read Basic Events Order Info
|
|
230
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-BASIC-ORDERS
|
|
231
|
+
* @permissionScope Manage Orders
|
|
232
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
233
|
+
* @applicableIdentity APP
|
|
234
|
+
*/
|
|
235
|
+
function listOrders(options) {
|
|
236
|
+
var _a, _b, _c;
|
|
237
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
238
|
+
const requestTransformation = {
|
|
239
|
+
offset: '$[0].offset',
|
|
240
|
+
limit: '$[0].limit',
|
|
241
|
+
fieldset: '$[0].fieldset',
|
|
242
|
+
status: '$[0].status',
|
|
243
|
+
eventId: '$[0].eventId',
|
|
244
|
+
orderNumber: '$[0].orderNumber',
|
|
245
|
+
memberId: '$[0].memberId',
|
|
246
|
+
facet: '$[0].facet',
|
|
247
|
+
searchPhrase: '$[0].searchPhrase',
|
|
248
|
+
eventCreatorId: '$[0].eventCreatorId',
|
|
249
|
+
sort: '$[0].sort',
|
|
250
|
+
tag: '$[0].tag',
|
|
251
|
+
};
|
|
252
|
+
const responseTransformation = '$';
|
|
253
|
+
// @ts-ignore
|
|
254
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
255
|
+
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
256
|
+
rootSchema: _listOrdersRequest,
|
|
257
|
+
depSchemas: {},
|
|
258
|
+
fqdnTransformation: {
|
|
259
|
+
paths: [],
|
|
260
|
+
transformation: _fromVeloEntity,
|
|
261
|
+
},
|
|
262
|
+
customTransformation: requestTransformation,
|
|
263
|
+
});
|
|
264
|
+
const { fromJSON } = (0, velo_1.serializer)({
|
|
265
|
+
rootSchema: _listOrdersResponse,
|
|
266
|
+
depSchemas: {
|
|
267
|
+
_formResponse,
|
|
268
|
+
_formattedAddress,
|
|
269
|
+
_guestDetails,
|
|
270
|
+
_inputValue,
|
|
271
|
+
_order,
|
|
272
|
+
_ticketingTicket,
|
|
273
|
+
},
|
|
274
|
+
fqdnTransformation: {
|
|
275
|
+
paths: [...['Array#orders']],
|
|
276
|
+
transformation: _toVeloEntity,
|
|
277
|
+
},
|
|
278
|
+
customTransformation: responseTransformation,
|
|
279
|
+
});
|
|
280
|
+
const payload = toAmbassadorRequest([options]);
|
|
281
|
+
const reqOpts = ambassadorWixEventsV1Order.listOrders(payload);
|
|
282
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
283
|
+
try {
|
|
284
|
+
const result = yield httpClient.request(reqOpts);
|
|
285
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
286
|
+
return fromJSON(result.data);
|
|
287
|
+
}
|
|
288
|
+
catch (err) {
|
|
289
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
290
|
+
spreadPathsToArguments: {},
|
|
291
|
+
explicitPathsToArguments: {
|
|
292
|
+
offset: '$[0].offset',
|
|
293
|
+
limit: '$[0].limit',
|
|
294
|
+
fieldset: '$[0].fieldset',
|
|
295
|
+
status: '$[0].status',
|
|
296
|
+
eventId: '$[0].eventId',
|
|
297
|
+
orderNumber: '$[0].orderNumber',
|
|
298
|
+
memberId: '$[0].memberId',
|
|
299
|
+
facet: '$[0].facet',
|
|
300
|
+
searchPhrase: '$[0].searchPhrase',
|
|
301
|
+
eventCreatorId: '$[0].eventCreatorId',
|
|
302
|
+
sort: '$[0].sort',
|
|
303
|
+
tag: '$[0].tag',
|
|
304
|
+
},
|
|
305
|
+
singleArgumentUnchanged: false,
|
|
306
|
+
}, ['options']);
|
|
307
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
308
|
+
throw transformedError;
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
exports.listOrders = listOrders;
|
|
313
|
+
/**
|
|
314
|
+
* Retrieves an order, including ticket data.
|
|
315
|
+
* <!--
|
|
316
|
+
* >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.
|
|
317
|
+
* -->
|
|
318
|
+
* @public
|
|
319
|
+
* @documentationMaturity preview
|
|
320
|
+
* @requiredField identifiers
|
|
321
|
+
* @requiredField identifiers.eventId
|
|
322
|
+
* @requiredField identifiers.orderNumber
|
|
323
|
+
* @param options - An object representing the available options for getting an order.
|
|
324
|
+
* @param identifiers - An object containing identifiers for the order to be retrieved.
|
|
325
|
+
* @permissionScope Read Events - all read permissions
|
|
326
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
327
|
+
* @permissionScope Manage Events - all permissions
|
|
328
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
329
|
+
* @permissionScope Read Basic Events Order Info
|
|
330
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-BASIC-ORDERS
|
|
331
|
+
* @permissionScope Manage Orders
|
|
332
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
333
|
+
* @applicableIdentity APP
|
|
334
|
+
* @returns Requested order.
|
|
335
|
+
*/
|
|
336
|
+
function getOrder(identifiers, options) {
|
|
337
|
+
var _a, _b, _c;
|
|
338
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
339
|
+
const requestTransformation = {
|
|
340
|
+
eventId: '$[0].eventId',
|
|
341
|
+
orderNumber: '$[0].orderNumber',
|
|
342
|
+
fieldset: '$[1].fieldset',
|
|
343
|
+
};
|
|
344
|
+
const responseTransformation = '$.order';
|
|
345
|
+
// @ts-ignore
|
|
346
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
347
|
+
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
348
|
+
rootSchema: _getOrderRequest,
|
|
349
|
+
depSchemas: {},
|
|
350
|
+
fqdnTransformation: {
|
|
351
|
+
paths: [],
|
|
352
|
+
transformation: _fromVeloEntity,
|
|
353
|
+
},
|
|
354
|
+
customTransformation: requestTransformation,
|
|
355
|
+
});
|
|
356
|
+
const { fromJSON } = (0, velo_1.serializer)({
|
|
357
|
+
rootSchema: _getOrderResponse,
|
|
358
|
+
depSchemas: {
|
|
359
|
+
_formResponse,
|
|
360
|
+
_formattedAddress,
|
|
361
|
+
_guestDetails,
|
|
362
|
+
_inputValue,
|
|
363
|
+
_order,
|
|
364
|
+
_ticketingTicket,
|
|
365
|
+
},
|
|
366
|
+
fqdnTransformation: {
|
|
367
|
+
paths: [...['order']],
|
|
368
|
+
transformation: _toVeloEntity,
|
|
369
|
+
},
|
|
370
|
+
customTransformation: responseTransformation,
|
|
371
|
+
});
|
|
372
|
+
const payload = toAmbassadorRequest([identifiers, options]);
|
|
373
|
+
const reqOpts = ambassadorWixEventsV1Order.getOrder(payload);
|
|
374
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
375
|
+
try {
|
|
376
|
+
const result = yield httpClient.request(reqOpts);
|
|
377
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
378
|
+
return fromJSON(result.data);
|
|
379
|
+
}
|
|
380
|
+
catch (err) {
|
|
381
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
382
|
+
spreadPathsToArguments: {},
|
|
383
|
+
explicitPathsToArguments: {
|
|
384
|
+
eventId: '$[0].eventId',
|
|
385
|
+
orderNumber: '$[0].orderNumber',
|
|
386
|
+
fieldset: '$[1].fieldset',
|
|
387
|
+
},
|
|
388
|
+
singleArgumentUnchanged: false,
|
|
389
|
+
}, ['identifiers', 'options']);
|
|
390
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
391
|
+
throw transformedError;
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
exports.getOrder = getOrder;
|
|
396
|
+
/**
|
|
397
|
+
* Updates an order.
|
|
398
|
+
*
|
|
399
|
+
*
|
|
400
|
+
* See [Partial Updates](/wix-events-v2/partial-updates) for more information.
|
|
401
|
+
* <!--
|
|
402
|
+
* >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.
|
|
403
|
+
* -->
|
|
404
|
+
* @public
|
|
405
|
+
* @documentationMaturity preview
|
|
406
|
+
* @requiredField identifiers
|
|
407
|
+
* @requiredField identifiers.eventId
|
|
408
|
+
* @requiredField identifiers.orderNumber
|
|
409
|
+
* @param options - An object representing the available options for updating an order.
|
|
410
|
+
* @param identifiers - An object containing identifiers for the order to be updated.
|
|
411
|
+
* @permissionScope Manage Events - all permissions
|
|
412
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
413
|
+
* @permissionScope Manage Orders
|
|
414
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
415
|
+
* @applicableIdentity APP
|
|
416
|
+
*/
|
|
417
|
+
function updateOrder(identifiers, options) {
|
|
418
|
+
var _a, _b, _c;
|
|
419
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
420
|
+
const requestTransformation = {
|
|
421
|
+
eventId: '$[0].eventId',
|
|
422
|
+
orderNumber: '$[0].orderNumber',
|
|
423
|
+
checkoutForm: '$[1].checkoutForm',
|
|
424
|
+
archived: '$[1].archived',
|
|
425
|
+
};
|
|
426
|
+
const responseTransformation = '$';
|
|
427
|
+
// @ts-ignore
|
|
428
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
429
|
+
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
430
|
+
rootSchema: _updateOrderRequest,
|
|
431
|
+
depSchemas: { _formResponse, _formattedAddress, _inputValue },
|
|
432
|
+
fqdnTransformation: {
|
|
433
|
+
paths: [],
|
|
434
|
+
transformation: _fromVeloEntity,
|
|
435
|
+
},
|
|
436
|
+
customTransformation: requestTransformation,
|
|
437
|
+
});
|
|
438
|
+
const { fromJSON } = (0, velo_1.serializer)({
|
|
439
|
+
rootSchema: _updateOrderResponse,
|
|
440
|
+
depSchemas: {
|
|
441
|
+
_formResponse,
|
|
442
|
+
_formattedAddress,
|
|
443
|
+
_guestDetails,
|
|
444
|
+
_inputValue,
|
|
445
|
+
_order,
|
|
446
|
+
_ticketingTicket,
|
|
447
|
+
},
|
|
448
|
+
fqdnTransformation: {
|
|
449
|
+
paths: [...['order']],
|
|
450
|
+
transformation: _toVeloEntity,
|
|
451
|
+
},
|
|
452
|
+
customTransformation: responseTransformation,
|
|
453
|
+
});
|
|
454
|
+
const payload = toAmbassadorRequest([identifiers, options]);
|
|
455
|
+
const reqOpts = ambassadorWixEventsV1Order.updateOrder(payload);
|
|
456
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
457
|
+
try {
|
|
458
|
+
const result = yield httpClient.request(reqOpts);
|
|
459
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
460
|
+
return fromJSON(result.data);
|
|
461
|
+
}
|
|
462
|
+
catch (err) {
|
|
463
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
464
|
+
spreadPathsToArguments: {},
|
|
465
|
+
explicitPathsToArguments: {
|
|
466
|
+
eventId: '$[0].eventId',
|
|
467
|
+
orderNumber: '$[0].orderNumber',
|
|
468
|
+
checkoutForm: '$[1].checkoutForm',
|
|
469
|
+
archived: '$[1].archived',
|
|
470
|
+
},
|
|
471
|
+
singleArgumentUnchanged: false,
|
|
472
|
+
}, ['identifiers', 'options']);
|
|
473
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
474
|
+
throw transformedError;
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
exports.updateOrder = updateOrder;
|
|
479
|
+
/**
|
|
480
|
+
* Updates multiple orders' `archived` status.
|
|
481
|
+
*
|
|
482
|
+
*
|
|
483
|
+
* See [Partial Updates](/wix-events-v2/partial-updates) for more information.
|
|
484
|
+
* <!--
|
|
485
|
+
* >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.
|
|
486
|
+
* -->
|
|
487
|
+
* @param eventId - Event ID.
|
|
488
|
+
* @public
|
|
489
|
+
* @documentationMaturity preview
|
|
490
|
+
* @requiredField eventId
|
|
491
|
+
* @param options - An object representing the available options for confirming an order.
|
|
492
|
+
* @permissionScope Manage Events - all permissions
|
|
493
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
494
|
+
* @permissionScope Manage Orders
|
|
495
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
496
|
+
* @applicableIdentity APP
|
|
497
|
+
*/
|
|
498
|
+
function bulkUpdateOrders(eventId, options) {
|
|
499
|
+
var _a, _b, _c;
|
|
500
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
501
|
+
const requestTransformation = {
|
|
502
|
+
eventId: '$[0]',
|
|
503
|
+
orderNumber: '$[1].orderNumber',
|
|
504
|
+
archived: '$[1].archived',
|
|
505
|
+
};
|
|
506
|
+
const responseTransformation = '$';
|
|
507
|
+
// @ts-ignore
|
|
508
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
509
|
+
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
510
|
+
rootSchema: _bulkUpdateOrdersRequest,
|
|
511
|
+
depSchemas: {},
|
|
512
|
+
fqdnTransformation: {
|
|
513
|
+
paths: [],
|
|
514
|
+
transformation: _fromVeloEntity,
|
|
515
|
+
},
|
|
516
|
+
customTransformation: requestTransformation,
|
|
517
|
+
});
|
|
518
|
+
const { fromJSON } = (0, velo_1.serializer)({
|
|
519
|
+
rootSchema: _bulkUpdateOrdersResponse,
|
|
520
|
+
depSchemas: {
|
|
521
|
+
_formResponse,
|
|
522
|
+
_formattedAddress,
|
|
523
|
+
_guestDetails,
|
|
524
|
+
_inputValue,
|
|
525
|
+
_order,
|
|
526
|
+
_ticketingTicket,
|
|
527
|
+
},
|
|
528
|
+
fqdnTransformation: {
|
|
529
|
+
paths: [...['Array#orders']],
|
|
530
|
+
transformation: _toVeloEntity,
|
|
531
|
+
},
|
|
532
|
+
customTransformation: responseTransformation,
|
|
533
|
+
});
|
|
534
|
+
const payload = toAmbassadorRequest([eventId, options]);
|
|
535
|
+
const reqOpts = ambassadorWixEventsV1Order.bulkUpdateOrders(payload);
|
|
536
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
537
|
+
try {
|
|
538
|
+
const result = yield httpClient.request(reqOpts);
|
|
539
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
540
|
+
return fromJSON(result.data);
|
|
541
|
+
}
|
|
542
|
+
catch (err) {
|
|
543
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
544
|
+
spreadPathsToArguments: {},
|
|
545
|
+
explicitPathsToArguments: {
|
|
546
|
+
eventId: '$[0]',
|
|
547
|
+
orderNumber: '$[1].orderNumber',
|
|
548
|
+
archived: '$[1].archived',
|
|
549
|
+
},
|
|
550
|
+
singleArgumentUnchanged: false,
|
|
551
|
+
}, ['eventId', 'options']);
|
|
552
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
553
|
+
throw transformedError;
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
exports.bulkUpdateOrders = bulkUpdateOrders;
|
|
558
|
+
/**
|
|
559
|
+
* 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).
|
|
560
|
+
* <!--
|
|
561
|
+
* > 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.
|
|
562
|
+
* -->
|
|
563
|
+
* @param eventId - Event ID.
|
|
564
|
+
* @public
|
|
565
|
+
* @documentationMaturity preview
|
|
566
|
+
* @requiredField eventId
|
|
567
|
+
* @param options - An object representing the available options for confirming an order.
|
|
568
|
+
* @permissionScope Manage Events - all permissions
|
|
569
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
570
|
+
* @permissionScope Manage Orders
|
|
571
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
572
|
+
* @applicableIdentity APP
|
|
573
|
+
*/
|
|
574
|
+
function confirmOrder(eventId, options) {
|
|
575
|
+
var _a, _b, _c;
|
|
576
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
577
|
+
const requestTransformation = {
|
|
578
|
+
eventId: '$[0]',
|
|
579
|
+
orderNumber: '$[1].orderNumber',
|
|
580
|
+
};
|
|
581
|
+
const responseTransformation = '$';
|
|
582
|
+
// @ts-ignore
|
|
583
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
584
|
+
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
585
|
+
rootSchema: _confirmOrderRequest,
|
|
586
|
+
depSchemas: {},
|
|
587
|
+
fqdnTransformation: {
|
|
588
|
+
paths: [],
|
|
589
|
+
transformation: _fromVeloEntity,
|
|
590
|
+
},
|
|
591
|
+
customTransformation: requestTransformation,
|
|
592
|
+
});
|
|
593
|
+
const { fromJSON } = (0, velo_1.serializer)({
|
|
594
|
+
rootSchema: _confirmOrderResponse,
|
|
595
|
+
depSchemas: {
|
|
596
|
+
_formResponse,
|
|
597
|
+
_formattedAddress,
|
|
598
|
+
_guestDetails,
|
|
599
|
+
_inputValue,
|
|
600
|
+
_order,
|
|
601
|
+
_ticketingTicket,
|
|
602
|
+
},
|
|
603
|
+
fqdnTransformation: {
|
|
604
|
+
paths: [...['Array#orders']],
|
|
605
|
+
transformation: _toVeloEntity,
|
|
606
|
+
},
|
|
607
|
+
customTransformation: responseTransformation,
|
|
608
|
+
});
|
|
609
|
+
const payload = toAmbassadorRequest([eventId, options]);
|
|
610
|
+
const reqOpts = ambassadorWixEventsV1Order.confirmOrder(payload);
|
|
611
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
612
|
+
try {
|
|
613
|
+
const result = yield httpClient.request(reqOpts);
|
|
614
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
615
|
+
return fromJSON(result.data);
|
|
616
|
+
}
|
|
617
|
+
catch (err) {
|
|
618
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
619
|
+
spreadPathsToArguments: {},
|
|
620
|
+
explicitPathsToArguments: {
|
|
621
|
+
eventId: '$[0]',
|
|
622
|
+
orderNumber: '$[1].orderNumber',
|
|
623
|
+
},
|
|
624
|
+
singleArgumentUnchanged: false,
|
|
625
|
+
}, ['eventId', 'options']);
|
|
626
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
627
|
+
throw transformedError;
|
|
628
|
+
}
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
exports.confirmOrder = confirmOrder;
|
|
632
|
+
/**
|
|
633
|
+
* Retrieves a summary of total ticket sales.
|
|
634
|
+
* <!--
|
|
635
|
+
* > 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.
|
|
636
|
+
* -->
|
|
637
|
+
* @public
|
|
638
|
+
* @documentationMaturity preview
|
|
639
|
+
* @param options - An object representing the available options for retrieving a summary of total ticket sales.
|
|
640
|
+
* @permissionScope Read Events - all read permissions
|
|
641
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
642
|
+
* @permissionScope Manage Events - all permissions
|
|
643
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
644
|
+
* @permissionScope Read Basic Events Order Info
|
|
645
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-BASIC-ORDERS
|
|
646
|
+
* @permissionScope Manage Orders
|
|
647
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
648
|
+
* @applicableIdentity APP
|
|
649
|
+
*/
|
|
650
|
+
function getSummary(options) {
|
|
651
|
+
var _a, _b, _c;
|
|
652
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
653
|
+
const requestTransformation = { eventId: '$[0].eventId' };
|
|
654
|
+
const responseTransformation = '$';
|
|
655
|
+
// @ts-ignore
|
|
656
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
657
|
+
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
658
|
+
rootSchema: _getSummaryRequest,
|
|
659
|
+
depSchemas: {},
|
|
660
|
+
fqdnTransformation: {
|
|
661
|
+
paths: [],
|
|
662
|
+
transformation: _fromVeloEntity,
|
|
663
|
+
},
|
|
664
|
+
customTransformation: requestTransformation,
|
|
665
|
+
});
|
|
666
|
+
const { fromJSON } = (0, velo_1.serializer)({
|
|
667
|
+
rootSchema: _getSummaryResponse,
|
|
668
|
+
depSchemas: {},
|
|
669
|
+
fqdnTransformation: {
|
|
670
|
+
paths: [],
|
|
671
|
+
transformation: _toVeloEntity,
|
|
672
|
+
},
|
|
673
|
+
customTransformation: responseTransformation,
|
|
674
|
+
});
|
|
675
|
+
const payload = toAmbassadorRequest([options]);
|
|
676
|
+
const reqOpts = ambassadorWixEventsV1Order.getSummary(payload);
|
|
677
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
678
|
+
try {
|
|
679
|
+
const result = yield httpClient.request(reqOpts);
|
|
680
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
681
|
+
return fromJSON(result.data);
|
|
682
|
+
}
|
|
683
|
+
catch (err) {
|
|
684
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
685
|
+
spreadPathsToArguments: {},
|
|
686
|
+
explicitPathsToArguments: { eventId: '$[0].eventId' },
|
|
687
|
+
singleArgumentUnchanged: false,
|
|
688
|
+
}, ['options']);
|
|
689
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
690
|
+
throw transformedError;
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
exports.getSummary = getSummary;
|
|
218
695
|
/**
|
|
219
696
|
* Returns checkout meta data used in checkout UX.
|
|
220
697
|
* <!--
|
|
@@ -223,7 +700,9 @@ const _updateCheckoutResponse = { order: '_order' };
|
|
|
223
700
|
* @public
|
|
224
701
|
* @documentationMaturity preview
|
|
225
702
|
* @permissionScope Manage Events - all permissions
|
|
703
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
226
704
|
* @permissionScope Manage Orders
|
|
705
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
227
706
|
* @applicableIdentity APP
|
|
228
707
|
* @applicableIdentity MEMBER
|
|
229
708
|
* @applicableIdentity VISITOR
|
|
@@ -255,7 +734,6 @@ function getCheckoutOptions() {
|
|
|
255
734
|
});
|
|
256
735
|
const payload = toAmbassadorRequest([]);
|
|
257
736
|
const reqOpts = ambassadorWixEventsV1Order.getCheckoutOptions(payload);
|
|
258
|
-
__log(`"GetCheckoutOptions" sending request with: ${__inspect(reqOpts)}`);
|
|
259
737
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
260
738
|
try {
|
|
261
739
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -283,7 +761,9 @@ exports.getCheckoutOptions = getCheckoutOptions;
|
|
|
283
761
|
* @documentationMaturity preview
|
|
284
762
|
* @param options - An object representing the available options for retrieving a list of tickets available for reservation.
|
|
285
763
|
* @permissionScope Manage Events - all permissions
|
|
764
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
286
765
|
* @permissionScope Manage Orders
|
|
766
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
287
767
|
* @applicableIdentity APP
|
|
288
768
|
* @applicableIdentity MEMBER
|
|
289
769
|
* @applicableIdentity VISITOR
|
|
@@ -321,7 +801,6 @@ function listAvailableTickets(options) {
|
|
|
321
801
|
});
|
|
322
802
|
const payload = toAmbassadorRequest([options]);
|
|
323
803
|
const reqOpts = ambassadorWixEventsV1Order.listAvailableTickets(payload);
|
|
324
|
-
__log(`"ListAvailableTickets" sending request with: ${__inspect(reqOpts)}`);
|
|
325
804
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
326
805
|
try {
|
|
327
806
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -355,7 +834,9 @@ exports.listAvailableTickets = listAvailableTickets;
|
|
|
355
834
|
* @documentationMaturity preview
|
|
356
835
|
* @param options - An object representing the available options for retrieving a list of tickets available for reservation.
|
|
357
836
|
* @permissionScope Manage Events - all permissions
|
|
837
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
358
838
|
* @permissionScope Manage Orders
|
|
839
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
359
840
|
* @applicableIdentity APP
|
|
360
841
|
* @applicableIdentity MEMBER
|
|
361
842
|
* @applicableIdentity VISITOR
|
|
@@ -393,7 +874,6 @@ function queryAvailableTickets(options) {
|
|
|
393
874
|
});
|
|
394
875
|
const payload = toAmbassadorRequest([options]);
|
|
395
876
|
const reqOpts = ambassadorWixEventsV1Order.queryAvailableTickets(payload);
|
|
396
|
-
__log(`"QueryAvailableTickets" sending request with: ${__inspect(reqOpts)}`);
|
|
397
877
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
398
878
|
try {
|
|
399
879
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -431,7 +911,9 @@ exports.queryAvailableTickets = queryAvailableTickets;
|
|
|
431
911
|
* @requiredField eventId
|
|
432
912
|
* @param options - An object representing the available options for creating a reservation.
|
|
433
913
|
* @permissionScope Manage Events - all permissions
|
|
914
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
434
915
|
* @permissionScope Manage Orders
|
|
916
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
435
917
|
* @applicableIdentity APP
|
|
436
918
|
* @applicableIdentity MEMBER
|
|
437
919
|
* @applicableIdentity VISITOR
|
|
@@ -468,7 +950,6 @@ function createReservation(eventId, options) {
|
|
|
468
950
|
});
|
|
469
951
|
const payload = toAmbassadorRequest([eventId, options]);
|
|
470
952
|
const reqOpts = ambassadorWixEventsV1Order.createReservation(payload);
|
|
471
|
-
__log(`"CreateReservation" sending request with: ${__inspect(reqOpts)}`);
|
|
472
953
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
473
954
|
try {
|
|
474
955
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -505,7 +986,9 @@ exports.createReservation = createReservation;
|
|
|
505
986
|
* @requiredField eventId
|
|
506
987
|
* @param identifiers - An object containing identifiers for the reservation to be cancelled.
|
|
507
988
|
* @permissionScope Manage Events - all permissions
|
|
989
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
508
990
|
* @permissionScope Manage Orders
|
|
991
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
509
992
|
* @applicableIdentity APP
|
|
510
993
|
* @applicableIdentity MEMBER
|
|
511
994
|
* @applicableIdentity VISITOR
|
|
@@ -537,7 +1020,6 @@ function cancelReservation(_id, eventId) {
|
|
|
537
1020
|
});
|
|
538
1021
|
const payload = toAmbassadorRequest([_id, eventId]);
|
|
539
1022
|
const reqOpts = ambassadorWixEventsV1Order.cancelReservation(payload);
|
|
540
|
-
__log(`"CancelReservation" sending request with: ${__inspect(reqOpts)}`);
|
|
541
1023
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
542
1024
|
try {
|
|
543
1025
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -569,9 +1051,13 @@ exports.cancelReservation = cancelReservation;
|
|
|
569
1051
|
* @param options - An object representing the available options for generating a preview of a reservation invoice.
|
|
570
1052
|
* @param identifiers - An object containing identifiers for the reservation invoice preview to be generated.
|
|
571
1053
|
* @permissionScope Read Events - all read permissions
|
|
1054
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
572
1055
|
* @permissionScope Manage Events - all permissions
|
|
1056
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
573
1057
|
* @permissionScope Read Basic Events Order Info
|
|
1058
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-BASIC-ORDERS
|
|
574
1059
|
* @permissionScope Manage Orders
|
|
1060
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
575
1061
|
* @applicableIdentity APP
|
|
576
1062
|
* @applicableIdentity MEMBER
|
|
577
1063
|
* @applicableIdentity VISITOR
|
|
@@ -608,7 +1094,6 @@ function getInvoice(reservationId, eventId, options) {
|
|
|
608
1094
|
});
|
|
609
1095
|
const payload = toAmbassadorRequest([reservationId, eventId, options]);
|
|
610
1096
|
const reqOpts = ambassadorWixEventsV1Order.getInvoice(payload);
|
|
611
|
-
__log(`"GetInvoice" sending request with: ${__inspect(reqOpts)}`);
|
|
612
1097
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
613
1098
|
try {
|
|
614
1099
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -656,7 +1141,9 @@ exports.getInvoice = getInvoice;
|
|
|
656
1141
|
* @requiredField options.guests.form
|
|
657
1142
|
* @param options - An object representing the available options for checking out a reserved ticket.
|
|
658
1143
|
* @permissionScope Manage Events - all permissions
|
|
1144
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
659
1145
|
* @permissionScope Manage Orders
|
|
1146
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
660
1147
|
* @applicableIdentity APP
|
|
661
1148
|
* @applicableIdentity MEMBER
|
|
662
1149
|
* @applicableIdentity VISITOR
|
|
@@ -704,7 +1191,6 @@ function checkout(eventId, options) {
|
|
|
704
1191
|
});
|
|
705
1192
|
const payload = toAmbassadorRequest([eventId, options]);
|
|
706
1193
|
const reqOpts = ambassadorWixEventsV1Order.checkout(payload);
|
|
707
|
-
__log(`"Checkout" sending request with: ${__inspect(reqOpts)}`);
|
|
708
1194
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
709
1195
|
try {
|
|
710
1196
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -747,7 +1233,9 @@ exports.checkout = checkout;
|
|
|
747
1233
|
* @param options - An object representing the available options for updating an order and tickets.
|
|
748
1234
|
* @param identifiers - An object containing identifiers for the order and tickets to be updated.
|
|
749
1235
|
* @permissionScope Manage Events - all permissions
|
|
1236
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
750
1237
|
* @permissionScope Manage Orders
|
|
1238
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
|
|
751
1239
|
* @applicableIdentity APP
|
|
752
1240
|
* @applicableIdentity MEMBER
|
|
753
1241
|
* @applicableIdentity VISITOR
|
|
@@ -794,7 +1282,6 @@ function updateCheckout(orderNumber, eventId, options) {
|
|
|
794
1282
|
});
|
|
795
1283
|
const payload = toAmbassadorRequest([orderNumber, eventId, options]);
|
|
796
1284
|
const reqOpts = ambassadorWixEventsV1Order.updateCheckout(payload);
|
|
797
|
-
__log(`"UpdateCheckout" sending request with: ${__inspect(reqOpts)}`);
|
|
798
1285
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
799
1286
|
try {
|
|
800
1287
|
const result = yield httpClient.request(reqOpts);
|
|
@@ -821,4 +1308,4 @@ function updateCheckout(orderNumber, eventId, options) {
|
|
|
821
1308
|
});
|
|
822
1309
|
}
|
|
823
1310
|
exports.updateCheckout = updateCheckout;
|
|
824
|
-
//# sourceMappingURL=events-v1-order
|
|
1311
|
+
//# sourceMappingURL=events-v1-order.universal.js.map
|