@automate.ax/integration-contracts 0.158.0 → 0.159.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.
@@ -0,0 +1,1313 @@
1
+ import { isEncodable, type Encodable } from "@automate.ax/codec"
2
+ import type { Square } from "square"
3
+ import * as z from "zod"
4
+
5
+ export const SQUARE_SEMANTIC_EVENT_TYPES = [
6
+ "bank_account.created",
7
+ "bank_account.disabled",
8
+ "bank_account.verified",
9
+ "booking.created",
10
+ "booking.custom_attribute_definition.owned.created",
11
+ "booking.custom_attribute_definition.owned.deleted",
12
+ "booking.custom_attribute_definition.owned.updated",
13
+ "booking.custom_attribute_definition.visible.created",
14
+ "booking.custom_attribute_definition.visible.deleted",
15
+ "booking.custom_attribute_definition.visible.updated",
16
+ "booking.custom_attribute.owned.deleted",
17
+ "booking.custom_attribute.owned.updated",
18
+ "booking.custom_attribute.visible.deleted",
19
+ "booking.custom_attribute.visible.updated",
20
+ "booking.updated",
21
+ "card.automatically_updated",
22
+ "card.created",
23
+ "card.disabled",
24
+ "card.forgotten",
25
+ "card.updated",
26
+ "catalog.version.updated",
27
+ "customer.created",
28
+ "customer.custom_attribute_definition.owned.created",
29
+ "customer.custom_attribute_definition.owned.deleted",
30
+ "customer.custom_attribute_definition.owned.updated",
31
+ "customer.custom_attribute_definition.visible.created",
32
+ "customer.custom_attribute_definition.visible.deleted",
33
+ "customer.custom_attribute_definition.visible.updated",
34
+ "customer.custom_attribute.owned.deleted",
35
+ "customer.custom_attribute.owned.updated",
36
+ "customer.custom_attribute.visible.deleted",
37
+ "customer.custom_attribute.visible.updated",
38
+ "customer.deleted",
39
+ "customer.updated",
40
+ "device.code.paired",
41
+ "device.created",
42
+ "dispute.created",
43
+ "dispute.evidence.created",
44
+ "dispute.evidence.deleted",
45
+ "dispute.state.updated",
46
+ "gift_card.activity.created",
47
+ "gift_card.activity.updated",
48
+ "gift_card.created",
49
+ "gift_card.customer_linked",
50
+ "gift_card.customer_unlinked",
51
+ "gift_card.updated",
52
+ "inventory.count.updated",
53
+ "invoice.canceled",
54
+ "invoice.created",
55
+ "invoice.deleted",
56
+ "invoice.payment_made",
57
+ "invoice.published",
58
+ "invoice.refunded",
59
+ "invoice.scheduled_charge_failed",
60
+ "invoice.updated",
61
+ "job.created",
62
+ "job.updated",
63
+ "labor.scheduled_shift.created",
64
+ "labor.scheduled_shift.deleted",
65
+ "labor.scheduled_shift.published",
66
+ "labor.scheduled_shift.updated",
67
+ "labor.timecard.created",
68
+ "labor.timecard.deleted",
69
+ "labor.timecard.updated",
70
+ "location.created",
71
+ "location.custom_attribute_definition.owned.created",
72
+ "location.custom_attribute_definition.owned.deleted",
73
+ "location.custom_attribute_definition.owned.updated",
74
+ "location.custom_attribute_definition.visible.created",
75
+ "location.custom_attribute_definition.visible.deleted",
76
+ "location.custom_attribute_definition.visible.updated",
77
+ "location.custom_attribute.owned.deleted",
78
+ "location.custom_attribute.owned.updated",
79
+ "location.custom_attribute.visible.deleted",
80
+ "location.custom_attribute.visible.updated",
81
+ "location.updated",
82
+ "loyalty.account.created",
83
+ "loyalty.account.deleted",
84
+ "loyalty.account.updated",
85
+ "loyalty.event.created",
86
+ "loyalty.program.created",
87
+ "loyalty.program.updated",
88
+ "loyalty.promotion.created",
89
+ "loyalty.promotion.updated",
90
+ "merchant.custom_attribute_definition.owned.created",
91
+ "merchant.custom_attribute_definition.owned.deleted",
92
+ "merchant.custom_attribute_definition.owned.updated",
93
+ "merchant.custom_attribute_definition.visible.created",
94
+ "merchant.custom_attribute_definition.visible.deleted",
95
+ "merchant.custom_attribute_definition.visible.updated",
96
+ "merchant.custom_attribute.owned.deleted",
97
+ "merchant.custom_attribute.owned.updated",
98
+ "merchant.custom_attribute.visible.deleted",
99
+ "merchant.custom_attribute.visible.updated",
100
+ "oauth.authorization.revoked",
101
+ "online_checkout.location_settings.updated",
102
+ "online_checkout.merchant_settings.updated",
103
+ "order.created",
104
+ "order.custom_attribute_definition.owned.created",
105
+ "order.custom_attribute_definition.owned.deleted",
106
+ "order.custom_attribute_definition.owned.updated",
107
+ "order.custom_attribute_definition.visible.created",
108
+ "order.custom_attribute_definition.visible.deleted",
109
+ "order.custom_attribute_definition.visible.updated",
110
+ "order.custom_attribute.owned.deleted",
111
+ "order.custom_attribute.owned.updated",
112
+ "order.custom_attribute.visible.deleted",
113
+ "order.custom_attribute.visible.updated",
114
+ "order.fulfillment.updated",
115
+ "order.updated",
116
+ "payment.created",
117
+ "payment.updated",
118
+ "payout.failed",
119
+ "payout.paid",
120
+ "payout.sent",
121
+ "refund.created",
122
+ "refund.updated",
123
+ "subscription.created",
124
+ "subscription.updated",
125
+ "team_member.created",
126
+ "team_member.updated",
127
+ "team_member.wage_setting.updated",
128
+ "terminal.action.created",
129
+ "terminal.action.updated",
130
+ "terminal.checkout.created",
131
+ "terminal.checkout.updated",
132
+ "terminal.refund.created",
133
+ "terminal.refund.updated",
134
+ "transfer_order.created",
135
+ "transfer_order.deleted",
136
+ "transfer_order.updated",
137
+ "vendor.created",
138
+ "vendor.updated",
139
+ ] as const
140
+
141
+ export const SQUARE_SEMANTIC_EVENT_TYPE_MAP = {
142
+ "bank_account.created": "square.bankAccount.created",
143
+ "bank_account.disabled": "square.bankAccount.disabled",
144
+ "bank_account.verified": "square.bankAccount.verified",
145
+ "booking.created": "square.booking.created",
146
+ "booking.custom_attribute_definition.owned.created":
147
+ "square.booking.customAttributeDefinition.owned.created",
148
+ "booking.custom_attribute_definition.owned.deleted":
149
+ "square.booking.customAttributeDefinition.owned.deleted",
150
+ "booking.custom_attribute_definition.owned.updated":
151
+ "square.booking.customAttributeDefinition.owned.updated",
152
+ "booking.custom_attribute_definition.visible.created":
153
+ "square.booking.customAttributeDefinition.visible.created",
154
+ "booking.custom_attribute_definition.visible.deleted":
155
+ "square.booking.customAttributeDefinition.visible.deleted",
156
+ "booking.custom_attribute_definition.visible.updated":
157
+ "square.booking.customAttributeDefinition.visible.updated",
158
+ "booking.custom_attribute.owned.deleted":
159
+ "square.booking.customAttribute.owned.deleted",
160
+ "booking.custom_attribute.owned.updated":
161
+ "square.booking.customAttribute.owned.updated",
162
+ "booking.custom_attribute.visible.deleted":
163
+ "square.booking.customAttribute.visible.deleted",
164
+ "booking.custom_attribute.visible.updated":
165
+ "square.booking.customAttribute.visible.updated",
166
+ "booking.updated": "square.booking.updated",
167
+ "card.automatically_updated": "square.card.automaticallyUpdated",
168
+ "card.created": "square.card.created",
169
+ "card.disabled": "square.card.disabled",
170
+ "card.forgotten": "square.card.forgotten",
171
+ "card.updated": "square.card.updated",
172
+ "catalog.version.updated": "square.catalog.version.updated",
173
+ "customer.created": "square.customer.created",
174
+ "customer.custom_attribute_definition.owned.created":
175
+ "square.customer.customAttributeDefinition.owned.created",
176
+ "customer.custom_attribute_definition.owned.deleted":
177
+ "square.customer.customAttributeDefinition.owned.deleted",
178
+ "customer.custom_attribute_definition.owned.updated":
179
+ "square.customer.customAttributeDefinition.owned.updated",
180
+ "customer.custom_attribute_definition.visible.created":
181
+ "square.customer.customAttributeDefinition.visible.created",
182
+ "customer.custom_attribute_definition.visible.deleted":
183
+ "square.customer.customAttributeDefinition.visible.deleted",
184
+ "customer.custom_attribute_definition.visible.updated":
185
+ "square.customer.customAttributeDefinition.visible.updated",
186
+ "customer.custom_attribute.owned.deleted":
187
+ "square.customer.customAttribute.owned.deleted",
188
+ "customer.custom_attribute.owned.updated":
189
+ "square.customer.customAttribute.owned.updated",
190
+ "customer.custom_attribute.visible.deleted":
191
+ "square.customer.customAttribute.visible.deleted",
192
+ "customer.custom_attribute.visible.updated":
193
+ "square.customer.customAttribute.visible.updated",
194
+ "customer.deleted": "square.customer.deleted",
195
+ "customer.updated": "square.customer.updated",
196
+ "device.code.paired": "square.device.code.paired",
197
+ "device.created": "square.device.created",
198
+ "dispute.created": "square.dispute.created",
199
+ "dispute.evidence.created": "square.dispute.evidence.created",
200
+ "dispute.evidence.deleted": "square.dispute.evidence.deleted",
201
+ "dispute.state.updated": "square.dispute.state.updated",
202
+ "gift_card.activity.created": "square.giftCard.activity.created",
203
+ "gift_card.activity.updated": "square.giftCard.activity.updated",
204
+ "gift_card.created": "square.giftCard.created",
205
+ "gift_card.customer_linked": "square.giftCard.customerLinked",
206
+ "gift_card.customer_unlinked": "square.giftCard.customerUnlinked",
207
+ "gift_card.updated": "square.giftCard.updated",
208
+ "inventory.count.updated": "square.inventory.count.updated",
209
+ "invoice.canceled": "square.invoice.canceled",
210
+ "invoice.created": "square.invoice.created",
211
+ "invoice.deleted": "square.invoice.deleted",
212
+ "invoice.payment_made": "square.invoice.paymentMade",
213
+ "invoice.published": "square.invoice.published",
214
+ "invoice.refunded": "square.invoice.refunded",
215
+ "invoice.scheduled_charge_failed": "square.invoice.scheduledChargeFailed",
216
+ "invoice.updated": "square.invoice.updated",
217
+ "job.created": "square.job.created",
218
+ "job.updated": "square.job.updated",
219
+ "labor.scheduled_shift.created": "square.labor.scheduledShift.created",
220
+ "labor.scheduled_shift.deleted": "square.labor.scheduledShift.deleted",
221
+ "labor.scheduled_shift.published": "square.labor.scheduledShift.published",
222
+ "labor.scheduled_shift.updated": "square.labor.scheduledShift.updated",
223
+ "labor.timecard.created": "square.labor.timecard.created",
224
+ "labor.timecard.deleted": "square.labor.timecard.deleted",
225
+ "labor.timecard.updated": "square.labor.timecard.updated",
226
+ "location.created": "square.location.created",
227
+ "location.custom_attribute_definition.owned.created":
228
+ "square.location.customAttributeDefinition.owned.created",
229
+ "location.custom_attribute_definition.owned.deleted":
230
+ "square.location.customAttributeDefinition.owned.deleted",
231
+ "location.custom_attribute_definition.owned.updated":
232
+ "square.location.customAttributeDefinition.owned.updated",
233
+ "location.custom_attribute_definition.visible.created":
234
+ "square.location.customAttributeDefinition.visible.created",
235
+ "location.custom_attribute_definition.visible.deleted":
236
+ "square.location.customAttributeDefinition.visible.deleted",
237
+ "location.custom_attribute_definition.visible.updated":
238
+ "square.location.customAttributeDefinition.visible.updated",
239
+ "location.custom_attribute.owned.deleted":
240
+ "square.location.customAttribute.owned.deleted",
241
+ "location.custom_attribute.owned.updated":
242
+ "square.location.customAttribute.owned.updated",
243
+ "location.custom_attribute.visible.deleted":
244
+ "square.location.customAttribute.visible.deleted",
245
+ "location.custom_attribute.visible.updated":
246
+ "square.location.customAttribute.visible.updated",
247
+ "location.updated": "square.location.updated",
248
+ "loyalty.account.created": "square.loyalty.account.created",
249
+ "loyalty.account.deleted": "square.loyalty.account.deleted",
250
+ "loyalty.account.updated": "square.loyalty.account.updated",
251
+ "loyalty.event.created": "square.loyalty.event.created",
252
+ "loyalty.program.created": "square.loyalty.program.created",
253
+ "loyalty.program.updated": "square.loyalty.program.updated",
254
+ "loyalty.promotion.created": "square.loyalty.promotion.created",
255
+ "loyalty.promotion.updated": "square.loyalty.promotion.updated",
256
+ "merchant.custom_attribute_definition.owned.created":
257
+ "square.merchant.customAttributeDefinition.owned.created",
258
+ "merchant.custom_attribute_definition.owned.deleted":
259
+ "square.merchant.customAttributeDefinition.owned.deleted",
260
+ "merchant.custom_attribute_definition.owned.updated":
261
+ "square.merchant.customAttributeDefinition.owned.updated",
262
+ "merchant.custom_attribute_definition.visible.created":
263
+ "square.merchant.customAttributeDefinition.visible.created",
264
+ "merchant.custom_attribute_definition.visible.deleted":
265
+ "square.merchant.customAttributeDefinition.visible.deleted",
266
+ "merchant.custom_attribute_definition.visible.updated":
267
+ "square.merchant.customAttributeDefinition.visible.updated",
268
+ "merchant.custom_attribute.owned.deleted":
269
+ "square.merchant.customAttribute.owned.deleted",
270
+ "merchant.custom_attribute.owned.updated":
271
+ "square.merchant.customAttribute.owned.updated",
272
+ "merchant.custom_attribute.visible.deleted":
273
+ "square.merchant.customAttribute.visible.deleted",
274
+ "merchant.custom_attribute.visible.updated":
275
+ "square.merchant.customAttribute.visible.updated",
276
+ "oauth.authorization.revoked": "square.oauth.authorization.revoked",
277
+ "online_checkout.location_settings.updated":
278
+ "square.onlineCheckout.locationSettings.updated",
279
+ "online_checkout.merchant_settings.updated":
280
+ "square.onlineCheckout.merchantSettings.updated",
281
+ "order.created": "square.order.created",
282
+ "order.custom_attribute_definition.owned.created":
283
+ "square.order.customAttributeDefinition.owned.created",
284
+ "order.custom_attribute_definition.owned.deleted":
285
+ "square.order.customAttributeDefinition.owned.deleted",
286
+ "order.custom_attribute_definition.owned.updated":
287
+ "square.order.customAttributeDefinition.owned.updated",
288
+ "order.custom_attribute_definition.visible.created":
289
+ "square.order.customAttributeDefinition.visible.created",
290
+ "order.custom_attribute_definition.visible.deleted":
291
+ "square.order.customAttributeDefinition.visible.deleted",
292
+ "order.custom_attribute_definition.visible.updated":
293
+ "square.order.customAttributeDefinition.visible.updated",
294
+ "order.custom_attribute.owned.deleted":
295
+ "square.order.customAttribute.owned.deleted",
296
+ "order.custom_attribute.owned.updated":
297
+ "square.order.customAttribute.owned.updated",
298
+ "order.custom_attribute.visible.deleted":
299
+ "square.order.customAttribute.visible.deleted",
300
+ "order.custom_attribute.visible.updated":
301
+ "square.order.customAttribute.visible.updated",
302
+ "order.fulfillment.updated": "square.order.fulfillment.updated",
303
+ "order.updated": "square.order.updated",
304
+ "payment.created": "square.payment.created",
305
+ "payment.updated": "square.payment.updated",
306
+ "payout.failed": "square.payout.failed",
307
+ "payout.paid": "square.payout.paid",
308
+ "payout.sent": "square.payout.sent",
309
+ "refund.created": "square.refund.created",
310
+ "refund.updated": "square.refund.updated",
311
+ "subscription.created": "square.subscription.created",
312
+ "subscription.updated": "square.subscription.updated",
313
+ "team_member.created": "square.teamMember.created",
314
+ "team_member.updated": "square.teamMember.updated",
315
+ "team_member.wage_setting.updated": "square.teamMember.wageSetting.updated",
316
+ "terminal.action.created": "square.terminal.action.created",
317
+ "terminal.action.updated": "square.terminal.action.updated",
318
+ "terminal.checkout.created": "square.terminal.checkout.created",
319
+ "terminal.checkout.updated": "square.terminal.checkout.updated",
320
+ "terminal.refund.created": "square.terminal.refund.created",
321
+ "terminal.refund.updated": "square.terminal.refund.updated",
322
+ "transfer_order.created": "square.transferOrder.created",
323
+ "transfer_order.deleted": "square.transferOrder.deleted",
324
+ "transfer_order.updated": "square.transferOrder.updated",
325
+ "vendor.created": "square.vendor.created",
326
+ "vendor.updated": "square.vendor.updated",
327
+ } as const
328
+
329
+ interface SquareProviderEvents {
330
+ readonly "bank_account.created": Square.BankAccountCreatedEvent
331
+ readonly "bank_account.disabled": Square.BankAccountDisabledEvent
332
+ readonly "bank_account.verified": Square.BankAccountVerifiedEvent
333
+ readonly "booking.created": Square.BookingCreatedEvent
334
+ readonly "booking.custom_attribute_definition.owned.created": Square.BookingCustomAttributeDefinitionOwnedCreatedEvent
335
+ readonly "booking.custom_attribute_definition.owned.deleted": Square.BookingCustomAttributeDefinitionOwnedDeletedEvent
336
+ readonly "booking.custom_attribute_definition.owned.updated": Square.BookingCustomAttributeDefinitionOwnedUpdatedEvent
337
+ readonly "booking.custom_attribute_definition.visible.created": Square.BookingCustomAttributeDefinitionVisibleCreatedEvent
338
+ readonly "booking.custom_attribute_definition.visible.deleted": Square.BookingCustomAttributeDefinitionVisibleDeletedEvent
339
+ readonly "booking.custom_attribute_definition.visible.updated": Square.BookingCustomAttributeDefinitionVisibleUpdatedEvent
340
+ readonly "booking.custom_attribute.owned.deleted": Square.BookingCustomAttributeOwnedDeletedEvent
341
+ readonly "booking.custom_attribute.owned.updated": Square.BookingCustomAttributeOwnedUpdatedEvent
342
+ readonly "booking.custom_attribute.visible.deleted": Square.BookingCustomAttributeVisibleDeletedEvent
343
+ readonly "booking.custom_attribute.visible.updated": Square.BookingCustomAttributeVisibleUpdatedEvent
344
+ readonly "booking.updated": Square.BookingUpdatedEvent
345
+ readonly "card.automatically_updated": Square.CardAutomaticallyUpdatedEvent
346
+ readonly "card.created": Square.CardCreatedEvent
347
+ readonly "card.disabled": Square.CardDisabledEvent
348
+ readonly "card.forgotten": Square.CardForgottenEvent
349
+ readonly "card.updated": Square.CardUpdatedEvent
350
+ readonly "catalog.version.updated": Square.CatalogVersionUpdatedEvent
351
+ readonly "customer.created": Square.CustomerCreatedEvent
352
+ readonly "customer.custom_attribute_definition.owned.created": Square.CustomerCustomAttributeDefinitionOwnedCreatedEvent
353
+ readonly "customer.custom_attribute_definition.owned.deleted": Square.CustomerCustomAttributeDefinitionOwnedDeletedEvent
354
+ readonly "customer.custom_attribute_definition.owned.updated": Square.CustomerCustomAttributeDefinitionOwnedUpdatedEvent
355
+ readonly "customer.custom_attribute_definition.visible.created": Square.CustomerCustomAttributeDefinitionVisibleCreatedEvent
356
+ readonly "customer.custom_attribute_definition.visible.deleted": Square.CustomerCustomAttributeDefinitionVisibleDeletedEvent
357
+ readonly "customer.custom_attribute_definition.visible.updated": Square.CustomerCustomAttributeDefinitionVisibleUpdatedEvent
358
+ readonly "customer.custom_attribute.owned.deleted": Square.CustomerCustomAttributeOwnedDeletedEvent
359
+ readonly "customer.custom_attribute.owned.updated": Square.CustomerCustomAttributeOwnedUpdatedEvent
360
+ readonly "customer.custom_attribute.visible.deleted": Square.CustomerCustomAttributeVisibleDeletedEvent
361
+ readonly "customer.custom_attribute.visible.updated": Square.CustomerCustomAttributeVisibleUpdatedEvent
362
+ readonly "customer.deleted": Square.CustomerDeletedEvent
363
+ readonly "customer.updated": Square.CustomerUpdatedEvent
364
+ readonly "device.code.paired": Square.DeviceCodePairedEvent
365
+ readonly "device.created": Square.DeviceCreatedEvent
366
+ readonly "dispute.created": Square.DisputeCreatedEvent
367
+ readonly "dispute.evidence.created": Square.DisputeEvidenceCreatedEvent
368
+ readonly "dispute.evidence.deleted": Square.DisputeEvidenceDeletedEvent
369
+ readonly "dispute.state.updated": Square.DisputeStateUpdatedEvent
370
+ readonly "gift_card.activity.created": Square.GiftCardActivityCreatedEvent
371
+ readonly "gift_card.activity.updated": Square.GiftCardActivityUpdatedEvent
372
+ readonly "gift_card.created": Square.GiftCardCreatedEvent
373
+ readonly "gift_card.customer_linked": Square.GiftCardCustomerLinkedEvent
374
+ readonly "gift_card.customer_unlinked": Square.GiftCardCustomerUnlinkedEvent
375
+ readonly "gift_card.updated": Square.GiftCardUpdatedEvent
376
+ readonly "inventory.count.updated": Square.InventoryCountUpdatedEvent
377
+ readonly "invoice.canceled": Square.InvoiceCanceledEvent
378
+ readonly "invoice.created": Square.InvoiceCreatedEvent
379
+ readonly "invoice.deleted": Square.InvoiceDeletedEvent
380
+ readonly "invoice.payment_made": Square.InvoicePaymentMadeEvent
381
+ readonly "invoice.published": Square.InvoicePublishedEvent
382
+ readonly "invoice.refunded": Square.InvoiceRefundedEvent
383
+ readonly "invoice.scheduled_charge_failed": Square.InvoiceScheduledChargeFailedEvent
384
+ readonly "invoice.updated": Square.InvoiceUpdatedEvent
385
+ readonly "job.created": Square.JobCreatedEvent
386
+ readonly "job.updated": Square.JobUpdatedEvent
387
+ readonly "labor.scheduled_shift.created": Square.LaborScheduledShiftCreatedEvent
388
+ readonly "labor.scheduled_shift.deleted": Square.LaborScheduledShiftDeletedEvent
389
+ readonly "labor.scheduled_shift.published": Square.LaborScheduledShiftPublishedEvent
390
+ readonly "labor.scheduled_shift.updated": Square.LaborScheduledShiftUpdatedEvent
391
+ readonly "labor.timecard.created": Square.LaborTimecardCreatedEvent
392
+ readonly "labor.timecard.deleted": Square.LaborTimecardDeletedEvent
393
+ readonly "labor.timecard.updated": Square.LaborTimecardUpdatedEvent
394
+ readonly "location.created": Square.LocationCreatedEvent
395
+ readonly "location.custom_attribute_definition.owned.created": Square.LocationCustomAttributeDefinitionOwnedCreatedEvent
396
+ readonly "location.custom_attribute_definition.owned.deleted": Square.LocationCustomAttributeDefinitionOwnedDeletedEvent
397
+ readonly "location.custom_attribute_definition.owned.updated": Square.LocationCustomAttributeDefinitionOwnedUpdatedEvent
398
+ readonly "location.custom_attribute_definition.visible.created": Square.LocationCustomAttributeDefinitionVisibleCreatedEvent
399
+ readonly "location.custom_attribute_definition.visible.deleted": Square.LocationCustomAttributeDefinitionVisibleDeletedEvent
400
+ readonly "location.custom_attribute_definition.visible.updated": Square.LocationCustomAttributeDefinitionVisibleUpdatedEvent
401
+ readonly "location.custom_attribute.owned.deleted": Square.LocationCustomAttributeOwnedDeletedEvent
402
+ readonly "location.custom_attribute.owned.updated": Square.LocationCustomAttributeOwnedUpdatedEvent
403
+ readonly "location.custom_attribute.visible.deleted": Square.LocationCustomAttributeVisibleDeletedEvent
404
+ readonly "location.custom_attribute.visible.updated": Square.LocationCustomAttributeVisibleUpdatedEvent
405
+ readonly "location.updated": Square.LocationUpdatedEvent
406
+ readonly "loyalty.account.created": Square.LoyaltyAccountCreatedEvent
407
+ readonly "loyalty.account.deleted": Square.LoyaltyAccountDeletedEvent
408
+ readonly "loyalty.account.updated": Square.LoyaltyAccountUpdatedEvent
409
+ readonly "loyalty.event.created": Square.LoyaltyEventCreatedEvent
410
+ readonly "loyalty.program.created": Square.LoyaltyProgramCreatedEvent
411
+ readonly "loyalty.program.updated": Square.LoyaltyProgramUpdatedEvent
412
+ readonly "loyalty.promotion.created": Square.LoyaltyPromotionCreatedEvent
413
+ readonly "loyalty.promotion.updated": Square.LoyaltyPromotionUpdatedEvent
414
+ readonly "merchant.custom_attribute_definition.owned.created": Square.MerchantCustomAttributeDefinitionOwnedCreatedEvent
415
+ readonly "merchant.custom_attribute_definition.owned.deleted": Square.MerchantCustomAttributeDefinitionOwnedDeletedEvent
416
+ readonly "merchant.custom_attribute_definition.owned.updated": Square.MerchantCustomAttributeDefinitionOwnedUpdatedEvent
417
+ readonly "merchant.custom_attribute_definition.visible.created": Square.MerchantCustomAttributeDefinitionVisibleCreatedEvent
418
+ readonly "merchant.custom_attribute_definition.visible.deleted": Square.MerchantCustomAttributeDefinitionVisibleDeletedEvent
419
+ readonly "merchant.custom_attribute_definition.visible.updated": Square.MerchantCustomAttributeDefinitionVisibleUpdatedEvent
420
+ readonly "merchant.custom_attribute.owned.deleted": Square.MerchantCustomAttributeOwnedDeletedEvent
421
+ readonly "merchant.custom_attribute.owned.updated": Square.MerchantCustomAttributeOwnedUpdatedEvent
422
+ readonly "merchant.custom_attribute.visible.deleted": Square.MerchantCustomAttributeVisibleDeletedEvent
423
+ readonly "merchant.custom_attribute.visible.updated": Square.MerchantCustomAttributeVisibleUpdatedEvent
424
+ readonly "oauth.authorization.revoked": Square.OauthAuthorizationRevokedEvent
425
+ readonly "online_checkout.location_settings.updated": Square.LocationSettingsUpdatedEvent
426
+ readonly "online_checkout.merchant_settings.updated": Square.MerchantSettingsUpdatedEvent
427
+ readonly "order.created": Square.OrderCreatedEvent
428
+ readonly "order.custom_attribute_definition.owned.created": Square.OrderCustomAttributeDefinitionOwnedCreatedEvent
429
+ readonly "order.custom_attribute_definition.owned.deleted": Square.OrderCustomAttributeDefinitionOwnedDeletedEvent
430
+ readonly "order.custom_attribute_definition.owned.updated": Square.OrderCustomAttributeDefinitionOwnedUpdatedEvent
431
+ readonly "order.custom_attribute_definition.visible.created": Square.OrderCustomAttributeDefinitionVisibleCreatedEvent
432
+ readonly "order.custom_attribute_definition.visible.deleted": Square.OrderCustomAttributeDefinitionVisibleDeletedEvent
433
+ readonly "order.custom_attribute_definition.visible.updated": Square.OrderCustomAttributeDefinitionVisibleUpdatedEvent
434
+ readonly "order.custom_attribute.owned.deleted": Square.OrderCustomAttributeOwnedDeletedEvent
435
+ readonly "order.custom_attribute.owned.updated": Square.OrderCustomAttributeOwnedUpdatedEvent
436
+ readonly "order.custom_attribute.visible.deleted": Square.OrderCustomAttributeVisibleDeletedEvent
437
+ readonly "order.custom_attribute.visible.updated": Square.OrderCustomAttributeVisibleUpdatedEvent
438
+ readonly "order.fulfillment.updated": Square.OrderFulfillmentUpdatedEvent
439
+ readonly "order.updated": Square.OrderUpdatedEvent
440
+ readonly "payment.created": Square.PaymentCreatedEvent
441
+ readonly "payment.updated": Square.PaymentUpdatedEvent
442
+ readonly "payout.failed": Square.PayoutFailedEvent
443
+ readonly "payout.paid": Square.PayoutPaidEvent
444
+ readonly "payout.sent": Square.PayoutSentEvent
445
+ readonly "refund.created": Square.RefundCreatedEvent
446
+ readonly "refund.updated": Square.RefundUpdatedEvent
447
+ readonly "subscription.created": Square.SubscriptionCreatedEvent
448
+ readonly "subscription.updated": Square.SubscriptionUpdatedEvent
449
+ readonly "team_member.created": Square.TeamMemberCreatedEvent
450
+ readonly "team_member.updated": Square.TeamMemberUpdatedEvent
451
+ readonly "team_member.wage_setting.updated": Square.TeamMemberWageSettingUpdatedEvent
452
+ readonly "terminal.action.created": Square.TerminalActionCreatedEvent
453
+ readonly "terminal.action.updated": Square.TerminalActionUpdatedEvent
454
+ readonly "terminal.checkout.created": Square.TerminalCheckoutCreatedEvent
455
+ readonly "terminal.checkout.updated": Square.TerminalCheckoutUpdatedEvent
456
+ readonly "terminal.refund.created": Square.TerminalRefundCreatedEvent
457
+ readonly "terminal.refund.updated": Square.TerminalRefundUpdatedEvent
458
+ readonly "transfer_order.created": Square.TransferOrderCreatedEvent
459
+ readonly "transfer_order.deleted": Square.TransferOrderDeletedEvent
460
+ readonly "transfer_order.updated": Square.TransferOrderUpdatedEvent
461
+ readonly "vendor.created": Square.VendorCreatedEvent
462
+ readonly "vendor.updated": Square.VendorUpdatedEvent
463
+ }
464
+
465
+ type SquareEventValue<T> = T extends readonly (infer TItem)[]
466
+ ? SquareEventValue<TItem>[]
467
+ : T extends object
468
+ ? { [TKey in keyof T]: SquareEventValue<T[TKey]> } & {
469
+ readonly [key: string]: Encodable
470
+ }
471
+ : T
472
+
473
+ /** Public codec-safe Square webhook event. */
474
+ export type SquareEvent = SquareEventValue<Square.Event>
475
+
476
+ /** Public event type for one exact Square webhook name. */
477
+ export type SquareSemanticEvent<TType extends keyof SquareProviderEvents> =
478
+ SquareEventValue<SquareProviderEvents[TType]> & {
479
+ type: TType
480
+ }
481
+
482
+ const SQUARE_EVENT_BASE_SCHEMA = z.looseObject({
483
+ createdAt: z.string().optional(),
484
+ data: z.custom<Encodable>(isEncodable).optional(),
485
+ eventId: z.string().min(1),
486
+ locationId: z.string().nullable().optional(),
487
+ merchantId: z.string().nullable().optional(),
488
+ type: z.string().min(1),
489
+ })
490
+
491
+ export const SQUARE_EVENT_SCHEMA: z.ZodType<SquareEvent> =
492
+ z.custom<SquareEvent>(
493
+ (value) =>
494
+ SQUARE_EVENT_BASE_SCHEMA.safeParse(value).success && isEncodable(value),
495
+ )
496
+
497
+ export const SQUARE_TRIGGER_CONFIG_SCHEMA = z.object({})
498
+
499
+ /**
500
+ * Validates a verified Square event for one semantic trigger.
501
+ *
502
+ * @param type - Exact provider event type accepted by the schema.
503
+ */
504
+ export function squareSemanticEventSchema<
505
+ TType extends (typeof SQUARE_SEMANTIC_EVENT_TYPES)[number],
506
+ >(type: TType): z.ZodType<SquareSemanticEvent<TType>> {
507
+ return z.custom<SquareSemanticEvent<TType>>((value) => {
508
+ const event = SQUARE_EVENT_SCHEMA.safeParse(value)
509
+ return event.success && event.data.type === type
510
+ })
511
+ }
512
+
513
+ /**
514
+ * Validates the public representation of a verified Square event.
515
+ *
516
+ * @param event - Provider event after official SDK deserialization.
517
+ */
518
+ export function normalizeSquareEvent(event: unknown): SquareEvent {
519
+ return SQUARE_EVENT_SCHEMA.parse(event)
520
+ }
521
+
522
+ type SquareSemanticTriggerEventTypes = {
523
+ readonly "square.bankAccount.created": "bank_account.created"
524
+ readonly "square.bankAccount.disabled": "bank_account.disabled"
525
+ readonly "square.bankAccount.verified": "bank_account.verified"
526
+ readonly "square.booking.created": "booking.created"
527
+ readonly "square.booking.customAttributeDefinition.owned.created": "booking.custom_attribute_definition.owned.created"
528
+ readonly "square.booking.customAttributeDefinition.owned.deleted": "booking.custom_attribute_definition.owned.deleted"
529
+ readonly "square.booking.customAttributeDefinition.owned.updated": "booking.custom_attribute_definition.owned.updated"
530
+ readonly "square.booking.customAttributeDefinition.visible.created": "booking.custom_attribute_definition.visible.created"
531
+ readonly "square.booking.customAttributeDefinition.visible.deleted": "booking.custom_attribute_definition.visible.deleted"
532
+ readonly "square.booking.customAttributeDefinition.visible.updated": "booking.custom_attribute_definition.visible.updated"
533
+ readonly "square.booking.customAttribute.owned.deleted": "booking.custom_attribute.owned.deleted"
534
+ readonly "square.booking.customAttribute.owned.updated": "booking.custom_attribute.owned.updated"
535
+ readonly "square.booking.customAttribute.visible.deleted": "booking.custom_attribute.visible.deleted"
536
+ readonly "square.booking.customAttribute.visible.updated": "booking.custom_attribute.visible.updated"
537
+ readonly "square.booking.updated": "booking.updated"
538
+ readonly "square.card.automaticallyUpdated": "card.automatically_updated"
539
+ readonly "square.card.created": "card.created"
540
+ readonly "square.card.disabled": "card.disabled"
541
+ readonly "square.card.forgotten": "card.forgotten"
542
+ readonly "square.card.updated": "card.updated"
543
+ readonly "square.catalog.version.updated": "catalog.version.updated"
544
+ readonly "square.customer.created": "customer.created"
545
+ readonly "square.customer.customAttributeDefinition.owned.created": "customer.custom_attribute_definition.owned.created"
546
+ readonly "square.customer.customAttributeDefinition.owned.deleted": "customer.custom_attribute_definition.owned.deleted"
547
+ readonly "square.customer.customAttributeDefinition.owned.updated": "customer.custom_attribute_definition.owned.updated"
548
+ readonly "square.customer.customAttributeDefinition.visible.created": "customer.custom_attribute_definition.visible.created"
549
+ readonly "square.customer.customAttributeDefinition.visible.deleted": "customer.custom_attribute_definition.visible.deleted"
550
+ readonly "square.customer.customAttributeDefinition.visible.updated": "customer.custom_attribute_definition.visible.updated"
551
+ readonly "square.customer.customAttribute.owned.deleted": "customer.custom_attribute.owned.deleted"
552
+ readonly "square.customer.customAttribute.owned.updated": "customer.custom_attribute.owned.updated"
553
+ readonly "square.customer.customAttribute.visible.deleted": "customer.custom_attribute.visible.deleted"
554
+ readonly "square.customer.customAttribute.visible.updated": "customer.custom_attribute.visible.updated"
555
+ readonly "square.customer.deleted": "customer.deleted"
556
+ readonly "square.customer.updated": "customer.updated"
557
+ readonly "square.device.code.paired": "device.code.paired"
558
+ readonly "square.device.created": "device.created"
559
+ readonly "square.dispute.created": "dispute.created"
560
+ readonly "square.dispute.evidence.created": "dispute.evidence.created"
561
+ readonly "square.dispute.evidence.deleted": "dispute.evidence.deleted"
562
+ readonly "square.dispute.state.updated": "dispute.state.updated"
563
+ readonly "square.giftCard.activity.created": "gift_card.activity.created"
564
+ readonly "square.giftCard.activity.updated": "gift_card.activity.updated"
565
+ readonly "square.giftCard.created": "gift_card.created"
566
+ readonly "square.giftCard.customerLinked": "gift_card.customer_linked"
567
+ readonly "square.giftCard.customerUnlinked": "gift_card.customer_unlinked"
568
+ readonly "square.giftCard.updated": "gift_card.updated"
569
+ readonly "square.inventory.count.updated": "inventory.count.updated"
570
+ readonly "square.invoice.canceled": "invoice.canceled"
571
+ readonly "square.invoice.created": "invoice.created"
572
+ readonly "square.invoice.deleted": "invoice.deleted"
573
+ readonly "square.invoice.paymentMade": "invoice.payment_made"
574
+ readonly "square.invoice.published": "invoice.published"
575
+ readonly "square.invoice.refunded": "invoice.refunded"
576
+ readonly "square.invoice.scheduledChargeFailed": "invoice.scheduled_charge_failed"
577
+ readonly "square.invoice.updated": "invoice.updated"
578
+ readonly "square.job.created": "job.created"
579
+ readonly "square.job.updated": "job.updated"
580
+ readonly "square.labor.scheduledShift.created": "labor.scheduled_shift.created"
581
+ readonly "square.labor.scheduledShift.deleted": "labor.scheduled_shift.deleted"
582
+ readonly "square.labor.scheduledShift.published": "labor.scheduled_shift.published"
583
+ readonly "square.labor.scheduledShift.updated": "labor.scheduled_shift.updated"
584
+ readonly "square.labor.timecard.created": "labor.timecard.created"
585
+ readonly "square.labor.timecard.deleted": "labor.timecard.deleted"
586
+ readonly "square.labor.timecard.updated": "labor.timecard.updated"
587
+ readonly "square.location.created": "location.created"
588
+ readonly "square.location.customAttributeDefinition.owned.created": "location.custom_attribute_definition.owned.created"
589
+ readonly "square.location.customAttributeDefinition.owned.deleted": "location.custom_attribute_definition.owned.deleted"
590
+ readonly "square.location.customAttributeDefinition.owned.updated": "location.custom_attribute_definition.owned.updated"
591
+ readonly "square.location.customAttributeDefinition.visible.created": "location.custom_attribute_definition.visible.created"
592
+ readonly "square.location.customAttributeDefinition.visible.deleted": "location.custom_attribute_definition.visible.deleted"
593
+ readonly "square.location.customAttributeDefinition.visible.updated": "location.custom_attribute_definition.visible.updated"
594
+ readonly "square.location.customAttribute.owned.deleted": "location.custom_attribute.owned.deleted"
595
+ readonly "square.location.customAttribute.owned.updated": "location.custom_attribute.owned.updated"
596
+ readonly "square.location.customAttribute.visible.deleted": "location.custom_attribute.visible.deleted"
597
+ readonly "square.location.customAttribute.visible.updated": "location.custom_attribute.visible.updated"
598
+ readonly "square.location.updated": "location.updated"
599
+ readonly "square.loyalty.account.created": "loyalty.account.created"
600
+ readonly "square.loyalty.account.deleted": "loyalty.account.deleted"
601
+ readonly "square.loyalty.account.updated": "loyalty.account.updated"
602
+ readonly "square.loyalty.event.created": "loyalty.event.created"
603
+ readonly "square.loyalty.program.created": "loyalty.program.created"
604
+ readonly "square.loyalty.program.updated": "loyalty.program.updated"
605
+ readonly "square.loyalty.promotion.created": "loyalty.promotion.created"
606
+ readonly "square.loyalty.promotion.updated": "loyalty.promotion.updated"
607
+ readonly "square.merchant.customAttributeDefinition.owned.created": "merchant.custom_attribute_definition.owned.created"
608
+ readonly "square.merchant.customAttributeDefinition.owned.deleted": "merchant.custom_attribute_definition.owned.deleted"
609
+ readonly "square.merchant.customAttributeDefinition.owned.updated": "merchant.custom_attribute_definition.owned.updated"
610
+ readonly "square.merchant.customAttributeDefinition.visible.created": "merchant.custom_attribute_definition.visible.created"
611
+ readonly "square.merchant.customAttributeDefinition.visible.deleted": "merchant.custom_attribute_definition.visible.deleted"
612
+ readonly "square.merchant.customAttributeDefinition.visible.updated": "merchant.custom_attribute_definition.visible.updated"
613
+ readonly "square.merchant.customAttribute.owned.deleted": "merchant.custom_attribute.owned.deleted"
614
+ readonly "square.merchant.customAttribute.owned.updated": "merchant.custom_attribute.owned.updated"
615
+ readonly "square.merchant.customAttribute.visible.deleted": "merchant.custom_attribute.visible.deleted"
616
+ readonly "square.merchant.customAttribute.visible.updated": "merchant.custom_attribute.visible.updated"
617
+ readonly "square.oauth.authorization.revoked": "oauth.authorization.revoked"
618
+ readonly "square.onlineCheckout.locationSettings.updated": "online_checkout.location_settings.updated"
619
+ readonly "square.onlineCheckout.merchantSettings.updated": "online_checkout.merchant_settings.updated"
620
+ readonly "square.order.created": "order.created"
621
+ readonly "square.order.customAttributeDefinition.owned.created": "order.custom_attribute_definition.owned.created"
622
+ readonly "square.order.customAttributeDefinition.owned.deleted": "order.custom_attribute_definition.owned.deleted"
623
+ readonly "square.order.customAttributeDefinition.owned.updated": "order.custom_attribute_definition.owned.updated"
624
+ readonly "square.order.customAttributeDefinition.visible.created": "order.custom_attribute_definition.visible.created"
625
+ readonly "square.order.customAttributeDefinition.visible.deleted": "order.custom_attribute_definition.visible.deleted"
626
+ readonly "square.order.customAttributeDefinition.visible.updated": "order.custom_attribute_definition.visible.updated"
627
+ readonly "square.order.customAttribute.owned.deleted": "order.custom_attribute.owned.deleted"
628
+ readonly "square.order.customAttribute.owned.updated": "order.custom_attribute.owned.updated"
629
+ readonly "square.order.customAttribute.visible.deleted": "order.custom_attribute.visible.deleted"
630
+ readonly "square.order.customAttribute.visible.updated": "order.custom_attribute.visible.updated"
631
+ readonly "square.order.fulfillment.updated": "order.fulfillment.updated"
632
+ readonly "square.order.updated": "order.updated"
633
+ readonly "square.payment.created": "payment.created"
634
+ readonly "square.payment.updated": "payment.updated"
635
+ readonly "square.payout.failed": "payout.failed"
636
+ readonly "square.payout.paid": "payout.paid"
637
+ readonly "square.payout.sent": "payout.sent"
638
+ readonly "square.refund.created": "refund.created"
639
+ readonly "square.refund.updated": "refund.updated"
640
+ readonly "square.subscription.created": "subscription.created"
641
+ readonly "square.subscription.updated": "subscription.updated"
642
+ readonly "square.teamMember.created": "team_member.created"
643
+ readonly "square.teamMember.updated": "team_member.updated"
644
+ readonly "square.teamMember.wageSetting.updated": "team_member.wage_setting.updated"
645
+ readonly "square.terminal.action.created": "terminal.action.created"
646
+ readonly "square.terminal.action.updated": "terminal.action.updated"
647
+ readonly "square.terminal.checkout.created": "terminal.checkout.created"
648
+ readonly "square.terminal.checkout.updated": "terminal.checkout.updated"
649
+ readonly "square.terminal.refund.created": "terminal.refund.created"
650
+ readonly "square.terminal.refund.updated": "terminal.refund.updated"
651
+ readonly "square.transferOrder.created": "transfer_order.created"
652
+ readonly "square.transferOrder.deleted": "transfer_order.deleted"
653
+ readonly "square.transferOrder.updated": "transfer_order.updated"
654
+ readonly "square.vendor.created": "vendor.created"
655
+ readonly "square.vendor.updated": "vendor.updated"
656
+ }
657
+
658
+ type SquareTriggerContract<TEvent> = {
659
+ readonly configSchema: typeof SQUARE_TRIGGER_CONFIG_SCHEMA
660
+ readonly eventSchema: z.ZodType<TEvent>
661
+ }
662
+
663
+ /** Preserves exact event types across the generated trigger contract map. */
664
+ type SquareTriggerContracts = {
665
+ readonly [TTrigger in keyof SquareSemanticTriggerEventTypes]: SquareTriggerContract<
666
+ SquareSemanticEvent<SquareSemanticTriggerEventTypes[TTrigger]>
667
+ >
668
+ } & {
669
+ readonly "square.event": SquareTriggerContract<SquareEvent>
670
+ }
671
+
672
+ export const squareTriggerContracts: SquareTriggerContracts = {
673
+ "square.bankAccount.created": {
674
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
675
+ eventSchema: squareSemanticEventSchema("bank_account.created"),
676
+ },
677
+ "square.bankAccount.disabled": {
678
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
679
+ eventSchema: squareSemanticEventSchema("bank_account.disabled"),
680
+ },
681
+ "square.bankAccount.verified": {
682
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
683
+ eventSchema: squareSemanticEventSchema("bank_account.verified"),
684
+ },
685
+ "square.booking.created": {
686
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
687
+ eventSchema: squareSemanticEventSchema("booking.created"),
688
+ },
689
+ "square.booking.customAttributeDefinition.owned.created": {
690
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
691
+ eventSchema: squareSemanticEventSchema(
692
+ "booking.custom_attribute_definition.owned.created",
693
+ ),
694
+ },
695
+ "square.booking.customAttributeDefinition.owned.deleted": {
696
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
697
+ eventSchema: squareSemanticEventSchema(
698
+ "booking.custom_attribute_definition.owned.deleted",
699
+ ),
700
+ },
701
+ "square.booking.customAttributeDefinition.owned.updated": {
702
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
703
+ eventSchema: squareSemanticEventSchema(
704
+ "booking.custom_attribute_definition.owned.updated",
705
+ ),
706
+ },
707
+ "square.booking.customAttributeDefinition.visible.created": {
708
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
709
+ eventSchema: squareSemanticEventSchema(
710
+ "booking.custom_attribute_definition.visible.created",
711
+ ),
712
+ },
713
+ "square.booking.customAttributeDefinition.visible.deleted": {
714
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
715
+ eventSchema: squareSemanticEventSchema(
716
+ "booking.custom_attribute_definition.visible.deleted",
717
+ ),
718
+ },
719
+ "square.booking.customAttributeDefinition.visible.updated": {
720
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
721
+ eventSchema: squareSemanticEventSchema(
722
+ "booking.custom_attribute_definition.visible.updated",
723
+ ),
724
+ },
725
+ "square.booking.customAttribute.owned.deleted": {
726
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
727
+ eventSchema: squareSemanticEventSchema(
728
+ "booking.custom_attribute.owned.deleted",
729
+ ),
730
+ },
731
+ "square.booking.customAttribute.owned.updated": {
732
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
733
+ eventSchema: squareSemanticEventSchema(
734
+ "booking.custom_attribute.owned.updated",
735
+ ),
736
+ },
737
+ "square.booking.customAttribute.visible.deleted": {
738
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
739
+ eventSchema: squareSemanticEventSchema(
740
+ "booking.custom_attribute.visible.deleted",
741
+ ),
742
+ },
743
+ "square.booking.customAttribute.visible.updated": {
744
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
745
+ eventSchema: squareSemanticEventSchema(
746
+ "booking.custom_attribute.visible.updated",
747
+ ),
748
+ },
749
+ "square.booking.updated": {
750
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
751
+ eventSchema: squareSemanticEventSchema("booking.updated"),
752
+ },
753
+ "square.card.automaticallyUpdated": {
754
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
755
+ eventSchema: squareSemanticEventSchema("card.automatically_updated"),
756
+ },
757
+ "square.card.created": {
758
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
759
+ eventSchema: squareSemanticEventSchema("card.created"),
760
+ },
761
+ "square.card.disabled": {
762
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
763
+ eventSchema: squareSemanticEventSchema("card.disabled"),
764
+ },
765
+ "square.card.forgotten": {
766
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
767
+ eventSchema: squareSemanticEventSchema("card.forgotten"),
768
+ },
769
+ "square.card.updated": {
770
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
771
+ eventSchema: squareSemanticEventSchema("card.updated"),
772
+ },
773
+ "square.catalog.version.updated": {
774
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
775
+ eventSchema: squareSemanticEventSchema("catalog.version.updated"),
776
+ },
777
+ "square.customer.created": {
778
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
779
+ eventSchema: squareSemanticEventSchema("customer.created"),
780
+ },
781
+ "square.customer.customAttributeDefinition.owned.created": {
782
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
783
+ eventSchema: squareSemanticEventSchema(
784
+ "customer.custom_attribute_definition.owned.created",
785
+ ),
786
+ },
787
+ "square.customer.customAttributeDefinition.owned.deleted": {
788
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
789
+ eventSchema: squareSemanticEventSchema(
790
+ "customer.custom_attribute_definition.owned.deleted",
791
+ ),
792
+ },
793
+ "square.customer.customAttributeDefinition.owned.updated": {
794
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
795
+ eventSchema: squareSemanticEventSchema(
796
+ "customer.custom_attribute_definition.owned.updated",
797
+ ),
798
+ },
799
+ "square.customer.customAttributeDefinition.visible.created": {
800
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
801
+ eventSchema: squareSemanticEventSchema(
802
+ "customer.custom_attribute_definition.visible.created",
803
+ ),
804
+ },
805
+ "square.customer.customAttributeDefinition.visible.deleted": {
806
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
807
+ eventSchema: squareSemanticEventSchema(
808
+ "customer.custom_attribute_definition.visible.deleted",
809
+ ),
810
+ },
811
+ "square.customer.customAttributeDefinition.visible.updated": {
812
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
813
+ eventSchema: squareSemanticEventSchema(
814
+ "customer.custom_attribute_definition.visible.updated",
815
+ ),
816
+ },
817
+ "square.customer.customAttribute.owned.deleted": {
818
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
819
+ eventSchema: squareSemanticEventSchema(
820
+ "customer.custom_attribute.owned.deleted",
821
+ ),
822
+ },
823
+ "square.customer.customAttribute.owned.updated": {
824
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
825
+ eventSchema: squareSemanticEventSchema(
826
+ "customer.custom_attribute.owned.updated",
827
+ ),
828
+ },
829
+ "square.customer.customAttribute.visible.deleted": {
830
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
831
+ eventSchema: squareSemanticEventSchema(
832
+ "customer.custom_attribute.visible.deleted",
833
+ ),
834
+ },
835
+ "square.customer.customAttribute.visible.updated": {
836
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
837
+ eventSchema: squareSemanticEventSchema(
838
+ "customer.custom_attribute.visible.updated",
839
+ ),
840
+ },
841
+ "square.customer.deleted": {
842
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
843
+ eventSchema: squareSemanticEventSchema("customer.deleted"),
844
+ },
845
+ "square.customer.updated": {
846
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
847
+ eventSchema: squareSemanticEventSchema("customer.updated"),
848
+ },
849
+ "square.device.code.paired": {
850
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
851
+ eventSchema: squareSemanticEventSchema("device.code.paired"),
852
+ },
853
+ "square.device.created": {
854
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
855
+ eventSchema: squareSemanticEventSchema("device.created"),
856
+ },
857
+ "square.dispute.created": {
858
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
859
+ eventSchema: squareSemanticEventSchema("dispute.created"),
860
+ },
861
+ "square.dispute.evidence.created": {
862
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
863
+ eventSchema: squareSemanticEventSchema("dispute.evidence.created"),
864
+ },
865
+ "square.dispute.evidence.deleted": {
866
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
867
+ eventSchema: squareSemanticEventSchema("dispute.evidence.deleted"),
868
+ },
869
+ "square.dispute.state.updated": {
870
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
871
+ eventSchema: squareSemanticEventSchema("dispute.state.updated"),
872
+ },
873
+ "square.giftCard.activity.created": {
874
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
875
+ eventSchema: squareSemanticEventSchema("gift_card.activity.created"),
876
+ },
877
+ "square.giftCard.activity.updated": {
878
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
879
+ eventSchema: squareSemanticEventSchema("gift_card.activity.updated"),
880
+ },
881
+ "square.giftCard.created": {
882
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
883
+ eventSchema: squareSemanticEventSchema("gift_card.created"),
884
+ },
885
+ "square.giftCard.customerLinked": {
886
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
887
+ eventSchema: squareSemanticEventSchema("gift_card.customer_linked"),
888
+ },
889
+ "square.giftCard.customerUnlinked": {
890
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
891
+ eventSchema: squareSemanticEventSchema("gift_card.customer_unlinked"),
892
+ },
893
+ "square.giftCard.updated": {
894
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
895
+ eventSchema: squareSemanticEventSchema("gift_card.updated"),
896
+ },
897
+ "square.inventory.count.updated": {
898
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
899
+ eventSchema: squareSemanticEventSchema("inventory.count.updated"),
900
+ },
901
+ "square.invoice.canceled": {
902
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
903
+ eventSchema: squareSemanticEventSchema("invoice.canceled"),
904
+ },
905
+ "square.invoice.created": {
906
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
907
+ eventSchema: squareSemanticEventSchema("invoice.created"),
908
+ },
909
+ "square.invoice.deleted": {
910
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
911
+ eventSchema: squareSemanticEventSchema("invoice.deleted"),
912
+ },
913
+ "square.invoice.paymentMade": {
914
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
915
+ eventSchema: squareSemanticEventSchema("invoice.payment_made"),
916
+ },
917
+ "square.invoice.published": {
918
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
919
+ eventSchema: squareSemanticEventSchema("invoice.published"),
920
+ },
921
+ "square.invoice.refunded": {
922
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
923
+ eventSchema: squareSemanticEventSchema("invoice.refunded"),
924
+ },
925
+ "square.invoice.scheduledChargeFailed": {
926
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
927
+ eventSchema: squareSemanticEventSchema("invoice.scheduled_charge_failed"),
928
+ },
929
+ "square.invoice.updated": {
930
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
931
+ eventSchema: squareSemanticEventSchema("invoice.updated"),
932
+ },
933
+ "square.job.created": {
934
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
935
+ eventSchema: squareSemanticEventSchema("job.created"),
936
+ },
937
+ "square.job.updated": {
938
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
939
+ eventSchema: squareSemanticEventSchema("job.updated"),
940
+ },
941
+ "square.labor.scheduledShift.created": {
942
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
943
+ eventSchema: squareSemanticEventSchema("labor.scheduled_shift.created"),
944
+ },
945
+ "square.labor.scheduledShift.deleted": {
946
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
947
+ eventSchema: squareSemanticEventSchema("labor.scheduled_shift.deleted"),
948
+ },
949
+ "square.labor.scheduledShift.published": {
950
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
951
+ eventSchema: squareSemanticEventSchema("labor.scheduled_shift.published"),
952
+ },
953
+ "square.labor.scheduledShift.updated": {
954
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
955
+ eventSchema: squareSemanticEventSchema("labor.scheduled_shift.updated"),
956
+ },
957
+ "square.labor.timecard.created": {
958
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
959
+ eventSchema: squareSemanticEventSchema("labor.timecard.created"),
960
+ },
961
+ "square.labor.timecard.deleted": {
962
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
963
+ eventSchema: squareSemanticEventSchema("labor.timecard.deleted"),
964
+ },
965
+ "square.labor.timecard.updated": {
966
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
967
+ eventSchema: squareSemanticEventSchema("labor.timecard.updated"),
968
+ },
969
+ "square.location.created": {
970
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
971
+ eventSchema: squareSemanticEventSchema("location.created"),
972
+ },
973
+ "square.location.customAttributeDefinition.owned.created": {
974
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
975
+ eventSchema: squareSemanticEventSchema(
976
+ "location.custom_attribute_definition.owned.created",
977
+ ),
978
+ },
979
+ "square.location.customAttributeDefinition.owned.deleted": {
980
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
981
+ eventSchema: squareSemanticEventSchema(
982
+ "location.custom_attribute_definition.owned.deleted",
983
+ ),
984
+ },
985
+ "square.location.customAttributeDefinition.owned.updated": {
986
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
987
+ eventSchema: squareSemanticEventSchema(
988
+ "location.custom_attribute_definition.owned.updated",
989
+ ),
990
+ },
991
+ "square.location.customAttributeDefinition.visible.created": {
992
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
993
+ eventSchema: squareSemanticEventSchema(
994
+ "location.custom_attribute_definition.visible.created",
995
+ ),
996
+ },
997
+ "square.location.customAttributeDefinition.visible.deleted": {
998
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
999
+ eventSchema: squareSemanticEventSchema(
1000
+ "location.custom_attribute_definition.visible.deleted",
1001
+ ),
1002
+ },
1003
+ "square.location.customAttributeDefinition.visible.updated": {
1004
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1005
+ eventSchema: squareSemanticEventSchema(
1006
+ "location.custom_attribute_definition.visible.updated",
1007
+ ),
1008
+ },
1009
+ "square.location.customAttribute.owned.deleted": {
1010
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1011
+ eventSchema: squareSemanticEventSchema(
1012
+ "location.custom_attribute.owned.deleted",
1013
+ ),
1014
+ },
1015
+ "square.location.customAttribute.owned.updated": {
1016
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1017
+ eventSchema: squareSemanticEventSchema(
1018
+ "location.custom_attribute.owned.updated",
1019
+ ),
1020
+ },
1021
+ "square.location.customAttribute.visible.deleted": {
1022
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1023
+ eventSchema: squareSemanticEventSchema(
1024
+ "location.custom_attribute.visible.deleted",
1025
+ ),
1026
+ },
1027
+ "square.location.customAttribute.visible.updated": {
1028
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1029
+ eventSchema: squareSemanticEventSchema(
1030
+ "location.custom_attribute.visible.updated",
1031
+ ),
1032
+ },
1033
+ "square.location.updated": {
1034
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1035
+ eventSchema: squareSemanticEventSchema("location.updated"),
1036
+ },
1037
+ "square.loyalty.account.created": {
1038
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1039
+ eventSchema: squareSemanticEventSchema("loyalty.account.created"),
1040
+ },
1041
+ "square.loyalty.account.deleted": {
1042
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1043
+ eventSchema: squareSemanticEventSchema("loyalty.account.deleted"),
1044
+ },
1045
+ "square.loyalty.account.updated": {
1046
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1047
+ eventSchema: squareSemanticEventSchema("loyalty.account.updated"),
1048
+ },
1049
+ "square.loyalty.event.created": {
1050
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1051
+ eventSchema: squareSemanticEventSchema("loyalty.event.created"),
1052
+ },
1053
+ "square.loyalty.program.created": {
1054
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1055
+ eventSchema: squareSemanticEventSchema("loyalty.program.created"),
1056
+ },
1057
+ "square.loyalty.program.updated": {
1058
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1059
+ eventSchema: squareSemanticEventSchema("loyalty.program.updated"),
1060
+ },
1061
+ "square.loyalty.promotion.created": {
1062
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1063
+ eventSchema: squareSemanticEventSchema("loyalty.promotion.created"),
1064
+ },
1065
+ "square.loyalty.promotion.updated": {
1066
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1067
+ eventSchema: squareSemanticEventSchema("loyalty.promotion.updated"),
1068
+ },
1069
+ "square.merchant.customAttributeDefinition.owned.created": {
1070
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1071
+ eventSchema: squareSemanticEventSchema(
1072
+ "merchant.custom_attribute_definition.owned.created",
1073
+ ),
1074
+ },
1075
+ "square.merchant.customAttributeDefinition.owned.deleted": {
1076
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1077
+ eventSchema: squareSemanticEventSchema(
1078
+ "merchant.custom_attribute_definition.owned.deleted",
1079
+ ),
1080
+ },
1081
+ "square.merchant.customAttributeDefinition.owned.updated": {
1082
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1083
+ eventSchema: squareSemanticEventSchema(
1084
+ "merchant.custom_attribute_definition.owned.updated",
1085
+ ),
1086
+ },
1087
+ "square.merchant.customAttributeDefinition.visible.created": {
1088
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1089
+ eventSchema: squareSemanticEventSchema(
1090
+ "merchant.custom_attribute_definition.visible.created",
1091
+ ),
1092
+ },
1093
+ "square.merchant.customAttributeDefinition.visible.deleted": {
1094
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1095
+ eventSchema: squareSemanticEventSchema(
1096
+ "merchant.custom_attribute_definition.visible.deleted",
1097
+ ),
1098
+ },
1099
+ "square.merchant.customAttributeDefinition.visible.updated": {
1100
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1101
+ eventSchema: squareSemanticEventSchema(
1102
+ "merchant.custom_attribute_definition.visible.updated",
1103
+ ),
1104
+ },
1105
+ "square.merchant.customAttribute.owned.deleted": {
1106
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1107
+ eventSchema: squareSemanticEventSchema(
1108
+ "merchant.custom_attribute.owned.deleted",
1109
+ ),
1110
+ },
1111
+ "square.merchant.customAttribute.owned.updated": {
1112
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1113
+ eventSchema: squareSemanticEventSchema(
1114
+ "merchant.custom_attribute.owned.updated",
1115
+ ),
1116
+ },
1117
+ "square.merchant.customAttribute.visible.deleted": {
1118
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1119
+ eventSchema: squareSemanticEventSchema(
1120
+ "merchant.custom_attribute.visible.deleted",
1121
+ ),
1122
+ },
1123
+ "square.merchant.customAttribute.visible.updated": {
1124
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1125
+ eventSchema: squareSemanticEventSchema(
1126
+ "merchant.custom_attribute.visible.updated",
1127
+ ),
1128
+ },
1129
+ "square.oauth.authorization.revoked": {
1130
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1131
+ eventSchema: squareSemanticEventSchema("oauth.authorization.revoked"),
1132
+ },
1133
+ "square.onlineCheckout.locationSettings.updated": {
1134
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1135
+ eventSchema: squareSemanticEventSchema(
1136
+ "online_checkout.location_settings.updated",
1137
+ ),
1138
+ },
1139
+ "square.onlineCheckout.merchantSettings.updated": {
1140
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1141
+ eventSchema: squareSemanticEventSchema(
1142
+ "online_checkout.merchant_settings.updated",
1143
+ ),
1144
+ },
1145
+ "square.order.created": {
1146
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1147
+ eventSchema: squareSemanticEventSchema("order.created"),
1148
+ },
1149
+ "square.order.customAttributeDefinition.owned.created": {
1150
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1151
+ eventSchema: squareSemanticEventSchema(
1152
+ "order.custom_attribute_definition.owned.created",
1153
+ ),
1154
+ },
1155
+ "square.order.customAttributeDefinition.owned.deleted": {
1156
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1157
+ eventSchema: squareSemanticEventSchema(
1158
+ "order.custom_attribute_definition.owned.deleted",
1159
+ ),
1160
+ },
1161
+ "square.order.customAttributeDefinition.owned.updated": {
1162
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1163
+ eventSchema: squareSemanticEventSchema(
1164
+ "order.custom_attribute_definition.owned.updated",
1165
+ ),
1166
+ },
1167
+ "square.order.customAttributeDefinition.visible.created": {
1168
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1169
+ eventSchema: squareSemanticEventSchema(
1170
+ "order.custom_attribute_definition.visible.created",
1171
+ ),
1172
+ },
1173
+ "square.order.customAttributeDefinition.visible.deleted": {
1174
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1175
+ eventSchema: squareSemanticEventSchema(
1176
+ "order.custom_attribute_definition.visible.deleted",
1177
+ ),
1178
+ },
1179
+ "square.order.customAttributeDefinition.visible.updated": {
1180
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1181
+ eventSchema: squareSemanticEventSchema(
1182
+ "order.custom_attribute_definition.visible.updated",
1183
+ ),
1184
+ },
1185
+ "square.order.customAttribute.owned.deleted": {
1186
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1187
+ eventSchema: squareSemanticEventSchema(
1188
+ "order.custom_attribute.owned.deleted",
1189
+ ),
1190
+ },
1191
+ "square.order.customAttribute.owned.updated": {
1192
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1193
+ eventSchema: squareSemanticEventSchema(
1194
+ "order.custom_attribute.owned.updated",
1195
+ ),
1196
+ },
1197
+ "square.order.customAttribute.visible.deleted": {
1198
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1199
+ eventSchema: squareSemanticEventSchema(
1200
+ "order.custom_attribute.visible.deleted",
1201
+ ),
1202
+ },
1203
+ "square.order.customAttribute.visible.updated": {
1204
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1205
+ eventSchema: squareSemanticEventSchema(
1206
+ "order.custom_attribute.visible.updated",
1207
+ ),
1208
+ },
1209
+ "square.order.fulfillment.updated": {
1210
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1211
+ eventSchema: squareSemanticEventSchema("order.fulfillment.updated"),
1212
+ },
1213
+ "square.order.updated": {
1214
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1215
+ eventSchema: squareSemanticEventSchema("order.updated"),
1216
+ },
1217
+ "square.payment.created": {
1218
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1219
+ eventSchema: squareSemanticEventSchema("payment.created"),
1220
+ },
1221
+ "square.payment.updated": {
1222
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1223
+ eventSchema: squareSemanticEventSchema("payment.updated"),
1224
+ },
1225
+ "square.payout.failed": {
1226
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1227
+ eventSchema: squareSemanticEventSchema("payout.failed"),
1228
+ },
1229
+ "square.payout.paid": {
1230
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1231
+ eventSchema: squareSemanticEventSchema("payout.paid"),
1232
+ },
1233
+ "square.payout.sent": {
1234
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1235
+ eventSchema: squareSemanticEventSchema("payout.sent"),
1236
+ },
1237
+ "square.refund.created": {
1238
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1239
+ eventSchema: squareSemanticEventSchema("refund.created"),
1240
+ },
1241
+ "square.refund.updated": {
1242
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1243
+ eventSchema: squareSemanticEventSchema("refund.updated"),
1244
+ },
1245
+ "square.subscription.created": {
1246
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1247
+ eventSchema: squareSemanticEventSchema("subscription.created"),
1248
+ },
1249
+ "square.subscription.updated": {
1250
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1251
+ eventSchema: squareSemanticEventSchema("subscription.updated"),
1252
+ },
1253
+ "square.teamMember.created": {
1254
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1255
+ eventSchema: squareSemanticEventSchema("team_member.created"),
1256
+ },
1257
+ "square.teamMember.updated": {
1258
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1259
+ eventSchema: squareSemanticEventSchema("team_member.updated"),
1260
+ },
1261
+ "square.teamMember.wageSetting.updated": {
1262
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1263
+ eventSchema: squareSemanticEventSchema("team_member.wage_setting.updated"),
1264
+ },
1265
+ "square.terminal.action.created": {
1266
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1267
+ eventSchema: squareSemanticEventSchema("terminal.action.created"),
1268
+ },
1269
+ "square.terminal.action.updated": {
1270
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1271
+ eventSchema: squareSemanticEventSchema("terminal.action.updated"),
1272
+ },
1273
+ "square.terminal.checkout.created": {
1274
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1275
+ eventSchema: squareSemanticEventSchema("terminal.checkout.created"),
1276
+ },
1277
+ "square.terminal.checkout.updated": {
1278
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1279
+ eventSchema: squareSemanticEventSchema("terminal.checkout.updated"),
1280
+ },
1281
+ "square.terminal.refund.created": {
1282
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1283
+ eventSchema: squareSemanticEventSchema("terminal.refund.created"),
1284
+ },
1285
+ "square.terminal.refund.updated": {
1286
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1287
+ eventSchema: squareSemanticEventSchema("terminal.refund.updated"),
1288
+ },
1289
+ "square.transferOrder.created": {
1290
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1291
+ eventSchema: squareSemanticEventSchema("transfer_order.created"),
1292
+ },
1293
+ "square.transferOrder.deleted": {
1294
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1295
+ eventSchema: squareSemanticEventSchema("transfer_order.deleted"),
1296
+ },
1297
+ "square.transferOrder.updated": {
1298
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1299
+ eventSchema: squareSemanticEventSchema("transfer_order.updated"),
1300
+ },
1301
+ "square.vendor.created": {
1302
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1303
+ eventSchema: squareSemanticEventSchema("vendor.created"),
1304
+ },
1305
+ "square.vendor.updated": {
1306
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1307
+ eventSchema: squareSemanticEventSchema("vendor.updated"),
1308
+ },
1309
+ "square.event": {
1310
+ configSchema: SQUARE_TRIGGER_CONFIG_SCHEMA,
1311
+ eventSchema: SQUARE_EVENT_SCHEMA,
1312
+ },
1313
+ }