@ibiliaze/global-vars 1.88.0 → 1.90.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,4 +1,6 @@
1
+ import { countries } from '../countries';
1
2
  import { flows } from '../flows';
3
+ import { genders } from '../genders';
2
4
  export type ISODateString = string;
3
5
  export interface SeatBase<Id, TDate> {
4
6
  _id?: Id;
@@ -363,10 +365,15 @@ export interface FileBase<Id, TDate> {
363
365
  createdAt?: TDate;
364
366
  updatedAt?: TDate;
365
367
  }
366
- export interface SectionsCategoryBase<Id> {
367
- categoryId: Id;
368
- flowIds: Id[];
368
+ export interface FlowLinkBase<Id> {
369
+ flowId: Id;
370
+ sectionIds: Id[];
371
+ categoryIds: Id[];
372
+ }
373
+ export interface CategoryLinkBase<Id> {
374
+ sectionId: Id;
369
375
  sectionName: string;
376
+ categoryId: Id;
370
377
  price: number;
371
378
  disabled?: boolean;
372
379
  }
@@ -380,7 +387,8 @@ export interface FixtureBase<Id, TDate> {
380
387
  description?: string;
381
388
  minimumReaders?: number;
382
389
  active?: boolean;
383
- sectionsCategory?: Record<string, SectionsCategoryBase<Id>>;
390
+ flowLinks?: FlowLinkBase<Id>[];
391
+ categoryLinks?: CategoryLinkBase<Id>[];
384
392
  createdAt?: TDate;
385
393
  updatedAt?: TDate;
386
394
  }
@@ -751,9 +759,9 @@ export interface UserBase<Id, TDate> {
751
759
  surname?: string;
752
760
  dob?: TDate;
753
761
  avatar?: string;
754
- country?: string;
762
+ country?: (typeof countries)[number];
755
763
  language?: string;
756
- gender?: string;
764
+ gender?: (typeof genders)[number];
757
765
  tokens?: UserTokenBase<Id>[];
758
766
  createdAt?: TDate;
759
767
  updatedAt?: TDate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiliaze/global-vars",
3
- "version": "1.88.0",
3
+ "version": "1.90.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.88.0 -m 'v1.88.0'; git push origin v1.88.0; git push",
25
+ "git": "git add .; git commit -m 'changes'; git tag -a v1.90.0 -m 'v1.90.0'; git push origin v1.90.0; git push",
26
26
  "push": "npm run build; npm run git; npm run pub"
27
27
  },
28
28
  "author": "Ibi Hasanli",