@wix/portfolio 1.0.10 → 1.0.12
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 +2 -1
- package/build/cjs/index.js +3 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.http.js +25 -25
- package/build/cjs/src/portfolio-collections-v1-collection.http.js.map +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.types.d.ts +8 -8
- package/build/cjs/src/portfolio-collections-v1-collection.types.js +7 -7
- package/build/cjs/src/portfolio-collections-v1-collection.types.js.map +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.universal.d.ts +3 -1
- package/build/cjs/src/portfolio-collections-v1-collection.universal.js +3 -1
- package/build/cjs/src/portfolio-collections-v1-collection.universal.js.map +1 -1
- package/build/cjs/src/portfolio-project-items-v1-project-item.http.js +21 -9
- package/build/cjs/src/portfolio-project-items-v1-project-item.http.js.map +1 -1
- package/build/cjs/src/portfolio-project-items-v1-project-item.public.d.ts +8 -8
- package/build/cjs/src/portfolio-project-items-v1-project-item.public.js +4 -4
- package/build/cjs/src/portfolio-project-items-v1-project-item.public.js.map +1 -1
- package/build/cjs/src/portfolio-project-items-v1-project-item.types.d.ts +28 -34
- package/build/cjs/src/portfolio-project-items-v1-project-item.types.js.map +1 -1
- package/build/cjs/src/portfolio-project-items-v1-project-item.universal.d.ts +55 -74
- package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js +110 -70
- package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.d.ts +14 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.js +181 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.d.ts +6 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.js +22 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.d.ts +338 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.js +28 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.d.ts +397 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.js +214 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project.http.d.ts +1 -13
- package/build/cjs/src/portfolio-projects-v1-project.http.js +30 -118
- package/build/cjs/src/portfolio-projects-v1-project.http.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project.public.d.ts +6 -8
- package/build/cjs/src/portfolio-projects-v1-project.public.js +2 -14
- package/build/cjs/src/portfolio-projects-v1-project.public.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project.types.d.ts +109 -87
- package/build/cjs/src/portfolio-projects-v1-project.types.js +7 -7
- package/build/cjs/src/portfolio-projects-v1-project.types.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project.universal.d.ts +104 -167
- package/build/cjs/src/portfolio-projects-v1-project.universal.js +11 -144
- package/build/cjs/src/portfolio-projects-v1-project.universal.js.map +1 -1
- package/build/es/index.d.ts +2 -1
- package/build/es/index.js +2 -1
- package/build/es/index.js.map +1 -1
- package/build/es/src/portfolio-collections-v1-collection.http.js +25 -25
- package/build/es/src/portfolio-collections-v1-collection.http.js.map +1 -1
- package/build/es/src/portfolio-collections-v1-collection.types.d.ts +8 -8
- package/build/es/src/portfolio-collections-v1-collection.types.js +6 -6
- package/build/es/src/portfolio-collections-v1-collection.types.js.map +1 -1
- package/build/es/src/portfolio-collections-v1-collection.universal.d.ts +3 -1
- package/build/es/src/portfolio-collections-v1-collection.universal.js +3 -1
- package/build/es/src/portfolio-collections-v1-collection.universal.js.map +1 -1
- package/build/es/src/portfolio-project-items-v1-project-item.http.js +21 -9
- package/build/es/src/portfolio-project-items-v1-project-item.http.js.map +1 -1
- package/build/es/src/portfolio-project-items-v1-project-item.public.d.ts +8 -8
- package/build/es/src/portfolio-project-items-v1-project-item.public.js +4 -4
- package/build/es/src/portfolio-project-items-v1-project-item.public.js.map +1 -1
- package/build/es/src/portfolio-project-items-v1-project-item.types.d.ts +28 -34
- package/build/es/src/portfolio-project-items-v1-project-item.types.js.map +1 -1
- package/build/es/src/portfolio-project-items-v1-project-item.universal.d.ts +55 -74
- package/build/es/src/portfolio-project-items-v1-project-item.universal.js +110 -70
- package/build/es/src/portfolio-project-items-v1-project-item.universal.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project-in-collection.http.d.ts +14 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.http.js +176 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.http.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.public.d.ts +6 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.public.js +13 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.public.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.types.d.ts +338 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.types.js +25 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.types.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.universal.d.ts +397 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.universal.js +190 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.universal.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project.http.d.ts +1 -13
- package/build/es/src/portfolio-projects-v1-project.http.js +29 -115
- package/build/es/src/portfolio-projects-v1-project.http.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project.public.d.ts +6 -8
- package/build/es/src/portfolio-projects-v1-project.public.js +2 -12
- package/build/es/src/portfolio-projects-v1-project.public.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project.types.d.ts +109 -87
- package/build/es/src/portfolio-projects-v1-project.types.js +6 -6
- package/build/es/src/portfolio-projects-v1-project.types.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project.universal.d.ts +104 -167
- package/build/es/src/portfolio-projects-v1-project.universal.js +10 -141
- package/build/es/src/portfolio-projects-v1-project.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
export declare const __debug: {
|
|
2
|
+
verboseLogging: {
|
|
3
|
+
on: () => boolean;
|
|
4
|
+
off: () => boolean;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export interface ProjectInCollection {
|
|
8
|
+
/** Collection ID */
|
|
9
|
+
collectionId?: string;
|
|
10
|
+
/** Project */
|
|
11
|
+
project?: Project;
|
|
12
|
+
/** The sort order of the project in the given Collection */
|
|
13
|
+
sortOrder?: number | null;
|
|
14
|
+
}
|
|
15
|
+
/** Project is the main entity of ProjectsService */
|
|
16
|
+
export interface Project extends ProjectCoverOneOf {
|
|
17
|
+
/**
|
|
18
|
+
* Project ID
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
_id?: string | null;
|
|
22
|
+
/** Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision */
|
|
23
|
+
revision?: string | null;
|
|
24
|
+
title?: string | null;
|
|
25
|
+
description?: string | null;
|
|
26
|
+
/** indicates if the project should be hidden from Portfolio */
|
|
27
|
+
hidden?: boolean | null;
|
|
28
|
+
/** Collections must exist to be added to a project. can be created/updated/deleted using this //TODO */
|
|
29
|
+
collectionIds?: string[];
|
|
30
|
+
/** Custom project details */
|
|
31
|
+
details?: ProjectDetail[];
|
|
32
|
+
slug?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Represents the time this Project was created
|
|
35
|
+
* @readonly
|
|
36
|
+
*/
|
|
37
|
+
_createdDate?: Date;
|
|
38
|
+
/**
|
|
39
|
+
* Represents the time this Project was last updated
|
|
40
|
+
* @readonly
|
|
41
|
+
*/
|
|
42
|
+
_updatedDate?: Date;
|
|
43
|
+
/**
|
|
44
|
+
* Url and relative url of Project - in order to receive this field in READ requests you will need to pass the `include_page_url` field as part of request
|
|
45
|
+
* @readonly
|
|
46
|
+
*/
|
|
47
|
+
url?: string;
|
|
48
|
+
seoData?: SeoSchema;
|
|
49
|
+
/**
|
|
50
|
+
* indicates if the project is synced from external platform (via integration page) and therefore will be updated from the external platform on daily basis
|
|
51
|
+
* @readonly
|
|
52
|
+
*/
|
|
53
|
+
syncedProject?: boolean | null;
|
|
54
|
+
/** project's cover photo */
|
|
55
|
+
coverImage?: Image;
|
|
56
|
+
/** project's cover video */
|
|
57
|
+
coverVideo?: Video;
|
|
58
|
+
}
|
|
59
|
+
/** @oneof */
|
|
60
|
+
export interface ProjectCoverOneOf {
|
|
61
|
+
/** project's cover photo */
|
|
62
|
+
coverImage?: Image;
|
|
63
|
+
/** project's cover video */
|
|
64
|
+
coverVideo?: Video;
|
|
65
|
+
}
|
|
66
|
+
export interface Image {
|
|
67
|
+
/** Image info - Wix Media Image. */
|
|
68
|
+
imageInfo?: string;
|
|
69
|
+
/** Focal point of the image. */
|
|
70
|
+
focalPoint?: Point;
|
|
71
|
+
}
|
|
72
|
+
export declare enum ImageType {
|
|
73
|
+
UNDEFINED = "UNDEFINED",
|
|
74
|
+
WIX_MEDIA = "WIX_MEDIA",
|
|
75
|
+
EXTERNAL = "EXTERNAL"
|
|
76
|
+
}
|
|
77
|
+
export interface Point {
|
|
78
|
+
/** X-coordinate of the focal point. */
|
|
79
|
+
x?: number;
|
|
80
|
+
/** Y-coordinate of the focal point. */
|
|
81
|
+
y?: number;
|
|
82
|
+
}
|
|
83
|
+
export interface UnsharpMasking {
|
|
84
|
+
/**
|
|
85
|
+
* Unsharp masking amount. Controls the sharpening strength. <br />
|
|
86
|
+
*
|
|
87
|
+
* Min: `0` <br />
|
|
88
|
+
* Max: `5`
|
|
89
|
+
*/
|
|
90
|
+
amount?: number | null;
|
|
91
|
+
/** Unsharp masking radius in pixels. Controls the sharpening width. */
|
|
92
|
+
radius?: number | null;
|
|
93
|
+
/**
|
|
94
|
+
* Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />
|
|
95
|
+
*
|
|
96
|
+
* Min: `0` <br />
|
|
97
|
+
* Max: `1`
|
|
98
|
+
*/
|
|
99
|
+
threshold?: number | null;
|
|
100
|
+
}
|
|
101
|
+
export interface Video {
|
|
102
|
+
/** Video info - Wix Media Image. */
|
|
103
|
+
videoInfo?: string;
|
|
104
|
+
/** Manually defined Video duration in milliseconds. */
|
|
105
|
+
durationInMillis?: number | null;
|
|
106
|
+
}
|
|
107
|
+
export declare enum VideoType {
|
|
108
|
+
UNDEFINED = "UNDEFINED",
|
|
109
|
+
WIX_MEDIA = "WIX_MEDIA",
|
|
110
|
+
YOUTUBE = "YOUTUBE",
|
|
111
|
+
VIMEO = "VIMEO"
|
|
112
|
+
}
|
|
113
|
+
export interface VideoResolution {
|
|
114
|
+
/** Video URL. Required. */
|
|
115
|
+
url?: string;
|
|
116
|
+
/** Video height. Required. */
|
|
117
|
+
height?: number;
|
|
118
|
+
/** Video width. Required. */
|
|
119
|
+
width?: number;
|
|
120
|
+
/** Video format for example, mp4, hls. Required. */
|
|
121
|
+
format?: string;
|
|
122
|
+
/** Video quality for example 480p, 720p. */
|
|
123
|
+
quality?: string | null;
|
|
124
|
+
/** Video filename. */
|
|
125
|
+
filename?: string | null;
|
|
126
|
+
}
|
|
127
|
+
export interface ProjectDetail extends ProjectDetailValueOneOf {
|
|
128
|
+
label?: string;
|
|
129
|
+
text?: string;
|
|
130
|
+
link?: DetailsLink;
|
|
131
|
+
}
|
|
132
|
+
/** @oneof */
|
|
133
|
+
export interface ProjectDetailValueOneOf {
|
|
134
|
+
text?: string;
|
|
135
|
+
link?: DetailsLink;
|
|
136
|
+
}
|
|
137
|
+
export interface DetailsLink {
|
|
138
|
+
text?: string | null;
|
|
139
|
+
/** link to external source */
|
|
140
|
+
url?: string | null;
|
|
141
|
+
}
|
|
142
|
+
export interface ProjectSource {
|
|
143
|
+
appDefId?: string;
|
|
144
|
+
externalId?: string;
|
|
145
|
+
sourceName?: string;
|
|
146
|
+
description?: string | null;
|
|
147
|
+
/** link to external source */
|
|
148
|
+
link?: string | null;
|
|
149
|
+
syncStatus?: SyncStatus;
|
|
150
|
+
/** fields that are synced from external source, should be blocked to update in UI */
|
|
151
|
+
notEditableFields?: string[];
|
|
152
|
+
/** last date the project was synced */
|
|
153
|
+
lastSync?: Date;
|
|
154
|
+
}
|
|
155
|
+
export declare enum SyncStatus {
|
|
156
|
+
SYNCED = "SYNCED",
|
|
157
|
+
SYNCING = "SYNCING",
|
|
158
|
+
NOT_SYNCED = "NOT_SYNCED"
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* 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.
|
|
162
|
+
* The search engines use this information for ranking purposes, or to display snippets in the search results.
|
|
163
|
+
* 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.
|
|
164
|
+
*/
|
|
165
|
+
export interface SeoSchema {
|
|
166
|
+
/** SEO tags information. */
|
|
167
|
+
tags?: Tag[];
|
|
168
|
+
/** SEO general settings. */
|
|
169
|
+
settings?: Settings;
|
|
170
|
+
}
|
|
171
|
+
export interface Tag {
|
|
172
|
+
/**
|
|
173
|
+
* SEO tag type.
|
|
174
|
+
*
|
|
175
|
+
*
|
|
176
|
+
* Supported values: `title`, `meta`, `script`, `link`.
|
|
177
|
+
*/
|
|
178
|
+
type?: string;
|
|
179
|
+
/**
|
|
180
|
+
* A `{'key':'value'} pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
|
|
181
|
+
* For example: `{'name': 'description', 'content': 'the description itself'}`.
|
|
182
|
+
*/
|
|
183
|
+
props?: Record<string, any> | null;
|
|
184
|
+
/** SEO tag meta data. For example, `{height: 300, width: 240}`. */
|
|
185
|
+
meta?: Record<string, any> | null;
|
|
186
|
+
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
|
187
|
+
children?: string;
|
|
188
|
+
/** Whether the tag is a custom tag. */
|
|
189
|
+
custom?: boolean;
|
|
190
|
+
/** Whether the tag is disabled. */
|
|
191
|
+
disabled?: boolean;
|
|
192
|
+
}
|
|
193
|
+
export interface Settings {
|
|
194
|
+
/**
|
|
195
|
+
* Whether the auto redirects feature creating `301 redirects` on a slug change is enabled.
|
|
196
|
+
*
|
|
197
|
+
*
|
|
198
|
+
* Default: enabled
|
|
199
|
+
*/
|
|
200
|
+
preventAutoRedirect?: boolean;
|
|
201
|
+
}
|
|
202
|
+
export interface QueryProjectInCollectionsRequest {
|
|
203
|
+
/** WQL expression */
|
|
204
|
+
query: QueryV2;
|
|
205
|
+
includePageUrl?: boolean | null;
|
|
206
|
+
}
|
|
207
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
208
|
+
/**
|
|
209
|
+
* Filter object in the following format:
|
|
210
|
+
* `"filter" : {
|
|
211
|
+
* "fieldName1": "value1",
|
|
212
|
+
* "fieldName2":{"$operator":"value2"}
|
|
213
|
+
* }`
|
|
214
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
215
|
+
*/
|
|
216
|
+
filter?: Record<string, any> | null;
|
|
217
|
+
/**
|
|
218
|
+
* Sort object in the following format:
|
|
219
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
220
|
+
*/
|
|
221
|
+
sort?: Sorting[];
|
|
222
|
+
/** 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. */
|
|
223
|
+
fields?: string[];
|
|
224
|
+
/** 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. */
|
|
225
|
+
fieldsets?: string[];
|
|
226
|
+
/** Paging options to limit and skip the number of items. */
|
|
227
|
+
paging?: Paging;
|
|
228
|
+
/** 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`. */
|
|
229
|
+
cursorPaging?: CursorPaging;
|
|
230
|
+
}
|
|
231
|
+
/** @oneof */
|
|
232
|
+
export interface QueryV2PagingMethodOneOf {
|
|
233
|
+
/** Paging options to limit and skip the number of items. */
|
|
234
|
+
paging?: Paging;
|
|
235
|
+
/** 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`. */
|
|
236
|
+
cursorPaging?: CursorPaging;
|
|
237
|
+
}
|
|
238
|
+
export interface Sorting {
|
|
239
|
+
/** Name of the field to sort by. */
|
|
240
|
+
fieldName?: string;
|
|
241
|
+
/** Sort order. */
|
|
242
|
+
order?: SortOrder;
|
|
243
|
+
}
|
|
244
|
+
export declare enum SortOrder {
|
|
245
|
+
ASC = "ASC",
|
|
246
|
+
DESC = "DESC"
|
|
247
|
+
}
|
|
248
|
+
export interface Paging {
|
|
249
|
+
/** Number of items to load. */
|
|
250
|
+
limit?: number | null;
|
|
251
|
+
/** Number of items to skip in the current sort order. */
|
|
252
|
+
offset?: number | null;
|
|
253
|
+
}
|
|
254
|
+
export interface CursorPaging {
|
|
255
|
+
/** Number of items to load. */
|
|
256
|
+
limit?: number | null;
|
|
257
|
+
/**
|
|
258
|
+
* Pointer to the next or previous page in the list of results.
|
|
259
|
+
*
|
|
260
|
+
* You can get the relevant cursor token
|
|
261
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
262
|
+
* Not relevant for the first request.
|
|
263
|
+
*/
|
|
264
|
+
cursor?: string | null;
|
|
265
|
+
}
|
|
266
|
+
export interface QueryProjectInCollectionsResponse {
|
|
267
|
+
/** The retrieved Projects in Collections context */
|
|
268
|
+
projectInCollections?: ProjectInCollection[];
|
|
269
|
+
/** Paging metadata */
|
|
270
|
+
metadata?: PagingMetadataV2;
|
|
271
|
+
}
|
|
272
|
+
export interface PagingMetadataV2 {
|
|
273
|
+
/** Number of items returned in the response. */
|
|
274
|
+
count?: number | null;
|
|
275
|
+
/** Offset that was requested. */
|
|
276
|
+
offset?: number | null;
|
|
277
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
278
|
+
total?: number | null;
|
|
279
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
280
|
+
tooManyToCount?: boolean | null;
|
|
281
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
282
|
+
cursors?: Cursors;
|
|
283
|
+
}
|
|
284
|
+
export interface Cursors {
|
|
285
|
+
/** Cursor pointing to next page in the list of results. */
|
|
286
|
+
next?: string | null;
|
|
287
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
288
|
+
prev?: string | null;
|
|
289
|
+
}
|
|
290
|
+
export interface UpdateProjectOrderInCollectionRequest {
|
|
291
|
+
/** Id of the Project to update its order */
|
|
292
|
+
projectId: string;
|
|
293
|
+
/** Id of the collection in which the project will be re-ordered */
|
|
294
|
+
collectionId: string;
|
|
295
|
+
/** The new sort order of the project in the given collection */
|
|
296
|
+
sortOrder: number | null;
|
|
297
|
+
}
|
|
298
|
+
export interface UpdateProjectOrderInCollectionResponse {
|
|
299
|
+
/** project with new sort order set */
|
|
300
|
+
projectInCollection?: ProjectInCollection;
|
|
301
|
+
}
|
|
302
|
+
export interface ProjectOrderInCollectionUpdatedEvent {
|
|
303
|
+
/** Id of the Project to update its order */
|
|
304
|
+
projectId?: string;
|
|
305
|
+
/** Id of the collection in which the project will be re-ordered */
|
|
306
|
+
collectionId?: string;
|
|
307
|
+
/** The new sort order of the project in the given collection */
|
|
308
|
+
sortOrder?: number | null;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Query project in collection context using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
312
|
+
*
|
|
313
|
+
* Because project can be ordered different in each collection, use this when want to query the projects in a Collection ordered by the order in given collection
|
|
314
|
+
*
|
|
315
|
+
* Supported Fields for query and ordering: collectionId, projectId, sortOrder, hidden (project hidden), projectSlug
|
|
316
|
+
*
|
|
317
|
+
* If you want to Query project by Project properties please use ProjectsService.Query method - link //TODO
|
|
318
|
+
* @public
|
|
319
|
+
* @documentationMaturity preview
|
|
320
|
+
*/
|
|
321
|
+
export declare function queryProjectInCollections(options?: QueryProjectInCollectionsOptions): ProjectInCollectionsQueryBuilder;
|
|
322
|
+
export interface QueryProjectInCollectionsOptions {
|
|
323
|
+
includePageUrl?: boolean | null | undefined;
|
|
324
|
+
}
|
|
325
|
+
interface QueryCursorResult {
|
|
326
|
+
hasNext: () => boolean;
|
|
327
|
+
hasPrev: () => boolean;
|
|
328
|
+
length: number;
|
|
329
|
+
pageSize: number;
|
|
330
|
+
}
|
|
331
|
+
export interface ProjectInCollectionsQueryResult extends QueryCursorResult {
|
|
332
|
+
items: ProjectInCollection[];
|
|
333
|
+
query: ProjectInCollectionsQueryBuilder;
|
|
334
|
+
next: () => Promise<ProjectInCollectionsQueryResult>;
|
|
335
|
+
prev: () => Promise<ProjectInCollectionsQueryResult>;
|
|
336
|
+
}
|
|
337
|
+
export interface ProjectInCollectionsQueryBuilder {
|
|
338
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
339
|
+
* @param value - Value to compare against.
|
|
340
|
+
*/
|
|
341
|
+
eq: (propertyName: string, value: any) => ProjectInCollectionsQueryBuilder;
|
|
342
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
343
|
+
* @param value - Value to compare against.
|
|
344
|
+
*/
|
|
345
|
+
ne: (propertyName: string, value: any) => ProjectInCollectionsQueryBuilder;
|
|
346
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
347
|
+
* @param value - Value to compare against.
|
|
348
|
+
*/
|
|
349
|
+
ge: (propertyName: string, value: any) => ProjectInCollectionsQueryBuilder;
|
|
350
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
351
|
+
* @param value - Value to compare against.
|
|
352
|
+
*/
|
|
353
|
+
gt: (propertyName: string, value: any) => ProjectInCollectionsQueryBuilder;
|
|
354
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
355
|
+
* @param value - Value to compare against.
|
|
356
|
+
*/
|
|
357
|
+
le: (propertyName: string, value: any) => ProjectInCollectionsQueryBuilder;
|
|
358
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
359
|
+
* @param value - Value to compare against.
|
|
360
|
+
*/
|
|
361
|
+
lt: (propertyName: string, value: any) => ProjectInCollectionsQueryBuilder;
|
|
362
|
+
/** @param propertyName - Property whose value is compared with `string`.
|
|
363
|
+
* @param string - String to compare against. Case-insensitive.
|
|
364
|
+
*/
|
|
365
|
+
startsWith: (propertyName: string, value: string) => ProjectInCollectionsQueryBuilder;
|
|
366
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
367
|
+
* @param values - List of values to compare against.
|
|
368
|
+
*/
|
|
369
|
+
hasSome: (propertyName: string, value: any[]) => ProjectInCollectionsQueryBuilder;
|
|
370
|
+
in: (propertyName: string, value: any) => ProjectInCollectionsQueryBuilder;
|
|
371
|
+
exists: (propertyName: string, value: boolean) => ProjectInCollectionsQueryBuilder;
|
|
372
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
373
|
+
ascending: (...propertyNames: string[]) => ProjectInCollectionsQueryBuilder;
|
|
374
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
375
|
+
descending: (...propertyNames: string[]) => ProjectInCollectionsQueryBuilder;
|
|
376
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
377
|
+
limit: (limit: number) => ProjectInCollectionsQueryBuilder;
|
|
378
|
+
find: () => Promise<ProjectInCollectionsQueryResult>;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Updates Project's order in a given Collection
|
|
382
|
+
* @param sortOrder - The new sort order of the project in the given collection
|
|
383
|
+
* @public
|
|
384
|
+
* @documentationMaturity preview
|
|
385
|
+
* @requiredField identifiers
|
|
386
|
+
* @requiredField identifiers.collectionId
|
|
387
|
+
* @requiredField identifiers.projectId
|
|
388
|
+
* @requiredField sortOrder
|
|
389
|
+
*/
|
|
390
|
+
export declare function updateProjectOrderInCollection(identifiers: UpdateProjectOrderInCollectionIdentifiers, sortOrder: number | null): Promise<UpdateProjectOrderInCollectionResponse>;
|
|
391
|
+
export interface UpdateProjectOrderInCollectionIdentifiers {
|
|
392
|
+
/** Id of the Project to update its order */
|
|
393
|
+
projectId: string;
|
|
394
|
+
/** Id of the collection in which the project will be re-ordered */
|
|
395
|
+
collectionId: string;
|
|
396
|
+
}
|
|
397
|
+
export {};
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { serializer, transformError, resolveQueryFieldsTransformationPaths, } from '@wix/metro-runtime/velo';
|
|
11
|
+
import * as ambassadorWixPortfolioProjectsV1ProjectInCollection from './portfolio-projects-v1-project-in-collection.http';
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
import { wrapWithQueryBuilder } from '@wix/motion-edm-autogen-query-wrapper';
|
|
14
|
+
let __verbose = false;
|
|
15
|
+
function __log(...args) {
|
|
16
|
+
__verbose && console.log(...args);
|
|
17
|
+
}
|
|
18
|
+
function __inspect(obj) {
|
|
19
|
+
return obj;
|
|
20
|
+
}
|
|
21
|
+
export const __debug = {
|
|
22
|
+
verboseLogging: {
|
|
23
|
+
on: () => (__verbose = true),
|
|
24
|
+
off: () => (__verbose = false),
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
const _toVeloEntity = '$';
|
|
28
|
+
const _fromVeloEntity = '$';
|
|
29
|
+
export var ImageType;
|
|
30
|
+
(function (ImageType) {
|
|
31
|
+
ImageType["UNDEFINED"] = "UNDEFINED";
|
|
32
|
+
ImageType["WIX_MEDIA"] = "WIX_MEDIA";
|
|
33
|
+
ImageType["EXTERNAL"] = "EXTERNAL";
|
|
34
|
+
})(ImageType || (ImageType = {}));
|
|
35
|
+
export var VideoType;
|
|
36
|
+
(function (VideoType) {
|
|
37
|
+
VideoType["UNDEFINED"] = "UNDEFINED";
|
|
38
|
+
VideoType["WIX_MEDIA"] = "WIX_MEDIA";
|
|
39
|
+
VideoType["YOUTUBE"] = "YOUTUBE";
|
|
40
|
+
VideoType["VIMEO"] = "VIMEO";
|
|
41
|
+
})(VideoType || (VideoType = {}));
|
|
42
|
+
export var SyncStatus;
|
|
43
|
+
(function (SyncStatus) {
|
|
44
|
+
SyncStatus["SYNCED"] = "SYNCED";
|
|
45
|
+
SyncStatus["SYNCING"] = "SYNCING";
|
|
46
|
+
SyncStatus["NOT_SYNCED"] = "NOT_SYNCED";
|
|
47
|
+
})(SyncStatus || (SyncStatus = {}));
|
|
48
|
+
export var SortOrder;
|
|
49
|
+
(function (SortOrder) {
|
|
50
|
+
SortOrder["ASC"] = "ASC";
|
|
51
|
+
SortOrder["DESC"] = "DESC";
|
|
52
|
+
})(SortOrder || (SortOrder = {}));
|
|
53
|
+
const _image = { imageInfo: 'wix.common.Image' };
|
|
54
|
+
const _project = {
|
|
55
|
+
url: 'wix.common.PageUrlV2',
|
|
56
|
+
coverImage: '_image',
|
|
57
|
+
coverVideo: '_video',
|
|
58
|
+
};
|
|
59
|
+
const _projectInCollection = { project: '_project' };
|
|
60
|
+
const _queryProjectInCollectionsRequest = {};
|
|
61
|
+
const _queryProjectInCollectionsResponse = {
|
|
62
|
+
projectInCollections: '_projectInCollection',
|
|
63
|
+
};
|
|
64
|
+
const _updateProjectOrderInCollectionRequest = {};
|
|
65
|
+
const _updateProjectOrderInCollectionResponse = {
|
|
66
|
+
project: '_projectInCollection',
|
|
67
|
+
projectInCollection: '_projectInCollection',
|
|
68
|
+
};
|
|
69
|
+
const _video = { videoInfo: 'wix.common.VideoV2' };
|
|
70
|
+
/**
|
|
71
|
+
* Query project in collection context using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
72
|
+
*
|
|
73
|
+
* Because project can be ordered different in each collection, use this when want to query the projects in a Collection ordered by the order in given collection
|
|
74
|
+
*
|
|
75
|
+
* Supported Fields for query and ordering: collectionId, projectId, sortOrder, hidden (project hidden), projectSlug
|
|
76
|
+
*
|
|
77
|
+
* If you want to Query project by Project properties please use ProjectsService.Query method - link //TODO
|
|
78
|
+
* @public
|
|
79
|
+
* @documentationMaturity preview
|
|
80
|
+
*/
|
|
81
|
+
export function queryProjectInCollections(options) {
|
|
82
|
+
const requestTransformation = { '*': '$[1]', query: '$[0]' };
|
|
83
|
+
const responseTransformation = {
|
|
84
|
+
items: '$.projectInCollections',
|
|
85
|
+
pagingMetadata: '$.metadata',
|
|
86
|
+
};
|
|
87
|
+
// @ts-ignore
|
|
88
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
89
|
+
const { toAmbassadorRequest } = serializer({
|
|
90
|
+
rootSchema: _queryProjectInCollectionsRequest,
|
|
91
|
+
depSchemas: {},
|
|
92
|
+
fqdnTransformation: {
|
|
93
|
+
paths: [],
|
|
94
|
+
transformation: _fromVeloEntity,
|
|
95
|
+
},
|
|
96
|
+
customTransformation: requestTransformation,
|
|
97
|
+
});
|
|
98
|
+
const { fromJSON } = serializer({
|
|
99
|
+
rootSchema: _queryProjectInCollectionsResponse,
|
|
100
|
+
depSchemas: { _image, _project, _projectInCollection, _video },
|
|
101
|
+
fqdnTransformation: {
|
|
102
|
+
paths: [...['Array#projectInCollections']],
|
|
103
|
+
transformation: _toVeloEntity,
|
|
104
|
+
},
|
|
105
|
+
customTransformation: responseTransformation,
|
|
106
|
+
});
|
|
107
|
+
return wrapWithQueryBuilder({
|
|
108
|
+
func: (payload) => __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
var _a, _b, _c;
|
|
110
|
+
const reqOpts = ambassadorWixPortfolioProjectsV1ProjectInCollection.queryProjectInCollections(Object.assign(Object.assign({}, payload), (options !== null && options !== void 0 ? options : {})));
|
|
111
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
112
|
+
try {
|
|
113
|
+
const result = yield httpClient.request(reqOpts);
|
|
114
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
115
|
+
return result;
|
|
116
|
+
}
|
|
117
|
+
catch (err) {
|
|
118
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
119
|
+
throw err;
|
|
120
|
+
}
|
|
121
|
+
}),
|
|
122
|
+
requestTransformer: (...args) => toAmbassadorRequest(args),
|
|
123
|
+
responseTransformer: ({ data }) => fromJSON(data),
|
|
124
|
+
errorTransformer: (err) => {
|
|
125
|
+
const transformedError = transformError(err, requestTransformation);
|
|
126
|
+
throw transformedError;
|
|
127
|
+
},
|
|
128
|
+
pagingMethod: 'CURSOR',
|
|
129
|
+
transformationPaths: resolveQueryFieldsTransformationPaths(_toVeloEntity),
|
|
130
|
+
})({ cursorWithEmptyFilterAndSort: true });
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Updates Project's order in a given Collection
|
|
134
|
+
* @param sortOrder - The new sort order of the project in the given collection
|
|
135
|
+
* @public
|
|
136
|
+
* @documentationMaturity preview
|
|
137
|
+
* @requiredField identifiers
|
|
138
|
+
* @requiredField identifiers.collectionId
|
|
139
|
+
* @requiredField identifiers.projectId
|
|
140
|
+
* @requiredField sortOrder
|
|
141
|
+
*/
|
|
142
|
+
export function updateProjectOrderInCollection(identifiers, sortOrder) {
|
|
143
|
+
var _a, _b, _c;
|
|
144
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
145
|
+
const requestTransformation = {
|
|
146
|
+
projectId: '$[0].projectId',
|
|
147
|
+
collectionId: '$[0].collectionId',
|
|
148
|
+
sortOrder: '$[1]',
|
|
149
|
+
};
|
|
150
|
+
const responseTransformation = '$';
|
|
151
|
+
// @ts-ignore
|
|
152
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
153
|
+
const { toAmbassadorRequest } = serializer({
|
|
154
|
+
rootSchema: _updateProjectOrderInCollectionRequest,
|
|
155
|
+
depSchemas: {},
|
|
156
|
+
fqdnTransformation: {
|
|
157
|
+
paths: [],
|
|
158
|
+
transformation: _fromVeloEntity,
|
|
159
|
+
},
|
|
160
|
+
customTransformation: requestTransformation,
|
|
161
|
+
});
|
|
162
|
+
const { fromJSON } = serializer({
|
|
163
|
+
rootSchema: _updateProjectOrderInCollectionResponse,
|
|
164
|
+
depSchemas: { _image, _project, _projectInCollection, _video },
|
|
165
|
+
fqdnTransformation: {
|
|
166
|
+
paths: [...['project', 'projectInCollection']],
|
|
167
|
+
transformation: _toVeloEntity,
|
|
168
|
+
},
|
|
169
|
+
customTransformation: responseTransformation,
|
|
170
|
+
});
|
|
171
|
+
const payload = toAmbassadorRequest([identifiers, sortOrder]);
|
|
172
|
+
const reqOpts = ambassadorWixPortfolioProjectsV1ProjectInCollection.updateProjectOrderInCollection(payload);
|
|
173
|
+
__log(`"UpdateProjectOrderInCollection" sending request with: ${__inspect(reqOpts)}`);
|
|
174
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
175
|
+
try {
|
|
176
|
+
const result = yield httpClient.request(reqOpts);
|
|
177
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
178
|
+
return fromJSON(result.data);
|
|
179
|
+
}
|
|
180
|
+
catch (err) {
|
|
181
|
+
const transformedError = transformError(err, requestTransformation, [
|
|
182
|
+
'identifiers',
|
|
183
|
+
'sortOrder',
|
|
184
|
+
]);
|
|
185
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
186
|
+
throw transformedError;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
//# sourceMappingURL=portfolio-projects-v1-project-in-collection.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portfolio-projects-v1-project-in-collection.universal.js","sourceRoot":"","sources":["../../../src/portfolio-projects-v1-project-in-collection.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,mDAAmD,MAAM,oDAAoD,CAAC;AAC1H,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE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,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
import { CreateProjectRequest, CreateProjectResponse, DeleteProjectRequest, DeleteProjectResponse, GetProjectRequest, GetProjectResponse, ListProjectsRequest, ListProjectsResponse, QueryProjectsRequest, QueryProjectsResponse,
|
|
2
|
+
import { CreateProjectRequest, CreateProjectResponse, DeleteProjectRequest, DeleteProjectResponse, GetProjectRequest, GetProjectResponse, ListProjectsRequest, ListProjectsResponse, QueryProjectsRequest, QueryProjectsResponse, UpdateProjectRequest, UpdateProjectResponse } from './portfolio-projects-v1-project.types';
|
|
3
3
|
/** Creates a new Project */
|
|
4
4
|
export declare function createProject(payload: CreateProjectRequest): RequestOptionsFactory<CreateProjectResponse>;
|
|
5
5
|
/** Get a Project by id */
|
|
@@ -15,15 +15,3 @@ export declare function updateProject(payload: UpdateProjectRequest): RequestOpt
|
|
|
15
15
|
export declare function deleteProject(payload: DeleteProjectRequest): RequestOptionsFactory<DeleteProjectResponse>;
|
|
16
16
|
/** Query Projects using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) */
|
|
17
17
|
export declare function queryProjects(payload: QueryProjectsRequest): RequestOptionsFactory<QueryProjectsResponse>;
|
|
18
|
-
/** Updates Project's order in a given Collection */
|
|
19
|
-
export declare function updateProjectOrderInCollection(payload: UpdateProjectOrderInCollectionRequest): RequestOptionsFactory<UpdateProjectOrderInCollectionResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Query project in collection context using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
22
|
-
*
|
|
23
|
-
* Because project can be ordered different in each collection, use this when want to query the projects in a Collection ordered by the order in given collection
|
|
24
|
-
*
|
|
25
|
-
* Supported Fields for query and ordering: collectionId, projectId, sortOrder, hidden, projectSlug
|
|
26
|
-
*
|
|
27
|
-
* If you want to Query project by Project properties please use Query Projects method - link //TODO
|
|
28
|
-
*/
|
|
29
|
-
export declare function queryProjectsWithCollectionInfo(payload: QueryProjectWithCollectionInfoRequest): RequestOptionsFactory<QueryProjectWithCollectionInfoResponse>;
|