@ibiliaze/global-vars 1.110.0 → 1.112.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.
- package/dist/flows.d.ts +7 -7
- package/package.json +2 -2
package/dist/flows.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ export declare const flows: readonly ["Online", "Offline", "Special link", "Seas
|
|
|
3
3
|
export declare function makeSaleLogic<Id, TDate>(): SaleLogic<Id, TDate>;
|
|
4
4
|
export type Path = '/' | '/link' | '/pos' | '/seasonal';
|
|
5
5
|
export type Who = 'guest' | 'root' | 'cashier';
|
|
6
|
-
export type SeatsByCat = {
|
|
6
|
+
export type SeatsByCat<Id> = {
|
|
7
7
|
categoryName: string;
|
|
8
|
-
categoryId:
|
|
8
|
+
categoryId: Id;
|
|
9
9
|
available: number;
|
|
10
10
|
price: number;
|
|
11
11
|
color: string;
|
|
@@ -21,9 +21,9 @@ export interface CanISeeSectionArgs<Id, TDate> {
|
|
|
21
21
|
who: Who;
|
|
22
22
|
where: WhereOf<Id, TDate>;
|
|
23
23
|
fixtureCategories: FixtureCategoryOf<Id>[];
|
|
24
|
-
sectionId:
|
|
24
|
+
sectionId: Id;
|
|
25
25
|
staffFlowIds: StaffFlowIdsOf<Id, TDate>;
|
|
26
|
-
signedFlowId?:
|
|
26
|
+
signedFlowId?: Id | null;
|
|
27
27
|
}
|
|
28
28
|
export interface CanISeeSeatArgs<Id, TDate> {
|
|
29
29
|
who: Who;
|
|
@@ -31,17 +31,17 @@ export interface CanISeeSeatArgs<Id, TDate> {
|
|
|
31
31
|
staffFlowIds: StaffFlowIdsOf<Id, TDate>;
|
|
32
32
|
occupanceCategory?: OccupanceCategoryOf<Id, TDate>;
|
|
33
33
|
fixtureCategories: FixtureCategoryOf<Id>[];
|
|
34
|
-
signedFlowId?:
|
|
34
|
+
signedFlowId?: Id | null;
|
|
35
35
|
}
|
|
36
36
|
export interface AuthoriserArgs<Id, TDate> {
|
|
37
37
|
who: Who;
|
|
38
38
|
where: WhereOf<Id, TDate>;
|
|
39
|
-
signedFlowId?:
|
|
39
|
+
signedFlowId?: Id | null;
|
|
40
40
|
effectiveFlows: EffectiveFlowsOf<Id>;
|
|
41
41
|
staffFlowIds: StaffFlowIdsOf<Id, TDate>;
|
|
42
42
|
}
|
|
43
43
|
export interface GetSectorCategoryArgs<Id> {
|
|
44
|
-
sectionId:
|
|
44
|
+
sectionId: Id;
|
|
45
45
|
fixtureCategories: FixtureCategoryOf<Id>[];
|
|
46
46
|
}
|
|
47
47
|
export interface GetOccupanceCategoryArgs<Id, TDate> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/global-vars",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.112.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.112.0 -m 'v1.112.0'; git push origin v1.112.0; git push",
|
|
26
26
|
"push": "npm run build; npm run git; npm run pub"
|
|
27
27
|
},
|
|
28
28
|
"author": "Ibi Hasanli",
|