@xyo-network/id-payload-plugin 2.107.3 → 2.107.4

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,2 +1,59 @@
1
- "use strict";var d=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var i=(a,o)=>d(a,"name",{value:o,configurable:!0});var P=(a,o)=>{for(var m in o)d(a,m,{get:o[m],enumerable:!0})},n=(a,o,m,l)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of h(o))!y.call(a,r)&&r!==m&&d(a,r,{get:()=>o[r],enumerable:!(l=f(o,r))||l.enumerable});return a};var x=a=>n(d({},"__esModule",{value:!0}),a);var T={};P(T,{IdPayloadPlugin:()=>c,IdSchema:()=>e,default:()=>c,idPayloadTemplate:()=>p,isId:()=>I,isIdWithMeta:()=>S,isIdWithSources:()=>u});module.exports=x(T);var t=require("@xyo-network/payload-model");var e="network.xyo.id";var I=(0,t.isPayloadOfSchemaType)(e),S=(0,t.isPayloadOfSchemaTypeWithMeta)(e),u=(0,t.isPayloadOfSchemaTypeWithSources)(e);var s=require("@xyo-network/payload-plugin");var p=i(()=>({salt:"",schema:e}),"idPayloadTemplate");var c=i(()=>(0,s.createPayloadPlugin)({schema:e,template:p}),"IdPayloadPlugin");
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 __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ IdPayloadPlugin: () => IdPayloadPlugin,
25
+ IdSchema: () => IdSchema,
26
+ default: () => IdPayloadPlugin,
27
+ idPayloadTemplate: () => idPayloadTemplate,
28
+ isId: () => isId,
29
+ isIdWithMeta: () => isIdWithMeta,
30
+ isIdWithSources: () => isIdWithSources
31
+ });
32
+ module.exports = __toCommonJS(src_exports);
33
+
34
+ // src/Payload.ts
35
+ var import_payload_model = require("@xyo-network/payload-model");
36
+
37
+ // src/Schema.ts
38
+ var IdSchema = "network.xyo.id";
39
+
40
+ // src/Payload.ts
41
+ var isId = (0, import_payload_model.isPayloadOfSchemaType)(IdSchema);
42
+ var isIdWithMeta = (0, import_payload_model.isPayloadOfSchemaTypeWithMeta)(IdSchema);
43
+ var isIdWithSources = (0, import_payload_model.isPayloadOfSchemaTypeWithSources)(IdSchema);
44
+
45
+ // src/Plugin.ts
46
+ var import_payload_plugin = require("@xyo-network/payload-plugin");
47
+
48
+ // src/Template.ts
49
+ var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
50
+ salt: "",
51
+ schema: IdSchema
52
+ }), "idPayloadTemplate");
53
+
54
+ // src/Plugin.ts
55
+ var IdPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
56
+ schema: IdSchema,
57
+ template: idPayloadTemplate
58
+ }), "IdPayloadPlugin");
2
59
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":"4dAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,EAAA,aAAAC,EAAA,YAAAD,EAAA,sBAAAE,EAAA,SAAAC,EAAA,iBAAAC,EAAA,oBAAAC,IAAA,eAAAC,EAAAR,GCAA,IAAAS,EAOO,sCCNA,IAAMC,EAAqB,iBDkB3B,IAAMC,KAAOC,yBAAiCC,CAAAA,EAIxCC,KAAeC,iCAAmDF,CAAAA,EAIlEG,KAAkBC,oCAAyDJ,CAAAA,EE3BxF,IAAAK,EAAoC,uCCG7B,IAAMC,EAAoBC,EAAA,KAAkB,CACjDC,KAAM,GACNC,OAAQC,CACV,GAHiC,qBDG1B,IAAMC,EAAkBC,EAAA,OAC7BC,uBAA+B,CAC7BC,OAAQC,EACRC,SAAUC,CACZ,CAAA,EAJ6B","names":["src_exports","__export","IdPayloadPlugin","IdSchema","idPayloadTemplate","isId","isIdWithMeta","isIdWithSources","__toCommonJS","import_payload_model","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","import_payload_plugin","idPayloadTemplate","__name","salt","schema","IdSchema","IdPayloadPlugin","__name","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;ACAA,2BAOO;;;ACNA,IAAMA,WAAqB;;;ADkB3B,IAAMC,WAAOC,4CAAiCC,QAAAA;AAI9C,IAAMC,mBAAeC,oDAAmDF,QAAAA;AAIxE,IAAMG,sBAAkBC,uDAAyDJ,QAAAA;;;AE3BxF,4BAAoC;;;ACG7B,IAAMK,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,iCAC7BC,2CAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
@@ -1,2 +1,38 @@
1
- var d=Object.defineProperty;var a=(r,m)=>d(r,"name",{value:m,configurable:!0});import{isPayloadOfSchemaType as i,isPayloadOfSchemaTypeWithMeta as p,isPayloadOfSchemaTypeWithSources as c}from"@xyo-network/payload-model";var o="network.xyo.id";var P=i(o),n=p(o),x=c(o);import{createPayloadPlugin as l}from"@xyo-network/payload-plugin";var e=a(()=>({salt:"",schema:o}),"idPayloadTemplate");var t=a(()=>l({schema:o,template:e}),"IdPayloadPlugin");export{t as IdPayloadPlugin,o as IdSchema,t as default,e as idPayloadTemplate,P as isId,n as isIdWithMeta,x as isIdWithSources};
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
4
+ // src/Payload.ts
5
+ import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
6
+
7
+ // src/Schema.ts
8
+ var IdSchema = "network.xyo.id";
9
+
10
+ // src/Payload.ts
11
+ var isId = isPayloadOfSchemaType(IdSchema);
12
+ var isIdWithMeta = isPayloadOfSchemaTypeWithMeta(IdSchema);
13
+ var isIdWithSources = isPayloadOfSchemaTypeWithSources(IdSchema);
14
+
15
+ // src/Plugin.ts
16
+ import { createPayloadPlugin } from "@xyo-network/payload-plugin";
17
+
18
+ // src/Template.ts
19
+ var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
20
+ salt: "",
21
+ schema: IdSchema
22
+ }), "idPayloadTemplate");
23
+
24
+ // src/Plugin.ts
25
+ var IdPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
26
+ schema: IdSchema,
27
+ template: idPayloadTemplate
28
+ }), "IdPayloadPlugin");
29
+ export {
30
+ IdPayloadPlugin,
31
+ IdSchema,
32
+ IdPayloadPlugin as default,
33
+ idPayloadTemplate,
34
+ isId,
35
+ isIdWithMeta,
36
+ isIdWithSources
37
+ };
2
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":"+EAAA,OACEA,yBAAAA,EACAC,iCAAAA,EACAC,oCAAAA,MAIK,6BCNA,IAAMC,EAAqB,iBDkB3B,IAAMC,EAAOC,EAAiCC,CAAAA,EAIxCC,EAAeC,EAAmDF,CAAAA,EAIlEG,EAAkBC,EAAyDJ,CAAAA,EE3BxF,OAASK,uBAAAA,MAA2B,8BCG7B,IAAMC,EAAoBC,EAAA,KAAkB,CACjDC,KAAM,GACNC,OAAQC,CACV,GAHiC,qBDG1B,IAAMC,EAAkBC,EAAA,IAC7BC,EAA+B,CAC7BC,OAAQC,EACRC,SAAUC,CACZ,CAAA,EAJ6B","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","__name","salt","schema","IdSchema","IdPayloadPlugin","__name","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;AAAA,SACEA,uBACAC,+BACAC,wCAIK;;;ACNA,IAAMC,WAAqB;;;ADkB3B,IAAMC,OAAOC,sBAAiCC,QAAAA;AAI9C,IAAMC,eAAeC,8BAAmDF,QAAAA;AAIxE,IAAMG,kBAAkBC,iCAAyDJ,QAAAA;;;AE3BxF,SAASK,2BAA2B;;;ACG7B,IAAMC,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,6BAC7BC,oBAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
@@ -1,2 +1,59 @@
1
- "use strict";var d=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var i=(a,o)=>d(a,"name",{value:o,configurable:!0});var P=(a,o)=>{for(var m in o)d(a,m,{get:o[m],enumerable:!0})},n=(a,o,m,l)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of h(o))!y.call(a,r)&&r!==m&&d(a,r,{get:()=>o[r],enumerable:!(l=f(o,r))||l.enumerable});return a};var x=a=>n(d({},"__esModule",{value:!0}),a);var T={};P(T,{IdPayloadPlugin:()=>c,IdSchema:()=>e,default:()=>c,idPayloadTemplate:()=>p,isId:()=>I,isIdWithMeta:()=>S,isIdWithSources:()=>u});module.exports=x(T);var t=require("@xyo-network/payload-model");var e="network.xyo.id";var I=(0,t.isPayloadOfSchemaType)(e),S=(0,t.isPayloadOfSchemaTypeWithMeta)(e),u=(0,t.isPayloadOfSchemaTypeWithSources)(e);var s=require("@xyo-network/payload-plugin");var p=i(()=>({salt:"",schema:e}),"idPayloadTemplate");var c=i(()=>(0,s.createPayloadPlugin)({schema:e,template:p}),"IdPayloadPlugin");
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 __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ IdPayloadPlugin: () => IdPayloadPlugin,
25
+ IdSchema: () => IdSchema,
26
+ default: () => IdPayloadPlugin,
27
+ idPayloadTemplate: () => idPayloadTemplate,
28
+ isId: () => isId,
29
+ isIdWithMeta: () => isIdWithMeta,
30
+ isIdWithSources: () => isIdWithSources
31
+ });
32
+ module.exports = __toCommonJS(src_exports);
33
+
34
+ // src/Payload.ts
35
+ var import_payload_model = require("@xyo-network/payload-model");
36
+
37
+ // src/Schema.ts
38
+ var IdSchema = "network.xyo.id";
39
+
40
+ // src/Payload.ts
41
+ var isId = (0, import_payload_model.isPayloadOfSchemaType)(IdSchema);
42
+ var isIdWithMeta = (0, import_payload_model.isPayloadOfSchemaTypeWithMeta)(IdSchema);
43
+ var isIdWithSources = (0, import_payload_model.isPayloadOfSchemaTypeWithSources)(IdSchema);
44
+
45
+ // src/Plugin.ts
46
+ var import_payload_plugin = require("@xyo-network/payload-plugin");
47
+
48
+ // src/Template.ts
49
+ var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
50
+ salt: "",
51
+ schema: IdSchema
52
+ }), "idPayloadTemplate");
53
+
54
+ // src/Plugin.ts
55
+ var IdPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
56
+ schema: IdSchema,
57
+ template: idPayloadTemplate
58
+ }), "IdPayloadPlugin");
2
59
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":"4dAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,EAAA,aAAAC,EAAA,YAAAD,EAAA,sBAAAE,EAAA,SAAAC,EAAA,iBAAAC,EAAA,oBAAAC,IAAA,eAAAC,EAAAR,GCAA,IAAAS,EAOO,sCCNA,IAAMC,EAAqB,iBDkB3B,IAAMC,KAAOC,yBAAiCC,CAAAA,EAIxCC,KAAeC,iCAAmDF,CAAAA,EAIlEG,KAAkBC,oCAAyDJ,CAAAA,EE3BxF,IAAAK,EAAoC,uCCG7B,IAAMC,EAAoBC,EAAA,KAAkB,CACjDC,KAAM,GACNC,OAAQC,CACV,GAHiC,qBDG1B,IAAMC,EAAkBC,EAAA,OAC7BC,uBAA+B,CAC7BC,OAAQC,EACRC,SAAUC,CACZ,CAAA,EAJ6B","names":["src_exports","__export","IdPayloadPlugin","IdSchema","idPayloadTemplate","isId","isIdWithMeta","isIdWithSources","__toCommonJS","import_payload_model","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","import_payload_plugin","idPayloadTemplate","__name","salt","schema","IdSchema","IdPayloadPlugin","__name","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;ACAA,2BAOO;;;ACNA,IAAMA,WAAqB;;;ADkB3B,IAAMC,WAAOC,4CAAiCC,QAAAA;AAI9C,IAAMC,mBAAeC,oDAAmDF,QAAAA;AAIxE,IAAMG,sBAAkBC,uDAAyDJ,QAAAA;;;AE3BxF,4BAAoC;;;ACG7B,IAAMK,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,iCAC7BC,2CAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
@@ -1,2 +1,38 @@
1
- var d=Object.defineProperty;var a=(r,m)=>d(r,"name",{value:m,configurable:!0});import{isPayloadOfSchemaType as i,isPayloadOfSchemaTypeWithMeta as p,isPayloadOfSchemaTypeWithSources as c}from"@xyo-network/payload-model";var o="network.xyo.id";var P=i(o),n=p(o),x=c(o);import{createPayloadPlugin as l}from"@xyo-network/payload-plugin";var e=a(()=>({salt:"",schema:o}),"idPayloadTemplate");var t=a(()=>l({schema:o,template:e}),"IdPayloadPlugin");export{t as IdPayloadPlugin,o as IdSchema,t as default,e as idPayloadTemplate,P as isId,n as isIdWithMeta,x as isIdWithSources};
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
4
+ // src/Payload.ts
5
+ import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
6
+
7
+ // src/Schema.ts
8
+ var IdSchema = "network.xyo.id";
9
+
10
+ // src/Payload.ts
11
+ var isId = isPayloadOfSchemaType(IdSchema);
12
+ var isIdWithMeta = isPayloadOfSchemaTypeWithMeta(IdSchema);
13
+ var isIdWithSources = isPayloadOfSchemaTypeWithSources(IdSchema);
14
+
15
+ // src/Plugin.ts
16
+ import { createPayloadPlugin } from "@xyo-network/payload-plugin";
17
+
18
+ // src/Template.ts
19
+ var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
20
+ salt: "",
21
+ schema: IdSchema
22
+ }), "idPayloadTemplate");
23
+
24
+ // src/Plugin.ts
25
+ var IdPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
26
+ schema: IdSchema,
27
+ template: idPayloadTemplate
28
+ }), "IdPayloadPlugin");
29
+ export {
30
+ IdPayloadPlugin,
31
+ IdSchema,
32
+ IdPayloadPlugin as default,
33
+ idPayloadTemplate,
34
+ isId,
35
+ isIdWithMeta,
36
+ isIdWithSources
37
+ };
2
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":"+EAAA,OACEA,yBAAAA,EACAC,iCAAAA,EACAC,oCAAAA,MAIK,6BCNA,IAAMC,EAAqB,iBDkB3B,IAAMC,EAAOC,EAAiCC,CAAAA,EAIxCC,EAAeC,EAAmDF,CAAAA,EAIlEG,EAAkBC,EAAyDJ,CAAAA,EE3BxF,OAASK,uBAAAA,MAA2B,8BCG7B,IAAMC,EAAoBC,EAAA,KAAkB,CACjDC,KAAM,GACNC,OAAQC,CACV,GAHiC,qBDG1B,IAAMC,EAAkBC,EAAA,IAC7BC,EAA+B,CAC7BC,OAAQC,EACRC,SAAUC,CACZ,CAAA,EAJ6B","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","__name","salt","schema","IdSchema","IdPayloadPlugin","__name","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;AAAA,SACEA,uBACAC,+BACAC,wCAIK;;;ACNA,IAAMC,WAAqB;;;ADkB3B,IAAMC,OAAOC,sBAAiCC,QAAAA;AAI9C,IAAMC,eAAeC,8BAAmDF,QAAAA;AAIxE,IAAMG,kBAAkBC,iCAAyDJ,QAAAA;;;AE3BxF,SAASK,2BAA2B;;;ACG7B,IAAMC,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,6BAC7BC,oBAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
@@ -1,2 +1,68 @@
1
- "use strict";var d=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var i=(a,o)=>d(a,"name",{value:o,configurable:!0});var P=(a,o)=>{for(var m in o)d(a,m,{get:o[m],enumerable:!0})},n=(a,o,m,l)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of h(o))!y.call(a,r)&&r!==m&&d(a,r,{get:()=>o[r],enumerable:!(l=f(o,r))||l.enumerable});return a};var x=a=>n(d({},"__esModule",{value:!0}),a);var T={};P(T,{IdPayloadPlugin:()=>c,IdSchema:()=>e,default:()=>c,idPayloadTemplate:()=>p,isId:()=>I,isIdWithMeta:()=>S,isIdWithSources:()=>u});module.exports=x(T);var t=require("@xyo-network/payload-model");var e="network.xyo.id";var I=(0,t.isPayloadOfSchemaType)(e),S=(0,t.isPayloadOfSchemaTypeWithMeta)(e),u=(0,t.isPayloadOfSchemaTypeWithSources)(e);var s=require("@xyo-network/payload-plugin");var p=i(()=>({salt:"",schema:e}),"idPayloadTemplate");var c=i(()=>(0,s.createPayloadPlugin)({schema:e,template:p}),"IdPayloadPlugin");0&&(module.exports={IdPayloadPlugin,IdSchema,idPayloadTemplate,isId,isIdWithMeta,isIdWithSources});
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 __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ IdPayloadPlugin: () => IdPayloadPlugin,
25
+ IdSchema: () => IdSchema,
26
+ default: () => IdPayloadPlugin,
27
+ idPayloadTemplate: () => idPayloadTemplate,
28
+ isId: () => isId,
29
+ isIdWithMeta: () => isIdWithMeta,
30
+ isIdWithSources: () => isIdWithSources
31
+ });
32
+ module.exports = __toCommonJS(src_exports);
33
+
34
+ // src/Payload.ts
35
+ var import_payload_model = require("@xyo-network/payload-model");
36
+
37
+ // src/Schema.ts
38
+ var IdSchema = "network.xyo.id";
39
+
40
+ // src/Payload.ts
41
+ var isId = (0, import_payload_model.isPayloadOfSchemaType)(IdSchema);
42
+ var isIdWithMeta = (0, import_payload_model.isPayloadOfSchemaTypeWithMeta)(IdSchema);
43
+ var isIdWithSources = (0, import_payload_model.isPayloadOfSchemaTypeWithSources)(IdSchema);
44
+
45
+ // src/Plugin.ts
46
+ var import_payload_plugin = require("@xyo-network/payload-plugin");
47
+
48
+ // src/Template.ts
49
+ var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
50
+ salt: "",
51
+ schema: IdSchema
52
+ }), "idPayloadTemplate");
53
+
54
+ // src/Plugin.ts
55
+ var IdPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
56
+ schema: IdSchema,
57
+ template: idPayloadTemplate
58
+ }), "IdPayloadPlugin");
59
+ // Annotate the CommonJS export names for ESM import in node:
60
+ 0 && (module.exports = {
61
+ IdPayloadPlugin,
62
+ IdSchema,
63
+ idPayloadTemplate,
64
+ isId,
65
+ isIdWithMeta,
66
+ isIdWithSources
67
+ });
2
68
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":"4dAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,EAAA,aAAAC,EAAA,YAAAD,EAAA,sBAAAE,EAAA,SAAAC,EAAA,iBAAAC,EAAA,oBAAAC,IAAA,eAAAC,EAAAR,GCAA,IAAAS,EAOO,sCCNA,IAAMC,EAAqB,iBDkB3B,IAAMC,KAAOC,yBAAiCC,CAAAA,EAIxCC,KAAeC,iCAAmDF,CAAAA,EAIlEG,KAAkBC,oCAAyDJ,CAAAA,EE3BxF,IAAAK,EAAoC,uCCG7B,IAAMC,EAAoBC,EAAA,KAAkB,CACjDC,KAAM,GACNC,OAAQC,CACV,GAHiC,qBDG1B,IAAMC,EAAkBC,EAAA,OAC7BC,uBAA+B,CAC7BC,OAAQC,EACRC,SAAUC,CACZ,CAAA,EAJ6B","names":["src_exports","__export","IdPayloadPlugin","IdSchema","idPayloadTemplate","isId","isIdWithMeta","isIdWithSources","__toCommonJS","import_payload_model","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","import_payload_plugin","idPayloadTemplate","__name","salt","schema","IdSchema","IdPayloadPlugin","__name","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;ACAA,2BAOO;;;ACNA,IAAMA,WAAqB;;;ADkB3B,IAAMC,WAAOC,4CAAiCC,QAAAA;AAI9C,IAAMC,mBAAeC,oDAAmDF,QAAAA;AAIxE,IAAMG,sBAAkBC,uDAAyDJ,QAAAA;;;AE3BxF,4BAAoC;;;ACG7B,IAAMK,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,iCAC7BC,2CAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
@@ -1,2 +1,38 @@
1
- var d=Object.defineProperty;var a=(r,m)=>d(r,"name",{value:m,configurable:!0});import{isPayloadOfSchemaType as i,isPayloadOfSchemaTypeWithMeta as p,isPayloadOfSchemaTypeWithSources as c}from"@xyo-network/payload-model";var o="network.xyo.id";var P=i(o),n=p(o),x=c(o);import{createPayloadPlugin as l}from"@xyo-network/payload-plugin";var e=a(()=>({salt:"",schema:o}),"idPayloadTemplate");var t=a(()=>l({schema:o,template:e}),"IdPayloadPlugin");export{t as IdPayloadPlugin,o as IdSchema,t as default,e as idPayloadTemplate,P as isId,n as isIdWithMeta,x as isIdWithSources};
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
4
+ // src/Payload.ts
5
+ import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
6
+
7
+ // src/Schema.ts
8
+ var IdSchema = "network.xyo.id";
9
+
10
+ // src/Payload.ts
11
+ var isId = isPayloadOfSchemaType(IdSchema);
12
+ var isIdWithMeta = isPayloadOfSchemaTypeWithMeta(IdSchema);
13
+ var isIdWithSources = isPayloadOfSchemaTypeWithSources(IdSchema);
14
+
15
+ // src/Plugin.ts
16
+ import { createPayloadPlugin } from "@xyo-network/payload-plugin";
17
+
18
+ // src/Template.ts
19
+ var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
20
+ salt: "",
21
+ schema: IdSchema
22
+ }), "idPayloadTemplate");
23
+
24
+ // src/Plugin.ts
25
+ var IdPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
26
+ schema: IdSchema,
27
+ template: idPayloadTemplate
28
+ }), "IdPayloadPlugin");
29
+ export {
30
+ IdPayloadPlugin,
31
+ IdSchema,
32
+ IdPayloadPlugin as default,
33
+ idPayloadTemplate,
34
+ isId,
35
+ isIdWithMeta,
36
+ isIdWithSources
37
+ };
2
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":"+EAAA,OACEA,yBAAAA,EACAC,iCAAAA,EACAC,oCAAAA,MAIK,6BCNA,IAAMC,EAAqB,iBDkB3B,IAAMC,EAAOC,EAAiCC,CAAAA,EAIxCC,EAAeC,EAAmDF,CAAAA,EAIlEG,EAAkBC,EAAyDJ,CAAAA,EE3BxF,OAASK,uBAAAA,MAA2B,8BCG7B,IAAMC,EAAoBC,EAAA,KAAkB,CACjDC,KAAM,GACNC,OAAQC,CACV,GAHiC,qBDG1B,IAAMC,EAAkBC,EAAA,IAC7BC,EAA+B,CAC7BC,OAAQC,EACRC,SAAUC,CACZ,CAAA,EAJ6B","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","__name","salt","schema","IdSchema","IdPayloadPlugin","__name","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;AAAA,SACEA,uBACAC,+BACAC,wCAIK;;;ACNA,IAAMC,WAAqB;;;ADkB3B,IAAMC,OAAOC,sBAAiCC,QAAAA;AAI9C,IAAMC,eAAeC,8BAAmDF,QAAAA;AAIxE,IAAMG,kBAAkBC,iCAAyDJ,QAAAA;;;AE3BxF,SAASK,2BAA2B;;;ACG7B,IAAMC,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,6BAC7BC,oBAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
package/package.json CHANGED
@@ -10,12 +10,12 @@
10
10
  "url": "https://github.com/XYOracleNetwork/plugins/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xyo-network/payload-model": "~2.107.3",
14
- "@xyo-network/payload-plugin": "~2.107.3"
13
+ "@xyo-network/payload-model": "~2.107.4",
14
+ "@xyo-network/payload-plugin": "~2.107.4"
15
15
  },
16
16
  "devDependencies": {
17
- "@xylabs/ts-scripts-yarn3": "^3.11.9",
18
- "@xylabs/tsconfig": "^3.11.9",
17
+ "@xylabs/ts-scripts-yarn3": "^3.11.10",
18
+ "@xylabs/tsconfig": "^3.11.10",
19
19
  "typescript": "^5.5.2"
20
20
  },
21
21
  "description": "Typescript/Javascript Plugins for XYO Platform",
@@ -57,6 +57,6 @@
57
57
  "url": "https://github.com/XYOracleNetwork/plugins.git"
58
58
  },
59
59
  "sideEffects": false,
60
- "version": "2.107.3",
60
+ "version": "2.107.4",
61
61
  "type": "module"
62
62
  }