@jinshuju/cli 0.15.0 → 0.17.0

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.
@@ -244,6 +244,12 @@ export const OPERATIONS = {
244
244
  parameters: [],
245
245
  body: { required: true, content: { 'application/json': { $ref: 'CheckinCampaignCreateInput' } } }
246
246
  },
247
+ createEmailTask: {
248
+ method: 'POST',
249
+ path: '/forms/{form_token}/email_tasks',
250
+ parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
251
+ body: { required: true, content: { 'application/json': { $ref: 'EmailTaskCreateInput' } } }
252
+ },
247
253
  createEntriesBatch: {
248
254
  method: 'POST',
249
255
  path: '/forms/{form_token}/entries/batch',
@@ -331,6 +337,36 @@ export const OPERATIONS = {
331
337
  parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
332
338
  body: { required: true, content: { 'application/json': { $ref: 'WebhookInput' } } }
333
339
  },
340
+ createNotificationRule: {
341
+ method: 'POST',
342
+ path: '/forms/{form_token}/notification_rules',
343
+ parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
344
+ body: {
345
+ required: true,
346
+ content: {
347
+ 'application/json': {
348
+ allOf: [
349
+ {
350
+ required: ['approach'],
351
+ properties: {
352
+ approach: { type: 'string', enum: ['SMS', 'EMAIL', 'WEIXIN_ONETIME', 'WXWORK', 'DING_TALK', 'WEBHOOK'] }
353
+ }
354
+ },
355
+ {
356
+ oneOf: [
357
+ { $ref: 'SMSNotificationRuleInput' },
358
+ { $ref: 'EmailNotificationRuleInput' },
359
+ { $ref: 'WeixinOnetimeNotificationRuleInput' },
360
+ { $ref: 'WxworkNotificationRuleInput' },
361
+ { $ref: 'DingTalkNotificationRuleInput' },
362
+ { $ref: 'WebhookNotificationRuleInput' }
363
+ ]
364
+ }
365
+ ]
366
+ }
367
+ }
368
+ }
369
+ },
334
370
  createOpensearchQuery: {
335
371
  method: 'POST',
336
372
  path: '/opensearch/queries',
@@ -367,12 +403,24 @@ export const OPERATIONS = {
367
403
  }
368
404
  }
369
405
  },
406
+ createRoutine: {
407
+ method: 'POST',
408
+ path: '/routines',
409
+ parameters: [],
410
+ body: { required: true, content: { 'application/json': { $ref: 'RoutineInput' } } }
411
+ },
370
412
  createSmsSignature: {
371
413
  method: 'POST',
372
414
  path: '/sms/signatures',
373
415
  parameters: [],
374
416
  body: { required: true, content: { 'application/json': { $ref: 'SMSSignatureCreateInput' } } }
375
417
  },
418
+ createSmsTask: {
419
+ method: 'POST',
420
+ path: '/forms/{form_token}/sms_tasks',
421
+ parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
422
+ body: { required: true, content: { 'application/json': { $ref: 'SMSTaskCreateInput' } } }
423
+ },
376
424
  createSmsTemplate: {
377
425
  method: 'POST',
378
426
  path: '/sms/templates',
@@ -466,11 +514,24 @@ export const OPERATIONS = {
466
514
  path: '/forms/{form_token}/webhook',
467
515
  parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
468
516
  },
517
+ deleteNotificationRule: {
518
+ method: 'DELETE',
519
+ path: '/forms/{form_token}/notification_rules/{id}',
520
+ parameters: [
521
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
522
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
523
+ ]
524
+ },
469
525
  deletePredefinedChoicesSet: {
470
526
  method: 'DELETE',
471
527
  path: '/predefined_choices_sets/{id}',
472
528
  parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }]
473
529
  },
530
+ deleteRoutine: {
531
+ method: 'DELETE',
532
+ path: '/routines/{id}',
533
+ parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }]
534
+ },
474
535
  deleteSmsSignature: {
475
536
  method: 'DELETE',
476
537
  path: '/sms/signatures/{id}',
@@ -511,6 +572,88 @@ export const OPERATIONS = {
511
572
  { name: 'view_token', in: 'path', required: true, schema: { type: 'string' } }
512
573
  ]
513
574
  },
