@wix/portfolio 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/build/cjs/index.d.ts +2 -1
  2. package/build/cjs/index.js +3 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/src/portfolio-collections-v1-collection.http.js +25 -25
  5. package/build/cjs/src/portfolio-collections-v1-collection.http.js.map +1 -1
  6. package/build/cjs/src/portfolio-collections-v1-collection.types.d.ts +8 -8
  7. package/build/cjs/src/portfolio-collections-v1-collection.types.js +7 -7
  8. package/build/cjs/src/portfolio-collections-v1-collection.types.js.map +1 -1
  9. package/build/cjs/src/portfolio-collections-v1-collection.universal.d.ts +3 -1
  10. package/build/cjs/src/portfolio-collections-v1-collection.universal.js +3 -1
  11. package/build/cjs/src/portfolio-collections-v1-collection.universal.js.map +1 -1
  12. package/build/cjs/src/portfolio-project-items-v1-project-item.http.js +21 -9
  13. package/build/cjs/src/portfolio-project-items-v1-project-item.http.js.map +1 -1
  14. package/build/cjs/src/portfolio-project-items-v1-project-item.public.d.ts +8 -8
  15. package/build/cjs/src/portfolio-project-items-v1-project-item.public.js +4 -4
  16. package/build/cjs/src/portfolio-project-items-v1-project-item.public.js.map +1 -1
  17. package/build/cjs/src/portfolio-project-items-v1-project-item.types.d.ts +28 -34
  18. package/build/cjs/src/portfolio-project-items-v1-project-item.types.js.map +1 -1
  19. package/build/cjs/src/portfolio-project-items-v1-project-item.universal.d.ts +57 -74
  20. package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js +112 -70
  21. package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js.map +1 -1
  22. package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.d.ts +14 -0
  23. package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.js +181 -0
  24. package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.js.map +1 -0
  25. package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.d.ts +6 -0
  26. package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.js +22 -0
  27. package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.js.map +1 -0
  28. package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.d.ts +338 -0
  29. package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.js +28 -0
  30. package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.js.map +1 -0
  31. package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.d.ts +397 -0
  32. package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.js +214 -0
  33. package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.js.map +1 -0
  34. package/build/cjs/src/portfolio-projects-v1-project.http.d.ts +1 -13
  35. package/build/cjs/src/portfolio-projects-v1-project.http.js +30 -118
  36. package/build/cjs/src/portfolio-projects-v1-project.http.js.map +1 -1
  37. package/build/cjs/src/portfolio-projects-v1-project.public.d.ts +6 -8
  38. package/build/cjs/src/portfolio-projects-v1-project.public.js +2 -14
  39. package/build/cjs/src/portfolio-projects-v1-project.public.js.map +1 -1
  40. package/build/cjs/src/portfolio-projects-v1-project.types.d.ts +109 -87
  41. package/build/cjs/src/portfolio-projects-v1-project.types.js +7 -7
  42. package/build/cjs/src/portfolio-projects-v1-project.types.js.map +1 -1
  43. package/build/cjs/src/portfolio-projects-v1-project.universal.d.ts +104 -167
  44. package/build/cjs/src/portfolio-projects-v1-project.universal.js +11 -144
  45. package/build/cjs/src/portfolio-projects-v1-project.universal.js.map +1 -1
  46. package/build/es/index.d.ts +2 -1
  47. package/build/es/index.js +2 -1
  48. package/build/es/index.js.map +1 -1
  49. package/build/es/src/portfolio-collections-v1-collection.http.js +25 -25
  50. package/build/es/src/portfolio-collections-v1-collection.http.js.map +1 -1
  51. package/build/es/src/portfolio-collections-v1-collection.types.d.ts +8 -8
  52. package/build/es/src/portfolio-collections-v1-collection.types.js +6 -6
  53. package/build/es/src/portfolio-collections-v1-collection.types.js.map +1 -1
  54. package/build/es/src/portfolio-collections-v1-collection.universal.d.ts +3 -1
  55. package/build/es/src/portfolio-collections-v1-collection.universal.js +3 -1
  56. package/build/es/src/portfolio-collections-v1-collection.universal.js.map +1 -1
  57. package/build/es/src/portfolio-project-items-v1-project-item.http.js +21 -9
  58. package/build/es/src/portfolio-project-items-v1-project-item.http.js.map +1 -1
  59. package/build/es/src/portfolio-project-items-v1-project-item.public.d.ts +8 -8
  60. package/build/es/src/portfolio-project-items-v1-project-item.public.js +4 -4
  61. package/build/es/src/portfolio-project-items-v1-project-item.public.js.map +1 -1
  62. package/build/es/src/portfolio-project-items-v1-project-item.types.d.ts +28 -34
  63. package/build/es/src/portfolio-project-items-v1-project-item.types.js.map +1 -1
  64. package/build/es/src/portfolio-project-items-v1-project-item.universal.d.ts +57 -74
  65. package/build/es/src/portfolio-project-items-v1-project-item.universal.js +112 -70
  66. package/build/es/src/portfolio-project-items-v1-project-item.universal.js.map +1 -1
  67. package/build/es/src/portfolio-projects-v1-project-in-collection.http.d.ts +14 -0
  68. package/build/es/src/portfolio-projects-v1-project-in-collection.http.js +176 -0
  69. package/build/es/src/portfolio-projects-v1-project-in-collection.http.js.map +1 -0
  70. package/build/es/src/portfolio-projects-v1-project-in-collection.public.d.ts +6 -0
  71. package/build/es/src/portfolio-projects-v1-project-in-collection.public.js +13 -0
  72. package/build/es/src/portfolio-projects-v1-project-in-collection.public.js.map +1 -0
  73. package/build/es/src/portfolio-projects-v1-project-in-collection.types.d.ts +338 -0
  74. package/build/es/src/portfolio-projects-v1-project-in-collection.types.js +25 -0
  75. package/build/es/src/portfolio-projects-v1-project-in-collection.types.js.map +1 -0
  76. package/build/es/src/portfolio-projects-v1-project-in-collection.universal.d.ts +397 -0
  77. package/build/es/src/portfolio-projects-v1-project-in-collection.universal.js +190 -0
  78. package/build/es/src/portfolio-projects-v1-project-in-collection.universal.js.map +1 -0
  79. package/build/es/src/portfolio-projects-v1-project.http.d.ts +1 -13
  80. package/build/es/src/portfolio-projects-v1-project.http.js +29 -115
  81. package/build/es/src/portfolio-projects-v1-project.http.js.map +1 -1
  82. package/build/es/src/portfolio-projects-v1-project.public.d.ts +6 -8
  83. package/build/es/src/portfolio-projects-v1-project.public.js +2 -12
  84. package/build/es/src/portfolio-projects-v1-project.public.js.map +1 -1
  85. package/build/es/src/portfolio-projects-v1-project.types.d.ts +109 -87
  86. package/build/es/src/portfolio-projects-v1-project.types.js +6 -6
  87. package/build/es/src/portfolio-projects-v1-project.types.js.map +1 -1
  88. package/build/es/src/portfolio-projects-v1-project.universal.d.ts +104 -167
  89. package/build/es/src/portfolio-projects-v1-project.universal.js +10 -141
  90. package/build/es/src/portfolio-projects-v1-project.universal.js.map +1 -1
  91. package/package.json +2 -2
