@ai-grator/api 0.3.77 → 0.3.79
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/admin/endpoints/admin.ts +16 -0
- package/admin/endpoints/commands/create-admin-preset-category.command.ts +29 -0
- package/admin/endpoints/commands/create-admin-preset.command.ts +30 -0
- package/admin/endpoints/commands/delete-admin-preset-category.command.ts +29 -0
- package/admin/endpoints/commands/delete-admin-preset.command.ts +28 -0
- package/admin/endpoints/commands/index.ts +9 -0
- package/admin/endpoints/commands/probe-admin-trend-reference-video.command.ts +1 -0
- package/admin/endpoints/commands/reorder-admin-preset-categories.command.ts +33 -0
- package/admin/endpoints/commands/reorder-admin-presets.command.ts +33 -0
- package/admin/endpoints/commands/update-admin-preset-category.command.ts +36 -0
- package/admin/endpoints/commands/update-admin-preset-status.command.ts +37 -0
- package/admin/endpoints/commands/update-admin-preset.command.ts +36 -0
- package/admin/endpoints/queries/get-admin-preset-categories.query.ts +22 -0
- package/admin/endpoints/queries/get-admin-preset.query.ts +29 -0
- package/admin/endpoints/queries/get-admin-presets.query.ts +37 -0
- package/admin/endpoints/queries/index.ts +3 -0
- package/admin/models/admin-preset-category-response.schema.ts +14 -0
- package/admin/models/admin-preset-response.schema.ts +67 -0
- package/admin/models/index.ts +2 -0
- package/build/admin/endpoints/admin.d.ts +12 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -1
- package/build/admin/endpoints/admin.js +14 -0
- package/build/admin/endpoints/commands/create-admin-preset-category.command.d.ts +51 -0
- package/build/admin/endpoints/commands/create-admin-preset-category.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/create-admin-preset-category.command.js +25 -0
- package/build/admin/endpoints/commands/create-admin-preset.command.d.ts +490 -0
- package/build/admin/endpoints/commands/create-admin-preset.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/create-admin-preset.command.js +26 -0
- package/build/admin/endpoints/commands/delete-admin-preset-category.command.d.ts +27 -0
- package/build/admin/endpoints/commands/delete-admin-preset-category.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/delete-admin-preset-category.command.js +26 -0
- package/build/admin/endpoints/commands/delete-admin-preset.command.d.ts +26 -0
- package/build/admin/endpoints/commands/delete-admin-preset.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/delete-admin-preset.command.js +25 -0
- package/build/admin/endpoints/commands/index.d.ts +9 -0
- package/build/admin/endpoints/commands/index.d.ts.map +1 -1
- package/build/admin/endpoints/commands/index.js +9 -0
- package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.d.ts +2 -0
- package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.d.ts.map +1 -1
- package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.js +1 -0
- package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.d.ts +26 -0
- package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.js +28 -0
- package/build/admin/endpoints/commands/reorder-admin-presets.command.d.ts +29 -0
- package/build/admin/endpoints/commands/reorder-admin-presets.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/reorder-admin-presets.command.js +30 -0
- package/build/admin/endpoints/commands/update-admin-preset-category.command.d.ts +59 -0
- package/build/admin/endpoints/commands/update-admin-preset-category.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-preset-category.command.js +31 -0
- package/build/admin/endpoints/commands/update-admin-preset-status.command.d.ts +312 -0
- package/build/admin/endpoints/commands/update-admin-preset-status.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-preset-status.command.js +32 -0
- package/build/admin/endpoints/commands/update-admin-preset.command.d.ts +497 -0
- package/build/admin/endpoints/commands/update-admin-preset.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-preset.command.js +31 -0
- package/build/admin/endpoints/queries/get-admin-preset-categories.query.d.ts +38 -0
- package/build/admin/endpoints/queries/get-admin-preset-categories.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-preset-categories.query.js +21 -0
- package/build/admin/endpoints/queries/get-admin-preset.query.d.ts +304 -0
- package/build/admin/endpoints/queries/get-admin-preset.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-preset.query.js +26 -0
- package/build/admin/endpoints/queries/get-admin-presets.query.d.ts +141 -0
- package/build/admin/endpoints/queries/get-admin-presets.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-presets.query.js +34 -0
- package/build/admin/endpoints/queries/index.d.ts +3 -0
- package/build/admin/endpoints/queries/index.d.ts.map +1 -1
- package/build/admin/endpoints/queries/index.js +3 -0
- package/build/admin/models/admin-preset-category-response.schema.d.ts +13 -0
- package/build/admin/models/admin-preset-category-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-preset-category-response.schema.js +14 -0
- package/build/admin/models/admin-preset-response.schema.d.ts +205 -0
- package/build/admin/models/admin-preset-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-preset-response.schema.js +52 -0
- package/build/admin/models/index.d.ts +2 -0
- package/build/admin/models/index.d.ts.map +1 -1
- package/build/admin/models/index.js +2 -0
- package/build/chat/endpoints/commands/create-chat.command.d.ts +8 -0
- package/build/chat/endpoints/commands/create-chat.command.d.ts.map +1 -1
- package/build/chat/endpoints/commands/update-chat.command.d.ts +8 -0
- package/build/chat/endpoints/commands/update-chat.command.d.ts.map +1 -1
- package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts +8 -0
- package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts.map +1 -1
- package/build/chat/endpoints/queries/get-chats.query.d.ts +10 -0
- package/build/chat/endpoints/queries/get-chats.query.d.ts.map +1 -1
- package/build/chat/endpoints/queries/get-chats.query.js +4 -1
- package/build/chat/models/chat-response.schema.d.ts +4 -0
- package/build/chat/models/chat-response.schema.d.ts.map +1 -1
- package/build/chat/models/chat-response.schema.js +2 -0
- package/build/errors/errors.d.ts +207 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +207 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts +8 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts.map +1 -1
- package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts +8 -0
- package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts.map +1 -1
- package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts +8 -0
- package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts.map +1 -1
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts +14 -0
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts.map +1 -1
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.js +2 -0
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts +10 -0
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts.map +1 -1
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.js +2 -0
- package/build/generation-job/models/generation-job-response.schema.d.ts +4 -0
- package/build/generation-job/models/generation-job-response.schema.d.ts.map +1 -1
- package/build/generation-job/models/generation-job-response.schema.js +2 -0
- package/build/generation-job/models/index.d.ts +1 -0
- package/build/generation-job/models/index.d.ts.map +1 -1
- package/build/generation-job/models/index.js +1 -0
- package/build/generation-job/models/seedance-2_5-params.schema.d.ts +50 -0
- package/build/generation-job/models/seedance-2_5-params.schema.d.ts.map +1 -0
- package/build/generation-job/models/seedance-2_5-params.schema.js +30 -0
- package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts +8 -0
- package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts.map +1 -1
- package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts +8 -0
- package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts.map +1 -1
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts +8 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts.map +1 -1
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts +10 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts.map +1 -1
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.js +2 -0
- package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts +4 -0
- package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts.map +1 -1
- package/build/generation-job-chat/models/generation-job-chat-response.schema.js +2 -0
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/preset/endpoints/commands/add-preset-favorite.command.d.ts +25 -0
- package/build/preset/endpoints/commands/add-preset-favorite.command.d.ts.map +1 -0
- package/build/preset/endpoints/commands/add-preset-favorite.command.js +22 -0
- package/build/preset/endpoints/commands/index.d.ts +5 -0
- package/build/preset/endpoints/commands/index.d.ts.map +1 -0
- package/build/preset/endpoints/commands/index.js +20 -0
- package/build/preset/endpoints/commands/prepare-preset.command.d.ts +198 -0
- package/build/preset/endpoints/commands/prepare-preset.command.d.ts.map +1 -0
- package/build/preset/endpoints/commands/prepare-preset.command.js +41 -0
- package/build/preset/endpoints/commands/remove-preset-favorite.command.d.ts +25 -0
- package/build/preset/endpoints/commands/remove-preset-favorite.command.d.ts.map +1 -0
- package/build/preset/endpoints/commands/remove-preset-favorite.command.js +22 -0
- package/build/preset/endpoints/commands/run-preset.command.d.ts +387 -0
- package/build/preset/endpoints/commands/run-preset.command.d.ts.map +1 -0
- package/build/preset/endpoints/commands/run-preset.command.js +55 -0
- package/build/preset/endpoints/index.d.ts +4 -0
- package/build/preset/endpoints/index.d.ts.map +1 -0
- package/build/preset/endpoints/index.js +19 -0
- package/build/preset/endpoints/preset.d.ts +16 -0
- package/build/preset/endpoints/preset.d.ts.map +1 -0
- package/build/preset/endpoints/preset.js +18 -0
- package/build/preset/endpoints/queries/get-preset-price.query.d.ts +62 -0
- package/build/preset/endpoints/queries/get-preset-price.query.d.ts.map +1 -0
- package/build/preset/endpoints/queries/get-preset-price.query.js +30 -0
- package/build/preset/endpoints/queries/get-preset-results.query.d.ts +74 -0
- package/build/preset/endpoints/queries/get-preset-results.query.d.ts.map +1 -0
- package/build/preset/endpoints/queries/get-preset-results.query.js +32 -0
- package/build/preset/endpoints/queries/get-public-preset-by-slug.query.d.ts +334 -0
- package/build/preset/endpoints/queries/get-public-preset-by-slug.query.d.ts.map +1 -0
- package/build/preset/endpoints/queries/get-public-preset-by-slug.query.js +25 -0
- package/build/preset/endpoints/queries/index.d.ts +6 -0
- package/build/preset/endpoints/queries/index.d.ts.map +1 -0
- package/build/preset/endpoints/queries/index.js +21 -0
- package/build/preset/endpoints/queries/list-public-preset-categories.query.d.ts +28 -0
- package/build/preset/endpoints/queries/list-public-preset-categories.query.d.ts.map +1 -0
- package/build/preset/endpoints/queries/list-public-preset-categories.query.js +19 -0
- package/build/preset/endpoints/queries/list-public-presets.query.d.ts +122 -0
- package/build/preset/endpoints/queries/list-public-presets.query.d.ts.map +1 -0
- package/build/preset/endpoints/queries/list-public-presets.query.js +32 -0
- package/build/preset/enums/index.d.ts +10 -0
- package/build/preset/enums/index.d.ts.map +1 -0
- package/build/preset/enums/index.js +25 -0
- package/build/preset/enums/preset-card-media-type.enum.d.ts +6 -0
- package/build/preset/enums/preset-card-media-type.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-card-media-type.enum.js +9 -0
- package/build/preset/enums/preset-example-type.enum.d.ts +5 -0
- package/build/preset/enums/preset-example-type.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-example-type.enum.js +8 -0
- package/build/preset/enums/preset-field-type.enum.d.ts +6 -0
- package/build/preset/enums/preset-field-type.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-field-type.enum.js +9 -0
- package/build/preset/enums/preset-filter.enum.d.ts +6 -0
- package/build/preset/enums/preset-filter.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-filter.enum.js +9 -0
- package/build/preset/enums/preset-limits.d.ts +30 -0
- package/build/preset/enums/preset-limits.d.ts.map +1 -0
- package/build/preset/enums/preset-limits.js +32 -0
- package/build/preset/enums/preset-result-type.enum.d.ts +5 -0
- package/build/preset/enums/preset-result-type.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-result-type.enum.js +8 -0
- package/build/preset/enums/preset-select-display.enum.d.ts +7 -0
- package/build/preset/enums/preset-select-display.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-select-display.enum.js +10 -0
- package/build/preset/enums/preset-status.enum.d.ts +5 -0
- package/build/preset/enums/preset-status.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-status.enum.js +8 -0
- package/build/preset/enums/preset-tool.enum.d.ts +6 -0
- package/build/preset/enums/preset-tool.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-tool.enum.js +9 -0
- package/build/preset/helpers/index.d.ts +3 -0
- package/build/preset/helpers/index.d.ts.map +1 -0
- package/build/preset/helpers/index.js +18 -0
- package/build/preset/helpers/preset-prompt-placeholder.helper.d.ts +4 -0
- package/build/preset/helpers/preset-prompt-placeholder.helper.d.ts.map +1 -0
- package/build/preset/helpers/preset-prompt-placeholder.helper.js +12 -0
- package/build/preset/helpers/preset-tag.helper.d.ts +3 -0
- package/build/preset/helpers/preset-tag.helper.d.ts.map +1 -0
- package/build/preset/helpers/preset-tag.helper.js +9 -0
- package/build/preset/index.d.ts +5 -0
- package/build/preset/index.d.ts.map +1 -0
- package/build/preset/index.js +20 -0
- package/build/preset/models/index.d.ts +9 -0
- package/build/preset/models/index.d.ts.map +1 -0
- package/build/preset/models/index.js +24 -0
- package/build/preset/models/preset-common.schema.d.ts +23 -0
- package/build/preset/models/preset-common.schema.d.ts.map +1 -0
- package/build/preset/models/preset-common.schema.js +26 -0
- package/build/preset/models/preset-field-value.schema.d.ts +51 -0
- package/build/preset/models/preset-field-value.schema.d.ts.map +1 -0
- package/build/preset/models/preset-field-value.schema.js +44 -0
- package/build/preset/models/preset-field.schema.d.ts +310 -0
- package/build/preset/models/preset-field.schema.d.ts.map +1 -0
- package/build/preset/models/preset-field.schema.js +186 -0
- package/build/preset/models/preset-input.schema.d.ts +106 -0
- package/build/preset/models/preset-input.schema.d.ts.map +1 -0
- package/build/preset/models/preset-input.schema.js +97 -0
- package/build/preset/models/preset-media.schema.d.ts +81 -0
- package/build/preset/models/preset-media.schema.d.ts.map +1 -0
- package/build/preset/models/preset-media.schema.js +75 -0
- package/build/preset/models/preset-result.schema.d.ts +23 -0
- package/build/preset/models/preset-result.schema.d.ts.map +1 -0
- package/build/preset/models/preset-result.schema.js +21 -0
- package/build/preset/models/preset-tag.schema.d.ts +10 -0
- package/build/preset/models/preset-tag.schema.d.ts.map +1 -0
- package/build/preset/models/preset-tag.schema.js +11 -0
- package/build/preset/models/public-preset.schema.d.ts +322 -0
- package/build/preset/models/public-preset.schema.d.ts.map +1 -0
- package/build/preset/models/public-preset.schema.js +50 -0
- package/build/trend/endpoints/commands/generate-trend.command.d.ts +8 -0
- package/build/trend/endpoints/commands/generate-trend.command.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/chat/endpoints/queries/get-chats.query.ts +4 -1
- package/chat/models/chat-response.schema.ts +2 -0
- package/errors/errors.ts +207 -0
- package/generation-job/endpoints/queries/get-generation-job-history.query.ts +2 -0
- package/generation-job/endpoints/queries/get-generation-jobs.query.ts +2 -0
- package/generation-job/models/generation-job-response.schema.ts +2 -0
- package/generation-job/models/index.ts +1 -0
- package/generation-job/models/seedance-2_5-params.schema.ts +32 -0
- package/generation-job-chat/endpoints/queries/get-generation-job-chats.query.ts +2 -0
- package/generation-job-chat/models/generation-job-chat-response.schema.ts +2 -0
- package/index.ts +1 -0
- package/package.json +1 -1
- package/preset/endpoints/commands/add-preset-favorite.command.ts +26 -0
- package/preset/endpoints/commands/index.ts +4 -0
- package/preset/endpoints/commands/prepare-preset.command.ts +47 -0
- package/preset/endpoints/commands/remove-preset-favorite.command.ts +26 -0
- package/preset/endpoints/commands/run-preset.command.ts +65 -0
- package/preset/endpoints/index.ts +3 -0
- package/preset/endpoints/preset.ts +18 -0
- package/preset/endpoints/queries/get-preset-price.query.ts +35 -0
- package/preset/endpoints/queries/get-preset-results.query.ts +37 -0
- package/preset/endpoints/queries/get-public-preset-by-slug.query.ts +30 -0
- package/preset/endpoints/queries/index.ts +5 -0
- package/preset/endpoints/queries/list-public-preset-categories.query.ts +20 -0
- package/preset/endpoints/queries/list-public-presets.query.ts +35 -0
- package/preset/enums/index.ts +9 -0
- package/preset/enums/preset-card-media-type.enum.ts +5 -0
- package/preset/enums/preset-example-type.enum.ts +4 -0
- package/preset/enums/preset-field-type.enum.ts +5 -0
- package/preset/enums/preset-filter.enum.ts +5 -0
- package/preset/enums/preset-limits.ts +33 -0
- package/preset/enums/preset-result-type.enum.ts +4 -0
- package/preset/enums/preset-select-display.enum.ts +6 -0
- package/preset/enums/preset-status.enum.ts +4 -0
- package/preset/enums/preset-tool.enum.ts +5 -0
- package/preset/helpers/index.ts +2 -0
- package/preset/helpers/preset-prompt-placeholder.helper.ts +9 -0
- package/preset/helpers/preset-tag.helper.ts +9 -0
- package/preset/index.ts +4 -0
- package/preset/models/index.ts +8 -0
- package/preset/models/preset-common.schema.ts +45 -0
- package/preset/models/preset-field-value.schema.ts +51 -0
- package/preset/models/preset-field.schema.ts +251 -0
- package/preset/models/preset-input.schema.ts +129 -0
- package/preset/models/preset-media.schema.ts +94 -0
- package/preset/models/preset-result.schema.ts +21 -0
- package/preset/models/preset-tag.schema.ts +13 -0
- package/preset/models/public-preset.schema.ts +68 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAdminPresetCommand = exports.DeleteAdminPresetCommandResponse = exports.DeleteAdminPresetCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const admin_1 = require("../admin");
|
|
7
|
+
exports.DeleteAdminPresetCommandParams = zod_1.z.object({
|
|
8
|
+
presetId: zod_1.z.uuid(),
|
|
9
|
+
});
|
|
10
|
+
exports.DeleteAdminPresetCommandResponse = _common_1.HttpSuccessResponseSchema;
|
|
11
|
+
exports.DeleteAdminPresetCommand = (0, _common_1.defineContract)({
|
|
12
|
+
method: _common_1.HTTP_METHODS.DELETE,
|
|
13
|
+
path: admin_1.ADMIN_ROUTES.DELETE_PRESET(':presetId'),
|
|
14
|
+
summary: 'Delete preset; chats and generations keep the preset title tag',
|
|
15
|
+
request: {
|
|
16
|
+
params: exports.DeleteAdminPresetCommandParams,
|
|
17
|
+
},
|
|
18
|
+
responses: {
|
|
19
|
+
200: exports.DeleteAdminPresetCommandResponse,
|
|
20
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
21
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
@@ -26,4 +26,13 @@ export * from './delete-admin-trend-category.command';
|
|
|
26
26
|
export * from './create-admin-blacklist-entry.command';
|
|
27
27
|
export * from './delete-admin-blacklist-entry.command';
|
|
28
28
|
export * from './ban-admin-antifraud-check-value.command';
|
|
29
|
+
export * from './create-admin-preset-category.command';
|
|
30
|
+
export * from './create-admin-preset.command';
|
|
31
|
+
export * from './delete-admin-preset-category.command';
|
|
32
|
+
export * from './delete-admin-preset.command';
|
|
33
|
+
export * from './reorder-admin-preset-categories.command';
|
|
34
|
+
export * from './reorder-admin-presets.command';
|
|
35
|
+
export * from './update-admin-preset-category.command';
|
|
36
|
+
export * from './update-admin-preset-status.command';
|
|
37
|
+
export * from './update-admin-preset.command';
|
|
29
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC"}
|
|
@@ -42,3 +42,12 @@ __exportStar(require("./delete-admin-trend-category.command"), exports);
|
|
|
42
42
|
__exportStar(require("./create-admin-blacklist-entry.command"), exports);
|
|
43
43
|
__exportStar(require("./delete-admin-blacklist-entry.command"), exports);
|
|
44
44
|
__exportStar(require("./ban-admin-antifraud-check-value.command"), exports);
|
|
45
|
+
__exportStar(require("./create-admin-preset-category.command"), exports);
|
|
46
|
+
__exportStar(require("./create-admin-preset.command"), exports);
|
|
47
|
+
__exportStar(require("./delete-admin-preset-category.command"), exports);
|
|
48
|
+
__exportStar(require("./delete-admin-preset.command"), exports);
|
|
49
|
+
__exportStar(require("./reorder-admin-preset-categories.command"), exports);
|
|
50
|
+
__exportStar(require("./reorder-admin-presets.command"), exports);
|
|
51
|
+
__exportStar(require("./update-admin-preset-category.command"), exports);
|
|
52
|
+
__exportStar(require("./update-admin-preset-status.command"), exports);
|
|
53
|
+
__exportStar(require("./update-admin-preset.command"), exports);
|
|
@@ -5,6 +5,7 @@ export declare const ProbeAdminTrendReferenceVideoCommandBody: z.ZodObject<{
|
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
export declare const ProbeAdminTrendReferenceVideoCommandResponse: z.ZodObject<{
|
|
7
7
|
durationSec: z.ZodInt;
|
|
8
|
+
exactDurationSec: z.ZodNumber;
|
|
8
9
|
aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
|
|
9
10
|
width: z.ZodInt;
|
|
10
11
|
height: z.ZodInt;
|
|
@@ -21,6 +22,7 @@ export declare const ProbeAdminTrendReferenceVideoCommand: {
|
|
|
21
22
|
responses: {
|
|
22
23
|
200: z.ZodObject<{
|
|
23
24
|
durationSec: z.ZodInt;
|
|
25
|
+
exactDurationSec: z.ZodNumber;
|
|
24
26
|
aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
|
|
25
27
|
width: z.ZodInt;
|
|
26
28
|
height: z.ZodInt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"probe-admin-trend-reference-video.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/probe-admin-trend-reference-video.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,wCAAwC;;iBAEnD,CAAC;AAEH,eAAO,MAAM,4CAA4C
|
|
1
|
+
{"version":3,"file":"probe-admin-trend-reference-video.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/probe-admin-trend-reference-video.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,wCAAwC;;iBAEnD,CAAC;AAEH,eAAO,MAAM,4CAA4C;;;;;;iBAMvD,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;CAe/C,CAAC;AAEH,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AACpH,MAAM,MAAM,gDAAgD,GAAG,CAAC,CAAC,KAAK,CAClE,OAAO,4CAA4C,CACtD,CAAC"}
|
|
@@ -10,6 +10,7 @@ exports.ProbeAdminTrendReferenceVideoCommandBody = zod_1.z.object({
|
|
|
10
10
|
});
|
|
11
11
|
exports.ProbeAdminTrendReferenceVideoCommandResponse = zod_1.z.object({
|
|
12
12
|
durationSec: trend_1.TrendDurationSecSchema,
|
|
13
|
+
exactDurationSec: zod_1.z.number().positive(),
|
|
13
14
|
aspectRatio: trend_1.TrendAspectRatioSchema,
|
|
14
15
|
width: zod_1.z.int().positive(),
|
|
15
16
|
height: zod_1.z.int().positive(),
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const ReorderAdminPresetCategoriesCommandBody: z.ZodObject<{
|
|
4
|
+
categoryIds: z.ZodArray<z.ZodUUID>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const ReorderAdminPresetCategoriesCommandResponse: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
7
|
+
export declare const ReorderAdminPresetCategoriesCommand: {
|
|
8
|
+
method: HTTP_METHODS.POST;
|
|
9
|
+
path: "preset-categories/reorder";
|
|
10
|
+
summary: string;
|
|
11
|
+
request: {
|
|
12
|
+
body: z.ZodObject<{
|
|
13
|
+
categoryIds: z.ZodArray<z.ZodUUID>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
};
|
|
16
|
+
responses: {
|
|
17
|
+
200: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
18
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
19
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
20
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
21
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type ReorderAdminPresetCategoriesCommandBodyType = z.infer<typeof ReorderAdminPresetCategoriesCommandBody>;
|
|
25
|
+
export type ReorderAdminPresetCategoriesCommandResponseType = z.infer<typeof ReorderAdminPresetCategoriesCommandResponse>;
|
|
26
|
+
//# sourceMappingURL=reorder-admin-preset-categories.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorder-admin-preset-categories.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/reorder-admin-preset-categories.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAAsD,MAAM,kBAAkB,CAAC;AAGpH,eAAO,MAAM,uCAAuC;;iBAKlD,CAAC;AAEH,eAAO,MAAM,2CAA2C,uJAA4B,CAAC;AAErF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;CAc9C,CAAC;AAEH,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC;AAClH,MAAM,MAAM,+CAA+C,GAAG,CAAC,CAAC,KAAK,CACjE,OAAO,2CAA2C,CACrD,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReorderAdminPresetCategoriesCommand = exports.ReorderAdminPresetCategoriesCommandResponse = exports.ReorderAdminPresetCategoriesCommandBody = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const admin_1 = require("../admin");
|
|
7
|
+
exports.ReorderAdminPresetCategoriesCommandBody = zod_1.z.object({
|
|
8
|
+
categoryIds: zod_1.z
|
|
9
|
+
.array(zod_1.z.uuid())
|
|
10
|
+
.min(1)
|
|
11
|
+
.refine((ids) => new Set(ids).size === ids.length, { message: 'Category ids must be unique' }),
|
|
12
|
+
});
|
|
13
|
+
exports.ReorderAdminPresetCategoriesCommandResponse = _common_1.HttpSuccessResponseSchema;
|
|
14
|
+
exports.ReorderAdminPresetCategoriesCommand = (0, _common_1.defineContract)({
|
|
15
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
16
|
+
path: admin_1.ADMIN_ROUTES.REORDER_PRESET_CATEGORIES,
|
|
17
|
+
summary: 'Set order of all preset categories; position in the array is the order',
|
|
18
|
+
request: {
|
|
19
|
+
body: exports.ReorderAdminPresetCategoriesCommandBody,
|
|
20
|
+
},
|
|
21
|
+
responses: {
|
|
22
|
+
200: exports.ReorderAdminPresetCategoriesCommandResponse,
|
|
23
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
25
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
26
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const ReorderAdminPresetsCommandBody: z.ZodObject<{
|
|
4
|
+
categoryId: z.ZodUUID;
|
|
5
|
+
presetIds: z.ZodArray<z.ZodUUID>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const ReorderAdminPresetsCommandResponse: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
8
|
+
export declare const ReorderAdminPresetsCommand: {
|
|
9
|
+
method: HTTP_METHODS.POST;
|
|
10
|
+
path: "presets/reorder";
|
|
11
|
+
summary: string;
|
|
12
|
+
request: {
|
|
13
|
+
body: z.ZodObject<{
|
|
14
|
+
categoryId: z.ZodUUID;
|
|
15
|
+
presetIds: z.ZodArray<z.ZodUUID>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
};
|
|
18
|
+
responses: {
|
|
19
|
+
200: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
20
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
21
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
22
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
23
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
24
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type ReorderAdminPresetsCommandBodyType = z.infer<typeof ReorderAdminPresetsCommandBody>;
|
|
28
|
+
export type ReorderAdminPresetsCommandResponseType = z.infer<typeof ReorderAdminPresetsCommandResponse>;
|
|
29
|
+
//# sourceMappingURL=reorder-admin-presets.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorder-admin-presets.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/reorder-admin-presets.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAAsD,MAAM,kBAAkB,CAAC;AAGpH,eAAO,MAAM,8BAA8B;;;iBAMzC,CAAC;AAEH,eAAO,MAAM,kCAAkC,uJAA4B,CAAC;AAE5E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;CAerC,CAAC;AAEH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAChG,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReorderAdminPresetsCommand = exports.ReorderAdminPresetsCommandResponse = exports.ReorderAdminPresetsCommandBody = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const admin_1 = require("../admin");
|
|
7
|
+
exports.ReorderAdminPresetsCommandBody = zod_1.z.object({
|
|
8
|
+
categoryId: zod_1.z.uuid(),
|
|
9
|
+
presetIds: zod_1.z
|
|
10
|
+
.array(zod_1.z.uuid())
|
|
11
|
+
.min(1)
|
|
12
|
+
.refine((ids) => new Set(ids).size === ids.length, { message: 'Preset ids must be unique' }),
|
|
13
|
+
});
|
|
14
|
+
exports.ReorderAdminPresetsCommandResponse = _common_1.HttpSuccessResponseSchema;
|
|
15
|
+
exports.ReorderAdminPresetsCommand = (0, _common_1.defineContract)({
|
|
16
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
17
|
+
path: admin_1.ADMIN_ROUTES.REORDER_PRESETS,
|
|
18
|
+
summary: 'Set order of all presets of a category; position in the array is the order',
|
|
19
|
+
request: {
|
|
20
|
+
body: exports.ReorderAdminPresetsCommandBody,
|
|
21
|
+
},
|
|
22
|
+
responses: {
|
|
23
|
+
200: exports.ReorderAdminPresetsCommandResponse,
|
|
24
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
25
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
26
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
27
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
28
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const UpdateAdminPresetCategoryCommandParams: z.ZodObject<{
|
|
4
|
+
categoryId: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const UpdateAdminPresetCategoryCommandBody: z.ZodObject<{
|
|
7
|
+
slug: z.ZodString;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
icon: z.ZodString;
|
|
10
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const UpdateAdminPresetCategoryCommandResponse: z.ZodObject<{
|
|
13
|
+
uuid: z.ZodUUID;
|
|
14
|
+
slug: z.ZodString;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
icon: z.ZodString;
|
|
17
|
+
order: z.ZodInt;
|
|
18
|
+
isActive: z.ZodBoolean;
|
|
19
|
+
createdAt: z.ZodISODateTime;
|
|
20
|
+
updatedAt: z.ZodISODateTime;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const UpdateAdminPresetCategoryCommand: {
|
|
23
|
+
method: HTTP_METHODS.PUT;
|
|
24
|
+
path: string;
|
|
25
|
+
summary: string;
|
|
26
|
+
request: {
|
|
27
|
+
params: z.ZodObject<{
|
|
28
|
+
categoryId: z.ZodUUID;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
body: z.ZodObject<{
|
|
31
|
+
slug: z.ZodString;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
icon: z.ZodString;
|
|
34
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
};
|
|
37
|
+
responses: {
|
|
38
|
+
200: z.ZodObject<{
|
|
39
|
+
uuid: z.ZodUUID;
|
|
40
|
+
slug: z.ZodString;
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
icon: z.ZodString;
|
|
43
|
+
order: z.ZodInt;
|
|
44
|
+
isActive: z.ZodBoolean;
|
|
45
|
+
createdAt: z.ZodISODateTime;
|
|
46
|
+
updatedAt: z.ZodISODateTime;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
49
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
50
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
51
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
52
|
+
409: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
53
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export type UpdateAdminPresetCategoryCommandParamsType = z.infer<typeof UpdateAdminPresetCategoryCommandParams>;
|
|
57
|
+
export type UpdateAdminPresetCategoryCommandBodyType = z.infer<typeof UpdateAdminPresetCategoryCommandBody>;
|
|
58
|
+
export type UpdateAdminPresetCategoryCommandResponseType = z.infer<typeof UpdateAdminPresetCategoryCommandResponse>;
|
|
59
|
+
//# sourceMappingURL=update-admin-preset-category.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-admin-preset-category.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/update-admin-preset-category.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,sCAAsC;;iBAEjD,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;iBAA4B,CAAC;AAE9E,eAAO,MAAM,wCAAwC;;;;;;;;;iBAAoC,CAAC;AAE1F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB3C,CAAC;AAEH,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAChH,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAC5G,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAdminPresetCategoryCommand = exports.UpdateAdminPresetCategoryCommandResponse = exports.UpdateAdminPresetCategoryCommandBody = exports.UpdateAdminPresetCategoryCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const preset_1 = require("../../../preset");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
const admin_1 = require("../admin");
|
|
9
|
+
exports.UpdateAdminPresetCategoryCommandParams = zod_1.z.object({
|
|
10
|
+
categoryId: zod_1.z.uuid(),
|
|
11
|
+
});
|
|
12
|
+
exports.UpdateAdminPresetCategoryCommandBody = preset_1.PresetCategoryInputSchema;
|
|
13
|
+
exports.UpdateAdminPresetCategoryCommandResponse = models_1.AdminPresetCategoryResponseSchema;
|
|
14
|
+
exports.UpdateAdminPresetCategoryCommand = (0, _common_1.defineContract)({
|
|
15
|
+
method: _common_1.HTTP_METHODS.PUT,
|
|
16
|
+
path: admin_1.ADMIN_ROUTES.UPDATE_PRESET_CATEGORY(':categoryId'),
|
|
17
|
+
summary: 'Update preset category',
|
|
18
|
+
request: {
|
|
19
|
+
params: exports.UpdateAdminPresetCategoryCommandParams,
|
|
20
|
+
body: exports.UpdateAdminPresetCategoryCommandBody,
|
|
21
|
+
},
|
|
22
|
+
responses: {
|
|
23
|
+
200: exports.UpdateAdminPresetCategoryCommandResponse,
|
|
24
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
25
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
26
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
27
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
28
|
+
409: _common_1.HttpErrorResponseSchema,
|
|
29
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const UpdateAdminPresetStatusCommandParams: z.ZodObject<{
|
|
4
|
+
presetId: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const UpdateAdminPresetStatusCommandBody: z.ZodObject<{
|
|
7
|
+
status: z.ZodEnum<typeof import("../../../preset").PRESET_STATUS>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const UpdateAdminPresetStatusCommandResponse: z.ZodObject<{
|
|
10
|
+
uuid: z.ZodUUID;
|
|
11
|
+
slug: z.ZodString;
|
|
12
|
+
status: z.ZodEnum<typeof import("../../../preset").PRESET_STATUS>;
|
|
13
|
+
order: z.ZodInt;
|
|
14
|
+
category: z.ZodObject<{
|
|
15
|
+
uuid: z.ZodUUID;
|
|
16
|
+
slug: z.ZodString;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
title: z.ZodString;
|
|
20
|
+
shortDescription: z.ZodString;
|
|
21
|
+
description: z.ZodString;
|
|
22
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
23
|
+
tool: z.ZodEnum<typeof import("../../../preset").PRESET_TOOL>;
|
|
24
|
+
generationModel: z.ZodNullable<z.ZodObject<{
|
|
25
|
+
uuid: z.ZodUUID;
|
|
26
|
+
title: z.ZodString;
|
|
27
|
+
isActive: z.ZodBoolean;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
aiModel: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
uuid: z.ZodUUID;
|
|
31
|
+
title: z.ZodString;
|
|
32
|
+
isActive: z.ZodBoolean;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
promptTemplate: z.ZodString;
|
|
35
|
+
fixedParams: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
36
|
+
chatOptions: z.ZodNullable<z.ZodObject<{
|
|
37
|
+
reasoning: z.ZodDefault<z.ZodBoolean>;
|
|
38
|
+
webSearch: z.ZodDefault<z.ZodBoolean>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
cardMedia: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
41
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_CARD_MEDIA_TYPE.IMAGE>;
|
|
42
|
+
image: z.ZodObject<{
|
|
43
|
+
uuid: z.ZodUUID;
|
|
44
|
+
url: z.ZodURL;
|
|
45
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_CARD_MEDIA_TYPE.COMPARE>;
|
|
49
|
+
before: z.ZodObject<{
|
|
50
|
+
uuid: z.ZodUUID;
|
|
51
|
+
url: z.ZodURL;
|
|
52
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
after: z.ZodObject<{
|
|
55
|
+
uuid: z.ZodUUID;
|
|
56
|
+
url: z.ZodURL;
|
|
57
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_CARD_MEDIA_TYPE.VIDEO>;
|
|
61
|
+
video: z.ZodObject<{
|
|
62
|
+
uuid: z.ZodUUID;
|
|
63
|
+
url: z.ZodURL;
|
|
64
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
cover: z.ZodObject<{
|
|
67
|
+
uuid: z.ZodUUID;
|
|
68
|
+
url: z.ZodURL;
|
|
69
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
}, z.core.$strip>], "type">;
|
|
72
|
+
example: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
73
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_EXAMPLE_TYPE.MEDIA>;
|
|
74
|
+
items: z.ZodArray<z.ZodObject<{
|
|
75
|
+
file: z.ZodObject<{
|
|
76
|
+
uuid: z.ZodUUID;
|
|
77
|
+
url: z.ZodURL;
|
|
78
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
81
|
+
note: z.ZodNullable<z.ZodString>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_EXAMPLE_TYPE.TEXT>;
|
|
85
|
+
context: z.ZodNullable<z.ZodString>;
|
|
86
|
+
source: z.ZodNullable<z.ZodString>;
|
|
87
|
+
text: z.ZodString;
|
|
88
|
+
}, z.core.$strip>], "type">>;
|
|
89
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
90
|
+
key: z.ZodString;
|
|
91
|
+
label: z.ZodString;
|
|
92
|
+
required: z.ZodBoolean;
|
|
93
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
94
|
+
key: z.ZodString;
|
|
95
|
+
values: z.ZodArray<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>>>;
|
|
97
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_FIELD_TYPE.FILE>;
|
|
98
|
+
slot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
minCount: z.ZodDefault<z.ZodInt>;
|
|
100
|
+
maxCount: z.ZodInt;
|
|
101
|
+
hint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
promptValue: z.ZodString;
|
|
103
|
+
promptFallback: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
105
|
+
key: z.ZodString;
|
|
106
|
+
label: z.ZodString;
|
|
107
|
+
required: z.ZodBoolean;
|
|
108
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
109
|
+
key: z.ZodString;
|
|
110
|
+
values: z.ZodArray<z.ZodString>;
|
|
111
|
+
}, z.core.$strip>>>;
|
|
112
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_FIELD_TYPE.SELECT>;
|
|
113
|
+
display: z.ZodDefault<z.ZodEnum<typeof import("../../../preset").PRESET_SELECT_DISPLAY>>;
|
|
114
|
+
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
115
|
+
defaultValues: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
116
|
+
allowCustom: z.ZodDefault<z.ZodBoolean>;
|
|
117
|
+
customMaxLength: z.ZodDefault<z.ZodInt>;
|
|
118
|
+
customPlaceholder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
options: z.ZodArray<z.ZodObject<{
|
|
120
|
+
value: z.ZodString;
|
|
121
|
+
label: z.ZodString;
|
|
122
|
+
promptValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
params: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
124
|
+
previewFile: z.ZodNullable<z.ZodObject<{
|
|
125
|
+
uuid: z.ZodUUID;
|
|
126
|
+
url: z.ZodURL;
|
|
127
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
key: z.ZodString;
|
|
132
|
+
label: z.ZodString;
|
|
133
|
+
required: z.ZodBoolean;
|
|
134
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
135
|
+
key: z.ZodString;
|
|
136
|
+
values: z.ZodArray<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>>>;
|
|
138
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_FIELD_TYPE.TEXT>;
|
|
139
|
+
placeholder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
140
|
+
multiline: z.ZodDefault<z.ZodBoolean>;
|
|
141
|
+
maxLength: z.ZodDefault<z.ZodInt>;
|
|
142
|
+
defaultValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
143
|
+
promptFallback: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
}, z.core.$strip>], "type">>;
|
|
145
|
+
requireOneOf: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
146
|
+
createdAt: z.ZodISODateTime;
|
|
147
|
+
updatedAt: z.ZodISODateTime;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
export declare const UpdateAdminPresetStatusCommand: {
|
|
150
|
+
method: HTTP_METHODS.PATCH;
|
|
151
|
+
path: string;
|
|
152
|
+
summary: string;
|
|
153
|
+
request: {
|
|
154
|
+
params: z.ZodObject<{
|
|
155
|
+
presetId: z.ZodUUID;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
body: z.ZodObject<{
|
|
158
|
+
status: z.ZodEnum<typeof import("../../../preset").PRESET_STATUS>;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
};
|
|
161
|
+
responses: {
|
|
162
|
+
200: z.ZodObject<{
|
|
163
|
+
uuid: z.ZodUUID;
|
|
164
|
+
slug: z.ZodString;
|
|
165
|
+
status: z.ZodEnum<typeof import("../../../preset").PRESET_STATUS>;
|
|
166
|
+
order: z.ZodInt;
|
|
167
|
+
category: z.ZodObject<{
|
|
168
|
+
uuid: z.ZodUUID;
|
|
169
|
+
slug: z.ZodString;
|
|
170
|
+
name: z.ZodString;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
title: z.ZodString;
|
|
173
|
+
shortDescription: z.ZodString;
|
|
174
|
+
description: z.ZodString;
|
|
175
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
176
|
+
tool: z.ZodEnum<typeof import("../../../preset").PRESET_TOOL>;
|
|
177
|
+
generationModel: z.ZodNullable<z.ZodObject<{
|
|
178
|
+
uuid: z.ZodUUID;
|
|
179
|
+
title: z.ZodString;
|
|
180
|
+
isActive: z.ZodBoolean;
|
|
181
|
+
}, z.core.$strip>>;
|
|
182
|
+
aiModel: z.ZodNullable<z.ZodObject<{
|
|
183
|
+
uuid: z.ZodUUID;
|
|
184
|
+
title: z.ZodString;
|
|
185
|
+
isActive: z.ZodBoolean;
|
|
186
|
+
}, z.core.$strip>>;
|
|
187
|
+
promptTemplate: z.ZodString;
|
|
188
|
+
fixedParams: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
189
|
+
chatOptions: z.ZodNullable<z.ZodObject<{
|
|
190
|
+
reasoning: z.ZodDefault<z.ZodBoolean>;
|
|
191
|
+
webSearch: z.ZodDefault<z.ZodBoolean>;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
cardMedia: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
194
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_CARD_MEDIA_TYPE.IMAGE>;
|
|
195
|
+
image: z.ZodObject<{
|
|
196
|
+
uuid: z.ZodUUID;
|
|
197
|
+
url: z.ZodURL;
|
|
198
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
199
|
+
}, z.core.$strip>;
|
|
200
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
201
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_CARD_MEDIA_TYPE.COMPARE>;
|
|
202
|
+
before: z.ZodObject<{
|
|
203
|
+
uuid: z.ZodUUID;
|
|
204
|
+
url: z.ZodURL;
|
|
205
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
after: z.ZodObject<{
|
|
208
|
+
uuid: z.ZodUUID;
|
|
209
|
+
url: z.ZodURL;
|
|
210
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
213
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_CARD_MEDIA_TYPE.VIDEO>;
|
|
214
|
+
video: z.ZodObject<{
|
|
215
|
+
uuid: z.ZodUUID;
|
|
216
|
+
url: z.ZodURL;
|
|
217
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
218
|
+
}, z.core.$strip>;
|
|
219
|
+
cover: z.ZodObject<{
|
|
220
|
+
uuid: z.ZodUUID;
|
|
221
|
+
url: z.ZodURL;
|
|
222
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
}, z.core.$strip>], "type">;
|
|
225
|
+
example: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
226
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_EXAMPLE_TYPE.MEDIA>;
|
|
227
|
+
items: z.ZodArray<z.ZodObject<{
|
|
228
|
+
file: z.ZodObject<{
|
|
229
|
+
uuid: z.ZodUUID;
|
|
230
|
+
url: z.ZodURL;
|
|
231
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
232
|
+
}, z.core.$strip>;
|
|
233
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
234
|
+
note: z.ZodNullable<z.ZodString>;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
237
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_EXAMPLE_TYPE.TEXT>;
|
|
238
|
+
context: z.ZodNullable<z.ZodString>;
|
|
239
|
+
source: z.ZodNullable<z.ZodString>;
|
|
240
|
+
text: z.ZodString;
|
|
241
|
+
}, z.core.$strip>], "type">>;
|
|
242
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
243
|
+
key: z.ZodString;
|
|
244
|
+
label: z.ZodString;
|
|
245
|
+
required: z.ZodBoolean;
|
|
246
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
247
|
+
key: z.ZodString;
|
|
248
|
+
values: z.ZodArray<z.ZodString>;
|
|
249
|
+
}, z.core.$strip>>>;
|
|
250
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_FIELD_TYPE.FILE>;
|
|
251
|
+
slot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
252
|
+
minCount: z.ZodDefault<z.ZodInt>;
|
|
253
|
+
maxCount: z.ZodInt;
|
|
254
|
+
hint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
255
|
+
promptValue: z.ZodString;
|
|
256
|
+
promptFallback: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
257
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
258
|
+
key: z.ZodString;
|
|
259
|
+
label: z.ZodString;
|
|
260
|
+
required: z.ZodBoolean;
|
|
261
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
262
|
+
key: z.ZodString;
|
|
263
|
+
values: z.ZodArray<z.ZodString>;
|
|
264
|
+
}, z.core.$strip>>>;
|
|
265
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_FIELD_TYPE.SELECT>;
|
|
266
|
+
display: z.ZodDefault<z.ZodEnum<typeof import("../../../preset").PRESET_SELECT_DISPLAY>>;
|
|
267
|
+
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
268
|
+
defaultValues: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
269
|
+
allowCustom: z.ZodDefault<z.ZodBoolean>;
|
|
270
|
+
customMaxLength: z.ZodDefault<z.ZodInt>;
|
|
271
|
+
customPlaceholder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
272
|
+
options: z.ZodArray<z.ZodObject<{
|
|
273
|
+
value: z.ZodString;
|
|
274
|
+
label: z.ZodString;
|
|
275
|
+
promptValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
276
|
+
params: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
277
|
+
previewFile: z.ZodNullable<z.ZodObject<{
|
|
278
|
+
uuid: z.ZodUUID;
|
|
279
|
+
url: z.ZodURL;
|
|
280
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
281
|
+
}, z.core.$strip>>;
|
|
282
|
+
}, z.core.$strip>>;
|
|
283
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
284
|
+
key: z.ZodString;
|
|
285
|
+
label: z.ZodString;
|
|
286
|
+
required: z.ZodBoolean;
|
|
287
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
288
|
+
key: z.ZodString;
|
|
289
|
+
values: z.ZodArray<z.ZodString>;
|
|
290
|
+
}, z.core.$strip>>>;
|
|
291
|
+
type: z.ZodLiteral<import("../../../preset").PRESET_FIELD_TYPE.TEXT>;
|
|
292
|
+
placeholder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
293
|
+
multiline: z.ZodDefault<z.ZodBoolean>;
|
|
294
|
+
maxLength: z.ZodDefault<z.ZodInt>;
|
|
295
|
+
defaultValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
296
|
+
promptFallback: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
297
|
+
}, z.core.$strip>], "type">>;
|
|
298
|
+
requireOneOf: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
299
|
+
createdAt: z.ZodISODateTime;
|
|
300
|
+
updatedAt: z.ZodISODateTime;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
303
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
304
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
305
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
306
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
export type UpdateAdminPresetStatusCommandParamsType = z.infer<typeof UpdateAdminPresetStatusCommandParams>;
|
|
310
|
+
export type UpdateAdminPresetStatusCommandBodyType = z.infer<typeof UpdateAdminPresetStatusCommandBody>;
|
|
311
|
+
export type UpdateAdminPresetStatusCommandResponseType = z.infer<typeof UpdateAdminPresetStatusCommandResponse>;
|
|
312
|
+
//# sourceMappingURL=update-admin-preset-status.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-admin-preset-status.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/update-admin-preset-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;iBAE7C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA4B,CAAC;AAEhF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBzC,CAAC;AAEH,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAC5G,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AACxG,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC"}
|