@xyo-network/payload-model 2.75.15 → 2.75.17

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.
Files changed (82) hide show
  1. package/dist/docs.json +89 -89
  2. package/package.json +4 -4
  3. package/dist/browser/EmptyPayload.cjs +0 -19
  4. package/dist/browser/EmptyPayload.cjs.map +0 -1
  5. package/dist/browser/EmptyPayload.js +0 -1
  6. package/dist/browser/EmptyPayload.js.map +0 -1
  7. package/dist/browser/Error.cjs +0 -27
  8. package/dist/browser/Error.cjs.map +0 -1
  9. package/dist/browser/Error.js +0 -6
  10. package/dist/browser/Error.js.map +0 -1
  11. package/dist/browser/Payload.cjs +0 -27
  12. package/dist/browser/Payload.cjs.map +0 -1
  13. package/dist/browser/Payload.js +0 -6
  14. package/dist/browser/Payload.js.map +0 -1
  15. package/dist/browser/PayloadFindFilter.cjs +0 -19
  16. package/dist/browser/PayloadFindFilter.cjs.map +0 -1
  17. package/dist/browser/PayloadFindFilter.js +0 -1
  18. package/dist/browser/PayloadFindFilter.js.map +0 -1
  19. package/dist/browser/PayloadSet/PayloadSetPayload.cjs +0 -19
  20. package/dist/browser/PayloadSet/PayloadSetPayload.cjs.map +0 -1
  21. package/dist/browser/PayloadSet/PayloadSetPayload.js +0 -1
  22. package/dist/browser/PayloadSet/PayloadSetPayload.js.map +0 -1
  23. package/dist/browser/PayloadSet/PayloadSetSchema.cjs +0 -27
  24. package/dist/browser/PayloadSet/PayloadSetSchema.cjs.map +0 -1
  25. package/dist/browser/PayloadSet/PayloadSetSchema.js +0 -6
  26. package/dist/browser/PayloadSet/PayloadSetSchema.js.map +0 -1
  27. package/dist/browser/PayloadSet/index.cjs +0 -29
  28. package/dist/browser/PayloadSet/index.cjs.map +0 -1
  29. package/dist/browser/PayloadSet/index.js +0 -6
  30. package/dist/browser/PayloadSet/index.js.map +0 -1
  31. package/dist/browser/Query.cjs +0 -19
  32. package/dist/browser/Query.cjs.map +0 -1
  33. package/dist/browser/Query.js +0 -1
  34. package/dist/browser/Query.js.map +0 -1
  35. package/dist/browser/isPayload.cjs +0 -42
  36. package/dist/browser/isPayload.cjs.map +0 -1
  37. package/dist/browser/isPayload.js +0 -21
  38. package/dist/browser/isPayload.js.map +0 -1
  39. package/dist/browser/isPayloadOfSchemaType.cjs +0 -29
  40. package/dist/browser/isPayloadOfSchemaType.cjs.map +0 -1
  41. package/dist/browser/isPayloadOfSchemaType.js +0 -8
  42. package/dist/browser/isPayloadOfSchemaType.js.map +0 -1
  43. package/dist/node/EmptyPayload.js +0 -19
  44. package/dist/node/EmptyPayload.js.map +0 -1
  45. package/dist/node/EmptyPayload.mjs +0 -1
  46. package/dist/node/EmptyPayload.mjs.map +0 -1
  47. package/dist/node/Error.js +0 -31
  48. package/dist/node/Error.js.map +0 -1
  49. package/dist/node/Error.mjs +0 -6
  50. package/dist/node/Error.mjs.map +0 -1
  51. package/dist/node/Payload.js +0 -31
  52. package/dist/node/Payload.js.map +0 -1
  53. package/dist/node/Payload.mjs +0 -6
  54. package/dist/node/Payload.mjs.map +0 -1
  55. package/dist/node/PayloadFindFilter.js +0 -19
  56. package/dist/node/PayloadFindFilter.js.map +0 -1
  57. package/dist/node/PayloadFindFilter.mjs +0 -1
  58. package/dist/node/PayloadFindFilter.mjs.map +0 -1
  59. package/dist/node/PayloadSet/PayloadSetPayload.js +0 -19
  60. package/dist/node/PayloadSet/PayloadSetPayload.js.map +0 -1
  61. package/dist/node/PayloadSet/PayloadSetPayload.mjs +0 -1
  62. package/dist/node/PayloadSet/PayloadSetPayload.mjs.map +0 -1
  63. package/dist/node/PayloadSet/PayloadSetSchema.js +0 -31
  64. package/dist/node/PayloadSet/PayloadSetSchema.js.map +0 -1
  65. package/dist/node/PayloadSet/PayloadSetSchema.mjs +0 -6
  66. package/dist/node/PayloadSet/PayloadSetSchema.mjs.map +0 -1
  67. package/dist/node/PayloadSet/index.js +0 -33
  68. package/dist/node/PayloadSet/index.js.map +0 -1
  69. package/dist/node/PayloadSet/index.mjs +0 -6
  70. package/dist/node/PayloadSet/index.mjs.map +0 -1
  71. package/dist/node/Query.js +0 -19
  72. package/dist/node/Query.js.map +0 -1
  73. package/dist/node/Query.mjs +0 -1
  74. package/dist/node/Query.mjs.map +0 -1
  75. package/dist/node/isPayload.js +0 -48
  76. package/dist/node/isPayload.js.map +0 -1
  77. package/dist/node/isPayload.mjs +0 -21
  78. package/dist/node/isPayload.mjs.map +0 -1
  79. package/dist/node/isPayloadOfSchemaType.js +0 -33
  80. package/dist/node/isPayloadOfSchemaType.js.map +0 -1
  81. package/dist/node/isPayloadOfSchemaType.mjs +0 -8
  82. package/dist/node/isPayloadOfSchemaType.mjs.map +0 -1
