@memberjunction/connector-snowflake 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 { BaseSqlExternalDataSourceConnector } from '@memberjunction/integration-connectors';
2
+ import '@memberjunction/external-data-source-snowflake';
3
+ /**
4
+ * Snowflake ingestion connector — a **thin nominal leaf**. It carries no logic: all
5
+ * connect / introspect / read is delegated to the shared EDS Snowflake driver ('SnowflakeExternalDriver'),
6
+ * and incremental sync + record assembly live in {@link BaseSqlExternalDataSourceConnector}. 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 Snowflake 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 SnowflakeExternalDriver driver).
12
+ */
13
+ export declare class SnowflakeConnector extends BaseSqlExternalDataSourceConnector {
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 { BaseSqlExternalDataSourceConnector } from '@memberjunction/integration-connectors';
10
+ // Side-effect import: registers the Snowflake EDS driver ('SnowflakeExternalDriver') with the MJGlobal
11
+ // ClassFactory so this connector can resolve it at runtime via ExternalDataSourceRouter.
12
+ import '@memberjunction/external-data-source-snowflake';
13
+ /**
14
+ * Snowflake ingestion connector — a **thin nominal leaf**. It carries no logic: all
15
+ * connect / introspect / read is delegated to the shared EDS Snowflake driver ('SnowflakeExternalDriver'),
16
+ * and incremental sync + record assembly live in {@link BaseSqlExternalDataSourceConnector}. 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 Snowflake 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 SnowflakeExternalDriver driver).
22
+ */
23
+ let SnowflakeConnector = class SnowflakeConnector extends BaseSqlExternalDataSourceConnector {
24
+ get IntegrationName() {
25
+ return 'Snowflake';
26
+ }
27
+ };
28
+ SnowflakeConnector = __decorate([
29
+ RegisterClass(BaseIntegrationConnector, 'SnowflakeConnector')
30
+ ], SnowflakeConnector);
31
+ export { SnowflakeConnector };
32
+ //# sourceMappingURL=SnowflakeConnector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SnowflakeConnector.js","sourceRoot":"","sources":["../src/SnowflakeConnector.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,kCAAkC,EAAE,MAAM,wCAAwC,CAAC;AAC5F,uGAAuG;AACvG,yFAAyF;AACzF,OAAO,gDAAgD,CAAC;AAExD;;;;;;;;;GASG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,kCAAkC;IACtE,IAAoB,eAAe;QAC/B,OAAO,WAAW,CAAC;IACvB,CAAC;CACJ,CAAA;AAJY,kBAAkB;IAD9B,aAAa,CAAC,wBAAwB,EAAE,oBAAoB,CAAC;GACjD,kBAAkB,CAI9B"}
@@ -0,0 +1,5 @@
1
+ export * from './SnowflakeConnector.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 './SnowflakeConnector.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,yBAAyB,CAAC;AAExC;;2CAE2C;AAC3C,MAAM,UAAU,iBAAiB,KAAiD,CAAC"}
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@memberjunction/connector-snowflake",
3
+ "version": "1.0.0",
4
+ "description": "MemberJunction Snowflake 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-snowflake": ">=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
+ }