@esolve/ng-esolve-connect 0.131.0 → 0.132.0

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 (42) hide show
  1. package/fesm2022/esolve-ng-esolve-connect.mjs +319 -142
  2. package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
  3. package/index.d.ts +1 -0
  4. package/lib/auth/services/esolve-auth.service.d.ts +1 -2
  5. package/lib/cart/classes/esolve-cart-stock-item.model.d.ts +1 -0
  6. package/lib/cart/classes/esolve-checkout-result.model.d.ts +1 -0
  7. package/lib/cart/esolve-cart.service.d.ts +2 -2
  8. package/lib/cart/interfaces/esolve-cart-item-record.interface.d.ts +1 -0
  9. package/lib/cart/interfaces/esolve-checkout-response.interface.d.ts +1 -0
  10. package/lib/notifications/classes/esolve-event.model.d.ts +11 -0
  11. package/{notifications/lib → lib/notifications}/classes/esolve-notification-button-action.model.d.ts +1 -1
  12. package/lib/notifications/classes/index.d.ts +5 -0
  13. package/lib/notifications/enums/esolve-event-type.enum.d.ts +6 -0
  14. package/lib/notifications/enums/index.d.ts +1 -0
  15. package/lib/notifications/index.d.ts +5 -0
  16. package/lib/notifications/interfaces/esolve-event-record.interface.d.ts +6 -0
  17. package/{notifications/lib → lib/notifications}/interfaces/esolve-notification-button-action-record.interface.d.ts +1 -1
  18. package/lib/notifications/interfaces/index.d.ts +7 -0
  19. package/lib/notifications/services/esolve-event-target.service.d.ts +11 -0
  20. package/lib/notifications/services/index.d.ts +2 -0
  21. package/lib/notifications/types/index.d.ts +3 -0
  22. package/package.json +1 -5
  23. package/fesm2022/esolve-ng-esolve-connect-notifications.mjs +0 -114
  24. package/fesm2022/esolve-ng-esolve-connect-notifications.mjs.map +0 -1
  25. package/notifications/README.md +0 -3
  26. package/notifications/index.d.ts +0 -4
  27. package/notifications/lib/classes/index.d.ts +0 -4
  28. package/notifications/lib/interfaces/index.d.ts +0 -6
  29. package/notifications/lib/services/index.d.ts +0 -1
  30. package/notifications/lib/types/index.d.ts +0 -3
  31. package/{notifications/lib → lib/notifications}/classes/esolve-notification-dates.model.d.ts +0 -0
  32. package/{notifications/lib → lib/notifications}/classes/esolve-system-notification-type.model.d.ts +0 -0
  33. package/{notifications/lib → lib/notifications}/classes/esolve-system-notification.model.d.ts +0 -0
  34. package/{notifications/lib → lib/notifications}/interfaces/esolve-notification-date-record.interface.d.ts +0 -0
  35. package/{notifications/lib → lib/notifications}/interfaces/esolve-notification-dates-record.interface.d.ts +0 -0
  36. package/{notifications/lib → lib/notifications}/interfaces/esolve-system-notification-options.interface.d.ts +0 -0
  37. package/{notifications/lib → lib/notifications}/interfaces/esolve-system-notification-record.interface.d.ts +0 -0
  38. package/{notifications/lib → lib/notifications}/interfaces/esolve-system-notification-type-record.interface.d.ts +0 -0
  39. package/{notifications/lib → lib/notifications}/services/esolve-notifications.service.d.ts +1 -1
  40. /package/{notifications/lib → lib/notifications}/types/esolve-notification-position.type.d.ts +0 -0
  41. /package/{notifications/lib → lib/notifications}/types/esolve-notification-size.type.d.ts +0 -0
  42. /package/{notifications/lib → lib/notifications}/types/esolve-notification-type.type.d.ts +0 -0
@@ -1,12 +1,12 @@
1
1
  import { isPlatformBrowser, CommonModule, IMAGE_LOADER, DOCUMENT } from '@angular/common';
2
- import { HttpErrorResponse, HttpClient, HttpStatusCode, HttpParams, HttpHeaders, provideHttpClient, withInterceptors, withInterceptorsFromDi } from '@angular/common/http';
2
+ import { HttpClient, HttpParams, HttpErrorResponse, HttpStatusCode, HttpHeaders, provideHttpClient, withInterceptors, withInterceptorsFromDi } from '@angular/common/http';
3
3
  import * as i0 from '@angular/core';
4
4
  import { InjectionToken, inject, Injectable, PLATFORM_ID, ApplicationRef, signal, computed, provideAppInitializer, NgModule, ElementRef, HostListener, Input, Directive } from '@angular/core';
5
5
  import { SsrCookieService } from 'ngx-cookie-service-ssr';
6
6
  import { toObservable } from '@angular/core/rxjs-interop';
7
- import { throwError, Subject, filter, take, shareReplay, switchMap, timer, takeUntil, distinctUntilChanged, firstValueFrom, from, catchError as catchError$1, of, tap, map as map$1, merge, BehaviorSubject, iif } from 'rxjs';
7
+ import { map, throwError, Subject, filter, take, shareReplay, switchMap, timer, takeUntil, distinctUntilChanged, firstValueFrom, from, catchError as catchError$1, of, tap, merge, BehaviorSubject, iif } from 'rxjs';
8
8
  import { fromUnixTime, isAfter, parseISO } from 'date-fns';
9
- import { map, catchError, switchMap as switchMap$1 } from 'rxjs/operators';
9
+ import { map as map$1, catchError, switchMap as switchMap$1 } from 'rxjs/operators';
10
10
  import { Title, Meta } from '@angular/platform-browser';
11
11
 
12
12
  const ESOLVE_CONNECT_CONFIG = new InjectionToken('esolve.connect.config');
@@ -63,6 +63,172 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
63
63
  }]
64
64
  }], ctorParameters: () => [] });
65
65
 
66
+ class EsolveEvent {
67
+ get type() {
68
+ return this._type;
69
+ }
70
+ get message() {
71
+ return this._message;
72
+ }
73
+ get additional_data() {
74
+ return this._additional_data;
75
+ }
76
+ constructor(record) {
77
+ this._message = '';
78
+ this._type = record.type;
79
+ this._message = record.message ?? '';
80
+ if (record.additional_data) {
81
+ this._additional_data = record.additional_data;
82
+ }
83
+ }
84
+ }
85
+
86
+ class EsolveNotificationButtonAction {
87
+ constructor(record) {
88
+ this.text = '';
89
+ this.url = '';
90
+ this.module = '';
91
+ this.target = '_self';
92
+ if (record) {
93
+ this.text = record.text;
94
+ this.url = record.url;
95
+ this.module = record.module;
96
+ this.target = record.target;
97
+ }
98
+ }
99
+ }
100
+
101
+ class EsolveNotificationDates {
102
+ constructor(record) {
103
+ this.from = new Date(record.from.timestamp * 1000);
104
+ this.to = new Date(record.to.timestamp * 1000);
105
+ }
106
+ }
107
+
108
+ class EsolveSystemNotificationType {
109
+ constructor(record) {
110
+ this.id = 0;
111
+ this.identifier = '';
112
+ this.title = '';
113
+ this.system_disable_order = false;
114
+ this.id = +record.id;
115
+ this.identifier = record.identifier;
116
+ this.title = record.title;
117
+ this.system_disable_order = !!+record.system_disable_order;
118
+ this.type = record.type;
119
+ this.size = record.size;
120
+ this.position = record.position;
121
+ }
122
+ }
123
+
124
+ class EsolveSystemNotification {
125
+ constructor(record) {
126
+ this.id = 0;
127
+ this.identifier = '';
128
+ this.title = '';
129
+ this.message = '';
130
+ this.timeout = 0;
131
+ this.display_every = 0;
132
+ this.button_actions = [];
133
+ this.id = +record.id;
134
+ this.identifier = record.identifier;
135
+ this.title = record.title;
136
+ this.message = record.message;
137
+ this.timeout = +record.timeout;
138
+ this.display_every = +record.display_every;
139
+ this.type = new EsolveSystemNotificationType(record.type);
140
+ for (const action of record.button_actions) {
141
+ this.button_actions.push(new EsolveNotificationButtonAction(action));
142
+ }
143
+ if (record.dates) {
144
+ this.dates = new EsolveNotificationDates(record.dates);
145
+ }
146
+ }
147
+ }
148
+
149
+ var EsolveEventType;
150
+ (function (EsolveEventType) {
151
+ EsolveEventType["FATAL_SESSION_ERROR"] = "FATAL_SESSION_ERROR";
152
+ EsolveEventType["SESSION_VALIDATION_START"] = "SESSION_VALIDATION_START";
153
+ EsolveEventType["SESSION_VALIDATION_END"] = "SESSION_VALIDATION_END";
154
+ EsolveEventType["CART_UPDATED"] = "CART_UPDATED";
155
+ })(EsolveEventType || (EsolveEventType = {}));
156
+
157
+ class EsolveEventTargetService {
158
+ constructor() {
159
+ this.listeners = new Map();
160
+ }
161
+ addEventListener(event_name, callback) {
162
+ if (!this.listeners.has(event_name)) {
163
+ this.listeners.set(event_name, new Set());
164
+ }
165
+ const event_listeners = this.listeners.get(event_name);
166
+ if (!event_listeners) {
167
+ throw new Error('Unexpected error');
168
+ }
169
+ event_listeners.add(callback);
170
+ }
171
+ removeEventListener(event_name, callback) {
172
+ this.listeners.get(event_name)?.delete(callback);
173
+ }
174
+ dispatchEvent(event) {
175
+ if (!(event instanceof EsolveEvent)) {
176
+ event = new EsolveEvent({ type: event });
177
+ }
178
+ const listener_set = this.listeners.get(event.type);
179
+ if (listener_set) {
180
+ listener_set.forEach((callback) => callback(event));
181
+ }
182
+ }
183
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EsolveEventTargetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
184
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EsolveEventTargetService, providedIn: 'root' }); }
185
+ }
186
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EsolveEventTargetService, decorators: [{
187
+ type: Injectable,
188
+ args: [{
189
+ providedIn: 'root',
190
+ }]
191
+ }] });
192
+
193
+ class EsolveNotificationsService {
194
+ constructor() {
195
+ this.config = inject(EsolveConfigService);
196
+ this.http = inject(HttpClient);
197
+ }
198
+ getSystemNotifications(options) {
199
+ let params = new HttpParams();
200
+ if (options) {
201
+ if (options.exclude_ids) {
202
+ params = params.set('exclude_ids', options.exclude_ids.join(','));
203
+ }
204
+ }
205
+ return this.http
206
+ .get(`${this.config.api_url}/get-system-notifications.php`, { params })
207
+ .pipe(map((response) => {
208
+ if (response.records === undefined ||
209
+ response.records.length <= 0) {
210
+ throw response;
211
+ }
212
+ return this.processNotifications(response.records);
213
+ }));
214
+ }
215
+ processNotifications(records) {
216
+ const notifications = [];
217
+ for (const record of records) {
218
+ notifications.push(new EsolveSystemNotification(record));
219
+ }
220
+ return notifications;
221
+ }
222
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EsolveNotificationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
223
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EsolveNotificationsService, providedIn: 'root' }); }
224
+ }
225
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EsolveNotificationsService, decorators: [{
226
+ type: Injectable,
227
+ args: [{
228
+ providedIn: 'root',
229
+ }]
230
+ }] });
231
+
66
232
  class EsolveCookieService {
67
233
  constructor() {
68
234
  this.cookieService = inject(SsrCookieService);
@@ -778,7 +944,7 @@ class EsolveSessionMetadataService {
778
944
  observe: 'body',
779
945
  params: { type },
780
946
  })
781
- .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveResponseResult(response))), catchError((errorRes) => {
947
+ .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveResponseResult(response))), catchError((errorRes) => {
782
948
  return this.errorHandler.handleHttpPostError('set-sessions-metadata', errorRes);
783
949
  }));
