@wix/auto_sdk_portfolio_project-items 1.0.43 → 1.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +10 -10
  2. package/build/cjs/index.js +124 -124
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +181 -187
  5. package/build/cjs/index.typings.js +116 -116
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +175 -175
  8. package/build/cjs/meta.js +111 -111
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +9 -9
  11. package/build/cjs/schemas.js +11 -11
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +10 -10
  14. package/build/es/index.mjs +124 -124
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +181 -187
  17. package/build/es/index.typings.mjs +116 -116
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +175 -175
  20. package/build/es/meta.mjs +111 -111
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +9 -9
  23. package/build/es/schemas.mjs +11 -11
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +10 -10
  26. package/build/internal/cjs/index.js +124 -124
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +181 -187
  29. package/build/internal/cjs/index.typings.js +116 -116
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +175 -175
  32. package/build/internal/cjs/meta.js +111 -111
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +9 -9
  35. package/build/internal/cjs/schemas.js +11 -11
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +10 -10
  38. package/build/internal/es/index.mjs +124 -124
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +181 -187
  41. package/build/internal/es/index.typings.mjs +116 -116
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +175 -175
  44. package/build/internal/es/meta.mjs +111 -111
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +9 -9
  47. package/build/internal/es/schemas.mjs +11 -11
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -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.mjs';
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.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  interface Item extends ItemMetadataOneOf {
@@ -211,179 +211,6 @@ interface Link {
211
211
  */
212
212
  target?: string | null;
213
213
  }
214
- interface GenerateTokenForProjectItemsRequest {
215
- /**
216
- * Media ids of requested project items
217
- * @minSize 1
218
- * @maxLength 100
219
- */
220
- mediaIds: string[];
221
- }
222
- interface GenerateTokenForProjectItemsResponse {
223
- /** Generated media tokens for project items */
224
- mediaTokens?: ProjectItemMediaToken[];
225
- }
226
- interface ProjectItemMediaToken {
227
- /** Media id of project item */
228
- mediaId?: string;
229
- /** Generated media token for project item */
230
- mediaToken?: string;
231
- }
232
- interface DomainEvent extends DomainEventBodyOneOf {
233
- createdEvent?: EntityCreatedEvent;
234
- updatedEvent?: EntityUpdatedEvent;
235
- deletedEvent?: EntityDeletedEvent;
236
- actionEvent?: ActionEvent;
237
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
238
- id?: string;
239
- /**
240
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
241
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
242
- */
243
- entityFqdn?: string;
244
- /**
245
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
246
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
247
- */
248
- slug?: string;
249
- /** ID of the entity associated with the event. */
250
- entityId?: string;
251
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
252
- eventTime?: Date | null;
253
- /**
254
- * Whether the event was triggered as a result of a privacy regulation application
255
- * (for example, GDPR).
256
- */
257
- triggeredByAnonymizeRequest?: boolean | null;
258
- /** If present, indicates the action that triggered the event. */
259
- originatedFrom?: string | null;
260
- /**
261
- * 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.
262
- * 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.
263
- */
264
- entityEventSequence?: string | null;
265
- }
266
- /** @oneof */
267
- interface DomainEventBodyOneOf {
268
- createdEvent?: EntityCreatedEvent;
269
- updatedEvent?: EntityUpdatedEvent;
270
- deletedEvent?: EntityDeletedEvent;
271
- actionEvent?: ActionEvent;
272
- }
273
- interface EntityCreatedEvent {
274
- entityAsJson?: string;
275
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
276
- restoreInfo?: RestoreInfo;
277
- }
278
- interface RestoreInfo {
279
- deletedDate?: Date | null;
280
- }
281
- interface EntityUpdatedEvent {
282
- /**
283
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
284
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
285
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
286
- */
287
- currentEntityAsJson?: string;
288
- }
289
- interface EntityDeletedEvent {
290
- /** Entity that was deleted. */
291
- deletedEntityAsJson?: string | null;
292
- }
293
- interface ActionEvent {
294
- bodyAsJson?: string;
295
- }
296
- interface MessageEnvelope {
297
- /**
298
- * App instance ID.
299
- * @format GUID
300
- */
301
- instanceId?: string | null;
302
- /**
303
- * Event type.
304
- * @maxLength 150
305
- */
306
- eventType?: string;
307
- /** The identification type and identity data. */
308
- identity?: IdentificationData;
309
- /** Stringify payload. */
310
- data?: string;
311
- /** Details related to the account */
312
- accountInfo?: AccountInfo;
313
- }
314
- interface IdentificationData extends IdentificationDataIdOneOf {
315
- /**
316
- * ID of a site visitor that has not logged in to the site.
317
- * @format GUID
318
- */
319
- anonymousVisitorId?: string;
320
- /**
321
- * ID of a site visitor that has logged in to the site.
322
- * @format GUID
323
- */
324
- memberId?: string;
325
- /**
326
- * ID of a Wix user (site owner, contributor, etc.).
327
- * @format GUID
328
- */
329
- wixUserId?: string;
330
- /**
331
- * ID of an app.
332
- * @format GUID
333
- */
334
- appId?: string;
335
- /** @readonly */
336
- identityType?: WebhookIdentityTypeWithLiterals;
337
- }
338
- /** @oneof */
339
- interface IdentificationDataIdOneOf {
340
- /**
341
- * ID of a site visitor that has not logged in to the site.
342
- * @format GUID
343
- */
344
- anonymousVisitorId?: string;
345
- /**
346
- * ID of a site visitor that has logged in to the site.
347
- * @format GUID
348
- */
349
- memberId?: string;
350
- /**
351
- * ID of a Wix user (site owner, contributor, etc.).
352
- * @format GUID
353
- */
354
- wixUserId?: string;
355
- /**
356
- * ID of an app.
357
- * @format GUID
358
- */
359
- appId?: string;
360
- }
361
- declare enum WebhookIdentityType {
362
- UNKNOWN = "UNKNOWN",
363
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
364
- MEMBER = "MEMBER",
365
- WIX_USER = "WIX_USER",
366
- APP = "APP"
367
- }
368
- /** @enumType */
369
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
370
- interface AccountInfo {
371
- /**
372
- * ID of the Wix account associated with the event.
373
- * @format GUID
374
- */
375
- accountId?: string | null;
376
- /**
377
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
378
- * @format GUID
379
- */
380
- parentAccountId?: string | null;
381
- /**
382
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
383
- * @format GUID
384
- */
385
- siteId?: string | null;
386
- }
387
214
  interface InvalidateCache extends InvalidateCacheGetByOneOf {
388
215
  /**
389
216
  * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
@@ -849,6 +676,70 @@ interface CreateProjectGalleryResponse {
849
676
  */
850
677
  galleryId?: string;
851
678
  }
679
+ interface DomainEvent extends DomainEventBodyOneOf {
680
+ createdEvent?: EntityCreatedEvent;
681
+ updatedEvent?: EntityUpdatedEvent;
682
+ deletedEvent?: EntityDeletedEvent;
683
+ actionEvent?: ActionEvent;
684
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
685
+ id?: string;
686
+ /**
687
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
688
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
689
+ */
690
+ entityFqdn?: string;
691
+ /**
692
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
693
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
694
+ */
695
+ slug?: string;
696
+ /** ID of the entity associated with the event. */
697
+ entityId?: string;
698
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
699
+ eventTime?: Date | null;
700
+ /**
701
+ * Whether the event was triggered as a result of a privacy regulation application
702
+ * (for example, GDPR).
703
+ */
704
+ triggeredByAnonymizeRequest?: boolean | null;
705
+ /** If present, indicates the action that triggered the event. */
706
+ originatedFrom?: string | null;
707
+ /**
708
+ * 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.
709
+ * 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.
710
+ */
711
+ entityEventSequence?: string | null;
712
+ }
713
+ /** @oneof */
714
+ interface DomainEventBodyOneOf {
715
+ createdEvent?: EntityCreatedEvent;
716
+ updatedEvent?: EntityUpdatedEvent;
717
+ deletedEvent?: EntityDeletedEvent;
718
+ actionEvent?: ActionEvent;
719
+ }
720
+ interface EntityCreatedEvent {
721
+ entityAsJson?: string;
722
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
723
+ restoreInfo?: RestoreInfo;
724
+ }
725
+ interface RestoreInfo {
726
+ deletedDate?: Date | null;
727
+ }
728
+ interface EntityUpdatedEvent {
729
+ /**
730
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
731
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
732
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
733
+ */
734
+ currentEntityAsJson?: string;
735
+ }
736
+ interface EntityDeletedEvent {
737
+ /** Entity that was deleted. */
738
+ deletedEntityAsJson?: string | null;
739
+ }
740
+ interface ActionEvent {
741
+ bodyAsJson?: string;
742
+ }
852
743
  interface Empty {
853
744
  }
854
745
  interface DeletedProjectRestored {
@@ -881,6 +772,115 @@ interface DuplicateProjectItemsResponse {
881
772
  /** Bulk action metadata. */
882
773
  bulkActionMetadata?: BulkActionMetadata;
883
774
  }
775
+ interface MessageEnvelope {
776
+ /**
777
+ * App instance ID.
778
+ * @format GUID
779
+ */
780
+ instanceId?: string | null;
781
+ /**
782
+ * Event type.
783
+ * @maxLength 150
784
+ */
785
+ eventType?: string;
786
+ /** The identification type and identity data. */
787
+ identity?: IdentificationData;
788
+ /** Stringify payload. */
789
+ data?: string;
790
+ /** Details related to the account */
791
+ accountInfo?: AccountInfo;
792
+ }
793
+ interface IdentificationData extends IdentificationDataIdOneOf {
794
+ /**
795
+ * ID of a site visitor that has not logged in to the site.
796
+ * @format GUID
797
+ */
798
+ anonymousVisitorId?: string;
799
+ /**
800
+ * ID of a site visitor that has logged in to the site.
801
+ * @format GUID
802
+ */
803
+ memberId?: string;
804
+ /**
805
+ * ID of a Wix user (site owner, contributor, etc.).
806
+ * @format GUID
807
+ */
808
+ wixUserId?: string;
809
+ /**
810
+ * ID of an app.
811
+ * @format GUID
812
+ */
813
+ appId?: string;
814
+ /** @readonly */
815
+ identityType?: WebhookIdentityTypeWithLiterals;
816
+ }
817
+ /** @oneof */
818
+ interface IdentificationDataIdOneOf {
819
+ /**
820
+ * ID of a site visitor that has not logged in to the site.
821
+ * @format GUID
822
+ */
823
+ anonymousVisitorId?: string;
824
+ /**
825
+ * ID of a site visitor that has logged in to the site.
826
+ * @format GUID
827
+ */
828
+ memberId?: string;
829
+ /**
830
+ * ID of a Wix user (site owner, contributor, etc.).
831
+ * @format GUID
832
+ */
833
+ wixUserId?: string;
834
+ /**
835
+ * ID of an app.
836
+ * @format GUID
837
+ */
838
+ appId?: string;
839
+ }
840
+ declare enum WebhookIdentityType {
841
+ UNKNOWN = "UNKNOWN",
842
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
843
+ MEMBER = "MEMBER",
844
+ WIX_USER = "WIX_USER",
845
+ APP = "APP"
846
+ }
847
+ /** @enumType */
848
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
849
+ interface AccountInfo {
850
+ /**
851
+ * ID of the Wix account associated with the event.
852
+ * @format GUID
853
+ */
854
+ accountId?: string | null;
855
+ /**
856
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
857
+ * @format GUID
858
+ */
859
+ parentAccountId?: string | null;
860
+ /**
861
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
862
+ * @format GUID
863
+ */
864
+ siteId?: string | null;
865
+ }
866
+ interface GenerateTokenForProjectItemsRequest {
867
+ /**
868
+ * Media ids of requested project items
869
+ * @minSize 1
870
+ * @maxLength 100
871
+ */
872
+ mediaIds: string[];
873
+ }
874
+ interface GenerateTokenForProjectItemsResponse {
875
+ /** Generated media tokens for project items */
876
+ mediaTokens?: ProjectItemMediaToken[];
877
+ }
878
+ interface ProjectItemMediaToken {
879
+ /** Media id of project item */
880
+ mediaId?: string;
881
+ /** Generated media token for project item */
882
+ mediaToken?: string;
883
+ }
884
884
 
885
885
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
886
886
  getUrl: (context: any) => string;
@@ -892,7 +892,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
892
892
  __responseType: Q;
893
893
  __originalResponseType: R;
894
894
  };
895
- declare function generateTokenForProjectItems(): __PublicMethodMetaInfo<'POST', {}, GenerateTokenForProjectItemsRequest$1, GenerateTokenForProjectItemsRequest, GenerateTokenForProjectItemsResponse$1, GenerateTokenForProjectItemsResponse>;
896
895
  declare function createProjectItem(): __PublicMethodMetaInfo<'POST', {}, CreateProjectItemRequest$1, CreateProjectItemRequest, CreateProjectItemResponse$1, CreateProjectItemResponse>;
897
896
  declare function bulkCreateProjectItems(): __PublicMethodMetaInfo<'POST', {}, BulkCreateProjectItemsRequest$1, BulkCreateProjectItemsRequest, BulkCreateProjectItemsResponse$1, BulkCreateProjectItemsResponse>;
898
897
  declare function getProjectItem(): __PublicMethodMetaInfo<'GET', {
@@ -910,5 +909,6 @@ declare function deleteProjectItem(): __PublicMethodMetaInfo<'DELETE', {
910
909
  }, DeleteProjectItemRequest$1, DeleteProjectItemRequest, DeleteProjectItemResponse$1, DeleteProjectItemResponse>;
911
910
  declare function bulkDeleteProjectItems(): __PublicMethodMetaInfo<'DELETE', {}, BulkDeleteProjectItemsRequest$1, BulkDeleteProjectItemsRequest, BulkDeleteProjectItemsResponse$1, BulkDeleteProjectItemsResponse>;
912
911
  declare function duplicateProjectItems(): __PublicMethodMetaInfo<'POST', {}, DuplicateProjectItemsRequest$1, DuplicateProjectItemsRequest, DuplicateProjectItemsResponse$1, DuplicateProjectItemsResponse>;
912
+ declare function generateTokenForProjectItems(): __PublicMethodMetaInfo<'POST', {}, GenerateTokenForProjectItemsRequest$1, GenerateTokenForProjectItemsRequest, GenerateTokenForProjectItemsResponse$1, GenerateTokenForProjectItemsResponse>;
913
913
 
914
914
  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 };
@@ -7,6 +7,71 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
7
7
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
8
8
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
9
9
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
10
+ function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
11
+ const domainToMappings = {
12
+ "manage._base_domain_": [
13
+ {
14
+ srcPath: "/_api/portfolio-app-service",
15
+ destPath: "/api"
16
+ }
17
+ ],
18
+ "editor._base_domain_": [
19
+ {
20
+ srcPath: "/_api/portfolio-app-service",
21
+ destPath: "/api"
22
+ }
23
+ ],
24
+ "blocks._base_domain_": [
25
+ {
26
+ srcPath: "/_api/portfolio-app-service",
27
+ destPath: "/api"
28
+ }
29
+ ],
30
+ "create.editorx": [
31
+ {
32
+ srcPath: "/_api/portfolio-app-service",
33
+ destPath: "/api"
34
+ }
35
+ ],
36
+ _: [
37
+ {
38
+ srcPath: "/_api/portfolio-app-service",
39
+ destPath: "/api"
40
+ }
41
+ ],
42
+ "api._api_base_domain_": [
43
+ {
44
+ srcPath: "/_api/portfolio-app-service",
45
+ destPath: "/api"
46
+ }
47
+ ],
48
+ "www.wixapis.com": [
49
+ {
50
+ srcPath: "/portfolio/v1/settings",
51
+ destPath: "/api/v1/portfolio/settings"
52
+ },
53
+ {
54
+ srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
55
+ destPath: "/api/v1/portfolio/settings"
56
+ },
57
+ {
58
+ srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
59
+ destPath: "/api/v1/portfolio/project/items/media"
60
+ }
61
+ ],
62
+ "*.dev.wix-code.com": [
63
+ {
64
+ srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
65
+ destPath: "/api/v1/portfolio/settings"
66
+ },
67
+ {
68
+ srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
69
+ destPath: "/api/v1/portfolio/project/items/media"
70
+ }
71
+ ]
72
+ };
73
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
74
+ }
10
75
  function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
