@frogbotai/piece-notion 0.30.0 → 0.32.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/README.md +4 -0
- package/dist/actions/comments.d.ts +3 -1
- package/dist/actions/comments.d.ts.map +1 -1
- package/dist/actions/core.d.ts +24 -8
- package/dist/actions/core.d.ts.map +1 -1
- package/dist/actions/core.js.map +1 -1
- package/dist/actions/customApiCall.d.ts +5 -16
- package/dist/actions/customApiCall.d.ts.map +1 -1
- package/dist/actions/customApiCall.js +8 -32
- package/dist/actions/customApiCall.js.map +1 -1
- package/dist/actions/read.d.ts +15 -5
- package/dist/actions/read.d.ts.map +1 -1
- package/dist/actions/read.js.map +1 -1
- package/dist/client.d.ts +3 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +10 -2
- package/dist/client.js.map +1 -1
- package/dist/define.d.ts +53 -5
- package/dist/define.d.ts.map +1 -1
- package/dist/define.js +1 -1
- package/dist/define.js.map +1 -1
- package/dist/filtering.d.ts.map +1 -1
- package/dist/filtering.js.map +1 -1
- package/dist/index.d.ts +63 -34
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/triggers/polling.d.ts +12 -4
- package/dist/triggers/polling.d.ts.map +1 -1
- package/dist/triggers/polling.js.map +1 -1
- package/package.json +3 -3
package/dist/define.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export declare const defineAction: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined, TResult = unknown>(action: TOutput extends unknown ? import("frogbot/pieces").PieceActionDefinition<TInput, TOutput, Record<string, never>, {
|
|
2
|
-
request: ({ method, path, query, body, signal, }: {
|
|
2
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
3
3
|
method?: string;
|
|
4
4
|
path: string;
|
|
5
5
|
query?: Record<string, string | number | boolean | undefined>;
|
|
6
6
|
body?: unknown;
|
|
7
7
|
signal?: AbortSignal;
|
|
8
|
+
redirect?: RequestRedirect;
|
|
8
9
|
}) => Promise<unknown>;
|
|
9
10
|
listAll: ({ path, body, query, signal, }: {
|
|
10
11
|
path: string;
|
|
@@ -16,15 +17,17 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
16
17
|
object: string;
|
|
17
18
|
id: string;
|
|
18
19
|
}[]>;
|
|
20
|
+
authorize: (headers: Headers) => void;
|
|
19
21
|
}, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
|
|
20
22
|
slug: TSlug;
|
|
21
23
|
} : never) => import("frogbot/pieces").PieceActionDefinition<TInput, TOutput, Record<string, never>, {
|
|
22
|
-
request: ({ method, path, query, body, signal, }: {
|
|
24
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
23
25
|
method?: string;
|
|
24
26
|
path: string;
|
|
25
27
|
query?: Record<string, string | number | boolean | undefined>;
|
|
26
28
|
body?: unknown;
|
|
27
29
|
signal?: AbortSignal;
|
|
30
|
+
redirect?: RequestRedirect;
|
|
28
31
|
}) => Promise<unknown>;
|
|
29
32
|
listAll: ({ path, body, query, signal, }: {
|
|
30
33
|
path: string;
|
|
@@ -36,9 +39,50 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
36
39
|
object: string;
|
|
37
40
|
id: string;
|
|
38
41
|
}[]>;
|
|
42
|
+
authorize: (headers: Headers) => void;
|
|
39
43
|
}, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
|
|
40
44
|
slug: TSlug;
|
|
41
|
-
},
|
|
45
|
+
}, defineCustomApiCall: (config: import("frogbot/pieces").CustomApiCallConfig<{
|
|
46
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
47
|
+
method?: string;
|
|
48
|
+
path: string;
|
|
49
|
+
query?: Record<string, string | number | boolean | undefined>;
|
|
50
|
+
body?: unknown;
|
|
51
|
+
signal?: AbortSignal;
|
|
52
|
+
redirect?: RequestRedirect;
|
|
53
|
+
}) => Promise<unknown>;
|
|
54
|
+
listAll: ({ path, body, query, signal, }: {
|
|
55
|
+
path: string;
|
|
56
|
+
body?: Record<string, unknown>;
|
|
57
|
+
query?: Record<string, string | number | boolean | undefined>;
|
|
58
|
+
signal?: AbortSignal;
|
|
59
|
+
}) => Promise<{
|
|
60
|
+
[x: string]: unknown;
|
|
61
|
+
object: string;
|
|
62
|
+
id: string;
|
|
63
|
+
}[]>;
|
|
64
|
+
authorize: (headers: Headers) => void;
|
|
65
|
+
}>) => import("frogbot/pieces").CustomApiCallAction<Record<string, never>, {
|
|
66
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
67
|
+
method?: string;
|
|
68
|
+
path: string;
|
|
69
|
+
query?: Record<string, string | number | boolean | undefined>;
|
|
70
|
+
body?: unknown;
|
|
71
|
+
signal?: AbortSignal;
|
|
72
|
+
redirect?: RequestRedirect;
|
|
73
|
+
}) => Promise<unknown>;
|
|
74
|
+
listAll: ({ path, body, query, signal, }: {
|
|
75
|
+
path: string;
|
|
76
|
+
body?: Record<string, unknown>;
|
|
77
|
+
query?: Record<string, string | number | boolean | undefined>;
|
|
78
|
+
signal?: AbortSignal;
|
|
79
|
+
}) => Promise<{
|
|
80
|
+
[x: string]: unknown;
|
|
81
|
+
object: string;
|
|
82
|
+
id: string;
|
|
83
|
+
}[]>;
|
|
84
|
+
authorize: (headers: Headers) => void;
|
|
85
|
+
}>, definePollingTrigger: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined>(trigger: TOutput extends unknown ? {
|
|
42
86
|
slug: string;
|
|
43
87
|
label?: string;
|
|
44
88
|
description: string;
|
|
@@ -49,12 +93,13 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
49
93
|
type: "polling";
|
|
50
94
|
schedule?: string;
|
|
51
95
|
run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
|
|
52
|
-
request: ({ method, path, query, body, signal, }: {
|
|
96
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
53
97
|
method?: string;
|
|
54
98
|
path: string;
|
|
55
99
|
query?: Record<string, string | number | boolean | undefined>;
|
|
56
100
|
body?: unknown;
|
|
57
101
|
signal?: AbortSignal;
|
|
102
|
+
redirect?: RequestRedirect;
|
|
58
103
|
}) => Promise<unknown>;
|
|
59
104
|
listAll: ({ path, body, query, signal, }: {
|
|
60
105
|
path: string;
|
|
@@ -66,6 +111,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
66
111
|
object: string;
|
|
67
112
|
id: string;
|
|
68
113
|
}[]>;
|
|
114
|
+
authorize: (headers: Headers) => void;
|
|
69
115
|
}> & {
|
|
70
116
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
71
117
|
}): Promise<{
|
|
@@ -85,12 +131,13 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
85
131
|
type: "polling";
|
|
86
132
|
schedule?: string;
|
|
87
133
|
run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
|
|
88
|
-
request: ({ method, path, query, body, signal, }: {
|
|
134
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
89
135
|
method?: string;
|
|
90
136
|
path: string;
|
|
91
137
|
query?: Record<string, string | number | boolean | undefined>;
|
|
92
138
|
body?: unknown;
|
|
93
139
|
signal?: AbortSignal;
|
|
140
|
+
redirect?: RequestRedirect;
|
|
94
141
|
}) => Promise<unknown>;
|
|
95
142
|
listAll: ({ path, body, query, signal, }: {
|
|
96
143
|
path: string;
|
|
@@ -102,6 +149,7 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
102
149
|
object: string;
|
|
103
150
|
id: string;
|
|
104
151
|
}[]>;
|
|
152
|
+
authorize: (headers: Headers) => void;
|
|
105
153
|
}> & {
|
|
106
154
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
107
155
|
}): Promise<{
|
package/dist/define.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAIA,eAAO,MAAQ,YAAY;;
|
|
1
|
+
{"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAIA,eAAO,MAAQ,YAAY;;cAEuO,CAAC;;aAAqC,CAAC;YAAsC,CAAC;cAAqB,CAAC;gBAA2B,CAAC;;;;YAAu6C,CAAC;aAAoC,CAAC;cAAwC,CAAC;;;;;;;;;;;cAAtnD,CAAC;;aAAqC,CAAC;YAAsC,CAAC;cAAqB,CAAC;gBAA2B,CAAC;;;;YAAu6C,CAAC;aAAoC,CAAC;cAAwC,CAAC;;;;;;;;;GAF31D,mBAAmB;;cAEkN,CAAC;;aAAqC,CAAC;YAAsC,CAAC;cAAqB,CAAC;gBAA2B,CAAC;;;;YAAu6C,CAAC;aAAoC,CAAC;cAAwC,CAAC;;;;;;;;;cAAtnD,CAAC;;aAAqC,CAAC;YAAsC,CAAC;cAAqB,CAAC;gBAA2B,CAAC;;;;YAAu6C,CAAC;aAAoC,CAAC;cAAwC,CAAC;;;;;;;IAFt0D,oBAAoB;;;;;;;;;;;;kBAE4L,CAAC;;iBAAqC,CAAC;gBAAsC,CAAC;kBAAqB,CAAC;oBAA2B,CAAC;;;;gBAAu6C,CAAC;iBAAoC,CAAC;kBAAwC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAtnD,CAAC;;iBAAqC,CAAC;gBAAsC,CAAC;kBAAqB,CAAC;oBAA2B,CAAC;;;;gBAAu6C,CAAC;iBAAoC,CAAC;kBAAwC,CAAC;;;;;;;;;;;;;;;CADp1D,CAAC"}
|
package/dist/define.js
CHANGED
package/dist/define.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/define.ts"],"names":["createPieceHelpers","defineAction","definePollingTrigger"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iBAAiB;AAIpD,OAAO,MAAM,EAAEC,YAAY,EAAEC,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/define.ts"],"names":["createPieceHelpers","defineAction","defineCustomApiCall","definePollingTrigger"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iBAAiB;AAIpD,OAAO,MAAM,EAAEC,YAAY,EAAEC,mBAAmB,EAAEC,oBAAoB,EAAE,GACtEH,qBAAmC","file":"define.js"}
|
package/dist/filtering.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["../src/filtering.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAShD,wBAAsB,YAAY,CAAC,EACjC,MAAM,EACN,UAAU,EACV,MAAM,EACN,KAAK,EACL,MAAM,GACP,EAAE;IACD,MAAM,EAAE,YAAY,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,KAAK,EAAE,UAAU,GAAG,QAAQ,CAAC;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,
|
|
1
|
+
{"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["../src/filtering.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAShD,wBAAsB,YAAY,CAAC,EACjC,MAAM,EACN,UAAU,EACV,MAAM,EACN,KAAK,EACL,MAAM,GACP,EAAE;IACD,MAAM,EAAE,YAAY,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,KAAK,EAAE,UAAU,GAAG,QAAQ,CAAC;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,sCA4CA"}
|
package/dist/filtering.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/filtering.ts"],"names":["z","hasValue","databaseSchema","object","properties","record","string","type","passthrough","buildFilters","client","databaseId","fields","match","signal","database","parse","request","path","filters","Object","entries","forEach","name","value","push","property","String","number","equals","Number","checkbox","Boolean","Array","isArray","item","multi_select","contains","people"],"mappings":"AAAA,SAASA,CAAC,QAAQ,MAAM;AAGxB,SAASC,QAAQ,QAAQ,kBAAkB;AAE3C,MAAMC,iBAAiBF,EACpBG,MAAM,CAAC;IACNC,YAAYJ,EAAEK,MAAM,CAACL,EAAEM,MAAM,IAAIN,EAAEG,MAAM,CAAC;QAAEI,MAAMP,EAAEM,MAAM;IAAG,GAAGE,WAAW;AAC7E,GACCA,WAAW;AAEd,OAAO,eAAeC,aAAa,EACjCC,MAAM,EACNC,UAAU,EACVC,MAAM,EACNC,KAAK,EACLC,MAAM,EAOP;IACC,MAAMC,WAAWb,eAAec,KAAK,CACnC,MAAMN,OAAOO,OAAO,CAAC;QAAEC,MAAM,CAAC,WAAW,EAAEP,YAAY;QAAEG;IAAO;
|
|
1
|
+
{"version":3,"sources":["../src/filtering.ts"],"names":["z","hasValue","databaseSchema","object","properties","record","string","type","passthrough","buildFilters","client","databaseId","fields","match","signal","database","parse","request","path","filters","Object","entries","forEach","name","value","push","property","String","number","equals","Number","checkbox","Boolean","Array","isArray","item","multi_select","contains","people"],"mappings":"AAAA,SAASA,CAAC,QAAQ,MAAM;AAGxB,SAASC,QAAQ,QAAQ,kBAAkB;AAE3C,MAAMC,iBAAiBF,EACpBG,MAAM,CAAC;IACNC,YAAYJ,EAAEK,MAAM,CAACL,EAAEM,MAAM,IAAIN,EAAEG,MAAM,CAAC;QAAEI,MAAMP,EAAEM,MAAM;IAAG,GAAGE,WAAW;AAC7E,GACCA,WAAW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UH;oBAAMe,QAAQ;wBAAED,UAAUV,OAAOH;oBAAO;gBAAE;gBACnE;QACJ;IACF;IAEA,OAAOL;AACT","file":"filtering.js"}
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,10 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
16
16
|
readonly authorizationUrl: "https://api.notion.com/v1/oauth/authorize";
|
|
17
17
|
readonly tokenUrl: "https://api.notion.com/v1/oauth/token";
|
|
18
18
|
readonly tokenEndpointAuthMethod: "client_secret_basic";
|
|
19
|
-
readonly scopes:
|
|
19
|
+
readonly scopes: {
|
|
20
|
+
readonly catalog: {};
|
|
21
|
+
readonly defaults: readonly [];
|
|
22
|
+
};
|
|
20
23
|
readonly params: {
|
|
21
24
|
readonly owner: "user";
|
|
22
25
|
};
|
|
@@ -42,12 +45,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
42
45
|
limit: import("zod").ZodNumber;
|
|
43
46
|
}, import("zod/v4/core").$strip>;
|
|
44
47
|
}, import("zod/v4/core").$strip>, Record<string, never>, {
|
|
45
|
-
request: ({ method, path, query, body, signal, }: {
|
|
48
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
46
49
|
method?: string;
|
|
47
50
|
path: string;
|
|
48
51
|
query?: Record<string, string | number | boolean | undefined>;
|
|
49
52
|
body?: unknown;
|
|
50
53
|
signal?: AbortSignal;
|
|
54
|
+
redirect?: RequestRedirect;
|
|
51
55
|
}) => Promise<unknown>;
|
|
52
56
|
listAll: ({ path, body, query, signal, }: {
|
|
53
57
|
path: string;
|
|
@@ -59,6 +63,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
59
63
|
object: string;
|
|
60
64
|
id: string;
|
|
61
65
|
}[]>;
|
|
66
|
+
authorize: (headers: Headers) => void;
|
|
62
67
|
}, {
|
|
63
68
|
success: true;
|
|
64
69
|
data: {
|
|
@@ -87,12 +92,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
87
92
|
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
88
93
|
properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
89
94
|
}, import("zod/v4/core").$loose>, Record<string, never>, {
|
|
90
|
-
request: ({ method, path, query, body, signal, }: {
|
|
95
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
91
96
|
method?: string;
|
|
92
97
|
path: string;
|
|
93
98
|
query?: Record<string, string | number | boolean | undefined>;
|
|
94
99
|
body?: unknown;
|
|
95
100
|
signal?: AbortSignal;
|
|
101
|
+
redirect?: RequestRedirect;
|
|
96
102
|
}) => Promise<unknown>;
|
|
97
103
|
listAll: ({ path, body, query, signal, }: {
|
|
98
104
|
path: string;
|
|
@@ -104,6 +110,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
104
110
|
object: string;
|
|
105
111
|
id: string;
|
|
106
112
|
}[]>;
|
|
113
|
+
authorize: (headers: Headers) => void;
|
|
107
114
|
}, {
|
|
108
115
|
[x: string]: unknown;
|
|
109
116
|
object: string;
|
|
@@ -128,12 +135,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
128
135
|
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
129
136
|
properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
130
137
|
}, import("zod/v4/core").$loose>, Record<string, never>, {
|
|
131
|
-
request: ({ method, path, query, body, signal, }: {
|
|
138
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
132
139
|
method?: string;
|
|
133
140
|
path: string;
|
|
134
141
|
query?: Record<string, string | number | boolean | undefined>;
|
|
135
142
|
body?: unknown;
|
|
136
143
|
signal?: AbortSignal;
|
|
144
|
+
redirect?: RequestRedirect;
|
|
137
145
|
}) => Promise<unknown>;
|
|
138
146
|
listAll: ({ path, body, query, signal, }: {
|
|
139
147
|
path: string;
|
|
@@ -145,6 +153,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
145
153
|
object: string;
|
|
146
154
|
id: string;
|
|
147
155
|
}[]>;
|
|
156
|
+
authorize: (headers: Headers) => void;
|
|
148
157
|
}, {
|
|
149
158
|
[x: string]: unknown;
|
|
150
159
|
object: string;
|
|
@@ -166,12 +175,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
166
175
|
id: import("zod").ZodString;
|
|
167
176
|
}, import("zod/v4/core").$loose>>;
|
|
168
177
|
}, import("zod/v4/core").$strip>, Record<string, never>, {
|
|
169
|
-
request: ({ method, path, query, body, signal, }: {
|
|
178
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
170
179
|
method?: string;
|
|
171
180
|
path: string;
|
|
172
181
|
query?: Record<string, string | number | boolean | undefined>;
|
|
173
182
|
body?: unknown;
|
|
174
183
|
signal?: AbortSignal;
|
|
184
|
+
redirect?: RequestRedirect;
|
|
175
185
|
}) => Promise<unknown>;
|
|
176
186
|
listAll: ({ path, body, query, signal, }: {
|
|
177
187
|
path: string;
|
|
@@ -183,6 +193,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
183
193
|
object: string;
|
|
184
194
|
id: string;
|
|
185
195
|
}[]>;
|
|
196
|
+
authorize: (headers: Headers) => void;
|
|
186
197
|
}, {
|
|
187
198
|
success: boolean;
|
|
188
199
|
results: {
|
|
@@ -210,12 +221,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
210
221
|
limit: import("zod").ZodNumber;
|
|
211
222
|
}, import("zod/v4/core").$strip>;
|
|
212
223
|
}, import("zod/v4/core").$strip>, Record<string, never>, {
|
|
213
|
-
request: ({ method, path, query, body, signal, }: {
|
|
224
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
214
225
|
method?: string;
|
|
215
226
|
path: string;
|
|
216
227
|
query?: Record<string, string | number | boolean | undefined>;
|
|
217
228
|
body?: unknown;
|
|
218
229
|
signal?: AbortSignal;
|
|
230
|
+
redirect?: RequestRedirect;
|
|
219
231
|
}) => Promise<unknown>;
|
|
220
232
|
listAll: ({ path, body, query, signal, }: {
|
|
221
233
|
path: string;
|
|
@@ -227,6 +239,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
227
239
|
object: string;
|
|
228
240
|
id: string;
|
|
229
241
|
}[]>;
|
|
242
|
+
authorize: (headers: Headers) => void;
|
|
230
243
|
}, {
|
|
231
244
|
success: true;
|
|
232
245
|
data: {
|
|
@@ -255,12 +268,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
255
268
|
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
256
269
|
properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
257
270
|
}, import("zod/v4/core").$loose>, Record<string, never>, {
|
|
258
|
-
request: ({ method, path, query, body, signal, }: {
|
|
271
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
259
272
|
method?: string;
|
|
260
273
|
path: string;
|
|
261
274
|
query?: Record<string, string | number | boolean | undefined>;
|
|
262
275
|
body?: unknown;
|
|
263
276
|
signal?: AbortSignal;
|
|
277
|
+
redirect?: RequestRedirect;
|
|
264
278
|
}) => Promise<unknown>;
|
|
265
279
|
listAll: ({ path, body, query, signal, }: {
|
|
266
280
|
path: string;
|
|
@@ -272,6 +286,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
272
286
|
object: string;
|
|
273
287
|
id: string;
|
|
274
288
|
}[]>;
|
|
289
|
+
authorize: (headers: Headers) => void;
|
|
275
290
|
}, {
|
|
276
291
|
[x: string]: unknown;
|
|
277
292
|
object: string;
|
|
@@ -295,12 +310,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
295
310
|
has_more: import("zod").ZodBoolean;
|
|
296
311
|
next_cursor: import("zod").ZodNullable<import("zod").ZodString>;
|
|
297
312
|
}, import("zod/v4/core").$loose>, Record<string, never>, {
|
|
298
|
-
request: ({ method, path, query, body, signal, }: {
|
|
313
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
299
314
|
method?: string;
|
|
300
315
|
path: string;
|
|
301
316
|
query?: Record<string, string | number | boolean | undefined>;
|
|
302
317
|
body?: unknown;
|
|
303
318
|
signal?: AbortSignal;
|
|
319
|
+
redirect?: RequestRedirect;
|
|
304
320
|
}) => Promise<unknown>;
|
|
305
321
|
listAll: ({ path, body, query, signal, }: {
|
|
306
322
|
path: string;
|
|
@@ -312,6 +328,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
312
328
|
object: string;
|
|
313
329
|
id: string;
|
|
314
330
|
}[]>;
|
|
331
|
+
authorize: (headers: Headers) => void;
|
|
315
332
|
}, {
|
|
316
333
|
[x: string]: unknown;
|
|
317
334
|
object: "list";
|
|
@@ -331,12 +348,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
331
348
|
object: import("zod").ZodString;
|
|
332
349
|
id: import("zod").ZodString;
|
|
333
350
|
}, import("zod/v4/core").$loose>>, Record<string, never>, {
|
|
334
|
-
request: ({ method, path, query, body, signal, }: {
|
|
351
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
335
352
|
method?: string;
|
|
336
353
|
path: string;
|
|
337
354
|
query?: Record<string, string | number | boolean | undefined>;
|
|
338
355
|
body?: unknown;
|
|
339
356
|
signal?: AbortSignal;
|
|
357
|
+
redirect?: RequestRedirect;
|
|
340
358
|
}) => Promise<unknown>;
|
|
341
359
|
listAll: ({ path, body, query, signal, }: {
|
|
342
360
|
path: string;
|
|
@@ -348,6 +366,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
348
366
|
object: string;
|
|
349
367
|
id: string;
|
|
350
368
|
}[]>;
|
|
369
|
+
authorize: (headers: Headers) => void;
|
|
351
370
|
}, {
|
|
352
371
|
[x: string]: unknown;
|
|
353
372
|
object: string;
|
|
@@ -366,12 +385,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
366
385
|
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
367
386
|
properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
368
387
|
}, import("zod/v4/core").$loose>, Record<string, never>, {
|
|
369
|
-
request: ({ method, path, query, body, signal, }: {
|
|
388
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
370
389
|
method?: string;
|
|
371
390
|
path: string;
|
|
372
391
|
query?: Record<string, string | number | boolean | undefined>;
|
|
373
392
|
body?: unknown;
|
|
374
393
|
signal?: AbortSignal;
|
|
394
|
+
redirect?: RequestRedirect;
|
|
375
395
|
}) => Promise<unknown>;
|
|
376
396
|
listAll: ({ path, body, query, signal, }: {
|
|
377
397
|
path: string;
|
|
@@ -383,6 +403,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
383
403
|
object: string;
|
|
384
404
|
id: string;
|
|
385
405
|
}[]>;
|
|
406
|
+
authorize: (headers: Headers) => void;
|
|
386
407
|
}, {
|
|
387
408
|
[x: string]: unknown;
|
|
388
409
|
object: string;
|
|
@@ -406,12 +427,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
406
427
|
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
407
428
|
properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
408
429
|
}, import("zod/v4/core").$loose>, Record<string, never>, {
|
|
409
|
-
request: ({ method, path, query, body, signal, }: {
|
|
430
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
410
431
|
method?: string;
|
|
411
432
|
path: string;
|
|
412
433
|
query?: Record<string, string | number | boolean | undefined>;
|
|
413
434
|
body?: unknown;
|
|
414
435
|
signal?: AbortSignal;
|
|
436
|
+
redirect?: RequestRedirect;
|
|
415
437
|
}) => Promise<unknown>;
|
|
416
438
|
listAll: ({ path, body, query, signal, }: {
|
|
417
439
|
path: string;
|
|
@@ -423,6 +445,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
423
445
|
object: string;
|
|
424
446
|
id: string;
|
|
425
447
|
}[]>;
|
|
448
|
+
authorize: (headers: Headers) => void;
|
|
426
449
|
}, {
|
|
427
450
|
[x: string]: unknown;
|
|
428
451
|
object: string;
|
|
@@ -445,12 +468,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
445
468
|
discussion_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
446
469
|
rich_text: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown>>;
|
|
447
470
|
}, import("zod/v4/core").$loose>, Record<string, never>, {
|
|
448
|
-
request: ({ method, path, query, body, signal, }: {
|
|
471
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
449
472
|
method?: string;
|
|
450
473
|
path: string;
|
|
451
474
|
query?: Record<string, string | number | boolean | undefined>;
|
|
452
475
|
body?: unknown;
|
|
453
476
|
signal?: AbortSignal;
|
|
477
|
+
redirect?: RequestRedirect;
|
|
454
478
|
}) => Promise<unknown>;
|
|
455
479
|
listAll: ({ path, body, query, signal, }: {
|
|
456
480
|
path: string;
|
|
@@ -462,6 +486,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
462
486
|
object: string;
|
|
463
487
|
id: string;
|
|
464
488
|
}[]>;
|
|
489
|
+
authorize: (headers: Headers) => void;
|
|
465
490
|
}, {
|
|
466
491
|
[x: string]: unknown;
|
|
467
492
|
object: string;
|
|
@@ -478,12 +503,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
478
503
|
object: import("zod").ZodString;
|
|
479
504
|
id: import("zod").ZodString;
|
|
480
505
|
}, import("zod/v4/core").$loose>, Record<string, never>, {
|
|
481
|
-
request: ({ method, path, query, body, signal, }: {
|
|
506
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
482
507
|
method?: string;
|
|
483
508
|
path: string;
|
|
484
509
|
query?: Record<string, string | number | boolean | undefined>;
|
|
485
510
|
body?: unknown;
|
|
486
511
|
signal?: AbortSignal;
|
|
512
|
+
redirect?: RequestRedirect;
|
|
487
513
|
}) => Promise<unknown>;
|
|
488
514
|
listAll: ({ path, body, query, signal, }: {
|
|
489
515
|
path: string;
|
|
@@ -495,6 +521,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
495
521
|
object: string;
|
|
496
522
|
id: string;
|
|
497
523
|
}[]>;
|
|
524
|
+
authorize: (headers: Headers) => void;
|
|
498
525
|
}, {
|
|
499
526
|
[x: string]: unknown;
|
|
500
527
|
object: string;
|
|
@@ -511,12 +538,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
511
538
|
discussion_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
512
539
|
rich_text: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown>>;
|
|
513
540
|
}, import("zod/v4/core").$loose>>, Record<string, never>, {
|
|
514
|
-
request: ({ method, path, query, body, signal, }: {
|
|
541
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
515
542
|
method?: string;
|
|
516
543
|
path: string;
|
|
517
544
|
query?: Record<string, string | number | boolean | undefined>;
|
|
518
545
|
body?: unknown;
|
|
519
546
|
signal?: AbortSignal;
|
|
547
|
+
redirect?: RequestRedirect;
|
|
520
548
|
}) => Promise<unknown>;
|
|
521
549
|
listAll: ({ path, body, query, signal, }: {
|
|
522
550
|
path: string;
|
|
@@ -528,6 +556,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
528
556
|
object: string;
|
|
529
557
|
id: string;
|
|
530
558
|
}[]>;
|
|
559
|
+
authorize: (headers: Headers) => void;
|
|
531
560
|
}, {
|
|
532
561
|
[x: string]: unknown;
|
|
533
562
|
object: string;
|
|
@@ -546,12 +575,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
546
575
|
object: import("zod").ZodString;
|
|
547
576
|
id: import("zod").ZodString;
|
|
548
577
|
}, import("zod/v4/core").$loose>>, Record<string, never>, {
|
|
549
|
-
request: ({ method, path, query, body, signal, }: {
|
|
578
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
550
579
|
method?: string;
|
|
551
580
|
path: string;
|
|
552
581
|
query?: Record<string, string | number | boolean | undefined>;
|
|
553
582
|
body?: unknown;
|
|
554
583
|
signal?: AbortSignal;
|
|
584
|
+
redirect?: RequestRedirect;
|
|
555
585
|
}) => Promise<unknown>;
|
|
556
586
|
listAll: ({ path, body, query, signal, }: {
|
|
557
587
|
path: string;
|
|
@@ -563,29 +593,21 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
563
593
|
object: string;
|
|
564
594
|
id: string;
|
|
565
595
|
}[]>;
|
|
596
|
+
authorize: (headers: Headers) => void;
|
|
566
597
|
}, {
|
|
567
598
|
[x: string]: unknown;
|
|
568
599
|
object: string;
|
|
569
600
|
id: string;
|
|
570
601
|
}[]> & {
|
|
571
602
|
slug: "findPage";
|
|
572
|
-
}, import("frogbot/pieces").
|
|
573
|
-
|
|
574
|
-
POST: "POST";
|
|
575
|
-
PATCH: "PATCH";
|
|
576
|
-
GET: "GET";
|
|
577
|
-
DELETE: "DELETE";
|
|
578
|
-
}>;
|
|
579
|
-
path: import("zod").ZodString;
|
|
580
|
-
query: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>>;
|
|
581
|
-
body: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
|
|
582
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodJSONSchema, Record<string, never>, {
|
|
583
|
-
request: ({ method, path, query, body, signal, }: {
|
|
603
|
+
}, import("frogbot/pieces").CustomApiCallAction<Record<string, never>, {
|
|
604
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
584
605
|
method?: string;
|
|
585
606
|
path: string;
|
|
586
607
|
query?: Record<string, string | number | boolean | undefined>;
|
|
587
608
|
body?: unknown;
|
|
588
609
|
signal?: AbortSignal;
|
|
610
|
+
redirect?: RequestRedirect;
|
|
589
611
|
}) => Promise<unknown>;
|
|
590
612
|
listAll: ({ path, body, query, signal, }: {
|
|
591
613
|
path: string;
|
|
@@ -597,9 +619,8 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
597
619
|
object: string;
|
|
598
620
|
id: string;
|
|
599
621
|
}[]>;
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
}];
|
|
622
|
+
authorize: (headers: Headers) => void;
|
|
623
|
+
}>];
|
|
603
624
|
readonly triggers: readonly [{
|
|
604
625
|
slug: string;
|
|
605
626
|
label?: string;
|
|
@@ -632,12 +653,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
632
653
|
run(args: import("frogbot/pieces").PieceRunArgs<{
|
|
633
654
|
databaseId: string;
|
|
634
655
|
}, Record<string, never>, {
|
|
635
|
-
request: ({ method, path, query, body, signal, }: {
|
|
656
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
636
657
|
method?: string;
|
|
637
658
|
path: string;
|
|
638
659
|
query?: Record<string, string | number | boolean | undefined>;
|
|
639
660
|
body?: unknown;
|
|
640
661
|
signal?: AbortSignal;
|
|
662
|
+
redirect?: RequestRedirect;
|
|
641
663
|
}) => Promise<unknown>;
|
|
642
664
|
listAll: ({ path, body, query, signal, }: {
|
|
643
665
|
path: string;
|
|
@@ -649,6 +671,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
649
671
|
object: string;
|
|
650
672
|
id: string;
|
|
651
673
|
}[]>;
|
|
674
|
+
authorize: (headers: Headers) => void;
|
|
652
675
|
}> & {
|
|
653
676
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
654
677
|
}): Promise<{
|
|
@@ -698,12 +721,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
698
721
|
run(args: import("frogbot/pieces").PieceRunArgs<{
|
|
699
722
|
databaseId: string;
|
|
700
723
|
}, Record<string, never>, {
|
|
701
|
-
request: ({ method, path, query, body, signal, }: {
|
|
724
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
702
725
|
method?: string;
|
|
703
726
|
path: string;
|
|
704
727
|
query?: Record<string, string | number | boolean | undefined>;
|
|
705
728
|
body?: unknown;
|
|
706
729
|
signal?: AbortSignal;
|
|
730
|
+
redirect?: RequestRedirect;
|
|
707
731
|
}) => Promise<unknown>;
|
|
708
732
|
listAll: ({ path, body, query, signal, }: {
|
|
709
733
|
path: string;
|
|
@@ -715,6 +739,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
715
739
|
object: string;
|
|
716
740
|
id: string;
|
|
717
741
|
}[]>;
|
|
742
|
+
authorize: (headers: Headers) => void;
|
|
718
743
|
}> & {
|
|
719
744
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
720
745
|
}): Promise<{
|
|
@@ -762,12 +787,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
762
787
|
run(args: import("frogbot/pieces").PieceRunArgs<{
|
|
763
788
|
pageId: string;
|
|
764
789
|
}, Record<string, never>, {
|
|
765
|
-
request: ({ method, path, query, body, signal, }: {
|
|
790
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
766
791
|
method?: string;
|
|
767
792
|
path: string;
|
|
768
793
|
query?: Record<string, string | number | boolean | undefined>;
|
|
769
794
|
body?: unknown;
|
|
770
795
|
signal?: AbortSignal;
|
|
796
|
+
redirect?: RequestRedirect;
|
|
771
797
|
}) => Promise<unknown>;
|
|
772
798
|
listAll: ({ path, body, query, signal, }: {
|
|
773
799
|
path: string;
|
|
@@ -779,6 +805,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
779
805
|
object: string;
|
|
780
806
|
id: string;
|
|
781
807
|
}[]>;
|
|
808
|
+
authorize: (headers: Headers) => void;
|
|
782
809
|
}> & {
|
|
783
810
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
784
811
|
}): Promise<{
|
|
@@ -823,12 +850,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
823
850
|
type: "polling";
|
|
824
851
|
schedule?: string;
|
|
825
852
|
run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
|
|
826
|
-
request: ({ method, path, query, body, signal, }: {
|
|
853
|
+
request: ({ method, path, query, body, signal, redirect, }: {
|
|
827
854
|
method?: string;
|
|
828
855
|
path: string;
|
|
829
856
|
query?: Record<string, string | number | boolean | undefined>;
|
|
830
857
|
body?: unknown;
|
|
831
858
|
signal?: AbortSignal;
|
|
859
|
+
redirect?: RequestRedirect;
|
|
832
860
|
}) => Promise<unknown>;
|
|
833
861
|
listAll: ({ path, body, query, signal, }: {
|
|
834
862
|
path: string;
|
|
@@ -840,6 +868,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
|
|
|
840
868
|
object: string;
|
|
841
869
|
id: string;
|
|
842
870
|
}[]>;
|
|
871
|
+
authorize: (headers: Headers) => void;
|
|
843
872
|
}> & {
|
|
844
873
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
845
874
|
}): Promise<{
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AASjD,eAAO,MAAM,aAAa,kSAgBhB,CAAC;AACX,eAAO,MAAM,cAAc,kFAKjB,CAAC;AAEX,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,kB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AEY,CAAC;sBAAwC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBApEjC,CAAC;;qBACS,CAAC;oBACX,CAAA;sBACrB,CAAC;wBAEI,CAAC;;;;oBA6DH,CAAH;qBAEY,CAAC;sBAAwC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBApEjC,CAAC;;qBACS,CAAC;oBACX,CAAA;sBACrB,CAAC;wBAEI,CAAC;;;;oBA6DH,CAAH;qBAEY,CAAC;sBAAwC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBApEjC,CAAC;;qBACS,CAAC;oBACX,CAAA;sBACrB,CAAC;wBAEI,CAAC;;;;oBA6DH,CAAH;qBAEY,CAAC;sBAAwC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;EACrD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -42,7 +42,10 @@ export const createNotion = definePiece({
|
|
|
42
42
|
authorizationUrl: 'https://api.notion.com/v1/oauth/authorize',
|
|
43
43
|
tokenUrl: 'https://api.notion.com/v1/oauth/token',
|
|
44
44
|
tokenEndpointAuthMethod: 'client_secret_basic',
|
|
45
|
-
scopes:
|
|
45
|
+
scopes: {
|
|
46
|
+
catalog: {},
|
|
47
|
+
defaults: []
|
|
48
|
+
},
|
|
46
49
|
params: {
|
|
47
50
|
owner: 'user'
|
|
48
51
|
},
|