784
950
  }
@@ -787,7 +953,7 @@ class EsolveSessionMetadataService {
787
953
  .get(`${this.config.api_url}/get-sessions-metadata.php`, {
788
954
  params: { type },
789
955
  })
790
- .pipe(map((response) => {
956
+ .pipe(map$1((response) => {
791
957
  if (response.records === undefined ||
792
958
  (Array.isArray(response.records) &&
793
959
  response.records.length === 0)) {
@@ -803,7 +969,7 @@ class EsolveSessionMetadataService {
803
969
  responseType: 'json',
804
970
  observe: 'body',
805
971
  })
806
- .pipe(map((http_response) => {
972
+ .pipe(map$1((http_response) => {
807
973
  if (http_response.result === undefined ||
808
974
  http_response.result === null ||
809
975
  http_response.result.status !== 'success') {
@@ -828,18 +994,13 @@ class EsolveAuthService {
828
994
  #validating_session;
829
995
  #validating_session_retries;
830
996
  #fatal_session_error_message;
831
- get validating_session() {
832
- return this.#validating_session.asReadonly();
833
- }
834
- get fatal_validating_error_message() {
835
- return this.#validating_session.asReadonly();
836
- }
837
997
  constructor() {
838
998
  this.config = inject(EsolveConfigService);
839
999
  this.http = inject(HttpClient);
840
1000
  this.session = inject(EsolveSessionService);
841
1001
  this.errorHandler = inject(EsolveErrorHandlerService);
842
1002
  this.platformId = inject(PLATFORM_ID);
1003
+ this.esolveEventTarget = inject(EsolveEventTargetService);
843
1004
  this.is_browser = isPlatformBrowser(this.platformId);
844
1005
  /**
845
1006
  * Maximum number of session validation and refresh retries allowed until
@@ -880,6 +1041,9 @@ class EsolveAuthService {
880
1041
  // Deal with error gracefully
881
1042
  });
882
1043
  });
1044
+ this.esolveEventTarget.addEventListener(EsolveEventType.FATAL_SESSION_ERROR, (event) => {
1045
+ this.#fatal_session_error_message.set(event.message);
1046
+ });
883
1047
  }
884
1048
  onSessionError() {
885
1049
  return this.fatal_session_error_message$;
@@ -944,7 +1108,7 @@ class EsolveAuthService {
944
1108
  responseType: 'json',
945
1109
  observe: 'body',
946
1110
  })
947
- .pipe(map$1((response) => {
1111
+ .pipe(map((response) => {
948
1112
  if (response.responses === undefined ||
949
1113
  response.responses.length <= 0) {
950
1114
  throw response;
@@ -995,7 +1159,7 @@ class EsolveAuthService {
995
1159
  responseType: 'json',
996
1160
  observe: 'body',
997
1161
  })
998
- .pipe(map$1((response) => {
1162
+ .pipe(map((response) => {
999
1163
  if (response.responses === undefined ||
1000
1164
  response.responses.length <= 0) {
1001
1165
  throw response;
@@ -1058,7 +1222,12 @@ class EsolveAuthService {
1058
1222
  if (this.#validating_session()) {
1059
1223
  return firstValueFrom(this.onSessionValidationEnd());
1060
1224
  }
1225
+ if (this.#fatal_session_error_message()) {
1226
+ throw new Error(this.#fatal_session_error_message());
1227
+ }
1228
+ this.#validating_session.set(true);
1061
1229
  this.#validating_session_retries.update((count) => ++count);
1230
+ this.esolveEventTarget.dispatchEvent(EsolveEventType.SESSION_VALIDATION_START);
1062
1231
  if (this.#validating_session_retries() > this.maximum_retries) {
1063
1232
  /*
1064
1233
  FATAL error. Can happen only if user gets a valid token but token
@@ -1066,13 +1235,15 @@ class EsolveAuthService {
1066
1235
  */
1067
1236
  this.session.updateToken('');
1068
1237
  this.session.reset();
1069
- const error_message = 'Service unavailable. Please clear your cookies and refresh the page. If the problem continues, please reach out to our support team.';
1070
- this.#fatal_session_error_message.set(error_message);
1238
+ const error_message = 'Session could not be validated. Please clear your cookies and refresh the page. If the problem continues, please reach out to our support team.';
1071
1239
  this.#validating_session.set(false);
1240
+ this.esolveEventTarget.dispatchEvent(EsolveEventType.SESSION_VALIDATION_END);
1241
+ this.esolveEventTarget.dispatchEvent(new EsolveEvent({
1242
+ type: EsolveEventType.FATAL_SESSION_ERROR,
1243
+ message: error_message,
1244
+ }));
1072
1245
  throw new Error(error_message);
1073
1246
  }
1074
- this.#validating_session.set(true);
1075
- this.#fatal_session_error_message.set('');
1076
1247
  let token = '';
1077
1248
  try {
1078
1249
  const session = this.session.getCachedSession();
@@ -1099,6 +1270,7 @@ class EsolveAuthService {
1099
1270
  }
1100
1271
  finally {
1101
1272
  this.#validating_session.set(false);
1273
+ this.esolveEventTarget.dispatchEvent(EsolveEventType.SESSION_VALIDATION_END);
1102
1274
  }
1103
1275
  return token;
1104
1276
  }
@@ -1196,7 +1368,7 @@ class EsolveAuthService {
1196
1368
  }
1197
1369
  onSessionValidationEnd() {
1198
1370
  return this.validating_session$.pipe(filter((busy) => !busy), switchMap(() => {
1199
- return merge(this.session.onTokenUpdate(), this.onSessionError().pipe(filter((message) => !!message), map$1((error_message) => {
1371
+ return merge(this.session.onTokenUpdate(), this.onSessionError().pipe(filter((message) => !!message), map((error_message) => {
1200
1372
  throw new Error(error_message);
1201
1373
  })));
1202
1374
  }), take(1));
@@ -1270,7 +1442,7 @@ class EsolveOtpService {
1270
1442
  try {
1271
1443
  return this.http
1272
1444
  .get(`${this.config.api_url}/get-otp.php`, { params })
1273
- .pipe(map((response) => {
1445
+ .pipe(map$1((response) => {
1274
1446
  if (response.records === undefined ||
1275
1447
  Array.isArray(response.records)) {
1276
1448
  throw response;
@@ -1292,7 +1464,7 @@ class EsolveOtpService {
1292
1464
  otp_action,
1293
1465
  },
1294
1466
  })
1295
- .pipe(map((response) => {
1467
+ .pipe(map$1((response) => {
1296
1468
  if (response.records === undefined ||
1297
1469
  Array.isArray(response.records)) {
1298
1470
  throw response;
@@ -1726,7 +1898,7 @@ class EsolveGeocoderService {
1726
1898
  postal_code,
1727
1899
  },
1728
1900
  })
1729
- .pipe(map((response) => {
1901
+ .pipe(map$1((response) => {
1730
1902
  if (response.records === undefined ||
1731
1903
  Array.isArray(response.records)) {
1732
1904
  throw response;
@@ -1743,7 +1915,7 @@ class EsolveGeocoderService {
1743
1915
  longitude: longitude,
1744
1916
  },
1745
1917
  })
1746
- .pipe(map((response) => {
1918
+ .pipe(map$1((response) => {
1747
1919
  if (response.records === undefined ||
1748
1920
  Array.isArray(response.records)) {
1749
1921
  throw response;
@@ -1859,7 +2031,7 @@ class EsolveCategoryTreeService {
1859
2031
  }
1860
2032
  return this.http
1861
2033
  .get(`${this.config.api_url}/get-tree.php`, { params })
1862
- .pipe(map((response) => {
2034
+ .pipe(map$1((response) => {
1863
2035
  if (response.records === undefined) {
1864
2036
  throw response;
1865
2037
  }
@@ -1879,7 +2051,7 @@ class EsolveCategoryTreeService {
1879
2051
  params = params.set('special_id', special_id);
1880
2052
  return this.http
1881
2053
  .get(`${this.config.api_url}/get-special-tree.php`, { params })
1882
- .pipe(map((response) => {
2054
+ .pipe(map$1((response) => {
1883
2055
  if (response.records === undefined) {
1884
2056
  throw response;
1885
2057
  }
@@ -1925,7 +2097,7 @@ class EsolveCategoryTreeService {
1925
2097
  .get(`${this.config.api_url}/get-tree-item.php`, {
1926
2098
  params,
1927
2099
  })
1928
- .pipe(map((response) => {
2100
+ .pipe(map$1((response) => {
1929
2101
  if (response.records === undefined ||
1930
2102
  response.records.length <= 0) {
1931
2103
  throw response;
@@ -2072,7 +2244,7 @@ class EsolveManufacturersService {
2072
2244
  if (options?.featured_only) {
2073
2245
  params = params.set('featured_only', options.featured_only);
2074
2246
  }
2075
- return this.getManufacturerRecords(params).pipe(map((records) => {
2247
+ return this.getManufacturerRecords(params).pipe(map$1((records) => {
2076
2248
  const manufacturers = [];
2077
2249
  for (const record of records) {
2078
2250
  manufacturers.push(this.processManufacturer(record));
@@ -2083,7 +2255,7 @@ class EsolveManufacturersService {
2083
2255
  }));
2084
2256
  }
2085
2257
  getManufacturerSingle(params) {
2086
- return this.getManufacturerRecords(params).pipe(map((records) => {
2258
+ return this.getManufacturerRecords(params).pipe(map$1((records) => {
2087
2259
  const record = records[0];
2088
2260
  return this.processManufacturer(record);
2089
2261
  }));
@@ -2093,7 +2265,7 @@ class EsolveManufacturersService {
2093
2265
  .get(`${this.config.api_url}/get-manufacturers.php`, {
2094
2266
  params,
2095
2267
  })
2096
- .pipe(map((response) => {
2268
+ .pipe(map$1((response) => {
2097
2269
  if (response.records === undefined ||
2098
2270
  response.records.length <= 0) {
2099
2271
  throw response;
@@ -2192,7 +2364,7 @@ class EsolveRangesService {
2192
2364
  if (options?.manufacturers_id) {
2193
2365
  params = params.set('manufacturers_id', options.manufacturers_id);
2194
2366
  }
2195
- return this.getRangeRecords(params).pipe(map((records) => {
2367
+ return this.getRangeRecords(params).pipe(map$1((records) => {
2196
2368
  const ranges = [];
2197
2369
  for (const record of records) {
2198
2370
  ranges.push(this.processRange(record));
@@ -2203,7 +2375,7 @@ class EsolveRangesService {
2203
2375
  }));
2204
2376
  }
2205
2377
  getRangeSingle(params) {
2206
- return this.getRangeRecords(params).pipe(map((records) => {
2378
+ return this.getRangeRecords(params).pipe(map$1((records) => {
2207
2379
  const record = records[0];
2208
2380
  return this.processRange(record);
2209
2381
  }));
@@ -2213,7 +2385,7 @@ class EsolveRangesService {
2213
2385
  .get(`${this.config.api_url}/get-ranges.php`, {
2214
2386
  params,
2215
2387
  })
2216
- .pipe(map((response) => {
2388
+ .pipe(map$1((response) => {
2217
2389
  if (response.records === undefined ||
2218
2390
  response.records.length <= 0) {
2219
2391
  throw response;
@@ -2285,7 +2457,7 @@ class EsolveTagsService {
2285
2457
  .get(`${this.config.api_url}/get-tags.php`, {
2286
2458
  params: this.parseOptions(options),
2287
2459
  })
2288
- .pipe(map((response) => {
2460
+ .pipe(map$1((response) => {
2289
2461
  if (response.records === undefined) {
2290
2462
  throw response;
2291
2463
  }
@@ -2373,7 +2545,7 @@ class EsolveTopicService {
2373
2545
  .get(`${this.config.api_url}/get-topics.php`, {
2374
2546
  params,
2375
2547
  })
2376
- .pipe(map((response) => {
2548
+ .pipe(map$1((response) => {
2377
2549
  if (response.records === undefined) {
2378
2550
  throw response;
2379
2551
  }
@@ -2479,7 +2651,7 @@ class EsolveAssetsService {
2479
2651
  }
2480
2652
  getAsset(id) {
2481
2653
  const params = new HttpParams({ fromObject: { assets_id: id } });
2482
- return this.getAssetRecords(params).pipe(map((response) => {
2654
+ return this.getAssetRecords(params).pipe(map$1((response) => {
2483
2655
  if (response.records === undefined ||
2484
2656
  response.records.length <= 0) {
2485
2657
  throw response;
@@ -2490,7 +2662,7 @@ class EsolveAssetsService {
2490
2662
  }
2491
2663
  getAssets(options) {
2492
2664
  const params = this.parseOptions(options);
2493
- return this.getAssetRecords(params).pipe(map((response) => {
2665
+ return this.getAssetRecords(params).pipe(map$1((response) => {
2494
2666
  if (response.records === undefined) {
2495
2667
  throw response;
2496
2668
  }
@@ -2514,7 +2686,7 @@ class EsolveAssetsService {
2514
2686
  }
2515
2687
  return this.http
2516
2688
  .get(`${this.config.api_url}/get-media-assets.php`, { params })
2517
- .pipe(map((response) => {
2689
+ .pipe(map$1((response) => {
2518
2690
  if (response.records === undefined) {
2519
2691
  throw response;
2520
2692
  }
@@ -2539,7 +2711,7 @@ class EsolveAssetsService {
2539
2711
  .get(`${this.config.api_url}/get-stock-assets.php`, {
2540
2712
  params,
2541
2713
  })
2542
- .pipe(map((response) => {
2714
+ .pipe(map$1((response) => {
2543
2715
  if (response.records === undefined) {
2544
2716
  throw response;
2545
2717
  }
@@ -2982,8 +3154,12 @@ class EsolveCheckoutResult extends EsolveResponseResult {
2982
3154
  constructor(response) {
2983
3155
  super(response);
2984
3156
  this.id = 0;
3157
+ this.key = '';
2985
3158
  this.id = +response.esolve_id;
2986
3159
  this.process_payment = response.process_payment ?? false;
3160
+ if (response.key) {
3161
+ this.key = response.key;
3162
+ }
2987
3163
  }
2988
3164
  }
2989
3165
 
@@ -3742,7 +3918,7 @@ class EsolveStockService {
3742
3918
  code,
3743
3919
  },
3744
3920
  });
3745
- return this.getStockRecords(params).pipe(map((response) => {
3921
+ return this.getStockRecords(params).pipe(map$1((response) => {
3746
3922
  if (response.records === undefined ||
3747
3923
  response.records.length <= 0) {
3748
3924
  throw response;
@@ -3762,7 +3938,7 @@ class EsolveStockService {
3762
3938
  code,
3763
3939
  },
3764
3940
  });
3765
- return this.getStockLocationLevelsRecords(params).pipe(map((response) => {
3941
+ return this.getStockLocationLevelsRecords(params).pipe(map$1((response) => {
3766
3942
  if (response.records === undefined ||
3767
3943
  response.records.length <= 0) {
3768
3944
  throw response;
@@ -3782,7 +3958,7 @@ class EsolveStockService {
3782
3958
  sef_name,
3783
3959
  },
3784
3960
  });
3785
- return this.getStockRecords(params).pipe(map((response) => {
3961
+ return this.getStockRecords(params).pipe(map$1((response) => {
3786
3962
  if (response.records === undefined ||
3787
3963
  response.records.length <= 0) {
3788
3964
  throw response;
@@ -3825,7 +4001,7 @@ class EsolveStockService {
3825
4001
  if (options.topic_id_list && options.topic_id_list.length > 0) {
3826
4002
  params = params.set('topic_id', options.topic_id_list.join(','));
3827
4003
  }
3828
- return this.getStockRecords(params).pipe(map((response) => {
4004
+ return this.getStockRecords(params).pipe(map$1((response) => {
3829
4005
  if (response.records === undefined ||
3830
4006
  response.records.length <= 0) {
3831
4007
  throw response;
@@ -3853,7 +4029,7 @@ class EsolveStockService {
3853
4029
  if (options.clients_id) {
3854
4030
  params = params.set('clients_id', options.clients_id);
3855
4031
  }
3856
- return this.getStockHistoryRecords(params).pipe(map((response) => {
4032
+ return this.getStockHistoryRecords(params).pipe(map$1((response) => {
3857
4033
  if (response.records === undefined ||
3858
4034
  response.records.length <= 0) {
3859
4035
  throw response;
@@ -3881,7 +4057,7 @@ class EsolveStockService {
3881
4057
  .get(`${this.config.api_url}/get-linked-items.php`, {
3882
4058
  params: { code },
3883
4059
  })
3884
- .pipe(map((response) => {
4060
+ .pipe(map$1((response) => {
3885
4061
  if (response.records === undefined ||
3886
4062
  response.records.length <= 0) {
3887
4063
  throw response;
@@ -3917,7 +4093,7 @@ class EsolveStockService {
3917
4093
  .get(`${this.config.api_url}/get-recipe-items.php`, {
3918
4094
  params,
3919
4095
  })
3920
- .pipe(map((response) => {
4096
+ .pipe(map$1((response) => {
3921
4097
  if (response.records === undefined ||
3922
4098
  response.records.length <= 0) {
3923
4099
  throw response;
@@ -3960,7 +4136,7 @@ class EsolveStockService {
3960
4136
  .get(`${this.config.api_url}/get-media-linked-items.php`, {
3961
4137
  params,
3962
4138
  })
3963
- .pipe(map((response) => {
4139
+ .pipe(map$1((response) => {
3964
4140
  if (response.records === undefined ||
3965
4141
  response.records.length <= 0) {
3966
4142
  throw response;
@@ -3979,7 +4155,7 @@ class EsolveStockService {
3979
4155
  .get(`${this.config.api_url}/get-suggested-items.php`, {
3980
4156
  params: { code },
3981
4157
  })
3982
- .pipe(map((response) => {
4158
+ .pipe(map$1((response) => {
3983
4159
  if (response.records === undefined ||
3984
4160
  response.records.length <= 0) {
3985
4161
  throw response;
@@ -3997,7 +4173,7 @@ class EsolveStockService {
3997
4173
  .get(`${this.config.api_url}/get-item-image-collection.php`, {
3998
4174
  params: { code },
3999
4175
  })
4000
- .pipe(map((response) => {
4176
+ .pipe(map$1((response) => {
4001
4177
  if (response.records === undefined ||
4002
4178
  Array.isArray(response.records)) {
4003
4179
  throw response;
@@ -4021,7 +4197,7 @@ class EsolveStockService {
4021
4197
  .get(`${this.config.api_url}/get-item-filters.php`, {
4022
4198
  params,
4023
4199
  })
4024
- .pipe(map((response) => {
4200
+ .pipe(map$1((response) => {
4025
4201
  if (response.records === undefined) {
4026
4202
  throw response;
4027
4203
  }
@@ -4065,7 +4241,7 @@ class EsolveStockService {
4065
4241
  .get(`${this.config.api_url}/get-codes-for-barcode.php`, {
4066
4242
  params,
4067
4243
  })
4068
- .pipe(map((response) => {
4244
+ .pipe(map$1((response) => {
4069
4245
  if (response.records === undefined ||
4070
4246
  response.records.length <= 0) {
4071
4247
  throw response;
@@ -4203,7 +4379,7 @@ class EsolveStockService {
4203
4379
  if (summary !== undefined) {
4204
4380
  params = params.set('summary', summary);
4205
4381
  }
4206
- return this.getTransactionSalesStockRecords(params).pipe(map((response) => {
4382
+ return this.getTransactionSalesStockRecords(params).pipe(map$1((response) => {
4207
4383
  if (response.records === undefined ||
4208
4384
  response.records.length <= 0) {
4209
4385
  throw response;
@@ -4239,7 +4415,7 @@ class EsolveStockService {
4239
4415
  responseType: 'json',
4240
4416
  observe: 'body',
4241
4417
  })
4242
- .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveSetNotifyResult(response))), catchError((errorRes) => {
4418
+ .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveSetNotifyResult(response))), catchError((errorRes) => {
4243
4419
  return this.errorHandler.handleHttpPostError('set-notify', errorRes);
4244
4420
  }));
4245
4421
  }
@@ -4304,6 +4480,7 @@ class EsolveCartStockItem {
4304
4480
  this.limit_per_transaction = +(record.limit_per_transaction ?? 0);
4305
4481
  this.active = record.is_active ?? false;
4306
4482
  this.ignore_onhand_check = record.ignore_onhand_check ?? false;
4483
+ this.category_id = record.category_id ?? '';
4307
4484
  if (record.badges && record.badges.length > 0) {
4308
4485
  for (const badge of record.badges) {
4309
4486
  this.badges.push(new EsolveStockBadge(+badge.id, badge.text, badge.identifier, badge.font_colour, badge.badge_colour, +badge.sort_priority));
@@ -4606,7 +4783,7 @@ class EsolveCouponsService {
4606
4783
  coupon_key,
4607
4784
  },
4608
4785
  })
4609
- .pipe(map((response) => {
4786
+ .pipe(map$1((response) => {
4610
4787
  if (response.records === undefined ||
4611
4788
  Array.isArray(response.records)) {
4612
4789
  throw response;
@@ -4660,7 +4837,7 @@ class EsolveCouponsService {
4660
4837
  coupons: coupon_ids.join(','),
4661
4838
  },
4662
4839
  })
4663
- .pipe(map((response) => {
4840
+ .pipe(map$1((response) => {
4664
4841
  if (response.records === undefined) {
4665
4842
  throw response;
4666
4843
  }
@@ -4842,7 +5019,7 @@ class EsolveVouchersService {
4842
5019
  voucher_key,
4843
5020
  },
4844
5021
  })
4845
- .pipe(map((response) => {
5022
+ .pipe(map$1((response) => {
4846
5023
  if (response.records === undefined ||
4847
5024
  Array.isArray(response.records)) {
4848
5025
  throw response;
@@ -4896,7 +5073,7 @@ class EsolveVouchersService {
4896
5073
  vouchers: voucher_ids.join(','),
4897
5074
  },
4898
5075
  })
4899
- .pipe(map((response) => {
5076
+ .pipe(map$1((response) => {
4900
5077
  if (response.records === undefined) {
4901
5078
  throw response;
4902
5079
  }
@@ -5057,7 +5234,7 @@ class EsolveCartService {
5057
5234
  }
5058
5235
  return this.http
5059
5236
  .get(`${this.config.api_url}/get-cart.php`, { params })
5060
- .pipe(map((response) => {
5237
+ .pipe(map$1((response) => {
5061
5238
  if (response.records === undefined) {
5062
5239
  throw response;
5063
5240
  }
@@ -5085,7 +5262,7 @@ class EsolveCartService {
5085
5262
  responseType: 'json',
5086
5263
  observe: 'body',
5087
5264
  })
5088
- .pipe(map((response) => {
5265
+ .pipe(map$1((response) => {
5089
5266
  if (response.responses === undefined) {
5090
5267
  throw response;
5091
5268
  }
@@ -5105,7 +5282,7 @@ class EsolveCartService {
5105
5282
  responseType: 'json',
5106
5283
  observe: 'body',
5107
5284
  })
5108
- .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
5285
+ .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
5109
5286
  this._cached_tracking = 0;
5110
5287
  return new EsolveEmptyCartResult(response);
5111
5288
  })), catchError((errorRes) => {
@@ -5129,7 +5306,7 @@ class EsolveCartService {
5129
5306
  }
5130
5307
  return this.http
5131
5308
  .get(`${this.config.api_url}/get-cart-totals.php`, { params })
5132
- .pipe(map((response) => {
5309
+ .pipe(map$1((response) => {
5133
5310
  if (response.records === undefined ||
5134
5311
  Array.isArray(response.records)) {
5135
5312
  throw response;
@@ -5145,7 +5322,7 @@ class EsolveCartService {
5145
5322
  getTrackingCode() {
5146
5323
  return iif(() => this._cached_tracking > 0, of(this._cached_tracking), this.http
5147
5324
  .get(`${this.config.api_url}/get-checkout-tracking.php`)
5148
- .pipe(map((response) => {
5325
+ .pipe(map$1((response) => {
5149
5326
  if (response.records === undefined ||
5150
5327
  Array.isArray(response.records)) {
5151
5328
  throw response;
@@ -5168,7 +5345,7 @@ class EsolveCartService {
5168
5345
  transaction_id,
5169
5346
  },
5170
5347
  })
5171
- .pipe(map((response) => {
5348
+ .pipe(map$1((response) => {
5172
5349
  if (response.records === undefined ||
5173
5350
  Array.isArray(response.records)) {
5174
5351
  throw response;
@@ -5221,7 +5398,7 @@ class EsolveCartService {
5221
5398
  responseType: 'json',
5222
5399
  observe: 'body',
5223
5400
  })
5224
- .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
5401
+ .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
5225
5402
  this._cached_tracking = 0;
5226
5403
  this.coupons.reset();
5227
5404
  this.vouchers.reset();
@@ -5234,7 +5411,7 @@ class EsolveCartService {
5234
5411
  getCartAlternatives() {
5235
5412
  return this.http
5236
5413
  .get(`${this.config.api_url}/get-cart-alternatives.php`)
5237
- .pipe(map((response) => {
5414
+ .pipe(map$1((response) => {
5238
5415
  if (response.records === undefined) {
5239
5416
  throw response;
5240
5417
  }
@@ -5260,7 +5437,7 @@ class EsolveCartService {
5260
5437
  responseType: 'json',
5261
5438
  observe: 'body',
5262
5439
  })
5263
- .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveResponseResult(response))), catchError((errorRes) => {
5440
+ .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveResponseResult(response))), catchError((errorRes) => {
5264
5441
  return this.errorHandler.handleHttpPostError('set-cart-alternatives', errorRes);
5265
5442
  }));
5266
5443
  }
@@ -5271,7 +5448,7 @@ class EsolveCartService {
5271
5448
  responseType: 'json',
5272
5449
  observe: 'body',
5273
5450
  })
5274
- .pipe(map((http_response) => {
5451
+ .pipe(map$1((http_response) => {
5275
5452
  if (http_response.result === undefined ||
5276
5453
  http_response.result === null ||
5277
5454
  http_response.result.status !== 'success') {
@@ -5690,7 +5867,7 @@ class EsolveLocationsService {
5690
5867
  params = EsolveFilterFactory.convertToHttpParams(filters, params);
5691
5868
  }
5692
5869
  }
5693
- return this.getLocationRecords(params).pipe(map((response) => {
5870
+ return this.getLocationRecords(params).pipe(map$1((response) => {
5694
5871
  if (response.records === undefined ||
5695
5872
  response.records.length <= 0) {
5696
5873
  throw response;
@@ -5734,7 +5911,7 @@ class EsolveLocationsService {
5734
5911
  .get(`${this.config.api_url}/get-location-filters.php`, {
5735
5912
  params,
5736
5913
  })
5737
- .pipe(map((response) => {
5914
+ .pipe(map$1((response) => {
5738
5915
  if (response.records === undefined) {
5739
5916
  throw response;
5740
5917
  }
@@ -5766,7 +5943,7 @@ class EsolveLocationsService {
5766
5943
  .get(`${this.config.api_url}/get-locations-geo.php`, {
5767
5944
  params,
5768
5945
  })
5769
- .pipe(map((response) => {
5946
+ .pipe(map$1((response) => {
5770
5947
  if (response.records === undefined) {
5771
5948
  throw response;
5772
5949
  }
@@ -6101,7 +6278,7 @@ class EsolveTransactionsService {
6101
6278
  .get(`${this.config.api_url}/get-transactions.php`, {
6102
6279
  params: params,
6103
6280
  })
6104
- .pipe(map$1((response) => {
6281
+ .pipe(map((response) => {
6105
6282
  if (response.records === undefined) {
6106
6283
  throw response;
6107
6284
  }
@@ -6127,7 +6304,7 @@ class EsolveTransactionsService {
6127
6304
  clients_id: clients_id ?? 0,
6128
6305
  },
6129
6306
  })
6130
- .pipe(map$1((response) => {
6307
+ .pipe(map((response) => {
6131
6308
  if (response.records === undefined ||
6132
6309
  response.records.length <= 0) {
6133
6310
  throw response;
@@ -6155,7 +6332,7 @@ class EsolveTransactionsService {
6155
6332
  responseType: 'json',
6156
6333
  observe: 'body',
6157
6334
  })
6158
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6335
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6159
6336
  if (typeof response.esolve_id === 'string') {
6160
6337
  throw new Error('Invalid response id.');
6161
6338
  }
@@ -6243,14 +6420,14 @@ class EsolveAccountService {
6243
6420
  responseType: 'json',
6244
6421
  observe: 'body',
6245
6422
  })
6246
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveUserAccountResult(response))), catchError$1((errorRes) => {
6423
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveUserAccountResult(response))), catchError$1((errorRes) => {
6247
6424
  return this.errorHandler.handleHttpPostError('set-user-account', errorRes);
6248
6425
  }));
6249
6426
  }
6250
6427
  getUserAccount() {
6251
6428
  return this.http
6252
6429
  .get(`${this.config.api_url}/get-account.php`)
6253
- .pipe(map$1((response) => {
6430
+ .pipe(map((response) => {
6254
6431
  if (response.records === undefined ||
6255
6432
  response.records.length === 0) {
6256
6433
  throw response;
@@ -6265,7 +6442,7 @@ class EsolveAccountService {
6265
6442
  responseType: 'json',
6266
6443
  observe: 'body',
6267
6444
  })
6268
- .pipe(map$1((http_response) => {
6445
+ .pipe(map((http_response) => {
6269
6446
  if (http_response.result === undefined ||
6270
6447
  http_response.result === null ||
6271
6448
  http_response.result.status !== 'success') {
@@ -6289,7 +6466,7 @@ class EsolveAccountService {
6289
6466
  responseType: 'json',
6290
6467
  observe: 'body',
6291
6468
  })
6292
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveAddressResult(response))), catchError$1((errorRes) => {
6469
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveAddressResult(response))), catchError$1((errorRes) => {
6293
6470
  return this.errorHandler.handleHttpPostError('set-address', errorRes);
6294
6471
  }));
6295
6472
  }
@@ -6300,7 +6477,7 @@ class EsolveAccountService {
6300
6477
  .get(`${this.config.api_url}/get-addresses.php`, {
6301
6478
  params: { user_id: this.user_id },
6302
6479
  })
6303
- .pipe(map$1((response) => {
6480
+ .pipe(map((response) => {
6304
6481
  if (response.records === undefined) {
6305
6482
  throw response;
6306
6483
  }
@@ -6316,7 +6493,7 @@ class EsolveAccountService {
6316
6493
  this.loginGuard();
6317
6494
  return this.http
6318
6495
  .get(`${this.config.api_url}/get-user-clients.php`)
6319
- .pipe(map$1((response) => {
6496
+ .pipe(map((response) => {
6320
6497
  if (response.records === undefined) {
6321
6498
  throw response;
6322
6499
  }
@@ -6334,7 +6511,7 @@ class EsolveAccountService {
6334
6511
  responseType: 'json',
6335
6512
  observe: 'body',
6336
6513
  })
6337
- .pipe(map$1((http_response) => {
6514
+ .pipe(map((http_response) => {
6338
6515
  if (http_response.result === undefined ||
6339
6516
  http_response.result === null ||
6340
6517
  http_response.result.status !== 'success') {
@@ -6358,7 +6535,7 @@ class EsolveAccountService {
6358
6535
  responseType: 'json',
6359
6536
  observe: 'body',
6360
6537
  })
6361
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response, additional_data) => {
6538
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response, additional_data) => {
6362
6539
  if (response.auto_login) {
6363
6540
  const session_data = response.session_data;
6364
6541
  let token = '';
@@ -6399,7 +6576,7 @@ class EsolveAccountService {
6399
6576
  responseType: 'json',
6400
6577
  observe: 'body',
6401
6578
  })
6402
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6579
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6403
6580
  return new EsolveChangePasswordResult(response);
6404
6581
  })), catchError$1((errorRes) => {
6405
6582
  return this.errorHandler.handleHttpPostError('set-change-password', errorRes);
@@ -6425,7 +6602,7 @@ class EsolveAccountService {
6425
6602
  responseType: 'json',
6426
6603
  observe: 'body',
6427
6604
  })
6428
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6605
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6429
6606
  if (response.auto_login) {
6430
6607
  this.sessionService.handleUpdateSession({
6431
6608
  user_id: +response.esolve_id,
@@ -6454,7 +6631,7 @@ class EsolveAccountService {
6454
6631
  .get(`${this.config.api_url}/get-forgot-password.php`, {
6455
6632
  params,
6456
6633
  })
6457
- .pipe(map$1((response) => {
6634
+ .pipe(map((response) => {
6458
6635
  if (response.records === undefined ||
6459
6636
  !('reset_link_sent' in response.records)) {
6460
6637
  throw response;
@@ -6476,7 +6653,7 @@ class EsolveAccountService {
6476
6653
  responseType: 'json',
6477
6654
  observe: 'body',
6478
6655
  })
6479
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6656
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6480
6657
  if (!response.login_required) {
6481
6658
  const session_data = response.session_data;
6482
6659
  this.sessionService.handleUpdateSession({
@@ -6509,7 +6686,7 @@ class EsolveAccountService {
6509
6686
  responseType: 'json',
6510
6687
  observe: 'body',
6511
6688
  })
6512
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6689
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6513
6690
  if (typeof response.esolve_id === 'string') {
6514
6691
  throw new Error('Invalid response id.');
6515
6692
  }
@@ -6530,7 +6707,7 @@ class EsolveAccountService {
6530
6707
  responseType: 'json',
6531
6708
  observe: 'body',
6532
6709
  })
6533
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6710
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6534
6711
  if (typeof response.esolve_id === 'string') {
6535
6712
  throw new Error('Invalid response id.');
6536
6713
  }
@@ -6551,7 +6728,7 @@ class EsolveAccountService {
6551
6728
  responseType: 'json',
6552
6729
  observe: 'body',
6553
6730
  })
6554
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6731
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6555
6732
  if (typeof response.esolve_id === 'string') {
6556
6733
  throw new Error('Invalid response id.');
6557
6734
  }
@@ -6595,7 +6772,7 @@ class EsolveAccountService {
6595
6772
  .get(`${this.config.api_url}/get-transactions.php`, {
6596
6773
  params,
6597
6774
  })
6598
- .pipe(map$1((response) => {
6775
+ .pipe(map((response) => {
6599
6776
  if (response.records === undefined) {
6600
6777
  throw response;
6601
6778
  }
@@ -6623,7 +6800,7 @@ class EsolveAccountService {
6623
6800
  transaction_id: id,
6624
6801
  },
6625
6802
  })
6626
- .pipe(map$1((response) => {
6803
+ .pipe(map((response) => {
6627
6804
  if (response.records === undefined ||
6628
6805
  response.records.length <= 0) {
6629
6806
  throw response;
@@ -6641,7 +6818,7 @@ class EsolveAccountService {
6641
6818
  this.loginGuard();
6642
6819
  return this.http
6643
6820
  .get(`${this.config.api_url}/get-client-account-balances.php`)
6644
- .pipe(map$1((response) => {
6821
+ .pipe(map((response) => {
6645
6822
  if (response.records === undefined) {
6646
6823
  throw response;
6647
6824
  }
@@ -6734,7 +6911,7 @@ class EsolveAccountService {
6734
6911
  responseType: 'json',
6735
6912
  observe: 'body',
6736
6913
  })
6737
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveErpDocumentsRequestResult(response))), catchError$1((errorRes) => {
6914
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveErpDocumentsRequestResult(response))), catchError$1((errorRes) => {
6738
6915
  return this.errorHandler.handleHttpPostError('set-request-erp-document', errorRes);
6739
6916
  }));
6740
6917
  }
@@ -6748,7 +6925,7 @@ class EsolveAccountService {
6748
6925
  .get(`${this.config.api_url}/get-erp-document-request.php`, {
6749
6926
  params,
6750
6927
  })
6751
- .pipe(map$1((response) => {
6928
+ .pipe(map((response) => {
6752
6929
  if (response.records === undefined) {
6753
6930
  throw response;
6754
6931
  }
@@ -6784,7 +6961,7 @@ class EsolveAccountService {
6784
6961
  .get(`${this.config.api_url}/get-client-assets.php`, {
6785
6962
  params,
6786
6963
  })
6787
- .pipe(map$1((response) => {
6964
+ .pipe(map((response) => {
6788
6965
  if (response.records === undefined) {
6789
6966
  throw response;
6790
6967
  }
@@ -6865,7 +7042,7 @@ class EsolveAccountService {
6865
7042
  responseType: 'json',
6866
7043
  observe: 'body',
6867
7044
  })
6868
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
7045
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
6869
7046
  if (typeof response.esolve_id === 'string') {
6870
7047
  throw new Error('Invalid response id.');
6871
7048
  }
@@ -6975,7 +7152,7 @@ class EsolveBannerService {
6975
7152
  .get(`${this.config.api_url}/get-banners.php`, {
6976
7153
  params,
6977
7154
  })
6978
- .pipe(map((response) => {
7155
+ .pipe(map$1((response) => {
6979
7156
  if (response.records === undefined) {
6980
7157
  throw response;
6981
7158
  }
@@ -7085,7 +7262,7 @@ class EsolveMenuService {
7085
7262
  .get(`${this.config.api_url}/get-menu-tree.php`, {
7086
7263
  params: { identifier },
7087
7264
  })
7088
- .pipe(map((response) => {
7265
+ .pipe(map$1((response) => {
7089
7266
  if (!response || response.records === undefined) {
7090
7267
  throw response;
7091
7268
  }
@@ -7241,7 +7418,7 @@ class EsolveNewsService {
7241
7418
  const params = new HttpParams({
7242
7419
  fromObject: { sef_title: identifier },
7243
7420
  });
7244
- return this.getNewsRecords(params).pipe(map((response) => {
7421
+ return this.getNewsRecords(params).pipe(map$1((response) => {
7245
7422
  if (response.records === undefined ||
7246
7423
  response.records.length <= 0) {
7247
7424
  throw response;
@@ -7255,7 +7432,7 @@ class EsolveNewsService {
7255
7432
  }
7256
7433
  getNewsArticles(options) {
7257
7434
  const params = this.parseOptions(options);
7258
- return this.getNewsRecords(params).pipe(map((response) => {
7435
+ return this.getNewsRecords(params).pipe(map$1((response) => {
7259
7436
  if (response.records === undefined) {
7260
7437
  throw response;
7261
7438
  }
@@ -7275,7 +7452,7 @@ class EsolveNewsService {
7275
7452
  enable_images,
7276
7453
  },
7277
7454
  })
7278
- .pipe(map((response) => {
7455
+ .pipe(map$1((response) => {
7279
7456
  if (response.records === undefined) {
7280
7457
  throw response;
7281
7458
  }
@@ -7338,7 +7515,7 @@ class EsolveNewsService {
7338
7515
  responseType: 'json',
7339
7516
  observe: 'body',
7340
7517
  })
7341
- .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveNewsletterResult(response))), catchError((errorRes) => {
7518
+ .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveNewsletterResult(response))), catchError((errorRes) => {
7342
7519
  return this.errorHandler.handleHttpPostError('set-newsletter', errorRes);
7343
7520
  }));
7344
7521
  }
@@ -7459,7 +7636,7 @@ class EsolveSpecialsService {
7459
7636
  if (options?.special_type) {
7460
7637
  params = params.set('special_type', options.special_type);
7461
7638
  }
7462
- return this.getSpecialRecords(params).pipe(map((records) => {
7639
+ return this.getSpecialRecords(params).pipe(map$1((records) => {
7463
7640
  const specials = [];
7464
7641
  for (const record of records) {
7465
7642
  specials.push(this.processSpecial(record));
@@ -7470,7 +7647,7 @@ class EsolveSpecialsService {
7470
7647
  }));
7471
7648
  }
7472
7649
  getSpecialSingle(params) {
7473
- return this.getSpecialRecords(params).pipe(map((records) => {
7650
+ return this.getSpecialRecords(params).pipe(map$1((records) => {
7474
7651
  const record = records[0];
7475
7652
  return this.processSpecial(record);
7476
7653
  }));
@@ -7478,7 +7655,7 @@ class EsolveSpecialsService {
7478
7655
  getSpecialRecords(params) {
7479
7656
  return this.http
7480
7657
  .get(`${this.config.api_url}/get-specials.php`, { params })
7481
- .pipe(map((response) => {
7658
+ .pipe(map$1((response) => {
7482
7659
  if (response.records === undefined ||
7483
7660
  response.records.length <= 0) {
7484
7661
  throw response;
@@ -7656,7 +7833,7 @@ class EsolvePaymentService {
7656
7833
  ...options,
7657
7834
  },
7658
7835
  })
7659
- .pipe(map((response) => {
7836
+ .pipe(map$1((response) => {
7660
7837
  if (response.records === undefined) {
7661
7838
  throw response;
7662
7839
  }
@@ -7677,7 +7854,7 @@ class EsolvePaymentService {
7677
7854
  cart_id: transaction_id,
7678
7855
  },
7679
7856
  })
7680
- .pipe(map((response) => {
7857
+ .pipe(map$1((response) => {
7681
7858
  if (response.records === undefined ||
7682
7859
  Array.isArray(response.records)) {
7683
7860
  throw response;
@@ -7701,7 +7878,7 @@ class EsolvePaymentService {
7701
7878
  .get(`${this.config.api_url}/get-vault.php`, {
7702
7879
  params,
7703
7880
  })
7704
- .pipe(map((response) => {
7881
+ .pipe(map$1((response) => {
7705
7882
  if (response.records === undefined) {
7706
7883
  throw response;
7707
7884
  }
@@ -7735,7 +7912,7 @@ class EsolvePaymentService {
7735
7912
  responseType: 'json',
7736
7913
  observe: 'body',
7737
7914
  })
7738
- .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveVaultItemResult(response))), catchError((errorRes) => {
7915
+ .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveVaultItemResult(response))), catchError((errorRes) => {
7739
7916
  return this.errorHandler.handleHttpPostError('set-vault', errorRes);
7740
7917
  }));
7741
7918
  }
@@ -7753,7 +7930,7 @@ class EsolvePaymentService {
7753
7930
  responseType: 'json',
7754
7931
  observe: 'body',
7755
7932
  })
7756
- .pipe(map((http_response) => {
7933
+ .pipe(map$1((http_response) => {
7757
7934
  if (http_response.result === undefined ||
7758
7935
  http_response.result === null ||
7759
7936
  http_response.result.status !== 'success') {
@@ -7807,7 +7984,7 @@ class EsolvePaymentService {
7807
7984
  responseType: 'json',
7808
7985
  observe: 'body',
7809
7986
  })
7810
- .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolvePaymentResult(response))), catchError((errorRes) => {
7987
+ .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolvePaymentResult(response))), catchError((errorRes) => {
7811
7988
  return this.errorHandler.handleHttpPostError('set-payment', errorRes);
7812
7989
  }));
7813
7990
  }
@@ -7856,7 +8033,7 @@ class EsolvePaymentService {
7856
8033
  responseType: 'json',
7857
8034
  observe: 'body',
7858
8035
  })
7859
- .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolvePaymentResult(response))), catchError((errorRes) => {
8036
+ .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolvePaymentResult(response))), catchError((errorRes) => {
7860
8037
  return this.errorHandler.handleHttpPostError('set-payment', errorRes);
7861
8038
  }));
7862
8039
  }
@@ -7872,7 +8049,7 @@ class EsolvePaymentService {
7872
8049
  .get(`${this.config.api_url}/get-account-payments.php`, {
7873
8050
  params: { ...options },
7874
8051
  })
7875
- .pipe(map((response) => {
8052
+ .pipe(map$1((response) => {
7876
8053
  if (response.records === undefined) {
7877
8054
  throw response;
7878
8055
  }
@@ -8100,7 +8277,7 @@ class EsolveShippingService {
8100
8277
  }
8101
8278
  return this.http
8102
8279
  .get(`${this.config.api_url}/get-shipping-methods.php`, { params })
8103
- .pipe(map((response) => {
8280
+ .pipe(map$1((response) => {
8104
8281
  if (response.records === undefined) {
8105
8282
  throw response;
8106
8283
  }
@@ -8137,7 +8314,7 @@ class EsolveShippingService {
8137
8314
  params = params.set('type', type);
8138
8315
  return this.http
8139
8316
  .get(`${this.config.api_url}/get-shipping-cost.php`, { params })
8140
- .pipe(map((response) => {
8317
+ .pipe(map$1((response) => {
8141
8318
  if (response.records === undefined) {
8142
8319
  throw response;
8143
8320
  }
@@ -8166,7 +8343,7 @@ class EsolveShippingService {
8166
8343
  }
8167
8344
  return this.http
8168
8345
  .get(`${this.config.api_url}/get-time-slots.php`, { params })
8169
- .pipe(map((response) => {
8346
+ .pipe(map$1((response) => {
8170
8347
  if (response.records === undefined ||
8171
8348
  Array.isArray(response.records)) {
8172
8349
  throw response;
@@ -8239,7 +8416,7 @@ class EsolveEnquiryService {
8239
8416
  responseType: 'json',
8240
8417
  observe: 'body',
8241
8418
  })
8242
- .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveEnquiryResult(response))), catchError((errorRes) => {
8419
+ .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveEnquiryResult(response))), catchError((errorRes) => {
8243
8420
  return this.errorHandler.handleHttpPostError('set-enquiry', errorRes);
8244
8421
  }));
8245
8422
  }
@@ -8283,7 +8460,7 @@ class EsolveWishlistService {
8283
8460
  * @returns An `Observable` with an array of cart items
8284
8461
  */
8285
8462
  getWishlist() {
8286
- return this.getWishlistRecords().pipe(map((response) => {
8463
+ return this.getWishlistRecords().pipe(map$1((response) => {
8287
8464
  if (response.records === undefined) {
8288
8465
  throw response;
8289
8466
  }
@@ -8311,7 +8488,7 @@ class EsolveWishlistService {
8311
8488
  responseType: 'json',
8312
8489
  observe: 'body',
8313
8490
  })
8314
- .pipe(map((response) => {
8491
+ .pipe(map$1((response) => {
8315
8492
  if (response.responses === undefined) {
8316
8493
  throw response;
8317
8494
  }
@@ -8332,7 +8509,7 @@ class EsolveWishlistService {
8332
8509
  responseType: 'json',
8333
8510
  observe: 'body',
8334
8511
  })
8335
- .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
8512
+ .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => {
8336
8513
  return new EsolveEmptyWishlistResult(response);
8337
8514
  })), catchError((errorRes) => {
8338
8515
  return this.errorHandler.handleHttpPostError('set-wishlist-empty', errorRes);
@@ -8414,7 +8591,7 @@ class EsolveSuppliersService {
8414
8591
  if (options?.internal_account) {
8415
8592
  params = params.set('internal_account', options.internal_account);
8416
8593
  }
8417
- return this.getSupplierRecords(params).pipe(map((records) => {
8594
+ return this.getSupplierRecords(params).pipe(map$1((records) => {
8418
8595
  const suppliers = [];
8419
8596
  for (const record of records) {
8420
8597
  suppliers.push(this.processSuppliers(record));
@@ -8429,7 +8606,7 @@ class EsolveSuppliersService {
8429
8606
  .get(`${this.config.api_url}/get-suppliers.php`, {
8430
8607
  params,
8431
8608
  })
8432
- .pipe(map((response) => {
8609
+ .pipe(map$1((response) => {
8433
8610
  if (response.records === undefined ||
8434
8611
  response.records.length === 0) {
8435
8612
  throw response;
@@ -8503,7 +8680,7 @@ class EsolveDeviceService {
8503
8680
  responseType: 'json',
8504
8681
  observe: 'body',
8505
8682
  })
8506
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveSetDeviceResult(response))), catchError$1((errorRes) => {
8683
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveSetDeviceResult(response))), catchError$1((errorRes) => {
8507
8684
  return this.errorHandler.handleHttpPostError('set-device', errorRes);
8508
8685
  }));
8509
8686
  }
@@ -8523,7 +8700,7 @@ class EsolveDeviceService {
8523
8700
  params = params.set('type', options.type);
8524
8701
  }
8525
8702
  }
8526
- return this.getUserDeviceRecords(params).pipe(map$1((response) => {
8703
+ return this.getUserDeviceRecords(params).pipe(map((response) => {
8527
8704
  if (response.records === undefined ||
8528
8705
  response.records.length <= 0) {
8529
8706
  throw response;
@@ -8624,7 +8801,7 @@ class EsolveWalletService {
8624
8801
  getBalances() {
8625
8802
  return this.http
8626
8803
  .get(`${this.config.api_url}/get-wallet-totals.php`)
8627
- .pipe(map$1((response) => {
8804
+ .pipe(map((response) => {
8628
8805
  if (response.records === undefined ||
8629
8806
  Array.isArray(response.records)) {
8630
8807
  throw response;
@@ -8661,7 +8838,7 @@ class EsolveWalletService {
8661
8838
  .get(`${this.config.api_url}/get-wallet-transactions.php`, {
8662
8839
  params: params,
8663
8840
  })
8664
- .pipe(map$1((response) => {
8841
+ .pipe(map((response) => {
8665
8842
  if (response.records === undefined) {
8666
8843
  throw response;
8667
8844
  }
@@ -8687,7 +8864,7 @@ class EsolveWalletService {
8687
8864
  responseType: 'json',
8688
8865
  observe: 'body',
8689
8866
  })
8690
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveResponseResult(response))), catchError$1((errorRes) => {
8867
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveResponseResult(response))), catchError$1((errorRes) => {
8691
8868
  return this.errorHandler.handleHttpPostError('set-wallet-cash-out', errorRes);
8692
8869
  }));
8693
8870
  }
@@ -8806,7 +8983,7 @@ class EsolveDeliveriesService {
8806
8983
  .get(`${this.config.api_url}/get-delivery-status.php`, {
8807
8984
  params,
8808
8985
  })
8809
- .pipe(map$1((response) => {
8986
+ .pipe(map((response) => {
8810
8987
  if (response.records === undefined ||
8811
8988
  Array.isArray(response.records)) {
8812
8989
  throw response;
@@ -8865,7 +9042,7 @@ class EsolveDeliveriesService {
8865
9042
  params = EsolveFilterFactory.convertToHttpParams(filters, params);
8866
9043
  }
8867
9044
  }
8868
- return this.getDeliveriesRecords(params).pipe(map$1((response) => {
9045
+ return this.getDeliveriesRecords(params).pipe(map((response) => {
8869
9046
  if (response.records === undefined ||
8870
9047
  response.records.length <= 0) {
8871
9048
  throw response;
@@ -9097,7 +9274,7 @@ class EsolveCompetitionsService {
9097
9274
  if (options?.identifier) {
9098
9275
  params = params.set('identifier', options.identifier);
9099
9276
  }
9100
- return this.getCompetitionRecords(params).pipe(map$1((records) => {
9277
+ return this.getCompetitionRecords(params).pipe(map((records) => {
9101
9278
  const competitions = [];
9102
9279
  for (const record of records) {
9103
9280
  competitions.push(this.processCompetition(record));
@@ -9129,12 +9306,12 @@ class EsolveCompetitionsService {
9129
9306
  observe: 'body',
9130
9307
  params,
9131
9308
  })
9132
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveCompetitionEntryResult(response))), catchError$1((errorRes) => {
9309
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveCompetitionEntryResult(response))), catchError$1((errorRes) => {
9133
9310
  return this.errorHandler.handleHttpPostError('set-competition-entry', errorRes);
9134
9311
  }));
9135
9312
  }
9136
9313
  getCompetitionSingle(params) {
9137
- return this.getCompetitionRecords(params).pipe(map$1((records) => {
9314
+ return this.getCompetitionRecords(params).pipe(map((records) => {
9138
9315
  const record = records[0];
9139
9316
  return this.processCompetition(record);
9140
9317
  }));
@@ -9144,7 +9321,7 @@ class EsolveCompetitionsService {
9144
9321
  .get(`${this.config.api_url}/get-competitions.php`, {
9145
9322
  params,
9146
9323
  })
9147
- .pipe(map$1((response) => {
9324
+ .pipe(map((response) => {
9148
9325
  if (response.records === undefined ||
9149
9326
  response.records.length <= 0) {
9150
9327
  throw response;
@@ -9264,7 +9441,7 @@ class EsolveReviewsService {
9264
9441
  .get(`${this.config.api_url}/get-item-reviews.php`, {
9265
9442
  params: params,
9266
9443
  })
9267
- .pipe(map$1((response) => {
9444
+ .pipe(map((response) => {
9268
9445
  if (response.records === undefined) {
9269
9446
  throw response;
9270
9447
  }
@@ -9306,7 +9483,7 @@ class EsolveReviewsService {
9306
9483
  observe: 'body',
9307
9484
  params,
9308
9485
  })
9309
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveReviewResult(response))), catchError$1((errorRes) => {
9486
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveReviewResult(response))), catchError$1((errorRes) => {
9310
9487
  return this.errorHandler.handleHttpPostError('set-item-review', errorRes);
9311
9488
  }));
9312
9489
  }
@@ -9455,7 +9632,7 @@ class EsolveAlbumsService {
9455
9632
  if (options?.rows) {
9456
9633
  params = params.set('rows', options.rows);
9457
9634
  }
9458
- return this.getAlbumsStream(params).pipe(map$1((response) => {
9635
+ return this.getAlbumsStream(params).pipe(map((response) => {
9459
9636
  if (response.records === undefined) {
9460
9637
  throw response;
9461
9638
  }
@@ -9496,7 +9673,7 @@ class EsolveAlbumsService {
9496
9673
  .get(`${this.config.api_url}/get-album-images.php`, {
9497
9674
  params,
9498
9675
  })
9499
- .pipe(map$1((response) => {
9676
+ .pipe(map((response) => {
9500
9677
  if (response.records === undefined) {
9501
9678
  throw response;
9502
9679
  }
@@ -9508,7 +9685,7 @@ class EsolveAlbumsService {
9508
9685
  }));
9509
9686
  }
9510
9687
  getAlbumSingle(params) {
9511
- return this.getAlbumsStream(params).pipe(map$1((response) => {
9688
+ return this.getAlbumsStream(params).pipe(map((response) => {
9512
9689
  if (response.records === undefined ||
9513
9690
  response.records.length <= 0) {
9514
9691
  throw response;
@@ -9586,7 +9763,7 @@ class EsolveCaptchaService {
9586
9763
  .get(`${this.config.api_url}/get-captcha.php`, {
9587
9764
  params,
9588
9765
  })
9589
- .pipe(map$1((response) => {
9766
+ .pipe(map((response) => {
9590
9767
  if (response.records === undefined ||
9591
9768
  Array.isArray(response.records)) {
9592
9769
  throw response;
@@ -9749,7 +9926,7 @@ class EsolveAffiliateService {
9749
9926
  .get(`${this.config.api_url}/get-affiliates.php`, {
9750
9927
  params,
9751
9928
  })
9752
- .pipe(map$1((response) => {
9929
+ .pipe(map((response) => {
9753
9930
  if (response.records === undefined ||
9754
9931
  response.records.length <= 0) {
9755
9932
  throw response;
@@ -9789,7 +9966,7 @@ class EsolveAffiliateService {
9789
9966
  .get(`${this.config.api_url}/get-affiliate-check.php`, {
9790
9967
  params,
9791
9968
  })
9792
- .pipe(map$1((response) => {
9969
+ .pipe(map((response) => {
9793
9970
  let record = response.records;
9794
9971
  if (Array.isArray(record)) {
9795
9972
  record = undefined;
@@ -9829,7 +10006,7 @@ class EsolveAffiliateService {
9829
10006
  responseType: 'json',
9830
10007
  observe: 'body',
9831
10008
  })
9832
- .pipe(map$1((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveAffiliateLinkResult(response))), catchError$1((errorRes) => {
10009
+ .pipe(map((http_response) => this.responseHandler.validateSingleHttpResponse(http_response, (response) => new EsolveAffiliateLinkResult(response))), catchError$1((errorRes) => {
9833
10010
  return this.errorHandler.handleHttpPostError('set-enquiry', errorRes);
9834
10011
  }));
9835
10012
  }
@@ -9906,7 +10083,7 @@ class EsolveCountryService {
9906
10083
  .get(`${this.config.api_url}/get-countries.php`, {
9907
10084
  params,
9908
10085
  })
9909
- .pipe(map$1((response) => {
10086
+ .pipe(map((response) => {
9910
10087
  if (response.records === undefined ||
9911
10088
  response.records.length <= 0) {
9912
10089
  throw response;
@@ -9946,5 +10123,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
9946
10123
  * Generated bundle index. Do not edit.
9947
10124
  */
9948
10125
 
9949
- export { ESOLVE_CONNECT_CONFIG, ESOLVE_EURUS_AUTO_LOGIN, EsolveAccountConfirmationResult, EsolveAccountPayment, EsolveAccountService, EsolveAdditionalStockImage, EsolveAddress, EsolveAddressResult, EsolveAffiliate, EsolveAffiliateCheckResult, EsolveAffiliateLinkResult, EsolveAffiliateService, EsolveAlbum, EsolveAlbumImage, EsolveAlbumImageList, EsolveAlbumList, EsolveAlbumsService, EsolveAsset, EsolveAssetsService, EsolveAuthService, EsolveBankingDetails, EsolveBanner, EsolveBannerImage, EsolveBannerImageHotspot, EsolveBannerService, EsolveCaptcha, EsolveCaptchaService, EsolveCartAlternative, EsolveCartItem, EsolveCartService, EsolveCartStockItem, EsolveCartTotals, EsolveCategoryTreeItem, EsolveCategoryTreeService, EsolveCdnSrcDirective, EsolveChangePasswordResult, EsolveCheckoutResult, EsolveClientAsset, EsolveClientAssetList, EsolveColour, EsolveCompetition, EsolveCompetitionDates, EsolveCompetitionEntryResult, EsolveCompetitionWinner, EsolveCompetitionsService, EsolveConfigService, EsolveCookieService, EsolveCountry, EsolveCountryService, EsolveCoupon, EsolveCouponsService, EsolveDeliveriesService, EsolveDelivery, EsolveDeliveryCategoryTotals, EsolveDeliveryList, EsolveDeliveryStatus, EsolveDependantItem, EsolveDeviceService, EsolveEmptyCartResult, EsolveEmptyWishlistResult, EsolveEnquiryResult, EsolveEnquiryService, EsolveErpDocumentRequest, EsolveErpDocumentsRequestResult, EsolveErrorHandlerService, EsolveFilterFactory, EsolveGenericFilter, EsolveGeocodeAddressResult, EsolveGeocodeCoordsResult, EsolveGeocodeResult, EsolveGeocoderService, EsolveHttpError, EsolveLinkedAsset, EsolveLinkedStockItem, EsolveList, EsolveLocation, EsolveLocationAddress, EsolveLocationContactInfo, EsolveLocationGEO, EsolveLocationList, EsolveLocationPOBoxAddress, EsolveLocationTradingDay, EsolveLocationTradingTimes, EsolveLocationUpdateResult, EsolveLocationsService, EsolveManufacturer, EsolveManufacturersService, EsolveMediaStockItem, EsolveMenuItem, EsolveMenuService, EsolveMultipleSelectFilter, EsolveNewsArticle, EsolveNewsArticleAuthor, EsolveNewsArticleList, EsolveNewsGroup, EsolveNewsService, EsolveNewsletterResult, EsolveOtp, EsolveOtpService, EsolveOtpValidation, EsolvePaymentMethod, EsolvePaymentResult, EsolvePaymentService, EsolveRange, EsolveRangeFilter, EsolveRangesService, EsolveRecipeStockItem, EsolveRegistrationResult, EsolveResetPasswordResult, EsolveResponseHandlerService, EsolveResponseResult, EsolveResult, EsolveReview, EsolveReviewList, EsolveReviewResult, EsolveReviewsService, EsolveSeoInfo, EsolveSeoService, EsolveSessionAddressUpdateResult, EsolveSessionClientUpdateResult, EsolveSessionMetadataService, EsolveSessionService, EsolveSessionShippingUpdateResult, EsolveSetDeviceResult, EsolveSetNotifyResult, EsolveShippingCost, EsolveShippingMethod, EsolveShippingService, EsolveShippingTotals, EsolveSingleSelectFilter, EsolveSpecial, EsolveSpecialDates, EsolveSpecialImage, EsolveSpecialImageCollection, EsolveSpecialsService, EsolveStatement, EsolveStatementAgeing, EsolveStatementBalances, EsolveStatementTransaction, EsolveStockBadge, EsolveStockBarcode, EsolveStockGroup, EsolveStockGroupItem, EsolveStockImage, EsolveStockImageCollection, EsolveStockItem, EsolveStockItemBase, EsolveStockItemList, EsolveStockItemLocationLevel, EsolveStockLeadTimes, EsolveStockPrice, EsolveStockReviewsReport, EsolveStockService, EsolveStockTransactionSales, EsolveSuggestedStockItem, EsolveSupplier, EsolveSuppliersService, EsolveTag, EsolveTagsService, EsolveTimeSlot, EsolveTimeSlotConfig, EsolveTimeSlotDate, EsolveTimeSlotDays, EsolveTimeSlotTimes, EsolveToggleFilter, EsolveTopic, EsolveTopicService, EsolveTransaction, EsolveTransactionAddress, EsolveTransactionAnalyticsData, EsolveTransactionApprovalResult, EsolveTransactionClient, EsolveTransactionDelivery, EsolveTransactionItem, EsolveTransactionItemPrice, EsolveTransactionList, EsolveTransactionLocation, EsolveTransactionPaymentMethod, EsolveTransactionPick, EsolveTransactionShippingMethod, EsolveTransactionTimeSlot, EsolveTransactionUser, EsolveTransactionsService, EsolveUserAccount, EsolveUserAccountBusiness, EsolveUserAccountContact, EsolveUserAccountResult, EsolveUserClientAccount, EsolveUserClientAccountBalances, EsolveUserDevice, EsolveVaultItem, EsolveVaultItemResult, EsolveVoucher, EsolveVouchersService, EsolveWalletBalances, EsolveWalletService, EsolveWalletTransaction, EsolveWalletTransactionsList, EsolveWishlistItem, EsolveWishlistService, NgEsolveConnectModule, esolveAuthInterceptor, esolveHexHash, esolveUnauthorizedErrorInterceptor, isEsolveCdnPath, isFtgCdnPath, isLegacyEsolveCdnPath, processEsolveImageSrc, provideEsolveImageLoader, provideNgEsolveConnect };
10126
+ export { ESOLVE_CONNECT_CONFIG, ESOLVE_EURUS_AUTO_LOGIN, EsolveAccountConfirmationResult, EsolveAccountPayment, EsolveAccountService, EsolveAdditionalStockImage, EsolveAddress, EsolveAddressResult, EsolveAffiliate, EsolveAffiliateCheckResult, EsolveAffiliateLinkResult, EsolveAffiliateService, EsolveAlbum, EsolveAlbumImage, EsolveAlbumImageList, EsolveAlbumList, EsolveAlbumsService, EsolveAsset, EsolveAssetsService, EsolveAuthService, EsolveBankingDetails, EsolveBanner, EsolveBannerImage, EsolveBannerImageHotspot, EsolveBannerService, EsolveCaptcha, EsolveCaptchaService, EsolveCartAlternative, EsolveCartItem, EsolveCartService, EsolveCartStockItem, EsolveCartTotals, EsolveCategoryTreeItem, EsolveCategoryTreeService, EsolveCdnSrcDirective, EsolveChangePasswordResult, EsolveCheckoutResult, EsolveClientAsset, EsolveClientAssetList, EsolveColour, EsolveCompetition, EsolveCompetitionDates, EsolveCompetitionEntryResult, EsolveCompetitionWinner, EsolveCompetitionsService, EsolveConfigService, EsolveCookieService, EsolveCountry, EsolveCountryService, EsolveCoupon, EsolveCouponsService, EsolveDeliveriesService, EsolveDelivery, EsolveDeliveryCategoryTotals, EsolveDeliveryList, EsolveDeliveryStatus, EsolveDependantItem, EsolveDeviceService, EsolveEmptyCartResult, EsolveEmptyWishlistResult, EsolveEnquiryResult, EsolveEnquiryService, EsolveErpDocumentRequest, EsolveErpDocumentsRequestResult, EsolveErrorHandlerService, EsolveEvent, EsolveEventTargetService, EsolveEventType, EsolveFilterFactory, EsolveGenericFilter, EsolveGeocodeAddressResult, EsolveGeocodeCoordsResult, EsolveGeocodeResult, EsolveGeocoderService, EsolveHttpError, EsolveLinkedAsset, EsolveLinkedStockItem, EsolveList, EsolveLocation, EsolveLocationAddress, EsolveLocationContactInfo, EsolveLocationGEO, EsolveLocationList, EsolveLocationPOBoxAddress, EsolveLocationTradingDay, EsolveLocationTradingTimes, EsolveLocationUpdateResult, EsolveLocationsService, EsolveManufacturer, EsolveManufacturersService, EsolveMediaStockItem, EsolveMenuItem, EsolveMenuService, EsolveMultipleSelectFilter, EsolveNewsArticle, EsolveNewsArticleAuthor, EsolveNewsArticleList, EsolveNewsGroup, EsolveNewsService, EsolveNewsletterResult, EsolveNotificationButtonAction, EsolveNotificationDates, EsolveNotificationsService, EsolveOtp, EsolveOtpService, EsolveOtpValidation, EsolvePaymentMethod, EsolvePaymentResult, EsolvePaymentService, EsolveRange, EsolveRangeFilter, EsolveRangesService, EsolveRecipeStockItem, EsolveRegistrationResult, EsolveResetPasswordResult, EsolveResponseHandlerService, EsolveResponseResult, EsolveResult, EsolveReview, EsolveReviewList, EsolveReviewResult, EsolveReviewsService, EsolveSeoInfo, EsolveSeoService, EsolveSessionAddressUpdateResult, EsolveSessionClientUpdateResult, EsolveSessionMetadataService, EsolveSessionService, EsolveSessionShippingUpdateResult, EsolveSetDeviceResult, EsolveSetNotifyResult, EsolveShippingCost, EsolveShippingMethod, EsolveShippingService, EsolveShippingTotals, EsolveSingleSelectFilter, EsolveSpecial, EsolveSpecialDates, EsolveSpecialImage, EsolveSpecialImageCollection, EsolveSpecialsService, EsolveStatement, EsolveStatementAgeing, EsolveStatementBalances, EsolveStatementTransaction, EsolveStockBadge, EsolveStockBarcode, EsolveStockGroup, EsolveStockGroupItem, EsolveStockImage, EsolveStockImageCollection, EsolveStockItem, EsolveStockItemBase, EsolveStockItemList, EsolveStockItemLocationLevel, EsolveStockLeadTimes, EsolveStockPrice, EsolveStockReviewsReport, EsolveStockService, EsolveStockTransactionSales, EsolveSuggestedStockItem, EsolveSupplier, EsolveSuppliersService, EsolveSystemNotification, EsolveSystemNotificationType, EsolveTag, EsolveTagsService, EsolveTimeSlot, EsolveTimeSlotConfig, EsolveTimeSlotDate, EsolveTimeSlotDays, EsolveTimeSlotTimes, EsolveToggleFilter, EsolveTopic, EsolveTopicService, EsolveTransaction, EsolveTransactionAddress, EsolveTransactionAnalyticsData, EsolveTransactionApprovalResult, EsolveTransactionClient, EsolveTransactionDelivery, EsolveTransactionItem, EsolveTransactionItemPrice, EsolveTransactionList, EsolveTransactionLocation, EsolveTransactionPaymentMethod, EsolveTransactionPick, EsolveTransactionShippingMethod, EsolveTransactionTimeSlot, EsolveTransactionUser, EsolveTransactionsService, EsolveUserAccount, EsolveUserAccountBusiness, EsolveUserAccountContact, EsolveUserAccountResult, EsolveUserClientAccount, EsolveUserClientAccountBalances, EsolveUserDevice, EsolveVaultItem, EsolveVaultItemResult, EsolveVoucher, EsolveVouchersService, EsolveWalletBalances, EsolveWalletService, EsolveWalletTransaction, EsolveWalletTransactionsList, EsolveWishlistItem, EsolveWishlistService, NgEsolveConnectModule, esolveAuthInterceptor, esolveHexHash, esolveUnauthorizedErrorInterceptor, isEsolveCdnPath, isFtgCdnPath, isLegacyEsolveCdnPath, processEsolveImageSrc, provideEsolveImageLoader, provideNgEsolveConnect };
9950
10127
  //# sourceMappingURL=esolve-ng-esolve-connect.mjs.map