@esolve/ng-esolve-connect 0.106.0 → 0.107.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.
- package/esm2022/index.mjs +3 -1
- package/esm2022/lib/account/esolve-account.service.mjs +16 -6
- package/esm2022/lib/albums/services/esolve-albums.service.mjs +3 -3
- package/esm2022/lib/assets/esolve-assets.service.mjs +3 -3
- package/esm2022/lib/auth/esolve-auth-interceptor.service.mjs +3 -3
- package/esm2022/lib/auth/esolve-auth.service.mjs +6 -4
- package/esm2022/lib/auth/esolve-otp.service.mjs +9 -5
- package/esm2022/lib/banners/esolve-banner.service.mjs +3 -3
- package/esm2022/lib/captcha/classes/esolve-captcha.model.mjs +11 -0
- package/esm2022/lib/captcha/classes/index.mjs +2 -0
- package/esm2022/lib/captcha/esolve-captcha.service.mjs +44 -0
- package/esm2022/lib/captcha/index.mjs +5 -0
- package/esm2022/lib/captcha/interfaces/esolve-captcha-options.interface.mjs +2 -0
- package/esm2022/lib/captcha/interfaces/esolve-captcha-record.interface.mjs +2 -0
- package/esm2022/lib/captcha/interfaces/index.mjs +3 -0
- package/esm2022/lib/captcha/types/esolve-captcha-action.type.mjs +2 -0
- package/esm2022/lib/captcha/types/index.mjs +2 -0
- package/esm2022/lib/cart/classes/esolve-cart-totals.model.mjs +5 -3
- package/esm2022/lib/cart/esolve-cart.service.mjs +3 -3
- package/esm2022/lib/category-tree/esolve-category-tree.service.mjs +3 -3
- package/esm2022/lib/competitions/services/esolve-competitions.service.mjs +3 -3
- package/esm2022/lib/core/esolve-config.service.mjs +3 -3
- package/esm2022/lib/coupons/esolve-coupons.service.mjs +6 -4
- package/esm2022/lib/deliveries/esolve-deliveries.service.mjs +3 -3
- package/esm2022/lib/device/esolve-device.service.mjs +3 -3
- package/esm2022/lib/enquiry/esolve-enquiry.service.mjs +3 -3
- package/esm2022/lib/geocoder/esolve-geocoder.service.mjs +3 -3
- package/esm2022/lib/images/directives/cdn-src.directive.mjs +3 -3
- package/esm2022/lib/locations/esolve-locations.service.mjs +3 -3
- package/esm2022/lib/manufacturers/esolve-manufacturers.service.mjs +3 -3
- package/esm2022/lib/menu/esolve-menu.service.mjs +3 -3
- package/esm2022/lib/news/esolve-news.service.mjs +3 -3
- package/esm2022/lib/ng-esolve-connect.module.mjs +4 -4
- package/esm2022/lib/payment/esolve-payment.service.mjs +3 -3
- package/esm2022/lib/ranges/esolve-ranges.service.mjs +3 -3
- package/esm2022/lib/reviews/services/esolve-reviews.service.mjs +3 -3
- package/esm2022/lib/seo/esolve-seo.service.mjs +3 -3
- package/esm2022/lib/session/esolve-session-metadata.service.mjs +3 -3
- package/esm2022/lib/session/esolve-session.service.mjs +3 -3
- package/esm2022/lib/shared/cookie/esolve-cookie.service.mjs +3 -3
- package/esm2022/lib/shared/errors/esolve-error-handler.service.mjs +3 -3
- package/esm2022/lib/shared/response/esolve-response-handler.service.mjs +3 -3
- package/esm2022/lib/shipping/esolve-shipping.service.mjs +3 -3
- package/esm2022/lib/specials/esolve-specials.service.mjs +3 -3
- package/esm2022/lib/stock/esolve-stock.service.mjs +3 -3
- package/esm2022/lib/suppliers/esolve-suppliers.service.mjs +3 -3
- package/esm2022/lib/tags/esolve-tags.service.mjs +3 -3
- package/esm2022/lib/topics/esolve-topic.service.mjs +3 -3
- package/esm2022/lib/transactions/classes/esolve-transaction.model.mjs +3 -1
- package/esm2022/lib/transactions/esolve-transactions.service.mjs +3 -3
- package/esm2022/lib/transactions/interfaces/esolve-transaction-record.interface.mjs +1 -1
- package/esm2022/lib/vouchers/esolve-vouchers.service.mjs +6 -4
- package/esm2022/lib/wallet/esolve-wallet.service.mjs +3 -3
- package/esm2022/lib/wishlist/esolve-wishlist.service.mjs +3 -3
- package/esm2022/media/lib/components/media-layout/esolve-media-layout.component.mjs +3 -3
- package/esm2022/media/lib/components/media-section/esolve-media-section.component.mjs +3 -3
- package/esm2022/media/lib/ng-esolve-connect-media.module.mjs +4 -4
- package/esm2022/media/lib/services/esolve-media-layout.service.mjs +3 -3
- package/esm2022/media/lib/services/esolve-media.service.mjs +3 -3
- package/esm2022/notifications/lib/services/esolve-notifications.service.mjs +3 -3
- package/esm2022/survey/lib/services/esolve-survey.service.mjs +3 -3
- package/fesm2022/esolve-ng-esolve-connect-media.mjs +16 -16
- package/fesm2022/esolve-ng-esolve-connect-notifications.mjs +3 -3
- package/fesm2022/esolve-ng-esolve-connect-survey.mjs +3 -3
- package/fesm2022/esolve-ng-esolve-connect.mjs +203 -130
- package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/account/esolve-account.service.d.ts +2 -1
- package/lib/auth/esolve-otp.service.d.ts +2 -1
- package/lib/captcha/classes/esolve-captcha.model.d.ts +6 -0
- package/lib/captcha/classes/index.d.ts +1 -0
- package/lib/captcha/esolve-captcha.service.d.ts +18 -0
- package/lib/captcha/index.d.ts +4 -0
- package/lib/captcha/interfaces/esolve-captcha-options.interface.d.ts +4 -0
- package/lib/captcha/interfaces/esolve-captcha-record.interface.d.ts +4 -0
- package/lib/captcha/interfaces/index.d.ts +2 -0
- package/lib/captcha/types/esolve-captcha-action.type.d.ts +1 -0
- package/lib/captcha/types/index.d.ts +1 -0
- package/lib/transactions/classes/esolve-transaction.model.d.ts +2 -0
- package/lib/transactions/interfaces/esolve-transaction-record.interface.d.ts +2 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { EsolveChangePasswordResult, EsolveResetPasswordResult } from './passwor
|
|
|
7
7
|
import { EsolveErpDocumentRequest, EsolveUserAccount, EsolveUserAccountData, EsolveUserAccountResult, EsolveUserClientAccountBalances, EsolveErpDocumentsRequestResult, EsolveUserClientAccount } from './user-account';
|
|
8
8
|
import { EsolveAccountConfirmationResult } from './confirmation';
|
|
9
9
|
import { EsolveLocationUpdateResult } from './location';
|
|
10
|
+
import { EsolveCaptchaOptions } from '../captcha';
|
|
10
11
|
import { EsolveSessionShippingUpdateResult } from './esolve-session-shipping-update-result.model';
|
|
11
12
|
import { EsolveSessionClientUpdateResult } from './esolve-session-client-update-result.model';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
@@ -38,7 +39,7 @@ export declare class EsolveAccountService {
|
|
|
38
39
|
* @returns An `Observable` that contains the result of the account confirmation request.
|
|
39
40
|
*/
|
|
40
41
|
accountConfirmationRequest(key: string): Observable<EsolveAccountConfirmationResult>;
|
|
41
|
-
sendForgotPasswordRequest(email: string): Observable<boolean>;
|
|
42
|
+
sendForgotPasswordRequest(email: string, captcha_options?: EsolveCaptchaOptions): Observable<boolean>;
|
|
42
43
|
resetPassword(reset_key: string, password: string, confirm_password: string, auto_login?: boolean): Observable<EsolveResetPasswordResult>;
|
|
43
44
|
updateLocation(location_id: number): Observable<EsolveLocationUpdateResult>;
|
|
44
45
|
updateLocationOnErp(erp: string): Observable<EsolveLocationUpdateResult>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
+
import { EsolveCaptchaOptions } from '../captcha';
|
|
2
3
|
import { EsolveOtpAction } from './types';
|
|
3
4
|
import { EsolveOtp, EsolveOtpValidation } from './models';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
@@ -6,7 +7,7 @@ export declare class EsolveOtpService {
|
|
|
6
7
|
private readonly config;
|
|
7
8
|
private readonly http;
|
|
8
9
|
private readonly auth;
|
|
9
|
-
getOtp(recipient_number?: string): Observable<EsolveOtp>;
|
|
10
|
+
getOtp(recipient_number?: string, captcha_options?: EsolveCaptchaOptions): Observable<EsolveOtp>;
|
|
10
11
|
getValidateOtp(otp_key: string, otp_code: string, otp_action?: EsolveOtpAction, email?: string, cellnumber?: string): Observable<EsolveOtpValidation>;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsolveOtpService, never>;
|
|
12
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<EsolveOtpService>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esolve-captcha.model';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { EsolveCaptcha } from './classes';
|
|
3
|
+
import { EsolveCaptchaAction } from './types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class EsolveCaptchaService {
|
|
6
|
+
private readonly config;
|
|
7
|
+
private readonly http;
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve a captcha for a specified action
|
|
10
|
+
*
|
|
11
|
+
* @param action - action for which the captcha is being requested.
|
|
12
|
+
*
|
|
13
|
+
* @returns An Observable of type EsolveCaptcha.
|
|
14
|
+
*/
|
|
15
|
+
getCaptcha(action: EsolveCaptchaAction): Observable<EsolveCaptcha>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EsolveCaptchaService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EsolveCaptchaService>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EsolveCaptchaAction = 'otp' | 'forgot-password' | 'enquiry';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esolve-captcha-action.type';
|
|
@@ -20,6 +20,8 @@ export declare class EsolveTransaction {
|
|
|
20
20
|
external_order_number: string;
|
|
21
21
|
external_invoice_number: string;
|
|
22
22
|
purchase_order_number: string;
|
|
23
|
+
external_order_total: number;
|
|
24
|
+
waybill_number: string;
|
|
23
25
|
date: Date;
|
|
24
26
|
expected_date: Date;
|
|
25
27
|
client?: EsolveTransactionClient;
|
|
@@ -17,10 +17,12 @@ export interface EsolveTransactionRecord {
|
|
|
17
17
|
purchase_order_number: string;
|
|
18
18
|
client: EsolveTransactionClientRecord | null;
|
|
19
19
|
user: EsolveTransactionUserRecord | null;
|
|
20
|
+
waybill_number?: string;
|
|
20
21
|
erp_identifier: string;
|
|
21
22
|
location_details: EsolveTransactionLocationRecord | null;
|
|
22
23
|
external_order_number: string;
|
|
23
24
|
external_invoice_number: string;
|
|
25
|
+
external_order_total?: number;
|
|
24
26
|
txdate: string;
|
|
25
27
|
txdate_timestamp: number;
|
|
26
28
|
expected_date: string;
|