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