@zapier/zapier-sdk 0.0.1

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,3 @@
1
+ export * from "../../shared-sdk/dist";
2
+ export * from "../../actions-sdk/dist";
3
+ export { createZapierSDK, ZapierSDK, ZapierSDKOptions } from "./sdk";
package/dist/index.js ADDED
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.createZapierSDK = void 0;
18
+ // Export everything from shared and actions
19
+ __exportStar(require("../../shared-sdk/dist"), exports);
20
+ __exportStar(require("../../actions-sdk/dist"), exports);
21
+ // Export the main combined SDK
22
+ var sdk_1 = require("./sdk");
23
+ Object.defineProperty(exports, "createZapierSDK", { enumerable: true, get: function () { return sdk_1.createZapierSDK; } });
package/dist/sdk.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { ActionsSDK } from "../../actions-sdk/dist";
2
+ import { BaseSDKOptions } from "../../shared-sdk/dist";
3
+ export interface ZapierSDK extends ActionsSDK {
4
+ }
5
+ export interface ZapierSDKOptions extends BaseSDKOptions {
6
+ }
7
+ export declare function createZapierSDK(options?: ZapierSDKOptions): ZapierSDK;
package/dist/sdk.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createZapierSDK = createZapierSDK;
4
+ const dist_1 = require("../../actions-sdk/dist");
5
+ function createZapierSDK(options = {}) {
6
+ // Create individual SDKs
7
+ const actionsSDK = (0, dist_1.createActionsSDK)(options);
8
+ // For now, we just return the actions SDK
9
+ // Later we'll combine multiple SDKs here
10
+ return {
11
+ ...actionsSDK,
12
+ // Future SDKs will be spread here:
13
+ // ...workflowsSDK,
14
+ // ...interfacesSDK,
15
+ // ...tablesSDK,
16
+ };
17
+ }
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@zapier/zapier-sdk",
3
+ "version": "0.0.1",
4
+ "description": "Complete Zapier SDK - combines all Zapier SDK packages",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "keywords": [
8
+ "zapier",
9
+ "sdk",
10
+ "integrations",
11
+ "actions",
12
+ "workflows",
13
+ "complete"
14
+ ],
15
+ "author": "",
16
+ "license": "ISC",
17
+ "publishConfig": {
18
+ "access": "restricted"
19
+ },
20
+ "dependencies": {
21
+ "@zapier/actions-sdk": "0.0.1",
22
+ "@zapier/shared-sdk": "0.0.1"
23
+ },
24
+ "devDependencies": {
25
+ "@types/node": "^24.0.1",
26
+ "typescript": "^5.8.3"
27
+ },
28
+ "scripts": {
29
+ "build": "tsc --project tsconfig.build.json",
30
+ "dev": "tsc --watch",
31
+ "typecheck": "tsc --project tsconfig.build.json --noEmit"
32
+ }
33
+ }
package/src/index.ts ADDED
@@ -0,0 +1,6 @@
1
+ // Export everything from shared and actions
2
+ export * from "../../shared-sdk/dist";
3
+ export * from "../../actions-sdk/dist";
4
+
5
+ // Export the main combined SDK
6
+ export { createZapierSDK, ZapierSDK, ZapierSDKOptions } from "./sdk";
package/src/sdk.ts ADDED
@@ -0,0 +1,26 @@
1
+ import { createActionsSDK, ActionsSDK } from "../../actions-sdk/dist";
2
+ import { BaseSDKOptions } from "../../shared-sdk/dist";
3
+
4
+ export interface ZapierSDK extends ActionsSDK {
5
+ // Future SDK namespaces will be added here
6
+ // workflows: WorkflowsSDK
7
+ // interfaces: InterfacesSDK
8
+ // tables: TablesSDK
9
+ }
10
+
11
+ export interface ZapierSDKOptions extends BaseSDKOptions {}
12
+
13
+ export function createZapierSDK(options: ZapierSDKOptions = {}): ZapierSDK {
14
+ // Create individual SDKs
15
+ const actionsSDK = createActionsSDK(options);
16
+
17
+ // For now, we just return the actions SDK
18
+ // Later we'll combine multiple SDKs here
19
+ return {
20
+ ...actionsSDK,
21
+ // Future SDKs will be spread here:
22
+ // ...workflowsSDK,
23
+ // ...interfacesSDK,
24
+ // ...tablesSDK,
25
+ };
26
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "exclude": ["src/**/*.test.ts", "src/**/*.spec.ts"]
4
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "module": "CommonJS",
5
+ "declaration": true,
6
+ "outDir": "./dist",
7
+ "rootDir": "./src",
8
+ "strict": true,
9
+ "noUnusedLocals": true,
10
+ "noUnusedParameters": true,
11
+ "esModuleInterop": true,
12
+ "skipLibCheck": true,
13
+ "forceConsistentCasingInFileNames": true,
14
+ "moduleResolution": "node"
15
+ },
16
+ "include": ["src/**/*"],
17
+ "exclude": ["dist", "node_modules"]
18
+ }