@wix/auto_sdk_app-management_app-instances 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +33 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +42 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +1 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.d.ts +13 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.js +112 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.js.map +1 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.d.ts +13 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js +47 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js.map +1 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +26 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +46 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +1 -0
- package/build/{devcenter-app-instance-v1-app-instance-app-instances.universal-B6ZXBoac.d.mts → cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts} +29 -65
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.js +56 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +1 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +593 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js +123 -0
- package/build/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +33 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +33 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +1 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.d.ts +13 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.js +108 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.js.map +1 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.d.ts +13 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js +20 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js.map +1 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +26 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +36 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +1 -0
- package/build/{devcenter-app-instance-v1-app-instance-app-instances.universal-B6ZXBoac.d.ts → es/src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts} +29 -65
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.js +53 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +1 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +593 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js +96 -0
- package/build/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +33 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +42 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +1 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.d.ts +13 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.js +112 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.http.js.map +1 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.d.ts +13 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js +47 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js.map +1 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +26 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +46 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +1 -0
- package/build/internal/{devcenter-app-instance-v1-app-instance-app-instances.universal-B6ZXBoac.d.ts → cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts} +29 -65
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.js +56 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +1 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +593 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js +123 -0
- package/build/internal/cjs/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.d.ts +33 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js +33 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.context.js.map +1 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.d.ts +13 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.js +108 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.http.js.map +1 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.d.ts +13 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js +20 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.meta.js.map +1 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.d.ts +26 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js +36 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.public.js.map +1 -0
- package/build/internal/{devcenter-app-instance-v1-app-instance-app-instances.universal-B6ZXBoac.d.mts → es/src/devcenter-app-instance-v1-app-instance-app-instances.types.d.ts} +29 -65
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.js +53 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.types.js.map +1 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.d.ts +593 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js +96 -0
- package/build/internal/es/src/devcenter-app-instance-v1-app-instance-app-instances.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.d.mts +0 -46
- package/build/index.d.ts +0 -46
- package/build/index.js +0 -295
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -260
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -46
- package/build/internal/index.d.ts +0 -46
- package/build/internal/index.js +0 -295
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -260
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -235
- package/build/internal/meta.d.ts +0 -235
- package/build/internal/meta.js +0 -148
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -121
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -235
- package/build/meta.d.ts +0 -235
- package/build/meta.js +0 -148
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -121
- package/build/meta.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/devcenter-app-instance-v1-app-instance-app-instances.context.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/devcenter-app-instance-v1-app-instance-app-instances.context.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wGAAsF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/devcenter-app-instance-v1-app-instance-app-instances.universal.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.typings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0GAAwF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/devcenter-app-instance-v1-app-instance-app-instances.meta.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/devcenter-app-instance-v1-app-instance-app-instances.meta.js"), exports);
|
|
18
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qGAAmF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { getAppInstance as publicGetAppInstance } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
2
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
3
|
+
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
4
|
+
import { onAppInstanceInstalled as publicOnAppInstanceInstalled } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
5
|
+
import { onAppInstanceRemoved as publicOnAppInstanceRemoved } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
6
|
+
import { onAppInstancePaidPlanAutoRenewalCancelled as publicOnAppInstancePaidPlanAutoRenewalCancelled } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
7
|
+
import { onAppInstancePaidPlanChanged as publicOnAppInstancePaidPlanChanged } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
8
|
+
import { onAppInstancePaidPlanPurchased as publicOnAppInstancePaidPlanPurchased } from './devcenter-app-instance-v1-app-instance-app-instances.public.js';
|
|
9
|
+
export declare const getAppInstance: MaybeContext<BuildRESTFunction<typeof publicGetAppInstance> & typeof publicGetAppInstance>;
|
|
10
|
+
/**
|
|
11
|
+
* Triggered when an instance of your app is installed on a Wix site.
|
|
12
|
+
*/
|
|
13
|
+
export declare const onAppInstanceInstalled: ReturnType<typeof createEventModule<typeof publicOnAppInstanceInstalled>>;
|
|
14
|
+
/**
|
|
15
|
+
* Triggered when an instance of your app is uninstalled from a Wix site.
|
|
16
|
+
*/
|
|
17
|
+
export declare const onAppInstanceRemoved: ReturnType<typeof createEventModule<typeof publicOnAppInstanceRemoved>>;
|
|
18
|
+
/**
|
|
19
|
+
* Triggered when a Wix user cancels a paid plan for your app. The
|
|
20
|
+
* Wix user can continue to use your app until the end of the current billing
|
|
21
|
+
* cycle.
|
|
22
|
+
*/
|
|
23
|
+
export declare const onAppInstancePaidPlanAutoRenewalCancelled: ReturnType<typeof createEventModule<typeof publicOnAppInstancePaidPlanAutoRenewalCancelled>>;
|
|
24
|
+
/**
|
|
25
|
+
* Triggered when a Wix user upgrades or downgrades their plan for your app.
|
|
26
|
+
*/
|
|
27
|
+
export declare const onAppInstancePaidPlanChanged: ReturnType<typeof createEventModule<typeof publicOnAppInstancePaidPlanChanged>>;
|
|
28
|
+
/**
|
|
29
|
+
* Triggered when a Wix user purchases a paid plan for your app.
|
|
30
|
+
*/
|
|
31
|
+
export declare const onAppInstancePaidPlanPurchased: ReturnType<typeof createEventModule<typeof publicOnAppInstancePaidPlanPurchased>>;
|
|
32
|
+
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';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
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;
|
|
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
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
+
const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
|
|
7
|
+
const devcenter_app_instance_v1_app_instance_app_instances_public_js_2 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
8
|
+
const devcenter_app_instance_v1_app_instance_app_instances_public_js_3 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
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
|
+
const devcenter_app_instance_v1_app_instance_app_instances_public_js_5 = require("./devcenter-app-instance-v1-app-instance-app-instances.public.js");
|
|
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
|
+
exports.getAppInstance = (0, rest_modules_1.createRESTModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_1.getAppInstance);
|
|
13
|
+
/**
|
|
14
|
+
* Triggered when an instance of your app is installed on a Wix site.
|
|
15
|
+
*/
|
|
16
|
+
exports.onAppInstanceInstalled = (0, event_definition_modules_1.createEventModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_2.onAppInstanceInstalled);
|
|
17
|
+
/**
|
|
18
|
+
* Triggered when an instance of your app is uninstalled from a Wix site.
|
|
19
|
+
*/
|
|
20
|
+
exports.onAppInstanceRemoved = (0, event_definition_modules_1.createEventModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_3.onAppInstanceRemoved);
|
|
21
|
+
/**
|
|
22
|
+
* Triggered when a Wix user cancels a paid plan for your app. The
|
|
23
|
+
* Wix user can continue to use your app until the end of the current billing
|
|
24
|
+
* cycle.
|
|
25
|
+
*/
|
|
26
|
+
exports.onAppInstancePaidPlanAutoRenewalCancelled = (0, event_definition_modules_1.createEventModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_4.onAppInstancePaidPlanAutoRenewalCancelled);
|
|
27
|
+
/**
|
|
28
|
+
* Triggered when a Wix user upgrades or downgrades their plan for your app.
|
|
29
|
+
*/
|
|
30
|
+
exports.onAppInstancePaidPlanChanged = (0, event_definition_modules_1.createEventModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_5.onAppInstancePaidPlanChanged);
|
|
31
|
+
/**
|
|
32
|
+
* Triggered when a Wix user purchases a paid plan for your app.
|
|
33
|
+
*/
|
|
34
|
+
exports.onAppInstancePaidPlanPurchased = (0, event_definition_modules_1.createEventModule)(devcenter_app_instance_v1_app_instance_app_instances_public_js_6.onAppInstancePaidPlanPurchased);
|
|
35
|
+
var devcenter_app_instance_v1_app_instance_app_instances_universal_js_1 = require("./devcenter-app-instance-v1-app-instance-app-instances.universal.js");
|
|
36
|
+
Object.defineProperty(exports, "PaymentCycle", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_1.PaymentCycle; } });
|
|
37
|
+
Object.defineProperty(exports, "FreeTrialStatus", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_1.FreeTrialStatus; } });
|
|
38
|
+
Object.defineProperty(exports, "FreeTrialPeriod", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_1.FreeTrialPeriod; } });
|
|
39
|
+
Object.defineProperty(exports, "ReactivationReason", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_1.ReactivationReason; } });
|
|
40
|
+
Object.defineProperty(exports, "ResolutionMethod", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_1.ResolutionMethod; } });
|
|
41
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_1.WebhookIdentityType; } });
|
|
42
|
+
//# sourceMappingURL=devcenter-app-instance-v1-app-instance-app-instances.context.js.map
|
|
@@ -0,0 +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;AAE7I,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;AAE5D,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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieves data about the instance of your app that's installed on a Wix
|
|
4
|
+
* site and data about the site itself. For example, to check whether the Wix user has installed a free or paid version of your app,
|
|
5
|
+
* or to check which apps made by Wix are installed on the site.
|
|
6
|
+
*
|
|
7
|
+
* You must authenticate this method as a Wix app ([REST](https://dev.wix.com/docs/rest/articles/getting-started/about-identities#wix-app) | [SDK](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-apps)).
|
|
8
|
+
*
|
|
9
|
+
* To retrieve `site.ownerInfo` in the response, you must
|
|
10
|
+
* have the __READ SITE OWNER EMAIL__ permission scope in addition to
|
|
11
|
+
* __MANAGE YOUR APP__.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getAppInstance(payload: object): RequestOptionsFactory<any>;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAppInstance = void 0;
|
|
4
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
7
|
+
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
8
|
+
function resolveComWixpressMarketAimApiAppInstanceServiceUrl(opts) {
|
|
9
|
+
const domainToMappings = {
|
|
10
|
+
'api._api_base_domain_': [
|
|
11
|
+
{
|
|
12
|
+
srcPath: '/app-instance-manager-webapp',
|
|
13
|
+
destPath: '',
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
'www.wixapis.com': [
|
|
17
|
+
{
|
|
18
|
+
srcPath: '/apps',
|
|
19
|
+
destPath: '',
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
'wixapis.com': [
|
|
23
|
+
{
|
|
24
|
+
srcPath: '/apps',
|
|
25
|
+
destPath: '',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
'dev._base_domain_': [
|
|
29
|
+
{
|
|
30
|
+
srcPath: '/_api/app-instance-manager',
|
|
31
|
+
destPath: '',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
srcPath: '/api/v1/instance',
|
|
35
|
+
destPath: '/v1/instance',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
srcPath: '/api/v1/scripts',
|
|
39
|
+
destPath: '/v1/scripts',
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
'manage._base_domain_': [
|
|
43
|
+
{
|
|
44
|
+
srcPath: '/_api/app-instance-manager',
|
|
45
|
+
destPath: '',
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
'www._base_domain_': [
|
|
49
|
+
{
|
|
50
|
+
srcPath: '/_api/app-instance-manager',
|
|
51
|
+
destPath: '',
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
'editor._base_domain_': [
|
|
55
|
+
{
|
|
56
|
+
srcPath: '/_api/app-instance-manager',
|
|
57
|
+
destPath: '',
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
'blocks._base_domain_': [
|
|
61
|
+
{
|
|
62
|
+
srcPath: '/_api/app-instance-manager',
|
|
63
|
+
destPath: '',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
'create.editorx': [
|
|
67
|
+
{
|
|
68
|
+
srcPath: '/_api/app-instance-manager',
|
|
69
|
+
destPath: '',
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
};
|
|
73
|
+
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
74
|
+
}
|
|
75
|
+
const PACKAGE_NAME = '@wix/auto_sdk_app-management_app-instances';
|
|
76
|
+
/**
|
|
77
|
+
* Retrieves data about the instance of your app that's installed on a Wix
|
|
78
|
+
* site and data about the site itself. For example, to check whether the Wix user has installed a free or paid version of your app,
|
|
79
|
+
* or to check which apps made by Wix are installed on the site.
|
|
80
|
+
*
|
|
81
|
+
* You must authenticate this method as a Wix app ([REST](https://dev.wix.com/docs/rest/articles/getting-started/about-identities#wix-app) | [SDK](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-apps)).
|
|
82
|
+
*
|
|
83
|
+
* To retrieve `site.ownerInfo` in the response, you must
|
|
84
|
+
* have the __READ SITE OWNER EMAIL__ permission scope in addition to
|
|
85
|
+
* __MANAGE YOUR APP__.
|
|
86
|
+
*/
|
|
87
|
+
function getAppInstance(payload) {
|
|
88
|
+
function __getAppInstance({ host }) {
|
|
89
|
+
const metadata = {
|
|
90
|
+
entityFqdn: 'wix.devcenter.app_instance.v1.app_instance',
|
|
91
|
+
method: 'GET',
|
|
92
|
+
methodFqn: 'com.wixpress.market.aim.api.AppInstanceService.GetAppInstance',
|
|
93
|
+
packageName: PACKAGE_NAME,
|
|
94
|
+
url: resolveComWixpressMarketAimApiAppInstanceServiceUrl({
|
|
95
|
+
protoPath: '/v1/instance',
|
|
96
|
+
data: payload,
|
|
97
|
+
host,
|
|
98
|
+
}),
|
|
99
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
100
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
101
|
+
{
|
|
102
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
103
|
+
paths: [{ path: 'instance.billing.freeTrialInfo.endDate' }],
|
|
104
|
+
},
|
|
105
|
+
]),
|
|
106
|
+
};
|
|
107
|
+
return metadata;
|
|
108
|
+
}
|
|
109
|
+
return __getAppInstance;
|
|
110
|
+
}
|
|
111
|
+
exports.getAppInstance = getAppInstance;
|
|
112
|
+
//# sourceMappingURL=devcenter-app-instance-v1-app-instance-app-instances.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.http.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,mDAAmD,CAC1D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,8BAA8B;gBACvC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,OAAO;gBAChB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,aAAa,EAAE;YACb;gBACE,OAAO,EAAE,OAAO;gBAChB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,cAAc;aACzB;YACD;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,QAAQ,EAAE,aAAa;aACxB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,gBAAgB,EAAE;YAChB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,4CAA4C,CAAC;AAElE;;;;;;;;;;GAUG;AACH,SAAgB,cAAc,CAAC,OAAe;IAC5C,SAAS,gBAAgB,CAAC,EAAE,IAAI,EAAO;QACrC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,4CAA4C;YACxD,MAAM,EAAE,KAAY;YACpB,SAAS,EACP,+DAA+D;YACjE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,mDAAmD,CAAC;gBACvD,SAAS,EAAE,cAAc;gBACzB,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,IAAA,gCAAiB,EAAC,OAAO,CAAC;YAClC,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,wCAAwC,EAAE,CAAC;iBAC5D;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AA3BD,wCA2BC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as ambassadorWixDevcenterAppInstanceV1AppInstanceTypes from './devcenter-app-instance-v1-app-instance-app-instances.types.js';
|
|
2
|
+
import * as ambassadorWixDevcenterAppInstanceV1AppInstanceUniversalTypes from './devcenter-app-instance-v1-app-instance-app-instances.universal.js';
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
+
getUrl: (context: any) => string;
|
|
5
|
+
httpMethod: K;
|
|
6
|
+
path: string;
|
|
7
|
+
pathParams: M;
|
|
8
|
+
__requestType: T;
|
|
9
|
+
__originalRequestType: S;
|
|
10
|
+
__responseType: Q;
|
|
11
|
+
__originalResponseType: R;
|
|
12
|
+
};
|
|
13
|
+
export declare function getAppInstance(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixDevcenterAppInstanceV1AppInstanceUniversalTypes.GetAppInstanceRequest, ambassadorWixDevcenterAppInstanceV1AppInstanceTypes.GetAppInstanceRequest, ambassadorWixDevcenterAppInstanceV1AppInstanceUniversalTypes.GetAppInstanceResponse, ambassadorWixDevcenterAppInstanceV1AppInstanceTypes.GetAppInstanceResponse>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.getAppInstance = void 0;
|
|
27
|
+
const ambassadorWixDevcenterAppInstanceV1AppInstance = __importStar(require("./devcenter-app-instance-v1-app-instance-app-instances.http.js"));
|
|
28
|
+
function getAppInstance() {
|
|
29
|
+
const payload = {};
|
|
30
|
+
const getRequestOptions = ambassadorWixDevcenterAppInstanceV1AppInstance.getAppInstance(payload);
|
|
31
|
+
const getUrl = (context) => {
|
|
32
|
+
const { url } = getRequestOptions(context);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
getUrl,
|
|
37
|
+
httpMethod: 'GET',
|
|
38
|
+
path: '/v1/instance',
|
|
39
|
+
pathParams: {},
|
|
40
|
+
__requestType: null,
|
|
41
|
+
__originalRequestType: null,
|
|
42
|
+
__responseType: null,
|
|
43
|
+
__originalResponseType: null,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.getAppInstance = getAppInstance;
|
|
47
|
+
//# sourceMappingURL=devcenter-app-instance-v1-app-instance-app-instances.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devcenter-app-instance-v1-app-instance-app-instances.meta.js","sourceRoot":"","sources":["../../../src/devcenter-app-instance-v1-app-instance-app-instances.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+IAAiI;AAsBjI,SAAgB,cAAc;IAQ5B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,8CAA8C,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAEzE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,cAAc;QACpB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,wCA4BC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function getAppInstance(httpClient: HttpClient): GetAppInstanceSignature;
|
|
7
|
+
interface GetAppInstanceSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves data about the instance of your app that's installed on a Wix
|
|
10
|
+
* site and data about the site itself. For example, to check whether the Wix user has installed a free or paid version of your app,
|
|
11
|
+
* or to check which apps made by Wix are installed on the site.
|
|
12
|
+
*
|
|
13
|
+
* You must authenticate this method as a Wix app ([REST](https://dev.wix.com/docs/rest/articles/getting-started/about-identities#wix-app) | [SDK](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-apps)).
|
|
14
|
+
*
|
|
15
|
+
* To retrieve `site.ownerInfo` in the response, you must
|
|
16
|
+
* have the __READ SITE OWNER EMAIL__ permission scope in addition to
|
|
17
|
+
* __MANAGE YOUR APP__.
|
|
18
|
+
*/
|
|
19
|
+
(): Promise<GetAppInstanceResponse>;
|
|
20
|
+
}
|
|
21
|
+
export declare const onAppInstanceInstalled: EventDefinition<AppInstanceInstalledEnvelope, "AppInstalled">;
|
|
22
|
+
export declare const onAppInstanceRemoved: EventDefinition<AppInstanceRemovedEnvelope, "AppRemoved">;
|
|
23
|
+
export declare const onAppInstancePaidPlanAutoRenewalCancelled: EventDefinition<AppInstancePaidPlanAutoRenewalCancelledEnvelope, "PaidPlanAutoRenewalCancelled">;
|
|
24
|
+
export declare const onAppInstancePaidPlanChanged: EventDefinition<AppInstancePaidPlanChangedEnvelope, "PaidPlanChanged">;
|
|
25
|
+
export declare const onAppInstancePaidPlanPurchased: EventDefinition<AppInstancePaidPlanPurchasedEnvelope, "PaidPlanPurchased">;
|
|
26
|
+
export { AppInstalled, AppInstance, AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, 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';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
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;
|
|
4
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
5
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
7
|
+
const sdk_types_1 = require("@wix/sdk-types");
|
|
8
|
+
const devcenter_app_instance_v1_app_instance_app_instances_universal_js_1 = require("./devcenter-app-instance-v1-app-instance-app-instances.universal.js");
|
|
9
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/app-management' };
|
|
10
|
+
function getAppInstance(httpClient) {
|
|
11
|
+
return () => (0, devcenter_app_instance_v1_app_instance_app_instances_universal_js_1.getAppInstance)(
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
{ httpClient });
|
|
14
|
+
}
|
|
15
|
+
exports.getAppInstance = getAppInstance;
|
|
16
|
+
exports.onAppInstanceInstalled = (0, sdk_types_1.EventDefinition)('AppInstalled', false, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(event))();
|
|
17
|
+
exports.onAppInstanceRemoved = (0, sdk_types_1.EventDefinition)('AppRemoved', false, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(event))();
|
|
18
|
+
exports.onAppInstancePaidPlanAutoRenewalCancelled = (0, sdk_types_1.EventDefinition)('PaidPlanAutoRenewalCancelled', false, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
19
|
+
{
|
|
20
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
21
|
+
paths: [{ path: 'data.operationTimeStamp' }],
|
|
22
|
+
},
|
|
23
|
+
])))();
|
|
24
|
+
exports.onAppInstancePaidPlanChanged = (0, sdk_types_1.EventDefinition)('PaidPlanChanged', false, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
25
|
+
{
|
|
26
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
27
|
+
paths: [{ path: 'data.operationTimeStamp' }],
|
|
28
|
+
},
|
|
29
|
+
])))();
|
|
30
|
+
exports.onAppInstancePaidPlanPurchased = (0, sdk_types_1.EventDefinition)('PaidPlanPurchased', false, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
31
|
+
{
|
|
32
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
33
|
+
paths: [
|
|
34
|
+
{ path: 'data.operationTimeStamp' },
|
|
35
|
+
{ path: 'data.expiresOn' },
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
])))();
|
|
39
|
+
var devcenter_app_instance_v1_app_instance_app_instances_universal_js_2 = require("./devcenter-app-instance-v1-app-instance-app-instances.universal.js");
|
|
40
|
+
Object.defineProperty(exports, "FreeTrialPeriod", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_2.FreeTrialPeriod; } });
|
|
41
|
+
Object.defineProperty(exports, "FreeTrialStatus", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_2.FreeTrialStatus; } });
|
|
42
|
+
Object.defineProperty(exports, "PaymentCycle", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_2.PaymentCycle; } });
|
|
43
|
+
Object.defineProperty(exports, "ReactivationReason", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_2.ReactivationReason; } });
|
|
44
|
+
Object.defineProperty(exports, "ResolutionMethod", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_2.ResolutionMethod; } });
|
|
45
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return devcenter_app_instance_v1_app_instance_app_instances_universal_js_2.WebhookIdentityType; } });
|
|
46
|
+
//# sourceMappingURL=devcenter-app-instance-v1-app-instance-app-instances.public.js.map
|
|
@@ -0,0 +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,2JAQ6E;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,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;AAC3B,QAAA,8BAA8B,GAAG,IAAA,2BAAe,EAC3D,mBAAmB,EACnB,KAAK,EACL,CAAC,KAA2C,EAAE,EAAE,CAC9C,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,EAAwC,CAAC;AAE1C,yJAoC6E;AAvB3E,oKAAA,eAAe,OAAA;AACf,oKAAA,eAAe,OAAA;AAaf,iKAAA,YAAY,OAAA;AAIZ,uKAAA,kBAAkB,OAAA;AAClB,qKAAA,gBAAgB,OAAA;AAGhB,wKAAA,mBAAmB,OAAA"}
|