@ibiliaze/global-vars 1.139.0 → 1.140.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/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 +8 -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 +2 -4
- 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/group.d.ts +0 -4
- 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/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 +74 -1
- package/dist/ticketops/roles/sale.js +64 -14
- 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 +2037 -215
- package/dist/ticketops/roles.js +20 -20
- package/package.json +2 -2
|
@@ -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
|
}];
|
|
@@ -1,43 +1,129 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.occupanceRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
4
|
+
const occupanceRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'get',
|
|
8
|
+
path: '/seat',
|
|
9
|
+
role: 'getSeats',
|
|
10
|
+
name: 'Get seats',
|
|
11
|
+
response_200: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'get',
|
|
16
|
+
path: '/occupance/seasonal/:id',
|
|
17
|
+
role: 'getOccupanciesSeasonalById',
|
|
18
|
+
name: 'Get seasonal occupancies by season ID',
|
|
19
|
+
response_200: {},
|
|
20
|
+
response_404: {},
|
|
21
|
+
response_500: {},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
method: 'get',
|
|
25
|
+
path: '/occupance/user',
|
|
26
|
+
role: 'getOccupanciesUser',
|
|
27
|
+
name: 'Get occupancies for user',
|
|
28
|
+
response_200: {},
|
|
29
|
+
response_500: {},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
method: 'get',
|
|
33
|
+
path: '/occupance',
|
|
34
|
+
role: 'getOccupancies',
|
|
35
|
+
name: 'Get occupancies',
|
|
36
|
+
response_200: {},
|
|
37
|
+
response_500: {},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
method: 'get',
|
|
41
|
+
path: '/occupance/info/:orderId',
|
|
42
|
+
role: 'getOccupanceInfoByOrderId',
|
|
43
|
+
name: 'Get occupance info by order id',
|
|
44
|
+
response_200: {},
|
|
45
|
+
response_400: {},
|
|
46
|
+
response_500: {},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
method: 'get',
|
|
50
|
+
path: '/occupance/reserved',
|
|
51
|
+
role: 'getOccupanceReserved',
|
|
52
|
+
name: 'Get reserved occupancies',
|
|
53
|
+
response_200: {},
|
|
54
|
+
response_400: {},
|
|
55
|
+
response_500: {},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
method: 'get',
|
|
59
|
+
path: '/occupance/pdf/:id',
|
|
60
|
+
role: 'getOccupancePdfById',
|
|
61
|
+
name: 'Get occupance PDF by ID',
|
|
62
|
+
response_200: {},
|
|
63
|
+
response_500: {},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
method: 'post',
|
|
67
|
+
path: '/occupance/reserve/:id',
|
|
68
|
+
role: 'postOccupanceReserveById',
|
|
69
|
+
name: 'Reserve occupance by ID',
|
|
70
|
+
response_200: {},
|
|
71
|
+
response_400: {},
|
|
72
|
+
response_403: {},
|
|
73
|
+
response_404: {},
|
|
74
|
+
response_409: {},
|
|
75
|
+
response_500: {},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
method: 'post',
|
|
79
|
+
path: '/occupance/seasonal/reserve/:id',
|
|
80
|
+
role: 'postSeasonalOccupanceReserveById',
|
|
81
|
+
name: 'Reserve seasonal occupance by ID',
|
|
82
|
+
response_200: {},
|
|
83
|
+
response_403: {},
|
|
84
|
+
response_404: {},
|
|
85
|
+
response_409: {},
|
|
86
|
+
response_500: {},
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
method: 'post',
|
|
90
|
+
path: '/occupance/free/:id',
|
|
91
|
+
role: 'postOccupanceFreeById',
|
|
92
|
+
name: 'Free occupance by ID',
|
|
93
|
+
response_200: {},
|
|
94
|
+
response_400: {},
|
|
95
|
+
response_403: {},
|
|
96
|
+
response_404: {},
|
|
97
|
+
response_409: {},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
method: 'post',
|
|
101
|
+
path: '/occupance/seasonal/free/:id',
|
|
102
|
+
role: 'postSeasonalOccupanceFreeById',
|
|
103
|
+
name: 'Free seasonal occupance by ID',
|
|
104
|
+
response_200: {},
|
|
105
|
+
response_403: {},
|
|
106
|
+
response_404: {},
|
|
107
|
+
response_409: {},
|
|
108
|
+
response_500: {},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
method: 'put',
|
|
112
|
+
path: '/occupance/:id',
|
|
113
|
+
role: 'putOccupanceById',
|
|
114
|
+
name: 'Update occupance by ID',
|
|
115
|
+
response_200: {},
|
|
116
|
+
response_404: {},
|
|
117
|
+
response_500: {},
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
method: 'delete',
|
|
121
|
+
path: '/occupance/stale',
|
|
122
|
+
role: 'deleteOccupanceStale',
|
|
123
|
+
name: 'Delete stale occupancies',
|
|
124
|
+
response_200: {},
|
|
125
|
+
response_500: {},
|
|
126
|
+
},
|
|
127
|
+
];
|
|
128
|
+
};
|
|
129
|
+
exports.occupanceRoleDefs = occupanceRoleDefs;
|