@ibiliaze/global-vars 1.241.0 → 1.243.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 +2 -1
- package/dist/flows.js +3 -0
- package/package.json +2 -2
package/dist/flows.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventCategoryBase, EventCategoryFlowBase, FlowBase, OccupanceBase, UserBase } from './ticketops/inputsDefault';
|
|
1
|
+
import type { EventCategoryBase, EventCategoryFlowBase, FlowBase, NameLangs, OccupanceBase, UserBase } from './ticketops/inputsDefault';
|
|
2
2
|
export declare const flows: readonly ["Online", "Offline", "Special link"];
|
|
3
3
|
export declare const idsEqual: <Id>(a: Id | null | undefined, b: Id | null | undefined) => boolean;
|
|
4
4
|
export declare const arrayHasId: <Id>(list: readonly (Id | null | undefined)[] | null | undefined, target: Id | null | undefined) => boolean;
|
|
@@ -7,6 +7,7 @@ export type Channel = '' | 'link' | 'pos';
|
|
|
7
7
|
export type Who = 'guest' | 'root' | 'cashier';
|
|
8
8
|
export type SeatsByCat<Id> = {
|
|
9
9
|
categoryName: string;
|
|
10
|
+
categoryNameLangs?: NameLangs;
|
|
10
11
|
categoryId: Id;
|
|
11
12
|
available: number;
|
|
12
13
|
price: number;
|
package/dist/flows.js
CHANGED
|
@@ -98,6 +98,7 @@ function makeSaleLogic() {
|
|
|
98
98
|
return {
|
|
99
99
|
categoryId: sectionCat?.categoryId,
|
|
100
100
|
name: sectionCat?.name ?? '',
|
|
101
|
+
nameLangs: sectionCat?.nameLangs,
|
|
101
102
|
color: sectionCat?.color || 'blue.4',
|
|
102
103
|
disabled: sectionCat?.disabled ?? false,
|
|
103
104
|
price: sectionCat?.price ?? 0,
|
|
@@ -115,6 +116,7 @@ function makeSaleLogic() {
|
|
|
115
116
|
return {
|
|
116
117
|
categoryId: occupanceCat?.categoryId,
|
|
117
118
|
name: occupanceCat?.name ?? '',
|
|
119
|
+
nameLangs: occupanceCat?.nameLangs,
|
|
118
120
|
color: occupanceCat?.color || 'blue.4',
|
|
119
121
|
disabled: occupanceCat?.disabled ?? false,
|
|
120
122
|
price: occupanceCat?.price ?? 0,
|
|
@@ -133,6 +135,7 @@ function makeSaleLogic() {
|
|
|
133
135
|
const effectiveCategory = {
|
|
134
136
|
categoryId: (category?.categoryId ?? undefined),
|
|
135
137
|
name: category?.name ?? '',
|
|
138
|
+
nameLangs: category?.nameLangs,
|
|
136
139
|
color: category?.color || 'blue',
|
|
137
140
|
disabled: category?.disabled ?? false,
|
|
138
141
|
price: category?.price ?? 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/global-vars",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.243.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.243.0 -m 'v1.243.0'; git push origin v1.243.0; git push",
|
|
26
26
|
"push": "npm run build; npm run git; npm run pub"
|
|
27
27
|
},
|
|
28
28
|
"author": "Ibi Hasanli",
|