@purpleschool/multisite 0.0.35 → 0.0.41

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 (140) hide show
  1. package/api/controller/http/catalog.ts +6 -0
  2. package/api/controller/http/file.ts +1 -0
  3. package/api/controller/http/index.ts +2 -0
  4. package/api/controller/http/text-chat.ts +18 -0
  5. package/build/api/controller/http/catalog.d.ts +7 -0
  6. package/build/api/controller/http/catalog.d.ts.map +1 -0
  7. package/build/api/controller/http/catalog.js +9 -0
  8. package/build/api/controller/http/file.d.ts +1 -0
  9. package/build/api/controller/http/file.d.ts.map +1 -1
  10. package/build/api/controller/http/file.js +1 -0
  11. package/build/api/controller/http/index.d.ts +2 -0
  12. package/build/api/controller/http/index.d.ts.map +1 -1
  13. package/build/api/controller/http/index.js +2 -0
  14. package/build/api/controller/http/text-chat.d.ts +18 -0
  15. package/build/api/controller/http/text-chat.d.ts.map +1 -0
  16. package/build/api/controller/http/text-chat.js +20 -0
  17. package/build/commands/auth/verify-email.command.d.ts.map +1 -1
  18. package/build/commands/auth/verify-email.command.js +2 -1
  19. package/build/commands/catalog/index.d.ts +156 -0
  20. package/build/commands/catalog/index.d.ts.map +1 -0
  21. package/build/commands/catalog/index.js +23 -0
  22. package/build/commands/index.d.ts +2 -0
  23. package/build/commands/index.d.ts.map +1 -1
  24. package/build/commands/index.js +2 -0
  25. package/build/commands/page/create-page.command.d.ts +8 -0
  26. package/build/commands/page/create-page.command.d.ts.map +1 -1
  27. package/build/commands/page/find-page-by-alias.command.d.ts +16 -0
  28. package/build/commands/page/find-page-by-alias.command.d.ts.map +1 -1
  29. package/build/commands/page/find-page-by-criteria.command.d.ts +5 -0
  30. package/build/commands/page/find-page-by-criteria.command.d.ts.map +1 -1
  31. package/build/commands/page/find-page.command.d.ts +11 -0
  32. package/build/commands/page/find-page.command.d.ts.map +1 -1
  33. package/build/commands/page/update-page.command.d.ts +8 -0
  34. package/build/commands/page/update-page.command.d.ts.map +1 -1
  35. package/build/commands/product/fast-buy-product.command.d.ts.map +1 -1
  36. package/build/commands/product/fast-buy-product.command.js +2 -1
  37. package/build/commands/subscription/fast-buy-subscription.command.d.ts.map +1 -1
  38. package/build/commands/subscription/fast-buy-subscription.command.js +2 -1
  39. package/build/commands/text-chat/category.d.ts +321 -0
  40. package/build/commands/text-chat/category.d.ts.map +1 -0
  41. package/build/commands/text-chat/category.js +29 -0
  42. package/build/commands/text-chat/index.d.ts +292 -0
  43. package/build/commands/text-chat/index.d.ts.map +1 -0
  44. package/build/commands/text-chat/index.js +73 -0
  45. package/build/constants/catalog.d.ts +5 -0
  46. package/build/constants/catalog.d.ts.map +1 -0
  47. package/build/constants/catalog.js +8 -0
  48. package/build/constants/errors/errors.d.ts +72 -0
  49. package/build/constants/errors/errors.d.ts.map +1 -1
  50. package/build/constants/errors/errors.js +72 -0
  51. package/build/constants/files/enums/file-type.enum.d.ts +3 -1
  52. package/build/constants/files/enums/file-type.enum.d.ts.map +1 -1
  53. package/build/constants/files/enums/file-type.enum.js +2 -0
  54. package/build/constants/index.d.ts +3 -0
  55. package/build/constants/index.d.ts.map +1 -1
  56. package/build/constants/index.js +3 -0
  57. package/build/constants/text-chat/attachments.d.ts +12 -0
  58. package/build/constants/text-chat/attachments.d.ts.map +1 -0
  59. package/build/constants/text-chat/attachments.js +52 -0
  60. package/build/constants/text-chat/index.d.ts +38 -0
  61. package/build/constants/text-chat/index.d.ts.map +1 -0
  62. package/build/constants/text-chat/index.js +59 -0
  63. package/build/constants/text-provider/index.d.ts +37 -0
  64. package/build/constants/text-provider/index.d.ts.map +1 -0
  65. package/build/constants/text-provider/index.js +46 -0
  66. package/build/constants/tools/enums/tool-type.enum.d.ts +1 -0
  67. package/build/constants/tools/enums/tool-type.enum.d.ts.map +1 -1
  68. package/build/constants/tools/enums/tool-type.enum.js +1 -0
  69. package/build/helpers/index.d.ts +1 -0
  70. package/build/helpers/index.d.ts.map +1 -1
  71. package/build/helpers/index.js +1 -0
  72. package/build/helpers/text-chat/index.d.ts +23 -0
  73. package/build/helpers/text-chat/index.d.ts.map +1 -0
  74. package/build/helpers/text-chat/index.js +91 -0
  75. package/build/models/catalog/index.d.ts +181 -0
  76. package/build/models/catalog/index.d.ts.map +1 -0
  77. package/build/models/catalog/index.js +36 -0
  78. package/build/models/index.d.ts +2 -0
  79. package/build/models/index.d.ts.map +1 -1
  80. package/build/models/index.js +2 -0
  81. package/build/models/page.schema.d.ts +6 -0
  82. package/build/models/page.schema.d.ts.map +1 -1
  83. package/build/models/page.schema.js +1 -0
  84. package/build/models/text-chat/category.schema.d.ts +79 -0
  85. package/build/models/text-chat/category.schema.d.ts.map +1 -0
  86. package/build/models/text-chat/category.schema.js +38 -0
  87. package/build/models/text-chat/index.d.ts +319 -0
  88. package/build/models/text-chat/index.d.ts.map +1 -0
  89. package/build/models/text-chat/index.js +79 -0
  90. package/build/models/text-chat/provider-config.schema.d.ts +92 -0
  91. package/build/models/text-chat/provider-config.schema.d.ts.map +1 -0
  92. package/build/models/text-chat/provider-config.schema.js +42 -0
  93. package/build/models/text-chat/stream.schema.d.ts +83 -0
  94. package/build/models/text-chat/stream.schema.d.ts.map +1 -0
  95. package/build/models/text-chat/stream.schema.js +24 -0
  96. package/build/models/user.schema.d.ts +1 -0
  97. package/build/models/user.schema.d.ts.map +1 -1
  98. package/build/models/user.schema.js +3 -2
  99. package/build/queries/catalog/index.d.ts +259 -0
  100. package/build/queries/catalog/index.d.ts.map +1 -0
  101. package/build/queries/catalog/index.js +31 -0
  102. package/build/queries/index.d.ts +2 -0
  103. package/build/queries/index.d.ts.map +1 -1
  104. package/build/queries/index.js +2 -0
  105. package/build/queries/text-chat/category.d.ts +297 -0
  106. package/build/queries/text-chat/category.d.ts.map +1 -0
  107. package/build/queries/text-chat/category.js +45 -0
  108. package/build/queries/text-chat/index.d.ts +472 -0
  109. package/build/queries/text-chat/index.d.ts.map +1 -0
  110. package/build/queries/text-chat/index.js +61 -0
  111. package/commands/auth/verify-email.command.ts +2 -1
  112. package/commands/catalog/index.ts +26 -0
  113. package/commands/index.ts +2 -0
  114. package/commands/product/fast-buy-product.command.ts +2 -1
  115. package/commands/subscription/fast-buy-subscription.command.ts +2 -1
  116. package/commands/text-chat/category.ts +42 -0
  117. package/commands/text-chat/index.ts +71 -0
  118. package/constants/catalog.ts +4 -0
  119. package/constants/errors/errors.ts +73 -0
  120. package/constants/files/enums/file-type.enum.ts +2 -0
  121. package/constants/index.ts +3 -0
  122. package/constants/text-chat/attachments.ts +55 -0
  123. package/constants/text-chat/index.ts +43 -0
  124. package/constants/text-provider/index.ts +42 -0
  125. package/constants/tools/enums/tool-type.enum.ts +1 -0
  126. package/helpers/index.ts +1 -0
  127. package/helpers/text-chat/index.ts +91 -0
  128. package/models/catalog/index.ts +35 -0
  129. package/models/index.ts +2 -0
  130. package/models/page.schema.ts +1 -0
  131. package/models/text-chat/category.schema.ts +40 -0
  132. package/models/text-chat/index.ts +82 -0
  133. package/models/text-chat/provider-config.schema.ts +47 -0
  134. package/models/text-chat/stream.schema.ts +43 -0
  135. package/models/user.schema.ts +3 -1
  136. package/package.json +1 -1
  137. package/queries/catalog/index.ts +29 -0
  138. package/queries/index.ts +2 -0
  139. package/queries/text-chat/category.ts +51 -0
  140. package/queries/text-chat/index.ts +56 -0
