drapcode-developer-sdk 1.0.14 → 1.0.15-preview
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/index.js +2 -2
- package/build/methods/methods.js +4 -0
- package/build/utils/constants.d.ts +2 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -177,9 +177,9 @@ var DrapcodeApis = /** @class */ (function () {
|
|
|
177
177
|
DrapcodeApis.prototype.getBaseUrl = function () {
|
|
178
178
|
var envSub = this.getEnvSubdomain();
|
|
179
179
|
if (envSub) {
|
|
180
|
-
return "".concat(this.protocol, "://").concat(this.seoName, ".
|
|
180
|
+
return "".concat(this.protocol, "://").concat(this.seoName, ".").concat(envSub, ".").concat(this.API_PATH, "/v").concat(this.version, "/developer");
|
|
181
181
|
}
|
|
182
|
-
return "".concat(this.protocol, "://").concat(this.seoName, ".
|
|
182
|
+
return "".concat(this.protocol, "://").concat(this.seoName, ".").concat(this.API_PATH, "/v").concat(this.version, "/developer");
|
|
183
183
|
};
|
|
184
184
|
DrapcodeApis.prototype.getHeaders = function () {
|
|
185
185
|
var headers = {
|
package/build/methods/methods.js
CHANGED
|
@@ -285,6 +285,10 @@ var getAllItems = function (baseurl, headers, version, collectionName, reqQuery,
|
|
|
285
285
|
queryParams.append("sortField", reqQuery.sortField);
|
|
286
286
|
if (reqQuery === null || reqQuery === void 0 ? void 0 : reqQuery.sortOrder)
|
|
287
287
|
queryParams.append("sortOrder", reqQuery.sortOrder);
|
|
288
|
+
if (reqQuery === null || reqQuery === void 0 ? void 0 : reqQuery.includeFields)
|
|
289
|
+
queryParams.append("includeFields", reqQuery.includeFields);
|
|
290
|
+
if (reqQuery === null || reqQuery === void 0 ? void 0 : reqQuery.excludeFields)
|
|
291
|
+
queryParams.append("excludeFields", reqQuery.excludeFields);
|
|
288
292
|
if (reqQuery === null || reqQuery === void 0 ? void 0 : reqQuery.searchTerm)
|
|
289
293
|
queryParams.append("searchTerm", reqQuery.searchTerm);
|
|
290
294
|
if (reqQuery === null || reqQuery === void 0 ? void 0 : reqQuery.isPagination) {
|