@xyo-network/schema-plugin 2.99.3 → 2.99.5

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,4 +1,4 @@
1
- import { SchemaWitness } from './Witness.js';
1
+ import { SchemaWitness } from './Witness.ts';
2
2
  export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<SchemaWitness<import("@xylabs/object").BaseParamsFields & {
3
3
  account?: import("@xyo-network/account-model").AccountInstance | "random";
4
4
  addToResolvers?: boolean;
@@ -7,7 +7,7 @@ export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin"
7
7
  config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
8
8
  schema: "network.xyo.schema.witness.config";
9
9
  } & {
10
- schema: import("./Witness.js").SchemaWitnessConfigSchema;
10
+ schema: import("./Witness.ts").SchemaWitnessConfigSchema;
11
11
  }, "schema"> & {
12
12
  schema: "network.xyo.schema.witness.config";
13
13
  }, "schema"> & {
@@ -1,4 +1,4 @@
1
- import { SchemaWitness } from './Witness.js';
1
+ import { SchemaWitness } from './Witness.ts';
2
2
  export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<SchemaWitness<import("@xylabs/object").BaseParamsFields & {
3
3
  account?: import("@xyo-network/account-model").AccountInstance | "random";
4
4
  addToResolvers?: boolean;
@@ -7,7 +7,7 @@ export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin"
7
7
  config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
8
8
  schema: "network.xyo.schema.witness.config";
9
9
  } & {
10
- schema: import("./Witness.js").SchemaWitnessConfigSchema;
10
+ schema: import("./Witness.ts").SchemaWitnessConfigSchema;
11
11
  }, "schema"> & {
12
12
  schema: "network.xyo.schema.witness.config";
13
13
  }, "schema"> & {
@@ -1,4 +1,4 @@
1
- import { SchemaWitness } from './Witness.js';
1
+ import { SchemaWitness } from './Witness.ts';
2
2
  export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<SchemaWitness<import("@xylabs/object").BaseParamsFields & {
3
3
  account?: import("@xyo-network/account-model").AccountInstance | "random";
4
4
  addToResolvers?: boolean;
@@ -7,7 +7,7 @@ export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin"
7
7
  config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
8
8
  schema: "network.xyo.schema.witness.config";
9
9
  } & {
10
- schema: import("./Witness.js").SchemaWitnessConfigSchema;
10
+ schema: import("./Witness.ts").SchemaWitnessConfigSchema;
11
11
  }, "schema"> & {
12
12
  schema: "network.xyo.schema.witness.config";
13
13
  }, "schema"> & {
@@ -3,6 +3,7 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
7
  var __export = (target, all) => {
7
8
  for (var name in all)
8
9
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -37,7 +38,13 @@ var import_delay = require("@xylabs/delay");
37
38
  var import_abstract_witness = require("@xyo-network/abstract-witness");
38
39
  var SchemaWitnessConfigSchema = "network.xyo.schema.witness.config";
39
40
  var SchemaWitness = class extends import_abstract_witness.AbstractWitness {
40
- static configSchemas = [...super.configSchemas, SchemaWitnessConfigSchema];
41
+ static {
42
+ __name(this, "SchemaWitness");
43
+ }
44
+ static configSchemas = [
45
+ ...super.configSchemas,
46
+ SchemaWitnessConfigSchema
47
+ ];
41
48
  static defaultConfigSchema = SchemaWitnessConfigSchema;
42
49
  async observeHandler(_payloads) {
43
50
  await (0, import_delay.delay)(0);
@@ -46,13 +53,15 @@ var SchemaWitness = class extends import_abstract_witness.AbstractWitness {
46
53
  };
47
54
 
48
55
  // src/Plugin.ts
49
- var SchemaPlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
50
- { required: { [import_schema_payload_plugin.SchemaSchema]: 1 }, schema: import_payload_model.PayloadSetSchema },
51
- {
52
- witness: async (params) => {
53
- const result = await SchemaWitness.create(params);
54
- return result;
55
- }
56
- }
57
- );
56
+ var SchemaPlugin = /* @__PURE__ */ __name(() => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)({
57
+ required: {
58
+ [import_schema_payload_plugin.SchemaSchema]: 1
59
+ },
60
+ schema: import_payload_model.PayloadSetSchema
61
+ }, {
62
+ witness: /* @__PURE__ */ __name(async (params) => {
63
+ const result = await SchemaWitness.create(params);
64
+ return result;
65
+ }, "witness")
66
+ }), "SchemaPlugin");
58
67
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { SchemaPlugin as default, SchemaPlugin } from './Plugin.js'\nexport * from './Witness.js'\n","import { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { SchemaWitness } from './Witness.js'\n\nexport const SchemaPlugin = () =>\n createPayloadSetWitnessPlugin<SchemaWitness>(\n { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await SchemaWitness.create(params)\n return result\n },\n },\n )\n","import { delay } from '@xylabs/delay'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nexport type SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\nexport const SchemaWitnessConfigSchema: SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\n\nexport type SchemaWitnessConfig = WitnessConfig<{ schema: SchemaWitnessConfigSchema }>\n\nexport type SchemaWitnessParams = WitnessParams<AnyConfigSchema<SchemaWitnessConfig>>\n\nexport class SchemaWitness<TParams extends SchemaWitnessParams = SchemaWitnessParams> extends AbstractWitness<TParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaWitnessConfigSchema\n\n protected override async observeHandler(_payloads?: Payload[]): Promise<SchemaPayload[]> {\n await delay(0)\n throw new Error('Method not implemented.')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAAiC;AACjC,+BAA8C;AAC9C,mCAA6B;;;ACF7B,mBAAsB;AACtB,8BAAgC;AAOzB,IAAM,4BAAuD;AAM7D,IAAM,gBAAN,cAAuF,wCAAkD;AAAA,EAC9I,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,yBAAyB;AAAA,EACrG,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,eAAe,WAAiD;AACvF,cAAM,oBAAM,CAAC;AACb,UAAM,IAAI,MAAM,yBAAyB;AAAA,EAC3C;AACF;;;ADhBO,IAAM,eAAe,UAC1B;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,yCAAY,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EAC5D;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,cAAc,OAAO,MAAM;AAChD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { SchemaPlugin as default, SchemaPlugin } from './Plugin.ts'\nexport * from './Witness.ts'\n","import { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { SchemaWitness } from './Witness.ts'\n\nexport const SchemaPlugin = () =>\n createPayloadSetWitnessPlugin<SchemaWitness>(\n { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await SchemaWitness.create(params)\n return result\n },\n },\n )\n","import { delay } from '@xylabs/delay'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nexport type SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\nexport const SchemaWitnessConfigSchema: SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\n\nexport type SchemaWitnessConfig = WitnessConfig<{ schema: SchemaWitnessConfigSchema }>\n\nexport type SchemaWitnessParams = WitnessParams<AnyConfigSchema<SchemaWitnessConfig>>\n\nexport class SchemaWitness<TParams extends SchemaWitnessParams = SchemaWitnessParams> extends AbstractWitness<TParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaWitnessConfigSchema\n\n protected override async observeHandler(_payloads?: Payload[]): Promise<SchemaPayload[]> {\n await delay(0)\n throw new Error('Method not implemented.')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA,2BAAiC;AACjC,+BAA8C;AAC9C,mCAA6B;;;ACF7B,mBAAsB;AACtB,8BAAgC;AAOzB,IAAMA,4BAAuD;AAM7D,IAAMC,gBAAN,cAAuFC,wCAAAA;EAd9F,OAc8FA;;;EAC5F,OAAyBC,gBAA0B;OAAI,MAAMA;IAAeH;;EAC5E,OAAyBI,sBAA8BJ;EAEvD,MAAyBK,eAAeC,WAAiD;AACvF,cAAMC,oBAAM,CAAA;AACZ,UAAM,IAAIC,MAAM,yBAAA;EAClB;AACF;;;ADhBO,IAAMC,eAAe,iCAC1BC,wDACE;EAAEC,UAAU;IAAE,CAACC,yCAAAA,GAAe;EAAE;EAAGC,QAAQC;AAAiB,GAC5D;EACEC,SAAS,8BAAOC,WAAAA;AACd,UAAMC,SAAS,MAAMC,cAAcC,OAAOH,MAAAA;AAC1C,WAAOC;EACT,GAHS;AAIX,CAAA,GARwB;","names":["SchemaWitnessConfigSchema","SchemaWitness","AbstractWitness","configSchemas","defaultConfigSchema","observeHandler","_payloads","delay","Error","SchemaPlugin","createPayloadSetWitnessPlugin","required","SchemaSchema","schema","PayloadSetSchema","witness","params","result","SchemaWitness","create"]}
@@ -1,3 +1,3 @@
1
- export { SchemaPlugin as default, SchemaPlugin } from './Plugin.js';
2
- export * from './Witness.js';
1
+ export { SchemaPlugin as default, SchemaPlugin } from './Plugin.ts';
2
+ export * from './Witness.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export { SchemaPlugin as default, SchemaPlugin } from './Plugin.js';
2
- export * from './Witness.js';
1
+ export { SchemaPlugin as default, SchemaPlugin } from './Plugin.ts';
2
+ export * from './Witness.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export { SchemaPlugin as default, SchemaPlugin } from './Plugin.js';
2
- export * from './Witness.js';
1
+ export { SchemaPlugin as default, SchemaPlugin } from './Plugin.ts';
2
+ export * from './Witness.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,6 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
1
4
  // src/Plugin.ts
2
5
  import { PayloadSetSchema } from "@xyo-network/payload-model";
3
6
  import { createPayloadSetWitnessPlugin } from "@xyo-network/payloadset-plugin";
@@ -8,7 +11,13 @@ import { delay } from "@xylabs/delay";
8
11
  import { AbstractWitness } from "@xyo-network/abstract-witness";
9
12
  var SchemaWitnessConfigSchema = "network.xyo.schema.witness.config";
10
13
  var SchemaWitness = class extends AbstractWitness {
11
- static configSchemas = [...super.configSchemas, SchemaWitnessConfigSchema];
14
+ static {
15
+ __name(this, "SchemaWitness");
16
+ }
17
+ static configSchemas = [
18
+ ...super.configSchemas,
19
+ SchemaWitnessConfigSchema
20
+ ];
12
21
  static defaultConfigSchema = SchemaWitnessConfigSchema;
13
22
  async observeHandler(_payloads) {
14
23
  await delay(0);
@@ -17,19 +26,21 @@ var SchemaWitness = class extends AbstractWitness {
17
26
  };
18
27
 
19
28
  // src/Plugin.ts
20
- var SchemaPlugin = () => createPayloadSetWitnessPlugin(
21
- { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },
22
- {
23
- witness: async (params) => {
24
- const result = await SchemaWitness.create(params);
25
- return result;
26
- }
27
- }
28
- );
29
+ var SchemaPlugin = /* @__PURE__ */ __name(() => createPayloadSetWitnessPlugin({
30
+ required: {
31
+ [SchemaSchema]: 1
32
+ },
33
+ schema: PayloadSetSchema
34
+ }, {
35
+ witness: /* @__PURE__ */ __name(async (params) => {
36
+ const result = await SchemaWitness.create(params);
37
+ return result;
38
+ }, "witness")
39
+ }), "SchemaPlugin");
29
40
  export {
30
41
  SchemaPlugin,
31
42
  SchemaWitness,
32
43
  SchemaWitnessConfigSchema,
33
44
  SchemaPlugin as default
34
45
  };
35
- //# sourceMappingURL=index.js.map
46
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["import { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { SchemaWitness } from './Witness.js'\n\nexport const SchemaPlugin = () =>\n createPayloadSetWitnessPlugin<SchemaWitness>(\n { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await SchemaWitness.create(params)\n return result\n },\n },\n )\n","import { delay } from '@xylabs/delay'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nexport type SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\nexport const SchemaWitnessConfigSchema: SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\n\nexport type SchemaWitnessConfig = WitnessConfig<{ schema: SchemaWitnessConfigSchema }>\n\nexport type SchemaWitnessParams = WitnessParams<AnyConfigSchema<SchemaWitnessConfig>>\n\nexport class SchemaWitness<TParams extends SchemaWitnessParams = SchemaWitnessParams> extends AbstractWitness<TParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaWitnessConfigSchema\n\n protected override async observeHandler(_payloads?: Payload[]): Promise<SchemaPayload[]> {\n await delay(0)\n throw new Error('Method not implemented.')\n }\n}\n"],"mappings":";AAAA,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;AAC9C,SAAS,oBAAoB;;;ACF7B,SAAS,aAAa;AACtB,SAAS,uBAAuB;AAOzB,IAAM,4BAAuD;AAM7D,IAAM,gBAAN,cAAuF,gBAAkD;AAAA,EAC9I,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,yBAAyB;AAAA,EACrG,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,eAAe,WAAiD;AACvF,UAAM,MAAM,CAAC;AACb,UAAM,IAAI,MAAM,yBAAyB;AAAA,EAC3C;AACF;;;ADhBO,IAAM,eAAe,MAC1B;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,YAAY,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC5D;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,cAAc,OAAO,MAAM;AAChD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["import { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { SchemaWitness } from './Witness.ts'\n\nexport const SchemaPlugin = () =>\n createPayloadSetWitnessPlugin<SchemaWitness>(\n { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await SchemaWitness.create(params)\n return result\n },\n },\n )\n","import { delay } from '@xylabs/delay'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nexport type SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\nexport const SchemaWitnessConfigSchema: SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\n\nexport type SchemaWitnessConfig = WitnessConfig<{ schema: SchemaWitnessConfigSchema }>\n\nexport type SchemaWitnessParams = WitnessParams<AnyConfigSchema<SchemaWitnessConfig>>\n\nexport class SchemaWitness<TParams extends SchemaWitnessParams = SchemaWitnessParams> extends AbstractWitness<TParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaWitnessConfigSchema\n\n protected override async observeHandler(_payloads?: Payload[]): Promise<SchemaPayload[]> {\n await delay(0)\n throw new Error('Method not implemented.')\n }\n}\n"],"mappings":";;;;AAAA,SAASA,wBAAwB;AACjC,SAASC,qCAAqC;AAC9C,SAASC,oBAAoB;;;ACF7B,SAASC,aAAa;AACtB,SAASC,uBAAuB;AAOzB,IAAMC,4BAAuD;AAM7D,IAAMC,gBAAN,cAAuFC,gBAAAA;EAd9F,OAc8FA;;;EAC5F,OAAyBC,gBAA0B;OAAI,MAAMA;IAAeH;;EAC5E,OAAyBI,sBAA8BJ;EAEvD,MAAyBK,eAAeC,WAAiD;AACvF,UAAMC,MAAM,CAAA;AACZ,UAAM,IAAIC,MAAM,yBAAA;EAClB;AACF;;;ADhBO,IAAMC,eAAe,6BAC1BC,8BACE;EAAEC,UAAU;IAAE,CAACC,YAAAA,GAAe;EAAE;EAAGC,QAAQC;AAAiB,GAC5D;EACEC,SAAS,8BAAOC,WAAAA;AACd,UAAMC,SAAS,MAAMC,cAAcC,OAAOH,MAAAA;AAC1C,WAAOC;EACT,GAHS;AAIX,CAAA,GARwB;","names":["PayloadSetSchema","createPayloadSetWitnessPlugin","SchemaSchema","delay","AbstractWitness","SchemaWitnessConfigSchema","SchemaWitness","AbstractWitness","configSchemas","defaultConfigSchema","observeHandler","_payloads","delay","Error","SchemaPlugin","createPayloadSetWitnessPlugin","required","SchemaSchema","schema","PayloadSetSchema","witness","params","result","SchemaWitness","create"]}
@@ -1,4 +1,4 @@
1
- import { SchemaWitness } from './Witness.js';
1
+ import { SchemaWitness } from './Witness.ts';
2
2
  export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<SchemaWitness<import("@xylabs/object").BaseParamsFields & {
3
3
  account?: import("@xyo-network/account-model").AccountInstance | "random";
4
4
  addToResolvers?: boolean;
@@ -7,7 +7,7 @@ export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin"
7
7
  config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
8
8
  schema: "network.xyo.schema.witness.config";
9
9
  } & {
10
- schema: import("./Witness.js").SchemaWitnessConfigSchema;
10
+ schema: import("./Witness.ts").SchemaWitnessConfigSchema;
11
11
  }, "schema"> & {
12
12
  schema: "network.xyo.schema.witness.config";
13
13
  }, "schema"> & {
@@ -1,4 +1,4 @@
1
- import { SchemaWitness } from './Witness.js';
1
+ import { SchemaWitness } from './Witness.ts';
2
2
  export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<SchemaWitness<import("@xylabs/object").BaseParamsFields & {
3
3
  account?: import("@xyo-network/account-model").AccountInstance | "random";
4
4
  addToResolvers?: boolean;
@@ -7,7 +7,7 @@ export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin"
7
7
  config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
8
8
  schema: "network.xyo.schema.witness.config";
9
9
  } & {
10
- schema: import("./Witness.js").SchemaWitnessConfigSchema;
10
+ schema: import("./Witness.ts").SchemaWitnessConfigSchema;
11
11
  }, "schema"> & {
12
12
  schema: "network.xyo.schema.witness.config";
13
13
  }, "schema"> & {
@@ -1,4 +1,4 @@
1
- import { SchemaWitness } from './Witness.js';
1
+ import { SchemaWitness } from './Witness.ts';
2
2
  export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<SchemaWitness<import("@xylabs/object").BaseParamsFields & {
3
3
  account?: import("@xyo-network/account-model").AccountInstance | "random";
4
4
  addToResolvers?: boolean;
@@ -7,7 +7,7 @@ export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin"
7
7
  config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
8
8
  schema: "network.xyo.schema.witness.config";
9
9
  } & {
10
- schema: import("./Witness.js").SchemaWitnessConfigSchema;
10
+ schema: import("./Witness.ts").SchemaWitnessConfigSchema;
11
11
  }, "schema"> & {
12
12
  schema: "network.xyo.schema.witness.config";
13
13
  }, "schema"> & {
@@ -3,6 +3,7 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
7
  var __export = (target, all) => {
7
8
  for (var name in all)
8
9
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -37,7 +38,13 @@ var import_delay = require("@xylabs/delay");
37
38
  var import_abstract_witness = require("@xyo-network/abstract-witness");
38
39
  var SchemaWitnessConfigSchema = "network.xyo.schema.witness.config";
39
40
  var SchemaWitness = class extends import_abstract_witness.AbstractWitness {
40
- static configSchemas = [...super.configSchemas, SchemaWitnessConfigSchema];
41
+ static {
42
+ __name(this, "SchemaWitness");
43
+ }
44
+ static configSchemas = [
45
+ ...super.configSchemas,
46
+ SchemaWitnessConfigSchema
47
+ ];
41
48
  static defaultConfigSchema = SchemaWitnessConfigSchema;
42
49
  async observeHandler(_payloads) {
43
50
  await (0, import_delay.delay)(0);
@@ -46,13 +53,15 @@ var SchemaWitness = class extends import_abstract_witness.AbstractWitness {
46
53
  };
47
54
 
48
55
  // src/Plugin.ts
49
- var SchemaPlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
50
- { required: { [import_schema_payload_plugin.SchemaSchema]: 1 }, schema: import_payload_model.PayloadSetSchema },
51
- {
52
- witness: async (params) => {
53
- const result = await SchemaWitness.create(params);
54
- return result;
55
- }
56
- }
57
- );
56
+ var SchemaPlugin = /* @__PURE__ */ __name(() => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)({
57
+ required: {
58
+ [import_schema_payload_plugin.SchemaSchema]: 1
59
+ },
60
+ schema: import_payload_model.PayloadSetSchema
61
+ }, {
62
+ witness: /* @__PURE__ */ __name(async (params) => {
63
+ const result = await SchemaWitness.create(params);
64
+ return result;
65
+ }, "witness")
66
+ }), "SchemaPlugin");
58
67
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { SchemaPlugin as default, SchemaPlugin } from './Plugin.js'\nexport * from './Witness.js'\n","import { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { SchemaWitness } from './Witness.js'\n\nexport const SchemaPlugin = () =>\n createPayloadSetWitnessPlugin<SchemaWitness>(\n { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await SchemaWitness.create(params)\n return result\n },\n },\n )\n","import { delay } from '@xylabs/delay'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nexport type SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\nexport const SchemaWitnessConfigSchema: SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\n\nexport type SchemaWitnessConfig = WitnessConfig<{ schema: SchemaWitnessConfigSchema }>\n\nexport type SchemaWitnessParams = WitnessParams<AnyConfigSchema<SchemaWitnessConfig>>\n\nexport class SchemaWitness<TParams extends SchemaWitnessParams = SchemaWitnessParams> extends AbstractWitness<TParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaWitnessConfigSchema\n\n protected override async observeHandler(_payloads?: Payload[]): Promise<SchemaPayload[]> {\n await delay(0)\n throw new Error('Method not implemented.')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAAiC;AACjC,+BAA8C;AAC9C,mCAA6B;;;ACF7B,mBAAsB;AACtB,8BAAgC;AAOzB,IAAM,4BAAuD;AAM7D,IAAM,gBAAN,cAAuF,wCAAkD;AAAA,EAC9I,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,yBAAyB;AAAA,EACrG,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,eAAe,WAAiD;AACvF,cAAM,oBAAM,CAAC;AACb,UAAM,IAAI,MAAM,yBAAyB;AAAA,EAC3C;AACF;;;ADhBO,IAAM,eAAe,UAC1B;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,yCAAY,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EAC5D;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,cAAc,OAAO,MAAM;AAChD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { SchemaPlugin as default, SchemaPlugin } from './Plugin.ts'\nexport * from './Witness.ts'\n","import { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { SchemaWitness } from './Witness.ts'\n\nexport const SchemaPlugin = () =>\n createPayloadSetWitnessPlugin<SchemaWitness>(\n { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await SchemaWitness.create(params)\n return result\n },\n },\n )\n","import { delay } from '@xylabs/delay'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nexport type SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\nexport const SchemaWitnessConfigSchema: SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\n\nexport type SchemaWitnessConfig = WitnessConfig<{ schema: SchemaWitnessConfigSchema }>\n\nexport type SchemaWitnessParams = WitnessParams<AnyConfigSchema<SchemaWitnessConfig>>\n\nexport class SchemaWitness<TParams extends SchemaWitnessParams = SchemaWitnessParams> extends AbstractWitness<TParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaWitnessConfigSchema\n\n protected override async observeHandler(_payloads?: Payload[]): Promise<SchemaPayload[]> {\n await delay(0)\n throw new Error('Method not implemented.')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA,2BAAiC;AACjC,+BAA8C;AAC9C,mCAA6B;;;ACF7B,mBAAsB;AACtB,8BAAgC;AAOzB,IAAMA,4BAAuD;AAM7D,IAAMC,gBAAN,cAAuFC,wCAAAA;EAd9F,OAc8FA;;;EAC5F,OAAyBC,gBAA0B;OAAI,MAAMA;IAAeH;;EAC5E,OAAyBI,sBAA8BJ;EAEvD,MAAyBK,eAAeC,WAAiD;AACvF,cAAMC,oBAAM,CAAA;AACZ,UAAM,IAAIC,MAAM,yBAAA;EAClB;AACF;;;ADhBO,IAAMC,eAAe,iCAC1BC,wDACE;EAAEC,UAAU;IAAE,CAACC,yCAAAA,GAAe;EAAE;EAAGC,QAAQC;AAAiB,GAC5D;EACEC,SAAS,8BAAOC,WAAAA;AACd,UAAMC,SAAS,MAAMC,cAAcC,OAAOH,MAAAA;AAC1C,WAAOC;EACT,GAHS;AAIX,CAAA,GARwB;","names":["SchemaWitnessConfigSchema","SchemaWitness","AbstractWitness","configSchemas","defaultConfigSchema","observeHandler","_payloads","delay","Error","SchemaPlugin","createPayloadSetWitnessPlugin","required","SchemaSchema","schema","PayloadSetSchema","witness","params","result","SchemaWitness","create"]}
@@ -1,3 +1,3 @@
1
- export { SchemaPlugin as default, SchemaPlugin } from './Plugin.js';
2
- export * from './Witness.js';
1
+ export { SchemaPlugin as default, SchemaPlugin } from './Plugin.ts';
2
+ export * from './Witness.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export { SchemaPlugin as default, SchemaPlugin } from './Plugin.js';
2
- export * from './Witness.js';
1
+ export { SchemaPlugin as default, SchemaPlugin } from './Plugin.ts';
2
+ export * from './Witness.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export { SchemaPlugin as default, SchemaPlugin } from './Plugin.js';
2
- export * from './Witness.js';
1
+ export { SchemaPlugin as default, SchemaPlugin } from './Plugin.ts';
2
+ export * from './Witness.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,6 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
1
4
  // src/Plugin.ts
2
5
  import { PayloadSetSchema } from "@xyo-network/payload-model";
3
6
  import { createPayloadSetWitnessPlugin } from "@xyo-network/payloadset-plugin";
@@ -8,7 +11,13 @@ import { delay } from "@xylabs/delay";
8
11
  import { AbstractWitness } from "@xyo-network/abstract-witness";
9
12
  var SchemaWitnessConfigSchema = "network.xyo.schema.witness.config";
10
13
  var SchemaWitness = class extends AbstractWitness {
11
- static configSchemas = [...super.configSchemas, SchemaWitnessConfigSchema];
14
+ static {
15
+ __name(this, "SchemaWitness");
16
+ }
17
+ static configSchemas = [
18
+ ...super.configSchemas,
19
+ SchemaWitnessConfigSchema
20
+ ];
12
21
  static defaultConfigSchema = SchemaWitnessConfigSchema;
13
22
  async observeHandler(_payloads) {
14
23
  await delay(0);
@@ -17,19 +26,21 @@ var SchemaWitness = class extends AbstractWitness {
17
26
  };
18
27
 
19
28
  // src/Plugin.ts
20
- var SchemaPlugin = () => createPayloadSetWitnessPlugin(
21
- { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },
22
- {
23
- witness: async (params) => {
24
- const result = await SchemaWitness.create(params);
25
- return result;
26
- }
27
- }
28
- );
29
+ var SchemaPlugin = /* @__PURE__ */ __name(() => createPayloadSetWitnessPlugin({
30
+ required: {
31
+ [SchemaSchema]: 1
32
+ },
33
+ schema: PayloadSetSchema
34
+ }, {
35
+ witness: /* @__PURE__ */ __name(async (params) => {
36
+ const result = await SchemaWitness.create(params);
37
+ return result;
38
+ }, "witness")
39
+ }), "SchemaPlugin");
29
40
  export {
30
41
  SchemaPlugin,
31
42
  SchemaWitness,
32
43
  SchemaWitnessConfigSchema,
33
44
  SchemaPlugin as default
34
45
  };
35
- //# sourceMappingURL=index.js.map
46
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["import { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { SchemaWitness } from './Witness.js'\n\nexport const SchemaPlugin = () =>\n createPayloadSetWitnessPlugin<SchemaWitness>(\n { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await SchemaWitness.create(params)\n return result\n },\n },\n )\n","import { delay } from '@xylabs/delay'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nexport type SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\nexport const SchemaWitnessConfigSchema: SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\n\nexport type SchemaWitnessConfig = WitnessConfig<{ schema: SchemaWitnessConfigSchema }>\n\nexport type SchemaWitnessParams = WitnessParams<AnyConfigSchema<SchemaWitnessConfig>>\n\nexport class SchemaWitness<TParams extends SchemaWitnessParams = SchemaWitnessParams> extends AbstractWitness<TParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaWitnessConfigSchema\n\n protected override async observeHandler(_payloads?: Payload[]): Promise<SchemaPayload[]> {\n await delay(0)\n throw new Error('Method not implemented.')\n }\n}\n"],"mappings":";AAAA,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;AAC9C,SAAS,oBAAoB;;;ACF7B,SAAS,aAAa;AACtB,SAAS,uBAAuB;AAOzB,IAAM,4BAAuD;AAM7D,IAAM,gBAAN,cAAuF,gBAAkD;AAAA,EAC9I,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,yBAAyB;AAAA,EACrG,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,eAAe,WAAiD;AACvF,UAAM,MAAM,CAAC;AACb,UAAM,IAAI,MAAM,yBAAyB;AAAA,EAC3C;AACF;;;ADhBO,IAAM,eAAe,MAC1B;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,YAAY,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC5D;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,cAAc,OAAO,MAAM;AAChD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["import { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { SchemaWitness } from './Witness.ts'\n\nexport const SchemaPlugin = () =>\n createPayloadSetWitnessPlugin<SchemaWitness>(\n { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await SchemaWitness.create(params)\n return result\n },\n },\n )\n","import { delay } from '@xylabs/delay'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nexport type SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\nexport const SchemaWitnessConfigSchema: SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\n\nexport type SchemaWitnessConfig = WitnessConfig<{ schema: SchemaWitnessConfigSchema }>\n\nexport type SchemaWitnessParams = WitnessParams<AnyConfigSchema<SchemaWitnessConfig>>\n\nexport class SchemaWitness<TParams extends SchemaWitnessParams = SchemaWitnessParams> extends AbstractWitness<TParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaWitnessConfigSchema\n\n protected override async observeHandler(_payloads?: Payload[]): Promise<SchemaPayload[]> {\n await delay(0)\n throw new Error('Method not implemented.')\n }\n}\n"],"mappings":";;;;AAAA,SAASA,wBAAwB;AACjC,SAASC,qCAAqC;AAC9C,SAASC,oBAAoB;;;ACF7B,SAASC,aAAa;AACtB,SAASC,uBAAuB;AAOzB,IAAMC,4BAAuD;AAM7D,IAAMC,gBAAN,cAAuFC,gBAAAA;EAd9F,OAc8FA;;;EAC5F,OAAyBC,gBAA0B;OAAI,MAAMA;IAAeH;;EAC5E,OAAyBI,sBAA8BJ;EAEvD,MAAyBK,eAAeC,WAAiD;AACvF,UAAMC,MAAM,CAAA;AACZ,UAAM,IAAIC,MAAM,yBAAA;EAClB;AACF;;;ADhBO,IAAMC,eAAe,6BAC1BC,8BACE;EAAEC,UAAU;IAAE,CAACC,YAAAA,GAAe;EAAE;EAAGC,QAAQC;AAAiB,GAC5D;EACEC,SAAS,8BAAOC,WAAAA;AACd,UAAMC,SAAS,MAAMC,cAAcC,OAAOH,MAAAA;AAC1C,WAAOC;EACT,GAHS;AAIX,CAAA,GARwB;","names":["PayloadSetSchema","createPayloadSetWitnessPlugin","SchemaSchema","delay","AbstractWitness","SchemaWitnessConfigSchema","SchemaWitness","AbstractWitness","configSchemas","defaultConfigSchema","observeHandler","_payloads","delay","Error","SchemaPlugin","createPayloadSetWitnessPlugin","required","SchemaSchema","schema","PayloadSetSchema","witness","params","result","SchemaWitness","create"]}
@@ -1,4 +1,4 @@
1
- import { SchemaWitness } from './Witness.js';
1
+ import { SchemaWitness } from './Witness.ts';
2
2
  export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<SchemaWitness<import("@xylabs/object").BaseParamsFields & {
3
3
  account?: import("@xyo-network/account-model").AccountInstance | "random";
4
4
  addToResolvers?: boolean;
@@ -7,7 +7,7 @@ export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin"
7
7
  config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
8
8
  schema: "network.xyo.schema.witness.config";
9
9
  } & {
10
- schema: import("./Witness.js").SchemaWitnessConfigSchema;
10
+ schema: import("./Witness.ts").SchemaWitnessConfigSchema;
11
11
  }, "schema"> & {
12
12
  schema: "network.xyo.schema.witness.config";
13
13
  }, "schema"> & {
@@ -1,4 +1,4 @@
1
- import { SchemaWitness } from './Witness.js';
1
+ import { SchemaWitness } from './Witness.ts';
2
2
  export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<SchemaWitness<import("@xylabs/object").BaseParamsFields & {
3
3
  account?: import("@xyo-network/account-model").AccountInstance | "random";
4
4
  addToResolvers?: boolean;
@@ -7,7 +7,7 @@ export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin"
7
7
  config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
8
8
  schema: "network.xyo.schema.witness.config";
9
9
  } & {
10
- schema: import("./Witness.js").SchemaWitnessConfigSchema;
10
+ schema: import("./Witness.ts").SchemaWitnessConfigSchema;
11
11
  }, "schema"> & {
12
12
  schema: "network.xyo.schema.witness.config";
13
13
  }, "schema"> & {
@@ -1,4 +1,4 @@
1
- import { SchemaWitness } from './Witness.js';
1
+ import { SchemaWitness } from './Witness.ts';
2
2
  export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<SchemaWitness<import("@xylabs/object").BaseParamsFields & {
3
3
  account?: import("@xyo-network/account-model").AccountInstance | "random";
4
4
  addToResolvers?: boolean;
@@ -7,7 +7,7 @@ export declare const SchemaPlugin: () => import("@xyo-network/payloadset-plugin"
7
7
  config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
8
8
  schema: "network.xyo.schema.witness.config";
9
9
  } & {
10
- schema: import("./Witness.js").SchemaWitnessConfigSchema;
10
+ schema: import("./Witness.ts").SchemaWitnessConfigSchema;
11
11
  }, "schema"> & {
12
12
  schema: "network.xyo.schema.witness.config";
13
13
  }, "schema"> & {
@@ -2,7 +2,11 @@
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __reflectGet = Reflect.get;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
10
  var __export = (target, all) => {
7
11
  for (var name in all)
8
12
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -16,6 +20,8 @@ var __copyProps = (to, from, except, desc) => {
16
20
  return to;
17
21
  };
18
22
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
24
+ var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
19
25
 
20
26
  // src/index.ts
21
27
  var src_exports = {};
@@ -36,25 +42,32 @@ var import_schema_payload_plugin = require("@xyo-network/schema-payload-plugin")
36
42
  var import_delay = require("@xylabs/delay");
37
43
  var import_abstract_witness = require("@xyo-network/abstract-witness");
38
44
  var SchemaWitnessConfigSchema = "network.xyo.schema.witness.config";
39
- var SchemaWitness = class extends import_abstract_witness.AbstractWitness {
40
- static configSchemas = [...super.configSchemas, SchemaWitnessConfigSchema];
41
- static defaultConfigSchema = SchemaWitnessConfigSchema;
45
+ var _SchemaWitness = class _SchemaWitness extends import_abstract_witness.AbstractWitness {
42
46
  async observeHandler(_payloads) {
43
47
  await (0, import_delay.delay)(0);
44
48
  throw new Error("Method not implemented.");
45
49
  }
46
50
  };
51
+ __name(_SchemaWitness, "SchemaWitness");
52
+ __publicField(_SchemaWitness, "configSchemas", [
53
+ ...__superGet(_SchemaWitness, _SchemaWitness, "configSchemas"),
54
+ SchemaWitnessConfigSchema
55
+ ]);
56
+ __publicField(_SchemaWitness, "defaultConfigSchema", SchemaWitnessConfigSchema);
57
+ var SchemaWitness = _SchemaWitness;
47
58
 
48
59
  // src/Plugin.ts
49
- var SchemaPlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
50
- { required: { [import_schema_payload_plugin.SchemaSchema]: 1 }, schema: import_payload_model.PayloadSetSchema },
51
- {
52
- witness: async (params) => {
53
- const result = await SchemaWitness.create(params);
54
- return result;
55
- }
56
- }
57
- );
60
+ var SchemaPlugin = /* @__PURE__ */ __name(() => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)({
61
+ required: {
62
+ [import_schema_payload_plugin.SchemaSchema]: 1
63
+ },
64
+ schema: import_payload_model.PayloadSetSchema
65
+ }, {
66
+ witness: /* @__PURE__ */ __name(async (params) => {
67
+ const result = await SchemaWitness.create(params);
68
+ return result;
69
+ }, "witness")
70
+ }), "SchemaPlugin");
58
71
  // Annotate the CommonJS export names for ESM import in node:
59
72
  0 && (module.exports = {
60
73
  SchemaPlugin,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { SchemaPlugin as default, SchemaPlugin } from './Plugin.js'\nexport * from './Witness.js'\n","import { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { SchemaWitness } from './Witness.js'\n\nexport const SchemaPlugin = () =>\n createPayloadSetWitnessPlugin<SchemaWitness>(\n { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await SchemaWitness.create(params)\n return result\n },\n },\n )\n","import { delay } from '@xylabs/delay'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nexport type SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\nexport const SchemaWitnessConfigSchema: SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\n\nexport type SchemaWitnessConfig = WitnessConfig<{ schema: SchemaWitnessConfigSchema }>\n\nexport type SchemaWitnessParams = WitnessParams<AnyConfigSchema<SchemaWitnessConfig>>\n\nexport class SchemaWitness<TParams extends SchemaWitnessParams = SchemaWitnessParams> extends AbstractWitness<TParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaWitnessConfigSchema\n\n protected override async observeHandler(_payloads?: Payload[]): Promise<SchemaPayload[]> {\n await delay(0)\n throw new Error('Method not implemented.')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAAiC;AACjC,+BAA8C;AAC9C,mCAA6B;;;ACF7B,mBAAsB;AACtB,8BAAgC;AAOzB,IAAM,4BAAuD;AAM7D,IAAM,gBAAN,cAAuF,wCAAkD;AAAA,EAC9I,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,yBAAyB;AAAA,EACrG,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,eAAe,WAAiD;AACvF,cAAM,oBAAM,CAAC;AACb,UAAM,IAAI,MAAM,yBAAyB;AAAA,EAC3C;AACF;;;ADhBO,IAAM,eAAe,UAC1B;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,yCAAY,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EAC5D;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,cAAc,OAAO,MAAM;AAChD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { SchemaPlugin as default, SchemaPlugin } from './Plugin.ts'\nexport * from './Witness.ts'\n","import { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { SchemaWitness } from './Witness.ts'\n\nexport const SchemaPlugin = () =>\n createPayloadSetWitnessPlugin<SchemaWitness>(\n { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await SchemaWitness.create(params)\n return result\n },\n },\n )\n","import { delay } from '@xylabs/delay'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nexport type SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\nexport const SchemaWitnessConfigSchema: SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\n\nexport type SchemaWitnessConfig = WitnessConfig<{ schema: SchemaWitnessConfigSchema }>\n\nexport type SchemaWitnessParams = WitnessParams<AnyConfigSchema<SchemaWitnessConfig>>\n\nexport class SchemaWitness<TParams extends SchemaWitnessParams = SchemaWitnessParams> extends AbstractWitness<TParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaWitnessConfigSchema\n\n protected override async observeHandler(_payloads?: Payload[]): Promise<SchemaPayload[]> {\n await delay(0)\n throw new Error('Method not implemented.')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA,2BAAiC;AACjC,+BAA8C;AAC9C,mCAA6B;;;ACF7B,mBAAsB;AACtB,8BAAgC;AAOzB,IAAMA,4BAAuD;AAM7D,IAAMC,iBAAN,MAAMA,uBAAiFC,wCAAAA;EAI5F,MAAyBC,eAAeC,WAAiD;AACvF,cAAMC,oBAAM,CAAA;AACZ,UAAM,IAAIC,MAAM,yBAAA;EAClB;AACF;AAR8FJ;AAC5F,cADWD,gBACcM,iBAA0B;KAAI,2CAAMA;EAAeP;;AAC5E,cAFWC,gBAEcO,uBAA8BR;AAFlD,IAAMC,gBAAN;;;ADRA,IAAMQ,eAAe,iCAC1BC,wDACE;EAAEC,UAAU;IAAE,CAACC,yCAAAA,GAAe;EAAE;EAAGC,QAAQC;AAAiB,GAC5D;EACEC,SAAS,8BAAOC,WAAAA;AACd,UAAMC,SAAS,MAAMC,cAAcC,OAAOH,MAAAA;AAC1C,WAAOC;EACT,GAHS;AAIX,CAAA,GARwB;","names":["SchemaWitnessConfigSchema","SchemaWitness","AbstractWitness","observeHandler","_payloads","delay","Error","configSchemas","defaultConfigSchema","SchemaPlugin","createPayloadSetWitnessPlugin","required","SchemaSchema","schema","PayloadSetSchema","witness","params","result","SchemaWitness","create"]}
@@ -1,3 +1,3 @@
1
- export { SchemaPlugin as default, SchemaPlugin } from './Plugin.js';
2
- export * from './Witness.js';
1
+ export { SchemaPlugin as default, SchemaPlugin } from './Plugin.ts';
2
+ export * from './Witness.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export { SchemaPlugin as default, SchemaPlugin } from './Plugin.js';
2
- export * from './Witness.js';
1
+ export { SchemaPlugin as default, SchemaPlugin } from './Plugin.ts';
2
+ export * from './Witness.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export { SchemaPlugin as default, SchemaPlugin } from './Plugin.js';
2
- export * from './Witness.js';
1
+ export { SchemaPlugin as default, SchemaPlugin } from './Plugin.ts';
2
+ export * from './Witness.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,50 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getProtoOf = Object.getPrototypeOf;
3
+ var __reflectGet = Reflect.get;
4
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
+ var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
8
+
9
+ // src/Plugin.ts
10
+ import { PayloadSetSchema } from "@xyo-network/payload-model";
11
+ import { createPayloadSetWitnessPlugin } from "@xyo-network/payloadset-plugin";
12
+ import { SchemaSchema } from "@xyo-network/schema-payload-plugin";
13
+
14
+ // src/Witness.ts
15
+ import { delay } from "@xylabs/delay";
16
+ import { AbstractWitness } from "@xyo-network/abstract-witness";
17
+ var SchemaWitnessConfigSchema = "network.xyo.schema.witness.config";
18
+ var _SchemaWitness = class _SchemaWitness extends AbstractWitness {
19
+ async observeHandler(_payloads) {
20
+ await delay(0);
21
+ throw new Error("Method not implemented.");
22
+ }
23
+ };
24
+ __name(_SchemaWitness, "SchemaWitness");
25
+ __publicField(_SchemaWitness, "configSchemas", [
26
+ ...__superGet(_SchemaWitness, _SchemaWitness, "configSchemas"),
27
+ SchemaWitnessConfigSchema
28
+ ]);
29
+ __publicField(_SchemaWitness, "defaultConfigSchema", SchemaWitnessConfigSchema);
30
+ var SchemaWitness = _SchemaWitness;
31
+
32
+ // src/Plugin.ts
33
+ var SchemaPlugin = /* @__PURE__ */ __name(() => createPayloadSetWitnessPlugin({
34
+ required: {
35
+ [SchemaSchema]: 1
36
+ },
37
+ schema: PayloadSetSchema
38
+ }, {
39
+ witness: /* @__PURE__ */ __name(async (params) => {
40
+ const result = await SchemaWitness.create(params);
41
+ return result;
42
+ }, "witness")
43
+ }), "SchemaPlugin");
44
+ export {
45
+ SchemaPlugin,
46
+ SchemaWitness,
47
+ SchemaWitnessConfigSchema,
48
+ SchemaPlugin as default
49
+ };
50
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["import { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { SchemaWitness } from './Witness.js'\n\nexport const SchemaPlugin = () =>\n createPayloadSetWitnessPlugin<SchemaWitness>(\n { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await SchemaWitness.create(params)\n return result\n },\n },\n )\n","import { delay } from '@xylabs/delay'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nexport type SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\nexport const SchemaWitnessConfigSchema: SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\n\nexport type SchemaWitnessConfig = WitnessConfig<{ schema: SchemaWitnessConfigSchema }>\n\nexport type SchemaWitnessParams = WitnessParams<AnyConfigSchema<SchemaWitnessConfig>>\n\nexport class SchemaWitness<TParams extends SchemaWitnessParams = SchemaWitnessParams> extends AbstractWitness<TParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaWitnessConfigSchema\n\n protected override async observeHandler(_payloads?: Payload[]): Promise<SchemaPayload[]> {\n await delay(0)\n throw new Error('Method not implemented.')\n }\n}\n"],"mappings":";AAAA,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;AAC9C,SAAS,oBAAoB;;;ACF7B,SAAS,aAAa;AACtB,SAAS,uBAAuB;AAOzB,IAAM,4BAAuD;AAM7D,IAAM,gBAAN,cAAuF,gBAAkD;AAAA,EAC9I,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,yBAAyB;AAAA,EACrG,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,eAAe,WAAiD;AACvF,UAAM,MAAM,CAAC;AACb,UAAM,IAAI,MAAM,yBAAyB;AAAA,EAC3C;AACF;;;ADhBO,IAAM,eAAe,MAC1B;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,YAAY,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC5D;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,cAAc,OAAO,MAAM;AAChD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["import { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { SchemaWitness } from './Witness.ts'\n\nexport const SchemaPlugin = () =>\n createPayloadSetWitnessPlugin<SchemaWitness>(\n { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await SchemaWitness.create(params)\n return result\n },\n },\n )\n","import { delay } from '@xylabs/delay'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nexport type SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\nexport const SchemaWitnessConfigSchema: SchemaWitnessConfigSchema = 'network.xyo.schema.witness.config'\n\nexport type SchemaWitnessConfig = WitnessConfig<{ schema: SchemaWitnessConfigSchema }>\n\nexport type SchemaWitnessParams = WitnessParams<AnyConfigSchema<SchemaWitnessConfig>>\n\nexport class SchemaWitness<TParams extends SchemaWitnessParams = SchemaWitnessParams> extends AbstractWitness<TParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaWitnessConfigSchema\n\n protected override async observeHandler(_payloads?: Payload[]): Promise<SchemaPayload[]> {\n await delay(0)\n throw new Error('Method not implemented.')\n }\n}\n"],"mappings":";;;;;;;;;AAAA,SAASA,wBAAwB;AACjC,SAASC,qCAAqC;AAC9C,SAASC,oBAAoB;;;ACF7B,SAASC,aAAa;AACtB,SAASC,uBAAuB;AAOzB,IAAMC,4BAAuD;AAM7D,IAAMC,iBAAN,MAAMA,uBAAiFC,gBAAAA;EAI5F,MAAyBC,eAAeC,WAAiD;AACvF,UAAMC,MAAM,CAAA;AACZ,UAAM,IAAIC,MAAM,yBAAA;EAClB;AACF;AAR8FJ;AAC5F,cADWD,gBACcM,iBAA0B;KAAI,2CAAMA;EAAeP;;AAC5E,cAFWC,gBAEcO,uBAA8BR;AAFlD,IAAMC,gBAAN;;;ADRA,IAAMQ,eAAe,6BAC1BC,8BACE;EAAEC,UAAU;IAAE,CAACC,YAAAA,GAAe;EAAE;EAAGC,QAAQC;AAAiB,GAC5D;EACEC,SAAS,8BAAOC,WAAAA;AACd,UAAMC,SAAS,MAAMC,cAAcC,OAAOH,MAAAA;AAC1C,WAAOC;EACT,GAHS;AAIX,CAAA,GARwB;","names":["PayloadSetSchema","createPayloadSetWitnessPlugin","SchemaSchema","delay","AbstractWitness","SchemaWitnessConfigSchema","SchemaWitness","AbstractWitness","observeHandler","_payloads","delay","Error","configSchemas","defaultConfigSchema","SchemaPlugin","createPayloadSetWitnessPlugin","required","SchemaSchema","schema","PayloadSetSchema","witness","params","result","SchemaWitness","create"]}
package/package.json CHANGED
@@ -10,18 +10,18 @@
10
10
  "url": "https://github.com/XYOracleNetwork/plugins/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/delay": "^3.6.1",
14
- "@xyo-network/abstract-witness": "^2.110.6",
15
- "@xyo-network/module-model": "^2.110.6",
16
- "@xyo-network/payload-model": "^2.110.6",
17
- "@xyo-network/payloadset-plugin": "^2.110.6",
18
- "@xyo-network/schema-payload-plugin": "^2.110.6",
19
- "@xyo-network/witness-model": "^2.110.6"
13
+ "@xylabs/delay": "^3.6.8",
14
+ "@xyo-network/abstract-witness": "^2.111.2",
15
+ "@xyo-network/module-model": "^2.111.2",
16
+ "@xyo-network/payload-model": "^2.111.2",
17
+ "@xyo-network/payloadset-plugin": "^2.111.2",
18
+ "@xyo-network/schema-payload-plugin": "^2.111.2",
19
+ "@xyo-network/witness-model": "^2.111.2"
20
20
  },
21
21
  "devDependencies": {
22
- "@xylabs/ts-scripts-yarn3": "^3.12.2",
23
- "@xylabs/tsconfig": "^3.12.2",
24
- "typescript": "^5.5.3"
22
+ "@xylabs/ts-scripts-yarn3": "^3.15.13",
23
+ "@xylabs/tsconfig": "^3.15.13",
24
+ "typescript": "^5.5.4"
25
25
  },
26
26
  "description": "Typescript/Javascript Plugins for XYO Platform",
27
27
  "types": "dist/node/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "import": {
36
36
  "types": "./dist/browser/index.d.mts",
37
- "default": "./dist/browser/index.js"
37
+ "default": "./dist/browser/index.mjs"
38
38
  }
39
39
  },
40
40
  "node": {
@@ -44,14 +44,14 @@
44
44
  },
45
45
  "import": {
46
46
  "types": "./dist/node/index.d.mts",
47
- "default": "./dist/node/index.js"
47
+ "default": "./dist/node/index.mjs"
48
48
  }
49
49
  }
50
50
  },
51
51
  "./package.json": "./package.json"
52
52
  },
53
53
  "main": "dist/node/index.cjs",
54
- "module": "dist/node/index.js",
54
+ "module": "dist/node/index.mjs",
55
55
  "homepage": "https://xyo.network",
56
56
  "license": "LGPL-3.0-only",
57
57
  "publishConfig": {
@@ -62,6 +62,6 @@
62
62
  "url": "https://github.com/XYOracleNetwork/plugins.git"
63
63
  },
64
64
  "sideEffects": false,
65
- "version": "2.99.3",
65
+ "version": "2.99.5",
66
66
  "type": "module"
67
67
  }
package/src/Plugin.ts CHANGED
@@ -2,7 +2,7 @@ import { PayloadSetSchema } from '@xyo-network/payload-model'
2
2
  import { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'
3
3
  import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
4
4
 
5
- import { SchemaWitness } from './Witness.js'
5
+ import { SchemaWitness } from './Witness.ts'
6
6
 
7
7
  export const SchemaPlugin = () =>
8
8
  createPayloadSetWitnessPlugin<SchemaWitness>(
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // eslint-disable-next-line import/no-default-export
2
- export { SchemaPlugin as default, SchemaPlugin } from './Plugin.js'
3
- export * from './Witness.js'
2
+ export { SchemaPlugin as default, SchemaPlugin } from './Plugin.ts'
3
+ export * from './Witness.ts'
@@ -1,35 +0,0 @@
1
- // src/Plugin.ts
2
- import { PayloadSetSchema } from "@xyo-network/payload-model";
3
- import { createPayloadSetWitnessPlugin } from "@xyo-network/payloadset-plugin";
4
- import { SchemaSchema } from "@xyo-network/schema-payload-plugin";
5
-
6
- // src/Witness.ts
7
- import { delay } from "@xylabs/delay";
8
- import { AbstractWitness } from "@xyo-network/abstract-witness";
9
- var SchemaWitnessConfigSchema = "network.xyo.schema.witness.config";
10
- var SchemaWitness = class extends AbstractWitness {
11
- static configSchemas = [...super.configSchemas, SchemaWitnessConfigSchema];
12
- static defaultConfigSchema = SchemaWitnessConfigSchema;
13
- async observeHandler(_payloads) {
14
- await delay(0);
15
- throw new Error("Method not implemented.");
16
- }
17
- };
18
-
19
- // src/Plugin.ts
20
- var SchemaPlugin = () => createPayloadSetWitnessPlugin(
21
- { required: { [SchemaSchema]: 1 }, schema: PayloadSetSchema },
22
- {
23
- witness: async (params) => {
24
- const result = await SchemaWitness.create(params);
25
- return result;
26
- }
27
- }
28
- );
29
- export {
30
- SchemaPlugin,
31
- SchemaWitness,
32
- SchemaWitnessConfigSchema,
33
- SchemaPlugin as default
34
- };
35
- //# sourceMappingURL=index.js.map