@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,578 +0,0 @@
1
- /** Collection is the main entity of CollectionsService */
2
- export interface Collection {
3
- /**
4
- * Collection ID
5
- * @readonly
6
- */
7
- id?: string | null;
8
- /**
9
- * 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
10
- * @readonly
11
- */
12
- revision?: string | null;
13
- title?: string | null;
14
- description?: string | null;
15
- /** Url of Collection */
16
- slug?: string | null;
17
- /** Collection's cover photo */
18
- coverImage?: CommonImage;
19
- /** Indicates if the collection is hidden from Portfolio */
20
- hidden?: boolean | null;
21
- /** if not present in an update it means the collection will be added as currentTimestamp - as the last collection */
22
- sortOrder?: number | null;
23
- /**
24
- * Represents the time this Collection was created
25
- * @readonly
26
- */
27
- createdDate?: Date;
28
- /**
29
- * Represents the time this Collection was last updated
30
- * @readonly
31
- */
32
- updatedDate?: Date;
33
- /**
34
- * 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
35
- * @readonly
36
- */
37
- url?: PageUrlV2;
38
- seoData?: SeoSchema;
39
- }
40
- export interface CommonImage {
41
- /** Image info - Wix Media Image. */
42
- imageInfo?: Image;
43
- /** Focal point of the image. */
44
- focalPoint?: CommonPoint;
45
- }
46
- export declare enum ImageImageType {
47
- UNDEFINED = "UNDEFINED",
48
- WIX_MEDIA = "WIX_MEDIA",
49
- EXTERNAL = "EXTERNAL"
50
- }
51
- export interface Image {
52
- /** WixMedia image ID. Required. */
53
- id?: string;
54
- /**
55
- * Image URL.
56
- * @readonly
57
- */
58
- url?: string;
59
- /** Original image height. Required. */
60
- height?: number;
61
- /** Original image width. Required. */
62
- width?: number;
63
- /** Image alt text. */
64
- altText?: string | null;
65
- /** Image filename. */
66
- filename?: string | null;
67
- }
68
- export interface CommonPoint {
69
- /** X-coordinate of the focal point. */
70
- x?: number;
71
- /** Y-coordinate of the focal point. */
72
- y?: number;
73
- }
74
- export interface CommonUnsharpMasking {
75
- /**
76
- * Unsharp masking amount. Controls the sharpening strength. <br />
77
- *
78
- * Min: `0` <br />
79
- * Max: `5`
80
- */
81
- amount?: number | null;
82
- /** Unsharp masking radius in pixels. Controls the sharpening width. */
83
- radius?: number | null;
84
- /**
85
- * Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />
86
- *
87
- * Min: `0` <br />
88
- * Max: `1`
89
- */
90
- threshold?: number | null;
91
- }
92
- export interface PageUrlV2 {
93
- /** The relative path for the page within the site. For example, `/product-page/a-product`. */
94
- relativePath?: string;
95
- /** The page's full URL. For example, `https://mysite.com/product-page/a-product`. */
96
- url?: string | null;
97
- }
98
- /**
99
- * 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.
100
- * The search engines use this information for ranking purposes, or to display snippets in the search results.
101
- * 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.
102
- */
103
- export interface SeoSchema {
104
- /** SEO tag information. */
105
- tags?: Tag[];
106
- /** SEO general settings. */
107
- settings?: Settings;
108
- }
109
- export interface Keyword {
110
- /** Keyword value. */
111
- term?: string;
112
- /** Whether the keyword is the main focus keyword. */
113
- isMain?: boolean;
114
- }
115
- export interface Tag {
116
- /**
117
- * SEO tag type.
118
- *
119
- *
120
- * Supported values: `title`, `meta`, `script`, `link`.
121
- */
122
- type?: string;
123
- /**
124
- * A `{'key':'value'}` pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
125
- * For example: `{'name': 'description', 'content': 'the description itself'}`.
126
- */
127
- props?: Record<string, any> | null;
128
- /** SEO tag meta data. For example, `{height: 300, width: 240}`. */
129
- meta?: Record<string, any> | null;
130
- /** SEO tag inner content. For example, `<title> inner content </title>`. */
131
- children?: string;
132
- /** Whether the tag is a custom tag. */
133
- custom?: boolean;
134
- /** Whether the tag is disabled. */
135
- disabled?: boolean;
136
- }
137
- export interface Settings {
138
- /**
139
- * Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
140
- *
141
- *
142
- * Default: `false` (Auto Redirect is enabled.)
143
- */
144
- preventAutoRedirect?: boolean;
145
- /** User-selected keyword terms for a specific page. */
146
- keywords?: Keyword[];
147
- }
148
- export interface DomainEvent extends DomainEventBodyOneOf {
149
- createdEvent?: EntityCreatedEvent;
150
- updatedEvent?: EntityUpdatedEvent;
151
- deletedEvent?: EntityDeletedEvent;
152
- actionEvent?: ActionEvent;
153
- /**
154
- * Unique event ID.
155
- * Allows clients to ignore duplicate webhooks.
156
- */
157
- id?: string;
158
- /**
159
- * Assumes actions are also always typed to an entity_type
160
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
161
- */
162
- entityFqdn?: string;
163
- /**
164
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
165
- * This is although the created/updated/deleted notion is duplication of the oneof types
166
- * Example: created/updated/deleted/started/completed/email_opened
167
- */
168
- slug?: string;
169
- /** ID of the entity associated with the event. */
170
- entityId?: string;
171
- /** Event timestamp. */
172
- eventTime?: Date;
173
- /**
174
- * Whether the event was triggered as a result of a privacy regulation application
175
- * (for example, GDPR).
176
- */
177
- triggeredByAnonymizeRequest?: boolean | null;
178
- /** If present, indicates the action that triggered the event. */
179
- originatedFrom?: string | null;
180
- /**
181
- * A sequence number defining the order of updates to the underlying entity.
182
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
183
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
184
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
185
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
186
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
187
- */
188
- entityEventSequence?: string | null;
189
- }
190
- /** @oneof */
191
- export interface DomainEventBodyOneOf {
192
- createdEvent?: EntityCreatedEvent;
193
- updatedEvent?: EntityUpdatedEvent;
194
- deletedEvent?: EntityDeletedEvent;
195
- actionEvent?: ActionEvent;
196
- }
197
- export interface EntityCreatedEvent {
198
- entityAsJson?: string;
199
- }
200
- export interface EntityUpdatedEvent {
201
- /**
202
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
203
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
204
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
205
- */
206
- currentEntityAsJson?: string;
207
- }
208
- export interface EntityDeletedEvent {
209
- /** Entity that was deleted */
210
- deletedEntityAsJson?: string | null;
211
- }
212
- export interface ActionEvent {
213
- bodyAsJson?: string;
214
- }
215
- export interface Empty {
216
- }
217
- export interface AdminRemoveMenuItemsResponse {
218
- /** number of items queried for deletion */
219
- numItems?: number;
220
- /** number of items sucessfully deleted */
221
- numItemsSuccessfullyDeleted?: number;
222
- }
223
- export interface InvalidateCache extends 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
- /** tell us why you're invalidating the cache. You don't need to add your app name */
235
- reason?: string | null;
236
- /** Is local DS */
237
- localDc?: boolean;
238
- }
239
- /** @oneof */
240
- export interface InvalidateCacheGetByOneOf {
241
- /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
242
- metaSiteId?: string;
243
- /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
244
- siteId?: string;
245
- /** Invalidate by App */
246
- app?: App;
247
- /** Invalidate by page id */
248
- page?: Page;
249
- /** Invalidate by URI path */
250
- uri?: URI;
251
- }
252
- export interface App {
253
- /** The AppDefId */
254
- appDefId?: string;
255
- /** The instance Id */
256
- instanceId?: string;
257
- }
258
- export interface Page {
259
- /** the msid the page is on */
260
- metaSiteId?: string;
261
- /** Invalidate by Page ID */
262
- pageId?: string;
263
- }
264
- export interface URI {
265
- /** the msid the URI is on */
266
- metaSiteId?: string;
267
- /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
268
- uriPath?: string;
269
- }
270
- export interface CreateCollectionRequest {
271
- /** Collection to be created */
272
- collection: Collection;
273
- }
274
- export interface CreateCollectionResponse {
275
- /** The created Collection */
276
- collection?: Collection;
277
- }
278
- export interface GetCollectionRequest {
279
- /** Id of the Collection to retrieve */
280
- collectionId: string;
281
- includePageUrl?: boolean | null;
282
- }
283
- export interface GetCollectionResponse {
284
- /** The retrieved Collection */
285
- collection?: Collection;
286
- }
287
- export interface ListCollectionsRequest {
288
- /** Maximum limit per response is 100, in first request cursor is None */
289
- paging?: CursorPaging;
290
- includePageUrl?: boolean | null;
291
- }
292
- export interface CursorPaging {
293
- /** Maximum number of items to return in the results. */
294
- limit?: number | null;
295
- /**
296
- * Pointer to the next or previous page in the list of results.
297
- *
298
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
299
- * Not relevant for the first request.
300
- */
301
- cursor?: string | null;
302
- }
303
- export interface ListCollectionsResponse {
304
- /** Retrieved Collections */
305
- collections?: Collection[];
306
- /** Paging metadata */
307
- metadata?: PagingMetadataV2;
308
- }
309
- export interface PagingMetadataV2 {
310
- /** Number of items returned in the response. */
311
- count?: number | null;
312
- /** Offset that was requested. */
313
- offset?: number | null;
314
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
315
- total?: number | null;
316
- /** Flag that indicates the server failed to calculate the `total` field. */
317
- tooManyToCount?: boolean | null;
318
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
319
- cursors?: Cursors;
320
- }
321
- export interface Cursors {
322
- /** Cursor string pointing to the next page in the list of results. */
323
- next?: string | null;
324
- /** Cursor pointing to the previous page in the list of results. */
325
- prev?: string | null;
326
- }
327
- export interface UpdateCollectionRequest {
328
- /** Collection to be updated, may be partial */
329
- collection: Collection;
330
- }
331
- export interface UpdateCollectionResponse {
332
- /** The updated Collection */
333
- collection?: Collection;
334
- }
335
- export interface DeleteCollectionRequest {
336
- /** Id of the Collection to delete */
337
- collectionId: string;
338
- }
339
- export interface DeleteCollectionResponse {
340
- /** Id of the Deleted Collection */
341
- collectionId?: string;
342
- }
343
- export interface QueryCollectionsRequest {
344
- /** WQL expression */
345
- query: QueryV2;
346
- includePageUrl?: boolean | null;
347
- }
348
- export interface QueryV2 extends QueryV2PagingMethodOneOf {
349
- /** Paging options to limit and skip the number of items. */
350
- paging?: Paging;
351
- /** 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`. */
352
- cursorPaging?: CursorPaging;
353
- /**
354
- * Filter object in the following format:
355
- * `"filter" : {
356
- * "fieldName1": "value1",
357
- * "fieldName2":{"$operator":"value2"}
358
- * }`
359
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
360
- */
361
- filter?: Record<string, any> | null;
362
- /**
363
- * Sort object in the following format:
364
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
365
- */
366
- sort?: Sorting[];
367
- /** 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. */
368
- fields?: string[];
369
- /** 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. */
370
- fieldsets?: string[];
371
- }
372
- /** @oneof */
373
- export interface QueryV2PagingMethodOneOf {
374
- /** Paging options to limit and skip the number of items. */
375
- paging?: Paging;
376
- /** 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`. */
377
- cursorPaging?: CursorPaging;
378
- }
379
- export interface Sorting {
380
- /** Name of the field to sort by. */
381
- fieldName?: string;
382
- /** Sort order. */
383
- order?: SortOrder;
384
- }
385
- export declare enum SortOrder {
386
- ASC = "ASC",
387
- DESC = "DESC"
388
- }
389
- export interface Paging {
390
- /** Number of items to load. */
391
- limit?: number | null;
392
- /** Number of items to skip in the current sort order. */
393
- offset?: number | null;
394
- }
395
- export interface QueryCollectionsResponse {
396
- /** The retrieved Collections */
397
- collections?: Collection[];
398
- /** Paging metadata */
399
- metadata?: PagingMetadataV2;
400
- }
401
- export interface CreateCollectionResponseNonNullableFields {
402
- collection?: {
403
- coverImage?: {
404
- type: ImageImageType;
405
- imageInfo?: {
406
- id: string;
407
- url: string;
408
- height: number;
409
- width: number;
410
- };
411
- focalPoint?: {
412
- x: number;
413
- y: number;
414
- };
415
- };
416
- url?: {
417
- relativePath: string;
418
- };
419
- seoData?: {
420
- tags: {
421
- type: string;
422
- children: string;
423
- custom: boolean;
424
- disabled: boolean;
425
- }[];
426
- settings?: {
427
- preventAutoRedirect: boolean;
428
- keywords: {
429
- term: string;
430
- isMain: boolean;
431
- }[];
432
- };
433
- };
434
- };
435
- }
436
- export interface GetCollectionResponseNonNullableFields {
437
- collection?: {
438
- coverImage?: {
439
- type: ImageImageType;
440
- imageInfo?: {
441
- id: string;
442
- url: string;
443
- height: number;
444
- width: number;
445
- };
446
- focalPoint?: {
447
- x: number;
448
- y: number;
449
- };
450
- };
451
- url?: {
452
- relativePath: string;
453
- };
454
- seoData?: {
455
- tags: {
456
- type: string;
457
- children: string;
458
- custom: boolean;
459
- disabled: boolean;
460
- }[];
461
- settings?: {
462
- preventAutoRedirect: boolean;
463
- keywords: {
464
- term: string;
465
- isMain: boolean;
466
- }[];
467
- };
468
- };
469
- };
470
- }
471
- export interface ListCollectionsResponseNonNullableFields {
472
- collections: {
473
- coverImage?: {
474
- type: ImageImageType;
475
- imageInfo?: {
476
- id: string;
477
- url: string;
478
- height: number;
479
- width: number;
480
- };
481
- focalPoint?: {
482
- x: number;
483
- y: number;
484
- };
485
- };
486
- url?: {
487
- relativePath: string;
488
- };
489
- seoData?: {
490
- tags: {
491
- type: string;
492
- children: string;
493
- custom: boolean;
494
- disabled: boolean;
495
- }[];
496
- settings?: {
497
- preventAutoRedirect: boolean;
498
- keywords: {
499
- term: string;
500
- isMain: boolean;
501
- }[];
502
- };
503
- };
504
- }[];
505
- }
506
- export interface UpdateCollectionResponseNonNullableFields {
507
- collection?: {
508
- coverImage?: {
509
- type: ImageImageType;
510
- imageInfo?: {
511
- id: string;
512
- url: string;
513
- height: number;
514
- width: number;
515
- };
516
- focalPoint?: {
517
- x: number;
518
- y: number;
519
- };
520
- };
521
- url?: {
522
- relativePath: string;
523
- };
524
- seoData?: {
525
- tags: {
526
- type: string;
527
- children: string;
528
- custom: boolean;
529
- disabled: boolean;
530
- }[];
531
- settings?: {
532
- preventAutoRedirect: boolean;
533
- keywords: {
534
- term: string;
535
- isMain: boolean;
536
- }[];
537
- };
538
- };
539
- };
540
- }
541
- export interface DeleteCollectionResponseNonNullableFields {
542
- collectionId: string;
543
- }
544
- export interface QueryCollectionsResponseNonNullableFields {
545
- collections: {
546
- coverImage?: {
547
- type: ImageImageType;
548
- imageInfo?: {
549
- id: string;
550
- url: string;
551
- height: number;
552
- width: number;
553
- };
554
- focalPoint?: {
555
- x: number;
556
- y: number;
557
- };
558
- };
559
- url?: {
560
- relativePath: string;
561
- };
562
- seoData?: {
563
- tags: {
564
- type: string;
565
- children: string;
566
- custom: boolean;
567
- disabled: boolean;
568
- }[];
569
- settings?: {
570
- preventAutoRedirect: boolean;
571
- keywords: {
572
- term: string;
573
- isMain: boolean;
574
- }[];
575
- };
576
- };
577
- }[];
578
- }
@@ -1,12 +0,0 @@
1
- export var ImageImageType;
2
- (function (ImageImageType) {
3
- ImageImageType["UNDEFINED"] = "UNDEFINED";
4
- ImageImageType["WIX_MEDIA"] = "WIX_MEDIA";
5
- ImageImageType["EXTERNAL"] = "EXTERNAL";
6
- })(ImageImageType || (ImageImageType = {}));
7
- export var SortOrder;
8
- (function (SortOrder) {
9
- SortOrder["ASC"] = "ASC";
10
- SortOrder["DESC"] = "DESC";
11
- })(SortOrder || (SortOrder = {}));
12
- //# sourceMappingURL=portfolio-collections-v1-collection.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"portfolio-collections-v1-collection.types.js","sourceRoot":"","sources":["../../../src/portfolio-collections-v1-collection.types.ts"],"names":[],"mappings":"AA+CA,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;IACvB,uCAAqB,CAAA;AACvB,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAqXD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB"}