@m5kdev/commons 0.1.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/.cursor/rules/commons.mdc +27 -0
- package/.turbo/turbo-build.log +5 -0
- package/.turbo/turbo-check-types.log +5 -0
- package/.turbo/turbo-lint$colon$fix.log +6 -0
- package/.turbo/turbo-lint.log +61 -0
- package/LICENSE +621 -0
- package/dist/src/modules/ai/ai.constants.d.ts +55 -0
- package/dist/src/modules/ai/ai.constants.d.ts.map +1 -0
- package/dist/src/modules/ai/ai.constants.js +287 -0
- package/dist/src/modules/ai/ai.utils.d.ts +2 -0
- package/dist/src/modules/ai/ai.utils.d.ts.map +1 -0
- package/dist/src/modules/ai/ai.utils.js +10 -0
- package/dist/src/modules/auth/auth.schema.d.ts +21 -0
- package/dist/src/modules/auth/auth.schema.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.schema.js +22 -0
- package/dist/src/modules/base/base.schema.d.ts +26 -0
- package/dist/src/modules/base/base.schema.d.ts.map +1 -0
- package/dist/src/modules/base/base.schema.js +18 -0
- package/dist/src/modules/billing/billing.schema.d.ts +23 -0
- package/dist/src/modules/billing/billing.schema.d.ts.map +1 -0
- package/dist/src/modules/billing/billing.schema.js +24 -0
- package/dist/src/modules/billing/billing.types.d.ts +18 -0
- package/dist/src/modules/billing/billing.types.d.ts.map +1 -0
- package/dist/src/modules/billing/billing.types.js +2 -0
- package/dist/src/modules/billing/billing.utils.d.ts +6 -0
- package/dist/src/modules/billing/billing.utils.d.ts.map +1 -0
- package/dist/src/modules/billing/billing.utils.js +12 -0
- package/dist/src/modules/file/file.constants.d.ts +5 -0
- package/dist/src/modules/file/file.constants.d.ts.map +1 -0
- package/dist/src/modules/file/file.constants.js +17 -0
- package/dist/src/modules/recurrence/recurrence.schema.d.ts +99 -0
- package/dist/src/modules/recurrence/recurrence.schema.d.ts.map +1 -0
- package/dist/src/modules/recurrence/recurrence.schema.js +65 -0
- package/dist/src/modules/schemas/query.schema.d.ts +111 -0
- package/dist/src/modules/schemas/query.schema.d.ts.map +1 -0
- package/dist/src/modules/schemas/query.schema.js +38 -0
- package/dist/src/modules/table/filter.types.d.ts +13 -0
- package/dist/src/modules/table/filter.types.d.ts.map +1 -0
- package/dist/src/modules/table/filter.types.js +2 -0
- package/dist/src/modules/tag/tag.schema.d.ts +112 -0
- package/dist/src/modules/tag/tag.schema.d.ts.map +1 -0
- package/dist/src/modules/tag/tag.schema.js +54 -0
- package/dist/src/modules/workflow/workflow.constants.d.ts +3 -0
- package/dist/src/modules/workflow/workflow.constants.d.ts.map +1 -0
- package/dist/src/modules/workflow/workflow.constants.js +4 -0
- package/dist/src/modules/workflow/workflow.schema.d.ts +93 -0
- package/dist/src/modules/workflow/workflow.schema.d.ts.map +1 -0
- package/dist/src/modules/workflow/workflow.schema.js +37 -0
- package/dist/src/utils/json.d.ts +3 -0
- package/dist/src/utils/json.d.ts.map +1 -0
- package/dist/src/utils/json.js +11 -0
- package/dist/src/utils/timezones.d.ts +15 -0
- package/dist/src/utils/timezones.d.ts.map +1 -0
- package/dist/src/utils/timezones.js +4362 -0
- package/dist/src/utils/trpc.d.ts +5 -0
- package/dist/src/utils/trpc.d.ts.map +1 -0
- package/dist/src/utils/trpc.js +8 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +75 -0
- package/src/modules/ai/ai.constants.ts +305 -0
- package/src/modules/ai/ai.utils.ts +14 -0
- package/src/modules/auth/auth.schema.ts +22 -0
- package/src/modules/base/base.schema.ts +27 -0
- package/src/modules/billing/billing.schema.ts +24 -0
- package/src/modules/billing/billing.types.ts +18 -0
- package/src/modules/billing/billing.utils.ts +13 -0
- package/src/modules/file/file.constants.ts +14 -0
- package/src/modules/recurrence/recurrence.schema.ts +78 -0
- package/src/modules/schemas/query.schema.ts +44 -0
- package/src/modules/table/filter.types.ts +39 -0
- package/src/modules/tag/tag.schema.ts +68 -0
- package/src/modules/workflow/workflow.constants.ts +2 -0
- package/src/modules/workflow/workflow.schema.ts +48 -0
- package/src/utils/json.ts +9 -0
- package/src/utils/timezones.ts +4380 -0
- package/src/utils/trpc.ts +6 -0
- package/tsconfig.json +10 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.constants.d.ts","sourceRoot":"","sources":["../../../../src/modules/ai/ai.constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,UAAU,sBAAsB,CAAC;AAC9C,eAAO,MAAM,OAAO,mBAAmB,CAAC;AACxC,eAAO,MAAM,OAAO,mBAAmB,CAAC;AACxC,eAAO,MAAM,cAAc,kCAAkC,CAAC;AAC9D,eAAO,MAAM,cAAc,0BAA0B,CAAC;AACtD,eAAO,MAAM,YAAY,gCAAgC,CAAC;AAC1D,eAAO,MAAM,cAAc,kCAAkC,CAAC;AAC9D,eAAO,MAAM,MAAM,gBAAgB,CAAC;AACpC,eAAO,MAAM,eAAe,8BAA8B,CAAC;AAC3D,eAAO,MAAM,iBAAiB,gCAAgC,CAAC;AAC/D,eAAO,MAAM,eAAe,8BAA8B,CAAC;AAC3D,eAAO,MAAM,iBAAiB,gCAAgC,CAAC;AAC/D,eAAO,MAAM,eAAe,8BAA8B,CAAC;AAC3D,eAAO,MAAM,UAAU,uBAAuB,CAAC;AAC/C,eAAO,MAAM,SAAS,mBAAmB,CAAC;AAC1C,eAAO,MAAM,EAAE,cAAc,CAAC;AAG9B,eAAO,MAAM,UAAU,sBAAsB,CAAC;AAC9C,eAAO,MAAM,gBAAgB,4BAA4B,CAAC;AAC1D,eAAO,MAAM,WAAW,qBAAqB,CAAC;AAC9C,eAAO,MAAM,WAAW,qBAAqB,CAAC;AAC9C,eAAO,MAAM,gBAAgB,gCAAgC,CAAC;AAC9D,eAAO,MAAM,OAAO,4BAA4B,CAAC;AACjD,eAAO,MAAM,SAAS,yBAAyB,CAAC;AAChD,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,QAAQ,kBAAkB,CAAC;AACxC,eAAO,MAAM,OAAO,iBAAiB,CAAC;AACtC,eAAO,MAAM,aAAa,gCAAgC,CAAC;AAC3D,eAAO,MAAM,WAAW,8BAA8B,CAAC;AACvD,eAAO,MAAM,sBAAsB,sCAAsC,CAAC;AAC1E,eAAO,MAAM,kBAAkB,iCAAiC,CAAC;AAGjE,eAAO,MAAM,aAAa,uBAAuB,CAAC;AAClD,eAAO,MAAM,UAAU,sBAAsB,CAAC;AAC9C,eAAO,MAAM,qBAAqB,iCAAiC,CAAC;AAGpE,eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAE7E,eAAO,MAAM,mBAAmB,4CAA2C,CAAC;AAE5E,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAGpE,eAAO,MAAM,WAAW,kCAAiB,CAAC;AAC1C,eAAO,MAAM,WAAW,yBAAY,CAAC;AACrC,eAAO,MAAM,aAAa,kCAAiB,CAAC;AAC5C,eAAO,MAAM,aAAa,yBAAY,CAAC;AACvC,eAAO,MAAM,sBAAsB,gCAAoB,CAAC;AACxD,eAAO,MAAM,sBAAsB,sBAAa,CAAC;AACjD,eAAO,MAAM,cAAc,gCAAoB,CAAC;AAChD,eAAO,MAAM,cAAc,sBAAa,CAAC;AAEzC,eAAO,MAAM,SAAS,qtBA8BZ,CAAC;AAEX,eAAO,MAAM,kBAAkB,EAAE,eA4MhC,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AACjD,MAAM,MAAM,eAAe,GAAG,MAAM,CAClC,OAAO,EACP;IACE,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CACF,CAAC"}
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AI_MODELS_REGISTRY = exports.AI_MODELS = exports.TOOL_CALL_FAST = exports.TOOL_CALL_BEST = exports.STRUCTURED_OUTPUT_FAST = exports.STRUCTURED_OUTPUT_BEST = exports.RESONING_FAST = exports.RESONING_BEST = exports.SCORER_FAST = exports.SCORER_BEST = exports.AI_EMBEDDING_MODELS = exports.OPENAI_TEXT_EMBEDDING_3_SMALL = exports.GEMINI_2_5_FLASH_LITE = exports.GPT_5_NANO = exports.QWEN3_30B_A3B = exports.MISTRAL_3_1_MEDIUM = exports.LLAMA_3_3_70B_INSTRUCT = exports.DEEPSEEK_R1 = exports.DEEPSEEK_V3_1 = exports.GLM_4_6 = exports.GLM_4_5V = exports.CLAUDE_SONNET_3_HAIKU = exports.KIMI_K2_5 = exports.KIMI_K2 = exports.KIMI_K2_THINKING = exports.GROK_4_FAST = exports.GROK_3_MINI = exports.GEMINI_2_5_FLASH = exports.GPT_5_MINI = exports.O3 = exports.QWEN3_MAX = exports.MINIMAX_M2 = exports.CLAUDE_OPUS_4_6 = exports.CLAUDE_SONNET_4_6 = exports.CLAUDE_OPUS_4_5 = exports.CLAUDE_SONNET_4_5 = exports.CLAUDE_SONNET_4 = exports.GROK_4 = exports.GEMINI_3_FLASH = exports.GEMINI_3_PRO = exports.GEMINI_2_5_PRO = exports.GEMINI_3_1_PRO = exports.GPT_5_2 = exports.GPT_5_1 = exports.GPT_5_CHAT = void 0;
|
|
4
|
+
// Models > $1/M tokens
|
|
5
|
+
exports.GPT_5_CHAT = "openai/gpt-5-chat";
|
|
6
|
+
exports.GPT_5_1 = "openai/gpt-5.1";
|
|
7
|
+
exports.GPT_5_2 = "openai/gpt-5.2";
|
|
8
|
+
exports.GEMINI_3_1_PRO = "google/gemini-3.1-pro-preview";
|
|
9
|
+
exports.GEMINI_2_5_PRO = "google/gemini-2.5-pro";
|
|
10
|
+
exports.GEMINI_3_PRO = "google/gemini-3-pro-preview";
|
|
11
|
+
exports.GEMINI_3_FLASH = "google/gemini-3-flash-preview";
|
|
12
|
+
exports.GROK_4 = "x-ai/grok-4";
|
|
13
|
+
exports.CLAUDE_SONNET_4 = "anthropic/claude-sonnet-4";
|
|
14
|
+
exports.CLAUDE_SONNET_4_5 = "anthropic/claude-sonnet-4.5";
|
|
15
|
+
exports.CLAUDE_OPUS_4_5 = "anthropic/claude-opus-4.5";
|
|
16
|
+
exports.CLAUDE_SONNET_4_6 = "anthropic/claude-sonnet-4.6";
|
|
17
|
+
exports.CLAUDE_OPUS_4_6 = "anthropic/claude-opus-4.6";
|
|
18
|
+
exports.MINIMAX_M2 = "minimax/minimax-m2";
|
|
19
|
+
exports.QWEN3_MAX = "qwen/qwen3-max";
|
|
20
|
+
exports.O3 = "openai/o3";
|
|
21
|
+
// Models < $1/M tokens
|
|
22
|
+
exports.GPT_5_MINI = "openai/gpt-5-mini";
|
|
23
|
+
exports.GEMINI_2_5_FLASH = "google/gemini-2.5-flash";
|
|
24
|
+
exports.GROK_3_MINI = "x-ai/grok-3-mini";
|
|
25
|
+
exports.GROK_4_FAST = "x-ai/grok-4-fast";
|
|
26
|
+
exports.KIMI_K2_THINKING = "moonshotai/kimi-k2-thinking";
|
|
27
|
+
exports.KIMI_K2 = "moonshotai/kimi-k2-0905";
|
|
28
|
+
exports.KIMI_K2_5 = "moonshotai/kimi-k2.5";
|
|
29
|
+
exports.CLAUDE_SONNET_3_HAIKU = "anthropic/claude-3-haiku";
|
|
30
|
+
exports.GLM_4_5V = "z-ai/glm-4.5v";
|
|
31
|
+
exports.GLM_4_6 = "z-ai/glm-4.6";
|
|
32
|
+
exports.DEEPSEEK_V3_1 = "deepseek/deepseek-chat-v3.1";
|
|
33
|
+
exports.DEEPSEEK_R1 = "deepseek/deepseek-r1-0528";
|
|
34
|
+
exports.LLAMA_3_3_70B_INSTRUCT = "meta-llama/llama-3.3-70b-instruct";
|
|
35
|
+
exports.MISTRAL_3_1_MEDIUM = "mistralai/mistral-medium-3.1";
|
|
36
|
+
// Models < $0.1/M tokens
|
|
37
|
+
exports.QWEN3_30B_A3B = "qwen/qwen3-30b-a3b";
|
|
38
|
+
exports.GPT_5_NANO = "openai/gpt-5-nano";
|
|
39
|
+
exports.GEMINI_2_5_FLASH_LITE = "google/gemini-2.5-flash-lite";
|
|
40
|
+
// Embedding Models
|
|
41
|
+
exports.OPENAI_TEXT_EMBEDDING_3_SMALL = "openai/text-embedding-3-small";
|
|
42
|
+
exports.AI_EMBEDDING_MODELS = [exports.OPENAI_TEXT_EMBEDDING_3_SMALL];
|
|
43
|
+
// Models by utility
|
|
44
|
+
exports.SCORER_BEST = exports.GEMINI_3_FLASH;
|
|
45
|
+
exports.SCORER_FAST = exports.KIMI_K2_5;
|
|
46
|
+
exports.RESONING_BEST = exports.GEMINI_3_1_PRO;
|
|
47
|
+
exports.RESONING_FAST = exports.KIMI_K2_5;
|
|
48
|
+
exports.STRUCTURED_OUTPUT_BEST = exports.CLAUDE_SONNET_4_5;
|
|
49
|
+
exports.STRUCTURED_OUTPUT_FAST = exports.GPT_5_MINI;
|
|
50
|
+
exports.TOOL_CALL_BEST = exports.CLAUDE_SONNET_4_5;
|
|
51
|
+
exports.TOOL_CALL_FAST = exports.GPT_5_MINI;
|
|
52
|
+
exports.AI_MODELS = [
|
|
53
|
+
exports.LLAMA_3_3_70B_INSTRUCT,
|
|
54
|
+
exports.QWEN3_30B_A3B,
|
|
55
|
+
exports.GEMINI_2_5_PRO,
|
|
56
|
+
exports.GEMINI_3_PRO,
|
|
57
|
+
exports.GEMINI_3_FLASH,
|
|
58
|
+
exports.DEEPSEEK_R1,
|
|
59
|
+
exports.O3,
|
|
60
|
+
exports.GPT_5_1,
|
|
61
|
+
exports.GPT_5_2,
|
|
62
|
+
exports.GPT_5_CHAT,
|
|
63
|
+
exports.GROK_4,
|
|
64
|
+
exports.CLAUDE_SONNET_4,
|
|
65
|
+
exports.CLAUDE_SONNET_4_5,
|
|
66
|
+
exports.CLAUDE_OPUS_4_5,
|
|
67
|
+
exports.GPT_5_MINI,
|
|
68
|
+
exports.GLM_4_5V,
|
|
69
|
+
exports.MISTRAL_3_1_MEDIUM,
|
|
70
|
+
exports.GEMINI_2_5_FLASH,
|
|
71
|
+
exports.GROK_3_MINI,
|
|
72
|
+
exports.CLAUDE_SONNET_3_HAIKU,
|
|
73
|
+
exports.GPT_5_NANO,
|
|
74
|
+
exports.GEMINI_2_5_FLASH_LITE,
|
|
75
|
+
exports.GROK_4_FAST,
|
|
76
|
+
exports.MINIMAX_M2,
|
|
77
|
+
exports.KIMI_K2,
|
|
78
|
+
exports.KIMI_K2_THINKING,
|
|
79
|
+
exports.DEEPSEEK_V3_1,
|
|
80
|
+
exports.GLM_4_6,
|
|
81
|
+
exports.QWEN3_MAX,
|
|
82
|
+
];
|
|
83
|
+
exports.AI_MODELS_REGISTRY = {
|
|
84
|
+
[exports.O3]: {
|
|
85
|
+
name: "O3",
|
|
86
|
+
provider: "openai",
|
|
87
|
+
icon: "ti-brand-openai",
|
|
88
|
+
tier: "pro",
|
|
89
|
+
order: 1,
|
|
90
|
+
},
|
|
91
|
+
[exports.MISTRAL_3_1_MEDIUM]: {
|
|
92
|
+
name: "Mistral 3.1 Medium",
|
|
93
|
+
provider: "mistralai",
|
|
94
|
+
icon: "ti-ai",
|
|
95
|
+
tier: "pro",
|
|
96
|
+
order: 1,
|
|
97
|
+
},
|
|
98
|
+
[exports.DEEPSEEK_R1]: {
|
|
99
|
+
name: "DeepSeek R1",
|
|
100
|
+
provider: "deepseek",
|
|
101
|
+
icon: "ti-ai",
|
|
102
|
+
tier: "pro",
|
|
103
|
+
order: 1,
|
|
104
|
+
},
|
|
105
|
+
[exports.QWEN3_30B_A3B]: {
|
|
106
|
+
name: "Qwen3 30B A3B",
|
|
107
|
+
provider: "qwen",
|
|
108
|
+
icon: "ti-ai",
|
|
109
|
+
tier: "pro",
|
|
110
|
+
order: 1,
|
|
111
|
+
},
|
|
112
|
+
[exports.LLAMA_3_3_70B_INSTRUCT]: {
|
|
113
|
+
name: "LLama 3.3 70B",
|
|
114
|
+
provider: "meta-llama",
|
|
115
|
+
icon: "ti-brand-meta",
|
|
116
|
+
tier: "pro",
|
|
117
|
+
order: 1,
|
|
118
|
+
},
|
|
119
|
+
[exports.GLM_4_5V]: {
|
|
120
|
+
name: "GLM 4.5V",
|
|
121
|
+
provider: "z-ai",
|
|
122
|
+
icon: "ti-ai",
|
|
123
|
+
tier: "pro",
|
|
124
|
+
order: 1,
|
|
125
|
+
},
|
|
126
|
+
[exports.GLM_4_6]: {
|
|
127
|
+
name: "GLM 4.6",
|
|
128
|
+
provider: "z-ai",
|
|
129
|
+
icon: "ti-ai",
|
|
130
|
+
tier: "pro",
|
|
131
|
+
order: 1,
|
|
132
|
+
},
|
|
133
|
+
[exports.QWEN3_MAX]: {
|
|
134
|
+
name: "Qwen3 Max",
|
|
135
|
+
provider: "qwen",
|
|
136
|
+
icon: "ti-ai",
|
|
137
|
+
tier: "pro",
|
|
138
|
+
order: 1,
|
|
139
|
+
},
|
|
140
|
+
[exports.DEEPSEEK_V3_1]: {
|
|
141
|
+
name: "DeepSeek V3.1",
|
|
142
|
+
provider: "deepseek",
|
|
143
|
+
icon: "ti-ai",
|
|
144
|
+
tier: "pro",
|
|
145
|
+
order: 1,
|
|
146
|
+
},
|
|
147
|
+
[exports.KIMI_K2]: {
|
|
148
|
+
name: "Kimi K2",
|
|
149
|
+
provider: "moonshotai",
|
|
150
|
+
icon: "ti-ai",
|
|
151
|
+
tier: "pro",
|
|
152
|
+
order: 1,
|
|
153
|
+
},
|
|
154
|
+
[exports.KIMI_K2_THINKING]: {
|
|
155
|
+
name: "Kimi K2 Thinking",
|
|
156
|
+
provider: "moonshotai",
|
|
157
|
+
icon: "ti-ai",
|
|
158
|
+
tier: "pro",
|
|
159
|
+
order: 1,
|
|
160
|
+
},
|
|
161
|
+
[exports.CLAUDE_SONNET_4_5]: {
|
|
162
|
+
name: "Claude Sonnet 4.5",
|
|
163
|
+
provider: "anthropic",
|
|
164
|
+
icon: "ti-ai",
|
|
165
|
+
tier: "pro",
|
|
166
|
+
order: 1,
|
|
167
|
+
},
|
|
168
|
+
[exports.GPT_5_1]: {
|
|
169
|
+
name: "GPT-5.1",
|
|
170
|
+
provider: "openai",
|
|
171
|
+
icon: "ti-brand-openai",
|
|
172
|
+
tier: "pro",
|
|
173
|
+
order: 1,
|
|
174
|
+
},
|
|
175
|
+
[exports.GPT_5_2]: {
|
|
176
|
+
name: "GPT-5.2",
|
|
177
|
+
provider: "openai",
|
|
178
|
+
icon: "ti-brand-openai",
|
|
179
|
+
tier: "pro",
|
|
180
|
+
order: 1,
|
|
181
|
+
},
|
|
182
|
+
[exports.MINIMAX_M2]: {
|
|
183
|
+
name: "MiniMax M2",
|
|
184
|
+
provider: "minimax",
|
|
185
|
+
icon: "ti-ai",
|
|
186
|
+
tier: "pro",
|
|
187
|
+
order: 1,
|
|
188
|
+
},
|
|
189
|
+
[exports.GEMINI_2_5_PRO]: {
|
|
190
|
+
name: "Gemini 2.5 Pro",
|
|
191
|
+
provider: "google",
|
|
192
|
+
icon: "ti-brand-google",
|
|
193
|
+
tier: "pro",
|
|
194
|
+
order: 1,
|
|
195
|
+
},
|
|
196
|
+
[exports.GEMINI_3_PRO]: {
|
|
197
|
+
name: "Gemini 3 Pro",
|
|
198
|
+
provider: "google",
|
|
199
|
+
icon: "ti-brand-google",
|
|
200
|
+
tier: "pro",
|
|
201
|
+
order: 1,
|
|
202
|
+
},
|
|
203
|
+
[exports.GEMINI_3_FLASH]: {
|
|
204
|
+
name: "Gemini 3 Flash",
|
|
205
|
+
provider: "google",
|
|
206
|
+
icon: "ti-brand-google",
|
|
207
|
+
tier: "pro",
|
|
208
|
+
order: 1,
|
|
209
|
+
},
|
|
210
|
+
[exports.GPT_5_CHAT]: {
|
|
211
|
+
name: "GPT-5",
|
|
212
|
+
provider: "openai",
|
|
213
|
+
icon: "ti-brand-openai",
|
|
214
|
+
tier: "pro",
|
|
215
|
+
order: 2,
|
|
216
|
+
},
|
|
217
|
+
[exports.GROK_4]: {
|
|
218
|
+
name: "Grok 4",
|
|
219
|
+
provider: "x-ai",
|
|
220
|
+
icon: "ti-brand-x",
|
|
221
|
+
tier: "pro",
|
|
222
|
+
order: 3,
|
|
223
|
+
},
|
|
224
|
+
[exports.GROK_4_FAST]: {
|
|
225
|
+
name: "Grok 4 Fast",
|
|
226
|
+
provider: "x-ai",
|
|
227
|
+
icon: "ti-brand-x",
|
|
228
|
+
tier: "pro",
|
|
229
|
+
order: 4,
|
|
230
|
+
},
|
|
231
|
+
[exports.CLAUDE_SONNET_4]: {
|
|
232
|
+
name: "Claude Sonnet 4",
|
|
233
|
+
provider: "anthropic",
|
|
234
|
+
icon: "ti-ai",
|
|
235
|
+
tier: "pro",
|
|
236
|
+
order: 4,
|
|
237
|
+
},
|
|
238
|
+
[exports.CLAUDE_OPUS_4_5]: {
|
|
239
|
+
name: "Claude Opus 4.5",
|
|
240
|
+
provider: "anthropic",
|
|
241
|
+
icon: "ti-ai",
|
|
242
|
+
tier: "pro",
|
|
243
|
+
order: 1,
|
|
244
|
+
},
|
|
245
|
+
[exports.GPT_5_MINI]: {
|
|
246
|
+
name: "GPT-5 Mini",
|
|
247
|
+
provider: "openai",
|
|
248
|
+
icon: "ti-brand-openai",
|
|
249
|
+
tier: "standard",
|
|
250
|
+
order: 5,
|
|
251
|
+
},
|
|
252
|
+
[exports.GEMINI_2_5_FLASH]: {
|
|
253
|
+
name: "Gemini 2.5 Flash",
|
|
254
|
+
provider: "google",
|
|
255
|
+
icon: "ti-brand-google",
|
|
256
|
+
tier: "standard",
|
|
257
|
+
order: 6,
|
|
258
|
+
},
|
|
259
|
+
[exports.GROK_3_MINI]: {
|
|
260
|
+
name: "Grok 3 Mini",
|
|
261
|
+
provider: "x-ai",
|
|
262
|
+
icon: "ti-brand-x",
|
|
263
|
+
tier: "standard",
|
|
264
|
+
order: 7,
|
|
265
|
+
},
|
|
266
|
+
[exports.CLAUDE_SONNET_3_HAIKU]: {
|
|
267
|
+
name: "Claude Sonnet 3 Haiku",
|
|
268
|
+
provider: "anthropic",
|
|
269
|
+
icon: "ti-brand-anthropic",
|
|
270
|
+
tier: "standard",
|
|
271
|
+
order: 8,
|
|
272
|
+
},
|
|
273
|
+
[exports.GPT_5_NANO]: {
|
|
274
|
+
name: "GPT-5 Nano",
|
|
275
|
+
provider: "openai",
|
|
276
|
+
icon: "ti-brand-openai",
|
|
277
|
+
tier: "fast",
|
|
278
|
+
order: 9,
|
|
279
|
+
},
|
|
280
|
+
[exports.GEMINI_2_5_FLASH_LITE]: {
|
|
281
|
+
name: "Gemini 2.5 Flash Lite",
|
|
282
|
+
provider: "google",
|
|
283
|
+
icon: "ti-brand-google",
|
|
284
|
+
tier: "fast",
|
|
285
|
+
order: 10,
|
|
286
|
+
},
|
|
287
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.utils.d.ts","sourceRoot":"","sources":["../../../../src/modules/ai/ai.utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChE,KAAK,EAAE,SAAS,CAAC,EAAE,EACnB,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,EAC1B,IAAI,SAAS,GACZ,MAAM,CASR"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.arrayToPseudoXML = arrayToPseudoXML;
|
|
4
|
+
function arrayToPseudoXML(array, keys, name = "item") {
|
|
5
|
+
return array
|
|
6
|
+
.map((item) => `<${name}>${keys
|
|
7
|
+
.map((key) => `<${String(key)}>${String(item[key])}</${String(key)}>`)
|
|
8
|
+
.join("\n")}</${name}>`)
|
|
9
|
+
.join("\n");
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const userSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
email: z.ZodString;
|
|
6
|
+
emailVerified: z.ZodBoolean;
|
|
7
|
+
image: z.ZodNullable<z.ZodString>;
|
|
8
|
+
createdAt: z.ZodDate;
|
|
9
|
+
updatedAt: z.ZodDate;
|
|
10
|
+
role: z.ZodNullable<z.ZodString>;
|
|
11
|
+
banned: z.ZodNullable<z.ZodBoolean>;
|
|
12
|
+
banReason: z.ZodNullable<z.ZodString>;
|
|
13
|
+
banExpires: z.ZodNullable<z.ZodDate>;
|
|
14
|
+
paymentCustomerId: z.ZodNullable<z.ZodString>;
|
|
15
|
+
paymentPlanTier: z.ZodNullable<z.ZodString>;
|
|
16
|
+
paymentPlanExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
17
|
+
preferences: z.ZodNullable<z.ZodString>;
|
|
18
|
+
onboarding: z.ZodNullable<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type UserSchema = z.infer<typeof userSchema>;
|
|
21
|
+
//# sourceMappingURL=auth.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.schema.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/auth.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;iBAiBrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.userSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
email: zod_1.z.string(),
|
|
9
|
+
emailVerified: zod_1.z.boolean(),
|
|
10
|
+
image: zod_1.z.string().nullable(),
|
|
11
|
+
createdAt: zod_1.z.date(),
|
|
12
|
+
updatedAt: zod_1.z.date(),
|
|
13
|
+
role: zod_1.z.string().nullable(),
|
|
14
|
+
banned: zod_1.z.boolean().nullable(),
|
|
15
|
+
banReason: zod_1.z.string().nullable(),
|
|
16
|
+
banExpires: zod_1.z.date().nullable(),
|
|
17
|
+
paymentCustomerId: zod_1.z.string().nullable(),
|
|
18
|
+
paymentPlanTier: zod_1.z.string().nullable(),
|
|
19
|
+
paymentPlanExpiresAt: zod_1.z.date().nullable(),
|
|
20
|
+
preferences: zod_1.z.string().nullable(),
|
|
21
|
+
onboarding: zod_1.z.boolean().nullable(),
|
|
22
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const uuidSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodUUID;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const uuidManySchema: z.ZodObject<{
|
|
6
|
+
ids: z.ZodArray<z.ZodUUID>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const scheduleOutputSchema: z.ZodObject<{
|
|
9
|
+
jobId: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const scheduleManyOutputSchema: z.ZodObject<{
|
|
12
|
+
jobIds: z.ZodArray<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const deleteOutputSchema: z.ZodObject<{
|
|
15
|
+
id: z.ZodUUID;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const deleteManyOutputSchema: z.ZodObject<{
|
|
18
|
+
ids: z.ZodArray<z.ZodUUID>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type UuidSchema = z.infer<typeof uuidSchema>;
|
|
21
|
+
export type UuidManySchema = z.infer<typeof uuidManySchema>;
|
|
22
|
+
export type ScheduleOutputSchema = z.infer<typeof scheduleOutputSchema>;
|
|
23
|
+
export type ScheduleManyOutputSchema = z.infer<typeof scheduleManyOutputSchema>;
|
|
24
|
+
export type DeleteOutputSchema = z.infer<typeof deleteOutputSchema>;
|
|
25
|
+
export type DeleteManyInputSchema = z.infer<typeof deleteManyOutputSchema>;
|
|
26
|
+
//# sourceMappingURL=base.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.schema.d.ts","sourceRoot":"","sources":["../../../../src/modules/base/base.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;iBAErB,CAAC;AAEH,eAAO,MAAM,cAAc;;iBAEzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;iBAAa,CAAC;AAC7C,eAAO,MAAM,sBAAsB;;iBAAiB,CAAC;AAErD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACpD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC5D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACxE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteManyOutputSchema = exports.deleteOutputSchema = exports.scheduleManyOutputSchema = exports.scheduleOutputSchema = exports.uuidManySchema = exports.uuidSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.uuidSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.uuid(),
|
|
7
|
+
});
|
|
8
|
+
exports.uuidManySchema = zod_1.z.object({
|
|
9
|
+
ids: zod_1.z.array(zod_1.z.uuid()),
|
|
10
|
+
});
|
|
11
|
+
exports.scheduleOutputSchema = zod_1.z.object({
|
|
12
|
+
jobId: zod_1.z.string(),
|
|
13
|
+
});
|
|
14
|
+
exports.scheduleManyOutputSchema = zod_1.z.object({
|
|
15
|
+
jobIds: zod_1.z.array(zod_1.z.string()),
|
|
16
|
+
});
|
|
17
|
+
exports.deleteOutputSchema = exports.uuidSchema;
|
|
18
|
+
exports.deleteManyOutputSchema = exports.uuidManySchema;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const billingSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
plan: z.ZodString;
|
|
5
|
+
referenceId: z.ZodString;
|
|
6
|
+
stripeCustomerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
stripeSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
status: z.ZodString;
|
|
9
|
+
periodStart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10
|
+
periodEnd: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
11
|
+
cancelAtPeriodEnd: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
+
cancelAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
13
|
+
canceledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
14
|
+
seats: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
trialStart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
16
|
+
trialEnd: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
17
|
+
priceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
unitAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
discounts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type BillingSchema = z.infer<typeof billingSchema>;
|
|
23
|
+
//# sourceMappingURL=billing.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing.schema.d.ts","sourceRoot":"","sources":["../../../../src/modules/billing/billing.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;iBAmBxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.billingSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.billingSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
plan: zod_1.z.string(),
|
|
8
|
+
referenceId: zod_1.z.string(),
|
|
9
|
+
stripeCustomerId: zod_1.z.string().nullish(),
|
|
10
|
+
stripeSubscriptionId: zod_1.z.string().nullish(),
|
|
11
|
+
status: zod_1.z.string(),
|
|
12
|
+
periodStart: zod_1.z.date().nullish(),
|
|
13
|
+
periodEnd: zod_1.z.date().nullish(),
|
|
14
|
+
cancelAtPeriodEnd: zod_1.z.boolean().nullish(),
|
|
15
|
+
cancelAt: zod_1.z.date().nullish(),
|
|
16
|
+
canceledAt: zod_1.z.date().nullish(),
|
|
17
|
+
seats: zod_1.z.number().nullish(),
|
|
18
|
+
trialStart: zod_1.z.date().nullish(),
|
|
19
|
+
trialEnd: zod_1.z.date().nullish(),
|
|
20
|
+
priceId: zod_1.z.string().nullish(),
|
|
21
|
+
interval: zod_1.z.string().nullish(),
|
|
22
|
+
unitAmount: zod_1.z.number().nullish(),
|
|
23
|
+
discounts: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
24
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type StripePlan = {
|
|
2
|
+
name: string;
|
|
3
|
+
priceId: string;
|
|
4
|
+
priceUnitAmount?: number;
|
|
5
|
+
annualDiscountPriceId?: string;
|
|
6
|
+
annualPriceUnitAmount?: number;
|
|
7
|
+
freeTrial?: {
|
|
8
|
+
days: number;
|
|
9
|
+
};
|
|
10
|
+
limits?: Record<string, number>;
|
|
11
|
+
group?: string;
|
|
12
|
+
};
|
|
13
|
+
export type StripePlansConfig = {
|
|
14
|
+
production: StripePlan[];
|
|
15
|
+
sandbox: StripePlan[];
|
|
16
|
+
trialPlanName?: string;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=billing.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing.types.d.ts","sourceRoot":"","sources":["../../../../src/modules/billing/billing.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { StripePlan, StripePlansConfig } from "./billing.types";
|
|
2
|
+
export declare const getEnvironmentPlans: (plansConfig: StripePlansConfig, environment?: string) => {
|
|
3
|
+
plans: StripePlan[];
|
|
4
|
+
trial: StripePlan | undefined;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=billing.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing.utils.d.ts","sourceRoot":"","sources":["../../../../src/modules/billing/billing.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAErE,eAAO,MAAM,mBAAmB,GAC9B,aAAa,iBAAiB,EAC9B,oBAAuB,KACtB;IAAE,KAAK,EAAE,UAAU,EAAE,CAAC;IAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAAA;CAOtD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEnvironmentPlans = void 0;
|
|
4
|
+
const getEnvironmentPlans = (plansConfig, environment = "sandbox") => {
|
|
5
|
+
const isProduction = environment === "production";
|
|
6
|
+
const plans = isProduction ? plansConfig.production : plansConfig.sandbox;
|
|
7
|
+
const trial = plansConfig.trialPlanName
|
|
8
|
+
? plans.find((plan) => plan.name === plansConfig.trialPlanName)
|
|
9
|
+
: undefined;
|
|
10
|
+
return { plans, trial };
|
|
11
|
+
};
|
|
12
|
+
exports.getEnvironmentPlans = getEnvironmentPlans;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.constants.d.ts","sourceRoot":"","sources":["../../../../src/modules/file/file.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,CAa1E,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fileTypes = void 0;
|
|
4
|
+
exports.fileTypes = {
|
|
5
|
+
image: {
|
|
6
|
+
mimetypes: ["image/jpeg", "image/png", "image/jpg", "image/webp"],
|
|
7
|
+
extensions: ["jpg", "jpeg", "png", "webp"],
|
|
8
|
+
},
|
|
9
|
+
video: {
|
|
10
|
+
mimetypes: ["video/mp4", "video/mov", "video/avi", "video/mkv", "video/webm"],
|
|
11
|
+
extensions: ["mp4", "mov", "avi", "mkv"],
|
|
12
|
+
},
|
|
13
|
+
audio: {
|
|
14
|
+
mimetypes: ["audio/mp3", "audio/wav", "audio/m4a", "audio/webm"],
|
|
15
|
+
extensions: ["mp3", "wav", "m4a", "webm"],
|
|
16
|
+
},
|
|
17
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const recurrenceMetadataSchema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
3
|
+
export declare const recurrenceSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
teamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
enabled: z.ZodBoolean;
|
|
11
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
12
|
+
createdAt: z.ZodDate;
|
|
13
|
+
updatedAt: z.ZodDate;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const recurrenceRulesSchema: z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
createdAt: z.ZodDate;
|
|
18
|
+
updatedAt: z.ZodDate;
|
|
19
|
+
recurrenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
freq: z.ZodNumber;
|
|
21
|
+
dtstart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
22
|
+
interval: z.ZodNumber;
|
|
23
|
+
wkst: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
26
|
+
tzid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
bysetpos: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
28
|
+
bymonth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
29
|
+
bymonthday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
30
|
+
byyearday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
31
|
+
byweekno: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
32
|
+
byweekday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
33
|
+
byhour: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
34
|
+
byminute: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
35
|
+
bysecond: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export declare const updateRecurrenceRulesSchema: z.ZodObject<{
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
interval: z.ZodNumber;
|
|
40
|
+
bysetpos: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
41
|
+
bymonth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
42
|
+
bymonthday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
43
|
+
byyearday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
44
|
+
byweekno: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
45
|
+
byweekday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
46
|
+
byhour: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
47
|
+
byminute: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
48
|
+
bysecond: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
49
|
+
freq: z.ZodNumber;
|
|
50
|
+
dtstart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
51
|
+
wkst: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
|
+
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
+
until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
54
|
+
tzid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export declare const createRecurrenceSchema: z.ZodObject<{
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
kind: z.ZodString;
|
|
59
|
+
enabled: z.ZodBoolean;
|
|
60
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
61
|
+
recurrenceRules: z.ZodArray<z.ZodObject<{
|
|
62
|
+
interval: z.ZodNumber;
|
|
63
|
+
bysetpos: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
64
|
+
bymonth: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
65
|
+
bymonthday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
66
|
+
byyearday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
67
|
+
byweekno: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
68
|
+
byweekday: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
69
|
+
byhour: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
70
|
+
byminute: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
71
|
+
bysecond: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
72
|
+
freq: z.ZodNumber;
|
|
73
|
+
dtstart: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
74
|
+
wkst: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
75
|
+
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
|
+
until: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
77
|
+
tzid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export declare const updateRecurrenceSchema: z.ZodObject<{
|
|
81
|
+
name: z.ZodOptional<z.ZodString>;
|
|
82
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
83
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export declare const deleteRecurrenceSchema: z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export declare const deleteRecurrenceRulesSchema: z.ZodObject<{
|
|
90
|
+
id: z.ZodString;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
export type RecurrenceSchema = z.infer<typeof recurrenceSchema>;
|
|
93
|
+
export type RecurrenceRulesSchema = z.infer<typeof recurrenceRulesSchema>;
|
|
94
|
+
export type CreateRecurrenceSchema = z.infer<typeof createRecurrenceSchema>;
|
|
95
|
+
export type UpdateRecurrenceSchema = z.infer<typeof updateRecurrenceSchema>;
|
|
96
|
+
export type UpdateRecurrenceRulesSchema = z.infer<typeof updateRecurrenceRulesSchema>;
|
|
97
|
+
export type DeleteRecurrenceSchema = z.infer<typeof deleteRecurrenceSchema>;
|
|
98
|
+
export type DeleteRecurrenceRulesSchema = z.infer<typeof deleteRecurrenceRulesSchema>;
|
|
99
|
+
//# sourceMappingURL=recurrence.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recurrence.schema.d.ts","sourceRoot":"","sources":["../../../../src/modules/recurrence/recurrence.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,wBAAwB,sEAA8C,CAAC;AAEpF,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAW3B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;iBAqBhC,CAAC;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;iBAItC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;iBAMjC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAChE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC5E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC5E,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACtF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC5E,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|