@wix/app-management 1.0.31 → 1.0.33
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.33",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"service-plugins"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@wix/app-management_app-instances": "1.0.
|
|
23
|
-
"@wix/app-management_app-plans": "1.0.
|
|
24
|
-
"@wix/app-management_bi-events": "1.0.
|
|
25
|
-
"@wix/app-management_billing": "1.0.
|
|
26
|
-
"@wix/app-management_custom-charges": "1.0.
|
|
27
|
-
"@wix/app-management_embedded-scripts": "1.0.
|
|
22
|
+
"@wix/app-management_app-instances": "1.0.19",
|
|
23
|
+
"@wix/app-management_app-plans": "1.0.18",
|
|
24
|
+
"@wix/app-management_bi-events": "1.0.17",
|
|
25
|
+
"@wix/app-management_billing": "1.0.18",
|
|
26
|
+
"@wix/app-management_custom-charges": "1.0.15",
|
|
27
|
+
"@wix/app-management_embedded-scripts": "1.0.15"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"glob": "^10.4.1",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"fqdn": ""
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
"falconPackageHash": "
|
|
52
|
+
"falconPackageHash": "f96614c45ac9cd09a730405b04c2f7f7ece43fc58f231959557bd114"
|
|
53
53
|
}
|
|
@@ -305,10 +305,7 @@ interface ListAppPlansByAppIdSignature {
|
|
|
305
305
|
(appIds: string[]): Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
declare
|
|
309
|
-
|
|
310
|
-
type _publicListAppPlansByAppIdType = typeof listAppPlansByAppId$1;
|
|
311
|
-
declare const listAppPlansByAppId: ReturnType<typeof createRESTModule$4<_publicListAppPlansByAppIdType>>;
|
|
308
|
+
declare const listAppPlansByAppId: BuildRESTFunction<typeof listAppPlansByAppId$1> & typeof listAppPlansByAppId$1;
|
|
312
309
|
|
|
313
310
|
type context$4_AppPlans = AppPlans;
|
|
314
311
|
type context$4_Cycle = Cycle;
|
|
@@ -326,10 +323,9 @@ type context$4_TaxSettings = TaxSettings;
|
|
|
326
323
|
type context$4_TaxType = TaxType;
|
|
327
324
|
declare const context$4_TaxType: typeof TaxType;
|
|
328
325
|
type context$4_UsageBasedDetails = UsageBasedDetails;
|
|
329
|
-
type context$4__publicListAppPlansByAppIdType = _publicListAppPlansByAppIdType;
|
|
330
326
|
declare const context$4_listAppPlansByAppId: typeof listAppPlansByAppId;
|
|
331
327
|
declare namespace context$4 {
|
|
332
|
-
export { type context$4_AppPlans as AppPlans, type context$4_Cycle as Cycle, context$4_CycleType as CycleType, type context$4_Duration as Duration, context$4_DurationUnit as DurationUnit, type context$4_ListAppPlansByAppIdRequest as ListAppPlansByAppIdRequest, type context$4_ListAppPlansByAppIdResponse as ListAppPlansByAppIdResponse, type context$4_ListAppPlansByAppIdResponseNonNullableFields as ListAppPlansByAppIdResponseNonNullableFields, type context$4_Plan as Plan, type context$4_Price as Price, type context$4_TaxSettings as TaxSettings, context$4_TaxType as TaxType, type context$4_UsageBasedDetails as UsageBasedDetails,
|
|
328
|
+
export { type context$4_AppPlans as AppPlans, type context$4_Cycle as Cycle, context$4_CycleType as CycleType, type context$4_Duration as Duration, context$4_DurationUnit as DurationUnit, type context$4_ListAppPlansByAppIdRequest as ListAppPlansByAppIdRequest, type context$4_ListAppPlansByAppIdResponse as ListAppPlansByAppIdResponse, type context$4_ListAppPlansByAppIdResponseNonNullableFields as ListAppPlansByAppIdResponseNonNullableFields, type context$4_Plan as Plan, type context$4_Price as Price, type context$4_TaxSettings as TaxSettings, context$4_TaxType as TaxType, type context$4_UsageBasedDetails as UsageBasedDetails, context$4_listAppPlansByAppId as listAppPlansByAppId };
|
|
333
329
|
}
|
|
334
330
|
|
|
335
331
|
/**
|
|
@@ -739,16 +735,13 @@ interface AppInstancePaidPlanAutoRenewalCancelledEnvelope {
|
|
|
739
735
|
declare function getAppInstance$1(httpClient: HttpClient): GetAppInstanceSignature;
|
|
740
736
|
interface GetAppInstanceSignature {
|
|
741
737
|
/**
|
|
742
|
-
* Retrieves data about the instance of your app that's installed on the
|
|
743
|
-
* site and the site itself.
|
|
738
|
+
* Retrieves data about the instance of your app that's installed on a Wix site and data about the site itself.
|
|
744
739
|
*
|
|
740
|
+
* Call this function when you need information about a specific instance of your app and the site it’s installed on. For example, you may need to know whether the user has installed a free or paid version of your app, or to check what other Wix apps are installed on the site.
|
|
745
741
|
*
|
|
746
|
-
* You
|
|
747
|
-
* the request, since this information is taken automatically from the context.
|
|
742
|
+
* You must authenticate as a [Wix App](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-apps). If you are calling this function from a [dashboard extension](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/dashboard-extensions/about-dashboard-extensions) in the [CLI](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-cli/about-the-wix-cli-for-apps), Wix App authentication is passed automatically. Otherwise, you need to call the function with [elevated permissions](https://dev.wix.com/docs/sdk/articles/working-with-the-sdk/about-elevated-permissions).
|
|
748
743
|
*
|
|
749
|
-
*
|
|
750
|
-
* have the __Read Site Owner Email__ permission scope in addition to
|
|
751
|
-
* __WIX_DEVELOPERS.MANAGE_APP_INSTANCE__.
|
|
744
|
+
* If you want `site.ownerInfo` to be included in the response, you must have the __Read Site Owner Email__ permission scope in addition to __WIX_DEVELOPERS.MANAGE_APP_INSTANCE__.
|
|
752
745
|
*/
|
|
753
746
|
(): Promise<GetAppInstanceResponse & GetAppInstanceResponseNonNullableFields>;
|
|
754
747
|
}
|
|
@@ -758,12 +751,9 @@ declare const onAppInstancePaidPlanPurchased$1: EventDefinition<AppInstancePaidP
|
|
|
758
751
|
declare const onAppInstancePaidPlanChanged$1: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
759
752
|
declare const onAppInstancePaidPlanAutoRenewalCancelled$1: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
760
753
|
|
|
761
|
-
declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
762
|
-
|
|
763
754
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
764
755
|
|
|
765
|
-
|
|
766
|
-
declare const getAppInstance: ReturnType<typeof createRESTModule$3<_publicGetAppInstanceType>>;
|
|
756
|
+
declare const getAppInstance: BuildRESTFunction<typeof getAppInstance$1> & typeof getAppInstance$1;
|
|
767
757
|
|
|
768
758
|
type _publicOnAppInstanceInstalledType = typeof onAppInstanceInstalled$1;
|
|
769
759
|
/**
|
|
@@ -825,7 +815,6 @@ type context$3_ResolutionMethod = ResolutionMethod;
|
|
|
825
815
|
declare const context$3_ResolutionMethod: typeof ResolutionMethod;
|
|
826
816
|
type context$3_SiteInfo = SiteInfo;
|
|
827
817
|
type context$3_SupportedLanguage = SupportedLanguage;
|
|
828
|
-
type context$3__publicGetAppInstanceType = _publicGetAppInstanceType;
|
|
829
818
|
type context$3__publicOnAppInstanceInstalledType = _publicOnAppInstanceInstalledType;
|
|
830
819
|
type context$3__publicOnAppInstancePaidPlanAutoRenewalCancelledType = _publicOnAppInstancePaidPlanAutoRenewalCancelledType;
|
|
831
820
|
type context$3__publicOnAppInstancePaidPlanChangedType = _publicOnAppInstancePaidPlanChangedType;
|
|
@@ -838,7 +827,7 @@ declare const context$3_onAppInstancePaidPlanChanged: typeof onAppInstancePaidPl
|
|
|
838
827
|
declare const context$3_onAppInstancePaidPlanPurchased: typeof onAppInstancePaidPlanPurchased;
|
|
839
828
|
declare const context$3_onAppInstanceRemoved: typeof onAppInstanceRemoved;
|
|
840
829
|
declare namespace context$3 {
|
|
841
|
-
export { type context$3_AppInstalled as AppInstalled, type context$3_AppInstance as AppInstance, type context$3_AppInstanceInstalledEnvelope as AppInstanceInstalledEnvelope, type context$3_AppInstancePaidPlanAutoRenewalCancelledEnvelope as AppInstancePaidPlanAutoRenewalCancelledEnvelope, type context$3_AppInstancePaidPlanChangedEnvelope as AppInstancePaidPlanChangedEnvelope, type context$3_AppInstancePaidPlanPurchasedEnvelope as AppInstancePaidPlanPurchasedEnvelope, type context$3_AppInstanceRemovedEnvelope as AppInstanceRemovedEnvelope, type context$3_AppRemoved as AppRemoved, type context$3_AvailablePlan as AvailablePlan, type context$3_BaseEventMetadata as BaseEventMetadata, type context$3_BillingInfo as BillingInfo, type context$3_FreeTrialInfo as FreeTrialInfo, context$3_FreeTrialStatus as FreeTrialStatus, type context$3_GetAppInstanceByInstanceIdRequest as GetAppInstanceByInstanceIdRequest, type context$3_GetAppInstanceRequest as GetAppInstanceRequest, type context$3_GetAppInstanceResponse as GetAppInstanceResponse, type context$3_GetAppInstanceResponseNonNullableFields as GetAppInstanceResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$3_Locale as Locale, type MessageEnvelope$1 as MessageEnvelope, type context$3_Multilingual as Multilingual, type context$3_OwnerInfo as OwnerInfo, type context$3_PaidPlanAutoRenewalCancelled as PaidPlanAutoRenewalCancelled, type context$3_PaidPlanChanged as PaidPlanChanged, type context$3_PaidPlanPurchased as PaidPlanPurchased, PaymentCycle$1 as PaymentCycle, context$3_ResolutionMethod as ResolutionMethod, type context$3_SiteInfo as SiteInfo, type context$3_SupportedLanguage as SupportedLanguage, WebhookIdentityType$1 as WebhookIdentityType, type context$
|
|
830
|
+
export { type context$3_AppInstalled as AppInstalled, type context$3_AppInstance as AppInstance, type context$3_AppInstanceInstalledEnvelope as AppInstanceInstalledEnvelope, type context$3_AppInstancePaidPlanAutoRenewalCancelledEnvelope as AppInstancePaidPlanAutoRenewalCancelledEnvelope, type context$3_AppInstancePaidPlanChangedEnvelope as AppInstancePaidPlanChangedEnvelope, type context$3_AppInstancePaidPlanPurchasedEnvelope as AppInstancePaidPlanPurchasedEnvelope, type context$3_AppInstanceRemovedEnvelope as AppInstanceRemovedEnvelope, type context$3_AppRemoved as AppRemoved, type context$3_AvailablePlan as AvailablePlan, type context$3_BaseEventMetadata as BaseEventMetadata, type context$3_BillingInfo as BillingInfo, type context$3_FreeTrialInfo as FreeTrialInfo, context$3_FreeTrialStatus as FreeTrialStatus, type context$3_GetAppInstanceByInstanceIdRequest as GetAppInstanceByInstanceIdRequest, type context$3_GetAppInstanceRequest as GetAppInstanceRequest, type context$3_GetAppInstanceResponse as GetAppInstanceResponse, type context$3_GetAppInstanceResponseNonNullableFields as GetAppInstanceResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$3_Locale as Locale, type MessageEnvelope$1 as MessageEnvelope, type context$3_Multilingual as Multilingual, type context$3_OwnerInfo as OwnerInfo, type context$3_PaidPlanAutoRenewalCancelled as PaidPlanAutoRenewalCancelled, type context$3_PaidPlanChanged as PaidPlanChanged, type context$3_PaidPlanPurchased as PaidPlanPurchased, PaymentCycle$1 as PaymentCycle, context$3_ResolutionMethod as ResolutionMethod, type context$3_SiteInfo as SiteInfo, type context$3_SupportedLanguage as SupportedLanguage, WebhookIdentityType$1 as WebhookIdentityType, type context$3__publicOnAppInstanceInstalledType as _publicOnAppInstanceInstalledType, type context$3__publicOnAppInstancePaidPlanAutoRenewalCancelledType as _publicOnAppInstancePaidPlanAutoRenewalCancelledType, type context$3__publicOnAppInstancePaidPlanChangedType as _publicOnAppInstancePaidPlanChangedType, type context$3__publicOnAppInstancePaidPlanPurchasedType as _publicOnAppInstancePaidPlanPurchasedType, type context$3__publicOnAppInstanceRemovedType as _publicOnAppInstanceRemovedType, context$3_getAppInstance as getAppInstance, context$3_onAppInstanceInstalled as onAppInstanceInstalled, context$3_onAppInstancePaidPlanAutoRenewalCancelled as onAppInstancePaidPlanAutoRenewalCancelled, context$3_onAppInstancePaidPlanChanged as onAppInstancePaidPlanChanged, context$3_onAppInstancePaidPlanPurchased as onAppInstancePaidPlanPurchased, context$3_onAppInstanceRemoved as onAppInstanceRemoved, onAppInstanceInstalled$1 as publicOnAppInstanceInstalled, onAppInstancePaidPlanAutoRenewalCancelled$1 as publicOnAppInstancePaidPlanAutoRenewalCancelled, onAppInstancePaidPlanChanged$1 as publicOnAppInstancePaidPlanChanged, onAppInstancePaidPlanPurchased$1 as publicOnAppInstancePaidPlanPurchased, onAppInstanceRemoved$1 as publicOnAppInstanceRemoved };
|
|
842
831
|
}
|
|
843
832
|
|
|
844
833
|
interface SendBIEventResponse {
|
|
@@ -937,20 +926,16 @@ interface SendBiEventSignature {
|
|
|
937
926
|
(options?: SendBiEventOptions | undefined): Promise<void>;
|
|
938
927
|
}
|
|
939
928
|
|
|
940
|
-
declare
|
|
941
|
-
|
|
942
|
-
type _publicSendBiEventType = typeof sendBiEvent$1;
|
|
943
|
-
declare const sendBiEvent: ReturnType<typeof createRESTModule$2<_publicSendBiEventType>>;
|
|
929
|
+
declare const sendBiEvent: BuildRESTFunction<typeof sendBiEvent$1> & typeof sendBiEvent$1;
|
|
944
930
|
|
|
945
931
|
type context$2_EventName = EventName;
|
|
946
932
|
declare const context$2_EventName: typeof EventName;
|
|
947
933
|
type context$2_SendBIEventRequest = SendBIEventRequest;
|
|
948
934
|
type context$2_SendBIEventResponse = SendBIEventResponse;
|
|
949
935
|
type context$2_SendBiEventOptions = SendBiEventOptions;
|
|
950
|
-
type context$2__publicSendBiEventType = _publicSendBiEventType;
|
|
951
936
|
declare const context$2_sendBiEvent: typeof sendBiEvent;
|
|
952
937
|
declare namespace context$2 {
|
|
953
|
-
export { context$2_EventName as EventName, type context$2_SendBIEventRequest as SendBIEventRequest, type context$2_SendBIEventResponse as SendBIEventResponse, type context$2_SendBiEventOptions as SendBiEventOptions,
|
|
938
|
+
export { context$2_EventName as EventName, type context$2_SendBIEventRequest as SendBIEventRequest, type context$2_SendBIEventResponse as SendBIEventResponse, type context$2_SendBiEventOptions as SendBiEventOptions, context$2_sendBiEvent as sendBiEvent };
|
|
954
939
|
}
|
|
955
940
|
|
|
956
941
|
interface PurchasedItem {
|
|
@@ -1238,12 +1223,8 @@ interface GetPurchaseHistorySignature {
|
|
|
1238
1223
|
(): Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
|
|
1239
1224
|
}
|
|
1240
1225
|
|
|
1241
|
-
declare
|
|
1242
|
-
|
|
1243
|
-
type _publicGetUrlType = typeof getUrl$1;
|
|
1244
|
-
declare const getUrl: ReturnType<typeof createRESTModule$1<_publicGetUrlType>>;
|
|
1245
|
-
type _publicGetPurchaseHistoryType = typeof getPurchaseHistory$1;
|
|
1246
|
-
declare const getPurchaseHistory: ReturnType<typeof createRESTModule$1<_publicGetPurchaseHistoryType>>;
|
|
1226
|
+
declare const getUrl: BuildRESTFunction<typeof getUrl$1> & typeof getUrl$1;
|
|
1227
|
+
declare const getPurchaseHistory: BuildRESTFunction<typeof getPurchaseHistory$1> & typeof getPurchaseHistory$1;
|
|
1247
1228
|
|
|
1248
1229
|
type context$1_Charge = Charge;
|
|
1249
1230
|
type context$1_ChargeOverride = ChargeOverride;
|
|
@@ -1269,12 +1250,10 @@ declare const context$1_PaymentCycle: typeof PaymentCycle;
|
|
|
1269
1250
|
type context$1_PurchasedItem = PurchasedItem;
|
|
1270
1251
|
type context$1_WebhookIdentityType = WebhookIdentityType;
|
|
1271
1252
|
declare const context$1_WebhookIdentityType: typeof WebhookIdentityType;
|
|
1272
|
-
type context$1__publicGetPurchaseHistoryType = _publicGetPurchaseHistoryType;
|
|
1273
|
-
type context$1__publicGetUrlType = _publicGetUrlType;
|
|
1274
1253
|
declare const context$1_getPurchaseHistory: typeof getPurchaseHistory;
|
|
1275
1254
|
declare const context$1_getUrl: typeof getUrl;
|
|
1276
1255
|
declare namespace context$1 {
|
|
1277
|
-
export { type context$1_Charge as Charge, type context$1_ChargeOverride as ChargeOverride, type context$1_GetMeteredBillingChargesRequest as GetMeteredBillingChargesRequest, type context$1_GetMeteredBillingChargesResponse as GetMeteredBillingChargesResponse, type context$1_GetPurchaseHistoryRequest as GetPurchaseHistoryRequest, type context$1_GetPurchaseHistoryResponse as GetPurchaseHistoryResponse, type context$1_GetPurchaseHistoryResponseNonNullableFields as GetPurchaseHistoryResponseNonNullableFields, type context$1_GetSitePaymentMethodsStatusRequest as GetSitePaymentMethodsStatusRequest, type context$1_GetSitePaymentMethodsStatusResponse as GetSitePaymentMethodsStatusResponse, type context$1_GetUrlOptions as GetUrlOptions, type context$1_GetUrlRequest as GetUrlRequest, type context$1_GetUrlResponse as GetUrlResponse, type context$1_GetUrlResponseNonNullableFields as GetUrlResponseNonNullableFields, type context$1_IdentificationData as IdentificationData, type context$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context$1_InvoiceStatus as InvoiceStatus, type context$1_InvoiceStatusUpdate as InvoiceStatusUpdate, type context$1_MessageEnvelope as MessageEnvelope, context$1_PaymentCycle as PaymentCycle, type context$1_PurchasedItem as PurchasedItem, context$1_WebhookIdentityType as WebhookIdentityType,
|
|
1256
|
+
export { type context$1_Charge as Charge, type context$1_ChargeOverride as ChargeOverride, type context$1_GetMeteredBillingChargesRequest as GetMeteredBillingChargesRequest, type context$1_GetMeteredBillingChargesResponse as GetMeteredBillingChargesResponse, type context$1_GetPurchaseHistoryRequest as GetPurchaseHistoryRequest, type context$1_GetPurchaseHistoryResponse as GetPurchaseHistoryResponse, type context$1_GetPurchaseHistoryResponseNonNullableFields as GetPurchaseHistoryResponseNonNullableFields, type context$1_GetSitePaymentMethodsStatusRequest as GetSitePaymentMethodsStatusRequest, type context$1_GetSitePaymentMethodsStatusResponse as GetSitePaymentMethodsStatusResponse, type context$1_GetUrlOptions as GetUrlOptions, type context$1_GetUrlRequest as GetUrlRequest, type context$1_GetUrlResponse as GetUrlResponse, type context$1_GetUrlResponseNonNullableFields as GetUrlResponseNonNullableFields, type context$1_IdentificationData as IdentificationData, type context$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context$1_InvoiceStatus as InvoiceStatus, type context$1_InvoiceStatusUpdate as InvoiceStatusUpdate, type context$1_MessageEnvelope as MessageEnvelope, context$1_PaymentCycle as PaymentCycle, type context$1_PurchasedItem as PurchasedItem, context$1_WebhookIdentityType as WebhookIdentityType, context$1_getPurchaseHistory as getPurchaseHistory, context$1_getUrl as getUrl };
|
|
1278
1257
|
}
|
|
1279
1258
|
|
|
1280
1259
|
/** Embedded script data */
|
|
@@ -1356,12 +1335,8 @@ interface GetEmbeddedScriptSignature {
|
|
|
1356
1335
|
(options?: GetEmbeddedScriptOptions | undefined): Promise<ScriptProperties & ScriptPropertiesNonNullableFields>;
|
|
1357
1336
|
}
|
|
1358
1337
|
|
|
1359
|
-
declare
|
|
1360
|
-
|
|
1361
|
-
type _publicEmbedScriptType = typeof embedScript$1;
|
|
1362
|
-
declare const embedScript: ReturnType<typeof createRESTModule<_publicEmbedScriptType>>;
|
|
1363
|
-
type _publicGetEmbeddedScriptType = typeof getEmbeddedScript$1;
|
|
1364
|
-
declare const getEmbeddedScript: ReturnType<typeof createRESTModule<_publicGetEmbeddedScriptType>>;
|
|
1338
|
+
declare const embedScript: BuildRESTFunction<typeof embedScript$1> & typeof embedScript$1;
|
|
1339
|
+
declare const getEmbeddedScript: BuildRESTFunction<typeof getEmbeddedScript$1> & typeof getEmbeddedScript$1;
|
|
1365
1340
|
|
|
1366
1341
|
type context_EmbedScriptByInstanceIdRequest = EmbedScriptByInstanceIdRequest;
|
|
1367
1342
|
type context_EmbedScriptOptions = EmbedScriptOptions;
|
|
@@ -1375,12 +1350,10 @@ type context_GetEmbeddedScriptResponse = GetEmbeddedScriptResponse;
|
|
|
1375
1350
|
type context_GetEmbeddedScriptResponseNonNullableFields = GetEmbeddedScriptResponseNonNullableFields;
|
|
1376
1351
|
type context_ScriptProperties = ScriptProperties;
|
|
1377
1352
|
type context_ScriptPropertiesNonNullableFields = ScriptPropertiesNonNullableFields;
|
|
1378
|
-
type context__publicEmbedScriptType = _publicEmbedScriptType;
|
|
1379
|
-
type context__publicGetEmbeddedScriptType = _publicGetEmbeddedScriptType;
|
|
1380
1353
|
declare const context_embedScript: typeof embedScript;
|
|
1381
1354
|
declare const context_getEmbeddedScript: typeof getEmbeddedScript;
|
|
1382
1355
|
declare namespace context {
|
|
1383
|
-
export { type context_EmbedScriptByInstanceIdRequest as EmbedScriptByInstanceIdRequest, type context_EmbedScriptOptions as EmbedScriptOptions, type context_EmbedScriptRequest as EmbedScriptRequest, type context_EmbedScriptResponse as EmbedScriptResponse, type context_EmbedScriptResponseNonNullableFields as EmbedScriptResponseNonNullableFields, type context_GetEmbeddedScriptByInstanceIdRequest as GetEmbeddedScriptByInstanceIdRequest, type context_GetEmbeddedScriptOptions as GetEmbeddedScriptOptions, type context_GetEmbeddedScriptRequest as GetEmbeddedScriptRequest, type context_GetEmbeddedScriptResponse as GetEmbeddedScriptResponse, type context_GetEmbeddedScriptResponseNonNullableFields as GetEmbeddedScriptResponseNonNullableFields, type context_ScriptProperties as ScriptProperties, type context_ScriptPropertiesNonNullableFields as ScriptPropertiesNonNullableFields,
|
|
1356
|
+
export { type context_EmbedScriptByInstanceIdRequest as EmbedScriptByInstanceIdRequest, type context_EmbedScriptOptions as EmbedScriptOptions, type context_EmbedScriptRequest as EmbedScriptRequest, type context_EmbedScriptResponse as EmbedScriptResponse, type context_EmbedScriptResponseNonNullableFields as EmbedScriptResponseNonNullableFields, type context_GetEmbeddedScriptByInstanceIdRequest as GetEmbeddedScriptByInstanceIdRequest, type context_GetEmbeddedScriptOptions as GetEmbeddedScriptOptions, type context_GetEmbeddedScriptRequest as GetEmbeddedScriptRequest, type context_GetEmbeddedScriptResponse as GetEmbeddedScriptResponse, type context_GetEmbeddedScriptResponseNonNullableFields as GetEmbeddedScriptResponseNonNullableFields, type context_ScriptProperties as ScriptProperties, type context_ScriptPropertiesNonNullableFields as ScriptPropertiesNonNullableFields, context_embedScript as embedScript, context_getEmbeddedScript as getEmbeddedScript };
|
|
1384
1357
|
}
|
|
1385
1358
|
|
|
1386
1359
|
export { context$3 as appInstances, context$4 as appPlans, context$2 as biEvents, context$1 as billing, context as embeddedScripts };
|
|
@@ -305,10 +305,7 @@ interface ListAppPlansByAppIdSignature {
|
|
|
305
305
|
(appIds: string[]): Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
declare
|
|
309
|
-
|
|
310
|
-
type _publicListAppPlansByAppIdType = typeof listAppPlansByAppId$1;
|
|
311
|
-
declare const listAppPlansByAppId: ReturnType<typeof createRESTModule$4<_publicListAppPlansByAppIdType>>;
|
|
308
|
+
declare const listAppPlansByAppId: BuildRESTFunction<typeof listAppPlansByAppId$1> & typeof listAppPlansByAppId$1;
|
|
312
309
|
|
|
313
310
|
type index_d$4_AppPlans = AppPlans;
|
|
314
311
|
type index_d$4_Cycle = Cycle;
|
|
@@ -326,10 +323,9 @@ type index_d$4_TaxSettings = TaxSettings;
|
|
|
326
323
|
type index_d$4_TaxType = TaxType;
|
|
327
324
|
declare const index_d$4_TaxType: typeof TaxType;
|
|
328
325
|
type index_d$4_UsageBasedDetails = UsageBasedDetails;
|
|
329
|
-
type index_d$4__publicListAppPlansByAppIdType = _publicListAppPlansByAppIdType;
|
|
330
326
|
declare const index_d$4_listAppPlansByAppId: typeof listAppPlansByAppId;
|
|
331
327
|
declare namespace index_d$4 {
|
|
332
|
-
export { type index_d$4_AppPlans as AppPlans, type index_d$4_Cycle as Cycle, index_d$4_CycleType as CycleType, type index_d$4_Duration as Duration, index_d$4_DurationUnit as DurationUnit, type index_d$4_ListAppPlansByAppIdRequest as ListAppPlansByAppIdRequest, type index_d$4_ListAppPlansByAppIdResponse as ListAppPlansByAppIdResponse, type index_d$4_ListAppPlansByAppIdResponseNonNullableFields as ListAppPlansByAppIdResponseNonNullableFields, type index_d$4_Plan as Plan, type index_d$4_Price as Price, type index_d$4_TaxSettings as TaxSettings, index_d$4_TaxType as TaxType, type index_d$4_UsageBasedDetails as UsageBasedDetails,
|
|
328
|
+
export { type index_d$4_AppPlans as AppPlans, type index_d$4_Cycle as Cycle, index_d$4_CycleType as CycleType, type index_d$4_Duration as Duration, index_d$4_DurationUnit as DurationUnit, type index_d$4_ListAppPlansByAppIdRequest as ListAppPlansByAppIdRequest, type index_d$4_ListAppPlansByAppIdResponse as ListAppPlansByAppIdResponse, type index_d$4_ListAppPlansByAppIdResponseNonNullableFields as ListAppPlansByAppIdResponseNonNullableFields, type index_d$4_Plan as Plan, type index_d$4_Price as Price, type index_d$4_TaxSettings as TaxSettings, index_d$4_TaxType as TaxType, type index_d$4_UsageBasedDetails as UsageBasedDetails, index_d$4_listAppPlansByAppId as listAppPlansByAppId };
|
|
333
329
|
}
|
|
334
330
|
|
|
335
331
|
/**
|
|
@@ -739,16 +735,13 @@ interface AppInstancePaidPlanAutoRenewalCancelledEnvelope {
|
|
|
739
735
|
declare function getAppInstance$1(httpClient: HttpClient): GetAppInstanceSignature;
|
|
740
736
|
interface GetAppInstanceSignature {
|
|
741
737
|
/**
|
|
742
|
-
* Retrieves data about the instance of your app that's installed on the
|
|
743
|
-
* site and the site itself.
|
|
738
|
+
* Retrieves data about the instance of your app that's installed on a Wix site and data about the site itself.
|
|
744
739
|
*
|
|
740
|
+
* Call this function when you need information about a specific instance of your app and the site it’s installed on. For example, you may need to know whether the user has installed a free or paid version of your app, or to check what other Wix apps are installed on the site.
|
|
745
741
|
*
|
|
746
|
-
* You
|
|
747
|
-
* the request, since this information is taken automatically from the context.
|
|
742
|
+
* You must authenticate as a [Wix App](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-apps). If you are calling this function from a [dashboard extension](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/dashboard-extensions/about-dashboard-extensions) in the [CLI](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-cli/about-the-wix-cli-for-apps), Wix App authentication is passed automatically. Otherwise, you need to call the function with [elevated permissions](https://dev.wix.com/docs/sdk/articles/working-with-the-sdk/about-elevated-permissions).
|
|
748
743
|
*
|
|
749
|
-
*
|
|
750
|
-
* have the __Read Site Owner Email__ permission scope in addition to
|
|
751
|
-
* __WIX_DEVELOPERS.MANAGE_APP_INSTANCE__.
|
|
744
|
+
* If you want `site.ownerInfo` to be included in the response, you must have the __Read Site Owner Email__ permission scope in addition to __WIX_DEVELOPERS.MANAGE_APP_INSTANCE__.
|
|
752
745
|
*/
|
|
753
746
|
(): Promise<GetAppInstanceResponse & GetAppInstanceResponseNonNullableFields>;
|
|
754
747
|
}
|
|
@@ -758,12 +751,9 @@ declare const onAppInstancePaidPlanPurchased$1: EventDefinition<AppInstancePaidP
|
|
|
758
751
|
declare const onAppInstancePaidPlanChanged$1: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
759
752
|
declare const onAppInstancePaidPlanAutoRenewalCancelled$1: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
760
753
|
|
|
761
|
-
declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
762
|
-
|
|
763
754
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
764
755
|
|
|
765
|
-
|
|
766
|
-
declare const getAppInstance: ReturnType<typeof createRESTModule$3<_publicGetAppInstanceType>>;
|
|
756
|
+
declare const getAppInstance: BuildRESTFunction<typeof getAppInstance$1> & typeof getAppInstance$1;
|
|
767
757
|
|
|
768
758
|
type _publicOnAppInstanceInstalledType = typeof onAppInstanceInstalled$1;
|
|
769
759
|
/**
|
|
@@ -825,7 +815,6 @@ type index_d$3_ResolutionMethod = ResolutionMethod;
|
|
|
825
815
|
declare const index_d$3_ResolutionMethod: typeof ResolutionMethod;
|
|
826
816
|
type index_d$3_SiteInfo = SiteInfo;
|
|
827
817
|
type index_d$3_SupportedLanguage = SupportedLanguage;
|
|
828
|
-
type index_d$3__publicGetAppInstanceType = _publicGetAppInstanceType;
|
|
829
818
|
type index_d$3__publicOnAppInstanceInstalledType = _publicOnAppInstanceInstalledType;
|
|
830
819
|
type index_d$3__publicOnAppInstancePaidPlanAutoRenewalCancelledType = _publicOnAppInstancePaidPlanAutoRenewalCancelledType;
|
|
831
820
|
type index_d$3__publicOnAppInstancePaidPlanChangedType = _publicOnAppInstancePaidPlanChangedType;
|
|
@@ -838,7 +827,7 @@ declare const index_d$3_onAppInstancePaidPlanChanged: typeof onAppInstancePaidPl
|
|
|
838
827
|
declare const index_d$3_onAppInstancePaidPlanPurchased: typeof onAppInstancePaidPlanPurchased;
|
|
839
828
|
declare const index_d$3_onAppInstanceRemoved: typeof onAppInstanceRemoved;
|
|
840
829
|
declare namespace index_d$3 {
|
|
841
|
-
export { type index_d$3_AppInstalled as AppInstalled, type index_d$3_AppInstance as AppInstance, type index_d$3_AppInstanceInstalledEnvelope as AppInstanceInstalledEnvelope, type index_d$3_AppInstancePaidPlanAutoRenewalCancelledEnvelope as AppInstancePaidPlanAutoRenewalCancelledEnvelope, type index_d$3_AppInstancePaidPlanChangedEnvelope as AppInstancePaidPlanChangedEnvelope, type index_d$3_AppInstancePaidPlanPurchasedEnvelope as AppInstancePaidPlanPurchasedEnvelope, type index_d$3_AppInstanceRemovedEnvelope as AppInstanceRemovedEnvelope, type index_d$3_AppRemoved as AppRemoved, type index_d$3_AvailablePlan as AvailablePlan, type index_d$3_BaseEventMetadata as BaseEventMetadata, type index_d$3_BillingInfo as BillingInfo, type index_d$3_FreeTrialInfo as FreeTrialInfo, index_d$3_FreeTrialStatus as FreeTrialStatus, type index_d$3_GetAppInstanceByInstanceIdRequest as GetAppInstanceByInstanceIdRequest, type index_d$3_GetAppInstanceRequest as GetAppInstanceRequest, type index_d$3_GetAppInstanceResponse as GetAppInstanceResponse, type index_d$3_GetAppInstanceResponseNonNullableFields as GetAppInstanceResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$3_Locale as Locale, type MessageEnvelope$1 as MessageEnvelope, type index_d$3_Multilingual as Multilingual, type index_d$3_OwnerInfo as OwnerInfo, type index_d$3_PaidPlanAutoRenewalCancelled as PaidPlanAutoRenewalCancelled, type index_d$3_PaidPlanChanged as PaidPlanChanged, type index_d$3_PaidPlanPurchased as PaidPlanPurchased, PaymentCycle$1 as PaymentCycle, index_d$3_ResolutionMethod as ResolutionMethod, type index_d$3_SiteInfo as SiteInfo, type index_d$3_SupportedLanguage as SupportedLanguage, WebhookIdentityType$1 as WebhookIdentityType, type index_d$
|
|
830
|
+
export { type index_d$3_AppInstalled as AppInstalled, type index_d$3_AppInstance as AppInstance, type index_d$3_AppInstanceInstalledEnvelope as AppInstanceInstalledEnvelope, type index_d$3_AppInstancePaidPlanAutoRenewalCancelledEnvelope as AppInstancePaidPlanAutoRenewalCancelledEnvelope, type index_d$3_AppInstancePaidPlanChangedEnvelope as AppInstancePaidPlanChangedEnvelope, type index_d$3_AppInstancePaidPlanPurchasedEnvelope as AppInstancePaidPlanPurchasedEnvelope, type index_d$3_AppInstanceRemovedEnvelope as AppInstanceRemovedEnvelope, type index_d$3_AppRemoved as AppRemoved, type index_d$3_AvailablePlan as AvailablePlan, type index_d$3_BaseEventMetadata as BaseEventMetadata, type index_d$3_BillingInfo as BillingInfo, type index_d$3_FreeTrialInfo as FreeTrialInfo, index_d$3_FreeTrialStatus as FreeTrialStatus, type index_d$3_GetAppInstanceByInstanceIdRequest as GetAppInstanceByInstanceIdRequest, type index_d$3_GetAppInstanceRequest as GetAppInstanceRequest, type index_d$3_GetAppInstanceResponse as GetAppInstanceResponse, type index_d$3_GetAppInstanceResponseNonNullableFields as GetAppInstanceResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$3_Locale as Locale, type MessageEnvelope$1 as MessageEnvelope, type index_d$3_Multilingual as Multilingual, type index_d$3_OwnerInfo as OwnerInfo, type index_d$3_PaidPlanAutoRenewalCancelled as PaidPlanAutoRenewalCancelled, type index_d$3_PaidPlanChanged as PaidPlanChanged, type index_d$3_PaidPlanPurchased as PaidPlanPurchased, PaymentCycle$1 as PaymentCycle, index_d$3_ResolutionMethod as ResolutionMethod, type index_d$3_SiteInfo as SiteInfo, type index_d$3_SupportedLanguage as SupportedLanguage, WebhookIdentityType$1 as WebhookIdentityType, type index_d$3__publicOnAppInstanceInstalledType as _publicOnAppInstanceInstalledType, type index_d$3__publicOnAppInstancePaidPlanAutoRenewalCancelledType as _publicOnAppInstancePaidPlanAutoRenewalCancelledType, type index_d$3__publicOnAppInstancePaidPlanChangedType as _publicOnAppInstancePaidPlanChangedType, type index_d$3__publicOnAppInstancePaidPlanPurchasedType as _publicOnAppInstancePaidPlanPurchasedType, type index_d$3__publicOnAppInstanceRemovedType as _publicOnAppInstanceRemovedType, index_d$3_getAppInstance as getAppInstance, index_d$3_onAppInstanceInstalled as onAppInstanceInstalled, index_d$3_onAppInstancePaidPlanAutoRenewalCancelled as onAppInstancePaidPlanAutoRenewalCancelled, index_d$3_onAppInstancePaidPlanChanged as onAppInstancePaidPlanChanged, index_d$3_onAppInstancePaidPlanPurchased as onAppInstancePaidPlanPurchased, index_d$3_onAppInstanceRemoved as onAppInstanceRemoved, onAppInstanceInstalled$1 as publicOnAppInstanceInstalled, onAppInstancePaidPlanAutoRenewalCancelled$1 as publicOnAppInstancePaidPlanAutoRenewalCancelled, onAppInstancePaidPlanChanged$1 as publicOnAppInstancePaidPlanChanged, onAppInstancePaidPlanPurchased$1 as publicOnAppInstancePaidPlanPurchased, onAppInstanceRemoved$1 as publicOnAppInstanceRemoved };
|
|
842
831
|
}
|
|
843
832
|
|
|
844
833
|
interface SendBIEventResponse {
|
|
@@ -937,20 +926,16 @@ interface SendBiEventSignature {
|
|
|
937
926
|
(options?: SendBiEventOptions | undefined): Promise<void>;
|
|
938
927
|
}
|
|
939
928
|
|
|
940
|
-
declare
|
|
941
|
-
|
|
942
|
-
type _publicSendBiEventType = typeof sendBiEvent$1;
|
|
943
|
-
declare const sendBiEvent: ReturnType<typeof createRESTModule$2<_publicSendBiEventType>>;
|
|
929
|
+
declare const sendBiEvent: BuildRESTFunction<typeof sendBiEvent$1> & typeof sendBiEvent$1;
|
|
944
930
|
|
|
945
931
|
type index_d$2_EventName = EventName;
|
|
946
932
|
declare const index_d$2_EventName: typeof EventName;
|
|
947
933
|
type index_d$2_SendBIEventRequest = SendBIEventRequest;
|
|
948
934
|
type index_d$2_SendBIEventResponse = SendBIEventResponse;
|
|
949
935
|
type index_d$2_SendBiEventOptions = SendBiEventOptions;
|
|
950
|
-
type index_d$2__publicSendBiEventType = _publicSendBiEventType;
|
|
951
936
|
declare const index_d$2_sendBiEvent: typeof sendBiEvent;
|
|
952
937
|
declare namespace index_d$2 {
|
|
953
|
-
export { index_d$2_EventName as EventName, type index_d$2_SendBIEventRequest as SendBIEventRequest, type index_d$2_SendBIEventResponse as SendBIEventResponse, type index_d$2_SendBiEventOptions as SendBiEventOptions,
|
|
938
|
+
export { index_d$2_EventName as EventName, type index_d$2_SendBIEventRequest as SendBIEventRequest, type index_d$2_SendBIEventResponse as SendBIEventResponse, type index_d$2_SendBiEventOptions as SendBiEventOptions, index_d$2_sendBiEvent as sendBiEvent };
|
|
954
939
|
}
|
|
955
940
|
|
|
956
941
|
interface PurchasedItem {
|
|
@@ -1238,12 +1223,8 @@ interface GetPurchaseHistorySignature {
|
|
|
1238
1223
|
(): Promise<GetPurchaseHistoryResponse & GetPurchaseHistoryResponseNonNullableFields>;
|
|
1239
1224
|
}
|
|
1240
1225
|
|
|
1241
|
-
declare
|
|
1242
|
-
|
|
1243
|
-
type _publicGetUrlType = typeof getUrl$1;
|
|
1244
|
-
declare const getUrl: ReturnType<typeof createRESTModule$1<_publicGetUrlType>>;
|
|
1245
|
-
type _publicGetPurchaseHistoryType = typeof getPurchaseHistory$1;
|
|
1246
|
-
declare const getPurchaseHistory: ReturnType<typeof createRESTModule$1<_publicGetPurchaseHistoryType>>;
|
|
1226
|
+
declare const getUrl: BuildRESTFunction<typeof getUrl$1> & typeof getUrl$1;
|
|
1227
|
+
declare const getPurchaseHistory: BuildRESTFunction<typeof getPurchaseHistory$1> & typeof getPurchaseHistory$1;
|
|
1247
1228
|
|
|
1248
1229
|
type index_d$1_Charge = Charge;
|
|
1249
1230
|
type index_d$1_ChargeOverride = ChargeOverride;
|
|
@@ -1269,12 +1250,10 @@ declare const index_d$1_PaymentCycle: typeof PaymentCycle;
|
|
|
1269
1250
|
type index_d$1_PurchasedItem = PurchasedItem;
|
|
1270
1251
|
type index_d$1_WebhookIdentityType = WebhookIdentityType;
|
|
1271
1252
|
declare const index_d$1_WebhookIdentityType: typeof WebhookIdentityType;
|
|
1272
|
-
type index_d$1__publicGetPurchaseHistoryType = _publicGetPurchaseHistoryType;
|
|
1273
|
-
type index_d$1__publicGetUrlType = _publicGetUrlType;
|
|
1274
1253
|
declare const index_d$1_getPurchaseHistory: typeof getPurchaseHistory;
|
|
1275
1254
|
declare const index_d$1_getUrl: typeof getUrl;
|
|
1276
1255
|
declare namespace index_d$1 {
|
|
1277
|
-
export { type index_d$1_Charge as Charge, type index_d$1_ChargeOverride as ChargeOverride, type index_d$1_GetMeteredBillingChargesRequest as GetMeteredBillingChargesRequest, type index_d$1_GetMeteredBillingChargesResponse as GetMeteredBillingChargesResponse, type index_d$1_GetPurchaseHistoryRequest as GetPurchaseHistoryRequest, type index_d$1_GetPurchaseHistoryResponse as GetPurchaseHistoryResponse, type index_d$1_GetPurchaseHistoryResponseNonNullableFields as GetPurchaseHistoryResponseNonNullableFields, type index_d$1_GetSitePaymentMethodsStatusRequest as GetSitePaymentMethodsStatusRequest, type index_d$1_GetSitePaymentMethodsStatusResponse as GetSitePaymentMethodsStatusResponse, type index_d$1_GetUrlOptions as GetUrlOptions, type index_d$1_GetUrlRequest as GetUrlRequest, type index_d$1_GetUrlResponse as GetUrlResponse, type index_d$1_GetUrlResponseNonNullableFields as GetUrlResponseNonNullableFields, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d$1_InvoiceStatus as InvoiceStatus, type index_d$1_InvoiceStatusUpdate as InvoiceStatusUpdate, type index_d$1_MessageEnvelope as MessageEnvelope, index_d$1_PaymentCycle as PaymentCycle, type index_d$1_PurchasedItem as PurchasedItem, index_d$1_WebhookIdentityType as WebhookIdentityType,
|
|
1256
|
+
export { type index_d$1_Charge as Charge, type index_d$1_ChargeOverride as ChargeOverride, type index_d$1_GetMeteredBillingChargesRequest as GetMeteredBillingChargesRequest, type index_d$1_GetMeteredBillingChargesResponse as GetMeteredBillingChargesResponse, type index_d$1_GetPurchaseHistoryRequest as GetPurchaseHistoryRequest, type index_d$1_GetPurchaseHistoryResponse as GetPurchaseHistoryResponse, type index_d$1_GetPurchaseHistoryResponseNonNullableFields as GetPurchaseHistoryResponseNonNullableFields, type index_d$1_GetSitePaymentMethodsStatusRequest as GetSitePaymentMethodsStatusRequest, type index_d$1_GetSitePaymentMethodsStatusResponse as GetSitePaymentMethodsStatusResponse, type index_d$1_GetUrlOptions as GetUrlOptions, type index_d$1_GetUrlRequest as GetUrlRequest, type index_d$1_GetUrlResponse as GetUrlResponse, type index_d$1_GetUrlResponseNonNullableFields as GetUrlResponseNonNullableFields, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d$1_InvoiceStatus as InvoiceStatus, type index_d$1_InvoiceStatusUpdate as InvoiceStatusUpdate, type index_d$1_MessageEnvelope as MessageEnvelope, index_d$1_PaymentCycle as PaymentCycle, type index_d$1_PurchasedItem as PurchasedItem, index_d$1_WebhookIdentityType as WebhookIdentityType, index_d$1_getPurchaseHistory as getPurchaseHistory, index_d$1_getUrl as getUrl };
|
|
1278
1257
|
}
|
|
1279
1258
|
|
|
1280
1259
|
/** Embedded script data */
|
|
@@ -1356,12 +1335,8 @@ interface GetEmbeddedScriptSignature {
|
|
|
1356
1335
|
(options?: GetEmbeddedScriptOptions | undefined): Promise<ScriptProperties & ScriptPropertiesNonNullableFields>;
|
|
1357
1336
|
}
|
|
1358
1337
|
|
|
1359
|
-
declare
|
|
1360
|
-
|
|
1361
|
-
type _publicEmbedScriptType = typeof embedScript$1;
|
|
1362
|
-
declare const embedScript: ReturnType<typeof createRESTModule<_publicEmbedScriptType>>;
|
|
1363
|
-
type _publicGetEmbeddedScriptType = typeof getEmbeddedScript$1;
|
|
1364
|
-
declare const getEmbeddedScript: ReturnType<typeof createRESTModule<_publicGetEmbeddedScriptType>>;
|
|
1338
|
+
declare const embedScript: BuildRESTFunction<typeof embedScript$1> & typeof embedScript$1;
|
|
1339
|
+
declare const getEmbeddedScript: BuildRESTFunction<typeof getEmbeddedScript$1> & typeof getEmbeddedScript$1;
|
|
1365
1340
|
|
|
1366
1341
|
type index_d_EmbedScriptByInstanceIdRequest = EmbedScriptByInstanceIdRequest;
|
|
1367
1342
|
type index_d_EmbedScriptOptions = EmbedScriptOptions;
|
|
@@ -1375,12 +1350,10 @@ type index_d_GetEmbeddedScriptResponse = GetEmbeddedScriptResponse;
|
|
|
1375
1350
|
type index_d_GetEmbeddedScriptResponseNonNullableFields = GetEmbeddedScriptResponseNonNullableFields;
|
|
1376
1351
|
type index_d_ScriptProperties = ScriptProperties;
|
|
1377
1352
|
type index_d_ScriptPropertiesNonNullableFields = ScriptPropertiesNonNullableFields;
|
|
1378
|
-
type index_d__publicEmbedScriptType = _publicEmbedScriptType;
|
|
1379
|
-
type index_d__publicGetEmbeddedScriptType = _publicGetEmbeddedScriptType;
|
|
1380
1353
|
declare const index_d_embedScript: typeof embedScript;
|
|
1381
1354
|
declare const index_d_getEmbeddedScript: typeof getEmbeddedScript;
|
|
1382
1355
|
declare namespace index_d {
|
|
1383
|
-
export { type index_d_EmbedScriptByInstanceIdRequest as EmbedScriptByInstanceIdRequest, type index_d_EmbedScriptOptions as EmbedScriptOptions, type index_d_EmbedScriptRequest as EmbedScriptRequest, type index_d_EmbedScriptResponse as EmbedScriptResponse, type index_d_EmbedScriptResponseNonNullableFields as EmbedScriptResponseNonNullableFields, type index_d_GetEmbeddedScriptByInstanceIdRequest as GetEmbeddedScriptByInstanceIdRequest, type index_d_GetEmbeddedScriptOptions as GetEmbeddedScriptOptions, type index_d_GetEmbeddedScriptRequest as GetEmbeddedScriptRequest, type index_d_GetEmbeddedScriptResponse as GetEmbeddedScriptResponse, type index_d_GetEmbeddedScriptResponseNonNullableFields as GetEmbeddedScriptResponseNonNullableFields, type index_d_ScriptProperties as ScriptProperties, type index_d_ScriptPropertiesNonNullableFields as ScriptPropertiesNonNullableFields,
|
|
1356
|
+
export { type index_d_EmbedScriptByInstanceIdRequest as EmbedScriptByInstanceIdRequest, type index_d_EmbedScriptOptions as EmbedScriptOptions, type index_d_EmbedScriptRequest as EmbedScriptRequest, type index_d_EmbedScriptResponse as EmbedScriptResponse, type index_d_EmbedScriptResponseNonNullableFields as EmbedScriptResponseNonNullableFields, type index_d_GetEmbeddedScriptByInstanceIdRequest as GetEmbeddedScriptByInstanceIdRequest, type index_d_GetEmbeddedScriptOptions as GetEmbeddedScriptOptions, type index_d_GetEmbeddedScriptRequest as GetEmbeddedScriptRequest, type index_d_GetEmbeddedScriptResponse as GetEmbeddedScriptResponse, type index_d_GetEmbeddedScriptResponseNonNullableFields as GetEmbeddedScriptResponseNonNullableFields, type index_d_ScriptProperties as ScriptProperties, type index_d_ScriptPropertiesNonNullableFields as ScriptPropertiesNonNullableFields, index_d_embedScript as embedScript, index_d_getEmbeddedScript as getEmbeddedScript };
|
|
1384
1357
|
}
|
|
1385
1358
|
|
|
1386
1359
|
export { index_d$3 as appInstances, index_d$4 as appPlans, index_d$2 as biEvents, index_d$1 as billing, index_d as embeddedScripts };
|
|
@@ -319,10 +319,60 @@ interface ChargeLimitUpdatedEventEnvelope {
|
|
|
319
319
|
metadata: Context;
|
|
320
320
|
}
|
|
321
321
|
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* Wix calls this method to retrieve the initial charge limit for a paid instance
|
|
325
|
+
* of your app. This happens every time a customer is upgrading to a paid version of
|
|
326
|
+
* your app.
|
|
327
|
+
*
|
|
328
|
+
* You can't update the charge limit after you've set an initial
|
|
329
|
+
* value. Customers can increase the limit in their site's dashboard, currently they
|
|
330
|
+
* aren't allowed to decrease it. */
|
|
322
331
|
getChargeLimit(payload: GetChargeLimitEnvelope): GetChargeLimitResponse | Promise<GetChargeLimitResponse>;
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* Wix calls this method to retrieve a list of charges for a paid instance
|
|
335
|
+
* of your app. This happens when Wix creates an invoice or in case the customer
|
|
336
|
+
* wants to preview how much your app would charge them at the moment.
|
|
337
|
+
*
|
|
338
|
+
* You must return the charges in the currency that's specified in the request,
|
|
339
|
+
* you aren't allowed to return more than 5 charges, and their sum must be lower
|
|
340
|
+
* than the charge limit.
|
|
341
|
+
*
|
|
342
|
+
* You may not bill customers for any usage that didn’t occur during the period
|
|
343
|
+
* Wix specifies when retrieving the charges. If Wix discovers that your app has
|
|
344
|
+
* charged customers for usage outside of an invoice's specified period, we may
|
|
345
|
+
* take action such as blocking your app from charging the customer, removing
|
|
346
|
+
* your app from the Wix App Market, revoking your access to the Wix developer
|
|
347
|
+
* program, or pursuing legal action to recover damages caused by overcharging.
|
|
348
|
+
* We understand that mistakes can happen and encourage you to contact
|
|
349
|
+
* [the Wix App Market team](https://devforum.wix.com/kb/en/contact) immediately if you
|
|
350
|
+
* become aware of any overcharging issues so that we can work together to
|
|
351
|
+
* resolve the situation. */
|
|
323
352
|
listCharges(payload: ListChargesEnvelope): ListChargesResponse | Promise<ListChargesResponse>;
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* Triggered in case Wix doesn't accept the charges you've returned in the
|
|
356
|
+
* List Charges method.
|
|
357
|
+
*
|
|
358
|
+
*
|
|
359
|
+
* You aren't allowed to charge a site owner more than the charge limit. Wix
|
|
360
|
+
* call List Charges in regular intervals until the sum of all charges is lower than the
|
|
361
|
+
* charge limit. Wix doesn't create an invoice in case the charges aren't accepted. */
|
|
324
362
|
chargesRejectedEvent(payload: ChargesRejectedEventEnvelope): ChargesRejectedResponse | Promise<ChargesRejectedResponse>;
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
* Triggered in case Wix creates an invoice that includes charges for an instance
|
|
366
|
+
* of your app. */
|
|
325
367
|
invoiceCreatedEvent(payload: InvoiceCreatedEventEnvelope): InvoiceCreatedResponse | Promise<InvoiceCreatedResponse>;
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
* Triggered in case the charge limit for an instance of your app is updated.
|
|
371
|
+
*
|
|
372
|
+
*
|
|
373
|
+
* You can't update the charge limit after you've set an initial
|
|
374
|
+
* value. Site owners can increase the limit in their site's dashboard,
|
|
375
|
+
* currently they aren't allowed to decrease it. */
|
|
326
376
|
chargeLimitUpdatedEvent(payload: ChargeLimitUpdatedEventEnvelope): ChargeLimitUpdatedResponse | Promise<ChargeLimitUpdatedResponse>;
|
|
327
377
|
}>;
|
|
328
378
|
|
|
@@ -289,6 +289,7 @@ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
|
289
289
|
__contract: Contract;
|
|
290
290
|
};
|
|
291
291
|
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
292
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
292
293
|
|
|
293
294
|
declare global {
|
|
294
295
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -317,27 +318,79 @@ interface ChargeLimitUpdatedEventEnvelope {
|
|
|
317
318
|
request: ChargeLimitUpdatedRequest;
|
|
318
319
|
metadata: Context;
|
|
319
320
|
}
|
|
320
|
-
declare const provideHandlers: ServicePluginDefinition<{
|
|
321
|
+
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* Wix calls this method to retrieve the initial charge limit for a paid instance
|
|
325
|
+
* of your app. This happens every time a customer is upgrading to a paid version of
|
|
326
|
+
* your app.
|
|
327
|
+
*
|
|
328
|
+
* You can't update the charge limit after you've set an initial
|
|
329
|
+
* value. Customers can increase the limit in their site's dashboard, currently they
|
|
330
|
+
* aren't allowed to decrease it. */
|
|
321
331
|
getChargeLimit(payload: GetChargeLimitEnvelope): GetChargeLimitResponse | Promise<GetChargeLimitResponse>;
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* Wix calls this method to retrieve a list of charges for a paid instance
|
|
335
|
+
* of your app. This happens when Wix creates an invoice or in case the customer
|
|
336
|
+
* wants to preview how much your app would charge them at the moment.
|
|
337
|
+
*
|
|
338
|
+
* You must return the charges in the currency that's specified in the request,
|
|
339
|
+
* you aren't allowed to return more than 5 charges, and their sum must be lower
|
|
340
|
+
* than the charge limit.
|
|
341
|
+
*
|
|
342
|
+
* You may not bill customers for any usage that didn’t occur during the period
|
|
343
|
+
* Wix specifies when retrieving the charges. If Wix discovers that your app has
|
|
344
|
+
* charged customers for usage outside of an invoice's specified period, we may
|
|
345
|
+
* take action such as blocking your app from charging the customer, removing
|
|
346
|
+
* your app from the Wix App Market, revoking your access to the Wix developer
|
|
347
|
+
* program, or pursuing legal action to recover damages caused by overcharging.
|
|
348
|
+
* We understand that mistakes can happen and encourage you to contact
|
|
349
|
+
* [the Wix App Market team](https://devforum.wix.com/kb/en/contact) immediately if you
|
|
350
|
+
* become aware of any overcharging issues so that we can work together to
|
|
351
|
+
* resolve the situation. */
|
|
322
352
|
listCharges(payload: ListChargesEnvelope): ListChargesResponse | Promise<ListChargesResponse>;
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* Triggered in case Wix doesn't accept the charges you've returned in the
|
|
356
|
+
* List Charges method.
|
|
357
|
+
*
|
|
358
|
+
*
|
|
359
|
+
* You aren't allowed to charge a site owner more than the charge limit. Wix
|
|
360
|
+
* call List Charges in regular intervals until the sum of all charges is lower than the
|
|
361
|
+
* charge limit. Wix doesn't create an invoice in case the charges aren't accepted. */
|
|
323
362
|
chargesRejectedEvent(payload: ChargesRejectedEventEnvelope): ChargesRejectedResponse | Promise<ChargesRejectedResponse>;
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
* Triggered in case Wix creates an invoice that includes charges for an instance
|
|
366
|
+
* of your app. */
|
|
324
367
|
invoiceCreatedEvent(payload: InvoiceCreatedEventEnvelope): InvoiceCreatedResponse | Promise<InvoiceCreatedResponse>;
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
* Triggered in case the charge limit for an instance of your app is updated.
|
|
371
|
+
*
|
|
372
|
+
*
|
|
373
|
+
* You can't update the charge limit after you've set an initial
|
|
374
|
+
* value. Site owners can increase the limit in their site's dashboard,
|
|
375
|
+
* currently they aren't allowed to decrease it. */
|
|
325
376
|
chargeLimitUpdatedEvent(payload: ChargeLimitUpdatedEventEnvelope): ChargeLimitUpdatedResponse | Promise<ChargeLimitUpdatedResponse>;
|
|
326
377
|
}>;
|
|
327
378
|
|
|
379
|
+
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
380
|
+
|
|
381
|
+
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
382
|
+
declare const provideHandlers: ReturnType<typeof createServicePluginModule<_publicProvideHandlersType>>;
|
|
383
|
+
|
|
328
384
|
type index_d_AlternativeUri = AlternativeUri;
|
|
329
|
-
type index_d_ChargeLimitUpdatedEventEnvelope = ChargeLimitUpdatedEventEnvelope;
|
|
330
385
|
type index_d_ChargeLimitUpdatedRequest = ChargeLimitUpdatedRequest;
|
|
331
386
|
type index_d_ChargeLimitUpdatedResponse = ChargeLimitUpdatedResponse;
|
|
332
387
|
type index_d_ChargeLineItem = ChargeLineItem;
|
|
333
|
-
type index_d_ChargesRejectedEventEnvelope = ChargesRejectedEventEnvelope;
|
|
334
388
|
type index_d_ChargesRejectedReason = ChargesRejectedReason;
|
|
335
389
|
declare const index_d_ChargesRejectedReason: typeof ChargesRejectedReason;
|
|
336
390
|
type index_d_ChargesRejectedRequest = ChargesRejectedRequest;
|
|
337
391
|
type index_d_ChargesRejectedResponse = ChargesRejectedResponse;
|
|
338
392
|
type index_d_Context = Context;
|
|
339
393
|
type index_d_CustomChargesConfig = CustomChargesConfig;
|
|
340
|
-
type index_d_GetChargeLimitEnvelope = GetChargeLimitEnvelope;
|
|
341
394
|
type index_d_GetChargeLimitRequest = GetChargeLimitRequest;
|
|
342
395
|
type index_d_GetChargeLimitResponse = GetChargeLimitResponse;
|
|
343
396
|
type index_d_IdentificationData = IdentificationData;
|
|
@@ -346,17 +399,16 @@ type index_d_IdentityType = IdentityType;
|
|
|
346
399
|
declare const index_d_IdentityType: typeof IdentityType;
|
|
347
400
|
type index_d_Intent = Intent;
|
|
348
401
|
declare const index_d_Intent: typeof Intent;
|
|
349
|
-
type index_d_InvoiceCreatedEventEnvelope = InvoiceCreatedEventEnvelope;
|
|
350
402
|
type index_d_InvoiceCreatedRequest = InvoiceCreatedRequest;
|
|
351
403
|
type index_d_InvoiceCreatedResponse = InvoiceCreatedResponse;
|
|
352
404
|
type index_d_InvoiceLineItem = InvoiceLineItem;
|
|
353
|
-
type index_d_ListChargesEnvelope = ListChargesEnvelope;
|
|
354
405
|
type index_d_ListChargesRequest = ListChargesRequest;
|
|
355
406
|
type index_d_ListChargesResponse = ListChargesResponse;
|
|
356
407
|
type index_d_SpiBaseUri = SpiBaseUri;
|
|
408
|
+
type index_d__publicProvideHandlersType = _publicProvideHandlersType;
|
|
357
409
|
declare const index_d_provideHandlers: typeof provideHandlers;
|
|
358
410
|
declare namespace index_d {
|
|
359
|
-
export { type index_d_AlternativeUri as AlternativeUri, type
|
|
411
|
+
export { type index_d_AlternativeUri as AlternativeUri, type index_d_ChargeLimitUpdatedRequest as ChargeLimitUpdatedRequest, type index_d_ChargeLimitUpdatedResponse as ChargeLimitUpdatedResponse, type index_d_ChargeLineItem as ChargeLineItem, index_d_ChargesRejectedReason as ChargesRejectedReason, type index_d_ChargesRejectedRequest as ChargesRejectedRequest, type index_d_ChargesRejectedResponse as ChargesRejectedResponse, type index_d_Context as Context, type index_d_CustomChargesConfig as CustomChargesConfig, type index_d_GetChargeLimitRequest as GetChargeLimitRequest, type index_d_GetChargeLimitResponse as GetChargeLimitResponse, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentityType as IdentityType, index_d_Intent as Intent, type index_d_InvoiceCreatedRequest as InvoiceCreatedRequest, type index_d_InvoiceCreatedResponse as InvoiceCreatedResponse, type index_d_InvoiceLineItem as InvoiceLineItem, type index_d_ListChargesRequest as ListChargesRequest, type index_d_ListChargesResponse as ListChargesResponse, type index_d_SpiBaseUri as SpiBaseUri, type index_d__publicProvideHandlersType as _publicProvideHandlersType, index_d_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
|
|
360
412
|
}
|
|
361
413
|
|
|
362
414
|
export { index_d as customCharges };
|