ng-pli-commons 0.0.1416 → 0.0.1422

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": "ng-pli-commons",
3
- "version": "0.0.1416",
3
+ "version": "0.0.1422",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.2.0",
6
6
  "@angular/core": "^13.2.0",
@@ -1,16 +1,16 @@
1
- import { TestBed } from '@angular/core/testing';
2
-
3
- import { InitialConfigurationGicParametersService } from './initial-configuration-gic-parameters.service';
4
-
5
- describe('InitialConfigurationGicParametersService', () => {
6
- let service: InitialConfigurationGicParametersService;
7
-
8
- beforeEach(() => {
9
- TestBed.configureTestingModule({});
10
- service = TestBed.inject(InitialConfigurationGicParametersService);
11
- });
12
-
13
- it('should be created', () => {
14
- expect(service).toBeTruthy();
15
- });
16
- });
1
+ import { TestBed } from '@angular/core/testing';
2
+
3
+ import { InitialConfigurationGicParametersService } from './initial-configuration-gic-parameters.service';
4
+
5
+ describe('InitialConfigurationGicParametersService', () => {
6
+ let service: InitialConfigurationGicParametersService;
7
+
8
+ beforeEach(() => {
9
+ TestBed.configureTestingModule({});
10
+ service = TestBed.inject(InitialConfigurationGicParametersService);
11
+ });
12
+
13
+ it('should be created', () => {
14
+ expect(service).toBeTruthy();
15
+ });
16
+ });
@@ -1,55 +1,55 @@
1
- import { Inject, Injectable } from '@angular/core';
2
- import { HttpClient, HttpParams, HttpHeaders } from '@angular/common/http';
3
- import { Observable } from 'rxjs';
4
- import { GicParametersConfiguration } from 'ng-pli-util';
5
-
6
- @Injectable({
7
- providedIn: 'root'
8
- })
9
- export class InitialConfigurationGicParametersService {
10
- private headerJson = { headers: new HttpHeaders({ 'Content-Type': 'application/json' }) };
11
- constructor(@Inject('environment') private environment: any, private httpClient: HttpClient) {}
12
-
13
- saveConfiguration(gicParametersConfiguration: GicParametersConfiguration): Observable<any> {
14
- return this.httpClient.post(
15
- this.environment.host.backend.gicConfiguration +
16
- 'gic-initial-configuration/saveConfiguration',
17
- gicParametersConfiguration,
18
- this.headerJson
19
- );
20
- }
21
-
22
- getAllConfigurationByPromCodigo(promCodigo: string): Observable<any> {
23
- return this.httpClient.post(
24
- this.environment.host.backend.gicConfiguration +
25
- 'gic-initial-configuration/getAllConfigurationByPromCodigo',
26
- { params: new HttpParams().set('id', promCodigo.toString()) }
27
- );
28
- }
29
-
30
- getConfigurationById(id: string): Observable<any> {
31
- return this.httpClient.post(
32
- this.environment.host.backend.gicConfiguration +
33
- 'gic-initial-configuration/getConfiguration',
34
- { params: new HttpParams().set('id', id.toString()) }
35
- );
36
- }
37
-
38
- changeIndexForConsumerOrder(
39
- gicParametersConfiguration: GicParametersConfiguration
40
- ): Observable<any> {
41
- return this.httpClient.post(
42
- this.environment.host.backend.gicConfiguration +
43
- 'gic-initial-configuration/changeIndexForConsumerOrder',
44
- gicParametersConfiguration
45
- );
46
- }
47
-
48
- deleteConfigurationById(id: string): Observable<any> {
49
- return this.httpClient.post(
50
- this.environment.host.backend.gicConfiguration +
51
- 'gic-initial-configuration/deleteConfiguration',
52
- { params: new HttpParams().set('id', id.toString()) }
53
- );
54
- }
55
- }
1
+ import { Inject, Injectable } from '@angular/core';
2
+ import { HttpClient, HttpParams, HttpHeaders } from '@angular/common/http';
3
+ import { Observable } from 'rxjs';
4
+ import { GicParametersConfiguration } from 'ng-pli-util';
5
+
6
+ @Injectable({
7
+ providedIn: 'root'
8
+ })
9
+ export class InitialConfigurationGicParametersService {
10
+ private headerJson = { headers: new HttpHeaders({ 'Content-Type': 'application/json' }) };
11
+ constructor(@Inject('environment') private environment: any, private httpClient: HttpClient) {}
12
+
13
+ saveConfiguration(gicParametersConfiguration: GicParametersConfiguration): Observable<any> {
14
+ return this.httpClient.post(
15
+ this.environment.host.backend.gicConfiguration +
16
+ 'gic-initial-configuration/saveConfiguration',
17
+ gicParametersConfiguration,
18
+ this.headerJson
19
+ );
20
+ }
21
+
22
+ getAllConfigurationByPromCodigo(promCodigo: string): Observable<any> {
23
+ return this.httpClient.get(
24
+ this.environment.host.backend.gicConfiguration +
25
+ 'gic-initial-configuration/getAllConfigurationByPromCodigo',
26
+ { params: new HttpParams().set('id', promCodigo.toString()) }
27
+ );
28
+ }
29
+
30
+ getConfigurationById(id: string): Observable<any> {
31
+ return this.httpClient.get(
32
+ this.environment.host.backend.gicConfiguration +
33
+ 'gic-initial-configuration/getConfiguration',
34
+ { params: new HttpParams().set('id', id.toString()) }
35
+ );
36
+ }
37
+
38
+ changeIndexForConsumerOrder(
39
+ gicParametersConfiguration: GicParametersConfiguration
40
+ ): Observable<any> {
41
+ return this.httpClient.post(
42
+ this.environment.host.backend.gicConfiguration +
43
+ 'gic-initial-configuration/changeIndexForConsumerOrder',
44
+ gicParametersConfiguration
45
+ );
46
+ }
47
+
48
+ deleteConfigurationById(id: string): Observable<any> {
49
+ return this.httpClient.delete(
50
+ this.environment.host.backend.gicConfiguration +
51
+ 'gic-initial-configuration/deleteConfiguration',
52
+ { params: new HttpParams().set('id', id.toString()) }
53
+ );
54
+ }
55
+ }
package/src/version.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  /* tslint:disable */
3
3
  export const VERSION = {
4
4
  "dirty": true,
5
- "raw": "v0.0.18-1925-g7a5d0a3d-dirty",
6
- "hash": "g7a5d0a3d",
7
- "distance": 1925,
5
+ "raw": "v0.0.18-1928-gae6fafa2-dirty",
6
+ "hash": "gae6fafa2",
7
+ "distance": 1928,
8
8
  "tag": "v0.0.18",
9
9
  "semver": {
10
10
  "options": {
@@ -20,9 +20,9 @@ export const VERSION = {
20
20
  "build": [],
21
21
  "version": "0.0.18"
22
22
  },
23
- "suffix": "1925-g7a5d0a3d-dirty",
24
- "semverString": "0.0.18+1925.g7a5d0a3d",
25
- "version": "0.0.1416",
26
- "buildTimestamp": "2022-04-08T02:20:29.470Z"
23
+ "suffix": "1928-gae6fafa2-dirty",
24
+ "semverString": "0.0.18+1928.gae6fafa2",
25
+ "version": "0.0.1422",
26
+ "buildTimestamp": "2022-04-09T17:05:14.561Z"
27
27
  };
28
28
  /* tslint:enable */