@wix/portfolio 1.0.48 → 1.0.50

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 (169) hide show
  1. package/build/cjs/context.d.ts +4 -4
  2. package/build/cjs/context.js +4 -4
  3. package/build/cjs/context.js.map +1 -1
  4. package/build/cjs/index.d.ts +4 -4
  5. package/build/cjs/index.js +4 -4
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +4 -4
  8. package/build/cjs/meta.js +4 -4
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +4 -4
  11. package/build/es/context.js +4 -4
  12. package/build/es/context.js.map +1 -1
  13. package/build/es/index.d.ts +4 -4
  14. package/build/es/index.js +4 -4
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +4 -4
  17. package/build/es/meta.js +4 -4
  18. package/build/es/meta.js.map +1 -1
  19. package/package.json +14 -9
  20. package/build/cjs/index.typings.d.ts +0 -4
  21. package/build/cjs/index.typings.js +0 -31
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/portfolio-collections-v1-collection.context.d.ts +0 -8
  24. package/build/cjs/src/portfolio-collections-v1-collection.context.js +0 -71
  25. package/build/cjs/src/portfolio-collections-v1-collection.context.js.map +0 -1
  26. package/build/cjs/src/portfolio-collections-v1-collection.http.d.ts +0 -17
  27. package/build/cjs/src/portfolio-collections-v1-collection.http.js +0 -339
  28. package/build/cjs/src/portfolio-collections-v1-collection.http.js.map +0 -1
  29. package/build/cjs/src/portfolio-collections-v1-collection.meta.d.ts +0 -24
  30. package/build/cjs/src/portfolio-collections-v1-collection.meta.js +0 -142
  31. package/build/cjs/src/portfolio-collections-v1-collection.meta.js.map +0 -1
  32. package/build/cjs/src/portfolio-collections-v1-collection.public.d.ts +0 -85
  33. package/build/cjs/src/portfolio-collections-v1-collection.public.js +0 -45
  34. package/build/cjs/src/portfolio-collections-v1-collection.public.js.map +0 -1
  35. package/build/cjs/src/portfolio-collections-v1-collection.types.d.ts +0 -578
  36. package/build/cjs/src/portfolio-collections-v1-collection.types.js +0 -15
  37. package/build/cjs/src/portfolio-collections-v1-collection.types.js.map +0 -1
  38. package/build/cjs/src/portfolio-collections-v1-collection.universal.d.ts +0 -704
  39. package/build/cjs/src/portfolio-collections-v1-collection.universal.js +0 -425
  40. package/build/cjs/src/portfolio-collections-v1-collection.universal.js.map +0 -1
  41. package/build/cjs/src/portfolio-project-items-v1-project-item.context.d.ts +0 -7
  42. package/build/cjs/src/portfolio-project-items-v1-project-item.context.js +0 -60
  43. package/build/cjs/src/portfolio-project-items-v1-project-item.context.js.map +0 -1
  44. package/build/cjs/src/portfolio-project-items-v1-project-item.http.d.ts +0 -12
  45. package/build/cjs/src/portfolio-project-items-v1-project-item.http.js +0 -337
  46. package/build/cjs/src/portfolio-project-items-v1-project-item.http.js.map +0 -1
  47. package/build/cjs/src/portfolio-project-items-v1-project-item.meta.d.ts +0 -25
  48. package/build/cjs/src/portfolio-project-items-v1-project-item.meta.js +0 -123
  49. package/build/cjs/src/portfolio-project-items-v1-project-item.meta.js.map +0 -1
  50. package/build/cjs/src/portfolio-project-items-v1-project-item.public.d.ts +0 -48
  51. package/build/cjs/src/portfolio-project-items-v1-project-item.public.js +0 -40
  52. package/build/cjs/src/portfolio-project-items-v1-project-item.public.js.map +0 -1
  53. package/build/cjs/src/portfolio-project-items-v1-project-item.types.d.ts +0 -710
  54. package/build/cjs/src/portfolio-project-items-v1-project-item.types.js +0 -21
  55. package/build/cjs/src/portfolio-project-items-v1-project-item.types.js.map +0 -1
  56. package/build/cjs/src/portfolio-project-items-v1-project-item.universal.d.ts +0 -662
  57. package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js +0 -358
  58. package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js.map +0 -1
  59. package/build/cjs/src/portfolio-projects-v1-project-in-collection.context.d.ts +0 -4
  60. package/build/cjs/src/portfolio-projects-v1-project-in-collection.context.js +0 -27
  61. package/build/cjs/src/portfolio-projects-v1-project-in-collection.context.js.map +0 -1
  62. package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.d.ts +0 -14
  63. package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.js +0 -219
  64. package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.js.map +0 -1
  65. package/build/cjs/src/portfolio-projects-v1-project-in-collection.meta.d.ts +0 -17
  66. package/build/cjs/src/portfolio-projects-v1-project-in-collection.meta.js +0 -69
  67. package/build/cjs/src/portfolio-projects-v1-project-in-collection.meta.js.map +0 -1
  68. package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.d.ts +0 -9
  69. package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.js +0 -22
  70. package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.js.map +0 -1
  71. package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.d.ts +0 -635
  72. package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.js +0 -21
  73. package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.js.map +0 -1
  74. package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.d.ts +0 -574
  75. package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.js +0 -219
  76. package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.js.map +0 -1
  77. package/build/cjs/src/portfolio-projects-v1-project.context.d.ts +0 -8
  78. package/build/cjs/src/portfolio-projects-v1-project.context.js +0 -71
  79. package/build/cjs/src/portfolio-projects-v1-project.context.js.map +0 -1
  80. package/build/cjs/src/portfolio-projects-v1-project.http.d.ts +0 -17
  81. package/build/cjs/src/portfolio-projects-v1-project.http.js +0 -384
  82. package/build/cjs/src/portfolio-projects-v1-project.http.js.map +0 -1
  83. package/build/cjs/src/portfolio-projects-v1-project.meta.d.ts +0 -24
  84. package/build/cjs/src/portfolio-projects-v1-project.meta.js +0 -142
  85. package/build/cjs/src/portfolio-projects-v1-project.meta.js.map +0 -1
  86. package/build/cjs/src/portfolio-projects-v1-project.public.d.ts +0 -109
  87. package/build/cjs/src/portfolio-projects-v1-project.public.js +0 -50
  88. package/build/cjs/src/portfolio-projects-v1-project.public.js.map +0 -1
  89. package/build/cjs/src/portfolio-projects-v1-project.types.d.ts +0 -1211
  90. package/build/cjs/src/portfolio-projects-v1-project.types.js +0 -112
  91. package/build/cjs/src/portfolio-projects-v1-project.types.js.map +0 -1
  92. package/build/cjs/src/portfolio-projects-v1-project.universal.d.ts +0 -1198
  93. package/build/cjs/src/portfolio-projects-v1-project.universal.js +0 -527
  94. package/build/cjs/src/portfolio-projects-v1-project.universal.js.map +0 -1
  95. package/build/es/index.typings.d.ts +0 -4
  96. package/build/es/index.typings.js +0 -5
  97. package/build/es/index.typings.js.map +0 -1
  98. package/build/es/src/portfolio-collections-v1-collection.context.d.ts +0 -8
  99. package/build/es/src/portfolio-collections-v1-collection.context.js +0 -62
  100. package/build/es/src/portfolio-collections-v1-collection.context.js.map +0 -1
  101. package/build/es/src/portfolio-collections-v1-collection.http.d.ts +0 -17
  102. package/build/es/src/portfolio-collections-v1-collection.http.js +0 -330
  103. package/build/es/src/portfolio-collections-v1-collection.http.js.map +0 -1
  104. package/build/es/src/portfolio-collections-v1-collection.meta.d.ts +0 -24
  105. package/build/es/src/portfolio-collections-v1-collection.meta.js +0 -110
  106. package/build/es/src/portfolio-collections-v1-collection.meta.js.map +0 -1
  107. package/build/es/src/portfolio-collections-v1-collection.public.d.ts +0 -85
  108. package/build/es/src/portfolio-collections-v1-collection.public.js +0 -34
  109. package/build/es/src/portfolio-collections-v1-collection.public.js.map +0 -1
  110. package/build/es/src/portfolio-collections-v1-collection.types.d.ts +0 -578
  111. package/build/es/src/portfolio-collections-v1-collection.types.js +0 -12
  112. package/build/es/src/portfolio-collections-v1-collection.types.js.map +0 -1
  113. package/build/es/src/portfolio-collections-v1-collection.universal.d.ts +0 -704
  114. package/build/es/src/portfolio-collections-v1-collection.universal.js +0 -393
  115. package/build/es/src/portfolio-collections-v1-collection.universal.js.map +0 -1
  116. package/build/es/src/portfolio-project-items-v1-project-item.context.d.ts +0 -7
  117. package/build/es/src/portfolio-project-items-v1-project-item.context.js +0 -52
  118. package/build/es/src/portfolio-project-items-v1-project-item.context.js.map +0 -1
  119. package/build/es/src/portfolio-project-items-v1-project-item.http.d.ts +0 -12
  120. package/build/es/src/portfolio-project-items-v1-project-item.http.js +0 -329
  121. package/build/es/src/portfolio-project-items-v1-project-item.http.js.map +0 -1
  122. package/build/es/src/portfolio-project-items-v1-project-item.meta.d.ts +0 -25
  123. package/build/es/src/portfolio-project-items-v1-project-item.meta.js +0 -92
  124. package/build/es/src/portfolio-project-items-v1-project-item.meta.js.map +0 -1
  125. package/build/es/src/portfolio-project-items-v1-project-item.public.d.ts +0 -48
  126. package/build/es/src/portfolio-project-items-v1-project-item.public.js +0 -29
  127. package/build/es/src/portfolio-project-items-v1-project-item.public.js.map +0 -1
  128. package/build/es/src/portfolio-project-items-v1-project-item.types.d.ts +0 -710
  129. package/build/es/src/portfolio-project-items-v1-project-item.types.js +0 -18
  130. package/build/es/src/portfolio-project-items-v1-project-item.types.js.map +0 -1
  131. package/build/es/src/portfolio-project-items-v1-project-item.universal.d.ts +0 -662
  132. package/build/es/src/portfolio-project-items-v1-project-item.universal.js +0 -327
  133. package/build/es/src/portfolio-project-items-v1-project-item.universal.js.map +0 -1
  134. package/build/es/src/portfolio-projects-v1-project-in-collection.context.d.ts +0 -4
  135. package/build/es/src/portfolio-projects-v1-project-in-collection.context.js +0 -22
  136. package/build/es/src/portfolio-projects-v1-project-in-collection.context.js.map +0 -1
  137. package/build/es/src/portfolio-projects-v1-project-in-collection.http.d.ts +0 -14
  138. package/build/es/src/portfolio-projects-v1-project-in-collection.http.js +0 -214
  139. package/build/es/src/portfolio-projects-v1-project-in-collection.http.js.map +0 -1
  140. package/build/es/src/portfolio-projects-v1-project-in-collection.meta.d.ts +0 -17
  141. package/build/es/src/portfolio-projects-v1-project-in-collection.meta.js +0 -41
  142. package/build/es/src/portfolio-projects-v1-project-in-collection.meta.js.map +0 -1
  143. package/build/es/src/portfolio-projects-v1-project-in-collection.public.d.ts +0 -9
  144. package/build/es/src/portfolio-projects-v1-project-in-collection.public.js +0 -14
  145. package/build/es/src/portfolio-projects-v1-project-in-collection.public.js.map +0 -1
  146. package/build/es/src/portfolio-projects-v1-project-in-collection.types.d.ts +0 -635
  147. package/build/es/src/portfolio-projects-v1-project-in-collection.types.js +0 -18
  148. package/build/es/src/portfolio-projects-v1-project-in-collection.types.js.map +0 -1
  149. package/build/es/src/portfolio-projects-v1-project-in-collection.universal.d.ts +0 -574
  150. package/build/es/src/portfolio-projects-v1-project-in-collection.universal.js +0 -191
  151. package/build/es/src/portfolio-projects-v1-project-in-collection.universal.js.map +0 -1
  152. package/build/es/src/portfolio-projects-v1-project.context.d.ts +0 -8
  153. package/build/es/src/portfolio-projects-v1-project.context.js +0 -62
  154. package/build/es/src/portfolio-projects-v1-project.context.js.map +0 -1
  155. package/build/es/src/portfolio-projects-v1-project.http.d.ts +0 -17
  156. package/build/es/src/portfolio-projects-v1-project.http.js +0 -375
  157. package/build/es/src/portfolio-projects-v1-project.http.js.map +0 -1
  158. package/build/es/src/portfolio-projects-v1-project.meta.d.ts +0 -24
  159. package/build/es/src/portfolio-projects-v1-project.meta.js +0 -110
  160. package/build/es/src/portfolio-projects-v1-project.meta.js.map +0 -1
  161. package/build/es/src/portfolio-projects-v1-project.public.d.ts +0 -109
  162. package/build/es/src/portfolio-projects-v1-project.public.js +0 -34
  163. package/build/es/src/portfolio-projects-v1-project.public.js.map +0 -1
  164. package/build/es/src/portfolio-projects-v1-project.types.d.ts +0 -1211
  165. package/build/es/src/portfolio-projects-v1-project.types.js +0 -109
  166. package/build/es/src/portfolio-projects-v1-project.types.js.map +0 -1
  167. package/build/es/src/portfolio-projects-v1-project.universal.d.ts +0 -1198
  168. package/build/es/src/portfolio-projects-v1-project.universal.js +0 -495
  169. package/build/es/src/portfolio-projects-v1-project.universal.js.map +0 -1
