@zapier/zapier-sdk 0.8.3 → 0.9.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.
Files changed (90) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +10 -33
  3. package/dist/index.cjs +346 -219
  4. package/dist/index.d.mts +181 -185
  5. package/dist/index.d.ts +1 -2
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +0 -1
  8. package/dist/index.mjs +343 -218
  9. package/dist/plugins/apps/index.d.ts +4 -0
  10. package/dist/plugins/apps/index.d.ts.map +1 -1
  11. package/dist/plugins/getApp/index.d.ts +2 -7
  12. package/dist/plugins/getApp/index.d.ts.map +1 -1
  13. package/dist/plugins/getApp/index.js +9 -9
  14. package/dist/plugins/getApp/index.test.js +1 -1
  15. package/dist/plugins/getAuthentication/index.test.js +1 -1
  16. package/dist/plugins/listActions/index.d.ts +2 -4
  17. package/dist/plugins/listActions/index.d.ts.map +1 -1
  18. package/dist/plugins/listActions/index.js +1 -1
  19. package/dist/plugins/listActions/index.test.js +4 -4
  20. package/dist/plugins/listApps/index.d.ts +4 -7
  21. package/dist/plugins/listApps/index.d.ts.map +1 -1
  22. package/dist/plugins/listApps/index.js +33 -17
  23. package/dist/plugins/listApps/index.test.js +22 -2
  24. package/dist/plugins/listAuthentications/index.d.ts +2 -4
  25. package/dist/plugins/listAuthentications/index.d.ts.map +1 -1
  26. package/dist/plugins/listAuthentications/index.js +4 -0
  27. package/dist/plugins/listAuthentications/index.test.js +39 -13
  28. package/dist/plugins/listAuthentications/schemas.d.ts +3 -0
  29. package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
  30. package/dist/plugins/listAuthentications/schemas.js +4 -0
  31. package/dist/plugins/manifest/index.d.ts +25 -9
  32. package/dist/plugins/manifest/index.d.ts.map +1 -1
  33. package/dist/plugins/manifest/index.js +239 -67
  34. package/dist/plugins/manifest/index.test.js +426 -171
  35. package/dist/plugins/manifest/schemas.d.ts +5 -1
  36. package/dist/plugins/manifest/schemas.d.ts.map +1 -1
  37. package/dist/plugins/manifest/schemas.js +1 -0
  38. package/dist/sdk.d.ts +5 -11
  39. package/dist/sdk.d.ts.map +1 -1
  40. package/dist/sdk.js +1 -4
  41. package/dist/types/plugin.d.ts +1 -0
  42. package/dist/types/plugin.d.ts.map +1 -1
  43. package/dist/types/sdk.d.ts +6 -3
  44. package/dist/types/sdk.d.ts.map +1 -1
  45. package/dist/utils/domain-utils.d.ts +16 -0
  46. package/dist/utils/domain-utils.d.ts.map +1 -1
  47. package/dist/utils/domain-utils.js +46 -27
  48. package/dist/utils/domain-utils.test.js +157 -3
  49. package/dist/utils/file-utils.d.ts +4 -0
  50. package/dist/utils/file-utils.d.ts.map +1 -0
  51. package/dist/utils/file-utils.js +74 -0
  52. package/dist/utils/file-utils.test.d.ts +2 -0
  53. package/dist/utils/file-utils.test.d.ts.map +1 -0
  54. package/dist/utils/file-utils.test.js +51 -0
  55. package/package.json +1 -1
  56. package/src/index.ts +1 -1
  57. package/src/plugins/apps/index.ts +9 -2
  58. package/src/plugins/getApp/index.test.ts +1 -1
  59. package/src/plugins/getApp/index.ts +12 -14
  60. package/src/plugins/getAuthentication/index.test.ts +1 -1
  61. package/src/plugins/listActions/index.test.ts +8 -7
  62. package/src/plugins/listActions/index.ts +3 -3
  63. package/src/plugins/listApps/index.test.ts +23 -2
  64. package/src/plugins/listApps/index.ts +46 -25
  65. package/src/plugins/listAuthentications/index.test.ts +52 -15
  66. package/src/plugins/listAuthentications/index.ts +7 -2
  67. package/src/plugins/listAuthentications/schemas.ts +4 -0
  68. package/src/plugins/manifest/index.test.ts +503 -197
  69. package/src/plugins/manifest/index.ts +338 -82
  70. package/src/plugins/manifest/schemas.ts +9 -2
  71. package/src/sdk.ts +1 -5
  72. package/src/types/plugin.ts +3 -0
  73. package/src/types/sdk.ts +26 -21
  74. package/src/utils/domain-utils.test.ts +196 -2
  75. package/src/utils/domain-utils.ts +68 -35
  76. package/src/utils/file-utils.test.ts +73 -0
  77. package/src/utils/file-utils.ts +94 -0
  78. package/tsconfig.tsbuildinfo +1 -1
  79. package/dist/plugins/lockVersion/index.d.ts +0 -24
  80. package/dist/plugins/lockVersion/index.d.ts.map +0 -1
  81. package/dist/plugins/lockVersion/index.js +0 -72
  82. package/dist/plugins/lockVersion/index.test.d.ts +0 -2
  83. package/dist/plugins/lockVersion/index.test.d.ts.map +0 -1
  84. package/dist/plugins/lockVersion/index.test.js +0 -129
  85. package/dist/plugins/lockVersion/schemas.d.ts +0 -10
  86. package/dist/plugins/lockVersion/schemas.d.ts.map +0 -1
  87. package/dist/plugins/lockVersion/schemas.js +0 -6
  88. package/src/plugins/lockVersion/index.test.ts +0 -176
  89. package/src/plugins/lockVersion/index.ts +0 -112
  90. package/src/plugins/lockVersion/schemas.ts +0 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @zapier/zapier-sdk