@@ -10,6 +10,7 @@ export declare namespace FindPageCommand {
10
10
  alias: z.ZodString;
11
11
  toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
12
12
  toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ categoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
14
  createdAt: z.ZodDate;
14
15
  updatedAt: z.ZodDate;
15
16
  }, "uuid">, "strip", z.ZodTypeAny, {
@@ -29,6 +30,7 @@ export declare namespace FindPageCommand {
29
30
  alias: z.ZodString;
30
31
  toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
31
32
  toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ categoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
34
  createdAt: z.ZodDate;
33
35
  updatedAt: z.ZodDate;
34
36
  } & {
@@ -64,6 +66,7 @@ export declare namespace FindPageCommand {
64
66
  alias: string;
65
67
  toolType?: import("../..").TOOL_TYPE | null | undefined;
66
68
  toolOptionId?: string | null | undefined;
69
+ categoryId?: string | null | undefined;
67
70
  createdAt: Date;
68
71
  updatedAt: Date;
69
72
  questions: {
@@ -84,6 +87,7 @@ export declare namespace FindPageCommand {
84
87
  alias: string;
85
88
  toolType?: import("../..").TOOL_TYPE | null | undefined;
86
89
  toolOptionId?: string | null | undefined;
90
+ categoryId?: string | null | undefined;
87
91
  createdAt: Date;
88
92
  updatedAt: Date;
89
93
  questions: {
@@ -106,6 +110,7 @@ export declare namespace FindPageCommand {
106
110
  alias: string;
107
111
  toolType?: import("../..").TOOL_TYPE | null | undefined;
108
112
  toolOptionId?: string | null | undefined;
113
+ categoryId?: string | null | undefined;
109
114
  createdAt: Date;
110
115
  updatedAt: Date;
111
116
  questions: {
@@ -128,6 +133,7 @@ export declare namespace FindPageCommand {
128
133
  alias: string;
129
134
  toolType?: import("../..").TOOL_TYPE | null | undefined;
130
135
  toolOptionId?: string | null | undefined;
136
+ categoryId?: string | null | undefined;
131
137
  createdAt: Date;
132
138
  updatedAt: Date;
133
139
  questions: {
@@ -152,6 +158,7 @@ export declare namespace FindPageCommand {
152
158
  alias: z.ZodString;
153
159
  toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
154
160
  toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
+ categoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
162
  createdAt: z.ZodDate;
156
163
  updatedAt: z.ZodDate;
157
164
  } & {
@@ -187,6 +194,7 @@ export declare namespace FindPageCommand {
187
194
  alias: string;
188
195
  toolType?: import("../..").TOOL_TYPE | null | undefined;
189
196
  toolOptionId?: string | null | undefined;
197
+ categoryId?: string | null | undefined;
190
198
  createdAt: Date;
191
199
  updatedAt: Date;
192
200
  questions: {
@@ -207,6 +215,7 @@ export declare namespace FindPageCommand {
207
215
  alias: string;
208
216
  toolType?: import("../..").TOOL_TYPE | null | undefined;
209
217
  toolOptionId?: string | null | undefined;
218
+ categoryId?: string | null | undefined;
210
219
  createdAt: Date;
211
220
  updatedAt: Date;
212
221
  questions: {
@@ -229,6 +238,7 @@ export declare namespace FindPageCommand {
229
238
  alias: string;
230
239
  toolType?: import("../..").TOOL_TYPE | null | undefined;
231
240
  toolOptionId?: string | null | undefined;
241
+ categoryId?: string | null | undefined;
232
242
  createdAt: Date;
233
243
  updatedAt: Date;
234
244
  questions: {
@@ -251,6 +261,7 @@ export declare namespace FindPageCommand {
251
261
  alias: string;
252
262
  toolType?: import("../..").TOOL_TYPE | null | undefined;
253
263
  toolOptionId?: string | null | undefined;
264
+ categoryId?: string | null | undefined;
254
265
  createdAt: Date;
255
266
  updatedAt: Date;
256
267
  questions: {
@@ -1 +1 @@
1
- {"version":3,"file":"find-page.command.d.ts","sourceRoot":"","sources":["../../../commands/page/find-page.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,eAAe,CAAC;IACtB,MAAM,aAAa;;;;;;;;;;;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;IAE/C,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAE/B,CAAC;IAEH,KAAY,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;CACrE"}
1
+ {"version":3,"file":"find-page.command.d.ts","sourceRoot":"","sources":["../../../commands/page/find-page.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,eAAe,CAAC;IACtB,MAAM,aAAa;;;;;;;;;;;;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;IAE/C,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAE/B,CAAC;IAEH,KAAY,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;CACrE"}
@@ -9,6 +9,7 @@ export declare namespace UpdatePageCommand {
9
9
  alias: z.ZodOptional<z.ZodString>;
10
10
  toolType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>>;
11
11
  toolOptionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
12
+ categoryId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
12
13
  }, "strip", z.ZodTypeAny, {
13
14
  metaTitle?: string | undefined;
14
15
  metaDescription?: string | undefined;
@@ -18,6 +19,7 @@ export declare namespace UpdatePageCommand {
18
19
  alias?: string | undefined;
19
20
  toolType?: import("../..").TOOL_TYPE | null | undefined;
20
21
  toolOptionId?: string | null | undefined;
22
+ categoryId?: string | null | undefined;
21
23
  }, {
22
24
  metaTitle?: string | undefined;
23
25
  metaDescription?: string | undefined;
@@ -27,6 +29,7 @@ export declare namespace UpdatePageCommand {
27
29
  alias?: string | undefined;
28
30
  toolType?: import("../..").TOOL_TYPE | null | undefined;
29
31
  toolOptionId?: string | null | undefined;
32
+ categoryId?: string | null | undefined;
30
33
  }>;
31
34
  type Request = z.infer<typeof RequestSchema>;
32
35
  const RequestParamSchema: z.ZodObject<{
@@ -48,6 +51,7 @@ export declare namespace UpdatePageCommand {
48
51
  alias: z.ZodString;
49
52
  toolType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>>;
50
53
  toolOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ categoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
55
  createdAt: z.ZodDate;
52
56
  updatedAt: z.ZodDate;
53
57
  }, "strip", z.ZodTypeAny, {
@@ -60,6 +64,7 @@ export declare namespace UpdatePageCommand {
60
64
  alias: string;
61
65
  toolType?: import("../..").TOOL_TYPE | null | undefined;
62
66
  toolOptionId?: string | null | undefined;
67
+ categoryId?: string | null | undefined;
63
68
  createdAt: Date;
64
69
  updatedAt: Date;
65
70
  }, {
@@ -72,6 +77,7 @@ export declare namespace UpdatePageCommand {
72
77
  alias: string;
73
78
  toolType?: import("../..").TOOL_TYPE | null | undefined;
74
79
  toolOptionId?: string | null | undefined;
80
+ categoryId?: string | null | undefined;
75
81
  createdAt: Date;
76
82
  updatedAt: Date;
77
83
  }>;
@@ -86,6 +92,7 @@ export declare namespace UpdatePageCommand {
86
92
  alias: string;
87
93
  toolType?: import("../..").TOOL_TYPE | null | undefined;
88
94
  toolOptionId?: string | null | undefined;
95
+ categoryId?: string | null | undefined;
89
96
  createdAt: Date;
90
97
  updatedAt: Date;
91
98
  };
@@ -100,6 +107,7 @@ export declare namespace UpdatePageCommand {
100
107
  alias: string;
101
108
  toolType?: import("../..").TOOL_TYPE | null | undefined;
102
109
  toolOptionId?: string | null | undefined;
110
+ categoryId?: string | null | undefined;
103
111
  createdAt: Date;
104
112
  updatedAt: Date;
105
113
  };
@@ -1 +1 @@
1
- {"version":3,"file":"update-page.command.d.ts","sourceRoot":"","sources":["../../../commands/page/update-page.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;MAId,CAAC;IAEb,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"update-page.command.d.ts","sourceRoot":"","sources":["../../../commands/page/update-page.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAId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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -3,13 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FastBuyProductCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const models_1 = require("../../models");
6
+ const user_schema_1 = require("../../models/user.schema");
6
7
  var FastBuyProductCommand;
7
8
  (function (FastBuyProductCommand) {
8
9
  FastBuyProductCommand.RequestParamSchema = zod_1.z.object({
9
10
  uuid: zod_1.z.string().uuid(),
10
11
  });
11
12
  FastBuyProductCommand.RequestSchema = zod_1.z.object({
12
- email: zod_1.z.string().email(),
13
+ email: user_schema_1.EmailInputSchema,
13
14
  partnerId: zod_1.z.string().uuid().optional(),
14
15
  marketingConsent: zod_1.z.boolean().optional().default(false),
15
16
  });
@@ -1 +1 @@
1
- {"version":3,"file":"fast-buy-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/subscription/fast-buy-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,aAAa;;;;;;;;;;;;MAIxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -3,13 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FastBuySubscriptionCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const models_1 = require("../../models");
6
+ const user_schema_1 = require("../../models/user.schema");
6
7
  var FastBuySubscriptionCommand;
7
8
  (function (FastBuySubscriptionCommand) {
8
9
  FastBuySubscriptionCommand.RequestParamSchema = zod_1.z.object({
9
10
  uuid: zod_1.z.string().uuid(),
10
11
  });
11
12
  FastBuySubscriptionCommand.RequestSchema = zod_1.z.object({
12
- email: zod_1.z.string().email(),
13
+ email: user_schema_1.EmailInputSchema,
13
14
  partnerId: zod_1.z.string().uuid().optional(),
14
15
  marketingConsent: zod_1.z.boolean().optional().default(false),
15
16
  });
@@ -0,0 +1,321 @@
1
+ import { z } from 'zod';
2
+ export declare namespace CreateTextChatCategoryCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ title: z.ZodString;
5
+ toolType: z.ZodDefault<z.ZodEnum<[import("../..").TOOL_TYPE.TEXT, import("../..").TOOL_TYPE.IMAGE_GENERATION, import("../..").TOOL_TYPE.IMAGE_EDITOR]>>;
6
+ placeholder: z.ZodDefault<z.ZodString>;
7
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ order: z.ZodOptional<z.ZodNumber>;
9
+ prompt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>;
10
+ }, "strict", z.ZodTypeAny, {
11
+ title: string;
12
+ toolType: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR;
13
+ placeholder: string;
14
+ groupId?: string | null | undefined;
15
+ order?: number | undefined;
16
+ prompt?: string | null | undefined;
17
+ }, {
18
+ title: string;
19
+ toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
20
+ placeholder?: string | undefined;
21
+ groupId?: string | null | undefined;
22
+ order?: number | undefined;
23
+ prompt?: string | null | undefined;
24
+ }>;
25
+ type Request = z.input<typeof RequestSchema>;
26
+ const ResponseSchema: z.ZodObject<{
27
+ data: z.ZodObject<{
28
+ uuid: z.ZodString;
29
+ title: z.ZodString;
30
+ placeholder: z.ZodString;
31
+ } & {
32
+ siteId: z.ZodString;
33
+ toolType: z.ZodDefault<z.ZodEnum<[import("../..").TOOL_TYPE.TEXT, import("../..").TOOL_TYPE.IMAGE_GENERATION, import("../..").TOOL_TYPE.IMAGE_EDITOR]>>;
34
+ groupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
35
+ order: z.ZodDefault<z.ZodNumber>;
36
+ prompt: z.ZodNullable<z.ZodString>;
37
+ archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
38
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
39
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ uuid: string;
42
+ title: string;
43
+ placeholder: string;
44
+ siteId: string;
45
+ toolType: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR;
46
+ groupId: string | null;
47
+ order: number;
48
+ prompt: string | null;
49
+ archivedAt: string | Date | null;
50
+ createdAt: string | Date;
51
+ updatedAt: string | Date;
52
+ }, {
53
+ uuid: string;
54
+ title: string;
55
+ placeholder: string;
56
+ siteId: string;
57
+ toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
58
+ groupId?: string | null | undefined;
59
+ order?: number | undefined;
60
+ prompt: string | null;
61
+ archivedAt: string | Date | null;
62
+ createdAt: string | Date;
63
+ updatedAt: string | Date;
64
+ }>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ data: {
67
+ uuid: string;
68
+ title: string;
69
+ placeholder: string;
70
+ siteId: string;
71
+ toolType: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR;
72
+ groupId: string | null;
73
+ order: number;
74
+ prompt: string | null;
75
+ archivedAt: string | Date | null;
76
+ createdAt: string | Date;
77
+ updatedAt: string | Date;
78
+ };
79
+ }, {
80
+ data: {
81
+ uuid: string;
82
+ title: string;
83
+ placeholder: string;
84
+ siteId: string;
85
+ toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
86
+ groupId?: string | null | undefined;
87
+ order?: number | undefined;
88
+ prompt: string | null;
89
+ archivedAt: string | Date | null;
90
+ createdAt: string | Date;
91
+ updatedAt: string | Date;
92
+ };
93
+ }>;
94
+ type Response = z.infer<typeof ResponseSchema>;
95
+ }
96
+ export declare namespace UpdateTextChatCategoryCommand {
97
+ const RequestParamsSchema: z.ZodObject<{
98
+ uuid: z.ZodString;
99
+ }, "strict", z.ZodTypeAny, {
100
+ uuid: string;
101
+ }, {
102
+ uuid: string;
103
+ }>;
104
+ type RequestParams = z.infer<typeof RequestParamsSchema>;
105
+ const RequestSchema: z.ZodEffects<z.ZodObject<{
106
+ title: z.ZodOptional<z.ZodString>;
107
+ toolType: z.ZodOptional<z.ZodDefault<z.ZodEnum<[import("../..").TOOL_TYPE.TEXT, import("../..").TOOL_TYPE.IMAGE_GENERATION, import("../..").TOOL_TYPE.IMAGE_EDITOR]>>>;
108
+ placeholder: z.ZodOptional<z.ZodDefault<z.ZodString>>;
109
+ groupId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
110
+ order: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
111
+ prompt: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>>;
112
+ }, "strict", z.ZodTypeAny, {
113
+ title?: string | undefined;
114
+ toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
115
+ placeholder?: string | undefined;
116
+ groupId?: string | null | undefined;
117
+ order?: number | undefined;
118
+ prompt?: string | null | undefined;
119
+ }, {
120
+ title?: string | undefined;
121
+ toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
122
+ placeholder?: string | undefined;
123
+ groupId?: string | null | undefined;
124
+ order?: number | undefined;
125
+ prompt?: string | null | undefined;
126
+ }>, {
127
+ title?: string | undefined;
128
+ toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
129
+ placeholder?: string | undefined;
130
+ groupId?: string | null | undefined;
131
+ order?: number | undefined;
132
+ prompt?: string | null | undefined;
133
+ }, {
134
+ title?: string | undefined;
135
+ toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
136
+ placeholder?: string | undefined;
137
+ groupId?: string | null | undefined;
138
+ order?: number | undefined;
139
+ prompt?: string | null | undefined;
140
+ }>;
141
+ type Request = z.infer<typeof RequestSchema>;
142
+ const ResponseSchema: z.ZodObject<{
143
+ data: z.ZodObject<{
144
+ uuid: z.ZodString;
145
+ title: z.ZodString;
146
+ placeholder: z.ZodString;
147
+ } & {
148
+ siteId: z.ZodString;
149
+ toolType: z.ZodDefault<z.ZodEnum<[import("../..").TOOL_TYPE.TEXT, import("../..").TOOL_TYPE.IMAGE_GENERATION, import("../..").TOOL_TYPE.IMAGE_EDITOR]>>;
150
+ groupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
151
+ order: z.ZodDefault<z.ZodNumber>;
152
+ prompt: z.ZodNullable<z.ZodString>;
153
+ archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
154
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
155
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ uuid: string;
158
+ title: string;
159
+ placeholder: string;
160
+ siteId: string;
161
+ toolType: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR;
162
+ groupId: string | null;
163
+ order: number;
164
+ prompt: string | null;
165
+ archivedAt: string | Date | null;
166
+ createdAt: string | Date;
167
+ updatedAt: string | Date;
168
+ }, {
169
+ uuid: string;
170
+ title: string;
171
+ placeholder: string;
172
+ siteId: string;
173
+ toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
174
+ groupId?: string | null | undefined;
175
+ order?: number | undefined;
176
+ prompt: string | null;
177
+ archivedAt: string | Date | null;
178
+ createdAt: string | Date;
179
+ updatedAt: string | Date;
180
+ }>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ data: {
183
+ uuid: string;
184
+ title: string;
185
+ placeholder: string;
186
+ siteId: string;
187
+ toolType: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR;
188
+ groupId: string | null;
189
+ order: number;
190
+ prompt: string | null;
191
+ archivedAt: string | Date | null;
192
+ createdAt: string | Date;
193
+ updatedAt: string | Date;
194
+ };
195
+ }, {
196
+ data: {
197
+ uuid: string;
198
+ title: string;
199
+ placeholder: string;
200
+ siteId: string;
201
+ toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
202
+ groupId?: string | null | undefined;
203
+ order?: number | undefined;
204
+ prompt: string | null;
205
+ archivedAt: string | Date | null;
206
+ createdAt: string | Date;
207
+ updatedAt: string | Date;
208
+ };
209
+ }>;
210
+ type Response = z.infer<typeof ResponseSchema>;
211
+ }
212
+ export declare namespace ArchiveTextChatCategoryCommand {
213
+ const RequestParamsSchema: z.ZodObject<{
214
+ uuid: z.ZodString;
215
+ }, "strict", z.ZodTypeAny, {
216
+ uuid: string;
217
+ }, {
218
+ uuid: string;
219
+ }>;
220
+ type RequestParams = z.infer<typeof RequestParamsSchema>;
221
+ const RequestSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
222
+ type Request = z.infer<typeof RequestSchema>;
223
+ const ResponseSchema: z.ZodObject<{
224
+ data: z.ZodObject<{
225
+ uuid: z.ZodString;
226
+ title: z.ZodString;
227
+ placeholder: z.ZodString;
228
+ } & {
229
+ siteId: z.ZodString;
230
+ toolType: z.ZodDefault<z.ZodEnum<[import("../..").TOOL_TYPE.TEXT, import("../..").TOOL_TYPE.IMAGE_GENERATION, import("../..").TOOL_TYPE.IMAGE_EDITOR]>>;
231
+ groupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
232
+ order: z.ZodDefault<z.ZodNumber>;
233
+ prompt: z.ZodNullable<z.ZodString>;
234
+ archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
235
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
236
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ uuid: string;
239
+ title: string;
240
+ placeholder: string;
241
+ siteId: string;
242
+ toolType: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR;
243
+ groupId: string | null;
244
+ order: number;
245
+ prompt: string | null;
246
+ archivedAt: string | Date | null;
247
+ createdAt: string | Date;
248
+ updatedAt: string | Date;
249
+ }, {
250
+ uuid: string;
251
+ title: string;
252
+ placeholder: string;
253
+ siteId: string;
254
+ toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
255
+ groupId?: string | null | undefined;
256
+ order?: number | undefined;
257
+ prompt: string | null;
258
+ archivedAt: string | Date | null;
259
+ createdAt: string | Date;
260
+ updatedAt: string | Date;
261
+ }>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ data: {
264
+ uuid: string;
265
+ title: string;
266
+ placeholder: string;
267
+ siteId: string;
268
+ toolType: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR;
269
+ groupId: string | null;
270
+ order: number;
271
+ prompt: string | null;
272
+ archivedAt: string | Date | null;
273
+ createdAt: string | Date;
274
+ updatedAt: string | Date;
275
+ };
276
+ }, {
277
+ data: {
278
+ uuid: string;
279
+ title: string;
280
+ placeholder: string;
281
+ siteId: string;
282
+ toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
283
+ groupId?: string | null | undefined;
284
+ order?: number | undefined;
285
+ prompt: string | null;
286
+ archivedAt: string | Date | null;
287
+ createdAt: string | Date;
288
+ updatedAt: string | Date;
289
+ };
290
+ }>;
291
+ type Response = z.infer<typeof ResponseSchema>;
292
+ }
293
+ export declare namespace DeleteTextChatCategoryCommand {
294
+ const RequestParamsSchema: z.ZodObject<{
295
+ uuid: z.ZodString;
296
+ }, "strict", z.ZodTypeAny, {
297
+ uuid: string;
298
+ }, {
299
+ uuid: string;
300
+ }>;
301
+ type RequestParams = z.infer<typeof RequestParamsSchema>;
302
+ const ResponseSchema: z.ZodObject<{
303
+ data: z.ZodObject<{
304
+ deleted: z.ZodLiteral<true>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ deleted: true;
307
+ }, {
308
+ deleted: true;
309
+ }>;
310
+ }, "strip", z.ZodTypeAny, {
311
+ data: {
312
+ deleted: true;
313
+ };
314
+ }, {
315
+ data: {
316
+ deleted: true;
317
+ };
318
+ }>;
319
+ type Response = z.infer<typeof ResponseSchema>;
320
+ }
321
+ //# sourceMappingURL=category.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../commands/text-chat/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;MAAwC,CAAC;IACnE,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAC7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkD,CAAC;IAC9E,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC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1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteTextChatCategoryCommand = exports.ArchiveTextChatCategoryCommand = exports.UpdateTextChatCategoryCommand = exports.CreateTextChatCategoryCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const category_schema_1 = require("../../models/text-chat/category.schema");
6
+ var CreateTextChatCategoryCommand;
7
+ (function (CreateTextChatCategoryCommand) {
8
+ CreateTextChatCategoryCommand.RequestSchema = category_schema_1.TextChatCategoryFieldsSchema.strict();
9
+ CreateTextChatCategoryCommand.ResponseSchema = zod_1.z.object({ data: category_schema_1.TextChatCategoryAdminSchema });
10
+ })(CreateTextChatCategoryCommand || (exports.CreateTextChatCategoryCommand = CreateTextChatCategoryCommand = {}));
11
+ var UpdateTextChatCategoryCommand;
12
+ (function (UpdateTextChatCategoryCommand) {
13
+ UpdateTextChatCategoryCommand.RequestParamsSchema = zod_1.z.object({ uuid: zod_1.z.string().uuid() }).strict();
14
+ UpdateTextChatCategoryCommand.RequestSchema = category_schema_1.TextChatCategoryFieldsSchema.partial()
15
+ .strict()
16
+ .refine((input) => Object.values(input).some((value) => value !== undefined), 'At least one field is required');
17
+ UpdateTextChatCategoryCommand.ResponseSchema = CreateTextChatCategoryCommand.ResponseSchema;
18
+ })(UpdateTextChatCategoryCommand || (exports.UpdateTextChatCategoryCommand = UpdateTextChatCategoryCommand = {}));
19
+ var ArchiveTextChatCategoryCommand;
20
+ (function (ArchiveTextChatCategoryCommand) {
21
+ ArchiveTextChatCategoryCommand.RequestParamsSchema = UpdateTextChatCategoryCommand.RequestParamsSchema;
22
+ ArchiveTextChatCategoryCommand.RequestSchema = zod_1.z.object({}).strict();
23
+ ArchiveTextChatCategoryCommand.ResponseSchema = CreateTextChatCategoryCommand.ResponseSchema;
24
+ })(ArchiveTextChatCategoryCommand || (exports.ArchiveTextChatCategoryCommand = ArchiveTextChatCategoryCommand = {}));
25
+ var DeleteTextChatCategoryCommand;
26
+ (function (DeleteTextChatCategoryCommand) {
27
+ DeleteTextChatCategoryCommand.RequestParamsSchema = UpdateTextChatCategoryCommand.RequestParamsSchema;
28
+ DeleteTextChatCategoryCommand.ResponseSchema = zod_1.z.object({ data: zod_1.z.object({ deleted: zod_1.z.literal(true) }) });
29
+ })(DeleteTextChatCategoryCommand || (exports.DeleteTextChatCategoryCommand = DeleteTextChatCategoryCommand = {}));