@m5kdev/commons 0.1.4 → 0.1.5
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/src/modules/ai/ai.constants.d.ts +0 -1
- package/dist/src/modules/ai/ai.utils.d.ts +0 -1
- package/dist/src/modules/auth/auth.schema.d.ts +0 -1
- package/dist/src/modules/base/base.schema.d.ts +0 -1
- package/dist/src/modules/billing/billing.schema.d.ts +0 -1
- package/dist/src/modules/billing/billing.types.d.ts +0 -1
- package/dist/src/modules/billing/billing.utils.d.ts +0 -1
- package/dist/src/modules/file/file.constants.d.ts +0 -1
- package/dist/src/modules/recurrence/recurrence.schema.d.ts +0 -1
- package/dist/src/modules/schemas/query.schema.d.ts +0 -1
- package/dist/src/modules/table/filter.types.d.ts +0 -1
- package/dist/src/modules/tag/tag.schema.d.ts +0 -1
- package/dist/src/modules/workflow/workflow.constants.d.ts +0 -1
- package/dist/src/modules/workflow/workflow.schema.d.ts +0 -1
- package/dist/src/utils/json.d.ts +0 -1
- package/dist/src/utils/timezones.d.ts +0 -1
- package/dist/src/utils/trpc.d.ts +0 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -2
- package/.cursor/rules/commons.mdc +0 -27
- package/.turbo/turbo-build.log +0 -5
- package/.turbo/turbo-check-types.log +0 -5
- package/.turbo/turbo-lint$colon$fix.log +0 -6
- package/.turbo/turbo-lint.log +0 -61
- package/CHANGELOG.md +0 -25
- package/dist/src/modules/ai/ai.constants.d.ts.map +0 -1
- package/dist/src/modules/ai/ai.utils.d.ts.map +0 -1
- package/dist/src/modules/auth/auth.schema.d.ts.map +0 -1
- package/dist/src/modules/base/base.schema.d.ts.map +0 -1
- package/dist/src/modules/billing/billing.schema.d.ts.map +0 -1
- package/dist/src/modules/billing/billing.types.d.ts.map +0 -1
- package/dist/src/modules/billing/billing.utils.d.ts.map +0 -1
- package/dist/src/modules/file/file.constants.d.ts.map +0 -1
- package/dist/src/modules/recurrence/recurrence.schema.d.ts.map +0 -1
- package/dist/src/modules/schemas/query.schema.d.ts.map +0 -1
- package/dist/src/modules/table/filter.types.d.ts.map +0 -1
- package/dist/src/modules/tag/tag.schema.d.ts.map +0 -1
- package/dist/src/modules/workflow/workflow.constants.d.ts.map +0 -1
- package/dist/src/modules/workflow/workflow.schema.d.ts.map +0 -1
- package/dist/src/utils/json.d.ts.map +0 -1
- package/dist/src/utils/timezones.d.ts.map +0 -1
- package/dist/src/utils/trpc.d.ts.map +0 -1
- package/src/modules/ai/ai.constants.ts +0 -305
- package/src/modules/ai/ai.utils.ts +0 -14
- package/src/modules/auth/auth.schema.ts +0 -22
- package/src/modules/base/base.schema.ts +0 -27
- package/src/modules/billing/billing.schema.ts +0 -24
- package/src/modules/billing/billing.types.ts +0 -18
- package/src/modules/billing/billing.utils.ts +0 -13
- package/src/modules/file/file.constants.ts +0 -14
- package/src/modules/recurrence/recurrence.schema.ts +0 -78
- package/src/modules/schemas/query.schema.ts +0 -44
- package/src/modules/table/filter.types.ts +0 -39
- package/src/modules/tag/tag.schema.ts +0 -68
- package/src/modules/workflow/workflow.constants.ts +0 -2
- package/src/modules/workflow/workflow.schema.ts +0 -48
- package/src/utils/json.ts +0 -9
- package/src/utils/timezones.ts +0 -4380
- package/src/utils/trpc.ts +0 -6
- package/tsconfig.json +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m5kdev/commons",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"license": "GPL-3.0-only",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,13 +8,16 @@
|
|
|
8
8
|
},
|
|
9
9
|
"homepage": "https://github.com/michalkow/m5kdev#readme",
|
|
10
10
|
"bugs": "https://github.com/michalkow/m5kdev/issues",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
11
14
|
"dependencies": {
|
|
12
15
|
"devalue": "5.4.2",
|
|
13
16
|
"zod": "4.2.1"
|
|
14
17
|
},
|
|
15
18
|
"devDependencies": {
|
|
16
19
|
"typescript": "5.9.2",
|
|
17
|
-
"@m5kdev/config": "0.1.
|
|
20
|
+
"@m5kdev/config": "0.1.5"
|
|
18
21
|
},
|
|
19
22
|
"exports": {
|
|
20
23
|
"./utils/*": {
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
alwaysApply: true
|
|
3
|
-
---
|
|
4
|
-
# Commons Package Rules
|
|
5
|
-
|
|
6
|
-
This is a shared TypeScript utilities library that provides common functionality used across multiple server and frontend applications in the monorepo.
|
|
7
|
-
|
|
8
|
-
## Package Purpose
|
|
9
|
-
|
|
10
|
-
The `@m5kdev/commons` package serves as a centralized location for:
|
|
11
|
-
- Shared type definitions and interfaces
|
|
12
|
-
- Common utility functions
|
|
13
|
-
- Shared constants and configurations
|
|
14
|
-
|
|
15
|
-
## Testing Guidelines
|
|
16
|
-
|
|
17
|
-
- Every utility function should have unit tests
|
|
18
|
-
- Test edge cases and error conditions
|
|
19
|
-
|
|
20
|
-
## Do NOT Include
|
|
21
|
-
|
|
22
|
-
- Application-specific business logic
|
|
23
|
-
- UI components or React hooks
|
|
24
|
-
- Database queries or models
|
|
25
|
-
- API endpoint definitions
|
|
26
|
-
- Environment-specific configurations
|
|
27
|
-
- Side effects or stateful operations
|
package/.turbo/turbo-build.log
DELETED
package/.turbo/turbo-lint.log
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @repo/commons@0.0.0 lint /Users/michalkow/Projects/m5/packages/commons
|
|
3
|
-
> biome check .
|
|
4
|
-
|
|
5
|
-
src/utils/trpc.ts:4:25 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
6
|
-
|
|
7
|
-
! Unexpected any. Specify a different type.
|
|
8
|
-
|
|
9
|
-
3 │ export const transformer = {
|
|
10
|
-
> 4 │ deserialize: (object: any) => parse(object),
|
|
11
|
-
│ ^^^
|
|
12
|
-
5 │ serialize: (object: any) => stringify(object),
|
|
13
|
-
6 │ };
|
|
14
|
-
|
|
15
|
-
i any disables many type checking rules. Its use should be avoided.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
src/utils/trpc.ts:5:23 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
19
|
-
|
|
20
|
-
! Unexpected any. Specify a different type.
|
|
21
|
-
|
|
22
|
-
3 │ export const transformer = {
|
|
23
|
-
4 │ deserialize: (object: any) => parse(object),
|
|
24
|
-
> 5 │ serialize: (object: any) => stringify(object),
|
|
25
|
-
│ ^^^
|
|
26
|
-
6 │ };
|
|
27
|
-
7 │
|
|
28
|
-
|
|
29
|
-
i any disables many type checking rules. Its use should be avoided.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
src/modules/table/filter.types.ts format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
33
|
-
|
|
34
|
-
× Formatter would have printed the following content:
|
|
35
|
-
|
|
36
|
-
34 34 │ [key in ColumnDataType]: FilterMethod[];␍
|
|
37
|
-
35 35 │ };␍
|
|
38
|
-
36 │ - ␍
|
|
39
|
-
37 36 │
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
tsconfig.json format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
43
|
-
|
|
44
|
-
× Formatter would have printed the following content:
|
|
45
|
-
|
|
46
|
-
4 4 │ "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo"␍
|
|
47
|
-
5 5 │ }␍
|
|
48
|
-
6 │ - }
|
|
49
|
-
6 │ + }␍
|
|
50
|
-
7 │ +
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
Checked 17 files in 4ms. No fixes applied.
|
|
54
|
-
Found 2 errors.
|
|
55
|
-
Found 2 warnings.
|
|
56
|
-
check ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
57
|
-
|
|
58
|
-
× Some errors were emitted while running checks.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
ELIFECYCLE Command failed with exit code 1.
|
package/CHANGELOG.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# @m5kdev/commons
|
|
2
|
-
|
|
3
|
-
## 0.1.4
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- build added
|
|
8
|
-
|
|
9
|
-
## 0.1.3
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- build js
|
|
14
|
-
|
|
15
|
-
## 0.1.2
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- build
|
|
20
|
-
|
|
21
|
-
## 0.1.1
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- exports
|
|
@@ -1 +0,0 @@
|
|
|
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,8BAA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AAM,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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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,C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":"query.schema.d.ts","sourceRoot":"","sources":["../../../../src/modules/schemas/query.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBvB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAwB,CAAC;AAEnD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOtB,CAAC;AAEH,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;IAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACrD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACvD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter.types.d.ts","sourceRoot":"","sources":["../../../../src/modules/table/filter.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;AAE9D,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN,QAAQ,GACR,MAAM,GACN,OAAO,GACP,OAAO,GACP,QAAQ,GACR,aAAa,CAAC;AAElB,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,QAAQ,GACR,aAAa,GACb,WAAW,GACX,cAAc,GACd,WAAW,GACX,IAAI,GACJ,SAAS,GACT,QAAQ,GACR,OAAO,GACP,WAAW,GACX,OAAO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AAe,CAAC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.constants.d.ts","sourceRoot":"","sources":["../../../../src/modules/workflow/workflow.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,uDAAwD,CAAC;AACtF,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.schema.d.ts","sourceRoot":"","sources":["../../../../src/modules/workflow/workflow.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;iBAgB/B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;iBAGlC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;iBAE1C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;iBAAuB,CAAC;AAC7D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;kBAA+B,CAAC;AAErE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACxE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC9E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC9E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACtF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/utils/json.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC;AAC/D,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timezones.d.ts","sourceRoot":"","sources":["../../../src/utils/timezones.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAAQ,EA6wI/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trpc.d.ts","sourceRoot":"","sources":["../../../src/utils/trpc.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;0BACA,GAAG;wBACL,GAAG;CACxB,CAAC"}
|
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
// Models > $1/M tokens
|
|
2
|
-
export const GPT_5_CHAT = "openai/gpt-5-chat";
|
|
3
|
-
export const GPT_5_1 = "openai/gpt-5.1";
|
|
4
|
-
export const GPT_5_2 = "openai/gpt-5.2";
|
|
5
|
-
export const GEMINI_3_1_PRO = "google/gemini-3.1-pro-preview";
|
|
6
|
-
export const GEMINI_2_5_PRO = "google/gemini-2.5-pro";
|
|
7
|
-
export const GEMINI_3_PRO = "google/gemini-3-pro-preview";
|
|
8
|
-
export const GEMINI_3_FLASH = "google/gemini-3-flash-preview";
|
|
9
|
-
export const GROK_4 = "x-ai/grok-4";
|
|
10
|
-
export const CLAUDE_SONNET_4 = "anthropic/claude-sonnet-4";
|
|
11
|
-
export const CLAUDE_SONNET_4_5 = "anthropic/claude-sonnet-4.5";
|
|
12
|
-
export const CLAUDE_OPUS_4_5 = "anthropic/claude-opus-4.5";
|
|
13
|
-
export const CLAUDE_SONNET_4_6 = "anthropic/claude-sonnet-4.6";
|
|
14
|
-
export const CLAUDE_OPUS_4_6 = "anthropic/claude-opus-4.6";
|
|
15
|
-
export const MINIMAX_M2 = "minimax/minimax-m2";
|
|
16
|
-
export const QWEN3_MAX = "qwen/qwen3-max";
|
|
17
|
-
export const O3 = "openai/o3";
|
|
18
|
-
|
|
19
|
-
// Models < $1/M tokens
|
|
20
|
-
export const GPT_5_MINI = "openai/gpt-5-mini";
|
|
21
|
-
export const GEMINI_2_5_FLASH = "google/gemini-2.5-flash";
|
|
22
|
-
export const GROK_3_MINI = "x-ai/grok-3-mini";
|
|
23
|
-
export const GROK_4_FAST = "x-ai/grok-4-fast";
|
|
24
|
-
export const KIMI_K2_THINKING = "moonshotai/kimi-k2-thinking";
|
|
25
|
-
export const KIMI_K2 = "moonshotai/kimi-k2-0905";
|
|
26
|
-
export const KIMI_K2_5 = "moonshotai/kimi-k2.5";
|
|
27
|
-
export const CLAUDE_SONNET_3_HAIKU = "anthropic/claude-3-haiku";
|
|
28
|
-
export const GLM_4_5V = "z-ai/glm-4.5v";
|
|
29
|
-
export const GLM_4_6 = "z-ai/glm-4.6";
|
|
30
|
-
export const DEEPSEEK_V3_1 = "deepseek/deepseek-chat-v3.1";
|
|
31
|
-
export const DEEPSEEK_R1 = "deepseek/deepseek-r1-0528";
|
|
32
|
-
export const LLAMA_3_3_70B_INSTRUCT = "meta-llama/llama-3.3-70b-instruct";
|
|
33
|
-
export const MISTRAL_3_1_MEDIUM = "mistralai/mistral-medium-3.1";
|
|
34
|
-
|
|
35
|
-
// Models < $0.1/M tokens
|
|
36
|
-
export const QWEN3_30B_A3B = "qwen/qwen3-30b-a3b";
|
|
37
|
-
export const GPT_5_NANO = "openai/gpt-5-nano";
|
|
38
|
-
export const GEMINI_2_5_FLASH_LITE = "google/gemini-2.5-flash-lite";
|
|
39
|
-
|
|
40
|
-
// Embedding Models
|
|
41
|
-
export const OPENAI_TEXT_EMBEDDING_3_SMALL = "openai/text-embedding-3-small";
|
|
42
|
-
|
|
43
|
-
export const AI_EMBEDDING_MODELS = [OPENAI_TEXT_EMBEDDING_3_SMALL] as const;
|
|
44
|
-
|
|
45
|
-
export type AiEmbeddingModel = (typeof AI_EMBEDDING_MODELS)[number];
|
|
46
|
-
|
|
47
|
-
// Models by utility
|
|
48
|
-
export const SCORER_BEST = GEMINI_3_FLASH;
|
|
49
|
-
export const SCORER_FAST = KIMI_K2_5;
|
|
50
|
-
export const RESONING_BEST = GEMINI_3_1_PRO;
|
|
51
|
-
export const RESONING_FAST = KIMI_K2_5;
|
|
52
|
-
export const STRUCTURED_OUTPUT_BEST = CLAUDE_SONNET_4_5;
|
|
53
|
-
export const STRUCTURED_OUTPUT_FAST = GPT_5_MINI;
|
|
54
|
-
export const TOOL_CALL_BEST = CLAUDE_SONNET_4_5;
|
|
55
|
-
export const TOOL_CALL_FAST = GPT_5_MINI;
|
|
56
|
-
|
|
57
|
-
export const AI_MODELS = [
|
|
58
|
-
LLAMA_3_3_70B_INSTRUCT,
|
|
59
|
-
QWEN3_30B_A3B,
|
|
60
|
-
GEMINI_2_5_PRO,
|
|
61
|
-
GEMINI_3_PRO,
|
|
62
|
-
GEMINI_3_FLASH,
|
|
63
|
-
DEEPSEEK_R1,
|
|
64
|
-
O3,
|
|
65
|
-
GPT_5_1,
|
|
66
|
-
GPT_5_2,
|
|
67
|
-
GPT_5_CHAT,
|
|
68
|
-
GROK_4,
|
|
69
|
-
CLAUDE_SONNET_4,
|
|
70
|
-
CLAUDE_SONNET_4_5,
|
|
71
|
-
CLAUDE_OPUS_4_5,
|
|
72
|
-
GPT_5_MINI,
|
|
73
|
-
GLM_4_5V,
|
|
74
|
-
MISTRAL_3_1_MEDIUM,
|
|
75
|
-
GEMINI_2_5_FLASH,
|
|
76
|
-
GROK_3_MINI,
|
|
77
|
-
CLAUDE_SONNET_3_HAIKU,
|
|
78
|
-
GPT_5_NANO,
|
|
79
|
-
GEMINI_2_5_FLASH_LITE,
|
|
80
|
-
GROK_4_FAST,
|
|
81
|
-
MINIMAX_M2,
|
|
82
|
-
KIMI_K2,
|
|
83
|
-
KIMI_K2_THINKING,
|
|
84
|
-
DEEPSEEK_V3_1,
|
|
85
|
-
GLM_4_6,
|
|
86
|
-
QWEN3_MAX,
|
|
87
|
-
] as const;
|
|
88
|
-
|
|
89
|
-
export const AI_MODELS_REGISTRY: AiModelRegistry = {
|
|
90
|
-
[O3]: {
|
|
91
|
-
name: "O3",
|
|
92
|
-
provider: "openai",
|
|
93
|
-
icon: "ti-brand-openai",
|
|
94
|
-
tier: "pro",
|
|
95
|
-
order: 1,
|
|
96
|
-
},
|
|
97
|
-
[MISTRAL_3_1_MEDIUM]: {
|
|
98
|
-
name: "Mistral 3.1 Medium",
|
|
99
|
-
provider: "mistralai",
|
|
100
|
-
icon: "ti-ai",
|
|
101
|
-
tier: "pro",
|
|
102
|
-
order: 1,
|
|
103
|
-
},
|
|
104
|
-
[DEEPSEEK_R1]: {
|
|
105
|
-
name: "DeepSeek R1",
|
|
106
|
-
provider: "deepseek",
|
|
107
|
-
icon: "ti-ai",
|
|
108
|
-
tier: "pro",
|
|
109
|
-
order: 1,
|
|
110
|
-
},
|
|
111
|
-
[QWEN3_30B_A3B]: {
|
|
112
|
-
name: "Qwen3 30B A3B",
|
|
113
|
-
provider: "qwen",
|
|
114
|
-
icon: "ti-ai",
|
|
115
|
-
tier: "pro",
|
|
116
|
-
order: 1,
|
|
117
|
-
},
|
|
118
|
-
[LLAMA_3_3_70B_INSTRUCT]: {
|
|
119
|
-
name: "LLama 3.3 70B",
|
|
120
|
-
provider: "meta-llama",
|
|
121
|
-
icon: "ti-brand-meta",
|
|
122
|
-
tier: "pro",
|
|
123
|
-
order: 1,
|
|
124
|
-
},
|
|
125
|
-
[GLM_4_5V]: {
|
|
126
|
-
name: "GLM 4.5V",
|
|
127
|
-
provider: "z-ai",
|
|
128
|
-
icon: "ti-ai",
|
|
129
|
-
tier: "pro",
|
|
130
|
-
order: 1,
|
|
131
|
-
},
|
|
132
|
-
[GLM_4_6]: {
|
|
133
|
-
name: "GLM 4.6",
|
|
134
|
-
provider: "z-ai",
|
|
135
|
-
icon: "ti-ai",
|
|
136
|
-
tier: "pro",
|
|
137
|
-
order: 1,
|
|
138
|
-
},
|
|
139
|
-
[QWEN3_MAX]: {
|
|
140
|
-
name: "Qwen3 Max",
|
|
141
|
-
provider: "qwen",
|
|
142
|
-
icon: "ti-ai",
|
|
143
|
-
tier: "pro",
|
|
144
|
-
order: 1,
|
|
145
|
-
},
|
|
146
|
-
[DEEPSEEK_V3_1]: {
|
|
147
|
-
name: "DeepSeek V3.1",
|
|
148
|
-
provider: "deepseek",
|
|
149
|
-
icon: "ti-ai",
|
|
150
|
-
tier: "pro",
|
|
151
|
-
order: 1,
|
|
152
|
-
},
|
|
153
|
-
[KIMI_K2]: {
|
|
154
|
-
name: "Kimi K2",
|
|
155
|
-
provider: "moonshotai",
|
|
156
|
-
icon: "ti-ai",
|
|
157
|
-
tier: "pro",
|
|
158
|
-
order: 1,
|
|
159
|
-
},
|
|
160
|
-
[KIMI_K2_THINKING]: {
|
|
161
|
-
name: "Kimi K2 Thinking",
|
|
162
|
-
provider: "moonshotai",
|
|
163
|
-
icon: "ti-ai",
|
|
164
|
-
tier: "pro",
|
|
165
|
-
order: 1,
|
|
166
|
-
},
|
|
167
|
-
[CLAUDE_SONNET_4_5]: {
|
|
168
|
-
name: "Claude Sonnet 4.5",
|
|
169
|
-
provider: "anthropic",
|
|
170
|
-
icon: "ti-ai",
|
|
171
|
-
tier: "pro",
|
|
172
|
-
order: 1,
|
|
173
|
-
},
|
|
174
|
-
[GPT_5_1]: {
|
|
175
|
-
name: "GPT-5.1",
|
|
176
|
-
provider: "openai",
|
|
177
|
-
icon: "ti-brand-openai",
|
|
178
|
-
tier: "pro",
|
|
179
|
-
order: 1,
|
|
180
|
-
},
|
|
181
|
-
[GPT_5_2]: {
|
|
182
|
-
name: "GPT-5.2",
|
|
183
|
-
provider: "openai",
|
|
184
|
-
icon: "ti-brand-openai",
|
|
185
|
-
tier: "pro",
|
|
186
|
-
order: 1,
|
|
187
|
-
},
|
|
188
|
-
[MINIMAX_M2]: {
|
|
189
|
-
name: "MiniMax M2",
|
|
190
|
-
provider: "minimax",
|
|
191
|
-
icon: "ti-ai",
|
|
192
|
-
tier: "pro",
|
|
193
|
-
order: 1,
|
|
194
|
-
},
|
|
195
|
-
[GEMINI_2_5_PRO]: {
|
|
196
|
-
name: "Gemini 2.5 Pro",
|
|
197
|
-
provider: "google",
|
|
198
|
-
icon: "ti-brand-google",
|
|
199
|
-
tier: "pro",
|
|
200
|
-
order: 1,
|
|
201
|
-
},
|
|
202
|
-
[GEMINI_3_PRO]: {
|
|
203
|
-
name: "Gemini 3 Pro",
|
|
204
|
-
provider: "google",
|
|
205
|
-
icon: "ti-brand-google",
|
|
206
|
-
tier: "pro",
|
|
207
|
-
order: 1,
|
|
208
|
-
},
|
|
209
|
-
[GEMINI_3_FLASH]: {
|
|
210
|
-
name: "Gemini 3 Flash",
|
|
211
|
-
provider: "google",
|
|
212
|
-
icon: "ti-brand-google",
|
|
213
|
-
tier: "pro",
|
|
214
|
-
order: 1,
|
|
215
|
-
},
|
|
216
|
-
[GPT_5_CHAT]: {
|
|
217
|
-
name: "GPT-5",
|
|
218
|
-
provider: "openai",
|
|
219
|
-
icon: "ti-brand-openai",
|
|
220
|
-
tier: "pro",
|
|
221
|
-
order: 2,
|
|
222
|
-
},
|
|
223
|
-
[GROK_4]: {
|
|
224
|
-
name: "Grok 4",
|
|
225
|
-
provider: "x-ai",
|
|
226
|
-
icon: "ti-brand-x",
|
|
227
|
-
tier: "pro",
|
|
228
|
-
order: 3,
|
|
229
|
-
},
|
|
230
|
-
[GROK_4_FAST]: {
|
|
231
|
-
name: "Grok 4 Fast",
|
|
232
|
-
provider: "x-ai",
|
|
233
|
-
icon: "ti-brand-x",
|
|
234
|
-
tier: "pro",
|
|
235
|
-
order: 4,
|
|
236
|
-
},
|
|
237
|
-
[CLAUDE_SONNET_4]: {
|
|
238
|
-
name: "Claude Sonnet 4",
|
|
239
|
-
provider: "anthropic",
|
|
240
|
-
icon: "ti-ai",
|
|
241
|
-
tier: "pro",
|
|
242
|
-
order: 4,
|
|
243
|
-
},
|
|
244
|
-
[CLAUDE_OPUS_4_5]: {
|
|
245
|
-
name: "Claude Opus 4.5",
|
|
246
|
-
provider: "anthropic",
|
|
247
|
-
icon: "ti-ai",
|
|
248
|
-
tier: "pro",
|
|
249
|
-
order: 1,
|
|
250
|
-
},
|
|
251
|
-
[GPT_5_MINI]: {
|
|
252
|
-
name: "GPT-5 Mini",
|
|
253
|
-
provider: "openai",
|
|
254
|
-
icon: "ti-brand-openai",
|
|
255
|
-
tier: "standard",
|
|
256
|
-
order: 5,
|
|
257
|
-
},
|
|
258
|
-
[GEMINI_2_5_FLASH]: {
|
|
259
|
-
name: "Gemini 2.5 Flash",
|
|
260
|
-
provider: "google",
|
|
261
|
-
icon: "ti-brand-google",
|
|
262
|
-
tier: "standard",
|
|
263
|
-
order: 6,
|
|
264
|
-
},
|
|
265
|
-
[GROK_3_MINI]: {
|
|
266
|
-
name: "Grok 3 Mini",
|
|
267
|
-
provider: "x-ai",
|
|
268
|
-
icon: "ti-brand-x",
|
|
269
|
-
tier: "standard",
|
|
270
|
-
order: 7,
|
|
271
|
-
},
|
|
272
|
-
[CLAUDE_SONNET_3_HAIKU]: {
|
|
273
|
-
name: "Claude Sonnet 3 Haiku",
|
|
274
|
-
provider: "anthropic",
|
|
275
|
-
icon: "ti-brand-anthropic",
|
|
276
|
-
tier: "standard",
|
|
277
|
-
order: 8,
|
|
278
|
-
},
|
|
279
|
-
[GPT_5_NANO]: {
|
|
280
|
-
name: "GPT-5 Nano",
|
|
281
|
-
provider: "openai",
|
|
282
|
-
icon: "ti-brand-openai",
|
|
283
|
-
tier: "fast",
|
|
284
|
-
order: 9,
|
|
285
|
-
},
|
|
286
|
-
[GEMINI_2_5_FLASH_LITE]: {
|
|
287
|
-
name: "Gemini 2.5 Flash Lite",
|
|
288
|
-
provider: "google",
|
|
289
|
-
icon: "ti-brand-google",
|
|
290
|
-
tier: "fast",
|
|
291
|
-
order: 10,
|
|
292
|
-
},
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
export type AiModel = (typeof AI_MODELS)[number];
|
|
296
|
-
export type AiModelRegistry = Record<
|
|
297
|
-
AiModel,
|
|
298
|
-
{
|
|
299
|
-
name: string;
|
|
300
|
-
provider: string;
|
|
301
|
-
icon: string;
|
|
302
|
-
tier: string;
|
|
303
|
-
order: number;
|
|
304
|
-
}
|
|
305
|
-
>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export function arrayToPseudoXML<T extends Record<string, unknown>>(
|
|
2
|
-
array: readonly T[],
|
|
3
|
-
keys: readonly (keyof T)[],
|
|
4
|
-
name = "item"
|
|
5
|
-
): string {
|
|
6
|
-
return array
|
|
7
|
-
.map(
|
|
8
|
-
(item) =>
|
|
9
|
-
`<${name}>${keys
|
|
10
|
-
.map((key) => `<${String(key)}>${String(item[key])}</${String(key)}>`)
|
|
11
|
-
.join("\n")}</${name}>`
|
|
12
|
-
)
|
|
13
|
-
.join("\n");
|
|
14
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
export const userSchema = z.object({
|
|
4
|
-
id: z.string(),
|
|
5
|
-
name: z.string(),
|
|
6
|
-
email: z.string(),
|
|
7
|
-
emailVerified: z.boolean(),
|
|
8
|
-
image: z.string().nullable(),
|
|
9
|
-
createdAt: z.date(),
|
|
10
|
-
updatedAt: z.date(),
|
|
11
|
-
role: z.string().nullable(),
|
|
12
|
-
banned: z.boolean().nullable(),
|
|
13
|
-
banReason: z.string().nullable(),
|
|
14
|
-
banExpires: z.date().nullable(),
|
|
15
|
-
paymentCustomerId: z.string().nullable(),
|
|
16
|
-
paymentPlanTier: z.string().nullable(),
|
|
17
|
-
paymentPlanExpiresAt: z.date().nullable(),
|
|
18
|
-
preferences: z.string().nullable(),
|
|
19
|
-
onboarding: z.boolean().nullable(),
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
export type UserSchema = z.infer<typeof userSchema>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
export const uuidSchema = z.object({
|
|
4
|
-
id: z.uuid(),
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
export const uuidManySchema = z.object({
|
|
8
|
-
ids: z.array(z.uuid()),
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export const scheduleOutputSchema = z.object({
|
|
12
|
-
jobId: z.string(),
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export const scheduleManyOutputSchema = z.object({
|
|
16
|
-
jobIds: z.array(z.string()),
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export const deleteOutputSchema = uuidSchema;
|
|
20
|
-
export const deleteManyOutputSchema = uuidManySchema;
|
|
21
|
-
|
|
22
|
-
export type UuidSchema = z.infer<typeof uuidSchema>;
|
|
23
|
-
export type UuidManySchema = z.infer<typeof uuidManySchema>;
|
|
24
|
-
export type ScheduleOutputSchema = z.infer<typeof scheduleOutputSchema>;
|
|
25
|
-
export type ScheduleManyOutputSchema = z.infer<typeof scheduleManyOutputSchema>;
|
|
26
|
-
export type DeleteOutputSchema = z.infer<typeof deleteOutputSchema>;
|
|
27
|
-
export type DeleteManyInputSchema = z.infer<typeof deleteManyOutputSchema>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
export const billingSchema = z.object({
|
|
4
|
-
id: z.string(),
|
|
5
|
-
plan: z.string(),
|
|
6
|
-
referenceId: z.string(),
|
|
7
|
-
stripeCustomerId: z.string().nullish(),
|
|
8
|
-
stripeSubscriptionId: z.string().nullish(),
|
|
9
|
-
status: z.string(),
|
|
10
|
-
periodStart: z.date().nullish(),
|
|
11
|
-
periodEnd: z.date().nullish(),
|
|
12
|
-
cancelAtPeriodEnd: z.boolean().nullish(),
|
|
13
|
-
cancelAt: z.date().nullish(),
|
|
14
|
-
canceledAt: z.date().nullish(),
|
|
15
|
-
seats: z.number().nullish(),
|
|
16
|
-
trialStart: z.date().nullish(),
|
|
17
|
-
trialEnd: z.date().nullish(),
|
|
18
|
-
priceId: z.string().nullish(),
|
|
19
|
-
interval: z.string().nullish(),
|
|
20
|
-
unitAmount: z.number().nullish(),
|
|
21
|
-
discounts: z.array(z.string()).nullish(),
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export type BillingSchema = z.infer<typeof billingSchema>;
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
|
|
14
|
-
export type StripePlansConfig = {
|
|
15
|
-
production: StripePlan[];
|
|
16
|
-
sandbox: StripePlan[];
|
|
17
|
-
trialPlanName?: string;
|
|
18
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { StripePlan, StripePlansConfig } from "./billing.types";
|
|
2
|
-
|
|
3
|
-
export const getEnvironmentPlans = (
|
|
4
|
-
plansConfig: StripePlansConfig,
|
|
5
|
-
environment = "sandbox"
|
|
6
|
-
): { plans: StripePlan[]; trial: StripePlan | undefined } => {
|
|
7
|
-
const isProduction = environment === "production";
|
|
8
|
-
const plans = isProduction ? plansConfig.production : plansConfig.sandbox;
|
|
9
|
-
const trial = plansConfig.trialPlanName
|
|
10
|
-
? plans.find((plan) => plan.name === plansConfig.trialPlanName)
|
|
11
|
-
: undefined;
|
|
12
|
-
return { plans, trial };
|
|
13
|
-
};
|