@wix/portfolio 1.0.10 → 1.0.12
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.
- package/build/cjs/index.d.ts +2 -1
- package/build/cjs/index.js +3 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.http.js +25 -25
- package/build/cjs/src/portfolio-collections-v1-collection.http.js.map +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.types.d.ts +8 -8
- package/build/cjs/src/portfolio-collections-v1-collection.types.js +7 -7
- package/build/cjs/src/portfolio-collections-v1-collection.types.js.map +1 -1
- package/build/cjs/src/portfolio-collections-v1-collection.universal.d.ts +3 -1
- package/build/cjs/src/portfolio-collections-v1-collection.universal.js +3 -1
- package/build/cjs/src/portfolio-collections-v1-collection.universal.js.map +1 -1
- package/build/cjs/src/portfolio-project-items-v1-project-item.http.js +21 -9
- package/build/cjs/src/portfolio-project-items-v1-project-item.http.js.map +1 -1
- package/build/cjs/src/portfolio-project-items-v1-project-item.public.d.ts +8 -8
- package/build/cjs/src/portfolio-project-items-v1-project-item.public.js +4 -4
- package/build/cjs/src/portfolio-project-items-v1-project-item.public.js.map +1 -1
- package/build/cjs/src/portfolio-project-items-v1-project-item.types.d.ts +28 -34
- package/build/cjs/src/portfolio-project-items-v1-project-item.types.js.map +1 -1
- package/build/cjs/src/portfolio-project-items-v1-project-item.universal.d.ts +55 -74
- package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js +110 -70
- package/build/cjs/src/portfolio-project-items-v1-project-item.universal.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.d.ts +14 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.js +181 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.http.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.d.ts +6 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.js +22 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.public.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.d.ts +338 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.js +28 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.types.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.d.ts +397 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.js +214 -0
- package/build/cjs/src/portfolio-projects-v1-project-in-collection.universal.js.map +1 -0
- package/build/cjs/src/portfolio-projects-v1-project.http.d.ts +1 -13
- package/build/cjs/src/portfolio-projects-v1-project.http.js +30 -118
- package/build/cjs/src/portfolio-projects-v1-project.http.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project.public.d.ts +6 -8
- package/build/cjs/src/portfolio-projects-v1-project.public.js +2 -14
- package/build/cjs/src/portfolio-projects-v1-project.public.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project.types.d.ts +109 -87
- package/build/cjs/src/portfolio-projects-v1-project.types.js +7 -7
- package/build/cjs/src/portfolio-projects-v1-project.types.js.map +1 -1
- package/build/cjs/src/portfolio-projects-v1-project.universal.d.ts +104 -167
- package/build/cjs/src/portfolio-projects-v1-project.universal.js +11 -144
- package/build/cjs/src/portfolio-projects-v1-project.universal.js.map +1 -1
- package/build/es/index.d.ts +2 -1
- package/build/es/index.js +2 -1
- package/build/es/index.js.map +1 -1
- package/build/es/src/portfolio-collections-v1-collection.http.js +25 -25
- package/build/es/src/portfolio-collections-v1-collection.http.js.map +1 -1
- package/build/es/src/portfolio-collections-v1-collection.types.d.ts +8 -8
- package/build/es/src/portfolio-collections-v1-collection.types.js +6 -6
- package/build/es/src/portfolio-collections-v1-collection.types.js.map +1 -1
- package/build/es/src/portfolio-collections-v1-collection.universal.d.ts +3 -1
- package/build/es/src/portfolio-collections-v1-collection.universal.js +3 -1
- package/build/es/src/portfolio-collections-v1-collection.universal.js.map +1 -1
- package/build/es/src/portfolio-project-items-v1-project-item.http.js +21 -9
- package/build/es/src/portfolio-project-items-v1-project-item.http.js.map +1 -1
- package/build/es/src/portfolio-project-items-v1-project-item.public.d.ts +8 -8
- package/build/es/src/portfolio-project-items-v1-project-item.public.js +4 -4
- package/build/es/src/portfolio-project-items-v1-project-item.public.js.map +1 -1
- package/build/es/src/portfolio-project-items-v1-project-item.types.d.ts +28 -34
- package/build/es/src/portfolio-project-items-v1-project-item.types.js.map +1 -1
- package/build/es/src/portfolio-project-items-v1-project-item.universal.d.ts +55 -74
- package/build/es/src/portfolio-project-items-v1-project-item.universal.js +110 -70
- package/build/es/src/portfolio-project-items-v1-project-item.universal.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project-in-collection.http.d.ts +14 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.http.js +176 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.http.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.public.d.ts +6 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.public.js +13 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.public.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.types.d.ts +338 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.types.js +25 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.types.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.universal.d.ts +397 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.universal.js +190 -0
- package/build/es/src/portfolio-projects-v1-project-in-collection.universal.js.map +1 -0
- package/build/es/src/portfolio-projects-v1-project.http.d.ts +1 -13
- package/build/es/src/portfolio-projects-v1-project.http.js +29 -115
- package/build/es/src/portfolio-projects-v1-project.http.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project.public.d.ts +6 -8
- package/build/es/src/portfolio-projects-v1-project.public.js +2 -12
- package/build/es/src/portfolio-projects-v1-project.public.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project.types.d.ts +109 -87
- package/build/es/src/portfolio-projects-v1-project.types.js +6 -6
- package/build/es/src/portfolio-projects-v1-project.types.js.map +1 -1
- package/build/es/src/portfolio-projects-v1-project.universal.d.ts +104 -167
- package/build/es/src/portfolio-projects-v1-project.universal.js +10 -141
- package/build/es/src/portfolio-projects-v1-project.universal.js.map +1 -1
- 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.
|
|
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
|
-
|
|
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
|
|
132
|
+
/** WixMedia ID. Required. */
|
|
145
133
|
id?: string;
|
|
146
|
-
/** Video URL.
|
|
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
|
|
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;
|
|
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.
|
|
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
|
-
|
|
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
|
|
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,40 @@ 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
|
-
* @
|
|
527
|
+
* @returns The created item
|
|
533
528
|
*/
|
|
534
|
-
export declare function createProjectItem(
|
|
529
|
+
export declare function createProjectItem(item: Item): Promise<Item>;
|
|
535
530
|
/**
|
|
536
531
|
* Create items in bulk
|
|
537
532
|
* @param projectId - Id of the Project the items are part of
|
|
538
533
|
* Project must exist before adding items to it. project can be created/updated/deleted using this //TODO
|
|
539
534
|
* @public
|
|
540
|
-
* @
|
|
535
|
+
* @documentationMaturity preview
|
|
541
536
|
* @requiredField options.items
|
|
542
537
|
* @requiredField projectId
|
|
543
538
|
*/
|
|
544
|
-
export declare function bulkCreateProjectItems(projectId: string, options
|
|
539
|
+
export declare function bulkCreateProjectItems(projectId: string, options?: BulkCreateProjectItemsOptions): Promise<BulkCreateProjectItemsResponse>;
|
|
545
540
|
export interface BulkCreateProjectItemsOptions {
|
|
546
541
|
/** items to be created. */
|
|
547
542
|
items: Item[];
|
|
543
|
+
returnFullEntity?: boolean | null;
|
|
548
544
|
}
|
|
549
545
|
/**
|
|
550
546
|
* Get a ProjectItem by id
|
|
547
|
+
* @param itemId - Id of the ProjectItem to retrieve
|
|
551
548
|
* @public
|
|
552
|
-
* @
|
|
553
|
-
* @requiredField
|
|
554
|
-
* @
|
|
549
|
+
* @documentationMaturity preview
|
|
550
|
+
* @requiredField itemId
|
|
551
|
+
* @returns The retrieved ProjectItem
|
|
555
552
|
*/
|
|
556
|
-
export declare function getProjectItem(
|
|
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
|
-
}
|
|
553
|
+
export declare function getProjectItem(itemId: string): Promise<Item>;
|
|
563
554
|
/**
|
|
564
555
|
* List all items in project
|
|
565
556
|
* @param projectId - Id of the Project the item is part of
|
|
566
557
|
* @public
|
|
558
|
+
* @documentationMaturity preview
|
|
567
559
|
* @requiredField projectId
|
|
568
560
|
*/
|
|
569
561
|
export declare function listProjectItems(projectId: string, options?: ListProjectItemsOptions): Promise<ListProjectItemsResponse>;
|
|
@@ -573,28 +565,20 @@ export interface ListProjectItemsOptions {
|
|
|
573
565
|
}
|
|
574
566
|
/**
|
|
575
567
|
* Update a ProjectItem, supports partial update
|
|
568
|
+
* @param _id - Item ID.
|
|
576
569
|
* @public
|
|
577
|
-
* @
|
|
578
|
-
* @requiredField
|
|
579
|
-
* @requiredField identifiers.projectId
|
|
570
|
+
* @documentationMaturity preview
|
|
571
|
+
* @requiredField _id
|
|
580
572
|
* @requiredField item
|
|
573
|
+
* @returns The updated ProjectItem
|
|
581
574
|
*/
|
|
582
|
-
export declare function updateProjectItem(
|
|
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
|
-
}
|
|
575
|
+
export declare function updateProjectItem(_id: string | null, item: UpdateProjectItem): Promise<Item>;
|
|
592
576
|
export interface UpdateProjectItem {
|
|
593
577
|
/**
|
|
594
578
|
* Id of the Project the items are part of
|
|
595
579
|
* Project must exist before adding items to it. project can be created/updated/deleted using this //TODO
|
|
596
580
|
*/
|
|
597
|
-
projectId?: string;
|
|
581
|
+
projectId?: string | null;
|
|
598
582
|
/**
|
|
599
583
|
* Item ID.
|
|
600
584
|
* @readonly
|
|
@@ -646,34 +630,31 @@ export interface UpdateProjectItem {
|
|
|
646
630
|
* Update ProjectItems in bulk
|
|
647
631
|
* @param projectId - Id of the Project the items are part of
|
|
648
632
|
* @public
|
|
649
|
-
* @
|
|
650
|
-
* @requiredField
|
|
633
|
+
* @documentationMaturity preview
|
|
634
|
+
* @requiredField maskedItems.item
|
|
635
|
+
* @requiredField maskedItems.item._id
|
|
651
636
|
* @requiredField options.items._id
|
|
652
637
|
* @requiredField projectId
|
|
653
638
|
*/
|
|
654
|
-
export declare function bulkUpdateProjectItems(projectId: string, options
|
|
639
|
+
export declare function bulkUpdateProjectItems(projectId: string, options?: BulkUpdateProjectItemsOptions): Promise<BulkUpdateProjectItemsResponse>;
|
|
655
640
|
export interface BulkUpdateProjectItemsOptions {
|
|
656
641
|
/** items to be updated. */
|
|
657
|
-
items
|
|
642
|
+
items?: Item[];
|
|
643
|
+
returnFullEntity?: boolean | null;
|
|
658
644
|
}
|
|
659
645
|
/**
|
|
660
646
|
* Delete a ProjectItem
|
|
647
|
+
* @param itemId - Id of the Item to delete
|
|
661
648
|
* @public
|
|
662
|
-
* @
|
|
663
|
-
* @requiredField
|
|
664
|
-
* @requiredField identifiers.projectId
|
|
649
|
+
* @documentationMaturity preview
|
|
650
|
+
* @requiredField itemId
|
|
665
651
|
*/
|
|
666
|
-
export declare function deleteProjectItem(
|
|
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
|
-
}
|
|
652
|
+
export declare function deleteProjectItem(itemId: string): Promise<DeleteProjectItemResponse>;
|
|
673
653
|
/**
|
|
674
654
|
* Delete items in bulk
|
|
675
655
|
* @param projectId - Id of the project
|
|
676
656
|
* @public
|
|
657
|
+
* @documentationMaturity preview
|
|
677
658
|
* @requiredField options
|
|
678
659
|
* @requiredField options.itemIds
|
|
679
660
|
* @requiredField projectId
|