@purpleschool/multisite 0.0.4 → 0.0.6

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/api/routes.ts CHANGED
@@ -9,12 +9,20 @@ export const REST_API = {
9
9
  AUTH: {
10
10
  REGISTER: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.REGISTER}`,
11
11
  LOGIN: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.LOGIN}`,
12
+ ADMIN_LOGIN: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.ADMIN_LOGIN}`,
13
+ VK_LOGIN: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.VK_LOGIN}`,
14
+ YANDEX_LOGIN: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.YANDEX_LOGIN}`,
15
+ CREATE_USER: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.CREATE_USER}`,
16
+ RESTORE_PASSWORD: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.RESTORE_PASSWORD}`,
17
+ RESET_PASSWORD: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.RESET_PASSWORD}`,
18
+ VERIFY_EMAIL: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.VERIFY_EMAIL}`,
19
+ VERIFY_EMAIL_RETRY: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.VERIFY_EMAIL_RETRY}`,
12
20
  },
13
21
  UNREGISTERED_USER: {
14
22
  UPSERT: `${ROOT}/${CONTROLLERS.UNREGISTERED_USER_CONTROLLER}`,
15
23
  },
16
24
  USERS: {
17
- GET: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}`,
25
+ GET: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET}`,
18
26
  },
19
27
  PRODUCT_PUBLIC: {
20
28
  GET: `${ROOT}/${CONTROLLERS.PRODUCT_PUBLIC_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.GET_ALL}`,
@@ -42,6 +50,19 @@ export const REST_API = {
42
50
  IMAGE_GENERATION_PUBLIC: {
43
51
  CONFIG: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.CONFIG}`,
44
52
  PRICE: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.PRICE}`,
53
+ EXECUTE: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.EXECUTE}`,
54
+ LIST_JOBS: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.GET_JOBS}`,
55
+ GET_JOB: (uuid: string) =>
56
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.GET_JOB(uuid)}`,
57
+ UPDATE: (uuid: string) =>
58
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.UPDATE(uuid)}`,
59
+ SET_REACTION: (uuid: string) =>
60
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.SET_REACTION(uuid)}`,
61
+ DELETE: (uuid: string) =>
62
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE(uuid)}`,
63
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE_ALL}`,
64
+ RETRY: (uuid: string) =>
65
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.RETRY(uuid)}`,
45
66
  },
46
67
  IMAGE_GENERATION_PRIVATE: {
47
68
  CONFIG: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.CONFIG}`,
@@ -56,9 +77,12 @@ export const REST_API = {
56
77
  DELETE: (uuid: string) =>
57
78
  `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE(uuid)}`,
58
79
  DELETE_ALL: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE_ALL}`,
80
+ RETRY: (uuid: string) =>
81
+ `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.RETRY(uuid)}`,
59
82
  },
60
83
  MARKETPLACE_CARD_PUBLIC: {
61
84
  CONFIG: `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_PUBLIC_CONTROLLER}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.CONFIG}`,
85
+ PRICE: `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_PUBLIC_CONTROLLER}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.PRICE}`,
62
86
  EXECUTE: `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_PUBLIC_CONTROLLER}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.EXECUTE}`,
63
87
  LIST_JOBS: `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_PUBLIC_CONTROLLER}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.GET_JOBS}`,
64
88
  GET_JOB: (uuid: string) =>
@@ -92,6 +116,40 @@ export const REST_API = {
92
116
  },
93
117
  AI_PROXY: {
94
118
  IMAGE_GENERATION_CALLBACK: `${ROOT}/${CONTROLLERS.AI_PROXY_CONTROLLER}/${CONTROLLERS.AI_PROXY_ROUTES.IMAGE_GENERATION_CALLBACK}`,
119
+ IMAGE_EDITOR_CALLBACK: `${ROOT}/${CONTROLLERS.AI_PROXY_CONTROLLER}/${CONTROLLERS.AI_PROXY_ROUTES.IMAGE_EDITOR_CALLBACK}`,
120
+ },
121
+ IMAGE_EDITOR_PUBLIC: {
122
+ CONFIG: `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.CONFIG}`,
123
+ PRICE: `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.PRICE}`,
124
+ EXECUTE: `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.EXECUTE}`,
125
+ LIST_JOBS: `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.GET_JOBS}`,
126
+ GET_JOB: (uuid: string) =>
127
+ `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.GET_JOB(uuid)}`,
128
+ UPDATE: (uuid: string) =>
129
+ `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.UPDATE(uuid)}`,
130
+ SET_REACTION: (uuid: string) =>
131
+ `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.SET_REACTION(uuid)}`,
132
+ DELETE: (uuid: string) =>
133
+ `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.DELETE(uuid)}`,
134
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.DELETE_ALL}`,
135
+ RETRY: (uuid: string) =>
136
+ `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.RETRY(uuid)}`,
137
+ },
138
+ IMAGE_EDITOR_PRIVATE: {
139
+ CONFIG: `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.CONFIG}`,
140
+ EXECUTE: `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.EXECUTE}`,
141
+ LIST_JOBS: `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.GET_JOBS}`,
142
+ GET_JOB: (uuid: string) =>
143
+ `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.GET_JOB(uuid)}`,
144
+ UPDATE: (uuid: string) =>
145
+ `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.UPDATE(uuid)}`,
146
+ SET_REACTION: (uuid: string) =>
147
+ `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.SET_REACTION(uuid)}`,
148
+ DELETE: (uuid: string) =>
149
+ `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.DELETE(uuid)}`,
150
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.DELETE_ALL}`,
151
+ RETRY: (uuid: string) =>
152
+ `${ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.RETRY(uuid)}`,
95
153
  },
