@xyo-network/schema-payload-plugin 4.0.2 → 4.1.0
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/neutral/index.d.ts +41 -0
- package/package.json +8 -8
- /package/{dist/types → build/neutral}/Payload.d.ts +0 -0
- /package/{dist/types → build/neutral}/Payload.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Plugin.d.ts +0 -0
- /package/{dist/types → build/neutral}/Plugin.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Schema.d.ts +0 -0
- /package/{dist/types → build/neutral}/Schema.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Template.d.ts +0 -0
- /package/{dist/types → build/neutral}/Template.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/index.d.ts +0 -0
- /package/{dist/types → build/neutral}/index.d.ts.map +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
2
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
import * as _xyo_network_payload_plugin from '@xyo-network/payload-plugin';
|
|
4
|
+
|
|
5
|
+
declare const SchemaSchema: "network.xyo.schema";
|
|
6
|
+
type SchemaSchema = typeof SchemaSchema;
|
|
7
|
+
|
|
8
|
+
type SchemaPayload = Payload<{
|
|
9
|
+
/**
|
|
10
|
+
* The schema definition
|
|
11
|
+
*/
|
|
12
|
+
definition: {
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
$id?: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The schema this schema extends (if any)
|
|
18
|
+
*/
|
|
19
|
+
extends?: string;
|
|
20
|
+
/** @deprecated use definition.$id instead */
|
|
21
|
+
name?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The version of the schema major * 1,000,000 + minor * 1,000 + patch
|
|
24
|
+
*/
|
|
25
|
+
version?: number;
|
|
26
|
+
}, SchemaSchema>;
|
|
27
|
+
/**
|
|
28
|
+
* Identity function for determining if an object is an Schema
|
|
29
|
+
*/
|
|
30
|
+
declare const isSchemaPayload: (x?: unknown | null) => x is SchemaPayload;
|
|
31
|
+
/**
|
|
32
|
+
* Identity function for determining if an object is an Schema with sources
|
|
33
|
+
*/
|
|
34
|
+
declare const isSchemaPayloadWithSources: (x?: unknown | null) => x is _xyo_network_payload_model.WithSources<SchemaPayload>;
|
|
35
|
+
|
|
36
|
+
declare const SchemaPayloadPlugin: () => _xyo_network_payload_plugin.PayloadPlugin<SchemaPayload>;
|
|
37
|
+
|
|
38
|
+
declare const schemaPayloadTemplate: () => SchemaPayload;
|
|
39
|
+
|
|
40
|
+
export { SchemaPayloadPlugin, SchemaSchema, SchemaPayloadPlugin as default, isSchemaPayload, isSchemaPayloadWithSources, schemaPayloadTemplate };
|
|
41
|
+
export type { SchemaPayload };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/schema-payload-plugin",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,21 +21,21 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/neutral/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xyo-network/payload-model": "^4.0
|
|
33
|
-
"@xyo-network/payload-plugin": "^4.0
|
|
32
|
+
"@xyo-network/payload-model": "^4.1.0",
|
|
33
|
+
"@xyo-network/payload-plugin": "^4.1.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
37
|
-
"@xylabs/tsconfig": "^
|
|
38
|
-
"@xylabs/vitest-extended": "^4.
|
|
36
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
|
|
37
|
+
"@xylabs/tsconfig": "^7.0.0-rc.20",
|
|
38
|
+
"@xylabs/vitest-extended": "^4.13.15",
|
|
39
39
|
"typescript": "^5.8.3",
|
|
40
40
|
"vitest": "^3.2.4"
|
|
41
41
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|