575
+ estimateEmailTask: {
576
+ method: 'GET',
577
+ path: '/forms/{form_token}/email_tasks/estimate',
578
+ parameters: [
579
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
580
+ { name: 'entry_field', in: 'query', required: true, schema: { type: 'string' } },
581
+ {
582
+ name: 'filters',
583
+ in: 'query',
584
+ content: 'application/json',
585
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
586
+ },
587
+ { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } },
588
+ { name: 'view_token', in: 'query', schema: { type: 'string' } },
589
+ { name: 'select_all', in: 'query', schema: { type: 'boolean' } },
590
+ { name: 'smtp_account_id', in: 'query', schema: { type: 'string' } }
591
+ ]
592
+ },
593
+ estimateEmailTaskResend: {
594
+ method: 'GET',
595
+ path: '/forms/{form_token}/email_tasks/{id}/resend/estimate',
596
+ parameters: [
597
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
598
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } },
599
+ { name: 'status', in: 'query', required: true, schema: { type: 'string', enum: ['FAILED', 'SUCCESS', 'ALL'] } },
600
+ {
601
+ name: 'filters',
602
+ in: 'query',
603
+ content: 'application/json',
604
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
605
+ },
606
+ { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } },
607
+ { name: 'view_token', in: 'query', schema: { type: 'string' } }
608
+ ]
609
+ },
610
+ estimateSmsTask: {
611
+ method: 'GET',
612
+ path: '/forms/{form_token}/sms_tasks/estimate',
613
+ parameters: [
614
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
615
+ { name: 'entry_field', in: 'query', required: true, schema: { type: 'string' } },
616
+ {
617
+ name: 'filters',
618
+ in: 'query',
619
+ content: 'application/json',
620
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
621
+ },
622
+ { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } },
623
+ { name: 'view_token', in: 'query', schema: { type: 'string' } },
624
+ { name: 'select_all', in: 'query', schema: { type: 'boolean' } },
625
+ { name: 'sms_template_id', in: 'query', required: true, schema: { type: 'string' } },
626
+ { name: 'placeholder_keys', in: 'query', schema: { type: 'array', items: { type: 'string' } } }
627
+ ]
628
+ },
629
+ estimateSmsTaskChange: {
630
+ method: 'GET',
631
+ path: '/forms/{form_token}/sms_tasks/{id}/estimate',
632
+ parameters: [
633
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
634
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } },
635
+ { name: 'entry_field', in: 'query', schema: { type: 'string' } },
636
+ { name: 'sms_template_id', in: 'query', required: true, schema: { type: 'string' } },
637
+ { name: 'placeholder_keys', in: 'query', schema: { type: 'array', items: { type: 'string' } } }
638
+ ]
639
+ },
640
+ estimateSmsTaskResend: {
641
+ method: 'GET',
642
+ path: '/forms/{form_token}/sms_tasks/{id}/resend/estimate',
643
+ parameters: [
644
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
645
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } },
646
+ { name: 'status', in: 'query', required: true, schema: { type: 'string', enum: ['FAILED', 'SUCCESS', 'ALL'] } },
647
+ {
648
+ name: 'filters',
649
+ in: 'query',
650
+ content: 'application/json',
651
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
652
+ },
653
+ { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } },
654
+ { name: 'view_token', in: 'query', schema: { type: 'string' } }
655
+ ]
656
+ },
514
657
  getBillingAccount: { method: 'GET', path: '/billing_account', parameters: [] },
515
658
  getCheckinCampaign: {
516
659
  method: 'GET',
@@ -518,6 +661,14 @@ export const OPERATIONS = {
518
661
  parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'integer' } }]
519
662
  },
520
663
  getCurrentUser: { method: 'GET', path: '/me', parameters: [] },
