@veloceapps/api 11.0.0-80 → 11.0.0-81

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