@ibiliaze/global-vars 1.249.0 → 1.251.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.
|
@@ -616,12 +616,17 @@ export interface ItemBase<Id, TDate> {
|
|
|
616
616
|
serverNowMs: number;
|
|
617
617
|
occupanceId?: Id;
|
|
618
618
|
seasonId?: Id;
|
|
619
|
+
eventId?: Id;
|
|
620
|
+
flowId?: Id;
|
|
619
621
|
orderId?: Id;
|
|
620
622
|
productId?: Id;
|
|
621
623
|
expireAt?: TDate;
|
|
622
624
|
createdAt?: TDate;
|
|
623
625
|
updatedAt?: TDate;
|
|
624
626
|
}
|
|
627
|
+
export type ItemWithFlow<Id, TDate> = Omit<ItemBase<Id, TDate>, 'flowId'> & {
|
|
628
|
+
flowId: FlowBase<Id, TDate>;
|
|
629
|
+
};
|
|
625
630
|
export interface SaleBase<Id, TDate> {
|
|
626
631
|
_id?: Id;
|
|
627
632
|
subscription: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { EventBase, SeasonBase } from '../inputsDefault';
|
|
1
|
+
import type { TicketBase, EventBase, SeasonBase } from '../inputsDefault';
|
|
2
2
|
export declare const ticketRoleDefs: <TId, TDate>() => readonly [{
|
|
3
3
|
readonly method: "get";
|
|
4
4
|
readonly path: "/ticket/customer";
|
|
5
5
|
readonly role: "getTicketsCustomer";
|
|
6
6
|
readonly name: "Get tickets for customer";
|
|
7
7
|
readonly response_200: {
|
|
8
|
-
tickets:
|
|
8
|
+
tickets: TicketBase<TId, TDate>[];
|
|
9
9
|
count: number;
|
|
10
10
|
};
|
|
11
11
|
readonly response_500: {
|
|
@@ -18,7 +18,7 @@ export declare const ticketRoleDefs: <TId, TDate>() => readonly [{
|
|
|
18
18
|
readonly role: "getTicketsAdmin";
|
|
19
19
|
readonly name: "Get tickets for admin";
|
|
20
20
|
readonly response_200: {
|
|
21
|
-
tickets:
|
|
21
|
+
tickets: TicketBase<TId, TDate>[];
|
|
22
22
|
count: number;
|
|
23
23
|
};
|
|
24
24
|
readonly response_500: {
|
|
@@ -83,7 +83,7 @@ export declare const ticketRoleDefs: <TId, TDate>() => readonly [{
|
|
|
83
83
|
readonly role: "getTicketInfoByOrderId";
|
|
84
84
|
readonly name: "Get ticket info by order ID";
|
|
85
85
|
readonly response_200: {
|
|
86
|
-
tickets:
|
|
86
|
+
tickets: TicketBase<TId, TDate>[];
|
|
87
87
|
message: string;
|
|
88
88
|
};
|
|
89
89
|
readonly response_400: {
|
|
@@ -2090,7 +2090,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
2090
2090
|
readonly role: "getTicketsCustomer";
|
|
2091
2091
|
readonly name: "Get tickets for customer";
|
|
2092
2092
|
readonly response_200: {
|
|
2093
|
-
tickets:
|
|
2093
|
+
tickets: import("./inputsDefault").TicketBase<TId_23, TDate_23>[];
|
|
2094
2094
|
count: number;
|
|
2095
2095
|
};
|
|
2096
2096
|
readonly response_500: {
|
|
@@ -2103,7 +2103,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
2103
2103
|
readonly role: "getTicketsAdmin";
|
|
2104
2104
|
readonly name: "Get tickets for admin";
|
|
2105
2105
|
readonly response_200: {
|
|
2106
|
-
tickets:
|
|
2106
|
+
tickets: import("./inputsDefault").TicketBase<TId_23, TDate_23>[];
|
|
2107
2107
|
count: number;
|
|
2108
2108
|
};
|
|
2109
2109
|
readonly response_500: {
|
|
@@ -2168,7 +2168,7 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
2168
2168
|
readonly role: "getTicketInfoByOrderId";
|
|
2169
2169
|
readonly name: "Get ticket info by order ID";
|
|
2170
2170
|
readonly response_200: {
|
|
2171
|
-
tickets:
|
|
2171
|
+
tickets: import("./inputsDefault").TicketBase<TId_23, TDate_23>[];
|
|
2172
2172
|
message: string;
|
|
2173
2173
|
};
|
|
2174
2174
|
readonly response_400: {
|
|
@@ -4715,7 +4715,7 @@ declare const allApis: readonly [{
|
|
|
4715
4715
|
readonly role: "getTicketsCustomer";
|
|
4716
4716
|
readonly name: "Get tickets for customer";
|
|
4717
4717
|
readonly response_200: {
|
|
4718
|
-
tickets:
|
|
4718
|
+
tickets: import("./inputsDefault").TicketBase<TId_22, TDate_22>[];
|
|
4719
4719
|
count: number;
|
|
4720
4720
|
};
|
|
4721
4721
|
readonly response_500: {
|
|
@@ -4728,7 +4728,7 @@ declare const allApis: readonly [{
|
|
|
4728
4728
|
readonly role: "getTicketsAdmin";
|
|
4729
4729
|
readonly name: "Get tickets for admin";
|
|
4730
4730
|
readonly response_200: {
|
|
4731
|
-
tickets:
|
|
4731
|
+
tickets: import("./inputsDefault").TicketBase<TId_22, TDate_22>[];
|
|
4732
4732
|
count: number;
|
|
4733
4733
|
};
|
|
4734
4734
|
readonly response_500: {
|
|
@@ -4793,7 +4793,7 @@ declare const allApis: readonly [{
|
|
|
4793
4793
|
readonly role: "getTicketInfoByOrderId";
|
|
4794
4794
|
readonly name: "Get ticket info by order ID";
|
|
4795
4795
|
readonly response_200: {
|
|
4796
|
-
tickets:
|
|
4796
|
+
tickets: import("./inputsDefault").TicketBase<TId_22, TDate_22>[];
|
|
4797
4797
|
message: string;
|
|
4798
4798
|
};
|
|
4799
4799
|
readonly response_400: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/global-vars",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.251.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.251.0 -m 'v1.251.0'; git push origin v1.251.0; git push",
|
|
26
26
|
"push": "npm run build; npm run git; npm run pub"
|
|
27
27
|
},
|
|
28
28
|
"author": "Ibi Hasanli",
|