@wix/auto_sdk_portfolio_projects 1.0.53 → 1.0.54

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 +1 -1
  2. package/build/cjs/index.js +24 -4
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +31 -3
  5. package/build/cjs/index.typings.js +24 -4
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +26 -3
  8. package/build/cjs/meta.js +24 -4
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +4 -0
  11. package/build/cjs/schemas.js +7 -1
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +1 -1
  14. package/build/es/index.mjs +24 -4
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +31 -3
  17. package/build/es/index.typings.mjs +24 -4
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +26 -3
  20. package/build/es/meta.mjs +24 -4
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +4 -0
  23. package/build/es/schemas.mjs +7 -1
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +1 -1
  26. package/build/internal/cjs/index.js +24 -4
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +31 -3
  29. package/build/internal/cjs/index.typings.js +24 -4
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +26 -3
  32. package/build/internal/cjs/meta.js +24 -4
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +4 -0
  35. package/build/internal/cjs/schemas.js +7 -1
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +1 -1
  38. package/build/internal/es/index.mjs +24 -4
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +31 -3
  41. package/build/internal/es/index.typings.mjs +24 -4
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +26 -3
  44. package/build/internal/es/meta.mjs +24 -4
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +4 -0
  47. package/build/internal/es/schemas.mjs +7 -1
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -647,10 +647,22 @@ declare enum Namespace {
647
647
  */
648
648
  SYMPHONY = "SYMPHONY",
649
649
  /** Nautilus platform app. */
650
- NAUTILUS_APPS = "NAUTILUS_APPS"
650
+ NAUTILUS_APPS = "NAUTILUS_APPS",
651
+ /**
652
+ * Vibu — a siteless site representing a project built with Vibu (the AI app builder).
653
+ * Holds the project's generated code, conversations, assets, and manages collaborators for the project.
654
+ */
655
+ VIBU = "VIBU",
656
+ /**
657
+ * Ghost site for the BrandKit multi-site platform. Each ghost backs a single BrandKit
658
+ * (an Enterprise account may have several), holding that BrandKit's brand definition
659
+ * (theme, typography, assets) which is rolled out to the BrandKit's connected sites.
660
+ * MetaSites with this namespace will *not* be shown in a user's site list by default.
661
+ */
662
+ ENTERPRISE_BRAND_KIT = "ENTERPRISE_BRAND_KIT"
651
663
  }
652
664
  /** @enumType */
653
- type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR' | 'TWINS' | 'NANO' | 'BASE44' | 'CHANNELS' | 'NAUTILUS' | 'SYMPHONY' | 'NAUTILUS_APPS';
665
+ type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR' | 'TWINS' | 'NANO' | 'BASE44' | 'CHANNELS' | 'NAUTILUS' | 'SYMPHONY' | 'NAUTILUS_APPS' | 'VIBU' | 'ENTERPRISE_BRAND_KIT';
654
666
  /** Site transferred to another user. */
655
667
  interface SiteTransferred {
656
668
  /**
@@ -1332,6 +1344,11 @@ interface Sorting {
1332
1344
  fieldName?: string;
1333
1345
  /** Sort order. */
1334
1346
  order?: SortOrderWithLiterals;
1347
+ /**
1348
+ * Origin point for geo-distance sorting on a GEO field
1349
+ * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
1350
+ */
1351
+ origin?: AddressLocation;
1335
1352
  }
