@wix/auto_sdk_portfolio_project-items 1.0.50 → 1.0.51
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 +20 -20
- package/build/cjs/index.js +124 -124
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +197 -191
- package/build/cjs/index.typings.js +116 -116
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +182 -176
- package/build/cjs/meta.js +111 -111
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +20 -20
- package/build/es/index.mjs +124 -124
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +197 -191
- package/build/es/index.typings.mjs +116 -116
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +182 -176
- package/build/es/meta.mjs +111 -111
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +20 -20
- package/build/internal/cjs/index.typings.d.ts +197 -191
- package/build/internal/cjs/meta.d.ts +224 -218
- package/build/internal/es/index.d.mts +20 -20
- package/build/internal/es/index.typings.d.mts +197 -191
- package/build/internal/es/meta.d.mts +224 -218
- package/package.json +2 -2
|
@@ -156,177 +156,6 @@ interface Link {
|
|
|
156
156
|
*/
|
|
157
157
|
target?: string | null;
|
|
158
158
|
}
|
|
159
|
-
interface GenerateTokenForProjectItemsRequest {
|
|
160
|
-
/**
|
|
161
|
-
* Media ids of requested project items
|
|
162
|
-
* @minSize 1
|
|
163
|
-
* @maxLength 100
|
|
164
|
-
*/
|
|
165
|
-
mediaIds: string[];
|
|
166
|
-
}
|
|
167
|
-
interface GenerateTokenForProjectItemsResponse {
|
|
168
|
-
/** Generated media tokens for project items */
|
|
169
|
-
mediaTokens?: ProjectItemMediaToken[];
|
|
170
|
-
}
|
|
171
|
-
interface ProjectItemMediaToken {
|
|
172
|
-
/** Media id of project item */
|
|
173
|
-
mediaId?: string;
|
|
174
|
-
/** Generated media token for project item */
|
|
175
|
-
mediaToken?: string;
|
|
176
|
-
}
|
|
177
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
178
|
-
createdEvent?: EntityCreatedEvent;
|
|
179
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
180
|
-
deletedEvent?: EntityDeletedEvent;
|
|
181
|
-
actionEvent?: ActionEvent;
|
|
182
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
183
|
-
_id?: string;
|
|
184
|
-
/**
|
|
185
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
186
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
187
|
-
*/
|
|
188
|
-
entityFqdn?: string;
|
|
189
|
-
/**
|
|
190
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
191
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
192
|
-
*/
|
|
193
|
-
slug?: string;
|
|
194
|
-
/** ID of the entity associated with the event. */
|
|
195
|
-
entityId?: string;
|
|
196
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
197
|
-
eventTime?: Date | null;
|
|
198
|
-
/**
|
|
199
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
200
|
-
* (for example, GDPR).
|
|
201
|
-
*/
|
|
202
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
203
|
-
/** If present, indicates the action that triggered the event. */
|
|
204
|
-
originatedFrom?: string | null;
|
|
205
|
-
/**
|
|
206
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
207
|
-
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
208
|
-
*/
|
|
209
|
-
entityEventSequence?: string | null;
|
|
210
|
-
}
|
|
211
|
-
/** @oneof */
|
|
212
|
-
interface DomainEventBodyOneOf {
|
|
213
|
-
createdEvent?: EntityCreatedEvent;
|
|
214
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
215
|
-
deletedEvent?: EntityDeletedEvent;
|
|
216
|
-
actionEvent?: ActionEvent;
|
|
217
|
-
}
|
|
218
|
-
interface EntityCreatedEvent {
|
|
219
|
-
entity?: string;
|
|
220
|
-
}
|
|
221
|
-
interface RestoreInfo {
|
|
222
|
-
deletedDate?: Date | null;
|
|
223
|
-
}
|
|
224
|
-
interface EntityUpdatedEvent {
|
|
225
|
-
/**
|
|
226
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
227
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
228
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
229
|
-
*/
|
|
230
|
-
currentEntity?: string;
|
|
231
|
-
}
|
|
232
|
-
interface EntityDeletedEvent {
|
|
233
|
-
/** Entity that was deleted. */
|
|
234
|
-
deletedEntity?: string | null;
|
|
235
|
-
}
|
|
236
|
-
interface ActionEvent {
|
|
237
|
-
body?: string;
|
|
238
|
-
}
|
|
239
|
-
interface MessageEnvelope {
|
|
240
|
-
/**
|
|
241
|
-
* App instance ID.
|
|
242
|
-
* @format GUID
|
|
243
|
-
*/
|
|
244
|
-
instanceId?: string | null;
|
|
245
|
-
/**
|
|
246
|
-
* Event type.
|
|
247
|
-
* @maxLength 150
|
|
248
|
-
*/
|
|
249
|
-
eventType?: string;
|
|
250
|
-
/** The identification type and identity data. */
|
|
251
|
-
identity?: IdentificationData;
|
|
252
|
-
/** Stringify payload. */
|
|
253
|
-
data?: string;
|
|
254
|
-
/** Details related to the account */
|
|
255
|
-
accountInfo?: AccountInfo;
|
|
256
|
-
}
|
|
257
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
258
|
-
/**
|
|
259
|
-
* ID of a site visitor that has not logged in to the site.
|
|
260
|
-
* @format GUID
|
|
261
|
-
*/
|
|
262
|
-
anonymousVisitorId?: string;
|
|
263
|
-
/**
|
|
264
|
-
* ID of a site visitor that has logged in to the site.
|
|
265
|
-
* @format GUID
|
|
266
|
-
*/
|
|
267
|
-
memberId?: string;
|
|
268
|
-
/**
|
|
269
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
270
|
-
* @format GUID
|
|
271
|
-
*/
|
|
272
|
-
wixUserId?: string;
|
|
273
|
-
/**
|
|
274
|
-
* ID of an app.
|
|
275
|
-
* @format GUID
|
|
276
|
-
*/
|
|
277
|
-
appId?: string;
|
|
278
|
-
/** @readonly */
|
|
279
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
280
|
-
}
|
|
281
|
-
/** @oneof */
|
|
282
|
-
interface IdentificationDataIdOneOf {
|
|
283
|
-
/**
|
|
284
|
-
* ID of a site visitor that has not logged in to the site.
|
|
285
|
-
* @format GUID
|
|
286
|
-
*/
|
|
287
|
-
anonymousVisitorId?: string;
|
|
288
|
-
/**
|
|
289
|
-
* ID of a site visitor that has logged in to the site.
|
|
290
|
-
* @format GUID
|
|
291
|
-
*/
|
|
292
|
-
memberId?: string;
|
|
293
|
-
/**
|
|
294
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
295
|
-
* @format GUID
|
|
296
|
-
*/
|
|
297
|
-
wixUserId?: string;
|
|
298
|
-
/**
|
|
299
|
-
* ID of an app.
|
|
300
|
-
* @format GUID
|
|
301
|
-
*/
|
|
302
|
-
appId?: string;
|
|
303
|
-
}
|
|
304
|
-
declare enum WebhookIdentityType {
|
|
305
|
-
UNKNOWN = "UNKNOWN",
|
|
306
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
307
|
-
MEMBER = "MEMBER",
|
|
308
|
-
WIX_USER = "WIX_USER",
|
|
309
|
-
APP = "APP"
|
|
310
|
-
}
|
|
311
|
-
/** @enumType */
|
|
312
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
313
|
-
interface AccountInfo {
|
|
314
|
-
/**
|
|
315
|
-
* ID of the Wix account associated with the event.
|
|
316
|
-
* @format GUID
|
|
317
|
-
*/
|
|
318
|
-
accountId?: string | null;
|
|
319
|
-
/**
|
|
320
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
321
|
-
* @format GUID
|
|
322
|
-
*/
|
|
323
|
-
parentAccountId?: string | null;
|
|
324
|
-
/**
|
|
325
|
-
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
326
|
-
* @format GUID
|
|
327
|
-
*/
|
|
328
|
-
siteId?: string | null;
|
|
329
|
-
}
|
|
330
159
|
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
331
160
|
/**
|
|
332
161
|
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
@@ -792,6 +621,68 @@ interface CreateProjectGalleryResponse {
|
|
|
792
621
|
*/
|
|
793
622
|
galleryId?: string;
|
|
794
623
|
}
|
|
624
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
625
|
+
createdEvent?: EntityCreatedEvent;
|
|
626
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
627
|
+
deletedEvent?: EntityDeletedEvent;
|
|
628
|
+
actionEvent?: ActionEvent;
|
|
629
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
630
|
+
_id?: string;
|
|
631
|
+
/**
|
|
632
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
633
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
634
|
+
*/
|
|
635
|
+
entityFqdn?: string;
|
|
636
|
+
/**
|
|
637
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
638
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
639
|
+
*/
|
|
640
|
+
slug?: string;
|
|
641
|
+
/** ID of the entity associated with the event. */
|
|
642
|
+
entityId?: string;
|
|
643
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
644
|
+
eventTime?: Date | null;
|
|
645
|
+
/**
|
|
646
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
647
|
+
* (for example, GDPR).
|
|
648
|
+
*/
|
|
649
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
650
|
+
/** If present, indicates the action that triggered the event. */
|
|
651
|
+
originatedFrom?: string | null;
|
|
652
|
+
/**
|
|
653
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
654
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
655
|
+
*/
|
|
656
|
+
entityEventSequence?: string | null;
|
|
657
|
+
}
|
|
658
|
+
/** @oneof */
|
|
659
|
+
interface DomainEventBodyOneOf {
|
|
660
|
+
createdEvent?: EntityCreatedEvent;
|
|
661
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
662
|
+
deletedEvent?: EntityDeletedEvent;
|
|
663
|
+
actionEvent?: ActionEvent;
|
|
664
|
+
}
|
|
665
|
+
interface EntityCreatedEvent {
|
|
666
|
+
entity?: string;
|
|
667
|
+
}
|
|
668
|
+
interface RestoreInfo {
|
|
669
|
+
deletedDate?: Date | null;
|
|
670
|
+
}
|
|
671
|
+
interface EntityUpdatedEvent {
|
|
672
|
+
/**
|
|
673
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
674
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
675
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
676
|
+
*/
|
|
677
|
+
currentEntity?: string;
|
|
678
|
+
}
|
|
679
|
+
interface EntityDeletedEvent {
|
|
680
|
+
/** Entity that was deleted. */
|
|
681
|
+
deletedEntity?: string | null;
|
|
682
|
+
}
|
|
683
|
+
interface ActionEvent {
|
|
684
|
+
body?: string;
|
|
685
|
+
}
|
|
795
686
|
interface Empty {
|
|
796
687
|
}
|
|
797
688
|
interface DeletedProjectRestored {
|
|
@@ -824,6 +715,121 @@ interface DuplicateProjectItemsResponse {
|
|
|
824
715
|
/** Bulk action metadata. */
|
|
825
716
|
bulkActionMetadata?: BulkActionMetadata;
|
|
826
717
|
}
|
|
718
|
+
interface CloneFromOriginRequest {
|
|
719
|
+
/** @format GUID */
|
|
720
|
+
originInstanceId?: string;
|
|
721
|
+
}
|
|
722
|
+
interface CloneFromOriginResponse {
|
|
723
|
+
}
|
|
724
|
+
interface MessageEnvelope {
|
|
725
|
+
/**
|
|
726
|
+
* App instance ID.
|
|
727
|
+
* @format GUID
|
|
728
|
+
*/
|
|
729
|
+
instanceId?: string | null;
|
|
730
|
+
/**
|
|
731
|
+
* Event type.
|
|
732
|
+
* @maxLength 150
|
|
733
|
+
*/
|
|
734
|
+
eventType?: string;
|
|
735
|
+
/** The identification type and identity data. */
|
|
736
|
+
identity?: IdentificationData;
|
|
737
|
+
/** Stringify payload. */
|
|
738
|
+
data?: string;
|
|
739
|
+
/** Details related to the account */
|
|
740
|
+
accountInfo?: AccountInfo;
|
|
741
|
+
}
|
|
742
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
743
|
+
/**
|
|
744
|
+
* ID of a site visitor that has not logged in to the site.
|
|
745
|
+
* @format GUID
|
|
746
|
+
*/
|
|
747
|
+
anonymousVisitorId?: string;
|
|
748
|
+
/**
|
|
749
|
+
* ID of a site visitor that has logged in to the site.
|
|
750
|
+
* @format GUID
|
|
751
|
+
*/
|
|
752
|
+
memberId?: string;
|
|
753
|
+
/**
|
|
754
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
755
|
+
* @format GUID
|
|
756
|
+
*/
|
|
757
|
+
wixUserId?: string;
|
|
758
|
+
/**
|
|
759
|
+
* ID of an app.
|
|
760
|
+
* @format GUID
|
|
761
|
+
*/
|
|
762
|
+
appId?: string;
|
|
763
|
+
/** @readonly */
|
|
764
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
765
|
+
}
|
|
766
|
+
/** @oneof */
|
|
767
|
+
interface IdentificationDataIdOneOf {
|
|
768
|
+
/**
|
|
769
|
+
* ID of a site visitor that has not logged in to the site.
|
|
770
|
+
* @format GUID
|
|
771
|
+
*/
|
|
772
|
+
anonymousVisitorId?: string;
|
|
773
|
+
/**
|
|
774
|
+
* ID of a site visitor that has logged in to the site.
|
|
775
|
+
* @format GUID
|
|
776
|
+
*/
|
|
777
|
+
memberId?: string;
|
|
778
|
+
/**
|
|
779
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
780
|
+
* @format GUID
|
|
781
|
+
*/
|
|
782
|
+
wixUserId?: string;
|
|
783
|
+
/**
|
|
784
|
+
* ID of an app.
|
|
785
|
+
* @format GUID
|
|
786
|
+
*/
|
|
787
|
+
appId?: string;
|
|
788
|
+
}
|
|
789
|
+
declare enum WebhookIdentityType {
|
|
790
|
+
UNKNOWN = "UNKNOWN",
|
|
791
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
792
|
+
MEMBER = "MEMBER",
|
|
793
|
+
WIX_USER = "WIX_USER",
|
|
794
|
+
APP = "APP"
|
|
795
|
+
}
|
|
796
|
+
/** @enumType */
|
|
797
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
798
|
+
interface AccountInfo {
|
|
799
|
+
/**
|
|
800
|
+
* ID of the Wix account associated with the event.
|
|
801
|
+
* @format GUID
|
|
802
|
+
*/
|
|
803
|
+
accountId?: string | null;
|
|
804
|
+
/**
|
|
805
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
806
|
+
* @format GUID
|
|
807
|
+
*/
|
|
808
|
+
parentAccountId?: string | null;
|
|
809
|
+
/**
|
|
810
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
811
|
+
* @format GUID
|
|
812
|
+
*/
|
|
813
|
+
siteId?: string | null;
|
|
814
|
+
}
|
|
815
|
+
interface GenerateTokenForProjectItemsRequest {
|
|
816
|
+
/**
|
|
817
|
+
* Media ids of requested project items
|
|
818
|
+
* @minSize 1
|
|
819
|
+
* @maxLength 100
|
|
820
|
+
*/
|
|
821
|
+
mediaIds: string[];
|
|
822
|
+
}
|
|
823
|
+
interface GenerateTokenForProjectItemsResponse {
|
|
824
|
+
/** Generated media tokens for project items */
|
|
825
|
+
mediaTokens?: ProjectItemMediaToken[];
|
|
826
|
+
}
|
|
827
|
+
interface ProjectItemMediaToken {
|
|
828
|
+
/** Media id of project item */
|
|
829
|
+
mediaId?: string;
|
|
830
|
+
/** Generated media token for project item */
|
|
831
|
+
mediaToken?: string;
|
|
832
|
+
}
|
|
827
833
|
interface BaseEventMetadata {
|
|
828
834
|
/**
|
|
829
835
|
* App instance ID.
|
|
@@ -920,16 +926,6 @@ interface ProjectItemUpdatedEnvelope {
|
|
|
920
926
|
* @slug updated
|
|
921
927
|
*/
|
|
922
928
|
declare function onProjectItemUpdated(handler: (event: ProjectItemUpdatedEnvelope) => void | Promise<void>): void;
|
|
923
|
-
/**
|
|
924
|
-
* Generate media token for project items
|
|
925
|
-
* @param mediaIds - Media ids of requested project items
|
|
926
|
-
* @public
|
|
927
|
-
* @requiredField mediaIds
|
|
928
|
-
* @permissionId PORTFOLIO.PROJECT_ITEM_CREATE
|
|
929
|
-
* @applicableIdentity APP
|
|
930
|
-
* @fqn com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems
|
|
931
|
-
*/
|
|
932
|
-
declare function generateTokenForProjectItems(mediaIds: string[]): Promise<NonNullablePaths<GenerateTokenForProjectItemsResponse, `mediaTokens` | `mediaTokens.${number}.mediaId` | `mediaTokens.${number}.mediaToken`, 4>>;
|
|
933
929
|
/**
|
|
934
930
|
* Creates a project item.
|
|
935
931
|
* @param item - Project item to create.
|
|
@@ -940,7 +936,7 @@ declare function generateTokenForProjectItems(mediaIds: string[]): Promise<NonNu
|
|
|
940
936
|
* @returns Newly created project item.
|
|
941
937
|
* @fqn com.wixpress.portfolio.projectitems.ProjectItemsService.CreateProjectItem
|
|
942
938
|
*/
|
|
943
|
-
declare function createProjectItem(item: Item): Promise<NonNullablePaths<Item, `image.focalPoint.x` | `image.focalPoint.y` | `type`,
|
|
939
|
+
declare function createProjectItem(item: Item): Promise<NonNullablePaths<Item, `image.focalPoint.x` | `image.focalPoint.y` | `type`, 2>>;
|
|
944
940
|
/**
|
|
945
941
|
* Creates multiple project items.
|
|
946
942
|
*
|
|
@@ -951,7 +947,7 @@ declare function createProjectItem(item: Item): Promise<NonNullablePaths<Item, `
|
|
|
951
947
|
* @applicableIdentity APP
|
|
952
948
|
* @fqn com.wixpress.portfolio.projectitems.ProjectItemsService.BulkCreateProjectItems
|
|
953
949
|
*/
|
|
954
|
-
declare function bulkCreateProjectItems(options?: NonNullablePaths<BulkCreateProjectItemsOptions, `items`,
|
|
950
|
+
declare function bulkCreateProjectItems(options?: NonNullablePaths<BulkCreateProjectItemsOptions, `items`, 0>): Promise<NonNullablePaths<BulkCreateProjectItemsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.type` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4>>;
|
|
955
951
|
interface BulkCreateProjectItemsOptions {
|
|
956
952
|
/**
|
|
957
953
|
* Project items to create.
|
|
@@ -978,7 +974,7 @@ interface BulkCreateProjectItemsOptions {
|
|
|
978
974
|
* @returns Project item.
|
|
979
975
|
* @fqn com.wixpress.portfolio.projectitems.ProjectItemsService.GetProjectItem
|
|
980
976
|
*/
|
|
981
|
-
declare function getProjectItem(itemId: string): Promise<NonNullablePaths<Item, `image.focalPoint.x` | `image.focalPoint.y` | `type`,
|
|
977
|
+
declare function getProjectItem(itemId: string): Promise<NonNullablePaths<Item, `image.focalPoint.x` | `image.focalPoint.y` | `type`, 2>>;
|
|
982
978
|
/**
|
|
983
979
|
* Retrieves a list of all project items in the specified project.
|
|
984
980
|
* @param projectId - Project ID.
|
|
@@ -988,7 +984,7 @@ declare function getProjectItem(itemId: string): Promise<NonNullablePaths<Item,
|
|
|
988
984
|
* @applicableIdentity APP
|
|
989
985
|
* @fqn com.wixpress.portfolio.projectitems.ProjectItemsService.ListProjectItems
|
|
990
986
|
*/
|
|
991
|
-
declare function listProjectItems(projectId: string, options?: ListProjectItemsOptions): Promise<NonNullablePaths<ListProjectItemsResponse, `items` | `items.${number}.image.focalPoint.x` | `items.${number}.image.focalPoint.y` | `items.${number}.type`,
|
|
987
|
+
declare function listProjectItems(projectId: string, options?: ListProjectItemsOptions): Promise<NonNullablePaths<ListProjectItemsResponse, `items` | `items.${number}.image.focalPoint.x` | `items.${number}.image.focalPoint.y` | `items.${number}.type`, 4>>;
|
|
992
988
|
interface ListProjectItemsOptions {
|
|
993
989
|
/** Maximum number of items to return in the results. */
|
|
994
990
|
paging?: Paging;
|
|
@@ -1004,7 +1000,7 @@ interface ListProjectItemsOptions {
|
|
|
1004
1000
|
* @returns The updated project item.
|
|
1005
1001
|
* @fqn com.wixpress.portfolio.projectitems.ProjectItemsService.UpdateProjectItem
|
|
1006
1002
|
*/
|
|
1007
|
-
declare function updateProjectItem(_id: string, item: UpdateProjectItem): Promise<NonNullablePaths<Item, `image.focalPoint.x` | `image.focalPoint.y` | `type`,
|
|
1003
|
+
declare function updateProjectItem(_id: string, item: UpdateProjectItem): Promise<NonNullablePaths<Item, `image.focalPoint.x` | `image.focalPoint.y` | `type`, 2>>;
|
|
1008
1004
|
interface UpdateProjectItem {
|
|
1009
1005
|
/** Information about the Wix Media image. */
|
|
1010
1006
|
image?: Image;
|
|
@@ -1060,7 +1056,7 @@ interface UpdateProjectItem {
|
|
|
1060
1056
|
* @applicableIdentity APP
|
|
1061
1057
|
* @fqn com.wixpress.portfolio.projectitems.ProjectItemsService.BulkUpdateProjectItems
|
|
1062
1058
|
*/
|
|
1063
|
-
declare function bulkUpdateProjectItems(options?: NonNullablePaths<BulkUpdateProjectItemsOptions, `items.${number}.item` | `items.${number}.item._id`,
|
|
1059
|
+
declare function bulkUpdateProjectItems(options?: NonNullablePaths<BulkUpdateProjectItemsOptions, `items.${number}.item` | `items.${number}.item._id`, 3>): Promise<NonNullablePaths<BulkUpdateProjectItemsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.type` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4>>;
|
|
1064
1060
|
interface BulkUpdateProjectItemsOptions {
|
|
1065
1061
|
/**
|
|
1066
1062
|
* Project items to update.
|
|
@@ -1085,7 +1081,7 @@ interface BulkUpdateProjectItemsOptions {
|
|
|
1085
1081
|
* @applicableIdentity APP
|
|
1086
1082
|
* @fqn com.wixpress.portfolio.projectitems.ProjectItemsService.DeleteProjectItem
|
|
1087
1083
|
*/
|
|
1088
|
-
declare function deleteProjectItem(itemId: string): Promise<NonNullablePaths<DeleteProjectItemResponse, `itemId`,
|
|
1084
|
+
declare function deleteProjectItem(itemId: string): Promise<NonNullablePaths<DeleteProjectItemResponse, `itemId`, 0>>;
|
|
1089
1085
|
/**
|
|
1090
1086
|
* Deletes multiple project items.
|
|
1091
1087
|
*
|
|
@@ -1097,7 +1093,7 @@ declare function deleteProjectItem(itemId: string): Promise<NonNullablePaths<Del
|
|
|
1097
1093
|
* @applicableIdentity APP
|
|
1098
1094
|
* @fqn com.wixpress.portfolio.projectitems.ProjectItemsService.BulkDeleteProjectItems
|
|
1099
1095
|
*/
|
|
1100
|
-
declare function bulkDeleteProjectItems(options: NonNullablePaths<BulkDeleteProjectItemsOptions, `itemIds`,
|
|
1096
|
+
declare function bulkDeleteProjectItems(options: NonNullablePaths<BulkDeleteProjectItemsOptions, `itemIds`, 0>): Promise<NonNullablePaths<BulkDeleteProjectItemsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.itemId` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4>>;
|
|
1101
1097
|
interface BulkDeleteProjectItemsOptions {
|
|
1102
1098
|
/**
|
|
1103
1099
|
* IDs of project items to delete.
|
|
@@ -1124,7 +1120,7 @@ interface BulkDeleteProjectItemsOptions {
|
|
|
1124
1120
|
* @applicableIdentity APP
|
|
1125
1121
|
* @fqn com.wixpress.portfolio.projectitems.ProjectItemsService.DuplicateProjectItems
|
|
1126
1122
|
*/
|
|
1127
|
-
declare function duplicateProjectItems(originProjectId: string, options: NonNullablePaths<DuplicateProjectItemsOptions, `targetProjectId`,
|
|
1123
|
+
declare function duplicateProjectItems(originProjectId: string, options: NonNullablePaths<DuplicateProjectItemsOptions, `targetProjectId`, 0>): Promise<NonNullablePaths<DuplicateProjectItemsResponse, `projectId` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 1>>;
|
|
1128
1124
|
interface DuplicateProjectItemsOptions {
|
|
1129
1125
|
/**
|
|
1130
1126
|
* ID of the project where the duplicated items will be added.
|
|
@@ -1132,5 +1128,15 @@ interface DuplicateProjectItemsOptions {
|
|
|
1132
1128
|
*/
|
|
1133
1129
|
targetProjectId: string;
|
|
1134
1130
|
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Generate media token for project items
|
|
1133
|
+
* @param mediaIds - Media ids of requested project items
|
|
1134
|
+
* @public
|
|
1135
|
+
* @requiredField mediaIds
|
|
1136
|
+
* @permissionId PORTFOLIO.PROJECT_ITEM_CREATE
|
|
1137
|
+
* @applicableIdentity APP
|
|
1138
|
+
* @fqn com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems
|
|
1139
|
+
*/
|
|
1140
|
+
declare function generateTokenForProjectItems(mediaIds: string[]): Promise<NonNullablePaths<GenerateTokenForProjectItemsResponse, `mediaTokens` | `mediaTokens.${number}.mediaId` | `mediaTokens.${number}.mediaToken`, 2>>;
|
|
1135
1141
|
|
|
1136
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, type App, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, type BulkCreateProjectItemResult, type BulkCreateProjectItemsOptions, type BulkCreateProjectItemsRequest, type BulkCreateProjectItemsResponse, type BulkDeleteProjectItemResult, type BulkDeleteProjectItemsOptions, type BulkDeleteProjectItemsRequest, type BulkDeleteProjectItemsResponse, type BulkUpdateProjectItemResult, type BulkUpdateProjectItemsOptions, type BulkUpdateProjectItemsRequest, type BulkUpdateProjectItemsResponse, type CreateProjectGalleryRequest, type CreateProjectGalleryResponse, type CreateProjectItemRequest, type CreateProjectItemResponse, type CursorPaging, type Cursors, type CustomTag, type DeleteProjectItemRequest, type DeleteProjectItemResponse, type DeletedProjectRestored, type DomainEvent, type DomainEventBodyOneOf, type DuplicateProjectItemsOptions, type DuplicateProjectItemsRequest, type DuplicateProjectItemsResponse, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type File, type GenerateTokenForProjectItemsRequest, type GenerateTokenForProjectItemsResponse, type GetProjectItemRequest, type GetProjectItemResponse, type IdentificationData, type IdentificationDataIdOneOf, type Image, ImageType, type ImageTypeWithLiterals, type InvalidateCache, type InvalidateCacheGetByOneOf, type Item, type ItemMetadata, type ItemMetadataOneOf, type Link, type ListProjectItemsOptions, type ListProjectItemsRequest, type ListProjectItemsResponse, type MaskedItem, type MessageEnvelope, type Page, type Pages, type Paging, type PagingMetadataV2, type Point, type ProjectItemCreatedEnvelope, type ProjectItemDeletedEnvelope, type ProjectItemMediaToken, type ProjectItemUpdatedEnvelope, type QueryProjectItemsRequest, type QueryProjectItemsResponse, type QueryV2, type QueryV2PagingMethodOneOf, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type Tags, Type, type TypeWithLiterals, type URI, type URIs, type UnsharpMasking, type UpdateProjectItem, type UpdateProjectItemRequest, type UpdateProjectItemResponse, type Video, type VideoResolution, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCreateProjectItems, bulkDeleteProjectItems, bulkUpdateProjectItems, createProjectItem, deleteProjectItem, duplicateProjectItems, generateTokenForProjectItems, getProjectItem, listProjectItems, onProjectItemCreated, onProjectItemDeleted, onProjectItemUpdated, updateProjectItem };
|
|
1142
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, type App, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, type BulkCreateProjectItemResult, type BulkCreateProjectItemsOptions, type BulkCreateProjectItemsRequest, type BulkCreateProjectItemsResponse, type BulkDeleteProjectItemResult, type BulkDeleteProjectItemsOptions, type BulkDeleteProjectItemsRequest, type BulkDeleteProjectItemsResponse, type BulkUpdateProjectItemResult, type BulkUpdateProjectItemsOptions, type BulkUpdateProjectItemsRequest, type BulkUpdateProjectItemsResponse, type CloneFromOriginRequest, type CloneFromOriginResponse, type CreateProjectGalleryRequest, type CreateProjectGalleryResponse, type CreateProjectItemRequest, type CreateProjectItemResponse, type CursorPaging, type Cursors, type CustomTag, type DeleteProjectItemRequest, type DeleteProjectItemResponse, type DeletedProjectRestored, type DomainEvent, type DomainEventBodyOneOf, type DuplicateProjectItemsOptions, type DuplicateProjectItemsRequest, type DuplicateProjectItemsResponse, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type File, type GenerateTokenForProjectItemsRequest, type GenerateTokenForProjectItemsResponse, type GetProjectItemRequest, type GetProjectItemResponse, type IdentificationData, type IdentificationDataIdOneOf, type Image, ImageType, type ImageTypeWithLiterals, type InvalidateCache, type InvalidateCacheGetByOneOf, type Item, type ItemMetadata, type ItemMetadataOneOf, type Link, type ListProjectItemsOptions, type ListProjectItemsRequest, type ListProjectItemsResponse, type MaskedItem, type MessageEnvelope, type Page, type Pages, type Paging, type PagingMetadataV2, type Point, type ProjectItemCreatedEnvelope, type ProjectItemDeletedEnvelope, type ProjectItemMediaToken, type ProjectItemUpdatedEnvelope, type QueryProjectItemsRequest, type QueryProjectItemsResponse, type QueryV2, type QueryV2PagingMethodOneOf, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type Tags, Type, type TypeWithLiterals, type URI, type URIs, type UnsharpMasking, type UpdateProjectItem, type UpdateProjectItemRequest, type UpdateProjectItemResponse, type Video, type VideoResolution, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCreateProjectItems, bulkDeleteProjectItems, bulkUpdateProjectItems, createProjectItem, deleteProjectItem, duplicateProjectItems, generateTokenForProjectItems, getProjectItem, listProjectItems, onProjectItemCreated, onProjectItemDeleted, onProjectItemUpdated, updateProjectItem };
|