@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.
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +14 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +14 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +14 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +14 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +14 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +14 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +15 -15
- package/build/internal/cjs/index.js +14 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +14 -14
- package/build/internal/cjs/index.typings.js +14 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js +14 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +15 -15
- package/build/internal/es/index.mjs +14 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +14 -14
- package/build/internal/es/index.typings.mjs +14 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs +14 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { QueryOptions, QueryResponse } from './index.typings.js';
|
|
3
|
-
export { AggregateOptions, AggregationRequest, AggregationResponse, ApplicationError, BulkError, BulkInsertOptions, BulkInsertReferencesOptions, BulkInsertReferencesRequest, BulkInsertReferencesResponse, BulkInsertRequest, BulkInsertResponse, BulkPatchRequest, BulkPatchResponse, BulkRemoveOptions, BulkRemoveReferencesOptions, BulkRemoveReferencesRequest, BulkRemoveReferencesResponse, BulkRemoveRequest, BulkRemoveRequestEntry, BulkRemoveResponse, BulkReplaceReferencesOptions, BulkReplaceReferencesRequest, BulkReplaceReferencesResponse, BulkSaveOptions, BulkSaveRequest, BulkSaveResponse, BulkUpdateOptions, BulkUpdateRequest, BulkUpdateResponse, CountOptions, CountRequest, CountResponse, CursorPaging, Cursors, Details, DistinctOptions, DistinctRequest, DistinctResponse, Entry, GetOptions, GetRequest, GetResponse, InsertOptions, InsertRequest, InsertResponse, IsReferencedOptions, IsReferencedRequest, IsReferencedResponse, Item, Options, Order, Paging, PagingMetadataV2, PatchRequest, PatchResponse, PatchWhereRequest, PatchWhereResponse, Query, QueryReferencedOptions, QueryReferencedRequest, QueryReferencedResponse, QueryRequest, QueryV2, QueryV2PagingMethodOneOf, ReadOptions, Reference, ReferencedEntity, ReferencedEntityEntityOneOf, RemoveOptions, RemoveRequest, RemoveResponse, RestoreFromTrashBinRequest, RestoreFromTrashBinResponse, SaveOptions, SaveRequest, SaveResponse, Segment, SortOrder, Sorting, TruncateOptions, TruncateRequest, TruncateResponse, UpdateOptions, UpdateRequest, UpdateResponse } from './index.typings.js';
|
|
3
|
+
export { AggregateOptions, AggregationRequest, AggregationResponse, ApplicationError, BulkError, BulkInsertOptions, BulkInsertReferencesOptions, BulkInsertReferencesRequest, BulkInsertReferencesResponse, BulkInsertRequest, BulkInsertResponse, BulkPatchRequest, BulkPatchResponse, BulkRemoveOptions, BulkRemoveReferencesOptions, BulkRemoveReferencesRequest, BulkRemoveReferencesResponse, BulkRemoveRequest, BulkRemoveRequestEntry, BulkRemoveResponse, BulkReplaceReferencesOptions, BulkReplaceReferencesRequest, BulkReplaceReferencesResponse, BulkSaveOptions, BulkSaveRequest, BulkSaveResponse, BulkUpdateOptions, BulkUpdateRequest, BulkUpdateResponse, CountOptions, CountRequest, CountResponse, CursorPaging, Cursors, Details, DistinctOptions, DistinctRequest, DistinctResponse, Entry, GetOptions, GetRequest, GetResponse, InsertOptions, InsertRequest, InsertResponse, IsReferencedOptions, IsReferencedRequest, IsReferencedResponse, Item, Options, Order, OrderWithLiterals, Paging, PagingMetadataV2, PatchRequest, PatchResponse, PatchWhereRequest, PatchWhereResponse, Query, QueryReferencedOptions, QueryReferencedRequest, QueryReferencedResponse, QueryRequest, QueryV2, QueryV2PagingMethodOneOf, ReadOptions, Reference, ReferencedEntity, ReferencedEntityEntityOneOf, RemoveOptions, RemoveRequest, RemoveResponse, RestoreFromTrashBinRequest, RestoreFromTrashBinResponse, SaveOptions, SaveRequest, SaveResponse, Segment, SegmentWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, TruncateOptions, TruncateRequest, TruncateResponse, UpdateOptions, UpdateRequest, UpdateResponse } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function query$1(httpClient: HttpClient): QuerySignature;
|
|
6
6
|
interface QuerySignature {
|
|
@@ -10,7 +10,7 @@ interface QuerySignature {
|
|
|
10
10
|
* For more details on using queries, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
11
11
|
* @deprecated
|
|
12
12
|
*/
|
|
13
|
-
(options?: QueryOptions): Promise<NonNullablePaths<QueryResponse, `items` | `totalCount` | `totalResults` | `partialIncludes
|
|
13
|
+
(options?: QueryOptions): Promise<NonNullablePaths<QueryResponse, `items` | `totalCount` | `totalResults` | `partialIncludes`, 2>>;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare const query: MaybeContext<BuildRESTFunction<typeof query$1> & typeof query$1>;
|
package/build/cjs/index.js
CHANGED
|
@@ -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: "
|
|
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
|
-
|
|
513
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload, true),
|
|
502
514
|
fallback: [
|
|
503
515
|
{
|
|
504
516
|
method: "POST",
|