@purpleschool/multisite 0.0.26 → 0.0.28
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/build/api/controller/http/ai-proxy.d.ts +3 -3
- package/build/api/controller/http/ai-proxy.d.ts.map +1 -1
- package/build/api/controller/http/auth.d.ts +12 -12
- package/build/api/controller/http/auth.d.ts.map +1 -1
- package/build/api/controller/http/cloud-payments.d.ts +2 -2
- package/build/api/controller/http/cloud-payments.d.ts.map +1 -1
- package/build/api/controller/http/file.d.ts +5 -5
- package/build/api/controller/http/file.d.ts.map +1 -1
- package/build/api/controller/http/health.d.ts +1 -1
- package/build/api/controller/http/health.d.ts.map +1 -1
- package/build/api/controller/http/image-editor.d.ts +6 -6
- package/build/api/controller/http/image-editor.d.ts.map +1 -1
- package/build/api/controller/http/image-generation.d.ts +6 -6
- package/build/api/controller/http/image-generation.d.ts.map +1 -1
- package/build/api/controller/http/marketplace-card.d.ts +7 -7
- package/build/api/controller/http/marketplace-card.d.ts.map +1 -1
- package/build/api/controller/http/page-question.d.ts +3 -3
- package/build/api/controller/http/page-question.d.ts.map +1 -1
- package/build/api/controller/http/page.d.ts +4 -4
- package/build/api/controller/http/page.d.ts.map +1 -1
- package/build/api/controller/http/payment.d.ts +3 -3
- package/build/api/controller/http/payment.d.ts.map +1 -1
- package/build/api/controller/http/product.d.ts +6 -6
- package/build/api/controller/http/product.d.ts.map +1 -1
- package/build/api/controller/http/sitemap.d.ts +2 -2
- package/build/api/controller/http/sitemap.d.ts.map +1 -1
- package/build/api/controller/http/stt.d.ts +6 -6
- package/build/api/controller/http/stt.d.ts.map +1 -1
- package/build/api/controller/http/subscription.d.ts +7 -7
- package/build/api/controller/http/subscription.d.ts.map +1 -1
- package/build/api/controller/http/transaction.d.ts +2 -2
- package/build/api/controller/http/transaction.d.ts.map +1 -1
- package/build/api/controller/http/tts.d.ts +6 -6
- package/build/api/controller/http/tts.d.ts.map +1 -1
- package/build/api/controller/http/unregistered-user.d.ts +2 -2
- package/build/api/controller/http/unregistered-user.d.ts.map +1 -1
- package/build/api/controller/http/user-to-product.d.ts +1 -1
- package/build/api/controller/http/user-to-product.d.ts.map +1 -1
- package/build/api/controller/http/user-to-subscription.d.ts +1 -1
- package/build/api/controller/http/user-to-subscription.d.ts.map +1 -1
- package/build/api/controller/http/user.d.ts +5 -5
- package/build/api/controller/http/user.d.ts.map +1 -1
- package/build/api/routes.d.ts +1 -1
- package/build/api/routes.d.ts.map +1 -1
- package/build/commands/auth/register.command.d.ts +1 -1
- package/build/commands/auth/reset-password.command.d.ts +2 -2
- package/build/commands/auth/verify-email.command.d.ts +2 -2
- package/build/commands/auth/vk-login.command.d.ts +2 -2
- package/build/commands/auth/yandex-login.command.d.ts +2 -2
- package/build/commands/file/upload-file.command.d.ts +8 -8
- package/build/commands/image-editor/execute-image-editor.command.d.ts +88 -88
- package/build/commands/image-editor/proxy-image-editor-callback.command.d.ts +2 -2
- package/build/commands/image-editor/retry-image-editor-job.command.d.ts +89 -89
- package/build/commands/image-editor/set-reaction-to-image-editor-job.command.d.ts +78 -78
- package/build/commands/image-editor/update-image-editor-job-title.command.d.ts +78 -78
- package/build/commands/image-generation/execute-image-generation.command.d.ts +71 -71
- package/build/commands/image-generation/proxy-image-generation-callback.command.d.ts +4 -4
- package/build/commands/image-generation/retry-image-generation-job.command.d.ts +72 -72
- package/build/commands/image-generation/set-reaction-to-image-generation-job.command.d.ts +65 -65
- package/build/commands/image-generation/update-image-generation-job-title.command.d.ts +65 -65
- package/build/commands/marketplace-card/execute-marketplace-card.command.d.ts +20 -20
- package/build/commands/marketplace-card/retry-marketplace-card-job.command.d.ts +16 -16
- package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.d.ts +16 -16
- package/build/commands/marketplace-card/update-marketplace-card-job-title.command.d.ts +16 -16
- package/build/commands/page/create-page-question.command.d.ts +9 -9
- package/build/commands/page/create-page.command.d.ts +15 -15
- package/build/commands/page/find-page-by-alias.command.d.ts +72 -72
- package/build/commands/page/find-page-by-criteria.command.d.ts +28 -28
- package/build/commands/page/find-page.command.d.ts +48 -48
- package/build/commands/page/update-page-question.command.d.ts +9 -9
- package/build/commands/page/update-page.command.d.ts +15 -15
- package/build/commands/payment/cloud-payments.command.d.ts +18 -18
- package/build/commands/product/buy-product.command.d.ts +80 -80
- package/build/commands/product/fast-buy-product.command.d.ts +81 -81
- package/build/commands/product/update-product.command.d.ts +6 -6
- package/build/commands/stt/execute-stt.command.d.ts +81 -81
- package/build/commands/stt/retry-stt-job.command.d.ts +79 -79
- package/build/commands/stt/set-reaction-to-stt-job.command.d.ts +79 -79
- package/build/commands/stt/update-stt-job-title.command.d.ts +79 -79
- package/build/commands/subscription/buy-subscription.command.d.ts +80 -80
- package/build/commands/subscription/fast-buy-subscription.command.d.ts +81 -81
- package/build/commands/subscription/update-subscription.command.d.ts +24 -24
- package/build/commands/transaction/write-off.command.d.ts +5 -5
- package/build/commands/tts/execute-tts.command.d.ts +99 -99
- package/build/commands/tts/retry-tts-job.command.d.ts +92 -92
- package/build/commands/tts/set-reaction-to-tts-job.command.d.ts +92 -92
- package/build/commands/tts/update-tts-job-title.command.d.ts +92 -92
- package/build/commands/unregistered-user/upsert-unregistered-user.command.d.ts +4 -4
- package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts +4 -4
- package/build/commands/user-to-product/update-user-to-product.command.d.ts +7 -7
- package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts +28 -28
- package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts +36 -36
- package/build/constants/email/email-endpoint.d.ts +1 -1
- package/build/constants/email/email-endpoint.d.ts.map +1 -1
- package/build/constants/email/email-endpoint.js +1 -1
- package/build/constants/email/subjects.d.ts +10 -10
- package/build/constants/email/subjects.d.ts.map +1 -1
- package/build/constants/errors/errors.d.ts +338 -328
- package/build/constants/errors/errors.d.ts.map +1 -1
- package/build/constants/errors/errors.js +10 -0
- package/build/constants/subscription/free-subscription-id.constant.d.ts +1 -1
- package/build/models/cloud-payments-widget-data.schema.d.ts +58 -58
- package/build/models/cloud-payments-widget.schema.d.ts +62 -62
- package/build/models/common/attached-file.schema.d.ts +4 -4
- package/build/models/common/receipt.schema.d.ts +8 -8
- package/build/models/file.schema.d.ts +4 -4
- package/build/models/image-editor/image-editor-config.schema.d.ts +128 -128
- package/build/models/image-editor/image-editor-job-params.schema.d.ts +10 -10
- package/build/models/image-editor/image-editor-job-request-params.schema.d.ts +4 -4
- package/build/models/image-editor/image-editor-job-request-params.schema.js +1 -1
- package/build/models/image-editor/image-editor-job.schema.d.ts +44 -44
- package/build/models/image-editor/image-editor-model-params.schema.d.ts +5 -5
- package/build/models/image-editor/image-editor-model.schema.d.ts +44 -44
- package/build/models/image-editor/image-editor-pricing-rule.schema.d.ts +2 -2
- package/build/models/image-editor/image-editor-prompt-group.schema.d.ts +26 -26
- package/build/models/image-editor/image-editor-system-prompt.schema.d.ts +12 -12
- package/build/models/image-generation/image-generation-config.schema.d.ts +122 -122
- package/build/models/image-generation/image-generation-job-attempt.schema.d.ts +2 -2
- package/build/models/image-generation/image-generation-job-params.schema.d.ts +9 -9
- package/build/models/image-generation/image-generation-job-request-params.schema.d.ts +1 -1
- package/build/models/image-generation/image-generation-job.schema.d.ts +38 -38
- package/build/models/image-generation/image-generation-model-params.schema.d.ts +4 -4
- package/build/models/image-generation/image-generation-model.schema.d.ts +42 -42
- package/build/models/image-generation/image-generation-preset.schema.d.ts +2 -2
- package/build/models/image-generation/image-generation-pricing-rule.schema.d.ts +4 -4
- package/build/models/image-generation/image-generation-vendor.schema.d.ts +80 -80
- package/build/models/marketplace-card/marketplace-card-config.schema.d.ts +18 -18
- package/build/models/marketplace-card/marketplace-card-job-request-params.schema.d.ts +4 -4
- package/build/models/marketplace-card/marketplace-card-job.schema.d.ts +8 -8
- package/build/models/marketplace-card/marketplace-card-model.schema.d.ts +4 -4
- package/build/models/marketplace-card/marketplace-card-style-preset.schema.d.ts +2 -2
- package/build/models/page-question.schema.d.ts +4 -4
- package/build/models/page.schema.d.ts +20 -20
- package/build/models/product.schema.d.ts +2 -2
- package/build/models/stt/stt-config.schema.d.ts +28 -28
- package/build/models/stt/stt-job-attempt.schema.d.ts +4 -4
- package/build/models/stt/stt-job.schema.d.ts +42 -42
- package/build/models/stt/stt-model.schema.d.ts +14 -14
- package/build/models/stt/stt-response.schema.d.ts +1 -1
- package/build/models/subscription.schema.d.ts +8 -8
- package/build/models/tools/vendor.schema.d.ts +2 -2
- package/build/models/tts/tts-config.schema.d.ts +184 -184
- package/build/models/tts/tts-job-attempt.schema.d.ts +4 -4
- package/build/models/tts/tts-job-params.schema.d.ts +2 -2
- package/build/models/tts/tts-job.schema.d.ts +50 -50
- package/build/models/tts/tts-model.schema.d.ts +196 -196
- package/build/models/unlocked-by-subscription.schema.d.ts.map +1 -1
- package/build/models/user-to-product.schema.d.ts +2 -2
- package/build/models/user-to-subscription.schema.d.ts +14 -14
- package/build/models/user.schema.d.ts +4 -4
- package/build/queries/file/find-files.command.d.ts +8 -8
- package/build/queries/file/get-file.command.d.ts +8 -8
- package/build/queries/image-editor/find-image-editor-jobs.command.d.ts +79 -79
- package/build/queries/image-editor/get-image-editor-config.command.d.ts +186 -186
- package/build/queries/image-editor/get-image-editor-job.command.d.ts +78 -78
- package/build/queries/image-generation/find-image-generation-jobs.command.d.ts +66 -66
- package/build/queries/image-generation/get-image-generation-config.command.d.ts +162 -162
- package/build/queries/image-generation/get-image-generation-job.command.d.ts +65 -65
- package/build/queries/marketplace-card/find-marketplace-card-jobs.command.d.ts +17 -17
- package/build/queries/marketplace-card/get-marketplace-card-config.command.d.ts +30 -30
- package/build/queries/marketplace-card/get-marketplace-card-job.command.d.ts +16 -16
- package/build/queries/page/find-all-page-questions.query.d.ts +8 -8
- package/build/queries/page/find-page-question-by-uuid.query.d.ts +8 -8
- package/build/queries/page/find-page-questions-by-page-id.query.d.ts +8 -8
- package/build/queries/payment/get-payment-history.command.d.ts +12 -12
- package/build/queries/product/find-products.command.d.ts +4 -4
- package/build/queries/stt/find-stt-jobs.command.d.ts +79 -79
- package/build/queries/stt/get-stt-config.command.d.ts +42 -42
- package/build/queries/stt/get-stt-job.command.d.ts +79 -79
- package/build/queries/subscription/find-subscriptions.command.d.ts +16 -16
- package/build/queries/subscription/get-subscriptions-summary.command.d.ts +51 -51
- package/build/queries/tts/find-tts-jobs.command.d.ts +94 -94
- package/build/queries/tts/get-tts-config.command.d.ts +242 -242
- package/build/queries/tts/get-tts-job.command.d.ts +92 -92
- package/build/queries/unregistered-user/get-unregistered-user-balance.command.d.ts +5 -0
- package/build/queries/unregistered-user/get-unregistered-user-balance.command.d.ts.map +1 -1
- package/build/queries/unregistered-user/get-unregistered-user-balance.command.js +1 -0
- package/build/queries/user/find-users.command.d.ts +16 -16
- package/build/queries/user/get-all-users.command.d.ts +8 -8
- package/build/queries/user/get-my-products.command.d.ts +10 -10
- package/build/queries/user/get-my-subscriptions.command.d.ts +36 -36
- package/build/queries/user/get-user-balance.command.d.ts +5 -0
- package/build/queries/user/get-user-balance.command.d.ts.map +1 -1
- package/build/queries/user/get-user-balance.command.js +1 -0
- package/build/queries/user/get-user-payments.command.d.ts +42 -42
- package/build/queries/user/get-user.command.d.ts +8 -8
- package/constants/email/email-endpoint.ts +1 -1
- package/constants/errors/errors.ts +10 -0
- package/models/image-editor/image-editor-job-request-params.schema.ts +1 -1
- package/package.json +1 -1
- package/queries/unregistered-user/get-unregistered-user-balance.command.ts +1 -0
- package/queries/user/get-user-balance.command.ts +1 -0
|
@@ -33,138 +33,138 @@ export declare namespace GetMySubscriptionsCommand {
|
|
|
33
33
|
}>, "many">;
|
|
34
34
|
carryoverPercent: z.ZodNumber;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
price: number;
|
|
37
|
-
interval: string;
|
|
38
36
|
uuid: string;
|
|
39
37
|
siteId: string;
|
|
40
38
|
name: string;
|
|
41
39
|
description: string;
|
|
40
|
+
price: number;
|
|
41
|
+
interval: string;
|
|
42
|
+
period: number;
|
|
42
43
|
tokens: number;
|
|
44
|
+
discount: number;
|
|
43
45
|
features: {
|
|
44
46
|
type: string;
|
|
45
47
|
name: string;
|
|
46
48
|
}[];
|
|
47
|
-
period: number;
|
|
48
|
-
discount: number;
|
|
49
49
|
carryoverPercent: number;
|
|
50
50
|
}, {
|
|
51
|
-
price: number;
|
|
52
|
-
interval: string;
|
|
53
51
|
uuid: string;
|
|
54
52
|
siteId: string;
|
|
55
53
|
name: string;
|
|
56
54
|
description: string;
|
|
55
|
+
price: number;
|
|
56
|
+
interval: string;
|
|
57
|
+
period: number;
|
|
57
58
|
tokens: number;
|
|
59
|
+
discount: number;
|
|
58
60
|
features: {
|
|
59
61
|
type: string;
|
|
60
62
|
name: string;
|
|
61
63
|
}[];
|
|
62
|
-
period: number;
|
|
63
|
-
discount: number;
|
|
64
64
|
carryoverPercent: number;
|
|
65
65
|
}>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
active: boolean;
|
|
68
67
|
uuid: string;
|
|
69
|
-
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
70
68
|
initTokenBalance: number;
|
|
71
69
|
tokenBalance: number;
|
|
72
|
-
createdAt: string | Date;
|
|
73
70
|
carriedOverTokenBalance: number;
|
|
71
|
+
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
72
|
+
active: boolean;
|
|
74
73
|
endDate: string | Date | null;
|
|
74
|
+
createdAt: string | Date;
|
|
75
75
|
subscription: {
|
|
76
|
-
price: number;
|
|
77
|
-
interval: string;
|
|
78
76
|
uuid: string;
|
|
79
77
|
siteId: string;
|
|
80
78
|
name: string;
|
|
81
79
|
description: string;
|
|
80
|
+
price: number;
|
|
81
|
+
interval: string;
|
|
82
|
+
period: number;
|
|
82
83
|
tokens: number;
|
|
84
|
+
discount: number;
|
|
83
85
|
features: {
|
|
84
86
|
type: string;
|
|
85
87
|
name: string;
|
|
86
88
|
}[];
|
|
87
|
-
period: number;
|
|
88
|
-
discount: number;
|
|
89
89
|
carryoverPercent: number;
|
|
90
90
|
};
|
|
91
91
|
}, {
|
|
92
|
-
active: boolean;
|
|
93
92
|
uuid: string;
|
|
94
|
-
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
95
93
|
initTokenBalance: number;
|
|
96
94
|
tokenBalance: number;
|
|
97
|
-
createdAt: string | Date;
|
|
98
95
|
carriedOverTokenBalance: number;
|
|
96
|
+
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
97
|
+
active: boolean;
|
|
99
98
|
endDate: string | Date | null;
|
|
99
|
+
createdAt: string | Date;
|
|
100
100
|
subscription: {
|
|
101
|
-
price: number;
|
|
102
|
-
interval: string;
|
|
103
101
|
uuid: string;
|
|
104
102
|
siteId: string;
|
|
105
103
|
name: string;
|
|
106
104
|
description: string;
|
|
105
|
+
price: number;
|
|
106
|
+
interval: string;
|
|
107
|
+
period: number;
|
|
107
108
|
tokens: number;
|
|
109
|
+
discount: number;
|
|
108
110
|
features: {
|
|
109
111
|
type: string;
|
|
110
112
|
name: string;
|
|
111
113
|
}[];
|
|
112
|
-
period: number;
|
|
113
|
-
discount: number;
|
|
114
114
|
carryoverPercent: number;
|
|
115
115
|
};
|
|
116
116
|
}>, "many">;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
118
|
data: {
|
|
119
|
-
active: boolean;
|
|
120
119
|
uuid: string;
|
|
121
|
-
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
122
120
|
initTokenBalance: number;
|
|
123
121
|
tokenBalance: number;
|
|
124
|
-
createdAt: string | Date;
|
|
125
122
|
carriedOverTokenBalance: number;
|
|
123
|
+
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
124
|
+
active: boolean;
|
|
126
125
|
endDate: string | Date | null;
|
|
126
|
+
createdAt: string | Date;
|
|
127
127
|
subscription: {
|
|
128
|
-
price: number;
|
|
129
|
-
interval: string;
|
|
130
128
|
uuid: string;
|
|
131
129
|
siteId: string;
|
|
132
130
|
name: string;
|
|
133
131
|
description: string;
|
|
132
|
+
price: number;
|
|
133
|
+
interval: string;
|
|
134
|
+
period: number;
|
|
134
135
|
tokens: number;
|
|
136
|
+
discount: number;
|
|
135
137
|
features: {
|
|
136
138
|
type: string;
|
|
137
139
|
name: string;
|
|
138
140
|
}[];
|
|
139
|
-
period: number;
|
|
140
|
-
discount: number;
|
|
141
141
|
carryoverPercent: number;
|
|
142
142
|
};
|
|
143
143
|
}[];
|
|
144
144
|
}, {
|
|
145
145
|
data: {
|
|
146
|
-
active: boolean;
|
|
147
146
|
uuid: string;
|
|
148
|
-
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
149
147
|
initTokenBalance: number;
|
|
150
148
|
tokenBalance: number;
|
|
151
|
-
createdAt: string | Date;
|
|
152
149
|
carriedOverTokenBalance: number;
|
|
150
|
+
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
151
|
+
active: boolean;
|
|
153
152
|
endDate: string | Date | null;
|
|
153
|
+
createdAt: string | Date;
|
|
154
154
|
subscription: {
|
|
155
|
-
price: number;
|
|
156
|
-
interval: string;
|
|
157
155
|
uuid: string;
|
|
158
156
|
siteId: string;
|
|
159
157
|
name: string;
|
|
160
158
|
description: string;
|
|
159
|
+
price: number;
|
|
160
|
+
interval: string;
|
|
161
|
+
period: number;
|
|
161
162
|
tokens: number;
|
|
163
|
+
discount: number;
|
|
162
164
|
features: {
|
|
163
165
|
type: string;
|
|
164
166
|
name: string;
|
|
165
167
|
}[];
|
|
166
|
-
period: number;
|
|
167
|
-
discount: number;
|
|
168
168
|
carryoverPercent: number;
|
|
169
169
|
};
|
|
170
170
|
}[];
|
|
@@ -5,16 +5,19 @@ export declare namespace GetUserBalanceCommand {
|
|
|
5
5
|
subscriptionTokens: z.ZodNumber;
|
|
6
6
|
productTokens: z.ZodNumber;
|
|
7
7
|
bonusTokens: z.ZodNumber;
|
|
8
|
+
reservedTokens: z.ZodNumber;
|
|
8
9
|
totalTokens: z.ZodNumber;
|
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
|
10
11
|
subscriptionTokens: number;
|
|
11
12
|
productTokens: number;
|
|
12
13
|
bonusTokens: number;
|
|
14
|
+
reservedTokens: number;
|
|
13
15
|
totalTokens: number;
|
|
14
16
|
}, {
|
|
15
17
|
subscriptionTokens: number;
|
|
16
18
|
productTokens: number;
|
|
17
19
|
bonusTokens: number;
|
|
20
|
+
reservedTokens: number;
|
|
18
21
|
totalTokens: number;
|
|
19
22
|
}>;
|
|
20
23
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -22,6 +25,7 @@ export declare namespace GetUserBalanceCommand {
|
|
|
22
25
|
subscriptionTokens: number;
|
|
23
26
|
productTokens: number;
|
|
24
27
|
bonusTokens: number;
|
|
28
|
+
reservedTokens: number;
|
|
25
29
|
totalTokens: number;
|
|
26
30
|
};
|
|
27
31
|
}, {
|
|
@@ -29,6 +33,7 @@ export declare namespace GetUserBalanceCommand {
|
|
|
29
33
|
subscriptionTokens: number;
|
|
30
34
|
productTokens: number;
|
|
31
35
|
bonusTokens: number;
|
|
36
|
+
reservedTokens: number;
|
|
32
37
|
totalTokens: number;
|
|
33
38
|
};
|
|
34
39
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-balance.command.d.ts","sourceRoot":"","sources":["../../../queries/user/get-user-balance.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-user-balance.command.d.ts","sourceRoot":"","sources":["../../../queries/user/get-user-balance.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -9,6 +9,7 @@ var GetUserBalanceCommand;
|
|
|
9
9
|
subscriptionTokens: zod_1.z.number().int().min(0),
|
|
10
10
|
productTokens: zod_1.z.number().int().min(0),
|
|
11
11
|
bonusTokens: zod_1.z.number().int().min(0),
|
|
12
|
+
reservedTokens: zod_1.z.number().int().min(0),
|
|
12
13
|
totalTokens: zod_1.z.number().int().min(0),
|
|
13
14
|
}),
|
|
14
15
|
});
|
|
@@ -18,34 +18,34 @@ export declare namespace GetUserPaymentsCommand {
|
|
|
18
18
|
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
uuid: string;
|
|
21
|
-
description: string;
|
|
22
|
-
userId: string;
|
|
23
|
-
productId: string | null;
|
|
24
|
-
updatedAt: string | Date;
|
|
25
|
-
subscriptionId: string | null;
|
|
26
|
-
currency: string;
|
|
27
|
-
sum: number;
|
|
28
21
|
orderType: ORDER_TYPE;
|
|
29
22
|
orderStatus: ORDER_STATUS;
|
|
23
|
+
description: string;
|
|
24
|
+
productId: string | null;
|
|
30
25
|
productName: string | null;
|
|
26
|
+
subscriptionId: string | null;
|
|
31
27
|
subscriptionName: string | null;
|
|
32
28
|
paymentStatus: PAYMENT_STATUS;
|
|
29
|
+
userId: string;
|
|
33
30
|
userEmail: string;
|
|
31
|
+
sum: number;
|
|
32
|
+
currency: string;
|
|
33
|
+
updatedAt: string | Date;
|
|
34
34
|
}, {
|
|
35
35
|
uuid: string;
|
|
36
|
-
description: string;
|
|
37
|
-
userId: string;
|
|
38
|
-
productId: string | null;
|
|
39
|
-
updatedAt: string | Date;
|
|
40
|
-
subscriptionId: string | null;
|
|
41
|
-
currency: string;
|
|
42
|
-
sum: number;
|
|
43
36
|
orderType: ORDER_TYPE;
|
|
44
37
|
orderStatus: ORDER_STATUS;
|
|
38
|
+
description: string;
|
|
39
|
+
productId: string | null;
|
|
45
40
|
productName: string | null;
|
|
41
|
+
subscriptionId: string | null;
|
|
46
42
|
subscriptionName: string | null;
|
|
47
43
|
paymentStatus: PAYMENT_STATUS;
|
|
44
|
+
userId: string;
|
|
48
45
|
userEmail: string;
|
|
46
|
+
sum: number;
|
|
47
|
+
currency: string;
|
|
48
|
+
updatedAt: string | Date;
|
|
49
49
|
}>;
|
|
50
50
|
const ResponseSchema: z.ZodObject<{
|
|
51
51
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -65,68 +65,68 @@ export declare namespace GetUserPaymentsCommand {
|
|
|
65
65
|
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
67
|
uuid: string;
|
|
68
|
-
description: string;
|
|
69
|
-
userId: string;
|
|
70
|
-
productId: string | null;
|
|
71
|
-
updatedAt: string | Date;
|
|
72
|
-
subscriptionId: string | null;
|
|
73
|
-
currency: string;
|
|
74
|
-
sum: number;
|
|
75
68
|
orderType: ORDER_TYPE;
|
|
76
69
|
orderStatus: ORDER_STATUS;
|
|
70
|
+
description: string;
|
|
71
|
+
productId: string | null;
|
|
77
72
|
productName: string | null;
|
|
73
|
+
subscriptionId: string | null;
|
|
78
74
|
subscriptionName: string | null;
|
|
79
75
|
paymentStatus: PAYMENT_STATUS;
|
|
76
|
+
userId: string;
|
|
80
77
|
userEmail: string;
|
|
78
|
+
sum: number;
|
|
79
|
+
currency: string;
|
|
80
|
+
updatedAt: string | Date;
|
|
81
81
|
}, {
|
|
82
82
|
uuid: string;
|
|
83
|
-
description: string;
|
|
84
|
-
userId: string;
|
|
85
|
-
productId: string | null;
|
|
86
|
-
updatedAt: string | Date;
|
|
87
|
-
subscriptionId: string | null;
|
|
88
|
-
currency: string;
|
|
89
|
-
sum: number;
|
|
90
83
|
orderType: ORDER_TYPE;
|
|
91
84
|
orderStatus: ORDER_STATUS;
|
|
85
|
+
description: string;
|
|
86
|
+
productId: string | null;
|
|
92
87
|
productName: string | null;
|
|
88
|
+
subscriptionId: string | null;
|
|
93
89
|
subscriptionName: string | null;
|
|
94
90
|
paymentStatus: PAYMENT_STATUS;
|
|
91
|
+
userId: string;
|
|
95
92
|
userEmail: string;
|
|
93
|
+
sum: number;
|
|
94
|
+
currency: string;
|
|
95
|
+
updatedAt: string | Date;
|
|
96
96
|
}>, "many">;
|
|
97
97
|
}, "strip", z.ZodTypeAny, {
|
|
98
98
|
data: {
|
|
99
99
|
uuid: string;
|
|
100
|
-
description: string;
|
|
101
|
-
userId: string;
|
|
102
|
-
productId: string | null;
|
|
103
|
-
updatedAt: string | Date;
|
|
104
|
-
subscriptionId: string | null;
|
|
105
|
-
currency: string;
|
|
106
|
-
sum: number;
|
|
107
100
|
orderType: ORDER_TYPE;
|
|
108
101
|
orderStatus: ORDER_STATUS;
|
|
102
|
+
description: string;
|
|
103
|
+
productId: string | null;
|
|
109
104
|
productName: string | null;
|
|
105
|
+
subscriptionId: string | null;
|
|
110
106
|
subscriptionName: string | null;
|
|
111
107
|
paymentStatus: PAYMENT_STATUS;
|
|
108
|
+
userId: string;
|
|
112
109
|
userEmail: string;
|
|
110
|
+
sum: number;
|
|
111
|
+
currency: string;
|
|
112
|
+
updatedAt: string | Date;
|
|
113
113
|
}[];
|
|
114
114
|
}, {
|
|
115
115
|
data: {
|
|
116
116
|
uuid: string;
|
|
117
|
-
description: string;
|
|
118
|
-
userId: string;
|
|
119
|
-
productId: string | null;
|
|
120
|
-
updatedAt: string | Date;
|
|
121
|
-
subscriptionId: string | null;
|
|
122
|
-
currency: string;
|
|
123
|
-
sum: number;
|
|
124
117
|
orderType: ORDER_TYPE;
|
|
125
118
|
orderStatus: ORDER_STATUS;
|
|
119
|
+
description: string;
|
|
120
|
+
productId: string | null;
|
|
126
121
|
productName: string | null;
|
|
122
|
+
subscriptionId: string | null;
|
|
127
123
|
subscriptionName: string | null;
|
|
128
124
|
paymentStatus: PAYMENT_STATUS;
|
|
125
|
+
userId: string;
|
|
129
126
|
userEmail: string;
|
|
127
|
+
sum: number;
|
|
128
|
+
currency: string;
|
|
129
|
+
updatedAt: string | Date;
|
|
130
130
|
}[];
|
|
131
131
|
}>;
|
|
132
132
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -10,36 +10,36 @@ export declare namespace GetUserCommand {
|
|
|
10
10
|
siteId: z.ZodString;
|
|
11
11
|
tokenBonusBalance: z.ZodNumber;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
email: string;
|
|
14
13
|
uuid: string;
|
|
15
|
-
|
|
14
|
+
email: string;
|
|
16
15
|
role: USER_ROLE;
|
|
17
16
|
status: USER_STATUS;
|
|
17
|
+
siteId: string;
|
|
18
18
|
tokenBonusBalance: number;
|
|
19
19
|
}, {
|
|
20
|
-
email: string;
|
|
21
20
|
uuid: string;
|
|
22
|
-
|
|
21
|
+
email: string;
|
|
23
22
|
role: USER_ROLE;
|
|
24
23
|
status: USER_STATUS;
|
|
24
|
+
siteId: string;
|
|
25
25
|
tokenBonusBalance: number;
|
|
26
26
|
}>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
28
|
data: {
|
|
29
|
-
email: string;
|
|
30
29
|
uuid: string;
|
|
31
|
-
|
|
30
|
+
email: string;
|
|
32
31
|
role: USER_ROLE;
|
|
33
32
|
status: USER_STATUS;
|
|
33
|
+
siteId: string;
|
|
34
34
|
tokenBonusBalance: number;
|
|
35
35
|
};
|
|
36
36
|
}, {
|
|
37
37
|
data: {
|
|
38
|
-
email: string;
|
|
39
38
|
uuid: string;
|
|
40
|
-
|
|
39
|
+
email: string;
|
|
41
40
|
role: USER_ROLE;
|
|
42
41
|
status: USER_STATUS;
|
|
42
|
+
siteId: string;
|
|
43
43
|
tokenBonusBalance: number;
|
|
44
44
|
};
|
|
45
45
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const EmailEndpoint = 'https://api.rusender.ru/v1/
|
|
1
|
+
export const EmailEndpoint = 'https://api.rusender.ru/api/v1/external-mails/send';
|
|
@@ -21,6 +21,11 @@ export const ERRORS = {
|
|
|
21
21
|
code: 'TENANT_003',
|
|
22
22
|
httpCode: 500,
|
|
23
23
|
},
|
|
24
|
+
TOOL_NOT_AVAILABLE_FOR_SITE: {
|
|
25
|
+
message: 'Инструмент недоступен для сайта',
|
|
26
|
+
code: 'TOOL_001',
|
|
27
|
+
httpCode: 403,
|
|
28
|
+
},
|
|
24
29
|
|
|
25
30
|
// AUTH
|
|
26
31
|
AUTH_REGISTER_CONFLICT: {
|
|
@@ -536,6 +541,11 @@ export const ERRORS = {
|
|
|
536
541
|
code: 'IMAGE_EDITOR_009',
|
|
537
542
|
httpCode: 403,
|
|
538
543
|
},
|
|
544
|
+
IMAGE_EDITOR_IMAGE_REQUIRED: {
|
|
545
|
+
message: 'Для редактирования изображения необходимо прикрепить хотя бы одно изображение',
|
|
546
|
+
code: 'IMAGE_EDITOR_015',
|
|
547
|
+
httpCode: 400,
|
|
548
|
+
},
|
|
539
549
|
IMAGE_EDITOR_NOT_ENOUGH_TOKENS: {
|
|
540
550
|
message: 'Недостаточно токенов',
|
|
541
551
|
code: 'IMAGE_EDITOR_003',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
export const ImageEditorJobRequestParamsSchema = z.object({
|
|
4
|
-
imageUrls: z.array(z.string().uuid()).
|
|
4
|
+
imageUrls: z.array(z.string().uuid()).min(1),
|
|
5
5
|
systemPromptId: z.string().uuid().optional(),
|
|
6
6
|
aspectRatio: z.string().optional(),
|
|
7
7
|
});
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ export namespace GetUnregisteredUserBalanceCommand {
|
|
|
6
6
|
subscriptionTokens: z.number().int().min(0),
|
|
7
7
|
productTokens: z.number().int().min(0),
|
|
8
8
|
bonusTokens: z.number().int().min(0),
|
|
9
|
+
reservedTokens: z.number().int().min(0),
|
|
9
10
|
totalTokens: z.number().int().min(0),
|
|
10
11
|
}),
|
|
11
12
|
});
|