@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,41 +1,120 @@
1
- export declare const jobRoleDefs: readonly [{
1
+ import type { CampaignBase, GroupBase, JobBase } from '../inputsDefault';
2
+ export declare const jobRoleDefs: <TId, TDate>() => readonly [{
2
3
  readonly method: "post";
3
4
  readonly path: "/job";
4
5
  readonly role: "postJob";
5
6
  readonly name: "Create job";
7
+ readonly response_201: {
8
+ job: JobBase<TId, TDate>;
9
+ message: string;
10
+ };
11
+ readonly response_500: {
12
+ message: string;
13
+ error: string;
14
+ };
6
15
  }, {
7
16
  readonly method: "post";
8
17
  readonly path: "/job/many";
9
18
  readonly role: "postJobMany";
10
19
  readonly name: "Create many jobs";
20
+ readonly response_201: {
21
+ jobs: JobBase<TId, TDate>[];
22
+ message: string;
23
+ };
24
+ readonly response_500: {
25
+ message: string;
26
+ error: string;
27
+ };
11
28
  }, {
12
29
  readonly method: "post";
13
30
  readonly path: "/job/start/:id";
14
31
  readonly role: "postJobStartById";
15
32
  readonly name: "Run job by ID";
33
+ readonly response_201: {
34
+ job: JobBase<TId, TDate>;
35
+ message: string;
36
+ };
37
+ readonly response_404: {
38
+ message: string;
39
+ };
40
+ readonly response_500: {
41
+ message: string;
42
+ error: string;
43
+ };
16
44
  }, {
17
45
  readonly method: "get";
18
46
  readonly path: "/job";
19
47
  readonly role: "getJobs";
20
48
  readonly name: "Get jobs";
49
+ readonly response_200: {
50
+ jobs: JobBase<TId, TDate>[];
51
+ count: number;
52
+ };
53
+ readonly response_500: {
54
+ message: string;
55
+ error: string;
56
+ };
21
57
  }, {
22
58
  readonly method: "get";
23
59
  readonly path: "/job/:id";
24
60
  readonly role: "getJobById";
25
61
  readonly name: "Get job";
62
+ readonly response_200: {
63
+ job: JobBase<TId, TDate> | null;
64
+ message: string;
65
+ };
66
+ readonly response_404: {
67
+ message: string;
68
+ };
26
69
  }, {
27
70
  readonly method: "get";
28
71
  readonly path: "/job/details/:id";
29
72
  readonly role: "getJobDetailsById";
30
73
  readonly name: "Get job details";
74
+ readonly response_200: {
75
+ job: JobBase<TId, TDate>;
76
+ campaign: CampaignBase<TId, TDate> | null;
77
+ group: GroupBase<TId, TDate> | null;
78
+ template: GroupBase<TId, TDate> | null;
79
+ message: string;
80
+ };
81
+ readonly response_400: {
82
+ job?: JobBase<TId, TDate> | null;
83
+ message: string;
84
+ };
85
+ readonly response_404: {
86
+ message: string;
87
+ };
31
88
  }, {
32
89
  readonly method: "put";
33
90
  readonly path: "/job/:id";
34
91
  readonly role: "putJobById";
35
92
  readonly name: "Update job";
93
+ readonly response_200: {
94
+ job: JobBase<TId, TDate>;
95
+ message: string;
96
+ };
97
+ readonly response_404: {
98
+ message: string;
99
+ };
100
+ readonly response_500: {
101
+ message: string;
102
+ error: string;
103
+ };
36
104
  }, {
37
105
  readonly method: "delete";
38
106
  readonly path: "/job/:id";
39
107
  readonly role: "deleteJobById";
40
108
  readonly name: "Delete job";
109
+ readonly response_200: {
110
+ job: JobBase<TId, TDate>;
111
+ message: string;
112
+ };
113
+ readonly response_404: {
114
+ message: string;
115
+ };
116
+ readonly response_500: {
117
+ message: string;
118
+ error: string;
119
+ };
41
120
  }];
@@ -1,13 +1,76 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.jobRoleDefs = void 0;
4
- exports.jobRoleDefs = [
5
- { method: 'post', path: '/job', role: 'postJob', name: 'Create job' },
6
- { method: 'post', path: '/job/many', role: 'postJobMany', name: 'Create many jobs' },
7
- { method: 'post', path: '/job/start/:id', role: 'postJobStartById', name: 'Run job by ID' },
8
- { method: 'get', path: '/job', role: 'getJobs', name: 'Get jobs' },
9
- { method: 'get', path: '/job/:id', role: 'getJobById', name: 'Get job' },
10
- { method: 'get', path: '/job/details/:id', role: 'getJobDetailsById', name: 'Get job details' },
11
- { method: 'put', path: '/job/:id', role: 'putJobById', name: 'Update job' },
12
- { method: 'delete', path: '/job/:id', role: 'deleteJobById', name: 'Delete job' },
13
- ];
4
+ const jobRoleDefs = () => {
5
+ return [
6
+ {
7
+ method: 'post',
8
+ path: '/job',
9
+ role: 'postJob',
10
+ name: 'Create job',
11
+ response_201: {},
12
+ response_500: {},
13
+ },
14
+ {
15
+ method: 'post',
16
+ path: '/job/many',
17
+ role: 'postJobMany',
18
+ name: 'Create many jobs',
19
+ response_201: {},
20
+ response_500: {},
21
+ },
22
+ {
23
+ method: 'post',
24
+ path: '/job/start/:id',
25
+ role: 'postJobStartById',
26
+ name: 'Run job by ID',
27
+ response_201: {},
28
+ response_404: {},
29
+ response_500: {},
30
+ },
31
+ {
32
+ method: 'get',
33
+ path: '/job',
34
+ role: 'getJobs',
35
+ name: 'Get jobs',
36
+ response_200: {},
37
+ response_500: {},
38
+ },
39
+ {
40
+ method: 'get',
41
+ path: '/job/:id',
42
+ role: 'getJobById',
43
+ name: 'Get job',
44
+ response_200: {},
45
+ response_404: {},
46
+ },
47
+ {
48
+ method: 'get',
49
+ path: '/job/details/:id',
50
+ role: 'getJobDetailsById',
51
+ name: 'Get job details',
52
+ response_200: {},
53
+ response_400: {},
54
+ response_404: {},
55
+ },
56
+ {
57
+ method: 'put',
58
+ path: '/job/:id',
59
+ role: 'putJobById',
60
+ name: 'Update job',
61
+ response_200: {},
62
+ response_404: {},
63
+ response_500: {},
64
+ },
65
+ {
66
+ method: 'delete',
67
+ path: '/job/:id',
68
+ role: 'deleteJobById',
69
+ name: 'Delete job',
70
+ response_200: {},
71
+ response_404: {},
72
+ response_500: {},
73
+ },
74
+ ];
75
+ };
76
+ exports.jobRoleDefs = jobRoleDefs;
@@ -1,16 +1,43 @@
1
- export declare const logRoleDefs: readonly [{
1
+ import type { LogBase } from '../inputsDefault';
2
+ export declare const logRoleDefs: <TId, TDate>() => readonly [{
2
3
  readonly method: "get";
3
4
  readonly path: "/log";
4
5
  readonly role: "getLogs";
5
6
  readonly name: "Get logs";
7
+ readonly response_200: {
8
+ logs: LogBase<TId, TDate>[];
9
+ count: number;
10
+ };
11
+ readonly response_500: {
12
+ message: string;
13
+ error: string;
14
+ };
6
15
  }, {
7
16
  readonly method: "delete";
8
17
  readonly path: "/log/all";
9
18
  readonly role: "deleteLogsAll";
10
19
  readonly name: "Delete all logs";
20
+ readonly response_200: {
21
+ message: string;
22
+ };
23
+ readonly response_500: {
24
+ message: string;
25
+ error: string;
26
+ };
11
27
  }, {
12
28
  readonly method: "delete";
13
29
  readonly path: "/log/:id";
14
30
  readonly role: "deleteLogById";
15
31
  readonly name: "Delete log by ID";
32
+ readonly response_200: {
33
+ log: LogBase<TId, TDate>;
34
+ message: string;
35
+ };
36
+ readonly response_404: {
37
+ message: string;
38
+ };
39
+ readonly response_500: {
40
+ message: string;
41
+ error: string;
42
+ };
16
43
  }];
@@ -1,8 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.logRoleDefs = void 0;
4
- exports.logRoleDefs = [
5
- { method: 'get', path: '/log', role: 'getLogs', name: 'Get logs' },
6
- { method: 'delete', path: '/log/all', role: 'deleteLogsAll', name: 'Delete all logs' },
7
- { method: 'delete', path: '/log/:id', role: 'deleteLogById', name: 'Delete log by ID' },
8
- ];
4
+ const logRoleDefs = () => {
5
+ return [
6
+ {
7
+ method: 'get',
8
+ path: '/log',
9
+ role: 'getLogs',
10
+ name: 'Get logs',
11
+ response_200: {},
12
+ response_500: {},
13
+ },
14
+ {
15
+ method: 'delete',
16
+ path: '/log/all',
17
+ role: 'deleteLogsAll',
18
+ name: 'Delete all logs',
19
+ response_200: {},
20
+ response_500: {},
21
+ },
22
+ {
23
+ method: 'delete',
24
+ path: '/log/:id',
25
+ role: 'deleteLogById',
26
+ name: 'Delete log by ID',
27
+ response_200: {},
28
+ response_404: {},
29
+ response_500: {},
30
+ },
31
+ ];
32
+ };
33
+ exports.logRoleDefs = logRoleDefs;
@@ -1,31 +1,86 @@
1
- export declare const notificationRoleDefs: readonly [{
1
+ import type { NotificationBase } from '../inputsDefault';
2
+ export declare const notificationRoleDefs: <TId, TDate>() => readonly [{
2
3
  readonly method: "post";
3
4
  readonly path: "/notification";
4
5
  readonly role: "postNotification";
5
6
  readonly name: "Create notification";
7
+ readonly response_201: {
8
+ notification: NotificationBase<TId, TDate>;
9
+ message: string;
10
+ };
11
+ readonly response_500: {
12
+ message: string;
13
+ error: string;
14
+ };
6
15
  }, {
7
16
  readonly method: "post";
8
17
  readonly path: "/notification/read";
9
18
  readonly role: "postNotificationRead";
10
19
  readonly name: "Mark notifications read";
20
+ readonly response_201: {
21
+ notificationIds: string[];
22
+ message: string;
23
+ };
24
+ readonly response_500: {
25
+ message: string;
26
+ error: string;
27
+ };
11
28
  }, {
12
29
  readonly method: "get";
13
30
  readonly path: "/notification";
14
31
  readonly role: "getNotifications";
15
32
  readonly name: "Get notifications";
33
+ readonly response_200: {
34
+ notifications: NotificationBase<TId, TDate>[];
35
+ count: number;
36
+ unreadCount: number;
37
+ };
38
+ readonly response_500: {
39
+ message: string;
40
+ error: string;
41
+ };
16
42
  }, {
17
43
  readonly method: "get";
18
44
  readonly path: "/notification/:id";
19
45
  readonly role: "getNotificationById";
20
46
  readonly name: "Get notification by ID";
47
+ readonly response_200: {
48
+ notification: NotificationBase<TId, TDate> | null;
49
+ message: string;
50
+ };
51
+ readonly response_404: {
52
+ message: string;
53
+ };
21
54
  }, {
22
55
  readonly method: "put";
23
56
  readonly path: "/notification/:id";
24
57
  readonly role: "putNotificationById";
25
58
  readonly name: "Update notification";
59
+ readonly response_200: {
60
+ notification: NotificationBase<TId, TDate>;
61
+ message: string;
62
+ };
63
+ readonly response_404: {
64
+ message: string;
65
+ };
66
+ readonly response_500: {
67
+ message: string;
68
+ error: string;
69
+ };
26
70
  }, {
27
71
  readonly method: "delete";
28
72
  readonly path: "/notification/:id";
29
73
  readonly role: "deleteNotificationById";
30
74
  readonly name: "Delete notification";
75
+ readonly response_200: {
76
+ notification: NotificationBase<TId, TDate>;
77
+ message: string;
78
+ };
79
+ readonly response_404: {
80
+ message: string;
81
+ };
82
+ readonly response_500: {
83
+ message: string;
84
+ error: string;
85
+ };
31
86
  }];
@@ -1,11 +1,58 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.notificationRoleDefs = void 0;
4
- exports.notificationRoleDefs = [
5
- { method: 'post', path: '/notification', role: 'postNotification', name: 'Create notification' },
6
- { method: 'post', path: '/notification/read', role: 'postNotificationRead', name: 'Mark notifications read' },
7
- { method: 'get', path: '/notification', role: 'getNotifications', name: 'Get notifications' },
8
- { method: 'get', path: '/notification/:id', role: 'getNotificationById', name: 'Get notification by ID' },
9
- { method: 'put', path: '/notification/:id', role: 'putNotificationById', name: 'Update notification' },
10
- { method: 'delete', path: '/notification/:id', role: 'deleteNotificationById', name: 'Delete notification' },
11
- ];
4
+ const notificationRoleDefs = () => {
5
+ return [
6
+ {
7
+ method: 'post',
8
+ path: '/notification',
9
+ role: 'postNotification',
10
+ name: 'Create notification',
11
+ response_201: {},
12
+ response_500: {},
13
+ },
14
+ {
15
+ method: 'post',
16
+ path: '/notification/read',
17
+ role: 'postNotificationRead',
18
+ name: 'Mark notifications read',
19
+ response_201: {},
20
+ response_500: {},
21
+ },
22
+ {
23
+ method: 'get',
24
+ path: '/notification',
25
+ role: 'getNotifications',
26
+ name: 'Get notifications',
27
+ response_200: {},
28
+ response_500: {},
29
+ },
30
+ {
31
+ method: 'get',
32
+ path: '/notification/:id',
33
+ role: 'getNotificationById',
34
+ name: 'Get notification by ID',
35
+ response_200: {},
36
+ response_404: {},
37
+ },
38
+ {
39
+ method: 'put',
40
+ path: '/notification/:id',
41
+ role: 'putNotificationById',
42
+ name: 'Update notification',
43
+ response_200: {},
44
+ response_404: {},
45
+ response_500: {},
46
+ },
47
+ {
48
+ method: 'delete',
49
+ path: '/notification/:id',
50
+ role: 'deleteNotificationById',
51
+ name: 'Delete notification',
52
+ response_200: {},
53
+ response_404: {},
54
+ response_500: {},
55
+ },
56
+ ];
57
+ };
58
+ exports.notificationRoleDefs = notificationRoleDefs;
@@ -1,31 +1,85 @@
1
- export declare const pageRoleDefs: readonly [{
1
+ import type { PageBase } from '../inputsDefault';
2
+ export declare const pageRoleDefs: <TId, TDate>() => readonly [{
2
3
  readonly method: "post";
3
4
  readonly path: "/page";
4
5
  readonly role: "postPage";
5
6
  readonly name: "Create page";
7
+ readonly response_201: {
8
+ page: PageBase<TId, TDate>;
9
+ message: string;
10
+ };
11
+ readonly response_500: {
12
+ message: string;
13
+ error: string;
14
+ };
6
15
  }, {
7
16
  readonly method: "post";
8
17
  readonly path: "/page/trigger/:id";
9
18
  readonly role: "postPageTriggerById";
10
19
  readonly name: "Trigger page by ID";
20
+ readonly response_200: Record<string, never>;
21
+ readonly response_404: {
22
+ message: string;
23
+ };
24
+ readonly response_500: {
25
+ message: string;
26
+ error: string;
27
+ };
11
28
  }, {
12
29
  readonly method: "get";
13
30
  readonly path: "/page";
14
31
  readonly role: "getPages";
15
32
  readonly name: "Get pages";
33
+ readonly response_200: {
34
+ pages: PageBase<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: "/page/:id";
19
44
  readonly role: "getPageById";
20
45
  readonly name: "Get page by ID";
46
+ readonly response_200: {
47
+ page: PageBase<TId, TDate> | null;
48
+ message: string;
49
+ };
50
+ readonly response_404: {
51
+ message: string;
52
+ };
21
53
  }, {
22
54
  readonly method: "put";
23
55
  readonly path: "/page/:id";
24
56
  readonly role: "putPageById";
25
57
  readonly name: "Update page";
58
+ readonly response_200: {
59
+ page: PageBase<TId, TDate>;
60
+ message: string;
61
+ };
62
+ readonly response_404: {
63
+ message: string;
64
+ };
65
+ readonly response_500: {
66
+ message: string;
67
+ error: string;
68
+ };
26
69
  }, {
27
70
  readonly method: "delete";
28
71
  readonly path: "/page/:id";
29
72
  readonly role: "deletePageById";
30
73
  readonly name: "Delete page";
74
+ readonly response_200: {
75
+ page: PageBase<TId, TDate>;
76
+ message: string;
77
+ };
78
+ readonly response_404: {
79
+ message: string;
80
+ };
81
+ readonly response_500: {
82
+ message: string;
83
+ error: string;
84
+ };
31
85
  }];
@@ -1,11 +1,59 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.pageRoleDefs = void 0;
4
- exports.pageRoleDefs = [
5
- { method: 'post', path: '/page', role: 'postPage', name: 'Create page' },
6
- { method: 'post', path: '/page/trigger/:id', role: 'postPageTriggerById', name: 'Trigger page by ID' },
7
- { method: 'get', path: '/page', role: 'getPages', name: 'Get pages' },
8
- { method: 'get', path: '/page/:id', role: 'getPageById', name: 'Get page by ID' },
9
- { method: 'put', path: '/page/:id', role: 'putPageById', name: 'Update page' },
10
- { method: 'delete', path: '/page/:id', role: 'deletePageById', name: 'Delete page' },
11
- ];
4
+ const pageRoleDefs = () => {
5
+ return [
6
+ {
7
+ method: 'post',
8
+ path: '/page',
9
+ role: 'postPage',
10
+ name: 'Create page',
11
+ response_201: {},
12
+ response_500: {},
13
+ },
14
+ {
15
+ method: 'post',
16
+ path: '/page/trigger/:id',
17
+ role: 'postPageTriggerById',
18
+ name: 'Trigger page by ID',
19
+ response_200: {},
20
+ response_404: {},
21
+ response_500: {},
22
+ },
23
+ {
24
+ method: 'get',
25
+ path: '/page',
26
+ role: 'getPages',
27
+ name: 'Get pages',
28
+ response_200: {},
29
+ response_500: {},
30
+ },
31
+ {
32
+ method: 'get',
33
+ path: '/page/:id',
34
+ role: 'getPageById',
35
+ name: 'Get page by ID',
36
+ response_200: {},
37
+ response_404: {},
38
+ },
39
+ {
40
+ method: 'put',
41
+ path: '/page/:id',
42
+ role: 'putPageById',
43
+ name: 'Update page',
44
+ response_200: {},
45
+ response_404: {},
46
+ response_500: {},
47
+ },
48
+ {
49
+ method: 'delete',
50
+ path: '/page/:id',
51
+ role: 'deletePageById',
52
+ name: 'Delete page',
53
+ response_200: {},
54
+ response_404: {},
55
+ response_500: {},
56
+ },
57
+ ];
58
+ };
59
+ exports.pageRoleDefs = pageRoleDefs;
@@ -1,26 +1,72 @@
1
- export declare const productRoleDefs: readonly [{
1
+ import type { ProductBase } from '../inputsDefault';
2
+ export declare const productRoleDefs: <TId, TDate>() => readonly [{
2
3
  readonly method: "post";
3
4
  readonly path: "/product";
4
5
  readonly role: "postProduct";
5
6
  readonly name: "Create product";
7
+ readonly response_201: {
8
+ product: ProductBase<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: "/product";
9
18
  readonly role: "getProducts";
10
19
  readonly name: "Get products";
20
+ readonly response_200: {
21
+ products: ProductBase<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: "/product/:id";
14
31
  readonly role: "getProductById";
15
32
  readonly name: "Get product";
33
+ readonly response_200: {
34
+ product: ProductBase<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: "/product/:id";
19
43
  readonly role: "putProductById";
20
44
  readonly name: "Update product";
45
+ readonly response_200: {
46
+ product: ProductBase<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: "/product/:id";
24
59
  readonly role: "deleteProductById";
25
60
  readonly name: "Delete product";
61
+ readonly response_200: {
62
+ product: ProductBase<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
  }];