@purpleschool/gptbot 0.19.7 → 0.19.9-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 (57) hide show
  1. package/build/api/controllers/http/greetings.d.ts +24 -0
  2. package/build/api/controllers/http/greetings.js +28 -0
  3. package/build/api/controllers/http/index.d.ts +1 -0
  4. package/build/api/controllers/http/index.js +1 -0
  5. package/build/api/index.d.ts +1 -0
  6. package/build/api/index.js +1 -0
  7. package/build/api/partner-code-routes.d.ts +21 -0
  8. package/build/api/partner-code-routes.js +25 -0
  9. package/build/commands/content-report/create-content-report.command.d.ts +2 -0
  10. package/build/commands/content-report/find-content-reports.query.d.ts +2 -0
  11. package/build/commands/content-report/update-content-report-status.command.d.ts +1 -0
  12. package/build/commands/index.d.ts +1 -0
  13. package/build/commands/index.js +1 -0
  14. package/build/commands/message/create-text-message.command.js +1 -1
  15. package/build/commands/partner-codes/index.d.ts +489 -0
  16. package/build/commands/partner-codes/index.js +73 -0
  17. package/build/commands/tools/greetings/index.d.ts +2 -0
  18. package/build/commands/tools/greetings/index.js +18 -0
  19. package/build/commands/tools/greetings/requests.d.ts +130 -0
  20. package/build/commands/tools/greetings/requests.js +34 -0
  21. package/build/commands/tools/greetings/responses.d.ts +251 -0
  22. package/build/commands/tools/greetings/responses.js +29 -0
  23. package/build/commands/tools/index.d.ts +1 -0
  24. package/build/commands/tools/index.js +1 -0
  25. package/build/constants/cabinet/enums/statistics-request-type.enum.d.ts +1 -0
  26. package/build/constants/cabinet/enums/statistics-request-type.enum.js +1 -0
  27. package/build/constants/content-report/enums/content-report-target-type.enum.d.ts +1 -0
  28. package/build/constants/tool/enums/greetings-kind.enum.d.ts +12 -0
  29. package/build/constants/tool/enums/greetings-kind.enum.js +17 -0
  30. package/build/constants/tool/enums/index.d.ts +1 -0
  31. package/build/constants/tool/enums/index.js +1 -0
  32. package/build/constants/tool/enums/tool-content-type.enum.d.ts +1 -0
  33. package/build/constants/tool/enums/tool-content-type.enum.js +1 -0
  34. package/build/greetings/index.d.ts +4 -0
  35. package/build/greetings/index.js +20 -0
  36. package/build/index.d.ts +1 -0
  37. package/build/index.js +1 -0
  38. package/build/models/content-report.schema.d.ts +1 -0
  39. package/build/models/index.d.ts +1 -0
  40. package/build/models/index.js +1 -0
  41. package/build/models/partner-codes/index.d.ts +1 -0
  42. package/build/models/partner-codes/index.js +17 -0
  43. package/build/models/partner-codes/partner-codes.schema.d.ts +739 -0
  44. package/build/models/partner-codes/partner-codes.schema.js +347 -0
  45. package/build/models/tools/greetings/greeting-config.schema.d.ts +70 -0
  46. package/build/models/tools/greetings/greeting-config.schema.js +35 -0
  47. package/build/models/tools/greetings/greeting-input.schema.d.ts +49 -0
  48. package/build/models/tools/greetings/greeting-input.schema.js +27 -0
  49. package/build/models/tools/greetings/greeting-job.schema.d.ts +94 -0
  50. package/build/models/tools/greetings/greeting-job.schema.js +23 -0
  51. package/build/models/tools/greetings/greeting-result.schema.d.ts +43 -0
  52. package/build/models/tools/greetings/greeting-result.schema.js +32 -0
  53. package/build/models/tools/greetings/index.d.ts +4 -0
  54. package/build/models/tools/greetings/index.js +20 -0
  55. package/build/models/tools/index.d.ts +1 -0
  56. package/build/models/tools/index.js +1 -0
  57. package/package.json +2 -2
