@veloceapps/api 2.0.10 → 2.0.11

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.
@@ -2221,6 +2221,77 @@
2221
2221
  }]
2222
2222
  }] });
2223
2223
 
2224
+ var ProceduresApiService = /** @class */ (function () {
2225
+ function ProceduresApiService(baseHttpService) {
2226
+ var _this = this;
2227
+ this.baseHttpService = baseHttpService;
2228
+ this.serviceUrl = '/admin/procedures';
2229
+ this.fetchProcedures$ = function () {
2230
+ return _this.searchProcedures$(new i1.Expression(), 0, 100);
2231
+ };
2232
+ this.searchProcedures$ = function (expression, skip, count) {
2233
+ return rxjs.of([{ id: '1', name: 'test' }]);
2234
+ var params = new i4.HttpParams();
2235
+ params = params.set('skip', '' + skip);
2236
+ params = params.set('count', '' + count);
2237
+ return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
2238
+ };
2239
+ this.createProcedure$ = function (rule) {
2240
+ return rxjs.of({ id: '1', name: 'test' });
2241
+ return _this.baseHttpService.api({
2242
+ url: "" + _this.serviceUrl,
2243
+ method: 'post',
2244
+ body: rule,
2245
+ });
2246
+ };
2247
+ this.updateProcedure$ = function (rule) {
2248
+ return rxjs.of({ id: '1', name: 'test' });
2249
+ return _this.baseHttpService.api({
2250
+ url: _this.serviceUrl + "/" + rule.id,
2251
+ method: 'put',
2252
+ body: rule,
2253
+ });
2254
+ };
2255
+ this.duplicateProcedure$ = function (body) {
2256
+ return rxjs.of('1');
2257
+ return _this.baseHttpService
2258
+ .api({
2259
+ url: _this.serviceUrl + "/" + body.id + "/clone",
2260
+ method: 'post',
2261
+ body: body,
2262
+ })
2263
+ .pipe(operators.map(function (response) { return response.clonedRecordId; }));
2264
+ };
2265
+ this.removeProcedure$ = function (id) {
2266
+ return rxjs.of('1');
2267
+ return _this.baseHttpService.api({
2268
+ url: _this.serviceUrl + "/" + id,
2269
+ method: 'delete',
2270
+ });
2271
+ };
2272
+ this.restoreProcedure$ = function (id) {
2273
+ return rxjs.of('1');
2274
+ return _this.baseHttpService.api({
2275
+ url: _this.serviceUrl + "/" + id + "/restore",
2276
+ method: 'patch',
2277
+ });
2278
+ };
2279
+ }
2280
+ ProceduresApiService.prototype.fetchProcedure$ = function (id) {
2281
+ return rxjs.of({ id: '1', name: 'test' });
2282
+ return this.baseHttpService.api({
2283
+ url: this.serviceUrl + "/" + id,
2284
+ method: 'get',
2285
+ });
2286
+ };
2287
+ return ProceduresApiService;
2288
+ }());
2289
+ ProceduresApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProceduresApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2290
+ ProceduresApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProceduresApiService });
2291
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProceduresApiService, decorators: [{
2292
+ type: i0.Injectable
2293
+ }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
2294
+
2224
2295
  /**
2225
2296
  * Generated bundle index. Do not edit.
2226
2297
  */
@@ -2232,6 +2303,7 @@
2232
2303
  exports.DocumentAttachmentApiService = DocumentAttachmentApiService;
2233
2304
  exports.DocumentTemplatesApiService = DocumentTemplatesApiService;
2234
2305
  exports.PriceApiService = PriceApiService;
2306
+ exports.ProceduresApiService = ProceduresApiService;
2235
2307
  exports.ProductModelApiService = ProductModelApiService;
2236
2308
  exports.QuoteApiService = QuoteApiService;
2237
2309
  exports.RampApiService = RampApiService;