@xyo-network/module-abstract-mongodb 2.75.16 → 2.75.18
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/browser/Module.d.cts +17 -17
- package/dist/browser/Module.d.mts +17 -17
- package/dist/browser/Module.d.ts +17 -17
- package/dist/browser/util/removeId.d.cts +2 -2
- package/dist/browser/util/removeId.d.cts.map +1 -1
- package/dist/browser/util/removeId.d.mts +2 -2
- package/dist/browser/util/removeId.d.mts.map +1 -1
- package/dist/browser/util/removeId.d.ts +2 -2
- package/dist/browser/util/removeId.d.ts.map +1 -1
- package/dist/docs.json +128 -192
- package/dist/node/Module.d.cts +17 -17
- package/dist/node/Module.d.mts +17 -17
- package/dist/node/Module.d.ts +17 -17
- package/dist/node/util/removeId.d.cts +2 -2
- package/dist/node/util/removeId.d.cts.map +1 -1
- package/dist/node/util/removeId.d.mts +2 -2
- package/dist/node/util/removeId.d.mts.map +1 -1
- package/dist/node/util/removeId.d.ts +2 -2
- package/dist/node/util/removeId.d.ts.map +1 -1
- package/package.json +13 -13
|
@@ -5,7 +5,7 @@ import { BaseMongoSdk, BaseMongoSdkConfig } from '@xyo-network/sdk-xyo-mongo-js'
|
|
|
5
5
|
export type AnyAbstractModule<TParams extends MongoDBModuleParams = MongoDBModuleParams> = abstract new (...args: any[]) => Module<TParams>;
|
|
6
6
|
export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/core").BaseParamsFields & {
|
|
7
7
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
8
|
-
config: import("@xyo-network/payload-model").SchemaFields &
|
|
8
|
+
config: import("@xyo-network/payload-model").SchemaFields & Omit<{
|
|
9
9
|
accountDerivationPath?: string | undefined;
|
|
10
10
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
11
11
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -21,7 +21,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
21
21
|
readonly sign?: boolean | undefined;
|
|
22
22
|
readonly storeQueries?: boolean | undefined;
|
|
23
23
|
readonly timestamp?: boolean | undefined;
|
|
24
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields &
|
|
24
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields & Omit<{
|
|
25
25
|
accountDerivationPath?: string | undefined;
|
|
26
26
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
27
27
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -56,7 +56,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
56
56
|
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
57
57
|
} = import("@xyo-network/core").BaseParamsFields & {
|
|
58
58
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
59
|
-
config: import("@xyo-network/payload-model").SchemaFields &
|
|
59
|
+
config: import("@xyo-network/payload-model").SchemaFields & Omit<{
|
|
60
60
|
accountDerivationPath?: string | undefined;
|
|
61
61
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
62
62
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -72,7 +72,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
72
72
|
readonly sign?: boolean | undefined;
|
|
73
73
|
readonly storeQueries?: boolean | undefined;
|
|
74
74
|
readonly timestamp?: boolean | undefined;
|
|
75
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields &
|
|
75
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields & Omit<{
|
|
76
76
|
accountDerivationPath?: string | undefined;
|
|
77
77
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
78
78
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -112,7 +112,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
112
112
|
readonly boundWitnesses: BaseMongoSdk<BoundWitnessWithMeta>;
|
|
113
113
|
readonly jobQueue: import("@xyo-network/node-core-model").JobQueue;
|
|
114
114
|
readonly payloadSdkConfig: BaseMongoSdkConfig;
|
|
115
|
-
readonly payloads: BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/
|
|
115
|
+
readonly payloads: BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/node-core-model").PayloadMetaBase & {
|
|
116
116
|
schema: string;
|
|
117
117
|
}>;
|
|
118
118
|
/**
|
|
@@ -125,19 +125,19 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
125
125
|
params: TParams;
|
|
126
126
|
previousHash: () => import("@xyo-network/promise").Promisable<string | undefined>;
|
|
127
127
|
queries: string[];
|
|
128
|
-
query: <T extends import("@xyo-network/payload-model").SchemaFields &
|
|
128
|
+
query: <T extends import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
129
129
|
query: string;
|
|
130
130
|
resultSet?: string | undefined;
|
|
131
131
|
schema: "network.xyo.boundwitness";
|
|
132
132
|
}, "schema"> & {
|
|
133
133
|
schema: "network.xyo.boundwitness";
|
|
134
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
134
|
+
} = import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
135
135
|
query: string;
|
|
136
136
|
resultSet?: string | undefined;
|
|
137
137
|
schema: "network.xyo.boundwitness";
|
|
138
138
|
}, "schema"> & {
|
|
139
139
|
schema: "network.xyo.boundwitness";
|
|
140
|
-
}, TConf extends import("@xyo-network/payload-model").SchemaFields &
|
|
140
|
+
}, TConf extends import("@xyo-network/payload-model").SchemaFields & {
|
|
141
141
|
accountDerivationPath?: string | undefined;
|
|
142
142
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
143
143
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -155,7 +155,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
155
155
|
readonly timestamp?: boolean | undefined;
|
|
156
156
|
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
157
157
|
schema: "network.xyo.module.config";
|
|
158
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
158
|
+
} = import("@xyo-network/payload-model").SchemaFields & {
|
|
159
159
|
accountDerivationPath?: string | undefined;
|
|
160
160
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
161
161
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -173,22 +173,22 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
173
173
|
readonly timestamp?: boolean | undefined;
|
|
174
174
|
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
175
175
|
schema: "network.xyo.module.config";
|
|
176
|
-
}>(query: T, payloads?:
|
|
176
|
+
}>(query: T, payloads?: {
|
|
177
177
|
schema: string;
|
|
178
|
-
}
|
|
179
|
-
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields &
|
|
178
|
+
}[] | undefined, queryConfig?: TConf | undefined) => import("@xyo-network/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
|
|
179
|
+
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
180
180
|
query: string;
|
|
181
181
|
resultSet?: string | undefined;
|
|
182
182
|
schema: "network.xyo.boundwitness";
|
|
183
183
|
}, "schema"> & {
|
|
184
184
|
schema: "network.xyo.boundwitness";
|
|
185
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
185
|
+
} = import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
186
186
|
query: string;
|
|
187
187
|
resultSet?: string | undefined;
|
|
188
188
|
schema: "network.xyo.boundwitness";
|
|
189
189
|
}, "schema"> & {
|
|
190
190
|
schema: "network.xyo.boundwitness";
|
|
191
|
-
}, TConf_1 extends import("@xyo-network/payload-model").SchemaFields &
|
|
191
|
+
}, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & {
|
|
192
192
|
accountDerivationPath?: string | undefined;
|
|
193
193
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
194
194
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -206,7 +206,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
206
206
|
readonly timestamp?: boolean | undefined;
|
|
207
207
|
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
208
208
|
schema: "network.xyo.module.config";
|
|
209
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
209
|
+
} = import("@xyo-network/payload-model").SchemaFields & {
|
|
210
210
|
accountDerivationPath?: string | undefined;
|
|
211
211
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
212
212
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -224,9 +224,9 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
224
224
|
readonly timestamp?: boolean | undefined;
|
|
225
225
|
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
226
226
|
schema: "network.xyo.module.config";
|
|
227
|
-
}>(query: T_1, payloads?:
|
|
227
|
+
}>(query: T_1, payloads?: {
|
|
228
228
|
schema: string;
|
|
229
|
-
}
|
|
229
|
+
}[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xyo-network/promise").Promisable<boolean>;
|
|
230
230
|
start?: (() => import("@xyo-network/promise").Promisable<boolean>) | undefined;
|
|
231
231
|
stop?: (() => import("@xyo-network/promise").Promisable<boolean>) | undefined;
|
|
232
232
|
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
@@ -5,7 +5,7 @@ import { BaseMongoSdk, BaseMongoSdkConfig } from '@xyo-network/sdk-xyo-mongo-js'
|
|
|
5
5
|
export type AnyAbstractModule<TParams extends MongoDBModuleParams = MongoDBModuleParams> = abstract new (...args: any[]) => Module<TParams>;
|
|
6
6
|
export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/core").BaseParamsFields & {
|
|
7
7
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
8
|
-
config: import("@xyo-network/payload-model").SchemaFields &
|
|
8
|
+
config: import("@xyo-network/payload-model").SchemaFields & Omit<{
|
|
9
9
|
accountDerivationPath?: string | undefined;
|
|
10
10
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
11
11
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -21,7 +21,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
21
21
|
readonly sign?: boolean | undefined;
|
|
22
22
|
readonly storeQueries?: boolean | undefined;
|
|
23
23
|
readonly timestamp?: boolean | undefined;
|
|
24
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields &
|
|
24
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields & Omit<{
|
|
25
25
|
accountDerivationPath?: string | undefined;
|
|
26
26
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
27
27
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -56,7 +56,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
56
56
|
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
57
57
|
} = import("@xyo-network/core").BaseParamsFields & {
|
|
58
58
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
59
|
-
config: import("@xyo-network/payload-model").SchemaFields &
|
|
59
|
+
config: import("@xyo-network/payload-model").SchemaFields & Omit<{
|
|
60
60
|
accountDerivationPath?: string | undefined;
|
|
61
61
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
62
62
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -72,7 +72,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
72
72
|
readonly sign?: boolean | undefined;
|
|
73
73
|
readonly storeQueries?: boolean | undefined;
|
|
74
74
|
readonly timestamp?: boolean | undefined;
|
|
75
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields &
|
|
75
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields & Omit<{
|
|
76
76
|
accountDerivationPath?: string | undefined;
|
|
77
77
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
78
78
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -112,7 +112,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
112
112
|
readonly boundWitnesses: BaseMongoSdk<BoundWitnessWithMeta>;
|
|
113
113
|
readonly jobQueue: import("@xyo-network/node-core-model").JobQueue;
|
|
114
114
|
readonly payloadSdkConfig: BaseMongoSdkConfig;
|
|
115
|
-
readonly payloads: BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/
|
|
115
|
+
readonly payloads: BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/node-core-model").PayloadMetaBase & {
|
|
116
116
|
schema: string;
|
|
117
117
|
}>;
|
|
118
118
|
/**
|
|
@@ -125,19 +125,19 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
125
125
|
params: TParams;
|
|
126
126
|
previousHash: () => import("@xyo-network/promise").Promisable<string | undefined>;
|
|
127
127
|
queries: string[];
|
|
128
|
-
query: <T extends import("@xyo-network/payload-model").SchemaFields &
|
|
128
|
+
query: <T extends import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
129
129
|
query: string;
|
|
130
130
|
resultSet?: string | undefined;
|
|
131
131
|
schema: "network.xyo.boundwitness";
|
|
132
132
|
}, "schema"> & {
|
|
133
133
|
schema: "network.xyo.boundwitness";
|
|
134
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
134
|
+
} = import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
135
135
|
query: string;
|
|
136
136
|
resultSet?: string | undefined;
|
|
137
137
|
schema: "network.xyo.boundwitness";
|
|
138
138
|
}, "schema"> & {
|
|
139
139
|
schema: "network.xyo.boundwitness";
|
|
140
|
-
}, TConf extends import("@xyo-network/payload-model").SchemaFields &
|
|
140
|
+
}, TConf extends import("@xyo-network/payload-model").SchemaFields & {
|
|
141
141
|
accountDerivationPath?: string | undefined;
|
|
142
142
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
143
143
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -155,7 +155,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
155
155
|
readonly timestamp?: boolean | undefined;
|
|
156
156
|
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
157
157
|
schema: "network.xyo.module.config";
|
|
158
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
158
|
+
} = import("@xyo-network/payload-model").SchemaFields & {
|
|
159
159
|
accountDerivationPath?: string | undefined;
|
|
160
160
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
161
161
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -173,22 +173,22 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
173
173
|
readonly timestamp?: boolean | undefined;
|
|
174
174
|
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
175
175
|
schema: "network.xyo.module.config";
|
|
176
|
-
}>(query: T, payloads?:
|
|
176
|
+
}>(query: T, payloads?: {
|
|
177
177
|
schema: string;
|
|
178
|
-
}
|
|
179
|
-
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields &
|
|
178
|
+
}[] | undefined, queryConfig?: TConf | undefined) => import("@xyo-network/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
|
|
179
|
+
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
180
180
|
query: string;
|
|
181
181
|
resultSet?: string | undefined;
|
|
182
182
|
schema: "network.xyo.boundwitness";
|
|
183
183
|
}, "schema"> & {
|
|
184
184
|
schema: "network.xyo.boundwitness";
|
|
185
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
185
|
+
} = import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
186
186
|
query: string;
|
|
187
187
|
resultSet?: string | undefined;
|
|
188
188
|
schema: "network.xyo.boundwitness";
|
|
189
189
|
}, "schema"> & {
|
|
190
190
|
schema: "network.xyo.boundwitness";
|
|
191
|
-
}, TConf_1 extends import("@xyo-network/payload-model").SchemaFields &
|
|
191
|
+
}, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & {
|
|
192
192
|
accountDerivationPath?: string | undefined;
|
|
193
193
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
194
194
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -206,7 +206,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
206
206
|
readonly timestamp?: boolean | undefined;
|
|
207
207
|
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
208
208
|
schema: "network.xyo.module.config";
|
|
209
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
209
|
+
} = import("@xyo-network/payload-model").SchemaFields & {
|
|
210
210
|
accountDerivationPath?: string | undefined;
|
|
211
211
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
212
212
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -224,9 +224,9 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
224
224
|
readonly timestamp?: boolean | undefined;
|
|
225
225
|
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
226
226
|
schema: "network.xyo.module.config";
|
|
227
|
-
}>(query: T_1, payloads?:
|
|
227
|
+
}>(query: T_1, payloads?: {
|
|
228
228
|
schema: string;
|
|
229
|
-
}
|
|
229
|
+
}[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xyo-network/promise").Promisable<boolean>;
|
|
230
230
|
start?: (() => import("@xyo-network/promise").Promisable<boolean>) | undefined;
|
|
231
231
|
stop?: (() => import("@xyo-network/promise").Promisable<boolean>) | undefined;
|
|
232
232
|
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
package/dist/browser/Module.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { BaseMongoSdk, BaseMongoSdkConfig } from '@xyo-network/sdk-xyo-mongo-js'
|
|
|
5
5
|
export type AnyAbstractModule<TParams extends MongoDBModuleParams = MongoDBModuleParams> = abstract new (...args: any[]) => Module<TParams>;
|
|
6
6
|
export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/core").BaseParamsFields & {
|
|
7
7
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
8
|
-
config: import("@xyo-network/payload-model").SchemaFields &
|
|
8
|
+
config: import("@xyo-network/payload-model").SchemaFields & Omit<{
|
|
9
9
|
accountDerivationPath?: string | undefined;
|
|
10
10
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
11
11
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -21,7 +21,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
21
21
|
readonly sign?: boolean | undefined;
|
|
22
22
|
readonly storeQueries?: boolean | undefined;
|
|
23
23
|
readonly timestamp?: boolean | undefined;
|
|
24
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields &
|
|
24
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields & Omit<{
|
|
25
25
|
accountDerivationPath?: string | undefined;
|
|
26
26
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
27
27
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -56,7 +56,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
56
56
|
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
57
57
|
} = import("@xyo-network/core").BaseParamsFields & {
|
|
58
58
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
59
|
-
config: import("@xyo-network/payload-model").SchemaFields &
|
|
59
|
+
config: import("@xyo-network/payload-model").SchemaFields & Omit<{
|
|
60
60
|
accountDerivationPath?: string | undefined;
|
|
61
61
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
62
62
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -72,7 +72,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
72
72
|
readonly sign?: boolean | undefined;
|
|
73
73
|
readonly storeQueries?: boolean | undefined;
|
|
74
74
|
readonly timestamp?: boolean | undefined;
|
|
75
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields &
|
|
75
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields & Omit<{
|
|
76
76
|
accountDerivationPath?: string | undefined;
|
|
77
77
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
78
78
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -112,7 +112,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
112
112
|
readonly boundWitnesses: BaseMongoSdk<BoundWitnessWithMeta>;
|
|
113
113
|
readonly jobQueue: import("@xyo-network/node-core-model").JobQueue;
|
|
114
114
|
readonly payloadSdkConfig: BaseMongoSdkConfig;
|
|
115
|
-
readonly payloads: BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/
|
|
115
|
+
readonly payloads: BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/node-core-model").PayloadMetaBase & {
|
|
116
116
|
schema: string;
|
|
117
117
|
}>;
|
|
118
118
|
/**
|
|
@@ -125,19 +125,19 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
125
125
|
params: TParams;
|
|
126
126
|
previousHash: () => import("@xyo-network/promise").Promisable<string | undefined>;
|
|
127
127
|
queries: string[];
|
|
128
|
-
query: <T extends import("@xyo-network/payload-model").SchemaFields &
|
|
128
|
+
query: <T extends import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
129
129
|
query: string;
|
|
130
130
|
resultSet?: string | undefined;
|
|
131
131
|
schema: "network.xyo.boundwitness";
|
|
132
132
|
}, "schema"> & {
|
|
133
133
|
schema: "network.xyo.boundwitness";
|
|
134
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
134
|
+
} = import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
135
135
|
query: string;
|
|
136
136
|
resultSet?: string | undefined;
|
|
137
137
|
schema: "network.xyo.boundwitness";
|
|
138
138
|
}, "schema"> & {
|
|
139
139
|
schema: "network.xyo.boundwitness";
|
|
140
|
-
}, TConf extends import("@xyo-network/payload-model").SchemaFields &
|
|
140
|
+
}, TConf extends import("@xyo-network/payload-model").SchemaFields & {
|
|
141
141
|
accountDerivationPath?: string | undefined;
|
|
142
142
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
143
143
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -155,7 +155,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
155
155
|
readonly timestamp?: boolean | undefined;
|
|
156
156
|
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
157
157
|
schema: "network.xyo.module.config";
|
|
158
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
158
|
+
} = import("@xyo-network/payload-model").SchemaFields & {
|
|
159
159
|
accountDerivationPath?: string | undefined;
|
|
160
160
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
161
161
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -173,22 +173,22 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
173
173
|
readonly timestamp?: boolean | undefined;
|
|
174
174
|
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
175
175
|
schema: "network.xyo.module.config";
|
|
176
|
-
}>(query: T, payloads?:
|
|
176
|
+
}>(query: T, payloads?: {
|
|
177
177
|
schema: string;
|
|
178
|
-
}
|
|
179
|
-
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields &
|
|
178
|
+
}[] | undefined, queryConfig?: TConf | undefined) => import("@xyo-network/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
|
|
179
|
+
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
180
180
|
query: string;
|
|
181
181
|
resultSet?: string | undefined;
|
|
182
182
|
schema: "network.xyo.boundwitness";
|
|
183
183
|
}, "schema"> & {
|
|
184
184
|
schema: "network.xyo.boundwitness";
|
|
185
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
185
|
+
} = import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
186
186
|
query: string;
|
|
187
187
|
resultSet?: string | undefined;
|
|
188
188
|
schema: "network.xyo.boundwitness";
|
|
189
189
|
}, "schema"> & {
|
|
190
190
|
schema: "network.xyo.boundwitness";
|
|
191
|
-
}, TConf_1 extends import("@xyo-network/payload-model").SchemaFields &
|
|
191
|
+
}, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & {
|
|
192
192
|
accountDerivationPath?: string | undefined;
|
|
193
193
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
194
194
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -206,7 +206,7 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
206
206
|
readonly timestamp?: boolean | undefined;
|
|
207
207
|
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
208
208
|
schema: "network.xyo.module.config";
|
|
209
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
209
|
+
} = import("@xyo-network/payload-model").SchemaFields & {
|
|
210
210
|
accountDerivationPath?: string | undefined;
|
|
211
211
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
212
212
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -224,9 +224,9 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
|
|
|
224
224
|
readonly timestamp?: boolean | undefined;
|
|
225
225
|
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
226
226
|
schema: "network.xyo.module.config";
|
|
227
|
-
}>(query: T_1, payloads?:
|
|
227
|
+
}>(query: T_1, payloads?: {
|
|
228
228
|
schema: string;
|
|
229
|
-
}
|
|
229
|
+
}[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xyo-network/promise").Promisable<boolean>;
|
|
230
230
|
start?: (() => import("@xyo-network/promise").Promisable<boolean>) | undefined;
|
|
231
231
|
stop?: (() => import("@xyo-network/promise").Promisable<boolean>) | undefined;
|
|
232
232
|
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OptionalId, WithId, WithoutId } from 'mongodb';
|
|
2
2
|
export declare const removeId: <T extends {
|
|
3
3
|
schema: string;
|
|
4
|
-
}
|
|
4
|
+
} = {
|
|
5
5
|
schema: string;
|
|
6
|
-
}
|
|
6
|
+
}>(payload: T | WithId<T> | WithoutId<T> | OptionalId<T>) => WithoutId<T>;
|
|
7
7
|
//# sourceMappingURL=removeId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeId.d.ts","sourceRoot":"","sources":["../../../src/util/removeId.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEvD,eAAO,MAAM,QAAQ;;;;
|
|
1
|
+
{"version":3,"file":"removeId.d.ts","sourceRoot":"","sources":["../../../src/util/removeId.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEvD,eAAO,MAAM,QAAQ;;;;yEAIpB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OptionalId, WithId, WithoutId } from 'mongodb';
|
|
2
2
|
export declare const removeId: <T extends {
|
|
3
3
|
schema: string;
|
|
4
|
-
}
|
|
4
|
+
} = {
|
|
5
5
|
schema: string;
|
|
6
|
-
}
|
|
6
|
+
}>(payload: T | WithId<T> | WithoutId<T> | OptionalId<T>) => WithoutId<T>;
|
|
7
7
|
//# sourceMappingURL=removeId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeId.d.ts","sourceRoot":"","sources":["../../../src/util/removeId.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEvD,eAAO,MAAM,QAAQ;;;;
|
|
1
|
+
{"version":3,"file":"removeId.d.ts","sourceRoot":"","sources":["../../../src/util/removeId.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEvD,eAAO,MAAM,QAAQ;;;;yEAIpB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OptionalId, WithId, WithoutId } from 'mongodb';
|
|
2
2
|
export declare const removeId: <T extends {
|
|
3
3
|
schema: string;
|
|
4
|
-
}
|
|
4
|
+
} = {
|
|
5
5
|
schema: string;
|
|
6
|
-
}
|
|
6
|
+
}>(payload: T | WithId<T> | WithoutId<T> | OptionalId<T>) => WithoutId<T>;
|
|
7
7
|
//# sourceMappingURL=removeId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeId.d.ts","sourceRoot":"","sources":["../../../src/util/removeId.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEvD,eAAO,MAAM,QAAQ;;;;
|
|
1
|
+
{"version":3,"file":"removeId.d.ts","sourceRoot":"","sources":["../../../src/util/removeId.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEvD,eAAO,MAAM,QAAQ;;;;yEAIpB,CAAA"}
|