@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/esm2020/v2/services/sales-transactions-api.service.mjs +9 -24
- package/esm2020/v2/types/sales-transaction.types.mjs +1 -1
- package/fesm2015/veloceapps-api-v2.mjs +4 -23
- package/fesm2015/veloceapps-api-v2.mjs.map +1 -1
- package/fesm2020/veloceapps-api-v2.mjs +8 -22
- package/fesm2020/veloceapps-api-v2.mjs.map +1 -1
- package/package.json +1 -1
- package/v2/services/sales-transactions-api.service.d.ts +4 -5
- package/v2/types/sales-transaction.types.d.ts +5 -6
@@ -1265,39 +1265,25 @@ class SalesTransactionApiService {
|
|
1265
1265
|
}
|
1266
1266
|
/**
|
1267
1267
|
* This endpoint doesn't include orders and assets
|
1268
|
-
* @param
|
1268
|
+
* @param headerId SF record ID (quoteId | accountId | opportunityId | orderId etc)
|
1269
1269
|
* @param params Query params
|
1270
1270
|
* @param options Request options
|
1271
1271
|
*/
|
1272
|
-
getState(
|
1272
|
+
getState(headerId, params, options) {
|
1273
1273
|
return this.httpService.api({
|
1274
1274
|
method: 'get',
|
1275
|
-
url: `${this.SERVICE_URL}/${
|
1275
|
+
url: `${this.SERVICE_URL}/query/${headerId}`,
|
1276
1276
|
params: params,
|
1277
1277
|
...options,
|
1278
1278
|
});
|
1279
1279
|
}
|
1280
1280
|
upsert(request, options) {
|
1281
|
-
return
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
// url: `${this.SERVICE_URL}`,
|
1287
|
-
// body: request,
|
1288
|
-
// ...options,
|
1289
|
-
// });
|
1290
|
-
}
|
1291
|
-
submit(request, options) {
|
1292
|
-
return of({
|
1293
|
-
id: 'ID',
|
1281
|
+
return this.httpService.api({
|
1282
|
+
method: 'post',
|
1283
|
+
url: `${this.SERVICE_URL}`,
|
1284
|
+
body: request,
|
1285
|
+
...options,
|
1294
1286
|
});
|
1295
|
-
// return this.httpService.api({
|
1296
|
-
// method: 'post',
|
1297
|
-
// url: `${this.SERVICE_URL}`,
|
1298
|
-
// body: request,
|
1299
|
-
// ...options,
|
1300
|
-
// });
|
1301
1287
|
}
|
1302
1288
|
}
|
1303
1289
|
SalesTransactionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|