@esolve/ng-esolve-connect 0.32.0 → 0.33.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.
package/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './lib/esolve-connect-config.constant';
4
4
  export * from './lib/shared/esolve-list.model';
5
5
  export * from './lib/shared/esolve-result.model';
6
6
  export * from './lib/shared/esolve-url-target.type';
7
+ export * from './lib/shared/esolve-hex-hash.function';
7
8
  export * from './lib/shared/custom-fields';
8
9
  export * from './lib/shared/filters';
9
10
  export * from './lib/shared/response';
@@ -4,10 +4,12 @@ export declare class EsolveSession implements EsolveSessionData {
4
4
  location_id: number;
5
5
  readonly key: string;
6
6
  readonly expiration_date?: Date | undefined;
7
+ private state_hash?;
7
8
  constructor(id?: number, location_id?: number, key?: string, expiration_date?: Date | undefined);
8
9
  get expired(): boolean;
9
10
  get authenticated(): boolean;
10
11
  get valid(): boolean;
11
12
  updateUser(user_id: number): void;
12
13
  updateLocation(location_id: number): void;
14
+ getStateHash(): string;
13
15
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generates a short hexadecimal hash that will be used to indicate a change in
3
+ * state.
4
+ *
5
+ * NOTE: Not to be confused with an actual hash checksum, like MD5 or SHA256.
6
+ * It should only be used to indicate that a state has changed. It should not be
7
+ * used for encryption.
8
+ *
9
+ * @param values Raw strings and numbers to hash
10
+ *
11
+ * @returns Hexadecimal hash value
12
+ */
13
+ export declare function esolveHexHash(...values: (string | number)[]): string;
@@ -29,6 +29,18 @@ export declare class EsolveStockItemBase<T extends EsolveCustomFields = EsolveCu
29
29
  * Search engine friendly name
30
30
  */
31
31
  sef_name: string;
32
+ /**
33
+ * Search composite field made up of key phrases
34
+ */
35
+ search_composite: string;
36
+ /**
37
+ * Type field. General high grouping
38
+ */
39
+ type: string;
40
+ /**
41
+ * Sub type field. General high grouping
42
+ */
43
+ sub_type: string;
32
44
  /**
33
45
  * Short description of stock item
34
46
  */
@@ -16,6 +16,9 @@ export interface EsolveStockBaseRecord<T extends EsolveCustomFields = EsolveCust
16
16
  barcode: string;
17
17
  name: string;
18
18
  sef_name: string;
19
+ search_composite: string;
20
+ type: string;
21
+ sub_type: string;
19
22
  seo_page_title: string;
20
23
  seo_keywords: string;
21
24
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esolve/ng-esolve-connect",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "An Angular library that speaks to an eSolve instance's API",
5
5
  "ng-add": {
6
6
  "save": "true"