@xube/kit-aws-data-schema 0.0.88 → 0.0.90

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.
@@ -10,7 +10,7 @@ exports.AggregateMetadataSchema = zod_1.z.object({
10
10
  exports.AggregateMetaDataV1Version = 1;
11
11
  exports.AggregateMetadataV1Schema = exports.AggregateMetadataSchema.merge(zod_1.z.object({
12
12
  v: zod_1.z.literal(exports.AggregateMetaDataV1Version),
13
- s: zod_1.z.number(),
13
+ s: zod_1.z.number(), //Size??
14
14
  m: zod_1.z.array(reading_1.DeviceReadingV1Schema), //Reading Metadata Array
15
15
  }));
16
16
  exports.AggregateMetadataSchemas = exports.AggregateMetadataV1Schema;
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
5
5
  const kit_schema_1 = require("@xube/kit-schema");
6
6
  exports.ReadingDataTypesSchema = kit_schema_1.GenericDataTypesSchema;
7
7
  exports.DeviceReadingMetadataV1Schema = zod_1.z.object({
8
- s: zod_1.z.number(),
8
+ s: zod_1.z.number(), //Seconds,
9
9
  us: zod_1.z.number(), //Microseconds
10
10
  });
11
11
  exports.DeviceReadingV1Schema = zod_1.z.object({
@@ -1,13 +1,9 @@
1
1
  export function validate(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
2
2
  instancePath?: string | undefined;
3
- parentData: any;
4
- parentDataProperty: any;
5
3
  rootData?: any;
6
4
  }): boolean;
7
5
  export default validate10;
8
6
  declare function validate10(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
9
7
  instancePath?: string | undefined;
10
- parentData: any;
11
- parentDataProperty: any;
12
8
  rootData?: any;
13
9
  }): boolean;
@@ -1,13 +1,9 @@
1
1
  export function validate(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
2
2
  instancePath?: string | undefined;
3
- parentData: any;
4
- parentDataProperty: any;
5
3
  rootData?: any;
6
4
  }): boolean;
7
5
  export default validate10;
8
6
  declare function validate10(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
9
7
  instancePath?: string | undefined;
10
- parentData: any;
11
- parentDataProperty: any;
12
8
  rootData?: any;
13
9
  }): boolean;
@@ -1,13 +1,9 @@
1
1
  export function validate(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
2
2
  instancePath?: string | undefined;
3
- parentData: any;
4
- parentDataProperty: any;
5
3
  rootData?: any;
6
4
  }): boolean;
7
5
  export default validate10;
8
6
  declare function validate10(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
9
7
  instancePath?: string | undefined;
10
- parentData: any;
11
- parentDataProperty: any;
12
8
  rootData?: any;
13
9
  }): boolean;
@@ -1,13 +1,9 @@
1
1
  export function validate(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
2
2
  instancePath?: string | undefined;
3
- parentData: any;
4
- parentDataProperty: any;
5
3
  rootData?: any;
6
4
  }): boolean;
7
5
  export default validate10;
8
6
  declare function validate10(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
9
7
  instancePath?: string | undefined;
10
- parentData: any;
11
- parentDataProperty: any;
12
8
  rootData?: any;
13
9
  }): boolean;
@@ -1,13 +1,9 @@
1
1
  export function validate(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
2
2
  instancePath?: string | undefined;
3
- parentData: any;
4
- parentDataProperty: any;
5
3
  rootData?: any;
6
4
  }): boolean;
7
5
  export default validate10;
8
6
  declare function validate10(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
9
7
  instancePath?: string | undefined;
10
- parentData: any;
11
- parentDataProperty: any;
12
8
  rootData?: any;
13
9
  }): boolean;
@@ -1,13 +1,9 @@
1
1
  export function validate(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
2
2
  instancePath?: string | undefined;
3
- parentData: any;
4
- parentDataProperty: any;
5
3
  rootData?: any;
6
4
  }): boolean;
7
5
  export default validate10;
8
6
  declare function validate10(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
9
7
  instancePath?: string | undefined;
10
- parentData: any;
11
- parentDataProperty: any;
12
8
  rootData?: any;
13
9
  }): boolean;
@@ -1,13 +1,9 @@
1
1
  export function validate(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
2
2
  instancePath?: string | undefined;
3
- parentData: any;
4
- parentDataProperty: any;
5
3
  rootData?: any;
6
4
  }): boolean;
7
5
  export default validate10;
8
6
  declare function validate10(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
9
7
  instancePath?: string | undefined;
10
- parentData: any;
11
- parentDataProperty: any;
12
8
  rootData?: any;
13
9
  }): boolean;
@@ -1,13 +1,9 @@
1
1
  export function validate(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
2
2
  instancePath?: string | undefined;
3
- parentData: any;
4
- parentDataProperty: any;
5
3
  rootData?: any;
6
4
  }): boolean;
7
5
  export default validate10;
8
6
  declare function validate10(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
9
7
  instancePath?: string | undefined;
10
- parentData: any;
11
- parentDataProperty: any;
12
8
  rootData?: any;
13
9
  }): boolean;
@@ -40,16 +40,7 @@ export declare const GetDataByDateRangeRequestSchema: z.ZodObject<{
40
40
  };
41
41
  }>;
42
42
  export type GetDataByDateRangeRequest = z.infer<typeof GetDataByDateRangeRequestSchema>;
43
- export declare const isGetDataByDateRangeRequest: (object: unknown) => object is {
44
- devices: {
45
- id: string;
46
- components: string[];
47
- }[];
48
- dateRange: {
49
- start: string;
50
- end: string;
51
- };
52
- };
43
+ export declare const isGetDataByDateRangeRequest: (object: unknown) => object is GetDataByDateRangeRequest;
53
44
  export declare const ComponentDataEntryResponseSchema: z.ZodObject<{
54
45
  seconds: z.ZodNumber;
55
46
  microseconds: z.ZodOptional<z.ZodNumber>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xube/kit-aws-data-schema",
3
- "version": "0.0.88",
3
+ "version": "0.0.90",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -18,17 +18,17 @@
18
18
  },
19
19
  "homepage": "https://github.com/XubeLtd/dev-kit#readme",
20
20
  "devDependencies": {
21
- "@types/node": "^20.4.7",
22
- "@xube/kit-build": "^0.0.88",
23
- "ts-node": "^10.9.1",
24
- "typescript": "^5.1.6"
21
+ "@types/node": "^22.5.4",
22
+ "@xube/kit-build": "^0.0.90",
23
+ "ts-node": "^10.9.2",
24
+ "typescript": "^5.6.2"
25
25
  },
26
26
  "dependencies": {
27
- "@xube/kit-aws-schema": "^0.0.88",
28
- "@xube/kit-constants": "^0.0.88",
29
- "@xube/kit-generator": "^0.0.88",
30
- "@xube/kit-log": "^0.0.88",
31
- "@xube/kit-schema": "^0.0.88",
27
+ "@xube/kit-aws-schema": "^0.0.90",
28
+ "@xube/kit-constants": "^0.0.90",
29
+ "@xube/kit-generator": "^0.0.90",
30
+ "@xube/kit-log": "^0.0.90",
31
+ "@xube/kit-schema": "^0.0.90",
32
32
  "zod": "^3.22.4",
33
33
  "zod-validation-error": "^2.0.0"
34
34
  }