@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.
Files changed (81) hide show
  1. package/esm2022/index.mjs +3 -1
  2. package/esm2022/lib/account/esolve-account.service.mjs +16 -6
  3. package/esm2022/lib/albums/services/esolve-albums.service.mjs +3 -3
  4. package/esm2022/lib/assets/esolve-assets.service.mjs +3 -3
  5. package/esm2022/lib/auth/esolve-auth-interceptor.service.mjs +3 -3
  6. package/esm2022/lib/auth/esolve-auth.service.mjs +6 -4
  7. package/esm2022/lib/auth/esolve-otp.service.mjs +9 -5
  8. package/esm2022/lib/banners/esolve-banner.service.mjs +3 -3
  9. package/esm2022/lib/captcha/classes/esolve-captcha.model.mjs +11 -0
  10. package/esm2022/lib/captcha/classes/index.mjs +2 -0
  11. package/esm2022/lib/captcha/esolve-captcha.service.mjs +44 -0
  12. package/esm2022/lib/captcha/index.mjs +5 -0
  13. package/esm2022/lib/captcha/interfaces/esolve-captcha-options.interface.mjs +2 -0
  14. package/esm2022/lib/captcha/interfaces/esolve-captcha-record.interface.mjs +2 -0
  15. package/esm2022/lib/captcha/interfaces/index.mjs +3 -0
  16. package/esm2022/lib/captcha/types/esolve-captcha-action.type.mjs +2 -0
  17. package/esm2022/lib/captcha/types/index.mjs +2 -0
  18. package/esm2022/lib/cart/classes/esolve-cart-totals.model.mjs +5 -3
  19. package/esm2022/lib/cart/esolve-cart.service.mjs +3 -3
  20. package/esm2022/lib/category-tree/esolve-category-tree.service.mjs +3 -3
  21. package/esm2022/lib/competitions/services/esolve-competitions.service.mjs +3 -3
  22. package/esm2022/lib/core/esolve-config.service.mjs +3 -3
  23. package/esm2022/lib/coupons/esolve-coupons.service.mjs +6 -4
  24. package/esm2022/lib/deliveries/esolve-deliveries.service.mjs +3 -3
  25. package/esm2022/lib/device/esolve-device.service.mjs +3 -3
  26. package/esm2022/lib/enquiry/esolve-enquiry.service.mjs +3 -3
  27. package/esm2022/lib/geocoder/esolve-geocoder.service.mjs +3 -3
  28. package/esm2022/lib/images/directives/cdn-src.directive.mjs +3 -3
  29. package/esm2022/lib/locations/esolve-locations.service.mjs +3 -3
  30. package/esm2022/lib/manufacturers/esolve-manufacturers.service.mjs +3 -3
  31. package/esm2022/lib/menu/esolve-menu.service.mjs +3 -3
  32. package/esm2022/lib/news/esolve-news.service.mjs +3 -3
  33. package/esm2022/lib/ng-esolve-connect.module.mjs +4 -4
  34. package/esm2022/lib/payment/esolve-payment.service.mjs +3 -3
  35. package/esm2022/lib/ranges/esolve-ranges.service.mjs +3 -3
  36. package/esm2022/lib/reviews/services/esolve-reviews.service.mjs +3 -3
  37. package/esm2022/lib/seo/esolve-seo.service.mjs +3 -3
  38. package/esm2022/lib/session/esolve-session-metadata.service.mjs +3 -3
  39. package/esm2022/lib/session/esolve-session.service.mjs +3 -3
  40. package/esm2022/lib/shared/cookie/esolve-cookie.service.mjs +3 -3
  41. package/esm2022/lib/shared/errors/esolve-error-handler.service.mjs +3 -3
  42. package/esm2022/lib/shared/response/esolve-response-handler.service.mjs +3 -3
  43. package/esm2022/lib/shipping/esolve-shipping.service.mjs +3 -3
  44. package/esm2022/lib/specials/esolve-specials.service.mjs +3 -3
  45. package/esm2022/lib/stock/esolve-stock.service.mjs +3 -3
  46. package/esm2022/lib/suppliers/esolve-suppliers.service.mjs +3 -3
  47. package/esm2022/lib/tags/esolve-tags.service.mjs +3 -3
  48. package/esm2022/lib/topics/esolve-topic.service.mjs +3 -3
  49. package/esm2022/lib/transactions/classes/esolve-transaction.model.mjs +3 -1
  50. package/esm2022/lib/transactions/esolve-transactions.service.mjs +3 -3
  51. package/esm2022/lib/transactions/interfaces/esolve-transaction-record.interface.mjs +1 -1
  52. package/esm2022/lib/vouchers/esolve-vouchers.service.mjs +6 -4
  53. package/esm2022/lib/wallet/esolve-wallet.service.mjs +3 -3
  54. package/esm2022/lib/wishlist/esolve-wishlist.service.mjs +3 -3
  55. package/esm2022/media/lib/components/media-layout/esolve-media-layout.component.mjs +3 -3
  56. package/esm2022/media/lib/components/media-section/esolve-media-section.component.mjs +3 -3
  57. package/esm2022/media/lib/ng-esolve-connect-media.module.mjs +4 -4
  58. package/esm2022/media/lib/services/esolve-media-layout.service.mjs +3 -3
  59. package/esm2022/media/lib/services/esolve-media.service.mjs +3 -3
  60. package/esm2022/notifications/lib/services/esolve-notifications.service.mjs +3 -3
  61. package/esm2022/survey/lib/services/esolve-survey.service.mjs +3 -3
  62. package/fesm2022/esolve-ng-esolve-connect-media.mjs +16 -16
  63. package/fesm2022/esolve-ng-esolve-connect-notifications.mjs +3 -3
  64. package/fesm2022/esolve-ng-esolve-connect-survey.mjs +3 -3
  65. package/fesm2022/esolve-ng-esolve-connect.mjs +203 -130
  66. package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
  67. package/index.d.ts +1 -0
  68. package/lib/account/esolve-account.service.d.ts +2 -1
  69. package/lib/auth/esolve-otp.service.d.ts +2 -1
  70. package/lib/captcha/classes/esolve-captcha.model.d.ts +6 -0
  71. package/lib/captcha/classes/index.d.ts +1 -0
  72. package/lib/captcha/esolve-captcha.service.d.ts +18 -0
  73. package/lib/captcha/index.d.ts +4 -0
  74. package/lib/captcha/interfaces/esolve-captcha-options.interface.d.ts +4 -0
  75. package/lib/captcha/interfaces/esolve-captcha-record.interface.d.ts +4 -0
  76. package/lib/captcha/interfaces/index.d.ts +2 -0
  77. package/lib/captcha/types/esolve-captcha-action.type.d.ts +1 -0
  78. package/lib/captcha/types/index.d.ts +1 -0
  79. package/lib/transactions/classes/esolve-transaction.model.d.ts +2 -0
  80. package/lib/transactions/interfaces/esolve-transaction-record.interface.d.ts +2 -0
  81. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -34,3 +34,4 @@ export * from './lib/deliveries';
34
34
  export * from './lib/competitions';
35
35
  export * from './lib/reviews';
36
36
  export * from './lib/albums';
37
+ export * from './lib/captcha';
@@ -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,6 @@
1
+ import { EsolveCaptchaRecord } from '../interfaces';
2
+ export declare class EsolveCaptcha {
3
+ key: string;
4
+ image_uri: string;
5
+ constructor(record?: Partial<EsolveCaptchaRecord>);
6
+ }
@@ -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,4 @@
1
+ export * from './classes';
2
+ export * from './interfaces';
3
+ export * from './types';
4
+ export * from './esolve-captcha.service';
@@ -0,0 +1,4 @@
1
+ export interface EsolveCaptchaOptions {
2
+ captcha_key: string;
3
+ captcha_code: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface EsolveCaptchaRecord {
2
+ captcha_key: string;
3
+ image_uri: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ export * from './esolve-captcha-options.interface';
2
+ export * from './esolve-captcha-record.interface';
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esolve/ng-esolve-connect",
3
- "version": "0.106.0",
3
+ "version": "0.107.1",
4
4
  "homepage": "https://www.esolve.co.za/",
5
5
  "description": "An Angular library that speaks to an eSolve instance's API",
6
6
  "peerDependencies": {