@ibiliaze/global-vars 1.181.0 → 1.183.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/ticketops/inputsDefault.d.ts +4 -4
- package/dist/ticketops/pages.d.ts +3 -3
- package/dist/ticketops/pages.js +2 -2
- package/dist/ticketops/roles/event.d.ts +3 -0
- package/dist/ticketops/roles/event.js +1 -0
- package/dist/ticketops/roles/section.d.ts +16 -0
- package/dist/ticketops/roles/section.js +9 -0
- package/dist/ticketops/roles.d.ts +38 -0
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@ export type ISODateString = string;
|
|
|
5
5
|
export interface SeatBase<Id, TDate> {
|
|
6
6
|
_id?: Id;
|
|
7
7
|
sectionId: Id;
|
|
8
|
-
|
|
8
|
+
venueId: string;
|
|
9
9
|
name: string;
|
|
10
10
|
row: number;
|
|
11
11
|
col: number;
|
|
@@ -367,7 +367,7 @@ export interface EventBase<Id, TDate> {
|
|
|
367
367
|
_id?: Id;
|
|
368
368
|
name: string;
|
|
369
369
|
date: TDate;
|
|
370
|
-
|
|
370
|
+
venueId: string;
|
|
371
371
|
typeId: Id;
|
|
372
372
|
imgSrc?: string;
|
|
373
373
|
description?: string;
|
|
@@ -517,7 +517,7 @@ export type FlatOccupance<Id, TDate> = {
|
|
|
517
517
|
eventDate: TDate;
|
|
518
518
|
eventId: Id;
|
|
519
519
|
sectionId: Id;
|
|
520
|
-
|
|
520
|
+
venueId: string;
|
|
521
521
|
orderId: string;
|
|
522
522
|
customerId: Id;
|
|
523
523
|
name: string;
|
|
@@ -770,7 +770,7 @@ export interface SaleInsightData {
|
|
|
770
770
|
export interface SectionBase<Id, TDate> {
|
|
771
771
|
_id?: Id;
|
|
772
772
|
name: string;
|
|
773
|
-
|
|
773
|
+
venueId: string;
|
|
774
774
|
numberOfRows: number;
|
|
775
775
|
numberOfCols: number;
|
|
776
776
|
block: string;
|
|
@@ -17,10 +17,10 @@ export declare const pages: {
|
|
|
17
17
|
sections: {
|
|
18
18
|
readonly parentId: "sections-section";
|
|
19
19
|
readonly path: "/admin/sections";
|
|
20
|
-
readonly name: "
|
|
20
|
+
readonly name: "Venues";
|
|
21
21
|
readonly subPages: readonly [{
|
|
22
|
-
readonly name: "
|
|
23
|
-
readonly path: "/
|
|
22
|
+
readonly name: "Venues";
|
|
23
|
+
readonly path: "/venues";
|
|
24
24
|
}, {
|
|
25
25
|
readonly name: "Sectors";
|
|
26
26
|
readonly path: "/sections";
|
package/dist/ticketops/pages.js
CHANGED
|
@@ -5,9 +5,9 @@ exports.pages = {
|
|
|
5
5
|
sections: {
|
|
6
6
|
parentId: 'sections-section',
|
|
7
7
|
path: '/admin/sections',
|
|
8
|
-
name: '
|
|
8
|
+
name: 'Venues',
|
|
9
9
|
subPages: [
|
|
10
|
-
{ name: '
|
|
10
|
+
{ name: 'Venues', path: '/venues' },
|
|
11
11
|
{ name: 'Sectors', path: '/sections' },
|
|
12
12
|
],
|
|
13
13
|
},
|
|
@@ -12,6 +12,22 @@ export declare const sectionRoleDefs: <TId, TDate>() => readonly [{
|
|
|
12
12
|
message: string;
|
|
13
13
|
error: string;
|
|
14
14
|
};
|
|
15
|
+
}, {
|
|
16
|
+
readonly method: "post";
|
|
17
|
+
readonly path: "/section/seats/:id";
|
|
18
|
+
readonly role: "postSectionSeatsById";
|
|
19
|
+
readonly name: "Create section seats";
|
|
20
|
+
readonly response_201: {
|
|
21
|
+
section: SectionBase<TId, TDate>;
|
|
22
|
+
message: string;
|
|
23
|
+
};
|
|
24
|
+
readonly response_404: {
|
|
25
|
+
message: string;
|
|
26
|
+
};
|
|
27
|
+
readonly response_500: {
|
|
28
|
+
message: string;
|
|
29
|
+
error: string;
|
|
30
|
+
};
|
|
15
31
|
}, {
|
|
16
32
|
readonly method: "get";
|
|
17
33
|
readonly path: "/section";
|
|
@@ -11,6 +11,15 @@ const sectionRoleDefs = () => {
|
|
|
11
11
|
response_201: {},
|
|
12
12
|
response_500: {},
|
|
13
13
|
},
|
|
14
|
+
{
|
|
15
|
+
method: 'post',
|
|
16
|
+
path: '/section/seats/:id',
|
|
17
|
+
role: 'postSectionSeatsById',
|
|
18
|
+
name: 'Create section seats',
|
|
19
|
+
response_201: {},
|
|
20
|
+
response_404: {},
|
|
21
|
+
response_500: {},
|
|
22
|
+
},
|
|
14
23
|
{
|
|
15
24
|
method: 'get',
|
|
16
25
|
path: '/section',
|
|
@@ -773,6 +773,9 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
773
773
|
event: import("./inputsDefault").EventBase<TId_9, TDate_9>;
|
|
774
774
|
message: string;
|
|
775
775
|
};
|
|
776
|
+
readonly response_404: {
|
|
777
|
+
message: string;
|
|
778
|
+
};
|
|
776
779
|
readonly response_500: {
|
|
777
780
|
message: string;
|
|
778
781
|
error: string;
|
|
@@ -1969,6 +1972,22 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
1969
1972
|
message: string;
|
|
1970
1973
|
error: string;
|
|
1971
1974
|
};
|
|
1975
|
+
}, {
|
|
1976
|
+
readonly method: "post";
|
|
1977
|
+
readonly path: "/section/seats/:id";
|
|
1978
|
+
readonly role: "postSectionSeatsById";
|
|
1979
|
+
readonly name: "Create section seats";
|
|
1980
|
+
readonly response_201: {
|
|
1981
|
+
section: import("./inputsDefault").SectionBase<TId_22, TDate_22>;
|
|
1982
|
+
message: string;
|
|
1983
|
+
};
|
|
1984
|
+
readonly response_404: {
|
|
1985
|
+
message: string;
|
|
1986
|
+
};
|
|
1987
|
+
readonly response_500: {
|
|
1988
|
+
message: string;
|
|
1989
|
+
error: string;
|
|
1990
|
+
};
|
|
1972
1991
|
}, {
|
|
1973
1992
|
readonly method: "get";
|
|
1974
1993
|
readonly path: "/section";
|
|
@@ -3246,6 +3265,9 @@ declare const allApis: readonly [{
|
|
|
3246
3265
|
event: import("./inputsDefault").EventBase<TId_8, TDate_8>;
|
|
3247
3266
|
message: string;
|
|
3248
3267
|
};
|
|
3268
|
+
readonly response_404: {
|
|
3269
|
+
message: string;
|
|
3270
|
+
};
|
|
3249
3271
|
readonly response_500: {
|
|
3250
3272
|
message: string;
|
|
3251
3273
|
error: string;
|
|
@@ -4442,6 +4464,22 @@ declare const allApis: readonly [{
|
|
|
4442
4464
|
message: string;
|
|
4443
4465
|
error: string;
|
|
4444
4466
|
};
|
|
4467
|
+
}, {
|
|
4468
|
+
readonly method: "post";
|
|
4469
|
+
readonly path: "/section/seats/:id";
|
|
4470
|
+
readonly role: "postSectionSeatsById";
|
|
4471
|
+
readonly name: "Create section seats";
|
|
4472
|
+
readonly response_201: {
|
|
4473
|
+
section: import("./inputsDefault").SectionBase<TId_21, TDate_21>;
|
|
4474
|
+
message: string;
|
|
4475
|
+
};
|
|
4476
|
+
readonly response_404: {
|
|
4477
|
+
message: string;
|
|
4478
|
+
};
|
|
4479
|
+
readonly response_500: {
|
|
4480
|
+
message: string;
|
|
4481
|
+
error: string;
|
|
4482
|
+
};
|
|
4445
4483
|
}, {
|
|
4446
4484
|
readonly method: "get";
|
|
4447
4485
|
readonly path: "/section";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/global-vars",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.183.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.183.0 -m 'v1.183.0'; git push origin v1.183.0; git push",
|
|
26
26
|
"push": "npm run build; npm run git; npm run pub"
|
|
27
27
|
},
|
|
28
28
|
"author": "Ibi Hasanli",
|