@wix/auto_sdk_bookings_services 1.0.27 → 1.0.29
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/src/bookings-services-v2-service-services.context.d.ts +1 -1
- package/build/cjs/src/bookings-services-v2-service-services.http.js +108 -1
- package/build/cjs/src/bookings-services-v2-service-services.http.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service-services.public.d.ts +1 -1
- package/build/cjs/src/bookings-services-v2-service-services.public.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service-services.types.d.ts +171 -142
- package/build/cjs/src/bookings-services-v2-service-services.types.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service-services.universal.d.ts +169 -140
- package/build/cjs/src/bookings-services-v2-service-services.universal.js.map +1 -1
- package/build/es/src/bookings-services-v2-service-services.context.d.ts +1 -1
- package/build/es/src/bookings-services-v2-service-services.http.js +108 -1
- package/build/es/src/bookings-services-v2-service-services.http.js.map +1 -1
- package/build/es/src/bookings-services-v2-service-services.public.d.ts +1 -1
- package/build/es/src/bookings-services-v2-service-services.public.js.map +1 -1
- package/build/es/src/bookings-services-v2-service-services.types.d.ts +171 -142
- package/build/es/src/bookings-services-v2-service-services.types.js.map +1 -1
- package/build/es/src/bookings-services-v2-service-services.universal.d.ts +169 -140
- package/build/es/src/bookings-services-v2-service-services.universal.js.map +1 -1
- package/build/internal/cjs/src/bookings-services-v2-service-services.context.d.ts +1 -1
- package/build/internal/cjs/src/bookings-services-v2-service-services.http.js +108 -1
- package/build/internal/cjs/src/bookings-services-v2-service-services.http.js.map +1 -1
- package/build/internal/cjs/src/bookings-services-v2-service-services.public.d.ts +1 -1
- package/build/internal/cjs/src/bookings-services-v2-service-services.public.js.map +1 -1
- package/build/internal/cjs/src/bookings-services-v2-service-services.types.d.ts +171 -142
- package/build/internal/cjs/src/bookings-services-v2-service-services.types.js.map +1 -1
- package/build/internal/cjs/src/bookings-services-v2-service-services.universal.d.ts +169 -140
- package/build/internal/cjs/src/bookings-services-v2-service-services.universal.js.map +1 -1
- package/build/internal/es/src/bookings-services-v2-service-services.context.d.ts +1 -1
- package/build/internal/es/src/bookings-services-v2-service-services.http.js +108 -1
- package/build/internal/es/src/bookings-services-v2-service-services.http.js.map +1 -1
- package/build/internal/es/src/bookings-services-v2-service-services.public.d.ts +1 -1
- package/build/internal/es/src/bookings-services-v2-service-services.public.js.map +1 -1
- package/build/internal/es/src/bookings-services-v2-service-services.types.d.ts +171 -142
- package/build/internal/es/src/bookings-services-v2-service-services.types.js.map +1 -1
- package/build/internal/es/src/bookings-services-v2-service-services.universal.d.ts +169 -140
- package/build/internal/es/src/bookings-services-v2-service-services.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1201,12 +1201,183 @@ export interface AddOnDetails {
|
|
|
1201
1201
|
*/
|
|
1202
1202
|
durationInMinutes?: number | null;
|
|
1203
1203
|
}
|
|
1204
|
+
/**
|
|
1205
|
+
* Message for reindexing search data to a given search schema. Support both upsert and delete flows as well as
|
|
1206
|
+
* performs context manipulation with adding tenant, provided in message to callscope.
|
|
1207
|
+
*/
|
|
1208
|
+
export interface ReindexMessage extends ReindexMessageActionOneOf {
|
|
1209
|
+
upsert?: Upsert;
|
|
1210
|
+
delete?: Delete;
|
|
1211
|
+
entityFqdn?: string;
|
|
1212
|
+
tenantId?: string;
|
|
1213
|
+
eventTime?: Date | null;
|
|
1214
|
+
entityEventSequence?: string | null;
|
|
1215
|
+
schema?: Schema;
|
|
1216
|
+
}
|
|
1217
|
+
/** @oneof */
|
|
1218
|
+
export interface ReindexMessageActionOneOf {
|
|
1219
|
+
upsert?: Upsert;
|
|
1220
|
+
delete?: Delete;
|
|
1221
|
+
}
|
|
1222
|
+
export interface Upsert {
|
|
1223
|
+
entityId?: string;
|
|
1224
|
+
entityAsJson?: string;
|
|
1225
|
+
}
|
|
1226
|
+
export interface Delete {
|
|
1227
|
+
entityId?: string;
|
|
1228
|
+
}
|
|
1229
|
+
export interface Schema {
|
|
1230
|
+
label?: string;
|
|
1231
|
+
clusterName?: string;
|
|
1232
|
+
}
|
|
1204
1233
|
export interface SetCustomSlugEvent {
|
|
1205
1234
|
/** The main slug for the service after the update */
|
|
1206
1235
|
mainSlug?: Slug;
|
|
1207
1236
|
}
|
|
1208
1237
|
export interface ServicesUrlsChanged {
|
|
1209
1238
|
}
|
|
1239
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
1240
|
+
createdEvent?: EntityCreatedEvent;
|
|
1241
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1242
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1243
|
+
actionEvent?: ActionEvent;
|
|
1244
|
+
/**
|
|
1245
|
+
* Unique event ID.
|
|
1246
|
+
* Allows clients to ignore duplicate webhooks.
|
|
1247
|
+
*/
|
|
1248
|
+
id?: string;
|
|
1249
|
+
/**
|
|
1250
|
+
* Assumes actions are also always typed to an entity_type
|
|
1251
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
1252
|
+
*/
|
|
1253
|
+
entityFqdn?: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
1256
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
1257
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
1258
|
+
*/
|
|
1259
|
+
slug?: string;
|
|
1260
|
+
/** ID of the entity associated with the event. */
|
|
1261
|
+
entityId?: string;
|
|
1262
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1263
|
+
eventTime?: Date | null;
|
|
1264
|
+
/**
|
|
1265
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
1266
|
+
* (for example, GDPR).
|
|
1267
|
+
*/
|
|
1268
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
1269
|
+
/** If present, indicates the action that triggered the event. */
|
|
1270
|
+
originatedFrom?: string | null;
|
|
1271
|
+
/**
|
|
1272
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
1273
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1274
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1275
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1276
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1277
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1278
|
+
*/
|
|
1279
|
+
entityEventSequence?: string | null;
|
|
1280
|
+
}
|
|
1281
|
+
/** @oneof */
|
|
1282
|
+
export interface DomainEventBodyOneOf {
|
|
1283
|
+
createdEvent?: EntityCreatedEvent;
|
|
1284
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1285
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1286
|
+
actionEvent?: ActionEvent;
|
|
1287
|
+
}
|
|
1288
|
+
export interface EntityCreatedEvent {
|
|
1289
|
+
entityAsJson?: string;
|
|
1290
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
1291
|
+
restoreInfo?: RestoreInfo;
|
|
1292
|
+
}
|
|
1293
|
+
export interface RestoreInfo {
|
|
1294
|
+
deletedDate?: Date | null;
|
|
1295
|
+
}
|
|
1296
|
+
export interface EntityUpdatedEvent {
|
|
1297
|
+
/**
|
|
1298
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1299
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1300
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1301
|
+
*/
|
|
1302
|
+
currentEntityAsJson?: string;
|
|
1303
|
+
}
|
|
1304
|
+
export interface EntityDeletedEvent {
|
|
1305
|
+
/** Entity that was deleted */
|
|
1306
|
+
deletedEntityAsJson?: string | null;
|
|
1307
|
+
}
|
|
1308
|
+
export interface ActionEvent {
|
|
1309
|
+
bodyAsJson?: string;
|
|
1310
|
+
}
|
|
1311
|
+
export interface MessageEnvelope {
|
|
1312
|
+
/**
|
|
1313
|
+
* App instance ID.
|
|
1314
|
+
* @format GUID
|
|
1315
|
+
*/
|
|
1316
|
+
instanceId?: string | null;
|
|
1317
|
+
/**
|
|
1318
|
+
* Event type.
|
|
1319
|
+
* @maxLength 150
|
|
1320
|
+
*/
|
|
1321
|
+
eventType?: string;
|
|
1322
|
+
/** The identification type and identity data. */
|
|
1323
|
+
identity?: IdentificationData;
|
|
1324
|
+
/** Stringify payload. */
|
|
1325
|
+
data?: string;
|
|
1326
|
+
}
|
|
1327
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1328
|
+
/**
|
|
1329
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1330
|
+
* @format GUID
|
|
1331
|
+
*/
|
|
1332
|
+
anonymousVisitorId?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* ID of a site visitor that has logged in to the site.
|
|
1335
|
+
* @format GUID
|
|
1336
|
+
*/
|
|
1337
|
+
memberId?: string;
|
|
1338
|
+
/**
|
|
1339
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1340
|
+
* @format GUID
|
|
1341
|
+
*/
|
|
1342
|
+
wixUserId?: string;
|
|
1343
|
+
/**
|
|
1344
|
+
* ID of an app.
|
|
1345
|
+
* @format GUID
|
|
1346
|
+
*/
|
|
1347
|
+
appId?: string;
|
|
1348
|
+
/** @readonly */
|
|
1349
|
+
identityType?: WebhookIdentityType;
|
|
1350
|
+
}
|
|
1351
|
+
/** @oneof */
|
|
1352
|
+
export interface IdentificationDataIdOneOf {
|
|
1353
|
+
/**
|
|
1354
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1355
|
+
* @format GUID
|
|
1356
|
+
*/
|
|
1357
|
+
anonymousVisitorId?: string;
|
|
1358
|
+
/**
|
|
1359
|
+
* ID of a site visitor that has logged in to the site.
|
|
1360
|
+
* @format GUID
|
|
1361
|
+
*/
|
|
1362
|
+
memberId?: string;
|
|
1363
|
+
/**
|
|
1364
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1365
|
+
* @format GUID
|
|
1366
|
+
*/
|
|
1367
|
+
wixUserId?: string;
|
|
1368
|
+
/**
|
|
1369
|
+
* ID of an app.
|
|
1370
|
+
* @format GUID
|
|
1371
|
+
*/
|
|
1372
|
+
appId?: string;
|
|
1373
|
+
}
|
|
1374
|
+
export declare enum WebhookIdentityType {
|
|
1375
|
+
UNKNOWN = "UNKNOWN",
|
|
1376
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1377
|
+
MEMBER = "MEMBER",
|
|
1378
|
+
WIX_USER = "WIX_USER",
|
|
1379
|
+
APP = "APP"
|
|
1380
|
+
}
|
|
1210
1381
|
export interface CreateAddOnGroupRequest {
|
|
1211
1382
|
/** AddOnGroup to create. */
|
|
1212
1383
|
addOnGroup?: AddOnGroup;
|
|
@@ -1368,148 +1539,6 @@ export interface ValidationResult {
|
|
|
1368
1539
|
*/
|
|
1369
1540
|
message?: string | null;
|
|
1370
1541
|
}
|
|
1371
|
-
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
1372
|
-
createdEvent?: EntityCreatedEvent;
|
|
1373
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
1374
|
-
deletedEvent?: EntityDeletedEvent;
|
|
1375
|
-
actionEvent?: ActionEvent;
|
|
1376
|
-
/**
|
|
1377
|
-
* Unique event ID.
|
|
1378
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1379
|
-
*/
|
|
1380
|
-
id?: string;
|
|
1381
|
-
/**
|
|
1382
|
-
* Assumes actions are also always typed to an entity_type
|
|
1383
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
1384
|
-
*/
|
|
1385
|
-
entityFqdn?: string;
|
|
1386
|
-
/**
|
|
1387
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
1388
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
1389
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1390
|
-
*/
|
|
1391
|
-
slug?: string;
|
|
1392
|
-
/** ID of the entity associated with the event. */
|
|
1393
|
-
entityId?: string;
|
|
1394
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1395
|
-
eventTime?: Date | null;
|
|
1396
|
-
/**
|
|
1397
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
1398
|
-
* (for example, GDPR).
|
|
1399
|
-
*/
|
|
1400
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
1401
|
-
/** If present, indicates the action that triggered the event. */
|
|
1402
|
-
originatedFrom?: string | null;
|
|
1403
|
-
/**
|
|
1404
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
1405
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1406
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1407
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1408
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1409
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1410
|
-
*/
|
|
1411
|
-
entityEventSequence?: string | null;
|
|
1412
|
-
}
|
|
1413
|
-
/** @oneof */
|
|
1414
|
-
export interface DomainEventBodyOneOf {
|
|
1415
|
-
createdEvent?: EntityCreatedEvent;
|
|
1416
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
1417
|
-
deletedEvent?: EntityDeletedEvent;
|
|
1418
|
-
actionEvent?: ActionEvent;
|
|
1419
|
-
}
|
|
1420
|
-
export interface EntityCreatedEvent {
|
|
1421
|
-
entityAsJson?: string;
|
|
1422
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
1423
|
-
restoreInfo?: RestoreInfo;
|
|
1424
|
-
}
|
|
1425
|
-
export interface RestoreInfo {
|
|
1426
|
-
deletedDate?: Date | null;
|
|
1427
|
-
}
|
|
1428
|
-
export interface EntityUpdatedEvent {
|
|
1429
|
-
/**
|
|
1430
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1431
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1432
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1433
|
-
*/
|
|
1434
|
-
currentEntityAsJson?: string;
|
|
1435
|
-
}
|
|
1436
|
-
export interface EntityDeletedEvent {
|
|
1437
|
-
/** Entity that was deleted */
|
|
1438
|
-
deletedEntityAsJson?: string | null;
|
|
1439
|
-
}
|
|
1440
|
-
export interface ActionEvent {
|
|
1441
|
-
bodyAsJson?: string;
|
|
1442
|
-
}
|
|
1443
|
-
export interface MessageEnvelope {
|
|
1444
|
-
/**
|
|
1445
|
-
* App instance ID.
|
|
1446
|
-
* @format GUID
|
|
1447
|
-
*/
|
|
1448
|
-
instanceId?: string | null;
|
|
1449
|
-
/**
|
|
1450
|
-
* Event type.
|
|
1451
|
-
* @maxLength 150
|
|
1452
|
-
*/
|
|
1453
|
-
eventType?: string;
|
|
1454
|
-
/** The identification type and identity data. */
|
|
1455
|
-
identity?: IdentificationData;
|
|
1456
|
-
/** Stringify payload. */
|
|
1457
|
-
data?: string;
|
|
1458
|
-
}
|
|
1459
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1460
|
-
/**
|
|
1461
|
-
* ID of a site visitor that has not logged in to the site.
|
|
1462
|
-
* @format GUID
|
|
1463
|
-
*/
|
|
1464
|
-
anonymousVisitorId?: string;
|
|
1465
|
-
/**
|
|
1466
|
-
* ID of a site visitor that has logged in to the site.
|
|
1467
|
-
* @format GUID
|
|
1468
|
-
*/
|
|
1469
|
-
memberId?: string;
|
|
1470
|
-
/**
|
|
1471
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
1472
|
-
* @format GUID
|
|
1473
|
-
*/
|
|
1474
|
-
wixUserId?: string;
|
|
1475
|
-
/**
|
|
1476
|
-
* ID of an app.
|
|
1477
|
-
* @format GUID
|
|
1478
|
-
*/
|
|
1479
|
-
appId?: string;
|
|
1480
|
-
/** @readonly */
|
|
1481
|
-
identityType?: WebhookIdentityType;
|
|
1482
|
-
}
|
|
1483
|
-
/** @oneof */
|
|
1484
|
-
export interface IdentificationDataIdOneOf {
|
|
1485
|
-
/**
|
|
1486
|
-
* ID of a site visitor that has not logged in to the site.
|
|
1487
|
-
* @format GUID
|
|
1488
|
-
*/
|
|
1489
|
-
anonymousVisitorId?: string;
|
|
1490
|
-
/**
|
|
1491
|
-
* ID of a site visitor that has logged in to the site.
|
|
1492
|
-
* @format GUID
|
|
1493
|
-
*/
|
|
1494
|
-
memberId?: string;
|
|
1495
|
-
/**
|
|
1496
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
1497
|
-
* @format GUID
|
|
1498
|
-
*/
|
|
1499
|
-
wixUserId?: string;
|
|
1500
|
-
/**
|
|
1501
|
-
* ID of an app.
|
|
1502
|
-
* @format GUID
|
|
1503
|
-
*/
|
|
1504
|
-
appId?: string;
|
|
1505
|
-
}
|
|
1506
|
-
export declare enum WebhookIdentityType {
|
|
1507
|
-
UNKNOWN = "UNKNOWN",
|
|
1508
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1509
|
-
MEMBER = "MEMBER",
|
|
1510
|
-
WIX_USER = "WIX_USER",
|
|
1511
|
-
APP = "APP"
|
|
1512
|
-
}
|
|
1513
1542
|
export interface CreateServiceRequest {
|
|
1514
1543
|
/** Service to create. */
|
|
1515
1544
|
service: Service;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-services-v2-service-services.types.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service-services.types.ts"],"names":[],"mappings":"AA2IA,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,iCAAiC;IACjC,0CAA2B,CAAA;IAC3B,qBAAqB;IACrB,8BAAe,CAAA;IACf,sBAAsB;IACtB,gCAAiB,CAAA;AACnB,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AA+ID,MAAM,CAAN,IAAY,QAWX;AAXD,WAAY,QAAQ;IAClB,yBAAyB;IACzB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAAA;IACf,wEAAwE;IACxE,6BAAiB,CAAA;IACjB,uFAAuF;IACvF,6BAAiB,CAAA;IACjB,8CAA8C;IAC9C,6BAAiB,CAAA;AACnB,CAAC,EAXW,QAAQ,KAAR,QAAQ,QAWnB;AA6ID,MAAM,CAAN,IAAY,4BAiBX;AAjBD,WAAY,4BAA4B;IACtC,+EAA+C,CAAA;IAC/C;;;OAGG;IACH,iDAAiB,CAAA;IACjB;;;OAGG;IACH,qDAAqB,CAAA;IACrB;;;OAGG;IACH,qDAAqB,CAAA;AACvB,CAAC,EAjBW,4BAA4B,KAA5B,4BAA4B,QAiBvC;
|
|
1
|
+
{"version":3,"file":"bookings-services-v2-service-services.types.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service-services.types.ts"],"names":[],"mappings":"AA2IA,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,iCAAiC;IACjC,0CAA2B,CAAA;IAC3B,qBAAqB;IACrB,8BAAe,CAAA;IACf,sBAAsB;IACtB,gCAAiB,CAAA;AACnB,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AA+ID,MAAM,CAAN,IAAY,QAWX;AAXD,WAAY,QAAQ;IAClB,yBAAyB;IACzB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAAA;IACf,wEAAwE;IACxE,6BAAiB,CAAA;IACjB,uFAAuF;IACvF,6BAAiB,CAAA;IACjB,8CAA8C;IAC9C,6BAAiB,CAAA;AACnB,CAAC,EAXW,QAAQ,K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AA;IACvB,2BAA2B;IAC3B,kCAAmB,CAAA;IACnB,6BAA6B;IAC7B,sCAAuB,CAAA;AACzB,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAiBD,MAAM,CAAN,IAAY,KAIX;AAJD,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;AACrB,CAAC,EAJW,KAAK,KAAL,KAAK,QAIhB;AAUD,MAAM,CAAN,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,qEAAqE;IACrE,iDAAqC,CAAA;AACvC,CAAC,EAPW,QAAQ,KAAR,QAAQ,QAOnB;AAsLD,gGAAgG;AAChG,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,oCAAmB,CAAA;AACrB,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAiCD,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B"}
|
|
@@ -1162,12 +1162,181 @@ export interface AddOnDetails {
|
|
|
1162
1162
|
*/
|
|
1163
1163
|
durationInMinutes?: number | null;
|
|
1164
1164
|
}
|
|
1165
|
+
/**
|
|
1166
|
+
* Message for reindexing search data to a given search schema. Support both upsert and delete flows as well as
|
|
1167
|
+
* performs context manipulation with adding tenant, provided in message to callscope.
|
|
1168
|
+
*/
|
|
1169
|
+
export interface ReindexMessage extends ReindexMessageActionOneOf {
|
|
1170
|
+
upsert?: Upsert;
|
|
1171
|
+
delete?: Delete;
|
|
1172
|
+
entityFqdn?: string;
|
|
1173
|
+
tenantId?: string;
|
|
1174
|
+
eventTime?: Date | null;
|
|
1175
|
+
entityEventSequence?: string | null;
|
|
1176
|
+
schema?: Schema;
|
|
1177
|
+
}
|
|
1178
|
+
/** @oneof */
|
|
1179
|
+
export interface ReindexMessageActionOneOf {
|
|
1180
|
+
upsert?: Upsert;
|
|
1181
|
+
delete?: Delete;
|
|
1182
|
+
}
|
|
1183
|
+
export interface Upsert {
|
|
1184
|
+
entityId?: string;
|
|
1185
|
+
entityAsJson?: string;
|
|
1186
|
+
}
|
|
1187
|
+
export interface Delete {
|
|
1188
|
+
entityId?: string;
|
|
1189
|
+
}
|
|
1190
|
+
export interface Schema {
|
|
1191
|
+
label?: string;
|
|
1192
|
+
clusterName?: string;
|
|
1193
|
+
}
|
|
1165
1194
|
export interface SetCustomSlugEvent {
|
|
1166
1195
|
/** The main slug for the service after the update */
|
|
1167
1196
|
mainSlug?: Slug;
|
|
1168
1197
|
}
|
|
1169
1198
|
export interface ServicesUrlsChanged {
|
|
1170
1199
|
}
|
|
1200
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
1201
|
+
createdEvent?: EntityCreatedEvent;
|
|
1202
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1203
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1204
|
+
actionEvent?: ActionEvent;
|
|
1205
|
+
/**
|
|
1206
|
+
* Unique event ID.
|
|
1207
|
+
* Allows clients to ignore duplicate webhooks.
|
|
1208
|
+
*/
|
|
1209
|
+
_id?: string;
|
|
1210
|
+
/**
|
|
1211
|
+
* Assumes actions are also always typed to an entity_type
|
|
1212
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
1213
|
+
*/
|
|
1214
|
+
entityFqdn?: string;
|
|
1215
|
+
/**
|
|
1216
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
1217
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
1218
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
1219
|
+
*/
|
|
1220
|
+
slug?: string;
|
|
1221
|
+
/** ID of the entity associated with the event. */
|
|
1222
|
+
entityId?: string;
|
|
1223
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1224
|
+
eventTime?: Date | null;
|
|
1225
|
+
/**
|
|
1226
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
1227
|
+
* (for example, GDPR).
|
|
1228
|
+
*/
|
|
1229
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
1230
|
+
/** If present, indicates the action that triggered the event. */
|
|
1231
|
+
originatedFrom?: string | null;
|
|
1232
|
+
/**
|
|
1233
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
1234
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1235
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1236
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1237
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1238
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1239
|
+
*/
|
|
1240
|
+
entityEventSequence?: string | null;
|
|
1241
|
+
}
|
|
1242
|
+
/** @oneof */
|
|
1243
|
+
export interface DomainEventBodyOneOf {
|
|
1244
|
+
createdEvent?: EntityCreatedEvent;
|
|
1245
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1246
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1247
|
+
actionEvent?: ActionEvent;
|
|
1248
|
+
}
|
|
1249
|
+
export interface EntityCreatedEvent {
|
|
1250
|
+
entity?: string;
|
|
1251
|
+
}
|
|
1252
|
+
export interface RestoreInfo {
|
|
1253
|
+
deletedDate?: Date | null;
|
|
1254
|
+
}
|
|
1255
|
+
export interface EntityUpdatedEvent {
|
|
1256
|
+
/**
|
|
1257
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1258
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1259
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1260
|
+
*/
|
|
1261
|
+
currentEntity?: string;
|
|
1262
|
+
}
|
|
1263
|
+
export interface EntityDeletedEvent {
|
|
1264
|
+
/** Entity that was deleted */
|
|
1265
|
+
deletedEntity?: string | null;
|
|
1266
|
+
}
|
|
1267
|
+
export interface ActionEvent {
|
|
1268
|
+
body?: string;
|
|
1269
|
+
}
|
|
1270
|
+
export interface MessageEnvelope {
|
|
1271
|
+
/**
|
|
1272
|
+
* App instance ID.
|
|
1273
|
+
* @format GUID
|
|
1274
|
+
*/
|
|
1275
|
+
instanceId?: string | null;
|
|
1276
|
+
/**
|
|
1277
|
+
* Event type.
|
|
1278
|
+
* @maxLength 150
|
|
1279
|
+
*/
|
|
1280
|
+
eventType?: string;
|
|
1281
|
+
/** The identification type and identity data. */
|
|
1282
|
+
identity?: IdentificationData;
|
|
1283
|
+
/** Stringify payload. */
|
|
1284
|
+
data?: string;
|
|
1285
|
+
}
|
|
1286
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1287
|
+
/**
|
|
1288
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1289
|
+
* @format GUID
|
|
1290
|
+
*/
|
|
1291
|
+
anonymousVisitorId?: string;
|
|
1292
|
+
/**
|
|
1293
|
+
* ID of a site visitor that has logged in to the site.
|
|
1294
|
+
* @format GUID
|
|
1295
|
+
*/
|
|
1296
|
+
memberId?: string;
|
|
1297
|
+
/**
|
|
1298
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1299
|
+
* @format GUID
|
|
1300
|
+
*/
|
|
1301
|
+
wixUserId?: string;
|
|
1302
|
+
/**
|
|
1303
|
+
* ID of an app.
|
|
1304
|
+
* @format GUID
|
|
1305
|
+
*/
|
|
1306
|
+
appId?: string;
|
|
1307
|
+
/** @readonly */
|
|
1308
|
+
identityType?: WebhookIdentityType;
|
|
1309
|
+
}
|
|
1310
|
+
/** @oneof */
|
|
1311
|
+
export interface IdentificationDataIdOneOf {
|
|
1312
|
+
/**
|
|
1313
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1314
|
+
* @format GUID
|
|
1315
|
+
*/
|
|
1316
|
+
anonymousVisitorId?: string;
|
|
1317
|
+
/**
|
|
1318
|
+
* ID of a site visitor that has logged in to the site.
|
|
1319
|
+
* @format GUID
|
|
1320
|
+
*/
|
|
1321
|
+
memberId?: string;
|
|
1322
|
+
/**
|
|
1323
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1324
|
+
* @format GUID
|
|
1325
|
+
*/
|
|
1326
|
+
wixUserId?: string;
|
|
1327
|
+
/**
|
|
1328
|
+
* ID of an app.
|
|
1329
|
+
* @format GUID
|
|
1330
|
+
*/
|
|
1331
|
+
appId?: string;
|
|
1332
|
+
}
|
|
1333
|
+
export declare enum WebhookIdentityType {
|
|
1334
|
+
UNKNOWN = "UNKNOWN",
|
|
1335
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1336
|
+
MEMBER = "MEMBER",
|
|
1337
|
+
WIX_USER = "WIX_USER",
|
|
1338
|
+
APP = "APP"
|
|
1339
|
+
}
|
|
1171
1340
|
export interface CreateAddOnGroupRequest {
|
|
1172
1341
|
/** AddOnGroup to create. */
|
|
1173
1342
|
addOnGroup?: AddOnGroup;
|
|
@@ -1329,146 +1498,6 @@ export interface ValidationResult {
|
|
|
1329
1498
|
*/
|
|
1330
1499
|
message?: string | null;
|
|
1331
1500
|
}
|
|
1332
|
-
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
1333
|
-
createdEvent?: EntityCreatedEvent;
|
|
1334
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
1335
|
-
deletedEvent?: EntityDeletedEvent;
|
|
1336
|
-
actionEvent?: ActionEvent;
|
|
1337
|
-
/**
|
|
1338
|
-
* Unique event ID.
|
|
1339
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1340
|
-
*/
|
|
1341
|
-
_id?: string;
|
|
1342
|
-
/**
|
|
1343
|
-
* Assumes actions are also always typed to an entity_type
|
|
1344
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
1345
|
-
*/
|
|
1346
|
-
entityFqdn?: string;
|
|
1347
|
-
/**
|
|
1348
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
1349
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
1350
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1351
|
-
*/
|
|
1352
|
-
slug?: string;
|
|
1353
|
-
/** ID of the entity associated with the event. */
|
|
1354
|
-
entityId?: string;
|
|
1355
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1356
|
-
eventTime?: Date | null;
|
|
1357
|
-
/**
|
|
1358
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
1359
|
-
* (for example, GDPR).
|
|
1360
|
-
*/
|
|
1361
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
1362
|
-
/** If present, indicates the action that triggered the event. */
|
|
1363
|
-
originatedFrom?: string | null;
|
|
1364
|
-
/**
|
|
1365
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
1366
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1367
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1368
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1369
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1370
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1371
|
-
*/
|
|
1372
|
-
entityEventSequence?: string | null;
|
|
1373
|
-
}
|
|
1374
|
-
/** @oneof */
|
|
1375
|
-
export interface DomainEventBodyOneOf {
|
|
1376
|
-
createdEvent?: EntityCreatedEvent;
|
|
1377
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
1378
|
-
deletedEvent?: EntityDeletedEvent;
|
|
1379
|
-
actionEvent?: ActionEvent;
|
|
1380
|
-
}
|
|
1381
|
-
export interface EntityCreatedEvent {
|
|
1382
|
-
entity?: string;
|
|
1383
|
-
}
|
|
1384
|
-
export interface RestoreInfo {
|
|
1385
|
-
deletedDate?: Date | null;
|
|
1386
|
-
}
|
|
1387
|
-
export interface EntityUpdatedEvent {
|
|
1388
|
-
/**
|
|
1389
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1390
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1391
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1392
|
-
*/
|
|
1393
|
-
currentEntity?: string;
|
|
1394
|
-
}
|
|
1395
|
-
export interface EntityDeletedEvent {
|
|
1396
|
-
/** Entity that was deleted */
|
|
1397
|
-
deletedEntity?: string | null;
|
|
1398
|
-
}
|
|
1399
|
-
export interface ActionEvent {
|
|
1400
|
-
body?: string;
|
|
1401
|
-
}
|
|
1402
|
-
export interface MessageEnvelope {
|
|
1403
|
-
/**
|
|
1404
|
-
* App instance ID.
|
|
1405
|
-
* @format GUID
|
|
1406
|
-
*/
|
|
1407
|
-
instanceId?: string | null;
|
|
1408
|
-
/**
|
|
1409
|
-
* Event type.
|
|
1410
|
-
* @maxLength 150
|
|
1411
|
-
*/
|
|
1412
|
-
eventType?: string;
|
|
1413
|
-
/** The identification type and identity data. */
|
|
1414
|
-
identity?: IdentificationData;
|
|
1415
|
-
/** Stringify payload. */
|
|
1416
|
-
data?: string;
|
|
1417
|
-
}
|
|
1418
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1419
|
-
/**
|
|
1420
|
-
* ID of a site visitor that has not logged in to the site.
|
|
1421
|
-
* @format GUID
|
|
1422
|
-
*/
|
|
1423
|
-
anonymousVisitorId?: string;
|
|
1424
|
-
/**
|
|
1425
|
-
* ID of a site visitor that has logged in to the site.
|
|
1426
|
-
* @format GUID
|
|
1427
|
-
*/
|
|
1428
|
-
memberId?: string;
|
|
1429
|
-
/**
|
|
1430
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
1431
|
-
* @format GUID
|
|
1432
|
-
*/
|
|
1433
|
-
wixUserId?: string;
|
|
1434
|
-
/**
|
|
1435
|
-
* ID of an app.
|
|
1436
|
-
* @format GUID
|
|
1437
|
-
*/
|
|
1438
|
-
appId?: string;
|
|
1439
|
-
/** @readonly */
|
|
1440
|
-
identityType?: WebhookIdentityType;
|
|
1441
|
-
}
|
|
1442
|
-
/** @oneof */
|
|
1443
|
-
export interface IdentificationDataIdOneOf {
|
|
1444
|
-
/**
|
|
1445
|
-
* ID of a site visitor that has not logged in to the site.
|
|
1446
|
-
* @format GUID
|
|
1447
|
-
*/
|
|
1448
|
-
anonymousVisitorId?: string;
|
|
1449
|
-
/**
|
|
1450
|
-
* ID of a site visitor that has logged in to the site.
|
|
1451
|
-
* @format GUID
|
|
1452
|
-
*/
|
|
1453
|
-
memberId?: string;
|
|
1454
|
-
/**
|
|
1455
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
1456
|
-
* @format GUID
|
|
1457
|
-
*/
|
|
1458
|
-
wixUserId?: string;
|
|
1459
|
-
/**
|
|
1460
|
-
* ID of an app.
|
|
1461
|
-
* @format GUID
|
|
1462
|
-
*/
|
|
1463
|
-
appId?: string;
|
|
1464
|
-
}
|
|
1465
|
-
export declare enum WebhookIdentityType {
|
|
1466
|
-
UNKNOWN = "UNKNOWN",
|
|
1467
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1468
|
-
MEMBER = "MEMBER",
|
|
1469
|
-
WIX_USER = "WIX_USER",
|
|
1470
|
-
APP = "APP"
|
|
1471
|
-
}
|
|
1472
1501
|
export interface CreateServiceRequest {
|
|
1473
1502
|
/** Service to create. */
|
|
1474
1503
|
service: Service;
|