@experteam-mx/ngx-services 20.0.1 → 20.0.3
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-companies.types.mjs +1 -1
- 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 +84 -1
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/index.d.ts +102 -5
- package/lib/apis/api-quote.service.d.ts +65 -0
- package/lib/apis/models/api-companies.types.d.ts +3 -2
- 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 +5 -0
- package/lib/ngx-services.models.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -1
package/index.d.ts
CHANGED
|
@@ -33,14 +33,15 @@ type Environment = {
|
|
|
33
33
|
apiCompositionUrl?: string;
|
|
34
34
|
apiCustomsUrl?: string;
|
|
35
35
|
apiDiscountsUrl?: string;
|
|
36
|
-
apiEventsUrl?: string;
|
|
37
36
|
apiEToolsAutoBilling?: string;
|
|
37
|
+
apiEventsUrl?: string;
|
|
38
38
|
apiExternalOperationsKey?: string;
|
|
39
39
|
apiExternalOperationsUrl?: string;
|
|
40
40
|
apiInventoriesUrl?: string;
|
|
41
41
|
apiInvoicesUrl?: string;
|
|
42
42
|
apiNotificationsUrl?: string;
|
|
43
43
|
apiOpenItemsUrl?: string;
|
|
44
|
+
apiQuotesUrl?: string;
|
|
44
45
|
apiReportsUrl?: string;
|
|
45
46
|
apiSecurityUrl?: string;
|
|
46
47
|
apiServicesUrl?: string;
|
|
@@ -2227,12 +2228,13 @@ type CountryReferenceProductOut = {
|
|
|
2227
2228
|
country_reference_product: CountryReferenceProduct;
|
|
2228
2229
|
};
|
|
2229
2230
|
type ExtraChargeEntitiesIn = {
|
|
2230
|
-
model_type
|
|
2231
|
-
model_id
|
|
2231
|
+
model_type?: string;
|
|
2232
|
+
model_id?: number;
|
|
2232
2233
|
extracharge_entities: {
|
|
2233
2234
|
id: number;
|
|
2234
2235
|
is_active: boolean;
|
|
2235
2236
|
}[];
|
|
2237
|
+
check_all?: boolean;
|
|
2236
2238
|
};
|
|
2237
2239
|
type ExtraChargeEntitiesOut = {
|
|
2238
2240
|
extracharge_entities: ExtraChargeEntity[];
|
|
@@ -5529,6 +5531,96 @@ declare class ApiOpenItemsService {
|
|
|
5529
5531
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiOpenItemsService>;
|
|
5530
5532
|
}
|
|
5531
5533
|
|
|
5534
|
+
interface QuoteEvent extends ActiveLessSymfonyModel {
|
|
5535
|
+
date: string;
|
|
5536
|
+
quoteEventType: QuoteEventType;
|
|
5537
|
+
comment: string;
|
|
5538
|
+
userId: number;
|
|
5539
|
+
userUsername: string;
|
|
5540
|
+
userName: string;
|
|
5541
|
+
}
|
|
5542
|
+
interface QuoteEventType extends SymfonyModel {
|
|
5543
|
+
code: string;
|
|
5544
|
+
name: string;
|
|
5545
|
+
}
|
|
5546
|
+
|
|
5547
|
+
type QuoteEventsOut = {
|
|
5548
|
+
total: number;
|
|
5549
|
+
quoteEvents: QuoteEvent[];
|
|
5550
|
+
};
|
|
5551
|
+
type QuoteEventIn = {
|
|
5552
|
+
date: string;
|
|
5553
|
+
quoteEventTypeId: number;
|
|
5554
|
+
comment: string;
|
|
5555
|
+
};
|
|
5556
|
+
interface QuoteEventOut {
|
|
5557
|
+
quoteEvent: QuoteEvent;
|
|
5558
|
+
}
|
|
5559
|
+
interface QuoteEventTypesOut {
|
|
5560
|
+
total: number;
|
|
5561
|
+
quoteEventTypes: QuoteEventType[];
|
|
5562
|
+
}
|
|
5563
|
+
|
|
5564
|
+
/**
|
|
5565
|
+
* Service to manage quote-related events.
|
|
5566
|
+
*
|
|
5567
|
+
* This service provides methods to retrieve, create, and get event types
|
|
5568
|
+
* related to quote processes.
|
|
5569
|
+
*/
|
|
5570
|
+
declare class ApiQuoteService {
|
|
5571
|
+
private environments;
|
|
5572
|
+
private http;
|
|
5573
|
+
constructor(environments: Environment, http: HttpClient);
|
|
5574
|
+
/**
|
|
5575
|
+
* Base URL for the Quotes API.
|
|
5576
|
+
*/
|
|
5577
|
+
get url(): string;
|
|
5578
|
+
/**
|
|
5579
|
+
* Retrieves all registered events for a specific quote.
|
|
5580
|
+
*
|
|
5581
|
+
* @param id - Quote identifier.
|
|
5582
|
+
* @param params - Optional query parameters such as pagination or filtering.
|
|
5583
|
+
* @returns Observable containing the list of quote events.
|
|
5584
|
+
*
|
|
5585
|
+
* @example
|
|
5586
|
+
* ```ts
|
|
5587
|
+
* this.apiQuoteService.getQuoteEvents(10, { page: 1 })
|
|
5588
|
+
* .subscribe((events) => console.log(events))
|
|
5589
|
+
* ```
|
|
5590
|
+
*/
|
|
5591
|
+
getQuoteEvents(id: number, params: QueryParams): Observable<QuoteEventsOut>;
|
|
5592
|
+
/**
|
|
5593
|
+
* Registers a new event related to a specific quote.
|
|
5594
|
+
*
|
|
5595
|
+
* @param id - Quote identifier.
|
|
5596
|
+
* @param body - Event payload to be created.
|
|
5597
|
+
* @returns Observable containing the newly created event.
|
|
5598
|
+
*
|
|
5599
|
+
* @example
|
|
5600
|
+
* ```ts
|
|
5601
|
+
* const event: QuoteEventIn = { code: 'WON', note: 'Client approved' }
|
|
5602
|
+
* this.apiQuoteService.postQuoteEvents(10, event)
|
|
5603
|
+
* .subscribe((response) => console.log(response))
|
|
5604
|
+
* ```
|
|
5605
|
+
*/
|
|
5606
|
+
postQuoteEvents(id: number, body: QuoteEventIn): Observable<QuoteEventOut>;
|
|
5607
|
+
/**
|
|
5608
|
+
* Retrieves the available quote event types.
|
|
5609
|
+
*
|
|
5610
|
+
* @param params - Optional query parameters such as pagination or filtering.
|
|
5611
|
+
* @returns Observable containing the list of event types.
|
|
5612
|
+
*
|
|
5613
|
+
* @example
|
|
5614
|
+
* ```ts
|
|
5615
|
+
* this.apiQuoteService.getQuoteEventTypes({ page: 1 })
|
|
5616
|
+
* .subscribe((types) => console.log(types))
|
|
5617
|
+
* ```
|
|
5618
|
+
*/
|
|
5619
|
+
getQuoteEventTypes(params: QueryParams): Observable<QuoteEventTypesOut>;
|
|
5620
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiQuoteService, never>;
|
|
5621
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiQuoteService>;
|
|
5622
|
+
}
|
|
5623
|
+
|
|
5532
5624
|
interface CollectionPayment extends LaravelModel {
|
|
5533
5625
|
_id: number;
|
|
5534
5626
|
country_code: string;
|
|
@@ -5649,6 +5741,7 @@ interface ShipmentReports {
|
|
|
5649
5741
|
interface ShipmentLandingReport extends ActiveLessLaravelModel {
|
|
5650
5742
|
authorization_numbers: string[] | null;
|
|
5651
5743
|
commercial_invoice: boolean | null;
|
|
5744
|
+
company_country_id: number;
|
|
5652
5745
|
company_id: number;
|
|
5653
5746
|
company_name: string;
|
|
5654
5747
|
country_id: number;
|
|
@@ -5745,6 +5838,10 @@ interface ReportExternalShipment extends ActiveLessLaravelModel {
|
|
|
5745
5838
|
total: number;
|
|
5746
5839
|
tracking_number: string;
|
|
5747
5840
|
user_id: number;
|
|
5841
|
+
customer_full_name: string;
|
|
5842
|
+
customer_email: string | null;
|
|
5843
|
+
customer_phone_code: string | null;
|
|
5844
|
+
customer_phone_number: string | null;
|
|
5748
5845
|
}
|
|
5749
5846
|
interface ReportExternalShipmentAddress extends ApiModel {
|
|
5750
5847
|
address_line_1: string;
|
|
@@ -7052,5 +7149,5 @@ declare const xmlHeaders: (format?: "object" | "http_header") => HttpHeaders | {
|
|
|
7052
7149
|
[header: string]: string | string[];
|
|
7053
7150
|
};
|
|
7054
7151
|
|
|
7055
|
-
export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
7056
|
-
export type { Account, AccountCategoriesOut, AccountCategory, AccountEntitiesIn, AccountEntitiesOut, AccountIn, AccountOut, AccountPayment, AccountResponse, AccountToTDX, AccountType, AccountTypeIn, AccountTypeOut, AccountTypesOut, AccountsOut, ActiveLessLaravelModel, ActiveLessSymfonyModel, AdditionalData, ApiBillingConfigurable, ApiModel, ApiResponse, ApiSuccess, Attribute, AttributeIn, AttributeWithId, Attributes, AuthLoginIn, AuthLoginOut, AuthMeOut, AuthUserLoginIn, BillingConfig, BillingConfigIn, BillingConfigOut, BillingConfigsOut, BillingPaCustomer, BillingPaCustomerOut, BoardingProcess, BoardingProcessHistory, BoardingProcessIdIn, BoardingProcessIn, BoardingProcessStatus, BusinessPartyTraderType, BusinessPartyTraderTypesOut, CFDI, CancelPaymentReceiptIn, CancellationReason, CancellationReasonIn, CancellationReasonOut, CancellationReasonsOut, CashValueSummary, CashValueSummaryOut, Catalog, CatalogLess, CatalogsOut, ChangeLanguageIn, Checkpoint, CheckpointEventReason, CheckpointEventReasonsOut, CheckpointsOut, City, CollectionPayment, CollectionPaymentsOut, CommercialInvoice, Commodity, Company, CompanyCountriesOut, CompanyCountry, CompanyCountryIn, CompanyCountryOut, CompanyCountryTax, CompanyCountryTaxesOut, CompanyIn, CompanyOut, CompositionCountryReferencesOut, CountriesOut, Country, CountryCurrencyRate, CountryDocumentType, CountryExchange, CountryGroups, CountryGroupsOut, CountryIn, CountryOut, CountryPaymentType, CountryPaymentTypeField, CountryPaymentTypeFieldIn, CountryPaymentTypeFieldOut, CountryPaymentTypeFieldsOut, CountryPaymentTypeIn, CountryPaymentTypeOut, CountryPaymentTypesOut, CountryReference, CountryReferenceCurrenciesOut, CountryReferenceCurrency, CountryReferenceCurrencyIn, CountryReferenceCurrencyOut, CountryReferenceExtraCharge, CountryReferenceExtraChargeIn, CountryReferenceExtraChargeOut, CountryReferenceIn, CountryReferenceOut, CountryReferenceProduct, CountryReferenceProductIn, CountryReferenceProductOut, CountryReferenceProductsOut, CountryReferencesOut, Criteria, CriteriaCustom, CriteriaIn, CriteriaOut, CriteriaWithTimestamps, CurrenciesOut, Currency, Customer, CustomerComposition, CustomerCountryDocumentType, CustomerDocumentTypesOut, CustomerOpenItem, CustomerOtherInvoice, CustomerRestriction, CustomerRestrictionIn, CustomerRestrictionInV2, CustomerRestrictionOut, CustomerRestrictionsOut, CustomerType, CustomerTypesOut, CustomersOut, Customs, DeliveryConfirmationCompleteIn, DeliveryConfirmationGenerateIn, DeliveryConfirmationGenerateOut, DeliveryConfirmationIn, DeliveryConfirmationSearchOut, Department, DepartmentsOut, DependentRules, DestinationCountry, DhlCode, DhlCodeLess, Discount, DiscountIn, DiscountOut, DiscountsOut, District, DistrictsOut, Document, DocumentCategory, DocumentCategoryReports, DocumentFunction, DocumentItem, DocumentPayment, DocumentRequests, DocumentStatus, DocumentStatusesOut, DocumentType, DocumentTypeComposition, DocumentTypeRange, DocumentTypeReports, Dropdown, DropdownConfig, EconomicActivitiesOut, EconomicActivity, EmailErrorIn, EmbassyShipment, EmbassyShipmentIn, EmbassyShipmentOut, EmbassyShipmentsOut, Employee, EmployeeCustomerDhl, EmployeeCustomersIn, EmployeeCustomersOut, EmployeeIn, EmployeeOut, EmployeesCustomersOut, EmployeesOut, Entity, Environment, EstablishmentType, EstablishmentTypesOut, Exchange, ExchangeIn, ExchangeOut, ExchangesOut, ExportType, ExportTypesOut, ExternalShipmentAddress, ExternalShipmentAddressesIn, ExternalShipmentAddressesOut, ExternalShipmentFile, ExternalShipmentFileHistory, ExternalShipmentFileOut, ExternalShipmentHistoriesOut, ExternalShipmentHistory, ExternalShipmentStatus, ExternalShipmentStatusOut, ExternalShipmentStatuses, ExternalShipmentsOut, ExtraCharge, ExtraChargeComposition, ExtraChargeEntitiesIn, ExtraChargeEntitiesOut, ExtraChargeEntity, ExtraChargeIn, ExtraChargeOut, ExtraChargesOut, Facility, Field, FieldLess, FieldsOut, FileCheckOut, FillFrom, FillFromIn, FiscalRegimen, FiscalRegimensAcceptedOut, FiscalRegimensOut, GenericFolio, GenericFolioIn, GenericFolioOut, GenericFoliosOut, GetDocumentsOut, GetPostalLocationsIn, GetUserOut, GetUsersOut, Holiday, HolidayIn, HolidayOut, HolidaysOut, IdentificationType, IdentificationTypeComposition, IdentificationTypeCustomer, IdentificationTypeIn, IdentificationTypeNumberValidationIn, IdentificationTypeNumberValidationOut, IdentificationTypeOut, IdentificationTypesOut, Incident, IncidentIn, IncidentOut, IncidentReason, IncidentReasonComplement, IncidentReasonComplementIn, IncidentReasonComplementOut, IncidentReasonComplementsOut, IncidentReasonIn, IncidentReasonOut, IncidentReasonsOut, IncidentsOut, IncomeType, IncomeTypesOut, Installation, InstallationCountryReferenceCurrenciesOut, InstallationCountryReferenceCurrency, InstallationCountryReferenceCurrencyIn, InstallationCountryReferenceCurrencyOut, InstallationIn, InstallationOut, InstallationsOut, Invoice, InvoiceTypeCustomParamsIn, InvoicesOut, Item, Language, LanguagesOut, LaravelModel, Location, LocationEmployee, LocationEmployeeBatchIn, LocationEmployeeOut, LocationEmployeesIn, LocationEmployeesOut, LocationIn, LocationOut, LocationType, LocationTypeFields, LocationsOut, LoyaltyPeriod, LoyaltyPeriodIn, LoyaltyPeriodOut, LoyaltyPeriodsOut, LoyaltyRule, LoyaltyRuleIn, LoyaltyRuleOut, LoyaltyRulesOut, ManagementArea, ManagementAreasOut, ManifestMultipleIn, ManifestMultipleOut, ManufactureCountry, Module, ModuleType, ModulesOut, MunicipalitiesOut, Municipality, Notification, NotificationConfiguration, NotificationConfigurationIn, NotificationConfigurationOut, NotificationIn, NotificationOut, NotificationStatus, NotificationType, NotificationsOut, NotificationsTypeOut, OpenItem, OpenItemIn, OpenItems, OpenItemsOut, OpeningTransference, OpeningTransferenceIn, OpeningTransferenceOut, Operation, OperationAccountPaymentIn, OperationAccountPaymentOut, OperationAction, OperationCancelBillingIn, OperationCancelBillingOut, OperationDocumentIn, OperationDocumentOut, OperationDocumentRequestsOut, OperationEvent, OperationModule, OperationModuleEndIn, OperationModuleOut, OperationModuleStartIn, OperationPrintDocumentOut, OperationPrintXmlOut, OperationShipmentExternalIn, OperationShipmentExternalOut, OperationType, OperationTypesOut, OperationsLoadTopCustomerV2In, OtherInvoiceIn, OtherInvoiceOut, OtherInvoices, Override, OverridesOut, PackageLocation, PackagesInStockIn, PackagesInStockOut, Parameter, ParameterConfig, ParameterConfigIn, ParameterConfigOut, ParameterConfigsOut, ParameterValueIn, ParameterValueOut, ParametersByLevelIn, ParametersOut, ParametersValuesIn, ParametersValuesOut, Parish, ParishesOut, PartialWithdrawal, PartialWithdrawalsOut, Payment, PaymentDetail, PaymentOpenItemIn, PaymentOut, PaymentType, PaymentTypeFieldAccount, PaymentTypeFieldAccountIn, PaymentTypeFieldAccountOut, PaymentTypeFieldAccountsOut, PaymentTypeFieldCardType, PaymentTypeFieldCardTypeIn, PaymentTypeFieldCardTypeOut, PaymentTypeFieldCardTypesOut, PaymentTypesOut, Permission, PersonType, PersonTypesOut, Pivot, PostalCode, PostalCodeBillings, PostalCodesOut, PostalLocation, PostalLocationsOut, PrintCollectionReceiptOut, Product, ProductEntitiesIn, ProductEntitiesOut, ProductEntity, ProductIn, ProductOut, ProductSubtotal, PromotionCodeDiscount, PromotionCodeDiscountsOut, PromotionIn, PromotionOut, Province, ProvincesOut, PutUsersIn, PutUsersOut, QuantityUnit, QueryParams, Question, QuestionIn, QuestionOut, QuestionsOut, ReceiptFile, ReceiptFileOut, Region, RegionsOut, ReportExternalShipment, ReportExternalShipmentAddress, Role, RoleIn, RoleOut, RoleType, RoleTypesOut, RolesOut, Rule, RuleByCriteria, RuleCriteriaIn, RuleIn, RuleOut, Rules, RulesByCriteriaOut, RulesIn, RulesOut, Sales, SalesBookReportOut, ServiceArea, ServiceAreaIn, ServiceAreasOut, Session, SessionIn, SessionOut, ShipmentAddresses, ShipmentBookPickup, ShipmentCancellationIn, ShipmentCancellationOut, ShipmentCompanyCountryExtraCharges, ShipmentComposition, ShipmentContentType, ShipmentContentTypesOut, ShipmentEmployeeCustomer, ShipmentEmployeeCustomers, ShipmentGroup, ShipmentGroupsOut, ShipmentGsop, ShipmentIncomeType, ShipmentIncomeTypeIn, ShipmentIncomeTypeOut, ShipmentIncomeTypesOut, ShipmentLandingReport, ShipmentOut, ShipmentPieceCompanyCountrySupplies, ShipmentPieces, ShipmentReports, ShipmentScope, ShipmentScopesOut, ShipmentStatus, ShipmentStatusesOut, ShipmentTag, ShipmentsLandingReportOut, ShipmentsReportOut, State, Suburb, SuppliesOut, Supply, SupplyEntitiesIn, SupplyEntitiesOut, SupplyEntity, SupplyEntityPacking, SupplyEntityType, SupplyIn, SupplyLocation, SupplyLocationIn, SupplyLocationOut, SupplyLocationTransaction, SupplyLocationTransactionIn, SupplyLocationTransactionOut, SupplyLocationsOut, SupplyOut, SupplyPacking, SupplyTransactionType, SupplyTransactionTypesOut, SupplyType, SupplyTypesOut, SymfonyModel, System, SystemEntitiesIn, SystemEntitiesOut, SystemIn, SystemOut, SystemsOut, TDXAccountSetting, TDXAccountSettingsIn, TDXAccountSettingsOut, TDXAccountsSettingsOut, Tax, TextConfig, Tolerance, ToleranceIn, ToleranceOut, TolerancesOut, TopCustomer, TopCustomersOut, TradingTransactionType, TransferenceType, Translations, UniqueFolio, UniqueFolioIn, UniqueFolioOut, UniqueFoliosOut, Unit, UnitsOut, User, UserMe, ValidateAccountIn, ValidateAccountOut, ValidateFacilityIn, ValidateFacilityOut, ValidateIdentificationBRIn, ValidateIdentificationBROut, ValidateNIPIn, ValidateNIPOut, Values, WithdrawalAmount, WorkflowConfig, WorkflowConfigsBatchIn, WorkflowConfigsOut, WorkflowsOut, Zone, ZonesOut };
|
|
7152
|
+
export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
7153
|
+
export type { Account, AccountCategoriesOut, AccountCategory, AccountEntitiesIn, AccountEntitiesOut, AccountIn, AccountOut, AccountPayment, AccountResponse, AccountToTDX, AccountType, AccountTypeIn, AccountTypeOut, AccountTypesOut, AccountsOut, ActiveLessLaravelModel, ActiveLessSymfonyModel, AdditionalData, ApiBillingConfigurable, ApiModel, ApiResponse, ApiSuccess, Attribute, AttributeIn, AttributeWithId, Attributes, AuthLoginIn, AuthLoginOut, AuthMeOut, AuthUserLoginIn, BillingConfig, BillingConfigIn, BillingConfigOut, BillingConfigsOut, BillingPaCustomer, BillingPaCustomerOut, BoardingProcess, BoardingProcessHistory, BoardingProcessIdIn, BoardingProcessIn, BoardingProcessStatus, BusinessPartyTraderType, BusinessPartyTraderTypesOut, CFDI, CancelPaymentReceiptIn, CancellationReason, CancellationReasonIn, CancellationReasonOut, CancellationReasonsOut, CashValueSummary, CashValueSummaryOut, Catalog, CatalogLess, CatalogsOut, ChangeLanguageIn, Checkpoint, CheckpointEventReason, CheckpointEventReasonsOut, CheckpointsOut, City, CollectionPayment, CollectionPaymentsOut, CommercialInvoice, Commodity, Company, CompanyCountriesOut, CompanyCountry, CompanyCountryIn, CompanyCountryOut, CompanyCountryTax, CompanyCountryTaxesOut, CompanyIn, CompanyOut, CompositionCountryReferencesOut, CountriesOut, Country, CountryCurrencyRate, CountryDocumentType, CountryExchange, CountryGroups, CountryGroupsOut, CountryIn, CountryOut, CountryPaymentType, CountryPaymentTypeField, CountryPaymentTypeFieldIn, CountryPaymentTypeFieldOut, CountryPaymentTypeFieldsOut, CountryPaymentTypeIn, CountryPaymentTypeOut, CountryPaymentTypesOut, CountryReference, CountryReferenceCurrenciesOut, CountryReferenceCurrency, CountryReferenceCurrencyIn, CountryReferenceCurrencyOut, CountryReferenceExtraCharge, CountryReferenceExtraChargeIn, CountryReferenceExtraChargeOut, CountryReferenceIn, CountryReferenceOut, CountryReferenceProduct, CountryReferenceProductIn, CountryReferenceProductOut, CountryReferenceProductsOut, CountryReferencesOut, Criteria, CriteriaCustom, CriteriaIn, CriteriaOut, CriteriaWithTimestamps, CurrenciesOut, Currency, Customer, CustomerComposition, CustomerCountryDocumentType, CustomerDocumentTypesOut, CustomerOpenItem, CustomerOtherInvoice, CustomerRestriction, CustomerRestrictionIn, CustomerRestrictionInV2, CustomerRestrictionOut, CustomerRestrictionsOut, CustomerType, CustomerTypesOut, CustomersOut, Customs, DeliveryConfirmationCompleteIn, DeliveryConfirmationGenerateIn, DeliveryConfirmationGenerateOut, DeliveryConfirmationIn, DeliveryConfirmationSearchOut, Department, DepartmentsOut, DependentRules, DestinationCountry, DhlCode, DhlCodeLess, Discount, DiscountIn, DiscountOut, DiscountsOut, District, DistrictsOut, Document, DocumentCategory, DocumentCategoryReports, DocumentFunction, DocumentItem, DocumentPayment, DocumentRequests, DocumentStatus, DocumentStatusesOut, DocumentType, DocumentTypeComposition, DocumentTypeRange, DocumentTypeReports, Dropdown, DropdownConfig, EconomicActivitiesOut, EconomicActivity, EmailErrorIn, EmbassyShipment, EmbassyShipmentIn, EmbassyShipmentOut, EmbassyShipmentsOut, Employee, EmployeeCustomerDhl, EmployeeCustomersIn, EmployeeCustomersOut, EmployeeIn, EmployeeOut, EmployeesCustomersOut, EmployeesOut, Entity, Environment, EstablishmentType, EstablishmentTypesOut, Exchange, ExchangeIn, ExchangeOut, ExchangesOut, ExportType, ExportTypesOut, ExternalShipmentAddress, ExternalShipmentAddressesIn, ExternalShipmentAddressesOut, ExternalShipmentFile, ExternalShipmentFileHistory, ExternalShipmentFileOut, ExternalShipmentHistoriesOut, ExternalShipmentHistory, ExternalShipmentStatus, ExternalShipmentStatusOut, ExternalShipmentStatuses, ExternalShipmentsOut, ExtraCharge, ExtraChargeComposition, ExtraChargeEntitiesIn, ExtraChargeEntitiesOut, ExtraChargeEntity, ExtraChargeIn, ExtraChargeOut, ExtraChargesOut, Facility, Field, FieldLess, FieldsOut, FileCheckOut, FillFrom, FillFromIn, FiscalRegimen, FiscalRegimensAcceptedOut, FiscalRegimensOut, GenericFolio, GenericFolioIn, GenericFolioOut, GenericFoliosOut, GetDocumentsOut, GetPostalLocationsIn, GetUserOut, GetUsersOut, Holiday, HolidayIn, HolidayOut, HolidaysOut, IdentificationType, IdentificationTypeComposition, IdentificationTypeCustomer, IdentificationTypeIn, IdentificationTypeNumberValidationIn, IdentificationTypeNumberValidationOut, IdentificationTypeOut, IdentificationTypesOut, Incident, IncidentIn, IncidentOut, IncidentReason, IncidentReasonComplement, IncidentReasonComplementIn, IncidentReasonComplementOut, IncidentReasonComplementsOut, IncidentReasonIn, IncidentReasonOut, IncidentReasonsOut, IncidentsOut, IncomeType, IncomeTypesOut, Installation, InstallationCountryReferenceCurrenciesOut, InstallationCountryReferenceCurrency, InstallationCountryReferenceCurrencyIn, InstallationCountryReferenceCurrencyOut, InstallationIn, InstallationOut, InstallationsOut, Invoice, InvoiceTypeCustomParamsIn, InvoicesOut, Item, Language, LanguagesOut, LaravelModel, Location, LocationEmployee, LocationEmployeeBatchIn, LocationEmployeeOut, LocationEmployeesIn, LocationEmployeesOut, LocationIn, LocationOut, LocationType, LocationTypeFields, LocationsOut, LoyaltyPeriod, LoyaltyPeriodIn, LoyaltyPeriodOut, LoyaltyPeriodsOut, LoyaltyRule, LoyaltyRuleIn, LoyaltyRuleOut, LoyaltyRulesOut, ManagementArea, ManagementAreasOut, ManifestMultipleIn, ManifestMultipleOut, ManufactureCountry, Module, ModuleType, ModulesOut, MunicipalitiesOut, Municipality, Notification, NotificationConfiguration, NotificationConfigurationIn, NotificationConfigurationOut, NotificationIn, NotificationOut, NotificationStatus, NotificationType, NotificationsOut, NotificationsTypeOut, OpenItem, OpenItemIn, OpenItems, OpenItemsOut, OpeningTransference, OpeningTransferenceIn, OpeningTransferenceOut, Operation, OperationAccountPaymentIn, OperationAccountPaymentOut, OperationAction, OperationCancelBillingIn, OperationCancelBillingOut, OperationDocumentIn, OperationDocumentOut, OperationDocumentRequestsOut, OperationEvent, OperationModule, OperationModuleEndIn, OperationModuleOut, OperationModuleStartIn, OperationPrintDocumentOut, OperationPrintXmlOut, OperationShipmentExternalIn, OperationShipmentExternalOut, OperationType, OperationTypesOut, OperationsLoadTopCustomerV2In, OtherInvoiceIn, OtherInvoiceOut, OtherInvoices, Override, OverridesOut, PackageLocation, PackagesInStockIn, PackagesInStockOut, Parameter, ParameterConfig, ParameterConfigIn, ParameterConfigOut, ParameterConfigsOut, ParameterValueIn, ParameterValueOut, ParametersByLevelIn, ParametersOut, ParametersValuesIn, ParametersValuesOut, Parish, ParishesOut, PartialWithdrawal, PartialWithdrawalsOut, Payment, PaymentDetail, PaymentOpenItemIn, PaymentOut, PaymentType, PaymentTypeFieldAccount, PaymentTypeFieldAccountIn, PaymentTypeFieldAccountOut, PaymentTypeFieldAccountsOut, PaymentTypeFieldCardType, PaymentTypeFieldCardTypeIn, PaymentTypeFieldCardTypeOut, PaymentTypeFieldCardTypesOut, PaymentTypesOut, Permission, PersonType, PersonTypesOut, Pivot, PostalCode, PostalCodeBillings, PostalCodesOut, PostalLocation, PostalLocationsOut, PrintCollectionReceiptOut, Product, ProductEntitiesIn, ProductEntitiesOut, ProductEntity, ProductIn, ProductOut, ProductSubtotal, PromotionCodeDiscount, PromotionCodeDiscountsOut, PromotionIn, PromotionOut, Province, ProvincesOut, PutUsersIn, PutUsersOut, QuantityUnit, QueryParams, Question, QuestionIn, QuestionOut, QuestionsOut, QuoteEvent, QuoteEventIn, QuoteEventOut, QuoteEventType, QuoteEventTypesOut, QuoteEventsOut, ReceiptFile, ReceiptFileOut, Region, RegionsOut, ReportExternalShipment, ReportExternalShipmentAddress, Role, RoleIn, RoleOut, RoleType, RoleTypesOut, RolesOut, Rule, RuleByCriteria, RuleCriteriaIn, RuleIn, RuleOut, Rules, RulesByCriteriaOut, RulesIn, RulesOut, Sales, SalesBookReportOut, ServiceArea, ServiceAreaIn, ServiceAreasOut, Session, SessionIn, SessionOut, ShipmentAddresses, ShipmentBookPickup, ShipmentCancellationIn, ShipmentCancellationOut, ShipmentCompanyCountryExtraCharges, ShipmentComposition, ShipmentContentType, ShipmentContentTypesOut, ShipmentEmployeeCustomer, ShipmentEmployeeCustomers, ShipmentGroup, ShipmentGroupsOut, ShipmentGsop, ShipmentIncomeType, ShipmentIncomeTypeIn, ShipmentIncomeTypeOut, ShipmentIncomeTypesOut, ShipmentLandingReport, ShipmentOut, ShipmentPieceCompanyCountrySupplies, ShipmentPieces, ShipmentReports, ShipmentScope, ShipmentScopesOut, ShipmentStatus, ShipmentStatusesOut, ShipmentTag, ShipmentsLandingReportOut, ShipmentsReportOut, State, Suburb, SuppliesOut, Supply, SupplyEntitiesIn, SupplyEntitiesOut, SupplyEntity, SupplyEntityPacking, SupplyEntityType, SupplyIn, SupplyLocation, SupplyLocationIn, SupplyLocationOut, SupplyLocationTransaction, SupplyLocationTransactionIn, SupplyLocationTransactionOut, SupplyLocationsOut, SupplyOut, SupplyPacking, SupplyTransactionType, SupplyTransactionTypesOut, SupplyType, SupplyTypesOut, SymfonyModel, System, SystemEntitiesIn, SystemEntitiesOut, SystemIn, SystemOut, SystemsOut, TDXAccountSetting, TDXAccountSettingsIn, TDXAccountSettingsOut, TDXAccountsSettingsOut, Tax, TextConfig, Tolerance, ToleranceIn, ToleranceOut, TolerancesOut, TopCustomer, TopCustomersOut, TradingTransactionType, TransferenceType, Translations, UniqueFolio, UniqueFolioIn, UniqueFolioOut, UniqueFoliosOut, Unit, UnitsOut, User, UserMe, ValidateAccountIn, ValidateAccountOut, ValidateFacilityIn, ValidateFacilityOut, ValidateIdentificationBRIn, ValidateIdentificationBROut, ValidateNIPIn, ValidateNIPOut, Values, WithdrawalAmount, WorkflowConfig, WorkflowConfigsBatchIn, WorkflowConfigsOut, WorkflowsOut, Zone, ZonesOut };
|
|
@@ -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
|
+
}
|
|
@@ -411,12 +411,13 @@ export type CountryReferenceProductOut = {
|
|
|
411
411
|
country_reference_product: CountryReferenceProduct;
|
|
412
412
|
};
|
|
413
413
|
export type ExtraChargeEntitiesIn = {
|
|
414
|
-
model_type
|
|
415
|
-
model_id
|
|
414
|
+
model_type?: string;
|
|
415
|
+
model_id?: number;
|
|
416
416
|
extracharge_entities: {
|
|
417
417
|
id: number;
|
|
418
418
|
is_active: boolean;
|
|
419
419
|
}[];
|
|
420
|
+
check_all?: boolean;
|
|
420
421
|
};
|
|
421
422
|
export type ExtraChargeEntitiesOut = {
|
|
422
423
|
extracharge_entities: ExtraChargeEntity[];
|
|
@@ -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;
|
|
@@ -216,6 +217,10 @@ export interface ReportExternalShipment extends ActiveLessLaravelModel {
|
|
|
216
217
|
total: number;
|
|
217
218
|
tracking_number: string;
|
|
218
219
|
user_id: number;
|
|
220
|
+
customer_full_name: string;
|
|
221
|
+
customer_email: string | null;
|
|
222
|
+
customer_phone_code: string | null;
|
|
223
|
+
customer_phone_number: string | null;
|
|
219
224
|
}
|
|
220
225
|
export interface ReportExternalShipmentAddress extends ApiModel {
|
|
221
226
|
address_line_1: string;
|
|
@@ -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';
|