@experteam-mx/ngx-services 20.7.0-dev1.6 → 20.7.0-dev1.8

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.
@@ -3089,7 +3089,7 @@ class ApiExternalOperationsService {
3089
3089
  * Retrieves delivery confirmation details based on the provided OTP code.
3090
3090
  *
3091
3091
  * @param {string} otpCode - The OTP code used to search for delivery confirmation.
3092
- * @return {Observable<DeliveryConfirmationData>} An observable containing the delivery confirmation data.
3092
+ * @return {Observable<DeliveryConfirmationSearchOut>} An observable containing the delivery confirmation data.
3093
3093
  */
3094
3094
  getDeliveryConfirmation(otpCode) {
3095
3095
  return this.http.get(`${this.url}/delivery-confirmation/search/${otpCode}`)
@@ -3130,6 +3130,38 @@ class ApiExternalOperationsService {
3130
3130
  return this.http.put(`${this.url}/delivery-confirmation/confirmation/${otp}`, body)
3131
3131
  .pipe(map$1(({ data }) => data));
3132
3132
  }
3133
+ /**
3134
+ * Retrieves signature page confirmation information associated with an OTP code.
3135
+ *
3136
+ * @param {string} otpCode - OTP code used to search for the signature page confirmation.
3137
+ * @returns {Observable<SignaturePageConfirmationOut>} An observable containing the signature page confirmation details.
3138
+ */
3139
+ getSignaturePageConfirmationSearch(otpCode) {
3140
+ return this.http.get(`${this.url}/signature-page-confirmation/search/${otpCode}`)
3141
+ .pipe(map$1(({ data }) => data));
3142
+ }
3143
+ /**
3144
+ * Generates a signature page confirmation request for a shipment.
3145
+ *
3146
+ * @param {ShipmentSignaturePageIn} payload - Shipment data required to generate the signature page confirmation.
3147
+ * @returns {Observable<SignaturePageConfirmationGenerateOut>} An observable containing the generated confirmation information.
3148
+ */
3149
+ postSignaturePageConfirmationGenerate(payload) {
3150
+ return this.http.post(`${this.url}/signature-page-confirmation/generate`, payload)
3151
+ .pipe(map$1(({ data }) => data));
3152
+ }
3153
+ /**
3154
+ * Confirms a shipment signature page using an OTP code.
3155
+ *
3156
+ * @param {ShipmentSignaturePageConfirmationIn} input - Signature page confirmation data.
3157
+ * @param {string} input.otp - OTP code used to validate the confirmation.
3158
+ * @param {...Object} input.body - Additional confirmation information sent in the request body.
3159
+ * @returns {Observable<{}>} An observable that emits the API response data.
3160
+ */
3161
+ putSignaturePageConfirmation({ otp, ...body }) {
3162
+ return this.http.put(`${this.url}/signature-page-confirmation/${otp}`, body)
3163
+ .pipe(map$1(({ data }) => data));
3164
+ }
3133
3165
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3134
3166
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, providedIn: 'root' });
3135
3167
  }