@wix/auto_sdk_events_notifications 1.0.76 → 1.0.78
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/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +31 -219
- package/build/cjs/index.typings.js +1 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +30 -218
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +1 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +31 -219
- package/build/es/index.typings.mjs +1 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +30 -218
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +1 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +38 -220
- package/build/internal/cjs/index.typings.js +1 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +30 -218
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +1 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +38 -220
- package/build/internal/es/index.typings.mjs +1 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +30 -218
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -474,7 +474,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
474
474
|
/** If present, indicates the action that triggered the event. */
|
|
475
475
|
originatedFrom?: string | null;
|
|
476
476
|
/**
|
|
477
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01
|
|
477
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
478
478
|
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
479
479
|
*/
|
|
480
480
|
entityEventSequence?: string | null;
|
|
@@ -698,9 +698,9 @@ interface TicketGuest {
|
|
|
698
698
|
}
|
|
699
699
|
interface TriggerNotificationResponse {
|
|
700
700
|
}
|
|
701
|
-
/** Triggered when an order is
|
|
702
|
-
interface
|
|
703
|
-
/** Date and time the order was
|
|
701
|
+
/** Triggered when an order is paid. */
|
|
702
|
+
interface OrderPaid {
|
|
703
|
+
/** Date and time the order was paid. */
|
|
704
704
|
timestamp?: Date | null;
|
|
705
705
|
/**
|
|
706
706
|
* Site language when the order was initiated.
|
|
@@ -721,10 +721,15 @@ interface OrderConfirmed {
|
|
|
721
721
|
eventId?: string;
|
|
722
722
|
/** Unique order number. */
|
|
723
723
|
orderNumber?: string;
|
|
724
|
-
/**
|
|
724
|
+
/** Reservation ID associated with this order. */
|
|
725
|
+
reservationId?: string;
|
|
726
|
+
/**
|
|
727
|
+
* Contact ID associated with this order.
|
|
728
|
+
* @maxLength 36
|
|
729
|
+
*/
|
|
725
730
|
contactId?: string;
|
|
726
731
|
/**
|
|
727
|
-
* Member ID associated with
|
|
732
|
+
* Member ID associated with this order.
|
|
728
733
|
* @format GUID
|
|
729
734
|
*/
|
|
730
735
|
memberId?: string | null;
|
|
@@ -734,28 +739,36 @@ interface OrderConfirmed {
|
|
|
734
739
|
*/
|
|
735
740
|
created?: Date | null;
|
|
736
741
|
/**
|
|
737
|
-
*
|
|
738
|
-
* @
|
|
742
|
+
* Buyer first name.
|
|
743
|
+
* @maxLength 255
|
|
739
744
|
*/
|
|
740
|
-
updated?: Date | null;
|
|
741
|
-
/** Buyer first name. */
|
|
742
745
|
firstName?: string;
|
|
743
|
-
/**
|
|
746
|
+
/**
|
|
747
|
+
* Buyer last name.
|
|
748
|
+
* @maxLength 255
|
|
749
|
+
*/
|
|
744
750
|
lastName?: string;
|
|
745
|
-
/**
|
|
751
|
+
/**
|
|
752
|
+
* Buyer email address.
|
|
753
|
+
* @maxLength 255
|
|
754
|
+
*/
|
|
746
755
|
email?: string;
|
|
747
756
|
/** Checkout form response. */
|
|
748
757
|
checkoutForm?: FormResponse;
|
|
749
758
|
/** Order status. */
|
|
750
759
|
status?: OrderStatusWithLiterals;
|
|
751
|
-
/**
|
|
760
|
+
/**
|
|
761
|
+
* Payment method used for paid tickets purchase, i.e. "payPal", "creditCard", etc.
|
|
762
|
+
* @maxLength 255
|
|
763
|
+
*/
|
|
752
764
|
method?: string | null;
|
|
753
|
-
/**
|
|
765
|
+
/**
|
|
766
|
+
* Tickets (generated after payment).
|
|
767
|
+
* @maxSize 50
|
|
768
|
+
*/
|
|
754
769
|
tickets?: Ticket[];
|
|
755
770
|
/** Invoice. */
|
|
756
771
|
invoice?: Invoice;
|
|
757
|
-
/** Reservation ID associated with the order. */
|
|
758
|
-
reservationId?: string;
|
|
759
772
|
}
|
|
760
773
|
interface FormResponse {
|
|
761
774
|
/**
|
|
@@ -1137,165 +1150,6 @@ declare enum FeeType {
|
|
|
1137
1150
|
}
|
|
1138
1151
|
/** @enumType */
|
|
1139
1152
|
type FeeTypeWithLiterals = FeeType | 'FEE_ADDED' | 'FEE_INCLUDED' | 'FEE_ADDED_AT_CHECKOUT';
|
|
1140
|
-
/** Produced if a buyer email was added to the existing order */
|
|
1141
|
-
interface OrderEmailAdded {
|
|
1142
|
-
/** Order updated timestamp in ISO UTC format. */
|
|
1143
|
-
timestamp?: Date | null;
|
|
1144
|
-
/**
|
|
1145
|
-
* Site language when Order initiated
|
|
1146
|
-
* @format LANGUAGE
|
|
1147
|
-
*/
|
|
1148
|
-
language?: string | null;
|
|
1149
|
-
/**
|
|
1150
|
-
* Locale in which Order was created.
|
|
1151
|
-
* @format LANGUAGE_TAG
|
|
1152
|
-
*/
|
|
1153
|
-
locale?: string | null;
|
|
1154
|
-
/** Notifications silenced for this domain event. */
|
|
1155
|
-
silent?: boolean | null;
|
|
1156
|
-
/**
|
|
1157
|
-
* Event ID.
|
|
1158
|
-
* @format GUID
|
|
1159
|
-
*/
|
|
1160
|
-
eventId?: string;
|
|
1161
|
-
/**
|
|
1162
|
-
* Unique order number.
|
|
1163
|
-
* @maxLength 36
|
|
1164
|
-
*/
|
|
1165
|
-
orderNumber?: string;
|
|
1166
|
-
/**
|
|
1167
|
-
* Contact ID associated with this order.
|
|
1168
|
-
* @format GUID
|
|
1169
|
-
*/
|
|
1170
|
-
contactId?: string | null;
|
|
1171
|
-
/**
|
|
1172
|
-
* Member ID associated with this order.
|
|
1173
|
-
* @format GUID
|
|
1174
|
-
*/
|
|
1175
|
-
memberId?: string | null;
|
|
1176
|
-
/**
|
|
1177
|
-
* Order created timestamp.
|
|
1178
|
-
* @readonly
|
|
1179
|
-
*/
|
|
1180
|
-
created?: Date | null;
|
|
1181
|
-
/**
|
|
1182
|
-
* Order updated timestamp.
|
|
1183
|
-
* @readonly
|
|
1184
|
-
*/
|
|
1185
|
-
updated?: Date | null;
|
|
1186
|
-
/**
|
|
1187
|
-
* Buyer first name.
|
|
1188
|
-
* @maxLength 255
|
|
1189
|
-
*/
|
|
1190
|
-
firstName?: string | null;
|
|
1191
|
-
/**
|
|
1192
|
-
* Buyer last name.
|
|
1193
|
-
* @maxLength 255
|
|
1194
|
-
*/
|
|
1195
|
-
lastName?: string | null;
|
|
1196
|
-
/**
|
|
1197
|
-
* Buyer email.
|
|
1198
|
-
* @format EMAIL
|
|
1199
|
-
*/
|
|
1200
|
-
email?: string | null;
|
|
1201
|
-
/** Checkout form response. */
|
|
1202
|
-
checkoutForm?: FormResponse;
|
|
1203
|
-
/** Whether order is confirmed - occurs once payment gateway processes the payment and funds reach merchant's account. */
|
|
1204
|
-
confirmed?: boolean;
|
|
1205
|
-
/** Order status. */
|
|
1206
|
-
status?: OrderStatusWithLiterals;
|
|
1207
|
-
/**
|
|
1208
|
-
* Payment method used for paid tickets purchase, i.e. "payPal", "creditCard", etc.
|
|
1209
|
-
* @maxLength 100
|
|
1210
|
-
*/
|
|
1211
|
-
method?: string | null;
|
|
1212
|
-
/**
|
|
1213
|
-
* Tickets generated after payment.
|
|
1214
|
-
* @maxSize 50
|
|
1215
|
-
*/
|
|
1216
|
-
tickets?: Ticket[];
|
|
1217
|
-
/** Whether order was archived and excluded from results. */
|
|
1218
|
-
archived?: boolean;
|
|
1219
|
-
/**
|
|
1220
|
-
* Reservation ID associated with this order.
|
|
1221
|
-
* @format GUID
|
|
1222
|
-
*/
|
|
1223
|
-
reservationId?: string;
|
|
1224
|
-
/** Whether marketing consent was given. */
|
|
1225
|
-
marketingConsent?: boolean | null;
|
|
1226
|
-
}
|
|
1227
|
-
/** Triggered when an order is paid. */
|
|
1228
|
-
interface OrderPaid {
|
|
1229
|
-
/** Date and time the order was paid. */
|
|
1230
|
-
timestamp?: Date | null;
|
|
1231
|
-
/**
|
|
1232
|
-
* Site language when the order was initiated.
|
|
1233
|
-
* @format LANGUAGE
|
|
1234
|
-
*/
|
|
1235
|
-
language?: string | null;
|
|
1236
|
-
/** Notifications silenced for this domain event. */
|
|
1237
|
-
silent?: boolean | null;
|
|
1238
|
-
/**
|
|
1239
|
-
* Locale in which the order was created.
|
|
1240
|
-
* @format LANGUAGE_TAG
|
|
1241
|
-
*/
|
|
1242
|
-
locale?: string | null;
|
|
1243
|
-
/**
|
|
1244
|
-
* Event ID to which the order belongs.
|
|
1245
|
-
* @format GUID
|
|
1246
|
-
*/
|
|
1247
|
-
eventId?: string;
|
|
1248
|
-
/** Unique order number. */
|
|
1249
|
-
orderNumber?: string;
|
|
1250
|
-
/** Reservation ID associated with this order. */
|
|
1251
|
-
reservationId?: string;
|
|
1252
|
-
/**
|
|
1253
|
-
* Contact ID associated with this order.
|
|
1254
|
-
* @maxLength 36
|
|
1255
|
-
*/
|
|
1256
|
-
contactId?: string;
|
|
1257
|
-
/**
|
|
1258
|
-
* Member ID associated with this order.
|
|
1259
|
-
* @format GUID
|
|
1260
|
-
*/
|
|
1261
|
-
memberId?: string | null;
|
|
1262
|
-
/**
|
|
1263
|
-
* Date and time the order was created.
|
|
1264
|
-
* @readonly
|
|
1265
|
-
*/
|
|
1266
|
-
created?: Date | null;
|
|
1267
|
-
/**
|
|
1268
|
-
* Buyer first name.
|
|
1269
|
-
* @maxLength 255
|
|
1270
|
-
*/
|
|
1271
|
-
firstName?: string;
|
|
1272
|
-
/**
|
|
1273
|
-
* Buyer last name.
|
|
1274
|
-
* @maxLength 255
|
|
1275
|
-
*/
|
|
1276
|
-
lastName?: string;
|
|
1277
|
-
/**
|
|
1278
|
-
* Buyer email address.
|
|
1279
|
-
* @maxLength 255
|
|
1280
|
-
*/
|
|
1281
|
-
email?: string;
|
|
1282
|
-
/** Checkout form response. */
|
|
1283
|
-
checkoutForm?: FormResponse;
|
|
1284
|
-
/** Order status. */
|
|
1285
|
-
status?: OrderStatusWithLiterals;
|
|
1286
|
-
/**
|
|
1287
|
-
* Payment method used for paid tickets purchase, i.e. "payPal", "creditCard", etc.
|
|
1288
|
-
* @maxLength 255
|
|
1289
|
-
*/
|
|
1290
|
-
method?: string | null;
|
|
1291
|
-
/**
|
|
1292
|
-
* Tickets (generated after payment).
|
|
1293
|
-
* @maxSize 50
|
|
1294
|
-
*/
|
|
1295
|
-
tickets?: Ticket[];
|
|
1296
|
-
/** Invoice. */
|
|
1297
|
-
invoice?: Invoice;
|
|
1298
|
-
}
|
|
1299
1153
|
interface TicketPdfResolved {
|
|
1300
1154
|
/**
|
|
1301
1155
|
* Optional order number
|
|
@@ -1337,48 +1191,6 @@ interface TicketPdfResolveDelayed {
|
|
|
1337
1191
|
*/
|
|
1338
1192
|
documentId?: string | null;
|
|
1339
1193
|
}
|
|
1340
|
-
/** Triggered when an order is canceled. */
|
|
1341
|
-
interface OrderCanceled {
|
|
1342
|
-
/**
|
|
1343
|
-
* Event ID to which the order belongs.
|
|
1344
|
-
* @format GUID
|
|
1345
|
-
*/
|
|
1346
|
-
eventId?: string;
|
|
1347
|
-
/**
|
|
1348
|
-
* Unique order number.
|
|
1349
|
-
* @maxLength 36
|
|
1350
|
-
*/
|
|
1351
|
-
orderNumber?: string;
|
|
1352
|
-
/**
|
|
1353
|
-
* Reservation ID associated with the order.
|
|
1354
|
-
* @format GUID
|
|
1355
|
-
*/
|
|
1356
|
-
reservationId?: string;
|
|
1357
|
-
/**
|
|
1358
|
-
* Contact ID associated with the order.
|
|
1359
|
-
* @maxLength 36
|
|
1360
|
-
*/
|
|
1361
|
-
contactId?: string;
|
|
1362
|
-
/**
|
|
1363
|
-
* Buyer first name.
|
|
1364
|
-
* @maxLength 50
|
|
1365
|
-
*/
|
|
1366
|
-
firstName?: string | null;
|
|
1367
|
-
/**
|
|
1368
|
-
* Buyer last name.
|
|
1369
|
-
* @maxLength 50
|
|
1370
|
-
*/
|
|
1371
|
-
lastName?: string | null;
|
|
1372
|
-
/**
|
|
1373
|
-
* Buyer email address.
|
|
1374
|
-
* @maxLength 255
|
|
1375
|
-
*/
|
|
1376
|
-
email?: string | null;
|
|
1377
|
-
/** Checkout form response. */
|
|
1378
|
-
checkoutForm?: FormResponse;
|
|
1379
|
-
/** Invoice. */
|
|
1380
|
-
invoice?: Invoice;
|
|
1381
|
-
}
|
|
1382
1194
|
interface BaseEventMetadata {
|
|
1383
1195
|
/**
|
|
1384
1196
|
* App instance ID.
|
|
@@ -1420,7 +1232,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
1420
1232
|
/** If present, indicates the action that triggered the event. */
|
|
1421
1233
|
originatedFrom?: string | null;
|
|
1422
1234
|
/**
|
|
1423
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01
|
|
1235
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
1424
1236
|
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1425
1237
|
*/
|
|
1426
1238
|
entityEventSequence?: string | null;
|
|
@@ -1591,4 +1403,4 @@ interface TriggerNotificationOptionsGuestsOneOf {
|
|
|
1591
1403
|
ticketGuest?: TicketGuest;
|
|
1592
1404
|
}
|
|
1593
1405
|
|
|
1594
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type Address, type AddressLocation, type AddressStreetOneOf, type BaseEventMetadata, type CheckIn, type CommonAddress, type CommonAddressLocation, type CommonAddressStreetOneOf, type CommonStreetAddress, type CommonSubdivision, type CouponDiscount, type Discount, type DiscountItem, type DiscountItemDiscountOneOf, type DomainEvent, type DomainEventBodyOneOf, type EmailNotificationConfig, EmailNotificationReminderTime, type EmailNotificationReminderTimeWithLiterals, EmailNotificationType, type EmailNotificationTypeWithLiterals, type EmailTemplate, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventCanceled, type EventCopied, type EventDeleted, type EventGuests, type EventMetadata, EventStatus, type EventStatusWithLiterals, type Fee, FeeName, type FeeNameWithLiterals, FeeType, type FeeTypeWithLiterals, type FormResponse, type FormattedAddress, type IdentificationData, type IdentificationDataIdOneOf, type InputValue, type Invoice, type Item, type Link, type Location, LocationType, type LocationTypeWithLiterals, type MapCoordinates, type MessageEnvelope, type Money, type NotificationConfig, type NotificationConfigCreatedEnvelope, type NotificationConfigUpdatedEnvelope, type Occurrence, type OnlineConferencingLogin, type
|
|
1406
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type Address, type AddressLocation, type AddressStreetOneOf, type BaseEventMetadata, type CheckIn, type CommonAddress, type CommonAddressLocation, type CommonAddressStreetOneOf, type CommonStreetAddress, type CommonSubdivision, type CouponDiscount, type Discount, type DiscountItem, type DiscountItemDiscountOneOf, type DomainEvent, type DomainEventBodyOneOf, type EmailNotificationConfig, EmailNotificationReminderTime, type EmailNotificationReminderTimeWithLiterals, EmailNotificationType, type EmailNotificationTypeWithLiterals, type EmailTemplate, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventCanceled, type EventCopied, type EventDeleted, type EventGuests, type EventMetadata, EventStatus, type EventStatusWithLiterals, type Fee, FeeName, type FeeNameWithLiterals, FeeType, type FeeTypeWithLiterals, type FormResponse, type FormattedAddress, type IdentificationData, type IdentificationDataIdOneOf, type InputValue, type Invoice, type Item, type Link, type Location, LocationType, type LocationTypeWithLiterals, type MapCoordinates, type MessageEnvelope, type Money, type NotificationConfig, type NotificationConfigCreatedEnvelope, type NotificationConfigUpdatedEnvelope, type Occurrence, type OnlineConferencingLogin, type OrderGuest, type OrderPaid, OrderStatus, type OrderStatusWithLiterals, type PaidPlanDiscount, type PaidPlanDiscountDiscountOneOf, type PercentDiscount, PushNotificationType, type PushNotificationTypeWithLiterals, type Recurrences, type ResolveEmailNotificationConfigRequest, type ResolveEmailNotificationConfigResponse, type ResolveNotificationConfigRequest, type ResolveNotificationConfigResponse, type RestoreInfo, type RsvpGuest, type ScheduleConfig, type StandardDetails, Status, type StatusWithLiterals, type StreetAddress, type Subdivision, SubdivisionType, type SubdivisionTypeWithLiterals, type Tax, TaxType, type TaxTypeWithLiterals, type Ticket, type TicketGuest, type TicketPdfResolveDelayed, type TicketPdfResolved, type TriggerNotificationOptions, type TriggerNotificationOptionsGuestsOneOf, type TriggerNotificationOptionsNotificationOneOf, type TriggerNotificationRequest, type TriggerNotificationRequestGuestsOneOf, type TriggerNotificationRequestNotificationOneOf, type TriggerNotificationResponse, type UpsertNotificationConfig, type UpsertNotificationConfigRequest, type UpsertNotificationConfigResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, onNotificationConfigCreated, onNotificationConfigUpdated, resolveNotificationConfig, triggerNotification, upsertNotificationConfig };
|
|
@@ -259,6 +259,7 @@ var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
|
|
|
259
259
|
EventStatus2["STARTED"] = "STARTED";
|
|
260
260
|
EventStatus2["ENDED"] = "ENDED";
|
|
261
261
|
EventStatus2["CANCELED"] = "CANCELED";
|
|
262
|
+
EventStatus2["DRAFT"] = "DRAFT";
|
|
262
263
|
return EventStatus2;
|
|
263
264
|
})(EventStatus || {});
|
|
264
265
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|