@cryozerolabs/n8n-nodes-dingtalk 0.1.1 → 0.3.1
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/README.md +44 -4
- package/dist/credentials/DingtalkApi.credentials.js +8 -1
- package/dist/credentials/DingtalkApi.credentials.js.map +1 -1
- package/dist/docs/images/notable-ai-table-guide.png +0 -0
- package/dist/nodes/DingtalkNode/DingtalkNode.node.d.ts +20 -0
- package/dist/nodes/DingtalkNode/DingtalkNode.node.js +38 -68
- package/dist/nodes/DingtalkNode/DingtalkNode.node.js.map +1 -1
- package/dist/nodes/DingtalkNode/DingtalkNode.node.json +5 -5
- package/dist/nodes/DingtalkNode/resources/auth/index.js +5 -1
- package/dist/nodes/DingtalkNode/resources/auth/index.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/doc/index.d.ts +2 -0
- package/dist/nodes/DingtalkNode/resources/doc/index.js +13 -0
- package/dist/nodes/DingtalkNode/resources/doc/index.js.map +1 -0
- package/dist/nodes/DingtalkNode/resources/doc/resourceGetUploadinfo.d.ts +3 -0
- package/dist/nodes/DingtalkNode/resources/doc/resourceGetUploadinfo.js +70 -0
- package/dist/nodes/DingtalkNode/resources/doc/resourceGetUploadinfo.js.map +1 -0
- package/dist/nodes/DingtalkNode/resources/notable/common.d.ts +5 -0
- package/dist/nodes/DingtalkNode/resources/notable/common.js +100 -0
- package/dist/nodes/DingtalkNode/resources/notable/common.js.map +1 -0
- package/dist/nodes/DingtalkNode/resources/notable/fieldCreate.js +11 -33
- package/dist/nodes/DingtalkNode/resources/notable/fieldCreate.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/notable/fieldDelete.js +8 -30
- package/dist/nodes/DingtalkNode/resources/notable/fieldDelete.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/notable/fieldGetAll.js +8 -30
- package/dist/nodes/DingtalkNode/resources/notable/fieldGetAll.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/notable/fieldUpdate.js +11 -33
- package/dist/nodes/DingtalkNode/resources/notable/fieldUpdate.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/notable/index.js +37 -1
- package/dist/nodes/DingtalkNode/resources/notable/index.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/notable/methods/index.d.ts +9 -0
- package/dist/nodes/DingtalkNode/resources/notable/methods/index.js +45 -0
- package/dist/nodes/DingtalkNode/resources/notable/methods/index.js.map +1 -0
- package/dist/nodes/DingtalkNode/resources/notable/methods/listSearch.d.ts +2 -0
- package/dist/nodes/DingtalkNode/resources/notable/methods/listSearch.js +29 -0
- package/dist/nodes/DingtalkNode/resources/notable/methods/listSearch.js.map +1 -0
- package/dist/nodes/DingtalkNode/resources/notable/methods/loadOptions.d.ts +3 -0
- package/dist/nodes/DingtalkNode/resources/notable/methods/loadOptions.js +50 -0
- package/dist/nodes/DingtalkNode/resources/notable/methods/loadOptions.js.map +1 -0
- package/dist/nodes/DingtalkNode/resources/notable/methods/resourceMapping.d.ts +2 -0
- package/dist/nodes/DingtalkNode/resources/notable/methods/resourceMapping.js +48 -0
- package/dist/nodes/DingtalkNode/resources/notable/methods/resourceMapping.js.map +1 -0
- package/dist/nodes/DingtalkNode/resources/notable/recordDelete.js +35 -44
- package/dist/nodes/DingtalkNode/resources/notable/recordDelete.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/notable/recordGet.js +10 -32
- package/dist/nodes/DingtalkNode/resources/notable/recordGet.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/notable/recordInsert.js +65 -40
- package/dist/nodes/DingtalkNode/resources/notable/recordInsert.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/notable/recordList.js +190 -37
- package/dist/nodes/DingtalkNode/resources/notable/recordList.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/notable/recordUpdate.js +68 -39
- package/dist/nodes/DingtalkNode/resources/notable/recordUpdate.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/notable/sheetCreate.js +13 -28
- package/dist/nodes/DingtalkNode/resources/notable/sheetCreate.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/notable/sheetDelete.js +8 -30
- package/dist/nodes/DingtalkNode/resources/notable/sheetDelete.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/notable/sheetGet.js +8 -30
- package/dist/nodes/DingtalkNode/resources/notable/sheetGet.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/notable/sheetGetAll.js +5 -23
- package/dist/nodes/DingtalkNode/resources/notable/sheetGetAll.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/notable/sheetUpdate.js +15 -38
- package/dist/nodes/DingtalkNode/resources/notable/sheetUpdate.js.map +1 -1
- package/dist/nodes/DingtalkNode/resources/user/index.js +5 -1
- package/dist/nodes/DingtalkNode/resources/user/index.js.map +1 -1
- package/dist/nodes/shared/properties/body.d.ts +14 -0
- package/dist/nodes/shared/properties/body.js +123 -0
- package/dist/nodes/shared/properties/body.js.map +1 -0
- package/dist/nodes/shared/properties/commaSeparatedString.d.ts +3 -0
- package/dist/nodes/shared/properties/commaSeparatedString.js +28 -0
- package/dist/nodes/shared/properties/commaSeparatedString.js.map +1 -0
- package/dist/nodes/shared/properties/operator.d.ts +4 -0
- package/dist/nodes/shared/properties/operator.js +66 -0
- package/dist/nodes/shared/properties/operator.js.map +1 -0
- package/dist/nodes/shared/request.js +2 -0
- package/dist/nodes/shared/request.js.map +1 -1
- package/dist/nodes/shared/resource.d.ts +5 -3
- package/dist/nodes/shared/resource.js +17 -68
- package/dist/nodes/shared/resource.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/nodes/shared/validation.d.ts +0 -2
- package/dist/nodes/shared/validation.js +0 -20
- package/dist/nodes/shared/validation.js.map +0 -1
|
@@ -1,65 +1,94 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../shared/request");
|
|
4
|
-
const
|
|
4
|
+
const body_1 = require("../../../shared/properties/body");
|
|
5
|
+
const common_1 = require("./common");
|
|
6
|
+
const operator_1 = require("../../../shared/properties/operator");
|
|
5
7
|
const OP = 'notable.record.update';
|
|
6
8
|
const showOnly = { show: { operation: [OP] } };
|
|
7
|
-
const
|
|
8
|
-
{
|
|
9
|
-
displayName: 'AI表格ID (baseId)',
|
|
10
|
-
name: 'baseId',
|
|
11
|
-
type: 'string',
|
|
12
|
-
default: '',
|
|
13
|
-
required: true,
|
|
14
|
-
description: '可通过AI表格 解析URL 操作获取',
|
|
15
|
-
displayOptions: showOnly,
|
|
16
|
-
},
|
|
9
|
+
const formProperties = [
|
|
17
10
|
{
|
|
18
|
-
displayName: '
|
|
19
|
-
name: '
|
|
11
|
+
displayName: '记录ID',
|
|
12
|
+
name: 'recordId',
|
|
20
13
|
type: 'string',
|
|
21
14
|
default: '',
|
|
22
15
|
required: true,
|
|
23
|
-
description: '可通过AI表格 解析URL 操作获取sheetId',
|
|
24
16
|
displayOptions: showOnly,
|
|
25
17
|
},
|
|
26
18
|
{
|
|
27
|
-
displayName: '
|
|
28
|
-
name: '
|
|
29
|
-
type: '
|
|
30
|
-
default:
|
|
19
|
+
displayName: 'Columns',
|
|
20
|
+
name: 'columns',
|
|
21
|
+
type: 'resourceMapper',
|
|
22
|
+
default: {
|
|
23
|
+
mappingMode: 'defineBelow',
|
|
24
|
+
value: null,
|
|
25
|
+
},
|
|
26
|
+
noDataExpression: true,
|
|
31
27
|
required: true,
|
|
32
|
-
description: '可通过用户管理 查询用户详情 获取',
|
|
33
28
|
displayOptions: showOnly,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
id: 'String',
|
|
43
|
-
fields: { 标题: '新标题' },
|
|
29
|
+
typeOptions: {
|
|
30
|
+
loadOptionsDependsOn: ['operatorId.value', 'baseId.value', 'sheetIdOrName.value'],
|
|
31
|
+
resourceMapper: {
|
|
32
|
+
resourceMapperMethod: 'notableGetColumns',
|
|
33
|
+
mode: 'add',
|
|
34
|
+
fieldWords: {
|
|
35
|
+
singular: 'column',
|
|
36
|
+
plural: 'columns',
|
|
44
37
|
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
displayOptions: showOnly,
|
|
38
|
+
addAllFields: false,
|
|
39
|
+
multiKeyMatch: true,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
50
42
|
},
|
|
51
43
|
];
|
|
44
|
+
const properties = [
|
|
45
|
+
...(0, operator_1.operatorProps)(showOnly),
|
|
46
|
+
...(0, common_1.baseProps)(showOnly),
|
|
47
|
+
...(0, common_1.sheetProps)(showOnly),
|
|
48
|
+
...(0, body_1.bodyProps)(showOnly, {
|
|
49
|
+
defaultMode: 'form',
|
|
50
|
+
defaultJsonBody: JSON.stringify({
|
|
51
|
+
records: [{ id: 'rec001', fields: { 标题: '新标题' } }],
|
|
52
|
+
}, null, 2),
|
|
53
|
+
jsonDescription: '请求体JSON数据。<a href="https://open.dingtalk.com/document/development/api-notable-updaterecords" target="_blank">查看官方API文档</a>',
|
|
54
|
+
formProperties,
|
|
55
|
+
}),
|
|
56
|
+
];
|
|
52
57
|
const op = {
|
|
53
58
|
value: OP,
|
|
54
59
|
name: '更新记录',
|
|
55
60
|
description: '在数据表中更新多行记录',
|
|
56
61
|
properties,
|
|
57
62
|
async run(itemIndex) {
|
|
58
|
-
const baseId =
|
|
59
|
-
const sheet =
|
|
60
|
-
const operatorId =
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
+
const baseId = (0, common_1.getBase)(this, itemIndex);
|
|
64
|
+
const sheet = (0, common_1.getSheet)(this, itemIndex);
|
|
65
|
+
const operatorId = await (0, operator_1.getOperatorId)(this, itemIndex);
|
|
66
|
+
const body = (0, body_1.getBodyData)(this, itemIndex, {
|
|
67
|
+
formBuilder: (ctx, idx) => {
|
|
68
|
+
const dataMode = ctx.getNodeParameter('columns.mappingMode', idx);
|
|
69
|
+
const recordId = ctx.getNodeParameter('recordId', idx);
|
|
70
|
+
const result = {};
|
|
71
|
+
const fields = {};
|
|
72
|
+
if (dataMode === 'defineBelow') {
|
|
73
|
+
const record = ctx.getNodeParameter('columns.value', idx);
|
|
74
|
+
Object.assign(fields, record);
|
|
75
|
+
}
|
|
76
|
+
else if (dataMode === 'autoMapInputData') {
|
|
77
|
+
const inputData = ctx.getInputData()[idx];
|
|
78
|
+
const matchingColumns = ctx.getNodeParameter('columns.matchingColumns', idx, []);
|
|
79
|
+
if (matchingColumns.length > 0 && (inputData === null || inputData === void 0 ? void 0 : inputData.json)) {
|
|
80
|
+
const inputJson = inputData.json;
|
|
81
|
+
for (const fieldId of matchingColumns) {
|
|
82
|
+
if (fieldId in inputJson) {
|
|
83
|
+
fields[fieldId] = inputJson[fieldId];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
result.records = [{ id: recordId, fields }];
|
|
89
|
+
return result;
|
|
90
|
+
},
|
|
91
|
+
});
|
|
63
92
|
const resp = await request_1.request.call(this, {
|
|
64
93
|
method: 'PUT',
|
|
65
94
|
url: `/notable/bases/${baseId}/sheets/${sheet}/records`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recordUpdate.js","sourceRoot":"","sources":["../../../../../nodes/DingtalkNode/resources/notable/recordUpdate.ts"],"names":[],"mappings":";;AAOA,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"recordUpdate.js","sourceRoot":"","sources":["../../../../../nodes/DingtalkNode/resources/notable/recordUpdate.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,37 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../shared/request");
|
|
4
|
-
const
|
|
4
|
+
const common_1 = require("./common");
|
|
5
|
+
const operator_1 = require("../../../shared/properties/operator");
|
|
5
6
|
const OP = 'notable.sheet.create';
|
|
6
7
|
const showOnly = { show: { operation: [OP] } };
|
|
7
8
|
const properties = [
|
|
9
|
+
...(0, operator_1.operatorProps)(showOnly),
|
|
10
|
+
...(0, common_1.baseProps)(showOnly),
|
|
8
11
|
{
|
|
9
|
-
displayName: '
|
|
10
|
-
name: '
|
|
12
|
+
displayName: '数据表名称',
|
|
13
|
+
name: 'name',
|
|
11
14
|
type: 'string',
|
|
12
15
|
default: '',
|
|
16
|
+
placeholder: '新建数据表',
|
|
13
17
|
required: true,
|
|
14
|
-
description: '可通过AI表格 解析URL 操作获取',
|
|
15
|
-
displayOptions: showOnly,
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
displayName: '操作人的 unionId (operatorId)',
|
|
19
|
-
name: 'operatorId',
|
|
20
|
-
type: 'string',
|
|
21
|
-
default: '',
|
|
22
|
-
required: true,
|
|
23
|
-
description: '可通过用户管理 查询用户详情 获取',
|
|
24
|
-
displayOptions: showOnly,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
displayName: '请求体 JSON',
|
|
28
|
-
name: 'body',
|
|
29
|
-
type: 'json',
|
|
30
|
-
default: JSON.stringify({
|
|
31
|
-
name: '新建数据表',
|
|
32
|
-
}),
|
|
33
|
-
required: true,
|
|
34
|
-
description: '官方文档: https://open.dingtalk.com/document/development/api-createsheet',
|
|
35
18
|
displayOptions: showOnly,
|
|
36
19
|
},
|
|
37
20
|
];
|
|
@@ -41,10 +24,12 @@ const op = {
|
|
|
41
24
|
description: '在AI表格中创建一个新的数据表',
|
|
42
25
|
properties,
|
|
43
26
|
async run(itemIndex) {
|
|
44
|
-
const baseId =
|
|
45
|
-
const operatorId =
|
|
46
|
-
const
|
|
47
|
-
const body =
|
|
27
|
+
const baseId = (0, common_1.getBase)(this, itemIndex);
|
|
28
|
+
const operatorId = await (0, operator_1.getOperatorId)(this, itemIndex);
|
|
29
|
+
const name = this.getNodeParameter('name', itemIndex);
|
|
30
|
+
const body = {
|
|
31
|
+
name,
|
|
32
|
+
};
|
|
48
33
|
const resp = await request_1.request.call(this, {
|
|
49
34
|
method: 'POST',
|
|
50
35
|
url: `/notable/bases/${baseId}/sheets`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheetCreate.js","sourceRoot":"","sources":["../../../../../nodes/DingtalkNode/resources/notable/sheetCreate.ts"],"names":[],"mappings":";;AAOA,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"sheetCreate.js","sourceRoot":"","sources":["../../../../../nodes/DingtalkNode/resources/notable/sheetCreate.ts"],"names":[],"mappings":";;AAOA,qDAAkD;AAClD,qCAA8C;AAC9C,kEAAmF;AAEnF,MAAM,EAAE,GAAG,sBAAsB,CAAC;AAGlC,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;AAE/C,MAAM,UAAU,GAAsB;IACpC,GAAG,IAAA,wBAAa,EAAC,QAAQ,CAAC;IAC1B,GAAG,IAAA,kBAAS,EAAC,QAAQ,CAAC;IACtB;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,OAAO;QACpB,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,QAAQ;KACzB;CACF,CAAC;AAEF,MAAM,EAAE,GAAiB;IACvB,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,iBAAiB;IAC9B,UAAU;IAEV,KAAK,CAAC,GAAG,CAA0B,SAAiB;QAClD,MAAM,MAAM,GAAG,IAAA,gBAAO,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACxC,MAAM,UAAU,GAAG,MAAM,IAAA,wBAAa,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACxD,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAW,CAAC;QAEhE,MAAM,IAAI,GAAG;YACX,IAAI;SACL,CAAC;QAEF,MAAM,IAAI,GAAG,MAAM,iBAAO,CAAC,IAAI,CAAC,IAAI,EAAE;YACpC,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,kBAAkB,MAAM,SAAS;YACtC,EAAE,EAAE,EAAE,UAAU,EAAE;YAClB,IAAI;SACL,CAAC,CAAC;QAEH,MAAM,GAAG,GAAgB,IAA8B,CAAC;QACxD,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IACxD,CAAC;CACF,CAAC;AAEF,kBAAe,EAAE,CAAC"}
|
|
@@ -1,36 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../shared/request");
|
|
4
|
+
const common_1 = require("./common");
|
|
5
|
+
const operator_1 = require("../../../shared/properties/operator");
|
|
4
6
|
const OP = 'notable.sheet.delete';
|
|
5
7
|
const showOnly = { show: { operation: [OP] } };
|
|
6
8
|
const properties = [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type: 'string',
|
|
11
|
-
default: '',
|
|
12
|
-
required: true,
|
|
13
|
-
description: 'AI表格ID, 可通过AI表格 解析URL 操作获取',
|
|
14
|
-
displayOptions: showOnly,
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
displayName: '数据表ID或名称 (sheetIdOrName)',
|
|
18
|
-
name: 'sheetIdOrName',
|
|
19
|
-
type: 'string',
|
|
20
|
-
default: '',
|
|
21
|
-
required: true,
|
|
22
|
-
description: '目标数据表的 ID 或名称',
|
|
23
|
-
displayOptions: showOnly,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
displayName: '操作人的 unionId (operatorId)',
|
|
27
|
-
name: 'operatorId',
|
|
28
|
-
type: 'string',
|
|
29
|
-
default: '',
|
|
30
|
-
required: true,
|
|
31
|
-
description: '可通过用户管理 查询用户详情 获取',
|
|
32
|
-
displayOptions: showOnly,
|
|
33
|
-
},
|
|
9
|
+
...(0, operator_1.operatorProps)(showOnly),
|
|
10
|
+
...(0, common_1.baseProps)(showOnly),
|
|
11
|
+
...(0, common_1.sheetProps)(showOnly),
|
|
34
12
|
];
|
|
35
13
|
const op = {
|
|
36
14
|
value: OP,
|
|
@@ -38,9 +16,9 @@ const op = {
|
|
|
38
16
|
description: '在AI表格中删除一个数据表',
|
|
39
17
|
properties,
|
|
40
18
|
async run(itemIndex) {
|
|
41
|
-
const baseId =
|
|
42
|
-
const sheet =
|
|
43
|
-
const operatorId =
|
|
19
|
+
const baseId = (0, common_1.getBase)(this, itemIndex);
|
|
20
|
+
const sheet = (0, common_1.getSheet)(this, itemIndex);
|
|
21
|
+
const operatorId = await (0, operator_1.getOperatorId)(this, itemIndex);
|
|
44
22
|
const resp = await request_1.request.call(this, {
|
|
45
23
|
method: 'DELETE',
|
|
46
24
|
url: `/notable/bases/${baseId}/sheets/${sheet}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheetDelete.js","sourceRoot":"","sources":["../../../../../nodes/DingtalkNode/resources/notable/sheetDelete.ts"],"names":[],"mappings":";;AAOA,qDAAkD;
|
|
1
|
+
{"version":3,"file":"sheetDelete.js","sourceRoot":"","sources":["../../../../../nodes/DingtalkNode/resources/notable/sheetDelete.ts"],"names":[],"mappings":";;AAOA,qDAAkD;AAClD,qCAAoE;AACpE,kEAAmF;AAEnF,MAAM,EAAE,GAAG,sBAAsB,CAAC;AAGlC,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;AAE/C,MAAM,UAAU,GAAsB;IACpC,GAAG,IAAA,wBAAa,EAAC,QAAQ,CAAC;IAC1B,GAAG,IAAA,kBAAS,EAAC,QAAQ,CAAC;IACtB,GAAG,IAAA,mBAAU,EAAC,QAAQ,CAAC;CACxB,CAAC;AAEF,MAAM,EAAE,GAAiB;IACvB,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,eAAe;IAC5B,UAAU;IAEV,KAAK,CAAC,GAAG,CAA0B,SAAiB;QAClD,MAAM,MAAM,GAAG,IAAA,gBAAO,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACxC,MAAM,KAAK,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACxC,MAAM,UAAU,GAAG,MAAM,IAAA,wBAAa,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAExD,MAAM,IAAI,GAAG,MAAM,iBAAO,CAAC,IAAI,CAAC,IAAI,EAAE;YACpC,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,kBAAkB,MAAM,WAAW,KAAK,EAAE;YAC/C,EAAE,EAAE,EAAE,UAAU,EAAE;SACnB,CAAC,CAAC;QAEH,MAAM,GAAG,GAAgB,IAA8B,CAAC;QACxD,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IACxD,CAAC;CACF,CAAC;AAEF,kBAAe,EAAE,CAAC"}
|
|
@@ -1,36 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../shared/request");
|
|
4
|
+
const common_1 = require("./common");
|
|
5
|
+
const operator_1 = require("../../../shared/properties/operator");
|
|
4
6
|
const OP = 'notable.sheet.get';
|
|
5
7
|
const showOnly = { show: { operation: [OP] } };
|
|
6
8
|
const properties = [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type: 'string',
|
|
11
|
-
default: '',
|
|
12
|
-
required: true,
|
|
13
|
-
description: 'AI表格ID, 可通过AI表格 解析URL 操作获取',
|
|
14
|
-
displayOptions: showOnly,
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
displayName: '数据表ID或名称 (sheetIdOrName)',
|
|
18
|
-
name: 'sheetIdOrName',
|
|
19
|
-
type: 'string',
|
|
20
|
-
default: '',
|
|
21
|
-
required: true,
|
|
22
|
-
description: '目标数据表的 ID 或名称',
|
|
23
|
-
displayOptions: showOnly,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
displayName: '操作人的 unionId (operatorId)',
|
|
27
|
-
name: 'operatorId',
|
|
28
|
-
type: 'string',
|
|
29
|
-
default: '',
|
|
30
|
-
required: true,
|
|
31
|
-
description: '可通过用户管理 查询用户详情 获取',
|
|
32
|
-
displayOptions: showOnly,
|
|
33
|
-
},
|
|
9
|
+
...(0, operator_1.operatorProps)(showOnly),
|
|
10
|
+
...(0, common_1.baseProps)(showOnly),
|
|
11
|
+
...(0, common_1.sheetProps)(showOnly),
|
|
34
12
|
];
|
|
35
13
|
const op = {
|
|
36
14
|
value: OP,
|
|
@@ -38,9 +16,9 @@ const op = {
|
|
|
38
16
|
description: '获取AI表格中一个数据表的信息',
|
|
39
17
|
properties,
|
|
40
18
|
async run(itemIndex) {
|
|
41
|
-
const baseId =
|
|
42
|
-
const sheet =
|
|
43
|
-
const operatorId =
|
|
19
|
+
const baseId = (0, common_1.getBase)(this, itemIndex);
|
|
20
|
+
const sheet = (0, common_1.getSheet)(this, itemIndex);
|
|
21
|
+
const operatorId = await (0, operator_1.getOperatorId)(this, itemIndex);
|
|
44
22
|
const resp = await request_1.request.call(this, {
|
|
45
23
|
method: 'GET',
|
|
46
24
|
url: `/notable/bases/${baseId}/sheets/${sheet}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheetGet.js","sourceRoot":"","sources":["../../../../../nodes/DingtalkNode/resources/notable/sheetGet.ts"],"names":[],"mappings":";;AAOA,qDAAkD;
|
|
1
|
+
{"version":3,"file":"sheetGet.js","sourceRoot":"","sources":["../../../../../nodes/DingtalkNode/resources/notable/sheetGet.ts"],"names":[],"mappings":";;AAOA,qDAAkD;AAClD,qCAAoE;AACpE,kEAAmF;AAEnF,MAAM,EAAE,GAAG,mBAAmB,CAAC;AAG/B,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;AAE/C,MAAM,UAAU,GAAsB;IACpC,GAAG,IAAA,wBAAa,EAAC,QAAQ,CAAC;IAC1B,GAAG,IAAA,kBAAS,EAAC,QAAQ,CAAC;IACtB,GAAG,IAAA,mBAAU,EAAC,QAAQ,CAAC;CACxB,CAAC;AAEF,MAAM,EAAE,GAAiB;IACvB,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,iBAAiB;IAC9B,UAAU;IAEV,KAAK,CAAC,GAAG,CAA0B,SAAiB;QAClD,MAAM,MAAM,GAAG,IAAA,gBAAO,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACxC,MAAM,KAAK,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAExC,MAAM,UAAU,GAAG,MAAM,IAAA,wBAAa,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAExD,MAAM,IAAI,GAAG,MAAM,iBAAO,CAAC,IAAI,CAAC,IAAI,EAAE;YACpC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,kBAAkB,MAAM,WAAW,KAAK,EAAE;YAC/C,EAAE,EAAE,EAAE,UAAU,EAAE;SACnB,CAAC,CAAC;QAEH,MAAM,GAAG,GAAgB,IAA8B,CAAC;QACxD,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IACxD,CAAC;CACF,CAAC;AAEF,kBAAe,EAAE,CAAC"}
|
|
@@ -1,41 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../shared/request");
|
|
4
|
+
const common_1 = require("./common");
|
|
5
|
+
const operator_1 = require("../../../shared/properties/operator");
|
|
4
6
|
const OP = 'notable.sheet.getAll';
|
|
5
7
|
const showOnly = { show: { operation: [OP] } };
|
|
6
|
-
const properties = [
|
|
7
|
-
{
|
|
8
|
-
displayName: 'AI表格ID (baseId)',
|
|
9
|
-
name: 'baseId',
|
|
10
|
-
type: 'string',
|
|
11
|
-
default: '',
|
|
12
|
-
required: true,
|
|
13
|
-
description: 'AI表格ID, 可通过AI表格 解析URL 操作获取',
|
|
14
|
-
displayOptions: showOnly,
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
displayName: '操作人的 unionId (operatorId)',
|
|
18
|
-
name: 'operatorId',
|
|
19
|
-
type: 'string',
|
|
20
|
-
default: '',
|
|
21
|
-
required: true,
|
|
22
|
-
description: '可通过用户管理 查询用户详情 获取',
|
|
23
|
-
displayOptions: showOnly,
|
|
24
|
-
},
|
|
25
|
-
];
|
|
8
|
+
const properties = [...(0, operator_1.operatorProps)(showOnly), ...(0, common_1.baseProps)(showOnly)];
|
|
26
9
|
const op = {
|
|
27
10
|
value: OP,
|
|
28
11
|
name: '获取所有数据表',
|
|
29
12
|
description: '获取AI表格所有的数据表',
|
|
30
13
|
properties,
|
|
31
14
|
async run(itemIndex) {
|
|
32
|
-
const baseId =
|
|
33
|
-
const operatorId =
|
|
15
|
+
const baseId = (0, common_1.getBase)(this, itemIndex);
|
|
16
|
+
const operatorId = await (0, operator_1.getOperatorId)(this, itemIndex);
|
|
34
17
|
const resp = await request_1.request.call(this, {
|
|
35
18
|
method: 'GET',
|
|
36
19
|
url: `/notable/bases/${baseId}/sheets`,
|
|
37
20
|
qs: { operatorId },
|
|
38
|
-
headers: { Accept: 'application/json' },
|
|
39
21
|
});
|
|
40
22
|
const out = resp;
|
|
41
23
|
return { json: out, pairedItem: { item: itemIndex } };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheetGetAll.js","sourceRoot":"","sources":["../../../../../nodes/DingtalkNode/resources/notable/sheetGetAll.ts"],"names":[],"mappings":";;AAOA,qDAAkD;
|
|
1
|
+
{"version":3,"file":"sheetGetAll.js","sourceRoot":"","sources":["../../../../../nodes/DingtalkNode/resources/notable/sheetGetAll.ts"],"names":[],"mappings":";;AAOA,qDAAkD;AAClD,qCAA8C;AAC9C,kEAAmF;AAEnF,MAAM,EAAE,GAAG,sBAAsB,CAAC;AAGlC,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;AAE/C,MAAM,UAAU,GAAsB,CAAC,GAAG,IAAA,wBAAa,EAAC,QAAQ,CAAC,EAAE,GAAG,IAAA,kBAAS,EAAC,QAAQ,CAAC,CAAC,CAAC;AAE3F,MAAM,EAAE,GAAiB;IACvB,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,cAAc;IAC3B,UAAU;IAEV,KAAK,CAAC,GAAG,CAA0B,SAAiB;QAClD,MAAM,MAAM,GAAG,IAAA,gBAAO,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACxC,MAAM,UAAU,GAAG,MAAM,IAAA,wBAAa,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAExD,MAAM,IAAI,GAAG,MAAM,iBAAO,CAAC,IAAI,CAAC,IAAI,EAAE;YACpC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,kBAAkB,MAAM,SAAS;YACtC,EAAE,EAAE,EAAE,UAAU,EAAE;SACnB,CAAC,CAAC;QAEH,MAAM,GAAG,GAAgB,IAA8B,CAAC;QACxD,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IACxD,CAAC;CACF,CAAC;AAEF,kBAAe,EAAE,CAAC"}
|
|
@@ -1,46 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const request_1 = require("../../../shared/request");
|
|
4
|
-
const
|
|
4
|
+
const common_1 = require("./common");
|
|
5
|
+
const operator_1 = require("../../../shared/properties/operator");
|
|
5
6
|
const OP = 'notable.sheet.update';
|
|
6
7
|
const showOnly = { show: { operation: [OP] } };
|
|
7
8
|
const properties = [
|
|
9
|
+
...(0, operator_1.operatorProps)(showOnly),
|
|
10
|
+
...(0, common_1.baseProps)(showOnly),
|
|
11
|
+
...(0, common_1.sheetProps)(showOnly),
|
|
8
12
|
{
|
|
9
|
-
displayName: '
|
|
10
|
-
name: '
|
|
13
|
+
displayName: '数据表名称',
|
|
14
|
+
name: 'name',
|
|
11
15
|
type: 'string',
|
|
12
16
|
default: '',
|
|
17
|
+
placeholder: '重命名后的数据表',
|
|
13
18
|
required: true,
|
|
14
|
-
description: '可通过AI表格 解析URL 操作获取',
|
|
15
|
-
displayOptions: showOnly,
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
displayName: '数据表ID或名称 (sheetIdOrName)',
|
|
19
|
-
name: 'sheetIdOrName',
|
|
20
|
-
type: 'string',
|
|
21
|
-
default: '',
|
|
22
|
-
required: true,
|
|
23
|
-
description: '可通过AI表格 解析URL 操作获取sheetId',
|
|
24
|
-
displayOptions: showOnly,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
displayName: '操作人的 unionId (operatorId)',
|
|
28
|
-
name: 'operatorId',
|
|
29
|
-
type: 'string',
|
|
30
|
-
default: '',
|
|
31
|
-
required: true,
|
|
32
|
-
description: '可通过用户管理 查询用户详情 获取',
|
|
33
|
-
displayOptions: showOnly,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
displayName: '请求体 JSON',
|
|
37
|
-
name: 'body',
|
|
38
|
-
type: 'json',
|
|
39
|
-
default: JSON.stringify({
|
|
40
|
-
name: '重命名后的数据表',
|
|
41
|
-
}),
|
|
42
|
-
required: true,
|
|
43
|
-
description: '官方文档: https://open.dingtalk.com/document/development/api-noatable-updatesheet',
|
|
44
19
|
displayOptions: showOnly,
|
|
45
20
|
},
|
|
46
21
|
];
|
|
@@ -50,11 +25,13 @@ const op = {
|
|
|
50
25
|
description: '更新一个数据表的信息',
|
|
51
26
|
properties,
|
|
52
27
|
async run(itemIndex) {
|
|
53
|
-
const baseId =
|
|
54
|
-
const sheet =
|
|
55
|
-
const operatorId =
|
|
56
|
-
const
|
|
57
|
-
const body =
|
|
28
|
+
const baseId = (0, common_1.getBase)(this, itemIndex);
|
|
29
|
+
const sheet = (0, common_1.getSheet)(this, itemIndex);
|
|
30
|
+
const operatorId = await (0, operator_1.getOperatorId)(this, itemIndex);
|
|
31
|
+
const name = this.getNodeParameter('name', itemIndex);
|
|
32
|
+
const body = {
|
|
33
|
+
name,
|
|
34
|
+
};
|
|
58
35
|
const resp = await request_1.request.call(this, {
|
|
59
36
|
method: 'PUT',
|
|
60
37
|
url: `/notable/bases/${baseId}/sheets/${sheet}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheetUpdate.js","sourceRoot":"","sources":["../../../../../nodes/DingtalkNode/resources/notable/sheetUpdate.ts"],"names":[],"mappings":";;AAOA,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"sheetUpdate.js","sourceRoot":"","sources":["../../../../../nodes/DingtalkNode/resources/notable/sheetUpdate.ts"],"names":[],"mappings":";;AAOA,qDAAkD;AAClD,qCAAoE;AACpE,kEAAmF;AAEnF,MAAM,EAAE,GAAG,sBAAsB,CAAC;AAGlC,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;AAE/C,MAAM,UAAU,GAAsB;IACpC,GAAG,IAAA,wBAAa,EAAC,QAAQ,CAAC;IAC1B,GAAG,IAAA,kBAAS,EAAC,QAAQ,CAAC;IACtB,GAAG,IAAA,mBAAU,EAAC,QAAQ,CAAC;IACvB;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,UAAU;QACvB,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,QAAQ;KACzB;CACF,CAAC;AAEF,MAAM,EAAE,GAAiB;IACvB,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,YAAY;IACzB,UAAU;IAEV,KAAK,CAAC,GAAG,CAA0B,SAAiB;QAClD,MAAM,MAAM,GAAG,IAAA,gBAAO,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACxC,MAAM,KAAK,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACxC,MAAM,UAAU,GAAG,MAAM,IAAA,wBAAa,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACxD,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAW,CAAC;QAEhE,MAAM,IAAI,GAAG;YACX,IAAI;SACL,CAAC;QAEF,MAAM,IAAI,GAAG,MAAM,iBAAO,CAAC,IAAI,CAAC,IAAI,EAAE;YACpC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,kBAAkB,MAAM,WAAW,KAAK,EAAE;YAC/C,EAAE,EAAE,EAAE,UAAU,EAAE;YAClB,IAAI;SACL,CAAC,CAAC;QAEH,MAAM,GAAG,GAAgB,IAA8B,CAAC;QACxD,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IACxD,CAAC;CACF,CAAC;AAEF,kBAAe,EAAE,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
const resource_1 = require("../../../shared/resource");
|
|
7
|
+
const get_1 = __importDefault(require("./get"));
|
|
4
8
|
exports.default = (0, resource_1.makeResourceBundle)({
|
|
5
9
|
value: 'user',
|
|
6
10
|
name: '用户管理',
|
|
7
|
-
|
|
11
|
+
operations: [get_1.default],
|
|
8
12
|
});
|
|
9
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/DingtalkNode/resources/user/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/DingtalkNode/resources/user/index.ts"],"names":[],"mappings":";;;;;AAAA,uDAA8D;AAC9D,gDAAwB;AAExB,kBAAe,IAAA,6BAAkB,EAAC;IAChC,KAAK,EAAE,MAAM;IACb,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,CAAC,aAAG,CAAC;CAClB,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IDisplayOptions, IExecuteFunctions, INodeProperties, IDataObject, INode } from 'n8n-workflow';
|
|
2
|
+
export declare function parseJsonBody(raw: unknown, node: INode, itemIndex: number): Record<string, unknown>;
|
|
3
|
+
export declare function bodyProps(displayOptions: IDisplayOptions, options?: {
|
|
4
|
+
defaultJsonBody?: string;
|
|
5
|
+
jsonDescription?: string;
|
|
6
|
+
formProperties?: INodeProperties[];
|
|
7
|
+
defaultMode?: 'form' | 'json';
|
|
8
|
+
showModeSelector?: boolean;
|
|
9
|
+
}): INodeProperties[];
|
|
10
|
+
export declare function getBodyData(ctx: IExecuteFunctions, itemIndex: number, options?: {
|
|
11
|
+
showModeSelector?: boolean;
|
|
12
|
+
defaultMode?: 'form' | 'json';
|
|
13
|
+
formBuilder?: (ctx: IExecuteFunctions, itemIndex: number) => IDataObject;
|
|
14
|
+
}): IDataObject;
|