@ibiliaze/global-vars 1.139.0 → 1.141.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 +32 -0
- package/dist/ticketops/roles/account.d.ts +0 -3
- package/dist/ticketops/roles/admin.d.ts +0 -2
- package/dist/ticketops/roles/blog.d.ts +0 -3
- package/dist/ticketops/roles/campaign.d.ts +2 -5
- package/dist/ticketops/roles/category.d.ts +0 -3
- package/dist/ticketops/roles/checkout.d.ts +16 -0
- package/dist/ticketops/roles/checkout.js +4 -0
- package/dist/ticketops/roles/email.d.ts +26 -0
- package/dist/ticketops/roles/email.js +26 -3
- package/dist/ticketops/roles/event.d.ts +6 -5
- package/dist/ticketops/roles/event.js +2 -1
- package/dist/ticketops/roles/fail.d.ts +41 -1
- package/dist/ticketops/roles/fail.js +40 -6
- package/dist/ticketops/roles/file.d.ts +32 -0
- package/dist/ticketops/roles/file.js +9 -0
- package/dist/ticketops/roles/fixture.d.ts +0 -3
- package/dist/ticketops/roles/flow.d.ts +0 -4
- package/dist/ticketops/roles/google.d.ts +4 -0
- package/dist/ticketops/roles/google.js +2 -0
- package/dist/ticketops/roles/group.d.ts +0 -4
- package/dist/ticketops/roles/info.d.ts +17 -0
- package/dist/ticketops/roles/info.js +3 -0
- package/dist/ticketops/roles/job.d.ts +0 -5
- package/dist/ticketops/roles/log.d.ts +0 -1
- package/dist/ticketops/roles/notification.d.ts +0 -3
- package/dist/ticketops/roles/page.d.ts +0 -4
- package/dist/ticketops/roles/product.d.ts +0 -3
- package/dist/ticketops/roles/prospect.d.ts +0 -4
- package/dist/ticketops/roles/quota.d.ts +13 -0
- package/dist/ticketops/roles/quota.js +3 -0
- package/dist/ticketops/roles/report.d.ts +47 -1
- package/dist/ticketops/roles/report.js +47 -7
- package/dist/ticketops/roles/review.d.ts +62 -1
- package/dist/ticketops/roles/review.js +63 -9
- package/dist/ticketops/roles/role.d.ts +43 -1
- package/dist/ticketops/roles/role.js +46 -7
- package/dist/ticketops/roles/sale.d.ts +63 -1
- package/dist/ticketops/roles/sale.js +64 -14
- package/dist/ticketops/roles/schema.d.ts +7 -0
- package/dist/ticketops/roles/schema.js +3 -0
- package/dist/ticketops/roles/season.d.ts +43 -1
- package/dist/ticketops/roles/season.js +46 -7
- package/dist/ticketops/roles/seat.d.ts +299 -1
- package/dist/ticketops/roles/seat.js +126 -40
- package/dist/ticketops/roles/section.d.ts +47 -1
- package/dist/ticketops/roles/section.js +47 -7
- package/dist/ticketops/roles/staff.d.ts +121 -1
- package/dist/ticketops/roles/staff.js +110 -14
- package/dist/ticketops/roles/user.d.ts +120 -1
- package/dist/ticketops/roles/user.js +114 -20
- package/dist/ticketops/roles.d.ts +2075 -211
- package/dist/ticketops/roles.js +20 -20
- package/package.json +2 -2
|
@@ -1,36 +1,98 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SaleBase, SaleInsightData } from '../inputsDefault';
|
|
2
|
+
export declare const saleRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/sale";
|
|
4
5
|
readonly role: "postSale";
|
|
5
6
|
readonly name: "Create sale";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
sale: SaleBase<TId, TDate>;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
readonly response_500: {
|
|
12
|
+
message: string;
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
6
15
|
}, {
|
|
7
16
|
readonly method: "get";
|
|
8
17
|
readonly path: "/sale/user";
|
|
9
18
|
readonly role: "getSalesUser";
|
|
10
19
|
readonly name: "Get sales for user";
|
|
20
|
+
readonly response_200: {
|
|
21
|
+
sales: SaleBase<TId, TDate>[];
|
|
22
|
+
count: number;
|
|
23
|
+
};
|
|
24
|
+
readonly response_500: {
|
|
25
|
+
message: string;
|
|
26
|
+
error: string;
|
|
27
|
+
};
|
|
11
28
|
}, {
|
|
12
29
|
readonly method: "get";
|
|
13
30
|
readonly path: "/sale";
|
|
14
31
|
readonly role: "getSales";
|
|
15
32
|
readonly name: "Get sales";
|
|
33
|
+
readonly response_200: {
|
|
34
|
+
sales: SaleBase<TId, TDate>[];
|
|
35
|
+
count: number;
|
|
36
|
+
};
|
|
37
|
+
readonly response_500: {
|
|
38
|
+
message: string;
|
|
39
|
+
error: string;
|
|
40
|
+
};
|
|
16
41
|
}, {
|
|
17
42
|
readonly method: "get";
|
|
18
43
|
readonly path: "/sale/:id";
|
|
19
44
|
readonly role: "getSaleById";
|
|
20
45
|
readonly name: "Get sale by ID";
|
|
46
|
+
readonly response_200: {
|
|
47
|
+
sale: SaleBase<TId, TDate> | null;
|
|
48
|
+
message: string;
|
|
49
|
+
};
|
|
50
|
+
readonly response_404: {
|
|
51
|
+
message: string;
|
|
52
|
+
};
|
|
21
53
|
}, {
|
|
22
54
|
readonly method: "get";
|
|
23
55
|
readonly path: "/sale/insight/:period/:date";
|
|
24
56
|
readonly role: "getSaleInsightByPeriodDate";
|
|
25
57
|
readonly name: "Get sale insights";
|
|
58
|
+
readonly response_200: SaleInsightData;
|
|
59
|
+
readonly response_400: {
|
|
60
|
+
message: string;
|
|
61
|
+
};
|
|
62
|
+
readonly response_500: {
|
|
63
|
+
message: string;
|
|
64
|
+
error: string;
|
|
65
|
+
};
|
|
26
66
|
}, {
|
|
27
67
|
readonly method: "put";
|
|
28
68
|
readonly path: "/sale/:id";
|
|
29
69
|
readonly role: "putSaleById";
|
|
30
70
|
readonly name: "Update sale";
|
|
71
|
+
readonly response_200: {
|
|
72
|
+
sale: SaleBase<TId, TDate>;
|
|
73
|
+
message: string;
|
|
74
|
+
};
|
|
75
|
+
readonly response_404: {
|
|
76
|
+
message: string;
|
|
77
|
+
};
|
|
78
|
+
readonly response_500: {
|
|
79
|
+
message: string;
|
|
80
|
+
error: string;
|
|
81
|
+
};
|
|
31
82
|
}, {
|
|
32
83
|
readonly method: "delete";
|
|
33
84
|
readonly path: "/sale/:id";
|
|
34
85
|
readonly role: "deleteSaleById";
|
|
35
86
|
readonly name: "Delete sale";
|
|
87
|
+
readonly response_200: {
|
|
88
|
+
sale: SaleBase<TId, TDate>;
|
|
89
|
+
message: string;
|
|
90
|
+
};
|
|
91
|
+
readonly response_404: {
|
|
92
|
+
message: string;
|
|
93
|
+
};
|
|
94
|
+
readonly response_500: {
|
|
95
|
+
message: string;
|
|
96
|
+
error: string;
|
|
97
|
+
};
|
|
36
98
|
}];
|
|
@@ -1,17 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.saleRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
const saleRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/sale',
|
|
9
|
+
role: 'postSale',
|
|
10
|
+
name: 'Create sale',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'get',
|
|
16
|
+
path: '/sale/user',
|
|
17
|
+
role: 'getSalesUser',
|
|
18
|
+
name: 'Get sales for user',
|
|
19
|
+
response_200: {},
|
|
20
|
+
response_500: {},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
method: 'get',
|
|
24
|
+
path: '/sale',
|
|
25
|
+
role: 'getSales',
|
|
26
|
+
name: 'Get sales',
|
|
27
|
+
response_200: {},
|
|
28
|
+
response_500: {},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
method: 'get',
|
|
32
|
+
path: '/sale/:id',
|
|
33
|
+
role: 'getSaleById',
|
|
34
|
+
name: 'Get sale by ID',
|
|
35
|
+
response_200: {},
|
|
36
|
+
response_404: {},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
method: 'get',
|
|
40
|
+
path: '/sale/insight/:period/:date',
|
|
41
|
+
role: 'getSaleInsightByPeriodDate',
|
|
42
|
+
name: 'Get sale insights',
|
|
43
|
+
response_200: {},
|
|
44
|
+
response_400: {},
|
|
45
|
+
response_500: {},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
method: 'put',
|
|
49
|
+
path: '/sale/:id',
|
|
50
|
+
role: 'putSaleById',
|
|
51
|
+
name: 'Update sale',
|
|
52
|
+
response_200: {},
|
|
53
|
+
response_404: {},
|
|
54
|
+
response_500: {},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
method: 'delete',
|
|
58
|
+
path: '/sale/:id',
|
|
59
|
+
role: 'deleteSaleById',
|
|
60
|
+
name: 'Delete sale',
|
|
61
|
+
response_200: {},
|
|
62
|
+
response_404: {},
|
|
63
|
+
response_500: {},
|
|
64
|
+
},
|
|
65
|
+
];
|
|
66
|
+
};
|
|
67
|
+
exports.saleRoleDefs = saleRoleDefs;
|
|
@@ -3,4 +3,11 @@ export declare const schemaRoleDefs: readonly [{
|
|
|
3
3
|
readonly path: "/util/update-schema";
|
|
4
4
|
readonly role: "postUtilUpdateSchema";
|
|
5
5
|
readonly name: "Update schema";
|
|
6
|
+
readonly response_200: {
|
|
7
|
+
message: string;
|
|
8
|
+
};
|
|
9
|
+
readonly response_500: {
|
|
10
|
+
message: string;
|
|
11
|
+
error: string;
|
|
12
|
+
};
|
|
6
13
|
}];
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.schemaRoleDefs = void 0;
|
|
4
4
|
exports.schemaRoleDefs = [
|
|
5
|
+
// POST /util/update-schema – update schema
|
|
5
6
|
{
|
|
6
7
|
method: 'post',
|
|
7
8
|
path: '/util/update-schema',
|
|
8
9
|
role: 'postUtilUpdateSchema',
|
|
9
10
|
name: 'Update schema',
|
|
11
|
+
response_200: {},
|
|
12
|
+
response_500: {},
|
|
10
13
|
},
|
|
11
14
|
];
|
|
@@ -1,26 +1,68 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SeasonBase } from '../inputsDefault';
|
|
2
|
+
export declare const seasonRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/season";
|
|
4
5
|
readonly role: "postSeason";
|
|
5
6
|
readonly name: "Create season";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
season: SeasonBase<TId, TDate>;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
readonly response_500: {
|
|
12
|
+
message: string;
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
6
15
|
}, {
|
|
7
16
|
readonly method: "get";
|
|
8
17
|
readonly path: "/season";
|
|
9
18
|
readonly role: "getSeasons";
|
|
10
19
|
readonly name: "Get seasons";
|
|
20
|
+
readonly response_200: {
|
|
21
|
+
seasons: SeasonBase<TId, TDate>[];
|
|
22
|
+
count: number;
|
|
23
|
+
};
|
|
24
|
+
readonly response_500: {
|
|
25
|
+
message: string;
|
|
26
|
+
error: string;
|
|
27
|
+
};
|
|
11
28
|
}, {
|
|
12
29
|
readonly method: "get";
|
|
13
30
|
readonly path: "/season/:id";
|
|
14
31
|
readonly role: "getSeasonById";
|
|
15
32
|
readonly name: "Get season";
|
|
33
|
+
readonly response_200: {
|
|
34
|
+
season: SeasonBase<TId, TDate> | null;
|
|
35
|
+
message: string;
|
|
36
|
+
};
|
|
37
|
+
readonly response_404: {
|
|
38
|
+
message: string;
|
|
39
|
+
};
|
|
16
40
|
}, {
|
|
17
41
|
readonly method: "put";
|
|
18
42
|
readonly path: "/season/:id";
|
|
19
43
|
readonly role: "putSeasonById";
|
|
20
44
|
readonly name: "Update season";
|
|
45
|
+
readonly response_200: {
|
|
46
|
+
season: SeasonBase<TId, TDate>;
|
|
47
|
+
message: string;
|
|
48
|
+
};
|
|
49
|
+
readonly response_404: {
|
|
50
|
+
message: string;
|
|
51
|
+
};
|
|
21
52
|
}, {
|
|
22
53
|
readonly method: "delete";
|
|
23
54
|
readonly path: "/season/:id";
|
|
24
55
|
readonly role: "deleteSeasonById";
|
|
25
56
|
readonly name: "Delete season";
|
|
57
|
+
readonly response_200: {
|
|
58
|
+
season: SeasonBase<TId, TDate>;
|
|
59
|
+
message: string;
|
|
60
|
+
};
|
|
61
|
+
readonly response_404: {
|
|
62
|
+
message: string;
|
|
63
|
+
};
|
|
64
|
+
readonly response_500: {
|
|
65
|
+
message: string;
|
|
66
|
+
error: string;
|
|
67
|
+
};
|
|
26
68
|
}];
|
|
@@ -1,10 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.seasonRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
const seasonRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/season',
|
|
9
|
+
role: 'postSeason',
|
|
10
|
+
name: 'Create season',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'get',
|
|
16
|
+
path: '/season',
|
|
17
|
+
role: 'getSeasons',
|
|
18
|
+
name: 'Get seasons',
|
|
19
|
+
response_200: {},
|
|
20
|
+
response_500: {},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
method: 'get',
|
|
24
|
+
path: '/season/:id',
|
|
25
|
+
role: 'getSeasonById',
|
|
26
|
+
name: 'Get season',
|
|
27
|
+
response_200: {},
|
|
28
|
+
response_404: {},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
method: 'put',
|
|
32
|
+
path: '/season/:id',
|
|
33
|
+
role: 'putSeasonById',
|
|
34
|
+
name: 'Update season',
|
|
35
|
+
response_200: {},
|
|
36
|
+
response_404: {},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
method: 'delete',
|
|
40
|
+
path: '/season/:id',
|
|
41
|
+
role: 'deleteSeasonById',
|
|
42
|
+
name: 'Delete season',
|
|
43
|
+
response_200: {},
|
|
44
|
+
response_404: {},
|
|
45
|
+
response_500: {},
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
};
|
|
49
|
+
exports.seasonRoleDefs = seasonRoleDefs;
|
|
@@ -1,66 +1,364 @@
|
|
|
1
|
-
export declare const occupanceRoleDefs: readonly [{
|
|
1
|
+
export declare const occupanceRoleDefs: <TId, TDate>() => readonly [{
|
|
2
2
|
readonly method: "get";
|
|
3
3
|
readonly path: "/seat";
|
|
4
4
|
readonly role: "getSeats";
|
|
5
5
|
readonly name: "Get seats";
|
|
6
|
+
readonly response_200: {
|
|
7
|
+
seats: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
_id?: TId;
|
|
10
|
+
name?: string;
|
|
11
|
+
row?: number;
|
|
12
|
+
col?: number;
|
|
13
|
+
}[];
|
|
14
|
+
count: number;
|
|
15
|
+
};
|
|
16
|
+
readonly response_500: {
|
|
17
|
+
message: string;
|
|
18
|
+
error: string;
|
|
19
|
+
};
|
|
6
20
|
}, {
|
|
7
21
|
readonly method: "get";
|
|
8
22
|
readonly path: "/occupance/seasonal/:id";
|
|
9
23
|
readonly role: "getOccupanciesSeasonalById";
|
|
10
24
|
readonly name: "Get seasonal occupancies by season ID";
|
|
25
|
+
readonly response_200: {
|
|
26
|
+
occupancies: {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
_id?: TId;
|
|
29
|
+
seatId?: TId;
|
|
30
|
+
fixtureId?: TId;
|
|
31
|
+
sectionId?: TId;
|
|
32
|
+
reserved?: boolean;
|
|
33
|
+
occupied?: boolean;
|
|
34
|
+
reservedAt?: TDate;
|
|
35
|
+
}[];
|
|
36
|
+
message: string;
|
|
37
|
+
};
|
|
38
|
+
readonly response_404: {
|
|
39
|
+
message: string;
|
|
40
|
+
};
|
|
41
|
+
readonly response_500: {
|
|
42
|
+
message: string;
|
|
43
|
+
error: string;
|
|
44
|
+
};
|
|
11
45
|
}, {
|
|
12
46
|
readonly method: "get";
|
|
13
47
|
readonly path: "/occupance/user";
|
|
14
48
|
readonly role: "getOccupanciesUser";
|
|
15
49
|
readonly name: "Get occupancies for user";
|
|
50
|
+
readonly response_200: {
|
|
51
|
+
occupancies: ({
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
_id?: TId;
|
|
54
|
+
seatId?: TId;
|
|
55
|
+
fixtureId?: TId;
|
|
56
|
+
sectionId?: TId;
|
|
57
|
+
reserved?: boolean;
|
|
58
|
+
occupied?: boolean;
|
|
59
|
+
reservedAt?: TDate;
|
|
60
|
+
} & {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
_id?: TId;
|
|
63
|
+
name?: string;
|
|
64
|
+
row?: number;
|
|
65
|
+
col?: number;
|
|
66
|
+
} & {
|
|
67
|
+
seatId?: TId;
|
|
68
|
+
})[];
|
|
69
|
+
count: number;
|
|
70
|
+
};
|
|
71
|
+
readonly response_500: {
|
|
72
|
+
message: string;
|
|
73
|
+
error: string;
|
|
74
|
+
};
|
|
16
75
|
}, {
|
|
17
76
|
readonly method: "get";
|
|
18
77
|
readonly path: "/occupance";
|
|
19
78
|
readonly role: "getOccupancies";
|
|
20
79
|
readonly name: "Get occupancies";
|
|
80
|
+
readonly response_200: {
|
|
81
|
+
occupancies: ({
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
_id?: TId;
|
|
84
|
+
seatId?: TId;
|
|
85
|
+
fixtureId?: TId;
|
|
86
|
+
sectionId?: TId;
|
|
87
|
+
reserved?: boolean;
|
|
88
|
+
occupied?: boolean;
|
|
89
|
+
reservedAt?: TDate;
|
|
90
|
+
} & {
|
|
91
|
+
[key: string]: any;
|
|
92
|
+
_id?: TId;
|
|
93
|
+
name?: string;
|
|
94
|
+
row?: number;
|
|
95
|
+
col?: number;
|
|
96
|
+
} & {
|
|
97
|
+
seatId?: TId;
|
|
98
|
+
})[];
|
|
99
|
+
count: number;
|
|
100
|
+
};
|
|
101
|
+
readonly response_500: {
|
|
102
|
+
message: string;
|
|
103
|
+
error: string;
|
|
104
|
+
};
|
|
21
105
|
}, {
|
|
22
106
|
readonly method: "get";
|
|
23
107
|
readonly path: "/occupance/info/:orderId";
|
|
24
108
|
readonly role: "getOccupanceInfoByOrderId";
|
|
25
109
|
readonly name: "Get occupance info by order id";
|
|
110
|
+
readonly response_200: {
|
|
111
|
+
occupancies: ({
|
|
112
|
+
[key: string]: any;
|
|
113
|
+
_id?: TId;
|
|
114
|
+
seatId?: TId;
|
|
115
|
+
fixtureId?: TId;
|
|
116
|
+
sectionId?: TId;
|
|
117
|
+
reserved?: boolean;
|
|
118
|
+
occupied?: boolean;
|
|
119
|
+
reservedAt?: TDate;
|
|
120
|
+
} & {
|
|
121
|
+
fixtureId?: any;
|
|
122
|
+
sectionId?: any;
|
|
123
|
+
seatId?: any;
|
|
124
|
+
})[] | null;
|
|
125
|
+
message: string;
|
|
126
|
+
};
|
|
127
|
+
readonly response_400: {
|
|
128
|
+
message: string;
|
|
129
|
+
};
|
|
130
|
+
readonly response_500: {
|
|
131
|
+
message: string;
|
|
132
|
+
error: string;
|
|
133
|
+
};
|
|
26
134
|
}, {
|
|
27
135
|
readonly method: "get";
|
|
28
136
|
readonly path: "/occupance/reserved";
|
|
29
137
|
readonly role: "getOccupanceReserved";
|
|
30
138
|
readonly name: "Get reserved occupancies";
|
|
139
|
+
readonly response_200: {
|
|
140
|
+
items: {
|
|
141
|
+
_id: string;
|
|
142
|
+
name: string;
|
|
143
|
+
quantity: number;
|
|
144
|
+
subscriptionPeriod: string;
|
|
145
|
+
type: string;
|
|
146
|
+
price: number;
|
|
147
|
+
reservedAt?: string;
|
|
148
|
+
}[];
|
|
149
|
+
occupancies: ({
|
|
150
|
+
[key: string]: any;
|
|
151
|
+
_id?: TId;
|
|
152
|
+
seatId?: TId;
|
|
153
|
+
fixtureId?: TId;
|
|
154
|
+
sectionId?: TId;
|
|
155
|
+
reserved?: boolean;
|
|
156
|
+
occupied?: boolean;
|
|
157
|
+
reservedAt?: TDate;
|
|
158
|
+
} & {
|
|
159
|
+
fixtureId?: any;
|
|
160
|
+
sectionId?: any;
|
|
161
|
+
seatId?: any;
|
|
162
|
+
})[];
|
|
163
|
+
message: string;
|
|
164
|
+
};
|
|
165
|
+
readonly response_400: {
|
|
166
|
+
message: string;
|
|
167
|
+
};
|
|
168
|
+
readonly response_500: {
|
|
169
|
+
message: string;
|
|
170
|
+
error: string;
|
|
171
|
+
};
|
|
31
172
|
}, {
|
|
32
173
|
readonly method: "get";
|
|
33
174
|
readonly path: "/occupance/pdf/:id";
|
|
34
175
|
readonly role: "getOccupancePdfById";
|
|
35
176
|
readonly name: "Get occupance PDF by ID";
|
|
177
|
+
readonly response_200: {
|
|
178
|
+
url?: string;
|
|
179
|
+
message: string;
|
|
180
|
+
};
|
|
181
|
+
readonly response_500: {
|
|
182
|
+
message: string;
|
|
183
|
+
error: string;
|
|
184
|
+
};
|
|
36
185
|
}, {
|
|
37
186
|
readonly method: "post";
|
|
38
187
|
readonly path: "/occupance/reserve/:id";
|
|
39
188
|
readonly role: "postOccupanceReserveById";
|
|
40
189
|
readonly name: "Reserve occupance by ID";
|
|
190
|
+
readonly response_200: {
|
|
191
|
+
item: {
|
|
192
|
+
_id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
quantity: number;
|
|
195
|
+
subscriptionPeriod: string;
|
|
196
|
+
type: string;
|
|
197
|
+
price: number;
|
|
198
|
+
reservedAt?: string;
|
|
199
|
+
};
|
|
200
|
+
occupance: {
|
|
201
|
+
[key: string]: any;
|
|
202
|
+
_id?: TId;
|
|
203
|
+
seatId?: TId;
|
|
204
|
+
fixtureId?: TId;
|
|
205
|
+
sectionId?: TId;
|
|
206
|
+
reserved?: boolean;
|
|
207
|
+
occupied?: boolean;
|
|
208
|
+
reservedAt?: TDate;
|
|
209
|
+
};
|
|
210
|
+
reservedAt: number;
|
|
211
|
+
message: string;
|
|
212
|
+
};
|
|
213
|
+
readonly response_400: {
|
|
214
|
+
message: string;
|
|
215
|
+
};
|
|
216
|
+
readonly response_403: {
|
|
217
|
+
message: string;
|
|
218
|
+
};
|
|
219
|
+
readonly response_404: {
|
|
220
|
+
message: string;
|
|
221
|
+
};
|
|
222
|
+
readonly response_409: {
|
|
223
|
+
message: string;
|
|
224
|
+
};
|
|
225
|
+
readonly response_500: {
|
|
226
|
+
message: string;
|
|
227
|
+
};
|
|
41
228
|
}, {
|
|
42
229
|
readonly method: "post";
|
|
43
230
|
readonly path: "/occupance/seasonal/reserve/:id";
|
|
44
231
|
readonly role: "postSeasonalOccupanceReserveById";
|
|
45
232
|
readonly name: "Reserve seasonal occupance by ID";
|
|
233
|
+
readonly response_200: {
|
|
234
|
+
item: {
|
|
235
|
+
_id: string;
|
|
236
|
+
name: string;
|
|
237
|
+
quantity: number;
|
|
238
|
+
subscriptionPeriod: string;
|
|
239
|
+
type: string;
|
|
240
|
+
price: number;
|
|
241
|
+
reservedAt?: string;
|
|
242
|
+
};
|
|
243
|
+
occupance: {
|
|
244
|
+
[key: string]: any;
|
|
245
|
+
_id?: TId;
|
|
246
|
+
seatId?: TId;
|
|
247
|
+
fixtureId?: TId;
|
|
248
|
+
sectionId?: TId;
|
|
249
|
+
reserved?: boolean;
|
|
250
|
+
occupied?: boolean;
|
|
251
|
+
reservedAt?: TDate;
|
|
252
|
+
};
|
|
253
|
+
reservedAt: number;
|
|
254
|
+
message: string;
|
|
255
|
+
};
|
|
256
|
+
readonly response_403: {
|
|
257
|
+
message: string;
|
|
258
|
+
};
|
|
259
|
+
readonly response_404: {
|
|
260
|
+
message: string;
|
|
261
|
+
};
|
|
262
|
+
readonly response_409: {
|
|
263
|
+
message: string;
|
|
264
|
+
};
|
|
265
|
+
readonly response_500: {
|
|
266
|
+
message: string;
|
|
267
|
+
};
|
|
46
268
|
}, {
|
|
47
269
|
readonly method: "post";
|
|
48
270
|
readonly path: "/occupance/free/:id";
|
|
49
271
|
readonly role: "postOccupanceFreeById";
|
|
50
272
|
readonly name: "Free occupance by ID";
|
|
273
|
+
readonly response_200: {
|
|
274
|
+
occupance?: {
|
|
275
|
+
[key: string]: any;
|
|
276
|
+
_id?: TId;
|
|
277
|
+
seatId?: TId;
|
|
278
|
+
fixtureId?: TId;
|
|
279
|
+
sectionId?: TId;
|
|
280
|
+
reserved?: boolean;
|
|
281
|
+
occupied?: boolean;
|
|
282
|
+
reservedAt?: TDate;
|
|
283
|
+
};
|
|
284
|
+
message: string;
|
|
285
|
+
};
|
|
286
|
+
readonly response_400: {
|
|
287
|
+
message: string;
|
|
288
|
+
};
|
|
289
|
+
readonly response_403: {
|
|
290
|
+
message: string;
|
|
291
|
+
};
|
|
292
|
+
readonly response_404: {
|
|
293
|
+
message: string;
|
|
294
|
+
};
|
|
295
|
+
readonly response_409: {
|
|
296
|
+
message: string;
|
|
297
|
+
};
|
|
51
298
|
}, {
|
|
52
299
|
readonly method: "post";
|
|
53
300
|
readonly path: "/occupance/seasonal/free/:id";
|
|
54
301
|
readonly role: "postSeasonalOccupanceFreeById";
|
|
55
302
|
readonly name: "Free seasonal occupance by ID";
|
|
303
|
+
readonly response_200: {
|
|
304
|
+
occupance?: {
|
|
305
|
+
[key: string]: any;
|
|
306
|
+
_id?: TId;
|
|
307
|
+
seatId?: TId;
|
|
308
|
+
fixtureId?: TId;
|
|
309
|
+
sectionId?: TId;
|
|
310
|
+
reserved?: boolean;
|
|
311
|
+
occupied?: boolean;
|
|
312
|
+
reservedAt?: TDate;
|
|
313
|
+
};
|
|
314
|
+
message: string;
|
|
315
|
+
};
|
|
316
|
+
readonly response_403: {
|
|
317
|
+
message: string;
|
|
318
|
+
};
|
|
319
|
+
readonly response_404: {
|
|
320
|
+
message: string;
|
|
321
|
+
};
|
|
322
|
+
readonly response_409: {
|
|
323
|
+
message: string;
|
|
324
|
+
};
|
|
325
|
+
readonly response_500: {
|
|
326
|
+
message: string;
|
|
327
|
+
};
|
|
56
328
|
}, {
|
|
57
329
|
readonly method: "put";
|
|
58
330
|
readonly path: "/occupance/:id";
|
|
59
331
|
readonly role: "putOccupanceById";
|
|
60
332
|
readonly name: "Update occupance by ID";
|
|
333
|
+
readonly response_200: {
|
|
334
|
+
occupance: {
|
|
335
|
+
[key: string]: any;
|
|
336
|
+
_id?: TId;
|
|
337
|
+
seatId?: TId;
|
|
338
|
+
fixtureId?: TId;
|
|
339
|
+
sectionId?: TId;
|
|
340
|
+
reserved?: boolean;
|
|
341
|
+
occupied?: boolean;
|
|
342
|
+
reservedAt?: TDate;
|
|
343
|
+
};
|
|
344
|
+
message: string;
|
|
345
|
+
};
|
|
346
|
+
readonly response_404: {
|
|
347
|
+
message: string;
|
|
348
|
+
};
|
|
349
|
+
readonly response_500: {
|
|
350
|
+
message: string;
|
|
351
|
+
error: string;
|
|
352
|
+
};
|
|
61
353
|
}, {
|
|
62
354
|
readonly method: "delete";
|
|
63
355
|
readonly path: "/occupance/stale";
|
|
64
356
|
readonly role: "deleteOccupanceStale";
|
|
65
357
|
readonly name: "Delete stale occupancies";
|
|
358
|
+
readonly response_200: {
|
|
359
|
+
message: string;
|
|
360
|
+
};
|
|
361
|
+
readonly response_500: {
|
|
362
|
+
message: string;
|
|
363
|
+
};
|
|
66
364
|
}];
|