@xyo-network/archivist-model-mongodb 4.0.2 → 4.1.0

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.
@@ -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.0.2",
3
+ "version": "4.1.0",
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/types/index.d.ts",
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/types/index.d.ts",
33
+ "types": "dist/node/index.d.ts",
37
34
  "dependencies": {
38
- "@xylabs/mongo": "^4.12.33",
39
- "@xyo-network/archivist-model": "^4.0.2",
40
- "@xyo-network/module-model": "^4.0.2"
35
+ "@xylabs/mongo": "^4.13.15",
36
+ "@xyo-network/archivist-model": "^4.1.0",
37
+ "@xyo-network/module-model": "^4.1.0"
41
38
  },
42
39
  "devDependencies": {
43
- "@xylabs/ts-scripts-yarn3": "^6.5.12",
44
- "@xylabs/tsconfig": "^6.5.12",
40
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
41
+ "@xylabs/tsconfig": "^7.0.0-rc.20",
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
@@ -0,0 +1,11 @@
1
+ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
+ const config: XyTsupConfig = {
3
+ compile: {
4
+ entryMode: 'custom',
5
+ neutral: {},
6
+ browser: {},
7
+ node: { src: { entry: ['index.ts'] } },
8
+ },
9
+ }
10
+
11
+ export default config
@@ -1,6 +0,0 @@
1
- // src/Schema.ts
2
- var MongoDBArchivistConfigSchema = "network.xyo.archivist.mongodb.config";
3
- export {
4
- MongoDBArchivistConfigSchema
5
- };
6
- //# sourceMappingURL=index.mjs.map
@@ -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":[]}
@@ -1,6 +0,0 @@
1
- // src/Schema.ts
2
- var MongoDBArchivistConfigSchema = "network.xyo.archivist.mongodb.config";
3
- export {
4
- MongoDBArchivistConfigSchema
5
- };
6
- //# sourceMappingURL=index.mjs.map
@@ -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":[]}
@@ -1,8 +0,0 @@
1
- import type { BaseMongoSdkPublicConfig } from '@xylabs/mongo';
2
- import type { ArchivistConfig } from '@xyo-network/archivist-model';
3
- import type { MongoDBArchivistConfigSchema } from './Schema.ts';
4
- export type MongoDBArchivistConfigV2 = ArchivistConfig<{
5
- payloadSdkConfig?: Partial<BaseMongoSdkPublicConfig>;
6
- schema: MongoDBArchivistConfigSchema;
7
- }>;
8
- //# sourceMappingURL=ConfigV2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConfigV2.d.ts","sourceRoot":"","sources":["../../src/ConfigV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAEnE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AAE/D,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC;IACrD,gBAAgB,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAAA;IACpD,MAAM,EAAE,4BAA4B,CAAA;CACrC,CAAC,CAAA"}
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