@ibiliaze/global-vars 1.177.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,7 +755,7 @@ export interface ItemBase<Id, TDate> {
|
|
|
755
755
|
createdAt?: TDate;
|
|
756
756
|
updatedAt?: TDate;
|
|
757
757
|
}
|
|
758
|
-
export type
|
|
758
|
+
export type ItemWithTimeLeftBase<TId, TDate> = ItemBase<TId, TDate> & {
|
|
759
759
|
timeLeft: number;
|
|
760
760
|
};
|
|
761
761
|
export interface SaleBase<Id, TDate> {
|
|
@@ -1,11 +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:
|
|
8
|
+
itemsWithTimeLeft: ItemWithTimeLeftBase<TId, TDate>[];
|
|
9
9
|
count: number;
|
|
10
10
|
};
|
|
11
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,7 +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: import("./inputsDefault").
|
|
507
|
+
itemsWithTimeLeft: import("./inputsDefault").ItemWithTimeLeftBase<TId_5, TDate_5>[];
|
|
508
508
|
count: number;
|
|
509
509
|
};
|
|
510
510
|
readonly response_500: {
|
|
@@ -1976,7 +1976,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
1976
1976
|
readonly role: "postOccupanceReserveById";
|
|
1977
1977
|
readonly name: "Reserve occupance by ID";
|
|
1978
1978
|
readonly response_200: {
|
|
1979
|
-
|
|
1979
|
+
itemWithTimeLeft: import("./inputsDefault").ItemWithTimeLeftBase<TId_22, TDate_22>;
|
|
1980
1980
|
occupance: import("./inputsDefault").OccupanceBase<TId_22, TDate_22>;
|
|
1981
1981
|
message: string;
|
|
1982
1982
|
};
|
|
@@ -2001,7 +2001,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
2001
2001
|
readonly role: "postSeasonalOccupanceReserveById";
|
|
2002
2002
|
readonly name: "Reserve seasonal occupance by ID";
|
|
2003
2003
|
readonly response_200: {
|
|
2004
|
-
|
|
2004
|
+
itemWithTimeLeft: import("./inputsDefault").ItemWithTimeLeftBase<TId_22, TDate_22>;
|
|
2005
2005
|
occupance: import("./inputsDefault").OccupanceBase<TId_22, TDate_22>;
|
|
2006
2006
|
message: string;
|
|
2007
2007
|
};
|
|
@@ -3109,7 +3109,7 @@ declare const allApis: readonly [{
|
|
|
3109
3109
|
readonly role: "getItems";
|
|
3110
3110
|
readonly name: "Get items";
|
|
3111
3111
|
readonly response_200: {
|
|
3112
|
-
itemsWithTimeLeft: import("./inputsDefault").
|
|
3112
|
+
itemsWithTimeLeft: import("./inputsDefault").ItemWithTimeLeftBase<TId_4, TDate_4>[];
|
|
3113
3113
|
count: number;
|
|
3114
3114
|
};
|
|
3115
3115
|
readonly response_500: {
|
|
@@ -4581,7 +4581,7 @@ declare const allApis: readonly [{
|
|
|
4581
4581
|
readonly role: "postOccupanceReserveById";
|
|
4582
4582
|
readonly name: "Reserve occupance by ID";
|
|
4583
4583
|
readonly response_200: {
|
|
4584
|
-
|
|
4584
|
+
itemWithTimeLeft: import("./inputsDefault").ItemWithTimeLeftBase<TId_21, TDate_21>;
|
|
4585
4585
|
occupance: import("./inputsDefault").OccupanceBase<TId_21, TDate_21>;
|
|
4586
4586
|
message: string;
|
|
4587
4587
|
};
|
|
@@ -4606,7 +4606,7 @@ declare const allApis: readonly [{
|
|
|
4606
4606
|
readonly role: "postSeasonalOccupanceReserveById";
|
|
4607
4607
|
readonly name: "Reserve seasonal occupance by ID";
|
|
4608
4608
|
readonly response_200: {
|
|
4609
|
-
|
|
4609
|
+
itemWithTimeLeft: import("./inputsDefault").ItemWithTimeLeftBase<TId_21, TDate_21>;
|
|
4610
4610
|
occupance: import("./inputsDefault").OccupanceBase<TId_21, TDate_21>;
|
|
4611
4611
|
message: string;
|
|
4612
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",
|