@ibiliaze/global-vars 1.238.0 → 1.239.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.
package/dist/languages.d.ts
CHANGED
|
@@ -10,10 +10,6 @@ export declare const languages: readonly [{
|
|
|
10
10
|
readonly name: "Русский";
|
|
11
11
|
readonly lang: "ru";
|
|
12
12
|
readonly flag: "🇷🇺";
|
|
13
|
-
}, {
|
|
14
|
-
readonly name: "Türkçe";
|
|
15
|
-
readonly lang: "tr";
|
|
16
|
-
readonly flag: "🇹🇷";
|
|
17
13
|
}];
|
|
18
14
|
export type LanguageNameType = (typeof languages)[number]['name'];
|
|
19
15
|
export type LanguageType = (typeof languages)[number]['lang'];
|
package/dist/languages.js
CHANGED
|
@@ -84,17 +84,6 @@ export interface QnaBase {
|
|
|
84
84
|
answer?: string;
|
|
85
85
|
answerLangs?: Record<LanguageType, string>;
|
|
86
86
|
}
|
|
87
|
-
export interface ReviewerBase {
|
|
88
|
-
reviewerName: string;
|
|
89
|
-
logo?: string;
|
|
90
|
-
maxRating: number;
|
|
91
|
-
rating: number;
|
|
92
|
-
numberOfReviews: number;
|
|
93
|
-
link: string;
|
|
94
|
-
urlName: string;
|
|
95
|
-
shareLink?: string;
|
|
96
|
-
otherLinks?: string[];
|
|
97
|
-
}
|
|
98
87
|
export interface StageBase {
|
|
99
88
|
id: string | undefined;
|
|
100
89
|
name?: string;
|
|
@@ -115,11 +104,11 @@ export interface AccountBase<Id, TDate> {
|
|
|
115
104
|
createdAt?: TDate;
|
|
116
105
|
updatedAt?: TDate;
|
|
117
106
|
}
|
|
118
|
-
export interface
|
|
107
|
+
export interface TokenBase<Id> {
|
|
119
108
|
_id?: Id;
|
|
120
109
|
token: string;
|
|
121
110
|
ip?: string;
|
|
122
|
-
|
|
111
|
+
userAgent?: string;
|
|
123
112
|
city?: string;
|
|
124
113
|
region?: string;
|
|
125
114
|
country?: string;
|
|
@@ -137,7 +126,7 @@ export interface AdminBase<Id, TDate> {
|
|
|
137
126
|
links?: LinkBase<Id>[];
|
|
138
127
|
contacts?: ContactBase;
|
|
139
128
|
banner?: BannerBase;
|
|
140
|
-
tokens?:
|
|
129
|
+
tokens?: TokenBase<Id>[];
|
|
141
130
|
createdAt?: TDate;
|
|
142
131
|
updatedAt?: TDate;
|
|
143
132
|
}
|
|
@@ -190,6 +179,7 @@ export interface CampaignJobStages {
|
|
|
190
179
|
export interface CategoryBase<Id, TDate> {
|
|
191
180
|
_id?: Id;
|
|
192
181
|
name: string;
|
|
182
|
+
nameLangs?: Record<LanguageType, string>;
|
|
193
183
|
description?: string;
|
|
194
184
|
color?: string;
|
|
195
185
|
createdAt?: TDate;
|
|
@@ -253,6 +243,7 @@ export interface EventCategoryBase<Id> {
|
|
|
253
243
|
export interface EventBase<Id, TDate> {
|
|
254
244
|
_id?: Id;
|
|
255
245
|
name: string;
|
|
246
|
+
nameLangs?: Record<LanguageType, string>;
|
|
256
247
|
date: TDate;
|
|
257
248
|
venueId: string;
|
|
258
249
|
typeId: Id;
|
|
@@ -268,6 +259,7 @@ export interface EventBase<Id, TDate> {
|
|
|
268
259
|
export interface SeasonBase<Id, TDate> {
|
|
269
260
|
_id?: Id;
|
|
270
261
|
name: string;
|
|
262
|
+
nameLangs?: Record<LanguageType, string>;
|
|
271
263
|
typeIds: Id[];
|
|
272
264
|
description?: string;
|
|
273
265
|
descriptionLangs?: Record<LanguageType, string>;
|
|
@@ -399,7 +391,7 @@ export type PopulatedOccupance<Id, TDate> = Omit<OccupanceBase<Id, TDate>, 'even
|
|
|
399
391
|
seatId: SeatBase<Id, TDate>;
|
|
400
392
|
flowId: FlowBase<Id, TDate>;
|
|
401
393
|
};
|
|
402
|
-
export type
|
|
394
|
+
export type TicketBase<Id, TDate> = {
|
|
403
395
|
_id: Id;
|
|
404
396
|
ticketCode: string;
|
|
405
397
|
venueId: string;
|
|
@@ -436,6 +428,8 @@ export type FlatOccupance<Id, TDate> = {
|
|
|
436
428
|
flowId: Id;
|
|
437
429
|
flowName: string;
|
|
438
430
|
flowType: FlowType;
|
|
431
|
+
sessionId?: string;
|
|
432
|
+
flags?: FlagBase<TDate>[];
|
|
439
433
|
};
|
|
440
434
|
export interface ReviewItemBase {
|
|
441
435
|
id?: string;
|
|
@@ -653,16 +647,6 @@ export interface SectionBase<Id, TDate> {
|
|
|
653
647
|
createdAt?: TDate;
|
|
654
648
|
updatedAt?: TDate;
|
|
655
649
|
}
|
|
656
|
-
export interface UserTokenBase<Id> {
|
|
657
|
-
_id?: Id;
|
|
658
|
-
token: string;
|
|
659
|
-
ip?: string;
|
|
660
|
-
userAgent?: string;
|
|
661
|
-
city?: string;
|
|
662
|
-
region?: string;
|
|
663
|
-
country?: string;
|
|
664
|
-
loc?: string;
|
|
665
|
-
}
|
|
666
650
|
export interface UserBase<Id, TDate> {
|
|
667
651
|
_id?: Id;
|
|
668
652
|
email: string;
|
|
@@ -673,23 +657,13 @@ export interface UserBase<Id, TDate> {
|
|
|
673
657
|
avatar?: string;
|
|
674
658
|
roles?: Id[];
|
|
675
659
|
flowIds?: Id[];
|
|
676
|
-
tokens?:
|
|
660
|
+
tokens?: TokenBase<Id>[];
|
|
677
661
|
createdAt?: TDate;
|
|
678
662
|
updatedAt?: TDate;
|
|
679
663
|
}
|
|
680
664
|
export type UserTypeWithPopulatedRolesBase<Id, TDate> = UserBase<Id, TDate> & {
|
|
681
665
|
populatedRoles: RoleBase<Id, TDate>[];
|
|
682
666
|
};
|
|
683
|
-
export interface CustomerTokenBase<Id> {
|
|
684
|
-
_id?: Id;
|
|
685
|
-
token: string;
|
|
686
|
-
ip?: string;
|
|
687
|
-
customerAgent?: string;
|
|
688
|
-
city?: string;
|
|
689
|
-
region?: string;
|
|
690
|
-
country?: string;
|
|
691
|
-
loc?: string;
|
|
692
|
-
}
|
|
693
667
|
export interface CustomerBase<Id, TDate> {
|
|
694
668
|
_id?: Id;
|
|
695
669
|
email: string;
|
|
@@ -703,21 +677,13 @@ export interface CustomerBase<Id, TDate> {
|
|
|
703
677
|
country?: Country;
|
|
704
678
|
language?: LanguageType;
|
|
705
679
|
gender?: Gender;
|
|
706
|
-
tokens?:
|
|
680
|
+
tokens?: TokenBase<Id>[];
|
|
707
681
|
createdAt?: TDate;
|
|
708
682
|
updatedAt?: TDate;
|
|
709
683
|
}
|
|
710
|
-
export
|
|
711
|
-
_id?: Id;
|
|
712
|
-
token: string;
|
|
713
|
-
ip?: string;
|
|
714
|
-
readerAgent?: string;
|
|
715
|
-
city?: string;
|
|
716
|
-
region?: string;
|
|
717
|
-
country?: string;
|
|
718
|
-
loc?: string;
|
|
684
|
+
export type ReaderTokenBase<Id, TDate> = {
|
|
719
685
|
expiresAt?: TDate;
|
|
720
|
-
}
|
|
686
|
+
} & TokenBase<Id>;
|
|
721
687
|
export interface ReaderBase<Id, TDate> {
|
|
722
688
|
_id?: Id;
|
|
723
689
|
name: string;
|
|
@@ -738,25 +704,6 @@ export interface FlagBase<TDate> {
|
|
|
738
704
|
time: TDate;
|
|
739
705
|
readerName: string;
|
|
740
706
|
}
|
|
741
|
-
export interface TicketBase<Id, TDate> {
|
|
742
|
-
_id?: Id;
|
|
743
|
-
ticketCode: string;
|
|
744
|
-
eventId: Id;
|
|
745
|
-
eventName: string;
|
|
746
|
-
eventDate: TDate;
|
|
747
|
-
orderId: string;
|
|
748
|
-
sectionId: Id;
|
|
749
|
-
row: number;
|
|
750
|
-
seat: number;
|
|
751
|
-
purchaseTime: TDate;
|
|
752
|
-
gate?: string;
|
|
753
|
-
area?: string;
|
|
754
|
-
block?: string;
|
|
755
|
-
sessionId?: string;
|
|
756
|
-
flags?: FlagBase<TDate>[];
|
|
757
|
-
createdAt?: TDate;
|
|
758
|
-
updatedAt?: TDate;
|
|
759
|
-
}
|
|
760
707
|
export type TicketTacsMeshBase<TDate> = {
|
|
761
708
|
flags?: FlagBase<TDate>[];
|
|
762
709
|
ticketCode: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EventBase, SeasonBase } from '../inputsDefault';
|
|
2
2
|
export declare const ticketRoleDefs: <TId, TDate>() => readonly [{
|
|
3
3
|
readonly method: "get";
|
|
4
4
|
readonly path: "/ticket/customer";
|
|
@@ -2072,7 +2072,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
2072
2072
|
readonly role: "getTicketsCustomer";
|
|
2073
2073
|
readonly name: "Get tickets for customer";
|
|
2074
2074
|
readonly response_200: {
|
|
2075
|
-
tickets:
|
|
2075
|
+
tickets: FlatOccupance<TId_23, TDate_23>[];
|
|
2076
2076
|
count: number;
|
|
2077
2077
|
};
|
|
2078
2078
|
readonly response_500: {
|
|
@@ -2085,7 +2085,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
2085
2085
|
readonly role: "getTicketsAdmin";
|
|
2086
2086
|
readonly name: "Get tickets for admin";
|
|
2087
2087
|
readonly response_200: {
|
|
2088
|
-
tickets:
|
|
2088
|
+
tickets: FlatOccupance<TId_23, TDate_23>[];
|
|
2089
2089
|
count: number;
|
|
2090
2090
|
};
|
|
2091
2091
|
readonly response_500: {
|
|
@@ -2150,7 +2150,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
2150
2150
|
readonly role: "getTicketInfoByOrderId";
|
|
2151
2151
|
readonly name: "Get ticket info by order ID";
|
|
2152
2152
|
readonly response_200: {
|
|
2153
|
-
tickets:
|
|
2153
|
+
tickets: FlatOccupance<TId_23, TDate_23>[];
|
|
2154
2154
|
message: string;
|
|
2155
2155
|
};
|
|
2156
2156
|
readonly response_400: {
|
|
@@ -4679,7 +4679,7 @@ declare const allApis: readonly [{
|
|
|
4679
4679
|
readonly role: "getTicketsCustomer";
|
|
4680
4680
|
readonly name: "Get tickets for customer";
|
|
4681
4681
|
readonly response_200: {
|
|
4682
|
-
tickets:
|
|
4682
|
+
tickets: FlatOccupance<TId_22, TDate_22>[];
|
|
4683
4683
|
count: number;
|
|
4684
4684
|
};
|
|
4685
4685
|
readonly response_500: {
|
|
@@ -4692,7 +4692,7 @@ declare const allApis: readonly [{
|
|
|
4692
4692
|
readonly role: "getTicketsAdmin";
|
|
4693
4693
|
readonly name: "Get tickets for admin";
|
|
4694
4694
|
readonly response_200: {
|
|
4695
|
-
tickets:
|
|
4695
|
+
tickets: FlatOccupance<TId_22, TDate_22>[];
|
|
4696
4696
|
count: number;
|
|
4697
4697
|
};
|
|
4698
4698
|
readonly response_500: {
|
|
@@ -4757,7 +4757,7 @@ declare const allApis: readonly [{
|
|
|
4757
4757
|
readonly role: "getTicketInfoByOrderId";
|
|
4758
4758
|
readonly name: "Get ticket info by order ID";
|
|
4759
4759
|
readonly response_200: {
|
|
4760
|
-
tickets:
|
|
4760
|
+
tickets: FlatOccupance<TId_22, TDate_22>[];
|
|
4761
4761
|
message: string;
|
|
4762
4762
|
};
|
|
4763
4763
|
readonly response_400: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/global-vars",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.239.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "tsc",
|
|
24
24
|
"pub": "npm publish --access public",
|
|
25
|
-
"git": "git add .; git commit -m 'changes'; git tag -a v1.
|
|
25
|
+
"git": "git add .; git commit -m 'changes'; git tag -a v1.239.0 -m 'v1.239.0'; git push origin v1.239.0; git push",
|
|
26
26
|
"push": "npm run build; npm run git; npm run pub"
|
|
27
27
|
},
|
|
28
28
|
"author": "Ibi Hasanli",
|