@jinshuju/cli 0.15.0 → 0.16.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,34 @@ 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: 'limit', in: 'query', schema: { type: 'integer' } },
872
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
873
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
874
+ ]
875
+ },
676
876
  listEntries: {
677
877
  method: 'GET',
678
878
  path: '/forms/{form_token}/entries',
@@ -798,6 +998,11 @@ export const OPERATIONS = {
798
998
  { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
799
999
  ]
800
1000
  },
1001
+ listNotificationRules: {
1002
+ method: 'GET',
1003
+ path: '/forms/{form_token}/notification_rules',
1004
+ parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
1005
+ },
801
1006
  listOpensearchQueries: {
802
1007
  method: 'GET',
803
1008
  path: '/opensearch/queries',
@@ -809,6 +1014,26 @@ export const OPERATIONS = {
809
1014
  parameters: [{ name: 'form_token', in: 'query', required: true, schema: { type: 'string' } }]
810
1015
  },
811
1016
  listPredefinedChoicesSets: { method: 'GET', path: '/predefined_choices_sets', parameters: [] },
1017
+ listRoutineRuns: {
1018
+ method: 'GET',
1019
+ path: '/routines/{routine_id}/runs',
1020
+ parameters: [
1021
+ { name: 'routine_id', in: 'path', required: true, schema: { type: 'string' } },
1022
+ { name: 'limit', in: 'query', schema: { type: 'integer' } },
1023
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
1024
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
1025
+ ]
1026
+ },
1027
+ listRoutines: {
1028
+ method: 'GET',
1029
+ path: '/routines',
1030
+ parameters: [
1031
+ { name: 'state', in: 'query', schema: { type: 'string', enum: ['active', 'paused'] } },
1032
+ { name: 'limit', in: 'query', schema: { type: 'integer' } },
1033
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
1034
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
1035
+ ]
1036
+ },
812
1037
  listSmsAuditStatuses: { method: 'GET', path: '/sms/audit_statuses', parameters: [] },
813
1038
  listSmsSignatures: {
814
1039
  method: 'GET',
@@ -820,6 +1045,50 @@ export const OPERATIONS = {
820
1045
  { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
821
1046
  ]
822
1047
  },
1048
+ listSmsTaskActivities: {
1049
+ method: 'GET',
1050
+ path: '/forms/{form_token}/sms_tasks/{id}/activities',
1051
+ parameters: [
1052
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1053
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } },
1054
+ { name: 'status', in: 'query', schema: { type: 'string', enum: ['SUCCESS', 'FAILED'] } },
1055
+ { name: 'mobile', in: 'query', schema: { type: 'string' } },
1056
+ { name: 'limit', in: 'query', schema: { type: 'integer' } },
1057
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
1058
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
1059
+ ]
1060
+ },
1061
+ listSmsTasks: {
1062
+ method: 'GET',
1063
+ path: '/forms/{form_token}/sms_tasks',
1064
+ parameters: [
1065
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1066
+ {
1067
+ name: 'status',
1068
+ in: 'query',
1069
+ schema: {
1070
+ type: 'string',
1071
+ enum: [
1072
+ 'template_checking',
1073
+ 'content_auditing',
1074
+ 'approved',
1075
+ 'rejected',
1076
+ 'waiting_for_send',
1077
+ 'sending',
1078
+ 'all_sent',
1079
+ 'partial_sent',
1080
+ 'none_sent',
1081
+ 'template_fail',
1082
+ 'revoked',
1083
+ 'template_deleted'
1084
+ ]
1085
+ }
1086
+ },
1087
+ { name: 'limit', in: 'query', schema: { type: 'integer' } },
1088
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
1089
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
1090
+ ]
1091
+ },
823
1092
  listSmsTemplates: {
824
1093
  method: 'GET',
825
1094
  path: '/sms/templates',
@@ -833,6 +1102,7 @@ export const OPERATIONS = {
833
1102
  { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
834
1103
  ]
835
1104
  },
1105
+ listSmtpAccounts: { method: 'GET', path: '/smtp_accounts', parameters: [] },
836
1106
  listTableEntries: {
837
1107
  method: 'GET',
838
1108
  path: '/tables/{table_token}/entries',
@@ -991,6 +1261,11 @@ export const OPERATIONS = {
991
1261
  }
992
1262
  }
993
1263
  },
1264
+ pauseRoutine: {
1265
+ method: 'POST',
1266
+ path: '/routines/{routine_id}/pause',
1267
+ parameters: [{ name: 'routine_id', in: 'path', required: true, schema: { type: 'string' } }]
1268
+ },
994
1269
  previewFormFieldTypeChange: {
995
1270
  method: 'GET',
996
1271
  path: '/forms/{form_token}/fields/preview_convert',
@@ -1037,6 +1312,34 @@ export const OPERATIONS = {
1037
1312
  ],
1038
1313
  body: { required: true, content: { 'application/json': { $ref: 'EntryInput' } } }
1039
1314
  },
1315
+ resendEmailTask: {
1316
+ method: 'POST',
1317
+ path: '/forms/{form_token}/email_tasks/{id}/resend',
1318
+ parameters: [
1319
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1320
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
1321
+ ],
1322
+ body: { required: true, content: { 'application/json': { $ref: 'EntryTaskResendInput' } } }
1323
+ },
1324
+ resendSmsTask: {
1325
+ method: 'POST',
1326
+ path: '/forms/{form_token}/sms_tasks/{id}/resend',
1327
+ parameters: [
1328
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1329
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
1330
+ ],
1331
+ body: { required: true, content: { 'application/json': { $ref: 'EntryTaskResendInput' } } }
1332
+ },
1333
+ resumeRoutine: {
1334
+ method: 'POST',
1335
+ path: '/routines/{routine_id}/resume',
1336
+ parameters: [{ name: 'routine_id', in: 'path', required: true, schema: { type: 'string' } }]
1337
+ },
1338
+ runRoutine: {
1339
+ method: 'POST',
1340
+ path: '/routines/{routine_id}/run',
1341
+ parameters: [{ name: 'routine_id', in: 'path', required: true, schema: { type: 'string' } }]
1342
+ },
1040
1343
  searchEntriesAcrossForms: {
1041
1344
  method: 'GET',
1042
1345
  path: '/entries/search',
@@ -1059,6 +1362,14 @@ export const OPERATIONS = {
1059
1362
  { name: 'form_tokens', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } }
1060
1363
  ]
1061
1364
  },
