@ttt-productions/ttt-core 0.10.5 → 0.10.7
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-admin.d.ts +43 -0
- package/dist/constants/business-admin.d.ts.map +1 -0
- package/dist/constants/business-admin.js +52 -0
- package/dist/constants/business-admin.js.map +1 -0
- package/dist/constants/business-content.d.ts +34 -0
- package/dist/constants/business-content.d.ts.map +1 -0
- package/dist/constants/business-content.js +41 -0
- package/dist/constants/business-content.js.map +1 -0
- package/dist/constants/business-platform.d.ts +24 -0
- package/dist/constants/business-platform.d.ts.map +1 -0
- package/dist/constants/business-platform.js +29 -0
- package/dist/constants/business-platform.js.map +1 -0
- package/dist/constants/business-user.d.ts +15 -0
- package/dist/constants/business-user.d.ts.map +1 -0
- package/dist/constants/business-user.js +21 -0
- package/dist/constants/business-user.js.map +1 -0
- package/dist/constants/business-work-project.d.ts +44 -0
- package/dist/constants/business-work-project.d.ts.map +1 -0
- package/dist/constants/business-work-project.js +48 -0
- package/dist/constants/business-work-project.js.map +1 -0
- package/dist/constants/business.d.ts +5 -155
- package/dist/constants/business.d.ts.map +1 -1
- package/dist/constants/business.js +8 -177
- package/dist/constants/business.js.map +1 -1
- package/dist/constants/options.d.ts.map +1 -1
- package/dist/constants/options.js +0 -2
- package/dist/constants/options.js.map +1 -1
- package/dist/doc-schemas/content.d.ts +0 -9
- package/dist/doc-schemas/content.d.ts.map +1 -1
- package/dist/doc-schemas/content.js +0 -3
- package/dist/doc-schemas/content.js.map +1 -1
- package/dist/doc-schemas/registry.d.ts +1617 -1626
- package/dist/doc-schemas/registry.d.ts.map +1 -1
- package/dist/media/domain-events-admin.d.ts +212 -0
- package/dist/media/domain-events-admin.d.ts.map +1 -0
- package/dist/media/domain-events-admin.js +100 -0
- package/dist/media/domain-events-admin.js.map +1 -0
- package/dist/media/domain-events-social.d.ts +112 -0
- package/dist/media/domain-events-social.d.ts.map +1 -0
- package/dist/media/domain-events-social.js +50 -0
- package/dist/media/domain-events-social.js.map +1 -0
- package/dist/media/domain-events-user.d.ts +222 -0
- package/dist/media/domain-events-user.d.ts.map +1 -0
- package/dist/media/domain-events-user.js +99 -0
- package/dist/media/domain-events-user.js.map +1 -0
- package/dist/media/domain-events-work.d.ts +597 -0
- package/dist/media/domain-events-work.d.ts.map +1 -0
- package/dist/media/domain-events-work.js +246 -0
- package/dist/media/domain-events-work.js.map +1 -0
- package/dist/media/domain-events.d.ts +4 -1135
- package/dist/media/domain-events.d.ts.map +1 -1
- package/dist/media/domain-events.js +8 -476
- package/dist/media/domain-events.js.map +1 -1
- package/dist/media/pending-media.d.ts +3449 -3449
- package/dist/permissions/work-project-permissions-data.d.ts +278 -0
- package/dist/permissions/work-project-permissions-data.d.ts.map +1 -0
- package/dist/permissions/work-project-permissions-data.js +275 -0
- package/dist/permissions/work-project-permissions-data.js.map +1 -0
- package/dist/permissions/work-project-permissions.d.ts +2 -277
- package/dist/permissions/work-project-permissions.d.ts.map +1 -1
- package/dist/permissions/work-project-permissions.js +4 -274
- package/dist/permissions/work-project-permissions.js.map +1 -1
- package/dist/schemas/work-project-management.d.ts +3 -3
- package/dist/types/content.d.ts +1 -1
- package/dist/types/content.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const TASK_PRIORITY: {
|
|
2
|
+
readonly CRITICAL: 4;
|
|
3
|
+
readonly HIGH: 3;
|
|
4
|
+
readonly NORMAL: 2;
|
|
5
|
+
readonly LOW: 1;
|
|
6
|
+
};
|
|
7
|
+
export type TaskPriorityLevel = (typeof TASK_PRIORITY)[keyof typeof TASK_PRIORITY];
|
|
8
|
+
export declare const TASK_PRIORITY_LABELS: {
|
|
9
|
+
readonly 4: "CRITICAL";
|
|
10
|
+
readonly 3: "HIGH";
|
|
11
|
+
readonly 2: "NORMAL";
|
|
12
|
+
readonly 1: "LOW";
|
|
13
|
+
};
|
|
14
|
+
/** Maximum length for an admin-dispatch subject line. */
|
|
15
|
+
export declare const MAX_ADMIN_DISPATCH_SUBJECT_LENGTH = 100;
|
|
16
|
+
/** Maximum length for the initial body text of an admin dispatch. */
|
|
17
|
+
export declare const MAX_ADMIN_DISPATCH_INITIAL_TEXT_LENGTH = 1000;
|
|
18
|
+
/** Maximum length for a content-violation appeal message. */
|
|
19
|
+
export declare const MAX_APPEAL_MESSAGE_LENGTH = 1000;
|
|
20
|
+
/** Maximum length for a feedback suggestion. */
|
|
21
|
+
export declare const MAX_FEEDBACK_SUGGESTION_LENGTH = 100;
|
|
22
|
+
/** Maximum number of distinct submitters tracked per feedback suggestion. */
|
|
23
|
+
export declare const MAX_FEEDBACK_SUBMITTERS = 100;
|
|
24
|
+
/**
|
|
25
|
+
* Canonical list of feedback types accepted by `submitFeedback`. Used both
|
|
26
|
+
* for runtime validation in the schema (`SubmitFeedbackInputSchema`) and
|
|
27
|
+
* for type-safe consumer props on the frontend `<FeedbackSubmission />`
|
|
28
|
+
* component. Adding a new type here is the single source of truth — no
|
|
29
|
+
* mirroring in callers required.
|
|
30
|
+
*/
|
|
31
|
+
export declare const FEEDBACK_TYPES: readonly ["tradeProfessionSuggestions", "craftSkillTagSuggestions", "talesWorkGenreSuggestions", "tunesWorkGenreSuggestions", "televisionWorkGenreSuggestions"];
|
|
32
|
+
/** Union of canonical feedback types. */
|
|
33
|
+
export type FeedbackType = (typeof FEEDBACK_TYPES)[number];
|
|
34
|
+
/** Maximum number of items submitted in a single hallLibrary-review submission. */
|
|
35
|
+
export declare const MAX_HALL_LIBRARY_SUBMIT_BATCH = 50;
|
|
36
|
+
/** Admin task lifecycle statuses. */
|
|
37
|
+
export declare const ADMIN_TASK_STATUS: {
|
|
38
|
+
readonly PENDING: "pending";
|
|
39
|
+
readonly CHECKED_OUT: "checkedOut";
|
|
40
|
+
readonly WORK_LATER: "workLater";
|
|
41
|
+
readonly COMPLETED: "completed";
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=business-admin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-admin.d.ts","sourceRoot":"","sources":["../../src/constants/business-admin.ts"],"names":[],"mappings":"AAKA,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,yDAAyD;AACzD,eAAO,MAAM,iCAAiC,MAAM,CAAC;AAErD,qEAAqE;AACrE,eAAO,MAAM,sCAAsC,OAAO,CAAC;AAI3D,6DAA6D;AAC7D,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAE9C,gDAAgD;AAChD,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAElD,6EAA6E;AAC7E,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,iKAMjB,CAAC;AAEX,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,mFAAmF;AACnF,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAIhD,qCAAqC;AACrC,eAAO,MAAM,iBAAiB;;;;;CAKpB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Admin + content-moderation business-rule constants — task priority, dispatches,
|
|
2
|
+
// the moderation/feedback workflow, and admin-task lifecycle.
|
|
3
|
+
// --- Admin Task Priority System ---
|
|
4
|
+
export const TASK_PRIORITY = {
|
|
5
|
+
CRITICAL: 4,
|
|
6
|
+
HIGH: 3,
|
|
7
|
+
NORMAL: 2,
|
|
8
|
+
LOW: 1,
|
|
9
|
+
};
|
|
10
|
+
export const TASK_PRIORITY_LABELS = {
|
|
11
|
+
4: 'CRITICAL',
|
|
12
|
+
3: 'HIGH',
|
|
13
|
+
2: 'NORMAL',
|
|
14
|
+
1: 'LOW',
|
|
15
|
+
};
|
|
16
|
+
// --- Admin Dispatches ---
|
|
17
|
+
/** Maximum length for an admin-dispatch subject line. */
|
|
18
|
+
export const MAX_ADMIN_DISPATCH_SUBJECT_LENGTH = 100;
|
|
19
|
+
/** Maximum length for the initial body text of an admin dispatch. */
|
|
20
|
+
export const MAX_ADMIN_DISPATCH_INITIAL_TEXT_LENGTH = 1000;
|
|
21
|
+
// --- Content Moderation Workflow ---
|
|
22
|
+
/** Maximum length for a content-violation appeal message. */
|
|
23
|
+
export const MAX_APPEAL_MESSAGE_LENGTH = 1000;
|
|
24
|
+
/** Maximum length for a feedback suggestion. */
|
|
25
|
+
export const MAX_FEEDBACK_SUGGESTION_LENGTH = 100;
|
|
26
|
+
/** Maximum number of distinct submitters tracked per feedback suggestion. */
|
|
27
|
+
export const MAX_FEEDBACK_SUBMITTERS = 100;
|
|
28
|
+
/**
|
|
29
|
+
* Canonical list of feedback types accepted by `submitFeedback`. Used both
|
|
30
|
+
* for runtime validation in the schema (`SubmitFeedbackInputSchema`) and
|
|
31
|
+
* for type-safe consumer props on the frontend `<FeedbackSubmission />`
|
|
32
|
+
* component. Adding a new type here is the single source of truth — no
|
|
33
|
+
* mirroring in callers required.
|
|
34
|
+
*/
|
|
35
|
+
export const FEEDBACK_TYPES = [
|
|
36
|
+
'tradeProfessionSuggestions',
|
|
37
|
+
'craftSkillTagSuggestions',
|
|
38
|
+
'talesWorkGenreSuggestions',
|
|
39
|
+
'tunesWorkGenreSuggestions',
|
|
40
|
+
'televisionWorkGenreSuggestions',
|
|
41
|
+
];
|
|
42
|
+
/** Maximum number of items submitted in a single hallLibrary-review submission. */
|
|
43
|
+
export const MAX_HALL_LIBRARY_SUBMIT_BATCH = 50;
|
|
44
|
+
// --- Admin Tasks ---
|
|
45
|
+
/** Admin task lifecycle statuses. */
|
|
46
|
+
export const ADMIN_TASK_STATUS = {
|
|
47
|
+
PENDING: 'pending',
|
|
48
|
+
CHECKED_OUT: 'checkedOut',
|
|
49
|
+
WORK_LATER: 'workLater',
|
|
50
|
+
COMPLETED: 'completed',
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=business-admin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-admin.js","sourceRoot":"","sources":["../../src/constants/business-admin.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,8DAA8D;AAE9D,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,2BAA2B;AAE3B,yDAAyD;AACzD,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,CAAC;AAErD,qEAAqE;AACrE,MAAM,CAAC,MAAM,sCAAsC,GAAG,IAAI,CAAC;AAE3D,sCAAsC;AAEtC,6DAA6D;AAC7D,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAE9C,gDAAgD;AAChD,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,CAAC;AAElD,6EAA6E;AAC7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAE3C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,4BAA4B;IAC5B,0BAA0B;IAC1B,2BAA2B;IAC3B,2BAA2B;IAC3B,gCAAgC;CACxB,CAAC;AAKX,mFAAmF;AACnF,MAAM,CAAC,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAEhD,sBAAsB;AAEtB,qCAAqC;AACrC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,YAAY;IACzB,UAAU,EAAE,WAAW;IACvB,SAAS,EAAE,WAAW;CACd,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** The maximum character length for a SquareStreetz post created on behalf of a workProject. */
|
|
2
|
+
export declare const MAX_SQUARE_STREETZ_DESCRIPTION_LENGTH = 150;
|
|
3
|
+
/** Maximum number of open commissions a workProject can have. */
|
|
4
|
+
export declare const MAX_COMMISSION_LISTINGS = 5;
|
|
5
|
+
/** Maximum number of proposal artisans saved to a commission. */
|
|
6
|
+
export declare const MAX_SAVED_PROPOSAL_ARTISANS = 5;
|
|
7
|
+
/** Maximum length for a commission title. */
|
|
8
|
+
export declare const MAX_COMMISSION_TITLE_LENGTH = 150;
|
|
9
|
+
/** Maximum length for a commission description / cover letter. */
|
|
10
|
+
export declare const MAX_COMMISSION_DESCRIPTION_LENGTH = 400;
|
|
11
|
+
/** Maximum length for an audition title. */
|
|
12
|
+
export declare const MAX_AUDITION_TITLE_LENGTH = 150;
|
|
13
|
+
/** Maximum length for an audition description. */
|
|
14
|
+
export declare const MAX_AUDITION_DESCRIPTION_LENGTH = 1000;
|
|
15
|
+
/**
|
|
16
|
+
* Maximum sponsored-audition payout amount in whole USD accepted at the upload
|
|
17
|
+
* trust boundary. Mirrors MAX_PLEDGE_PAYMENT_AMOUNT_CENTS ($500,000) expressed
|
|
18
|
+
* in dollars — a finite ceiling that rejects absurd/garbage amounts before any
|
|
19
|
+
* downstream processing.
|
|
20
|
+
*/
|
|
21
|
+
export declare const MAX_SPONSORED_AUDITION_AMOUNT_USD = 500000;
|
|
22
|
+
/** Maximum length for a SquareStreetz post. */
|
|
23
|
+
export declare const MAX_POST_LENGTH = 500;
|
|
24
|
+
/** Maximum number of mentions allowed in a single SquareStreetz post. */
|
|
25
|
+
export declare const MAX_MENTIONS = 3;
|
|
26
|
+
/** Maximum characters of a mention's display name shown before truncation. */
|
|
27
|
+
export declare const MAX_MENTION_DISPLAY_LENGTH = 30;
|
|
28
|
+
/** Maximum length for a guild-invite message. */
|
|
29
|
+
export declare const MAX_GUILD_INVITE_MESSAGE_LENGTH = 500;
|
|
30
|
+
/** Maximum length for a pledgePayment message. */
|
|
31
|
+
export declare const MAX_PLEDGE_PAYMENT_MESSAGE_LENGTH = 500;
|
|
32
|
+
/** Maximum length for a chat reply-to preview snippet stored on an attachment. */
|
|
33
|
+
export declare const MAX_CHAT_REPLY_PREVIEW_LENGTH = 280;
|
|
34
|
+
//# sourceMappingURL=business-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-content.d.ts","sourceRoot":"","sources":["../../src/constants/business-content.ts"],"names":[],"mappings":"AAIA,gGAAgG;AAChG,eAAO,MAAM,qCAAqC,MAAM,CAAC;AAIzD,iEAAiE;AACjE,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC,iEAAiE;AACjE,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAE7C,6CAA6C;AAC7C,eAAO,MAAM,2BAA2B,MAAgC,CAAC;AAEzE,kEAAkE;AAClE,eAAO,MAAM,iCAAiC,MAAM,CAAC;AAIrD,4CAA4C;AAC5C,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,kDAAkD;AAClD,eAAO,MAAM,+BAA+B,OAAO,CAAC;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,SAAU,CAAC;AAIzD,+CAA+C;AAC/C,eAAO,MAAM,eAAe,MAAM,CAAC;AAEnC,yEAAyE;AACzE,eAAO,MAAM,YAAY,IAAI,CAAC;AAE9B,8EAA8E;AAC9E,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAI7C,iDAAiD;AACjD,eAAO,MAAM,+BAA+B,MAAM,CAAC;AAEnD,kDAAkD;AAClD,eAAO,MAAM,iCAAiC,MAAM,CAAC;AAErD,kFAAkF;AAClF,eAAO,MAAM,6BAA6B,MAAM,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Content-surface business-rule constants — commissions, auditions, the social
|
|
2
|
+
// feed, and messaging.
|
|
3
|
+
import { MAX_WORK_PROJECT_TITLE_LENGTH } from "./business-work-project.js";
|
|
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
|
+
// --- Commission Board & Proposals ---
|
|
7
|
+
/** Maximum number of open commissions a workProject can have. */
|
|
8
|
+
export const MAX_COMMISSION_LISTINGS = 5;
|
|
9
|
+
/** Maximum number of proposal artisans saved to a commission. */
|
|
10
|
+
export const MAX_SAVED_PROPOSAL_ARTISANS = 5;
|
|
11
|
+
/** Maximum length for a commission title. */
|
|
12
|
+
export const MAX_COMMISSION_TITLE_LENGTH = MAX_WORK_PROJECT_TITLE_LENGTH;
|
|
13
|
+
/** Maximum length for a commission description / cover letter. */
|
|
14
|
+
export const MAX_COMMISSION_DESCRIPTION_LENGTH = 400;
|
|
15
|
+
// --- Auditions ---
|
|
16
|
+
/** Maximum length for an audition title. */
|
|
17
|
+
export const MAX_AUDITION_TITLE_LENGTH = 150;
|
|
18
|
+
/** Maximum length for an audition description. */
|
|
19
|
+
export const MAX_AUDITION_DESCRIPTION_LENGTH = 1000;
|
|
20
|
+
/**
|
|
21
|
+
* Maximum sponsored-audition payout amount in whole USD accepted at the upload
|
|
22
|
+
* trust boundary. Mirrors MAX_PLEDGE_PAYMENT_AMOUNT_CENTS ($500,000) expressed
|
|
23
|
+
* in dollars — a finite ceiling that rejects absurd/garbage amounts before any
|
|
24
|
+
* downstream processing.
|
|
25
|
+
*/
|
|
26
|
+
export const MAX_SPONSORED_AUDITION_AMOUNT_USD = 500_000;
|
|
27
|
+
// --- SquareStreetz (Social Feed) ---
|
|
28
|
+
/** Maximum length for a SquareStreetz post. */
|
|
29
|
+
export const MAX_POST_LENGTH = 500;
|
|
30
|
+
/** Maximum number of mentions allowed in a single SquareStreetz post. */
|
|
31
|
+
export const MAX_MENTIONS = 3;
|
|
32
|
+
/** Maximum characters of a mention's display name shown before truncation. */
|
|
33
|
+
export const MAX_MENTION_DISPLAY_LENGTH = 30;
|
|
34
|
+
// --- Messages & Invites ---
|
|
35
|
+
/** Maximum length for a guild-invite message. */
|
|
36
|
+
export const MAX_GUILD_INVITE_MESSAGE_LENGTH = 500;
|
|
37
|
+
/** Maximum length for a pledgePayment message. */
|
|
38
|
+
export const MAX_PLEDGE_PAYMENT_MESSAGE_LENGTH = 500;
|
|
39
|
+
/** Maximum length for a chat reply-to preview snippet stored on an attachment. */
|
|
40
|
+
export const MAX_CHAT_REPLY_PREVIEW_LENGTH = 280;
|
|
41
|
+
//# sourceMappingURL=business-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-content.js","sourceRoot":"","sources":["../../src/constants/business-content.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,uBAAuB;AACvB,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAE3E,gGAAgG;AAChG,MAAM,CAAC,MAAM,qCAAqC,GAAG,GAAG,CAAC;AAEzD,uCAAuC;AAEvC,iEAAiE;AACjE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAEzC,iEAAiE;AACjE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC;AAE7C,6CAA6C;AAC7C,MAAM,CAAC,MAAM,2BAA2B,GAAG,6BAA6B,CAAC;AAEzE,kEAAkE;AAClE,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,CAAC;AAErD,oBAAoB;AAEpB,4CAA4C;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAE7C,kDAAkD;AAClD,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,OAAO,CAAC;AAEzD,sCAAsC;AAEtC,+CAA+C;AAC/C,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC;AAEnC,yEAAyE;AACzE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC;AAE9B,8EAA8E;AAC9E,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAE7C,6BAA6B;AAE7B,iDAAiD;AACjD,MAAM,CAAC,MAAM,+BAA+B,GAAG,GAAG,CAAC;AAEnD,kDAAkD;AAClD,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,CAAC;AAErD,kFAAkF;AAClF,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** The length of the generated ID for short links. */
|
|
2
|
+
export declare const SHORT_LINK_LENGTH = 6;
|
|
3
|
+
/** The maximum number of attempts to generate a unique short link ID before failing. */
|
|
4
|
+
export declare const SHORT_LINK_MAX_ATTEMPTS = 5;
|
|
5
|
+
/** Character set for short link IDs. Excludes ambiguous characters (0, O, l, 1, I). */
|
|
6
|
+
export declare const SHORT_LINK_CHARS = "ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz23456789";
|
|
7
|
+
/** Maximum operations in a single Firestore write batch. */
|
|
8
|
+
export declare const FIRESTORE_BATCH_LIMIT = 500;
|
|
9
|
+
/**
|
|
10
|
+
* Minimum pledgePayment amount accepted by the Stripe checkout flow, in cents
|
|
11
|
+
* (USD). 50¢ is Stripe's hard floor for a card charge. Promoted out of the Zod
|
|
12
|
+
* schema so the webhook can re-assert it server-side against the Stripe-confirmed
|
|
13
|
+
* amount, independent of the client input bound.
|
|
14
|
+
*/
|
|
15
|
+
export declare const MIN_PLEDGE_PAYMENT_AMOUNT_CENTS = 50;
|
|
16
|
+
/**
|
|
17
|
+
* Maximum pledgePayment amount accepted by the Stripe checkout flow, in cents
|
|
18
|
+
* (USD). $500,000.00. Well below Stripe's hard per-charge ceiling, but
|
|
19
|
+
* high enough that legitimate large gifts pass without friction. Anything
|
|
20
|
+
* above this is rejected by the schema before a Stripe session is created
|
|
21
|
+
* or any rate-limit / audit-event side effects are incurred.
|
|
22
|
+
*/
|
|
23
|
+
export declare const MAX_PLEDGE_PAYMENT_AMOUNT_CENTS = 50000000;
|
|
24
|
+
//# sourceMappingURL=business-platform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-platform.d.ts","sourceRoot":"","sources":["../../src/constants/business-platform.ts"],"names":[],"mappings":"AAKA,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;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAElD;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,WAAa,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Platform-infrastructure business-rule constants — short links, Firestore
|
|
2
|
+
// limits, and payment bounds.
|
|
3
|
+
// --- Short Links ---
|
|
4
|
+
/** The length of the generated ID for short links. */
|
|
5
|
+
export const SHORT_LINK_LENGTH = 6;
|
|
6
|
+
/** The maximum number of attempts to generate a unique short link ID before failing. */
|
|
7
|
+
export const SHORT_LINK_MAX_ATTEMPTS = 5;
|
|
8
|
+
/** Character set for short link IDs. Excludes ambiguous characters (0, O, l, 1, I). */
|
|
9
|
+
export const SHORT_LINK_CHARS = 'ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz23456789';
|
|
10
|
+
// --- Firestore Limits ---
|
|
11
|
+
/** Maximum operations in a single Firestore write batch. */
|
|
12
|
+
export const FIRESTORE_BATCH_LIMIT = 500;
|
|
13
|
+
// --- Payments ---
|
|
14
|
+
/**
|
|
15
|
+
* Minimum pledgePayment amount accepted by the Stripe checkout flow, in cents
|
|
16
|
+
* (USD). 50¢ is Stripe's hard floor for a card charge. Promoted out of the Zod
|
|
17
|
+
* schema so the webhook can re-assert it server-side against the Stripe-confirmed
|
|
18
|
+
* amount, independent of the client input bound.
|
|
19
|
+
*/
|
|
20
|
+
export const MIN_PLEDGE_PAYMENT_AMOUNT_CENTS = 50;
|
|
21
|
+
/**
|
|
22
|
+
* Maximum pledgePayment amount accepted by the Stripe checkout flow, in cents
|
|
23
|
+
* (USD). $500,000.00. Well below Stripe's hard per-charge ceiling, but
|
|
24
|
+
* high enough that legitimate large gifts pass without friction. Anything
|
|
25
|
+
* above this is rejected by the schema before a Stripe session is created
|
|
26
|
+
* or any rate-limit / audit-event side effects are incurred.
|
|
27
|
+
*/
|
|
28
|
+
export const MAX_PLEDGE_PAYMENT_AMOUNT_CENTS = 50_000_000;
|
|
29
|
+
//# sourceMappingURL=business-platform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-platform.js","sourceRoot":"","sources":["../../src/constants/business-platform.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,8BAA8B;AAE9B,sBAAsB;AAEtB,sDAAsD;AACtD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAEnC,wFAAwF;AACxF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAEzC,uFAAuF;AACvF,MAAM,CAAC,MAAM,gBAAgB,GAAG,0DAA0D,CAAC;AAE3F,2BAA2B;AAE3B,4DAA4D;AAC5D,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAEzC,mBAAmB;AAEnB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Minimum length for a user display name (inclusive). */
|
|
2
|
+
export declare const USERNAME_MIN_LENGTH = 3;
|
|
3
|
+
/** Maximum length for a user display name (inclusive). */
|
|
4
|
+
export declare const USERNAME_MAX_LENGTH = 20;
|
|
5
|
+
/** Allowed characters in a user display name: letters and numbers only. */
|
|
6
|
+
export declare const USERNAME_REGEX: RegExp;
|
|
7
|
+
/** Maximum number of craft-skills a user can upload to their profile. */
|
|
8
|
+
export declare const CRAFT_SKILL_LIMIT = 8;
|
|
9
|
+
/** Maximum number of tags allowed per craftSkill. */
|
|
10
|
+
export declare const MAX_CRAFT_SKILL_TAGS = 5;
|
|
11
|
+
/** Maximum number of recent mentions kept in the user's mention-history hook. */
|
|
12
|
+
export declare const MAX_HISTORY_ITEMS = 10;
|
|
13
|
+
/** Maximum number of results returned by the search hook. */
|
|
14
|
+
export declare const SEARCH_RESULT_LIMIT = 6;
|
|
15
|
+
//# sourceMappingURL=business-user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-user.d.ts","sourceRoot":"","sources":["../../src/constants/business-user.ts"],"names":[],"mappings":"AAKA,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,yEAAyE;AACzE,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAEnC,qDAAqD;AACrD,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAItC,iFAAiF;AACjF,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAIpC,6DAA6D;AAC7D,eAAO,MAAM,mBAAmB,IAAI,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// User identity + profile business-rule constants — display names, craft skills,
|
|
2
|
+
// mention history, and search.
|
|
3
|
+
// --- User Display Names ---
|
|
4
|
+
/** Minimum length for a user display name (inclusive). */
|
|
5
|
+
export const USERNAME_MIN_LENGTH = 3;
|
|
6
|
+
/** Maximum length for a user display name (inclusive). */
|
|
7
|
+
export const USERNAME_MAX_LENGTH = 20;
|
|
8
|
+
/** Allowed characters in a user display name: letters and numbers only. */
|
|
9
|
+
export const USERNAME_REGEX = /^[a-zA-Z0-9]+$/;
|
|
10
|
+
// --- User Profile Craft Skills ---
|
|
11
|
+
/** Maximum number of craft-skills a user can upload to their profile. */
|
|
12
|
+
export const CRAFT_SKILL_LIMIT = 8;
|
|
13
|
+
/** Maximum number of tags allowed per craftSkill. */
|
|
14
|
+
export const MAX_CRAFT_SKILL_TAGS = 5;
|
|
15
|
+
// --- Mention History ---
|
|
16
|
+
/** Maximum number of recent mentions kept in the user's mention-history hook. */
|
|
17
|
+
export const MAX_HISTORY_ITEMS = 10;
|
|
18
|
+
// --- Search ---
|
|
19
|
+
/** Maximum number of results returned by the search hook. */
|
|
20
|
+
export const SEARCH_RESULT_LIMIT = 6;
|
|
21
|
+
//# sourceMappingURL=business-user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-user.js","sourceRoot":"","sources":["../../src/constants/business-user.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,+BAA+B;AAE/B,6BAA6B;AAE7B,0DAA0D;AAC1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAErC,0DAA0D;AAC1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAEtC,2EAA2E;AAC3E,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAE/C,oCAAoC;AAEpC,yEAAyE;AACzE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAEnC,qDAAqD;AACrD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAEtC,0BAA0B;AAE1B,iFAAiF;AACjF,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAEpC,iBAAiB;AAEjB,6DAA6D;AAC7D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/** The absolute maximum number of stakes a workProject can have. */
|
|
2
|
+
export declare const MAX_WORK_PROJECT_STAKE_SHARES = 1000;
|
|
3
|
+
/**
|
|
4
|
+
* Stake shares minted to the realm's founding-Work holder when a Work is
|
|
5
|
+
* created into an EXISTING public realm. Counts toward MAX_WORK_PROJECT_STAKE_SHARES.
|
|
6
|
+
*/
|
|
7
|
+
export declare const EXISTING_REALM_STAKE_SHARES = 75;
|
|
8
|
+
/** Maximum length for a workProject title. */
|
|
9
|
+
export declare const MAX_WORK_PROJECT_TITLE_LENGTH = 150;
|
|
10
|
+
/** Maximum length for a workProject description. */
|
|
11
|
+
export declare const MAX_WORK_PROJECT_DESCRIPTION_LENGTH = 300;
|
|
12
|
+
/** Maximum number of files attached to a workProject. */
|
|
13
|
+
export declare const MAX_WORK_ASSETS = 5;
|
|
14
|
+
/** Maximum file size for workProject file attachments, in bytes (5MB). */
|
|
15
|
+
export declare const MAX_WORK_ASSET_FILE_SIZE: number;
|
|
16
|
+
/** Allowed characters in titles: letters, numbers, spaces. */
|
|
17
|
+
export declare const TITLE_PATTERN: RegExp;
|
|
18
|
+
/** Maximum number of auditions a single workProject can have open at once. */
|
|
19
|
+
export declare const MAX_WORK_PROJECT_AUDITIONS = 3;
|
|
20
|
+
export declare const MAX_TALE_TITLE_LENGTH = 150;
|
|
21
|
+
export declare const MAX_TALE_DESCRIPTION_LENGTH = 300;
|
|
22
|
+
export declare const MAX_TUNE_TITLE_LENGTH = 150;
|
|
23
|
+
export declare const MAX_TUNE_DESCRIPTION_LENGTH = 300;
|
|
24
|
+
export declare const MAX_TELEVISION_TITLE_LENGTH = 150;
|
|
25
|
+
export declare const MAX_TELEVISION_DESCRIPTION_LENGTH = 300;
|
|
26
|
+
/** Maximum number of chapters a Tale can have. */
|
|
27
|
+
export declare const MAX_CHAPTERS = 10;
|
|
28
|
+
/** Maximum length for a chapter title. */
|
|
29
|
+
export declare const MAX_CHAPTER_TITLE_LENGTH = 150;
|
|
30
|
+
/** Maximum length for chapter body content. */
|
|
31
|
+
export declare const MAX_CHAPTER_CONTENT_LENGTH = 2500;
|
|
32
|
+
/** Maximum number of tracks a Tunes workProject can have. */
|
|
33
|
+
export declare const MAX_TUNE_TRACKS = 10;
|
|
34
|
+
/** Maximum length for a track title. */
|
|
35
|
+
export declare const MAX_TUNE_TRACK_TITLE_LENGTH = 150;
|
|
36
|
+
/** Maximum length for a track description. */
|
|
37
|
+
export declare const MAX_TUNE_TRACK_DESCRIPTION_LENGTH = 300;
|
|
38
|
+
/** Maximum number of episodes a Television workProject can have. */
|
|
39
|
+
export declare const MAX_TELEVISION_EPISODES = 10;
|
|
40
|
+
/** Maximum length for an episode title. */
|
|
41
|
+
export declare const MAX_TELEVISION_EPISODE_TITLE_LENGTH = 150;
|
|
42
|
+
/** Maximum length for an episode description. */
|
|
43
|
+
export declare const MAX_TELEVISION_EPISODE_DESCRIPTION_LENGTH = 300;
|
|
44
|
+
//# sourceMappingURL=business-work-project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-work-project.d.ts","sourceRoot":"","sources":["../../src/constants/business-work-project.ts"],"names":[],"mappings":"AAEA,oEAAoE;AACpE,eAAO,MAAM,6BAA6B,OAAO,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAI9C,8CAA8C;AAC9C,eAAO,MAAM,6BAA6B,MAAM,CAAC;AAEjD,oDAAoD;AACpD,eAAO,MAAM,mCAAmC,MAAM,CAAC;AAEvD,yDAAyD;AACzD,eAAO,MAAM,eAAe,IAAI,CAAC;AAEjC,0EAA0E;AAC1E,eAAO,MAAM,wBAAwB,QAAkB,CAAC;AAExD,8DAA8D;AAC9D,eAAO,MAAM,aAAa,QAAoB,CAAC;AAE/C,8EAA8E;AAC9E,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAK5C,eAAO,MAAM,qBAAqB,MAAgC,CAAC;AACnE,eAAO,MAAM,2BAA2B,MAAsC,CAAC;AAE/E,eAAO,MAAM,qBAAqB,MAAgC,CAAC;AACnE,eAAO,MAAM,2BAA2B,MAAsC,CAAC;AAE/E,eAAO,MAAM,2BAA2B,MAAgC,CAAC;AACzE,eAAO,MAAM,iCAAiC,MAAsC,CAAC;AAErF,kDAAkD;AAClD,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B,0CAA0C;AAC1C,eAAO,MAAM,wBAAwB,MAAgC,CAAC;AAEtE,+CAA+C;AAC/C,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAE/C,6DAA6D;AAC7D,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,wCAAwC;AACxC,eAAO,MAAM,2BAA2B,MAAgC,CAAC;AAEzE,8CAA8C;AAC9C,eAAO,MAAM,iCAAiC,MAAsC,CAAC;AAErF,oEAAoE;AACpE,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C,2CAA2C;AAC3C,eAAO,MAAM,mCAAmC,MAAgC,CAAC;AAEjF,iDAAiD;AACjD,eAAO,MAAM,yCAAyC,MAAsC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// WorkProject + subtype (Tales / Tunes / Television) business-rule constants.
|
|
2
|
+
/** The absolute maximum number of stakes a workProject can have. */
|
|
3
|
+
export const MAX_WORK_PROJECT_STAKE_SHARES = 1000;
|
|
4
|
+
/**
|
|
5
|
+
* Stake shares minted to the realm's founding-Work holder when a Work is
|
|
6
|
+
* created into an EXISTING public realm. Counts toward MAX_WORK_PROJECT_STAKE_SHARES.
|
|
7
|
+
*/
|
|
8
|
+
export const EXISTING_REALM_STAKE_SHARES = 75;
|
|
9
|
+
// --- WorkProject Titles & Descriptions ---
|
|
10
|
+
/** Maximum length for a workProject title. */
|
|
11
|
+
export const MAX_WORK_PROJECT_TITLE_LENGTH = 150;
|
|
12
|
+
/** Maximum length for a workProject description. */
|
|
13
|
+
export const MAX_WORK_PROJECT_DESCRIPTION_LENGTH = 300;
|
|
14
|
+
/** Maximum number of files attached to a workProject. */
|
|
15
|
+
export const MAX_WORK_ASSETS = 5;
|
|
16
|
+
/** Maximum file size for workProject file attachments, in bytes (5MB). */
|
|
17
|
+
export const MAX_WORK_ASSET_FILE_SIZE = 5 * 1024 * 1024;
|
|
18
|
+
/** Allowed characters in titles: letters, numbers, spaces. */
|
|
19
|
+
export const TITLE_PATTERN = /^[a-zA-Z0-9 ]+$/;
|
|
20
|
+
/** Maximum number of auditions a single workProject can have open at once. */
|
|
21
|
+
export const MAX_WORK_PROJECT_AUDITIONS = 3;
|
|
22
|
+
// --- WorkProject Subtypes (Tales / Tunes / Television) ---
|
|
23
|
+
// Length aliases — kept as named exports so call sites read clearly.
|
|
24
|
+
export const MAX_TALE_TITLE_LENGTH = MAX_WORK_PROJECT_TITLE_LENGTH;
|
|
25
|
+
export const MAX_TALE_DESCRIPTION_LENGTH = MAX_WORK_PROJECT_DESCRIPTION_LENGTH;
|
|
26
|
+
export const MAX_TUNE_TITLE_LENGTH = MAX_WORK_PROJECT_TITLE_LENGTH;
|
|
27
|
+
export const MAX_TUNE_DESCRIPTION_LENGTH = MAX_WORK_PROJECT_DESCRIPTION_LENGTH;
|
|
28
|
+
export const MAX_TELEVISION_TITLE_LENGTH = MAX_WORK_PROJECT_TITLE_LENGTH;
|
|
29
|
+
export const MAX_TELEVISION_DESCRIPTION_LENGTH = MAX_WORK_PROJECT_DESCRIPTION_LENGTH;
|
|
30
|
+
/** Maximum number of chapters a Tale can have. */
|
|
31
|
+
export const MAX_CHAPTERS = 10;
|
|
32
|
+
/** Maximum length for a chapter title. */
|
|
33
|
+
export const MAX_CHAPTER_TITLE_LENGTH = MAX_WORK_PROJECT_TITLE_LENGTH;
|
|
34
|
+
/** Maximum length for chapter body content. */
|
|
35
|
+
export const MAX_CHAPTER_CONTENT_LENGTH = 2500;
|
|
36
|
+
/** Maximum number of tracks a Tunes workProject can have. */
|
|
37
|
+
export const MAX_TUNE_TRACKS = 10;
|
|
38
|
+
/** Maximum length for a track title. */
|
|
39
|
+
export const MAX_TUNE_TRACK_TITLE_LENGTH = MAX_WORK_PROJECT_TITLE_LENGTH;
|
|
40
|
+
/** Maximum length for a track description. */
|
|
41
|
+
export const MAX_TUNE_TRACK_DESCRIPTION_LENGTH = MAX_WORK_PROJECT_DESCRIPTION_LENGTH;
|
|
42
|
+
/** Maximum number of episodes a Television workProject can have. */
|
|
43
|
+
export const MAX_TELEVISION_EPISODES = 10;
|
|
44
|
+
/** Maximum length for an episode title. */
|
|
45
|
+
export const MAX_TELEVISION_EPISODE_TITLE_LENGTH = MAX_WORK_PROJECT_TITLE_LENGTH;
|
|
46
|
+
/** Maximum length for an episode description. */
|
|
47
|
+
export const MAX_TELEVISION_EPISODE_DESCRIPTION_LENGTH = MAX_WORK_PROJECT_DESCRIPTION_LENGTH;
|
|
48
|
+
//# sourceMappingURL=business-work-project.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-work-project.js","sourceRoot":"","sources":["../../src/constants/business-work-project.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAE9E,oEAAoE;AACpE,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAC;AAElD;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,EAAE,CAAC;AAE9C,4CAA4C;AAE5C,8CAA8C;AAC9C,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,CAAC;AAEjD,oDAAoD;AACpD,MAAM,CAAC,MAAM,mCAAmC,GAAG,GAAG,CAAC;AAEvD,yDAAyD;AACzD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC;AAEjC,0EAA0E;AAC1E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAExD,8DAA8D;AAC9D,MAAM,CAAC,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAE/C,8EAA8E;AAC9E,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAE5C,4DAA4D;AAC5D,qEAAqE;AAErE,MAAM,CAAC,MAAM,qBAAqB,GAAG,6BAA6B,CAAC;AACnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,mCAAmC,CAAC;AAE/E,MAAM,CAAC,MAAM,qBAAqB,GAAG,6BAA6B,CAAC;AACnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,mCAAmC,CAAC;AAE/E,MAAM,CAAC,MAAM,2BAA2B,GAAG,6BAA6B,CAAC;AACzE,MAAM,CAAC,MAAM,iCAAiC,GAAG,mCAAmC,CAAC;AAErF,kDAAkD;AAClD,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC;AAE/B,0CAA0C;AAC1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,6BAA6B,CAAC;AAEtE,+CAA+C;AAC/C,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,CAAC;AAE/C,6DAA6D;AAC7D,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAC;AAElC,wCAAwC;AACxC,MAAM,CAAC,MAAM,2BAA2B,GAAG,6BAA6B,CAAC;AAEzE,8CAA8C;AAC9C,MAAM,CAAC,MAAM,iCAAiC,GAAG,mCAAmC,CAAC;AAErF,oEAAoE;AACpE,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,2CAA2C;AAC3C,MAAM,CAAC,MAAM,mCAAmC,GAAG,6BAA6B,CAAC;AAEjF,iDAAiD;AACjD,MAAM,CAAC,MAAM,yCAAyC,GAAG,mCAAmC,CAAC"}
|
|
@@ -1,156 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
export declare const EXISTING_REALM_STAKE_SHARES = 75;
|
|
8
|
-
/** The maximum character length for a SquareStreetz post created on behalf of a workProject. */
|
|
9
|
-
export declare const MAX_SQUARE_STREETZ_DESCRIPTION_LENGTH = 150;
|
|
10
|
-
export declare const TASK_PRIORITY: {
|
|
11
|
-
readonly CRITICAL: 4;
|
|
12
|
-
readonly HIGH: 3;
|
|
13
|
-
readonly NORMAL: 2;
|
|
14
|
-
readonly LOW: 1;
|
|
15
|
-
};
|
|
16
|
-
export type TaskPriorityLevel = (typeof TASK_PRIORITY)[keyof typeof TASK_PRIORITY];
|
|
17
|
-
export declare const TASK_PRIORITY_LABELS: {
|
|
18
|
-
readonly 4: "CRITICAL";
|
|
19
|
-
readonly 3: "HIGH";
|
|
20
|
-
readonly 2: "NORMAL";
|
|
21
|
-
readonly 1: "LOW";
|
|
22
|
-
};
|
|
23
|
-
/** The length of the generated ID for short links. */
|
|
24
|
-
export declare const SHORT_LINK_LENGTH = 6;
|
|
25
|
-
/** The maximum number of attempts to generate a unique short link ID before failing. */
|
|
26
|
-
export declare const SHORT_LINK_MAX_ATTEMPTS = 5;
|
|
27
|
-
/** Character set for short link IDs. Excludes ambiguous characters (0, O, l, 1, I). */
|
|
28
|
-
export declare const SHORT_LINK_CHARS = "ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz23456789";
|
|
29
|
-
/** Maximum operations in a single Firestore write batch. */
|
|
30
|
-
export declare const FIRESTORE_BATCH_LIMIT = 500;
|
|
31
|
-
/** Minimum length for a user display name (inclusive). */
|
|
32
|
-
export declare const USERNAME_MIN_LENGTH = 3;
|
|
33
|
-
/** Maximum length for a user display name (inclusive). */
|
|
34
|
-
export declare const USERNAME_MAX_LENGTH = 20;
|
|
35
|
-
/** Allowed characters in a user display name: letters and numbers only. */
|
|
36
|
-
export declare const USERNAME_REGEX: RegExp;
|
|
37
|
-
/** Maximum number of craft-skills a user can upload to their profile. */
|
|
38
|
-
export declare const CRAFT_SKILL_LIMIT = 8;
|
|
39
|
-
/** Maximum number of tags allowed per craftSkill. */
|
|
40
|
-
export declare const MAX_CRAFT_SKILL_TAGS = 5;
|
|
41
|
-
/** Maximum number of recent mentions kept in the user's mention-history hook. */
|
|
42
|
-
export declare const MAX_HISTORY_ITEMS = 10;
|
|
43
|
-
/** Maximum number of results returned by the search hook. */
|
|
44
|
-
export declare const SEARCH_RESULT_LIMIT = 6;
|
|
45
|
-
/** Maximum length for a workProject title. */
|
|
46
|
-
export declare const MAX_WORK_PROJECT_TITLE_LENGTH = 150;
|
|
47
|
-
/** Maximum length for a workProject description. */
|
|
48
|
-
export declare const MAX_WORK_PROJECT_DESCRIPTION_LENGTH = 300;
|
|
49
|
-
/** Maximum number of files attached to a workProject. */
|
|
50
|
-
export declare const MAX_WORK_ASSETS = 5;
|
|
51
|
-
/** Maximum file size for workProject file attachments, in bytes (5MB). */
|
|
52
|
-
export declare const MAX_WORK_ASSET_FILE_SIZE: number;
|
|
53
|
-
/** Allowed characters in titles: letters, numbers, spaces. */
|
|
54
|
-
export declare const TITLE_PATTERN: RegExp;
|
|
55
|
-
/** Maximum number of auditions a single workProject can have open at once. */
|
|
56
|
-
export declare const MAX_WORK_PROJECT_AUDITIONS = 3;
|
|
57
|
-
export declare const MAX_TALE_TITLE_LENGTH = 150;
|
|
58
|
-
export declare const MAX_TALE_DESCRIPTION_LENGTH = 300;
|
|
59
|
-
export declare const MAX_TUNE_TITLE_LENGTH = 150;
|
|
60
|
-
export declare const MAX_TUNE_DESCRIPTION_LENGTH = 300;
|
|
61
|
-
export declare const MAX_TELEVISION_TITLE_LENGTH = 150;
|
|
62
|
-
export declare const MAX_TELEVISION_DESCRIPTION_LENGTH = 300;
|
|
63
|
-
/** Maximum number of chapters a Tale can have. */
|
|
64
|
-
export declare const MAX_CHAPTERS = 10;
|
|
65
|
-
/** Maximum length for a chapter title. */
|
|
66
|
-
export declare const MAX_CHAPTER_TITLE_LENGTH = 150;
|
|
67
|
-
/** Maximum length for chapter body content. */
|
|
68
|
-
export declare const MAX_CHAPTER_CONTENT_LENGTH = 2500;
|
|
69
|
-
/** Maximum number of tracks a Tunes workProject can have. */
|
|
70
|
-
export declare const MAX_TUNE_TRACKS = 10;
|
|
71
|
-
/** Maximum length for a track title. */
|
|
72
|
-
export declare const MAX_TUNE_TRACK_TITLE_LENGTH = 150;
|
|
73
|
-
/** Maximum length for a track description. */
|
|
74
|
-
export declare const MAX_TUNE_TRACK_DESCRIPTION_LENGTH = 300;
|
|
75
|
-
/** Maximum number of episodes a Television workProject can have. */
|
|
76
|
-
export declare const MAX_TELEVISION_EPISODES = 10;
|
|
77
|
-
/** Maximum length for an episode title. */
|
|
78
|
-
export declare const MAX_TELEVISION_EPISODE_TITLE_LENGTH = 150;
|
|
79
|
-
/** Maximum length for an episode description. */
|
|
80
|
-
export declare const MAX_TELEVISION_EPISODE_DESCRIPTION_LENGTH = 300;
|
|
81
|
-
/** Maximum number of open commissions a workProject can have. */
|
|
82
|
-
export declare const MAX_COMMISSION_LISTINGS = 5;
|
|
83
|
-
/** Maximum number of proposal artisans saved to a commission. */
|
|
84
|
-
export declare const MAX_SAVED_PROPOSAL_ARTISANS = 5;
|
|
85
|
-
/** Maximum length for a commission title. */
|
|
86
|
-
export declare const MAX_COMMISSION_TITLE_LENGTH = 150;
|
|
87
|
-
/** Maximum length for a commission description / cover letter. */
|
|
88
|
-
export declare const MAX_COMMISSION_DESCRIPTION_LENGTH = 400;
|
|
89
|
-
/** Maximum length for an audition title. */
|
|
90
|
-
export declare const MAX_AUDITION_TITLE_LENGTH = 150;
|
|
91
|
-
/** Maximum length for an audition description. */
|
|
92
|
-
export declare const MAX_AUDITION_DESCRIPTION_LENGTH = 1000;
|
|
93
|
-
/**
|
|
94
|
-
* Maximum sponsored-audition payout amount in whole USD accepted at the upload
|
|
95
|
-
* trust boundary. Mirrors MAX_PLEDGE_PAYMENT_AMOUNT_CENTS ($500,000) expressed
|
|
96
|
-
* in dollars — a finite ceiling that rejects absurd/garbage amounts before any
|
|
97
|
-
* downstream processing.
|
|
98
|
-
*/
|
|
99
|
-
export declare const MAX_SPONSORED_AUDITION_AMOUNT_USD = 500000;
|
|
100
|
-
/** Maximum length for a SquareStreetz post. */
|
|
101
|
-
export declare const MAX_POST_LENGTH = 500;
|
|
102
|
-
/** Maximum number of mentions allowed in a single SquareStreetz post. */
|
|
103
|
-
export declare const MAX_MENTIONS = 3;
|
|
104
|
-
/** Maximum characters of a mention's display name shown before truncation. */
|
|
105
|
-
export declare const MAX_MENTION_DISPLAY_LENGTH = 30;
|
|
106
|
-
/** Maximum length for a guild-invite message. */
|
|
107
|
-
export declare const MAX_GUILD_INVITE_MESSAGE_LENGTH = 500;
|
|
108
|
-
/** Maximum length for a pledgePayment message. */
|
|
109
|
-
export declare const MAX_PLEDGE_PAYMENT_MESSAGE_LENGTH = 500;
|
|
110
|
-
/** Maximum length for a chat reply-to preview snippet stored on an attachment. */
|
|
111
|
-
export declare const MAX_CHAT_REPLY_PREVIEW_LENGTH = 280;
|
|
112
|
-
/** Maximum length for an admin-dispatch subject line. */
|
|
113
|
-
export declare const MAX_ADMIN_DISPATCH_SUBJECT_LENGTH = 100;
|
|
114
|
-
/** Maximum length for the initial body text of an admin dispatch. */
|
|
115
|
-
export declare const MAX_ADMIN_DISPATCH_INITIAL_TEXT_LENGTH = 1000;
|
|
116
|
-
/** Maximum length for a content-violation appeal message. */
|
|
117
|
-
export declare const MAX_APPEAL_MESSAGE_LENGTH = 1000;
|
|
118
|
-
/** Maximum length for a feedback suggestion. */
|
|
119
|
-
export declare const MAX_FEEDBACK_SUGGESTION_LENGTH = 100;
|
|
120
|
-
/** Maximum number of distinct submitters tracked per feedback suggestion. */
|
|
121
|
-
export declare const MAX_FEEDBACK_SUBMITTERS = 100;
|
|
122
|
-
/**
|
|
123
|
-
* Canonical list of feedback types accepted by `submitFeedback`. Used both
|
|
124
|
-
* for runtime validation in the schema (`SubmitFeedbackInputSchema`) and
|
|
125
|
-
* for type-safe consumer props on the frontend `<FeedbackSubmission />`
|
|
126
|
-
* component. Adding a new type here is the single source of truth — no
|
|
127
|
-
* mirroring in callers required.
|
|
128
|
-
*/
|
|
129
|
-
export declare const FEEDBACK_TYPES: readonly ["tradeProfessionSuggestions", "craftSkillTagSuggestions", "talesWorkGenreSuggestions", "tunesWorkGenreSuggestions", "televisionWorkGenreSuggestions"];
|
|
130
|
-
/** Union of canonical feedback types. */
|
|
131
|
-
export type FeedbackType = (typeof FEEDBACK_TYPES)[number];
|
|
132
|
-
/** Maximum number of items submitted in a single hallLibrary-review submission. */
|
|
133
|
-
export declare const MAX_HALL_LIBRARY_SUBMIT_BATCH = 50;
|
|
134
|
-
/** Admin task lifecycle statuses. */
|
|
135
|
-
export declare const ADMIN_TASK_STATUS: {
|
|
136
|
-
readonly PENDING: "pending";
|
|
137
|
-
readonly CHECKED_OUT: "checkedOut";
|
|
138
|
-
readonly WORK_LATER: "workLater";
|
|
139
|
-
readonly COMPLETED: "completed";
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Minimum pledgePayment amount accepted by the Stripe checkout flow, in cents
|
|
143
|
-
* (USD). 50¢ is Stripe's hard floor for a card charge. Promoted out of the Zod
|
|
144
|
-
* schema so the webhook can re-assert it server-side against the Stripe-confirmed
|
|
145
|
-
* amount, independent of the client input bound.
|
|
146
|
-
*/
|
|
147
|
-
export declare const MIN_PLEDGE_PAYMENT_AMOUNT_CENTS = 50;
|
|
148
|
-
/**
|
|
149
|
-
* Maximum pledgePayment amount accepted by the Stripe checkout flow, in cents
|
|
150
|
-
* (USD). $500,000.00. Well below Stripe's hard per-charge ceiling, but
|
|
151
|
-
* high enough that legitimate large gifts pass without friction. Anything
|
|
152
|
-
* above this is rejected by the schema before a Stripe session is created
|
|
153
|
-
* or any rate-limit / audit-event side effects are incurred.
|
|
154
|
-
*/
|
|
155
|
-
export declare const MAX_PLEDGE_PAYMENT_AMOUNT_CENTS = 50000000;
|
|
1
|
+
export * from "./business-work-project.js";
|
|
2
|
+
export * from "./business-content.js";
|
|
3
|
+
export * from "./business-admin.js";
|
|
4
|
+
export * from "./business-user.js";
|
|
5
|
+
export * from "./business-platform.js";
|
|
156
6
|
//# sourceMappingURL=business.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business.d.ts","sourceRoot":"","sources":["../../src/constants/business.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"business.d.ts","sourceRoot":"","sources":["../../src/constants/business.ts"],"names":[],"mappings":"AAGA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC"}
|