@wix/auto_sdk_events_guests 1.0.20 → 1.0.22
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/{internal → cjs}/index.d.ts +2 -2
- package/build/{internal → cjs}/index.js.map +1 -1
- package/build/{events-guests-v1-guest-guests.universal-CBYtnjLy.d.mts → cjs/index.typings.d.ts} +159 -1
- package/build/cjs/index.typings.js +383 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/{internal → cjs}/meta.d.ts +1 -1
- package/build/{internal → es}/index.d.mts +2 -2
- package/build/{internal → es}/index.mjs.map +1 -1
- package/build/{events-guests-v1-guest-guests.universal-CBYtnjLy.d.ts → es/index.typings.d.mts} +159 -1
- package/build/es/index.typings.mjs +339 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/{internal → es}/meta.d.mts +1 -1
- package/build/es/package.json +3 -0
- package/build/{index.d.ts → internal/cjs/index.d.ts} +2 -2
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/{events-guests-v1-guest-guests.universal-CBYtnjLy.d.ts → cjs/index.typings.d.ts} +159 -1
- package/build/internal/cjs/index.typings.js +383 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/{meta.d.ts → internal/cjs/meta.d.ts} +1 -1
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/{index.d.mts → internal/es/index.d.mts} +2 -2
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/{events-guests-v1-guest-guests.universal-CBYtnjLy.d.mts → es/index.typings.d.mts} +159 -1
- package/build/internal/es/index.typings.mjs +339 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/{meta.d.mts → internal/es/meta.d.mts} +1 -1
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +11 -11
- package/build/index.js.map +0 -1
- package/build/index.mjs.map +0 -1
- package/build/meta.js.map +0 -1
- package/build/meta.mjs.map +0 -1
- /package/build/{index.js → cjs/index.js} +0 -0
- /package/build/{internal → cjs}/meta.js +0 -0
- /package/build/{internal → cjs}/meta.js.map +0 -0
- /package/build/{index.mjs → es/index.mjs} +0 -0
- /package/build/{internal → es}/meta.mjs +0 -0
- /package/build/{internal → es}/meta.mjs.map +0 -0
- /package/build/internal/{index.js → cjs/index.js} +0 -0
- /package/build/{meta.js → internal/cjs/meta.js} +0 -0
- /package/build/internal/{index.mjs → es/index.mjs} +0 -0
- /package/build/{meta.mjs → internal/es/meta.mjs} +0 -0
package/build/{events-guests-v1-guest-guests.universal-CBYtnjLy.d.ts → es/index.typings.d.mts}
RENAMED
|
@@ -247,6 +247,8 @@ declare enum SubdivisionType {
|
|
|
247
247
|
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
248
248
|
COUNTRY = "COUNTRY"
|
|
249
249
|
}
|
|
250
|
+
/** @enumType */
|
|
251
|
+
type SubdivisionTypeWithLiterals = SubdivisionType | 'UNKNOWN_SUBDIVISION_TYPE' | 'ADMINISTRATIVE_AREA_LEVEL_1' | 'ADMINISTRATIVE_AREA_LEVEL_2' | 'ADMINISTRATIVE_AREA_LEVEL_3' | 'ADMINISTRATIVE_AREA_LEVEL_4' | 'ADMINISTRATIVE_AREA_LEVEL_5' | 'COUNTRY';
|
|
250
252
|
/** Subdivision Concordance values */
|
|
251
253
|
interface StandardDetails {
|
|
252
254
|
/**
|
|
@@ -527,6 +529,8 @@ declare enum SubdivisionSubdivisionType {
|
|
|
527
529
|
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
528
530
|
COUNTRY = "COUNTRY"
|
|
529
531
|
}
|
|
532
|
+
/** @enumType */
|
|
533
|
+
type SubdivisionSubdivisionTypeWithLiterals = SubdivisionSubdivisionType | 'UNKNOWN_SUBDIVISION_TYPE' | 'ADMINISTRATIVE_AREA_LEVEL_1' | 'ADMINISTRATIVE_AREA_LEVEL_2' | 'ADMINISTRATIVE_AREA_LEVEL_3' | 'ADMINISTRATIVE_AREA_LEVEL_4' | 'ADMINISTRATIVE_AREA_LEVEL_5' | 'COUNTRY';
|
|
530
534
|
interface DateAndTimeSettings {
|
|
531
535
|
/** Whether the event date and time are TBD. */
|
|
532
536
|
dateAndTimeTbd?: boolean | null;
|
|
@@ -1614,30 +1618,184 @@ interface GuestCreatedEnvelope {
|
|
|
1614
1618
|
entity: EventGuest;
|
|
1615
1619
|
metadata: EventMetadata;
|
|
1616
1620
|
}
|
|
1621
|
+
/**
|
|
1622
|
+
* Triggered when a guest is created.
|
|
1623
|
+
* @permissionScope Read Events - all read permissions
|
|
1624
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
1625
|
+
* @permissionScope Manage Events - all permissions
|
|
1626
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
1627
|
+
* @permissionScope Manage Events
|
|
1628
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1629
|
+
* @permissionScope Manage Guest List
|
|
1630
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST
|
|
1631
|
+
* @permissionScope Read Event Tickets and Guest List
|
|
1632
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-GUEST-LIST
|
|
1633
|
+
* @permissionId WIX_EVENTS.READ_GUESTS_DETAILS
|
|
1634
|
+
* @webhook
|
|
1635
|
+
* @eventType wix.events.guests.v1.guest_created
|
|
1636
|
+
* @slug created
|
|
1637
|
+
*/
|
|
1638
|
+
declare function onGuestCreated(handler: (event: GuestCreatedEnvelope) => void | Promise<void>): void;
|
|
1617
1639
|
interface GuestDeletedEnvelope {
|
|
1618
1640
|
entity: EventGuest;
|
|
1619
1641
|
metadata: EventMetadata;
|
|
1620
1642
|
}
|
|
1643
|
+
/**
|
|
1644
|
+
* Triggered when a guest is deleted.
|
|
1645
|
+
* @permissionScope Read Events - all read permissions
|
|
1646
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
1647
|
+
* @permissionScope Manage Events - all permissions
|
|
1648
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
1649
|
+
* @permissionScope Manage Events
|
|
1650
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1651
|
+
* @permissionScope Manage Guest List
|
|
1652
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST
|
|
1653
|
+
* @permissionScope Read Event Tickets and Guest List
|
|
1654
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-GUEST-LIST
|
|
1655
|
+
* @permissionId WIX_EVENTS.READ_GUESTS_DETAILS
|
|
1656
|
+
* @webhook
|
|
1657
|
+
* @eventType wix.events.guests.v1.guest_deleted
|
|
1658
|
+
* @slug deleted
|
|
1659
|
+
*/
|
|
1660
|
+
declare function onGuestDeleted(handler: (event: GuestDeletedEnvelope) => void | Promise<void>): void;
|
|
1621
1661
|
interface GuestCheckedInEnvelope {
|
|
1622
1662
|
data: GuestCheckedIn;
|
|
1623
1663
|
metadata: EventMetadata;
|
|
1624
1664
|
}
|
|
1665
|
+
/**
|
|
1666
|
+
* Triggered when a guest has checked in.
|
|
1667
|
+
* @permissionScope Read Events - all read permissions
|
|
1668
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
1669
|
+
* @permissionScope Manage Events - all permissions
|
|
1670
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
1671
|
+
* @permissionScope Manage Events
|
|
1672
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1673
|
+
* @permissionScope Manage Guest List
|
|
1674
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST
|
|
1675
|
+
* @permissionScope Read Event Tickets and Guest List
|
|
1676
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-GUEST-LIST
|
|
1677
|
+
* @permissionId WIX_EVENTS.READ_GUESTS_DETAILS
|
|
1678
|
+
* @webhook
|
|
1679
|
+
* @eventType wix.events.guests.v1.guest_guest_checked_in
|
|
1680
|
+
* @slug guest_checked_in
|
|
1681
|
+
*/
|
|
1682
|
+
declare function onGuestCheckedIn(handler: (event: GuestCheckedInEnvelope) => void | Promise<void>): void;
|
|
1625
1683
|
interface GuestEventCanceledEnvelope {
|
|
1626
1684
|
data: GuestEventCanceled;
|
|
1627
1685
|
metadata: EventMetadata;
|
|
1628
1686
|
}
|
|
1687
|
+
/**
|
|
1688
|
+
* Triggered when an event is canceled.
|
|
1689
|
+
* @permissionScope Read Events - all read permissions
|
|
1690
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
1691
|
+
* @permissionScope Manage Events - all permissions
|
|
1692
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
1693
|
+
* @permissionScope Manage Events
|
|
1694
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1695
|
+
* @permissionScope Manage Guest List
|
|
1696
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST
|
|
1697
|
+
* @permissionScope Read Event Tickets and Guest List
|
|
1698
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-GUEST-LIST
|
|
1699
|
+
* @permissionId WIX_EVENTS.READ_GUESTS_DETAILS
|
|
1700
|
+
* @webhook
|
|
1701
|
+
* @eventType wix.events.guests.v1.guest_guest_event_canceled
|
|
1702
|
+
* @slug guest_event_canceled
|
|
1703
|
+
*/
|
|
1704
|
+
declare function onGuestEventCanceled(handler: (event: GuestEventCanceledEnvelope) => void | Promise<void>): void;
|
|
1629
1705
|
interface GuestEventStartsEnvelope {
|
|
1630
1706
|
data: GuestEventStarts;
|
|
1631
1707
|
metadata: EventMetadata;
|
|
1632
1708
|
}
|
|
1709
|
+
/**
|
|
1710
|
+
* Triggered when an event has started.
|
|
1711
|
+
* @permissionScope Read Events - all read permissions
|
|
1712
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
1713
|
+
* @permissionScope Manage Events - all permissions
|
|
1714
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
1715
|
+
* @permissionScope Manage Events
|
|
1716
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1717
|
+
* @permissionScope Manage Guest List
|
|
1718
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST
|
|
1719
|
+
* @permissionScope Read Event Tickets and Guest List
|
|
1720
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-GUEST-LIST
|
|
1721
|
+
* @permissionId WIX_EVENTS.READ_GUESTS_DETAILS
|
|
1722
|
+
* @webhook
|
|
1723
|
+
* @eventType wix.events.guests.v1.guest_guest_event_starts
|
|
1724
|
+
* @slug guest_event_starts
|
|
1725
|
+
*/
|
|
1726
|
+
declare function onGuestEventStarts(handler: (event: GuestEventStartsEnvelope) => void | Promise<void>): void;
|
|
1633
1727
|
interface GuestOrderCanceledEnvelope {
|
|
1634
1728
|
data: GuestOrderCanceled;
|
|
1635
1729
|
metadata: EventMetadata;
|
|
1636
1730
|
}
|
|
1731
|
+
/**
|
|
1732
|
+
* Triggered when a ticket order is canceled.
|
|
1733
|
+
* @permissionScope Read Events - all read permissions
|
|
1734
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
1735
|
+
* @permissionScope Manage Events - all permissions
|
|
1736
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
1737
|
+
* @permissionScope Manage Events
|
|
1738
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1739
|
+
* @permissionScope Manage Guest List
|
|
1740
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST
|
|
1741
|
+
* @permissionScope Read Event Tickets and Guest List
|
|
1742
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-GUEST-LIST
|
|
1743
|
+
* @permissionId WIX_EVENTS.READ_GUESTS_DETAILS
|
|
1744
|
+
* @webhook
|
|
1745
|
+
* @eventType wix.events.guests.v1.guest_guest_order_canceled
|
|
1746
|
+
* @slug guest_order_canceled
|
|
1747
|
+
*/
|
|
1748
|
+
declare function onGuestOrderCanceled(handler: (event: GuestOrderCanceledEnvelope) => void | Promise<void>): void;
|
|
1637
1749
|
interface GuestUpdatedEnvelope {
|
|
1638
1750
|
entity: EventGuest;
|
|
1639
1751
|
metadata: EventMetadata;
|
|
1640
1752
|
}
|
|
1753
|
+
/**
|
|
1754
|
+
* Triggered when a guest is updated.
|
|
1755
|
+
*
|
|
1756
|
+
* This event always triggers together with the Guest Created and the Guest Deleted events.
|
|
1757
|
+
* > **Note:** Since this event may trigger twice, you should explicitly add code to ensure that the parts of your code that depend on this event run only once.
|
|
1758
|
+
* @permissionScope Read Events - all read permissions
|
|
1759
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
1760
|
+
* @permissionScope Manage Events - all permissions
|
|
1761
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
1762
|
+
* @permissionScope Manage Events
|
|
1763
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1764
|
+
* @permissionScope Manage Guest List
|
|
1765
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST
|
|
1766
|
+
* @permissionScope Read Event Tickets and Guest List
|
|
1767
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-GUEST-LIST
|
|
1768
|
+
* @permissionId WIX_EVENTS.READ_GUESTS_DETAILS
|
|
1769
|
+
* @webhook
|
|
1770
|
+
* @eventType wix.events.guests.v1.guest_updated
|
|
1771
|
+
* @slug updated
|
|
1772
|
+
*/
|
|
1773
|
+
declare function onGuestUpdated(handler: (event: GuestUpdatedEnvelope) => void | Promise<void>): void;
|
|
1774
|
+
/**
|
|
1775
|
+
* Creates a query to retrieve a list of guests.
|
|
1776
|
+
*
|
|
1777
|
+
*
|
|
1778
|
+
* The `queryGuests()` method builds a query to retrieve a list of guests and returns a [GuestsQueryBuilder](https://dev.wix.com/docs/sdk/backend-modules/events/guests/guests-query-builder/ascending) object.
|
|
1779
|
+
*
|
|
1780
|
+
* The returned object contains the query definition which is typically used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/events/guests/guests-query-builder/find) method.
|
|
1781
|
+
*
|
|
1782
|
+
* You can refine the query by chaining `GuestsQueryBuilder` methods onto the query. `GuestsQueryBuilder` methods enable you to sort, filter, and control the results that `queryGuests.find()` returns.
|
|
1783
|
+
*
|
|
1784
|
+
* The query runs with the following `GuestsQueryBuilder` defaults that you can override:
|
|
1785
|
+
*
|
|
1786
|
+
* - [`skipTo(0)`](https://dev.wix.com/docs/sdk/backend-modules/events/guests/guests-query-builder/skip-to)
|
|
1787
|
+
* - [`limit(50)`](https://dev.wix.com/docs/sdk/backend-modules/events/guests/guests-query-builder/limit)
|
|
1788
|
+
* - [`descending("_createdDate")`](https://dev.wix.com/docs/sdk/backend-modules/events/guests/guests-query-builder/descending)
|
|
1789
|
+
*
|
|
1790
|
+
* The methods that are chained to `queryGuests()` are applied in the order they are called. For example, if you apply `ascending ('_createdDate')` and then `descending ('_updatedDate')`, the results are sorted first by the created date and then, if there are multiple results with the same date, the items are sorted by the updated date.
|
|
1791
|
+
*
|
|
1792
|
+
* The table below shows which `GuestsQueryBuilder` methods are supported for `queryGuests()`. You can only use one filter method for each property. Only the first filter will work if a property is used in more than one filter.
|
|
1793
|
+
* @public
|
|
1794
|
+
* @permissionId WIX_EVENTS.READ_GUESTS
|
|
1795
|
+
* @applicableIdentity APP
|
|
1796
|
+
* @fqn wix.events.guests.v1.EventGuestsService.QueryEventGuests
|
|
1797
|
+
*/
|
|
1798
|
+
declare function queryGuests(options?: QueryEventGuestsOptions): GuestsQueryBuilder;
|
|
1641
1799
|
interface QueryEventGuestsOptions {
|
|
1642
1800
|
/**
|
|
1643
1801
|
* Predefined sets of fields to return.
|
|
@@ -1696,4 +1854,4 @@ interface GuestsQueryBuilder {
|
|
|
1696
1854
|
find: () => Promise<GuestsQueryResult>;
|
|
1697
1855
|
}
|
|
1698
1856
|
|
|
1699
|
-
export { type
|
|
1857
|
+
export { type ActionEvent, type Address, type AddressLocation, type AddressStreetOneOf, AttendanceStatus, type AttendanceStatusWithLiterals, type BaseEventMetadata, type CheckIn, type CommonAddress, type CommonAddressLocation, type CommonAddressStreetOneOf, type CommonStreetAddress, type CommonSubdivision, type ContactEventStatusUpdated, type CouponDiscount, type CursorPaging, type Cursors, type DateAndTimeSettings, type Discount, type DiscountItem, type DiscountItemDiscountOneOf, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventDeleted, type EventDetails, type EventGuest, type EventMetadata, EventType, type EventTypeWithLiterals, type Fee, FeeName, type FeeNameWithLiterals, FeeType, type FeeTypeWithLiterals, type FormResponse, type Formatted, type FormattedAddress, type GuestCheckedIn, type GuestCheckedInEnvelope, type GuestCount, type GuestCountUpdate, type GuestCountUpdated, type GuestCreatedEnvelope, type GuestDeletedEnvelope, type GuestDetails, type GuestEventCanceled, type GuestEventCanceledEnvelope, type GuestEventStarts, type GuestEventStartsEnvelope, type GuestListPreview, type GuestOrderCanceled, type GuestOrderCanceledEnvelope, GuestType, type GuestTypeWithLiterals, type GuestUpdatedEnvelope, type GuestsQueryBuilder, type GuestsQueryResult, type IdentificationData, type IdentificationDataIdOneOf, type InputValue, type Invoice, type Item, type Language, type ListGuestListPreviewsRequest, type ListGuestListPreviewsResponse, type Location, LocationType, type LocationTypeWithLiterals, type MemberEventStatusUpdated, MemberEventStatusUpdatedEventType, type MemberEventStatusUpdatedEventTypeWithLiterals, type MemberGuest, type MemberGuests, type MessageEnvelope, type Money, NotifyActionType, type NotifyActionTypeWithLiterals, type NotifyGuestAction, type Occurrence, type OnlineConferencingLogin, type OrderConfirmed, type OrderDeleted, type OrderDetails, OrderStatus, type OrderStatusWithLiterals, OrderType, type OrderTypeWithLiterals, type OrderUpdated, type Paging, type PagingMetadataV2, type PaidPlanDiscount, type PaidPlanDiscountDiscountOneOf, type PercentDiscount, type QueryEventGuestsOptions, type QueryEventGuestsRequest, type QueryEventGuestsResponse, type QueryV2, type QueryV2PagingMethodOneOf, RecurrenceStatusStatus, type RecurrenceStatusStatusWithLiterals, type Recurrences, RequestedFields, RequestedFieldsEnumRequestedFields, type RequestedFieldsEnumRequestedFieldsWithLiterals, type RequestedFieldsWithLiterals, type RestoreInfo, type SecondaryLanguagesRequest, type SecondaryLanguagesResponse, SortOrder, type SortOrderWithLiterals, type Sorting, type StandardDetails, Status, type StatusWithLiterals, type StreamEventGuestsRequest, type StreetAddress, type Subdivision, SubdivisionSubdivisionType, type SubdivisionSubdivisionTypeWithLiterals, SubdivisionType, type SubdivisionTypeWithLiterals, type Task, type TaskContext, type TaskKey, type Tax, TaxType, type TaxTypeWithLiterals, type Ticket, type TicketDetails, type TicketGuestDetails, Timing, type TimingWithLiterals, type UpdateGuestRequest, type UpdateGuestResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, onGuestCheckedIn, onGuestCreated, onGuestDeleted, onGuestEventCanceled, onGuestEventStarts, onGuestOrderCanceled, onGuestUpdated, queryGuests };
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
// src/events-guests-v1-guest-guests.universal.ts
|
|
2
|
+
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
3
|
+
import { queryBuilder } from "@wix/sdk-runtime/query-builder";
|
|
4
|
+
import {
|
|
5
|
+
renameKeysFromSDKRequestToRESTRequest,
|
|
6
|
+
renameKeysFromRESTResponseToSDKResponse
|
|
7
|
+
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
8
|
+
|
|
9
|
+
// src/events-guests-v1-guest-guests.http.ts
|
|
10
|
+
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
11
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
12
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
13
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
14
|
+
function resolveWixEventsGuestsV1EventGuestsServiceUrl(opts) {
|
|
15
|
+
const domainToMappings = {
|
|
16
|
+
"api._api_base_domain_": [
|
|
17
|
+
{
|
|
18
|
+
srcPath: "/events-guests",
|
|
19
|
+
destPath: ""
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
_: [
|
|
23
|
+
{
|
|
24
|
+
srcPath: "/_api/events-guests",
|
|
25
|
+
destPath: ""
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"manage._base_domain_": [
|
|
29
|
+
{
|
|
30
|
+
srcPath: "/_api/events-guests",
|
|
31
|
+
destPath: ""
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"www._base_domain_": [
|
|
35
|
+
{
|
|
36
|
+
srcPath: "/_api/events-guests",
|
|
37
|
+
destPath: ""
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"*.dev.wix-code.com": [
|
|
41
|
+
{
|
|
42
|
+
srcPath: "/_api/events-guests",
|
|
43
|
+
destPath: ""
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"editor.wixapps.net": [
|
|
47
|
+
{
|
|
48
|
+
srcPath: "/_api/events-guests",
|
|
49
|
+
destPath: ""
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"www.wixapis.com": [
|
|
53
|
+
{
|
|
54
|
+
srcPath: "/events/v2/guests",
|
|
55
|
+
destPath: "/v2/guests"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
srcPath: "/events-guests/v2/guests",
|
|
59
|
+
destPath: "/v2/guests"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
};
|
|
63
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
64
|
+
}
|
|
65
|
+
var PACKAGE_NAME = "@wix/auto_sdk_events_guests";
|
|
66
|
+
function queryEventGuests(payload) {
|
|
67
|
+
function __queryEventGuests({ host }) {
|
|
68
|
+
const metadata = {
|
|
69
|
+
entityFqdn: "wix.events.guests.v1.guest",
|
|
70
|
+
method: "POST",
|
|
71
|
+
methodFqn: "wix.events.guests.v1.EventGuestsService.QueryEventGuests",
|
|
72
|
+
packageName: PACKAGE_NAME,
|
|
73
|
+
url: resolveWixEventsGuestsV1EventGuestsServiceUrl({
|
|
74
|
+
protoPath: "/v2/guests/query",
|
|
75
|
+
data: payload,
|
|
76
|
+
host
|
|
77
|
+
}),
|
|
78
|
+
data: payload,
|
|
79
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
80
|
+
{
|
|
81
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
82
|
+
paths: [
|
|
83
|
+
{ path: "guests.createdDate" },
|
|
84
|
+
{ path: "guests.updatedDate" },
|
|
85
|
+
{ path: "guests.attendanceStatusUpdatedDate" },
|
|
86
|
+
{ path: "guests.guestDetails.formResponse.inputValues.dateTime" }
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
91
|
+
paths: [
|
|
92
|
+
{ path: "guests.guestDetails.formResponse.inputValues.number" },
|
|
93
|
+
{
|
|
94
|
+
path: "guests.guestDetails.formResponse.inputValues.address.address.geocode.latitude"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
path: "guests.guestDetails.formResponse.inputValues.address.address.geocode.longitude"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
])
|
|
102
|
+
};
|
|
103
|
+
return metadata;
|
|
104
|
+
}
|
|
105
|
+
return __queryEventGuests;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// src/events-guests-v1-guest-guests.universal.ts
|
|
109
|
+
import { transformRESTAddressToSDKAddress } from "@wix/sdk-runtime/transformations/address";
|
|
110
|
+
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
111
|
+
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
112
|
+
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
113
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
114
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
115
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
116
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
117
|
+
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
118
|
+
SubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
119
|
+
return SubdivisionType2;
|
|
120
|
+
})(SubdivisionType || {});
|
|
121
|
+
var AttendanceStatus = /* @__PURE__ */ ((AttendanceStatus2) => {
|
|
122
|
+
AttendanceStatus2["NOT_ATTENDING"] = "NOT_ATTENDING";
|
|
123
|
+
AttendanceStatus2["ATTENDING"] = "ATTENDING";
|
|
124
|
+
AttendanceStatus2["IN_WAITLIST"] = "IN_WAITLIST";
|
|
125
|
+
return AttendanceStatus2;
|
|
126
|
+
})(AttendanceStatus || {});
|
|
127
|
+
var GuestType = /* @__PURE__ */ ((GuestType2) => {
|
|
128
|
+
GuestType2["RSVP"] = "RSVP";
|
|
129
|
+
GuestType2["BUYER"] = "BUYER";
|
|
130
|
+
GuestType2["TICKET_HOLDER"] = "TICKET_HOLDER";
|
|
131
|
+
return GuestType2;
|
|
132
|
+
})(GuestType || {});
|
|
133
|
+
var MemberEventStatusUpdatedEventType = /* @__PURE__ */ ((MemberEventStatusUpdatedEventType2) => {
|
|
134
|
+
MemberEventStatusUpdatedEventType2["MEMBER_JOINED"] = "MEMBER_JOINED";
|
|
135
|
+
MemberEventStatusUpdatedEventType2["MEMBER_LEFT"] = "MEMBER_LEFT";
|
|
136
|
+
MemberEventStatusUpdatedEventType2["ATTENDING_MEMBER_JOINED"] = "ATTENDING_MEMBER_JOINED";
|
|
137
|
+
MemberEventStatusUpdatedEventType2["LAST_ATTENDING_MEMBER_LEFT"] = "LAST_ATTENDING_MEMBER_LEFT";
|
|
138
|
+
return MemberEventStatusUpdatedEventType2;
|
|
139
|
+
})(MemberEventStatusUpdatedEventType || {});
|
|
140
|
+
var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
141
|
+
EventType2["CONTACT_JOINED"] = "CONTACT_JOINED";
|
|
142
|
+
EventType2["CONTACT_LEFT"] = "CONTACT_LEFT";
|
|
143
|
+
EventType2["LAST_CONTACT_LEFT"] = "LAST_CONTACT_LEFT";
|
|
144
|
+
return EventType2;
|
|
145
|
+
})(EventType || {});
|
|
146
|
+
var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
|
147
|
+
LocationType2["UNKNOWN_LOCATION"] = "UNKNOWN_LOCATION";
|
|
148
|
+
LocationType2["VENUE"] = "VENUE";
|
|
149
|
+
LocationType2["ONLINE"] = "ONLINE";
|
|
150
|
+
return LocationType2;
|
|
151
|
+
})(LocationType || {});
|
|
152
|
+
var SubdivisionSubdivisionType = /* @__PURE__ */ ((SubdivisionSubdivisionType2) => {
|
|
153
|
+
SubdivisionSubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
154
|
+
SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
155
|
+
SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
156
|
+
SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
157
|
+
SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
158
|
+
SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
159
|
+
SubdivisionSubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
160
|
+
return SubdivisionSubdivisionType2;
|
|
161
|
+
})(SubdivisionSubdivisionType || {});
|
|
162
|
+
var RecurrenceStatusStatus = /* @__PURE__ */ ((RecurrenceStatusStatus2) => {
|
|
163
|
+
RecurrenceStatusStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
164
|
+
RecurrenceStatusStatus2["ONE_TIME"] = "ONE_TIME";
|
|
165
|
+
RecurrenceStatusStatus2["RECURRING"] = "RECURRING";
|
|
166
|
+
RecurrenceStatusStatus2["RECURRING_UPCOMING"] = "RECURRING_UPCOMING";
|
|
167
|
+
RecurrenceStatusStatus2["RECURRING_RECENTLY_ENDED"] = "RECURRING_RECENTLY_ENDED";
|
|
168
|
+
RecurrenceStatusStatus2["RECURRING_RECENTLY_CANCELED"] = "RECURRING_RECENTLY_CANCELED";
|
|
169
|
+
return RecurrenceStatusStatus2;
|
|
170
|
+
})(RecurrenceStatusStatus || {});
|
|
171
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
172
|
+
Status2["UNKNOWN_EVENT_STATUS"] = "UNKNOWN_EVENT_STATUS";
|
|
173
|
+
Status2["UPCOMING"] = "UPCOMING";
|
|
174
|
+
Status2["STARTED"] = "STARTED";
|
|
175
|
+
Status2["ENDED"] = "ENDED";
|
|
176
|
+
Status2["CANCELED"] = "CANCELED";
|
|
177
|
+
Status2["DRAFT"] = "DRAFT";
|
|
178
|
+
return Status2;
|
|
179
|
+
})(Status || {});
|
|
180
|
+
var NotifyActionType = /* @__PURE__ */ ((NotifyActionType2) => {
|
|
181
|
+
NotifyActionType2["UNKNOWN"] = "UNKNOWN";
|
|
182
|
+
NotifyActionType2["EMAIL"] = "EMAIL";
|
|
183
|
+
NotifyActionType2["AUTOMATION_TRIGGER"] = "AUTOMATION_TRIGGER";
|
|
184
|
+
NotifyActionType2["PUSH"] = "PUSH";
|
|
185
|
+
NotifyActionType2["EVENT_CANCELED"] = "EVENT_CANCELED";
|
|
186
|
+
NotifyActionType2["EVENT_STARTS"] = "EVENT_STARTS";
|
|
187
|
+
NotifyActionType2["ORDER_CANCELED"] = "ORDER_CANCELED";
|
|
188
|
+
return NotifyActionType2;
|
|
189
|
+
})(NotifyActionType || {});
|
|
190
|
+
var Timing = /* @__PURE__ */ ((Timing2) => {
|
|
191
|
+
Timing2["UNKNOWN_TIMING"] = "UNKNOWN_TIMING";
|
|
192
|
+
Timing2["NOW"] = "NOW";
|
|
193
|
+
Timing2["STARTS_IN_1_DAY"] = "STARTS_IN_1_DAY";
|
|
194
|
+
Timing2["STARTS_IN_3_DAYS"] = "STARTS_IN_3_DAYS";
|
|
195
|
+
Timing2["STARTS_IN_1_WEEK"] = "STARTS_IN_1_WEEK";
|
|
196
|
+
Timing2["STARTS_IN_1_HOUR"] = "STARTS_IN_1_HOUR";
|
|
197
|
+
Timing2["STARTS_IN_30_MINUTES"] = "STARTS_IN_30_MINUTES";
|
|
198
|
+
Timing2["STARTS_IN_2_HOURS"] = "STARTS_IN_2_HOURS";
|
|
199
|
+
return Timing2;
|
|
200
|
+
})(Timing || {});
|
|
201
|
+
var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
|
|
202
|
+
OrderStatus2["NA_ORDER_STATUS"] = "NA_ORDER_STATUS";
|
|
203
|
+
OrderStatus2["FREE"] = "FREE";
|
|
204
|
+
OrderStatus2["PENDING"] = "PENDING";
|
|
205
|
+
OrderStatus2["PAID"] = "PAID";
|
|
206
|
+
OrderStatus2["OFFLINE_PENDING"] = "OFFLINE_PENDING";
|
|
207
|
+
OrderStatus2["INITIATED"] = "INITIATED";
|
|
208
|
+
OrderStatus2["CANCELED"] = "CANCELED";
|
|
209
|
+
OrderStatus2["DECLINED"] = "DECLINED";
|
|
210
|
+
OrderStatus2["AUTHORIZED"] = "AUTHORIZED";
|
|
211
|
+
OrderStatus2["VOIDED"] = "VOIDED";
|
|
212
|
+
OrderStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
|
|
213
|
+
return OrderStatus2;
|
|
214
|
+
})(OrderStatus || {});
|
|
215
|
+
var TaxType = /* @__PURE__ */ ((TaxType2) => {
|
|
216
|
+
TaxType2["INCLUDED"] = "INCLUDED";
|
|
217
|
+
TaxType2["ADDED"] = "ADDED";
|
|
218
|
+
TaxType2["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
|
|
219
|
+
return TaxType2;
|
|
220
|
+
})(TaxType || {});
|
|
221
|
+
var FeeName = /* @__PURE__ */ ((FeeName2) => {
|
|
222
|
+
FeeName2["WIX_FEE"] = "WIX_FEE";
|
|
223
|
+
return FeeName2;
|
|
224
|
+
})(FeeName || {});
|
|
225
|
+
var FeeType = /* @__PURE__ */ ((FeeType2) => {
|
|
226
|
+
FeeType2["FEE_ADDED"] = "FEE_ADDED";
|
|
227
|
+
FeeType2["FEE_INCLUDED"] = "FEE_INCLUDED";
|
|
228
|
+
FeeType2["FEE_ADDED_AT_CHECKOUT"] = "FEE_ADDED_AT_CHECKOUT";
|
|
229
|
+
return FeeType2;
|
|
230
|
+
})(FeeType || {});
|
|
231
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
232
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
233
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
234
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
235
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
236
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
237
|
+
return WebhookIdentityType2;
|
|
238
|
+
})(WebhookIdentityType || {});
|
|
239
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
240
|
+
SortOrder2["ASC"] = "ASC";
|
|
241
|
+
SortOrder2["DESC"] = "DESC";
|
|
242
|
+
return SortOrder2;
|
|
243
|
+
})(SortOrder || {});
|
|
244
|
+
var RequestedFieldsEnumRequestedFields = /* @__PURE__ */ ((RequestedFieldsEnumRequestedFields2) => {
|
|
245
|
+
RequestedFieldsEnumRequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
246
|
+
RequestedFieldsEnumRequestedFields2["GUEST_DETAILS"] = "GUEST_DETAILS";
|
|
247
|
+
RequestedFieldsEnumRequestedFields2["GUEST_TOTAL"] = "GUEST_TOTAL";
|
|
248
|
+
return RequestedFieldsEnumRequestedFields2;
|
|
249
|
+
})(RequestedFieldsEnumRequestedFields || {});
|
|
250
|
+
var OrderType = /* @__PURE__ */ ((OrderType2) => {
|
|
251
|
+
OrderType2["UNASSIGNED_TICKETS"] = "UNASSIGNED_TICKETS";
|
|
252
|
+
OrderType2["ASSIGNED_TICKETS"] = "ASSIGNED_TICKETS";
|
|
253
|
+
return OrderType2;
|
|
254
|
+
})(OrderType || {});
|
|
255
|
+
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
256
|
+
RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
257
|
+
RequestedFields2["MEMBER_GUESTS"] = "MEMBER_GUESTS";
|
|
258
|
+
RequestedFields2["WAITLIST_COUNT"] = "WAITLIST_COUNT";
|
|
259
|
+
return RequestedFields2;
|
|
260
|
+
})(RequestedFields || {});
|
|
261
|
+
function queryGuests(options) {
|
|
262
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
263
|
+
return queryBuilder({
|
|
264
|
+
func: async (payload) => {
|
|
265
|
+
const reqOpts = queryEventGuests({
|
|
266
|
+
...payload,
|
|
267
|
+
...options ?? {}
|
|
268
|
+
});
|
|
269
|
+
sideEffects?.onSiteCall?.();
|
|
270
|
+
try {
|
|
271
|
+
const result = await httpClient.request(reqOpts);
|
|
272
|
+
sideEffects?.onSuccess?.(result);
|
|
273
|
+
return result;
|
|
274
|
+
} catch (err) {
|
|
275
|
+
sideEffects?.onError?.(err);
|
|
276
|
+
throw err;
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
requestTransformer: (query) => {
|
|
280
|
+
const args = [query, options];
|
|
281
|
+
return renameKeysFromSDKRequestToRESTRequest({
|
|
282
|
+
...args?.[1],
|
|
283
|
+
query: args?.[0]
|
|
284
|
+
});
|
|
285
|
+
},
|
|
286
|
+
responseTransformer: ({ data }) => {
|
|
287
|
+
const transformedData = renameKeysFromRESTResponseToSDKResponse(
|
|
288
|
+
transformPaths2(data, [
|
|
289
|
+
{
|
|
290
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
291
|
+
paths: [
|
|
292
|
+
{
|
|
293
|
+
path: "guests.guestDetails.formResponse.inputValues.address.address"
|
|
294
|
+
}
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
])
|
|
298
|
+
);
|
|
299
|
+
return {
|
|
300
|
+
items: transformedData?.guests,
|
|
301
|
+
pagingMetadata: transformedData?.pagingMetadata
|
|
302
|
+
};
|
|
303
|
+
},
|
|
304
|
+
errorTransformer: (err) => {
|
|
305
|
+
const transformedError = sdkTransformError(err, {
|
|
306
|
+
spreadPathsToArguments: {},
|
|
307
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
308
|
+
singleArgumentUnchanged: false
|
|
309
|
+
});
|
|
310
|
+
throw transformedError;
|
|
311
|
+
},
|
|
312
|
+
pagingMethod: "CURSOR",
|
|
313
|
+
transformationPaths: {}
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
export {
|
|
317
|
+
AttendanceStatus,
|
|
318
|
+
EventType,
|
|
319
|
+
FeeName,
|
|
320
|
+
FeeType,
|
|
321
|
+
GuestType,
|
|
322
|
+
LocationType,
|
|
323
|
+
MemberEventStatusUpdatedEventType,
|
|
324
|
+
NotifyActionType,
|
|
325
|
+
OrderStatus,
|
|
326
|
+
OrderType,
|
|
327
|
+
RecurrenceStatusStatus,
|
|
328
|
+
RequestedFields,
|
|
329
|
+
RequestedFieldsEnumRequestedFields,
|
|
330
|
+
SortOrder,
|
|
331
|
+
Status,
|
|
332
|
+
SubdivisionSubdivisionType,
|
|
333
|
+
SubdivisionType,
|
|
334
|
+
TaxType,
|
|
335
|
+
Timing,
|
|
336
|
+
WebhookIdentityType,
|
|
337
|
+
queryGuests
|
|
338
|
+
};
|
|
339
|
+
//# sourceMappingURL=index.typings.mjs.map
|