@ibiliaze/global-vars 1.216.0 → 1.217.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 +1 -0
- package/dist/sale.d.ts +2 -0
- package/dist/sale.js +44 -0
- package/dist/ticketops/inputsDefault.d.ts +3 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
package/dist/sale.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const saleStatuses: readonly ["Draft", "Pending", "Reserved", "Expired", "Cancelled", "Authorising", "Authorised", "Processing", "Paid", "Captured", "Completed", "PartiallyPaid", "Overpaid", "Complimentary", "Failed", "Declined", "CancelledByGateway", "Timeout", "FraudRejected", "RefundPending", "Refunded", "PartiallyRefunded", "Disputed", "Chargeback", "ChargebackWon", "ChargebackLost", "Issued", "Delivered", "Scanned", "Used", "Invalidated"];
|
|
2
|
+
export type SaleStatus = (typeof saleStatuses)[number];
|
package/dist/sale.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.saleStatuses = void 0;
|
|
4
|
+
exports.saleStatuses = [
|
|
5
|
+
// Creation / intent
|
|
6
|
+
'Draft',
|
|
7
|
+
'Pending',
|
|
8
|
+
'Reserved',
|
|
9
|
+
'Expired',
|
|
10
|
+
'Cancelled',
|
|
11
|
+
// Payment processing
|
|
12
|
+
'Authorising',
|
|
13
|
+
'Authorised',
|
|
14
|
+
'Processing',
|
|
15
|
+
// Successful payment
|
|
16
|
+
'Paid',
|
|
17
|
+
'Captured',
|
|
18
|
+
'Completed',
|
|
19
|
+
// Partial / special success
|
|
20
|
+
'PartiallyPaid',
|
|
21
|
+
'Overpaid',
|
|
22
|
+
'Complimentary',
|
|
23
|
+
// Failures
|
|
24
|
+
'Failed',
|
|
25
|
+
'Declined',
|
|
26
|
+
'CancelledByGateway',
|
|
27
|
+
'Timeout',
|
|
28
|
+
'FraudRejected',
|
|
29
|
+
// Refunds
|
|
30
|
+
'RefundPending',
|
|
31
|
+
'Refunded',
|
|
32
|
+
'PartiallyRefunded',
|
|
33
|
+
// Disputes / chargebacks
|
|
34
|
+
'Disputed',
|
|
35
|
+
'Chargeback',
|
|
36
|
+
'ChargebackWon',
|
|
37
|
+
'ChargebackLost',
|
|
38
|
+
// Fulfilment / access
|
|
39
|
+
'Issued',
|
|
40
|
+
'Delivered',
|
|
41
|
+
'Scanned',
|
|
42
|
+
'Used',
|
|
43
|
+
'Invalidated',
|
|
44
|
+
];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { countries } from '../countries';
|
|
2
2
|
import { flows } from '../flows';
|
|
3
3
|
import { genders } from '../genders';
|
|
4
|
+
import type { SaleStatus } from '../sale';
|
|
4
5
|
export type ISODateString = string;
|
|
5
6
|
export interface SeatBase<Id, TDate> {
|
|
6
7
|
_id?: Id;
|
|
@@ -744,8 +745,9 @@ export interface SaleBase<Id, TDate> {
|
|
|
744
745
|
_id?: Id;
|
|
745
746
|
subscription: boolean;
|
|
746
747
|
orderId: string;
|
|
748
|
+
status: SaleStatus;
|
|
747
749
|
promoCodeId?: Id;
|
|
748
|
-
|
|
750
|
+
newCustomer?: boolean;
|
|
749
751
|
customer: Pick<CustomerBase<Id, TDate>, '_id' | 'name' | 'surname' | 'email' | 'tel'>;
|
|
750
752
|
item?: Pick<ItemBase<Id, TDate>, '_id' | 'name' | 'quantity' | 'price'>;
|
|
751
753
|
category?: Pick<EventCategoryBase<Id>, 'categoryId' | 'name' | 'price' | 'color'>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/global-vars",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.217.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.217.0 -m 'v1.217.0'; git push origin v1.217.0; git push",
|
|
26
26
|
"push": "npm run build; npm run git; npm run pub"
|
|
27
27
|
},
|
|
28
28
|
"author": "Ibi Hasanli",
|