@xyo-network/module-abstract-mongodb 2.74.4 → 2.74.5
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/Module.d.mts +235 -12
- package/dist/Module.d.mts.map +1 -1
- package/dist/Module.d.ts +235 -12
- package/dist/Module.d.ts.map +1 -1
- package/dist/config/getBaseMongoSdk.d.mts +5 -0
- package/dist/config/getBaseMongoSdk.d.mts.map +1 -0
- package/dist/config/getBaseMongoSdk.d.ts +5 -0
- package/dist/config/getBaseMongoSdk.d.ts.map +1 -0
- package/dist/config/getMongoDBConfig.d.mts +5 -0
- package/dist/config/getMongoDBConfig.d.mts.map +1 -0
- package/dist/config/getMongoDBConfig.d.ts +5 -0
- package/dist/config/getMongoDBConfig.d.ts.map +1 -0
- package/dist/config/hasMongoDBConfig.d.mts +2 -0
- package/dist/config/hasMongoDBConfig.d.mts.map +1 -0
- package/dist/config/hasMongoDBConfig.d.ts +2 -0
- package/dist/config/hasMongoDBConfig.d.ts.map +1 -0
- package/dist/config/index.d.mts +4 -0
- package/dist/config/index.d.mts.map +1 -0
- package/dist/config/index.d.ts +4 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/docs.json +5013 -20129
- package/dist/index.js +79 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +78 -32
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
- package/src/Module.ts +42 -27
- package/src/config/getBaseMongoSdk.ts +20 -0
- package/src/config/getMongoDBConfig.ts +18 -0
- package/src/config/hasMongoDBConfig.ts +9 -0
- package/src/config/index.ts +3 -0
package/dist/Module.d.mts
CHANGED
|
@@ -1,17 +1,240 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ModuleEventData } from '@xyo-network/module-model';
|
|
1
|
+
import { Module } from '@xyo-network/module-model';
|
|
3
2
|
import { MongoDBModuleParams, MongoDBStorageClassLabels } from '@xyo-network/module-model-mongodb';
|
|
4
|
-
import { BoundWitnessWithMeta } from '@xyo-network/node-core-model';
|
|
3
|
+
import { BoundWitnessWithMeta, PayloadWithMeta } from '@xyo-network/node-core-model';
|
|
5
4
|
import { BaseMongoSdk, BaseMongoSdkConfig } from '@xyo-network/sdk-xyo-mongo-js';
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
export type AnyAbstractModule<TParams extends MongoDBModuleParams = MongoDBModuleParams> = abstract new (...args: any[]) => Module<TParams>;
|
|
6
|
+
export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/core").BaseParamsFields & {
|
|
7
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
8
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
9
|
+
accountDerivationPath?: string | undefined;
|
|
10
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
11
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
12
|
+
readonly name?: string | undefined;
|
|
13
|
+
readonly paging?: Record<string, {
|
|
14
|
+
size?: number | undefined;
|
|
15
|
+
}> | undefined;
|
|
16
|
+
readonly security?: {
|
|
17
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
18
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
19
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
readonly sign?: boolean | undefined;
|
|
22
|
+
readonly storeQueries?: boolean | undefined;
|
|
23
|
+
readonly timestamp?: boolean | undefined;
|
|
24
|
+
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
25
|
+
accountDerivationPath?: string | undefined;
|
|
26
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
27
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
28
|
+
readonly name?: string | undefined;
|
|
29
|
+
readonly paging?: Record<string, {
|
|
30
|
+
size?: number | undefined;
|
|
31
|
+
}> | undefined;
|
|
32
|
+
readonly security?: {
|
|
33
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
34
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
35
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
readonly sign?: boolean | undefined;
|
|
38
|
+
readonly storeQueries?: boolean | undefined;
|
|
39
|
+
readonly timestamp?: boolean | undefined;
|
|
40
|
+
} & {
|
|
41
|
+
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
42
|
+
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
43
|
+
schema: "network.xyo.module.mongodb.config";
|
|
44
|
+
}, "schema"> & {
|
|
45
|
+
schema: "network.xyo.module.mongodb.config";
|
|
46
|
+
}, "schema"> & {
|
|
47
|
+
schema: string;
|
|
48
|
+
}, "schema"> & {
|
|
49
|
+
schema: string;
|
|
50
|
+
};
|
|
51
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
52
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
53
|
+
} & {
|
|
54
|
+
boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
55
|
+
jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
|
|
56
|
+
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
57
|
+
} = import("@xyo-network/core").BaseParamsFields & {
|
|
58
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
59
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
60
|
+
accountDerivationPath?: string | undefined;
|
|
61
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
62
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
63
|
+
readonly name?: string | undefined;
|
|
64
|
+
readonly paging?: Record<string, {
|
|
65
|
+
size?: number | undefined;
|
|
66
|
+
}> | undefined;
|
|
67
|
+
readonly security?: {
|
|
68
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
69
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
70
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
readonly sign?: boolean | undefined;
|
|
73
|
+
readonly storeQueries?: boolean | undefined;
|
|
74
|
+
readonly timestamp?: boolean | undefined;
|
|
75
|
+
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
76
|
+
accountDerivationPath?: string | undefined;
|
|
77
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
78
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
79
|
+
readonly name?: string | undefined;
|
|
80
|
+
readonly paging?: Record<string, {
|
|
81
|
+
size?: number | undefined;
|
|
82
|
+
}> | undefined;
|
|
83
|
+
readonly security?: {
|
|
84
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
85
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
86
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
readonly sign?: boolean | undefined;
|
|
89
|
+
readonly storeQueries?: boolean | undefined;
|
|
90
|
+
readonly timestamp?: boolean | undefined;
|
|
91
|
+
} & {
|
|
92
|
+
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
93
|
+
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
94
|
+
schema: "network.xyo.module.mongodb.config";
|
|
95
|
+
}, "schema"> & {
|
|
96
|
+
schema: "network.xyo.module.mongodb.config";
|
|
97
|
+
}, "schema"> & {
|
|
98
|
+
schema: string;
|
|
99
|
+
}, "schema"> & {
|
|
100
|
+
schema: string;
|
|
101
|
+
};
|
|
102
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
103
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
104
|
+
} & {
|
|
105
|
+
boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
106
|
+
jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
|
|
107
|
+
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
108
|
+
}, TModule extends AnyAbstractModule<TParams> = AnyAbstractModule<TParams>>(ModuleBase: TModule) => ((abstract new (...args: any[]) => {
|
|
109
|
+
_boundWitnessSdk: BaseMongoSdk<BoundWitnessWithMeta> | undefined;
|
|
110
|
+
_payloadSdk: BaseMongoSdk<PayloadWithMeta> | undefined;
|
|
111
|
+
readonly boundWitnessSdkConfig: BaseMongoSdkConfig;
|
|
112
|
+
readonly boundWitnesses: BaseMongoSdk<BoundWitnessWithMeta>;
|
|
113
|
+
readonly jobQueue: import("@xyo-network/node-core-model").JobQueue;
|
|
114
|
+
readonly payloadSdkConfig: BaseMongoSdkConfig;
|
|
115
|
+
readonly payloads: BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/node-core-model").PayloadMetaBase & {
|
|
14
116
|
schema: string;
|
|
15
117
|
}>;
|
|
16
|
-
|
|
118
|
+
address: string;
|
|
119
|
+
config: TParams["config"];
|
|
120
|
+
params: TParams;
|
|
121
|
+
previousHash: () => import("@xyo-network/promise").Promisable<string | undefined>;
|
|
122
|
+
queries: string[];
|
|
123
|
+
query: <T extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
124
|
+
query: string;
|
|
125
|
+
resultSet?: string | undefined;
|
|
126
|
+
schema: "network.xyo.boundwitness";
|
|
127
|
+
}, "schema"> & {
|
|
128
|
+
schema: "network.xyo.boundwitness";
|
|
129
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
130
|
+
query: string;
|
|
131
|
+
resultSet?: string | undefined;
|
|
132
|
+
schema: "network.xyo.boundwitness";
|
|
133
|
+
}, "schema"> & {
|
|
134
|
+
schema: "network.xyo.boundwitness";
|
|
135
|
+
}, TConf extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
136
|
+
accountDerivationPath?: string | undefined;
|
|
137
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
138
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
139
|
+
readonly name?: string | undefined;
|
|
140
|
+
readonly paging?: Record<string, {
|
|
141
|
+
size?: number | undefined;
|
|
142
|
+
}> | undefined;
|
|
143
|
+
readonly security?: {
|
|
144
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
145
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
146
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
readonly sign?: boolean | undefined;
|
|
149
|
+
readonly storeQueries?: boolean | undefined;
|
|
150
|
+
readonly timestamp?: boolean | undefined;
|
|
151
|
+
} & {
|
|
152
|
+
schema: "network.xyo.module.config";
|
|
153
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
154
|
+
accountDerivationPath?: string | undefined;
|
|
155
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
156
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
157
|
+
readonly name?: string | undefined;
|
|
158
|
+
readonly paging?: Record<string, {
|
|
159
|
+
size?: number | undefined;
|
|
160
|
+
}> | undefined;
|
|
161
|
+
readonly security?: {
|
|
162
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
163
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
164
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
165
|
+
} | undefined;
|
|
166
|
+
readonly sign?: boolean | undefined;
|
|
167
|
+
readonly storeQueries?: boolean | undefined;
|
|
168
|
+
readonly timestamp?: boolean | undefined;
|
|
169
|
+
} & {
|
|
170
|
+
schema: "network.xyo.module.config";
|
|
171
|
+
}>(query: T, payloads?: ({
|
|
172
|
+
schema: string;
|
|
173
|
+
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xyo-network/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
|
|
174
|
+
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
175
|
+
query: string;
|
|
176
|
+
resultSet?: string | undefined;
|
|
177
|
+
schema: "network.xyo.boundwitness";
|
|
178
|
+
}, "schema"> & {
|
|
179
|
+
schema: "network.xyo.boundwitness";
|
|
180
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
181
|
+
query: string;
|
|
182
|
+
resultSet?: string | undefined;
|
|
183
|
+
schema: "network.xyo.boundwitness";
|
|
184
|
+
}, "schema"> & {
|
|
185
|
+
schema: "network.xyo.boundwitness";
|
|
186
|
+
}, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
187
|
+
accountDerivationPath?: string | undefined;
|
|
188
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
189
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
190
|
+
readonly name?: string | undefined;
|
|
191
|
+
readonly paging?: Record<string, {
|
|
192
|
+
size?: number | undefined;
|
|
193
|
+
}> | undefined;
|
|
194
|
+
readonly security?: {
|
|
195
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
196
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
197
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
198
|
+
} | undefined;
|
|
199
|
+
readonly sign?: boolean | undefined;
|
|
200
|
+
readonly storeQueries?: boolean | undefined;
|
|
201
|
+
readonly timestamp?: boolean | undefined;
|
|
202
|
+
} & {
|
|
203
|
+
schema: "network.xyo.module.config";
|
|
204
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
205
|
+
accountDerivationPath?: string | undefined;
|
|
206
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
207
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
208
|
+
readonly name?: string | undefined;
|
|
209
|
+
readonly paging?: Record<string, {
|
|
210
|
+
size?: number | undefined;
|
|
211
|
+
}> | undefined;
|
|
212
|
+
readonly security?: {
|
|
213
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
214
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
215
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
216
|
+
} | undefined;
|
|
217
|
+
readonly sign?: boolean | undefined;
|
|
218
|
+
readonly storeQueries?: boolean | undefined;
|
|
219
|
+
readonly timestamp?: boolean | undefined;
|
|
220
|
+
} & {
|
|
221
|
+
schema: "network.xyo.module.config";
|
|
222
|
+
}>(query: T_1, payloads?: ({
|
|
223
|
+
schema: string;
|
|
224
|
+
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xyo-network/promise").Promisable<boolean>;
|
|
225
|
+
start?: (() => import("@xyo-network/promise").Promisable<boolean>) | undefined;
|
|
226
|
+
stop?: (() => import("@xyo-network/promise").Promisable<boolean>) | undefined;
|
|
227
|
+
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
228
|
+
clearListeners(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): void;
|
|
229
|
+
emit<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
230
|
+
emitSerial<TEventName_1 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName_1, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName_1]): Promise<void>;
|
|
231
|
+
listenerCount(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): number;
|
|
232
|
+
off<TEventName_2 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName_2 | TEventName_2[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_2]>): void;
|
|
233
|
+
offAny(listener: Promise<void> | import("@xyo-network/module-events").EventAnyListener<import("@xyo-network/module-events").EventArgs>): void;
|
|
234
|
+
on<TEventName_3 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName_3 | TEventName_3[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_3]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
235
|
+
onAny(listener: import("@xyo-network/module-events").EventAnyListener<import("@xyo-network/module-events").EventArgs>): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
236
|
+
once<TEventName_4 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName_4, listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_4]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
237
|
+
}) & {
|
|
238
|
+
labels: MongoDBStorageClassLabels;
|
|
239
|
+
}) & TModule;
|
|
17
240
|
//# sourceMappingURL=Module.d.ts.map
|
package/dist/Module.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../src/Module.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../src/Module.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAiB,mBAAmB,EAAuB,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AACtI,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACpF,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAMhF,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,mBAAmB,GAAG,mBAAmB,IAAI,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC,OAAO,CAAC,CAAA;AAE3I,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6HAFmF,GAAG,EAAE;sBAWjG,aAAa,oBAAoB,CAAC,GAAG,SAAS;iBACnD,aAAa,eAAe,CAAC,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA+BzD,CAAA"}
|
package/dist/Module.d.ts
CHANGED
|
@@ -1,17 +1,240 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ModuleEventData } from '@xyo-network/module-model';
|
|
1
|
+
import { Module } from '@xyo-network/module-model';
|
|
3
2
|
import { MongoDBModuleParams, MongoDBStorageClassLabels } from '@xyo-network/module-model-mongodb';
|
|
4
|
-
import { BoundWitnessWithMeta } from '@xyo-network/node-core-model';
|
|
3
|
+
import { BoundWitnessWithMeta, PayloadWithMeta } from '@xyo-network/node-core-model';
|
|
5
4
|
import { BaseMongoSdk, BaseMongoSdkConfig } from '@xyo-network/sdk-xyo-mongo-js';
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
export type AnyAbstractModule<TParams extends MongoDBModuleParams = MongoDBModuleParams> = abstract new (...args: any[]) => Module<TParams>;
|
|
6
|
+
export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/core").BaseParamsFields & {
|
|
7
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
8
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
9
|
+
accountDerivationPath?: string | undefined;
|
|
10
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
11
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
12
|
+
readonly name?: string | undefined;
|
|
13
|
+
readonly paging?: Record<string, {
|
|
14
|
+
size?: number | undefined;
|
|
15
|
+
}> | undefined;
|
|
16
|
+
readonly security?: {
|
|
17
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
18
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
19
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
readonly sign?: boolean | undefined;
|
|
22
|
+
readonly storeQueries?: boolean | undefined;
|
|
23
|
+
readonly timestamp?: boolean | undefined;
|
|
24
|
+
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
25
|
+
accountDerivationPath?: string | undefined;
|
|
26
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
27
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
28
|
+
readonly name?: string | undefined;
|
|
29
|
+
readonly paging?: Record<string, {
|
|
30
|
+
size?: number | undefined;
|
|
31
|
+
}> | undefined;
|
|
32
|
+
readonly security?: {
|
|
33
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
34
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
35
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
readonly sign?: boolean | undefined;
|
|
38
|
+
readonly storeQueries?: boolean | undefined;
|
|
39
|
+
readonly timestamp?: boolean | undefined;
|
|
40
|
+
} & {
|
|
41
|
+
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
42
|
+
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
43
|
+
schema: "network.xyo.module.mongodb.config";
|
|
44
|
+
}, "schema"> & {
|
|
45
|
+
schema: "network.xyo.module.mongodb.config";
|
|
46
|
+
}, "schema"> & {
|
|
47
|
+
schema: string;
|
|
48
|
+
}, "schema"> & {
|
|
49
|
+
schema: string;
|
|
50
|
+
};
|
|
51
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
52
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
53
|
+
} & {
|
|
54
|
+
boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
55
|
+
jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
|
|
56
|
+
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
57
|
+
} = import("@xyo-network/core").BaseParamsFields & {
|
|
58
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
59
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
60
|
+
accountDerivationPath?: string | undefined;
|
|
61
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
62
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
63
|
+
readonly name?: string | undefined;
|
|
64
|
+
readonly paging?: Record<string, {
|
|
65
|
+
size?: number | undefined;
|
|
66
|
+
}> | undefined;
|
|
67
|
+
readonly security?: {
|
|
68
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
69
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
70
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
readonly sign?: boolean | undefined;
|
|
73
|
+
readonly storeQueries?: boolean | undefined;
|
|
74
|
+
readonly timestamp?: boolean | undefined;
|
|
75
|
+
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
76
|
+
accountDerivationPath?: string | undefined;
|
|
77
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
78
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
79
|
+
readonly name?: string | undefined;
|
|
80
|
+
readonly paging?: Record<string, {
|
|
81
|
+
size?: number | undefined;
|
|
82
|
+
}> | undefined;
|
|
83
|
+
readonly security?: {
|
|
84
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
85
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
86
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
readonly sign?: boolean | undefined;
|
|
89
|
+
readonly storeQueries?: boolean | undefined;
|
|
90
|
+
readonly timestamp?: boolean | undefined;
|
|
91
|
+
} & {
|
|
92
|
+
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
93
|
+
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
94
|
+
schema: "network.xyo.module.mongodb.config";
|
|
95
|
+
}, "schema"> & {
|
|
96
|
+
schema: "network.xyo.module.mongodb.config";
|
|
97
|
+
}, "schema"> & {
|
|
98
|
+
schema: string;
|
|
99
|
+
}, "schema"> & {
|
|
100
|
+
schema: string;
|
|
101
|
+
};
|
|
102
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
103
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
104
|
+
} & {
|
|
105
|
+
boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
106
|
+
jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
|
|
107
|
+
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
108
|
+
}, TModule extends AnyAbstractModule<TParams> = AnyAbstractModule<TParams>>(ModuleBase: TModule) => ((abstract new (...args: any[]) => {
|
|
109
|
+
_boundWitnessSdk: BaseMongoSdk<BoundWitnessWithMeta> | undefined;
|
|
110
|
+
_payloadSdk: BaseMongoSdk<PayloadWithMeta> | undefined;
|
|
111
|
+
readonly boundWitnessSdkConfig: BaseMongoSdkConfig;
|
|
112
|
+
readonly boundWitnesses: BaseMongoSdk<BoundWitnessWithMeta>;
|
|
113
|
+
readonly jobQueue: import("@xyo-network/node-core-model").JobQueue;
|
|
114
|
+
readonly payloadSdkConfig: BaseMongoSdkConfig;
|
|
115
|
+
readonly payloads: BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/node-core-model").PayloadMetaBase & {
|
|
14
116
|
schema: string;
|
|
15
117
|
}>;
|
|
16
|
-
|
|
118
|
+
address: string;
|
|
119
|
+
config: TParams["config"];
|
|
120
|
+
params: TParams;
|
|
121
|
+
previousHash: () => import("@xyo-network/promise").Promisable<string | undefined>;
|
|
122
|
+
queries: string[];
|
|
123
|
+
query: <T extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
124
|
+
query: string;
|
|
125
|
+
resultSet?: string | undefined;
|
|
126
|
+
schema: "network.xyo.boundwitness";
|
|
127
|
+
}, "schema"> & {
|
|
128
|
+
schema: "network.xyo.boundwitness";
|
|
129
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
130
|
+
query: string;
|
|
131
|
+
resultSet?: string | undefined;
|
|
132
|
+
schema: "network.xyo.boundwitness";
|
|
133
|
+
}, "schema"> & {
|
|
134
|
+
schema: "network.xyo.boundwitness";
|
|
135
|
+
}, TConf extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
136
|
+
accountDerivationPath?: string | undefined;
|
|
137
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
138
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
139
|
+
readonly name?: string | undefined;
|
|
140
|
+
readonly paging?: Record<string, {
|
|
141
|
+
size?: number | undefined;
|
|
142
|
+
}> | undefined;
|
|
143
|
+
readonly security?: {
|
|
144
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
145
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
146
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
readonly sign?: boolean | undefined;
|
|
149
|
+
readonly storeQueries?: boolean | undefined;
|
|
150
|
+
readonly timestamp?: boolean | undefined;
|
|
151
|
+
} & {
|
|
152
|
+
schema: "network.xyo.module.config";
|
|
153
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
154
|
+
accountDerivationPath?: string | undefined;
|
|
155
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
156
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
157
|
+
readonly name?: string | undefined;
|
|
158
|
+
readonly paging?: Record<string, {
|
|
159
|
+
size?: number | undefined;
|
|
160
|
+
}> | undefined;
|
|
161
|
+
readonly security?: {
|
|
162
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
163
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
164
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
165
|
+
} | undefined;
|
|
166
|
+
readonly sign?: boolean | undefined;
|
|
167
|
+
readonly storeQueries?: boolean | undefined;
|
|
168
|
+
readonly timestamp?: boolean | undefined;
|
|
169
|
+
} & {
|
|
170
|
+
schema: "network.xyo.module.config";
|
|
171
|
+
}>(query: T, payloads?: ({
|
|
172
|
+
schema: string;
|
|
173
|
+
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xyo-network/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
|
|
174
|
+
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
175
|
+
query: string;
|
|
176
|
+
resultSet?: string | undefined;
|
|
177
|
+
schema: "network.xyo.boundwitness";
|
|
178
|
+
}, "schema"> & {
|
|
179
|
+
schema: "network.xyo.boundwitness";
|
|
180
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
181
|
+
query: string;
|
|
182
|
+
resultSet?: string | undefined;
|
|
183
|
+
schema: "network.xyo.boundwitness";
|
|
184
|
+
}, "schema"> & {
|
|
185
|
+
schema: "network.xyo.boundwitness";
|
|
186
|
+
}, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
187
|
+
accountDerivationPath?: string | undefined;
|
|
188
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
189
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
190
|
+
readonly name?: string | undefined;
|
|
191
|
+
readonly paging?: Record<string, {
|
|
192
|
+
size?: number | undefined;
|
|
193
|
+
}> | undefined;
|
|
194
|
+
readonly security?: {
|
|
195
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
196
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
197
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
198
|
+
} | undefined;
|
|
199
|
+
readonly sign?: boolean | undefined;
|
|
200
|
+
readonly storeQueries?: boolean | undefined;
|
|
201
|
+
readonly timestamp?: boolean | undefined;
|
|
202
|
+
} & {
|
|
203
|
+
schema: "network.xyo.module.config";
|
|
204
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
205
|
+
accountDerivationPath?: string | undefined;
|
|
206
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
207
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
208
|
+
readonly name?: string | undefined;
|
|
209
|
+
readonly paging?: Record<string, {
|
|
210
|
+
size?: number | undefined;
|
|
211
|
+
}> | undefined;
|
|
212
|
+
readonly security?: {
|
|
213
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
214
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
215
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
216
|
+
} | undefined;
|
|
217
|
+
readonly sign?: boolean | undefined;
|
|
218
|
+
readonly storeQueries?: boolean | undefined;
|
|
219
|
+
readonly timestamp?: boolean | undefined;
|
|
220
|
+
} & {
|
|
221
|
+
schema: "network.xyo.module.config";
|
|
222
|
+
}>(query: T_1, payloads?: ({
|
|
223
|
+
schema: string;
|
|
224
|
+
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xyo-network/promise").Promisable<boolean>;
|
|
225
|
+
start?: (() => import("@xyo-network/promise").Promisable<boolean>) | undefined;
|
|
226
|
+
stop?: (() => import("@xyo-network/promise").Promisable<boolean>) | undefined;
|
|
227
|
+
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
228
|
+
clearListeners(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): void;
|
|
229
|
+
emit<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
230
|
+
emitSerial<TEventName_1 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName_1, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName_1]): Promise<void>;
|
|
231
|
+
listenerCount(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): number;
|
|
232
|
+
off<TEventName_2 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName_2 | TEventName_2[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_2]>): void;
|
|
233
|
+
offAny(listener: Promise<void> | import("@xyo-network/module-events").EventAnyListener<import("@xyo-network/module-events").EventArgs>): void;
|
|
234
|
+
on<TEventName_3 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName_3 | TEventName_3[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_3]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
235
|
+
onAny(listener: import("@xyo-network/module-events").EventAnyListener<import("@xyo-network/module-events").EventArgs>): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
236
|
+
once<TEventName_4 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName_4, listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_4]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
237
|
+
}) & {
|
|
238
|
+
labels: MongoDBStorageClassLabels;
|
|
239
|
+
}) & TModule;
|
|
17
240
|
//# sourceMappingURL=Module.d.ts.map
|
package/dist/Module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../src/Module.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../src/Module.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAiB,mBAAmB,EAAuB,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AACtI,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACpF,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAMhF,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,mBAAmB,GAAG,mBAAmB,IAAI,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC,OAAO,CAAC,CAAA;AAE3I,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6HAFmF,GAAG,EAAE;sBAWjG,aAAa,oBAAoB,CAAC,GAAG,SAAS;iBACnD,aAAa,eAAe,CAAC,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA+BzD,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseMongoSdk, BaseMongoSdkPrivateConfig } from '@xyo-network/sdk-xyo-mongo-js';
|
|
2
|
+
import { Document } from 'mongodb';
|
|
3
|
+
export declare const getBaseMongoSdkPrivateConfig: () => BaseMongoSdkPrivateConfig;
|
|
4
|
+
export declare const getBaseMongoSdk: <T extends Document>(collection: string) => BaseMongoSdk<T>;
|
|
5
|
+
//# sourceMappingURL=getBaseMongoSdk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBaseMongoSdk.d.ts","sourceRoot":"","sources":["../../src/config/getBaseMongoSdk.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAIlC,eAAO,MAAM,4BAA4B,QAAO,yBAS/C,CAAA;AAED,eAAO,MAAM,eAAe,mCAAoC,MAAM,oBAErE,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseMongoSdk, BaseMongoSdkPrivateConfig } from '@xyo-network/sdk-xyo-mongo-js';
|
|
2
|
+
import { Document } from 'mongodb';
|
|
3
|
+
export declare const getBaseMongoSdkPrivateConfig: () => BaseMongoSdkPrivateConfig;
|
|
4
|
+
export declare const getBaseMongoSdk: <T extends Document>(collection: string) => BaseMongoSdk<T>;
|
|
5
|
+
//# sourceMappingURL=getBaseMongoSdk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBaseMongoSdk.d.ts","sourceRoot":"","sources":["../../src/config/getBaseMongoSdk.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAIlC,eAAO,MAAM,4BAA4B,QAAO,yBAS/C,CAAA;AAED,eAAO,MAAM,eAAe,mCAAoC,MAAM,oBAErE,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MongoDbConnectionStringEnvVar = 'MONGO_CONNECTION_STRING';
|
|
2
|
+
export type MongoDbEnvVars = 'MONGO_DATABASE' | 'MONGO_DOMAIN' | 'MONGO_PASSWORD' | 'MONGO_USERNAME';
|
|
3
|
+
export type MongoEnv = Record<MongoDbEnvVars | MongoDbConnectionStringEnvVar, string | undefined>;
|
|
4
|
+
export declare const getMongoDBConfig: () => MongoEnv;
|
|
5
|
+
//# sourceMappingURL=getMongoDBConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMongoDBConfig.d.ts","sourceRoot":"","sources":["../../src/config/getMongoDBConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAA;AACrE,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG,cAAc,GAAG,gBAAgB,GAAG,gBAAgB,CAAA;AAEpG,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,cAAc,GAAG,6BAA6B,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;AAEjG,eAAO,MAAM,gBAAgB,QAAO,QAYnC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MongoDbConnectionStringEnvVar = 'MONGO_CONNECTION_STRING';
|
|
2
|
+
export type MongoDbEnvVars = 'MONGO_DATABASE' | 'MONGO_DOMAIN' | 'MONGO_PASSWORD' | 'MONGO_USERNAME';
|
|
3
|
+
export type MongoEnv = Record<MongoDbEnvVars | MongoDbConnectionStringEnvVar, string | undefined>;
|
|
4
|
+
export declare const getMongoDBConfig: () => MongoEnv;
|
|
5
|
+
//# sourceMappingURL=getMongoDBConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMongoDBConfig.d.ts","sourceRoot":"","sources":["../../src/config/getMongoDBConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAA;AACrE,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG,cAAc,GAAG,gBAAgB,GAAG,gBAAgB,CAAA;AAEpG,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,cAAc,GAAG,6BAA6B,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;AAEjG,eAAO,MAAM,gBAAgB,QAAO,QAYnC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasMongoDBConfig.d.ts","sourceRoot":"","sources":["../../src/config/hasMongoDBConfig.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,QAAO,OAInC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasMongoDBConfig.d.ts","sourceRoot":"","sources":["../../src/config/hasMongoDBConfig.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,QAAO,OAInC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA"}
|