@ibiliaze/global-vars 1.52.0 → 1.54.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.
@@ -0,0 +1,26 @@
1
+ import { pages } from './ticketops/pages';
2
+ export interface Cart {
3
+ timer: number;
4
+ limit: number;
5
+ }
6
+ export interface User {
7
+ auth: boolean;
8
+ }
9
+ type App = 'TradeOps_a' | 'SabahFK_A' | 'SabahFK_B' | 'Sumgayit';
10
+ export interface Globals {
11
+ cart?: Cart;
12
+ user?: User;
13
+ checkout: {
14
+ epoint: boolean;
15
+ lockTimerMs: number;
16
+ };
17
+ tickets: {
18
+ accessControl: 'epra' | 'tacs';
19
+ pages: typeof pages;
20
+ };
21
+ }
22
+ export type GlobalVars = {
23
+ [A in App]: Globals;
24
+ };
25
+ declare const globals: GlobalVars;
26
+ export default globals;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const pages_1 = require("./ticketops/pages");
4
+ const globals = {
5
+ TradeOps_a: {},
6
+ SabahFK_A: {
7
+ cart: { timer: 10 * 60 * 1000, limit: 100 },
8
+ user: { auth: true },
9
+ checkout: { epoint: true, lockTimerMs: 10 * 60 * 1000 },
10
+ tickets: { accessControl: 'epra', pages: pages_1.pages },
11
+ },
12
+ SabahFK_B: {
13
+ cart: { timer: 10 * 60 * 1000, limit: 100 },
14
+ user: { auth: true },
15
+ checkout: { epoint: false, lockTimerMs: 10 * 60 * 1000 },
16
+ tickets: { accessControl: 'epra', pages: pages_1.pages },
17
+ },
18
+ Sumgayit: {
19
+ cart: { timer: 10 * 60 * 1000, limit: 100 },
20
+ user: { auth: true },
21
+ checkout: { epoint: false, lockTimerMs: 10 * 60 * 1000 },
22
+ tickets: { accessControl: 'tacs', pages: pages_1.pages },
23
+ },
24
+ };
25
+ exports.default = globals;
package/dist/index.d.ts CHANGED
@@ -1,30 +1,4 @@
1
- import { pages } from './ticketops/pages';
2
- declare const globals: GlobalVars;
3
- export interface Cart {
4
- timer: number;
5
- limit: number;
6
- }
7
- export interface User {
8
- auth: boolean;
9
- }
10
- type App = 'TradeOps_a' | 'SabahFK_A' | 'SabahFK_B' | 'Sumgayit';
11
- export type GlobalVars = {
12
- [A in App]: Globals;
13
- };
14
- export interface Globals {
15
- cart?: Cart;
16
- user?: User;
17
- checkout: {
18
- epoint: boolean;
19
- lockTimerMs: number;
20
- };
21
- tickets: {
22
- accessControl: 'epra' | 'tacs';
23
- pages: typeof pages;
24
- };
25
- }
26
- export * as ticketopsTypes from './ticketops/inputsDefault';
27
- export * from './ticketops/pages';
28
- export * from './checkout';
29
- export * from './countries';
30
- export default globals;
1
+ export { countries } from './countries';
2
+ export type { Cart, User, Globals, GlobalVars } from './globals';
3
+ export type { Checkout, Epoint, EpointLang, Local, LocalItem } from './checkout';
4
+ export type * from './ticketops/inputsDefault';
package/dist/index.js CHANGED
@@ -1,44 +1,5 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ticketopsTypes = void 0;
18
- const pages_1 = require("./ticketops/pages");
19
- const globals = {
20
- TradeOps_a: {},
21
- SabahFK_A: {
22
- cart: { timer: 10 * 60 * 1000, limit: 100 },
23
- user: { auth: true },
24
- checkout: { epoint: true, lockTimerMs: 10 * 60 * 1000 },
25
- tickets: { accessControl: 'epra', pages: pages_1.pages },
26
- },
27
- SabahFK_B: {
28
- cart: { timer: 10 * 60 * 1000, limit: 100 },
29
- user: { auth: true },
30
- checkout: { epoint: false, lockTimerMs: 10 * 60 * 1000 },
31
- tickets: { accessControl: 'epra', pages: pages_1.pages },
32
- },
33
- Sumgayit: {
34
- cart: { timer: 10 * 60 * 1000, limit: 100 },
35
- user: { auth: true },
36
- checkout: { epoint: false, lockTimerMs: 10 * 60 * 1000 },
37
- tickets: { accessControl: 'tacs', pages: pages_1.pages },
38
- },
39
- };
40
- exports.ticketopsTypes = require("./ticketops/inputsDefault");
41
- __exportStar(require("./ticketops/pages"), exports);
42
- __exportStar(require("./checkout"), exports);
43
- __exportStar(require("./countries"), exports);
44
- exports.default = globals;
3
+ exports.countries = void 0;
4
+ var countries_1 = require("./countries");
5
+ Object.defineProperty(exports, "countries", { enumerable: true, get: function () { return countries_1.countries; } });
package/package.json CHANGED
@@ -1,15 +1,27 @@
1
1
  {
2
2
  "name": "@ibiliaze/global-vars",
3
- "version": "1.52.0",
3
+ "version": "1.54.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./dist/index.js",
9
+ "require": "./dist/index.js",
10
+ "types": "./dist/index.d.ts"
11
+ },
12
+ "./globals": {
13
+ "import": "./dist/globals.js",
14
+ "require": "./dist/globals.js",
15
+ "types": "./dist/globals.d.ts"
16
+ }
17
+ },
6
18
  "files": [
7
19
  "dist/**/*"
8
20
  ],
9
21
  "scripts": {
10
22
  "build": "tsc",
11
23
  "pub": "npm publish --access public",
12
- "git": "git add .; git commit -m 'changes'; git tag -a v1.52.0 -m 'v1.52.0'; git push origin v1.52.0; git push",
24
+ "git": "git add .; git commit -m 'changes'; git tag -a v1.54.0 -m 'v1.54.0'; git push origin v1.54.0; git push",
13
25
  "push": "npm run build; npm run git; npm run pub"
14
26
  },
15
27
  "author": "Ibi Hasanli",