@ibiliaze/global-vars 1.237.0 → 1.238.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,18 +28,18 @@ export interface AddOnBase {
28
28
  id: string | undefined;
29
29
  name: string;
30
30
  price: number;
31
- nameLangs?: Map<LanguageType, string>;
31
+ nameLangs?: Record<LanguageType, string>;
32
32
  description?: string;
33
- descriptionLangs?: Map<LanguageType, string>;
33
+ descriptionLangs?: Record<LanguageType, string>;
34
34
  }
35
35
  export interface BannerBase {
36
36
  show: boolean;
37
37
  title?: string;
38
- titleLangs?: Map<LanguageType, string>;
38
+ titleLangs?: Record<LanguageType, string>;
39
39
  text?: string;
40
- textLangs?: Map<LanguageType, string>;
40
+ textLangs?: Record<LanguageType, string>;
41
41
  bottomText?: string;
42
- bottomTextLangs?: Map<LanguageType, string>;
42
+ bottomTextLangs?: Record<LanguageType, string>;
43
43
  color?: string;
44
44
  dark: boolean;
45
45
  }
@@ -58,21 +58,21 @@ export interface ContactBase {
58
58
  export interface DiscountBase<Id> {
59
59
  _id?: Id;
60
60
  name: string;
61
- nameLangs?: Map<LanguageType, string>;
61
+ nameLangs?: Record<LanguageType, string>;
62
62
  amount: number;
63
63
  showOnHomePage?: boolean;
64
64
  }
65
65
  export interface ExampleBase {
66
66
  id: string | undefined;
67
67
  title?: string;
68
- titleLangs?: Map<LanguageType, string>;
68
+ titleLangs?: Record<LanguageType, string>;
69
69
  link?: string;
70
70
  imgUrl?: string;
71
71
  }
72
72
  export interface LinkBase<Id> {
73
73
  _id?: Id;
74
74
  name: string;
75
- nameLangs?: Map<LanguageType, string>;
75
+ nameLangs?: Record<LanguageType, string>;
76
76
  type: LinkType;
77
77
  group: LinkGroup;
78
78
  link: string;
@@ -80,9 +80,9 @@ export interface LinkBase<Id> {
80
80
  export interface QnaBase {
81
81
  id: string | undefined;
82
82
  question?: string;
83
- questionLangs?: Map<LanguageType, string>;
83
+ questionLangs?: Record<LanguageType, string>;
84
84
  answer?: string;
85
- answerLangs?: Map<LanguageType, string>;
85
+ answerLangs?: Record<LanguageType, string>;
86
86
  }
87
87
  export interface ReviewerBase {
88
88
  reviewerName: string;
@@ -144,12 +144,12 @@ export interface AdminBase<Id, TDate> {
144
144
  export interface BlogBase<Id, TDate> {
145
145
  _id?: Id;
146
146
  title: string;
147
- titleLangs?: Map<LanguageType, string>;
147
+ titleLangs?: Record<LanguageType, string>;
148
148
  subtitle: string;
149
- subtitleLangs?: Map<LanguageType, string>;
149
+ subtitleLangs?: Record<LanguageType, string>;
150
150
  groupId: Id;
151
151
  body?: string;
152
- bodyLangs?: Map<LanguageType, string>;
152
+ bodyLangs?: Record<LanguageType, string>;
153
153
  internal?: boolean;
154
154
  img?: string;
155
155
  createdAt?: TDate;
@@ -258,7 +258,7 @@ export interface EventBase<Id, TDate> {
258
258
  typeId: Id;
259
259
  imgSrc?: string;
260
260
  description?: string;
261
- descriptionLangs?: Map<LanguageType, string>;
261
+ descriptionLangs?: Record<LanguageType, string>;
262
262
  minimumReaders?: number;
263
263
  active?: boolean;
264
264
  categories?: EventCategoryBase<Id>[];
@@ -270,7 +270,7 @@ export interface SeasonBase<Id, TDate> {
270
270
  name: string;
271
271
  typeIds: Id[];
272
272
  description?: string;
273
- descriptionLangs?: Map<LanguageType, string>;
273
+ descriptionLangs?: Record<LanguageType, string>;
274
274
  startDate: TDate;
275
275
  endDate: TDate;
276
276
  categories?: EventCategoryBase<Id>[];
@@ -290,7 +290,7 @@ export interface GroupBase<Id, TDate> {
290
290
  name: string;
291
291
  data?: string;
292
292
  description?: string;
293
- descriptionLangs?: Map<LanguageType, string>;
293
+ descriptionLangs?: Record<LanguageType, string>;
294
294
  type: GroupType;
295
295
  createdAt?: TDate;
296
296
  updatedAt?: TDate;
@@ -518,7 +518,7 @@ export interface PageBase<Id, TDate> {
518
518
  export interface ProductBase<Id, TDate> {
519
519
  _id?: Id;
520
520
  name: string;
521
- nameLangs: Map<LanguageType, string>;
521
+ nameLangs?: Record<LanguageType, string>;
522
522
  groupId: Id;
523
523
  price: number;
524
524
  discount?: number;
@@ -535,7 +535,7 @@ export interface ProductBase<Id, TDate> {
535
535
  purchases?: number;
536
536
  icon?: string;
537
537
  description?: string;
538
- descriptionLangs?: Map<LanguageType, string>;
538
+ descriptionLangs?: Record<LanguageType, string>;
539
539
  subscriptionPeriod?: SubscriptionPeriod;
540
540
  copy?: string;
541
541
  images?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiliaze/global-vars",
3
- "version": "1.237.0",
3
+ "version": "1.238.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.237.0 -m 'v1.237.0'; git push origin v1.237.0; git push",
25
+ "git": "git add .; git commit -m 'changes'; git tag -a v1.238.0 -m 'v1.238.0'; git push origin v1.238.0; git push",
26
26
  "push": "npm run build; npm run git; npm run pub"
27
27
  },
28
28
  "author": "Ibi Hasanli",