drapcode-developer-sdk 1.0.14 → 1.0.15-preview-2

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 CHANGED
@@ -177,9 +177,12 @@ 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, ".api.").concat(envSub, ".").concat(this.API_PATH, "/v").concat(this.version, "/developer");
180
+ if (envSub !== "preview") {
181
+ return "".concat(this.protocol, "://").concat(this.seoName, ".api.").concat(envSub, ".").concat(this.API_PATH, "/v").concat(this.version, "/developer");
182
+ }
183
+ return "".concat(this.protocol, "://").concat(this.seoName, ".").concat(envSub, ".").concat(this.API_PATH, "/v").concat(this.version, "/developer");
181
184
  }
182
- return "".concat(this.protocol, "://").concat(this.seoName, ".api.").concat(this.API_PATH, "/v").concat(this.version, "/developer");
185
+ return "".concat(this.protocol, "://").concat(this.seoName, ".").concat(this.API_PATH, "/v").concat(this.version, "/developer");
183
186
  };
184
187
  DrapcodeApis.prototype.getHeaders = function () {
185
188
  var headers = {
@@ -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) {
@@ -22,4 +22,6 @@ export type SearchPaginate = {
22
22
  isPagination?: boolean;
23
23
  page?: number | string | any;
24
24
  limit?: number | string | any;
25
+ includeFields?: string | any;
26
+ excludeFields?: string | any;
25
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drapcode-developer-sdk",
3
- "version": "1.0.14",
3
+ "version": "1.0.15-preview-2",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [