@xyo-network/diviner-payload-model 5.3.0 → 5.3.2
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/Schema.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export declare const PayloadDivinerSchema: "network.xyo.diviner.payload" & {
|
|
2
|
+
readonly __schema: true;
|
|
3
|
+
};
|
|
4
|
+
export type PayloadDivinerSchema = typeof PayloadDivinerSchema;
|
|
3
5
|
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;CAAgD,CAAA;AACjF,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
// src/Config.ts
|
|
2
|
-
import { asSchema } from "@xyo-network/payload-model";
|
|
2
|
+
import { asSchema as asSchema2 } from "@xyo-network/payload-model";
|
|
3
3
|
|
|
4
4
|
// src/Schema.ts
|
|
5
|
-
|
|
5
|
+
import { asSchema } from "@xyo-network/payload-model";
|
|
6
|
+
var PayloadDivinerSchema = asSchema("network.xyo.diviner.payload", true);
|
|
6
7
|
|
|
7
8
|
// src/Config.ts
|
|
8
|
-
var PayloadDivinerConfigSchema =
|
|
9
|
+
var PayloadDivinerConfigSchema = asSchema2(`${PayloadDivinerSchema}.config`, true);
|
|
9
10
|
|
|
10
11
|
// src/Query.ts
|
|
11
12
|
import { AsObjectFactory } from "@xylabs/sdk-js";
|
|
12
|
-
import { asSchema as
|
|
13
|
-
var PayloadDivinerQuerySchema =
|
|
13
|
+
import { asSchema as asSchema3, isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
14
|
+
var PayloadDivinerQuerySchema = asSchema3(`${PayloadDivinerSchema}.query`, true);
|
|
14
15
|
var isPayloadDivinerQueryPayload = isPayloadOfSchemaType(PayloadDivinerQuerySchema);
|
|
15
16
|
var asPayloadDivinerQueryPayload = AsObjectFactory.create(isPayloadDivinerQueryPayload);
|
|
16
17
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts","../../src/Query.ts"],"sourcesContent":["import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/payload-model'\n\nimport { PayloadDivinerSchema } from './Schema.ts'\n\nexport const PayloadDivinerConfigSchema = asSchema(`${PayloadDivinerSchema}.config`, true)\nexport type PayloadDivinerConfigSchema = typeof PayloadDivinerConfigSchema\n\nexport type PayloadDivinerConfig<TAdditional extends EmptyObject | void = void, TSchema extends Schema | void = void> = DivinerConfig<\n WithAdditional<\n {\n indexBatchSize?: number\n maxIndexSize?: number\n },\n TAdditional\n >,\n TSchema extends void ? Schema : TSchema\n>\n","
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts","../../src/Query.ts"],"sourcesContent":["import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/payload-model'\n\nimport { PayloadDivinerSchema } from './Schema.ts'\n\nexport const PayloadDivinerConfigSchema = asSchema(`${PayloadDivinerSchema}.config`, true)\nexport type PayloadDivinerConfigSchema = typeof PayloadDivinerConfigSchema\n\nexport type PayloadDivinerConfig<TAdditional extends EmptyObject | void = void, TSchema extends Schema | void = void> = DivinerConfig<\n WithAdditional<\n {\n indexBatchSize?: number\n maxIndexSize?: number\n },\n TAdditional\n >,\n TSchema extends void ? Schema : TSchema\n>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const PayloadDivinerSchema = asSchema('network.xyo.diviner.payload', true)\nexport type PayloadDivinerSchema = typeof PayloadDivinerSchema\n","import type { EmptyObject } from '@xylabs/sdk-js'\nimport { AsObjectFactory } from '@xylabs/sdk-js'\nimport type { Query } from '@xyo-network/payload-model'\nimport { asSchema, isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport type { PayloadDivinerPredicate } from './Predicate.ts'\nimport { PayloadDivinerSchema } from './Schema.ts'\n\nexport const PayloadDivinerQuerySchema = asSchema(`${PayloadDivinerSchema}.query`, true)\nexport type PayloadDivinerQuerySchema = typeof PayloadDivinerQuerySchema\n\nexport type PayloadDivinerQueryPayload<T extends EmptyObject = EmptyObject> = Query<\n { schema: PayloadDivinerQuerySchema } & PayloadDivinerPredicate<T>\n>\n\nexport const isPayloadDivinerQueryPayload = isPayloadOfSchemaType<PayloadDivinerQueryPayload>(PayloadDivinerQuerySchema)\n\nexport const asPayloadDivinerQueryPayload = AsObjectFactory.create(isPayloadDivinerQueryPayload)\n"],"mappings":";AAEA,SAAS,YAAAA,iBAA6B;;;ACFtC,SAAS,gBAAgB;AAElB,IAAM,uBAAuB,SAAS,+BAA+B,IAAI;;;ADIzE,IAAM,6BAA6BC,UAAS,GAAG,oBAAoB,WAAW,IAAI;;;AELzF,SAAS,uBAAuB;AAEhC,SAAS,YAAAC,WAAU,6BAA6B;AAKzC,IAAM,4BAA4BC,UAAS,GAAG,oBAAoB,UAAU,IAAI;AAOhF,IAAM,+BAA+B,sBAAkD,yBAAyB;AAEhH,IAAM,+BAA+B,gBAAgB,OAAO,4BAA4B;","names":["asSchema","asSchema","asSchema","asSchema"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-payload-model",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.2",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@xylabs/sdk-js": "~5.0.64",
|
|
40
|
-
"@xyo-network/diviner-model": "~5.3.
|
|
41
|
-
"@xyo-network/module-model": "~5.3.
|
|
42
|
-
"@xyo-network/payload-model": "~5.3.
|
|
40
|
+
"@xyo-network/diviner-model": "~5.3.2",
|
|
41
|
+
"@xyo-network/module-model": "~5.3.2",
|
|
42
|
+
"@xyo-network/payload-model": "~5.3.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@xylabs/ts-scripts-yarn3": "~7.3.2",
|
package/src/Schema.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
+
|
|
3
|
+
export const PayloadDivinerSchema = asSchema('network.xyo.diviner.payload', true)
|
|
4
|
+
export type PayloadDivinerSchema = typeof PayloadDivinerSchema
|