@experteam-mx/ngx-services 18.8.23 → 18.8.25
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/esm2022/lib/apis/api-quote.service.mjs +87 -0
- package/esm2022/lib/apis/models/api-quote.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-quote.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
- package/esm2022/lib/ngx-services.models.mjs +1 -1
- package/esm2022/public-api.mjs +5 -2
- package/fesm2022/experteam-mx-ngx-services.mjs +133 -50
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-quote.service.d.ts +65 -0
- package/lib/apis/models/api-quote.interfaces.d.ts +13 -0
- package/lib/apis/models/api-quote.types.d.ts +17 -0
- package/lib/apis/models/api-reports.interfaces.d.ts +1 -0
- package/lib/ngx-services.models.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Environment } from '../ngx-services.models';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { QueryParams } from './models/api.models';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { QuoteEventIn, QuoteEventOut, QuoteEventsOut, QuoteEventTypesOut } from './models/api-quote.types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Service to manage quote-related events.
|
|
9
|
+
*
|
|
10
|
+
* This service provides methods to retrieve, create, and get event types
|
|
11
|
+
* related to quote processes.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ApiQuoteService {
|
|
14
|
+
private environments;
|
|
15
|
+
private http;
|
|
16
|
+
constructor(environments: Environment, http: HttpClient);
|
|
17
|
+
/**
|
|
18
|
+
* Base URL for the Quotes API.
|
|
19
|
+
*/
|
|
20
|
+
get url(): string;
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves all registered events for a specific quote.
|
|
23
|
+
*
|
|
24
|
+
* @param id - Quote identifier.
|
|
25
|
+
* @param params - Optional query parameters such as pagination or filtering.
|
|
26
|
+
* @returns Observable containing the list of quote events.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* this.apiQuoteService.getQuoteEvents(10, { page: 1 })
|
|
31
|
+
* .subscribe((events) => console.log(events))
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
getQuoteEvents(id: number, params: QueryParams): Observable<QuoteEventsOut>;
|
|
35
|
+
/**
|
|
36
|
+
* Registers a new event related to a specific quote.
|
|
37
|
+
*
|
|
38
|
+
* @param id - Quote identifier.
|
|
39
|
+
* @param body - Event payload to be created.
|
|
40
|
+
* @returns Observable containing the newly created event.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const event: QuoteEventIn = { code: 'WON', note: 'Client approved' }
|
|
45
|
+
* this.apiQuoteService.postQuoteEvents(10, event)
|
|
46
|
+
* .subscribe((response) => console.log(response))
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
postQuoteEvents(id: number, body: QuoteEventIn): Observable<QuoteEventOut>;
|
|
50
|
+
/**
|
|
51
|
+
* Retrieves the available quote event types.
|
|
52
|
+
*
|
|
53
|
+
* @param params - Optional query parameters such as pagination or filtering.
|
|
54
|
+
* @returns Observable containing the list of event types.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* this.apiQuoteService.getQuoteEventTypes({ page: 1 })
|
|
59
|
+
* .subscribe((types) => console.log(types))
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
getQuoteEventTypes(params: QueryParams): Observable<QuoteEventTypesOut>;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiQuoteService, never>;
|
|
64
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiQuoteService>;
|
|
65
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ActiveLessSymfonyModel, SymfonyModel } from './api.models';
|
|
2
|
+
export interface QuoteEvent extends ActiveLessSymfonyModel {
|
|
3
|
+
date: string;
|
|
4
|
+
quoteEventType: QuoteEventType;
|
|
5
|
+
comment: string;
|
|
6
|
+
userId: number;
|
|
7
|
+
userUsername: string;
|
|
8
|
+
userName: string;
|
|
9
|
+
}
|
|
10
|
+
export interface QuoteEventType extends SymfonyModel {
|
|
11
|
+
code: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { QuoteEvent, QuoteEventType } from './api-quote.interfaces';
|
|
2
|
+
export type QuoteEventsOut = {
|
|
3
|
+
total: number;
|
|
4
|
+
quoteEvents: QuoteEvent[];
|
|
5
|
+
};
|
|
6
|
+
export type QuoteEventIn = {
|
|
7
|
+
date: string;
|
|
8
|
+
quoteEventTypeId: number;
|
|
9
|
+
comment: string;
|
|
10
|
+
};
|
|
11
|
+
export interface QuoteEventOut {
|
|
12
|
+
quoteEvent: QuoteEvent;
|
|
13
|
+
}
|
|
14
|
+
export interface QuoteEventTypesOut {
|
|
15
|
+
total: number;
|
|
16
|
+
quoteEventTypes: QuoteEventType[];
|
|
17
|
+
}
|
|
@@ -120,6 +120,7 @@ export interface ShipmentReports {
|
|
|
120
120
|
export interface ShipmentLandingReport extends ActiveLessLaravelModel {
|
|
121
121
|
authorization_numbers: string[] | null;
|
|
122
122
|
commercial_invoice: boolean | null;
|
|
123
|
+
company_country_id: number;
|
|
123
124
|
company_id: number;
|
|
124
125
|
company_name: string;
|
|
125
126
|
country_id: number;
|
|
@@ -27,14 +27,15 @@ export type Environment = {
|
|
|
27
27
|
apiCompositionUrl?: string;
|
|
28
28
|
apiCustomsUrl?: string;
|
|
29
29
|
apiDiscountsUrl?: string;
|
|
30
|
-
apiEventsUrl?: string;
|
|
31
30
|
apiEToolsAutoBilling?: string;
|
|
31
|
+
apiEventsUrl?: string;
|
|
32
32
|
apiExternalOperationsKey?: string;
|
|
33
33
|
apiExternalOperationsUrl?: string;
|
|
34
34
|
apiInventoriesUrl?: string;
|
|
35
35
|
apiInvoicesUrl?: string;
|
|
36
36
|
apiNotificationsUrl?: string;
|
|
37
37
|
apiOpenItemsUrl?: string;
|
|
38
|
+
apiQuotesUrl?: string;
|
|
38
39
|
apiReportsUrl?: string;
|
|
39
40
|
apiSecurityUrl?: string;
|
|
40
41
|
apiServicesUrl?: string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -11,13 +11,14 @@ export * from './lib/apis/api-companies.service';
|
|
|
11
11
|
export * from './lib/apis/api-composition.service';
|
|
12
12
|
export * from './lib/apis/api-customs.service';
|
|
13
13
|
export * from './lib/apis/api-discounts.service';
|
|
14
|
-
export * from './lib/apis/api-events.service';
|
|
15
14
|
export * from './lib/apis/api-e-tools-auto-billing.service';
|
|
15
|
+
export * from './lib/apis/api-events.service';
|
|
16
16
|
export * from './lib/apis/api-external-pickups.service';
|
|
17
17
|
export * from './lib/apis/api-inventories.service';
|
|
18
18
|
export * from './lib/apis/api-invoices.service';
|
|
19
19
|
export * from './lib/apis/api-notifications.service';
|
|
20
20
|
export * from './lib/apis/api-open-items.service';
|
|
21
|
+
export * from './lib/apis/api-quote.service';
|
|
21
22
|
export * from './lib/apis/api-reports.service';
|
|
22
23
|
export * from './lib/apis/api-security.service';
|
|
23
24
|
export * from './lib/apis/api-services.service';
|
|
@@ -60,6 +61,8 @@ export * from './lib/apis/models/api-notifications.interfaces';
|
|
|
60
61
|
export * from './lib/apis/models/api-notifications.types';
|
|
61
62
|
export * from './lib/apis/models/api-open-items.interfaces';
|
|
62
63
|
export * from './lib/apis/models/api-open-items.types';
|
|
64
|
+
export * from './lib/apis/models/api-quote.interfaces';
|
|
65
|
+
export * from './lib/apis/models/api-quote.types';
|
|
63
66
|
export * from './lib/apis/models/api-reports.interfaces';
|
|
64
67
|
export * from './lib/apis/models/api-reports.types';
|
|
65
68
|
export * from './lib/apis/models/api-security.interfaces';
|