11
76
  const domainToMappings = {
12
77
  "manage._base_domain_": [
@@ -126,93 +191,7 @@ function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
126
191
  };
127
192
  return resolveUrl(Object.assign(opts, { domainToMappings }));
128
193
  }
129
- function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
130
- const domainToMappings = {
131
- "manage._base_domain_": [
132
- {
133
- srcPath: "/_api/portfolio-app-service",
134
- destPath: "/api"
135
- }
136
- ],
137
- "editor._base_domain_": [
138
- {
139
- srcPath: "/_api/portfolio-app-service",
140
- destPath: "/api"
141
- }
142
- ],
143
- "blocks._base_domain_": [
144
- {
145
- srcPath: "/_api/portfolio-app-service",
146
- destPath: "/api"
147
- }
148
- ],
149
- "create.editorx": [
150
- {
151
- srcPath: "/_api/portfolio-app-service",
152
- destPath: "/api"
153
- }
154
- ],
155
- _: [
156
- {
157
- srcPath: "/_api/portfolio-app-service",
158
- destPath: "/api"
159
- }
160
- ],
161
- "api._api_base_domain_": [
162
- {
163
- srcPath: "/_api/portfolio-app-service",
164
- destPath: "/api"
165
- }
166
- ],
167
- "www.wixapis.com": [
168
- {
169
- srcPath: "/portfolio/v1/settings",
170
- destPath: "/api/v1/portfolio/settings"
171
- },
172
- {
173
- srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
174
- destPath: "/api/v1/portfolio/settings"
175
- },
176
- {
177
- srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
178
- destPath: "/api/v1/portfolio/project/items/media"
179
- }
180
- ],
181
- "*.dev.wix-code.com": [
182
- {
183
- srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
184
- destPath: "/api/v1/portfolio/settings"
185
- },
186
- {
187
- srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
188
- destPath: "/api/v1/portfolio/project/items/media"
189
- }
190
- ]
191
- };
192
- return resolveUrl(Object.assign(opts, { domainToMappings }));
193
- }
194
194
  var PACKAGE_NAME = "@wix/auto_sdk_portfolio_project-items";