664
+ getEmailTask: {
665
+ method: 'GET',
666
+ path: '/forms/{form_token}/email_tasks/{id}',
667
+ parameters: [
668
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
669
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
670
+ ]
671
+ },
521
672
  getEntry: {
522
673
  method: 'GET',
523
674
  path: '/forms/{form_token}/entries/{serial_number}',
@@ -610,11 +761,32 @@ export const OPERATIONS = {
610
761
  path: '/forms/{form_token}/manually_close_rule',
611
762
  parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
612
763
  },
764
+ getNotificationRule: {
765
+ method: 'GET',
766
+ path: '/forms/{form_token}/notification_rules/{id}',
767
+ parameters: [
768
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
769
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
770
+ ]
771
+ },
613
772
  getOpensearchQuery: {
614
773
  method: 'GET',
615
774
  path: '/opensearch/queries/{query_token}',
616
775
  parameters: [{ name: 'query_token', in: 'path', required: true, schema: { type: 'string' } }]
617
776
  },
777
+ getRoutine: {
778
+ method: 'GET',
779
+ path: '/routines/{id}',
780
+ parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }]
781
+ },
782
+ getSmsTask: {
783
+ method: 'GET',
784
+ path: '/forms/{form_token}/sms_tasks/{id}',
785
+ parameters: [
786
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
787
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
788
+ ]
789
+ },
618
790
  getTable: {
619
791
  method: 'GET',
620
792
  path: '/tables/{table_token}',
@@ -673,6 +845,36 @@ export const OPERATIONS = {
673
845
  path: '/contacts',
674
846
  parameters: [{ name: 'next', in: 'query', schema: { type: 'string' } }]
675
847
  },
848
+ listEmailTaskActivities: {
849
+ method: 'GET',
850
+ path: '/forms/{form_token}/email_tasks/{id}/activities',
851
+ parameters: [
852
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
853
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } },
854
+ { name: 'status', in: 'query', schema: { type: 'string', enum: ['SUCCESS', 'FAILED'] } },
855
+ { name: 'email', in: 'query', schema: { type: 'string' } },
856
+ { name: 'limit', in: 'query', schema: { type: 'integer' } },
857
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
858
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
859
+ ]
860
+ },
861
+ listEmailTasks: {
862
+ method: 'GET',
863
+ path: '/forms/{form_token}/email_tasks',
864
+ parameters: [
865
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
866
+ {
867
+ name: 'status',
868
+ in: 'query',
869
+ schema: { type: 'string', enum: ['waiting_for_send', 'sending', 'all_sent', 'partial_sent', 'none_sent'] }
870
+ },
871
+ { name: 'start_date', in: 'query', schema: { type: 'string' } },
872
+ { name: 'end_date', in: 'query', schema: { type: 'string' } },
873
+ { name: 'limit', in: 'query', schema: { type: 'integer', minimum: 1, maximum: 100 } },
874
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
875
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
876
+ ]
877
+ },
676
878
  listEntries: {
677
879
  method: 'GET',
678
880
  path: '/forms/{form_token}/entries',
@@ -798,6 +1000,32 @@ export const OPERATIONS = {
798
1000
  { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
799
1001
  ]
800
1002
  },
1003
+ listNotificationRuleNotifications: {
1004
+ method: 'GET',
1005
+ path: '/forms/{form_token}/notification_rules/{id}/notifications',
1006
+ parameters: [
1007
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1008
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } },
1009
+ { name: 'start_date', in: 'query', schema: { type: 'string' } },
1010
+ { name: 'end_date', in: 'query', schema: { type: 'string' } },
1011
+ {
1012
+ name: 'status',
1013
+ in: 'query',
1014
+ schema: {
1015
+ type: 'string',
1016
+ enum: ['SUCCESS', 'FAILED', 'WAITING', 'AUDITING', 'APPROVED', 'REJECTED', 'CANCELLED', 'REVOKED']
1017
+ }
1018
+ },
1019
+ { name: 'limit', in: 'query', schema: { type: 'integer', minimum: 1, maximum: 1000 } },
1020
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
1021
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
1022
+ ]
1023
+ },
1024
+ listNotificationRules: {
1025
+ method: 'GET',
1026
+ path: '/forms/{form_token}/notification_rules',
1027
+ parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
1028
+ },
801
1029
  listOpensearchQueries: {
802
1030
  method: 'GET',
803
1031
  path: '/opensearch/queries',
@@ -809,6 +1037,26 @@ export const OPERATIONS = {
809
1037
  parameters: [{ name: 'form_token', in: 'query', required: true, schema: { type: 'string' } }]
810
1038
  },
811
1039
  listPredefinedChoicesSets: { method: 'GET', path: '/predefined_choices_sets', parameters: [] },
1040
+ listRoutineRuns: {
1041
+ method: 'GET',
1042
+ path: '/routines/{routine_id}/runs',
1043
+ parameters: [
1044
+ { name: 'routine_id', in: 'path', required: true, schema: { type: 'string' } },
1045
+ { name: 'limit', in: 'query', schema: { type: 'integer' } },
1046
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
1047
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
1048
+ ]
1049
+ },
1050
+ listRoutines: {
1051
+ method: 'GET',
1052
+ path: '/routines',
1053
+ parameters: [
1054
+ { name: 'state', in: 'query', schema: { type: 'string', enum: ['active', 'paused'] } },
1055
+ { name: 'limit', in: 'query', schema: { type: 'integer' } },
1056
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
1057
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
1058
+ ]
1059
+ },
812
1060
  listSmsAuditStatuses: { method: 'GET', path: '/sms/audit_statuses', parameters: [] },
813
1061
  listSmsSignatures: {
814
1062
  method: 'GET',
@@ -820,6 +1068,52 @@ export const OPERATIONS = {
820
1068
  { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
821
1069
  ]
822
1070
  },
1071
+ listSmsTaskActivities: {
1072
+ method: 'GET',
1073
+ path: '/forms/{form_token}/sms_tasks/{id}/activities',
1074
+ parameters: [
1075
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1076
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } },
1077
+ { name: 'status', in: 'query', schema: { type: 'string', enum: ['SUCCESS', 'FAILED'] } },
1078
+ { name: 'mobile', in: 'query', schema: { type: 'string' } },
1079
+ { name: 'limit', in: 'query', schema: { type: 'integer' } },
1080
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
1081
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
1082
+ ]
1083
+ },
1084
+ listSmsTasks: {
1085
+ method: 'GET',
1086
+ path: '/forms/{form_token}/sms_tasks',
1087
+ parameters: [
1088
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1089
+ {
1090
+ name: 'status',
1091
+ in: 'query',
1092
+ schema: {
1093
+ type: 'string',
1094
+ enum: [
1095
+ 'template_checking',
1096
+ 'content_auditing',
1097
+ 'approved',
1098
+ 'rejected',
1099
+ 'waiting_for_send',
1100
+ 'sending',
1101
+ 'all_sent',
1102
+ 'partial_sent',
1103
+ 'none_sent',
1104
+ 'template_fail',
1105
+ 'revoked',
1106
+ 'template_deleted'
1107
+ ]
1108
+ }
1109
+ },
1110
+ { name: 'start_date', in: 'query', schema: { type: 'string' } },
1111
+ { name: 'end_date', in: 'query', schema: { type: 'string' } },
1112
+ { name: 'limit', in: 'query', schema: { type: 'integer', minimum: 1, maximum: 100 } },
1113
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
1114
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
1115
+ ]
1116
+ },
823
1117
  listSmsTemplates: {
824
1118
  method: 'GET',
825
1119
  path: '/sms/templates',
@@ -833,6 +1127,7 @@ export const OPERATIONS = {
833
1127
  { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
834
1128
  ]
835
1129
  },
1130
+ listSmtpAccounts: { method: 'GET', path: '/smtp_accounts', parameters: [] },
836
1131
  listTableEntries: {
837
1132
  method: 'GET',
838
1133
  path: '/tables/{table_token}/entries',
@@ -991,6 +1286,11 @@ export const OPERATIONS = {
991
1286
  }
992
1287
  }
993
1288
  },
