@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.
Files changed (54) hide show
  1. package/dist/ticketops/inputsDefault.d.ts +32 -0
  2. package/dist/ticketops/roles/account.d.ts +0 -3
  3. package/dist/ticketops/roles/admin.d.ts +0 -2
  4. package/dist/ticketops/roles/blog.d.ts +0 -3
  5. package/dist/ticketops/roles/campaign.d.ts +2 -5
  6. package/dist/ticketops/roles/category.d.ts +0 -3
  7. package/dist/ticketops/roles/checkout.d.ts +16 -0
  8. package/dist/ticketops/roles/checkout.js +4 -0
  9. package/dist/ticketops/roles/email.d.ts +26 -0
  10. package/dist/ticketops/roles/email.js +26 -3
  11. package/dist/ticketops/roles/event.d.ts +6 -5
  12. package/dist/ticketops/roles/event.js +2 -1
  13. package/dist/ticketops/roles/fail.d.ts +41 -1
  14. package/dist/ticketops/roles/fail.js +40 -6
  15. package/dist/ticketops/roles/file.d.ts +32 -0
  16. package/dist/ticketops/roles/file.js +9 -0
  17. package/dist/ticketops/roles/fixture.d.ts +0 -3
  18. package/dist/ticketops/roles/flow.d.ts +0 -4
  19. package/dist/ticketops/roles/google.d.ts +4 -0
  20. package/dist/ticketops/roles/google.js +2 -0
  21. package/dist/ticketops/roles/group.d.ts +0 -4
  22. package/dist/ticketops/roles/info.d.ts +17 -0
  23. package/dist/ticketops/roles/info.js +3 -0
  24. package/dist/ticketops/roles/job.d.ts +0 -5
  25. package/dist/ticketops/roles/log.d.ts +0 -1
  26. package/dist/ticketops/roles/notification.d.ts +0 -3
  27. package/dist/ticketops/roles/page.d.ts +0 -4
  28. package/dist/ticketops/roles/product.d.ts +0 -3
  29. package/dist/ticketops/roles/prospect.d.ts +0 -4
  30. package/dist/ticketops/roles/quota.d.ts +13 -0
  31. package/dist/ticketops/roles/quota.js +3 -0
  32. package/dist/ticketops/roles/report.d.ts +47 -1
  33. package/dist/ticketops/roles/report.js +47 -7
  34. package/dist/ticketops/roles/review.d.ts +62 -1
  35. package/dist/ticketops/roles/review.js +63 -9
  36. package/dist/ticketops/roles/role.d.ts +43 -1
  37. package/dist/ticketops/roles/role.js +46 -7
  38. package/dist/ticketops/roles/sale.d.ts +63 -1
  39. package/dist/ticketops/roles/sale.js +64 -14
  40. package/dist/ticketops/roles/schema.d.ts +7 -0
  41. package/dist/ticketops/roles/schema.js +3 -0
  42. package/dist/ticketops/roles/season.d.ts +43 -1
  43. package/dist/ticketops/roles/season.js +46 -7
  44. package/dist/ticketops/roles/seat.d.ts +299 -1
  45. package/dist/ticketops/roles/seat.js +126 -40
  46. package/dist/ticketops/roles/section.d.ts +47 -1
  47. package/dist/ticketops/roles/section.js +47 -7
  48. package/dist/ticketops/roles/staff.d.ts +121 -1
  49. package/dist/ticketops/roles/staff.js +110 -14
  50. package/dist/ticketops/roles/user.d.ts +120 -1
  51. package/dist/ticketops/roles/user.js +114 -20
  52. package/dist/ticketops/roles.d.ts +2075 -211
  53. package/dist/ticketops/roles.js +20 -20
  54. package/package.json +2 -2
