@frogbotai/piece-airtable 0.22.0 → 0.23.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 (46) hide show
  1. package/README.md +40 -0
  2. package/dist/actions/customApiCall.d.ts +31 -0
  3. package/dist/actions/customApiCall.d.ts.map +1 -0
  4. package/dist/actions/customApiCall.js +27 -0
  5. package/dist/actions/customApiCall.js.map +1 -0
  6. package/dist/actions/records.d.ts +221 -0
  7. package/dist/actions/records.d.ts.map +1 -0
  8. package/dist/actions/records.js +221 -0
  9. package/dist/actions/records.js.map +1 -0
  10. package/dist/actions/schema.d.ts +260 -0
  11. package/dist/actions/schema.d.ts.map +1 -0
  12. package/dist/actions/schema.js +122 -0
  13. package/dist/actions/schema.js.map +1 -0
  14. package/dist/client.d.ts +22 -0
  15. package/dist/client.d.ts.map +1 -0
  16. package/dist/client.js +44 -0
  17. package/dist/client.js.map +1 -0
  18. package/dist/config.d.ts +5 -0
  19. package/dist/config.d.ts.map +1 -0
  20. package/dist/config.js +5 -0
  21. package/dist/config.js.map +1 -0
  22. package/dist/definitions.d.ts +46 -0
  23. package/dist/definitions.d.ts.map +1 -0
  24. package/dist/definitions.js +7 -0
  25. package/dist/definitions.js.map +1 -0
  26. package/dist/index.d.ts +571 -35
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +51 -51
  29. package/dist/index.js.map +1 -1
  30. package/dist/options.d.ts +53 -0
  31. package/dist/options.d.ts.map +1 -0
  32. package/dist/options.js +37 -0
  33. package/dist/options.js.map +1 -0
  34. package/dist/piece-types.d.ts +407 -0
  35. package/dist/piece-types.d.ts.map +1 -0
  36. package/dist/piece-types.js +2 -0
  37. package/dist/piece-types.js.map +1 -0
  38. package/dist/schemas.d.ts +50 -0
  39. package/dist/schemas.d.ts.map +1 -0
  40. package/dist/schemas.js +52 -0
  41. package/dist/schemas.js.map +1 -0
  42. package/dist/triggers/records.d.ts +67 -0
  43. package/dist/triggers/records.d.ts.map +1 -0
  44. package/dist/triggers/records.js +60 -0
  45. package/dist/triggers/records.js.map +1 -0
  46. package/package.json +6 -5
