@wix/portfolio 1.0.2 → 1.0.4

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.
Files changed (45) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +2 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/src/portfolio-collections-v1-collection.http.js +4 -59
  5. package/build/cjs/src/portfolio-collections-v1-collection.http.js.map +1 -1
  6. package/build/cjs/src/portfolio-collections-v1-collection.public.d.ts +4 -4
  7. package/build/cjs/src/portfolio-collections-v1-collection.public.js +2 -3
  8. package/build/cjs/src/portfolio-collections-v1-collection.public.js.map +1 -1
  9. package/build/cjs/src/portfolio-collections-v1-collection.types.d.ts +76 -66
  10. package/build/cjs/src/portfolio-collections-v1-collection.types.js +1 -7
  11. package/build/cjs/src/portfolio-collections-v1-collection.types.js.map +1 -1
  12. package/build/cjs/src/portfolio-collections-v1-collection.universal.d.ts +85 -57
  13. package/build/cjs/src/portfolio-collections-v1-collection.universal.js +12 -23
  14. package/build/cjs/src/portfolio-collections-v1-collection.universal.js.map +1 -1
  15. package/build/cjs/src/portfolio-projects-v1-project.http.js +0 -1
  16. package/build/cjs/src/portfolio-projects-v1-project.http.js.map +1 -1
  17. package/build/cjs/src/portfolio-projects-v1-project.public.d.ts +2 -2
  18. package/build/cjs/src/portfolio-projects-v1-project.public.js +1 -1
  19. package/build/cjs/src/portfolio-projects-v1-project.public.js.map +1 -1
  20. package/build/cjs/src/portfolio-projects-v1-project.universal.d.ts +2 -1
  21. package/build/cjs/src/portfolio-projects-v1-project.universal.js +4 -8
  22. package/build/cjs/src/portfolio-projects-v1-project.universal.js.map +1 -1
  23. package/build/es/index.d.ts +1 -1
  24. package/build/es/index.js +1 -1
  25. package/build/es/index.js.map +1 -1
  26. package/build/es/src/portfolio-collections-v1-collection.http.js +4 -59
  27. package/build/es/src/portfolio-collections-v1-collection.http.js.map +1 -1
  28. package/build/es/src/portfolio-collections-v1-collection.public.d.ts +4 -4
  29. package/build/es/src/portfolio-collections-v1-collection.public.js +2 -2
  30. package/build/es/src/portfolio-collections-v1-collection.public.js.map +1 -1
  31. package/build/es/src/portfolio-collections-v1-collection.types.d.ts +76 -66
  32. package/build/es/src/portfolio-collections-v1-collection.types.js +0 -6
  33. package/build/es/src/portfolio-collections-v1-collection.types.js.map +1 -1
  34. package/build/es/src/portfolio-collections-v1-collection.universal.d.ts +85 -57
  35. package/build/es/src/portfolio-collections-v1-collection.universal.js +11 -22
  36. package/build/es/src/portfolio-collections-v1-collection.universal.js.map +1 -1
  37. package/build/es/src/portfolio-projects-v1-project.http.js +0 -1
  38. package/build/es/src/portfolio-projects-v1-project.http.js.map +1 -1
  39. package/build/es/src/portfolio-projects-v1-project.public.d.ts +2 -2
  40. package/build/es/src/portfolio-projects-v1-project.public.js +1 -1
  41. package/build/es/src/portfolio-projects-v1-project.public.js.map +1 -1
  42. package/build/es/src/portfolio-projects-v1-project.universal.d.ts +2 -1
  43. package/build/es/src/portfolio-projects-v1-project.universal.js +4 -8
  44. package/build/es/src/portfolio-projects-v1-project.universal.js.map +1 -1
  45. package/package.json +2 -2
@@ -1,3 +1,3 @@
1
- export * as collections from './src/portfolio-collections-v1-collection.public';
2
1
  export * as projectItems from './src/portfolio-project-items-v1-project-item.public';
2
+ export * as collections from './src/portfolio-collections-v1-collection.public';
3
3
  export * as projects from './src/portfolio-projects-v1-project.public';
@@ -19,8 +19,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.projects = exports.projectItems = exports.collections = void 0;
23
- exports.collections = __importStar(require("./src/portfolio-collections-v1-collection.public"));
22
+ exports.projects = exports.collections = exports.projectItems = void 0;
24
23
  exports.projectItems = __importStar(require("./src/portfolio-project-items-v1-project-item.public"));
