@xube/kit-schema 0.0.105 → 0.0.107

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.
@@ -50,14 +50,17 @@ export declare const TimeSeriesEntrySchema: z.ZodObject<{
50
50
  readonly component: "component";
51
51
  readonly platform: "platform";
52
52
  }>;
53
+ component: z.ZodOptional<z.ZodString>;
53
54
  }, "strip", z.ZodTypeAny, {
54
55
  id: string;
55
56
  trigger: "data" | "event";
56
57
  source: "device" | "component" | "platform";
58
+ component?: string | undefined;
57
59
  }, {
58
60
  id: string;
59
61
  trigger: "data" | "event";
60
62
  source: "device" | "component" | "platform";
63
+ component?: string | undefined;
61
64
  }>;
62
65
  t0: z.ZodString;
63
66
  dtt: z.ZodDefault<z.ZodNativeEnum<{
@@ -86,6 +89,7 @@ export declare const TimeSeriesEntrySchema: z.ZodObject<{
86
89
  id: string;
87
90
  trigger: "data" | "event";
88
91
  source: "device" | "component" | "platform";
92
+ component?: string | undefined;
89
93
  };
90
94
  v: string;
91
95
  t0: string;
@@ -101,6 +105,7 @@ export declare const TimeSeriesEntrySchema: z.ZodObject<{
101
105
  id: string;
102
106
  trigger: "data" | "event";
103
107
  source: "device" | "component" | "platform";
108
+ component?: string | undefined;
104
109
  };
105
110
  v: string;
106
111
  t0: string;
@@ -125,14 +130,17 @@ export declare const TimeSeriesSchema: z.ZodArray<z.ZodObject<{
125
130
  readonly component: "component";
126
131
  readonly platform: "platform";
127
132
  }>;
133
+ component: z.ZodOptional<z.ZodString>;
128
134
  }, "strip", z.ZodTypeAny, {
129
135
  id: string;
130
136
  trigger: "data" | "event";
131
137
  source: "device" | "component" | "platform";
138
+ component?: string | undefined;
132
139
  }, {
133
140
  id: string;
134
141
  trigger: "data" | "event";
135
142
  source: "device" | "component" | "platform";
143
+ component?: string | undefined;
136
144
  }>;
137
145
  t0: z.ZodString;
138
146
  dtt: z.ZodDefault<z.ZodNativeEnum<{
@@ -161,6 +169,7 @@ export declare const TimeSeriesSchema: z.ZodArray<z.ZodObject<{
161
169
  id: string;
162
170
  trigger: "data" | "event";
163
171
  source: "device" | "component" | "platform";
172
+ component?: string | undefined;
164
173
  };
165
174
  v: string;
166
175
  t0: string;
@@ -176,6 +185,7 @@ export declare const TimeSeriesSchema: z.ZodArray<z.ZodObject<{
176
185
  id: string;
177
186
  trigger: "data" | "event";
178
187
  source: "device" | "component" | "platform";
188
+ component?: string | undefined;
179
189
  };
180
190
  v: string;
181
191
  t0: string;
@@ -1 +1 @@
1
- {"version":3,"file":"time-series.d.ts","sourceRoot":"","sources":["../src/time-series.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW;;;;CAId,CAAC;AACX,eAAO,MAAM,gBAAgB;;;;EAA4B,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX,eAAO,MAAM,iBAAiB;;;EAA6B,CAAC;AAC5D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,QAAQ;;;;;;;CAOX,CAAC;AACX,eAAO,MAAM,cAAc;;;;;;;EAAyB,CAAC;AACrD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,sBAAsB,6MAKjC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;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GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,iBAAiB,EAAE,UAyC/B,CAAC"}
@@ -34,6 +34,7 @@ exports.TimeSeriesEntrySchema = zod_1.z.object({
34
34
  id: zod_1.z.string(),
35
35
  trigger: exports.TriggerTypeSchema,
36
36
  source: exports.SourceTypeSchema,
37
+ component: zod_1.z.string().optional(),
37
38
  }),
38
39
  t0: zod_1.z.string().datetime(), //in microseconds since epoch
39
40
  dtt: exports.TimeUnitSchema.default("ms"), //delta type - time unit
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xube/kit-schema",
3
- "version": "0.0.105",
3
+ "version": "0.0.107",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -18,12 +18,12 @@
18
18
  "homepage": "https://github.com/XubeLtd/data-logger#readme",
19
19
  "dependencies": {
20
20
  "@anatine/zod-openapi": "^2.2.0",
21
- "@xube/kit-constants": "^0.0.105",
22
- "@xube/kit-generator": "^0.0.105",
23
- "@xube/kit-log": "^0.0.105",
21
+ "@xube/kit-constants": "^0.0.107",
22
+ "@xube/kit-generator": "^0.0.107",
23
+ "@xube/kit-log": "^0.0.107",
24
24
  "zod": "^3.23.8"
25
25
  },
26
26
  "devDependencies": {
27
- "@xube/kit-build": "^0.0.105"
27
+ "@xube/kit-build": "^0.0.107"
28
28
  }
29
29
  }
@@ -39,6 +39,7 @@ export const TimeSeriesEntrySchema = z.object({
39
39
  id: z.string(),
40
40
  trigger: TriggerTypeSchema,
41
41
  source: SourceTypeSchema,
42
+ component: z.string().optional(),
42
43
  }),
43
44
  t0: z.string().datetime(), //in microseconds since epoch
44
45
  dtt: TimeUnitSchema.default("ms"), //delta type - time unit