@xyo-network/schema-payload-plugin 3.6.0-rc.8 → 3.6.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.
|
@@ -6,7 +6,6 @@ export type SchemaPayload = Payload<{
|
|
|
6
6
|
*/
|
|
7
7
|
definition: {
|
|
8
8
|
[key: string]: unknown;
|
|
9
|
-
$id?: string;
|
|
10
9
|
};
|
|
11
10
|
/**
|
|
12
11
|
* The schema this schema extends (if any)
|
|
@@ -14,43 +13,17 @@ export type SchemaPayload = Payload<{
|
|
|
14
13
|
extends?: string;
|
|
15
14
|
/** @deprecated use definition.$id instead */
|
|
16
15
|
name?: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
16
|
+
}, SchemaSchema> & {
|
|
17
|
+
definition: {
|
|
18
|
+
$id?: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
22
21
|
/**
|
|
23
22
|
* Identity function for determining if an object is an Schema
|
|
24
23
|
*/
|
|
25
|
-
export declare const isSchemaPayload: (x?: unknown | null) => x is
|
|
26
|
-
schema: "network.xyo.schema";
|
|
27
|
-
definition: {
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
30
|
-
extends?: string
|
|
31
|
-
/** @deprecated use definition.$id instead */
|
|
32
|
-
| undefined;
|
|
33
|
-
name?: string
|
|
34
|
-
/**
|
|
35
|
-
* Identifies this payload as a Schema
|
|
36
|
-
*/
|
|
37
|
-
| undefined;
|
|
38
|
-
}>;
|
|
24
|
+
export declare const isSchemaPayload: (x?: unknown | null) => x is SchemaPayload;
|
|
39
25
|
/**
|
|
40
26
|
* Identity function for determining if an object is an Schema with sources
|
|
41
27
|
*/
|
|
42
|
-
export declare const isSchemaPayloadWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<
|
|
43
|
-
schema: "network.xyo.schema";
|
|
44
|
-
definition: {
|
|
45
|
-
[x: string]: unknown;
|
|
46
|
-
};
|
|
47
|
-
extends?: string
|
|
48
|
-
/** @deprecated use definition.$id instead */
|
|
49
|
-
| undefined;
|
|
50
|
-
name?: string
|
|
51
|
-
/**
|
|
52
|
-
* Identifies this payload as a Schema
|
|
53
|
-
*/
|
|
54
|
-
| undefined;
|
|
55
|
-
}>>;
|
|
28
|
+
export declare const isSchemaPayloadWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<SchemaPayload>;
|
|
56
29
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EACoD,KAAK,OAAO,EACtE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC;IAClC;;OAEG;IACH,UAAU,EAAE;QACV,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EACoD,KAAK,OAAO,EACtE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC;IAClC;;OAEG;IACH,UAAU,EAAE;QACV,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KACvB,CAAA;IACD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,EAAE,YAAY,CAAC,GAAG;IACjB,UAAU,EAAE;QACV,GAAG,CAAC,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,4CAAqD,CAAA;AAEjF;;GAEG;AACH,eAAO,MAAM,0BAA0B,8FAAgE,CAAA"}
|
package/dist/neutral/Plugin.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
definition: {
|
|
4
|
-
[x: string]: unknown;
|
|
5
|
-
};
|
|
6
|
-
extends?: string | undefined;
|
|
7
|
-
name?: string | undefined;
|
|
8
|
-
}>>;
|
|
1
|
+
import type { SchemaPayload } from './Payload.ts';
|
|
2
|
+
export declare const SchemaPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<SchemaPayload>;
|
|
9
3
|
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAIjD,eAAO,MAAM,mBAAmB,0EAI5B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, type Payload,\n} from '@xyo-network/payload-model'\n\nimport { SchemaSchema } from './Schema.ts'\n\nexport type SchemaPayload = Payload<{\n /**\n * The schema definition\n */\n definition: {\n [key: string]: unknown\n
|
|
1
|
+
{"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, type Payload,\n} from '@xyo-network/payload-model'\n\nimport { SchemaSchema } from './Schema.ts'\n\nexport type SchemaPayload = Payload<{\n /**\n * The schema definition\n */\n definition: {\n [key: string]: unknown\n }\n /**\n * The schema this schema extends (if any)\n */\n extends?: string\n\n /** @deprecated use definition.$id instead */\n name?: string\n}, SchemaSchema> & {\n definition: {\n $id?: string\n }\n}\n\n/**\n * Identity function for determining if an object is an Schema\n */\nexport const isSchemaPayload = isPayloadOfSchemaType<SchemaPayload>(SchemaSchema)\n\n/**\n * Identity function for determining if an object is an Schema with sources\n */\nexport const isSchemaPayloadWithSources = isPayloadOfSchemaTypeWithSources<SchemaPayload>(SchemaSchema)\n","export type SchemaSchema = 'network.xyo.schema'\nexport const SchemaSchema: SchemaSchema = 'network.xyo.schema'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport type { SchemaPayload } from './Payload.ts'\nimport { SchemaSchema } from './Schema.ts'\nimport { schemaPayloadTemplate } from './Template.ts'\n\nexport const SchemaPayloadPlugin = () =>\n createPayloadPlugin<SchemaPayload>({\n schema: SchemaSchema,\n template: schemaPayloadTemplate,\n })\n","import type { SchemaPayload } from './Payload.ts'\nimport { SchemaSchema } from './Schema.ts'\nexport const schemaPayloadTemplate = (): SchemaPayload => ({\n definition: {\n $id: '',\n $schema: 'http://json-schema.org/draft-07/schema#',\n },\n schema: SchemaSchema,\n})\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EAAuB;AAAA,OAClB;;;ACDA,IAAM,eAA6B;;;AD4BnC,IAAM,kBAAkB,sBAAqC,YAAY;AAKzE,IAAM,6BAA6B,iCAAgD,YAAY;;;AElCtG,SAAS,2BAA2B;;;ACE7B,IAAM,wBAAwB,OAAsB;AAAA,EACzD,YAAY;AAAA,IACV,KAAK;AAAA,IACL,SAAS;AAAA,EACX;AAAA,EACA,QAAQ;AACV;;;ADFO,IAAM,sBAAsB,MACjC,oBAAmC;AAAA,EACjC,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/schema-payload-plugin",
|
|
3
|
-
"version": "3.6.0
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,18 +29,17 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xyo-network/payload-model": "^3.6.0
|
|
33
|
-
"@xyo-network/payload-plugin": "^3.6.0
|
|
32
|
+
"@xyo-network/payload-model": "^3.6.0",
|
|
33
|
+
"@xyo-network/payload-plugin": "^3.6.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@xylabs/ts-scripts-yarn3": "^4.2.
|
|
37
|
-
"@xylabs/tsconfig": "^4.2.
|
|
38
|
-
"@xylabs/vitest-extended": "^4.4.
|
|
36
|
+
"@xylabs/ts-scripts-yarn3": "^4.2.6",
|
|
37
|
+
"@xylabs/tsconfig": "^4.2.6",
|
|
38
|
+
"@xylabs/vitest-extended": "^4.4.26",
|
|
39
39
|
"typescript": "^5.7.2",
|
|
40
40
|
"vitest": "^2.1.8"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
|
-
}
|
|
45
|
-
"stableVersion": "3.5.2"
|
|
44
|
+
}
|
|
46
45
|
}
|
package/src/Payload.ts
CHANGED
|
@@ -10,7 +10,6 @@ export type SchemaPayload = Payload<{
|
|
|
10
10
|
*/
|
|
11
11
|
definition: {
|
|
12
12
|
[key: string]: unknown
|
|
13
|
-
$id?: string
|
|
14
13
|
}
|
|
15
14
|
/**
|
|
16
15
|
* The schema this schema extends (if any)
|
|
@@ -19,12 +18,11 @@ export type SchemaPayload = Payload<{
|
|
|
19
18
|
|
|
20
19
|
/** @deprecated use definition.$id instead */
|
|
21
20
|
name?: string
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}>
|
|
21
|
+
}, SchemaSchema> & {
|
|
22
|
+
definition: {
|
|
23
|
+
$id?: string
|
|
24
|
+
}
|
|
25
|
+
}
|
|
28
26
|
|
|
29
27
|
/**
|
|
30
28
|
* Identity function for determining if an object is an Schema
|