@@ -0,0 +1,739 @@
1
+ import { z } from 'zod';
2
+ export declare const PartnerMoneySchema: z.ZodString;
3
+ export declare const PartnerCommissionMoneySchema: z.ZodString;
4
+ export declare const PartnerReportMoneySchema: z.ZodString;
5
+ export declare const PartnerCommissionValueSchema: z.ZodString;
6
+ export declare const PartnerMonthSchema: z.ZodString;
7
+ export declare const PartnerRoleSchema: z.ZodEnum<{
8
+ manager: "manager";
9
+ owner: "owner";
10
+ }>;
11
+ export declare const PartnerCommissionTypeSchema: z.ZodEnum<{
12
+ fixed: "fixed";
13
+ percent: "percent";
14
+ }>;
15
+ export declare function validPartnerCommission(conditions: {
16
+ commissionType: string;
17
+ commissionValue: string;
18
+ }): boolean;
19
+ export declare const PartnerCommissionConditionsSchema: z.ZodObject<{
20
+ commissionType: z.ZodEnum<{
21
+ fixed: "fixed";
22
+ percent: "percent";
23
+ }>;
24
+ commissionValue: z.ZodString;
25
+ }, z.core.$strict>;
26
+ export declare const PartnerCodeStatusSchema: z.ZodEnum<{
27
+ activated: "activated";
28
+ expired: "expired";
29
+ issued: "issued";
30
+ revoked: "revoked";
31
+ }>;
32
+ export declare const PartnerBatchStatusSchema: z.ZodEnum<{
33
+ active: "active";
34
+ expired: "expired";
35
+ revoked: "revoked";
36
+ }>;
37
+ export declare const PartnerAttemptResultSchema: z.ZodEnum<{
38
+ expired: "expired";
39
+ not_found: "not_found";
40
+ ok: "ok";
41
+ rate_limited: "rate_limited";
42
+ revoked: "revoked";
43
+ used: "used";
44
+ }>;
45
+ export declare const PartnerProductSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
46
+ kind: z.ZodLiteral<"subscription">;
47
+ title: z.ZodString;
48
+ subscriptionId: z.ZodUUID;
49
+ durationMonths: z.ZodNumber;
50
+ }, z.core.$strict>, z.ZodObject<{
51
+ kind: z.ZodLiteral<"stars">;
52
+ title: z.ZodString;
53
+ starsAmount: z.ZodString;
54
+ }, z.core.$strict>], "kind">;
55
+ export declare const PartnerCompanySchema: z.ZodObject<{
56
+ uuid: z.ZodUUID;
57
+ name: z.ZodString;
58
+ code: z.ZodString;
59
+ status: z.ZodEnum<{
60
+ active: "active";
61
+ disabled: "disabled";
62
+ }>;
63
+ createdAt: z.ZodISODateTime;
64
+ }, z.core.$strict>;
65
+ export declare const PartnerMembershipSchema: z.ZodObject<{
66
+ uuid: z.ZodUUID;
67
+ partnerId: z.ZodUUID;
68
+ userId: z.ZodUUID;
69
+ role: z.ZodEnum<{
70
+ manager: "manager";
71
+ owner: "owner";
72
+ }>;
73
+ createdAt: z.ZodISODateTime;
74
+ }, z.core.$strict>;
75
+ export declare const PartnerOfferSchema: z.ZodObject<{
76
+ uuid: z.ZodUUID;
77
+ partnerId: z.ZodUUID;
78
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
79
+ kind: z.ZodLiteral<"subscription">;
80
+ title: z.ZodString;
81
+ subscriptionId: z.ZodUUID;
82
+ durationMonths: z.ZodNumber;
83
+ }, z.core.$strict>, z.ZodObject<{
84
+ kind: z.ZodLiteral<"stars">;
85
+ title: z.ZodString;
86
+ starsAmount: z.ZodString;
87
+ }, z.core.$strict>], "kind">;
88
+ retailPrice: z.ZodString;
89
+ commissionType: z.ZodEnum<{
90
+ fixed: "fixed";
91
+ percent: "percent";
92
+ }>;
93
+ commissionValue: z.ZodString;
94
+ maxOutstanding: z.ZodNumber;
95
+ codeTtlDays: z.ZodNumber;
96
+ active: z.ZodBoolean;
97
+ outstanding: z.ZodNumber;
98
+ availableQuantity: z.ZodNumber;
99
+ }, z.core.$strict>;
100
+ export declare const PartnerIssueRequestSchema: z.ZodObject<{
101
+ offerId: z.ZodUUID;
102
+ quantity: z.ZodNumber;
103
+ }, z.core.$strict>;
104
+ export declare const PartnerBatchSchema: z.ZodObject<{
105
+ uuid: z.ZodUUID;
106
+ partnerId: z.ZodUUID;
107
+ offerId: z.ZodUUID;
108
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
109
+ kind: z.ZodLiteral<"subscription">;
110
+ title: z.ZodString;
111
+ subscriptionId: z.ZodUUID;
112
+ durationMonths: z.ZodNumber;
113
+ }, z.core.$strict>, z.ZodObject<{
114
+ kind: z.ZodLiteral<"stars">;
115
+ title: z.ZodString;
116
+ starsAmount: z.ZodString;
117
+ }, z.core.$strict>], "kind">;
118
+ quantity: z.ZodNumber;
119
+ status: z.ZodEnum<{
120
+ active: "active";
121
+ expired: "expired";
122
+ revoked: "revoked";
123
+ }>;
124
+ expiresAt: z.ZodISODateTime;
125
+ createdAt: z.ZodISODateTime;
126
+ createdByUserId: z.ZodNullable<z.ZodUUID>;
127
+ exportCount: z.ZodNumber;
128
+ lastExportedAt: z.ZodNullable<z.ZodISODateTime>;
129
+ activatedCount: z.ZodNumber;
130
+ remainingCount: z.ZodNumber;
131
+ }, z.core.$strict>;
132
+ export declare const PartnerCodeSchema: z.ZodObject<{
133
+ uuid: z.ZodUUID;
134
+ batchId: z.ZodUUID;
135
+ serial: z.ZodString;
136
+ status: z.ZodEnum<{
137
+ activated: "activated";
138
+ expired: "expired";
139
+ issued: "issued";
140
+ revoked: "revoked";
141
+ }>;
142
+ activatedAt: z.ZodNullable<z.ZodISODateTime>;
143
+ }, z.core.$strict>;
144
+ export declare const PartnerExportAuditSchema: z.ZodObject<{
145
+ uuid: z.ZodUUID;
146
+ batchId: z.ZodUUID;
147
+ userId: z.ZodNullable<z.ZodUUID>;
148
+ ip: z.ZodString;
149
+ createdAt: z.ZodISODateTime;
150
+ }, z.core.$strict>;
151
+ export declare const PartnerExportHistorySchema: z.ZodObject<{
152
+ createdAt: z.ZodISODateTime;
153
+ }, z.core.$strict>;
154
+ export declare const PartnerPageQuerySchema: z.ZodObject<{
155
+ page: z.ZodDefault<z.ZodNumber>;
156
+ pageSize: z.ZodDefault<z.ZodNumber>;
157
+ }, z.core.$strict>;
158
+ export declare const PartnerBatchListQuerySchema: z.ZodObject<{
159
+ page: z.ZodDefault<z.ZodNumber>;
160
+ pageSize: z.ZodDefault<z.ZodNumber>;
161
+ offerId: z.ZodOptional<z.ZodUUID>;
162
+ status: z.ZodOptional<z.ZodEnum<{
163
+ active: "active";
164
+ expired: "expired";
165
+ revoked: "revoked";
166
+ }>>;
167
+ }, z.core.$strict>;
168
+ export declare const PartnerCodeListQuerySchema: z.ZodObject<{
169
+ page: z.ZodDefault<z.ZodNumber>;
170
+ pageSize: z.ZodDefault<z.ZodNumber>;
171
+ status: z.ZodOptional<z.ZodEnum<{
172
+ activated: "activated";
173
+ expired: "expired";
174
+ issued: "issued";
175
+ revoked: "revoked";
176
+ }>>;
177
+ serial: z.ZodOptional<z.ZodString>;
178
+ }, z.core.$strict>;
179
+ export declare const PartnerInviteSchema: z.ZodObject<{
180
+ uuid: z.ZodUUID;
181
+ partnerId: z.ZodUUID;
182
+ recipientUserId: z.ZodUUID;
183
+ recipientEmail: z.ZodEmail;
184
+ sentByUserId: z.ZodNullable<z.ZodUUID>;
185
+ role: z.ZodEnum<{
186
+ manager: "manager";
187
+ owner: "owner";
188
+ }>;
189
+ status: z.ZodEnum<{
190
+ accepted: "accepted";
191
+ expired: "expired";
192
+ pending: "pending";
193
+ revoked: "revoked";
194
+ }>;
195
+ expiresAt: z.ZodISODateTime;
196
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
197
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
198
+ createdAt: z.ZodISODateTime;
199
+ }, z.core.$strict>;
200
+ export declare const PartnerInviteSendSchema: z.ZodObject<{
201
+ email: z.ZodEmail;
202
+ role: z.ZodEnum<{
203
+ manager: "manager";
204
+ owner: "owner";
205
+ }>;
206
+ }, z.core.$strict>;
207
+ export declare const PartnerInviteAcceptSchema: z.ZodObject<{
208
+ purpose: z.ZodLiteral<"partner_invite">;
209
+ token: z.ZodString;
210
+ }, z.core.$strict>;
211
+ export declare const PartnerInviteRevokeSchema: z.ZodObject<{
212
+ inviteId: z.ZodUUID;
213
+ }, z.core.$strict>;
214
+ export declare const PartnerInviteListSchema: z.ZodObject<{
215
+ items: z.ZodArray<z.ZodObject<{
216
+ uuid: z.ZodUUID;
217
+ partnerId: z.ZodUUID;
218
+ recipientUserId: z.ZodUUID;
219
+ recipientEmail: z.ZodEmail;
220
+ sentByUserId: z.ZodNullable<z.ZodUUID>;
221
+ role: z.ZodEnum<{
222
+ manager: "manager";
223
+ owner: "owner";
224
+ }>;
225
+ status: z.ZodEnum<{
226
+ accepted: "accepted";
227
+ expired: "expired";
228
+ pending: "pending";
229
+ revoked: "revoked";
230
+ }>;
231
+ expiresAt: z.ZodISODateTime;
232
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
233
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
234
+ createdAt: z.ZodISODateTime;
235
+ }, z.core.$strict>>;
236
+ }, z.core.$strict>;
237
+ export declare const PartnerInviteErrorSchema: z.ZodEnum<{
238
+ already_member: "already_member";
239
+ forbidden: "forbidden";
240
+ invalid_invite: "invalid_invite";
241
+ user_not_found: "user_not_found";
242
+ }>;
243
+ export declare const PartnerExportChallengeSchema: z.ZodObject<{
244
+ purpose: z.ZodLiteral<"partner_code_export">;
245
+ challengeId: z.ZodUUID;
246
+ batchId: z.ZodUUID;
247
+ expiresAt: z.ZodISODateTime;
248
+ resendAt: z.ZodISODateTime;
249
+ }, z.core.$strict>;
250
+ export declare const PartnerExportChallengeRequestSchema: z.ZodObject<{
251
+ batchId: z.ZodUUID;
252
+ }, z.core.$strict>;
253
+ export declare const PartnerExportChallengeVerifySchema: z.ZodObject<{
254
+ purpose: z.ZodLiteral<"partner_code_export">;
255
+ challengeId: z.ZodUUID;
256
+ otp: z.ZodString;
257
+ }, z.core.$strict>;
258
+ export declare const PartnerLeakRequestSchema: z.ZodObject<{
259
+ uuid: z.ZodUUID;
260
+ partnerId: z.ZodUUID;
261
+ batchId: z.ZodUUID;
262
+ comment: z.ZodString;
263
+ createdByUserId: z.ZodNullable<z.ZodUUID>;
264
+ createdAt: z.ZodISODateTime;
265
+ status: z.ZodEnum<{
266
+ open: "open";
267
+ resolved: "resolved";
268
+ }>;
269
+ }, z.core.$strict>;
270
+ export declare const PartnerLeakCreateSchema: z.ZodObject<{
271
+ batchId: z.ZodUUID;
272
+ comment: z.ZodString;
273
+ }, z.core.$strict>;
274
+ export declare const PartnerCodeInputSchema: z.ZodObject<{
275
+ code: z.ZodString;
276
+ captchaToken: z.ZodOptional<z.ZodString>;
277
+ }, z.core.$strict>;
278
+ export declare const PartnerCodeOriginSchema: z.ZodObject<{
279
+ type: z.ZodLiteral<"activation_code">;
280
+ codeId: z.ZodUUID;
281
+ serial: z.ZodString;
282
+ partnerId: z.ZodUUID;
283
+ }, z.core.$strict>;
284
+ export declare const PartnerCodeGrantSchema: z.ZodObject<{
285
+ uuid: z.ZodUUID;
286
+ origin: z.ZodObject<{
287
+ type: z.ZodLiteral<"activation_code">;
288
+ codeId: z.ZodUUID;
289
+ serial: z.ZodString;
290
+ partnerId: z.ZodUUID;
291
+ }, z.core.$strict>;
292
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
293
+ kind: z.ZodLiteral<"subscription">;
294
+ title: z.ZodString;
295
+ subscriptionId: z.ZodUUID;
296
+ durationMonths: z.ZodNumber;
297
+ }, z.core.$strict>, z.ZodObject<{
298
+ kind: z.ZodLiteral<"stars">;
299
+ title: z.ZodString;
300
+ starsAmount: z.ZodString;
301
+ }, z.core.$strict>], "kind">;
302
+ state: z.ZodEnum<{
303
+ active: "active";
304
+ queued: "queued";
305
+ }>;
306
+ startsAt: z.ZodISODateTime;
307
+ endsAt: z.ZodISODateTime;
308
+ }, z.core.$strict>;
309
+ export declare const PartnerCodeEligibilitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
310
+ state: z.ZodLiteral<"guest">;
311
+ }, z.core.$strict>, z.ZodObject<{
312
+ state: z.ZodLiteral<"allowed">;
313
+ preview: z.ZodObject<{
314
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
315
+ kind: z.ZodLiteral<"subscription">;
316
+ title: z.ZodString;
317
+ subscriptionId: z.ZodUUID;
318
+ durationMonths: z.ZodNumber;
319
+ }, z.core.$strict>, z.ZodObject<{
320
+ kind: z.ZodLiteral<"stars">;
321
+ title: z.ZodString;
322
+ starsAmount: z.ZodString;
323
+ }, z.core.$strict>], "kind">;
324
+ state: z.ZodEnum<{
325
+ active: "active";
326
+ queued: "queued";
327
+ }>;
328
+ startsAt: z.ZodISODateTime;
329
+ endsAt: z.ZodISODateTime;
330
+ }, z.core.$strict>;
331
+ }, z.core.$strict>, z.ZodObject<{
332
+ state: z.ZodLiteral<"blocked">;
333
+ reason: z.ZodLiteral<"auto_renewal_enabled">;
334
+ preview: z.ZodObject<{
335
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
336
+ kind: z.ZodLiteral<"subscription">;
337
+ title: z.ZodString;
338
+ subscriptionId: z.ZodUUID;
339
+ durationMonths: z.ZodNumber;
340
+ }, z.core.$strict>, z.ZodObject<{
341
+ kind: z.ZodLiteral<"stars">;
342
+ title: z.ZodString;
343
+ starsAmount: z.ZodString;
344
+ }, z.core.$strict>], "kind">;
345
+ state: z.ZodEnum<{
346
+ active: "active";
347
+ queued: "queued";
348
+ }>;
349
+ startsAt: z.ZodISODateTime;
350
+ endsAt: z.ZodISODateTime;
351
+ }, z.core.$strict>;
352
+ }, z.core.$strict>], "state">;
353
+ export declare const PartnerCodeCheckSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
354
+ validity: z.ZodLiteral<"valid">;
355
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
356
+ kind: z.ZodLiteral<"subscription">;
357
+ title: z.ZodString;
358
+ subscriptionId: z.ZodUUID;
359
+ durationMonths: z.ZodNumber;
360
+ }, z.core.$strict>, z.ZodObject<{
361
+ kind: z.ZodLiteral<"stars">;
362
+ title: z.ZodString;
363
+ starsAmount: z.ZodString;
364
+ }, z.core.$strict>], "kind">;
365
+ eligibility: z.ZodDiscriminatedUnion<[z.ZodObject<{
366
+ state: z.ZodLiteral<"guest">;
367
+ }, z.core.$strict>, z.ZodObject<{
368
+ state: z.ZodLiteral<"allowed">;
369
+ preview: z.ZodObject<{
370
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
371
+ kind: z.ZodLiteral<"subscription">;
372
+ title: z.ZodString;
373
+ subscriptionId: z.ZodUUID;
374
+ durationMonths: z.ZodNumber;
375
+ }, z.core.$strict>, z.ZodObject<{
376
+ kind: z.ZodLiteral<"stars">;
377
+ title: z.ZodString;
378
+ starsAmount: z.ZodString;
379
+ }, z.core.$strict>], "kind">;
380
+ state: z.ZodEnum<{
381
+ active: "active";
382
+ queued: "queued";
383
+ }>;
384
+ startsAt: z.ZodISODateTime;
385
+ endsAt: z.ZodISODateTime;
386
+ }, z.core.$strict>;
387
+ }, z.core.$strict>, z.ZodObject<{
388
+ state: z.ZodLiteral<"blocked">;
389
+ reason: z.ZodLiteral<"auto_renewal_enabled">;
390
+ preview: z.ZodObject<{
391
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
392
+ kind: z.ZodLiteral<"subscription">;
393
+ title: z.ZodString;
394
+ subscriptionId: z.ZodUUID;
395
+ durationMonths: z.ZodNumber;
396
+ }, z.core.$strict>, z.ZodObject<{
397
+ kind: z.ZodLiteral<"stars">;
398
+ title: z.ZodString;
399
+ starsAmount: z.ZodString;
400
+ }, z.core.$strict>], "kind">;
401
+ state: z.ZodEnum<{
402
+ active: "active";
403
+ queued: "queued";
404
+ }>;
405
+ startsAt: z.ZodISODateTime;
406
+ endsAt: z.ZodISODateTime;
407
+ }, z.core.$strict>;
408
+ }, z.core.$strict>], "state">;
409
+ }, z.core.$strict>, z.ZodObject<{
410
+ validity: z.ZodEnum<{
411
+ disabled: "disabled";
412
+ expired: "expired";
413
+ not_found: "not_found";
414
+ revoked: "revoked";
415
+ used: "used";
416
+ }>;
417
+ captchaRequired: z.ZodBoolean;
418
+ retryAfter: z.ZodOptional<z.ZodNumber>;
419
+ }, z.core.$strict>], "validity">;
420
+ export declare const PartnerCodeActivateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
421
+ result: z.ZodLiteral<"ok">;
422
+ grant: z.ZodObject<{
423
+ uuid: z.ZodUUID;
424
+ origin: z.ZodObject<{
425
+ type: z.ZodLiteral<"activation_code">;
426
+ codeId: z.ZodUUID;
427
+ serial: z.ZodString;
428
+ partnerId: z.ZodUUID;
429
+ }, z.core.$strict>;
430
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
431
+ kind: z.ZodLiteral<"subscription">;
432
+ title: z.ZodString;
433
+ subscriptionId: z.ZodUUID;
434
+ durationMonths: z.ZodNumber;
435
+ }, z.core.$strict>, z.ZodObject<{
436
+ kind: z.ZodLiteral<"stars">;
437
+ title: z.ZodString;
438
+ starsAmount: z.ZodString;
439
+ }, z.core.$strict>], "kind">;
440
+ state: z.ZodEnum<{
441
+ active: "active";
442
+ queued: "queued";
443
+ }>;
444
+ startsAt: z.ZodISODateTime;
445
+ endsAt: z.ZodISODateTime;
446
+ }, z.core.$strict>;
447
+ idempotent: z.ZodBoolean;
448
+ }, z.core.$strict>, z.ZodObject<{
449
+ result: z.ZodLiteral<"error">;
450
+ reason: z.ZodEnum<{
451
+ auto_renewal_enabled: "auto_renewal_enabled";
452
+ disabled: "disabled";
453
+ expired: "expired";
454
+ not_found: "not_found";
455
+ rate_limited: "rate_limited";
456
+ revoked: "revoked";
457
+ used: "used";
458
+ }>;
459
+ retryAfter: z.ZodOptional<z.ZodNumber>;
460
+ }, z.core.$strict>], "result">;
461
+ export declare const PartnerAttemptSchema: z.ZodObject<{
462
+ uuid: z.ZodUUID;
463
+ ip: z.ZodString;
464
+ userId: z.ZodNullable<z.ZodUUID>;
465
+ result: z.ZodEnum<{
466
+ expired: "expired";
467
+ not_found: "not_found";
468
+ ok: "ok";
469
+ rate_limited: "rate_limited";
470
+ revoked: "revoked";
471
+ used: "used";
472
+ }>;
473
+ createdAt: z.ZodISODateTime;
474
+ }, z.core.$strict>;
475
+ export declare const PartnerReportTotalsSchema: z.ZodObject<{
476
+ activationsCount: z.ZodNumber;
477
+ retailTotal: z.ZodString;
478
+ commissionTotal: z.ZodString;
479
+ }, z.core.$strict>;
480
+ export declare const PartnerReportRowSchema: z.ZodObject<{
481
+ codeId: z.ZodUUID;
482
+ serial: z.ZodString;
483
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
484
+ kind: z.ZodLiteral<"subscription">;
485
+ title: z.ZodString;
486
+ subscriptionId: z.ZodUUID;
487
+ durationMonths: z.ZodNumber;
488
+ }, z.core.$strict>, z.ZodObject<{
489
+ kind: z.ZodLiteral<"stars">;
490
+ title: z.ZodString;
491
+ starsAmount: z.ZodString;
492
+ }, z.core.$strict>], "kind">;
493
+ activatedAt: z.ZodISODateTime;
494
+ retailPrice: z.ZodString;
495
+ commission: z.ZodString;
496
+ commissionType: z.ZodEnum<{
497
+ fixed: "fixed";
498
+ percent: "percent";
499
+ }>;
500
+ commissionValue: z.ZodString;
501
+ }, z.core.$strict>;
502
+ export declare const PartnerReportGroupSchema: z.ZodObject<{
503
+ activationsCount: z.ZodNumber;
504
+ retailTotal: z.ZodString;
505
+ commissionTotal: z.ZodString;
506
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
507
+ kind: z.ZodLiteral<"subscription">;
508
+ title: z.ZodString;
509
+ subscriptionId: z.ZodUUID;
510
+ durationMonths: z.ZodNumber;
511
+ }, z.core.$strict>, z.ZodObject<{
512
+ kind: z.ZodLiteral<"stars">;
513
+ title: z.ZodString;
514
+ starsAmount: z.ZodString;
515
+ }, z.core.$strict>], "kind">;
516
+ retailPrice: z.ZodString;
517
+ commission: z.ZodString;
518
+ commissionType: z.ZodEnum<{
519
+ fixed: "fixed";
520
+ percent: "percent";
521
+ }>;
522
+ commissionValue: z.ZodString;
523
+ }, z.core.$strict>;
524
+ export declare const PartnerReportDaySchema: z.ZodObject<{
525
+ activationsCount: z.ZodNumber;
526
+ retailTotal: z.ZodString;
527
+ commissionTotal: z.ZodString;
528
+ day: z.ZodString;
529
+ }, z.core.$strict>;
530
+ export declare const PartnerClosedSnapshotSchema: z.ZodObject<{
531
+ version: z.ZodLiteral<1>;
532
+ partnerId: z.ZodUUID;
533
+ month: z.ZodString;
534
+ summary: z.ZodObject<{
535
+ activationsCount: z.ZodNumber;
536
+ retailTotal: z.ZodString;
537
+ commissionTotal: z.ZodString;
538
+ }, z.core.$strict>;
539
+ groups: z.ZodArray<z.ZodObject<{
540
+ activationsCount: z.ZodNumber;
541
+ retailTotal: z.ZodString;
542
+ commissionTotal: z.ZodString;
543
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
544
+ kind: z.ZodLiteral<"subscription">;
545
+ title: z.ZodString;
546
+ subscriptionId: z.ZodUUID;
547
+ durationMonths: z.ZodNumber;
548
+ }, z.core.$strict>, z.ZodObject<{
549
+ kind: z.ZodLiteral<"stars">;
550
+ title: z.ZodString;
551
+ starsAmount: z.ZodString;
552
+ }, z.core.$strict>], "kind">;
553
+ retailPrice: z.ZodString;
554
+ commission: z.ZodString;
555
+ commissionType: z.ZodEnum<{
556
+ fixed: "fixed";
557
+ percent: "percent";
558
+ }>;
559
+ commissionValue: z.ZodString;
560
+ }, z.core.$strict>>;
561
+ days: z.ZodArray<z.ZodObject<{
562
+ activationsCount: z.ZodNumber;
563
+ retailTotal: z.ZodString;
564
+ commissionTotal: z.ZodString;
565
+ day: z.ZodString;
566
+ }, z.core.$strict>>;
567
+ rows: z.ZodArray<z.ZodObject<{
568
+ codeId: z.ZodUUID;
569
+ serial: z.ZodString;
570
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
571
+ kind: z.ZodLiteral<"subscription">;
572
+ title: z.ZodString;
573
+ subscriptionId: z.ZodUUID;
574
+ durationMonths: z.ZodNumber;
575
+ }, z.core.$strict>, z.ZodObject<{
576
+ kind: z.ZodLiteral<"stars">;
577
+ title: z.ZodString;
578
+ starsAmount: z.ZodString;
579
+ }, z.core.$strict>], "kind">;
580
+ activatedAt: z.ZodISODateTime;
581
+ retailPrice: z.ZodString;
582
+ commission: z.ZodString;
583
+ commissionType: z.ZodEnum<{
584
+ fixed: "fixed";
585
+ percent: "percent";
586
+ }>;
587
+ commissionValue: z.ZodString;
588
+ }, z.core.$strict>>;
589
+ }, z.core.$strict>;
590
+ export declare const PartnerReportSchema: z.ZodObject<{
591
+ version: z.ZodLiteral<1>;
592
+ partnerId: z.ZodUUID;
593
+ month: z.ZodString;
594
+ summary: z.ZodObject<{
595
+ activationsCount: z.ZodNumber;
596
+ retailTotal: z.ZodString;
597
+ commissionTotal: z.ZodString;
598
+ }, z.core.$strict>;
599
+ groups: z.ZodArray<z.ZodObject<{
600
+ activationsCount: z.ZodNumber;
601
+ retailTotal: z.ZodString;
602
+ commissionTotal: z.ZodString;
603
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
604
+ kind: z.ZodLiteral<"subscription">;
605
+ title: z.ZodString;
606
+ subscriptionId: z.ZodUUID;
607
+ durationMonths: z.ZodNumber;
608
+ }, z.core.$strict>, z.ZodObject<{
609
+ kind: z.ZodLiteral<"stars">;
610
+ title: z.ZodString;
611
+ starsAmount: z.ZodString;
612
+ }, z.core.$strict>], "kind">;
613
+ retailPrice: z.ZodString;
614
+ commission: z.ZodString;
615
+ commissionType: z.ZodEnum<{
616
+ fixed: "fixed";
617
+ percent: "percent";
618
+ }>;
619
+ commissionValue: z.ZodString;
620
+ }, z.core.$strict>>;
621
+ days: z.ZodArray<z.ZodObject<{
622
+ activationsCount: z.ZodNumber;
623
+ retailTotal: z.ZodString;
624
+ commissionTotal: z.ZodString;
625
+ day: z.ZodString;
626
+ }, z.core.$strict>>;
627
+ rows: z.ZodArray<z.ZodObject<{
628
+ codeId: z.ZodUUID;
629
+ serial: z.ZodString;
630
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
631
+ kind: z.ZodLiteral<"subscription">;
632
+ title: z.ZodString;
633
+ subscriptionId: z.ZodUUID;
634
+ durationMonths: z.ZodNumber;
635
+ }, z.core.$strict>, z.ZodObject<{
636
+ kind: z.ZodLiteral<"stars">;
637
+ title: z.ZodString;
638
+ starsAmount: z.ZodString;
639
+ }, z.core.$strict>], "kind">;
640
+ activatedAt: z.ZodISODateTime;
641
+ retailPrice: z.ZodString;
642
+ commission: z.ZodString;
643
+ commissionType: z.ZodEnum<{
644
+ fixed: "fixed";
645
+ percent: "percent";
646
+ }>;
647
+ commissionValue: z.ZodString;
648
+ }, z.core.$strict>>;
649
+ status: z.ZodEnum<{
650
+ closed: "closed";
651
+ open: "open";
652
+ }>;
653
+ closedAt: z.ZodNullable<z.ZodISODateTime>;
654
+ dataVersion: z.ZodString;
655
+ }, z.core.$strict>;
656
+ export declare const PartnerCloseResultSchema: z.ZodObject<{
657
+ periodId: z.ZodUUID;
658
+ alreadyClosed: z.ZodBoolean;
659
+ report: z.ZodObject<{
660
+ version: z.ZodLiteral<1>;
661
+ partnerId: z.ZodUUID;
662
+ month: z.ZodString;
663
+ summary: z.ZodObject<{
664
+ activationsCount: z.ZodNumber;
665
+ retailTotal: z.ZodString;
666
+ commissionTotal: z.ZodString;
667
+ }, z.core.$strict>;
668
+ groups: z.ZodArray<z.ZodObject<{
669
+ activationsCount: z.ZodNumber;
670
+ retailTotal: z.ZodString;
671
+ commissionTotal: z.ZodString;
672
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
673
+ kind: z.ZodLiteral<"subscription">;
674
+ title: z.ZodString;
675
+ subscriptionId: z.ZodUUID;
676
+ durationMonths: z.ZodNumber;
677
+ }, z.core.$strict>, z.ZodObject<{
678
+ kind: z.ZodLiteral<"stars">;
679
+ title: z.ZodString;
680
+ starsAmount: z.ZodString;
681
+ }, z.core.$strict>], "kind">;
682
+ retailPrice: z.ZodString;
683
+ commission: z.ZodString;
684
+ commissionType: z.ZodEnum<{
685
+ fixed: "fixed";
686
+ percent: "percent";
687
+ }>;
688
+ commissionValue: z.ZodString;
689
+ }, z.core.$strict>>;
690
+ days: z.ZodArray<z.ZodObject<{
691
+ activationsCount: z.ZodNumber;
692
+ retailTotal: z.ZodString;
693
+ commissionTotal: z.ZodString;
694
+ day: z.ZodString;
695
+ }, z.core.$strict>>;
696
+ rows: z.ZodArray<z.ZodObject<{
697
+ codeId: z.ZodUUID;
698
+ serial: z.ZodString;
699
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
700
+ kind: z.ZodLiteral<"subscription">;
701
+ title: z.ZodString;
702
+ subscriptionId: z.ZodUUID;
703
+ durationMonths: z.ZodNumber;
704
+ }, z.core.$strict>, z.ZodObject<{
705
+ kind: z.ZodLiteral<"stars">;
706
+ title: z.ZodString;
707
+ starsAmount: z.ZodString;
708
+ }, z.core.$strict>], "kind">;
709
+ activatedAt: z.ZodISODateTime;
710
+ retailPrice: z.ZodString;
711
+ commission: z.ZodString;
712
+ commissionType: z.ZodEnum<{
713
+ fixed: "fixed";
714
+ percent: "percent";
715
+ }>;
716
+ commissionValue: z.ZodString;
717
+ }, z.core.$strict>>;
718
+ status: z.ZodEnum<{
719
+ closed: "closed";
720
+ open: "open";
721
+ }>;
722
+ closedAt: z.ZodNullable<z.ZodISODateTime>;
723
+ dataVersion: z.ZodString;
724
+ }, z.core.$strict>;
725
+ }, z.core.$strict>;
726
+ export type PartnerProduct = z.infer<typeof PartnerProductSchema>;
727
+ export type PartnerOffer = z.infer<typeof PartnerOfferSchema>;
728
+ export type PartnerBatch = z.infer<typeof PartnerBatchSchema>;
729
+ export type PartnerCode = z.infer<typeof PartnerCodeSchema>;
730
+ export type PartnerRole = z.infer<typeof PartnerRoleSchema>;
731
+ export type PartnerPageQuery = z.infer<typeof PartnerPageQuerySchema>;
732
+ export type PartnerBatchListQuery = z.infer<typeof PartnerBatchListQuerySchema>;
733
+ export type PartnerCodeListQuery = z.infer<typeof PartnerCodeListQuerySchema>;
734
+ export type PartnerReport = z.infer<typeof PartnerReportSchema>;
735
+ export type PartnerClosedSnapshot = z.infer<typeof PartnerClosedSnapshotSchema>;
736
+ export type PartnerReportRow = z.infer<typeof PartnerReportRowSchema>;
737
+ export type PartnerReportGroup = z.infer<typeof PartnerReportGroupSchema>;
738
+ export type PartnerReportDay = z.infer<typeof PartnerReportDaySchema>;
739
+ export type PartnerReportTotals = z.infer<typeof PartnerReportTotalsSchema>;