@xyo-network/schema-payload-plugin 3.2.0 → 3.3.1
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,39 +1,88 @@
|
|
|
1
1
|
import { type Payload } from '@xyo-network/payload-model';
|
|
2
2
|
import { SchemaSchema } from './Schema.ts';
|
|
3
3
|
export type SchemaPayload = Payload<{
|
|
4
|
+
/**
|
|
5
|
+
* The schema definition
|
|
6
|
+
*/
|
|
4
7
|
definition: {
|
|
5
8
|
[key: string]: unknown;
|
|
6
9
|
$id?: string;
|
|
7
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* The schema this schema extends (if any)
|
|
13
|
+
*/
|
|
8
14
|
extends?: string;
|
|
15
|
+
/** @deprecated use definition.$id instead */
|
|
9
16
|
name?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Identifies this payload as a Schema
|
|
19
|
+
*/
|
|
10
20
|
schema: SchemaSchema;
|
|
11
21
|
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Identity function for determining if an object is an Schema
|
|
24
|
+
*/
|
|
12
25
|
export declare const isSchemaPayload: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
26
|
+
/**
|
|
27
|
+
* The schema definition
|
|
28
|
+
*/
|
|
13
29
|
definition: {
|
|
14
30
|
[key: string]: unknown;
|
|
15
31
|
$id?: string;
|
|
16
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* The schema this schema extends (if any)
|
|
35
|
+
*/
|
|
17
36
|
extends?: string;
|
|
37
|
+
/** @deprecated use definition.$id instead */
|
|
18
38
|
name?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Identifies this payload as a Schema
|
|
41
|
+
*/
|
|
19
42
|
schema: SchemaSchema;
|
|
20
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Identity function for determining if an object is an Schema with sources
|
|
46
|
+
*/
|
|
21
47
|
export declare const isSchemaPayloadWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
48
|
+
/**
|
|
49
|
+
* The schema definition
|
|
50
|
+
*/
|
|
22
51
|
definition: {
|
|
23
52
|
[key: string]: unknown;
|
|
24
53
|
$id?: string;
|
|
25
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* The schema this schema extends (if any)
|
|
57
|
+
*/
|
|
26
58
|
extends?: string;
|
|
59
|
+
/** @deprecated use definition.$id instead */
|
|
27
60
|
name?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Identifies this payload as a Schema
|
|
63
|
+
*/
|
|
28
64
|
schema: SchemaSchema;
|
|
29
65
|
}>;
|
|
66
|
+
/**
|
|
67
|
+
* Identity function for determining if an object is an Schema with meta
|
|
68
|
+
*/
|
|
30
69
|
export declare const isSchemaPayloadWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
70
|
+
/**
|
|
71
|
+
* The schema definition
|
|
72
|
+
*/
|
|
31
73
|
definition: {
|
|
32
74
|
[key: string]: unknown;
|
|
33
75
|
$id?: string;
|
|
34
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* The schema this schema extends (if any)
|
|
79
|
+
*/
|
|
35
80
|
extends?: string;
|
|
81
|
+
/** @deprecated use definition.$id instead */
|
|
36
82
|
name?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Identifies this payload as a Schema
|
|
85
|
+
*/
|
|
37
86
|
schema: SchemaSchema;
|
|
38
87
|
}>;
|
|
39
88
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EACmF,KAAK,OAAO,EACrG,MAAM,4BAA4B,CAAA;AAEnC,OAA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AM;IAEhB,6CAA6C;WACtC,MAAM;IAEb;;OAEG;YACK,YAAY;EAgB2E,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/schema-payload-plugin",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xyo-network/payload-model": "^3.
|
|
33
|
-
"@xyo-network/payload-plugin": "^3.
|
|
32
|
+
"@xyo-network/payload-model": "^3.3.1",
|
|
33
|
+
"@xyo-network/payload-plugin": "^3.3.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@xylabs/ts-scripts-yarn3": "^4.
|
|
37
|
-
"@xylabs/tsconfig": "^4.
|
|
38
|
-
"typescript": "^5.6.
|
|
36
|
+
"@xylabs/ts-scripts-yarn3": "^4.2.3",
|
|
37
|
+
"@xylabs/tsconfig": "^4.2.3",
|
|
38
|
+
"typescript": "^5.6.3"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|