@automate.ax/catalog 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,576 @@
1
+ import { integrationScope, } from "../types.js";
2
+ export const squareTriggerDefinitions = {
3
+ squareBankAccountCreated: {
4
+ account: squareAccount(["BANK_ACCOUNTS_READ"]),
5
+ type: "square.bankAccount.created",
6
+ },
7
+ squareBankAccountDisabled: {
8
+ account: squareAccount(["BANK_ACCOUNTS_READ"]),
9
+ type: "square.bankAccount.disabled",
10
+ },
11
+ squareBankAccountVerified: {
12
+ account: squareAccount(["BANK_ACCOUNTS_READ"]),
13
+ type: "square.bankAccount.verified",
14
+ },
15
+ squareBookingCreated: {
16
+ account: squareAccount(["APPOINTMENTS_READ"]),
17
+ type: "square.booking.created",
18
+ },
19
+ squareBookingCustomAttributeDefinitionOwnedCreated: {
20
+ account: squareAccount([]),
21
+ type: "square.booking.customAttributeDefinition.owned.created",
22
+ },
23
+ squareBookingCustomAttributeDefinitionOwnedDeleted: {
24
+ account: squareAccount([]),
25
+ type: "square.booking.customAttributeDefinition.owned.deleted",
26
+ },
27
+ squareBookingCustomAttributeDefinitionOwnedUpdated: {
28
+ account: squareAccount([]),
29
+ type: "square.booking.customAttributeDefinition.owned.updated",
30
+ },
31
+ squareBookingCustomAttributeDefinitionVisibleCreated: {
32
+ account: squareAccount([]),
33
+ type: "square.booking.customAttributeDefinition.visible.created",
34
+ },
35
+ squareBookingCustomAttributeDefinitionVisibleDeleted: {
36
+ account: squareAccount([]),
37
+ type: "square.booking.customAttributeDefinition.visible.deleted",
38
+ },
39
+ squareBookingCustomAttributeDefinitionVisibleUpdated: {
40
+ account: squareAccount([]),
41
+ type: "square.booking.customAttributeDefinition.visible.updated",
42
+ },
43
+ squareBookingCustomAttributeOwnedDeleted: {
44
+ account: squareAccount([]),
45
+ type: "square.booking.customAttribute.owned.deleted",
46
+ },
47
+ squareBookingCustomAttributeOwnedUpdated: {
48
+ account: squareAccount([]),
49
+ type: "square.booking.customAttribute.owned.updated",
50
+ },
51
+ squareBookingCustomAttributeVisibleDeleted: {
52
+ account: squareAccount([]),
53
+ type: "square.booking.customAttribute.visible.deleted",
54
+ },
55
+ squareBookingCustomAttributeVisibleUpdated: {
56
+ account: squareAccount([]),
57
+ type: "square.booking.customAttribute.visible.updated",
58
+ },
59
+ squareBookingUpdated: {
60
+ account: squareAccount(["APPOINTMENTS_READ"]),
61
+ type: "square.booking.updated",
62
+ },
63
+ squareCardAutomaticallyUpdated: {
64
+ account: squareAccount(["PAYMENTS_READ"]),
65
+ type: "square.card.automaticallyUpdated",
66
+ },
67
+ squareCardCreated: {
68
+ account: squareAccount(["PAYMENTS_READ"]),
69
+ type: "square.card.created",
70
+ },
71
+ squareCardDisabled: {
72
+ account: squareAccount(["PAYMENTS_READ"]),
73
+ type: "square.card.disabled",
74
+ },
75
+ squareCardForgotten: {
76
+ account: squareAccount(["PAYMENTS_READ"]),
77
+ type: "square.card.forgotten",
78
+ },
79
+ squareCardUpdated: {
80
+ account: squareAccount(["PAYMENTS_READ"]),
81
+ type: "square.card.updated",
82
+ },
83
+ squareCatalogVersionUpdated: {
84
+ account: squareAccount(["ITEMS_READ"]),
85
+ type: "square.catalog.version.updated",
86
+ },
87
+ squareCustomerCreated: {
88
+ account: squareAccount(["CUSTOMERS_READ"]),
89
+ type: "square.customer.created",
90
+ },
91
+ squareCustomerCustomAttributeDefinitionOwnedCreated: {
92
+ account: squareAccount(["CUSTOMERS_READ"]),
93
+ type: "square.customer.customAttributeDefinition.owned.created",
94
+ },
95
+ squareCustomerCustomAttributeDefinitionOwnedDeleted: {
96
+ account: squareAccount(["CUSTOMERS_READ"]),
97
+ type: "square.customer.customAttributeDefinition.owned.deleted",
98
+ },
99
+ squareCustomerCustomAttributeDefinitionOwnedUpdated: {
100
+ account: squareAccount(["CUSTOMERS_READ"]),
101
+ type: "square.customer.customAttributeDefinition.owned.updated",
102
+ },
103
+ squareCustomerCustomAttributeDefinitionVisibleCreated: {
104
+ account: squareAccount(["CUSTOMERS_READ"]),
105
+ type: "square.customer.customAttributeDefinition.visible.created",
106
+ },
107
+ squareCustomerCustomAttributeDefinitionVisibleDeleted: {
108
+ account: squareAccount(["CUSTOMERS_READ"]),
109
+ type: "square.customer.customAttributeDefinition.visible.deleted",
110
+ },
111
+ squareCustomerCustomAttributeDefinitionVisibleUpdated: {
112
+ account: squareAccount(["CUSTOMERS_READ"]),
113
+ type: "square.customer.customAttributeDefinition.visible.updated",
114
+ },
115
+ squareCustomerCustomAttributeOwnedDeleted: {
116
+ account: squareAccount(["CUSTOMERS_READ"]),
117
+ type: "square.customer.customAttribute.owned.deleted",
118
+ },
119
+ squareCustomerCustomAttributeOwnedUpdated: {
120
+ account: squareAccount(["CUSTOMERS_READ"]),
121
+ type: "square.customer.customAttribute.owned.updated",
122
+ },
123
+ squareCustomerCustomAttributeVisibleDeleted: {
124
+ account: squareAccount(["CUSTOMERS_READ"]),
125
+ type: "square.customer.customAttribute.visible.deleted",
126
+ },
127
+ squareCustomerCustomAttributeVisibleUpdated: {
128
+ account: squareAccount(["CUSTOMERS_READ"]),
129
+ type: "square.customer.customAttribute.visible.updated",
130
+ },
131
+ squareCustomerDeleted: {
132
+ account: squareAccount(["CUSTOMERS_READ"]),
133
+ type: "square.customer.deleted",
134
+ },
135
+ squareCustomerUpdated: {
136
+ account: squareAccount(["CUSTOMERS_READ"]),
137
+ type: "square.customer.updated",
138
+ },
139
+ squareDeviceCodePaired: {
140
+ account: squareAccount(["DEVICE_CREDENTIAL_MANAGEMENT"]),
141
+ type: "square.device.code.paired",
142
+ },
143
+ squareDeviceCreated: {
144
+ account: squareAccount(["DEVICES_READ"]),
145
+ type: "square.device.created",
146
+ },
147
+ squareDisputeCreated: {
148
+ account: squareAccount(["PAYMENTS_READ"]),
149
+ type: "square.dispute.created",
150
+ },
151
+ squareDisputeEvidenceCreated: {
152
+ account: squareAccount(["PAYMENTS_READ"]),
153
+ type: "square.dispute.evidence.created",
154
+ },
155
+ squareDisputeEvidenceDeleted: {
156
+ account: squareAccount(["PAYMENTS_READ"]),
157
+ type: "square.dispute.evidence.deleted",
158
+ },
159
+ squareDisputeStateUpdated: {
160
+ account: squareAccount(["PAYMENTS_READ"]),
161
+ type: "square.dispute.state.updated",
162
+ },
163
+ squareGiftCardActivityCreated: {
164
+ account: squareAccount(["GIFTCARDS_READ"]),
165
+ type: "square.giftCard.activity.created",
166
+ },
167
+ squareGiftCardActivityUpdated: {
168
+ account: squareAccount(["GIFTCARDS_READ"]),
169
+ type: "square.giftCard.activity.updated",
170
+ },
171
+ squareGiftCardCreated: {
172
+ account: squareAccount(["GIFTCARDS_READ"]),
173
+ type: "square.giftCard.created",
174
+ },
175
+ squareGiftCardCustomerLinked: {
176
+ account: squareAccount(["GIFTCARDS_READ"]),
177
+ type: "square.giftCard.customerLinked",
178
+ },
179
+ squareGiftCardCustomerUnlinked: {
180
+ account: squareAccount(["GIFTCARDS_READ"]),
181
+ type: "square.giftCard.customerUnlinked",
182
+ },
183
+ squareGiftCardUpdated: {
184
+ account: squareAccount(["GIFTCARDS_READ"]),
185
+ type: "square.giftCard.updated",
186
+ },
187
+ squareInventoryCountUpdated: {
188
+ account: squareAccount(["INVENTORY_READ"]),
189
+ type: "square.inventory.count.updated",
190
+ },
191
+ squareInvoiceCanceled: {
192
+ account: squareAccount(["INVOICES_READ"]),
193
+ type: "square.invoice.canceled",
194
+ },
195
+ squareInvoiceCreated: {
196
+ account: squareAccount(["INVOICES_READ"]),
197
+ type: "square.invoice.created",
198
+ },
199
+ squareInvoiceDeleted: {
200
+ account: squareAccount(["INVOICES_READ"]),
201
+ type: "square.invoice.deleted",
202
+ },
203
+ squareInvoicePaymentMade: {
204
+ account: squareAccount(["INVOICES_READ"]),
205
+ type: "square.invoice.paymentMade",
206
+ },
207
+ squareInvoicePublished: {
208
+ account: squareAccount(["INVOICES_READ"]),
209
+ type: "square.invoice.published",
210
+ },
211
+ squareInvoiceRefunded: {
212
+ account: squareAccount(["INVOICES_READ"]),
213
+ type: "square.invoice.refunded",
214
+ },
215
+ squareInvoiceScheduledChargeFailed: {
216
+ account: squareAccount(["INVOICES_READ"]),
217
+ type: "square.invoice.scheduledChargeFailed",
218
+ },
219
+ squareInvoiceUpdated: {
220
+ account: squareAccount(["INVOICES_READ"]),
221
+ type: "square.invoice.updated",
222
+ },
223
+ squareJobCreated: {
224
+ account: squareAccount(["EMPLOYEES_READ"]),
225
+ type: "square.job.created",
226
+ },
227
+ squareJobUpdated: {
228
+ account: squareAccount(["EMPLOYEES_READ"]),
229
+ type: "square.job.updated",
230
+ },
231
+ squareLaborScheduledShiftCreated: {
232
+ account: squareAccount(["TIMECARDS_READ"]),
233
+ type: "square.labor.scheduledShift.created",
234
+ },
235
+ squareLaborScheduledShiftDeleted: {
236
+ account: squareAccount(["TIMECARDS_READ"]),
237
+ type: "square.labor.scheduledShift.deleted",
238
+ },
239
+ squareLaborScheduledShiftPublished: {
240
+ account: squareAccount(["TIMECARDS_READ"]),
241
+ type: "square.labor.scheduledShift.published",
242
+ },
243
+ squareLaborScheduledShiftUpdated: {
244
+ account: squareAccount(["TIMECARDS_READ"]),
245
+ type: "square.labor.scheduledShift.updated",
246
+ },
247
+ squareLaborTimecardCreated: {
248
+ account: squareAccount(["TIMECARDS_READ"]),
249
+ type: "square.labor.timecard.created",
250
+ },
251
+ squareLaborTimecardDeleted: {
252
+ account: squareAccount(["TIMECARDS_READ"]),
253
+ type: "square.labor.timecard.deleted",
254
+ },
255
+ squareLaborTimecardUpdated: {
256
+ account: squareAccount(["TIMECARDS_READ"]),
257
+ type: "square.labor.timecard.updated",
258
+ },
259
+ squareLocationCreated: {
260
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
261
+ type: "square.location.created",
262
+ },
263
+ squareLocationCustomAttributeDefinitionOwnedCreated: {
264
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
265
+ type: "square.location.customAttributeDefinition.owned.created",
266
+ },
267
+ squareLocationCustomAttributeDefinitionOwnedDeleted: {
268
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
269
+ type: "square.location.customAttributeDefinition.owned.deleted",
270
+ },
271
+ squareLocationCustomAttributeDefinitionOwnedUpdated: {
272
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
273
+ type: "square.location.customAttributeDefinition.owned.updated",
274
+ },
275
+ squareLocationCustomAttributeDefinitionVisibleCreated: {
276
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
277
+ type: "square.location.customAttributeDefinition.visible.created",
278
+ },
279
+ squareLocationCustomAttributeDefinitionVisibleDeleted: {
280
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
281
+ type: "square.location.customAttributeDefinition.visible.deleted",
282
+ },
283
+ squareLocationCustomAttributeDefinitionVisibleUpdated: {
284
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
285
+ type: "square.location.customAttributeDefinition.visible.updated",
286
+ },
287
+ squareLocationCustomAttributeOwnedDeleted: {
288
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
289
+ type: "square.location.customAttribute.owned.deleted",
290
+ },
291
+ squareLocationCustomAttributeOwnedUpdated: {
292
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
293
+ type: "square.location.customAttribute.owned.updated",
294
+ },
295
+ squareLocationCustomAttributeVisibleDeleted: {
296
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
297
+ type: "square.location.customAttribute.visible.deleted",
298
+ },
299
+ squareLocationCustomAttributeVisibleUpdated: {
300
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
301
+ type: "square.location.customAttribute.visible.updated",
302
+ },
303
+ squareLocationUpdated: {
304
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
305
+ type: "square.location.updated",
306
+ },
307
+ squareLoyaltyAccountCreated: {
308
+ account: squareAccount(["LOYALTY_READ"]),
309
+ type: "square.loyalty.account.created",
310
+ },
311
+ squareLoyaltyAccountDeleted: {
312
+ account: squareAccount(["LOYALTY_READ"]),
313
+ type: "square.loyalty.account.deleted",
314
+ },
315
+ squareLoyaltyAccountUpdated: {
316
+ account: squareAccount(["LOYALTY_READ"]),
317
+ type: "square.loyalty.account.updated",
318
+ },
319
+ squareLoyaltyEventCreated: {
320
+ account: squareAccount(["LOYALTY_READ"]),
321
+ type: "square.loyalty.event.created",
322
+ },
323
+ squareLoyaltyProgramCreated: {
324
+ account: squareAccount(["LOYALTY_READ"]),
325
+ type: "square.loyalty.program.created",
326
+ },
327
+ squareLoyaltyProgramUpdated: {
328
+ account: squareAccount(["LOYALTY_READ"]),
329
+ type: "square.loyalty.program.updated",
330
+ },
331
+ squareLoyaltyPromotionCreated: {
332
+ account: squareAccount(["LOYALTY_READ"]),
333
+ type: "square.loyalty.promotion.created",
334
+ },
335
+ squareLoyaltyPromotionUpdated: {
336
+ account: squareAccount(["LOYALTY_READ"]),
337
+ type: "square.loyalty.promotion.updated",
338
+ },
339
+ squareMerchantCustomAttributeDefinitionOwnedCreated: {
340
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
341
+ type: "square.merchant.customAttributeDefinition.owned.created",
342
+ },
343
+ squareMerchantCustomAttributeDefinitionOwnedDeleted: {
344
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
345
+ type: "square.merchant.customAttributeDefinition.owned.deleted",
346
+ },
347
+ squareMerchantCustomAttributeDefinitionOwnedUpdated: {
348
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
349
+ type: "square.merchant.customAttributeDefinition.owned.updated",
350
+ },
351
+ squareMerchantCustomAttributeDefinitionVisibleCreated: {
352
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
353
+ type: "square.merchant.customAttributeDefinition.visible.created",
354
+ },
355
+ squareMerchantCustomAttributeDefinitionVisibleDeleted: {
356
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
357
+ type: "square.merchant.customAttributeDefinition.visible.deleted",
358
+ },
359
+ squareMerchantCustomAttributeDefinitionVisibleUpdated: {
360
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
361
+ type: "square.merchant.customAttributeDefinition.visible.updated",
362
+ },
363
+ squareMerchantCustomAttributeOwnedDeleted: {
364
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
365
+ type: "square.merchant.customAttribute.owned.deleted",
366
+ },
367
+ squareMerchantCustomAttributeOwnedUpdated: {
368
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
369
+ type: "square.merchant.customAttribute.owned.updated",
370
+ },
371
+ squareMerchantCustomAttributeVisibleDeleted: {
372
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
373
+ type: "square.merchant.customAttribute.visible.deleted",
374
+ },
375
+ squareMerchantCustomAttributeVisibleUpdated: {
376
+ account: squareAccount(["MERCHANT_PROFILE_READ"]),
377
+ type: "square.merchant.customAttribute.visible.updated",
378
+ },
379
+ squareOauthAuthorizationRevoked: {
380
+ account: squareAccount([]),
381
+ type: "square.oauth.authorization.revoked",
382
+ },
383
+ squareOnlineCheckoutLocationSettingsUpdated: {
384
+ account: squareAccount(["MERCHANT_PROFILE_WRITE", "MERCHANT_PROFILE_READ"]),
385
+ type: "square.onlineCheckout.locationSettings.updated",
386
+ },
387
+ squareOnlineCheckoutMerchantSettingsUpdated: {
388
+ account: squareAccount(["MERCHANT_PROFILE_WRITE", "MERCHANT_PROFILE_READ"]),
389
+ type: "square.onlineCheckout.merchantSettings.updated",
390
+ },
391
+ squareOrderCreated: {
392
+ account: squareAccount(["ORDERS_READ"]),
393
+ type: "square.order.created",
394
+ },
395
+ squareOrderCustomAttributeDefinitionOwnedCreated: {
396
+ account: squareAccount(["ORDERS_READ"]),
397
+ type: "square.order.customAttributeDefinition.owned.created",
398
+ },
399
+ squareOrderCustomAttributeDefinitionOwnedDeleted: {
400
+ account: squareAccount(["ORDERS_READ"]),
401
+ type: "square.order.customAttributeDefinition.owned.deleted",
402
+ },
403
+ squareOrderCustomAttributeDefinitionOwnedUpdated: {
404
+ account: squareAccount(["ORDERS_READ"]),
405
+ type: "square.order.customAttributeDefinition.owned.updated",
406
+ },
407
+ squareOrderCustomAttributeDefinitionVisibleCreated: {
408
+ account: squareAccount(["ORDERS_READ"]),
409
+ type: "square.order.customAttributeDefinition.visible.created",
410
+ },
411
+ squareOrderCustomAttributeDefinitionVisibleDeleted: {
412
+ account: squareAccount(["ORDERS_READ"]),
413
+ type: "square.order.customAttributeDefinition.visible.deleted",
414
+ },
415
+ squareOrderCustomAttributeDefinitionVisibleUpdated: {
416
+ account: squareAccount(["ORDERS_READ"]),
417
+ type: "square.order.customAttributeDefinition.visible.updated",
418
+ },
419
+ squareOrderCustomAttributeOwnedDeleted: {
420
+ account: squareAccount(["ORDERS_READ"]),
421
+ type: "square.order.customAttribute.owned.deleted",
422
+ },
423
+ squareOrderCustomAttributeOwnedUpdated: {
424
+ account: squareAccount(["ORDERS_READ"]),
425
+ type: "square.order.customAttribute.owned.updated",
426
+ },
427
+ squareOrderCustomAttributeVisibleDeleted: {
428
+ account: squareAccount(["ORDERS_READ"]),
429
+ type: "square.order.customAttribute.visible.deleted",
430
+ },
431
+ squareOrderCustomAttributeVisibleUpdated: {
432
+ account: squareAccount(["ORDERS_READ"]),
433
+ type: "square.order.customAttribute.visible.updated",
434
+ },
435
+ squareOrderFulfillmentUpdated: {
436
+ account: squareAccount(["ORDERS_READ"]),
437
+ type: "square.order.fulfillment.updated",
438
+ },
439
+ squareOrderUpdated: {
440
+ account: squareAccount(["ORDERS_READ"]),
441
+ type: "square.order.updated",
442
+ },
443
+ squarePaymentCreated: {
444
+ account: squareAccount(["PAYMENTS_READ"]),
445
+ type: "square.payment.created",
446
+ },
447
+ squarePaymentUpdated: {
448
+ account: squareAccount(["PAYMENTS_READ"]),
449
+ type: "square.payment.updated",
450
+ },
451
+ squarePayoutFailed: {
452
+ account: squareAccount(["PAYOUTS_READ"]),
453
+ type: "square.payout.failed",
454
+ },
455
+ squarePayoutPaid: {
456
+ account: squareAccount(["PAYOUTS_READ"]),
457
+ type: "square.payout.paid",
458
+ },
459
+ squarePayoutSent: {
460
+ account: squareAccount(["PAYOUTS_READ"]),
461
+ type: "square.payout.sent",
462
+ },
463
+ squareRefundCreated: {
464
+ account: squareAccount(["PAYMENTS_READ"]),
465
+ type: "square.refund.created",
466
+ },
467
+ squareRefundUpdated: {
468
+ account: squareAccount(["PAYMENTS_READ"]),
469
+ type: "square.refund.updated",
470
+ },
471
+ squareSubscriptionCreated: {
472
+ account: squareAccount(["SUBSCRIPTIONS_READ"]),
473
+ type: "square.subscription.created",
474
+ },
475
+ squareSubscriptionUpdated: {
476
+ account: squareAccount(["SUBSCRIPTIONS_READ"]),
477
+ type: "square.subscription.updated",
478
+ },
479
+ squareTeamMemberCreated: {
480
+ account: squareAccount(["EMPLOYEES_READ"]),
481
+ type: "square.teamMember.created",
482
+ },
483
+ squareTeamMemberUpdated: {
484
+ account: squareAccount(["EMPLOYEES_READ"]),
485
+ type: "square.teamMember.updated",
486
+ },
487
+ squareTeamMemberWageSettingUpdated: {
488
+ account: squareAccount(["EMPLOYEES_READ"]),
489
+ type: "square.teamMember.wageSetting.updated",
490
+ },
491
+ squareTerminalActionCreated: {
492
+ account: squareAccount(["PAYMENTS_READ"]),
493
+ type: "square.terminal.action.created",
494
+ },
495
+ squareTerminalActionUpdated: {
496
+ account: squareAccount(["PAYMENTS_READ"]),
497
+ type: "square.terminal.action.updated",
498
+ },
499
+ squareTerminalCheckoutCreated: {
500
+ account: squareAccount(["PAYMENTS_READ"]),
501
+ type: "square.terminal.checkout.created",
502
+ },
503
+ squareTerminalCheckoutUpdated: {
504
+ account: squareAccount(["PAYMENTS_READ"]),
505
+ type: "square.terminal.checkout.updated",
506
+ },
507
+ squareTerminalRefundCreated: {
508
+ account: squareAccount(["PAYMENTS_READ"]),
509
+ type: "square.terminal.refund.created",
510
+ },
511
+ squareTerminalRefundUpdated: {
512
+ account: squareAccount(["PAYMENTS_READ"]),
513
+ type: "square.terminal.refund.updated",
514
+ },
515
+ squareTransferOrderCreated: {
516
+ account: squareAccount(["INVENTORY_WRITE", "INVENTORY_READ"]),
517
+ type: "square.transferOrder.created",
518
+ },
519
+ squareTransferOrderDeleted: {
520
+ account: squareAccount(["INVENTORY_WRITE"]),
521
+ type: "square.transferOrder.deleted",
522
+ },
523
+ squareTransferOrderUpdated: {
524
+ account: squareAccount(["INVENTORY_WRITE", "INVENTORY_READ"]),
525
+ type: "square.transferOrder.updated",
526
+ },
527
+ squareVendorCreated: {
528
+ account: squareAccount(["VENDOR_READ"]),
529
+ type: "square.vendor.created",
530
+ },
531
+ squareVendorUpdated: {
532
+ account: squareAccount(["VENDOR_READ"]),
533
+ type: "square.vendor.updated",
534
+ },
535
+ squareEvent: {
536
+ account: squareAccount([
537
+ "APPOINTMENTS_READ",
538
+ "BANK_ACCOUNTS_READ",
539
+ "CUSTOMERS_READ",
540
+ "DEVICES_READ",
541
+ "DEVICE_CREDENTIAL_MANAGEMENT",
542
+ "EMPLOYEES_READ",
543
+ "GIFTCARDS_READ",
544
+ "INVENTORY_READ",
545
+ "INVENTORY_WRITE",
546
+ "INVOICES_READ",
547
+ "ITEMS_READ",
548
+ "LOYALTY_READ",
549
+ "MERCHANT_PROFILE_READ",
550
+ "MERCHANT_PROFILE_WRITE",
551
+ "ORDERS_READ",
552
+ "PAYMENTS_READ",
553
+ "PAYOUTS_READ",
554
+ "SUBSCRIPTIONS_READ",
555
+ "TIMECARDS_READ",
556
+ "VENDOR_READ",
557
+ ]),
558
+ type: "square.event",
559
+ },
560
+ };
561
+ /**
562
+ * Requires the seller OAuth scopes needed for delivered Square events.
563
+ *
564
+ * @param scopes - Provider permissions required by the event selection.
565
+ */
566
+ function squareAccount(scopes) {
567
+ return {
568
+ connectionOptions: [
569
+ {
570
+ connectionMethodId: "oauth",
571
+ requiredScopes: scopes.length < 2 ? scopes : [integrationScope.and(...scopes)],
572
+ },
573
+ ],
574
+ serviceId: "square",
575
+ };
576
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/catalog",
3
- "version": "0.158.0",
3
+ "version": "0.159.1",
4
4
  "description": "Shared integration service and trigger definitions for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -55,6 +55,7 @@
55
55
  "./triggers/name": "./src/triggers/name.ts",
56
56
  "./triggers/resend": "./src/triggers/resend.ts",
57
57
  "./triggers/slack": "./src/triggers/slack.ts",
58
+ "./triggers/square": "./src/triggers/square.ts",
58
59
  "./triggers/stripe": "./src/triggers/stripe.ts",
59
60
  "./triggers/tally": "./src/triggers/tally.ts",
60
61
  "./triggers/trello": "./src/triggers/trello.ts",
@@ -284,6 +285,11 @@
284
285
  "types": "./dist/triggers/slack.d.ts",
285
286
  "default": "./dist/triggers/slack.js"
286
287
  },
