@wix/portfolio 1.0.9 → 1.0.11

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 (97) hide show
  1. package/build/cjs/index.d.ts +2 -1
  2. package/build/cjs/index.js +3 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/src/portfolio-collections-v1-collection.http.js +26 -26
  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 -2
  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 +27 -33
  10. package/build/cjs/src/portfolio-collections-v1-collection.types.js +7 -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 +50 -38
  13. package/build/cjs/src/portfolio-collections-v1-collection.universal.js +65 -35
  14. package/build/cjs/src/portfolio-collections-v1-collection.universal.js.map +1 -1
  15. package/build/cjs/src/portfolio-project-items-v1-project-item.http.js +21 -9
  16. package/build/cjs/src/portfolio-project-items-v1-project-item.http.js.map +1 -1
  17. package/build/cjs/src/portfolio-project-items-v1-project-item.public.d.ts +8 -8
  18. package/build/cjs/src/portfolio-project-items-v1-project-item.public.js +4 -4
  19. package/build/cjs/src/portfolio-project-items-v1-project-item.public.js.map +1 -1
  20. package/build/cjs/src/portfolio-project-items-v1-project-item.types.d.ts +28 -34
  21. package/build/cjs/src/portfolio-project-items-v1-project-item.types.js.map +1 -1
  22. package/build/cjs/src/portfolio-project-items-v1-project-item.universal.d.ts +57 -74
  23. package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js +112 -70
  24. package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js.map +1 -1
  25. package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.d.ts +14 -0
  26. package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.js +181 -0
  27. package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.js.map +1 -0
  28. package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.d.ts +6 -0
  29. package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.js +22 -0
  30. package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.js.map +1 -0
  31. package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.d.ts +338 -0
  32. package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.js +28 -0
  33. package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.js.map +1 -0
  34. package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.d.ts +397 -0
  35. package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.js +214 -0
  36. package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.js.map +1 -0
  37. package/build/cjs/src/portfolio-projects-v1-project.http.d.ts +1 -13
  38. package/build/cjs/src/portfolio-projects-v1-project.http.js +57 -121
  39. package/build/cjs/src/portfolio-projects-v1-project.http.js.map +1 -1
  40. package/build/cjs/src/portfolio-projects-v1-project.public.d.ts +8 -10
  41. package/build/cjs/src/portfolio-projects-v1-project.public.js +5 -17
  42. package/build/cjs/src/portfolio-projects-v1-project.public.js.map +1 -1
  43. package/build/cjs/src/portfolio-projects-v1-project.types.d.ts +188 -136
  44. package/build/cjs/src/portfolio-projects-v1-project.types.js +14 -17
  45. package/build/cjs/src/portfolio-projects-v1-project.types.js.map +1 -1
  46. package/build/cjs/src/portfolio-projects-v1-project.universal.d.ts +192 -218
  47. package/build/cjs/src/portfolio-projects-v1-project.universal.js +86 -179
  48. package/build/cjs/src/portfolio-projects-v1-project.universal.js.map +1 -1
  49. package/build/es/index.d.ts +2 -1
  50. package/build/es/index.js +2 -1
  51. package/build/es/index.js.map +1 -1
  52. package/build/es/src/portfolio-collections-v1-collection.http.js +26 -26
  53. package/build/es/src/portfolio-collections-v1-collection.http.js.map +1 -1
  54. package/build/es/src/portfolio-collections-v1-collection.public.d.ts +4 -4
  55. package/build/es/src/portfolio-collections-v1-collection.public.js +2 -2
  56. package/build/es/src/portfolio-collections-v1-collection.public.js.map +1 -1
  57. package/build/es/src/portfolio-collections-v1-collection.types.d.ts +27 -33
  58. package/build/es/src/portfolio-collections-v1-collection.types.js +6 -6
  59. package/build/es/src/portfolio-collections-v1-collection.types.js.map +1 -1
  60. package/build/es/src/portfolio-collections-v1-collection.universal.d.ts +50 -38
  61. package/build/es/src/portfolio-collections-v1-collection.universal.js +65 -35
  62. package/build/es/src/portfolio-collections-v1-collection.universal.js.map +1 -1
  63. package/build/es/src/portfolio-project-items-v1-project-item.http.js +21 -9
  64. package/build/es/src/portfolio-project-items-v1-project-item.http.js.map +1 -1
  65. package/build/es/src/portfolio-project-items-v1-project-item.public.d.ts +8 -8
  66. package/build/es/src/portfolio-project-items-v1-project-item.public.js +4 -4
  67. package/build/es/src/portfolio-project-items-v1-project-item.public.js.map +1 -1
  68. package/build/es/src/portfolio-project-items-v1-project-item.types.d.ts +28 -34
  69. package/build/es/src/portfolio-project-items-v1-project-item.types.js.map +1 -1
  70. package/build/es/src/portfolio-project-items-v1-project-item.universal.d.ts +57 -74
  71. package/build/es/src/portfolio-project-items-v1-project-item.universal.js +112 -70
  72. package/build/es/src/portfolio-project-items-v1-project-item.universal.js.map +1 -1
  73. package/build/es/src/portfolio-projects-v1-project-in-collection.http.d.ts +14 -0
  74. package/build/es/src/portfolio-projects-v1-project-in-collection.http.js +176 -0
  75. package/build/es/src/portfolio-projects-v1-project-in-collection.http.js.map +1 -0
  76. package/build/es/src/portfolio-projects-v1-project-in-collection.public.d.ts +6 -0
  77. package/build/es/src/portfolio-projects-v1-project-in-collection.public.js +13 -0
  78. package/build/es/src/portfolio-projects-v1-project-in-collection.public.js.map +1 -0
  79. package/build/es/src/portfolio-projects-v1-project-in-collection.types.d.ts +338 -0
  80. package/build/es/src/portfolio-projects-v1-project-in-collection.types.js +25 -0
  81. package/build/es/src/portfolio-projects-v1-project-in-collection.types.js.map +1 -0
  82. package/build/es/src/portfolio-projects-v1-project-in-collection.universal.d.ts +397 -0
  83. package/build/es/src/portfolio-projects-v1-project-in-collection.universal.js +190 -0
  84. package/build/es/src/portfolio-projects-v1-project-in-collection.universal.js.map +1 -0
  85. package/build/es/src/portfolio-projects-v1-project.http.d.ts +1 -13
  86. package/build/es/src/portfolio-projects-v1-project.http.js +56 -118
  87. package/build/es/src/portfolio-projects-v1-project.http.js.map +1 -1
  88. package/build/es/src/portfolio-projects-v1-project.public.d.ts +8 -10
  89. package/build/es/src/portfolio-projects-v1-project.public.js +5 -15
  90. package/build/es/src/portfolio-projects-v1-project.public.js.map +1 -1
  91. package/build/es/src/portfolio-projects-v1-project.types.d.ts +188 -136
  92. package/build/es/src/portfolio-projects-v1-project.types.js +13 -16
  93. package/build/es/src/portfolio-projects-v1-project.types.js.map +1 -1
  94. package/build/es/src/portfolio-projects-v1-project.universal.d.ts +192 -218
  95. package/build/es/src/portfolio-projects-v1-project.universal.js +85 -176
  96. package/build/es/src/portfolio-projects-v1-project.universal.js.map +1 -1
  97. package/package.json +2 -2
