@jinshuju/cli 0.14.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,6 +403,30 @@ 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
+ },
412
+ createSmsSignature: {
413
+ method: 'POST',
414
+ path: '/sms/signatures',
415
+ parameters: [],
416
+ body: { required: true, content: { 'application/json': { $ref: 'SMSSignatureCreateInput' } } }
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
+ },
424
+ createSmsTemplate: {
425
+ method: 'POST',
426
+ path: '/sms/templates',
427
+ parameters: [],
428
+ body: { required: true, content: { 'application/json': { $ref: 'SMSTemplateCreateInput' } } }
429
+ },
370
430
  createTable: {
371
431
  method: 'POST',
372
432
  path: '/tables',
@@ -436,6 +496,11 @@ export const OPERATIONS = {
436
496
  { name: 'comment_id', in: 'path', required: true, schema: { type: 'string' } }
437
497
  ]
438
498
  },
499
+ deleteForm: {
500
+ method: 'DELETE',
501
+ path: '/forms/{form_token}',
502
+ parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
503
+ },
439
504
  deleteFormView: {
440
505
  method: 'DELETE',
441
506
  path: '/forms/{form_token}/views/{view_token}',
@@ -449,11 +514,34 @@ export const OPERATIONS = {
449
514
  path: '/forms/{form_token}/webhook',
450
515
  parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
451
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
+ },
452
525
  deletePredefinedChoicesSet: {
453
526
  method: 'DELETE',
454
527
  path: '/predefined_choices_sets/{id}',
455
528
  parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }]
456
529
  },
530
+ deleteRoutine: {
531
+ method: 'DELETE',
532
+ path: '/routines/{id}',
533
+ parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }]
534
+ },
535
+ deleteSmsSignature: {
536
+ method: 'DELETE',
537
+ path: '/sms/signatures/{id}',
538
+ parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }]
539
+ },
540
+ deleteSmsTemplate: {
541
+ method: 'DELETE',
542
+ path: '/sms/templates/{id}',
543
+ parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }]
544
+ },
457
545
  deleteTable: {
458
546
  method: 'DELETE',
459
547
  path: '/tables/{table_token}',
@@ -484,6 +572,88 @@ export const OPERATIONS = {
484
572
  { name: 'view_token', in: 'path', required: true, schema: { type: 'string' } }
485
573
  ]
486
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
+ },
487
657
  getBillingAccount: { method: 'GET', path: '/billing_account', parameters: [] },
488
658
  getCheckinCampaign: {
489
659
  method: 'GET',
@@ -491,6 +661,14 @@ export const OPERATIONS = {
491
661
  parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'integer' } }]
492
662
  },
