@esolve/ng-esolve-connect 0.9.1 → 0.10.3

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 (47) hide show
  1. package/esm2020/lib/account/esolve-account.service.mjs +105 -40
  2. package/esm2020/lib/account/esolve-transaction-list.mjs +4 -0
  3. package/esm2020/lib/account/esolve-transaction-options.mjs +2 -0
  4. package/esm2020/lib/account/esolve-transaction-record.mjs +2 -0
  5. package/esm2020/lib/account/esolve-transaction.mjs +145 -0
  6. package/esm2020/lib/auth/esolve-auth-interceptor.service.mjs +1 -1
  7. package/esm2020/lib/auth/esolve-auth.service.mjs +25 -25
  8. package/esm2020/lib/banners/esolve-banner.service.mjs +26 -26
  9. package/esm2020/lib/cart/esolve-cart.service.mjs +25 -25
  10. package/esm2020/lib/category-tree/esolve-category-tree.service.mjs +45 -45
  11. package/esm2020/lib/locations/esolve-locations.service.mjs +15 -15
  12. package/esm2020/lib/locations/esolve-stock-location-record.mjs +1 -1
  13. package/esm2020/lib/locations/esolve-stock-location.mjs +16 -16
  14. package/esm2020/lib/media/esolve-media.service.mjs +25 -25
  15. package/esm2020/lib/menu/esolve-menu.service.mjs +1 -1
  16. package/esm2020/lib/payment/esolve-payment-method-record.mjs +1 -1
  17. package/esm2020/lib/payment/esolve-payment-method.mjs +1 -5
  18. package/esm2020/lib/session/esolve-session.service.mjs +10 -7
  19. package/esm2020/lib/shared/error-handler/esolve-error-handler.service.mjs +5 -3
  20. package/esm2020/lib/shared/esolve-list.mjs +9 -0
  21. package/esm2020/lib/topics/esolve-topic.service.mjs +11 -11
  22. package/esm2020/public-api.mjs +6 -2
  23. package/fesm2015/esolve-ng-esolve-connect.mjs +544 -328
  24. package/fesm2015/esolve-ng-esolve-connect.mjs.map +1 -1
  25. package/fesm2020/esolve-ng-esolve-connect.mjs +546 -327
  26. package/fesm2020/esolve-ng-esolve-connect.mjs.map +1 -1
  27. package/lib/account/esolve-account.service.d.ts +11 -4
  28. package/lib/account/esolve-transaction-list.d.ts +4 -0
  29. package/lib/account/esolve-transaction-options.d.ts +8 -0
  30. package/lib/account/esolve-transaction-record.d.ts +98 -0
  31. package/lib/account/esolve-transaction.d.ts +132 -0
  32. package/lib/auth/esolve-auth.service.d.ts +1 -1
  33. package/lib/banners/esolve-banner.service.d.ts +6 -6
  34. package/lib/cart/esolve-cart.service.d.ts +12 -12
  35. package/lib/category-tree/esolve-category-tree.service.d.ts +7 -7
  36. package/lib/locations/esolve-locations.service.d.ts +5 -5
  37. package/lib/locations/esolve-stock-location-record.d.ts +1 -1
  38. package/lib/locations/esolve-stock-location.d.ts +7 -8
  39. package/lib/media/esolve-media.service.d.ts +7 -7
  40. package/lib/payment/esolve-payment-method-record.d.ts +0 -4
  41. package/lib/payment/esolve-payment-method.d.ts +0 -4
  42. package/lib/session/esolve-session.service.d.ts +3 -1
  43. package/lib/shared/error-handler/esolve-error-handler.service.d.ts +1 -0
  44. package/lib/shared/esolve-list.d.ts +7 -0
  45. package/lib/topics/esolve-topic.service.d.ts +1 -1
  46. package/package.json +1 -1
  47. package/public-api.d.ts +5 -1
@@ -4,17 +4,20 @@ import { EsolveConnectConfig } from '../esolve-connect.config';
4
4
  import { EsolveResult } from '../shared/esolve-result';
