n8n-nodes-wecom 0.3.14 → 0.3.15

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.
@@ -232,15 +232,14 @@ exports.passiveReplyDescription = [
232
232
  },
233
233
  },
234
234
  default: 'text_notice',
235
- required: true,
236
235
  description: '选择模板卡片的类型',
237
236
  },
238
237
  {
239
238
  displayName: '卡片来源',
240
239
  name: 'cardSource',
241
- type: 'json',
242
- default: '{}',
243
- placeholder: '{"icon_url": "https://...", "desc": "来源描述"}',
240
+ type: 'fixedCollection',
241
+ default: {},
242
+ placeholder: '添加来源信息',
244
243
  displayOptions: {
245
244
  show: {
246
245
  ...showOnlyForPassiveReply,
@@ -249,13 +248,37 @@ exports.passiveReplyDescription = [
249
248
  },
250
249
  },
251
250
  description: '可选。模板卡片来源样式信息',
251
+ options: [
252
+ {
253
+ name: 'source',
254
+ displayName: '来源信息',
255
+ values: [
256
+ {
257
+ displayName: '来源图标URL',
258
+ name: 'icon_url',
259
+ type: 'string',
260
+ default: '',
261
+ placeholder: 'https://example.com/icon.png',
262
+ description: '来源图标的URL地址',
263
+ },
264
+ {
265
+ displayName: '来源描述',
266
+ name: 'desc',
267
+ type: 'string',
268
+ default: '',
269
+ placeholder: '企业微信',
270
+ description: '来源的描述文字',
271
+ },
272
+ ],
273
+ },
274
+ ],
252
275
  },
253
276
  {
254
277
  displayName: '一级标题',
255
278
  name: 'cardMainTitle',
256
- type: 'json',
257
- default: '{"title": ""}',
258
- placeholder: '{"title": "欢迎使用", "desc": "副标题"}',
279
+ type: 'fixedCollection',
280
+ default: {},
281
+ placeholder: '添加标题',
259
282
  displayOptions: {
260
283
  show: {
261
284
  ...showOnlyForPassiveReply,
@@ -263,15 +286,38 @@ exports.passiveReplyDescription = [
263
286
  replyType: ['update_template_card'],
264
287
  },
265
288
  },
266
- required: true,
267
289
  description: '模板卡片的主要内容,包含一级标题和标题辅助信息',
290
+ options: [
291
+ {
292
+ name: 'mainTitle',
293
+ displayName: '标题内容',
294
+ values: [
295
+ {
296
+ displayName: '标题',
297
+ name: 'title',
298
+ type: 'string',
299
+ default: '',
300
+ placeholder: '欢迎使用',
301
+ description: '一级标题文本',
302
+ },
303
+ {
304
+ displayName: '副标题',
305
+ name: 'desc',
306
+ type: 'string',
307
+ default: '',
308
+ placeholder: '点击查看详情',
309
+ description: '标题辅助信息',
310
+ },
311
+ ],
312
+ },
313
+ ],
268
314
  },
269
315
  {
270
316
  displayName: '关键数据样式',
271
317
  name: 'cardEmphasisContent',
272
- type: 'json',
273
- default: '{}',
274
- placeholder: '{"title": "100", "desc": "数据描述"}',
318
+ type: 'fixedCollection',
319
+ default: {},
320
+ placeholder: '添加关键数据',
275
321
  displayOptions: {
276
322
  show: {
277
323
  ...showOnlyForPassiveReply,
@@ -280,13 +326,37 @@ exports.passiveReplyDescription = [
280
326
  },
281
327
  },
282
328
  description: '可选。关键数据样式',
329
+ options: [
330
+ {
331
+ name: 'emphasisContent',
332
+ displayName: '关键数据',
333
+ values: [
334
+ {
335
+ displayName: '数据',
336
+ name: 'title',
337
+ type: 'string',
338
+ default: '',
339
+ placeholder: '100',
340
+ description: '关键数据内容',
341
+ },
342
+ {
343
+ displayName: '数据描述',
344
+ name: 'desc',
345
+ type: 'string',
346
+ default: '',
347
+ placeholder: '已完成',
348
+ description: '数据的描述说明',
349
+ },
350
+ ],
351
+ },
352
+ ],
283
353
  },
284
354
  {
285
355
  displayName: '引用文献样式',
286
356
  name: 'cardQuoteArea',
287
- type: 'json',
288
- default: '{}',
289
- placeholder: '{"type": 1, "title": "引用标题", "quote_text": "引用内容"}',
357
+ type: 'fixedCollection',
358
+ default: {},
359
+ placeholder: '添加引用',
290
360
  displayOptions: {
291
361
  show: {
292
362
  ...showOnlyForPassiveReply,
@@ -295,6 +365,58 @@ exports.passiveReplyDescription = [
295
365
  },
296
366
  },
297
367
  description: '可选。引用文献样式,建议不与关键数据共用',
368
+ options: [
369
+ {
370
+ name: 'quoteArea',
371
+ displayName: '引用内容',
372
+ values: [
373
+ {
374
+ displayName: '引用类型',
375
+ name: 'type',
376
+ type: 'options',
377
+ options: [
378
+ {
379
+ name: '边框类型',
380
+ value: 1,
381
+ },
382
+ {
383
+ name: '卡片类型',
384
+ value: 2,
385
+ },
386
+ ],
387
+ default: 1,
388
+ description: '引用文献的样式类型',
389
+ },
390
+ {
391
+ displayName: '引用链接',
392
+ name: 'url',
393
+ type: 'string',
394
+ default: '',
395
+ placeholder: 'https://example.com',
396
+ description: '点击引用后跳转的链接',
397
+ },
398
+ {
399
+ displayName: '引用标题',
400
+ name: 'title',
401
+ type: 'string',
402
+ default: '',
403
+ placeholder: '引用标题',
404
+ description: '引用文献的标题',
405
+ },
406
+ {
407
+ displayName: '引用文本',
408
+ name: 'quote_text',
409
+ type: 'string',
410
+ typeOptions: {
411
+ rows: 3,
412
+ },
413
+ default: '',
414
+ placeholder: '引用的具体内容',
415
+ description: '引用文献的具体文本内容',
416
+ },
417
+ ],
418
+ },
419
+ ],
298
420
  },
299
421
  {
300
422
  displayName: '二级普通文本',
@@ -314,12 +436,12 @@ exports.passiveReplyDescription = [
314
436
  {
315
437
  displayName: '二级标题+文本列表',
316
438
  name: 'cardHorizontalContentList',
317
- type: 'json',
439
+ type: 'fixedCollection',
318
440
  typeOptions: {
319
- rows: 4,
441
+ multipleValues: true,
320
442
  },
321
- default: '[]',
322
- placeholder: '[{"keyname": "姓名", "value": "张三"}, {"keyname": "部门", "value": "技术部"}]',
443
+ default: {},
444
+ placeholder: '添加列表项',
323
445
  displayOptions: {
324
446
  show: {
325
447
  ...showOnlyForPassiveReply,
@@ -328,16 +450,70 @@ exports.passiveReplyDescription = [
328
450
  },
329
451
  },
330
452
  description: '可选。二级标题+文本列表,列表长度不超过6',
453
+ options: [
454
+ {
455
+ name: 'items',
456
+ displayName: '列表项',
457
+ values: [
458
+ {
459
+ displayName: '标题',
460
+ name: 'keyname',
461
+ type: 'string',
462
+ default: '',
463
+ placeholder: '姓名',
464
+ description: '列表项的标题',
465
+ },
466
+ {
467
+ displayName: '内容',
468
+ name: 'value',
469
+ type: 'string',
470
+ default: '',
471
+ placeholder: '张三',
472
+ description: '列表项的内容',
473
+ },
474
+ {
475
+ displayName: '内容类型',
476
+ name: 'type',
477
+ type: 'options',
478
+ options: [
479
+ {
480
+ name: '普通文本',
481
+ value: 0,
482
+ },
483
+ {
484
+ name: '带跳转链接',
485
+ value: 1,
486
+ },
487
+ ],
488
+ default: 0,
489
+ description: '内容的类型',
490
+ },
491
+ {
492
+ displayName: '跳转链接',
493
+ name: 'url',
494
+ type: 'string',
495
+ default: '',
496
+ placeholder: 'https://example.com',
497
+ description: '点击内容后跳转的链接(仅当类型为带跳转链接时有效)',
498
+ displayOptions: {
499
+ show: {
500
+ type: [1],
501
+ },
502
+ },
503
+ },
504
+ ],
505
+ },
506
+ ],
331
507
  },
332
508
  {
333
509
  displayName: '跳转指引样式列表',
334
510
  name: 'cardJumpList',
335
- type: 'json',
511
+ type: 'fixedCollection',
336
512
  typeOptions: {
337
- rows: 4,
513
+ multipleValues: true,
338
514
  },
339
- default: '[]',
340
- placeholder: '[{"type": 1, "title": "查看详情", "url": "https://..."}]',
515
+ default: {},
516
+ placeholder: '添加跳转指引',
341
517
  displayOptions: {
342
518
  show: {
343
519
  ...showOnlyForPassiveReply,
@@ -346,13 +522,54 @@ exports.passiveReplyDescription = [
346
522
  },
347
523
  },
348
524
  description: '可选。跳转指引样式的列表,列表长度不超过3',
525
+ options: [
526
+ {
527
+ name: 'items',
528
+ displayName: '跳转指引',
529
+ values: [
530
+ {
531
+ displayName: '跳转类型',
532
+ name: 'type',
533
+ type: 'options',
534
+ options: [
535
+ {
536
+ name: '跳转URL',
537
+ value: 1,
538
+ },
539
+ {
540
+ name: '跳转小程序',
541
+ value: 2,
542
+ },
543
+ ],
544
+ default: 1,
545
+ description: '跳转目标的类型',
546
+ },
547
+ {
548
+ displayName: '标题',
549
+ name: 'title',
550
+ type: 'string',
551
+ default: '',
552
+ placeholder: '查看详情',
553
+ description: '跳转指引的标题',
554
+ },
555
+ {
556
+ displayName: '跳转链接',
557
+ name: 'url',
558
+ type: 'string',
559
+ default: '',
560
+ placeholder: 'https://example.com',
561
+ description: '跳转的URL地址',
562
+ },
563
+ ],
564
+ },
565
+ ],
349
566
  },
350
567
  {
351
568
  displayName: '整体卡片点击跳转',
352
569
  name: 'cardAction',
353
- type: 'json',
354
- default: '{}',
355
- placeholder: '{"type": 1, "url": "https://..."}',
570
+ type: 'fixedCollection',
571
+ default: {},
572
+ placeholder: '设置卡片跳转',
356
573
  displayOptions: {
357
574
  show: {
358
575
  ...showOnlyForPassiveReply,
@@ -362,6 +579,39 @@ exports.passiveReplyDescription = [
362
579
  },
363
580
  },
364
581
  description: '文本通知型必填。整体卡片的点击跳转事件',
582
+ options: [
583
+ {
584
+ name: 'action',
585
+ displayName: '跳转设置',
586
+ values: [
587
+ {
588
+ displayName: '跳转类型',
589
+ name: 'type',
590
+ type: 'options',
591
+ options: [
592
+ {
593
+ name: '跳转URL',
594
+ value: 1,
595
+ },
596
+ {
597
+ name: '跳转小程序',
598
+ value: 2,
599
+ },
600
+ ],
601
+ default: 1,
602
+ description: '点击卡片后的跳转类型',
603
+ },
604
+ {
605
+ displayName: '跳转链接',
606
+ name: 'url',
607
+ type: 'string',
608
+ default: '',
609
+ placeholder: 'https://example.com',
610
+ description: '跳转的URL地址',
611
+ },
612
+ ],
613
+ },
614
+ ],
365
615
  },
366
616
  {
367
617
  displayName: '任务ID',
@@ -381,12 +631,12 @@ exports.passiveReplyDescription = [
381
631
  {
382
632
  displayName: '按钮列表',
383
633
  name: 'cardButtonList',
384
- type: 'json',
634
+ type: 'fixedCollection',
385
635
  typeOptions: {
386
- rows: 4,
636
+ multipleValues: true,
387
637
  },
388
- default: '[]',
389
- placeholder: '[{"text": "按钮1", "style": 1, "key": "btn1"}, {"text": "按钮2", "style": 2, "key": "btn2"}]',
638
+ default: {},
639
+ placeholder: '添加按钮',
390
640
  displayOptions: {
391
641
  show: {
392
642
  ...showOnlyForPassiveReply,
@@ -396,6 +646,47 @@ exports.passiveReplyDescription = [
396
646
  },
397
647
  },
398
648
  description: '按钮交互型卡片的按钮列表,列表长度不超过6',
649
+ options: [
650
+ {
651
+ name: 'buttons',
652
+ displayName: '按钮',
653
+ values: [
654
+ {
655
+ displayName: '按钮文本',
656
+ name: 'text',
657
+ type: 'string',
658
+ default: '',
659
+ placeholder: '同意',
660
+ description: '按钮上显示的文字',
661
+ },
662
+ {
663
+ displayName: '按钮样式',
664
+ name: 'style',
665
+ type: 'options',
666
+ options: [
667
+ {
668
+ name: '蓝色样式',
669
+ value: 1,
670
+ },
671
+ {
672
+ name: '灰色样式',
673
+ value: 2,
674
+ },
675
+ ],
676
+ default: 1,
677
+ description: '按钮的样式类型',
678
+ },
679
+ {
680
+ displayName: '按钮Key',
681
+ name: 'key',
682
+ type: 'string',
683
+ default: '',
684
+ placeholder: 'btn_agree',
685
+ description: '按钮的唯一标识,用于回调事件',
686
+ },
687
+ ],
688
+ },
689
+ ],
399
690
  },
400
691
  {
401
692
  displayName: '选择题Key值',
@@ -441,12 +732,12 @@ exports.passiveReplyDescription = [
441
732
  {
442
733
  displayName: '选项列表',
443
734
  name: 'cardOptionList',
444
- type: 'json',
735
+ type: 'fixedCollection',
445
736
  typeOptions: {
446
- rows: 4,
737
+ multipleValues: true,
447
738
  },
448
- default: '[]',
449
- placeholder: '[{"id": "option1", "text": "选项1"}, {"id": "option2", "text": "选项2"}]',
739
+ default: {},
740
+ placeholder: '添加选项',
450
741
  displayOptions: {
451
742
  show: {
452
743
  ...showOnlyForPassiveReply,
@@ -455,8 +746,31 @@ exports.passiveReplyDescription = [
455
746
  cardType: ['vote_interaction', 'multiple_interaction'],
456
747
  },
457
748
  },
458
- required: true,
459
749
  description: '选项列表,列表长度不超过10',
750
+ options: [
751
+ {
752
+ name: 'options',
753
+ displayName: '选项',
754
+ values: [
755
+ {
756
+ displayName: '选项ID',
757
+ name: 'id',
758
+ type: 'string',
759
+ default: '',
760
+ placeholder: 'option1',
761
+ description: '选项的唯一标识',
762
+ },
763
+ {
764
+ displayName: '选项文本',
765
+ name: 'text',
766
+ type: 'string',
767
+ default: '',
768
+ placeholder: '选项一',
769
+ description: '选项显示的文本',
770
+ },
771
+ ],
772
+ },
773
+ ],
460
774
  },
461
775
  {
462
776
  displayName: '提交按钮文案',
@@ -488,15 +802,14 @@ exports.passiveReplyDescription = [
488
802
  cardType: ['vote_interaction', 'multiple_interaction'],
489
803
  },
490
804
  },
491
- required: true,
492
805
  description: '提交按钮key值,用户提交选项后会产生回调事件',
493
806
  },
494
807
  {
495
808
  displayName: '图片样式',
496
809
  name: 'cardImageTextArea',
497
- type: 'json',
498
- default: '{}',
499
- placeholder: '{"type": 1, "url": "https://...", "title": "图片标题", "desc": "图片描述"}',
810
+ type: 'fixedCollection',
811
+ default: {},
812
+ placeholder: '添加图片',
500
813
  displayOptions: {
501
814
  show: {
502
815
  ...showOnlyForPassiveReply,
@@ -506,13 +819,78 @@ exports.passiveReplyDescription = [
506
819
  },
507
820
  },
508
821
  description: '可选。左图右文样式',
822
+ options: [
823
+ {
824
+ name: 'imageText',
825
+ displayName: '图片内容',
826
+ values: [
827
+ {
828
+ displayName: '图片类型',
829
+ name: 'type',
830
+ type: 'options',
831
+ options: [
832
+ {
833
+ name: '普通图片',
834
+ value: 0,
835
+ },
836
+ {
837
+ name: '可点击图片',
838
+ value: 1,
839
+ },
840
+ ],
841
+ default: 0,
842
+ description: '图片的类型',
843
+ },
844
+ {
845
+ displayName: '图片链接',
846
+ name: 'image_url',
847
+ type: 'string',
848
+ default: '',
849
+ placeholder: 'https://example.com/image.png',
850
+ description: '图片的URL地址',
851
+ },
852
+ {
853
+ displayName: '跳转链接',
854
+ name: 'url',
855
+ type: 'string',
856
+ default: '',
857
+ placeholder: 'https://example.com',
858
+ description: '点击图片后跳转的链接(仅当类型为可点击图片时有效)',
859
+ displayOptions: {
860
+ show: {
861
+ type: [1],
862
+ },
863
+ },
864
+ },
865
+ {
866
+ displayName: '标题',
867
+ name: 'title',
868
+ type: 'string',
869
+ default: '',
870
+ placeholder: '图片标题',
871
+ description: '图片的标题',
872
+ },
873
+ {
874
+ displayName: '描述',
875
+ name: 'desc',
876
+ type: 'string',
877
+ typeOptions: {
878
+ rows: 2,
879
+ },
880
+ default: '',
881
+ placeholder: '图片描述',
882
+ description: '图片的描述文字',
883
+ },
884
+ ],
885
+ },
886
+ ],
509
887
  },
510
888
  {
511
889
  displayName: '卡片右上角更多操作按钮',
512
890
  name: 'cardActionMenu',
513
- type: 'json',
514
- default: '{}',
515
- placeholder: '{"desc": "操作菜单", "action_list": [{"text": "操作1", "key": "action1"}]}',
891
+ type: 'fixedCollection',
892
+ default: {},
893
+ placeholder: '添加操作菜单',
516
894
  displayOptions: {
517
895
  show: {
518
896
  ...showOnlyForPassiveReply,
@@ -521,6 +899,56 @@ exports.passiveReplyDescription = [
521
899
  },
522
900
  },
523
901
  description: '可选。卡片右上角更多操作按钮',
902
+ options: [
903
+ {
904
+ name: 'actionMenu',
905
+ displayName: '操作菜单',
906
+ values: [
907
+ {
908
+ displayName: '菜单描述',
909
+ name: 'desc',
910
+ type: 'string',
911
+ default: '',
912
+ placeholder: '更多操作',
913
+ description: '菜单的描述文字',
914
+ },
915
+ {
916
+ displayName: '操作列表',
917
+ name: 'action_list',
918
+ type: 'fixedCollection',
919
+ typeOptions: {
920
+ multipleValues: true,
921
+ },
922
+ default: {},
923
+ placeholder: '添加操作',
924
+ options: [
925
+ {
926
+ name: 'actions',
927
+ displayName: '操作',
928
+ values: [
929
+ {
930
+ displayName: '操作文本',
931
+ name: 'text',
932
+ type: 'string',
933
+ default: '',
934
+ placeholder: '删除',
935
+ description: '操作的文本',
936
+ },
937
+ {
938
+ displayName: '操作Key',
939
+ name: 'key',
940
+ type: 'string',
941
+ default: '',
942
+ placeholder: 'action_delete',
943
+ description: '操作的唯一标识',
944
+ },
945
+ ],
946
+ },
947
+ ],
948
+ },
949
+ ],
950
+ },
951
+ ],
524
952
  },
525
953
  {
526
954
  displayName: '按钮替换名称',