493
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
+ },
494
672
  getEntry: {
495
673
  method: 'GET',
496
674
  path: '/forms/{form_token}/entries/{serial_number}',
@@ -548,6 +726,11 @@ export const OPERATIONS = {
548
726
  path: '/fill/v/{view_token}',
549
727
  parameters: [{ name: 'view_token', in: 'path', required: true, schema: { type: 'string' } }]
550
728
  },
729
+ getFolder: {
730
+ method: 'GET',
731
+ path: '/folders/{folder_token}',
732
+ parameters: [{ name: 'folder_token', in: 'path', required: true, schema: { type: 'string' } }]
733
+ },
551
734
  getForm: {
552
735
  method: 'GET',
553
736
  path: '/forms/{form_token}',
@@ -578,11 +761,32 @@ export const OPERATIONS = {
578
761
  path: '/forms/{form_token}/manually_close_rule',
579
762
  parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
580
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
+ },
581
772
  getOpensearchQuery: {
582
773
  method: 'GET',
583
774
  path: '/opensearch/queries/{query_token}',
584
775
  parameters: [{ name: 'query_token', in: 'path', required: true, schema: { type: 'string' } }]
585
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
+ },
586
790
  getTable: {
587
791
  method: 'GET',
588
792
  path: '/tables/{table_token}',
@@ -611,6 +815,7 @@ export const OPERATIONS = {
611
815
  },
612
816
  getTradeMerchant: { method: 'GET', path: '/trade/merchant', parameters: [] },
613
817
  listBillingAccountInvoices: { method: 'GET', path: '/billing_account/invoices', parameters: [] },
818
+ listBillingAccountPaidFeatures: { method: 'GET', path: '/billing_account/paid_features', parameters: [] },
614
819
  listBillingAccountPaymentHistories: {
615
820
  method: 'GET',
616
821
  path: '/billing_account/payment_histories',
@@ -640,6 +845,34 @@ export const OPERATIONS = {
640
845
  path: '/contacts',
641
846
  parameters: [{ name: 'next', in: 'query', schema: { type: 'string' } }]
642
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
+ },
643
876
  listEntries: {
644
877
  method: 'GET',
645
878
  path: '/forms/{form_token}/entries',
@@ -765,6 +998,11 @@ export const OPERATIONS = {
765
998
  { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
766
999
  ]
767
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
+ },
768
1006
  listOpensearchQueries: {
769
1007
  method: 'GET',
770
1008
  path: '/opensearch/queries',
@@ -776,7 +1014,95 @@ export const OPERATIONS = {
776
1014
  parameters: [{ name: 'form_token', in: 'query', required: true, schema: { type: 'string' } }]
777
1015
  },
778
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
+ },
779
1037
  listSmsAuditStatuses: { method: 'GET', path: '/sms/audit_statuses', parameters: [] },
1038
+ listSmsSignatures: {
1039
+ method: 'GET',
1040
+ path: '/sms/signatures',
1041
+ parameters: [
1042
+ { name: 'status', in: 'query', schema: { type: 'string', enum: ['CHECKING', 'SUCCESS', 'FAIL'] } },
1043
+ { name: 'limit', in: 'query', schema: { type: 'integer' } },
1044
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
1045
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
1046
+ ]
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
+ },
1092
+ listSmsTemplates: {
1093
+ method: 'GET',
1094
+ path: '/sms/templates',
1095
+ parameters: [
1096
+ { name: 'q', in: 'query', schema: { type: 'string' } },
1097
+ { name: 'scope', in: 'query', schema: { type: 'string', enum: ['owned', 'shared'] } },
1098
+ { name: 'signature_id', in: 'query', schema: { type: 'string' } },
1099
+ { name: 'status', in: 'query', schema: { type: 'string', enum: ['CHECKING', 'SUCCESS', 'FAIL'] } },
1100
+ { name: 'limit', in: 'query', schema: { type: 'integer' } },
1101
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
1102
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
1103
+ ]
1104
+ },
1105
+ listSmtpAccounts: { method: 'GET', path: '/smtp_accounts', parameters: [] },
780
1106
  listTableEntries: {
781
1107
  method: 'GET',
782
1108
  path: '/tables/{table_token}/entries',
@@ -935,6 +1261,11 @@ export const OPERATIONS = {
935
1261
  }
936
1262
  }
937
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
+ },
938
1269
  previewFormFieldTypeChange: {
939
1270
  method: 'GET',
940
1271
  path: '/forms/{form_token}/fields/preview_convert',
@@ -981,6 +1312,34 @@ export const OPERATIONS = {
981
1312
  ],
982
1313
  body: { required: true, content: { 'application/json': { $ref: 'EntryInput' } } }
983
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
+ },
984
1343
  searchEntriesAcrossForms: {
985
1344
  method: 'GET',
986
1345
  path: '/entries/search',
@@ -1003,6 +1362,14 @@ export const OPERATIONS = {
1003
1362
  { name: 'form_tokens', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } }
1004
1363
  ]
1005
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
+ },
1006
1373
  summarizeEntries: {
1007
1374
  method: 'GET',
1008
1375
  path: '/forms/{form_token}/entries/summary',
@@ -1164,6 +1531,29 @@ export const OPERATIONS = {
1164
1531
  parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
1165
1532
  body: { required: true, content: { 'application/json': { $ref: 'FormManuallyCloseRuleInput' } } }
1166
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
+ },
1167
1557
  updateOpensearchQuery: {
1168
1558
  method: 'PATCH',
1169
1559
  path: '/opensearch/queries/{query_token}',
@@ -1186,6 +1576,33 @@ export const OPERATIONS = {
1186
1576
  }
1187
1577
  }
1188
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
+ },
1585
+ updateSmsSignature: {
1586
+ method: 'PATCH',
1587
+ path: '/sms/signatures/{id}',
1588
+ parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }],
1589
+ body: { required: true, content: { 'application/json': { $ref: 'SMSSignatureUpdateInput' } } }
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
+ },
1600
+ updateSmsTemplate: {
1601
+ method: 'PATCH',
1602
+ path: '/sms/templates/{id}',
1603
+ parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }],
1604
+ body: { required: true, content: { 'application/json': { $ref: 'SMSTemplateUpdateInput' } } }
1605
+ },
1189
1606
  updateTable: {
1190
1607
  method: 'PATCH',
1191
1608
  path: '/tables/{table_token}',
@@ -1305,6 +1722,22 @@ export const OPERATIONS = {
1305
1722
  }
1306
1723
  }
1307
1724
  },