@@ -1,704 +0,0 @@
1
- export declare const __debug: {
2
- verboseLogging: {
3
- on: () => boolean;
4
- off: () => boolean;
5
- };
6
- };
7
- /** Collection is the main entity of CollectionsService */
8
- export interface Collection {
9
- /**
10
- * Collection ID
11
- * @readonly
12
- */
13
- _id?: string | null;
14
- /**
15
- * 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
16
- * @readonly
17
- */
18
- revision?: string | null;
19
- title?: string | null;
20
- description?: string | null;
21
- /** Url of Collection */
22
- slug?: string | null;
23
- /** Collection's cover photo */
24
- coverImage?: CommonImage;
25
- /** Indicates if the collection is hidden from Portfolio */
26
- hidden?: boolean | null;
27
- /** if not present in an update it means the collection will be added as currentTimestamp - as the last collection */
28
- sortOrder?: number | null;
29
- /**
30
- * Represents the time this Collection was created
31
- * @readonly
32
- */
33
- _createdDate?: Date;
34
- /**
35
- * Represents the time this Collection was last updated
36
- * @readonly
37
- */
38
- _updatedDate?: Date;
39
- /**
40
- * Url and relative url of Collection - in order to receive this field in READ requests you will need to pass the `include_page_url` field as part of request
41
- * @readonly
42
- */
43
- url?: string;
44
- seoData?: SeoSchema;
45
- }
46
- export interface CommonImage {
47
- /** Image info - Wix Media Image. */
48
- imageInfo?: string;
49
- /** Focal point of the image. */
50
- focalPoint?: CommonPoint;
51
- }
52
- export declare enum ImageImageType {
53
- UNDEFINED = "UNDEFINED",
54
- WIX_MEDIA = "WIX_MEDIA",
55
- EXTERNAL = "EXTERNAL"
56
- }
57
- export interface CommonPoint {
58
- /** X-coordinate of the focal point. */
59
- x?: number;
60
- /** Y-coordinate of the focal point. */
61
- y?: number;
62
- }
63
- export interface CommonUnsharpMasking {
64
- /**
65
- * Unsharp masking amount. Controls the sharpening strength. <br />
66
- *
67
- * Min: `0` <br />
68
- * Max: `5`
69
- */
70
- amount?: number | null;
71
- /** Unsharp masking radius in pixels. Controls the sharpening width. */
72
- radius?: number | null;
73
- /**
74
- * Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />
75
- *
76
- * Min: `0` <br />
77
- * Max: `1`
78
- */
79
- threshold?: number | null;
80
- }
81
- /**
82
- * The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
83
- * The search engines use this information for ranking purposes, or to display snippets in the search results.
84
- * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
85
- */
86
- export interface SeoSchema {
87
- /** SEO tag information. */
88
- tags?: Tag[];
89
- /** SEO general settings. */
90
- settings?: Settings;
91
- }
92
- export interface Keyword {
93
- /** Keyword value. */
94
- term?: string;
95
- /** Whether the keyword is the main focus keyword. */
96
- isMain?: boolean;
97
- }
98
- export interface Tag {
99
- /**
100
- * SEO tag type.
101
- *
102
- *
103
- * Supported values: `title`, `meta`, `script`, `link`.
104
- */
105
- type?: string;
106
- /**
107
- * A `{'key':'value'}` pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
108
- * For example: `{'name': 'description', 'content': 'the description itself'}`.
109
- */
110
- props?: Record<string, any> | null;
111
- /** SEO tag meta data. For example, `{height: 300, width: 240}`. */
112
- meta?: Record<string, any> | null;
113
- /** SEO tag inner content. For example, `<title> inner content </title>`. */
114
- children?: string;
115
- /** Whether the tag is a custom tag. */
116
- custom?: boolean;
117
- /** Whether the tag is disabled. */
118
- disabled?: boolean;
119
- }
120
- export interface Settings {
121
- /**
122
- * Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
123
- *
124
- *
125
- * Default: `false` (Auto Redirect is enabled.)
126
- */
127
- preventAutoRedirect?: boolean;
128
- /** User-selected keyword terms for a specific page. */
129
- keywords?: Keyword[];
130
- }
131
- export interface DomainEvent extends DomainEventBodyOneOf {
132
- createdEvent?: EntityCreatedEvent;
133
- updatedEvent?: EntityUpdatedEvent;
134
- deletedEvent?: EntityDeletedEvent;
135
- actionEvent?: ActionEvent;
136
- /**
137
- * Unique event ID.
138
- * Allows clients to ignore duplicate webhooks.
139
- */
140
- _id?: string;
141
- /**
142
- * Assumes actions are also always typed to an entity_type
143
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
144
- */
145
- entityFqdn?: string;
146
- /**
147
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
148
- * This is although the created/updated/deleted notion is duplication of the oneof types
149
- * Example: created/updated/deleted/started/completed/email_opened
150
- */
151
- slug?: string;
152
- /** ID of the entity associated with the event. */
153
- entityId?: string;
154
- /** Event timestamp. */
155
- eventTime?: Date;
156
- /**
157
- * Whether the event was triggered as a result of a privacy regulation application
158
- * (for example, GDPR).
159
- */
160
- triggeredByAnonymizeRequest?: boolean | null;
161
- /** If present, indicates the action that triggered the event. */
162
- originatedFrom?: string | null;
163
- /**
164
- * A sequence number defining the order of updates to the underlying entity.
165
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
166
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
167
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
168
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
169
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
170
- */
171
- entityEventSequence?: string | null;
172
- }
173
- /** @oneof */
174
- export interface DomainEventBodyOneOf {
175
- createdEvent?: EntityCreatedEvent;
176
- updatedEvent?: EntityUpdatedEvent;
177
- deletedEvent?: EntityDeletedEvent;
178
- actionEvent?: ActionEvent;
179
- }
180
- export interface EntityCreatedEvent {
181
- entityAsJson?: string;
182
- }
183
- export interface EntityUpdatedEvent {
184
- /**
185
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
186
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
187
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
188
- */
189
- currentEntityAsJson?: string;
190
- }
191
- export interface EntityDeletedEvent {
192
- /** Entity that was deleted */
193
- deletedEntityAsJson?: string | null;
194
- }
195
- export interface ActionEvent {
196
- bodyAsJson?: string;
197
- }
198
- export interface Empty {
199
- }
200
- export interface AdminRemoveMenuItemsResponse {
201
- /** number of items queried for deletion */
202
- numItems?: number;
203
- /** number of items sucessfully deleted */
204
- numItemsSuccessfullyDeleted?: number;
205
- }
206
- export interface InvalidateCache extends InvalidateCacheGetByOneOf {
207
- /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
208
- metaSiteId?: string;
209
- /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
210
- siteId?: string;
211
- /** Invalidate by App */
212
- app?: App;
213
- /** Invalidate by page id */
214
- page?: Page;
215
- /** Invalidate by URI path */
216
- uri?: URI;
217
- /** tell us why you're invalidating the cache. You don't need to add your app name */
218
- reason?: string | null;
219
- /** Is local DS */
220
- localDc?: boolean;
221
- }
222
- /** @oneof */
223
- export interface InvalidateCacheGetByOneOf {
224
- /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
225
- metaSiteId?: string;
226
- /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
227
- siteId?: string;
228
- /** Invalidate by App */
229
- app?: App;
230
- /** Invalidate by page id */
231
- page?: Page;
232
- /** Invalidate by URI path */
233
- uri?: URI;
234
- }
235
- export interface App {
236
- /** The AppDefId */
237
- appDefId?: string;
238
- /** The instance Id */
239
- instanceId?: string;
240
- }
241
- export interface Page {
242
- /** the msid the page is on */
243
- metaSiteId?: string;
244
- /** Invalidate by Page ID */
245
- pageId?: string;
246
- }
247
- export interface URI {
248
- /** the msid the URI is on */
249
- metaSiteId?: string;
250
- /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
251
- uriPath?: string;
252
- }
253
- export interface CreateCollectionRequest {
254
- /** Collection to be created */
255
- collection: Collection;
256
- }
257
- export interface CreateCollectionResponse {
258
- /** The created Collection */
259
- collection?: Collection;
260
- }
261
- export interface GetCollectionRequest {
262
- /** Id of the Collection to retrieve */
263
- collectionId: string;
264
- includePageUrl?: boolean | null;
265
- }
266
- export interface GetCollectionResponse {
267
- /** The retrieved Collection */
268
- collection?: Collection;
269
- }
270
- export interface ListCollectionsRequest {
271
- /** Maximum limit per response is 100, in first request cursor is None */
272
- paging?: CursorPaging;
273
- includePageUrl?: boolean | null;
274
- }
275
- export interface CursorPaging {
276
- /** Maximum number of items to return in the results. */
277
- limit?: number | null;
278
- /**
279
- * Pointer to the next or previous page in the list of results.
280
- *
281
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
282
- * Not relevant for the first request.
283
- */
284
- cursor?: string | null;
285
- }
286
- export interface ListCollectionsResponse {
287
- /** Retrieved Collections */
288
- collections?: Collection[];
289
- /** Paging metadata */
290
- metadata?: PagingMetadataV2;
291
- }
292
- export interface PagingMetadataV2 {
293
- /** Number of items returned in the response. */
294
- count?: number | null;
295
- /** Offset that was requested. */
296
- offset?: number | null;
297
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
298
- total?: number | null;
299
- /** Flag that indicates the server failed to calculate the `total` field. */
300
- tooManyToCount?: boolean | null;
301
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
302
- cursors?: Cursors;
303
- }
304
- export interface Cursors {
305
- /** Cursor string pointing to the next page in the list of results. */
306
- next?: string | null;
307
- /** Cursor pointing to the previous page in the list of results. */
308
- prev?: string | null;
309
- }
310
- export interface UpdateCollectionRequest {
311
- /** Collection to be updated, may be partial */
312
- collection: Collection;
313
- }
314
- export interface UpdateCollectionResponse {
315
- /** The updated Collection */
316
- collection?: Collection;
317
- }
318
- export interface DeleteCollectionRequest {
319
- /** Id of the Collection to delete */
320
- collectionId: string;
321
- }
322
- export interface DeleteCollectionResponse {
323
- /** Id of the Deleted Collection */
324
- collectionId?: string;
325
- }
326
- export interface QueryCollectionsRequest {
327
- /** WQL expression */
328
- query: QueryV2;
329
- includePageUrl?: boolean | null;
330
- }
331
- export interface QueryV2 extends QueryV2PagingMethodOneOf {
332
- /** Paging options to limit and skip the number of items. */
333
- paging?: Paging;
334
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
335
- cursorPaging?: CursorPaging;
336
- /**
337
- * Filter object in the following format:
338
- * `"filter" : {
339
- * "fieldName1": "value1",
340
- * "fieldName2":{"$operator":"value2"}
341
- * }`
342
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
343
- */
344
- filter?: Record<string, any> | null;
345
- /**
346
- * Sort object in the following format:
347
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
348
- */
349
- sort?: Sorting[];
350
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
351
- fields?: string[];
352
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
353
- fieldsets?: string[];
354
- }
355
- /** @oneof */
356
- export interface QueryV2PagingMethodOneOf {
357
- /** Paging options to limit and skip the number of items. */
358
- paging?: Paging;
359
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
360
- cursorPaging?: CursorPaging;
361
- }
362
- export interface Sorting {
363
- /** Name of the field to sort by. */
364
- fieldName?: string;
365
- /** Sort order. */
366
- order?: SortOrder;
367
- }
368
- export declare enum SortOrder {
369
- ASC = "ASC",
370
- DESC = "DESC"
371
- }
372
- export interface Paging {
373
- /** Number of items to load. */
374
- limit?: number | null;
375
- /** Number of items to skip in the current sort order. */
376
- offset?: number | null;
377
- }
378
- export interface QueryCollectionsResponse {
379
- /** The retrieved Collections */
380
- collections?: Collection[];
381
- /** Paging metadata */
382
- metadata?: PagingMetadataV2;
383
- }
384
- export interface CreateCollectionResponseNonNullableFields {
385
- collection?: {
386
- coverImage?: {
387
- imageInfo: string;
388
- focalPoint?: {
389
- x: number;
390
- y: number;
391
- };
392
- };
393
- url: string;
394
- seoData?: {
395
- tags: {
396
- type: string;
397
- children: string;
398
- custom: boolean;
399
- disabled: boolean;
400
- }[];
401
- settings?: {
402
- preventAutoRedirect: boolean;
403
- keywords: {
404
- term: string;
405
- isMain: boolean;
406
- }[];
407
- };
408
- };
409
- };
410
- }
411
- export interface GetCollectionResponseNonNullableFields {
412
- collection?: {
413
- coverImage?: {
414
- imageInfo: string;
415
- focalPoint?: {
416
- x: number;
417
- y: number;
418
- };
419
- };
420
- url: string;
421
- seoData?: {
422
- tags: {
423
- type: string;
424
- children: string;
425
- custom: boolean;
426
- disabled: boolean;
427
- }[];
428
- settings?: {
429
- preventAutoRedirect: boolean;
430
- keywords: {
431
- term: string;
432
- isMain: boolean;
433
- }[];
434
- };
435
- };
436
- };
437
- }
438
- export interface ListCollectionsResponseNonNullableFields {
439
- collections: {
440
- coverImage?: {
441
- imageInfo: string;
442
- focalPoint?: {
443
- x: number;
444
- y: number;
445
- };
446
- };
447
- url: string;
448
- seoData?: {
449
- tags: {
450
- type: string;
451
- children: string;
452
- custom: boolean;
453
- disabled: boolean;
454
- }[];
455
- settings?: {
456
- preventAutoRedirect: boolean;
457
- keywords: {
458
- term: string;
459
- isMain: boolean;
460
- }[];
461
- };
462
- };
463
- }[];
464
- }
465
- export interface UpdateCollectionResponseNonNullableFields {
466
- collection?: {
467
- coverImage?: {
468
- imageInfo: string;
469
- focalPoint?: {
470
- x: number;
471
- y: number;
472
- };
473
- };
474
- url: string;
475
- seoData?: {
476
- tags: {
477
- type: string;
478
- children: string;
479
- custom: boolean;
480
- disabled: boolean;
481
- }[];
482
- settings?: {
483
- preventAutoRedirect: boolean;
484
- keywords: {
485
- term: string;
486
- isMain: boolean;
487
- }[];
488
- };
489
- };
490
- };
491
- }
492
- export interface DeleteCollectionResponseNonNullableFields {
493
- collectionId: string;
494
- }
495
- export interface QueryCollectionsResponseNonNullableFields {
496
- collections: {
497
- coverImage?: {
498
- imageInfo: string;
499
- focalPoint?: {
500
- x: number;
501
- y: number;
502
- };
503
- };
504
- url: string;
505
- seoData?: {
506
- tags: {
507
- type: string;
508
- children: string;
509
- custom: boolean;
510
- disabled: boolean;
511
- }[];
512
- settings?: {
513
- preventAutoRedirect: boolean;
514
- keywords: {
515
- term: string;
516
- isMain: boolean;
517
- }[];
518
- };
519
- };
520
- }[];
521
- }
522
- /**
523
- * Creates a new Collection
524
- * @param collection - Collection to be created
525
- * @public
526
- * @documentationMaturity preview
527
- * @requiredField collection
528
- * @returns The created Collection
529
- */
530
- export declare function createCollection(collection: Collection): Promise<Collection & NonNullable<CreateCollectionResponseNonNullableFields>['collection']>;
531
- /**
532
- * Get a Collection by id
533
- * @param collectionId - Id of the Collection to retrieve
534
- * @public
535
- * @documentationMaturity preview
536
- * @requiredField collectionId
537
- * @applicableIdentity MEMBER
538
- * @applicableIdentity VISITOR
539
- * @returns The retrieved Collection
540
- */
541
- export declare function getCollection(collectionId: string, options?: GetCollectionOptions): Promise<Collection & NonNullable<GetCollectionResponseNonNullableFields>['collection']>;
542
- export interface GetCollectionOptions {
543
- includePageUrl?: boolean | null;
544
- }
545
- /**
546
- * List all Collections in portfolio
547
- * @public
548
- * @documentationMaturity preview
549
- * @applicableIdentity MEMBER
550
- * @applicableIdentity VISITOR
551
- */
552
- export declare function listCollections(options?: ListCollectionsOptions): Promise<ListCollectionsResponse & ListCollectionsResponseNonNullableFields>;
553
- export interface ListCollectionsOptions {
554
- /** Maximum limit per response is 100, in first request cursor is None */
555
- paging?: CursorPaging;
556
- includePageUrl?: boolean | null;
557
- }
558
- /**
559
- * Update a Collection, supports partial update
560
- * Pass the latest `revision` for a successful update
561
- * @param _id - Collection ID
562
- * @public
563
- * @documentationMaturity preview
564
- * @requiredField _id
565
- * @requiredField collection
566
- * @requiredField collection.revision
567
- * @returns The updated Collection
568
- */
569
- export declare function updateCollection(_id: string | null, collection: UpdateCollection): Promise<Collection & NonNullable<UpdateCollectionResponseNonNullableFields>['collection']>;
570
- export interface UpdateCollection {
571
- /**
572
- * Collection ID
573
- * @readonly
574
- */
575
- _id?: string | null;
576
- /**
577
- * 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
578
- * @readonly
579
- */
580
- revision?: string | null;
581
- title?: string | null;
582
- description?: string | null;
583
- /** Url of Collection */
584
- slug?: string | null;
585
- /** Collection's cover photo */
586
- coverImage?: CommonImage;
587
- /** Indicates if the collection is hidden from Portfolio */
588
- hidden?: boolean | null;
589
- /** if not present in an update it means the collection will be added as currentTimestamp - as the last collection */
590
- sortOrder?: number | null;
591
- /**
592
- * Represents the time this Collection was created
593
- * @readonly
594
- */
595
- _createdDate?: Date;
596
- /**
597
- * Represents the time this Collection was last updated
598
- * @readonly
599
- */
600
- _updatedDate?: Date;
601
- /**
602
- * Url and relative url of Collection - in order to receive this field in READ requests you will need to pass the `include_page_url` field as part of request
603
- * @readonly
604
- */
605
- url?: string;
606
- seoData?: SeoSchema;
607
- }
608
- /**
609
- * Delete a Collection
610
- * @param collectionId - Id of the Collection to delete
611
- * @public
612
- * @documentationMaturity preview
613
- * @requiredField collectionId
614
- */
615
- export declare function deleteCollection(collectionId: string): Promise<DeleteCollectionResponse & DeleteCollectionResponseNonNullableFields>;
616
- /**
617
- * Query Collections using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
618
- * @public
619
- * @documentationMaturity preview
620
- * @applicableIdentity MEMBER
621
- * @applicableIdentity VISITOR
622
- */
623
- export declare function queryCollections(options?: QueryCollectionsOptions): CollectionsQueryBuilder;
624
- export interface QueryCollectionsOptions {
625
- includePageUrl?: boolean | null | undefined;
626
- }
627
- interface QueryCursorResult {
628
- cursors: Cursors;
629
- hasNext: () => boolean;
630
- hasPrev: () => boolean;
631
- length: number;
632
- pageSize: number;
633
- }
634
- export interface CollectionsQueryResult extends QueryCursorResult {
635
- items: Collection[];
636
- query: CollectionsQueryBuilder;
637
- next: () => Promise<CollectionsQueryResult>;
638
- prev: () => Promise<CollectionsQueryResult>;
639
- }
640
- export interface CollectionsQueryBuilder {
641
- /** @param propertyName - Property whose value is compared with `value`.
642
- * @param value - Value to compare against.
643
- * @documentationMaturity preview
644
- */
645
- eq: (propertyName: '_id' | 'title' | 'description' | 'slug' | 'hidden' | 'sortOrder' | '_createdDate' | '_updatedDate', value: any) => CollectionsQueryBuilder;
646
- /** @param propertyName - Property whose value is compared with `value`.
647
- * @param value - Value to compare against.
648
- * @documentationMaturity preview
649
- */
650
- ne: (propertyName: '_id' | 'title' | 'description' | 'slug' | 'hidden' | 'sortOrder' | '_createdDate' | '_updatedDate', value: any) => CollectionsQueryBuilder;
651
- /** @param propertyName - Property whose value is compared with `value`.
652
- * @param value - Value to compare against.
653
- * @documentationMaturity preview
654
- */
655
- ge: (propertyName: 'sortOrder' | '_createdDate' | '_updatedDate', value: any) => CollectionsQueryBuilder;
656
- /** @param propertyName - Property whose value is compared with `value`.
657
- * @param value - Value to compare against.
658
- * @documentationMaturity preview
659
- */
660
- gt: (propertyName: 'sortOrder' | '_createdDate' | '_updatedDate', value: any) => CollectionsQueryBuilder;
661
- /** @param propertyName - Property whose value is compared with `value`.
662
- * @param value - Value to compare against.
663
- * @documentationMaturity preview
664
- */
665
- le: (propertyName: 'sortOrder' | '_createdDate' | '_updatedDate', value: any) => CollectionsQueryBuilder;
666
- /** @param propertyName - Property whose value is compared with `value`.
667
- * @param value - Value to compare against.
668
- * @documentationMaturity preview
669
- */
670
- lt: (propertyName: 'sortOrder' | '_createdDate' | '_updatedDate', value: any) => CollectionsQueryBuilder;
671
- /** @param propertyName - Property whose value is compared with `string`.
672
- * @param string - String to compare against. Case-insensitive.
673
- * @documentationMaturity preview
674
- */
675
- startsWith: (propertyName: '_id' | 'title' | 'description' | 'slug', value: string) => CollectionsQueryBuilder;
676
- /** @param propertyName - Property whose value is compared with `values`.
677
- * @param values - List of values to compare against.
678
- * @documentationMaturity preview
679
- */
680
- hasSome: (propertyName: '_id' | 'title' | 'description' | 'slug' | 'hidden' | 'sortOrder' | '_createdDate' | '_updatedDate', value: any[]) => CollectionsQueryBuilder;
681
- /** @documentationMaturity preview */
682
- in: (propertyName: '_id' | 'title' | 'description' | 'slug' | 'hidden' | 'sortOrder' | '_createdDate' | '_updatedDate', value: any) => CollectionsQueryBuilder;
683
- /** @documentationMaturity preview */
684
- exists: (propertyName: '_id' | 'title' | 'description' | 'slug' | 'hidden' | 'sortOrder' | '_createdDate' | '_updatedDate', value: boolean) => CollectionsQueryBuilder;
685
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
686
- * @documentationMaturity preview
687
- */
688
- ascending: (...propertyNames: Array<'_id' | 'title' | 'description' | 'slug' | 'sortOrder' | '_createdDate' | '_updatedDate'>) => CollectionsQueryBuilder;
689
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
690
- * @documentationMaturity preview
691
- */
692
- descending: (...propertyNames: Array<'_id' | 'title' | 'description' | 'slug' | 'sortOrder' | '_createdDate' | '_updatedDate'>) => CollectionsQueryBuilder;
693
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
694
- * @documentationMaturity preview
695
- */
696
- limit: (limit: number) => CollectionsQueryBuilder;
697
- /** @param cursor - A pointer to specific record
698
- * @documentationMaturity preview
699
- */
700
- skipTo: (cursor: string) => CollectionsQueryBuilder;
701
- /** @documentationMaturity preview */
702
- find: () => Promise<CollectionsQueryResult>;
703
- }
704
- export {};