@xyo-network/react-schema 2.38.6 → 2.38.8
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/cjs/diviners/SchemaListApiDiviner.d.ts +20 -0
- package/dist/cjs/diviners/SchemaListApiDiviner.d.ts.map +1 -0
- package/dist/cjs/diviners/SchemaListApiDiviner.js +54 -0
- package/dist/cjs/diviners/SchemaListApiDiviner.js.map +1 -0
- package/dist/cjs/diviners/SchemaListApiDivinerConfig.d.ts +9 -0
- package/dist/cjs/diviners/SchemaListApiDivinerConfig.d.ts.map +1 -0
- package/dist/cjs/diviners/SchemaListApiDivinerConfig.js +5 -0
- package/dist/cjs/diviners/SchemaListApiDivinerConfig.js.map +1 -0
- package/dist/cjs/diviners/index.d.ts +2 -0
- package/dist/cjs/diviners/index.d.ts.map +1 -0
- package/dist/cjs/diviners/index.js +5 -0
- package/dist/cjs/diviners/index.js.map +1 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/docs.json +555 -24
- package/dist/esm/diviners/SchemaListApiDiviner.d.ts +20 -0
- package/dist/esm/diviners/SchemaListApiDiviner.d.ts.map +1 -0
- package/dist/esm/diviners/SchemaListApiDiviner.js +36 -0
- package/dist/esm/diviners/SchemaListApiDiviner.js.map +1 -0
- package/dist/esm/diviners/SchemaListApiDivinerConfig.d.ts +9 -0
- package/dist/esm/diviners/SchemaListApiDivinerConfig.d.ts.map +1 -0
- package/dist/esm/diviners/SchemaListApiDivinerConfig.js +2 -0
- package/dist/esm/diviners/SchemaListApiDivinerConfig.js.map +1 -0
- package/dist/esm/diviners/index.d.ts +2 -0
- package/dist/esm/diviners/index.d.ts.map +1 -0
- package/dist/esm/diviners/index.js +2 -0
- package/dist/esm/diviners/index.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +8 -5
- package/src/diviners/SchemaListApiDiviner.spec.ts +23 -0
- package/src/diviners/SchemaListApiDiviner.ts +51 -0
- package/src/diviners/SchemaListApiDivinerConfig.ts +13 -0
- package/src/diviners/index.ts +1 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { XyoArchivistApi } from '@xyo-network/api';
|
|
2
|
+
import { XyoDiviner } from '@xyo-network/diviner';
|
|
3
|
+
import { XyoModuleParams } from '@xyo-network/module';
|
|
4
|
+
import { XyoPayload } from '@xyo-network/payload';
|
|
5
|
+
import { XyoSchemaListApiDivinerConfig } from './SchemaListApiDivinerConfig';
|
|
6
|
+
export declare type XyoSchemaListApiDivinerParams = XyoModuleParams<XyoSchemaListApiDivinerConfig> & {
|
|
7
|
+
api: XyoArchivistApi;
|
|
8
|
+
};
|
|
9
|
+
export declare class SchemaListApiDiviner extends XyoDiviner<XyoSchemaListApiDivinerConfig> {
|
|
10
|
+
protected readonly api: XyoArchivistApi;
|
|
11
|
+
get archive(): string;
|
|
12
|
+
static create(params: XyoSchemaListApiDivinerParams): Promise<SchemaListApiDiviner>;
|
|
13
|
+
protected constructor(params: XyoSchemaListApiDivinerParams);
|
|
14
|
+
queries(): string[];
|
|
15
|
+
protected start(): Promise<this>;
|
|
16
|
+
divine(): Promise<XyoPayload[]>;
|
|
17
|
+
static configSchema: "network.xyo.diviner.schema.list.api.config";
|
|
18
|
+
static targetSchema: "network.xyo.schema";
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=SchemaListApiDiviner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaListApiDiviner.d.ts","sourceRoot":"","sources":["../../../src/diviners/SchemaListApiDiviner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,UAAU,EAA+B,MAAM,sBAAsB,CAAA;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAGjD,OAAO,EAAE,6BAA6B,EAAuC,MAAM,8BAA8B,CAAA;AAEjH,oBAAY,6BAA6B,GAAG,eAAe,CAAC,6BAA6B,CAAC,GAAG;IAAE,GAAG,EAAE,eAAe,CAAA;CAAE,CAAA;AAErH,qBAAa,oBAAqB,SAAQ,UAAU,CAAC,6BAA6B,CAAC;IACjF,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,eAAe,CAAA;IAEvC,IAAI,OAAO,WAEV;WAEqB,MAAM,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIlG,SAAS,aAAa,MAAM,EAAE,6BAA6B;IAKlD,OAAO;cAIS,KAAK;IAKjB,MAAM,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAY5C,OAAgB,YAAY,+CAAsC;IAClE,OAAgB,YAAY,uBAAkB;CAC/C"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchemaListApiDiviner = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const sdk_js_1 = require("@xylabs/sdk-js");
|
|
6
|
+
const diviner_1 = require("@xyo-network/diviner");
|
|
7
|
+
const schema_payload_plugin_1 = require("@xyo-network/schema-payload-plugin");
|
|
8
|
+
const SchemaListApiDivinerConfig_1 = require("./SchemaListApiDivinerConfig");
|
|
9
|
+
class SchemaListApiDiviner extends diviner_1.XyoDiviner {
|
|
10
|
+
constructor(params) {
|
|
11
|
+
super(params);
|
|
12
|
+
this.api = params.api;
|
|
13
|
+
}
|
|
14
|
+
get archive() {
|
|
15
|
+
var _a;
|
|
16
|
+
return (0, sdk_js_1.assertEx)((_a = this.config) === null || _a === void 0 ? void 0 : _a.archive, `config required [${this.config}]`);
|
|
17
|
+
}
|
|
18
|
+
static create(params) {
|
|
19
|
+
const _super = Object.create(null, {
|
|
20
|
+
create: { get: () => super.create }
|
|
21
|
+
});
|
|
22
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
return (yield _super.create.call(this, params));
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
queries() {
|
|
27
|
+
return [diviner_1.XyoDivinerDivineQuerySchema, ...super.queries()];
|
|
28
|
+
}
|
|
29
|
+
start() {
|
|
30
|
+
const _super = Object.create(null, {
|
|
31
|
+
start: { get: () => super.start }
|
|
32
|
+
});
|
|
33
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
yield _super.start.call(this);
|
|
35
|
+
return this;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
divine() {
|
|
39
|
+
var _a, _b, _c;
|
|
40
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
const apiResult = (_b = (yield ((_a = this.api.archive(this.archive)) === null || _a === void 0 ? void 0 : _a.payload.schema.get()))) !== null && _b !== void 0 ? _b : [];
|
|
42
|
+
return ((_c = apiResult.map((schema) => {
|
|
43
|
+
return {
|
|
44
|
+
name: schema,
|
|
45
|
+
schema: schema_payload_plugin_1.XyoSchemaSchema,
|
|
46
|
+
};
|
|
47
|
+
})) !== null && _c !== void 0 ? _c : []);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.SchemaListApiDiviner = SchemaListApiDiviner;
|
|
52
|
+
SchemaListApiDiviner.configSchema = SchemaListApiDivinerConfig_1.XyoSchemaListApiDivinerConfigSchema;
|
|
53
|
+
SchemaListApiDiviner.targetSchema = schema_payload_plugin_1.XyoSchemaSchema;
|
|
54
|
+
//# sourceMappingURL=SchemaListApiDiviner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaListApiDiviner.js","sourceRoot":"","sources":["../../../src/diviners/SchemaListApiDiviner.ts"],"names":[],"mappings":";;;;AAAA,2CAAyC;AAEzC,kDAA8E;AAG9E,8EAAoE;AAEpE,6EAAiH;AAIjH,MAAa,oBAAqB,SAAQ,oBAAyC;IAWjF,YAAsB,MAAqC;QACzD,KAAK,CAAC,MAAM,CAAC,CAAA;QACb,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAA;IACvB,CAAC;IAXD,IAAI,OAAO;;QACT,OAAO,IAAA,iBAAQ,EAAC,MAAA,IAAI,CAAC,MAAM,0CAAE,OAAO,EAAE,oBAAoB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAA;IAC3E,CAAC;IAED,MAAM,CAAgB,MAAM,CAAC,MAAqC;;;;;YAChE,OAAO,CAAC,MAAM,OAAM,MAAM,YAAC,MAAM,CAAC,CAAyB,CAAA;QAC7D,CAAC;KAAA;IAOQ,OAAO;QACd,OAAO,CAAC,qCAA2B,EAAE,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;IAC1D,CAAC;IAEwB,KAAK;;;;;YAC5B,MAAM,OAAM,KAAK,WAAE,CAAA;YACnB,OAAO,IAAI,CAAA;QACb,CAAC;KAAA;IAEY,MAAM;;;YACjB,MAAM,SAAS,GAAG,MAAA,CAAC,MAAM,CAAA,MAAA,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,0CAAE,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA,CAAC,mCAAI,EAAE,CAAA;YACpF,OAAO,CACL,MAAA,SAAS,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;gBACvB,OAAO;oBACL,IAAI,EAAE,MAAM;oBACZ,MAAM,EAAE,uCAAe;iBACxB,CAAA;YACH,CAAC,CAAC,mCAAI,EAAE,CACT,CAAA;;KACF;;AAnCH,oDAuCC;AAFiB,iCAAY,GAAG,gEAAmC,CAAA;AAClD,iCAAY,GAAG,uCAAe,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { XyoDivinerConfig } from '@xyo-network/diviner';
|
|
2
|
+
import { XyoPayload } from '@xyo-network/payload';
|
|
3
|
+
export declare type XyoSchemaListApiDivinerConfigSchema = 'network.xyo.diviner.schema.list.api.config';
|
|
4
|
+
export declare const XyoSchemaListApiDivinerConfigSchema: XyoSchemaListApiDivinerConfigSchema;
|
|
5
|
+
export declare type XyoSchemaListApiDivinerConfig<T extends XyoPayload = XyoPayload> = XyoDivinerConfig<XyoPayload, T & {
|
|
6
|
+
schema: XyoSchemaListApiDivinerConfigSchema;
|
|
7
|
+
archive: string;
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=SchemaListApiDivinerConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaListApiDivinerConfig.d.ts","sourceRoot":"","sources":["../../../src/diviners/SchemaListApiDivinerConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,oBAAY,mCAAmC,GAAG,4CAA4C,CAAA;AAC9F,eAAO,MAAM,mCAAmC,EAAE,mCAAkF,CAAA;AAEpI,oBAAY,6BAA6B,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,IAAI,gBAAgB,CAC7F,UAAU,EACV,CAAC,GAAG;IACF,MAAM,EAAE,mCAAmC,CAAA;IAC3C,OAAO,EAAE,MAAM,CAAA;CAChB,CACF,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XyoSchemaListApiDivinerConfigSchema = void 0;
|
|
4
|
+
exports.XyoSchemaListApiDivinerConfigSchema = 'network.xyo.diviner.schema.list.api.config';
|
|
5
|
+
//# sourceMappingURL=SchemaListApiDivinerConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaListApiDivinerConfig.js","sourceRoot":"","sources":["../../../src/diviners/SchemaListApiDivinerConfig.ts"],"names":[],"mappings":";;;AAIa,QAAA,mCAAmC,GAAwC,4CAA4C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/diviners/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/diviners/index.ts"],"names":[],"mappings":";;;AAAA,iEAAsC"}
|
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./components"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./contexts"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./diviners"), exports);
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,qDAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,qDAA0B;AAC1B,qDAA0B"}
|
package/dist/docs.json
CHANGED
|
@@ -6,6 +6,449 @@
|
|
|
6
6
|
"flags": {},
|
|
7
7
|
"originalName": "",
|
|
8
8
|
"children": [
|
|
9
|
+
{
|
|
10
|
+
"id": 46,
|
|
11
|
+
"name": "SchemaListApiDiviner",
|
|
12
|
+
"kind": 128,
|
|
13
|
+
"kindString": "Class",
|
|
14
|
+
"flags": {},
|
|
15
|
+
"children": [
|
|
16
|
+
{
|
|
17
|
+
"id": 52,
|
|
18
|
+
"name": "constructor",
|
|
19
|
+
"kind": 512,
|
|
20
|
+
"kindString": "Constructor",
|
|
21
|
+
"flags": {
|
|
22
|
+
"isProtected": true
|
|
23
|
+
},
|
|
24
|
+
"sources": [
|
|
25
|
+
{
|
|
26
|
+
"fileName": "packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts",
|
|
27
|
+
"line": 23,
|
|
28
|
+
"character": 2,
|
|
29
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts#L23"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"signatures": [
|
|
33
|
+
{
|
|
34
|
+
"id": 53,
|
|
35
|
+
"name": "new SchemaListApiDiviner",
|
|
36
|
+
"kind": 16384,
|
|
37
|
+
"kindString": "Constructor signature",
|
|
38
|
+
"flags": {},
|
|
39
|
+
"parameters": [
|
|
40
|
+
{
|
|
41
|
+
"id": 54,
|
|
42
|
+
"name": "params",
|
|
43
|
+
"kind": 32768,
|
|
44
|
+
"kindString": "Parameter",
|
|
45
|
+
"flags": {},
|
|
46
|
+
"type": {
|
|
47
|
+
"type": "reference",
|
|
48
|
+
"id": 43,
|
|
49
|
+
"name": "XyoSchemaListApiDivinerParams"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"type": {
|
|
54
|
+
"type": "reference",
|
|
55
|
+
"id": 46,
|
|
56
|
+
"name": "SchemaListApiDiviner"
|
|
57
|
+
},
|
|
58
|
+
"overwrites": {
|
|
59
|
+
"type": "reference",
|
|
60
|
+
"name": "XyoDiviner<XyoSchemaListApiDivinerConfig>.constructor"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"overwrites": {
|
|
65
|
+
"type": "reference",
|
|
66
|
+
"name": "XyoDiviner<XyoSchemaListApiDivinerConfig>.constructor"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": 55,
|
|
71
|
+
"name": "api",
|
|
72
|
+
"kind": 1024,
|
|
73
|
+
"kindString": "Property",
|
|
74
|
+
"flags": {
|
|
75
|
+
"isProtected": true,
|
|
76
|
+
"isReadonly": true
|
|
77
|
+
},
|
|
78
|
+
"sources": [
|
|
79
|
+
{
|
|
80
|
+
"fileName": "packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts",
|
|
81
|
+
"line": 13,
|
|
82
|
+
"character": 21,
|
|
83
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts#L13"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"type": {
|
|
87
|
+
"type": "reference",
|
|
88
|
+
"name": "XyoArchivistApi",
|
|
89
|
+
"qualifiedName": "XyoArchivistApi",
|
|
90
|
+
"package": "@xyo-network/api"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": 50,
|
|
95
|
+
"name": "configSchema",
|
|
96
|
+
"kind": 1024,
|
|
97
|
+
"kindString": "Property",
|
|
98
|
+
"flags": {
|
|
99
|
+
"isStatic": true
|
|
100
|
+
},
|
|
101
|
+
"sources": [
|
|
102
|
+
{
|
|
103
|
+
"fileName": "packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts",
|
|
104
|
+
"line": 49,
|
|
105
|
+
"character": 18,
|
|
106
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts#L49"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"type": {
|
|
110
|
+
"type": "literal",
|
|
111
|
+
"value": "network.xyo.diviner.schema.list.api.config"
|
|
112
|
+
},
|
|
113
|
+
"defaultValue": "XyoSchemaListApiDivinerConfigSchema",
|
|
114
|
+
"overwrites": {
|
|
115
|
+
"type": "reference",
|
|
116
|
+
"name": "XyoDiviner.configSchema"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"id": 51,
|
|
121
|
+
"name": "targetSchema",
|
|
122
|
+
"kind": 1024,
|
|
123
|
+
"kindString": "Property",
|
|
124
|
+
"flags": {
|
|
125
|
+
"isStatic": true
|
|
126
|
+
},
|
|
127
|
+
"sources": [
|
|
128
|
+
{
|
|
129
|
+
"fileName": "packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts",
|
|
130
|
+
"line": 50,
|
|
131
|
+
"character": 18,
|
|
132
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts#L50"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"type": {
|
|
136
|
+
"type": "literal",
|
|
137
|
+
"value": "network.xyo.schema"
|
|
138
|
+
},
|
|
139
|
+
"defaultValue": "XyoSchemaSchema",
|
|
140
|
+
"overwrites": {
|
|
141
|
+
"type": "reference",
|
|
142
|
+
"name": "XyoDiviner.targetSchema"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": 56,
|
|
147
|
+
"name": "archive",
|
|
148
|
+
"kind": 262144,
|
|
149
|
+
"kindString": "Accessor",
|
|
150
|
+
"flags": {},
|
|
151
|
+
"sources": [
|
|
152
|
+
{
|
|
153
|
+
"fileName": "packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts",
|
|
154
|
+
"line": 15,
|
|
155
|
+
"character": 6,
|
|
156
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts#L15"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"getSignature": {
|
|
160
|
+
"id": 57,
|
|
161
|
+
"name": "archive",
|
|
162
|
+
"kind": 524288,
|
|
163
|
+
"kindString": "Get signature",
|
|
164
|
+
"flags": {},
|
|
165
|
+
"type": {
|
|
166
|
+
"type": "intrinsic",
|
|
167
|
+
"name": "string"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"id": 62,
|
|
173
|
+
"name": "divine",
|
|
174
|
+
"kind": 2048,
|
|
175
|
+
"kindString": "Method",
|
|
176
|
+
"flags": {
|
|
177
|
+
"isPublic": true
|
|
178
|
+
},
|
|
179
|
+
"sources": [
|
|
180
|
+
{
|
|
181
|
+
"fileName": "packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts",
|
|
182
|
+
"line": 37,
|
|
183
|
+
"character": 15,
|
|
184
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts#L37"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"signatures": [
|
|
188
|
+
{
|
|
189
|
+
"id": 63,
|
|
190
|
+
"name": "divine",
|
|
191
|
+
"kind": 4096,
|
|
192
|
+
"kindString": "Call signature",
|
|
193
|
+
"flags": {},
|
|
194
|
+
"type": {
|
|
195
|
+
"type": "reference",
|
|
196
|
+
"typeArguments": [
|
|
197
|
+
{
|
|
198
|
+
"type": "array",
|
|
199
|
+
"elementType": {
|
|
200
|
+
"type": "intersection",
|
|
201
|
+
"types": [
|
|
202
|
+
{
|
|
203
|
+
"type": "reference",
|
|
204
|
+
"name": "SchemaFields",
|
|
205
|
+
"qualifiedName": "SchemaFields",
|
|
206
|
+
"package": "@xyo-network/payload"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"type": "reference",
|
|
210
|
+
"name": "PayloadFields",
|
|
211
|
+
"qualifiedName": "PayloadFields",
|
|
212
|
+
"package": "@xyo-network/payload"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"type": "reflection",
|
|
216
|
+
"declaration": {
|
|
217
|
+
"id": 64,
|
|
218
|
+
"name": "__type",
|
|
219
|
+
"kind": 65536,
|
|
220
|
+
"kindString": "Type literal",
|
|
221
|
+
"flags": {},
|
|
222
|
+
"sources": [
|
|
223
|
+
{
|
|
224
|
+
"fileName": "node_modules/@xyo-network/payload/dist/esm/models/XyoPayload.d.ts",
|
|
225
|
+
"line": 18,
|
|
226
|
+
"character": 17
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"name": "Promise",
|
|
236
|
+
"qualifiedName": "Promise",
|
|
237
|
+
"package": "typescript"
|
|
238
|
+
},
|
|
239
|
+
"overwrites": {
|
|
240
|
+
"type": "reference",
|
|
241
|
+
"name": "XyoDiviner.divine"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"overwrites": {
|
|
246
|
+
"type": "reference",
|
|
247
|
+
"name": "XyoDiviner.divine"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"id": 58,
|
|
252
|
+
"name": "queries",
|
|
253
|
+
"kind": 2048,
|
|
254
|
+
"kindString": "Method",
|
|
255
|
+
"flags": {},
|
|
256
|
+
"sources": [
|
|
257
|
+
{
|
|
258
|
+
"fileName": "packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts",
|
|
259
|
+
"line": 28,
|
|
260
|
+
"character": 11,
|
|
261
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts#L28"
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"signatures": [
|
|
265
|
+
{
|
|
266
|
+
"id": 59,
|
|
267
|
+
"name": "queries",
|
|
268
|
+
"kind": 4096,
|
|
269
|
+
"kindString": "Call signature",
|
|
270
|
+
"flags": {},
|
|
271
|
+
"type": {
|
|
272
|
+
"type": "array",
|
|
273
|
+
"elementType": {
|
|
274
|
+
"type": "intrinsic",
|
|
275
|
+
"name": "string"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"overwrites": {
|
|
279
|
+
"type": "reference",
|
|
280
|
+
"name": "XyoDiviner.queries"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"overwrites": {
|
|
285
|
+
"type": "reference",
|
|
286
|
+
"name": "XyoDiviner.queries"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"id": 60,
|
|
291
|
+
"name": "start",
|
|
292
|
+
"kind": 2048,
|
|
293
|
+
"kindString": "Method",
|
|
294
|
+
"flags": {
|
|
295
|
+
"isProtected": true
|
|
296
|
+
},
|
|
297
|
+
"sources": [
|
|
298
|
+
{
|
|
299
|
+
"fileName": "packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts",
|
|
300
|
+
"line": 32,
|
|
301
|
+
"character": 27,
|
|
302
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts#L32"
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"signatures": [
|
|
306
|
+
{
|
|
307
|
+
"id": 61,
|
|
308
|
+
"name": "start",
|
|
309
|
+
"kind": 4096,
|
|
310
|
+
"kindString": "Call signature",
|
|
311
|
+
"flags": {},
|
|
312
|
+
"type": {
|
|
313
|
+
"type": "reference",
|
|
314
|
+
"typeArguments": [
|
|
315
|
+
{
|
|
316
|
+
"type": "reference",
|
|
317
|
+
"id": 46,
|
|
318
|
+
"name": "SchemaListApiDiviner"
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
"name": "Promise",
|
|
322
|
+
"qualifiedName": "Promise",
|
|
323
|
+
"package": "typescript"
|
|
324
|
+
},
|
|
325
|
+
"overwrites": {
|
|
326
|
+
"type": "reference",
|
|
327
|
+
"name": "XyoDiviner.start"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"overwrites": {
|
|
332
|
+
"type": "reference",
|
|
333
|
+
"name": "XyoDiviner.start"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"id": 47,
|
|
338
|
+
"name": "create",
|
|
339
|
+
"kind": 2048,
|
|
340
|
+
"kindString": "Method",
|
|
341
|
+
"flags": {
|
|
342
|
+
"isStatic": true
|
|
343
|
+
},
|
|
344
|
+
"sources": [
|
|
345
|
+
{
|
|
346
|
+
"fileName": "packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts",
|
|
347
|
+
"line": 19,
|
|
348
|
+
"character": 24,
|
|
349
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts#L19"
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"signatures": [
|
|
353
|
+
{
|
|
354
|
+
"id": 48,
|
|
355
|
+
"name": "create",
|
|
356
|
+
"kind": 4096,
|
|
357
|
+
"kindString": "Call signature",
|
|
358
|
+
"flags": {},
|
|
359
|
+
"parameters": [
|
|
360
|
+
{
|
|
361
|
+
"id": 49,
|
|
362
|
+
"name": "params",
|
|
363
|
+
"kind": 32768,
|
|
364
|
+
"kindString": "Parameter",
|
|
365
|
+
"flags": {},
|
|
366
|
+
"type": {
|
|
367
|
+
"type": "reference",
|
|
368
|
+
"id": 43,
|
|
369
|
+
"name": "XyoSchemaListApiDivinerParams"
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"type": {
|
|
374
|
+
"type": "reference",
|
|
375
|
+
"typeArguments": [
|
|
376
|
+
{
|
|
377
|
+
"type": "reference",
|
|
378
|
+
"id": 46,
|
|
379
|
+
"name": "SchemaListApiDiviner"
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"name": "Promise",
|
|
383
|
+
"qualifiedName": "Promise",
|
|
384
|
+
"package": "typescript"
|
|
385
|
+
},
|
|
386
|
+
"overwrites": {
|
|
387
|
+
"type": "reference",
|
|
388
|
+
"name": "XyoDiviner.create"
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
],
|
|
392
|
+
"overwrites": {
|
|
393
|
+
"type": "reference",
|
|
394
|
+
"name": "XyoDiviner.create"
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"groups": [
|
|
399
|
+
{
|
|
400
|
+
"title": "Constructors",
|
|
401
|
+
"children": [
|
|
402
|
+
52
|
|
403
|
+
]
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"title": "Properties",
|
|
407
|
+
"children": [
|
|
408
|
+
55,
|
|
409
|
+
50,
|
|
410
|
+
51
|
|
411
|
+
]
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"title": "Accessors",
|
|
415
|
+
"children": [
|
|
416
|
+
56
|
|
417
|
+
]
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"title": "Methods",
|
|
421
|
+
"children": [
|
|
422
|
+
62,
|
|
423
|
+
58,
|
|
424
|
+
60,
|
|
425
|
+
47
|
|
426
|
+
]
|
|
427
|
+
}
|
|
428
|
+
],
|
|
429
|
+
"sources": [
|
|
430
|
+
{
|
|
431
|
+
"fileName": "packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts",
|
|
432
|
+
"line": 12,
|
|
433
|
+
"character": 13,
|
|
434
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts#L12"
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
"extendedTypes": [
|
|
438
|
+
{
|
|
439
|
+
"type": "reference",
|
|
440
|
+
"typeArguments": [
|
|
441
|
+
{
|
|
442
|
+
"type": "reference",
|
|
443
|
+
"name": "XyoSchemaListApiDivinerConfig"
|
|
444
|
+
}
|
|
445
|
+
],
|
|
446
|
+
"name": "XyoDiviner",
|
|
447
|
+
"qualifiedName": "XyoDiviner",
|
|
448
|
+
"package": "@xyo-network/diviner"
|
|
449
|
+
}
|
|
450
|
+
]
|
|
451
|
+
},
|
|
9
452
|
{
|
|
10
453
|
"id": 34,
|
|
11
454
|
"name": "SchemaContextState",
|
|
@@ -62,7 +505,7 @@
|
|
|
62
505
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/State.ts",
|
|
63
506
|
"line": 6,
|
|
64
507
|
"character": 2,
|
|
65
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
508
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/State.ts#L6"
|
|
66
509
|
}
|
|
67
510
|
],
|
|
68
511
|
"type": {
|
|
@@ -97,7 +540,7 @@
|
|
|
97
540
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/State.ts",
|
|
98
541
|
"line": 8,
|
|
99
542
|
"character": 2,
|
|
100
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
543
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/State.ts#L8"
|
|
101
544
|
}
|
|
102
545
|
],
|
|
103
546
|
"type": {
|
|
@@ -135,7 +578,7 @@
|
|
|
135
578
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/State.ts",
|
|
136
579
|
"line": 10,
|
|
137
580
|
"character": 2,
|
|
138
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
581
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/State.ts#L10"
|
|
139
582
|
}
|
|
140
583
|
],
|
|
141
584
|
"type": {
|
|
@@ -178,7 +621,7 @@
|
|
|
178
621
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/State.ts",
|
|
179
622
|
"line": 12,
|
|
180
623
|
"character": 2,
|
|
181
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
624
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/State.ts#L12"
|
|
182
625
|
}
|
|
183
626
|
],
|
|
184
627
|
"type": {
|
|
@@ -215,7 +658,7 @@
|
|
|
215
658
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/State.ts",
|
|
216
659
|
"line": 4,
|
|
217
660
|
"character": 17,
|
|
218
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
661
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/State.ts#L4"
|
|
219
662
|
}
|
|
220
663
|
],
|
|
221
664
|
"extendedTypes": [
|
|
@@ -245,7 +688,7 @@
|
|
|
245
688
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/Provider/Props.tsx",
|
|
246
689
|
"line": 2,
|
|
247
690
|
"character": 2,
|
|
248
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
691
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/Provider/Props.tsx#L2"
|
|
249
692
|
}
|
|
250
693
|
],
|
|
251
694
|
"type": {
|
|
@@ -266,7 +709,7 @@
|
|
|
266
709
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/Provider/Props.tsx",
|
|
267
710
|
"line": 3,
|
|
268
711
|
"character": 2,
|
|
269
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
712
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/Provider/Props.tsx#L3"
|
|
270
713
|
}
|
|
271
714
|
],
|
|
272
715
|
"type": {
|
|
@@ -292,7 +735,7 @@
|
|
|
292
735
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/Provider/Props.tsx",
|
|
293
736
|
"line": 1,
|
|
294
737
|
"character": 17,
|
|
295
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
738
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/Provider/Props.tsx#L1"
|
|
296
739
|
}
|
|
297
740
|
]
|
|
298
741
|
},
|
|
@@ -307,7 +750,7 @@
|
|
|
307
750
|
"fileName": "packages/sdk/packages/schema/src/components/Property/SchemaProperty.tsx",
|
|
308
751
|
"line": 11,
|
|
309
752
|
"character": 12,
|
|
310
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
753
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/components/Property/SchemaProperty.tsx#L11"
|
|
311
754
|
}
|
|
312
755
|
],
|
|
313
756
|
"type": {
|
|
@@ -339,7 +782,7 @@
|
|
|
339
782
|
"fileName": "packages/sdk/packages/schema/src/components/Property/SchemaProperty.tsx",
|
|
340
783
|
"line": 12,
|
|
341
784
|
"character": 2,
|
|
342
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
785
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/components/Property/SchemaProperty.tsx#L12"
|
|
343
786
|
}
|
|
344
787
|
],
|
|
345
788
|
"type": {
|
|
@@ -360,7 +803,7 @@
|
|
|
360
803
|
"fileName": "packages/sdk/packages/schema/src/components/Property/SchemaProperty.tsx",
|
|
361
804
|
"line": 13,
|
|
362
805
|
"character": 2,
|
|
363
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
806
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/components/Property/SchemaProperty.tsx#L13"
|
|
364
807
|
}
|
|
365
808
|
],
|
|
366
809
|
"type": {
|
|
@@ -383,7 +826,7 @@
|
|
|
383
826
|
"fileName": "packages/sdk/packages/schema/src/components/Property/SchemaProperty.tsx",
|
|
384
827
|
"line": 11,
|
|
385
828
|
"character": 50,
|
|
386
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
829
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/components/Property/SchemaProperty.tsx#L11"
|
|
387
830
|
}
|
|
388
831
|
]
|
|
389
832
|
}
|
|
@@ -402,7 +845,7 @@
|
|
|
402
845
|
"fileName": "packages/sdk/packages/schema/src/components/SelectEx/SchemaSelectEx.tsx",
|
|
403
846
|
"line": 6,
|
|
404
847
|
"character": 12,
|
|
405
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
848
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/components/SelectEx/SchemaSelectEx.tsx#L6"
|
|
406
849
|
}
|
|
407
850
|
],
|
|
408
851
|
"type": {
|
|
@@ -418,6 +861,87 @@
|
|
|
418
861
|
"package": "@xylabs/react-common"
|
|
419
862
|
}
|
|
420
863
|
},
|
|
864
|
+
{
|
|
865
|
+
"id": 43,
|
|
866
|
+
"name": "XyoSchemaListApiDivinerParams",
|
|
867
|
+
"kind": 4194304,
|
|
868
|
+
"kindString": "Type alias",
|
|
869
|
+
"flags": {},
|
|
870
|
+
"sources": [
|
|
871
|
+
{
|
|
872
|
+
"fileName": "packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts",
|
|
873
|
+
"line": 10,
|
|
874
|
+
"character": 12,
|
|
875
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts#L10"
|
|
876
|
+
}
|
|
877
|
+
],
|
|
878
|
+
"type": {
|
|
879
|
+
"type": "intersection",
|
|
880
|
+
"types": [
|
|
881
|
+
{
|
|
882
|
+
"type": "reference",
|
|
883
|
+
"typeArguments": [
|
|
884
|
+
{
|
|
885
|
+
"type": "reference",
|
|
886
|
+
"name": "XyoSchemaListApiDivinerConfig"
|
|
887
|
+
}
|
|
888
|
+
],
|
|
889
|
+
"name": "XyoModuleParams",
|
|
890
|
+
"qualifiedName": "XyoModuleParams",
|
|
891
|
+
"package": "@xyo-network/module"
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"type": "reflection",
|
|
895
|
+
"declaration": {
|
|
896
|
+
"id": 44,
|
|
897
|
+
"name": "__type",
|
|
898
|
+
"kind": 65536,
|
|
899
|
+
"kindString": "Type literal",
|
|
900
|
+
"flags": {},
|
|
901
|
+
"children": [
|
|
902
|
+
{
|
|
903
|
+
"id": 45,
|
|
904
|
+
"name": "api",
|
|
905
|
+
"kind": 1024,
|
|
906
|
+
"kindString": "Property",
|
|
907
|
+
"flags": {},
|
|
908
|
+
"sources": [
|
|
909
|
+
{
|
|
910
|
+
"fileName": "packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts",
|
|
911
|
+
"line": 10,
|
|
912
|
+
"character": 95,
|
|
913
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts#L10"
|
|
914
|
+
}
|
|
915
|
+
],
|
|
916
|
+
"type": {
|
|
917
|
+
"type": "reference",
|
|
918
|
+
"name": "XyoArchivistApi",
|
|
919
|
+
"qualifiedName": "XyoArchivistApi",
|
|
920
|
+
"package": "@xyo-network/api"
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
],
|
|
924
|
+
"groups": [
|
|
925
|
+
{
|
|
926
|
+
"title": "Properties",
|
|
927
|
+
"children": [
|
|
928
|
+
45
|
|
929
|
+
]
|
|
930
|
+
}
|
|
931
|
+
],
|
|
932
|
+
"sources": [
|
|
933
|
+
{
|
|
934
|
+
"fileName": "packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts",
|
|
935
|
+
"line": 10,
|
|
936
|
+
"character": 93,
|
|
937
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/diviners/SchemaListApiDiviner.ts#L10"
|
|
938
|
+
}
|
|
939
|
+
]
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
]
|
|
943
|
+
}
|
|
944
|
+
},
|
|
421
945
|
{
|
|
422
946
|
"id": 14,
|
|
423
947
|
"name": "SchemaContext",
|
|
@@ -431,7 +955,7 @@
|
|
|
431
955
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/Context.ts",
|
|
432
956
|
"line": 5,
|
|
433
957
|
"character": 13,
|
|
434
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
958
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/Context.ts#L5"
|
|
435
959
|
}
|
|
436
960
|
],
|
|
437
961
|
"type": {
|
|
@@ -469,7 +993,7 @@
|
|
|
469
993
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/Provider/Memory.tsx",
|
|
470
994
|
"line": 8,
|
|
471
995
|
"character": 13,
|
|
472
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
996
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/Provider/Memory.tsx#L8"
|
|
473
997
|
}
|
|
474
998
|
],
|
|
475
999
|
"signatures": [
|
|
@@ -553,7 +1077,7 @@
|
|
|
553
1077
|
"fileName": "packages/sdk/packages/schema/src/components/Property/SchemaProperty.tsx",
|
|
554
1078
|
"line": 33,
|
|
555
1079
|
"character": 13,
|
|
556
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1080
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/components/Property/SchemaProperty.tsx#L33"
|
|
557
1081
|
}
|
|
558
1082
|
],
|
|
559
1083
|
"signatures": [
|
|
@@ -629,7 +1153,7 @@
|
|
|
629
1153
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/Provider/Route.tsx",
|
|
630
1154
|
"line": 56,
|
|
631
1155
|
"character": 13,
|
|
632
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1156
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/Provider/Route.tsx#L56"
|
|
633
1157
|
}
|
|
634
1158
|
],
|
|
635
1159
|
"signatures": [
|
|
@@ -713,7 +1237,7 @@
|
|
|
713
1237
|
"fileName": "packages/sdk/packages/schema/src/components/SelectEx/SchemaSelectEx.tsx",
|
|
714
1238
|
"line": 8,
|
|
715
1239
|
"character": 13,
|
|
716
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1240
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/components/SelectEx/SchemaSelectEx.tsx#L8"
|
|
717
1241
|
}
|
|
718
1242
|
],
|
|
719
1243
|
"signatures": [
|
|
@@ -789,7 +1313,7 @@
|
|
|
789
1313
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/use.ts",
|
|
790
1314
|
"line": 6,
|
|
791
1315
|
"character": 13,
|
|
792
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1316
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/use.ts#L6"
|
|
793
1317
|
}
|
|
794
1318
|
],
|
|
795
1319
|
"signatures": [
|
|
@@ -844,7 +1368,7 @@
|
|
|
844
1368
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/Hooks/useSchemaDefinitions.tsx",
|
|
845
1369
|
"line": 8,
|
|
846
1370
|
"character": 13,
|
|
847
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1371
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/Hooks/useSchemaDefinitions.tsx#L8"
|
|
848
1372
|
}
|
|
849
1373
|
],
|
|
850
1374
|
"signatures": [
|
|
@@ -914,7 +1438,7 @@
|
|
|
914
1438
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/Hooks/useSchemaList.tsx",
|
|
915
1439
|
"line": 6,
|
|
916
1440
|
"character": 13,
|
|
917
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1441
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/Hooks/useSchemaList.tsx#L6"
|
|
918
1442
|
}
|
|
919
1443
|
],
|
|
920
1444
|
"signatures": [
|
|
@@ -992,7 +1516,7 @@
|
|
|
992
1516
|
"fileName": "packages/sdk/packages/schema/src/contexts/Schema/Hooks/useSchemaStats.tsx",
|
|
993
1517
|
"line": 7,
|
|
994
1518
|
"character": 13,
|
|
995
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1519
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/contexts/Schema/Hooks/useSchemaStats.tsx#L7"
|
|
996
1520
|
}
|
|
997
1521
|
],
|
|
998
1522
|
"signatures": [
|
|
@@ -1022,6 +1546,12 @@
|
|
|
1022
1546
|
}
|
|
1023
1547
|
],
|
|
1024
1548
|
"groups": [
|
|
1549
|
+
{
|
|
1550
|
+
"title": "Classes",
|
|
1551
|
+
"children": [
|
|
1552
|
+
46
|
|
1553
|
+
]
|
|
1554
|
+
},
|
|
1025
1555
|
{
|
|
1026
1556
|
"title": "Interfaces",
|
|
1027
1557
|
"children": [
|
|
@@ -1033,7 +1563,8 @@
|
|
|
1033
1563
|
"title": "Type Aliases",
|
|
1034
1564
|
"children": [
|
|
1035
1565
|
1,
|
|
1036
|
-
9
|
|
1566
|
+
9,
|
|
1567
|
+
43
|
|
1037
1568
|
]
|
|
1038
1569
|
},
|
|
1039
1570
|
{
|
|
@@ -1061,7 +1592,7 @@
|
|
|
1061
1592
|
"fileName": "packages/sdk/packages/schema/src/index.ts",
|
|
1062
1593
|
"line": 1,
|
|
1063
1594
|
"character": 0,
|
|
1064
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1595
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/62ed3a19f0/packages/sdk/packages/schema/src/index.ts#L1"
|
|
1065
1596
|
}
|
|
1066
1597
|
]
|
|
1067
1598
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { XyoArchivistApi } from '@xyo-network/api';
|
|
2
|
+
import { XyoDiviner } from '@xyo-network/diviner';
|
|
3
|
+
import { XyoModuleParams } from '@xyo-network/module';
|
|
4
|
+
import { XyoPayload } from '@xyo-network/payload';
|
|
5
|
+
import { XyoSchemaListApiDivinerConfig } from './SchemaListApiDivinerConfig';
|
|
6
|
+
export declare type XyoSchemaListApiDivinerParams = XyoModuleParams<XyoSchemaListApiDivinerConfig> & {
|
|
7
|
+
api: XyoArchivistApi;
|
|
8
|
+
};
|
|
9
|
+
export declare class SchemaListApiDiviner extends XyoDiviner<XyoSchemaListApiDivinerConfig> {
|
|
10
|
+
protected readonly api: XyoArchivistApi;
|
|
11
|
+
get archive(): string;
|
|
12
|
+
static create(params: XyoSchemaListApiDivinerParams): Promise<SchemaListApiDiviner>;
|
|
13
|
+
protected constructor(params: XyoSchemaListApiDivinerParams);
|
|
14
|
+
queries(): string[];
|
|
15
|
+
protected start(): Promise<this>;
|
|
16
|
+
divine(): Promise<XyoPayload[]>;
|
|
17
|
+
static configSchema: "network.xyo.diviner.schema.list.api.config";
|
|
18
|
+
static targetSchema: "network.xyo.schema";
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=SchemaListApiDiviner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaListApiDiviner.d.ts","sourceRoot":"","sources":["../../../src/diviners/SchemaListApiDiviner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,UAAU,EAA+B,MAAM,sBAAsB,CAAA;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAGjD,OAAO,EAAE,6BAA6B,EAAuC,MAAM,8BAA8B,CAAA;AAEjH,oBAAY,6BAA6B,GAAG,eAAe,CAAC,6BAA6B,CAAC,GAAG;IAAE,GAAG,EAAE,eAAe,CAAA;CAAE,CAAA;AAErH,qBAAa,oBAAqB,SAAQ,UAAU,CAAC,6BAA6B,CAAC;IACjF,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,eAAe,CAAA;IAEvC,IAAI,OAAO,WAEV;WAEqB,MAAM,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIlG,SAAS,aAAa,MAAM,EAAE,6BAA6B;IAKlD,OAAO;cAIS,KAAK;IAKjB,MAAM,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAY5C,OAAgB,YAAY,+CAAsC;IAClE,OAAgB,YAAY,uBAAkB;CAC/C"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js';
|
|
2
|
+
import { XyoDiviner, XyoDivinerDivineQuerySchema } from '@xyo-network/diviner';
|
|
3
|
+
import { XyoSchemaSchema } from '@xyo-network/schema-payload-plugin';
|
|
4
|
+
import { XyoSchemaListApiDivinerConfigSchema } from './SchemaListApiDivinerConfig';
|
|
5
|
+
export class SchemaListApiDiviner extends XyoDiviner {
|
|
6
|
+
api;
|
|
7
|
+
get archive() {
|
|
8
|
+
return assertEx(this.config?.archive, `config required [${this.config}]`);
|
|
9
|
+
}
|
|
10
|
+
static async create(params) {
|
|
11
|
+
return (await super.create(params));
|
|
12
|
+
}
|
|
13
|
+
constructor(params) {
|
|
14
|
+
super(params);
|
|
15
|
+
this.api = params.api;
|
|
16
|
+
}
|
|
17
|
+
queries() {
|
|
18
|
+
return [XyoDivinerDivineQuerySchema, ...super.queries()];
|
|
19
|
+
}
|
|
20
|
+
async start() {
|
|
21
|
+
await super.start();
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
async divine() {
|
|
25
|
+
const apiResult = (await this.api.archive(this.archive)?.payload.schema.get()) ?? [];
|
|
26
|
+
return (apiResult.map((schema) => {
|
|
27
|
+
return {
|
|
28
|
+
name: schema,
|
|
29
|
+
schema: XyoSchemaSchema,
|
|
30
|
+
};
|
|
31
|
+
}) ?? []);
|
|
32
|
+
}
|
|
33
|
+
static configSchema = XyoSchemaListApiDivinerConfigSchema;
|
|
34
|
+
static targetSchema = XyoSchemaSchema;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=SchemaListApiDiviner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaListApiDiviner.js","sourceRoot":"","sources":["../../../src/diviners/SchemaListApiDiviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,EAAE,UAAU,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAG9E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA;AAEpE,OAAO,EAAiC,mCAAmC,EAAE,MAAM,8BAA8B,CAAA;AAIjH,MAAM,OAAO,oBAAqB,SAAQ,UAAyC;IAC9D,GAAG,CAAiB;IAEvC,IAAI,OAAO;QACT,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,oBAAoB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAA;IAC3E,CAAC;IAED,MAAM,CAAU,KAAK,CAAC,MAAM,CAAC,MAAqC;QAChE,OAAO,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAyB,CAAA;IAC7D,CAAC;IAED,YAAsB,MAAqC;QACzD,KAAK,CAAC,MAAM,CAAC,CAAA;QACb,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAA;IACvB,CAAC;IAEQ,OAAO;QACd,OAAO,CAAC,2BAA2B,EAAE,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;IAC1D,CAAC;IAEkB,KAAK,CAAC,KAAK;QAC5B,MAAM,KAAK,CAAC,KAAK,EAAE,CAAA;QACnB,OAAO,IAAI,CAAA;IACb,CAAC;IAEM,KAAK,CAAC,MAAM;QACjB,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAA;QACpF,OAAO,CACL,SAAS,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YACvB,OAAO;gBACL,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE,eAAe;aACxB,CAAA;QACH,CAAC,CAAC,IAAI,EAAE,CACT,CAAA;IACH,CAAC;IAED,MAAM,CAAU,YAAY,GAAG,mCAAmC,CAAA;IAClE,MAAM,CAAU,YAAY,GAAG,eAAe,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { XyoDivinerConfig } from '@xyo-network/diviner';
|
|
2
|
+
import { XyoPayload } from '@xyo-network/payload';
|
|
3
|
+
export declare type XyoSchemaListApiDivinerConfigSchema = 'network.xyo.diviner.schema.list.api.config';
|
|
4
|
+
export declare const XyoSchemaListApiDivinerConfigSchema: XyoSchemaListApiDivinerConfigSchema;
|
|
5
|
+
export declare type XyoSchemaListApiDivinerConfig<T extends XyoPayload = XyoPayload> = XyoDivinerConfig<XyoPayload, T & {
|
|
6
|
+
schema: XyoSchemaListApiDivinerConfigSchema;
|
|
7
|
+
archive: string;
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=SchemaListApiDivinerConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaListApiDivinerConfig.d.ts","sourceRoot":"","sources":["../../../src/diviners/SchemaListApiDivinerConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,oBAAY,mCAAmC,GAAG,4CAA4C,CAAA;AAC9F,eAAO,MAAM,mCAAmC,EAAE,mCAAkF,CAAA;AAEpI,oBAAY,6BAA6B,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,IAAI,gBAAgB,CAC7F,UAAU,EACV,CAAC,GAAG;IACF,MAAM,EAAE,mCAAmC,CAAA;IAC3C,OAAO,EAAE,MAAM,CAAA;CAChB,CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaListApiDivinerConfig.js","sourceRoot":"","sources":["../../../src/diviners/SchemaListApiDivinerConfig.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,mCAAmC,GAAwC,4CAA4C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/diviners/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/diviners/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
|
package/package.json
CHANGED
|
@@ -13,17 +13,20 @@
|
|
|
13
13
|
"@xylabs/react-common": "^2.15.1",
|
|
14
14
|
"@xylabs/react-link": "^2.15.1",
|
|
15
15
|
"@xylabs/react-shared": "^2.15.1",
|
|
16
|
-
"@xyo-network/react-archive": "^2.38.
|
|
17
|
-
"@xyo-network/react-archivist-api": "^2.38.
|
|
18
|
-
"@xyo-network/react-property": "^2.38.
|
|
19
|
-
"@xyo-network/react-shared": "^2.38.
|
|
16
|
+
"@xyo-network/react-archive": "^2.38.8",
|
|
17
|
+
"@xyo-network/react-archivist-api": "^2.38.8",
|
|
18
|
+
"@xyo-network/react-property": "^2.38.8",
|
|
19
|
+
"@xyo-network/react-shared": "^2.38.8",
|
|
20
20
|
"tslib": "^2.4.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@mui/icons-material": "^5.10.3",
|
|
24
24
|
"@mui/material": "^5.10.3",
|
|
25
25
|
"@mui/styles": "^5.10.3",
|
|
26
|
+
"@xylabs/sdk-js": "^2.6.9",
|
|
26
27
|
"@xyo-network/api": "*",
|
|
28
|
+
"@xyo-network/diviner": "*",
|
|
29
|
+
"@xyo-network/module": "*",
|
|
27
30
|
"@xyo-network/payload": "*",
|
|
28
31
|
"@xyo-network/schema-payload-plugin": "*",
|
|
29
32
|
"@xyo-network/utils": "*",
|
|
@@ -77,5 +80,5 @@
|
|
|
77
80
|
},
|
|
78
81
|
"sideEffects": false,
|
|
79
82
|
"types": "dist/esm/index.d.ts",
|
|
80
|
-
"version": "2.38.
|
|
83
|
+
"version": "2.38.8"
|
|
81
84
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { XyoApiConfig, XyoArchivistApi } from '@xyo-network/api'
|
|
2
|
+
|
|
3
|
+
import { SchemaListApiDiviner } from './SchemaListApiDiviner'
|
|
4
|
+
import { XyoSchemaListApiDivinerConfigSchema } from './SchemaListApiDivinerConfig'
|
|
5
|
+
|
|
6
|
+
const configData: XyoApiConfig = {
|
|
7
|
+
apiDomain: process.env.API_DOMAIN || 'https://beta.api.archivist.xyo.network',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
test('SchemaListApiDiviner', async () => {
|
|
11
|
+
const api = new XyoArchivistApi(configData)
|
|
12
|
+
const diviner = await SchemaListApiDiviner.create({
|
|
13
|
+
api,
|
|
14
|
+
config: { archive: 'temp', schema: XyoSchemaListApiDivinerConfigSchema },
|
|
15
|
+
logger: console,
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
expect(diviner).toBeDefined()
|
|
19
|
+
|
|
20
|
+
const result = await diviner.divine()
|
|
21
|
+
|
|
22
|
+
expect(result.length).toBeGreaterThan(0)
|
|
23
|
+
})
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { assertEx } from '@xylabs/sdk-js'
|
|
2
|
+
import { XyoArchivistApi } from '@xyo-network/api'
|
|
3
|
+
import { XyoDiviner, XyoDivinerDivineQuerySchema } from '@xyo-network/diviner'
|
|
4
|
+
import { XyoModuleParams } from '@xyo-network/module'
|
|
5
|
+
import { XyoPayload } from '@xyo-network/payload'
|
|
6
|
+
import { XyoSchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
7
|
+
|
|
8
|
+
import { XyoSchemaListApiDivinerConfig, XyoSchemaListApiDivinerConfigSchema } from './SchemaListApiDivinerConfig'
|
|
9
|
+
|
|
10
|
+
export type XyoSchemaListApiDivinerParams = XyoModuleParams<XyoSchemaListApiDivinerConfig> & { api: XyoArchivistApi }
|
|
11
|
+
|
|
12
|
+
export class SchemaListApiDiviner extends XyoDiviner<XyoSchemaListApiDivinerConfig> {
|
|
13
|
+
protected readonly api: XyoArchivistApi
|
|
14
|
+
|
|
15
|
+
get archive() {
|
|
16
|
+
return assertEx(this.config?.archive, `config required [${this.config}]`)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static override async create(params: XyoSchemaListApiDivinerParams): Promise<SchemaListApiDiviner> {
|
|
20
|
+
return (await super.create(params)) as SchemaListApiDiviner
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
protected constructor(params: XyoSchemaListApiDivinerParams) {
|
|
24
|
+
super(params)
|
|
25
|
+
this.api = params.api
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
override queries() {
|
|
29
|
+
return [XyoDivinerDivineQuerySchema, ...super.queries()]
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
protected override async start() {
|
|
33
|
+
await super.start()
|
|
34
|
+
return this
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public async divine(): Promise<XyoPayload[]> {
|
|
38
|
+
const apiResult = (await this.api.archive(this.archive)?.payload.schema.get()) ?? []
|
|
39
|
+
return (
|
|
40
|
+
apiResult.map((schema) => {
|
|
41
|
+
return {
|
|
42
|
+
name: schema,
|
|
43
|
+
schema: XyoSchemaSchema,
|
|
44
|
+
}
|
|
45
|
+
}) ?? []
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
static override configSchema = XyoSchemaListApiDivinerConfigSchema
|
|
50
|
+
static override targetSchema = XyoSchemaSchema
|
|
51
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { XyoDivinerConfig } from '@xyo-network/diviner'
|
|
2
|
+
import { XyoPayload } from '@xyo-network/payload'
|
|
3
|
+
|
|
4
|
+
export type XyoSchemaListApiDivinerConfigSchema = 'network.xyo.diviner.schema.list.api.config'
|
|
5
|
+
export const XyoSchemaListApiDivinerConfigSchema: XyoSchemaListApiDivinerConfigSchema = 'network.xyo.diviner.schema.list.api.config'
|
|
6
|
+
|
|
7
|
+
export type XyoSchemaListApiDivinerConfig<T extends XyoPayload = XyoPayload> = XyoDivinerConfig<
|
|
8
|
+
XyoPayload,
|
|
9
|
+
T & {
|
|
10
|
+
schema: XyoSchemaListApiDivinerConfigSchema
|
|
11
|
+
archive: string
|
|
12
|
+
}
|
|
13
|
+
>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SchemaListApiDiviner'
|
package/src/index.ts
CHANGED