@ibiliaze/global-vars 1.11.0 → 1.13.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/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { sectors } from './ticketops/sectors';
1
+ import { sectors as sabahSectors } from './ticketops/sabahSectors';
2
+ import { sectors as sumgayiqSectors } from './ticketops/sumgayiqSectors';
2
3
  declare const globals: GlobalVars;
3
4
  export interface Cart {
4
5
  timer: number;
@@ -6,7 +7,7 @@ export interface Cart {
6
7
  export interface User {
7
8
  auth: boolean;
8
9
  }
9
- type App = 'TradeOps_a' | 'TicketOps_a' | 'TicketOps_b';
10
+ type App = 'TradeOps_a' | 'SabahFK_A' | 'SabahFK_B' | 'Sumgayit';
10
11
  export type GlobalVars = {
11
12
  [A in App]: Globals;
12
13
  };
@@ -21,10 +22,10 @@ export interface Globals {
21
22
  name: string;
22
23
  }[];
23
24
  tickets: {
24
- sectors: typeof sectors;
25
+ sectors: typeof sabahSectors | typeof sumgayiqSectors;
25
26
  };
26
27
  }
27
28
  export * as ticketopsTypes from './ticketops/inputsDefault';
28
29
  export * from './checkout';
29
- export { sectors };
30
+ export { sabahSectors, sumgayiqSectors };
30
31
  export default globals;
package/dist/index.js CHANGED
@@ -14,25 +14,34 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.sectors = exports.ticketopsTypes = void 0;
17
+ exports.sumgayiqSectors = exports.sabahSectors = exports.ticketopsTypes = void 0;
18
18
  const roles_1 = require("./ticketops/roles");
19
- const sectors_1 = require("./ticketops/sectors");
20
- Object.defineProperty(exports, "sectors", { enumerable: true, get: function () { return sectors_1.sectors; } });
19
+ const sabahSectors_1 = require("./ticketops/sabahSectors");
20
+ Object.defineProperty(exports, "sabahSectors", { enumerable: true, get: function () { return sabahSectors_1.sectors; } });
21
+ const sumgayiqSectors_1 = require("./ticketops/sumgayiqSectors");
22
+ Object.defineProperty(exports, "sumgayiqSectors", { enumerable: true, get: function () { return sumgayiqSectors_1.sectors; } });
21
23
  const globals = {
22
24
  TradeOps_a: {},
23
- TicketOps_a: {
25
+ SabahFK_A: {
24
26
  cart: { timer: 10 * 60 * 1000 },
25
27
  user: { auth: true },
26
28
  checkout: { epoint: true },
27
29
  roles: roles_1.default,
28
- tickets: { sectors: sectors_1.sectors },
30
+ tickets: { sectors: sabahSectors_1.sectors },
29
31
  },
30
- TicketOps_b: {
32
+ SabahFK_B: {
31
33
  cart: { timer: 10 * 60 * 1000 },
32
34
  user: { auth: true },
33
35
  checkout: { epoint: false },
34
36
  roles: roles_1.default,
35
- tickets: { sectors: sectors_1.sectors },
37
+ tickets: { sectors: sabahSectors_1.sectors },
38
+ },
39
+ Sumgayit: {
40
+ cart: { timer: 10 * 60 * 1000 },
41
+ user: { auth: true },
42
+ checkout: { epoint: false },
43
+ roles: roles_1.default,
44
+ tickets: { sectors: sumgayiqSectors_1.sectors },
36
45
  },
37
46
  };
38
47
  exports.ticketopsTypes = require("./ticketops/inputsDefault");
@@ -0,0 +1,19 @@
1
+ export declare const sectors: ({
2
+ sectorName: string;
3
+ block: string;
4
+ gate: "1";
5
+ capacity: number;
6
+ area: "PG";
7
+ } | {
8
+ sectorName: string;
9
+ block: string;
10
+ gate: "VIP";
11
+ capacity: number;
12
+ area: "VIP";
13
+ } | {
14
+ sectorName: string;
15
+ block: string;
16
+ gate: "1";
17
+ capacity: number;
18
+ area: "VIP";
19
+ })[];
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sectors = void 0;
4
+ exports.sectors = [
5
+ { sectorName: 'Sabah - Sector 1', block: '1', gate: '1', capacity: 218, area: 'PG' },
6
+ { sectorName: 'Sabah - Sector 2', block: '2', gate: '1', capacity: 418, area: 'PG' },
7
+ { sectorName: 'Sabah - 3 Central Sector', block: '3', gate: '1', capacity: 320, area: 'PG' },
8
+ { sectorName: 'Sabah - 4 Media', block: '4/Media', gate: '1', capacity: 41, area: 'PG' },
9
+ { sectorName: 'Sabah - Sector 5', block: '5', gate: '1', capacity: 432, area: 'PG' },
10
+ { sectorName: 'Sabah - Sector 6', block: '6', gate: '1', capacity: 441, area: 'PG' },
11
+ { sectorName: 'Sabah - Sector 7', block: '7', gate: '1', capacity: 566, area: 'PG' },
12
+ { sectorName: 'Sabah - Sector 8', block: '8', gate: '1', capacity: 477, area: 'PG' },
13
+ { sectorName: 'Sabah - Sector 9', block: '9', gate: '1', capacity: 580, area: 'PG' },
14
+ { sectorName: 'Sabah - Sector 10', block: '10', gate: '1', capacity: 552, area: 'PG' },
15
+ { sectorName: 'Sabah - Sector 11', block: '11', gate: '1', capacity: 207, area: 'PG' },
16
+ { sectorName: 'Sabah - Sector 12', block: '12', gate: '1', capacity: 439, area: 'PG' },
17
+ { sectorName: 'Sabah - Sector 13/VIP', block: '13/VIP Sector', gate: 'VIP', capacity: 282, area: 'VIP' },
18
+ { sectorName: 'Sabah - Sector 15', block: '15', gate: '1', capacity: 312, area: 'PG' },
19
+ { sectorName: 'Sabah - Sector 16', block: '16', gate: '1', capacity: 432, area: 'PG' },
20
+ { sectorName: 'Sabah - Sector 17', block: '17', gate: '1', capacity: 558, area: 'PG' },
21
+ { sectorName: 'Sabah - Sector 18', block: '18', gate: '1', capacity: 434, area: 'PG' },
22
+ { sectorName: 'Sabah - Sector 19', block: '19', gate: '1', capacity: 619, area: 'PG' },
23
+ { sectorName: 'Sabah - Sector 20', block: '20', gate: '1', capacity: 638, area: 'PG' },
24
+ { sectorName: 'Sabah - Sector 21', block: '21', gate: '1', capacity: 480, area: 'PG' },
25
+ { sectorName: 'Sabah - Sector 22', block: '22', gate: '1', capacity: 191, area: 'PG' },
26
+ { sectorName: 'Sabah - Sector SKYBOX 1', block: 'Skybox 1', gate: 'VIP', capacity: 7, area: 'VIP' },
27
+ { sectorName: 'Sabah - Sector SKYBOX 2', block: 'Skybox 2', gate: 'VIP', capacity: 4, area: 'VIP' },
28
+ { sectorName: 'Sabah - Sector SKYBOX 3', block: 'Skybox 3', gate: 'VIP', capacity: 5, area: 'VIP' },
29
+ { sectorName: 'Sabah - Sector SKYBOX 4', block: 'Skybox 4', gate: 'VIP', capacity: 8, area: 'VIP' },
30
+ { sectorName: 'Sabah - Sector SKYBOX 5', block: 'Skybox 5', gate: 'VIP', capacity: 10, area: 'VIP' },
31
+ { sectorName: 'Sabah - Sector SKYBOX 6', block: 'Skybox 6', gate: 'VIP', capacity: 6, area: 'VIP' },
32
+ { sectorName: 'Sabah - Sector SKYBOX 7', block: 'Skybox 7', gate: 'VIP', capacity: 6, area: 'VIP' },
33
+ { sectorName: 'Sabah - Sector SKYBOX 8', block: 'Skybox 8', gate: 'VIP', capacity: 15, area: 'VIP' },
34
+ { sectorName: 'Sabah - Sector SKYBOX 9', block: 'Skybox 9', gate: 'VIP', capacity: 15, area: 'VIP' },
35
+ { sectorName: 'Sabah - Lounge Sector', block: 'Lounge Sector', gate: 'VIP', capacity: 20, area: 'VIP' },
36
+ { sectorName: 'Sabah - VIP Lounge Sector', block: 'VIP Lounge Sector', gate: 'VIP', capacity: 90, area: 'VIP' },
37
+ { sectorName: 'Sabah - Sector LakeView VIP', block: 'LakeView VIP', gate: '1', capacity: 90, area: 'VIP' },
38
+ // Placeholder entries (no data provided): set capacity 0 to keep type-safe
39
+ { sectorName: 'Sabah - Sector Lounge 1', block: 'Lounge 1', gate: 'VIP', capacity: 0, area: 'VIP' },
40
+ { sectorName: 'Sabah - Sector Lounge 2', block: 'Lounge 2', gate: 'VIP', capacity: 0, area: 'VIP' },
41
+ { sectorName: 'Sabah - Sector Lounge 3', block: 'Lounge 3', gate: 'VIP', capacity: 0, area: 'VIP' },
42
+ ];
@@ -0,0 +1,19 @@
1
+ export declare const sectors: ({
2
+ sectorName: string;
3
+ block: string;
4
+ gate: "1";
5
+ capacity: number;
6
+ area: "PG";
7
+ } | {
8
+ sectorName: string;
9
+ block: string;
10
+ gate: "VIP";
11
+ capacity: number;
12
+ area: "VIP";
13
+ } | {
14
+ sectorName: string;
15
+ block: string;
16
+ gate: "1";
17
+ capacity: number;
18
+ area: "VIP";
19
+ })[];
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sectors = void 0;
4
+ exports.sectors = [
5
+ { sectorName: 'Sabah - Sector 1', block: '1', gate: '1', capacity: 218, area: 'PG' },
6
+ { sectorName: 'Sabah - Sector 2', block: '2', gate: '1', capacity: 418, area: 'PG' },
7
+ { sectorName: 'Sabah - 3 Central Sector', block: '3', gate: '1', capacity: 320, area: 'PG' },
8
+ { sectorName: 'Sabah - 4 Media', block: '4/Media', gate: '1', capacity: 41, area: 'PG' },
9
+ { sectorName: 'Sabah - Sector 5', block: '5', gate: '1', capacity: 432, area: 'PG' },
10
+ { sectorName: 'Sabah - Sector 6', block: '6', gate: '1', capacity: 441, area: 'PG' },
11
+ { sectorName: 'Sabah - Sector 7', block: '7', gate: '1', capacity: 566, area: 'PG' },
12
+ { sectorName: 'Sabah - Sector 8', block: '8', gate: '1', capacity: 477, area: 'PG' },
13
+ { sectorName: 'Sabah - Sector 9', block: '9', gate: '1', capacity: 580, area: 'PG' },
14
+ { sectorName: 'Sabah - Sector 10', block: '10', gate: '1', capacity: 552, area: 'PG' },
15
+ { sectorName: 'Sabah - Sector 11', block: '11', gate: '1', capacity: 207, area: 'PG' },
16
+ { sectorName: 'Sabah - Sector 12', block: '12', gate: '1', capacity: 439, area: 'PG' },
17
+ { sectorName: 'Sabah - Sector 13/VIP', block: '13/VIP Sector', gate: 'VIP', capacity: 282, area: 'VIP' },
18
+ { sectorName: 'Sabah - Sector 15', block: '15', gate: '1', capacity: 312, area: 'PG' },
19
+ { sectorName: 'Sabah - Sector 16', block: '16', gate: '1', capacity: 432, area: 'PG' },
20
+ { sectorName: 'Sabah - Sector 17', block: '17', gate: '1', capacity: 558, area: 'PG' },
21
+ { sectorName: 'Sabah - Sector 18', block: '18', gate: '1', capacity: 434, area: 'PG' },
22
+ { sectorName: 'Sabah - Sector 19', block: '19', gate: '1', capacity: 619, area: 'PG' },
23
+ { sectorName: 'Sabah - Sector 20', block: '20', gate: '1', capacity: 638, area: 'PG' },
24
+ { sectorName: 'Sabah - Sector 21', block: '21', gate: '1', capacity: 480, area: 'PG' },
25
+ { sectorName: 'Sabah - Sector 22', block: '22', gate: '1', capacity: 191, area: 'PG' },
26
+ { sectorName: 'Sabah - Sector SKYBOX 1', block: 'Skybox 1', gate: 'VIP', capacity: 7, area: 'VIP' },
27
+ { sectorName: 'Sabah - Sector SKYBOX 2', block: 'Skybox 2', gate: 'VIP', capacity: 4, area: 'VIP' },
28
+ { sectorName: 'Sabah - Sector SKYBOX 3', block: 'Skybox 3', gate: 'VIP', capacity: 5, area: 'VIP' },
29
+ { sectorName: 'Sabah - Sector SKYBOX 4', block: 'Skybox 4', gate: 'VIP', capacity: 8, area: 'VIP' },
30
+ { sectorName: 'Sabah - Sector SKYBOX 5', block: 'Skybox 5', gate: 'VIP', capacity: 10, area: 'VIP' },
31
+ { sectorName: 'Sabah - Sector SKYBOX 6', block: 'Skybox 6', gate: 'VIP', capacity: 6, area: 'VIP' },
32
+ { sectorName: 'Sabah - Sector SKYBOX 7', block: 'Skybox 7', gate: 'VIP', capacity: 6, area: 'VIP' },
33
+ { sectorName: 'Sabah - Sector SKYBOX 8', block: 'Skybox 8', gate: 'VIP', capacity: 15, area: 'VIP' },
34
+ { sectorName: 'Sabah - Sector SKYBOX 9', block: 'Skybox 9', gate: 'VIP', capacity: 15, area: 'VIP' },
35
+ { sectorName: 'Sabah - Lounge Sector', block: 'Lounge Sector', gate: 'VIP', capacity: 20, area: 'VIP' },
36
+ { sectorName: 'Sabah - VIP Lounge Sector', block: 'VIP Lounge Sector', gate: 'VIP', capacity: 90, area: 'VIP' },
37
+ { sectorName: 'Sabah - Sector LakeView VIP', block: 'LakeView VIP', gate: '1', capacity: 90, area: 'VIP' },
38
+ // Placeholder entries (no data provided): set capacity 0 to keep type-safe
39
+ { sectorName: 'Sabah - Sector Lounge 1', block: 'Lounge 1', gate: 'VIP', capacity: 0, area: 'VIP' },
40
+ { sectorName: 'Sabah - Sector Lounge 2', block: 'Lounge 2', gate: 'VIP', capacity: 0, area: 'VIP' },
41
+ { sectorName: 'Sabah - Sector Lounge 3', block: 'Lounge 3', gate: 'VIP', capacity: 0, area: 'VIP' },
42
+ ];
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@ibiliaze/global-vars",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
9
  "pub": "npm publish --access public",
10
- "git": "git add .; git commit -m 'changes'; git tag -a v1.11.0 -m 'v1.11.0'; git push origin v1.11.0; git push",
10
+ "git": "git add .; git commit -m 'changes'; git tag -a v1.13.0 -m 'v1.13.0'; git push origin v1.13.0; git push",
11
11
  "push": "npm run build; npm run git; npm run pub"
12
12
  },
13
13
  "author": "Ibi Hasanli",
package/src/index.ts CHANGED
@@ -1,21 +1,29 @@
1
1
  import roles from './ticketops/roles';
2
- import { sectors } from './ticketops/sectors';
2
+ import { sectors as sabahSectors } from './ticketops/sabahSectors';
3
+ import { sectors as sumgayiqSectors } from './ticketops/sumgayiqSectors';
3
4
 
4
5
  const globals = {
5
6
  TradeOps_a: {},
6
- TicketOps_a: {
7
+ SabahFK_A: {
7
8
  cart: { timer: 10 * 60 * 1000 },
8
9
  user: { auth: true },
9
10
  checkout: { epoint: true },
10
11
  roles: roles,
11
- tickets: { sectors },
12
+ tickets: { sectors: sabahSectors },
12
13
  },
13
- TicketOps_b: {
14
+ SabahFK_B: {
14
15
  cart: { timer: 10 * 60 * 1000 },
15
16
  user: { auth: true },
16
17
  checkout: { epoint: false },
17
18
  roles: roles,
18
- tickets: { sectors },
19
+ tickets: { sectors: sabahSectors },
20
+ },
21
+ Sumgayit: {
22
+ cart: { timer: 10 * 60 * 1000 },
23
+ user: { auth: true },
24
+ checkout: { epoint: false },
25
+ roles: roles,
26
+ tickets: { sectors: sumgayiqSectors },
19
27
  },
20
28
  } as GlobalVars;
21
29
 
@@ -27,7 +35,7 @@ export interface User {
27
35
  auth: boolean;
28
36
  }
29
37
 
30
- type App = 'TradeOps_a' | 'TicketOps_a' | 'TicketOps_b';
38
+ type App = 'TradeOps_a' | 'SabahFK_A' | 'SabahFK_B' | 'Sumgayit';
31
39
 
32
40
  export type GlobalVars = {
33
41
  [A in App]: Globals;
@@ -39,11 +47,11 @@ export interface Globals {
39
47
  checkout: { epoint: boolean };
40
48
  roles?: { path: string; name: string }[];
41
49
  tickets: {
42
- sectors: typeof sectors;
50
+ sectors: typeof sabahSectors | typeof sumgayiqSectors;
43
51
  };
44
52
  }
45
53
 
46
54
  export * as ticketopsTypes from './ticketops/inputsDefault';
47
55
  export * from './checkout';
48
- export { sectors };
56
+ export { sabahSectors, sumgayiqSectors };
49
57
  export default globals;
@@ -0,0 +1,50 @@
1
+ export const sectors = [
2
+ { sectorName: 'Sabah - Sector 1', block: '1', gate: '1', capacity: 218, area: 'PG' },
3
+ { sectorName: 'Sabah - Sector 2', block: '2', gate: '1', capacity: 418, area: 'PG' },
4
+ { sectorName: 'Sabah - 3 Central Sector', block: '3', gate: '1', capacity: 320, area: 'PG' },
5
+ { sectorName: 'Sabah - 4 Media', block: '4/Media', gate: '1', capacity: 41, area: 'PG' },
6
+ { sectorName: 'Sabah - Sector 5', block: '5', gate: '1', capacity: 432, area: 'PG' },
7
+ { sectorName: 'Sabah - Sector 6', block: '6', gate: '1', capacity: 441, area: 'PG' },
8
+ { sectorName: 'Sabah - Sector 7', block: '7', gate: '1', capacity: 566, area: 'PG' },
9
+ { sectorName: 'Sabah - Sector 8', block: '8', gate: '1', capacity: 477, area: 'PG' },
10
+ { sectorName: 'Sabah - Sector 9', block: '9', gate: '1', capacity: 580, area: 'PG' },
11
+ { sectorName: 'Sabah - Sector 10', block: '10', gate: '1', capacity: 552, area: 'PG' },
12
+ { sectorName: 'Sabah - Sector 11', block: '11', gate: '1', capacity: 207, area: 'PG' },
13
+ { sectorName: 'Sabah - Sector 12', block: '12', gate: '1', capacity: 439, area: 'PG' },
14
+ { sectorName: 'Sabah - Sector 13/VIP', block: '13/VIP Sector', gate: 'VIP', capacity: 282, area: 'VIP' },
15
+ { sectorName: 'Sabah - Sector 15', block: '15', gate: '1', capacity: 312, area: 'PG' },
16
+ { sectorName: 'Sabah - Sector 16', block: '16', gate: '1', capacity: 432, area: 'PG' },
17
+ { sectorName: 'Sabah - Sector 17', block: '17', gate: '1', capacity: 558, area: 'PG' },
18
+ { sectorName: 'Sabah - Sector 18', block: '18', gate: '1', capacity: 434, area: 'PG' },
19
+ { sectorName: 'Sabah - Sector 19', block: '19', gate: '1', capacity: 619, area: 'PG' },
20
+ { sectorName: 'Sabah - Sector 20', block: '20', gate: '1', capacity: 638, area: 'PG' },
21
+ { sectorName: 'Sabah - Sector 21', block: '21', gate: '1', capacity: 480, area: 'PG' },
22
+ { sectorName: 'Sabah - Sector 22', block: '22', gate: '1', capacity: 191, area: 'PG' },
23
+
24
+ { sectorName: 'Sabah - Sector SKYBOX 1', block: 'Skybox 1', gate: 'VIP', capacity: 7, area: 'VIP' },
25
+ { sectorName: 'Sabah - Sector SKYBOX 2', block: 'Skybox 2', gate: 'VIP', capacity: 4, area: 'VIP' },
26
+ { sectorName: 'Sabah - Sector SKYBOX 3', block: 'Skybox 3', gate: 'VIP', capacity: 5, area: 'VIP' },
27
+ { sectorName: 'Sabah - Sector SKYBOX 4', block: 'Skybox 4', gate: 'VIP', capacity: 8, area: 'VIP' },
28
+ { sectorName: 'Sabah - Sector SKYBOX 5', block: 'Skybox 5', gate: 'VIP', capacity: 10, area: 'VIP' },
29
+ { sectorName: 'Sabah - Sector SKYBOX 6', block: 'Skybox 6', gate: 'VIP', capacity: 6, area: 'VIP' },
30
+ { sectorName: 'Sabah - Sector SKYBOX 7', block: 'Skybox 7', gate: 'VIP', capacity: 6, area: 'VIP' },
31
+ { sectorName: 'Sabah - Sector SKYBOX 8', block: 'Skybox 8', gate: 'VIP', capacity: 15, area: 'VIP' },
32
+ { sectorName: 'Sabah - Sector SKYBOX 9', block: 'Skybox 9', gate: 'VIP', capacity: 15, area: 'VIP' },
33
+
34
+ { sectorName: 'Sabah - Lounge Sector', block: 'Lounge Sector', gate: 'VIP', capacity: 20, area: 'VIP' },
35
+ { sectorName: 'Sabah - VIP Lounge Sector', block: 'VIP Lounge Sector', gate: 'VIP', capacity: 90, area: 'VIP' },
36
+ { sectorName: 'Sabah - Sector LakeView VIP', block: 'LakeView VIP', gate: '1', capacity: 90, area: 'VIP' },
37
+
38
+ // Placeholder entries (no data provided): set capacity 0 to keep type-safe
39
+ { sectorName: 'Sabah - Sector Lounge 1', block: 'Lounge 1', gate: 'VIP', capacity: 0, area: 'VIP' },
40
+ { sectorName: 'Sabah - Sector Lounge 2', block: 'Lounge 2', gate: 'VIP', capacity: 0, area: 'VIP' },
41
+ { sectorName: 'Sabah - Sector Lounge 3', block: 'Lounge 3', gate: 'VIP', capacity: 0, area: 'VIP' },
42
+ ] satisfies Sector[];
43
+
44
+ type Sector = {
45
+ sectorName: string;
46
+ block: string;
47
+ area: 'PG' | 'VIP';
48
+ gate: '1' | 'VIP';
49
+ capacity: number;
50
+ };
File without changes