@ibiliaze/global-vars 1.138.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.
Files changed (58) hide show
  1. package/dist/ticketops/roles/account.d.ts +0 -3
  2. package/dist/ticketops/roles/admin.d.ts +11 -12
  3. package/dist/ticketops/roles/admin.js +130 -127
  4. package/dist/ticketops/roles/blog.d.ts +7 -9
  5. package/dist/ticketops/roles/blog.js +52 -49
  6. package/dist/ticketops/roles/campaign.d.ts +18 -12
  7. package/dist/ticketops/roles/campaign.js +84 -81
  8. package/dist/ticketops/roles/category.d.ts +47 -1
  9. package/dist/ticketops/roles/category.js +52 -7
  10. package/dist/ticketops/roles/checkout.d.ts +16 -0
  11. package/dist/ticketops/roles/checkout.js +4 -0
  12. package/dist/ticketops/roles/email.d.ts +26 -0
  13. package/dist/ticketops/roles/email.js +26 -3
  14. package/dist/ticketops/roles/event.d.ts +85 -1
  15. package/dist/ticketops/roles/event.js +81 -11
  16. package/dist/ticketops/roles/fail.d.ts +41 -1
  17. package/dist/ticketops/roles/fail.js +40 -6
  18. package/dist/ticketops/roles/file.d.ts +32 -0
  19. package/dist/ticketops/roles/file.js +9 -0
  20. package/dist/ticketops/roles/fixture.d.ts +47 -1
  21. package/dist/ticketops/roles/fixture.js +47 -7
  22. package/dist/ticketops/roles/flow.d.ts +54 -1
  23. package/dist/ticketops/roles/flow.js +55 -8
  24. package/dist/ticketops/roles/group.d.ts +47 -1
  25. package/dist/ticketops/roles/group.js +47 -7
  26. package/dist/ticketops/roles/job.d.ts +80 -1
  27. package/dist/ticketops/roles/job.js +73 -10
  28. package/dist/ticketops/roles/log.d.ts +28 -1
  29. package/dist/ticketops/roles/log.js +30 -5
  30. package/dist/ticketops/roles/notification.d.ts +56 -1
  31. package/dist/ticketops/roles/notification.js +55 -8
  32. package/dist/ticketops/roles/page.d.ts +55 -1
  33. package/dist/ticketops/roles/page.js +56 -8
  34. package/dist/ticketops/roles/product.d.ts +47 -1
  35. package/dist/ticketops/roles/product.js +47 -7
  36. package/dist/ticketops/roles/prospect.d.ts +86 -1
  37. package/dist/ticketops/roles/prospect.js +82 -11
  38. package/dist/ticketops/roles/report.d.ts +47 -1
  39. package/dist/ticketops/roles/report.js +47 -7
  40. package/dist/ticketops/roles/review.d.ts +62 -1
  41. package/dist/ticketops/roles/review.js +63 -9
  42. package/dist/ticketops/roles/role.d.ts +43 -1
  43. package/dist/ticketops/roles/role.js +46 -7
  44. package/dist/ticketops/roles/sale.d.ts +74 -1
  45. package/dist/ticketops/roles/sale.js +64 -14
  46. package/dist/ticketops/roles/season.d.ts +43 -1
  47. package/dist/ticketops/roles/season.js +46 -7
  48. package/dist/ticketops/roles/seat.d.ts +299 -1
  49. package/dist/ticketops/roles/seat.js +126 -40
  50. package/dist/ticketops/roles/section.d.ts +47 -1
  51. package/dist/ticketops/roles/section.js +47 -7
  52. package/dist/ticketops/roles/staff.d.ts +121 -1
  53. package/dist/ticketops/roles/staff.js +110 -14
  54. package/dist/ticketops/roles/user.d.ts +120 -1
  55. package/dist/ticketops/roles/user.js +114 -20
  56. package/dist/ticketops/roles.d.ts +3192 -74
  57. package/dist/ticketops/roles.js +48 -48
  58. package/package.json +2 -2