288
+ "./triggers/square": {
289
+ "bun": "./src/triggers/square.ts",
290
+ "types": "./dist/triggers/square.d.ts",
291
+ "default": "./dist/triggers/square.js"
292
+ },
287
293
  "./triggers/stripe": {
288
294
  "bun": "./src/triggers/stripe.ts",
289
295
  "types": "./dist/triggers/stripe.d.ts",
package/src/catalog.ts CHANGED
@@ -900,6 +900,13 @@ export const slackService = defineIntegrationService({
900
900
  name: "Slack",
901
901
  })
902
902
 
903
+ export const squareService = defineIntegrationService({
904
+ connectionMethods: [{ id: "oauth", name: "OAuth", type: "redirect" }],
905
+ description: "Connect a Square seller account with OAuth.",
906
+ id: "square",
907
+ name: "Square",
908
+ })
909
+
903
910
  export const stripeService = defineApiKeyService({
904
911
  connectionNotice: {
905
912
  action: {
@@ -1127,6 +1134,7 @@ export const integrationCatalog = defineIntegrationCatalog([
1127
1134
  resendService,
1128
1135
  scrapflyService,
1129
1136
  slackService,
1137
+ squareService,
1130
1138
  stripeService,
1131
1139
  tallyService,
1132
1140
  tidycalService,
package/src/index.ts CHANGED
@@ -52,6 +52,7 @@ export {
52
52
  resendService,
53
53
  scrapflyService,
54
54
  slackService,
55
+ squareService,
55
56
  stripeService,
56
57
  tallyService,
57
58
  tidycalService,
@@ -27,6 +27,7 @@ import { notionTriggerDefinitions } from "./notion"
27
27
  import { redditTriggerDefinitions } from "./reddit"
28
28
  import { resendTriggerDefinitions } from "./resend"
29
29
  import { slackTriggerDefinitions } from "./slack"
30
+ import { squareTriggerDefinitions } from "./square"
30
31
  import { stripeTriggerDefinitions } from "./stripe"
31
32
  import { trelloTriggerDefinitions } from "./trello"
32
33
  import { tallyTriggerDefinitions } from "./tally"
@@ -90,6 +91,7 @@ export const triggerDefinitions = {
90
91
  ...redditTriggerDefinitions,
91
92
  ...resendTriggerDefinitions,
92
93
  ...slackTriggerDefinitions,
94
+ ...squareTriggerDefinitions,
93
95
  ...stripeTriggerDefinitions,
94
96
  ...trelloTriggerDefinitions,
95
97
  ...tallyTriggerDefinitions,