@logto/connector-feishu-web 1.0.0-beta.17 → 1.0.0-beta.19

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ConnectorPlatform, validateConfig, ConnectorError, ConnectorErrorCodes, ConnectorType } from '@logto/connector-kit';
1
+ import { ConnectorPlatform, ConnectorConfigFormItemType, validateConfig, ConnectorError, ConnectorErrorCodes, ConnectorType } from '@logto/connector-kit';
2
2
  import { got, HTTPError } from 'got';
3
3
  import { z } from 'zod';
4
4
 
@@ -35,7 +35,22 @@ const defaultMetadata = {
35
35
  en: 'Feishu is an enterprise collaboration platform developed by ByteDance',
36
36
  },
37
37
  readme: './README.md',
38
- configTemplate: './docs/config-template.json',
38
+ formItems: [
39
+ {
40
+ key: 'appId',
41
+ label: 'App ID',
42
+ type: ConnectorConfigFormItemType.Text,
43
+ required: true,
44
+ placeholder: '<app-id>',
45
+ },
46
+ {
47
+ key: 'appSecret',
48
+ label: 'App Secret',
49
+ type: ConnectorConfigFormItemType.Text,
50
+ required: true,
51
+ placeholder: '<app-secret>',
52
+ },
53
+ ],
39
54
  };
40
55
 
41
56
  const feishuConfigGuard = z.object({
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "logo-dark.svg"
12
12
  ],
13
13
  "dependencies": {
14
- "@logto/connector-kit": "1.0.0-rc.2",
14
+ "@logto/connector-kit": "1.0.0-rc.3",
15
15
  "@silverhand/essentials": "2.1.0",
16
16
  "got": "^12.5.3",
17
17
  "snakecase-keys": "^5.1.0",
@@ -51,7 +51,7 @@
51
51
  "access": "public"
52
52
  },
53
53
  "name": "@logto/connector-feishu-web",
54
- "version": "1.0.0-beta.17",
54
+ "version": "1.0.0-beta.19",
55
55
  "description": "Feishu web connector.",
56
56
  "author": "Silverhand Inc. <contact@silverhand.io>",
57
57
  "scripts": {
@@ -1,4 +0,0 @@
1
- {
2
- "appId": "<app-id>",
3
- "appSecret": "<app-secret>"
4
- }