1289
+ pauseRoutine: {
1290
+ method: 'POST',
1291
+ path: '/routines/{routine_id}/pause',
1292
+ parameters: [{ name: 'routine_id', in: 'path', required: true, schema: { type: 'string' } }]
1293
+ },
994
1294
  previewFormFieldTypeChange: {
995
1295
  method: 'GET',
996
1296
  path: '/forms/{form_token}/fields/preview_convert',
@@ -1037,6 +1337,34 @@ export const OPERATIONS = {
1037
1337
  ],
1038
1338
  body: { required: true, content: { 'application/json': { $ref: 'EntryInput' } } }
1039
1339
  },
1340
+ resendEmailTask: {
1341
+ method: 'POST',
1342
+ path: '/forms/{form_token}/email_tasks/{id}/resend',
1343
+ parameters: [
1344
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1345
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
1346
+ ],
1347
+ body: { required: true, content: { 'application/json': { $ref: 'EntryTaskResendInput' } } }
1348
+ },
1349
+ resendSmsTask: {
1350
+ method: 'POST',
1351
+ path: '/forms/{form_token}/sms_tasks/{id}/resend',
1352
+ parameters: [
1353
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1354
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
1355
+ ],
1356
+ body: { required: true, content: { 'application/json': { $ref: 'EntryTaskResendInput' } } }
1357
+ },
1358
+ resumeRoutine: {
1359
+ method: 'POST',
1360
+ path: '/routines/{routine_id}/resume',
1361
+ parameters: [{ name: 'routine_id', in: 'path', required: true, schema: { type: 'string' } }]
1362
+ },
1363
+ runRoutine: {
1364
+ method: 'POST',
1365
+ path: '/routines/{routine_id}/run',
1366
+ parameters: [{ name: 'routine_id', in: 'path', required: true, schema: { type: 'string' } }]
1367
+ },
1040
1368
  searchEntriesAcrossForms: {
1041
1369
  method: 'GET',
1042
1370
  path: '/entries/search',
@@ -1059,6 +1387,14 @@ export const OPERATIONS = {
1059
1387
  { name: 'form_tokens', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } }
1060
1388
  ]
