@wix/auto_sdk_portfolio_project-items 1.0.41 → 1.0.43
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 +11 -11
- package/build/cjs/index.js +124 -124
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +194 -183
- package/build/cjs/index.typings.js +116 -116
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +187 -176
- package/build/cjs/meta.js +111 -111
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +9 -9
- package/build/cjs/schemas.js +11 -11
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +11 -11
- package/build/es/index.mjs +124 -124
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +194 -183
- package/build/es/index.typings.mjs +116 -116
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +187 -176
- package/build/es/meta.mjs +111 -111
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +9 -9
- package/build/es/schemas.mjs +11 -11
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -11
- package/build/internal/cjs/index.js +124 -124
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +194 -183
- package/build/internal/cjs/index.typings.js +116 -116
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +187 -176
- package/build/internal/cjs/meta.js +111 -111
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +9 -9
- package/build/internal/cjs/schemas.js +11 -11
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +11 -11
- package/build/internal/es/index.mjs +124 -124
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +194 -183
- package/build/internal/es/index.typings.mjs +116 -116
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +187 -176
- package/build/internal/es/meta.mjs +111 -111
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +9 -9
- package/build/internal/es/schemas.mjs +11 -11
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -156,6 +156,177 @@ 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
|
+
}
|
|
159
330
|
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
160
331
|
/**
|
|
161
332
|
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
@@ -480,6 +651,11 @@ interface Sorting {
|
|
|
480
651
|
fieldName?: string;
|
|
481
652
|
/** Sort order. */
|
|
482
653
|
order?: SortOrderWithLiterals;
|
|
654
|
+
/**
|
|
655
|
+
* Origin point for geo-distance sorting on a GEO field
|
|
656
|
+
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
657
|
+
*/
|
|
658
|
+
origin?: AddressLocation;
|
|
483
659
|
}
|
|
484
660
|
declare enum SortOrder {
|
|
485
661
|
ASC = "ASC",
|
|
@@ -487,6 +663,12 @@ declare enum SortOrder {
|
|
|
487
663
|
}
|
|
488
664
|
/** @enumType */
|
|
489
665
|
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
666
|
+
interface AddressLocation {
|
|
667
|
+
/** Address latitude. */
|
|
668
|
+
latitude?: number | null;
|
|
669
|
+
/** Address longitude. */
|
|
670
|
+
longitude?: number | null;
|
|
671
|
+
}
|
|
490
672
|
interface CursorPaging {
|
|
491
673
|
/**
|
|
492
674
|
* Maximum number of items to return in the results.
|
|
@@ -610,68 +792,6 @@ interface CreateProjectGalleryResponse {
|
|
|
610
792
|
*/
|
|
611
793
|
galleryId?: string;
|
|
612
794
|
}
|
|
613
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
614
|
-
createdEvent?: EntityCreatedEvent;
|
|
615
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
616
|
-
deletedEvent?: EntityDeletedEvent;
|
|
617
|
-
actionEvent?: ActionEvent;
|
|
618
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
619
|
-
_id?: string;
|
|
620
|
-
/**
|
|
621
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
622
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
623
|
-
*/
|
|
624
|
-
entityFqdn?: string;
|
|
625
|
-
/**
|
|
626
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
627
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
628
|
-
*/
|
|
629
|
-
slug?: string;
|
|
630
|
-
/** ID of the entity associated with the event. */
|
|
631
|
-
entityId?: string;
|
|
632
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
633
|
-
eventTime?: Date | null;
|
|
634
|
-
/**
|
|
635
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
636
|
-
* (for example, GDPR).
|
|
637
|
-
*/
|
|
638
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
639
|
-
/** If present, indicates the action that triggered the event. */
|
|
640
|
-
originatedFrom?: string | null;
|
|
641
|
-
/**
|
|
642
|
-
* 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.
|
|
643
|
-
* 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.
|
|
644
|
-
*/
|
|
645
|
-
entityEventSequence?: string | null;
|
|
646
|
-
}
|
|
647
|
-
/** @oneof */
|
|
648
|
-
interface DomainEventBodyOneOf {
|
|
649
|
-
createdEvent?: EntityCreatedEvent;
|
|
650
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
651
|
-
deletedEvent?: EntityDeletedEvent;
|
|
652
|
-
actionEvent?: ActionEvent;
|
|
653
|
-
}
|
|
654
|
-
interface EntityCreatedEvent {
|
|
655
|
-
entity?: string;
|
|
656
|
-
}
|
|
657
|
-
interface RestoreInfo {
|
|
658
|
-
deletedDate?: Date | null;
|
|
659
|
-
}
|
|
660
|
-
interface EntityUpdatedEvent {
|
|
661
|
-
/**
|
|
662
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
663
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
664
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
665
|
-
*/
|
|
666
|
-
currentEntity?: string;
|
|
667
|
-
}
|
|
668
|
-
interface EntityDeletedEvent {
|
|
669
|
-
/** Entity that was deleted. */
|
|
670
|
-
deletedEntity?: string | null;
|
|
671
|
-
}
|
|
672
|
-
interface ActionEvent {
|
|
673
|
-
body?: string;
|
|
674
|
-
}
|
|
675
795
|
interface Empty {
|
|
676
796
|
}
|
|
677
797
|
interface DeletedProjectRestored {
|
|
@@ -704,115 +824,6 @@ interface DuplicateProjectItemsResponse {
|
|
|
704
824
|
/** Bulk action metadata. */
|
|
705
825
|
bulkActionMetadata?: BulkActionMetadata;
|
|
706
826
|
}
|
|
707
|
-
interface MessageEnvelope {
|
|
708
|
-
/**
|
|
709
|
-
* App instance ID.
|
|
710
|
-
* @format GUID
|
|
711
|
-
*/
|
|
712
|
-
instanceId?: string | null;
|
|
713
|
-
/**
|
|
714
|
-
* Event type.
|
|
715
|
-
* @maxLength 150
|
|
716
|
-
*/
|
|
717
|
-
eventType?: string;
|
|
718
|
-
/** The identification type and identity data. */
|
|
719
|
-
identity?: IdentificationData;
|
|
720
|
-
/** Stringify payload. */
|
|
721
|
-
data?: string;
|
|
722
|
-
/** Details related to the account */
|
|
723
|
-
accountInfo?: AccountInfo;
|
|
724
|
-
}
|
|
725
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
726
|
-
/**
|
|
727
|
-
* ID of a site visitor that has not logged in to the site.
|
|
728
|
-
* @format GUID
|
|
729
|
-
*/
|
|
730
|
-
anonymousVisitorId?: string;
|
|
731
|
-
/**
|
|
732
|
-
* ID of a site visitor that has logged in to the site.
|
|
733
|
-
* @format GUID
|
|
734
|
-
*/
|
|
735
|
-
memberId?: string;
|
|
736
|
-
/**
|
|
737
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
738
|
-
* @format GUID
|
|
739
|
-
*/
|
|
740
|
-
wixUserId?: string;
|
|
741
|
-
/**
|
|
742
|
-
* ID of an app.
|
|
743
|
-
* @format GUID
|
|
744
|
-
*/
|
|
745
|
-
appId?: string;
|
|
746
|
-
/** @readonly */
|
|
747
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
748
|
-
}
|
|
749
|
-
/** @oneof */
|
|
750
|
-
interface IdentificationDataIdOneOf {
|
|
751
|
-
/**
|
|
752
|
-
* ID of a site visitor that has not logged in to the site.
|
|
753
|
-
* @format GUID
|
|
754
|
-
*/
|
|
755
|
-
anonymousVisitorId?: string;
|
|
756
|
-
/**
|
|
757
|
-
* ID of a site visitor that has logged in to the site.
|
|
758
|
-
* @format GUID
|
|
759
|
-
*/
|
|
760
|
-
memberId?: string;
|
|
761
|
-
/**
|
|
762
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
763
|
-
* @format GUID
|
|
764
|
-
*/
|
|
765
|
-
wixUserId?: string;
|
|
766
|
-
/**
|
|
767
|
-
* ID of an app.
|
|
768
|
-
* @format GUID
|
|
769
|
-
*/
|
|
770
|
-
appId?: string;
|
|
771
|
-
}
|
|
772
|
-
declare enum WebhookIdentityType {
|
|
773
|
-
UNKNOWN = "UNKNOWN",
|
|
774
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
775
|
-
MEMBER = "MEMBER",
|
|
776
|
-
WIX_USER = "WIX_USER",
|
|
777
|
-
APP = "APP"
|
|
778
|
-
}
|
|
779
|
-
/** @enumType */
|
|
780
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
781
|
-
interface AccountInfo {
|
|
782
|
-
/**
|
|
783
|
-
* ID of the Wix account associated with the event.
|
|
784
|
-
* @format GUID
|
|
785
|
-
*/
|
|
786
|
-
accountId?: string | null;
|
|
787
|
-
/**
|
|
788
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
789
|
-
* @format GUID
|
|
790
|
-
*/
|
|
791
|
-
parentAccountId?: string | null;
|
|
792
|
-
/**
|
|
793
|
-
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
794
|
-
* @format GUID
|
|
795
|
-
*/
|
|
796
|
-
siteId?: string | null;
|
|
797
|
-
}
|
|
798
|
-
interface GenerateTokenForProjectItemsRequest {
|
|
799
|
-
/**
|
|
800
|
-
* Media ids of requested project items
|
|
801
|
-
* @minSize 1
|
|
802
|
-
* @maxLength 100
|
|
803
|
-
*/
|
|
804
|
-
mediaIds: string[];
|
|
805
|
-
}
|
|
806
|
-
interface GenerateTokenForProjectItemsResponse {
|
|
807
|
-
/** Generated media tokens for project items */
|
|
808
|
-
mediaTokens?: ProjectItemMediaToken[];
|
|
809
|
-
}
|
|
810
|
-
interface ProjectItemMediaToken {
|
|
811
|
-
/** Media id of project item */
|
|
812
|
-
mediaId?: string;
|
|
813
|
-
/** Generated media token for project item */
|
|
814
|
-
mediaToken?: string;
|
|
815
|
-
}
|
|
816
827
|
interface BaseEventMetadata {
|
|
817
828
|
/**
|
|
818
829
|
* App instance ID.
|
|
@@ -854,7 +865,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
854
865
|
/** If present, indicates the action that triggered the event. */
|
|
855
866
|
originatedFrom?: string | null;
|
|
856
867
|
/**
|
|
857
|
-
* 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
|
|
868
|
+
* 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.
|
|
858
869
|
* 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.
|
|
859
870
|
*/
|
|
860
871
|
entityEventSequence?: string | null;
|
|
@@ -915,6 +926,16 @@ interface ProjectItemUpdatedEnvelope {
|
|
|
915
926
|
* @slug updated
|
|
916
927
|
*/
|
|
917
928
|
declare function onProjectItemUpdated(handler: (event: ProjectItemUpdatedEnvelope) => void | Promise<void>): void;
|
|
929
|
+
/**
|
|
930
|
+
* Generate media token for project items
|
|
931
|
+
* @param mediaIds - Media ids of requested project items
|
|
932
|
+
* @public
|
|
933
|
+
* @requiredField mediaIds
|
|
934
|
+
* @permissionId PORTFOLIO.PROJECT_ITEM_CREATE
|
|
935
|
+
* @applicableIdentity APP
|
|
936
|
+
* @fqn com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems
|
|
937
|
+
*/
|
|
938
|
+
declare function generateTokenForProjectItems(mediaIds: string[]): Promise<NonNullablePaths<GenerateTokenForProjectItemsResponse, `mediaTokens` | `mediaTokens.${number}.mediaId` | `mediaTokens.${number}.mediaToken`, 4>>;
|
|
918
939
|
/**
|
|
919
940
|
* Creates a project item.
|
|
920
941
|
* @param item - Project item to create.
|
|
@@ -1117,15 +1138,5 @@ interface DuplicateProjectItemsOptions {
|
|
|
1117
1138
|
*/
|
|
1118
1139
|
targetProjectId: string;
|
|
1119
1140
|
}
|
|
1120
|
-
/**
|
|
1121
|
-
* Generate media token for project items
|
|
1122
|
-
* @param mediaIds - Media ids of requested project items
|
|
1123
|
-
* @public
|
|
1124
|
-
* @requiredField mediaIds
|
|
1125
|
-
* @permissionId PORTFOLIO.PROJECT_ITEM_CREATE
|
|
1126
|
-
* @applicableIdentity APP
|
|
1127
|
-
* @fqn com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems
|
|
1128
|
-
*/
|
|
1129
|
-
declare function generateTokenForProjectItems(mediaIds: string[]): Promise<NonNullablePaths<GenerateTokenForProjectItemsResponse, `mediaTokens` | `mediaTokens.${number}.mediaId` | `mediaTokens.${number}.mediaToken`, 4>>;
|
|
1130
1141
|
|
|
1131
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, 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 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 };
|