24
+ exports.collections = __importStar(require("./src/portfolio-collections-v1-collection.public"));
25
25
  exports.projects = __importStar(require("./src/portfolio-projects-v1-project.public"));
26
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,gGAAgF;AAChF,qGAAqF;AACrF,uFAAuE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qGAAqF;AACrF,gGAAgF;AAChF,uFAAuE"}
@@ -9,19 +9,8 @@ const _collection = {
9
9
  createdDate: 'google.protobuf.Timestamp',
10
10
  updatedDate: 'google.protobuf.Timestamp',
11
11
  coverImage: '_image',
12
- coverImageTemp: '_commonImage',
13
- };
14
- const _commonImage = {
15
- imageInfo: '_portfolioCommonImage',
16
- focalPoint: '_commonPoint',
17
- unsharpMasking: '_commonUnsharpMasking',
18
- };
19
- const _commonPoint = { x: 'DOUBLE', y: 'DOUBLE' };
20
- const _commonUnsharpMasking = {
21
- amount: 'google.protobuf.FloatValue',
22
- radius: 'google.protobuf.FloatValue',
23
- threshold: 'google.protobuf.FloatValue',
24
12
  };
13
+ const _commonImage = { urlExpirationDate: 'google.protobuf.Timestamp' };
25
14
  const _createCollectionRequest = { collection: '_collection' };
26
15
  const _createCollectionResponse = { collection: '_collection' };
27
16
  const _deleteCollectionRequest = {};
@@ -29,16 +18,13 @@ const _deleteCollectionResponse = {};
29
18
  const _getCollectionRequest = {};
30
19
  const _getCollectionResponse = { collection: '_collection' };
31
20
  const _image = {
32
- imageInfo: '_wixCommonImage',
21
+ imageInfo: '_commonImage',
33
22
  focalPoint: '_point',
34
23
  unsharpMasking: '_unsharpMasking',
35
24
  };
36
25
  const _listCollectionsRequest = {};
37
26
  const _listCollectionsResponse = { collections: '_collection' };
38
27
  const _point = { x: 'DOUBLE', y: 'DOUBLE' };
39
- const _portfolioCommonImage = {
40
- urlExpirationDate: 'google.protobuf.Timestamp',
41
- };
42
28
  const _queryCollectionsRequest = {};
43
29
  const _queryCollectionsResponse = { collections: '_collection' };
