@veloceapps/api 8.0.0-185 → 8.0.0-187
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/esm2020/lib/services/account-api.service.mjs +8 -1
- package/esm2020/lib/services/quote-api.service.mjs +18 -2
- package/esm2020/lib/types/org-info.types.mjs +1 -1
- package/fesm2015/veloceapps-api.mjs +15 -1
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +24 -1
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/lib/services/account-api.service.d.ts +2 -1
- package/lib/services/quote-api.service.d.ts +10 -0
- package/lib/types/org-info.types.d.ts +1 -0
- package/package.json +1 -1
@@ -38,6 +38,13 @@ class AccountApiService {
|
|
38
38
|
...options,
|
39
39
|
});
|
40
40
|
}
|
41
|
+
getAssetsState(accountId, options) {
|
42
|
+
return this.httpService.api({
|
43
|
+
method: 'get',
|
44
|
+
url: `/v2/${this.SERVICE_URL}/${accountId}/assets`,
|
45
|
+
...options,
|
46
|
+
});
|
47
|
+
}
|
41
48
|
getAssets(accountId, options) {
|
42
49
|
return this.httpService.api({ url: `${this.SERVICE_URL}/${accountId}/assets`, ...options });
|
43
50
|
}
|
@@ -2278,7 +2285,9 @@ class QuoteApiService {
|
|
2278
2285
|
this.httpService = httpService;
|
2279
2286
|
this.SERVICE_URL = '/quotes';
|
2280
2287
|
}
|
2281
|
-
|
2288
|
+
/**
|
2289
|
+
* @deprecated Use getQuoteState instead
|
2290
|
+
*/
|
2282
2291
|
getQuoteDraft(objectId, params, errorHandler) {
|
2283
2292
|
return this.httpService.api({
|
2284
2293
|
method: 'get',
|
@@ -2287,6 +2296,20 @@ class QuoteApiService {
|
|
2287
2296
|
errorHandler,
|
2288
2297
|
});
|
2289
2298
|
}
|
2299
|
+
/**
|
2300
|
+
* Comparing to deprecated `getQuoteDraft` this endpoint doesn't include orders and assets
|
2301
|
+
* @param objectId quoteId | accountId | opportunityId | orderId
|
2302
|
+
* @param params Query params
|
2303
|
+
* @param options Request options
|
2304
|
+
*/
|
2305
|
+
getQuoteState(objectId, params, options) {
|
2306
|
+
return this.httpService.api({
|
2307
|
+
method: 'get',
|
2308
|
+
url: `/v2${this.SERVICE_URL}/${objectId}`,
|
2309
|
+
params,
|
2310
|
+
...options,
|
2311
|
+
});
|
2312
|
+
}
|
2290
2313
|
upsertQuote(request, options) {
|
2291
2314
|
return this.httpService.api({
|
2292
2315
|
method: 'post',
|