@experteam-mx/ngx-services 18.8.15 → 18.8.17

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.
@@ -1055,6 +1055,15 @@ class ApiCatalogsService {
1055
1055
  return this.http.delete(`${this.url}/holidays/${id}`)
1056
1056
  .pipe(map(({ data }) => data));
1057
1057
  }
1058
+ /**
1059
+ * Retrieves a list of business party trader types
1060
+ * @param {QueryParams} params - Query parameters for filtering and pagination (optional)
1061
+ * @returns {Observable<BusinessPartyTraderTypesOut>} Observable containing the list of trader types
1062
+ */
1063
+ getBusinessPartyTraderTypes(params) {
1064
+ return this.http.get(`${this.url}/business-party-trader-types`)
1065
+ .pipe(map(({ data }) => data));
1066
+ }
1058
1067
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCatalogsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1059
1068
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
1060
1069
  }
@@ -4033,6 +4042,35 @@ class ApiShipmentsService {
4033
4042
  params
4034
4043
  }).pipe(map(({ data }) => data));
4035
4044
  }
4045
+ /**
4046
+ * Retrieves a paginated list of embassy shipments
4047
+ * @param {QueryParams} params - Query parameters for filtering and pagination
4048
+ * @returns {Observable<EmbassyShipmentsOut>} Observable containing the list of shipments and pagination metadata
4049
+ */
4050
+ getEmbassyShipments(params) {
4051
+ return this.http.get(`${this.url}/embassy-shipments`, {
4052
+ params
4053
+ }).pipe(map(({ data }) => data));
4054
+ }
4055
+ /**
4056
+ * Creates a new embassy shipment
4057
+ * @param {EmbassyShipmentIn} body - The shipment data to create
4058
+ * @returns {Observable<EmbassyShipmentOut>} Observable containing the created shipment with its assigned ID
4059
+ */
4060
+ postEmbassyShipments(body) {
4061
+ return this.http.post(`${this.url}/embassy-shipments`, body)
4062
+ .pipe(map(({ data }) => data));
4063
+ }
4064
+ /**
4065
+ * Updates an existing embassy shipment
4066
+ * @param {number} id - The unique identifier of the shipment to update
4067
+ * @param {EmbassyShipmentIn} body - The updated shipment data
4068
+ * @returns {Observable<EmbassyShipmentOut>} Observable containing the updated shipment
4069
+ */
4070
+ putEmbassyShipments(id, body) {
4071
+ return this.http.put(`${this.url}/embassy-shipments/${id}`, body)
4072
+ .pipe(map(({ data }) => data));
4073
+ }
4036
4074
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiShipmentsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
4037
4075
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiShipmentsService, providedIn: 'root' });
4038
4076
  }