n8n-nodes-wecom 0.4.3 → 0.4.4

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.
Files changed (107) hide show
  1. package/dist/nodes/WeCom/resources/security/approveDevice.d.ts +2 -0
  2. package/dist/nodes/WeCom/resources/security/approveDevice.impl.d.ts +2 -0
  3. package/dist/nodes/WeCom/resources/security/approveDevice.impl.js +13 -0
  4. package/dist/nodes/WeCom/resources/security/approveDevice.impl.js.map +1 -0
  5. package/dist/nodes/WeCom/resources/security/approveDevice.js +24 -0
  6. package/dist/nodes/WeCom/resources/security/approveDevice.js.map +1 -0
  7. package/dist/nodes/WeCom/resources/security/batchAddVipJobResult.d.ts +2 -0
  8. package/dist/nodes/WeCom/resources/security/batchAddVipJobResult.impl.d.ts +2 -0
  9. package/dist/nodes/WeCom/resources/security/batchAddVipJobResult.impl.js +13 -0
  10. package/dist/nodes/WeCom/resources/security/batchAddVipJobResult.impl.js.map +1 -0
  11. package/dist/nodes/WeCom/resources/security/batchAddVipJobResult.js +20 -0
  12. package/dist/nodes/WeCom/resources/security/batchAddVipJobResult.js.map +1 -0
  13. package/dist/nodes/WeCom/resources/security/batchDelVipJobResult.d.ts +2 -0
  14. package/dist/nodes/WeCom/resources/security/batchDelVipJobResult.impl.d.ts +2 -0
  15. package/dist/nodes/WeCom/resources/security/batchDelVipJobResult.impl.js +13 -0
  16. package/dist/nodes/WeCom/resources/security/batchDelVipJobResult.impl.js.map +1 -0
  17. package/dist/nodes/WeCom/resources/security/batchDelVipJobResult.js +20 -0
  18. package/dist/nodes/WeCom/resources/security/batchDelVipJobResult.js.map +1 -0
  19. package/dist/nodes/WeCom/resources/security/deleteDevice.d.ts +2 -0
  20. package/dist/nodes/WeCom/resources/security/deleteDevice.impl.d.ts +2 -0
  21. package/dist/nodes/WeCom/resources/security/deleteDevice.impl.js +15 -0
  22. package/dist/nodes/WeCom/resources/security/deleteDevice.impl.js.map +1 -0
  23. package/dist/nodes/WeCom/resources/security/deleteDevice.js +55 -0
  24. package/dist/nodes/WeCom/resources/security/deleteDevice.js.map +1 -0
  25. package/dist/nodes/WeCom/resources/security/execute.d.ts +3 -0
  26. package/dist/nodes/WeCom/resources/security/execute.js +154 -0
  27. package/dist/nodes/WeCom/resources/security/execute.js.map +1 -0
  28. package/dist/nodes/WeCom/resources/security/getAdminOperLog.d.ts +2 -0
  29. package/dist/nodes/WeCom/resources/security/getAdminOperLog.impl.d.ts +2 -0
  30. package/dist/nodes/WeCom/resources/security/getAdminOperLog.impl.js +37 -0
  31. package/dist/nodes/WeCom/resources/security/getAdminOperLog.impl.js.map +1 -0
  32. package/dist/nodes/WeCom/resources/security/getAdminOperLog.js +130 -0
  33. package/dist/nodes/WeCom/resources/security/getAdminOperLog.js.map +1 -0
  34. package/dist/nodes/WeCom/resources/security/getDeviceByUser.d.ts +2 -0
  35. package/dist/nodes/WeCom/resources/security/getDeviceByUser.impl.d.ts +2 -0
  36. package/dist/nodes/WeCom/resources/security/getDeviceByUser.impl.js +15 -0
  37. package/dist/nodes/WeCom/resources/security/getDeviceByUser.impl.js.map +1 -0
  38. package/dist/nodes/WeCom/resources/security/getDeviceByUser.js +54 -0
  39. package/dist/nodes/WeCom/resources/security/getDeviceByUser.js.map +1 -0
  40. package/dist/nodes/WeCom/resources/security/getDeviceList.d.ts +2 -0
  41. package/dist/nodes/WeCom/resources/security/getDeviceList.impl.d.ts +2 -0
  42. package/dist/nodes/WeCom/resources/security/getDeviceList.impl.js +21 -0
  43. package/dist/nodes/WeCom/resources/security/getDeviceList.impl.js.map +1 -0
  44. package/dist/nodes/WeCom/resources/security/getDeviceList.js +67 -0
  45. package/dist/nodes/WeCom/resources/security/getDeviceList.js.map +1 -0
  46. package/dist/nodes/WeCom/resources/security/getFileOperRecord.d.ts +2 -0
  47. package/dist/nodes/WeCom/resources/security/getFileOperRecord.impl.d.ts +2 -0
  48. package/dist/nodes/WeCom/resources/security/getFileOperRecord.impl.js +44 -0
  49. package/dist/nodes/WeCom/resources/security/getFileOperRecord.impl.js.map +1 -0
  50. package/dist/nodes/WeCom/resources/security/getFileOperRecord.js +163 -0
  51. package/dist/nodes/WeCom/resources/security/getFileOperRecord.js.map +1 -0
  52. package/dist/nodes/WeCom/resources/security/getMemberOperLog.d.ts +2 -0
  53. package/dist/nodes/WeCom/resources/security/getMemberOperLog.impl.d.ts +2 -0
  54. package/dist/nodes/WeCom/resources/security/getMemberOperLog.impl.js +37 -0
  55. package/dist/nodes/WeCom/resources/security/getMemberOperLog.impl.js.map +1 -0
  56. package/dist/nodes/WeCom/resources/security/getMemberOperLog.js +112 -0
  57. package/dist/nodes/WeCom/resources/security/getMemberOperLog.js.map +1 -0
  58. package/dist/nodes/WeCom/resources/security/getScreenOperRecord.d.ts +2 -0
  59. package/dist/nodes/WeCom/resources/security/getScreenOperRecord.impl.d.ts +2 -0
  60. package/dist/nodes/WeCom/resources/security/getScreenOperRecord.impl.js +41 -0
  61. package/dist/nodes/WeCom/resources/security/getScreenOperRecord.impl.js.map +1 -0
  62. package/dist/nodes/WeCom/resources/security/getScreenOperRecord.js +117 -0
  63. package/dist/nodes/WeCom/resources/security/getScreenOperRecord.js.map +1 -0
  64. package/dist/nodes/WeCom/resources/security/getServerDomainIp.d.ts +2 -0
  65. package/dist/nodes/WeCom/resources/security/getServerDomainIp.impl.d.ts +2 -0
  66. package/dist/nodes/WeCom/resources/security/getServerDomainIp.impl.js +9 -0
  67. package/dist/nodes/WeCom/resources/security/getServerDomainIp.impl.js.map +1 -0
  68. package/dist/nodes/WeCom/resources/security/getServerDomainIp.js +5 -0
  69. package/dist/nodes/WeCom/resources/security/getServerDomainIp.js.map +1 -0
  70. package/dist/nodes/WeCom/resources/security/getVipList.d.ts +2 -0
  71. package/dist/nodes/WeCom/resources/security/getVipList.impl.d.ts +2 -0
  72. package/dist/nodes/WeCom/resources/security/getVipList.impl.js +18 -0
  73. package/dist/nodes/WeCom/resources/security/getVipList.impl.js.map +1 -0
  74. package/dist/nodes/WeCom/resources/security/getVipList.js +36 -0
  75. package/dist/nodes/WeCom/resources/security/getVipList.js.map +1 -0
  76. package/dist/nodes/WeCom/resources/security/importDevice.d.ts +2 -0
  77. package/dist/nodes/WeCom/resources/security/importDevice.impl.d.ts +2 -0
  78. package/dist/nodes/WeCom/resources/security/importDevice.impl.js +42 -0
  79. package/dist/nodes/WeCom/resources/security/importDevice.impl.js.map +1 -0
  80. package/dist/nodes/WeCom/resources/security/importDevice.js +155 -0
  81. package/dist/nodes/WeCom/resources/security/importDevice.js.map +1 -0
  82. package/dist/nodes/WeCom/resources/security/index.d.ts +2 -0
  83. package/dist/nodes/WeCom/resources/security/index.js +149 -0
  84. package/dist/nodes/WeCom/resources/security/index.js.map +1 -0
  85. package/dist/nodes/WeCom/resources/security/rejectDevice.d.ts +2 -0
  86. package/dist/nodes/WeCom/resources/security/rejectDevice.impl.d.ts +2 -0
  87. package/dist/nodes/WeCom/resources/security/rejectDevice.impl.js +13 -0
  88. package/dist/nodes/WeCom/resources/security/rejectDevice.impl.js.map +1 -0
  89. package/dist/nodes/WeCom/resources/security/rejectDevice.js +24 -0
  90. package/dist/nodes/WeCom/resources/security/rejectDevice.js.map +1 -0
  91. package/dist/nodes/WeCom/resources/security/submitBatchAddVipJob.d.ts +2 -0
  92. package/dist/nodes/WeCom/resources/security/submitBatchAddVipJob.impl.d.ts +2 -0
  93. package/dist/nodes/WeCom/resources/security/submitBatchAddVipJob.impl.js +13 -0
  94. package/dist/nodes/WeCom/resources/security/submitBatchAddVipJob.impl.js.map +1 -0
  95. package/dist/nodes/WeCom/resources/security/submitBatchAddVipJob.js +23 -0
  96. package/dist/nodes/WeCom/resources/security/submitBatchAddVipJob.js.map +1 -0
  97. package/dist/nodes/WeCom/resources/security/submitBatchDelVipJob.d.ts +2 -0
  98. package/dist/nodes/WeCom/resources/security/submitBatchDelVipJob.impl.d.ts +2 -0
  99. package/dist/nodes/WeCom/resources/security/submitBatchDelVipJob.impl.js +13 -0
  100. package/dist/nodes/WeCom/resources/security/submitBatchDelVipJob.impl.js.map +1 -0
  101. package/dist/nodes/WeCom/resources/security/submitBatchDelVipJob.js +23 -0
  102. package/dist/nodes/WeCom/resources/security/submitBatchDelVipJob.js.map +1 -0
  103. package/dist/nodes/WeComBase/WeComBase.node.js +16 -1
  104. package/dist/nodes/WeComBase/WeComBase.node.js.map +1 -1
  105. package/dist/package.json +1 -1
  106. package/dist/tsconfig.tsbuildinfo +1 -1
  107. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const approveDeviceDescription: INodeProperties[];
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, IDataObject } from 'n8n-workflow';
2
+ export declare function approveDevice(this: IExecuteFunctions): Promise<IDataObject>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.approveDevice = approveDevice;
4
+ const transport_1 = require("../../shared/transport");
5
+ async function approveDevice() {
6
+ const deviceCodeList = this.getNodeParameter('device_code_list', 0);
7
+ const body = {
8
+ device_code_list: deviceCodeList,
9
+ };
10
+ const responseData = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/security/trustdevice/approve', body);
11
+ return responseData;
12
+ }
13
+ //# sourceMappingURL=approveDevice.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approveDevice.impl.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/security/approveDevice.impl.ts"],"names":[],"mappings":";;AAIA,sCAeC;AAjBD,sDAAyD;AAElD,KAAK,UAAU,aAAa;IAClC,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,CAAa,CAAC;IAEhF,MAAM,IAAI,GAAG;QACZ,gBAAgB,EAAE,cAAc;KAChC,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,2BAAe,CAAC,IAAI,CAC9C,IAAI,EACJ,MAAM,EACN,uCAAuC,EACvC,IAAI,CACJ,CAAC;IAEF,OAAO,YAAY,CAAC;AACrB,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.approveDeviceDescription = void 0;
4
+ exports.approveDeviceDescription = [
5
+ {
6
+ displayName: '设备编码列表',
7
+ name: 'device_code_list',
8
+ type: 'string',
9
+ typeOptions: {
10
+ multipleValues: true,
11
+ },
12
+ required: true,
13
+ displayOptions: {
14
+ show: {
15
+ resource: ['security'],
16
+ operation: ['approveDevice'],
17
+ },
18
+ },
19
+ placeholder: '49nNtYq',
20
+ default: [],
21
+ description: '设备编码列表,仅可确认待管理员通过状态(status为3或4)的设备,每次最多确认100个',
22
+ },
23
+ ];
24
+ //# sourceMappingURL=approveDevice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approveDevice.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/security/approveDevice.ts"],"names":[],"mappings":";;;AAEa,QAAA,wBAAwB,GAAsB;IAC1D;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;SACpB;QACD,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,eAAe,CAAC;aAC5B;SACD;QACD,WAAW,EAAE,SAAS;QACtB,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,+CAA+C;KAC5D;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const batchAddVipJobResultDescription: INodeProperties[];
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, IDataObject } from 'n8n-workflow';
2
+ export declare function batchAddVipJobResult(this: IExecuteFunctions): Promise<IDataObject>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.batchAddVipJobResult = batchAddVipJobResult;
4
+ const transport_1 = require("../../shared/transport");
5
+ async function batchAddVipJobResult() {
6
+ const jobid = this.getNodeParameter('jobid', 0);
7
+ const body = {
8
+ jobid: jobid,
9
+ };
10
+ const responseData = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/security/vip/batch_add_job_result', body);
11
+ return responseData;
12
+ }
13
+ //# sourceMappingURL=batchAddVipJobResult.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAddVipJobResult.impl.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/security/batchAddVipJobResult.impl.ts"],"names":[],"mappings":";;AAIA,oDAeC;AAjBD,sDAAyD;AAElD,KAAK,UAAU,oBAAoB;IACzC,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAW,CAAC;IAE1D,MAAM,IAAI,GAAG;QACZ,KAAK,EAAE,KAAK;KACZ,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,2BAAe,CAAC,IAAI,CAC9C,IAAI,EACJ,MAAM,EACN,4CAA4C,EAC5C,IAAI,CACJ,CAAC;IAEF,OAAO,YAAY,CAAC;AACrB,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.batchAddVipJobResultDescription = void 0;
4
+ exports.batchAddVipJobResultDescription = [
5
+ {
6
+ displayName: '任务ID',
7
+ name: 'jobid',
8
+ type: 'string',
9
+ required: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['security'],
13
+ operation: ['batchAddVipJobResult'],
14
+ },
15
+ },
16
+ default: '',
17
+ description: '批量分配高级功能的任务ID',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=batchAddVipJobResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchAddVipJobResult.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/security/batchAddVipJobResult.ts"],"names":[],"mappings":";;;AAEa,QAAA,+BAA+B,GAAsB;IACjE;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,sBAAsB,CAAC;aACnC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,eAAe;KAC5B;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const batchDelVipJobResultDescription: INodeProperties[];
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, IDataObject } from 'n8n-workflow';
2
+ export declare function batchDelVipJobResult(this: IExecuteFunctions): Promise<IDataObject>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.batchDelVipJobResult = batchDelVipJobResult;
4
+ const transport_1 = require("../../shared/transport");
5
+ async function batchDelVipJobResult() {
6
+ const jobid = this.getNodeParameter('jobid', 0);
7
+ const body = {
8
+ jobid: jobid,
9
+ };
10
+ const responseData = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/security/vip/batch_del_job_result', body);
11
+ return responseData;
12
+ }
13
+ //# sourceMappingURL=batchDelVipJobResult.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchDelVipJobResult.impl.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/security/batchDelVipJobResult.impl.ts"],"names":[],"mappings":";;AAIA,oDAeC;AAjBD,sDAAyD;AAElD,KAAK,UAAU,oBAAoB;IACzC,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAW,CAAC;IAE1D,MAAM,IAAI,GAAG;QACZ,KAAK,EAAE,KAAK;KACZ,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,2BAAe,CAAC,IAAI,CAC9C,IAAI,EACJ,MAAM,EACN,4CAA4C,EAC5C,IAAI,CACJ,CAAC;IAEF,OAAO,YAAY,CAAC;AACrB,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.batchDelVipJobResultDescription = void 0;
4
+ exports.batchDelVipJobResultDescription = [
5
+ {
6
+ displayName: '任务ID',
7
+ name: 'jobid',
8
+ type: 'string',
9
+ required: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['security'],
13
+ operation: ['batchDelVipJobResult'],
14
+ },
15
+ },
16
+ default: '',
17
+ description: '批量取消高级功能的任务ID',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=batchDelVipJobResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batchDelVipJobResult.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/security/batchDelVipJobResult.ts"],"names":[],"mappings":";;;AAEa,QAAA,+BAA+B,GAAsB;IACjE;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,sBAAsB,CAAC;aACnC;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,eAAe;KAC5B;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const deleteDeviceDescription: INodeProperties[];
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, IDataObject } from 'n8n-workflow';
2
+ export declare function deleteDevice(this: IExecuteFunctions): Promise<IDataObject>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteDevice = deleteDevice;
4
+ const transport_1 = require("../../shared/transport");
5
+ async function deleteDevice() {
6
+ const type = this.getNodeParameter('type', 0);
7
+ const deviceCodeList = this.getNodeParameter('device_code_list', 0);
8
+ const body = {
9
+ type: type,
10
+ device_code_list: deviceCodeList,
11
+ };
12
+ const responseData = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/security/trustdevice/delete', body);
13
+ return responseData;
14
+ }
15
+ //# sourceMappingURL=deleteDevice.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteDevice.impl.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/security/deleteDevice.impl.ts"],"names":[],"mappings":";;AAIA,oCAiBC;AAnBD,sDAAyD;AAElD,KAAK,UAAU,YAAY;IACjC,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAW,CAAC;IACxD,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,CAAa,CAAC;IAEhF,MAAM,IAAI,GAAG;QACZ,IAAI,EAAE,IAAI;QACV,gBAAgB,EAAE,cAAc;KAChC,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,2BAAe,CAAC,IAAI,CAC9C,IAAI,EACJ,MAAM,EACN,sCAAsC,EACtC,IAAI,CACJ,CAAC;IAEF,OAAO,YAAY,CAAC;AACrB,CAAC"}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteDeviceDescription = void 0;
4
+ exports.deleteDeviceDescription = [
5
+ {
6
+ displayName: '设备类型',
7
+ name: 'type',
8
+ type: 'options',
9
+ required: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['security'],
13
+ operation: ['deleteDevice'],
14
+ },
15
+ },
16
+ description: '删除设备类型',
17
+ options: [
18
+ {
19
+ name: '可信企业设备',
20
+ value: 1,
21
+ description: '企业内可信的设备',
22
+ },
23
+ {
24
+ name: '未知设备',
25
+ value: 2,
26
+ description: '尚未确认的设备',
27
+ },
28
+ {
29
+ name: '可信个人设备',
30
+ value: 3,
31
+ description: '个人可信的设备',
32
+ },
33
+ ],
34
+ default: 1,
35
+ },
36
+ {
37
+ displayName: '设备编码列表',
38
+ name: 'device_code_list',
39
+ type: 'string',
40
+ typeOptions: {
41
+ multipleValues: true,
42
+ },
43
+ required: true,
44
+ displayOptions: {
45
+ show: {
46
+ resource: ['security'],
47
+ operation: ['deleteDevice'],
48
+ },
49
+ },
50
+ placeholder: '49nNtYq',
51
+ default: [],
52
+ description: '设备编码列表,每次最多删除100个设备',
53
+ },
54
+ ];
55
+ //# sourceMappingURL=deleteDevice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteDevice.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/security/deleteDevice.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC3B;SACD;QACD,WAAW,EAAE,QAAQ;QACrB,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,CAAC;gBACR,WAAW,EAAE,UAAU;aACvB;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,CAAC;gBACR,WAAW,EAAE,SAAS;aACtB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,CAAC;gBACR,WAAW,EAAE,SAAS;aACtB;SACD;QACD,OAAO,EAAE,CAAC;KACV;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;SACpB;QACD,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC3B;SACD;QACD,WAAW,EAAE,SAAS;QACtB,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,qBAAqB;KAClC;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, IDataObject } from 'n8n-workflow';
2
+ export declare function executeSecurity(this: IExecuteFunctions, index: number): Promise<IDataObject[]>;
3
+ export declare function executeSecurityAll(this: IExecuteFunctions, index: number, items: INodeExecutionData[]): Promise<INodeExecutionData[]>;
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.executeSecurity = executeSecurity;
4
+ exports.executeSecurityAll = executeSecurityAll;
5
+ const getFileOperRecord_impl_1 = require("./getFileOperRecord.impl");
6
+ const importDevice_impl_1 = require("./importDevice.impl");
7
+ const getDeviceList_impl_1 = require("./getDeviceList.impl");
8
+ const getDeviceByUser_impl_1 = require("./getDeviceByUser.impl");
9
+ const deleteDevice_impl_1 = require("./deleteDevice.impl");
10
+ const approveDevice_impl_1 = require("./approveDevice.impl");
11
+ const rejectDevice_impl_1 = require("./rejectDevice.impl");
12
+ const getScreenOperRecord_impl_1 = require("./getScreenOperRecord.impl");
13
+ const getVipList_impl_1 = require("./getVipList.impl");
14
+ const submitBatchAddVipJob_impl_1 = require("./submitBatchAddVipJob.impl");
15
+ const batchAddVipJobResult_impl_1 = require("./batchAddVipJobResult.impl");
16
+ const submitBatchDelVipJob_impl_1 = require("./submitBatchDelVipJob.impl");
17
+ const batchDelVipJobResult_impl_1 = require("./batchDelVipJobResult.impl");
18
+ const getMemberOperLog_impl_1 = require("./getMemberOperLog.impl");
19
+ const getAdminOperLog_impl_1 = require("./getAdminOperLog.impl");
20
+ const getServerDomainIp_impl_1 = require("./getServerDomainIp.impl");
21
+ async function executeSecurity(index) {
22
+ const operation = this.getNodeParameter('operation', index);
23
+ let responseData = {};
24
+ switch (operation) {
25
+ case 'getFileOperRecord':
26
+ responseData = await getFileOperRecord_impl_1.getFileOperRecord.call(this);
27
+ break;
28
+ case 'importDevice':
29
+ responseData = await importDevice_impl_1.importDevice.call(this);
30
+ break;
31
+ case 'getDeviceList':
32
+ responseData = await getDeviceList_impl_1.getDeviceList.call(this);
33
+ break;
34
+ case 'getDeviceByUser':
35
+ responseData = await getDeviceByUser_impl_1.getDeviceByUser.call(this);
36
+ break;
37
+ case 'deleteDevice':
38
+ responseData = await deleteDevice_impl_1.deleteDevice.call(this);
39
+ break;
40
+ case 'approveDevice':
41
+ responseData = await approveDevice_impl_1.approveDevice.call(this);
42
+ break;
43
+ case 'rejectDevice':
44
+ responseData = await rejectDevice_impl_1.rejectDevice.call(this);
45
+ break;
46
+ case 'getScreenOperRecord':
47
+ responseData = await getScreenOperRecord_impl_1.getScreenOperRecord.call(this);
48
+ break;
49
+ case 'getVipList':
50
+ responseData = await getVipList_impl_1.getVipList.call(this);
51
+ break;
52
+ case 'submitBatchAddVipJob':
53
+ responseData = await submitBatchAddVipJob_impl_1.submitBatchAddVipJob.call(this);
54
+ break;
55
+ case 'batchAddVipJobResult':
56
+ responseData = await batchAddVipJobResult_impl_1.batchAddVipJobResult.call(this);
57
+ break;
58
+ case 'submitBatchDelVipJob':
59
+ responseData = await submitBatchDelVipJob_impl_1.submitBatchDelVipJob.call(this);
60
+ break;
61
+ case 'batchDelVipJobResult':
62
+ responseData = await batchDelVipJobResult_impl_1.batchDelVipJobResult.call(this);
63
+ break;
64
+ case 'getMemberOperLog':
65
+ responseData = await getMemberOperLog_impl_1.getMemberOperLog.call(this);
66
+ break;
67
+ case 'getAdminOperLog':
68
+ responseData = await getAdminOperLog_impl_1.getAdminOperLog.call(this);
69
+ break;
70
+ case 'getServerDomainIp':
71
+ responseData = await getServerDomainIp_impl_1.getServerDomainIp.call(this);
72
+ break;
73
+ default:
74
+ throw new Error(`未知操作: ${operation}`);
75
+ }
76
+ return [responseData];
77
+ }
78
+ async function executeSecurityAll(index, items) {
79
+ const operation = this.getNodeParameter('operation', index);
80
+ const returnData = [];
81
+ for (let i = 0; i < items.length; i++) {
82
+ try {
83
+ let responseData;
84
+ switch (operation) {
85
+ case 'getFileOperRecord':
86
+ responseData = await getFileOperRecord_impl_1.getFileOperRecord.call(this);
87
+ break;
88
+ case 'importDevice':
89
+ responseData = await importDevice_impl_1.importDevice.call(this);
90
+ break;
91
+ case 'getDeviceList':
92
+ responseData = await getDeviceList_impl_1.getDeviceList.call(this);
93
+ break;
94
+ case 'getDeviceByUser':
95
+ responseData = await getDeviceByUser_impl_1.getDeviceByUser.call(this);
96
+ break;
97
+ case 'deleteDevice':
98
+ responseData = await deleteDevice_impl_1.deleteDevice.call(this);
99
+ break;
100
+ case 'approveDevice':
101
+ responseData = await approveDevice_impl_1.approveDevice.call(this);
102
+ break;
103
+ case 'rejectDevice':
104
+ responseData = await rejectDevice_impl_1.rejectDevice.call(this);
105
+ break;
106
+ case 'getScreenOperRecord':
107
+ responseData = await getScreenOperRecord_impl_1.getScreenOperRecord.call(this);
108
+ break;
109
+ case 'getVipList':
110
+ responseData = await getVipList_impl_1.getVipList.call(this);
111
+ break;
112
+ case 'submitBatchAddVipJob':
113
+ responseData = await submitBatchAddVipJob_impl_1.submitBatchAddVipJob.call(this);
114
+ break;
115
+ case 'batchAddVipJobResult':
116
+ responseData = await batchAddVipJobResult_impl_1.batchAddVipJobResult.call(this);
117
+ break;
118
+ case 'submitBatchDelVipJob':
119
+ responseData = await submitBatchDelVipJob_impl_1.submitBatchDelVipJob.call(this);
120
+ break;
121
+ case 'batchDelVipJobResult':
122
+ responseData = await batchDelVipJobResult_impl_1.batchDelVipJobResult.call(this);
123
+ break;
124
+ case 'getMemberOperLog':
125
+ responseData = await getMemberOperLog_impl_1.getMemberOperLog.call(this);
126
+ break;
127
+ case 'getAdminOperLog':
128
+ responseData = await getAdminOperLog_impl_1.getAdminOperLog.call(this);
129
+ break;
130
+ case 'getServerDomainIp':
131
+ responseData = await getServerDomainIp_impl_1.getServerDomainIp.call(this);
132
+ break;
133
+ default:
134
+ throw new Error(`未知操作: ${operation}`);
135
+ }
136
+ returnData.push({
137
+ json: responseData,
138
+ pairedItem: { item: i },
139
+ });
140
+ }
141
+ catch (error) {
142
+ if (this.continueOnFail()) {
143
+ returnData.push({
144
+ json: { error: error.message },
145
+ pairedItem: { item: i },
146
+ });
147
+ continue;
148
+ }
149
+ throw error;
150
+ }
151
+ }
152
+ return returnData;
153
+ }
154
+ //# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/security/execute.ts"],"names":[],"mappings":";;AAoBA,0CA8DC;AAED,gDAkFC;AAnKD,qEAA6D;AAC7D,2DAAmD;AACnD,6DAAqD;AACrD,iEAAyD;AACzD,2DAAmD;AACnD,6DAAqD;AACrD,2DAAmD;AACnD,yEAAiE;AACjE,uDAA+C;AAC/C,2EAAmE;AACnE,2EAAmE;AACnE,2EAAmE;AACnE,2EAAmE;AACnE,mEAA2D;AAC3D,iEAAyD;AACzD,qEAA6D;AAEtD,KAAK,UAAU,eAAe,CAEpC,KAAa;IAEb,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAW,CAAC;IAEtE,IAAI,YAAY,GAAgB,EAAE,CAAC;IAEnC,QAAQ,SAAS,EAAE,CAAC;QACnB,KAAK,mBAAmB;YACvB,YAAY,GAAG,MAAM,0CAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAClD,MAAM;QACP,KAAK,cAAc;YAClB,YAAY,GAAG,MAAM,gCAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC7C,MAAM;QACP,KAAK,eAAe;YACnB,YAAY,GAAG,MAAM,kCAAa,CAAC,IAAI,CAAC,IAAI,CAAC,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c,EAAE,EAAE,CAAC;gBAC3B,UAAU,CAAC,IAAI,CAAC;oBACf,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE;oBAC9B,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;iBACvB,CAAC,CAAC;gBACH,SAAS;YACV,CAAC;YACD,MAAM,KAAK,CAAC;QACb,CAAC;IACF,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getAdminOperLogDescription: INodeProperties[];
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, IDataObject } from 'n8n-workflow';
2
+ export declare function getAdminOperLog(this: IExecuteFunctions): Promise<IDataObject>;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAdminOperLog = getAdminOperLog;
4
+ const transport_1 = require("../../shared/transport");
5
+ async function getAdminOperLog() {
6
+ const startTimeParam = this.getNodeParameter('start_time', 0);
7
+ const endTimeParam = this.getNodeParameter('end_time', 0);
8
+ const operType = this.getNodeParameter('oper_type', 0);
9
+ const userid = this.getNodeParameter('userid', 0);
10
+ const cursor = this.getNodeParameter('cursor', 0);
11
+ const limit = this.getNodeParameter('limit', 0);
12
+ const startTime = typeof startTimeParam === 'string'
13
+ ? Math.floor(new Date(startTimeParam).getTime() / 1000)
14
+ : startTimeParam;
15
+ const endTime = typeof endTimeParam === 'string'
16
+ ? Math.floor(new Date(endTimeParam).getTime() / 1000)
17
+ : endTimeParam;
18
+ const body = {
19
+ start_time: startTime,
20
+ end_time: endTime,
21
+ };
22
+ if (operType !== undefined && operType !== null) {
23
+ body.oper_type = operType;
24
+ }
25
+ if (userid) {
26
+ body.userid = userid;
27
+ }
28
+ if (cursor) {
29
+ body.cursor = cursor;
30
+ }
31
+ if (limit) {
32
+ body.limit = limit;
33
+ }
34
+ const responseData = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/security/admin_oper_log/list', body);
35
+ return responseData;
36
+ }
37
+ //# sourceMappingURL=getAdminOperLog.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAdminOperLog.impl.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/security/getAdminOperLog.impl.ts"],"names":[],"mappings":";;AAIA,0CAiDC;AAnDD,sDAAyD;AAElD,KAAK,UAAU,eAAe;IACpC,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAoB,CAAC;IACjF,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAoB,CAAC;IAC7E,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;IACjE,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAW,CAAC;IAC5D,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAW,CAAC;IAC5D,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAW,CAAC;IAG1D,MAAM,SAAS,GAAG,OAAO,cAAc,KAAK,QAAQ;QACnD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC;QACvD,CAAC,CAAC,cAAc,CAAC;IAClB,MAAM,OAAO,GAAG,OAAO,YAAY,KAAK,QAAQ;QAC/C,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC;QACrD,CAAC,CAAC,YAAY,CAAC;IAEhB,MAAM,IAAI,GAAgB;QACzB,UAAU,EAAE,SAAS;QACrB,QAAQ,EAAE,OAAO;KACjB,CAAC;IAGF,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACjD,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAGD,IAAI,MAAM,EAAE,CAAC;QACZ,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAGD,IAAI,MAAM,EAAE,CAAC;QACZ,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAGD,IAAI,KAAK,EAAE,CAAC;QACX,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACpB,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,2BAAe,CAAC,IAAI,CAC9C,IAAI,EACJ,MAAM,EACN,uCAAuC,EACvC,IAAI,CACJ,CAAC;IAEF,OAAO,YAAY,CAAC;AACrB,CAAC"}
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAdminOperLogDescription = void 0;
4
+ exports.getAdminOperLogDescription = [
5
+ {
6
+ displayName: '开始时间',
7
+ name: 'start_time',
8
+ type: 'dateTime',
9
+ required: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['security'],
13
+ operation: ['getAdminOperLog'],
14
+ },
15
+ },
16
+ default: '',
17
+ description: '开始时间(Unix时间戳,秒),不早于180天前',
18
+ },
19
+ {
20
+ displayName: '结束时间',
21
+ name: 'end_time',
22
+ type: 'dateTime',
23
+ required: true,
24
+ displayOptions: {
25
+ show: {
26
+ resource: ['security'],
27
+ operation: ['getAdminOperLog'],
28
+ },
29
+ },
30
+ default: '',
31
+ description: '结束时间(Unix时间戳,秒),大于start_time,小于当前时间,跨度不能超过7天',
32
+ },
33
+ {
34
+ displayName: '操作类型',
35
+ name: 'oper_type',
36
+ type: 'options',
37
+ displayOptions: {
38
+ show: {
39
+ resource: ['security'],
40
+ operation: ['getAdminOperLog'],
41
+ },
42
+ },
43
+ description: '操作类型,不填表示全部',
44
+ options: [
45
+ {
46
+ name: '权限管理变更',
47
+ value: 2,
48
+ description: '绑定/解绑手机、修改密保邮箱、修改登录密码、分级管理员管理等',
49
+ },
50
+ {
51
+ name: '成员与部门变更',
52
+ value: 3,
53
+ description: '新增/删除/移动部门、新增/删除/移动成员、更改成员信息等',
54
+ },
55
+ {
56
+ name: '其它',
57
+ value: 7,
58
+ description: '其他操作类型',
59
+ },
60
+ {
61
+ name: '应用变更',
62
+ value: 8,
63
+ description: '新增/删除/修改应用、启用/停用应用等',
64
+ },
65
+ {
66
+ name: '通讯录与聊天管理',
67
+ value: 11,
68
+ description: '导出通讯录、设置通讯录水印、群聊设置等',
69
+ },
70
+ {
71
+ name: '企业信息管理',
72
+ value: 12,
73
+ description: '更改企业名称、logo、信息、认证等',
74
+ },
75
+ {
76
+ name: '外部联系人管理',
77
+ value: 13,
78
+ description: '修改外部联系人权限设置等',
79
+ },
80
+ ],
81
+ default: 2,
82
+ },
83
+ {
84
+ displayName: '操作者 Name or ID',
85
+ name: 'userid',
86
+ type: 'options',
87
+ displayOptions: {
88
+ show: {
89
+ resource: ['security'],
90
+ operation: ['getAdminOperLog'],
91
+ },
92
+ },
93
+ typeOptions: {
94
+ loadOptionsMethod: 'getAllUsers',
95
+ },
96
+ default: '',
97
+ description: '操作者,可不填',
98
+ },
99
+ {
100
+ displayName: '游标',
101
+ name: 'cursor',
102
+ type: 'string',
103
+ displayOptions: {
104
+ show: {
105
+ resource: ['security'],
106
+ operation: ['getAdminOperLog'],
107
+ },
108
+ },
109
+ default: '',
110
+ description: '分页游标,不填表示首页',
111
+ },
112
+ {
113
+ displayName: '限制条数',
114
+ name: 'limit',
115
+ type: 'number',
116
+ displayOptions: {
117
+ show: {
118
+ resource: ['security'],
119
+ operation: ['getAdminOperLog'],
120
+ },
121
+ },
122
+ default: 400,
123
+ description: '最大记录数,默认最多获取400个记录',
124
+ typeOptions: {
125
+ minValue: 1,
126
+ maxValue: 400,
127
+ },
128
+ },
129
+ ];
130
+ //# sourceMappingURL=getAdminOperLog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAdminOperLog.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/security/getAdminOperLog.ts"],"names":[],"mappings":";;;AAEa,QAAA,0BAA0B,GAAsB;IAC5D;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,iBAAiB,CAAC;aAC9B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0BAA0B;KACvC;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,iBAAiB,CAAC;aAC9B;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8CAA8C;KAC3D;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QAEf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,iBAAiB,CAAC;aAC9B;SACD;QACD,WAAW,EAAE,aAAa;QAC1B,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,CAAC;gBACR,WAAW,EAAE,gCAAgC;aAC7C;YACD;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,CAAC;gBACR,WAAW,EAAE,+BAA+B;aAC5C;YACD;gBACC,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,CAAC;gBACR,WAAW,EAAE,QAAQ;aACrB;YAC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AQ,EAAE,GAAG;SACb;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getDeviceByUserDescription: INodeProperties[];
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, IDataObject } from 'n8n-workflow';
2
+ export declare function getDeviceByUser(this: IExecuteFunctions): Promise<IDataObject>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getDeviceByUser = getDeviceByUser;
4
+ const transport_1 = require("../../shared/transport");
5
+ async function getDeviceByUser() {
6
+ const lastLoginUserid = this.getNodeParameter('last_login_userid', 0);
7
+ const type = this.getNodeParameter('type', 0);
8
+ const body = {
9
+ last_login_userid: lastLoginUserid,
10
+ type: type,
11
+ };
12
+ const responseData = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/security/trustdevice/get_by_user', body);
13
+ return responseData;
14
+ }
15
+ //# sourceMappingURL=getDeviceByUser.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDeviceByUser.impl.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/security/getDeviceByUser.impl.ts"],"names":[],"mappings":";;AAIA,0CAiBC;AAnBD,sDAAyD;AAElD,KAAK,UAAU,eAAe;IACpC,MAAM,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,CAAC,CAAW,CAAC;IAChF,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAW,CAAC;IAExD,MAAM,IAAI,GAAG;QACZ,iBAAiB,EAAE,eAAe;QAClC,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,2BAAe,CAAC,IAAI,CAC9C,IAAI,EACJ,MAAM,EACN,2CAA2C,EAC3C,IAAI,CACJ,CAAC;IAEF,OAAO,YAAY,CAAC;AACrB,CAAC"}