@wix/portfolio 1.0.0

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 (79) hide show
  1. package/build/cjs/index.d.ts +3 -0
  2. package/build/cjs/index.js +26 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/src/portfolio-collections-v1-collection.http.d.ts +17 -0
  5. package/build/cjs/src/portfolio-collections-v1-collection.http.js +319 -0
  6. package/build/cjs/src/portfolio-collections-v1-collection.http.js.map +1 -0
  7. package/build/cjs/src/portfolio-collections-v1-collection.public.d.ts +10 -0
  8. package/build/cjs/src/portfolio-collections-v1-collection.public.js +45 -0
  9. package/build/cjs/src/portfolio-collections-v1-collection.public.js.map +1 -0
  10. package/build/cjs/src/portfolio-collections-v1-collection.types.d.ts +384 -0
  11. package/build/cjs/src/portfolio-collections-v1-collection.types.js +21 -0
  12. package/build/cjs/src/portfolio-collections-v1-collection.types.js.map +1 -0
  13. package/build/cjs/src/portfolio-collections-v1-collection.universal.d.ts +449 -0
  14. package/build/cjs/src/portfolio-collections-v1-collection.universal.js +385 -0
  15. package/build/cjs/src/portfolio-collections-v1-collection.universal.js.map +1 -0
  16. package/build/cjs/src/portfolio-project-items-v1-project-item.http.d.ts +18 -0
  17. package/build/cjs/src/portfolio-project-items-v1-project-item.http.js +382 -0
  18. package/build/cjs/src/portfolio-project-items-v1-project-item.http.js.map +1 -0
  19. package/build/cjs/src/portfolio-project-items-v1-project-item.public.d.ts +12 -0
  20. package/build/cjs/src/portfolio-project-items-v1-project-item.public.js +58 -0
  21. package/build/cjs/src/portfolio-project-items-v1-project-item.public.js.map +1 -0
  22. package/build/cjs/src/portfolio-project-items-v1-project-item.types.d.ts +549 -0
  23. package/build/cjs/src/portfolio-project-items-v1-project-item.types.js +28 -0
  24. package/build/cjs/src/portfolio-project-items-v1-project-item.types.js.map +1 -0
  25. package/build/cjs/src/portfolio-project-items-v1-project-item.universal.d.ts +685 -0
  26. package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js +495 -0
  27. package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js.map +1 -0
  28. package/build/cjs/src/portfolio-projects-v1-project.http.d.ts +29 -0
  29. package/build/cjs/src/portfolio-projects-v1-project.http.js +428 -0
  30. package/build/cjs/src/portfolio-projects-v1-project.http.js.map +1 -0
  31. package/build/cjs/src/portfolio-projects-v1-project.public.d.ts +12 -0
  32. package/build/cjs/src/portfolio-projects-v1-project.public.js +63 -0
  33. package/build/cjs/src/portfolio-projects-v1-project.public.js.map +1 -0
  34. package/build/cjs/src/portfolio-projects-v1-project.types.d.ts +755 -0
  35. package/build/cjs/src/portfolio-projects-v1-project.types.js +113 -0
  36. package/build/cjs/src/portfolio-projects-v1-project.types.js.map +1 -0
  37. package/build/cjs/src/portfolio-projects-v1-project.universal.d.ts +892 -0
  38. package/build/cjs/src/portfolio-projects-v1-project.universal.js +595 -0
  39. package/build/cjs/src/portfolio-projects-v1-project.universal.js.map +1 -0
  40. package/build/es/index.d.ts +3 -0
  41. package/build/es/index.js +4 -0
  42. package/build/es/index.js.map +1 -0
  43. package/build/es/src/portfolio-collections-v1-collection.http.d.ts +17 -0
  44. package/build/es/src/portfolio-collections-v1-collection.http.js +310 -0
  45. package/build/es/src/portfolio-collections-v1-collection.http.js.map +1 -0
  46. package/build/es/src/portfolio-collections-v1-collection.public.d.ts +10 -0
  47. package/build/es/src/portfolio-collections-v1-collection.public.js +33 -0
  48. package/build/es/src/portfolio-collections-v1-collection.public.js.map +1 -0
  49. package/build/es/src/portfolio-collections-v1-collection.types.d.ts +384 -0
  50. package/build/es/src/portfolio-collections-v1-collection.types.js +18 -0
  51. package/build/es/src/portfolio-collections-v1-collection.types.js.map +1 -0
  52. package/build/es/src/portfolio-collections-v1-collection.universal.d.ts +449 -0
  53. package/build/es/src/portfolio-collections-v1-collection.universal.js +357 -0
  54. package/build/es/src/portfolio-collections-v1-collection.universal.js.map +1 -0
  55. package/build/es/src/portfolio-project-items-v1-project-item.http.d.ts +18 -0
  56. package/build/es/src/portfolio-project-items-v1-project-item.http.js +371 -0
  57. package/build/es/src/portfolio-project-items-v1-project-item.http.js.map +1 -0
  58. package/build/es/src/portfolio-project-items-v1-project-item.public.d.ts +12 -0
  59. package/build/es/src/portfolio-project-items-v1-project-item.public.js +43 -0
  60. package/build/es/src/portfolio-project-items-v1-project-item.public.js.map +1 -0
  61. package/build/es/src/portfolio-project-items-v1-project-item.types.d.ts +549 -0
  62. package/build/es/src/portfolio-project-items-v1-project-item.types.js +25 -0
  63. package/build/es/src/portfolio-project-items-v1-project-item.types.js.map +1 -0
  64. package/build/es/src/portfolio-project-items-v1-project-item.universal.d.ts +685 -0
  65. package/build/es/src/portfolio-project-items-v1-project-item.universal.js +465 -0
  66. package/build/es/src/portfolio-project-items-v1-project-item.universal.js.map +1 -0
  67. package/build/es/src/portfolio-projects-v1-project.http.d.ts +29 -0
  68. package/build/es/src/portfolio-projects-v1-project.http.js +417 -0
  69. package/build/es/src/portfolio-projects-v1-project.http.js.map +1 -0
  70. package/build/es/src/portfolio-projects-v1-project.public.d.ts +12 -0
  71. package/build/es/src/portfolio-projects-v1-project.public.js +43 -0
  72. package/build/es/src/portfolio-projects-v1-project.public.js.map +1 -0
  73. package/build/es/src/portfolio-projects-v1-project.types.d.ts +755 -0
  74. package/build/es/src/portfolio-projects-v1-project.types.js +110 -0
  75. package/build/es/src/portfolio-projects-v1-project.types.js.map +1 -0
  76. package/build/es/src/portfolio-projects-v1-project.universal.d.ts +892 -0
  77. package/build/es/src/portfolio-projects-v1-project.universal.js +565 -0
  78. package/build/es/src/portfolio-projects-v1-project.universal.js.map +1 -0
  79. package/package.json +37 -0
