@xyo-network/module-model-mongodb 5.3.20 → 5.3.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/module-model-mongodb",
3
- "version": "5.3.20",
3
+ "version": "5.3.24",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -33,26 +33,35 @@
33
33
  "types": "dist/node/index.d.ts",
34
34
  "files": [
35
35
  "dist",
36
- "src",
37
36
  "!**/*.bench.*",
38
37
  "!**/*.spec.*",
39
- "!**/*.test.*"
38
+ "!**/*.test.*",
39
+ "README.md"
40
40
  ],
41
41
  "dependencies": {
42
- "@xyo-network/module-model": "~5.3.20",
43
- "@xyo-network/payload-model": "~5.3.20",
44
- "@xyo-network/payload-mongodb": "~5.3.20",
45
- "@xyo-network/shared": "~5.3.20"
42
+ "@xyo-network/module-model": "~5.3.24",
43
+ "@xyo-network/shared": "~5.3.24",
44
+ "@xyo-network/payload-model": "~5.3.24",
45
+ "@xyo-network/payload-mongodb": "~5.3.24"
46
46
  },
47
47
  "devDependencies": {
48
- "@xylabs/mongo": "^5.0.90",
49
- "@xylabs/sdk-js": "^5.0.90",
50
- "@xylabs/ts-scripts-common": "~7.5.6",
51
- "@xylabs/ts-scripts-yarn3": "~7.5.6",
52
- "@xylabs/tsconfig": "~7.5.6",
48
+ "@opentelemetry/api": "^1.9.1",
49
+ "@types/node": "^25.5.0",
50
+ "@xylabs/mongo": "^5.0.93",
51
+ "@xylabs/sdk-js": "^5.0.93",
52
+ "@xylabs/ts-scripts-common": "~7.6.16",
53
+ "@xylabs/ts-scripts-pnpm": "~7.6.16",
54
+ "@xylabs/tsconfig": "~7.6.16",
55
+ "acorn": "^8.16.0",
56
+ "axios": "^1.14.0",
57
+ "esbuild": "^0.28.0",
53
58
  "mongodb": "~7.1.1",
54
59
  "typescript": "~5.9.3",
55
- "zod": "^4.3.6"
60
+ "zod": "^4.3.6",
61
+ "@xyo-network/module-model": "~5.3.24",
62
+ "@xyo-network/payload-model": "~5.3.24",
63
+ "@xyo-network/shared": "~5.3.24",
64
+ "@xyo-network/payload-mongodb": "~5.3.24"
56
65
  },
