@ttt-productions/ttt-core 0.6.6 → 0.7.0
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/dist/constants/business.d.ts +57 -57
- package/dist/constants/business.d.ts.map +1 -1
- package/dist/constants/business.js +71 -71
- package/dist/constants/business.js.map +1 -1
- package/dist/constants/options.d.ts +22 -22
- package/dist/constants/options.d.ts.map +1 -1
- package/dist/constants/options.js +28 -28
- package/dist/constants/options.js.map +1 -1
- package/dist/constants/pagination.d.ts +18 -18
- package/dist/constants/pagination.d.ts.map +1 -1
- package/dist/constants/pagination.js +20 -20
- package/dist/constants/pagination.js.map +1 -1
- package/dist/constants/retention.d.ts +5 -5
- package/dist/constants/retention.d.ts.map +1 -1
- package/dist/constants/retention.js +6 -6
- package/dist/constants/retention.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/media/atoms.d.ts +9 -9
- package/dist/media/atoms.d.ts.map +1 -1
- package/dist/media/atoms.js +3 -3
- package/dist/media/atoms.js.map +1 -1
- package/dist/media/domain-events.d.ts +701 -701
- package/dist/media/domain-events.d.ts.map +1 -1
- package/dist/media/domain-events.js +145 -145
- package/dist/media/domain-events.js.map +1 -1
- package/dist/media/file-origin.d.ts +1 -1
- package/dist/media/file-origin.d.ts.map +1 -1
- package/dist/media/file-origin.js +16 -16
- package/dist/media/file-origin.js.map +1 -1
- package/dist/media/hall-library-target-fields.d.ts +13 -0
- package/dist/media/hall-library-target-fields.d.ts.map +1 -0
- package/dist/media/hall-library-target-fields.js +21 -0
- package/dist/media/hall-library-target-fields.js.map +1 -0
- package/dist/media/index.d.ts +2 -2
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/index.js +2 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/pending-media.d.ts +5774 -5774
- package/dist/media/start-upload.d.ts +3 -3
- package/dist/media/target-info.d.ts +150 -150
- package/dist/media/target-info.d.ts.map +1 -1
- package/dist/media/target-info.js +80 -80
- package/dist/media/target-info.js.map +1 -1
- package/dist/media/ttt-media-specs.js +16 -16
- package/dist/media/ttt-media-specs.js.map +1 -1
- package/dist/media/upload-tray-display.js +16 -16
- package/dist/media/upload-tray-display.js.map +1 -1
- package/dist/paths/collection-groups.d.ts +7 -7
- package/dist/paths/collection-groups.js +7 -7
- package/dist/paths/collection-groups.js.map +1 -1
- package/dist/paths/collection-refs.d.ts +14 -14
- package/dist/paths/collection-refs.d.ts.map +1 -1
- package/dist/paths/collection-refs.js +20 -20
- package/dist/paths/collection-refs.js.map +1 -1
- package/dist/paths/collections.d.ts +31 -31
- package/dist/paths/collections.d.ts.map +1 -1
- package/dist/paths/collections.js +34 -34
- package/dist/paths/collections.js.map +1 -1
- package/dist/paths/path-builders.d.ts +32 -32
- package/dist/paths/path-builders.d.ts.map +1 -1
- package/dist/paths/path-builders.js +43 -43
- package/dist/paths/path-builders.js.map +1 -1
- package/dist/permissions/guild-standing-assignment-policy.d.ts +17 -0
- package/dist/permissions/guild-standing-assignment-policy.d.ts.map +1 -0
- package/dist/permissions/guild-standing-assignment-policy.js +36 -0
- package/dist/permissions/guild-standing-assignment-policy.js.map +1 -0
- package/dist/permissions/index.d.ts +2 -2
- package/dist/permissions/index.d.ts.map +1 -1
- package/dist/permissions/index.js +2 -2
- package/dist/permissions/index.js.map +1 -1
- package/dist/permissions/work-project-permissions.d.ts +284 -0
- package/dist/permissions/work-project-permissions.d.ts.map +1 -0
- package/dist/permissions/work-project-permissions.js +294 -0
- package/dist/permissions/work-project-permissions.js.map +1 -0
- package/dist/schemas/{system-message-actions.d.ts → admin-dispatch-actions.d.ts} +15 -15
- package/dist/schemas/admin-dispatch-actions.d.ts.map +1 -0
- package/dist/schemas/{system-message-actions.js → admin-dispatch-actions.js} +7 -7
- package/dist/schemas/admin-dispatch-actions.js.map +1 -0
- package/dist/schemas/admin.d.ts +7 -7
- package/dist/schemas/admin.js +4 -4
- package/dist/schemas/admin.js.map +1 -1
- package/dist/schemas/atoms.d.ts +13 -12
- package/dist/schemas/atoms.d.ts.map +1 -1
- package/dist/schemas/atoms.js +13 -12
- package/dist/schemas/atoms.js.map +1 -1
- package/dist/schemas/auditions.d.ts +10 -0
- package/dist/schemas/auditions.d.ts.map +1 -0
- package/dist/schemas/auditions.js +6 -0
- package/dist/schemas/auditions.js.map +1 -0
- package/dist/schemas/chat.d.ts +47 -47
- package/dist/schemas/chat.d.ts.map +1 -1
- package/dist/schemas/chat.js +18 -18
- package/dist/schemas/chat.js.map +1 -1
- package/dist/schemas/commissions.d.ts +56 -0
- package/dist/schemas/commissions.d.ts.map +1 -0
- package/dist/schemas/commissions.js +29 -0
- package/dist/schemas/commissions.js.map +1 -0
- package/dist/schemas/craft-skills.d.ts +24 -0
- package/dist/schemas/craft-skills.d.ts.map +1 -0
- package/dist/schemas/craft-skills.js +11 -0
- package/dist/schemas/craft-skills.js.map +1 -0
- package/dist/schemas/{library.d.ts → hall-library.d.ts} +78 -78
- package/dist/schemas/hall-library.d.ts.map +1 -0
- package/dist/schemas/hall-library.js +86 -0
- package/dist/schemas/hall-library.js.map +1 -0
- package/dist/schemas/index.d.ts +7 -7
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +7 -7
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/payments.js +2 -2
- package/dist/schemas/payments.js.map +1 -1
- package/dist/schemas/social.d.ts +16 -16
- package/dist/schemas/social.d.ts.map +1 -1
- package/dist/schemas/social.js +3 -3
- package/dist/schemas/social.js.map +1 -1
- package/dist/schemas/{share-operation.d.ts → stake-share-operation.d.ts} +25 -25
- package/dist/schemas/stake-share-operation.d.ts.map +1 -0
- package/dist/schemas/stake-share-operation.js +83 -0
- package/dist/schemas/stake-share-operation.js.map +1 -0
- package/dist/schemas/users.d.ts +4 -4
- package/dist/schemas/users.d.ts.map +1 -1
- package/dist/schemas/users.js +2 -2
- package/dist/schemas/users.js.map +1 -1
- package/dist/schemas/utility.d.ts +14 -14
- package/dist/schemas/utility.d.ts.map +1 -1
- package/dist/schemas/utility.js +5 -5
- package/dist/schemas/utility.js.map +1 -1
- package/dist/schemas/voting.d.ts +10 -10
- package/dist/schemas/voting.d.ts.map +1 -1
- package/dist/schemas/voting.js +4 -4
- package/dist/schemas/voting.js.map +1 -1
- package/dist/schemas/work-project-management.d.ts +454 -0
- package/dist/schemas/work-project-management.d.ts.map +1 -0
- package/dist/schemas/work-project-management.js +98 -0
- package/dist/schemas/work-project-management.js.map +1 -0
- package/dist/ttt-keys.d.ts +68 -0
- package/dist/ttt-keys.d.ts.map +1 -0
- package/dist/ttt-keys.js +24 -0
- package/dist/ttt-keys.js.map +1 -0
- package/dist/types/admin.d.ts +1 -1
- package/dist/types/admin.d.ts.map +1 -1
- package/dist/types/audit.d.ts +1 -1
- package/dist/types/audit.d.ts.map +1 -1
- package/dist/types/commissions.d.ts +84 -0
- package/dist/types/commissions.d.ts.map +1 -0
- package/dist/types/commissions.js +3 -0
- package/dist/types/commissions.js.map +1 -0
- package/dist/types/content.d.ts +37 -37
- package/dist/types/content.d.ts.map +1 -1
- package/dist/types/content.js +4 -4
- package/dist/types/content.js.map +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/messaging.d.ts +16 -16
- package/dist/types/messaging.d.ts.map +1 -1
- package/dist/types/messaging.js +1 -1
- package/dist/types/messaging.js.map +1 -1
- package/dist/types/publicUser.d.ts +1 -1
- package/dist/types/publicUser.d.ts.map +1 -1
- package/dist/types/social.d.ts +13 -13
- package/dist/types/social.d.ts.map +1 -1
- package/dist/types/user.d.ts +17 -17
- package/dist/types/user.d.ts.map +1 -1
- package/dist/types/work-project.d.ts +85 -0
- package/dist/types/work-project.d.ts.map +1 -0
- package/dist/types/work-project.js +2 -0
- package/dist/types/work-project.js.map +1 -0
- package/dist/upload-variables/{apply-to-job-variables.d.ts → apply-to-commission-variables.d.ts} +6 -6
- package/dist/upload-variables/apply-to-commission-variables.d.ts.map +1 -0
- package/dist/upload-variables/apply-to-commission-variables.js +16 -0
- package/dist/upload-variables/apply-to-commission-variables.js.map +1 -0
- package/dist/upload-variables/{create-admin-opportunity-variables.d.ts → create-admin-audition-variables.d.ts} +9 -9
- package/dist/upload-variables/create-admin-audition-variables.d.ts.map +1 -0
- package/dist/upload-variables/{create-admin-opportunity-variables.js → create-admin-audition-variables.js} +4 -4
- package/dist/upload-variables/create-admin-audition-variables.js.map +1 -0
- package/dist/upload-variables/{create-opportunity-reply-variables.d.ts → create-audition-entry-variables.d.ts} +6 -6
- package/dist/upload-variables/create-audition-entry-variables.d.ts.map +1 -0
- package/dist/upload-variables/{create-opportunity-reply-variables.js → create-audition-entry-variables.js} +3 -3
- package/dist/upload-variables/create-audition-entry-variables.js.map +1 -0
- package/dist/upload-variables/{create-job-variables.d.ts → create-commission-variables.d.ts} +19 -19
- package/dist/upload-variables/create-commission-variables.d.ts.map +1 -0
- package/dist/upload-variables/{create-job-variables.js → create-commission-variables.js} +6 -6
- package/dist/upload-variables/create-commission-variables.js.map +1 -0
- package/dist/upload-variables/{create-project-opportunity-variables.d.ts → create-work-project-audition-variables.d.ts} +9 -9
- package/dist/upload-variables/create-work-project-audition-variables.d.ts.map +1 -0
- package/dist/upload-variables/{create-project-opportunity-variables.js → create-work-project-audition-variables.js} +4 -4
- package/dist/upload-variables/create-work-project-audition-variables.js.map +1 -0
- package/dist/upload-variables/index.d.ts +10 -10
- package/dist/upload-variables/index.d.ts.map +1 -1
- package/dist/upload-variables/index.js +10 -10
- package/dist/upload-variables/index.js.map +1 -1
- package/dist/upload-variables/{streetz-post-variables.d.ts → square-streetz-post-variables.d.ts} +8 -8
- package/dist/upload-variables/square-streetz-post-variables.d.ts.map +1 -0
- package/dist/upload-variables/{streetz-post-variables.js → square-streetz-post-variables.js} +2 -2
- package/dist/upload-variables/square-streetz-post-variables.js.map +1 -0
- package/dist/upload-variables/update-chapter-media-variables.d.ts +3 -3
- package/dist/upload-variables/update-chapter-media-variables.js +1 -1
- package/dist/upload-variables/update-chapter-media-variables.js.map +1 -1
- package/dist/upload-variables/{update-show-media-variables.d.ts → update-episode-media-variables.d.ts} +9 -9
- package/dist/upload-variables/update-episode-media-variables.d.ts.map +1 -0
- package/dist/upload-variables/{update-show-media-variables.js → update-episode-media-variables.js} +4 -4
- package/dist/upload-variables/update-episode-media-variables.js.map +1 -0
- package/dist/upload-variables/update-tale-cover-photo-variables.d.ts +3 -3
- package/dist/upload-variables/update-tale-cover-photo-variables.js +1 -1
- package/dist/upload-variables/update-tale-cover-photo-variables.js.map +1 -1
- package/dist/upload-variables/update-television-cover-photo-variables.d.ts +3 -3
- package/dist/upload-variables/update-television-cover-photo-variables.js +1 -1
- package/dist/upload-variables/update-television-cover-photo-variables.js.map +1 -1
- package/dist/upload-variables/{update-song-media-variables.d.ts → update-track-media-variables.d.ts} +9 -9
- package/dist/upload-variables/update-track-media-variables.d.ts.map +1 -0
- package/dist/upload-variables/{update-song-media-variables.js → update-track-media-variables.js} +4 -4
- package/dist/upload-variables/update-track-media-variables.js.map +1 -0
- package/dist/upload-variables/update-tune-cover-photo-variables.d.ts +3 -3
- package/dist/upload-variables/update-tune-cover-photo-variables.js +1 -1
- package/dist/upload-variables/update-tune-cover-photo-variables.js.map +1 -1
- package/dist/upload-variables/{upload-skill-variables.d.ts → upload-craft-skill-variables.d.ts} +3 -3
- package/dist/upload-variables/upload-craft-skill-variables.d.ts.map +1 -0
- package/dist/upload-variables/{upload-skill-variables.js → upload-craft-skill-variables.js} +2 -2
- package/dist/upload-variables/upload-craft-skill-variables.js.map +1 -0
- package/dist/upload-variables/{upload-project-file-variables.d.ts → upload-work-asset-variables.d.ts} +10 -10
- package/dist/upload-variables/upload-work-asset-variables.d.ts.map +1 -0
- package/dist/upload-variables/{upload-project-file-variables.js → upload-work-asset-variables.js} +4 -4
- package/dist/upload-variables/upload-work-asset-variables.js.map +1 -0
- package/package.json +6 -1
- package/dist/media/library-target-fields.d.ts +0 -13
- package/dist/media/library-target-fields.d.ts.map +0 -1
- package/dist/media/library-target-fields.js +0 -21
- package/dist/media/library-target-fields.js.map +0 -1
- package/dist/permissions/project-permissions.d.ts +0 -264
- package/dist/permissions/project-permissions.d.ts.map +0 -1
- package/dist/permissions/project-permissions.js +0 -268
- package/dist/permissions/project-permissions.js.map +0 -1
- package/dist/permissions/role-assignment-policy.d.ts +0 -17
- package/dist/permissions/role-assignment-policy.d.ts.map +0 -1
- package/dist/permissions/role-assignment-policy.js +0 -32
- package/dist/permissions/role-assignment-policy.js.map +0 -1
- package/dist/schemas/jobs.d.ts +0 -56
- package/dist/schemas/jobs.d.ts.map +0 -1
- package/dist/schemas/jobs.js +0 -29
- package/dist/schemas/jobs.js.map +0 -1
- package/dist/schemas/library.d.ts.map +0 -1
- package/dist/schemas/library.js +0 -86
- package/dist/schemas/library.js.map +0 -1
- package/dist/schemas/opportunities.d.ts +0 -10
- package/dist/schemas/opportunities.d.ts.map +0 -1
- package/dist/schemas/opportunities.js +0 -6
- package/dist/schemas/opportunities.js.map +0 -1
- package/dist/schemas/project-management.d.ts +0 -454
- package/dist/schemas/project-management.d.ts.map +0 -1
- package/dist/schemas/project-management.js +0 -98
- package/dist/schemas/project-management.js.map +0 -1
- package/dist/schemas/share-operation.d.ts.map +0 -1
- package/dist/schemas/share-operation.js +0 -91
- package/dist/schemas/share-operation.js.map +0 -1
- package/dist/schemas/skills.d.ts +0 -24
- package/dist/schemas/skills.d.ts.map +0 -1
- package/dist/schemas/skills.js +0 -11
- package/dist/schemas/skills.js.map +0 -1
- package/dist/schemas/system-message-actions.d.ts.map +0 -1
- package/dist/schemas/system-message-actions.js.map +0 -1
- package/dist/types/jobs.d.ts +0 -84
- package/dist/types/jobs.d.ts.map +0 -1
- package/dist/types/jobs.js +0 -3
- package/dist/types/jobs.js.map +0 -1
- package/dist/types/project.d.ts +0 -85
- package/dist/types/project.d.ts.map +0 -1
- package/dist/types/project.js +0 -2
- package/dist/types/project.js.map +0 -1
- package/dist/upload-variables/apply-to-job-variables.d.ts.map +0 -1
- package/dist/upload-variables/apply-to-job-variables.js +0 -16
- package/dist/upload-variables/apply-to-job-variables.js.map +0 -1
- package/dist/upload-variables/create-admin-opportunity-variables.d.ts.map +0 -1
- package/dist/upload-variables/create-admin-opportunity-variables.js.map +0 -1
- package/dist/upload-variables/create-job-variables.d.ts.map +0 -1
- package/dist/upload-variables/create-job-variables.js.map +0 -1
- package/dist/upload-variables/create-opportunity-reply-variables.d.ts.map +0 -1
- package/dist/upload-variables/create-opportunity-reply-variables.js.map +0 -1
- package/dist/upload-variables/create-project-opportunity-variables.d.ts.map +0 -1
- package/dist/upload-variables/create-project-opportunity-variables.js.map +0 -1
- package/dist/upload-variables/streetz-post-variables.d.ts.map +0 -1
- package/dist/upload-variables/streetz-post-variables.js.map +0 -1
- package/dist/upload-variables/update-show-media-variables.d.ts.map +0 -1
- package/dist/upload-variables/update-show-media-variables.js.map +0 -1
- package/dist/upload-variables/update-song-media-variables.d.ts.map +0 -1
- package/dist/upload-variables/update-song-media-variables.js.map +0 -1
- package/dist/upload-variables/upload-project-file-variables.d.ts.map +0 -1
- package/dist/upload-variables/upload-project-file-variables.js.map +0 -1
- package/dist/upload-variables/upload-skill-variables.d.ts.map +0 -1
- package/dist/upload-variables/upload-skill-variables.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/** The absolute maximum number of
|
|
2
|
-
export declare const
|
|
3
|
-
/** The maximum character length for a
|
|
4
|
-
export declare const
|
|
1
|
+
/** The absolute maximum number of stakes a workProject can have. */
|
|
2
|
+
export declare const MAX_WORK_PROJECT_STAKE_SHARES = 1000;
|
|
3
|
+
/** The maximum character length for a SquareStreetz post created on behalf of a workProject. */
|
|
4
|
+
export declare const MAX_SQUARE_STREETZ_DESCRIPTION_LENGTH = 150;
|
|
5
5
|
export declare const TASK_PRIORITY: {
|
|
6
6
|
readonly CRITICAL: 4;
|
|
7
7
|
readonly HIGH: 3;
|
|
@@ -29,26 +29,26 @@ export declare const USERNAME_MIN_LENGTH = 3;
|
|
|
29
29
|
export declare const USERNAME_MAX_LENGTH = 20;
|
|
30
30
|
/** Allowed characters in a user display name: letters and numbers only. */
|
|
31
31
|
export declare const USERNAME_REGEX: RegExp;
|
|
32
|
-
/** Maximum number of skills a user can upload to their profile. */
|
|
33
|
-
export declare const
|
|
34
|
-
/** Maximum number of tags allowed per
|
|
35
|
-
export declare const
|
|
32
|
+
/** Maximum number of craft-skills a user can upload to their profile. */
|
|
33
|
+
export declare const CRAFT_SKILL_LIMIT = 8;
|
|
34
|
+
/** Maximum number of tags allowed per craftSkill. */
|
|
35
|
+
export declare const MAX_CRAFT_SKILL_TAGS = 5;
|
|
36
36
|
/** Maximum number of recent mentions kept in the user's mention-history hook. */
|
|
37
37
|
export declare const MAX_HISTORY_ITEMS = 10;
|
|
38
38
|
/** Maximum number of results returned by the search hook. */
|
|
39
39
|
export declare const SEARCH_RESULT_LIMIT = 6;
|
|
40
|
-
/** Maximum length for a
|
|
41
|
-
export declare const
|
|
42
|
-
/** Maximum length for a
|
|
43
|
-
export declare const
|
|
44
|
-
/** Maximum number of files attached to a
|
|
45
|
-
export declare const
|
|
46
|
-
/** Maximum file size for
|
|
47
|
-
export declare const
|
|
40
|
+
/** Maximum length for a workProject title. */
|
|
41
|
+
export declare const MAX_WORK_PROJECT_TITLE_LENGTH = 150;
|
|
42
|
+
/** Maximum length for a workProject description. */
|
|
43
|
+
export declare const MAX_WORK_PROJECT_DESCRIPTION_LENGTH = 300;
|
|
44
|
+
/** Maximum number of files attached to a workProject. */
|
|
45
|
+
export declare const MAX_WORK_ASSETS = 5;
|
|
46
|
+
/** Maximum file size for workProject file attachments, in bytes (5MB). */
|
|
47
|
+
export declare const MAX_WORK_ASSET_FILE_SIZE: number;
|
|
48
48
|
/** Allowed characters in titles: letters, numbers, spaces. */
|
|
49
49
|
export declare const TITLE_PATTERN: RegExp;
|
|
50
|
-
/** Maximum number of
|
|
51
|
-
export declare const
|
|
50
|
+
/** Maximum number of auditions a single workProject can have open at once. */
|
|
51
|
+
export declare const MAX_WORK_PROJECT_AUDITIONS = 3;
|
|
52
52
|
export declare const MAX_TALE_TITLE_LENGTH = 150;
|
|
53
53
|
export declare const MAX_TALE_DESCRIPTION_LENGTH = 300;
|
|
54
54
|
export declare const MAX_TUNE_TITLE_LENGTH = 150;
|
|
@@ -61,44 +61,44 @@ export declare const MAX_CHAPTERS = 10;
|
|
|
61
61
|
export declare const MAX_CHAPTER_TITLE_LENGTH = 150;
|
|
62
62
|
/** Maximum length for chapter body content. */
|
|
63
63
|
export declare const MAX_CHAPTER_CONTENT_LENGTH = 2500;
|
|
64
|
-
/** Maximum number of
|
|
65
|
-
export declare const
|
|
66
|
-
/** Maximum length for a
|
|
67
|
-
export declare const
|
|
68
|
-
/** Maximum length for a
|
|
69
|
-
export declare const
|
|
70
|
-
/** Maximum number of
|
|
71
|
-
export declare const
|
|
72
|
-
/** Maximum length for
|
|
73
|
-
export declare const
|
|
74
|
-
/** Maximum length for
|
|
75
|
-
export declare const
|
|
76
|
-
/** Maximum number of open
|
|
77
|
-
export declare const
|
|
78
|
-
/** Maximum number of
|
|
79
|
-
export declare const
|
|
80
|
-
/** Maximum length for a
|
|
81
|
-
export declare const
|
|
82
|
-
/** Maximum length for a
|
|
83
|
-
export declare const
|
|
84
|
-
/** Maximum length for an
|
|
85
|
-
export declare const
|
|
86
|
-
/** Maximum length for an
|
|
87
|
-
export declare const
|
|
88
|
-
/** Maximum length for a
|
|
64
|
+
/** Maximum number of tracks a Tunes workProject can have. */
|
|
65
|
+
export declare const MAX_TUNE_TRACKS = 10;
|
|
66
|
+
/** Maximum length for a track title. */
|
|
67
|
+
export declare const MAX_TUNE_TRACK_TITLE_LENGTH = 150;
|
|
68
|
+
/** Maximum length for a track description. */
|
|
69
|
+
export declare const MAX_TUNE_TRACK_DESCRIPTION_LENGTH = 300;
|
|
70
|
+
/** Maximum number of episodes a Television workProject can have. */
|
|
71
|
+
export declare const MAX_TELEVISION_EPISODES = 10;
|
|
72
|
+
/** Maximum length for an episode title. */
|
|
73
|
+
export declare const MAX_TELEVISION_EPISODE_TITLE_LENGTH = 150;
|
|
74
|
+
/** Maximum length for an episode description. */
|
|
75
|
+
export declare const MAX_TELEVISION_EPISODE_DESCRIPTION_LENGTH = 300;
|
|
76
|
+
/** Maximum number of open commissions a workProject can have. */
|
|
77
|
+
export declare const MAX_COMMISSION_LISTINGS = 5;
|
|
78
|
+
/** Maximum number of proposal artisans saved to a commission. */
|
|
79
|
+
export declare const MAX_SAVED_PROPOSAL_ARTISANS = 5;
|
|
80
|
+
/** Maximum length for a commission title. */
|
|
81
|
+
export declare const MAX_COMMISSION_TITLE_LENGTH = 150;
|
|
82
|
+
/** Maximum length for a commission description / cover letter. */
|
|
83
|
+
export declare const MAX_COMMISSION_DESCRIPTION_LENGTH = 400;
|
|
84
|
+
/** Maximum length for an audition title. */
|
|
85
|
+
export declare const MAX_AUDITION_TITLE_LENGTH = 150;
|
|
86
|
+
/** Maximum length for an audition description. */
|
|
87
|
+
export declare const MAX_AUDITION_DESCRIPTION_LENGTH = 1000;
|
|
88
|
+
/** Maximum length for a SquareStreetz post. */
|
|
89
89
|
export declare const MAX_POST_LENGTH = 500;
|
|
90
|
-
/** Maximum number of mentions allowed in a single
|
|
90
|
+
/** Maximum number of mentions allowed in a single SquareStreetz post. */
|
|
91
91
|
export declare const MAX_MENTIONS = 3;
|
|
92
92
|
/** Maximum characters of a mention's display name shown before truncation. */
|
|
93
93
|
export declare const MAX_MENTION_DISPLAY_LENGTH = 30;
|
|
94
|
-
/** Maximum length for a
|
|
95
|
-
export declare const
|
|
96
|
-
/** Maximum length for a
|
|
97
|
-
export declare const
|
|
98
|
-
/** Maximum length for an admin-
|
|
99
|
-
export declare const
|
|
100
|
-
/** Maximum length for the initial body text of an admin
|
|
101
|
-
export declare const
|
|
94
|
+
/** Maximum length for a guild-invite message. */
|
|
95
|
+
export declare const MAX_GUILD_INVITE_MESSAGE_LENGTH = 500;
|
|
96
|
+
/** Maximum length for a pledgePayment message. */
|
|
97
|
+
export declare const MAX_PLEDGE_PAYMENT_MESSAGE_LENGTH = 500;
|
|
98
|
+
/** Maximum length for an admin-dispatch subject line. */
|
|
99
|
+
export declare const MAX_ADMIN_DISPATCH_SUBJECT_LENGTH = 100;
|
|
100
|
+
/** Maximum length for the initial body text of an admin dispatch. */
|
|
101
|
+
export declare const MAX_ADMIN_DISPATCH_INITIAL_TEXT_LENGTH = 1000;
|
|
102
102
|
/** Maximum length for a content-violation appeal message. */
|
|
103
103
|
export declare const MAX_APPEAL_MESSAGE_LENGTH = 1000;
|
|
104
104
|
/** Maximum length for a feedback suggestion. */
|
|
@@ -112,11 +112,11 @@ export declare const MAX_FEEDBACK_SUBMITTERS = 100;
|
|
|
112
112
|
* component. Adding a new type here is the single source of truth — no
|
|
113
113
|
* mirroring in callers required.
|
|
114
114
|
*/
|
|
115
|
-
export declare const FEEDBACK_TYPES: readonly ["
|
|
115
|
+
export declare const FEEDBACK_TYPES: readonly ["tradeProfessionSuggestions", "craftSkillTagSuggestions", "talesCategorySuggestions", "tunesCategorySuggestions", "televisionCategorySuggestions"];
|
|
116
116
|
/** Union of canonical feedback types. */
|
|
117
117
|
export type FeedbackType = (typeof FEEDBACK_TYPES)[number];
|
|
118
|
-
/** Maximum number of items submitted in a single
|
|
119
|
-
export declare const
|
|
118
|
+
/** Maximum number of items submitted in a single hallLibrary-review submission. */
|
|
119
|
+
export declare const MAX_HALL_LIBRARY_SUBMIT_BATCH = 50;
|
|
120
120
|
/** Admin task lifecycle statuses. */
|
|
121
121
|
export declare const ADMIN_TASK_STATUS: {
|
|
122
122
|
readonly PENDING: "pending";
|
|
@@ -125,11 +125,11 @@ export declare const ADMIN_TASK_STATUS: {
|
|
|
125
125
|
readonly COMPLETED: "completed";
|
|
126
126
|
};
|
|
127
127
|
/**
|
|
128
|
-
* Maximum
|
|
128
|
+
* Maximum pledgePayment amount accepted by the Stripe checkout flow, in cents
|
|
129
129
|
* (USD). $500,000.00. Well below Stripe's hard per-charge ceiling, but
|
|
130
130
|
* high enough that legitimate large gifts pass without friction. Anything
|
|
131
131
|
* above this is rejected by the schema before a Stripe session is created
|
|
132
132
|
* or any rate-limit / audit-event side effects are incurred.
|
|
133
133
|
*/
|
|
134
|
-
export declare const
|
|
134
|
+
export declare const MAX_PLEDGE_PAYMENT_AMOUNT_CENTS = 50000000;
|
|
135
135
|
//# sourceMappingURL=business.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business.d.ts","sourceRoot":"","sources":["../../src/constants/business.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"business.d.ts","sourceRoot":"","sources":["../../src/constants/business.ts"],"names":[],"mappings":"AAEA,oEAAoE;AACpE,eAAO,MAAM,6BAA6B,OAAO,CAAC;AAElD,gGAAgG;AAChG,eAAO,MAAM,qCAAqC,MAAM,CAAC;AAIzD,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAEnF,eAAO,MAAM,oBAAoB;;;;;CAKvB,CAAC;AAIX,sDAAsD;AACtD,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAEnC,wFAAwF;AACxF,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC,uFAAuF;AACvF,eAAO,MAAM,gBAAgB,6DAA6D,CAAC;AAI3F,4DAA4D;AAC5D,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAIzC,0DAA0D;AAC1D,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC,0DAA0D;AAC1D,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC,2EAA2E;AAC3E,eAAO,MAAM,cAAc,QAAmB,CAAC;AAI/C,yEA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,8 +1,8 @@
|
|
|
1
1
|
// Business rule constants shared between frontend and backend
|
|
2
|
-
/** The absolute maximum number of
|
|
3
|
-
export const
|
|
4
|
-
/** The maximum character length for a
|
|
5
|
-
export const
|
|
2
|
+
/** The absolute maximum number of stakes a workProject can have. */
|
|
3
|
+
export const MAX_WORK_PROJECT_STAKE_SHARES = 1000;
|
|
4
|
+
/** The maximum character length for a SquareStreetz post created on behalf of a workProject. */
|
|
5
|
+
export const MAX_SQUARE_STREETZ_DESCRIPTION_LENGTH = 150;
|
|
6
6
|
// --- Admin Task Priority System ---
|
|
7
7
|
export const TASK_PRIORITY = {
|
|
8
8
|
CRITICAL: 4,
|
|
@@ -34,86 +34,86 @@ export const USERNAME_MAX_LENGTH = 20;
|
|
|
34
34
|
/** Allowed characters in a user display name: letters and numbers only. */
|
|
35
35
|
export const USERNAME_REGEX = /^[a-zA-Z0-9]+$/;
|
|
36
36
|
// --- User Profile Skills ---
|
|
37
|
-
/** Maximum number of skills a user can upload to their profile. */
|
|
38
|
-
export const
|
|
39
|
-
/** Maximum number of tags allowed per
|
|
40
|
-
export const
|
|
37
|
+
/** Maximum number of craft-skills a user can upload to their profile. */
|
|
38
|
+
export const CRAFT_SKILL_LIMIT = 8;
|
|
39
|
+
/** Maximum number of tags allowed per craftSkill. */
|
|
40
|
+
export const MAX_CRAFT_SKILL_TAGS = 5;
|
|
41
41
|
// --- Mention History ---
|
|
42
42
|
/** Maximum number of recent mentions kept in the user's mention-history hook. */
|
|
43
43
|
export const MAX_HISTORY_ITEMS = 10;
|
|
44
44
|
// --- Search ---
|
|
45
45
|
/** Maximum number of results returned by the search hook. */
|
|
46
46
|
export const SEARCH_RESULT_LIMIT = 6;
|
|
47
|
-
// ---
|
|
48
|
-
/** Maximum length for a
|
|
49
|
-
export const
|
|
50
|
-
/** Maximum length for a
|
|
51
|
-
export const
|
|
52
|
-
/** Maximum number of files attached to a
|
|
53
|
-
export const
|
|
54
|
-
/** Maximum file size for
|
|
55
|
-
export const
|
|
47
|
+
// --- WorkProject Titles & Descriptions ---
|
|
48
|
+
/** Maximum length for a workProject title. */
|
|
49
|
+
export const MAX_WORK_PROJECT_TITLE_LENGTH = 150;
|
|
50
|
+
/** Maximum length for a workProject description. */
|
|
51
|
+
export const MAX_WORK_PROJECT_DESCRIPTION_LENGTH = 300;
|
|
52
|
+
/** Maximum number of files attached to a workProject. */
|
|
53
|
+
export const MAX_WORK_ASSETS = 5;
|
|
54
|
+
/** Maximum file size for workProject file attachments, in bytes (5MB). */
|
|
55
|
+
export const MAX_WORK_ASSET_FILE_SIZE = 5 * 1024 * 1024;
|
|
56
56
|
/** Allowed characters in titles: letters, numbers, spaces. */
|
|
57
57
|
export const TITLE_PATTERN = /^[a-zA-Z0-9 ]+$/;
|
|
58
|
-
/** Maximum number of
|
|
59
|
-
export const
|
|
60
|
-
// ---
|
|
58
|
+
/** Maximum number of auditions a single workProject can have open at once. */
|
|
59
|
+
export const MAX_WORK_PROJECT_AUDITIONS = 3;
|
|
60
|
+
// --- WorkProject Subtypes (Tales / Tunes / Television) ---
|
|
61
61
|
// Length aliases — kept as named exports so call sites read clearly.
|
|
62
|
-
export const MAX_TALE_TITLE_LENGTH =
|
|
63
|
-
export const MAX_TALE_DESCRIPTION_LENGTH =
|
|
64
|
-
export const MAX_TUNE_TITLE_LENGTH =
|
|
65
|
-
export const MAX_TUNE_DESCRIPTION_LENGTH =
|
|
66
|
-
export const MAX_TELEVISION_TITLE_LENGTH =
|
|
67
|
-
export const MAX_TELEVISION_DESCRIPTION_LENGTH =
|
|
62
|
+
export const MAX_TALE_TITLE_LENGTH = MAX_WORK_PROJECT_TITLE_LENGTH;
|
|
63
|
+
export const MAX_TALE_DESCRIPTION_LENGTH = MAX_WORK_PROJECT_DESCRIPTION_LENGTH;
|
|
64
|
+
export const MAX_TUNE_TITLE_LENGTH = MAX_WORK_PROJECT_TITLE_LENGTH;
|
|
65
|
+
export const MAX_TUNE_DESCRIPTION_LENGTH = MAX_WORK_PROJECT_DESCRIPTION_LENGTH;
|
|
66
|
+
export const MAX_TELEVISION_TITLE_LENGTH = MAX_WORK_PROJECT_TITLE_LENGTH;
|
|
67
|
+
export const MAX_TELEVISION_DESCRIPTION_LENGTH = MAX_WORK_PROJECT_DESCRIPTION_LENGTH;
|
|
68
68
|
/** Maximum number of chapters a Tale can have. */
|
|
69
69
|
export const MAX_CHAPTERS = 10;
|
|
70
70
|
/** Maximum length for a chapter title. */
|
|
71
|
-
export const MAX_CHAPTER_TITLE_LENGTH =
|
|
71
|
+
export const MAX_CHAPTER_TITLE_LENGTH = MAX_WORK_PROJECT_TITLE_LENGTH;
|
|
72
72
|
/** Maximum length for chapter body content. */
|
|
73
73
|
export const MAX_CHAPTER_CONTENT_LENGTH = 2500;
|
|
74
|
-
/** Maximum number of
|
|
75
|
-
export const
|
|
76
|
-
/** Maximum length for a
|
|
77
|
-
export const
|
|
78
|
-
/** Maximum length for a
|
|
79
|
-
export const
|
|
80
|
-
/** Maximum number of
|
|
81
|
-
export const
|
|
82
|
-
/** Maximum length for
|
|
83
|
-
export const
|
|
84
|
-
/** Maximum length for
|
|
85
|
-
export const
|
|
86
|
-
// ---
|
|
87
|
-
/** Maximum number of open
|
|
88
|
-
export const
|
|
89
|
-
/** Maximum number of
|
|
90
|
-
export const
|
|
91
|
-
/** Maximum length for a
|
|
92
|
-
export const
|
|
93
|
-
/** Maximum length for a
|
|
94
|
-
export const
|
|
95
|
-
// ---
|
|
96
|
-
/** Maximum length for an
|
|
97
|
-
export const
|
|
98
|
-
/** Maximum length for an
|
|
99
|
-
export const
|
|
100
|
-
// ---
|
|
101
|
-
/** Maximum length for a
|
|
74
|
+
/** Maximum number of tracks a Tunes workProject can have. */
|
|
75
|
+
export const MAX_TUNE_TRACKS = 10;
|
|
76
|
+
/** Maximum length for a track title. */
|
|
77
|
+
export const MAX_TUNE_TRACK_TITLE_LENGTH = MAX_WORK_PROJECT_TITLE_LENGTH;
|
|
78
|
+
/** Maximum length for a track description. */
|
|
79
|
+
export const MAX_TUNE_TRACK_DESCRIPTION_LENGTH = MAX_WORK_PROJECT_DESCRIPTION_LENGTH;
|
|
80
|
+
/** Maximum number of episodes a Television workProject can have. */
|
|
81
|
+
export const MAX_TELEVISION_EPISODES = 10;
|
|
82
|
+
/** Maximum length for an episode title. */
|
|
83
|
+
export const MAX_TELEVISION_EPISODE_TITLE_LENGTH = MAX_WORK_PROJECT_TITLE_LENGTH;
|
|
84
|
+
/** Maximum length for an episode description. */
|
|
85
|
+
export const MAX_TELEVISION_EPISODE_DESCRIPTION_LENGTH = MAX_WORK_PROJECT_DESCRIPTION_LENGTH;
|
|
86
|
+
// --- Commission Board & Applications ---
|
|
87
|
+
/** Maximum number of open commissions a workProject can have. */
|
|
88
|
+
export const MAX_COMMISSION_LISTINGS = 5;
|
|
89
|
+
/** Maximum number of proposal artisans saved to a commission. */
|
|
90
|
+
export const MAX_SAVED_PROPOSAL_ARTISANS = 5;
|
|
91
|
+
/** Maximum length for a commission title. */
|
|
92
|
+
export const MAX_COMMISSION_TITLE_LENGTH = MAX_WORK_PROJECT_TITLE_LENGTH;
|
|
93
|
+
/** Maximum length for a commission description / cover letter. */
|
|
94
|
+
export const MAX_COMMISSION_DESCRIPTION_LENGTH = 400;
|
|
95
|
+
// --- Auditions ---
|
|
96
|
+
/** Maximum length for an audition title. */
|
|
97
|
+
export const MAX_AUDITION_TITLE_LENGTH = 150;
|
|
98
|
+
/** Maximum length for an audition description. */
|
|
99
|
+
export const MAX_AUDITION_DESCRIPTION_LENGTH = 1000;
|
|
100
|
+
// --- SquareStreetz (Social Feed) ---
|
|
101
|
+
/** Maximum length for a SquareStreetz post. */
|
|
102
102
|
export const MAX_POST_LENGTH = 500;
|
|
103
|
-
/** Maximum number of mentions allowed in a single
|
|
103
|
+
/** Maximum number of mentions allowed in a single SquareStreetz post. */
|
|
104
104
|
export const MAX_MENTIONS = 3;
|
|
105
105
|
/** Maximum characters of a mention's display name shown before truncation. */
|
|
106
106
|
export const MAX_MENTION_DISPLAY_LENGTH = 30;
|
|
107
107
|
// --- Messages & Invites ---
|
|
108
|
-
/** Maximum length for a
|
|
109
|
-
export const
|
|
110
|
-
/** Maximum length for a
|
|
111
|
-
export const
|
|
112
|
-
// --- Admin
|
|
113
|
-
/** Maximum length for an admin-
|
|
114
|
-
export const
|
|
115
|
-
/** Maximum length for the initial body text of an admin
|
|
116
|
-
export const
|
|
108
|
+
/** Maximum length for a guild-invite message. */
|
|
109
|
+
export const MAX_GUILD_INVITE_MESSAGE_LENGTH = 500;
|
|
110
|
+
/** Maximum length for a pledgePayment message. */
|
|
111
|
+
export const MAX_PLEDGE_PAYMENT_MESSAGE_LENGTH = 500;
|
|
112
|
+
// --- Admin Dispatches ---
|
|
113
|
+
/** Maximum length for an admin-dispatch subject line. */
|
|
114
|
+
export const MAX_ADMIN_DISPATCH_SUBJECT_LENGTH = 100;
|
|
115
|
+
/** Maximum length for the initial body text of an admin dispatch. */
|
|
116
|
+
export const MAX_ADMIN_DISPATCH_INITIAL_TEXT_LENGTH = 1000;
|
|
117
117
|
// --- Content Moderation Workflow ---
|
|
118
118
|
/** Maximum length for a content-violation appeal message. */
|
|
119
119
|
export const MAX_APPEAL_MESSAGE_LENGTH = 1000;
|
|
@@ -129,14 +129,14 @@ export const MAX_FEEDBACK_SUBMITTERS = 100;
|
|
|
129
129
|
* mirroring in callers required.
|
|
130
130
|
*/
|
|
131
131
|
export const FEEDBACK_TYPES = [
|
|
132
|
-
'
|
|
133
|
-
'
|
|
132
|
+
'tradeProfessionSuggestions',
|
|
133
|
+
'craftSkillTagSuggestions',
|
|
134
134
|
'talesCategorySuggestions',
|
|
135
135
|
'tunesCategorySuggestions',
|
|
136
136
|
'televisionCategorySuggestions',
|
|
137
137
|
];
|
|
138
|
-
/** Maximum number of items submitted in a single
|
|
139
|
-
export const
|
|
138
|
+
/** Maximum number of items submitted in a single hallLibrary-review submission. */
|
|
139
|
+
export const MAX_HALL_LIBRARY_SUBMIT_BATCH = 50;
|
|
140
140
|
// --- Admin Tasks ---
|
|
141
141
|
/** Admin task lifecycle statuses. */
|
|
142
142
|
export const ADMIN_TASK_STATUS = {
|
|
@@ -147,11 +147,11 @@ export const ADMIN_TASK_STATUS = {
|
|
|
147
147
|
};
|
|
148
148
|
// --- Payments ---
|
|
149
149
|
/**
|
|
150
|
-
* Maximum
|
|
150
|
+
* Maximum pledgePayment amount accepted by the Stripe checkout flow, in cents
|
|
151
151
|
* (USD). $500,000.00. Well below Stripe's hard per-charge ceiling, but
|
|
152
152
|
* high enough that legitimate large gifts pass without friction. Anything
|
|
153
153
|
* above this is rejected by the schema before a Stripe session is created
|
|
154
154
|
* or any rate-limit / audit-event side effects are incurred.
|
|
155
155
|
*/
|
|
156
|
-
export const
|
|
156
|
+
export const MAX_PLEDGE_PAYMENT_AMOUNT_CENTS = 50_000_000;
|
|
157
157
|
//# sourceMappingURL=business.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business.js","sourceRoot":"","sources":["../../src/constants/business.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAE9D,
|
|
1
|
+
{"version":3,"file":"business.js","sourceRoot":"","sources":["../../src/constants/business.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAE9D,oEAAoE;AACpE,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAC;AAElD,gGAAgG;AAChG,MAAM,CAAC,MAAM,qCAAqC,GAAG,GAAG,CAAC;AAEzD,qCAAqC;AAErC,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,QAAQ,EAAE,CAAC;IACX,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,GAAG,EAAE,CAAC;CACE,CAAC;AAIX,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,KAAK;CACA,CAAC;AAEX,sBAAsB;AAEtB,sDAAsD;AACtD,MAAM,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EAAE,WAAW;CACd,CAAC;AAEX,mBAAmB;AAEnB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,UAAU,CAAC"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
/**
|
|
3
|
-
export declare const
|
|
4
|
-
/**
|
|
5
|
-
export declare const
|
|
6
|
-
/**
|
|
7
|
-
export declare const
|
|
1
|
+
import type { HallWingType, WorkProjectType } from '../types/content.js';
|
|
2
|
+
/** Trade options for user profiles, sorted alphabetically. */
|
|
3
|
+
export declare const TRADE_PROFESSION_OPTIONS: string[];
|
|
4
|
+
/** Craft tag options for craftSkill uploads, sorted alphabetically. */
|
|
5
|
+
export declare const CRAFT_SKILL_TAG_OPTIONS: string[];
|
|
6
|
+
/** Genres shown for each workProject type. */
|
|
7
|
+
export declare const WORK_PROJECT_SPECIFIC_GENRES: {
|
|
8
8
|
readonly Tales: string[];
|
|
9
9
|
readonly Tunes: string[];
|
|
10
10
|
readonly Television: string[];
|
|
11
11
|
};
|
|
12
|
-
/**
|
|
13
|
-
export declare const
|
|
12
|
+
/** HallLibrary type display info. Used in dropdowns and badges. */
|
|
13
|
+
export declare const HALL_WING_TYPES: Record<HallWingType, {
|
|
14
14
|
label: string;
|
|
15
15
|
description: string;
|
|
16
16
|
}>;
|
|
17
|
-
/**
|
|
18
|
-
export declare const
|
|
17
|
+
/** WorkProject type display info. Used in dropdowns and headers. */
|
|
18
|
+
export declare const WORK_PROJECT_TYPES: Record<WorkProjectType, {
|
|
19
19
|
label: string;
|
|
20
20
|
description: string;
|
|
21
21
|
}>;
|
|
22
|
-
/** Sort options shown on the
|
|
23
|
-
export declare const
|
|
22
|
+
/** Sort options shown on the audition feeds, keyed by feed type. */
|
|
23
|
+
export declare const AUDITION_SORT_OPTIONS: {
|
|
24
24
|
readonly default: {
|
|
25
25
|
readonly newest: {
|
|
26
26
|
readonly label: "Newest First";
|
|
@@ -33,7 +33,7 @@ export declare const OPPORTUNITY_SORT_OPTIONS: {
|
|
|
33
33
|
readonly direction: "asc";
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
-
readonly
|
|
36
|
+
readonly platformAudition: {
|
|
37
37
|
readonly newest: {
|
|
38
38
|
readonly label: "Newest First";
|
|
39
39
|
readonly field: "createdOn";
|
|
@@ -45,7 +45,7 @@ export declare const OPPORTUNITY_SORT_OPTIONS: {
|
|
|
45
45
|
readonly direction: "asc";
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
readonly
|
|
48
|
+
readonly sponsoredAudition: {
|
|
49
49
|
readonly newest: {
|
|
50
50
|
readonly label: "Newest First";
|
|
51
51
|
readonly field: "createdOn";
|
|
@@ -58,16 +58,16 @@ export declare const OPPORTUNITY_SORT_OPTIONS: {
|
|
|
58
58
|
};
|
|
59
59
|
readonly highestPrice: {
|
|
60
60
|
readonly label: "Highest Price";
|
|
61
|
-
readonly field: "
|
|
61
|
+
readonly field: "sponsoredAuditionAmountUSD";
|
|
62
62
|
readonly direction: "desc";
|
|
63
63
|
};
|
|
64
64
|
readonly lowestPrice: {
|
|
65
65
|
readonly label: "Lowest Price";
|
|
66
|
-
readonly field: "
|
|
66
|
+
readonly field: "sponsoredAuditionAmountUSD";
|
|
67
67
|
readonly direction: "asc";
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
|
-
readonly
|
|
70
|
+
readonly workAudition: {
|
|
71
71
|
readonly newest: {
|
|
72
72
|
readonly label: "Newest First";
|
|
73
73
|
readonly field: "createdOn";
|
|
@@ -80,18 +80,18 @@ export declare const OPPORTUNITY_SORT_OPTIONS: {
|
|
|
80
80
|
};
|
|
81
81
|
readonly highestShares: {
|
|
82
82
|
readonly label: "Highest Shares";
|
|
83
|
-
readonly field: "
|
|
83
|
+
readonly field: "stakeSharesOffered";
|
|
84
84
|
readonly direction: "desc";
|
|
85
85
|
};
|
|
86
86
|
readonly lowestShares: {
|
|
87
87
|
readonly label: "Lowest Shares";
|
|
88
|
-
readonly field: "
|
|
88
|
+
readonly field: "stakeSharesOffered";
|
|
89
89
|
readonly direction: "asc";
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
|
-
/** Sort options shown on the
|
|
94
|
-
export declare const
|
|
93
|
+
/** Sort options shown on the hallLibrary feed. */
|
|
94
|
+
export declare const HALL_LIBRARY_SORT_OPTIONS: Record<string, {
|
|
95
95
|
label: string;
|
|
96
96
|
field: string;
|
|
97
97
|
direction: 'asc' | 'desc';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/constants/options.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/constants/options.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAQzE,8DAA8D;AAC9D,eAAO,MAAM,wBAAwB,UAa7B,CAAC;AAET,uEAAuE;AACvE,eAAO,MAAM,uBAAuB,UA6B5B,CAAC;AAIT,8CAA8C;AAC9C,eAAO,MAAM,4BAA4B;;;;CAqC/B,CAAC;AAIX,mEAAmE;AACnE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,YAAY,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAaxF,CAAC;AAEF,oEAAoE;AACpE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,eAAe,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAa9F,CAAC;AAIF,oEAAoE;AACpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBxB,CAAC;AAEX,kDAAkD;AAClD,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAC5C,MAAM,EACN;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,KAAK,GAAG,MAAM,CAAA;CAAE,CAM5D,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// UI option lists shared between frontend and backend admin tooling.
|
|
2
|
-
// ---
|
|
3
|
-
//
|
|
4
|
-
// Keep
|
|
5
|
-
// ---
|
|
6
|
-
/**
|
|
7
|
-
export const
|
|
2
|
+
// --- WorkProject Guild Standings ---
|
|
3
|
+
// WorkProject guild-standing IDs, labels, and assignment policy live in ../permissions/.
|
|
4
|
+
// Keep guild-standing picker UIs backed by GUILD_STANDINGS instead of a duplicated option map.
|
|
5
|
+
// --- Trade & Craft Options ---
|
|
6
|
+
/** Trade options for user profiles, sorted alphabetically. */
|
|
7
|
+
export const TRADE_PROFESSION_OPTIONS = [
|
|
8
8
|
'Actor',
|
|
9
9
|
'Animator',
|
|
10
10
|
'Artist',
|
|
@@ -18,8 +18,8 @@ export const PROFESSION_OPTIONS = [
|
|
|
18
18
|
'Sound Designer',
|
|
19
19
|
'Writer',
|
|
20
20
|
].sort();
|
|
21
|
-
/**
|
|
22
|
-
export const
|
|
21
|
+
/** Craft tag options for craftSkill uploads, sorted alphabetically. */
|
|
22
|
+
export const CRAFT_SKILL_TAG_OPTIONS = [
|
|
23
23
|
'Abstract',
|
|
24
24
|
'Action',
|
|
25
25
|
'Adventure',
|
|
@@ -49,9 +49,9 @@ export const SKILL_TAG_OPTIONS = [
|
|
|
49
49
|
'VocalPerformance',
|
|
50
50
|
'VoiceOver',
|
|
51
51
|
].sort();
|
|
52
|
-
// ---
|
|
53
|
-
/**
|
|
54
|
-
export const
|
|
52
|
+
// --- WorkProject-Specific Genres ---
|
|
53
|
+
/** Genres shown for each workProject type. */
|
|
54
|
+
export const WORK_PROJECT_SPECIFIC_GENRES = {
|
|
55
55
|
Tales: [
|
|
56
56
|
'Adventure',
|
|
57
57
|
'Comedy',
|
|
@@ -89,9 +89,9 @@ export const PROJECT_SPECIFIC_CATEGORIES = {
|
|
|
89
89
|
'Thriller',
|
|
90
90
|
].sort(),
|
|
91
91
|
};
|
|
92
|
-
// ---
|
|
93
|
-
/**
|
|
94
|
-
export const
|
|
92
|
+
// --- HallLibrary / WorkProject Type Display Maps ---
|
|
93
|
+
/** HallLibrary type display info. Used in dropdowns and badges. */
|
|
94
|
+
export const HALL_WING_TYPES = {
|
|
95
95
|
entertainment: {
|
|
96
96
|
label: 'Entertainment',
|
|
97
97
|
description: 'Fun and engaging content',
|
|
@@ -105,8 +105,8 @@ export const LIBRARY_TYPES = {
|
|
|
105
105
|
description: 'Current events and political content',
|
|
106
106
|
},
|
|
107
107
|
};
|
|
108
|
-
/**
|
|
109
|
-
export const
|
|
108
|
+
/** WorkProject type display info. Used in dropdowns and headers. */
|
|
109
|
+
export const WORK_PROJECT_TYPES = {
|
|
110
110
|
Tales: {
|
|
111
111
|
label: 'Tales',
|
|
112
112
|
description: 'Stories and narratives',
|
|
@@ -121,34 +121,34 @@ export const PROJECT_TYPES = {
|
|
|
121
121
|
},
|
|
122
122
|
};
|
|
123
123
|
// --- Sort Options ---
|
|
124
|
-
/** Sort options shown on the
|
|
125
|
-
export const
|
|
124
|
+
/** Sort options shown on the audition feeds, keyed by feed type. */
|
|
125
|
+
export const AUDITION_SORT_OPTIONS = {
|
|
126
126
|
default: {
|
|
127
127
|
newest: { label: 'Newest First', field: 'createdOn', direction: 'desc' },
|
|
128
128
|
endingSoon: { label: 'Ending Soon', field: 'openTill', direction: 'asc' },
|
|
129
129
|
},
|
|
130
|
-
|
|
130
|
+
platformAudition: {
|
|
131
131
|
newest: { label: 'Newest First', field: 'createdOn', direction: 'desc' },
|
|
132
132
|
endingSoon: { label: 'Ending Soon', field: 'openTill', direction: 'asc' },
|
|
133
133
|
},
|
|
134
|
-
|
|
134
|
+
sponsoredAudition: {
|
|
135
135
|
newest: { label: 'Newest First', field: 'createdOn', direction: 'desc' },
|
|
136
136
|
endingSoon: { label: 'Ending Soon', field: 'openTill', direction: 'asc' },
|
|
137
|
-
highestPrice: { label: 'Highest Price', field: '
|
|
138
|
-
lowestPrice: { label: 'Lowest Price', field: '
|
|
137
|
+
highestPrice: { label: 'Highest Price', field: 'sponsoredAuditionAmountUSD', direction: 'desc' },
|
|
138
|
+
lowestPrice: { label: 'Lowest Price', field: 'sponsoredAuditionAmountUSD', direction: 'asc' },
|
|
139
139
|
},
|
|
140
|
-
|
|
140
|
+
workAudition: {
|
|
141
141
|
newest: { label: 'Newest First', field: 'createdOn', direction: 'desc' },
|
|
142
142
|
endingSoon: { label: 'Ending Soon', field: 'openTill', direction: 'asc' },
|
|
143
|
-
highestShares: { label: 'Highest Shares', field: '
|
|
144
|
-
lowestShares: { label: 'Lowest Shares', field: '
|
|
143
|
+
highestShares: { label: 'Highest Shares', field: 'stakeSharesOffered', direction: 'desc' },
|
|
144
|
+
lowestShares: { label: 'Lowest Shares', field: 'stakeSharesOffered', direction: 'asc' },
|
|
145
145
|
},
|
|
146
146
|
};
|
|
147
|
-
/** Sort options shown on the
|
|
148
|
-
export const
|
|
147
|
+
/** Sort options shown on the hallLibrary feed. */
|
|
148
|
+
export const HALL_LIBRARY_SORT_OPTIONS = {
|
|
149
149
|
newest: { label: 'Newest First', field: 'createdOn', direction: 'desc' },
|
|
150
150
|
oldest: { label: 'Oldest First', field: 'createdOn', direction: 'asc' },
|
|
151
|
-
|
|
151
|
+
most_pledged: { label: 'Most Pledged', field: 'totalPledgePayments', direction: 'desc' },
|
|
152
152
|
most_viewed: { label: 'Most Viewed', field: 'viewCount', direction: 'desc' },
|
|
153
153
|
};
|
|
154
154
|
//# sourceMappingURL=options.js.map
|