@purpleschool/gptbot 0.15.60-stage2 → 0.15.61
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/build/api/controllers/http/avatar-studio.d.ts +2 -5
- package/build/api/controllers/http/avatar-studio.js +4 -6
- package/build/api/controllers/http/index.d.ts +0 -1
- package/build/api/controllers/http/index.js +0 -1
- package/build/api/controllers/http/tts.d.ts +0 -9
- package/build/api/controllers/http/tts.js +0 -9
- package/build/api/routes.d.ts +3 -50
- package/build/api/routes.js +3 -50
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +1 -11
- package/build/commands/avatar-studio/clip/create-avatar-studio-clip.command.d.ts +1 -1
- package/build/commands/avatar-studio/clip/find-avatar-studio-clips.query.d.ts +1 -1
- package/build/commands/avatar-studio/clip/get-avatar-studio-clip.query.d.ts +1 -1
- package/build/commands/avatar-studio/clip/update-avatar-studio-clip.command.d.ts +1 -1
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.d.ts +2 -4
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-scene-voice.command.js +2 -4
- package/build/commands/avatar-studio/scene/{apply-avatar-studio-voice-to-all-scenes.command.d.ts → apply-avatar-studio-voice-sample-to-all-scenes.command.d.ts} +3 -3
- package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-sample-to-all-scenes.command.js +15 -0
- package/build/commands/avatar-studio/scene/create-avatar-studio-scene.command.d.ts +1 -1
- package/build/commands/avatar-studio/scene/index.d.ts +1 -1
- package/build/commands/avatar-studio/scene/index.js +1 -1
- package/build/commands/avatar-studio/scene/reorder-avatar-studio-scenes.command.d.ts +1 -1
- package/build/commands/avatar-studio/scene/set-avatar-studio-scene-slot.command.d.ts +1 -1
- package/build/commands/avatar-studio/scene/update-avatar-studio-scene.command.d.ts +2 -2
- package/build/commands/avatar-studio/scriptwriter/apply-avatar-studio-scriptwriter-message.command.d.ts +1 -1
- package/build/commands/avatar-studio/shared/avatar-studio-common.schema.d.ts +1 -1
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.d.ts +6 -5
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.js +12 -7
- package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.d.ts +56 -26
- package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.js +7 -6
- package/build/commands/avatar-studio/voice/index.d.ts +0 -3
- package/build/commands/avatar-studio/voice/index.js +0 -3
- package/build/commands/photo-studio/get-photo-studio-config.query.d.ts +2 -0
- package/build/commands/product/create-product.command.d.ts +100 -0
- package/build/commands/product/find-product.command.d.ts +100 -0
- package/build/commands/product/get-my-products.command.d.ts +50 -0
- package/build/commands/product/update-product.command.d.ts +100 -0
- package/build/commands/subscription/create-subscription.command.d.ts +100 -0
- package/build/commands/subscription/find-subscription.command.d.ts +150 -0
- package/build/commands/subscription/get-available-upgrades.command.d.ts +100 -0
- package/build/commands/subscription/get-free-subscription.command.d.ts +50 -0
- package/build/commands/subscription/get-subscriptions-summary.command.d.ts +250 -0
- package/build/commands/subscription/update-subscription.command.d.ts +100 -0
- package/build/commands/team-account/find-current-team-account-products-by-team-account-id.command.d.ts +50 -0
- package/build/commands/team-account/find-current-team-account-products.command.d.ts +50 -0
- package/build/commands/team-account/find-current-team-account-subscriptions-by-team-account-id.command.d.ts +50 -0
- package/build/commands/team-account/find-current-team-account-subscriptions.command.d.ts +50 -0
- package/build/commands/team-account/find-team-account-products.command.d.ts +50 -0
- package/build/commands/team-account/find-team-account-subscriptions.command.d.ts +100 -0
- package/build/commands/team-account/get-team-account-available-upgrades.command.d.ts +50 -0
- package/build/commands/team-to-product/get-team-to-products.command.d.ts +50 -0
- package/build/commands/team-to-subscription/get-team-to-subscriptions.command.d.ts +50 -0
- package/build/commands/tools/html-page-builder/execute-html-page-builder.command.d.ts +0 -2
- package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.d.ts +0 -2
- package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.d.ts +0 -2
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.d.ts +0 -2
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.d.ts +0 -2
- package/build/commands/tools/image-editor/find-image-editor-job-by-uuid.command.d.ts +0 -2
- package/build/commands/tools/image-editor/find-image-editor-jobs.command.d.ts +0 -2
- package/build/commands/tools/image-editor/get-image-editor-tool-config.command.d.ts +1 -0
- package/build/commands/tools/image-editor/retry-image-editor-job.command.d.ts +0 -2
- package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.d.ts +0 -2
- package/build/commands/tools/image-editor/update-image-editor-job-favorite.command.d.ts +0 -2
- package/build/commands/tools/image-editor/update-image-editor-job-title.command.d.ts +0 -2
- package/build/commands/tools/image-recognition/find-image-recognition-job-by-uuid.command.d.ts +0 -2
- package/build/commands/tools/image-recognition/find-image-recognition-jobs.command.d.ts +0 -2
- package/build/commands/tools/image-recognition/image-recognition.command.d.ts +0 -2
- package/build/commands/tools/image-recognition/retry-image-recognition-job.command.d.ts +0 -2
- package/build/commands/tools/image-recognition/set-reaction-to-image-recognition-job.command.d.ts +0 -2
- package/build/commands/tools/image-recognition/update-image-recognition-job-favorite.command.d.ts +0 -2
- package/build/commands/tools/image-recognition/update-image-recognition-job-title.command.d.ts +0 -2
- package/build/commands/tools/index.d.ts +0 -1
- package/build/commands/tools/index.js +0 -1
- package/build/commands/tools/interior-design/find-interior-design-job-by-uuid.command.d.ts +0 -2
- package/build/commands/tools/interior-design/find-interior-design-jobs.command.d.ts +0 -2
- package/build/commands/tools/interior-design/retry-interior-design-job.command.d.ts +0 -2
- package/build/commands/tools/interior-design/set-reaction-to-interior-design-job.command.d.ts +0 -2
- package/build/commands/tools/interior-design/update-interior-design-job-favorite.command.d.ts +0 -2
- package/build/commands/tools/interior-design/update-interior-design-job-title.command.d.ts +0 -2
- package/build/commands/tools/solving-edu-task/find-solving-edu-task-job-by-uuid.command.d.ts +0 -2
- package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.d.ts +0 -2
- package/build/commands/tools/solving-edu-task/retry-solving-edu-task-job.command.d.ts +0 -2
- package/build/commands/tools/solving-edu-task/set-reaction-to-solving-edu-task-job.command.d.ts +0 -2
- package/build/commands/tools/solving-edu-task/solving-edu-task.command.d.ts +0 -2
- package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-favorite.command.d.ts +0 -2
- package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-title.command.d.ts +0 -2
- package/build/commands/tools/tool/find-grouped-tools.command.d.ts +1 -0
- package/build/commands/tools/tts/find-tts-job-by-uuid.command.d.ts +1 -13
- package/build/commands/tools/tts/find-tts-jobs.command.d.ts +1 -13
- package/build/commands/tools/tts/get-tts-tool-config.command.d.ts +0 -11
- package/build/commands/tools/tts/index.d.ts +0 -9
- package/build/commands/tools/tts/index.js +0 -9
- package/build/commands/tools/tts/retry-tts-job.command.d.ts +1 -13
- package/build/commands/tools/tts/set-reaction-to-tts-job.command.d.ts +1 -13
- package/build/commands/tools/tts/tts.command.d.ts +1 -6
- package/build/commands/tools/tts/tts.command.js +1 -7
- package/build/commands/tools/tts/update-tts-job-favorite.command.d.ts +1 -13
- package/build/commands/tools/tts/update-tts-job-title.command.d.ts +1 -13
- package/build/commands/user/get-user-products.command.d.ts +50 -0
- package/build/commands/user/get-user-subscriptions.command.d.ts +50 -0
- package/build/commands/user-to-subscription/get-user-to-subscriptions.command.d.ts +50 -0
- package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.d.ts +0 -1
- package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.js +0 -1
- package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.d.ts +2 -1
- package/build/constants/avatar-studio/enums/avatar-studio-media-kind.enum.js +1 -0
- package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.d.ts +1 -1
- package/build/constants/avatar-studio/enums/avatar-studio-slot.enum.js +1 -1
- package/build/constants/index.d.ts +0 -2
- package/build/constants/index.js +0 -2
- package/build/constants/subscription/enums/subscription-feature-type.enum.d.ts +2 -0
- package/build/constants/subscription/enums/subscription-feature-type.enum.js +2 -0
- package/build/constants/tool/enums/index.d.ts +0 -1
- package/build/constants/tool/enums/index.js +0 -1
- package/build/constants/tool/enums/tool-group.enum.d.ts +1 -1
- package/build/constants/tool/enums/tool-group.enum.js +1 -1
- package/build/helpers/image-editor/calculate-image-editor-price.helper.d.ts +2 -1
- package/build/helpers/image-editor/calculate-image-editor-price.helper.js +4 -1
- package/build/helpers/index.d.ts +0 -1
- package/build/helpers/index.js +0 -1
- package/build/models/avatar-studio/avatar-studio.schema.d.ts +6 -6
- package/build/models/avatar-studio/avatar-studio.schema.js +3 -3
- package/build/models/canvas-node-definition.schema.d.ts +3 -33
- package/build/models/product.schema.d.ts +50 -0
- package/build/models/subscription-feature.schema.d.ts +103 -0
- package/build/models/subscription-feature.schema.js +14 -1
- package/build/models/subscription-upgrade-schema.d.ts +50 -0
- package/build/models/subscription.schema.d.ts +250 -0
- package/build/models/team-account/team-to-product.schema.d.ts +50 -0
- package/build/models/team-account/team-to-subscription.schema.d.ts +50 -0
- package/build/models/tool-group.schema.d.ts +1 -0
- package/build/models/tool-group.schema.js +1 -0
- package/build/models/tools/common/attached-tool-file.schema.d.ts +0 -2
- package/build/models/tools/common/attached-tool-file.schema.js +0 -2
- package/build/models/tools/html-page-builder/html-page-builder-job.schema.d.ts +0 -4
- package/build/models/tools/html-page-builder/html-page-builder-session.schema.d.ts +0 -2
- package/build/models/tools/image-editor/image-editor-config.schema.d.ts +1 -0
- package/build/models/tools/image-editor/image-editor-job.schema.d.ts +0 -4
- package/build/models/tools/image-editor/image-editor-model.schema.d.ts +3 -0
- package/build/models/tools/image-editor/image-editor-model.schema.js +1 -0
- package/build/models/tools/image-recognition/image-recognition-job.schema.d.ts +0 -4
- package/build/models/tools/index.d.ts +0 -1
- package/build/models/tools/index.js +0 -1
- package/build/models/tools/interior-design/interior-design-job.schema.d.ts +0 -4
- package/build/models/tools/solving-edu-task/solving-edu-task-job.schema.d.ts +0 -4
- package/build/models/tools/tts/index.d.ts +0 -3
- package/build/models/tools/tts/index.js +0 -3
- package/build/models/tools/tts/tts-config.schema.d.ts +0 -23
- package/build/models/tools/tts/tts-config.schema.js +1 -14
- package/build/models/tools/tts/tts-job.schema.d.ts +1 -26
- package/build/models/tools/tts/tts-job.schema.js +2 -16
- package/build/models/tools/tts/tts-model.schema.d.ts +0 -1
- package/build/models/tools/tts/tts-model.schema.js +0 -1
- package/build/models/user-to-product.schema.d.ts +50 -0
- package/build/models/user-to-subscription.schema.d.ts +150 -0
- package/package.json +1 -1
- package/build/api/controllers/http/photo-session.d.ts +0 -20
- package/build/api/controllers/http/photo-session.js +0 -23
- package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.js +0 -17
- package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.d.ts +0 -43
- package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.js +0 -19
- package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.d.ts +0 -11
- package/build/commands/avatar-studio/voice/delete-avatar-studio-voice.command.js +0 -13
- package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.d.ts +0 -36
- package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.js +0 -11
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +0 -39
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +0 -22
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.d.ts +0 -9
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +0 -11
- package/build/commands/tools/photo-session/admin/index.d.ts +0 -4
- package/build/commands/tools/photo-session/admin/index.js +0 -20
- package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.d.ts +0 -8
- package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.js +0 -11
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +0 -38
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +0 -21
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.d.ts +0 -5
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +0 -8
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +0 -9
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +0 -11
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +0 -119
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +0 -14
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +0 -128
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +0 -24
- package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +0 -75
- package/build/commands/tools/photo-session/get-photo-session-config.command.js +0 -11
- package/build/commands/tools/photo-session/get-photo-session-styles.command.d.ts +0 -23
- package/build/commands/tools/photo-session/get-photo-session-styles.command.js +0 -11
- package/build/commands/tools/photo-session/index.d.ts +0 -13
- package/build/commands/tools/photo-session/index.js +0 -29
- package/build/commands/tools/photo-session/photo-session.command.d.ts +0 -138
- package/build/commands/tools/photo-session/photo-session.command.js +0 -25
- package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +0 -100
- package/build/commands/tools/photo-session/retry-photo-session-job.command.js +0 -14
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +0 -106
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +0 -28
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +0 -104
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +0 -17
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +0 -123
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +0 -17
- package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.d.ts +0 -105
- package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.js +0 -23
- package/build/commands/tools/tts/create-voice-clone.command.d.ts +0 -44
- package/build/commands/tools/tts/create-voice-clone.command.js +0 -18
- package/build/commands/tools/tts/create-voice-design.command.d.ts +0 -24
- package/build/commands/tools/tts/create-voice-design.command.js +0 -18
- package/build/commands/tools/tts/delete-voice.command.d.ts +0 -9
- package/build/commands/tools/tts/delete-voice.command.js +0 -11
- package/build/commands/tools/tts/download-tts-job.command.d.ts +0 -18
- package/build/commands/tools/tts/download-tts-job.command.js +0 -17
- package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +0 -40
- package/build/commands/tools/tts/find-voice-by-uuid.query.js +0 -14
- package/build/commands/tools/tts/find-voices.query.d.ts +0 -48
- package/build/commands/tools/tts/find-voices.query.js +0 -18
- package/build/commands/tools/tts/improve-tts-text.command.d.ts +0 -13
- package/build/commands/tools/tts/improve-tts-text.command.js +0 -13
- package/build/commands/tools/tts/select-voice-design.command.d.ts +0 -44
- package/build/commands/tools/tts/select-voice-design.command.js +0 -17
- package/build/commands/tools/tts/update-voice.command.d.ts +0 -45
- package/build/commands/tools/tts/update-voice.command.js +0 -18
- package/build/constants/tool/enums/job-scope.enum.d.ts +0 -5
- package/build/constants/tool/enums/job-scope.enum.js +0 -9
- package/build/constants/tool-photo-session/enums/index.d.ts +0 -3
- package/build/constants/tool-photo-session/enums/index.js +0 -19
- package/build/constants/tool-photo-session/enums/photo-session-group-status.enum.d.ts +0 -6
- package/build/constants/tool-photo-session/enums/photo-session-group-status.enum.js +0 -10
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.d.ts +0 -5
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.js +0 -9
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.d.ts +0 -3
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.js +0 -7
- package/build/constants/tool-photo-session/index.d.ts +0 -1
- package/build/constants/tool-photo-session/index.js +0 -17
- package/build/constants/tool-tts/enums/index.d.ts +0 -7
- package/build/constants/tool-tts/enums/index.js +0 -23
- package/build/constants/tool-tts/enums/tts-download-format.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/tts-download-format.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-category.enum.d.ts +0 -19
- package/build/constants/tool-tts/enums/voice-category.enum.js +0 -23
- package/build/constants/tool-tts/enums/voice-gender.enum.d.ts +0 -4
- package/build/constants/tool-tts/enums/voice-gender.enum.js +0 -8
- package/build/constants/tool-tts/enums/voice-source.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-source.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-status.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-status.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-tag-group.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-tag-group.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-tag.enum.d.ts +0 -20
- package/build/constants/tool-tts/enums/voice-tag.enum.js +0 -24
- package/build/constants/tool-tts/index.d.ts +0 -1
- package/build/constants/tool-tts/index.js +0 -17
- package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +0 -6
- package/build/helpers/photo-session/calculate-photo-session-price.helper.js +0 -13
- package/build/helpers/photo-session/index.d.ts +0 -1
- package/build/helpers/photo-session/index.js +0 -17
- package/build/models/tools/photo-session/index.d.ts +0 -5
- package/build/models/tools/photo-session/index.js +0 -21
- package/build/models/tools/photo-session/photo-session-config.schema.d.ts +0 -141
- package/build/models/tools/photo-session/photo-session-config.schema.js +0 -21
- package/build/models/tools/photo-session/photo-session-group.schema.d.ts +0 -112
- package/build/models/tools/photo-session/photo-session-group.schema.js +0 -26
- package/build/models/tools/photo-session/photo-session-job.schema.d.ts +0 -158
- package/build/models/tools/photo-session/photo-session-job.schema.js +0 -55
- package/build/models/tools/photo-session/photo-session-model.schema.d.ts +0 -114
- package/build/models/tools/photo-session/photo-session-model.schema.js +0 -46
- package/build/models/tools/photo-session/photo-session-style.schema.d.ts +0 -29
- package/build/models/tools/photo-session/photo-session-style.schema.js +0 -22
- package/build/models/tools/tts/voice-design-draft.schema.d.ts +0 -13
- package/build/models/tools/tts/voice-design-draft.schema.js +0 -13
- package/build/models/tools/tts/voice-design-sample.schema.d.ts +0 -6
- package/build/models/tools/tts/voice-design-sample.schema.js +0 -8
- package/build/models/tools/tts/voice.schema.d.ts +0 -33
- package/build/models/tools/tts/voice.schema.js +0 -37
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VOICE_TAG = void 0;
|
|
4
|
-
var VOICE_TAG;
|
|
5
|
-
(function (VOICE_TAG) {
|
|
6
|
-
VOICE_TAG["JOYFUL"] = "JOYFUL";
|
|
7
|
-
VOICE_TAG["SAD"] = "SAD";
|
|
8
|
-
VOICE_TAG["ANGRY"] = "ANGRY";
|
|
9
|
-
VOICE_TAG["SURPRISED"] = "SURPRISED";
|
|
10
|
-
VOICE_TAG["TENDER"] = "TENDER";
|
|
11
|
-
VOICE_TAG["IRONIC"] = "IRONIC";
|
|
12
|
-
VOICE_TAG["CONVERSATIONAL"] = "CONVERSATIONAL";
|
|
13
|
-
VOICE_TAG["PROFESSIONAL"] = "PROFESSIONAL";
|
|
14
|
-
VOICE_TAG["WHISPER"] = "WHISPER";
|
|
15
|
-
VOICE_TAG["LOUDER"] = "LOUDER";
|
|
16
|
-
VOICE_TAG["QUIETER"] = "QUIETER";
|
|
17
|
-
VOICE_TAG["FASTER"] = "FASTER";
|
|
18
|
-
VOICE_TAG["PAUSE"] = "PAUSE";
|
|
19
|
-
VOICE_TAG["SHORT_PAUSE"] = "SHORT_PAUSE";
|
|
20
|
-
VOICE_TAG["LAUGH"] = "LAUGH";
|
|
21
|
-
VOICE_TAG["SIGH"] = "SIGH";
|
|
22
|
-
VOICE_TAG["COUGH"] = "COUGH";
|
|
23
|
-
VOICE_TAG["BREATH"] = "BREATH";
|
|
24
|
-
})(VOICE_TAG || (exports.VOICE_TAG = VOICE_TAG = {}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './enums';
|
|
@@ -1,17 +0,0 @@
|
|
|
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("./enums"), exports);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PhotoSessionModelPricingRules } from '../../models';
|
|
2
|
-
export declare function calculatePhotoSessionPrice({ basePrice, userHasActiveSubscriptionOrProduct, rules, }: {
|
|
3
|
-
basePrice: number;
|
|
4
|
-
userHasActiveSubscriptionOrProduct: boolean;
|
|
5
|
-
rules: PhotoSessionModelPricingRules;
|
|
6
|
-
}): number;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calculatePhotoSessionPrice = calculatePhotoSessionPrice;
|
|
4
|
-
function calculatePhotoSessionPrice({ basePrice, userHasActiveSubscriptionOrProduct, rules, }) {
|
|
5
|
-
let price = basePrice;
|
|
6
|
-
for (const rule of rules !== null && rules !== void 0 ? rules : []) {
|
|
7
|
-
const condition = rule.condition;
|
|
8
|
-
if (condition.withoutSub && userHasActiveSubscriptionOrProduct === false) {
|
|
9
|
-
price += rule.value;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return price;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './calculate-photo-session-price.helper';
|
|
@@ -1,17 +0,0 @@
|
|
|
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("./calculate-photo-session-price.helper"), exports);
|
|
@@ -1,21 +0,0 @@
|
|
|
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("./photo-session-config.schema"), exports);
|
|
18
|
-
__exportStar(require("./photo-session-job.schema"), exports);
|
|
19
|
-
__exportStar(require("./photo-session-group.schema"), exports);
|
|
20
|
-
__exportStar(require("./photo-session-model.schema"), exports);
|
|
21
|
-
__exportStar(require("./photo-session-style.schema"), exports);
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { PHOTO_SESSION_LOOK_TYPE } from '../../../constants';
|
|
3
|
-
export declare const PhotoSessionLookCategorySchema: z.ZodObject<{
|
|
4
|
-
type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
|
|
5
|
-
maxPhotos: z.ZodNumber;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export declare const PhotoSessionConfigSchema: z.ZodObject<{
|
|
8
|
-
models: z.ZodArray<z.ZodObject<{
|
|
9
|
-
uuid: z.ZodString;
|
|
10
|
-
title: z.ZodString;
|
|
11
|
-
description: z.ZodString;
|
|
12
|
-
aiModel: z.ZodString;
|
|
13
|
-
isNew: z.ZodBoolean;
|
|
14
|
-
tierLabel: z.ZodString;
|
|
15
|
-
pricePerImage: z.ZodNumber;
|
|
16
|
-
order: z.ZodNumber;
|
|
17
|
-
status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
|
|
18
|
-
icons: z.ZodObject<{
|
|
19
|
-
light: z.ZodObject<{
|
|
20
|
-
svg: z.ZodString;
|
|
21
|
-
png: z.ZodString;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
dark: z.ZodObject<{
|
|
24
|
-
svg: z.ZodString;
|
|
25
|
-
png: z.ZodString;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
maxInputLength: z.ZodNumber;
|
|
29
|
-
params: z.ZodObject<{
|
|
30
|
-
imageAttachment: z.ZodObject<{
|
|
31
|
-
supported: z.ZodBoolean;
|
|
32
|
-
maxImages: z.ZodNumber;
|
|
33
|
-
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
36
|
-
width: z.ZodNumber;
|
|
37
|
-
height: z.ZodNumber;
|
|
38
|
-
}, z.core.$strip>>;
|
|
39
|
-
}, z.core.$strip>;
|
|
40
|
-
pricingRules: z.ZodArray<z.ZodObject<{
|
|
41
|
-
condition: z.ZodObject<{
|
|
42
|
-
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
-
}, z.core.$strip>;
|
|
44
|
-
value: z.ZodNumber;
|
|
45
|
-
}, z.core.$strip>>;
|
|
46
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
47
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
48
|
-
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
49
|
-
uuid: z.ZodString;
|
|
50
|
-
name: z.ZodString;
|
|
51
|
-
}, z.core.$strip>>;
|
|
52
|
-
canUse: z.ZodBoolean;
|
|
53
|
-
}, z.core.$strip>>;
|
|
54
|
-
styles: z.ZodArray<z.ZodObject<{
|
|
55
|
-
uuid: z.ZodString;
|
|
56
|
-
code: z.ZodString;
|
|
57
|
-
title: z.ZodString;
|
|
58
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
-
references: z.ZodArray<z.ZodObject<{
|
|
60
|
-
uuid: z.ZodString;
|
|
61
|
-
styleId: z.ZodString;
|
|
62
|
-
photoUrl: z.ZodString;
|
|
63
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
-
order: z.ZodNumber;
|
|
65
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
66
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
67
|
-
}, z.core.$strip>>;
|
|
68
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
69
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
70
|
-
}, z.core.$strip>>;
|
|
71
|
-
looks: z.ZodArray<z.ZodObject<{
|
|
72
|
-
type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
|
|
73
|
-
maxPhotos: z.ZodNumber;
|
|
74
|
-
}, z.core.$strip>>;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
export type PhotoSessionConfig = z.infer<typeof PhotoSessionConfigSchema>;
|
|
77
|
-
export declare const RawPhotoSessionConfigSchema: z.ZodObject<{
|
|
78
|
-
models: z.ZodArray<z.ZodObject<{
|
|
79
|
-
uuid: z.ZodString;
|
|
80
|
-
title: z.ZodString;
|
|
81
|
-
description: z.ZodString;
|
|
82
|
-
aiModel: z.ZodString;
|
|
83
|
-
isNew: z.ZodBoolean;
|
|
84
|
-
tierLabel: z.ZodString;
|
|
85
|
-
pricePerImage: z.ZodNumber;
|
|
86
|
-
order: z.ZodNumber;
|
|
87
|
-
status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
|
|
88
|
-
icons: z.ZodObject<{
|
|
89
|
-
light: z.ZodObject<{
|
|
90
|
-
svg: z.ZodString;
|
|
91
|
-
png: z.ZodString;
|
|
92
|
-
}, z.core.$strip>;
|
|
93
|
-
dark: z.ZodObject<{
|
|
94
|
-
svg: z.ZodString;
|
|
95
|
-
png: z.ZodString;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
}, z.core.$strip>;
|
|
98
|
-
maxInputLength: z.ZodNumber;
|
|
99
|
-
params: z.ZodObject<{
|
|
100
|
-
imageAttachment: z.ZodObject<{
|
|
101
|
-
supported: z.ZodBoolean;
|
|
102
|
-
maxImages: z.ZodNumber;
|
|
103
|
-
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
104
|
-
}, z.core.$strip>;
|
|
105
|
-
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
106
|
-
width: z.ZodNumber;
|
|
107
|
-
height: z.ZodNumber;
|
|
108
|
-
}, z.core.$strip>>;
|
|
109
|
-
}, z.core.$strip>;
|
|
110
|
-
pricingRules: z.ZodArray<z.ZodObject<{
|
|
111
|
-
condition: z.ZodObject<{
|
|
112
|
-
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
-
}, z.core.$strip>;
|
|
114
|
-
value: z.ZodNumber;
|
|
115
|
-
}, z.core.$strip>>;
|
|
116
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
117
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
118
|
-
}, z.core.$strip>>;
|
|
119
|
-
styles: z.ZodArray<z.ZodObject<{
|
|
120
|
-
uuid: z.ZodString;
|
|
121
|
-
code: z.ZodString;
|
|
122
|
-
title: z.ZodString;
|
|
123
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
-
references: z.ZodArray<z.ZodObject<{
|
|
125
|
-
uuid: z.ZodString;
|
|
126
|
-
styleId: z.ZodString;
|
|
127
|
-
photoUrl: z.ZodString;
|
|
128
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
-
order: z.ZodNumber;
|
|
130
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
131
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
132
|
-
}, z.core.$strip>>;
|
|
133
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
134
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
135
|
-
}, z.core.$strip>>;
|
|
136
|
-
looks: z.ZodArray<z.ZodObject<{
|
|
137
|
-
type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
|
|
138
|
-
maxPhotos: z.ZodNumber;
|
|
139
|
-
}, z.core.$strip>>;
|
|
140
|
-
}, z.core.$strip>;
|
|
141
|
-
export type RawPhotoSessionConfig = z.infer<typeof RawPhotoSessionConfigSchema>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RawPhotoSessionConfigSchema = exports.PhotoSessionConfigSchema = exports.PhotoSessionLookCategorySchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const photo_session_model_schema_1 = require("./photo-session-model.schema");
|
|
6
|
-
const photo_session_style_schema_1 = require("./photo-session-style.schema");
|
|
7
|
-
const constants_1 = require("../../../constants");
|
|
8
|
-
exports.PhotoSessionLookCategorySchema = zod_1.z.object({
|
|
9
|
-
type: zod_1.z.nativeEnum(constants_1.PHOTO_SESSION_LOOK_TYPE),
|
|
10
|
-
maxPhotos: zod_1.z.number(),
|
|
11
|
-
});
|
|
12
|
-
exports.PhotoSessionConfigSchema = zod_1.z.object({
|
|
13
|
-
models: zod_1.z.array(photo_session_model_schema_1.PhotoSessionModelSchema),
|
|
14
|
-
styles: zod_1.z.array(photo_session_style_schema_1.PhotoSessionStyleSchema),
|
|
15
|
-
looks: zod_1.z.array(exports.PhotoSessionLookCategorySchema),
|
|
16
|
-
});
|
|
17
|
-
exports.RawPhotoSessionConfigSchema = zod_1.z.object({
|
|
18
|
-
models: zod_1.z.array(photo_session_model_schema_1.RawPhotoSessionModelSchema),
|
|
19
|
-
styles: zod_1.z.array(photo_session_style_schema_1.PhotoSessionStyleSchema),
|
|
20
|
-
looks: zod_1.z.array(exports.PhotoSessionLookCategorySchema),
|
|
21
|
-
});
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { JOB_SCOPE, PHOTO_SESSION_GROUP_STATUS } from '../../../constants';
|
|
3
|
-
export declare const PhotoSessionGroupSchema: z.ZodObject<{
|
|
4
|
-
uuid: z.ZodString;
|
|
5
|
-
title: z.ZodString;
|
|
6
|
-
prompt: z.ZodString;
|
|
7
|
-
status: z.ZodEnum<typeof PHOTO_SESSION_GROUP_STATUS>;
|
|
8
|
-
error: z.ZodNullable<z.ZodString>;
|
|
9
|
-
modelId: z.ZodString;
|
|
10
|
-
price: z.ZodNumber;
|
|
11
|
-
tokenReservationId: z.ZodNullable<z.ZodString>;
|
|
12
|
-
params: z.ZodUnknown;
|
|
13
|
-
attempts: z.ZodArray<z.ZodUnknown>;
|
|
14
|
-
scope: z.ZodEnum<typeof JOB_SCOPE>;
|
|
15
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
16
|
-
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
17
|
-
isDeleted: z.ZodBoolean;
|
|
18
|
-
subJobs: z.ZodArray<z.ZodObject<{
|
|
19
|
-
uuid: z.ZodString;
|
|
20
|
-
prompt: z.ZodString;
|
|
21
|
-
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
22
|
-
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
23
|
-
externalId: z.ZodNullable<z.ZodString>;
|
|
24
|
-
title: z.ZodString;
|
|
25
|
-
status: z.ZodEnum<{
|
|
26
|
-
completed: import("../../..").TOOL_JOB_STATUS.COMPLETED;
|
|
27
|
-
failed: import("../../..").TOOL_JOB_STATUS.FAILED;
|
|
28
|
-
pending: import("../../..").TOOL_JOB_STATUS.PENDING;
|
|
29
|
-
}>;
|
|
30
|
-
error: z.ZodNullable<z.ZodString>;
|
|
31
|
-
modelId: z.ZodString;
|
|
32
|
-
groupId: z.ZodString;
|
|
33
|
-
previewUrl: z.ZodNullable<z.ZodString>;
|
|
34
|
-
params: z.ZodObject<{
|
|
35
|
-
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36
|
-
uuid: z.ZodString;
|
|
37
|
-
url: z.ZodString;
|
|
38
|
-
name: z.ZodString;
|
|
39
|
-
mimeType: z.ZodString;
|
|
40
|
-
type: z.ZodString;
|
|
41
|
-
size: z.ZodNumber;
|
|
42
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
43
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
45
|
-
}, z.core.$strip>>>;
|
|
46
|
-
styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
|
|
47
|
-
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
-
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
-
photosCount: z.ZodOptional<z.ZodNumber>;
|
|
50
|
-
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
-
uuid: z.ZodString;
|
|
52
|
-
url: z.ZodString;
|
|
53
|
-
name: z.ZodString;
|
|
54
|
-
mimeType: z.ZodString;
|
|
55
|
-
type: z.ZodString;
|
|
56
|
-
size: z.ZodNumber;
|
|
57
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
58
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
59
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
60
|
-
}, z.core.$strip>>>;
|
|
61
|
-
hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62
|
-
uuid: z.ZodString;
|
|
63
|
-
url: z.ZodString;
|
|
64
|
-
name: z.ZodString;
|
|
65
|
-
mimeType: z.ZodString;
|
|
66
|
-
type: z.ZodString;
|
|
67
|
-
size: z.ZodNumber;
|
|
68
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
69
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
70
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
71
|
-
}, z.core.$strip>>>;
|
|
72
|
-
accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
73
|
-
uuid: z.ZodString;
|
|
74
|
-
url: z.ZodString;
|
|
75
|
-
name: z.ZodString;
|
|
76
|
-
mimeType: z.ZodString;
|
|
77
|
-
type: z.ZodString;
|
|
78
|
-
size: z.ZodNumber;
|
|
79
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
80
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
81
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
82
|
-
}, z.core.$strip>>>;
|
|
83
|
-
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
84
|
-
userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
-
}, z.core.$strip>;
|
|
86
|
-
imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
87
|
-
attempts: z.ZodArray<z.ZodObject<{
|
|
88
|
-
order: z.ZodNumber;
|
|
89
|
-
attemptId: z.ZodOptional<z.ZodString>;
|
|
90
|
-
status: z.ZodEnum<{
|
|
91
|
-
completed: import("../../..").TOOL_JOB_STATUS.COMPLETED;
|
|
92
|
-
failed: import("../../..").TOOL_JOB_STATUS.FAILED;
|
|
93
|
-
pending: import("../../..").TOOL_JOB_STATUS.PENDING;
|
|
94
|
-
}>;
|
|
95
|
-
error: z.ZodNullable<z.ZodString>;
|
|
96
|
-
timestamp: z.ZodCoercedDate<unknown>;
|
|
97
|
-
}, z.core.$strip>>;
|
|
98
|
-
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
-
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
-
isPublished: z.ZodBoolean;
|
|
101
|
-
postId: z.ZodNullable<z.ZodString>;
|
|
102
|
-
isDeleted: z.ZodBoolean;
|
|
103
|
-
isFavorite: z.ZodBoolean;
|
|
104
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
105
|
-
completedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
106
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
107
|
-
}, z.core.$strip>>;
|
|
108
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
109
|
-
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
110
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
111
|
-
}, z.core.$strip>;
|
|
112
|
-
export type PhotoSessionGroup = z.infer<typeof PhotoSessionGroupSchema>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoSessionGroupSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
|
-
const photo_session_job_schema_1 = require("./photo-session-job.schema");
|
|
7
|
-
exports.PhotoSessionGroupSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string(),
|
|
9
|
-
title: zod_1.z.string(),
|
|
10
|
-
prompt: zod_1.z.string(),
|
|
11
|
-
status: zod_1.z.nativeEnum(constants_1.PHOTO_SESSION_GROUP_STATUS),
|
|
12
|
-
error: zod_1.z.string().nullable(),
|
|
13
|
-
modelId: zod_1.z.string(),
|
|
14
|
-
price: zod_1.z.number(),
|
|
15
|
-
tokenReservationId: zod_1.z.string().nullable(),
|
|
16
|
-
params: zod_1.z.unknown(),
|
|
17
|
-
attempts: zod_1.z.array(zod_1.z.unknown()),
|
|
18
|
-
scope: zod_1.z.nativeEnum(constants_1.JOB_SCOPE),
|
|
19
|
-
userId: zod_1.z.string().nullable(),
|
|
20
|
-
unregisteredUserId: zod_1.z.string().nullable(),
|
|
21
|
-
isDeleted: zod_1.z.boolean(),
|
|
22
|
-
subJobs: zod_1.z.array(photo_session_job_schema_1.PhotoSessionJobSchema),
|
|
23
|
-
createdAt: zod_1.z.coerce.date(),
|
|
24
|
-
completedAt: zod_1.z.coerce.date().nullable(),
|
|
25
|
-
updatedAt: zod_1.z.coerce.date(),
|
|
26
|
-
});
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { TOOL_JOB_STATUS, USER_REACTION } from '../../../constants';
|
|
3
|
-
export declare const PhotoSessionJobParamsSchema: z.ZodObject<{
|
|
4
|
-
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5
|
-
uuid: z.ZodString;
|
|
6
|
-
url: z.ZodString;
|
|
7
|
-
name: z.ZodString;
|
|
8
|
-
mimeType: z.ZodString;
|
|
9
|
-
type: z.ZodString;
|
|
10
|
-
size: z.ZodNumber;
|
|
11
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
14
|
-
}, z.core.$strip>>>;
|
|
15
|
-
styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
|
|
16
|
-
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
photosCount: z.ZodOptional<z.ZodNumber>;
|
|
19
|
-
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20
|
-
uuid: z.ZodString;
|
|
21
|
-
url: z.ZodString;
|
|
22
|
-
name: z.ZodString;
|
|
23
|
-
mimeType: z.ZodString;
|
|
24
|
-
type: z.ZodString;
|
|
25
|
-
size: z.ZodNumber;
|
|
26
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
27
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
29
|
-
}, z.core.$strip>>>;
|
|
30
|
-
hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31
|
-
uuid: z.ZodString;
|
|
32
|
-
url: z.ZodString;
|
|
33
|
-
name: z.ZodString;
|
|
34
|
-
mimeType: z.ZodString;
|
|
35
|
-
type: z.ZodString;
|
|
36
|
-
size: z.ZodNumber;
|
|
37
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
38
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
39
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
40
|
-
}, z.core.$strip>>>;
|
|
41
|
-
accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42
|
-
uuid: z.ZodString;
|
|
43
|
-
url: z.ZodString;
|
|
44
|
-
name: z.ZodString;
|
|
45
|
-
mimeType: z.ZodString;
|
|
46
|
-
type: z.ZodString;
|
|
47
|
-
size: z.ZodNumber;
|
|
48
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
49
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
50
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
51
|
-
}, z.core.$strip>>>;
|
|
52
|
-
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
53
|
-
userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
export type PhotoSessionJobParams = z.infer<typeof PhotoSessionJobParamsSchema>;
|
|
56
|
-
export declare const PhotoSessionJobAttemptSchema: z.ZodObject<{
|
|
57
|
-
order: z.ZodNumber;
|
|
58
|
-
attemptId: z.ZodOptional<z.ZodString>;
|
|
59
|
-
status: z.ZodEnum<{
|
|
60
|
-
completed: TOOL_JOB_STATUS.COMPLETED;
|
|
61
|
-
failed: TOOL_JOB_STATUS.FAILED;
|
|
62
|
-
pending: TOOL_JOB_STATUS.PENDING;
|
|
63
|
-
}>;
|
|
64
|
-
error: z.ZodNullable<z.ZodString>;
|
|
65
|
-
timestamp: z.ZodCoercedDate<unknown>;
|
|
66
|
-
}, z.core.$strip>;
|
|
67
|
-
export type PhotoSessionJobAttempt = z.infer<typeof PhotoSessionJobAttemptSchema>;
|
|
68
|
-
export declare const PhotoSessionJobSchema: z.ZodObject<{
|
|
69
|
-
uuid: z.ZodString;
|
|
70
|
-
prompt: z.ZodString;
|
|
71
|
-
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
72
|
-
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
73
|
-
externalId: z.ZodNullable<z.ZodString>;
|
|
74
|
-
title: z.ZodString;
|
|
75
|
-
status: z.ZodEnum<{
|
|
76
|
-
completed: TOOL_JOB_STATUS.COMPLETED;
|
|
77
|
-
failed: TOOL_JOB_STATUS.FAILED;
|
|
78
|
-
pending: TOOL_JOB_STATUS.PENDING;
|
|
79
|
-
}>;
|
|
80
|
-
error: z.ZodNullable<z.ZodString>;
|
|
81
|
-
modelId: z.ZodString;
|
|
82
|
-
groupId: z.ZodString;
|
|
83
|
-
previewUrl: z.ZodNullable<z.ZodString>;
|
|
84
|
-
params: z.ZodObject<{
|
|
85
|
-
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
86
|
-
uuid: z.ZodString;
|
|
87
|
-
url: z.ZodString;
|
|
88
|
-
name: z.ZodString;
|
|
89
|
-
mimeType: z.ZodString;
|
|
90
|
-
type: z.ZodString;
|
|
91
|
-
size: z.ZodNumber;
|
|
92
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
93
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
94
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
95
|
-
}, z.core.$strip>>>;
|
|
96
|
-
styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
|
|
97
|
-
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
-
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
-
photosCount: z.ZodOptional<z.ZodNumber>;
|
|
100
|
-
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
101
|
-
uuid: z.ZodString;
|
|
102
|
-
url: z.ZodString;
|
|
103
|
-
name: z.ZodString;
|
|
104
|
-
mimeType: z.ZodString;
|
|
105
|
-
type: z.ZodString;
|
|
106
|
-
size: z.ZodNumber;
|
|
107
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
108
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
109
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
110
|
-
}, z.core.$strip>>>;
|
|
111
|
-
hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
112
|
-
uuid: z.ZodString;
|
|
113
|
-
url: z.ZodString;
|
|
114
|
-
name: z.ZodString;
|
|
115
|
-
mimeType: z.ZodString;
|
|
116
|
-
type: z.ZodString;
|
|
117
|
-
size: z.ZodNumber;
|
|
118
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
119
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
120
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
121
|
-
}, z.core.$strip>>>;
|
|
122
|
-
accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
123
|
-
uuid: z.ZodString;
|
|
124
|
-
url: z.ZodString;
|
|
125
|
-
name: z.ZodString;
|
|
126
|
-
mimeType: z.ZodString;
|
|
127
|
-
type: z.ZodString;
|
|
128
|
-
size: z.ZodNumber;
|
|
129
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
130
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
131
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
132
|
-
}, z.core.$strip>>>;
|
|
133
|
-
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
134
|
-
userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
-
}, z.core.$strip>;
|
|
136
|
-
imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
137
|
-
attempts: z.ZodArray<z.ZodObject<{
|
|
138
|
-
order: z.ZodNumber;
|
|
139
|
-
attemptId: z.ZodOptional<z.ZodString>;
|
|
140
|
-
status: z.ZodEnum<{
|
|
141
|
-
completed: TOOL_JOB_STATUS.COMPLETED;
|
|
142
|
-
failed: TOOL_JOB_STATUS.FAILED;
|
|
143
|
-
pending: TOOL_JOB_STATUS.PENDING;
|
|
144
|
-
}>;
|
|
145
|
-
error: z.ZodNullable<z.ZodString>;
|
|
146
|
-
timestamp: z.ZodCoercedDate<unknown>;
|
|
147
|
-
}, z.core.$strip>>;
|
|
148
|
-
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
|
-
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
|
-
isPublished: z.ZodBoolean;
|
|
151
|
-
postId: z.ZodNullable<z.ZodString>;
|
|
152
|
-
isDeleted: z.ZodBoolean;
|
|
153
|
-
isFavorite: z.ZodBoolean;
|
|
154
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
155
|
-
completedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
156
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
157
|
-
}, z.core.$strip>;
|
|
158
|
-
export type PhotoSessionJob = z.infer<typeof PhotoSessionJobSchema>;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoSessionJobSchema = exports.PhotoSessionJobAttemptSchema = exports.PhotoSessionJobParamsSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
const PhotoSessionJobStatusSchema = zod_1.z.enum([
|
|
8
|
-
constants_1.TOOL_JOB_STATUS.PENDING,
|
|
9
|
-
constants_1.TOOL_JOB_STATUS.COMPLETED,
|
|
10
|
-
constants_1.TOOL_JOB_STATUS.FAILED,
|
|
11
|
-
]);
|
|
12
|
-
exports.PhotoSessionJobParamsSchema = zod_1.z.object({
|
|
13
|
-
attachedFiles: zod_1.z.array(common_1.AttachedToolFileSchema).max(3).optional(),
|
|
14
|
-
styleReferenceImageUrl: zod_1.z.string().optional(),
|
|
15
|
-
styleId: zod_1.z.string().uuid().nullable().optional(),
|
|
16
|
-
referenceId: zod_1.z.string().uuid().nullable().optional(),
|
|
17
|
-
photosCount: zod_1.z.number().int().min(1).max(6).optional(),
|
|
18
|
-
clothingPhotos: zod_1.z.array(common_1.AttachedToolFileSchema).max(2).optional(),
|
|
19
|
-
hairstylePhotos: zod_1.z.array(common_1.AttachedToolFileSchema).max(2).optional(),
|
|
20
|
-
accessoriesPhotos: zod_1.z.array(common_1.AttachedToolFileSchema).max(2).optional(),
|
|
21
|
-
aspectRatio: zod_1.z.string().optional(),
|
|
22
|
-
userHasActiveSubscriptionOrProduct: zod_1.z.boolean().optional(),
|
|
23
|
-
});
|
|
24
|
-
exports.PhotoSessionJobAttemptSchema = zod_1.z.object({
|
|
25
|
-
order: zod_1.z.number(),
|
|
26
|
-
attemptId: zod_1.z.string().optional(),
|
|
27
|
-
status: PhotoSessionJobStatusSchema,
|
|
28
|
-
error: zod_1.z.string().nullable(),
|
|
29
|
-
timestamp: zod_1.z.coerce.date(),
|
|
30
|
-
});
|
|
31
|
-
exports.PhotoSessionJobSchema = zod_1.z.object({
|
|
32
|
-
uuid: zod_1.z.string(),
|
|
33
|
-
prompt: zod_1.z.string(),
|
|
34
|
-
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
35
|
-
dislikeReason: zod_1.z.string().nullable(),
|
|
36
|
-
externalId: zod_1.z.string().nullable(),
|
|
37
|
-
title: zod_1.z.string(),
|
|
38
|
-
status: PhotoSessionJobStatusSchema,
|
|
39
|
-
error: zod_1.z.string().nullable(),
|
|
40
|
-
modelId: zod_1.z.string(),
|
|
41
|
-
groupId: zod_1.z.string(),
|
|
42
|
-
previewUrl: zod_1.z.string().nullable(),
|
|
43
|
-
params: exports.PhotoSessionJobParamsSchema,
|
|
44
|
-
imageUrls: zod_1.z.array(zod_1.z.string()).nullable(),
|
|
45
|
-
attempts: zod_1.z.array(exports.PhotoSessionJobAttemptSchema),
|
|
46
|
-
userId: zod_1.z.string().nullable().optional(),
|
|
47
|
-
unregisteredUserId: zod_1.z.string().nullable().optional(),
|
|
48
|
-
isPublished: zod_1.z.boolean(),
|
|
49
|
-
postId: zod_1.z.string().nullable(),
|
|
50
|
-
isDeleted: zod_1.z.boolean(),
|
|
51
|
-
isFavorite: zod_1.z.boolean(),
|
|
52
|
-
createdAt: zod_1.z.coerce.date(),
|
|
53
|
-
completedAt: zod_1.z.coerce.date().nullable().optional(),
|
|
54
|
-
updatedAt: zod_1.z.coerce.date(),
|
|
55
|
-
});
|