@ibiliaze/global-vars 1.16.0 → 1.17.0
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.
|
@@ -1,722 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Mon: Day;
|
|
18
|
-
Tue: Day;
|
|
19
|
-
Wed: Day;
|
|
20
|
-
Thu: Day;
|
|
21
|
-
Fri: Day;
|
|
22
|
-
Sat: Day;
|
|
23
|
-
Sun: Day;
|
|
24
|
-
};
|
|
25
|
-
export declare const calendars: readonly ["blue", "dark", "gray", "red", "pink", "grape", "violet", "cyan", "teal", "green", "lime", "yellow", "orange"];
|
|
26
|
-
export type EventType = '' | 'project' | 'booking' | 'holiday' | 'meeting';
|
|
27
|
-
export interface Event {
|
|
28
|
-
_id?: string;
|
|
29
|
-
email: string;
|
|
30
|
-
startTime: number;
|
|
31
|
-
endTime: number;
|
|
32
|
-
title: string;
|
|
33
|
-
eventType: EventType;
|
|
34
|
-
color: MantineColorName;
|
|
35
|
-
meetingLink: string;
|
|
36
|
-
description: string;
|
|
37
|
-
reminders: number[];
|
|
38
|
-
name: string;
|
|
39
|
-
address: string;
|
|
40
|
-
tel: string;
|
|
41
|
-
dob: string;
|
|
42
|
-
paid: boolean;
|
|
43
|
-
userId?: string;
|
|
44
|
-
userIds: string[];
|
|
45
|
-
productId?: string;
|
|
46
|
-
accountIds: string[];
|
|
47
|
-
price: number;
|
|
48
|
-
attended: boolean;
|
|
49
|
-
global: boolean;
|
|
50
|
-
notes: string;
|
|
51
|
-
courses: number;
|
|
52
|
-
completedCourses: number;
|
|
53
|
-
createdAt: string;
|
|
54
|
-
updatedAt: string;
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
export interface TicketTacsType {
|
|
3
|
+
_id?: Types.ObjectId;
|
|
4
|
+
ticketCode: string;
|
|
5
|
+
fixtureId: Types.ObjectId;
|
|
6
|
+
fixtureName: string;
|
|
7
|
+
fixtureDate: Date;
|
|
8
|
+
orderId: string;
|
|
9
|
+
sectionId: Types.ObjectId;
|
|
10
|
+
row: number;
|
|
11
|
+
seat: number;
|
|
12
|
+
purchaseTime: Date;
|
|
13
|
+
read?: boolean;
|
|
14
|
+
readTime?: Date;
|
|
15
|
+
nodeId?: string;
|
|
16
|
+
sessionId?: string;
|
|
55
17
|
}
|
|
56
|
-
export
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
fixtureId
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
email: string;
|
|
65
|
-
username: string;
|
|
66
|
-
password: string;
|
|
67
|
-
tel: string;
|
|
68
|
-
name: string;
|
|
69
|
-
avatar: string;
|
|
70
|
-
fixture?: UserFixture;
|
|
71
|
-
};
|
|
72
|
-
export type StaffType = {
|
|
73
|
-
_id: string | undefined | '';
|
|
74
|
-
email: string;
|
|
75
|
-
password: string;
|
|
76
|
-
tel: string;
|
|
77
|
-
name: string;
|
|
78
|
-
avatar: string;
|
|
79
|
-
roles: string[];
|
|
80
|
-
};
|
|
81
|
-
export type UserState = {
|
|
82
|
-
isAuthenticated: boolean;
|
|
83
|
-
users: UserType[];
|
|
84
|
-
user: UserType;
|
|
85
|
-
};
|
|
86
|
-
export type StaffState = {
|
|
87
|
-
isAuthenticated: boolean;
|
|
88
|
-
staffs: StaffType[];
|
|
89
|
-
staff: StaffType;
|
|
90
|
-
};
|
|
91
|
-
export type ReportIncome = {
|
|
92
|
-
id?: string;
|
|
93
|
-
name: string;
|
|
94
|
-
date: string;
|
|
95
|
-
amount: number;
|
|
96
|
-
period: string;
|
|
97
|
-
invoiceLink: string;
|
|
98
|
-
imgUrl: string;
|
|
99
|
-
};
|
|
100
|
-
export type ProjectUser = {
|
|
101
|
-
id?: string;
|
|
102
|
-
name: string;
|
|
103
|
-
days: number;
|
|
104
|
-
rate: number;
|
|
105
|
-
payer: string;
|
|
106
|
-
};
|
|
107
|
-
export type ProjectReceipt = {
|
|
108
|
-
id?: string;
|
|
109
|
-
amount: number;
|
|
110
|
-
imgUrl: string;
|
|
111
|
-
name: string;
|
|
112
|
-
paidBy: string;
|
|
113
|
-
suppliedByCustomer: boolean;
|
|
114
|
-
};
|
|
115
|
-
export type ProjectMaterial = {
|
|
116
|
-
id?: string;
|
|
117
|
-
bought: boolean;
|
|
118
|
-
confirmed: boolean;
|
|
119
|
-
customerSupplied: boolean;
|
|
120
|
-
link: string;
|
|
121
|
-
name: string;
|
|
122
|
-
quantity: number;
|
|
123
|
-
price: number;
|
|
124
|
-
};
|
|
125
|
-
export type ProjectTaskComment = {
|
|
126
|
-
id?: string;
|
|
127
|
-
userId?: string;
|
|
128
|
-
comment: string;
|
|
129
|
-
date: string;
|
|
130
|
-
};
|
|
131
|
-
export type ProjectTaskReviewedBy = {
|
|
132
|
-
userId: string;
|
|
133
|
-
reviewed: boolean;
|
|
134
|
-
};
|
|
135
|
-
export type ProjectTaskReportedBy = {
|
|
136
|
-
userId: string;
|
|
137
|
-
signedOff: boolean;
|
|
138
|
-
};
|
|
139
|
-
export type ProjectTaskStatus = '' | 'started' | 'completed' | 'inReview' | 'blocked' | 'decommissioned';
|
|
140
|
-
export type ProjectTaskType = '' | 'discovery';
|
|
141
|
-
export type ProjectTask = {
|
|
142
|
-
id: string;
|
|
143
|
-
name: string;
|
|
144
|
-
startDate: string;
|
|
145
|
-
endDate: string;
|
|
146
|
-
userIds: string[];
|
|
147
|
-
type: ProjectTaskType;
|
|
148
|
-
reportedBy: ProjectTaskReportedBy[];
|
|
149
|
-
reviewedBy: ProjectTaskReviewedBy[];
|
|
150
|
-
status: ProjectTaskStatus;
|
|
151
|
-
description: string;
|
|
152
|
-
comments: ProjectTaskComment[];
|
|
153
|
-
};
|
|
154
|
-
export type Project = {
|
|
155
|
-
_id?: string;
|
|
156
|
-
projectName: string;
|
|
157
|
-
name: string;
|
|
158
|
-
email: string;
|
|
159
|
-
tel: string;
|
|
160
|
-
address: string;
|
|
161
|
-
address2: string;
|
|
162
|
-
country: string;
|
|
163
|
-
city: string;
|
|
164
|
-
region: string;
|
|
165
|
-
postcode: string;
|
|
166
|
-
completed: boolean;
|
|
167
|
-
startDate: string;
|
|
168
|
-
endDate: string;
|
|
169
|
-
quoteRef: string;
|
|
170
|
-
userIds: string[];
|
|
171
|
-
notify: string[];
|
|
172
|
-
price: number;
|
|
173
|
-
users: ProjectUser[];
|
|
174
|
-
tasks: ProjectTask[];
|
|
175
|
-
receipts: ProjectReceipt[];
|
|
176
|
-
materials: ProjectMaterial[];
|
|
177
|
-
};
|
|
178
|
-
export type Report = {
|
|
179
|
-
_id?: string;
|
|
180
|
-
name: string;
|
|
181
|
-
date: string;
|
|
182
|
-
endDate: string;
|
|
183
|
-
receipts: ProjectReceipt[];
|
|
184
|
-
users: ProjectUser[];
|
|
185
|
-
incomes: ReportIncome[];
|
|
186
|
-
};
|
|
187
|
-
export type ProjectReport = {
|
|
188
|
-
salaryTotals: {
|
|
189
|
-
payers: Record<string, number>;
|
|
190
|
-
total: number;
|
|
191
|
-
};
|
|
192
|
-
receiptTotals: {
|
|
193
|
-
payers: Record<string, number>;
|
|
194
|
-
totalWeSupply: number;
|
|
195
|
-
totalCustomerSupplies: number;
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
export type ProjectReportDetail = {
|
|
199
|
-
receiptTotalWeSupply: number;
|
|
200
|
-
receiptTotalCustomerSupplies: number | null;
|
|
201
|
-
receiptTotal: number;
|
|
202
|
-
salaryTotal: number;
|
|
203
|
-
profit: number;
|
|
204
|
-
};
|
|
205
|
-
export type EarliestBooking = {
|
|
206
|
-
days: number;
|
|
207
|
-
hours: number;
|
|
208
|
-
mins: number;
|
|
209
|
-
};
|
|
210
|
-
export type PageSectionTemplate = 'cta' | 'imageDescription' | 'fullWidthImage' | 'html' | 'partners' | 'reviews' | 'youtubeLink' | 'table' | 'steppers';
|
|
211
|
-
export type PageSectionHtml = {
|
|
212
|
-
html: string;
|
|
213
|
-
};
|
|
214
|
-
export type PageSectionPartner = {
|
|
215
|
-
id?: string;
|
|
216
|
-
imgSrc: string;
|
|
217
|
-
};
|
|
218
|
-
export type PageSectionReview = {
|
|
219
|
-
id?: string;
|
|
220
|
-
link: string;
|
|
221
|
-
imgSrc: string;
|
|
222
|
-
};
|
|
223
|
-
export type PageSectionTableRow = {
|
|
224
|
-
id?: string;
|
|
225
|
-
name: string;
|
|
226
|
-
data: string[];
|
|
227
|
-
};
|
|
228
|
-
export type PageSectionTable = {
|
|
229
|
-
columns: string[];
|
|
230
|
-
rows: PageSectionTableRow[];
|
|
231
|
-
};
|
|
232
|
-
export type PageSectionFullWidthImage = {
|
|
233
|
-
imgSrc: string;
|
|
234
|
-
title: string;
|
|
235
|
-
text: string;
|
|
236
|
-
};
|
|
237
|
-
export type PageSectionImageDescription = {
|
|
238
|
-
imgSrc: string;
|
|
239
|
-
title: string;
|
|
240
|
-
text: string;
|
|
241
|
-
};
|
|
242
|
-
export type PageSectionCta = {
|
|
243
|
-
buttonText: string;
|
|
244
|
-
url: string;
|
|
245
|
-
color: string;
|
|
246
|
-
colorTo: string;
|
|
247
|
-
};
|
|
248
|
-
export type PageSectionStepper = {
|
|
249
|
-
id?: string;
|
|
250
|
-
name: string;
|
|
251
|
-
text: string;
|
|
252
|
-
description: string;
|
|
253
|
-
};
|
|
254
|
-
export type PageSectionReviews = {
|
|
255
|
-
reviews: PageSectionReview[];
|
|
256
|
-
};
|
|
257
|
-
export type PageSectionSteppers = {
|
|
258
|
-
steppers: PageSectionStepper[];
|
|
259
|
-
};
|
|
260
|
-
export type PageSectionYouTubeLink = {
|
|
261
|
-
link: string;
|
|
262
|
-
};
|
|
263
|
-
export type PageSectionPartners = {
|
|
264
|
-
partners: PageSectionPartner[];
|
|
265
|
-
};
|
|
266
|
-
export type PageSectionMetadata = PageSectionPartners | PageSectionHtml | PageSectionReviews | PageSectionSteppers | PageSectionYouTubeLink | PageSectionTable | PageSectionFullWidthImage | PageSectionImageDescription | PageSectionCta | null;
|
|
267
|
-
export type PageSection = {
|
|
268
|
-
id?: string;
|
|
269
|
-
name: string;
|
|
270
|
-
background: string;
|
|
271
|
-
marginTop: string;
|
|
272
|
-
marginBottom: string;
|
|
273
|
-
paddingTop: string;
|
|
274
|
-
paddingBottom: string;
|
|
275
|
-
imgSrc: string;
|
|
276
|
-
template: PageSectionTemplate;
|
|
277
|
-
metadata: PageSectionMetadata;
|
|
278
|
-
};
|
|
279
|
-
export type Page = {
|
|
280
|
-
_id?: string;
|
|
281
|
-
name: string;
|
|
282
|
-
active: boolean;
|
|
283
|
-
description: string;
|
|
284
|
-
clicks: number;
|
|
285
|
-
internal: boolean;
|
|
286
|
-
sections: PageSection[];
|
|
287
|
-
};
|
|
288
|
-
export type ProductAddon = {
|
|
289
|
-
id?: string;
|
|
290
|
-
name: string;
|
|
291
|
-
price: number;
|
|
292
|
-
description: string;
|
|
293
|
-
};
|
|
294
|
-
export type ProductExample = {
|
|
295
|
-
id?: string;
|
|
296
|
-
title: string;
|
|
297
|
-
link: string;
|
|
298
|
-
imgUrl: string;
|
|
299
|
-
};
|
|
300
|
-
export type ProductQna = {
|
|
301
|
-
id?: string;
|
|
302
|
-
question: string;
|
|
303
|
-
answer: string;
|
|
304
|
-
};
|
|
305
|
-
export type Product = {
|
|
306
|
-
_id?: string;
|
|
307
|
-
productName: string;
|
|
308
|
-
groupId?: string;
|
|
309
|
-
price: number;
|
|
310
|
-
discount: number;
|
|
311
|
-
home: boolean;
|
|
312
|
-
getQuote: boolean;
|
|
313
|
-
booking: boolean;
|
|
314
|
-
whatsapp: boolean;
|
|
315
|
-
duration: number;
|
|
316
|
-
showStock: boolean;
|
|
317
|
-
mbg: boolean;
|
|
318
|
-
hideReviews: boolean;
|
|
319
|
-
hidden: boolean;
|
|
320
|
-
stock: number;
|
|
321
|
-
purchases: number;
|
|
322
|
-
icon: string;
|
|
323
|
-
description: string;
|
|
324
|
-
subscriptionPeriod: SubscriptionPeriod;
|
|
325
|
-
copy: string;
|
|
326
|
-
images: string[];
|
|
327
|
-
examples: ProductExample[];
|
|
328
|
-
qnas: ProductQna[];
|
|
329
|
-
addons: ProductAddon[];
|
|
330
|
-
};
|
|
331
|
-
export type Review = {
|
|
332
|
-
_id?: string;
|
|
333
|
-
title: string;
|
|
334
|
-
author: string;
|
|
335
|
-
email: string;
|
|
336
|
-
tel: string;
|
|
337
|
-
rating: number;
|
|
338
|
-
body: string;
|
|
339
|
-
source: string;
|
|
340
|
-
productId?: string;
|
|
341
|
-
};
|
|
342
|
-
export type Blog = {
|
|
343
|
-
_id?: string;
|
|
344
|
-
title: string;
|
|
345
|
-
subtitle: string;
|
|
346
|
-
groupId?: string;
|
|
347
|
-
body: string;
|
|
348
|
-
internal: boolean;
|
|
349
|
-
img: string;
|
|
350
|
-
};
|
|
351
|
-
export type AdminAIModel = 'gpt-3.5-turbo-0125' | 'gpt-4';
|
|
352
|
-
export type AdminAI = {
|
|
353
|
-
model: AdminAIModel;
|
|
354
|
-
temperature: number;
|
|
355
|
-
top_p: number;
|
|
356
|
-
max_tokens: number;
|
|
357
|
-
spent: number;
|
|
358
|
-
};
|
|
359
|
-
export type AdminXero = {
|
|
360
|
-
active: boolean;
|
|
361
|
-
tenantId: string;
|
|
362
|
-
accessToken: string;
|
|
363
|
-
refreshToken: string;
|
|
364
|
-
expiresAt: string;
|
|
365
|
-
connectionName: string;
|
|
366
|
-
};
|
|
367
|
-
export type AdminToken = {
|
|
368
|
-
_id?: string;
|
|
369
|
-
ip: string;
|
|
370
|
-
city: string;
|
|
371
|
-
region: string;
|
|
372
|
-
country: string;
|
|
373
|
-
loc: string;
|
|
374
|
-
userAgent: string;
|
|
375
|
-
};
|
|
376
|
-
export type AdminComparisons = {
|
|
377
|
-
comparisonOneTitle: string;
|
|
378
|
-
comparisonOneDescription: string;
|
|
379
|
-
'comparisonOne-1': string;
|
|
380
|
-
'comparisonOne-2': string;
|
|
381
|
-
comparisonTwoTitle: string;
|
|
382
|
-
comparisonTwoDescription: string;
|
|
383
|
-
'comparisonTwo-1': string;
|
|
384
|
-
'comparisonTwo-2': string;
|
|
385
|
-
};
|
|
386
|
-
export type AdminBanner = {
|
|
387
|
-
show: boolean;
|
|
388
|
-
title: string;
|
|
389
|
-
text: string;
|
|
390
|
-
bottomText: string;
|
|
391
|
-
color: string;
|
|
392
|
-
dark: boolean;
|
|
393
|
-
};
|
|
394
|
-
export type AdminWithdrawal = {
|
|
395
|
-
id: string;
|
|
396
|
-
amount: number;
|
|
397
|
-
earned: number;
|
|
398
|
-
};
|
|
399
|
-
export type AdminFinances = {
|
|
400
|
-
bankAccName: string;
|
|
401
|
-
bankAccNumber: string;
|
|
402
|
-
bankSortcode: string;
|
|
403
|
-
moneyInBank: number;
|
|
404
|
-
moneyInCash: number;
|
|
405
|
-
bankMinimum: number;
|
|
406
|
-
withdrawals: AdminWithdrawal[];
|
|
407
|
-
};
|
|
408
|
-
export type AdminContact = {
|
|
409
|
-
email1: string;
|
|
410
|
-
website: string;
|
|
411
|
-
tel1: string;
|
|
412
|
-
tel2: string;
|
|
413
|
-
tel3: string;
|
|
414
|
-
address: string;
|
|
415
|
-
quoteLlc: string;
|
|
416
|
-
logo: string;
|
|
417
|
-
vatReg: string;
|
|
418
|
-
companyNum: string;
|
|
419
|
-
};
|
|
420
|
-
export type AdminReviewer = {
|
|
421
|
-
_id?: string;
|
|
422
|
-
reviewerName: string;
|
|
423
|
-
logo: string;
|
|
424
|
-
maxRating: number;
|
|
425
|
-
rating: number;
|
|
426
|
-
numberOfReviews: number;
|
|
427
|
-
link: string;
|
|
428
|
-
urlName: string;
|
|
429
|
-
shareLink: string;
|
|
430
|
-
otherLinks: string[];
|
|
431
|
-
};
|
|
432
|
-
export type AdminPolicy = {
|
|
433
|
-
_id?: string;
|
|
18
|
+
export interface TicketType {
|
|
19
|
+
_id?: Types.ObjectId;
|
|
20
|
+
ticketCode: string;
|
|
21
|
+
orderId: string;
|
|
22
|
+
fixtureId: Types.ObjectId;
|
|
23
|
+
sectionId: Types.ObjectId;
|
|
24
|
+
userId: Types.ObjectId;
|
|
25
|
+
seatId: Types.ObjectId;
|
|
434
26
|
name: string;
|
|
435
|
-
body: string;
|
|
436
|
-
};
|
|
437
|
-
export type AdminDiscount = {
|
|
438
|
-
_id?: string;
|
|
439
|
-
name: string;
|
|
440
|
-
amount: number;
|
|
441
|
-
showOnHomePage: boolean;
|
|
442
|
-
};
|
|
443
|
-
export type AdminLinkType = 'header' | 'footer';
|
|
444
|
-
export type AdminLinkGroup = 'information' | 'contact' | 'legal';
|
|
445
|
-
export type AdminLink = {
|
|
446
|
-
_id?: string;
|
|
447
|
-
name: string;
|
|
448
|
-
type: AdminLinkType;
|
|
449
|
-
group: AdminLinkGroup;
|
|
450
|
-
link: string;
|
|
451
|
-
};
|
|
452
|
-
export type Admin = {
|
|
453
|
-
_id?: string;
|
|
454
27
|
email: string;
|
|
455
|
-
password: string;
|
|
456
28
|
tel: string;
|
|
29
|
+
verified?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface FixtureTacsType {
|
|
32
|
+
_id?: Types.ObjectId;
|
|
457
33
|
name: string;
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
xero: AdminXero | null;
|
|
461
|
-
contacts: AdminContact | null;
|
|
462
|
-
comparisons: AdminComparisons | null;
|
|
463
|
-
banner: AdminBanner | null;
|
|
464
|
-
discounts: AdminDiscount[];
|
|
465
|
-
links: AdminLink[];
|
|
466
|
-
ai: AdminAI;
|
|
467
|
-
reviewers: AdminReviewer[];
|
|
468
|
-
policies: AdminPolicy[];
|
|
469
|
-
tokens: AdminToken[];
|
|
470
|
-
};
|
|
471
|
-
export type AdminState = {
|
|
472
|
-
isAuthenticated: boolean;
|
|
473
|
-
admin: Admin;
|
|
474
|
-
};
|
|
475
|
-
export type Group = {
|
|
476
|
-
_id?: string;
|
|
477
|
-
name: string;
|
|
478
|
-
data: string;
|
|
479
|
-
description: string;
|
|
480
|
-
type?: GroupType;
|
|
481
|
-
};
|
|
482
|
-
export type Category = {
|
|
483
|
-
_id?: string;
|
|
484
|
-
name: string;
|
|
485
|
-
color: MantineColorName;
|
|
486
|
-
price: number;
|
|
487
|
-
invitationOnly: boolean;
|
|
488
|
-
};
|
|
489
|
-
export type ProspectType = '' | 'instagram' | 'email' | 'linkedin' | 'x' | 'facebook' | 'tiktok';
|
|
490
|
-
export type ProspectTag = '' | 'potential' | 'unfit';
|
|
491
|
-
export type ProspectJob = {
|
|
492
|
-
jobId?: string;
|
|
493
|
-
campaignId?: string;
|
|
494
|
-
messageId?: string;
|
|
495
|
-
stageId?: string;
|
|
496
|
-
sent: boolean;
|
|
497
|
-
accepted: boolean;
|
|
498
|
-
delivered: boolean;
|
|
499
|
-
opened: boolean;
|
|
500
|
-
clicked: boolean;
|
|
501
|
-
replied: boolean;
|
|
502
|
-
};
|
|
503
|
-
export type Prospect = {
|
|
504
|
-
_id?: string;
|
|
505
|
-
handle: string;
|
|
506
|
-
accountId?: string;
|
|
507
|
-
groupIds: string[];
|
|
508
|
-
nicheId?: string;
|
|
509
|
-
link: string;
|
|
510
|
-
name: string;
|
|
511
|
-
new: boolean;
|
|
512
|
-
customer: boolean;
|
|
513
|
-
subscriprion: boolean;
|
|
514
|
-
lead: boolean;
|
|
515
|
-
jobs: ProspectJob[];
|
|
516
|
-
email: string;
|
|
517
|
-
tel: string;
|
|
518
|
-
brand: string;
|
|
519
|
-
compliment: string;
|
|
520
|
-
description: string;
|
|
521
|
-
type: ProspectType;
|
|
522
|
-
tag: ProspectTag;
|
|
523
|
-
tags: Record<string, string>;
|
|
524
|
-
reachLevel: number;
|
|
525
|
-
updatedAt: string;
|
|
526
|
-
createdAt: string;
|
|
527
|
-
};
|
|
528
|
-
export type CampaignType = 'email';
|
|
529
|
-
export type CampaignStageCondition = '' | 'clicked-not-replied';
|
|
530
|
-
export type CampaignStage = {
|
|
531
|
-
id?: string;
|
|
532
|
-
name: string;
|
|
533
|
-
templateId?: string;
|
|
534
|
-
subject: string;
|
|
535
|
-
startTime: string;
|
|
536
|
-
description: string;
|
|
537
|
-
condition: CampaignStageCondition;
|
|
538
|
-
};
|
|
539
|
-
export type Campaign = {
|
|
540
|
-
_id?: string;
|
|
541
|
-
name: string;
|
|
542
|
-
type: CampaignType;
|
|
543
|
-
groupId?: string;
|
|
544
|
-
description: string;
|
|
545
|
-
activeStage: string;
|
|
546
|
-
stages: CampaignStage[];
|
|
547
|
-
started: boolean;
|
|
548
|
-
stopWhenReplied: boolean;
|
|
549
|
-
};
|
|
550
|
-
export type CampaignInsights = {
|
|
551
|
-
stageId?: string;
|
|
552
|
-
sent: number;
|
|
553
|
-
replies: number;
|
|
554
|
-
clicks: number;
|
|
555
|
-
opens: number;
|
|
556
|
-
totalProspects: number;
|
|
557
|
-
};
|
|
558
|
-
export type JobKind = 'emailCampaign' | 'paymentReminder' | 'eventReminder' | null;
|
|
559
|
-
export type JobDataEmailCampaign = CampaignStage & {
|
|
560
|
-
campaignId?: string;
|
|
561
|
-
groupId?: string;
|
|
562
|
-
};
|
|
563
|
-
export type JobDataEventReminder = Event & {
|
|
564
|
-
reminder: number;
|
|
565
|
-
};
|
|
566
|
-
export type JobData = {
|
|
567
|
-
type: JobKind;
|
|
568
|
-
id: string | null;
|
|
569
|
-
emailCampaign: JobDataEmailCampaign | null;
|
|
570
|
-
eventReminder: JobDataEventReminder | null;
|
|
571
|
-
};
|
|
572
|
-
export type Job = {
|
|
573
|
-
_id?: string;
|
|
574
|
-
name: string;
|
|
575
|
-
data: JobData | null;
|
|
576
|
-
nextRunAt: string;
|
|
577
|
-
lastRunAt: string;
|
|
578
|
-
lastFinishedAt: string;
|
|
579
|
-
};
|
|
580
|
-
export type AccountProvider = 'google' | 'linkedin' | 'instagram' | undefined;
|
|
581
|
-
export type Account = {
|
|
582
|
-
_id?: string;
|
|
583
|
-
name: string;
|
|
584
|
-
provider: AccountProvider;
|
|
585
|
-
email: string;
|
|
586
|
-
metadata: {
|
|
587
|
-
picture: string;
|
|
588
|
-
};
|
|
589
|
-
};
|
|
590
|
-
export type NotificationLevel = 'INFO' | 'WARNING' | 'CRITICAL';
|
|
591
|
-
export type Notification = {
|
|
592
|
-
_id?: string;
|
|
593
|
-
name: string;
|
|
594
|
-
body: string;
|
|
595
|
-
link: string;
|
|
596
|
-
level: NotificationLevel;
|
|
597
|
-
read: boolean;
|
|
598
|
-
createdAt: string;
|
|
599
|
-
};
|
|
600
|
-
export type SaleItemType = 'product' | 'ticket' | 'project';
|
|
601
|
-
export type SaleItem = {
|
|
602
|
-
itemId?: string;
|
|
603
|
-
itemName: string;
|
|
604
|
-
itemType: SaleItemType;
|
|
605
|
-
amount: number;
|
|
606
|
-
quantity: number;
|
|
607
|
-
};
|
|
608
|
-
export type Sale = {
|
|
609
|
-
_id?: string;
|
|
610
|
-
checkoutId?: string;
|
|
611
|
-
userId?: string;
|
|
612
|
-
orderId?: string;
|
|
613
|
-
email: string;
|
|
614
|
-
saleName: string;
|
|
615
|
-
customerName: string;
|
|
616
|
-
tel: string;
|
|
617
|
-
address: string;
|
|
618
|
-
promoCode: string;
|
|
619
|
-
promoDiscount: string;
|
|
620
|
-
subscription: boolean;
|
|
621
|
-
newClient: boolean;
|
|
622
|
-
expense: boolean;
|
|
623
|
-
items: SaleItem[];
|
|
624
|
-
pipelineId?: string;
|
|
625
|
-
pipelineName: string | '';
|
|
626
|
-
stageId?: string;
|
|
627
|
-
createdAt: string;
|
|
628
|
-
};
|
|
629
|
-
export type SaleInsightPeriod = '' | 'week' | 'month' | 'year';
|
|
630
|
-
export type TimeSeriesDict = Record<string, number> | null;
|
|
631
|
-
export type SaleInsight = {
|
|
632
|
-
period: SaleInsightPeriod;
|
|
633
|
-
startDate: string;
|
|
634
|
-
endDate: string;
|
|
635
|
-
salesData: TimeSeriesDict;
|
|
636
|
-
expensesData: TimeSeriesDict;
|
|
637
|
-
numberOfSalesData: TimeSeriesDict;
|
|
638
|
-
numberOfExpensesData: TimeSeriesDict;
|
|
639
|
-
growthData: TimeSeriesDict;
|
|
640
|
-
totalSales: number;
|
|
641
|
-
totalExpenses: number;
|
|
642
|
-
numberOfSales: number;
|
|
643
|
-
numberOfExpenses: number;
|
|
644
|
-
};
|
|
645
|
-
export type PipelineStage = {
|
|
646
|
-
id?: string;
|
|
647
|
-
name: string;
|
|
648
|
-
description: string;
|
|
649
|
-
};
|
|
650
|
-
export type Pipeline = {
|
|
651
|
-
_id?: string;
|
|
652
|
-
name: string;
|
|
653
|
-
groupId?: string;
|
|
654
|
-
description: string;
|
|
655
|
-
stages: PipelineStage[];
|
|
656
|
-
};
|
|
657
|
-
export type Section = {
|
|
658
|
-
_id?: string;
|
|
659
|
-
stadiumId?: string;
|
|
660
|
-
name: string;
|
|
661
|
-
numberOfRows: number;
|
|
662
|
-
numberOfCols: number;
|
|
663
|
-
};
|
|
664
|
-
export type Seat = {
|
|
665
|
-
_id?: string;
|
|
666
|
-
sectionId?: string;
|
|
667
|
-
stadiumId?: string;
|
|
668
|
-
name: string;
|
|
669
|
-
row?: number;
|
|
670
|
-
col?: number;
|
|
671
|
-
};
|
|
672
|
-
export type Fixture = {
|
|
673
|
-
_id?: string;
|
|
674
|
-
name: string;
|
|
675
|
-
date: string;
|
|
676
|
-
stadiumId?: string;
|
|
677
|
-
typeId?: string;
|
|
678
|
-
imgSrc: string;
|
|
679
|
-
description: string;
|
|
680
|
-
sectionsCategory: Record<string, SectionsCategory>;
|
|
681
|
-
};
|
|
682
|
-
export type Occupance = {
|
|
683
|
-
_id?: string;
|
|
684
|
-
seatId?: string;
|
|
685
|
-
sectionId?: string;
|
|
686
|
-
fixtureId?: string;
|
|
687
|
-
occupied: boolean;
|
|
688
|
-
reserved: boolean;
|
|
689
|
-
locked: boolean;
|
|
690
|
-
reservedAt: Date | null;
|
|
691
|
-
reservationId: string;
|
|
692
|
-
};
|
|
693
|
-
export type Ticket = {
|
|
694
|
-
_id?: string;
|
|
695
|
-
userId?: string;
|
|
696
|
-
ticketCode?: string;
|
|
697
|
-
fixtureId?: string;
|
|
698
|
-
sectionId?: string;
|
|
699
|
-
seatId?: string;
|
|
700
|
-
orderId?: string;
|
|
701
|
-
name: string;
|
|
702
|
-
email: string;
|
|
703
|
-
tel: string;
|
|
704
|
-
};
|
|
705
|
-
export type SortByValue = 'createdAt:asc' | 'createdAt:desc' | 'updatedAt:asc' | 'updatedAt:desc';
|
|
706
|
-
export type Option<T extends string> = {
|
|
707
|
-
value: T;
|
|
708
|
-
label: string;
|
|
709
|
-
};
|
|
710
|
-
export type InputsOptions = {
|
|
711
|
-
sortby: Option<SortByValue>[];
|
|
712
|
-
saleInsightPeriod: Option<SaleInsight['period']>[];
|
|
713
|
-
campaignStageCondition: Option<CampaignStage['condition']>[];
|
|
714
|
-
adminLinkType: Option<AdminLink['type']>[];
|
|
715
|
-
adminLinkGroup: Option<AdminLink['group']>[];
|
|
716
|
-
prospectTypeOptions: Option<Prospect['type']>[];
|
|
717
|
-
prospectTags: Option<Prospect['tag']>[];
|
|
718
|
-
subscriptionPeriod: Option<Product['subscriptionPeriod']>[];
|
|
719
|
-
bookingEventType: Option<Event['eventType']>[];
|
|
720
|
-
projectTaskStatus: Option<ProjectTask['status']>[];
|
|
721
|
-
projectTaskType: Option<ProjectTask['type']>[];
|
|
722
|
-
};
|
|
34
|
+
date: Date;
|
|
35
|
+
}
|