@connectedxm/client 0.0.5 → 0.0.55
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/.vscode/settings.json +4 -0
- package/CHANGELOG.md +6 -0
- package/package.json +9 -6
- package/dist/index.d.mts +0 -1092
- package/dist/index.d.ts +0 -1092
- package/dist/index.js +0 -703
- package/dist/index.mjs +0 -416
package/dist/index.d.mts
DELETED
|
@@ -1,1092 +0,0 @@
|
|
|
1
|
-
import { QueryClient, InfiniteData } from '@tanstack/react-query';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
interface ConnectedXMResponse<TData> {
|
|
5
|
-
status: "ok" | "error" | "redirect";
|
|
6
|
-
message: string;
|
|
7
|
-
data: TData;
|
|
8
|
-
count?: number;
|
|
9
|
-
url?: string;
|
|
10
|
-
}
|
|
11
|
-
declare enum RegistrationStatus {
|
|
12
|
-
registered = "registered",
|
|
13
|
-
checkedIn = "checkedIn",
|
|
14
|
-
checkedOut = "checkedOut",
|
|
15
|
-
waitlisted = "waitlisted",
|
|
16
|
-
cancelled = "cancelled",
|
|
17
|
-
transferred = "transferred",
|
|
18
|
-
invited = "invited",
|
|
19
|
-
rejected = "rejected",
|
|
20
|
-
draft = "draft"
|
|
21
|
-
}
|
|
22
|
-
interface BaseImage {
|
|
23
|
-
id: string;
|
|
24
|
-
uri: string;
|
|
25
|
-
width: number;
|
|
26
|
-
height: number;
|
|
27
|
-
}
|
|
28
|
-
declare enum ImageType {
|
|
29
|
-
admin = "admin",
|
|
30
|
-
people = "people",
|
|
31
|
-
activity = "activity",
|
|
32
|
-
banner = "banner"
|
|
33
|
-
}
|
|
34
|
-
interface Image extends BaseImage {
|
|
35
|
-
type: ImageType;
|
|
36
|
-
name: string | null;
|
|
37
|
-
description: string | null;
|
|
38
|
-
createdAt: string;
|
|
39
|
-
updatedAt: string;
|
|
40
|
-
}
|
|
41
|
-
declare const isTypeImage: (image: BaseImage | Image) => image is Image;
|
|
42
|
-
interface BaseIntegrations {
|
|
43
|
-
}
|
|
44
|
-
interface Integrations extends BaseIntegrations {
|
|
45
|
-
ghost: boolean;
|
|
46
|
-
ghostUrl: string | null;
|
|
47
|
-
ghostContentKey: string | null;
|
|
48
|
-
}
|
|
49
|
-
declare const isTypeIntegrations: (integrations: BaseIntegrations | Integrations) => integrations is Integrations;
|
|
50
|
-
interface BaseOrganization {
|
|
51
|
-
id: string;
|
|
52
|
-
slug: string;
|
|
53
|
-
name: string;
|
|
54
|
-
}
|
|
55
|
-
declare enum Currency {
|
|
56
|
-
USD = "USD"
|
|
57
|
-
}
|
|
58
|
-
interface Organization extends BaseOrganization {
|
|
59
|
-
email: string;
|
|
60
|
-
phone: string | null;
|
|
61
|
-
website: string | null;
|
|
62
|
-
address1: string | null;
|
|
63
|
-
address2: string | null;
|
|
64
|
-
city: string | null;
|
|
65
|
-
state: string | null;
|
|
66
|
-
country: string | null;
|
|
67
|
-
zip: string | null;
|
|
68
|
-
primaryColor: string | null;
|
|
69
|
-
secondaryColor: string | null;
|
|
70
|
-
userPoolId: string;
|
|
71
|
-
userPoolClientId: string;
|
|
72
|
-
logo: BaseImage | null;
|
|
73
|
-
logoId: string | null;
|
|
74
|
-
currency: Currency;
|
|
75
|
-
facebook: string | null;
|
|
76
|
-
twitter: string | null;
|
|
77
|
-
instagram: string | null;
|
|
78
|
-
linkedIn: string | null;
|
|
79
|
-
tikTok: string | null;
|
|
80
|
-
discord: string | null;
|
|
81
|
-
youtube: string | null;
|
|
82
|
-
timezone: string;
|
|
83
|
-
iosAppLink: string | null;
|
|
84
|
-
androidAppLink: string | null;
|
|
85
|
-
createdAt: string;
|
|
86
|
-
updatedAt: string;
|
|
87
|
-
integrations: Integrations;
|
|
88
|
-
}
|
|
89
|
-
declare const isTypeOrganization: (organization: BaseOrganization | Organization) => organization is Organization;
|
|
90
|
-
interface BaseAccountTier {
|
|
91
|
-
id: string;
|
|
92
|
-
slug: string;
|
|
93
|
-
priority: number;
|
|
94
|
-
name: string;
|
|
95
|
-
iconName: string;
|
|
96
|
-
color: string | null;
|
|
97
|
-
image: BaseImage;
|
|
98
|
-
}
|
|
99
|
-
interface AccountTier extends BaseAccountTier {
|
|
100
|
-
description: string | null;
|
|
101
|
-
createdAt: string;
|
|
102
|
-
updatedAt: string;
|
|
103
|
-
}
|
|
104
|
-
declare const isTypeAccountTier: (accountTier: BaseAccountTier | AccountTier) => accountTier is AccountTier;
|
|
105
|
-
declare enum AccountType {
|
|
106
|
-
account = "account",
|
|
107
|
-
team = "team"
|
|
108
|
-
}
|
|
109
|
-
interface BaseAccount {
|
|
110
|
-
id: string;
|
|
111
|
-
username: string;
|
|
112
|
-
accountType: AccountType;
|
|
113
|
-
firstName: string | null;
|
|
114
|
-
lastName: string | null;
|
|
115
|
-
title: string | null;
|
|
116
|
-
company: string | null;
|
|
117
|
-
image: BaseImage | null;
|
|
118
|
-
chatConnected: boolean;
|
|
119
|
-
accountTiers: BaseAccountTier[];
|
|
120
|
-
}
|
|
121
|
-
interface Account extends BaseAccount {
|
|
122
|
-
bio: string | null;
|
|
123
|
-
website: string | null;
|
|
124
|
-
facebook: string | null;
|
|
125
|
-
instagram: string | null;
|
|
126
|
-
linkedIn: string | null;
|
|
127
|
-
twitter: string | null;
|
|
128
|
-
tikTok: string | null;
|
|
129
|
-
youtube: string | null;
|
|
130
|
-
discord: string | null;
|
|
131
|
-
video: string | null;
|
|
132
|
-
state: string | null;
|
|
133
|
-
country: string | null;
|
|
134
|
-
timezone: string | null;
|
|
135
|
-
createdAt: string;
|
|
136
|
-
followers?: Account[];
|
|
137
|
-
following?: Account[];
|
|
138
|
-
_count: {
|
|
139
|
-
followers: number;
|
|
140
|
-
following: number;
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
declare const isTypeAccount: (account: BaseAccount | Account) => account is Account;
|
|
144
|
-
interface Self extends Account {
|
|
145
|
-
email: string | null;
|
|
146
|
-
phone: string | null;
|
|
147
|
-
dietaryRestrictions: string | null;
|
|
148
|
-
address1: string | null;
|
|
149
|
-
address2: string | null;
|
|
150
|
-
city: string | null;
|
|
151
|
-
zip: string | null;
|
|
152
|
-
shareCode: string;
|
|
153
|
-
chatToken?: string;
|
|
154
|
-
}
|
|
155
|
-
declare const isSelf: (account: Self | Account | BaseAccount) => account is Self;
|
|
156
|
-
interface AccountShare extends Account {
|
|
157
|
-
email: string | null;
|
|
158
|
-
phone: string | null;
|
|
159
|
-
}
|
|
160
|
-
interface BaseActivity {
|
|
161
|
-
id: string;
|
|
162
|
-
message: string;
|
|
163
|
-
image: BaseImage | null;
|
|
164
|
-
linkPreview: LinkPreview | null;
|
|
165
|
-
account: BaseAccount;
|
|
166
|
-
createdAt: string;
|
|
167
|
-
}
|
|
168
|
-
interface Activity extends BaseActivity {
|
|
169
|
-
community: BaseCommunity | null;
|
|
170
|
-
event: BaseEvent | null;
|
|
171
|
-
content: BaseContent | null;
|
|
172
|
-
commented: BaseActivity | null;
|
|
173
|
-
reshared: BaseActivity | null;
|
|
174
|
-
updatedAt: string;
|
|
175
|
-
likes?: {
|
|
176
|
-
createdAt: string;
|
|
177
|
-
}[];
|
|
178
|
-
comments?: {
|
|
179
|
-
id: string;
|
|
180
|
-
}[];
|
|
181
|
-
reshares?: {
|
|
182
|
-
id: string;
|
|
183
|
-
}[];
|
|
184
|
-
_count: {
|
|
185
|
-
likes: number;
|
|
186
|
-
comments: number;
|
|
187
|
-
reshares: number;
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
declare const isTypeActivity: (activity: BaseActivity | Activity) => activity is Activity;
|
|
191
|
-
interface BaseLike {
|
|
192
|
-
account: BaseAccount;
|
|
193
|
-
activity: BaseActivity;
|
|
194
|
-
createdAt: string;
|
|
195
|
-
}
|
|
196
|
-
interface Like extends BaseLike {
|
|
197
|
-
}
|
|
198
|
-
declare enum CommunityAccess {
|
|
199
|
-
public = "public",
|
|
200
|
-
private = "private"
|
|
201
|
-
}
|
|
202
|
-
interface BaseCommunity {
|
|
203
|
-
id: string;
|
|
204
|
-
slug: string;
|
|
205
|
-
name: string;
|
|
206
|
-
image: BaseImage | null;
|
|
207
|
-
access: CommunityAccess;
|
|
208
|
-
}
|
|
209
|
-
interface Community extends BaseCommunity {
|
|
210
|
-
description: string;
|
|
211
|
-
externalUrl: string | null;
|
|
212
|
-
active: boolean;
|
|
213
|
-
members?: BaseCommunityMembership[];
|
|
214
|
-
_count: {
|
|
215
|
-
members: number;
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
declare const isTypeCommunity: (community: BaseCommunity | Community) => community is Community;
|
|
219
|
-
interface BaseEvent {
|
|
220
|
-
id: string;
|
|
221
|
-
slug: string;
|
|
222
|
-
name: string;
|
|
223
|
-
shortDescription: string;
|
|
224
|
-
featured: boolean;
|
|
225
|
-
timezone: string | null;
|
|
226
|
-
eventStart: string;
|
|
227
|
-
eventEnd: string;
|
|
228
|
-
image: BaseImage | null;
|
|
229
|
-
}
|
|
230
|
-
declare enum EventSource {
|
|
231
|
-
admin = "admin",
|
|
232
|
-
moderator = "moderator",
|
|
233
|
-
account = "account"
|
|
234
|
-
}
|
|
235
|
-
declare enum EventType {
|
|
236
|
-
physical = "physical",
|
|
237
|
-
virtual = "virtual",
|
|
238
|
-
hybrid = "hybrid"
|
|
239
|
-
}
|
|
240
|
-
interface Event extends BaseEvent {
|
|
241
|
-
approved: boolean;
|
|
242
|
-
eventType: EventType;
|
|
243
|
-
longDescription: string | null;
|
|
244
|
-
externalUrl: string | null;
|
|
245
|
-
meetingUrl: string | null;
|
|
246
|
-
venue: string | null;
|
|
247
|
-
venueMap: BaseImage | null;
|
|
248
|
-
location: string | null;
|
|
249
|
-
address1: string | null;
|
|
250
|
-
address2: string | null;
|
|
251
|
-
city: string | null;
|
|
252
|
-
state: string | null;
|
|
253
|
-
country: string | null;
|
|
254
|
-
zip: string | null;
|
|
255
|
-
communities: BaseCommunity[];
|
|
256
|
-
creatorId: string | null;
|
|
257
|
-
creator: BaseAccount;
|
|
258
|
-
registration: boolean;
|
|
259
|
-
registrationStart: string;
|
|
260
|
-
registrationEnd: string;
|
|
261
|
-
publicRegistrants: boolean;
|
|
262
|
-
chatBotNumber: string | null;
|
|
263
|
-
iosAppLink: string | null;
|
|
264
|
-
androidAppLink: string | null;
|
|
265
|
-
pages: BaseEventPage[];
|
|
266
|
-
streamInput: StreamInput | null;
|
|
267
|
-
createdAt: string;
|
|
268
|
-
updatedAt: string;
|
|
269
|
-
_count: {
|
|
270
|
-
sessions: number;
|
|
271
|
-
speakers: number;
|
|
272
|
-
sponsors: number;
|
|
273
|
-
faqSections: number;
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
declare const isTypeEvent: (event: BaseEvent | Event) => event is Event;
|
|
277
|
-
interface RegistrationEventDetails {
|
|
278
|
-
id: string;
|
|
279
|
-
slug: string;
|
|
280
|
-
name: string;
|
|
281
|
-
eventStart: string;
|
|
282
|
-
eventEnd: string;
|
|
283
|
-
registration: boolean;
|
|
284
|
-
registrationCount: number;
|
|
285
|
-
registrationLimit: number;
|
|
286
|
-
registrationStart: string;
|
|
287
|
-
registrationEnd: string;
|
|
288
|
-
tickets: BaseTicket[];
|
|
289
|
-
sections?: RegistrationSection[];
|
|
290
|
-
_count: {
|
|
291
|
-
sections: number;
|
|
292
|
-
tickets: number;
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
declare enum RegistrationQuestionType {
|
|
296
|
-
text = "text",
|
|
297
|
-
textarea = "textarea",
|
|
298
|
-
number = "number",
|
|
299
|
-
time = "time",
|
|
300
|
-
date = "date",
|
|
301
|
-
toggle = "toggle",
|
|
302
|
-
select = "select",
|
|
303
|
-
radio = "radio",
|
|
304
|
-
checkbox = "checkbox",
|
|
305
|
-
search = "search"
|
|
306
|
-
}
|
|
307
|
-
interface BaseRegistrationQuestion {
|
|
308
|
-
id: number;
|
|
309
|
-
eventId: string;
|
|
310
|
-
type: RegistrationQuestionType;
|
|
311
|
-
name: string;
|
|
312
|
-
required: boolean;
|
|
313
|
-
description: string | null;
|
|
314
|
-
label: string | null;
|
|
315
|
-
placeholder: string | null;
|
|
316
|
-
default: string | null;
|
|
317
|
-
span: number;
|
|
318
|
-
mutable: boolean;
|
|
319
|
-
min: string | null;
|
|
320
|
-
max: string | null;
|
|
321
|
-
}
|
|
322
|
-
interface RegistrationQuestion extends BaseRegistrationQuestion {
|
|
323
|
-
choices: BaseRegistrationQuestionChoice[];
|
|
324
|
-
}
|
|
325
|
-
interface RegistrationSectionQuestion {
|
|
326
|
-
questionId: number;
|
|
327
|
-
question: RegistrationQuestion;
|
|
328
|
-
sortOrder: number;
|
|
329
|
-
}
|
|
330
|
-
interface BaseRegistrationQuestionChoice {
|
|
331
|
-
id: number;
|
|
332
|
-
value: string;
|
|
333
|
-
description: string | null;
|
|
334
|
-
sortOrder: number;
|
|
335
|
-
question: RegistrationQuestion;
|
|
336
|
-
subQuestions: RegistrationQuestion[];
|
|
337
|
-
}
|
|
338
|
-
interface RegistrationQuestionChoice extends BaseRegistrationQuestionChoice {
|
|
339
|
-
}
|
|
340
|
-
interface BaseRegistrationQuestionSearchValue {
|
|
341
|
-
id: string;
|
|
342
|
-
value: string;
|
|
343
|
-
}
|
|
344
|
-
interface RegistrationQuestionSearchValue extends BaseRegistrationQuestionSearchValue {
|
|
345
|
-
}
|
|
346
|
-
interface BaseRegistrationQuestionResponse {
|
|
347
|
-
questionId: number;
|
|
348
|
-
value: string;
|
|
349
|
-
}
|
|
350
|
-
interface RegistrationQuestionResponse extends BaseRegistrationQuestionResponse {
|
|
351
|
-
question: RegistrationQuestion;
|
|
352
|
-
createdAt: string;
|
|
353
|
-
updatedAt: string;
|
|
354
|
-
}
|
|
355
|
-
interface BaseRegistrationSection {
|
|
356
|
-
id: number;
|
|
357
|
-
name: string;
|
|
358
|
-
description: string | null;
|
|
359
|
-
sortOrder: number;
|
|
360
|
-
}
|
|
361
|
-
interface RegistrationSection extends BaseRegistrationSection {
|
|
362
|
-
questions: RegistrationSectionQuestion[];
|
|
363
|
-
}
|
|
364
|
-
interface EventListing extends Event {
|
|
365
|
-
newActivityCreatorEmailNotification: boolean;
|
|
366
|
-
newActivityCreatorPushNotification: boolean;
|
|
367
|
-
registrationLimit: number;
|
|
368
|
-
registrationStart: string;
|
|
369
|
-
registrationEnd: string;
|
|
370
|
-
sponsors: BaseAccount[];
|
|
371
|
-
speakers: BaseSpeaker[];
|
|
372
|
-
sessions: BaseSession[];
|
|
373
|
-
}
|
|
374
|
-
declare const isListing: (event: EventListing | BaseEvent | Event) => event is Event;
|
|
375
|
-
interface BaseInterest {
|
|
376
|
-
id: string;
|
|
377
|
-
name: string;
|
|
378
|
-
}
|
|
379
|
-
interface Interest extends BaseInterest {
|
|
380
|
-
}
|
|
381
|
-
declare enum TicketVisibility {
|
|
382
|
-
public = "public",
|
|
383
|
-
private = "private"
|
|
384
|
-
}
|
|
385
|
-
declare enum TicketEventAccessLevel {
|
|
386
|
-
regular = "regular",
|
|
387
|
-
virtual = "virtual",
|
|
388
|
-
vip = "vip"
|
|
389
|
-
}
|
|
390
|
-
interface BaseTicket {
|
|
391
|
-
id: string;
|
|
392
|
-
slug: string;
|
|
393
|
-
transferable: boolean;
|
|
394
|
-
name: string;
|
|
395
|
-
shortDescription: string;
|
|
396
|
-
longDescription: string | null;
|
|
397
|
-
price: number;
|
|
398
|
-
accessLevel: TicketEventAccessLevel;
|
|
399
|
-
featuredImage: BaseImage | null;
|
|
400
|
-
minQuantityPerSale: number | null;
|
|
401
|
-
maxQuantityPerSale: number | null;
|
|
402
|
-
minGuests: number;
|
|
403
|
-
maxGuests: number;
|
|
404
|
-
supply: number | null;
|
|
405
|
-
}
|
|
406
|
-
interface Ticket extends BaseTicket {
|
|
407
|
-
visibility: TicketVisibility;
|
|
408
|
-
active: boolean;
|
|
409
|
-
event: BaseEvent;
|
|
410
|
-
}
|
|
411
|
-
declare const isTypeTicket: (ticket: BaseTicket | Ticket) => ticket is Ticket;
|
|
412
|
-
interface BasePurchase {
|
|
413
|
-
id: string;
|
|
414
|
-
orderId: string;
|
|
415
|
-
location: string | null;
|
|
416
|
-
usedAt: string | null;
|
|
417
|
-
alternateId: number;
|
|
418
|
-
transfer: {
|
|
419
|
-
id: string;
|
|
420
|
-
email: string;
|
|
421
|
-
createdAt: string;
|
|
422
|
-
};
|
|
423
|
-
ticket: Ticket;
|
|
424
|
-
}
|
|
425
|
-
interface Purchase extends BasePurchase {
|
|
426
|
-
createdAt: string;
|
|
427
|
-
updatedAt: string;
|
|
428
|
-
}
|
|
429
|
-
declare const isTypePurchase: (purchase: BasePurchase | Purchase) => purchase is Purchase;
|
|
430
|
-
interface Order {
|
|
431
|
-
id: string;
|
|
432
|
-
alternateId: number;
|
|
433
|
-
subTotal: number;
|
|
434
|
-
tax: number;
|
|
435
|
-
discount: number;
|
|
436
|
-
grandTotal: number;
|
|
437
|
-
coupon: BaseCoupon | null;
|
|
438
|
-
paymentConfirmationId: string | null;
|
|
439
|
-
purchases: BasePurchase[];
|
|
440
|
-
accountId: string;
|
|
441
|
-
account: BaseAccount;
|
|
442
|
-
createdAt: string;
|
|
443
|
-
updatedAt: string;
|
|
444
|
-
}
|
|
445
|
-
interface BaseTransfer {
|
|
446
|
-
id: string;
|
|
447
|
-
email: string;
|
|
448
|
-
}
|
|
449
|
-
interface Transfer extends BaseTransfer {
|
|
450
|
-
purchase: BasePurchase;
|
|
451
|
-
createdAt: string;
|
|
452
|
-
updatedAt: string;
|
|
453
|
-
}
|
|
454
|
-
declare const isTypeTransfer: (transfer: BaseTransfer | Transfer) => transfer is Transfer;
|
|
455
|
-
declare enum NotificationType {
|
|
456
|
-
ANNOUNCEMENT = "ANNOUNCEMENT",
|
|
457
|
-
FOLLOW = "FOLLOW",
|
|
458
|
-
INVITATION = "INVITATION",
|
|
459
|
-
TRANSFER = "TRANSFER",
|
|
460
|
-
LIKE = "LIKE",
|
|
461
|
-
COMMENT = "COMMENT",
|
|
462
|
-
RESHARE = "RESHARE",
|
|
463
|
-
EVENT = "EVENT",
|
|
464
|
-
ACTIVITY = "ACTIVITY"
|
|
465
|
-
}
|
|
466
|
-
interface BaseNotification {
|
|
467
|
-
id: string;
|
|
468
|
-
type: NotificationType;
|
|
469
|
-
read: boolean;
|
|
470
|
-
sender: BaseAccount | null;
|
|
471
|
-
}
|
|
472
|
-
interface Notification extends BaseNotification {
|
|
473
|
-
transfer: BaseTransfer | null;
|
|
474
|
-
like: BaseLike | null;
|
|
475
|
-
activity: BaseActivity | null;
|
|
476
|
-
event: BaseEvent | null;
|
|
477
|
-
announcement: BaseAnnouncement | null;
|
|
478
|
-
createdAt: string;
|
|
479
|
-
updatedAt: string;
|
|
480
|
-
}
|
|
481
|
-
declare const isTypeNotification: (notification: BaseNotification | Notification) => notification is Notification;
|
|
482
|
-
interface BaseCoupon {
|
|
483
|
-
id: string;
|
|
484
|
-
code: string;
|
|
485
|
-
discountAmount: number;
|
|
486
|
-
discountPercent: number;
|
|
487
|
-
}
|
|
488
|
-
declare enum CouponType {
|
|
489
|
-
order = "order",
|
|
490
|
-
ticket = "ticket"
|
|
491
|
-
}
|
|
492
|
-
interface Coupon extends BaseCoupon {
|
|
493
|
-
description: string | null;
|
|
494
|
-
ticket: BaseTicket | null;
|
|
495
|
-
}
|
|
496
|
-
declare const isTypeCoupon: (coupon: BaseCoupon | Coupon) => coupon is Coupon;
|
|
497
|
-
interface ManagedCoupon extends Coupon {
|
|
498
|
-
active: boolean;
|
|
499
|
-
type: CouponType;
|
|
500
|
-
startDate: string | null;
|
|
501
|
-
endDate: string | null;
|
|
502
|
-
quantityMin: number;
|
|
503
|
-
quantityMax: number | null;
|
|
504
|
-
amountMin: number;
|
|
505
|
-
amountMax: number | null;
|
|
506
|
-
useLimit: number | null;
|
|
507
|
-
limitOnePerAccount: boolean;
|
|
508
|
-
studentDiscount: boolean;
|
|
509
|
-
_count: {
|
|
510
|
-
instances: number;
|
|
511
|
-
uses: number;
|
|
512
|
-
};
|
|
513
|
-
}
|
|
514
|
-
declare const isManagedCoupon: (coupon: BaseCoupon | Coupon | ManagedCoupon) => coupon is ManagedCoupon;
|
|
515
|
-
interface ManagedCouponOrder {
|
|
516
|
-
id: string;
|
|
517
|
-
alternateId: number;
|
|
518
|
-
createdAt: string;
|
|
519
|
-
coupon: BaseCoupon | null;
|
|
520
|
-
account: BaseAccount;
|
|
521
|
-
}
|
|
522
|
-
interface BaseInstance {
|
|
523
|
-
id: string;
|
|
524
|
-
code: string;
|
|
525
|
-
}
|
|
526
|
-
interface Instance extends BaseInstance {
|
|
527
|
-
coupon: BaseCoupon;
|
|
528
|
-
}
|
|
529
|
-
declare const isTypeInstance: (instance: BaseInstance | Instance) => instance is Instance;
|
|
530
|
-
interface BaseTrack {
|
|
531
|
-
id: string;
|
|
532
|
-
slug: string;
|
|
533
|
-
name: string;
|
|
534
|
-
color: string;
|
|
535
|
-
}
|
|
536
|
-
interface Track extends BaseTrack {
|
|
537
|
-
description: string | null;
|
|
538
|
-
_count: {
|
|
539
|
-
sessions: number;
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
declare const isTypeTrack: (track: BaseTrack | Track) => track is Track;
|
|
543
|
-
interface BaseSpeaker {
|
|
544
|
-
id: string;
|
|
545
|
-
slug: string;
|
|
546
|
-
firstName: string;
|
|
547
|
-
lastName: string | null;
|
|
548
|
-
title: string | null;
|
|
549
|
-
company: string | null;
|
|
550
|
-
bio: string | null;
|
|
551
|
-
image: BaseImage | null;
|
|
552
|
-
priority: number;
|
|
553
|
-
isHost: boolean;
|
|
554
|
-
}
|
|
555
|
-
interface Speaker extends BaseSpeaker {
|
|
556
|
-
label: string | null;
|
|
557
|
-
website: string | null;
|
|
558
|
-
facebook: string | null;
|
|
559
|
-
twitter: string | null;
|
|
560
|
-
instagram: string | null;
|
|
561
|
-
linkedIn: string | null;
|
|
562
|
-
discord: string | null;
|
|
563
|
-
youtube: string | null;
|
|
564
|
-
tikTok: string | null;
|
|
565
|
-
sessions: BaseSession[];
|
|
566
|
-
}
|
|
567
|
-
declare const isTypeSpeaker: (speaker: BaseSpeaker | Speaker) => speaker is Speaker;
|
|
568
|
-
interface BaseSession {
|
|
569
|
-
id: string;
|
|
570
|
-
slug: string;
|
|
571
|
-
name: string;
|
|
572
|
-
description: string | null;
|
|
573
|
-
location: string | null;
|
|
574
|
-
image: BaseImage | null;
|
|
575
|
-
startTime: string;
|
|
576
|
-
endTime: string;
|
|
577
|
-
sortOrder: number | null;
|
|
578
|
-
nonSession: boolean;
|
|
579
|
-
}
|
|
580
|
-
interface Session extends BaseSession {
|
|
581
|
-
longDescription: string | null;
|
|
582
|
-
tracks: BaseTrack[];
|
|
583
|
-
speakers: BaseSpeaker[];
|
|
584
|
-
sponsors: BaseAccount[];
|
|
585
|
-
accounts?: BaseAccount[];
|
|
586
|
-
streamInput: StreamInput | null;
|
|
587
|
-
}
|
|
588
|
-
declare const isTypeSession: (session: BaseSession | Session) => session is Session;
|
|
589
|
-
interface BaseEventPage {
|
|
590
|
-
id: string;
|
|
591
|
-
slug: string;
|
|
592
|
-
title: string;
|
|
593
|
-
sortOrder: number;
|
|
594
|
-
}
|
|
595
|
-
interface EventPage extends BaseEventPage {
|
|
596
|
-
html: string;
|
|
597
|
-
subtitle: string;
|
|
598
|
-
images: BaseImage[];
|
|
599
|
-
}
|
|
600
|
-
declare const isTypeEventPage: (page: BaseEventPage | EventPage) => page is EventPage;
|
|
601
|
-
interface BaseScan {
|
|
602
|
-
id: string;
|
|
603
|
-
}
|
|
604
|
-
interface Scan extends BaseScan {
|
|
605
|
-
event: BaseEvent;
|
|
606
|
-
createdAt: string;
|
|
607
|
-
updatedAt: string;
|
|
608
|
-
}
|
|
609
|
-
declare const isTypeScan: (scan: BaseScan | Scan) => scan is Scan;
|
|
610
|
-
interface User {
|
|
611
|
-
}
|
|
612
|
-
interface OrgMembership {
|
|
613
|
-
}
|
|
614
|
-
interface BaseSponsorshipLevel {
|
|
615
|
-
id: string;
|
|
616
|
-
slug: string;
|
|
617
|
-
name: string;
|
|
618
|
-
subtitle: string | null;
|
|
619
|
-
color: string;
|
|
620
|
-
scale: number;
|
|
621
|
-
image: BaseImage | null;
|
|
622
|
-
}
|
|
623
|
-
interface SponsorshipLevel extends BaseSponsorshipLevel {
|
|
624
|
-
description: string | null;
|
|
625
|
-
sortOrder: number;
|
|
626
|
-
accounts: BaseAccount[];
|
|
627
|
-
updatedAt: string;
|
|
628
|
-
createdAt: string;
|
|
629
|
-
}
|
|
630
|
-
declare const isTypeSponsorshipLevel: (sponsorshipLevel: BaseSponsorshipLevel | SponsorshipLevel) => sponsorshipLevel is SponsorshipLevel;
|
|
631
|
-
interface BaseComplimentaryTicket {
|
|
632
|
-
ticketId: string;
|
|
633
|
-
complimentaryTicket: BaseTicket;
|
|
634
|
-
quantity: number;
|
|
635
|
-
}
|
|
636
|
-
interface ComplimentaryTicket extends BaseComplimentaryTicket {
|
|
637
|
-
}
|
|
638
|
-
declare enum PageType {
|
|
639
|
-
about = "about",
|
|
640
|
-
privacy = "privacy",
|
|
641
|
-
terms = "terms",
|
|
642
|
-
team = "team"
|
|
643
|
-
}
|
|
644
|
-
interface BasePage {
|
|
645
|
-
type: PageType;
|
|
646
|
-
title: string | null;
|
|
647
|
-
subtitle: string | null;
|
|
648
|
-
html: string | null;
|
|
649
|
-
updatedAt: string;
|
|
650
|
-
}
|
|
651
|
-
interface Page extends BasePage {
|
|
652
|
-
}
|
|
653
|
-
interface BaseFaq {
|
|
654
|
-
id: string;
|
|
655
|
-
slug: string;
|
|
656
|
-
question: string;
|
|
657
|
-
answer: string;
|
|
658
|
-
}
|
|
659
|
-
interface Faq extends BaseFaq {
|
|
660
|
-
section: BaseFaqSection | null;
|
|
661
|
-
}
|
|
662
|
-
declare const isTypeFaq: (faq: BaseFaq | Faq) => faq is Faq;
|
|
663
|
-
interface BaseFaqSection {
|
|
664
|
-
id: string;
|
|
665
|
-
slug: string;
|
|
666
|
-
name: string;
|
|
667
|
-
}
|
|
668
|
-
interface FaqSection extends BaseFaqSection {
|
|
669
|
-
faqs: BaseFaq[];
|
|
670
|
-
}
|
|
671
|
-
declare const isTypeFaqSection: (faqSection: BaseFaqSection | FaqSection) => faqSection is FaqSection;
|
|
672
|
-
interface BaseSupportTicket {
|
|
673
|
-
id: string;
|
|
674
|
-
}
|
|
675
|
-
declare enum SupportTicketType {
|
|
676
|
-
support = "support",
|
|
677
|
-
inquiry = "inquiry"
|
|
678
|
-
}
|
|
679
|
-
interface SupportTicket extends BaseSupportTicket {
|
|
680
|
-
type: SupportTicketType;
|
|
681
|
-
email: string;
|
|
682
|
-
request: string;
|
|
683
|
-
account: BaseAccount | null;
|
|
684
|
-
event: BaseEvent | null;
|
|
685
|
-
ticket: BaseTicket | null;
|
|
686
|
-
status: string;
|
|
687
|
-
createdAt: string;
|
|
688
|
-
updatedAt: string;
|
|
689
|
-
}
|
|
690
|
-
declare const isTypeSupportTicket: (supportTicket: BaseSupportTicket | SupportTicket) => supportTicket is SupportTicket;
|
|
691
|
-
interface BaseSupportTicketNote {
|
|
692
|
-
id: string;
|
|
693
|
-
supportTicketId: string;
|
|
694
|
-
}
|
|
695
|
-
interface SupportTicketNote extends BaseSupportTicketNote {
|
|
696
|
-
createdAt: string;
|
|
697
|
-
updatedAt: string;
|
|
698
|
-
}
|
|
699
|
-
declare const isTypeSupportTicketNote: (supportTicketNote: BaseSupportTicketNote | SupportTicketNote) => supportTicketNote is SupportTicketNote;
|
|
700
|
-
declare enum AdvertisementType {
|
|
701
|
-
square = "square",
|
|
702
|
-
rectangle = "rectangle"
|
|
703
|
-
}
|
|
704
|
-
interface BaseAdvertisement {
|
|
705
|
-
id: string;
|
|
706
|
-
type: AdvertisementType;
|
|
707
|
-
link: string;
|
|
708
|
-
image: BaseImage | null;
|
|
709
|
-
}
|
|
710
|
-
interface Advertisement extends BaseAdvertisement {
|
|
711
|
-
title: string;
|
|
712
|
-
description: string | null;
|
|
713
|
-
}
|
|
714
|
-
declare const isTypeAdvertisement: (advertisement: BaseAdvertisement | Advertisement) => advertisement is Advertisement;
|
|
715
|
-
interface AdvertisementClick {
|
|
716
|
-
}
|
|
717
|
-
interface AdvertisementView {
|
|
718
|
-
}
|
|
719
|
-
interface BaseTeamMember {
|
|
720
|
-
id: string;
|
|
721
|
-
slug: string;
|
|
722
|
-
firstName: string | null;
|
|
723
|
-
lastName: string | null;
|
|
724
|
-
title: true;
|
|
725
|
-
image: BaseImage | null;
|
|
726
|
-
}
|
|
727
|
-
interface TeamMember extends BaseTeamMember {
|
|
728
|
-
nickName: true;
|
|
729
|
-
email: true;
|
|
730
|
-
phone: true;
|
|
731
|
-
bio: true;
|
|
732
|
-
linkedIn: true;
|
|
733
|
-
facebook: true;
|
|
734
|
-
instagram: true;
|
|
735
|
-
twitter: true;
|
|
736
|
-
tikTok: true;
|
|
737
|
-
discord: true;
|
|
738
|
-
startDate: true;
|
|
739
|
-
}
|
|
740
|
-
declare const isTypeTeamMember: (teamMember: BaseTeamMember | TeamMember) => teamMember is TeamMember;
|
|
741
|
-
declare enum CommunityMembershipRole {
|
|
742
|
-
member = "member",
|
|
743
|
-
moderator = "moderator"
|
|
744
|
-
}
|
|
745
|
-
interface BaseCommunityMembership {
|
|
746
|
-
accountId: string;
|
|
747
|
-
community: BaseCommunity;
|
|
748
|
-
role: CommunityMembershipRole;
|
|
749
|
-
}
|
|
750
|
-
interface CommunityMembership extends BaseCommunityMembership {
|
|
751
|
-
account: BaseAccount;
|
|
752
|
-
following: boolean;
|
|
753
|
-
activityEmailNotification: boolean;
|
|
754
|
-
activityPushNotification: boolean;
|
|
755
|
-
announcementEmailNotification: boolean;
|
|
756
|
-
announcementPushNotification: boolean;
|
|
757
|
-
eventEmailNotification: boolean;
|
|
758
|
-
eventPushNotification: boolean;
|
|
759
|
-
chatPushNotification: boolean;
|
|
760
|
-
createdAt: string;
|
|
761
|
-
updatedAt: string;
|
|
762
|
-
}
|
|
763
|
-
declare const isTypeCommunityMembership: (communityMembership: BaseCommunityMembership | CommunityMembership) => communityMembership is CommunityMembership;
|
|
764
|
-
declare enum ContentTypeFormat {
|
|
765
|
-
article = "article",
|
|
766
|
-
podcast = "podcast",
|
|
767
|
-
video = "video"
|
|
768
|
-
}
|
|
769
|
-
interface BaseContentType {
|
|
770
|
-
id: string;
|
|
771
|
-
slug: string;
|
|
772
|
-
name: string;
|
|
773
|
-
description: string | null;
|
|
774
|
-
format: ContentTypeFormat;
|
|
775
|
-
image: BaseImage;
|
|
776
|
-
}
|
|
777
|
-
interface ContentType extends BaseContentType {
|
|
778
|
-
priority: number;
|
|
779
|
-
externalUrl: string | null;
|
|
780
|
-
appleUrl: string | null;
|
|
781
|
-
spotifyUrl: string | null;
|
|
782
|
-
googleUrl: string | null;
|
|
783
|
-
youtubeUrl: string | null;
|
|
784
|
-
hosts: BaseAccount[];
|
|
785
|
-
subscribers?: {
|
|
786
|
-
id: string;
|
|
787
|
-
}[];
|
|
788
|
-
}
|
|
789
|
-
declare const isTypeContentType: (contentType: BaseContentType | ContentType) => contentType is ContentType;
|
|
790
|
-
interface BaseContent {
|
|
791
|
-
id: string;
|
|
792
|
-
featured: boolean;
|
|
793
|
-
slug: string;
|
|
794
|
-
title: string | null;
|
|
795
|
-
description: string | null;
|
|
796
|
-
imageUrl: string | null;
|
|
797
|
-
audioUrl: string | null;
|
|
798
|
-
videoUrl: string | null;
|
|
799
|
-
duration: string | null;
|
|
800
|
-
contentType: BaseContentType;
|
|
801
|
-
published: string | null;
|
|
802
|
-
}
|
|
803
|
-
interface Content extends BaseContent {
|
|
804
|
-
body: string | null;
|
|
805
|
-
externalUrl: string | null;
|
|
806
|
-
appleUrl: string | null;
|
|
807
|
-
spotifyUrl: string | null;
|
|
808
|
-
googleUrl: string | null;
|
|
809
|
-
youtubeUrl: string | null;
|
|
810
|
-
authors: BaseAccount[];
|
|
811
|
-
mentions: BaseAccount[];
|
|
812
|
-
createdAt: string;
|
|
813
|
-
updatedAt: string;
|
|
814
|
-
}
|
|
815
|
-
declare const isTypeContent: (content: BaseContent | Content) => content is Content;
|
|
816
|
-
interface Registration {
|
|
817
|
-
id: string;
|
|
818
|
-
alternateId: number;
|
|
819
|
-
eventId: string;
|
|
820
|
-
event: RegistrationEventDetails | undefined;
|
|
821
|
-
account: BaseAccount;
|
|
822
|
-
status: RegistrationStatus;
|
|
823
|
-
selectedTicketId: string | null;
|
|
824
|
-
selectedTicket: BaseTicket | null;
|
|
825
|
-
selectedQuantity: number;
|
|
826
|
-
couponId: string | null;
|
|
827
|
-
coupon: BaseCoupon | null;
|
|
828
|
-
purchases: BasePurchase[];
|
|
829
|
-
payments: BaseRegistrationPayment[];
|
|
830
|
-
responses: BaseRegistrationQuestionResponse[];
|
|
831
|
-
guests: BaseRegistrationGuest[];
|
|
832
|
-
createdAt: string;
|
|
833
|
-
}
|
|
834
|
-
interface BaseRegistrationGuest {
|
|
835
|
-
id: number;
|
|
836
|
-
firstName: string;
|
|
837
|
-
lastName: string;
|
|
838
|
-
email: string;
|
|
839
|
-
responses: BaseRegistrationQuestionResponse[];
|
|
840
|
-
}
|
|
841
|
-
interface RegistrationGuest extends BaseRegistrationGuest {
|
|
842
|
-
}
|
|
843
|
-
interface BaseRegistrationPayment {
|
|
844
|
-
id: string;
|
|
845
|
-
chargedAmt: number;
|
|
846
|
-
ticketId: string;
|
|
847
|
-
ticket: BaseTicket;
|
|
848
|
-
quantity: number;
|
|
849
|
-
stripeId: string | null;
|
|
850
|
-
createdAt: string;
|
|
851
|
-
}
|
|
852
|
-
interface RegistrationPayment extends BaseRegistrationPayment {
|
|
853
|
-
}
|
|
854
|
-
interface BaseLead {
|
|
855
|
-
id: string;
|
|
856
|
-
firstName: string | null;
|
|
857
|
-
lastName: string | null;
|
|
858
|
-
company: string | null;
|
|
859
|
-
title: string | null;
|
|
860
|
-
shareAccount: {
|
|
861
|
-
id: string;
|
|
862
|
-
image: BaseImage | null;
|
|
863
|
-
};
|
|
864
|
-
createdAt: string;
|
|
865
|
-
}
|
|
866
|
-
interface Lead extends BaseLead {
|
|
867
|
-
email: string | null;
|
|
868
|
-
phone: string | null;
|
|
869
|
-
state: string | null;
|
|
870
|
-
country: string | null;
|
|
871
|
-
website: string | null;
|
|
872
|
-
facebook: string | null;
|
|
873
|
-
instagram: string | null;
|
|
874
|
-
linkedIn: string | null;
|
|
875
|
-
twitter: string | null;
|
|
876
|
-
tikTok: string | null;
|
|
877
|
-
note: string | null;
|
|
878
|
-
eventId: string | null;
|
|
879
|
-
event: BaseEvent | null;
|
|
880
|
-
updatedAt: string;
|
|
881
|
-
}
|
|
882
|
-
declare const isTypeLead: (lead: BaseLead | Lead) => lead is Lead;
|
|
883
|
-
interface NotificationPreferences {
|
|
884
|
-
newFollowerPush: boolean;
|
|
885
|
-
newFollowerEmail: boolean;
|
|
886
|
-
likePush: boolean;
|
|
887
|
-
resharePush: boolean;
|
|
888
|
-
commentPush: boolean;
|
|
889
|
-
commentEmail: boolean;
|
|
890
|
-
transferPush: boolean;
|
|
891
|
-
transferEmail: boolean;
|
|
892
|
-
supportTicketConfirmationEmail: boolean;
|
|
893
|
-
chatPush: boolean;
|
|
894
|
-
chatUnreadPush: boolean;
|
|
895
|
-
chatUnreadEmail: boolean;
|
|
896
|
-
eventAnnouncementEmail: boolean;
|
|
897
|
-
eventAnnouncementPush: boolean;
|
|
898
|
-
}
|
|
899
|
-
declare enum PushDeviceAppType {
|
|
900
|
-
EVENTXM = "EVENTXM",
|
|
901
|
-
COMMUNITYXM = "COMMUNITYXM"
|
|
902
|
-
}
|
|
903
|
-
declare enum PushService {
|
|
904
|
-
apn = "apn",
|
|
905
|
-
firebase = "firebase",
|
|
906
|
-
huawei = "huawei",
|
|
907
|
-
xiaomi = "xiaomi"
|
|
908
|
-
}
|
|
909
|
-
interface PushDevice {
|
|
910
|
-
id: string;
|
|
911
|
-
deviceToken: string | null;
|
|
912
|
-
accountId: string | null;
|
|
913
|
-
account: BaseAccount | null;
|
|
914
|
-
name: string | null;
|
|
915
|
-
model: string | null;
|
|
916
|
-
brand: string | null;
|
|
917
|
-
manufacturer: string | null;
|
|
918
|
-
appType: PushDeviceAppType;
|
|
919
|
-
pushService: PushService;
|
|
920
|
-
createdAt: string;
|
|
921
|
-
}
|
|
922
|
-
interface BaseAnnouncement {
|
|
923
|
-
id: string;
|
|
924
|
-
slug: string;
|
|
925
|
-
title: string | null;
|
|
926
|
-
message: string | null;
|
|
927
|
-
html: string | null;
|
|
928
|
-
event: BaseEvent | null;
|
|
929
|
-
community: BaseCommunity | null;
|
|
930
|
-
creator: BaseAccount | null;
|
|
931
|
-
createdAt: string;
|
|
932
|
-
}
|
|
933
|
-
interface Announcement extends BaseAnnouncement {
|
|
934
|
-
updatedAt: string;
|
|
935
|
-
}
|
|
936
|
-
declare const isTypeAnnouncement: (announcement: BaseAnnouncement | Announcement) => announcement is Announcement;
|
|
937
|
-
interface EventAllowlistMember {
|
|
938
|
-
id: string;
|
|
939
|
-
}
|
|
940
|
-
interface TicketAllowlistMember {
|
|
941
|
-
id: string;
|
|
942
|
-
}
|
|
943
|
-
interface BaseBenefit {
|
|
944
|
-
id: string;
|
|
945
|
-
slug: string;
|
|
946
|
-
title: string;
|
|
947
|
-
description: string | null;
|
|
948
|
-
image: BaseImage | null;
|
|
949
|
-
priority: number;
|
|
950
|
-
}
|
|
951
|
-
interface Benefit extends BaseBenefit {
|
|
952
|
-
startDate: string;
|
|
953
|
-
endDate: string | null;
|
|
954
|
-
eventId: string | null;
|
|
955
|
-
event: BaseEvent | null;
|
|
956
|
-
managerId: string | null;
|
|
957
|
-
manager: Account | null;
|
|
958
|
-
createdAt: string;
|
|
959
|
-
updatedAt: string;
|
|
960
|
-
}
|
|
961
|
-
declare const isTypeBenefit: (benefit: BaseBenefit | Benefit) => benefit is Benefit;
|
|
962
|
-
interface BaseEventActivation {
|
|
963
|
-
id: string;
|
|
964
|
-
slug: string;
|
|
965
|
-
name: string;
|
|
966
|
-
shortDescription: string;
|
|
967
|
-
maxPoints: number;
|
|
968
|
-
startAfter: string;
|
|
969
|
-
image: BaseImage | null;
|
|
970
|
-
}
|
|
971
|
-
interface EventActivation extends BaseEventActivation {
|
|
972
|
-
event: BaseEvent;
|
|
973
|
-
manager: BaseAccount | null;
|
|
974
|
-
longDescription: string | null;
|
|
975
|
-
protected: boolean;
|
|
976
|
-
createdAt: string;
|
|
977
|
-
updatedAt: string;
|
|
978
|
-
completions?: BaseEventActivationCompletion[];
|
|
979
|
-
}
|
|
980
|
-
declare const isTypeEventActivation: (eventActivation: BaseEventActivation | EventActivation) => eventActivation is EventActivation;
|
|
981
|
-
interface BaseEventActivationCompletion {
|
|
982
|
-
id: string;
|
|
983
|
-
eventId: string;
|
|
984
|
-
earnedPoints: number;
|
|
985
|
-
createdAt: string;
|
|
986
|
-
}
|
|
987
|
-
interface EventActivationCompletion extends BaseEventActivationCompletion {
|
|
988
|
-
eventActivationId: string;
|
|
989
|
-
eventActivation: BaseEventActivation;
|
|
990
|
-
account: BaseAccount;
|
|
991
|
-
updatedAt: string;
|
|
992
|
-
}
|
|
993
|
-
declare const isTypeEventActivationCompletion: (eventActivationCompletion: BaseEventActivationCompletion | EventActivationCompletion) => eventActivationCompletion is EventActivationCompletion;
|
|
994
|
-
interface LinkPreview {
|
|
995
|
-
id: number;
|
|
996
|
-
activityId: string;
|
|
997
|
-
url: string;
|
|
998
|
-
title: string | null;
|
|
999
|
-
siteName: string | null;
|
|
1000
|
-
description: string | null;
|
|
1001
|
-
mediaType: string | null;
|
|
1002
|
-
contentType: string | null;
|
|
1003
|
-
image: string | null;
|
|
1004
|
-
imageWidth: number | null;
|
|
1005
|
-
imageHeight: number | null;
|
|
1006
|
-
video: string | null;
|
|
1007
|
-
favicon: string | null;
|
|
1008
|
-
}
|
|
1009
|
-
interface StreamInput {
|
|
1010
|
-
cloudflareId: string;
|
|
1011
|
-
connected: boolean;
|
|
1012
|
-
}
|
|
1013
|
-
interface BaseChatChannel {
|
|
1014
|
-
id: number;
|
|
1015
|
-
name: string | null;
|
|
1016
|
-
image: BaseImage | null;
|
|
1017
|
-
lastMessageAt: string | null;
|
|
1018
|
-
}
|
|
1019
|
-
interface ChatChannel extends BaseChatChannel {
|
|
1020
|
-
messages: BaseChatChannelMessage[];
|
|
1021
|
-
members: BaseChatChannelMember[];
|
|
1022
|
-
_count: {
|
|
1023
|
-
members: number;
|
|
1024
|
-
};
|
|
1025
|
-
}
|
|
1026
|
-
interface BaseChatChannelMessage {
|
|
1027
|
-
id: number;
|
|
1028
|
-
text: string;
|
|
1029
|
-
html: string;
|
|
1030
|
-
type: "user" | "system";
|
|
1031
|
-
accountId: string;
|
|
1032
|
-
account: BaseAccount | null;
|
|
1033
|
-
createdAt: string;
|
|
1034
|
-
updatedAt: string;
|
|
1035
|
-
}
|
|
1036
|
-
interface ChatChannelMessage extends BaseChatChannelMessage {
|
|
1037
|
-
}
|
|
1038
|
-
interface BaseChatChannelMember {
|
|
1039
|
-
accountId: string;
|
|
1040
|
-
account: BaseAccount;
|
|
1041
|
-
role: "moderator" | "member";
|
|
1042
|
-
read: boolean;
|
|
1043
|
-
notifications: boolean;
|
|
1044
|
-
createdAt: string;
|
|
1045
|
-
updatedAt: string;
|
|
1046
|
-
}
|
|
1047
|
-
interface ChatChannelMember extends BaseChatChannelMember {
|
|
1048
|
-
channelId: number;
|
|
1049
|
-
channel: ChatChannel;
|
|
1050
|
-
}
|
|
1051
|
-
interface BaseSeries {
|
|
1052
|
-
id: string;
|
|
1053
|
-
sortOrder: number;
|
|
1054
|
-
name: string;
|
|
1055
|
-
slug: string;
|
|
1056
|
-
description: string | null;
|
|
1057
|
-
image: BaseImage | null;
|
|
1058
|
-
createdAt: string;
|
|
1059
|
-
updatedAt: string;
|
|
1060
|
-
}
|
|
1061
|
-
interface Series extends BaseSeries {
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
declare const AppendInfiniteQuery: (queryClient: QueryClient, key: Array<string>, newData: any) => void;
|
|
1065
|
-
|
|
1066
|
-
declare const GetErrorMessage: (error: any, fallback?: string) => string;
|
|
1067
|
-
|
|
1068
|
-
declare function MergeInfinitePages<TData>(data: InfiniteData<ConnectedXMResponse<TData[]>>): TData[];
|
|
1069
|
-
|
|
1070
|
-
interface ItemWithId {
|
|
1071
|
-
id: string;
|
|
1072
|
-
alternateId?: number;
|
|
1073
|
-
slug?: string;
|
|
1074
|
-
username?: string;
|
|
1075
|
-
name?: string | null;
|
|
1076
|
-
code?: string;
|
|
1077
|
-
}
|
|
1078
|
-
declare const CacheIndividualQueries: <TData extends ItemWithId>(response: InfiniteData<ConnectedXMResponse<TData[]>>, queryClient: QueryClient, queryKeyFn: (id: string) => any, SET_FUNCTION: (client: QueryClient, keyParams: any, response: ConnectedXMResponse<TData>) => void, itemMap?: ((item: TData) => TData) | undefined) => void;
|
|
1079
|
-
|
|
1080
|
-
declare const useSetAuthToken: () => (token?: string | undefined) => void;
|
|
1081
|
-
|
|
1082
|
-
interface ConnectedXMProps {
|
|
1083
|
-
children: React.ReactNode;
|
|
1084
|
-
organizationId: string;
|
|
1085
|
-
apiUrl?: "https://api.connectedxm.app" | "https://staging-api.connectedxm.app" | "http://localhost:4001";
|
|
1086
|
-
token?: string;
|
|
1087
|
-
executeAs?: string;
|
|
1088
|
-
locale?: string;
|
|
1089
|
-
}
|
|
1090
|
-
declare const ConnectedXM: ({ organizationId, apiUrl, token, executeAs, locale, children, }: ConnectedXMProps) => React.JSX.Element;
|
|
1091
|
-
|
|
1092
|
-
export { type Account, type AccountShare, type AccountTier, AccountType, type Activity, type Advertisement, type AdvertisementClick, AdvertisementType, type AdvertisementView, type Announcement, AppendInfiniteQuery, type BaseAccount, type BaseAccountTier, type BaseActivity, type BaseAdvertisement, type BaseAnnouncement, type BaseBenefit, type BaseChatChannel, type BaseChatChannelMember, type BaseChatChannelMessage, type BaseCommunity, type BaseCommunityMembership, type BaseComplimentaryTicket, type BaseContent, type BaseContentType, type BaseCoupon, type BaseEvent, type BaseEventActivation, type BaseEventActivationCompletion, type BaseEventPage, type BaseFaq, type BaseFaqSection, type BaseImage, type BaseInstance, type BaseIntegrations, type BaseInterest, type BaseLead, type BaseLike, type BaseNotification, type BaseOrganization, type BasePage, type BasePurchase, type BaseRegistrationGuest, type BaseRegistrationPayment, type BaseRegistrationQuestion, type BaseRegistrationQuestionChoice, type BaseRegistrationQuestionResponse, type BaseRegistrationQuestionSearchValue, type BaseRegistrationSection, type BaseScan, type BaseSeries, type BaseSession, type BaseSpeaker, type BaseSponsorshipLevel, type BaseSupportTicket, type BaseSupportTicketNote, type BaseTeamMember, type BaseTicket, type BaseTrack, type BaseTransfer, type Benefit, CacheIndividualQueries, type ChatChannel, type ChatChannelMember, type ChatChannelMessage, type Community, CommunityAccess, type CommunityMembership, CommunityMembershipRole, type ComplimentaryTicket, ConnectedXM, type ConnectedXMResponse, type Content, type ContentType, ContentTypeFormat, type Coupon, CouponType, Currency, type Event, type EventActivation, type EventActivationCompletion, type EventAllowlistMember, type EventListing, type EventPage, EventSource, EventType, type Faq, type FaqSection, GetErrorMessage, type Image, ImageType, type Instance, type Integrations, type Interest, type Lead, type Like, type LinkPreview, type ManagedCoupon, type ManagedCouponOrder, MergeInfinitePages, type Notification, type NotificationPreferences, NotificationType, type Order, type OrgMembership, type Organization, type Page, type Purchase, type PushDevice, PushDeviceAppType, PushService, type Registration, type RegistrationEventDetails, type RegistrationGuest, type RegistrationPayment, type RegistrationQuestion, type RegistrationQuestionChoice, type RegistrationQuestionResponse, type RegistrationQuestionSearchValue, RegistrationQuestionType, type RegistrationSection, type RegistrationSectionQuestion, RegistrationStatus, type Scan, type Self, type Series, type Session, type Speaker, type SponsorshipLevel, type StreamInput, type SupportTicket, type SupportTicketNote, SupportTicketType, type TeamMember, type Ticket, type TicketAllowlistMember, TicketEventAccessLevel, TicketVisibility, type Track, type Transfer, type User, isListing, isManagedCoupon, isSelf, isTypeAccount, isTypeAccountTier, isTypeActivity, isTypeAdvertisement, isTypeAnnouncement, isTypeBenefit, isTypeCommunity, isTypeCommunityMembership, isTypeContent, isTypeContentType, isTypeCoupon, isTypeEvent, isTypeEventActivation, isTypeEventActivationCompletion, isTypeEventPage, isTypeFaq, isTypeFaqSection, isTypeImage, isTypeInstance, isTypeIntegrations, isTypeLead, isTypeNotification, isTypeOrganization, isTypePurchase, isTypeScan, isTypeSession, isTypeSpeaker, isTypeSponsorshipLevel, isTypeSupportTicket, isTypeSupportTicketNote, isTypeTeamMember, isTypeTicket, isTypeTrack, isTypeTransfer, useSetAuthToken };
|