@wix/data-backend-public-sdk-poc
Advanced tools
Comparing version 1.0.50 to 1.0.51
@@ -5,2 +5,3 @@ "use strict"; | ||
const metro_runtime_1 = require("@wix/metro-runtime"); | ||
const metro_runtime_2 = require("@wix/metro-runtime"); | ||
function resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl(opts) { | ||
@@ -280,4 +281,10 @@ const domainToMappings = { | ||
], | ||
'*.dev.wix-code.com': [ | ||
{ | ||
srcPath: '/_api/cloud-data/v2', | ||
destPath: '/v2', | ||
}, | ||
], | ||
}; | ||
return (0, metro_runtime_1.resolveUrl)(Object.assign(opts, { domainToMappings })); | ||
return (0, metro_runtime_2.resolveUrl)(Object.assign(opts, { domainToMappings })); | ||
} | ||
@@ -293,3 +300,3 @@ /** | ||
entityFqdn: 'wix.data.v1.data_service', | ||
method: 'POST', | ||
method: 'GET', | ||
methodFqn: 'com.wixpress.cloud.data.api.dataservice.WixDataService.Query', | ||
@@ -301,3 +308,14 @@ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({ | ||
}), | ||
data: payload, | ||
params: (0, metro_runtime_1.toURLSearchParams)(payload), | ||
fallback: [ | ||
{ | ||
method: 'GET', | ||
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({ | ||
protoPath: '/v1/items/query', | ||
data: payload, | ||
host, | ||
}), | ||
params: (0, metro_runtime_1.toURLSearchParams)(payload), | ||
}, | ||
], | ||
}; | ||
@@ -304,0 +322,0 @@ return metadata; |
@@ -13,2 +13,2 @@ import * as ambassadorWixDataV1DataServiceTypes from './data-v1-data-service.types'; | ||
}; | ||
export declare function query(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixDataV1DataServiceUniversalTypes.QueryRequest, ambassadorWixDataV1DataServiceTypes.QueryRequest, ambassadorWixDataV1DataServiceUniversalTypes.QueryResponse & ambassadorWixDataV1DataServiceUniversalTypes.QueryResponseNonNullableFields, ambassadorWixDataV1DataServiceTypes.QueryResponse & ambassadorWixDataV1DataServiceTypes.QueryResponseNonNullableFields>; | ||
export declare function query(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixDataV1DataServiceUniversalTypes.QueryRequest, ambassadorWixDataV1DataServiceTypes.QueryRequest, ambassadorWixDataV1DataServiceUniversalTypes.QueryResponse & ambassadorWixDataV1DataServiceUniversalTypes.QueryResponseNonNullableFields, ambassadorWixDataV1DataServiceTypes.QueryResponse & ambassadorWixDataV1DataServiceTypes.QueryResponseNonNullableFields>; |
@@ -37,3 +37,3 @@ "use strict"; | ||
getUrl, | ||
httpMethod: 'POST', | ||
httpMethod: 'GET', | ||
path: '/v1/items/query', | ||
@@ -40,0 +40,0 @@ pathParams: {}, |
@@ -1,7 +0,1 @@ | ||
export declare const __debug: { | ||
verboseLogging: { | ||
on: () => boolean; | ||
off: () => boolean; | ||
}; | ||
}; | ||
export interface Item { | ||
@@ -8,0 +2,0 @@ item?: Record<string, any> | null; |
@@ -35,19 +35,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.query = exports.Order = exports.SortOrder = exports.Segment = exports.__debug = void 0; | ||
exports.query = exports.Order = exports.SortOrder = exports.Segment = void 0; | ||
const velo_1 = require("@wix/metro-runtime/velo"); | ||
const transform_error_1 = require("@wix/sdk-runtime/transform-error"); | ||
const ambassadorWixDataV1DataService = __importStar(require("./data-v1-data-service.http")); | ||
let __verbose = false; | ||
function __log(...args) { | ||
__verbose && console.log(...args); | ||
} | ||
function __inspect(obj) { | ||
return obj; | ||
} | ||
exports.__debug = { | ||
verboseLogging: { | ||
on: () => (__verbose = true), | ||
off: () => (__verbose = false), | ||
}, | ||
}; | ||
const _toVeloEntity = '$'; | ||
@@ -118,3 +105,2 @@ const _fromVeloEntity = '$'; | ||
const reqOpts = ambassadorWixDataV1DataService.query(payload); | ||
__log(`"Query" sending request with: ${__inspect(reqOpts)}`); | ||
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects); | ||
@@ -121,0 +107,0 @@ try { |
@@ -0,1 +1,2 @@ | ||
import { toURLSearchParams } from '@wix/metro-runtime'; | ||
import { resolveUrl } from '@wix/metro-runtime'; | ||
@@ -276,2 +277,8 @@ function resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl(opts) { | ||
], | ||
'*.dev.wix-code.com': [ | ||
{ | ||
srcPath: '/_api/cloud-data/v2', | ||
destPath: '/v2', | ||
}, | ||
], | ||
}; | ||
@@ -289,3 +296,3 @@ return resolveUrl(Object.assign(opts, { domainToMappings })); | ||
entityFqdn: 'wix.data.v1.data_service', | ||
method: 'POST', | ||
method: 'GET', | ||
methodFqn: 'com.wixpress.cloud.data.api.dataservice.WixDataService.Query', | ||
@@ -297,3 +304,14 @@ url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({ | ||
}), | ||
data: payload, | ||
params: toURLSearchParams(payload), | ||
fallback: [ | ||
{ | ||
method: 'GET', | ||
url: resolveComWixpressCloudDataApiDataserviceWixDataServiceUrl({ | ||
protoPath: '/v1/items/query', | ||
data: payload, | ||
host, | ||
}), | ||
params: toURLSearchParams(payload), | ||
}, | ||
], | ||
}; | ||
@@ -300,0 +318,0 @@ return metadata; |
@@ -13,2 +13,2 @@ import * as ambassadorWixDataV1DataServiceTypes from './data-v1-data-service.types'; | ||
}; | ||
export declare function query(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixDataV1DataServiceUniversalTypes.QueryRequest, ambassadorWixDataV1DataServiceTypes.QueryRequest, ambassadorWixDataV1DataServiceUniversalTypes.QueryResponse & ambassadorWixDataV1DataServiceUniversalTypes.QueryResponseNonNullableFields, ambassadorWixDataV1DataServiceTypes.QueryResponse & ambassadorWixDataV1DataServiceTypes.QueryResponseNonNullableFields>; | ||
export declare function query(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixDataV1DataServiceUniversalTypes.QueryRequest, ambassadorWixDataV1DataServiceTypes.QueryRequest, ambassadorWixDataV1DataServiceUniversalTypes.QueryResponse & ambassadorWixDataV1DataServiceUniversalTypes.QueryResponseNonNullableFields, ambassadorWixDataV1DataServiceTypes.QueryResponse & ambassadorWixDataV1DataServiceTypes.QueryResponseNonNullableFields>; |
@@ -11,3 +11,3 @@ import * as ambassadorWixDataV1DataService from './data-v1-data-service.http'; | ||
getUrl, | ||
httpMethod: 'POST', | ||
httpMethod: 'GET', | ||
path: '/v1/items/query', | ||
@@ -14,0 +14,0 @@ pathParams: {}, |
@@ -1,7 +0,1 @@ | ||
export declare const __debug: { | ||
verboseLogging: { | ||
on: () => boolean; | ||
off: () => boolean; | ||
}; | ||
}; | ||
export interface Item { | ||
@@ -8,0 +2,0 @@ item?: Record<string, any> | null; |
@@ -13,15 +13,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import * as ambassadorWixDataV1DataService from './data-v1-data-service.http'; | ||
let __verbose = false; | ||
function __log(...args) { | ||
__verbose && console.log(...args); | ||
} | ||
function __inspect(obj) { | ||
return obj; | ||
} | ||
export const __debug = { | ||
verboseLogging: { | ||
on: () => (__verbose = true), | ||
off: () => (__verbose = false), | ||
}, | ||
}; | ||
const _toVeloEntity = '$'; | ||
@@ -92,3 +79,2 @@ const _fromVeloEntity = '$'; | ||
const reqOpts = ambassadorWixDataV1DataService.query(payload); | ||
__log(`"Query" sending request with: ${__inspect(reqOpts)}`); | ||
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects); | ||
@@ -95,0 +81,0 @@ try { |
{ | ||
"name": "@wix/data-backend-public-sdk-poc", | ||
"version": "1.0.50", | ||
"version": "1.0.51", | ||
"publishConfig": { | ||
@@ -15,3 +15,4 @@ "registry": "https://registry.npmjs.org/", | ||
"frontend/package.json", | ||
"meta" | ||
"meta", | ||
"context" | ||
], | ||
@@ -25,3 +26,4 @@ "dependencies": { | ||
"devDependencies": { | ||
"typescript": "^5.3.2" | ||
"typescript": "^5.3.2", | ||
"@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz" | ||
}, | ||
@@ -38,3 +40,3 @@ "scripts": { | ||
}, | ||
"falconPackageHash": "e1a53090175311a4d4a411fcaa5ecf203744a438d9ebf3180fd49ba5" | ||
"falconPackageHash": "01f28791f476884567139b411d3cb1d868218e6f40f037bcdf1dfa95" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
147413
63
3446
2