@ibiliaze/global-vars 1.69.0 → 1.71.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.
|
@@ -101,7 +101,8 @@ export interface LineItemBase {
|
|
|
101
101
|
minPrice?: number;
|
|
102
102
|
lines?: string[];
|
|
103
103
|
}
|
|
104
|
-
export interface LinkBase {
|
|
104
|
+
export interface LinkBase<Id = string> {
|
|
105
|
+
_id?: Id;
|
|
105
106
|
name: string;
|
|
106
107
|
type: 'header' | 'footer';
|
|
107
108
|
group: 'information' | 'contact' | 'legal';
|
|
@@ -225,7 +226,8 @@ export interface AccountBase<Id = string, TDate = string> {
|
|
|
225
226
|
createdAt?: TDate;
|
|
226
227
|
updatedAt?: TDate;
|
|
227
228
|
}
|
|
228
|
-
export interface AdminTokenBase {
|
|
229
|
+
export interface AdminTokenBase<Id = string> {
|
|
230
|
+
_id?: Id;
|
|
229
231
|
token: string;
|
|
230
232
|
ip?: string;
|
|
231
233
|
userAgent?: string;
|
|
@@ -371,7 +373,7 @@ export interface FixtureBase<Id = string, TDate = string> {
|
|
|
371
373
|
typeId?: Id;
|
|
372
374
|
imgSrc?: string;
|
|
373
375
|
description?: string;
|
|
374
|
-
minimumReaders?:
|
|
376
|
+
minimumReaders?: number;
|
|
375
377
|
active?: boolean;
|
|
376
378
|
sectionsCategory?: Record<string, SectionsCategoryBase<Id>>;
|
|
377
379
|
createdAt?: TDate;
|
|
@@ -678,7 +680,8 @@ export interface SectionBase<Id = string, TDate = string> {
|
|
|
678
680
|
createdAt?: TDate;
|
|
679
681
|
updatedAt?: TDate;
|
|
680
682
|
}
|
|
681
|
-
export interface StaffTokenBase {
|
|
683
|
+
export interface StaffTokenBase<Id = string> {
|
|
684
|
+
_id?: Id;
|
|
682
685
|
token: string;
|
|
683
686
|
ip?: string;
|
|
684
687
|
staffAgent?: string;
|
|
@@ -699,7 +702,8 @@ export interface StaffBase<Id = string, TDate = string> {
|
|
|
699
702
|
createdAt?: TDate;
|
|
700
703
|
updatedAt?: TDate;
|
|
701
704
|
}
|
|
702
|
-
export interface UserTokenBase {
|
|
705
|
+
export interface UserTokenBase<Id = string> {
|
|
706
|
+
_id?: Id;
|
|
703
707
|
token: string;
|
|
704
708
|
ip?: string;
|
|
705
709
|
userAgent?: string;
|
|
@@ -725,7 +729,8 @@ export interface UserBase<Id = string, TDate = string> {
|
|
|
725
729
|
createdAt?: TDate;
|
|
726
730
|
updatedAt?: TDate;
|
|
727
731
|
}
|
|
728
|
-
export interface ReaderTokenBase<TDate = string> {
|
|
732
|
+
export interface ReaderTokenBase<Id = string, TDate = string> {
|
|
733
|
+
_id?: Id;
|
|
729
734
|
token: string;
|
|
730
735
|
ip?: string;
|
|
731
736
|
readerAgent?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/global-vars",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.71.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "tsc",
|
|
23
23
|
"pub": "npm publish --access public",
|
|
24
|
-
"git": "git add .; git commit -m 'changes'; git tag -a v1.
|
|
24
|
+
"git": "git add .; git commit -m 'changes'; git tag -a v1.71.0 -m 'v1.71.0'; git push origin v1.71.0; git push",
|
|
25
25
|
"push": "npm run build; npm run git; npm run pub"
|
|
26
26
|
},
|
|
27
27
|
"author": "Ibi Hasanli",
|