@ibiliaze/global-vars 1.146.0 → 1.148.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.
|
@@ -814,6 +814,9 @@ export interface StaffBase<Id, TDate> {
|
|
|
814
814
|
createdAt?: TDate;
|
|
815
815
|
updatedAt?: TDate;
|
|
816
816
|
}
|
|
817
|
+
export type StaffTypeWithPopulatedRolesBase<Id, TDate> = StaffBase<Id, TDate> & {
|
|
818
|
+
populatedRoles: RoleBase<Id, TDate>[];
|
|
819
|
+
};
|
|
817
820
|
export interface UserTokenBase<Id> {
|
|
818
821
|
_id?: Id;
|
|
819
822
|
token: string;
|
|
@@ -35,7 +35,7 @@ export declare const occupanceRoleDefs: <TId, TDate>() => readonly [{
|
|
|
35
35
|
readonly role: "getOccupanciesUser";
|
|
36
36
|
readonly name: "Get occupancies for user";
|
|
37
37
|
readonly response_200: {
|
|
38
|
-
occupancies: FlatOccupanceWithSeat<TId, TDate
|
|
38
|
+
occupancies: FlatOccupanceWithSeat<TId, TDate>;
|
|
39
39
|
count: number;
|
|
40
40
|
};
|
|
41
41
|
readonly response_500: {
|
|
@@ -48,7 +48,7 @@ export declare const occupanceRoleDefs: <TId, TDate>() => readonly [{
|
|
|
48
48
|
readonly role: "getOccupancies";
|
|
49
49
|
readonly name: "Get occupancies";
|
|
50
50
|
readonly response_200: {
|
|
51
|
-
occupancies: FlatOccupanceWithSeat<TId, TDate
|
|
51
|
+
occupancies: FlatOccupanceWithSeat<TId, TDate>;
|
|
52
52
|
count: number;
|
|
53
53
|
};
|
|
54
54
|
readonly response_500: {
|
|
@@ -61,7 +61,7 @@ export declare const occupanceRoleDefs: <TId, TDate>() => readonly [{
|
|
|
61
61
|
readonly role: "getOccupanceInfoByOrderId";
|
|
62
62
|
readonly name: "Get occupance info by order id";
|
|
63
63
|
readonly response_200: {
|
|
64
|
-
occupancies: PopulatedOccupance<TId, TDate
|
|
64
|
+
occupancies: PopulatedOccupance<TId, TDate>;
|
|
65
65
|
message: string;
|
|
66
66
|
};
|
|
67
67
|
readonly response_400: {
|
|
@@ -81,7 +81,6 @@ export declare const occupanceRoleDefs: <TId, TDate>() => readonly [{
|
|
|
81
81
|
readonly name: "Get reserved occupancies";
|
|
82
82
|
readonly response_200: {
|
|
83
83
|
items: LocalItem[];
|
|
84
|
-
occupancies: PopulatedOccupance<TId, TDate>[];
|
|
85
84
|
message: string;
|
|
86
85
|
};
|
|
87
86
|
readonly response_400: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StaffBase } from '../inputsDefault';
|
|
1
|
+
import type { StaffBase, StaffTypeWithPopulatedRolesBase } from '../inputsDefault';
|
|
2
2
|
export declare const staffRoleDefs: <TId, TDate>() => readonly [{
|
|
3
3
|
readonly method: "post";
|
|
4
4
|
readonly path: "/staff/admin";
|
|
@@ -82,7 +82,7 @@ export declare const staffRoleDefs: <TId, TDate>() => readonly [{
|
|
|
82
82
|
readonly role: "getStaff";
|
|
83
83
|
readonly name: "Get current staff";
|
|
84
84
|
readonly response_200: {
|
|
85
|
-
staff:
|
|
85
|
+
staff: StaffTypeWithPopulatedRolesBase<TId, TDate>;
|
|
86
86
|
};
|
|
87
87
|
readonly response_500: {
|
|
88
88
|
message: string;
|
|
@@ -1892,7 +1892,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
1892
1892
|
readonly role: "getOccupanciesUser";
|
|
1893
1893
|
readonly name: "Get occupancies for user";
|
|
1894
1894
|
readonly response_200: {
|
|
1895
|
-
occupancies: import("./inputsDefault").FlatOccupanceWithSeat<TId_21, TDate_21
|
|
1895
|
+
occupancies: import("./inputsDefault").FlatOccupanceWithSeat<TId_21, TDate_21>;
|
|
1896
1896
|
count: number;
|
|
1897
1897
|
};
|
|
1898
1898
|
readonly response_500: {
|
|
@@ -1905,7 +1905,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
1905
1905
|
readonly role: "getOccupancies";
|
|
1906
1906
|
readonly name: "Get occupancies";
|
|
1907
1907
|
readonly response_200: {
|
|
1908
|
-
occupancies: import("./inputsDefault").FlatOccupanceWithSeat<TId_21, TDate_21
|
|
1908
|
+
occupancies: import("./inputsDefault").FlatOccupanceWithSeat<TId_21, TDate_21>;
|
|
1909
1909
|
count: number;
|
|
1910
1910
|
};
|
|
1911
1911
|
readonly response_500: {
|
|
@@ -1918,7 +1918,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
1918
1918
|
readonly role: "getOccupanceInfoByOrderId";
|
|
1919
1919
|
readonly name: "Get occupance info by order id";
|
|
1920
1920
|
readonly response_200: {
|
|
1921
|
-
occupancies: import("./inputsDefault").PopulatedOccupance<TId_21, TDate_21
|
|
1921
|
+
occupancies: import("./inputsDefault").PopulatedOccupance<TId_21, TDate_21>;
|
|
1922
1922
|
message: string;
|
|
1923
1923
|
};
|
|
1924
1924
|
readonly response_400: {
|
|
@@ -1938,7 +1938,6 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
1938
1938
|
readonly name: "Get reserved occupancies";
|
|
1939
1939
|
readonly response_200: {
|
|
1940
1940
|
items: import("..").LocalItem[];
|
|
1941
|
-
occupancies: import("./inputsDefault").PopulatedOccupance<TId_21, TDate_21>[];
|
|
1942
1941
|
message: string;
|
|
1943
1942
|
};
|
|
1944
1943
|
readonly response_400: {
|
|
@@ -2232,7 +2231,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
2232
2231
|
readonly role: "getStaff";
|
|
2233
2232
|
readonly name: "Get current staff";
|
|
2234
2233
|
readonly response_200: {
|
|
2235
|
-
staff: import("./inputsDefault").
|
|
2234
|
+
staff: import("./inputsDefault").StaffTypeWithPopulatedRolesBase<TId_23, TDate_23>;
|
|
2236
2235
|
};
|
|
2237
2236
|
readonly response_500: {
|
|
2238
2237
|
message: string;
|
|
@@ -4491,7 +4490,7 @@ declare const allApis: readonly [{
|
|
|
4491
4490
|
readonly role: "getOccupanciesUser";
|
|
4492
4491
|
readonly name: "Get occupancies for user";
|
|
4493
4492
|
readonly response_200: {
|
|
4494
|
-
occupancies: import("./inputsDefault").FlatOccupanceWithSeat<TId_20, TDate_20
|
|
4493
|
+
occupancies: import("./inputsDefault").FlatOccupanceWithSeat<TId_20, TDate_20>;
|
|
4495
4494
|
count: number;
|
|
4496
4495
|
};
|
|
4497
4496
|
readonly response_500: {
|
|
@@ -4504,7 +4503,7 @@ declare const allApis: readonly [{
|
|
|
4504
4503
|
readonly role: "getOccupancies";
|
|
4505
4504
|
readonly name: "Get occupancies";
|
|
4506
4505
|
readonly response_200: {
|
|
4507
|
-
occupancies: import("./inputsDefault").FlatOccupanceWithSeat<TId_20, TDate_20
|
|
4506
|
+
occupancies: import("./inputsDefault").FlatOccupanceWithSeat<TId_20, TDate_20>;
|
|
4508
4507
|
count: number;
|
|
4509
4508
|
};
|
|
4510
4509
|
readonly response_500: {
|
|
@@ -4517,7 +4516,7 @@ declare const allApis: readonly [{
|
|
|
4517
4516
|
readonly role: "getOccupanceInfoByOrderId";
|
|
4518
4517
|
readonly name: "Get occupance info by order id";
|
|
4519
4518
|
readonly response_200: {
|
|
4520
|
-
occupancies: import("./inputsDefault").PopulatedOccupance<TId_20, TDate_20
|
|
4519
|
+
occupancies: import("./inputsDefault").PopulatedOccupance<TId_20, TDate_20>;
|
|
4521
4520
|
message: string;
|
|
4522
4521
|
};
|
|
4523
4522
|
readonly response_400: {
|
|
@@ -4537,7 +4536,6 @@ declare const allApis: readonly [{
|
|
|
4537
4536
|
readonly name: "Get reserved occupancies";
|
|
4538
4537
|
readonly response_200: {
|
|
4539
4538
|
items: import("..").LocalItem[];
|
|
4540
|
-
occupancies: import("./inputsDefault").PopulatedOccupance<TId_20, TDate_20>[];
|
|
4541
4539
|
message: string;
|
|
4542
4540
|
};
|
|
4543
4541
|
readonly response_400: {
|
|
@@ -4831,7 +4829,7 @@ declare const allApis: readonly [{
|
|
|
4831
4829
|
readonly role: "getStaff";
|
|
4832
4830
|
readonly name: "Get current staff";
|
|
4833
4831
|
readonly response_200: {
|
|
4834
|
-
staff: import("./inputsDefault").
|
|
4832
|
+
staff: import("./inputsDefault").StaffTypeWithPopulatedRolesBase<TId_22, TDate_22>;
|
|
4835
4833
|
};
|
|
4836
4834
|
readonly response_500: {
|
|
4837
4835
|
message: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/global-vars",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.148.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.148.0 -m 'v1.148.0'; git push origin v1.148.0; git push",
|
|
26
26
|
"push": "npm run build; npm run git; npm run pub"
|
|
27
27
|
},
|
|
28
28
|
"author": "Ibi Hasanli",
|