@@ -5,7 +5,7 @@ export declare const __debug: {
5
5
  };
6
6
  };
7
7
  /** Project is the main entity of ProjectsService */
8
- export interface Project {
8
+ export interface Project extends ProjectCoverOneOf {
9
9
  /**
10
10
  * Project ID
11
11
  * @readonly
@@ -13,14 +13,10 @@ export interface Project {
13
13
  _id?: string | null;
14
14
  /** Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision */
15
15
  revision?: string | null;
16
- /** Project name */
17
16
  title?: string | null;
18
- /** Project description */
19
17
  description?: string | null;
20
18
  /** indicates if the project should be hidden from Portfolio */
21
19
  hidden?: boolean | null;
22
- /** project's cover photo */
23
- coverImage?: CommonImage;
24
20
  /** Collections must exist to be added to a project. can be created/updated/deleted using this //TODO */
25
21
  collectionIds?: string[];
26
22
  /** Custom project details */
@@ -42,23 +38,28 @@ export interface Project {
42
38
  */
43
39
  url?: string;
44
40
  seoData?: SeoSchema;
41
+ /**
42
+ * indicates if the project is synced from external platform (via integration page) and therefore will be updated from the external platform on daily basis
43
+ * @readonly
44
+ */
45
+ syncedProject?: boolean | null;
46
+ /** project's cover photo */
47
+ coverImage?: CommonImage;
48
+ /** project's cover video */
49
+ coverVideo?: Video;
50
+ }
51
+ /** @oneof */
52
+ export interface ProjectCoverOneOf {
53
+ /** project's cover photo */
54
+ coverImage?: CommonImage;
55
+ /** project's cover video */
56
+ coverVideo?: Video;
45
57
  }
46
58
  export interface CommonImage {
47
- /** Image info - Wix Media Image. Required. */
59
+ /** Image info - Wix Media Image. */
48
60
  imageInfo?: string;
49
61
  /** Focal point of the image. */
50
62
  focalPoint?: CommonPoint;
51
- /** Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). */
52
- exif?: Record<string, any> | null;
53
- /**
54
- * Image compression level. <br />
55
- *
56
- * Min: `30` <br />
57
- * Max: `100`
58
- */
59
- quality?: number | null;
60
- /** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */
61
- unsharpMasking?: CommonUnsharpMasking;
62
63
  }
63
64
  export declare enum ImageImageType {
64
65
  UNDEFINED = "UNDEFINED",
@@ -89,35 +90,46 @@ export interface CommonUnsharpMasking {
89
90
  */
90
91
  threshold?: number | null;
91
92
  }
93
+ export interface Video {
94
+ /** Video info - Wix Media Image. */
95
+ videoInfo?: string;
96
+ /** Manually defined Video duration in milliseconds. */
97
+ durationInMillis?: number | null;
98
+ }
99
+ export declare enum VideoType {
100
+ UNDEFINED = "UNDEFINED",
101
+ WIX_MEDIA = "WIX_MEDIA",
102
+ YOUTUBE = "YOUTUBE",
103
+ VIMEO = "VIMEO"
104
+ }
105
+ export interface VideoResolution {
106
+ /** Video URL. Required. */
107
+ url?: string;
108
+ /** Video height. Required. */
109
+ height?: number;
110
+ /** Video width. Required. */
111
+ width?: number;
112
+ /** Video format for example, mp4, hls. Required. */
113
+ format?: string;
114
+ /** Video quality for example 480p, 720p. */
115
+ quality?: string | null;
116
+ /** Video filename. */
117
+ filename?: string | null;
118
+ }
92
119
  export interface ProjectDetail extends ProjectDetailValueOneOf {
93
- /** key of the detail field from predefined list */
94
- key?: Key;
95
- /** display label of the key */
96
120
  label?: string;
97
- /** text value */
98
121
  text?: string;
99
- /** number value */
100
- number?: number;
101
- /** date value */
102
- date?: Date;
122
+ link?: DetailsLink;
103
123
  }
104
124
  /** @oneof */
105
125
  export interface ProjectDetailValueOneOf {
106
- /** text value */
107
126
  text?: string;
108
- /** number value */
109
- number?: number;
110
- /** date value */
111
- date?: Date;
127
+ link?: DetailsLink;
112
128
  }
113
- export declare enum Key {
114
- UNDEFINED = "UNDEFINED",
115
- ROLE = "ROLE",
116
- LOCATION = "LOCATION",
117
- DATE = "DATE",
118
- CUSTOM = "CUSTOM",
119
- /** examples of values: "real estate", "photography" */
120
- PROJECT_TYPE = "PROJECT_TYPE"
129
+ export interface DetailsLink {
130
+ text?: string | null;
131
+ /** link to external source */
132
+ url?: string | null;
121
133
  }
122
134
  export interface ProjectSource {
123
135
  appDefId?: string;
@@ -149,13 +161,21 @@ export interface SeoSchema {
149
161
  settings?: Settings;
150
162
  }
151
163
  export interface Tag {
152
- /** SEO tag type. Supported values: `title`, `meta`, `script`, `link`. */
164
+ /**
165
+ * SEO tag type.
166
+ *
167
+ *
168
+ * Supported values: `title`, `meta`, `script`, `link`.
169
+ */
153
170
  type?: string;
154
- /** SEO tag attributes/properties (name, content, rel, href). */
171
+ /**
172
+ * A `{'key':'value'} pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
173
+ * For example: `{'name': 'description', 'content': 'the description itself'}`.
174
+ */
155
175
  props?: Record<string, any> | null;
156
- /** Tag meta data, e.g. {height: 300, width: 240}. */
176
+ /** SEO tag meta data. For example, `{height: 300, width: 240}`. */
157
177
  meta?: Record<string, any> | null;
158
- /** Tag inner content e.g. `<title> inner content </title>`. */
178
+ /** SEO tag inner content. For example, `<title> inner content </title>`. */
159
179
  children?: string;
160
180
  /** Whether the tag is a custom tag. */
161
181
  custom?: boolean;
@@ -163,7 +183,12 @@ export interface Tag {
163
183
  disabled?: boolean;
164
184
  }
165
185
  export interface Settings {
166
- /** disable auto creation of 301 redirects on slug changes (enabled by default). */
186
+ /**
187
+ * Whether the auto redirects feature creating `301 redirects` on a slug change is enabled.
188
+ *
189
+ *
190
+ * Default: enabled
191
+ */
167
192
  preventAutoRedirect?: boolean;
168
193
  }
169
194
  export interface GetProjectPageDataRequest {
@@ -374,6 +399,102 @@ export interface NamespaceChanged {
374
399
  }
375
400
  export interface Empty {
376
401
  }
402
+ export interface HtmlSitePublished {
403
+ /** Application instance ID */
404
+ appInstanceId?: string;
405
+ /** Application type */
406
+ appType?: string;
407
+ /** Revision */
408
+ revision?: string;
409
+ /** MSID */
410
+ metaSiteId?: string | null;
411
+ /** optional branch id if publish is done from branch */
412
+ branchId?: string | null;
413
+ /** The site's last transactionId */
414
+ lastTransactionId?: string | null;
415
+ /** A list of the site's pages */
416
+ pages?: EventsPage[];
417
+ /** Site's publish date */
418
+ publishDate?: string;
419
+ }
420
+ export interface EventsPage {
421
+ /** Page's Id */
422
+ _id?: string;
423
+ }
424
+ export interface DomainEvent extends DomainEventBodyOneOf {
425
+ /** random GUID so clients can tell if event was already handled */
426
+ _id?: string;
427
+ /**
428
+ * Assumes actions are also always typed to an entity_type
429
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
430
+ */
431
+ entityFqdn?: string;
432
+ /**
433
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
434
+ * This is although the created/updated/deleted notion is duplication of the oneof types
435
+ * Example: created/updated/deleted/started/completed/email_opened
436
+ */
437
+ slug?: string;
438
+ /**
439
+ * Assuming that all messages including Actions have id
440
+ * Example: The id of the specific order, the id of a specific campaign
441
+ */
442
+ entityId?: string;
443
+ /** The time of the event. Useful if there was a delay in dispatching */
444
+ eventTime?: Date;
445
+ /**
446
+ * A field that should be set if this event was triggered by an anonymize request.
447
+ * For example you must set it to true when sending an event as a result of a GDPR right to be forgotten request.
448
+ * NOTE: This field is not relevant for `EntityCreatedEvent` but is located here for better ergonomics of consumers.
449
+ */
450
+ triggeredByAnonymizeRequest?: boolean | null;
451
+ /** If present, indicates the action that triggered the event. */
452
+ originatedFrom?: string | null;
453
+ /**
454
+ * A sequence number defining the order of updates to the underlying entity.
455
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
456
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
457
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
458
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
459
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
460
+ */
461
+ entityEventSequence?: string | null;
462
+ createdEvent?: EntityCreatedEvent;
463
+ updatedEvent?: EntityUpdatedEvent;
464
+ deletedEvent?: EntityDeletedEvent;
465
+ actionEvent?: ActionEvent;
466
+ extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
467
+ }
468
+ /** @oneof */
469
+ export interface DomainEventBodyOneOf {
470
+ createdEvent?: EntityCreatedEvent;
471
+ updatedEvent?: EntityUpdatedEvent;
472
+ deletedEvent?: EntityDeletedEvent;
473
+ actionEvent?: ActionEvent;
474
+ extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
475
+ }
476
+ export interface EntityCreatedEvent {
477
+ entityAsJson?: string;
478
+ }
479
+ export interface EntityUpdatedEvent {
480
+ /**
481
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
482
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
483
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
484
+ */
485
+ currentEntityAsJson?: string;
486
+ }
487
+ export interface EntityDeletedEvent {
488
+ }
489
+ export interface ActionEvent {
490
+ bodyAsJson?: string;
491
+ }
492
+ export interface ExtendedFieldsUpdatedEvent {
493
+ currentEntityAsJson?: string;
494
+ }
495
+ export interface AdminUpdatePortfolioMenuResponse {
496
+ response?: string | null;
497
+ }
377
498
  export interface InvalidateCache extends InvalidateCacheGetByOneOf {
378
499
  /** tell us why you're invalidating the cache. You don't need to add your app name */
379
500
  reason?: string | null;
@@ -459,8 +580,6 @@ export interface ListProjectsResponse {
459
580
  /** The retrieved Projects */
460
581
  projects?: Project[];
461
582
  /** Paging metadata */
462
- pagingMetadataV2?: PagingMetadataV2;
463
- /** Paging metadata */
464
583
  metadata?: PagingMetadataV2;
465
584
  }
466
585
  export interface PagingMetadataV2 {
@@ -484,8 +603,6 @@ export interface Cursors {
484
603
  export interface UpdateProjectRequest {
485
604
  /** Project to be updated, may be partial */
486
605
  project: Project;
487
- /** Explicit list of fields to update */
488
- mask?: string[];
489
606
  }
490
607
  export interface UpdateProjectResponse {
491
608
  /** The updated Project */
@@ -494,8 +611,6 @@ export interface UpdateProjectResponse {
494
611
  export interface DeleteProjectRequest {
495
612
  /** Id of the Project to delete */
496
613
  projectId: string;
497
- /** The revision of the Project */
498
- revision?: string;
499
614
  }
500
615
  export interface DeleteProjectResponse {
501
616
  /** Id of the deleted Project */
@@ -557,21 +672,19 @@ export interface QueryProjectsResponse {
557
672
  /** The retrieved Projects */
558
673
  projects?: Project[];
559
674
  /** Paging metadata */
560
- pagingMetadataV2?: PagingMetadataV2;
561
- /** Paging metadata */
562
675
  metadata?: PagingMetadataV2;
563
676
  }
564
677
  export interface UpdateProjectOrderInCollectionRequest {
565
678
  /** Id of the Project to update its order */
566
- projectId: string;
679
+ projectId?: string;
567
680
  /** Id of the collection in which the project will be re-ordered */
568
- collectionId: string;
681
+ collectionId?: string;
569
682
  /** The new sort order of the project in the given collection */
570
- sortOrder: number | null;
683
+ sortOrder?: number | null;
571
684
  }
572
685
  export interface UpdateProjectOrderInCollectionResponse {
573
686
  /** project with new sort order set */
574
- project?: ProjectInCollection;
687
+ projectInCollection?: ProjectInCollection;
575
688
  }
576
689
  export interface ProjectInCollection {
577
690
  /** Collection ID */
@@ -591,113 +704,42 @@ export interface ProjectOrderInCollectionUpdatedEvent {
591
704
  }
592
705
  export interface QueryProjectWithCollectionInfoRequest {
593
706
  /** WQL expression */
594
- query: QueryV2;
707
+ query?: QueryV2;
595
708
  includePageUrl?: boolean | null;
596
709
  }
597
710
  export interface QueryProjectWithCollectionInfoResponse {
598
711
  /** The retrieved Projects in Collection */
599
712
  projects?: ProjectInCollection[];
600
713
  /** Paging metadata */
601
- pagingMetadataV2?: PagingMetadataV2;
602
- /** Paging metadata */
603
714
  metadata?: PagingMetadataV2;
604
715
  }
605
- export interface DomainEvent extends DomainEventBodyOneOf {
606
- /** random GUID so clients can tell if event was already handled */
607
- _id?: string;
608
- /**
609
- * Assumes actions are also always typed to an entity_type
610
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
611
- */
612
- entityFqdn?: string;
613
- /**
614
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
615
- * This is although the created/updated/deleted notion is duplication of the oneof types
616
- * Example: created/updated/deleted/started/completed/email_opened
617
- */
618
- slug?: string;
619
- /**
620
- * Assuming that all messages including Actions have id
621
- * Example: The id of the specific order, the id of a specific campaign
622
- */
623
- entityId?: string;
624
- /** The time of the event. Useful if there was a delay in dispatching */
625
- eventTime?: Date;
626
- /**
627
- * A field that should be set if this event was triggered by an anonymize request.
628
- * For example you must set it to true when sending an event as a result of a GDPR right to be forgotten request.
629
- * NOTE: This field is not relevant for `EntityCreatedEvent` but is located here for better ergonomics of consumers.
630
- */
631
- triggeredByAnonymizeRequest?: boolean | null;
632
- /** If present, indicates the action that triggered the event. */
633
- originatedFrom?: string | null;
634
- /**
635
- * A sequence number defining the order of updates to the underlying entity.
636
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
637
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
638
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
639
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
640
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
641
- */
642
- entityEventSequence?: string | null;
643
- createdEvent?: EntityCreatedEvent;
644
- updatedEvent?: EntityUpdatedEvent;
645
- deletedEvent?: EntityDeletedEvent;
646
- actionEvent?: ActionEvent;
647
- extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
648
- }
649
- /** @oneof */
650
- export interface DomainEventBodyOneOf {
651
- createdEvent?: EntityCreatedEvent;
652
- updatedEvent?: EntityUpdatedEvent;
653
- deletedEvent?: EntityDeletedEvent;
654
- actionEvent?: ActionEvent;
655
- extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
656
- }
657
- export interface EntityCreatedEvent {
658
- entityAsJson?: string;
659
- }
660
- export interface EntityUpdatedEvent {
661
- /**
662
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
663
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
664
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
665
- */
666
- currentEntityAsJson?: string;
667
- }
668
- export interface EntityDeletedEvent {
669
- }
670
- export interface ActionEvent {
671
- bodyAsJson?: string;
672
- }
673
- export interface ExtendedFieldsUpdatedEvent {
674
- currentEntityAsJson?: string;
675
- }
676
716
  /**
677
717
  * Creates a new Project
678
718
  * @param project - Project to be created
679
719
  * @public
720
+ * @documentationMaturity preview
680
721
  * @requiredField project
681
722
  * @requiredField project.source.appDefId
682
723
  * @requiredField project.source.externalId
683
724
  * @requiredField project.source.sourceName
684
- * @returns The created Project
685
725
  */
686
- export declare function createProject(project: Project): Promise<Project>;
726
+ export declare function createProject(project: Project): Promise<CreateProjectResponse>;
687
727
  /**
688
728
  * Get a Project by id
689
729
  * @param projectId - Id of the Project to retrieve
690
730
  * @public
731
+ * @documentationMaturity preview
691
732
  * @requiredField projectId
692
- * @returns The retrieved Project
693
733
  */
694
- export declare function getProject(projectId: string, options?: GetProjectOptions): Promise<Project>;
734
+ export declare function getProject(projectId: string, options?: GetProjectOptions): Promise<GetProjectResponse>;
695
735
  export interface GetProjectOptions {
696
736
  includePageUrl?: boolean | null;
697
737
  }
698
738
  /**
699
739
  * List all projects in portfolio by creation date
700
- * @public */
740
+ * @public
741
+ * @documentationMaturity preview
742
+ */
701
743
  export declare function listProjects(options?: ListProjectsOptions): Promise<ListProjectsResponse>;
702
744
  export interface ListProjectsOptions {
703
745
  /** Projects limit per response is maximum 100, In the first request the cursor is None */
@@ -709,12 +751,12 @@ export interface ListProjectsOptions {
709
751
  * Pass the latest `revision` for a successful update
710
752
  * @param _id - Project ID
711
753
  * @public
754
+ * @documentationMaturity preview
712
755
  * @requiredField _id
713
756
  * @requiredField project
714
757
  * @requiredField project.revision
715
- * @returns The updated Project
716
758
  */
717
- export declare function updateProject(_id: string | null, project: UpdateProject, options?: UpdateProjectOptions): Promise<Project>;
759
+ export declare function updateProject(_id: string | null, project: UpdateProject): Promise<UpdateProjectResponse>;
718
760
  export interface UpdateProject {
719
761
  /**
720
762
  * Project ID
@@ -723,14 +765,10 @@ export interface UpdateProject {
723
765
  _id?: string | null;
724
766
  /** Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision */
725
767
  revision?: string | null;
726
- /** Project name */
727
768
  title?: string | null;
728
- /** Project description */
729
769
  description?: string | null;
730
770
  /** indicates if the project should be hidden from Portfolio */
731
771
  hidden?: boolean | null;
732
- /** project's cover photo */
733
- coverImage?: CommonImage;
734
772
  /** Collections must exist to be added to a project. can be created/updated/deleted using this //TODO */
735
773
  collectionIds?: string[];
736
774
  /** Custom project details */
@@ -752,96 +790,32 @@ export interface UpdateProject {
752
790
  */
753
791
  url?: string;
754
792
  seoData?: SeoSchema;
755
- }
756
- export interface UpdateProjectOptions {
757
- /** Explicit list of fields to update */
758
- mask?: string[];
793
+ /**
794
+ * indicates if the project is synced from external platform (via integration page) and therefore will be updated from the external platform on daily basis
795
+ * @readonly
796
+ */
797
+ syncedProject?: boolean | null;
798
+ /** project's cover photo */
799
+ coverImage?: CommonImage;
800
+ /** project's cover video */
801
+ coverVideo?: Video;
759
802
  }
760
803
  /**
761
804
  * Delete a Project
762
805
  * @param projectId - Id of the Project to delete
763
806
  * @public
807
+ * @documentationMaturity preview
764
808
  * @requiredField projectId
765
809
  */
766
- export declare function deleteProject(projectId: string, options?: DeleteProjectOptions): Promise<DeleteProjectResponse>;
767
- export interface DeleteProjectOptions {
768
- /** The revision of the Project */
769
- revision?: string;
770
- }
810
+ export declare function deleteProject(projectId: string): Promise<DeleteProjectResponse>;
771
811
  /**
772
812
  * Query Projects using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
773
- * @public */
774
- export declare function queryProjects(options?: QueryProjectsOptions): ProjectsQueryBuilder;
775
- export declare type QueryProjectsOptions = Omit<QueryProjectsRequest, 'query'>;
776
- interface QueryCursorResult {
777
- hasNext: () => boolean;
778
- hasPrev: () => boolean;
779
- length: number;
780
- pageSize: number;
781
- }
782
- export interface ProjectsQueryResult extends QueryCursorResult {
783
- items: Project[];
784
- query: ProjectsQueryBuilder;
785
- next: () => Promise<ProjectsQueryResult>;
786
- prev: () => Promise<ProjectsQueryResult>;
787
- }
788
- export interface ProjectsQueryBuilder {
789
- /** @param propertyName - Property whose value is compared with `value`.
790
- * @param value - Value to compare against.
791
- */
792
- eq: (propertyName: string, value: any) => ProjectsQueryBuilder;
793
- /** @param propertyName - Property whose value is compared with `value`.
794
- * @param value - Value to compare against.
795
- */
796
- ne: (propertyName: string, value: any) => ProjectsQueryBuilder;
797
- /** @param propertyName - Property whose value is compared with `string`.
798
- * @param string - String to compare against. Case-insensitive.
799
- */
800
- startsWith: (propertyName: string, value: string) => ProjectsQueryBuilder;
801
- /** @param propertyName - Property whose value is compared with `values`.
802
- * @param values - List of values to compare against.
803
- */
804
- hasSome: (propertyName: string, value: any[]) => ProjectsQueryBuilder;
805
- in: (propertyName: string, value: any) => ProjectsQueryBuilder;
806
- exists: (propertyName: string, value: boolean) => ProjectsQueryBuilder;
807
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
808
- ascending: (...propertyNames: string[]) => ProjectsQueryBuilder;
809
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
810
- descending: (...propertyNames: string[]) => ProjectsQueryBuilder;
811
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
812
- limit: (limit: number) => ProjectsQueryBuilder;
813
- find: () => Promise<ProjectsQueryResult>;
814
- }
815
- /**
816
- * Updates Project's order in a given Collection
817
- * @param sortOrder - The new sort order of the project in the given collection
818
- * @public
819
- * @requiredField identifiers
820
- * @requiredField identifiers.collectionId
821
- * @requiredField identifiers.projectId
822
- * @requiredField sortOrder
823
- */
824
- export declare function updateProjectOrderInCollection(identifiers: UpdateProjectOrderInCollectionIdentifiers, sortOrder: number | null): Promise<UpdateProjectOrderInCollectionResponse>;
825
- export interface UpdateProjectOrderInCollectionIdentifiers {
826
- /** Id of the Project to update its order */
827
- projectId: string;
828
- /** Id of the collection in which the project will be re-ordered */
829
- collectionId: string;
830
- }
831
- /**
832
- * Query project in collection context using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
833
- *
834
- * Because project can be ordered different in each collection, use this when want to query the projects in a Collection ordered by the order in given collection
835
- *
836
- * Supported Fields for query and ordering: collectionId, projectId, sortOrder, hidden, projectSlug
837
- *
838
- * If you want to Query project by Project properties please use Query Projects method - link //TODO
839
813
  * @param query - WQL expression
840
814
  * @public
815
+ * @documentationMaturity preview
841
816
  * @requiredField query
842
817
  */
843
- export declare function queryProjectsWithCollectionInfo(query: QueryV2, options?: QueryProjectsWithCollectionInfoOptions): Promise<QueryProjectWithCollectionInfoResponse>;
844
- export interface QueryProjectsWithCollectionInfoOptions {
818
+ export declare function queryProjects(query: QueryV2, options?: QueryProjectsOptions): Promise<QueryProjectsResponse>;
819
+ export interface QueryProjectsOptions {
845
820
  includePageUrl?: boolean | null;
846
821
  }
847
- export {};