@wix/portfolio 1.0.45 → 1.0.47
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.js +5 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +5 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +5 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.http.js +165 -102
- package/build/cjs/src/portfolio-collections-v1-collection.http.js.map +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.meta.d.ts +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.meta.js +5 -1
- package/build/cjs/src/portfolio-collections-v1-collection.meta.js.map +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.public.d.ts +3 -3
- package/build/cjs/src/portfolio-collections-v1-collection.types.d.ts +8 -7
- package/build/cjs/src/portfolio-collections-v1-collection.types.js +2 -2
- package/build/cjs/src/portfolio-collections-v1-collection.types.js.map +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.universal.d.ts +6 -5
- package/build/cjs/src/portfolio-collections-v1-collection.universal.js +39 -20
- 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 +170 -127
- 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.meta.d.ts +1 -1
- package/build/cjs/src/portfolio-project-items-v1-project-item.meta.js +5 -1
- package/build/cjs/src/portfolio-project-items-v1-project-item.meta.js.map +1 -1
- package/build/cjs/src/portfolio-project-items-v1-project-item.public.d.ts +1 -1
- package/build/cjs/src/portfolio-project-items-v1-project-item.types.d.ts +6 -5
- package/build/cjs/src/portfolio-project-items-v1-project-item.types.js +3 -3
- 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 +6 -5
- package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js +34 -21
- 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.js +111 -77
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.meta.d.ts +1 -1
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.meta.js +5 -1
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.meta.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.d.ts +2 -2
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.d.ts +73 -7
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.js +3 -3
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.d.ts +71 -5
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.js +18 -8
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project.http.js +210 -151
- package/build/cjs/src/portfolio-projects-v1-project.http.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project.meta.d.ts +1 -1
- package/build/cjs/src/portfolio-projects-v1-project.meta.js +5 -1
- package/build/cjs/src/portfolio-projects-v1-project.meta.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project.public.d.ts +3 -3
- package/build/cjs/src/portfolio-projects-v1-project.types.d.ts +15 -8
- package/build/cjs/src/portfolio-projects-v1-project.types.js +13 -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 +13 -6
- package/build/cjs/src/portfolio-projects-v1-project.universal.js +50 -25
- package/build/cjs/src/portfolio-projects-v1-project.universal.js.map +1 -1
- package/build/es/src/portfolio-collections-v1-collection.http.js +165 -102
- package/build/es/src/portfolio-collections-v1-collection.http.js.map +1 -1
- package/build/es/src/portfolio-collections-v1-collection.meta.d.ts +1 -1
- package/build/es/src/portfolio-collections-v1-collection.public.d.ts +3 -3
- package/build/es/src/portfolio-collections-v1-collection.types.d.ts +8 -7
- package/build/es/src/portfolio-collections-v1-collection.types.js.map +1 -1
- package/build/es/src/portfolio-collections-v1-collection.universal.d.ts +6 -5
- package/build/es/src/portfolio-collections-v1-collection.universal.js +32 -17
- 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 +170 -127
- 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.meta.d.ts +1 -1
- package/build/es/src/portfolio-project-items-v1-project-item.public.d.ts +1 -1
- package/build/es/src/portfolio-project-items-v1-project-item.types.d.ts +6 -5
- package/build/es/src/portfolio-project-items-v1-project-item.universal.d.ts +6 -5
- package/build/es/src/portfolio-project-items-v1-project-item.universal.js +27 -18
- 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.js +111 -77
- package/build/es/src/portfolio-projects-v1-project-in-collection.http.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project-in-collection.meta.d.ts +1 -1
- package/build/es/src/portfolio-projects-v1-project-in-collection.public.d.ts +2 -2
- package/build/es/src/portfolio-projects-v1-project-in-collection.types.d.ts +73 -7
- package/build/es/src/portfolio-projects-v1-project-in-collection.universal.d.ts +71 -5
- package/build/es/src/portfolio-projects-v1-project-in-collection.universal.js +10 -4
- package/build/es/src/portfolio-projects-v1-project-in-collection.universal.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project.http.js +210 -151
- package/build/es/src/portfolio-projects-v1-project.http.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project.meta.d.ts +1 -1
- package/build/es/src/portfolio-projects-v1-project.public.d.ts +3 -3
- package/build/es/src/portfolio-projects-v1-project.types.d.ts +15 -8
- package/build/es/src/portfolio-projects-v1-project.types.js +6 -0
- package/build/es/src/portfolio-projects-v1-project.types.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project.universal.d.ts +13 -6
- package/build/es/src/portfolio-projects-v1-project.universal.js +38 -17
- package/build/es/src/portfolio-projects-v1-project.universal.js.map +1 -1
- package/package.json +7 -8
|
@@ -184,9 +184,9 @@ export declare enum SyncStatus {
|
|
|
184
184
|
NOT_SYNCED = "NOT_SYNCED"
|
|
185
185
|
}
|
|
186
186
|
export interface PageUrlV2 {
|
|
187
|
-
/** The path
|
|
187
|
+
/** The relative path for the page within the site. For example, `/product-page/a-product`. */
|
|
188
188
|
relativePath?: string;
|
|
189
|
-
/** The
|
|
189
|
+
/** The page's full URL. For example, `https://mysite.com/product-page/a-product`. */
|
|
190
190
|
url?: string | null;
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
@@ -292,13 +292,12 @@ export interface Paging {
|
|
|
292
292
|
offset?: number | null;
|
|
293
293
|
}
|
|
294
294
|
export interface CursorPaging {
|
|
295
|
-
/**
|
|
295
|
+
/** Maximum number of items to return in the results. */
|
|
296
296
|
limit?: number | null;
|
|
297
297
|
/**
|
|
298
298
|
* Pointer to the next or previous page in the list of results.
|
|
299
299
|
*
|
|
300
|
-
*
|
|
301
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
300
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
302
301
|
* Not relevant for the first request.
|
|
303
302
|
*/
|
|
304
303
|
cursor?: string | null;
|
|
@@ -322,9 +321,9 @@ export interface PagingMetadataV2 {
|
|
|
322
321
|
cursors?: Cursors;
|
|
323
322
|
}
|
|
324
323
|
export interface Cursors {
|
|
325
|
-
/** Cursor pointing to next page in the list of results. */
|
|
324
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
326
325
|
next?: string | null;
|
|
327
|
-
/** Cursor pointing to previous page in the list of results. */
|
|
326
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
328
327
|
prev?: string | null;
|
|
329
328
|
}
|
|
330
329
|
export interface UpdateProjectOrderInCollectionRequest {
|
|
@@ -347,6 +346,73 @@ export interface ProjectOrderInCollectionUpdatedEvent {
|
|
|
347
346
|
/** The new sort order of the project in the given collection */
|
|
348
347
|
sortOrder?: number | null;
|
|
349
348
|
}
|
|
349
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
350
|
+
createdEvent?: EntityCreatedEvent;
|
|
351
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
352
|
+
deletedEvent?: EntityDeletedEvent;
|
|
353
|
+
actionEvent?: ActionEvent;
|
|
354
|
+
/**
|
|
355
|
+
* Unique event ID.
|
|
356
|
+
* Allows clients to ignore duplicate webhooks.
|
|
357
|
+
*/
|
|
358
|
+
id?: string;
|
|
359
|
+
/**
|
|
360
|
+
* Assumes actions are also always typed to an entity_type
|
|
361
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
362
|
+
*/
|
|
363
|
+
entityFqdn?: string;
|
|
364
|
+
/**
|
|
365
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
366
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
367
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
368
|
+
*/
|
|
369
|
+
slug?: string;
|
|
370
|
+
/** ID of the entity associated with the event. */
|
|
371
|
+
entityId?: string;
|
|
372
|
+
/** Event timestamp. */
|
|
373
|
+
eventTime?: Date;
|
|
374
|
+
/**
|
|
375
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
376
|
+
* (for example, GDPR).
|
|
377
|
+
*/
|
|
378
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
379
|
+
/** If present, indicates the action that triggered the event. */
|
|
380
|
+
originatedFrom?: string | null;
|
|
381
|
+
/**
|
|
382
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
383
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
384
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
385
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
386
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
387
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
388
|
+
*/
|
|
389
|
+
entityEventSequence?: string | null;
|
|
390
|
+
}
|
|
391
|
+
/** @oneof */
|
|
392
|
+
export interface DomainEventBodyOneOf {
|
|
393
|
+
createdEvent?: EntityCreatedEvent;
|
|
394
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
395
|
+
deletedEvent?: EntityDeletedEvent;
|
|
396
|
+
actionEvent?: ActionEvent;
|
|
397
|
+
}
|
|
398
|
+
export interface EntityCreatedEvent {
|
|
399
|
+
entityAsJson?: string;
|
|
400
|
+
}
|
|
401
|
+
export interface EntityUpdatedEvent {
|
|
402
|
+
/**
|
|
403
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
404
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
405
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
406
|
+
*/
|
|
407
|
+
currentEntityAsJson?: string;
|
|
408
|
+
}
|
|
409
|
+
export interface EntityDeletedEvent {
|
|
410
|
+
/** Entity that was deleted */
|
|
411
|
+
deletedEntityAsJson?: string | null;
|
|
412
|
+
}
|
|
413
|
+
export interface ActionEvent {
|
|
414
|
+
bodyAsJson?: string;
|
|
415
|
+
}
|
|
350
416
|
export interface QueryProjectInCollectionsResponseNonNullableFields {
|
|
351
417
|
projectInCollections: {
|
|
352
418
|
collectionId: string;
|
|
@@ -6,16 +6,16 @@ var ImageType;
|
|
|
6
6
|
ImageType["UNDEFINED"] = "UNDEFINED";
|
|
7
7
|
ImageType["WIX_MEDIA"] = "WIX_MEDIA";
|
|
8
8
|
ImageType["EXTERNAL"] = "EXTERNAL";
|
|
9
|
-
})(ImageType
|
|
9
|
+
})(ImageType || (exports.ImageType = ImageType = {}));
|
|
10
10
|
var SyncStatus;
|
|
11
11
|
(function (SyncStatus) {
|
|
12
12
|
SyncStatus["SYNCED"] = "SYNCED";
|
|
13
13
|
SyncStatus["SYNCING"] = "SYNCING";
|
|
14
14
|
SyncStatus["NOT_SYNCED"] = "NOT_SYNCED";
|
|
15
|
-
})(SyncStatus
|
|
15
|
+
})(SyncStatus || (exports.SyncStatus = SyncStatus = {}));
|
|
16
16
|
var SortOrder;
|
|
17
17
|
(function (SortOrder) {
|
|
18
18
|
SortOrder["ASC"] = "ASC";
|
|
19
19
|
SortOrder["DESC"] = "DESC";
|
|
20
|
-
})(SortOrder
|
|
20
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
21
21
|
//# sourceMappingURL=portfolio-projects-v1-project-in-collection.types.js.map
|
|
@@ -1 +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":";;;AAwEA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;AACvB,CAAC,EAJW,SAAS,
|
|
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":";;;AAwEA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;AACvB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAuHD,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,uCAAyB,CAAA;AAC3B,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AA6GD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
|
|
@@ -263,13 +263,12 @@ export interface Paging {
|
|
|
263
263
|
offset?: number | null;
|
|
264
264
|
}
|
|
265
265
|
export interface CursorPaging {
|
|
266
|
-
/**
|
|
266
|
+
/** Maximum number of items to return in the results. */
|
|
267
267
|
limit?: number | null;
|
|
268
268
|
/**
|
|
269
269
|
* Pointer to the next or previous page in the list of results.
|
|
270
270
|
*
|
|
271
|
-
*
|
|
272
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
271
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
273
272
|
* Not relevant for the first request.
|
|
274
273
|
*/
|
|
275
274
|
cursor?: string | null;
|
|
@@ -293,9 +292,9 @@ export interface PagingMetadataV2 {
|
|
|
293
292
|
cursors?: Cursors;
|
|
294
293
|
}
|
|
295
294
|
export interface Cursors {
|
|
296
|
-
/** Cursor pointing to next page in the list of results. */
|
|
295
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
297
296
|
next?: string | null;
|
|
298
|
-
/** Cursor pointing to previous page in the list of results. */
|
|
297
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
299
298
|
prev?: string | null;
|
|
300
299
|
}
|
|
301
300
|
export interface UpdateProjectOrderInCollectionRequest {
|
|
@@ -318,6 +317,73 @@ export interface ProjectOrderInCollectionUpdatedEvent {
|
|
|
318
317
|
/** The new sort order of the project in the given collection */
|
|
319
318
|
sortOrder?: number | null;
|
|
320
319
|
}
|
|
320
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
321
|
+
createdEvent?: EntityCreatedEvent;
|
|
322
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
323
|
+
deletedEvent?: EntityDeletedEvent;
|
|
324
|
+
actionEvent?: ActionEvent;
|
|
325
|
+
/**
|
|
326
|
+
* Unique event ID.
|
|
327
|
+
* Allows clients to ignore duplicate webhooks.
|
|
328
|
+
*/
|
|
329
|
+
_id?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Assumes actions are also always typed to an entity_type
|
|
332
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
333
|
+
*/
|
|
334
|
+
entityFqdn?: string;
|
|
335
|
+
/**
|
|
336
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
337
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
338
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
339
|
+
*/
|
|
340
|
+
slug?: string;
|
|
341
|
+
/** ID of the entity associated with the event. */
|
|
342
|
+
entityId?: string;
|
|
343
|
+
/** Event timestamp. */
|
|
344
|
+
eventTime?: Date;
|
|
345
|
+
/**
|
|
346
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
347
|
+
* (for example, GDPR).
|
|
348
|
+
*/
|
|
349
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
350
|
+
/** If present, indicates the action that triggered the event. */
|
|
351
|
+
originatedFrom?: string | null;
|
|
352
|
+
/**
|
|
353
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
354
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
355
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
356
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
357
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
358
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
359
|
+
*/
|
|
360
|
+
entityEventSequence?: string | null;
|
|
361
|
+
}
|
|
362
|
+
/** @oneof */
|
|
363
|
+
export interface DomainEventBodyOneOf {
|
|
364
|
+
createdEvent?: EntityCreatedEvent;
|
|
365
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
366
|
+
deletedEvent?: EntityDeletedEvent;
|
|
367
|
+
actionEvent?: ActionEvent;
|
|
368
|
+
}
|
|
369
|
+
export interface EntityCreatedEvent {
|
|
370
|
+
entityAsJson?: string;
|
|
371
|
+
}
|
|
372
|
+
export interface EntityUpdatedEvent {
|
|
373
|
+
/**
|
|
374
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
375
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
376
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
377
|
+
*/
|
|
378
|
+
currentEntityAsJson?: string;
|
|
379
|
+
}
|
|
380
|
+
export interface EntityDeletedEvent {
|
|
381
|
+
/** Entity that was deleted */
|
|
382
|
+
deletedEntityAsJson?: string | null;
|
|
383
|
+
}
|
|
384
|
+
export interface ActionEvent {
|
|
385
|
+
bodyAsJson?: string;
|
|
386
|
+
}
|
|
321
387
|
export interface QueryProjectInCollectionsResponseNonNullableFields {
|
|
322
388
|
projectInCollections: {
|
|
323
389
|
collectionId: string;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -30,6 +34,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
35
|
exports.updateProjectOrderInCollection = exports.queryProjectInCollections = exports.SortOrder = exports.SyncStatus = exports.ImageType = exports.__debug = void 0;
|
|
32
36
|
const velo_1 = require("@wix/metro-runtime/velo");
|
|
37
|
+
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
33
38
|
const ambassadorWixPortfolioProjectsV1ProjectInCollection = __importStar(require("./portfolio-projects-v1-project-in-collection.http"));
|
|
34
39
|
// @ts-ignore
|
|
35
40
|
const motion_edm_autogen_query_wrapper_1 = require("@wix/motion-edm-autogen-query-wrapper");
|
|
@@ -53,18 +58,18 @@ var ImageType;
|
|
|
53
58
|
ImageType["UNDEFINED"] = "UNDEFINED";
|
|
54
59
|
ImageType["WIX_MEDIA"] = "WIX_MEDIA";
|
|
55
60
|
ImageType["EXTERNAL"] = "EXTERNAL";
|
|
56
|
-
})(ImageType
|
|
61
|
+
})(ImageType || (exports.ImageType = ImageType = {}));
|
|
57
62
|
var SyncStatus;
|
|
58
63
|
(function (SyncStatus) {
|
|
59
64
|
SyncStatus["SYNCED"] = "SYNCED";
|
|
60
65
|
SyncStatus["SYNCING"] = "SYNCING";
|
|
61
66
|
SyncStatus["NOT_SYNCED"] = "NOT_SYNCED";
|
|
62
|
-
})(SyncStatus
|
|
67
|
+
})(SyncStatus || (exports.SyncStatus = SyncStatus = {}));
|
|
63
68
|
var SortOrder;
|
|
64
69
|
(function (SortOrder) {
|
|
65
70
|
SortOrder["ASC"] = "ASC";
|
|
66
71
|
SortOrder["DESC"] = "DESC";
|
|
67
|
-
})(SortOrder
|
|
72
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
68
73
|
const _image = { imageInfo: 'wix.common.Image' };
|
|
69
74
|
const _project = {
|
|
70
75
|
url: 'wix.common.PageUrlV2',
|
|
@@ -196,10 +201,15 @@ function updateProjectOrderInCollection(identifiers, sortOrder) {
|
|
|
196
201
|
return fromJSON(result.data);
|
|
197
202
|
}
|
|
198
203
|
catch (err) {
|
|
199
|
-
const transformedError = (0,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
204
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
205
|
+
spreadPathsToArguments: {},
|
|
206
|
+
explicitPathsToArguments: {
|
|
207
|
+
projectId: '$[0].projectId',
|
|
208
|
+
collectionId: '$[0].collectionId',
|
|
209
|
+
sortOrder: '$[1]',
|
|
210
|
+
},
|
|
211
|
+
singleArgumentUnchanged: false,
|
|
212
|
+
}, ['identifiers', 'sortOrder']);
|
|
203
213
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
204
214
|
throw transformedError;
|
|
205
215
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolio-projects-v1-project-in-collection.universal.js","sourceRoot":"","sources":["../../../src/portfolio-projects-v1-project-in-collection.universal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"portfolio-projects-v1-project-in-collection.universal.js","sourceRoot":"","sources":["../../../src/portfolio-projects-v1-project-in-collection.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AACjC,sEAAuF;AAEvF,wIAA0H;AAC1H,aAAa;AACb,4FAA6E;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG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