@arrowsphere/api-client 3.127.0 → 3.128.0-rc.bdj.2

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.
@@ -29,7 +29,7 @@ class QuoteRequest extends abstractEntity_1.AbstractEntity {
29
29
  }
30
30
  toJSON() {
31
31
  return {
32
- [QuoteRequestFields.MESSAGE]: __classPrivateFieldGet(this, _QuoteRequest_message, "f"),
32
+ [QuoteRequestFields.MESSAGE]: this.message,
33
33
  };
34
34
  }
35
35
  }
@@ -4,7 +4,7 @@ import { QuoteRequest } from './entities/QuoteRequest';
4
4
  export declare type RequestQuoteRequestType = {
5
5
  agreeToReceiveCommunications: boolean;
6
6
  agreeSharingInformation: boolean;
7
- comments: string;
7
+ comments?: string;
8
8
  company: string;
9
9
  country: string;
10
10
  email: string;
@@ -14,8 +14,13 @@ export declare type RequestQuoteRequestType = {
14
14
  sku: string;
15
15
  vendor: string;
16
16
  };
17
+ export declare type RequestQuoteIbmRequestType = {
18
+ endCustomerRef?: string;
19
+ reference?: string;
20
+ };
17
21
  export declare class QuotesClient extends AbstractRestfulClient {
18
22
  protected basePath: string;
19
23
  requestQuote(postData: RequestQuoteRequestType, parameters?: Parameters): Promise<GetResult<QuoteRequest>>;
24
+ requestQuoteForVendor(vendor: string, postData: RequestQuoteIbmRequestType, parameters?: Parameters): Promise<GetResult<QuoteRequest>>;
20
25
  deleteQuote(quoteReference: string, parameters?: Parameters): Promise<void>;
21
26
  }
@@ -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 requestQuoteForVendor(vendor, postData, parameters = {}) {
17
+ this.path = `/request/${vendor}`;
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
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.127.0",
7
+ "version": "3.128.0-rc.bdj.2",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",