@purpleschool/multisite 0.0.34 → 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.
- package/api/controller/http/auth.ts +1 -0
- package/api/controller/http/catalog.ts +6 -0
- package/api/controller/http/file.ts +1 -0
- package/api/controller/http/index.ts +2 -0
- package/api/controller/http/text-chat.ts +18 -0
- package/api/routes.ts +1 -0
- package/build/api/controller/http/auth.d.ts +1 -0
- package/build/api/controller/http/auth.d.ts.map +1 -1
- package/build/api/controller/http/auth.js +1 -0
- package/build/api/controller/http/catalog.d.ts +7 -0
- package/build/api/controller/http/catalog.d.ts.map +1 -0
- package/build/api/controller/http/catalog.js +9 -0
- package/build/api/controller/http/file.d.ts +1 -0
- package/build/api/controller/http/file.d.ts.map +1 -1
- package/build/api/controller/http/file.js +1 -0
- package/build/api/controller/http/index.d.ts +2 -0
- package/build/api/controller/http/index.d.ts.map +1 -1
- package/build/api/controller/http/index.js +2 -0
- package/build/api/controller/http/text-chat.d.ts +18 -0
- package/build/api/controller/http/text-chat.d.ts.map +1 -0
- package/build/api/controller/http/text-chat.js +20 -0
- package/build/api/routes.d.ts +1 -0
- package/build/api/routes.d.ts.map +1 -1
- package/build/api/routes.js +1 -0
- package/build/commands/auth/change-password.command.d.ts +5 -0
- package/build/commands/auth/change-password.command.d.ts.map +1 -1
- package/build/commands/auth/change-password.command.js +1 -0
- package/build/commands/auth/index.d.ts +1 -0
- package/build/commands/auth/index.d.ts.map +1 -1
- package/build/commands/auth/index.js +1 -0
- package/build/commands/auth/login.command.d.ts +5 -0
- package/build/commands/auth/login.command.d.ts.map +1 -1
- package/build/commands/auth/login.command.js +1 -0
- package/build/commands/auth/refresh.command.d.ts +30 -0
- package/build/commands/auth/refresh.command.d.ts.map +1 -0
- package/build/commands/auth/refresh.command.js +15 -0
- package/build/commands/auth/register.command.d.ts +5 -0
- package/build/commands/auth/register.command.d.ts.map +1 -1
- package/build/commands/auth/register.command.js +1 -0
- package/build/commands/auth/reset-password.command.d.ts +5 -0
- package/build/commands/auth/reset-password.command.d.ts.map +1 -1
- package/build/commands/auth/reset-password.command.js +1 -0
- package/build/commands/auth/verify-email.command.d.ts.map +1 -1
- package/build/commands/auth/verify-email.command.js +2 -1
- package/build/commands/auth/vk-login.command.d.ts +5 -0
- package/build/commands/auth/vk-login.command.d.ts.map +1 -1
- package/build/commands/auth/vk-login.command.js +1 -0
- package/build/commands/auth/yandex-login.command.d.ts +5 -0
- package/build/commands/auth/yandex-login.command.d.ts.map +1 -1
- package/build/commands/auth/yandex-login.command.js +1 -0
- package/build/commands/catalog/index.d.ts +156 -0
- package/build/commands/catalog/index.d.ts.map +1 -0
- package/build/commands/catalog/index.js +23 -0
- package/build/commands/index.d.ts +2 -0
- package/build/commands/index.d.ts.map +1 -1
- package/build/commands/index.js +2 -0
- package/build/commands/page/create-page.command.d.ts +8 -0
- package/build/commands/page/create-page.command.d.ts.map +1 -1
- package/build/commands/page/find-page-by-alias.command.d.ts +16 -0
- package/build/commands/page/find-page-by-alias.command.d.ts.map +1 -1
- package/build/commands/page/find-page-by-criteria.command.d.ts +5 -0
- package/build/commands/page/find-page-by-criteria.command.d.ts.map +1 -1
- package/build/commands/page/find-page.command.d.ts +11 -0
- package/build/commands/page/find-page.command.d.ts.map +1 -1
- package/build/commands/page/update-page.command.d.ts +8 -0
- package/build/commands/page/update-page.command.d.ts.map +1 -1
- package/build/commands/product/fast-buy-product.command.d.ts.map +1 -1
- package/build/commands/product/fast-buy-product.command.js +2 -1
- package/build/commands/subscription/fast-buy-subscription.command.d.ts.map +1 -1
- package/build/commands/subscription/fast-buy-subscription.command.js +2 -1
- package/build/commands/text-chat/category.d.ts +321 -0
- package/build/commands/text-chat/category.d.ts.map +1 -0
- package/build/commands/text-chat/category.js +29 -0
- package/build/commands/text-chat/index.d.ts +292 -0
- package/build/commands/text-chat/index.d.ts.map +1 -0
- package/build/commands/text-chat/index.js +73 -0
- package/build/constants/catalog.d.ts +5 -0
- package/build/constants/catalog.d.ts.map +1 -0
- package/build/constants/catalog.js +8 -0
- package/build/constants/errors/errors.d.ts +77 -0
- package/build/constants/errors/errors.d.ts.map +1 -1
- package/build/constants/errors/errors.js +77 -0
- package/build/constants/files/enums/file-type.enum.d.ts +3 -1
- package/build/constants/files/enums/file-type.enum.d.ts.map +1 -1
- package/build/constants/files/enums/file-type.enum.js +2 -0
- package/build/constants/index.d.ts +3 -0
- package/build/constants/index.d.ts.map +1 -1
- package/build/constants/index.js +3 -0
- package/build/constants/text-chat/attachments.d.ts +12 -0
- package/build/constants/text-chat/attachments.d.ts.map +1 -0
- package/build/constants/text-chat/attachments.js +52 -0
- package/build/constants/text-chat/index.d.ts +38 -0
- package/build/constants/text-chat/index.d.ts.map +1 -0
- package/build/constants/text-chat/index.js +59 -0
- package/build/constants/text-provider/index.d.ts +37 -0
- package/build/constants/text-provider/index.d.ts.map +1 -0
- package/build/constants/text-provider/index.js +46 -0
- package/build/constants/tools/enums/tool-type.enum.d.ts +1 -0
- package/build/constants/tools/enums/tool-type.enum.d.ts.map +1 -1
- package/build/constants/tools/enums/tool-type.enum.js +1 -0
- package/build/helpers/index.d.ts +1 -0
- package/build/helpers/index.d.ts.map +1 -1
- package/build/helpers/index.js +1 -0
- package/build/helpers/text-chat/index.d.ts +23 -0
- package/build/helpers/text-chat/index.d.ts.map +1 -0
- package/build/helpers/text-chat/index.js +91 -0
- package/build/models/catalog/index.d.ts +181 -0
- package/build/models/catalog/index.d.ts.map +1 -0
- package/build/models/catalog/index.js +36 -0
- package/build/models/index.d.ts +2 -0
- package/build/models/index.d.ts.map +1 -1
- package/build/models/index.js +2 -0
- package/build/models/page.schema.d.ts +6 -0
- package/build/models/page.schema.d.ts.map +1 -1
- package/build/models/page.schema.js +1 -0
- package/build/models/text-chat/category.schema.d.ts +79 -0
- package/build/models/text-chat/category.schema.d.ts.map +1 -0
- package/build/models/text-chat/category.schema.js +38 -0
- package/build/models/text-chat/index.d.ts +319 -0
- package/build/models/text-chat/index.d.ts.map +1 -0
- package/build/models/text-chat/index.js +79 -0
- package/build/models/text-chat/provider-config.schema.d.ts +92 -0
- package/build/models/text-chat/provider-config.schema.d.ts.map +1 -0
- package/build/models/text-chat/provider-config.schema.js +42 -0
- package/build/models/text-chat/stream.schema.d.ts +83 -0
- package/build/models/text-chat/stream.schema.d.ts.map +1 -0
- package/build/models/text-chat/stream.schema.js +24 -0
- package/build/models/user.schema.d.ts +1 -0
- package/build/models/user.schema.d.ts.map +1 -1
- package/build/models/user.schema.js +3 -2
- package/build/queries/catalog/index.d.ts +259 -0
- package/build/queries/catalog/index.d.ts.map +1 -0
- package/build/queries/catalog/index.js +31 -0
- package/build/queries/index.d.ts +2 -0
- package/build/queries/index.d.ts.map +1 -1
- package/build/queries/index.js +2 -0
- package/build/queries/subscription/get-subscriptions-summary.command.d.ts +5 -0
- package/build/queries/subscription/get-subscriptions-summary.command.d.ts.map +1 -1
- package/build/queries/subscription/get-subscriptions-summary.command.js +1 -0
- package/build/queries/text-chat/category.d.ts +297 -0
- package/build/queries/text-chat/category.d.ts.map +1 -0
- package/build/queries/text-chat/category.js +45 -0
- package/build/queries/text-chat/index.d.ts +472 -0
- package/build/queries/text-chat/index.d.ts.map +1 -0
- package/build/queries/text-chat/index.js +61 -0
- package/commands/auth/change-password.command.ts +1 -0
- package/commands/auth/index.ts +1 -0
- package/commands/auth/login.command.ts +1 -0
- package/commands/auth/refresh.command.ts +15 -0
- package/commands/auth/register.command.ts +1 -0
- package/commands/auth/reset-password.command.ts +1 -0
- package/commands/auth/verify-email.command.ts +2 -1
- package/commands/auth/vk-login.command.ts +1 -0
- package/commands/auth/yandex-login.command.ts +1 -0
- package/commands/catalog/index.ts +26 -0
- package/commands/index.ts +2 -0
- package/commands/product/fast-buy-product.command.ts +2 -1
- package/commands/subscription/fast-buy-subscription.command.ts +2 -1
- package/commands/text-chat/category.ts +42 -0
- package/commands/text-chat/index.ts +71 -0
- package/constants/catalog.ts +4 -0
- package/constants/errors/errors.ts +78 -0
- package/constants/files/enums/file-type.enum.ts +2 -0
- package/constants/index.ts +3 -0
- package/constants/text-chat/attachments.ts +55 -0
- package/constants/text-chat/index.ts +43 -0
- package/constants/text-provider/index.ts +42 -0
- package/constants/tools/enums/tool-type.enum.ts +1 -0
- package/helpers/index.ts +1 -0
- package/helpers/text-chat/index.ts +91 -0
- package/models/catalog/index.ts +35 -0
- package/models/index.ts +2 -0
- package/models/page.schema.ts +1 -0
- package/models/text-chat/category.schema.ts +40 -0
- package/models/text-chat/index.ts +82 -0
- package/models/text-chat/provider-config.schema.ts +47 -0
- package/models/text-chat/stream.schema.ts +43 -0
- package/models/user.schema.ts +3 -1
- package/package.json +1 -1
- package/queries/catalog/index.ts +29 -0
- package/queries/index.ts +2 -0
- package/queries/subscription/get-subscriptions-summary.command.ts +1 -0
- package/queries/text-chat/category.ts +51 -0
- package/queries/text-chat/index.ts +56 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetCatalogCommand {
|
|
3
|
+
const ResponseSchema: z.ZodObject<{
|
|
4
|
+
data: z.ZodArray<z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
order: z.ZodNumber;
|
|
8
|
+
} & {
|
|
9
|
+
items: z.ZodArray<z.ZodObject<{
|
|
10
|
+
categoryId: z.ZodString;
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
order: z.ZodNumber;
|
|
13
|
+
page: z.ZodObject<{
|
|
14
|
+
uuid: z.ZodString;
|
|
15
|
+
alias: z.ZodString;
|
|
16
|
+
title: z.ZodString;
|
|
17
|
+
toolType: z.ZodNullable<z.ZodNativeEnum<typeof import("../..").TOOL_TYPE>>;
|
|
18
|
+
toolOptionId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
uuid: string;
|
|
21
|
+
alias: string;
|
|
22
|
+
title: string;
|
|
23
|
+
toolType: import("../..").TOOL_TYPE | null;
|
|
24
|
+
toolOptionId: string | null;
|
|
25
|
+
}, {
|
|
26
|
+
uuid: string;
|
|
27
|
+
alias: string;
|
|
28
|
+
title: string;
|
|
29
|
+
toolType: import("../..").TOOL_TYPE | null;
|
|
30
|
+
toolOptionId: string | null;
|
|
31
|
+
}>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
categoryId: string;
|
|
34
|
+
title: string;
|
|
35
|
+
order: number;
|
|
36
|
+
page: {
|
|
37
|
+
uuid: string;
|
|
38
|
+
alias: string;
|
|
39
|
+
title: string;
|
|
40
|
+
toolType: import("../..").TOOL_TYPE | null;
|
|
41
|
+
toolOptionId: string | null;
|
|
42
|
+
};
|
|
43
|
+
}, {
|
|
44
|
+
categoryId: string;
|
|
45
|
+
title: string;
|
|
46
|
+
order: number;
|
|
47
|
+
page: {
|
|
48
|
+
uuid: string;
|
|
49
|
+
alias: string;
|
|
50
|
+
title: string;
|
|
51
|
+
toolType: import("../..").TOOL_TYPE | null;
|
|
52
|
+
toolOptionId: string | null;
|
|
53
|
+
};
|
|
54
|
+
}>, "many">;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
uuid: string;
|
|
57
|
+
title: string;
|
|
58
|
+
order: number;
|
|
59
|
+
items: {
|
|
60
|
+
categoryId: string;
|
|
61
|
+
title: string;
|
|
62
|
+
order: number;
|
|
63
|
+
page: {
|
|
64
|
+
uuid: string;
|
|
65
|
+
alias: string;
|
|
66
|
+
title: string;
|
|
67
|
+
toolType: import("../..").TOOL_TYPE | null;
|
|
68
|
+
toolOptionId: string | null;
|
|
69
|
+
};
|
|
70
|
+
}[];
|
|
71
|
+
}, {
|
|
72
|
+
uuid: string;
|
|
73
|
+
title: string;
|
|
74
|
+
order: number;
|
|
75
|
+
items: {
|
|
76
|
+
categoryId: string;
|
|
77
|
+
title: string;
|
|
78
|
+
order: number;
|
|
79
|
+
page: {
|
|
80
|
+
uuid: string;
|
|
81
|
+
alias: string;
|
|
82
|
+
title: string;
|
|
83
|
+
toolType: import("../..").TOOL_TYPE | null;
|
|
84
|
+
toolOptionId: string | null;
|
|
85
|
+
};
|
|
86
|
+
}[];
|
|
87
|
+
}>, "many">;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
data: {
|
|
90
|
+
uuid: string;
|
|
91
|
+
title: string;
|
|
92
|
+
order: number;
|
|
93
|
+
items: {
|
|
94
|
+
categoryId: string;
|
|
95
|
+
title: string;
|
|
96
|
+
order: number;
|
|
97
|
+
page: {
|
|
98
|
+
uuid: string;
|
|
99
|
+
alias: string;
|
|
100
|
+
title: string;
|
|
101
|
+
toolType: import("../..").TOOL_TYPE | null;
|
|
102
|
+
toolOptionId: string | null;
|
|
103
|
+
};
|
|
104
|
+
}[];
|
|
105
|
+
}[];
|
|
106
|
+
}, {
|
|
107
|
+
data: {
|
|
108
|
+
uuid: string;
|
|
109
|
+
title: string;
|
|
110
|
+
order: number;
|
|
111
|
+
items: {
|
|
112
|
+
categoryId: string;
|
|
113
|
+
title: string;
|
|
114
|
+
order: number;
|
|
115
|
+
page: {
|
|
116
|
+
uuid: string;
|
|
117
|
+
alias: string;
|
|
118
|
+
title: string;
|
|
119
|
+
toolType: import("../..").TOOL_TYPE | null;
|
|
120
|
+
toolOptionId: string | null;
|
|
121
|
+
};
|
|
122
|
+
}[];
|
|
123
|
+
}[];
|
|
124
|
+
}>;
|
|
125
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
126
|
+
}
|
|
127
|
+
export declare namespace GetCatalogGroupCommand {
|
|
128
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
129
|
+
uuid: z.ZodString;
|
|
130
|
+
}, "strict", z.ZodTypeAny, {
|
|
131
|
+
uuid: string;
|
|
132
|
+
}, {
|
|
133
|
+
uuid: string;
|
|
134
|
+
}>;
|
|
135
|
+
const ResponseSchema: z.ZodObject<{
|
|
136
|
+
data: z.ZodObject<{
|
|
137
|
+
uuid: z.ZodString;
|
|
138
|
+
title: z.ZodString;
|
|
139
|
+
order: z.ZodNumber;
|
|
140
|
+
} & {
|
|
141
|
+
siteId: z.ZodString;
|
|
142
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
143
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
uuid: string;
|
|
146
|
+
title: string;
|
|
147
|
+
order: number;
|
|
148
|
+
siteId: string;
|
|
149
|
+
createdAt: string | Date;
|
|
150
|
+
updatedAt: string | Date;
|
|
151
|
+
}, {
|
|
152
|
+
uuid: string;
|
|
153
|
+
title: string;
|
|
154
|
+
order: number;
|
|
155
|
+
siteId: string;
|
|
156
|
+
createdAt: string | Date;
|
|
157
|
+
updatedAt: string | Date;
|
|
158
|
+
}>;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
data: {
|
|
161
|
+
uuid: string;
|
|
162
|
+
title: string;
|
|
163
|
+
order: number;
|
|
164
|
+
siteId: string;
|
|
165
|
+
createdAt: string | Date;
|
|
166
|
+
updatedAt: string | Date;
|
|
167
|
+
};
|
|
168
|
+
}, {
|
|
169
|
+
data: {
|
|
170
|
+
uuid: string;
|
|
171
|
+
title: string;
|
|
172
|
+
order: number;
|
|
173
|
+
siteId: string;
|
|
174
|
+
createdAt: string | Date;
|
|
175
|
+
updatedAt: string | Date;
|
|
176
|
+
};
|
|
177
|
+
}>;
|
|
178
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
179
|
+
}
|
|
180
|
+
export declare namespace FindCatalogGroupsCommand {
|
|
181
|
+
const RequestQuerySchema: z.ZodObject<{
|
|
182
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
183
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
184
|
+
}, "strict", z.ZodTypeAny, {
|
|
185
|
+
limit: number;
|
|
186
|
+
offset: number;
|
|
187
|
+
}, {
|
|
188
|
+
limit?: number | undefined;
|
|
189
|
+
offset?: number | undefined;
|
|
190
|
+
}>;
|
|
191
|
+
const ResponseSchema: z.ZodObject<{
|
|
192
|
+
data: z.ZodArray<z.ZodObject<{
|
|
193
|
+
uuid: z.ZodString;
|
|
194
|
+
title: z.ZodString;
|
|
195
|
+
order: z.ZodNumber;
|
|
196
|
+
} & {
|
|
197
|
+
siteId: z.ZodString;
|
|
198
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
199
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
uuid: string;
|
|
202
|
+
title: string;
|
|
203
|
+
order: number;
|
|
204
|
+
siteId: string;
|
|
205
|
+
createdAt: string | Date;
|
|
206
|
+
updatedAt: string | Date;
|
|
207
|
+
}, {
|
|
208
|
+
uuid: string;
|
|
209
|
+
title: string;
|
|
210
|
+
order: number;
|
|
211
|
+
siteId: string;
|
|
212
|
+
createdAt: string | Date;
|
|
213
|
+
updatedAt: string | Date;
|
|
214
|
+
}>, "many">;
|
|
215
|
+
meta: z.ZodObject<{
|
|
216
|
+
limit: z.ZodNumber;
|
|
217
|
+
offset: z.ZodNumber;
|
|
218
|
+
total: z.ZodNumber;
|
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
|
+
limit: number;
|
|
221
|
+
offset: number;
|
|
222
|
+
total: number;
|
|
223
|
+
}, {
|
|
224
|
+
limit: number;
|
|
225
|
+
offset: number;
|
|
226
|
+
total: number;
|
|
227
|
+
}>;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
data: {
|
|
230
|
+
uuid: string;
|
|
231
|
+
title: string;
|
|
232
|
+
order: number;
|
|
233
|
+
siteId: string;
|
|
234
|
+
createdAt: string | Date;
|
|
235
|
+
updatedAt: string | Date;
|
|
236
|
+
}[];
|
|
237
|
+
meta: {
|
|
238
|
+
limit: number;
|
|
239
|
+
offset: number;
|
|
240
|
+
total: number;
|
|
241
|
+
};
|
|
242
|
+
}, {
|
|
243
|
+
data: {
|
|
244
|
+
uuid: string;
|
|
245
|
+
title: string;
|
|
246
|
+
order: number;
|
|
247
|
+
siteId: string;
|
|
248
|
+
createdAt: string | Date;
|
|
249
|
+
updatedAt: string | Date;
|
|
250
|
+
}[];
|
|
251
|
+
meta: {
|
|
252
|
+
limit: number;
|
|
253
|
+
offset: number;
|
|
254
|
+
total: number;
|
|
255
|
+
};
|
|
256
|
+
}>;
|
|
257
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
258
|
+
}
|
|
259
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../queries/catalog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAwD,CAAC;IACpF,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD;AACD,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,mBAAmB;;;;;;MAAiD,CAAC;IAC3E,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA8C,CAAC;IAC1E,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD;AACD,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,kBAAkB;;;;;;;;;MAKlB,CAAC;IACP,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindCatalogGroupsCommand = exports.GetCatalogGroupCommand = exports.GetCatalogCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const catalog_1 = require("../../models/catalog");
|
|
6
|
+
var GetCatalogCommand;
|
|
7
|
+
(function (GetCatalogCommand) {
|
|
8
|
+
GetCatalogCommand.ResponseSchema = zod_1.z.object({ data: zod_1.z.array(catalog_1.PublicCatalogGroupSchema) });
|
|
9
|
+
})(GetCatalogCommand || (exports.GetCatalogCommand = GetCatalogCommand = {}));
|
|
10
|
+
var GetCatalogGroupCommand;
|
|
11
|
+
(function (GetCatalogGroupCommand) {
|
|
12
|
+
GetCatalogGroupCommand.RequestParamsSchema = zod_1.z.object({ uuid: zod_1.z.string().uuid() }).strict();
|
|
13
|
+
GetCatalogGroupCommand.ResponseSchema = zod_1.z.object({ data: catalog_1.CatalogGroupAdminSchema });
|
|
14
|
+
})(GetCatalogGroupCommand || (exports.GetCatalogGroupCommand = GetCatalogGroupCommand = {}));
|
|
15
|
+
var FindCatalogGroupsCommand;
|
|
16
|
+
(function (FindCatalogGroupsCommand) {
|
|
17
|
+
FindCatalogGroupsCommand.RequestQuerySchema = zod_1.z
|
|
18
|
+
.object({
|
|
19
|
+
limit: zod_1.z.coerce.number().int().min(1).max(100).default(20),
|
|
20
|
+
offset: zod_1.z.coerce.number().int().min(0).default(0),
|
|
21
|
+
})
|
|
22
|
+
.strict();
|
|
23
|
+
FindCatalogGroupsCommand.ResponseSchema = zod_1.z.object({
|
|
24
|
+
data: zod_1.z.array(catalog_1.CatalogGroupAdminSchema),
|
|
25
|
+
meta: zod_1.z.object({
|
|
26
|
+
limit: zod_1.z.number().int().positive(),
|
|
27
|
+
offset: zod_1.z.number().int().nonnegative(),
|
|
28
|
+
total: zod_1.z.number().int().nonnegative(),
|
|
29
|
+
}),
|
|
30
|
+
});
|
|
31
|
+
})(FindCatalogGroupsCommand || (exports.FindCatalogGroupsCommand = FindCatalogGroupsCommand = {}));
|
package/build/queries/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
package/build/queries/index.js
CHANGED
|
@@ -26,3 +26,5 @@ __exportStar(require("./page"), exports);
|
|
|
26
26
|
__exportStar(require("./marketplace-card"), exports);
|
|
27
27
|
__exportStar(require("./stt"), exports);
|
|
28
28
|
__exportStar(require("./tts"), exports);
|
|
29
|
+
__exportStar(require("./text-chat"), exports);
|
|
30
|
+
__exportStar(require("./catalog"), exports);
|
|
@@ -9,6 +9,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
9
9
|
carriedOverTokenBalance: z.ZodNumber;
|
|
10
10
|
status: z.ZodNativeEnum<typeof USER_TO_SUBSCRIPTION_STATUS>;
|
|
11
11
|
active: z.ZodBoolean;
|
|
12
|
+
endDate: z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
12
13
|
createdAt: z.ZodUnion<[z.ZodDate, z.ZodString]>;
|
|
13
14
|
subscription: z.ZodObject<{
|
|
14
15
|
uuid: z.ZodString;
|
|
@@ -69,6 +70,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
69
70
|
carriedOverTokenBalance: number;
|
|
70
71
|
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
71
72
|
active: boolean;
|
|
73
|
+
endDate: string | Date | null;
|
|
72
74
|
createdAt: string | Date;
|
|
73
75
|
subscription: {
|
|
74
76
|
uuid: string;
|
|
@@ -93,6 +95,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
93
95
|
carriedOverTokenBalance: number;
|
|
94
96
|
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
95
97
|
active: boolean;
|
|
98
|
+
endDate: string | Date | null;
|
|
96
99
|
createdAt: string | Date;
|
|
97
100
|
subscription: {
|
|
98
101
|
uuid: string;
|
|
@@ -215,6 +218,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
215
218
|
carriedOverTokenBalance: number;
|
|
216
219
|
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
217
220
|
active: boolean;
|
|
221
|
+
endDate: string | Date | null;
|
|
218
222
|
createdAt: string | Date;
|
|
219
223
|
subscription: {
|
|
220
224
|
uuid: string;
|
|
@@ -265,6 +269,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
265
269
|
carriedOverTokenBalance: number;
|
|
266
270
|
status: USER_TO_SUBSCRIPTION_STATUS;
|
|
267
271
|
active: boolean;
|
|
272
|
+
endDate: string | Date | null;
|
|
268
273
|
createdAt: string | Date;
|
|
269
274
|
subscription: {
|
|
270
275
|
uuid: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subscriptions-summary.command.d.ts","sourceRoot":"","sources":["../../../queries/subscription/get-subscriptions-summary.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-subscriptions-summary.command.d.ts","sourceRoot":"","sources":["../../../queries/subscription/get-subscriptions-summary.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AA6BtF,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -15,6 +15,7 @@ const UserToSubscriptionSummarySchema = zod_1.z.object({
|
|
|
15
15
|
carriedOverTokenBalance: zod_1.z.number().int(),
|
|
16
16
|
status: zod_1.z.nativeEnum(constants_1.USER_TO_SUBSCRIPTION_STATUS),
|
|
17
17
|
active: zod_1.z.boolean(),
|
|
18
|
+
endDate: zod_1.z.date().or(zod_1.z.string().datetime()).nullable(),
|
|
18
19
|
createdAt: zod_1.z.date().or(zod_1.z.string().datetime()),
|
|
19
20
|
subscription: models_1.SubscriptionSchema,
|
|
20
21
|
});
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { TOOL_TYPE } from '../../constants/tools';
|
|
3
|
+
import { TEXT_CHAT_CATEGORY_SCOPE } from '../../constants/text-chat';
|
|
4
|
+
export declare namespace FindTextChatCategoriesCommand {
|
|
5
|
+
const RequestQuerySchema: z.ZodObject<{
|
|
6
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
7
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
8
|
+
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
limit: number;
|
|
10
|
+
offset: number;
|
|
11
|
+
}, {
|
|
12
|
+
limit?: number | undefined;
|
|
13
|
+
offset?: number | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
16
|
+
const ResponseSchema: z.ZodObject<{
|
|
17
|
+
data: z.ZodArray<z.ZodObject<{
|
|
18
|
+
uuid: z.ZodString;
|
|
19
|
+
title: z.ZodString;
|
|
20
|
+
placeholder: z.ZodString;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
uuid: string;
|
|
23
|
+
title: string;
|
|
24
|
+
placeholder: string;
|
|
25
|
+
}, {
|
|
26
|
+
uuid: string;
|
|
27
|
+
title: string;
|
|
28
|
+
placeholder: string;
|
|
29
|
+
}>, "many">;
|
|
30
|
+
meta: z.ZodObject<{
|
|
31
|
+
limit: z.ZodNumber;
|
|
32
|
+
offset: z.ZodNumber;
|
|
33
|
+
total: z.ZodNumber;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
limit: number;
|
|
36
|
+
offset: number;
|
|
37
|
+
total: number;
|
|
38
|
+
}, {
|
|
39
|
+
limit: number;
|
|
40
|
+
offset: number;
|
|
41
|
+
total: number;
|
|
42
|
+
}>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
data: {
|
|
45
|
+
uuid: string;
|
|
46
|
+
title: string;
|
|
47
|
+
placeholder: string;
|
|
48
|
+
}[];
|
|
49
|
+
meta: {
|
|
50
|
+
limit: number;
|
|
51
|
+
offset: number;
|
|
52
|
+
total: number;
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
data: {
|
|
56
|
+
uuid: string;
|
|
57
|
+
title: string;
|
|
58
|
+
placeholder: string;
|
|
59
|
+
}[];
|
|
60
|
+
meta: {
|
|
61
|
+
limit: number;
|
|
62
|
+
offset: number;
|
|
63
|
+
total: number;
|
|
64
|
+
};
|
|
65
|
+
}>;
|
|
66
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
67
|
+
}
|
|
68
|
+
export declare namespace GetTextChatCategoryCommand {
|
|
69
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
70
|
+
uuid: z.ZodString;
|
|
71
|
+
}, "strict", z.ZodTypeAny, {
|
|
72
|
+
uuid: string;
|
|
73
|
+
}, {
|
|
74
|
+
uuid: string;
|
|
75
|
+
}>;
|
|
76
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
77
|
+
const ResponseSchema: z.ZodObject<{
|
|
78
|
+
data: z.ZodObject<{
|
|
79
|
+
uuid: z.ZodString;
|
|
80
|
+
title: z.ZodString;
|
|
81
|
+
placeholder: z.ZodString;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
uuid: string;
|
|
84
|
+
title: string;
|
|
85
|
+
placeholder: string;
|
|
86
|
+
}, {
|
|
87
|
+
uuid: string;
|
|
88
|
+
title: string;
|
|
89
|
+
placeholder: string;
|
|
90
|
+
}>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
data: {
|
|
93
|
+
uuid: string;
|
|
94
|
+
title: string;
|
|
95
|
+
placeholder: string;
|
|
96
|
+
};
|
|
97
|
+
}, {
|
|
98
|
+
data: {
|
|
99
|
+
uuid: string;
|
|
100
|
+
title: string;
|
|
101
|
+
placeholder: string;
|
|
102
|
+
};
|
|
103
|
+
}>;
|
|
104
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
105
|
+
}
|
|
106
|
+
export declare namespace FindAdminTextChatCategoriesCommand {
|
|
107
|
+
const RequestQuerySchema: z.ZodObject<{
|
|
108
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
109
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
110
|
+
} & {
|
|
111
|
+
toolType: z.ZodOptional<z.ZodNativeEnum<typeof TOOL_TYPE>>;
|
|
112
|
+
scope: z.ZodDefault<z.ZodNativeEnum<typeof TEXT_CHAT_CATEGORY_SCOPE>>;
|
|
113
|
+
}, "strict", z.ZodTypeAny, {
|
|
114
|
+
limit: number;
|
|
115
|
+
offset: number;
|
|
116
|
+
toolType?: TOOL_TYPE | undefined;
|
|
117
|
+
scope: TEXT_CHAT_CATEGORY_SCOPE;
|
|
118
|
+
}, {
|
|
119
|
+
limit?: number | undefined;
|
|
120
|
+
offset?: number | undefined;
|
|
121
|
+
toolType?: TOOL_TYPE | undefined;
|
|
122
|
+
scope?: TEXT_CHAT_CATEGORY_SCOPE | undefined;
|
|
123
|
+
}>;
|
|
124
|
+
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
125
|
+
const ResponseSchema: z.ZodObject<{
|
|
126
|
+
data: z.ZodArray<z.ZodObject<{
|
|
127
|
+
uuid: z.ZodString;
|
|
128
|
+
title: z.ZodString;
|
|
129
|
+
placeholder: z.ZodString;
|
|
130
|
+
} & {
|
|
131
|
+
siteId: z.ZodString;
|
|
132
|
+
toolType: z.ZodDefault<z.ZodEnum<[TOOL_TYPE.TEXT, TOOL_TYPE.IMAGE_GENERATION, TOOL_TYPE.IMAGE_EDITOR]>>;
|
|
133
|
+
groupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
134
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
135
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
136
|
+
archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
137
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
138
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
uuid: string;
|
|
141
|
+
title: string;
|
|
142
|
+
placeholder: string;
|
|
143
|
+
siteId: string;
|
|
144
|
+
toolType: TOOL_TYPE.TEXT | TOOL_TYPE.IMAGE_GENERATION | TOOL_TYPE.IMAGE_EDITOR;
|
|
145
|
+
groupId: string | null;
|
|
146
|
+
order: number;
|
|
147
|
+
prompt: string | null;
|
|
148
|
+
archivedAt: string | Date | null;
|
|
149
|
+
createdAt: string | Date;
|
|
150
|
+
updatedAt: string | Date;
|
|
151
|
+
}, {
|
|
152
|
+
uuid: string;
|
|
153
|
+
title: string;
|
|
154
|
+
placeholder: string;
|
|
155
|
+
siteId: string;
|
|
156
|
+
toolType?: TOOL_TYPE.TEXT | TOOL_TYPE.IMAGE_GENERATION | TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
157
|
+
groupId?: string | null | undefined;
|
|
158
|
+
order?: number | undefined;
|
|
159
|
+
prompt: string | null;
|
|
160
|
+
archivedAt: string | Date | null;
|
|
161
|
+
createdAt: string | Date;
|
|
162
|
+
updatedAt: string | Date;
|
|
163
|
+
}>, "many">;
|
|
164
|
+
meta: z.ZodObject<{
|
|
165
|
+
limit: z.ZodNumber;
|
|
166
|
+
offset: z.ZodNumber;
|
|
167
|
+
total: z.ZodNumber;
|
|
168
|
+
}, "strip", z.ZodTypeAny, {
|
|
169
|
+
limit: number;
|
|
170
|
+
offset: number;
|
|
171
|
+
total: number;
|
|
172
|
+
}, {
|
|
173
|
+
limit: number;
|
|
174
|
+
offset: number;
|
|
175
|
+
total: number;
|
|
176
|
+
}>;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
data: {
|
|
179
|
+
uuid: string;
|
|
180
|
+
title: string;
|
|
181
|
+
placeholder: string;
|
|
182
|
+
siteId: string;
|
|
183
|
+
toolType: TOOL_TYPE.TEXT | TOOL_TYPE.IMAGE_GENERATION | TOOL_TYPE.IMAGE_EDITOR;
|
|
184
|
+
groupId: string | null;
|
|
185
|
+
order: number;
|
|
186
|
+
prompt: string | null;
|
|
187
|
+
archivedAt: string | Date | null;
|
|
188
|
+
createdAt: string | Date;
|
|
189
|
+
updatedAt: string | Date;
|
|
190
|
+
}[];
|
|
191
|
+
meta: {
|
|
192
|
+
limit: number;
|
|
193
|
+
offset: number;
|
|
194
|
+
total: number;
|
|
195
|
+
};
|
|
196
|
+
}, {
|
|
197
|
+
data: {
|
|
198
|
+
uuid: string;
|
|
199
|
+
title: string;
|
|
200
|
+
placeholder: string;
|
|
201
|
+
siteId: string;
|
|
202
|
+
toolType?: TOOL_TYPE.TEXT | TOOL_TYPE.IMAGE_GENERATION | TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
203
|
+
groupId?: string | null | undefined;
|
|
204
|
+
order?: number | undefined;
|
|
205
|
+
prompt: string | null;
|
|
206
|
+
archivedAt: string | Date | null;
|
|
207
|
+
createdAt: string | Date;
|
|
208
|
+
updatedAt: string | Date;
|
|
209
|
+
}[];
|
|
210
|
+
meta: {
|
|
211
|
+
limit: number;
|
|
212
|
+
offset: number;
|
|
213
|
+
total: number;
|
|
214
|
+
};
|
|
215
|
+
}>;
|
|
216
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
217
|
+
}
|
|
218
|
+
export declare namespace GetAdminTextChatCategoryCommand {
|
|
219
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
220
|
+
uuid: z.ZodString;
|
|
221
|
+
}, "strict", z.ZodTypeAny, {
|
|
222
|
+
uuid: string;
|
|
223
|
+
}, {
|
|
224
|
+
uuid: string;
|
|
225
|
+
}>;
|
|
226
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
227
|
+
const ResponseSchema: z.ZodObject<{
|
|
228
|
+
data: z.ZodObject<{
|
|
229
|
+
uuid: z.ZodString;
|
|
230
|
+
title: z.ZodString;
|
|
231
|
+
placeholder: z.ZodString;
|
|
232
|
+
} & {
|
|
233
|
+
siteId: z.ZodString;
|
|
234
|
+
toolType: z.ZodDefault<z.ZodEnum<[TOOL_TYPE.TEXT, TOOL_TYPE.IMAGE_GENERATION, TOOL_TYPE.IMAGE_EDITOR]>>;
|
|
235
|
+
groupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
236
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
237
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
238
|
+
archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
239
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
240
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
uuid: string;
|
|
243
|
+
title: string;
|
|
244
|
+
placeholder: string;
|
|
245
|
+
siteId: string;
|
|
246
|
+
toolType: TOOL_TYPE.TEXT | TOOL_TYPE.IMAGE_GENERATION | TOOL_TYPE.IMAGE_EDITOR;
|
|
247
|
+
groupId: string | null;
|
|
248
|
+
order: number;
|
|
249
|
+
prompt: string | null;
|
|
250
|
+
archivedAt: string | Date | null;
|
|
251
|
+
createdAt: string | Date;
|
|
252
|
+
updatedAt: string | Date;
|
|
253
|
+
}, {
|
|
254
|
+
uuid: string;
|
|
255
|
+
title: string;
|
|
256
|
+
placeholder: string;
|
|
257
|
+
siteId: string;
|
|
258
|
+
toolType?: TOOL_TYPE.TEXT | TOOL_TYPE.IMAGE_GENERATION | TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
259
|
+
groupId?: string | null | undefined;
|
|
260
|
+
order?: number | undefined;
|
|
261
|
+
prompt: string | null;
|
|
262
|
+
archivedAt: string | Date | null;
|
|
263
|
+
createdAt: string | Date;
|
|
264
|
+
updatedAt: string | Date;
|
|
265
|
+
}>;
|
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
|
+
data: {
|
|
268
|
+
uuid: string;
|
|
269
|
+
title: string;
|
|
270
|
+
placeholder: string;
|
|
271
|
+
siteId: string;
|
|
272
|
+
toolType: TOOL_TYPE.TEXT | TOOL_TYPE.IMAGE_GENERATION | TOOL_TYPE.IMAGE_EDITOR;
|
|
273
|
+
groupId: string | null;
|
|
274
|
+
order: number;
|
|
275
|
+
prompt: string | null;
|
|
276
|
+
archivedAt: string | Date | null;
|
|
277
|
+
createdAt: string | Date;
|
|
278
|
+
updatedAt: string | Date;
|
|
279
|
+
};
|
|
280
|
+
}, {
|
|
281
|
+
data: {
|
|
282
|
+
uuid: string;
|
|
283
|
+
title: string;
|
|
284
|
+
placeholder: string;
|
|
285
|
+
siteId: string;
|
|
286
|
+
toolType?: TOOL_TYPE.TEXT | TOOL_TYPE.IMAGE_GENERATION | TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
287
|
+
groupId?: string | null | undefined;
|
|
288
|
+
order?: number | undefined;
|
|
289
|
+
prompt: string | null;
|
|
290
|
+
archivedAt: string | Date | null;
|
|
291
|
+
createdAt: string | Date;
|
|
292
|
+
updatedAt: string | Date;
|
|
293
|
+
};
|
|
294
|
+
}>;
|
|
295
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
296
|
+
}
|
|
297
|
+
//# sourceMappingURL=category.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../queries/text-chat/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAgBrE,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,kBAAkB;;;;;;;;;MAA4B,CAAC;IAC5D,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAGzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD;AACD,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,mBAAmB;;;;;;MAAiD,CAAC;IAClF,KAAY,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;IACzD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;MAAmD,CAAC;IAC/E,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD;AACD,yBAAiB,kCAAkC,CAAC;IACzC,MAAM,kBAAkB;;;;;;;;;;;;;;;;MAGpB,CAAC;IACZ,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAGzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD;AACD,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,mBAAmB;;;;;;MAAiD,CAAC;IAClF,KAAY,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;IACzD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkD,CAAC;IAC9E,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|