@ibiliaze/global-vars 1.176.0 → 1.178.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.
|
@@ -755,6 +755,9 @@ export interface ItemBase<Id, TDate> {
|
|
|
755
755
|
createdAt?: TDate;
|
|
756
756
|
updatedAt?: TDate;
|
|
757
757
|
}
|
|
758
|
+
export type ItemWithTimeLeftBase<TId, TDate> = ItemBase<TId, TDate> & {
|
|
759
|
+
timeLeft: number;
|
|
760
|
+
};
|
|
758
761
|
export interface SaleBase<Id, TDate> {
|
|
759
762
|
_id?: Id;
|
|
760
763
|
userId: Id;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ItemWithTimeLeftBase } from '../inputsDefault';
|
|
2
2
|
export declare const itemRoleDefs: <TId, TDate>() => readonly [{
|
|
3
3
|
readonly method: "get";
|
|
4
4
|
readonly path: "/item";
|
|
5
5
|
readonly role: "getItems";
|
|
6
6
|
readonly name: "Get items";
|
|
7
7
|
readonly response_200: {
|
|
8
|
-
itemsWithTimeLeft:
|
|
9
|
-
timeLeft: number;
|
|
10
|
-
})[];
|
|
8
|
+
itemsWithTimeLeft: ItemWithTimeLeftBase<TId, TDate>[];
|
|
11
9
|
count: number;
|
|
12
10
|
};
|
|
13
11
|
readonly response_500: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SeatBase, OccupanceBase, FlatOccupanceWithSeat,
|
|
1
|
+
import type { SeatBase, OccupanceBase, FlatOccupanceWithSeat, FlatOccupance, ItemWithTimeLeftBase } from '../inputsDefault';
|
|
2
2
|
export declare const occupanceRoleDefs: <TId, TDate>() => readonly [{
|
|
3
3
|
readonly method: "get";
|
|
4
4
|
readonly path: "/seat";
|
|
@@ -92,7 +92,7 @@ export declare const occupanceRoleDefs: <TId, TDate>() => readonly [{
|
|
|
92
92
|
readonly role: "postOccupanceReserveById";
|
|
93
93
|
readonly name: "Reserve occupance by ID";
|
|
94
94
|
readonly response_200: {
|
|
95
|
-
|
|
95
|
+
itemWithTimeLeft: ItemWithTimeLeftBase<TId, TDate>;
|
|
96
96
|
occupance: OccupanceBase<TId, TDate>;
|
|
97
97
|
message: string;
|
|
98
98
|
};
|
|
@@ -117,7 +117,7 @@ export declare const occupanceRoleDefs: <TId, TDate>() => readonly [{
|
|
|
117
117
|
readonly role: "postSeasonalOccupanceReserveById";
|
|
118
118
|
readonly name: "Reserve seasonal occupance by ID";
|
|
119
119
|
readonly response_200: {
|
|
120
|
-
|
|
120
|
+
itemWithTimeLeft: ItemWithTimeLeftBase<TId, TDate>;
|
|
121
121
|
occupance: OccupanceBase<TId, TDate>;
|
|
122
122
|
message: string;
|
|
123
123
|
};
|
|
@@ -504,9 +504,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
504
504
|
readonly role: "getItems";
|
|
505
505
|
readonly name: "Get items";
|
|
506
506
|
readonly response_200: {
|
|
507
|
-
itemsWithTimeLeft:
|
|
508
|
-
timeLeft: number;
|
|
509
|
-
})[];
|
|
507
|
+
itemsWithTimeLeft: import("./inputsDefault").ItemWithTimeLeftBase<TId_5, TDate_5>[];
|
|
510
508
|
count: number;
|
|
511
509
|
};
|
|
512
510
|
readonly response_500: {
|
|
@@ -1978,7 +1976,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
1978
1976
|
readonly role: "postOccupanceReserveById";
|
|
1979
1977
|
readonly name: "Reserve occupance by ID";
|
|
1980
1978
|
readonly response_200: {
|
|
1981
|
-
|
|
1979
|
+
itemWithTimeLeft: import("./inputsDefault").ItemWithTimeLeftBase<TId_22, TDate_22>;
|
|
1982
1980
|
occupance: import("./inputsDefault").OccupanceBase<TId_22, TDate_22>;
|
|
1983
1981
|
message: string;
|
|
1984
1982
|
};
|
|
@@ -2003,7 +2001,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
2003
2001
|
readonly role: "postSeasonalOccupanceReserveById";
|
|
2004
2002
|
readonly name: "Reserve seasonal occupance by ID";
|
|
2005
2003
|
readonly response_200: {
|
|
2006
|
-
|
|
2004
|
+
itemWithTimeLeft: import("./inputsDefault").ItemWithTimeLeftBase<TId_22, TDate_22>;
|
|
2007
2005
|
occupance: import("./inputsDefault").OccupanceBase<TId_22, TDate_22>;
|
|
2008
2006
|
message: string;
|
|
2009
2007
|
};
|
|
@@ -3111,9 +3109,7 @@ declare const allApis: readonly [{
|
|
|
3111
3109
|
readonly role: "getItems";
|
|
3112
3110
|
readonly name: "Get items";
|
|
3113
3111
|
readonly response_200: {
|
|
3114
|
-
itemsWithTimeLeft:
|
|
3115
|
-
timeLeft: number;
|
|
3116
|
-
})[];
|
|
3112
|
+
itemsWithTimeLeft: import("./inputsDefault").ItemWithTimeLeftBase<TId_4, TDate_4>[];
|
|
3117
3113
|
count: number;
|
|
3118
3114
|
};
|
|
3119
3115
|
readonly response_500: {
|
|
@@ -4585,7 +4581,7 @@ declare const allApis: readonly [{
|
|
|
4585
4581
|
readonly role: "postOccupanceReserveById";
|
|
4586
4582
|
readonly name: "Reserve occupance by ID";
|
|
4587
4583
|
readonly response_200: {
|
|
4588
|
-
|
|
4584
|
+
itemWithTimeLeft: import("./inputsDefault").ItemWithTimeLeftBase<TId_21, TDate_21>;
|
|
4589
4585
|
occupance: import("./inputsDefault").OccupanceBase<TId_21, TDate_21>;
|
|
4590
4586
|
message: string;
|
|
4591
4587
|
};
|
|
@@ -4610,7 +4606,7 @@ declare const allApis: readonly [{
|
|
|
4610
4606
|
readonly role: "postSeasonalOccupanceReserveById";
|
|
4611
4607
|
readonly name: "Reserve seasonal occupance by ID";
|
|
4612
4608
|
readonly response_200: {
|
|
4613
|
-
|
|
4609
|
+
itemWithTimeLeft: import("./inputsDefault").ItemWithTimeLeftBase<TId_21, TDate_21>;
|
|
4614
4610
|
occupance: import("./inputsDefault").OccupanceBase<TId_21, TDate_21>;
|
|
4615
4611
|
message: string;
|
|
4616
4612
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/global-vars",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.178.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.178.0 -m 'v1.178.0'; git push origin v1.178.0; git push",
|
|
26
26
|
"push": "npm run build; npm run git; npm run pub"
|
|
27
27
|
},
|
|
28
28
|
"author": "Ibi Hasanli",
|