2
2
 
3
+ ## 0.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5ccaec6: AST-based type gen instead of string-based. Added `add` function for locking app versions and generating types. Removed `lockVersion` and `generateTypes functions. Manifest matching on slug or implementation name.
8
+
3
9
  ## 0.8.3
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -25,8 +25,6 @@
25
25
  - [`listAuthentications`](#listauthentications)
26
26
  - [HTTP Requests](#http-requests)
27
27
  - [`request`](#request)
28
- - [Utilities](#utilities)
29
- - [`lockVersion`](#lockversion)
30
28
 
31
29
  ## Installation
32
30
 
@@ -327,15 +325,16 @@ List available authentications with optional filtering
327
325
 
328
326
  **Parameters:**
329
327
 
330
- | Name | Type | Required | Default | Possible Values | Description |
331
- | ----------- | -------- | -------- | ------- | --------------- | -------------------------------------------------------- |
332
- | `appKey` | `string` | ❌ | — | — | App key of authentications to list (e.g., 'SlackCLIAPI') |
333
- | `search` | `string` | ❌ | — | — | Search term to filter authentications by title |
334
- | `title` | `string` | ❌ | — | — | Filter authentications by exact title match |
335
- | `accountId` | `string` | ❌ | — | — | Filter by account ID |
336
- | `owner` | `string` | ❌ | — | — | Filter by owner |
337
- | `pageSize` | `number` | ❌ | — | — | Number of authentications per page |
338
- | `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages |
328
+ | Name | Type | Required | Default | Possible Values | Description |
329
+ | ------------------- | -------- | -------- | ------- | --------------- | -------------------------------------------------------- |
330
+ | `appKey` | `string` | ❌ | — | — | App key of authentications to list (e.g., 'SlackCLIAPI') |
331
+ | `authenticationIds` | `array` | ❌ | — | — | List of authentication IDs to filter by |
332
+ | `search` | `string` | ❌ | — | — | Search term to filter authentications by title |
333
+ | `title` | `string` | ❌ | — | — | Filter authentications by exact title match |
334
+ | `accountId` | `string` | ❌ | — | — | Filter by account ID |
335
+ | `owner` | `string` | ❌ | — | — | Filter by owner |
336
+ | `pageSize` | `number` | ❌ | — | — | Number of authentications per page |
337
+ | `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages |
339
338
 
340
339
  **Returns:** `Promise<PaginatedResult<Authentication>>`
341
340
 
@@ -374,26 +373,4 @@ const result = await sdk.request({
374
373
  });
375
374
  ```
376
375
 
377
- ### Utilities
378
-
379
- #### `lockVersion`
380
-
381
- Execute lockVersion
382
-
383
- **Parameters:**
384
-
385
- | Name | Type | Required | Default | Possible Values | Description |
386
- | -------- | -------- | -------- | ------- | --------------- | -------------------------------------------------------- |
387
- | `appKey` | `string` | ✅ | — | — | The app key to lock version for (e.g., 'slack', 'gmail') |
388
-
389
- **Returns:** `Promise<any>`
390
-
391
- **Example:**
392
-
393
- ```typescript
394
- const result = await sdk.lockVersion({
395
- appKey: "example-key",
396
- });
397
- ```
398
-
399
376
  <!-- End Generated API Reference -->