@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.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 {
@@ -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 };
@@ -46,6 +46,71 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
46
46
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
47
47
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
48
48
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
49
+ function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
50
+ const domainToMappings = {
51
+ "manage._base_domain_": [
52
+ {
53
+ srcPath: "/_api/portfolio-app-service",
54
+ destPath: "/api"
55
+ }
56
+ ],
57
+ "editor._base_domain_": [
58
+ {
59
+ srcPath: "/_api/portfolio-app-service",
60
+ destPath: "/api"
61
+ }
62
+ ],
63
+ "blocks._base_domain_": [
64
+ {
65
+ srcPath: "/_api/portfolio-app-service",
66
+ destPath: "/api"
67
+ }
68
+ ],
69
+ "create.editorx": [
70
+ {
71
+ srcPath: "/_api/portfolio-app-service",
72
+ destPath: "/api"
73
+ }
74
+ ],
75
+ _: [
76
+ {
77
+ srcPath: "/_api/portfolio-app-service",
78
+ destPath: "/api"
79
+ }
80
+ ],
81
+ "api._api_base_domain_": [
82
+ {
83
+ srcPath: "/_api/portfolio-app-service",
84
+ destPath: "/api"
85
+ }
86
+ ],
87
+ "www.wixapis.com": [
88
+ {
89
+ srcPath: "/portfolio/v1/settings",
90
+ destPath: "/api/v1/portfolio/settings"
91
+ },
92
+ {
93
+ srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
94
+ destPath: "/api/v1/portfolio/settings"
95
+ },
96
+ {
97
+ srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
98
+ destPath: "/api/v1/portfolio/project/items/media"
99
+ }
100
+ ],
101
+ "*.dev.wix-code.com": [
102
+ {
103
+ srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
104
+ destPath: "/api/v1/portfolio/settings"
105
+ },
106
+ {
107
+ srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
108
+ destPath: "/api/v1/portfolio/project/items/media"
109
+ }
110
+ ]
111
+ };
112
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
113
+ }
49
114
  function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
50
115
  const domainToMappings = {
51
116
  "manage._base_domain_": [
@@ -165,93 +230,7 @@ function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
165
230
  };
166
231
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
167
232
  }
168
- function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
169
- const domainToMappings = {
170
- "manage._base_domain_": [
171
- {
172
- srcPath: "/_api/portfolio-app-service",
173
- destPath: "/api"
174
- }
175
- ],
176
- "editor._base_domain_": [
177
- {
178
- srcPath: "/_api/portfolio-app-service",
179
- destPath: "/api"
180
- }
181
- ],
182
- "blocks._base_domain_": [
183
- {
184
- srcPath: "/_api/portfolio-app-service",
185
- destPath: "/api"
186
- }
187
- ],
188
- "create.editorx": [
189
- {
190
- srcPath: "/_api/portfolio-app-service",
191
- destPath: "/api"
192
- }
193
- ],
194
- _: [
195
- {
196
- srcPath: "/_api/portfolio-app-service",
197
- destPath: "/api"
198
- }
199
- ],
200
- "api._api_base_domain_": [
201
- {
202
- srcPath: "/_api/portfolio-app-service",
203
- destPath: "/api"
204
- }
205
- ],
206
- "www.wixapis.com": [
207
- {
208
- srcPath: "/portfolio/v1/settings",
209
- destPath: "/api/v1/portfolio/settings"
210
- },
211
- {
212
- srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
213
- destPath: "/api/v1/portfolio/settings"
214
- },
215
- {
216
- srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
217
- destPath: "/api/v1/portfolio/project/items/media"
218
- }
219
- ],
220
- "*.dev.wix-code.com": [
221
- {
222
- srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
223
- destPath: "/api/v1/portfolio/settings"
224
- },
225
- {
226
- srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
227
- destPath: "/api/v1/portfolio/project/items/media"
228
- }
229
- ]
230
- };
231
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
232
- }
233
233
  var PACKAGE_NAME = "@wix/auto_sdk_portfolio_project-items";
