@xyo-network/payload-mongodb 4.1.2 → 4.1.3
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/node/index.d.ts +4 -34
- package/package.json +7 -7
package/dist/node/index.d.ts
CHANGED
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
__archive?: string;
|
|
6
|
-
__client?: string;
|
|
7
|
-
__observeDuration?: number;
|
|
8
|
-
__schemaValid?: boolean;
|
|
9
|
-
__sources?: Payload[];
|
|
10
|
-
__timestamp: number;
|
|
11
|
-
__user_agent?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
type PayloadWithMongoMeta<T extends Payload = Payload> = T & PayloadMongoMeta;
|
|
15
|
-
type PayloadWithPartialMongoMeta<T extends Payload = Payload> = T & Partial<PayloadMongoMeta>;
|
|
16
|
-
|
|
17
|
-
type BoundWitnessMongoMeta<P extends Payload = Payload> = PayloadWithMongoMeta<P & {
|
|
18
|
-
__source_ip?: string;
|
|
19
|
-
__user_agent?: string;
|
|
20
|
-
}>;
|
|
21
|
-
|
|
22
|
-
type BoundWitnessWithMongoMeta<T extends BoundWitness = BoundWitness, P extends PayloadWithPartialMongoMeta<T> = PayloadWithPartialMongoMeta<T>> = T & BoundWitnessMongoMeta<P>;
|
|
23
|
-
type BoundWitnessWithPartialMongoMeta<T extends BoundWitness = BoundWitness, P extends PayloadWithPartialMongoMeta<T> = PayloadWithPartialMongoMeta<T>> = T & Partial<BoundWitnessMongoMeta<P>>;
|
|
24
|
-
|
|
25
|
-
declare const payloadFromDbRepresentation: <T extends Payload = Payload>(value: PayloadWithMongoMeta<T>) => WithStorageMeta<T>;
|
|
26
|
-
declare const boundWitnessFromDbRepresentation: <T extends BoundWitness = BoundWitness>(value: BoundWitnessWithMongoMeta<T>) => WithStorageMeta<T>;
|
|
27
|
-
declare const fromDbRepresentation: <T extends Payload = Payload>(value: PayloadWithMongoMeta<T>) => WithStorageMeta<T>;
|
|
28
|
-
|
|
29
|
-
declare const payloadToDbRepresentation: <T extends Payload>(payload: WithStorageMeta<T>) => PayloadWithMongoMeta<WithStorageMeta<T>>;
|
|
30
|
-
declare const boundWitnessToDbRepresentation: <T extends BoundWitness>(bw: WithStorageMeta<T>) => BoundWitnessMongoMeta<WithStorageMeta<T>>;
|
|
31
|
-
declare const toDbRepresentation: <T extends Payload | BoundWitness>(value: WithStorageMeta<T>) => PayloadWithMongoMeta<WithStorageMeta<T>>;
|
|
32
|
-
|
|
33
|
-
export { boundWitnessFromDbRepresentation, boundWitnessToDbRepresentation, fromDbRepresentation, payloadFromDbRepresentation, payloadToDbRepresentation, toDbRepresentation };
|
|
34
|
-
export type { BoundWitnessMongoMeta, BoundWitnessWithMongoMeta, BoundWitnessWithPartialMongoMeta, PayloadMongoMeta, PayloadWithMongoMeta, PayloadWithPartialMongoMeta };
|
|
1
|
+
export * from './BoundWitness/index.js';
|
|
2
|
+
export * from './Mappings/index.js';
|
|
3
|
+
export * from './Payload/index.js';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/payload-mongodb",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"module": "dist/node/index.mjs",
|
|
33
33
|
"types": "dist/node/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@xyo-network/boundwitness-model": "^4.1.
|
|
36
|
-
"@xyo-network/payload-builder": "^4.1.
|
|
37
|
-
"@xyo-network/payload-model": "^4.1.
|
|
35
|
+
"@xyo-network/boundwitness-model": "^4.1.3",
|
|
36
|
+
"@xyo-network/payload-builder": "^4.1.3",
|
|
37
|
+
"@xyo-network/payload-model": "^4.1.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@xylabs/object": "^4.13.
|
|
41
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
42
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
40
|
+
"@xylabs/object": "^4.13.16",
|
|
41
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
|
|
42
|
+
"@xylabs/tsconfig": "^7.0.0-rc.27",
|
|
43
43
|
"typescript": "^5.8.3"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|