@ibiliaze/global-vars 1.240.0 → 1.241.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.
|
@@ -14,6 +14,7 @@ import type { AccountProvider } from '../account';
|
|
|
14
14
|
import type { LinkGroup, LinkType } from '../settings';
|
|
15
15
|
import type { LanguageType } from '../languages';
|
|
16
16
|
export type ISODateString = string;
|
|
17
|
+
export type NameLangs = Record<LanguageType, string>;
|
|
17
18
|
export interface SeatBase<Id, TDate> {
|
|
18
19
|
_id?: Id;
|
|
19
20
|
sectionId: Id;
|
|
@@ -28,18 +29,18 @@ export interface AddOnBase {
|
|
|
28
29
|
id: string | undefined;
|
|
29
30
|
name: string;
|
|
30
31
|
price: number;
|
|
31
|
-
nameLangs?:
|
|
32
|
+
nameLangs?: NameLangs;
|
|
32
33
|
description?: string;
|
|
33
|
-
descriptionLangs?:
|
|
34
|
+
descriptionLangs?: NameLangs;
|
|
34
35
|
}
|
|
35
36
|
export interface BannerBase {
|
|
36
37
|
show: boolean;
|
|
37
38
|
title?: string;
|
|
38
|
-
titleLangs?:
|
|
39
|
+
titleLangs?: NameLangs;
|
|
39
40
|
text?: string;
|
|
40
|
-
textLangs?:
|
|
41
|
+
textLangs?: NameLangs;
|
|
41
42
|
bottomText?: string;
|
|
42
|
-
bottomTextLangs?:
|
|
43
|
+
bottomTextLangs?: NameLangs;
|
|
43
44
|
color?: string;
|
|
44
45
|
dark: boolean;
|
|
45
46
|
}
|
|
@@ -58,21 +59,21 @@ export interface ContactBase {
|
|
|
58
59
|
export interface DiscountBase<Id> {
|
|
59
60
|
_id?: Id;
|
|
60
61
|
name: string;
|
|
61
|
-
nameLangs?:
|
|
62
|
+
nameLangs?: NameLangs;
|
|
62
63
|
amount: number;
|
|
63
64
|
showOnHomePage?: boolean;
|
|
64
65
|
}
|
|
65
66
|
export interface ExampleBase {
|
|
66
67
|
id: string | undefined;
|
|
67
68
|
title?: string;
|
|
68
|
-
titleLangs?:
|
|
69
|
+
titleLangs?: NameLangs;
|
|
69
70
|
link?: string;
|
|
70
71
|
imgUrl?: string;
|
|
71
72
|
}
|
|
72
73
|
export interface LinkBase<Id> {
|
|
73
74
|
_id?: Id;
|
|
74
75
|
name: string;
|
|
75
|
-
nameLangs?:
|
|
76
|
+
nameLangs?: NameLangs;
|
|
76
77
|
type: LinkType;
|
|
77
78
|
group: LinkGroup;
|
|
78
79
|
link: string;
|
|
@@ -80,9 +81,9 @@ export interface LinkBase<Id> {
|
|
|
80
81
|
export interface QnaBase {
|
|
81
82
|
id: string | undefined;
|
|
82
83
|
question?: string;
|
|
83
|
-
questionLangs?:
|
|
84
|
+
questionLangs?: NameLangs;
|
|
84
85
|
answer?: string;
|
|
85
|
-
answerLangs?:
|
|
86
|
+
answerLangs?: NameLangs;
|
|
86
87
|
}
|
|
87
88
|
export interface StageBase {
|
|
88
89
|
id: string | undefined;
|
|
@@ -133,12 +134,12 @@ export interface AdminBase<Id, TDate> {
|
|
|
133
134
|
export interface BlogBase<Id, TDate> {
|
|
134
135
|
_id?: Id;
|
|
135
136
|
title: string;
|
|
136
|
-
titleLangs?:
|
|
137
|
+
titleLangs?: NameLangs;
|
|
137
138
|
subtitle: string;
|
|
138
|
-
subtitleLangs?:
|
|
139
|
+
subtitleLangs?: NameLangs;
|
|
139
140
|
groupId: Id;
|
|
140
141
|
body?: string;
|
|
141
|
-
bodyLangs?:
|
|
142
|
+
bodyLangs?: NameLangs;
|
|
142
143
|
internal?: boolean;
|
|
143
144
|
img?: string;
|
|
144
145
|
createdAt?: TDate;
|
|
@@ -179,7 +180,7 @@ export interface CampaignJobStages {
|
|
|
179
180
|
export interface CategoryBase<Id, TDate> {
|
|
180
181
|
_id?: Id;
|
|
181
182
|
name: string;
|
|
182
|
-
nameLangs?:
|
|
183
|
+
nameLangs?: NameLangs;
|
|
183
184
|
description?: string;
|
|
184
185
|
color?: string;
|
|
185
186
|
createdAt?: TDate;
|
|
@@ -231,7 +232,7 @@ export interface EventCategoryFlowBase<Id> {
|
|
|
231
232
|
export interface EventCategoryBase<Id> {
|
|
232
233
|
categoryId: Id;
|
|
233
234
|
name: string;
|
|
234
|
-
nameLangs?:
|
|
235
|
+
nameLangs?: NameLangs;
|
|
235
236
|
color: string;
|
|
236
237
|
price: number;
|
|
237
238
|
flows: EventCategoryFlowBase<Id>[];
|
|
@@ -244,13 +245,13 @@ export interface EventCategoryBase<Id> {
|
|
|
244
245
|
export interface EventBase<Id, TDate> {
|
|
245
246
|
_id?: Id;
|
|
246
247
|
name: string;
|
|
247
|
-
nameLangs?:
|
|
248
|
+
nameLangs?: NameLangs;
|
|
248
249
|
date: TDate;
|
|
249
250
|
venueId: string;
|
|
250
251
|
typeId: Id;
|
|
251
252
|
imgSrc?: string;
|
|
252
253
|
description?: string;
|
|
253
|
-
descriptionLangs?:
|
|
254
|
+
descriptionLangs?: NameLangs;
|
|
254
255
|
minimumReaders?: number;
|
|
255
256
|
active?: boolean;
|
|
256
257
|
categories?: EventCategoryBase<Id>[];
|
|
@@ -260,10 +261,10 @@ export interface EventBase<Id, TDate> {
|
|
|
260
261
|
export interface SeasonBase<Id, TDate> {
|
|
261
262
|
_id?: Id;
|
|
262
263
|
name: string;
|
|
263
|
-
nameLangs?:
|
|
264
|
+
nameLangs?: NameLangs;
|
|
264
265
|
typeIds: Id[];
|
|
265
266
|
description?: string;
|
|
266
|
-
descriptionLangs?:
|
|
267
|
+
descriptionLangs?: NameLangs;
|
|
267
268
|
startDate: TDate;
|
|
268
269
|
endDate: TDate;
|
|
269
270
|
categories?: EventCategoryBase<Id>[];
|
|
@@ -281,9 +282,10 @@ export interface FlowBase<Id, TDate> {
|
|
|
281
282
|
export interface GroupBase<Id, TDate> {
|
|
282
283
|
_id?: Id;
|
|
283
284
|
name: string;
|
|
285
|
+
nameLangs?: NameLangs;
|
|
284
286
|
data?: string;
|
|
285
287
|
description?: string;
|
|
286
|
-
descriptionLangs?:
|
|
288
|
+
descriptionLangs?: NameLangs;
|
|
287
289
|
type: GroupType;
|
|
288
290
|
createdAt?: TDate;
|
|
289
291
|
updatedAt?: TDate;
|
|
@@ -356,7 +358,7 @@ export interface OccupanceBase<Id, TDate> {
|
|
|
356
358
|
category?: {
|
|
357
359
|
categoryId: Id;
|
|
358
360
|
name: string;
|
|
359
|
-
nameLangs?:
|
|
361
|
+
nameLangs?: NameLangs;
|
|
360
362
|
color: string;
|
|
361
363
|
};
|
|
362
364
|
ticketCode: string;
|
|
@@ -412,7 +414,7 @@ export type TicketBase<Id, TDate> = {
|
|
|
412
414
|
block: string;
|
|
413
415
|
eventId: Id;
|
|
414
416
|
eventName: string;
|
|
415
|
-
eventNameLangs?:
|
|
417
|
+
eventNameLangs?: NameLangs;
|
|
416
418
|
eventDate: TDate;
|
|
417
419
|
orderId: string;
|
|
418
420
|
customerId: Id;
|
|
@@ -422,12 +424,12 @@ export type TicketBase<Id, TDate> = {
|
|
|
422
424
|
tel: string;
|
|
423
425
|
categoryId: Id;
|
|
424
426
|
categoryName: string;
|
|
425
|
-
categoryNameLangs?:
|
|
427
|
+
categoryNameLangs?: NameLangs;
|
|
426
428
|
categoryPrice: number;
|
|
427
429
|
categoryColor?: string;
|
|
428
430
|
seasonId?: Id;
|
|
429
431
|
seasonName?: string;
|
|
430
|
-
seasonNameLangs?:
|
|
432
|
+
seasonNameLangs?: NameLangs;
|
|
431
433
|
seasonStartDate?: TDate;
|
|
432
434
|
seasonEndDate?: TDate;
|
|
433
435
|
flowId: Id;
|
|
@@ -517,7 +519,7 @@ export interface PageBase<Id, TDate> {
|
|
|
517
519
|
export interface ProductBase<Id, TDate> {
|
|
518
520
|
_id?: Id;
|
|
519
521
|
name: string;
|
|
520
|
-
nameLangs?:
|
|
522
|
+
nameLangs?: NameLangs;
|
|
521
523
|
groupId: Id;
|
|
522
524
|
price: number;
|
|
523
525
|
discount?: number;
|
|
@@ -534,7 +536,7 @@ export interface ProductBase<Id, TDate> {
|
|
|
534
536
|
purchases?: number;
|
|
535
537
|
icon?: string;
|
|
536
538
|
description?: string;
|
|
537
|
-
descriptionLangs?:
|
|
539
|
+
descriptionLangs?: NameLangs;
|
|
538
540
|
subscriptionPeriod?: SubscriptionPeriod;
|
|
539
541
|
copy?: string;
|
|
540
542
|
images?: string[];
|
|
@@ -607,6 +609,7 @@ export interface ItemBase<Id, TDate> {
|
|
|
607
609
|
_id?: Id;
|
|
608
610
|
cartId: string;
|
|
609
611
|
name: string;
|
|
612
|
+
nameLangs?: NameLangs;
|
|
610
613
|
quantity: number;
|
|
611
614
|
price: number;
|
|
612
615
|
serverNowMs: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/global-vars",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.241.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.241.0 -m 'v1.241.0'; git push origin v1.241.0; git push",
|
|
26
26
|
"push": "npm run build; npm run git; npm run pub"
|
|
27
27
|
},
|
|
28
28
|
"author": "Ibi Hasanli",
|