@ai-grator/api 0.3.76 → 0.3.78
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 +20 -0
- package/admin/endpoints/commands/ban-admin-antifraud-check-value.command.ts +37 -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 +10 -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-antifraud-checks.query.ts +35 -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 +4 -0
- package/admin/enums/admin-antifraud-check-reason.enum.ts +5 -0
- package/admin/enums/index.ts +1 -0
- package/admin/models/admin-antifraud-check-response.schema.ts +27 -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 +3 -0
- package/build/admin/endpoints/admin.d.ts +14 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -1
- package/build/admin/endpoints/admin.js +17 -0
- package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.d.ts +71 -0
- package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.js +32 -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 +10 -0
- package/build/admin/endpoints/commands/index.d.ts.map +1 -1
- package/build/admin/endpoints/commands/index.js +10 -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-antifraud-checks.query.d.ts +78 -0
- package/build/admin/endpoints/queries/get-admin-antifraud-checks.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-antifraud-checks.query.js +32 -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 +4 -0
- package/build/admin/endpoints/queries/index.d.ts.map +1 -1
- package/build/admin/endpoints/queries/index.js +4 -0
- package/build/admin/enums/admin-antifraud-check-reason.enum.d.ts +6 -0
- package/build/admin/enums/admin-antifraud-check-reason.enum.d.ts.map +1 -0
- package/build/admin/enums/admin-antifraud-check-reason.enum.js +9 -0
- package/build/admin/enums/index.d.ts +1 -0
- package/build/admin/enums/index.d.ts.map +1 -1
- package/build/admin/enums/index.js +1 -0
- package/build/admin/models/admin-antifraud-check-response.schema.d.ts +34 -0
- package/build/admin/models/admin-antifraud-check-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-antifraud-check-response.schema.js +23 -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 +3 -0
- package/build/admin/models/index.d.ts.map +1 -1
- package/build/admin/models/index.js +3 -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 +224 -5
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +224 -5
- 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-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 +224 -5
- 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-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
|
@@ -27,6 +27,8 @@ export declare const ADMIN_ROUTES: {
|
|
|
27
27
|
readonly GET_BLACKLIST_ENTRIES: "blacklist";
|
|
28
28
|
readonly CREATE_BLACKLIST_ENTRY: "blacklist";
|
|
29
29
|
readonly DELETE_BLACKLIST_ENTRY: (entryId: string) => string;
|
|
30
|
+
readonly GET_ANTIFRAUD_CHECKS: "antifraud-checks";
|
|
31
|
+
readonly BAN_ANTIFRAUD_CHECK_VALUE: (checkId: string) => string;
|
|
30
32
|
readonly GET_SUPPORT_CHATS: "support/chats";
|
|
31
33
|
readonly GET_SUPPORT_CHAT_MESSAGES: (userId: string) => string;
|
|
32
34
|
readonly SEND_SUPPORT_REPLY: (userId: string) => string;
|
|
@@ -53,6 +55,18 @@ export declare const ADMIN_ROUTES: {
|
|
|
53
55
|
readonly CREATE_TREND_CATEGORY: "trend-categories";
|
|
54
56
|
readonly UPDATE_TREND_CATEGORY: (categoryId: string) => string;
|
|
55
57
|
readonly DELETE_TREND_CATEGORY: (categoryId: string) => string;
|
|
58
|
+
readonly GET_PRESETS: "presets";
|
|
59
|
+
readonly CREATE_PRESET: "presets";
|
|
60
|
+
readonly REORDER_PRESETS: "presets/reorder";
|
|
61
|
+
readonly GET_PRESET: (presetId: string) => string;
|
|
62
|
+
readonly UPDATE_PRESET: (presetId: string) => string;
|
|
63
|
+
readonly DELETE_PRESET: (presetId: string) => string;
|
|
64
|
+
readonly UPDATE_PRESET_STATUS: (presetId: string) => string;
|
|
65
|
+
readonly GET_PRESET_CATEGORIES: "preset-categories";
|
|
66
|
+
readonly CREATE_PRESET_CATEGORY: "preset-categories";
|
|
67
|
+
readonly REORDER_PRESET_CATEGORIES: "preset-categories/reorder";
|
|
68
|
+
readonly UPDATE_PRESET_CATEGORY: (categoryId: string) => string;
|
|
69
|
+
readonly DELETE_PRESET_CATEGORY: (categoryId: string) => string;
|
|
56
70
|
readonly GET_ORGANIZATION: "organization";
|
|
57
71
|
readonly UPDATE_ORGANIZATION: "organization";
|
|
58
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../admin/endpoints/admin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;sCAGI,MAAM;gDACI,MAAM;iDACL,MAAM;sDACD,MAAM;yDACH,MAAM;kDACb,MAAM;+DACO,MAAM;wDACb,MAAM,aAAa,MAAM;uDAE1B,MAAM;yDACJ,MAAM;;;;;;;;gCAgB/B,MAAM;6CACO,MAAM;gCACnB,MAAM;;kCAEJ,MAAM;;;;+CAQO,MAAM;;
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../admin/endpoints/admin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;sCAGI,MAAM;gDACI,MAAM;iDACL,MAAM;sDACD,MAAM;yDACH,MAAM;kDACb,MAAM;+DACO,MAAM;wDACb,MAAM,aAAa,MAAM;uDAE1B,MAAM;yDACJ,MAAM;;;;;;;;gCAgB/B,MAAM;6CACO,MAAM;gCACnB,MAAM;;kCAEJ,MAAM;;;;+CAQO,MAAM;;kDAIH,MAAM;;iDAIP,MAAM;0CACb,MAAM;8CACF,MAAM;;;gCAKpB,MAAM;mCACH,MAAM;mCACN,MAAM;0CACC,MAAM;;;6CAKH,MAAM;6CACN,MAAM;;;;;kCAOjB,MAAM;qCACH,MAAM;qCACN,MAAM;4CACC,MAAM;;;iDAKD,MAAM;iDACN,MAAM;;;;oCAMnB,MAAM;uCACH,MAAM;uCACN,MAAM;8CACC,MAAM;;;;kDAMF,MAAM;kDACN,MAAM;;;CAKrC,CAAC"}
|
|
@@ -37,6 +37,9 @@ exports.ADMIN_ROUTES = {
|
|
|
37
37
|
GET_BLACKLIST_ENTRIES: 'blacklist',
|
|
38
38
|
CREATE_BLACKLIST_ENTRY: 'blacklist',
|
|
39
39
|
DELETE_BLACKLIST_ENTRY: (entryId) => `blacklist/${entryId}`,
|
|
40
|
+
// ANTIFRAUD
|
|
41
|
+
GET_ANTIFRAUD_CHECKS: 'antifraud-checks',
|
|
42
|
+
BAN_ANTIFRAUD_CHECK_VALUE: (checkId) => `antifraud-checks/${checkId}/ban`,
|
|
40
43
|
// SUPPORT
|
|
41
44
|
GET_SUPPORT_CHATS: 'support/chats',
|
|
42
45
|
GET_SUPPORT_CHAT_MESSAGES: (userId) => `support/chats/${userId}/messages`,
|
|
@@ -68,6 +71,20 @@ exports.ADMIN_ROUTES = {
|
|
|
68
71
|
CREATE_TREND_CATEGORY: 'trend-categories',
|
|
69
72
|
UPDATE_TREND_CATEGORY: (categoryId) => `trend-categories/${categoryId}`,
|
|
70
73
|
DELETE_TREND_CATEGORY: (categoryId) => `trend-categories/${categoryId}`,
|
|
74
|
+
// PRESETS
|
|
75
|
+
GET_PRESETS: 'presets',
|
|
76
|
+
CREATE_PRESET: 'presets',
|
|
77
|
+
REORDER_PRESETS: 'presets/reorder',
|
|
78
|
+
GET_PRESET: (presetId) => `presets/${presetId}`,
|
|
79
|
+
UPDATE_PRESET: (presetId) => `presets/${presetId}`,
|
|
80
|
+
DELETE_PRESET: (presetId) => `presets/${presetId}`,
|
|
81
|
+
UPDATE_PRESET_STATUS: (presetId) => `presets/${presetId}/status`,
|
|
82
|
+
// PRESET CATEGORIES
|
|
83
|
+
GET_PRESET_CATEGORIES: 'preset-categories',
|
|
84
|
+
CREATE_PRESET_CATEGORY: 'preset-categories',
|
|
85
|
+
REORDER_PRESET_CATEGORIES: 'preset-categories/reorder',
|
|
86
|
+
UPDATE_PRESET_CATEGORY: (categoryId) => `preset-categories/${categoryId}`,
|
|
87
|
+
DELETE_PRESET_CATEGORY: (categoryId) => `preset-categories/${categoryId}`,
|
|
71
88
|
// ORGANIZATION
|
|
72
89
|
GET_ORGANIZATION: 'organization',
|
|
73
90
|
UPDATE_ORGANIZATION: 'organization',
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const BanAdminAntifraudCheckValueCommandParams: z.ZodObject<{
|
|
4
|
+
checkId: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const BanAdminAntifraudCheckValueCommandBody: z.ZodObject<{
|
|
7
|
+
reason: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const BanAdminAntifraudCheckValueCommandResponse: z.ZodObject<{
|
|
10
|
+
uuid: z.ZodUUID;
|
|
11
|
+
user: z.ZodObject<{
|
|
12
|
+
uuid: z.ZodUUID;
|
|
13
|
+
email: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
matchedUser: z.ZodObject<{
|
|
16
|
+
uuid: z.ZodUUID;
|
|
17
|
+
email: z.ZodString;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
reason: z.ZodEnum<typeof import("../..").ADMIN_ANTIFRAUD_CHECK_REASON>;
|
|
20
|
+
value: z.ZodString;
|
|
21
|
+
ban: z.ZodNullable<z.ZodObject<{
|
|
22
|
+
entryId: z.ZodUUID;
|
|
23
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
24
|
+
createdAt: z.ZodISODateTime;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
createdAt: z.ZodISODateTime;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const BanAdminAntifraudCheckValueCommand: {
|
|
29
|
+
method: HTTP_METHODS.POST;
|
|
30
|
+
path: string;
|
|
31
|
+
summary: string;
|
|
32
|
+
request: {
|
|
33
|
+
params: z.ZodObject<{
|
|
34
|
+
checkId: z.ZodUUID;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
body: z.ZodObject<{
|
|
37
|
+
reason: z.ZodString;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
};
|
|
40
|
+
responses: {
|
|
41
|
+
200: z.ZodObject<{
|
|
42
|
+
uuid: z.ZodUUID;
|
|
43
|
+
user: z.ZodObject<{
|
|
44
|
+
uuid: z.ZodUUID;
|
|
45
|
+
email: z.ZodString;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
matchedUser: z.ZodObject<{
|
|
48
|
+
uuid: z.ZodUUID;
|
|
49
|
+
email: z.ZodString;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
reason: z.ZodEnum<typeof import("../..").ADMIN_ANTIFRAUD_CHECK_REASON>;
|
|
52
|
+
value: z.ZodString;
|
|
53
|
+
ban: z.ZodNullable<z.ZodObject<{
|
|
54
|
+
entryId: z.ZodUUID;
|
|
55
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
56
|
+
createdAt: z.ZodISODateTime;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
createdAt: z.ZodISODateTime;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
61
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
62
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
63
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
64
|
+
409: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
65
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export type BanAdminAntifraudCheckValueCommandParamsType = z.infer<typeof BanAdminAntifraudCheckValueCommandParams>;
|
|
69
|
+
export type BanAdminAntifraudCheckValueCommandBodyType = z.infer<typeof BanAdminAntifraudCheckValueCommandBody>;
|
|
70
|
+
export type BanAdminAntifraudCheckValueCommandResponseType = z.infer<typeof BanAdminAntifraudCheckValueCommandResponse>;
|
|
71
|
+
//# sourceMappingURL=ban-admin-antifraud-check-value.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ban-admin-antifraud-check-value.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/ban-admin-antifraud-check-value.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,sCAAsC;;iBAEjD,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;iBAAoC,CAAC;AAE5F,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB7C,CAAC;AAEH,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AACpH,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAChH,MAAM,MAAM,8CAA8C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BanAdminAntifraudCheckValueCommand = exports.BanAdminAntifraudCheckValueCommandResponse = exports.BanAdminAntifraudCheckValueCommandBody = exports.BanAdminAntifraudCheckValueCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const admin_1 = require("../admin");
|
|
8
|
+
exports.BanAdminAntifraudCheckValueCommandParams = zod_1.z.object({
|
|
9
|
+
checkId: zod_1.z.uuid(),
|
|
10
|
+
});
|
|
11
|
+
exports.BanAdminAntifraudCheckValueCommandBody = zod_1.z.object({
|
|
12
|
+
reason: zod_1.z.string().trim().min(1).max(500),
|
|
13
|
+
});
|
|
14
|
+
exports.BanAdminAntifraudCheckValueCommandResponse = models_1.AdminAntifraudCheckResponseSchema;
|
|
15
|
+
exports.BanAdminAntifraudCheckValueCommand = (0, _common_1.defineContract)({
|
|
16
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
17
|
+
path: admin_1.ADMIN_ROUTES.BAN_ANTIFRAUD_CHECK_VALUE(':checkId'),
|
|
18
|
+
summary: 'Blacklist the IP or fingerprint an antifraud check matched on',
|
|
19
|
+
request: {
|
|
20
|
+
params: exports.BanAdminAntifraudCheckValueCommandParams,
|
|
21
|
+
body: exports.BanAdminAntifraudCheckValueCommandBody,
|
|
22
|
+
},
|
|
23
|
+
responses: {
|
|
24
|
+
200: exports.BanAdminAntifraudCheckValueCommandResponse,
|
|
25
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
26
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
27
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
28
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
29
|
+
409: _common_1.HttpErrorResponseSchema,
|
|
30
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const CreateAdminPresetCategoryCommandBody: z.ZodObject<{
|
|
4
|
+
slug: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
icon: z.ZodString;
|
|
7
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const CreateAdminPresetCategoryCommandResponse: z.ZodObject<{
|
|
10
|
+
uuid: z.ZodUUID;
|
|
11
|
+
slug: z.ZodString;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
icon: z.ZodString;
|
|
14
|
+
order: z.ZodInt;
|
|
15
|
+
isActive: z.ZodBoolean;
|
|
16
|
+
createdAt: z.ZodISODateTime;
|
|
17
|
+
updatedAt: z.ZodISODateTime;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const CreateAdminPresetCategoryCommand: {
|
|
20
|
+
method: HTTP_METHODS.POST;
|
|
21
|
+
path: "preset-categories";
|
|
22
|
+
summary: string;
|
|
23
|
+
request: {
|
|
24
|
+
body: z.ZodObject<{
|
|
25
|
+
slug: z.ZodString;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
icon: z.ZodString;
|
|
28
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
};
|
|
31
|
+
responses: {
|
|
32
|
+
201: z.ZodObject<{
|
|
33
|
+
uuid: z.ZodUUID;
|
|
34
|
+
slug: z.ZodString;
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
icon: z.ZodString;
|
|
37
|
+
order: z.ZodInt;
|
|
38
|
+
isActive: z.ZodBoolean;
|
|
39
|
+
createdAt: z.ZodISODateTime;
|
|
40
|
+
updatedAt: z.ZodISODateTime;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
43
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
44
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
45
|
+
409: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
46
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export type CreateAdminPresetCategoryCommandBodyType = z.infer<typeof CreateAdminPresetCategoryCommandBody>;
|
|
50
|
+
export type CreateAdminPresetCategoryCommandResponseType = z.infer<typeof CreateAdminPresetCategoryCommandResponse>;
|
|
51
|
+
//# sourceMappingURL=create-admin-preset-category.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-admin-preset-category.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/create-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,oCAAoC;;;;;iBAA4B,CAAC;AAE9E,eAAO,MAAM,wCAAwC;;;;;;;;;iBAAoC,CAAC;AAE1F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe3C,CAAC;AAEH,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,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAdminPresetCategoryCommand = exports.CreateAdminPresetCategoryCommandResponse = exports.CreateAdminPresetCategoryCommandBody = void 0;
|
|
4
|
+
const _common_1 = require("../../../_common");
|
|
5
|
+
const preset_1 = require("../../../preset");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const admin_1 = require("../admin");
|
|
8
|
+
exports.CreateAdminPresetCategoryCommandBody = preset_1.PresetCategoryInputSchema;
|
|
9
|
+
exports.CreateAdminPresetCategoryCommandResponse = models_1.AdminPresetCategoryResponseSchema;
|
|
10
|
+
exports.CreateAdminPresetCategoryCommand = (0, _common_1.defineContract)({
|
|
11
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
12
|
+
path: admin_1.ADMIN_ROUTES.CREATE_PRESET_CATEGORY,
|
|
13
|
+
summary: 'Create preset category',
|
|
14
|
+
request: {
|
|
15
|
+
body: exports.CreateAdminPresetCategoryCommandBody,
|
|
16
|
+
},
|
|
17
|
+
responses: {
|
|
18
|
+
201: exports.CreateAdminPresetCategoryCommandResponse,
|
|
19
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
20
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
21
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
409: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
},
|
|
25
|
+
});
|