@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.
- package/CHANGELOG.md +6 -0
- package/README.md +10 -33
- package/dist/index.cjs +346 -219
- package/dist/index.d.mts +181 -185
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.mjs +343 -218
- package/dist/plugins/apps/index.d.ts +4 -0
- package/dist/plugins/apps/index.d.ts.map +1 -1
- package/dist/plugins/getApp/index.d.ts +2 -7
- package/dist/plugins/getApp/index.d.ts.map +1 -1
- package/dist/plugins/getApp/index.js +9 -9
- package/dist/plugins/getApp/index.test.js +1 -1
- package/dist/plugins/getAuthentication/index.test.js +1 -1
- package/dist/plugins/listActions/index.d.ts +2 -4
- package/dist/plugins/listActions/index.d.ts.map +1 -1
- package/dist/plugins/listActions/index.js +1 -1
- package/dist/plugins/listActions/index.test.js +4 -4
- package/dist/plugins/listApps/index.d.ts +4 -7
- package/dist/plugins/listApps/index.d.ts.map +1 -1
- package/dist/plugins/listApps/index.js +33 -17
- package/dist/plugins/listApps/index.test.js +22 -2
- package/dist/plugins/listAuthentications/index.d.ts +2 -4
- package/dist/plugins/listAuthentications/index.d.ts.map +1 -1
- package/dist/plugins/listAuthentications/index.js +4 -0
- package/dist/plugins/listAuthentications/index.test.js +39 -13
- package/dist/plugins/listAuthentications/schemas.d.ts +3 -0
- package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
- package/dist/plugins/listAuthentications/schemas.js +4 -0
- package/dist/plugins/manifest/index.d.ts +25 -9
- package/dist/plugins/manifest/index.d.ts.map +1 -1
- package/dist/plugins/manifest/index.js +239 -67
- package/dist/plugins/manifest/index.test.js +426 -171
- package/dist/plugins/manifest/schemas.d.ts +5 -1
- package/dist/plugins/manifest/schemas.d.ts.map +1 -1
- package/dist/plugins/manifest/schemas.js +1 -0
- package/dist/sdk.d.ts +5 -11
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +1 -4
- package/dist/types/plugin.d.ts +1 -0
- package/dist/types/plugin.d.ts.map +1 -1
- package/dist/types/sdk.d.ts +6 -3
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/utils/domain-utils.d.ts +16 -0
- package/dist/utils/domain-utils.d.ts.map +1 -1
- package/dist/utils/domain-utils.js +46 -27
- package/dist/utils/domain-utils.test.js +157 -3
- package/dist/utils/file-utils.d.ts +4 -0
- package/dist/utils/file-utils.d.ts.map +1 -0
- package/dist/utils/file-utils.js +74 -0
- package/dist/utils/file-utils.test.d.ts +2 -0
- package/dist/utils/file-utils.test.d.ts.map +1 -0
- package/dist/utils/file-utils.test.js +51 -0
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/plugins/apps/index.ts +9 -2
- package/src/plugins/getApp/index.test.ts +1 -1
- package/src/plugins/getApp/index.ts +12 -14
- package/src/plugins/getAuthentication/index.test.ts +1 -1
- package/src/plugins/listActions/index.test.ts +8 -7
- package/src/plugins/listActions/index.ts +3 -3
- package/src/plugins/listApps/index.test.ts +23 -2
- package/src/plugins/listApps/index.ts +46 -25
- package/src/plugins/listAuthentications/index.test.ts +52 -15
- package/src/plugins/listAuthentications/index.ts +7 -2
- package/src/plugins/listAuthentications/schemas.ts +4 -0
- package/src/plugins/manifest/index.test.ts +503 -197
- package/src/plugins/manifest/index.ts +338 -82
- package/src/plugins/manifest/schemas.ts +9 -2
- package/src/sdk.ts +1 -5
- package/src/types/plugin.ts +3 -0
- package/src/types/sdk.ts +26 -21
- package/src/utils/domain-utils.test.ts +196 -2
- package/src/utils/domain-utils.ts +68 -35
- package/src/utils/file-utils.test.ts +73 -0
- package/src/utils/file-utils.ts +94 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/plugins/lockVersion/index.d.ts +0 -24
- package/dist/plugins/lockVersion/index.d.ts.map +0 -1
- package/dist/plugins/lockVersion/index.js +0 -72
- package/dist/plugins/lockVersion/index.test.d.ts +0 -2
- package/dist/plugins/lockVersion/index.test.d.ts.map +0 -1
- package/dist/plugins/lockVersion/index.test.js +0 -129
- package/dist/plugins/lockVersion/schemas.d.ts +0 -10
- package/dist/plugins/lockVersion/schemas.d.ts.map +0 -1
- package/dist/plugins/lockVersion/schemas.js +0 -6
- package/src/plugins/lockVersion/index.test.ts +0 -176
- package/src/plugins/lockVersion/index.ts +0 -112
- 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
|
|
331
|
-
|
|
|
332
|
-
| `appKey`
|
|
333
|
-
| `
|
|
334
|
-
| `
|
|
335
|
-
| `
|
|
336
|
-
| `
|
|
337
|
-
| `
|
|
338
|
-
| `
|
|
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 -->
|