@myapihq/sdk 1.0.17 → 1.0.19

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/funnel.d.ts CHANGED
@@ -17,7 +17,7 @@ export interface VerifyTest {
17
17
  passed: boolean;
18
18
  details: string;
19
19
  }
20
- export declare function createFunnel(apiKey: string, orgId: string, domain: string): Promise<Funnel>;
20
+ export declare function createFunnel(apiKey: string, orgId: string): Promise<Funnel>;
21
21
  export declare function getFunnel(apiKey: string, orgId: string, funnelId: string): Promise<Funnel>;
22
22
  export declare function listFunnels(apiKey: string, orgId: string): Promise<Funnel[]>;
23
23
  export declare function deleteFunnel(apiKey: string, orgId: string, funnelId: string): Promise<void>;
package/dist/funnel.js CHANGED
@@ -8,8 +8,8 @@ exports.pushFunnelPage = pushFunnelPage;
8
8
  exports.verifyFunnel = verifyFunnel;
9
9
  const client_1 = require("./client");
10
10
  const BASE_URL = 'https://api.myfunnelapi.com';
11
- async function createFunnel(apiKey, orgId, domain) {
12
- return (0, client_1.request)('POST', `${BASE_URL}/funnel/orgs/${encodeURIComponent(orgId)}/funnels/create-raw`, apiKey, { domain });
11
+ async function createFunnel(apiKey, orgId) {
12
+ return (0, client_1.request)('POST', `${BASE_URL}/funnel/orgs/${encodeURIComponent(orgId)}/funnels`, apiKey, {});
13
13
  }
14
14
  async function getFunnel(apiKey, orgId, funnelId) {
15
15
  return (0, client_1.request)('GET', `${BASE_URL}/funnel/orgs/${encodeURIComponent(orgId)}/funnels/${encodeURIComponent(funnelId)}`, apiKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myapihq/sdk",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "TypeScript SDK for the MyAPI ecosystem",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/funnel.ts CHANGED
@@ -9,8 +9,8 @@ export interface VerifyResult {
9
9
  }
10
10
  export interface VerifyTest { type: 'link' | 'webhook'; url: string; passed: boolean; details: string }
11
11
 
12
- export async function createFunnel(apiKey: string, orgId: string, domain: string): Promise<Funnel> {
13
- return request('POST', `${BASE_URL}/funnel/orgs/${encodeURIComponent(orgId)}/funnels/create-raw`, apiKey, { domain });
12
+ export async function createFunnel(apiKey: string, orgId: string): Promise<Funnel> {
13
+ return request('POST', `${BASE_URL}/funnel/orgs/${encodeURIComponent(orgId)}/funnels`, apiKey, {});
14
14
  }
15
15
  export async function getFunnel(apiKey: string, orgId: string, funnelId: string): Promise<Funnel> {
16
16
  return request('GET', `${BASE_URL}/funnel/orgs/${encodeURIComponent(orgId)}/funnels/${encodeURIComponent(funnelId)}`, apiKey);