gap-nodejs-sdk 1.0.270 → 1.0.271
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.
|
@@ -3,10 +3,10 @@ import { GapApiVersion, ResponseDataApi } from "../base_type";
|
|
|
3
3
|
import { DeleteRequestParams, GetRequestParams, PostRequestParams, PutRequestParams, RequestParams } from './types';
|
|
4
4
|
export declare class HttpClient {
|
|
5
5
|
private readonly axios;
|
|
6
|
-
|
|
6
|
+
readonly domain: string;
|
|
7
7
|
private readonly RETRY_WAIT_TIME;
|
|
8
8
|
private readonly MAX_RETRY;
|
|
9
|
-
|
|
9
|
+
readonly API_VERSION: GapApiVersion;
|
|
10
10
|
constructor(domain: any, gClientId: any, token: any, version?: GapApiVersion);
|
|
11
11
|
get(params: GetRequestParams): Promise<ResponseDataApi>;
|
|
12
12
|
post(params: PostRequestParams): Promise<ResponseDataApi>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http_client.d.ts","sourceRoot":"","sources":["../../src/http_client/http_client.ts"],"names":[],"mappings":"AACA,OAAc,EAAiB,kBAAkB,EAAiB,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG9D,OAAO,EACH,mBAAmB,EACnB,gBAAgB,EAEhB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EAEhB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"http_client.d.ts","sourceRoot":"","sources":["../../src/http_client/http_client.ts"],"names":[],"mappings":"AACA,OAAc,EAAiB,kBAAkB,EAAiB,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG9D,OAAO,EACH,mBAAmB,EACnB,gBAAgB,EAEhB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EAEhB,MAAM,SAAS,CAAC;AAEjB,qBAAa,UAAU;IACnB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAM;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAgB;IAChD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAa;IACvC,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;gBAEjB,MAAM,KAAA,EAAE,SAAS,KAAA,EAAE,KAAK,KAAA,EAAE,OAAO,GAAE,aAAgC;IAWzE,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIvD,IAAI,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIzD,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIvD,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC;IAI7D,OAAO,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC;IA+D9D,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI9B,SAAS,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,CAAC;CAmEhF"}
|
|
@@ -101,8 +101,6 @@ export class HttpClient {
|
|
|
101
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
102
|
try {
|
|
103
103
|
const response = yield this.axios(options);
|
|
104
|
-
console.log(response);
|
|
105
|
-
console.log(response.headers);
|
|
106
104
|
if (!Array.isArray(response.data) &&
|
|
107
105
|
(!/^(2|OK|null)/gi.test((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.status) ||
|
|
108
106
|
!/^(2|OK|null)/gi.test((_c = (_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.result) === null || _c === void 0 ? void 0 : _c.status))) {
|