@xyo-network/archivist-model-mongodb 4.0.3 → 4.1.1
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 +24 -0
- package/package.json +12 -12
- package/xy.config.ts +11 -0
- package/dist/browser/index.mjs +0 -6
- package/dist/browser/index.mjs.map +0 -1
- package/dist/neutral/index.mjs +0 -6
- package/dist/neutral/index.mjs.map +0 -1
- package/dist/types/index.d.ts +0 -5
- /package/dist/{types → node}/Config.d.ts +0 -0
- /package/dist/{types → node}/Config.d.ts.map +0 -0
- /package/dist/{types → node}/ConfigV2.d.ts +0 -0
- /package/dist/{types → node}/ConfigV2.d.ts.map +0 -0
- /package/dist/{types → node}/Labels.d.ts +0 -0
- /package/dist/{types → node}/Labels.d.ts.map +0 -0
- /package/dist/{types → node}/Params.d.ts +0 -0
- /package/dist/{types → node}/Params.d.ts.map +0 -0
- /package/dist/{types → node}/Schema.d.ts +0 -0
- /package/dist/{types → node}/Schema.d.ts.map +0 -0
- /package/dist/{types → node}/index.d.ts.map +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseMongoSdkPublicConfig, BaseMongoSdkPrivateConfig } from '@xylabs/mongo';
|
|
2
|
+
import { ArchivistConfig, ArchivistParams } from '@xyo-network/archivist-model';
|
|
3
|
+
import { Labels, AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
+
|
|
5
|
+
declare const MongoDBArchivistConfigSchema = "network.xyo.archivist.mongodb.config";
|
|
6
|
+
type MongoDBArchivistConfigSchema = typeof MongoDBArchivistConfigSchema;
|
|
7
|
+
|
|
8
|
+
type MongoDBArchivistConfig = ArchivistConfig<{
|
|
9
|
+
boundWitnessSdkConfig?: Partial<BaseMongoSdkPublicConfig>;
|
|
10
|
+
payloadSdkConfig?: Partial<BaseMongoSdkPublicConfig>;
|
|
11
|
+
schema: MongoDBArchivistConfigSchema;
|
|
12
|
+
}>;
|
|
13
|
+
|
|
14
|
+
interface ArchivistLabels extends Labels {
|
|
15
|
+
'network.xyo.archivist.persistence.scope': 'memory' | 'thread' | 'process' | 'disk' | 'network';
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface MongoDBArchivistParams extends ArchivistParams<AnyConfigSchema<MongoDBArchivistConfig>> {
|
|
19
|
+
boundWitnessSdkConfig: BaseMongoSdkPrivateConfig & Partial<BaseMongoSdkPublicConfig>;
|
|
20
|
+
payloadSdkConfig: BaseMongoSdkPrivateConfig & Partial<BaseMongoSdkPublicConfig>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { MongoDBArchivistConfigSchema };
|
|
24
|
+
export type { ArchivistLabels, MongoDBArchivistConfig, MongoDBArchivistParams };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/archivist-model-mongodb",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,29 +21,29 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"browser": {
|
|
25
|
-
"types": "./dist/types/index.d.ts",
|
|
26
|
-
"default": "./dist/browser/index.mjs"
|
|
27
|
-
},
|
|
24
|
+
"browser": {},
|
|
28
25
|
"node": {
|
|
29
|
-
"types": "./dist/
|
|
26
|
+
"types": "./dist/node/index.d.ts",
|
|
30
27
|
"default": "./dist/node/index.mjs"
|
|
31
28
|
}
|
|
32
29
|
},
|
|
33
30
|
"./package.json": "./package.json"
|
|
34
31
|
},
|
|
35
32
|
"module": "dist/node/index.mjs",
|
|
36
|
-
"types": "dist/
|
|
33
|
+
"types": "dist/node/index.d.ts",
|
|
37
34
|
"dependencies": {
|
|
38
|
-
"@xylabs/mongo": "^4.13.
|
|
39
|
-
"@xyo-network/archivist-model": "^4.
|
|
40
|
-
"@xyo-network/module-model": "^4.
|
|
35
|
+
"@xylabs/mongo": "^4.13.15",
|
|
36
|
+
"@xyo-network/archivist-model": "^4.1.1",
|
|
37
|
+
"@xyo-network/module-model": "^4.1.1"
|
|
41
38
|
},
|
|
42
39
|
"devDependencies": {
|
|
43
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
44
|
-
"@xylabs/tsconfig": "^
|
|
40
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.23",
|
|
41
|
+
"@xylabs/tsconfig": "^7.0.0-rc.23",
|
|
45
42
|
"typescript": "^5.8.3"
|
|
46
43
|
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=16"
|
|
46
|
+
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
}
|
package/xy.config.ts
ADDED
package/dist/browser/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Schema.ts"],"sourcesContent":["export const MongoDBArchivistConfigSchema = 'network.xyo.archivist.mongodb.config'\nexport type MongoDBArchivistConfigSchema = typeof MongoDBArchivistConfigSchema\n"],"mappings":";AAAO,IAAM,+BAA+B;","names":[]}
|
package/dist/neutral/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Schema.ts"],"sourcesContent":["export const MongoDBArchivistConfigSchema = 'network.xyo.archivist.mongodb.config'\nexport type MongoDBArchivistConfigSchema = typeof MongoDBArchivistConfigSchema\n"],"mappings":";AAAO,IAAM,+BAA+B;","names":[]}
|
package/dist/types/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|