@wix/auto_sdk_data-backend-public-sdk-poc_data 1.0.33 → 1.0.35

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.
@@ -618,7 +618,7 @@ interface TruncateOptions {
618
618
  * @deprecated
619
619
  * @targetRemovalDate 2025-06-01
620
620
  */
621
- declare function query(options?: QueryOptions): Promise<NonNullablePaths<QueryResponse, `items` | `totalCount` | `totalResults` | `partialIncludes`>>;
621
+ declare function query(options?: QueryOptions): Promise<NonNullablePaths<QueryResponse, `items` | `totalCount` | `totalResults` | `partialIncludes`, 2>>;
622
622
  interface QueryOptions {
623
623
  /** Query preferences. For more details on using queries, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */
624
624
  dataQuery?: QueryV2;
@@ -356,6 +356,14 @@ function resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl(opts) {
356
356
  {
357
357
  srcPath: "/wix-data/v2",
358
358
  destPath: "/v2"
359
+ },
360
+ {
361
+ srcPath: "/data/v2/collections",
362
+ destPath: "/v2/collections"
363
+ },
364
+ {
365
+ srcPath: "/data/v2/items",
366
+ destPath: "/v2/items"
359
367
  }
360
368
  ],
361
369
  "www.wixgateway.com": [
@@ -372,6 +380,10 @@ function resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl(opts) {
372
380
  {
373
381
  srcPath: "/_api/cloud-data/v2",
374
382
  destPath: "/v2"
383
+ },
384
+ {
385
+ srcPath: "/_api/cloud-data/v1/external-database-connections",
386
+ destPath: "/v1/external-database-connections"
375
387
  }
376
388
  ]
377
389
  };
@@ -490,7 +502,7 @@ function query(payload) {
490
502
  function __query({ host }) {
491
503
  const metadata = {
492
504
  entityFqdn: "wix.data.v1.data_service",
493
- method: "POST",
505
+ method: "GET",
494
506
  methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Query",
495
507
  packageName: PACKAGE_NAME,
496
508
  url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
@@ -498,7 +510,7 @@ function query(payload) {
498
510
  data: payload,
499
511
  host
500
512
  }),
501
- data: payload,
513
+ params: (0, import_rest_modules.toURLSearchParams)(payload, true),
502
514
  fallback: [
503
515
  {
504
516
  method: "POST",