@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.
@@ -1277,27 +1277,27 @@ class SalesTransactionApiService {
1277
1277
  ...options,
1278
1278
  });
1279
1279
  }
1280
- upsert(request, options) {
1281
- return of({
1282
- id: 'ID',
1280
+ /**
1281
+ * This endpoint doesn't include orders and assets
1282
+ * @param headerId SF record ID (quoteId | accountId | opportunityId | orderId etc)
1283
+ * @param params Query params
1284
+ * @param options Request options
1285
+ */
1286
+ query(headerId, params, options) {
1287
+ return this.httpService.api({
1288
+ method: 'get',
1289
+ url: `${this.SERVICE_URL}/query/${headerId}`,
1290
+ params: params,
1291
+ ...options,
1283
1292
  });
1284
- // return this.httpService.api({
1285
- // method: 'post',
1286
- // url: `${this.SERVICE_URL}`,
1287
- // body: request,
1288
- // ...options,
1289
- // });
1290
- }
1291
- submit(request, options) {
1292
- return of({
1293
- id: 'ID',
1293
+ }
1294
+ upsert(request, options) {
1295
+ return this.httpService.api({
1296
+ method: 'post',
1297
+ url: `${this.SERVICE_URL}`,
1298
+ body: request,
1299
+ ...options,
1294
1300
  });
1295
- // return this.httpService.api({
1296
- // method: 'post',
1297
- // url: `${this.SERVICE_URL}`,
1298
- // body: request,
1299
- // ...options,
1300
- // });
1301
1301
  }
1302
1302
  }
1303
1303
  SalesTransactionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });