@xyo-network/diviner-wrapper 2.72.8 → 2.73.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.
- package/dist/index.d.mts +108 -0
- package/dist/index.d.ts +108 -0
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +21 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +31 -18
- package/tsup.config.ts +16 -0
- package/dist/cjs/DivinerWrapper.js +0 -22
- package/dist/cjs/DivinerWrapper.js.map +0 -1
- package/dist/cjs/index.js +0 -5
- package/dist/cjs/index.js.map +0 -1
- package/dist/docs.json +0 -8511
- package/dist/esm/DivinerWrapper.js +0 -13
- package/dist/esm/DivinerWrapper.js.map +0 -1
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.js.map +0 -1
- package/dist/types/DivinerWrapper.d.ts +0 -10
- package/dist/types/DivinerWrapper.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +0 -1
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as _xyo_network_object_identity from '@xyo-network/object-identity';
|
|
2
|
+
import * as _xyo_network_wallet_model from '@xyo-network/wallet-model';
|
|
3
|
+
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
4
|
+
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
5
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
6
|
+
import * as _xyo_network_account_model from '@xyo-network/account-model';
|
|
7
|
+
import * as _xyo_network_core from '@xyo-network/core';
|
|
8
|
+
import { DivinerModule, DivinerInstance } from '@xyo-network/diviner-model';
|
|
9
|
+
import { ModuleWrapper } from '@xyo-network/module';
|
|
10
|
+
|
|
11
|
+
declare class DivinerWrapper<TWrappedModule extends DivinerModule = DivinerModule> extends ModuleWrapper<TWrappedModule> implements DivinerInstance<TWrappedModule['params']> {
|
|
12
|
+
static instanceIdentityCheck: _xyo_network_object_identity.ObjectTypeCheck<DivinerInstance<_xyo_network_core.BaseParamsFields & {
|
|
13
|
+
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
14
|
+
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
15
|
+
accountDerivationPath?: string | undefined;
|
|
16
|
+
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
17
|
+
readonly name?: string | undefined;
|
|
18
|
+
readonly paging?: Record<string, {
|
|
19
|
+
size?: number | undefined;
|
|
20
|
+
}> | undefined;
|
|
21
|
+
readonly schema: string;
|
|
22
|
+
readonly security?: {
|
|
23
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
24
|
+
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
25
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
readonly sign?: boolean | undefined;
|
|
28
|
+
readonly storeQueries?: boolean | undefined;
|
|
29
|
+
readonly timestamp?: boolean | undefined;
|
|
30
|
+
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
31
|
+
accountDerivationPath?: string | undefined;
|
|
32
|
+
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
33
|
+
readonly name?: string | undefined;
|
|
34
|
+
readonly paging?: Record<string, {
|
|
35
|
+
size?: number | undefined;
|
|
36
|
+
}> | undefined;
|
|
37
|
+
readonly schema: "network.xyo.diviner.config";
|
|
38
|
+
readonly security?: {
|
|
39
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
40
|
+
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
41
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
readonly sign?: boolean | undefined;
|
|
44
|
+
readonly storeQueries?: boolean | undefined;
|
|
45
|
+
readonly timestamp?: boolean | undefined;
|
|
46
|
+
} & Omit<{
|
|
47
|
+
schema: "network.xyo.diviner.config";
|
|
48
|
+
} & Omit<undefined, "schema">, "schema"> & {
|
|
49
|
+
schema: "network.xyo.diviner.config";
|
|
50
|
+
}, "schema"> & {
|
|
51
|
+
schema: string;
|
|
52
|
+
}, "schema"> & {
|
|
53
|
+
schema: string;
|
|
54
|
+
};
|
|
55
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
56
|
+
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
57
|
+
}>>;
|
|
58
|
+
static moduleIdentityCheck: _xyo_network_module_model.ModuleTypeCheck<DivinerModule<_xyo_network_core.BaseParamsFields & {
|
|
59
|
+
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
60
|
+
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
61
|
+
accountDerivationPath?: string | undefined;
|
|
62
|
+
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
63
|
+
readonly name?: string | undefined;
|
|
64
|
+
readonly paging?: Record<string, {
|
|
65
|
+
size?: number | undefined;
|
|
66
|
+
}> | undefined;
|
|
67
|
+
readonly schema: string;
|
|
68
|
+
readonly security?: {
|
|
69
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
70
|
+
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
71
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
72
|
+
} | undefined;
|
|
73
|
+
readonly sign?: boolean | undefined;
|
|
74
|
+
readonly storeQueries?: boolean | undefined;
|
|
75
|
+
readonly timestamp?: boolean | undefined;
|
|
76
|
+
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
77
|
+
accountDerivationPath?: string | undefined;
|
|
78
|
+
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
79
|
+
readonly name?: string | undefined;
|
|
80
|
+
readonly paging?: Record<string, {
|
|
81
|
+
size?: number | undefined;
|
|
82
|
+
}> | undefined;
|
|
83
|
+
readonly schema: "network.xyo.diviner.config";
|
|
84
|
+
readonly security?: {
|
|
85
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
86
|
+
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
87
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
readonly sign?: boolean | undefined;
|
|
90
|
+
readonly storeQueries?: boolean | undefined;
|
|
91
|
+
readonly timestamp?: boolean | undefined;
|
|
92
|
+
} & Omit<{
|
|
93
|
+
schema: "network.xyo.diviner.config";
|
|
94
|
+
} & Omit<undefined, "schema">, "schema"> & {
|
|
95
|
+
schema: "network.xyo.diviner.config";
|
|
96
|
+
}, "schema"> & {
|
|
97
|
+
schema: string;
|
|
98
|
+
}, "schema"> & {
|
|
99
|
+
schema: string;
|
|
100
|
+
};
|
|
101
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
102
|
+
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
103
|
+
}>>;
|
|
104
|
+
static requiredQueries: string[];
|
|
105
|
+
divine(payloads?: Payload[]): Promise<Payload[]>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export { DivinerWrapper };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as _xyo_network_object_identity from '@xyo-network/object-identity';
|
|
2
|
+
import * as _xyo_network_wallet_model from '@xyo-network/wallet-model';
|
|
3
|
+
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
4
|
+
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
5
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
6
|
+
import * as _xyo_network_account_model from '@xyo-network/account-model';
|
|
7
|
+
import * as _xyo_network_core from '@xyo-network/core';
|
|
8
|
+
import { DivinerModule, DivinerInstance } from '@xyo-network/diviner-model';
|
|
9
|
+
import { ModuleWrapper } from '@xyo-network/module';
|
|
10
|
+
|
|
11
|
+
declare class DivinerWrapper<TWrappedModule extends DivinerModule = DivinerModule> extends ModuleWrapper<TWrappedModule> implements DivinerInstance<TWrappedModule['params']> {
|
|
12
|
+
static instanceIdentityCheck: _xyo_network_object_identity.ObjectTypeCheck<DivinerInstance<_xyo_network_core.BaseParamsFields & {
|
|
13
|
+
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
14
|
+
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
15
|
+
accountDerivationPath?: string | undefined;
|
|
16
|
+
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
17
|
+
readonly name?: string | undefined;
|
|
18
|
+
readonly paging?: Record<string, {
|
|
19
|
+
size?: number | undefined;
|
|
20
|
+
}> | undefined;
|
|
21
|
+
readonly schema: string;
|
|
22
|
+
readonly security?: {
|
|
23
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
24
|
+
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
25
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
readonly sign?: boolean | undefined;
|
|
28
|
+
readonly storeQueries?: boolean | undefined;
|
|
29
|
+
readonly timestamp?: boolean | undefined;
|
|
30
|
+
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
31
|
+
accountDerivationPath?: string | undefined;
|
|
32
|
+
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
33
|
+
readonly name?: string | undefined;
|
|
34
|
+
readonly paging?: Record<string, {
|
|
35
|
+
size?: number | undefined;
|
|
36
|
+
}> | undefined;
|
|
37
|
+
readonly schema: "network.xyo.diviner.config";
|
|
38
|
+
readonly security?: {
|
|
39
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
40
|
+
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
41
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
readonly sign?: boolean | undefined;
|
|
44
|
+
readonly storeQueries?: boolean | undefined;
|
|
45
|
+
readonly timestamp?: boolean | undefined;
|
|
46
|
+
} & Omit<{
|
|
47
|
+
schema: "network.xyo.diviner.config";
|
|
48
|
+
} & Omit<undefined, "schema">, "schema"> & {
|
|
49
|
+
schema: "network.xyo.diviner.config";
|
|
50
|
+
}, "schema"> & {
|
|
51
|
+
schema: string;
|
|
52
|
+
}, "schema"> & {
|
|
53
|
+
schema: string;
|
|
54
|
+
};
|
|
55
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
56
|
+
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
57
|
+
}>>;
|
|
58
|
+
static moduleIdentityCheck: _xyo_network_module_model.ModuleTypeCheck<DivinerModule<_xyo_network_core.BaseParamsFields & {
|
|
59
|
+
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
60
|
+
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
61
|
+
accountDerivationPath?: string | undefined;
|
|
62
|
+
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
63
|
+
readonly name?: string | undefined;
|
|
64
|
+
readonly paging?: Record<string, {
|
|
65
|
+
size?: number | undefined;
|
|
66
|
+
}> | undefined;
|
|
67
|
+
readonly schema: string;
|
|
68
|
+
readonly security?: {
|
|
69
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
70
|
+
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
71
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
72
|
+
} | undefined;
|
|
73
|
+
readonly sign?: boolean | undefined;
|
|
74
|
+
readonly storeQueries?: boolean | undefined;
|
|
75
|
+
readonly timestamp?: boolean | undefined;
|
|
76
|
+
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
77
|
+
accountDerivationPath?: string | undefined;
|
|
78
|
+
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
79
|
+
readonly name?: string | undefined;
|
|
80
|
+
readonly paging?: Record<string, {
|
|
81
|
+
size?: number | undefined;
|
|
82
|
+
}> | undefined;
|
|
83
|
+
readonly schema: "network.xyo.diviner.config";
|
|
84
|
+
readonly security?: {
|
|
85
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
86
|
+
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
87
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
readonly sign?: boolean | undefined;
|
|
90
|
+
readonly storeQueries?: boolean | undefined;
|
|
91
|
+
readonly timestamp?: boolean | undefined;
|
|
92
|
+
} & Omit<{
|
|
93
|
+
schema: "network.xyo.diviner.config";
|
|
94
|
+
} & Omit<undefined, "schema">, "schema"> & {
|
|
95
|
+
schema: "network.xyo.diviner.config";
|
|
96
|
+
}, "schema"> & {
|
|
97
|
+
schema: string;
|
|
98
|
+
}, "schema"> & {
|
|
99
|
+
schema: string;
|
|
100
|
+
};
|
|
101
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
102
|
+
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
103
|
+
}>>;
|
|
104
|
+
static requiredQueries: string[];
|
|
105
|
+
divine(payloads?: Payload[]): Promise<Payload[]>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export { DivinerWrapper };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
DivinerWrapper: () => DivinerWrapper
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(src_exports);
|
|
26
|
+
|
|
27
|
+
// src/DivinerWrapper.ts
|
|
28
|
+
var import_diviner_model = require("@xyo-network/diviner-model");
|
|
29
|
+
var import_module = require("@xyo-network/module");
|
|
30
|
+
(0, import_module.constructableModuleWrapper)();
|
|
31
|
+
var DivinerWrapper = class extends import_module.ModuleWrapper {
|
|
32
|
+
static instanceIdentityCheck = import_diviner_model.isDivinerInstance;
|
|
33
|
+
static moduleIdentityCheck = import_diviner_model.isDivinerModule;
|
|
34
|
+
static requiredQueries = [import_diviner_model.DivinerDivineQuerySchema, ...super.requiredQueries];
|
|
35
|
+
async divine(payloads) {
|
|
36
|
+
const queryPayload = { schema: import_diviner_model.DivinerDivineQuerySchema };
|
|
37
|
+
return await this.sendQuery(queryPayload, payloads);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
DivinerWrapper
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/DivinerWrapper.ts"],"sourcesContent":["export * from './DivinerWrapper'\n","import {\n DivinerDivineQuery,\n DivinerDivineQuerySchema,\n DivinerInstance,\n DivinerModule,\n isDivinerInstance,\n isDivinerModule,\n} from '@xyo-network/diviner-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module'\nimport { Payload } from '@xyo-network/payload-model'\n\nconstructableModuleWrapper()\nexport class DivinerWrapper<TWrappedModule extends DivinerModule = DivinerModule>\n extends ModuleWrapper<TWrappedModule>\n implements DivinerInstance<TWrappedModule['params']>\n{\n static override instanceIdentityCheck = isDivinerInstance\n static override moduleIdentityCheck = isDivinerModule\n static override requiredQueries = [DivinerDivineQuerySchema, ...super.requiredQueries]\n\n async divine(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: DivinerDivineQuery = { schema: DivinerDivineQuerySchema }\n return await this.sendQuery(queryPayload, payloads)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAOO;AACP,oBAA0D;AAAA,IAG1D,0CAA2B;AACpB,IAAM,iBAAN,cACG,4BAEV;AAAA,EACE,OAAgB,wBAAwB;AAAA,EACxC,OAAgB,sBAAsB;AAAA,EACtC,OAAgB,kBAAkB,CAAC,+CAA0B,GAAG,MAAM,eAAe;AAAA,EAErF,MAAM,OAAO,UAA0C;AACrD,UAAM,eAAmC,EAAE,QAAQ,8CAAyB;AAC5E,WAAO,MAAM,KAAK,UAAU,cAAc,QAAQ;AAAA,EACpD;AACF;","names":[]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/DivinerWrapper.ts
|
|
2
|
+
import {
|
|
3
|
+
DivinerDivineQuerySchema,
|
|
4
|
+
isDivinerInstance,
|
|
5
|
+
isDivinerModule
|
|
6
|
+
} from "@xyo-network/diviner-model";
|
|
7
|
+
import { constructableModuleWrapper, ModuleWrapper } from "@xyo-network/module";
|
|
8
|
+
constructableModuleWrapper();
|
|
9
|
+
var DivinerWrapper = class extends ModuleWrapper {
|
|
10
|
+
static instanceIdentityCheck = isDivinerInstance;
|
|
11
|
+
static moduleIdentityCheck = isDivinerModule;
|
|
12
|
+
static requiredQueries = [DivinerDivineQuerySchema, ...super.requiredQueries];
|
|
13
|
+
async divine(payloads) {
|
|
14
|
+
const queryPayload = { schema: DivinerDivineQuerySchema };
|
|
15
|
+
return await this.sendQuery(queryPayload, payloads);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
DivinerWrapper
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/DivinerWrapper.ts"],"sourcesContent":["import {\n DivinerDivineQuery,\n DivinerDivineQuerySchema,\n DivinerInstance,\n DivinerModule,\n isDivinerInstance,\n isDivinerModule,\n} from '@xyo-network/diviner-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module'\nimport { Payload } from '@xyo-network/payload-model'\n\nconstructableModuleWrapper()\nexport class DivinerWrapper<TWrappedModule extends DivinerModule = DivinerModule>\n extends ModuleWrapper<TWrappedModule>\n implements DivinerInstance<TWrappedModule['params']>\n{\n static override instanceIdentityCheck = isDivinerInstance\n static override moduleIdentityCheck = isDivinerModule\n static override requiredQueries = [DivinerDivineQuerySchema, ...super.requiredQueries]\n\n async divine(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: DivinerDivineQuery = { schema: DivinerDivineQuerySchema }\n return await this.sendQuery(queryPayload, payloads)\n }\n}\n"],"mappings":";AAAA;AAAA,EAEE;AAAA,EAGA;AAAA,EACA;AAAA,OACK;AACP,SAAS,4BAA4B,qBAAqB;AAG1D,2BAA2B;AACpB,IAAM,iBAAN,cACG,cAEV;AAAA,EACE,OAAgB,wBAAwB;AAAA,EACxC,OAAgB,sBAAsB;AAAA,EACtC,OAAgB,kBAAkB,CAAC,0BAA0B,GAAG,MAAM,eAAe;AAAA,EAErF,MAAM,OAAO,UAA0C;AACrD,UAAM,eAAmC,EAAE,QAAQ,yBAAyB;AAC5E,WAAO,MAAM,KAAK,UAAU,cAAc,QAAQ;AAAA,EACpD;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -10,37 +10,51 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/diviner-model": "~2.
|
|
14
|
-
"@xyo-network/module": "~2.
|
|
15
|
-
"@xyo-network/payload-model": "~2.
|
|
13
|
+
"@xyo-network/diviner-model": "~2.73.0",
|
|
14
|
+
"@xyo-network/module": "~2.73.0",
|
|
15
|
+
"@xyo-network/payload-model": "~2.73.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@xylabs/ts-scripts-yarn3": "^2.19.
|
|
19
|
-
"@xylabs/tsconfig": "^2.19.
|
|
18
|
+
"@xylabs/ts-scripts-yarn3": "^2.19.5",
|
|
19
|
+
"@xylabs/tsconfig": "^2.19.5",
|
|
20
|
+
"publint": "^0.2.2",
|
|
21
|
+
"tsup": "^7.2.0",
|
|
20
22
|
"typescript": "^5.2.2"
|
|
21
23
|
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"package-compile": "tsup && publint",
|
|
26
|
+
"package-recompile": "tsup && publint"
|
|
27
|
+
},
|
|
22
28
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
23
|
-
"browser": "dist/esm/index.js",
|
|
24
29
|
"docs": "dist/docs.json",
|
|
30
|
+
"types": "dist/index.d.ts",
|
|
25
31
|
"exports": {
|
|
26
32
|
".": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
},
|
|
31
|
-
"browser": {
|
|
32
|
-
"import": "./dist/esm/index.js",
|
|
33
|
-
"require": "./dist/cjs/index.js"
|
|
33
|
+
"require": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"default": "./dist/index.js"
|
|
34
36
|
},
|
|
35
|
-
"
|
|
37
|
+
"import": {
|
|
38
|
+
"types": "./dist/index.d.mts",
|
|
39
|
+
"default": "./dist/index.mjs"
|
|
40
|
+
}
|
|
36
41
|
},
|
|
37
42
|
"./dist/docs.json": {
|
|
38
43
|
"default": "./dist/docs.json"
|
|
39
44
|
},
|
|
45
|
+
"./cjs": {
|
|
46
|
+
"default": "./dist/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./docs": {
|
|
49
|
+
"default": "./dist/docs.json"
|
|
50
|
+
},
|
|
51
|
+
"./esm": {
|
|
52
|
+
"default": "./dist/index.mjs"
|
|
53
|
+
},
|
|
40
54
|
"./package.json": "./package.json"
|
|
41
55
|
},
|
|
42
|
-
"main": "dist/
|
|
43
|
-
"module": "dist/
|
|
56
|
+
"main": "dist/index.js",
|
|
57
|
+
"module": "dist/index.mjs",
|
|
44
58
|
"homepage": "https://xyo.network",
|
|
45
59
|
"license": "LGPL-3.0",
|
|
46
60
|
"publishConfig": {
|
|
@@ -51,6 +65,5 @@
|
|
|
51
65
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
52
66
|
},
|
|
53
67
|
"sideEffects": false,
|
|
54
|
-
"
|
|
55
|
-
"version": "2.72.8"
|
|
68
|
+
"version": "2.73.0"
|
|
56
69
|
}
|
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineConfig } from 'tsup'
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line import/no-default-export
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
bundle: true,
|
|
6
|
+
cjsInterop: true,
|
|
7
|
+
clean: true,
|
|
8
|
+
dts: {
|
|
9
|
+
entry: ['src/index.ts'],
|
|
10
|
+
},
|
|
11
|
+
entry: ['src/index.ts'],
|
|
12
|
+
format: ['cjs', 'esm'],
|
|
13
|
+
sourcemap: true,
|
|
14
|
+
splitting: false,
|
|
15
|
+
tsconfig: 'tsconfig.json',
|
|
16
|
+
})
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a, _b;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.DivinerWrapper = void 0;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
const diviner_model_1 = require("@xyo-network/diviner-model");
|
|
7
|
-
const module_1 = require("@xyo-network/module");
|
|
8
|
-
(0, module_1.constructableModuleWrapper)();
|
|
9
|
-
class DivinerWrapper extends (_b = module_1.ModuleWrapper) {
|
|
10
|
-
divine(payloads) {
|
|
11
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12
|
-
const queryPayload = { schema: diviner_model_1.DivinerDivineQuerySchema };
|
|
13
|
-
return yield this.sendQuery(queryPayload, payloads);
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.DivinerWrapper = DivinerWrapper;
|
|
18
|
-
_a = DivinerWrapper;
|
|
19
|
-
DivinerWrapper.instanceIdentityCheck = diviner_model_1.isDivinerInstance;
|
|
20
|
-
DivinerWrapper.moduleIdentityCheck = diviner_model_1.isDivinerModule;
|
|
21
|
-
DivinerWrapper.requiredQueries = [diviner_model_1.DivinerDivineQuerySchema, ...Reflect.get(_b, "requiredQueries", _a)];
|
|
22
|
-
//# sourceMappingURL=DivinerWrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DivinerWrapper.js","sourceRoot":"","sources":["../../src/DivinerWrapper.ts"],"names":[],"mappings":";;;;;AAAA,8DAOmC;AACnC,gDAA+E;AAG/E,IAAA,mCAA0B,GAAE,CAAA;AAC5B,MAAa,cACX,SAAQ,MAAA,sBAAa,CAAgB;IAO/B,MAAM,CAAC,QAAoB;;YAC/B,MAAM,YAAY,GAAuB,EAAE,MAAM,EAAE,wCAAwB,EAAE,CAAA;YAC7E,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAA;QACrD,CAAC;KAAA;;AAXH,wCAYC;;AARiB,oCAAqB,GAAG,iCAAiB,AAApB,CAAoB;AACzC,kCAAmB,GAAG,+BAAe,AAAlB,CAAkB;AACrC,8BAAe,GAAG,CAAC,wCAAwB,EAAE,GAAG,sCAAqB,CAAC,AAAvD,CAAuD"}
|
package/dist/cjs/index.js
DELETED
package/dist/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,2DAAgC"}
|