195
- function generateTokenForProjectItems(payload) {
196
- function __generateTokenForProjectItems({ host }) {
197
- const metadata = {
198
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
199
- method: "POST",
200
- methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
201
- packageName: PACKAGE_NAME,
202
- migrationOptions: {
203
- optInTransformResponse: true
204
- },
205
- url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
206
- protoPath: "/api/v1/portfolio/project/items/media",
207
- data: payload,
208
- host
209
- }),
210
- data: payload
211
- };
212
- return metadata;
213
- }
214
- return __generateTokenForProjectItems;
215
- }
216
195
  function createProjectItem(payload) {
217
196
  function __createProjectItem({ host }) {
218
197
  const serializedData = transformPaths(payload, [
@@ -681,6 +660,27 @@ function duplicateProjectItems(payload) {
681
660
  }
682
661
  return __duplicateProjectItems;
683
662
  }
663
+ function generateTokenForProjectItems(payload) {
664
+ function __generateTokenForProjectItems({ host }) {
665
+ const metadata = {
666
+ entityFqdn: "wix.portfolio.project_items.v1.project_item",
667
+ method: "POST",
668
+ methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
669
+ packageName: PACKAGE_NAME,
670
+ migrationOptions: {
671
+ optInTransformResponse: true
672
+ },
673
+ url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
674
+ protoPath: "/api/v1/portfolio/project/items/media",
675
+ data: payload,
676
+ host
677
+ }),
678
+ data: payload
679
+ };
680
+ return metadata;
681
+ }
682
+ return __generateTokenForProjectItems;
683
+ }
684
684
 
685
685
  // src/portfolio-project-items-v1-project-item-project-items.types.ts
686
686
  var Type = /* @__PURE__ */ ((Type2) => {
@@ -695,6 +695,11 @@ var ImageType = /* @__PURE__ */ ((ImageType2) => {
695
695
  ImageType2["EXTERNAL"] = "EXTERNAL";
696
696
  return ImageType2;
697
697
  })(ImageType || {});
698
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
699
+ SortOrder2["ASC"] = "ASC";
700
+ SortOrder2["DESC"] = "DESC";
701
+ return SortOrder2;
702
+ })(SortOrder || {});
698
703
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
699
704
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
700
705
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -703,33 +708,8 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
703
708
  WebhookIdentityType2["APP"] = "APP";
704
709
  return WebhookIdentityType2;
705
710
  })(WebhookIdentityType || {});
