@etsoo/appscript 1.5.15 → 1.5.16
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/cjs/erp/rq/AuthRequest.d.ts +46 -0
- package/lib/cjs/erp/rq/AuthRequest.js +2 -0
- package/lib/cjs/erp/rq/LoginRQ.d.ts +3 -3
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/mjs/erp/rq/AuthRequest.d.ts +46 -0
- package/lib/mjs/erp/rq/AuthRequest.js +1 -0
- package/lib/mjs/erp/rq/LoginRQ.d.ts +3 -3
- package/lib/mjs/index.d.ts +1 -0
- package/lib/mjs/index.js +1 -0
- package/package.json +1 -1
- package/src/erp/rq/AuthRequest.ts +53 -0
- package/src/erp/rq/LoginRQ.ts +3 -3
- package/src/index.ts +1 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Application authentication request object
|
|
3
|
+
* 程序认证请求对象
|
|
4
|
+
*/
|
|
5
|
+
export type AuthRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* Application ID
|
|
8
|
+
* 应用编号
|
|
9
|
+
*/
|
|
10
|
+
appId: number;
|
|
11
|
+
/**
|
|
12
|
+
* Application key
|
|
13
|
+
* 应用键值
|
|
14
|
+
*/
|
|
15
|
+
appKey: string;
|
|
16
|
+
/**
|
|
17
|
+
* login hint (user login name)
|
|
18
|
+
* 登录提示(个人登录名)
|
|
19
|
+
*/
|
|
20
|
+
loginHint?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Redirect URI
|
|
23
|
+
* 重定向URI
|
|
24
|
+
*/
|
|
25
|
+
redirectUri: string;
|
|
26
|
+
/**
|
|
27
|
+
* Response type, code or token
|
|
28
|
+
* 响应类型,代码或令牌
|
|
29
|
+
*/
|
|
30
|
+
responseType: 'code' | 'token';
|
|
31
|
+
/**
|
|
32
|
+
* Scope
|
|
33
|
+
* 作用域
|
|
34
|
+
*/
|
|
35
|
+
scope: string;
|
|
36
|
+
/**
|
|
37
|
+
* State value
|
|
38
|
+
* 状态值
|
|
39
|
+
*/
|
|
40
|
+
state: string;
|
|
41
|
+
/**
|
|
42
|
+
* Signature
|
|
43
|
+
* 签名
|
|
44
|
+
*/
|
|
45
|
+
sign: string;
|
|
46
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IdType } from '@etsoo/shared';
|
|
2
1
|
import { LoginIdRQ } from './LoginIdRQ';
|
|
2
|
+
import { AuthRequest } from './AuthRequest';
|
|
3
3
|
/**
|
|
4
4
|
* Login request data
|
|
5
5
|
*/
|
|
@@ -17,7 +17,7 @@ export type LoginRQ = LoginIdRQ & {
|
|
|
17
17
|
*/
|
|
18
18
|
timezone?: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Authorization request data
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
auth?: AuthRequest;
|
|
23
23
|
};
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export * from './erp/dto/PinDto';
|
|
|
42
42
|
export * from './erp/dto/PlaceParsedDto';
|
|
43
43
|
export * from './erp/dto/ResponseActionMessageDto';
|
|
44
44
|
export * from './erp/dto/ResultPayload';
|
|
45
|
+
export * from './erp/rq/AuthRequest';
|
|
45
46
|
export * from './erp/rq/LoginIdRQ';
|
|
46
47
|
export * from './erp/rq/LoginRQ';
|
|
47
48
|
export * from './erp/rq/MemberListRQ';
|
package/lib/cjs/index.js
CHANGED
|
@@ -67,6 +67,7 @@ __exportStar(require("./erp/dto/PlaceParsedDto"), exports);
|
|
|
67
67
|
__exportStar(require("./erp/dto/ResponseActionMessageDto"), exports);
|
|
68
68
|
__exportStar(require("./erp/dto/ResultPayload"), exports);
|
|
69
69
|
// erp rq
|
|
70
|
+
__exportStar(require("./erp/rq/AuthRequest"), exports);
|
|
70
71
|
__exportStar(require("./erp/rq/LoginIdRQ"), exports);
|
|
71
72
|
__exportStar(require("./erp/rq/LoginRQ"), exports);
|
|
72
73
|
__exportStar(require("./erp/rq/MemberListRQ"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Application authentication request object
|
|
3
|
+
* 程序认证请求对象
|
|
4
|
+
*/
|
|
5
|
+
export type AuthRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* Application ID
|
|
8
|
+
* 应用编号
|
|
9
|
+
*/
|
|
10
|
+
appId: number;
|
|
11
|
+
/**
|
|
12
|
+
* Application key
|
|
13
|
+
* 应用键值
|
|
14
|
+
*/
|
|
15
|
+
appKey: string;
|
|
16
|
+
/**
|
|
17
|
+
* login hint (user login name)
|
|
18
|
+
* 登录提示(个人登录名)
|
|
19
|
+
*/
|
|
20
|
+
loginHint?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Redirect URI
|
|
23
|
+
* 重定向URI
|
|
24
|
+
*/
|
|
25
|
+
redirectUri: string;
|
|
26
|
+
/**
|
|
27
|
+
* Response type, code or token
|
|
28
|
+
* 响应类型,代码或令牌
|
|
29
|
+
*/
|
|
30
|
+
responseType: 'code' | 'token';
|
|
31
|
+
/**
|
|
32
|
+
* Scope
|
|
33
|
+
* 作用域
|
|
34
|
+
*/
|
|
35
|
+
scope: string;
|
|
36
|
+
/**
|
|
37
|
+
* State value
|
|
38
|
+
* 状态值
|
|
39
|
+
*/
|
|
40
|
+
state: string;
|
|
41
|
+
/**
|
|
42
|
+
* Signature
|
|
43
|
+
* 签名
|
|
44
|
+
*/
|
|
45
|
+
sign: string;
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IdType } from '@etsoo/shared';
|
|
2
1
|
import { LoginIdRQ } from './LoginIdRQ';
|
|
2
|
+
import { AuthRequest } from './AuthRequest';
|
|
3
3
|
/**
|
|
4
4
|
* Login request data
|
|
5
5
|
*/
|
|
@@ -17,7 +17,7 @@ export type LoginRQ = LoginIdRQ & {
|
|
|
17
17
|
*/
|
|
18
18
|
timezone?: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Authorization request data
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
auth?: AuthRequest;
|
|
23
23
|
};
|
package/lib/mjs/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export * from './erp/dto/PinDto';
|
|
|
42
42
|
export * from './erp/dto/PlaceParsedDto';
|
|
43
43
|
export * from './erp/dto/ResponseActionMessageDto';
|
|
44
44
|
export * from './erp/dto/ResultPayload';
|
|
45
|
+
export * from './erp/rq/AuthRequest';
|
|
45
46
|
export * from './erp/rq/LoginIdRQ';
|
|
46
47
|
export * from './erp/rq/LoginRQ';
|
|
47
48
|
export * from './erp/rq/MemberListRQ';
|
package/lib/mjs/index.js
CHANGED
|
@@ -50,6 +50,7 @@ export * from './erp/dto/PlaceParsedDto';
|
|
|
50
50
|
export * from './erp/dto/ResponseActionMessageDto';
|
|
51
51
|
export * from './erp/dto/ResultPayload';
|
|
52
52
|
// erp rq
|
|
53
|
+
export * from './erp/rq/AuthRequest';
|
|
53
54
|
export * from './erp/rq/LoginIdRQ';
|
|
54
55
|
export * from './erp/rq/LoginRQ';
|
|
55
56
|
export * from './erp/rq/MemberListRQ';
|
package/package.json
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Application authentication request object
|
|
3
|
+
* 程序认证请求对象
|
|
4
|
+
*/
|
|
5
|
+
export type AuthRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* Application ID
|
|
8
|
+
* 应用编号
|
|
9
|
+
*/
|
|
10
|
+
appId: number;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Application key
|
|
14
|
+
* 应用键值
|
|
15
|
+
*/
|
|
16
|
+
appKey: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* login hint (user login name)
|
|
20
|
+
* 登录提示(个人登录名)
|
|
21
|
+
*/
|
|
22
|
+
loginHint?: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Redirect URI
|
|
26
|
+
* 重定向URI
|
|
27
|
+
*/
|
|
28
|
+
redirectUri: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Response type, code or token
|
|
32
|
+
* 响应类型,代码或令牌
|
|
33
|
+
*/
|
|
34
|
+
responseType: 'code' | 'token';
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Scope
|
|
38
|
+
* 作用域
|
|
39
|
+
*/
|
|
40
|
+
scope: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* State value
|
|
44
|
+
* 状态值
|
|
45
|
+
*/
|
|
46
|
+
state: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Signature
|
|
50
|
+
* 签名
|
|
51
|
+
*/
|
|
52
|
+
sign: string;
|
|
53
|
+
};
|
package/src/erp/rq/LoginRQ.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IdType } from '@etsoo/shared';
|
|
2
1
|
import { LoginIdRQ } from './LoginIdRQ';
|
|
2
|
+
import { AuthRequest } from './AuthRequest';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Login request data
|
|
@@ -21,7 +21,7 @@ export type LoginRQ = LoginIdRQ & {
|
|
|
21
21
|
timezone?: string;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Authorization request data
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
auth?: AuthRequest;
|
|
27
27
|
};
|
package/src/index.ts
CHANGED
|
@@ -57,6 +57,7 @@ export * from './erp/dto/ResponseActionMessageDto';
|
|
|
57
57
|
export * from './erp/dto/ResultPayload';
|
|
58
58
|
|
|
59
59
|
// erp rq
|
|
60
|
+
export * from './erp/rq/AuthRequest';
|
|
60
61
|
export * from './erp/rq/LoginIdRQ';
|
|
61
62
|
export * from './erp/rq/LoginRQ';
|
|
62
63
|
export * from './erp/rq/MemberListRQ';
|