@@ -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;
@@ -1,61 +1,181 @@
1
- export declare const staffRoleDefs: readonly [{
1
+ import type { StaffBase } from '../inputsDefault';
2
+ export declare const staffRoleDefs: <TId, TDate>() => readonly [{
2
3
  readonly method: "post";
3
4
  readonly path: "/staff/admin";
4
5
  readonly role: "postStaffAdmin";
5
6
  readonly name: "Create staff as root";
7
+ readonly response_201: {
8
+ staff: StaffBase<TId, TDate>;
9
+ message: string;
10
+ };
11
+ readonly response_400: {
12
+ message: string;
13
+ };
14
+ readonly response_401: {
15
+ message: string;
16
+ };
17
+ readonly response_500: {
18
+ message: string;
19
+ error: string;
20
+ };
6
21
  }, {
7
22
  readonly method: "post";
8
23
  readonly path: "/staff/token";
9
24
  readonly role: "postStaffToken";
10
25
  readonly name: "Staff login (token)";
26
+ readonly response_200: {
27
+ staff: StaffBase<TId, TDate>;
28
+ message: string;
29
+ };
30
+ readonly response_401: {
31
+ message: string;
32
+ };
33
+ readonly response_500: {
34
+ message: string;
35
+ error: string;
36
+ };
11
37
  }, {
12
38
  readonly method: "post";
13
39
  readonly path: "/staff/logout";
14
40
  readonly role: "postStaffLogout";
15
41
  readonly name: "Staff logout";
42
+ readonly response_200: {
43
+ staff: StaffBase<TId, TDate>;
44
+ message: string;
45
+ };
46
+ readonly response_500: {
47
+ message: string;
48
+ error: string;
49
+ };
16
50
  }, {
17
51
  readonly method: "post";
18
52
  readonly path: "/staff/logout/all";
19
53
  readonly role: "postStaffLogoutAll";
20
54
  readonly name: "Staff logout all sessions";
55
+ readonly response_200: {
56
+ staff: StaffBase<TId, TDate>;
57
+ message: string;
58
+ };
59
+ readonly response_500: {
60
+ message: string;
61
+ error: string;
62
+ };
21
63
  }, {
22
64
  readonly method: "post";
23
65
  readonly path: "/staff/logout/:id";
24
66
  readonly role: "postStaffLogoutById";
25
67
  readonly name: "Staff logout by session id";
68
+ readonly response_200: {
69
+ staff: StaffBase<TId, TDate>;
70
+ message: string;
71
+ };
72
+ readonly response_404: {
73
+ message: string;
74
+ };
75
+ readonly response_500: {
76
+ message: string;
77
+ error: string;
78
+ };
26
79
  }, {
27
80
  readonly method: "get";
28
81
  readonly path: "/staff";
29
82
  readonly role: "getStaff";
30
83
  readonly name: "Get current staff";
84
+ readonly response_200: {
85
+ staff: StaffBase<TId, TDate>;
86
+ };
87
+ readonly response_500: {
88
+ message: string;
89
+ error: string;
90
+ };
31
91
  }, {
32
92
  readonly method: "get";
33
93
  readonly path: "/staff/exists/:email";
34
94
  readonly role: "getStaffExistsByEmail";
35
95
  readonly name: "Check staff email exists";
96
+ readonly response_200: Record<string, never>;
97
+ readonly response_409: {
98
+ message: string;
99
+ };
100
+ readonly response_500: {
101
+ message: string;
102
+ error: string;
103
+ };
36
104
  }, {
37
105
  readonly method: "get";
38
106
  readonly path: "/staff/all";
39
107
  readonly role: "getStaffAll";
40
108
  readonly name: "Get all staff";
109
+ readonly response_200: {
110
+ staffs: StaffBase<TId, TDate>[];
111
+ count?: number;
112
+ };
113
+ readonly response_500: {
114
+ message: string;
115
+ error: string;
116
+ };
41
117
  }, {
42
118
  readonly method: "put";
43
119
  readonly path: "/staff/account";
44
120
  readonly role: "putStaffAccount";
45
121
  readonly name: "Update own staff account";
122
+ readonly response_200: {
123
+ staff: StaffBase<TId, TDate>;
124
+ message: string;
125
+ };
126
+ readonly response_404: {
127
+ message: string;
128
+ };
129
+ readonly response_500: {
130
+ message: string;
131
+ error: string;
132
+ };
46
133
  }, {
47
134
  readonly method: "put";
48
135
  readonly path: "/staff/:id";
49
136
  readonly role: "putStaffById";
50
137
  readonly name: "Update staff by ID";
138
+ readonly response_200: {
139
+ staff: StaffBase<TId, TDate>;
140
+ message: string;
141
+ };
142
+ readonly response_404: {
143
+ message: string;
144
+ };
145
+ readonly response_500: {
146
+ message: string;
147
+ error: string;
148
+ };
51
149
  }, {
52
150
  readonly method: "put";
53
151
  readonly path: "/staff/password";
54
152
  readonly role: "putStaffPassword";
55
153
  readonly name: "Update staff password";
154
+ readonly response_200: {
155
+ staff: StaffBase<TId, TDate>;
156
+ message: string;
157
+ };
158
+ readonly response_404: {
159
+ message: string;
160
+ };
161
+ readonly response_500: {
162
+ message: string;
163
+ error: string;
164
+ };
56
165
  }, {
57
166
  readonly method: "delete";
58
167
  readonly path: "/staff/:id";
59
168
  readonly role: "deleteStaffById";
60
169
  readonly name: "Delete staff by ID";
170
+ readonly response_200: {
171
+ staff: StaffBase<TId, TDate>;
172
+ message: string;
173
+ };
174
+ readonly response_404: {
175
+ message: string;
176
+ };
177
+ readonly response_500: {
178
+ message: string;
179
+ error: string;
180
+ };
61
181
  }];
@@ -1,17 +1,113 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.staffRoleDefs = void 0;
4
- exports.staffRoleDefs = [
5
- { method: 'post', path: '/staff/admin', role: 'postStaffAdmin', name: 'Create staff as root' },
6
- { method: 'post', path: '/staff/token', role: 'postStaffToken', name: 'Staff login (token)' },
7
- { method: 'post', path: '/staff/logout', role: 'postStaffLogout', name: 'Staff logout' },
8
- { method: 'post', path: '/staff/logout/all', role: 'postStaffLogoutAll', name: 'Staff logout all sessions' },
9
- { method: 'post', path: '/staff/logout/:id', role: 'postStaffLogoutById', name: 'Staff logout by session id' },
10
- { method: 'get', path: '/staff', role: 'getStaff', name: 'Get current staff' },
11
- { method: 'get', path: '/staff/exists/:email', role: 'getStaffExistsByEmail', name: 'Check staff email exists' },
12
- { method: 'get', path: '/staff/all', role: 'getStaffAll', name: 'Get all staff' },
13
- { method: 'put', path: '/staff/account', role: 'putStaffAccount', name: 'Update own staff account' },
14
- { method: 'put', path: '/staff/:id', role: 'putStaffById', name: 'Update staff by ID' },
15
- { method: 'put', path: '/staff/password', role: 'putStaffPassword', name: 'Update staff password' },
16
- { method: 'delete', path: '/staff/:id', role: 'deleteStaffById', name: 'Delete staff by ID' },
17
- ];
4
+ const staffRoleDefs = () => {
5
+ return [
6
+ {
7
+ method: 'post',
8
+ path: '/staff/admin',
9
+ role: 'postStaffAdmin',
10
+ name: 'Create staff as root',
11
+ response_201: {},
12
+ response_400: {},
13
+ response_401: {},
14
+ response_500: {},
15
+ },
16
+ {
17
+ method: 'post',
18
+ path: '/staff/token',
19
+ role: 'postStaffToken',
20
+ name: 'Staff login (token)',
21
+ response_200: {},
22
+ response_401: {},
23
+ response_500: {},
24
+ },
25
+ {
26
+ method: 'post',
27
+ path: '/staff/logout',
28
+ role: 'postStaffLogout',
29
+ name: 'Staff logout',
30
+ response_200: {},
31
+ response_500: {},
32
+ },
33
+ {
34
+ method: 'post',
35
+ path: '/staff/logout/all',
36
+ role: 'postStaffLogoutAll',
37
+ name: 'Staff logout all sessions',
38
+ response_200: {},
39
+ response_500: {},
40
+ },
41
+ {
42
+ method: 'post',
43
+ path: '/staff/logout/:id',
44
+ role: 'postStaffLogoutById',
45
+ name: 'Staff logout by session id',
46
+ response_200: {},
47
+ response_404: {},
48
+ response_500: {},
49
+ },
50
+ {
51
+ method: 'get',
52
+ path: '/staff',
53
+ role: 'getStaff',
54
+ name: 'Get current staff',
55
+ response_200: {},
56
+ response_500: {},
57
+ },
58
+ {
59
+ method: 'get',
60
+ path: '/staff/exists/:email',
61
+ role: 'getStaffExistsByEmail',
62
+ name: 'Check staff email exists',
63
+ response_200: {},
64
+ response_409: {},
65
+ response_500: {},
66
+ },
67
+ {
68
+ method: 'get',
69
+ path: '/staff/all',
70
+ role: 'getStaffAll',
71
+ name: 'Get all staff',
72
+ response_200: {},
73
+ response_500: {},
74
+ },
75
+ {
76
+ method: 'put',
77
+ path: '/staff/account',
78
+ role: 'putStaffAccount',
79
+ name: 'Update own staff account',
80
+ response_200: {},
81
+ response_404: {},
82
+ response_500: {},
83
+ },
84
+ {
85
+ method: 'put',
86
+ path: '/staff/:id',
87
+ role: 'putStaffById',
88
+ name: 'Update staff by ID',
89
+ response_200: {},
90
+ response_404: {},
91
+ response_500: {},
92
+ },
93
+ {
94
+ method: 'put',
95
+ path: '/staff/password',
96
+ role: 'putStaffPassword',
97
+ name: 'Update staff password',
98
+ response_200: {},
99
+ response_404: {},
100
+ response_500: {},
101
+ },
102
+ {
103
+ method: 'delete',
104
+ path: '/staff/:id',
105
+ role: 'deleteStaffById',
106
+ name: 'Delete staff by ID',
107
+ response_200: {},
108
+ response_404: {},
109
+ response_500: {},
110
+ },
111
+ ];
112
+ };
113
+ exports.staffRoleDefs = staffRoleDefs;