1365
+ sendSmsTask: {
1366
+ method: 'PATCH',
1367
+ path: '/forms/{form_token}/sms_tasks/{id}/auto_send',
1368
+ parameters: [
1369
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1370
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
1371
+ ]
1372
+ },
1062
1373
  summarizeEntries: {
1063
1374
  method: 'GET',
1064
1375
  path: '/forms/{form_token}/entries/summary',
@@ -1220,6 +1531,29 @@ export const OPERATIONS = {
1220
1531
  parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
1221
1532
  body: { required: true, content: { 'application/json': { $ref: 'FormManuallyCloseRuleInput' } } }
1222
1533
  },
1534
+ updateNotificationRule: {
1535
+ method: 'PATCH',
1536
+ path: '/forms/{form_token}/notification_rules/{id}',
1537
+ parameters: [
1538
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1539
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
1540
+ ],
1541
+ body: {
1542
+ required: true,
1543
+ content: {
1544
+ 'application/json': {
1545
+ anyOf: [
1546
+ { $ref: 'SMSNotificationRuleInput' },
1547
+ { $ref: 'EmailNotificationRuleInput' },
1548
+ { $ref: 'WeixinOnetimeNotificationRuleInput' },
1549
+ { $ref: 'WxworkNotificationRuleInput' },
1550
+ { $ref: 'DingTalkNotificationRuleInput' },
1551
+ { $ref: 'WebhookNotificationRuleInput' }
1552
+ ]
1553
+ }
1554
+ }
1555
+ }
1556
+ },
1223
1557
  updateOpensearchQuery: {
1224
1558
  method: 'PATCH',
1225
1559
  path: '/opensearch/queries/{query_token}',
@@ -1242,12 +1576,27 @@ export const OPERATIONS = {
1242
1576
  }
1243
1577
  }
1244
1578
  },
1579
+ updateRoutine: {
1580
+ method: 'PATCH',
1581
+ path: '/routines/{id}',
1582
+ parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }],
1583
+ body: { required: true, content: { 'application/json': { $ref: 'RoutineInput' } } }
1584
+ },
1245
1585
  updateSmsSignature: {
1246
1586
  method: 'PATCH',
1247
1587
  path: '/sms/signatures/{id}',
1248
1588
  parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }],
1249
1589
  body: { required: true, content: { 'application/json': { $ref: 'SMSSignatureUpdateInput' } } }
1250
1590
  },
