@automate.ax/integration-contracts 0.158.0 → 0.159.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/square/events.d.ts +446 -0
- package/dist/square/events.js +839 -0
- package/dist/square/index.d.ts +1 -0
- package/dist/square/index.js +1 -0
- package/dist/triggers.d.ts +2 -1
- package/package.json +10 -3
- package/src/square/events.ts +1313 -0
- package/src/square/index.ts +1 -0
- package/src/triggers.ts +2 -0
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
import { type Encodable } from "@automate.ax/codec";
|
|
2
|
+
import type { Square } from "square";
|
|
3
|
+
import * as z from "zod";
|
|
4
|
+
export declare const SQUARE_SEMANTIC_EVENT_TYPES: readonly ["bank_account.created", "bank_account.disabled", "bank_account.verified", "booking.created", "booking.custom_attribute_definition.owned.created", "booking.custom_attribute_definition.owned.deleted", "booking.custom_attribute_definition.owned.updated", "booking.custom_attribute_definition.visible.created", "booking.custom_attribute_definition.visible.deleted", "booking.custom_attribute_definition.visible.updated", "booking.custom_attribute.owned.deleted", "booking.custom_attribute.owned.updated", "booking.custom_attribute.visible.deleted", "booking.custom_attribute.visible.updated", "booking.updated", "card.automatically_updated", "card.created", "card.disabled", "card.forgotten", "card.updated", "catalog.version.updated", "customer.created", "customer.custom_attribute_definition.owned.created", "customer.custom_attribute_definition.owned.deleted", "customer.custom_attribute_definition.owned.updated", "customer.custom_attribute_definition.visible.created", "customer.custom_attribute_definition.visible.deleted", "customer.custom_attribute_definition.visible.updated", "customer.custom_attribute.owned.deleted", "customer.custom_attribute.owned.updated", "customer.custom_attribute.visible.deleted", "customer.custom_attribute.visible.updated", "customer.deleted", "customer.updated", "device.code.paired", "device.created", "dispute.created", "dispute.evidence.created", "dispute.evidence.deleted", "dispute.state.updated", "gift_card.activity.created", "gift_card.activity.updated", "gift_card.created", "gift_card.customer_linked", "gift_card.customer_unlinked", "gift_card.updated", "inventory.count.updated", "invoice.canceled", "invoice.created", "invoice.deleted", "invoice.payment_made", "invoice.published", "invoice.refunded", "invoice.scheduled_charge_failed", "invoice.updated", "job.created", "job.updated", "labor.scheduled_shift.created", "labor.scheduled_shift.deleted", "labor.scheduled_shift.published", "labor.scheduled_shift.updated", "labor.timecard.created", "labor.timecard.deleted", "labor.timecard.updated", "location.created", "location.custom_attribute_definition.owned.created", "location.custom_attribute_definition.owned.deleted", "location.custom_attribute_definition.owned.updated", "location.custom_attribute_definition.visible.created", "location.custom_attribute_definition.visible.deleted", "location.custom_attribute_definition.visible.updated", "location.custom_attribute.owned.deleted", "location.custom_attribute.owned.updated", "location.custom_attribute.visible.deleted", "location.custom_attribute.visible.updated", "location.updated", "loyalty.account.created", "loyalty.account.deleted", "loyalty.account.updated", "loyalty.event.created", "loyalty.program.created", "loyalty.program.updated", "loyalty.promotion.created", "loyalty.promotion.updated", "merchant.custom_attribute_definition.owned.created", "merchant.custom_attribute_definition.owned.deleted", "merchant.custom_attribute_definition.owned.updated", "merchant.custom_attribute_definition.visible.created", "merchant.custom_attribute_definition.visible.deleted", "merchant.custom_attribute_definition.visible.updated", "merchant.custom_attribute.owned.deleted", "merchant.custom_attribute.owned.updated", "merchant.custom_attribute.visible.deleted", "merchant.custom_attribute.visible.updated", "oauth.authorization.revoked", "online_checkout.location_settings.updated", "online_checkout.merchant_settings.updated", "order.created", "order.custom_attribute_definition.owned.created", "order.custom_attribute_definition.owned.deleted", "order.custom_attribute_definition.owned.updated", "order.custom_attribute_definition.visible.created", "order.custom_attribute_definition.visible.deleted", "order.custom_attribute_definition.visible.updated", "order.custom_attribute.owned.deleted", "order.custom_attribute.owned.updated", "order.custom_attribute.visible.deleted", "order.custom_attribute.visible.updated", "order.fulfillment.updated", "order.updated", "payment.created", "payment.updated", "payout.failed", "payout.paid", "payout.sent", "refund.created", "refund.updated", "subscription.created", "subscription.updated", "team_member.created", "team_member.updated", "team_member.wage_setting.updated", "terminal.action.created", "terminal.action.updated", "terminal.checkout.created", "terminal.checkout.updated", "terminal.refund.created", "terminal.refund.updated", "transfer_order.created", "transfer_order.deleted", "transfer_order.updated", "vendor.created", "vendor.updated"];
|
|
5
|
+
export declare const SQUARE_SEMANTIC_EVENT_TYPE_MAP: {
|
|
6
|
+
readonly "bank_account.created": "square.bankAccount.created";
|
|
7
|
+
readonly "bank_account.disabled": "square.bankAccount.disabled";
|
|
8
|
+
readonly "bank_account.verified": "square.bankAccount.verified";
|
|
9
|
+
readonly "booking.created": "square.booking.created";
|
|
10
|
+
readonly "booking.custom_attribute_definition.owned.created": "square.booking.customAttributeDefinition.owned.created";
|
|
11
|
+
readonly "booking.custom_attribute_definition.owned.deleted": "square.booking.customAttributeDefinition.owned.deleted";
|
|
12
|
+
readonly "booking.custom_attribute_definition.owned.updated": "square.booking.customAttributeDefinition.owned.updated";
|
|
13
|
+
readonly "booking.custom_attribute_definition.visible.created": "square.booking.customAttributeDefinition.visible.created";
|
|
14
|
+
readonly "booking.custom_attribute_definition.visible.deleted": "square.booking.customAttributeDefinition.visible.deleted";
|
|
15
|
+
readonly "booking.custom_attribute_definition.visible.updated": "square.booking.customAttributeDefinition.visible.updated";
|
|
16
|
+
readonly "booking.custom_attribute.owned.deleted": "square.booking.customAttribute.owned.deleted";
|
|
17
|
+
readonly "booking.custom_attribute.owned.updated": "square.booking.customAttribute.owned.updated";
|
|
18
|
+
readonly "booking.custom_attribute.visible.deleted": "square.booking.customAttribute.visible.deleted";
|
|
19
|
+
readonly "booking.custom_attribute.visible.updated": "square.booking.customAttribute.visible.updated";
|
|
20
|
+
readonly "booking.updated": "square.booking.updated";
|
|
21
|
+
readonly "card.automatically_updated": "square.card.automaticallyUpdated";
|
|
22
|
+
readonly "card.created": "square.card.created";
|
|
23
|
+
readonly "card.disabled": "square.card.disabled";
|
|
24
|
+
readonly "card.forgotten": "square.card.forgotten";
|
|
25
|
+
readonly "card.updated": "square.card.updated";
|
|
26
|
+
readonly "catalog.version.updated": "square.catalog.version.updated";
|
|
27
|
+
readonly "customer.created": "square.customer.created";
|
|
28
|
+
readonly "customer.custom_attribute_definition.owned.created": "square.customer.customAttributeDefinition.owned.created";
|
|
29
|
+
readonly "customer.custom_attribute_definition.owned.deleted": "square.customer.customAttributeDefinition.owned.deleted";
|
|
30
|
+
readonly "customer.custom_attribute_definition.owned.updated": "square.customer.customAttributeDefinition.owned.updated";
|
|
31
|
+
readonly "customer.custom_attribute_definition.visible.created": "square.customer.customAttributeDefinition.visible.created";
|
|
32
|
+
readonly "customer.custom_attribute_definition.visible.deleted": "square.customer.customAttributeDefinition.visible.deleted";
|
|
33
|
+
readonly "customer.custom_attribute_definition.visible.updated": "square.customer.customAttributeDefinition.visible.updated";
|
|
34
|
+
readonly "customer.custom_attribute.owned.deleted": "square.customer.customAttribute.owned.deleted";
|
|
35
|
+
readonly "customer.custom_attribute.owned.updated": "square.customer.customAttribute.owned.updated";
|
|
36
|
+
readonly "customer.custom_attribute.visible.deleted": "square.customer.customAttribute.visible.deleted";
|
|
37
|
+
readonly "customer.custom_attribute.visible.updated": "square.customer.customAttribute.visible.updated";
|
|
38
|
+
readonly "customer.deleted": "square.customer.deleted";
|
|
39
|
+
readonly "customer.updated": "square.customer.updated";
|
|
40
|
+
readonly "device.code.paired": "square.device.code.paired";
|
|
41
|
+
readonly "device.created": "square.device.created";
|
|
42
|
+
readonly "dispute.created": "square.dispute.created";
|
|
43
|
+
readonly "dispute.evidence.created": "square.dispute.evidence.created";
|
|
44
|
+
readonly "dispute.evidence.deleted": "square.dispute.evidence.deleted";
|
|
45
|
+
readonly "dispute.state.updated": "square.dispute.state.updated";
|
|
46
|
+
readonly "gift_card.activity.created": "square.giftCard.activity.created";
|
|
47
|
+
readonly "gift_card.activity.updated": "square.giftCard.activity.updated";
|
|
48
|
+
readonly "gift_card.created": "square.giftCard.created";
|
|
49
|
+
readonly "gift_card.customer_linked": "square.giftCard.customerLinked";
|
|
50
|
+
readonly "gift_card.customer_unlinked": "square.giftCard.customerUnlinked";
|
|
51
|
+
readonly "gift_card.updated": "square.giftCard.updated";
|
|
52
|
+
readonly "inventory.count.updated": "square.inventory.count.updated";
|
|
53
|
+
readonly "invoice.canceled": "square.invoice.canceled";
|
|
54
|
+
readonly "invoice.created": "square.invoice.created";
|
|
55
|
+
readonly "invoice.deleted": "square.invoice.deleted";
|
|
56
|
+
readonly "invoice.payment_made": "square.invoice.paymentMade";
|
|
57
|
+
readonly "invoice.published": "square.invoice.published";
|
|
58
|
+
readonly "invoice.refunded": "square.invoice.refunded";
|
|
59
|
+
readonly "invoice.scheduled_charge_failed": "square.invoice.scheduledChargeFailed";
|
|
60
|
+
readonly "invoice.updated": "square.invoice.updated";
|
|
61
|
+
readonly "job.created": "square.job.created";
|
|
62
|
+
readonly "job.updated": "square.job.updated";
|
|
63
|
+
readonly "labor.scheduled_shift.created": "square.labor.scheduledShift.created";
|
|
64
|
+
readonly "labor.scheduled_shift.deleted": "square.labor.scheduledShift.deleted";
|
|
65
|
+
readonly "labor.scheduled_shift.published": "square.labor.scheduledShift.published";
|
|
66
|
+
readonly "labor.scheduled_shift.updated": "square.labor.scheduledShift.updated";
|
|
67
|
+
readonly "labor.timecard.created": "square.labor.timecard.created";
|
|
68
|
+
readonly "labor.timecard.deleted": "square.labor.timecard.deleted";
|
|
69
|
+
readonly "labor.timecard.updated": "square.labor.timecard.updated";
|
|
70
|
+
readonly "location.created": "square.location.created";
|
|
71
|
+
readonly "location.custom_attribute_definition.owned.created": "square.location.customAttributeDefinition.owned.created";
|
|
72
|
+
readonly "location.custom_attribute_definition.owned.deleted": "square.location.customAttributeDefinition.owned.deleted";
|
|
73
|
+
readonly "location.custom_attribute_definition.owned.updated": "square.location.customAttributeDefinition.owned.updated";
|
|
74
|
+
readonly "location.custom_attribute_definition.visible.created": "square.location.customAttributeDefinition.visible.created";
|
|
75
|
+
readonly "location.custom_attribute_definition.visible.deleted": "square.location.customAttributeDefinition.visible.deleted";
|
|
76
|
+
readonly "location.custom_attribute_definition.visible.updated": "square.location.customAttributeDefinition.visible.updated";
|
|
77
|
+
readonly "location.custom_attribute.owned.deleted": "square.location.customAttribute.owned.deleted";
|
|
78
|
+
readonly "location.custom_attribute.owned.updated": "square.location.customAttribute.owned.updated";
|
|
79
|
+
readonly "location.custom_attribute.visible.deleted": "square.location.customAttribute.visible.deleted";
|
|
80
|
+
readonly "location.custom_attribute.visible.updated": "square.location.customAttribute.visible.updated";
|
|
81
|
+
readonly "location.updated": "square.location.updated";
|
|
82
|
+
readonly "loyalty.account.created": "square.loyalty.account.created";
|
|
83
|
+
readonly "loyalty.account.deleted": "square.loyalty.account.deleted";
|
|
84
|
+
readonly "loyalty.account.updated": "square.loyalty.account.updated";
|
|
85
|
+
readonly "loyalty.event.created": "square.loyalty.event.created";
|
|
86
|
+
readonly "loyalty.program.created": "square.loyalty.program.created";
|
|
87
|
+
readonly "loyalty.program.updated": "square.loyalty.program.updated";
|
|
88
|
+
readonly "loyalty.promotion.created": "square.loyalty.promotion.created";
|
|
89
|
+
readonly "loyalty.promotion.updated": "square.loyalty.promotion.updated";
|
|
90
|
+
readonly "merchant.custom_attribute_definition.owned.created": "square.merchant.customAttributeDefinition.owned.created";
|
|
91
|
+
readonly "merchant.custom_attribute_definition.owned.deleted": "square.merchant.customAttributeDefinition.owned.deleted";
|
|
92
|
+
readonly "merchant.custom_attribute_definition.owned.updated": "square.merchant.customAttributeDefinition.owned.updated";
|
|
93
|
+
readonly "merchant.custom_attribute_definition.visible.created": "square.merchant.customAttributeDefinition.visible.created";
|
|
94
|
+
readonly "merchant.custom_attribute_definition.visible.deleted": "square.merchant.customAttributeDefinition.visible.deleted";
|
|
95
|
+
readonly "merchant.custom_attribute_definition.visible.updated": "square.merchant.customAttributeDefinition.visible.updated";
|
|
96
|
+
readonly "merchant.custom_attribute.owned.deleted": "square.merchant.customAttribute.owned.deleted";
|
|
97
|
+
readonly "merchant.custom_attribute.owned.updated": "square.merchant.customAttribute.owned.updated";
|
|
98
|
+
readonly "merchant.custom_attribute.visible.deleted": "square.merchant.customAttribute.visible.deleted";
|
|
99
|
+
readonly "merchant.custom_attribute.visible.updated": "square.merchant.customAttribute.visible.updated";
|
|
100
|
+
readonly "oauth.authorization.revoked": "square.oauth.authorization.revoked";
|
|
101
|
+
readonly "online_checkout.location_settings.updated": "square.onlineCheckout.locationSettings.updated";
|
|
102
|
+
readonly "online_checkout.merchant_settings.updated": "square.onlineCheckout.merchantSettings.updated";
|
|
103
|
+
readonly "order.created": "square.order.created";
|
|
104
|
+
readonly "order.custom_attribute_definition.owned.created": "square.order.customAttributeDefinition.owned.created";
|
|
105
|
+
readonly "order.custom_attribute_definition.owned.deleted": "square.order.customAttributeDefinition.owned.deleted";
|
|
106
|
+
readonly "order.custom_attribute_definition.owned.updated": "square.order.customAttributeDefinition.owned.updated";
|
|
107
|
+
readonly "order.custom_attribute_definition.visible.created": "square.order.customAttributeDefinition.visible.created";
|
|
108
|
+
readonly "order.custom_attribute_definition.visible.deleted": "square.order.customAttributeDefinition.visible.deleted";
|
|
109
|
+
readonly "order.custom_attribute_definition.visible.updated": "square.order.customAttributeDefinition.visible.updated";
|
|
110
|
+
readonly "order.custom_attribute.owned.deleted": "square.order.customAttribute.owned.deleted";
|
|
111
|
+
readonly "order.custom_attribute.owned.updated": "square.order.customAttribute.owned.updated";
|
|
112
|
+
readonly "order.custom_attribute.visible.deleted": "square.order.customAttribute.visible.deleted";
|
|
113
|
+
readonly "order.custom_attribute.visible.updated": "square.order.customAttribute.visible.updated";
|
|
114
|
+
readonly "order.fulfillment.updated": "square.order.fulfillment.updated";
|
|
115
|
+
readonly "order.updated": "square.order.updated";
|
|
116
|
+
readonly "payment.created": "square.payment.created";
|
|
117
|
+
readonly "payment.updated": "square.payment.updated";
|
|
118
|
+
readonly "payout.failed": "square.payout.failed";
|
|
119
|
+
readonly "payout.paid": "square.payout.paid";
|
|
120
|
+
readonly "payout.sent": "square.payout.sent";
|
|
121
|
+
readonly "refund.created": "square.refund.created";
|
|
122
|
+
readonly "refund.updated": "square.refund.updated";
|
|
123
|
+
readonly "subscription.created": "square.subscription.created";
|
|
124
|
+
readonly "subscription.updated": "square.subscription.updated";
|
|
125
|
+
readonly "team_member.created": "square.teamMember.created";
|
|
126
|
+
readonly "team_member.updated": "square.teamMember.updated";
|
|
127
|
+
readonly "team_member.wage_setting.updated": "square.teamMember.wageSetting.updated";
|
|
128
|
+
readonly "terminal.action.created": "square.terminal.action.created";
|
|
129
|
+
readonly "terminal.action.updated": "square.terminal.action.updated";
|
|
130
|
+
readonly "terminal.checkout.created": "square.terminal.checkout.created";
|
|
131
|
+
readonly "terminal.checkout.updated": "square.terminal.checkout.updated";
|
|
132
|
+
readonly "terminal.refund.created": "square.terminal.refund.created";
|
|
133
|
+
readonly "terminal.refund.updated": "square.terminal.refund.updated";
|
|
134
|
+
readonly "transfer_order.created": "square.transferOrder.created";
|
|
135
|
+
readonly "transfer_order.deleted": "square.transferOrder.deleted";
|
|
136
|
+
readonly "transfer_order.updated": "square.transferOrder.updated";
|
|
137
|
+
readonly "vendor.created": "square.vendor.created";
|
|
138
|
+
readonly "vendor.updated": "square.vendor.updated";
|
|
139
|
+
};
|
|
140
|
+
interface SquareProviderEvents {
|
|
141
|
+
readonly "bank_account.created": Square.BankAccountCreatedEvent;
|
|
142
|
+
readonly "bank_account.disabled": Square.BankAccountDisabledEvent;
|
|
143
|
+
readonly "bank_account.verified": Square.BankAccountVerifiedEvent;
|
|
144
|
+
readonly "booking.created": Square.BookingCreatedEvent;
|
|
145
|
+
readonly "booking.custom_attribute_definition.owned.created": Square.BookingCustomAttributeDefinitionOwnedCreatedEvent;
|
|
146
|
+
readonly "booking.custom_attribute_definition.owned.deleted": Square.BookingCustomAttributeDefinitionOwnedDeletedEvent;
|
|
147
|
+
readonly "booking.custom_attribute_definition.owned.updated": Square.BookingCustomAttributeDefinitionOwnedUpdatedEvent;
|
|
148
|
+
readonly "booking.custom_attribute_definition.visible.created": Square.BookingCustomAttributeDefinitionVisibleCreatedEvent;
|
|
149
|
+
readonly "booking.custom_attribute_definition.visible.deleted": Square.BookingCustomAttributeDefinitionVisibleDeletedEvent;
|
|
150
|
+
readonly "booking.custom_attribute_definition.visible.updated": Square.BookingCustomAttributeDefinitionVisibleUpdatedEvent;
|
|
151
|
+
readonly "booking.custom_attribute.owned.deleted": Square.BookingCustomAttributeOwnedDeletedEvent;
|
|
152
|
+
readonly "booking.custom_attribute.owned.updated": Square.BookingCustomAttributeOwnedUpdatedEvent;
|
|
153
|
+
readonly "booking.custom_attribute.visible.deleted": Square.BookingCustomAttributeVisibleDeletedEvent;
|
|
154
|
+
readonly "booking.custom_attribute.visible.updated": Square.BookingCustomAttributeVisibleUpdatedEvent;
|
|
155
|
+
readonly "booking.updated": Square.BookingUpdatedEvent;
|
|
156
|
+
readonly "card.automatically_updated": Square.CardAutomaticallyUpdatedEvent;
|
|
157
|
+
readonly "card.created": Square.CardCreatedEvent;
|
|
158
|
+
readonly "card.disabled": Square.CardDisabledEvent;
|
|
159
|
+
readonly "card.forgotten": Square.CardForgottenEvent;
|
|
160
|
+
readonly "card.updated": Square.CardUpdatedEvent;
|
|
161
|
+
readonly "catalog.version.updated": Square.CatalogVersionUpdatedEvent;
|
|
162
|
+
readonly "customer.created": Square.CustomerCreatedEvent;
|
|
163
|
+
readonly "customer.custom_attribute_definition.owned.created": Square.CustomerCustomAttributeDefinitionOwnedCreatedEvent;
|
|
164
|
+
readonly "customer.custom_attribute_definition.owned.deleted": Square.CustomerCustomAttributeDefinitionOwnedDeletedEvent;
|
|
165
|
+
readonly "customer.custom_attribute_definition.owned.updated": Square.CustomerCustomAttributeDefinitionOwnedUpdatedEvent;
|
|
166
|
+
readonly "customer.custom_attribute_definition.visible.created": Square.CustomerCustomAttributeDefinitionVisibleCreatedEvent;
|
|
167
|
+
readonly "customer.custom_attribute_definition.visible.deleted": Square.CustomerCustomAttributeDefinitionVisibleDeletedEvent;
|
|
168
|
+
readonly "customer.custom_attribute_definition.visible.updated": Square.CustomerCustomAttributeDefinitionVisibleUpdatedEvent;
|
|
169
|
+
readonly "customer.custom_attribute.owned.deleted": Square.CustomerCustomAttributeOwnedDeletedEvent;
|
|
170
|
+
readonly "customer.custom_attribute.owned.updated": Square.CustomerCustomAttributeOwnedUpdatedEvent;
|
|
171
|
+
readonly "customer.custom_attribute.visible.deleted": Square.CustomerCustomAttributeVisibleDeletedEvent;
|
|
172
|
+
readonly "customer.custom_attribute.visible.updated": Square.CustomerCustomAttributeVisibleUpdatedEvent;
|
|
173
|
+
readonly "customer.deleted": Square.CustomerDeletedEvent;
|
|
174
|
+
readonly "customer.updated": Square.CustomerUpdatedEvent;
|
|
175
|
+
readonly "device.code.paired": Square.DeviceCodePairedEvent;
|
|
176
|
+
readonly "device.created": Square.DeviceCreatedEvent;
|
|
177
|
+
readonly "dispute.created": Square.DisputeCreatedEvent;
|
|
178
|
+
readonly "dispute.evidence.created": Square.DisputeEvidenceCreatedEvent;
|
|
179
|
+
readonly "dispute.evidence.deleted": Square.DisputeEvidenceDeletedEvent;
|
|
180
|
+
readonly "dispute.state.updated": Square.DisputeStateUpdatedEvent;
|
|
181
|
+
readonly "gift_card.activity.created": Square.GiftCardActivityCreatedEvent;
|
|
182
|
+
readonly "gift_card.activity.updated": Square.GiftCardActivityUpdatedEvent;
|
|
183
|
+
readonly "gift_card.created": Square.GiftCardCreatedEvent;
|
|
184
|
+
readonly "gift_card.customer_linked": Square.GiftCardCustomerLinkedEvent;
|
|
185
|
+
readonly "gift_card.customer_unlinked": Square.GiftCardCustomerUnlinkedEvent;
|
|
186
|
+
readonly "gift_card.updated": Square.GiftCardUpdatedEvent;
|
|
187
|
+
readonly "inventory.count.updated": Square.InventoryCountUpdatedEvent;
|
|
188
|
+
readonly "invoice.canceled": Square.InvoiceCanceledEvent;
|
|
189
|
+
readonly "invoice.created": Square.InvoiceCreatedEvent;
|
|
190
|
+
readonly "invoice.deleted": Square.InvoiceDeletedEvent;
|
|
191
|
+
readonly "invoice.payment_made": Square.InvoicePaymentMadeEvent;
|
|
192
|
+
readonly "invoice.published": Square.InvoicePublishedEvent;
|
|
193
|
+
readonly "invoice.refunded": Square.InvoiceRefundedEvent;
|
|
194
|
+
readonly "invoice.scheduled_charge_failed": Square.InvoiceScheduledChargeFailedEvent;
|
|
195
|
+
readonly "invoice.updated": Square.InvoiceUpdatedEvent;
|
|
196
|
+
readonly "job.created": Square.JobCreatedEvent;
|
|
197
|
+
readonly "job.updated": Square.JobUpdatedEvent;
|
|
198
|
+
readonly "labor.scheduled_shift.created": Square.LaborScheduledShiftCreatedEvent;
|
|
199
|
+
readonly "labor.scheduled_shift.deleted": Square.LaborScheduledShiftDeletedEvent;
|
|
200
|
+
readonly "labor.scheduled_shift.published": Square.LaborScheduledShiftPublishedEvent;
|
|
201
|
+
readonly "labor.scheduled_shift.updated": Square.LaborScheduledShiftUpdatedEvent;
|
|
202
|
+
readonly "labor.timecard.created": Square.LaborTimecardCreatedEvent;
|
|
203
|
+
readonly "labor.timecard.deleted": Square.LaborTimecardDeletedEvent;
|
|
204
|
+
readonly "labor.timecard.updated": Square.LaborTimecardUpdatedEvent;
|
|
205
|
+
readonly "location.created": Square.LocationCreatedEvent;
|
|
206
|
+
readonly "location.custom_attribute_definition.owned.created": Square.LocationCustomAttributeDefinitionOwnedCreatedEvent;
|
|
207
|
+
readonly "location.custom_attribute_definition.owned.deleted": Square.LocationCustomAttributeDefinitionOwnedDeletedEvent;
|
|
208
|
+
readonly "location.custom_attribute_definition.owned.updated": Square.LocationCustomAttributeDefinitionOwnedUpdatedEvent;
|
|
209
|
+
readonly "location.custom_attribute_definition.visible.created": Square.LocationCustomAttributeDefinitionVisibleCreatedEvent;
|
|
210
|
+
readonly "location.custom_attribute_definition.visible.deleted": Square.LocationCustomAttributeDefinitionVisibleDeletedEvent;
|
|
211
|
+
readonly "location.custom_attribute_definition.visible.updated": Square.LocationCustomAttributeDefinitionVisibleUpdatedEvent;
|
|
212
|
+
readonly "location.custom_attribute.owned.deleted": Square.LocationCustomAttributeOwnedDeletedEvent;
|
|
213
|
+
readonly "location.custom_attribute.owned.updated": Square.LocationCustomAttributeOwnedUpdatedEvent;
|
|
214
|
+
readonly "location.custom_attribute.visible.deleted": Square.LocationCustomAttributeVisibleDeletedEvent;
|
|
215
|
+
readonly "location.custom_attribute.visible.updated": Square.LocationCustomAttributeVisibleUpdatedEvent;
|
|
216
|
+
readonly "location.updated": Square.LocationUpdatedEvent;
|
|
217
|
+
readonly "loyalty.account.created": Square.LoyaltyAccountCreatedEvent;
|
|
218
|
+
readonly "loyalty.account.deleted": Square.LoyaltyAccountDeletedEvent;
|
|
219
|
+
readonly "loyalty.account.updated": Square.LoyaltyAccountUpdatedEvent;
|
|
220
|
+
readonly "loyalty.event.created": Square.LoyaltyEventCreatedEvent;
|
|
221
|
+
readonly "loyalty.program.created": Square.LoyaltyProgramCreatedEvent;
|
|
222
|
+
readonly "loyalty.program.updated": Square.LoyaltyProgramUpdatedEvent;
|
|
223
|
+
readonly "loyalty.promotion.created": Square.LoyaltyPromotionCreatedEvent;
|
|
224
|
+
readonly "loyalty.promotion.updated": Square.LoyaltyPromotionUpdatedEvent;
|
|
225
|
+
readonly "merchant.custom_attribute_definition.owned.created": Square.MerchantCustomAttributeDefinitionOwnedCreatedEvent;
|
|
226
|
+
readonly "merchant.custom_attribute_definition.owned.deleted": Square.MerchantCustomAttributeDefinitionOwnedDeletedEvent;
|
|
227
|
+
readonly "merchant.custom_attribute_definition.owned.updated": Square.MerchantCustomAttributeDefinitionOwnedUpdatedEvent;
|
|
228
|
+
readonly "merchant.custom_attribute_definition.visible.created": Square.MerchantCustomAttributeDefinitionVisibleCreatedEvent;
|
|
229
|
+
readonly "merchant.custom_attribute_definition.visible.deleted": Square.MerchantCustomAttributeDefinitionVisibleDeletedEvent;
|
|
230
|
+
readonly "merchant.custom_attribute_definition.visible.updated": Square.MerchantCustomAttributeDefinitionVisibleUpdatedEvent;
|
|
231
|
+
readonly "merchant.custom_attribute.owned.deleted": Square.MerchantCustomAttributeOwnedDeletedEvent;
|
|
232
|
+
readonly "merchant.custom_attribute.owned.updated": Square.MerchantCustomAttributeOwnedUpdatedEvent;
|
|
233
|
+
readonly "merchant.custom_attribute.visible.deleted": Square.MerchantCustomAttributeVisibleDeletedEvent;
|
|
234
|
+
readonly "merchant.custom_attribute.visible.updated": Square.MerchantCustomAttributeVisibleUpdatedEvent;
|
|
235
|
+
readonly "oauth.authorization.revoked": Square.OauthAuthorizationRevokedEvent;
|
|
236
|
+
readonly "online_checkout.location_settings.updated": Square.LocationSettingsUpdatedEvent;
|
|
237
|
+
readonly "online_checkout.merchant_settings.updated": Square.MerchantSettingsUpdatedEvent;
|
|
238
|
+
readonly "order.created": Square.OrderCreatedEvent;
|
|
239
|
+
readonly "order.custom_attribute_definition.owned.created": Square.OrderCustomAttributeDefinitionOwnedCreatedEvent;
|
|
240
|
+
readonly "order.custom_attribute_definition.owned.deleted": Square.OrderCustomAttributeDefinitionOwnedDeletedEvent;
|
|
241
|
+
readonly "order.custom_attribute_definition.owned.updated": Square.OrderCustomAttributeDefinitionOwnedUpdatedEvent;
|
|
242
|
+
readonly "order.custom_attribute_definition.visible.created": Square.OrderCustomAttributeDefinitionVisibleCreatedEvent;
|
|
243
|
+
readonly "order.custom_attribute_definition.visible.deleted": Square.OrderCustomAttributeDefinitionVisibleDeletedEvent;
|
|
244
|
+
readonly "order.custom_attribute_definition.visible.updated": Square.OrderCustomAttributeDefinitionVisibleUpdatedEvent;
|
|
245
|
+
readonly "order.custom_attribute.owned.deleted": Square.OrderCustomAttributeOwnedDeletedEvent;
|
|
246
|
+
readonly "order.custom_attribute.owned.updated": Square.OrderCustomAttributeOwnedUpdatedEvent;
|
|
247
|
+
readonly "order.custom_attribute.visible.deleted": Square.OrderCustomAttributeVisibleDeletedEvent;
|
|
248
|
+
readonly "order.custom_attribute.visible.updated": Square.OrderCustomAttributeVisibleUpdatedEvent;
|
|
249
|
+
readonly "order.fulfillment.updated": Square.OrderFulfillmentUpdatedEvent;
|
|
250
|
+
readonly "order.updated": Square.OrderUpdatedEvent;
|
|
251
|
+
readonly "payment.created": Square.PaymentCreatedEvent;
|
|
252
|
+
readonly "payment.updated": Square.PaymentUpdatedEvent;
|
|
253
|
+
readonly "payout.failed": Square.PayoutFailedEvent;
|
|
254
|
+
readonly "payout.paid": Square.PayoutPaidEvent;
|
|
255
|
+
readonly "payout.sent": Square.PayoutSentEvent;
|
|
256
|
+
readonly "refund.created": Square.RefundCreatedEvent;
|
|
257
|
+
readonly "refund.updated": Square.RefundUpdatedEvent;
|
|
258
|
+
readonly "subscription.created": Square.SubscriptionCreatedEvent;
|
|
259
|
+
readonly "subscription.updated": Square.SubscriptionUpdatedEvent;
|
|
260
|
+
readonly "team_member.created": Square.TeamMemberCreatedEvent;
|
|
261
|
+
readonly "team_member.updated": Square.TeamMemberUpdatedEvent;
|
|
262
|
+
readonly "team_member.wage_setting.updated": Square.TeamMemberWageSettingUpdatedEvent;
|
|
263
|
+
readonly "terminal.action.created": Square.TerminalActionCreatedEvent;
|
|
264
|
+
readonly "terminal.action.updated": Square.TerminalActionUpdatedEvent;
|
|
265
|
+
readonly "terminal.checkout.created": Square.TerminalCheckoutCreatedEvent;
|
|
266
|
+
readonly "terminal.checkout.updated": Square.TerminalCheckoutUpdatedEvent;
|
|
267
|
+
readonly "terminal.refund.created": Square.TerminalRefundCreatedEvent;
|
|
268
|
+
readonly "terminal.refund.updated": Square.TerminalRefundUpdatedEvent;
|
|
269
|
+
readonly "transfer_order.created": Square.TransferOrderCreatedEvent;
|
|
270
|
+
readonly "transfer_order.deleted": Square.TransferOrderDeletedEvent;
|
|
271
|
+
readonly "transfer_order.updated": Square.TransferOrderUpdatedEvent;
|
|
272
|
+
readonly "vendor.created": Square.VendorCreatedEvent;
|
|
273
|
+
readonly "vendor.updated": Square.VendorUpdatedEvent;
|
|
274
|
+
}
|
|
275
|
+
type SquareEventValue<T> = T extends readonly (infer TItem)[] ? SquareEventValue<TItem>[] : T extends object ? {
|
|
276
|
+
[TKey in keyof T]: SquareEventValue<T[TKey]>;
|
|
277
|
+
} & {
|
|
278
|
+
readonly [key: string]: Encodable;
|
|
279
|
+
} : T;
|
|
280
|
+
/** Public codec-safe Square webhook event. */
|
|
281
|
+
export type SquareEvent = SquareEventValue<Square.Event>;
|
|
282
|
+
/** Public event type for one exact Square webhook name. */
|
|
283
|
+
export type SquareSemanticEvent<TType extends keyof SquareProviderEvents> = SquareEventValue<SquareProviderEvents[TType]> & {
|
|
284
|
+
type: TType;
|
|
285
|
+
};
|
|
286
|
+
export declare const SQUARE_EVENT_SCHEMA: z.ZodType<SquareEvent>;
|
|
287
|
+
export declare const SQUARE_TRIGGER_CONFIG_SCHEMA: z.ZodObject<{}, z.core.$strip>;
|
|
288
|
+
/**
|
|
289
|
+
* Validates a verified Square event for one semantic trigger.
|
|
290
|
+
*
|
|
291
|
+
* @param type - Exact provider event type accepted by the schema.
|
|
292
|
+
*/
|
|
293
|
+
export declare function squareSemanticEventSchema<TType extends (typeof SQUARE_SEMANTIC_EVENT_TYPES)[number]>(type: TType): z.ZodType<SquareSemanticEvent<TType>>;
|
|
294
|
+
/**
|
|
295
|
+
* Validates the public representation of a verified Square event.
|
|
296
|
+
*
|
|
297
|
+
* @param event - Provider event after official SDK deserialization.
|
|
298
|
+
*/
|
|
299
|
+
export declare function normalizeSquareEvent(event: unknown): SquareEvent;
|
|
300
|
+
type SquareSemanticTriggerEventTypes = {
|
|
301
|
+
readonly "square.bankAccount.created": "bank_account.created";
|
|
302
|
+
readonly "square.bankAccount.disabled": "bank_account.disabled";
|
|
303
|
+
readonly "square.bankAccount.verified": "bank_account.verified";
|
|
304
|
+
readonly "square.booking.created": "booking.created";
|
|
305
|
+
readonly "square.booking.customAttributeDefinition.owned.created": "booking.custom_attribute_definition.owned.created";
|
|
306
|
+
readonly "square.booking.customAttributeDefinition.owned.deleted": "booking.custom_attribute_definition.owned.deleted";
|
|
307
|
+
readonly "square.booking.customAttributeDefinition.owned.updated": "booking.custom_attribute_definition.owned.updated";
|
|
308
|
+
readonly "square.booking.customAttributeDefinition.visible.created": "booking.custom_attribute_definition.visible.created";
|
|
309
|
+
readonly "square.booking.customAttributeDefinition.visible.deleted": "booking.custom_attribute_definition.visible.deleted";
|
|
310
|
+
readonly "square.booking.customAttributeDefinition.visible.updated": "booking.custom_attribute_definition.visible.updated";
|
|
311
|
+
readonly "square.booking.customAttribute.owned.deleted": "booking.custom_attribute.owned.deleted";
|
|
312
|
+
readonly "square.booking.customAttribute.owned.updated": "booking.custom_attribute.owned.updated";
|
|
313
|
+
readonly "square.booking.customAttribute.visible.deleted": "booking.custom_attribute.visible.deleted";
|
|
314
|
+
readonly "square.booking.customAttribute.visible.updated": "booking.custom_attribute.visible.updated";
|
|
315
|
+
readonly "square.booking.updated": "booking.updated";
|
|
316
|
+
readonly "square.card.automaticallyUpdated": "card.automatically_updated";
|
|
317
|
+
readonly "square.card.created": "card.created";
|
|
318
|
+
readonly "square.card.disabled": "card.disabled";
|
|
319
|
+
readonly "square.card.forgotten": "card.forgotten";
|
|
320
|
+
readonly "square.card.updated": "card.updated";
|
|
321
|
+
readonly "square.catalog.version.updated": "catalog.version.updated";
|
|
322
|
+
readonly "square.customer.created": "customer.created";
|
|
323
|
+
readonly "square.customer.customAttributeDefinition.owned.created": "customer.custom_attribute_definition.owned.created";
|
|
324
|
+
readonly "square.customer.customAttributeDefinition.owned.deleted": "customer.custom_attribute_definition.owned.deleted";
|
|
325
|
+
readonly "square.customer.customAttributeDefinition.owned.updated": "customer.custom_attribute_definition.owned.updated";
|
|
326
|
+
readonly "square.customer.customAttributeDefinition.visible.created": "customer.custom_attribute_definition.visible.created";
|
|
327
|
+
readonly "square.customer.customAttributeDefinition.visible.deleted": "customer.custom_attribute_definition.visible.deleted";
|
|
328
|
+
readonly "square.customer.customAttributeDefinition.visible.updated": "customer.custom_attribute_definition.visible.updated";
|
|
329
|
+
readonly "square.customer.customAttribute.owned.deleted": "customer.custom_attribute.owned.deleted";
|
|
330
|
+
readonly "square.customer.customAttribute.owned.updated": "customer.custom_attribute.owned.updated";
|
|
331
|
+
readonly "square.customer.customAttribute.visible.deleted": "customer.custom_attribute.visible.deleted";
|
|
332
|
+
readonly "square.customer.customAttribute.visible.updated": "customer.custom_attribute.visible.updated";
|
|
333
|
+
readonly "square.customer.deleted": "customer.deleted";
|
|
334
|
+
readonly "square.customer.updated": "customer.updated";
|
|
335
|
+
readonly "square.device.code.paired": "device.code.paired";
|
|
336
|
+
readonly "square.device.created": "device.created";
|
|
337
|
+
readonly "square.dispute.created": "dispute.created";
|
|
338
|
+
readonly "square.dispute.evidence.created": "dispute.evidence.created";
|
|
339
|
+
readonly "square.dispute.evidence.deleted": "dispute.evidence.deleted";
|
|
340
|
+
readonly "square.dispute.state.updated": "dispute.state.updated";
|
|
341
|
+
readonly "square.giftCard.activity.created": "gift_card.activity.created";
|
|
342
|
+
readonly "square.giftCard.activity.updated": "gift_card.activity.updated";
|
|
343
|
+
readonly "square.giftCard.created": "gift_card.created";
|
|
344
|
+
readonly "square.giftCard.customerLinked": "gift_card.customer_linked";
|
|
345
|
+
readonly "square.giftCard.customerUnlinked": "gift_card.customer_unlinked";
|
|
346
|
+
readonly "square.giftCard.updated": "gift_card.updated";
|
|
347
|
+
readonly "square.inventory.count.updated": "inventory.count.updated";
|
|
348
|
+
readonly "square.invoice.canceled": "invoice.canceled";
|
|
349
|
+
readonly "square.invoice.created": "invoice.created";
|
|
350
|
+
readonly "square.invoice.deleted": "invoice.deleted";
|
|
351
|
+
readonly "square.invoice.paymentMade": "invoice.payment_made";
|
|
352
|
+
readonly "square.invoice.published": "invoice.published";
|
|
353
|
+
readonly "square.invoice.refunded": "invoice.refunded";
|
|
354
|
+
readonly "square.invoice.scheduledChargeFailed": "invoice.scheduled_charge_failed";
|
|
355
|
+
readonly "square.invoice.updated": "invoice.updated";
|
|
356
|
+
readonly "square.job.created": "job.created";
|
|
357
|
+
readonly "square.job.updated": "job.updated";
|
|
358
|
+
readonly "square.labor.scheduledShift.created": "labor.scheduled_shift.created";
|
|
359
|
+
readonly "square.labor.scheduledShift.deleted": "labor.scheduled_shift.deleted";
|
|
360
|
+
readonly "square.labor.scheduledShift.published": "labor.scheduled_shift.published";
|
|
361
|
+
readonly "square.labor.scheduledShift.updated": "labor.scheduled_shift.updated";
|
|
362
|
+
readonly "square.labor.timecard.created": "labor.timecard.created";
|
|
363
|
+
readonly "square.labor.timecard.deleted": "labor.timecard.deleted";
|
|
364
|
+
readonly "square.labor.timecard.updated": "labor.timecard.updated";
|
|
365
|
+
readonly "square.location.created": "location.created";
|
|
366
|
+
readonly "square.location.customAttributeDefinition.owned.created": "location.custom_attribute_definition.owned.created";
|
|
367
|
+
readonly "square.location.customAttributeDefinition.owned.deleted": "location.custom_attribute_definition.owned.deleted";
|
|
368
|
+
readonly "square.location.customAttributeDefinition.owned.updated": "location.custom_attribute_definition.owned.updated";
|
|
369
|
+
readonly "square.location.customAttributeDefinition.visible.created": "location.custom_attribute_definition.visible.created";
|
|
370
|
+
readonly "square.location.customAttributeDefinition.visible.deleted": "location.custom_attribute_definition.visible.deleted";
|
|
371
|
+
readonly "square.location.customAttributeDefinition.visible.updated": "location.custom_attribute_definition.visible.updated";
|
|
372
|
+
readonly "square.location.customAttribute.owned.deleted": "location.custom_attribute.owned.deleted";
|
|
373
|
+
readonly "square.location.customAttribute.owned.updated": "location.custom_attribute.owned.updated";
|
|
374
|
+
readonly "square.location.customAttribute.visible.deleted": "location.custom_attribute.visible.deleted";
|
|
375
|
+
readonly "square.location.customAttribute.visible.updated": "location.custom_attribute.visible.updated";
|
|
376
|
+
readonly "square.location.updated": "location.updated";
|
|
377
|
+
readonly "square.loyalty.account.created": "loyalty.account.created";
|
|
378
|
+
readonly "square.loyalty.account.deleted": "loyalty.account.deleted";
|
|
379
|
+
readonly "square.loyalty.account.updated": "loyalty.account.updated";
|
|
380
|
+
readonly "square.loyalty.event.created": "loyalty.event.created";
|
|
381
|
+
readonly "square.loyalty.program.created": "loyalty.program.created";
|
|
382
|
+
readonly "square.loyalty.program.updated": "loyalty.program.updated";
|
|
383
|
+
readonly "square.loyalty.promotion.created": "loyalty.promotion.created";
|
|
384
|
+
readonly "square.loyalty.promotion.updated": "loyalty.promotion.updated";
|
|
385
|
+
readonly "square.merchant.customAttributeDefinition.owned.created": "merchant.custom_attribute_definition.owned.created";
|
|
386
|
+
readonly "square.merchant.customAttributeDefinition.owned.deleted": "merchant.custom_attribute_definition.owned.deleted";
|
|
387
|
+
readonly "square.merchant.customAttributeDefinition.owned.updated": "merchant.custom_attribute_definition.owned.updated";
|
|
388
|
+
readonly "square.merchant.customAttributeDefinition.visible.created": "merchant.custom_attribute_definition.visible.created";
|
|
389
|
+
readonly "square.merchant.customAttributeDefinition.visible.deleted": "merchant.custom_attribute_definition.visible.deleted";
|
|
390
|
+
readonly "square.merchant.customAttributeDefinition.visible.updated": "merchant.custom_attribute_definition.visible.updated";
|
|
391
|
+
readonly "square.merchant.customAttribute.owned.deleted": "merchant.custom_attribute.owned.deleted";
|
|
392
|
+
readonly "square.merchant.customAttribute.owned.updated": "merchant.custom_attribute.owned.updated";
|
|
393
|
+
readonly "square.merchant.customAttribute.visible.deleted": "merchant.custom_attribute.visible.deleted";
|
|
394
|
+
readonly "square.merchant.customAttribute.visible.updated": "merchant.custom_attribute.visible.updated";
|
|
395
|
+
readonly "square.oauth.authorization.revoked": "oauth.authorization.revoked";
|
|
396
|
+
readonly "square.onlineCheckout.locationSettings.updated": "online_checkout.location_settings.updated";
|
|
397
|
+
readonly "square.onlineCheckout.merchantSettings.updated": "online_checkout.merchant_settings.updated";
|
|
398
|
+
readonly "square.order.created": "order.created";
|
|
399
|
+
readonly "square.order.customAttributeDefinition.owned.created": "order.custom_attribute_definition.owned.created";
|
|
400
|
+
readonly "square.order.customAttributeDefinition.owned.deleted": "order.custom_attribute_definition.owned.deleted";
|
|
401
|
+
readonly "square.order.customAttributeDefinition.owned.updated": "order.custom_attribute_definition.owned.updated";
|
|
402
|
+
readonly "square.order.customAttributeDefinition.visible.created": "order.custom_attribute_definition.visible.created";
|
|
403
|
+
readonly "square.order.customAttributeDefinition.visible.deleted": "order.custom_attribute_definition.visible.deleted";
|
|
404
|
+
readonly "square.order.customAttributeDefinition.visible.updated": "order.custom_attribute_definition.visible.updated";
|
|
405
|
+
readonly "square.order.customAttribute.owned.deleted": "order.custom_attribute.owned.deleted";
|
|
406
|
+
readonly "square.order.customAttribute.owned.updated": "order.custom_attribute.owned.updated";
|
|
407
|
+
readonly "square.order.customAttribute.visible.deleted": "order.custom_attribute.visible.deleted";
|
|
408
|
+
readonly "square.order.customAttribute.visible.updated": "order.custom_attribute.visible.updated";
|
|
409
|
+
readonly "square.order.fulfillment.updated": "order.fulfillment.updated";
|
|
410
|
+
readonly "square.order.updated": "order.updated";
|
|
411
|
+
readonly "square.payment.created": "payment.created";
|
|
412
|
+
readonly "square.payment.updated": "payment.updated";
|
|
413
|
+
readonly "square.payout.failed": "payout.failed";
|
|
414
|
+
readonly "square.payout.paid": "payout.paid";
|
|
415
|
+
readonly "square.payout.sent": "payout.sent";
|
|
416
|
+
readonly "square.refund.created": "refund.created";
|
|
417
|
+
readonly "square.refund.updated": "refund.updated";
|
|
418
|
+
readonly "square.subscription.created": "subscription.created";
|
|
419
|
+
readonly "square.subscription.updated": "subscription.updated";
|
|
420
|
+
readonly "square.teamMember.created": "team_member.created";
|
|
421
|
+
readonly "square.teamMember.updated": "team_member.updated";
|
|
422
|
+
readonly "square.teamMember.wageSetting.updated": "team_member.wage_setting.updated";
|
|
423
|
+
readonly "square.terminal.action.created": "terminal.action.created";
|
|
424
|
+
readonly "square.terminal.action.updated": "terminal.action.updated";
|
|
425
|
+
readonly "square.terminal.checkout.created": "terminal.checkout.created";
|
|
426
|
+
readonly "square.terminal.checkout.updated": "terminal.checkout.updated";
|
|
427
|
+
readonly "square.terminal.refund.created": "terminal.refund.created";
|
|
428
|
+
readonly "square.terminal.refund.updated": "terminal.refund.updated";
|
|
429
|
+
readonly "square.transferOrder.created": "transfer_order.created";
|
|
430
|
+
readonly "square.transferOrder.deleted": "transfer_order.deleted";
|
|
431
|
+
readonly "square.transferOrder.updated": "transfer_order.updated";
|
|
432
|
+
readonly "square.vendor.created": "vendor.created";
|
|
433
|
+
readonly "square.vendor.updated": "vendor.updated";
|
|
434
|
+
};
|
|
435
|
+
type SquareTriggerContract<TEvent> = {
|
|
436
|
+
readonly configSchema: typeof SQUARE_TRIGGER_CONFIG_SCHEMA;
|
|
437
|
+
readonly eventSchema: z.ZodType<TEvent>;
|
|
438
|
+
};
|
|
439
|
+
/** Preserves exact event types across the generated trigger contract map. */
|
|
440
|
+
type SquareTriggerContracts = {
|
|
441
|
+
readonly [TTrigger in keyof SquareSemanticTriggerEventTypes]: SquareTriggerContract<SquareSemanticEvent<SquareSemanticTriggerEventTypes[TTrigger]>>;
|
|
442
|
+
} & {
|
|
443
|
+
readonly "square.event": SquareTriggerContract<SquareEvent>;
|
|
444
|
+
};
|
|
445
|
+
export declare const squareTriggerContracts: SquareTriggerContracts;
|
|
446
|
+
export {};
|