@automate.ax/integration-contracts 0.91.0 → 0.92.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/dist/close/api.d.ts +3 -1
- package/dist/close/api.js +4 -2
- package/dist/github/additional-events.d.ts +16 -4
- package/dist/github/additional-events.js +12 -2
- package/dist/github/openapi-types.generated.d.ts +1 -1
- package/dist/github/webhook-schemas.generated.json +1 -1
- package/dist/notion/index.d.ts +1 -5
- package/dist/notion/index.js +0 -6
- package/dist/notion/schemas.d.ts +0 -246
- package/dist/notion/schemas.js +0 -15
- package/package.json +2 -2
- package/src/close/api.ts +5 -2
- package/src/github/additional-events.ts +38 -12
- package/src/github/openapi-types.generated.ts +1 -1
- package/src/github/webhook-schemas.generated.json +1 -1
- package/src/notion/index.ts +0 -10
- package/src/notion/schemas.ts +0 -27
package/src/notion/index.ts
CHANGED
|
@@ -21,11 +21,9 @@ export const NOTION_WEBHOOK_EVENT_TYPES = [
|
|
|
21
21
|
"data_source.moved",
|
|
22
22
|
"data_source.schema_updated",
|
|
23
23
|
"data_source.undeleted",
|
|
24
|
-
"database.content_updated",
|
|
25
24
|
"database.created",
|
|
26
25
|
"database.deleted",
|
|
27
26
|
"database.moved",
|
|
28
|
-
"database.schema_updated",
|
|
29
27
|
"database.undeleted",
|
|
30
28
|
"file_upload.completed",
|
|
31
29
|
"file_upload.created",
|
|
@@ -54,11 +52,9 @@ type NotionSemanticTriggerTypes = {
|
|
|
54
52
|
readonly "notion.comment.created": "comment.created"
|
|
55
53
|
readonly "notion.comment.deleted": "comment.deleted"
|
|
56
54
|
readonly "notion.comment.updated": "comment.updated"
|
|
57
|
-
readonly "notion.database.contentUpdated": "database.content_updated"
|
|
58
55
|
readonly "notion.database.created": "database.created"
|
|
59
56
|
readonly "notion.database.deleted": "database.deleted"
|
|
60
57
|
readonly "notion.database.moved": "database.moved"
|
|
61
|
-
readonly "notion.database.schemaUpdated": "database.schema_updated"
|
|
62
58
|
readonly "notion.database.undeleted": "database.undeleted"
|
|
63
59
|
readonly "notion.dataSource.contentUpdated": "data_source.content_updated"
|
|
64
60
|
readonly "notion.dataSource.created": "data_source.created"
|
|
@@ -102,11 +98,9 @@ export const notionEventTypeMap = {
|
|
|
102
98
|
"data_source.moved": "notion.dataSource.moved",
|
|
103
99
|
"data_source.schema_updated": "notion.dataSource.schemaUpdated",
|
|
104
100
|
"data_source.undeleted": "notion.dataSource.undeleted",
|
|
105
|
-
"database.content_updated": "notion.database.contentUpdated",
|
|
106
101
|
"database.created": "notion.database.created",
|
|
107
102
|
"database.deleted": "notion.database.deleted",
|
|
108
103
|
"database.moved": "notion.database.moved",
|
|
109
|
-
"database.schema_updated": "notion.database.schemaUpdated",
|
|
110
104
|
"database.undeleted": "notion.database.undeleted",
|
|
111
105
|
"file_upload.completed": "notion.fileUpload.completed",
|
|
112
106
|
"file_upload.created": "notion.fileUpload.created",
|
|
@@ -134,13 +128,9 @@ export const notionTriggerContracts: NotionTriggerContracts = {
|
|
|
134
128
|
"notion.comment.created": semanticContract("comment.created"),
|
|
135
129
|
"notion.comment.deleted": semanticContract("comment.deleted"),
|
|
136
130
|
"notion.comment.updated": semanticContract("comment.updated"),
|
|
137
|
-
"notion.database.contentUpdated": semanticContract(
|
|
138
|
-
"database.content_updated",
|
|
139
|
-
),
|
|
140
131
|
"notion.database.created": semanticContract("database.created"),
|
|
141
132
|
"notion.database.deleted": semanticContract("database.deleted"),
|
|
142
133
|
"notion.database.moved": semanticContract("database.moved"),
|
|
143
|
-
"notion.database.schemaUpdated": semanticContract("database.schema_updated"),
|
|
144
134
|
"notion.database.undeleted": semanticContract("database.undeleted"),
|
|
145
135
|
"notion.dataSource.contentUpdated": semanticContract(
|
|
146
136
|
"data_source.content_updated",
|
package/src/notion/schemas.ts
CHANGED
|
@@ -8,11 +8,9 @@ import type {
|
|
|
8
8
|
DataSourceMovedWebhookPayload,
|
|
9
9
|
DataSourceSchemaUpdatedWebhookPayload,
|
|
10
10
|
DataSourceUndeletedWebhookPayload,
|
|
11
|
-
DatabaseContentUpdatedWebhookPayload,
|
|
12
11
|
DatabaseCreatedWebhookPayload,
|
|
13
12
|
DatabaseDeletedWebhookPayload,
|
|
14
13
|
DatabaseMovedWebhookPayload,
|
|
15
|
-
DatabaseSchemaUpdatedWebhookPayload,
|
|
16
14
|
DatabaseUndeletedWebhookPayload,
|
|
17
15
|
FileUploadCompletedWebhookPayload,
|
|
18
16
|
FileUploadCreatedWebhookPayload,
|
|
@@ -43,11 +41,9 @@ type OfficialNotionWebhookEvent =
|
|
|
43
41
|
| DataSourceMovedWebhookPayload
|
|
44
42
|
| DataSourceSchemaUpdatedWebhookPayload
|
|
45
43
|
| DataSourceUndeletedWebhookPayload
|
|
46
|
-
| DatabaseContentUpdatedWebhookPayload
|
|
47
44
|
| DatabaseCreatedWebhookPayload
|
|
48
45
|
| DatabaseDeletedWebhookPayload
|
|
49
46
|
| DatabaseMovedWebhookPayload
|
|
50
|
-
| DatabaseSchemaUpdatedWebhookPayload
|
|
51
47
|
| DatabaseUndeletedWebhookPayload
|
|
52
48
|
| FileUploadCompletedWebhookPayload
|
|
53
49
|
| FileUploadCreatedWebhookPayload
|
|
@@ -197,14 +193,6 @@ const RAW_NOTION_EVENT_SCHEMA = z.discriminatedUnion("type", [
|
|
|
197
193
|
DATABASE_ENTITY_SCHEMA,
|
|
198
194
|
PARENT_DATA_SCHEMA,
|
|
199
195
|
),
|
|
200
|
-
eventWithDataSchema(
|
|
201
|
-
"database.content_updated",
|
|
202
|
-
DATABASE_ENTITY_SCHEMA,
|
|
203
|
-
z.object({
|
|
204
|
-
parent: PARENT_SCHEMA,
|
|
205
|
-
updated_blocks: UPDATED_BLOCK_SCHEMA.array(),
|
|
206
|
-
}),
|
|
207
|
-
),
|
|
208
196
|
eventWithDataSchema(
|
|
209
197
|
"database.created",
|
|
210
198
|
DATABASE_ENTITY_SCHEMA,
|
|
@@ -220,21 +208,6 @@ const RAW_NOTION_EVENT_SCHEMA = z.discriminatedUnion("type", [
|
|
|
220
208
|
DATABASE_ENTITY_SCHEMA,
|
|
221
209
|
PARENT_DATA_SCHEMA,
|
|
222
210
|
),
|
|
223
|
-
eventWithDataSchema(
|
|
224
|
-
"database.schema_updated",
|
|
225
|
-
DATABASE_ENTITY_SCHEMA,
|
|
226
|
-
z.object({
|
|
227
|
-
parent: PARENT_SCHEMA,
|
|
228
|
-
updated_properties: z
|
|
229
|
-
.object({
|
|
230
|
-
action: z.enum(["created", "updated", "deleted"]),
|
|
231
|
-
id: z.string(),
|
|
232
|
-
name: z.string().nullable(),
|
|
233
|
-
})
|
|
234
|
-
.array()
|
|
235
|
-
.optional(),
|
|
236
|
-
}),
|
|
237
|
-
),
|
|
238
211
|
eventWithDataSchema(
|
|
239
212
|
"database.undeleted",
|
|
240
213
|
DATABASE_ENTITY_SCHEMA,
|