@@ -0,0 +1,549 @@
1
+ /** ProjectItem is the main entity of ProjectItemsService */
2
+ export interface Item extends ItemMetadataOneOf {
3
+ /**
4
+ * Id of the Project the items are part of
5
+ * Project must exist before adding items to it. project can be created/updated/deleted using this //TODO
6
+ */
7
+ projectId?: string;
8
+ /**
9
+ * Item ID.
10
+ * @readonly
11
+ */
12
+ id?: string | null;
13
+ /**
14
+ * Item sort order.
15
+ * Determines which position a media item is displayed in the gallery. <br />
16
+ *
17
+ * Min: `1` <br />
18
+ * Default: [Epoch](https://www.epoch101.com/) timestamp in descending order (end of the gallery items list). <br />
19
+ *
20
+ * *Note:** If the same sort order number is assigned to more than one media item in a gallery, the first media item to which it was assigned will come first.
21
+ */
22
+ sortOrder?: number | null;
23
+ /** Item title. */
24
+ title?: string | null;
25
+ /** Item description. */
26
+ description?: string | null;
27
+ /**
28
+ * Item data type. One of:
29
+ * <br />
30
+ * +`"IMAGE"`
31
+ * <br />
32
+ * +`"VIDEO"`
33
+ * <br />
34
+ * +`"TEXT"`
35
+ * @readonly
36
+ */
37
+ type?: Type;
38
+ /**
39
+ * Date and time the item was created.
40
+ * @readonly
41
+ */
42
+ createdDate?: Date;
43
+ /**
44
+ * Date and time the item was last updated.
45
+ * @readonly
46
+ */
47
+ updatedDate?: Date;
48
+ /** Item tags. */
49
+ tags?: Tags;
50
+ /** Information about the image. */
51
+ image?: Image;
52
+ /** Information about the video. */
53
+ video?: Video;
54
+ }
55
+ /** @oneof */
56
+ export interface ItemMetadataOneOf {
57
+ /** Information about the image. */
58
+ image?: Image;
59
+ /** Information about the video. */
60
+ video?: Video;
61
+ }
62
+ export declare enum Type {
63
+ UNDEFINED = "UNDEFINED",
64
+ IMAGE = "IMAGE",
65
+ VIDEO = "VIDEO"
66
+ }
67
+ export interface Image {
68
+ /** Image info - Wix Media Image. Required. */
69
+ imageInfo?: CommonImage;
70
+ /** Focal point of the image. */
71
+ focalPoint?: Point;
72
+ /** Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). */
73
+ exif?: Record<string, any> | null;
74
+ /**
75
+ * Image compression level. <br />
76
+ *
77
+ * Min: `30` <br />
78
+ * Max: `100`
79
+ */
80
+ quality?: number | null;
81
+ /** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */
82
+ unsharpMasking?: UnsharpMasking;
83
+ }
84
+ export declare enum ImageType {
85
+ UNDEFINED = "UNDEFINED",
86
+ WIX_MEDIA = "WIX_MEDIA",
87
+ EXTERNAL = "EXTERNAL"
88
+ }
89
+ export interface CommonImage {
90
+ /** WixMedia image ID. Required. */
91
+ id?: string;
92
+ /**
93
+ * Image URL.
94
+ * @readonly
95
+ */
96
+ url?: string;
97
+ /** Original image height. Required. */
98
+ height?: number;
99
+ /** Original image width. Required. */
100
+ width?: number;
101
+ /** Image alt text. */
102
+ altText?: string | null;
103
+ /** Image filename. */
104
+ filename?: string | null;
105
+ }
106
+ export interface Point {
107
+ /** X-coordinate of the focal point. */
108
+ x?: number;
109
+ /** Y-coordinate of the focal point. */
110
+ y?: number;
111
+ }
112
+ export interface UnsharpMasking {
113
+ /**
114
+ * Unsharp masking amount. Controls the sharpening strength. <br />
115
+ *
116
+ * Min: `0` <br />
117
+ * Max: `5`
118
+ */
119
+ amount?: number | null;
120
+ /** Unsharp masking radius in pixels. Controls the sharpening width. */
121
+ radius?: number | null;
122
+ /**
123
+ * Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />
124
+ *
125
+ * Min: `0` <br />
126
+ * Max: `1`
127
+ */
128
+ threshold?: number | null;
129
+ }
130
+ export interface Video {
131
+ type?: VideoType;
132
+ /** Video info - can include Wix Media or an external link from YouTube or Vimeo. Required. */
133
+ videoInfo?: VideoV2;
134
+ /** Manually defined Video duration in milliseconds. */
135
+ durationInMillis?: number | null;
136
+ }
137
+ export declare enum VideoType {
138
+ UNDEFINED = "UNDEFINED",
139
+ WIX_MEDIA = "WIX_MEDIA",
140
+ YOUTUBE = "YOUTUBE",
141
+ VIMEO = "VIMEO"
142
+ }
143
+ export interface VideoV2 {
144
+ /** WixMedia ID. Required when associating an existing Wix Media video. */
145
+ id?: string;
146
+ /** Video URL. Required when associating a video from an external source (YouTube/Vimeo). */
147
+ url?: string;
148
+ /** Available resolutions for the video, starting with the optimal resolution. */
149
+ resolutions?: VideoResolution[];
150
+ /** Video filename. */
151
+ filename?: string | null;
152
+ /** Video posters. */
153
+ posters?: CommonImage[];
154
+ }
155
+ export interface VideoResolution {
156
+ /** Video URL. Required. */
157
+ url?: string;
158
+ /** Video height. Required. */
159
+ height?: number;
160
+ /** Video width. Required. */
161
+ width?: number;
162
+ /** Video format for example, mp4, hls. Required. */
163
+ format?: string;
164
+ /** Video quality for example 480p, 720p. */
165
+ quality?: string | null;
166
+ /** Video filename. */
167
+ filename?: string | null;
168
+ }
169
+ export interface Tags {
170
+ /** List of tags assigned to the media item. */
171
+ values?: string[];
172
+ }
173
+ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
174
+ /** tell us why you're invalidating the cache. You don't need to add your app name */
175
+ reason?: string | null;
176
+ /** Is local DS */
177
+ localDc?: boolean;
178
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
179
+ metaSiteId?: string;
180
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
181
+ siteId?: string;
182
+ /** Invalidate by App */
183
+ app?: App;
184
+ /** Invalidate by page id */
185
+ page?: Page;
186
+ /** Invalidate by URI path */
187
+ uri?: URI;
188
+ }
189
+ /** @oneof */
190
+ export interface InvalidateCacheGetByOneOf {
191
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
192
+ metaSiteId?: string;
193
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
194
+ siteId?: string;
195
+ /** Invalidate by App */
196
+ app?: App;
197
+ /** Invalidate by page id */
198
+ page?: Page;
199
+ /** Invalidate by URI path */
200
+ uri?: URI;
201
+ }
202
+ export interface App {
203
+ /** The AppDefId */
204
+ appDefId?: string;
205
+ /** The instance Id */
206
+ instanceId?: string;
207
+ }
208
+ export interface Page {
209
+ /** the msid the page is on */
210
+ metaSiteId?: string;
211
+ /** Invalidate by Page ID */
212
+ pageId?: string;
213
+ }
214
+ export interface URI {
215
+ /** the msid the URI is on */
216
+ metaSiteId?: string;
217
+ /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
218
+ uriPath?: string;
219
+ }
220
+ export interface CreateProjectItemRequest {
221
+ projectId: string;
222
+ /** Item to be created */
223
+ item: Item;
224
+ }
225
+ export interface CreateProjectItemResponse {
226
+ projectId?: string;
227
+ /** The created item */
228
+ item?: Item;
229
+ }
230
+ export interface BulkCreateProjectItemsRequest {
231
+ /**
232
+ * Id of the Project the items are part of
233
+ * Project must exist before adding items to it. project can be created/updated/deleted using this //TODO
234
+ */
235
+ projectId: string;
236
+ /** items to be created. */
237
+ items: Item[];
238
+ }
239
+ export interface BulkCreateProjectItemsResponse {
240
+ /** Id of the Project the item is part of */
241
+ projectId?: string;
242
+ /** Array with all created items results. */
243
+ results?: BulkCreateProjectItemResult[];
244
+ /** Holds metadata of the entire bulk create operation */
245
+ bulkActionMetadata?: BulkActionMetadata;
246
+ }
247
+ export interface BulkCreateProjectItemResult {
248
+ /** Holds information about an item in bulk create - id, index in original request array, action successful, error (if failed) */
249
+ itemMetadata?: ItemMetadata;
250
+ item?: Item;
251
+ }
252
+ export interface ItemMetadata {
253
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
254
+ id?: string | null;
255
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
256
+ originalIndex?: number;
257
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
258
+ success?: boolean;
259
+ /** Details about the error in case of failure. */
260
+ error?: ApplicationError;
261
+ }
262
+ export interface ApplicationError {
263
+ code?: string;
264
+ description?: string;
265
+ data?: Record<string, any> | null;
266
+ }
267
+ export interface BulkActionMetadata {
268
+ /** Number of items that were successfully processed. */
269
+ totalSuccesses?: number;
270
+ /** Number of items that couldn't be processed. */
271
+ totalFailures?: number;
272
+ /** Number of failures without details because detailed failure threshold was exceeded. */
273
+ undetailedFailures?: number;
274
+ }
275
+ export interface GetProjectItemRequest {
276
+ /** Id of the Project the item is part of */
277
+ projectId: string;
278
+ /** Id of the ProjectItem to retrieve */
279
+ itemId: string;
280
+ }
281
+ export interface GetProjectItemResponse {
282
+ /** Id of the Project the item is part of */
283
+ projectId?: string;
284
+ /** The retrieved ProjectItem */
285
+ item?: Item;
286
+ }
287
+ export interface ListProjectItemsRequest {
288
+ /** Id of the Project the item is part of */
289
+ projectId: string;
290
+ /** limit and offset for ProjectItems - maximum limit is 200 per request, default is 50 */
291
+ paging?: Paging;
292
+ }
293
+ export interface Paging {
294
+ /** Number of items to load. */
295
+ limit?: number | null;
296
+ /** Number of items to skip in the current sort order. */
297
+ offset?: number | null;
298
+ }
299
+ export interface ListProjectItemsResponse {
300
+ /** Id of the Project the item is part of */
301
+ projectId?: string;
302
+ /** ProjectItems retrieved */
303
+ items?: Item[];
304
+ /** Paging metadata */
305
+ pagingMetadataV2?: PagingMetadataV2;
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 pointing to next page in the list of results. */
323
+ next?: string | null;
324
+ /** Cursor pointing to previous page in the list of results. */
325
+ prev?: string | null;
326
+ }
327
+ export interface QueryProjectItemsRequest {
328
+ /** WQL expression */
329
+ query?: QueryV2;
330
+ /** limit and offset for ProjectItems - maximum limit is 200 per request, default is 50 */
331
+ paging?: Paging;
332
+ }
333
+ export interface QueryV2 extends QueryV2PagingMethodOneOf {
334
+ /**
335
+ * Filter object in the following format:
336
+ * `"filter" : {
337
+ * "fieldName1": "value1",
338
+ * "fieldName2":{"$operator":"value2"}
339
+ * }`
340
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
341
+ */
342
+ filter?: Record<string, any> | null;
343
+ /**
344
+ * Sort object in the following format:
345
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
346
+ */
347
+ sort?: Sorting[];
348
+ /** 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. */
349
+ fields?: string[];
350
+ /** 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. */
351
+ fieldsets?: string[];
352
+ /** Paging options to limit and skip the number of items. */
353
+ paging?: Paging;
354
+ /** 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`. */
355
+ cursorPaging?: CursorPaging;
356
+ }
357
+ /** @oneof */
358
+ export interface QueryV2PagingMethodOneOf {
359
+ /** Paging options to limit and skip the number of items. */
360
+ paging?: Paging;
361
+ /** 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`. */
362
+ cursorPaging?: CursorPaging;
363
+ }
364
+ export interface Sorting {
365
+ /** Name of the field to sort by. */
366
+ fieldName?: string;
367
+ /** Sort order. */
368
+ order?: SortOrder;
369
+ }
370
+ export declare enum SortOrder {
371
+ ASC = "ASC",
372
+ DESC = "DESC"
373
+ }
374
+ export interface CursorPaging {
375
+ /** Number of items to load. */
376
+ limit?: number | null;
377
+ /**
378
+ * Pointer to the next or previous page in the list of results.
379
+ *
380
+ * You can get the relevant cursor token
381
+ * from the `pagingMetadata` object in the previous call's response.
382
+ * Not relevant for the first request.
383
+ */
384
+ cursor?: string | null;
385
+ }
386
+ export interface QueryProjectItemsResponse {
387
+ /** ProjectItems retrieved */
388
+ items?: Item[];
389
+ /** Paging metadata */
390
+ metadata?: PagingMetadataV2;
391
+ }
392
+ export interface UpdateProjectItemRequest {
393
+ /** Id of the Project the item is part of */
394
+ projectId: string;
395
+ /** ProjectItem to be updated, may be partial */
396
+ item: Item;
397
+ }
398
+ export interface UpdateProjectItemResponse {
399
+ /** Id of the Project the item is part of */
400
+ projectId?: string;
401
+ /** The updated ProjectItem */
402
+ item?: Item;
403
+ }
404
+ export interface BulkUpdateProjectItemsRequest {
405
+ /** Id of the Project the items are part of */
406
+ projectId: string;
407
+ /** items to be updated. */
408
+ items: Item[];
409
+ }
410
+ export interface BulkUpdateProjectItemsResponse {
411
+ /** Id of the Project the item is part of */
412
+ projectId?: string;
413
+ /** Array with all updated items results. */
414
+ results?: BulkUpdateProjectItemResult[];
415
+ /** Holds metadata of the entire bulk update operation */
416
+ bulkActionMetadata?: BulkActionMetadata;
417
+ }
418
+ export interface BulkUpdateProjectItemResult {
419
+ /** Holds information about an item in bulk update - id, index in original request array, action successful, error (if failed). */
420
+ itemMetadata?: ItemMetadata;
421
+ item?: Item;
422
+ }
423
+ export interface DeleteProjectItemRequest {
424
+ /** Id of the Project the item is part of */
425
+ projectId: string;
426
+ /** Id of the Item to delete */
427
+ itemId: string;
428
+ }
429
+ export interface DeleteProjectItemResponse {
430
+ /** Id of the Project the item is part of */
431
+ projectId?: string;
432
+ /** Id of deleted item */
433
+ itemId?: string;
434
+ }
435
+ export interface BulkDeleteProjectItemsRequest {
436
+ /** Id of the project */
437
+ projectId: string;
438
+ /** Ids of the items to be deleted */
439
+ itemIds: string[];
440
+ }
441
+ export interface BulkDeleteProjectItemsResponse {
442
+ /** Id of the Project the item is part of */
443
+ projectId?: string;
444
+ /** Array with all deleted items results */
445
+ results?: BulkDeleteProjectItemResult[];
446
+ /** Holds metadata of the entire bulk delete operation */
447
+ bulkActionMetadata?: BulkActionMetadata;
448
+ }
449
+ export interface BulkDeleteProjectItemResult {
450
+ /** Holds information about an item in bulk delete - id, index in original request array, action successful, error (if failed) */
451
+ itemMetadata?: ItemMetadata;
452
+ /** Id of the ProjectItem */
453
+ itemId?: string;
454
+ }
455
+ export interface CreateProjectGalleryRequest {
456
+ /** Id of Project to create */
457
+ projectId?: string;
458
+ }
459
+ export interface CreateProjectGalleryResponse {
460
+ /** Id of created Project */
461
+ projectId?: string;
462
+ /** Id of created gallery */
463
+ galleryId?: string;
464
+ }
465
+ export interface DomainEvent extends DomainEventBodyOneOf {
466
+ /** random GUID so clients can tell if event was already handled */
467
+ id?: string;
468
+ /**
469
+ * Assumes actions are also always typed to an entity_type
470
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
471
+ */
472
+ entityFqdn?: string;
473
+ /**
474
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
475
+ * This is although the created/updated/deleted notion is duplication of the oneof types
476
+ * Example: created/updated/deleted/started/completed/email_opened
477
+ */
478
+ slug?: string;
479
+ /**
480
+ * Assuming that all messages including Actions have id
481
+ * Example: The id of the specific order, the id of a specific campaign
482
+ */
483
+ entityId?: string;
484
+ /** The time of the event. Useful if there was a delay in dispatching */
485
+ eventTime?: Date;
486
+ /**
487
+ * A field that should be set if this event was triggered by an anonymize request.
488
+ * For example you must set it to true when sending an event as a result of a GDPR right to be forgotten request.
489
+ * NOTE: This field is not relevant for `EntityCreatedEvent` but is located here for better ergonomics of consumers.
490
+ */
491
+ triggeredByAnonymizeRequest?: boolean | null;
492
+ /** If present, indicates the action that triggered the event. */
493
+ originatedFrom?: string | null;
494
+ /**
495
+ * A sequence number defining the order of updates to the underlying entity.
496
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
497
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
498
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
499
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
500
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
501
+ */
502
+ entityEventSequence?: string | null;
503
+ createdEvent?: EntityCreatedEvent;
504
+ updatedEvent?: EntityUpdatedEvent;
505
+ deletedEvent?: EntityDeletedEvent;
506
+ actionEvent?: ActionEvent;
507
+ extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
508
+ }
509
+ /** @oneof */
510
+ export interface DomainEventBodyOneOf {
511
+ createdEvent?: EntityCreatedEvent;
512
+ updatedEvent?: EntityUpdatedEvent;
513
+ deletedEvent?: EntityDeletedEvent;
514
+ actionEvent?: ActionEvent;
515
+ extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
516
+ }
517
+ export interface EntityCreatedEvent {
518
+ entityAsJson?: string;
519
+ }
520
+ export interface EntityUpdatedEvent {
521
+ /**
522
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
523
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
524
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
525
+ */
526
+ currentEntityAsJson?: string;
527
+ }
528
+ export interface EntityDeletedEvent {
529
+ }
530
+ export interface ActionEvent {
531
+ bodyAsJson?: string;
532
+ }
533
+ export interface ExtendedFieldsUpdatedEvent {
534
+ currentEntityAsJson?: string;
535
+ }
536
+ export interface Empty {
537
+ }
538
+ export interface DuplicateProjectItemsRequest {
539
+ /** Id of Project to duplicate */
540
+ originProjectId?: string;
541
+ /** Target project ID to duplicate to (same instance as request) */
542
+ targetProjectId?: string;
543
+ }
544
+ export interface DuplicateProjectItemsResponse {
545
+ /** Id of target project */
546
+ projectId?: string;
547
+ /** Result metadata */
548
+ bulkActionMetadata?: BulkActionMetadata;
549
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SortOrder = exports.VideoType = exports.ImageType = exports.Type = void 0;
4
+ var Type;
5
+ (function (Type) {
6
+ Type["UNDEFINED"] = "UNDEFINED";
7
+ Type["IMAGE"] = "IMAGE";
8
+ Type["VIDEO"] = "VIDEO";
9
+ })(Type = exports.Type || (exports.Type = {}));
10
+ var ImageType;
11
+ (function (ImageType) {
12
+ ImageType["UNDEFINED"] = "UNDEFINED";
13
+ ImageType["WIX_MEDIA"] = "WIX_MEDIA";
14
+ ImageType["EXTERNAL"] = "EXTERNAL";
15
+ })(ImageType = exports.ImageType || (exports.ImageType = {}));
16
+ var VideoType;
17
+ (function (VideoType) {
18
+ VideoType["UNDEFINED"] = "UNDEFINED";
19
+ VideoType["WIX_MEDIA"] = "WIX_MEDIA";
20
+ VideoType["YOUTUBE"] = "YOUTUBE";
21
+ VideoType["VIMEO"] = "VIMEO";
22
+ })(VideoType = exports.VideoType || (exports.VideoType = {}));
23
+ var SortOrder;
24
+ (function (SortOrder) {
25
+ SortOrder["ASC"] = "ASC";
26
+ SortOrder["DESC"] = "DESC";
27
+ })(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
28
+ //# sourceMappingURL=portfolio-project-items-v1-project-item.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portfolio-project-items-v1-project-item.types.js","sourceRoot":"","sources":["../../../src/portfolio-project-items-v1-project-item.types.ts"],"names":[],"mappings":";;;AA+DA,IAAY,IAIX;AAJD,WAAY,IAAI;IACd,+BAAuB,CAAA;IACvB,uBAAe,CAAA;IACf,uBAAe,CAAA;AACjB,CAAC,EAJW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAIf;AAoBD,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;AACvB,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AAsDD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;AACjB,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB;AAgQD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}