1336
1353
  declare enum SortOrder {
1337
1354
  ASC = "ASC",
@@ -1339,6 +1356,12 @@ declare enum SortOrder {
1339
1356
  }
1340
1357
  /** @enumType */
1341
1358
  type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
1359
+ interface AddressLocation {
1360
+ /** Address latitude. */
1361
+ latitude?: number | null;
1362
+ /** Address longitude. */
1363
+ longitude?: number | null;
1364
+ }
1342
1365
  interface Paging {
1343
1366
  /** Number of items to load. */
1344
1367
  limit?: number | null;
@@ -1911,6 +1934,11 @@ type ProjectQuery = {
1911
1934
  Sort order.
1912
1935
  */
1913
1936
  order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
1937
+ /**
1938
+ Origin point for geo-distance sorting on a GEO field
1939
+ results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
1940
+ */
1941
+ origin?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['origin'];
1914
1942
  }[];
1915
1943
  };
1916
1944
  declare const utils: {
@@ -1964,4 +1992,4 @@ interface QueryProjectsWithCollectionInfoOptions {
1964
1992
  includePageUrl?: boolean | null;
1965
1993
  }
1966
1994
 
1967
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type App, type ApplicationError, type Asset, type BaseEventMetadata, type BulkActionMetadata, type BulkUpdateProjectsOptions, type BulkUpdateProjectsRequest, type BulkUpdateProjectsResponse, type BulkUpdateProjectsResult, type CommonQueryWithEntityContext, type CreateNewPortfolioAppRequest, type CreateNewPortfolioAppResponse, type CreateProjectRequest, type CreateProjectResponse, type CursorPaging, type Cursors, type CustomTag, type DeleteContext, type DeleteProjectRequest, type DeleteProjectResponse, DeleteStatus, type DeleteStatusWithLiterals, type DeletedProjectRestored, type DetailsLink, type DomainEvent, type DomainEventBodyOneOf, type EditorlessAssigned, type EditorlessUnassigned, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type File, type GetAdjacentProjectInfoRequest, type GetAdjacentProjectInfoResponse, type GetProjectOptions, type GetProjectPageDataRequest, type GetProjectPageDataResponse, type GetProjectRequest, type GetProjectResponse, type IdentificationData, type IdentificationDataIdOneOf, type Image, ImageType, type ImageTypeWithLiterals, type InvalidateCache, type InvalidateCacheGetByOneOf, type ItemMetadata, type Keyword, type ListProjectsOptions, type ListProjectsRequest, type ListProjectsResponse, type MaskedProject, type MenuSettingUpdatedEvent, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type Page, type Pages, type Paging, type PagingMetadataV2, type PicassoAssigned, type PicassoUnassigned, type Point, Position, type PositionWithLiterals, type Project, type ProjectCoverOneOf, type ProjectCreatedEnvelope, type ProjectDeletedEnvelope, type ProjectDetail, type ProjectDetailValueOneOf, type ProjectInfo, type ProjectQuery, type ProjectQuerySpec, type ProjectSlug, type ProjectSource, type ProjectUpdatedEnvelope, type ProjectsInCollections, type ProjectsQueryBuilder, type ProjectsQueryResult, type QueryProjectWithCollectionInfoRequest, type QueryProjectWithCollectionInfoResponse, type QueryProjectsOptions, type QueryProjectsRequest, type QueryProjectsResponse, type QueryProjectsWithCollectionInfoOptions, type QueryV2, type QueryV2PagingMethodOneOf, type RestoreInfo, type RestoreProjectFromTrashBinRequest, type RestoreProjectFromTrashBinResponse, type SeoSchema, type ServiceProvisioned, type ServiceRemoved, type Settings, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type SyncProjectWithCollectionMappings, SyncStatus, type SyncStatusWithLiterals, type Tag, type URI, type URIs, type UnsharpMasking, type UpdateProject, type UpdateProjectOrderInCollectionIdentifiers, type UpdateProjectOrderInCollectionRequest, type UpdateProjectOrderInCollectionResponse, type UpdateProjectRequest, type UpdateProjectResponse, type UserDomainMediaDisabled, type UserDomainMediaEnabled, type Video, type VideoResolution, type Watermark, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, bulkUpdateProjects, createProject, deleteProject, getProject, listProjects, onProjectCreated, onProjectDeleted, onProjectUpdated, queryProjects, queryProjectsWithCollectionInfo, typedQueryProjects, updateProject, updateProjectOrderInCollection, utils };
1995
+ export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, type App, type ApplicationError, type Asset, type BaseEventMetadata, type BulkActionMetadata, type BulkUpdateProjectsOptions, type BulkUpdateProjectsRequest, type BulkUpdateProjectsResponse, type BulkUpdateProjectsResult, type CommonQueryWithEntityContext, type CreateNewPortfolioAppRequest, type CreateNewPortfolioAppResponse, type CreateProjectRequest, type CreateProjectResponse, type CursorPaging, type Cursors, type CustomTag, type DeleteContext, type DeleteProjectRequest, type DeleteProjectResponse, DeleteStatus, type DeleteStatusWithLiterals, type DeletedProjectRestored, type DetailsLink, type DomainEvent, type DomainEventBodyOneOf, type EditorlessAssigned, type EditorlessUnassigned, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type File, type GetAdjacentProjectInfoRequest, type GetAdjacentProjectInfoResponse, type GetProjectOptions, type GetProjectPageDataRequest, type GetProjectPageDataResponse, type GetProjectRequest, type GetProjectResponse, type IdentificationData, type IdentificationDataIdOneOf, type Image, ImageType, type ImageTypeWithLiterals, type InvalidateCache, type InvalidateCacheGetByOneOf, type ItemMetadata, type Keyword, type ListProjectsOptions, type ListProjectsRequest, type ListProjectsResponse, type MaskedProject, type MenuSettingUpdatedEvent, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type Page, type Pages, type Paging, type PagingMetadataV2, type PicassoAssigned, type PicassoUnassigned, type Point, Position, type PositionWithLiterals, type Project, type ProjectCoverOneOf, type ProjectCreatedEnvelope, type ProjectDeletedEnvelope, type ProjectDetail, type ProjectDetailValueOneOf, type ProjectInfo, type ProjectQuery, type ProjectQuerySpec, type ProjectSlug, type ProjectSource, type ProjectUpdatedEnvelope, type ProjectsInCollections, type ProjectsQueryBuilder, type ProjectsQueryResult, type QueryProjectWithCollectionInfoRequest, type QueryProjectWithCollectionInfoResponse, type QueryProjectsOptions, type QueryProjectsRequest, type QueryProjectsResponse, type QueryProjectsWithCollectionInfoOptions, type QueryV2, type QueryV2PagingMethodOneOf, type RestoreInfo, type RestoreProjectFromTrashBinRequest, type RestoreProjectFromTrashBinResponse, type SeoSchema, type ServiceProvisioned, type ServiceRemoved, type Settings, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type SyncProjectWithCollectionMappings, SyncStatus, type SyncStatusWithLiterals, type Tag, type URI, type URIs, type UnsharpMasking, type UpdateProject, type UpdateProjectOrderInCollectionIdentifiers, type UpdateProjectOrderInCollectionRequest, type UpdateProjectOrderInCollectionResponse, type UpdateProjectRequest, type UpdateProjectResponse, type UserDomainMediaDisabled, type UserDomainMediaEnabled, type Video, type VideoResolution, type Watermark, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, bulkUpdateProjects, createProject, deleteProject, getProject, listProjects, onProjectCreated, onProjectDeleted, onProjectUpdated, queryProjects, queryProjectsWithCollectionInfo, typedQueryProjects, updateProject, updateProjectOrderInCollection, utils };
@@ -505,6 +505,15 @@ function deleteProject(payload) {
505
505
  }
