@wix/auto_sdk_portfolio_projects 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 +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.context.d.ts +29 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.context.js +40 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.context.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.http.d.ts +42 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.http.js +634 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.http.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.meta.d.ts +30 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.meta.js +202 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.meta.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.public.d.ts +98 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.public.js +176 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.public.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.types.d.ts +1118 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.types.js +136 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.types.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.universal.d.ts +1446 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.universal.js +714 -0
- package/build/cjs/src/portfolio-projects-v1-project-projects.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/portfolio-projects-v1-project-projects.context.d.ts +29 -0
- package/build/es/src/portfolio-projects-v1-project-projects.context.js +29 -0
- package/build/es/src/portfolio-projects-v1-project-projects.context.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project-projects.http.d.ts +42 -0
- package/build/es/src/portfolio-projects-v1-project-projects.http.js +622 -0
- package/build/es/src/portfolio-projects-v1-project-projects.http.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project-projects.meta.d.ts +30 -0
- package/build/es/src/portfolio-projects-v1-project-projects.meta.js +167 -0
- package/build/es/src/portfolio-projects-v1-project-projects.meta.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project-projects.public.d.ts +98 -0
- package/build/es/src/portfolio-projects-v1-project-projects.public.js +156 -0
- package/build/es/src/portfolio-projects-v1-project-projects.public.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project-projects.types.d.ts +1118 -0
- package/build/es/src/portfolio-projects-v1-project-projects.types.js +133 -0
- package/build/es/src/portfolio-projects-v1-project-projects.types.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project-projects.universal.d.ts +1446 -0
- package/build/es/src/portfolio-projects-v1-project-projects.universal.js +679 -0
- package/build/es/src/portfolio-projects-v1-project-projects.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.context.d.ts +29 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.context.js +40 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.context.js.map +1 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.http.d.ts +42 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.http.js +634 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.http.js.map +1 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.meta.d.ts +30 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.meta.js +202 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.meta.js.map +1 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.public.d.ts +98 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.public.js +176 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.public.js.map +1 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.types.d.ts +1118 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.types.js +136 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.types.js.map +1 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.universal.d.ts +1446 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.universal.js +714 -0
- package/build/internal/cjs/src/portfolio-projects-v1-project-projects.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.context.d.ts +29 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.context.js +29 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.context.js.map +1 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.http.d.ts +42 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.http.js +622 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.http.js.map +1 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.meta.d.ts +30 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.meta.js +167 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.meta.js.map +1 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.public.d.ts +98 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.public.js +156 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.public.js.map +1 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.types.d.ts +1118 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.types.js +133 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.types.js.map +1 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.universal.d.ts +1446 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.universal.js +679 -0
- package/build/internal/es/src/portfolio-projects-v1-project-projects.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,1118 @@
|
|
|
1
|
+
export interface Project extends ProjectCoverOneOf {
|
|
2
|
+
/** Project cover image. */
|
|
3
|
+
coverImage?: Image;
|
|
4
|
+
/** Project cover video. */
|
|
5
|
+
coverVideo?: Video;
|
|
6
|
+
/**
|
|
7
|
+
* Project ID.
|
|
8
|
+
* @readonly
|
|
9
|
+
*/
|
|
10
|
+
id?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Revision number, which increments by 1 each time the project is updated. To prevent conflicting changes, the existing revision must be passed when updating the project object.
|
|
13
|
+
* @readonly
|
|
14
|
+
*/
|
|
15
|
+
revision?: string | null;
|
|
16
|
+
/** Project title. */
|
|
17
|
+
title?: string | null;
|
|
18
|
+
/** Project description. */
|
|
19
|
+
description?: string | null;
|
|
20
|
+
/** Whether the project is hidden from the portfolio. Default: `false` */
|
|
21
|
+
hidden?: boolean | null;
|
|
22
|
+
/** IDs of the collections that include the project. */
|
|
23
|
+
collectionIds?: string[];
|
|
24
|
+
/** Project details. */
|
|
25
|
+
details?: ProjectDetail[];
|
|
26
|
+
/** Project slug. */
|
|
27
|
+
slug?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Date and time the project was created.
|
|
30
|
+
* @readonly
|
|
31
|
+
*/
|
|
32
|
+
createdDate?: Date | null;
|
|
33
|
+
/**
|
|
34
|
+
* Date and time the project was updated.
|
|
35
|
+
* @readonly
|
|
36
|
+
*/
|
|
37
|
+
updatedDate?: Date | null;
|
|
38
|
+
/**
|
|
39
|
+
* Project page URL and and relative path. Returned when `includePageUrl` is `true` in the request.
|
|
40
|
+
* @readonly
|
|
41
|
+
*/
|
|
42
|
+
url?: PageUrlV2;
|
|
43
|
+
/** Project SEO data. */
|
|
44
|
+
seoData?: SeoSchema;
|
|
45
|
+
}
|
|
46
|
+
/** @oneof */
|
|
47
|
+
export interface ProjectCoverOneOf {
|
|
48
|
+
/** Project cover image. */
|
|
49
|
+
coverImage?: Image;
|
|
50
|
+
/** Project cover video. */
|
|
51
|
+
coverVideo?: Video;
|
|
52
|
+
}
|
|
53
|
+
export interface Image {
|
|
54
|
+
/** Information about the Wix Media image. */
|
|
55
|
+
imageInfo?: CommonImage;
|
|
56
|
+
/** Focal point of the image. */
|
|
57
|
+
focalPoint?: Point;
|
|
58
|
+
}
|
|
59
|
+
export declare enum ImageType {
|
|
60
|
+
UNDEFINED = "UNDEFINED",
|
|
61
|
+
WIX_MEDIA = "WIX_MEDIA",
|
|
62
|
+
EXTERNAL = "EXTERNAL"
|
|
63
|
+
}
|
|
64
|
+
export interface CommonImage {
|
|
65
|
+
/** WixMedia image ID. Required. */
|
|
66
|
+
id?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Image URL.
|
|
69
|
+
* @readonly
|
|
70
|
+
*/
|
|
71
|
+
url?: string;
|
|
72
|
+
/** Original image height. Required. */
|
|
73
|
+
height?: number;
|
|
74
|
+
/** Original image width. Required. */
|
|
75
|
+
width?: number;
|
|
76
|
+
/** Image alt text. */
|
|
77
|
+
altText?: string | null;
|
|
78
|
+
/** Image filename. */
|
|
79
|
+
filename?: string | null;
|
|
80
|
+
}
|
|
81
|
+
export interface Point {
|
|
82
|
+
/** X-coordinate of the focal point. */
|
|
83
|
+
x?: number;
|
|
84
|
+
/** Y-coordinate of the focal point. */
|
|
85
|
+
y?: number;
|
|
86
|
+
}
|
|
87
|
+
export interface UnsharpMasking {
|
|
88
|
+
/**
|
|
89
|
+
* Unsharp masking amount. Controls the sharpening strength. <br />
|
|
90
|
+
*
|
|
91
|
+
* Min: `0` <br />
|
|
92
|
+
* Max: `5`
|
|
93
|
+
*/
|
|
94
|
+
amount?: number | null;
|
|
95
|
+
/** Unsharp masking radius in pixels. Controls the sharpening width. */
|
|
96
|
+
radius?: number | null;
|
|
97
|
+
/**
|
|
98
|
+
* Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />
|
|
99
|
+
*
|
|
100
|
+
* Min: `0` <br />
|
|
101
|
+
* Max: `1`
|
|
102
|
+
*/
|
|
103
|
+
threshold?: number | null;
|
|
104
|
+
}
|
|
105
|
+
export interface Video {
|
|
106
|
+
/** Information about the Wix Media video. */
|
|
107
|
+
videoInfo?: VideoV2;
|
|
108
|
+
/** Manually defined Video duration in milliseconds. */
|
|
109
|
+
durationInMillis?: number | null;
|
|
110
|
+
}
|
|
111
|
+
export interface VideoV2 {
|
|
112
|
+
/** WixMedia ID. Required. */
|
|
113
|
+
id?: string;
|
|
114
|
+
/** Video URL. */
|
|
115
|
+
url?: string;
|
|
116
|
+
/** Available resolutions for the video, starting with the optimal resolution. */
|
|
117
|
+
resolutions?: VideoResolution[];
|
|
118
|
+
/** Video filename. */
|
|
119
|
+
filename?: string | null;
|
|
120
|
+
/** Video posters. */
|
|
121
|
+
posters?: CommonImage[];
|
|
122
|
+
}
|
|
123
|
+
export interface VideoResolution {
|
|
124
|
+
/** Video URL. Required. */
|
|
125
|
+
url?: string;
|
|
126
|
+
/** Video height. Required. */
|
|
127
|
+
height?: number;
|
|
128
|
+
/** Video width. Required. */
|
|
129
|
+
width?: number;
|
|
130
|
+
/** Video format for example, mp4, hls. Required. */
|
|
131
|
+
format?: string;
|
|
132
|
+
/** Video quality for example 480p, 720p. */
|
|
133
|
+
quality?: string | null;
|
|
134
|
+
/** Video filename. */
|
|
135
|
+
filename?: string | null;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Project label.
|
|
139
|
+
* One of:
|
|
140
|
+
* + `text`
|
|
141
|
+
* + `link`
|
|
142
|
+
*/
|
|
143
|
+
export interface ProjectDetail extends ProjectDetailValueOneOf {
|
|
144
|
+
/** Project label in plain text format. */
|
|
145
|
+
text?: string;
|
|
146
|
+
/** Project label in link format. */
|
|
147
|
+
link?: DetailsLink;
|
|
148
|
+
/** Project label. */
|
|
149
|
+
label?: string;
|
|
150
|
+
}
|
|
151
|
+
/** @oneof */
|
|
152
|
+
export interface ProjectDetailValueOneOf {
|
|
153
|
+
/** Project label in plain text format. */
|
|
154
|
+
text?: string;
|
|
155
|
+
/** Project label in link format. */
|
|
156
|
+
link?: DetailsLink;
|
|
157
|
+
}
|
|
158
|
+
export interface DetailsLink {
|
|
159
|
+
/** Display text of the link. */
|
|
160
|
+
text?: string | null;
|
|
161
|
+
/** Target URL of the link. */
|
|
162
|
+
url?: string | null;
|
|
163
|
+
/**
|
|
164
|
+
* Whether the link opens in a new tab or window. One of:
|
|
165
|
+
* * `'_blank'`: The link opens in a new tab or window.
|
|
166
|
+
* * `'_self'`: The link opens in the same tab or window.
|
|
167
|
+
*/
|
|
168
|
+
target?: string | null;
|
|
169
|
+
}
|
|
170
|
+
export interface ProjectSource {
|
|
171
|
+
/** App definition id */
|
|
172
|
+
appDefId?: string;
|
|
173
|
+
/** External source id */
|
|
174
|
+
externalId?: string;
|
|
175
|
+
/** Source name */
|
|
176
|
+
sourceName?: string;
|
|
177
|
+
/** Source description */
|
|
178
|
+
description?: string | null;
|
|
179
|
+
/** link to external source */
|
|
180
|
+
link?: string | null;
|
|
181
|
+
/** Sync status */
|
|
182
|
+
syncStatus?: SyncStatus;
|
|
183
|
+
/** fields that are synced from external source, should be blocked to update in UI */
|
|
184
|
+
notEditableFields?: string[];
|
|
185
|
+
/** last date the project was synced */
|
|
186
|
+
lastSync?: Date | null;
|
|
187
|
+
}
|
|
188
|
+
export declare enum SyncStatus {
|
|
189
|
+
SYNCED = "SYNCED",
|
|
190
|
+
SYNCING = "SYNCING",
|
|
191
|
+
NOT_SYNCED = "NOT_SYNCED"
|
|
192
|
+
}
|
|
193
|
+
export interface PageUrlV2 {
|
|
194
|
+
/** The relative path for the page within the site. For example, `/product-page/a-product`. */
|
|
195
|
+
relativePath?: string;
|
|
196
|
+
/** The page's full URL. For example, `https://mysite.com/product-page/a-product`. */
|
|
197
|
+
url?: string | null;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
|
|
201
|
+
* The search engines use this information for ranking purposes, or to display snippets in the search results.
|
|
202
|
+
* This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
|
|
203
|
+
*/
|
|
204
|
+
export interface SeoSchema {
|
|
205
|
+
/** SEO tag information. */
|
|
206
|
+
tags?: Tag[];
|
|
207
|
+
/** SEO general settings. */
|
|
208
|
+
settings?: Settings;
|
|
209
|
+
}
|
|
210
|
+
export interface Keyword {
|
|
211
|
+
/** Keyword value. */
|
|
212
|
+
term?: string;
|
|
213
|
+
/** Whether the keyword is the main focus keyword. */
|
|
214
|
+
isMain?: boolean;
|
|
215
|
+
/** The source that added the keyword terms to the SEO settings. */
|
|
216
|
+
origin?: string | null;
|
|
217
|
+
}
|
|
218
|
+
export interface Tag {
|
|
219
|
+
/**
|
|
220
|
+
* SEO tag type.
|
|
221
|
+
*
|
|
222
|
+
*
|
|
223
|
+
* Supported values: `title`, `meta`, `script`, `link`.
|
|
224
|
+
*/
|
|
225
|
+
type?: string;
|
|
226
|
+
/**
|
|
227
|
+
* A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
|
|
228
|
+
* For example: `{"name": "description", "content": "the description itself"}`.
|
|
229
|
+
*/
|
|
230
|
+
props?: Record<string, any> | null;
|
|
231
|
+
/** SEO tag meta data. For example, `{"height": 300, "width": 240}`. */
|
|
232
|
+
meta?: Record<string, any> | null;
|
|
233
|
+
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
|
234
|
+
children?: string;
|
|
235
|
+
/** Whether the tag is a custom tag. */
|
|
236
|
+
custom?: boolean;
|
|
237
|
+
/** Whether the tag is disabled. */
|
|
238
|
+
disabled?: boolean;
|
|
239
|
+
}
|
|
240
|
+
export interface Settings {
|
|
241
|
+
/**
|
|
242
|
+
* Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
|
|
243
|
+
*
|
|
244
|
+
*
|
|
245
|
+
* Default: `false` (Auto Redirect is enabled.)
|
|
246
|
+
*/
|
|
247
|
+
preventAutoRedirect?: boolean;
|
|
248
|
+
/** User-selected keyword terms for a specific page. */
|
|
249
|
+
keywords?: Keyword[];
|
|
250
|
+
}
|
|
251
|
+
export interface MenuSettingUpdatedEvent {
|
|
252
|
+
}
|
|
253
|
+
export interface GetProjectPageDataRequest {
|
|
254
|
+
/** Slug of the project's current collection */
|
|
255
|
+
collectionSlug?: string;
|
|
256
|
+
/** Project's slug */
|
|
257
|
+
projectSlug?: string;
|
|
258
|
+
}
|
|
259
|
+
export interface GetProjectPageDataResponse {
|
|
260
|
+
/** Project data */
|
|
261
|
+
project?: Project;
|
|
262
|
+
/** Previous project slug */
|
|
263
|
+
previousProject?: ProjectSlug;
|
|
264
|
+
/** Next project slug */
|
|
265
|
+
nextProject?: ProjectSlug;
|
|
266
|
+
}
|
|
267
|
+
export interface ProjectSlug {
|
|
268
|
+
/** Project id */
|
|
269
|
+
projectId?: string;
|
|
270
|
+
/** Project slug */
|
|
271
|
+
slug?: string;
|
|
272
|
+
}
|
|
273
|
+
export interface CreateNewPortfolioAppRequest {
|
|
274
|
+
}
|
|
275
|
+
export interface CreateNewPortfolioAppResponse {
|
|
276
|
+
}
|
|
277
|
+
export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
278
|
+
/** Emitted on a meta site creation. */
|
|
279
|
+
siteCreated?: SiteCreated;
|
|
280
|
+
/** Emitted on a meta site transfer completion. */
|
|
281
|
+
siteTransferred?: SiteTransferred;
|
|
282
|
+
/** Emitted on a meta site deletion. */
|
|
283
|
+
siteDeleted?: SiteDeleted;
|
|
284
|
+
/** Emitted on a meta site restoration. */
|
|
285
|
+
siteUndeleted?: SiteUndeleted;
|
|
286
|
+
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
287
|
+
sitePublished?: SitePublished;
|
|
288
|
+
/** Emitted on a meta site unpublish. */
|
|
289
|
+
siteUnpublished?: SiteUnpublished;
|
|
290
|
+
/** Emitted when meta site is marked as template. */
|
|
291
|
+
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
292
|
+
/** Emitted when meta site is marked as a WixSite. */
|
|
293
|
+
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
294
|
+
/** Emitted when an application is provisioned (installed). */
|
|
295
|
+
serviceProvisioned?: ServiceProvisioned;
|
|
296
|
+
/** Emitted when an application is removed (uninstalled). */
|
|
297
|
+
serviceRemoved?: ServiceRemoved;
|
|
298
|
+
/** Emitted when meta site name (URL slug) is changed. */
|
|
299
|
+
siteRenamedPayload?: SiteRenamed;
|
|
300
|
+
/** Emitted when meta site was permanently deleted. */
|
|
301
|
+
hardDeleted?: SiteHardDeleted;
|
|
302
|
+
/** Emitted on a namespace change. */
|
|
303
|
+
namespaceChanged?: NamespaceChanged;
|
|
304
|
+
/** Emitted when Studio is attached. */
|
|
305
|
+
studioAssigned?: StudioAssigned;
|
|
306
|
+
/** Emitted when Studio is detached. */
|
|
307
|
+
studioUnassigned?: StudioUnassigned;
|
|
308
|
+
/** A meta site id. */
|
|
309
|
+
metaSiteId?: string;
|
|
310
|
+
/** A meta site version. Monotonically increasing. */
|
|
311
|
+
version?: string;
|
|
312
|
+
/** A timestamp of the event. */
|
|
313
|
+
timestamp?: string;
|
|
314
|
+
/**
|
|
315
|
+
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
316
|
+
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
317
|
+
*/
|
|
318
|
+
assets?: Asset[];
|
|
319
|
+
}
|
|
320
|
+
/** @oneof */
|
|
321
|
+
export interface MetaSiteSpecialEventPayloadOneOf {
|
|
322
|
+
/** Emitted on a meta site creation. */
|
|
323
|
+
siteCreated?: SiteCreated;
|
|
324
|
+
/** Emitted on a meta site transfer completion. */
|
|
325
|
+
siteTransferred?: SiteTransferred;
|
|
326
|
+
/** Emitted on a meta site deletion. */
|
|
327
|
+
siteDeleted?: SiteDeleted;
|
|
328
|
+
/** Emitted on a meta site restoration. */
|
|
329
|
+
siteUndeleted?: SiteUndeleted;
|
|
330
|
+
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
331
|
+
sitePublished?: SitePublished;
|
|
332
|
+
/** Emitted on a meta site unpublish. */
|
|
333
|
+
siteUnpublished?: SiteUnpublished;
|
|
334
|
+
/** Emitted when meta site is marked as template. */
|
|
335
|
+
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
336
|
+
/** Emitted when meta site is marked as a WixSite. */
|
|
337
|
+
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
338
|
+
/** Emitted when an application is provisioned (installed). */
|
|
339
|
+
serviceProvisioned?: ServiceProvisioned;
|
|
340
|
+
/** Emitted when an application is removed (uninstalled). */
|
|
341
|
+
serviceRemoved?: ServiceRemoved;
|
|
342
|
+
/** Emitted when meta site name (URL slug) is changed. */
|
|
343
|
+
siteRenamedPayload?: SiteRenamed;
|
|
344
|
+
/** Emitted when meta site was permanently deleted. */
|
|
345
|
+
hardDeleted?: SiteHardDeleted;
|
|
346
|
+
/** Emitted on a namespace change. */
|
|
347
|
+
namespaceChanged?: NamespaceChanged;
|
|
348
|
+
/** Emitted when Studio is attached. */
|
|
349
|
+
studioAssigned?: StudioAssigned;
|
|
350
|
+
/** Emitted when Studio is detached. */
|
|
351
|
+
studioUnassigned?: StudioUnassigned;
|
|
352
|
+
}
|
|
353
|
+
export interface Asset {
|
|
354
|
+
/** An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum). */
|
|
355
|
+
appDefId?: string;
|
|
356
|
+
/** An instance id. For legacy reasons may be UUID or a string. */
|
|
357
|
+
instanceId?: string;
|
|
358
|
+
/** An application state. */
|
|
359
|
+
state?: State;
|
|
360
|
+
}
|
|
361
|
+
export declare enum State {
|
|
362
|
+
UNKNOWN = "UNKNOWN",
|
|
363
|
+
ENABLED = "ENABLED",
|
|
364
|
+
DISABLED = "DISABLED",
|
|
365
|
+
PENDING = "PENDING",
|
|
366
|
+
DEMO = "DEMO"
|
|
367
|
+
}
|
|
368
|
+
export interface SiteCreated {
|
|
369
|
+
/** A template identifier (empty if not created from a template). */
|
|
370
|
+
originTemplateId?: string;
|
|
371
|
+
/** An account id of the owner. */
|
|
372
|
+
ownerId?: string;
|
|
373
|
+
/** A context in which meta site was created. */
|
|
374
|
+
context?: SiteCreatedContext;
|
|
375
|
+
/**
|
|
376
|
+
* A meta site id from which this site was created.
|
|
377
|
+
*
|
|
378
|
+
* In case of a creation from a template it's a template id.
|
|
379
|
+
* In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
|
|
380
|
+
*/
|
|
381
|
+
originMetaSiteId?: string | null;
|
|
382
|
+
/** A meta site name (URL slug). */
|
|
383
|
+
siteName?: string;
|
|
384
|
+
/** A namespace. */
|
|
385
|
+
namespace?: Namespace;
|
|
386
|
+
}
|
|
387
|
+
export declare enum SiteCreatedContext {
|
|
388
|
+
/** A valid option, we don't expose all reasons why site might be created. */
|
|
389
|
+
OTHER = "OTHER",
|
|
390
|
+
/** A meta site was created from template. */
|
|
391
|
+
FROM_TEMPLATE = "FROM_TEMPLATE",
|
|
392
|
+
/** A meta site was created by copying of the transfferred meta site. */
|
|
393
|
+
DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
|
|
394
|
+
/** A copy of existing meta site. */
|
|
395
|
+
DUPLICATE = "DUPLICATE",
|
|
396
|
+
/** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
|
|
397
|
+
OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
|
|
398
|
+
/** deprecated A meta site was created for Flash editor. */
|
|
399
|
+
FLASH = "FLASH"
|
|
400
|
+
}
|
|
401
|
+
export declare enum Namespace {
|
|
402
|
+
UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
|
|
403
|
+
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
404
|
+
WIX = "WIX",
|
|
405
|
+
/** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
406
|
+
SHOUT_OUT = "SHOUT_OUT",
|
|
407
|
+
/** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
408
|
+
ALBUMS = "ALBUMS",
|
|
409
|
+
/** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
410
|
+
WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
|
|
411
|
+
/** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
412
|
+
HOTELS = "HOTELS",
|
|
413
|
+
/** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
414
|
+
CLUBS = "CLUBS",
|
|
415
|
+
/** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
416
|
+
ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
|
|
417
|
+
/** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
418
|
+
DEV_SITE = "DEV_SITE",
|
|
419
|
+
/** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
420
|
+
LOGOS = "LOGOS",
|
|
421
|
+
/** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
422
|
+
VIDEO_MAKER = "VIDEO_MAKER",
|
|
423
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
424
|
+
PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
|
|
425
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
426
|
+
DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
|
|
427
|
+
/**
|
|
428
|
+
* A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
|
|
429
|
+
*
|
|
430
|
+
* Meta site with this namespace will *not* be shown in a user's site list by default.
|
|
431
|
+
*/
|
|
432
|
+
HTML_DRAFT = "HTML_DRAFT",
|
|
433
|
+
/**
|
|
434
|
+
* the user-journey for Fitness users who want to start from managing their business instead of designing their website.
|
|
435
|
+
* Will be accessible from Site List and will not have a website app.
|
|
436
|
+
* Once the user attaches a site, the site will become a regular wixsite.
|
|
437
|
+
*/
|
|
438
|
+
SITELESS_BUSINESS = "SITELESS_BUSINESS",
|
|
439
|
+
/** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
|
|
440
|
+
CREATOR_ECONOMY = "CREATOR_ECONOMY",
|
|
441
|
+
/** It is to be used in the Business First efforts. */
|
|
442
|
+
DASHBOARD_FIRST = "DASHBOARD_FIRST",
|
|
443
|
+
/** Bookings business flow with no site. */
|
|
444
|
+
ANYWHERE = "ANYWHERE",
|
|
445
|
+
/** Namespace for Headless Backoffice with no editor */
|
|
446
|
+
HEADLESS = "HEADLESS",
|
|
447
|
+
/**
|
|
448
|
+
* Namespace for master site that will exist in parent account that will be referenced by subaccounts
|
|
449
|
+
* The site will be used for account level CSM feature for enterprise
|
|
450
|
+
*/
|
|
451
|
+
ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
|
|
452
|
+
/** Rise.ai Siteless account management for Gift Cards and Store Credit. */
|
|
453
|
+
RISE = "RISE",
|
|
454
|
+
/**
|
|
455
|
+
* As part of the branded app new funnel, users now can create a meta site that will be branded app first.
|
|
456
|
+
* There's a blank site behind the scene but it's blank).
|
|
457
|
+
* The Mobile company will be the owner of this namespace.
|
|
458
|
+
*/
|
|
459
|
+
BRANDED_FIRST = "BRANDED_FIRST",
|
|
460
|
+
/** Nownia.com Siteless account management for Ai Scheduling Assistant. */
|
|
461
|
+
NOWNIA = "NOWNIA",
|
|
462
|
+
/**
|
|
463
|
+
* UGC Templates are templates that are created by users for personal use and to sale to other users.
|
|
464
|
+
* The Partners company owns this namespace.
|
|
465
|
+
*/
|
|
466
|
+
UGC_TEMPLATE = "UGC_TEMPLATE",
|
|
467
|
+
/** Codux Headless Sites */
|
|
468
|
+
CODUX = "CODUX",
|
|
469
|
+
/** Bobb - AI Design Creator. */
|
|
470
|
+
MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
|
|
471
|
+
/**
|
|
472
|
+
* Shared Blog Site is a unique single site across Enterprise account,
|
|
473
|
+
* This site will hold all Blog posts related to the Marketing product.
|
|
474
|
+
*/
|
|
475
|
+
SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE"
|
|
476
|
+
}
|
|
477
|
+
/** Site transferred to another user. */
|
|
478
|
+
export interface SiteTransferred {
|
|
479
|
+
/** A previous owner id (user that transfers meta site). */
|
|
480
|
+
oldOwnerId?: string;
|
|
481
|
+
/** A new owner id (user that accepts meta site). */
|
|
482
|
+
newOwnerId?: string;
|
|
483
|
+
}
|
|
484
|
+
/** Soft deletion of the meta site. Could be restored. */
|
|
485
|
+
export interface SiteDeleted {
|
|
486
|
+
/** A deletion context. */
|
|
487
|
+
deleteContext?: DeleteContext;
|
|
488
|
+
}
|
|
489
|
+
export interface DeleteContext {
|
|
490
|
+
/** When the meta site was deleted. */
|
|
491
|
+
dateDeleted?: Date | null;
|
|
492
|
+
/** A status. */
|
|
493
|
+
deleteStatus?: DeleteStatus;
|
|
494
|
+
/** A reason (flow). */
|
|
495
|
+
deleteOrigin?: string;
|
|
496
|
+
/** A service that deleted it. */
|
|
497
|
+
initiatorId?: string | null;
|
|
498
|
+
}
|
|
499
|
+
export declare enum DeleteStatus {
|
|
500
|
+
UNKNOWN = "UNKNOWN",
|
|
501
|
+
TRASH = "TRASH",
|
|
502
|
+
DELETED = "DELETED",
|
|
503
|
+
PENDING_PURGE = "PENDING_PURGE"
|
|
504
|
+
}
|
|
505
|
+
/** Restoration of the meta site. */
|
|
506
|
+
export interface SiteUndeleted {
|
|
507
|
+
}
|
|
508
|
+
/** First publish of a meta site. Or subsequent publish after unpublish. */
|
|
509
|
+
export interface SitePublished {
|
|
510
|
+
}
|
|
511
|
+
export interface SiteUnpublished {
|
|
512
|
+
/** A list of URLs previously associated with the meta site. */
|
|
513
|
+
urls?: string[];
|
|
514
|
+
}
|
|
515
|
+
export interface SiteMarkedAsTemplate {
|
|
516
|
+
}
|
|
517
|
+
export interface SiteMarkedAsWixSite {
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Represents a service provisioned a site.
|
|
521
|
+
*
|
|
522
|
+
* Note on `origin_instance_id`:
|
|
523
|
+
* There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
|
|
524
|
+
* This is because of the following scenario:
|
|
525
|
+
*
|
|
526
|
+
* Imagine you have a template where a third-party application (TPA) includes some stub data,
|
|
527
|
+
* such as a product catalog. When you create a site from this template, you inherit this
|
|
528
|
+
* default product catalog. However, if the template's product catalog is modified,
|
|
529
|
+
* your site will retain the catalog as it was at the time of site creation. This ensures that
|
|
530
|
+
* your site remains consistent with what you initially received and does not include any
|
|
531
|
+
* changes made to the original template afterward.
|
|
532
|
+
* To ensure this, the TPA on the template gets a new instance_id.
|
|
533
|
+
*/
|
|
534
|
+
export interface ServiceProvisioned {
|
|
535
|
+
/** Either UUID or EmbeddedServiceType. */
|
|
536
|
+
appDefId?: string;
|
|
537
|
+
/** Not only UUID. Something here could be something weird. */
|
|
538
|
+
instanceId?: string;
|
|
539
|
+
/** An instance id from which this instance is originated. */
|
|
540
|
+
originInstanceId?: string;
|
|
541
|
+
/** A version. */
|
|
542
|
+
version?: string | null;
|
|
543
|
+
/** The origin meta site id */
|
|
544
|
+
originMetaSiteId?: string | null;
|
|
545
|
+
}
|
|
546
|
+
export interface ServiceRemoved {
|
|
547
|
+
/** Either UUID or EmbeddedServiceType. */
|
|
548
|
+
appDefId?: string;
|
|
549
|
+
/** Not only UUID. Something here could be something weird. */
|
|
550
|
+
instanceId?: string;
|
|
551
|
+
/** A version. */
|
|
552
|
+
version?: string | null;
|
|
553
|
+
}
|
|
554
|
+
/** Rename of the site. Meaning, free public url has been changed as well. */
|
|
555
|
+
export interface SiteRenamed {
|
|
556
|
+
/** A new meta site name (URL slug). */
|
|
557
|
+
newSiteName?: string;
|
|
558
|
+
/** A previous meta site name (URL slug). */
|
|
559
|
+
oldSiteName?: string;
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Hard deletion of the meta site.
|
|
563
|
+
*
|
|
564
|
+
* Could not be restored. Therefore it's desirable to cleanup data.
|
|
565
|
+
*/
|
|
566
|
+
export interface SiteHardDeleted {
|
|
567
|
+
/** A deletion context. */
|
|
568
|
+
deleteContext?: DeleteContext;
|
|
569
|
+
}
|
|
570
|
+
export interface NamespaceChanged {
|
|
571
|
+
/** A previous namespace. */
|
|
572
|
+
oldNamespace?: Namespace;
|
|
573
|
+
/** A new namespace. */
|
|
574
|
+
newNamespace?: Namespace;
|
|
575
|
+
}
|
|
576
|
+
/** Assigned Studio editor */
|
|
577
|
+
export interface StudioAssigned {
|
|
578
|
+
}
|
|
579
|
+
/** Unassigned Studio editor */
|
|
580
|
+
export interface StudioUnassigned {
|
|
581
|
+
}
|
|
582
|
+
export interface Empty {
|
|
583
|
+
}
|
|
584
|
+
export interface MessageEnvelope {
|
|
585
|
+
/** App instance ID. */
|
|
586
|
+
instanceId?: string | null;
|
|
587
|
+
/** Event type. */
|
|
588
|
+
eventType?: string;
|
|
589
|
+
/** The identification type and identity data. */
|
|
590
|
+
identity?: IdentificationData;
|
|
591
|
+
/** Stringify payload. */
|
|
592
|
+
data?: string;
|
|
593
|
+
}
|
|
594
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
595
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
596
|
+
anonymousVisitorId?: string;
|
|
597
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
598
|
+
memberId?: string;
|
|
599
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
600
|
+
wixUserId?: string;
|
|
601
|
+
/** ID of an app. */
|
|
602
|
+
appId?: string;
|
|
603
|
+
/** @readonly */
|
|
604
|
+
identityType?: WebhookIdentityType;
|
|
605
|
+
}
|
|
606
|
+
/** @oneof */
|
|
607
|
+
export interface IdentificationDataIdOneOf {
|
|
608
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
609
|
+
anonymousVisitorId?: string;
|
|
610
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
611
|
+
memberId?: string;
|
|
612
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
613
|
+
wixUserId?: string;
|
|
614
|
+
/** ID of an app. */
|
|
615
|
+
appId?: string;
|
|
616
|
+
}
|
|
617
|
+
export declare enum WebhookIdentityType {
|
|
618
|
+
UNKNOWN = "UNKNOWN",
|
|
619
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
620
|
+
MEMBER = "MEMBER",
|
|
621
|
+
WIX_USER = "WIX_USER",
|
|
622
|
+
APP = "APP"
|
|
623
|
+
}
|
|
624
|
+
export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
625
|
+
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
626
|
+
metaSiteId?: string;
|
|
627
|
+
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
|
628
|
+
siteId?: string;
|
|
629
|
+
/** Invalidate by App */
|
|
630
|
+
app?: App;
|
|
631
|
+
/** Invalidate by page id */
|
|
632
|
+
page?: Page;
|
|
633
|
+
/** Invalidate by URI path */
|
|
634
|
+
uri?: URI;
|
|
635
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
636
|
+
file?: File;
|
|
637
|
+
/** tell us why you're invalidating the cache. You don't need to add your app name */
|
|
638
|
+
reason?: string | null;
|
|
639
|
+
/** Is local DS */
|
|
640
|
+
localDc?: boolean;
|
|
641
|
+
hardPurge?: boolean;
|
|
642
|
+
}
|
|
643
|
+
/** @oneof */
|
|
644
|
+
export interface InvalidateCacheGetByOneOf {
|
|
645
|
+
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
646
|
+
metaSiteId?: string;
|
|
647
|
+
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
|
648
|
+
siteId?: string;
|
|
649
|
+
/** Invalidate by App */
|
|
650
|
+
app?: App;
|
|
651
|
+
/** Invalidate by page id */
|
|
652
|
+
page?: Page;
|
|
653
|
+
/** Invalidate by URI path */
|
|
654
|
+
uri?: URI;
|
|
655
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
656
|
+
file?: File;
|
|
657
|
+
}
|
|
658
|
+
export interface App {
|
|
659
|
+
/** The AppDefId */
|
|
660
|
+
appDefId?: string;
|
|
661
|
+
/** The instance Id */
|
|
662
|
+
instanceId?: string;
|
|
663
|
+
}
|
|
664
|
+
export interface Page {
|
|
665
|
+
/** the msid the page is on */
|
|
666
|
+
metaSiteId?: string;
|
|
667
|
+
/** Invalidate by Page ID */
|
|
668
|
+
pageId?: string;
|
|
669
|
+
}
|
|
670
|
+
export interface URI {
|
|
671
|
+
/** the msid the URI is on */
|
|
672
|
+
metaSiteId?: string;
|
|
673
|
+
/** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
|
|
674
|
+
uriPath?: string;
|
|
675
|
+
}
|
|
676
|
+
export interface File {
|
|
677
|
+
/** the msid the file is related to */
|
|
678
|
+
metaSiteId?: string;
|
|
679
|
+
/** Invalidate by filename (for media files such as PDFs) */
|
|
680
|
+
fileName?: string;
|
|
681
|
+
}
|
|
682
|
+
export interface SyncProjectWithCollectionMappings {
|
|
683
|
+
/** Id of recently updated Project */
|
|
684
|
+
projectId?: string;
|
|
685
|
+
/** fields that were updated in the given project */
|
|
686
|
+
fieldMaskPaths?: string[];
|
|
687
|
+
}
|
|
688
|
+
export interface DeletedProjectRestored {
|
|
689
|
+
/** the id of the project that was restored */
|
|
690
|
+
projectId?: string;
|
|
691
|
+
/** timestamp for when the project was originally deleted. */
|
|
692
|
+
deletionTimestamp?: Date | null;
|
|
693
|
+
}
|
|
694
|
+
export interface CreateProjectRequest {
|
|
695
|
+
/** Project to create. */
|
|
696
|
+
project: Project;
|
|
697
|
+
}
|
|
698
|
+
export interface CreateProjectResponse {
|
|
699
|
+
/** Created project. */
|
|
700
|
+
project?: Project;
|
|
701
|
+
}
|
|
702
|
+
export interface GetProjectRequest {
|
|
703
|
+
/** ID of the project to retrieve. */
|
|
704
|
+
projectId: string;
|
|
705
|
+
/** Whether to include the project's relative path and full URL in the response. Default: `false` */
|
|
706
|
+
includePageUrl?: boolean | null;
|
|
707
|
+
}
|
|
708
|
+
export interface GetProjectResponse {
|
|
709
|
+
/** The requested project. */
|
|
710
|
+
project?: Project;
|
|
711
|
+
}
|
|
712
|
+
export interface ListProjectsRequest {
|
|
713
|
+
/** Projects limit per response is maximum 100, In the first request the cursor is None ? */
|
|
714
|
+
paging?: CursorPaging;
|
|
715
|
+
/** Whether to include the project's relative path and full URL in the response. Default: `false` */
|
|
716
|
+
includePageUrl?: boolean | null;
|
|
717
|
+
}
|
|
718
|
+
export interface CursorPaging {
|
|
719
|
+
/** Maximum number of items to return in the results. */
|
|
720
|
+
limit?: number | null;
|
|
721
|
+
/**
|
|
722
|
+
* Pointer to the next or previous page in the list of results.
|
|
723
|
+
*
|
|
724
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
725
|
+
* Not relevant for the first request.
|
|
726
|
+
*/
|
|
727
|
+
cursor?: string | null;
|
|
728
|
+
}
|
|
729
|
+
export interface ListProjectsResponse {
|
|
730
|
+
/** List of projects. */
|
|
731
|
+
projects?: Project[];
|
|
732
|
+
/** Paging metadata. */
|
|
733
|
+
metadata?: PagingMetadataV2;
|
|
734
|
+
}
|
|
735
|
+
export interface PagingMetadataV2 {
|
|
736
|
+
/** Number of items returned in the response. */
|
|
737
|
+
count?: number | null;
|
|
738
|
+
/** Offset that was requested. */
|
|
739
|
+
offset?: number | null;
|
|
740
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
741
|
+
total?: number | null;
|
|
742
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
743
|
+
tooManyToCount?: boolean | null;
|
|
744
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
745
|
+
cursors?: Cursors;
|
|
746
|
+
}
|
|
747
|
+
export interface Cursors {
|
|
748
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
749
|
+
next?: string | null;
|
|
750
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
751
|
+
prev?: string | null;
|
|
752
|
+
}
|
|
753
|
+
export interface UpdateProjectRequest {
|
|
754
|
+
/** Project to update. */
|
|
755
|
+
project: Project;
|
|
756
|
+
}
|
|
757
|
+
export interface UpdateProjectResponse {
|
|
758
|
+
/** Updated project. */
|
|
759
|
+
project?: Project;
|
|
760
|
+
}
|
|
761
|
+
export interface BulkUpdateProjectsRequest {
|
|
762
|
+
/** Projects to update. */
|
|
763
|
+
projects?: MaskedProject[];
|
|
764
|
+
/** Whether to include the updated projects in the response. Set to `true` to receive the projects in the response. Default: `false` */
|
|
765
|
+
returnFullEntity?: boolean | null;
|
|
766
|
+
}
|
|
767
|
+
export interface MaskedProject {
|
|
768
|
+
/** Project to update. */
|
|
769
|
+
project?: Project;
|
|
770
|
+
}
|
|
771
|
+
export interface BulkUpdateProjectsResponse {
|
|
772
|
+
/** Items created by bulk action. */
|
|
773
|
+
results?: BulkUpdateProjectsResult[];
|
|
774
|
+
/** Bulk action metadata. */
|
|
775
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
776
|
+
}
|
|
777
|
+
export interface BulkUpdateProjectsResult {
|
|
778
|
+
/** Item metadata. */
|
|
779
|
+
itemMetadata?: ItemMetadata;
|
|
780
|
+
/** Updated project. */
|
|
781
|
+
project?: Project;
|
|
782
|
+
}
|
|
783
|
+
export interface ItemMetadata {
|
|
784
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
785
|
+
id?: string | null;
|
|
786
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
787
|
+
originalIndex?: number;
|
|
788
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
789
|
+
success?: boolean;
|
|
790
|
+
/** Details about the error in case of failure. */
|
|
791
|
+
error?: ApplicationError;
|
|
792
|
+
}
|
|
793
|
+
export interface ApplicationError {
|
|
794
|
+
/** Error code. */
|
|
795
|
+
code?: string;
|
|
796
|
+
/** Description of the error. */
|
|
797
|
+
description?: string;
|
|
798
|
+
/** Data related to the error. */
|
|
799
|
+
data?: Record<string, any> | null;
|
|
800
|
+
}
|
|
801
|
+
export interface BulkActionMetadata {
|
|
802
|
+
/** Number of items that were successfully processed. */
|
|
803
|
+
totalSuccesses?: number;
|
|
804
|
+
/** Number of items that couldn't be processed. */
|
|
805
|
+
totalFailures?: number;
|
|
806
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
807
|
+
undetailedFailures?: number;
|
|
808
|
+
}
|
|
809
|
+
export interface DeleteProjectRequest {
|
|
810
|
+
/** ID of the project to delete. */
|
|
811
|
+
projectId: string;
|
|
812
|
+
}
|
|
813
|
+
export interface DeleteProjectResponse {
|
|
814
|
+
/** ID of the deleted project. */
|
|
815
|
+
projectId?: string;
|
|
816
|
+
}
|
|
817
|
+
export interface QueryProjectsRequest {
|
|
818
|
+
/** Query options. */
|
|
819
|
+
query: QueryV2;
|
|
820
|
+
/** Whether to include the project's relative path and full URL in the response. Default: `false` */
|
|
821
|
+
includePageUrl?: boolean | null;
|
|
822
|
+
}
|
|
823
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
824
|
+
/** Paging options to limit and skip the number of items. */
|
|
825
|
+
paging?: Paging;
|
|
826
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
827
|
+
cursorPaging?: CursorPaging;
|
|
828
|
+
/**
|
|
829
|
+
* Filter object.
|
|
830
|
+
*
|
|
831
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
832
|
+
*/
|
|
833
|
+
filter?: Record<string, any> | null;
|
|
834
|
+
/**
|
|
835
|
+
* Sort object.
|
|
836
|
+
*
|
|
837
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
838
|
+
*/
|
|
839
|
+
sort?: Sorting[];
|
|
840
|
+
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
841
|
+
fields?: string[];
|
|
842
|
+
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
843
|
+
fieldsets?: string[];
|
|
844
|
+
}
|
|
845
|
+
/** @oneof */
|
|
846
|
+
export interface QueryV2PagingMethodOneOf {
|
|
847
|
+
/** Paging options to limit and skip the number of items. */
|
|
848
|
+
paging?: Paging;
|
|
849
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
850
|
+
cursorPaging?: CursorPaging;
|
|
851
|
+
}
|
|
852
|
+
export interface Sorting {
|
|
853
|
+
/** Name of the field to sort by. */
|
|
854
|
+
fieldName?: string;
|
|
855
|
+
/** Sort order. */
|
|
856
|
+
order?: SortOrder;
|
|
857
|
+
}
|
|
858
|
+
export declare enum SortOrder {
|
|
859
|
+
ASC = "ASC",
|
|
860
|
+
DESC = "DESC"
|
|
861
|
+
}
|
|
862
|
+
export interface Paging {
|
|
863
|
+
/** Number of items to load. */
|
|
864
|
+
limit?: number | null;
|
|
865
|
+
/** Number of items to skip in the current sort order. */
|
|
866
|
+
offset?: number | null;
|
|
867
|
+
}
|
|
868
|
+
export interface QueryProjectsResponse {
|
|
869
|
+
/** List of projects. */
|
|
870
|
+
projects?: Project[];
|
|
871
|
+
/** Paging metadata. */
|
|
872
|
+
metadata?: PagingMetadataV2;
|
|
873
|
+
}
|
|
874
|
+
export interface UpdateProjectOrderInCollectionRequest {
|
|
875
|
+
/** ID of the project to update. */
|
|
876
|
+
projectId: string;
|
|
877
|
+
/** Collection ID. */
|
|
878
|
+
collectionId: string;
|
|
879
|
+
/** Index that determines the placement of a project within the collection. */
|
|
880
|
+
sortOrder: number | null;
|
|
881
|
+
}
|
|
882
|
+
export interface UpdateProjectOrderInCollectionResponse {
|
|
883
|
+
/** Updated project placement within the specified collection. */
|
|
884
|
+
projectInCollection?: ProjectsInCollections;
|
|
885
|
+
}
|
|
886
|
+
export interface ProjectsInCollections {
|
|
887
|
+
/** Collection ID. */
|
|
888
|
+
collectionId?: string;
|
|
889
|
+
/** Project object. */
|
|
890
|
+
project?: Project;
|
|
891
|
+
/**
|
|
892
|
+
* Index that determines the placement of a project within the collection. <br />
|
|
893
|
+
*
|
|
894
|
+
* Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
|
|
895
|
+
*/
|
|
896
|
+
sortOrder?: number | null;
|
|
897
|
+
/**
|
|
898
|
+
* Project placement ID.
|
|
899
|
+
* @readonly
|
|
900
|
+
*/
|
|
901
|
+
id?: string | null;
|
|
902
|
+
}
|
|
903
|
+
export interface QueryProjectWithCollectionInfoRequest {
|
|
904
|
+
/** WQL expression */
|
|
905
|
+
query: QueryV2;
|
|
906
|
+
/** Include page url */
|
|
907
|
+
includePageUrl?: boolean | null;
|
|
908
|
+
}
|
|
909
|
+
export interface QueryProjectWithCollectionInfoResponse {
|
|
910
|
+
/** The retrieved Projects in Collection */
|
|
911
|
+
projects?: ProjectsInCollections[];
|
|
912
|
+
/** Paging metadata */
|
|
913
|
+
metadata?: PagingMetadataV2;
|
|
914
|
+
}
|
|
915
|
+
export interface RestoreProjectFromTrashBinRequest {
|
|
916
|
+
/** id of deleted project to restore from trash bin. */
|
|
917
|
+
projectId?: string;
|
|
918
|
+
}
|
|
919
|
+
export interface RestoreProjectFromTrashBinResponse {
|
|
920
|
+
/** project that was restored from trash bin */
|
|
921
|
+
project?: Project;
|
|
922
|
+
}
|
|
923
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
924
|
+
createdEvent?: EntityCreatedEvent;
|
|
925
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
926
|
+
deletedEvent?: EntityDeletedEvent;
|
|
927
|
+
actionEvent?: ActionEvent;
|
|
928
|
+
/**
|
|
929
|
+
* Unique event ID.
|
|
930
|
+
* Allows clients to ignore duplicate webhooks.
|
|
931
|
+
*/
|
|
932
|
+
id?: string;
|
|
933
|
+
/**
|
|
934
|
+
* Assumes actions are also always typed to an entity_type
|
|
935
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
936
|
+
*/
|
|
937
|
+
entityFqdn?: string;
|
|
938
|
+
/**
|
|
939
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
940
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
941
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
942
|
+
*/
|
|
943
|
+
slug?: string;
|
|
944
|
+
/** ID of the entity associated with the event. */
|
|
945
|
+
entityId?: string;
|
|
946
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
947
|
+
eventTime?: Date | null;
|
|
948
|
+
/**
|
|
949
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
950
|
+
* (for example, GDPR).
|
|
951
|
+
*/
|
|
952
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
953
|
+
/** If present, indicates the action that triggered the event. */
|
|
954
|
+
originatedFrom?: string | null;
|
|
955
|
+
/**
|
|
956
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
957
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
958
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
959
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
960
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
961
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
962
|
+
*/
|
|
963
|
+
entityEventSequence?: string | null;
|
|
964
|
+
}
|
|
965
|
+
/** @oneof */
|
|
966
|
+
export interface DomainEventBodyOneOf {
|
|
967
|
+
createdEvent?: EntityCreatedEvent;
|
|
968
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
969
|
+
deletedEvent?: EntityDeletedEvent;
|
|
970
|
+
actionEvent?: ActionEvent;
|
|
971
|
+
}
|
|
972
|
+
export interface EntityCreatedEvent {
|
|
973
|
+
entityAsJson?: string;
|
|
974
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
975
|
+
restoreInfo?: RestoreInfo;
|
|
976
|
+
}
|
|
977
|
+
export interface RestoreInfo {
|
|
978
|
+
deletedDate?: Date | null;
|
|
979
|
+
}
|
|
980
|
+
export interface EntityUpdatedEvent {
|
|
981
|
+
/**
|
|
982
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
983
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
984
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
985
|
+
*/
|
|
986
|
+
currentEntityAsJson?: string;
|
|
987
|
+
}
|
|
988
|
+
export interface EntityDeletedEvent {
|
|
989
|
+
/** Entity that was deleted */
|
|
990
|
+
deletedEntityAsJson?: string | null;
|
|
991
|
+
}
|
|
992
|
+
export interface ActionEvent {
|
|
993
|
+
bodyAsJson?: string;
|
|
994
|
+
}
|
|
995
|
+
interface CommonImageNonNullableFields {
|
|
996
|
+
id: string;
|
|
997
|
+
url: string;
|
|
998
|
+
height: number;
|
|
999
|
+
width: number;
|
|
1000
|
+
}
|
|
1001
|
+
interface PointNonNullableFields {
|
|
1002
|
+
x: number;
|
|
1003
|
+
y: number;
|
|
1004
|
+
}
|
|
1005
|
+
interface ImageNonNullableFields {
|
|
1006
|
+
type: ImageType;
|
|
1007
|
+
imageInfo?: CommonImageNonNullableFields;
|
|
1008
|
+
focalPoint?: PointNonNullableFields;
|
|
1009
|
+
}
|
|
1010
|
+
interface VideoResolutionNonNullableFields {
|
|
1011
|
+
url: string;
|
|
1012
|
+
height: number;
|
|
1013
|
+
width: number;
|
|
1014
|
+
poster?: CommonImageNonNullableFields;
|
|
1015
|
+
format: string;
|
|
1016
|
+
}
|
|
1017
|
+
interface VideoV2NonNullableFields {
|
|
1018
|
+
id: string;
|
|
1019
|
+
url: string;
|
|
1020
|
+
resolutions: VideoResolutionNonNullableFields[];
|
|
1021
|
+
posters: CommonImageNonNullableFields[];
|
|
1022
|
+
}
|
|
1023
|
+
interface VideoNonNullableFields {
|
|
1024
|
+
videoInfo?: VideoV2NonNullableFields;
|
|
1025
|
+
}
|
|
1026
|
+
interface ProjectDetailNonNullableFields {
|
|
1027
|
+
text: string;
|
|
1028
|
+
label: string;
|
|
1029
|
+
}
|
|
1030
|
+
interface ProjectSourceNonNullableFields {
|
|
1031
|
+
appDefId: string;
|
|
1032
|
+
externalId: string;
|
|
1033
|
+
sourceName: string;
|
|
1034
|
+
syncStatus: SyncStatus;
|
|
1035
|
+
notEditableFields: string[];
|
|
1036
|
+
}
|
|
1037
|
+
interface PageUrlV2NonNullableFields {
|
|
1038
|
+
relativePath: string;
|
|
1039
|
+
}
|
|
1040
|
+
interface TagNonNullableFields {
|
|
1041
|
+
type: string;
|
|
1042
|
+
children: string;
|
|
1043
|
+
custom: boolean;
|
|
1044
|
+
disabled: boolean;
|
|
1045
|
+
}
|
|
1046
|
+
interface KeywordNonNullableFields {
|
|
1047
|
+
term: string;
|
|
1048
|
+
isMain: boolean;
|
|
1049
|
+
}
|
|
1050
|
+
interface SettingsNonNullableFields {
|
|
1051
|
+
preventAutoRedirect: boolean;
|
|
1052
|
+
keywords: KeywordNonNullableFields[];
|
|
1053
|
+
}
|
|
1054
|
+
interface SeoSchemaNonNullableFields {
|
|
1055
|
+
tags: TagNonNullableFields[];
|
|
1056
|
+
settings?: SettingsNonNullableFields;
|
|
1057
|
+
}
|
|
1058
|
+
interface ProjectNonNullableFields {
|
|
1059
|
+
coverImage?: ImageNonNullableFields;
|
|
1060
|
+
coverVideo?: VideoNonNullableFields;
|
|
1061
|
+
collectionIds: string[];
|
|
1062
|
+
details: ProjectDetailNonNullableFields[];
|
|
1063
|
+
source?: ProjectSourceNonNullableFields;
|
|
1064
|
+
url?: PageUrlV2NonNullableFields;
|
|
1065
|
+
seoData?: SeoSchemaNonNullableFields;
|
|
1066
|
+
}
|
|
1067
|
+
export interface CreateProjectResponseNonNullableFields {
|
|
1068
|
+
project?: ProjectNonNullableFields;
|
|
1069
|
+
}
|
|
1070
|
+
export interface GetProjectResponseNonNullableFields {
|
|
1071
|
+
project?: ProjectNonNullableFields;
|
|
1072
|
+
}
|
|
1073
|
+
export interface ListProjectsResponseNonNullableFields {
|
|
1074
|
+
projects: ProjectNonNullableFields[];
|
|
1075
|
+
}
|
|
1076
|
+
export interface UpdateProjectResponseNonNullableFields {
|
|
1077
|
+
project?: ProjectNonNullableFields;
|
|
1078
|
+
}
|
|
1079
|
+
interface ApplicationErrorNonNullableFields {
|
|
1080
|
+
code: string;
|
|
1081
|
+
description: string;
|
|
1082
|
+
}
|
|
1083
|
+
interface ItemMetadataNonNullableFields {
|
|
1084
|
+
originalIndex: number;
|
|
1085
|
+
success: boolean;
|
|
1086
|
+
error?: ApplicationErrorNonNullableFields;
|
|
1087
|
+
}
|
|
1088
|
+
interface BulkUpdateProjectsResultNonNullableFields {
|
|
1089
|
+
itemMetadata?: ItemMetadataNonNullableFields;
|
|
1090
|
+
project?: ProjectNonNullableFields;
|
|
1091
|
+
}
|
|
1092
|
+
interface BulkActionMetadataNonNullableFields {
|
|
1093
|
+
totalSuccesses: number;
|
|
1094
|
+
totalFailures: number;
|
|
1095
|
+
undetailedFailures: number;
|
|
1096
|
+
}
|
|
1097
|
+
export interface BulkUpdateProjectsResponseNonNullableFields {
|
|
1098
|
+
results: BulkUpdateProjectsResultNonNullableFields[];
|
|
1099
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
1100
|
+
}
|
|
1101
|
+
export interface DeleteProjectResponseNonNullableFields {
|
|
1102
|
+
projectId: string;
|
|
1103
|
+
}
|
|
1104
|
+
export interface QueryProjectsResponseNonNullableFields {
|
|
1105
|
+
projects: ProjectNonNullableFields[];
|
|
1106
|
+
}
|
|
1107
|
+
interface ProjectsInCollectionsNonNullableFields {
|
|
1108
|
+
collectionId: string;
|
|
1109
|
+
project?: ProjectNonNullableFields;
|
|
1110
|
+
}
|
|
1111
|
+
export interface UpdateProjectOrderInCollectionResponseNonNullableFields {
|
|
1112
|
+
project?: ProjectsInCollectionsNonNullableFields;
|
|
1113
|
+
projectInCollection?: ProjectsInCollectionsNonNullableFields;
|
|
1114
|
+
}
|
|
1115
|
+
export interface QueryProjectWithCollectionInfoResponseNonNullableFields {
|
|
1116
|
+
projects: ProjectsInCollectionsNonNullableFields[];
|
|
1117
|
+
}
|
|
1118
|
+
export {};
|