@ibiliaze/global-vars 1.236.0 → 1.237.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.
|
@@ -28,33 +28,21 @@ export interface AddOnBase {
|
|
|
28
28
|
id: string | undefined;
|
|
29
29
|
name: string;
|
|
30
30
|
price: number;
|
|
31
|
+
nameLangs?: Map<LanguageType, string>;
|
|
31
32
|
description?: string;
|
|
32
|
-
|
|
33
|
-
export interface AIBase {
|
|
34
|
-
model: string;
|
|
35
|
-
temperature: number;
|
|
36
|
-
top_p: number;
|
|
37
|
-
max_tokens: number;
|
|
38
|
-
spent: number;
|
|
33
|
+
descriptionLangs?: Map<LanguageType, string>;
|
|
39
34
|
}
|
|
40
35
|
export interface BannerBase {
|
|
41
36
|
show: boolean;
|
|
42
37
|
title?: string;
|
|
38
|
+
titleLangs?: Map<LanguageType, string>;
|
|
43
39
|
text?: string;
|
|
40
|
+
textLangs?: Map<LanguageType, string>;
|
|
44
41
|
bottomText?: string;
|
|
42
|
+
bottomTextLangs?: Map<LanguageType, string>;
|
|
45
43
|
color?: string;
|
|
46
44
|
dark: boolean;
|
|
47
45
|
}
|
|
48
|
-
export interface ComparisonsBase {
|
|
49
|
-
comparisonOneTitle?: string;
|
|
50
|
-
comparisonOneDescription?: string;
|
|
51
|
-
'comparisonOne-1'?: string;
|
|
52
|
-
'comparisonOne-2'?: string;
|
|
53
|
-
comparisonTwoTitle?: string;
|
|
54
|
-
comparisonTwoDescription?: string;
|
|
55
|
-
'comparisonTwo-1'?: string;
|
|
56
|
-
'comparisonTwo-2'?: string;
|
|
57
|
-
}
|
|
58
46
|
export interface ContactBase {
|
|
59
47
|
email1?: string;
|
|
60
48
|
website?: string;
|
|
@@ -70,45 +58,31 @@ export interface ContactBase {
|
|
|
70
58
|
export interface DiscountBase<Id> {
|
|
71
59
|
_id?: Id;
|
|
72
60
|
name: string;
|
|
61
|
+
nameLangs?: Map<LanguageType, string>;
|
|
73
62
|
amount: number;
|
|
74
63
|
showOnHomePage?: boolean;
|
|
75
64
|
}
|
|
76
65
|
export interface ExampleBase {
|
|
77
66
|
id: string | undefined;
|
|
78
67
|
title?: string;
|
|
68
|
+
titleLangs?: Map<LanguageType, string>;
|
|
79
69
|
link?: string;
|
|
80
70
|
imgUrl?: string;
|
|
81
71
|
}
|
|
82
|
-
export interface FactorBase {
|
|
83
|
-
id: string;
|
|
84
|
-
name?: string;
|
|
85
|
-
price?: number;
|
|
86
|
-
}
|
|
87
|
-
export interface LineItemBase {
|
|
88
|
-
id: string;
|
|
89
|
-
input?: string;
|
|
90
|
-
header?: string;
|
|
91
|
-
price?: number;
|
|
92
|
-
quantity?: number;
|
|
93
|
-
maxPrice?: number;
|
|
94
|
-
minPrice?: number;
|
|
95
|
-
lines?: string[];
|
|
96
|
-
}
|
|
97
72
|
export interface LinkBase<Id> {
|
|
98
73
|
_id?: Id;
|
|
99
74
|
name: string;
|
|
75
|
+
nameLangs?: Map<LanguageType, string>;
|
|
100
76
|
type: LinkType;
|
|
101
77
|
group: LinkGroup;
|
|
102
78
|
link: string;
|
|
103
79
|
}
|
|
104
|
-
export interface PolicyBase {
|
|
105
|
-
name: string;
|
|
106
|
-
body: string;
|
|
107
|
-
}
|
|
108
80
|
export interface QnaBase {
|
|
109
81
|
id: string | undefined;
|
|
110
82
|
question?: string;
|
|
83
|
+
questionLangs?: Map<LanguageType, string>;
|
|
111
84
|
answer?: string;
|
|
85
|
+
answerLangs?: Map<LanguageType, string>;
|
|
112
86
|
}
|
|
113
87
|
export interface ReviewerBase {
|
|
114
88
|
reviewerName: string;
|
|
@@ -126,19 +100,6 @@ export interface StageBase {
|
|
|
126
100
|
name?: string;
|
|
127
101
|
description?: string;
|
|
128
102
|
}
|
|
129
|
-
export interface DayBase {
|
|
130
|
-
start?: number;
|
|
131
|
-
end?: number;
|
|
132
|
-
}
|
|
133
|
-
export interface WorkingHoursBase {
|
|
134
|
-
Mon?: DayBase;
|
|
135
|
-
Tue?: DayBase;
|
|
136
|
-
Wed?: DayBase;
|
|
137
|
-
Thu?: DayBase;
|
|
138
|
-
Fri?: DayBase;
|
|
139
|
-
Sat?: DayBase;
|
|
140
|
-
Sun?: DayBase;
|
|
141
|
-
}
|
|
142
103
|
export interface AccountBase<Id, TDate> {
|
|
143
104
|
_id?: Id;
|
|
144
105
|
name: string;
|
|
@@ -183,9 +144,12 @@ export interface AdminBase<Id, TDate> {
|
|
|
183
144
|
export interface BlogBase<Id, TDate> {
|
|
184
145
|
_id?: Id;
|
|
185
146
|
title: string;
|
|
147
|
+
titleLangs?: Map<LanguageType, string>;
|
|
186
148
|
subtitle: string;
|
|
149
|
+
subtitleLangs?: Map<LanguageType, string>;
|
|
187
150
|
groupId: Id;
|
|
188
151
|
body?: string;
|
|
152
|
+
bodyLangs?: Map<LanguageType, string>;
|
|
189
153
|
internal?: boolean;
|
|
190
154
|
img?: string;
|
|
191
155
|
createdAt?: TDate;
|
|
@@ -294,6 +258,7 @@ export interface EventBase<Id, TDate> {
|
|
|
294
258
|
typeId: Id;
|
|
295
259
|
imgSrc?: string;
|
|
296
260
|
description?: string;
|
|
261
|
+
descriptionLangs?: Map<LanguageType, string>;
|
|
297
262
|
minimumReaders?: number;
|
|
298
263
|
active?: boolean;
|
|
299
264
|
categories?: EventCategoryBase<Id>[];
|
|
@@ -305,6 +270,7 @@ export interface SeasonBase<Id, TDate> {
|
|
|
305
270
|
name: string;
|
|
306
271
|
typeIds: Id[];
|
|
307
272
|
description?: string;
|
|
273
|
+
descriptionLangs?: Map<LanguageType, string>;
|
|
308
274
|
startDate: TDate;
|
|
309
275
|
endDate: TDate;
|
|
310
276
|
categories?: EventCategoryBase<Id>[];
|
|
@@ -324,6 +290,7 @@ export interface GroupBase<Id, TDate> {
|
|
|
324
290
|
name: string;
|
|
325
291
|
data?: string;
|
|
326
292
|
description?: string;
|
|
293
|
+
descriptionLangs?: Map<LanguageType, string>;
|
|
327
294
|
type: GroupType;
|
|
328
295
|
createdAt?: TDate;
|
|
329
296
|
updatedAt?: TDate;
|
|
@@ -550,7 +517,8 @@ export interface PageBase<Id, TDate> {
|
|
|
550
517
|
}
|
|
551
518
|
export interface ProductBase<Id, TDate> {
|
|
552
519
|
_id?: Id;
|
|
553
|
-
|
|
520
|
+
name: string;
|
|
521
|
+
nameLangs: Map<LanguageType, string>;
|
|
554
522
|
groupId: Id;
|
|
555
523
|
price: number;
|
|
556
524
|
discount?: number;
|
|
@@ -567,6 +535,7 @@ export interface ProductBase<Id, TDate> {
|
|
|
567
535
|
purchases?: number;
|
|
568
536
|
icon?: string;
|
|
569
537
|
description?: string;
|
|
538
|
+
descriptionLangs?: Map<LanguageType, string>;
|
|
570
539
|
subscriptionPeriod?: SubscriptionPeriod;
|
|
571
540
|
copy?: string;
|
|
572
541
|
images?: string[];
|
|
@@ -668,7 +637,7 @@ export interface SaleBase<Id, TDate> {
|
|
|
668
637
|
occupance?: Pick<OccupanceBase<Id, TDate>, '_id'>;
|
|
669
638
|
season?: Pick<SeasonBase<Id, TDate>, '_id' | 'name'>;
|
|
670
639
|
flow?: Pick<FlowBase<Id, TDate>, '_id' | 'name' | 'type'>;
|
|
671
|
-
product?: Pick<ProductBase<Id, TDate>, '_id' | '
|
|
640
|
+
product?: Pick<ProductBase<Id, TDate>, '_id' | 'name' | 'price'>;
|
|
672
641
|
createdAt?: TDate;
|
|
673
642
|
updatedAt?: TDate;
|
|
674
643
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/global-vars",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.237.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.237.0 -m 'v1.237.0'; git push origin v1.237.0; git push",
|
|
26
26
|
"push": "npm run build; npm run git; npm run pub"
|
|
27
27
|
},
|
|
28
28
|
"author": "Ibi Hasanli",
|