@automate.ax/integration-contracts 0.158.0 → 0.159.1

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.
@@ -0,0 +1,839 @@
1
+ import { isEncodable } from "@automate.ax/codec";
2
+ import * as z from "zod";
3
+ export const SQUARE_SEMANTIC_EVENT_TYPES = [
4
+ "bank_account.created",
5
+ "bank_account.disabled",
6
+ "bank_account.verified",
7
+ "booking.created",
8
+ "booking.custom_attribute_definition.owned.created",
9
+ "booking.custom_attribute_definition.owned.deleted",
10
+ "booking.custom_attribute_definition.owned.updated",
11
+ "booking.custom_attribute_definition.visible.created",
12
+ "booking.custom_attribute_definition.visible.deleted",
13
+ "booking.custom_attribute_definition.visible.updated",
14
+ "booking.custom_attribute.owned.deleted",
15
+ "booking.custom_attribute.owned.updated",
16
+ "booking.custom_attribute.visible.deleted",
17
+ "booking.custom_attribute.visible.updated",
18
+ "booking.updated",
19
+ "card.automatically_updated",
20
+ "card.created",
21
+ "card.disabled",
22
+ "card.forgotten",
23
+ "card.updated",
24
+ "catalog.version.updated",
25
+ "customer.created",
26
+ "customer.custom_attribute_definition.owned.created",
27
+ "customer.custom_attribute_definition.owned.deleted",
28
+ "customer.custom_attribute_definition.owned.updated",
29
+ "customer.custom_attribute_definition.visible.created",
30
+ "customer.custom_attribute_definition.visible.deleted",
31
+ "customer.custom_attribute_definition.visible.updated",
32
+ "customer.custom_attribute.owned.deleted",
33
+ "customer.custom_attribute.owned.updated",
34
+ "customer.custom_attribute.visible.deleted",
35
+ "customer.custom_attribute.visible.updated",
36
+ "customer.deleted",
37
+ "customer.updated",
38
+ "device.code.paired",
39
+ "device.created",
40
+ "dispute.created",
41
+ "dispute.evidence.created",
42
+ "dispute.evidence.deleted",
43
+ "dispute.state.updated",
44
+ "gift_card.activity.created",
45
+ "gift_card.activity.updated",
46
+ "gift_card.created",
47
+ "gift_card.customer_linked",
48
+ "gift_card.customer_unlinked",
49
+ "gift_card.updated",
50
+ "inventory.count.updated",
51
+ "invoice.canceled",
52
+ "invoice.created",
53
+ "invoice.deleted",
54
+ "invoice.payment_made",
55
+ "invoice.published",
56
+ "invoice.refunded",
57
+ "invoice.scheduled_charge_failed",
58
+ "invoice.updated",
59
+ "job.created",
60
+ "job.updated",
61
+ "labor.scheduled_shift.created",
62
+ "labor.scheduled_shift.deleted",
63
+ "labor.scheduled_shift.published",
64
+ "labor.scheduled_shift.updated",
65
+ "labor.timecard.created",
66
+ "labor.timecard.deleted",
67
+ "labor.timecard.updated",
68
+ "location.created",
69
+ "location.custom_attribute_definition.owned.created",
70
+ "location.custom_attribute_definition.owned.deleted",
71
+ "location.custom_attribute_definition.owned.updated",
72
+ "location.custom_attribute_definition.visible.created",
73
+ "location.custom_attribute_definition.visible.deleted",
74
+ "location.custom_attribute_definition.visible.updated",
75
+ "location.custom_attribute.owned.deleted",
76
+ "location.custom_attribute.owned.updated",
77
+ "location.custom_attribute.visible.deleted",
78
+ "location.custom_attribute.visible.updated",
79
+ "location.updated",
80
+ "loyalty.account.created",
81
+ "loyalty.account.deleted",
82
+ "loyalty.account.updated",
83
+ "loyalty.event.created",
84
+ "loyalty.program.created",
85
+ "loyalty.program.updated",
86
+ "loyalty.promotion.created",
87
+ "loyalty.promotion.updated",
88
+ "merchant.custom_attribute_definition.owned.created",
89
+ "merchant.custom_attribute_definition.owned.deleted",
90
+ "merchant.custom_attribute_definition.owned.updated",
91
+ "merchant.custom_attribute_definition.visible.created",
92
+ "merchant.custom_attribute_definition.visible.deleted",
93
+ "merchant.custom_attribute_definition.visible.updated",
94
+ "merchant.custom_attribute.owned.deleted",
95
+ "merchant.custom_attribute.owned.updated",
96
+ "merchant.custom_attribute.visible.deleted",
97
+ "merchant.custom_attribute.visible.updated",
98
+ "oauth.authorization.revoked",
99
+ "online_checkout.location_settings.updated",
100
+ "online_checkout.merchant_settings.updated",
101
+ "order.created",
102
+ "order.custom_attribute_definition.owned.created",
103
+ "order.custom_attribute_definition.owned.deleted",
104
+ "order.custom_attribute_definition.owned.updated",
105
+ "order.custom_attribute_definition.visible.created",
106
+ "order.custom_attribute_definition.visible.deleted",
107
+ "order.custom_attribute_definition.visible.updated",
108
+ "order.custom_attribute.owned.deleted",
109
+ "order.custom_attribute.owned.updated",
110
+ "order.custom_attribute.visible.deleted",
111
+ "order.custom_attribute.visible.updated",
112
+ "order.fulfillment.updated",
113
+ "order.updated",
114
+ "payment.created",
115
+ "payment.updated",
116
+ "payout.failed",
117
+ "payout.paid",
118
+ "payout.sent",
119
+ "refund.created",
120
+ "refund.updated",
121
+ "subscription.created",
122
+ "subscription.updated",
123
+ "team_member.created",
124
+ "team_member.updated",
125
+ "team_member.wage_setting.updated",
126
+ "terminal.action.created",
127
+ "terminal.action.updated",
128
+ "terminal.checkout.created",
129
+ "terminal.checkout.updated",
130
+ "terminal.refund.created",
131
+ "terminal.refund.updated",
132
+ "transfer_order.created",
133
+ "transfer_order.deleted",
134
+ "transfer_order.updated",
135
+ "vendor.created",
136
+ "vendor.updated",
137
+ ];
138
+ export const SQUARE_SEMANTIC_EVENT_TYPE_MAP = {
139
+ "bank_account.created": "square.bankAccount.created",
140
+ "bank_account.disabled": "square.bankAccount.disabled",
141
+ "bank_account.verified": "square.bankAccount.verified",
142
+ "booking.created": "square.booking.created",
143
+ "booking.custom_attribute_definition.owned.created": "square.booking.customAttributeDefinition.owned.created",
144
+ "booking.custom_attribute_definition.owned.deleted": "square.booking.customAttributeDefinition.owned.deleted",
145
+ "booking.custom_attribute_definition.owned.updated": "square.booking.customAttributeDefinition.owned.updated",
146
+ "booking.custom_attribute_definition.visible.created": "square.booking.customAttributeDefinition.visible.created",
147
+ "booking.custom_attribute_definition.visible.deleted": "square.booking.customAttributeDefinition.visible.deleted",
148
+ "booking.custom_attribute_definition.visible.updated": "square.booking.customAttributeDefinition.visible.updated",
149
+ "booking.custom_attribute.owned.deleted": "square.booking.customAttribute.owned.deleted",
150
+ "booking.custom_attribute.owned.updated": "square.booking.customAttribute.owned.updated",
151
+ "booking.custom_attribute.visible.deleted": "square.booking.customAttribute.visible.deleted",
152
+ "booking.custom_attribute.visible.updated": "square.booking.customAttribute.visible.updated",
153
+ "booking.updated": "square.booking.updated",
154
+ "card.automatically_updated": "square.card.automaticallyUpdated",
155
+ "card.created": "square.card.created",
156
+ "card.disabled": "square.card.disabled",
157
+ "card.forgotten": "square.card.forgotten",
158
+ "card.updated": "square.card.updated",
159
+ "catalog.version.updated": "square.catalog.version.updated",
160
+ "customer.created": "square.customer.created",
161
+ "customer.custom_attribute_definition.owned.created": "square.customer.customAttributeDefinition.owned.created",
162
+ "customer.custom_attribute_definition.owned.deleted": "square.customer.customAttributeDefinition.owned.deleted",
163
+ "customer.custom_attribute_definition.owned.updated": "square.customer.customAttributeDefinition.owned.updated",
164
+ "customer.custom_attribute_definition.visible.created": "square.customer.customAttributeDefinition.visible.created",
165
+ "customer.custom_attribute_definition.visible.deleted": "square.customer.customAttributeDefinition.visible.deleted",
166
+ "customer.custom_attribute_definition.visible.updated": "square.customer.customAttributeDefinition.visible.updated",
167
+ "customer.custom_attribute.owned.deleted": "square.customer.customAttribute.owned.deleted",
168
+ "customer.custom_attribute.owned.updated": "square.customer.customAttribute.owned.updated",
169
+ "customer.custom_attribute.visible.deleted": "square.customer.customAttribute.visible.deleted",
170
+ "customer.custom_attribute.visible.updated": "square.customer.customAttribute.visible.updated",
171
+ "customer.deleted": "square.customer.deleted",
172
+ "customer.updated": "square.customer.updated",
173
+ "device.code.paired": "square.device.code.paired",
174
+ "device.created": "square.device.created",
175
+ "dispute.created": "square.dispute.created",
176
+ "dispute.evidence.created": "square.dispute.evidence.created",
177
+ "dispute.evidence.deleted": "square.dispute.evidence.deleted",
178
+ "dispute.state.updated": "square.dispute.state.updated",
179
+ "gift_card.activity.created": "square.giftCard.activity.created",
180
+ "gift_card.activity.updated": "square.giftCard.activity.updated",
181
+ "gift_card.created": "square.giftCard.created",
182
+ "gift_card.customer_linked": "square.giftCard.customerLinked",
183
+ "gift_card.customer_unlinked": "square.giftCard.customerUnlinked",
184
+ "gift_card.updated": "square.giftCard.updated",
185
+ "inventory.count.updated": "square.inventory.count.updated",
186
+ "invoice.canceled": "square.invoice.canceled",
187
+ "invoice.created": "square.invoice.created",
188
+ "invoice.deleted": "square.invoice.deleted",
189
+ "invoice.payment_made": "square.invoice.paymentMade",
190
+ "invoice.published": "square.invoice.published",
191
+ "invoice.refunded": "square.invoice.refunded",
192
+ "invoice.scheduled_charge_failed": "square.invoice.scheduledChargeFailed",
193
+ "invoice.updated": "square.invoice.updated",
194
+ "job.created": "square.job.created",
195
+ "job.updated": "square.job.updated",
196
+ "labor.scheduled_shift.created": "square.labor.scheduledShift.created",
197
+ "labor.scheduled_shift.deleted": "square.labor.scheduledShift.deleted",
198
+ "labor.scheduled_shift.published": "square.labor.scheduledShift.published",
199
+ "labor.scheduled_shift.updated": "square.labor.scheduledShift.updated",
200
+ "labor.timecard.created": "square.labor.timecard.created",
201
+ "labor.timecard.deleted": "square.labor.timecard.deleted",
202
+ "labor.timecard.updated": "square.labor.timecard.updated",
203
+ "location.created": "square.location.created",
204
+ "location.custom_attribute_definition.owned.created": "square.location.customAttributeDefinition.owned.created",
205
+ "location.custom_attribute_definition.owned.deleted": "square.location.customAttributeDefinition.owned.deleted",
206
+ "location.custom_attribute_definition.owned.updated": "square.location.customAttributeDefinition.owned.updated",
207
+ "location.custom_attribute_definition.visible.created": "square.location.customAttributeDefinition.visible.created",
208
+ "location.custom_attribute_definition.visible.deleted": "square.location.customAttributeDefinition.visible.deleted",
209
+ "location.custom_attribute_definition.visible.updated": "square.location.customAttributeDefinition.visible.updated",
210
+ "location.custom_attribute.owned.deleted": "square.location.customAttribute.owned.deleted",
211
+ "location.custom_attribute.owned.updated": "square.location.customAttribute.owned.updated",
212
+ "location.custom_attribute.visible.deleted": "square.location.customAttribute.visible.deleted",
213
+ "location.custom_attribute.visible.updated": "square.location.customAttribute.visible.updated",
214
+ "location.updated": "square.location.updated",
215
+ "loyalty.account.created": "square.loyalty.account.created",
216
+ "loyalty.account.deleted": "square.loyalty.account.deleted",
217
+ "loyalty.account.updated": "square.loyalty.account.updated",
218
+ "loyalty.event.created": "square.loyalty.event.created",
219
+ "loyalty.program.created": "square.loyalty.program.created",
220
+ "loyalty.program.updated": "square.loyalty.program.updated",
221
+ "loyalty.promotion.created": "square.loyalty.promotion.created",
222
+ "loyalty.promotion.updated": "square.loyalty.promotion.updated",
223
+ "merchant.custom_attribute_definition.owned.created": "square.merchant.customAttributeDefinition.owned.created",
224
+ "merchant.custom_attribute_definition.owned.deleted": "square.merchant.customAttributeDefinition.owned.deleted",
225
+ "merchant.custom_attribute_definition.owned.updated": "square.merchant.customAttributeDefinition.owned.updated",
226
+ "merchant.custom_attribute_definition.visible.created": "square.merchant.customAttributeDefinition.visible.created",
227
+ "merchant.custom_attribute_definition.visible.deleted": "square.merchant.customAttributeDefinition.visible.deleted",
228
+ "merchant.custom_attribute_definition.visible.updated": "square.merchant.customAttributeDefinition.visible.updated",
229
+ "merchant.custom_attribute.owned.deleted": "square.merchant.customAttribute.owned.deleted",
230
+ "merchant.custom_attribute.owned.updated": "square.merchant.customAttribute.owned.updated",
231
+ "merchant.custom_attribute.visible.deleted": "square.merchant.customAttribute.visible.deleted",
232
+ "merchant.custom_attribute.visible.updated": "square.merchant.customAttribute.visible.updated",
233
+ "oauth.authorization.revoked": "square.oauth.authorization.revoked",
234
+ "online_checkout.location_settings.updated": "square.onlineCheckout.locationSettings.updated",
235
+ "online_checkout.merchant_settings.updated": "square.onlineCheckout.merchantSettings.updated",
236
+ "order.created": "square.order.created",
237
+ "order.custom_attribute_definition.owned.created": "square.order.customAttributeDefinition.owned.created",
238
+ "order.custom_attribute_definition.owned.deleted": "square.order.customAttributeDefinition.owned.deleted",
239
+ "order.custom_attribute_definition.owned.updated": "square.order.customAttributeDefinition.owned.updated",
240
+ "order.custom_attribute_definition.visible.created": "square.order.customAttributeDefinition.visible.created",
241
+ "order.custom_attribute_definition.visible.deleted": "square.order.customAttributeDefinition.visible.deleted",
242
+ "order.custom_attribute_definition.visible.updated": "square.order.customAttributeDefinition.visible.updated",
243
+ "order.custom_attribute.owned.deleted": "square.order.customAttribute.owned.deleted",
244
+ "order.custom_attribute.owned.updated": "square.order.customAttribute.owned.updated",
245
+ "order.custom_attribute.visible.deleted": "square.order.customAttribute.visible.deleted",
246
+ "order.custom_attribute.visible.updated": "square.order.customAttribute.visible.updated",
247
+ "order.fulfillment.updated": "square.order.fulfillment.updated",
248
+ "order.updated": "square.order.updated",
249
+ "payment.created": "square.payment.created",
250
+ "payment.updated": "square.payment.updated",
251
+ "payout.failed": "square.payout.failed",
252
+ "payout.paid": "square.payout.paid",
253
+ "payout.sent": "square.payout.sent",
254
+ "refund.created": "square.refund.created",
255
+ "refund.updated": "square.refund.updated",
256
+ "subscription.created": "square.subscription.created",
257
+ "subscription.updated": "square.subscription.updated",
258
+ "team_member.created": "square.teamMember.created",
259
+ "team_member.updated": "square.teamMember.updated",
260
+ "team_member.wage_setting.updated": "square.teamMember.wageSetting.updated",
261
+ "terminal.action.created": "square.terminal.action.created",
262
+ "terminal.action.updated": "square.terminal.action.updated",
263
+ "terminal.checkout.created": "square.terminal.checkout.created",
264
+ "terminal.checkout.updated": "square.terminal.checkout.updated",
265
+ "terminal.refund.created": "square.terminal.refund.created",
266
+ "terminal.refund.updated": "square.terminal.refund.updated",
267
+ "transfer_order.created": "square.transferOrder.created",
268
+ "transfer_order.deleted": "square.transferOrder.deleted",
269
+ "transfer_order.updated": "square.transferOrder.updated",
270
+ "vendor.created": "square.vendor.created",
271
+ "vendor.updated": "square.vendor.updated",
272
+ };
273
+ const SQUARE_EVENT_BASE_SCHEMA = z.looseObject({
274
+ createdAt: z.string().optional(),
275
+ data: z.custom(isEncodable).optional(),
276
+ eventId: z.string().min(1),
277
+ locationId: z.string().nullable().optional(),
278
+ merchantId: z.string().nullable().optional(),
279
+ type: z.string().min(1),
280
+ });
281
+ export const SQUARE_EVENT_SCHEMA = z.custom((value) => SQUARE_EVENT_BASE_SCHEMA.safeParse(value).success && isEncodable(value));
282
+ export const SQUARE_TRIGGER_CONFIG_SCHEMA = z.object({});
283
+ /**
284
+ * Validates a verified Square event for one semantic trigger.
285
+ *
286
+ * @param type - Exact provider event type accepted by the schema.
287
+ */
288
+ export function squareSemanticEventSchema(type) {
289
+ return z.custom((value) => {
290
+ const event = SQUARE_EVENT_SCHEMA.safeParse(value);
291
+ return event.success && event.data.type === type;
292
+ });
293
+ }
294
+ /**
295
+ * Validates the public representation of a verified Square event.
296
+ *
297
+ * @param event - Provider event after official SDK deserialization.
298
+ */
299
+ export function normalizeSquareEvent(event) {
300
+ return SQUARE_EVENT_SCHEMA.parse(event);
301
+ }
302
+ export const squareTriggerContracts = {
303
+ "square.bankAccount.created": {
304
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
305
+ eventSchema: squareSemanticEventSchema("bank_account.created"),
306
+ },
307
+ "square.bankAccount.disabled": {
308
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
309
+ eventSchema: squareSemanticEventSchema("bank_account.disabled"),
310
+ },
311
+ "square.bankAccount.verified": {
312
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
313
+ eventSchema: squareSemanticEventSchema("bank_account.verified"),
314
+ },
315
+ "square.booking.created": {
316
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
317
+ eventSchema: squareSemanticEventSchema("booking.created"),
318
+ },
319
+ "square.booking.customAttributeDefinition.owned.created": {
320
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
321
+ eventSchema: squareSemanticEventSchema("booking.custom_attribute_definition.owned.created"),
322
+ },
323
+ "square.booking.customAttributeDefinition.owned.deleted": {
324
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
325
+ eventSchema: squareSemanticEventSchema("booking.custom_attribute_definition.owned.deleted"),
326
+ },
327
+ "square.booking.customAttributeDefinition.owned.updated": {
328
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
329
+ eventSchema: squareSemanticEventSchema("booking.custom_attribute_definition.owned.updated"),
330
+ },
331
+ "square.booking.customAttributeDefinition.visible.created": {
332
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
333
+ eventSchema: squareSemanticEventSchema("booking.custom_attribute_definition.visible.created"),
334
+ },
335
+ "square.booking.customAttributeDefinition.visible.deleted": {
336
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
337
+ eventSchema: squareSemanticEventSchema("booking.custom_attribute_definition.visible.deleted"),
338
+ },
339
+ "square.booking.customAttributeDefinition.visible.updated": {
340
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
341
+ eventSchema: squareSemanticEventSchema("booking.custom_attribute_definition.visible.updated"),
342
+ },
343
+ "square.booking.customAttribute.owned.deleted": {
344
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
345
+ eventSchema: squareSemanticEventSchema("booking.custom_attribute.owned.deleted"),
346
+ },
347
+ "square.booking.customAttribute.owned.updated": {
348
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
349
+ eventSchema: squareSemanticEventSchema("booking.custom_attribute.owned.updated"),
350
+ },
351
+ "square.booking.customAttribute.visible.deleted": {
352
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
353
+ eventSchema: squareSemanticEventSchema("booking.custom_attribute.visible.deleted"),
354
+ },
355
+ "square.booking.customAttribute.visible.updated": {
356
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
357
+ eventSchema: squareSemanticEventSchema("booking.custom_attribute.visible.updated"),
358
+ },
359
+ "square.booking.updated": {
360
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
361
+ eventSchema: squareSemanticEventSchema("booking.updated"),
362
+ },
363
+ "square.card.automaticallyUpdated": {
364
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
365
+ eventSchema: squareSemanticEventSchema("card.automatically_updated"),
366
+ },
367
+ "square.card.created": {
368
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
369
+ eventSchema: squareSemanticEventSchema("card.created"),
370
+ },
371
+ "square.card.disabled": {
372
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
373
+ eventSchema: squareSemanticEventSchema("card.disabled"),
374
+ },
375
+ "square.card.forgotten": {
376
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
377
+ eventSchema: squareSemanticEventSchema("card.forgotten"),
378
+ },
379
+ "square.card.updated": {
380
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
381
+ eventSchema: squareSemanticEventSchema("card.updated"),
382
+ },
383
+ "square.catalog.version.updated": {
384
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
385
+ eventSchema: squareSemanticEventSchema("catalog.version.updated"),
386
+ },
387
+ "square.customer.created": {
388
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
389
+ eventSchema: squareSemanticEventSchema("customer.created"),
390
+ },
391
+ "square.customer.customAttributeDefinition.owned.created": {
392
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
393
+ eventSchema: squareSemanticEventSchema("customer.custom_attribute_definition.owned.created"),
394
+ },
395
+ "square.customer.customAttributeDefinition.owned.deleted": {
396
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
397
+ eventSchema: squareSemanticEventSchema("customer.custom_attribute_definition.owned.deleted"),
398
+ },
399
+ "square.customer.customAttributeDefinition.owned.updated": {
400
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
401
+ eventSchema: squareSemanticEventSchema("customer.custom_attribute_definition.owned.updated"),
402
+ },
403
+ "square.customer.customAttributeDefinition.visible.created": {
404
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
405
+ eventSchema: squareSemanticEventSchema("customer.custom_attribute_definition.visible.created"),
406
+ },
407
+ "square.customer.customAttributeDefinition.visible.deleted": {
408
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
409
+ eventSchema: squareSemanticEventSchema("customer.custom_attribute_definition.visible.deleted"),
410
+ },
411
+ "square.customer.customAttributeDefinition.visible.updated": {
412
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
413
+ eventSchema: squareSemanticEventSchema("customer.custom_attribute_definition.visible.updated"),
414
+ },
415
+ "square.customer.customAttribute.owned.deleted": {
416
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
417
+ eventSchema: squareSemanticEventSchema("customer.custom_attribute.owned.deleted"),
418
+ },
419
+ "square.customer.customAttribute.owned.updated": {
420
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
421
+ eventSchema: squareSemanticEventSchema("customer.custom_attribute.owned.updated"),
422
+ },
423
+ "square.customer.customAttribute.visible.deleted": {
424
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
425
+ eventSchema: squareSemanticEventSchema("customer.custom_attribute.visible.deleted"),
426
+ },
427
+ "square.customer.customAttribute.visible.updated": {
428
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
429
+ eventSchema: squareSemanticEventSchema("customer.custom_attribute.visible.updated"),
430
+ },
431
+ "square.customer.deleted": {
432
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
433
+ eventSchema: squareSemanticEventSchema("customer.deleted"),
434
+ },
435
+ "square.customer.updated": {
436
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
437
+ eventSchema: squareSemanticEventSchema("customer.updated"),
438
+ },
439
+ "square.device.code.paired": {
440
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
441
+ eventSchema: squareSemanticEventSchema("device.code.paired"),
442
+ },
443
+ "square.device.created": {
444
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
445
+ eventSchema: squareSemanticEventSchema("device.created"),
446
+ },
447
+ "square.dispute.created": {
448
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
449
+ eventSchema: squareSemanticEventSchema("dispute.created"),
450
+ },
451
+ "square.dispute.evidence.created": {
452
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
453
+ eventSchema: squareSemanticEventSchema("dispute.evidence.created"),
454
+ },
455
+ "square.dispute.evidence.deleted": {
456
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
457
+ eventSchema: squareSemanticEventSchema("dispute.evidence.deleted"),
458
+ },
459
+ "square.dispute.state.updated": {
460
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
461
+ eventSchema: squareSemanticEventSchema("dispute.state.updated"),
462
+ },
463
+ "square.giftCard.activity.created": {
464
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
465
+ eventSchema: squareSemanticEventSchema("gift_card.activity.created"),
466
+ },
467
+ "square.giftCard.activity.updated": {
468
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
469
+ eventSchema: squareSemanticEventSchema("gift_card.activity.updated"),
470
+ },
471
+ "square.giftCard.created": {
472
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
473
+ eventSchema: squareSemanticEventSchema("gift_card.created"),
474
+ },
475
+ "square.giftCard.customerLinked": {
476
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
477
+ eventSchema: squareSemanticEventSchema("gift_card.customer_linked"),
478
+ },
479
+ "square.giftCard.customerUnlinked": {
480
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
481
+ eventSchema: squareSemanticEventSchema("gift_card.customer_unlinked"),
482
+ },
483
+ "square.giftCard.updated": {
484
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
485
+ eventSchema: squareSemanticEventSchema("gift_card.updated"),
486
+ },
487
+ "square.inventory.count.updated": {
488
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
489
+ eventSchema: squareSemanticEventSchema("inventory.count.updated"),
490
+ },
491
+ "square.invoice.canceled": {
492
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
493
+ eventSchema: squareSemanticEventSchema("invoice.canceled"),
494
+ },
495
+ "square.invoice.created": {
496
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
497
+ eventSchema: squareSemanticEventSchema("invoice.created"),
498
+ },
499
+ "square.invoice.deleted": {
500
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
501
+ eventSchema: squareSemanticEventSchema("invoice.deleted"),
502
+ },
503
+ "square.invoice.paymentMade": {
504
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
505
+ eventSchema: squareSemanticEventSchema("invoice.payment_made"),
506
+ },
507
+ "square.invoice.published": {
508
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
509
+ eventSchema: squareSemanticEventSchema("invoice.published"),
510
+ },
511
+ "square.invoice.refunded": {
512
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
513
+ eventSchema: squareSemanticEventSchema("invoice.refunded"),
514
+ },
515
+ "square.invoice.scheduledChargeFailed": {
516
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
517
+ eventSchema: squareSemanticEventSchema("invoice.scheduled_charge_failed"),
518
+ },
519
+ "square.invoice.updated": {
520
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
521
+ eventSchema: squareSemanticEventSchema("invoice.updated"),
522
+ },
523
+ "square.job.created": {
524
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
525
+ eventSchema: squareSemanticEventSchema("job.created"),
526
+ },
527
+ "square.job.updated": {
528
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
529
+ eventSchema: squareSemanticEventSchema("job.updated"),
530
+ },
531
+ "square.labor.scheduledShift.created": {
532
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
533
+ eventSchema: squareSemanticEventSchema("labor.scheduled_shift.created"),
534
+ },
535
+ "square.labor.scheduledShift.deleted": {
536
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
537
+ eventSchema: squareSemanticEventSchema("labor.scheduled_shift.deleted"),
538
+ },
539
+ "square.labor.scheduledShift.published": {
540
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
541
+ eventSchema: squareSemanticEventSchema("labor.scheduled_shift.published"),
542
+ },
543
+ "square.labor.scheduledShift.updated": {
544
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
545
+ eventSchema: squareSemanticEventSchema("labor.scheduled_shift.updated"),
546
+ },
547
+ "square.labor.timecard.created": {
548
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
549
+ eventSchema: squareSemanticEventSchema("labor.timecard.created"),
550
+ },
551
+ "square.labor.timecard.deleted": {
552
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
553
+ eventSchema: squareSemanticEventSchema("labor.timecard.deleted"),
554
+ },
555
+ "square.labor.timecard.updated": {
556
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
557
+ eventSchema: squareSemanticEventSchema("labor.timecard.updated"),
558
+ },
559
+ "square.location.created": {
560
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
561
+ eventSchema: squareSemanticEventSchema("location.created"),
562
+ },
563
+ "square.location.customAttributeDefinition.owned.created": {
564
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
565
+ eventSchema: squareSemanticEventSchema("location.custom_attribute_definition.owned.created"),
566
+ },
567
+ "square.location.customAttributeDefinition.owned.deleted": {
568
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
569
+ eventSchema: squareSemanticEventSchema("location.custom_attribute_definition.owned.deleted"),
570
+ },
571
+ "square.location.customAttributeDefinition.owned.updated": {
572
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
573
+ eventSchema: squareSemanticEventSchema("location.custom_attribute_definition.owned.updated"),
574
+ },
575
+ "square.location.customAttributeDefinition.visible.created": {
576
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
577
+ eventSchema: squareSemanticEventSchema("location.custom_attribute_definition.visible.created"),
578
+ },
579
+ "square.location.customAttributeDefinition.visible.deleted": {
580
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
581
+ eventSchema: squareSemanticEventSchema("location.custom_attribute_definition.visible.deleted"),
582
+ },
583
+ "square.location.customAttributeDefinition.visible.updated": {
584
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
585
+ eventSchema: squareSemanticEventSchema("location.custom_attribute_definition.visible.updated"),
586
+ },
587
+ "square.location.customAttribute.owned.deleted": {
588
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
589
+ eventSchema: squareSemanticEventSchema("location.custom_attribute.owned.deleted"),
590
+ },
591
+ "square.location.customAttribute.owned.updated": {
592
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
593
+ eventSchema: squareSemanticEventSchema("location.custom_attribute.owned.updated"),
594
+ },
595
+ "square.location.customAttribute.visible.deleted": {
596
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
597
+ eventSchema: squareSemanticEventSchema("location.custom_attribute.visible.deleted"),
598
+ },
599
+ "square.location.customAttribute.visible.updated": {
600
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
601
+ eventSchema: squareSemanticEventSchema("location.custom_attribute.visible.updated"),
602
+ },
603
+ "square.location.updated": {
604
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
605
+ eventSchema: squareSemanticEventSchema("location.updated"),
606
+ },
607
+ "square.loyalty.account.created": {
608
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
609
+ eventSchema: squareSemanticEventSchema("loyalty.account.created"),
610
+ },
611
+ "square.loyalty.account.deleted": {
612
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
613
+ eventSchema: squareSemanticEventSchema("loyalty.account.deleted"),
614
+ },
615
+ "square.loyalty.account.updated": {
616
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
617
+ eventSchema: squareSemanticEventSchema("loyalty.account.updated"),
618
+ },
619
+ "square.loyalty.event.created": {
620
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
621
+ eventSchema: squareSemanticEventSchema("loyalty.event.created"),
622
+ },
623
+ "square.loyalty.program.created": {
624
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
625
+ eventSchema: squareSemanticEventSchema("loyalty.program.created"),
626
+ },
627
+ "square.loyalty.program.updated": {
628
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
629
+ eventSchema: squareSemanticEventSchema("loyalty.program.updated"),
630
+ },
631
+ "square.loyalty.promotion.created": {
632
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
633
+ eventSchema: squareSemanticEventSchema("loyalty.promotion.created"),
634
+ },
635
+ "square.loyalty.promotion.updated": {
636
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
637
+ eventSchema: squareSemanticEventSchema("loyalty.promotion.updated"),
638
+ },
639
+ "square.merchant.customAttributeDefinition.owned.created": {
640
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
641
+ eventSchema: squareSemanticEventSchema("merchant.custom_attribute_definition.owned.created"),
642
+ },
643
+ "square.merchant.customAttributeDefinition.owned.deleted": {
644
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
645
+ eventSchema: squareSemanticEventSchema("merchant.custom_attribute_definition.owned.deleted"),
646
+ },
647
+ "square.merchant.customAttributeDefinition.owned.updated": {
648
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
649
+ eventSchema: squareSemanticEventSchema("merchant.custom_attribute_definition.owned.updated"),
650
+ },
651
+ "square.merchant.customAttributeDefinition.visible.created": {
652
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
653
+ eventSchema: squareSemanticEventSchema("merchant.custom_attribute_definition.visible.created"),
654
+ },
655
+ "square.merchant.customAttributeDefinition.visible.deleted": {
656
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
657
+ eventSchema: squareSemanticEventSchema("merchant.custom_attribute_definition.visible.deleted"),
658
+ },
659
+ "square.merchant.customAttributeDefinition.visible.updated": {
660
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
661
+ eventSchema: squareSemanticEventSchema("merchant.custom_attribute_definition.visible.updated"),
662
+ },
663
+ "square.merchant.customAttribute.owned.deleted": {
664
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
665
+ eventSchema: squareSemanticEventSchema("merchant.custom_attribute.owned.deleted"),
666
+ },
667
+ "square.merchant.customAttribute.owned.updated": {
668
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
669
+ eventSchema: squareSemanticEventSchema("merchant.custom_attribute.owned.updated"),
670
+ },
671
+ "square.merchant.customAttribute.visible.deleted": {
672
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
673
+ eventSchema: squareSemanticEventSchema("merchant.custom_attribute.visible.deleted"),
674
+ },
675
+ "square.merchant.customAttribute.visible.updated": {
676
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
677
+ eventSchema: squareSemanticEventSchema("merchant.custom_attribute.visible.updated"),
678
+ },
679
+ "square.oauth.authorization.revoked": {
680
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
681
+ eventSchema: squareSemanticEventSchema("oauth.authorization.revoked"),
682
+ },
683
+ "square.onlineCheckout.locationSettings.updated": {
684
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
685
+ eventSchema: squareSemanticEventSchema("online_checkout.location_settings.updated"),
686
+ },
687
+ "square.onlineCheckout.merchantSettings.updated": {
688
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
689
+ eventSchema: squareSemanticEventSchema("online_checkout.merchant_settings.updated"),
690
+ },
691
+ "square.order.created": {
692
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
693
+ eventSchema: squareSemanticEventSchema("order.created"),
694
+ },
695
+ "square.order.customAttributeDefinition.owned.created": {
696
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
697
+ eventSchema: squareSemanticEventSchema("order.custom_attribute_definition.owned.created"),
698
+ },
699
+ "square.order.customAttributeDefinition.owned.deleted": {
700
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
701
+ eventSchema: squareSemanticEventSchema("order.custom_attribute_definition.owned.deleted"),
702
+ },
703
+ "square.order.customAttributeDefinition.owned.updated": {
704
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
705
+ eventSchema: squareSemanticEventSchema("order.custom_attribute_definition.owned.updated"),
706
+ },
707
+ "square.order.customAttributeDefinition.visible.created": {
708
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
709
+ eventSchema: squareSemanticEventSchema("order.custom_attribute_definition.visible.created"),
710
+ },
711
+ "square.order.customAttributeDefinition.visible.deleted": {
712
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
713
+ eventSchema: squareSemanticEventSchema("order.custom_attribute_definition.visible.deleted"),
714
+ },
715
+ "square.order.customAttributeDefinition.visible.updated": {
716
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
717
+ eventSchema: squareSemanticEventSchema("order.custom_attribute_definition.visible.updated"),
718
+ },
719
+ "square.order.customAttribute.owned.deleted": {
720
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
721
+ eventSchema: squareSemanticEventSchema("order.custom_attribute.owned.deleted"),
722
+ },
723
+ "square.order.customAttribute.owned.updated": {
724
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
725
+ eventSchema: squareSemanticEventSchema("order.custom_attribute.owned.updated"),
726
+ },
727
+ "square.order.customAttribute.visible.deleted": {
728
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
729
+ eventSchema: squareSemanticEventSchema("order.custom_attribute.visible.deleted"),
730
+ },
731
+ "square.order.customAttribute.visible.updated": {
732
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
733
+ eventSchema: squareSemanticEventSchema("order.custom_attribute.visible.updated"),
734
+ },
735
+ "square.order.fulfillment.updated": {
736
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
737
+ eventSchema: squareSemanticEventSchema("order.fulfillment.updated"),
738
+ },
739
+ "square.order.updated": {
740
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
741
+ eventSchema: squareSemanticEventSchema("order.updated"),
742
+ },
743
+ "square.payment.created": {
744
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
745
+ eventSchema: squareSemanticEventSchema("payment.created"),
746
+ },
747
+ "square.payment.updated": {
748
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
749
+ eventSchema: squareSemanticEventSchema("payment.updated"),
750
+ },
751
+ "square.payout.failed": {
752
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
753
+ eventSchema: squareSemanticEventSchema("payout.failed"),
754
+ },
755
+ "square.payout.paid": {
756
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
757
+ eventSchema: squareSemanticEventSchema("payout.paid"),
758
+ },
759
+ "square.payout.sent": {
760
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
761
+ eventSchema: squareSemanticEventSchema("payout.sent"),
762
+ },
763
+ "square.refund.created": {
764
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
765
+ eventSchema: squareSemanticEventSchema("refund.created"),
766
+ },
767
+ "square.refund.updated": {
768
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
769
+ eventSchema: squareSemanticEventSchema("refund.updated"),
770
+ },
771
+ "square.subscription.created": {
772
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
773
+ eventSchema: squareSemanticEventSchema("subscription.created"),
774
+ },
775
+ "square.subscription.updated": {
776
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
777
+ eventSchema: squareSemanticEventSchema("subscription.updated"),
778
+ },
779
+ "square.teamMember.created": {
780
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
781
+ eventSchema: squareSemanticEventSchema("team_member.created"),
782
+ },
783
+ "square.teamMember.updated": {
784
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
785
+ eventSchema: squareSemanticEventSchema("team_member.updated"),
786
+ },
787
+ "square.teamMember.wageSetting.updated": {
788
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
789
+ eventSchema: squareSemanticEventSchema("team_member.wage_setting.updated"),
790
+ },
791
+ "square.terminal.action.created": {
792
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
793
+ eventSchema: squareSemanticEventSchema("terminal.action.created"),
794
+ },
795
+ "square.terminal.action.updated": {
796
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
797
+ eventSchema: squareSemanticEventSchema("terminal.action.updated"),
798
+ },
799
+ "square.terminal.checkout.created": {
800
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
801
+ eventSchema: squareSemanticEventSchema("terminal.checkout.created"),
802
+ },
803
+ "square.terminal.checkout.updated": {
804
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
805
+ eventSchema: squareSemanticEventSchema("terminal.checkout.updated"),
806
+ },
807
+ "square.terminal.refund.created": {
808
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
809
+ eventSchema: squareSemanticEventSchema("terminal.refund.created"),
810
+ },
811
+ "square.terminal.refund.updated": {
812
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
813
+ eventSchema: squareSemanticEventSchema("terminal.refund.updated"),
814
+ },
815
+ "square.transferOrder.created": {
816
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
817
+ eventSchema: squareSemanticEventSchema("transfer_order.created"),
818
+ },
819
+ "square.transferOrder.deleted": {
820
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
821
+ eventSchema: squareSemanticEventSchema("transfer_order.deleted"),
822
+ },
823
+ "square.transferOrder.updated": {
824
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
825
+ eventSchema: squareSemanticEventSchema("transfer_order.updated"),
826
+ },
827
+ "square.vendor.created": {
828
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
829
+ eventSchema: squareSemanticEventSchema("vendor.created"),
830
+ },
831
+ "square.vendor.updated": {
832
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
833
+ eventSchema: squareSemanticEventSchema("vendor.updated"),
834
+ },
835
+ "square.event": {
836
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
837
+ eventSchema: SQUARE_EVENT_SCHEMA,
838
+ },
839
+ };