@experteam-mx/ngx-services 20.8.5 → 20.8.6
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.
|
@@ -3149,7 +3149,7 @@ class ApiExternalOperationsService {
|
|
|
3149
3149
|
* Retrieves delivery confirmation details based on the provided OTP code.
|
|
3150
3150
|
*
|
|
3151
3151
|
* @param {string} otpCode - The OTP code used to search for delivery confirmation.
|
|
3152
|
-
* @return {Observable<
|
|
3152
|
+
* @return {Observable<DeliveryConfirmationSearchOut>} An observable containing the delivery confirmation data.
|
|
3153
3153
|
*/
|
|
3154
3154
|
getDeliveryConfirmation(otpCode) {
|
|
3155
3155
|
return this.http.get(`${this.url}/delivery-confirmation/search/${otpCode}`)
|
|
@@ -3190,6 +3190,38 @@ class ApiExternalOperationsService {
|
|
|
3190
3190
|
return this.http.put(`${this.url}/delivery-confirmation/confirmation/${otp}`, body)
|
|
3191
3191
|
.pipe(map$1(({ data }) => data));
|
|
3192
3192
|
}
|
|
3193
|
+
/**
|
|
3194
|
+
* Retrieves signature page confirmation information associated with an OTP code.
|
|
3195
|
+
*
|
|
3196
|
+
* @param {string} otpCode - OTP code used to search for the signature page confirmation.
|
|
3197
|
+
* @returns {Observable<SignaturePageConfirmationOut>} An observable containing the signature page confirmation details.
|
|
3198
|
+
*/
|
|
3199
|
+
getSignaturePageConfirmationSearch(otpCode) {
|
|
3200
|
+
return this.http.get(`${this.url}/signature-page-confirmation/search/${otpCode}`)
|
|
3201
|
+
.pipe(map$1(({ data }) => data));
|
|
3202
|
+
}
|
|
3203
|
+
/**
|
|
3204
|
+
* Generates a signature page confirmation request for a shipment.
|
|
3205
|
+
*
|
|
3206
|
+
* @param {ShipmentSignaturePageIn} payload - Shipment data required to generate the signature page confirmation.
|
|
3207
|
+
* @returns {Observable<SignaturePageConfirmationGenerateOut>} An observable containing the generated confirmation information.
|
|
3208
|
+
*/
|
|
3209
|
+
postSignaturePageConfirmationGenerate(payload) {
|
|
3210
|
+
return this.http.post(`${this.url}/signature-page-confirmation/generate`, payload)
|
|
3211
|
+
.pipe(map$1(({ data }) => data));
|
|
3212
|
+
}
|
|
3213
|
+
/**
|
|
3214
|
+
* Confirms a shipment signature page using an OTP code.
|
|
3215
|
+
*
|
|
3216
|
+
* @param {ShipmentSignaturePageConfirmationIn} input - Signature page confirmation data.
|
|
3217
|
+
* @param {string} input.otp - OTP code used to validate the confirmation.
|
|
3218
|
+
* @param {...Object} input.body - Additional confirmation information sent in the request body.
|
|
3219
|
+
* @returns {Observable<{}>} An observable that emits the API response data.
|
|
3220
|
+
*/
|
|
3221
|
+
putSignaturePageConfirmation({ otp, ...body }) {
|
|
3222
|
+
return this.http.put(`${this.url}/signature-page-confirmation/${otp}`, body)
|
|
3223
|
+
.pipe(map$1(({ data }) => data));
|
|
3224
|
+
}
|
|
3193
3225
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3194
3226
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, providedIn: 'root' });
|
|
3195
3227
|
}
|