@experteam-mx/ngx-services 20.7.0-dev1.2 → 20.7.0-dev2.1
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.
|
@@ -3400,6 +3400,56 @@ class ApiInventoriesService {
|
|
|
3400
3400
|
return this.http.get(`${this.url}/stock-update/packages/${id}`)
|
|
3401
3401
|
.pipe(map(({ data }) => data));
|
|
3402
3402
|
}
|
|
3403
|
+
/**
|
|
3404
|
+
* Retrieves a list of courier routes based on query parameters.
|
|
3405
|
+
*
|
|
3406
|
+
* @param {QueryParams} params - Query parameters for filtering the courier routes.
|
|
3407
|
+
* @returns {Observable<CourierRoutesOut>} An observable that emits the list of courier routes.
|
|
3408
|
+
*/
|
|
3409
|
+
getCourierRoutes(params) {
|
|
3410
|
+
return this.http.get(`${this.url}/courier-routes`, {
|
|
3411
|
+
params
|
|
3412
|
+
}).pipe(map(({ data }) => data));
|
|
3413
|
+
}
|
|
3414
|
+
/**
|
|
3415
|
+
* Fetches the courier route details based on the provided courier route ID.
|
|
3416
|
+
*
|
|
3417
|
+
* @param {number} id - The courier route id
|
|
3418
|
+
* @return {Observable<CourierRouteOut>} An observable that emits the courier route data.
|
|
3419
|
+
*/
|
|
3420
|
+
getCourierRoute(id) {
|
|
3421
|
+
return this.http.get(`${this.url}/courier-routes/${id}`)
|
|
3422
|
+
.pipe(map(({ data }) => data));
|
|
3423
|
+
}
|
|
3424
|
+
/**
|
|
3425
|
+
* Creates a new courier route.
|
|
3426
|
+
*
|
|
3427
|
+
* @param {CourierRouteIn} body - The data for the new courier route.
|
|
3428
|
+
* @returns {Observable<CourierRouteOut>} An observable the created courier route detail.
|
|
3429
|
+
*/
|
|
3430
|
+
postCourierRoute(body) {
|
|
3431
|
+
return this.http.post(`${this.url}/courier-routes`, body).pipe(map(({ data }) => data));
|
|
3432
|
+
}
|
|
3433
|
+
/**
|
|
3434
|
+
* Update an existing courier route.
|
|
3435
|
+
*
|
|
3436
|
+
* @param {number} id - The identifier of the courier route record to update.
|
|
3437
|
+
* @param {CourierRouteIn} body - The courier route data to be updated.
|
|
3438
|
+
* @returns {Observable<CourierRouteOut>} An observable detail of the updated courier route.
|
|
3439
|
+
*/
|
|
3440
|
+
putCourierRoute(id, body) {
|
|
3441
|
+
return this.http.put(`${this.url}/courier-routes/${id}`, body).pipe(map(({ data }) => data));
|
|
3442
|
+
}
|
|
3443
|
+
/**
|
|
3444
|
+
* Delete an existing courier route.
|
|
3445
|
+
*
|
|
3446
|
+
* @param {number} id - The unique identifier of the courier route to be deleted.
|
|
3447
|
+
* @returns {Observable<CourierRouteOut>} An observable that emits the result of the delete courier route.
|
|
3448
|
+
*/
|
|
3449
|
+
deleteCourierRoute(id) {
|
|
3450
|
+
return this.http.delete(`${this.url}/courier-routes/${id}`)
|
|
3451
|
+
.pipe(map(({ data }) => data));
|
|
3452
|
+
}
|
|
3403
3453
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3404
3454
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
|
|
3405
3455
|
}
|
|
@@ -4778,63 +4828,41 @@ class ApiShipmentsService {
|
|
|
4778
4828
|
.pipe(map(({ data }) => data));
|
|
4779
4829
|
}
|
|
4780
4830
|
/**
|
|
4781
|
-
* Retrieves a paginated list of
|
|
4782
|
-
*
|
|
4783
|
-
* @
|
|
4784
|
-
* @returns {Observable<DocumentConfigurationsOut>} An observable containing the list of document configurations and pagination metadata.
|
|
4831
|
+
* Retrieves a paginated list of signature page settings
|
|
4832
|
+
* @param {QueryParams} params - Query parameters for filtering and pagination
|
|
4833
|
+
* @returns {Observable<SignaturePageSettingsOut>} Observable containing the list of signature page settings and pagination metadata
|
|
4785
4834
|
*/
|
|
4786
|
-
|
|
4787
|
-
return this.http.get(`${this.url}/
|
|
4835
|
+
getSignaturePageSettings(params) {
|
|
4836
|
+
return this.http.get(`${this.url}/signature-page-settings`, {
|
|
4788
4837
|
params
|
|
4789
4838
|
}).pipe(map(({ data }) => data));
|
|
4790
4839
|
}
|
|
4791
4840
|
/**
|
|
4792
|
-
* Retrieves a
|
|
4793
|
-
*
|
|
4794
|
-
* @param {number} id - The unique identifier of the document configuration.
|
|
4795
|
-
* @returns {Observable<DocumentConfigurationOut>} An observable containing the document configuration details.
|
|
4796
|
-
*/
|
|
4797
|
-
getDocumentConfiguration(id) {
|
|
4798
|
-
return this.http.get(`${this.url}/document-configurations/${id}`).pipe(map(({ data }) => data));
|
|
4799
|
-
}
|
|
4800
|
-
/**
|
|
4801
|
-
* Creates a new document configuration.
|
|
4841
|
+
* Retrieves the details of a signature page setting based on its ID.
|
|
4802
4842
|
*
|
|
4803
|
-
* @param {
|
|
4804
|
-
* @
|
|
4843
|
+
* @param {number} id - The identifier of the signature page setting to fetch.
|
|
4844
|
+
* @return {Observable<SignaturePageSettingOut>} An observable that emits the signature page setting data.
|
|
4805
4845
|
*/
|
|
4806
|
-
|
|
4807
|
-
return this.http.
|
|
4808
|
-
.pipe(map(({ data }) => data));
|
|
4846
|
+
getSignaturePageSetting(id) {
|
|
4847
|
+
return this.http.get(`${this.url}/signature-page-settings/${id}`).pipe(map(({ data }) => data));
|
|
4809
4848
|
}
|
|
4810
4849
|
/**
|
|
4811
|
-
*
|
|
4812
|
-
*
|
|
4813
|
-
* @
|
|
4814
|
-
* @param {DocumentConfigurationIn} body - The updated document configuration data.
|
|
4815
|
-
* @returns {Observable<DocumentConfigurationOut>} An observable containing the updated document configuration.
|
|
4850
|
+
* Creates a new signature page setting
|
|
4851
|
+
* @param {SignaturePageSettingIn} body - The signature page setting data to create
|
|
4852
|
+
* @returns {Observable<SignaturePageSettingOut>} Observable containing the created signature page setting with its assigned ID
|
|
4816
4853
|
*/
|
|
4817
|
-
|
|
4818
|
-
return this.http.
|
|
4854
|
+
postSignaturePageSetting(body) {
|
|
4855
|
+
return this.http.post(`${this.url}/signature-page-settings`, body)
|
|
4819
4856
|
.pipe(map(({ data }) => data));
|
|
4820
4857
|
}
|
|
4821
4858
|
/**
|
|
4822
|
-
*
|
|
4823
|
-
*
|
|
4824
|
-
* @param {
|
|
4825
|
-
* @returns {Observable<
|
|
4859
|
+
* Updates an existing signature page setting
|
|
4860
|
+
* @param {number} id - The unique identifier of the signature page setting to update
|
|
4861
|
+
* @param {SignaturePageSettingIn} body - The updated signature page setting data
|
|
4862
|
+
* @returns {Observable<SignaturePageSettingOut>} Observable containing the updated signature page setting
|
|
4826
4863
|
*/
|
|
4827
|
-
|
|
4828
|
-
return this.http.
|
|
4829
|
-
.pipe(map(({ data }) => data));
|
|
4830
|
-
}
|
|
4831
|
-
/**
|
|
4832
|
-
* Retrieves the shipment documents associated with a document configuration
|
|
4833
|
-
* @param {number} id - The unique identifier of the document configuration
|
|
4834
|
-
* @returns {Observable<ShipmentDocumentsOut>} observable containing the shipment documents
|
|
4835
|
-
* */
|
|
4836
|
-
getDocuments(id) {
|
|
4837
|
-
return this.http.get(`${this.url}/${id}/documents`)
|
|
4864
|
+
putSignaturePageSetting(id, body) {
|
|
4865
|
+
return this.http.put(`${this.url}/signature-page-settings/${id}`, body)
|
|
4838
4866
|
.pipe(map(({ data }) => data));
|
|
4839
4867
|
}
|
|
4840
4868
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|