5
5
  import { EsolveErrorHandlerService } from '../shared/error-handler/esolve-error-handler.service';
6
6
  import { EsolveResponseHandlerService } from '../shared/response-handler/esolve-response-handler.service';
7
- import { EsolveAddress } from './esolve-address';
8
7
  import { EsolveSessionService } from '../session/esolve-session.service';
8
+ import { EsolveAddress } from './esolve-address';
9
9
  import { EsolveAddressResult } from './esolve-address-result';
10
10
  import { EsolveAddressPostData } from './esolve-address-set-data';
11
11
  import { EsolveRegistrationData } from './esolve-registration-data';
12
12
  import { EsolveRegistrationResult } from './esolve-registration-result';
13
- import { EsolveUserAccount } from './esolve-user-account';
14
13
  import { EsolveUserAccountData } from './esolve-user-account-data';
15
14
  import { EsolveUserAccountResult } from './esolve-user-account-result';
16
15
  import { EsolveChangePasswordResult } from './esolve-change-password-result';
17
16
  import { EsolveResetPasswordResult } from './esolve-reset-password-result';
17
+ import { EsolveTransaction } from './esolve-transaction';
18
+ import { EsolveTransactionOptions } from './esolve-transaction-options';
19
+ import { EsolveTransactionList } from './esolve-transaction-list';
20
+ import { EsolveUserAccount } from './esolve-user-account';
18
21
  import * as i0 from "@angular/core";