57
66
  "peerDependencies": {
58
67
  "@xylabs/mongo": "^5",
@@ -66,4 +75,4 @@
66
75
  "publishConfig": {
67
76
  "access": "public"
68
77
  }
69
- }
78
+ }
package/src/Config.ts DELETED
@@ -1,10 +0,0 @@
1
- import type { BaseMongoSdkPublicConfig } from '@xylabs/mongo'
2
- import type { ModuleConfig } from '@xyo-network/module-model'
3
-
4
- import type { MongoDBModuleConfigSchema } from './Schema.ts'
5
-
6
- export type MongoDBModuleConfig = ModuleConfig<{
7
- boundWitnessSdkConfig?: Partial<BaseMongoSdkPublicConfig>
8
- payloadSdkConfig?: Partial<BaseMongoSdkPublicConfig>
9
- schema: MongoDBModuleConfigSchema
10
- }>
package/src/ConfigV2.ts DELETED
@@ -1,16 +0,0 @@
1
- import type { BaseMongoSdkPublicConfig } from '@xylabs/mongo'
2
- import type { ModuleConfig } from '@xyo-network/module-model'
3
-
4
- import type { MongoDBModuleConfigSchema } from './Schema.ts'
5
-
6
- export type MongoDBModuleConfigV2 = ModuleConfig<{
7
- /**
8
- * The maximum number of payloads to store in the archivist.
9
- * If not specified, there is no limit. If specified, the archivist
10
- * will automatically clear old payloads when the limit is reached
11
- * in a LIFO fashion.
12
- */
13
- max?: number
14
- payloadSdkConfig?: Partial<BaseMongoSdkPublicConfig>
15
- schema: MongoDBModuleConfigSchema
16
- }>
package/src/Labels.ts DELETED
@@ -1,7 +0,0 @@
1
- import type { Labels } from '@xyo-network/module-model'
2
-
3
- export interface MongoDBStorageClassLabels extends Labels {
4
- 'network.xyo.storage.class': 'mongodb'
5
- }
6
-
7
- export const MongoDBStorageClassLabels: MongoDBStorageClassLabels = { 'network.xyo.storage.class': 'mongodb' }
package/src/Module.ts DELETED
@@ -1,9 +0,0 @@
1
- import type { BaseMongoSdk, BaseMongoSdkConfig } from '@xylabs/mongo'
2
- import type { BoundWitnessWithMongoMeta, PayloadWithMongoMeta } from '@xyo-network/payload-mongodb'
3
-
4
- export interface MongoDBModule {
5
- get boundWitnessSdkConfig(): BaseMongoSdkConfig
6
- get boundWitnesses(): BaseMongoSdk<BoundWitnessWithMongoMeta>
7
- get payloadSdkConfig(): BaseMongoSdkConfig
8
- get payloads(): BaseMongoSdk<PayloadWithMongoMeta>
9
- }
package/src/ModuleV2.ts DELETED
@@ -1,7 +0,0 @@
1
- import type { BaseMongoSdk, BaseMongoSdkConfig } from '@xylabs/mongo'
2
- import type { PayloadWithMongoMeta } from '@xyo-network/payload-mongodb'
3
-
4
- export interface MongoDBModuleV2 {
5
- get payloadSdkConfig(): BaseMongoSdkConfig
6
- get payloads(): BaseMongoSdk<PayloadWithMongoMeta>
7
- }
@@ -1,5 +0,0 @@
1
- import type { MongoDBStorageClassLabels } from './Labels.ts'
2
-
3
- export interface MongoDBModuleStatic<T extends MongoDBStorageClassLabels = MongoDBStorageClassLabels> {
4
- labels: T
5
- }
package/src/Params.ts DELETED
@@ -1,11 +0,0 @@
1
- import type { BaseMongoSdkPrivateConfig, BaseMongoSdkPublicConfig } from '@xylabs/mongo'
2
- import type { AnyConfigSchema, QueryableModuleParams } from '@xyo-network/module-model'
3
- import type { JobQueue } from '@xyo-network/shared'
4
-
5
- import type { MongoDBModuleConfig } from './Config.ts'
6
-
7
- export interface MongoDBModuleParams extends QueryableModuleParams<AnyConfigSchema<MongoDBModuleConfig>> {
8
- boundWitnessSdkConfig?: (BaseMongoSdkPrivateConfig & Partial<BaseMongoSdkPublicConfig>)
9
- jobQueue?: JobQueue
10
- payloadSdkConfig?: (BaseMongoSdkPrivateConfig & Partial<BaseMongoSdkPublicConfig>)
11
- }
package/src/ParamsV2.ts DELETED
@@ -1,12 +0,0 @@
1
- import type { BaseMongoSdkPrivateConfig, BaseMongoSdkPublicConfig } from '@xylabs/mongo'
2
- import type { AnyConfigSchema, QueryableModuleParams } from '@xyo-network/module-model'
3
- import type { JobQueue } from '@xyo-network/shared'
4
-
5
- import type { MongoDBModuleConfigV2 } from './ConfigV2.ts'
6
-
7
- export interface MongoDBModuleParamsV2<TConfig extends AnyConfigSchema<MongoDBModuleConfigV2> = AnyConfigSchema<MongoDBModuleConfigV2>>
8
- extends QueryableModuleParams<TConfig>
9
- {
10
- jobQueue?: JobQueue
11
- payloadSdkConfig?: (BaseMongoSdkPrivateConfig & Partial<BaseMongoSdkPublicConfig>)
12
- }
package/src/Schema.ts DELETED
@@ -1,4 +0,0 @@
1
- import { asSchema } from '@xyo-network/payload-model'
2
-
3
- export const MongoDBModuleConfigSchema = asSchema('network.xyo.module.mongodb.config', true)
4
- export type MongoDBModuleConfigSchema = typeof MongoDBModuleConfigSchema
package/src/index.ts DELETED
@@ -1,9 +0,0 @@
1
- export * from './Config.ts'
2
- export * from './ConfigV2.ts'
3
- export * from './Labels.ts'
4
- export * from './Module.ts'
5
- export * from './ModuleV2.ts'
6
- export * from './MongoDBModuleStatic.ts'
7
- export * from './Params.ts'
8
- export * from './ParamsV2.ts'
9
- export * from './Schema.ts'