@xyo-network/schema-payload-plugin 3.10.4 → 3.10.6
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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } 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
|
|
1
|
+
{"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } 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 $id?: string\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\n /**\n * The version of the schema major * 1,000,000 + minor * 1,000 + patch\n */\n version?: number\n}, SchemaSchema>\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 const SchemaSchema = 'network.xyo.schema' as const\nexport type SchemaSchema = typeof SchemaSchema\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":";AACA,SAAS,uBAAuB,wCAAwC;;;ACDjE,IAAM,eAAe;;;AD8BrB,IAAM,kBAAkB,sBAAqC,YAAY;AAKzE,IAAM,6BAA6B,iCAAgD,YAAY;;;AEnCtG,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/dist/types/Payload.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type SchemaPayload = Payload<{
|
|
|
6
6
|
*/
|
|
7
7
|
definition: {
|
|
8
8
|
[key: string]: unknown;
|
|
9
|
+
$id?: string;
|
|
9
10
|
};
|
|
10
11
|
/**
|
|
11
12
|
* The schema this schema extends (if any)
|
|
@@ -13,11 +14,11 @@ export type SchemaPayload = Payload<{
|
|
|
13
14
|
extends?: string;
|
|
14
15
|
/** @deprecated use definition.$id instead */
|
|
15
16
|
name?: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
17
|
+
/**
|
|
18
|
+
* The version of the schema major * 1,000,000 + minor * 1,000 + patch
|
|
19
|
+
*/
|
|
20
|
+
version?: number;
|
|
21
|
+
}, SchemaSchema>;
|
|
21
22
|
/**
|
|
22
23
|
* Identity function for determining if an object is an Schema
|
|
23
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,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,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,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;QACtB,GAAG,CAAC,EAAE,MAAM,CAAA;KACb,CAAA;IACD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,EAAE,YAAY,CAAC,CAAA;AAEhB;;GAEG;AACH,eAAO,MAAM,eAAe,4CAAqD,CAAA;AAEjF;;GAEG;AACH,eAAO,MAAM,0BAA0B,8FAAgE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/schema-payload-plugin",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.6",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,12 +29,13 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/types/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xyo-network/payload-model": "^3.10.
|
|
33
|
-
"@xyo-network/payload-plugin": "^3.10.
|
|
32
|
+
"@xyo-network/payload-model": "^3.10.6",
|
|
33
|
+
"@xyo-network/payload-plugin": "^3.10.6",
|
|
34
|
+
"ajv": "^8.17.1"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
|
-
"@xylabs/ts-scripts-yarn3": "^6.1.
|
|
37
|
-
"@xylabs/tsconfig": "^6.1.
|
|
37
|
+
"@xylabs/ts-scripts-yarn3": "^6.1.5",
|
|
38
|
+
"@xylabs/tsconfig": "^6.1.5",
|
|
38
39
|
"@xylabs/vitest-extended": "^4.7.11",
|
|
39
40
|
"typescript": "^5.8.2",
|
|
40
41
|
"vitest": "^3.0.9"
|
package/src/Payload.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type SchemaPayload = Payload<{
|
|
|
9
9
|
*/
|
|
10
10
|
definition: {
|
|
11
11
|
[key: string]: unknown
|
|
12
|
+
$id?: string
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* The schema this schema extends (if any)
|
|
@@ -17,11 +18,12 @@ export type SchemaPayload = Payload<{
|
|
|
17
18
|
|
|
18
19
|
/** @deprecated use definition.$id instead */
|
|
19
20
|
name?: string
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The version of the schema major * 1,000,000 + minor * 1,000 + patch
|
|
24
|
+
*/
|
|
25
|
+
version?: number
|
|
26
|
+
}, SchemaSchema>
|
|
25
27
|
|
|
26
28
|
/**
|
|
27
29
|
* Identity function for determining if an object is an Schema
|
package/eslint.config.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { config as default } from '@xylabs/eslint-config-flat'
|