@purpleschool/multisite 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/controller/http/ai-proxy.ts +6 -0
- package/api/controller/http/auth.ts +14 -0
- package/api/controller/http/cloud-payments.ts +5 -0
- package/api/controller/http/file.ts +6 -0
- package/api/controller/http/health.ts +3 -0
- package/api/controller/http/image-editor.ts +15 -0
- package/api/controller/http/image-generation.ts +15 -0
- package/api/controller/http/index.ts +16 -0
- package/api/controller/http/marketplace-card.ts +15 -0
- package/api/controller/http/page-question.ts +9 -0
- package/api/controller/http/page.ts +12 -0
- package/api/controller/http/payment.ts +5 -0
- package/api/controller/http/product.ts +7 -0
- package/api/controller/http/subscription.ts +7 -0
- package/api/controller/http/transaction.ts +5 -0
- package/api/controller/http/unregistered-user.ts +1 -0
- package/api/controller/http/user.ts +5 -0
- package/api/controller/index.ts +1 -0
- package/api/index.ts +2 -0
- package/api/routes.ts +109 -0
- package/build/api/controller/http/index.d.ts +1 -0
- package/build/api/controller/http/index.d.ts.map +1 -1
- package/build/api/controller/http/index.js +1 -0
- package/build/api/controller/http/marketplace-card.d.ts +15 -0
- package/build/api/controller/http/marketplace-card.d.ts.map +1 -0
- package/build/api/controller/http/marketplace-card.js +17 -0
- package/build/api/routes.d.ts +23 -0
- package/build/api/routes.d.ts.map +1 -1
- package/build/api/routes.js +23 -0
- package/build/commands/index.d.ts +1 -0
- package/build/commands/index.d.ts.map +1 -1
- package/build/commands/index.js +1 -0
- package/build/commands/marketplace-card/execute-marketplace-card.command.d.ts +155 -0
- package/build/commands/marketplace-card/execute-marketplace-card.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/execute-marketplace-card.command.js +12 -0
- package/build/commands/marketplace-card/index.d.ts +7 -0
- package/build/commands/marketplace-card/index.d.ts.map +1 -0
- package/build/commands/marketplace-card/index.js +22 -0
- package/build/commands/marketplace-card/retry-marketplace-card-job.command.d.ts +163 -0
- package/build/commands/marketplace-card/retry-marketplace-card-job.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/retry-marketplace-card-job.command.js +25 -0
- package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.d.ts +143 -0
- package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.js +19 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-job-by-uuid.command.d.ts +20 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-job-by-uuid.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-job-by-uuid.command.js +13 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-jobs-by-criteria.command.d.ts +12 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-jobs-by-criteria.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-jobs-by-criteria.command.js +10 -0
- package/build/commands/marketplace-card/update-marketplace-card-job-title.command.d.ts +139 -0
- package/build/commands/marketplace-card/update-marketplace-card-job-title.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/update-marketplace-card-job-title.command.js +17 -0
- package/build/constants/errors/errors.d.ts +90 -0
- package/build/constants/errors/errors.d.ts.map +1 -1
- package/build/constants/errors/errors.js +91 -0
- package/build/constants/tools/enums/index.d.ts +1 -0
- package/build/constants/tools/enums/index.d.ts.map +1 -1
- package/build/constants/tools/enums/index.js +1 -0
- package/build/constants/tools/enums/marketplace-card-strategy.enum.d.ts +7 -0
- package/build/constants/tools/enums/marketplace-card-strategy.enum.d.ts.map +1 -0
- package/build/constants/tools/enums/marketplace-card-strategy.enum.js +10 -0
- package/build/constants/tools/enums/tool-type.enum.d.ts +2 -1
- package/build/constants/tools/enums/tool-type.enum.d.ts.map +1 -1
- package/build/constants/tools/enums/tool-type.enum.js +1 -0
- package/build/models/index.d.ts +1 -0
- package/build/models/index.d.ts.map +1 -1
- package/build/models/index.js +1 -0
- package/build/models/marketplace-card/index.d.ts +7 -0
- package/build/models/marketplace-card/index.d.ts.map +1 -0
- package/build/models/marketplace-card/index.js +22 -0
- package/build/models/marketplace-card/marketplace-card-config.schema.d.ts +203 -0
- package/build/models/marketplace-card/marketplace-card-config.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-config.schema.js +10 -0
- package/build/models/marketplace-card/marketplace-card-job-request-params.schema.d.ts +34 -0
- package/build/models/marketplace-card/marketplace-card-job-request-params.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-job-request-params.schema.js +15 -0
- package/build/models/marketplace-card/marketplace-card-job.schema.d.ts +74 -0
- package/build/models/marketplace-card/marketplace-card-job.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-job.schema.js +28 -0
- package/build/models/marketplace-card/marketplace-card-model-params.schema.d.ts +30 -0
- package/build/models/marketplace-card/marketplace-card-model-params.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-model-params.schema.js +11 -0
- package/build/models/marketplace-card/marketplace-card-model.schema.d.ts +123 -0
- package/build/models/marketplace-card/marketplace-card-model.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-model.schema.js +15 -0
- package/build/models/marketplace-card/marketplace-card-style-preset.schema.d.ts +19 -0
- package/build/models/marketplace-card/marketplace-card-style-preset.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-style-preset.schema.js +10 -0
- package/build/queries/index.d.ts +1 -0
- package/build/queries/index.d.ts.map +1 -1
- package/build/queries/index.js +1 -0
- package/build/queries/marketplace-card/find-marketplace-card-jobs.command.d.ts +160 -0
- package/build/queries/marketplace-card/find-marketplace-card-jobs.command.d.ts.map +1 -0
- package/build/queries/marketplace-card/find-marketplace-card-jobs.command.js +21 -0
- package/build/queries/marketplace-card/get-marketplace-card-config.command.d.ts +273 -0
- package/build/queries/marketplace-card/get-marketplace-card-config.command.d.ts.map +1 -0
- package/build/queries/marketplace-card/get-marketplace-card-config.command.js +11 -0
- package/build/queries/marketplace-card/get-marketplace-card-job.command.d.ts +131 -0
- package/build/queries/marketplace-card/get-marketplace-card-job.command.d.ts.map +1 -0
- package/build/queries/marketplace-card/get-marketplace-card-job.command.js +14 -0
- package/build/queries/marketplace-card/get-marketplace-card-price.command.d.ts +30 -0
- package/build/queries/marketplace-card/get-marketplace-card-price.command.d.ts.map +1 -0
- package/build/queries/marketplace-card/get-marketplace-card-price.command.js +15 -0
- package/build/queries/marketplace-card/index.d.ts +5 -0
- package/build/queries/marketplace-card/index.d.ts.map +1 -0
- package/build/queries/marketplace-card/index.js +20 -0
- package/commands/auth/create-user.command.ts +18 -0
- package/commands/auth/index.ts +9 -0
- package/commands/auth/login.command.ts +17 -0
- package/commands/auth/register.command.ts +20 -0
- package/commands/auth/reset-password.command.ts +19 -0
- package/commands/auth/restore-password.command.ts +16 -0
- package/commands/auth/verify-email-retry.command.ts +17 -0
- package/commands/auth/verify-email.command.ts +18 -0
- package/commands/auth/vk-login.command.ts +21 -0
- package/commands/auth/yandex-login.command.ts +19 -0
- package/commands/file/index.ts +1 -0
- package/commands/file/upload-file.command.ts +9 -0
- package/commands/image-editor/execute-image-editor.command.ts +18 -0
- package/commands/image-editor/index.ts +7 -0
- package/commands/image-editor/proxy-image-editor-callback.command.ts +15 -0
- package/commands/image-editor/retry-image-editor-job.command.ts +17 -0
- package/commands/image-editor/set-reaction-to-image-editor-job.command.ts +18 -0
- package/commands/image-editor/soft-delete-image-editor-job-by-uuid.command.ts +8 -0
- package/commands/image-editor/soft-delete-image-editor-jobs-by-criteria.command.ts +8 -0
- package/commands/image-editor/update-image-editor-job-title.command.ts +16 -0
- package/commands/image-generation/execute-image-generation.command.ts +19 -0
- package/commands/image-generation/index.ts +7 -0
- package/commands/image-generation/proxy-image-generation-callback.command.ts +21 -0
- package/commands/image-generation/retry-image-generation-job.command.ts +19 -0
- package/commands/image-generation/set-reaction-to-image-generation-job.command.ts +28 -0
- package/commands/image-generation/soft-delete-image-generation-job-by-uuid.command.ts +9 -0
- package/commands/image-generation/soft-delete-image-generation-jobs-by-criteria.command.ts +9 -0
- package/commands/image-generation/update-image-generation-job-title.command.ts +16 -0
- package/commands/index.ts +11 -0
- package/commands/marketplace-card/execute-marketplace-card.command.ts +12 -0
- package/commands/marketplace-card/index.ts +6 -0
- package/commands/marketplace-card/retry-marketplace-card-job.command.ts +27 -0
- package/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.ts +21 -0
- package/commands/marketplace-card/soft-delete-marketplace-card-job-by-uuid.command.ts +13 -0
- package/commands/marketplace-card/soft-delete-marketplace-card-jobs-by-criteria.command.ts +8 -0
- package/commands/marketplace-card/update-marketplace-card-job-title.command.ts +19 -0
- package/commands/page/create-page-question.command.ts +18 -0
- package/commands/page/create-page.command.ts +18 -0
- package/commands/page/delete-page-question.command.ts +14 -0
- package/commands/page/delete-page.command.ts +12 -0
- package/commands/page/find-page-by-alias.command.ts +28 -0
- package/commands/page/find-page-by-criteria.command.ts +24 -0
- package/commands/page/find-page.command.ts +22 -0
- package/commands/page/index.ts +9 -0
- package/commands/page/update-page-question.command.ts +24 -0
- package/commands/page/update-page.command.ts +24 -0
- package/commands/payment/cloud-payments.command.ts +53 -0
- package/commands/payment/index.ts +1 -0
- package/commands/product/buy-product.command.ts +19 -0
- package/commands/product/index.ts +1 -0
- package/commands/subscription/buy-subscription.command.ts +19 -0
- package/commands/subscription/index.ts +1 -0
- package/commands/transaction/index.ts +1 -0
- package/commands/transaction/write-off.command.ts +19 -0
- package/commands/unregistered-user/index.ts +1 -0
- package/commands/unregistered-user/upsert-unregistered-user.command.ts +16 -0
- package/constants/common/enums/index.ts +1 -0
- package/constants/common/enums/user-reaction.enum.ts +4 -0
- package/constants/common/index.ts +1 -0
- package/constants/email/email-endpoint.ts +1 -0
- package/constants/email/index.ts +2 -0
- package/constants/email/subjects.ts +12 -0
- package/constants/errors/errors.ts +682 -0
- package/constants/errors/index.ts +1 -0
- package/constants/files/enums/file-type.enum.ts +3 -0
- package/constants/files/enums/index.ts +1 -0
- package/constants/files/index.ts +1 -0
- package/constants/image-editor/enums/image-editing-strategy.enum.ts +9 -0
- package/constants/image-editor/enums/image-editor-model-type.enum.ts +5 -0
- package/constants/image-editor/enums/index.ts +2 -0
- package/constants/image-editor/index.ts +1 -0
- package/constants/image-generation/enums/image-generation-model-strategy.enum.ts +15 -0
- package/constants/image-generation/enums/image-generation-resolution.enum.ts +5 -0
- package/constants/image-generation/enums/index.ts +2 -0
- package/constants/image-generation/index.ts +1 -0
- package/constants/index.ts +15 -0
- package/constants/order/enums/index.ts +2 -0
- package/constants/order/enums/order-status.enum.ts +5 -0
- package/constants/order/enums/order-type.enum.ts +3 -0
- package/constants/order/index.ts +1 -0
- package/constants/page/enums/page-type.enum.ts +5 -0
- package/constants/page/index.ts +1 -0
- package/constants/payment/enums/index.ts +1 -0
- package/constants/payment/enums/payment-status.enum.ts +3 -0
- package/constants/payment/index.ts +1 -0
- package/constants/subscription/free-subscription-id.constant.ts +1 -0
- package/constants/subscription/index.ts +1 -0
- package/constants/tools/enums/index.ts +5 -0
- package/constants/tools/enums/job-request-origin.enum.ts +3 -0
- package/constants/tools/enums/job-status.enum.ts +5 -0
- package/constants/tools/enums/marketplace-card-strategy.enum.ts +6 -0
- package/constants/tools/enums/tool-model-status.enum.ts +4 -0
- package/constants/tools/enums/tool-type.enum.ts +5 -0
- package/constants/tools/index.ts +1 -0
- package/constants/transaction/enums/index.ts +1 -0
- package/constants/transaction/enums/transaction-status.enum.ts +5 -0
- package/constants/transaction/index.ts +1 -0
- package/constants/user/enums/index.ts +3 -0
- package/constants/user/enums/signup-method.enum.ts +6 -0
- package/constants/user/enums/user-role.enum.ts +5 -0
- package/constants/user/enums/user-status.enum.ts +5 -0
- package/constants/user/index.ts +1 -0
- package/constants/user-to-product/enums/index.ts +1 -0
- package/constants/user-to-product/enums/user-to-product-status.enum.ts +3 -0
- package/constants/user-to-product/index.ts +1 -0
- package/constants/user-to-subscription/enums/index.ts +1 -0
- package/constants/user-to-subscription/enums/user-to-subscription-status.enum.ts +3 -0
- package/constants/user-to-subscription/index.ts +1 -0
- package/index.ts +5 -0
- package/models/cloud-payments-widget-data.schema.ts +18 -0
- package/models/cloud-payments-widget.schema.ts +15 -0
- package/models/common/attached-file.schema.ts +13 -0
- package/models/common/icon-variants.schema.ts +12 -0
- package/models/common/index.ts +4 -0
- package/models/common/json-value.schema.ts +10 -0
- package/models/common/receipt.schema.ts +19 -0
- package/models/file.schema.ts +13 -0
- package/models/image-editor/image-editor-config.schema.ts +10 -0
- package/models/image-editor/image-editor-job-params.schema.ts +12 -0
- package/models/image-editor/image-editor-job-request-params.schema.ts +9 -0
- package/models/image-editor/image-editor-job.schema.ts +30 -0
- package/models/image-editor/image-editor-model-params.schema.ts +18 -0
- package/models/image-editor/image-editor-model.schema.ts +28 -0
- package/models/image-editor/image-editor-pricing-rule.schema.ts +14 -0
- package/models/image-editor/image-editor-prompt-group.schema.ts +13 -0
- package/models/image-editor/image-editor-system-prompt.schema.ts +20 -0
- package/models/image-editor/index.ts +9 -0
- package/models/image-generation/image-generation-config.schema.ts +10 -0
- package/models/image-generation/image-generation-job-attempt.schema.ts +11 -0
- package/models/image-generation/image-generation-job-params.schema.ts +11 -0
- package/models/image-generation/image-generation-job-request-params.schema.ts +10 -0
- package/models/image-generation/image-generation-job.schema.ts +30 -0
- package/models/image-generation/image-generation-model-params.schema.ts +22 -0
- package/models/image-generation/image-generation-model.schema.ts +28 -0
- package/models/image-generation/image-generation-preset.schema.ts +10 -0
- package/models/image-generation/image-generation-pricing-rule.schema.ts +19 -0
- package/models/image-generation/image-generation-vendor.schema.ts +9 -0
- package/models/image-generation/index.ts +10 -0
- package/models/index.ts +13 -0
- package/models/marketplace-card/index.ts +6 -0
- package/models/marketplace-card/marketplace-card-config.schema.ts +10 -0
- package/models/marketplace-card/marketplace-card-job-request-params.schema.ts +15 -0
- package/models/marketplace-card/marketplace-card-job.schema.ts +28 -0
- package/models/marketplace-card/marketplace-card-model-params.schema.ts +11 -0
- package/models/marketplace-card/marketplace-card-model.schema.ts +16 -0
- package/models/marketplace-card/marketplace-card-style-preset.schema.ts +10 -0
- package/models/page-question.schema.ts +10 -0
- package/models/page.schema.ts +40 -0
- package/models/product.schema.ts +10 -0
- package/models/subscription.schema.ts +12 -0
- package/models/tools/index.ts +1 -0
- package/models/tools/vendor.schema.ts +11 -0
- package/models/user.schema.ts +11 -0
- package/package.json +1 -7
- package/queries/file/find-files.command.ts +20 -0
- package/queries/file/get-file.command.ts +14 -0
- package/queries/file/index.ts +2 -0
- package/queries/image-editor/find-image-editor-jobs.command.ts +20 -0
- package/queries/image-editor/get-image-editor-config.command.ts +9 -0
- package/queries/image-editor/get-image-editor-job.command.ts +14 -0
- package/queries/image-editor/get-image-editor-price.command.ts +17 -0
- package/queries/image-editor/index.ts +4 -0
- package/queries/image-generation/find-image-generation-jobs.command.ts +20 -0
- package/queries/image-generation/get-image-generation-config.command.ts +9 -0
- package/queries/image-generation/get-image-generation-job.command.ts +14 -0
- package/queries/image-generation/get-image-generation-price.command.ts +19 -0
- package/queries/image-generation/index.ts +4 -0
- package/queries/index.ts +9 -0
- package/queries/marketplace-card/find-marketplace-card-jobs.command.ts +21 -0
- package/queries/marketplace-card/get-marketplace-card-config.command.ts +9 -0
- package/queries/marketplace-card/get-marketplace-card-job.command.ts +14 -0
- package/queries/marketplace-card/get-marketplace-card-price.command.ts +15 -0
- package/queries/marketplace-card/index.ts +4 -0
- package/queries/page/find-all-page-questions.query.ts +14 -0
- package/queries/page/find-page-question-by-uuid.query.ts +16 -0
- package/queries/page/find-page-questions-by-page-id.query.ts +16 -0
- package/queries/page/index.ts +3 -0
- package/queries/payment/get-payment-history.command.ts +17 -0
- package/queries/payment/index.ts +1 -0
- package/queries/product/find-products.command.ts +9 -0
- package/queries/product/index.ts +1 -0
- package/queries/subscription/find-subscriptions.command.ts +9 -0
- package/queries/subscription/index.ts +1 -0
- package/queries/user/get-my-products.command.ts +19 -0
- package/queries/user/get-my-subscriptions.command.ts +21 -0
- package/queries/user/get-user.command.ts +14 -0
- package/queries/user/index.ts +3 -0
- package/tsconfig.json +104 -0
|
@@ -379,6 +379,96 @@ export declare const ERRORS: {
|
|
|
379
379
|
readonly code: "IMAGE_EDITOR_014";
|
|
380
380
|
readonly httpCode: 404;
|
|
381
381
|
};
|
|
382
|
+
readonly MARKETPLACE_CARD_MODEL_NOT_FOUND: {
|
|
383
|
+
readonly message: "Модель marketplace card не найдена";
|
|
384
|
+
readonly code: "MARKETPLACE_CARD_001";
|
|
385
|
+
readonly httpCode: 404;
|
|
386
|
+
};
|
|
387
|
+
readonly MARKETPLACE_CARD_MODEL_INACTIVE: {
|
|
388
|
+
readonly message: "Модель marketplace card недоступна";
|
|
389
|
+
readonly code: "MARKETPLACE_CARD_002";
|
|
390
|
+
readonly httpCode: 400;
|
|
391
|
+
};
|
|
392
|
+
readonly MARKETPLACE_CARD_NOT_ENOUGH_TOKENS: {
|
|
393
|
+
readonly message: "Недостаточно токенов";
|
|
394
|
+
readonly code: "MARKETPLACE_CARD_003";
|
|
395
|
+
readonly httpCode: 402;
|
|
396
|
+
};
|
|
397
|
+
readonly MARKETPLACE_CARD_JOB_NOT_FOUND: {
|
|
398
|
+
readonly message: "Задача marketplace card не найдена";
|
|
399
|
+
readonly code: "MARKETPLACE_CARD_004";
|
|
400
|
+
readonly httpCode: 404;
|
|
401
|
+
};
|
|
402
|
+
readonly MARKETPLACE_CARD_PROXY_ERROR: {
|
|
403
|
+
readonly message: "Ошибка при запросе к AI proxy";
|
|
404
|
+
readonly code: "MARKETPLACE_CARD_005";
|
|
405
|
+
readonly httpCode: 500;
|
|
406
|
+
};
|
|
407
|
+
readonly MARKETPLACE_CARD_STYLE_PRESET_NOT_FOUND: {
|
|
408
|
+
readonly message: "Стиль marketplace card не найден";
|
|
409
|
+
readonly code: "MARKETPLACE_CARD_006";
|
|
410
|
+
readonly httpCode: 404;
|
|
411
|
+
};
|
|
412
|
+
readonly MARKETPLACE_CARD_IMAGE_ATTACHMENT_NOT_SUPPORTED: {
|
|
413
|
+
readonly message: "Модель marketplace card не поддерживает вложенные изображения";
|
|
414
|
+
readonly code: "MARKETPLACE_CARD_007";
|
|
415
|
+
readonly httpCode: 400;
|
|
416
|
+
};
|
|
417
|
+
readonly MARKETPLACE_CARD_JOB_NOT_IN_FAILED_STATE_TO_RETRY: {
|
|
418
|
+
readonly message: "Задача marketplace card не в статусе FAILED";
|
|
419
|
+
readonly code: "MARKETPLACE_CARD_008";
|
|
420
|
+
readonly httpCode: 400;
|
|
421
|
+
};
|
|
422
|
+
readonly MARKETPLACE_CARD_MODEL_NOT_AVAILABLE: {
|
|
423
|
+
readonly message: "Модель marketplace card недоступна по вашей подписке";
|
|
424
|
+
readonly code: "MARKETPLACE_CARD_009";
|
|
425
|
+
readonly httpCode: 403;
|
|
426
|
+
};
|
|
427
|
+
readonly MARKETPLACE_CARD_CONFIG_BUILD_ERROR: {
|
|
428
|
+
readonly message: "Ошибка при формировании конфига marketplace card";
|
|
429
|
+
readonly code: "MARKETPLACE_CARD_010";
|
|
430
|
+
readonly httpCode: 500;
|
|
431
|
+
};
|
|
432
|
+
readonly MARKETPLACE_CARD_MODEL_FIND_ERROR: {
|
|
433
|
+
readonly message: "Ошибка при получении моделей marketplace card";
|
|
434
|
+
readonly code: "MARKETPLACE_CARD_011";
|
|
435
|
+
readonly httpCode: 500;
|
|
436
|
+
};
|
|
437
|
+
readonly MARKETPLACE_CARD_STYLE_PRESET_FIND_ERROR: {
|
|
438
|
+
readonly message: "Ошибка при получении стилей marketplace card";
|
|
439
|
+
readonly code: "MARKETPLACE_CARD_012";
|
|
440
|
+
readonly httpCode: 500;
|
|
441
|
+
};
|
|
442
|
+
readonly MARKETPLACE_CARD_JOB_FIND_ERROR: {
|
|
443
|
+
readonly message: "Ошибка при получении задач marketplace card";
|
|
444
|
+
readonly code: "MARKETPLACE_CARD_013";
|
|
445
|
+
readonly httpCode: 500;
|
|
446
|
+
};
|
|
447
|
+
readonly MARKETPLACE_CARD_JOB_SAVE_ERROR: {
|
|
448
|
+
readonly message: "Ошибка при сохранении задачи marketplace card";
|
|
449
|
+
readonly code: "MARKETPLACE_CARD_014";
|
|
450
|
+
readonly httpCode: 500;
|
|
451
|
+
};
|
|
452
|
+
readonly MARKETPLACE_CARD_JOB_UPDATE_ERROR: {
|
|
453
|
+
readonly message: "Ошибка при обновлении задачи marketplace card";
|
|
454
|
+
readonly code: "MARKETPLACE_CARD_015";
|
|
455
|
+
readonly httpCode: 500;
|
|
456
|
+
};
|
|
457
|
+
readonly MARKETPLACE_CARD_JOB_DELETE_ERROR: {
|
|
458
|
+
readonly message: "Ошибка при удалении задачи marketplace card";
|
|
459
|
+
readonly code: "MARKETPLACE_CARD_016";
|
|
460
|
+
readonly httpCode: 500;
|
|
461
|
+
};
|
|
462
|
+
readonly MARKETPLACE_CARD_MAX_PROMPT_LENGTH_EXCEEDED: {
|
|
463
|
+
readonly message: "Превышена максимальная длина prompt для marketplace card";
|
|
464
|
+
readonly code: "MARKETPLACE_CARD_017";
|
|
465
|
+
readonly httpCode: 400;
|
|
466
|
+
};
|
|
467
|
+
readonly MARKETPLACE_CARD_TOO_MANY_ATTACHED_IMAGES: {
|
|
468
|
+
readonly message: "Слишком много вложенных изображений для marketplace card";
|
|
469
|
+
readonly code: "MARKETPLACE_CARD_018";
|
|
470
|
+
readonly httpCode: 400;
|
|
471
|
+
};
|
|
382
472
|
readonly FILE_NOT_FOUND: {
|
|
383
473
|
readonly message: "Файл не найден";
|
|
384
474
|
readonly code: "FILE_001";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyqBT,CAAC"}
|
|
@@ -394,6 +394,97 @@ exports.ERRORS = {
|
|
|
394
394
|
code: 'IMAGE_EDITOR_014',
|
|
395
395
|
httpCode: 404,
|
|
396
396
|
},
|
|
397
|
+
// MARKETPLACE CARD
|
|
398
|
+
MARKETPLACE_CARD_MODEL_NOT_FOUND: {
|
|
399
|
+
message: 'Модель marketplace card не найдена',
|
|
400
|
+
code: 'MARKETPLACE_CARD_001',
|
|
401
|
+
httpCode: 404,
|
|
402
|
+
},
|
|
403
|
+
MARKETPLACE_CARD_MODEL_INACTIVE: {
|
|
404
|
+
message: 'Модель marketplace card недоступна',
|
|
405
|
+
code: 'MARKETPLACE_CARD_002',
|
|
406
|
+
httpCode: 400,
|
|
407
|
+
},
|
|
408
|
+
MARKETPLACE_CARD_NOT_ENOUGH_TOKENS: {
|
|
409
|
+
message: 'Недостаточно токенов',
|
|
410
|
+
code: 'MARKETPLACE_CARD_003',
|
|
411
|
+
httpCode: 402,
|
|
412
|
+
},
|
|
413
|
+
MARKETPLACE_CARD_JOB_NOT_FOUND: {
|
|
414
|
+
message: 'Задача marketplace card не найдена',
|
|
415
|
+
code: 'MARKETPLACE_CARD_004',
|
|
416
|
+
httpCode: 404,
|
|
417
|
+
},
|
|
418
|
+
MARKETPLACE_CARD_PROXY_ERROR: {
|
|
419
|
+
message: 'Ошибка при запросе к AI proxy',
|
|
420
|
+
code: 'MARKETPLACE_CARD_005',
|
|
421
|
+
httpCode: 500,
|
|
422
|
+
},
|
|
423
|
+
MARKETPLACE_CARD_STYLE_PRESET_NOT_FOUND: {
|
|
424
|
+
message: 'Стиль marketplace card не найден',
|
|
425
|
+
code: 'MARKETPLACE_CARD_006',
|
|
426
|
+
httpCode: 404,
|
|
427
|
+
},
|
|
428
|
+
MARKETPLACE_CARD_IMAGE_ATTACHMENT_NOT_SUPPORTED: {
|
|
429
|
+
message: 'Модель marketplace card не поддерживает вложенные изображения',
|
|
430
|
+
code: 'MARKETPLACE_CARD_007',
|
|
431
|
+
httpCode: 400,
|
|
432
|
+
},
|
|
433
|
+
MARKETPLACE_CARD_JOB_NOT_IN_FAILED_STATE_TO_RETRY: {
|
|
434
|
+
message: 'Задача marketplace card не в статусе FAILED',
|
|
435
|
+
code: 'MARKETPLACE_CARD_008',
|
|
436
|
+
httpCode: 400,
|
|
437
|
+
},
|
|
438
|
+
MARKETPLACE_CARD_MODEL_NOT_AVAILABLE: {
|
|
439
|
+
message: 'Модель marketplace card недоступна по вашей подписке',
|
|
440
|
+
code: 'MARKETPLACE_CARD_009',
|
|
441
|
+
httpCode: 403,
|
|
442
|
+
},
|
|
443
|
+
MARKETPLACE_CARD_CONFIG_BUILD_ERROR: {
|
|
444
|
+
message: 'Ошибка при формировании конфига marketplace card',
|
|
445
|
+
code: 'MARKETPLACE_CARD_010',
|
|
446
|
+
httpCode: 500,
|
|
447
|
+
},
|
|
448
|
+
MARKETPLACE_CARD_MODEL_FIND_ERROR: {
|
|
449
|
+
message: 'Ошибка при получении моделей marketplace card',
|
|
450
|
+
code: 'MARKETPLACE_CARD_011',
|
|
451
|
+
httpCode: 500,
|
|
452
|
+
},
|
|
453
|
+
MARKETPLACE_CARD_STYLE_PRESET_FIND_ERROR: {
|
|
454
|
+
message: 'Ошибка при получении стилей marketplace card',
|
|
455
|
+
code: 'MARKETPLACE_CARD_012',
|
|
456
|
+
httpCode: 500,
|
|
457
|
+
},
|
|
458
|
+
MARKETPLACE_CARD_JOB_FIND_ERROR: {
|
|
459
|
+
message: 'Ошибка при получении задач marketplace card',
|
|
460
|
+
code: 'MARKETPLACE_CARD_013',
|
|
461
|
+
httpCode: 500,
|
|
462
|
+
},
|
|
463
|
+
MARKETPLACE_CARD_JOB_SAVE_ERROR: {
|
|
464
|
+
message: 'Ошибка при сохранении задачи marketplace card',
|
|
465
|
+
code: 'MARKETPLACE_CARD_014',
|
|
466
|
+
httpCode: 500,
|
|
467
|
+
},
|
|
468
|
+
MARKETPLACE_CARD_JOB_UPDATE_ERROR: {
|
|
469
|
+
message: 'Ошибка при обновлении задачи marketplace card',
|
|
470
|
+
code: 'MARKETPLACE_CARD_015',
|
|
471
|
+
httpCode: 500,
|
|
472
|
+
},
|
|
473
|
+
MARKETPLACE_CARD_JOB_DELETE_ERROR: {
|
|
474
|
+
message: 'Ошибка при удалении задачи marketplace card',
|
|
475
|
+
code: 'MARKETPLACE_CARD_016',
|
|
476
|
+
httpCode: 500,
|
|
477
|
+
},
|
|
478
|
+
MARKETPLACE_CARD_MAX_PROMPT_LENGTH_EXCEEDED: {
|
|
479
|
+
message: 'Превышена максимальная длина prompt для marketplace card',
|
|
480
|
+
code: 'MARKETPLACE_CARD_017',
|
|
481
|
+
httpCode: 400,
|
|
482
|
+
},
|
|
483
|
+
MARKETPLACE_CARD_TOO_MANY_ATTACHED_IMAGES: {
|
|
484
|
+
message: 'Слишком много вложенных изображений для marketplace card',
|
|
485
|
+
code: 'MARKETPLACE_CARD_018',
|
|
486
|
+
httpCode: 400,
|
|
487
|
+
},
|
|
397
488
|
// FILES
|
|
398
489
|
FILE_NOT_FOUND: {
|
|
399
490
|
message: 'Файл не найден',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/tools/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/tools/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kBAAkB,CAAC"}
|
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./job-status.enum"), exports);
|
|
18
18
|
__exportStar(require("./tool-model-status.enum"), exports);
|
|
19
19
|
__exportStar(require("./job-request-origin.enum"), exports);
|
|
20
|
+
__exportStar(require("./marketplace-card-strategy.enum"), exports);
|
|
20
21
|
__exportStar(require("./tool-type.enum"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum MARKETPLACE_CARD_STRATEGY {
|
|
2
|
+
NANO_BANANA_POLLING = "NANO_BANANA_POLLING",
|
|
3
|
+
NANO_BANANA_CALLBACK = "NANO_BANANA_CALLBACK",
|
|
4
|
+
NANO_BANANA_PRO_CALLBACK = "NANO_BANANA_PRO_CALLBACK",
|
|
5
|
+
NANO_BANANA_PRO_POLLING = "NANO_BANANA_PRO_POLLING"
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=marketplace-card-strategy.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-card-strategy.enum.d.ts","sourceRoot":"","sources":["../../../../constants/tools/enums/marketplace-card-strategy.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACjC,mBAAmB,wBAAwB;IAC3C,oBAAoB,yBAAyB;IAC7C,wBAAwB,6BAA6B;IACrD,uBAAuB,4BAA4B;CACtD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MARKETPLACE_CARD_STRATEGY = void 0;
|
|
4
|
+
var MARKETPLACE_CARD_STRATEGY;
|
|
5
|
+
(function (MARKETPLACE_CARD_STRATEGY) {
|
|
6
|
+
MARKETPLACE_CARD_STRATEGY["NANO_BANANA_POLLING"] = "NANO_BANANA_POLLING";
|
|
7
|
+
MARKETPLACE_CARD_STRATEGY["NANO_BANANA_CALLBACK"] = "NANO_BANANA_CALLBACK";
|
|
8
|
+
MARKETPLACE_CARD_STRATEGY["NANO_BANANA_PRO_CALLBACK"] = "NANO_BANANA_PRO_CALLBACK";
|
|
9
|
+
MARKETPLACE_CARD_STRATEGY["NANO_BANANA_PRO_POLLING"] = "NANO_BANANA_PRO_POLLING";
|
|
10
|
+
})(MARKETPLACE_CARD_STRATEGY || (exports.MARKETPLACE_CARD_STRATEGY = MARKETPLACE_CARD_STRATEGY = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-type.enum.d.ts","sourceRoot":"","sources":["../../../../constants/tools/enums/tool-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACjB,gBAAgB,qBAAqB;IACrC,YAAY,iBAAiB;
|
|
1
|
+
{"version":3,"file":"tool-type.enum.d.ts","sourceRoot":"","sources":["../../../../constants/tools/enums/tool-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACjB,gBAAgB,qBAAqB;IACrC,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;CACxC"}
|
package/build/models/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './cloud-payments-widget.schema';
|
|
|
5
5
|
export * from './cloud-payments-widget-data.schema';
|
|
6
6
|
export * from './image-generation';
|
|
7
7
|
export * from './image-editor';
|
|
8
|
+
export * from './marketplace-card';
|
|
8
9
|
export * from './file.schema';
|
|
9
10
|
export * from './common';
|
|
10
11
|
export * from './tools';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC"}
|
package/build/models/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./cloud-payments-widget.schema"), exports);
|
|
|
21
21
|
__exportStar(require("./cloud-payments-widget-data.schema"), exports);
|
|
22
22
|
__exportStar(require("./image-generation"), exports);
|
|
23
23
|
__exportStar(require("./image-editor"), exports);
|
|
24
|
+
__exportStar(require("./marketplace-card"), exports);
|
|
24
25
|
__exportStar(require("./file.schema"), exports);
|
|
25
26
|
__exportStar(require("./common"), exports);
|
|
26
27
|
__exportStar(require("./tools"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './marketplace-card-model-params.schema';
|
|
2
|
+
export * from './marketplace-card-model.schema';
|
|
3
|
+
export * from './marketplace-card-style-preset.schema';
|
|
4
|
+
export * from './marketplace-card-job-request-params.schema';
|
|
5
|
+
export * from './marketplace-card-job.schema';
|
|
6
|
+
export * from './marketplace-card-config.schema';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/marketplace-card/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./marketplace-card-model-params.schema"), exports);
|
|
18
|
+
__exportStar(require("./marketplace-card-model.schema"), exports);
|
|
19
|
+
__exportStar(require("./marketplace-card-style-preset.schema"), exports);
|
|
20
|
+
__exportStar(require("./marketplace-card-job-request-params.schema"), exports);
|
|
21
|
+
__exportStar(require("./marketplace-card-job.schema"), exports);
|
|
22
|
+
__exportStar(require("./marketplace-card-config.schema"), exports);
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MarketplaceCardConfigSchema: z.ZodObject<{
|
|
3
|
+
styles: z.ZodArray<z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
previewImageUrl: z.ZodString;
|
|
6
|
+
order: z.ZodNumber;
|
|
7
|
+
isActive: z.ZodBoolean;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
uuid: string;
|
|
10
|
+
order: number;
|
|
11
|
+
previewImageUrl: string;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
}, {
|
|
14
|
+
uuid: string;
|
|
15
|
+
order: number;
|
|
16
|
+
previewImageUrl: string;
|
|
17
|
+
isActive: boolean;
|
|
18
|
+
}>, "many">;
|
|
19
|
+
models: z.ZodArray<z.ZodObject<{
|
|
20
|
+
uuid: z.ZodString;
|
|
21
|
+
price: z.ZodNumber;
|
|
22
|
+
params: z.ZodObject<{
|
|
23
|
+
imageAttachment: z.ZodObject<{
|
|
24
|
+
supported: z.ZodBoolean;
|
|
25
|
+
maxImages: z.ZodNumber;
|
|
26
|
+
acceptedTypes: z.ZodArray<z.ZodString, "many">;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
supported: boolean;
|
|
29
|
+
maxImages: number;
|
|
30
|
+
acceptedTypes: string[];
|
|
31
|
+
}, {
|
|
32
|
+
supported: boolean;
|
|
33
|
+
maxImages: number;
|
|
34
|
+
acceptedTypes: string[];
|
|
35
|
+
}>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
imageAttachment: {
|
|
38
|
+
supported: boolean;
|
|
39
|
+
maxImages: number;
|
|
40
|
+
acceptedTypes: string[];
|
|
41
|
+
};
|
|
42
|
+
}, {
|
|
43
|
+
imageAttachment: {
|
|
44
|
+
supported: boolean;
|
|
45
|
+
maxImages: number;
|
|
46
|
+
acceptedTypes: string[];
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
iconVariants: z.ZodObject<{
|
|
50
|
+
light: z.ZodObject<{
|
|
51
|
+
png: z.ZodOptional<z.ZodString>;
|
|
52
|
+
svg: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
png?: string | undefined;
|
|
55
|
+
svg?: string | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
png?: string | undefined;
|
|
58
|
+
svg?: string | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
dark: z.ZodObject<{
|
|
61
|
+
png: z.ZodOptional<z.ZodString>;
|
|
62
|
+
svg: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
png?: string | undefined;
|
|
65
|
+
svg?: string | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
png?: string | undefined;
|
|
68
|
+
svg?: string | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
light: {
|
|
72
|
+
png?: string | undefined;
|
|
73
|
+
svg?: string | undefined;
|
|
74
|
+
};
|
|
75
|
+
dark: {
|
|
76
|
+
png?: string | undefined;
|
|
77
|
+
svg?: string | undefined;
|
|
78
|
+
};
|
|
79
|
+
}, {
|
|
80
|
+
light: {
|
|
81
|
+
png?: string | undefined;
|
|
82
|
+
svg?: string | undefined;
|
|
83
|
+
};
|
|
84
|
+
dark: {
|
|
85
|
+
png?: string | undefined;
|
|
86
|
+
svg?: string | undefined;
|
|
87
|
+
};
|
|
88
|
+
}>;
|
|
89
|
+
maxPromptLength: z.ZodNumber;
|
|
90
|
+
supportsImageAttachment: z.ZodBoolean;
|
|
91
|
+
maxAttachedImages: z.ZodNumber;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
price: number;
|
|
94
|
+
uuid: string;
|
|
95
|
+
params: {
|
|
96
|
+
imageAttachment: {
|
|
97
|
+
supported: boolean;
|
|
98
|
+
maxImages: number;
|
|
99
|
+
acceptedTypes: string[];
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
maxPromptLength: number;
|
|
103
|
+
iconVariants: {
|
|
104
|
+
light: {
|
|
105
|
+
png?: string | undefined;
|
|
106
|
+
svg?: string | undefined;
|
|
107
|
+
};
|
|
108
|
+
dark: {
|
|
109
|
+
png?: string | undefined;
|
|
110
|
+
svg?: string | undefined;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
supportsImageAttachment: boolean;
|
|
114
|
+
maxAttachedImages: number;
|
|
115
|
+
}, {
|
|
116
|
+
price: number;
|
|
117
|
+
uuid: string;
|
|
118
|
+
params: {
|
|
119
|
+
imageAttachment: {
|
|
120
|
+
supported: boolean;
|
|
121
|
+
maxImages: number;
|
|
122
|
+
acceptedTypes: string[];
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
maxPromptLength: number;
|
|
126
|
+
iconVariants: {
|
|
127
|
+
light: {
|
|
128
|
+
png?: string | undefined;
|
|
129
|
+
svg?: string | undefined;
|
|
130
|
+
};
|
|
131
|
+
dark: {
|
|
132
|
+
png?: string | undefined;
|
|
133
|
+
svg?: string | undefined;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
supportsImageAttachment: boolean;
|
|
137
|
+
maxAttachedImages: number;
|
|
138
|
+
}>, "many">;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
models: {
|
|
141
|
+
price: number;
|
|
142
|
+
uuid: string;
|
|
143
|
+
params: {
|
|
144
|
+
imageAttachment: {
|
|
145
|
+
supported: boolean;
|
|
146
|
+
maxImages: number;
|
|
147
|
+
acceptedTypes: string[];
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
maxPromptLength: number;
|
|
151
|
+
iconVariants: {
|
|
152
|
+
light: {
|
|
153
|
+
png?: string | undefined;
|
|
154
|
+
svg?: string | undefined;
|
|
155
|
+
};
|
|
156
|
+
dark: {
|
|
157
|
+
png?: string | undefined;
|
|
158
|
+
svg?: string | undefined;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
supportsImageAttachment: boolean;
|
|
162
|
+
maxAttachedImages: number;
|
|
163
|
+
}[];
|
|
164
|
+
styles: {
|
|
165
|
+
uuid: string;
|
|
166
|
+
order: number;
|
|
167
|
+
previewImageUrl: string;
|
|
168
|
+
isActive: boolean;
|
|
169
|
+
}[];
|
|
170
|
+
}, {
|
|
171
|
+
models: {
|
|
172
|
+
price: number;
|
|
173
|
+
uuid: string;
|
|
174
|
+
params: {
|
|
175
|
+
imageAttachment: {
|
|
176
|
+
supported: boolean;
|
|
177
|
+
maxImages: number;
|
|
178
|
+
acceptedTypes: string[];
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
maxPromptLength: number;
|
|
182
|
+
iconVariants: {
|
|
183
|
+
light: {
|
|
184
|
+
png?: string | undefined;
|
|
185
|
+
svg?: string | undefined;
|
|
186
|
+
};
|
|
187
|
+
dark: {
|
|
188
|
+
png?: string | undefined;
|
|
189
|
+
svg?: string | undefined;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
supportsImageAttachment: boolean;
|
|
193
|
+
maxAttachedImages: number;
|
|
194
|
+
}[];
|
|
195
|
+
styles: {
|
|
196
|
+
uuid: string;
|
|
197
|
+
order: number;
|
|
198
|
+
previewImageUrl: string;
|
|
199
|
+
isActive: boolean;
|
|
200
|
+
}[];
|
|
201
|
+
}>;
|
|
202
|
+
export type MarketplaceCardConfig = z.infer<typeof MarketplaceCardConfigSchema>;
|
|
203
|
+
//# sourceMappingURL=marketplace-card-config.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-card-config.schema.d.ts","sourceRoot":"","sources":["../../../models/marketplace-card/marketplace-card-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceCardConfigSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const marketplace_card_model_schema_1 = require("./marketplace-card-model.schema");
|
|
6
|
+
const marketplace_card_style_preset_schema_1 = require("./marketplace-card-style-preset.schema");
|
|
7
|
+
exports.MarketplaceCardConfigSchema = zod_1.z.object({
|
|
8
|
+
styles: zod_1.z.array(marketplace_card_style_preset_schema_1.MarketplaceCardStylePresetSchema),
|
|
9
|
+
models: zod_1.z.array(marketplace_card_model_schema_1.MarketplaceCardModelSchema),
|
|
10
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MarketplaceCardJobRequestParamsSchema: z.ZodObject<{
|
|
3
|
+
title: z.ZodString;
|
|
4
|
+
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
advantages: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
6
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
+
stylePresetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
isCustom: z.ZodBoolean;
|
|
9
|
+
customStylePrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
inputImages: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
11
|
+
backgroundDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
title: string;
|
|
14
|
+
advantages: string[];
|
|
15
|
+
tags: string[];
|
|
16
|
+
isCustom: boolean;
|
|
17
|
+
inputImages: string[];
|
|
18
|
+
subtitle?: string | null | undefined;
|
|
19
|
+
stylePresetId?: string | null | undefined;
|
|
20
|
+
customStylePrompt?: string | null | undefined;
|
|
21
|
+
backgroundDescription?: string | null | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
title: string;
|
|
24
|
+
isCustom: boolean;
|
|
25
|
+
subtitle?: string | null | undefined;
|
|
26
|
+
advantages?: string[] | undefined;
|
|
27
|
+
tags?: string[] | undefined;
|
|
28
|
+
stylePresetId?: string | null | undefined;
|
|
29
|
+
customStylePrompt?: string | null | undefined;
|
|
30
|
+
inputImages?: string[] | undefined;
|
|
31
|
+
backgroundDescription?: string | null | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export type MarketplaceCardJobRequestParams = z.infer<typeof MarketplaceCardJobRequestParamsSchema>;
|
|
34
|
+
//# sourceMappingURL=marketplace-card-job-request-params.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-card-job-request-params.schema.d.ts","sourceRoot":"","sources":["../../../models/marketplace-card/marketplace-card-job-request-params.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplaceCardJobRequestParamsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.MarketplaceCardJobRequestParamsSchema = zod_1.z.object({
|
|
6
|
+
title: zod_1.z.string().min(1),
|
|
7
|
+
subtitle: zod_1.z.string().nullable().optional(),
|
|
8
|
+
advantages: zod_1.z.array(zod_1.z.string()).default([]),
|
|
9
|
+
tags: zod_1.z.array(zod_1.z.string()).default([]),
|
|
10
|
+
stylePresetId: zod_1.z.string().uuid().nullable().optional(),
|
|
11
|
+
isCustom: zod_1.z.boolean(),
|
|
12
|
+
customStylePrompt: zod_1.z.string().nullable().optional(),
|
|
13
|
+
inputImages: zod_1.z.array(zod_1.z.string().uuid()).default([]),
|
|
14
|
+
backgroundDescription: zod_1.z.string().nullable().optional(),
|
|
15
|
+
});
|