@zapier/zapier-sdk 0.34.0 → 0.34.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @zapier/zapier-sdk
2
2
 
3
+ ## 0.34.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 6c5bba9: Fix fetch type for app proxy without generated types.
8
+
3
9
  ## 0.34.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -5580,7 +5580,7 @@ function getCpuTime() {
5580
5580
  }
5581
5581
 
5582
5582
  // src/plugins/eventEmission/builders.ts
5583
- var SDK_VERSION = "0.34.0";
5583
+ var SDK_VERSION = "0.34.1";
5584
5584
  function createBaseEvent(context = {}) {
5585
5585
  return {
5586
5586
  event_id: generateEventId(),
package/dist/index.d.mts CHANGED
@@ -1445,18 +1445,18 @@ interface BaseActionTypeProxy {
1445
1445
  items(): AsyncIterable<any>;
1446
1446
  };
1447
1447
  }
1448
- interface FetchActionType {
1449
- fetch: (url: string | URL, init?: RequestInit & {
1450
- connectionId?: ConnectionIdProperty;
1451
- /** @deprecated Use connectionId instead */
1452
- authenticationId?: AuthenticationIdProperty;
1453
- callbackUrl?: string;
1454
- }) => Promise<Response>;
1455
- }
1456
- type ActionTypeProxy = BaseActionTypeProxy & Partial<FetchActionType>;
1457
- interface AppProxy {
1448
+ type ActionTypeProxy = BaseActionTypeProxy;
1449
+ type AppFetchFn = (url: string | URL, init?: RequestInit & {
1450
+ connectionId?: ConnectionIdProperty;
1451
+ /** @deprecated Use connectionId instead */
1452
+ authenticationId?: AuthenticationIdProperty;
1453
+ callbackUrl?: string;
1454
+ }) => Promise<Response>;
1455
+ type AppProxy = {
1458
1456
  [type: string]: ActionTypeProxy;
1459
- }
1457
+ } & {
1458
+ fetch: AppFetchFn;
1459
+ };
1460
1460
  interface AppFactory {
1461
1461
  (options: AppFactoryInput): AppProxy;
1462
1462
  }
package/dist/index.mjs CHANGED
@@ -5558,7 +5558,7 @@ function getCpuTime() {
5558
5558
  }
5559
5559
 
5560
5560
  // src/plugins/eventEmission/builders.ts
5561
- var SDK_VERSION = "0.34.0";
5561
+ var SDK_VERSION = "0.34.1";
5562
5562
  function createBaseEvent(context = {}) {
5563
5563
  return {
5564
5564
  event_id: generateEventId(),
@@ -23,18 +23,18 @@ interface BaseActionTypeProxy {
23
23
  items(): AsyncIterable<any>;
24
24
  };
25
25
  }
26
- interface FetchActionType {
27
- fetch: (url: string | URL, init?: RequestInit & {
28
- connectionId?: ConnectionIdProperty;
29
- /** @deprecated Use connectionId instead */
30
- authenticationId?: AuthenticationIdProperty;
31
- callbackUrl?: string;
32
- }) => Promise<Response>;
33
- }
34
- type ActionTypeProxy = BaseActionTypeProxy & Partial<FetchActionType>;
35
- interface AppProxy {
26
+ type ActionTypeProxy = BaseActionTypeProxy;
27
+ type AppFetchFn = (url: string | URL, init?: RequestInit & {
28
+ connectionId?: ConnectionIdProperty;
29
+ /** @deprecated Use connectionId instead */
30
+ authenticationId?: AuthenticationIdProperty;
31
+ callbackUrl?: string;
32
+ }) => Promise<Response>;
33
+ type AppProxy = {
36
34
  [type: string]: ActionTypeProxy;
37
- }
35
+ } & {
36
+ fetch: AppFetchFn;
37
+ };
38
38
  interface AppFactory {
39
39
  (options: AppFactoryInput): AppProxy;
40
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/apps/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC9B,MAAM,wBAAwB,CAAC;AAEhC,eAAO,MAAM,0BAA0B;;;;;iBAUpC,CAAC;AAGJ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEhF,eAAO,MAAM,qBAA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,mBAAmB,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEjD,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAC;CACpC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "description": "Complete Zapier SDK - combines all Zapier SDK packages",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -46,7 +46,7 @@
46
46
  "tsup": "^8.5.0",
47
47
  "typescript": "^5.8.3",
48
48
  "vitest": "^3.2.3",
49
- "@zapier/zapier-sdk-cli-login": "0.8.2"
49
+ "@zapier/zapier-sdk-cli-login": "0.8.3"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "tsup",