@cms0/shared 0.2.21 → 0.2.23
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/package.json +3 -6
- package/dist/saas.d.ts +0 -87
- package/dist/saas.d.ts.map +0 -1
- package/dist/saas.js +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cms0/shared",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.23",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "restricted"
|
|
6
6
|
},
|
|
@@ -12,10 +12,6 @@
|
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"default": "./dist/index.js"
|
|
14
14
|
},
|
|
15
|
-
"./saas": {
|
|
16
|
-
"types": "./dist/saas.d.ts",
|
|
17
|
-
"default": "./dist/saas.js"
|
|
18
|
-
},
|
|
19
15
|
"./responsive-break.css": {
|
|
20
16
|
"style": "./src/responsive-break.css",
|
|
21
17
|
"default": "./src/responsive-break.css"
|
|
@@ -29,7 +25,8 @@
|
|
|
29
25
|
"zod": "^4.1.12"
|
|
30
26
|
},
|
|
31
27
|
"scripts": {
|
|
32
|
-
"build": "tsc -p tsconfig.json",
|
|
28
|
+
"build": "pnpm run build:clean && tsc -p tsconfig.json",
|
|
29
|
+
"build:clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true });\"",
|
|
33
30
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
34
31
|
"lint": "tsc -p tsconfig.json --noEmit",
|
|
35
32
|
"test:unit": "pnpm -C ../.. exec vitest run --config vitest.config.ts --project shared-unit",
|
package/dist/saas.d.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const hostedRedisCapabilityConfigSchema: z.ZodObject<{
|
|
3
|
-
namespacePrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
-
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
export declare const hostedStorageBundleConfigSchema: z.ZodObject<{
|
|
7
|
-
environment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
|
-
kind: z.ZodLiteral<"filesystem">;
|
|
9
|
-
rootPath: z.ZodString;
|
|
10
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
11
|
-
accessKeyId: z.ZodString;
|
|
12
|
-
bucket: z.ZodString;
|
|
13
|
-
endpoint: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
14
|
-
forcePathStyle: z.ZodBoolean;
|
|
15
|
-
kind: z.ZodLiteral<"s3">;
|
|
16
|
-
prefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
region: z.ZodString;
|
|
18
|
-
secretAccessKey: z.ZodString;
|
|
19
|
-
}, z.core.$strip>], "kind">;
|
|
20
|
-
platform: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21
|
-
kind: z.ZodLiteral<"filesystem">;
|
|
22
|
-
rootPath: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
accessKeyId: z.ZodString;
|
|
25
|
-
bucket: z.ZodString;
|
|
26
|
-
endpoint: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
27
|
-
forcePathStyle: z.ZodBoolean;
|
|
28
|
-
kind: z.ZodLiteral<"s3">;
|
|
29
|
-
prefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
-
region: z.ZodString;
|
|
31
|
-
secretAccessKey: z.ZodString;
|
|
32
|
-
}, z.core.$strip>], "kind">;
|
|
33
|
-
}, z.core.$strip>;
|
|
34
|
-
export declare const hostedDefaultRuntimeBindingConfigSchema: z.ZodObject<{
|
|
35
|
-
databaseNamePrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
-
databaseUrlTemplate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
-
email: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38
|
-
kind: z.ZodLiteral<"log">;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
kind: z.ZodLiteral<"smtp">;
|
|
41
|
-
host: z.ZodString;
|
|
42
|
-
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
port: z.ZodInt;
|
|
44
|
-
secure: z.ZodBoolean;
|
|
45
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
-
apiKey: z.ZodString;
|
|
48
|
-
baseUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
49
|
-
kind: z.ZodLiteral<"plunk">;
|
|
50
|
-
}, z.core.$strip>], "kind">>>;
|
|
51
|
-
redis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
52
|
-
namespacePrefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
-
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
-
}, z.core.$strip>>>;
|
|
55
|
-
storage: z.ZodObject<{
|
|
56
|
-
environment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
57
|
-
kind: z.ZodLiteral<"filesystem">;
|
|
58
|
-
rootPath: z.ZodString;
|
|
59
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
-
accessKeyId: z.ZodString;
|
|
61
|
-
bucket: z.ZodString;
|
|
62
|
-
endpoint: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
63
|
-
forcePathStyle: z.ZodBoolean;
|
|
64
|
-
kind: z.ZodLiteral<"s3">;
|
|
65
|
-
prefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
-
region: z.ZodString;
|
|
67
|
-
secretAccessKey: z.ZodString;
|
|
68
|
-
}, z.core.$strip>], "kind">;
|
|
69
|
-
platform: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
70
|
-
kind: z.ZodLiteral<"filesystem">;
|
|
71
|
-
rootPath: z.ZodString;
|
|
72
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
-
accessKeyId: z.ZodString;
|
|
74
|
-
bucket: z.ZodString;
|
|
75
|
-
endpoint: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
76
|
-
forcePathStyle: z.ZodBoolean;
|
|
77
|
-
kind: z.ZodLiteral<"s3">;
|
|
78
|
-
prefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
-
region: z.ZodString;
|
|
80
|
-
secretAccessKey: z.ZodString;
|
|
81
|
-
}, z.core.$strip>], "kind">;
|
|
82
|
-
}, z.core.$strip>;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
|
-
export type HostedRedisCapabilityConfig = z.infer<typeof hostedRedisCapabilityConfigSchema>;
|
|
85
|
-
export type HostedStorageBundleConfig = z.infer<typeof hostedStorageBundleConfigSchema>;
|
|
86
|
-
export type HostedDefaultRuntimeBindingConfig = z.infer<typeof hostedDefaultRuntimeBindingConfigSchema>;
|
|
87
|
-
//# sourceMappingURL=saas.d.ts.map
|
package/dist/saas.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"saas.d.ts","sourceRoot":"","sources":["../src/saas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,iCAAiC;;;iBAG5C,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG1C,CAAC;AAEH,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMlD,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC"}
|
package/dist/saas.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { emailTransportConfigSchema, storageProviderConfigSchema, } from "./index.js";
|
|
3
|
-
export const hostedRedisCapabilityConfigSchema = z.object({
|
|
4
|
-
namespacePrefix: z.string().trim().min(1).nullable().optional(),
|
|
5
|
-
url: z.string().trim().min(1).nullable().optional(),
|
|
6
|
-
});
|
|
7
|
-
export const hostedStorageBundleConfigSchema = z.object({
|
|
8
|
-
environment: storageProviderConfigSchema,
|
|
9
|
-
platform: storageProviderConfigSchema,
|
|
10
|
-
});
|
|
11
|
-
export const hostedDefaultRuntimeBindingConfigSchema = z.object({
|
|
12
|
-
databaseNamePrefix: z.string().trim().min(1).nullable().optional(),
|
|
13
|
-
databaseUrlTemplate: z.string().trim().min(1).nullable().optional(),
|
|
14
|
-
email: emailTransportConfigSchema.nullable().optional(),
|
|
15
|
-
redis: hostedRedisCapabilityConfigSchema.nullable().optional(),
|
|
16
|
-
storage: hostedStorageBundleConfigSchema,
|
|
17
|
-
});
|