@veloceapps/api 3.0.0 → 3.0.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.
@@ -1,4 +1,4 @@
1
- import { BaseHttpService, QuoteDraft } from '@veloce/core';
1
+ import { BaseHttpService, HttpRequestConfigurableOptions, QuoteDraft } from '@veloce/core';
2
2
  import { Dictionary } from 'lodash';
3
3
  import { Observable } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
@@ -13,8 +13,8 @@ export declare class QuoteApiService {
13
13
  * Use `getQuoteDraft` instead
14
14
  */
15
15
  getQuote: (objectId: string, params?: Dictionary<string> | undefined, errorHandler?: ((error: any) => void) | undefined) => Observable<QuoteDraft>;
16
- upsertQuote(request: QuoteDraft): Observable<QuoteDraft>;
17
- submitQuote(request: QuoteDraft): Observable<QuoteDraft>;
16
+ upsertQuote(request: QuoteDraft, options?: HttpRequestConfigurableOptions): Observable<QuoteDraft>;
17
+ submitQuote(request: QuoteDraft, options?: HttpRequestConfigurableOptions): Observable<QuoteDraft>;
18
18
  attachDocument(id: string, documentName: string, data: any): Observable<void>;
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<QuoteApiService, never>;
20
20
  static ɵprov: i0.ɵɵInjectableDeclaration<QuoteApiService>;
@@ -1,17 +1,17 @@
1
1
  import { HttpParams } from '@angular/common/http';
2
- import { BaseHttpService, SalesforceField, SalesforceObject, SearchRequest } from '@veloce/core';
2
+ import { BaseHttpService, HttpRequestConfigurableOptions, SalesforceField, SalesforceObject, SearchRequest } from '@veloce/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SalesforceApiService {
6
6
  private httpService;
7
7
  private readonly SERVICE_URL;
8
8
  constructor(httpService: BaseHttpService);
9
- query<T>(searchRequest: SearchRequest, objectName: string): Observable<T[]>;
10
- queryObjects(search?: string): Observable<SalesforceObject[]>;
11
- describe(objectName: string, fieldName?: string): Observable<SalesforceField[]>;
12
- describe2<T>(objectName: string, fields: string[]): Observable<T>;
13
- apexGetRequest<T>(path: string, params: HttpParams): Observable<T>;
14
- apexPostRequest<T, S>(path: string, body: S): Observable<T>;
9
+ query<T>(searchRequest: SearchRequest, objectName: string, options?: HttpRequestConfigurableOptions): Observable<T[]>;
10
+ queryObjects(search?: string, options?: HttpRequestConfigurableOptions): Observable<SalesforceObject[]>;
11
+ describe(objectName: string, fieldName?: string, options?: HttpRequestConfigurableOptions): Observable<SalesforceField[]>;
12
+ describe2<T>(objectName: string, fields: string[], options?: HttpRequestConfigurableOptions): Observable<T>;
13
+ apexGetRequest<T>(path: string, params: HttpParams, options?: HttpRequestConfigurableOptions): Observable<T>;
14
+ apexPostRequest<T, S>(path: string, body: S, options?: HttpRequestConfigurableOptions): Observable<T>;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<SalesforceApiService, never>;
16
16
  static ɵprov: i0.ɵɵInjectableDeclaration<SalesforceApiService>;
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloceapps/api",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0",
@@ -17,6 +17,7 @@
17
17
  "@aws-sdk/client-xray": "^3.40.0",
18
18
  "monaco-editor": "^0.30.1",
19
19
  "@angular/forms": "^12.2.0",
20
+ "@angular/router": "^12.2.0",
20
21
  "jshashes": "^1.0.8"
21
22
  },
22
23
  "dependencies": {