@ibiliaze/global-vars 1.132.0 → 1.133.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 (71) hide show
  1. package/dist/flows.js +0 -3
  2. package/dist/test.js +2 -2
  3. package/dist/ticketops/roles/account.d.ts +99 -0
  4. package/dist/ticketops/roles/account.js +87 -0
  5. package/dist/ticketops/roles/admin.d.ts +66 -0
  6. package/dist/ticketops/roles/admin.js +28 -0
  7. package/dist/ticketops/roles/ai.d.ts +6 -0
  8. package/dist/ticketops/roles/ai.js +11 -0
  9. package/dist/ticketops/roles/blog.d.ts +26 -0
  10. package/dist/ticketops/roles/blog.js +10 -0
  11. package/dist/ticketops/roles/campaign.d.ts +41 -0
  12. package/dist/ticketops/roles/campaign.js +13 -0
  13. package/dist/ticketops/roles/category.d.ts +26 -0
  14. package/dist/ticketops/roles/category.js +10 -0
  15. package/dist/ticketops/roles/checkout.d.ts +11 -0
  16. package/dist/ticketops/roles/checkout.js +17 -0
  17. package/dist/ticketops/roles/email.d.ts +16 -0
  18. package/dist/ticketops/roles/email.js +8 -0
  19. package/dist/ticketops/roles/event.d.ts +46 -0
  20. package/dist/ticketops/roles/event.js +14 -0
  21. package/dist/ticketops/roles/fail.d.ts +21 -0
  22. package/dist/ticketops/roles/fail.js +9 -0
  23. package/dist/ticketops/roles/file.d.ts +16 -0
  24. package/dist/ticketops/roles/file.js +23 -0
  25. package/dist/ticketops/roles/fixture.d.ts +26 -0
  26. package/dist/ticketops/roles/fixture.js +10 -0
  27. package/dist/ticketops/roles/flow.d.ts +31 -0
  28. package/dist/ticketops/roles/flow.js +11 -0
  29. package/dist/ticketops/roles/google.d.ts +6 -0
  30. package/dist/ticketops/roles/google.js +11 -0
  31. package/dist/ticketops/roles/group.d.ts +26 -0
  32. package/dist/ticketops/roles/group.js +10 -0
  33. package/dist/ticketops/roles/info.d.ts +6 -0
  34. package/dist/ticketops/roles/info.js +11 -0
  35. package/dist/ticketops/roles/job.d.ts +41 -0
  36. package/dist/ticketops/roles/job.js +13 -0
  37. package/dist/ticketops/roles/log.d.ts +16 -0
  38. package/dist/ticketops/roles/log.js +8 -0
  39. package/dist/ticketops/roles/notification.d.ts +31 -0
  40. package/dist/ticketops/roles/notification.js +11 -0
  41. package/dist/ticketops/roles/page.d.ts +31 -0
  42. package/dist/ticketops/roles/page.js +11 -0
  43. package/dist/ticketops/roles/product.d.ts +26 -0
  44. package/dist/ticketops/roles/product.js +10 -0
  45. package/dist/ticketops/roles/prospect.d.ts +46 -0
  46. package/dist/ticketops/roles/prospect.js +14 -0
  47. package/dist/ticketops/roles/quota.d.ts +6 -0
  48. package/dist/ticketops/roles/quota.js +11 -0
  49. package/dist/ticketops/roles/report.d.ts +26 -0
  50. package/dist/ticketops/roles/report.js +10 -0
  51. package/dist/ticketops/roles/review.d.ts +36 -0
  52. package/dist/ticketops/roles/review.js +12 -0
  53. package/dist/ticketops/roles/role.d.ts +26 -0
  54. package/dist/ticketops/roles/role.js +10 -0
  55. package/dist/ticketops/roles/sale.d.ts +36 -0
  56. package/dist/ticketops/roles/sale.js +17 -0
  57. package/dist/ticketops/roles/schema.d.ts +6 -0
  58. package/dist/ticketops/roles/schema.js +11 -0
  59. package/dist/ticketops/roles/season.d.ts +26 -0
  60. package/dist/ticketops/roles/season.js +10 -0
  61. package/dist/ticketops/roles/seat.d.ts +66 -0
  62. package/dist/ticketops/roles/seat.js +43 -0
  63. package/dist/ticketops/roles/section.d.ts +26 -0
  64. package/dist/ticketops/roles/section.js +10 -0
  65. package/dist/ticketops/roles/staff.d.ts +61 -0
  66. package/dist/ticketops/roles/staff.js +17 -0
  67. package/dist/ticketops/roles/user.d.ts +66 -0
  68. package/dist/ticketops/roles/user.js +23 -0
  69. package/dist/ticketops/roles.d.ts +2067 -3
  70. package/dist/ticketops/roles.js +159 -111
  71. package/package.json +2 -2
