@etsoo/appscript 1.5.15 → 1.5.17

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.
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
- * Service id or uid
20
+ * Authorization request data
21
21
  */
22
- serviceId?: IdType;
22
+ auth?: AuthRequest;
23
23
  };
@@ -4,6 +4,7 @@
4
4
  "add": "Add",
5
5
  "assignedId": "Assigned ID",
6
6
  "audits": "Audits",
7
+ "authFailed": "Authentication failed",
7
8
  "author": "Author",
8
9
  "authorizer": "Authorizer",
9
10
  "applicant": "Applicant",
@@ -4,6 +4,7 @@
4
4
  "add": "添加",
5
5
  "assignedId": "分配的编号",
6
6
  "audits": "操作历史",
7
+ "authFailed": "认证失败",
7
8
  "author": "作者",
8
9
  "authorizer": "授权人",
9
10
  "applicant": "申请人",
@@ -4,6 +4,7 @@
4
4
  "add": "添加",
5
5
  "assignedId": "分配的編號",
6
6
  "audits": "操作歷史",
7
+ "authFailed": "認證失敗",
7
8
  "author": "作者",
8
9
  "authorizer": "授權人",
9
10
  "applicant": "申請人",
@@ -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
- * Service id or uid
20
+ * Authorization request data
21
21
  */
22
- serviceId?: IdType;
22
+ auth?: AuthRequest;
23
23
  };
@@ -4,6 +4,7 @@
4
4
  "add": "Add",
5
5
  "assignedId": "Assigned ID",
6
6
  "audits": "Audits",
7
+ "authFailed": "Authentication failed",
7
8
  "author": "Author",
8
9
  "authorizer": "Authorizer",
9
10
  "applicant": "Applicant",
@@ -4,6 +4,7 @@
4
4
  "add": "添加",
5
5
  "assignedId": "分配的编号",
6
6
  "audits": "操作历史",
7
+ "authFailed": "认证失败",
7
8
  "author": "作者",
8
9
  "authorizer": "授权人",
9
10
  "applicant": "申请人",
@@ -4,6 +4,7 @@
4
4
  "add": "添加",
5
5
  "assignedId": "分配的編號",
6
6
  "audits": "操作歷史",
7
+ "authFailed": "認證失敗",
7
8
  "author": "作者",
8
9
  "authorizer": "授權人",
9
10
  "applicant": "申請人",
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.5.15",
3
+ "version": "1.5.17",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -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
+ };
@@ -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
- * Service id or uid
24
+ * Authorization request data
25
25
  */
26
- serviceId?: IdType;
26
+ auth?: AuthRequest;
27
27
  };
package/src/i18n/en.json CHANGED
@@ -4,6 +4,7 @@
4
4
  "add": "Add",
5
5
  "assignedId": "Assigned ID",
6
6
  "audits": "Audits",
7
+ "authFailed": "Authentication failed",
7
8
  "author": "Author",
8
9
  "authorizer": "Authorizer",
9
10
  "applicant": "Applicant",
@@ -4,6 +4,7 @@
4
4
  "add": "添加",
5
5
  "assignedId": "分配的编号",
6
6
  "audits": "操作历史",
7
+ "authFailed": "认证失败",
7
8
  "author": "作者",
8
9
  "authorizer": "授权人",
9
10
  "applicant": "申请人",
@@ -4,6 +4,7 @@
4
4
  "add": "添加",
5
5
  "assignedId": "分配的編號",
6
6
  "audits": "操作歷史",
7
+ "authFailed": "認證失敗",
7
8
  "author": "作者",
8
9
  "authorizer": "授權人",
9
10
  "applicant": "申請人",
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';