@veloceapps/api 11.0.0-81 → 11.0.0-82

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloceapps/api",
3
- "version": "11.0.0-81",
3
+ "version": "11.0.0-82",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "~15.2.0",
@@ -1,18 +1,25 @@
1
1
  import { BaseHttpService, HttpRequestConfigurableOptions, TransactionContext } from '@veloceapps/core';
2
2
  import { Observable } from 'rxjs';
3
- import { SalesTransactionUpsertRequest } from '../types';
3
+ import { SalesTransactionRequestParams, SalesTransactionUpsertRequest } from '../types';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SalesTransactionApiService {
6
6
  private httpService;
7
7
  private readonly SERVICE_URL;
8
8
  constructor(httpService: BaseHttpService);
9
+ /**
10
+ * This endpoint doesn't include orders and assets
11
+ * @param objectId SF record ID (quoteId | accountId | opportunityId | orderId etc)
12
+ * @param params Query params
13
+ * @param options Request options
14
+ */
15
+ getState(objectId: string, params?: SalesTransactionRequestParams, options?: HttpRequestConfigurableOptions): Observable<TransactionContext>;
9
16
  /**
10
17
  * This endpoint doesn't include orders and assets
11
18
  * @param headerId SF record ID (quoteId | accountId | opportunityId | orderId etc)
12
19
  * @param params Query params
13
20
  * @param options Request options
14
21
  */
15
- getState(headerId: string, params?: Record<string, string>, options?: HttpRequestConfigurableOptions): Observable<TransactionContext>;
22
+ query(headerId: string, params?: Record<string, string>, options?: HttpRequestConfigurableOptions): Observable<TransactionContext>;
16
23
  upsert(request: SalesTransactionUpsertRequest, options?: HttpRequestConfigurableOptions): Observable<string>;
17
24
  static ɵfac: i0.ɵɵFactoryDeclaration<SalesTransactionApiService, never>;
18
25
  static ɵprov: i0.ɵɵInjectableDeclaration<SalesTransactionApiService>;
@@ -4,6 +4,10 @@ export interface SalesTransactionUpsertRequest {
4
4
  orchestrationName?: string;
5
5
  flowId?: string;
6
6
  }
7
+ export interface SalesTransactionRequestParams {
8
+ contextMappingId?: string;
9
+ [key: string]: unknown;
10
+ }
7
11
  export interface SalesTransactionUpsertResponse {
8
12
  id: string;
9
13
  }