@wix/auto_sdk_portfolio_project-items 1.0.48 → 1.0.49

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.
@@ -1,4 +1,4 @@
1
- import { GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequest$1, GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponse$1, CreateProjectItemRequest as CreateProjectItemRequest$1, CreateProjectItemResponse as CreateProjectItemResponse$1, BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequest$1, BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponse$1, GetProjectItemRequest as GetProjectItemRequest$1, GetProjectItemResponse as GetProjectItemResponse$1, ListProjectItemsRequest as ListProjectItemsRequest$1, ListProjectItemsResponse as ListProjectItemsResponse$1, UpdateProjectItemRequest as UpdateProjectItemRequest$1, UpdateProjectItemResponse as UpdateProjectItemResponse$1, BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequest$1, BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponse$1, DeleteProjectItemRequest as DeleteProjectItemRequest$1, DeleteProjectItemResponse as DeleteProjectItemResponse$1, BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequest$1, BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponse$1, DuplicateProjectItemsRequest as DuplicateProjectItemsRequest$1, DuplicateProjectItemsResponse as DuplicateProjectItemsResponse$1 } from './index.typings.js';
1
+ import { CreateProjectItemRequest as CreateProjectItemRequest$1, CreateProjectItemResponse as CreateProjectItemResponse$1, BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequest$1, BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponse$1, GetProjectItemRequest as GetProjectItemRequest$1, GetProjectItemResponse as GetProjectItemResponse$1, ListProjectItemsRequest as ListProjectItemsRequest$1, ListProjectItemsResponse as ListProjectItemsResponse$1, UpdateProjectItemRequest as UpdateProjectItemRequest$1, UpdateProjectItemResponse as UpdateProjectItemResponse$1, BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequest$1, BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponse$1, DeleteProjectItemRequest as DeleteProjectItemRequest$1, DeleteProjectItemResponse as DeleteProjectItemResponse$1, BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequest$1, BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponse$1, DuplicateProjectItemsRequest as DuplicateProjectItemsRequest$1, DuplicateProjectItemsResponse as DuplicateProjectItemsResponse$1, GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequest$1, GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponse$1 } from './index.typings.js';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  interface Item extends ItemMetadataOneOf {
@@ -283,221 +283,6 @@ interface Link {
283
283
  */
284
284
  target?: string | null;
285
285
  }
286
- interface GenerateTokenForProjectItemsRequest {
287
- /**
288
- * Media ids of requested project items
289
- * @minSize 1
290
- * @maxLength 100
291
- */
292
- mediaIds: string[];
293
- }
294
- interface GenerateTokenForProjectItemsResponse {
295
- /** Generated media tokens for project items */
296
- mediaTokens?: ProjectItemMediaToken[];
297
- }
298
- interface ProjectItemMediaToken {
299
- /** Media id of project item */
300
- mediaId?: string;
301
- /** Generated media token for project item */
302
- mediaToken?: string;
303
- }
304
- interface DomainEvent extends DomainEventBodyOneOf {
305
- createdEvent?: EntityCreatedEvent;
306
- updatedEvent?: EntityUpdatedEvent;
307
- deletedEvent?: EntityDeletedEvent;
308
- actionEvent?: ActionEvent;
309
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
310
- id?: string;
311
- /**
312
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
313
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
314
- */
315
- entityFqdn?: string;
316
- /**
317
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
318
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
319
- */
320
- slug?: string;
321
- /** ID of the entity associated with the event. */
322
- entityId?: string;
323
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
324
- eventTime?: Date | null;
325
- /**
326
- * Whether the event was triggered as a result of a privacy regulation application
327
- * (for example, GDPR).
328
- */
329
- triggeredByAnonymizeRequest?: boolean | null;
330
- /** If present, indicates the action that triggered the event. */
331
- originatedFrom?: string | null;
332
- /**
333
- * 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.
334
- * 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.
335
- */
336
- entityEventSequence?: string | null;
337
- }
338
- /** @oneof */
339
- interface DomainEventBodyOneOf {
340
- createdEvent?: EntityCreatedEvent;
341
- updatedEvent?: EntityUpdatedEvent;
342
- deletedEvent?: EntityDeletedEvent;
343
- actionEvent?: ActionEvent;
344
- }
345
- interface EntityCreatedEvent {
346
- entityAsJson?: string;
347
- /**
348
- * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
349
- * @internal
350
- */
351
- triggeredByUndelete?: boolean | null;
352
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
353
- restoreInfo?: RestoreInfo;
354
- /**
355
- * Optional domain-specific metadata defined by the API owner, encoded as JSON.
356
- * @internal
357
- */
358
- additionalMetadataAsJson?: string | null;
359
- }
360
- interface RestoreInfo {
361
- deletedDate?: Date | null;
362
- }
363
- interface EntityUpdatedEvent {
364
- /**
365
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
366
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
367
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
368
- */
369
- currentEntityAsJson?: string;
370
- /**
371
- * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
372
- * wont populate it / have any reference to it in the API.
373
- * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
374
- * the developer should send only the new (current) entity.
375
- * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
376
- * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
377
- * @internal
378
- * @deprecated
379
- */
380
- previousEntityAsJson?: string | null;
381
- /**
382
- * Map of fully qualified field paths to their previous values for fields that changed.
383
- * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
384
- * @internal
385
- */
386
- modifiedFields?: Record<string, any>;
387
- /**
388
- * Optional domain-specific metadata defined by the API owner, encoded as JSON.
389
- * @internal
390
- */
391
- additionalMetadataAsJson?: string | null;
392
- }
393
- interface EntityDeletedEvent {
394
- /**
395
- * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
396
- * @internal
397
- */
398
- movedToTrash?: boolean | null;
399
- /** Entity that was deleted. */
400
- deletedEntityAsJson?: string | null;
401
- /**
402
- * Optional domain-specific metadata defined by the API owner, encoded as JSON.
403
- * @internal
404
- */
405
- additionalMetadataAsJson?: string | null;
406
- }
407
- interface ActionEvent {
408
- bodyAsJson?: string;
409
- }
410
- interface MessageEnvelope {
411
- /**
412
- * App instance ID.
413
- * @format GUID
414
- */
415
- instanceId?: string | null;
416
- /**
417
- * Event type.
418
- * @maxLength 150
419
- */
420
- eventType?: string;
421
- /** The identification type and identity data. */
422
- identity?: IdentificationData;
423
- /** Stringify payload. */
424
- data?: string;
425
- /** Details related to the account */
426
- accountInfo?: AccountInfo;
427
- }
428
- interface IdentificationData extends IdentificationDataIdOneOf {
429
- /**
430
- * ID of a site visitor that has not logged in to the site.
431
- * @format GUID
432
- */
433
- anonymousVisitorId?: string;
434
- /**
435
- * ID of a site visitor that has logged in to the site.
436
- * @format GUID
437
- */
438
- memberId?: string;
439
- /**
440
- * ID of a Wix user (site owner, contributor, etc.).
441
- * @format GUID
442
- */
443
- wixUserId?: string;
444
- /**
445
- * ID of an app.
446
- * @format GUID
447
- */
448
- appId?: string;
449
- /** @readonly */
450
- identityType?: WebhookIdentityTypeWithLiterals;
451
- }
452
- /** @oneof */
453
- interface IdentificationDataIdOneOf {
454
- /**
455
- * ID of a site visitor that has not logged in to the site.
456
- * @format GUID
457
- */
458
- anonymousVisitorId?: string;
459
- /**
460
- * ID of a site visitor that has logged in to the site.
461
- * @format GUID
462
- */
463
- memberId?: string;
464
- /**
465
- * ID of a Wix user (site owner, contributor, etc.).
466
- * @format GUID
467
- */
468
- wixUserId?: string;
469
- /**
470
- * ID of an app.
471
- * @format GUID
472
- */
473
- appId?: string;
474
- }
475
- declare enum WebhookIdentityType {
476
- UNKNOWN = "UNKNOWN",
477
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
478
- MEMBER = "MEMBER",
479
- WIX_USER = "WIX_USER",
480
- APP = "APP"
481
- }
482
- /** @enumType */
483
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
484
- interface AccountInfo {
485
- /**
486
- * ID of the Wix account associated with the event.
487
- * @format GUID
488
- */
489
- accountId?: string | null;
490
- /**
491
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
492
- * @format GUID
493
- */
494
- parentAccountId?: string | null;
495
- /**
496
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
497
- * @format GUID
498
- */
499
- siteId?: string | null;
500
- }
501
286
  interface InvalidateCache extends InvalidateCacheGetByOneOf {
502
287
  /**
503
288
  * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
@@ -1051,6 +836,112 @@ interface CreateProjectGalleryResponse {
1051
836
  */
1052
837
  galleryId?: string;
1053
838
  }
839
+ interface DomainEvent extends DomainEventBodyOneOf {
840
+ createdEvent?: EntityCreatedEvent;
841
+ updatedEvent?: EntityUpdatedEvent;
842
+ deletedEvent?: EntityDeletedEvent;
843
+ actionEvent?: ActionEvent;
844
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
845
+ id?: string;
846
+ /**
847
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
848
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
849
+ */
850
+ entityFqdn?: string;
851
+ /**
852
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
853
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
854
+ */
855
+ slug?: string;
856
+ /** ID of the entity associated with the event. */
857
+ entityId?: string;
858
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
859
+ eventTime?: Date | null;
860
+ /**
861
+ * Whether the event was triggered as a result of a privacy regulation application
862
+ * (for example, GDPR).
863
+ */
864
+ triggeredByAnonymizeRequest?: boolean | null;
865
+ /** If present, indicates the action that triggered the event. */
866
+ originatedFrom?: string | null;
867
+ /**
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.
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.
870
+ */
871
+ entityEventSequence?: string | null;
872
+ }
873
+ /** @oneof */
874
+ interface DomainEventBodyOneOf {
875
+ createdEvent?: EntityCreatedEvent;
876
+ updatedEvent?: EntityUpdatedEvent;
877
+ deletedEvent?: EntityDeletedEvent;
878
+ actionEvent?: ActionEvent;
879
+ }
880
+ interface EntityCreatedEvent {
881
+ entityAsJson?: string;
882
+ /**
883
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
884
+ * @internal
885
+ */
886
+ triggeredByUndelete?: boolean | null;
887
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
888
+ restoreInfo?: RestoreInfo;
889
+ /**
890
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
891
+ * @internal
892
+ */
893
+ additionalMetadataAsJson?: string | null;
894
+ }
895
+ interface RestoreInfo {
896
+ deletedDate?: Date | null;
897
+ }
898
+ interface EntityUpdatedEvent {
899
+ /**
900
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
901
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
902
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
903
+ */
904
+ currentEntityAsJson?: string;
905
+ /**
906
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
907
+ * wont populate it / have any reference to it in the API.
908
+ * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
909
+ * the developer should send only the new (current) entity.
910
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
911
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
912
+ * @internal
913
+ * @deprecated
914
+ */
915
+ previousEntityAsJson?: string | null;
916
+ /**
917
+ * Map of fully qualified field paths to their previous values for fields that changed.
918
+ * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
919
+ * @internal
920
+ */
921
+ modifiedFields?: Record<string, any>;
922
+ /**
923
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
924
+ * @internal
925
+ */
926
+ additionalMetadataAsJson?: string | null;
927
+ }
928
+ interface EntityDeletedEvent {
929
+ /**
930
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
931
+ * @internal
932
+ */
933
+ movedToTrash?: boolean | null;
934
+ /** Entity that was deleted. */
935
+ deletedEntityAsJson?: string | null;
936
+ /**
937
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
938
+ * @internal
939
+ */
940
+ additionalMetadataAsJson?: string | null;
941
+ }
942
+ interface ActionEvent {
943
+ bodyAsJson?: string;
944
+ }
1054
945
  interface Empty {
1055
946
  }
1056
947
  interface DeletedProjectRestored {
@@ -1083,6 +974,115 @@ interface DuplicateProjectItemsResponse {
1083
974
  /** Bulk action metadata. */
1084
975
  bulkActionMetadata?: BulkActionMetadata;
1085
976
  }
977
+ interface MessageEnvelope {
978
+ /**
979
+ * App instance ID.
980
+ * @format GUID
981
+ */
982
+ instanceId?: string | null;
983
+ /**
984
+ * Event type.
985
+ * @maxLength 150
986
+ */
987
+ eventType?: string;
988
+ /** The identification type and identity data. */
989
+ identity?: IdentificationData;
990
+ /** Stringify payload. */
991
+ data?: string;
992
+ /** Details related to the account */
993
+ accountInfo?: AccountInfo;
994
+ }
995
+ interface IdentificationData extends IdentificationDataIdOneOf {
996
+ /**
997
+ * ID of a site visitor that has not logged in to the site.
998
+ * @format GUID
999
+ */
1000
+ anonymousVisitorId?: string;
1001
+ /**
1002
+ * ID of a site visitor that has logged in to the site.
1003
+ * @format GUID
1004
+ */
1005
+ memberId?: string;
1006
+ /**
1007
+ * ID of a Wix user (site owner, contributor, etc.).
1008
+ * @format GUID
1009
+ */
1010
+ wixUserId?: string;
1011
+ /**
1012
+ * ID of an app.
1013
+ * @format GUID
1014
+ */
1015
+ appId?: string;
1016
+ /** @readonly */
1017
+ identityType?: WebhookIdentityTypeWithLiterals;
1018
+ }
1019
+ /** @oneof */
1020
+ interface IdentificationDataIdOneOf {
1021
+ /**
1022
+ * ID of a site visitor that has not logged in to the site.
1023
+ * @format GUID
1024
+ */
1025
+ anonymousVisitorId?: string;
1026
+ /**
1027
+ * ID of a site visitor that has logged in to the site.
1028
+ * @format GUID
1029
+ */
1030
+ memberId?: string;
1031
+ /**
1032
+ * ID of a Wix user (site owner, contributor, etc.).
1033
+ * @format GUID
1034
+ */
1035
+ wixUserId?: string;
1036
+ /**
1037
+ * ID of an app.
1038
+ * @format GUID
1039
+ */
1040
+ appId?: string;
1041
+ }
1042
+ declare enum WebhookIdentityType {
1043
+ UNKNOWN = "UNKNOWN",
1044
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1045
+ MEMBER = "MEMBER",
1046
+ WIX_USER = "WIX_USER",
1047
+ APP = "APP"
1048
+ }
1049
+ /** @enumType */
1050
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1051
+ interface AccountInfo {
1052
+ /**
1053
+ * ID of the Wix account associated with the event.
1054
+ * @format GUID
1055
+ */
1056
+ accountId?: string | null;
1057
+ /**
1058
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
1059
+ * @format GUID
1060
+ */
1061
+ parentAccountId?: string | null;
1062
+ /**
1063
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
1064
+ * @format GUID
1065
+ */
1066
+ siteId?: string | null;
1067
+ }
1068
+ interface GenerateTokenForProjectItemsRequest {
1069
+ /**
1070
+ * Media ids of requested project items
1071
+ * @minSize 1
1072
+ * @maxLength 100
1073
+ */
1074
+ mediaIds: string[];
1075
+ }
1076
+ interface GenerateTokenForProjectItemsResponse {
1077
+ /** Generated media tokens for project items */
1078
+ mediaTokens?: ProjectItemMediaToken[];
1079
+ }
1080
+ interface ProjectItemMediaToken {
1081
+ /** Media id of project item */
1082
+ mediaId?: string;
1083
+ /** Generated media token for project item */
1084
+ mediaToken?: string;
1085
+ }
1086
1086
 
1087
1087
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1088
1088
  getUrl: (context: any) => string;
@@ -1094,7 +1094,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
1094
1094
  __responseType: Q;
1095
1095
  __originalResponseType: R;
1096
1096
  };
1097
- declare function generateTokenForProjectItems(): __PublicMethodMetaInfo<'POST', {}, GenerateTokenForProjectItemsRequest$1, GenerateTokenForProjectItemsRequest, GenerateTokenForProjectItemsResponse$1, GenerateTokenForProjectItemsResponse>;
1098
1097
  declare function createProjectItem(): __PublicMethodMetaInfo<'POST', {}, CreateProjectItemRequest$1, CreateProjectItemRequest, CreateProjectItemResponse$1, CreateProjectItemResponse>;
1099
1098
  declare function bulkCreateProjectItems(): __PublicMethodMetaInfo<'POST', {}, BulkCreateProjectItemsRequest$1, BulkCreateProjectItemsRequest, BulkCreateProjectItemsResponse$1, BulkCreateProjectItemsResponse>;
1100
1099
  declare function getProjectItem(): __PublicMethodMetaInfo<'GET', {
@@ -1112,5 +1111,6 @@ declare function deleteProjectItem(): __PublicMethodMetaInfo<'DELETE', {
1112
1111
  }, DeleteProjectItemRequest$1, DeleteProjectItemRequest, DeleteProjectItemResponse$1, DeleteProjectItemResponse>;
1113
1112
  declare function bulkDeleteProjectItems(): __PublicMethodMetaInfo<'DELETE', {}, BulkDeleteProjectItemsRequest$1, BulkDeleteProjectItemsRequest, BulkDeleteProjectItemsResponse$1, BulkDeleteProjectItemsResponse>;
1114
1113
  declare function duplicateProjectItems(): __PublicMethodMetaInfo<'POST', {}, DuplicateProjectItemsRequest$1, DuplicateProjectItemsRequest, DuplicateProjectItemsResponse$1, DuplicateProjectItemsResponse>;
1114
+ declare function generateTokenForProjectItems(): __PublicMethodMetaInfo<'POST', {}, GenerateTokenForProjectItemsRequest$1, GenerateTokenForProjectItemsRequest, GenerateTokenForProjectItemsResponse$1, GenerateTokenForProjectItemsResponse>;
1115
1115
 
1116
1116
  export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLocation as AddressLocationOriginal, type App as AppOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateProjectItemResult as BulkCreateProjectItemResultOriginal, type BulkCreateProjectItemsRequest as BulkCreateProjectItemsRequestOriginal, type BulkCreateProjectItemsResponse as BulkCreateProjectItemsResponseOriginal, type BulkDeleteProjectItemResult as BulkDeleteProjectItemResultOriginal, type BulkDeleteProjectItemsRequest as BulkDeleteProjectItemsRequestOriginal, type BulkDeleteProjectItemsResponse as BulkDeleteProjectItemsResponseOriginal, type BulkUpdateProjectItemResult as BulkUpdateProjectItemResultOriginal, type BulkUpdateProjectItemsRequest as BulkUpdateProjectItemsRequestOriginal, type BulkUpdateProjectItemsResponse as BulkUpdateProjectItemsResponseOriginal, type CommonImage as CommonImageOriginal, type CreateProjectGalleryRequest as CreateProjectGalleryRequestOriginal, type CreateProjectGalleryResponse as CreateProjectGalleryResponseOriginal, type CreateProjectItemRequest as CreateProjectItemRequestOriginal, type CreateProjectItemResponse as CreateProjectItemResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomTag as CustomTagOriginal, type DeleteProjectItemRequest as DeleteProjectItemRequestOriginal, type DeleteProjectItemResponse as DeleteProjectItemResponseOriginal, type DeletedProjectRestored as DeletedProjectRestoredOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DuplicateProjectItemsRequest as DuplicateProjectItemsRequestOriginal, type DuplicateProjectItemsResponse as DuplicateProjectItemsResponseOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type File as FileOriginal, type GenerateTokenForProjectItemsRequest as GenerateTokenForProjectItemsRequestOriginal, type GenerateTokenForProjectItemsResponse as GenerateTokenForProjectItemsResponseOriginal, type GetProjectItemRequest as GetProjectItemRequestOriginal, type GetProjectItemResponse as GetProjectItemResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, ImageType as ImageTypeOriginal, type ImageTypeWithLiterals as ImageTypeWithLiteralsOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ItemMetadataOneOf as ItemMetadataOneOfOriginal, type ItemMetadata as ItemMetadataOriginal, type Item as ItemOriginal, type Link as LinkOriginal, type ListProjectItemsRequest as ListProjectItemsRequestOriginal, type ListProjectItemsResponse as ListProjectItemsResponseOriginal, type MaskedItem as MaskedItemOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type Point as PointOriginal, type ProjectItemMediaToken as ProjectItemMediaTokenOriginal, type QueryProjectItemsRequest as QueryProjectItemsRequestOriginal, type QueryProjectItemsResponse as QueryProjectItemsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type Tags as TagsOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UnsharpMasking as UnsharpMaskingOriginal, type UpdateProjectItemRequest as UpdateProjectItemRequestOriginal, type UpdateProjectItemResponse as UpdateProjectItemResponseOriginal, type Video as VideoOriginal, type VideoResolution as VideoResolutionOriginal, type VideoV2 as VideoV2Original, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateProjectItems, bulkDeleteProjectItems, bulkUpdateProjectItems, createProjectItem, deleteProjectItem, duplicateProjectItems, generateTokenForProjectItems, getProjectItem, listProjectItems, updateProjectItem };
@@ -1,15 +1,7 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { GenerateTokenForProjectItemsResponse, Item, BulkCreateProjectItemsOptions, BulkCreateProjectItemsResponse, ListProjectItemsOptions, ListProjectItemsResponse, UpdateProjectItem, BulkUpdateProjectItemsOptions, BulkUpdateProjectItemsResponse, DeleteProjectItemResponse, BulkDeleteProjectItemsOptions, BulkDeleteProjectItemsResponse, DuplicateProjectItemsOptions, DuplicateProjectItemsResponse, ProjectItemCreatedEnvelope, ProjectItemDeletedEnvelope, ProjectItemUpdatedEnvelope } from './index.typings.mjs';
2
+ import { Item, BulkCreateProjectItemsOptions, BulkCreateProjectItemsResponse, ListProjectItemsOptions, ListProjectItemsResponse, UpdateProjectItem, BulkUpdateProjectItemsOptions, BulkUpdateProjectItemsResponse, DeleteProjectItemResponse, BulkDeleteProjectItemsOptions, BulkDeleteProjectItemsResponse, DuplicateProjectItemsOptions, DuplicateProjectItemsResponse, GenerateTokenForProjectItemsResponse, ProjectItemCreatedEnvelope, ProjectItemDeletedEnvelope, ProjectItemUpdatedEnvelope } from './index.typings.mjs';
3
3
  export { AccountInfo, AccountInfoMetadata, ActionEvent, AddressLocation, App, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateProjectItemResult, BulkCreateProjectItemsRequest, BulkDeleteProjectItemResult, BulkDeleteProjectItemsRequest, BulkUpdateProjectItemResult, BulkUpdateProjectItemsRequest, CreateProjectGalleryRequest, CreateProjectGalleryResponse, CreateProjectItemRequest, CreateProjectItemResponse, CursorPaging, Cursors, CustomTag, DeleteProjectItemRequest, DeletedProjectRestored, DomainEvent, DomainEventBodyOneOf, DuplicateProjectItemsRequest, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, File, GenerateTokenForProjectItemsRequest, GetProjectItemRequest, GetProjectItemResponse, IdentificationData, IdentificationDataIdOneOf, Image, ImageType, ImageTypeWithLiterals, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, ItemMetadataOneOf, Link, ListProjectItemsRequest, MaskedItem, MessageEnvelope, Page, Pages, Paging, PagingMetadataV2, Point, ProjectItemMediaToken, QueryProjectItemsRequest, QueryProjectItemsResponse, QueryV2, QueryV2PagingMethodOneOf, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, Tags, Type, TypeWithLiterals, URI, URIs, UnsharpMasking, UpdateProjectItemRequest, UpdateProjectItemResponse, Video, VideoResolution, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
4
4
 
5
- declare function generateTokenForProjectItems$1(httpClient: HttpClient): GenerateTokenForProjectItemsSignature;
6
- interface GenerateTokenForProjectItemsSignature {
7
- /**
8
- * Generate media token for project items
9
- * @param - Media ids of requested project items
10
- */
11
- (mediaIds: string[]): Promise<NonNullablePaths<GenerateTokenForProjectItemsResponse, `mediaTokens` | `mediaTokens.${number}.mediaId` | `mediaTokens.${number}.mediaToken`, 4>>;
12
- }
13
5
  declare function createProjectItem$1(httpClient: HttpClient): CreateProjectItemSignature;
14
6
  interface CreateProjectItemSignature {
15
7
  /**
@@ -94,11 +86,18 @@ interface DuplicateProjectItemsSignature {
94
86
  */
95
87
  (originProjectId: string, options: NonNullablePaths<DuplicateProjectItemsOptions, `targetProjectId`, 2>): Promise<NonNullablePaths<DuplicateProjectItemsResponse, `projectId` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 3>>;
96
88
  }
89
+ declare function generateTokenForProjectItems$1(httpClient: HttpClient): GenerateTokenForProjectItemsSignature;
90
+ interface GenerateTokenForProjectItemsSignature {
91
+ /**
92
+ * Generate media token for project items
93
+ * @param - Media ids of requested project items
94
+ */
95
+ (mediaIds: string[]): Promise<NonNullablePaths<GenerateTokenForProjectItemsResponse, `mediaTokens` | `mediaTokens.${number}.mediaId` | `mediaTokens.${number}.mediaToken`, 4>>;
96
+ }
97
97
  declare const onProjectItemCreated$1: EventDefinition<ProjectItemCreatedEnvelope, "wix.portfolio.project_items.v1.project_item_created">;
98
98
  declare const onProjectItemDeleted$1: EventDefinition<ProjectItemDeletedEnvelope, "wix.portfolio.project_items.v1.project_item_deleted">;
99
99
  declare const onProjectItemUpdated$1: EventDefinition<ProjectItemUpdatedEnvelope, "wix.portfolio.project_items.v1.project_item_updated">;
100
100
 
101
- declare const generateTokenForProjectItems: MaybeContext<BuildRESTFunction<typeof generateTokenForProjectItems$1> & typeof generateTokenForProjectItems$1>;
102
101
  declare const createProjectItem: MaybeContext<BuildRESTFunction<typeof createProjectItem$1> & typeof createProjectItem$1>;
103
102
  declare const bulkCreateProjectItems: MaybeContext<BuildRESTFunction<typeof bulkCreateProjectItems$1> & typeof bulkCreateProjectItems$1>;
104
103
  declare const getProjectItem: MaybeContext<BuildRESTFunction<typeof getProjectItem$1> & typeof getProjectItem$1>;
@@ -108,6 +107,7 @@ declare const bulkUpdateProjectItems: MaybeContext<BuildRESTFunction<typeof bulk
108
107
  declare const deleteProjectItem: MaybeContext<BuildRESTFunction<typeof deleteProjectItem$1> & typeof deleteProjectItem$1>;
109
108
  declare const bulkDeleteProjectItems: MaybeContext<BuildRESTFunction<typeof bulkDeleteProjectItems$1> & typeof bulkDeleteProjectItems$1>;
110
109
  declare const duplicateProjectItems: MaybeContext<BuildRESTFunction<typeof duplicateProjectItems$1> & typeof duplicateProjectItems$1>;
110
+ declare const generateTokenForProjectItems: MaybeContext<BuildRESTFunction<typeof generateTokenForProjectItems$1> & typeof generateTokenForProjectItems$1>;
111
111
  /**
112
112
  * Triggered when a project item is created.
113
113
  */