@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.
@@ -1,4 +1,4 @@
1
- import { Account, BaseHttpService, HttpRequestConfigurableOptions, LineItem, Order, Quote } from '@veloceapps/core';
1
+ import { Account, AccountAssetsState, BaseHttpService, HttpRequestConfigurableOptions, LineItem, Order, Quote } from '@veloceapps/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { QuerySearchParams } from '../types';
4
4
  import * as i0 from "@angular/core";
@@ -9,6 +9,7 @@ export declare class AccountApiService {
9
9
  getAccounts$(options?: HttpRequestConfigurableOptions): Observable<Account[]>;
10
10
  searchAccounts$(searchParams?: QuerySearchParams, options?: HttpRequestConfigurableOptions): Observable<Account[]>;
11
11
  getAccount$(id: string, options?: HttpRequestConfigurableOptions): Observable<Account>;
12
+ getAssetsState(accountId: string, options?: HttpRequestConfigurableOptions): Observable<AccountAssetsState>;
12
13
  getAssets(accountId: string, options?: HttpRequestConfigurableOptions): Observable<LineItem[]>;
13
14
  getOrders(accountId: string, options?: HttpRequestConfigurableOptions): Observable<Order[]>;
14
15
  getQuotes(accountId: string, options?: HttpRequestConfigurableOptions): Observable<Quote[]>;
@@ -7,7 +7,17 @@ export declare class QuoteApiService {
7
7
  private httpService;
8
8
  private readonly SERVICE_URL;
9
9
  constructor(httpService: BaseHttpService);
10
+ /**
11
+ * @deprecated Use getQuoteState instead
12
+ */
10
13
  getQuoteDraft(objectId: string, params?: Dictionary<string>, errorHandler?: (error: any) => void): Observable<QuoteDraft>;
14
+ /**
15
+ * Comparing to deprecated `getQuoteDraft` this endpoint doesn't include orders and assets
16
+ * @param objectId quoteId | accountId | opportunityId | orderId
17
+ * @param params Query params
18
+ * @param options Request options
19
+ */
20
+ getQuoteState(objectId: string, params?: Dictionary<string>, options?: HttpRequestConfigurableOptions): Observable<QuoteDraft>;
11
21
  upsertQuote(request: QuoteDraft, options?: HttpRequestConfigurableOptions): Observable<SaveQuoteResponse>;
12
22
  submitQuote(request: QuoteDraft, options?: HttpRequestConfigurableOptions): Observable<SubmitQuoteResponse>;
13
23
  attachDocument(id: string, documentName: string, data: any): Observable<void>;
@@ -23,4 +23,5 @@ export interface OrgInfo {
23
23
  DefaultDataVersion: string;
24
24
  SelfRegistered: boolean;
25
25
  SelfRegisteredExpireAt: string;
26
+ Scratch: boolean;
26
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloceapps/api",
3
- "version": "8.0.0-185",
3
+ "version": "8.0.0-187",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "~15.2.0",