@@ -0,0 +1,36 @@
1
+ export declare const saleRoleDefs: readonly [{
2
+ readonly method: "post";
3
+ readonly path: "/sale";
4
+ readonly role: "postSale";
5
+ readonly name: "Create sale";
6
+ }, {
7
+ readonly method: "get";
8
+ readonly path: "/sale/user";
9
+ readonly role: "getSalesUser";
10
+ readonly name: "Get sales for user";
11
+ }, {
12
+ readonly method: "get";
13
+ readonly path: "/sale";
14
+ readonly role: "getSales";
15
+ readonly name: "Get sales";
16
+ }, {
17
+ readonly method: "get";
18
+ readonly path: "/sale/:id";
19
+ readonly role: "getSaleById";
20
+ readonly name: "Get sale by ID";
21
+ }, {
22
+ readonly method: "get";
23
+ readonly path: "/sale/insight/:period/:date";
24
+ readonly role: "getSaleInsightByPeriodDate";
25
+ readonly name: "Get sale insights";
26
+ }, {
27
+ readonly method: "put";
28
+ readonly path: "/sale/:id";
29
+ readonly role: "putSaleById";
30
+ readonly name: "Update sale";
31
+ }, {
32
+ readonly method: "delete";
33
+ readonly path: "/sale/:id";
34
+ readonly role: "deleteSaleById";
35
+ readonly name: "Delete sale";
36
+ }];
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.saleRoleDefs = void 0;
4
+ exports.saleRoleDefs = [
5
+ { method: 'post', path: '/sale', role: 'postSale', name: 'Create sale' },
6
+ { method: 'get', path: '/sale/user', role: 'getSalesUser', name: 'Get sales for user' },
7
+ { method: 'get', path: '/sale', role: 'getSales', name: 'Get sales' },
8
+ { method: 'get', path: '/sale/:id', role: 'getSaleById', name: 'Get sale by ID' },
9
+ {
10
+ method: 'get',
11
+ path: '/sale/insight/:period/:date',
12
+ role: 'getSaleInsightByPeriodDate',
13
+ name: 'Get sale insights',
14
+ },
15
+ { method: 'put', path: '/sale/:id', role: 'putSaleById', name: 'Update sale' },
16
+ { method: 'delete', path: '/sale/:id', role: 'deleteSaleById', name: 'Delete sale' },
17
+ ];
@@ -0,0 +1,6 @@
1
+ export declare const schemaRoleDefs: readonly [{
2
+ readonly method: "post";
3
+ readonly path: "/util/update-schema";
4
+ readonly role: "postUtilUpdateSchema";
5
+ readonly name: "Update schema";
6
+ }];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.schemaRoleDefs = void 0;
4
+ exports.schemaRoleDefs = [
5
+ {
6
+ method: 'post',
7
+ path: '/util/update-schema',
8
+ role: 'postUtilUpdateSchema',
9
+ name: 'Update schema',
10
+ },
11
+ ];
@@ -0,0 +1,26 @@
1
+ export declare const seasonRoleDefs: readonly [{
2
+ readonly method: "post";
3
+ readonly path: "/season";
4
+ readonly role: "postSeason";
5
+ readonly name: "Create season";
6
+ }, {
7
+ readonly method: "get";
8
+ readonly path: "/season";
9
+ readonly role: "getSeasons";
10
+ readonly name: "Get seasons";
11
+ }, {
12
+ readonly method: "get";
13
+ readonly path: "/season/:id";
14
+ readonly role: "getSeasonById";
15
+ readonly name: "Get season";
16
+ }, {
17
+ readonly method: "put";
18
+ readonly path: "/season/:id";
19
+ readonly role: "putSeasonById";
20
+ readonly name: "Update season";
21
+ }, {
22
+ readonly method: "delete";
23
+ readonly path: "/season/:id";
24
+ readonly role: "deleteSeasonById";
25
+ readonly name: "Delete season";
26
+ }];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.seasonRoleDefs = void 0;
4
+ exports.seasonRoleDefs = [
5
+ { method: 'post', path: '/season', role: 'postSeason', name: 'Create season' },
6
+ { method: 'get', path: '/season', role: 'getSeasons', name: 'Get seasons' },
7
+ { method: 'get', path: '/season/:id', role: 'getSeasonById', name: 'Get season' },
8
+ { method: 'put', path: '/season/:id', role: 'putSeasonById', name: 'Update season' },
9
+ { method: 'delete', path: '/season/:id', role: 'deleteSeasonById', name: 'Delete season' },
10
+ ];
@@ -0,0 +1,66 @@
1
+ export declare const occupanceRoleDefs: readonly [{
2
+ readonly method: "get";
3
+ readonly path: "/seat";
4
+ readonly role: "getSeats";
5
+ readonly name: "Get seats";
6
+ }, {
7
+ readonly method: "get";
8
+ readonly path: "/occupance/seasonal/:id";
9
+ readonly role: "getOccupanciesSeasonalById";
10
+ readonly name: "Get seasonal occupancies by season ID";
11
+ }, {
12
+ readonly method: "get";
13
+ readonly path: "/occupance/user";
14
+ readonly role: "getOccupanciesUser";
15
+ readonly name: "Get occupancies for user";
16
+ }, {
17
+ readonly method: "get";
18
+ readonly path: "/occupance";
19
+ readonly role: "getOccupancies";
20
+ readonly name: "Get occupancies";
21
+ }, {
22
+ readonly method: "get";
23
+ readonly path: "/occupance/info/:orderId";
24
+ readonly role: "getOccupanceInfoByOrderId";
25
+ readonly name: "Get occupance info by order id";
26
+ }, {
27
+ readonly method: "get";
28
+ readonly path: "/occupance/reserved";
29
+ readonly role: "getOccupanceReserved";
30
+ readonly name: "Get reserved occupancies";
31
+ }, {
32
+ readonly method: "get";
33
+ readonly path: "/occupance/pdf/:id";
34
+ readonly role: "getOccupancePdfById";
35
+ readonly name: "Get occupance PDF by ID";
36
+ }, {
37
+ readonly method: "post";
38
+ readonly path: "/occupance/reserve/:id";
39
+ readonly role: "postOccupanceReserveById";
40
+ readonly name: "Reserve occupance by ID";
41
+ }, {
42
+ readonly method: "post";
43
+ readonly path: "/occupance/seasonal/reserve/:id";
44
+ readonly role: "postSeasonalOccupanceReserveById";
45
+ readonly name: "Reserve seasonal occupance by ID";
46
+ }, {
47
+ readonly method: "post";
48
+ readonly path: "/occupance/free/:id";
49
+ readonly role: "postOccupanceFreeById";
50
+ readonly name: "Free occupance by ID";
51
+ }, {
52
+ readonly method: "post";
53
+ readonly path: "/occupance/seasonal/free/:id";
54
+ readonly role: "postSeasonalOccupanceFreeById";
55
+ readonly name: "Free seasonal occupance by ID";
56
+ }, {
57
+ readonly method: "put";
58
+ readonly path: "/occupance/:id";
59
+ readonly role: "putOccupanceById";
60
+ readonly name: "Update occupance by ID";
61
+ }, {
62
+ readonly method: "delete";
63
+ readonly path: "/occupance/stale";
64
+ readonly role: "deleteOccupanceStale";
65
+ readonly name: "Delete stale occupancies";
66
+ }];
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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
+ ];
@@ -0,0 +1,26 @@
1
+ export declare const sectionRoleDefs: readonly [{
2
+ readonly method: "post";
3
+ readonly path: "/section";
4
+ readonly role: "postSection";
5
+ readonly name: "Create section";
6
+ }, {
7
+ readonly method: "get";
8
+ readonly path: "/section";
9
+ readonly role: "getSections";
10
+ readonly name: "Get sections";
11
+ }, {
12
+ readonly method: "get";
13
+ readonly path: "/section/:id";
14
+ readonly role: "getSectionById";
15
+ readonly name: "Get section by ID";
16
+ }, {
17
+ readonly method: "put";
18
+ readonly path: "/section/:id";
19
+ readonly role: "putSectionById";
20
+ readonly name: "Update section by ID";
21
+ }, {
22
+ readonly method: "delete";
23
+ readonly path: "/section/:id";
24
+ readonly role: "deleteSectionById";
25
+ readonly name: "Delete section by ID";
26
+ }];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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
+ ];
@@ -0,0 +1,61 @@
1
+ export declare const staffRoleDefs: readonly [{
2
+ readonly method: "post";
3
+ readonly path: "/staff/admin";
4
+ readonly role: "postStaffAdmin";
5
+ readonly name: "Create staff as root";
6
+ }, {
7
+ readonly method: "post";
8
+ readonly path: "/staff/token";
9
+ readonly role: "postStaffToken";
10
+ readonly name: "Staff login (token)";
11
+ }, {
12
+ readonly method: "post";
13
+ readonly path: "/staff/logout";
14
+ readonly role: "postStaffLogout";
15
+ readonly name: "Staff logout";
16
+ }, {
17
+ readonly method: "post";
18
+ readonly path: "/staff/logout/all";
19
+ readonly role: "postStaffLogoutAll";
20
+ readonly name: "Staff logout all sessions";
21
+ }, {
22
+ readonly method: "post";
23
+ readonly path: "/staff/logout/:id";
24
+ readonly role: "postStaffLogoutById";
25
+ readonly name: "Staff logout by session id";
26
+ }, {
27
+ readonly method: "get";
28
+ readonly path: "/staff";
29
+ readonly role: "getStaff";
30
+ readonly name: "Get current staff";
31
+ }, {
32
+ readonly method: "get";
33
+ readonly path: "/staff/exists/:email";
34
+ readonly role: "getStaffExistsByEmail";
35
+ readonly name: "Check staff email exists";
36
+ }, {
37
+ readonly method: "get";
38
+ readonly path: "/staff/all";
39
+ readonly role: "getStaffAll";
40
+ readonly name: "Get all staff";
41
+ }, {
42
+ readonly method: "put";
43
+ readonly path: "/staff/account";
44
+ readonly role: "putStaffAccount";
45
+ readonly name: "Update own staff account";
46
+ }, {
47
+ readonly method: "put";
48
+ readonly path: "/staff/:id";
49
+ readonly role: "putStaffById";
50
+ readonly name: "Update staff by ID";
51
+ }, {
52
+ readonly method: "put";
53
+ readonly path: "/staff/password";
54
+ readonly role: "putStaffPassword";
55
+ readonly name: "Update staff password";
56
+ }, {
57
+ readonly method: "delete";
58
+ readonly path: "/staff/:id";
59
+ readonly role: "deleteStaffById";
60
+ readonly name: "Delete staff by ID";
61
+ }];
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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
+ ];
@@ -0,0 +1,66 @@
1
+ export declare const userRoleDefs: readonly [{
2
+ readonly method: "post";
3
+ readonly path: "/user";
4
+ readonly role: "postUser";
5
+ readonly name: "Register user";
6
+ }, {
7
+ readonly method: "post";
8
+ readonly path: "/user/admin";
9
+ readonly role: "postUserAdmin";
10
+ readonly name: "Create user as admin";
11
+ }, {
12
+ readonly method: "post";
13
+ readonly path: "/user/token";
14
+ readonly role: "postUserToken";
15
+ readonly name: "User login (token)";
16
+ }, {
17
+ readonly method: "post";
18
+ readonly path: "/user/logout";
19
+ readonly role: "postUserLogout";
20
+ readonly name: "User logout";
21
+ }, {
22
+ readonly method: "post";
23
+ readonly path: "/user/logout/all";
24
+ readonly role: "postUserLogoutAll";
25
+ readonly name: "User logout all sessions";
26
+ }, {
27
+ readonly method: "post";
28
+ readonly path: "/user/logout/:id";
29
+ readonly role: "postUserLogoutById";
30
+ readonly name: "User logout by session id";
31
+ }, {
32
+ readonly method: "get";
33
+ readonly path: "/user";
34
+ readonly role: "getUser";
35
+ readonly name: "Get current user";
36
+ }, {
37
+ readonly method: "get";
38
+ readonly path: "/user/exists/:email";
39
+ readonly role: "getUserExistsByEmail";
40
+ readonly name: "Check user email exists";
41
+ }, {
42
+ readonly method: "get";
43
+ readonly path: "/user/all";
44
+ readonly role: "getUsers";
45
+ readonly name: "Get users";
46
+ }, {
47
+ readonly method: "put";
48
+ readonly path: "/user/account";
49
+ readonly role: "putUserAccount";
50
+ readonly name: "Update own user account";
51
+ }, {
52
+ readonly method: "put";
53
+ readonly path: "/user/:id";
54
+ readonly role: "putUserById";
55
+ readonly name: "Update user by ID";
56
+ }, {
57
+ readonly method: "put";
58
+ readonly path: "/user/password";
59
+ readonly role: "putUserPassword";
60
+ readonly name: "Update user password";
61
+ }, {
62
+ readonly method: "delete";
63
+ readonly path: "/user/:id";
64
+ readonly role: "deleteUserById";
65
+ readonly name: "Delete user by ID";
66
+ }];
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userRoleDefs = void 0;
4
+ exports.userRoleDefs = [
5
+ // Registration / admin create / auth
6
+ { method: 'post', path: '/user', role: 'postUser', name: 'Register user' },
7
+ { method: 'post', path: '/user/admin', role: 'postUserAdmin', name: 'Create user as admin' },
8
+ { method: 'post', path: '/user/token', role: 'postUserToken', name: 'User login (token)' },
9
+ // Logout variants
10
+ { method: 'post', path: '/user/logout', role: 'postUserLogout', name: 'User logout' },
11
+ { method: 'post', path: '/user/logout/all', role: 'postUserLogoutAll', name: 'User logout all sessions' },
12
+ { method: 'post', path: '/user/logout/:id', role: 'postUserLogoutById', name: 'User logout by session id' },
13
+ // Reads
14
+ { method: 'get', path: '/user', role: 'getUser', name: 'Get current user' },
15
+ { method: 'get', path: '/user/exists/:email', role: 'getUserExistsByEmail', name: 'Check user email exists' },
16
+ { method: 'get', path: '/user/all', role: 'getUsers', name: 'Get users' },
17
+ // Updates
18
+ { method: 'put', path: '/user/account', role: 'putUserAccount', name: 'Update own user account' },
19
+ { method: 'put', path: '/user/:id', role: 'putUserById', name: 'Update user by ID' },
20
+ { method: 'put', path: '/user/password', role: 'putUserPassword', name: 'Update user password' },
21
+ // Delete
22
+ { method: 'delete', path: '/user/:id', role: 'deleteUserById', name: 'Delete user by ID' },
23
+ ];