706
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
707
- SortOrder2["ASC"] = "ASC";
708
- SortOrder2["DESC"] = "DESC";
709
- return SortOrder2;
710
- })(SortOrder || {});
711
711
 
712
712
  // src/portfolio-project-items-v1-project-item-project-items.meta.ts
713
- function generateTokenForProjectItems2() {
714
- const payload = {};
715
- const getRequestOptions = generateTokenForProjectItems(
716
- payload
717
- );
718
- const getUrl = (context) => {
719
- const { url } = getRequestOptions(context);
720
- return url;
721
- };
722
- return {
723
- getUrl,
724
- httpMethod: "POST",
725
- path: "/api/v1/portfolio/project/items/media",
726
- pathParams: {},
727
- __requestType: null,
728
- __originalRequestType: null,
729
- __responseType: null,
730
- __originalResponseType: null
731
- };
732
- }
733
713
  function createProjectItem2() {
734
714
  const payload = {};
735
715
  const getRequestOptions = createProjectItem(payload);
@@ -900,6 +880,26 @@ function duplicateProjectItems2() {
900
880
  __originalResponseType: null
901
881
  };
902
882
  }
883
+ function generateTokenForProjectItems2() {
884
+ const payload = {};
885
+ const getRequestOptions = generateTokenForProjectItems(
886
+ payload
887
+ );
888
+ const getUrl = (context) => {
889
+ const { url } = getRequestOptions(context);
890
+ return url;
891
+ };
892
+ return {
893
+ getUrl,
894
+ httpMethod: "POST",
895
+ path: "/api/v1/portfolio/project/items/media",
896
+ pathParams: {},
897
+ __requestType: null,
898
+ __originalRequestType: null,
899
+ __responseType: null,
900
+ __originalResponseType: null
901
+ };
902
+ }
903
903
  export {
904
904
  ImageType as ImageTypeOriginal,
905
905
  SortOrder as SortOrderOriginal,