@purpleschool/multisite 0.0.20 → 0.0.22
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/controller/http/index.ts +2 -0
- package/api/controller/http/payment.ts +1 -0
- package/api/controller/http/product.ts +2 -0
- package/api/controller/http/subscription.ts +0 -1
- package/api/controller/http/user-to-product.ts +7 -0
- package/api/controller/http/user-to-subscription.ts +8 -0
- package/api/routes.ts +23 -2
- package/build/api/controller/http/index.d.ts +2 -0
- package/build/api/controller/http/index.d.ts.map +1 -1
- package/build/api/controller/http/index.js +2 -0
- package/build/api/controller/http/payment.d.ts +1 -0
- package/build/api/controller/http/payment.d.ts.map +1 -1
- package/build/api/controller/http/payment.js +1 -0
- package/build/api/controller/http/product.d.ts +2 -0
- package/build/api/controller/http/product.d.ts.map +1 -1
- package/build/api/controller/http/product.js +2 -0
- package/build/api/controller/http/subscription.d.ts +0 -1
- package/build/api/controller/http/subscription.d.ts.map +1 -1
- package/build/api/controller/http/subscription.js +0 -1
- package/build/api/controller/http/user-to-product.d.ts +7 -0
- package/build/api/controller/http/user-to-product.d.ts.map +1 -0
- package/build/api/controller/http/user-to-product.js +9 -0
- package/build/api/controller/http/user-to-subscription.d.ts +8 -0
- package/build/api/controller/http/user-to-subscription.d.ts.map +1 -0
- package/build/api/controller/http/user-to-subscription.js +10 -0
- package/build/api/routes.d.ts +14 -1
- package/build/api/routes.d.ts.map +1 -1
- package/build/api/routes.js +14 -1
- package/build/commands/image-editor/execute-image-editor.command.d.ts +4 -4
- package/build/commands/image-editor/retry-image-editor-job.command.d.ts +4 -4
- package/build/commands/image-editor/set-reaction-to-image-editor-job.command.d.ts +4 -4
- package/build/commands/image-editor/update-image-editor-job-title.command.d.ts +4 -4
- package/build/commands/image-generation/execute-image-generation.command.d.ts +4 -4
- package/build/commands/image-generation/retry-image-generation-job.command.d.ts +4 -4
- package/build/commands/image-generation/set-reaction-to-image-generation-job.command.d.ts +4 -4
- package/build/commands/image-generation/update-image-generation-job-title.command.d.ts +4 -4
- package/build/commands/index.d.ts +2 -0
- package/build/commands/index.d.ts.map +1 -1
- package/build/commands/index.js +2 -0
- package/build/commands/page/create-page.command.d.ts +4 -4
- package/build/commands/page/find-page-by-alias.command.d.ts +12 -12
- package/build/commands/page/find-page-by-criteria.command.d.ts +4 -4
- package/build/commands/page/find-page.command.d.ts +8 -8
- package/build/commands/page/update-page.command.d.ts +4 -4
- package/build/commands/payment/cloud-payments.command.d.ts +2 -2
- package/build/commands/payment/index.d.ts +1 -0
- package/build/commands/payment/index.d.ts.map +1 -1
- package/build/commands/payment/index.js +1 -0
- package/build/commands/payment/refund-payment.command.d.ts +20 -0
- package/build/commands/payment/refund-payment.command.d.ts.map +1 -0
- package/build/commands/payment/refund-payment.command.js +13 -0
- package/build/commands/{subscription/refund-subscription.command.d.ts → product/delete-product.command.d.ts} +2 -2
- package/build/commands/product/delete-product.command.d.ts.map +1 -0
- package/build/commands/product/delete-product.command.js +13 -0
- package/build/commands/product/index.d.ts +2 -0
- package/build/commands/product/index.d.ts.map +1 -1
- package/build/commands/product/index.js +2 -0
- package/build/commands/product/update-product.command.d.ts +116 -0
- package/build/commands/product/update-product.command.d.ts.map +1 -0
- package/build/commands/product/update-product.command.js +26 -0
- package/build/commands/stt/execute-stt.command.d.ts +12 -12
- package/build/commands/stt/retry-stt-job.command.d.ts +12 -12
- package/build/commands/stt/set-reaction-to-stt-job.command.d.ts +12 -12
- package/build/commands/stt/update-stt-job-title.command.d.ts +12 -12
- package/build/commands/subscription/index.d.ts +0 -1
- package/build/commands/subscription/index.d.ts.map +1 -1
- package/build/commands/subscription/index.js +0 -1
- package/build/commands/tts/execute-tts.command.d.ts +12 -12
- package/build/commands/tts/retry-tts-job.command.d.ts +12 -12
- package/build/commands/tts/set-reaction-to-tts-job.command.d.ts +12 -12
- package/build/commands/tts/update-tts-job-title.command.d.ts +12 -12
- package/build/commands/unregistered-user/upsert-unregistered-user.command.d.ts +4 -4
- package/build/commands/user-to-product/delete-user-to-product.command.d.ts +20 -0
- package/build/commands/user-to-product/delete-user-to-product.command.d.ts.map +1 -0
- package/build/commands/user-to-product/delete-user-to-product.command.js +13 -0
- package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts +75 -0
- package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts.map +1 -0
- package/build/commands/user-to-product/get-user-to-product-by-uuid.command.js +14 -0
- package/build/commands/user-to-product/index.d.ts +4 -0
- package/build/commands/user-to-product/index.d.ts.map +1 -0
- package/build/commands/user-to-product/index.js +19 -0
- package/build/commands/user-to-product/update-user-to-product.command.d.ts +93 -0
- package/build/commands/user-to-product/update-user-to-product.command.d.ts.map +1 -0
- package/build/commands/user-to-product/update-user-to-product.command.js +21 -0
- package/build/commands/user-to-subscription/admin-cancel-subscription.command.d.ts +14 -0
- package/build/commands/user-to-subscription/admin-cancel-subscription.command.d.ts.map +1 -0
- package/build/commands/user-to-subscription/admin-cancel-subscription.command.js +11 -0
- package/build/commands/user-to-subscription/delete-user-to-subscription.command.d.ts +20 -0
- package/build/commands/user-to-subscription/delete-user-to-subscription.command.d.ts.map +1 -0
- package/build/commands/user-to-subscription/delete-user-to-subscription.command.js +13 -0
- package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts +115 -0
- package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts.map +1 -0
- package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.js +14 -0
- package/build/commands/user-to-subscription/index.d.ts +5 -0
- package/build/commands/user-to-subscription/index.d.ts.map +1 -0
- package/build/commands/user-to-subscription/index.js +20 -0
- package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts +157 -0
- package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts.map +1 -0
- package/build/commands/user-to-subscription/update-user-to-subscription.command.js +29 -0
- package/build/constants/errors/errors.d.ts +65 -0
- package/build/constants/errors/errors.d.ts.map +1 -1
- package/build/constants/errors/errors.js +67 -0
- package/build/constants/payment/enums/payment-status.enum.d.ts +2 -1
- package/build/constants/payment/enums/payment-status.enum.d.ts.map +1 -1
- package/build/constants/payment/enums/payment-status.enum.js +1 -0
- package/build/models/image-editor/image-editor-config.schema.d.ts +10 -10
- package/build/models/image-editor/image-editor-job.schema.d.ts +2 -2
- package/build/models/image-editor/image-editor-model.schema.d.ts +2 -2
- package/build/models/image-editor/image-editor-prompt-group.schema.d.ts +4 -4
- package/build/models/image-editor/image-editor-system-prompt.schema.d.ts +2 -2
- package/build/models/image-generation/image-generation-config.schema.d.ts +6 -6
- package/build/models/image-generation/image-generation-job.schema.d.ts +2 -2
- package/build/models/image-generation/image-generation-model.schema.d.ts +2 -2
- package/build/models/image-generation/image-generation-vendor.schema.d.ts +4 -4
- package/build/models/index.d.ts +2 -0
- package/build/models/index.d.ts.map +1 -1
- package/build/models/index.js +2 -0
- package/build/models/page.schema.d.ts +4 -4
- package/build/models/stt/stt-config.schema.d.ts +8 -8
- package/build/models/stt/stt-job.schema.d.ts +6 -6
- package/build/models/stt/stt-model.schema.d.ts +4 -4
- package/build/models/tts/tts-config.schema.d.ts +8 -8
- package/build/models/tts/tts-job.schema.d.ts +6 -6
- package/build/models/tts/tts-model.schema.d.ts +4 -4
- package/build/models/user-to-product.schema.d.ts +37 -0
- package/build/models/user-to-product.schema.d.ts.map +1 -0
- package/build/models/user-to-product.schema.js +17 -0
- package/build/models/user-to-subscription.schema.d.ts +61 -0
- package/build/models/user-to-subscription.schema.d.ts.map +1 -0
- package/build/models/user-to-subscription.schema.js +25 -0
- package/build/queries/image-editor/find-image-editor-jobs.command.d.ts +4 -4
- package/build/queries/image-editor/get-image-editor-config.command.d.ts +14 -14
- package/build/queries/image-editor/get-image-editor-job.command.d.ts +4 -4
- package/build/queries/image-generation/find-image-generation-jobs.command.d.ts +4 -4
- package/build/queries/image-generation/get-image-generation-config.command.d.ts +8 -8
- package/build/queries/image-generation/get-image-generation-job.command.d.ts +4 -4
- package/build/queries/payment/get-payment-history.command.d.ts +6 -6
- package/build/queries/stt/find-stt-jobs.command.d.ts +12 -12
- package/build/queries/stt/get-stt-config.command.d.ts +12 -12
- package/build/queries/stt/get-stt-job.command.d.ts +12 -12
- package/build/queries/subscription/get-subscriptions-summary.command.d.ts +16 -16
- package/build/queries/tts/find-tts-jobs.command.d.ts +12 -12
- package/build/queries/tts/get-tts-config.command.d.ts +12 -12
- package/build/queries/tts/get-tts-job.command.d.ts +12 -12
- package/build/queries/user/get-my-products.command.d.ts +8 -8
- package/build/queries/user/get-my-subscriptions.command.d.ts +12 -12
- package/build/queries/user/get-user-payments.command.d.ts +18 -18
- package/commands/index.ts +2 -0
- package/commands/payment/index.ts +1 -0
- package/commands/payment/refund-payment.command.ts +13 -0
- package/commands/{subscription/refund-subscription.command.ts → product/delete-product.command.ts} +1 -1
- package/commands/product/index.ts +2 -0
- package/commands/product/update-product.command.ts +30 -0
- package/commands/subscription/index.ts +0 -1
- package/commands/user-to-product/delete-user-to-product.command.ts +13 -0
- package/commands/user-to-product/get-user-to-product-by-uuid.command.ts +14 -0
- package/commands/user-to-product/index.ts +3 -0
- package/commands/user-to-product/update-user-to-product.command.ts +23 -0
- package/commands/user-to-subscription/admin-cancel-subscription.command.ts +11 -0
- package/commands/user-to-subscription/delete-user-to-subscription.command.ts +13 -0
- package/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.ts +14 -0
- package/commands/user-to-subscription/index.ts +4 -0
- package/commands/user-to-subscription/update-user-to-subscription.command.ts +31 -0
- package/constants/errors/errors.ts +69 -0
- package/constants/payment/enums/payment-status.enum.ts +1 -0
- package/models/index.ts +2 -0
- package/models/user-to-product.schema.ts +15 -0
- package/models/user-to-subscription.schema.ts +23 -0
- package/package.json +1 -1
- package/build/commands/subscription/refund-subscription.command.d.ts.map +0 -1
- package/build/commands/subscription/refund-subscription.command.js +0 -13
|
@@ -66,9 +66,9 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
66
66
|
active: boolean;
|
|
67
67
|
uuid: string;
|
|
68
68
|
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
69
|
-
createdAt: string | Date;
|
|
70
|
-
tokenBalance: number;
|
|
71
69
|
initTokenBalance: number;
|
|
70
|
+
tokenBalance: number;
|
|
71
|
+
createdAt: string | Date;
|
|
72
72
|
carriedOverTokenBalance: number;
|
|
73
73
|
subscription: {
|
|
74
74
|
price: number;
|
|
@@ -90,9 +90,9 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
90
90
|
active: boolean;
|
|
91
91
|
uuid: string;
|
|
92
92
|
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
93
|
-
createdAt: string | Date;
|
|
94
|
-
tokenBalance: number;
|
|
95
93
|
initTokenBalance: number;
|
|
94
|
+
tokenBalance: number;
|
|
95
|
+
createdAt: string | Date;
|
|
96
96
|
carriedOverTokenBalance: number;
|
|
97
97
|
subscription: {
|
|
98
98
|
price: number;
|
|
@@ -160,9 +160,9 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
160
160
|
}, "strip", z.ZodTypeAny, {
|
|
161
161
|
uuid: string;
|
|
162
162
|
status: USER_TO_PRODUCT_STATUS;
|
|
163
|
-
createdAt: string | Date;
|
|
164
|
-
tokenBalance: number;
|
|
165
163
|
initTokenBalance: number;
|
|
164
|
+
tokenBalance: number;
|
|
165
|
+
createdAt: string | Date;
|
|
166
166
|
product: {
|
|
167
167
|
price: number;
|
|
168
168
|
uuid: string;
|
|
@@ -178,9 +178,9 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
178
178
|
}, {
|
|
179
179
|
uuid: string;
|
|
180
180
|
status: USER_TO_PRODUCT_STATUS;
|
|
181
|
-
createdAt: string | Date;
|
|
182
|
-
tokenBalance: number;
|
|
183
181
|
initTokenBalance: number;
|
|
182
|
+
tokenBalance: number;
|
|
183
|
+
createdAt: string | Date;
|
|
184
184
|
product: {
|
|
185
185
|
price: number;
|
|
186
186
|
uuid: string;
|
|
@@ -213,9 +213,9 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
213
213
|
active: boolean;
|
|
214
214
|
uuid: string;
|
|
215
215
|
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
216
|
-
createdAt: string | Date;
|
|
217
|
-
tokenBalance: number;
|
|
218
216
|
initTokenBalance: number;
|
|
217
|
+
tokenBalance: number;
|
|
218
|
+
createdAt: string | Date;
|
|
219
219
|
carriedOverTokenBalance: number;
|
|
220
220
|
subscription: {
|
|
221
221
|
price: number;
|
|
@@ -237,9 +237,9 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
237
237
|
products: {
|
|
238
238
|
uuid: string;
|
|
239
239
|
status: USER_TO_PRODUCT_STATUS;
|
|
240
|
-
createdAt: string | Date;
|
|
241
|
-
tokenBalance: number;
|
|
242
240
|
initTokenBalance: number;
|
|
241
|
+
tokenBalance: number;
|
|
242
|
+
createdAt: string | Date;
|
|
243
243
|
product: {
|
|
244
244
|
price: number;
|
|
245
245
|
uuid: string;
|
|
@@ -262,9 +262,9 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
262
262
|
active: boolean;
|
|
263
263
|
uuid: string;
|
|
264
264
|
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
265
|
-
createdAt: string | Date;
|
|
266
|
-
tokenBalance: number;
|
|
267
265
|
initTokenBalance: number;
|
|
266
|
+
tokenBalance: number;
|
|
267
|
+
createdAt: string | Date;
|
|
268
268
|
carriedOverTokenBalance: number;
|
|
269
269
|
subscription: {
|
|
270
270
|
price: number;
|
|
@@ -286,9 +286,9 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
286
286
|
products: {
|
|
287
287
|
uuid: string;
|
|
288
288
|
status: USER_TO_PRODUCT_STATUS;
|
|
289
|
-
createdAt: string | Date;
|
|
290
|
-
tokenBalance: number;
|
|
291
289
|
initTokenBalance: number;
|
|
290
|
+
tokenBalance: number;
|
|
291
|
+
createdAt: string | Date;
|
|
292
292
|
product: {
|
|
293
293
|
price: number;
|
|
294
294
|
uuid: string;
|
|
@@ -81,10 +81,11 @@ export declare namespace FindTTSJobsCommand {
|
|
|
81
81
|
style?: number | undefined;
|
|
82
82
|
language?: string | undefined;
|
|
83
83
|
};
|
|
84
|
-
|
|
85
|
-
title: string;
|
|
84
|
+
userId: string | null;
|
|
86
85
|
createdAt: Date;
|
|
87
86
|
updatedAt: Date;
|
|
87
|
+
duration: number;
|
|
88
|
+
title: string;
|
|
88
89
|
error: string | null;
|
|
89
90
|
modelId: string;
|
|
90
91
|
reaction: import("../..").USER_REACTION | null;
|
|
@@ -95,7 +96,6 @@ export declare namespace FindTTSJobsCommand {
|
|
|
95
96
|
timestamp: string;
|
|
96
97
|
error?: string | null | undefined;
|
|
97
98
|
}[];
|
|
98
|
-
userId: string | null;
|
|
99
99
|
unregisteredUserId: string | null;
|
|
100
100
|
isDeleted: boolean;
|
|
101
101
|
completedAt: Date | null;
|
|
@@ -116,15 +116,15 @@ export declare namespace FindTTSJobsCommand {
|
|
|
116
116
|
style?: number | undefined;
|
|
117
117
|
language?: string | undefined;
|
|
118
118
|
};
|
|
119
|
-
|
|
120
|
-
title: string;
|
|
119
|
+
userId: string | null;
|
|
121
120
|
createdAt: Date;
|
|
122
121
|
updatedAt: Date;
|
|
122
|
+
duration: number;
|
|
123
|
+
title: string;
|
|
123
124
|
error: string | null;
|
|
124
125
|
modelId: string;
|
|
125
126
|
reaction: import("../..").USER_REACTION | null;
|
|
126
127
|
dislikeReason: string | null;
|
|
127
|
-
userId: string | null;
|
|
128
128
|
unregisteredUserId: string | null;
|
|
129
129
|
isDeleted: boolean;
|
|
130
130
|
completedAt: Date | null;
|
|
@@ -166,10 +166,11 @@ export declare namespace FindTTSJobsCommand {
|
|
|
166
166
|
style?: number | undefined;
|
|
167
167
|
language?: string | undefined;
|
|
168
168
|
};
|
|
169
|
-
|
|
170
|
-
title: string;
|
|
169
|
+
userId: string | null;
|
|
171
170
|
createdAt: Date;
|
|
172
171
|
updatedAt: Date;
|
|
172
|
+
duration: number;
|
|
173
|
+
title: string;
|
|
173
174
|
error: string | null;
|
|
174
175
|
modelId: string;
|
|
175
176
|
reaction: import("../..").USER_REACTION | null;
|
|
@@ -180,7 +181,6 @@ export declare namespace FindTTSJobsCommand {
|
|
|
180
181
|
timestamp: string;
|
|
181
182
|
error?: string | null | undefined;
|
|
182
183
|
}[];
|
|
183
|
-
userId: string | null;
|
|
184
184
|
unregisteredUserId: string | null;
|
|
185
185
|
isDeleted: boolean;
|
|
186
186
|
completedAt: Date | null;
|
|
@@ -208,15 +208,15 @@ export declare namespace FindTTSJobsCommand {
|
|
|
208
208
|
style?: number | undefined;
|
|
209
209
|
language?: string | undefined;
|
|
210
210
|
};
|
|
211
|
-
|
|
212
|
-
title: string;
|
|
211
|
+
userId: string | null;
|
|
213
212
|
createdAt: Date;
|
|
214
213
|
updatedAt: Date;
|
|
214
|
+
duration: number;
|
|
215
|
+
title: string;
|
|
215
216
|
error: string | null;
|
|
216
217
|
modelId: string;
|
|
217
218
|
reaction: import("../..").USER_REACTION | null;
|
|
218
219
|
dislikeReason: string | null;
|
|
219
|
-
userId: string | null;
|
|
220
220
|
unregisteredUserId: string | null;
|
|
221
221
|
isDeleted: boolean;
|
|
222
222
|
completedAt: Date | null;
|
|
@@ -712,11 +712,11 @@ export declare namespace GetTTSConfigCommand {
|
|
|
712
712
|
} | undefined;
|
|
713
713
|
};
|
|
714
714
|
description: string;
|
|
715
|
+
createdAt: Date;
|
|
716
|
+
updatedAt: Date;
|
|
715
717
|
title: string;
|
|
716
718
|
strategy: string;
|
|
717
719
|
order: number;
|
|
718
|
-
createdAt: Date;
|
|
719
|
-
updatedAt: Date;
|
|
720
720
|
aiModel: string;
|
|
721
721
|
icons: {
|
|
722
722
|
light: {
|
|
@@ -833,11 +833,11 @@ export declare namespace GetTTSConfigCommand {
|
|
|
833
833
|
} | undefined;
|
|
834
834
|
};
|
|
835
835
|
description: string;
|
|
836
|
+
createdAt: Date;
|
|
837
|
+
updatedAt: Date;
|
|
836
838
|
title: string;
|
|
837
839
|
strategy: string;
|
|
838
840
|
order: number;
|
|
839
|
-
createdAt: Date;
|
|
840
|
-
updatedAt: Date;
|
|
841
841
|
aiModel: string;
|
|
842
842
|
icons: {
|
|
843
843
|
light: {
|
|
@@ -956,11 +956,11 @@ export declare namespace GetTTSConfigCommand {
|
|
|
956
956
|
} | undefined;
|
|
957
957
|
};
|
|
958
958
|
description: string;
|
|
959
|
+
createdAt: Date;
|
|
960
|
+
updatedAt: Date;
|
|
959
961
|
title: string;
|
|
960
962
|
strategy: string;
|
|
961
963
|
order: number;
|
|
962
|
-
createdAt: Date;
|
|
963
|
-
updatedAt: Date;
|
|
964
964
|
aiModel: string;
|
|
965
965
|
icons: {
|
|
966
966
|
light: {
|
|
@@ -1079,11 +1079,11 @@ export declare namespace GetTTSConfigCommand {
|
|
|
1079
1079
|
} | undefined;
|
|
1080
1080
|
};
|
|
1081
1081
|
description: string;
|
|
1082
|
+
createdAt: Date;
|
|
1083
|
+
updatedAt: Date;
|
|
1082
1084
|
title: string;
|
|
1083
1085
|
strategy: string;
|
|
1084
1086
|
order: number;
|
|
1085
|
-
createdAt: Date;
|
|
1086
|
-
updatedAt: Date;
|
|
1087
1087
|
aiModel: string;
|
|
1088
1088
|
icons: {
|
|
1089
1089
|
light: {
|
|
@@ -1204,11 +1204,11 @@ export declare namespace GetTTSConfigCommand {
|
|
|
1204
1204
|
} | undefined;
|
|
1205
1205
|
};
|
|
1206
1206
|
description: string;
|
|
1207
|
+
createdAt: Date;
|
|
1208
|
+
updatedAt: Date;
|
|
1207
1209
|
title: string;
|
|
1208
1210
|
strategy: string;
|
|
1209
1211
|
order: number;
|
|
1210
|
-
createdAt: Date;
|
|
1211
|
-
updatedAt: Date;
|
|
1212
1212
|
aiModel: string;
|
|
1213
1213
|
icons: {
|
|
1214
1214
|
light: {
|
|
@@ -1329,11 +1329,11 @@ export declare namespace GetTTSConfigCommand {
|
|
|
1329
1329
|
} | undefined;
|
|
1330
1330
|
};
|
|
1331
1331
|
description: string;
|
|
1332
|
+
createdAt: Date;
|
|
1333
|
+
updatedAt: Date;
|
|
1332
1334
|
title: string;
|
|
1333
1335
|
strategy: string;
|
|
1334
1336
|
order: number;
|
|
1335
|
-
createdAt: Date;
|
|
1336
|
-
updatedAt: Date;
|
|
1337
1337
|
aiModel: string;
|
|
1338
1338
|
icons: {
|
|
1339
1339
|
light: {
|
|
@@ -78,10 +78,11 @@ export declare namespace GetTTSJobCommand {
|
|
|
78
78
|
style?: number | undefined;
|
|
79
79
|
language?: string | undefined;
|
|
80
80
|
};
|
|
81
|
-
|
|
82
|
-
title: string;
|
|
81
|
+
userId: string | null;
|
|
83
82
|
createdAt: Date;
|
|
84
83
|
updatedAt: Date;
|
|
84
|
+
duration: number;
|
|
85
|
+
title: string;
|
|
85
86
|
error: string | null;
|
|
86
87
|
modelId: string;
|
|
87
88
|
reaction: import("../..").USER_REACTION | null;
|
|
@@ -92,7 +93,6 @@ export declare namespace GetTTSJobCommand {
|
|
|
92
93
|
timestamp: string;
|
|
93
94
|
error?: string | null | undefined;
|
|
94
95
|
}[];
|
|
95
|
-
userId: string | null;
|
|
96
96
|
unregisteredUserId: string | null;
|
|
97
97
|
isDeleted: boolean;
|
|
98
98
|
completedAt: Date | null;
|
|
@@ -113,15 +113,15 @@ export declare namespace GetTTSJobCommand {
|
|
|
113
113
|
style?: number | undefined;
|
|
114
114
|
language?: string | undefined;
|
|
115
115
|
};
|
|
116
|
-
|
|
117
|
-
title: string;
|
|
116
|
+
userId: string | null;
|
|
118
117
|
createdAt: Date;
|
|
119
118
|
updatedAt: Date;
|
|
119
|
+
duration: number;
|
|
120
|
+
title: string;
|
|
120
121
|
error: string | null;
|
|
121
122
|
modelId: string;
|
|
122
123
|
reaction: import("../..").USER_REACTION | null;
|
|
123
124
|
dislikeReason: string | null;
|
|
124
|
-
userId: string | null;
|
|
125
125
|
unregisteredUserId: string | null;
|
|
126
126
|
isDeleted: boolean;
|
|
127
127
|
completedAt: Date | null;
|
|
@@ -150,10 +150,11 @@ export declare namespace GetTTSJobCommand {
|
|
|
150
150
|
style?: number | undefined;
|
|
151
151
|
language?: string | undefined;
|
|
152
152
|
};
|
|
153
|
-
|
|
154
|
-
title: string;
|
|
153
|
+
userId: string | null;
|
|
155
154
|
createdAt: Date;
|
|
156
155
|
updatedAt: Date;
|
|
156
|
+
duration: number;
|
|
157
|
+
title: string;
|
|
157
158
|
error: string | null;
|
|
158
159
|
modelId: string;
|
|
159
160
|
reaction: import("../..").USER_REACTION | null;
|
|
@@ -164,7 +165,6 @@ export declare namespace GetTTSJobCommand {
|
|
|
164
165
|
timestamp: string;
|
|
165
166
|
error?: string | null | undefined;
|
|
166
167
|
}[];
|
|
167
|
-
userId: string | null;
|
|
168
168
|
unregisteredUserId: string | null;
|
|
169
169
|
isDeleted: boolean;
|
|
170
170
|
completedAt: Date | null;
|
|
@@ -187,15 +187,15 @@ export declare namespace GetTTSJobCommand {
|
|
|
187
187
|
style?: number | undefined;
|
|
188
188
|
language?: string | undefined;
|
|
189
189
|
};
|
|
190
|
-
|
|
191
|
-
title: string;
|
|
190
|
+
userId: string | null;
|
|
192
191
|
createdAt: Date;
|
|
193
192
|
updatedAt: Date;
|
|
193
|
+
duration: number;
|
|
194
|
+
title: string;
|
|
194
195
|
error: string | null;
|
|
195
196
|
modelId: string;
|
|
196
197
|
reaction: import("../..").USER_REACTION | null;
|
|
197
198
|
dislikeReason: string | null;
|
|
198
|
-
userId: string | null;
|
|
199
199
|
unregisteredUserId: string | null;
|
|
200
200
|
isDeleted: boolean;
|
|
201
201
|
completedAt: Date | null;
|
|
@@ -51,9 +51,9 @@ export declare namespace GetMyProductsCommand {
|
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
52
|
uuid: string;
|
|
53
53
|
status: USER_TO_PRODUCT_STATUS;
|
|
54
|
-
createdAt: string | Date;
|
|
55
|
-
tokenBalance: number;
|
|
56
54
|
initTokenBalance: number;
|
|
55
|
+
tokenBalance: number;
|
|
56
|
+
createdAt: string | Date;
|
|
57
57
|
product: {
|
|
58
58
|
price: number;
|
|
59
59
|
uuid: string;
|
|
@@ -69,9 +69,9 @@ export declare namespace GetMyProductsCommand {
|
|
|
69
69
|
}, {
|
|
70
70
|
uuid: string;
|
|
71
71
|
status: USER_TO_PRODUCT_STATUS;
|
|
72
|
-
createdAt: string | Date;
|
|
73
|
-
tokenBalance: number;
|
|
74
72
|
initTokenBalance: number;
|
|
73
|
+
tokenBalance: number;
|
|
74
|
+
createdAt: string | Date;
|
|
75
75
|
product: {
|
|
76
76
|
price: number;
|
|
77
77
|
uuid: string;
|
|
@@ -89,9 +89,9 @@ export declare namespace GetMyProductsCommand {
|
|
|
89
89
|
data: {
|
|
90
90
|
uuid: string;
|
|
91
91
|
status: USER_TO_PRODUCT_STATUS;
|
|
92
|
-
createdAt: string | Date;
|
|
93
|
-
tokenBalance: number;
|
|
94
92
|
initTokenBalance: number;
|
|
93
|
+
tokenBalance: number;
|
|
94
|
+
createdAt: string | Date;
|
|
95
95
|
product: {
|
|
96
96
|
price: number;
|
|
97
97
|
uuid: string;
|
|
@@ -109,9 +109,9 @@ export declare namespace GetMyProductsCommand {
|
|
|
109
109
|
data: {
|
|
110
110
|
uuid: string;
|
|
111
111
|
status: USER_TO_PRODUCT_STATUS;
|
|
112
|
-
createdAt: string | Date;
|
|
113
|
-
tokenBalance: number;
|
|
114
112
|
initTokenBalance: number;
|
|
113
|
+
tokenBalance: number;
|
|
114
|
+
createdAt: string | Date;
|
|
115
115
|
product: {
|
|
116
116
|
price: number;
|
|
117
117
|
uuid: string;
|
|
@@ -67,10 +67,11 @@ export declare namespace GetMySubscriptionsCommand {
|
|
|
67
67
|
active: boolean;
|
|
68
68
|
uuid: string;
|
|
69
69
|
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
70
|
-
createdAt: string | Date;
|
|
71
|
-
tokenBalance: number;
|
|
72
70
|
initTokenBalance: number;
|
|
71
|
+
tokenBalance: number;
|
|
72
|
+
createdAt: string | Date;
|
|
73
73
|
carriedOverTokenBalance: number;
|
|
74
|
+
endDate: string | Date | null;
|
|
74
75
|
subscription: {
|
|
75
76
|
price: number;
|
|
76
77
|
interval: string;
|
|
@@ -87,15 +88,15 @@ export declare namespace GetMySubscriptionsCommand {
|
|
|
87
88
|
discount: number;
|
|
88
89
|
carryoverPercent: number;
|
|
89
90
|
};
|
|
90
|
-
endDate: string | Date | null;
|
|
91
91
|
}, {
|
|
92
92
|
active: boolean;
|
|
93
93
|
uuid: string;
|
|
94
94
|
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
95
|
-
createdAt: string | Date;
|
|
96
|
-
tokenBalance: number;
|
|
97
95
|
initTokenBalance: number;
|
|
96
|
+
tokenBalance: number;
|
|
97
|
+
createdAt: string | Date;
|
|
98
98
|
carriedOverTokenBalance: number;
|
|
99
|
+
endDate: string | Date | null;
|
|
99
100
|
subscription: {
|
|
100
101
|
price: number;
|
|
101
102
|
interval: string;
|
|
@@ -112,17 +113,17 @@ export declare namespace GetMySubscriptionsCommand {
|
|
|
112
113
|
discount: number;
|
|
113
114
|
carryoverPercent: number;
|
|
114
115
|
};
|
|
115
|
-
endDate: string | Date | null;
|
|
116
116
|
}>, "many">;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
118
|
data: {
|
|
119
119
|
active: boolean;
|
|
120
120
|
uuid: string;
|
|
121
121
|
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
122
|
-
createdAt: string | Date;
|
|
123
|
-
tokenBalance: number;
|
|
124
122
|
initTokenBalance: number;
|
|
123
|
+
tokenBalance: number;
|
|
124
|
+
createdAt: string | Date;
|
|
125
125
|
carriedOverTokenBalance: number;
|
|
126
|
+
endDate: string | Date | null;
|
|
126
127
|
subscription: {
|
|
127
128
|
price: number;
|
|
128
129
|
interval: string;
|
|
@@ -139,17 +140,17 @@ export declare namespace GetMySubscriptionsCommand {
|
|
|
139
140
|
discount: number;
|
|
140
141
|
carryoverPercent: number;
|
|
141
142
|
};
|
|
142
|
-
endDate: string | Date | null;
|
|
143
143
|
}[];
|
|
144
144
|
}, {
|
|
145
145
|
data: {
|
|
146
146
|
active: boolean;
|
|
147
147
|
uuid: string;
|
|
148
148
|
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
149
|
-
createdAt: string | Date;
|
|
150
|
-
tokenBalance: number;
|
|
151
149
|
initTokenBalance: number;
|
|
150
|
+
tokenBalance: number;
|
|
151
|
+
createdAt: string | Date;
|
|
152
152
|
carriedOverTokenBalance: number;
|
|
153
|
+
endDate: string | Date | null;
|
|
153
154
|
subscription: {
|
|
154
155
|
price: number;
|
|
155
156
|
interval: string;
|
|
@@ -166,7 +167,6 @@ export declare namespace GetMySubscriptionsCommand {
|
|
|
166
167
|
discount: number;
|
|
167
168
|
carryoverPercent: number;
|
|
168
169
|
};
|
|
169
|
-
endDate: string | Date | null;
|
|
170
170
|
}[];
|
|
171
171
|
}>;
|
|
172
172
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -19,14 +19,14 @@ export declare namespace GetUserPaymentsCommand {
|
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
uuid: string;
|
|
21
21
|
description: string;
|
|
22
|
-
currency: string;
|
|
23
|
-
updatedAt: string | Date;
|
|
24
22
|
userId: string;
|
|
23
|
+
productId: string | null;
|
|
24
|
+
updatedAt: string | Date;
|
|
25
25
|
subscriptionId: string | null;
|
|
26
|
+
currency: string;
|
|
26
27
|
sum: number;
|
|
27
28
|
orderType: ORDER_TYPE;
|
|
28
29
|
orderStatus: ORDER_STATUS;
|
|
29
|
-
productId: string | null;
|
|
30
30
|
productName: string | null;
|
|
31
31
|
subscriptionName: string | null;
|
|
32
32
|
paymentStatus: PAYMENT_STATUS;
|
|
@@ -34,14 +34,14 @@ export declare namespace GetUserPaymentsCommand {
|
|
|
34
34
|
}, {
|
|
35
35
|
uuid: string;
|
|
36
36
|
description: string;
|
|
37
|
-
currency: string;
|
|
38
|
-
updatedAt: string | Date;
|
|
39
37
|
userId: string;
|
|
38
|
+
productId: string | null;
|
|
39
|
+
updatedAt: string | Date;
|
|
40
40
|
subscriptionId: string | null;
|
|
41
|
+
currency: string;
|
|
41
42
|
sum: number;
|
|
42
43
|
orderType: ORDER_TYPE;
|
|
43
44
|
orderStatus: ORDER_STATUS;
|
|
44
|
-
productId: string | null;
|
|
45
45
|
productName: string | null;
|
|
46
46
|
subscriptionName: string | null;
|
|
47
47
|
paymentStatus: PAYMENT_STATUS;
|
|
@@ -66,14 +66,14 @@ export declare namespace GetUserPaymentsCommand {
|
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
67
|
uuid: string;
|
|
68
68
|
description: string;
|
|
69
|
-
currency: string;
|
|
70
|
-
updatedAt: string | Date;
|
|
71
69
|
userId: string;
|
|
70
|
+
productId: string | null;
|
|
71
|
+
updatedAt: string | Date;
|
|
72
72
|
subscriptionId: string | null;
|
|
73
|
+
currency: string;
|
|
73
74
|
sum: number;
|
|
74
75
|
orderType: ORDER_TYPE;
|
|
75
76
|
orderStatus: ORDER_STATUS;
|
|
76
|
-
productId: string | null;
|
|
77
77
|
productName: string | null;
|
|
78
78
|
subscriptionName: string | null;
|
|
79
79
|
paymentStatus: PAYMENT_STATUS;
|
|
@@ -81,14 +81,14 @@ export declare namespace GetUserPaymentsCommand {
|
|
|
81
81
|
}, {
|
|
82
82
|
uuid: string;
|
|
83
83
|
description: string;
|
|
84
|
-
currency: string;
|
|
85
|
-
updatedAt: string | Date;
|
|
86
84
|
userId: string;
|
|
85
|
+
productId: string | null;
|
|
86
|
+
updatedAt: string | Date;
|
|
87
87
|
subscriptionId: string | null;
|
|
88
|
+
currency: string;
|
|
88
89
|
sum: number;
|
|
89
90
|
orderType: ORDER_TYPE;
|
|
90
91
|
orderStatus: ORDER_STATUS;
|
|
91
|
-
productId: string | null;
|
|
92
92
|
productName: string | null;
|
|
93
93
|
subscriptionName: string | null;
|
|
94
94
|
paymentStatus: PAYMENT_STATUS;
|
|
@@ -98,14 +98,14 @@ export declare namespace GetUserPaymentsCommand {
|
|
|
98
98
|
data: {
|
|
99
99
|
uuid: string;
|
|
100
100
|
description: string;
|
|
101
|
-
currency: string;
|
|
102
|
-
updatedAt: string | Date;
|
|
103
101
|
userId: string;
|
|
102
|
+
productId: string | null;
|
|
103
|
+
updatedAt: string | Date;
|
|
104
104
|
subscriptionId: string | null;
|
|
105
|
+
currency: string;
|
|
105
106
|
sum: number;
|
|
106
107
|
orderType: ORDER_TYPE;
|
|
107
108
|
orderStatus: ORDER_STATUS;
|
|
108
|
-
productId: string | null;
|
|
109
109
|
productName: string | null;
|
|
110
110
|
subscriptionName: string | null;
|
|
111
111
|
paymentStatus: PAYMENT_STATUS;
|
|
@@ -115,14 +115,14 @@ export declare namespace GetUserPaymentsCommand {
|
|
|
115
115
|
data: {
|
|
116
116
|
uuid: string;
|
|
117
117
|
description: string;
|
|
118
|
-
currency: string;
|
|
119
|
-
updatedAt: string | Date;
|
|
120
118
|
userId: string;
|
|
119
|
+
productId: string | null;
|
|
120
|
+
updatedAt: string | Date;
|
|
121
121
|
subscriptionId: string | null;
|
|
122
|
+
currency: string;
|
|
122
123
|
sum: number;
|
|
123
124
|
orderType: ORDER_TYPE;
|
|
124
125
|
orderStatus: ORDER_STATUS;
|
|
125
|
-
productId: string | null;
|
|
126
126
|
productName: string | null;
|
|
127
127
|
subscriptionName: string | null;
|
|
128
128
|
paymentStatus: PAYMENT_STATUS;
|
package/commands/index.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export namespace RefundPaymentCommand {
|
|
4
|
+
export const RequestSchema = z.object({
|
|
5
|
+
uuid: z.string().uuid(),
|
|
6
|
+
});
|
|
7
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
8
|
+
|
|
9
|
+
export const ResponseSchema = z.object({
|
|
10
|
+
data: z.boolean(),
|
|
11
|
+
});
|
|
12
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ProductSchema } from '../../models';
|
|
3
|
+
|
|
4
|
+
export namespace UpdateProductCommand {
|
|
5
|
+
export const RequestParamSchema = z.object({
|
|
6
|
+
uuid: z.string().uuid(),
|
|
7
|
+
});
|
|
8
|
+
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
9
|
+
|
|
10
|
+
export const RequestSchema = z.object({
|
|
11
|
+
name: z.string().min(1).max(200).optional(),
|
|
12
|
+
description: z.string().min(1).max(2000).optional(),
|
|
13
|
+
price: z.number().int().min(0).optional(),
|
|
14
|
+
tokens: z.number().int().min(0).optional(),
|
|
15
|
+
features: z
|
|
16
|
+
.array(
|
|
17
|
+
z.object({
|
|
18
|
+
type: z.string(),
|
|
19
|
+
name: z.string(),
|
|
20
|
+
}),
|
|
21
|
+
)
|
|
22
|
+
.optional(),
|
|
23
|
+
});
|
|
24
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
25
|
+
|
|
26
|
+
export const ResponseSchema = z.object({
|
|
27
|
+
data: ProductSchema,
|
|
28
|
+
});
|
|
29
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export namespace DeleteUserToProductCommand {
|
|
4
|
+
export const RequestParamSchema = z.object({
|
|
5
|
+
uuid: z.string().uuid(),
|
|
6
|
+
});
|
|
7
|
+
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
8
|
+
|
|
9
|
+
export const ResponseSchema = z.object({
|
|
10
|
+
data: z.boolean(),
|
|
11
|
+
});
|
|
12
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { UserToProductSchema } from '../../models';
|
|
3
|
+
|
|
4
|
+
export namespace GetUserToProductByUuidCommand {
|
|
5
|
+
export const RequestParamSchema = z.object({
|
|
6
|
+
uuid: z.string().uuid(),
|
|
7
|
+
});
|
|
8
|
+
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
9
|
+
|
|
10
|
+
export const ResponseSchema = z.object({
|
|
11
|
+
data: UserToProductSchema,
|
|
12
|
+
});
|
|
13
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
14
|
+
}
|