19
22
  export declare class EsolveAccountService {
20
23
  private config;
@@ -26,8 +29,6 @@ export declare class EsolveAccountService {
26
29
  get user_id(): number;
27
30
  set user_id(value: number);
28
31
  constructor(config: EsolveConnectConfig, http: HttpClient, sessionService: EsolveSessionService, errorHandler: EsolveErrorHandlerService, responseHandler: EsolveResponseHandlerService);
29
- private processUserAccount;
30
- private processUserAddress;
31
32
  updateUserAccount(user_account_data: EsolveUserAccountData): Observable<EsolveUserAccountResult>;
32
33
  getUserAccount(): Observable<EsolveUserAccount>;
33
34
  setAddress(address_post_data: EsolveAddressPostData): Observable<EsolveAddressResult>;
@@ -37,6 +38,12 @@ export declare class EsolveAccountService {
37
38
  changePassword(password: string, confirm_password: string): Observable<EsolveChangePasswordResult>;
38
39
  sendForgotPasswordRequest(email: string): Observable<boolean>;
39
40
  resetPassword(reset_key: string, password: string, confirm_password: string, auto_login?: boolean): Observable<EsolveResetPasswordResult>;
41
+ getTransactions(options?: EsolveTransactionOptions): Observable<EsolveTransactionList>;
42
+ getTransaction(id: number): Observable<EsolveTransaction>;
43
+ private processUserAccount;
44
+ private processUserAddress;
45
+ private processTransactions;
46
+ private loginGuard;
40
47
  static ɵfac: i0.ɵɵFactoryDeclaration<EsolveAccountService, never>;
41
48
  static ɵprov: i0.ɵɵInjectableDeclaration<EsolveAccountService>;
42
49
  }
@@ -0,0 +1,4 @@
1
+ import { EsolveList } from '../shared/esolve-list';
2
+ import { EsolveTransaction } from './esolve-transaction';
3
+ export declare class EsolveTransactionList extends EsolveList<EsolveTransaction> {
4
+ }
@@ -0,0 +1,8 @@
1
+ import { EsolveTransactionType } from './esolve-transaction';
2
+ export interface EsolveTransactionOptions {
3
+ type?: EsolveTransactionType;
4
+ page?: number;
5
+ rows?: number;
6
+ from_date?: string;
7
+ to_date?: string;
8
+ }
@@ -0,0 +1,98 @@
1
+ import { EsolveStockLocationRecord } from '../locations/esolve-stock-location-record';
2
+ import { EsolveAddressType } from './esolve-address-record';
3
+ import { EsolveTransactionType } from './esolve-transaction';
4
+ export interface EsolveTransactionItemRecord {
5
+ code: string;
6
+ name: string;
7
+ qty: number;
8
+ discount: number;
9
+ vat_rate: number;
10
+ price: number;
11
+ price_exclusive: number;
12
+ price_exclusive_after_discount: number;
13
+ price_inclusive: number;
14
+ price_inclusive_after_discount: number;
15
+ line_total_exclusive: number;
16
+ line_total_exclusive_after_discount: number;
17
+ line_total_inclusive: number;
18
+ line_total_inclusive_after_discount: number;
19
+ }
20
+ export interface EsolveTransactionClientRecord {
21
+ id: number;
22
+ company_name: string;
23
+ account: string;
24
+ branch_code: string;
25
+ firstname: string;
26
+ surname: string;
27
+ email: string;
28
+ contact_number: string;
29
+ }
30
+ export interface EsolveTransactionUserRecord {
31
+ id: number;
32
+ email: string;
33
+ firstname: string;
34
+ surname: string;
35
+ telnumber: string;
36
+ cellnumber: string;
37
+ }
38
+ export interface EsolveTransactionPaymentMethodRecord {
39
+ id: number;
40
+ paymethod_name: string;
41
+ description: string;
42
+ integration_type: string;
43
+ service_provider: string;
44
+ }
45
+ export interface EsolveTransactionLocationRecord extends EsolveStockLocationRecord {
46
+ }
47
+ export interface EsolveTransactionShippingMethodRecord {
48
+ id: number;
49
+ carrier_name: string;
50
+ delivery_category: string;
51
+ location: string;
52
+ description: string;
53
+ pricing: string;
54
+ client_to_collect: boolean;
55
+ }
56
+ export interface EsolveTransactionRecord {
57
+ id: number;
58
+ transaction_type: EsolveTransactionType;
59
+ loyaltynumber: string;
60
+ status: string;
61
+ reps_id: number;
62
+ client: EsolveTransactionClientRecord | null;
63
+ user: EsolveTransactionUserRecord | null;
64
+ erp_identifier: string;
65
+ location_details: EsolveTransactionLocationRecord | null;
66
+ external_order_number: string;
67
+ external_invoice_number: string;
68
+ txdate: string;
69
+ txdate_timestamp: number;
70
+ expected_date: string;
71
+ expected_date_timestamp: number;
72
+ invoice_amount: number;
73
+ vat: number;
74
+ discount: number;
75
+ total: number;
76
+ shipping_total: number;
77
+ insurance_total: number;
78
+ payment: number;
79
+ payment_method: string;
80
+ payment_method_details: EsolveTransactionPaymentMethodRecord | null;
81
+ gateway_transaction_id: string;
82
+ payment_reference: string;
83
+ payment_description: string;
84
+ shipping_method: string;
85
+ shipping_method_details: EsolveTransactionShippingMethodRecord | null;
86
+ recipient: string;
87
+ address_type: EsolveAddressType;
88
+ address_description: string;
89
+ pobox: string;
90
+ street_number: string;
91
+ street: string;
92
+ suburb: string;
93
+ city: string;
94
+ province: string;
95
+ country: string;
96
+ postal_code: string;
97
+ transaction_items: EsolveTransactionItemRecord[];
98
+ }
@@ -0,0 +1,132 @@
1
+ import { EsolveStockLocation } from '../locations/esolve-stock-location';
2
+ import { EsolveAddressType } from './esolve-address-record';
3
+ import { EsolveTransactionRecord } from './esolve-transaction-record';
4
+ export declare type EsolveTransactionType = 'order' | 'quote';
5
+ export declare class EsolveTransaction {
6
+ id: number;
7
+ type: EsolveTransactionType;
8
+ status: string;
9
+ loyalty_number: string;
10
+ external_order_number: string;
11
+ external_invoice_number: string;
12
+ date: Date;
13
+ expected_date: Date;
14
+ client?: EsolveTransactionClient;
15
+ user?: EsolveTransactionUser;
16
+ location?: EsolveTransactionLocation;
17
+ invoice_amount: number;
18
+ vat: number;
19
+ discount: number;
20
+ total: number;
21
+ shipping_total: number;
22
+ insurance_total: number;
23
+ payment_method?: EsolveTransactionPaymentMethod;
24
+ payment: number;
25
+ gateway_transaction_id: string;
26
+ payment_reference: string;
27
+ payment_description: string;
28
+ shipping_method?: EsolveTransactionShippingMethod;
29
+ address: EsolveTransactionAddress;
30
+ items: EsolveTransactionItem[];
31
+ constructor(record: EsolveTransactionRecord);
32
+ private parseTransactionItems;
33
+ }
34
+ export declare class EsolveTransactionClient {
35
+ id: number;
36
+ account: string;
37
+ company_name: string;
38
+ branch_code: string;
39
+ email: string;
40
+ first_name: string;
41
+ last_name: string;
42
+ contact_number: string;
43
+ constructor(id: number, account: string, company_name: string, branch_code: string, email: string, first_name: string, last_name: string, contact_number: string);
44
+ }
45
+ export declare class EsolveTransactionUser {
46
+ id: number;
47
+ email: string;
48
+ first_name: string;
49
+ last_name: string;
50
+ tel_number: string;
51
+ cell_number: string;
52
+ constructor(id: number, email: string, first_name: string, last_name: string, tel_number: string, cell_number: string);
53
+ }
54
+ export declare class EsolveTransactionLocation extends EsolveStockLocation {
55
+ }
56
+ export declare class EsolveTransactionPaymentMethod {
57
+ id: number;
58
+ name: string;
59
+ description: string;
60
+ integration_type: string;
61
+ service_provider: string;
62
+ constructor(id: number, name: string, description: string, integration_type: string, service_provider: string);
63
+ }
64
+ export declare class EsolveTransactionShippingMethod {
65
+ id: number;
66
+ name: string;
67
+ delivery_category: string;
68
+ location: string;
69
+ description: string;
70
+ pricing: string;
71
+ client_to_collect: boolean;
72
+ constructor(id: number, name: string, delivery_category: string, location: string, description: string, pricing: string, client_to_collect: boolean);
73
+ }
74
+ export declare class EsolveTransactionAddress {
75
+ recipient: string;
76
+ address_type: EsolveAddressType;
77
+ address_description: string;
78
+ street_number: string;
79
+ street: string;
80
+ suburb: string;
81
+ city: string;
82
+ province: string;
83
+ country: string;
84
+ postal_code: string;
85
+ pobox: string;
86
+ constructor(recipient: string, address_type: EsolveAddressType, address_description: string, street_number: string, street: string, suburb: string, city: string, province: string, country: string, postal_code: string, pobox: string);
87
+ }
88
+ export declare class EsolveTransactionItem {
89
+ code: string;
90
+ name: string;
91
+ qty: number;
92
+ discount: number;
93
+ vat_rate: number;
94
+ price: EsolveTransactionItemPrice;
95
+ line_total: EsolveTransactionItemPrice;
96
+ constructor(code: string, name: string, qty: number, discount: number, vat_rate: number, price: EsolveTransactionItemPrice, line_total: EsolveTransactionItemPrice);
97
+ }
98
+ export declare class EsolveTransactionItemPrice {
99
+ /**
100
+ * Price without tax
101
+ */
102
+ price: number;
103
+ /**
104
+ * Price with tax
105
+ */
106
+ price_with_tax: number;
107
+ /**
108
+ * Price without tax and with discounts applied if appilcable
109
+ */
110
+ price_discounted: number;
111
+ /**
112
+ * Price with tax and with discounts applied if appilcable
113
+ */
114
+ price_with_tax_discounted: number;
115
+ constructor(
116
+ /**
117
+ * Price without tax
118
+ */
119
+ price: number,
120
+ /**
121
+ * Price with tax
122
+ */
123
+ price_with_tax: number,
124
+ /**
125
+ * Price without tax and with discounts applied if appilcable
126
+ */
127
+ price_discounted: number,
128
+ /**
129
+ * Price with tax and with discounts applied if appilcable
130
+ */
131
+ price_with_tax_discounted: number);
132
+ }
@@ -24,11 +24,11 @@ export declare class EsolveAuthService {
24
24
  private errorHandler;
25
25
  private cookieService;
26
26
  constructor(config: EsolveConnectConfig, http: HttpClient, session: EsolveSessionService, errorHandler: EsolveErrorHandlerService, cookieService: CookieService);
27
- private checkAccessToken;
28
27
  getAccessToken(email: string, password: string, anonymous?: boolean): Observable<EsolveAuthResponseData>;
29
28
  autoLogin(): void;
30
29
  login(email: string, password: string): Observable<number>;
31
30
  logout(): Promise<EsolveAuthResponseData>;
31
+ private checkAccessToken;
32
32
  private handleExpiration;
33
33
  private handleAuthentication;
34
34
  private handleError;
@@ -7,6 +7,12 @@ export declare class EsolveBannerService {
7
7
  private config;
8
8
  private http;
9
9
  constructor(config: EsolveConnectConfig, http: HttpClient);
10
+ /**
11
+ * Retrieves banners records from eSolve instance
12
+ *
13
+ * @returns An observable of eSolve banners.
14
+ */
15
+ getBanners(identifier?: string, banner_display_container?: string, enable_date_filter?: boolean): Observable<EsolveBanner[]>;
10
16
  private processBannerImageHotspots;
11
17
  private processBannerImages;
12
18
  /**
@@ -15,12 +21,6 @@ export declare class EsolveBannerService {
15
21
  * @returns List of banners
16
22
  */
17
23
  private processBanners;
18
- /**
19
- * Retrieves banners records from eSolve instance
20
- *
21
- * @returns An observable of eSolve banners.
22
- */
23
- getBanners(identifier?: string, banner_display_container?: string, enable_date_filter?: boolean): Observable<EsolveBanner[]>;
24
24
  static ɵfac: i0.ɵɵFactoryDeclaration<EsolveBannerService, never>;
25
25
  static ɵprov: i0.ɵɵInjectableDeclaration<EsolveBannerService>;
26
26
  }
@@ -15,18 +15,6 @@ export declare class EsolveCartService {
15
15
  private responseHandler;
16
16
  private _cached_tracking;
17
17
  constructor(config: EsolveConnectConfig, http: HttpClient, errorHandler: EsolveErrorHandlerService, responseHandler: EsolveResponseHandlerService);
18
- /**
19
- * Processes the eSolve tree records.
20
- * @param cart_item_records Records to process
21
- * @returns An array of processed cart items
22
- */
23
- private processCart;
24
- /**
25
- * Processes the eSolve cart totals
26
- * @param record Data to process
27
- * @returns Processed cart totals
28
- */
29
- private processCartTotals;
30
18
  /**
31
19
  * Retrieves the current cart
32
20
  * @returns An `Observable` with an array of cart items
@@ -60,6 +48,18 @@ export declare class EsolveCartService {
60
48
  * @returns An `Observable` with the transaction ID
61
49
  */
62
50
  checkout(type: 'order' | 'quote', addresses_id: number, shipping_id: number, payment_method_id?: number, location_id?: number, comments?: string): Observable<EsolveCheckoutResult>;
51
+ /**
52
+ * Processes the eSolve tree records.
53
+ * @param cart_item_records Records to process
54
+ * @returns An array of processed cart items
55
+ */
56
+ private processCart;
57
+ /**
58
+ * Processes the eSolve cart totals
59
+ * @param record Data to process
60
+ * @returns Processed cart totals
61
+ */
62
+ private processCartTotals;
63
63
  static ɵfac: i0.ɵɵFactoryDeclaration<EsolveCartService, never>;
64
64
  static ɵprov: i0.ɵɵInjectableDeclaration<EsolveCartService>;
65
65
  }
@@ -8,13 +8,6 @@ export declare class EsolveCategoryTreeService {
8
8
  private config;
9
9
  private http;
10
10
  constructor(config: EsolveConnectConfig, http: HttpClient);
11
- /**
12
- * Processes the eSolve tree records and converts them into the correct format.
13
- * @param tree_records Records to process
14
- */
15
- private processTree;
16
- private processTreeItem;
17
- private processID;
18
11
  /**
19
12
  * Retrieves the category tree from eSolve instance and coverts it to the correct format.
20
13
  */
@@ -24,6 +17,13 @@ export declare class EsolveCategoryTreeService {
24
17
  * @param options Filter options
25
18
  */
26
19
  getCategoryTreeItem(options: EsolveCategoryTreeItemOptions): Observable<EsolveCategoryTreeItem>;
20
+ /**
21
+ * Processes the eSolve tree records and converts them into the correct format.
22
+ * @param tree_records Records to process
23
+ */
24
+ private processTree;
25
+ private processTreeItem;
26
+ private processID;
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<EsolveCategoryTreeService, never>;
28
28
  static ɵprov: i0.ɵɵInjectableDeclaration<EsolveCategoryTreeService>;
29
29
  }
@@ -7,17 +7,17 @@ export declare class EsolveLocationsService {
7
7
  private config;
8
8
  private http;
9
9
  constructor(config: EsolveConnectConfig, http: HttpClient);
10
+ /**
11
+ * Retrieves a list of stock locations
12
+ * @returns An `Observable` with an array of stock locations
13
+ */
14
+ getStockLocations(): Observable<EsolveStockLocation[]>;
10
15
  /**
11
16
  * Processes the eSolve stock location records.
12
17
  * @param records Records to process
13
18
  * @returns An array of processed stock location records
14
19
  */
15
20
  private processStockLocations;
16
- /**
17
- * Retrieves a list of stock locations
18
- * @returns An `Observable` with an array of stock locations
19
- */
20
- getStockLocations(): Observable<EsolveStockLocation[]>;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<EsolveLocationsService, never>;
22
22
  static ɵprov: i0.ɵɵInjectableDeclaration<EsolveLocationsService>;
23
23
  }
@@ -42,6 +42,6 @@ export interface EsolveStockLocationRecord {
42
42
  sunday_close_time: string;
43
43
  public_holiday_open_time: string;
44
44
  public_holiday_close_time: string;
45
- trading_hours_additional_in?: string;
45
+ trading_hours_additional_info?: string;
46
46
  website_url: string;
47
47
  }
@@ -17,7 +17,7 @@ export declare class EsolveStockLocation {
17
17
  trading_times: EsolveStockLocationTradingTimes;
18
18
  constructor(record: EsolveStockLocationRecord);
19
19
  }
20
- declare class EsolveStockLocationAddress {
20
+ export declare class EsolveStockLocationAddress {
21
21
  street: string;
22
22
  suburb: string;
23
23
  city: string;
@@ -28,21 +28,20 @@ declare class EsolveStockLocationAddress {
28
28
  longitude: number;
29
29
  constructor(street: string, suburb: string, city: string, province: string, country: string, postal_code: string, latitude: number, longitude: number);
30
30
  }
31
- declare class EsolveStockLocationPOBoxAddress {
31
+ export declare class EsolveStockLocationPOBoxAddress {
32
32
  pobox: string;
33
33
  city: string;
34
34
  postal_code: string;
35
35
  constructor(pobox: string, city: string, postal_code: string);
36
36
  }
37
- declare class EsolveStockLocationContactInfo {
37
+ export declare class EsolveStockLocationContactInfo {
38
38
  telnumber: string[];
39
39
  cellnumber: string;
40
40
  email: string;
41
41
  fax: string;
42
42
  constructor(telnumber: string[], cellnumber: string, email: string, fax: string);
43
43
  }
44
- declare class EsolveStockLocationTradingTimes {
45
- trading_hours_additional_info: string;
44
+ export declare class EsolveStockLocationTradingTimes {
46
45
  monday: EsolveStockLocationTradingTimesDay;
47
46
  tuesday: EsolveStockLocationTradingTimesDay;
48
47
  wednesday: EsolveStockLocationTradingTimesDay;
@@ -51,11 +50,11 @@ declare class EsolveStockLocationTradingTimes {
51
50
  saturday: EsolveStockLocationTradingTimesDay;
52
51
  sunday: EsolveStockLocationTradingTimesDay;
53
52
  public_holiday: EsolveStockLocationTradingTimesDay;
54
- constructor(monday_open_time: string, monday_close_time: string, tuesday_open_time: string, tuesday_close_time: string, wednesday_open_time: string, wednesday_close_time: string, thursday_open_time: string, thursday_close_time: string, friday_open_time: string, friday_close_time: string, saturday_open_time: string, saturday_close_time: string, sunday_open_time: string, sunday_close_time: string, public_holiday_open_time: string, public_holiday_close_time: string, trading_hours_additional_info?: string);
53
+ trading_hours_additional_info: string;
54
+ constructor(monday: EsolveStockLocationTradingTimesDay, tuesday: EsolveStockLocationTradingTimesDay, wednesday: EsolveStockLocationTradingTimesDay, thursday: EsolveStockLocationTradingTimesDay, friday: EsolveStockLocationTradingTimesDay, saturday: EsolveStockLocationTradingTimesDay, sunday: EsolveStockLocationTradingTimesDay, public_holiday: EsolveStockLocationTradingTimesDay, trading_hours_additional_info?: string);
55
55
  }
56
- declare class EsolveStockLocationTradingTimesDay {
56
+ export declare class EsolveStockLocationTradingTimesDay {
57
57
  open: string;
58
58
  close: string;
59
59
  constructor(open: string, close: string);
60
60
  }
61
- export {};
@@ -1,18 +1,12 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { EsolveMediaArticle } from './esolve-media-article';
4
3
  import { EsolveConnectConfig } from '../esolve-connect.config';
4
+ import { EsolveMediaArticle } from './esolve-media-article';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class EsolveMediaService {
7
7
  private config;
8
8
  private http;
9
9
  constructor(config: EsolveConnectConfig, http: HttpClient);
10
- private processMediaRecord;
11
- /**
12
- * Retrieves media records from eSolve instance.
13
- * @param params Header params
14
- */
15
- private getMediaRecords;
16
10
  /**
17
11
  * Retrieves the media record from the eSolve instance using the identifier.
18
12
  * @param identifier String representing the eSolve media indentifier
@@ -23,6 +17,12 @@ export declare class EsolveMediaService {
23
17
  * @param media_group String representing the eSolve media group
24
18
  */
25
19
  getGroupedMediaArticles(media_group: string): Observable<EsolveMediaArticle[]>;
20
+ private processMediaRecord;
21
+ /**
22
+ * Retrieves media records from eSolve instance.
23
+ * @param params Header params
24
+ */
25
+ private getMediaRecords;
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<EsolveMediaService, never>;
27
27
  static ɵprov: i0.ɵɵInjectableDeclaration<EsolveMediaService>;
28
28
  }
@@ -12,12 +12,8 @@ export interface EsolvePaymentMethodRecord {
12
12
  swift_number: string;
13
13
  branch_code: string;
14
14
  currency_code: string;
15
- terminal_id: string;
16
- terminal_id_secondary: string;
17
15
  merchant_id: string;
18
16
  application_id: string;
19
- api_username: string;
20
- api_password: string;
21
17
  api_signature: string;
22
18
  is_gateway: boolean;
23
19
  must_store_card_details: boolean;
@@ -6,12 +6,8 @@ export declare class EsolvePaymentMethod {
6
6
  description: string;
7
7
  display_banking_details: boolean;
8
8
  currency_code: string;
9
- terminal_id: string;
10
- terminal_id_secondary: string;
11
9
  merchant_id: string;
12
10
  application_id: string;
13
- api_username: string;
14
- api_password: string;
15
11
  api_signature: string;
16
12
  is_gateway: boolean;
17
13
  must_store_card_details: boolean;
@@ -1,15 +1,17 @@
1
1
  import { Observable } from 'rxjs';
2
+ import { CookieService } from 'ngx-cookie-service';
2
3
  import { EsolveConnectConfig } from '../esolve-connect.config';
3
4
  import { EsolveSession } from './esolve-session';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class EsolveSessionService {
6
7
  private config;
8
+ private cookieService;
7
9
  private key_expiration_timer;
8
10
  private storage_key;
9
11
  private _session;
10
12
  session: Observable<EsolveSession>;
11
13
  get currentSession(): EsolveSession;
12
- constructor(config: EsolveConnectConfig);
14
+ constructor(config: EsolveConnectConfig, cookieService: CookieService);
13
15
  private setStorageKey;
14
16
  private startTimer;
15
17
  clearTimer(): void;
@@ -4,6 +4,7 @@ import { EsolveDeleteResponse, EsolveDeleteResult, EsolvePostResponseItem, Esolv
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class EsolveErrorHandlerService {
6
6
  constructor();
7
+ emitError(code: string, message: string): void;
7
8
  handleHttpPostError(service_type: string, errorRes: HttpErrorResponse | EsolveSetResponse | EsolvePostResponseItem): Observable<never>;
8
9
  handleHttpDeleteError(service_type: string, errorRes: HttpErrorResponse | EsolveDeleteResponse | EsolveDeleteResult): Observable<never>;
9
10
  private handleHttpError;
@@ -0,0 +1,7 @@
1
+ export declare class EsolveList<T> {
2
+ items: T[];
3
+ page: number;
4
+ rows: number;
5
+ total: number;
6
+ constructor(items?: T[], page?: number, rows?: number, total?: number);
7
+ }
@@ -7,7 +7,6 @@ export declare class EsolveTopicService {
7
7
  private config;
8
8
  private http;
9
9
  constructor(config: EsolveConnectConfig, http: HttpClient);
10
- private processTopics;
11
10
  /**
12
11
  * Retrieves active topics from the list of topic ID's. Note that inactive or expired
13
12
  * topics will not be retrieved.
@@ -15,6 +14,7 @@ export declare class EsolveTopicService {
15
14
  * @param topic_id_list List of topic ID's that need to be retrieved
16
15
  */
17
16
  getTopics(topic_id_list?: readonly number[]): Observable<EsolveTopic[]>;
17
+ private processTopics;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<EsolveTopicService, never>;
19
19
  static ɵprov: i0.ɵɵInjectableDeclaration<EsolveTopicService>;
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esolve/ng-esolve-connect",
3
- "version": "0.9.1",
3
+ "version": "0.10.3",
4
4
  "description": "An Angular library that speaks to an eSolve instance's API",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^13.0.0",
package/public-api.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  export * from './lib/ng-esolve-connect.module';
2
2
  export { EsolveConnectConfig } from './lib/esolve-connect.config';
3
- export * from './lib/shared/esolve-response';
3
+ export * from './lib/shared/esolve-list';
4
4
  export * from './lib/shared/esolve-result';
5
+ export * from './lib/shared/esolve-response';
5
6
  export * from './lib/shared/error-handler/esolve-http-error';
6
7
  export * from './lib/shared/error-handler/esolve-error-handler.service';
7
8
  export * from './lib/shared/response-handler/esolve-response-result';
@@ -17,6 +18,9 @@ export * from './lib/account/esolve-address-result';
17
18
  export * from './lib/account/esolve-user-account';
18
19
  export * from './lib/account/esolve-user-account-data';
19
20
  export * from './lib/account/esolve-user-account-result';
21
+ export * from './lib/account/esolve-transaction';
22
+ export * from './lib/account/esolve-transaction-list';
23
+ export * from './lib/account/esolve-transaction-options';
20
24
  export * from './lib/account/esolve-registration-data';
21
25
  export * from './lib/account/esolve-registration-result';
22
26
  export * from './lib/account/esolve-change-password-result';