@arrowsphere/api-client 3.24.0-rc.3 → 3.24.0-rc.4
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.
|
@@ -15,7 +15,7 @@ export declare enum ParameterKeys {
|
|
|
15
15
|
}
|
|
16
16
|
export declare type Parameters = Record<string, string | string[] | number | number[] | boolean | null | undefined>;
|
|
17
17
|
export declare type Headers = Record<string, string>;
|
|
18
|
-
export declare type ExtraInformation = Record<string, unknown
|
|
18
|
+
export declare type ExtraInformation = Record<string, unknown> | undefined;
|
|
19
19
|
export declare type Payload = Record<string, unknown>;
|
|
20
20
|
export declare type Options = {
|
|
21
21
|
isAdmin?: boolean;
|
|
@@ -107,7 +107,7 @@ export declare abstract class AbstractClient {
|
|
|
107
107
|
* @returns AbstractClient
|
|
108
108
|
*/
|
|
109
109
|
setHeaders(headers: Record<string, string>): this;
|
|
110
|
-
setExtraInformation(extraInformation:
|
|
110
|
+
setExtraInformation(extraInformation: ExtraInformation): this;
|
|
111
111
|
/**
|
|
112
112
|
* Sends a GET request and returns the response
|
|
113
113
|
* @param parameters - Query parameters to send
|
package/build/abstractClient.js
CHANGED
|
@@ -71,7 +71,7 @@ class AbstractClient {
|
|
|
71
71
|
this.setApiKey((_a = configuration === null || configuration === void 0 ? void 0 : configuration[ParameterKeys.API_KEY]) !== null && _a !== void 0 ? _a : '');
|
|
72
72
|
this.setUrl((_b = configuration === null || configuration === void 0 ? void 0 : configuration[ParameterKeys.URL]) !== null && _b !== void 0 ? _b : '');
|
|
73
73
|
this.setHeaders((_c = configuration === null || configuration === void 0 ? void 0 : configuration[ParameterKeys.HEADERS]) !== null && _c !== void 0 ? _c : {});
|
|
74
|
-
this.setExtraInformation((_d = configuration === null || configuration === void 0 ? void 0 : configuration[ParameterKeys.EXTRA_INFORMATION]) !== null && _d !== void 0 ? _d :
|
|
74
|
+
this.setExtraInformation((_d = configuration === null || configuration === void 0 ? void 0 : configuration[ParameterKeys.EXTRA_INFORMATION]) !== null && _d !== void 0 ? _d : undefined);
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* Sets the Client ArrowSphere API key
|
|
@@ -126,7 +126,9 @@ class AbstractClient {
|
|
|
126
126
|
return this;
|
|
127
127
|
}
|
|
128
128
|
setExtraInformation(extraInformation) {
|
|
129
|
-
this.extraInformation = extraInformation
|
|
129
|
+
this.extraInformation = extraInformation
|
|
130
|
+
? { extraInformation: extraInformation }
|
|
131
|
+
: {};
|
|
130
132
|
return this;
|
|
131
133
|
}
|
|
132
134
|
/**
|
package/package.json
CHANGED