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

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;
@@ -328,6 +328,10 @@ function resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl(opts) {
328
328
  {
329
329
  srcPath: "/_api/cloud-data/v2",
330
330
  destPath: "/v2"
331
+ },
332
+ {
333
+ srcPath: "/_api/cloud-data/v1/external-database-connections",
334
+ destPath: "/v1/external-database-connections"
331
335
  }
332
336
  ]
333
337
  };
@@ -446,7 +450,7 @@ function query(payload) {
446
450
  function __query({ host }) {
447
451
  const metadata = {
448
452
  entityFqdn: "wix.data.v1.data_service",
449
- method: "POST",
453
+ method: "GET",
450
454
  methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Query",
451
455
  packageName: PACKAGE_NAME,
452
456
  url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
@@ -454,7 +458,7 @@ function query(payload) {
454
458
  data: payload,
455
459
  host
456
460
  }),
457
- data: payload,
461
+ params: toURLSearchParams(payload, true),
458
462
  fallback: [
459
463
  {
460
464
  method: "POST",