@memberjunction/connector-mongodb 1.0.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,15 @@
1
+ import { BaseDocumentDataSourceConnector } from '@memberjunction/integration-connectors';
2
+ import '@memberjunction/external-data-source-mongodb';
3
+ /**
4
+ * MongoDB ingestion connector — a **thin nominal leaf**. It carries no logic: all
5
+ * connect / introspect / read is delegated to the shared EDS MongoDB driver ('MongoExternalDriver'),
6
+ * and incremental sync + record assembly live in {@link BaseDocumentDataSourceConnector}. The connection binds to a
7
+ * shared `MJ: External Data Sources` row via `CompanyIntegration.Configuration.externalDataSourceID`
8
+ * (credentials + host on that EDS row, via CredentialEngine). Exists so MongoDB is a first-class,
9
+ * discoverable Integration consistent with every other connector.
10
+ *
11
+ * Requires @memberjunction/* >= 5.46.0 (the EDS-consuming connector heart + the MongoExternalDriver driver).
12
+ */
13
+ export declare class MongoConnector extends BaseDocumentDataSourceConnector {
14
+ get IntegrationName(): string;
15
+ }
@@ -0,0 +1,32 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { RegisterClass } from '@memberjunction/global';
8
+ import { BaseIntegrationConnector } from '@memberjunction/integration-engine';
9
+ import { BaseDocumentDataSourceConnector } from '@memberjunction/integration-connectors';
10
+ // Side-effect import: registers the MongoDB EDS driver ('MongoExternalDriver') with the MJGlobal
11
+ // ClassFactory so this connector can resolve it at runtime via ExternalDataSourceRouter.
12
+ import '@memberjunction/external-data-source-mongodb';
13
+ /**
14
+ * MongoDB ingestion connector — a **thin nominal leaf**. It carries no logic: all
15
+ * connect / introspect / read is delegated to the shared EDS MongoDB driver ('MongoExternalDriver'),
16
+ * and incremental sync + record assembly live in {@link BaseDocumentDataSourceConnector}. The connection binds to a
17
+ * shared `MJ: External Data Sources` row via `CompanyIntegration.Configuration.externalDataSourceID`
18
+ * (credentials + host on that EDS row, via CredentialEngine). Exists so MongoDB is a first-class,
19
+ * discoverable Integration consistent with every other connector.
20
+ *
21
+ * Requires @memberjunction/* >= 5.46.0 (the EDS-consuming connector heart + the MongoExternalDriver driver).
22
+ */
23
+ let MongoConnector = class MongoConnector extends BaseDocumentDataSourceConnector {
24
+ get IntegrationName() {
25
+ return 'MongoDB';
26
+ }
27
+ };
28
+ MongoConnector = __decorate([
29
+ RegisterClass(BaseIntegrationConnector, 'MongoConnector')
30
+ ], MongoConnector);
31
+ export { MongoConnector };
32
+ //# sourceMappingURL=MongoConnector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MongoConnector.js","sourceRoot":"","sources":["../src/MongoConnector.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AACzF,iGAAiG;AACjG,yFAAyF;AACzF,OAAO,8CAA8C,CAAC;AAEtD;;;;;;;;;GASG;AAEI,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,+BAA+B;IAC/D,IAAoB,eAAe;QAC/B,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ,CAAA;AAJY,cAAc;IAD1B,aAAa,CAAC,wBAAwB,EAAE,gBAAgB,CAAC;GAC7C,cAAc,CAI1B"}
@@ -0,0 +1,5 @@
1
+ export * from './MongoConnector.js';
2
+ /** Open App bootstrap entry: importing this module ran the connector's @RegisterClass decorator (and the
3
+ * EDS driver's, via the side-effect import); this no-op satisfies the loader's required startupExport
4
+ * and forces the import at MJAPI boot. */
5
+ export declare function registerConnector(): void;
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ export * from './MongoConnector.js';
2
+ /** Open App bootstrap entry: importing this module ran the connector's @RegisterClass decorator (and the
3
+ * EDS driver's, via the side-effect import); this no-op satisfies the loader's required startupExport
4
+ * and forces the import at MJAPI boot. */
5
+ export function registerConnector() { }
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AAEpC;;2CAE2C;AAC3C,MAAM,UAAU,iBAAiB,KAAiD,CAAC"}
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@memberjunction/connector-mongodb",
3
+ "version": "1.0.0",
4
+ "description": "MemberJunction MongoDB connector (External Data Source ingestion).",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "/dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "tsc && tsc-alias -f",
13
+ "test": "vitest run --passWithNoTests"
14
+ },
15
+ "author": "MemberJunction.com",
16
+ "license": "ISC",
17
+ "peerDependencies": {
18
+ "@memberjunction/core": ">=5.46.0 <6.0.0",
19
+ "@memberjunction/core-entities": ">=5.46.0 <6.0.0",
20
+ "@memberjunction/global": ">=5.46.0 <6.0.0",
21
+ "@memberjunction/integration-engine": ">=5.46.0 <6.0.0",
22
+ "@memberjunction/integration-connectors": ">=5.46.0 <6.0.0",
23
+ "@memberjunction/external-data-sources": ">=5.46.0 <6.0.0",
24
+ "@memberjunction/external-data-source-mongodb": ">=5.46.0 <6.0.0"
25
+ },
26
+ "devDependencies": {
27
+ "@types/node": "24.10.11",
28
+ "tsc-alias": "^1.8.16",
29
+ "typescript": "^5.9.3",
30
+ "vitest": "^4.0.18"
31
+ },
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/MemberJunction/Integrations"
35
+ }
36
+ }