@wix/auto_sdk_apps-installer_apps-installer 1.0.0
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 +110 -0
- package/build/cjs/index.js +589 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +837 -0
- package/build/cjs/index.typings.js +508 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +226 -0
- package/build/cjs/meta.js +400 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +110 -0
- package/build/es/index.mjs +554 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +837 -0
- package/build/es/index.typings.mjs +474 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +226 -0
- package/build/es/meta.mjs +368 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +110 -0
- package/build/internal/cjs/index.js +589 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +837 -0
- package/build/internal/cjs/index.typings.js +508 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +226 -0
- package/build/internal/cjs/meta.js +400 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +110 -0
- package/build/internal/es/index.mjs +554 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +837 -0
- package/build/internal/es/index.typings.mjs +474 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +226 -0
- package/build/internal/es/meta.mjs +368 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +53 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { InstallAppRequest as InstallAppRequest$1, InstallAppResponse as InstallAppResponse$1, UninstallAppRequest as UninstallAppRequest$1, UninstallAppResponse as UninstallAppResponse$1, BulkUninstallAppRequest as BulkUninstallAppRequest$1, BulkUninstallAppResponse as BulkUninstallAppResponse$1, InstallAppFromShareUrlRequest as InstallAppFromShareUrlRequest$1, InstallAppFromShareUrlResponse as InstallAppFromShareUrlResponse$1, IsPermittedToInstallAppsRequest as IsPermittedToInstallAppsRequest$1, IsPermittedToInstallAppsResponse as IsPermittedToInstallAppsResponse$1, GetInstalledAppsRequest as GetInstalledAppsRequest$1, GetInstalledAppsResponse as GetInstalledAppsResponse$1 } from './index.typings.js';
|
|
2
|
+
import '@wix/sdk-types';
|
|
3
|
+
|
|
4
|
+
interface AppInstance {
|
|
5
|
+
/**
|
|
6
|
+
* App instance ID.
|
|
7
|
+
* @format GUID
|
|
8
|
+
* @readonly
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* ID of the app to install.
|
|
13
|
+
* @format GUID
|
|
14
|
+
*/
|
|
15
|
+
appDefId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Version of the app to install.
|
|
18
|
+
*
|
|
19
|
+
* If you don't specify a version, the latest version of the app will be installed. Don't specify a version unless you want to install an older version of the app.
|
|
20
|
+
*/
|
|
21
|
+
version?: string | null;
|
|
22
|
+
/** Whether the app instance is enabled. */
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* A signed access token of the Wix user and the app instance.
|
|
26
|
+
* @readonly
|
|
27
|
+
*/
|
|
28
|
+
appToken?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* Date and time the app instance was installed.
|
|
31
|
+
* @readonly
|
|
32
|
+
*/
|
|
33
|
+
installedDate?: Date | null;
|
|
34
|
+
/**
|
|
35
|
+
* Date and time the app instance was last updated.
|
|
36
|
+
* @readonly
|
|
37
|
+
*/
|
|
38
|
+
updatedDate?: Date | null;
|
|
39
|
+
}
|
|
40
|
+
interface DevVersionInstallation {
|
|
41
|
+
/**
|
|
42
|
+
* ID of the override to assign to the development version.
|
|
43
|
+
* @maxLength 50
|
|
44
|
+
*/
|
|
45
|
+
overrideId?: string;
|
|
46
|
+
}
|
|
47
|
+
interface Tenant {
|
|
48
|
+
/** Tenant ID. For a site, this is the [site ID](https://dev.wix.com/docs/rest/account-level/sites/sites/introduction). For an account this is the [account ID](https://dev.wix.com/docs/rest/account-level/user-management/accounts/accounts/about-accounts). */
|
|
49
|
+
id?: string;
|
|
50
|
+
/** Tenant type. This can be a Wix site or account. */
|
|
51
|
+
tenantType?: TenantTypeWithLiterals;
|
|
52
|
+
}
|
|
53
|
+
declare enum TenantType {
|
|
54
|
+
SITE = "SITE",
|
|
55
|
+
ACCOUNT = "ACCOUNT"
|
|
56
|
+
}
|
|
57
|
+
/** @enumType */
|
|
58
|
+
type TenantTypeWithLiterals = TenantType | 'SITE' | 'ACCOUNT';
|
|
59
|
+
interface InstallAppRequest {
|
|
60
|
+
/** Tenant details. */
|
|
61
|
+
tenant: Tenant;
|
|
62
|
+
/** Details of the app instance to create when the app is installed. */
|
|
63
|
+
appInstance: AppInstance;
|
|
64
|
+
}
|
|
65
|
+
interface InstallAppResponse {
|
|
66
|
+
/** The app instance created when the app was installed. */
|
|
67
|
+
appInstance?: AppInstance;
|
|
68
|
+
}
|
|
69
|
+
interface ItemMetadata {
|
|
70
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
71
|
+
id?: string | null;
|
|
72
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
73
|
+
originalIndex?: number;
|
|
74
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
75
|
+
success?: boolean;
|
|
76
|
+
/** Details about the error in case of failure. */
|
|
77
|
+
error?: ApplicationError;
|
|
78
|
+
}
|
|
79
|
+
interface ApplicationError {
|
|
80
|
+
/** Error code. */
|
|
81
|
+
code?: string;
|
|
82
|
+
/** Description of the error. */
|
|
83
|
+
description?: string;
|
|
84
|
+
/** Data related to the error. */
|
|
85
|
+
data?: Record<string, any> | null;
|
|
86
|
+
}
|
|
87
|
+
interface BulkActionMetadata {
|
|
88
|
+
/** Number of items that were successfully processed. */
|
|
89
|
+
totalSuccesses?: number;
|
|
90
|
+
/** Number of items that couldn't be processed. */
|
|
91
|
+
totalFailures?: number;
|
|
92
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
93
|
+
undetailedFailures?: number;
|
|
94
|
+
}
|
|
95
|
+
interface UninstallAppRequest {
|
|
96
|
+
/** Tenant details. */
|
|
97
|
+
tenant?: Tenant;
|
|
98
|
+
/**
|
|
99
|
+
* The ID of the app to install.
|
|
100
|
+
* @format GUID
|
|
101
|
+
*/
|
|
102
|
+
appDefId: string;
|
|
103
|
+
}
|
|
104
|
+
interface UninstallAppResponse {
|
|
105
|
+
}
|
|
106
|
+
interface BulkUninstallAppRequest {
|
|
107
|
+
/** Tenant details. */
|
|
108
|
+
tenant?: Tenant;
|
|
109
|
+
/**
|
|
110
|
+
* List of apps to be uninstalled.
|
|
111
|
+
* @format GUID
|
|
112
|
+
* @maxSize 20
|
|
113
|
+
*/
|
|
114
|
+
appDefIds: string[];
|
|
115
|
+
}
|
|
116
|
+
interface BulkUninstallAppResponse {
|
|
117
|
+
/** Information and metadata about the uninstalled apps. */
|
|
118
|
+
results?: BulkUninstallAppResult[];
|
|
119
|
+
/** Metadata about the bulk uninstallation. */
|
|
120
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
121
|
+
}
|
|
122
|
+
interface BulkUninstallAppResult {
|
|
123
|
+
/** Metadata about the uninstalled app instance. */
|
|
124
|
+
itemMetadata?: ItemMetadata;
|
|
125
|
+
/**
|
|
126
|
+
* @format GUID
|
|
127
|
+
* @deprecated
|
|
128
|
+
* @replacedBy app_instance
|
|
129
|
+
* @targetRemovalDate 2025-09-01
|
|
130
|
+
*/
|
|
131
|
+
appDefId?: string;
|
|
132
|
+
/** Details of the uninstalled app instance. */
|
|
133
|
+
appInstance?: AppInstance;
|
|
134
|
+
}
|
|
135
|
+
interface InstallAppFromShareUrlRequest {
|
|
136
|
+
/** Tenant details. */
|
|
137
|
+
tenant: Tenant;
|
|
138
|
+
/**
|
|
139
|
+
* ID of the share URL to install the app from.
|
|
140
|
+
*
|
|
141
|
+
* To get the share URL of an app:
|
|
142
|
+
*
|
|
143
|
+
* 1. [Generate an install link](https://dev.wix.com/docs/build-apps/develop-your-app/app-dashboard-setup/share-your-app-with-an-install-link).
|
|
144
|
+
*
|
|
145
|
+
* 2. Click the link, which will redirect you to a page where you can install the app. The URL of this page is the share URL, and the string after `install/` in the URL is the share URL ID. For example, in the share URL `https://www.wix.com/app-market/install/8d5179a2-6d46-45b0-bcfa-64f479c6a2al`, the share URL ID is `8d5179a2-6d46-45b0-bcfa-64f479c6a2al`.
|
|
146
|
+
* @format GUID
|
|
147
|
+
*/
|
|
148
|
+
shareUrlId: string;
|
|
149
|
+
/** Information about the development version of the app to install. Only relevant if the share URL refers to a development version of an app created in the Wix CLI. */
|
|
150
|
+
devVersion?: DevVersionInstallation;
|
|
151
|
+
}
|
|
152
|
+
interface InstallAppFromShareUrlResponse {
|
|
153
|
+
/** App instance created when the app was installed. */
|
|
154
|
+
appInstance?: AppInstance;
|
|
155
|
+
}
|
|
156
|
+
interface IsPermittedToInstallAppsRequest extends IsPermittedToInstallAppsRequestOptionsOneOf {
|
|
157
|
+
/** Install the app using app instance details. */
|
|
158
|
+
appsInstallOptions?: AppsInstallOptions;
|
|
159
|
+
/** Install an app using a share URL. */
|
|
160
|
+
shareUrlInstallOptions?: ShareUrlInstallOptions;
|
|
161
|
+
/** Installation type. */
|
|
162
|
+
installType: InstallTypeWithLiterals;
|
|
163
|
+
}
|
|
164
|
+
/** @oneof */
|
|
165
|
+
interface IsPermittedToInstallAppsRequestOptionsOneOf {
|
|
166
|
+
/** Install the app using app instance details. */
|
|
167
|
+
appsInstallOptions?: AppsInstallOptions;
|
|
168
|
+
/** Install an app using a share URL. */
|
|
169
|
+
shareUrlInstallOptions?: ShareUrlInstallOptions;
|
|
170
|
+
}
|
|
171
|
+
declare enum InstallType {
|
|
172
|
+
/** Installation type is unknown. */
|
|
173
|
+
UNKNOWN_INSTALL_TYPE = "UNKNOWN_INSTALL_TYPE",
|
|
174
|
+
/** Installation based on app instance data provided in the request. */
|
|
175
|
+
APPS_INSTALL = "APPS_INSTALL",
|
|
176
|
+
/** Installation based on a shareable app URL. */
|
|
177
|
+
SHARE_URL_INSTALL = "SHARE_URL_INSTALL"
|
|
178
|
+
}
|
|
179
|
+
/** @enumType */
|
|
180
|
+
type InstallTypeWithLiterals = InstallType | 'UNKNOWN_INSTALL_TYPE' | 'APPS_INSTALL' | 'SHARE_URL_INSTALL';
|
|
181
|
+
interface AppsInstallOptions {
|
|
182
|
+
/** Tenant details. */
|
|
183
|
+
tenant?: Tenant;
|
|
184
|
+
/**
|
|
185
|
+
* Details of the app instances to create when the apps are installed.
|
|
186
|
+
* @minSize 1
|
|
187
|
+
* @maxSize 30
|
|
188
|
+
*/
|
|
189
|
+
appInstances?: AppInstance[];
|
|
190
|
+
}
|
|
191
|
+
interface ShareUrlInstallOptions {
|
|
192
|
+
/**
|
|
193
|
+
* ID of the share URL to install the app from.
|
|
194
|
+
* @format GUID
|
|
195
|
+
*/
|
|
196
|
+
shareUrlId?: string;
|
|
197
|
+
}
|
|
198
|
+
interface IsPermittedToInstallAppsResponse {
|
|
199
|
+
/** Whether the installation is permitted. */
|
|
200
|
+
permitted?: boolean;
|
|
201
|
+
}
|
|
202
|
+
interface GetInstalledAppsRequest {
|
|
203
|
+
}
|
|
204
|
+
interface GetInstalledAppsResponse {
|
|
205
|
+
/** The installed app instances */
|
|
206
|
+
appInstances?: AppInstance[];
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
210
|
+
getUrl: (context: any) => string;
|
|
211
|
+
httpMethod: K;
|
|
212
|
+
path: string;
|
|
213
|
+
pathParams: M;
|
|
214
|
+
__requestType: T;
|
|
215
|
+
__originalRequestType: S;
|
|
216
|
+
__responseType: Q;
|
|
217
|
+
__originalResponseType: R;
|
|
218
|
+
};
|
|
219
|
+
declare function installApp(): __PublicMethodMetaInfo<'POST', {}, InstallAppRequest$1, InstallAppRequest, InstallAppResponse$1, InstallAppResponse>;
|
|
220
|
+
declare function uninstallApp(): __PublicMethodMetaInfo<'POST', {}, UninstallAppRequest$1, UninstallAppRequest, UninstallAppResponse$1, UninstallAppResponse>;
|
|
221
|
+
declare function bulkUninstallApp(): __PublicMethodMetaInfo<'POST', {}, BulkUninstallAppRequest$1, BulkUninstallAppRequest, BulkUninstallAppResponse$1, BulkUninstallAppResponse>;
|
|
222
|
+
declare function installAppFromShareUrl(): __PublicMethodMetaInfo<'POST', {}, InstallAppFromShareUrlRequest$1, InstallAppFromShareUrlRequest, InstallAppFromShareUrlResponse$1, InstallAppFromShareUrlResponse>;
|
|
223
|
+
declare function isPermittedToInstallApps(): __PublicMethodMetaInfo<'POST', {}, IsPermittedToInstallAppsRequest$1, IsPermittedToInstallAppsRequest, IsPermittedToInstallAppsResponse$1, IsPermittedToInstallAppsResponse>;
|
|
224
|
+
declare function getInstalledApps(): __PublicMethodMetaInfo<'GET', {}, GetInstalledAppsRequest$1, GetInstalledAppsRequest, GetInstalledAppsResponse$1, GetInstalledAppsResponse>;
|
|
225
|
+
|
|
226
|
+
export { type __PublicMethodMetaInfo, bulkUninstallApp, getInstalledApps, installApp, installAppFromShareUrl, isPermittedToInstallApps, uninstallApp };
|
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// meta.ts
|
|
21
|
+
var meta_exports = {};
|
|
22
|
+
__export(meta_exports, {
|
|
23
|
+
bulkUninstallApp: () => bulkUninstallApp2,
|
|
24
|
+
getInstalledApps: () => getInstalledApps2,
|
|
25
|
+
installApp: () => installApp2,
|
|
26
|
+
installAppFromShareUrl: () => installAppFromShareUrl2,
|
|
27
|
+
isPermittedToInstallApps: () => isPermittedToInstallApps2,
|
|
28
|
+
uninstallApp: () => uninstallApp2
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(meta_exports);
|
|
31
|
+
|
|
32
|
+
// src/apps-v1-app-instance-apps-installer.http.ts
|
|
33
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
34
|
+
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
35
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
36
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
37
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
38
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
39
|
+
function resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl(opts) {
|
|
40
|
+
const domainToMappings = {
|
|
41
|
+
"manage._base_domain_": [
|
|
42
|
+
{
|
|
43
|
+
srcPath: "/apps-installer-service",
|
|
44
|
+
destPath: ""
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"editor._base_domain_": [
|
|
48
|
+
{
|
|
49
|
+
srcPath: "/apps-installer-service",
|
|
50
|
+
destPath: ""
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"blocks._base_domain_": [
|
|
54
|
+
{
|
|
55
|
+
srcPath: "/apps-installer-service",
|
|
56
|
+
destPath: ""
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"create.editorx": [
|
|
60
|
+
{
|
|
61
|
+
srcPath: "/apps-installer-service",
|
|
62
|
+
destPath: ""
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"dev._base_domain_": [
|
|
66
|
+
{
|
|
67
|
+
srcPath: "/apps-installer-service",
|
|
68
|
+
destPath: ""
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"www.wixapis.com": [
|
|
72
|
+
{
|
|
73
|
+
srcPath: "/apps-installer-service",
|
|
74
|
+
destPath: ""
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"*.dev.wix-code.com": [
|
|
78
|
+
{
|
|
79
|
+
srcPath: "/apps/v1/app-instances",
|
|
80
|
+
destPath: ""
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
_: [
|
|
84
|
+
{
|
|
85
|
+
srcPath: "/apps/v1/app-instances",
|
|
86
|
+
destPath: ""
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
};
|
|
90
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
91
|
+
}
|
|
92
|
+
var PACKAGE_NAME = "@wix/auto_sdk_apps-installer_apps-installer";
|
|
93
|
+
function installApp(payload) {
|
|
94
|
+
function __installApp({ host }) {
|
|
95
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
96
|
+
{
|
|
97
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
98
|
+
paths: [
|
|
99
|
+
{ path: "appInstance.installedDate" },
|
|
100
|
+
{ path: "appInstance.updatedDate" }
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
]);
|
|
104
|
+
const metadata = {
|
|
105
|
+
entityFqdn: "wix.apps.v1.app_instance",
|
|
106
|
+
method: "POST",
|
|
107
|
+
methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.InstallApp",
|
|
108
|
+
packageName: PACKAGE_NAME,
|
|
109
|
+
url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
|
|
110
|
+
protoPath: "/v1/app-instance/install",
|
|
111
|
+
data: serializedData,
|
|
112
|
+
host
|
|
113
|
+
}),
|
|
114
|
+
data: serializedData,
|
|
115
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
116
|
+
{
|
|
117
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
118
|
+
paths: [
|
|
119
|
+
{ path: "appInstance.installedDate" },
|
|
120
|
+
{ path: "appInstance.updatedDate" },
|
|
121
|
+
{ path: "dependenciesInstallation.installedDate" },
|
|
122
|
+
{ path: "dependenciesInstallation.updatedDate" }
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
])
|
|
126
|
+
};
|
|
127
|
+
return metadata;
|
|
128
|
+
}
|
|
129
|
+
return __installApp;
|
|
130
|
+
}
|
|
131
|
+
function uninstallApp(payload) {
|
|
132
|
+
function __uninstallApp({ host }) {
|
|
133
|
+
const metadata = {
|
|
134
|
+
entityFqdn: "wix.apps.v1.app_instance",
|
|
135
|
+
method: "POST",
|
|
136
|
+
methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.UninstallApp",
|
|
137
|
+
packageName: PACKAGE_NAME,
|
|
138
|
+
url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
|
|
139
|
+
protoPath: "/v1/app-instance/uninstall",
|
|
140
|
+
data: payload,
|
|
141
|
+
host
|
|
142
|
+
}),
|
|
143
|
+
data: payload
|
|
144
|
+
};
|
|
145
|
+
return metadata;
|
|
146
|
+
}
|
|
147
|
+
return __uninstallApp;
|
|
148
|
+
}
|
|
149
|
+
function bulkUninstallApp(payload) {
|
|
150
|
+
function __bulkUninstallApp({ host }) {
|
|
151
|
+
const metadata = {
|
|
152
|
+
entityFqdn: "wix.apps.v1.app_instance",
|
|
153
|
+
method: "POST",
|
|
154
|
+
methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.BulkUninstallApp",
|
|
155
|
+
packageName: PACKAGE_NAME,
|
|
156
|
+
url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
|
|
157
|
+
protoPath: "/v1/bulk/app-instance/uninstall",
|
|
158
|
+
data: payload,
|
|
159
|
+
host
|
|
160
|
+
}),
|
|
161
|
+
data: payload,
|
|
162
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
163
|
+
{
|
|
164
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
165
|
+
paths: [
|
|
166
|
+
{ path: "results.appInstance.installedDate" },
|
|
167
|
+
{ path: "results.appInstance.updatedDate" }
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
172
|
+
paths: [
|
|
173
|
+
{
|
|
174
|
+
path: "clientSpecMap.data.widgets.*.gluedOptions.verticalMargin"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
path: "clientSpecMap.data.widgets.*.gluedOptions.horizontalMargin"
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
])
|
|
182
|
+
};
|
|
183
|
+
return metadata;
|
|
184
|
+
}
|
|
185
|
+
return __bulkUninstallApp;
|
|
186
|
+
}
|
|
187
|
+
function installAppFromShareUrl(payload) {
|
|
188
|
+
function __installAppFromShareUrl({ host }) {
|
|
189
|
+
const metadata = {
|
|
190
|
+
entityFqdn: "wix.apps.v1.app_instance",
|
|
191
|
+
method: "POST",
|
|
192
|
+
methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.InstallAppFromShareUrl",
|
|
193
|
+
packageName: PACKAGE_NAME,
|
|
194
|
+
url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
|
|
195
|
+
protoPath: "/v1/app-share-url/install",
|
|
196
|
+
data: payload,
|
|
197
|
+
host
|
|
198
|
+
}),
|
|
199
|
+
data: payload,
|
|
200
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
201
|
+
{
|
|
202
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
203
|
+
paths: [
|
|
204
|
+
{ path: "appInstance.installedDate" },
|
|
205
|
+
{ path: "appInstance.updatedDate" },
|
|
206
|
+
{ path: "dependenciesInstallation.installedDate" },
|
|
207
|
+
{ path: "dependenciesInstallation.updatedDate" }
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
])
|
|
211
|
+
};
|
|
212
|
+
return metadata;
|
|
213
|
+
}
|
|
214
|
+
return __installAppFromShareUrl;
|
|
215
|
+
}
|
|
216
|
+
function isPermittedToInstallApps(payload) {
|
|
217
|
+
function __isPermittedToInstallApps({ host }) {
|
|
218
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
219
|
+
{
|
|
220
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
221
|
+
paths: [
|
|
222
|
+
{ path: "appsInstallOptions.appInstances.installedDate" },
|
|
223
|
+
{ path: "appsInstallOptions.appInstances.updatedDate" }
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
]);
|
|
227
|
+
const metadata = {
|
|
228
|
+
entityFqdn: "wix.apps.v1.app_instance",
|
|
229
|
+
method: "POST",
|
|
230
|
+
methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.IsPermittedToInstallApps",
|
|
231
|
+
packageName: PACKAGE_NAME,
|
|
232
|
+
url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
|
|
233
|
+
protoPath: "/v1/app-instance/is-permitted-to-install",
|
|
234
|
+
data: serializedData,
|
|
235
|
+
host
|
|
236
|
+
}),
|
|
237
|
+
data: serializedData
|
|
238
|
+
};
|
|
239
|
+
return metadata;
|
|
240
|
+
}
|
|
241
|
+
return __isPermittedToInstallApps;
|
|
242
|
+
}
|
|
243
|
+
function getInstalledApps(payload) {
|
|
244
|
+
function __getInstalledApps({ host }) {
|
|
245
|
+
const metadata = {
|
|
246
|
+
entityFqdn: "wix.apps.v1.app_instance",
|
|
247
|
+
method: "GET",
|
|
248
|
+
methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.GetInstalledApps",
|
|
249
|
+
packageName: PACKAGE_NAME,
|
|
250
|
+
url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
|
|
251
|
+
protoPath: "/v1/app-instances",
|
|
252
|
+
data: payload,
|
|
253
|
+
host
|
|
254
|
+
}),
|
|
255
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
256
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
257
|
+
{
|
|
258
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
259
|
+
paths: [
|
|
260
|
+
{ path: "appInstances.installedDate" },
|
|
261
|
+
{ path: "appInstances.updatedDate" }
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
]),
|
|
265
|
+
fallback: [
|
|
266
|
+
{
|
|
267
|
+
method: "GET",
|
|
268
|
+
url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
|
|
269
|
+
protoPath: "/v1/app-instances",
|
|
270
|
+
data: payload,
|
|
271
|
+
host
|
|
272
|
+
}),
|
|
273
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
};
|
|
277
|
+
return metadata;
|
|
278
|
+
}
|
|
279
|
+
return __getInstalledApps;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// src/apps-v1-app-instance-apps-installer.meta.ts
|
|
283
|
+
function installApp2() {
|
|
284
|
+
const payload = {};
|
|
285
|
+
const getRequestOptions = installApp(payload);
|
|
286
|
+
const getUrl = (context) => {
|
|
287
|
+
const { url } = getRequestOptions(context);
|
|
288
|
+
return url;
|
|
289
|
+
};
|
|
290
|
+
return {
|
|
291
|
+
getUrl,
|
|
292
|
+
httpMethod: "POST",
|
|
293
|
+
path: "/v1/app-instance/install",
|
|
294
|
+
pathParams: {},
|
|
295
|
+
__requestType: null,
|
|
296
|
+
__originalRequestType: null,
|
|
297
|
+
__responseType: null,
|
|
298
|
+
__originalResponseType: null
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
function uninstallApp2() {
|
|
302
|
+
const payload = {};
|
|
303
|
+
const getRequestOptions = uninstallApp(payload);
|
|
304
|
+
const getUrl = (context) => {
|
|
305
|
+
const { url } = getRequestOptions(context);
|
|
306
|
+
return url;
|
|
307
|
+
};
|
|
308
|
+
return {
|
|
309
|
+
getUrl,
|
|
310
|
+
httpMethod: "POST",
|
|
311
|
+
path: "/v1/app-instance/uninstall",
|
|
312
|
+
pathParams: {},
|
|
313
|
+
__requestType: null,
|
|
314
|
+
__originalRequestType: null,
|
|
315
|
+
__responseType: null,
|
|
316
|
+
__originalResponseType: null
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
function bulkUninstallApp2() {
|
|
320
|
+
const payload = {};
|
|
321
|
+
const getRequestOptions = bulkUninstallApp(payload);
|
|
322
|
+
const getUrl = (context) => {
|
|
323
|
+
const { url } = getRequestOptions(context);
|
|
324
|
+
return url;
|
|
325
|
+
};
|
|
326
|
+
return {
|
|
327
|
+
getUrl,
|
|
328
|
+
httpMethod: "POST",
|
|
329
|
+
path: "/v1/bulk/app-instance/uninstall",
|
|
330
|
+
pathParams: {},
|
|
331
|
+
__requestType: null,
|
|
332
|
+
__originalRequestType: null,
|
|
333
|
+
__responseType: null,
|
|
334
|
+
__originalResponseType: null
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
function installAppFromShareUrl2() {
|
|
338
|
+
const payload = {};
|
|
339
|
+
const getRequestOptions = installAppFromShareUrl(payload);
|
|
340
|
+
const getUrl = (context) => {
|
|
341
|
+
const { url } = getRequestOptions(context);
|
|
342
|
+
return url;
|
|
343
|
+
};
|
|
344
|
+
return {
|
|
345
|
+
getUrl,
|
|
346
|
+
httpMethod: "POST",
|
|
347
|
+
path: "/v1/app-share-url/install",
|
|
348
|
+
pathParams: {},
|
|
349
|
+
__requestType: null,
|
|
350
|
+
__originalRequestType: null,
|
|
351
|
+
__responseType: null,
|
|
352
|
+
__originalResponseType: null
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
function isPermittedToInstallApps2() {
|
|
356
|
+
const payload = {};
|
|
357
|
+
const getRequestOptions = isPermittedToInstallApps(payload);
|
|
358
|
+
const getUrl = (context) => {
|
|
359
|
+
const { url } = getRequestOptions(context);
|
|
360
|
+
return url;
|
|
361
|
+
};
|
|
362
|
+
return {
|
|
363
|
+
getUrl,
|
|
364
|
+
httpMethod: "POST",
|
|
365
|
+
path: "/v1/app-instance/is-permitted-to-install",
|
|
366
|
+
pathParams: {},
|
|
367
|
+
__requestType: null,
|
|
368
|
+
__originalRequestType: null,
|
|
369
|
+
__responseType: null,
|
|
370
|
+
__originalResponseType: null
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
function getInstalledApps2() {
|
|
374
|
+
const payload = {};
|
|
375
|
+
const getRequestOptions = getInstalledApps(payload);
|
|
376
|
+
const getUrl = (context) => {
|
|
377
|
+
const { url } = getRequestOptions(context);
|
|
378
|
+
return url;
|
|
379
|
+
};
|
|
380
|
+
return {
|
|
381
|
+
getUrl,
|
|
382
|
+
httpMethod: "GET",
|
|
383
|
+
path: "/v1/app-instances",
|
|
384
|
+
pathParams: {},
|
|
385
|
+
__requestType: null,
|
|
386
|
+
__originalRequestType: null,
|
|
387
|
+
__responseType: null,
|
|
388
|
+
__originalResponseType: null
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
392
|
+
0 && (module.exports = {
|
|
393
|
+
bulkUninstallApp,
|
|
394
|
+
getInstalledApps,
|
|
395
|
+
installApp,
|
|
396
|
+
installAppFromShareUrl,
|
|
397
|
+
isPermittedToInstallApps,
|
|
398
|
+
uninstallApp
|
|
399
|
+
});
|
|
400
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/apps-v1-app-instance-apps-installer.http.ts","../../src/apps-v1-app-instance-apps-installer.meta.ts"],"sourcesContent":["export * from './src/apps-v1-app-instance-apps-installer.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/apps-installer-service',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/apps-installer-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/apps-installer-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/apps-installer-service',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/apps-installer-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/apps-installer-service',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/apps/v1/app-instances',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/apps/v1/app-instances',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_apps-installer_apps-installer';\n\n/**\n * <blockquote class=\"warning\">\n *\n * __Warning:__\n * By using this API to install 3rd-party apps, you acknowledge and agree that:\n *\n * - Some 3rd-party apps installed with this API may access, use, copy, change, or delete all your website's data, including your and your website visitors' and members' financial and personal information.\n * - Wix may not have reviewed the app, and can't guarantee their operation or that it will continue to function as described by the app developers.\n * - You may be sharing sensitive information with the app. Review the terms of use and privacy policies of any app you choose to install to understand how your data will be handled.\n * - You agree to the Wix App Market [terms of use](https://www.wix.com/about/app-market-terms).\n *\n * By installing any 3rd-party app through this API, you confirm your acceptance of all the above conditions.\n *\n * </blockquote>\n *\n * Installs an app on a tenant, specifying the details of the app instance to create.\n *\n * The ID of this app instance is automatically generated and included in the `appInstance` object in the response.\n */\nexport function installApp(payload: object): RequestOptionsFactory<any> {\n function __installApp({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'appInstance.installedDate' },\n { path: 'appInstance.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.apps.v1.app_instance',\n method: 'POST' as any,\n methodFqn:\n 'wix.devcenter.apps.installer.v1.AppsInstallerService.InstallApp',\n packageName: PACKAGE_NAME,\n url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n protoPath: '/v1/app-instance/install',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'appInstance.installedDate' },\n { path: 'appInstance.updatedDate' },\n { path: 'dependenciesInstallation.installedDate' },\n { path: 'dependenciesInstallation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __installApp;\n}\n\n/**\n * Uninstalls an app from a tenant.\n *\n * This removes the instance of a specified app from the tenant.\n */\nexport function uninstallApp(payload: object): RequestOptionsFactory<any> {\n function __uninstallApp({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.apps.v1.app_instance',\n method: 'POST' as any,\n methodFqn:\n 'wix.devcenter.apps.installer.v1.AppsInstallerService.UninstallApp',\n packageName: PACKAGE_NAME,\n url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n protoPath: '/v1/app-instance/uninstall',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __uninstallApp;\n}\n\n/**\n * Uninstalls apps from a tenant.\n *\n * This removes the instances of the specified apps from the tenant.\n */\nexport function bulkUninstallApp(payload: object): RequestOptionsFactory<any> {\n function __bulkUninstallApp({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.apps.v1.app_instance',\n method: 'POST' as any,\n methodFqn:\n 'wix.devcenter.apps.installer.v1.AppsInstallerService.BulkUninstallApp',\n packageName: PACKAGE_NAME,\n url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n protoPath: '/v1/bulk/app-instance/uninstall',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.appInstance.installedDate' },\n { path: 'results.appInstance.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'clientSpecMap.data.widgets.*.gluedOptions.verticalMargin',\n },\n {\n path: 'clientSpecMap.data.widgets.*.gluedOptions.horizontalMargin',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUninstallApp;\n}\n\n/**\n * <blockquote class=\"warning\">\n *\n * __Warning:__\n * By using this API to install 3rd-party apps, you acknowledge and agree that:\n *\n * - Some 3rd-party apps installed with this API may access, use, copy, change, or delete all your website's data, including your and your website visitors' and members' financial and personal information.\n * - Wix may not have reviewed the app, and cannot guarantee their operation or that it will continue to function as described by the app developers.\n * - You may be sharing sensitive information with the app. Please review the terms of use and privacy policies of any app you choose to install to understand how your data will be handled.\n * - By utilizing this API, you agree to the Wix App Market [terms of use](https://www.wix.com/about/app-market-terms).\n *\n * By installing any 3rd-party app through this API, I confirm my acceptance of all the above conditions.\n *\n * </blockquote>\n *\n * Installs an app on a site using a share URL.\n */\nexport function installAppFromShareUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __installAppFromShareUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.apps.v1.app_instance',\n method: 'POST' as any,\n methodFqn:\n 'wix.devcenter.apps.installer.v1.AppsInstallerService.InstallAppFromShareUrl',\n packageName: PACKAGE_NAME,\n url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n protoPath: '/v1/app-share-url/install',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'appInstance.installedDate' },\n { path: 'appInstance.updatedDate' },\n { path: 'dependenciesInstallation.installedDate' },\n { path: 'dependenciesInstallation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __installAppFromShareUrl;\n}\n\n/** Returns whether it's possible to install an app on a tenant, either by providing app instance details or using a share URL. */\nexport function isPermittedToInstallApps(\n payload: object\n): RequestOptionsFactory<any> {\n function __isPermittedToInstallApps({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'appsInstallOptions.appInstances.installedDate' },\n { path: 'appsInstallOptions.appInstances.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.apps.v1.app_instance',\n method: 'POST' as any,\n methodFqn:\n 'wix.devcenter.apps.installer.v1.AppsInstallerService.IsPermittedToInstallApps',\n packageName: PACKAGE_NAME,\n url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n protoPath: '/v1/app-instance/is-permitted-to-install',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __isPermittedToInstallApps;\n}\n\n/** Returns the apps that are installed on the site in context */\nexport function getInstalledApps(payload: object): RequestOptionsFactory<any> {\n function __getInstalledApps({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.apps.v1.app_instance',\n method: 'GET' as any,\n methodFqn:\n 'wix.devcenter.apps.installer.v1.AppsInstallerService.GetInstalledApps',\n packageName: PACKAGE_NAME,\n url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n protoPath: '/v1/app-instances',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'appInstances.installedDate' },\n { path: 'appInstances.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'GET' as any,\n url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({\n protoPath: '/v1/app-instances',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n },\n ],\n };\n\n return metadata;\n }\n\n return __getInstalledApps;\n}\n","import * as ambassadorWixAppsV1AppInstance from './apps-v1-app-instance-apps-installer.http.js';\nimport * as ambassadorWixAppsV1AppInstanceTypes from './apps-v1-app-instance-apps-installer.types.js';\nimport * as ambassadorWixAppsV1AppInstanceUniversalTypes from './apps-v1-app-instance-apps-installer.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function installApp(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAppsV1AppInstanceUniversalTypes.InstallAppRequest,\n ambassadorWixAppsV1AppInstanceTypes.InstallAppRequest,\n ambassadorWixAppsV1AppInstanceUniversalTypes.InstallAppResponse,\n ambassadorWixAppsV1AppInstanceTypes.InstallAppResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixAppsV1AppInstance.installApp(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/app-instance/install',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function uninstallApp(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAppsV1AppInstanceUniversalTypes.UninstallAppRequest,\n ambassadorWixAppsV1AppInstanceTypes.UninstallAppRequest,\n ambassadorWixAppsV1AppInstanceUniversalTypes.UninstallAppResponse,\n ambassadorWixAppsV1AppInstanceTypes.UninstallAppResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAppsV1AppInstance.uninstallApp(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/app-instance/uninstall',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUninstallApp(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAppsV1AppInstanceUniversalTypes.BulkUninstallAppRequest,\n ambassadorWixAppsV1AppInstanceTypes.BulkUninstallAppRequest,\n ambassadorWixAppsV1AppInstanceUniversalTypes.BulkUninstallAppResponse,\n ambassadorWixAppsV1AppInstanceTypes.BulkUninstallAppResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAppsV1AppInstance.bulkUninstallApp(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/app-instance/uninstall',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function installAppFromShareUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAppsV1AppInstanceUniversalTypes.InstallAppFromShareUrlRequest,\n ambassadorWixAppsV1AppInstanceTypes.InstallAppFromShareUrlRequest,\n ambassadorWixAppsV1AppInstanceUniversalTypes.InstallAppFromShareUrlResponse,\n ambassadorWixAppsV1AppInstanceTypes.InstallAppFromShareUrlResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAppsV1AppInstance.installAppFromShareUrl(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/app-share-url/install',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function isPermittedToInstallApps(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixAppsV1AppInstanceUniversalTypes.IsPermittedToInstallAppsRequest,\n ambassadorWixAppsV1AppInstanceTypes.IsPermittedToInstallAppsRequest,\n ambassadorWixAppsV1AppInstanceUniversalTypes.IsPermittedToInstallAppsResponse,\n ambassadorWixAppsV1AppInstanceTypes.IsPermittedToInstallAppsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAppsV1AppInstance.isPermittedToInstallApps(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/app-instance/is-permitted-to-install',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getInstalledApps(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixAppsV1AppInstanceUniversalTypes.GetInstalledAppsRequest,\n ambassadorWixAppsV1AppInstanceTypes.GetInstalledAppsRequest,\n ambassadorWixAppsV1AppInstanceUniversalTypes.GetInstalledAppsResponse,\n ambassadorWixAppsV1AppInstanceTypes.GetInstalledAppsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixAppsV1AppInstance.getInstalledApps(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/app-instances',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAAA;AAAA,EAAA,wBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,gCAAAC;AAAA,EAAA,oBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,0DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA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AA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,0BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC2B,uBAAuB,OAAO;AAE/D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,4BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC2B,yBAAyB,OAAO;AAEjE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,oBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC2B,iBAAiB,OAAO;AAEzD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["bulkUninstallApp","getInstalledApps","installApp","installAppFromShareUrl","isPermittedToInstallApps","uninstallApp","import_timestamp","import_rest_modules","payload","installApp","uninstallApp","bulkUninstallApp","installAppFromShareUrl","isPermittedToInstallApps","getInstalledApps"]}
|