@datapos/datapos-shared 0.3.315 → 0.3.316
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,6 +1,6 @@
|
|
|
1
1
|
import { parse as csvParse } from 'csv-parse/browser/esm';
|
|
2
2
|
import { parse as dateFnsParse } from 'date-fns';
|
|
3
|
-
import {
|
|
3
|
+
import { InferOutput } from 'valibot';
|
|
4
4
|
import { nanoid } from 'nanoid';
|
|
5
5
|
import { connectorConfigSchema } from './connectorConfig.schema';
|
|
6
6
|
import { buildFetchError, OperationalError } from '../../errors';
|
|
@@ -33,7 +33,7 @@ export interface Connector extends Component {
|
|
|
33
33
|
upsertRecords?(connector: Connector, settings: UpsertSettings): Promise<void>;
|
|
34
34
|
}
|
|
35
35
|
export { connectorConfigSchema };
|
|
36
|
-
export type ConnectorConfig =
|
|
36
|
+
export type ConnectorConfig = InferOutput<typeof connectorConfigSchema>;
|
|
37
37
|
export interface ConnectorConfig1 extends ModuleConfig {
|
|
38
38
|
category: ConnectorCategory | null;
|
|
39
39
|
categoryId: ConnectorModuleCategoryId;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InferOutput } from 'valibot';
|
|
2
2
|
import { contextConfigSchema } from './contextConfig.schema';
|
|
3
3
|
import { LocalisedString } from '../../index';
|
|
4
4
|
import { Component, ComponentConfig, ComponentRef, ModuleConfig } from '..';
|
|
@@ -16,7 +16,7 @@ export type ContextCallbackData = {
|
|
|
16
16
|
properties: Record<string, unknown>;
|
|
17
17
|
};
|
|
18
18
|
export { contextConfigSchema };
|
|
19
|
-
export type ContextConfig =
|
|
19
|
+
export type ContextConfig = InferOutput<typeof contextConfigSchema>;
|
|
20
20
|
export interface ContextConfig1 extends ModuleConfig {
|
|
21
21
|
models: ContextModelGroupConfig[];
|
|
22
22
|
operations: ContextOperation[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InferOutput } from 'valibot';
|
|
2
2
|
import { ComponentConfig } from '..';
|
|
3
3
|
import { presenterConfigSchema } from './presenterConfig.schema';
|
|
4
4
|
export { presenterConfigSchema };
|
|
5
|
-
export type PresentationConfig =
|
|
5
|
+
export type PresentationConfig = InferOutput<typeof presenterConfigSchema>;
|
|
6
6
|
export interface PresentationConfig1 extends ComponentConfig {
|
|
7
7
|
content: string;
|
|
8
8
|
order: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.316",
|
|
4
4
|
"description": "A library containing common constants, types and utilities used across all Data Positioning projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|