@purpleschool/gptbot 0.19.16 → 0.19.17-stage-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/build/api/controllers/http/payment.d.ts +1 -0
  2. package/build/api/controllers/http/payment.js +1 -0
  3. package/build/api/controllers/http/subscription.d.ts +1 -0
  4. package/build/api/controllers/http/subscription.js +1 -0
  5. package/build/api/partner-code-routes.d.ts +31 -0
  6. package/build/api/partner-code-routes.js +33 -1
  7. package/build/api/routes.d.ts +6 -0
  8. package/build/api/routes.js +7 -0
  9. package/build/commands/ai-studio/canvas/save-canvas.command.d.ts +1 -1
  10. package/build/commands/auth/register-user.command.d.ts +1 -0
  11. package/build/commands/auth/register-user.command.js +2 -0
  12. package/build/commands/auth/vk-login.command.d.ts +1 -0
  13. package/build/commands/auth/vk-login.command.js +2 -0
  14. package/build/commands/auth/yandex-login.command.d.ts +1 -0
  15. package/build/commands/auth/yandex-login.command.js +2 -0
  16. package/build/commands/chat/find-chats.command.d.ts +3 -3
  17. package/build/commands/community/get-all-community-posts-by-criteria.command.d.ts +1 -1
  18. package/build/commands/community/get-my-community-posts-by-criteria.command.d.ts +1 -1
  19. package/build/commands/community/get-my-favorite-community-posts.command.d.ts +1 -1
  20. package/build/commands/folder/find-folder-by-uuid-with-chats.command.d.ts +1 -1
  21. package/build/commands/folder/find-folders-by-user.command.d.ts +1 -1
  22. package/build/commands/model-page/base/find-model-pages-admin.command.d.ts +2 -2
  23. package/build/commands/model-page/common.schemas.d.ts +1 -1
  24. package/build/commands/model-page/public/find-model-page-hub.command.d.ts +3 -3
  25. package/build/commands/partner-codes/administration.d.ts +650 -0
  26. package/build/commands/partner-codes/administration.js +138 -0
  27. package/build/commands/partner-codes/index.d.ts +50 -3
  28. package/build/commands/partner-codes/index.js +28 -3
  29. package/build/commands/payment/find-payments-by-criteria.command.d.ts +1 -1
  30. package/build/commands/payment/get-purchase-history.command.d.ts +90 -0
  31. package/build/commands/payment/get-purchase-history.command.js +22 -0
  32. package/build/commands/payment/index.d.ts +1 -0
  33. package/build/commands/payment/index.js +1 -0
  34. package/build/commands/product/buy-product.command.d.ts +1 -1
  35. package/build/commands/subscription/buy-subscription.command.d.ts +1 -1
  36. package/build/commands/subscription/downgrade-subscription.command.d.ts +28 -5
  37. package/build/commands/subscription/downgrade-subscription.command.js +32 -9
  38. package/build/commands/subscription/get-subscriptions-summary.command.d.ts +32 -0
  39. package/build/commands/subscription/get-subscriptions-summary.command.js +2 -0
  40. package/build/commands/subscription/index.d.ts +1 -0
  41. package/build/commands/subscription/index.js +1 -0
  42. package/build/commands/subscription/payment-incident-diagnostics.d.ts +445 -0
  43. package/build/commands/subscription/payment-incident-diagnostics.js +173 -0
  44. package/build/commands/telegram-profile/auth-with-telegram-web-app.command.d.ts +1 -1
  45. package/build/commands/tools/diagrams/find-diagrams-jobs.command.d.ts +1 -1
  46. package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.d.ts +1 -1
  47. package/build/commands/tools/image-editor/find-image-editor-jobs.command.d.ts +1 -1
  48. package/build/commands/tools/image-generation/find-image-generation-jobs.command.d.ts +1 -1
  49. package/build/commands/tools/image-recognition/find-image-recognition-jobs.command.d.ts +1 -1
  50. package/build/commands/tools/interior-design/find-interior-design-generation-groups.command.d.ts +1 -1
  51. package/build/commands/tools/interior-design/find-interior-design-jobs.command.d.ts +1 -1
  52. package/build/commands/tools/marketplace-card/find-marketplace-card-jobs.command.d.ts +1 -1
  53. package/build/commands/tools/motion-control/index.d.ts +1 -1
  54. package/build/commands/tools/music/find-music-jobs.command.d.ts +1 -1
  55. package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.d.ts +1 -1
  56. package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +1 -1
  57. package/build/commands/tools/presentation/find-presentations.command.d.ts +1 -1
  58. package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.d.ts +1 -1
  59. package/build/commands/tools/sound-generation/find-sound-generation-jobs.command.d.ts +1 -1
  60. package/build/commands/tools/spell-corrector/find-spell-corrector-jobs.command.d.ts +1 -1
  61. package/build/commands/tools/stt/find-stt-jobs.command.d.ts +1 -1
  62. package/build/commands/tools/tool-workspace/find-tool-workspaces.command.d.ts +1 -1
  63. package/build/commands/tools/tts/find-tts-jobs.command.d.ts +1 -1
  64. package/build/commands/tools/video/find-video-jobs.command.d.ts +1 -1
  65. package/build/commands/tools/video-editor/find-video-editor-jobs.command.d.ts +1 -1
  66. package/build/commands/tools/writer/find-writer-documents.command.d.ts +1 -1
  67. package/build/commands/user/find-users-by-criteria.command.d.ts +1 -1
  68. package/build/commands/user/get-me.command.d.ts +3 -0
  69. package/build/commands/user/get-me.command.js +1 -0
  70. package/build/helpers/query-boolean.schema.d.ts +1 -1
  71. package/build/models/index.d.ts +1 -0
  72. package/build/models/index.js +1 -0
  73. package/build/models/partner-codes/index.d.ts +4 -0
  74. package/build/models/partner-codes/index.js +4 -0
  75. package/build/models/partner-codes/partner-administration.schema.d.ts +183 -0
  76. package/build/models/partner-codes/partner-administration.schema.js +72 -0
  77. package/build/models/partner-codes/partner-cabinet-context.schema.d.ts +24 -0
  78. package/build/models/partner-codes/partner-cabinet-context.schema.js +8 -0
  79. package/build/models/partner-codes/partner-cabinet.schema.d.ts +362 -0
  80. package/build/models/partner-codes/partner-cabinet.schema.js +84 -0
  81. package/build/models/partner-codes/partner-codes.schema.d.ts +78 -2
  82. package/build/models/partner-codes/partner-codes.schema.js +73 -5
  83. package/build/models/partner-codes/partner-leak-create.schema.d.ts +6 -0
  84. package/build/models/partner-codes/partner-leak-create.schema.js +8 -0
  85. package/build/models/partner-registration-context.schema.d.ts +3 -0
  86. package/build/models/partner-registration-context.schema.js +6 -0
  87. package/build/models/purchase-history.schema.d.ts +112 -0
  88. package/build/models/purchase-history.schema.js +38 -0
  89. package/build/models/tools/diagrams/diagrams-job.schema.d.ts +2 -2
  90. package/package.json +3 -3
