@esolve/ng-esolve-connect 0.110.0 → 0.111.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/esm2022/lib/device/esolve-device.service.mjs +4 -1
  2. package/esm2022/lib/device/index.mjs +2 -1
  3. package/esm2022/lib/device/interfaces/esolve-device.interface.mjs +1 -1
  4. package/esm2022/lib/device/interfaces/esolve-user-device-options.interface.mjs +1 -1
  5. package/esm2022/lib/device/types/esolve-device-type.type.mjs +2 -0
  6. package/esm2022/lib/device/types/index.mjs +2 -0
  7. package/esm2022/lib/locations/classes/esolve-location.model.mjs +39 -1
  8. package/esm2022/lib/locations/interfaces/esolve-location-record.interface.mjs +1 -1
  9. package/esm2022/lib/locations/types/esolve-location-image-size.type.mjs +2 -0
  10. package/esm2022/lib/locations/types/index.mjs +2 -1
  11. package/esm2022/media/lib/types/esolve-media-layout-section-type.type.mjs +1 -1
  12. package/fesm2022/esolve-ng-esolve-connect.mjs +41 -0
  13. package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
  14. package/lib/device/index.d.ts +1 -0
  15. package/lib/device/interfaces/esolve-device.interface.d.ts +2 -0
  16. package/lib/device/interfaces/esolve-user-device-options.interface.d.ts +2 -0
  17. package/lib/device/types/esolve-device-type.type.d.ts +1 -0
  18. package/lib/device/types/index.d.ts +1 -0
  19. package/lib/locations/classes/esolve-location.model.d.ts +22 -0
  20. package/lib/locations/interfaces/esolve-location-record.interface.d.ts +2 -0
  21. package/lib/locations/types/esolve-location-image-size.type.d.ts +1 -0
  22. package/lib/locations/types/index.d.ts +1 -0
  23. package/media/lib/types/esolve-media-layout-section-type.type.d.ts +1 -1
  24. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
1
  export * from './interfaces';
2
2
  export * from './classes';
3
+ export * from './types';
3
4
  export * from './esolve-device.service';
@@ -1,8 +1,10 @@
1
+ import { EsolveDeviceType } from '../types';
1
2
  export interface EsolveDevice {
2
3
  uuid: string;
3
4
  platform: string;
4
5
  platform_version: string;
5
6
  manufacturer: string;
6
7
  model: string;
8
+ type?: EsolveDeviceType;
7
9
  messaging_id: string;
8
10
  }
@@ -1,5 +1,7 @@
1
+ import { EsolveDeviceType } from '../types';
1
2
  export interface EsolveUserDeviceOptions {
2
3
  location_id?: number;
3
4
  user_id?: number;
4
5
  devices_id?: number;
6
+ type?: EsolveDeviceType;
5
7
  }
@@ -0,0 +1 @@
1
+ export type EsolveDeviceType = 'app' | 'rep' | 'picker';
@@ -0,0 +1 @@
1
+ export { EsolveDeviceType } from './esolve-device-type.type';
@@ -5,6 +5,7 @@ import { EsolveLocationPOBoxAddress } from './esolve-location-pobox-address.mode
5
5
  import { EsolveLocationTradingTimes } from './esolve-location-trading-times.model';
6
6
  import { EsolveLocationGEO } from './esolve-location-geo.model';
7
7
  import { EsolveCustomFields } from '../../shared/custom-fields';
8
+ import { EsolveLocationImageSize } from '../types';
8
9
  export declare class EsolveLocation<T extends EsolveCustomFields = EsolveCustomFields> {
9
10
  id: number;
10
11
  identifier: string;
@@ -29,5 +30,26 @@ export declare class EsolveLocation<T extends EsolveCustomFields = EsolveCustomF
29
30
  * Location custom fields
30
31
  */
31
32
  custom_fields?: T;
33
+ /**
34
+ * Image filename
35
+ */
36
+ private image_name;
37
+ /**
38
+ * Image Last modified
39
+ */
40
+ private image_last_modified;
41
+ /**
42
+ * Path to tiny location image
43
+ */
44
+ get tiny_image_src(): string;
45
+ /**
46
+ * Path to thumbnail location image
47
+ */
48
+ get thumbnail_image_src(): string;
49
+ /**
50
+ * Path to small location image
51
+ */
52
+ get small_image_src(): string;
32
53
  constructor(record: EsolveLocationRecord<T>);
54
+ getImagePath(image_size: EsolveLocationImageSize): string;
33
55
  }
@@ -51,5 +51,7 @@ export interface EsolveLocationRecord<T extends EsolveCustomFields = EsolveCusto
51
51
  distance: number;
52
52
  range: number;
53
53
  target_description: string;
54
+ image_name?: string;
55
+ image_last_modified?: string;
54
56
  custom_fields?: T;
55
57
  }
@@ -0,0 +1 @@
1
+ export type EsolveLocationImageSize = 'tiny' | 'thumb' | 'small';
@@ -1 +1,2 @@
1
1
  export * from './esolve-location-sort-field.type';
2
+ export * from './esolve-location-image-size.type';
@@ -1 +1 @@
1
- export type EsolveMediaLayoutSectionType = 'media' | 'banner' | 'linked_stock' | 'stock' | 'custom';
1
+ export type EsolveMediaLayoutSectionType = 'media' | 'banner' | 'albums' | 'linked_stock' | 'stock' | 'custom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esolve/ng-esolve-connect",
3
- "version": "0.110.0",
3
+ "version": "0.111.1",
4
4
  "homepage": "https://www.esolve.co.za/",
5
5
  "description": "An Angular library that speaks to an eSolve instance's API",
6
6
  "peerDependencies": {