@wix/portfolio 1.0.8 → 1.0.10
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/src/portfolio-collections-v1-collection.http.js +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.http.js.map +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.public.d.ts +4 -4
- package/build/cjs/src/portfolio-collections-v1-collection.public.js +2 -2
- package/build/cjs/src/portfolio-collections-v1-collection.public.js.map +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.types.d.ts +19 -25
- package/build/cjs/src/portfolio-collections-v1-collection.types.js.map +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.universal.d.ts +47 -37
- package/build/cjs/src/portfolio-collections-v1-collection.universal.js +62 -34
- package/build/cjs/src/portfolio-collections-v1-collection.universal.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project.http.js +36 -12
- package/build/cjs/src/portfolio-projects-v1-project.http.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project.public.d.ts +5 -5
- package/build/cjs/src/portfolio-projects-v1-project.public.js +4 -4
- package/build/cjs/src/portfolio-projects-v1-project.public.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project.types.d.ts +83 -53
- package/build/cjs/src/portfolio-projects-v1-project.types.js +8 -11
- package/build/cjs/src/portfolio-projects-v1-project.types.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project.universal.d.ts +106 -69
- package/build/cjs/src/portfolio-projects-v1-project.universal.js +101 -61
- package/build/cjs/src/portfolio-projects-v1-project.universal.js.map +1 -1
- package/build/es/src/portfolio-collections-v1-collection.http.js +1 -1
- package/build/es/src/portfolio-collections-v1-collection.http.js.map +1 -1
- package/build/es/src/portfolio-collections-v1-collection.public.d.ts +4 -4
- package/build/es/src/portfolio-collections-v1-collection.public.js +2 -2
- package/build/es/src/portfolio-collections-v1-collection.public.js.map +1 -1
- package/build/es/src/portfolio-collections-v1-collection.types.d.ts +19 -25
- package/build/es/src/portfolio-collections-v1-collection.types.js.map +1 -1
- package/build/es/src/portfolio-collections-v1-collection.universal.d.ts +47 -37
- package/build/es/src/portfolio-collections-v1-collection.universal.js +62 -34
- package/build/es/src/portfolio-collections-v1-collection.universal.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project.http.js +36 -12
- package/build/es/src/portfolio-projects-v1-project.http.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project.public.d.ts +5 -5
- package/build/es/src/portfolio-projects-v1-project.public.js +3 -3
- package/build/es/src/portfolio-projects-v1-project.public.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project.types.d.ts +83 -53
- package/build/es/src/portfolio-projects-v1-project.types.js +7 -10
- package/build/es/src/portfolio-projects-v1-project.types.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project.universal.d.ts +106 -69
- package/build/es/src/portfolio-projects-v1-project.universal.js +100 -60
- package/build/es/src/portfolio-projects-v1-project.universal.js.map +1 -1
- package/package.json +6 -6
|
@@ -111,7 +111,7 @@ function createCollection(payload) {
|
|
|
111
111
|
const metadata = {
|
|
112
112
|
method: 'POST',
|
|
113
113
|
url: resolveComWixpressPortfolioCollectionsCollectionsServiceUrl({
|
|
114
|
-
protoPath: '/api/v1/portfolio/
|
|
114
|
+
protoPath: '/api/v1/portfolio/collections',
|
|
115
115
|
data: serializedData,
|
|
116
116
|
host,
|
|
117
117
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolio-collections-v1-collection.http.js","sourceRoot":"","sources":["../../../src/portfolio-collections-v1-collection.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAkBhD,MAAM,WAAW,GAAG;IAClB,SAAS,EAAE,6BAA6B;IACxC,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;IACxC,UAAU,EAAE,QAAQ;CACrB,CAAC;AACF,MAAM,YAAY,GAAG,EAAE,i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,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,2DAA2D,CAAC;gBAC/D,SAAS,EAAE
|
|
1
|
+
{"version":3,"file":"portfolio-collections-v1-collection.http.js","sourceRoot":"","sources":["../../../src/portfolio-collections-v1-collection.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAkBhD,MAAM,WAAW,GAAG;IAClB,SAAS,EAAE,6BAA6B;IACxC,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;IACxC,UAAU,EAAE,QAAQ;CACrB,CAAC;AACF,MAAM,YAAY,GAAG,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,CAAC;AACxE,MAAM,wBAAwB,GAAG,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC;AAC/D,MAAM,yBAAyB,GAAG,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC;AAChE,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,sBAAsB,GAAG,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC;AAC7D,MAAM,MAAM,GAAG;IACb,SAAS,EAAE,cAAc;IACzB,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,iBAAiB;CAClC,CAAC;AACF,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,wBAAwB,GAAG,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;AAChE,MAAM,MAAM,GAAG,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC;AAC5C,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,yBAAyB,GAAG,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;AACjE,MAAM,eAAe,GAAG;IACtB,MAAM,EAAE,4BAA4B;IACp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AA8C;gBACzD,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iCAAiB,CAAC,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,kBAAkB,CAAC,OAAO,GAAG,OAAO,CAAC;IAErC,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AA5BD,4CA4BC;AAED,0HAA0H;AAC1H,SAAgB,gBAAgB,CAC9B,OAAgC;IAEhC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,uBAAU,CACrD,wBAAwB,EACxB,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,uBAAU,CAAC,yBAAyB,EAAE;QAClE,WAAW;QACX,YAAY;QACZ,MAAM;QACN,MAAM;QACN,eAAe;KAChB,CAAC,CAAC;IAEH,SAAS,kBAAkB,CAAC,EAAE,IAAI,EAAO;QACvC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,2DAA2D,CAAC;gBAC/D,SAAS,EAAE,qCAAqC;gBAChD,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,kBAAkB,CAAC,OAAO,GAAG,OAAO,CAAC;IAErC,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AAlCD,4CAkCC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { Collection, UpdateCollection,
|
|
2
|
+
import { Collection, UpdateCollection, GetCollectionOptions, ListCollectionsOptions, QueryCollectionsOptions } from './portfolio-collections-v1-collection.universal';
|
|
3
3
|
export declare function createCollection(httpClient: HttpClient): (collection: Collection) => Promise<Collection>;
|
|
4
4
|
export declare function getCollection(httpClient: HttpClient): (collectionId: string, options?: GetCollectionOptions | undefined) => Promise<Collection>;
|
|
5
5
|
export declare function listCollections(httpClient: HttpClient): (options?: ListCollectionsOptions | undefined) => Promise<import("./portfolio-collections-v1-collection.universal").ListCollectionsResponse>;
|
|
6
|
-
export declare function updateCollection(httpClient: HttpClient): (_id: string | null, collection: UpdateCollection
|
|
7
|
-
export declare function deleteCollection(httpClient: HttpClient): (collectionId: string
|
|
6
|
+
export declare function updateCollection(httpClient: HttpClient): (_id: string | null, collection: UpdateCollection) => Promise<Collection>;
|
|
7
|
+
export declare function deleteCollection(httpClient: HttpClient): (collectionId: string) => Promise<import("./portfolio-collections-v1-collection.universal").DeleteCollectionResponse>;
|
|
8
8
|
export declare function queryCollections(httpClient: HttpClient): (options?: QueryCollectionsOptions | undefined) => import("./portfolio-collections-v1-collection.universal").CollectionsQueryBuilder;
|
|
9
9
|
export { ImageImageType, SortOrder, } from './portfolio-collections-v1-collection.universal';
|
|
10
|
-
export { Collection, CommonImage, CommonPoint, CommonUnsharpMasking, SeoSchema, Tag, Settings, InvalidateCache, InvalidateCacheGetByOneOf, App, Page, URI, CreateCollectionRequest, CreateCollectionResponse, GetCollectionRequest, GetCollectionResponse, ListCollectionsRequest, CursorPaging, ListCollectionsResponse, PagingMetadataV2, Cursors, UpdateCollectionRequest, UpdateCollectionResponse, DeleteCollectionRequest, DeleteCollectionResponse, QueryCollectionsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, QueryCollectionsResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ExtendedFieldsUpdatedEvent, Empty, GetCollectionOptions, ListCollectionsOptions, UpdateCollection,
|
|
10
|
+
export { Collection, CommonImage, CommonPoint, CommonUnsharpMasking, SeoSchema, Tag, Settings, InvalidateCache, InvalidateCacheGetByOneOf, App, Page, URI, CreateCollectionRequest, CreateCollectionResponse, GetCollectionRequest, GetCollectionResponse, ListCollectionsRequest, CursorPaging, ListCollectionsResponse, PagingMetadataV2, Cursors, UpdateCollectionRequest, UpdateCollectionResponse, DeleteCollectionRequest, DeleteCollectionResponse, QueryCollectionsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, QueryCollectionsResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ExtendedFieldsUpdatedEvent, Empty, GetCollectionOptions, ListCollectionsOptions, UpdateCollection, QueryCollectionsOptions, CollectionsQueryResult, CollectionsQueryBuilder, } from './portfolio-collections-v1-collection.universal';
|
|
@@ -21,13 +21,13 @@ function listCollections(httpClient) {
|
|
|
21
21
|
}
|
|
22
22
|
exports.listCollections = listCollections;
|
|
23
23
|
function updateCollection(httpClient) {
|
|
24
|
-
return (_id, collection
|
|
24
|
+
return (_id, collection) => portfolio_collections_v1_collection_universal_1.updateCollection(_id, collection,
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
{ httpClient });
|
|
27
27
|
}
|
|
28
28
|
exports.updateCollection = updateCollection;
|
|
29
29
|
function deleteCollection(httpClient) {
|
|
30
|
-
return (collectionId
|
|
30
|
+
return (collectionId) => portfolio_collections_v1_collection_universal_1.deleteCollection(collectionId,
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
{ httpClient });
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolio-collections-v1-collection.public.js","sourceRoot":"","sources":["../../../src/portfolio-collections-v1-collection.public.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"portfolio-collections-v1-collection.public.js","sourceRoot":"","sources":["../../../src/portfolio-collections-v1-collection.public.ts"],"names":[],"mappings":";;;AACA,mHAYyD;AAEzD,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,UAAsB,EAAE,EAAE,CAChC,gEAAyB,CACvB,UAAU;IACV,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4CAOC;AAED,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,YAAoB,EAAE,OAA8B,EAAE,EAAE,CAC9D,6DAAsB,CACpB,YAAY,EACZ,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,sCAQC;AAED,SAAgB,eAAe,CAAC,UAAsB;IACpD,OAAO,CAAC,OAAgC,EAAE,EAAE,CAC1C,+DAAwB,CACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,0CAOC;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,GAAkB,EAAE,UAA4B,EAAE,EAAE,CAC1D,gEAAyB,CACvB,GAAG,EACH,UAAU;IACV,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,4CAQC;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,YAAoB,EAAE,EAAE,CAC9B,gEAAyB,CACvB,YAAY;IACZ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4CAOC;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,OAAiC,EAAE,EAAE,CAC3C,gEAAyB,CACvB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4CAOC;AAED,iHAGyD;AAFvD,+IAAA,cAAc,OAAA;AACd,0IAAA,SAAS,OAAA"}
|
|
@@ -35,21 +35,10 @@ export interface Collection {
|
|
|
35
35
|
seoData?: SeoSchema;
|
|
36
36
|
}
|
|
37
37
|
export interface Image {
|
|
38
|
-
/** Image info - Wix Media Image.
|
|
38
|
+
/** Image info - Wix Media Image. */
|
|
39
39
|
imageInfo?: CommonImage;
|
|
40
40
|
/** Focal point of the image. */
|
|
41
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
42
|
}
|
|
54
43
|
export declare enum ImageType {
|
|
55
44
|
UNDEFINED = "UNDEFINED",
|
|
@@ -115,13 +104,21 @@ export interface SeoSchema {
|
|
|
115
104
|
settings?: Settings;
|
|
116
105
|
}
|
|
117
106
|
export interface Tag {
|
|
118
|
-
/**
|
|
107
|
+
/**
|
|
108
|
+
* SEO tag type.
|
|
109
|
+
*
|
|
110
|
+
*
|
|
111
|
+
* Supported values: `title`, `meta`, `script`, `link`.
|
|
112
|
+
*/
|
|
119
113
|
type?: string;
|
|
120
|
-
/**
|
|
114
|
+
/**
|
|
115
|
+
* A `{'key':'value'} pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
|
|
116
|
+
* For example: `{'name': 'description', 'content': 'the description itself'}`.
|
|
117
|
+
*/
|
|
121
118
|
props?: Record<string, any> | null;
|
|
122
|
-
/**
|
|
119
|
+
/** SEO tag meta data. For example, `{height: 300, width: 240}`. */
|
|
123
120
|
meta?: Record<string, any> | null;
|
|
124
|
-
/**
|
|
121
|
+
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
|
125
122
|
children?: string;
|
|
126
123
|
/** Whether the tag is a custom tag. */
|
|
127
124
|
custom?: boolean;
|
|
@@ -129,7 +126,12 @@ export interface Tag {
|
|
|
129
126
|
disabled?: boolean;
|
|
130
127
|
}
|
|
131
128
|
export interface Settings {
|
|
132
|
-
/**
|
|
129
|
+
/**
|
|
130
|
+
* Whether the auto redirects feature creating `301 redirects` on a slug change is enabled.
|
|
131
|
+
*
|
|
132
|
+
*
|
|
133
|
+
* Default: enabled
|
|
134
|
+
*/
|
|
133
135
|
preventAutoRedirect?: boolean;
|
|
134
136
|
}
|
|
135
137
|
export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
@@ -217,8 +219,6 @@ export interface ListCollectionsResponse {
|
|
|
217
219
|
/** Retrieved Collections */
|
|
218
220
|
collections?: Collection[];
|
|
219
221
|
/** Paging metadata */
|
|
220
|
-
pagingMetadataV2?: PagingMetadataV2;
|
|
221
|
-
/** Paging metadata */
|
|
222
222
|
metadata?: PagingMetadataV2;
|
|
223
223
|
}
|
|
224
224
|
export interface PagingMetadataV2 {
|
|
@@ -242,8 +242,6 @@ export interface Cursors {
|
|
|
242
242
|
export interface UpdateCollectionRequest {
|
|
243
243
|
/** Collection to be updated, may be partial */
|
|
244
244
|
collection: Collection;
|
|
245
|
-
/** Explicit list of fields to update */
|
|
246
|
-
mask?: string[];
|
|
247
245
|
}
|
|
248
246
|
export interface UpdateCollectionResponse {
|
|
249
247
|
/** The updated Collection */
|
|
@@ -252,8 +250,6 @@ export interface UpdateCollectionResponse {
|
|
|
252
250
|
export interface DeleteCollectionRequest {
|
|
253
251
|
/** Id of the Collection to delete */
|
|
254
252
|
collectionId: string;
|
|
255
|
-
/** The revision of the Collection */
|
|
256
|
-
revision?: string;
|
|
257
253
|
}
|
|
258
254
|
export interface DeleteCollectionResponse {
|
|
259
255
|
/** Id of the Deleted Collection */
|
|
@@ -315,8 +311,6 @@ export interface QueryCollectionsResponse {
|
|
|
315
311
|
/** The retrieved Collections */
|
|
316
312
|
collections?: Collection[];
|
|
317
313
|
/** Paging metadata */
|
|
318
|
-
pagingMetadataV2?: PagingMetadataV2;
|
|
319
|
-
/** Paging metadata */
|
|
320
314
|
metadata?: PagingMetadataV2;
|
|
321
315
|
}
|
|
322
316
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolio-collections-v1-collection.types.js","sourceRoot":"","sources":["../../../src/portfolio-collections-v1-collection.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"portfolio-collections-v1-collection.types.js","sourceRoot":"","sources":["../../../src/portfolio-collections-v1-collection.types.ts"],"names":[],"mappings":";;;AA4CA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;AACvB,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AA2RD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
|
|
@@ -41,21 +41,10 @@ export interface Collection {
|
|
|
41
41
|
seoData?: SeoSchema;
|
|
42
42
|
}
|
|
43
43
|
export interface CommonImage {
|
|
44
|
-
/** Image info - Wix Media Image.
|
|
44
|
+
/** Image info - Wix Media Image. */
|
|
45
45
|
imageInfo?: string;
|
|
46
46
|
/** Focal point of the image. */
|
|
47
47
|
focalPoint?: CommonPoint;
|
|
48
|
-
/** Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). */
|
|
49
|
-
exif?: Record<string, any> | null;
|
|
50
|
-
/**
|
|
51
|
-
* Image compression level. <br />
|
|
52
|
-
*
|
|
53
|
-
* Min: `30` <br />
|
|
54
|
-
* Max: `100`
|
|
55
|
-
*/
|
|
56
|
-
quality?: number | null;
|
|
57
|
-
/** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */
|
|
58
|
-
unsharpMasking?: CommonUnsharpMasking;
|
|
59
48
|
}
|
|
60
49
|
export declare enum ImageImageType {
|
|
61
50
|
UNDEFINED = "UNDEFINED",
|
|
@@ -98,13 +87,21 @@ export interface SeoSchema {
|
|
|
98
87
|
settings?: Settings;
|
|
99
88
|
}
|
|
100
89
|
export interface Tag {
|
|
101
|
-
/**
|
|
90
|
+
/**
|
|
91
|
+
* SEO tag type.
|
|
92
|
+
*
|
|
93
|
+
*
|
|
94
|
+
* Supported values: `title`, `meta`, `script`, `link`.
|
|
95
|
+
*/
|
|
102
96
|
type?: string;
|
|
103
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* A `{'key':'value'} pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
|
|
99
|
+
* For example: `{'name': 'description', 'content': 'the description itself'}`.
|
|
100
|
+
*/
|
|
104
101
|
props?: Record<string, any> | null;
|
|
105
|
-
/**
|
|
102
|
+
/** SEO tag meta data. For example, `{height: 300, width: 240}`. */
|
|
106
103
|
meta?: Record<string, any> | null;
|
|
107
|
-
/**
|
|
104
|
+
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
|
108
105
|
children?: string;
|
|
109
106
|
/** Whether the tag is a custom tag. */
|
|
110
107
|
custom?: boolean;
|
|
@@ -112,7 +109,12 @@ export interface Tag {
|
|
|
112
109
|
disabled?: boolean;
|
|
113
110
|
}
|
|
114
111
|
export interface Settings {
|
|
115
|
-
/**
|
|
112
|
+
/**
|
|
113
|
+
* Whether the auto redirects feature creating `301 redirects` on a slug change is enabled.
|
|
114
|
+
*
|
|
115
|
+
*
|
|
116
|
+
* Default: enabled
|
|
117
|
+
*/
|
|
116
118
|
preventAutoRedirect?: boolean;
|
|
117
119
|
}
|
|
118
120
|
export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
@@ -200,8 +202,6 @@ export interface ListCollectionsResponse {
|
|
|
200
202
|
/** Retrieved Collections */
|
|
201
203
|
collections?: Collection[];
|
|
202
204
|
/** Paging metadata */
|
|
203
|
-
pagingMetadataV2?: PagingMetadataV2;
|
|
204
|
-
/** Paging metadata */
|
|
205
205
|
metadata?: PagingMetadataV2;
|
|
206
206
|
}
|
|
207
207
|
export interface PagingMetadataV2 {
|
|
@@ -225,8 +225,6 @@ export interface Cursors {
|
|
|
225
225
|
export interface UpdateCollectionRequest {
|
|
226
226
|
/** Collection to be updated, may be partial */
|
|
227
227
|
collection: Collection;
|
|
228
|
-
/** Explicit list of fields to update */
|
|
229
|
-
mask?: string[];
|
|
230
228
|
}
|
|
231
229
|
export interface UpdateCollectionResponse {
|
|
232
230
|
/** The updated Collection */
|
|
@@ -235,8 +233,6 @@ export interface UpdateCollectionResponse {
|
|
|
235
233
|
export interface DeleteCollectionRequest {
|
|
236
234
|
/** Id of the Collection to delete */
|
|
237
235
|
collectionId: string;
|
|
238
|
-
/** The revision of the Collection */
|
|
239
|
-
revision?: string;
|
|
240
236
|
}
|
|
241
237
|
export interface DeleteCollectionResponse {
|
|
242
238
|
/** Id of the Deleted Collection */
|
|
@@ -298,8 +294,6 @@ export interface QueryCollectionsResponse {
|
|
|
298
294
|
/** The retrieved Collections */
|
|
299
295
|
collections?: Collection[];
|
|
300
296
|
/** Paging metadata */
|
|
301
|
-
pagingMetadataV2?: PagingMetadataV2;
|
|
302
|
-
/** Paging metadata */
|
|
303
297
|
metadata?: PagingMetadataV2;
|
|
304
298
|
}
|
|
305
299
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -379,6 +373,7 @@ export interface Empty {
|
|
|
379
373
|
* Creates a new Collection
|
|
380
374
|
* @param collection - Collection to be created
|
|
381
375
|
* @public
|
|
376
|
+
* @documentationMaturity preview
|
|
382
377
|
* @requiredField collection
|
|
383
378
|
* @returns The created Collection
|
|
384
379
|
*/
|
|
@@ -387,6 +382,7 @@ export declare function createCollection(collection: Collection): Promise<Collec
|
|
|
387
382
|
* Get a Collection by id
|
|
388
383
|
* @param collectionId - Id of the Collection to retrieve
|
|
389
384
|
* @public
|
|
385
|
+
* @documentationMaturity preview
|
|
390
386
|
* @requiredField collectionId
|
|
391
387
|
* @returns The retrieved Collection
|
|
392
388
|
*/
|
|
@@ -396,7 +392,9 @@ export interface GetCollectionOptions {
|
|
|
396
392
|
}
|
|
397
393
|
/**
|
|
398
394
|
* List all Collections in portfolio
|
|
399
|
-
* @public
|
|
395
|
+
* @public
|
|
396
|
+
* @documentationMaturity preview
|
|
397
|
+
*/
|
|
400
398
|
export declare function listCollections(options?: ListCollectionsOptions): Promise<ListCollectionsResponse>;
|
|
401
399
|
export interface ListCollectionsOptions {
|
|
402
400
|
/** Maximum limit per response is 100, in first request cursor is None */
|
|
@@ -408,12 +406,13 @@ export interface ListCollectionsOptions {
|
|
|
408
406
|
* Pass the latest `revision` for a successful update
|
|
409
407
|
* @param _id - Collection ID
|
|
410
408
|
* @public
|
|
409
|
+
* @documentationMaturity preview
|
|
411
410
|
* @requiredField _id
|
|
412
411
|
* @requiredField collection
|
|
413
412
|
* @requiredField collection.revision
|
|
414
413
|
* @returns The updated Collection
|
|
415
414
|
*/
|
|
416
|
-
export declare function updateCollection(_id: string | null, collection: UpdateCollection
|
|
415
|
+
export declare function updateCollection(_id: string | null, collection: UpdateCollection): Promise<Collection>;
|
|
417
416
|
export interface UpdateCollection {
|
|
418
417
|
/**
|
|
419
418
|
* Collection ID
|
|
@@ -449,26 +448,21 @@ export interface UpdateCollection {
|
|
|
449
448
|
url?: string;
|
|
450
449
|
seoData?: SeoSchema;
|
|
451
450
|
}
|
|
452
|
-
export interface UpdateCollectionOptions {
|
|
453
|
-
/** Explicit list of fields to update */
|
|
454
|
-
mask?: string[];
|
|
455
|
-
}
|
|
456
451
|
/**
|
|
457
452
|
* Delete a Collection
|
|
458
453
|
* @param collectionId - Id of the Collection to delete
|
|
459
454
|
* @public
|
|
455
|
+
* @documentationMaturity preview
|
|
460
456
|
* @requiredField collectionId
|
|
461
457
|
*/
|
|
462
|
-
export declare function deleteCollection(collectionId: string
|
|
463
|
-
export interface DeleteCollectionOptions {
|
|
464
|
-
/** The revision of the Collection */
|
|
465
|
-
revision?: string;
|
|
466
|
-
}
|
|
458
|
+
export declare function deleteCollection(collectionId: string): Promise<DeleteCollectionResponse>;
|
|
467
459
|
/**
|
|
468
460
|
* Query Collections using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
469
461
|
* @public */
|
|
470
462
|
export declare function queryCollections(options?: QueryCollectionsOptions): CollectionsQueryBuilder;
|
|
471
|
-
export
|
|
463
|
+
export interface QueryCollectionsOptions {
|
|
464
|
+
includePageUrl?: boolean | null | undefined;
|
|
465
|
+
}
|
|
472
466
|
interface QueryCursorResult {
|
|
473
467
|
hasNext: () => boolean;
|
|
474
468
|
hasPrev: () => boolean;
|
|
@@ -490,6 +484,22 @@ export interface CollectionsQueryBuilder {
|
|
|
490
484
|
* @param value - Value to compare against.
|
|
491
485
|
*/
|
|
492
486
|
ne: (propertyName: string, value: any) => CollectionsQueryBuilder;
|
|
487
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
488
|
+
* @param value - Value to compare against.
|
|
489
|
+
*/
|
|
490
|
+
ge: (propertyName: string, value: any) => CollectionsQueryBuilder;
|
|
491
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
492
|
+
* @param value - Value to compare against.
|
|
493
|
+
*/
|
|
494
|
+
gt: (propertyName: string, value: any) => CollectionsQueryBuilder;
|
|
495
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
496
|
+
* @param value - Value to compare against.
|
|
497
|
+
*/
|
|
498
|
+
le: (propertyName: string, value: any) => CollectionsQueryBuilder;
|
|
499
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
500
|
+
* @param value - Value to compare against.
|
|
501
|
+
*/
|
|
502
|
+
lt: (propertyName: string, value: any) => CollectionsQueryBuilder;
|
|
493
503
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
494
504
|
* @param string - String to compare against. Case-insensitive.
|
|
495
505
|
*/
|
|
@@ -77,15 +77,17 @@ const _updateCollectionResponse = { collection: '_collection' };
|
|
|
77
77
|
* Creates a new Collection
|
|
78
78
|
* @param collection - Collection to be created
|
|
79
79
|
* @public
|
|
80
|
+
* @documentationMaturity preview
|
|
80
81
|
* @requiredField collection
|
|
81
82
|
* @returns The created Collection
|
|
82
83
|
*/
|
|
83
84
|
function createCollection(collection) {
|
|
85
|
+
var _a, _b, _c;
|
|
84
86
|
return __awaiter(this, arguments, void 0, function* () {
|
|
85
87
|
const requestTransformation = { collection: '$[0]' };
|
|
86
88
|
const responseTransformation = '$.collection';
|
|
87
89
|
// @ts-ignore
|
|
88
|
-
const httpClient = arguments[1]
|
|
90
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
89
91
|
const { toAmbassadorRequest } = velo_1.serializer({
|
|
90
92
|
rootSchema: _createCollectionRequest,
|
|
91
93
|
depSchemas: { _collection, _commonImage },
|
|
@@ -107,14 +109,17 @@ function createCollection(collection) {
|
|
|
107
109
|
const payload = toAmbassadorRequest([collection]);
|
|
108
110
|
const reqOpts = ambassadorWixPortfolioCollectionsV1Collection.createCollection(payload);
|
|
109
111
|
__log(`"CreateCollection" sending request with: ${__inspect(reqOpts)}`);
|
|
112
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
110
113
|
try {
|
|
111
|
-
const
|
|
112
|
-
|
|
114
|
+
const result = yield httpClient.request(reqOpts);
|
|
115
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
116
|
+
return fromJSON(result.data);
|
|
113
117
|
}
|
|
114
118
|
catch (err) {
|
|
115
119
|
const transformedError = velo_1.transformError(err, requestTransformation, [
|
|
116
120
|
'collection',
|
|
117
121
|
]);
|
|
122
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
118
123
|
throw transformedError;
|
|
119
124
|
}
|
|
120
125
|
});
|
|
@@ -124,10 +129,12 @@ exports.createCollection = createCollection;
|
|
|
124
129
|
* Get a Collection by id
|
|
125
130
|
* @param collectionId - Id of the Collection to retrieve
|
|
126
131
|
* @public
|
|
132
|
+
* @documentationMaturity preview
|
|
127
133
|
* @requiredField collectionId
|
|
128
134
|
* @returns The retrieved Collection
|
|
129
135
|
*/
|
|
130
136
|
function getCollection(collectionId, options) {
|
|
137
|
+
var _a, _b, _c;
|
|
131
138
|
return __awaiter(this, arguments, void 0, function* () {
|
|
132
139
|
const requestTransformation = {
|
|
133
140
|
collectionId: '$[0]',
|
|
@@ -135,7 +142,7 @@ function getCollection(collectionId, options) {
|
|
|
135
142
|
};
|
|
136
143
|
const responseTransformation = '$.collection';
|
|
137
144
|
// @ts-ignore
|
|
138
|
-
const httpClient = arguments[2]
|
|
145
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
139
146
|
const { toAmbassadorRequest } = velo_1.serializer({
|
|
140
147
|
rootSchema: _getCollectionRequest,
|
|
141
148
|
depSchemas: {},
|
|
@@ -157,15 +164,18 @@ function getCollection(collectionId, options) {
|
|
|
157
164
|
const payload = toAmbassadorRequest([collectionId, options]);
|
|
158
165
|
const reqOpts = ambassadorWixPortfolioCollectionsV1Collection.getCollection(payload);
|
|
159
166
|
__log(`"GetCollection" sending request with: ${__inspect(reqOpts)}`);
|
|
167
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
160
168
|
try {
|
|
161
|
-
const
|
|
162
|
-
|
|
169
|
+
const result = yield httpClient.request(reqOpts);
|
|
170
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
171
|
+
return fromJSON(result.data);
|
|
163
172
|
}
|
|
164
173
|
catch (err) {
|
|
165
174
|
const transformedError = velo_1.transformError(err, requestTransformation, [
|
|
166
175
|
'collectionId',
|
|
167
176
|
'options',
|
|
168
177
|
]);
|
|
178
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
169
179
|
throw transformedError;
|
|
170
180
|
}
|
|
171
181
|
});
|
|
@@ -173,8 +183,11 @@ function getCollection(collectionId, options) {
|
|
|
173
183
|
exports.getCollection = getCollection;
|
|
174
184
|
/**
|
|
175
185
|
* List all Collections in portfolio
|
|
176
|
-
* @public
|
|
186
|
+
* @public
|
|
187
|
+
* @documentationMaturity preview
|
|
188
|
+
*/
|
|
177
189
|
function listCollections(options) {
|
|
190
|
+
var _a, _b, _c;
|
|
178
191
|
return __awaiter(this, arguments, void 0, function* () {
|
|
179
192
|
const requestTransformation = {
|
|
180
193
|
paging: '$[0].paging',
|
|
@@ -182,7 +195,7 @@ function listCollections(options) {
|
|
|
182
195
|
};
|
|
183
196
|
const responseTransformation = '$';
|
|
184
197
|
// @ts-ignore
|
|
185
|
-
const httpClient = arguments[1]
|
|
198
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
186
199
|
const { toAmbassadorRequest } = velo_1.serializer({
|
|
187
200
|
rootSchema: _listCollectionsRequest,
|
|
188
201
|
depSchemas: {},
|
|
@@ -204,14 +217,17 @@ function listCollections(options) {
|
|
|
204
217
|
const payload = toAmbassadorRequest([options]);
|
|
205
218
|
const reqOpts = ambassadorWixPortfolioCollectionsV1Collection.listCollections(payload);
|
|
206
219
|
__log(`"ListCollections" sending request with: ${__inspect(reqOpts)}`);
|
|
220
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
207
221
|
try {
|
|
208
|
-
const
|
|
209
|
-
|
|
222
|
+
const result = yield httpClient.request(reqOpts);
|
|
223
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
224
|
+
return fromJSON(result.data);
|
|
210
225
|
}
|
|
211
226
|
catch (err) {
|
|
212
227
|
const transformedError = velo_1.transformError(err, requestTransformation, [
|
|
213
228
|
'options',
|
|
214
229
|
]);
|
|
230
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
215
231
|
throw transformedError;
|
|
216
232
|
}
|
|
217
233
|
});
|
|
@@ -222,20 +238,19 @@ exports.listCollections = listCollections;
|
|
|
222
238
|
* Pass the latest `revision` for a successful update
|
|
223
239
|
* @param _id - Collection ID
|
|
224
240
|
* @public
|
|
241
|
+
* @documentationMaturity preview
|
|
225
242
|
* @requiredField _id
|
|
226
243
|
* @requiredField collection
|
|
227
244
|
* @requiredField collection.revision
|
|
228
245
|
* @returns The updated Collection
|
|
229
246
|
*/
|
|
230
|
-
function updateCollection(_id, collection
|
|
247
|
+
function updateCollection(_id, collection) {
|
|
248
|
+
var _a, _b, _c;
|
|
231
249
|
return __awaiter(this, arguments, void 0, function* () {
|
|
232
|
-
const requestTransformation = {
|
|
233
|
-
collection: { '*': '$[1]', id: '$[0]' },
|
|
234
|
-
mask: '$[2].mask',
|
|
235
|
-
};
|
|
250
|
+
const requestTransformation = { collection: { '*': '$[1]', id: '$[0]' } };
|
|
236
251
|
const responseTransformation = '$.collection';
|
|
237
252
|
// @ts-ignore
|
|
238
|
-
const httpClient = arguments[
|
|
253
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
239
254
|
const { toAmbassadorRequest } = velo_1.serializer({
|
|
240
255
|
rootSchema: _updateCollectionRequest,
|
|
241
256
|
depSchemas: { _collection, _commonImage },
|
|
@@ -254,19 +269,21 @@ function updateCollection(_id, collection, options) {
|
|
|
254
269
|
},
|
|
255
270
|
customTransformation: responseTransformation,
|
|
256
271
|
});
|
|
257
|
-
const payload = toAmbassadorRequest([_id, collection
|
|
272
|
+
const payload = toAmbassadorRequest([_id, collection]);
|
|
258
273
|
const reqOpts = ambassadorWixPortfolioCollectionsV1Collection.updateCollection(payload);
|
|
259
274
|
__log(`"UpdateCollection" sending request with: ${__inspect(reqOpts)}`);
|
|
275
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
260
276
|
try {
|
|
261
|
-
const
|
|
262
|
-
|
|
277
|
+
const result = yield httpClient.request(reqOpts);
|
|
278
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
279
|
+
return fromJSON(result.data);
|
|
263
280
|
}
|
|
264
281
|
catch (err) {
|
|
265
282
|
const transformedError = velo_1.transformError(err, requestTransformation, [
|
|
266
283
|
'_id',
|
|
267
284
|
'collection',
|
|
268
|
-
'options',
|
|
269
285
|
]);
|
|
286
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
270
287
|
throw transformedError;
|
|
271
288
|
}
|
|
272
289
|
});
|
|
@@ -276,17 +293,16 @@ exports.updateCollection = updateCollection;
|
|
|
276
293
|
* Delete a Collection
|
|
277
294
|
* @param collectionId - Id of the Collection to delete
|
|
278
295
|
* @public
|
|
296
|
+
* @documentationMaturity preview
|
|
279
297
|
* @requiredField collectionId
|
|
280
298
|
*/
|
|
281
|
-
function deleteCollection(collectionId
|
|
299
|
+
function deleteCollection(collectionId) {
|
|
300
|
+
var _a, _b, _c;
|
|
282
301
|
return __awaiter(this, arguments, void 0, function* () {
|
|
283
|
-
const requestTransformation = {
|
|
284
|
-
collectionId: '$[0]',
|
|
285
|
-
revision: '$[1].revision',
|
|
286
|
-
};
|
|
302
|
+
const requestTransformation = { collectionId: '$[0]' };
|
|
287
303
|
const responseTransformation = '$';
|
|
288
304
|
// @ts-ignore
|
|
289
|
-
const httpClient = arguments[
|
|
305
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
290
306
|
const { toAmbassadorRequest } = velo_1.serializer({
|
|
291
307
|
rootSchema: _deleteCollectionRequest,
|
|
292
308
|
depSchemas: {},
|
|
@@ -305,18 +321,20 @@ function deleteCollection(collectionId, options) {
|
|
|
305
321
|
},
|
|
306
322
|
customTransformation: responseTransformation,
|
|
307
323
|
});
|
|
308
|
-
const payload = toAmbassadorRequest([collectionId
|
|
324
|
+
const payload = toAmbassadorRequest([collectionId]);
|
|
309
325
|
const reqOpts = ambassadorWixPortfolioCollectionsV1Collection.deleteCollection(payload);
|
|
310
326
|
__log(`"DeleteCollection" sending request with: ${__inspect(reqOpts)}`);
|
|
327
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
311
328
|
try {
|
|
312
|
-
const
|
|
313
|
-
|
|
329
|
+
const result = yield httpClient.request(reqOpts);
|
|
330
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
331
|
+
return fromJSON(result.data);
|
|
314
332
|
}
|
|
315
333
|
catch (err) {
|
|
316
334
|
const transformedError = velo_1.transformError(err, requestTransformation, [
|
|
317
335
|
'collectionId',
|
|
318
|
-
'options',
|
|
319
336
|
]);
|
|
337
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
320
338
|
throw transformedError;
|
|
321
339
|
}
|
|
322
340
|
});
|
|
@@ -332,7 +350,7 @@ function queryCollections(options) {
|
|
|
332
350
|
pagingMetadata: '$.metadata',
|
|
333
351
|
};
|
|
334
352
|
// @ts-ignore
|
|
335
|
-
const httpClient = arguments[1]
|
|
353
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
336
354
|
const { toAmbassadorRequest } = velo_1.serializer({
|
|
337
355
|
rootSchema: _queryCollectionsRequest,
|
|
338
356
|
depSchemas: {},
|
|
@@ -352,10 +370,20 @@ function queryCollections(options) {
|
|
|
352
370
|
customTransformation: responseTransformation,
|
|
353
371
|
});
|
|
354
372
|
return motion_edm_autogen_query_wrapper_1.wrapWithQueryBuilder({
|
|
355
|
-
func: (payload) => {
|
|
373
|
+
func: (payload) => __awaiter(this, void 0, void 0, function* () {
|
|
374
|
+
var _a, _b, _c;
|
|
356
375
|
const reqOpts = ambassadorWixPortfolioCollectionsV1Collection.queryCollections(Object.assign(Object.assign({}, payload), (options !== null && options !== void 0 ? options : {})));
|
|
357
|
-
|
|
358
|
-
|
|
376
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
377
|
+
try {
|
|
378
|
+
const result = yield httpClient.request(reqOpts);
|
|
379
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
380
|
+
return result;
|
|
381
|
+
}
|
|
382
|
+
catch (err) {
|
|
383
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
384
|
+
throw err;
|
|
385
|
+
}
|
|
386
|
+
}),
|
|
359
387
|
requestTransformer: (...args) => toAmbassadorRequest(args),
|
|
360
388
|
responseTransformer: ({ data }) => fromJSON(data),
|
|
361
389
|
errorTransformer: (err) => {
|