@zapier/zapier-sdk 0.56.1 → 0.57.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 +12 -0
- package/README.md +28 -20
- package/dist/experimental.cjs +31 -11
- package/dist/experimental.d.mts +12 -2
- package/dist/experimental.d.ts +10 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.mjs +31 -11
- package/dist/{index-CjP7lGzL.d.mts → index-4QyPPLfu.d.mts} +32 -0
- package/dist/{index-CjP7lGzL.d.ts → index-4QyPPLfu.d.ts} +32 -0
- package/dist/index.cjs +30 -10
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +30 -10
- package/dist/plugins/tables/createTableFields/index.d.ts +1 -0
- package/dist/plugins/tables/createTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTableFields/schemas.d.ts +2 -0
- package/dist/plugins/tables/createTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/createTableRecords/index.d.ts +1 -0
- package/dist/plugins/tables/createTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTableRecords/schemas.d.ts +2 -0
- package/dist/plugins/tables/createTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/getTableRecord/index.d.ts +1 -0
- package/dist/plugins/tables/getTableRecord/index.d.ts.map +1 -1
- package/dist/plugins/tables/getTableRecord/schemas.d.ts +3 -0
- package/dist/plugins/tables/getTableRecord/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/getTableRecord/schemas.js +2 -0
- package/dist/plugins/tables/listTableFields/index.d.ts +3 -0
- package/dist/plugins/tables/listTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTableFields/index.js +3 -0
- package/dist/plugins/tables/listTableFields/schemas.d.ts +23 -0
- package/dist/plugins/tables/listTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/listTableFields/schemas.js +4 -0
- package/dist/plugins/tables/listTableRecords/index.d.ts +3 -0
- package/dist/plugins/tables/listTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTableRecords/index.js +7 -1
- package/dist/plugins/tables/listTableRecords/schemas.d.ts +21 -0
- package/dist/plugins/tables/listTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/listTableRecords/schemas.js +2 -1
- package/dist/plugins/tables/updateTableRecords/index.d.ts +1 -0
- package/dist/plugins/tables/updateTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/updateTableRecords/schemas.d.ts +2 -0
- package/dist/plugins/tables/updateTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/utils.d.ts +6 -0
- package/dist/plugins/tables/utils.d.ts.map +1 -1
- package/dist/plugins/tables/utils.js +6 -0
- package/dist/plugins/triggers/ensureTriggerInbox/index.js +1 -1
- package/dist/sdk.d.ts +20 -0
- package/dist/sdk.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.57.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5457bdd: Added a `trash` option to `listTableRecords` and `listTableFields` for controlling soft-deleted item visibility. Accepts `"exclude"` (default, active items only), `"include"` (active and soft-deleted), or `"only"` (soft-deleted items only).
|
|
8
|
+
|
|
9
|
+
## 0.56.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 884d0fc: Update ensureTriggerInbox to use new PUT endpoint in upstream Trigger Inbox API
|
|
14
|
+
|
|
3
15
|
## 0.56.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1408,6 +1408,7 @@ Create one or more fields in a table
|
|
|
1408
1408
|
| ↳ `edited_at` | `string` | ❌ | — | |
|
|
1409
1409
|
| ↳ `options` | `object` | ❌ | — | |
|
|
1410
1410
|
| ↳ `config` | `object` | ❌ | — | |
|
|
1411
|
+
| ↳ `deleted_at` | `string` | ❌ | — | |
|
|
1411
1412
|
|
|
1412
1413
|
**Example:**
|
|
1413
1414
|
|
|
@@ -1446,6 +1447,7 @@ Create one or more records in a table
|
|
|
1446
1447
|
| ↳ `data` | `object` | ✅ | — | |
|
|
1447
1448
|
| ↳ `created_at` | `string` | ✅ | — | |
|
|
1448
1449
|
| ↳ `edited_at` | `string` | ✅ | — | |
|
|
1450
|
+
| ↳ `deleted_at` | `string` | ❌ | — | |
|
|
1449
1451
|
|
|
1450
1452
|
**Example:**
|
|
1451
1453
|
|
|
@@ -1583,6 +1585,7 @@ Get a single record from a table by ID
|
|
|
1583
1585
|
| ↳ `data` | `object` | ✅ | — | |
|
|
1584
1586
|
| ↳ `created_at` | `string` | ✅ | — | |
|
|
1585
1587
|
| ↳ `edited_at` | `string` | ✅ | — | |
|
|
1588
|
+
| ↳ `deleted_at` | `string` | ❌ | — | |
|
|
1586
1589
|
|
|
1587
1590
|
**Example:**
|
|
1588
1591
|
|
|
@@ -1599,11 +1602,12 @@ List fields for a table
|
|
|
1599
1602
|
|
|
1600
1603
|
**Parameters:**
|
|
1601
1604
|
|
|
1602
|
-
| Name | Type | Required | Default | Possible Values
|
|
1603
|
-
| ------------ | -------- | -------- | ------- |
|
|
1604
|
-
| `options` | `object` | ✅ | — | —
|
|
1605
|
-
| ↳ `table` | `string` | ✅ | — | —
|
|
1606
|
-
| ↳ `fields` | `array` | ❌ | — | —
|
|
1605
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
1606
|
+
| ------------ | -------- | -------- | ------- | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1607
|
+
| `options` | `object` | ✅ | — | — | |
|
|
1608
|
+
| ↳ `table` | `string` | ✅ | — | — | The unique identifier of the table |
|
|
1609
|
+
| ↳ `fields` | `array` | ❌ | — | — | Fields to operate on. Accepts field names (e.g., "Email") or IDs (e.g., "f6", "6", or 6). |
|
|
1610
|
+
| ↳ `trash` | `string` | ❌ | — | `exclude`, `include`, `only` | Control soft-deleted item visibility. "exclude" (default) returns active items only, "include" returns both active and soft-deleted, "only" returns soft-deleted items only. |
|
|
1607
1611
|
|
|
1608
1612
|
**Returns:** `Promise<PaginatedResult<FieldItem>>`
|
|
1609
1613
|
|
|
@@ -1617,6 +1621,7 @@ List fields for a table
|
|
|
1617
1621
|
| ↳ `edited_at` | `string` | ❌ | — | |
|
|
1618
1622
|
| ↳ `options` | `object` | ❌ | — | |
|
|
1619
1623
|
| ↳ `config` | `object` | ❌ | — | |
|
|
1624
|
+
| ↳ `deleted_at` | `string` | ❌ | — | |
|
|
1620
1625
|
| `nextCursor` | `string` | ❌ | — | Cursor for the next page; omitted when there are no more pages |
|
|
1621
1626
|
|
|
1622
1627
|
**Example:**
|
|
@@ -1650,21 +1655,22 @@ List records in a table with optional filtering and sorting
|
|
|
1650
1655
|
|
|
1651
1656
|
**Parameters:**
|
|
1652
1657
|
|
|
1653
|
-
| Name | Type | Required | Default | Possible Values | Description
|
|
1654
|
-
| ----------------- | ---------- | -------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1655
|
-
| `options` | `object` | ✅ | — | — |
|
|
1656
|
-
| ↳ `table` | `string` | ✅ | — | — | The unique identifier of the table
|
|
1657
|
-
| ↳ `filters[]` | `object[]` | ❌ | — | — | Filter conditions for the query
|
|
1658
|
-
| ↳ `fieldKey` | `string` | ✅ | — | — | The field key to filter on (e.g. f1, f2)
|
|
1659
|
-
| ↳ `operator` | `string` | ✅ | — | `exact`, `different`, `contains`, `icontains`, `gte`, `gt`, `lt`, `lte`, `range`, `in`, `isnull`, `startswith`, `search`, `is_within` | The comparison operator
|
|
1660
|
-
| ↳ `value` | `string` | ❌ | — | — | The value to compare against
|
|
1661
|
-
| ↳ `sort` | `object` | ❌ | — | — | Sort records by a field
|
|
1662
|
-
| ↳ `fieldKey` | `string` | ✅ | — | — | The field key to sort by
|
|
1663
|
-
| ↳ `direction` | `string` | ❌ | `"asc"` | — | Sort direction
|
|
1664
|
-
| ↳ `pageSize` | `number` | ❌ | — | — | Number of records per page (max 1000)
|
|
1665
|
-
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages
|
|
1666
|
-
| ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from
|
|
1667
|
-
| ↳ `keyMode` | `string` | ❌ | `"names"` | — | How to interpret field keys in record data. "names" (default) uses human-readable field names, "ids" uses raw field IDs (f1, f2).
|
|
1658
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
1659
|
+
| ----------------- | ---------- | -------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1660
|
+
| `options` | `object` | ✅ | — | — | |
|
|
1661
|
+
| ↳ `table` | `string` | ✅ | — | — | The unique identifier of the table |
|
|
1662
|
+
| ↳ `filters[]` | `object[]` | ❌ | — | — | Filter conditions for the query |
|
|
1663
|
+
| ↳ `fieldKey` | `string` | ✅ | — | — | The field key to filter on (e.g. f1, f2) |
|
|
1664
|
+
| ↳ `operator` | `string` | ✅ | — | `exact`, `different`, `contains`, `icontains`, `gte`, `gt`, `lt`, `lte`, `range`, `in`, `isnull`, `startswith`, `search`, `is_within` | The comparison operator |
|
|
1665
|
+
| ↳ `value` | `string` | ❌ | — | — | The value to compare against |
|
|
1666
|
+
| ↳ `sort` | `object` | ❌ | — | — | Sort records by a field |
|
|
1667
|
+
| ↳ `fieldKey` | `string` | ✅ | — | — | The field key to sort by |
|
|
1668
|
+
| ↳ `direction` | `string` | ❌ | `"asc"` | — | Sort direction |
|
|
1669
|
+
| ↳ `pageSize` | `number` | ❌ | — | — | Number of records per page (max 1000) |
|
|
1670
|
+
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
1671
|
+
| ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
1672
|
+
| ↳ `keyMode` | `string` | ❌ | `"names"` | — | How to interpret field keys in record data. "names" (default) uses human-readable field names, "ids" uses raw field IDs (f1, f2). |
|
|
1673
|
+
| ↳ `trash` | `string` | ❌ | — | `exclude`, `include`, `only` | Control soft-deleted item visibility. "exclude" (default) returns active items only, "include" returns both active and soft-deleted, "only" returns soft-deleted items only. |
|
|
1668
1674
|
|
|
1669
1675
|
**Returns:** `Promise<PaginatedResult<RecordItem>>`
|
|
1670
1676
|
|
|
@@ -1675,6 +1681,7 @@ List records in a table with optional filtering and sorting
|
|
|
1675
1681
|
| ↳ `data` | `object` | ✅ | — | |
|
|
1676
1682
|
| ↳ `created_at` | `string` | ✅ | — | |
|
|
1677
1683
|
| ↳ `edited_at` | `string` | ✅ | — | |
|
|
1684
|
+
| ↳ `deleted_at` | `string` | ❌ | — | |
|
|
1678
1685
|
| `nextCursor` | `string` | ❌ | — | Cursor for the next page; omitted when there are no more pages |
|
|
1679
1686
|
|
|
1680
1687
|
**Example:**
|
|
@@ -1777,6 +1784,7 @@ Update one or more records in a table
|
|
|
1777
1784
|
| ↳ `data` | `object` | ✅ | — | |
|
|
1778
1785
|
| ↳ `created_at` | `string` | ✅ | — | |
|
|
1779
1786
|
| ↳ `edited_at` | `string` | ✅ | — | |
|
|
1787
|
+
| ↳ `deleted_at` | `string` | ❌ | — | |
|
|
1780
1788
|
|
|
1781
1789
|
**Example:**
|
|
1782
1790
|
|
package/dist/experimental.cjs
CHANGED
|
@@ -2885,7 +2885,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
2885
2885
|
}
|
|
2886
2886
|
|
|
2887
2887
|
// src/sdk-version.ts
|
|
2888
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2888
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.57.0" : void 0) || "unknown";
|
|
2889
2889
|
|
|
2890
2890
|
// src/utils/open-url.ts
|
|
2891
2891
|
var nodePrefix = "node:";
|
|
@@ -4327,7 +4327,8 @@ function transformFieldItem(apiItem) {
|
|
|
4327
4327
|
created_at: apiItem.created_at,
|
|
4328
4328
|
edited_at: apiItem.edited_at,
|
|
4329
4329
|
options: apiItem.options,
|
|
4330
|
-
config: apiItem.config
|
|
4330
|
+
config: apiItem.config,
|
|
4331
|
+
deleted_at: apiItem.deleted_at
|
|
4331
4332
|
};
|
|
4332
4333
|
}
|
|
4333
4334
|
function transformRecordItem(apiItem) {
|
|
@@ -4335,7 +4336,8 @@ function transformRecordItem(apiItem) {
|
|
|
4335
4336
|
id: apiItem.id,
|
|
4336
4337
|
data: apiItem.data,
|
|
4337
4338
|
created_at: apiItem.created_at,
|
|
4338
|
-
edited_at: apiItem.edited_at
|
|
4339
|
+
edited_at: apiItem.edited_at,
|
|
4340
|
+
deleted_at: apiItem.deleted_at
|
|
4339
4341
|
};
|
|
4340
4342
|
}
|
|
4341
4343
|
function formatRecordError(fieldId, err) {
|
|
@@ -4379,6 +4381,9 @@ function throwOnResponseErrors(response) {
|
|
|
4379
4381
|
var KeyModeSchema = zod.z.enum(["names", "ids"]).optional().default("names").describe(
|
|
4380
4382
|
'How to interpret field keys in record data. "names" (default) uses human-readable field names, "ids" uses raw field IDs (f1, f2).'
|
|
4381
4383
|
);
|
|
4384
|
+
var TrashSchema = zod.z.enum(["exclude", "include", "only"]).optional().describe(
|
|
4385
|
+
'Control soft-deleted item visibility. "exclude" (default) returns active items only, "include" returns both active and soft-deleted, "only" returns soft-deleted items only.'
|
|
4386
|
+
);
|
|
4382
4387
|
var FIELD_ID_PATTERN = /^f\d+$/;
|
|
4383
4388
|
function isFieldId(key) {
|
|
4384
4389
|
return FIELD_ID_PATTERN.test(key);
|
|
@@ -4629,7 +4634,8 @@ var FieldApiItemSchema = zod.z.object({
|
|
|
4629
4634
|
config: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
|
|
4630
4635
|
is_order_field: zod.z.boolean().optional(),
|
|
4631
4636
|
is_filter_field: zod.z.boolean().optional(),
|
|
4632
|
-
is_selected_field: zod.z.boolean().optional()
|
|
4637
|
+
is_selected_field: zod.z.boolean().optional(),
|
|
4638
|
+
deleted_at: zod.z.string().nullable().optional()
|
|
4633
4639
|
});
|
|
4634
4640
|
var ListTableFieldsApiResponseSchema = zod.z.object({
|
|
4635
4641
|
data: zod.z.array(FieldApiItemSchema)
|
|
@@ -4641,7 +4647,8 @@ var FieldItemSchemaBase = zod.z.object({
|
|
|
4641
4647
|
created_at: zod.z.string().optional(),
|
|
4642
4648
|
edited_at: zod.z.string().optional(),
|
|
4643
4649
|
options: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
|
|
4644
|
-
config: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
|
|
4650
|
+
config: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
|
|
4651
|
+
deleted_at: zod.z.string().nullable().optional()
|
|
4645
4652
|
});
|
|
4646
4653
|
var FieldItemSchema = withFormatter(FieldItemSchemaBase, {
|
|
4647
4654
|
format: (item) => ({
|
|
@@ -4655,7 +4662,8 @@ var ListTableFieldsOptionsBaseSchema = zod.z.object({
|
|
|
4655
4662
|
fields: FieldsPropertySchema.optional(),
|
|
4656
4663
|
fieldKeys: zod.z.array(zod.z.union([zod.z.string(), zod.z.number()])).optional().describe(
|
|
4657
4664
|
'Filter by specific fields. Accepts field names (e.g., "Email") or IDs (e.g., "f6", "6", or 6).'
|
|
4658
|
-
).meta({ deprecated: true })
|
|
4665
|
+
).meta({ deprecated: true }),
|
|
4666
|
+
trash: TrashSchema
|
|
4659
4667
|
});
|
|
4660
4668
|
var ListTableFieldsOptionsSchema = zod.z.object({
|
|
4661
4669
|
table: TablePropertySchema
|
|
@@ -7082,6 +7090,9 @@ var listTableFieldsPlugin = definePlugin(
|
|
|
7082
7090
|
});
|
|
7083
7091
|
searchParams.field_ids = numericIds.join(",");
|
|
7084
7092
|
}
|
|
7093
|
+
if (options.trash) {
|
|
7094
|
+
searchParams.trash = options.trash;
|
|
7095
|
+
}
|
|
7085
7096
|
const rawResponse = await api.get(
|
|
7086
7097
|
`/tables/api/v1/tables/${tableId}/fields`,
|
|
7087
7098
|
{
|
|
@@ -7212,13 +7223,15 @@ var RecordApiItemSchema = zod.z.object({
|
|
|
7212
7223
|
schema_revision_id: zod.z.number(),
|
|
7213
7224
|
errors: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
|
|
7214
7225
|
orig_data: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
|
|
7215
|
-
is_source_record: zod.z.boolean().nullable().optional()
|
|
7226
|
+
is_source_record: zod.z.boolean().nullable().optional(),
|
|
7227
|
+
deleted_at: zod.z.string().nullable().optional()
|
|
7216
7228
|
});
|
|
7217
7229
|
var RecordItemSchemaBase = zod.z.object({
|
|
7218
7230
|
id: zod.z.string(),
|
|
7219
7231
|
data: zod.z.record(zod.z.string(), zod.z.unknown()),
|
|
7220
7232
|
created_at: zod.z.string(),
|
|
7221
|
-
edited_at: zod.z.string()
|
|
7233
|
+
edited_at: zod.z.string(),
|
|
7234
|
+
deleted_at: zod.z.string().nullable().optional()
|
|
7222
7235
|
});
|
|
7223
7236
|
var RecordItemSchema = withFormatter(RecordItemSchemaBase, {
|
|
7224
7237
|
format: (item) => ({
|
|
@@ -7348,7 +7361,8 @@ var ListTableRecordsBase = zod.z.object({
|
|
|
7348
7361
|
pageSize: zod.z.number().min(1).max(1e3).optional().describe("Number of records per page (max 1000)"),
|
|
7349
7362
|
maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
|
|
7350
7363
|
cursor: zod.z.string().optional().describe("Cursor to start from"),
|
|
7351
|
-
keyMode: KeyModeSchema
|
|
7364
|
+
keyMode: KeyModeSchema,
|
|
7365
|
+
trash: TrashSchema
|
|
7352
7366
|
});
|
|
7353
7367
|
var ListTableRecordsOptionsSchema = zod.z.object({
|
|
7354
7368
|
table: TablePropertySchema
|
|
@@ -7413,11 +7427,17 @@ var listTableRecordsPlugin = definePlugin(
|
|
|
7413
7427
|
start_cursor: options.cursor
|
|
7414
7428
|
};
|
|
7415
7429
|
}
|
|
7430
|
+
const searchParams = {
|
|
7431
|
+
allow_nested_queries: "true"
|
|
7432
|
+
};
|
|
7433
|
+
if (options.trash) {
|
|
7434
|
+
searchParams.trash = options.trash;
|
|
7435
|
+
}
|
|
7416
7436
|
const rawResponse = await api.post(
|
|
7417
7437
|
`/tables/api/v1/tables/${tableId}/records/query`,
|
|
7418
7438
|
body,
|
|
7419
7439
|
{
|
|
7420
|
-
searchParams
|
|
7440
|
+
searchParams,
|
|
7421
7441
|
authRequired: true,
|
|
7422
7442
|
resource: { type: "table", id: tableId }
|
|
7423
7443
|
}
|
|
@@ -9213,7 +9233,7 @@ var ensureTriggerInboxPlugin = definePlugin(
|
|
|
9213
9233
|
if (notificationUrl !== void 0) {
|
|
9214
9234
|
requestBody.notification_url = notificationUrl;
|
|
9215
9235
|
}
|
|
9216
|
-
const rawResponse = await api.
|
|
9236
|
+
const rawResponse = await api.put(
|
|
9217
9237
|
"/trigger-inbox/api/v1/inboxes",
|
|
9218
9238
|
requestBody,
|
|
9219
9239
|
{
|
package/dist/experimental.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, W as WithAddPlugin, P as PluginMeta, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, M as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, b as AddActionEntryOptions, c as AddActionEntryResult, d as ActionEntry, f as findManifestEntry, r as readManifestFromFile, C as CapabilitiesContext, e as PaginatedSdkResult, F as FieldsetItem, g as PositionalMetadata, h as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, i as DynamicResolver, j as WatchTriggerInboxOptions, k as ActionProxy, l as ZapierSdkApps } from './index-
|
|
2
|
-
export { u as Action, ci as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aW as ActionItem, bx as ActionKeyProperty, b5 as ActionKeyPropertySchema, by as ActionProperty, b6 as ActionPropertySchema, as as ActionResolverItem, bJ as ActionTimeoutMsProperty, bh as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bw as ActionTypeProperty, b4 as ActionTypePropertySchema, bW as ApiError, dE as ApiEvent, d0 as ApiPluginOptions, d2 as ApiPluginProvides, v as App, cj as AppFactoryInput, aU as AppItem, bu as AppKeyProperty, b2 as AppKeyPropertySchema, bv as AppProperty, b3 as AppPropertySchema, aD as ApplicationLifecycleEventData, cb as ApprovalStatus, ch as AppsPluginProvides, bO as AppsProperty, bm as AppsPropertySchema, a0 as ArrayResolver, dD as AuthEvent, bC as AuthenticationIdProperty, b9 as AuthenticationIdPropertySchema, az as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cP as CONTEXT_CACHE_MAX_SIZE, cO as CONTEXT_CACHE_TTL_MS, x as Choice, dK as ClientCredentialsObject, dV as ClientCredentialsObjectSchema, K as Connection, e1 as ConnectionEntry, e0 as ConnectionEntrySchema, bA as ConnectionIdProperty, b8 as ConnectionIdPropertySchema, aV as ConnectionItem, bB as ConnectionProperty, ba as ConnectionPropertySchema, e3 as ConnectionsMap, e2 as ConnectionsMapSchema, e5 as ConnectionsPluginProvides, bQ as ConnectionsProperty, bo as ConnectionsPropertySchema, O as ConnectionsResponse, cB as CreateClientCredentialsPluginProvides, ev as CreateTableFieldsPluginProvides, ep as CreateTablePluginProvides, eD as CreateTableRecordsPluginProvides, dH as Credentials, d_ as CredentialsFunction, dZ as CredentialsFunctionSchema, dJ as CredentialsObject, dX as CredentialsObjectSchema, d$ as CredentialsSchema, ea as DEFAULT_ACTION_TIMEOUT_MS, ei as DEFAULT_APPROVAL_TIMEOUT_MS, cY as DEFAULT_CONFIG_PATH, ej as DEFAULT_MAX_APPROVAL_RETRIES, e9 as DEFAULT_PAGE_SIZE, bH as DebugProperty, bf as DebugPropertySchema, cD as DeleteClientCredentialsPluginProvides, ex as DeleteTableFieldsPluginProvides, er as DeleteTablePluginProvides, eF as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, a3 as DynamicListResolver, a4 as DynamicSearchResolver, aE as EnhancedErrorEventData, bX as ErrorOptions, dG as EventCallback, aC as EventContext, aB as EventEmissionProvides, cl as FetchPluginProvides, w as Field, bN as FieldsProperty, bl as FieldsPropertySchema, a5 as FieldsResolver, s as FindFirstAuthenticationPluginProvides, cL as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cN as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, a$ as FunctionOptions, aj as FunctionRegistryEntry, cv as GetActionInputFieldsSchemaPluginProvides, cH as GetActionPluginProvides, cF as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cJ as GetConnectionPluginProvides, c$ as GetProfilePluginProvides, en as GetTablePluginProvides, ez as GetTableRecordPluginProvides, aY as InfoFieldItem, aX as InputFieldItem, bz as InputFieldProperty, b7 as InputFieldPropertySchema, bD as InputsProperty, bb as InputsPropertySchema, bV as LeaseLimitProperty, bt as LeaseLimitPropertySchema, bT as LeaseProperty, br as LeasePropertySchema, bU as LeaseSecondsProperty, bs as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bE as LimitProperty, bc as LimitPropertySchema, ct as ListActionInputFieldChoicesPluginProvides, cr as ListActionInputFieldsPluginProvides, cp as ListActionsPluginProvides, cn as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, cz as ListClientCredentialsPluginProvides, cx as ListConnectionsPluginProvides, et as ListTableFieldsPluginProvides, eB as ListTableRecordsPluginProvides, el as ListTablesPluginProvides, dF as LoadingEvent, ed as MAX_CONCURRENCY_LIMIT, e8 as MAX_PAGE_LIMIT, cZ as ManifestEntry, cU as ManifestPluginOptions, cX as ManifestPluginProvides, aA as MethodCalledEvent, aF as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bF as OffsetProperty, bd as OffsetPropertySchema, _ as OutputFormatter, bG as OutputProperty, be as OutputPropertySchema, b1 as PaginatedSdkFunction, bI as ParamsProperty, bg as ParamsPropertySchema, dL as PkceCredentialsObject, dW as PkceCredentialsObjectSchema, am as Plugin, an as PluginProvides, aw as PollOptions, c9 as RateLimitInfo, bL as RecordProperty, bj as RecordPropertySchema, bM as RecordsProperty, bk as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cT as RequestPluginProvides, dq as ResolveAuthTokenOptions, dQ as ResolveCredentialsOptions, dI as ResolvedCredentials, dY as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aZ as RootFieldItem, cR as RunActionPluginProvides, dC as SdkEvent, b0 as SdkPage, a2 as StaticResolver, bK as TableProperty, bi as TablePropertySchema, bP as TablesProperty, bn as TablesPropertySchema, bS as TriggerInboxNameProperty, bq as TriggerInboxNamePropertySchema, bR as TriggerInboxProperty, bp as TriggerInboxPropertySchema, T as TriggerMessageStatus, eH as UpdateTableRecordsPluginProvides, Q as UserProfile, a_ as UserProfileItem, e6 as ZAPIER_BASE_URL, ef as ZAPIER_MAX_CONCURRENT_REQUESTS, eb as ZAPIER_MAX_NETWORK_RETRIES, ec as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, c7 as ZapierActionError, bZ as ZapierApiError, b_ as ZapierAppNotFoundError, cc as ZapierApprovalError, c1 as ZapierAuthenticationError, c5 as ZapierBundleError, dy as ZapierCache, dz as ZapierCacheEntry, dA as ZapierCacheSetOptions, c4 as ZapierConfigurationError, c8 as ZapierConflictError, bY as ZapierError, c2 as ZapierNotFoundError, ca as ZapierRateLimitError, cd as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, c3 as ZapierResourceNotFoundError, cf as ZapierSignal, c6 as ZapierTimeoutError, c0 as ZapierUnknownError, b$ as ZapierValidationError, d5 as actionKeyResolver, d4 as actionTypeResolver, d1 as apiPlugin, d3 as appKeyResolver, cg as appsPlugin, d7 as authenticationIdGenericResolver, d6 as authenticationIdResolver, a9 as batch, aP as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, aR as buildErrorEvent, aQ as buildErrorEventWithContext, aT as buildMethodCalledEvent, dr as clearTokenCache, db as clientCredentialsNameResolver, dc as clientIdResolver, ar as composePlugins, d7 as connectionIdGenericResolver, d6 as connectionIdResolver, e4 as connectionsPlugin, aS as createBaseEvent, cA as createClientCredentialsPlugin, V as createFunction, dB as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, eu as createTableFieldsPlugin, eo as createTablePlugin, eC as createTableRecordsPlugin, ax as createZapierApi, ag as createZapierSdkWithoutRegistry, ao as definePlugin, cC as deleteClientCredentialsPlugin, ew as deleteTableFieldsPlugin, eq as deleteTablePlugin, eE as deleteTableRecordsPlugin, ck as fetchPlugin, cK as findFirstConnectionPlugin, cM as findUniqueConnectionPlugin, ce as formatErrorMessage, aG as generateEventId, cu as getActionInputFieldsSchemaPlugin, cG as getActionPlugin, cE as getAppPlugin, dT as getBaseUrlFromCredentials, aM as getCiPlatform, dU as getClientIdFromCredentials, cI as getConnectionPlugin, aO as getCpuTime, aH as getCurrentTimestamp, aN as getMemoryUsage, ay as getOrCreateApiClient, aJ as getOsInfo, aK as getPlatformVersions, cV as getPreferredManifestEntryKey, c_ as getProfilePlugin, aI as getReleaseId, em as getTablePlugin, ey as getTableRecordPlugin, dv as getTokenFromCliLogin, eg as getZapierApprovalMode, eh as getZapierDefaultApprovalMode, e7 as getZapierSdkService, dt as injectCliLogin, da as inputFieldKeyResolver, d9 as inputsAllOptionalResolver, d8 as inputsResolver, ds as invalidateCachedToken, dx as invalidateCredentialsToken, aL as isCi, du as isCliLoginAvailable, dM as isClientCredentials, dP as isCredentialsFunction, dO as isCredentialsObject, dN as isPkceCredentials, S as isPositional, cs as listActionInputFieldChoicesPlugin, cq as listActionInputFieldsPlugin, co as listActionsPlugin, cm as listAppsPlugin, cy as listClientCredentialsPlugin, cw as listConnectionsPlugin, es as listTableFieldsPlugin, eA as listTableRecordsPlugin, ek as listTablesPlugin, ac as logDeprecation, cW as manifestPlugin, ee as parseConcurrencyEnvVar, au as registryPlugin, cS as requestPlugin, ad as resetDeprecationWarnings, dw as resolveAuthToken, dS as resolveCredentials, dR as resolveCredentialsFromEnv, cQ as runActionPlugin, a6 as runWithTelemetryContext, di as tableFieldIdsResolver, dk as tableFieldsResolver, dn as tableFiltersResolver, dd as tableIdResolver, dj as tableNameResolver, dg as tableRecordIdResolver, dh as tableRecordIdsResolver, dl as tableRecordsResolver, dp as tableSortResolver, dm as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, de as triggerInboxResolver, df as triggerMessagesResolver, eG as updateTableRecordsPlugin } from './index-
|
|
1
|
+
import { B as BaseSdkOptions, W as WithAddPlugin, P as PluginMeta, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, M as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, b as AddActionEntryOptions, c as AddActionEntryResult, d as ActionEntry, f as findManifestEntry, r as readManifestFromFile, C as CapabilitiesContext, e as PaginatedSdkResult, F as FieldsetItem, g as PositionalMetadata, h as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, i as DynamicResolver, j as WatchTriggerInboxOptions, k as ActionProxy, l as ZapierSdkApps } from './index-4QyPPLfu.mjs';
|
|
2
|
+
export { u as Action, ci as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aW as ActionItem, bx as ActionKeyProperty, b5 as ActionKeyPropertySchema, by as ActionProperty, b6 as ActionPropertySchema, as as ActionResolverItem, bJ as ActionTimeoutMsProperty, bh as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bw as ActionTypeProperty, b4 as ActionTypePropertySchema, bW as ApiError, dE as ApiEvent, d0 as ApiPluginOptions, d2 as ApiPluginProvides, v as App, cj as AppFactoryInput, aU as AppItem, bu as AppKeyProperty, b2 as AppKeyPropertySchema, bv as AppProperty, b3 as AppPropertySchema, aD as ApplicationLifecycleEventData, cb as ApprovalStatus, ch as AppsPluginProvides, bO as AppsProperty, bm as AppsPropertySchema, a0 as ArrayResolver, dD as AuthEvent, bC as AuthenticationIdProperty, b9 as AuthenticationIdPropertySchema, az as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cP as CONTEXT_CACHE_MAX_SIZE, cO as CONTEXT_CACHE_TTL_MS, x as Choice, dK as ClientCredentialsObject, dV as ClientCredentialsObjectSchema, K as Connection, e1 as ConnectionEntry, e0 as ConnectionEntrySchema, bA as ConnectionIdProperty, b8 as ConnectionIdPropertySchema, aV as ConnectionItem, bB as ConnectionProperty, ba as ConnectionPropertySchema, e3 as ConnectionsMap, e2 as ConnectionsMapSchema, e5 as ConnectionsPluginProvides, bQ as ConnectionsProperty, bo as ConnectionsPropertySchema, O as ConnectionsResponse, cB as CreateClientCredentialsPluginProvides, ev as CreateTableFieldsPluginProvides, ep as CreateTablePluginProvides, eD as CreateTableRecordsPluginProvides, dH as Credentials, d_ as CredentialsFunction, dZ as CredentialsFunctionSchema, dJ as CredentialsObject, dX as CredentialsObjectSchema, d$ as CredentialsSchema, ea as DEFAULT_ACTION_TIMEOUT_MS, ei as DEFAULT_APPROVAL_TIMEOUT_MS, cY as DEFAULT_CONFIG_PATH, ej as DEFAULT_MAX_APPROVAL_RETRIES, e9 as DEFAULT_PAGE_SIZE, bH as DebugProperty, bf as DebugPropertySchema, cD as DeleteClientCredentialsPluginProvides, ex as DeleteTableFieldsPluginProvides, er as DeleteTablePluginProvides, eF as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, a3 as DynamicListResolver, a4 as DynamicSearchResolver, aE as EnhancedErrorEventData, bX as ErrorOptions, dG as EventCallback, aC as EventContext, aB as EventEmissionProvides, cl as FetchPluginProvides, w as Field, bN as FieldsProperty, bl as FieldsPropertySchema, a5 as FieldsResolver, s as FindFirstAuthenticationPluginProvides, cL as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cN as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, a$ as FunctionOptions, aj as FunctionRegistryEntry, cv as GetActionInputFieldsSchemaPluginProvides, cH as GetActionPluginProvides, cF as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cJ as GetConnectionPluginProvides, c$ as GetProfilePluginProvides, en as GetTablePluginProvides, ez as GetTableRecordPluginProvides, aY as InfoFieldItem, aX as InputFieldItem, bz as InputFieldProperty, b7 as InputFieldPropertySchema, bD as InputsProperty, bb as InputsPropertySchema, bV as LeaseLimitProperty, bt as LeaseLimitPropertySchema, bT as LeaseProperty, br as LeasePropertySchema, bU as LeaseSecondsProperty, bs as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bE as LimitProperty, bc as LimitPropertySchema, ct as ListActionInputFieldChoicesPluginProvides, cr as ListActionInputFieldsPluginProvides, cp as ListActionsPluginProvides, cn as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, cz as ListClientCredentialsPluginProvides, cx as ListConnectionsPluginProvides, et as ListTableFieldsPluginProvides, eB as ListTableRecordsPluginProvides, el as ListTablesPluginProvides, dF as LoadingEvent, ed as MAX_CONCURRENCY_LIMIT, e8 as MAX_PAGE_LIMIT, cZ as ManifestEntry, cU as ManifestPluginOptions, cX as ManifestPluginProvides, aA as MethodCalledEvent, aF as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bF as OffsetProperty, bd as OffsetPropertySchema, _ as OutputFormatter, bG as OutputProperty, be as OutputPropertySchema, b1 as PaginatedSdkFunction, bI as ParamsProperty, bg as ParamsPropertySchema, dL as PkceCredentialsObject, dW as PkceCredentialsObjectSchema, am as Plugin, an as PluginProvides, aw as PollOptions, c9 as RateLimitInfo, bL as RecordProperty, bj as RecordPropertySchema, bM as RecordsProperty, bk as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cT as RequestPluginProvides, dq as ResolveAuthTokenOptions, dQ as ResolveCredentialsOptions, dI as ResolvedCredentials, dY as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aZ as RootFieldItem, cR as RunActionPluginProvides, dC as SdkEvent, b0 as SdkPage, a2 as StaticResolver, bK as TableProperty, bi as TablePropertySchema, bP as TablesProperty, bn as TablesPropertySchema, bS as TriggerInboxNameProperty, bq as TriggerInboxNamePropertySchema, bR as TriggerInboxProperty, bp as TriggerInboxPropertySchema, T as TriggerMessageStatus, eH as UpdateTableRecordsPluginProvides, Q as UserProfile, a_ as UserProfileItem, e6 as ZAPIER_BASE_URL, ef as ZAPIER_MAX_CONCURRENT_REQUESTS, eb as ZAPIER_MAX_NETWORK_RETRIES, ec as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, c7 as ZapierActionError, bZ as ZapierApiError, b_ as ZapierAppNotFoundError, cc as ZapierApprovalError, c1 as ZapierAuthenticationError, c5 as ZapierBundleError, dy as ZapierCache, dz as ZapierCacheEntry, dA as ZapierCacheSetOptions, c4 as ZapierConfigurationError, c8 as ZapierConflictError, bY as ZapierError, c2 as ZapierNotFoundError, ca as ZapierRateLimitError, cd as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, c3 as ZapierResourceNotFoundError, cf as ZapierSignal, c6 as ZapierTimeoutError, c0 as ZapierUnknownError, b$ as ZapierValidationError, d5 as actionKeyResolver, d4 as actionTypeResolver, d1 as apiPlugin, d3 as appKeyResolver, cg as appsPlugin, d7 as authenticationIdGenericResolver, d6 as authenticationIdResolver, a9 as batch, aP as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, aR as buildErrorEvent, aQ as buildErrorEventWithContext, aT as buildMethodCalledEvent, dr as clearTokenCache, db as clientCredentialsNameResolver, dc as clientIdResolver, ar as composePlugins, d7 as connectionIdGenericResolver, d6 as connectionIdResolver, e4 as connectionsPlugin, aS as createBaseEvent, cA as createClientCredentialsPlugin, V as createFunction, dB as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, eu as createTableFieldsPlugin, eo as createTablePlugin, eC as createTableRecordsPlugin, ax as createZapierApi, ag as createZapierSdkWithoutRegistry, ao as definePlugin, cC as deleteClientCredentialsPlugin, ew as deleteTableFieldsPlugin, eq as deleteTablePlugin, eE as deleteTableRecordsPlugin, ck as fetchPlugin, cK as findFirstConnectionPlugin, cM as findUniqueConnectionPlugin, ce as formatErrorMessage, aG as generateEventId, cu as getActionInputFieldsSchemaPlugin, cG as getActionPlugin, cE as getAppPlugin, dT as getBaseUrlFromCredentials, aM as getCiPlatform, dU as getClientIdFromCredentials, cI as getConnectionPlugin, aO as getCpuTime, aH as getCurrentTimestamp, aN as getMemoryUsage, ay as getOrCreateApiClient, aJ as getOsInfo, aK as getPlatformVersions, cV as getPreferredManifestEntryKey, c_ as getProfilePlugin, aI as getReleaseId, em as getTablePlugin, ey as getTableRecordPlugin, dv as getTokenFromCliLogin, eg as getZapierApprovalMode, eh as getZapierDefaultApprovalMode, e7 as getZapierSdkService, dt as injectCliLogin, da as inputFieldKeyResolver, d9 as inputsAllOptionalResolver, d8 as inputsResolver, ds as invalidateCachedToken, dx as invalidateCredentialsToken, aL as isCi, du as isCliLoginAvailable, dM as isClientCredentials, dP as isCredentialsFunction, dO as isCredentialsObject, dN as isPkceCredentials, S as isPositional, cs as listActionInputFieldChoicesPlugin, cq as listActionInputFieldsPlugin, co as listActionsPlugin, cm as listAppsPlugin, cy as listClientCredentialsPlugin, cw as listConnectionsPlugin, es as listTableFieldsPlugin, eA as listTableRecordsPlugin, ek as listTablesPlugin, ac as logDeprecation, cW as manifestPlugin, ee as parseConcurrencyEnvVar, au as registryPlugin, cS as requestPlugin, ad as resetDeprecationWarnings, dw as resolveAuthToken, dS as resolveCredentials, dR as resolveCredentialsFromEnv, cQ as runActionPlugin, a6 as runWithTelemetryContext, di as tableFieldIdsResolver, dk as tableFieldsResolver, dn as tableFiltersResolver, dd as tableIdResolver, dj as tableNameResolver, dg as tableRecordIdResolver, dh as tableRecordIdsResolver, dl as tableRecordsResolver, dp as tableSortResolver, dm as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, de as triggerInboxResolver, df as triggerMessagesResolver, eG as updateTableRecordsPlugin } from './index-4QyPPLfu.mjs';
|
|
3
3
|
import * as zod_v4_core from 'zod/v4/core';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
@@ -2054,10 +2054,12 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2054
2054
|
table: string;
|
|
2055
2055
|
fields?: (string | number)[] | undefined;
|
|
2056
2056
|
fieldKeys?: (string | number)[] | undefined;
|
|
2057
|
+
trash?: "exclude" | "include" | "only" | undefined;
|
|
2057
2058
|
} | {
|
|
2058
2059
|
tableId: string;
|
|
2059
2060
|
fields?: (string | number)[] | undefined;
|
|
2060
2061
|
fieldKeys?: (string | number)[] | undefined;
|
|
2062
|
+
trash?: "exclude" | "include" | "only" | undefined;
|
|
2061
2063
|
} | undefined) => Promise<{
|
|
2062
2064
|
data: {
|
|
2063
2065
|
id: string;
|
|
@@ -2067,6 +2069,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2067
2069
|
edited_at?: string | undefined;
|
|
2068
2070
|
options?: Record<string, unknown> | undefined;
|
|
2069
2071
|
config?: Record<string, unknown> | undefined;
|
|
2072
|
+
deleted_at?: string | null | undefined;
|
|
2070
2073
|
}[];
|
|
2071
2074
|
}>;
|
|
2072
2075
|
} & {
|
|
@@ -2101,6 +2104,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2101
2104
|
edited_at?: string | undefined;
|
|
2102
2105
|
options?: Record<string, unknown> | undefined;
|
|
2103
2106
|
config?: Record<string, unknown> | undefined;
|
|
2107
|
+
deleted_at?: string | null | undefined;
|
|
2104
2108
|
}[];
|
|
2105
2109
|
}>;
|
|
2106
2110
|
} & {
|
|
@@ -2140,6 +2144,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2140
2144
|
id: string;
|
|
2141
2145
|
created_at: string;
|
|
2142
2146
|
edited_at: string;
|
|
2147
|
+
deleted_at?: string | null | undefined;
|
|
2143
2148
|
};
|
|
2144
2149
|
}>;
|
|
2145
2150
|
} & {
|
|
@@ -2164,6 +2169,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2164
2169
|
pageSize?: number | undefined;
|
|
2165
2170
|
maxItems?: number | undefined;
|
|
2166
2171
|
cursor?: string | undefined;
|
|
2172
|
+
trash?: "exclude" | "include" | "only" | undefined;
|
|
2167
2173
|
} | {
|
|
2168
2174
|
tableId: string;
|
|
2169
2175
|
keyMode: "names" | "ids";
|
|
@@ -2179,6 +2185,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2179
2185
|
pageSize?: number | undefined;
|
|
2180
2186
|
maxItems?: number | undefined;
|
|
2181
2187
|
cursor?: string | undefined;
|
|
2188
|
+
trash?: "exclude" | "include" | "only" | undefined;
|
|
2182
2189
|
}) & {
|
|
2183
2190
|
cursor?: string;
|
|
2184
2191
|
pageSize?: number;
|
|
@@ -2188,6 +2195,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2188
2195
|
data: Record<string, unknown>;
|
|
2189
2196
|
created_at: string;
|
|
2190
2197
|
edited_at: string;
|
|
2198
|
+
deleted_at?: string | null | undefined;
|
|
2191
2199
|
}>;
|
|
2192
2200
|
} & {
|
|
2193
2201
|
context: {
|
|
@@ -2214,6 +2222,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2214
2222
|
id: string;
|
|
2215
2223
|
created_at: string;
|
|
2216
2224
|
edited_at: string;
|
|
2225
|
+
deleted_at?: string | null | undefined;
|
|
2217
2226
|
}[];
|
|
2218
2227
|
}>;
|
|
2219
2228
|
} & {
|
|
@@ -2259,6 +2268,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
2259
2268
|
id: string;
|
|
2260
2269
|
created_at: string;
|
|
2261
2270
|
edited_at: string;
|
|
2271
|
+
deleted_at?: string | null | undefined;
|
|
2262
2272
|
}[];
|
|
2263
2273
|
}>;
|
|
2264
2274
|
} & {
|
package/dist/experimental.d.ts
CHANGED
|
@@ -2069,10 +2069,12 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
2069
2069
|
table: string;
|
|
2070
2070
|
fields?: (string | number)[] | undefined;
|
|
2071
2071
|
fieldKeys?: (string | number)[] | undefined;
|
|
2072
|
+
trash?: "only" | "include" | "exclude" | undefined;
|
|
2072
2073
|
} | {
|
|
2073
2074
|
tableId: string;
|
|
2074
2075
|
fields?: (string | number)[] | undefined;
|
|
2075
2076
|
fieldKeys?: (string | number)[] | undefined;
|
|
2077
|
+
trash?: "only" | "include" | "exclude" | undefined;
|
|
2076
2078
|
} | undefined) => Promise<{
|
|
2077
2079
|
data: {
|
|
2078
2080
|
id: string;
|
|
@@ -2082,6 +2084,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
2082
2084
|
edited_at?: string | undefined;
|
|
2083
2085
|
options?: Record<string, unknown> | undefined;
|
|
2084
2086
|
config?: Record<string, unknown> | undefined;
|
|
2087
|
+
deleted_at?: string | null | undefined;
|
|
2085
2088
|
}[];
|
|
2086
2089
|
}>;
|
|
2087
2090
|
} & {
|
|
@@ -2116,6 +2119,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
2116
2119
|
edited_at?: string | undefined;
|
|
2117
2120
|
options?: Record<string, unknown> | undefined;
|
|
2118
2121
|
config?: Record<string, unknown> | undefined;
|
|
2122
|
+
deleted_at?: string | null | undefined;
|
|
2119
2123
|
}[];
|
|
2120
2124
|
}>;
|
|
2121
2125
|
} & {
|
|
@@ -2155,6 +2159,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
2155
2159
|
id: string;
|
|
2156
2160
|
created_at: string;
|
|
2157
2161
|
edited_at: string;
|
|
2162
|
+
deleted_at?: string | null | undefined;
|
|
2158
2163
|
};
|
|
2159
2164
|
}>;
|
|
2160
2165
|
} & {
|
|
@@ -2179,6 +2184,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
2179
2184
|
pageSize?: number | undefined;
|
|
2180
2185
|
maxItems?: number | undefined;
|
|
2181
2186
|
cursor?: string | undefined;
|
|
2187
|
+
trash?: "only" | "include" | "exclude" | undefined;
|
|
2182
2188
|
} | {
|
|
2183
2189
|
tableId: string;
|
|
2184
2190
|
keyMode: "names" | "ids";
|
|
@@ -2194,6 +2200,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
2194
2200
|
pageSize?: number | undefined;
|
|
2195
2201
|
maxItems?: number | undefined;
|
|
2196
2202
|
cursor?: string | undefined;
|
|
2203
|
+
trash?: "only" | "include" | "exclude" | undefined;
|
|
2197
2204
|
}) & {
|
|
2198
2205
|
cursor?: string;
|
|
2199
2206
|
pageSize?: number;
|
|
@@ -2203,6 +2210,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
2203
2210
|
data: Record<string, unknown>;
|
|
2204
2211
|
created_at: string;
|
|
2205
2212
|
edited_at: string;
|
|
2213
|
+
deleted_at?: string | null | undefined;
|
|
2206
2214
|
}>;
|
|
2207
2215
|
} & {
|
|
2208
2216
|
context: {
|
|
@@ -2229,6 +2237,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
2229
2237
|
id: string;
|
|
2230
2238
|
created_at: string;
|
|
2231
2239
|
edited_at: string;
|
|
2240
|
+
deleted_at?: string | null | undefined;
|
|
2232
2241
|
}[];
|
|
2233
2242
|
}>;
|
|
2234
2243
|
} & {
|
|
@@ -2274,6 +2283,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
2274
2283
|
id: string;
|
|
2275
2284
|
created_at: string;
|
|
2276
2285
|
edited_at: string;
|
|
2286
|
+
deleted_at?: string | null | undefined;
|
|
2277
2287
|
}[];
|
|
2278
2288
|
}>;
|
|
2279
2289
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAwEjD,cAAc,SAAS,CAAC;AAExB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAE3D,wBAAgB,eAAe,CAAC,OAAO,GAAE,gBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA+Fq9K,CAAC;;;;sBAAiX,CAAC;qBAAyB,CAAC
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"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"}
|
package/dist/experimental.mjs
CHANGED
|
@@ -2883,7 +2883,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
2883
2883
|
}
|
|
2884
2884
|
|
|
2885
2885
|
// src/sdk-version.ts
|
|
2886
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2886
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.57.0" : void 0) || "unknown";
|
|
2887
2887
|
|
|
2888
2888
|
// src/utils/open-url.ts
|
|
2889
2889
|
var nodePrefix = "node:";
|
|
@@ -4325,7 +4325,8 @@ function transformFieldItem(apiItem) {
|
|
|
4325
4325
|
created_at: apiItem.created_at,
|
|
4326
4326
|
edited_at: apiItem.edited_at,
|
|
4327
4327
|
options: apiItem.options,
|
|
4328
|
-
config: apiItem.config
|
|
4328
|
+
config: apiItem.config,
|
|
4329
|
+
deleted_at: apiItem.deleted_at
|
|
4329
4330
|
};
|
|
4330
4331
|
}
|
|
4331
4332
|
function transformRecordItem(apiItem) {
|
|
@@ -4333,7 +4334,8 @@ function transformRecordItem(apiItem) {
|
|
|
4333
4334
|
id: apiItem.id,
|
|
4334
4335
|
data: apiItem.data,
|
|
4335
4336
|
created_at: apiItem.created_at,
|
|
4336
|
-
edited_at: apiItem.edited_at
|
|
4337
|
+
edited_at: apiItem.edited_at,
|
|
4338
|
+
deleted_at: apiItem.deleted_at
|
|
4337
4339
|
};
|
|
4338
4340
|
}
|
|
4339
4341
|
function formatRecordError(fieldId, err) {
|
|
@@ -4377,6 +4379,9 @@ function throwOnResponseErrors(response) {
|
|
|
4377
4379
|
var KeyModeSchema = z.enum(["names", "ids"]).optional().default("names").describe(
|
|
4378
4380
|
'How to interpret field keys in record data. "names" (default) uses human-readable field names, "ids" uses raw field IDs (f1, f2).'
|
|
4379
4381
|
);
|
|
4382
|
+
var TrashSchema = z.enum(["exclude", "include", "only"]).optional().describe(
|
|
4383
|
+
'Control soft-deleted item visibility. "exclude" (default) returns active items only, "include" returns both active and soft-deleted, "only" returns soft-deleted items only.'
|
|
4384
|
+
);
|
|
4380
4385
|
var FIELD_ID_PATTERN = /^f\d+$/;
|
|
4381
4386
|
function isFieldId(key) {
|
|
4382
4387
|
return FIELD_ID_PATTERN.test(key);
|
|
@@ -4627,7 +4632,8 @@ var FieldApiItemSchema = z.object({
|
|
|
4627
4632
|
config: z.record(z.string(), z.unknown()).optional(),
|
|
4628
4633
|
is_order_field: z.boolean().optional(),
|
|
4629
4634
|
is_filter_field: z.boolean().optional(),
|
|
4630
|
-
is_selected_field: z.boolean().optional()
|
|
4635
|
+
is_selected_field: z.boolean().optional(),
|
|
4636
|
+
deleted_at: z.string().nullable().optional()
|
|
4631
4637
|
});
|
|
4632
4638
|
var ListTableFieldsApiResponseSchema = z.object({
|
|
4633
4639
|
data: z.array(FieldApiItemSchema)
|
|
@@ -4639,7 +4645,8 @@ var FieldItemSchemaBase = z.object({
|
|
|
4639
4645
|
created_at: z.string().optional(),
|
|
4640
4646
|
edited_at: z.string().optional(),
|
|
4641
4647
|
options: z.record(z.string(), z.unknown()).optional(),
|
|
4642
|
-
config: z.record(z.string(), z.unknown()).optional()
|
|
4648
|
+
config: z.record(z.string(), z.unknown()).optional(),
|
|
4649
|
+
deleted_at: z.string().nullable().optional()
|
|
4643
4650
|
});
|
|
4644
4651
|
var FieldItemSchema = withFormatter(FieldItemSchemaBase, {
|
|
4645
4652
|
format: (item) => ({
|
|
@@ -4653,7 +4660,8 @@ var ListTableFieldsOptionsBaseSchema = z.object({
|
|
|
4653
4660
|
fields: FieldsPropertySchema.optional(),
|
|
4654
4661
|
fieldKeys: z.array(z.union([z.string(), z.number()])).optional().describe(
|
|
4655
4662
|
'Filter by specific fields. Accepts field names (e.g., "Email") or IDs (e.g., "f6", "6", or 6).'
|
|
4656
|
-
).meta({ deprecated: true })
|
|
4663
|
+
).meta({ deprecated: true }),
|
|
4664
|
+
trash: TrashSchema
|
|
4657
4665
|
});
|
|
4658
4666
|
var ListTableFieldsOptionsSchema = z.object({
|
|
4659
4667
|
table: TablePropertySchema
|
|
@@ -7080,6 +7088,9 @@ var listTableFieldsPlugin = definePlugin(
|
|
|
7080
7088
|
});
|
|
7081
7089
|
searchParams.field_ids = numericIds.join(",");
|
|
7082
7090
|
}
|
|
7091
|
+
if (options.trash) {
|
|
7092
|
+
searchParams.trash = options.trash;
|
|
7093
|
+
}
|
|
7083
7094
|
const rawResponse = await api.get(
|
|
7084
7095
|
`/tables/api/v1/tables/${tableId}/fields`,
|
|
7085
7096
|
{
|
|
@@ -7210,13 +7221,15 @@ var RecordApiItemSchema = z.object({
|
|
|
7210
7221
|
schema_revision_id: z.number(),
|
|
7211
7222
|
errors: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
7212
7223
|
orig_data: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
7213
|
-
is_source_record: z.boolean().nullable().optional()
|
|
7224
|
+
is_source_record: z.boolean().nullable().optional(),
|
|
7225
|
+
deleted_at: z.string().nullable().optional()
|
|
7214
7226
|
});
|
|
7215
7227
|
var RecordItemSchemaBase = z.object({
|
|
7216
7228
|
id: z.string(),
|
|
7217
7229
|
data: z.record(z.string(), z.unknown()),
|
|
7218
7230
|
created_at: z.string(),
|
|
7219
|
-
edited_at: z.string()
|
|
7231
|
+
edited_at: z.string(),
|
|
7232
|
+
deleted_at: z.string().nullable().optional()
|
|
7220
7233
|
});
|
|
7221
7234
|
var RecordItemSchema = withFormatter(RecordItemSchemaBase, {
|
|
7222
7235
|
format: (item) => ({
|
|
@@ -7346,7 +7359,8 @@ var ListTableRecordsBase = z.object({
|
|
|
7346
7359
|
pageSize: z.number().min(1).max(1e3).optional().describe("Number of records per page (max 1000)"),
|
|
7347
7360
|
maxItems: z.number().min(1).optional().describe("Maximum total items to return across all pages"),
|
|
7348
7361
|
cursor: z.string().optional().describe("Cursor to start from"),
|
|
7349
|
-
keyMode: KeyModeSchema
|
|
7362
|
+
keyMode: KeyModeSchema,
|
|
7363
|
+
trash: TrashSchema
|
|
7350
7364
|
});
|
|
7351
7365
|
var ListTableRecordsOptionsSchema = z.object({
|
|
7352
7366
|
table: TablePropertySchema
|
|
@@ -7411,11 +7425,17 @@ var listTableRecordsPlugin = definePlugin(
|
|
|
7411
7425
|
start_cursor: options.cursor
|
|
7412
7426
|
};
|
|
7413
7427
|
}
|
|
7428
|
+
const searchParams = {
|
|
7429
|
+
allow_nested_queries: "true"
|
|
7430
|
+
};
|
|
7431
|
+
if (options.trash) {
|
|
7432
|
+
searchParams.trash = options.trash;
|
|
7433
|
+
}
|
|
7414
7434
|
const rawResponse = await api.post(
|
|
7415
7435
|
`/tables/api/v1/tables/${tableId}/records/query`,
|
|
7416
7436
|
body,
|
|
7417
7437
|
{
|
|
7418
|
-
searchParams
|
|
7438
|
+
searchParams,
|
|
7419
7439
|
authRequired: true,
|
|
7420
7440
|
resource: { type: "table", id: tableId }
|
|
7421
7441
|
}
|
|
@@ -9211,7 +9231,7 @@ var ensureTriggerInboxPlugin = definePlugin(
|
|
|
9211
9231
|
if (notificationUrl !== void 0) {
|
|
9212
9232
|
requestBody.notification_url = notificationUrl;
|
|
9213
9233
|
}
|
|
9214
|
-
const rawResponse = await api.
|
|
9234
|
+
const rawResponse = await api.put(
|
|
9215
9235
|
"/trigger-inbox/api/v1/inboxes",
|
|
9216
9236
|
requestBody,
|
|
9217
9237
|
{
|