1061
1389
  },
1390
+ sendSmsTask: {
1391
+ method: 'PATCH',
1392
+ path: '/forms/{form_token}/sms_tasks/{id}/auto_send',
1393
+ parameters: [
1394
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1395
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
1396
+ ]
1397
+ },
1062
1398
  summarizeEntries: {
1063
1399
  method: 'GET',
1064
1400
  path: '/forms/{form_token}/entries/summary',
@@ -1220,6 +1556,29 @@ export const OPERATIONS = {
1220
1556
  parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
1221
1557
  body: { required: true, content: { 'application/json': { $ref: 'FormManuallyCloseRuleInput' } } }
1222
1558
  },
1559
+ updateNotificationRule: {
1560
+ method: 'PATCH',
1561
+ path: '/forms/{form_token}/notification_rules/{id}',
1562
+ parameters: [
1563
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1564
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
1565
+ ],
1566
+ body: {
1567
+ required: true,
1568
+ content: {
1569
+ 'application/json': {
1570
+ anyOf: [
1571
+ { $ref: 'SMSNotificationRuleInput' },
1572
+ { $ref: 'EmailNotificationRuleInput' },
1573
+ { $ref: 'WeixinOnetimeNotificationRuleInput' },
1574
+ { $ref: 'WxworkNotificationRuleInput' },
1575
+ { $ref: 'DingTalkNotificationRuleInput' },
1576
+ { $ref: 'WebhookNotificationRuleInput' }
1577
+ ]
1578
+ }
1579
+ }
1580
+ }
1581
+ },
1223
1582
  updateOpensearchQuery: {
1224
1583
  method: 'PATCH',
1225
1584
  path: '/opensearch/queries/{query_token}',
@@ -1242,12 +1601,27 @@ export const OPERATIONS = {
1242
1601
  }
1243
1602
  }
1244
1603
  },
1604
+ updateRoutine: {
1605
+ method: 'PATCH',
1606
+ path: '/routines/{id}',
1607
+ parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }],
1608
+ body: { required: true, content: { 'application/json': { $ref: 'RoutineInput' } } }
1609
+ },
1245
1610
  updateSmsSignature: {
1246
1611
  method: 'PATCH',
1247
1612
  path: '/sms/signatures/{id}',
1248
1613
  parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }],
1249
1614
  body: { required: true, content: { 'application/json': { $ref: 'SMSSignatureUpdateInput' } } }
1250
1615
  },
1616
+ updateSmsTask: {
1617
+ method: 'PATCH',
1618
+ path: '/forms/{form_token}/sms_tasks/{id}',
1619
+ parameters: [
1620
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1621
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
1622
+ ],
1623
+ body: { required: true, content: { 'application/json': { $ref: 'SMSTaskUpdateInput' } } }
1624
+ },
1251
1625
  updateSmsTemplate: {
1252
1626
  method: 'PATCH',
1253
1627
  path: '/sms/templates/{id}',
@@ -1777,6 +2151,20 @@ export const SCHEMAS = {
1777
2151
  choices: { type: 'array', items: { $ref: 'ChoiceInput' } }
1778
2152
  }
1779
2153
  },