@@ -0,0 +1,650 @@
1
+ import { z } from 'zod';
2
+ export declare namespace ListAdminPartnerCompaniesCommand {
3
+ const RequestSchema: z.ZodObject<{}, z.core.$strict>;
4
+ const ResponseSchema: z.ZodObject<{
5
+ data: z.ZodArray<z.ZodObject<{
6
+ uuid: z.ZodUUID;
7
+ name: z.ZodString;
8
+ code: z.ZodString;
9
+ status: z.ZodEnum<{
10
+ active: "active";
11
+ disabled: "disabled";
12
+ }>;
13
+ createdAt: z.ZodISODateTime;
14
+ }, z.core.$strict>>;
15
+ }, z.core.$strict>;
16
+ type Request = z.infer<typeof RequestSchema>;
17
+ type Response = z.infer<typeof ResponseSchema>;
18
+ }
19
+ export declare namespace ListAdminPartnerCatalogCommand {
20
+ const RequestSchema: z.ZodObject<{}, z.core.$strict>;
21
+ const ResponseSchema: z.ZodObject<{
22
+ data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
23
+ kind: z.ZodLiteral<"subscription">;
24
+ title: z.ZodString;
25
+ subscriptionId: z.ZodUUID;
26
+ durationMonths: z.ZodNumber;
27
+ mainSubscriptionId: z.ZodNullable<z.ZodUUID>;
28
+ }, z.core.$strict>, z.ZodObject<{
29
+ kind: z.ZodLiteral<"stars">;
30
+ title: z.ZodString;
31
+ productId: z.ZodUUID;
32
+ starsAmount: z.ZodString;
33
+ }, z.core.$strict>], "kind">>;
34
+ }, z.core.$strict>;
35
+ type Request = z.infer<typeof RequestSchema>;
36
+ type Response = z.infer<typeof ResponseSchema>;
37
+ }
38
+ export declare namespace ListAdminPartnerMembershipsCommand {
39
+ const RequestSchema: z.ZodObject<{}, z.core.$strict>;
40
+ const ResponseSchema: z.ZodObject<{
41
+ data: z.ZodArray<z.ZodObject<{
42
+ uuid: z.ZodUUID;
43
+ partnerId: z.ZodUUID;
44
+ userId: z.ZodUUID;
45
+ role: z.ZodEnum<{
46
+ manager: "manager";
47
+ owner: "owner";
48
+ }>;
49
+ createdAt: z.ZodISODateTime;
50
+ email: z.ZodNullable<z.ZodString>;
51
+ }, z.core.$strict>>;
52
+ }, z.core.$strict>;
53
+ type Request = z.infer<typeof RequestSchema>;
54
+ type Response = z.infer<typeof ResponseSchema>;
55
+ }
56
+ export declare namespace ListAdminPartnerOffersCommand {
57
+ const RequestSchema: z.ZodObject<{}, z.core.$strict>;
58
+ const ResponseSchema: z.ZodObject<{
59
+ data: z.ZodArray<z.ZodObject<{
60
+ uuid: z.ZodUUID;
61
+ partnerId: z.ZodUUID;
62
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
63
+ kind: z.ZodLiteral<"subscription">;
64
+ title: z.ZodString;
65
+ subscriptionId: z.ZodUUID;
66
+ durationMonths: z.ZodNumber;
67
+ }, z.core.$strict>, z.ZodObject<{
68
+ kind: z.ZodLiteral<"stars">;
69
+ title: z.ZodString;
70
+ productId: z.ZodUUID;
71
+ starsAmount: z.ZodString;
72
+ }, z.core.$strict>], "kind">;
73
+ retailPrice: z.ZodString;
74
+ commissionType: z.ZodEnum<{
75
+ fixed: "fixed";
76
+ percent: "percent";
77
+ }>;
78
+ commissionValue: z.ZodString;
79
+ maxOutstanding: z.ZodNumber;
80
+ codeTtlDays: z.ZodNumber;
81
+ active: z.ZodBoolean;
82
+ activatedCount: z.ZodNumber;
83
+ outstanding: z.ZodNumber;
84
+ availableQuantity: z.ZodNumber;
85
+ }, z.core.$strict>>;
86
+ }, z.core.$strict>;
87
+ type Request = z.infer<typeof RequestSchema>;
88
+ type Response = z.infer<typeof ResponseSchema>;
89
+ }
90
+ export declare namespace ListAdminPartnerBatchesCommand {
91
+ const RequestSchema: z.ZodObject<{
92
+ page: z.ZodDefault<z.ZodNumber>;
93
+ pageSize: z.ZodDefault<z.ZodNumber>;
94
+ offerId: z.ZodOptional<z.ZodUUID>;
95
+ status: z.ZodOptional<z.ZodEnum<{
96
+ active: "active";
97
+ expired: "expired";
98
+ revoked: "revoked";
99
+ }>>;
100
+ }, z.core.$strict>;
101
+ const ResponseSchema: z.ZodObject<{
102
+ data: z.ZodObject<{
103
+ page: z.ZodDefault<z.ZodNumber>;
104
+ pageSize: z.ZodDefault<z.ZodNumber>;
105
+ count: z.ZodNumber;
106
+ items: z.ZodArray<z.ZodObject<{
107
+ uuid: z.ZodUUID;
108
+ partnerId: z.ZodUUID;
109
+ offerId: z.ZodUUID;
110
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
111
+ kind: z.ZodLiteral<"subscription">;
112
+ title: z.ZodString;
113
+ subscriptionId: z.ZodUUID;
114
+ durationMonths: z.ZodNumber;
115
+ }, z.core.$strict>, z.ZodObject<{
116
+ kind: z.ZodLiteral<"stars">;
117
+ title: z.ZodString;
118
+ productId: z.ZodUUID;
119
+ starsAmount: z.ZodString;
120
+ }, z.core.$strict>], "kind">;
121
+ quantity: z.ZodNumber;
122
+ status: z.ZodEnum<{
123
+ active: "active";
124
+ expired: "expired";
125
+ revoked: "revoked";
126
+ }>;
127
+ expiresAt: z.ZodISODateTime;
128
+ createdAt: z.ZodISODateTime;
129
+ createdByUserId: z.ZodNullable<z.ZodUUID>;
130
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
131
+ name: z.ZodNullable<z.ZodString>;
132
+ }, z.core.$strict>>>;
133
+ exportCount: z.ZodNumber;
134
+ lastExportedAt: z.ZodNullable<z.ZodISODateTime>;
135
+ activatedCount: z.ZodNumber;
136
+ remainingCount: z.ZodNumber;
137
+ }, z.core.$strict>>;
138
+ }, z.core.$strict>;
139
+ }, z.core.$strict>;
140
+ type Request = z.infer<typeof RequestSchema>;
141
+ type Response = z.infer<typeof ResponseSchema>;
142
+ }
143
+ export declare namespace GetAdminPartnerBatchCommand {
144
+ const RequestSchema: z.ZodObject<{}, z.core.$strict>;
145
+ const ResponseSchema: z.ZodObject<{
146
+ data: z.ZodObject<{
147
+ uuid: z.ZodUUID;
148
+ partnerId: z.ZodUUID;
149
+ offerId: z.ZodUUID;
150
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
151
+ kind: z.ZodLiteral<"subscription">;
152
+ title: z.ZodString;
153
+ subscriptionId: z.ZodUUID;
154
+ durationMonths: z.ZodNumber;
155
+ }, z.core.$strict>, z.ZodObject<{
156
+ kind: z.ZodLiteral<"stars">;
157
+ title: z.ZodString;
158
+ productId: z.ZodUUID;
159
+ starsAmount: z.ZodString;
160
+ }, z.core.$strict>], "kind">;
161
+ quantity: z.ZodNumber;
162
+ status: z.ZodEnum<{
163
+ active: "active";
164
+ expired: "expired";
165
+ revoked: "revoked";
166
+ }>;
167
+ expiresAt: z.ZodISODateTime;
168
+ createdAt: z.ZodISODateTime;
169
+ createdByUserId: z.ZodNullable<z.ZodUUID>;
170
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
171
+ name: z.ZodNullable<z.ZodString>;
172
+ }, z.core.$strict>>>;
173
+ exportCount: z.ZodNumber;
174
+ lastExportedAt: z.ZodNullable<z.ZodISODateTime>;
175
+ activatedCount: z.ZodNumber;
176
+ remainingCount: z.ZodNumber;
177
+ }, z.core.$strict>;
178
+ }, z.core.$strict>;
179
+ type Request = z.infer<typeof RequestSchema>;
180
+ type Response = z.infer<typeof ResponseSchema>;
181
+ }
182
+ export declare namespace ListAdminPartnerCodesCommand {
183
+ const RequestSchema: z.ZodObject<{
184
+ page: z.ZodDefault<z.ZodNumber>;
185
+ pageSize: z.ZodDefault<z.ZodNumber>;
186
+ status: z.ZodOptional<z.ZodEnum<{
187
+ activated: "activated";
188
+ expired: "expired";
189
+ issued: "issued";
190
+ revoked: "revoked";
191
+ }>>;
192
+ serial: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$strict>;
194
+ const ResponseSchema: z.ZodObject<{
195
+ data: z.ZodObject<{
196
+ page: z.ZodDefault<z.ZodNumber>;
197
+ pageSize: z.ZodDefault<z.ZodNumber>;
198
+ count: z.ZodNumber;
199
+ items: z.ZodArray<z.ZodObject<{
200
+ uuid: z.ZodUUID;
201
+ batchId: z.ZodUUID;
202
+ serial: z.ZodString;
203
+ status: z.ZodEnum<{
204
+ activated: "activated";
205
+ expired: "expired";
206
+ issued: "issued";
207
+ revoked: "revoked";
208
+ }>;
209
+ activatedAt: z.ZodNullable<z.ZodISODateTime>;
210
+ }, z.core.$strict>>;
211
+ }, z.core.$strict>;
212
+ }, z.core.$strict>;
213
+ type Request = z.infer<typeof RequestSchema>;
214
+ type Response = z.infer<typeof ResponseSchema>;
215
+ }
216
+ export declare namespace ListAdminPartnerExportsCommand {
217
+ const RequestSchema: z.ZodObject<{}, z.core.$strict>;
218
+ const ResponseSchema: z.ZodObject<{
219
+ data: z.ZodArray<z.ZodObject<{
220
+ uuid: z.ZodUUID;
221
+ batchId: z.ZodUUID;
222
+ userId: z.ZodNullable<z.ZodUUID>;
223
+ ip: z.ZodString;
224
+ createdAt: z.ZodISODateTime;
225
+ }, z.core.$strict>>;
226
+ }, z.core.$strict>;
227
+ type Request = z.infer<typeof RequestSchema>;
228
+ type Response = z.infer<typeof ResponseSchema>;
229
+ }
230
+ export declare namespace ListAdminPartnerLeaksCommand {
231
+ const RequestSchema: z.ZodObject<{
232
+ page: z.ZodDefault<z.ZodNumber>;
233
+ pageSize: z.ZodDefault<z.ZodNumber>;
234
+ partnerId: z.ZodUUID;
235
+ }, z.core.$strict>;
236
+ const ResponseSchema: z.ZodObject<{
237
+ data: z.ZodObject<{
238
+ page: z.ZodDefault<z.ZodNumber>;
239
+ pageSize: z.ZodDefault<z.ZodNumber>;
240
+ count: z.ZodNumber;
241
+ items: z.ZodArray<z.ZodObject<{
242
+ uuid: z.ZodUUID;
243
+ partnerId: z.ZodUUID;
244
+ batchId: z.ZodUUID;
245
+ comment: z.ZodString;
246
+ createdByUserId: z.ZodNullable<z.ZodUUID>;
247
+ createdAt: z.ZodISODateTime;
248
+ status: z.ZodEnum<{
249
+ open: "open";
250
+ resolved: "resolved";
251
+ }>;
252
+ }, z.core.$strict>>;
253
+ }, z.core.$strict>;
254
+ }, z.core.$strict>;
255
+ type Request = z.infer<typeof RequestSchema>;
256
+ type Response = z.infer<typeof ResponseSchema>;
257
+ }
258
+ export declare namespace CreatePartnerCompanyCommand {
259
+ const RequestSchema: z.ZodObject<{
260
+ name: z.ZodString;
261
+ email: z.ZodString;
262
+ }, z.core.$strict>;
263
+ const ResponseSchema: z.ZodObject<{
264
+ data: z.ZodObject<{
265
+ uuid: z.ZodUUID;
266
+ name: z.ZodString;
267
+ code: z.ZodString;
268
+ status: z.ZodEnum<{
269
+ active: "active";
270
+ disabled: "disabled";
271
+ }>;
272
+ createdAt: z.ZodISODateTime;
273
+ }, z.core.$strict>;
274
+ }, z.core.$strict>;
275
+ type Request = z.infer<typeof RequestSchema>;
276
+ type Response = z.infer<typeof ResponseSchema>;
277
+ }
278
+ export declare namespace UpdatePartnerCompanyCommand {
279
+ const RequestSchema: z.ZodObject<{
280
+ name: z.ZodString;
281
+ }, z.core.$strict>;
282
+ const ResponseSchema: z.ZodObject<{
283
+ data: z.ZodObject<{
284
+ uuid: z.ZodUUID;
285
+ name: z.ZodString;
286
+ code: z.ZodString;
287
+ status: z.ZodEnum<{
288
+ active: "active";
289
+ disabled: "disabled";
290
+ }>;
291
+ createdAt: z.ZodISODateTime;
292
+ }, z.core.$strict>;
293
+ }, z.core.$strict>;
294
+ type Request = z.infer<typeof RequestSchema>;
295
+ type Response = z.infer<typeof ResponseSchema>;
296
+ }
297
+ export declare namespace DisablePartnerCompanyCommand {
298
+ const RequestSchema: z.ZodObject<{}, z.core.$strict>;
299
+ const ResponseSchema: z.ZodObject<{
300
+ data: z.ZodObject<{
301
+ uuid: z.ZodUUID;
302
+ name: z.ZodString;
303
+ code: z.ZodString;
304
+ status: z.ZodEnum<{
305
+ active: "active";
306
+ disabled: "disabled";
307
+ }>;
308
+ createdAt: z.ZodISODateTime;
309
+ }, z.core.$strict>;
310
+ }, z.core.$strict>;
311
+ type Request = z.infer<typeof RequestSchema>;
312
+ type Response = z.infer<typeof ResponseSchema>;
313
+ }
314
+ export declare namespace EnablePartnerCompanyCommand {
315
+ const RequestSchema: z.ZodObject<{}, z.core.$strict>;
316
+ const ResponseSchema: z.ZodObject<{
317
+ data: z.ZodObject<{
318
+ uuid: z.ZodUUID;
319
+ name: z.ZodString;
320
+ code: z.ZodString;
321
+ status: z.ZodEnum<{
322
+ active: "active";
323
+ disabled: "disabled";
324
+ }>;
325
+ createdAt: z.ZodISODateTime;
326
+ }, z.core.$strict>;
327
+ }, z.core.$strict>;
328
+ type Request = z.infer<typeof RequestSchema>;
329
+ type Response = z.infer<typeof ResponseSchema>;
330
+ }
331
+ export declare namespace SetPartnerMembershipCommand {
332
+ const RequestSchema: z.ZodObject<{
333
+ email: z.ZodString;
334
+ role: z.ZodEnum<{
335
+ manager: "manager";
336
+ owner: "owner";
337
+ }>;
338
+ }, z.core.$strict>;
339
+ const ResponseSchema: z.ZodObject<{
340
+ data: z.ZodObject<{
341
+ uuid: z.ZodUUID;
342
+ partnerId: z.ZodUUID;
343
+ userId: z.ZodUUID;
344
+ role: z.ZodEnum<{
345
+ manager: "manager";
346
+ owner: "owner";
347
+ }>;
348
+ createdAt: z.ZodISODateTime;
349
+ email: z.ZodNullable<z.ZodString>;
350
+ }, z.core.$strict>;
351
+ }, z.core.$strict>;
352
+ type Request = z.infer<typeof RequestSchema>;
353
+ type Response = z.infer<typeof ResponseSchema>;
354
+ }
355
+ export declare namespace UpdatePartnerMembershipRoleCommand {
356
+ const RequestSchema: z.ZodObject<{
357
+ role: z.ZodEnum<{
358
+ manager: "manager";
359
+ owner: "owner";
360
+ }>;
361
+ }, z.core.$strict>;
362
+ const ResponseSchema: z.ZodObject<{
363
+ data: z.ZodObject<{
364
+ uuid: z.ZodUUID;
365
+ partnerId: z.ZodUUID;
366
+ userId: z.ZodUUID;
367
+ role: z.ZodEnum<{
368
+ manager: "manager";
369
+ owner: "owner";
370
+ }>;
371
+ createdAt: z.ZodISODateTime;
372
+ email: z.ZodNullable<z.ZodString>;
373
+ }, z.core.$strict>;
374
+ }, z.core.$strict>;
375
+ type Request = z.infer<typeof RequestSchema>;
376
+ type Response = z.infer<typeof ResponseSchema>;
377
+ }
378
+ export declare namespace RemovePartnerMembershipCommand {
379
+ const RequestSchema: z.ZodObject<{}, z.core.$strict>;
380
+ const ResponseSchema: z.ZodObject<{
381
+ data: z.ZodObject<{
382
+ removed: z.ZodBoolean;
383
+ }, z.core.$strict>;
384
+ }, z.core.$strict>;
385
+ type Request = z.infer<typeof RequestSchema>;
386
+ type Response = z.infer<typeof ResponseSchema>;
387
+ }
388
+ export declare namespace CreatePartnerOfferCommand {
389
+ const RequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
390
+ title: z.ZodString;
391
+ retailPrice: z.ZodString;
392
+ commissionType: z.ZodEnum<{
393
+ fixed: "fixed";
394
+ percent: "percent";
395
+ }>;
396
+ commissionValue: z.ZodString;
397
+ maxOutstanding: z.ZodNumber;
398
+ kind: z.ZodLiteral<"subscription">;
399
+ subscriptionId: z.ZodUUID;
400
+ productId: z.ZodDefault<z.ZodNull>;
401
+ durationMonths: z.ZodNumber;
402
+ starsAmount: z.ZodDefault<z.ZodNull>;
403
+ codeTtlDays: z.ZodDefault<z.ZodNumber>;
404
+ active: z.ZodDefault<z.ZodBoolean>;
405
+ }, z.core.$strict>, z.ZodObject<{
406
+ title: z.ZodString;
407
+ retailPrice: z.ZodString;
408
+ commissionType: z.ZodEnum<{
409
+ fixed: "fixed";
410
+ percent: "percent";
411
+ }>;
412
+ commissionValue: z.ZodString;
413
+ maxOutstanding: z.ZodNumber;
414
+ kind: z.ZodLiteral<"stars">;
415
+ productId: z.ZodUUID;
416
+ subscriptionId: z.ZodDefault<z.ZodNull>;
417
+ durationMonths: z.ZodDefault<z.ZodNull>;
418
+ starsAmount: z.ZodString;
419
+ codeTtlDays: z.ZodDefault<z.ZodNumber>;
420
+ active: z.ZodDefault<z.ZodBoolean>;
421
+ }, z.core.$strict>], "kind">;
422
+ const ResponseSchema: z.ZodObject<{
423
+ data: z.ZodObject<{
424
+ uuid: z.ZodUUID;
425
+ partnerId: z.ZodUUID;
426
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
427
+ kind: z.ZodLiteral<"subscription">;
428
+ title: z.ZodString;
429
+ subscriptionId: z.ZodUUID;
430
+ durationMonths: z.ZodNumber;
431
+ }, z.core.$strict>, z.ZodObject<{
432
+ kind: z.ZodLiteral<"stars">;
433
+ title: z.ZodString;
434
+ productId: z.ZodUUID;
435
+ starsAmount: z.ZodString;
436
+ }, z.core.$strict>], "kind">;
437
+ retailPrice: z.ZodString;
438
+ commissionType: z.ZodEnum<{
439
+ fixed: "fixed";
440
+ percent: "percent";
441
+ }>;
442
+ commissionValue: z.ZodString;
443
+ maxOutstanding: z.ZodNumber;
444
+ codeTtlDays: z.ZodNumber;
445
+ active: z.ZodBoolean;
446
+ activatedCount: z.ZodNumber;
447
+ outstanding: z.ZodNumber;
448
+ availableQuantity: z.ZodNumber;
449
+ }, z.core.$strict>;
450
+ }, z.core.$strict>;
451
+ type Request = z.infer<typeof RequestSchema>;
452
+ type Response = z.infer<typeof ResponseSchema>;
453
+ }
454
+ export declare namespace UpdatePartnerOfferCommand {
455
+ const RequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
456
+ title: z.ZodString;
457
+ retailPrice: z.ZodString;
458
+ commissionType: z.ZodEnum<{
459
+ fixed: "fixed";
460
+ percent: "percent";
461
+ }>;
462
+ commissionValue: z.ZodString;
463
+ maxOutstanding: z.ZodNumber;
464
+ codeTtlDays: z.ZodNumber;
465
+ active: z.ZodBoolean;
466
+ kind: z.ZodLiteral<"subscription">;
467
+ subscriptionId: z.ZodUUID;
468
+ productId: z.ZodDefault<z.ZodNull>;
469
+ durationMonths: z.ZodNumber;
470
+ starsAmount: z.ZodDefault<z.ZodNull>;
471
+ }, z.core.$strict>, z.ZodObject<{
472
+ title: z.ZodString;
473
+ retailPrice: z.ZodString;
474
+ commissionType: z.ZodEnum<{
475
+ fixed: "fixed";
476
+ percent: "percent";
477
+ }>;
478
+ commissionValue: z.ZodString;
479
+ maxOutstanding: z.ZodNumber;
480
+ codeTtlDays: z.ZodNumber;
481
+ active: z.ZodBoolean;
482
+ kind: z.ZodLiteral<"stars">;
483
+ productId: z.ZodUUID;
484
+ subscriptionId: z.ZodDefault<z.ZodNull>;
485
+ durationMonths: z.ZodDefault<z.ZodNull>;
486
+ starsAmount: z.ZodString;
487
+ }, z.core.$strict>], "kind">;
488
+ const ResponseSchema: z.ZodObject<{
489
+ data: z.ZodObject<{
490
+ uuid: z.ZodUUID;
491
+ partnerId: z.ZodUUID;
492
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
493
+ kind: z.ZodLiteral<"subscription">;
494
+ title: z.ZodString;
495
+ subscriptionId: z.ZodUUID;
496
+ durationMonths: z.ZodNumber;
497
+ }, z.core.$strict>, z.ZodObject<{
498
+ kind: z.ZodLiteral<"stars">;
499
+ title: z.ZodString;
500
+ productId: z.ZodUUID;
501
+ starsAmount: z.ZodString;
502
+ }, z.core.$strict>], "kind">;
503
+ retailPrice: z.ZodString;
504
+ commissionType: z.ZodEnum<{
505
+ fixed: "fixed";
506
+ percent: "percent";
507
+ }>;
508
+ commissionValue: z.ZodString;
509
+ maxOutstanding: z.ZodNumber;
510
+ codeTtlDays: z.ZodNumber;
511
+ active: z.ZodBoolean;
512
+ activatedCount: z.ZodNumber;
513
+ outstanding: z.ZodNumber;
514
+ availableQuantity: z.ZodNumber;
515
+ }, z.core.$strict>;
516
+ }, z.core.$strict>;
517
+ type Request = z.infer<typeof RequestSchema>;
518
+ type Response = z.infer<typeof ResponseSchema>;
519
+ }
520
+ export declare namespace SearchAdminPartnerCodeCommand {
521
+ const RequestSchema: z.ZodUnion<readonly [z.ZodObject<{
522
+ serial: z.ZodString;
523
+ }, z.core.$strict>, z.ZodObject<{
524
+ code: z.ZodString;
525
+ }, z.core.$strict>]>;
526
+ const ResponseSchema: z.ZodObject<{
527
+ data: z.ZodNullable<z.ZodObject<{
528
+ company: z.ZodObject<{
529
+ uuid: z.ZodUUID;
530
+ name: z.ZodString;
531
+ code: z.ZodString;
532
+ status: z.ZodEnum<{
533
+ active: "active";
534
+ disabled: "disabled";
535
+ }>;
536
+ createdAt: z.ZodISODateTime;
537
+ }, z.core.$strict>;
538
+ batch: z.ZodObject<{
539
+ uuid: z.ZodUUID;
540
+ partnerId: z.ZodUUID;
541
+ offerId: z.ZodUUID;
542
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
543
+ kind: z.ZodLiteral<"subscription">;
544
+ title: z.ZodString;
545
+ subscriptionId: z.ZodUUID;
546
+ durationMonths: z.ZodNumber;
547
+ }, z.core.$strict>, z.ZodObject<{
548
+ kind: z.ZodLiteral<"stars">;
549
+ title: z.ZodString;
550
+ productId: z.ZodUUID;
551
+ starsAmount: z.ZodString;
552
+ }, z.core.$strict>], "kind">;
553
+ quantity: z.ZodNumber;
554
+ status: z.ZodEnum<{
555
+ active: "active";
556
+ expired: "expired";
557
+ revoked: "revoked";
558
+ }>;
559
+ expiresAt: z.ZodISODateTime;
560
+ createdAt: z.ZodISODateTime;
561
+ createdByUserId: z.ZodNullable<z.ZodUUID>;
562
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
563
+ name: z.ZodNullable<z.ZodString>;
564
+ }, z.core.$strict>>>;
565
+ exportCount: z.ZodNumber;
566
+ lastExportedAt: z.ZodNullable<z.ZodISODateTime>;
567
+ activatedCount: z.ZodNumber;
568
+ remainingCount: z.ZodNumber;
569
+ }, z.core.$strict>;
570
+ code: z.ZodObject<{
571
+ uuid: z.ZodUUID;
572
+ batchId: z.ZodUUID;
573
+ serial: z.ZodString;
574
+ status: z.ZodEnum<{
575
+ activated: "activated";
576
+ expired: "expired";
577
+ issued: "issued";
578
+ revoked: "revoked";
579
+ }>;
580
+ activatedAt: z.ZodNullable<z.ZodISODateTime>;
581
+ }, z.core.$strict>;
582
+ activatedByUserId: z.ZodNullable<z.ZodUUID>;
583
+ activatedByUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
584
+ uuid: z.ZodUUID;
585
+ email: z.ZodEmail;
586
+ name: z.ZodNullable<z.ZodString>;
587
+ }, z.core.$strict>>>;
588
+ }, z.core.$strict>>;
589
+ }, z.core.$strict>;
590
+ type Request = z.infer<typeof RequestSchema>;
591
+ type Response = z.infer<typeof ResponseSchema>;
592
+ }
593
+ export declare namespace RevokeAdminPartnerBatchCommand {
594
+ const RequestSchema: z.ZodObject<{}, z.core.$strict>;
595
+ const ResponseSchema: z.ZodObject<{
596
+ data: z.ZodObject<{
597
+ uuid: z.ZodUUID;
598
+ partnerId: z.ZodUUID;
599
+ offerId: z.ZodUUID;
600
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
601
+ kind: z.ZodLiteral<"subscription">;
602
+ title: z.ZodString;
603
+ subscriptionId: z.ZodUUID;
604
+ durationMonths: z.ZodNumber;
605
+ }, z.core.$strict>, z.ZodObject<{
606
+ kind: z.ZodLiteral<"stars">;
607
+ title: z.ZodString;
608
+ productId: z.ZodUUID;
609
+ starsAmount: z.ZodString;
610
+ }, z.core.$strict>], "kind">;
611
+ quantity: z.ZodNumber;
612
+ status: z.ZodEnum<{
613
+ active: "active";
614
+ expired: "expired";
615
+ revoked: "revoked";
616
+ }>;
617
+ expiresAt: z.ZodISODateTime;
618
+ createdAt: z.ZodISODateTime;
619
+ createdByUserId: z.ZodNullable<z.ZodUUID>;
620
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
621
+ name: z.ZodNullable<z.ZodString>;
622
+ }, z.core.$strict>>>;
623
+ exportCount: z.ZodNumber;
624
+ lastExportedAt: z.ZodNullable<z.ZodISODateTime>;
625
+ activatedCount: z.ZodNumber;
626
+ remainingCount: z.ZodNumber;
627
+ }, z.core.$strict>;
628
+ }, z.core.$strict>;
629
+ type Request = z.infer<typeof RequestSchema>;
630
+ type Response = z.infer<typeof ResponseSchema>;
631
+ }
632
+ export declare namespace RevokeAdminPartnerCodeCommand {
633
+ const RequestSchema: z.ZodObject<{}, z.core.$strict>;
634
+ const ResponseSchema: z.ZodObject<{
635
+ data: z.ZodObject<{
636
+ uuid: z.ZodUUID;
637
+ batchId: z.ZodUUID;
638
+ serial: z.ZodString;
639
+ status: z.ZodEnum<{
640
+ activated: "activated";
641
+ expired: "expired";
642
+ issued: "issued";
643
+ revoked: "revoked";
644
+ }>;
645
+ activatedAt: z.ZodNullable<z.ZodISODateTime>;
646
+ }, z.core.$strict>;
647
+ }, z.core.$strict>;
648
+ type Request = z.infer<typeof RequestSchema>;
649
+ type Response = z.infer<typeof ResponseSchema>;
650
+ }