@@ -0,0 +1,50 @@
1
+ import { z } from 'zod';
2
+ export declare const fieldsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3
+ export declare const recordSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ createdTime: z.ZodOptional<z.ZodString>;
6
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
+ }, z.core.$loose>;
8
+ export declare const fieldSchema: z.ZodObject<{
9
+ id: z.ZodOptional<z.ZodString>;
10
+ name: z.ZodString;
11
+ type: z.ZodString;
12
+ description: z.ZodOptional<z.ZodString>;
13
+ options: z.ZodOptional<z.ZodUnknown>;
14
+ }, z.core.$loose>;
15
+ export declare const tableSchema: z.ZodObject<{
16
+ id: z.ZodString;
17
+ name: z.ZodString;
18
+ description: z.ZodOptional<z.ZodString>;
19
+ primaryFieldId: z.ZodOptional<z.ZodString>;
20
+ fields: z.ZodArray<z.ZodObject<{
21
+ id: z.ZodOptional<z.ZodString>;
22
+ name: z.ZodString;
23
+ type: z.ZodString;
24
+ description: z.ZodOptional<z.ZodString>;
25
+ options: z.ZodOptional<z.ZodUnknown>;
26
+ }, z.core.$loose>>;
27
+ views: z.ZodOptional<z.ZodArray<z.ZodObject<{
28
+ id: z.ZodString;
29
+ name: z.ZodString;
30
+ type: z.ZodOptional<z.ZodString>;
31
+ }, z.core.$loose>>>;
32
+ }, z.core.$loose>;
33
+ export declare const baseSchema: z.ZodObject<{
34
+ id: z.ZodString;
35
+ name: z.ZodString;
36
+ permissionLevel: z.ZodOptional<z.ZodString>;
37
+ workspaceId: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$loose>;
39
+ export declare const commentSchema: z.ZodObject<{
40
+ id: z.ZodString;
41
+ text: z.ZodString;
42
+ createdTime: z.ZodString;
43
+ lastUpdatedTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ parentCommentId: z.ZodOptional<z.ZodString>;
45
+ }, z.core.$loose>;
46
+ export declare const selectionSchema: {
47
+ baseId: z.ZodString;
48
+ tableId: z.ZodString;
49
+ };
50
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY,wCAAoC,CAAC;AAC9D,eAAO,MAAM,YAAY;;;;iBAMT,CAAC;AACjB,eAAO,MAAM,WAAW;;;;;;iBAQR,CAAC;AACjB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;iBAaR,CAAC;AACjB,eAAO,MAAM,UAAU;;;;;iBAOP,CAAC;AACjB,eAAO,MAAM,aAAa;;;;;;iBAQV,CAAC;AAEjB,eAAO,MAAM,eAAe;;;CAG3B,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { z } from 'zod';
2
+ export const fieldsSchema = z.record(z.string(), z.unknown());
3
+ export const recordSchema = z
4
+ .object({
5
+ id: z.string(),
6
+ createdTime: z.string().optional(),
7
+ fields: fieldsSchema,
8
+ })
9
+ .passthrough();
10
+ export const fieldSchema = z
11
+ .object({
12
+ id: z.string().optional(),
13
+ name: z.string(),
14
+ type: z.string(),
15
+ description: z.string().optional(),
16
+ options: z.unknown().optional(),
17
+ })
18
+ .passthrough();
19
+ export const tableSchema = z
20
+ .object({
21
+ id: z.string(),
22
+ name: z.string(),
23
+ description: z.string().optional(),
24
+ primaryFieldId: z.string().optional(),
25
+ fields: z.array(fieldSchema),
26
+ views: z
27
+ .array(z.object({ id: z.string(), name: z.string(), type: z.string().optional() }).passthrough())
28
+ .optional(),
29
+ })
30
+ .passthrough();
31
+ export const baseSchema = z
32
+ .object({
33
+ id: z.string(),
34
+ name: z.string(),
35
+ permissionLevel: z.string().optional(),
36
+ workspaceId: z.string().optional(),
37
+ })
38
+ .passthrough();
39
+ export const commentSchema = z
40
+ .object({
41
+ id: z.string(),
42
+ text: z.string(),
43
+ createdTime: z.string(),
44
+ lastUpdatedTime: z.string().nullable().optional(),
45
+ parentCommentId: z.string().optional(),
46
+ })
47
+ .passthrough();
48
+ export const selectionSchema = {
49
+ baseId: z.string().min(1).meta({ label: 'Base' }),
50
+ tableId: z.string().min(1).meta({ label: 'Table' }),
51
+ };
52
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;AAC9D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC;KAC1B,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,YAAY;CACrB,CAAC;KACD,WAAW,EAAE,CAAC;AACjB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC;KACD,WAAW,EAAE,CAAC;AACjB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,C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AAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;IACjD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;CACpD,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { z } from 'zod';
2
+ export declare const newRecord: Omit<import("frogbot").PiecePollingTrigger<z.ZodObject<{
3
+ baseId: z.ZodString;
4
+ tableId: z.ZodString;
5
+ viewId: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>, z.ZodObject<{
7
+ id: z.ZodString;
8
+ createdTime: z.ZodOptional<z.ZodString>;
9
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
+ }, z.core.$loose>, object, {
11
+ request: <T>({ method, path, query, body, signal, baseUrl, }: {
12
+ method?: string;
13
+ path: string;
14
+ query?: Record<string, string | number | boolean | undefined>;
15
+ body?: unknown;
16
+ signal?: AbortSignal;
17
+ baseUrl?: string;
18
+ }) => Promise<T>;
19
+ listAll: <T>({ path, key, query, signal, }: {
20
+ path: string;
21
+ key: string;
22
+ query?: Record<string, string | number | boolean | undefined>;
23
+ signal?: AbortSignal;
24
+ }) => Promise<T[]>;
25
+ }, number>, "sample" | "slug"> & {
26
+ sample: {
27
+ readonly id: "recExample";
28
+ readonly fields: {
29
+ readonly Name: "Example";
30
+ };
31
+ };
32
+ slug: "newRecord";
33
+ };
34
+ export declare const newOrUpdatedRecord: Omit<import("frogbot").PiecePollingTrigger<z.ZodObject<{
35
+ baseId: z.ZodString;
36
+ tableId: z.ZodString;
37
+ viewId: z.ZodOptional<z.ZodString>;
38
+ modifiedTimeField: z.ZodString;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ id: z.ZodString;
41
+ createdTime: z.ZodOptional<z.ZodString>;
42
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
43
+ }, z.core.$loose>, object, {
44
+ request: <T>({ method, path, query, body, signal, baseUrl, }: {
45
+ method?: string;
46
+ path: string;
47
+ query?: Record<string, string | number | boolean | undefined>;
48
+ body?: unknown;
49
+ signal?: AbortSignal;
50
+ baseUrl?: string;
51
+ }) => Promise<T>;
52
+ listAll: <T>({ path, key, query, signal, }: {
53
+ path: string;
54
+ key: string;
55
+ query?: Record<string, string | number | boolean | undefined>;
56
+ signal?: AbortSignal;
57
+ }) => Promise<T[]>;
58
+ }, number>, "sample" | "slug"> & {
59
+ sample: {
60
+ readonly id: "recExample";
61
+ readonly fields: {
62
+ readonly Name: "Example";
63
+ };
64
+ };
65
+ slug: "newOrUpdatedRecord";
66
+ };
67
+ //# sourceMappingURL=records.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../src/triggers/records.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,eAAO,MAAM,SAAS;;;;;;;;;;cAhBpB,CAAC;;aAED,CAAA;YAGa,CAAC;cAAqB,CAAC;eAA0B,CAAC;;;;;aAmCvB,CAAC;cAAwC,CAAC;;;;;;;;;;CAHlF,CAAC;AAMH,eAAO,MAAM,kBAAkB;;;;;;;;;;;cA3C7B,CAAC;;aAED,CAAA;YAGa,CAAC;cAAqB,CAAC;eAA0B,CAAC;;;;;aAmCvB,CAAC;cAAwC,CAAC;;;;;;;;;;CAiClF,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { z } from 'zod';
2
+ import { defineAirtablePollingTrigger } from '../definitions.js';
3
+ import { recordSchema } from '../schemas.js';
4
+ const newRecordInput = z.object({
5
+ baseId: z.string().min(1).meta({ label: 'Base ID' }),
6
+ tableId: z.string().min(1).meta({ label: 'Table ID' }),
7
+ viewId: z.string().optional().meta({ label: 'View ID' }),
8
+ });
9
+ async function listRecords({ client, input, req, query, }) {
10
+ return client.listAll({
11
+ path: `/${input.baseId}/${input.tableId}`,
12
+ key: 'records',
13
+ query: { view: input.viewId, ...query },
14
+ signal: req.signal ?? undefined,
15
+ });
16
+ }
17
+ export const newRecord = defineAirtablePollingTrigger({
18
+ slug: 'newRecord',
19
+ description: 'Emit records created since the previous poll.',
20
+ type: 'polling',
21
+ schedule: '*/5 * * * *',
22
+ input: newRecordInput,
23
+ output: recordSchema,
24
+ sample: { id: 'recExample', fields: { Name: 'Example' } },
25
+ async run(args) {
26
+ const now = Date.now();
27
+ const records = await listRecords(args);
28
+ const events = records.filter(({ createdTime }) => {
29
+ return !args.cursor || (createdTime !== undefined && Date.parse(createdTime) > args.cursor);
30
+ });
31
+ return { events, cursor: now };
32
+ },
33
+ });
34
+ const updatedRecordInput = newRecordInput.extend({
35
+ modifiedTimeField: z.string().min(1).meta({ label: 'Last modified time field name' }),
36
+ });
37
+ export const newOrUpdatedRecord = defineAirtablePollingTrigger({
38
+ slug: 'newOrUpdatedRecord',
39
+ description: 'Emit records created or updated since the previous poll.',
40
+ type: 'polling',
41
+ schedule: '*/5 * * * *',
42
+ input: updatedRecordInput,
43
+ output: recordSchema,
44
+ sample: { id: 'recExample', fields: { Name: 'Example' } },
45
+ async run({ client, input, cursor, req, }) {
46
+ const now = Date.now();
47
+ const since = new Date(cursor ?? now - 86_400_000).toISOString();
48
+ const records = await listRecords({
49
+ client,
50
+ input,
51
+ options: {},
52
+ req,
53
+ query: {
54
+ filterByFormula: `IS_AFTER({${input.modifiedTimeField}},${JSON.stringify(since)})`,
55
+ },
56
+ });
57
+ return { events: records, cursor: now };
58
+ },
59
+ });
60
+ //# sourceMappingURL=records.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"records.js","sourceRoot":"","sources":["../../src/triggers/records.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAA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AAE,aAAa,KAAK,CAAC,iBAAiB,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG;aACnF;SACF,CAAC,CAAC;QAEH,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;IAC1C,CAAC;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@frogbotai/piece-airtable",
3
- "version": "0.22.0",
4
- "description": "Airtable tools for FrogBot.",
3
+ "version": "0.23.0",
4
+ "description": "airtable tools for FrogBot.",
5
5
  "license": "MIT",
6
6
  "author": "Colby Gilbert",
7
7
  "type": "module",
@@ -19,14 +19,14 @@
19
19
  ],
20
20
  "sideEffects": false,
21
21
  "dependencies": {
22
- "@activepieces/piece-airtable": "0.6.10"
22
+ "zod": "^4.3.6"
23
23
  },
24
24
  "peerDependencies": {
25
- "frogbot": "0.22.0"
25
+ "frogbot": "0.23.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "typescript": "5.6.2",
29
- "frogbot": "0.22.0"
29
+ "frogbot": "0.23.0"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"
@@ -34,6 +34,7 @@
34
34
  "scripts": {
35
35
  "build": "tsc -p tsconfig.json",
36
36
  "clean": "rm -rf dist",
37
+ "generate:types": "frogbot generate:piece-types src/index.ts --export createAirtable --output src/piece-types.ts",
37
38
  "typecheck": "tsc --noEmit"
38
39
  }
39
40
  }