@wix/events 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/events-guests-v1-guest.http.d.ts +4 -0
- package/build/cjs/src/events-guests-v1-guest.http.js +66 -0
- package/build/cjs/src/events-guests-v1-guest.http.js.map +1 -0
- package/build/cjs/src/events-guests-v1-guest.public.d.ts +5 -0
- package/build/cjs/src/events-guests-v1-guest.public.js +18 -0
- package/build/cjs/src/events-guests-v1-guest.public.js.map +1 -0
- package/build/cjs/src/events-guests-v1-guest.types.d.ts +430 -0
- package/build/cjs/src/events-guests-v1-guest.types.js +66 -0
- package/build/cjs/src/events-guests-v1-guest.types.js.map +1 -0
- package/build/cjs/src/events-guests-v1-guest.universal.d.ts +443 -0
- package/build/cjs/src/events-guests-v1-guest.universal.js +159 -0
- package/build/cjs/src/events-guests-v1-guest.universal.js.map +1 -0
- package/build/cjs/src/events-v2-policy.types.d.ts +1 -1
- package/build/cjs/src/events-v2-policy.universal.d.ts +3 -3
- package/build/cjs/src/events-v2-policy.universal.js +1 -1
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/src/events-guests-v1-guest.http.d.ts +4 -0
- package/build/es/src/events-guests-v1-guest.http.js +62 -0
- package/build/es/src/events-guests-v1-guest.http.js.map +1 -0
- package/build/es/src/events-guests-v1-guest.public.d.ts +5 -0
- package/build/es/src/events-guests-v1-guest.public.js +8 -0
- package/build/es/src/events-guests-v1-guest.public.js.map +1 -0
- package/build/es/src/events-guests-v1-guest.types.d.ts +430 -0
- package/build/es/src/events-guests-v1-guest.types.js +63 -0
- package/build/es/src/events-guests-v1-guest.types.js.map +1 -0
- package/build/es/src/events-guests-v1-guest.universal.d.ts +443 -0
- package/build/es/src/events-guests-v1-guest.universal.js +136 -0
- package/build/es/src/events-guests-v1-guest.universal.js.map +1 -0
- package/build/es/src/events-v2-policy.types.d.ts +1 -1
- package/build/es/src/events-v2-policy.universal.d.ts +3 -3
- package/build/es/src/events-v2-policy.universal.js +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
package/build/cjs/index.js
CHANGED
|
@@ -19,6 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.policy = void 0;
|
|
22
|
+
exports.policy = exports.guests = void 0;
|
|
23
|
+
exports.guests = __importStar(require("./src/events-guests-v1-guest.public"));
|
|
23
24
|
exports.policy = __importStar(require("./src/events-v2-policy.public"));
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,wEAAwD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,8EAA8D;AAC9D,wEAAwD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
import { QueryEventGuestsRequest, QueryEventGuestsResponse } from './events-guests-v1-guest.types';
|
|
3
|
+
/** Retrieves a list of policies, given the provided paging and filter. */
|
|
4
|
+
export declare function queryEventGuests(payload: QueryEventGuestsRequest): RequestOptionsFactory<QueryEventGuestsResponse>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryEventGuests = void 0;
|
|
4
|
+
const ambassador_1 = require("@wix/metro-runtime/ambassador");
|
|
5
|
+
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
6
|
+
const _eventGuest = {
|
|
7
|
+
createdDate: 'google.protobuf.Timestamp',
|
|
8
|
+
updatedDate: 'google.protobuf.Timestamp',
|
|
9
|
+
attendanceUpdatedDate: 'google.protobuf.Timestamp',
|
|
10
|
+
};
|
|
11
|
+
const _queryEventGuestsRequest = {};
|
|
12
|
+
const _queryEventGuestsResponse = { guests: '_eventGuest' };
|
|
13
|
+
function resolveWixEventsGuestsV1EventGuestsServiceUrl(opts) {
|
|
14
|
+
const domainToMappings = {
|
|
15
|
+
_: [
|
|
16
|
+
{
|
|
17
|
+
srcPath: '/_api/events-guests',
|
|
18
|
+
destPath: '',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
'manage._base_domain_': [
|
|
22
|
+
{
|
|
23
|
+
srcPath: '/_api/events-guests',
|
|
24
|
+
destPath: '',
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
'api._api_base_domain_': [
|
|
28
|
+
{
|
|
29
|
+
srcPath: '/events-guests',
|
|
30
|
+
destPath: '',
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
'www.wixapis.com': [
|
|
34
|
+
{
|
|
35
|
+
srcPath: '/events-guests',
|
|
36
|
+
destPath: '',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
};
|
|
40
|
+
return metro_runtime_1.resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
41
|
+
}
|
|
42
|
+
/** Retrieves a list of policies, given the provided paging and filter. */
|
|
43
|
+
function queryEventGuests(payload) {
|
|
44
|
+
const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_queryEventGuestsRequest, {});
|
|
45
|
+
const { fromJSON: fromRes } = ambassador_1.serializer(_queryEventGuestsResponse, {
|
|
46
|
+
_eventGuest,
|
|
47
|
+
});
|
|
48
|
+
function __queryEventGuests({ host }) {
|
|
49
|
+
const serializedData = toReq(payload);
|
|
50
|
+
const metadata = {
|
|
51
|
+
method: 'POST',
|
|
52
|
+
url: resolveWixEventsGuestsV1EventGuestsServiceUrl({
|
|
53
|
+
protoPath: '/v2/guests/query',
|
|
54
|
+
data: serializedData,
|
|
55
|
+
host,
|
|
56
|
+
}),
|
|
57
|
+
data: serializedData,
|
|
58
|
+
transformResponse: fromRes,
|
|
59
|
+
};
|
|
60
|
+
return metadata;
|
|
61
|
+
}
|
|
62
|
+
__queryEventGuests.fromReq = fromReq;
|
|
63
|
+
return __queryEventGuests;
|
|
64
|
+
}
|
|
65
|
+
exports.queryEventGuests = queryEventGuests;
|
|
66
|
+
//# sourceMappingURL=events-guests-v1-guest.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events-guests-v1-guest.http.js","sourceRoot":"","sources":["../../../src/events-guests-v1-guest.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;AAQhD,MAAM,WAAW,GAAG;IAClB,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;IACxC,qBAAqB,EAAE,2BAA2B;CACnD,CAAC;AACF,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,yBAAyB,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC;AAE5D,SAAS,6CAA6C,CACpD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,0BAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,0EAA0E;AAC1E,SAAgB,gBAAgB,CAC9B,OAAgC;IAEhC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,uBAAU,CACrD,wBAAwB,EACxB,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,uBAAU,CAAC,yBAAyB,EAAE;QAClE,WAAW;KACZ,CAAC,CAAC;IAEH,SAAS,kBAAkB,CAAC,EAAE,IAAI,EAAO;QACvC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,6CAA6C,CAAC;gBACjD,SAAS,EAAE,kBAAkB;gBAC7B,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,kBAAkB,CAAC,OAAO,GAAG,OAAO,CAAC;IAErC,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AA9BD,4CA8BC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { QueryV2 } from './events-guests-v1-guest.universal';
|
|
3
|
+
export declare function queryEventGuests(httpClient: HttpClient): (query: QueryV2) => Promise<import("./events-guests-v1-guest.universal").QueryEventGuestsResponse>;
|
|
4
|
+
export { AttendanceStatus, SortOrder, SubdivisionType, RsvpStatus, OrderStatus, OrderType, } from './events-guests-v1-guest.universal';
|
|
5
|
+
export { EventGuest, QueryEventGuestsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryEventGuestsResponse, PagingMetadataV2, Cursors, SecondaryLanguagesRequest, SecondaryLanguagesResponse, RsvpCreated, FormResponse, InputValue, FormattedAddress, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, Guest, CheckIn, Empty, RsvpUpdated, RsvpDeleted, OrderUpdated, Ticket, Money, OrderDeleted, Task, TaskKey, } from './events-guests-v1-guest.universal';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderType = exports.OrderStatus = exports.RsvpStatus = exports.SubdivisionType = exports.SortOrder = exports.AttendanceStatus = exports.queryEventGuests = void 0;
|
|
4
|
+
const events_guests_v1_guest_universal_1 = require("./events-guests-v1-guest.universal");
|
|
5
|
+
function queryEventGuests(httpClient) {
|
|
6
|
+
return (query) => events_guests_v1_guest_universal_1.queryEventGuests(query,
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
{ httpClient });
|
|
9
|
+
}
|
|
10
|
+
exports.queryEventGuests = queryEventGuests;
|
|
11
|
+
var events_guests_v1_guest_universal_2 = require("./events-guests-v1-guest.universal");
|
|
12
|
+
Object.defineProperty(exports, "AttendanceStatus", { enumerable: true, get: function () { return events_guests_v1_guest_universal_2.AttendanceStatus; } });
|
|
13
|
+
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return events_guests_v1_guest_universal_2.SortOrder; } });
|
|
14
|
+
Object.defineProperty(exports, "SubdivisionType", { enumerable: true, get: function () { return events_guests_v1_guest_universal_2.SubdivisionType; } });
|
|
15
|
+
Object.defineProperty(exports, "RsvpStatus", { enumerable: true, get: function () { return events_guests_v1_guest_universal_2.RsvpStatus; } });
|
|
16
|
+
Object.defineProperty(exports, "OrderStatus", { enumerable: true, get: function () { return events_guests_v1_guest_universal_2.OrderStatus; } });
|
|
17
|
+
Object.defineProperty(exports, "OrderType", { enumerable: true, get: function () { return events_guests_v1_guest_universal_2.OrderType; } });
|
|
18
|
+
//# sourceMappingURL=events-guests-v1-guest.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events-guests-v1-guest.public.js","sourceRoot":"","sources":["../../../src/events-guests-v1-guest.public.ts"],"names":[],"mappings":";;;AACA,yFAG4C;AAE5C,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,KAAc,EAAE,EAAE,CACxB,mDAAyB,CACvB,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4CAOC;AAED,uFAO4C;AAN1C,oIAAA,gBAAgB,OAAA;AAChB,6HAAA,SAAS,OAAA;AACT,mIAAA,eAAe,OAAA;AACf,8HAAA,UAAU,OAAA;AACV,+HAAA,WAAW,OAAA;AACX,6HAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
export interface EventGuest {
|
|
2
|
+
/** Contact id. */
|
|
3
|
+
id?: string | null;
|
|
4
|
+
/** Event id. */
|
|
5
|
+
eventId?: string | null;
|
|
6
|
+
/** Rsvp id. */
|
|
7
|
+
rsvpId?: string | null;
|
|
8
|
+
/** Order number. */
|
|
9
|
+
orderNumber?: string | null;
|
|
10
|
+
/** Ticket number. */
|
|
11
|
+
ticketNumber?: string | null;
|
|
12
|
+
/** Tickets of the order */
|
|
13
|
+
tickets?: string[];
|
|
14
|
+
/** Contact id. */
|
|
15
|
+
contactId?: string | null;
|
|
16
|
+
/** Email. */
|
|
17
|
+
email?: string | null;
|
|
18
|
+
/** First name. */
|
|
19
|
+
firstName?: string | null;
|
|
20
|
+
/** Last name. */
|
|
21
|
+
lastName?: string | null;
|
|
22
|
+
/** Attendance status */
|
|
23
|
+
attendance?: AttendanceStatus;
|
|
24
|
+
/** Secondary language. */
|
|
25
|
+
language?: string | null;
|
|
26
|
+
createdDate?: Date;
|
|
27
|
+
updatedDate?: Date;
|
|
28
|
+
/** The last date when contact turned Waiting or Attending */
|
|
29
|
+
attendanceUpdatedDate?: Date;
|
|
30
|
+
/** Site member id. */
|
|
31
|
+
memberId?: string | null;
|
|
32
|
+
}
|
|
33
|
+
export declare enum AttendanceStatus {
|
|
34
|
+
/** 24 hours prior */
|
|
35
|
+
NOT_ATTENDING = "NOT_ATTENDING",
|
|
36
|
+
/** Notification is sent instantly */
|
|
37
|
+
ATTENDING = "ATTENDING",
|
|
38
|
+
/** 3 days prior */
|
|
39
|
+
WAITING = "WAITING"
|
|
40
|
+
}
|
|
41
|
+
export interface QueryEventGuestsRequest {
|
|
42
|
+
/** WQL expression */
|
|
43
|
+
query: QueryV2;
|
|
44
|
+
}
|
|
45
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
46
|
+
/**
|
|
47
|
+
* Filter object in the following format:
|
|
48
|
+
* `"filter" : {
|
|
49
|
+
* "fieldName1": "value1",
|
|
50
|
+
* "fieldName2":{"$operator":"value2"}
|
|
51
|
+
* }`
|
|
52
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
53
|
+
*/
|
|
54
|
+
filter?: Record<string, any> | null;
|
|
55
|
+
/**
|
|
56
|
+
* Sort object in the following format:
|
|
57
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
58
|
+
*/
|
|
59
|
+
sort?: Sorting[];
|
|
60
|
+
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
61
|
+
fields?: string[];
|
|
62
|
+
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
63
|
+
fieldsets?: string[];
|
|
64
|
+
/** Paging options to limit and skip the number of items. */
|
|
65
|
+
paging?: Paging;
|
|
66
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
67
|
+
cursorPaging?: CursorPaging;
|
|
68
|
+
}
|
|
69
|
+
/** @oneof */
|
|
70
|
+
export interface QueryV2PagingMethodOneOf {
|
|
71
|
+
/** Paging options to limit and skip the number of items. */
|
|
72
|
+
paging?: Paging;
|
|
73
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
74
|
+
cursorPaging?: CursorPaging;
|
|
75
|
+
}
|
|
76
|
+
export interface Sorting {
|
|
77
|
+
/** Name of the field to sort by. */
|
|
78
|
+
fieldName?: string;
|
|
79
|
+
/** Sort order. */
|
|
80
|
+
order?: SortOrder;
|
|
81
|
+
}
|
|
82
|
+
export declare enum SortOrder {
|
|
83
|
+
ASC = "ASC",
|
|
84
|
+
DESC = "DESC"
|
|
85
|
+
}
|
|
86
|
+
export interface Paging {
|
|
87
|
+
/** Number of items to load. */
|
|
88
|
+
limit?: number | null;
|
|
89
|
+
/** Number of items to skip in the current sort order. */
|
|
90
|
+
offset?: number | null;
|
|
91
|
+
}
|
|
92
|
+
export interface CursorPaging {
|
|
93
|
+
/** Number of items to load. */
|
|
94
|
+
limit?: number | null;
|
|
95
|
+
/**
|
|
96
|
+
* Pointer to the next or previous page in the list of results.
|
|
97
|
+
*
|
|
98
|
+
* You can get the relevant cursor token
|
|
99
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
100
|
+
* Not relevant for the first request.
|
|
101
|
+
*/
|
|
102
|
+
cursor?: string | null;
|
|
103
|
+
}
|
|
104
|
+
export interface QueryEventGuestsResponse {
|
|
105
|
+
/** Event Policies */
|
|
106
|
+
guests?: EventGuest[];
|
|
107
|
+
/** Query result's metadata */
|
|
108
|
+
metadata?: PagingMetadataV2;
|
|
109
|
+
}
|
|
110
|
+
export interface PagingMetadataV2 {
|
|
111
|
+
/** Number of items returned in the response. */
|
|
112
|
+
count?: number | null;
|
|
113
|
+
/** Offset that was requested. */
|
|
114
|
+
offset?: number | null;
|
|
115
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
116
|
+
total?: number | null;
|
|
117
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
118
|
+
tooManyToCount?: boolean | null;
|
|
119
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
120
|
+
cursors?: Cursors;
|
|
121
|
+
}
|
|
122
|
+
export interface Cursors {
|
|
123
|
+
/** Cursor pointing to next page in the list of results. */
|
|
124
|
+
next?: string | null;
|
|
125
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
126
|
+
prev?: string | null;
|
|
127
|
+
}
|
|
128
|
+
export interface SecondaryLanguagesRequest {
|
|
129
|
+
/** Contact event id. */
|
|
130
|
+
eventId?: string;
|
|
131
|
+
}
|
|
132
|
+
export interface SecondaryLanguagesResponse {
|
|
133
|
+
/** Aggregated contact languages */
|
|
134
|
+
secondaryLanguages?: string[];
|
|
135
|
+
}
|
|
136
|
+
export interface RsvpCreated {
|
|
137
|
+
/** RSVP created timestamp in ISO UTC format. */
|
|
138
|
+
timestamp?: Date;
|
|
139
|
+
/** Site language when RSVP created */
|
|
140
|
+
language?: string | null;
|
|
141
|
+
/** Notifications silenced for this domain event. */
|
|
142
|
+
silent?: boolean | null;
|
|
143
|
+
/** Event ID. */
|
|
144
|
+
eventId?: string;
|
|
145
|
+
/** RSVP ID. */
|
|
146
|
+
rsvpId?: string;
|
|
147
|
+
/** Contact ID associated with this RSVP. */
|
|
148
|
+
contactId?: string;
|
|
149
|
+
/** Member ID associated with this RSVP. */
|
|
150
|
+
memberId?: string | null;
|
|
151
|
+
/** Guest first name. */
|
|
152
|
+
firstName?: string;
|
|
153
|
+
/** Guest last name. */
|
|
154
|
+
lastName?: string;
|
|
155
|
+
/** Guest email. */
|
|
156
|
+
email?: string;
|
|
157
|
+
/** RSVP form response. */
|
|
158
|
+
rsvpForm?: FormResponse;
|
|
159
|
+
/** RSVP response status. */
|
|
160
|
+
status?: RsvpStatus;
|
|
161
|
+
/** List of all guests. */
|
|
162
|
+
guests?: Guest[];
|
|
163
|
+
}
|
|
164
|
+
export interface FormResponse {
|
|
165
|
+
/** Input values entered upon ticket order. */
|
|
166
|
+
inputValues?: InputValue[];
|
|
167
|
+
}
|
|
168
|
+
export interface InputValue {
|
|
169
|
+
/** Unique input name. */
|
|
170
|
+
inputName?: string;
|
|
171
|
+
/** Text value representation. */
|
|
172
|
+
value?: string;
|
|
173
|
+
/** Text value vector. */
|
|
174
|
+
values?: string[];
|
|
175
|
+
}
|
|
176
|
+
export interface FormattedAddress {
|
|
177
|
+
/** One line address representation. */
|
|
178
|
+
formatted?: string;
|
|
179
|
+
/** Address components (optional). */
|
|
180
|
+
address?: Address;
|
|
181
|
+
}
|
|
182
|
+
/** Physical address */
|
|
183
|
+
export interface Address extends AddressStreetOneOf {
|
|
184
|
+
/** Country code. */
|
|
185
|
+
country?: string | null;
|
|
186
|
+
/** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
187
|
+
subdivision?: string | null;
|
|
188
|
+
/** City name. */
|
|
189
|
+
city?: string | null;
|
|
190
|
+
/** Zip/postal code. */
|
|
191
|
+
postalCode?: string | null;
|
|
192
|
+
/** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
|
|
193
|
+
addressLine2?: string | null;
|
|
194
|
+
/** Street name and number. */
|
|
195
|
+
streetAddress?: StreetAddress;
|
|
196
|
+
/** Main address line, usually street and number as free text. */
|
|
197
|
+
addressLine?: string | null;
|
|
198
|
+
}
|
|
199
|
+
/** @oneof */
|
|
200
|
+
export interface AddressStreetOneOf {
|
|
201
|
+
/** Street name and number. */
|
|
202
|
+
streetAddress?: StreetAddress;
|
|
203
|
+
/** Main address line, usually street and number as free text. */
|
|
204
|
+
addressLine?: string | null;
|
|
205
|
+
}
|
|
206
|
+
export interface StreetAddress {
|
|
207
|
+
/** Street number. */
|
|
208
|
+
number?: string;
|
|
209
|
+
/** Street name. */
|
|
210
|
+
name?: string;
|
|
211
|
+
}
|
|
212
|
+
export interface AddressLocation {
|
|
213
|
+
/** Address latitude. */
|
|
214
|
+
latitude?: number | null;
|
|
215
|
+
/** Address longitude. */
|
|
216
|
+
longitude?: number | null;
|
|
217
|
+
}
|
|
218
|
+
export interface Subdivision {
|
|
219
|
+
/** Short subdivision code. */
|
|
220
|
+
code?: string;
|
|
221
|
+
/** Subdivision full name. */
|
|
222
|
+
name?: string;
|
|
223
|
+
}
|
|
224
|
+
export declare enum SubdivisionType {
|
|
225
|
+
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
226
|
+
/** State */
|
|
227
|
+
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
228
|
+
/** County */
|
|
229
|
+
ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
|
|
230
|
+
/** City/town */
|
|
231
|
+
ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
|
|
232
|
+
/** Neighborhood/quarter */
|
|
233
|
+
ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
|
|
234
|
+
/** Street/block */
|
|
235
|
+
ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
|
|
236
|
+
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
237
|
+
COUNTRY = "COUNTRY"
|
|
238
|
+
}
|
|
239
|
+
export declare enum RsvpStatus {
|
|
240
|
+
YES = "YES",
|
|
241
|
+
NO = "NO",
|
|
242
|
+
WAITING = "WAITING"
|
|
243
|
+
}
|
|
244
|
+
export interface Guest {
|
|
245
|
+
/** Index in the RSVP guest list. */
|
|
246
|
+
index?: number;
|
|
247
|
+
/** Guest full name. */
|
|
248
|
+
fullName?: string;
|
|
249
|
+
/** Guest check-in. */
|
|
250
|
+
checkIn?: CheckIn;
|
|
251
|
+
/** Unique guest ID per RSVP. */
|
|
252
|
+
id?: number;
|
|
253
|
+
}
|
|
254
|
+
export interface CheckIn {
|
|
255
|
+
/** Time of check-in */
|
|
256
|
+
created?: Date;
|
|
257
|
+
}
|
|
258
|
+
export interface Empty {
|
|
259
|
+
}
|
|
260
|
+
export interface RsvpUpdated {
|
|
261
|
+
/** RSVP updated timestamp in ISO UTC format. */
|
|
262
|
+
timestamp?: Date;
|
|
263
|
+
/** Site language when RSVP created */
|
|
264
|
+
language?: string | null;
|
|
265
|
+
/** Event ID. */
|
|
266
|
+
eventId?: string;
|
|
267
|
+
/** RSVP ID. */
|
|
268
|
+
rsvpId?: string;
|
|
269
|
+
/** Contact ID associated with this RSVP. */
|
|
270
|
+
contactId?: string;
|
|
271
|
+
/** Member ID associated with this RSVP. */
|
|
272
|
+
memberId?: string | null;
|
|
273
|
+
/** RSVP created timestamp. */
|
|
274
|
+
created?: Date;
|
|
275
|
+
/** Guest first name. */
|
|
276
|
+
firstName?: string;
|
|
277
|
+
/** Guest last name. */
|
|
278
|
+
lastName?: string;
|
|
279
|
+
/** Guest email. */
|
|
280
|
+
email?: string;
|
|
281
|
+
/** RSVP form response. */
|
|
282
|
+
rsvpForm?: FormResponse;
|
|
283
|
+
/** RSVP response status. */
|
|
284
|
+
status?: RsvpStatus;
|
|
285
|
+
/** List of the guests. */
|
|
286
|
+
guests?: Guest[];
|
|
287
|
+
}
|
|
288
|
+
export interface RsvpDeleted {
|
|
289
|
+
/** RSVP deleted timestamp in ISO UTC format. */
|
|
290
|
+
timestamp?: Date;
|
|
291
|
+
/** Event ID. */
|
|
292
|
+
eventId?: string;
|
|
293
|
+
/** RSVP ID. */
|
|
294
|
+
rsvpId?: string;
|
|
295
|
+
/** Contact ID associated with this RSVP. */
|
|
296
|
+
contactId?: string;
|
|
297
|
+
/** Member ID associated with this RSVP. */
|
|
298
|
+
memberId?: string | null;
|
|
299
|
+
/** Whether RSVP was anonymized by GDPR delete. */
|
|
300
|
+
anonymized?: boolean;
|
|
301
|
+
}
|
|
302
|
+
export interface OrderUpdated {
|
|
303
|
+
/** Order updated timestamp in ISO UTC format. */
|
|
304
|
+
timestamp?: Date;
|
|
305
|
+
/** Site language when Order initiated */
|
|
306
|
+
language?: string | null;
|
|
307
|
+
/** Event ID. */
|
|
308
|
+
eventId?: string;
|
|
309
|
+
/** Unique order number. */
|
|
310
|
+
orderNumber?: string;
|
|
311
|
+
/** Contact ID associated with this order. */
|
|
312
|
+
contactId?: string;
|
|
313
|
+
/** Member ID associated with this order. */
|
|
314
|
+
memberId?: string | null;
|
|
315
|
+
/**
|
|
316
|
+
* Order created timestamp.
|
|
317
|
+
* @readonly
|
|
318
|
+
*/
|
|
319
|
+
created?: Date;
|
|
320
|
+
/** Buyer first name. */
|
|
321
|
+
firstName?: string;
|
|
322
|
+
/** Buyer last name. */
|
|
323
|
+
lastName?: string;
|
|
324
|
+
/** Buyer email. */
|
|
325
|
+
email?: string;
|
|
326
|
+
/** Checkout form response. */
|
|
327
|
+
checkoutForm?: FormResponse;
|
|
328
|
+
/** Whether order is confirmed - occurs once payment gateway processes the payment and funds reach merchant's account. */
|
|
329
|
+
confirmed?: boolean;
|
|
330
|
+
/** Order status. */
|
|
331
|
+
status?: OrderStatus;
|
|
332
|
+
/** Payment method used for paid tickets purchase, i.e. "payPal", "creditCard", etc. */
|
|
333
|
+
method?: string | null;
|
|
334
|
+
/** Tickets generated after payment. */
|
|
335
|
+
tickets?: Ticket[];
|
|
336
|
+
/** Whether order was archived and excluded from results. */
|
|
337
|
+
archived?: boolean;
|
|
338
|
+
/** Whether event was triggered by GDPR delete request. */
|
|
339
|
+
triggeredByAnonymizeRequest?: boolean;
|
|
340
|
+
}
|
|
341
|
+
export declare enum OrderStatus {
|
|
342
|
+
/** Order status not available for this request fieldset */
|
|
343
|
+
NA_ORDER_STATUS = "NA_ORDER_STATUS",
|
|
344
|
+
/** Order is confirmed, no payment required */
|
|
345
|
+
FREE = "FREE",
|
|
346
|
+
/** Order was paid but payment gateway suspended the payment. Eventually changes to PAID */
|
|
347
|
+
PENDING = "PENDING",
|
|
348
|
+
/** Order paid via payment gateway */
|
|
349
|
+
PAID = "PAID",
|
|
350
|
+
/** Order confirmed but has to be paid via offline payment and status manually updated to PAID */
|
|
351
|
+
OFFLINE_PENDING = "OFFLINE_PENDING",
|
|
352
|
+
/** Order is awaiting for payment in Cashier */
|
|
353
|
+
INITIATED = "INITIATED",
|
|
354
|
+
/** Order was canceled */
|
|
355
|
+
CANCELED = "CANCELED",
|
|
356
|
+
/** Order payment was declined */
|
|
357
|
+
DECLINED = "DECLINED"
|
|
358
|
+
}
|
|
359
|
+
export interface Ticket {
|
|
360
|
+
/** Unique issued ticket number. */
|
|
361
|
+
ticketNumber?: string;
|
|
362
|
+
/** Ticket definition ID. */
|
|
363
|
+
ticketDefinitionId?: string;
|
|
364
|
+
/** Ticket check-in. */
|
|
365
|
+
checkIn?: CheckIn;
|
|
366
|
+
/** Ticket price. */
|
|
367
|
+
price?: Money;
|
|
368
|
+
/** Whether ticket is archived. */
|
|
369
|
+
archived?: boolean;
|
|
370
|
+
/** Guest first name. */
|
|
371
|
+
firstName?: string | null;
|
|
372
|
+
/** Guest last name. */
|
|
373
|
+
lastName?: string | null;
|
|
374
|
+
/** Guest email. */
|
|
375
|
+
email?: string | null;
|
|
376
|
+
/** Contact ID associated with this ticket. */
|
|
377
|
+
contactId?: string | null;
|
|
378
|
+
/** Whether ticket is confirmed */
|
|
379
|
+
confirmed?: boolean;
|
|
380
|
+
/** Member ID associated with this ticket. */
|
|
381
|
+
memberId?: string | null;
|
|
382
|
+
/** Ticket form response (only assigned tickets contain separate forms). */
|
|
383
|
+
form?: FormResponse;
|
|
384
|
+
/** Anonymized tickets no longer contain personally identifiable information (PII). */
|
|
385
|
+
anonymized?: boolean;
|
|
386
|
+
}
|
|
387
|
+
export interface Money {
|
|
388
|
+
/** Decimal amount representation. Deprecated, use `value` instead. */
|
|
389
|
+
amount?: string;
|
|
390
|
+
/** ISO 4217 format of the currency i.e. `USD`. */
|
|
391
|
+
currency?: string;
|
|
392
|
+
/** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative. */
|
|
393
|
+
value?: string | null;
|
|
394
|
+
}
|
|
395
|
+
export interface OrderDeleted {
|
|
396
|
+
/** Order deleted timestamp in ISO UTC format. */
|
|
397
|
+
timestamp?: Date;
|
|
398
|
+
/** Event ID. */
|
|
399
|
+
eventId?: string;
|
|
400
|
+
/** Unique order number. */
|
|
401
|
+
orderNumber?: string;
|
|
402
|
+
/** Contact ID associated with this order */
|
|
403
|
+
contactId?: string;
|
|
404
|
+
/** Member ID associated with this order. */
|
|
405
|
+
memberId?: string | null;
|
|
406
|
+
/** Whether order was anonymized by GDPR delete. */
|
|
407
|
+
anonymized?: boolean;
|
|
408
|
+
/** Order type. */
|
|
409
|
+
orderType?: OrderType;
|
|
410
|
+
/** Whether event was triggered by GDPR delete request. */
|
|
411
|
+
triggeredByAnonymizeRequest?: boolean;
|
|
412
|
+
/** Tickets generated after payment. */
|
|
413
|
+
tickets?: Ticket[];
|
|
414
|
+
}
|
|
415
|
+
export declare enum OrderType {
|
|
416
|
+
/** Buyer form is used for all tickets */
|
|
417
|
+
UNASSIGNED_TICKETS = "UNASSIGNED_TICKETS",
|
|
418
|
+
/** Each order ticket has its own form */
|
|
419
|
+
ASSIGNED_TICKETS = "ASSIGNED_TICKETS"
|
|
420
|
+
}
|
|
421
|
+
export interface Task {
|
|
422
|
+
key?: TaskKey;
|
|
423
|
+
executeAt?: Date;
|
|
424
|
+
payload?: string | null;
|
|
425
|
+
}
|
|
426
|
+
export interface TaskKey {
|
|
427
|
+
appId?: string;
|
|
428
|
+
instanceId?: string;
|
|
429
|
+
subjectId?: string | null;
|
|
430
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderType = exports.OrderStatus = exports.RsvpStatus = exports.SubdivisionType = exports.SortOrder = exports.AttendanceStatus = void 0;
|
|
4
|
+
var AttendanceStatus;
|
|
5
|
+
(function (AttendanceStatus) {
|
|
6
|
+
/** 24 hours prior */
|
|
7
|
+
AttendanceStatus["NOT_ATTENDING"] = "NOT_ATTENDING";
|
|
8
|
+
/** Notification is sent instantly */
|
|
9
|
+
AttendanceStatus["ATTENDING"] = "ATTENDING";
|
|
10
|
+
/** 3 days prior */
|
|
11
|
+
AttendanceStatus["WAITING"] = "WAITING";
|
|
12
|
+
})(AttendanceStatus = exports.AttendanceStatus || (exports.AttendanceStatus = {}));
|
|
13
|
+
var SortOrder;
|
|
14
|
+
(function (SortOrder) {
|
|
15
|
+
SortOrder["ASC"] = "ASC";
|
|
16
|
+
SortOrder["DESC"] = "DESC";
|
|
17
|
+
})(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
|
|
18
|
+
var SubdivisionType;
|
|
19
|
+
(function (SubdivisionType) {
|
|
20
|
+
SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
21
|
+
/** State */
|
|
22
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
23
|
+
/** County */
|
|
24
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
25
|
+
/** City/town */
|
|
26
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
27
|
+
/** Neighborhood/quarter */
|
|
28
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
29
|
+
/** Street/block */
|
|
30
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
31
|
+
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
32
|
+
SubdivisionType["COUNTRY"] = "COUNTRY";
|
|
33
|
+
})(SubdivisionType = exports.SubdivisionType || (exports.SubdivisionType = {}));
|
|
34
|
+
var RsvpStatus;
|
|
35
|
+
(function (RsvpStatus) {
|
|
36
|
+
RsvpStatus["YES"] = "YES";
|
|
37
|
+
RsvpStatus["NO"] = "NO";
|
|
38
|
+
RsvpStatus["WAITING"] = "WAITING";
|
|
39
|
+
})(RsvpStatus = exports.RsvpStatus || (exports.RsvpStatus = {}));
|
|
40
|
+
var OrderStatus;
|
|
41
|
+
(function (OrderStatus) {
|
|
42
|
+
/** Order status not available for this request fieldset */
|
|
43
|
+
OrderStatus["NA_ORDER_STATUS"] = "NA_ORDER_STATUS";
|
|
44
|
+
/** Order is confirmed, no payment required */
|
|
45
|
+
OrderStatus["FREE"] = "FREE";
|
|
46
|
+
/** Order was paid but payment gateway suspended the payment. Eventually changes to PAID */
|
|
47
|
+
OrderStatus["PENDING"] = "PENDING";
|
|
48
|
+
/** Order paid via payment gateway */
|
|
49
|
+
OrderStatus["PAID"] = "PAID";
|
|
50
|
+
/** Order confirmed but has to be paid via offline payment and status manually updated to PAID */
|
|
51
|
+
OrderStatus["OFFLINE_PENDING"] = "OFFLINE_PENDING";
|
|
52
|
+
/** Order is awaiting for payment in Cashier */
|
|
53
|
+
OrderStatus["INITIATED"] = "INITIATED";
|
|
54
|
+
/** Order was canceled */
|
|
55
|
+
OrderStatus["CANCELED"] = "CANCELED";
|
|
56
|
+
/** Order payment was declined */
|
|
57
|
+
OrderStatus["DECLINED"] = "DECLINED";
|
|
58
|
+
})(OrderStatus = exports.OrderStatus || (exports.OrderStatus = {}));
|
|
59
|
+
var OrderType;
|
|
60
|
+
(function (OrderType) {
|
|
61
|
+
/** Buyer form is used for all tickets */
|
|
62
|
+
OrderType["UNASSIGNED_TICKETS"] = "UNASSIGNED_TICKETS";
|
|
63
|
+
/** Each order ticket has its own form */
|
|
64
|
+
OrderType["ASSIGNED_TICKETS"] = "ASSIGNED_TICKETS";
|
|
65
|
+
})(OrderType = exports.OrderType || (exports.OrderType = {}));
|
|
66
|
+
//# sourceMappingURL=events-guests-v1-guest.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events-guests-v1-guest.types.js","sourceRoot":"","sources":["../../../src/events-guests-v1-guest.types.ts"],"names":[],"mappings":";;;AAiCA,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,qBAAqB;IACrB,mDAA+B,CAAA;IAC/B,qCAAqC;IACrC,2CAAuB,CAAA;IACvB,mBAAmB;IACnB,uCAAmB,CAAA;AACrB,CAAC,EAPW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAO3B;AA+CD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AA4JD,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,YAAY;IACZ,8EAA2D,CAAA;IAC3D,aAAa;IACb,8EAA2D,CAAA;IAC3D,gBAAgB;IAChB,8EAA2D,CAAA;IAC3D,2BAA2B;IAC3B,8EAA2D,CAAA;IAC3D,mBAAmB;IACnB,8EAA2D,CAAA;IAC3D,8IAA8I;IAC9I,sCAAmB,CAAA;AACrB,CAAC,EAdW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAc1B;AAED,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,yBAAW,CAAA;IACX,uBAAS,CAAA;IACT,iCAAmB,CAAA;AACrB,CAAC,EAJW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAIrB;AAwGD,IAAY,WAiBX;AAjBD,WAAY,WAAW;IACrB,2DAA2D;IAC3D,kDAAmC,CAAA;IACnC,8CAA8C;IAC9C,4BAAa,CAAA;IACb,2FAA2F;IAC3F,kCAAmB,CAAA;IACnB,qCAAqC;IACrC,4BAAa,CAAA;IACb,iGAAiG;IACjG,kDAAmC,CAAA;IACnC,+CAA+C;IAC/C,sCAAuB,CAAA;IACvB,yBAAyB;IACzB,oCAAqB,CAAA;IACrB,iCAAiC;IACjC,oCAAqB,CAAA;AACvB,CAAC,EAjBW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAiBtB;AA6DD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,yCAAyC;IACzC,sDAAyC,CAAA;IACzC,yCAAyC;IACzC,kDAAqC,CAAA;AACvC,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB"}
|