@wix/auto_sdk_apps-installer_apps-installer 1.0.17 → 1.0.19
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 +49 -0
- package/build/cjs/index.js +0 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +51 -6
- package/build/cjs/index.typings.js +0 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -6
- package/build/cjs/meta.js +0 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +210 -0
- package/build/cjs/schemas.js +394 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +49 -0
- package/build/es/index.mjs +0 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +51 -6
- package/build/es/index.typings.mjs +0 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -6
- package/build/es/meta.mjs +0 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +210 -0
- package/build/es/schemas.mjs +344 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +49 -0
- package/build/internal/cjs/index.js +0 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +51 -6
- package/build/internal/cjs/index.typings.js +0 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +2 -6
- package/build/internal/cjs/meta.js +0 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +210 -0
- package/build/internal/cjs/schemas.js +394 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +49 -0
- package/build/internal/es/index.mjs +0 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +51 -6
- package/build/internal/es/index.typings.mjs +0 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +2 -6
- package/build/internal/es/meta.mjs +0 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +210 -0
- package/build/internal/es/schemas.mjs +344 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
// src/apps-v1-app-instance-apps-installer.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var InstallAppRequest = z.object({
|
|
4
|
+
tenant: z.object({
|
|
5
|
+
_id: z.string().describe(
|
|
6
|
+
"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)."
|
|
7
|
+
),
|
|
8
|
+
tenantType: z.enum(["SITE", "ACCOUNT"]).optional()
|
|
9
|
+
}).describe("Tenant details."),
|
|
10
|
+
options: z.object({
|
|
11
|
+
appInstance: z.object({
|
|
12
|
+
_id: z.string().describe("App instance ID.").regex(
|
|
13
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
14
|
+
"Must be a valid GUID"
|
|
15
|
+
).optional(),
|
|
16
|
+
appDefId: z.string().describe("ID of the app to install.").regex(
|
|
17
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
18
|
+
"Must be a valid GUID"
|
|
19
|
+
),
|
|
20
|
+
version: z.string().describe(
|
|
21
|
+
"Version of the app to install.\n\nIf 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."
|
|
22
|
+
).optional().nullable(),
|
|
23
|
+
enabled: z.boolean().describe("Whether the app instance is enabled.").optional(),
|
|
24
|
+
appToken: z.string().describe(
|
|
25
|
+
"A signed access token of the Wix user and the app instance."
|
|
26
|
+
).optional().nullable(),
|
|
27
|
+
installedDate: z.date().describe("Date and time the app instance was installed.").optional().nullable(),
|
|
28
|
+
_updatedDate: z.date().describe("Date and time the app instance was last updated.").optional().nullable()
|
|
29
|
+
}).describe(
|
|
30
|
+
"Details of the app instance to create when the app is installed."
|
|
31
|
+
)
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
var InstallAppResponse = z.object({
|
|
35
|
+
appInstance: z.object({
|
|
36
|
+
_id: z.string().describe("App instance ID.").regex(
|
|
37
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
38
|
+
"Must be a valid GUID"
|
|
39
|
+
).optional(),
|
|
40
|
+
appDefId: z.string().describe("ID of the app to install.").regex(
|
|
41
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
42
|
+
"Must be a valid GUID"
|
|
43
|
+
).optional(),
|
|
44
|
+
version: z.string().describe(
|
|
45
|
+
"Version of the app to install.\n\nIf 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."
|
|
46
|
+
).optional().nullable(),
|
|
47
|
+
enabled: z.boolean().describe("Whether the app instance is enabled.").optional(),
|
|
48
|
+
appToken: z.string().describe("A signed access token of the Wix user and the app instance.").optional().nullable(),
|
|
49
|
+
installedDate: z.date().describe("Date and time the app instance was installed.").optional().nullable(),
|
|
50
|
+
_updatedDate: z.date().describe("Date and time the app instance was last updated.").optional().nullable()
|
|
51
|
+
}).describe("The app instance created when the app was installed.").optional()
|
|
52
|
+
});
|
|
53
|
+
var BulkInstallAppRequest = z.object({
|
|
54
|
+
tenant: z.object({
|
|
55
|
+
_id: z.string().describe(
|
|
56
|
+
"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)."
|
|
57
|
+
),
|
|
58
|
+
tenantType: z.enum(["SITE", "ACCOUNT"]).optional()
|
|
59
|
+
}).describe("Tenant details."),
|
|
60
|
+
options: z.object({
|
|
61
|
+
appInstances: z.array(
|
|
62
|
+
z.object({
|
|
63
|
+
_id: z.string().describe("App instance ID.").regex(
|
|
64
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
65
|
+
"Must be a valid GUID"
|
|
66
|
+
).optional(),
|
|
67
|
+
appDefId: z.string().describe("ID of the app to install.").regex(
|
|
68
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
69
|
+
"Must be a valid GUID"
|
|
70
|
+
).optional(),
|
|
71
|
+
version: z.string().describe(
|
|
72
|
+
"Version of the app to install.\n\nIf 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."
|
|
73
|
+
).optional().nullable(),
|
|
74
|
+
enabled: z.boolean().describe("Whether the app instance is enabled.").optional(),
|
|
75
|
+
appToken: z.string().describe(
|
|
76
|
+
"A signed access token of the Wix user and the app instance."
|
|
77
|
+
).optional().nullable(),
|
|
78
|
+
installedDate: z.date().describe("Date and time the app instance was installed.").optional().nullable(),
|
|
79
|
+
_updatedDate: z.date().describe("Date and time the app instance was last updated.").optional().nullable()
|
|
80
|
+
})
|
|
81
|
+
).max(20).optional()
|
|
82
|
+
}).optional()
|
|
83
|
+
});
|
|
84
|
+
var BulkInstallAppResponse = z.object({
|
|
85
|
+
results: z.array(
|
|
86
|
+
z.object({
|
|
87
|
+
itemMetadata: z.object({
|
|
88
|
+
_id: z.string().describe(
|
|
89
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
90
|
+
).optional().nullable(),
|
|
91
|
+
originalIndex: z.number().int().describe(
|
|
92
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
93
|
+
).optional(),
|
|
94
|
+
success: z.boolean().describe(
|
|
95
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
96
|
+
).optional(),
|
|
97
|
+
error: z.object({
|
|
98
|
+
code: z.string().describe("Error code.").optional(),
|
|
99
|
+
description: z.string().describe("Description of the error.").optional(),
|
|
100
|
+
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
101
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
102
|
+
}).describe("Metadata about the app installation.").optional(),
|
|
103
|
+
appInstance: z.object({
|
|
104
|
+
_id: z.string().describe("App instance ID.").regex(
|
|
105
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
106
|
+
"Must be a valid GUID"
|
|
107
|
+
).optional(),
|
|
108
|
+
appDefId: z.string().describe("ID of the app to install.").regex(
|
|
109
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
110
|
+
"Must be a valid GUID"
|
|
111
|
+
).optional(),
|
|
112
|
+
version: z.string().describe(
|
|
113
|
+
"Version of the app to install.\n\nIf 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."
|
|
114
|
+
).optional().nullable(),
|
|
115
|
+
enabled: z.boolean().describe("Whether the app instance is enabled.").optional(),
|
|
116
|
+
appToken: z.string().describe(
|
|
117
|
+
"A signed access token of the Wix user and the app instance."
|
|
118
|
+
).optional().nullable(),
|
|
119
|
+
installedDate: z.date().describe("Date and time the app instance was installed.").optional().nullable(),
|
|
120
|
+
_updatedDate: z.date().describe("Date and time the app instance was last updated.").optional().nullable()
|
|
121
|
+
}).describe("Details of the created app instance.").optional()
|
|
122
|
+
})
|
|
123
|
+
).optional(),
|
|
124
|
+
bulkActionMetadata: z.object({
|
|
125
|
+
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
126
|
+
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
127
|
+
undetailedFailures: z.number().int().describe(
|
|
128
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
129
|
+
).optional()
|
|
130
|
+
}).describe("Metadata about the bulk installation.").optional()
|
|
131
|
+
});
|
|
132
|
+
var UninstallAppRequest = z.object({
|
|
133
|
+
options: z.object({
|
|
134
|
+
tenant: z.object({
|
|
135
|
+
_id: z.string().describe(
|
|
136
|
+
"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)."
|
|
137
|
+
).optional(),
|
|
138
|
+
tenantType: z.enum(["SITE", "ACCOUNT"]).optional()
|
|
139
|
+
}).describe("Tenant details.").optional(),
|
|
140
|
+
appDefId: z.string().describe("The ID of the app to install.").regex(
|
|
141
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
142
|
+
"Must be a valid GUID"
|
|
143
|
+
)
|
|
144
|
+
})
|
|
145
|
+
});
|
|
146
|
+
var UninstallAppResponse = z.object({});
|
|
147
|
+
var BulkUninstallAppRequest = z.object({
|
|
148
|
+
options: z.object({
|
|
149
|
+
tenant: z.object({
|
|
150
|
+
_id: z.string().describe(
|
|
151
|
+
"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)."
|
|
152
|
+
).optional(),
|
|
153
|
+
tenantType: z.enum(["SITE", "ACCOUNT"]).optional()
|
|
154
|
+
}).describe("Tenant details.").optional(),
|
|
155
|
+
appDefIds: z.array(z.string()).max(20)
|
|
156
|
+
})
|
|
157
|
+
});
|
|
158
|
+
var BulkUninstallAppResponse = z.object({
|
|
159
|
+
results: z.array(
|
|
160
|
+
z.object({
|
|
161
|
+
itemMetadata: z.object({
|
|
162
|
+
_id: z.string().describe(
|
|
163
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
164
|
+
).optional().nullable(),
|
|
165
|
+
originalIndex: z.number().int().describe(
|
|
166
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
167
|
+
).optional(),
|
|
168
|
+
success: z.boolean().describe(
|
|
169
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
170
|
+
).optional(),
|
|
171
|
+
error: z.object({
|
|
172
|
+
code: z.string().describe("Error code.").optional(),
|
|
173
|
+
description: z.string().describe("Description of the error.").optional(),
|
|
174
|
+
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
175
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
176
|
+
}).describe("Metadata about the uninstalled app instance.").optional(),
|
|
177
|
+
appDefId: z.string().regex(
|
|
178
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
179
|
+
"Must be a valid GUID"
|
|
180
|
+
).optional(),
|
|
181
|
+
appInstance: z.object({
|
|
182
|
+
_id: z.string().describe("App instance ID.").regex(
|
|
183
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
184
|
+
"Must be a valid GUID"
|
|
185
|
+
).optional(),
|
|
186
|
+
appDefId: z.string().describe("ID of the app to install.").regex(
|
|
187
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
188
|
+
"Must be a valid GUID"
|
|
189
|
+
).optional(),
|
|
190
|
+
version: z.string().describe(
|
|
191
|
+
"Version of the app to install.\n\nIf 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."
|
|
192
|
+
).optional().nullable(),
|
|
193
|
+
enabled: z.boolean().describe("Whether the app instance is enabled.").optional(),
|
|
194
|
+
appToken: z.string().describe(
|
|
195
|
+
"A signed access token of the Wix user and the app instance."
|
|
196
|
+
).optional().nullable(),
|
|
197
|
+
installedDate: z.date().describe("Date and time the app instance was installed.").optional().nullable(),
|
|
198
|
+
_updatedDate: z.date().describe("Date and time the app instance was last updated.").optional().nullable()
|
|
199
|
+
}).describe("Details of the uninstalled app instance.").optional()
|
|
200
|
+
})
|
|
201
|
+
).optional(),
|
|
202
|
+
bulkActionMetadata: z.object({
|
|
203
|
+
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
204
|
+
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
205
|
+
undetailedFailures: z.number().int().describe(
|
|
206
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
207
|
+
).optional()
|
|
208
|
+
}).describe("Metadata about the bulk uninstallation.").optional()
|
|
209
|
+
});
|
|
210
|
+
var InstallAppFromShareUrlRequest = z.object({
|
|
211
|
+
tenant: z.object({
|
|
212
|
+
_id: z.string().describe(
|
|
213
|
+
"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)."
|
|
214
|
+
),
|
|
215
|
+
tenantType: z.enum(["SITE", "ACCOUNT"]).optional()
|
|
216
|
+
}).describe("Tenant details."),
|
|
217
|
+
options: z.object({
|
|
218
|
+
shareUrlId: z.string().describe(
|
|
219
|
+
"ID of the share URL to install the app from.\n\nTo get the share URL of an app:\n\n1. [Generate an install link](https://dev.wix.com/docs/build-apps/develop-your-app/app-dashboard-setup/share-your-app-with-an-install-link).\n\n2. 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`."
|
|
220
|
+
).regex(
|
|
221
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
222
|
+
"Must be a valid GUID"
|
|
223
|
+
),
|
|
224
|
+
devVersion: z.object({
|
|
225
|
+
overrideId: z.string().describe("ID of the override to assign to the development version.").max(50).optional()
|
|
226
|
+
}).describe(
|
|
227
|
+
"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."
|
|
228
|
+
).optional()
|
|
229
|
+
})
|
|
230
|
+
});
|
|
231
|
+
var InstallAppFromShareUrlResponse = z.object({
|
|
232
|
+
appInstance: z.object({
|
|
233
|
+
_id: z.string().describe("App instance ID.").regex(
|
|
234
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
235
|
+
"Must be a valid GUID"
|
|
236
|
+
).optional(),
|
|
237
|
+
appDefId: z.string().describe("ID of the app to install.").regex(
|
|
238
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
239
|
+
"Must be a valid GUID"
|
|
240
|
+
).optional(),
|
|
241
|
+
version: z.string().describe(
|
|
242
|
+
"Version of the app to install.\n\nIf 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."
|
|
243
|
+
).optional().nullable(),
|
|
244
|
+
enabled: z.boolean().describe("Whether the app instance is enabled.").optional(),
|
|
245
|
+
appToken: z.string().describe("A signed access token of the Wix user and the app instance.").optional().nullable(),
|
|
246
|
+
installedDate: z.date().describe("Date and time the app instance was installed.").optional().nullable(),
|
|
247
|
+
_updatedDate: z.date().describe("Date and time the app instance was last updated.").optional().nullable()
|
|
248
|
+
}).describe("App instance created when the app was installed.").optional()
|
|
249
|
+
});
|
|
250
|
+
var IsPermittedToInstallAppsRequest = z.object({
|
|
251
|
+
installType: z.enum(["APPS_INSTALL", "SHARE_URL_INSTALL"]),
|
|
252
|
+
options: z.intersection(
|
|
253
|
+
z.object({}),
|
|
254
|
+
z.xor([
|
|
255
|
+
z.object({
|
|
256
|
+
shareUrlInstallOptions: z.never().optional(),
|
|
257
|
+
appsInstallOptions: z.object({
|
|
258
|
+
tenant: z.object({
|
|
259
|
+
_id: z.string().describe(
|
|
260
|
+
"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)."
|
|
261
|
+
).optional(),
|
|
262
|
+
tenantType: z.enum(["SITE", "ACCOUNT"]).optional()
|
|
263
|
+
}).describe("Tenant details.").optional(),
|
|
264
|
+
appInstances: z.array(
|
|
265
|
+
z.object({
|
|
266
|
+
_id: z.string().describe("App instance ID.").regex(
|
|
267
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
268
|
+
"Must be a valid GUID"
|
|
269
|
+
).optional(),
|
|
270
|
+
appDefId: z.string().describe("ID of the app to install.").regex(
|
|
271
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
272
|
+
"Must be a valid GUID"
|
|
273
|
+
).optional(),
|
|
274
|
+
version: z.string().describe(
|
|
275
|
+
"Version of the app to install.\n\nIf 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."
|
|
276
|
+
).optional().nullable(),
|
|
277
|
+
enabled: z.boolean().describe("Whether the app instance is enabled.").optional(),
|
|
278
|
+
appToken: z.string().describe(
|
|
279
|
+
"A signed access token of the Wix user and the app instance."
|
|
280
|
+
).optional().nullable(),
|
|
281
|
+
installedDate: z.date().describe("Date and time the app instance was installed.").optional().nullable(),
|
|
282
|
+
_updatedDate: z.date().describe(
|
|
283
|
+
"Date and time the app instance was last updated."
|
|
284
|
+
).optional().nullable()
|
|
285
|
+
})
|
|
286
|
+
).min(1).max(30).optional()
|
|
287
|
+
}).describe("Install the app using app instance details.")
|
|
288
|
+
}),
|
|
289
|
+
z.object({
|
|
290
|
+
appsInstallOptions: z.never().optional(),
|
|
291
|
+
shareUrlInstallOptions: z.object({
|
|
292
|
+
shareUrlId: z.string().describe("ID of the share URL to install the app from.").regex(
|
|
293
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
294
|
+
"Must be a valid GUID"
|
|
295
|
+
).optional()
|
|
296
|
+
}).describe("Install an app using a share URL.")
|
|
297
|
+
})
|
|
298
|
+
])
|
|
299
|
+
)
|
|
300
|
+
});
|
|
301
|
+
var IsPermittedToInstallAppsResponse = z.object({
|
|
302
|
+
permitted: z.boolean().describe("Whether the installation is permitted.").optional()
|
|
303
|
+
});
|
|
304
|
+
var GetInstalledAppsRequest = z.object({});
|
|
305
|
+
var GetInstalledAppsResponse = z.object({
|
|
306
|
+
appInstances: z.array(
|
|
307
|
+
z.object({
|
|
308
|
+
_id: z.string().describe("App instance ID.").regex(
|
|
309
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
310
|
+
"Must be a valid GUID"
|
|
311
|
+
).optional(),
|
|
312
|
+
appDefId: z.string().describe("ID of the app to install.").regex(
|
|
313
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
314
|
+
"Must be a valid GUID"
|
|
315
|
+
).optional(),
|
|
316
|
+
version: z.string().describe(
|
|
317
|
+
"Version of the app to install.\n\nIf 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."
|
|
318
|
+
).optional().nullable(),
|
|
319
|
+
enabled: z.boolean().describe("Whether the app instance is enabled.").optional(),
|
|
320
|
+
appToken: z.string().describe(
|
|
321
|
+
"A signed access token of the Wix user and the app instance."
|
|
322
|
+
).optional().nullable(),
|
|
323
|
+
installedDate: z.date().describe("Date and time the app instance was installed.").optional().nullable(),
|
|
324
|
+
_updatedDate: z.date().describe("Date and time the app instance was last updated.").optional().nullable()
|
|
325
|
+
})
|
|
326
|
+
).optional()
|
|
327
|
+
});
|
|
328
|
+
export {
|
|
329
|
+
BulkInstallAppRequest,
|
|
330
|
+
BulkInstallAppResponse,
|
|
331
|
+
BulkUninstallAppRequest,
|
|
332
|
+
BulkUninstallAppResponse,
|
|
333
|
+
GetInstalledAppsRequest,
|
|
334
|
+
GetInstalledAppsResponse,
|
|
335
|
+
InstallAppFromShareUrlRequest,
|
|
336
|
+
InstallAppFromShareUrlResponse,
|
|
337
|
+
InstallAppRequest,
|
|
338
|
+
InstallAppResponse,
|
|
339
|
+
IsPermittedToInstallAppsRequest,
|
|
340
|
+
IsPermittedToInstallAppsResponse,
|
|
341
|
+
UninstallAppRequest,
|
|
342
|
+
UninstallAppResponse
|
|
343
|
+
};
|
|
344
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/apps-v1-app-instance-apps-installer.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const InstallAppRequest = z.object({\n tenant: z\n .object({\n _id: z\n .string()\n .describe(\n '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).'\n ),\n tenantType: z.enum(['SITE', 'ACCOUNT']).optional(),\n })\n .describe('Tenant details.'),\n options: z.object({\n appInstance: z\n .object({\n _id: z\n .string()\n .describe('App instance ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n appDefId: z\n .string()\n .describe('ID of the app to install.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n version: z\n .string()\n .describe(\n \"Version of the app to install.\\n\\nIf 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.\"\n )\n .optional()\n .nullable(),\n enabled: z\n .boolean()\n .describe('Whether the app instance is enabled.')\n .optional(),\n appToken: z\n .string()\n .describe(\n 'A signed access token of the Wix user and the app instance.'\n )\n .optional()\n .nullable(),\n installedDate: z\n .date()\n .describe('Date and time the app instance was installed.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the app instance was last updated.')\n .optional()\n .nullable(),\n })\n .describe(\n 'Details of the app instance to create when the app is installed.'\n ),\n }),\n});\nexport const InstallAppResponse = z.object({\n appInstance: z\n .object({\n _id: z\n .string()\n .describe('App instance ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n appDefId: z\n .string()\n .describe('ID of the app to install.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n version: z\n .string()\n .describe(\n \"Version of the app to install.\\n\\nIf 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.\"\n )\n .optional()\n .nullable(),\n enabled: z\n .boolean()\n .describe('Whether the app instance is enabled.')\n .optional(),\n appToken: z\n .string()\n .describe('A signed access token of the Wix user and the app instance.')\n .optional()\n .nullable(),\n installedDate: z\n .date()\n .describe('Date and time the app instance was installed.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the app instance was last updated.')\n .optional()\n .nullable(),\n })\n .describe('The app instance created when the app was installed.')\n .optional(),\n});\nexport const BulkInstallAppRequest = z.object({\n tenant: z\n .object({\n _id: z\n .string()\n .describe(\n '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).'\n ),\n tenantType: z.enum(['SITE', 'ACCOUNT']).optional(),\n })\n .describe('Tenant details.'),\n options: z\n .object({\n appInstances: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('App instance ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n appDefId: z\n .string()\n .describe('ID of the app to install.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n version: z\n .string()\n .describe(\n \"Version of the app to install.\\n\\nIf 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.\"\n )\n .optional()\n .nullable(),\n enabled: z\n .boolean()\n .describe('Whether the app instance is enabled.')\n .optional(),\n appToken: z\n .string()\n .describe(\n 'A signed access token of the Wix user and the app instance.'\n )\n .optional()\n .nullable(),\n installedDate: z\n .date()\n .describe('Date and time the app instance was installed.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the app instance was last updated.')\n .optional()\n .nullable(),\n })\n )\n .max(20)\n .optional(),\n })\n .optional(),\n});\nexport const BulkInstallAppResponse = z.object({\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\n )\n .optional()\n .nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe('Metadata about the app installation.')\n .optional(),\n appInstance: z\n .object({\n _id: z\n .string()\n .describe('App instance ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n appDefId: z\n .string()\n .describe('ID of the app to install.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n version: z\n .string()\n .describe(\n \"Version of the app to install.\\n\\nIf 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.\"\n )\n .optional()\n .nullable(),\n enabled: z\n .boolean()\n .describe('Whether the app instance is enabled.')\n .optional(),\n appToken: z\n .string()\n .describe(\n 'A signed access token of the Wix user and the app instance.'\n )\n .optional()\n .nullable(),\n installedDate: z\n .date()\n .describe('Date and time the app instance was installed.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the app instance was last updated.')\n .optional()\n .nullable(),\n })\n .describe('Details of the created app instance.')\n .optional(),\n })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe('Metadata about the bulk installation.')\n .optional(),\n});\nexport const UninstallAppRequest = z.object({\n options: z.object({\n tenant: z\n .object({\n _id: z\n .string()\n .describe(\n '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).'\n )\n .optional(),\n tenantType: z.enum(['SITE', 'ACCOUNT']).optional(),\n })\n .describe('Tenant details.')\n .optional(),\n appDefId: z\n .string()\n .describe('The ID of the app to install.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n});\nexport const UninstallAppResponse = z.object({});\nexport const BulkUninstallAppRequest = z.object({\n options: z.object({\n tenant: z\n .object({\n _id: z\n .string()\n .describe(\n '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).'\n )\n .optional(),\n tenantType: z.enum(['SITE', 'ACCOUNT']).optional(),\n })\n .describe('Tenant details.')\n .optional(),\n appDefIds: z.array(z.string()).max(20),\n }),\n});\nexport const BulkUninstallAppResponse = z.object({\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\n )\n .optional()\n .nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe('Metadata about the uninstalled app instance.')\n .optional(),\n appDefId: z\n .string()\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n appInstance: z\n .object({\n _id: z\n .string()\n .describe('App instance ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n appDefId: z\n .string()\n .describe('ID of the app to install.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n version: z\n .string()\n .describe(\n \"Version of the app to install.\\n\\nIf 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.\"\n )\n .optional()\n .nullable(),\n enabled: z\n .boolean()\n .describe('Whether the app instance is enabled.')\n .optional(),\n appToken: z\n .string()\n .describe(\n 'A signed access token of the Wix user and the app instance.'\n )\n .optional()\n .nullable(),\n installedDate: z\n .date()\n .describe('Date and time the app instance was installed.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the app instance was last updated.')\n .optional()\n .nullable(),\n })\n .describe('Details of the uninstalled app instance.')\n .optional(),\n })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe('Metadata about the bulk uninstallation.')\n .optional(),\n});\nexport const InstallAppFromShareUrlRequest = z.object({\n tenant: z\n .object({\n _id: z\n .string()\n .describe(\n '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).'\n ),\n tenantType: z.enum(['SITE', 'ACCOUNT']).optional(),\n })\n .describe('Tenant details.'),\n options: z.object({\n shareUrlId: z\n .string()\n .describe(\n 'ID of the share URL to install the app from.\\n\\nTo get the share URL of an app:\\n\\n1. [Generate an install link](https://dev.wix.com/docs/build-apps/develop-your-app/app-dashboard-setup/share-your-app-with-an-install-link).\\n\\n2. 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`.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n devVersion: z\n .object({\n overrideId: z\n .string()\n .describe('ID of the override to assign to the development version.')\n .max(50)\n .optional(),\n })\n .describe(\n '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.'\n )\n .optional(),\n }),\n});\nexport const InstallAppFromShareUrlResponse = z.object({\n appInstance: z\n .object({\n _id: z\n .string()\n .describe('App instance ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n appDefId: z\n .string()\n .describe('ID of the app to install.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n version: z\n .string()\n .describe(\n \"Version of the app to install.\\n\\nIf 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.\"\n )\n .optional()\n .nullable(),\n enabled: z\n .boolean()\n .describe('Whether the app instance is enabled.')\n .optional(),\n appToken: z\n .string()\n .describe('A signed access token of the Wix user and the app instance.')\n .optional()\n .nullable(),\n installedDate: z\n .date()\n .describe('Date and time the app instance was installed.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the app instance was last updated.')\n .optional()\n .nullable(),\n })\n .describe('App instance created when the app was installed.')\n .optional(),\n});\nexport const IsPermittedToInstallAppsRequest = z.object({\n installType: z.enum(['APPS_INSTALL', 'SHARE_URL_INSTALL']),\n options: z.intersection(\n z.object({}),\n z.xor([\n z.object({\n shareUrlInstallOptions: z.never().optional(),\n appsInstallOptions: z\n .object({\n tenant: z\n .object({\n _id: z\n .string()\n .describe(\n '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).'\n )\n .optional(),\n tenantType: z.enum(['SITE', 'ACCOUNT']).optional(),\n })\n .describe('Tenant details.')\n .optional(),\n appInstances: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('App instance ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n appDefId: z\n .string()\n .describe('ID of the app to install.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n version: z\n .string()\n .describe(\n \"Version of the app to install.\\n\\nIf 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.\"\n )\n .optional()\n .nullable(),\n enabled: z\n .boolean()\n .describe('Whether the app instance is enabled.')\n .optional(),\n appToken: z\n .string()\n .describe(\n 'A signed access token of the Wix user and the app instance.'\n )\n .optional()\n .nullable(),\n installedDate: z\n .date()\n .describe('Date and time the app instance was installed.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the app instance was last updated.'\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(30)\n .optional(),\n })\n .describe('Install the app using app instance details.'),\n }),\n z.object({\n appsInstallOptions: z.never().optional(),\n shareUrlInstallOptions: z\n .object({\n shareUrlId: z\n .string()\n .describe('ID of the share URL to install the app from.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n })\n .describe('Install an app using a share URL.'),\n }),\n ])\n ),\n});\nexport const IsPermittedToInstallAppsResponse = z.object({\n permitted: z\n .boolean()\n .describe('Whether the installation is permitted.')\n .optional(),\n});\nexport const GetInstalledAppsRequest = z.object({});\nexport const GetInstalledAppsResponse = z.object({\n appInstances: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('App instance ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n appDefId: z\n .string()\n .describe('ID of the app to install.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n version: z\n .string()\n .describe(\n \"Version of the app to install.\\n\\nIf 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.\"\n )\n .optional()\n .nullable(),\n enabled: z\n .boolean()\n .describe('Whether the app instance is enabled.')\n .optional(),\n appToken: z\n .string()\n .describe(\n 'A signed access token of the Wix user and the app instance.'\n )\n .optional()\n .nullable(),\n installedDate: z\n .date()\n .describe('Date and time the app instance was installed.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the app instance was last updated.')\n .optional()\n .nullable(),\n })\n )\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,oBAAsB,SAAO;AAAA,EACxC,QACG,SAAO;AAAA,IACN,KACG,SAAO,EACP;AAAA,MACC;AAAA,IACF;AAAA,IACF,YAAc,OAAK,CAAC,QAAQ,SAAS,CAAC,EAAE,SAAS;AAAA,EACnD,CAAC,EACA,SAAS,iBAAiB;AAAA,EAC7B,SAAW,SAAO;AAAA,IAChB,aACG,SAAO;AAAA,MACN,KACG,SAAO,EACP,SAAS,kBAAkB,EAC3B;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS;AAAA,MACZ,UACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,QACC;AAAA,QACA;AAAA,MACF;AAAA,MACF,SACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,SACG,UAAQ,EACR,SAAS,sCAAsC,EAC/C,SAAS;AAAA,MAC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S,+CAA+C,EACxD,SAAS,EACT,SAAS;AAAA,MACZ,cACG,OAAK,EACL,SAAS,kDAAkD,EAC3D,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -19,6 +19,13 @@ interface InstallAppSignature {
|
|
|
19
19
|
*
|
|
20
20
|
* </blockquote>
|
|
21
21
|
*
|
|
22
|
+
* <blockquote class="note">
|
|
23
|
+
*
|
|
24
|
+
* __Note:__
|
|
25
|
+
* Only logged-in [Wix users](https://dev.wix.com/docs/rest/articles/get-started/about-identities#wix-user) or [API key admins](https://dev.wix.com/docs/rest/articles/get-started/about-identities#api-key-admin) can use this API.
|
|
26
|
+
*
|
|
27
|
+
* </blockquote>
|
|
28
|
+
*
|
|
22
29
|
* Installs an app on a tenant, specifying the details of the app instance to create.
|
|
23
30
|
*
|
|
24
31
|
* The ID of this app instance is automatically generated and included in the `appInstance` object in the response.
|
|
@@ -45,6 +52,13 @@ interface BulkInstallAppSignature {
|
|
|
45
52
|
*
|
|
46
53
|
* </blockquote>
|
|
47
54
|
*
|
|
55
|
+
* <blockquote class="note">
|
|
56
|
+
*
|
|
57
|
+
* __Note:__
|
|
58
|
+
* Only logged-in [Wix users](https://dev.wix.com/docs/rest/articles/get-started/about-identities#wix-user) or [API key admins](https://dev.wix.com/docs/rest/articles/get-started/about-identities#api-key-admin) can use this API.
|
|
59
|
+
*
|
|
60
|
+
* </blockquote>
|
|
61
|
+
*
|
|
48
62
|
* Bulk installs apps on a tenant, specifying the details of the app instances to create.
|
|
49
63
|
*
|
|
50
64
|
* The IDs of these app instances are automatically generated and included in the `appInstance` objects in the response.
|
|
@@ -57,6 +71,13 @@ interface BulkInstallAppSignature {
|
|
|
57
71
|
declare function uninstallApp$1(httpClient: HttpClient): UninstallAppSignature;
|
|
58
72
|
interface UninstallAppSignature {
|
|
59
73
|
/**
|
|
74
|
+
* <blockquote class="note">
|
|
75
|
+
*
|
|
76
|
+
* __Note:__
|
|
77
|
+
* Only logged-in [Wix users](https://dev.wix.com/docs/rest/articles/get-started/about-identities#wix-user) or [API key admins](https://dev.wix.com/docs/rest/articles/get-started/about-identities#api-key-admin) can use this API.
|
|
78
|
+
*
|
|
79
|
+
* </blockquote>
|
|
80
|
+
*
|
|
60
81
|
* Uninstalls an app from a tenant.
|
|
61
82
|
*
|
|
62
83
|
* This removes the instance of a specified app from the tenant.
|
|
@@ -66,6 +87,13 @@ interface UninstallAppSignature {
|
|
|
66
87
|
declare function bulkUninstallApp$1(httpClient: HttpClient): BulkUninstallAppSignature;
|
|
67
88
|
interface BulkUninstallAppSignature {
|
|
68
89
|
/**
|
|
90
|
+
* <blockquote class="note">
|
|
91
|
+
*
|
|
92
|
+
* __Note:__
|
|
93
|
+
* Only logged-in [Wix users](https://dev.wix.com/docs/rest/articles/get-started/about-identities#wix-user) or [API key admins](https://dev.wix.com/docs/rest/articles/get-started/about-identities#api-key-admin) can use this API.
|
|
94
|
+
*
|
|
95
|
+
* </blockquote>
|
|
96
|
+
*
|
|
69
97
|
* Uninstalls apps from a tenant.
|
|
70
98
|
*
|
|
71
99
|
* This removes the instances of the specified apps from the tenant.
|
|
@@ -89,6 +117,13 @@ interface InstallAppFromShareUrlSignature {
|
|
|
89
117
|
*
|
|
90
118
|
* </blockquote>
|
|
91
119
|
*
|
|
120
|
+
* <blockquote class="note">
|
|
121
|
+
*
|
|
122
|
+
* __Note:__
|
|
123
|
+
* Only logged-in [Wix users](https://dev.wix.com/docs/rest/articles/get-started/about-identities#wix-user) or [API key admins](https://dev.wix.com/docs/rest/articles/get-started/about-identities#api-key-admin) can use this API.
|
|
124
|
+
*
|
|
125
|
+
* </blockquote>
|
|
126
|
+
*
|
|
92
127
|
* Installs an app on a site using a share URL.
|
|
93
128
|
* @param - Tenant details.
|
|
94
129
|
*/
|
|
@@ -99,6 +134,13 @@ interface InstallAppFromShareUrlSignature {
|
|
|
99
134
|
declare function isPermittedToInstallApps$1(httpClient: HttpClient): IsPermittedToInstallAppsSignature;
|
|
100
135
|
interface IsPermittedToInstallAppsSignature {
|
|
101
136
|
/**
|
|
137
|
+
* <blockquote class="note">
|
|
138
|
+
*
|
|
139
|
+
* __Note:__
|
|
140
|
+
* Only logged-in [Wix users](https://dev.wix.com/docs/rest/articles/get-started/about-identities#wix-user) or [API key admins](https://dev.wix.com/docs/rest/articles/get-started/about-identities#api-key-admin) can use this API.
|
|
141
|
+
*
|
|
142
|
+
* </blockquote>
|
|
143
|
+
*
|
|
102
144
|
* Returns whether it's possible to install an app on a tenant, either by providing app instance details or using a share URL.
|
|
103
145
|
* @param - Installation type.
|
|
104
146
|
*/
|
|
@@ -109,6 +151,13 @@ interface IsPermittedToInstallAppsSignature {
|
|
|
109
151
|
declare function getInstalledApps$1(httpClient: HttpClient): GetInstalledAppsSignature;
|
|
110
152
|
interface GetInstalledAppsSignature {
|
|
111
153
|
/**
|
|
154
|
+
* <blockquote class="note">
|
|
155
|
+
*
|
|
156
|
+
* __Note:__
|
|
157
|
+
* Only logged-in [Wix users](https://dev.wix.com/docs/rest/articles/get-started/about-identities#wix-user) or [API key admins](https://dev.wix.com/docs/rest/articles/get-started/about-identities#api-key-admin) can use this API.
|
|
158
|
+
*
|
|
159
|
+
* </blockquote>
|
|
160
|
+
*
|
|
112
161
|
* Returns the apps that are installed on the site in context
|
|
113
162
|
*/
|
|
114
163
|
(): Promise<NonNullablePaths<GetInstalledAppsResponse, `appInstances` | `appInstances.${number}._id` | `appInstances.${number}.appDefId` | `appInstances.${number}.enabled`, 4>>;
|
|
@@ -410,12 +410,10 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
410
410
|
return WebhookIdentityType2;
|
|
411
411
|
})(WebhookIdentityType || {});
|
|
412
412
|
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
413
|
-
RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
414
413
|
RequestedFields2["CLIENT_SPEC_MAP"] = "CLIENT_SPEC_MAP";
|
|
415
414
|
return RequestedFields2;
|
|
416
415
|
})(RequestedFields || {});
|
|
417
416
|
var InstallType = /* @__PURE__ */ ((InstallType2) => {
|
|
418
|
-
InstallType2["UNKNOWN_INSTALL_TYPE"] = "UNKNOWN_INSTALL_TYPE";
|
|
419
417
|
InstallType2["APPS_INSTALL"] = "APPS_INSTALL";
|
|
420
418
|
InstallType2["SHARE_URL_INSTALL"] = "SHARE_URL_INSTALL";
|
|
421
419
|
return InstallType2;
|