skyflow-js 1.12.2 → 1.13.0

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.
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "skyflow-js",
3
3
  "preferGlobal": true,
4
4
  "analyze": false,
5
- "version": "1.12.2",
5
+ "version": "1.13.0",
6
6
  "author": "Skyflow",
7
7
  "description": "Skyflow JavaScript SDK",
8
8
  "homepage": "https://github.com/skyflowapi/skyflow-js",
@@ -44,6 +44,7 @@
44
44
  "jwt-decode": "^3.1.2",
45
45
  "lodash": "^4.17.21",
46
46
  "node-polyfill-webpack-plugin": "^1.1.4",
47
+ "qs": "^6.10.3",
47
48
  "regex-parser": "^2.2.11",
48
49
  "set-value": "^4.0.1",
49
50
  "xml-js": "^1.6.11"
@@ -1,6 +1,6 @@
1
1
  import { ISkyflow } from '../Skyflow';
2
2
  export interface IClientRequest {
3
- body?: Record<string, any>;
3
+ body?: any;
4
4
  headers?: Record<string, string>;
5
5
  requestMethod: 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'PATCH';
6
6
  url: string;
@@ -363,3 +363,10 @@ export declare const soapResXmlErrors: {
363
363
  export declare const PATH_NOT_FOUND_IN_RES_XML = "skyflow: Path not found";
364
364
  export declare const FORMAT_REGEX = ":FORMAT_REGEX:";
365
365
  export declare const REPLACE_TEXT = ":REPLACE_TEXT:";
366
+ export declare enum ContentType {
367
+ APPLICATIONORJSON = "application/json",
368
+ TEXTORPLAIN = "text/plain",
369
+ TEXTORXML = "text/xml",
370
+ FORMURLENCODED = "application/x-www-form-urlencoded",
371
+ FORMDATA = "multipart/form-data"
372
+ }
@@ -1,3 +1,4 @@
1
+ import { IConnectionConfig } from '../common';
1
2
  export declare const flattenObject: (obj: any, roots?: any, sep?: string) => any;
2
3
  export declare function deletePropertyPath(obj: any, path: any): void;
3
4
  export declare function clearEmpties(o: any): void;
@@ -13,3 +14,12 @@ export declare function replaceIframeNameWithValues(requestXml: string, elementV
13
14
  export declare function lowercaseKeys(obj: {
14
15
  [key: string]: any;
15
16
  }): any;
17
+ export declare function updateRequestBodyInConnection(config: IConnectionConfig): {
18
+ connectionURL: string;
19
+ methodName: import("../common").RequestMethod;
20
+ pathParams?: any;
21
+ queryParams?: any;
22
+ requestBody?: any;
23
+ requestHeader?: any;
24
+ responseBody?: any;
25
+ };