@etsoo/react 1.3.29 → 1.3.33
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/lib/app/{Constants.d.ts → CoreConstants.d.ts} +2 -2
- package/lib/app/CoreConstants.js +14 -0
- package/lib/app/ISmartERPUser.d.ts +4 -0
- package/lib/app/RefreshTokenRQ.d.ts +4 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/package.json +4 -4
- package/src/app/{Constants.ts → CoreConstants.ts} +2 -2
- package/src/app/ISmartERPUser.ts +6 -1
- package/src/app/RefreshTokenRQ.ts +5 -0
- package/src/index.ts +1 -0
- package/lib/app/Constants.js +0 -14
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core constants
|
|
3
|
+
*/
|
|
4
|
+
export var CoreConstants;
|
|
5
|
+
(function (CoreConstants) {
|
|
6
|
+
/**
|
|
7
|
+
* Rresh token cache field
|
|
8
|
+
*/
|
|
9
|
+
CoreConstants.FieldRefreshToken = 'RefreshToken';
|
|
10
|
+
/**
|
|
11
|
+
* Refresh token header field name
|
|
12
|
+
*/
|
|
13
|
+
CoreConstants.TokenHeaderRefresh = 'SmartERPRefreshToken';
|
|
14
|
+
})(CoreConstants || (CoreConstants = {}));
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.33",
|
|
4
4
|
"description": "TypeScript ReactJs framework",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"@emotion/react": "^11.6.0",
|
|
51
51
|
"@emotion/style": "^0.8.0",
|
|
52
52
|
"@emotion/styled": "^11.6.0",
|
|
53
|
-
"@etsoo/appscript": "^1.1.
|
|
53
|
+
"@etsoo/appscript": "^1.1.49",
|
|
54
54
|
"@etsoo/notificationbase": "^1.0.93",
|
|
55
55
|
"@etsoo/shared": "^1.0.75",
|
|
56
|
-
"@mui/icons-material": "^5.
|
|
57
|
-
"@mui/material": "^5.
|
|
56
|
+
"@mui/icons-material": "^5.2.0",
|
|
57
|
+
"@mui/material": "^5.2.0",
|
|
58
58
|
"@reach/router": "^1.3.4",
|
|
59
59
|
"@types/pica": "^5.1.3",
|
|
60
60
|
"@types/pulltorefreshjs": "^0.1.5",
|
package/src/app/ISmartERPUser.ts
CHANGED
|
@@ -3,7 +3,12 @@ import { IActionResult, IUser } from '@etsoo/appscript';
|
|
|
3
3
|
/**
|
|
4
4
|
* SmartERP user interface
|
|
5
5
|
*/
|
|
6
|
-
export interface ISmartERPUser extends IUser {
|
|
6
|
+
export interface ISmartERPUser extends IUser {
|
|
7
|
+
/**
|
|
8
|
+
* Service refresh token
|
|
9
|
+
*/
|
|
10
|
+
readonly serviceToken?: string;
|
|
11
|
+
}
|
|
7
12
|
|
|
8
13
|
/**
|
|
9
14
|
* SmartERP user login result
|
package/src/index.ts
CHANGED
package/lib/app/Constants.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Constants
|
|
3
|
-
*/
|
|
4
|
-
export var Constants;
|
|
5
|
-
(function (Constants) {
|
|
6
|
-
/**
|
|
7
|
-
* Rresh token cache field
|
|
8
|
-
*/
|
|
9
|
-
Constants.FieldRefreshToken = 'RefreshToken';
|
|
10
|
-
/**
|
|
11
|
-
* Refresh token header field name
|
|
12
|
-
*/
|
|
13
|
-
Constants.TokenHeaderRefresh = 'SmartERPRefreshToken';
|
|
14
|
-
})(Constants || (Constants = {}));
|