2154
+ DingTalkNotificationRuleInput: {
2155
+ type: 'object',
2156
+ properties: {
2157
+ approach: { type: 'string', enum: ['DING_TALK'] },
2158
+ enabled: { type: 'boolean' },
2159
+ trigger_scope: { $ref: 'NotificationRuleTriggerScope' },
2160
+ scope_conditions: { type: 'array', items: { $ref: 'NotificationRuleScopeCondition' } },
2161
+ schedule_time_rule: { $ref: 'NotificationRuleScheduleTimeRule' },
2162
+ url: { type: 'string' },
2163
+ content: { type: 'string' },
2164
+ mentioned_mobile_list: { type: 'array', items: { type: 'string' } }
2165
+ },
2166
+ additionalProperties: false
2167
+ },
1780
2168
  DropDownInput: {
1781
2169
  type: 'object',
1782
2170
  additionalProperties: false,
@@ -1867,6 +2255,36 @@ export const SCHEMAS = {
1867
2255
  placeholder: { type: 'string' }
1868
2256
  }
1869
2257
  },
2258
+ EmailNotificationRuleInput: {
2259
+ type: 'object',
2260
+ properties: {
2261
+ approach: { type: 'string', enum: ['EMAIL'] },
2262
+ enabled: { type: 'boolean' },
2263
+ trigger_scope: { $ref: 'NotificationRuleTriggerScope' },
2264
+ scope_conditions: { type: 'array', items: { $ref: 'NotificationRuleScopeCondition' } },
2265
+ schedule_time_rule: { $ref: 'NotificationRuleScheduleTimeRule' },
2266
+ recipients: { type: 'array', items: { type: 'string' } },
2267
+ subject: { type: 'string' },
2268
+ content: { type: 'string' },
2269
+ smtp_account_id: { type: ['string', 'null'] }
2270
+ },
2271
+ additionalProperties: false
2272
+ },
2273
+ EmailTaskCreateInput: {
2274
+ type: 'object',
2275
+ required: ['entry_field', 'subject', 'content'],
2276
+ properties: {
2277
+ entry_field: { type: 'string' },
2278
+ filters: { oneOf: [{ type: 'string' }, { type: 'array', items: { type: 'object' } }] },
2279
+ keyword: { type: 'string', maxLength: 200 },
2280
+ view_token: { type: 'string' },
2281
+ select_all: { type: 'boolean' },
2282
+ smtp_account_id: { type: 'string' },
2283
+ subject: { type: 'string' },
2284
+ content: { type: 'string' }
2285
+ },
2286
+ additionalProperties: false
2287
+ },
1870
2288
  EntryAttachmentBase64Input: {
1871
2289
  type: 'object',
1872
2290
  required: ['field_api_code', 'base64'],
@@ -1909,6 +2327,17 @@ export const SCHEMAS = {
1909
2327
  additionalProperties: false
1910
2328
  },
1911
2329
  EntryInput: { type: 'object', additionalProperties: true },
2330
+ EntryTaskResendInput: {
2331
+ type: 'object',
2332
+ required: ['status'],
2333
+ properties: {
2334
+ status: { type: 'string', enum: ['FAILED', 'SUCCESS', 'ALL'] },
2335
+ filters: { oneOf: [{ type: 'string' }, { type: 'array', items: { type: 'object' } }] },
2336
+ keyword: { type: 'string', maxLength: 200 },
2337
+ view_token: { type: 'string' }
2338
+ },
2339
+ additionalProperties: false
2340
+ },
1912
2341
  EvaluationSettingInput: {
1913
2342
  type: 'object',
1914
2343
  properties: {
@@ -3400,6 +3829,54 @@ export const SCHEMAS = {
3400
3829
  },
3401
3830
  additionalProperties: false
3402
3831
  },
3832
+ NotificationRuleScheduleTimeRule: {
3833
+ type: 'object',
3834
+ required: ['date_key'],
3835
+ properties: {
3836
+ date_key: { type: 'string' },
3837
+ reservation_item_key: { type: 'string' },
3838
+ date_offset_action: { type: 'string', enum: ['before', 'that_day', 'after'] },
3839
+ date_offset_number: { type: 'integer', minimum: 0 },
3840
+ date_offset_unit: { type: 'string', enum: ['minute', 'hour', 'day', 'week', 'month'] },
3841
+ hour: { type: ['integer', 'null'], minimum: 0, maximum: 23 },
3842
+ minute: { type: ['integer', 'null'], minimum: 0, maximum: 59 }
3843
+ },
3844
+ additionalProperties: false
3845
+ },
3846
+ NotificationRuleScopeCondition: {
3847
+ type: 'object',
3848
+ required: ['trigger', 'operator'],
3849
+ properties: {
3850
+ trigger: { type: 'string' },
3851
+ operator: {
3852
+ type: 'string',
3853
+ enum: [
3854
+ 'eq',
3855
+ 'ne',
3856
+ 'any_in',
3857
+ 'none_in',
3858
+ 'between',
3859
+ 'not_between',
3860
+ 'gte',
3861
+ 'gt',
3862
+ 'lte',
3863
+ 'lt',
3864
+ 'null',
3865
+ 'not_null',
3866
+ 'like',
3867
+ 'not_like',
3868
+ 'match'
3869
+ ]
3870
+ },
3871
+ value: {},
3872
+ group_index: { type: 'integer' }
3873
+ },
3874
+ additionalProperties: false
3875
+ },
3876
+ NotificationRuleTriggerScope: {
3877
+ type: 'string',
3878
+ enum: ['all_new', 'all_update', 'matched_new', 'matched_update', 'schedule_time']
3879
+ },
3403
3880
  NpsFieldInput: {
3404
3881
  type: 'object',
3405
3882
  additionalProperties: false,
@@ -3837,6 +4314,70 @@ export const SCHEMAS = {
3837
4314
  }
3838
4315
  }
3839
4316
  },
4317
+ RoutineEventInput: {
4318
+ type: 'object',
4319
+ properties: {
4320
+ source_kind: { type: 'string' },
4321
+ source_token: { type: 'string' },
4322
+ on: { type: 'string' },
4323
+ field_codes: { type: 'array', items: { type: 'string' } },
4324
+ scope_conditions: {
4325
+ type: 'array',
4326
+ items: {
4327
+ type: 'object',
4328
+ properties: {
4329
+ trigger: { type: 'string' },
4330
+ operator: { type: 'string' },
4331
+ value: {},
4332
+ group_index: { type: 'integer' },
4333
+ scope_attr: { type: 'string' }
4334
+ }
4335
+ }
4336
+ },
4337
+ include_bulk: { type: 'boolean' }
4338
+ }
4339
+ },
4340
+ RoutineInput: {
4341
+ type: 'object',
4342
+ properties: {
4343
+ name: { type: ['string', 'null'] },
4344
+ description: { type: ['string', 'null'] },
4345
+ instruction: { type: ['string', 'null'] },
4346
+ objects: {
4347
+ type: ['array', 'null'],
4348
+ items: { type: 'object', properties: { kind: { type: 'string' }, token: { type: 'string' } } }
4349
+ },
4350
+ trigger_kind: { type: ['string', 'null'] },
4351
+ schedule: { oneOf: [{ $ref: 'RoutineScheduleInput' }, { type: 'null' }] },
4352
+ event: { oneOf: [{ $ref: 'RoutineEventInput' }, { type: 'null' }] },
4353
+ delete_authorized: {}
4354
+ }
4355
+ },
4356
+ RoutineScheduleInput: {
4357
+ type: 'object',
4358
+ properties: {
4359
+ freq: { type: 'string' },
4360
+ at: { type: 'string' },
4361
+ minute: { type: 'integer' },
4362
+ time: { type: 'string' },
4363
+ weekdays: { type: 'array', items: { type: 'integer' } },
4364
+ month_days: { type: 'array', items: { type: 'integer' } }
4365
+ }
4366
+ },
4367
+ SMSNotificationRuleInput: {
4368
+ type: 'object',
4369
+ properties: {
4370
+ approach: { type: 'string', enum: ['SMS'] },
4371
+ enabled: { type: 'boolean' },
4372
+ trigger_scope: { $ref: 'NotificationRuleTriggerScope' },
4373
+ scope_conditions: { type: 'array', items: { $ref: 'NotificationRuleScopeCondition' } },
4374
+ schedule_time_rule: { $ref: 'NotificationRuleScheduleTimeRule' },
4375
+ recipients: { type: 'array', items: { type: 'string' } },
4376
+ sms_template_id: { type: 'string' },
4377
+ placeholder_keys: { type: 'array', items: { type: 'string' } }
4378
+ },
4379
+ additionalProperties: false
4380
+ },
3840
4381
  SMSSignatureCreateInput: {
3841
4382
  type: 'object',
3842
4383
  required: [
@@ -3879,6 +4420,34 @@ export const SCHEMAS = {
3879
4420
  },
3880
4421
  additionalProperties: false
3881
4422
  },
4423
+ SMSTaskCreateInput: {
4424
+ type: 'object',
4425
+ required: ['entry_field', 'sms_template_id'],
4426
+ properties: {
4427
+ entry_field: { type: 'string' },
4428
+ filters: { oneOf: [{ type: 'string' }, { type: 'array', items: { type: 'object' } }] },
4429
+ keyword: { type: 'string', maxLength: 200 },
4430
+ view_token: { type: 'string' },
4431
+ select_all: { type: 'boolean' },
4432
+ sms_template_id: { type: 'string' },
4433
+ placeholder_keys: { type: 'array', items: { type: 'string' } },
4434
+ send_at: { type: 'string' },
4435
+ auto_send: { type: 'boolean' }
4436
+ },
4437
+ additionalProperties: false
4438
+ },
4439
+ SMSTaskUpdateInput: {
4440
+ type: 'object',
4441
+ properties: {
4442
+ revoked: { type: 'boolean' },
4443
+ entry_field: { type: 'string' },
4444
+ sms_template_id: { type: 'string' },
4445
+ placeholder_keys: { type: 'array', items: { type: 'string' } },
4446
+ send_at: { type: 'string' },
4447
+ auto_send: { type: 'boolean' }
4448
+ },
4449
+ additionalProperties: false
4450
+ },
3882
4451
  SMSTemplateCreateInput: {
3883
4452
  type: 'object',
3884
4453
  required: ['signature', 'content'],
@@ -4330,6 +4899,32 @@ export const SCHEMAS = {
4330
4899
  ]
4331
4900
  },
4332
4901
  WebhookInput: { type: 'object', properties: { entry_post_url: { type: 'string' } }, additionalProperties: false },
4902
+ WebhookNotificationRuleInput: {
4903
+ type: 'object',
4904
+ properties: {
4905
+ approach: { type: 'string', enum: ['WEBHOOK'] },
4906
+ enabled: { type: 'boolean' },
4907
+ trigger_scope: { $ref: 'NotificationRuleTriggerScope' },
4908
+ scope_conditions: { type: 'array', items: { $ref: 'NotificationRuleScopeCondition' } },
4909
+ schedule_time_rule: { $ref: 'NotificationRuleScheduleTimeRule' },
4910
+ url: { type: 'string' }
4911
+ },
4912
+ additionalProperties: false
4913
+ },
4914
+ WeixinOnetimeNotificationRuleInput: {
4915
+ type: 'object',
4916
+ properties: {
4917
+ approach: { type: 'string', enum: ['WEIXIN_ONETIME'] },
4918
+ enabled: { type: 'boolean' },
4919
+ trigger_scope: { $ref: 'NotificationRuleTriggerScope' },
4920
+ scope_conditions: { type: 'array', items: { $ref: 'NotificationRuleScopeCondition' } },
4921
+ schedule_time_rule: { $ref: 'NotificationRuleScheduleTimeRule' },
4922
+ subject: { type: 'string', maxLength: 15 },
4923
+ content: { type: 'string', maxLength: 200 },
4924
+ weixin_onetime_url: { type: 'string' }
4925
+ },
4926
+ additionalProperties: false
4927
+ },
4333
4928
  WidgetButtonInput: {
4334
4929
  type: 'object',
4335
4930
  additionalProperties: false,
@@ -4430,5 +5025,19 @@ export const SCHEMAS = {
4430
5025
  entries_number_visible: { type: 'boolean' },
4431
5026
  marquee_data_type: { type: 'string', enum: ['fake', 'real'] }
4432
5027
  }
5028
+ },
5029
+ WxworkNotificationRuleInput: {
5030
+ type: 'object',
5031
+ properties: {
5032
+ approach: { type: 'string', enum: ['WXWORK'] },
5033
+ enabled: { type: 'boolean' },
5034
+ trigger_scope: { $ref: 'NotificationRuleTriggerScope' },
5035
+ scope_conditions: { type: 'array', items: { $ref: 'NotificationRuleScopeCondition' } },
5036
+ schedule_time_rule: { $ref: 'NotificationRuleScheduleTimeRule' },
5037
+ url: { type: 'string' },
5038
+ content: { type: 'string' },
5039
+ mentioned_mobile_list: { type: 'array', items: { type: 'string' } }
5040
+ },
5041
+ additionalProperties: false
4433
5042
  }
4434
5043
  };