@xube/kit-aws-schema 0.2.8 → 0.2.13
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/environment.d.ts +2 -18
- package/dist/environment.d.ts.map +1 -1
- package/dist/schema/auth/authentication.d.ts +2 -20
- package/dist/schema/auth/authentication.d.ts.map +1 -1
- package/dist/schema/table/item.d.ts +2 -17
- package/dist/schema/table/item.d.ts.map +1 -1
- package/dist/schema/table/keys.d.ts +2 -14
- package/dist/schema/table/keys.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/environment.d.ts
CHANGED
|
@@ -3,23 +3,7 @@ export declare const XubeAWSEnvironment: z.ZodObject<{
|
|
|
3
3
|
env: z.ZodObject<{
|
|
4
4
|
region: z.ZodString;
|
|
5
5
|
account: z.ZodString;
|
|
6
|
-
},
|
|
7
|
-
|
|
8
|
-
account: string;
|
|
9
|
-
}, {
|
|
10
|
-
region: string;
|
|
11
|
-
account: string;
|
|
12
|
-
}>;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
env: {
|
|
15
|
-
region: string;
|
|
16
|
-
account: string;
|
|
17
|
-
};
|
|
18
|
-
}, {
|
|
19
|
-
env: {
|
|
20
|
-
region: string;
|
|
21
|
-
account: string;
|
|
22
|
-
};
|
|
23
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
}, z.core.$strip>;
|
|
24
8
|
export type XubeEnvironment = z.infer<typeof XubeAWSEnvironment>;
|
|
25
9
|
//# sourceMappingURL=environment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../src/environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../src/environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -2,13 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const AuthenticationRequestSchema: z.ZodObject<{
|
|
3
3
|
email: z.ZodString;
|
|
4
4
|
password: z.ZodString;
|
|
5
|
-
},
|
|
6
|
-
email: string;
|
|
7
|
-
password: string;
|
|
8
|
-
}, {
|
|
9
|
-
email: string;
|
|
10
|
-
password: string;
|
|
11
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
12
6
|
export type AuthenticationRequest = z.infer<typeof AuthenticationRequestSchema>;
|
|
13
7
|
export declare const isAuthenticationRequest: (object: unknown) => object is AuthenticationRequest;
|
|
14
8
|
export declare const AuthenticationResponseSchema: z.ZodObject<{
|
|
@@ -17,19 +11,7 @@ export declare const AuthenticationResponseSchema: z.ZodObject<{
|
|
|
17
11
|
refreshToken: z.ZodString;
|
|
18
12
|
expiry: z.ZodNumber;
|
|
19
13
|
deviceKey: z.ZodOptional<z.ZodString>;
|
|
20
|
-
},
|
|
21
|
-
token: string;
|
|
22
|
-
accessToken: string;
|
|
23
|
-
refreshToken: string;
|
|
24
|
-
expiry: number;
|
|
25
|
-
deviceKey?: string | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
token: string;
|
|
28
|
-
accessToken: string;
|
|
29
|
-
refreshToken: string;
|
|
30
|
-
expiry: number;
|
|
31
|
-
deviceKey?: string | undefined;
|
|
32
|
-
}>;
|
|
14
|
+
}, z.core.$strip>;
|
|
33
15
|
export type AuthenticationResponse = z.infer<typeof AuthenticationResponseSchema>;
|
|
34
16
|
export declare const isAuthenticationResponse: (object: unknown) => object is AuthenticationResponse;
|
|
35
17
|
//# sourceMappingURL=authentication.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../../src/schema/auth/authentication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../../src/schema/auth/authentication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,eAAO,MAAM,uBAAuB,WAC1B,OAAO,KACd,MAAM,IAAI,qBACwD,CAAC;AAEtE,eAAO,MAAM,4BAA4B;;;;;;iBAMvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,eAAO,MAAM,wBAAwB,WAC3B,OAAO,KACd,MAAM,IAAI,sBACyD,CAAC"}
|
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const TableItemSchema: z.ZodObject<
|
|
2
|
+
export declare const TableItemSchema: z.ZodObject<{
|
|
3
3
|
s: z.ZodNumber;
|
|
4
4
|
us: z.ZodOptional<z.ZodNumber>;
|
|
5
5
|
type: z.ZodString;
|
|
6
6
|
id: z.ZodString;
|
|
7
|
-
}, {
|
|
8
7
|
PK: z.ZodString;
|
|
9
8
|
SK: z.ZodString;
|
|
10
|
-
}
|
|
11
|
-
type: string;
|
|
12
|
-
id: string;
|
|
13
|
-
PK: string;
|
|
14
|
-
SK: string;
|
|
15
|
-
s: number;
|
|
16
|
-
us?: number | undefined;
|
|
17
|
-
}, {
|
|
18
|
-
type: string;
|
|
19
|
-
id: string;
|
|
20
|
-
PK: string;
|
|
21
|
-
SK: string;
|
|
22
|
-
s: number;
|
|
23
|
-
us?: number | undefined;
|
|
24
|
-
}>;
|
|
9
|
+
}, z.core.$strip>;
|
|
25
10
|
export type TableItem = z.infer<typeof TableItemSchema>;
|
|
26
11
|
export declare const isTableItem: (obj: unknown) => obj is TableItem;
|
|
27
12
|
export declare const areTableItems: (obj: unknown) => obj is TableItem[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../src/schema/table/item.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;OAHG,EAAG,SAChC;QAAS,EAAG,WACd,CACA,EAAE,SAAS;UAAY,EAAG,SAAS;QAAS,EAAG,SAAS
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../src/schema/table/item.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;OAHG,EAAG,SAChC;QAAS,EAAG,WACd,CACA,EAAE,SAAS;UAAY,EAAG,SAAS;QAAS,EAAG,SAAS;;;iBAAW,CAAC;AACpE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,eAAO,MAAM,WAAW,QAAS,OAAO,KAAG,GAAG,IAAI,SACI,CAAC;AAEvD,eAAO,MAAM,aAAa,QAAS,OAAO,KAAG,GAAG,IAAI,SAAS,EAE5D,CAAC"}
|
|
@@ -4,24 +4,12 @@ export declare const SORT_KEY = "SK";
|
|
|
4
4
|
export declare const TableKeySchema: z.ZodObject<{
|
|
5
5
|
PK: z.ZodString;
|
|
6
6
|
SK: z.ZodString;
|
|
7
|
-
},
|
|
8
|
-
PK: string;
|
|
9
|
-
SK: string;
|
|
10
|
-
}, {
|
|
11
|
-
PK: string;
|
|
12
|
-
SK: string;
|
|
13
|
-
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
14
8
|
export type TableKey = z.infer<typeof TableKeySchema>;
|
|
15
9
|
export declare const PartialTableKey: z.ZodObject<{
|
|
16
10
|
PK: z.ZodString;
|
|
17
11
|
SK: z.ZodOptional<z.ZodString>;
|
|
18
|
-
},
|
|
19
|
-
PK: string;
|
|
20
|
-
SK?: string | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
PK: string;
|
|
23
|
-
SK?: string | undefined;
|
|
24
|
-
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
25
13
|
export type PartialTableKey = z.infer<typeof PartialTableKey>;
|
|
26
14
|
export declare const getAggregateKeyFromTableKey: (tableKey: TableKey) => string;
|
|
27
15
|
//# sourceMappingURL=keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/schema/table/keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa,OAAO,CAAC;AAClC,eAAO,MAAM,QAAQ,OAAO,CAAC;AAE7B,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/schema/table/keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa,OAAO,CAAC;AAClC,eAAO,MAAM,QAAQ,OAAO,CAAC;AAE7B,eAAO,MAAM,cAAc;;;iBAGzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,eAAe;;;iBAG1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,2BAA2B,aAAc,QAAQ,WAE7D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xube/kit-aws-schema",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"homepage": "https://github.com/XubeLtd/dev-kit#readme",
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/aws-lambda": "^8.10.119",
|
|
21
|
-
"@xube/kit-build": "^0.2.
|
|
21
|
+
"@xube/kit-build": "^0.2.13"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@xube/kit-schema": "^0.2.
|
|
25
|
-
"zod": "^
|
|
24
|
+
"@xube/kit-schema": "^0.2.13",
|
|
25
|
+
"zod": "^4.4.3"
|
|
26
26
|
}
|
|
27
27
|
}
|