@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/esm2020/index.mjs +2 -1
- package/esm2020/lib/auth/esolve-auth-interceptor.service.mjs +3 -1
- package/esm2020/lib/menu/esolve-menu-item.model.mjs +2 -2
- package/esm2020/lib/session/esolve-session.model.mjs +16 -7
- package/esm2020/lib/shared/esolve-hex-hash.function.mjs +26 -0
- package/esm2020/lib/stock/classes/esolve-stock-item-base.model.mjs +16 -1
- package/esm2020/lib/stock/interfaces/esolve-stock-base-record.interface.mjs +1 -1
- package/fesm2015/esolve-ng-esolve-connect.mjs +92 -41
- package/fesm2015/esolve-ng-esolve-connect.mjs.map +1 -1
- package/fesm2020/esolve-ng-esolve-connect.mjs +59 -8
- package/fesm2020/esolve-ng-esolve-connect.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/session/esolve-session.model.d.ts +2 -0
- package/lib/shared/esolve-hex-hash.function.d.ts +13 -0
- package/lib/stock/classes/esolve-stock-item-base.model.d.ts +12 -0
- package/lib/stock/interfaces/esolve-stock-base-record.interface.d.ts +3 -0
- package/package.json +1 -1
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;
|