@xyo-network/module-model-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 +10 -60
- package/package.json +7 -7
package/dist/node/index.d.ts
CHANGED
|
@@ -1,60 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
payloadSdkConfig?: Partial<BaseMongoSdkPublicConfig>;
|
|
12
|
-
schema: MongoDBModuleConfigSchema;
|
|
13
|
-
}>;
|
|
14
|
-
|
|
15
|
-
type MongoDBModuleConfigV2 = ModuleConfig<{
|
|
16
|
-
/**
|
|
17
|
-
* The maximum number of payloads to store in the archivist.
|
|
18
|
-
* If not specified, there is no limit. If specified, the archivist
|
|
19
|
-
* will automatically clear old payloads when the limit is reached
|
|
20
|
-
* in a LIFO fashion.
|
|
21
|
-
*/
|
|
22
|
-
max?: number;
|
|
23
|
-
payloadSdkConfig?: Partial<BaseMongoSdkPublicConfig>;
|
|
24
|
-
schema: MongoDBModuleConfigSchema;
|
|
25
|
-
}>;
|
|
26
|
-
|
|
27
|
-
interface MongoDBStorageClassLabels extends Labels {
|
|
28
|
-
'network.xyo.storage.class': 'mongodb';
|
|
29
|
-
}
|
|
30
|
-
declare const MongoDBStorageClassLabels: MongoDBStorageClassLabels;
|
|
31
|
-
|
|
32
|
-
interface MongoDBModule {
|
|
33
|
-
get boundWitnessSdkConfig(): BaseMongoSdkConfig;
|
|
34
|
-
get boundWitnesses(): BaseMongoSdk<BoundWitnessWithMongoMeta>;
|
|
35
|
-
get payloadSdkConfig(): BaseMongoSdkConfig;
|
|
36
|
-
get payloads(): BaseMongoSdk<PayloadWithMongoMeta>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface MongoDBModuleV2 {
|
|
40
|
-
get payloadSdkConfig(): BaseMongoSdkConfig;
|
|
41
|
-
get payloads(): BaseMongoSdk<PayloadWithMongoMeta>;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
interface MongoDBModuleStatic<T extends MongoDBStorageClassLabels = MongoDBStorageClassLabels> {
|
|
45
|
-
labels: T;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface MongoDBModuleParams extends ModuleParams<AnyConfigSchema<MongoDBModuleConfig>> {
|
|
49
|
-
boundWitnessSdkConfig?: (BaseMongoSdkPrivateConfig & Partial<BaseMongoSdkPublicConfig>);
|
|
50
|
-
jobQueue?: JobQueue;
|
|
51
|
-
payloadSdkConfig?: (BaseMongoSdkPrivateConfig & Partial<BaseMongoSdkPublicConfig>);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface MongoDBModuleParamsV2<TConfig extends AnyConfigSchema<MongoDBModuleConfigV2> = AnyConfigSchema<MongoDBModuleConfigV2>> extends ModuleParams<TConfig> {
|
|
55
|
-
jobQueue?: JobQueue;
|
|
56
|
-
payloadSdkConfig?: (BaseMongoSdkPrivateConfig & Partial<BaseMongoSdkPublicConfig>);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export { MongoDBModuleConfigSchema, MongoDBStorageClassLabels };
|
|
60
|
-
export type { MongoDBModule, MongoDBModuleConfig, MongoDBModuleConfigV2, MongoDBModuleParams, MongoDBModuleParamsV2, MongoDBModuleStatic, MongoDBModuleV2 };
|
|
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';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/module-model-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
|
-
"@xylabs/mongo": "^4.13.
|
|
36
|
-
"@xyo-network/module-model": "^4.1.
|
|
37
|
-
"@xyo-network/payload-mongodb": "^4.1.
|
|
38
|
-
"@xyo-network/shared": "^4.1.
|
|
35
|
+
"@xylabs/mongo": "^4.13.16",
|
|
36
|
+
"@xyo-network/module-model": "^4.1.3",
|
|
37
|
+
"@xyo-network/payload-mongodb": "^4.1.3",
|
|
38
|
+
"@xyo-network/shared": "^4.1.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
42
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
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": {
|