@wix/app-management 1.0.45 → 1.0.46
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/app-management",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.46",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"service-plugins"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@wix/app-management_app-instances": "1.0.
|
|
25
|
+
"@wix/app-management_app-instances": "1.0.26",
|
|
26
26
|
"@wix/app-management_app-plans": "1.0.24",
|
|
27
|
-
"@wix/app-management_bi-events": "1.0.
|
|
27
|
+
"@wix/app-management_bi-events": "1.0.24",
|
|
28
28
|
"@wix/app-management_billing": "1.0.24",
|
|
29
29
|
"@wix/app-management_custom-charges": "1.0.21",
|
|
30
30
|
"@wix/app-management_embedded-scripts": "1.0.21"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"fqdn": ""
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
"falconPackageHash": "
|
|
55
|
+
"falconPackageHash": "6100eefd2bc54e1e714c61fe6dbcf46653a60b849aef0d3947db07f5"
|
|
56
56
|
}
|
|
@@ -933,12 +933,6 @@ declare enum PaymentCycle$1 {
|
|
|
933
933
|
interface FreeTrialInfo {
|
|
934
934
|
/**
|
|
935
935
|
* Current free trial status.
|
|
936
|
-
*
|
|
937
|
-
* Supported values:
|
|
938
|
-
*
|
|
939
|
-
* - `IN_PROGRESS`: The free trial is currently in progress.
|
|
940
|
-
* - `ENDED`: The free trial has ended.
|
|
941
|
-
* - `NOT_AVAILABLE`: No free trial was applied, as none was available.
|
|
942
936
|
* @readonly
|
|
943
937
|
*/
|
|
944
938
|
status?: FreeTrialStatus;
|
|
@@ -949,9 +943,13 @@ interface FreeTrialInfo {
|
|
|
949
943
|
endDate?: Date | null;
|
|
950
944
|
}
|
|
951
945
|
declare enum FreeTrialStatus {
|
|
946
|
+
/** Unknown trial status. */
|
|
952
947
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
948
|
+
/** The free trial is currently in progress. */
|
|
953
949
|
IN_PROGRESS = "IN_PROGRESS",
|
|
950
|
+
/** The free trial has ended. */
|
|
954
951
|
ENDED = "ENDED",
|
|
952
|
+
/** No free trial was applied, as none was available. */
|
|
955
953
|
NOT_AVAILABLE = "NOT_AVAILABLE"
|
|
956
954
|
}
|
|
957
955
|
interface AvailablePlan {
|
|
@@ -1212,16 +1210,16 @@ interface AppInstanceRemovedEnvelope {
|
|
|
1212
1210
|
data: AppRemoved;
|
|
1213
1211
|
metadata: BaseEventMetadata;
|
|
1214
1212
|
}
|
|
1215
|
-
interface
|
|
1216
|
-
data:
|
|
1213
|
+
interface AppInstancePaidPlanAutoRenewalCancelledEnvelope {
|
|
1214
|
+
data: PaidPlanAutoRenewalCancelled;
|
|
1217
1215
|
metadata: BaseEventMetadata;
|
|
1218
1216
|
}
|
|
1219
1217
|
interface AppInstancePaidPlanChangedEnvelope {
|
|
1220
1218
|
data: PaidPlanChanged;
|
|
1221
1219
|
metadata: BaseEventMetadata;
|
|
1222
1220
|
}
|
|
1223
|
-
interface
|
|
1224
|
-
data:
|
|
1221
|
+
interface AppInstancePaidPlanPurchasedEnvelope {
|
|
1222
|
+
data: PaidPlanPurchased;
|
|
1225
1223
|
metadata: BaseEventMetadata;
|
|
1226
1224
|
}
|
|
1227
1225
|
|
|
@@ -1240,9 +1238,9 @@ interface GetAppInstanceSignature {
|
|
|
1240
1238
|
}
|
|
1241
1239
|
declare const onAppInstanceInstalled$1: EventDefinition<AppInstanceInstalledEnvelope, "AppInstalled">;
|
|
1242
1240
|
declare const onAppInstanceRemoved$1: EventDefinition<AppInstanceRemovedEnvelope, "AppRemoved">;
|
|
1243
|
-
declare const onAppInstancePaidPlanPurchased$1: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
1244
|
-
declare const onAppInstancePaidPlanChanged$1: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
1245
1241
|
declare const onAppInstancePaidPlanAutoRenewalCancelled$1: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
1242
|
+
declare const onAppInstancePaidPlanChanged$1: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
1243
|
+
declare const onAppInstancePaidPlanPurchased$1: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
1246
1244
|
|
|
1247
1245
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1248
1246
|
|
|
@@ -1260,11 +1258,13 @@ type _publicOnAppInstanceRemovedType = typeof onAppInstanceRemoved$1;
|
|
|
1260
1258
|
*/
|
|
1261
1259
|
declare const onAppInstanceRemoved: ReturnType<typeof createEventModule<_publicOnAppInstanceRemovedType>>;
|
|
1262
1260
|
|
|
1263
|
-
type
|
|
1261
|
+
type _publicOnAppInstancePaidPlanAutoRenewalCancelledType = typeof onAppInstancePaidPlanAutoRenewalCancelled$1;
|
|
1264
1262
|
/**
|
|
1265
|
-
* Triggered when a site owner
|
|
1263
|
+
* Triggered when a site owner cancels a paid plan for your app. The
|
|
1264
|
+
* site owner can continue to use your app until the end of the current billing
|
|
1265
|
+
* cycle.
|
|
1266
1266
|
*/
|
|
1267
|
-
declare const
|
|
1267
|
+
declare const onAppInstancePaidPlanAutoRenewalCancelled: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanAutoRenewalCancelledType>>;
|
|
1268
1268
|
|
|
1269
1269
|
type _publicOnAppInstancePaidPlanChangedType = typeof onAppInstancePaidPlanChanged$1;
|
|
1270
1270
|
/**
|
|
@@ -1272,13 +1272,11 @@ type _publicOnAppInstancePaidPlanChangedType = typeof onAppInstancePaidPlanChang
|
|
|
1272
1272
|
*/
|
|
1273
1273
|
declare const onAppInstancePaidPlanChanged: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanChangedType>>;
|
|
1274
1274
|
|
|
1275
|
-
type
|
|
1275
|
+
type _publicOnAppInstancePaidPlanPurchasedType = typeof onAppInstancePaidPlanPurchased$1;
|
|
1276
1276
|
/**
|
|
1277
|
-
* Triggered when a site owner
|
|
1278
|
-
* site owner can continue to use your app until the end of the current billing
|
|
1279
|
-
* cycle.
|
|
1277
|
+
* Triggered when a site owner purchases a paid plan for your app.
|
|
1280
1278
|
*/
|
|
1281
|
-
declare const
|
|
1279
|
+
declare const onAppInstancePaidPlanPurchased: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanPurchasedType>>;
|
|
1282
1280
|
|
|
1283
1281
|
type context$3_AppInstalled = AppInstalled;
|
|
1284
1282
|
type context$3_AppInstance = AppInstance;
|
|
@@ -1326,20 +1324,7 @@ declare namespace context$3 {
|
|
|
1326
1324
|
interface SendBIEventResponse {
|
|
1327
1325
|
}
|
|
1328
1326
|
interface SendBIEventRequest {
|
|
1329
|
-
/**
|
|
1330
|
-
* Name of the event that's triggered in your app.
|
|
1331
|
-
*
|
|
1332
|
-
* + `"APP_DASHBOARD_LOADED"`: A site onwer or contributor loads your app's dashboard.
|
|
1333
|
-
* + `"APP_FINISHED_CONFIGURATION"`: The site owner completes all required configurations for your app in your app's dashboard.
|
|
1334
|
-
* + `"APP_UPGRADED"`: The site owner upgrades your app's paid plan. An upgrade means that they have finished the checkout flow on the app's side but not necessarily on Wix's side.
|
|
1335
|
-
* + `"PRIMARY_ACTION_PERFORMED"`: A site owner, contributor, or visitor triggers your app's primary action. For example, a site visitor writes a product review using your product review app.
|
|
1336
|
-
* + `"CHARGE"`: You charge money from the site owner. For example, when the site owner purchases or renews a subscription for your app. Make sure to also send `eventData` and a key of `sum`.
|
|
1337
|
-
* + `"FUNDS_RETURNED"`: Trigger this event when you send money back to a site owner (for example, refunds or chargebacks). Make sure to also send the charge amount inside `eventData`. For example, `{"eventData": {"sum": "5.99"}}`.
|
|
1338
|
-
* + `"CUSTOM"`: Any event that's not listed here. Make sure to also send `customEventName`.
|
|
1339
|
-
* + `"APP_DEPLOYED"`: Your app’s internal code implementation is changed and might affect user flows or cause a regression.
|
|
1340
|
-
* + `"APP_FINISH_BUSINESS_SETUP"`: __Deprecation Notice:__ This enum value will be removed on March 30, 2023. Use `"APP_SETUP_FINISHED"` instead.
|
|
1341
|
-
* + `"APP_SETUP_FINISHED"`: The site owner completes your app's required business setup.
|
|
1342
|
-
*/
|
|
1327
|
+
/** Name of the event that's triggered in your app. */
|
|
1343
1328
|
eventName?: EventName;
|
|
1344
1329
|
/**
|
|
1345
1330
|
* Name of your app's custom event that was triggered. Required when `{"eventName": "CUSTOM"}`.
|
|
@@ -1362,33 +1347,31 @@ interface SendBIEventRequest {
|
|
|
1362
1347
|
eventData?: Record<string, string>;
|
|
1363
1348
|
}
|
|
1364
1349
|
declare enum EventName {
|
|
1350
|
+
/** Unknown event name. */
|
|
1365
1351
|
UNKNOWN = "UNKNOWN",
|
|
1352
|
+
/** A site owner or contributor loads your app's dashboard. */
|
|
1366
1353
|
APP_DASHBOARD_LOADED = "APP_DASHBOARD_LOADED",
|
|
1354
|
+
/** The site owner completes all required configurations for your app in your app's dashboard. */
|
|
1367
1355
|
APP_FINISHED_CONFIGURATION = "APP_FINISHED_CONFIGURATION",
|
|
1356
|
+
/** The site owner upgrades your app's paid plan. An upgrade means that they have finished the checkout flow on the app's side but not necessarily on Wix's side. */
|
|
1368
1357
|
APP_UPGRADED = "APP_UPGRADED",
|
|
1358
|
+
/** A site owner, contributor, or visitor triggers your app's primary action. For example, a site visitor writes a product review using your product review app. */
|
|
1369
1359
|
PRIMARY_ACTION_PERFORMED = "PRIMARY_ACTION_PERFORMED",
|
|
1360
|
+
/** Any event that's not listed here. Make sure to also send `customEventName`. */
|
|
1370
1361
|
CUSTOM = "CUSTOM",
|
|
1362
|
+
/** You charge money from the site owner. For example, when the site owner purchases or renews a subscription for your app. Make sure to also send `eventData` and a key of `sum`. */
|
|
1371
1363
|
CHARGE = "CHARGE",
|
|
1364
|
+
/** Trigger this event when you send money back to a site owner (for example, refunds or chargebacks). Make sure to also send the charge amount inside `eventData`. For example, `{"eventData": {"sum": "5.99"}}`. */
|
|
1372
1365
|
FUNDS_RETURNED = "FUNDS_RETURNED",
|
|
1366
|
+
/** __Deprecation Notice:__ This enum value will be removed on March 30, 2023. Use `"APP_SETUP_FINISHED"` instead. */
|
|
1373
1367
|
APP_FINISH_BUSINESS_SETUP = "APP_FINISH_BUSINESS_SETUP",
|
|
1368
|
+
/** Your app’s internal code implementation is changed and might affect user flows or cause a regression. */
|
|
1374
1369
|
APP_DEPLOYED = "APP_DEPLOYED",
|
|
1370
|
+
/** The site owner completes your app's required business setup. */
|
|
1375
1371
|
APP_SETUP_FINISHED = "APP_SETUP_FINISHED"
|
|
1376
1372
|
}
|
|
1377
1373
|
interface SendBiEventOptions {
|
|
1378
|
-
/**
|
|
1379
|
-
* Name of the event that's triggered in your app.
|
|
1380
|
-
*
|
|
1381
|
-
* + `"APP_DASHBOARD_LOADED"`: A site onwer or contributor loads your app's dashboard.
|
|
1382
|
-
* + `"APP_FINISHED_CONFIGURATION"`: The site owner completes all required configurations for your app in your app's dashboard.
|
|
1383
|
-
* + `"APP_UPGRADED"`: The site owner upgrades your app's paid plan. An upgrade means that they have finished the checkout flow on the app's side but not necessarily on Wix's side.
|
|
1384
|
-
* + `"PRIMARY_ACTION_PERFORMED"`: A site owner, contributor, or visitor triggers your app's primary action. For example, a site visitor writes a product review using your product review app.
|
|
1385
|
-
* + `"CHARGE"`: You charge money from the site owner. For example, when the site owner purchases or renews a subscription for your app. Make sure to also send `eventData` and a key of `sum`.
|
|
1386
|
-
* + `"FUNDS_RETURNED"`: Trigger this event when you send money back to a site owner (for example, refunds or chargebacks). Make sure to also send the charge amount inside `eventData`. For example, `{"eventData": {"sum": "5.99"}}`.
|
|
1387
|
-
* + `"CUSTOM"`: Any event that's not listed here. Make sure to also send `customEventName`.
|
|
1388
|
-
* + `"APP_DEPLOYED"`: Your app’s internal code implementation is changed and might affect user flows or cause a regression.
|
|
1389
|
-
* + `"APP_FINISH_BUSINESS_SETUP"`: __Deprecation Notice:__ This enum value will be removed on March 30, 2023. Use `"APP_SETUP_FINISHED"` instead.
|
|
1390
|
-
* + `"APP_SETUP_FINISHED"`: The site owner completes your app's required business setup.
|
|
1391
|
-
*/
|
|
1374
|
+
/** Name of the event that's triggered in your app. */
|
|
1392
1375
|
eventName?: EventName;
|
|
1393
1376
|
/**
|
|
1394
1377
|
* Name of your app's custom event that was triggered. Required when `{"eventName": "CUSTOM"}`.
|
|
@@ -933,12 +933,6 @@ declare enum PaymentCycle$1 {
|
|
|
933
933
|
interface FreeTrialInfo {
|
|
934
934
|
/**
|
|
935
935
|
* Current free trial status.
|
|
936
|
-
*
|
|
937
|
-
* Supported values:
|
|
938
|
-
*
|
|
939
|
-
* - `IN_PROGRESS`: The free trial is currently in progress.
|
|
940
|
-
* - `ENDED`: The free trial has ended.
|
|
941
|
-
* - `NOT_AVAILABLE`: No free trial was applied, as none was available.
|
|
942
936
|
* @readonly
|
|
943
937
|
*/
|
|
944
938
|
status?: FreeTrialStatus;
|
|
@@ -949,9 +943,13 @@ interface FreeTrialInfo {
|
|
|
949
943
|
endDate?: Date | null;
|
|
950
944
|
}
|
|
951
945
|
declare enum FreeTrialStatus {
|
|
946
|
+
/** Unknown trial status. */
|
|
952
947
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
948
|
+
/** The free trial is currently in progress. */
|
|
953
949
|
IN_PROGRESS = "IN_PROGRESS",
|
|
950
|
+
/** The free trial has ended. */
|
|
954
951
|
ENDED = "ENDED",
|
|
952
|
+
/** No free trial was applied, as none was available. */
|
|
955
953
|
NOT_AVAILABLE = "NOT_AVAILABLE"
|
|
956
954
|
}
|
|
957
955
|
interface AvailablePlan {
|
|
@@ -1212,16 +1210,16 @@ interface AppInstanceRemovedEnvelope {
|
|
|
1212
1210
|
data: AppRemoved;
|
|
1213
1211
|
metadata: BaseEventMetadata;
|
|
1214
1212
|
}
|
|
1215
|
-
interface
|
|
1216
|
-
data:
|
|
1213
|
+
interface AppInstancePaidPlanAutoRenewalCancelledEnvelope {
|
|
1214
|
+
data: PaidPlanAutoRenewalCancelled;
|
|
1217
1215
|
metadata: BaseEventMetadata;
|
|
1218
1216
|
}
|
|
1219
1217
|
interface AppInstancePaidPlanChangedEnvelope {
|
|
1220
1218
|
data: PaidPlanChanged;
|
|
1221
1219
|
metadata: BaseEventMetadata;
|
|
1222
1220
|
}
|
|
1223
|
-
interface
|
|
1224
|
-
data:
|
|
1221
|
+
interface AppInstancePaidPlanPurchasedEnvelope {
|
|
1222
|
+
data: PaidPlanPurchased;
|
|
1225
1223
|
metadata: BaseEventMetadata;
|
|
1226
1224
|
}
|
|
1227
1225
|
|
|
@@ -1240,9 +1238,9 @@ interface GetAppInstanceSignature {
|
|
|
1240
1238
|
}
|
|
1241
1239
|
declare const onAppInstanceInstalled$1: EventDefinition<AppInstanceInstalledEnvelope, "AppInstalled">;
|
|
1242
1240
|
declare const onAppInstanceRemoved$1: EventDefinition<AppInstanceRemovedEnvelope, "AppRemoved">;
|
|
1243
|
-
declare const onAppInstancePaidPlanPurchased$1: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
1244
|
-
declare const onAppInstancePaidPlanChanged$1: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
1245
1241
|
declare const onAppInstancePaidPlanAutoRenewalCancelled$1: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
1242
|
+
declare const onAppInstancePaidPlanChanged$1: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
1243
|
+
declare const onAppInstancePaidPlanPurchased$1: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
1246
1244
|
|
|
1247
1245
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1248
1246
|
|
|
@@ -1260,11 +1258,13 @@ type _publicOnAppInstanceRemovedType = typeof onAppInstanceRemoved$1;
|
|
|
1260
1258
|
*/
|
|
1261
1259
|
declare const onAppInstanceRemoved: ReturnType<typeof createEventModule<_publicOnAppInstanceRemovedType>>;
|
|
1262
1260
|
|
|
1263
|
-
type
|
|
1261
|
+
type _publicOnAppInstancePaidPlanAutoRenewalCancelledType = typeof onAppInstancePaidPlanAutoRenewalCancelled$1;
|
|
1264
1262
|
/**
|
|
1265
|
-
* Triggered when a site owner
|
|
1263
|
+
* Triggered when a site owner cancels a paid plan for your app. The
|
|
1264
|
+
* site owner can continue to use your app until the end of the current billing
|
|
1265
|
+
* cycle.
|
|
1266
1266
|
*/
|
|
1267
|
-
declare const
|
|
1267
|
+
declare const onAppInstancePaidPlanAutoRenewalCancelled: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanAutoRenewalCancelledType>>;
|
|
1268
1268
|
|
|
1269
1269
|
type _publicOnAppInstancePaidPlanChangedType = typeof onAppInstancePaidPlanChanged$1;
|
|
1270
1270
|
/**
|
|
@@ -1272,13 +1272,11 @@ type _publicOnAppInstancePaidPlanChangedType = typeof onAppInstancePaidPlanChang
|
|
|
1272
1272
|
*/
|
|
1273
1273
|
declare const onAppInstancePaidPlanChanged: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanChangedType>>;
|
|
1274
1274
|
|
|
1275
|
-
type
|
|
1275
|
+
type _publicOnAppInstancePaidPlanPurchasedType = typeof onAppInstancePaidPlanPurchased$1;
|
|
1276
1276
|
/**
|
|
1277
|
-
* Triggered when a site owner
|
|
1278
|
-
* site owner can continue to use your app until the end of the current billing
|
|
1279
|
-
* cycle.
|
|
1277
|
+
* Triggered when a site owner purchases a paid plan for your app.
|
|
1280
1278
|
*/
|
|
1281
|
-
declare const
|
|
1279
|
+
declare const onAppInstancePaidPlanPurchased: ReturnType<typeof createEventModule<_publicOnAppInstancePaidPlanPurchasedType>>;
|
|
1282
1280
|
|
|
1283
1281
|
type index_d$3_AppInstalled = AppInstalled;
|
|
1284
1282
|
type index_d$3_AppInstance = AppInstance;
|
|
@@ -1326,20 +1324,7 @@ declare namespace index_d$3 {
|
|
|
1326
1324
|
interface SendBIEventResponse {
|
|
1327
1325
|
}
|
|
1328
1326
|
interface SendBIEventRequest {
|
|
1329
|
-
/**
|
|
1330
|
-
* Name of the event that's triggered in your app.
|
|
1331
|
-
*
|
|
1332
|
-
* + `"APP_DASHBOARD_LOADED"`: A site onwer or contributor loads your app's dashboard.
|
|
1333
|
-
* + `"APP_FINISHED_CONFIGURATION"`: The site owner completes all required configurations for your app in your app's dashboard.
|
|
1334
|
-
* + `"APP_UPGRADED"`: The site owner upgrades your app's paid plan. An upgrade means that they have finished the checkout flow on the app's side but not necessarily on Wix's side.
|
|
1335
|
-
* + `"PRIMARY_ACTION_PERFORMED"`: A site owner, contributor, or visitor triggers your app's primary action. For example, a site visitor writes a product review using your product review app.
|
|
1336
|
-
* + `"CHARGE"`: You charge money from the site owner. For example, when the site owner purchases or renews a subscription for your app. Make sure to also send `eventData` and a key of `sum`.
|
|
1337
|
-
* + `"FUNDS_RETURNED"`: Trigger this event when you send money back to a site owner (for example, refunds or chargebacks). Make sure to also send the charge amount inside `eventData`. For example, `{"eventData": {"sum": "5.99"}}`.
|
|
1338
|
-
* + `"CUSTOM"`: Any event that's not listed here. Make sure to also send `customEventName`.
|
|
1339
|
-
* + `"APP_DEPLOYED"`: Your app’s internal code implementation is changed and might affect user flows or cause a regression.
|
|
1340
|
-
* + `"APP_FINISH_BUSINESS_SETUP"`: __Deprecation Notice:__ This enum value will be removed on March 30, 2023. Use `"APP_SETUP_FINISHED"` instead.
|
|
1341
|
-
* + `"APP_SETUP_FINISHED"`: The site owner completes your app's required business setup.
|
|
1342
|
-
*/
|
|
1327
|
+
/** Name of the event that's triggered in your app. */
|
|
1343
1328
|
eventName?: EventName;
|
|
1344
1329
|
/**
|
|
1345
1330
|
* Name of your app's custom event that was triggered. Required when `{"eventName": "CUSTOM"}`.
|
|
@@ -1362,33 +1347,31 @@ interface SendBIEventRequest {
|
|
|
1362
1347
|
eventData?: Record<string, string>;
|
|
1363
1348
|
}
|
|
1364
1349
|
declare enum EventName {
|
|
1350
|
+
/** Unknown event name. */
|
|
1365
1351
|
UNKNOWN = "UNKNOWN",
|
|
1352
|
+
/** A site owner or contributor loads your app's dashboard. */
|
|
1366
1353
|
APP_DASHBOARD_LOADED = "APP_DASHBOARD_LOADED",
|
|
1354
|
+
/** The site owner completes all required configurations for your app in your app's dashboard. */
|
|
1367
1355
|
APP_FINISHED_CONFIGURATION = "APP_FINISHED_CONFIGURATION",
|
|
1356
|
+
/** The site owner upgrades your app's paid plan. An upgrade means that they have finished the checkout flow on the app's side but not necessarily on Wix's side. */
|
|
1368
1357
|
APP_UPGRADED = "APP_UPGRADED",
|
|
1358
|
+
/** A site owner, contributor, or visitor triggers your app's primary action. For example, a site visitor writes a product review using your product review app. */
|
|
1369
1359
|
PRIMARY_ACTION_PERFORMED = "PRIMARY_ACTION_PERFORMED",
|
|
1360
|
+
/** Any event that's not listed here. Make sure to also send `customEventName`. */
|
|
1370
1361
|
CUSTOM = "CUSTOM",
|
|
1362
|
+
/** You charge money from the site owner. For example, when the site owner purchases or renews a subscription for your app. Make sure to also send `eventData` and a key of `sum`. */
|
|
1371
1363
|
CHARGE = "CHARGE",
|
|
1364
|
+
/** Trigger this event when you send money back to a site owner (for example, refunds or chargebacks). Make sure to also send the charge amount inside `eventData`. For example, `{"eventData": {"sum": "5.99"}}`. */
|
|
1372
1365
|
FUNDS_RETURNED = "FUNDS_RETURNED",
|
|
1366
|
+
/** __Deprecation Notice:__ This enum value will be removed on March 30, 2023. Use `"APP_SETUP_FINISHED"` instead. */
|
|
1373
1367
|
APP_FINISH_BUSINESS_SETUP = "APP_FINISH_BUSINESS_SETUP",
|
|
1368
|
+
/** Your app’s internal code implementation is changed and might affect user flows or cause a regression. */
|
|
1374
1369
|
APP_DEPLOYED = "APP_DEPLOYED",
|
|
1370
|
+
/** The site owner completes your app's required business setup. */
|
|
1375
1371
|
APP_SETUP_FINISHED = "APP_SETUP_FINISHED"
|
|
1376
1372
|
}
|
|
1377
1373
|
interface SendBiEventOptions {
|
|
1378
|
-
/**
|
|
1379
|
-
* Name of the event that's triggered in your app.
|
|
1380
|
-
*
|
|
1381
|
-
* + `"APP_DASHBOARD_LOADED"`: A site onwer or contributor loads your app's dashboard.
|
|
1382
|
-
* + `"APP_FINISHED_CONFIGURATION"`: The site owner completes all required configurations for your app in your app's dashboard.
|
|
1383
|
-
* + `"APP_UPGRADED"`: The site owner upgrades your app's paid plan. An upgrade means that they have finished the checkout flow on the app's side but not necessarily on Wix's side.
|
|
1384
|
-
* + `"PRIMARY_ACTION_PERFORMED"`: A site owner, contributor, or visitor triggers your app's primary action. For example, a site visitor writes a product review using your product review app.
|
|
1385
|
-
* + `"CHARGE"`: You charge money from the site owner. For example, when the site owner purchases or renews a subscription for your app. Make sure to also send `eventData` and a key of `sum`.
|
|
1386
|
-
* + `"FUNDS_RETURNED"`: Trigger this event when you send money back to a site owner (for example, refunds or chargebacks). Make sure to also send the charge amount inside `eventData`. For example, `{"eventData": {"sum": "5.99"}}`.
|
|
1387
|
-
* + `"CUSTOM"`: Any event that's not listed here. Make sure to also send `customEventName`.
|
|
1388
|
-
* + `"APP_DEPLOYED"`: Your app’s internal code implementation is changed and might affect user flows or cause a regression.
|
|
1389
|
-
* + `"APP_FINISH_BUSINESS_SETUP"`: __Deprecation Notice:__ This enum value will be removed on March 30, 2023. Use `"APP_SETUP_FINISHED"` instead.
|
|
1390
|
-
* + `"APP_SETUP_FINISHED"`: The site owner completes your app's required business setup.
|
|
1391
|
-
*/
|
|
1374
|
+
/** Name of the event that's triggered in your app. */
|
|
1392
1375
|
eventName?: EventName;
|
|
1393
1376
|
/**
|
|
1394
1377
|
* Name of your app's custom event that was triggered. Required when `{"eventName": "CUSTOM"}`.
|
|
@@ -694,12 +694,6 @@ declare enum PaymentCycle$3 {
|
|
|
694
694
|
interface FreeTrialInfo$1 {
|
|
695
695
|
/**
|
|
696
696
|
* Current free trial status.
|
|
697
|
-
*
|
|
698
|
-
* Supported values:
|
|
699
|
-
*
|
|
700
|
-
* - `IN_PROGRESS`: The free trial is currently in progress.
|
|
701
|
-
* - `ENDED`: The free trial has ended.
|
|
702
|
-
* - `NOT_AVAILABLE`: No free trial was applied, as none was available.
|
|
703
697
|
* @readonly
|
|
704
698
|
*/
|
|
705
699
|
status?: FreeTrialStatus$1;
|
|
@@ -710,9 +704,13 @@ interface FreeTrialInfo$1 {
|
|
|
710
704
|
endDate?: Date | null;
|
|
711
705
|
}
|
|
712
706
|
declare enum FreeTrialStatus$1 {
|
|
707
|
+
/** Unknown trial status. */
|
|
713
708
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
709
|
+
/** The free trial is currently in progress. */
|
|
714
710
|
IN_PROGRESS = "IN_PROGRESS",
|
|
711
|
+
/** The free trial has ended. */
|
|
715
712
|
ENDED = "ENDED",
|
|
713
|
+
/** No free trial was applied, as none was available. */
|
|
716
714
|
NOT_AVAILABLE = "NOT_AVAILABLE"
|
|
717
715
|
}
|
|
718
716
|
interface AvailablePlan$1 {
|
|
@@ -969,12 +967,6 @@ declare enum PaymentCycle$2 {
|
|
|
969
967
|
interface FreeTrialInfo {
|
|
970
968
|
/**
|
|
971
969
|
* Current free trial status.
|
|
972
|
-
*
|
|
973
|
-
* Supported values:
|
|
974
|
-
*
|
|
975
|
-
* - `IN_PROGRESS`: The free trial is currently in progress.
|
|
976
|
-
* - `ENDED`: The free trial has ended.
|
|
977
|
-
* - `NOT_AVAILABLE`: No free trial was applied, as none was available.
|
|
978
970
|
* @readonly
|
|
979
971
|
*/
|
|
980
972
|
status?: FreeTrialStatus;
|
|
@@ -985,9 +977,13 @@ interface FreeTrialInfo {
|
|
|
985
977
|
endDate?: Date | null;
|
|
986
978
|
}
|
|
987
979
|
declare enum FreeTrialStatus {
|
|
980
|
+
/** Unknown trial status. */
|
|
988
981
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
982
|
+
/** The free trial is currently in progress. */
|
|
989
983
|
IN_PROGRESS = "IN_PROGRESS",
|
|
984
|
+
/** The free trial has ended. */
|
|
990
985
|
ENDED = "ENDED",
|
|
986
|
+
/** No free trial was applied, as none was available. */
|
|
991
987
|
NOT_AVAILABLE = "NOT_AVAILABLE"
|
|
992
988
|
}
|
|
993
989
|
interface AvailablePlan {
|
|
@@ -1155,20 +1151,7 @@ declare namespace meta$3 {
|
|
|
1155
1151
|
interface SendBIEventResponse$1 {
|
|
1156
1152
|
}
|
|
1157
1153
|
interface SendBIEventRequest$1 {
|
|
1158
|
-
/**
|
|
1159
|
-
* Name of the event that's triggered in your app.
|
|
1160
|
-
*
|
|
1161
|
-
* + `"APP_DASHBOARD_LOADED"`: A site onwer or contributor loads your app's dashboard.
|
|
1162
|
-
* + `"APP_FINISHED_CONFIGURATION"`: The site owner completes all required configurations for your app in your app's dashboard.
|
|
1163
|
-
* + `"APP_UPGRADED"`: The site owner upgrades your app's paid plan. An upgrade means that they have finished the checkout flow on the app's side but not necessarily on Wix's side.
|
|
1164
|
-
* + `"PRIMARY_ACTION_PERFORMED"`: A site owner, contributor, or visitor triggers your app's primary action. For example, a site visitor writes a product review using your product review app.
|
|
1165
|
-
* + `"CHARGE"`: You charge money from the site owner. For example, when the site owner purchases or renews a subscription for your app. Make sure to also send `eventData` and a key of `sum`.
|
|
1166
|
-
* + `"FUNDS_RETURNED"`: Trigger this event when you send money back to a site owner (for example, refunds or chargebacks). Make sure to also send the charge amount inside `eventData`. For example, `{"eventData": {"sum": "5.99"}}`.
|
|
1167
|
-
* + `"CUSTOM"`: Any event that's not listed here. Make sure to also send `customEventName`.
|
|
1168
|
-
* + `"APP_DEPLOYED"`: Your app’s internal code implementation is changed and might affect user flows or cause a regression.
|
|
1169
|
-
* + `"APP_FINISH_BUSINESS_SETUP"`: __Deprecation Notice:__ This enum value will be removed on March 30, 2023. Use `"APP_SETUP_FINISHED"` instead.
|
|
1170
|
-
* + `"APP_SETUP_FINISHED"`: The site owner completes your app's required business setup.
|
|
1171
|
-
*/
|
|
1154
|
+
/** Name of the event that's triggered in your app. */
|
|
1172
1155
|
eventName?: EventName$1;
|
|
1173
1156
|
/**
|
|
1174
1157
|
* Name of your app's custom event that was triggered. Required when `{"eventName": "CUSTOM"}`.
|
|
@@ -1191,36 +1174,34 @@ interface SendBIEventRequest$1 {
|
|
|
1191
1174
|
eventData?: Record<string, string>;
|
|
1192
1175
|
}
|
|
1193
1176
|
declare enum EventName$1 {
|
|
1177
|
+
/** Unknown event name. */
|
|
1194
1178
|
UNKNOWN = "UNKNOWN",
|
|
1179
|
+
/** A site owner or contributor loads your app's dashboard. */
|
|
1195
1180
|
APP_DASHBOARD_LOADED = "APP_DASHBOARD_LOADED",
|
|
1181
|
+
/** The site owner completes all required configurations for your app in your app's dashboard. */
|
|
1196
1182
|
APP_FINISHED_CONFIGURATION = "APP_FINISHED_CONFIGURATION",
|
|
1183
|
+
/** The site owner upgrades your app's paid plan. An upgrade means that they have finished the checkout flow on the app's side but not necessarily on Wix's side. */
|
|
1197
1184
|
APP_UPGRADED = "APP_UPGRADED",
|
|
1185
|
+
/** A site owner, contributor, or visitor triggers your app's primary action. For example, a site visitor writes a product review using your product review app. */
|
|
1198
1186
|
PRIMARY_ACTION_PERFORMED = "PRIMARY_ACTION_PERFORMED",
|
|
1187
|
+
/** Any event that's not listed here. Make sure to also send `customEventName`. */
|
|
1199
1188
|
CUSTOM = "CUSTOM",
|
|
1189
|
+
/** You charge money from the site owner. For example, when the site owner purchases or renews a subscription for your app. Make sure to also send `eventData` and a key of `sum`. */
|
|
1200
1190
|
CHARGE = "CHARGE",
|
|
1191
|
+
/** Trigger this event when you send money back to a site owner (for example, refunds or chargebacks). Make sure to also send the charge amount inside `eventData`. For example, `{"eventData": {"sum": "5.99"}}`. */
|
|
1201
1192
|
FUNDS_RETURNED = "FUNDS_RETURNED",
|
|
1193
|
+
/** __Deprecation Notice:__ This enum value will be removed on March 30, 2023. Use `"APP_SETUP_FINISHED"` instead. */
|
|
1202
1194
|
APP_FINISH_BUSINESS_SETUP = "APP_FINISH_BUSINESS_SETUP",
|
|
1195
|
+
/** Your app’s internal code implementation is changed and might affect user flows or cause a regression. */
|
|
1203
1196
|
APP_DEPLOYED = "APP_DEPLOYED",
|
|
1197
|
+
/** The site owner completes your app's required business setup. */
|
|
1204
1198
|
APP_SETUP_FINISHED = "APP_SETUP_FINISHED"
|
|
1205
1199
|
}
|
|
1206
1200
|
|
|
1207
1201
|
interface SendBIEventResponse {
|
|
1208
1202
|
}
|
|
1209
1203
|
interface SendBIEventRequest {
|
|
1210
|
-
/**
|
|
1211
|
-
* Name of the event that's triggered in your app.
|
|
1212
|
-
*
|
|
1213
|
-
* + `"APP_DASHBOARD_LOADED"`: A site onwer or contributor loads your app's dashboard.
|
|
1214
|
-
* + `"APP_FINISHED_CONFIGURATION"`: The site owner completes all required configurations for your app in your app's dashboard.
|
|
1215
|
-
* + `"APP_UPGRADED"`: The site owner upgrades your app's paid plan. An upgrade means that they have finished the checkout flow on the app's side but not necessarily on Wix's side.
|
|
1216
|
-
* + `"PRIMARY_ACTION_PERFORMED"`: A site owner, contributor, or visitor triggers your app's primary action. For example, a site visitor writes a product review using your product review app.
|
|
1217
|
-
* + `"CHARGE"`: You charge money from the site owner. For example, when the site owner purchases or renews a subscription for your app. Make sure to also send `eventData` and a key of `sum`.
|
|
1218
|
-
* + `"FUNDS_RETURNED"`: Trigger this event when you send money back to a site owner (for example, refunds or chargebacks). Make sure to also send the charge amount inside `eventData`. For example, `{"eventData": {"sum": "5.99"}}`.
|
|
1219
|
-
* + `"CUSTOM"`: Any event that's not listed here. Make sure to also send `customEventName`.
|
|
1220
|
-
* + `"APP_DEPLOYED"`: Your app’s internal code implementation is changed and might affect user flows or cause a regression.
|
|
1221
|
-
* + `"APP_FINISH_BUSINESS_SETUP"`: __Deprecation Notice:__ This enum value will be removed on March 30, 2023. Use `"APP_SETUP_FINISHED"` instead.
|
|
1222
|
-
* + `"APP_SETUP_FINISHED"`: The site owner completes your app's required business setup.
|
|
1223
|
-
*/
|
|
1204
|
+
/** Name of the event that's triggered in your app. */
|
|
1224
1205
|
eventName?: EventName;
|
|
1225
1206
|
/**
|
|
1226
1207
|
* Name of your app's custom event that was triggered. Required when `{"eventName": "CUSTOM"}`.
|
|
@@ -1243,16 +1224,27 @@ interface SendBIEventRequest {
|
|
|
1243
1224
|
eventData?: Record<string, string>;
|
|
1244
1225
|
}
|
|
1245
1226
|
declare enum EventName {
|
|
1227
|
+
/** Unknown event name. */
|
|
1246
1228
|
UNKNOWN = "UNKNOWN",
|
|
1229
|
+
/** A site owner or contributor loads your app's dashboard. */
|
|
1247
1230
|
APP_DASHBOARD_LOADED = "APP_DASHBOARD_LOADED",
|
|
1231
|
+
/** The site owner completes all required configurations for your app in your app's dashboard. */
|
|
1248
1232
|
APP_FINISHED_CONFIGURATION = "APP_FINISHED_CONFIGURATION",
|
|
1233
|
+
/** The site owner upgrades your app's paid plan. An upgrade means that they have finished the checkout flow on the app's side but not necessarily on Wix's side. */
|
|
1249
1234
|
APP_UPGRADED = "APP_UPGRADED",
|
|
1235
|
+
/** A site owner, contributor, or visitor triggers your app's primary action. For example, a site visitor writes a product review using your product review app. */
|
|
1250
1236
|
PRIMARY_ACTION_PERFORMED = "PRIMARY_ACTION_PERFORMED",
|
|
1237
|
+
/** Any event that's not listed here. Make sure to also send `customEventName`. */
|
|
1251
1238
|
CUSTOM = "CUSTOM",
|
|
1239
|
+
/** You charge money from the site owner. For example, when the site owner purchases or renews a subscription for your app. Make sure to also send `eventData` and a key of `sum`. */
|
|
1252
1240
|
CHARGE = "CHARGE",
|
|
1241
|
+
/** Trigger this event when you send money back to a site owner (for example, refunds or chargebacks). Make sure to also send the charge amount inside `eventData`. For example, `{"eventData": {"sum": "5.99"}}`. */
|
|
1253
1242
|
FUNDS_RETURNED = "FUNDS_RETURNED",
|
|
1243
|
+
/** __Deprecation Notice:__ This enum value will be removed on March 30, 2023. Use `"APP_SETUP_FINISHED"` instead. */
|
|
1254
1244
|
APP_FINISH_BUSINESS_SETUP = "APP_FINISH_BUSINESS_SETUP",
|
|
1245
|
+
/** Your app’s internal code implementation is changed and might affect user flows or cause a regression. */
|
|
1255
1246
|
APP_DEPLOYED = "APP_DEPLOYED",
|
|
1247
|
+
/** The site owner completes your app's required business setup. */
|
|
1256
1248
|
APP_SETUP_FINISHED = "APP_SETUP_FINISHED"
|
|
1257
1249
|
}
|
|
1258
1250
|
|