@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,574 +0,0 @@
1
- export declare const __debug: {
2
- verboseLogging: {
3
- on: () => boolean;
4
- off: () => boolean;
5
- };
6
- };
7
- export interface ProjectInCollection {
8
- /** Collection ID */
9
- collectionId?: string;
10
- /** Project */
11
- project?: Project;
12
- /** The sort order of the project in the given Collection */
13
- sortOrder?: number | null;
14
- }
15
- /** Project is the main entity of ProjectsService */
16
- export interface Project extends ProjectCoverOneOf {
17
- /** project's cover photo */
18
- coverImage?: Image;
19
- /** project's cover video */
20
- coverVideo?: Video;
21
- /**
22
- * Project ID
23
- * @readonly
24
- */
25
- _id?: string | null;
26
- /**
27
- * 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
28
- * @readonly
29
- */
30
- revision?: string | null;
31
- title?: string | null;
32
- description?: string | null;
33
- /** indicates if the project should be hidden from Portfolio */
34
- hidden?: boolean | null;
35
- /** Collections must exist to be added to a project. can be created/updated/deleted using this //TODO */
36
- collectionIds?: string[];
37
- /** Custom project details */
38
- details?: ProjectDetail[];
39
- slug?: string | null;
40
- /**
41
- * Represents the time this Project was created
42
- * @readonly
43
- */
44
- _createdDate?: Date;
45
- /**
46
- * Represents the time this Project was last updated
47
- * @readonly
48
- */
49
- _updatedDate?: Date;
50
- /**
51
- * Url and relative url of Project - in order to receive this field in READ requests you will need to pass the `include_page_url` field as part of request
52
- * @readonly
53
- */
54
- url?: string;
55
- seoData?: SeoSchema;
56
- /**
57
- * indicates if the project is synced from external platform (via integration page) and therefore will be updated from the external platform on daily basis
58
- * @readonly
59
- */
60
- syncedProject?: boolean | null;
61
- }
62
- /** @oneof */
63
- export interface ProjectCoverOneOf {
64
- /** project's cover photo */
65
- coverImage?: Image;
66
- /** project's cover video */
67
- coverVideo?: Video;
68
- }
69
- export interface Image {
70
- /** Image info - Wix Media Image. */
71
- imageInfo?: string;
72
- /** Focal point of the image. */
73
- focalPoint?: Point;
74
- }
75
- export declare enum ImageType {
76
- UNDEFINED = "UNDEFINED",
77
- WIX_MEDIA = "WIX_MEDIA",
78
- EXTERNAL = "EXTERNAL"
79
- }
80
- export interface Point {
81
- /** X-coordinate of the focal point. */
82
- x?: number;
83
- /** Y-coordinate of the focal point. */
84
- y?: number;
85
- }
86
- export interface UnsharpMasking {
87
- /**
88
- * Unsharp masking amount. Controls the sharpening strength. <br />
89
- *
90
- * Min: `0` <br />
91
- * Max: `5`
92
- */
93
- amount?: number | null;
94
- /** Unsharp masking radius in pixels. Controls the sharpening width. */
95
- radius?: number | null;
96
- /**
97
- * Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />
98
- *
99
- * Min: `0` <br />
100
- * Max: `1`
101
- */
102
- threshold?: number | null;
103
- }
104
- export interface Video {
105
- /** Video info - Wix Media Image. */
106
- videoInfo?: string;
107
- /** Manually defined Video duration in milliseconds. */
108
- durationInMillis?: number | null;
109
- }
110
- export interface VideoResolution {
111
- /** Video URL. Required. */
112
- url?: string;
113
- /** Video height. Required. */
114
- height?: number;
115
- /** Video width. Required. */
116
- width?: number;
117
- /** Video format for example, mp4, hls. Required. */
118
- format?: string;
119
- /** Video quality for example 480p, 720p. */
120
- quality?: string | null;
121
- /** Video filename. */
122
- filename?: string | null;
123
- }
124
- export interface ProjectDetail extends ProjectDetailValueOneOf {
125
- text?: string;
126
- link?: DetailsLink;
127
- label?: string;
128
- }
129
- /** @oneof */
130
- export interface ProjectDetailValueOneOf {
131
- text?: string;
132
- link?: DetailsLink;
133
- }
134
- export interface DetailsLink {
135
- text?: string | null;
136
- /** link to external source */
137
- url?: string | null;
138
- /**
139
- * Whether the link opens in a new tab or window. One of:
140
- * * `'_blank'`: The link opens in a new tab or window.
141
- * * `'_self'`: The link opens in the same tab or window.
142
- */
143
- target?: string | null;
144
- }
145
- export interface ProjectSource {
146
- appDefId?: string;
147
- externalId?: string;
148
- sourceName?: string;
149
- description?: string | null;
150
- /** link to external source */
151
- link?: string | null;
152
- syncStatus?: SyncStatus;
153
- /** fields that are synced from external source, should be blocked to update in UI */
154
- notEditableFields?: string[];
155
- /** last date the project was synced */
156
- lastSync?: Date;
157
- }
158
- export declare enum SyncStatus {
159
- SYNCED = "SYNCED",
160
- SYNCING = "SYNCING",
161
- NOT_SYNCED = "NOT_SYNCED"
162
- }
163
- /**
164
- * 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.
165
- * The search engines use this information for ranking purposes, or to display snippets in the search results.
166
- * 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.
167
- */
168
- export interface SeoSchema {
169
- /** SEO tag information. */
170
- tags?: Tag[];
171
- /** SEO general settings. */
172
- settings?: Settings;
173
- }
174
- export interface Keyword {
175
- /** Keyword value. */
176
- term?: string;
177
- /** Whether the keyword is the main focus keyword. */
178
- isMain?: boolean;
179
- }
180
- export interface Tag {
181
- /**
182
- * SEO tag type.
183
- *
184
- *
185
- * Supported values: `title`, `meta`, `script`, `link`.
186
- */
187
- type?: string;
188
- /**
189
- * A `{'key':'value'}` pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
190
- * For example: `{'name': 'description', 'content': 'the description itself'}`.
191
- */
192
- props?: Record<string, any> | null;
193
- /** SEO tag meta data. For example, `{height: 300, width: 240}`. */
194
- meta?: Record<string, any> | null;
195
- /** SEO tag inner content. For example, `<title> inner content </title>`. */
196
- children?: string;
197
- /** Whether the tag is a custom tag. */
198
- custom?: boolean;
199
- /** Whether the tag is disabled. */
200
- disabled?: boolean;
201
- }
202
- export interface Settings {
203
- /**
204
- * Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
205
- *
206
- *
207
- * Default: `false` (Auto Redirect is enabled.)
208
- */
209
- preventAutoRedirect?: boolean;
210
- /** User-selected keyword terms for a specific page. */
211
- keywords?: Keyword[];
212
- }
213
- export interface QueryProjectInCollectionsRequest {
214
- /** WQL expression */
215
- query: QueryV2;
216
- includePageUrl?: boolean | null;
217
- }
218
- export interface QueryV2 extends QueryV2PagingMethodOneOf {
219
- /** Paging options to limit and skip the number of items. */
220
- paging?: Paging;
221
- /** 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`. */
222
- cursorPaging?: CursorPaging;
223
- /**
224
- * Filter object in the following format:
225
- * `"filter" : {
226
- * "fieldName1": "value1",
227
- * "fieldName2":{"$operator":"value2"}
228
- * }`
229
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
230
- */
231
- filter?: Record<string, any> | null;
232
- /**
233
- * Sort object in the following format:
234
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
235
- */
236
- sort?: Sorting[];
237
- /** 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. */
238
- fields?: string[];
239
- /** 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. */
240
- fieldsets?: string[];
241
- }
242
- /** @oneof */
243
- export interface QueryV2PagingMethodOneOf {
244
- /** Paging options to limit and skip the number of items. */
245
- paging?: Paging;
246
- /** 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`. */
247
- cursorPaging?: CursorPaging;
248
- }
249
- export interface Sorting {
250
- /** Name of the field to sort by. */
251
- fieldName?: string;
252
- /** Sort order. */
253
- order?: SortOrder;
254
- }
255
- export declare enum SortOrder {
256
- ASC = "ASC",
257
- DESC = "DESC"
258
- }
259
- export interface Paging {
260
- /** Number of items to load. */
261
- limit?: number | null;
262
- /** Number of items to skip in the current sort order. */
263
- offset?: number | null;
264
- }
265
- export interface CursorPaging {
266
- /** Maximum number of items to return in the results. */
267
- limit?: number | null;
268
- /**
269
- * Pointer to the next or previous page in the list of results.
270
- *
271
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
272
- * Not relevant for the first request.
273
- */
274
- cursor?: string | null;
275
- }
276
- export interface QueryProjectInCollectionsResponse {
277
- /** The retrieved Projects in Collections context */
278
- projectInCollections?: ProjectInCollection[];
279
- /** Paging metadata */
280
- metadata?: PagingMetadataV2;
281
- }
282
- export interface PagingMetadataV2 {
283
- /** Number of items returned in the response. */
284
- count?: number | null;
285
- /** Offset that was requested. */
286
- offset?: number | null;
287
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
288
- total?: number | null;
289
- /** Flag that indicates the server failed to calculate the `total` field. */
290
- tooManyToCount?: boolean | null;
291
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
292
- cursors?: Cursors;
293
- }
294
- export interface Cursors {
295
- /** Cursor string pointing to the next page in the list of results. */
296
- next?: string | null;
297
- /** Cursor pointing to the previous page in the list of results. */
298
- prev?: string | null;
299
- }
300
- export interface UpdateProjectOrderInCollectionRequest {
301
- /** Id of the Project to update its order */
302
- projectId: string;
303
- /** Id of the collection in which the project will be re-ordered */
304
- collectionId: string;
305
- /** The new sort order of the project in the given collection */
306
- sortOrder: number | null;
307
- }
308
- export interface UpdateProjectOrderInCollectionResponse {
309
- /** project with new sort order set */
310
- projectInCollection?: ProjectInCollection;
311
- }
312
- export interface ProjectOrderInCollectionUpdatedEvent {
313
- /** Id of the Project to update its order */
314
- projectId?: string;
315
- /** Id of the collection in which the project will be re-ordered */
316
- collectionId?: string;
317
- /** The new sort order of the project in the given collection */
318
- sortOrder?: number | null;
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
- }
387
- export interface QueryProjectInCollectionsResponseNonNullableFields {
388
- projectInCollections: {
389
- collectionId: string;
390
- project?: {
391
- coverImage?: {
392
- imageInfo: string;
393
- focalPoint?: {
394
- x: number;
395
- y: number;
396
- };
397
- };
398
- coverVideo?: {
399
- videoInfo: string;
400
- };
401
- collectionIds: string[];
402
- details: {
403
- text: string;
404
- label: string;
405
- }[];
406
- url: string;
407
- seoData?: {
408
- tags: {
409
- type: string;
410
- children: string;
411
- custom: boolean;
412
- disabled: boolean;
413
- }[];
414
- settings?: {
415
- preventAutoRedirect: boolean;
416
- keywords: {
417
- term: string;
418
- isMain: boolean;
419
- }[];
420
- };
421
- };
422
- };
423
- }[];
424
- }
425
- export interface UpdateProjectOrderInCollectionResponseNonNullableFields {
426
- projectInCollection?: {
427
- collectionId: string;
428
- project?: {
429
- coverImage?: {
430
- imageInfo: string;
431
- focalPoint?: {
432
- x: number;
433
- y: number;
434
- };
435
- };
436
- coverVideo?: {
437
- videoInfo: string;
438
- };
439
- collectionIds: string[];
440
- details: {
441
- text: string;
442
- label: string;
443
- }[];
444
- url: string;
445
- seoData?: {
446
- tags: {
447
- type: string;
448
- children: string;
449
- custom: boolean;
450
- disabled: boolean;
451
- }[];
452
- settings?: {
453
- preventAutoRedirect: boolean;
454
- keywords: {
455
- term: string;
456
- isMain: boolean;
457
- }[];
458
- };
459
- };
460
- };
461
- };
462
- }
463
- /**
464
- * Query project in collection context using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
465
- *
466
- * 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
467
- *
468
- * Supported Fields for query and ordering: collectionId, project.id, sortOrder, project.hidden, project.slug
469
- *
470
- * If you want to Query project by Project properties please use ProjectsService.Query method - link //TODO
471
- * @public
472
- * @documentationMaturity preview
473
- * @applicableIdentity MEMBER
474
- * @applicableIdentity VISITOR
475
- */
476
- export declare function queryProjectInCollections(options?: QueryProjectInCollectionsOptions): ProjectInCollectionsQueryBuilder;
477
- export interface QueryProjectInCollectionsOptions {
478
- includePageUrl?: boolean | null | undefined;
479
- }
480
- interface QueryCursorResult {
481
- cursors: Cursors;
482
- hasNext: () => boolean;
483
- hasPrev: () => boolean;
484
- length: number;
485
- pageSize: number;
486
- }
487
- export interface ProjectInCollectionsQueryResult extends QueryCursorResult {
488
- items: ProjectInCollection[];
489
- query: ProjectInCollectionsQueryBuilder;
490
- next: () => Promise<ProjectInCollectionsQueryResult>;
491
- prev: () => Promise<ProjectInCollectionsQueryResult>;
492
- }
493
- export interface ProjectInCollectionsQueryBuilder {
494
- /** @param propertyName - Property whose value is compared with `value`.
495
- * @param value - Value to compare against.
496
- * @documentationMaturity preview
497
- */
498
- eq: (propertyName: 'collectionId' | 'project.id' | 'project.hidden' | 'project.slug' | 'sortOrder', value: any) => ProjectInCollectionsQueryBuilder;
499
- /** @param propertyName - Property whose value is compared with `value`.
500
- * @param value - Value to compare against.
501
- * @documentationMaturity preview
502
- */
503
- ne: (propertyName: 'collectionId' | 'project.id' | 'project.hidden' | 'project.slug' | 'sortOrder', value: any) => ProjectInCollectionsQueryBuilder;
504
- /** @param propertyName - Property whose value is compared with `value`.
505
- * @param value - Value to compare against.
506
- * @documentationMaturity preview
507
- */
508
- ge: (propertyName: 'sortOrder', value: any) => ProjectInCollectionsQueryBuilder;
509
- /** @param propertyName - Property whose value is compared with `value`.
510
- * @param value - Value to compare against.
511
- * @documentationMaturity preview
512
- */
513
- gt: (propertyName: 'sortOrder', value: any) => ProjectInCollectionsQueryBuilder;
514
- /** @param propertyName - Property whose value is compared with `value`.
515
- * @param value - Value to compare against.
516
- * @documentationMaturity preview
517
- */
518
- le: (propertyName: 'sortOrder', value: any) => ProjectInCollectionsQueryBuilder;
519
- /** @param propertyName - Property whose value is compared with `value`.
520
- * @param value - Value to compare against.
521
- * @documentationMaturity preview
522
- */
523
- lt: (propertyName: 'sortOrder', value: any) => ProjectInCollectionsQueryBuilder;
524
- /** @param propertyName - Property whose value is compared with `string`.
525
- * @param string - String to compare against. Case-insensitive.
526
- * @documentationMaturity preview
527
- */
528
- startsWith: (propertyName: 'collectionId' | 'project.id' | 'project.slug', value: string) => ProjectInCollectionsQueryBuilder;
529
- /** @param propertyName - Property whose value is compared with `values`.
530
- * @param values - List of values to compare against.
531
- * @documentationMaturity preview
532
- */
533
- hasSome: (propertyName: 'collectionId' | 'project.id' | 'project.hidden' | 'project.slug' | 'sortOrder', value: any[]) => ProjectInCollectionsQueryBuilder;
534
- /** @documentationMaturity preview */
535
- in: (propertyName: 'collectionId' | 'project.id' | 'project.hidden' | 'project.slug' | 'sortOrder', value: any) => ProjectInCollectionsQueryBuilder;
536
- /** @documentationMaturity preview */
537
- exists: (propertyName: 'collectionId' | 'project.id' | 'project.hidden' | 'project.slug' | 'sortOrder', value: boolean) => ProjectInCollectionsQueryBuilder;
538
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
539
- * @documentationMaturity preview
540
- */
541
- ascending: (...propertyNames: Array<'collectionId' | 'project.id' | 'project.slug' | 'sortOrder'>) => ProjectInCollectionsQueryBuilder;
542
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
543
- * @documentationMaturity preview
544
- */
545
- descending: (...propertyNames: Array<'collectionId' | 'project.id' | 'project.slug' | 'sortOrder'>) => ProjectInCollectionsQueryBuilder;
546
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
547
- * @documentationMaturity preview
548
- */
549
- limit: (limit: number) => ProjectInCollectionsQueryBuilder;
550
- /** @param cursor - A pointer to specific record
551
- * @documentationMaturity preview
552
- */
553
- skipTo: (cursor: string) => ProjectInCollectionsQueryBuilder;
554
- /** @documentationMaturity preview */
555
- find: () => Promise<ProjectInCollectionsQueryResult>;
556
- }
557
- /**
558
- * Updates Project's order in a given Collection
559
- * @param sortOrder - The new sort order of the project in the given collection
560
- * @public
561
- * @documentationMaturity preview
562
- * @requiredField identifiers
563
- * @requiredField identifiers.collectionId
564
- * @requiredField identifiers.projectId
565
- * @requiredField sortOrder
566
- */
567
- export declare function updateProjectOrderInCollection(identifiers: UpdateProjectOrderInCollectionIdentifiers, sortOrder: number | null): Promise<UpdateProjectOrderInCollectionResponse & UpdateProjectOrderInCollectionResponseNonNullableFields>;
568
- export interface UpdateProjectOrderInCollectionIdentifiers {
569
- /** Id of the Project to update its order */
570
- projectId: string;
571
- /** Id of the collection in which the project will be re-ordered */
572
- collectionId: string;
573
- }
574
- export {};