@xyo-network/boundwitness-model
Advanced tools
Comparing version 2.107.3 to 2.107.4
@@ -1,2 +0,45 @@ | ||
var a=()=>({$id:"https://schemas.xyo.network/2.0/boundwitness",additionalProperties:!1,properties:{addresses:{items:{type:"string"},type:"array"},payload_hashes:{items:{type:"string"},type:"array"},payload_schemas:{items:{type:"string"},type:"array"},previous_hashes:{items:{nullable:!0,type:"string"},type:"array"},schema:{type:"string"}},required:["addresses","payload_hashes","payload_schemas","previous_hashes","schema"],type:"object"});var s="network.xyo.boundwitness";import{isPayloadOfSchemaType as o,isPayloadOfSchemaTypeWithMeta as i,notPayloadOfSchemaType as r}from"@xyo-network/payload-model";var t=e=>o(s)(e),n=e=>i(s)(e),m=r(s),B=e=>t(e)?e:void 0,c=t;var w=s,Q=e=>t(e)&&e?.query!==void 0,M=e=>t(e)&&n(e)&&e?.query!==void 0;export{a as BoundWitnessJsonSchema,s as BoundWitnessSchema,w as QueryBoundWitnessSchema,B as asBoundWitness,t as isBoundWitness,c as isBoundWitnessPayload,n as isBoundWitnessWithMeta,Q as isQueryBoundWitness,M as isQueryBoundWitnessWithMeta,m as notBoundWitness}; | ||
// src/BoundWitness/BoundWitnessJsonSchema.ts | ||
var BoundWitnessJsonSchema = () => { | ||
return { | ||
$id: "https://schemas.xyo.network/2.0/boundwitness", | ||
additionalProperties: false, | ||
properties: { | ||
addresses: { items: { type: "string" }, type: "array" }, | ||
payload_hashes: { items: { type: "string" }, type: "array" }, | ||
payload_schemas: { items: { type: "string" }, type: "array" }, | ||
previous_hashes: { items: { nullable: true, type: "string" }, type: "array" }, | ||
schema: { type: "string" } | ||
}, | ||
required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"], | ||
type: "object" | ||
}; | ||
}; | ||
// src/BoundWitness/BoundWitnessSchema.ts | ||
var BoundWitnessSchema = "network.xyo.boundwitness"; | ||
// src/isBoundWitness.ts | ||
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType } from "@xyo-network/payload-model"; | ||
var isBoundWitness = (value) => isPayloadOfSchemaType(BoundWitnessSchema)(value); | ||
var isBoundWitnessWithMeta = (value) => isPayloadOfSchemaTypeWithMeta(BoundWitnessSchema)(value); | ||
var notBoundWitness = notPayloadOfSchemaType(BoundWitnessSchema); | ||
var asBoundWitness = (payload) => isBoundWitness(payload) ? payload : void 0; | ||
var isBoundWitnessPayload = isBoundWitness; | ||
// src/QueryBoundWitness.ts | ||
var QueryBoundWitnessSchema = BoundWitnessSchema; | ||
var isQueryBoundWitness = (x) => isBoundWitness(x) && x?.query !== void 0; | ||
var isQueryBoundWitnessWithMeta = (x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && x?.query !== void 0; | ||
export { | ||
BoundWitnessJsonSchema, | ||
BoundWitnessSchema, | ||
QueryBoundWitnessSchema, | ||
asBoundWitness, | ||
isBoundWitness, | ||
isBoundWitnessPayload, | ||
isBoundWitnessWithMeta, | ||
isQueryBoundWitness, | ||
isQueryBoundWitnessWithMeta, | ||
notBoundWitness | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,45 @@ | ||
var a=()=>({$id:"https://schemas.xyo.network/2.0/boundwitness",additionalProperties:!1,properties:{addresses:{items:{type:"string"},type:"array"},payload_hashes:{items:{type:"string"},type:"array"},payload_schemas:{items:{type:"string"},type:"array"},previous_hashes:{items:{nullable:!0,type:"string"},type:"array"},schema:{type:"string"}},required:["addresses","payload_hashes","payload_schemas","previous_hashes","schema"],type:"object"});var s="network.xyo.boundwitness";import{isPayloadOfSchemaType as o,isPayloadOfSchemaTypeWithMeta as i,notPayloadOfSchemaType as r}from"@xyo-network/payload-model";var t=e=>o(s)(e),n=e=>i(s)(e),m=r(s),B=e=>t(e)?e:void 0,c=t;var w=s,Q=e=>t(e)&&e?.query!==void 0,M=e=>t(e)&&n(e)&&e?.query!==void 0;export{a as BoundWitnessJsonSchema,s as BoundWitnessSchema,w as QueryBoundWitnessSchema,B as asBoundWitness,t as isBoundWitness,c as isBoundWitnessPayload,n as isBoundWitnessWithMeta,Q as isQueryBoundWitness,M as isQueryBoundWitnessWithMeta,m as notBoundWitness}; | ||
// src/BoundWitness/BoundWitnessJsonSchema.ts | ||
var BoundWitnessJsonSchema = () => { | ||
return { | ||
$id: "https://schemas.xyo.network/2.0/boundwitness", | ||
additionalProperties: false, | ||
properties: { | ||
addresses: { items: { type: "string" }, type: "array" }, | ||
payload_hashes: { items: { type: "string" }, type: "array" }, | ||
payload_schemas: { items: { type: "string" }, type: "array" }, | ||
previous_hashes: { items: { nullable: true, type: "string" }, type: "array" }, | ||
schema: { type: "string" } | ||
}, | ||
required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"], | ||
type: "object" | ||
}; | ||
}; | ||
// src/BoundWitness/BoundWitnessSchema.ts | ||
var BoundWitnessSchema = "network.xyo.boundwitness"; | ||
// src/isBoundWitness.ts | ||
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType } from "@xyo-network/payload-model"; | ||
var isBoundWitness = (value) => isPayloadOfSchemaType(BoundWitnessSchema)(value); | ||
var isBoundWitnessWithMeta = (value) => isPayloadOfSchemaTypeWithMeta(BoundWitnessSchema)(value); | ||
var notBoundWitness = notPayloadOfSchemaType(BoundWitnessSchema); | ||
var asBoundWitness = (payload) => isBoundWitness(payload) ? payload : void 0; | ||
var isBoundWitnessPayload = isBoundWitness; | ||
// src/QueryBoundWitness.ts | ||
var QueryBoundWitnessSchema = BoundWitnessSchema; | ||
var isQueryBoundWitness = (x) => isBoundWitness(x) && x?.query !== void 0; | ||
var isQueryBoundWitnessWithMeta = (x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && x?.query !== void 0; | ||
export { | ||
BoundWitnessJsonSchema, | ||
BoundWitnessSchema, | ||
QueryBoundWitnessSchema, | ||
asBoundWitness, | ||
isBoundWitness, | ||
isBoundWitnessPayload, | ||
isBoundWitnessWithMeta, | ||
isQueryBoundWitness, | ||
isQueryBoundWitnessWithMeta, | ||
notBoundWitness | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,45 @@ | ||
var a=()=>({$id:"https://schemas.xyo.network/2.0/boundwitness",additionalProperties:!1,properties:{addresses:{items:{type:"string"},type:"array"},payload_hashes:{items:{type:"string"},type:"array"},payload_schemas:{items:{type:"string"},type:"array"},previous_hashes:{items:{nullable:!0,type:"string"},type:"array"},schema:{type:"string"}},required:["addresses","payload_hashes","payload_schemas","previous_hashes","schema"],type:"object"});var s="network.xyo.boundwitness";import{isPayloadOfSchemaType as o,isPayloadOfSchemaTypeWithMeta as i,notPayloadOfSchemaType as r}from"@xyo-network/payload-model";var t=e=>o(s)(e),n=e=>i(s)(e),m=r(s),B=e=>t(e)?e:void 0,c=t;var x=s,Q=e=>t(e)&&(e==null?void 0:e.query)!==void 0,M=e=>t(e)&&n(e)&&(e==null?void 0:e.query)!==void 0;export{a as BoundWitnessJsonSchema,s as BoundWitnessSchema,x as QueryBoundWitnessSchema,B as asBoundWitness,t as isBoundWitness,c as isBoundWitnessPayload,n as isBoundWitnessWithMeta,Q as isQueryBoundWitness,M as isQueryBoundWitnessWithMeta,m as notBoundWitness}; | ||
// src/BoundWitness/BoundWitnessJsonSchema.ts | ||
var BoundWitnessJsonSchema = () => { | ||
return { | ||
$id: "https://schemas.xyo.network/2.0/boundwitness", | ||
additionalProperties: false, | ||
properties: { | ||
addresses: { items: { type: "string" }, type: "array" }, | ||
payload_hashes: { items: { type: "string" }, type: "array" }, | ||
payload_schemas: { items: { type: "string" }, type: "array" }, | ||
previous_hashes: { items: { nullable: true, type: "string" }, type: "array" }, | ||
schema: { type: "string" } | ||
}, | ||
required: ["addresses", "payload_hashes", "payload_schemas", "previous_hashes", "schema"], | ||
type: "object" | ||
}; | ||
}; | ||
// src/BoundWitness/BoundWitnessSchema.ts | ||
var BoundWitnessSchema = "network.xyo.boundwitness"; | ||
// src/isBoundWitness.ts | ||
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, notPayloadOfSchemaType } from "@xyo-network/payload-model"; | ||
var isBoundWitness = (value) => isPayloadOfSchemaType(BoundWitnessSchema)(value); | ||
var isBoundWitnessWithMeta = (value) => isPayloadOfSchemaTypeWithMeta(BoundWitnessSchema)(value); | ||
var notBoundWitness = notPayloadOfSchemaType(BoundWitnessSchema); | ||
var asBoundWitness = (payload) => isBoundWitness(payload) ? payload : void 0; | ||
var isBoundWitnessPayload = isBoundWitness; | ||
// src/QueryBoundWitness.ts | ||
var QueryBoundWitnessSchema = BoundWitnessSchema; | ||
var isQueryBoundWitness = (x) => isBoundWitness(x) && (x == null ? void 0 : x.query) !== void 0; | ||
var isQueryBoundWitnessWithMeta = (x) => isBoundWitness(x) && isBoundWitnessWithMeta(x) && (x == null ? void 0 : x.query) !== void 0; | ||
export { | ||
BoundWitnessJsonSchema, | ||
BoundWitnessSchema, | ||
QueryBoundWitnessSchema, | ||
asBoundWitness, | ||
isBoundWitness, | ||
isBoundWitnessPayload, | ||
isBoundWitnessWithMeta, | ||
isQueryBoundWitness, | ||
isQueryBoundWitnessWithMeta, | ||
notBoundWitness | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -14,4 +14,4 @@ { | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^3.11.9", | ||
"@xylabs/tsconfig": "^3.11.9", | ||
"@xylabs/ts-scripts-yarn3": "^3.11.10", | ||
"@xylabs/tsconfig": "^3.11.10", | ||
"typescript": "^5.5.2" | ||
@@ -22,3 +22,3 @@ }, | ||
"@xylabs/object": "^3.5.1", | ||
"@xyo-network/payload-model": "~2.107.3" | ||
"@xyo-network/payload-model": "~2.107.4" | ||
}, | ||
@@ -63,4 +63,4 @@ "exports": { | ||
"types": "dist/node/index.d.ts", | ||
"version": "2.107.3", | ||
"version": "2.107.4", | ||
"type": "module" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
111791
666
0