@datapos/datapos-shared 0.3.156 → 0.3.157

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.
@@ -1,3 +1,3 @@
1
1
  /**
2
- * Document composables, constants, types/interfaces, errors and utilities..
2
+ * Document composables, constants, errors, types/interfaces and utilities.
3
3
  */
@@ -12,6 +12,7 @@ export type { EngineModuleConfig } from './module';
12
12
  export type { InformerModuleConfig, InformerModuleOperation } from './module';
13
13
  export type { PresenterModuleConfig, PresenterModuleOperation } from './module';
14
14
  export { CONNECTOR_DESTINATION_OPERATIONS, CONNECTOR_SOURCE_OPERATIONS } from './module';
15
+ export * from './module/configSchema';
15
16
  export type { ComponentConfig, ComponentRef, ComponentStatus, ComponentStatusId, ComponentTypeId } from './component';
16
17
  export type { AuditContentResult, AuditContentSettings } from './component/connector';
17
18
  export type { Connector, ConnectorCallbackData, ConnectorConfig, ConnectorImplementation, ConnectorOperationSettings, ConnectorLocalisedConfig, ConnectorTools } from './component/connector';
@@ -0,0 +1,47 @@
1
+ import { z } from 'zod';
2
+ export declare const localeCodeSchema: z.ZodEnum<{
3
+ "en-au": "en-au";
4
+ "en-gb": "en-gb";
5
+ "en-us": "en-us";
6
+ "es-es": "es-es";
7
+ }>;
8
+ export declare const moduleTypeIdSchema: z.ZodEnum<{
9
+ connector: "connector";
10
+ context: "context";
11
+ presenter: "presenter";
12
+ informer: "informer";
13
+ app: "app";
14
+ engine: "engine";
15
+ }>;
16
+ export declare const partialLocalisedStringSchema: z.ZodObject<{
17
+ 'en-au': z.ZodOptional<z.ZodString>;
18
+ 'en-gb': z.ZodOptional<z.ZodString>;
19
+ 'en-us': z.ZodOptional<z.ZodString>;
20
+ 'es-es': z.ZodOptional<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ export declare const moduleConfigSchema: z.ZodObject<{
23
+ id: z.ZodString;
24
+ label: z.ZodObject<{
25
+ 'en-au': z.ZodOptional<z.ZodString>;
26
+ 'en-gb': z.ZodOptional<z.ZodString>;
27
+ 'en-us': z.ZodOptional<z.ZodString>;
28
+ 'es-es': z.ZodOptional<z.ZodString>;
29
+ }, z.core.$strip>;
30
+ description: z.ZodObject<{
31
+ 'en-au': z.ZodOptional<z.ZodString>;
32
+ 'en-gb': z.ZodOptional<z.ZodString>;
33
+ 'en-us': z.ZodOptional<z.ZodString>;
34
+ 'es-es': z.ZodOptional<z.ZodString>;
35
+ }, z.core.$strip>;
36
+ statusId: z.ZodUnknown;
37
+ typeId: z.ZodEnum<{
38
+ connector: "connector";
39
+ context: "context";
40
+ presenter: "presenter";
41
+ informer: "informer";
42
+ app: "app";
43
+ engine: "engine";
44
+ }>;
45
+ version: z.ZodString;
46
+ }, z.core.$strip>;
47
+ export type ModuleConfigZ = z.infer<typeof moduleConfigSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.156",
3
+ "version": "0.3.157",
4
4
  "description": "A TypeScript library containing common declarations and utilities used across other Data Positioning repositories.",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -45,7 +45,8 @@
45
45
  "retire": "^5.3.0",
46
46
  "typescript": "^5.9.3",
47
47
  "vite": "^7.2.2",
48
- "vite-plugin-dts": "^4.5.4"
48
+ "vite-plugin-dts": "^4.5.4",
49
+ "zod": "^4.1.12"
49
50
  },
50
51
  "scripts": {
51
52
  "audit": "npm audit",