1591
+ updateSmsTask: {
1592
+ method: 'PATCH',
1593
+ path: '/forms/{form_token}/sms_tasks/{id}',
1594
+ parameters: [
1595
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1596
+ { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
1597
+ ],
1598
+ body: { required: true, content: { 'application/json': { $ref: 'SMSTaskUpdateInput' } } }
1599
+ },
1251
1600
  updateSmsTemplate: {
1252
1601
  method: 'PATCH',
1253
1602
  path: '/sms/templates/{id}',
@@ -1777,6 +2126,20 @@ export const SCHEMAS = {
1777
2126
  choices: { type: 'array', items: { $ref: 'ChoiceInput' } }
1778
2127
  }
1779
2128
  },
2129
+ DingTalkNotificationRuleInput: {
2130
+ type: 'object',
2131
+ properties: {
2132
+ approach: { type: 'string', enum: ['DING_TALK'] },
2133
+ enabled: { type: 'boolean' },
2134
+ trigger_scope: { $ref: 'NotificationRuleTriggerScope' },
2135
+ scope_conditions: { type: 'array', items: { $ref: 'NotificationRuleScopeCondition' } },
2136
+ schedule_time_rule: { $ref: 'NotificationRuleScheduleTimeRule' },
2137
+ url: { type: 'string' },
2138
+ content: { type: 'string' },
2139
+ mentioned_mobile_list: { type: 'array', items: { type: 'string' } }
2140
+ },
2141
+ additionalProperties: false
2142
+ },
1780
2143
  DropDownInput: {
1781
2144
  type: 'object',
1782
2145
  additionalProperties: false,
@@ -1867,6 +2230,36 @@ export const SCHEMAS = {
1867
2230
  placeholder: { type: 'string' }
1868
2231
  }
1869
2232
  },
2233
+ EmailNotificationRuleInput: {
2234
+ type: 'object',
2235
+ properties: {
2236
+ approach: { type: 'string', enum: ['EMAIL'] },
2237
+ enabled: { type: 'boolean' },
2238
+ trigger_scope: { $ref: 'NotificationRuleTriggerScope' },
2239
+ scope_conditions: { type: 'array', items: { $ref: 'NotificationRuleScopeCondition' } },
2240
+ schedule_time_rule: { $ref: 'NotificationRuleScheduleTimeRule' },
2241
+ recipients: { type: 'array', items: { type: 'string' } },
2242
+ subject: { type: 'string' },
2243
+ content: { type: 'string' },
2244
+ smtp_account_id: { type: ['string', 'null'] }
2245
+ },
2246
+ additionalProperties: false
2247
+ },
2248
+ EmailTaskCreateInput: {
2249
+ type: 'object',
2250
+ required: ['entry_field', 'subject', 'content'],
2251
+ properties: {
2252
+ entry_field: { type: 'string' },
2253
+ filters: { oneOf: [{ type: 'string' }, { type: 'array', items: { type: 'object' } }] },
2254
+ keyword: { type: 'string', maxLength: 200 },
2255
+ view_token: { type: 'string' },
2256
+ select_all: { type: 'boolean' },
2257
+ smtp_account_id: { type: 'string' },
2258
+ subject: { type: 'string' },
2259
+ content: { type: 'string' }
2260
+ },
2261
+ additionalProperties: false
2262
+ },
1870
2263
  EntryAttachmentBase64Input: {
1871
2264
  type: 'object',
1872
2265
  required: ['field_api_code', 'base64'],
@@ -1909,6 +2302,17 @@ export const SCHEMAS = {
1909
2302
  additionalProperties: false
1910
2303
  },
1911
2304
  EntryInput: { type: 'object', additionalProperties: true },
2305
+ EntryTaskResendInput: {
2306
+ type: 'object',
2307
+ required: ['status'],
2308
+ properties: {
2309
+ status: { type: 'string', enum: ['FAILED', 'SUCCESS', 'ALL'] },
2310
+ filters: { oneOf: [{ type: 'string' }, { type: 'array', items: { type: 'object' } }] },
2311
+ keyword: { type: 'string', maxLength: 200 },
2312
+ view_token: { type: 'string' }
2313
+ },
2314
+ additionalProperties: false
2315
+ },
1912
2316
  EvaluationSettingInput: {
1913
2317
  type: 'object',
1914
2318
  properties: {
@@ -3400,6 +3804,54 @@ export const SCHEMAS = {
3400
3804
  },
3401
3805
  additionalProperties: false
3402
3806
  },
3807
+ NotificationRuleScheduleTimeRule: {
3808
+ type: 'object',
3809
+ required: ['date_key'],
3810
+ properties: {
3811
+ date_key: { type: 'string' },
3812
+ reservation_item_key: { type: 'string' },
3813
+ date_offset_action: { type: 'string', enum: ['before', 'that_day', 'after'] },
3814
+ date_offset_number: { type: 'integer', minimum: 0 },
3815
+ date_offset_unit: { type: 'string', enum: ['minute', 'hour', 'day', 'week', 'month'] },
3816
+ hour: { type: ['integer', 'null'], minimum: 0, maximum: 23 },
3817
+ minute: { type: ['integer', 'null'], minimum: 0, maximum: 59 }
3818
+ },
3819
+ additionalProperties: false
3820
+ },
3821
+ NotificationRuleScopeCondition: {
3822
+ type: 'object',
3823
+ required: ['trigger', 'operator'],
3824
+ properties: {
3825
+ trigger: { type: 'string' },
3826
+ operator: {
3827
+ type: 'string',
3828
+ enum: [
3829
+ 'eq',
3830
+ 'ne',
3831
+ 'any_in',
3832
+ 'none_in',
3833
+ 'between',
3834
+ 'not_between',
3835
+ 'gte',
3836
+ 'gt',
3837
+ 'lte',
3838
+ 'lt',
3839
+ 'null',
3840
+ 'not_null',
3841
+ 'like',
3842
+ 'not_like',
3843
+ 'match'
3844
+ ]
3845
+ },
3846
+ value: {},
3847
+ group_index: { type: 'integer' }
3848
+ },
3849
+ additionalProperties: false
3850
+ },
3851
+ NotificationRuleTriggerScope: {
3852
+ type: 'string',
3853
+ enum: ['all_new', 'all_update', 'matched_new', 'matched_update', 'schedule_time']
3854
+ },
3403
3855
  NpsFieldInput: {
3404
3856
  type: 'object',
3405
3857
  additionalProperties: false,
@@ -3837,6 +4289,70 @@ export const SCHEMAS = {
3837
4289
  }
3838
4290
  }
3839
4291
  },
4292
+ RoutineEventInput: {
4293
+ type: 'object',
4294
+ properties: {
4295
+ source_kind: { type: 'string' },
4296
+ source_token: { type: 'string' },
4297
+ on: { type: 'string' },
4298
+ field_codes: { type: 'array', items: { type: 'string' } },
4299
+ scope_conditions: {
4300
+ type: 'array',
4301
+ items: {
4302
+ type: 'object',
4303
+ properties: {
4304
+ trigger: { type: 'string' },
4305
+ operator: { type: 'string' },
4306
+ value: {},
4307
+ group_index: { type: 'integer' },
4308
+ scope_attr: { type: 'string' }
4309
+ }
4310
+ }
4311
+ },
4312
+ include_bulk: { type: 'boolean' }
4313
+ }
4314
+ },
4315
+ RoutineInput: {
4316
+ type: 'object',
4317
+ properties: {
4318
+ name: { type: ['string', 'null'] },
4319
+ description: { type: ['string', 'null'] },
4320
+ instruction: { type: ['string', 'null'] },
4321
+ objects: {
4322
+ type: ['array', 'null'],
4323
+ items: { type: 'object', properties: { kind: { type: 'string' }, token: { type: 'string' } } }
4324
+ },
4325
+ trigger_kind: { type: ['string', 'null'] },
4326
+ schedule: { oneOf: [{ $ref: 'RoutineScheduleInput' }, { type: 'null' }] },
4327
+ event: { oneOf: [{ $ref: 'RoutineEventInput' }, { type: 'null' }] },
4328
+ delete_authorized: {}
4329
+ }
4330
+ },
4331
+ RoutineScheduleInput: {
4332
+ type: 'object',
4333
+ properties: {
4334
+ freq: { type: 'string' },
4335
+ at: { type: 'string' },
4336
+ minute: { type: 'integer' },
4337
+ time: { type: 'string' },
4338
+ weekdays: { type: 'array', items: { type: 'integer' } },
4339
+ month_days: { type: 'array', items: { type: 'integer' } }
4340
+ }
4341
+ },
4342
+ SMSNotificationRuleInput: {
4343
+ type: 'object',
4344
+ properties: {
4345
+ approach: { type: 'string', enum: ['SMS'] },
4346
+ enabled: { type: 'boolean' },
4347
+ trigger_scope: { $ref: 'NotificationRuleTriggerScope' },
4348
+ scope_conditions: { type: 'array', items: { $ref: 'NotificationRuleScopeCondition' } },
4349
+ schedule_time_rule: { $ref: 'NotificationRuleScheduleTimeRule' },
4350
+ recipients: { type: 'array', items: { type: 'string' } },
4351
+ sms_template_id: { type: 'string' },
4352
+ placeholder_keys: { type: 'array', items: { type: 'string' } }
4353
+ },
4354
+ additionalProperties: false
4355
+ },
3840
4356
  SMSSignatureCreateInput: {
3841
4357
  type: 'object',
3842
4358
  required: [
@@ -3879,6 +4395,34 @@ export const SCHEMAS = {
3879
4395
  },
3880
4396
  additionalProperties: false
3881
4397
  },
4398
+ SMSTaskCreateInput: {
4399
+ type: 'object',
4400
+ required: ['entry_field', 'sms_template_id'],
4401
+ properties: {
4402
+ entry_field: { type: 'string' },
4403
+ filters: { oneOf: [{ type: 'string' }, { type: 'array', items: { type: 'object' } }] },
4404
+ keyword: { type: 'string', maxLength: 200 },
4405
+ view_token: { type: 'string' },
4406
+ select_all: { type: 'boolean' },
4407
+ sms_template_id: { type: 'string' },
4408
+ placeholder_keys: { type: 'array', items: { type: 'string' } },
4409
+ send_at: { type: 'string' },
4410
+ auto_send: { type: 'boolean' }
4411
+ },
4412
+ additionalProperties: false
4413
+ },
4414
+ SMSTaskUpdateInput: {
4415
+ type: 'object',
4416
+ properties: {
4417
+ revoked: { type: 'boolean' },
4418
+ entry_field: { type: 'string' },
4419
+ sms_template_id: { type: 'string' },
4420
+ placeholder_keys: { type: 'array', items: { type: 'string' } },
4421
+ send_at: { type: 'string' },
4422
+ auto_send: { type: 'boolean' }
4423
+ },
4424
+ additionalProperties: false
4425
+ },
3882
4426
  SMSTemplateCreateInput: {
3883
4427
  type: 'object',
3884
4428
  required: ['signature', 'content'],
@@ -4330,6 +4874,32 @@ export const SCHEMAS = {
4330
4874
  ]
4331
4875
  },
4332
4876
  WebhookInput: { type: 'object', properties: { entry_post_url: { type: 'string' } }, additionalProperties: false },
4877
+ WebhookNotificationRuleInput: {
4878
+ type: 'object',
4879
+ properties: {
4880
+ approach: { type: 'string', enum: ['WEBHOOK'] },
4881
+ enabled: { type: 'boolean' },
4882
+ trigger_scope: { $ref: 'NotificationRuleTriggerScope' },
4883
+ scope_conditions: { type: 'array', items: { $ref: 'NotificationRuleScopeCondition' } },
4884
+ schedule_time_rule: { $ref: 'NotificationRuleScheduleTimeRule' },
4885
+ url: { type: 'string' }
4886
+ },
4887
+ additionalProperties: false
4888
+ },
4889
+ WeixinOnetimeNotificationRuleInput: {
4890
+ type: 'object',
4891
+ properties: {
4892
+ approach: { type: 'string', enum: ['WEIXIN_ONETIME'] },
4893
+ enabled: { type: 'boolean' },
4894
+ trigger_scope: { $ref: 'NotificationRuleTriggerScope' },
4895
+ scope_conditions: { type: 'array', items: { $ref: 'NotificationRuleScopeCondition' } },
4896
+ schedule_time_rule: { $ref: 'NotificationRuleScheduleTimeRule' },
4897
+ subject: { type: 'string', maxLength: 15 },
4898
+ content: { type: 'string', maxLength: 200 },
4899
+ weixin_onetime_url: { type: 'string' }
4900
+ },
4901
+ additionalProperties: false
4902
+ },
4333
4903
  WidgetButtonInput: {
4334
4904
  type: 'object',
4335
4905
  additionalProperties: false,
@@ -4430,5 +5000,19 @@ export const SCHEMAS = {
4430
5000
  entries_number_visible: { type: 'boolean' },
4431
5001
  marquee_data_type: { type: 'string', enum: ['fake', 'real'] }
4432
5002
  }
5003
+ },
5004
+ WxworkNotificationRuleInput: {
5005
+ type: 'object',
5006
+ properties: {
5007
+ approach: { type: 'string', enum: ['WXWORK'] },
5008
+ enabled: { type: 'boolean' },
5009
+ trigger_scope: { $ref: 'NotificationRuleTriggerScope' },
5010
+ scope_conditions: { type: 'array', items: { $ref: 'NotificationRuleScopeCondition' } },
5011
+ schedule_time_rule: { $ref: 'NotificationRuleScheduleTimeRule' },
5012
+ url: { type: 'string' },
5013
+ content: { type: 'string' },
5014
+ mentioned_mobile_list: { type: 'array', items: { type: 'string' } }
5015
+ },
5016
+ additionalProperties: false
4433
5017
  }
4434
5018
  };