@xyo-network/id-payload-plugin 3.9.18 → 3.9.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/Payload.d.ts +30 -0
- package/dist/neutral/Payload.d.ts.map +1 -0
- package/dist/neutral/Plugin.d.ts +3 -0
- package/dist/neutral/Plugin.d.ts.map +1 -0
- package/dist/neutral/Schema.d.ts +3 -0
- package/dist/neutral/Schema.d.ts.map +1 -0
- package/dist/neutral/Template.d.ts +3 -0
- package/dist/neutral/Template.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +5 -26
- package/dist/neutral/index.d.ts.map +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
2
|
+
import { IdSchema } from './Schema.ts';
|
|
3
|
+
/**
|
|
4
|
+
* The fields of an ID Payload
|
|
5
|
+
*/
|
|
6
|
+
export type IdFields = {
|
|
7
|
+
salt: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The ID Payload
|
|
11
|
+
*/
|
|
12
|
+
export type Id = Payload<IdFields, IdSchema>;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `Id` instead
|
|
15
|
+
*/
|
|
16
|
+
export type IdPayload = Id;
|
|
17
|
+
/**
|
|
18
|
+
* Identity helper for ID Payload
|
|
19
|
+
*/
|
|
20
|
+
export declare const isId: (x?: unknown | null) => x is Id;
|
|
21
|
+
export declare const asId: {
|
|
22
|
+
<TType extends Id>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
23
|
+
<TType extends Id>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<Id>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
24
|
+
};
|
|
25
|
+
export declare const asOptionalId: <TType extends Id>(value: import("@xylabs/promise").AnyNonPromise) => TType | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Identity helper for ID Payload with sources
|
|
28
|
+
*/
|
|
29
|
+
export declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<Id>>;
|
|
30
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAMnC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;AAE5C;;GAEG;AAGH,MAAM,MAAM,SAAS,GAAG,EAAE,CAAA;AAE1B;;GAEG;AACH,eAAO,MAAM,IAAI,iCAAsC,CAAA;AACvD,eAAO,MAAM,IAAI;qCAzBC,iBAAiB,iCAGX,gBAEf;qCAOU,iBAAiB,6FAMS,gBACvC;CAM0C,CAAA;AAChD,eAAO,MAAM,YAAY,mCADP,iBAAiB,qCAC6B,CAAA;AAEhE;;GAEG;AACH,eAAO,MAAM,eAAe,2DAA8D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAItC,eAAO,MAAM,eAAe,+DAIxB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,EAAG,gBAAyB,CAAA;AACjD,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../src/Template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAGtC,eAAO,MAAM,iBAAiB,QAAO,EAGnC,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const IdSchema: "network.xyo.id";
|
|
7
|
-
type IdSchema = typeof IdSchema;
|
|
8
|
-
|
|
9
|
-
type IdFields = {
|
|
10
|
-
salt: string;
|
|
11
|
-
};
|
|
12
|
-
type Id = Payload<IdFields, IdSchema>;
|
|
13
|
-
type IdPayload = Id;
|
|
14
|
-
declare const isId: (x?: unknown | null) => x is Id;
|
|
15
|
-
declare const asId: {
|
|
16
|
-
<TType extends Id>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
17
|
-
<TType extends Id>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<Id>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
18
|
-
};
|
|
19
|
-
declare const asOptionalId: <TType extends Id>(value: _xylabs_promise.AnyNonPromise) => TType | undefined;
|
|
20
|
-
declare const isIdWithSources: (x?: unknown | null) => x is WithSources<WithSources<Id>>;
|
|
21
|
-
|
|
22
|
-
declare const IdPayloadPlugin: () => _xyo_network_payload_plugin.PayloadPlugin<Id>;
|
|
23
|
-
|
|
24
|
-
declare const idPayloadTemplate: () => Id;
|
|
25
|
-
|
|
26
|
-
export { type Id, type IdFields, type IdPayload, IdPayloadPlugin, IdSchema, asId, asOptionalId, IdPayloadPlugin as default, idPayloadTemplate, isId, isIdWithSources };
|
|
1
|
+
export * from './Payload.ts';
|
|
2
|
+
export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.ts';
|
|
3
|
+
export * from './Schema.ts';
|
|
4
|
+
export * from './Template.ts';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/id-payload-plugin",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.20",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@xylabs/object": "^4.5.1",
|
|
33
|
-
"@xyo-network/payload-model": "^3.9.
|
|
34
|
-
"@xyo-network/payload-plugin": "^3.9.
|
|
33
|
+
"@xyo-network/payload-model": "^3.9.20",
|
|
34
|
+
"@xyo-network/payload-plugin": "^3.9.20"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
38
|
-
"@xylabs/tsconfig": "^5.0.
|
|
37
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.39",
|
|
38
|
+
"@xylabs/tsconfig": "^5.0.39",
|
|
39
39
|
"@xylabs/vitest-extended": "^4.5.1",
|
|
40
|
-
"typescript": "^5.
|
|
40
|
+
"typescript": "^5.8.2",
|
|
41
41
|
"vitest": "^3.0.7"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|