@ibiliaze/global-vars 1.217.0 → 1.219.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/checkout.d.ts +25 -0
- package/dist/checkout.js +3 -0
- package/dist/countries.d.ts +2 -1
- package/dist/countries.js +0 -1
- package/dist/genders.d.ts +2 -1
- package/dist/genders.js +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +3 -3
- package/dist/ticketops/inputsDefault.d.ts +5 -5
- package/dist/ticketops/sale.d.ts +2 -1
- package/package.json +2 -2
package/dist/checkout.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ItemBase } from './ticketops/inputsDefault';
|
|
2
|
+
export declare const epointPaymentStatuses: readonly ["success", "returned", "error", "server_error", "pending", "new"];
|
|
3
|
+
export declare const epointCurrencies: readonly ["AZN", "USD", "EUR", "GBP"];
|
|
2
4
|
export interface Checkout<Id, TDate> {
|
|
3
5
|
stripe?: {};
|
|
4
6
|
epoint?: Epoint;
|
|
@@ -13,6 +15,26 @@ export interface Epoint {
|
|
|
13
15
|
successUrl?: string;
|
|
14
16
|
errorUrl?: string;
|
|
15
17
|
}
|
|
18
|
+
export interface EpointResultPost {
|
|
19
|
+
data: string;
|
|
20
|
+
signature: string;
|
|
21
|
+
}
|
|
22
|
+
export interface EpointResultData {
|
|
23
|
+
order_id: string;
|
|
24
|
+
amount: string | number;
|
|
25
|
+
currency: EpointCurrency;
|
|
26
|
+
status: EpointPaymentStatus;
|
|
27
|
+
description?: string;
|
|
28
|
+
rrn?: string;
|
|
29
|
+
approval_code?: string;
|
|
30
|
+
card_mask?: string;
|
|
31
|
+
error_message?: string;
|
|
32
|
+
}
|
|
33
|
+
export type EpointReverseResponse = {
|
|
34
|
+
status: string;
|
|
35
|
+
message?: string;
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
16
38
|
export interface Local<Id, TDate> {
|
|
17
39
|
customerId: string;
|
|
18
40
|
subscription: boolean;
|
|
@@ -21,3 +43,6 @@ export interface Local<Id, TDate> {
|
|
|
21
43
|
items: ItemBase<Id, TDate>[];
|
|
22
44
|
}
|
|
23
45
|
export type EpointLang = 'az' | 'en' | 'ru';
|
|
46
|
+
export type EpointPaymentStatus = (typeof epointPaymentStatuses)[number];
|
|
47
|
+
export type EpointCurrency = (typeof epointCurrencies)[number];
|
|
48
|
+
export type PaymentApp = 'epoint' | 'stripe';
|
package/dist/checkout.js
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.epointCurrencies = exports.epointPaymentStatuses = void 0;
|
|
4
|
+
exports.epointPaymentStatuses = ['success', 'returned', 'error', 'server_error', 'pending', 'new'];
|
|
5
|
+
exports.epointCurrencies = ['AZN', 'USD', 'EUR', 'GBP'];
|
package/dist/countries.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const countries: readonly ["
|
|
1
|
+
export declare const countries: readonly ["Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cabo Verde", "Cambodia", "Cameroon", "Canada", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo (Congo-Brazzaville)", "Costa Rica", "Croatia", "Cuba", "Cyprus", "Czechia", "Democratic Republic of the Congo", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Eswatini (fmr. Swaziland)", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Montenegro", "Morocco", "Mozambique", "Myanmar (Burma)", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "North Korea", "North Macedonia", "Norway", "Oman", "Pakistan", "Palau", "Palestine State", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Korea", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname", "Sweden", "Switzerland", "Syria", "Tajikistan", "Tanzania", "Thailand", "Timor-Leste", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States of America", "Uruguay", "Uzbekistan", "Vanuatu", "Vatican City", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe"];
|
|
2
|
+
export type Country = (typeof countries)[number];
|
package/dist/countries.js
CHANGED
package/dist/genders.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const genders: readonly ["
|
|
1
|
+
export declare const genders: readonly ["Male", "Female", "Other"];
|
|
2
|
+
export type Gender = (typeof genders)[number];
|
package/dist/genders.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export { countries } from './countries';
|
|
2
2
|
export { genders } from './genders';
|
|
3
|
+
export { saleStatuses } from './sale';
|
|
3
4
|
export * from './flows';
|
|
4
5
|
export * from './ticketops/roles';
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
6
|
+
export type * from './globals';
|
|
7
|
+
export type * from './checkout';
|
|
7
8
|
export type * from './ticketops/inputsDefault';
|
|
8
9
|
export type * from './ticketops/pages';
|
|
9
10
|
export type * from './ticketops/sale';
|
|
10
11
|
export type * from './sale';
|
|
12
|
+
export type * from './genders';
|
|
13
|
+
export type * from './countries';
|
package/dist/index.js
CHANGED
|
@@ -14,12 +14,12 @@ 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.genders = exports.countries = void 0;
|
|
17
|
+
exports.saleStatuses = exports.genders = exports.countries = void 0;
|
|
18
18
|
var countries_1 = require("./countries");
|
|
19
19
|
Object.defineProperty(exports, "countries", { enumerable: true, get: function () { return countries_1.countries; } });
|
|
20
20
|
var genders_1 = require("./genders");
|
|
21
21
|
Object.defineProperty(exports, "genders", { enumerable: true, get: function () { return genders_1.genders; } });
|
|
22
|
+
var sale_1 = require("./sale");
|
|
23
|
+
Object.defineProperty(exports, "saleStatuses", { enumerable: true, get: function () { return sale_1.saleStatuses; } });
|
|
22
24
|
__exportStar(require("./flows"), exports);
|
|
23
25
|
__exportStar(require("./ticketops/roles"), exports);
|
|
24
|
-
// export { default } from './globals';
|
|
25
|
-
// export { default as globals } from './globals';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { genders } from '../genders';
|
|
1
|
+
import type { Country } from '../countries';
|
|
2
|
+
import type { Gender } from '../genders';
|
|
4
3
|
import type { SaleStatus } from '../sale';
|
|
4
|
+
import { flows } from '../flows';
|
|
5
5
|
export type ISODateString = string;
|
|
6
6
|
export interface SeatBase<Id, TDate> {
|
|
7
7
|
_id?: Id;
|
|
@@ -820,9 +820,9 @@ export interface CustomerBase<Id, TDate> {
|
|
|
820
820
|
dob?: TDate;
|
|
821
821
|
avatar?: string;
|
|
822
822
|
idNumber?: string;
|
|
823
|
-
country?:
|
|
823
|
+
country?: Country;
|
|
824
824
|
language?: string;
|
|
825
|
-
gender?:
|
|
825
|
+
gender?: Gender;
|
|
826
826
|
tokens?: CustomerTokenBase<Id>[];
|
|
827
827
|
createdAt?: TDate;
|
|
828
828
|
updatedAt?: TDate;
|
package/dist/ticketops/sale.d.ts
CHANGED
|
@@ -98,7 +98,8 @@ export type SaleSectors = {
|
|
|
98
98
|
}[];
|
|
99
99
|
}[];
|
|
100
100
|
};
|
|
101
|
-
export type PSPType = 'Cash at box office' | '
|
|
101
|
+
export type PSPType = 'Cash at box office' | 'Card' | 'Bank transfer (corporate)';
|
|
102
|
+
export type SubscriptionPeriod = '' | 'day' | 'week' | 'month' | 'year';
|
|
102
103
|
export type SalePayments = {
|
|
103
104
|
totalRevenue: number;
|
|
104
105
|
paymentSuccessRate: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/global-vars",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.219.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.219.0 -m 'v1.219.0'; git push origin v1.219.0; git push",
|
|
26
26
|
"push": "npm run build; npm run git; npm run pub"
|
|
27
27
|
},
|
|
28
28
|
"author": "Ibi Hasanli",
|