@wix/auto_sdk_app-management_app-instances 1.0.13 → 1.0.14
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/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +16 -1
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +16 -1
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +1 -1
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +5 -2
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +25 -1
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +1 -1
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +54 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +1 -1
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +16 -1
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +15 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +1 -1
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +5 -2
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +24 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +1 -1
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +54 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +1 -1
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +16 -1
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +16 -1
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +1 -1
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +5 -2
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +25 -1
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +1 -1
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +54 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +1 -1
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +16 -1
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +15 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +1 -1
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +5 -2
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +24 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +1 -1
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +54 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -6,6 +6,9 @@ import { onAppInstanceRemoved as publicOnAppInstanceRemoved } from './devcenter-
|
|
|
6
6
|
import { onAppInstancePaidPlanAutoRenewalCancelled as publicOnAppInstancePaidPlanAutoRenewalCancelled } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
7
7
|
import { onAppInstancePaidPlanChanged as publicOnAppInstancePaidPlanChanged } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
8
8
|
import { onAppInstancePaidPlanPurchased as publicOnAppInstancePaidPlanPurchased } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
9
|
+
import { onAppInstancePlanConvertedToPaid as publicOnAppInstancePlanConvertedToPaid } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
10
|
+
import { onAppInstancePlanReactivated as publicOnAppInstancePlanReactivated } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
11
|
+
import { onAppInstancePlanTransferred as publicOnAppInstancePlanTransferred } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
9
12
|
export declare const getAppInstance: MaybeContext<BuildRESTFunction<typeof publicGetAppInstance> & typeof publicGetAppInstance>;
|
|
10
13
|
/**
|
|
11
14
|
* Triggered when an instance of your app is installed on a Wix site.
|
|
@@ -29,5 +32,17 @@ export declare const onAppInstancePaidPlanChanged: ReturnType<typeof createEvent
|
|
|
29
32
|
* Triggered when a Wix user purchases a paid plan for your app.
|
|
30
33
|
*/
|
|
31
34
|
export declare const onAppInstancePaidPlanPurchased: ReturnType<typeof createEventModule<typeof publicOnAppInstancePaidPlanPurchased>>;
|
|
35
|
+
/**
|
|
36
|
+
* Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
|
|
37
|
+
*/
|
|
38
|
+
export declare const onAppInstancePlanConvertedToPaid: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanConvertedToPaid>>;
|
|
39
|
+
/**
|
|
40
|
+
* Triggered when a Wix user reactivates a paid plan, for example by turning on auto-renewal.
|
|
41
|
+
*/
|
|
42
|
+
export declare const onAppInstancePlanReactivated: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanReactivated>>;
|
|
43
|
+
/**
|
|
44
|
+
* Triggered when a Wix user transfers a paid plan for your app from one Wix site to another.
|
|
45
|
+
*/
|
|
46
|
+
export declare const onAppInstancePlanTransferred: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanTransferred>>;
|
|
32
47
|
export { PaymentCycle, FreeTrialStatus, FreeTrialPeriod, ReactivationReason, ResolutionMethod, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
33
|
-
export { AppInstance, BillingInfo, FreeTrialInfo, AvailablePlan, AppInstalled, AppRemoved, PaidPlanPurchased, PaidPlanChanged, PaidPlanAutoRenewalCancelled, PlanTransferred, PlanReactivated, PlanConvertedToPaid, GetAppInstanceRequest, GetAppInstanceResponse, SiteInfo, Multilingual, SupportedLanguage, Locale, OwnerInfo, GetAppInstanceByInstanceIdRequest, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, AppInstanceInstalledEnvelope, AppInstanceRemovedEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
48
|
+
export { AppInstance, BillingInfo, FreeTrialInfo, AvailablePlan, AppInstalled, AppRemoved, PaidPlanPurchased, PaidPlanChanged, PaidPlanAutoRenewalCancelled, PlanTransferred, PlanReactivated, PlanConvertedToPaid, GetAppInstanceRequest, GetAppInstanceResponse, SiteInfo, Multilingual, SupportedLanguage, Locale, OwnerInfo, GetAppInstanceByInstanceIdRequest, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, AppInstanceInstalledEnvelope, AppInstanceRemovedEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookIdentityType = exports.ResolutionMethod = exports.ReactivationReason = exports.FreeTrialPeriod = exports.FreeTrialStatus = exports.PaymentCycle = exports.onAppInstancePaidPlanPurchased = exports.onAppInstancePaidPlanChanged = exports.onAppInstancePaidPlanAutoRenewalCancelled = exports.onAppInstanceRemoved = exports.onAppInstanceInstalled = exports.getAppInstance = void 0;
|
|
3
|
+
exports.WebhookIdentityType = exports.ResolutionMethod = exports.ReactivationReason = exports.FreeTrialPeriod = exports.FreeTrialStatus = exports.PaymentCycle = exports.onAppInstancePlanTransferred = exports.onAppInstancePlanReactivated = exports.onAppInstancePlanConvertedToPaid = exports.onAppInstancePaidPlanPurchased = exports.onAppInstancePaidPlanChanged = exports.onAppInstancePaidPlanAutoRenewalCancelled = exports.onAppInstanceRemoved = exports.onAppInstanceInstalled = exports.getAppInstance = void 0;
|
|
4
4
|
const devcenter_app_instance_v1_app_instance_app_instances_public_js_1 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
5
5
|
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
6
|
const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
|
|
@@ -9,6 +9,9 @@ const devcenter_app_instance_v1_app_instance_app_instances_public_js_3 = require
|
|
|
9
9
|
const devcenter_app_instance_v1_app_instance_app_instances_public_js_4 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
10
10
|
const devcenter_app_instance_v1_app_instance_app_instances_public_js_5 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
11
11
|
const devcenter_app_instance_v1_app_instance_app_instances_public_js_6 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
12
|
+
const devcenter_app_instance_v1_app_instance_app_instances_public_js_7 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
13
|
+
const devcenter_app_instance_v1_app_instance_app_instances_public_js_8 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
14
|
+
const devcenter_app_instance_v1_app_instance_app_instances_public_js_9 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
12
15
|
exports.getAppInstance = (0, rest_modules_1.createRESTModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_1.getAppInstance);
|
|
13
16
|
/**
|
|
14
17
|
* Triggered when an instance of your app is installed on a Wix site.
|
|
@@ -32,6 +35,18 @@ exports.onAppInstancePaidPlanChanged = (0, event_definition_modules_1.createEven
|
|
|
32
35
|
* Triggered when a Wix user purchases a paid plan for your app.
|
|
33
36
|
*/
|
|
34
37
|
exports.onAppInstancePaidPlanPurchased = (0, event_definition_modules_1.createEventModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_6.onAppInstancePaidPlanPurchased);
|
|
38
|
+
/**
|
|
39
|
+
* Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
|
|
40
|
+
*/
|
|
41
|
+
exports.onAppInstancePlanConvertedToPaid = (0, event_definition_modules_1.createEventModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_7.onAppInstancePlanConvertedToPaid);
|
|
42
|
+
/**
|
|
43
|
+
* Triggered when a Wix user reactivates a paid plan, for example by turning on auto-renewal.
|
|
44
|
+
*/
|
|
45
|
+
exports.onAppInstancePlanReactivated = (0, event_definition_modules_1.createEventModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_8.onAppInstancePlanReactivated);
|
|
46
|
+
/**
|
|
47
|
+
* Triggered when a Wix user transfers a paid plan for your app from one Wix site to another.
|
|
48
|
+
*/
|
|
49
|
+
exports.onAppInstancePlanTransferred = (0, event_definition_modules_1.createEventModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_9.onAppInstancePlanTransferred);
|
|
35
50
|
var devcenter_app_instance_v1_app_instance_app_instances_universal_js_1 = require("./devcenter-app-instance-v1-app-instance-app-instances.universal.js");
|
|
36
51
|
Object.defineProperty(exports, "PaymentCycle", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_1.PaymentCycle; } });
|
|
37
52
|
Object.defineProperty(exports, "FreeTrialStatus", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_1.FreeTrialStatus; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.context.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.context.ts"],"names":[],"mappings":";;;AAAA,qJAA0H;AAC1H,gEAAiE;AACjE,wFAA8E;AAE9E,qJAA0I;AAC1I,qJAAsI;AACtI,qJAAgL;AAChL,qJAAsJ;AACtJ,qJAA0J;
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.context.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.context.ts"],"names":[],"mappings":";;;AAAA,qJAA0H;AAC1H,gEAAiE;AACjE,wFAA8E;AAE9E,qJAA0I;AAC1I,qJAAsI;AACtI,qJAAgL;AAChL,qJAAsJ;AACtJ,qJAA0J;AAC1J,qJAA8J;AAC9J,qJAAsJ;AACtJ,qJAAsJ;AAEzI,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,+EAAoB,CAAC,CAAC;AACzD;;GAEG;AACU,QAAA,sBAAsB,GAE/B,IAAA,4CAAiB,EAAC,uFAA4B,CAAC,CAAC;AACpD;;GAEG;AACU,QAAA,oBAAoB,GAE7B,IAAA,4CAAiB,EAAC,qFAA0B,CAAC,CAAC;AAClD;;;;GAIG;AACU,QAAA,yCAAyC,GAIlD,IAAA,4CAAiB,EAAC,0GAA+C,CAAC,CAAC;AACvE;;GAEG;AACU,QAAA,4BAA4B,GAErC,IAAA,4CAAiB,EAAC,6FAAkC,CAAC,CAAC;AAC1D;;GAEG;AACU,QAAA,8BAA8B,GAEvC,IAAA,4CAAiB,EAAC,+FAAoC,CAAC,CAAC;AAC5D;;GAEG;AACU,QAAA,gCAAgC,GAEzC,IAAA,4CAAiB,EAAC,iGAAsC,CAAC,CAAC;AAC9D;;GAEG;AACU,QAAA,4BAA4B,GAErC,IAAA,4CAAiB,EAAC,6FAAkC,CAAC,CAAC;AAC1D;;GAEG;AACU,QAAA,4BAA4B,GAErC,IAAA,4CAAiB,EAAC,6FAAkC,CAAC,CAAC;AAE1D,yJAO6E;AAN3E,iKAAA,YAAY,OAAA;AACZ,oKAAA,eAAe,OAAA;AACf,oKAAA,eAAe,OAAA;AACf,uKAAA,kBAAkB,OAAA;AAClB,qKAAA,gBAAgB,OAAA;AAChB,wKAAA,mBAAmB,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstanceRemovedEnvelope, GetAppInstanceResponse } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
2
|
+
import { AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, AppInstanceRemovedEnvelope, GetAppInstanceResponse } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -23,4 +23,7 @@ export declare const onAppInstanceRemoved: EventDefinition<AppInstanceRemovedEnv
|
|
|
23
23
|
export declare const onAppInstancePaidPlanAutoRenewalCancelled: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
24
24
|
export declare const onAppInstancePaidPlanChanged: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
25
25
|
export declare const onAppInstancePaidPlanPurchased: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
26
|
-
export
|
|
26
|
+
export declare const onAppInstancePlanConvertedToPaid: EventDefinition<AppInstancePlanConvertedToPaidEnvelope, "PlanConvertedToPaid">;
|
|
27
|
+
export declare const onAppInstancePlanReactivated: EventDefinition<AppInstancePlanReactivatedEnvelope, "PlanReactivated">;
|
|
28
|
+
export declare const onAppInstancePlanTransferred: EventDefinition<AppInstancePlanTransferredEnvelope, "PlanTransferred">;
|
|
29
|
+
export { AppInstalled, AppInstance, AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, AppInstanceRemovedEnvelope, AppRemoved, AvailablePlan, BaseEventMetadata, BillingInfo, FreeTrialInfo, FreeTrialPeriod, FreeTrialStatus, GetAppInstanceByInstanceIdRequest, GetAppInstanceRequest, GetAppInstanceResponse, IdentificationData, IdentificationDataIdOneOf, Locale, MessageEnvelope, Multilingual, OwnerInfo, PaidPlanAutoRenewalCancelled, PaidPlanChanged, PaidPlanPurchased, PaymentCycle, PlanConvertedToPaid, PlanReactivated, PlanTransferred, ReactivationReason, ResolutionMethod, SiteInfo, SupportedLanguage, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookIdentityType = exports.ResolutionMethod = exports.ReactivationReason = exports.PaymentCycle = exports.FreeTrialStatus = exports.FreeTrialPeriod = exports.onAppInstancePaidPlanPurchased = exports.onAppInstancePaidPlanChanged = exports.onAppInstancePaidPlanAutoRenewalCancelled = exports.onAppInstanceRemoved = exports.onAppInstanceInstalled = exports.getAppInstance = exports.__metadata = void 0;
|
|
3
|
+
exports.WebhookIdentityType = exports.ResolutionMethod = exports.ReactivationReason = exports.PaymentCycle = exports.FreeTrialStatus = exports.FreeTrialPeriod = exports.onAppInstancePlanTransferred = exports.onAppInstancePlanReactivated = exports.onAppInstancePlanConvertedToPaid = exports.onAppInstancePaidPlanPurchased = exports.onAppInstancePaidPlanChanged = exports.onAppInstancePaidPlanAutoRenewalCancelled = exports.onAppInstanceRemoved = exports.onAppInstanceInstalled = exports.getAppInstance = exports.__metadata = void 0;
|
|
4
4
|
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
5
5
|
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
6
|
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -36,6 +36,30 @@ exports.onAppInstancePaidPlanPurchased = (0, sdk_types_1.EventDefinition)('PaidP
|
|
|
36
36
|
],
|
|
37
37
|
},
|
|
38
38
|
])))();
|
|
39
|
+
exports.onAppInstancePlanConvertedToPaid = (0, sdk_types_1.EventDefinition)('PlanConvertedToPaid', false, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
40
|
+
{
|
|
41
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
42
|
+
paths: [
|
|
43
|
+
{ path: 'data.operationTimeStamp' },
|
|
44
|
+
{ path: 'data.expiresOn' },
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
])))();
|
|
48
|
+
exports.onAppInstancePlanReactivated = (0, sdk_types_1.EventDefinition)('PlanReactivated', false, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
49
|
+
{
|
|
50
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
51
|
+
paths: [
|
|
52
|
+
{ path: 'data.operationTimeStamp' },
|
|
53
|
+
{ path: 'data.expiresOn' },
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
])))();
|
|
57
|
+
exports.onAppInstancePlanTransferred = (0, sdk_types_1.EventDefinition)('PlanTransferred', false, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
58
|
+
{
|
|
59
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
60
|
+
paths: [{ path: 'data.operationTimeStamp' }],
|
|
61
|
+
},
|
|
62
|
+
])))();
|
|
39
63
|
var devcenter_app_instance_v1_app_instance_app_instances_universal_js_2 = require("./devcenter-app-instance-v1-app-instance-app-instances.universal.js");
|
|
40
64
|
Object.defineProperty(exports, "FreeTrialPeriod", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_2.FreeTrialPeriod; } });
|
|
41
65
|
Object.defineProperty(exports, "FreeTrialStatus", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_2.FreeTrialStatus; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.public.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.public.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,2JAW6E;AAEhE,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC;AAElE,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,kFAAuB;IACrB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,wCAQC;AAiBY,QAAA,sBAAsB,GAAG,IAAA,2BAAe,EACnD,cAAc,EACd,KAAK,EACL,CAAC,KAAmC,EAAE,EAAE,CACtC,IAAA,gEAAuC,EAAC,KAAK,CAAC,CACjD,EAAgC,CAAC;AACrB,QAAA,oBAAoB,GAAG,IAAA,2BAAe,EACjD,YAAY,EACZ,KAAK,EACL,CAAC,KAAiC,EAAE,EAAE,CACpC,IAAA,gEAAuC,EAAC,KAAK,CAAC,CACjD,EAA8B,CAAC;AACn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AAC;AAC/B,QAAA,4BAA4B,GAAG,IAAA,2BAAe,EACzD,iBAAiB,EACjB,KAAK,EACL,CAAC,KAAyC,EAAE,EAAE,CAC5C,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,yBAAyB,EAAE;YACnC,EAAE,IAAI,EAAE,gBAAgB,EAAE;SAC3B;KACF;CACF,CAAC,CACH,CACJ,EAAsC,CAAC;AAC3B,QAAA,4BAA4B,GAAG,IAAA,2BAAe,EACzD,iBAAiB,EACjB,KAAK,EACL,CAAC,KAAyC,EAAE,EAAE,CAC5C,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC;KAC7C;CACF,CAAC,CACH,CACJ,EAAsC,CAAC;AAExC,yJAuC6E;AAvB3E,oKAAA,eAAe,OAAA;AACf,oKAAA,eAAe,OAAA;AAaf,iKAAA,YAAY,OAAA;AAIZ,uKAAA,kBAAkB,OAAA;AAClB,qKAAA,gBAAgB,OAAA;AAGhB,wKAAA,mBAAmB,OAAA"}
|
|
@@ -557,6 +557,60 @@ export interface AppInstancePaidPlanPurchasedEnvelope {
|
|
|
557
557
|
* @slug paid_plan_purchased
|
|
558
558
|
*/
|
|
559
559
|
export declare function onAppInstancePaidPlanPurchased(handler: (event: AppInstancePaidPlanPurchasedEnvelope) => void | Promise<void>): void;
|
|
560
|
+
export interface AppInstancePlanConvertedToPaidEnvelope {
|
|
561
|
+
data: PlanConvertedToPaid;
|
|
562
|
+
metadata: BaseEventMetadata;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
|
|
566
|
+
* @permissionScope Manage Your App
|
|
567
|
+
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
568
|
+
* @permissionScope Read site, business, and email details
|
|
569
|
+
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
570
|
+
* @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
|
|
571
|
+
* @webhook
|
|
572
|
+
* @eventType PlanConvertedToPaid
|
|
573
|
+
* @serviceIdentifier com.wixpress.market.aim.api.AppInstanceService
|
|
574
|
+
* @slug plan_converted_to_paid
|
|
575
|
+
* @documentationMaturity preview
|
|
576
|
+
*/
|
|
577
|
+
export declare function onAppInstancePlanConvertedToPaid(handler: (event: AppInstancePlanConvertedToPaidEnvelope) => void | Promise<void>): void;
|
|
578
|
+
export interface AppInstancePlanReactivatedEnvelope {
|
|
579
|
+
data: PlanReactivated;
|
|
580
|
+
metadata: BaseEventMetadata;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Triggered when a Wix user reactivates a paid plan, for example by turning on auto-renewal.
|
|
584
|
+
* @permissionScope Manage Your App
|
|
585
|
+
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
586
|
+
* @permissionScope Read site, business, and email details
|
|
587
|
+
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
588
|
+
* @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
|
|
589
|
+
* @webhook
|
|
590
|
+
* @eventType PlanReactivated
|
|
591
|
+
* @serviceIdentifier com.wixpress.market.aim.api.AppInstanceService
|
|
592
|
+
* @slug plan_reactivated
|
|
593
|
+
* @documentationMaturity preview
|
|
594
|
+
*/
|
|
595
|
+
export declare function onAppInstancePlanReactivated(handler: (event: AppInstancePlanReactivatedEnvelope) => void | Promise<void>): void;
|
|
596
|
+
export interface AppInstancePlanTransferredEnvelope {
|
|
597
|
+
data: PlanTransferred;
|
|
598
|
+
metadata: BaseEventMetadata;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Triggered when a Wix user transfers a paid plan for your app from one Wix site to another.
|
|
602
|
+
* @permissionScope Manage Your App
|
|
603
|
+
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
604
|
+
* @permissionScope Read site, business, and email details
|
|
605
|
+
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
606
|
+
* @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
|
|
607
|
+
* @webhook
|
|
608
|
+
* @eventType PlanTransferred
|
|
609
|
+
* @serviceIdentifier com.wixpress.market.aim.api.AppInstanceService
|
|
610
|
+
* @slug plan_transferred
|
|
611
|
+
* @documentationMaturity preview
|
|
612
|
+
*/
|
|
613
|
+
export declare function onAppInstancePlanTransferred(handler: (event: AppInstancePlanTransferredEnvelope) => void | Promise<void>): void;
|
|
560
614
|
type AppInstanceNonNullablePaths = `instanceId` | `appName` | `isFree` | `billing.packageName` | `billing.billingCycle` | `billing.timeStamp` | `billing.freeTrialInfo.status` | `permissions` | `availablePlans` | `availablePlans.${number}.packageName` | `availablePlans.${number}.source` | `isOriginSiteTemplate` | `copiedFromTemplate` | `freeTrialAvailable`;
|
|
561
615
|
/**
|
|
562
616
|
* Retrieves data about the instance of your app that's installed on a Wix
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.universal.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,+IAAiI;AAkGjI,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AAeD,IAAY,eASX;AATD,WAAY,eAAe;IACzB,4BAA4B;IAC5B,oDAAiC,CAAA;IACjC,+CAA+C;IAC/C,8CAA2B,CAAA;IAC3B,gCAAgC;IAChC,kCAAe,CAAA;IACf,wDAAwD;IACxD,kDAA+B,CAAA;AACjC,CAAC,EATW,eAAe,+BAAf,eAAe,QAS1B;AAgHD,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,iCAAiC;IACjC,0EAAuD,CAAA;IACvD,kCAAkC;IAClC,0DAAuC,CAAA;IACvC,sCAAsC;IACtC,kEAA+C,CAAA;AACjD,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AAwCD,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,mCAAmC;IACnC,iFAA2D,CAAA;IAC3D,oDAAoD;IACpD,mEAA6C,CAAA;AAC/C,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAwFD,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AA4FD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.universal.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,+IAAiI;AAkGjI,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB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AO,GAAG,IAAA,8DAAqC,EAAC,EAAE,CAAC,CAAC;IAE1D,MAAM,OAAO,GACX,8CAA8C,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAEzE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AArDD,wCAqDC"}
|
|
@@ -6,6 +6,9 @@ import { onAppInstanceRemoved as publicOnAppInstanceRemoved } from './devcenter-
|
|
|
6
6
|
import { onAppInstancePaidPlanAutoRenewalCancelled as publicOnAppInstancePaidPlanAutoRenewalCancelled } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
7
7
|
import { onAppInstancePaidPlanChanged as publicOnAppInstancePaidPlanChanged } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
8
8
|
import { onAppInstancePaidPlanPurchased as publicOnAppInstancePaidPlanPurchased } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
9
|
+
import { onAppInstancePlanConvertedToPaid as publicOnAppInstancePlanConvertedToPaid } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
10
|
+
import { onAppInstancePlanReactivated as publicOnAppInstancePlanReactivated } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
11
|
+
import { onAppInstancePlanTransferred as publicOnAppInstancePlanTransferred } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
9
12
|
export declare const getAppInstance: MaybeContext<BuildRESTFunction<typeof publicGetAppInstance> & typeof publicGetAppInstance>;
|
|
10
13
|
/**
|
|
11
14
|
* Triggered when an instance of your app is installed on a Wix site.
|
|
@@ -29,5 +32,17 @@ export declare const onAppInstancePaidPlanChanged: ReturnType<typeof createEvent
|
|
|
29
32
|
* Triggered when a Wix user purchases a paid plan for your app.
|
|
30
33
|
*/
|
|
31
34
|
export declare const onAppInstancePaidPlanPurchased: ReturnType<typeof createEventModule<typeof publicOnAppInstancePaidPlanPurchased>>;
|
|
35
|
+
/**
|
|
36
|
+
* Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
|
|
37
|
+
*/
|
|
38
|
+
export declare const onAppInstancePlanConvertedToPaid: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanConvertedToPaid>>;
|
|
39
|
+
/**
|
|
40
|
+
* Triggered when a Wix user reactivates a paid plan, for example by turning on auto-renewal.
|
|
41
|
+
*/
|
|
42
|
+
export declare const onAppInstancePlanReactivated: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanReactivated>>;
|
|
43
|
+
/**
|
|
44
|
+
* Triggered when a Wix user transfers a paid plan for your app from one Wix site to another.
|
|
45
|
+
*/
|
|
46
|
+
export declare const onAppInstancePlanTransferred: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanTransferred>>;
|
|
32
47
|
export { PaymentCycle, FreeTrialStatus, FreeTrialPeriod, ReactivationReason, ResolutionMethod, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
33
|
-
export { AppInstance, BillingInfo, FreeTrialInfo, AvailablePlan, AppInstalled, AppRemoved, PaidPlanPurchased, PaidPlanChanged, PaidPlanAutoRenewalCancelled, PlanTransferred, PlanReactivated, PlanConvertedToPaid, GetAppInstanceRequest, GetAppInstanceResponse, SiteInfo, Multilingual, SupportedLanguage, Locale, OwnerInfo, GetAppInstanceByInstanceIdRequest, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, AppInstanceInstalledEnvelope, AppInstanceRemovedEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
48
|
+
export { AppInstance, BillingInfo, FreeTrialInfo, AvailablePlan, AppInstalled, AppRemoved, PaidPlanPurchased, PaidPlanChanged, PaidPlanAutoRenewalCancelled, PlanTransferred, PlanReactivated, PlanConvertedToPaid, GetAppInstanceRequest, GetAppInstanceResponse, SiteInfo, Multilingual, SupportedLanguage, Locale, OwnerInfo, GetAppInstanceByInstanceIdRequest, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, AppInstanceInstalledEnvelope, AppInstanceRemovedEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
@@ -6,6 +6,9 @@ import { onAppInstanceRemoved as publicOnAppInstanceRemoved } from './devcenter-
|
|
|
6
6
|
import { onAppInstancePaidPlanAutoRenewalCancelled as publicOnAppInstancePaidPlanAutoRenewalCancelled } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
7
7
|
import { onAppInstancePaidPlanChanged as publicOnAppInstancePaidPlanChanged } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
8
8
|
import { onAppInstancePaidPlanPurchased as publicOnAppInstancePaidPlanPurchased } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
9
|
+
import { onAppInstancePlanConvertedToPaid as publicOnAppInstancePlanConvertedToPaid } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
10
|
+
import { onAppInstancePlanReactivated as publicOnAppInstancePlanReactivated } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
11
|
+
import { onAppInstancePlanTransferred as publicOnAppInstancePlanTransferred } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
9
12
|
export const getAppInstance = /*#__PURE__*/ createRESTModule(publicGetAppInstance);
|
|
10
13
|
/**
|
|
11
14
|
* Triggered when an instance of your app is installed on a Wix site.
|
|
@@ -29,5 +32,17 @@ export const onAppInstancePaidPlanChanged = createEventModule(publicOnAppInstanc
|
|
|
29
32
|
* Triggered when a Wix user purchases a paid plan for your app.
|
|
30
33
|
*/
|
|
31
34
|
export const onAppInstancePaidPlanPurchased = createEventModule(publicOnAppInstancePaidPlanPurchased);
|
|
35
|
+
/**
|
|
36
|
+
* Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
|
|
37
|
+
*/
|
|
38
|
+
export const onAppInstancePlanConvertedToPaid = createEventModule(publicOnAppInstancePlanConvertedToPaid);
|
|
39
|
+
/**
|
|
40
|
+
* Triggered when a Wix user reactivates a paid plan, for example by turning on auto-renewal.
|
|
41
|
+
*/
|
|
42
|
+
export const onAppInstancePlanReactivated = createEventModule(publicOnAppInstancePlanReactivated);
|
|
43
|
+
/**
|
|
44
|
+
* Triggered when a Wix user transfers a paid plan for your app from one Wix site to another.
|
|
45
|
+
*/
|
|
46
|
+
export const onAppInstancePlanTransferred = createEventModule(publicOnAppInstancePlanTransferred);
|
|
32
47
|
export { PaymentCycle, FreeTrialStatus, FreeTrialPeriod, ReactivationReason, ResolutionMethod, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
33
48
|
//# sourceMappingURL=devcenter-app-instance-v1-app-instance-app-instances.context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.context.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,kEAAkE,CAAC;AAC1H,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,sBAAsB,IAAI,4BAA4B,EAAE,MAAM,kEAAkE,CAAC;AAC1I,OAAO,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,kEAAkE,CAAC;AACtI,OAAO,EAAE,yCAAyC,IAAI,+CAA+C,EAAE,MAAM,kEAAkE,CAAC;AAChL,OAAO,EAAE,4BAA4B,IAAI,kCAAkC,EAAE,MAAM,kEAAkE,CAAC;AACtJ,OAAO,EAAE,8BAA8B,IAAI,oCAAoC,EAAE,MAAM,kEAAkE,CAAC;
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.context.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,kEAAkE,CAAC;AAC1H,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,sBAAsB,IAAI,4BAA4B,EAAE,MAAM,kEAAkE,CAAC;AAC1I,OAAO,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,kEAAkE,CAAC;AACtI,OAAO,EAAE,yCAAyC,IAAI,+CAA+C,EAAE,MAAM,kEAAkE,CAAC;AAChL,OAAO,EAAE,4BAA4B,IAAI,kCAAkC,EAAE,MAAM,kEAAkE,CAAC;AACtJ,OAAO,EAAE,8BAA8B,IAAI,oCAAoC,EAAE,MAAM,kEAAkE,CAAC;AAC1J,OA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velope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstanceRemovedEnvelope, GetAppInstanceResponse } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
2
|
+
import { AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, AppInstanceRemovedEnvelope, GetAppInstanceResponse } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -23,4 +23,7 @@ export declare const onAppInstanceRemoved: EventDefinition<AppInstanceRemovedEnv
|
|
|
23
23
|
export declare const onAppInstancePaidPlanAutoRenewalCancelled: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
24
24
|
export declare const onAppInstancePaidPlanChanged: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
25
25
|
export declare const onAppInstancePaidPlanPurchased: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
26
|
-
export
|
|
26
|
+
export declare const onAppInstancePlanConvertedToPaid: EventDefinition<AppInstancePlanConvertedToPaidEnvelope, "PlanConvertedToPaid">;
|
|
27
|
+
export declare const onAppInstancePlanReactivated: EventDefinition<AppInstancePlanReactivatedEnvelope, "PlanReactivated">;
|
|
28
|
+
export declare const onAppInstancePlanTransferred: EventDefinition<AppInstancePlanTransferredEnvelope, "PlanTransferred">;
|
|
29
|
+
export { AppInstalled, AppInstance, AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, AppInstanceRemovedEnvelope, AppRemoved, AvailablePlan, BaseEventMetadata, BillingInfo, FreeTrialInfo, FreeTrialPeriod, FreeTrialStatus, GetAppInstanceByInstanceIdRequest, GetAppInstanceRequest, GetAppInstanceResponse, IdentificationData, IdentificationDataIdOneOf, Locale, MessageEnvelope, Multilingual, OwnerInfo, PaidPlanAutoRenewalCancelled, PaidPlanChanged, PaidPlanPurchased, PaymentCycle, PlanConvertedToPaid, PlanReactivated, PlanTransferred, ReactivationReason, ResolutionMethod, SiteInfo, SupportedLanguage, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
@@ -32,5 +32,29 @@ export const onAppInstancePaidPlanPurchased = EventDefinition('PaidPlanPurchased
|
|
|
32
32
|
],
|
|
33
33
|
},
|
|
34
34
|
])))();
|
|
35
|
+
export const onAppInstancePlanConvertedToPaid = EventDefinition('PlanConvertedToPaid', false, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
36
|
+
{
|
|
37
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
38
|
+
paths: [
|
|
39
|
+
{ path: 'data.operationTimeStamp' },
|
|
40
|
+
{ path: 'data.expiresOn' },
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
])))();
|
|
44
|
+
export const onAppInstancePlanReactivated = EventDefinition('PlanReactivated', false, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
45
|
+
{
|
|
46
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
47
|
+
paths: [
|
|
48
|
+
{ path: 'data.operationTimeStamp' },
|
|
49
|
+
{ path: 'data.expiresOn' },
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
])))();
|
|
53
|
+
export const onAppInstancePlanTransferred = EventDefinition('PlanTransferred', false, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
54
|
+
{
|
|
55
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
56
|
+
paths: [{ path: 'data.operationTimeStamp' }],
|
|
57
|
+
},
|
|
58
|
+
])))();
|
|
35
59
|
export { FreeTrialPeriod, FreeTrialStatus, PaymentCycle, ReactivationReason, ResolutionMethod, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
36
60
|
//# sourceMappingURL=devcenter-app-instance-v1-app-instance-app-instances.public.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.public.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAc,MAAM,gBAAgB,CAAC;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.public.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAc,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAUL,cAAc,IAAI,uBAAuB,GAC1C,MAAM,qEAAqE,CAAC;AAE7E,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC;AAElE,MAAM,UAAU,cAAc,CAC5B,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,uBAAuB;IACrB,aAAa;IACb,EAA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AM,CAAC,MAAM,gCAAgC,GAAG,eAAe,CAC7D,qBAAqB,EACrB,KAAK,EACL,CAAC,KAA6C,EAAE,EAAE,CAChD,uCAAuC,CACrC,cAAc,CAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,oCAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,yBAAyB,EAAE;YACnC,EAAE,IAAI,EAAE,gBAAgB,EAAE;SAC3B;KACF;CACF,CAAC,CACH,CACJ,EAA0C,CAAC;AAC5C,MAAM,CAAC,MAAM,4BAA4B,GAAG,eAAe,CACzD,iBAAiB,EACjB,KAAK,EACL,CAAC,KAAyC,EAAE,EAAE,CAC5C,uCAAuC,CACrC,cAAc,CAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,oCAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,yBAAyB,EAAE;YACnC,EAAE,IAAI,EAAE,gBAAgB,EAAE;SAC3B;KACF;CACF,CAAC,CACH,CACJ,EAAsC,CAAC;AACxC,MAAM,CAAC,MAAM,4BAA4B,GAAG,eAAe,CACzD,iBAAiB,EACjB,KAAK,EACL,CAAC,KAAyC,EAAE,EAAE,CAC5C,uCAAuC,CACrC,cAAc,CAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,oCAAoC;QACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC;KAC7C;CACF,CAAC,CACH,CACJ,EAAsC,CAAC;AAExC,OAAO,EAgBL,eAAe,EACf,eAAe,EAaf,YAAY,EAIZ,kBAAkB,EAClB,gBAAgB,EAGhB,mBAAmB,GACpB,MAAM,qEAAqE,CAAC"}
|
|
@@ -557,6 +557,60 @@ export interface AppInstancePaidPlanPurchasedEnvelope {
|
|
|
557
557
|
* @slug paid_plan_purchased
|
|
558
558
|
*/
|
|
559
559
|
export declare function onAppInstancePaidPlanPurchased(handler: (event: AppInstancePaidPlanPurchasedEnvelope) => void | Promise<void>): void;
|
|
560
|
+
export interface AppInstancePlanConvertedToPaidEnvelope {
|
|
561
|
+
data: PlanConvertedToPaid;
|
|
562
|
+
metadata: BaseEventMetadata;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
|
|
566
|
+
* @permissionScope Manage Your App
|
|
567
|
+
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
568
|
+
* @permissionScope Read site, business, and email details
|
|
569
|
+
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
570
|
+
* @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
|
|
571
|
+
* @webhook
|
|
572
|
+
* @eventType PlanConvertedToPaid
|
|
573
|
+
* @serviceIdentifier com.wixpress.market.aim.api.AppInstanceService
|
|
574
|
+
* @slug plan_converted_to_paid
|
|
575
|
+
* @documentationMaturity preview
|
|
576
|
+
*/
|
|
577
|
+
export declare function onAppInstancePlanConvertedToPaid(handler: (event: AppInstancePlanConvertedToPaidEnvelope) => void | Promise<void>): void;
|
|
578
|
+
export interface AppInstancePlanReactivatedEnvelope {
|
|
579
|
+
data: PlanReactivated;
|
|
580
|
+
metadata: BaseEventMetadata;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Triggered when a Wix user reactivates a paid plan, for example by turning on auto-renewal.
|
|
584
|
+
* @permissionScope Manage Your App
|
|
585
|
+
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
586
|
+
* @permissionScope Read site, business, and email details
|
|
587
|
+
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
588
|
+
* @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
|
|
589
|
+
* @webhook
|
|
590
|
+
* @eventType PlanReactivated
|
|
591
|
+
* @serviceIdentifier com.wixpress.market.aim.api.AppInstanceService
|
|
592
|
+
* @slug plan_reactivated
|
|
593
|
+
* @documentationMaturity preview
|
|
594
|
+
*/
|
|
595
|
+
export declare function onAppInstancePlanReactivated(handler: (event: AppInstancePlanReactivatedEnvelope) => void | Promise<void>): void;
|
|
596
|
+
export interface AppInstancePlanTransferredEnvelope {
|
|
597
|
+
data: PlanTransferred;
|
|
598
|
+
metadata: BaseEventMetadata;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Triggered when a Wix user transfers a paid plan for your app from one Wix site to another.
|
|
602
|
+
* @permissionScope Manage Your App
|
|
603
|
+
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
604
|
+
* @permissionScope Read site, business, and email details
|
|
605
|
+
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
606
|
+
* @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
|
|
607
|
+
* @webhook
|
|
608
|
+
* @eventType PlanTransferred
|
|
609
|
+
* @serviceIdentifier com.wixpress.market.aim.api.AppInstanceService
|
|
610
|
+
* @slug plan_transferred
|
|
611
|
+
* @documentationMaturity preview
|
|
612
|
+
*/
|
|
613
|
+
export declare function onAppInstancePlanTransferred(handler: (event: AppInstancePlanTransferredEnvelope) => void | Promise<void>): void;
|
|
560
614
|
type AppInstanceNonNullablePaths = `instanceId` | `appName` | `isFree` | `billing.packageName` | `billing.billingCycle` | `billing.timeStamp` | `billing.freeTrialInfo.status` | `permissions` | `availablePlans` | `availablePlans.${number}.packageName` | `availablePlans.${number}.source` | `isOriginSiteTemplate` | `copiedFromTemplate` | `freeTrialAvailable`;
|
|
561
615
|
/**
|
|
562
616
|
* Retrieves data about the instance of your app that's installed on a Wix
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.universal.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;A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vC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B;
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.universal.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,8CAA8C,MAAM,gEAAgE,CAAC;AAkGjI,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AAeD,MAAM,CAAN,IAAY,eASX;AATD,WAAY,eAAe;IACzB,4BAA4B;IAC5B,oDAAiC,CAAA;IACjC,+CAA+C;IAC/C,8CAA2B,CAAA;IAC3B,gCAAgC;IAChC,kCAAe,CAAA;IACf,wDAAwD;IACxD,kDAA+B,CAAA;AACjC,CAAC,EATW,eAAe,KAAf,eAAe,QAS1B;AAgHD,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,iCAAiC;IACjC,0EAAuD,CAAA;IACvD,kCAAkC;IAClC,0DAAuC,CAAA;IACvC,sCAAsC;IACtC,kEAA+C,CAAA;AACjD,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B;AAwCD,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,mCAAmC;IACnC,iFAA2D,CAAA;IAC3D,oDAAoD;IACpD,mEAA6C,CAAA;AAC/C,CAAC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AC;AACH,CAAC"}
|
package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ import { onAppInstanceRemoved as publicOnAppInstanceRemoved } from './devcenter-
|
|
|
6
6
|
import { onAppInstancePaidPlanAutoRenewalCancelled as publicOnAppInstancePaidPlanAutoRenewalCancelled } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
7
7
|
import { onAppInstancePaidPlanChanged as publicOnAppInstancePaidPlanChanged } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
8
8
|
import { onAppInstancePaidPlanPurchased as publicOnAppInstancePaidPlanPurchased } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
9
|
+
import { onAppInstancePlanConvertedToPaid as publicOnAppInstancePlanConvertedToPaid } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
10
|
+
import { onAppInstancePlanReactivated as publicOnAppInstancePlanReactivated } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
11
|
+
import { onAppInstancePlanTransferred as publicOnAppInstancePlanTransferred } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
9
12
|
export declare const getAppInstance: MaybeContext<BuildRESTFunction<typeof publicGetAppInstance> & typeof publicGetAppInstance>;
|
|
10
13
|
/**
|
|
11
14
|
* Triggered when an instance of your app is installed on a Wix site.
|
|
@@ -29,5 +32,17 @@ export declare const onAppInstancePaidPlanChanged: ReturnType<typeof createEvent
|
|
|
29
32
|
* Triggered when a Wix user purchases a paid plan for your app.
|
|
30
33
|
*/
|
|
31
34
|
export declare const onAppInstancePaidPlanPurchased: ReturnType<typeof createEventModule<typeof publicOnAppInstancePaidPlanPurchased>>;
|
|
35
|
+
/**
|
|
36
|
+
* Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
|
|
37
|
+
*/
|
|
38
|
+
export declare const onAppInstancePlanConvertedToPaid: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanConvertedToPaid>>;
|
|
39
|
+
/**
|
|
40
|
+
* Triggered when a Wix user reactivates a paid plan, for example by turning on auto-renewal.
|
|
41
|
+
*/
|
|
42
|
+
export declare const onAppInstancePlanReactivated: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanReactivated>>;
|
|
43
|
+
/**
|
|
44
|
+
* Triggered when a Wix user transfers a paid plan for your app from one Wix site to another.
|
|
45
|
+
*/
|
|
46
|
+
export declare const onAppInstancePlanTransferred: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanTransferred>>;
|
|
32
47
|
export { PaymentCycle, FreeTrialStatus, FreeTrialPeriod, ReactivationReason, ResolutionMethod, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
33
|
-
export { AppInstance, BillingInfo, FreeTrialInfo, AvailablePlan, AppInstalled, AppRemoved, PaidPlanPurchased, PaidPlanChanged, PaidPlanAutoRenewalCancelled, PlanTransferred, PlanReactivated, PlanConvertedToPaid, GetAppInstanceRequest, GetAppInstanceResponse, SiteInfo, Multilingual, SupportedLanguage, Locale, OwnerInfo, GetAppInstanceByInstanceIdRequest, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, AppInstanceInstalledEnvelope, AppInstanceRemovedEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
48
|
+
export { AppInstance, BillingInfo, FreeTrialInfo, AvailablePlan, AppInstalled, AppRemoved, PaidPlanPurchased, PaidPlanChanged, PaidPlanAutoRenewalCancelled, PlanTransferred, PlanReactivated, PlanConvertedToPaid, GetAppInstanceRequest, GetAppInstanceResponse, SiteInfo, Multilingual, SupportedLanguage, Locale, OwnerInfo, GetAppInstanceByInstanceIdRequest, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, AppInstanceInstalledEnvelope, AppInstanceRemovedEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookIdentityType = exports.ResolutionMethod = exports.ReactivationReason = exports.FreeTrialPeriod = exports.FreeTrialStatus = exports.PaymentCycle = exports.onAppInstancePaidPlanPurchased = exports.onAppInstancePaidPlanChanged = exports.onAppInstancePaidPlanAutoRenewalCancelled = exports.onAppInstanceRemoved = exports.onAppInstanceInstalled = exports.getAppInstance = void 0;
|
|
3
|
+
exports.WebhookIdentityType = exports.ResolutionMethod = exports.ReactivationReason = exports.FreeTrialPeriod = exports.FreeTrialStatus = exports.PaymentCycle = exports.onAppInstancePlanTransferred = exports.onAppInstancePlanReactivated = exports.onAppInstancePlanConvertedToPaid = exports.onAppInstancePaidPlanPurchased = exports.onAppInstancePaidPlanChanged = exports.onAppInstancePaidPlanAutoRenewalCancelled = exports.onAppInstanceRemoved = exports.onAppInstanceInstalled = exports.getAppInstance = void 0;
|
|
4
4
|
const devcenter_app_instance_v1_app_instance_app_instances_public_js_1 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
5
5
|
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
6
|
const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
|
|
@@ -9,6 +9,9 @@ const devcenter_app_instance_v1_app_instance_app_instances_public_js_3 = require
|
|
|
9
9
|
const devcenter_app_instance_v1_app_instance_app_instances_public_js_4 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
10
10
|
const devcenter_app_instance_v1_app_instance_app_instances_public_js_5 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
11
11
|
const devcenter_app_instance_v1_app_instance_app_instances_public_js_6 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
12
|
+
const devcenter_app_instance_v1_app_instance_app_instances_public_js_7 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
13
|
+
const devcenter_app_instance_v1_app_instance_app_instances_public_js_8 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
14
|
+
const devcenter_app_instance_v1_app_instance_app_instances_public_js_9 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
12
15
|
exports.getAppInstance = (0, rest_modules_1.createRESTModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_1.getAppInstance);
|
|
13
16
|
/**
|
|
14
17
|
* Triggered when an instance of your app is installed on a Wix site.
|
|
@@ -32,6 +35,18 @@ exports.onAppInstancePaidPlanChanged = (0, event_definition_modules_1.createEven
|
|
|
32
35
|
* Triggered when a Wix user purchases a paid plan for your app.
|
|
33
36
|
*/
|
|
34
37
|
exports.onAppInstancePaidPlanPurchased = (0, event_definition_modules_1.createEventModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_6.onAppInstancePaidPlanPurchased);
|
|
38
|
+
/**
|
|
39
|
+
* Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
|
|
40
|
+
*/
|
|
41
|
+
exports.onAppInstancePlanConvertedToPaid = (0, event_definition_modules_1.createEventModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_7.onAppInstancePlanConvertedToPaid);
|
|
42
|
+
/**
|
|
43
|
+
* Triggered when a Wix user reactivates a paid plan, for example by turning on auto-renewal.
|
|
44
|
+
*/
|
|
45
|
+
exports.onAppInstancePlanReactivated = (0, event_definition_modules_1.createEventModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_8.onAppInstancePlanReactivated);
|
|
46
|
+
/**
|
|
47
|
+
* Triggered when a Wix user transfers a paid plan for your app from one Wix site to another.
|
|
48
|
+
*/
|
|
49
|
+
exports.onAppInstancePlanTransferred = (0, event_definition_modules_1.createEventModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_9.onAppInstancePlanTransferred);
|
|
35
50
|
var devcenter_app_instance_v1_app_instance_app_instances_universal_js_1 = require("./devcenter-app-instance-v1-app-instance-app-instances.universal.js");
|
|
36
51
|
Object.defineProperty(exports, "PaymentCycle", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_1.PaymentCycle; } });
|
|
37
52
|
Object.defineProperty(exports, "FreeTrialStatus", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_1.FreeTrialStatus; } });
|
package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.context.js","sourceRoot":"","sources":["../../../../src/devcenter-app-instance-v1-app-instance-app-instances.context.ts"],"names":[],"mappings":";;;AAAA,qJAA0H;AAC1H,gEAAiE;AACjE,wFAA8E;AAE9E,qJAA0I;AAC1I,qJAAsI;AACtI,qJAAgL;AAChL,qJAAsJ;AACtJ,qJAA0J;
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.context.js","sourceRoot":"","sources":["../../../../src/devcenter-app-instance-v1-app-instance-app-instances.context.ts"],"names":[],"mappings":";;;AAAA,qJAA0H;AAC1H,gEAAiE;AACjE,wFAA8E;AAE9E,qJAA0I;AAC1I,qJAAsI;AACtI,qJAAgL;AAChL,qJAAsJ;AACtJ,qJAA0J;AAC1J,qJAA8J;AAC9J,qJAAsJ;AACtJ,qJAAsJ;AAEzI,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,+EAAoB,CAAC,CAAC;AACzD;;GAEG;AACU,QAAA,sBAAsB,GAE/B,IAAA,4CAAiB,EAAC,uFAA4B,CAAC,CAAC;AACpD;;GAEG;AACU,QAAA,oBAAoB,GAE7B,IAAA,4CAAiB,EAAC,qFAA0B,CAAC,CAAC;AAClD;;;;GAIG;AACU,QAAA,yCAAyC,GAIlD,IAAA,4CAAiB,EAAC,0GAA+C,CAAC,CAAC;AACvE;;GAEG;AACU,QAAA,4BAA4B,GAErC,IAAA,4CAAiB,EAAC,6FAAkC,CAAC,CAAC;AAC1D;;GAEG;AACU,QAAA,8BAA8B,GAEvC,IAAA,4CAAiB,EAAC,+FAAoC,CAAC,CAAC;AAC5D;;GAEG;AACU,QAAA,gCAAgC,GAEzC,IAAA,4CAAiB,EAAC,iGAAsC,CAAC,CAAC;AAC9D;;GAEG;AACU,QAAA,4BAA4B,GAErC,IAAA,4CAAiB,EAAC,6FAAkC,CAAC,CAAC;AAC1D;;GAEG;AACU,QAAA,4BAA4B,GAErC,IAAA,4CAAiB,EAAC,6FAAkC,CAAC,CAAC;AAE1D,yJAO6E;AAN3E,iKAAA,YAAY,OAAA;AACZ,oKAAA,eAAe,OAAA;AACf,oKAAA,eAAe,OAAA;AACf,uKAAA,kBAAkB,OAAA;AAClB,qKAAA,gBAAgB,OAAA;AAChB,wKAAA,mBAAmB,OAAA"}
|
package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstanceRemovedEnvelope, GetAppInstanceResponse } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
2
|
+
import { AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, AppInstanceRemovedEnvelope, GetAppInstanceResponse } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -23,4 +23,7 @@ export declare const onAppInstanceRemoved: EventDefinition<AppInstanceRemovedEnv
|
|
|
23
23
|
export declare const onAppInstancePaidPlanAutoRenewalCancelled: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
24
24
|
export declare const onAppInstancePaidPlanChanged: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
25
25
|
export declare const onAppInstancePaidPlanPurchased: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
26
|
-
export
|
|
26
|
+
export declare const onAppInstancePlanConvertedToPaid: EventDefinition<AppInstancePlanConvertedToPaidEnvelope, "PlanConvertedToPaid">;
|
|
27
|
+
export declare const onAppInstancePlanReactivated: EventDefinition<AppInstancePlanReactivatedEnvelope, "PlanReactivated">;
|
|
28
|
+
export declare const onAppInstancePlanTransferred: EventDefinition<AppInstancePlanTransferredEnvelope, "PlanTransferred">;
|
|
29
|
+
export { AppInstalled, AppInstance, AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, AppInstanceRemovedEnvelope, AppRemoved, AvailablePlan, BaseEventMetadata, BillingInfo, FreeTrialInfo, FreeTrialPeriod, FreeTrialStatus, GetAppInstanceByInstanceIdRequest, GetAppInstanceRequest, GetAppInstanceResponse, IdentificationData, IdentificationDataIdOneOf, Locale, MessageEnvelope, Multilingual, OwnerInfo, PaidPlanAutoRenewalCancelled, PaidPlanChanged, PaidPlanPurchased, PaymentCycle, PlanConvertedToPaid, PlanReactivated, PlanTransferred, ReactivationReason, ResolutionMethod, SiteInfo, SupportedLanguage, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookIdentityType = exports.ResolutionMethod = exports.ReactivationReason = exports.PaymentCycle = exports.FreeTrialStatus = exports.FreeTrialPeriod = exports.onAppInstancePaidPlanPurchased = exports.onAppInstancePaidPlanChanged = exports.onAppInstancePaidPlanAutoRenewalCancelled = exports.onAppInstanceRemoved = exports.onAppInstanceInstalled = exports.getAppInstance = exports.__metadata = void 0;
|
|
3
|
+
exports.WebhookIdentityType = exports.ResolutionMethod = exports.ReactivationReason = exports.PaymentCycle = exports.FreeTrialStatus = exports.FreeTrialPeriod = exports.onAppInstancePlanTransferred = exports.onAppInstancePlanReactivated = exports.onAppInstancePlanConvertedToPaid = exports.onAppInstancePaidPlanPurchased = exports.onAppInstancePaidPlanChanged = exports.onAppInstancePaidPlanAutoRenewalCancelled = exports.onAppInstanceRemoved = exports.onAppInstanceInstalled = exports.getAppInstance = exports.__metadata = void 0;
|
|
4
4
|
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
5
5
|
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
6
|
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -36,6 +36,30 @@ exports.onAppInstancePaidPlanPurchased = (0, sdk_types_1.EventDefinition)('PaidP
|
|
|
36
36
|
],
|
|
37
37
|
},
|
|
38
38
|
])))();
|
|
39
|
+
exports.onAppInstancePlanConvertedToPaid = (0, sdk_types_1.EventDefinition)('PlanConvertedToPaid', false, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
40
|
+
{
|
|
41
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
42
|
+
paths: [
|
|
43
|
+
{ path: 'data.operationTimeStamp' },
|
|
44
|
+
{ path: 'data.expiresOn' },
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
])))();
|
|
48
|
+
exports.onAppInstancePlanReactivated = (0, sdk_types_1.EventDefinition)('PlanReactivated', false, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
49
|
+
{
|
|
50
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
51
|
+
paths: [
|
|
52
|
+
{ path: 'data.operationTimeStamp' },
|
|
53
|
+
{ path: 'data.expiresOn' },
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
])))();
|
|
57
|
+
exports.onAppInstancePlanTransferred = (0, sdk_types_1.EventDefinition)('PlanTransferred', false, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
58
|
+
{
|
|
59
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
60
|
+
paths: [{ path: 'data.operationTimeStamp' }],
|
|
61
|
+
},
|
|
62
|
+
])))();
|
|
39
63
|
var devcenter_app_instance_v1_app_instance_app_instances_universal_js_2 = require("./devcenter-app-instance-v1-app-instance-app-instances.universal.js");
|
|
40
64
|
Object.defineProperty(exports, "FreeTrialPeriod", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_2.FreeTrialPeriod; } });
|
|
41
65
|
Object.defineProperty(exports, "FreeTrialStatus", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_2.FreeTrialStatus; } });
|
package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.public.js","sourceRoot":"","sources":["../../../../src/devcenter-app-instance-v1-app-instance-app-instances.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.public.js","sourceRoot":"","sources":["../../../../src/devcenter-app-instance-v1-app-instance-app-instances.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,2JAW6E;AAEhE,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC;AAElE,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,kFAAuB;IACrB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,wCAQC;AAiBY,QAAA,sBAAsB,GAAG,IAAA,2BAAe,EACnD,cAAc,EACd,KAAK,EACL,CAAC,KAAmC,EAAE,EAAE,CACtC,IAAA,gEAAuC,EAAC,KAAK,CAAC,CACjD,EAAgC,CAAC;AACrB,QAAA,oBAAoB,GAAG,IAAA,2BAAe,EACjD,YAAY,EACZ,KAAK,EACL,CAAC,KAAiC,EAAE,EAAE,CACpC,IAAA,gEAAuC,EAAC,KAAK,CAAC,CACjD,EAA8B,CAAC;AACnB,QAAA,yCAAyC,GAAG,IAAA,2BAAe,EACtE,8BAA8B,EAC9B,KAAK,EACL,CAAC,KAAsD,EAAE,EAAE,CACzD,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC;KAC7C;CACF,CAAC,CACH,CACJ,EAAmD,CAAC;AACxC,Q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ACF;CACF,CAAC,CACH,CACJ,EAAsC,CAAC;AAC3B,QAAA,4BAA4B,GAAG,IAAA,2BAAe,EACzD,iBAAiB,EACjB,KAAK,EACL,CAAC,KAAyC,EAAE,EAAE,CAC5C,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC;KAC7C;CACF,CAAC,CACH,CACJ,EAAsC,CAAC;AAExC,yJAuC6E;AAvB3E,oKAAA,eAAe,OAAA;AACf,oKAAA,eAAe,OAAA;AAaf,iKAAA,YAAY,OAAA;AAIZ,uKAAA,kBAAkB,OAAA;AAClB,qKAAA,gBAAgB,OAAA;AAGhB,wKAAA,mBAAmB,OAAA"}
|
package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts
CHANGED
|
@@ -557,6 +557,60 @@ export interface AppInstancePaidPlanPurchasedEnvelope {
|
|
|
557
557
|
* @slug paid_plan_purchased
|
|
558
558
|
*/
|
|
559
559
|
export declare function onAppInstancePaidPlanPurchased(handler: (event: AppInstancePaidPlanPurchasedEnvelope) => void | Promise<void>): void;
|
|
560
|
+
export interface AppInstancePlanConvertedToPaidEnvelope {
|
|
561
|
+
data: PlanConvertedToPaid;
|
|
562
|
+
metadata: BaseEventMetadata;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
|
|
566
|
+
* @permissionScope Manage Your App
|
|
567
|
+
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
568
|
+
* @permissionScope Read site, business, and email details
|
|
569
|
+
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
570
|
+
* @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
|
|
571
|
+
* @webhook
|
|
572
|
+
* @eventType PlanConvertedToPaid
|
|
573
|
+
* @serviceIdentifier com.wixpress.market.aim.api.AppInstanceService
|
|
574
|
+
* @slug plan_converted_to_paid
|
|
575
|
+
* @documentationMaturity preview
|
|
576
|
+
*/
|
|
577
|
+
export declare function onAppInstancePlanConvertedToPaid(handler: (event: AppInstancePlanConvertedToPaidEnvelope) => void | Promise<void>): void;
|
|
578
|
+
export interface AppInstancePlanReactivatedEnvelope {
|
|
579
|
+
data: PlanReactivated;
|
|
580
|
+
metadata: BaseEventMetadata;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Triggered when a Wix user reactivates a paid plan, for example by turning on auto-renewal.
|
|
584
|
+
* @permissionScope Manage Your App
|
|
585
|
+
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
586
|
+
* @permissionScope Read site, business, and email details
|
|
587
|
+
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
588
|
+
* @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
|
|
589
|
+
* @webhook
|
|
590
|
+
* @eventType PlanReactivated
|
|
591
|
+
* @serviceIdentifier com.wixpress.market.aim.api.AppInstanceService
|
|
592
|
+
* @slug plan_reactivated
|
|
593
|
+
* @documentationMaturity preview
|
|
594
|
+
*/
|
|
595
|
+
export declare function onAppInstancePlanReactivated(handler: (event: AppInstancePlanReactivatedEnvelope) => void | Promise<void>): void;
|
|
596
|
+
export interface AppInstancePlanTransferredEnvelope {
|
|
597
|
+
data: PlanTransferred;
|
|
598
|
+
metadata: BaseEventMetadata;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Triggered when a Wix user transfers a paid plan for your app from one Wix site to another.
|
|
602
|
+
* @permissionScope Manage Your App
|
|
603
|
+
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
604
|
+
* @permissionScope Read site, business, and email details
|
|
605
|
+
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
606
|
+
* @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
|
|
607
|
+
* @webhook
|
|
608
|
+
* @eventType PlanTransferred
|
|
609
|
+
* @serviceIdentifier com.wixpress.market.aim.api.AppInstanceService
|
|
610
|
+
* @slug plan_transferred
|
|
611
|
+
* @documentationMaturity preview
|
|
612
|
+
*/
|
|
613
|
+
export declare function onAppInstancePlanTransferred(handler: (event: AppInstancePlanTransferredEnvelope) => void | Promise<void>): void;
|
|
560
614
|
type AppInstanceNonNullablePaths = `instanceId` | `appName` | `isFree` | `billing.packageName` | `billing.billingCycle` | `billing.timeStamp` | `billing.freeTrialInfo.status` | `permissions` | `availablePlans` | `availablePlans.${number}.packageName` | `availablePlans.${number}.source` | `isOriginSiteTemplate` | `copiedFromTemplate` | `freeTrialAvailable`;
|
|
561
615
|
/**
|
|
562
616
|
* Retrieves data about the instance of your app that's installed on a Wix
|
package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.universal.js","sourceRoot":"","sources":["../../../../src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,+IAAiI;AAkGjI,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AAeD,IAAY,eASX;AATD,WAAY,eAAe;IACzB,4BAA4B;IAC5B,oDAAiC,CAAA;IACjC,+CAA+C;IAC/C,8CAA2B,CAAA;IAC3B,gCAAgC;IAChC,kCAAe,CAAA;IACf,wDAAwD;IACxD,kDAA+B,CAAA;AACjC,CAAC,EATW,eAAe,+BAAf,eAAe,QAS1B;AAgHD,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,iCAAiC;IACjC,0EAAuD,CAAA;IACvD,kCAAkC;IAClC,0DAAuC,CAAA;IACvC,sCAAsC;IACtC,kEAA+C,CAAA;AACjD,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AAwCD,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,mCAAmC;IACnC,iFAA2D,CAAA;IAC3D,oDAAoD;IACpD,mEAA6C,CAAA;AAC/C,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAwFD,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AA4FD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.universal.js","sourceRoot":"","sources":["../../../../src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,+IAAiI;AAkGjI,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AAeD,IAAY,eASX;A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CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AArDD,wCAqDC"}
|
package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ import { onAppInstanceRemoved as publicOnAppInstanceRemoved } from './devcenter-
|
|
|
6
6
|
import { onAppInstancePaidPlanAutoRenewalCancelled as publicOnAppInstancePaidPlanAutoRenewalCancelled } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
7
7
|
import { onAppInstancePaidPlanChanged as publicOnAppInstancePaidPlanChanged } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
8
8
|
import { onAppInstancePaidPlanPurchased as publicOnAppInstancePaidPlanPurchased } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
9
|
+
import { onAppInstancePlanConvertedToPaid as publicOnAppInstancePlanConvertedToPaid } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
10
|
+
import { onAppInstancePlanReactivated as publicOnAppInstancePlanReactivated } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
11
|
+
import { onAppInstancePlanTransferred as publicOnAppInstancePlanTransferred } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
9
12
|
export declare const getAppInstance: MaybeContext<BuildRESTFunction<typeof publicGetAppInstance> & typeof publicGetAppInstance>;
|
|
10
13
|
/**
|
|
11
14
|
* Triggered when an instance of your app is installed on a Wix site.
|
|
@@ -29,5 +32,17 @@ export declare const onAppInstancePaidPlanChanged: ReturnType<typeof createEvent
|
|
|
29
32
|
* Triggered when a Wix user purchases a paid plan for your app.
|
|
30
33
|
*/
|
|
31
34
|
export declare const onAppInstancePaidPlanPurchased: ReturnType<typeof createEventModule<typeof publicOnAppInstancePaidPlanPurchased>>;
|
|
35
|
+
/**
|
|
36
|
+
* Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
|
|
37
|
+
*/
|
|
38
|
+
export declare const onAppInstancePlanConvertedToPaid: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanConvertedToPaid>>;
|
|
39
|
+
/**
|
|
40
|
+
* Triggered when a Wix user reactivates a paid plan, for example by turning on auto-renewal.
|
|
41
|
+
*/
|
|
42
|
+
export declare const onAppInstancePlanReactivated: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanReactivated>>;
|
|
43
|
+
/**
|
|
44
|
+
* Triggered when a Wix user transfers a paid plan for your app from one Wix site to another.
|
|
45
|
+
*/
|
|
46
|
+
export declare const onAppInstancePlanTransferred: ReturnType<typeof createEventModule<typeof publicOnAppInstancePlanTransferred>>;
|
|
32
47
|
export { PaymentCycle, FreeTrialStatus, FreeTrialPeriod, ReactivationReason, ResolutionMethod, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
33
|
-
export { AppInstance, BillingInfo, FreeTrialInfo, AvailablePlan, AppInstalled, AppRemoved, PaidPlanPurchased, PaidPlanChanged, PaidPlanAutoRenewalCancelled, PlanTransferred, PlanReactivated, PlanConvertedToPaid, GetAppInstanceRequest, GetAppInstanceResponse, SiteInfo, Multilingual, SupportedLanguage, Locale, OwnerInfo, GetAppInstanceByInstanceIdRequest, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, AppInstanceInstalledEnvelope, AppInstanceRemovedEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
48
|
+
export { AppInstance, BillingInfo, FreeTrialInfo, AvailablePlan, AppInstalled, AppRemoved, PaidPlanPurchased, PaidPlanChanged, PaidPlanAutoRenewalCancelled, PlanTransferred, PlanReactivated, PlanConvertedToPaid, GetAppInstanceRequest, GetAppInstanceResponse, SiteInfo, Multilingual, SupportedLanguage, Locale, OwnerInfo, GetAppInstanceByInstanceIdRequest, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, AppInstanceInstalledEnvelope, AppInstanceRemovedEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js
CHANGED
|
@@ -6,6 +6,9 @@ import { onAppInstanceRemoved as publicOnAppInstanceRemoved } from './devcenter-
|
|
|
6
6
|
import { onAppInstancePaidPlanAutoRenewalCancelled as publicOnAppInstancePaidPlanAutoRenewalCancelled } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
7
7
|
import { onAppInstancePaidPlanChanged as publicOnAppInstancePaidPlanChanged } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
8
8
|
import { onAppInstancePaidPlanPurchased as publicOnAppInstancePaidPlanPurchased } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
9
|
+
import { onAppInstancePlanConvertedToPaid as publicOnAppInstancePlanConvertedToPaid } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
10
|
+
import { onAppInstancePlanReactivated as publicOnAppInstancePlanReactivated } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
11
|
+
import { onAppInstancePlanTransferred as publicOnAppInstancePlanTransferred } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
9
12
|
export const getAppInstance = /*#__PURE__*/ createRESTModule(publicGetAppInstance);
|
|
10
13
|
/**
|
|
11
14
|
* Triggered when an instance of your app is installed on a Wix site.
|
|
@@ -29,5 +32,17 @@ export const onAppInstancePaidPlanChanged = createEventModule(publicOnAppInstanc
|
|
|
29
32
|
* Triggered when a Wix user purchases a paid plan for your app.
|
|
30
33
|
*/
|
|
31
34
|
export const onAppInstancePaidPlanPurchased = createEventModule(publicOnAppInstancePaidPlanPurchased);
|
|
35
|
+
/**
|
|
36
|
+
* Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
|
|
37
|
+
*/
|
|
38
|
+
export const onAppInstancePlanConvertedToPaid = createEventModule(publicOnAppInstancePlanConvertedToPaid);
|
|
39
|
+
/**
|
|
40
|
+
* Triggered when a Wix user reactivates a paid plan, for example by turning on auto-renewal.
|
|
41
|
+
*/
|
|
42
|
+
export const onAppInstancePlanReactivated = createEventModule(publicOnAppInstancePlanReactivated);
|
|
43
|
+
/**
|
|
44
|
+
* Triggered when a Wix user transfers a paid plan for your app from one Wix site to another.
|
|
45
|
+
*/
|
|
46
|
+
export const onAppInstancePlanTransferred = createEventModule(publicOnAppInstancePlanTransferred);
|
|
32
47
|
export { PaymentCycle, FreeTrialStatus, FreeTrialPeriod, ReactivationReason, ResolutionMethod, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
33
48
|
//# sourceMappingURL=devcenter-app-instance-v1-app-instance-app-instances.context.js.map
|
package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.context.js","sourceRoot":"","sources":["../../../../src/devcenter-app-instance-v1-app-instance-app-instances.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,kEAAkE,CAAC;AAC1H,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,sBAAsB,IAAI,4BAA4B,EAAE,MAAM,kEAAkE,CAAC;AAC1I,OAAO,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,kEAAkE,CAAC;AACtI,OAAO,EAAE,yCAAyC,IAAI,+CAA+C,EAAE,MAAM,kEAAkE,CAAC;AAChL,OAAO,EAAE,4BAA4B,IAAI,kCAAkC,EAAE,MAAM,kEAAkE,CAAC;AACtJ,OAAO,EAAE,8BAA8B,IAAI,oCAAoC,EAAE,MAAM,kEAAkE,CAAC;
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.context.js","sourceRoot":"","sources":["../../../../src/devcenter-app-instance-v1-app-instance-app-instances.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,kEAAkE,CAAC;AAC1H,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,sBAAsB,IAAI,4BAA4B,EAAE,MAAM,kEAAkE,CAAC;AAC1I,OAAO,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,kEAAkE,CAAC;AACtI,OAAO,EAAE,yCAAyC,IAAI,+CAA+C,EAAE,MAAM,kEAAkE,CAAC;AAChL,OAAO,EAAE,4BAA4B,IAAI,kCAAkC,EAAE,MAAM,kEAAkE,CAAC;AACtJ,OAAO,EAAE,8BAA8B,IAAI,oCAAoC,EAAE,MAAM,kEAAkE,CAAC;AAC1J,OAAO,EAAE,gCAAgC,IAAI,sCAAsC,EAAE,MAAM,kEAAkE,CAAC;AAC9J,OAAO,EAAE,4BAA4B,IAAI,kCAAkC,EAAE,MAAM,kEAAkE,CAAC;AACtJ,OAAO,EAAE,4BAA4B,IAAI,kCAAkC,EAAE,MAAM,kEAAkE,CAAC;AAEtJ,MAAM,CAAC,MAAM,cAAc,GAEvB,aAAa,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AACzD;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAE/B,iBAAiB,CAAC,4BAA4B,CAAC,CAAC;AACpD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAE7B,iBAAiB,CAAC,0BAA0B,CAAC,CAAC;AAClD;;;;GAIG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAIlD,iBAAiB,CAAC,+CAA+C,CAAC,CAAC;AACvE;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAErC,iBAAiB,CAAC,kCAAkC,CAAC,CAAC;AAC1D;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAEvC,iBAAiB,CAAC,oCAAoC,CAAC,CAAC;AAC5D;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAEzC,iBAAiB,CAAC,sCAAsC,CAAC,CAAC;AAC9D;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAErC,iBAAiB,CAAC,kCAAkC,CAAC,CAAC;AAC1D;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAErC,iBAAiB,CAAC,kCAAkC,CAAC,CAAC;AAE1D,OAAO,EACL,YAAY,EACZ,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,qEAAqE,CAAC"}
|
package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstanceRemovedEnvelope, GetAppInstanceResponse } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
2
|
+
import { AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, AppInstanceRemovedEnvelope, GetAppInstanceResponse } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -23,4 +23,7 @@ export declare const onAppInstanceRemoved: EventDefinition<AppInstanceRemovedEnv
|
|
|
23
23
|
export declare const onAppInstancePaidPlanAutoRenewalCancelled: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
24
24
|
export declare const onAppInstancePaidPlanChanged: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
25
25
|
export declare const onAppInstancePaidPlanPurchased: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
26
|
-
export
|
|
26
|
+
export declare const onAppInstancePlanConvertedToPaid: EventDefinition<AppInstancePlanConvertedToPaidEnvelope, "PlanConvertedToPaid">;
|
|
27
|
+
export declare const onAppInstancePlanReactivated: EventDefinition<AppInstancePlanReactivatedEnvelope, "PlanReactivated">;
|
|
28
|
+
export declare const onAppInstancePlanTransferred: EventDefinition<AppInstancePlanTransferredEnvelope, "PlanTransferred">;
|
|
29
|
+
export { AppInstalled, AppInstance, AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, AppInstanceRemovedEnvelope, AppRemoved, AvailablePlan, BaseEventMetadata, BillingInfo, FreeTrialInfo, FreeTrialPeriod, FreeTrialStatus, GetAppInstanceByInstanceIdRequest, GetAppInstanceRequest, GetAppInstanceResponse, IdentificationData, IdentificationDataIdOneOf, Locale, MessageEnvelope, Multilingual, OwnerInfo, PaidPlanAutoRenewalCancelled, PaidPlanChanged, PaidPlanPurchased, PaymentCycle, PlanConvertedToPaid, PlanReactivated, PlanTransferred, ReactivationReason, ResolutionMethod, SiteInfo, SupportedLanguage, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js
CHANGED
|
@@ -32,5 +32,29 @@ export const onAppInstancePaidPlanPurchased = EventDefinition('PaidPlanPurchased
|
|
|
32
32
|
],
|
|
33
33
|
},
|
|
34
34
|
])))();
|
|
35
|
+
export const onAppInstancePlanConvertedToPaid = EventDefinition('PlanConvertedToPaid', false, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
36
|
+
{
|
|
37
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
38
|
+
paths: [
|
|
39
|
+
{ path: 'data.operationTimeStamp' },
|
|
40
|
+
{ path: 'data.expiresOn' },
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
])))();
|
|
44
|
+
export const onAppInstancePlanReactivated = EventDefinition('PlanReactivated', false, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
45
|
+
{
|
|
46
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
47
|
+
paths: [
|
|
48
|
+
{ path: 'data.operationTimeStamp' },
|
|
49
|
+
{ path: 'data.expiresOn' },
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
])))();
|
|
53
|
+
export const onAppInstancePlanTransferred = EventDefinition('PlanTransferred', false, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
54
|
+
{
|
|
55
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
56
|
+
paths: [{ path: 'data.operationTimeStamp' }],
|
|
57
|
+
},
|
|
58
|
+
])))();
|
|
35
59
|
export { FreeTrialPeriod, FreeTrialStatus, PaymentCycle, ReactivationReason, ResolutionMethod, WebhookIdentityType, } from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
36
60
|
//# sourceMappingURL=devcenter-app-instance-v1-app-instance-app-instances.public.js.map
|
package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.public.js","sourceRoot":"","sources":["../../../../src/devcenter-app-instance-v1-app-instance-app-instances.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAc,MAAM,gBAAgB,CAAC;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.public.js","sourceRoot":"","sources":["../../../../src/devcenter-app-instance-v1-app-instance-app-instances.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAc,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAUL,cAAc,IAAI,uBAAuB,GAC1C,MAAM,qEAAqE,CAAC;AAE7E,MAAM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ance-app-instances.universal.d.ts
CHANGED
|
@@ -557,6 +557,60 @@ export interface AppInstancePaidPlanPurchasedEnvelope {
|
|
|
557
557
|
* @slug paid_plan_purchased
|
|
558
558
|
*/
|
|
559
559
|
export declare function onAppInstancePaidPlanPurchased(handler: (event: AppInstancePaidPlanPurchasedEnvelope) => void | Promise<void>): void;
|
|
560
|
+
export interface AppInstancePlanConvertedToPaidEnvelope {
|
|
561
|
+
data: PlanConvertedToPaid;
|
|
562
|
+
metadata: BaseEventMetadata;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Triggered when a Wix user reaches the end of a free-trial period and is charged successfully.
|
|
566
|
+
* @permissionScope Manage Your App
|
|
567
|
+
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
568
|
+
* @permissionScope Read site, business, and email details
|
|
569
|
+
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
570
|
+
* @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
|
|
571
|
+
* @webhook
|
|
572
|
+
* @eventType PlanConvertedToPaid
|
|
573
|
+
* @serviceIdentifier com.wixpress.market.aim.api.AppInstanceService
|
|
574
|
+
* @slug plan_converted_to_paid
|
|
575
|
+
* @documentationMaturity preview
|
|
576
|
+
*/
|
|
577
|
+
export declare function onAppInstancePlanConvertedToPaid(handler: (event: AppInstancePlanConvertedToPaidEnvelope) => void | Promise<void>): void;
|
|
578
|
+
export interface AppInstancePlanReactivatedEnvelope {
|
|
579
|
+
data: PlanReactivated;
|
|
580
|
+
metadata: BaseEventMetadata;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Triggered when a Wix user reactivates a paid plan, for example by turning on auto-renewal.
|
|
584
|
+
* @permissionScope Manage Your App
|
|
585
|
+
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
586
|
+
* @permissionScope Read site, business, and email details
|
|
587
|
+
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
588
|
+
* @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
|
|
589
|
+
* @webhook
|
|
590
|
+
* @eventType PlanReactivated
|
|
591
|
+
* @serviceIdentifier com.wixpress.market.aim.api.AppInstanceService
|
|
592
|
+
* @slug plan_reactivated
|
|
593
|
+
* @documentationMaturity preview
|
|
594
|
+
*/
|
|
595
|
+
export declare function onAppInstancePlanReactivated(handler: (event: AppInstancePlanReactivatedEnvelope) => void | Promise<void>): void;
|
|
596
|
+
export interface AppInstancePlanTransferredEnvelope {
|
|
597
|
+
data: PlanTransferred;
|
|
598
|
+
metadata: BaseEventMetadata;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Triggered when a Wix user transfers a paid plan for your app from one Wix site to another.
|
|
602
|
+
* @permissionScope Manage Your App
|
|
603
|
+
* @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
|
|
604
|
+
* @permissionScope Read site, business, and email details
|
|
605
|
+
* @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
|
|
606
|
+
* @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
|
|
607
|
+
* @webhook
|
|
608
|
+
* @eventType PlanTransferred
|
|
609
|
+
* @serviceIdentifier com.wixpress.market.aim.api.AppInstanceService
|
|
610
|
+
* @slug plan_transferred
|
|
611
|
+
* @documentationMaturity preview
|
|
612
|
+
*/
|
|
613
|
+
export declare function onAppInstancePlanTransferred(handler: (event: AppInstancePlanTransferredEnvelope) => void | Promise<void>): void;
|
|
560
614
|
type AppInstanceNonNullablePaths = `instanceId` | `appName` | `isFree` | `billing.packageName` | `billing.billingCycle` | `billing.timeStamp` | `billing.freeTrialInfo.status` | `permissions` | `availablePlans` | `availablePlans.${number}.packageName` | `availablePlans.${number}.source` | `isOriginSiteTemplate` | `copiedFromTemplate` | `freeTrialAvailable`;
|
|
561
615
|
/**
|
|
562
616
|
* Retrieves data about the instance of your app that's installed on a Wix
|
package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.universal.js","sourceRoot":"","sources":["../../../../src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,8CAA8C,MAAM,gEAAgE,CAAC;AAkGjI,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AAeD,MAAM,CAAN,IAAY,eASX;AATD,WAAY,eAAe;IACzB,4BAA4B;IAC5B,oDAAiC,CAAA;IACjC,+CAA+C;IAC/C,8CAA2B,CAAA;IAC3B,gCAAgC;IAChC,kCAAe,CAAA;IACf,wDAAwD;IACxD,kDAA+B,CAAA;AACjC,CAAC,EATW,eAAe,KAAf,eAAe,QAS1B;AAgHD,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,iCAAiC;IACjC,0EAAuD,CAAA;IACvD,kCAAkC;IAClC,0DAAuC,CAAA;IACvC,sCAAsC;IACtC,kEAA+C,CAAA;AACjD,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B;AAwCD,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,mCAAmC;IACnC,iFAA2D,CAAA;IAC3D,oDAAoD;IACpD,mEAA6C,CAAA;AAC/C,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;AAwFD,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,2CAAuB,CAAA;IACvB,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AA4FD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B;
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.universal.js","sourceRoot":"","sources":["../../../../src/devcenter-app-instance-v1-app-instance-app-instances.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,8CAA8C,MAAM,gEAAgE,CAAC;AAkGjI,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AAeD,MAAM,CAAN,IAAY,eASX;AATD,WAAY,eAAe;IACzB,4BAA4B;IAC5B,oDAAiC,CAAA;IACjC,+CAA+C;IAC/C,8CAA2B,CAAA;IAC3B,gCAAgC;IAChC,kCAAe,CAAA;IACf,wDAAwD;IACxD,kDAA+B,CAAA;AACjC,CAAC,EATW,eAAe,KAAf,eAAe,QAS1B;AAgHD,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,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C,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_app-management_app-instances",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": "wix.devcenter.app_instance.v1.app_instance"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "44bf93e0aa94b43e740a79e78cee8cf741cced75668f4854d582fa53"
|
|
52
52
|
}
|