96
154
  FILES_PRIVATE: {
97
155
  UPLOAD: `${ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}/${CONTROLLERS.FILE_ROUTES.UPLOAD}`,
@@ -106,4 +164,29 @@ export const REST_API = {
106
164
  TRANSACTION: {
107
165
  WRITE_OFF: `${ROOT}/${CONTROLLERS.TRANSACTION_CONTROLLER}/${CONTROLLERS.TRANSACTION_ROUTES.WRITE_OFF}`,
108
166
  },
167
+ PAGE: {
168
+ GET_ALL: `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}`,
169
+ FIND_BY_CRITERIA: `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.FIND_BY_CRITERIA}`,
170
+ FIND_BY_UUID: (uuid: string) =>
171
+ `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.FIND_BY_UUID(uuid)}`,
172
+ FIND_BY_ALIAS: (alias: string) =>
173
+ `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.FIND_BY_ALIAS(alias)}`,
174
+ CREATE: `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}`,
175
+ UPDATE: (uuid: string) =>
176
+ `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.UPDATE(uuid)}`,
177
+ DELETE: (uuid: string) =>
178
+ `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.DELETE(uuid)}`,
179
+ CREATE_QUESTIONS_BULK: (pageId: string) =>
180
+ `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.CREATE_QUESTIONS_BULK(pageId)}`,
181
+ },
182
+ PAGE_QUESTION: {
183
+ GET_ALL: `${ROOT}/${CONTROLLERS.PAGE_QUESTION_CONTROLLER}`,
184
+ FIND_BY_UUID: (uuid: string) =>
185
+ `${ROOT}/${CONTROLLERS.PAGE_QUESTION_CONTROLLER}/${CONTROLLERS.PAGE_QUESTION_ROUTES.FIND_BY_UUID(uuid)}`,
186
+ CREATE: `${ROOT}/${CONTROLLERS.PAGE_QUESTION_CONTROLLER}`,
187
+ UPDATE: (uuid: string) =>
188
+ `${ROOT}/${CONTROLLERS.PAGE_QUESTION_CONTROLLER}/${CONTROLLERS.PAGE_QUESTION_ROUTES.UPDATE(uuid)}`,
189
+ DELETE: (uuid: string) =>
190
+ `${ROOT}/${CONTROLLERS.PAGE_QUESTION_CONTROLLER}/${CONTROLLERS.PAGE_QUESTION_ROUTES.DELETE(uuid)}`,
191
+ },
109
192
  } as const;
@@ -6,12 +6,20 @@ export declare const REST_API: {
6
6
  readonly AUTH: {
7
7
  readonly REGISTER: "/api/auth/register";
8
8
  readonly LOGIN: "/api/auth/login";
9
+ readonly ADMIN_LOGIN: "/api/auth/admin/login";
10
+ readonly VK_LOGIN: "/api/auth/vk/login";
11
+ readonly YANDEX_LOGIN: "/api/auth/yandex/login";
12
+ readonly CREATE_USER: "/api/auth/create-user";
13
+ readonly RESTORE_PASSWORD: "/api/auth/restore-password";
14
+ readonly RESET_PASSWORD: "/api/auth/reset-password";
15
+ readonly VERIFY_EMAIL: "/api/auth/verify-email";
16
+ readonly VERIFY_EMAIL_RETRY: "/api/auth/verify-email-retry";
9
17
  };
10
18
  readonly UNREGISTERED_USER: {
11
19
  readonly UPSERT: "/api/unregistered-user";
12
20
  };
13
21
  readonly USERS: {
14
- readonly GET: "/api/users";
22
+ readonly GET: "/api/users/me";
15
23
  };
16
24
  readonly PRODUCT_PUBLIC: {
17
25
  readonly GET: "/api/product/public/all";
@@ -36,6 +44,14 @@ export declare const REST_API: {
36
44
  readonly IMAGE_GENERATION_PUBLIC: {
37
45
  readonly CONFIG: "/api/image-generation/public/config";
38
46
  readonly PRICE: "/api/image-generation/public/price";
47
+ readonly EXECUTE: "/api/image-generation/public/execute";
48
+ readonly LIST_JOBS: "/api/image-generation/public/jobs";
49
+ readonly GET_JOB: (uuid: string) => string;
50
+ readonly UPDATE: (uuid: string) => string;
51
+ readonly SET_REACTION: (uuid: string) => string;
52
+ readonly DELETE: (uuid: string) => string;
53
+ readonly DELETE_ALL: "/api/image-generation/public/jobs";
54
+ readonly RETRY: (uuid: string) => string;
39
55
  };
40
56
  readonly IMAGE_GENERATION_PRIVATE: {
41
57
  readonly CONFIG: "/api/image-generation/private/config";
@@ -46,9 +62,11 @@ export declare const REST_API: {
46
62
  readonly SET_REACTION: (uuid: string) => string;
47
63
  readonly DELETE: (uuid: string) => string;
48
64
  readonly DELETE_ALL: "/api/image-generation/private/jobs";
65
+ readonly RETRY: (uuid: string) => string;
49
66
  };
50
67
  readonly MARKETPLACE_CARD_PUBLIC: {
51
68
  readonly CONFIG: "/api/marketplace-card/public/config";
69
+ readonly PRICE: "/api/marketplace-card/public/price";
52
70
  readonly EXECUTE: "/api/marketplace-card/public/execute";
53
71
  readonly LIST_JOBS: "/api/marketplace-card/public/jobs";
54
72
  readonly GET_JOB: (uuid: string) => string;
@@ -72,6 +90,30 @@ export declare const REST_API: {
72
90
  };
73
91
  readonly AI_PROXY: {
74
92
  readonly IMAGE_GENERATION_CALLBACK: "/api/ai-proxy/image-generation/callback";
93
+ readonly IMAGE_EDITOR_CALLBACK: "/api/ai-proxy/image-editor/callback";
94
+ };
95
+ readonly IMAGE_EDITOR_PUBLIC: {
96
+ readonly CONFIG: "/api/image-editor/public/config";
97
+ readonly PRICE: "/api/image-editor/public/price";
98
+ readonly EXECUTE: "/api/image-editor/public/execute";
99
+ readonly LIST_JOBS: "/api/image-editor/public/jobs";
100
+ readonly GET_JOB: (uuid: string) => string;
101
+ readonly UPDATE: (uuid: string) => string;
102
+ readonly SET_REACTION: (uuid: string) => string;
103
+ readonly DELETE: (uuid: string) => string;
104
+ readonly DELETE_ALL: "/api/image-editor/public/jobs";
105
+ readonly RETRY: (uuid: string) => string;
106
+ };
107
+ readonly IMAGE_EDITOR_PRIVATE: {
108
+ readonly CONFIG: "/api/image-editor/private/config";
109
+ readonly EXECUTE: "/api/image-editor/private/execute";
110
+ readonly LIST_JOBS: "/api/image-editor/private/jobs";
111
+ readonly GET_JOB: (uuid: string) => string;
112
+ readonly UPDATE: (uuid: string) => string;
113
+ readonly SET_REACTION: (uuid: string) => string;
114
+ readonly DELETE: (uuid: string) => string;
115
+ readonly DELETE_ALL: "/api/image-editor/private/jobs";
116
+ readonly RETRY: (uuid: string) => string;
75
117
  };
76
118
  readonly FILES_PRIVATE: {
77
119
  readonly UPLOAD: "/api/files/private/upload";
@@ -86,5 +128,22 @@ export declare const REST_API: {
86
128
  readonly TRANSACTION: {
87
129
  readonly WRITE_OFF: "/api/transactions/write-off";
88
130
  };
131
+ readonly PAGE: {
132
+ readonly GET_ALL: "/api/page";
133
+ readonly FIND_BY_CRITERIA: "/api/page/search";
134
+ readonly FIND_BY_UUID: (uuid: string) => string;
135
+ readonly FIND_BY_ALIAS: (alias: string) => string;
136
+ readonly CREATE: "/api/page";
137
+ readonly UPDATE: (uuid: string) => string;
138
+ readonly DELETE: (uuid: string) => string;
139
+ readonly CREATE_QUESTIONS_BULK: (pageId: string) => string;
140
+ };
141
+ readonly PAGE_QUESTION: {
142
+ readonly GET_ALL: "/api/page-question";
143
+ readonly FIND_BY_UUID: (uuid: string) => string;
144
+ readonly CREATE: "/api/page-question";
145
+ readonly UPDATE: (uuid: string) => string;
146
+ readonly DELETE: (uuid: string) => string;
147
+ };
89
148
  };
90
149
  //# sourceMappingURL=routes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AAEpC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;6BAmBD,MAAM;;;;;;;6BAQN,MAAM;;;;;;kCAOD,MAAM;;;;;;;;;;iCAWP,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;;;;;;iCAQL,MAAM;+BAER,MAAM;sCAEC,MAAM;gCAEZ,MAAM;gCAEN,MAAM;;;;;;;;iCASL,MAAM;+BAER,MAAM;sCAEC,MAAM;gCAEZ,MAAM;gCAEN,MAAM;;;;;;;;;6BAUT,MAAM;;;;;6BAKN,MAAM;;;;;CAKhB,CAAC"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AAEpC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA2BD,MAAM;;;;;;;6BAQN,MAAM;;;;;;kCAOD,MAAM;;;;;;;iCAQP,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;;iCAQJ,MAAM;+BAER,MAAM;sCAEC,MAAM;gCAEZ,MAAM;gCAEN,MAAM;;;;;;;;iCASL,MAAM;+BAER,MAAM;sCAEC,MAAM;gCAEZ,MAAM;gCAEN,MAAM;;;;;;;;;;;;iCAaL,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;6BAMR,MAAM;;;;;6BAKN,MAAM;;;;;;;;sCAQG,MAAM;wCAEJ,MAAM;;gCAGd,MAAM;gCAEN,MAAM;iDAEW,MAAM;;;;sCAKjB,MAAM;;gCAGZ,MAAM;gCAEN,MAAM;;CAGnB,CAAC"}
@@ -43,12 +43,20 @@ exports.REST_API = {
43
43
  AUTH: {
44
44
  REGISTER: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.REGISTER}`,
45
45
  LOGIN: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.LOGIN}`,
46
+ ADMIN_LOGIN: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.ADMIN_LOGIN}`,
47
+ VK_LOGIN: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.VK_LOGIN}`,
48
+ YANDEX_LOGIN: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.YANDEX_LOGIN}`,
49
+ CREATE_USER: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.CREATE_USER}`,
50
+ RESTORE_PASSWORD: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.RESTORE_PASSWORD}`,
51
+ RESET_PASSWORD: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.RESET_PASSWORD}`,
52
+ VERIFY_EMAIL: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.VERIFY_EMAIL}`,
53
+ VERIFY_EMAIL_RETRY: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.VERIFY_EMAIL_RETRY}`,
46
54
  },
47
55
  UNREGISTERED_USER: {
48
56
  UPSERT: `${exports.ROOT}/${CONTROLLERS.UNREGISTERED_USER_CONTROLLER}`,
49
57
  },
50
58
  USERS: {
51
- GET: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}`,
59
+ GET: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET}`,
52
60
  },
53
61
  PRODUCT_PUBLIC: {
54
62
  GET: `${exports.ROOT}/${CONTROLLERS.PRODUCT_PUBLIC_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.GET_ALL}`,
@@ -73,6 +81,14 @@ exports.REST_API = {
73
81
  IMAGE_GENERATION_PUBLIC: {
74
82
  CONFIG: `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.CONFIG}`,
75
83
  PRICE: `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.PRICE}`,
84
+ EXECUTE: `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.EXECUTE}`,
85
+ LIST_JOBS: `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.GET_JOBS}`,
86
+ GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.GET_JOB(uuid)}`,
87
+ UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.UPDATE(uuid)}`,
88
+ SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.SET_REACTION(uuid)}`,
89
+ DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE(uuid)}`,
90
+ DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE_ALL}`,
91
+ RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.RETRY(uuid)}`,
76
92
  },
77
93
  IMAGE_GENERATION_PRIVATE: {
78
94
  CONFIG: `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.CONFIG}`,
@@ -83,9 +99,11 @@ exports.REST_API = {
83
99
  SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.SET_REACTION(uuid)}`,
84
100
  DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE(uuid)}`,
85
101
  DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE_ALL}`,
102
+ RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.RETRY(uuid)}`,
86
103
  },
