@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
|
@@ -619,7 +619,7 @@ interface InsertOptions {
|
|
|
619
619
|
* @deprecated
|
|
620
620
|
* @targetRemovalDate 2025-06-01
|
|
621
621
|
*/
|
|
622
|
-
declare function update(options?: NonNullablePaths<UpdateOptions, `item
|
|
622
|
+
declare function update(options?: NonNullablePaths<UpdateOptions, `item`, 2>): Promise<UpdateResponse>;
|
|
623
623
|
interface UpdateOptions {
|
|
624
624
|
/** Item to update. The existing item is replaced with this version. */
|
|
625
625
|
item: Record<string, any> | null;
|
|
@@ -723,7 +723,7 @@ interface TruncateOptions {
|
|
|
723
723
|
* @deprecated
|
|
724
724
|
* @targetRemovalDate 2025-06-01
|
|
725
725
|
*/
|
|
726
|
-
declare function query(options?: QueryOptions): Promise<NonNullablePaths<QueryResponse, `items` | `totalCount` | `totalResults` | `partialIncludes
|
|
726
|
+
declare function query(options?: QueryOptions): Promise<NonNullablePaths<QueryResponse, `items` | `totalCount` | `totalResults` | `partialIncludes`, 2>>;
|
|
727
727
|
interface QueryOptions {
|
|
728
728
|
/** Query preferences. For more details on using queries, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */
|
|
729
729
|
dataQuery?: QueryV2;
|
|
@@ -751,7 +751,7 @@ interface QueryOptions {
|
|
|
751
751
|
* @deprecated
|
|
752
752
|
* @targetRemovalDate 2025-06-01
|
|
753
753
|
*/
|
|
754
|
-
declare function aggregate(options?: AggregateOptions): Promise<NonNullablePaths<AggregationResponse, `items
|
|
754
|
+
declare function aggregate(options?: AggregateOptions): Promise<NonNullablePaths<AggregationResponse, `items`, 2>>;
|
|
755
755
|
interface AggregateOptions {
|
|
756
756
|
/** Paging preferences. */
|
|
757
757
|
paging?: Paging;
|
|
@@ -824,7 +824,7 @@ interface AggregateOptions {
|
|
|
824
824
|
* @deprecated
|
|
825
825
|
* @targetRemovalDate 2025-06-01
|
|
826
826
|
*/
|
|
827
|
-
declare function count(options?: CountOptions): Promise<NonNullablePaths<CountResponse, `totalCount` | `totalResults
|
|
827
|
+
declare function count(options?: CountOptions): Promise<NonNullablePaths<CountResponse, `totalCount` | `totalResults`, 2>>;
|
|
828
828
|
interface CountOptions {
|
|
829
829
|
/** Filter preferences defining the query. For more information on how to structure a filter object, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_the-filter-section). */
|
|
830
830
|
filter?: Record<string, any> | null;
|
|
@@ -848,7 +848,7 @@ interface CountOptions {
|
|
|
848
848
|
* @deprecated
|
|
849
849
|
* @targetRemovalDate 2025-06-01
|
|
850
850
|
*/
|
|
851
|
-
declare function distinct(options?: NonNullablePaths<DistinctOptions, `propertyName
|
|
851
|
+
declare function distinct(options?: NonNullablePaths<DistinctOptions, `propertyName`, 2>): Promise<NonNullablePaths<DistinctResponse, `items`, 2>>;
|
|
852
852
|
interface DistinctOptions {
|
|
853
853
|
/** Query preferences. For more details on using queries, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */
|
|
854
854
|
dataQuery?: QueryV2;
|
|
@@ -883,7 +883,7 @@ interface DistinctOptions {
|
|
|
883
883
|
* @deprecated
|
|
884
884
|
* @targetRemovalDate 2025-06-01
|
|
885
885
|
*/
|
|
886
|
-
declare function bulkInsert(options?: NonNullablePaths<BulkInsertOptions, `items
|
|
886
|
+
declare function bulkInsert(options?: NonNullablePaths<BulkInsertOptions, `items`, 2>): Promise<NonNullablePaths<BulkInsertResponse, `insertedItemIds` | `errors` | `errors.${number}.message` | `errors.${number}.details.applicationError.code` | `errors.${number}.details.applicationError.description` | `errors.${number}.originalIndex`, 6>>;
|
|
887
887
|
interface BulkInsertOptions {
|
|
888
888
|
/** Items to insert. */
|
|
889
889
|
items: Record<string, any>[] | null;
|
|
@@ -915,7 +915,7 @@ interface BulkInsertOptions {
|
|
|
915
915
|
* @deprecated
|
|
916
916
|
* @targetRemovalDate 2025-06-01
|
|
917
917
|
*/
|
|
918
|
-
declare function bulkSave(options?: NonNullablePaths<BulkSaveOptions, `items
|
|
918
|
+
declare function bulkSave(options?: NonNullablePaths<BulkSaveOptions, `items`, 2>): Promise<NonNullablePaths<BulkSaveResponse, `insertedItemIds` | `updatedItemIds` | `errors` | `errors.${number}.message` | `errors.${number}.details.applicationError.code` | `errors.${number}.details.applicationError.description` | `errors.${number}.originalIndex`, 6>>;
|
|
919
919
|
interface BulkSaveOptions {
|
|
920
920
|
/** Items to insert or update. */
|
|
921
921
|
items: Record<string, any>[] | null;
|
|
@@ -945,7 +945,7 @@ interface BulkSaveOptions {
|
|
|
945
945
|
* @deprecated
|
|
946
946
|
* @targetRemovalDate 2025-06-01
|
|
947
947
|
*/
|
|
948
|
-
declare function bulkUpdate(options?: NonNullablePaths<BulkUpdateOptions, `items
|
|
948
|
+
declare function bulkUpdate(options?: NonNullablePaths<BulkUpdateOptions, `items`, 2>): Promise<NonNullablePaths<BulkUpdateResponse, `updatedItemIds` | `errors` | `errors.${number}.message` | `errors.${number}.details.applicationError.code` | `errors.${number}.details.applicationError.description` | `errors.${number}.originalIndex`, 6>>;
|
|
949
949
|
interface BulkUpdateOptions {
|
|
950
950
|
/** Items to update. */
|
|
951
951
|
items: Record<string, any>[] | null;
|
|
@@ -969,7 +969,7 @@ interface BulkUpdateOptions {
|
|
|
969
969
|
* @deprecated
|
|
970
970
|
* @targetRemovalDate 2025-06-01
|
|
971
971
|
*/
|
|
972
|
-
declare function bulkRemove(options?: BulkRemoveOptions): Promise<NonNullablePaths<BulkRemoveResponse, `removedItemIds` | `errors` | `errors.${number}.message` | `errors.${number}.details.applicationError.code` | `errors.${number}.details.applicationError.description` | `errors.${number}.originalIndex
|
|
972
|
+
declare function bulkRemove(options?: BulkRemoveOptions): Promise<NonNullablePaths<BulkRemoveResponse, `removedItemIds` | `errors` | `errors.${number}.message` | `errors.${number}.details.applicationError.code` | `errors.${number}.details.applicationError.description` | `errors.${number}.originalIndex`, 6>>;
|
|
973
973
|
interface BulkRemoveOptions {
|
|
974
974
|
/** IDs of items to remove. */
|
|
975
975
|
entries?: BulkRemoveRequestEntry[];
|
|
@@ -991,7 +991,7 @@ interface BulkRemoveOptions {
|
|
|
991
991
|
* @deprecated
|
|
992
992
|
* @targetRemovalDate 2025-06-01
|
|
993
993
|
*/
|
|
994
|
-
declare function queryReferenced(options?: NonNullablePaths<QueryReferencedOptions, `propertyName` | `referringItemId
|
|
994
|
+
declare function queryReferenced(options?: NonNullablePaths<QueryReferencedOptions, `propertyName` | `referringItemId`, 2>): Promise<NonNullablePaths<QueryReferencedResponse, `items` | `totalCount` | `totalResults` | `entities` | `entities.${number}.referenceId`, 4>>;
|
|
995
995
|
interface QueryReferencedOptions {
|
|
996
996
|
/** ID of the referring item. */
|
|
997
997
|
referringItemId: string;
|
|
@@ -1026,7 +1026,7 @@ interface QueryReferencedOptions {
|
|
|
1026
1026
|
* @deprecated
|
|
1027
1027
|
* @targetRemovalDate 2025-06-01
|
|
1028
1028
|
*/
|
|
1029
|
-
declare function bulkInsertReferences(options?: NonNullablePaths<BulkInsertReferencesOptions, `references` | `references.${number}.propertyName` | `references.${number}.referencedItemId` | `references.${number}.referringItemId
|
|
1029
|
+
declare function bulkInsertReferences(options?: NonNullablePaths<BulkInsertReferencesOptions, `references` | `references.${number}.propertyName` | `references.${number}.referencedItemId` | `references.${number}.referringItemId`, 4>): Promise<void>;
|
|
1030
1030
|
interface BulkInsertReferencesOptions {
|
|
1031
1031
|
/**
|
|
1032
1032
|
* References to insert.
|
|
@@ -1051,7 +1051,7 @@ interface BulkInsertReferencesOptions {
|
|
|
1051
1051
|
* @deprecated
|
|
1052
1052
|
* @targetRemovalDate 2025-06-01
|
|
1053
1053
|
*/
|
|
1054
|
-
declare function bulkReplaceReferences(options?: NonNullablePaths<BulkReplaceReferencesOptions, `propertyName` | `referringItemId
|
|
1054
|
+
declare function bulkReplaceReferences(options?: NonNullablePaths<BulkReplaceReferencesOptions, `propertyName` | `referringItemId`, 2>): Promise<void>;
|
|
1055
1055
|
interface BulkReplaceReferencesOptions {
|
|
1056
1056
|
/** Property containing the references to the referenced items. */
|
|
1057
1057
|
propertyName: string;
|
|
@@ -1074,7 +1074,7 @@ interface BulkReplaceReferencesOptions {
|
|
|
1074
1074
|
* @deprecated
|
|
1075
1075
|
* @targetRemovalDate 2025-06-01
|
|
1076
1076
|
*/
|
|
1077
|
-
declare function bulkRemoveReferences(options?: NonNullablePaths<BulkRemoveReferencesOptions, `references` | `references.${number}.propertyName
|
|
1077
|
+
declare function bulkRemoveReferences(options?: NonNullablePaths<BulkRemoveReferencesOptions, `references` | `references.${number}.propertyName`, 4>): Promise<void>;
|
|
1078
1078
|
interface BulkRemoveReferencesOptions {
|
|
1079
1079
|
/**
|
|
1080
1080
|
* References to be removed.
|
|
@@ -1096,7 +1096,7 @@ interface BulkRemoveReferencesOptions {
|
|
|
1096
1096
|
* @deprecated
|
|
1097
1097
|
* @targetRemovalDate 2025-06-01
|
|
1098
1098
|
*/
|
|
1099
|
-
declare function isReferenced(options?: NonNullablePaths<IsReferencedOptions, `propertyName` | `referencedItemId` | `referringItemId
|
|
1099
|
+
declare function isReferenced(options?: NonNullablePaths<IsReferencedOptions, `propertyName` | `referencedItemId` | `referringItemId`, 2>): Promise<NonNullablePaths<IsReferencedResponse, `isReferenced`, 2>>;
|
|
1100
1100
|
interface IsReferencedOptions {
|
|
1101
1101
|
/** Property that may contain a reference to the specified item. */
|
|
1102
1102
|
propertyName: string;
|
|
@@ -312,6 +312,14 @@ function resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl(opts) {
|
|
|
312
312
|
{
|
|
313
313
|
srcPath: "/wix-data/v2",
|
|
314
314
|
destPath: "/v2"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
srcPath: "/data/v2/collections",
|
|
318
|
+
destPath: "/v2/collections"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
srcPath: "/data/v2/items",
|
|
322
|
+
destPath: "/v2/items"
|
|
315
323
|
}
|
|
316
324
|
],
|
|
317
325
|
"www.wixgateway.com": [
|
|
@@ -328,6 +336,10 @@ function resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl(opts) {
|
|
|
328
336
|
{
|
|
329
337
|
srcPath: "/_api/cloud-data/v2",
|
|
330
338
|
destPath: "/v2"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
srcPath: "/_api/cloud-data/v1/external-database-connections",
|
|
342
|
+
destPath: "/v1/external-database-connections"
|
|
331
343
|
}
|
|
332
344
|
]
|
|
333
345
|
};
|
|
@@ -446,7 +458,7 @@ function query(payload) {
|
|
|
446
458
|
function __query({ host }) {
|
|
447
459
|
const metadata = {
|
|
448
460
|
entityFqdn: "wix.data.v1.data_service",
|
|
449
|
-
method: "
|
|
461
|
+
method: "GET",
|
|
450
462
|
methodFqn: "com.wixpress.cloud.data.api.dataservice.WixDataService.Query",
|
|
451
463
|
packageName: PACKAGE_NAME,
|
|
452
464
|
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({
|
|
@@ -454,7 +466,7 @@ function query(payload) {
|
|
|
454
466
|
data: payload,
|
|
455
467
|
host
|
|
456
468
|
}),
|
|
457
|
-
|
|
469
|
+
params: toURLSearchParams(payload, true),
|
|
458
470
|
fallback: [
|
|
459
471
|
{
|
|
460
472
|
method: "POST",
|