@@ -4,7 +4,7 @@ export interface Item extends ItemMetadataOneOf {
4
4
  * Id of the Project the items are part of
5
5
  * Project must exist before adding items to it. project can be created/updated/deleted using this //TODO
6
6
  */
7
- projectId?: string;
7
+ projectId?: string | null;
8
8
  /**
9
9
  * Item ID.
10
10
  * @readonly
@@ -65,21 +65,10 @@ export declare enum Type {
65
65
  VIDEO = "VIDEO"
66
66
  }
67
67
  export interface Image {
68
- /** Image info - Wix Media Image. Required. */
68
+ /** Image info - Wix Media Image. */
69
69
  imageInfo?: CommonImage;
70
70
  /** Focal point of the image. */
71
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
72
  }
84
73
  export declare enum ImageType {
85
74
  UNDEFINED = "UNDEFINED",
@@ -128,8 +117,7 @@ export interface UnsharpMasking {
128
117
  threshold?: number | null;
129
118
  }
130
119
  export interface Video {
131
- type?: VideoType;
132
- /** Video info - can include Wix Media or an external link from YouTube or Vimeo. Required. */
120
+ /** Video info - Wix Media Image. */
133
121
  videoInfo?: VideoV2;
134
122
  /** Manually defined Video duration in milliseconds. */
135
123
  durationInMillis?: number | null;
@@ -141,9 +129,9 @@ export declare enum VideoType {
141
129
  VIMEO = "VIMEO"
142
130
  }
143
131
  export interface VideoV2 {
144
- /** WixMedia ID. Required when associating an existing Wix Media video. */
132
+ /** WixMedia ID. Required. */
145
133
  id?: string;
146
- /** Video URL. Required when associating a video from an external source (YouTube/Vimeo). */
134
+ /** Video URL. */
147
135
  url?: string;
148
136
  /** Available resolutions for the video, starting with the optimal resolution. */
149
137
  resolutions?: VideoResolution[];
@@ -170,6 +158,19 @@ export interface Tags {
170
158
  /** List of tags assigned to the media item. */
171
159
  values?: string[];
172
160
  }
161
+ export interface GenerateTokenForProjectItemsRequest {
162
+ /** Media ids of requested project items */
163
+ mediaIds?: string[];
164
+ }
165
+ export interface GenerateTokenForProjectItemsResponse {
166
+ mediaTokens?: ProjectItemMediaToken[];
167
+ }
168
+ export interface ProjectItemMediaToken {
169
+ /** Media id of project item */
170
+ mediaId?: string;
171
+ /** Generated media token for project item */
172
+ mediaToken?: string;
173
+ }
173
174
  export interface InvalidateCache extends InvalidateCacheGetByOneOf {
174
175
  /** tell us why you're invalidating the cache. You don't need to add your app name */
175
176
  reason?: string | null;
@@ -218,12 +219,10 @@ export interface URI {
218
219
  uriPath?: string;
219
220
  }
220
221
  export interface CreateProjectItemRequest {
221
- projectId: string;
222
222
  /** Item to be created */
223
223
  item: Item;
224
224
  }
225
225
  export interface CreateProjectItemResponse {
226
- projectId?: string;
227
226
  /** The created item */
228
227
  item?: Item;
229
228
  }
@@ -235,6 +234,7 @@ export interface BulkCreateProjectItemsRequest {
235
234
  projectId: string;
236
235
  /** items to be created. */
237
236
  items: Item[];
237
+ returnFullEntity?: boolean | null;
238
238
  }
239
239
  export interface BulkCreateProjectItemsResponse {
240
240
  /** Id of the Project the item is part of */
@@ -260,8 +260,11 @@ export interface ItemMetadata {
260
260
  error?: ApplicationError;
261
261
  }
262
262
  export interface ApplicationError {
263
+ /** Error code. */
263
264
  code?: string;
265
+ /** Description of the error. */
264
266
  description?: string;
267
+ /** Data related to the error. */
265
268
  data?: Record<string, any> | null;
266
269
  }
267
270
  export interface BulkActionMetadata {
@@ -273,14 +276,10 @@ export interface BulkActionMetadata {
273
276
  undetailedFailures?: number;
274
277
  }
275
278
  export interface GetProjectItemRequest {
276
- /** Id of the Project the item is part of */
277
- projectId: string;
278
279
  /** Id of the ProjectItem to retrieve */
279
280
  itemId: string;
280
281
  }
281
282
  export interface GetProjectItemResponse {
282
- /** Id of the Project the item is part of */
283
- projectId?: string;
284
283
  /** The retrieved ProjectItem */
285
284
  item?: Item;
286
285
  }
@@ -297,8 +296,6 @@ export interface Paging {
297
296
  offset?: number | null;
298
297
  }
299
298
  export interface ListProjectItemsResponse {
300
- /** Id of the Project the item is part of */
301
- projectId?: string;
302
299
  /** ProjectItems retrieved */
303
300
  items?: Item[];
304
301
  /** Paging metadata */
@@ -327,8 +324,6 @@ export interface Cursors {
327
324
  export interface QueryProjectItemsRequest {
328
325
  /** WQL expression */
329
326
  query?: QueryV2;
330
- /** limit and offset for ProjectItems - maximum limit is 200 per request, default is 50 */
331
- paging?: Paging;
332
327
  }
333
328
  export interface QueryV2 extends QueryV2PagingMethodOneOf {
334
329
  /**
@@ -390,14 +385,10 @@ export interface QueryProjectItemsResponse {
390
385
  metadata?: PagingMetadataV2;
391
386
  }
392
387
  export interface UpdateProjectItemRequest {
393
- /** Id of the Project the item is part of */
394
- projectId: string;
395
388
  /** ProjectItem to be updated, may be partial */
396
389
  item: Item;
397
390
  }
398
391
  export interface UpdateProjectItemResponse {
399
- /** Id of the Project the item is part of */
400
- projectId?: string;
401
392
  /** The updated ProjectItem */
402
393
  item?: Item;
403
394
  }
@@ -405,7 +396,12 @@ export interface BulkUpdateProjectItemsRequest {
405
396
  /** Id of the Project the items are part of */
406
397
  projectId: string;
407
398
  /** items to be updated. */
408
- items: Item[];
399
+ items?: Item[];
400
+ returnFullEntity?: boolean | null;
401
+ }
402
+ export interface MaskedItem {
403
+ item?: Item;
404
+ fieldMask?: string[];
409
405
  }
410
406
  export interface BulkUpdateProjectItemsResponse {
411
407
  /** Id of the Project the item is part of */
@@ -421,8 +417,6 @@ export interface BulkUpdateProjectItemResult {
421
417
  item?: Item;
422
418
  }
423
419
  export interface DeleteProjectItemRequest {
424
- /** Id of the Project the item is part of */
425
- projectId: string;
426
420
  /** Id of the Item to delete */
427
421
  itemId: string;
428
422
  }
@@ -1 +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"}
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;AASD,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;AACvB,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AAqDD,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;AA0QD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
@@ -10,7 +10,7 @@ export interface Item extends ItemMetadataOneOf {
10
10
  * Id of the Project the items are part of
11
11
  * Project must exist before adding items to it. project can be created/updated/deleted using this //TODO
12
12
  */
13
- projectId?: string;
13
+ projectId?: string | null;
14
14
  /**
15
15
  * Item ID.
16
16
  * @readonly
@@ -71,21 +71,10 @@ export declare enum Type {
71
71
  VIDEO = "VIDEO"
72
72
  }
73
73
  export interface Image {
74
- /** Image info - Wix Media Image. Required. */
74
+ /** Image info - Wix Media Image. */
75
75
  imageInfo?: string;
76
76
  /** Focal point of the image. */
77
77
  focalPoint?: Point;
78
- /** Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). */
79
- exif?: Record<string, any> | null;
80
- /**
81
- * Image compression level. <br />
82
- *
83
- * Min: `30` <br />
84
- * Max: `100`
85
- */
86
- quality?: number | null;
87
- /** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */
88
- unsharpMasking?: UnsharpMasking;
89
78
  }
90
79
  export declare enum ImageType {
91
80
  UNDEFINED = "UNDEFINED",
@@ -117,8 +106,7 @@ export interface UnsharpMasking {
117
106
  threshold?: number | null;
118
107
  }
119
108
  export interface Video {
120
- type?: VideoType;
121
- /** Video info - can include Wix Media or an external link from YouTube or Vimeo. Required. */
109
+ /** Video info - Wix Media Image. */
122
110
  videoInfo?: string;
123
111
  /** Manually defined Video duration in milliseconds. */
124
112
  durationInMillis?: number | null;
@@ -147,6 +135,19 @@ export interface Tags {
147
135
  /** List of tags assigned to the media item. */
148
136
  values?: string[];
149
137
  }
138
+ export interface GenerateTokenForProjectItemsRequest {
139
+ /** Media ids of requested project items */
140
+ mediaIds?: string[];
141
+ }
142
+ export interface GenerateTokenForProjectItemsResponse {
143
+ mediaTokens?: ProjectItemMediaToken[];
144
+ }
145
+ export interface ProjectItemMediaToken {
146
+ /** Media id of project item */
147
+ mediaId?: string;
148
+ /** Generated media token for project item */
149
+ mediaToken?: string;
150
+ }
150
151
  export interface InvalidateCache extends InvalidateCacheGetByOneOf {
151
152
  /** tell us why you're invalidating the cache. You don't need to add your app name */
152
153
  reason?: string | null;
@@ -195,12 +196,10 @@ export interface URI {
195
196
  uriPath?: string;
196
197
  }
197
198
  export interface CreateProjectItemRequest {
198
- projectId: string;
199
199
  /** Item to be created */
200
200
  item: Item;
201
201
  }
202
202
  export interface CreateProjectItemResponse {
203
- projectId?: string;
204
203
  /** The created item */
205
204
  item?: Item;
206
205
  }
@@ -212,6 +211,7 @@ export interface BulkCreateProjectItemsRequest {
212
211
  projectId: string;
213
212
  /** items to be created. */
214
213
  items: Item[];
214
+ returnFullEntity?: boolean | null;
215
215
  }
216
216
  export interface BulkCreateProjectItemsResponse {
217
217
  /** Id of the Project the item is part of */
@@ -237,8 +237,11 @@ export interface ItemMetadata {
237
237
  error?: ApplicationError;
238
238
  }
239
239
  export interface ApplicationError {
240
+ /** Error code. */
240
241
  code?: string;
242
+ /** Description of the error. */
241
243
  description?: string;
244
+ /** Data related to the error. */
242
245
  data?: Record<string, any> | null;
243
246
  }
244
247
  export interface BulkActionMetadata {
@@ -250,14 +253,10 @@ export interface BulkActionMetadata {
250
253
  undetailedFailures?: number;
251
254
  }
252
255
  export interface GetProjectItemRequest {
253
- /** Id of the Project the item is part of */
254
- projectId: string;
255
256
  /** Id of the ProjectItem to retrieve */
256
257
  itemId: string;
257
258
  }
258
259
  export interface GetProjectItemResponse {
259
- /** Id of the Project the item is part of */
260
- projectId?: string;
261
260
  /** The retrieved ProjectItem */
262
261
  item?: Item;
263
262
  }
@@ -274,8 +273,6 @@ export interface Paging {
274
273
  offset?: number | null;
275
274
  }
276
275
  export interface ListProjectItemsResponse {
277
- /** Id of the Project the item is part of */
278
- projectId?: string;
279
276
  /** ProjectItems retrieved */
280
277
  items?: Item[];
281
278
  /** Paging metadata */
@@ -304,8 +301,6 @@ export interface Cursors {
304
301
  export interface QueryProjectItemsRequest {
305
302
  /** WQL expression */
306
303
  query?: QueryV2;
307
- /** limit and offset for ProjectItems - maximum limit is 200 per request, default is 50 */
308
- paging?: Paging;
309
304
  }
310
305
  export interface QueryV2 extends QueryV2PagingMethodOneOf {
311
306
  /**
@@ -367,14 +362,10 @@ export interface QueryProjectItemsResponse {
367
362
  metadata?: PagingMetadataV2;
368
363
  }
369
364
  export interface UpdateProjectItemRequest {
370
- /** Id of the Project the item is part of */
371
- projectId: string;
372
365
  /** ProjectItem to be updated, may be partial */
373
366
  item: Item;
374
367
  }
375
368
  export interface UpdateProjectItemResponse {
376
- /** Id of the Project the item is part of */
377
- projectId?: string;
378
369
  /** The updated ProjectItem */
379
370
  item?: Item;
380
371
  }
@@ -382,7 +373,12 @@ export interface BulkUpdateProjectItemsRequest {
382
373
  /** Id of the Project the items are part of */
383
374
  projectId: string;
384
375
  /** items to be updated. */
385
- items: Item[];
376
+ items?: Item[];
377
+ returnFullEntity?: boolean | null;
378
+ }
379
+ export interface MaskedItem {
380
+ item?: Item;
381
+ fieldMask?: string[];
386
382
  }
387
383
  export interface BulkUpdateProjectItemsResponse {
388
384
  /** Id of the Project the item is part of */
@@ -398,8 +394,6 @@ export interface BulkUpdateProjectItemResult {
398
394
  item?: Item;
399
395
  }
400
396
  export interface DeleteProjectItemRequest {
401
- /** Id of the Project the item is part of */
402
- projectId: string;
403
397
  /** Id of the Item to delete */
404
398
  itemId: string;
405
399
  }
@@ -528,42 +522,41 @@ export interface DuplicateProjectItemsResponse {
528
522
  * Creates a new ProjectItem
529
523
  * @param item - Item to be created
530
524
  * @public
525
+ * @documentationMaturity preview
531
526
  * @requiredField item
532
- * @requiredField projectId
527
+ * @requiredField item.projectId
528
+ * @returns The created item
533
529
  */
534
- export declare function createProjectItem(projectId: string, item: Item): Promise<CreateProjectItemResponse>;
530
+ export declare function createProjectItem(item: Item): Promise<Item>;
535
531
  /**
536
532
  * Create items in bulk
537
533
  * @param projectId - Id of the Project the items are part of
538
534
  * Project must exist before adding items to it. project can be created/updated/deleted using this //TODO
539
535
  * @public
540
- * @requiredField options
536
+ * @documentationMaturity preview
541
537
  * @requiredField options.items
542
538
  * @requiredField projectId
543
539
  */
544
- export declare function bulkCreateProjectItems(projectId: string, options: BulkCreateProjectItemsOptions): Promise<BulkCreateProjectItemsResponse>;
540
+ export declare function bulkCreateProjectItems(projectId: string, options?: BulkCreateProjectItemsOptions): Promise<BulkCreateProjectItemsResponse>;
545
541
  export interface BulkCreateProjectItemsOptions {
546
542
  /** items to be created. */
547
543
  items: Item[];
544
+ returnFullEntity?: boolean | null;
548
545
  }
549
546
  /**
550
547
  * Get a ProjectItem by id
548
+ * @param itemId - Id of the ProjectItem to retrieve
551
549
  * @public
552
- * @requiredField identifiers
553
- * @requiredField identifiers.itemId
554
- * @requiredField identifiers.projectId
550
+ * @documentationMaturity preview
551
+ * @requiredField itemId
552
+ * @returns The retrieved ProjectItem
555
553
  */
556
- export declare function getProjectItem(identifiers: GetProjectItemIdentifiers): Promise<GetProjectItemResponse>;
557
- export interface GetProjectItemIdentifiers {
558
- /** Id of the Project the item is part of */
559
- projectId: string;
560
- /** Id of the ProjectItem to retrieve */
561
- itemId: string;
562
- }
554
+ export declare function getProjectItem(itemId: string): Promise<Item>;
563
555
  /**
564
556
  * List all items in project
565
557
  * @param projectId - Id of the Project the item is part of
566
558
  * @public
559
+ * @documentationMaturity preview
567
560
  * @requiredField projectId
568
561
  */
569
562
  export declare function listProjectItems(projectId: string, options?: ListProjectItemsOptions): Promise<ListProjectItemsResponse>;
@@ -573,28 +566,21 @@ export interface ListProjectItemsOptions {
573
566
  }
574
567
  /**
575
568
  * Update a ProjectItem, supports partial update
569
+ * @param _id - Item ID.
576
570
  * @public
577
- * @requiredField identifiers
578
- * @requiredField identifiers.itemId
579
- * @requiredField identifiers.projectId
571
+ * @documentationMaturity preview
572
+ * @requiredField _id
580
573
  * @requiredField item
574
+ * @requiredField item.projectId
575
+ * @returns The updated ProjectItem
581
576
  */
582
- export declare function updateProjectItem(identifiers: UpdateProjectItemIdentifiers, item: UpdateProjectItem): Promise<UpdateProjectItemResponse>;
583
- export interface UpdateProjectItemIdentifiers {
584
- /** Id of the Project the item is part of */
585
- projectId: string;
586
- /**
587
- * Item ID.
588
- * @readonly
589
- */
590
- itemId?: string | null;
591
- }
577
+ export declare function updateProjectItem(_id: string | null, item: UpdateProjectItem): Promise<Item>;
592
578
  export interface UpdateProjectItem {
593
579
  /**
594
580
  * Id of the Project the items are part of
595
581
  * Project must exist before adding items to it. project can be created/updated/deleted using this //TODO
596
582
  */
597
- projectId?: string;
583
+ projectId?: string | null;
598
584
  /**
599
585
  * Item ID.
600
586
  * @readonly
@@ -646,34 +632,31 @@ export interface UpdateProjectItem {
646
632
  * Update ProjectItems in bulk
647
633
  * @param projectId - Id of the Project the items are part of
648
634
  * @public
649
- * @requiredField options
650
- * @requiredField options.items
635
+ * @documentationMaturity preview
636
+ * @requiredField maskedItems.item
637
+ * @requiredField maskedItems.item._id
651
638
  * @requiredField options.items._id
652
639
  * @requiredField projectId
653
640
  */
654
- export declare function bulkUpdateProjectItems(projectId: string, options: BulkUpdateProjectItemsOptions): Promise<BulkUpdateProjectItemsResponse>;
641
+ export declare function bulkUpdateProjectItems(projectId: string, options?: BulkUpdateProjectItemsOptions): Promise<BulkUpdateProjectItemsResponse>;
655
642
  export interface BulkUpdateProjectItemsOptions {
656
643
  /** items to be updated. */
657
- items: Item[];
644
+ items?: Item[];
645
+ returnFullEntity?: boolean | null;
658
646
  }
659
647
  /**
660
648
  * Delete a ProjectItem
649
+ * @param itemId - Id of the Item to delete
661
650
  * @public
662
- * @requiredField identifiers
663
- * @requiredField identifiers.itemId
664
- * @requiredField identifiers.projectId
651
+ * @documentationMaturity preview
652
+ * @requiredField itemId
665
653
  */
666
- export declare function deleteProjectItem(identifiers: DeleteProjectItemIdentifiers): Promise<DeleteProjectItemResponse>;
667
- export interface DeleteProjectItemIdentifiers {
668
- /** Id of the Project the item is part of */
669
- projectId: string;
670
- /** Id of the Item to delete */
671
- itemId: string;
672
- }
654
+ export declare function deleteProjectItem(itemId: string): Promise<DeleteProjectItemResponse>;
673
655
  /**
674
656
  * Delete items in bulk
675
657
  * @param projectId - Id of the project
676
658
  * @public
659
+ * @documentationMaturity preview
677
660
  * @requiredField options
678
661
  * @requiredField options.itemIds
679
662
  * @requiredField projectId