87
104
  MARKETPLACE_CARD_PUBLIC: {
88
105
  CONFIG: `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_PUBLIC_CONTROLLER}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.CONFIG}`,
106
+ PRICE: `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_PUBLIC_CONTROLLER}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.PRICE}`,
89
107
  EXECUTE: `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_PUBLIC_CONTROLLER}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.EXECUTE}`,
90
108
  LIST_JOBS: `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_PUBLIC_CONTROLLER}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.GET_JOBS}`,
91
109
  GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_PUBLIC_CONTROLLER}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.GET_JOB(uuid)}`,
@@ -109,6 +127,30 @@ exports.REST_API = {
109
127
  },
110
128
  AI_PROXY: {
111
129
  IMAGE_GENERATION_CALLBACK: `${exports.ROOT}/${CONTROLLERS.AI_PROXY_CONTROLLER}/${CONTROLLERS.AI_PROXY_ROUTES.IMAGE_GENERATION_CALLBACK}`,
130
+ IMAGE_EDITOR_CALLBACK: `${exports.ROOT}/${CONTROLLERS.AI_PROXY_CONTROLLER}/${CONTROLLERS.AI_PROXY_ROUTES.IMAGE_EDITOR_CALLBACK}`,
131
+ },
132
+ IMAGE_EDITOR_PUBLIC: {
133
+ CONFIG: `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.CONFIG}`,
134
+ PRICE: `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.PRICE}`,
135
+ EXECUTE: `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.EXECUTE}`,
136
+ LIST_JOBS: `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.GET_JOBS}`,
137
+ GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.GET_JOB(uuid)}`,
138
+ UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.UPDATE(uuid)}`,
139
+ SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.SET_REACTION(uuid)}`,
140
+ DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.DELETE(uuid)}`,
141
+ DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.DELETE_ALL}`,
142
+ RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.RETRY(uuid)}`,
143
+ },
144
+ IMAGE_EDITOR_PRIVATE: {
145
+ CONFIG: `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.CONFIG}`,
146
+ EXECUTE: `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.EXECUTE}`,
147
+ LIST_JOBS: `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.GET_JOBS}`,
148
+ GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.GET_JOB(uuid)}`,
149
+ UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.UPDATE(uuid)}`,
150
+ SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.SET_REACTION(uuid)}`,
151
+ DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.DELETE(uuid)}`,
152
+ DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.DELETE_ALL}`,
153
+ RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_EDITOR_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_EDITOR_ROUTES.RETRY(uuid)}`,
112
154
  },
113
155
  FILES_PRIVATE: {
114
156
  UPLOAD: `${exports.ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}/${CONTROLLERS.FILE_ROUTES.UPLOAD}`,
@@ -123,4 +165,21 @@ exports.REST_API = {
123
165
  TRANSACTION: {
124
166
  WRITE_OFF: `${exports.ROOT}/${CONTROLLERS.TRANSACTION_CONTROLLER}/${CONTROLLERS.TRANSACTION_ROUTES.WRITE_OFF}`,
125
167
  },
168
+ PAGE: {
169
+ GET_ALL: `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}`,
170
+ FIND_BY_CRITERIA: `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.FIND_BY_CRITERIA}`,
171
+ FIND_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.FIND_BY_UUID(uuid)}`,
172
+ FIND_BY_ALIAS: (alias) => `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.FIND_BY_ALIAS(alias)}`,
173
+ CREATE: `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}`,
174
+ UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.UPDATE(uuid)}`,
175
+ DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.DELETE(uuid)}`,
176
+ CREATE_QUESTIONS_BULK: (pageId) => `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.CREATE_QUESTIONS_BULK(pageId)}`,
177
+ },
178
+ PAGE_QUESTION: {
179
+ GET_ALL: `${exports.ROOT}/${CONTROLLERS.PAGE_QUESTION_CONTROLLER}`,
180
+ FIND_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.PAGE_QUESTION_CONTROLLER}/${CONTROLLERS.PAGE_QUESTION_ROUTES.FIND_BY_UUID(uuid)}`,
181
+ CREATE: `${exports.ROOT}/${CONTROLLERS.PAGE_QUESTION_CONTROLLER}`,
182
+ UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PAGE_QUESTION_CONTROLLER}/${CONTROLLERS.PAGE_QUESTION_ROUTES.UPDATE(uuid)}`,
183
+ DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PAGE_QUESTION_CONTROLLER}/${CONTROLLERS.PAGE_QUESTION_ROUTES.DELETE(uuid)}`,
184
+ },
126
185
  };
@@ -152,9 +152,9 @@ export declare namespace BuyProductCommand {
152
152
  }>;
153
153
  amount: z.ZodNumber;
154
154
  }, "strip", z.ZodTypeAny, {
155
+ interval: "Month";
155
156
  period: number;
156
157
  amount: number;
157
- interval: "Month";
158
158
  customerReceipt: {
159
159
  email: string;
160
160
  items: {
@@ -171,9 +171,9 @@ export declare namespace BuyProductCommand {
171
171
  };
172
172
  };
173
173
  }, {
174
+ interval: "Month";
174
175
  period: number;
175
176
  amount: number;
176
- interval: "Month";
177
177
  customerReceipt: {
178
178
  email: string;
179
179
  items: {
@@ -207,9 +207,9 @@ export declare namespace BuyProductCommand {
207
207
  };
208
208
  };
209
209
  recurrent?: {
210
+ interval: "Month";
210
211
  period: number;
211
212
  amount: number;
212
- interval: "Month";
213
213
  customerReceipt: {
214
214
  email: string;
215
215
  items: {
@@ -243,9 +243,9 @@ export declare namespace BuyProductCommand {
243
243
  };
244
244
  };
245
245
  recurrent?: {
246
+ interval: "Month";
246
247
  period: number;
247
248
  amount: number;
248
- interval: "Month";
249
249
  customerReceipt: {
250
250
  email: string;
251
251
  items: {
@@ -281,9 +281,9 @@ export declare namespace BuyProductCommand {
281
281
  };
282
282
  };
283
283
  recurrent?: {
284
+ interval: "Month";
284
285
  period: number;
285
286
  amount: number;
286
- interval: "Month";
287
287
  customerReceipt: {
288
288
  email: string;
289
289
  items: {
@@ -319,9 +319,9 @@ export declare namespace BuyProductCommand {
319
319
  };
320
320
  };
321
321
  recurrent?: {
322
+ interval: "Month";
322
323
  period: number;
323
324
  amount: number;
324
- interval: "Month";
325
325
  customerReceipt: {
326
326
  email: string;
327
327
  items: {
@@ -368,9 +368,9 @@ export declare namespace BuyProductCommand {
368
368
  };
369
369
  };
370
370
  recurrent?: {
371
+ interval: "Month";
371
372
  period: number;
372
373
  amount: number;
373
- interval: "Month";
374
374
  customerReceipt: {
375
375
  email: string;
376
376
  items: {
@@ -417,9 +417,9 @@ export declare namespace BuyProductCommand {
417
417
  };
418
418
  };
419
419
  recurrent?: {
420
+ interval: "Month";
420
421
  period: number;
421
422
  amount: number;
422
- interval: "Month";
423
423
  customerReceipt: {
424
424
  email: string;
425
425
  items: {
@@ -468,9 +468,9 @@ export declare namespace BuyProductCommand {
468
468
  };
469
469
  };
470
470
  recurrent?: {
471
+ interval: "Month";
471
472
  period: number;
472
473
  amount: number;
473
- interval: "Month";
474
474
  customerReceipt: {
475
475
  email: string;
476
476
  items: {
@@ -519,9 +519,9 @@ export declare namespace BuyProductCommand {
519
519
  };
520
520
  };
521
521
  recurrent?: {
522
+ interval: "Month";
522
523
  period: number;
523
524
  amount: number;
524
- interval: "Month";
525
525
  customerReceipt: {
526
526
  email: string;
527
527
  items: {
@@ -152,9 +152,9 @@ export declare namespace BuySubscriptionCommand {
152
152
  }>;
153
153
  amount: z.ZodNumber;
154
154
  }, "strip", z.ZodTypeAny, {
155
+ interval: "Month";
155
156
  period: number;
156
157
  amount: number;
157
- interval: "Month";
158
158
  customerReceipt: {
159
159
  email: string;
160
160
  items: {
@@ -171,9 +171,9 @@ export declare namespace BuySubscriptionCommand {
171
171
  };
172
172
  };
173
173
  }, {
174
+ interval: "Month";
174
175
  period: number;
175
176
  amount: number;
176
- interval: "Month";
177
177
  customerReceipt: {
178
178
  email: string;
179
179
  items: {
@@ -207,9 +207,9 @@ export declare namespace BuySubscriptionCommand {
207
207
  };
208
208
  };
209
209
  recurrent?: {
210
+ interval: "Month";
210
211
  period: number;
211
212
  amount: number;
212
- interval: "Month";
213
213
  customerReceipt: {
214
214
  email: string;
215
215
  items: {
@@ -243,9 +243,9 @@ export declare namespace BuySubscriptionCommand {
243
243
  };
244
244
  };
245
245
  recurrent?: {
246
+ interval: "Month";
246
247
  period: number;
247
248
  amount: number;
248
- interval: "Month";
249
249
  customerReceipt: {
250
250
  email: string;
251
251
  items: {
@@ -281,9 +281,9 @@ export declare namespace BuySubscriptionCommand {
281
281
  };
282
282
  };
283
283
  recurrent?: {
284
+ interval: "Month";
284
285
  period: number;
285
286
  amount: number;
286
- interval: "Month";
287
287
  customerReceipt: {
288
288
  email: string;
289
289
  items: {
@@ -319,9 +319,9 @@ export declare namespace BuySubscriptionCommand {
319
319
  };
320
320
  };
321
321
  recurrent?: {
322
+ interval: "Month";
322
323
  period: number;
323
324
  amount: number;
324
- interval: "Month";
325
325
  customerReceipt: {
326
326
  email: string;
327
327
  items: {
@@ -368,9 +368,9 @@ export declare namespace BuySubscriptionCommand {
368
368
  };
369
369
  };
370
370
  recurrent?: {
371
+ interval: "Month";
371
372
  period: number;
372
373
  amount: number;
373
- interval: "Month";
374
374
  customerReceipt: {
375
375
  email: string;
376
376
  items: {
@@ -417,9 +417,9 @@ export declare namespace BuySubscriptionCommand {
417
417
  };
418
418
  };
419
419
  recurrent?: {
420
+ interval: "Month";
420
421
  period: number;
421
422
  amount: number;
422
- interval: "Month";
423
423
  customerReceipt: {
424
424
  email: string;
425
425
  items: {
@@ -468,9 +468,9 @@ export declare namespace BuySubscriptionCommand {
468
468
  };
469
469
  };
470
470
  recurrent?: {
471
+ interval: "Month";
471
472
  period: number;
472
473
  amount: number;
473
- interval: "Month";
474
474
  customerReceipt: {
475
475
  email: string;
476
476
  items: {
@@ -519,9 +519,9 @@ export declare namespace BuySubscriptionCommand {
519
519
  };
520
520
  };
521
521
  recurrent?: {
522
+ interval: "Month";
522
523
  period: number;
523
524
  amount: number;
524
- interval: "Month";
525
525
  customerReceipt: {
526
526
  email: string;
527
527
  items: {
@@ -63,9 +63,9 @@ export declare const CloudPaymentsRecurrentDataSchema: z.ZodObject<{
63
63
  }>;
64
64
  amount: z.ZodNumber;
65
65
  }, "strip", z.ZodTypeAny, {
66
+ interval: "Month";
66
67
  period: number;
67
68
  amount: number;
68
- interval: "Month";
69
69
  customerReceipt: {
70
70
  email: string;
71
71
  items: {
@@ -82,9 +82,9 @@ export declare const CloudPaymentsRecurrentDataSchema: z.ZodObject<{
82
82
  };
83
83
  };
84
84
  }, {
85
+ interval: "Month";
85
86
  period: number;
86
87
  amount: number;
87
- interval: "Month";
88
88
  customerReceipt: {
89
89
  email: string;
90
90
  items: {
@@ -227,9 +227,9 @@ export declare const CloudPaymentsWidgetDataSchema: z.ZodObject<{
227
227
  }>;
228
228
  amount: z.ZodNumber;
229
229
  }, "strip", z.ZodTypeAny, {
230
+ interval: "Month";
230
231
  period: number;
231
232
  amount: number;
232
- interval: "Month";
233
233
  customerReceipt: {
234
234
  email: string;
235
235
  items: {
@@ -246,9 +246,9 @@ export declare const CloudPaymentsWidgetDataSchema: z.ZodObject<{
246
246
  };
247
247
  };
248
248
  }, {
249
+ interval: "Month";
249
250
  period: number;
250
251
  amount: number;
251
- interval: "Month";
252
252
  customerReceipt: {
253
253
  email: string;
254
254
  items: {
@@ -282,9 +282,9 @@ export declare const CloudPaymentsWidgetDataSchema: z.ZodObject<{
282
282
  };
283
283
  };
284
284
  recurrent?: {
285
+ interval: "Month";
285
286
  period: number;
286
287
  amount: number;
287
- interval: "Month";
288
288
  customerReceipt: {
289
289
  email: string;
290
290
  items: {
@@ -318,9 +318,9 @@ export declare const CloudPaymentsWidgetDataSchema: z.ZodObject<{
318
318
  };
319
319
  };
320
320
  recurrent?: {
321
+ interval: "Month";
321
322
  period: number;
322
323
  amount: number;
323
- interval: "Month";
324
324
  customerReceipt: {
325
325
  email: string;
326
326
  items: {
@@ -356,9 +356,9 @@ export declare const CloudPaymentsWidgetDataSchema: z.ZodObject<{
356
356
  };
357
357
  };
358
358
  recurrent?: {
359
+ interval: "Month";
359
360
  period: number;
360
361
  amount: number;
361
- interval: "Month";
362
362
  customerReceipt: {
363
363
  email: string;
364
364
  items: {
@@ -394,9 +394,9 @@ export declare const CloudPaymentsWidgetDataSchema: z.ZodObject<{
394
394
  };
395
395
  };
396
396
  recurrent?: {
397
+ interval: "Month";
397
398
  period: number;
398
399
  amount: number;
399
- interval: "Month";
400
400
  customerReceipt: {
401
401
  email: string;
402
402
  items: {
@@ -134,9 +134,9 @@ export declare const CloudPaymentsWidgetSchema: z.ZodObject<{
134
134
  }>;
135
135
  amount: z.ZodNumber;
136
136
  }, "strip", z.ZodTypeAny, {
137
+ interval: "Month";
137
138
  period: number;
138
139
  amount: number;
139
- interval: "Month";
140
140
  customerReceipt: {
141
141
  email: string;
142
142
  items: {
@@ -153,9 +153,9 @@ export declare const CloudPaymentsWidgetSchema: z.ZodObject<{
153
153
  };
154
154
  };
155
155
  }, {
156
+ interval: "Month";
156
157
  period: number;
157
158
  amount: number;
158
- interval: "Month";
159
159
  customerReceipt: {
160
160
  email: string;
161
161
  items: {
@@ -189,9 +189,9 @@ export declare const CloudPaymentsWidgetSchema: z.ZodObject<{
189
189
  };
190
190
  };
191
191
  recurrent?: {
192
+ interval: "Month";
192
193
  period: number;
193
194
  amount: number;
194
- interval: "Month";
195
195
  customerReceipt: {
196
196
  email: string;
197
197
  items: {
@@ -225,9 +225,9 @@ export declare const CloudPaymentsWidgetSchema: z.ZodObject<{
225
225
  };
226
226
  };
227
227
  recurrent?: {
228
+ interval: "Month";
228
229
  period: number;
229
230
  amount: number;
230
- interval: "Month";
231
231
  customerReceipt: {
232
232
  email: string;
233
233
  items: {
@@ -263,9 +263,9 @@ export declare const CloudPaymentsWidgetSchema: z.ZodObject<{
263
263
  };
264
264
  };
265
265
  recurrent?: {
266
+ interval: "Month";
266
267
  period: number;
267
268
  amount: number;
268
- interval: "Month";
269
269
  customerReceipt: {
270
270
  email: string;
271
271
  items: {
@@ -301,9 +301,9 @@ export declare const CloudPaymentsWidgetSchema: z.ZodObject<{
301
301
  };
302
302
  };
303
303
  recurrent?: {
304
+ interval: "Month";
304
305
  period: number;
305
306
  amount: number;
306
- interval: "Month";
307
307
  customerReceipt: {
308
308
  email: string;
309
309
  items: {
@@ -350,9 +350,9 @@ export declare const CloudPaymentsWidgetSchema: z.ZodObject<{
350
350
  };
351
351
  };
352
352
  recurrent?: {
353
+ interval: "Month";
353
354
  period: number;
354
355
  amount: number;
355
- interval: "Month";
356
356
  customerReceipt: {
357
357
  email: string;
358
358
  items: {
@@ -399,9 +399,9 @@ export declare const CloudPaymentsWidgetSchema: z.ZodObject<{
399
399
  };
400
400
  };
401
401
  recurrent?: {
402
+ interval: "Month";
402
403
  period: number;
403
404
  amount: number;
404
- interval: "Month";
405
405
  customerReceipt: {
406
406
  email: string;
407
407
  items: {
@@ -6,6 +6,16 @@ export declare const ProductSchema: z.ZodObject<{
6
6
  description: z.ZodString;
7
7
  tokens: z.ZodNumber;
8
8
  price: z.ZodNumber;
9
+ features: z.ZodArray<z.ZodObject<{
10
+ type: z.ZodString;
11
+ name: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ type: string;
14
+ name: string;
15
+ }, {
16
+ type: string;
17
+ name: string;
18
+ }>, "many">;
9
19
  }, "strip", z.ZodTypeAny, {
10
20
  price: number;
11
21
  uuid: string;
@@ -13,6 +23,10 @@ export declare const ProductSchema: z.ZodObject<{
13
23
  name: string;
14
24
  description: string;
15
25
  tokens: number;
26
+ features: {
27
+ type: string;
28
+ name: string;
29
+ }[];
16
30
  }, {
17
31
  price: number;
18
32
  uuid: string;
@@ -20,5 +34,9 @@ export declare const ProductSchema: z.ZodObject<{
20
34
  name: string;
21
35
  description: string;
22
36
  tokens: number;
37
+ features: {
38
+ type: string;
39
+ name: string;
40
+ }[];
23
41
  }>;
24
42
  //# sourceMappingURL=product.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.schema.d.ts","sourceRoot":"","sources":["../../models/product.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;EAOxB,CAAC"}
1
+ {"version":3,"file":"product.schema.d.ts","sourceRoot":"","sources":["../../models/product.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaxB,CAAC"}
@@ -9,4 +9,8 @@ exports.ProductSchema = zod_1.z.object({
9
9
  description: zod_1.z.string().min(1).max(2000),
10
10
  tokens: zod_1.z.number().int().min(0),
11
11
  price: zod_1.z.number().int().min(0),
12
+ features: zod_1.z.array(zod_1.z.object({
13
+ type: zod_1.z.string(),
14
+ name: zod_1.z.string(),
15
+ })),
12
16
  });
@@ -5,8 +5,20 @@ export declare const SubscriptionSchema: z.ZodObject<{
5
5
  name: z.ZodString;
6
6
  description: z.ZodString;
7
7
  price: z.ZodNumber;
8
+ interval: z.ZodString;
8
9
  period: z.ZodNumber;
9
10
  tokens: z.ZodNumber;
11
+ discount: z.ZodNumber;
12
+ features: z.ZodArray<z.ZodObject<{
13
+ type: z.ZodString;
14
+ name: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ type: string;
17
+ name: string;
18
+ }, {
19
+ type: string;
20
+ name: string;
21
+ }>, "many">;
10
22
  carryoverPercent: z.ZodNumber;
11
23
  }, "strip", z.ZodTypeAny, {
12
24
  price: number;
@@ -15,7 +27,13 @@ export declare const SubscriptionSchema: z.ZodObject<{
15
27
  name: string;
16
28
  description: string;
17
29
  tokens: number;
30
+ features: {
31
+ type: string;
32
+ name: string;
33
+ }[];
34
+ interval: string;
18
35
  period: number;
36
+ discount: number;
19
37
  carryoverPercent: number;
20
38
  }, {
21
39
  price: number;
@@ -24,7 +42,13 @@ export declare const SubscriptionSchema: z.ZodObject<{
24
42
  name: string;
25
43
  description: string;
26
44
  tokens: number;
45
+ features: {
46
+ type: string;
47
+ name: string;
48
+ }[];
49
+ interval: string;
27
50
  period: number;
51
+ discount: number;
28
52
  carryoverPercent: number;
29
53
  }>;
30
54
  //# sourceMappingURL=subscription.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription.schema.d.ts","sourceRoot":"","sources":["../../models/subscription.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS7B,CAAC"}
1
+ {"version":3,"file":"subscription.schema.d.ts","sourceRoot":"","sources":["../../models/subscription.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB7B,CAAC"}
@@ -8,7 +8,13 @@ exports.SubscriptionSchema = zod_1.z.object({
8
8
  name: zod_1.z.string().min(1).max(200),
9
9
  description: zod_1.z.string().min(1).max(2000),
10
10
  price: zod_1.z.number().int().min(0),
11
+ interval: zod_1.z.string().max(20),
11
12
  period: zod_1.z.number().int().min(1).max(36),
12
13
  tokens: zod_1.z.number().int().min(0),
14
+ discount: zod_1.z.number().int().min(0),
15
+ features: zod_1.z.array(zod_1.z.object({
16
+ type: zod_1.z.string(),
17
+ name: zod_1.z.string(),
18
+ })),
13
19
  carryoverPercent: zod_1.z.number().int().min(0).max(100),
14
20
  });
@@ -8,6 +8,16 @@ export declare namespace FindProductsCommand {
8
8
  description: z.ZodString;
9
9
  tokens: z.ZodNumber;
10
10
  price: z.ZodNumber;
11
+ features: z.ZodArray<z.ZodObject<{
12
+ type: z.ZodString;
13
+ name: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ type: string;
16
+ name: string;
17
+ }, {
18
+ type: string;
19
+ name: string;
20
+ }>, "many">;
11
21
  }, "strip", z.ZodTypeAny, {
12
22
  price: number;
13
23
  uuid: string;
@@ -15,6 +25,10 @@ export declare namespace FindProductsCommand {
15
25
  name: string;
16
26
  description: string;
17
27
  tokens: number;
28
+ features: {
29
+ type: string;
30
+ name: string;
31
+ }[];
18
32
  }, {
19
33
  price: number;
20
34
  uuid: string;
@@ -22,6 +36,10 @@ export declare namespace FindProductsCommand {
22
36
  name: string;
23
37
  description: string;
24
38
  tokens: number;
39
+ features: {
40
+ type: string;
41
+ name: string;
42
+ }[];
25
43
  }>, "many">;
26
44
  }, "strip", z.ZodTypeAny, {
27
45
  data: {
@@ -31,6 +49,10 @@ export declare namespace FindProductsCommand {
31
49
  name: string;
32
50
  description: string;
33
51
  tokens: number;
52
+ features: {
53
+ type: string;
54
+ name: string;
55
+ }[];
34
56
  }[];
35
57
  }, {
36
58
  data: {
@@ -40,6 +62,10 @@ export declare namespace FindProductsCommand {
40
62
  name: string;
41
63
  description: string;
42
64
  tokens: number;
65
+ features: {
66
+ type: string;
67
+ name: string;
68
+ }[];
43
69
  }[];
44
70
  }>;
45
71
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"find-products.command.d.ts","sourceRoot":"","sources":["../../../queries/product/find-products.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,mBAAmB,CAAC;IAC1B,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"find-products.command.d.ts","sourceRoot":"","sources":["../../../queries/product/find-products.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,mBAAmB,CAAC;IAC1B,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -7,8 +7,20 @@ export declare namespace FindSubscriptionsCommand {
7
7
  name: z.ZodString;
8
8
  description: z.ZodString;
9
9
  price: z.ZodNumber;
10
+ interval: z.ZodString;
10
11
  period: z.ZodNumber;
11
12
  tokens: z.ZodNumber;
13
+ discount: z.ZodNumber;
14
+ features: z.ZodArray<z.ZodObject<{
15
+ type: z.ZodString;
16
+ name: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ type: string;
19
+ name: string;
20
+ }, {
21
+ type: string;
22
+ name: string;
23
+ }>, "many">;
12
24
  carryoverPercent: z.ZodNumber;
13
25
  }, "strip", z.ZodTypeAny, {
14
26
  price: number;
@@ -17,7 +29,13 @@ export declare namespace FindSubscriptionsCommand {
17
29
  name: string;
18
30
  description: string;
19
31
  tokens: number;
32
+ features: {
33
+ type: string;
34
+ name: string;
35
+ }[];
36
+ interval: string;
20
37
  period: number;
38
+ discount: number;
21
39
  carryoverPercent: number;
22
40
  }, {
23
41
  price: number;
@@ -26,7 +44,13 @@ export declare namespace FindSubscriptionsCommand {
26
44
  name: string;
27
45
  description: string;
28
46
  tokens: number;
47
+ features: {
48
+ type: string;
49
+ name: string;
50
+ }[];
51
+ interval: string;
29
52
  period: number;
53
+ discount: number;
30
54
  carryoverPercent: number;
31
55
  }>, "many">;
32
56
  }, "strip", z.ZodTypeAny, {
@@ -37,7 +61,13 @@ export declare namespace FindSubscriptionsCommand {
37
61
  name: string;
38
62
  description: string;
39
63
  tokens: number;
64
+ features: {
65
+ type: string;
66
+ name: string;
67
+ }[];
68
+ interval: string;
40
69
  period: number;
70
+ discount: number;
41
71
  carryoverPercent: number;
42
72
  }[];
43
73
  }, {
@@ -48,7 +78,13 @@ export declare namespace FindSubscriptionsCommand {
48
78
  name: string;
49
79
  description: string;
50
80
  tokens: number;
81
+ features: {
82
+ type: string;
83
+ name: string;
84
+ }[];
85
+ interval: string;
51
86
  period: number;
87
+ discount: number;
52
88
  carryoverPercent: number;
53
89
  }[];
54
90
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"find-subscriptions.command.d.ts","sourceRoot":"","sources":["../../../queries/subscription/find-subscriptions.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"find-subscriptions.command.d.ts","sourceRoot":"","sources":["../../../queries/subscription/find-subscriptions.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -15,6 +15,16 @@ export declare namespace GetMyProductsCommand {
15
15
  description: z.ZodString;
16
16
  tokens: z.ZodNumber;
17
17
  price: z.ZodNumber;
18
+ features: z.ZodArray<z.ZodObject<{
19
+ type: z.ZodString;
20
+ name: z.ZodString;
21
+ }, "strip", z.ZodTypeAny, {
22
+ type: string;
23
+ name: string;
24
+ }, {
25
+ type: string;
26
+ name: string;
27
+ }>, "many">;
18
28
  }, "strip", z.ZodTypeAny, {
19
29
  price: number;
20
30
  uuid: string;
@@ -22,6 +32,10 @@ export declare namespace GetMyProductsCommand {
22
32
  name: string;
23
33
  description: string;
24
34
  tokens: number;
35
+ features: {
36
+ type: string;
37
+ name: string;
38
+ }[];
25
39
  }, {
26
40
  price: number;
27
41
  uuid: string;
@@ -29,6 +43,10 @@ export declare namespace GetMyProductsCommand {
29
43
  name: string;
30
44
  description: string;
31
45
  tokens: number;
46
+ features: {
47
+ type: string;
48
+ name: string;
49
+ }[];
32
50
  }>;
33
51
  }, "strip", z.ZodTypeAny, {
34
52
  uuid: string;
@@ -43,6 +61,10 @@ export declare namespace GetMyProductsCommand {
43
61
  name: string;
44
62
  description: string;
45
63
  tokens: number;
64
+ features: {
65
+ type: string;
66
+ name: string;
67
+ }[];
46
68
  };
47
69
  }, {
48
70
  uuid: string;
@@ -57,6 +79,10 @@ export declare namespace GetMyProductsCommand {
57
79
  name: string;
58
80
  description: string;
59
81
  tokens: number;
82
+ features: {
83
+ type: string;
84
+ name: string;
85
+ }[];
60
86
  };
61
87
  }>, "many">;
62
88
  }, "strip", z.ZodTypeAny, {
@@ -73,6 +99,10 @@ export declare namespace GetMyProductsCommand {
73
99
  name: string;
74
100
  description: string;
75
101
  tokens: number;
102
+ features: {
103
+ type: string;
104
+ name: string;
105
+ }[];
76
106
  };
77
107
  }[];
78
108
  }, {
@@ -89,6 +119,10 @@ export declare namespace GetMyProductsCommand {
89
119
  name: string;
90
120
  description: string;
91
121
  tokens: number;
122
+ features: {
123
+ type: string;
124
+ name: string;
125
+ }[];
92
126
  };
93
127
  }[];
94
128
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-my-products.command.d.ts","sourceRoot":"","sources":["../../../queries/user/get-my-products.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-my-products.command.d.ts","sourceRoot":"","sources":["../../../queries/user/get-my-products.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -16,8 +16,20 @@ export declare namespace GetMySubscriptionsCommand {
16
16
  name: z.ZodString;
17
17
  description: z.ZodString;
18
18
  price: z.ZodNumber;
19
+ interval: z.ZodString;
19
20
  period: z.ZodNumber;
20
21
  tokens: z.ZodNumber;
22
+ discount: z.ZodNumber;
23
+ features: z.ZodArray<z.ZodObject<{
24
+ type: z.ZodString;
25
+ name: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
27
+ type: string;
28
+ name: string;
29
+ }, {
30
+ type: string;
31
+ name: string;
32
+ }>, "many">;
21
33
  carryoverPercent: z.ZodNumber;
22
34
  }, "strip", z.ZodTypeAny, {
23
35
  price: number;
@@ -26,7 +38,13 @@ export declare namespace GetMySubscriptionsCommand {
26
38
  name: string;
27
39
  description: string;
28
40
  tokens: number;
41
+ features: {
42
+ type: string;
43
+ name: string;
44
+ }[];
45
+ interval: string;
29
46
  period: number;
47
+ discount: number;
30
48
  carryoverPercent: number;
31
49
  }, {
32
50
  price: number;
@@ -35,7 +53,13 @@ export declare namespace GetMySubscriptionsCommand {
35
53
  name: string;
36
54
  description: string;
37
55
  tokens: number;
56
+ features: {
57
+ type: string;
58
+ name: string;
59
+ }[];
60
+ interval: string;
38
61
  period: number;
62
+ discount: number;
39
63
  carryoverPercent: number;
40
64
  }>;
41
65
  }, "strip", z.ZodTypeAny, {
@@ -53,7 +77,13 @@ export declare namespace GetMySubscriptionsCommand {
53
77
  name: string;
54
78
  description: string;
55
79
  tokens: number;
80
+ features: {
81
+ type: string;
82
+ name: string;
83
+ }[];
84
+ interval: string;
56
85
  period: number;
86
+ discount: number;
57
87
  carryoverPercent: number;
58
88
  };
59
89
  }, {
@@ -71,7 +101,13 @@ export declare namespace GetMySubscriptionsCommand {
71
101
  name: string;
72
102
  description: string;
73
103
  tokens: number;
104
+ features: {
105
+ type: string;
106
+ name: string;
107
+ }[];
108
+ interval: string;
74
109
  period: number;
110
+ discount: number;
75
111
  carryoverPercent: number;
76
112
  };
77
113
  }>, "many">;
@@ -91,7 +127,13 @@ export declare namespace GetMySubscriptionsCommand {
91
127
  name: string;
92
128
  description: string;
93
129
  tokens: number;
130
+ features: {
131
+ type: string;
132
+ name: string;
133
+ }[];
134
+ interval: string;
94
135
  period: number;
136
+ discount: number;
95
137
  carryoverPercent: number;
96
138
  };
97
139
  }[];
@@ -111,7 +153,13 @@ export declare namespace GetMySubscriptionsCommand {
111
153
  name: string;
112
154
  description: string;
113
155
  tokens: number;
156
+ features: {
157
+ type: string;
158
+ name: string;
159
+ }[];
160
+ interval: string;
114
161
  period: number;
162
+ discount: number;
115
163
  carryoverPercent: number;
116
164
  };
117
165
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"get-my-subscriptions.command.d.ts","sourceRoot":"","sources":["../../../queries/user/get-my-subscriptions.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAE9D,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAazB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-my-subscriptions.command.d.ts","sourceRoot":"","sources":["../../../queries/user/get-my-subscriptions.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAE9D,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAazB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -7,4 +7,10 @@ export const ProductSchema = z.object({
7
7
  description: z.string().min(1).max(2000),
8
8
  tokens: z.number().int().min(0),
9
9
  price: z.number().int().min(0),
10
+ features: z.array(
11
+ z.object({
12
+ type: z.string(),
13
+ name: z.string(),
14
+ }),
15
+ ),
10
16
  });
@@ -6,7 +6,15 @@ export const SubscriptionSchema = z.object({
6
6
  name: z.string().min(1).max(200),
7
7
  description: z.string().min(1).max(2000),
8
8
  price: z.number().int().min(0),
9
+ interval: z.string().max(20),
9
10
  period: z.number().int().min(1).max(36),
10
11
  tokens: z.number().int().min(0),
12
+ discount: z.number().int().min(0),
13
+ features: z.array(
14
+ z.object({
15
+ type: z.string(),
16
+ name: z.string(),
17
+ }),
18
+ ),
11
19
  carryoverPercent: z.number().int().min(0).max(100),
12
20
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/multisite",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Multisite API contracts (DTO schemas, routes, constants)",
5
5
  "type": "commonjs",
6
6
  "main": "build/index.js",