@@ -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
- exports.occupanceRoleDefs = [
5
- { method: 'get', path: '/seat', role: 'getSeats', name: 'Get seats' },
6
- {
7
- method: 'get',
8
- path: '/occupance/seasonal/:id',
9
- role: 'getOccupanciesSeasonalById',
10
- name: 'Get seasonal occupancies by season ID',
11
- },
12
- { method: 'get', path: '/occupance/user', role: 'getOccupanciesUser', name: 'Get occupancies for user' },
13
- { method: 'get', path: '/occupance', role: 'getOccupancies', name: 'Get occupancies' },
14
- {
15
- method: 'get',
16
- path: '/occupance/info/:orderId',
17
- role: 'getOccupanceInfoByOrderId',
18
- name: 'Get occupance info by order id',
19
- },
20
- { method: 'get', path: '/occupance/reserved', role: 'getOccupanceReserved', name: 'Get reserved occupancies' },
21
- { method: 'get', path: '/occupance/pdf/:id', role: 'getOccupancePdfById', name: 'Get occupance PDF by ID' },
22
- {
23
- method: 'post',
24
- path: '/occupance/reserve/:id',
25
- role: 'postOccupanceReserveById',
26
- name: 'Reserve occupance by ID',
27
- },
28
- {
29
- method: 'post',
30
- path: '/occupance/seasonal/reserve/:id',
31
- role: 'postSeasonalOccupanceReserveById',
32
- name: 'Reserve seasonal occupance by ID',
33
- },
34
- { method: 'post', path: '/occupance/free/:id', role: 'postOccupanceFreeById', name: 'Free occupance by ID' },
35
- {
36
- method: 'post',
37
- path: '/occupance/seasonal/free/:id',
38
- role: 'postSeasonalOccupanceFreeById',
39
- name: 'Free seasonal occupance by ID',
40
- },
41
- { method: 'put', path: '/occupance/:id', role: 'putOccupanceById', name: 'Update occupance by ID' },
42
- { method: 'delete', path: '/occupance/stale', role: 'deleteOccupanceStale', name: 'Delete stale occupancies' },
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;
@@ -1,26 +1,72 @@
1
- export declare const sectionRoleDefs: readonly [{
1
+ import type { SectionBase } from '../inputsDefault';
2
+ export declare const sectionRoleDefs: <TId, TDate>() => readonly [{
2
3
  readonly method: "post";
3
4
  readonly path: "/section";
4
5
  readonly role: "postSection";
5
6
  readonly name: "Create section";
7
+ readonly response_201: {
8
+ section: SectionBase<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: "/section";
9
18
  readonly role: "getSections";
10
19
  readonly name: "Get sections";
20
+ readonly response_200: {
21
+ sections: SectionBase<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: "/section/:id";
14
31
  readonly role: "getSectionById";
15
32
  readonly name: "Get section by ID";
33
+ readonly response_200: {
34
+ section: SectionBase<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: "/section/:id";
19
43
  readonly role: "putSectionById";
20
44
  readonly name: "Update section by ID";
45
+ readonly response_200: {
46
+ section: SectionBase<TId, TDate>;
47
+ message: string;
48
+ };
49
+ readonly response_404: {
50
+ message: string;
51
+ };
52
+ readonly response_500: {
53
+ message: string;
54
+ error: string;
55
+ };
21
56
  }, {
22
57
  readonly method: "delete";
23
58
  readonly path: "/section/:id";
24
59
  readonly role: "deleteSectionById";
25
60
  readonly name: "Delete section by ID";
61
+ readonly response_200: {
62
+ section: SectionBase<TId, TDate>;
63
+ message: string;
64
+ };
65
+ readonly response_404: {
66
+ message: string;
67
+ };
68
+ readonly response_500: {
69
+ message: string;
70
+ error: string;
71
+ };
26
72
  }];
@@ -1,10 +1,50 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sectionRoleDefs = void 0;
4
- exports.sectionRoleDefs = [
5
- { method: 'post', path: '/section', role: 'postSection', name: 'Create section' },
6
- { method: 'get', path: '/section', role: 'getSections', name: 'Get sections' },
7
- { method: 'get', path: '/section/:id', role: 'getSectionById', name: 'Get section by ID' },
8
- { method: 'put', path: '/section/:id', role: 'putSectionById', name: 'Update section by ID' },
9
- { method: 'delete', path: '/section/:id', role: 'deleteSectionById', name: 'Delete section by ID' },
10
- ];
4
+ const sectionRoleDefs = () => {
5
+ return [
6
+ {
7
+ method: 'post',
8
+ path: '/section',
9
+ role: 'postSection',
10
+ name: 'Create section',
11
+ response_201: {},
12
+ response_500: {},
13
+ },
14
+ {
15
+ method: 'get',
16
+ path: '/section',
17
+ role: 'getSections',
18
+ name: 'Get sections',
19
+ response_200: {},
20
+ response_500: {},
21
+ },
22
+ {
23
+ method: 'get',
24
+ path: '/section/:id',
25
+ role: 'getSectionById',
26
+ name: 'Get section by ID',
27
+ response_200: {},
28
+ response_404: {},
29
+ },
30
+ {
31
+ method: 'put',
32
+ path: '/section/:id',
33
+ role: 'putSectionById',
34
+ name: 'Update section by ID',
35
+ response_200: {},
36
+ response_404: {},
37
+ response_500: {},
38
+ },
39
+ {
40
+ method: 'delete',
41
+ path: '/section/:id',
42
+ role: 'deleteSectionById',
43
+ name: 'Delete section by ID',
44
+ response_200: {},
45
+ response_404: {},
46
+ response_500: {},
47
+ },
48
+ ];
49
+ };
50
+ exports.sectionRoleDefs = sectionRoleDefs;