package/package.json CHANGED
@@ -10,11 +10,11 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xyo-network/object": "^2.75.15"
13
+ "@xyo-network/object": "^2.75.17"
14
14
  },
15
15
  "devDependencies": {
16
- "@xylabs/ts-scripts-yarn3": "^3.0.88",
17
- "@xylabs/tsconfig": "^3.0.88",
16
+ "@xylabs/ts-scripts-yarn3": "^3.1.9",
17
+ "@xylabs/tsconfig": "^3.1.9",
18
18
  "typescript": "^5.2.2"
19
19
  },
20
20
  "description": "Primary SDK for using XYO Protocol 2.0",
@@ -60,5 +60,5 @@
60
60
  },
61
61
  "sideEffects": false,
62
62
  "types": "dist/node/index.d.ts",
63
- "version": "2.75.15"
63
+ "version": "2.75.17"
64
64
  }
@@ -1,19 +0,0 @@
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 __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/EmptyPayload.ts
17
- var EmptyPayload_exports = {};
18
- module.exports = __toCommonJS(EmptyPayload_exports);
19
- //# sourceMappingURL=EmptyPayload.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/EmptyPayload.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-types\nexport type EmptyPayload = {}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=EmptyPayload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,27 +0,0 @@
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/Error.ts
21
- var Error_exports = {};
22
- __export(Error_exports, {
23
- ModuleErrorSchema: () => ModuleErrorSchema
24
- });
25
- module.exports = __toCommonJS(Error_exports);
26
- var ModuleErrorSchema = "network.xyo.error.module";
27
- //# sourceMappingURL=Error.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Error.ts"],"sourcesContent":["import { Payload } from './Payload'\n\nexport type ModuleErrorSchema = 'network.xyo.error.module'\nexport const ModuleErrorSchema: ModuleErrorSchema = 'network.xyo.error.module'\n\nexport type ModuleError = Payload<{\n message?: string\n name?: string\n query?: string\n schema: ModuleErrorSchema\n sources?: string[]\n}>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,IAAM,oBAAuC;","names":[]}
@@ -1,6 +0,0 @@
1
- // src/Error.ts
2
- var ModuleErrorSchema = "network.xyo.error.module";
3
- export {
4
- ModuleErrorSchema
5
- };
6
- //# sourceMappingURL=Error.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Error.ts"],"sourcesContent":["import { Payload } from './Payload'\n\nexport type ModuleErrorSchema = 'network.xyo.error.module'\nexport const ModuleErrorSchema: ModuleErrorSchema = 'network.xyo.error.module'\n\nexport type ModuleError = Payload<{\n message?: string\n name?: string\n query?: string\n schema: ModuleErrorSchema\n sources?: string[]\n}>\n"],"mappings":";AAGO,IAAM,oBAAuC;","names":[]}
@@ -1,27 +0,0 @@
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/Payload.ts
21
- var Payload_exports = {};
22
- __export(Payload_exports, {
23
- PayloadSchema: () => PayloadSchema
24
- });
25
- module.exports = __toCommonJS(Payload_exports);
26
- var PayloadSchema = "network.xyo.payload";
27
- //# sourceMappingURL=Payload.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Payload.ts"],"sourcesContent":["import { EmptyPayload } from './EmptyPayload'\n\nexport type Schema = string\n\nexport type WithTimestamp<T extends EmptyPayload = EmptyPayload> = T & { timestamp: number }\n\nexport type PayloadSchema = 'network.xyo.payload'\nexport const PayloadSchema: PayloadSchema = 'network.xyo.payload'\n\nexport type SchemaFields = {\n schema: Schema\n}\n\nexport type WithSchema<T extends EmptyPayload | void = void> = T extends EmptyPayload ? SchemaFields & T : SchemaFields\n\nexport type PayloadFields = {\n sources?: string[]\n}\n\nexport type WithPayload<T extends EmptyPayload | void = void> = WithSchema<T extends EmptyPayload ? PayloadFields & T : PayloadFields>\n\nexport type Payload<T extends void | object | WithSchema = void, S extends Schema | void = void> = T extends WithSchema\n ? S extends Schema\n ? /* T (w/Schema) & S provided */\n WithPayload<Omit<T, 'schema'> & { schema: S } & PayloadFields>\n : /* Only T (w/Schema) provided */\n WithPayload<T>\n : T extends object\n ? S extends Schema\n ? /* T (w/o Schema) & S provided */\n WithPayload<T & { schema: S } & PayloadFields>\n : /* Only T (w/o Schema) provided */\n WithPayload<T & { schema: Schema } & PayloadFields>\n : /* Either just S or neither S or T provided */\n {\n schema: S extends Schema ? S : Schema\n } & PayloadFields\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,IAAM,gBAA+B;","names":[]}
@@ -1,6 +0,0 @@
1
- // src/Payload.ts
2
- var PayloadSchema = "network.xyo.payload";
3
- export {
4
- PayloadSchema
5
- };
6
- //# sourceMappingURL=Payload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Payload.ts"],"sourcesContent":["import { EmptyPayload } from './EmptyPayload'\n\nexport type Schema = string\n\nexport type WithTimestamp<T extends EmptyPayload = EmptyPayload> = T & { timestamp: number }\n\nexport type PayloadSchema = 'network.xyo.payload'\nexport const PayloadSchema: PayloadSchema = 'network.xyo.payload'\n\nexport type SchemaFields = {\n schema: Schema\n}\n\nexport type WithSchema<T extends EmptyPayload | void = void> = T extends EmptyPayload ? SchemaFields & T : SchemaFields\n\nexport type PayloadFields = {\n sources?: string[]\n}\n\nexport type WithPayload<T extends EmptyPayload | void = void> = WithSchema<T extends EmptyPayload ? PayloadFields & T : PayloadFields>\n\nexport type Payload<T extends void | object | WithSchema = void, S extends Schema | void = void> = T extends WithSchema\n ? S extends Schema\n ? /* T (w/Schema) & S provided */\n WithPayload<Omit<T, 'schema'> & { schema: S } & PayloadFields>\n : /* Only T (w/Schema) provided */\n WithPayload<T>\n : T extends object\n ? S extends Schema\n ? /* T (w/o Schema) & S provided */\n WithPayload<T & { schema: S } & PayloadFields>\n : /* Only T (w/o Schema) provided */\n WithPayload<T & { schema: Schema } & PayloadFields>\n : /* Either just S or neither S or T provided */\n {\n schema: S extends Schema ? S : Schema\n } & PayloadFields\n"],"mappings":";AAOO,IAAM,gBAA+B;","names":[]}
@@ -1,19 +0,0 @@
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 __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/PayloadFindFilter.ts
17
- var PayloadFindFilter_exports = {};
18
- module.exports = __toCommonJS(PayloadFindFilter_exports);
19
- //# sourceMappingURL=PayloadFindFilter.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/PayloadFindFilter.ts"],"sourcesContent":["/** @deprecated use offset as a string (hash) instead */\nexport interface PayloadFindFilterTimeOffset {\n offset?: number\n}\n\nexport interface PayloadFindFilterHashOffset {\n offset?: string\n}\n\nexport type PayloadFindFilterOffset = PayloadFindFilterTimeOffset | PayloadFindFilterHashOffset\n\nexport type PayloadFindFilter = {\n //hash?: string | string[]\n limit?: number\n order?: 'desc' | 'asc'\n schema?: string | string[]\n /** @deprecated use offset instead */\n timestamp?: number\n} & PayloadFindFilterOffset\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=PayloadFindFilter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,19 +0,0 @@
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 __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/PayloadSet/PayloadSetPayload.ts
17
- var PayloadSetPayload_exports = {};
18
- module.exports = __toCommonJS(PayloadSetPayload_exports);
19
- //# sourceMappingURL=PayloadSetPayload.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/PayloadSet/PayloadSetPayload.ts"],"sourcesContent":["import { Payload } from '../Payload'\nimport { PayloadSetSchema } from './PayloadSetSchema'\n\nexport interface PayloadSet {\n optional?: Record<string, number>\n required?: Record<string, number>\n}\n\nexport type PayloadSetPayload = Payload<PayloadSet, PayloadSetSchema>\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=PayloadSetPayload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,27 +0,0 @@
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/PayloadSet/PayloadSetSchema.ts
21
- var PayloadSetSchema_exports = {};
22
- __export(PayloadSetSchema_exports, {
23
- PayloadSetSchema: () => PayloadSetSchema
24
- });
25
- module.exports = __toCommonJS(PayloadSetSchema_exports);
26
- var PayloadSetSchema = "network.xyo.payload.set";
27
- //# sourceMappingURL=PayloadSetSchema.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/PayloadSet/PayloadSetSchema.ts"],"sourcesContent":["export type PayloadSetSchema = 'network.xyo.payload.set'\nexport const PayloadSetSchema: PayloadSetSchema = 'network.xyo.payload.set'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,IAAM,mBAAqC;","names":[]}
@@ -1,6 +0,0 @@
1
- // src/PayloadSet/PayloadSetSchema.ts
2
- var PayloadSetSchema = "network.xyo.payload.set";
3
- export {
4
- PayloadSetSchema
5
- };
6
- //# sourceMappingURL=PayloadSetSchema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/PayloadSet/PayloadSetSchema.ts"],"sourcesContent":["export type PayloadSetSchema = 'network.xyo.payload.set'\nexport const PayloadSetSchema: PayloadSetSchema = 'network.xyo.payload.set'\n"],"mappings":";AACO,IAAM,mBAAqC;","names":[]}
@@ -1,29 +0,0 @@
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/PayloadSet/index.ts
21
- var PayloadSet_exports = {};
22
- __export(PayloadSet_exports, {
23
- PayloadSetSchema: () => PayloadSetSchema
24
- });
25
- module.exports = __toCommonJS(PayloadSet_exports);
26
-
27
- // src/PayloadSet/PayloadSetSchema.ts
28
- var PayloadSetSchema = "network.xyo.payload.set";
29
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/PayloadSet/index.ts","../../../src/PayloadSet/PayloadSetSchema.ts"],"sourcesContent":["export * from './PayloadSetPayload'\nexport * from './PayloadSetSchema'\n","export type PayloadSetSchema = 'network.xyo.payload.set'\nexport const PayloadSetSchema: PayloadSetSchema = 'network.xyo.payload.set'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCO,IAAM,mBAAqC;","names":[]}
@@ -1,6 +0,0 @@
1
- // src/PayloadSet/PayloadSetSchema.ts
2
- var PayloadSetSchema = "network.xyo.payload.set";
3
- export {
4
- PayloadSetSchema
5
- };
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/PayloadSet/PayloadSetSchema.ts"],"sourcesContent":["export type PayloadSetSchema = 'network.xyo.payload.set'\nexport const PayloadSetSchema: PayloadSetSchema = 'network.xyo.payload.set'\n"],"mappings":";AACO,IAAM,mBAAqC;","names":[]}
@@ -1,19 +0,0 @@
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 __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/Query.ts
17
- var Query_exports = {};
18
- module.exports = __toCommonJS(Query_exports);
19
- //# sourceMappingURL=Query.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Query.ts"],"sourcesContent":["import { Payload } from './Payload'\n\nexport interface QueryFields {\n /** @field The addresses of the intended handlers */\n address?: string | [string]\n\n /** @field The maximum XYO that can be spent executing the query */\n budget?: number\n\n /** @field The frequency on which this query can be rerun */\n maxFrequency?: 'once' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year'\n\n /** @field The starting point for the bidding on the query */\n minBid?: number\n}\n\nexport type Query<T extends Payload | void = void> = T extends Payload ? Payload<T & QueryFields> : Payload<QueryFields>\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=Query.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,42 +0,0 @@
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/isPayload.ts
21
- var isPayload_exports = {};
22
- __export(isPayload_exports, {
23
- asPayload: () => asPayload,
24
- isAnyPayload: () => isAnyPayload,
25
- isPayload: () => isPayload
26
- });
27
- module.exports = __toCommonJS(isPayload_exports);
28
- var import_object = require("@xyo-network/object");
29
- var isAnyPayload = (obj) => {
30
- if ((0, import_object.isObject)(obj)) {
31
- return typeof obj.schema === "string";
32
- }
33
- return false;
34
- };
35
- var isPayload = (schema) => (obj) => {
36
- if (isAnyPayload(obj)) {
37
- return schema.includes(obj.schema);
38
- }
39
- return false;
40
- };
41
- var asPayload = (schema) => import_object.AsObjectFactory.create((obj) => isPayload(schema)(obj));
42
- //# sourceMappingURL=isPayload.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/isPayload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AsObjectFactory, isObject } from '@xyo-network/object'\n\nimport { Payload } from './Payload'\n\nexport const isAnyPayload = (obj: any): obj is Payload => {\n if (isObject(obj)) {\n return typeof obj.schema === 'string'\n }\n return false\n}\n\nexport const isPayload =\n <T extends Payload>(schema: string[]) =>\n (obj: any): obj is T => {\n if (isAnyPayload(obj)) {\n return schema.includes(obj.schema)\n }\n return false\n }\n\nexport const asPayload = <T extends Payload>(schema: string[]) => AsObjectFactory.create((obj: any): obj is T => isPayload(schema)(obj))\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAA0C;AAInC,IAAM,eAAe,CAAC,QAA6B;AACxD,UAAI,wBAAS,GAAG,GAAG;AACjB,WAAO,OAAO,IAAI,WAAW;AAAA,EAC/B;AACA,SAAO;AACT;AAEO,IAAM,YACX,CAAoB,WACpB,CAAC,QAAuB;AACtB,MAAI,aAAa,GAAG,GAAG;AACrB,WAAO,OAAO,SAAS,IAAI,MAAM;AAAA,EACnC;AACA,SAAO;AACT;AAEK,IAAM,YAAY,CAAoB,WAAqB,8BAAgB,OAAO,CAAC,QAAuB,UAAU,MAAM,EAAE,GAAG,CAAC;","names":[]}
@@ -1,21 +0,0 @@
1
- // src/isPayload.ts
2
- import { AsObjectFactory, isObject } from "@xyo-network/object";
3
- var isAnyPayload = (obj) => {
4
- if (isObject(obj)) {
5
- return typeof obj.schema === "string";
6
- }
7
- return false;
8
- };
9
- var isPayload = (schema) => (obj) => {
10
- if (isAnyPayload(obj)) {
11
- return schema.includes(obj.schema);
12
- }
13
- return false;
14
- };
15
- var asPayload = (schema) => AsObjectFactory.create((obj) => isPayload(schema)(obj));
16
- export {
17
- asPayload,
18
- isAnyPayload,
19
- isPayload
20
- };
21
- //# sourceMappingURL=isPayload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/isPayload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AsObjectFactory, isObject } from '@xyo-network/object'\n\nimport { Payload } from './Payload'\n\nexport const isAnyPayload = (obj: any): obj is Payload => {\n if (isObject(obj)) {\n return typeof obj.schema === 'string'\n }\n return false\n}\n\nexport const isPayload =\n <T extends Payload>(schema: string[]) =>\n (obj: any): obj is T => {\n if (isAnyPayload(obj)) {\n return schema.includes(obj.schema)\n }\n return false\n }\n\nexport const asPayload = <T extends Payload>(schema: string[]) => AsObjectFactory.create((obj: any): obj is T => isPayload(schema)(obj))\n"],"mappings":";AACA,SAAS,iBAAiB,gBAAgB;AAInC,IAAM,eAAe,CAAC,QAA6B;AACxD,MAAI,SAAS,GAAG,GAAG;AACjB,WAAO,OAAO,IAAI,WAAW;AAAA,EAC/B;AACA,SAAO;AACT;AAEO,IAAM,YACX,CAAoB,WACpB,CAAC,QAAuB;AACtB,MAAI,aAAa,GAAG,GAAG;AACrB,WAAO,OAAO,SAAS,IAAI,MAAM;AAAA,EACnC;AACA,SAAO;AACT;AAEK,IAAM,YAAY,CAAoB,WAAqB,gBAAgB,OAAO,CAAC,QAAuB,UAAU,MAAM,EAAE,GAAG,CAAC;","names":[]}
@@ -1,29 +0,0 @@
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/isPayloadOfSchemaType.ts
21
- var isPayloadOfSchemaType_exports = {};
22
- __export(isPayloadOfSchemaType_exports, {
23
- isPayloadOfSchemaType: () => isPayloadOfSchemaType
24
- });
25
- module.exports = __toCommonJS(isPayloadOfSchemaType_exports);
26
- var isPayloadOfSchemaType = (schema) => {
27
- return (x) => x?.schema === schema;
28
- };
29
- //# sourceMappingURL=isPayloadOfSchemaType.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/isPayloadOfSchemaType.ts"],"sourcesContent":["import { Payload } from './Payload'\n\nexport const isPayloadOfSchemaType = <T extends Payload>(schema: string) => {\n return (x?: Payload | null): x is T => x?.schema === schema\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,wBAAwB,CAAoB,WAAmB;AAC1E,SAAO,CAAC,MAA+B,GAAG,WAAW;AACvD;","names":[]}
@@ -1,8 +0,0 @@
1
- // src/isPayloadOfSchemaType.ts
2
- var isPayloadOfSchemaType = (schema) => {
3
- return (x) => x?.schema === schema;
4
- };
5
- export {
6
- isPayloadOfSchemaType
7
- };
8
- //# sourceMappingURL=isPayloadOfSchemaType.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/isPayloadOfSchemaType.ts"],"sourcesContent":["import { Payload } from './Payload'\n\nexport const isPayloadOfSchemaType = <T extends Payload>(schema: string) => {\n return (x?: Payload | null): x is T => x?.schema === schema\n}\n"],"mappings":";AAEO,IAAM,wBAAwB,CAAoB,WAAmB;AAC1E,SAAO,CAAC,MAA+B,GAAG,WAAW;AACvD;","names":[]}
@@ -1,19 +0,0 @@
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 __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/EmptyPayload.ts
17
- var EmptyPayload_exports = {};
18
- module.exports = __toCommonJS(EmptyPayload_exports);
19
- //# sourceMappingURL=EmptyPayload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/EmptyPayload.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-types\nexport type EmptyPayload = {}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=EmptyPayload.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,31 +0,0 @@
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/Error.ts
21
- var Error_exports = {};
22
- __export(Error_exports, {
23
- ModuleErrorSchema: () => ModuleErrorSchema
24
- });
25
- module.exports = __toCommonJS(Error_exports);
26
- var ModuleErrorSchema = "network.xyo.error.module";
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {
29
- ModuleErrorSchema
30
- });
31
- //# sourceMappingURL=Error.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Error.ts"],"sourcesContent":["import { Payload } from './Payload'\n\nexport type ModuleErrorSchema = 'network.xyo.error.module'\nexport const ModuleErrorSchema: ModuleErrorSchema = 'network.xyo.error.module'\n\nexport type ModuleError = Payload<{\n message?: string\n name?: string\n query?: string\n schema: ModuleErrorSchema\n sources?: string[]\n}>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,IAAM,oBAAuC;","names":[]}
@@ -1,6 +0,0 @@
1
- // src/Error.ts
2
- var ModuleErrorSchema = "network.xyo.error.module";
3
- export {
4
- ModuleErrorSchema
5
- };
6
- //# sourceMappingURL=Error.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Error.ts"],"sourcesContent":["import { Payload } from './Payload'\n\nexport type ModuleErrorSchema = 'network.xyo.error.module'\nexport const ModuleErrorSchema: ModuleErrorSchema = 'network.xyo.error.module'\n\nexport type ModuleError = Payload<{\n message?: string\n name?: string\n query?: string\n schema: ModuleErrorSchema\n sources?: string[]\n}>\n"],"mappings":";AAGO,IAAM,oBAAuC;","names":[]}
@@ -1,31 +0,0 @@
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/Payload.ts
21
- var Payload_exports = {};
22
- __export(Payload_exports, {
23
- PayloadSchema: () => PayloadSchema
24
- });
25
- module.exports = __toCommonJS(Payload_exports);
26
- var PayloadSchema = "network.xyo.payload";
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {
29
- PayloadSchema
30
- });
31
- //# sourceMappingURL=Payload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Payload.ts"],"sourcesContent":["import { EmptyPayload } from './EmptyPayload'\n\nexport type Schema = string\n\nexport type WithTimestamp<T extends EmptyPayload = EmptyPayload> = T & { timestamp: number }\n\nexport type PayloadSchema = 'network.xyo.payload'\nexport const PayloadSchema: PayloadSchema = 'network.xyo.payload'\n\nexport type SchemaFields = {\n schema: Schema\n}\n\nexport type WithSchema<T extends EmptyPayload | void = void> = T extends EmptyPayload ? SchemaFields & T : SchemaFields\n\nexport type PayloadFields = {\n sources?: string[]\n}\n\nexport type WithPayload<T extends EmptyPayload | void = void> = WithSchema<T extends EmptyPayload ? PayloadFields & T : PayloadFields>\n\nexport type Payload<T extends void | object | WithSchema = void, S extends Schema | void = void> = T extends WithSchema\n ? S extends Schema\n ? /* T (w/Schema) & S provided */\n WithPayload<Omit<T, 'schema'> & { schema: S } & PayloadFields>\n : /* Only T (w/Schema) provided */\n WithPayload<T>\n : T extends object\n ? S extends Schema\n ? /* T (w/o Schema) & S provided */\n WithPayload<T & { schema: S } & PayloadFields>\n : /* Only T (w/o Schema) provided */\n WithPayload<T & { schema: Schema } & PayloadFields>\n : /* Either just S or neither S or T provided */\n {\n schema: S extends Schema ? S : Schema\n } & PayloadFields\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,IAAM,gBAA+B;","names":[]}
@@ -1,6 +0,0 @@
1
- // src/Payload.ts
2
- var PayloadSchema = "network.xyo.payload";
3
- export {
4
- PayloadSchema
5
- };
6
- //# sourceMappingURL=Payload.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Payload.ts"],"sourcesContent":["import { EmptyPayload } from './EmptyPayload'\n\nexport type Schema = string\n\nexport type WithTimestamp<T extends EmptyPayload = EmptyPayload> = T & { timestamp: number }\n\nexport type PayloadSchema = 'network.xyo.payload'\nexport const PayloadSchema: PayloadSchema = 'network.xyo.payload'\n\nexport type SchemaFields = {\n schema: Schema\n}\n\nexport type WithSchema<T extends EmptyPayload | void = void> = T extends EmptyPayload ? SchemaFields & T : SchemaFields\n\nexport type PayloadFields = {\n sources?: string[]\n}\n\nexport type WithPayload<T extends EmptyPayload | void = void> = WithSchema<T extends EmptyPayload ? PayloadFields & T : PayloadFields>\n\nexport type Payload<T extends void | object | WithSchema = void, S extends Schema | void = void> = T extends WithSchema\n ? S extends Schema\n ? /* T (w/Schema) & S provided */\n WithPayload<Omit<T, 'schema'> & { schema: S } & PayloadFields>\n : /* Only T (w/Schema) provided */\n WithPayload<T>\n : T extends object\n ? S extends Schema\n ? /* T (w/o Schema) & S provided */\n WithPayload<T & { schema: S } & PayloadFields>\n : /* Only T (w/o Schema) provided */\n WithPayload<T & { schema: Schema } & PayloadFields>\n : /* Either just S or neither S or T provided */\n {\n schema: S extends Schema ? S : Schema\n } & PayloadFields\n"],"mappings":";AAOO,IAAM,gBAA+B;","names":[]}
@@ -1,19 +0,0 @@
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 __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/PayloadFindFilter.ts
17
- var PayloadFindFilter_exports = {};
18
- module.exports = __toCommonJS(PayloadFindFilter_exports);
19
- //# sourceMappingURL=PayloadFindFilter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/PayloadFindFilter.ts"],"sourcesContent":["/** @deprecated use offset as a string (hash) instead */\nexport interface PayloadFindFilterTimeOffset {\n offset?: number\n}\n\nexport interface PayloadFindFilterHashOffset {\n offset?: string\n}\n\nexport type PayloadFindFilterOffset = PayloadFindFilterTimeOffset | PayloadFindFilterHashOffset\n\nexport type PayloadFindFilter = {\n //hash?: string | string[]\n limit?: number\n order?: 'desc' | 'asc'\n schema?: string | string[]\n /** @deprecated use offset instead */\n timestamp?: number\n} & PayloadFindFilterOffset\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=PayloadFindFilter.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}