@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 @@
|
|
|
1
|
+
{"version":3,"file":"portfolio-projects-v1-project-in-collection.http.js","sourceRoot":"","sources":["../../../src/portfolio-projects-v1-project-in-collection.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAUhD,MAAM,YAAY,GAAG,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,CAAC;AACxE,MAAM,MAAM,GAAG;IACb,SAAS,EAAE,cAAc;IACzB,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,iBAAiB;CAClC,CAAC;AACF,MAAM,MAAM,GAAG,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC;AAC5C,MAAM,QAAQ,GAAG;IACf,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;IACxC,MAAM,EAAE,gBAAgB;IACxB,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,QAAQ;CACrB,CAAC;AACF,MAAM,oBAAoB,GAAG;IAC3B,SAAS,EAAE,6BAA6B;IACxC,OAAO,EAAE,UAAU;CACpB,CAAC;AACF,MAAM,cAAc,GAAG,EAAE,QAAQ,EAAE,2BAA2B,EAAE,CAAC;AACjE,MAAM,iCAAiC,GAAG,EAAE,CAAC;AAC7C,MAAM,kCAAkC,GAAG;IACzC,oBAAoB,EAAE,sBAAsB;CAC7C,CAAC;AACF,MAAM,eAAe,GAAG;IACtB,MAAM,EAAE,4BAA4B;IACpC,MAAM,EAAE,4BAA4B;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AE,GAAG,UAAU,CACtC,uCAAuC,EACvC;QACE,YAAY;QACZ,MAAM;QACN,MAAM;QACN,QAAQ;QACR,oBAAoB;QACpB,cAAc;QACd,eAAe;QACf,MAAM;QACN,gBAAgB;QAChB,QAAQ;KACT,CACF,CAAC;IAEF,SAAS,gCAAgC,CAAC,EAAE,IAAI,EAAO;QACrD,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,OAAc;YACtB,GAAG,EAAE,iEAAiE,CAAC;gBACrE,SAAS,EACP,yEAAyE;gBAC3E,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,gCAAgC,CAAC,OAAO,GAAG,OAAO,CAAC;IAEnD,OAAO,gCAAgC,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { QueryProjectInCollectionsOptions, UpdateProjectOrderInCollectionIdentifiers } from './portfolio-projects-v1-project-in-collection.universal';
|
|
3
|
+
export declare function queryProjectInCollections(httpClient: HttpClient): (options?: QueryProjectInCollectionsOptions | undefined) => import("./portfolio-projects-v1-project-in-collection.universal").ProjectInCollectionsQueryBuilder;
|
|
4
|
+
export declare function updateProjectOrderInCollection(httpClient: HttpClient): (identifiers: UpdateProjectOrderInCollectionIdentifiers, sortOrder: number | null) => Promise<import("./portfolio-projects-v1-project-in-collection.universal").UpdateProjectOrderInCollectionResponse>;
|
|
5
|
+
export { ImageType, VideoType, SyncStatus, SortOrder, } from './portfolio-projects-v1-project-in-collection.universal';
|
|
6
|
+
export { ProjectInCollection, Project, ProjectCoverOneOf, Image, Point, UnsharpMasking, Video, VideoResolution, ProjectDetail, ProjectDetailValueOneOf, DetailsLink, ProjectSource, SeoSchema, Tag, Settings, QueryProjectInCollectionsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryProjectInCollectionsResponse, PagingMetadataV2, Cursors, UpdateProjectOrderInCollectionRequest, UpdateProjectOrderInCollectionResponse, ProjectOrderInCollectionUpdatedEvent, QueryProjectInCollectionsOptions, ProjectInCollectionsQueryResult, ProjectInCollectionsQueryBuilder, UpdateProjectOrderInCollectionIdentifiers, } from './portfolio-projects-v1-project-in-collection.universal';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { queryProjectInCollections as universalQueryProjectInCollections, updateProjectOrderInCollection as universalUpdateProjectOrderInCollection, } from './portfolio-projects-v1-project-in-collection.universal';
|
|
2
|
+
export function queryProjectInCollections(httpClient) {
|
|
3
|
+
return (options) => universalQueryProjectInCollections(options,
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
{ httpClient });
|
|
6
|
+
}
|
|
7
|
+
export function updateProjectOrderInCollection(httpClient) {
|
|
8
|
+
return (identifiers, sortOrder) => universalUpdateProjectOrderInCollection(identifiers, sortOrder,
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
{ httpClient });
|
|
11
|
+
}
|
|
12
|
+
export { ImageType, VideoType, SyncStatus, SortOrder, } from './portfolio-projects-v1-project-in-collection.universal';
|
|
13
|
+
//# sourceMappingURL=portfolio-projects-v1-project-in-collection.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portfolio-projects-v1-project-in-collection.public.js","sourceRoot":"","sources":["../../../src/portfolio-projects-v1-project-in-collection.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,IAAI,kCAAkC,EAE/D,8BAA8B,IAAI,uCAAuC,GAE1E,MAAM,yDAAyD,CAAC;AAEjE,MAAM,UAAU,yBAAyB,CAAC,UAAsB;IAC9D,OAAO,CAAC,OAA0C,EAAE,EAAE,CACpD,kCAAkC,CAChC,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,UAAsB;IACnE,OAAO,CACL,WAAsD,EACtD,SAAwB,EACxB,EAAE,CACF,uCAAuC,CACrC,WAAW,EACX,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,yDAAyD,CAAC"}
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
export interface ProjectInCollection {
|
|
2
|
+
/** Collection ID */
|
|
3
|
+
collectionId?: string;
|
|
4
|
+
/** Project */
|
|
5
|
+
project?: Project;
|
|
6
|
+
/** The sort order of the project in the given Collection */
|
|
7
|
+
sortOrder?: number | null;
|
|
8
|
+
}
|
|
9
|
+
/** Project is the main entity of ProjectsService */
|
|
10
|
+
export interface Project extends ProjectCoverOneOf {
|
|
11
|
+
/**
|
|
12
|
+
* Project ID
|
|
13
|
+
* @readonly
|
|
14
|
+
*/
|
|
15
|
+
id?: string | null;
|
|
16
|
+
/** 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 */
|
|
17
|
+
revision?: string | null;
|
|
18
|
+
title?: string | null;
|
|
19
|
+
description?: string | null;
|
|
20
|
+
/** indicates if the project should be hidden from Portfolio */
|
|
21
|
+
hidden?: boolean | null;
|
|
22
|
+
/** Collections must exist to be added to a project. can be created/updated/deleted using this //TODO */
|
|
23
|
+
collectionIds?: string[];
|
|
24
|
+
/** Custom project details */
|
|
25
|
+
details?: ProjectDetail[];
|
|
26
|
+
slug?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Represents the time this Project was created
|
|
29
|
+
* @readonly
|
|
30
|
+
*/
|
|
31
|
+
createdDate?: Date;
|
|
32
|
+
/**
|
|
33
|
+
* Represents the time this Project was last updated
|
|
34
|
+
* @readonly
|
|
35
|
+
*/
|
|
36
|
+
updatedDate?: Date;
|
|
37
|
+
/**
|
|
38
|
+
* 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
|
|
39
|
+
* @readonly
|
|
40
|
+
*/
|
|
41
|
+
url?: PageUrlV2;
|
|
42
|
+
seoData?: SeoSchema;
|
|
43
|
+
/**
|
|
44
|
+
* indicates if the project is synced from external platform (via integration page) and therefore will be updated from the external platform on daily basis
|
|
45
|
+
* @readonly
|
|
46
|
+
*/
|
|
47
|
+
syncedProject?: boolean | null;
|
|
48
|
+
/** project's cover photo */
|
|
49
|
+
coverImage?: Image;
|
|
50
|
+
/** project's cover video */
|
|
51
|
+
coverVideo?: Video;
|
|
52
|
+
}
|
|
53
|
+
/** @oneof */
|
|
54
|
+
export interface ProjectCoverOneOf {
|
|
55
|
+
/** project's cover photo */
|
|
56
|
+
coverImage?: Image;
|
|
57
|
+
/** project's cover video */
|
|
58
|
+
coverVideo?: Video;
|
|
59
|
+
}
|
|
60
|
+
export interface Image {
|
|
61
|
+
/** Image info - Wix Media Image. */
|
|
62
|
+
imageInfo?: CommonImage;
|
|
63
|
+
/** Focal point of the image. */
|
|
64
|
+
focalPoint?: Point;
|
|
65
|
+
}
|
|
66
|
+
export declare enum ImageType {
|
|
67
|
+
UNDEFINED = "UNDEFINED",
|
|
68
|
+
WIX_MEDIA = "WIX_MEDIA",
|
|
69
|
+
EXTERNAL = "EXTERNAL"
|
|
70
|
+
}
|
|
71
|
+
export interface CommonImage {
|
|
72
|
+
/** WixMedia image ID. Required. */
|
|
73
|
+
id?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Image URL.
|
|
76
|
+
* @readonly
|
|
77
|
+
*/
|
|
78
|
+
url?: string;
|
|
79
|
+
/** Original image height. Required. */
|
|
80
|
+
height?: number;
|
|
81
|
+
/** Original image width. Required. */
|
|
82
|
+
width?: number;
|
|
83
|
+
/** Image alt text. */
|
|
84
|
+
altText?: string | null;
|
|
85
|
+
/** Image filename. */
|
|
86
|
+
filename?: string | null;
|
|
87
|
+
}
|
|
88
|
+
export interface Point {
|
|
89
|
+
/** X-coordinate of the focal point. */
|
|
90
|
+
x?: number;
|
|
91
|
+
/** Y-coordinate of the focal point. */
|
|
92
|
+
y?: number;
|
|
93
|
+
}
|
|
94
|
+
export interface UnsharpMasking {
|
|
95
|
+
/**
|
|
96
|
+
* Unsharp masking amount. Controls the sharpening strength. <br />
|
|
97
|
+
*
|
|
98
|
+
* Min: `0` <br />
|
|
99
|
+
* Max: `5`
|
|
100
|
+
*/
|
|
101
|
+
amount?: number | null;
|
|
102
|
+
/** Unsharp masking radius in pixels. Controls the sharpening width. */
|
|
103
|
+
radius?: number | null;
|
|
104
|
+
/**
|
|
105
|
+
* Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />
|
|
106
|
+
*
|
|
107
|
+
* Min: `0` <br />
|
|
108
|
+
* Max: `1`
|
|
109
|
+
*/
|
|
110
|
+
threshold?: number | null;
|
|
111
|
+
}
|
|
112
|
+
export interface Video {
|
|
113
|
+
/** Video info - Wix Media Image. */
|
|
114
|
+
videoInfo?: VideoV2;
|
|
115
|
+
/** Manually defined Video duration in milliseconds. */
|
|
116
|
+
durationInMillis?: number | null;
|
|
117
|
+
}
|
|
118
|
+
export declare enum VideoType {
|
|
119
|
+
UNDEFINED = "UNDEFINED",
|
|
120
|
+
WIX_MEDIA = "WIX_MEDIA",
|
|
121
|
+
YOUTUBE = "YOUTUBE",
|
|
122
|
+
VIMEO = "VIMEO"
|
|
123
|
+
}
|
|
124
|
+
export interface VideoV2 {
|
|
125
|
+
/** WixMedia ID. Required. */
|
|
126
|
+
id?: string;
|
|
127
|
+
/** Video URL. */
|
|
128
|
+
url?: string;
|
|
129
|
+
/** Available resolutions for the video, starting with the optimal resolution. */
|
|
130
|
+
resolutions?: VideoResolution[];
|
|
131
|
+
/** Video filename. */
|
|
132
|
+
filename?: string | null;
|
|
133
|
+
/** Video posters. */
|
|
134
|
+
posters?: CommonImage[];
|
|
135
|
+
}
|
|
136
|
+
export interface VideoResolution {
|
|
137
|
+
/** Video URL. Required. */
|
|
138
|
+
url?: string;
|
|
139
|
+
/** Video height. Required. */
|
|
140
|
+
height?: number;
|
|
141
|
+
/** Video width. Required. */
|
|
142
|
+
width?: number;
|
|
143
|
+
/** Video format for example, mp4, hls. Required. */
|
|
144
|
+
format?: string;
|
|
145
|
+
/** Video quality for example 480p, 720p. */
|
|
146
|
+
quality?: string | null;
|
|
147
|
+
/** Video filename. */
|
|
148
|
+
filename?: string | null;
|
|
149
|
+
}
|
|
150
|
+
export interface ProjectDetail extends ProjectDetailValueOneOf {
|
|
151
|
+
label?: string;
|
|
152
|
+
text?: string;
|
|
153
|
+
link?: DetailsLink;
|
|
154
|
+
}
|
|
155
|
+
/** @oneof */
|
|
156
|
+
export interface ProjectDetailValueOneOf {
|
|
157
|
+
text?: string;
|
|
158
|
+
link?: DetailsLink;
|
|
159
|
+
}
|
|
160
|
+
export interface DetailsLink {
|
|
161
|
+
text?: string | null;
|
|
162
|
+
/** link to external source */
|
|
163
|
+
url?: string | null;
|
|
164
|
+
}
|
|
165
|
+
export interface ProjectSource {
|
|
166
|
+
appDefId?: string;
|
|
167
|
+
externalId?: string;
|
|
168
|
+
sourceName?: string;
|
|
169
|
+
description?: string | null;
|
|
170
|
+
/** link to external source */
|
|
171
|
+
link?: string | null;
|
|
172
|
+
syncStatus?: SyncStatus;
|
|
173
|
+
/** fields that are synced from external source, should be blocked to update in UI */
|
|
174
|
+
notEditableFields?: string[];
|
|
175
|
+
/** last date the project was synced */
|
|
176
|
+
lastSync?: Date;
|
|
177
|
+
}
|
|
178
|
+
export declare enum SyncStatus {
|
|
179
|
+
SYNCED = "SYNCED",
|
|
180
|
+
SYNCING = "SYNCING",
|
|
181
|
+
NOT_SYNCED = "NOT_SYNCED"
|
|
182
|
+
}
|
|
183
|
+
export interface PageUrlV2 {
|
|
184
|
+
/** The path to that page - e.g /product-page/a-product */
|
|
185
|
+
relativePath?: string;
|
|
186
|
+
/** The URL of that page. e.g https://mysite.com/product-page/a-product */
|
|
187
|
+
url?: string | null;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* 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.
|
|
191
|
+
* The search engines use this information for ranking purposes, or to display snippets in the search results.
|
|
192
|
+
* 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.
|
|
193
|
+
*/
|
|
194
|
+
export interface SeoSchema {
|
|
195
|
+
/** SEO tags information. */
|
|
196
|
+
tags?: Tag[];
|
|
197
|
+
/** SEO general settings. */
|
|
198
|
+
settings?: Settings;
|
|
199
|
+
}
|
|
200
|
+
export interface Tag {
|
|
201
|
+
/**
|
|
202
|
+
* SEO tag type.
|
|
203
|
+
*
|
|
204
|
+
*
|
|
205
|
+
* Supported values: `title`, `meta`, `script`, `link`.
|
|
206
|
+
*/
|
|
207
|
+
type?: string;
|
|
208
|
+
/**
|
|
209
|
+
* A `{'key':'value'} pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
|
|
210
|
+
* For example: `{'name': 'description', 'content': 'the description itself'}`.
|
|
211
|
+
*/
|
|
212
|
+
props?: Record<string, any> | null;
|
|
213
|
+
/** SEO tag meta data. For example, `{height: 300, width: 240}`. */
|
|
214
|
+
meta?: Record<string, any> | null;
|
|
215
|
+
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
|
216
|
+
children?: string;
|
|
217
|
+
/** Whether the tag is a custom tag. */
|
|
218
|
+
custom?: boolean;
|
|
219
|
+
/** Whether the tag is disabled. */
|
|
220
|
+
disabled?: boolean;
|
|
221
|
+
}
|
|
222
|
+
export interface Settings {
|
|
223
|
+
/**
|
|
224
|
+
* Whether the auto redirects feature creating `301 redirects` on a slug change is enabled.
|
|
225
|
+
*
|
|
226
|
+
*
|
|
227
|
+
* Default: enabled
|
|
228
|
+
*/
|
|
229
|
+
preventAutoRedirect?: boolean;
|
|
230
|
+
}
|
|
231
|
+
export interface QueryProjectInCollectionsRequest {
|
|
232
|
+
/** WQL expression */
|
|
233
|
+
query: QueryV2;
|
|
234
|
+
includePageUrl?: boolean | null;
|
|
235
|
+
}
|
|
236
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
237
|
+
/**
|
|
238
|
+
* Filter object in the following format:
|
|
239
|
+
* `"filter" : {
|
|
240
|
+
* "fieldName1": "value1",
|
|
241
|
+
* "fieldName2":{"$operator":"value2"}
|
|
242
|
+
* }`
|
|
243
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
244
|
+
*/
|
|
245
|
+
filter?: Record<string, any> | null;
|
|
246
|
+
/**
|
|
247
|
+
* Sort object in the following format:
|
|
248
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
249
|
+
*/
|
|
250
|
+
sort?: Sorting[];
|
|
251
|
+
/** 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. */
|
|
252
|
+
fields?: string[];
|
|
253
|
+
/** 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. */
|
|
254
|
+
fieldsets?: string[];
|
|
255
|
+
/** Paging options to limit and skip the number of items. */
|
|
256
|
+
paging?: Paging;
|
|
257
|
+
/** 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`. */
|
|
258
|
+
cursorPaging?: CursorPaging;
|
|
259
|
+
}
|
|
260
|
+
/** @oneof */
|
|
261
|
+
export interface QueryV2PagingMethodOneOf {
|
|
262
|
+
/** Paging options to limit and skip the number of items. */
|
|
263
|
+
paging?: Paging;
|
|
264
|
+
/** 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`. */
|
|
265
|
+
cursorPaging?: CursorPaging;
|
|
266
|
+
}
|
|
267
|
+
export interface Sorting {
|
|
268
|
+
/** Name of the field to sort by. */
|
|
269
|
+
fieldName?: string;
|
|
270
|
+
/** Sort order. */
|
|
271
|
+
order?: SortOrder;
|
|
272
|
+
}
|
|
273
|
+
export declare enum SortOrder {
|
|
274
|
+
ASC = "ASC",
|
|
275
|
+
DESC = "DESC"
|
|
276
|
+
}
|
|
277
|
+
export interface Paging {
|
|
278
|
+
/** Number of items to load. */
|
|
279
|
+
limit?: number | null;
|
|
280
|
+
/** Number of items to skip in the current sort order. */
|
|
281
|
+
offset?: number | null;
|
|
282
|
+
}
|
|
283
|
+
export interface CursorPaging {
|
|
284
|
+
/** Number of items to load. */
|
|
285
|
+
limit?: number | null;
|
|
286
|
+
/**
|
|
287
|
+
* Pointer to the next or previous page in the list of results.
|
|
288
|
+
*
|
|
289
|
+
* You can get the relevant cursor token
|
|
290
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
291
|
+
* Not relevant for the first request.
|
|
292
|
+
*/
|
|
293
|
+
cursor?: string | null;
|
|
294
|
+
}
|
|
295
|
+
export interface QueryProjectInCollectionsResponse {
|
|
296
|
+
/** The retrieved Projects in Collections context */
|
|
297
|
+
projectInCollections?: ProjectInCollection[];
|
|
298
|
+
/** Paging metadata */
|
|
299
|
+
metadata?: PagingMetadataV2;
|
|
300
|
+
}
|
|
301
|
+
export interface PagingMetadataV2 {
|
|
302
|
+
/** Number of items returned in the response. */
|
|
303
|
+
count?: number | null;
|
|
304
|
+
/** Offset that was requested. */
|
|
305
|
+
offset?: number | null;
|
|
306
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
307
|
+
total?: number | null;
|
|
308
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
309
|
+
tooManyToCount?: boolean | null;
|
|
310
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
311
|
+
cursors?: Cursors;
|
|
312
|
+
}
|
|
313
|
+
export interface Cursors {
|
|
314
|
+
/** Cursor pointing to next page in the list of results. */
|
|
315
|
+
next?: string | null;
|
|
316
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
317
|
+
prev?: string | null;
|
|
318
|
+
}
|
|
319
|
+
export interface UpdateProjectOrderInCollectionRequest {
|
|
320
|
+
/** Id of the Project to update its order */
|
|
321
|
+
projectId: string;
|
|
322
|
+
/** Id of the collection in which the project will be re-ordered */
|
|
323
|
+
collectionId: string;
|
|
324
|
+
/** The new sort order of the project in the given collection */
|
|
325
|
+
sortOrder: number | null;
|
|
326
|
+
}
|
|
327
|
+
export interface UpdateProjectOrderInCollectionResponse {
|
|
328
|
+
/** project with new sort order set */
|
|
329
|
+
projectInCollection?: ProjectInCollection;
|
|
330
|
+
}
|
|
331
|
+
export interface ProjectOrderInCollectionUpdatedEvent {
|
|
332
|
+
/** Id of the Project to update its order */
|
|
333
|
+
projectId?: string;
|
|
334
|
+
/** Id of the collection in which the project will be re-ordered */
|
|
335
|
+
collectionId?: string;
|
|
336
|
+
/** The new sort order of the project in the given collection */
|
|
337
|
+
sortOrder?: number | null;
|
|
338
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export var ImageType;
|
|
2
|
+
(function (ImageType) {
|
|
3
|
+
ImageType["UNDEFINED"] = "UNDEFINED";
|
|
4
|
+
ImageType["WIX_MEDIA"] = "WIX_MEDIA";
|
|
5
|
+
ImageType["EXTERNAL"] = "EXTERNAL";
|
|
6
|
+
})(ImageType || (ImageType = {}));
|
|
7
|
+
export var VideoType;
|
|
8
|
+
(function (VideoType) {
|
|
9
|
+
VideoType["UNDEFINED"] = "UNDEFINED";
|
|
10
|
+
VideoType["WIX_MEDIA"] = "WIX_MEDIA";
|
|
11
|
+
VideoType["YOUTUBE"] = "YOUTUBE";
|
|
12
|
+
VideoType["VIMEO"] = "VIMEO";
|
|
13
|
+
})(VideoType || (VideoType = {}));
|
|
14
|
+
export var SyncStatus;
|
|
15
|
+
(function (SyncStatus) {
|
|
16
|
+
SyncStatus["SYNCED"] = "SYNCED";
|
|
17
|
+
SyncStatus["SYNCING"] = "SYNCING";
|
|
18
|
+
SyncStatus["NOT_SYNCED"] = "NOT_SYNCED";
|
|
19
|
+
})(SyncStatus || (SyncStatus = {}));
|
|
20
|
+
export var SortOrder;
|
|
21
|
+
(function (SortOrder) {
|
|
22
|
+
SortOrder["ASC"] = "ASC";
|
|
23
|
+
SortOrder["DESC"] = "DESC";
|
|
24
|
+
})(SortOrder || (SortOrder = {}));
|
|
25
|
+
//# sourceMappingURL=portfolio-projects-v1-project-in-collection.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portfolio-projects-v1-project-in-collection.types.js","sourceRoot":"","sources":["../../../src/portfolio-projects-v1-project-in-collection.types.ts"],"names":[],"mappings":"AAqEA,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;AACvB,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AAqDD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;AACjB,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AA8DD,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,uCAAyB,CAAA;AAC3B,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAoGD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB"}
|