@wix/portfolio 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 +3 -0
- package/build/cjs/index.js +26 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/src/portfolio-collections-v1-collection.http.d.ts +17 -0
- package/build/cjs/src/portfolio-collections-v1-collection.http.js +319 -0
- package/build/cjs/src/portfolio-collections-v1-collection.http.js.map +1 -0
- package/build/cjs/src/portfolio-collections-v1-collection.public.d.ts +10 -0
- package/build/cjs/src/portfolio-collections-v1-collection.public.js +45 -0
- package/build/cjs/src/portfolio-collections-v1-collection.public.js.map +1 -0
- package/build/cjs/src/portfolio-collections-v1-collection.types.d.ts +384 -0
- package/build/cjs/src/portfolio-collections-v1-collection.types.js +21 -0
- package/build/cjs/src/portfolio-collections-v1-collection.types.js.map +1 -0
- package/build/cjs/src/portfolio-collections-v1-collection.universal.d.ts +449 -0
- package/build/cjs/src/portfolio-collections-v1-collection.universal.js +385 -0
- package/build/cjs/src/portfolio-collections-v1-collection.universal.js.map +1 -0
- package/build/cjs/src/portfolio-project-items-v1-project-item.http.d.ts +18 -0
- package/build/cjs/src/portfolio-project-items-v1-project-item.http.js +382 -0
- package/build/cjs/src/portfolio-project-items-v1-project-item.http.js.map +1 -0
- package/build/cjs/src/portfolio-project-items-v1-project-item.public.d.ts +12 -0
- package/build/cjs/src/portfolio-project-items-v1-project-item.public.js +58 -0
- package/build/cjs/src/portfolio-project-items-v1-project-item.public.js.map +1 -0
- package/build/cjs/src/portfolio-project-items-v1-project-item.types.d.ts +549 -0
- package/build/cjs/src/portfolio-project-items-v1-project-item.types.js +28 -0
- package/build/cjs/src/portfolio-project-items-v1-project-item.types.js.map +1 -0
- package/build/cjs/src/portfolio-project-items-v1-project-item.universal.d.ts +685 -0
- package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js +495 -0
- package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project.http.d.ts +29 -0
- package/build/cjs/src/portfolio-projects-v1-project.http.js +428 -0
- package/build/cjs/src/portfolio-projects-v1-project.http.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project.public.d.ts +12 -0
- package/build/cjs/src/portfolio-projects-v1-project.public.js +63 -0
- package/build/cjs/src/portfolio-projects-v1-project.public.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project.types.d.ts +755 -0
- package/build/cjs/src/portfolio-projects-v1-project.types.js +113 -0
- package/build/cjs/src/portfolio-projects-v1-project.types.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project.universal.d.ts +892 -0
- package/build/cjs/src/portfolio-projects-v1-project.universal.js +595 -0
- package/build/cjs/src/portfolio-projects-v1-project.universal.js.map +1 -0
- package/build/es/index.d.ts +3 -0
- package/build/es/index.js +4 -0
- package/build/es/index.js.map +1 -0
- package/build/es/src/portfolio-collections-v1-collection.http.d.ts +17 -0
- package/build/es/src/portfolio-collections-v1-collection.http.js +310 -0
- package/build/es/src/portfolio-collections-v1-collection.http.js.map +1 -0
- package/build/es/src/portfolio-collections-v1-collection.public.d.ts +10 -0
- package/build/es/src/portfolio-collections-v1-collection.public.js +33 -0
- package/build/es/src/portfolio-collections-v1-collection.public.js.map +1 -0
- package/build/es/src/portfolio-collections-v1-collection.types.d.ts +384 -0
- package/build/es/src/portfolio-collections-v1-collection.types.js +18 -0
- package/build/es/src/portfolio-collections-v1-collection.types.js.map +1 -0
- package/build/es/src/portfolio-collections-v1-collection.universal.d.ts +449 -0
- package/build/es/src/portfolio-collections-v1-collection.universal.js +357 -0
- package/build/es/src/portfolio-collections-v1-collection.universal.js.map +1 -0
- package/build/es/src/portfolio-project-items-v1-project-item.http.d.ts +18 -0
- package/build/es/src/portfolio-project-items-v1-project-item.http.js +371 -0
- package/build/es/src/portfolio-project-items-v1-project-item.http.js.map +1 -0
- package/build/es/src/portfolio-project-items-v1-project-item.public.d.ts +12 -0
- package/build/es/src/portfolio-project-items-v1-project-item.public.js +43 -0
- package/build/es/src/portfolio-project-items-v1-project-item.public.js.map +1 -0
- package/build/es/src/portfolio-project-items-v1-project-item.types.d.ts +549 -0
- package/build/es/src/portfolio-project-items-v1-project-item.types.js +25 -0
- package/build/es/src/portfolio-project-items-v1-project-item.types.js.map +1 -0
- package/build/es/src/portfolio-project-items-v1-project-item.universal.d.ts +685 -0
- package/build/es/src/portfolio-project-items-v1-project-item.universal.js +465 -0
- package/build/es/src/portfolio-project-items-v1-project-item.universal.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project.http.d.ts +29 -0
- package/build/es/src/portfolio-projects-v1-project.http.js +417 -0
- package/build/es/src/portfolio-projects-v1-project.http.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project.public.d.ts +12 -0
- package/build/es/src/portfolio-projects-v1-project.public.js +43 -0
- package/build/es/src/portfolio-projects-v1-project.public.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project.types.d.ts +755 -0
- package/build/es/src/portfolio-projects-v1-project.types.js +110 -0
- package/build/es/src/portfolio-projects-v1-project.types.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project.universal.d.ts +892 -0
- package/build/es/src/portfolio-projects-v1-project.universal.js +565 -0
- package/build/es/src/portfolio-projects-v1-project.universal.js.map +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
/** Collection is the main entity of CollectionsService */
|
|
2
|
+
export interface Collection {
|
|
3
|
+
/**
|
|
4
|
+
* Collection ID
|
|
5
|
+
* @readonly
|
|
6
|
+
*/
|
|
7
|
+
id?: string | null;
|
|
8
|
+
/** 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 */
|
|
9
|
+
revision?: string | null;
|
|
10
|
+
title?: string | null;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
/** Url of Collection // TODO: ask Idan */
|
|
13
|
+
slug?: string | null;
|
|
14
|
+
/** Collection's cover photo */
|
|
15
|
+
coverImage?: Image;
|
|
16
|
+
/** Indicates if the collection is hidden from Portfolio */
|
|
17
|
+
hidden?: boolean | null;
|
|
18
|
+
/** if not present in an update it means the collection will be added as currentTimestamp - as the last collection */
|
|
19
|
+
sortOrder?: number | null;
|
|
20
|
+
/**
|
|
21
|
+
* Represents the time this Collection was created
|
|
22
|
+
* @readonly
|
|
23
|
+
*/
|
|
24
|
+
createdDate?: Date;
|
|
25
|
+
/**
|
|
26
|
+
* Represents the time this Collection was last updated
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
updatedDate?: Date;
|
|
30
|
+
/**
|
|
31
|
+
* Url and relative url of Collection - in order to receive this field in READ requests you will need to pass the `include_page_url` field as part of request
|
|
32
|
+
* @readonly
|
|
33
|
+
*/
|
|
34
|
+
url?: PageUrlV2;
|
|
35
|
+
seoData?: SeoSchema;
|
|
36
|
+
}
|
|
37
|
+
export interface Image {
|
|
38
|
+
/** Image info - Wix Media Image. Required. */
|
|
39
|
+
imageInfo?: WixCommonImage;
|
|
40
|
+
/** Focal point of the image. */
|
|
41
|
+
focalPoint?: Point;
|
|
42
|
+
/** Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). */
|
|
43
|
+
exif?: Record<string, any> | null;
|
|
44
|
+
/**
|
|
45
|
+
* Image compression level. <br />
|
|
46
|
+
*
|
|
47
|
+
* Min: `30` <br />
|
|
48
|
+
* Max: `100`
|
|
49
|
+
*/
|
|
50
|
+
quality?: number | null;
|
|
51
|
+
/** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */
|
|
52
|
+
unsharpMasking?: UnsharpMasking;
|
|
53
|
+
}
|
|
54
|
+
export declare enum ImageType {
|
|
55
|
+
UNDEFINED = "UNDEFINED",
|
|
56
|
+
WIX_MEDIA = "WIX_MEDIA",
|
|
57
|
+
EXTERNAL = "EXTERNAL"
|
|
58
|
+
}
|
|
59
|
+
export interface WixCommonImage {
|
|
60
|
+
/** WixMedia image ID. Required. */
|
|
61
|
+
id?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Image URL.
|
|
64
|
+
* @readonly
|
|
65
|
+
*/
|
|
66
|
+
url?: string;
|
|
67
|
+
/** Original image height. Required. */
|
|
68
|
+
height?: number;
|
|
69
|
+
/** Original image width. Required. */
|
|
70
|
+
width?: number;
|
|
71
|
+
/** Image alt text. */
|
|
72
|
+
altText?: string | null;
|
|
73
|
+
/** Image filename. */
|
|
74
|
+
filename?: string | null;
|
|
75
|
+
}
|
|
76
|
+
export interface Point {
|
|
77
|
+
/** X-coordinate of the focal point. */
|
|
78
|
+
x?: number;
|
|
79
|
+
/** Y-coordinate of the focal point. */
|
|
80
|
+
y?: number;
|
|
81
|
+
}
|
|
82
|
+
export interface UnsharpMasking {
|
|
83
|
+
/**
|
|
84
|
+
* Unsharp masking amount. Controls the sharpening strength. <br />
|
|
85
|
+
*
|
|
86
|
+
* Min: `0` <br />
|
|
87
|
+
* Max: `5`
|
|
88
|
+
*/
|
|
89
|
+
amount?: number | null;
|
|
90
|
+
/** Unsharp masking radius in pixels. Controls the sharpening width. */
|
|
91
|
+
radius?: number | null;
|
|
92
|
+
/**
|
|
93
|
+
* Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />
|
|
94
|
+
*
|
|
95
|
+
* Min: `0` <br />
|
|
96
|
+
* Max: `1`
|
|
97
|
+
*/
|
|
98
|
+
threshold?: number | null;
|
|
99
|
+
}
|
|
100
|
+
export interface PageUrlV2 {
|
|
101
|
+
/** The path to that page - e.g /product-page/a-product */
|
|
102
|
+
relativePath?: string;
|
|
103
|
+
/** The URL of that page. e.g https://mysite.com/product-page/a-product */
|
|
104
|
+
url?: string | null;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* 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.
|
|
108
|
+
* The search engines use this information for ranking purposes, or to display snippets in the search results.
|
|
109
|
+
* 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.
|
|
110
|
+
*/
|
|
111
|
+
export interface SeoSchema {
|
|
112
|
+
/** SEO tags information. */
|
|
113
|
+
tags?: Tag[];
|
|
114
|
+
/** SEO general settings. */
|
|
115
|
+
settings?: Settings;
|
|
116
|
+
}
|
|
117
|
+
export interface Tag {
|
|
118
|
+
/** SEO tag type. Supported values: `title`, `meta`, `script`, `link`. */
|
|
119
|
+
type?: string;
|
|
120
|
+
/** SEO tag attributes/properties (name, content, rel, href). */
|
|
121
|
+
props?: Record<string, any> | null;
|
|
122
|
+
/** Tag meta data, e.g. {height: 300, width: 240}. */
|
|
123
|
+
meta?: Record<string, any> | null;
|
|
124
|
+
/** Tag inner content e.g. `<title> inner content </title>`. */
|
|
125
|
+
children?: string;
|
|
126
|
+
/** Whether the tag is a custom tag. */
|
|
127
|
+
custom?: boolean;
|
|
128
|
+
/** Whether the tag is disabled. */
|
|
129
|
+
disabled?: boolean;
|
|
130
|
+
}
|
|
131
|
+
export interface Settings {
|
|
132
|
+
/** disable auto creation of 301 redirects on slug changes (enabled by default). */
|
|
133
|
+
preventAutoRedirect?: boolean;
|
|
134
|
+
}
|
|
135
|
+
export interface CommonImage {
|
|
136
|
+
/** Image info - Wix Media Image. Required. */
|
|
137
|
+
imageInfo?: PortfolioCommonImage;
|
|
138
|
+
/** Focal point of the image. */
|
|
139
|
+
focalPoint?: CommonPoint;
|
|
140
|
+
/** Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). */
|
|
141
|
+
exif?: Record<string, any> | null;
|
|
142
|
+
/**
|
|
143
|
+
* Image compression level. <br />
|
|
144
|
+
*
|
|
145
|
+
* Min: `30` <br />
|
|
146
|
+
* Max: `100`
|
|
147
|
+
*/
|
|
148
|
+
quality?: number | null;
|
|
149
|
+
/** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */
|
|
150
|
+
unsharpMasking?: CommonUnsharpMasking;
|
|
151
|
+
}
|
|
152
|
+
export declare enum ImageImageType {
|
|
153
|
+
UNDEFINED = "UNDEFINED",
|
|
154
|
+
WIX_MEDIA = "WIX_MEDIA",
|
|
155
|
+
EXTERNAL = "EXTERNAL"
|
|
156
|
+
}
|
|
157
|
+
export interface PortfolioCommonImage {
|
|
158
|
+
/** WixMedia image ID. Required. */
|
|
159
|
+
id?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Image URL.
|
|
162
|
+
* @readonly
|
|
163
|
+
*/
|
|
164
|
+
url?: string;
|
|
165
|
+
/** Original image height. Required. */
|
|
166
|
+
height?: number;
|
|
167
|
+
/** Original image width. Required. */
|
|
168
|
+
width?: number;
|
|
169
|
+
/** Image alt text. */
|
|
170
|
+
altText?: string | null;
|
|
171
|
+
/** Image filename. */
|
|
172
|
+
filename?: string | null;
|
|
173
|
+
}
|
|
174
|
+
export interface CommonPoint {
|
|
175
|
+
/** X-coordinate of the focal point. */
|
|
176
|
+
x?: number;
|
|
177
|
+
/** Y-coordinate of the focal point. */
|
|
178
|
+
y?: number;
|
|
179
|
+
}
|
|
180
|
+
export interface CommonUnsharpMasking {
|
|
181
|
+
/**
|
|
182
|
+
* Unsharp masking amount. Controls the sharpening strength. <br />
|
|
183
|
+
*
|
|
184
|
+
* Min: `0` <br />
|
|
185
|
+
* Max: `5`
|
|
186
|
+
*/
|
|
187
|
+
amount?: number | null;
|
|
188
|
+
/** Unsharp masking radius in pixels. Controls the sharpening width. */
|
|
189
|
+
radius?: number | null;
|
|
190
|
+
/**
|
|
191
|
+
* Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />
|
|
192
|
+
*
|
|
193
|
+
* Min: `0` <br />
|
|
194
|
+
* Max: `1`
|
|
195
|
+
*/
|
|
196
|
+
threshold?: number | null;
|
|
197
|
+
}
|
|
198
|
+
export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
199
|
+
/** tell us why you're invalidating the cache. You don't need to add your app name */
|
|
200
|
+
reason?: string | null;
|
|
201
|
+
/** Is local DS */
|
|
202
|
+
localDc?: boolean;
|
|
203
|
+
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
204
|
+
metaSiteId?: string;
|
|
205
|
+
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
|
206
|
+
siteId?: string;
|
|
207
|
+
/** Invalidate by App */
|
|
208
|
+
app?: App;
|
|
209
|
+
/** Invalidate by page id */
|
|
210
|
+
page?: Page;
|
|
211
|
+
/** Invalidate by URI path */
|
|
212
|
+
uri?: URI;
|
|
213
|
+
}
|
|
214
|
+
/** @oneof */
|
|
215
|
+
export interface InvalidateCacheGetByOneOf {
|
|
216
|
+
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
217
|
+
metaSiteId?: string;
|
|
218
|
+
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
|
219
|
+
siteId?: string;
|
|
220
|
+
/** Invalidate by App */
|
|
221
|
+
app?: App;
|
|
222
|
+
/** Invalidate by page id */
|
|
223
|
+
page?: Page;
|
|
224
|
+
/** Invalidate by URI path */
|
|
225
|
+
uri?: URI;
|
|
226
|
+
}
|
|
227
|
+
export interface App {
|
|
228
|
+
/** The AppDefId */
|
|
229
|
+
appDefId?: string;
|
|
230
|
+
/** The instance Id */
|
|
231
|
+
instanceId?: string;
|
|
232
|
+
}
|
|
233
|
+
export interface Page {
|
|
234
|
+
/** the msid the page is on */
|
|
235
|
+
metaSiteId?: string;
|
|
236
|
+
/** Invalidate by Page ID */
|
|
237
|
+
pageId?: string;
|
|
238
|
+
}
|
|
239
|
+
export interface URI {
|
|
240
|
+
/** the msid the URI is on */
|
|
241
|
+
metaSiteId?: string;
|
|
242
|
+
/** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
|
|
243
|
+
uriPath?: string;
|
|
244
|
+
}
|
|
245
|
+
export interface CreateCollectionRequest {
|
|
246
|
+
/** Collection to be created */
|
|
247
|
+
collection: Collection;
|
|
248
|
+
}
|
|
249
|
+
export interface CreateCollectionResponse {
|
|
250
|
+
/** The created Collection */
|
|
251
|
+
collection?: Collection;
|
|
252
|
+
}
|
|
253
|
+
export interface GetCollectionRequest {
|
|
254
|
+
/** Id of the Collection to retrieve */
|
|
255
|
+
collectionId: string;
|
|
256
|
+
includePageUrl?: boolean | null;
|
|
257
|
+
}
|
|
258
|
+
export interface GetCollectionResponse {
|
|
259
|
+
/** The retrieved Collection */
|
|
260
|
+
collection?: Collection;
|
|
261
|
+
}
|
|
262
|
+
export interface ListCollectionsRequest {
|
|
263
|
+
/** Maximum limit per response is 100, in first request cursor is None */
|
|
264
|
+
paging?: CursorPaging;
|
|
265
|
+
includePageUrl?: boolean | null;
|
|
266
|
+
}
|
|
267
|
+
export interface CursorPaging {
|
|
268
|
+
/** Number of items to load. */
|
|
269
|
+
limit?: number | null;
|
|
270
|
+
/**
|
|
271
|
+
* Pointer to the next or previous page in the list of results.
|
|
272
|
+
*
|
|
273
|
+
* You can get the relevant cursor token
|
|
274
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
275
|
+
* Not relevant for the first request.
|
|
276
|
+
*/
|
|
277
|
+
cursor?: string | null;
|
|
278
|
+
}
|
|
279
|
+
export interface ListCollectionsResponse {
|
|
280
|
+
/** Retrieved Collections */
|
|
281
|
+
collections?: Collection[];
|
|
282
|
+
/** Paging metadata */
|
|
283
|
+
pagingMetadataV2?: PagingMetadataV2;
|
|
284
|
+
/** Paging metadata */
|
|
285
|
+
metadata?: PagingMetadataV2;
|
|
286
|
+
}
|
|
287
|
+
export interface PagingMetadataV2 {
|
|
288
|
+
/** Number of items returned in the response. */
|
|
289
|
+
count?: number | null;
|
|
290
|
+
/** Offset that was requested. */
|
|
291
|
+
offset?: number | null;
|
|
292
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
293
|
+
total?: number | null;
|
|
294
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
295
|
+
tooManyToCount?: boolean | null;
|
|
296
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
297
|
+
cursors?: Cursors;
|
|
298
|
+
}
|
|
299
|
+
export interface Cursors {
|
|
300
|
+
/** Cursor pointing to next page in the list of results. */
|
|
301
|
+
next?: string | null;
|
|
302
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
303
|
+
prev?: string | null;
|
|
304
|
+
}
|
|
305
|
+
export interface UpdateCollectionRequest {
|
|
306
|
+
/** Collection to be updated, may be partial */
|
|
307
|
+
collection: Collection;
|
|
308
|
+
/** Explicit list of fields to update */
|
|
309
|
+
mask?: string[];
|
|
310
|
+
}
|
|
311
|
+
export interface UpdateCollectionResponse {
|
|
312
|
+
/** The updated Collection */
|
|
313
|
+
collection?: Collection;
|
|
314
|
+
}
|
|
315
|
+
export interface DeleteCollectionRequest {
|
|
316
|
+
/** Id of the Collection to delete */
|
|
317
|
+
collectionId: string;
|
|
318
|
+
/** The revision of the Collection */
|
|
319
|
+
revision?: string;
|
|
320
|
+
}
|
|
321
|
+
export interface DeleteCollectionResponse {
|
|
322
|
+
/** Id of the Deleted Collection */
|
|
323
|
+
collectionId?: string;
|
|
324
|
+
}
|
|
325
|
+
export interface QueryCollectionsRequest {
|
|
326
|
+
/** WQL expression */
|
|
327
|
+
query: QueryV2;
|
|
328
|
+
includePageUrl?: boolean | null;
|
|
329
|
+
}
|
|
330
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
331
|
+
/**
|
|
332
|
+
* Filter object in the following format:
|
|
333
|
+
* `"filter" : {
|
|
334
|
+
* "fieldName1": "value1",
|
|
335
|
+
* "fieldName2":{"$operator":"value2"}
|
|
336
|
+
* }`
|
|
337
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
338
|
+
*/
|
|
339
|
+
filter?: Record<string, any> | null;
|
|
340
|
+
/**
|
|
341
|
+
* Sort object in the following format:
|
|
342
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
343
|
+
*/
|
|
344
|
+
sort?: Sorting[];
|
|
345
|
+
/** 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. */
|
|
346
|
+
fields?: string[];
|
|
347
|
+
/** 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. */
|
|
348
|
+
fieldsets?: string[];
|
|
349
|
+
/** Paging options to limit and skip the number of items. */
|
|
350
|
+
paging?: Paging;
|
|
351
|
+
/** 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`. */
|
|
352
|
+
cursorPaging?: CursorPaging;
|
|
353
|
+
}
|
|
354
|
+
/** @oneof */
|
|
355
|
+
export interface QueryV2PagingMethodOneOf {
|
|
356
|
+
/** Paging options to limit and skip the number of items. */
|
|
357
|
+
paging?: Paging;
|
|
358
|
+
/** 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`. */
|
|
359
|
+
cursorPaging?: CursorPaging;
|
|
360
|
+
}
|
|
361
|
+
export interface Sorting {
|
|
362
|
+
/** Name of the field to sort by. */
|
|
363
|
+
fieldName?: string;
|
|
364
|
+
/** Sort order. */
|
|
365
|
+
order?: SortOrder;
|
|
366
|
+
}
|
|
367
|
+
export declare enum SortOrder {
|
|
368
|
+
ASC = "ASC",
|
|
369
|
+
DESC = "DESC"
|
|
370
|
+
}
|
|
371
|
+
export interface Paging {
|
|
372
|
+
/** Number of items to load. */
|
|
373
|
+
limit?: number | null;
|
|
374
|
+
/** Number of items to skip in the current sort order. */
|
|
375
|
+
offset?: number | null;
|
|
376
|
+
}
|
|
377
|
+
export interface QueryCollectionsResponse {
|
|
378
|
+
/** The retrieved Collections */
|
|
379
|
+
collections?: Collection[];
|
|
380
|
+
/** Paging metadata */
|
|
381
|
+
pagingMetadataV2?: PagingMetadataV2;
|
|
382
|
+
/** Paging metadata */
|
|
383
|
+
metadata?: PagingMetadataV2;
|
|
384
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SortOrder = exports.ImageImageType = exports.ImageType = void 0;
|
|
4
|
+
var ImageType;
|
|
5
|
+
(function (ImageType) {
|
|
6
|
+
ImageType["UNDEFINED"] = "UNDEFINED";
|
|
7
|
+
ImageType["WIX_MEDIA"] = "WIX_MEDIA";
|
|
8
|
+
ImageType["EXTERNAL"] = "EXTERNAL";
|
|
9
|
+
})(ImageType = exports.ImageType || (exports.ImageType = {}));
|
|
10
|
+
var ImageImageType;
|
|
11
|
+
(function (ImageImageType) {
|
|
12
|
+
ImageImageType["UNDEFINED"] = "UNDEFINED";
|
|
13
|
+
ImageImageType["WIX_MEDIA"] = "WIX_MEDIA";
|
|
14
|
+
ImageImageType["EXTERNAL"] = "EXTERNAL";
|
|
15
|
+
})(ImageImageType = exports.ImageImageType || (exports.ImageImageType = {}));
|
|
16
|
+
var SortOrder;
|
|
17
|
+
(function (SortOrder) {
|
|
18
|
+
SortOrder["ASC"] = "ASC";
|
|
19
|
+
SortOrder["DESC"] = "DESC";
|
|
20
|
+
})(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
|
|
21
|
+
//# sourceMappingURL=portfolio-collections-v1-collection.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portfolio-collections-v1-collection.types.js","sourceRoot":"","sources":["../../../src/portfolio-collections-v1-collection.types.ts"],"names":[],"mappings":";;;AAuDA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;AACvB,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AAuGD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;IACvB,uCAAqB,CAAA;AACvB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AA6OD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
|