@monarkmarkets/api-client 1.2.7 → 1.2.8
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/dist/Client.d.ts +3 -6
- package/dist/Client.js +5 -6
- package/package.json +1 -1
package/dist/Client.d.ts
CHANGED
|
@@ -6,8 +6,9 @@ export declare class Client {
|
|
|
6
6
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
7
7
|
});
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @
|
|
9
|
+
* Normalize Address (get valid state code).
|
|
10
|
+
* @param body (optional) Address information to normalize.
|
|
11
|
+
* @return Normalized address returned.
|
|
11
12
|
*/
|
|
12
13
|
normalize(body: NormalizeAddressRequest | undefined): Promise<NormalizeAddressResponse>;
|
|
13
14
|
protected processNormalize(response: Response): Promise<NormalizeAddressResponse>;
|
|
@@ -1872,8 +1873,6 @@ export declare class Document implements IDocument {
|
|
|
1872
1873
|
registeredFundSubscriptionId?: string | undefined;
|
|
1873
1874
|
/** The type of Document. */
|
|
1874
1875
|
type?: DocumentType2;
|
|
1875
|
-
/** Boolean value to dictate if this is a template. */
|
|
1876
|
-
templateDocument?: boolean;
|
|
1877
1876
|
/** Optional tax year to tag the document with. */
|
|
1878
1877
|
taxYear?: number | undefined;
|
|
1879
1878
|
/** Description of the Document. */
|
|
@@ -1909,8 +1908,6 @@ export interface IDocument {
|
|
|
1909
1908
|
registeredFundSubscriptionId?: string | undefined;
|
|
1910
1909
|
/** The type of Document. */
|
|
1911
1910
|
type?: DocumentType2;
|
|
1912
|
-
/** Boolean value to dictate if this is a template. */
|
|
1913
|
-
templateDocument?: boolean;
|
|
1914
1911
|
/** Optional tax year to tag the document with. */
|
|
1915
1912
|
taxYear?: number | undefined;
|
|
1916
1913
|
/** Description of the Document. */
|
package/dist/Client.js
CHANGED
|
@@ -13,8 +13,9 @@ export class Client {
|
|
|
13
13
|
this.baseUrl = baseUrl ?? "";
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* @
|
|
16
|
+
* Normalize Address (get valid state code).
|
|
17
|
+
* @param body (optional) Address information to normalize.
|
|
18
|
+
* @return Normalized address returned.
|
|
18
19
|
*/
|
|
19
20
|
normalize(body) {
|
|
20
21
|
let url_ = this.baseUrl + "/primary/v1/address/normalize";
|
|
@@ -52,12 +53,12 @@ export class Client {
|
|
|
52
53
|
let result400 = null;
|
|
53
54
|
let resultData400 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
54
55
|
result400 = ProblemDetails.fromJS(resultData400);
|
|
55
|
-
return throwException("
|
|
56
|
+
return throwException("Invalid input provided.", status, _responseText, _headers, result400);
|
|
56
57
|
});
|
|
57
58
|
}
|
|
58
59
|
else if (status === 500) {
|
|
59
60
|
return response.text().then((_responseText) => {
|
|
60
|
-
return throwException("Internal
|
|
61
|
+
return throwException("Internal server error.", status, _responseText, _headers);
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
64
|
else if (status !== 200 && status !== 204) {
|
|
@@ -7918,7 +7919,6 @@ export class Document {
|
|
|
7918
7919
|
this.registeredFundId = _data["registeredFundId"];
|
|
7919
7920
|
this.registeredFundSubscriptionId = _data["registeredFundSubscriptionId"];
|
|
7920
7921
|
this.type = _data["type"];
|
|
7921
|
-
this.templateDocument = _data["templateDocument"];
|
|
7922
7922
|
this.taxYear = _data["taxYear"];
|
|
7923
7923
|
this.description = _data["description"];
|
|
7924
7924
|
}
|
|
@@ -7943,7 +7943,6 @@ export class Document {
|
|
|
7943
7943
|
data["registeredFundId"] = this.registeredFundId;
|
|
7944
7944
|
data["registeredFundSubscriptionId"] = this.registeredFundSubscriptionId;
|
|
7945
7945
|
data["type"] = this.type;
|
|
7946
|
-
data["templateDocument"] = this.templateDocument;
|
|
7947
7946
|
data["taxYear"] = this.taxYear;
|
|
7948
7947
|
data["description"] = this.description;
|
|
7949
7948
|
return data;
|