1725
+ uploadUserLicenseAttachment: {
1726
+ method: 'POST',
1727
+ path: '/user/license_attachments',
1728
+ parameters: [],
1729
+ body: {
1730
+ required: true,
1731
+ content: {
1732
+ 'multipart/form-data': {
1733
+ type: 'object',
1734
+ required: ['file'],
1735
+ properties: { file: { type: 'string' } },
1736
+ additionalProperties: false
1737
+ }
1738
+ }
1739
+ }
1740
+ },
1308
1741
  verifyRedirectParams: {
1309
1742
  method: 'GET',
1310
1743
  path: '/jamr_v',
@@ -1693,6 +2126,20 @@ export const SCHEMAS = {
1693
2126
  choices: { type: 'array', items: { $ref: 'ChoiceInput' } }
1694
2127
  }
1695
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
+ },
1696
2143
  DropDownInput: {
1697
2144
  type: 'object',
1698
2145
  additionalProperties: false,
@@ -1783,6 +2230,36 @@ export const SCHEMAS = {
1783
2230
  placeholder: { type: 'string' }
1784
2231
  }
1785
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
+ },
1786
2263
  EntryAttachmentBase64Input: {
1787
2264
  type: 'object',
1788
2265
  required: ['field_api_code', 'base64'],
@@ -1825,6 +2302,17 @@ export const SCHEMAS = {
1825
2302
  additionalProperties: false
1826
2303
  },
1827
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
+ },
1828
2316
  EvaluationSettingInput: {
1829
2317
  type: 'object',
1830
2318
  properties: {
@@ -2574,12 +3062,12 @@ export const SCHEMAS = {
2574
3062
  },
2575
3063
  by_time_range_close_rule: {
2576
3064
  type: ['object', 'null'],
2577
- properties: { start_time: { type: 'string' }, end_time: { type: 'string' } },
3065
+ properties: { enabled: { type: 'boolean' }, start_time: { type: 'string' }, end_time: { type: 'string' } },
2578
3066
  additionalProperties: false
2579
3067
  },
2580
3068
  by_entries_close_rule: {
2581
3069
  type: ['object', 'null'],
2582
- properties: { limit: { type: 'integer' } },
3070
+ properties: { enabled: { type: 'boolean' }, limit: { type: 'integer' } },
2583
3071
  additionalProperties: false
2584
3072
  },
2585
3073
  fill_frequency: {
@@ -3316,6 +3804,54 @@ export const SCHEMAS = {
3316
3804
  },
3317
3805
  additionalProperties: false
3318
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
+ },
3319
3855
  NpsFieldInput: {
3320
3856
  type: 'object',
3321
3857
  additionalProperties: false,
@@ -3753,6 +4289,159 @@ export const SCHEMAS = {
3753
4289
  }
3754
4290
  }
3755
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
+ },
4356
+ SMSSignatureCreateInput: {
4357
+ type: 'object',
4358
+ required: [
4359
+ 'signature',
4360
+ 'license_attachment_ids',
4361
+ 'company_name',
4362
+ 'company_id',
4363
+ 'id_card_front_attachment_id',
4364
+ 'id_card_back_attachment_id',
4365
+ 'id_card_name',
4366
+ 'id_card_number',
4367
+ 'identity_mobile'
4368
+ ],
4369
+ properties: {
4370
+ signature: { type: 'string', minLength: 2, maxLength: 20 },
4371
+ type: { type: 'string', enum: ['notification', 'verification'] },
4372
+ company_name: { type: 'string', minLength: 1 },
4373
+ company_id: { type: 'string', minLength: 1 },
4374
+ license_attachment_ids: { type: 'array', minItems: 1, items: { type: 'string' } },
4375
+ id_card_front_attachment_id: { type: 'string' },
4376
+ id_card_back_attachment_id: { type: 'string' },
4377
+ id_card_name: { type: 'string' },
4378
+ id_card_number: { type: 'string' },
4379
+ identity_mobile: { type: 'string' }
4380
+ },
4381
+ additionalProperties: false
4382
+ },
4383
+ SMSSignatureUpdateInput: {
4384
+ type: 'object',
4385
+ properties: {
4386
+ signature: { type: 'string', minLength: 2, maxLength: 20 },
4387
+ company_name: { type: 'string', minLength: 1 },
4388
+ company_id: { type: 'string', minLength: 1 },
4389
+ license_attachment_ids: { type: 'array', minItems: 1, items: { type: 'string' } },
4390
+ id_card_front_attachment_id: { type: 'string' },
4391
+ id_card_back_attachment_id: { type: 'string' },
4392
+ id_card_name: { type: 'string' },
4393
+ id_card_number: { type: 'string' },
4394
+ identity_mobile: { type: 'string' }
4395
+ },
4396
+ additionalProperties: false
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
+ },
4426
+ SMSTemplateCreateInput: {
4427
+ type: 'object',
4428
+ required: ['signature', 'content'],
4429
+ properties: {
4430
+ signature: { type: 'string' },
4431
+ content: { type: 'string' },
4432
+ apply_description: { type: 'string', maxLength: 200 }
4433
+ },
4434
+ additionalProperties: false
4435
+ },
4436
+ SMSTemplateUpdateInput: {
4437
+ type: 'object',
4438
+ properties: {
4439
+ signature: { type: 'string' },
4440
+ content: { type: 'string' },
4441
+ apply_description: { type: 'string', maxLength: 200 }
4442
+ },
4443
+ additionalProperties: false
4444
+ },
3756
4445
  ScopeCondition: {
3757
4446
  type: 'object',
3758
4447
  required: ['operator'],
@@ -4185,6 +4874,32 @@ export const SCHEMAS = {
4185
4874
  ]
4186
4875
  },
4187
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
+ },
4188
4903
  WidgetButtonInput: {
4189
4904
  type: 'object',
4190
4905
  additionalProperties: false,
@@ -4285,5 +5000,19 @@ export const SCHEMAS = {
4285
5000
  entries_number_visible: { type: 'boolean' },
4286
5001
  marquee_data_type: { type: 'string', enum: ['fake', 'real'] }
4287
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
4288
5017
  }
4289
5018
  };