44
30
  const _unsharpMasking = {
@@ -51,7 +37,6 @@ const _updateCollectionRequest = {
51
37
  collection: '_collection',
52
38
  };
53
39
  const _updateCollectionResponse = { collection: '_collection' };
54
- const _wixCommonImage = { urlExpirationDate: 'google.protobuf.Timestamp' };
55
40
  function resolveComWixpressPortfolioCollectionsCollectionsServiceUrl(opts) {
56
41
  const domainToMappings = {
57
42
  '*.dev.wix-code.com': [
@@ -113,27 +98,13 @@ function resolveComWixpressPortfolioCollectionsCollectionsServiceUrl(opts) {
113
98
  }
114
99
  /** Creates a new Collection */
115
100
  function createCollection(payload) {
116
- const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_createCollectionRequest, {
117
- _collection,
118
- _commonImage,
119
- _commonPoint,
120
- _commonUnsharpMasking,
121
- _image,
122
- _point,
123
- _portfolioCommonImage,
124
- _unsharpMasking,
125
- _wixCommonImage,
126
- });
101
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_createCollectionRequest, { _collection, _commonImage, _image, _point, _unsharpMasking });
127
102
  const { fromJSON: fromRes } = ambassador_1.serializer(_createCollectionResponse, {
128
103
  _collection,
129
104
  _commonImage,
130
- _commonPoint,
131
- _commonUnsharpMasking,
132
105
  _image,
133
106
  _point,
134
- _portfolioCommonImage,
135
107
  _unsharpMasking,
136
- _wixCommonImage,
137
108
  });
138
109
  function __createCollection({ host }) {
139
110
  const serializedData = toReq(payload);
@@ -159,13 +130,9 @@ function getCollection(payload) {
159
130
  const { fromJSON: fromRes } = ambassador_1.serializer(_getCollectionResponse, {
160
131
  _collection,
161
132
  _commonImage,
162
- _commonPoint,
163
- _commonUnsharpMasking,
164
133
  _image,
165
134
  _point,
166
- _portfolioCommonImage,
167
135
  _unsharpMasking,
168
- _wixCommonImage,
169
136
  });
170
137
  function __getCollection({ host }) {
171
138
  const serializedData = toReq(payload);
@@ -191,13 +158,9 @@ function listCollections(payload) {
191
158
  const { fromJSON: fromRes } = ambassador_1.serializer(_listCollectionsResponse, {
192
159
  _collection,
193
160
  _commonImage,
194
- _commonPoint,
195
- _commonUnsharpMasking,
196
161
  _image,
197
162
  _point,
198
- _portfolioCommonImage,
199
163
  _unsharpMasking,
200
- _wixCommonImage,
201
164
  });
202
165
  function __listCollections({ host }) {
203
166
  const serializedData = toReq(payload);
@@ -222,27 +185,13 @@ exports.listCollections = listCollections;
222
185
  * Pass the latest `revision` for a successful update
223
186
  */
224
187
  function updateCollection(payload) {
225
- const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_updateCollectionRequest, {
226
- _collection,
227
- _commonImage,
228
- _commonPoint,
229
- _commonUnsharpMasking,
230
- _image,
231
- _point,
232
- _portfolioCommonImage,
233
- _unsharpMasking,
234
- _wixCommonImage,
235
- });
188
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_updateCollectionRequest, { _collection, _commonImage, _image, _point, _unsharpMasking });
236
189
  const { fromJSON: fromRes } = ambassador_1.serializer(_updateCollectionResponse, {
237
190
  _collection,
238
191
  _commonImage,
239
- _commonPoint,
240
- _commonUnsharpMasking,
241
192
  _image,
242
193
  _point,
243
- _portfolioCommonImage,
244
194
  _unsharpMasking,
245
- _wixCommonImage,
246
195
  });
247
196
  function __updateCollection({ host }) {
248
197
  const serializedData = toReq(payload);
@@ -290,13 +239,9 @@ function queryCollections(payload) {
290
239
  const { fromJSON: fromRes } = ambassador_1.serializer(_queryCollectionsResponse, {
291
240
  _collection,
292
241
  _commonImage,
293
- _commonPoint,
294
- _commonUnsharpMasking,
295
242
  _image,
296
243
  _point,
297
- _portfolioCommonImage,
298
244
  _unsharpMasking,
299
- _wixCommonImage,
300
245
  });
301
246
  function __queryCollections({ host }) {
302
247
  const serializedData = toReq(payload);
@@ -1 +1 @@
1
- {"version":3,"file":"portfolio-collections-v1-collection.http.js","sourceRoot":"","sources":["../../../src/portfolio-collections-v1-collection.http.ts"],"names":[],"mappings":";;;AAAA,sDAAu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,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;AAtCD,4CAsCC"}
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,MAA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,kBAAkB,CAAC;AAC5B,CAAC;AAlCD,4CAkCC"}
@@ -1,10 +1,10 @@
1
1
  import { HttpClient } from '@wix/sdk-types';
2
- import { Collection, UpdateCollection, DeleteCollectionOptions, GetCollectionOptions, ListCollectionsOptions, UpdateCollectionOptions } from './portfolio-collections-v1-collection.universal';
2
+ import { Collection, UpdateCollection, DeleteCollectionOptions, GetCollectionOptions, ListCollectionsOptions, QueryCollectionsOptions, UpdateCollectionOptions } 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
6
  export declare function updateCollection(httpClient: HttpClient): (_id: string | null, collection: UpdateCollection, options?: UpdateCollectionOptions | undefined) => Promise<Collection>;
7
7
  export declare function deleteCollection(httpClient: HttpClient): (collectionId: string, options?: DeleteCollectionOptions | undefined) => Promise<import("./portfolio-collections-v1-collection.universal").DeleteCollectionResponse>;
8
- export declare function queryCollections(httpClient: HttpClient): () => import("./portfolio-collections-v1-collection.universal").CollectionsQueryBuilder;
9
- export { ImageType, ImageImageType, SortOrder, } from './portfolio-collections-v1-collection.universal';
10
- export { Collection, Image, Point, UnsharpMasking, SeoSchema, Tag, Settings, CommonImage, CommonPoint, CommonUnsharpMasking, InvalidateCache, InvalidateCacheGetByOneOf, App, Page, URI, CreateCollectionRequest, CreateCollectionResponse, GetCollectionRequest, GetCollectionResponse, ListCollectionsRequest, CursorPaging, ListCollectionsResponse, PagingMetadataV2, Cursors, UpdateCollectionRequest, UpdateCollectionResponse, DeleteCollectionRequest, DeleteCollectionResponse, QueryCollectionsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, QueryCollectionsResponse, GetCollectionOptions, ListCollectionsOptions, UpdateCollection, UpdateCollectionOptions, DeleteCollectionOptions, CollectionsQueryResult, CollectionsQueryBuilder, } from './portfolio-collections-v1-collection.universal';
8
+ export declare function queryCollections(httpClient: HttpClient): (options?: QueryCollectionsOptions | undefined) => import("./portfolio-collections-v1-collection.universal").CollectionsQueryBuilder;
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, UpdateCollectionOptions, DeleteCollectionOptions, CollectionsQueryResult, CollectionsQueryBuilder, } from './portfolio-collections-v1-collection.universal';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SortOrder = exports.ImageImageType = exports.ImageType = exports.queryCollections = exports.deleteCollection = exports.updateCollection = exports.listCollections = exports.getCollection = exports.createCollection = void 0;
3
+ exports.SortOrder = exports.ImageImageType = exports.queryCollections = exports.deleteCollection = exports.updateCollection = exports.listCollections = exports.getCollection = exports.createCollection = void 0;
4
4
  const portfolio_collections_v1_collection_universal_1 = require("./portfolio-collections-v1-collection.universal");
5
5
  function createCollection(httpClient) {
6
6
  return (collection) => portfolio_collections_v1_collection_universal_1.createCollection(collection,
@@ -33,13 +33,12 @@ function deleteCollection(httpClient) {
33
33
  }
34
34
  exports.deleteCollection = deleteCollection;
35
35
  function queryCollections(httpClient) {
36
- return () => portfolio_collections_v1_collection_universal_1.queryCollections(
36
+ return (options) => portfolio_collections_v1_collection_universal_1.queryCollections(options,
37
37
  // @ts-ignore
38
38
  { httpClient });
39
39
  }
40
40
  exports.queryCollections = queryCollections;
41
41
  var portfolio_collections_v1_collection_universal_2 = require("./portfolio-collections-v1-collection.universal");
42
- Object.defineProperty(exports, "ImageType", { enumerable: true, get: function () { return portfolio_collections_v1_collection_universal_2.ImageType; } });
43
42
  Object.defineProperty(exports, "ImageImageType", { enumerable: true, get: function () { return portfolio_collections_v1_collection_universal_2.ImageImageType; } });
44
43
  Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return portfolio_collections_v1_collection_universal_2.SortOrder; } });
45
44
  //# sourceMappingURL=portfolio-collections-v1-collection.public.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"portfolio-collections-v1-collection.public.js","sourceRoot":"","sources":["../../../src/portfolio-collections-v1-collection.public.ts"],"names":[],"mappings":";;;AACA,mHAayD;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,CACL,GAAkB,EAClB,UAA4B,EAC5B,OAAiC,EACjC,EAAE,CACF,gEAAyB,CACvB,GAAG,EACH,UAAU,EACV,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,4CAaC;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,YAAoB,EAAE,OAAiC,EAAE,EAAE,CACjE,gEAAyB,CACvB,YAAY,EACZ,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,4CAQC;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,GAAG,EAAE,CACV,gEAAyB;IACvB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAND,4CAMC;AAED,iHAIyD;AAHvD,0IAAA,SAAS,OAAA;AACT,+IAAA,cAAc,OAAA;AACd,0IAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"portfolio-collections-v1-collection.public.js","sourceRoot":"","sources":["../../../src/portfolio-collections-v1-collection.public.ts"],"names":[],"mappings":";;;AACA,mHAcyD;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,CACL,GAAkB,EAClB,UAA4B,EAC5B,OAAiC,EACjC,EAAE,CACF,gEAAyB,CACvB,GAAG,EACH,UAAU,EACV,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,4CAaC;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,YAAoB,EAAE,OAAiC,EAAE,EAAE,CACjE,gEAAyB,CACvB,YAAY,EACZ,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,4CAQC;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"}
@@ -9,7 +9,7 @@ export interface Collection {
9
9
  revision?: string | null;
10
10
  title?: string | null;
11
11
  description?: string | null;
12
- /** Url of Collection // TODO: ask Idan */
12
+ /** Url of Collection */
13
13
  slug?: string | null;
14
14
  /** Collection's cover photo */
15
15
  coverImage?: Image;
@@ -36,7 +36,7 @@ export interface Collection {
36
36
  }
37
37
  export interface Image {
38
38
  /** Image info - Wix Media Image. Required. */
39
- imageInfo?: WixCommonImage;
39
+ imageInfo?: CommonImage;
40
40
  /** Focal point of the image. */
41
41
  focalPoint?: Point;
42
42
  /** Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). */
@@ -56,7 +56,7 @@ export declare enum ImageType {
56
56
  WIX_MEDIA = "WIX_MEDIA",
57
57
  EXTERNAL = "EXTERNAL"
58
58
  }
59
- export interface WixCommonImage {
59
+ export interface CommonImage {
60
60
  /** WixMedia image ID. Required. */
61
61
  id?: string;
62
62
  /**
@@ -132,69 +132,6 @@ export interface Settings {
132
132
  /** disable auto creation of 301 redirects on slug changes (enabled by default). */
133
133
  preventAutoRedirect?: boolean;
134
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
135
  export interface InvalidateCache extends InvalidateCacheGetByOneOf {
199
136
  /** tell us why you're invalidating the cache. You don't need to add your app name */
200
137
  reason?: string | null;
@@ -382,3 +319,76 @@ export interface QueryCollectionsResponse {
382
319
  /** Paging metadata */
383
320
  metadata?: PagingMetadataV2;
384
321
  }
322
+ export interface DomainEvent extends DomainEventBodyOneOf {
323
+ /** random GUID so clients can tell if event was already handled */
324
+ id?: string;
325
+ /**
326
+ * Assumes actions are also always typed to an entity_type
327
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
328
+ */
329
+ entityFqdn?: string;
330
+ /**
331
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
332
+ * This is although the created/updated/deleted notion is duplication of the oneof types
333
+ * Example: created/updated/deleted/started/completed/email_opened
334
+ */
335
+ slug?: string;
336
+ /**
337
+ * Assuming that all messages including Actions have id
338
+ * Example: The id of the specific order, the id of a specific campaign
339
+ */
340
+ entityId?: string;
341
+ /** The time of the event. Useful if there was a delay in dispatching */
342
+ eventTime?: Date;
343
+ /**
344
+ * A field that should be set if this event was triggered by an anonymize request.
345
+ * For example you must set it to true when sending an event as a result of a GDPR right to be forgotten request.
346
+ * NOTE: This field is not relevant for `EntityCreatedEvent` but is located here for better ergonomics of consumers.
347
+ */
348
+ triggeredByAnonymizeRequest?: boolean | null;
349
+ /** If present, indicates the action that triggered the event. */
350
+ originatedFrom?: string | null;
351
+ /**
352
+ * A sequence number defining the order of updates to the underlying entity.
353
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
354
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
355
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
356
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
357
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
358
+ */
359
+ entityEventSequence?: string | null;
360
+ createdEvent?: EntityCreatedEvent;
361
+ updatedEvent?: EntityUpdatedEvent;
362
+ deletedEvent?: EntityDeletedEvent;
363
+ actionEvent?: ActionEvent;
364
+ extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
365
+ }
366
+ /** @oneof */
367
+ export interface DomainEventBodyOneOf {
368
+ createdEvent?: EntityCreatedEvent;
369
+ updatedEvent?: EntityUpdatedEvent;
370
+ deletedEvent?: EntityDeletedEvent;
371
+ actionEvent?: ActionEvent;
372
+ extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
373
+ }
374
+ export interface EntityCreatedEvent {
375
+ entityAsJson?: string;
376
+ }
377
+ export interface EntityUpdatedEvent {
378
+ /**
379
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
380
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
381
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
382
+ */
383
+ currentEntityAsJson?: string;
384
+ }
385
+ export interface EntityDeletedEvent {
386
+ }
387
+ export interface ActionEvent {
388
+ bodyAsJson?: string;
389
+ }
390
+ export interface ExtendedFieldsUpdatedEvent {
391
+ currentEntityAsJson?: string;
392
+ }
393
+ export interface Empty {
394
+ }
@@ -1,18 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SortOrder = exports.ImageImageType = exports.ImageType = void 0;
3
+ exports.SortOrder = exports.ImageType = void 0;
4
4
  var ImageType;
5
5
  (function (ImageType) {
6
6
  ImageType["UNDEFINED"] = "UNDEFINED";
7
7
  ImageType["WIX_MEDIA"] = "WIX_MEDIA";
8
8
  ImageType["EXTERNAL"] = "EXTERNAL";
9
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
10
  var SortOrder;
17
11
  (function (SortOrder) {
18
12
  SortOrder["ASC"] = "ASC";
@@ -1 +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"}
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;AAoRD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
@@ -15,10 +15,10 @@ export interface Collection {
15
15
  revision?: string | null;
16
16
  title?: string | null;
17
17
  description?: string | null;
18
- /** Url of Collection // TODO: ask Idan */
18
+ /** Url of Collection */
19
19
  slug?: string | null;
20
20
  /** Collection's cover photo */
21
- coverImage?: Image;
21
+ coverImage?: CommonImage;
22
22
  /** Indicates if the collection is hidden from Portfolio */
23
23
  hidden?: boolean | null;
24
24
  /** if not present in an update it means the collection will be added as currentTimestamp - as the last collection */
@@ -40,11 +40,11 @@ export interface Collection {
40
40
  url?: string;
41
41
  seoData?: SeoSchema;
42
42
  }
43
- export interface Image {
43
+ export interface CommonImage {
44
44
  /** Image info - Wix Media Image. Required. */
45
45
  imageInfo?: string;
46
46
  /** Focal point of the image. */
47
- focalPoint?: Point;
47
+ focalPoint?: CommonPoint;
48
48
  /** Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). */
49
49
  exif?: Record<string, any> | null;
50
50
  /**
@@ -55,20 +55,20 @@ export interface Image {
55
55
  */
56
56
  quality?: number | null;
57
57
  /** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */
58
- unsharpMasking?: UnsharpMasking;
58
+ unsharpMasking?: CommonUnsharpMasking;
59
59
  }
60
- export declare enum ImageType {
60
+ export declare enum ImageImageType {
61
61
  UNDEFINED = "UNDEFINED",
62
62
  WIX_MEDIA = "WIX_MEDIA",
63
63
  EXTERNAL = "EXTERNAL"
64
64
  }
65
- export interface Point {
65
+ export interface CommonPoint {
66
66
  /** X-coordinate of the focal point. */
67
67
  x?: number;
68
68
  /** Y-coordinate of the focal point. */
69
69
  y?: number;
70
70
  }
71
- export interface UnsharpMasking {
71
+ export interface CommonUnsharpMasking {
72
72
  /**
73
73
  * Unsharp masking amount. Controls the sharpening strength. <br />
74
74
  *
@@ -115,52 +115,6 @@ export interface Settings {
115
115
  /** disable auto creation of 301 redirects on slug changes (enabled by default). */
116
116
  preventAutoRedirect?: boolean;
117
117
  }
118
- export interface CommonImage {
119
- /** Image info - Wix Media Image. Required. */
120
- imageInfo?: string;
121
- /** Focal point of the image. */
122
- focalPoint?: CommonPoint;
123
- /** Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). */
124
- exif?: Record<string, any> | null;
125
- /**
126
- * Image compression level. <br />
127
- *
128
- * Min: `30` <br />
129
- * Max: `100`
130
- */
131
- quality?: number | null;
132
- /** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */
133
- unsharpMasking?: CommonUnsharpMasking;
134
- }
135
- export declare enum ImageImageType {
136
- UNDEFINED = "UNDEFINED",
137
- WIX_MEDIA = "WIX_MEDIA",
138
- EXTERNAL = "EXTERNAL"
139
- }
140
- export interface CommonPoint {
141
- /** X-coordinate of the focal point. */
142
- x?: number;
143
- /** Y-coordinate of the focal point. */
144
- y?: number;
145
- }
146
- export interface CommonUnsharpMasking {
147
- /**
148
- * Unsharp masking amount. Controls the sharpening strength. <br />
149
- *
150
- * Min: `0` <br />
151
- * Max: `5`
152
- */
153
- amount?: number | null;
154
- /** Unsharp masking radius in pixels. Controls the sharpening width. */
155
- radius?: number | null;
156
- /**
157
- * Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />
158
- *
159
- * Min: `0` <br />
160
- * Max: `1`
161
- */
162
- threshold?: number | null;
163
- }
164
118
  export interface InvalidateCache extends InvalidateCacheGetByOneOf {
165
119
  /** tell us why you're invalidating the cache. You don't need to add your app name */
166
120
  reason?: string | null;
@@ -348,6 +302,79 @@ export interface QueryCollectionsResponse {
348
302
  /** Paging metadata */
349
303
  metadata?: PagingMetadataV2;
350
304
  }
305
+ export interface DomainEvent extends DomainEventBodyOneOf {
306
+ /** random GUID so clients can tell if event was already handled */
307
+ _id?: string;
308
+ /**
309
+ * Assumes actions are also always typed to an entity_type
310
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
311
+ */
312
+ entityFqdn?: string;
313
+ /**
314
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
315
+ * This is although the created/updated/deleted notion is duplication of the oneof types
316
+ * Example: created/updated/deleted/started/completed/email_opened
317
+ */
318
+ slug?: string;
319
+ /**
320
+ * Assuming that all messages including Actions have id
321
+ * Example: The id of the specific order, the id of a specific campaign
322
+ */
323
+ entityId?: string;
324
+ /** The time of the event. Useful if there was a delay in dispatching */
325
+ eventTime?: Date;
326
+ /**
327
+ * A field that should be set if this event was triggered by an anonymize request.
328
+ * For example you must set it to true when sending an event as a result of a GDPR right to be forgotten request.
329
+ * NOTE: This field is not relevant for `EntityCreatedEvent` but is located here for better ergonomics of consumers.
330
+ */
331
+ triggeredByAnonymizeRequest?: boolean | null;
332
+ /** If present, indicates the action that triggered the event. */
333
+ originatedFrom?: string | null;
334
+ /**
335
+ * A sequence number defining the order of updates to the underlying entity.
336
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
337
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
338
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
339
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
340
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
341
+ */
342
+ entityEventSequence?: string | null;
343
+ createdEvent?: EntityCreatedEvent;
344
+ updatedEvent?: EntityUpdatedEvent;
345
+ deletedEvent?: EntityDeletedEvent;
346
+ actionEvent?: ActionEvent;
347
+ extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
348
+ }
349
+ /** @oneof */
350
+ export interface DomainEventBodyOneOf {
351
+ createdEvent?: EntityCreatedEvent;
352
+ updatedEvent?: EntityUpdatedEvent;
353
+ deletedEvent?: EntityDeletedEvent;
354
+ actionEvent?: ActionEvent;
355
+ extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
356
+ }
357
+ export interface EntityCreatedEvent {
358
+ entityAsJson?: string;
359
+ }
360
+ export interface EntityUpdatedEvent {
361
+ /**
362
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
363
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
364
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
365
+ */
366
+ currentEntityAsJson?: string;
367
+ }
368
+ export interface EntityDeletedEvent {
369
+ }
370
+ export interface ActionEvent {
371
+ bodyAsJson?: string;
372
+ }
373
+ export interface ExtendedFieldsUpdatedEvent {
374
+ currentEntityAsJson?: string;
375
+ }
376
+ export interface Empty {
377
+ }
351
378
  /**
352
379
  * Creates a new Collection
353
380
  * @param collection - Collection to be created
@@ -397,10 +424,10 @@ export interface UpdateCollection {
397
424
  revision?: string | null;
398
425
  title?: string | null;
399
426
  description?: string | null;
400
- /** Url of Collection // TODO: ask Idan */
427
+ /** Url of Collection */
401
428
  slug?: string | null;
402
429
  /** Collection's cover photo */
403
- coverImage?: Image;
430
+ coverImage?: CommonImage;
404
431
  /** Indicates if the collection is hidden from Portfolio */
405
432
  hidden?: boolean | null;
406
433
  /** if not present in an update it means the collection will be added as currentTimestamp - as the last collection */
@@ -440,7 +467,8 @@ export interface DeleteCollectionOptions {
440
467
  /**
441
468
  * Query Collections using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
442
469
  * @public */
443
- export declare function queryCollections(): CollectionsQueryBuilder;
470
+ export declare function queryCollections(options?: QueryCollectionsOptions): CollectionsQueryBuilder;
471
+ export declare type QueryCollectionsOptions = Omit<QueryCollectionsRequest, 'query'>;
444
472
  interface QueryCursorResult {
445
473
  hasNext: () => boolean;
446
474
  hasPrev: () => boolean;