506
506
  function queryProjects(payload) {
507
507
  function __queryProjects({ host }) {
508
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
509
+ {
510
+ transformFn: import_float.transformSDKFloatToRESTFloat,
511
+ paths: [
512
+ { path: "query.sort.origin.latitude" },
513
+ { path: "query.sort.origin.longitude" }
514
+ ]
515
+ }
516
+ ]);
508
517
  const metadata = {
509
518
  entityFqdn: "wix.portfolio.projects.v1.project",
510
519
  method: "POST",
@@ -515,10 +524,10 @@ function queryProjects(payload) {
515
524
  },
516
525
  url: resolveComWixpressPortfolioProjectsProjectsServiceUrl({
517
526
  protoPath: "/api/v1/portfolio/projects/query",
518
- data: payload,
527
+ data: serializedData,
519
528
  host
520
529
  }),
521
- data: payload,
530
+ data: serializedData,
522
531
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
523
532
  {
524
533
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
@@ -641,6 +650,15 @@ function updateProjectOrderInCollection(payload) {
641
650
  }
642
651
  function queryProjectsWithCollectionInfo(payload) {
643
652
  function __queryProjectsWithCollectionInfo({ host }) {
653
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
654
+ {
655
+ transformFn: import_float.transformSDKFloatToRESTFloat,
656
+ paths: [
657
+ { path: "query.sort.origin.latitude" },
658
+ { path: "query.sort.origin.longitude" }
659
+ ]
660
+ }
661
+ ]);
644
662
  const metadata = {
645
663
  entityFqdn: "wix.portfolio.projects.v1.project",
646
664
  method: "POST",
@@ -651,10 +669,10 @@ function queryProjectsWithCollectionInfo(payload) {
651
669
  },
652
670
  url: resolveComWixpressPortfolioProjectsProjectsServiceUrl({
653
671
  protoPath: "/api/1/portfolio/projects/collections/query",
654
- data: payload,
672
+ data: serializedData,
655
673
  host
656
674
  }),
657
- data: payload,
675
+ data: serializedData,
658
676
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
659
677
  {
660
678
  transformFn: import_float2.transformRESTFloatToSDKFloat,
@@ -782,6 +800,8 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
782
800
  Namespace2["NAUTILUS"] = "NAUTILUS";
783
801
  Namespace2["SYMPHONY"] = "SYMPHONY";
784
802
  Namespace2["NAUTILUS_APPS"] = "NAUTILUS_APPS";
803
+ Namespace2["VIBU"] = "VIBU";
804
+ Namespace2["ENTERPRISE_BRAND_KIT"] = "ENTERPRISE_BRAND_KIT";
785
805
  return Namespace2;
786
806
  })(Namespace || {});
787
807
  var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {