@arrowsphere/api-client 3.124.0 → 3.125.0-rc.bdj.1
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.
|
@@ -4,18 +4,22 @@ import { QuoteRequest } from './entities/QuoteRequest';
|
|
|
4
4
|
export declare type RequestQuoteRequestType = {
|
|
5
5
|
agreeToReceiveCommunications: boolean;
|
|
6
6
|
agreeSharingInformation: boolean;
|
|
7
|
-
comments
|
|
7
|
+
comments?: string;
|
|
8
8
|
company: string;
|
|
9
9
|
country: string;
|
|
10
10
|
email: string;
|
|
11
11
|
firstName: string;
|
|
12
12
|
lastName: string;
|
|
13
13
|
phoneNumber: string;
|
|
14
|
-
sku
|
|
14
|
+
sku?: string;
|
|
15
15
|
vendor: string;
|
|
16
16
|
};
|
|
17
|
+
export declare type RequestQuoteIbmRequestType = {
|
|
18
|
+
reference?: string;
|
|
19
|
+
};
|
|
17
20
|
export declare class QuotesClient extends AbstractRestfulClient {
|
|
18
21
|
protected basePath: string;
|
|
19
22
|
requestQuote(postData: RequestQuoteRequestType, parameters?: Parameters): Promise<GetResult<QuoteRequest>>;
|
|
23
|
+
requestQuoteForIbm(postData: RequestQuoteIbmRequestType, parameters?: Parameters): Promise<GetResult<QuoteRequest>>;
|
|
20
24
|
deleteQuote(quoteReference: string, parameters?: Parameters): Promise<void>;
|
|
21
25
|
}
|
|
@@ -13,6 +13,10 @@ class QuotesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
13
13
|
this.path = '/request';
|
|
14
14
|
return new getResult_1.GetResult(QuoteRequest_1.QuoteRequest, await this.post(postData, parameters));
|
|
15
15
|
}
|
|
16
|
+
async requestQuoteForIbm(postData, parameters = {}) {
|
|
17
|
+
this.path = '/request/ibm';
|
|
18
|
+
return new getResult_1.GetResult(QuoteRequest_1.QuoteRequest, await this.post(postData, parameters));
|
|
19
|
+
}
|
|
16
20
|
async deleteQuote(quoteReference, parameters = {}) {
|
|
17
21
|
this.path = `/${quoteReference}`;
|
|
18
22
|
return await this.delete(parameters);
|
package/package.json
CHANGED