234
- function generateTokenForProjectItems(payload) {
235
- function __generateTokenForProjectItems({ host }) {
236
- const metadata = {
237
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
238
- method: "POST",
239
- methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
240
- packageName: PACKAGE_NAME,
241
- migrationOptions: {
242
- optInTransformResponse: true
243
- },
244
- url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
245
- protoPath: "/api/v1/portfolio/project/items/media",
246
- data: payload,
247
- host
248
- }),
249
- data: payload
250
- };
251
- return metadata;
252
- }
253
- return __generateTokenForProjectItems;
254
- }
255
234
  function createProjectItem(payload) {
256
235
  function __createProjectItem({ host }) {
257
236
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -720,6 +699,27 @@ function duplicateProjectItems(payload) {
720
699
  }
721
700
  return __duplicateProjectItems;
722
701
  }
702
+ function generateTokenForProjectItems(payload) {
703
+ function __generateTokenForProjectItems({ host }) {
704
+ const metadata = {
705
+ entityFqdn: "wix.portfolio.project_items.v1.project_item",
706
+ method: "POST",
707
+ methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
708
+ packageName: PACKAGE_NAME,
709
+ migrationOptions: {
710
+ optInTransformResponse: true
711
+ },
712
+ url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
713
+ protoPath: "/api/v1/portfolio/project/items/media",
714
+ data: payload,
715
+ host
716
+ }),
717
+ data: payload
718
+ };
719
+ return metadata;
720
+ }
721
+ return __generateTokenForProjectItems;
722
+ }
723
723
 
724
724
  // src/portfolio-project-items-v1-project-item-project-items.types.ts
725
725
  var Type = /* @__PURE__ */ ((Type2) => {
@@ -734,6 +734,11 @@ var ImageType = /* @__PURE__ */ ((ImageType2) => {
734
734
  ImageType2["EXTERNAL"] = "EXTERNAL";
735
735
  return ImageType2;
736
736
  })(ImageType || {});
737
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
738
+ SortOrder2["ASC"] = "ASC";
739
+ SortOrder2["DESC"] = "DESC";
740
+ return SortOrder2;
741
+ })(SortOrder || {});
737
742
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
738
743
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
739
744
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -742,33 +747,8 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
742
747
  WebhookIdentityType2["APP"] = "APP";
743
748
  return WebhookIdentityType2;
744
749
  })(WebhookIdentityType || {});
745
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
746
- SortOrder2["ASC"] = "ASC";
747
- SortOrder2["DESC"] = "DESC";
748
- return SortOrder2;
749
- })(SortOrder || {});
750
750
 
751
751
  // src/portfolio-project-items-v1-project-item-project-items.meta.ts
752
- function generateTokenForProjectItems2() {
753
- const payload = {};
754
- const getRequestOptions = generateTokenForProjectItems(
755
- payload
756
- );
757
- const getUrl = (context) => {
758
- const { url } = getRequestOptions(context);
759
- return url;
760
- };
761
- return {
762
- getUrl,
763
- httpMethod: "POST",
764
- path: "/api/v1/portfolio/project/items/media",
765
- pathParams: {},
766
- __requestType: null,
767
- __originalRequestType: null,
768
- __responseType: null,
769
- __originalResponseType: null
770
- };
771
- }
772
752
  function createProjectItem2() {
773
753
  const payload = {};
774
754
  const getRequestOptions = createProjectItem(payload);
@@ -939,6 +919,26 @@ function duplicateProjectItems2() {
939
919
  __originalResponseType: null
940
920
  };
941
921
  }
922
+ function generateTokenForProjectItems2() {
923
+ const payload = {};
924
+ const getRequestOptions = generateTokenForProjectItems(
925
+ payload
926
+ );
927
+ const getUrl = (context) => {
928
+ const { url } = getRequestOptions(context);
929
+ return url;
930
+ };
931
+ return {
932
+ getUrl,
933
+ httpMethod: "POST",
934
+ path: "/api/v1/portfolio/project/items/media",
935
+ pathParams: {},
936
+ __requestType: null,
937
+ __originalRequestType: null,
938
+ __responseType: null,
939
+ __originalResponseType: null
940
+ };
941
+ }
942
942
  // Annotate the CommonJS export names for ESM import in node:
943
943
  0 && (module.exports = {
944
944
  ImageTypeOriginal,