@jinshuju/cli 0.19.0 → 0.21.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.
- package/README.md +38 -3
- package/dist/cli.js +5 -2
- package/dist/commands/field.js +90 -3
- package/dist/commands/form.js +21 -4
- package/dist/commands/notification.js +3 -1
- package/dist/commands/routine.js +20 -15
- package/dist/errors.d.ts +17 -0
- package/dist/errors.js +17 -0
- package/dist/generated/operations.d.ts +3 -1
- package/dist/generated/operations.js +918 -188
- package/dist/http.d.ts +6 -0
- package/dist/http.js +58 -11
- package/dist/options.js +116 -4
- package/dist/preflight.d.ts +32 -0
- package/dist/preflight.js +156 -0
- package/dist/schema.d.ts +39 -0
- package/dist/schema.js +239 -0
- package/dist/spec.d.ts +19 -0
- package/dist/spec.js +23 -0
- package/package.json +2 -2
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// Do not edit: change the spec and run `npm run generate`.
|
|
3
3
|
/** The path every operation's path is relative to, from `servers`. */
|
|
4
4
|
export const BASE_PATH = '/api/v1';
|
|
5
|
+
/** The day spec/openapi.yaml was fetched from the API, when scripts/fetch-spec.mjs recorded it. */
|
|
6
|
+
export const SPEC_DATE = '2026-11-05';
|
|
5
7
|
export const OPERATIONS = {
|
|
6
8
|
aggregateEntries: {
|
|
7
9
|
method: 'GET',
|
|
@@ -337,6 +339,18 @@ export const OPERATIONS = {
|
|
|
337
339
|
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
|
|
338
340
|
body: { required: true, content: { 'application/json': { $ref: 'WebhookInput' } } }
|
|
339
341
|
},
|
|
342
|
+
createMemoryNote: {
|
|
343
|
+
method: 'POST',
|
|
344
|
+
path: '/memory/notes',
|
|
345
|
+
parameters: [],
|
|
346
|
+
body: { required: true, content: { 'application/json': { $ref: 'MemoryNoteInput' } } }
|
|
347
|
+
},
|
|
348
|
+
createMessageChannel: {
|
|
349
|
+
method: 'POST',
|
|
350
|
+
path: '/message_channels',
|
|
351
|
+
parameters: [],
|
|
352
|
+
body: { required: true, content: { 'application/json': { $ref: 'MessageChannelCreateInput' } } }
|
|
353
|
+
},
|
|
340
354
|
createNotificationRule: {
|
|
341
355
|
method: 'POST',
|
|
342
356
|
path: '/forms/{form_token}/notification_rules',
|
|
@@ -360,7 +374,18 @@ export const OPERATIONS = {
|
|
|
360
374
|
{ $ref: 'WxworkNotificationRuleInput' },
|
|
361
375
|
{ $ref: 'DingTalkNotificationRuleInput' },
|
|
362
376
|
{ $ref: 'WebhookNotificationRuleInput' }
|
|
363
|
-
]
|
|
377
|
+
],
|
|
378
|
+
discriminator: {
|
|
379
|
+
propertyName: 'approach',
|
|
380
|
+
mapping: {
|
|
381
|
+
SMS: 'SMSNotificationRuleInput',
|
|
382
|
+
EMAIL: 'EmailNotificationRuleInput',
|
|
383
|
+
WEIXIN_ONETIME: 'WeixinOnetimeNotificationRuleInput',
|
|
384
|
+
WXWORK: 'WxworkNotificationRuleInput',
|
|
385
|
+
DING_TALK: 'DingTalkNotificationRuleInput',
|
|
386
|
+
WEBHOOK: 'WebhookNotificationRuleInput'
|
|
387
|
+
}
|
|
388
|
+
}
|
|
364
389
|
}
|
|
365
390
|
]
|
|
366
391
|
}
|
|
@@ -387,22 +412,6 @@ export const OPERATIONS = {
|
|
|
387
412
|
}
|
|
388
413
|
}
|
|
389
414
|
},
|
|
390
|
-
createPredefinedChoicesSet: {
|
|
391
|
-
method: 'POST',
|
|
392
|
-
path: '/predefined_choices_sets',
|
|
393
|
-
parameters: [],
|
|
394
|
-
body: {
|
|
395
|
-
required: true,
|
|
396
|
-
content: {
|
|
397
|
-
'application/json': {
|
|
398
|
-
type: 'object',
|
|
399
|
-
required: ['predefined_choices_set'],
|
|
400
|
-
properties: { predefined_choices_set: { $ref: 'PredefinedChoicesSetInput' } },
|
|
401
|
-
additionalProperties: false
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
415
|
createRoutine: {
|
|
407
416
|
method: 'POST',
|
|
408
417
|
path: '/routines',
|
|
@@ -514,6 +523,24 @@ export const OPERATIONS = {
|
|
|
514
523
|
path: '/forms/{form_token}/webhook',
|
|
515
524
|
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
|
|
516
525
|
},
|
|
526
|
+
deleteMemoryNotes: {
|
|
527
|
+
method: 'DELETE',
|
|
528
|
+
path: '/memory/notes/{id}',
|
|
529
|
+
parameters: [
|
|
530
|
+
{
|
|
531
|
+
name: 'id',
|
|
532
|
+
in: 'path',
|
|
533
|
+
required: true,
|
|
534
|
+
schema: { type: 'string', pattern: '^[1-9][0-9]{0,2}(,[1-9][0-9]{0,2})*$' }
|
|
535
|
+
}
|
|
536
|
+
],
|
|
537
|
+
body: { required: true, content: { 'application/json': { $ref: 'MemoryNotesDeleteInput' } } }
|
|
538
|
+
},
|
|
539
|
+
deleteMessageChannel: {
|
|
540
|
+
method: 'DELETE',
|
|
541
|
+
path: '/message_channels/{id}',
|
|
542
|
+
parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }]
|
|
543
|
+
},
|
|
517
544
|
deleteNotificationRule: {
|
|
518
545
|
method: 'DELETE',
|
|
519
546
|
path: '/forms/{form_token}/notification_rules/{id}',
|
|
@@ -522,11 +549,6 @@ export const OPERATIONS = {
|
|
|
522
549
|
{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }
|
|
523
550
|
]
|
|
524
551
|
},
|
|
525
|
-
deletePredefinedChoicesSet: {
|
|
526
|
-
method: 'DELETE',
|
|
527
|
-
path: '/predefined_choices_sets/{id}',
|
|
528
|
-
parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }]
|
|
529
|
-
},
|
|
530
552
|
deleteRoutine: {
|
|
531
553
|
method: 'DELETE',
|
|
532
554
|
path: '/routines/{id}',
|
|
@@ -607,6 +629,12 @@ export const OPERATIONS = {
|
|
|
607
629
|
{ name: 'view_token', in: 'query', schema: { type: 'string' } }
|
|
608
630
|
]
|
|
609
631
|
},
|
|
632
|
+
estimateMessage: {
|
|
633
|
+
method: 'POST',
|
|
634
|
+
path: '/messages/estimate',
|
|
635
|
+
parameters: [],
|
|
636
|
+
body: { required: true, content: { 'application/json': { $ref: 'MessageInput' } } }
|
|
637
|
+
},
|
|
610
638
|
estimateSmsTask: {
|
|
611
639
|
method: 'GET',
|
|
612
640
|
path: '/forms/{form_token}/sms_tasks/estimate',
|
|
@@ -712,7 +740,7 @@ export const OPERATIONS = {
|
|
|
712
740
|
method: 'GET',
|
|
713
741
|
path: '/field_types/{type}',
|
|
714
742
|
parameters: [
|
|
715
|
-
{ name: 'type', in: 'path', required: true, schema: { type: 'string', pattern: '^[A-Za-
|
|
743
|
+
{ name: 'type', in: 'path', required: true, schema: { type: 'string', pattern: '^[A-Za-z_]+$' } },
|
|
716
744
|
{ name: 'kind', in: 'query', schema: { type: 'string' } }
|
|
717
745
|
]
|
|
718
746
|
},
|
|
@@ -740,6 +768,7 @@ export const OPERATIONS = {
|
|
|
740
768
|
{ name: 'include_theme', in: 'query', schema: { type: 'boolean' } },
|
|
741
769
|
{ name: 'include_field_rules', in: 'query', schema: { type: 'boolean' } },
|
|
742
770
|
{ name: 'include_extended_attributes', in: 'query', schema: { type: 'boolean' } },
|
|
771
|
+
{ name: 'include_exam_setting', in: 'query', schema: { type: 'boolean' } },
|
|
743
772
|
{ name: 'include_transactions', in: 'query', schema: { type: 'boolean' } }
|
|
744
773
|
]
|
|
745
774
|
},
|
|
@@ -761,6 +790,17 @@ export const OPERATIONS = {
|
|
|
761
790
|
path: '/forms/{form_token}/manually_close_rule',
|
|
762
791
|
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
|
|
763
792
|
},
|
|
793
|
+
getMemory: { method: 'GET', path: '/memory', parameters: [] },
|
|
794
|
+
getMessage: {
|
|
795
|
+
method: 'GET',
|
|
796
|
+
path: '/messages/{id}',
|
|
797
|
+
parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }]
|
|
798
|
+
},
|
|
799
|
+
getMessageChannel: {
|
|
800
|
+
method: 'GET',
|
|
801
|
+
path: '/message_channels/{id}',
|
|
802
|
+
parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }]
|
|
803
|
+
},
|
|
764
804
|
getNotificationRule: {
|
|
765
805
|
method: 'GET',
|
|
766
806
|
path: '/forms/{form_token}/notification_rules/{id}',
|
|
@@ -826,6 +866,7 @@ export const OPERATIONS = {
|
|
|
826
866
|
{ name: 'q', in: 'query', schema: { type: 'string' } },
|
|
827
867
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
828
868
|
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
869
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
829
870
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
830
871
|
]
|
|
831
872
|
},
|
|
@@ -845,20 +886,30 @@ export const OPERATIONS = {
|
|
|
845
886
|
listBillingAccountUsers: {
|
|
846
887
|
method: 'GET',
|
|
847
888
|
path: '/billing_account/users',
|
|
848
|
-
parameters: [
|
|
889
|
+
parameters: [
|
|
890
|
+
{ name: 'limit', in: 'query', schema: { type: 'integer', minimum: 1, maximum: 100 } },
|
|
891
|
+
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
892
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } }
|
|
893
|
+
]
|
|
849
894
|
},
|
|
850
895
|
listCheckinCampaigns: {
|
|
851
896
|
method: 'GET',
|
|
852
897
|
path: '/plugins/checkin/campaigns',
|
|
853
898
|
parameters: [
|
|
854
899
|
{ name: 'form_token', in: 'query', schema: { type: 'string' } },
|
|
855
|
-
{ name: 'limit', in: 'query', schema: { type: 'integer', minimum: 1, maximum: 100 } }
|
|
900
|
+
{ name: 'limit', in: 'query', schema: { type: 'integer', minimum: 1, maximum: 100 } },
|
|
901
|
+
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
902
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } }
|
|
856
903
|
]
|
|
857
904
|
},
|
|
858
905
|
listContacts: {
|
|
859
906
|
method: 'GET',
|
|
860
907
|
path: '/contacts',
|
|
861
|
-
parameters: [
|
|
908
|
+
parameters: [
|
|
909
|
+
{ name: 'next', in: 'query', schema: { type: 'string' } },
|
|
910
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
911
|
+
{ name: 'limit', in: 'query', schema: { type: 'integer' } }
|
|
912
|
+
]
|
|
862
913
|
},
|
|
863
914
|
listEmailTaskActivities: {
|
|
864
915
|
method: 'GET',
|
|
@@ -870,6 +921,7 @@ export const OPERATIONS = {
|
|
|
870
921
|
{ name: 'email', in: 'query', schema: { type: 'string' } },
|
|
871
922
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
872
923
|
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
924
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
873
925
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
874
926
|
]
|
|
875
927
|
},
|
|
@@ -887,6 +939,7 @@ export const OPERATIONS = {
|
|
|
887
939
|
{ name: 'end_date', in: 'query', schema: { type: 'string' } },
|
|
888
940
|
{ name: 'limit', in: 'query', schema: { type: 'integer', minimum: 1, maximum: 100 } },
|
|
889
941
|
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
942
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
890
943
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
891
944
|
]
|
|
892
945
|
},
|
|
@@ -911,6 +964,7 @@ export const OPERATIONS = {
|
|
|
911
964
|
},
|
|
912
965
|
{ name: 'created_at', in: 'query', schema: { type: 'string' } },
|
|
913
966
|
{ name: 'next', in: 'query', schema: { type: ['integer', 'string'] } },
|
|
967
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
914
968
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } },
|
|
915
969
|
{ name: 'include_labels', in: 'query', schema: { type: 'boolean' } },
|
|
916
970
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } }
|
|
@@ -942,7 +996,19 @@ export const OPERATIONS = {
|
|
|
942
996
|
listFolders: {
|
|
943
997
|
method: 'GET',
|
|
944
998
|
path: '/folders',
|
|
945
|
-
parameters: [
|
|
999
|
+
parameters: [
|
|
1000
|
+
{ name: 'limit', in: 'query', schema: { type: 'integer', minimum: 1, maximum: 100 } },
|
|
1001
|
+
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1002
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } }
|
|
1003
|
+
]
|
|
1004
|
+
},
|
|
1005
|
+
listFormConditionTriggerableFields: {
|
|
1006
|
+
method: 'GET',
|
|
1007
|
+
path: '/forms/{form_token}/condition_triggerable_fields',
|
|
1008
|
+
parameters: [
|
|
1009
|
+
{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
1010
|
+
{ name: 'fields_context', in: 'query', schema: { type: 'string', enum: ['routine'] } }
|
|
1011
|
+
]
|
|
946
1012
|
},
|
|
947
1013
|
listFormCooperators: {
|
|
948
1014
|
method: 'GET',
|
|
@@ -956,6 +1022,8 @@ export const OPERATIONS = {
|
|
|
956
1022
|
{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
957
1023
|
{ name: 'view_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
958
1024
|
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1025
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1026
|
+
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
959
1027
|
{ name: 'include_labels', in: 'query', schema: { type: 'boolean' } }
|
|
960
1028
|
]
|
|
961
1029
|
},
|
|
@@ -982,17 +1050,47 @@ export const OPERATIONS = {
|
|
|
982
1050
|
schema: { type: 'array', items: { $ref: 'FormSortRule' } }
|
|
983
1051
|
},
|
|
984
1052
|
{ name: 'next', in: 'query', schema: { type: 'string' } },
|
|
1053
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
985
1054
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } },
|
|
986
1055
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
987
1056
|
{ name: 'include_transactions', in: 'query', schema: { type: 'boolean' } }
|
|
988
1057
|
]
|
|
989
1058
|
},
|
|
1059
|
+
listMessageChannels: {
|
|
1060
|
+
method: 'GET',
|
|
1061
|
+
path: '/message_channels',
|
|
1062
|
+
parameters: [
|
|
1063
|
+
{ name: 'type', in: 'query', schema: { $ref: 'MessageType' } },
|
|
1064
|
+
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
1065
|
+
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1066
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1067
|
+
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
1068
|
+
]
|
|
1069
|
+
},
|
|
1070
|
+
listMessages: {
|
|
1071
|
+
method: 'GET',
|
|
1072
|
+
path: '/messages',
|
|
1073
|
+
parameters: [
|
|
1074
|
+
{ name: 'type', in: 'query', schema: { $ref: 'MessageType' } },
|
|
1075
|
+
{ name: 'channel_id', in: 'query', schema: { type: 'string' } },
|
|
1076
|
+
{ name: 'status', in: 'query', schema: { $ref: 'MessageStatus' } },
|
|
1077
|
+
{ name: 'source', in: 'query', schema: { $ref: 'MessageSource' } },
|
|
1078
|
+
{ name: 'request_id', in: 'query', schema: { type: 'string' } },
|
|
1079
|
+
{ name: 'created_after', in: 'query', schema: { type: 'string' } },
|
|
1080
|
+
{ name: 'created_before', in: 'query', schema: { type: 'string' } },
|
|
1081
|
+
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
1082
|
+
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1083
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1084
|
+
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
1085
|
+
]
|
|
1086
|
+
},
|
|
990
1087
|
listMyFilledForms: {
|
|
991
1088
|
method: 'GET',
|
|
992
1089
|
path: '/my/forms',
|
|
993
1090
|
parameters: [
|
|
994
1091
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
995
1092
|
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1093
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
996
1094
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
997
1095
|
]
|
|
998
1096
|
},
|
|
@@ -1012,6 +1110,7 @@ export const OPERATIONS = {
|
|
|
1012
1110
|
{ name: 'include_labels', in: 'query', schema: { type: 'boolean' } },
|
|
1013
1111
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
1014
1112
|
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1113
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1015
1114
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
1016
1115
|
]
|
|
1017
1116
|
},
|
|
@@ -1033,6 +1132,7 @@ export const OPERATIONS = {
|
|
|
1033
1132
|
},
|
|
1034
1133
|
{ name: 'limit', in: 'query', schema: { type: 'integer', minimum: 1, maximum: 1000 } },
|
|
1035
1134
|
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1135
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1036
1136
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
1037
1137
|
]
|
|
1038
1138
|
},
|
|
@@ -1051,7 +1151,6 @@ export const OPERATIONS = {
|
|
|
1051
1151
|
path: '/opensearch/query_suggestions',
|
|
1052
1152
|
parameters: [{ name: 'form_token', in: 'query', required: true, schema: { type: 'string' } }]
|
|
1053
1153
|
},
|
|
1054
|
-
listPredefinedChoicesSets: { method: 'GET', path: '/predefined_choices_sets', parameters: [] },
|
|
1055
1154
|
listRoutineRuns: {
|
|
1056
1155
|
method: 'GET',
|
|
1057
1156
|
path: '/routines/{routine_id}/runs',
|
|
@@ -1059,6 +1158,7 @@ export const OPERATIONS = {
|
|
|
1059
1158
|
{ name: 'routine_id', in: 'path', required: true, schema: { type: 'string' } },
|
|
1060
1159
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
1061
1160
|
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1161
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1062
1162
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
1063
1163
|
]
|
|
1064
1164
|
},
|
|
@@ -1069,6 +1169,7 @@ export const OPERATIONS = {
|
|
|
1069
1169
|
{ name: 'state', in: 'query', schema: { type: 'string', enum: ['active', 'paused'] } },
|
|
1070
1170
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
1071
1171
|
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1172
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1072
1173
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
1073
1174
|
]
|
|
1074
1175
|
},
|
|
@@ -1080,6 +1181,7 @@ export const OPERATIONS = {
|
|
|
1080
1181
|
{ name: 'status', in: 'query', schema: { type: 'string', enum: ['CHECKING', 'SUCCESS', 'FAIL'] } },
|
|
1081
1182
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
1082
1183
|
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1184
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1083
1185
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
1084
1186
|
]
|
|
1085
1187
|
},
|
|
@@ -1093,6 +1195,7 @@ export const OPERATIONS = {
|
|
|
1093
1195
|
{ name: 'mobile', in: 'query', schema: { type: 'string' } },
|
|
1094
1196
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
1095
1197
|
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1198
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1096
1199
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
1097
1200
|
]
|
|
1098
1201
|
},
|
|
@@ -1126,6 +1229,7 @@ export const OPERATIONS = {
|
|
|
1126
1229
|
{ name: 'end_date', in: 'query', schema: { type: 'string' } },
|
|
1127
1230
|
{ name: 'limit', in: 'query', schema: { type: 'integer', minimum: 1, maximum: 100 } },
|
|
1128
1231
|
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1232
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1129
1233
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
1130
1234
|
]
|
|
1131
1235
|
},
|
|
@@ -1139,10 +1243,19 @@ export const OPERATIONS = {
|
|
|
1139
1243
|
{ name: 'status', in: 'query', schema: { type: 'string', enum: ['CHECKING', 'SUCCESS', 'FAIL'] } },
|
|
1140
1244
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
1141
1245
|
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1246
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1142
1247
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
1143
1248
|
]
|
|
1144
1249
|
},
|
|
1145
1250
|
listSmtpAccounts: { method: 'GET', path: '/smtp_accounts', parameters: [] },
|
|
1251
|
+
listTableConditionTriggerableFields: {
|
|
1252
|
+
method: 'GET',
|
|
1253
|
+
path: '/tables/{table_token}/condition_triggerable_fields',
|
|
1254
|
+
parameters: [
|
|
1255
|
+
{ name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
1256
|
+
{ name: 'fields_context', in: 'query', schema: { type: 'string', enum: ['routine'] } }
|
|
1257
|
+
]
|
|
1258
|
+
},
|
|
1146
1259
|
listTableEntries: {
|
|
1147
1260
|
method: 'GET',
|
|
1148
1261
|
path: '/tables/{table_token}/entries',
|
|
@@ -1164,6 +1277,7 @@ export const OPERATIONS = {
|
|
|
1164
1277
|
},
|
|
1165
1278
|
{ name: 'created_at', in: 'query', schema: { type: 'string' } },
|
|
1166
1279
|
{ name: 'next', in: 'query', schema: { type: ['integer', 'string'] } },
|
|
1280
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1167
1281
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } },
|
|
1168
1282
|
{ name: 'include_labels', in: 'query', schema: { type: 'boolean' } },
|
|
1169
1283
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } }
|
|
@@ -1184,6 +1298,8 @@ export const OPERATIONS = {
|
|
|
1184
1298
|
{ name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
1185
1299
|
{ name: 'view_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
1186
1300
|
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1301
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1302
|
+
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
1187
1303
|
{ name: 'include_labels', in: 'query', schema: { type: 'boolean' } }
|
|
1188
1304
|
]
|
|
1189
1305
|
},
|
|
@@ -1210,6 +1326,7 @@ export const OPERATIONS = {
|
|
|
1210
1326
|
schema: { type: 'array', items: { $ref: 'FormSortRule' } }
|
|
1211
1327
|
},
|
|
1212
1328
|
{ name: 'next', in: 'query', schema: { type: 'string' } },
|
|
1329
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1213
1330
|
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } },
|
|
1214
1331
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } }
|
|
1215
1332
|
]
|
|
@@ -1223,7 +1340,8 @@ export const OPERATIONS = {
|
|
|
1223
1340
|
{ name: 'status', in: 'query', schema: { type: 'string', enum: ['processing', 'success', 'error'] } },
|
|
1224
1341
|
{ name: 'include', in: 'query', schema: { type: 'string', enum: ['both', 'stats', 'records'] } },
|
|
1225
1342
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
1226
|
-
{ name: 'next', in: 'query', schema: { type: 'integer' } }
|
|
1343
|
+
{ name: 'next', in: 'query', schema: { type: 'integer' } },
|
|
1344
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } }
|
|
1227
1345
|
]
|
|
1228
1346
|
},
|
|
1229
1347
|
listTradeRefunds: {
|
|
@@ -1236,7 +1354,8 @@ export const OPERATIONS = {
|
|
|
1236
1354
|
{ name: 'refund_no', in: 'query', schema: { type: 'string' } },
|
|
1237
1355
|
{ name: 'include', in: 'query', schema: { type: 'string', enum: ['both', 'stats', 'records'] } },
|
|
1238
1356
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
1239
|
-
{ name: 'next', in: 'query', schema: { type: 'integer' } }
|
|
1357
|
+
{ name: 'next', in: 'query', schema: { type: 'integer' } },
|
|
1358
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } }
|
|
1240
1359
|
]
|
|
1241
1360
|
},
|
|
1242
1361
|
listTradeTransactions: {
|
|
@@ -1258,7 +1377,8 @@ export const OPERATIONS = {
|
|
|
1258
1377
|
{ name: 'form_token', in: 'query', schema: { type: 'string' } },
|
|
1259
1378
|
{ name: 'order_no', in: 'query', schema: { type: 'string' } },
|
|
1260
1379
|
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
1261
|
-
{ name: 'next', in: 'query', schema: { type: 'integer' } }
|
|
1380
|
+
{ name: 'next', in: 'query', schema: { type: 'integer' } },
|
|
1381
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } }
|
|
1262
1382
|
]
|
|
1263
1383
|
},
|
|
1264
1384
|
moveFormToFolder: {
|
|
@@ -1453,6 +1573,12 @@ export const OPERATIONS = {
|
|
|
1453
1573
|
{ name: 'form_tokens', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } }
|
|
1454
1574
|
]
|
|
1455
1575
|
},
|
|
1576
|
+
sendMessage: {
|
|
1577
|
+
method: 'POST',
|
|
1578
|
+
path: '/messages',
|
|
1579
|
+
parameters: [],
|
|
1580
|
+
body: { required: true, content: { 'application/json': { $ref: 'MessageInput' } } }
|
|
1581
|
+
},
|
|
1456
1582
|
sendSmsTask: {
|
|
1457
1583
|
method: 'PATCH',
|
|
1458
1584
|
path: '/forms/{form_token}/sms_tasks/{id}/auto_send',
|
|
@@ -1622,6 +1748,19 @@ export const OPERATIONS = {
|
|
|
1622
1748
|
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
|
|
1623
1749
|
body: { required: true, content: { 'application/json': { $ref: 'FormManuallyCloseRuleInput' } } }
|
|
1624
1750
|
},
|
|
1751
|
+
updateMemoryNote: {
|
|
1752
|
+
method: 'PATCH',
|
|
1753
|
+
path: '/memory/notes/{id}',
|
|
1754
|
+
parameters: [
|
|
1755
|
+
{
|
|
1756
|
+
name: 'id',
|
|
1757
|
+
in: 'path',
|
|
1758
|
+
required: true,
|
|
1759
|
+
schema: { type: 'string', pattern: '^[1-9][0-9]{0,2}(,[1-9][0-9]{0,2})*$' }
|
|
1760
|
+
}
|
|
1761
|
+
],
|
|
1762
|
+
body: { required: true, content: { 'application/json': { $ref: 'MemoryNoteUpdateInput' } } }
|
|
1763
|
+
},
|
|
1625
1764
|
updateNotificationRule: {
|
|
1626
1765
|
method: 'PATCH',
|
|
1627
1766
|
path: '/forms/{form_token}/notification_rules/{id}',
|
|
@@ -1651,22 +1790,6 @@ export const OPERATIONS = {
|
|
|
1651
1790
|
parameters: [{ name: 'query_token', in: 'path', required: true, schema: { type: 'string' } }],
|
|
1652
1791
|
body: { required: true, content: { 'application/json': { $ref: 'OpensearchQueryInput' } } }
|
|
1653
1792
|
},
|
|
1654
|
-
updatePredefinedChoicesSet: {
|
|
1655
|
-
method: 'PATCH',
|
|
1656
|
-
path: '/predefined_choices_sets/{id}',
|
|
1657
|
-
parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }],
|
|
1658
|
-
body: {
|
|
1659
|
-
required: true,
|
|
1660
|
-
content: {
|
|
1661
|
-
'application/json': {
|
|
1662
|
-
type: 'object',
|
|
1663
|
-
required: ['predefined_choices_set'],
|
|
1664
|
-
properties: { predefined_choices_set: { $ref: 'PredefinedChoicesSetInput' } },
|
|
1665
|
-
additionalProperties: false
|
|
1666
|
-
}
|
|
1667
|
-
}
|
|
1668
|
-
}
|
|
1669
|
-
},
|
|
1670
1793
|
updatePublishedArtifact: {
|
|
1671
1794
|
method: 'PATCH',
|
|
1672
1795
|
path: '/artifacts/{artifact_id}/published_artifact',
|
|
@@ -2126,7 +2249,9 @@ export const SCHEMAS = {
|
|
|
2126
2249
|
api_code: { type: 'string' },
|
|
2127
2250
|
value: { type: 'string' },
|
|
2128
2251
|
operand_value: { type: 'number' },
|
|
2129
|
-
selected: { type: 'boolean' }
|
|
2252
|
+
selected: { type: 'boolean' },
|
|
2253
|
+
quota: { type: ['integer', 'null'], minimum: 0 },
|
|
2254
|
+
recover_quota: { type: 'integer', minimum: 1 }
|
|
2130
2255
|
},
|
|
2131
2256
|
additionalProperties: false
|
|
2132
2257
|
}
|
|
@@ -2227,6 +2352,17 @@ export const SCHEMAS = {
|
|
|
2227
2352
|
choices: { type: 'array', items: { $ref: 'ChoiceInput' } }
|
|
2228
2353
|
}
|
|
2229
2354
|
},
|
|
2355
|
+
DingTalkMessageChannelInput: {
|
|
2356
|
+
type: 'object',
|
|
2357
|
+
additionalProperties: false,
|
|
2358
|
+
required: ['type', 'name', 'url'],
|
|
2359
|
+
properties: {
|
|
2360
|
+
type: { type: 'string', enum: ['ding_talk'] },
|
|
2361
|
+
name: { $ref: 'MessageChannelName' },
|
|
2362
|
+
url: { type: 'string' },
|
|
2363
|
+
secret: { type: 'string' }
|
|
2364
|
+
}
|
|
2365
|
+
},
|
|
2230
2366
|
DingTalkNotificationRuleInput: {
|
|
2231
2367
|
type: 'object',
|
|
2232
2368
|
properties: {
|
|
@@ -2331,6 +2467,29 @@ export const SCHEMAS = {
|
|
|
2331
2467
|
placeholder: { type: 'string' }
|
|
2332
2468
|
}
|
|
2333
2469
|
},
|
|
2470
|
+
EmailMessageChannelInput: {
|
|
2471
|
+
type: 'object',
|
|
2472
|
+
additionalProperties: false,
|
|
2473
|
+
required: ['type', 'name', 'smtp_account_id'],
|
|
2474
|
+
properties: {
|
|
2475
|
+
type: { type: 'string', enum: ['email'] },
|
|
2476
|
+
name: { $ref: 'MessageChannelName' },
|
|
2477
|
+
smtp_account_id: { type: 'string' }
|
|
2478
|
+
}
|
|
2479
|
+
},
|
|
2480
|
+
EmailMessageInput: {
|
|
2481
|
+
type: 'object',
|
|
2482
|
+
additionalProperties: false,
|
|
2483
|
+
required: ['type', 'to', 'content'],
|
|
2484
|
+
properties: {
|
|
2485
|
+
type: { type: 'string', enum: ['email'] },
|
|
2486
|
+
channel_id: { type: 'string' },
|
|
2487
|
+
to: { $ref: 'MessageRecipients' },
|
|
2488
|
+
title: { type: 'string', maxLength: 200 },
|
|
2489
|
+
content: { type: 'string', maxLength: 20000 },
|
|
2490
|
+
idempotency_key: { type: 'string', maxLength: 255 }
|
|
2491
|
+
}
|
|
2492
|
+
},
|
|
2334
2493
|
EmailNotificationRuleInput: {
|
|
2335
2494
|
type: 'object',
|
|
2336
2495
|
properties: {
|
|
@@ -2411,69 +2570,435 @@ export const SCHEMAS = {
|
|
|
2411
2570
|
},
|
|
2412
2571
|
additionalProperties: false
|
|
2413
2572
|
},
|
|
2414
|
-
|
|
2573
|
+
EvaluationFieldInput: {
|
|
2574
|
+
type: 'object',
|
|
2575
|
+
required: ['type', 'label'],
|
|
2576
|
+
properties: {
|
|
2577
|
+
type: {
|
|
2578
|
+
type: 'string',
|
|
2579
|
+
enum: [
|
|
2580
|
+
'TextField',
|
|
2581
|
+
'TextArea',
|
|
2582
|
+
'NumberField',
|
|
2583
|
+
'EmailField',
|
|
2584
|
+
'MobileField',
|
|
2585
|
+
'IdCardField',
|
|
2586
|
+
'NameField',
|
|
2587
|
+
'RadioButton',
|
|
2588
|
+
'CheckBox',
|
|
2589
|
+
'DropDown',
|
|
2590
|
+
'DateTimeField',
|
|
2591
|
+
'RatingField',
|
|
2592
|
+
'TableField',
|
|
2593
|
+
'TelephoneField',
|
|
2594
|
+
'AddressField',
|
|
2595
|
+
'AttachmentField',
|
|
2596
|
+
'GeoField',
|
|
2597
|
+
'LinkField',
|
|
2598
|
+
'NpsField',
|
|
2599
|
+
'TimeField',
|
|
2600
|
+
'SortField',
|
|
2601
|
+
'ESignatureField',
|
|
2602
|
+
'AudioField',
|
|
2603
|
+
'CascadeDropDown',
|
|
2604
|
+
'LikertField',
|
|
2605
|
+
'MatrixField',
|
|
2606
|
+
'MatrixScaleField',
|
|
2607
|
+
'GoodsField',
|
|
2608
|
+
'FormulaField',
|
|
2609
|
+
'ReservationField',
|
|
2610
|
+
'FormAssociation',
|
|
2611
|
+
'ImageRadioButton',
|
|
2612
|
+
'ImageCheckBox',
|
|
2613
|
+
'SectionBreak',
|
|
2614
|
+
'PageBreak',
|
|
2615
|
+
'WidgetButton',
|
|
2616
|
+
'WidgetContact',
|
|
2617
|
+
'WidgetMap',
|
|
2618
|
+
'WidgetMarquee',
|
|
2619
|
+
'SingleSelect',
|
|
2620
|
+
'MultiSelect',
|
|
2621
|
+
'ImageSingleSelect',
|
|
2622
|
+
'ImageMultiSelect',
|
|
2623
|
+
'DropDownSelect',
|
|
2624
|
+
'Rating',
|
|
2625
|
+
'Nps'
|
|
2626
|
+
]
|
|
2627
|
+
},
|
|
2628
|
+
label: { type: 'string' }
|
|
2629
|
+
},
|
|
2630
|
+
discriminator: {
|
|
2631
|
+
propertyName: 'type',
|
|
2632
|
+
mapping: {
|
|
2633
|
+
TextField: 'TextFieldInput',
|
|
2634
|
+
TextArea: 'TextAreaInput',
|
|
2635
|
+
NumberField: 'NumberFieldInput',
|
|
2636
|
+
EmailField: 'EmailFieldInput',
|
|
2637
|
+
MobileField: 'MobileFieldInput',
|
|
2638
|
+
IdCardField: 'IdCardFieldInput',
|
|
2639
|
+
NameField: 'NameFieldInput',
|
|
2640
|
+
RadioButton: 'RadioButtonInput',
|
|
2641
|
+
CheckBox: 'CheckBoxInput',
|
|
2642
|
+
DropDown: 'DropDownInput',
|
|
2643
|
+
DateTimeField: 'DateTimeFieldInput',
|
|
2644
|
+
RatingField: 'RatingFieldInput',
|
|
2645
|
+
TableField: 'TableFieldInput',
|
|
2646
|
+
TelephoneField: 'TelephoneFieldInput',
|
|
2647
|
+
AddressField: 'AddressFieldInput',
|
|
2648
|
+
AttachmentField: 'AttachmentFieldInput',
|
|
2649
|
+
GeoField: 'GeoFieldInput',
|
|
2650
|
+
LinkField: 'LinkFieldInput',
|
|
2651
|
+
NpsField: 'NpsFieldInput',
|
|
2652
|
+
TimeField: 'TimeFieldInput',
|
|
2653
|
+
SortField: 'SortFieldInput',
|
|
2654
|
+
ESignatureField: 'ESignatureFieldInput',
|
|
2655
|
+
AudioField: 'AudioFieldInput',
|
|
2656
|
+
CascadeDropDown: 'CascadeDropDownInput',
|
|
2657
|
+
LikertField: 'LikertFieldInput',
|
|
2658
|
+
MatrixField: 'MatrixFieldInput',
|
|
2659
|
+
MatrixScaleField: 'MatrixScaleFieldInput',
|
|
2660
|
+
GoodsField: 'GoodsFieldInput',
|
|
2661
|
+
FormulaField: 'FormulaFieldInput',
|
|
2662
|
+
ReservationField: 'ReservationFieldInput',
|
|
2663
|
+
FormAssociation: 'FormAssociationInput',
|
|
2664
|
+
ImageRadioButton: 'ImageRadioButtonInput',
|
|
2665
|
+
ImageCheckBox: 'ImageCheckBoxInput',
|
|
2666
|
+
SectionBreak: 'SectionBreakInput',
|
|
2667
|
+
PageBreak: 'PageBreakInput',
|
|
2668
|
+
WidgetButton: 'WidgetButtonInput',
|
|
2669
|
+
WidgetContact: 'WidgetContactInput',
|
|
2670
|
+
WidgetMap: 'WidgetMapInput',
|
|
2671
|
+
WidgetMarquee: 'WidgetMarqueeInput',
|
|
2672
|
+
SingleSelect: 'SingleSelectInput',
|
|
2673
|
+
MultiSelect: 'MultiSelectInput',
|
|
2674
|
+
ImageSingleSelect: 'ImageSingleSelectInput',
|
|
2675
|
+
ImageMultiSelect: 'ImageMultiSelectInput',
|
|
2676
|
+
DropDownSelect: 'DropDownSelectInput',
|
|
2677
|
+
Rating: 'RatingInput',
|
|
2678
|
+
Nps: 'NpsInput'
|
|
2679
|
+
}
|
|
2680
|
+
},
|
|
2681
|
+
oneOf: [
|
|
2682
|
+
{ $ref: 'TextFieldInput' },
|
|
2683
|
+
{ $ref: 'TextAreaInput' },
|
|
2684
|
+
{ $ref: 'NumberFieldInput' },
|
|
2685
|
+
{ $ref: 'EmailFieldInput' },
|
|
2686
|
+
{ $ref: 'MobileFieldInput' },
|
|
2687
|
+
{ $ref: 'IdCardFieldInput' },
|
|
2688
|
+
{ $ref: 'NameFieldInput' },
|
|
2689
|
+
{ $ref: 'RadioButtonInput' },
|
|
2690
|
+
{ $ref: 'CheckBoxInput' },
|
|
2691
|
+
{ $ref: 'DropDownInput' },
|
|
2692
|
+
{ $ref: 'DateTimeFieldInput' },
|
|
2693
|
+
{ $ref: 'RatingFieldInput' },
|
|
2694
|
+
{ $ref: 'TableFieldInput' },
|
|
2695
|
+
{ $ref: 'TelephoneFieldInput' },
|
|
2696
|
+
{ $ref: 'AddressFieldInput' },
|
|
2697
|
+
{ $ref: 'AttachmentFieldInput' },
|
|
2698
|
+
{ $ref: 'GeoFieldInput' },
|
|
2699
|
+
{ $ref: 'LinkFieldInput' },
|
|
2700
|
+
{ $ref: 'NpsFieldInput' },
|
|
2701
|
+
{ $ref: 'TimeFieldInput' },
|
|
2702
|
+
{ $ref: 'SortFieldInput' },
|
|
2703
|
+
{ $ref: 'ESignatureFieldInput' },
|
|
2704
|
+
{ $ref: 'AudioFieldInput' },
|
|
2705
|
+
{ $ref: 'CascadeDropDownInput' },
|
|
2706
|
+
{ $ref: 'LikertFieldInput' },
|
|
2707
|
+
{ $ref: 'MatrixFieldInput' },
|
|
2708
|
+
{ $ref: 'MatrixScaleFieldInput' },
|
|
2709
|
+
{ $ref: 'GoodsFieldInput' },
|
|
2710
|
+
{ $ref: 'FormulaFieldInput' },
|
|
2711
|
+
{ $ref: 'ReservationFieldInput' },
|
|
2712
|
+
{ $ref: 'FormAssociationInput' },
|
|
2713
|
+
{ $ref: 'ImageRadioButtonInput' },
|
|
2714
|
+
{ $ref: 'ImageCheckBoxInput' },
|
|
2715
|
+
{ $ref: 'SectionBreakInput' },
|
|
2716
|
+
{ $ref: 'PageBreakInput' },
|
|
2717
|
+
{ $ref: 'WidgetButtonInput' },
|
|
2718
|
+
{ $ref: 'WidgetContactInput' },
|
|
2719
|
+
{ $ref: 'WidgetMapInput' },
|
|
2720
|
+
{ $ref: 'WidgetMarqueeInput' },
|
|
2721
|
+
{ $ref: 'SingleSelectInput' },
|
|
2722
|
+
{ $ref: 'MultiSelectInput' },
|
|
2723
|
+
{ $ref: 'ImageSingleSelectInput' },
|
|
2724
|
+
{ $ref: 'ImageMultiSelectInput' },
|
|
2725
|
+
{ $ref: 'DropDownSelectInput' },
|
|
2726
|
+
{ $ref: 'RatingInput' },
|
|
2727
|
+
{ $ref: 'NpsInput' }
|
|
2728
|
+
]
|
|
2729
|
+
},
|
|
2730
|
+
EvaluationSettingInput: {
|
|
2731
|
+
type: 'object',
|
|
2732
|
+
properties: {
|
|
2733
|
+
notice_after_filling_mode: { type: 'string', enum: ['reports', 'customize', 'none'] },
|
|
2734
|
+
show_report_score: { type: 'boolean' },
|
|
2735
|
+
show_report_radar: { type: 'boolean' },
|
|
2736
|
+
show_indicator_comments: { type: 'boolean' },
|
|
2737
|
+
show_comments: { type: 'boolean' },
|
|
2738
|
+
need_attention: { type: 'string' },
|
|
2739
|
+
success_message_rich_text: { type: 'string' },
|
|
2740
|
+
evaluation_comments: { type: 'array', items: { $ref: 'FormEvaluationCommentInput' } },
|
|
2741
|
+
indicator_setting: {
|
|
2742
|
+
type: 'object',
|
|
2743
|
+
properties: {
|
|
2744
|
+
enabled: { type: 'boolean' },
|
|
2745
|
+
indicators_scoring_mode: { type: 'string', enum: ['summation', 'average', 'customization'] },
|
|
2746
|
+
indicators: {
|
|
2747
|
+
type: 'array',
|
|
2748
|
+
maxItems: 200,
|
|
2749
|
+
items: {
|
|
2750
|
+
type: 'object',
|
|
2751
|
+
required: ['name'],
|
|
2752
|
+
properties: {
|
|
2753
|
+
api_code: { type: 'string' },
|
|
2754
|
+
name: { type: 'string', maxLength: 20 },
|
|
2755
|
+
standard_score: { type: 'number' },
|
|
2756
|
+
field_api_codes: { type: 'array', items: { type: 'string' } },
|
|
2757
|
+
field_cids: { type: 'array', items: { oneOf: [{ type: 'string' }, { type: 'integer' }] } },
|
|
2758
|
+
indicator_comments: {
|
|
2759
|
+
type: 'array',
|
|
2760
|
+
maxItems: 20,
|
|
2761
|
+
items: {
|
|
2762
|
+
type: 'object',
|
|
2763
|
+
properties: {
|
|
2764
|
+
start_point: { type: 'number' },
|
|
2765
|
+
end_point: { type: 'number' },
|
|
2766
|
+
comment: { type: 'string' }
|
|
2767
|
+
},
|
|
2768
|
+
additionalProperties: false
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2771
|
+
},
|
|
2772
|
+
additionalProperties: false
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
},
|
|
2776
|
+
additionalProperties: false
|
|
2777
|
+
}
|
|
2778
|
+
},
|
|
2779
|
+
additionalProperties: false
|
|
2780
|
+
},
|
|
2781
|
+
ExamFieldInput: {
|
|
2782
|
+
type: 'object',
|
|
2783
|
+
required: ['type', 'label'],
|
|
2784
|
+
properties: {
|
|
2785
|
+
type: {
|
|
2786
|
+
type: 'string',
|
|
2787
|
+
enum: [
|
|
2788
|
+
'TextField',
|
|
2789
|
+
'TextArea',
|
|
2790
|
+
'NumberField',
|
|
2791
|
+
'EmailField',
|
|
2792
|
+
'MobileField',
|
|
2793
|
+
'IdCardField',
|
|
2794
|
+
'NameField',
|
|
2795
|
+
'RadioButton',
|
|
2796
|
+
'CheckBox',
|
|
2797
|
+
'DropDown',
|
|
2798
|
+
'DateTimeField',
|
|
2799
|
+
'RatingField',
|
|
2800
|
+
'TableField',
|
|
2801
|
+
'TelephoneField',
|
|
2802
|
+
'AddressField',
|
|
2803
|
+
'AttachmentField',
|
|
2804
|
+
'GeoField',
|
|
2805
|
+
'LinkField',
|
|
2806
|
+
'NpsField',
|
|
2807
|
+
'TimeField',
|
|
2808
|
+
'SortField',
|
|
2809
|
+
'ESignatureField',
|
|
2810
|
+
'AudioField',
|
|
2811
|
+
'CascadeDropDown',
|
|
2812
|
+
'LikertField',
|
|
2813
|
+
'MatrixField',
|
|
2814
|
+
'MatrixScaleField',
|
|
2815
|
+
'GoodsField',
|
|
2816
|
+
'FormulaField',
|
|
2817
|
+
'ReservationField',
|
|
2818
|
+
'FormAssociation',
|
|
2819
|
+
'ImageRadioButton',
|
|
2820
|
+
'ImageCheckBox',
|
|
2821
|
+
'SectionBreak',
|
|
2822
|
+
'PageBreak',
|
|
2823
|
+
'WidgetButton',
|
|
2824
|
+
'WidgetContact',
|
|
2825
|
+
'WidgetMap',
|
|
2826
|
+
'WidgetMarquee',
|
|
2827
|
+
'SingleSelect',
|
|
2828
|
+
'MultiSelect',
|
|
2829
|
+
'ImageSingleSelect',
|
|
2830
|
+
'ImageMultiSelect',
|
|
2831
|
+
'TrueOrFalse',
|
|
2832
|
+
'DropDownSelect',
|
|
2833
|
+
'FillInBlank',
|
|
2834
|
+
'ShortAnswer',
|
|
2835
|
+
'FillInNumber',
|
|
2836
|
+
'Department',
|
|
2837
|
+
'Grade'
|
|
2838
|
+
]
|
|
2839
|
+
},
|
|
2840
|
+
label: { type: 'string' }
|
|
2841
|
+
},
|
|
2842
|
+
discriminator: {
|
|
2843
|
+
propertyName: 'type',
|
|
2844
|
+
mapping: {
|
|
2845
|
+
TextField: 'TextFieldInput',
|
|
2846
|
+
TextArea: 'TextAreaInput',
|
|
2847
|
+
NumberField: 'NumberFieldInput',
|
|
2848
|
+
EmailField: 'EmailFieldInput',
|
|
2849
|
+
MobileField: 'MobileFieldInput',
|
|
2850
|
+
IdCardField: 'IdCardFieldInput',
|
|
2851
|
+
NameField: 'NameFieldInput',
|
|
2852
|
+
RadioButton: 'RadioButtonInput',
|
|
2853
|
+
CheckBox: 'CheckBoxInput',
|
|
2854
|
+
DropDown: 'DropDownInput',
|
|
2855
|
+
DateTimeField: 'DateTimeFieldInput',
|
|
2856
|
+
RatingField: 'RatingFieldInput',
|
|
2857
|
+
TableField: 'TableFieldInput',
|
|
2858
|
+
TelephoneField: 'TelephoneFieldInput',
|
|
2859
|
+
AddressField: 'AddressFieldInput',
|
|
2860
|
+
AttachmentField: 'AttachmentFieldInput',
|
|
2861
|
+
GeoField: 'GeoFieldInput',
|
|
2862
|
+
LinkField: 'LinkFieldInput',
|
|
2863
|
+
NpsField: 'NpsFieldInput',
|
|
2864
|
+
TimeField: 'TimeFieldInput',
|
|
2865
|
+
SortField: 'SortFieldInput',
|
|
2866
|
+
ESignatureField: 'ESignatureFieldInput',
|
|
2867
|
+
AudioField: 'AudioFieldInput',
|
|
2868
|
+
CascadeDropDown: 'CascadeDropDownInput',
|
|
2869
|
+
LikertField: 'LikertFieldInput',
|
|
2870
|
+
MatrixField: 'MatrixFieldInput',
|
|
2871
|
+
MatrixScaleField: 'MatrixScaleFieldInput',
|
|
2872
|
+
GoodsField: 'GoodsFieldInput',
|
|
2873
|
+
FormulaField: 'FormulaFieldInput',
|
|
2874
|
+
ReservationField: 'ReservationFieldInput',
|
|
2875
|
+
FormAssociation: 'FormAssociationInput',
|
|
2876
|
+
ImageRadioButton: 'ImageRadioButtonInput',
|
|
2877
|
+
ImageCheckBox: 'ImageCheckBoxInput',
|
|
2878
|
+
SectionBreak: 'SectionBreakInput',
|
|
2879
|
+
PageBreak: 'PageBreakInput',
|
|
2880
|
+
WidgetButton: 'WidgetButtonInput',
|
|
2881
|
+
WidgetContact: 'WidgetContactInput',
|
|
2882
|
+
WidgetMap: 'WidgetMapInput',
|
|
2883
|
+
WidgetMarquee: 'WidgetMarqueeInput',
|
|
2884
|
+
SingleSelect: 'SingleSelectInput',
|
|
2885
|
+
MultiSelect: 'MultiSelectInput',
|
|
2886
|
+
ImageSingleSelect: 'ImageSingleSelectInput',
|
|
2887
|
+
ImageMultiSelect: 'ImageMultiSelectInput',
|
|
2888
|
+
TrueOrFalse: 'TrueOrFalseInput',
|
|
2889
|
+
DropDownSelect: 'DropDownSelectInput',
|
|
2890
|
+
FillInBlank: 'FillInBlankInput',
|
|
2891
|
+
ShortAnswer: 'ShortAnswerInput',
|
|
2892
|
+
FillInNumber: 'FillInNumberInput',
|
|
2893
|
+
Department: 'DepartmentInput',
|
|
2894
|
+
Grade: 'GradeInput'
|
|
2895
|
+
}
|
|
2896
|
+
},
|
|
2897
|
+
oneOf: [
|
|
2898
|
+
{ $ref: 'TextFieldInput' },
|
|
2899
|
+
{ $ref: 'TextAreaInput' },
|
|
2900
|
+
{ $ref: 'NumberFieldInput' },
|
|
2901
|
+
{ $ref: 'EmailFieldInput' },
|
|
2902
|
+
{ $ref: 'MobileFieldInput' },
|
|
2903
|
+
{ $ref: 'IdCardFieldInput' },
|
|
2904
|
+
{ $ref: 'NameFieldInput' },
|
|
2905
|
+
{ $ref: 'RadioButtonInput' },
|
|
2906
|
+
{ $ref: 'CheckBoxInput' },
|
|
2907
|
+
{ $ref: 'DropDownInput' },
|
|
2908
|
+
{ $ref: 'DateTimeFieldInput' },
|
|
2909
|
+
{ $ref: 'RatingFieldInput' },
|
|
2910
|
+
{ $ref: 'TableFieldInput' },
|
|
2911
|
+
{ $ref: 'TelephoneFieldInput' },
|
|
2912
|
+
{ $ref: 'AddressFieldInput' },
|
|
2913
|
+
{ $ref: 'AttachmentFieldInput' },
|
|
2914
|
+
{ $ref: 'GeoFieldInput' },
|
|
2915
|
+
{ $ref: 'LinkFieldInput' },
|
|
2916
|
+
{ $ref: 'NpsFieldInput' },
|
|
2917
|
+
{ $ref: 'TimeFieldInput' },
|
|
2918
|
+
{ $ref: 'SortFieldInput' },
|
|
2919
|
+
{ $ref: 'ESignatureFieldInput' },
|
|
2920
|
+
{ $ref: 'AudioFieldInput' },
|
|
2921
|
+
{ $ref: 'CascadeDropDownInput' },
|
|
2922
|
+
{ $ref: 'LikertFieldInput' },
|
|
2923
|
+
{ $ref: 'MatrixFieldInput' },
|
|
2924
|
+
{ $ref: 'MatrixScaleFieldInput' },
|
|
2925
|
+
{ $ref: 'GoodsFieldInput' },
|
|
2926
|
+
{ $ref: 'FormulaFieldInput' },
|
|
2927
|
+
{ $ref: 'ReservationFieldInput' },
|
|
2928
|
+
{ $ref: 'FormAssociationInput' },
|
|
2929
|
+
{ $ref: 'ImageRadioButtonInput' },
|
|
2930
|
+
{ $ref: 'ImageCheckBoxInput' },
|
|
2931
|
+
{ $ref: 'SectionBreakInput' },
|
|
2932
|
+
{ $ref: 'PageBreakInput' },
|
|
2933
|
+
{ $ref: 'WidgetButtonInput' },
|
|
2934
|
+
{ $ref: 'WidgetContactInput' },
|
|
2935
|
+
{ $ref: 'WidgetMapInput' },
|
|
2936
|
+
{ $ref: 'WidgetMarqueeInput' },
|
|
2937
|
+
{ $ref: 'SingleSelectInput' },
|
|
2938
|
+
{ $ref: 'MultiSelectInput' },
|
|
2939
|
+
{ $ref: 'ImageSingleSelectInput' },
|
|
2940
|
+
{ $ref: 'ImageMultiSelectInput' },
|
|
2941
|
+
{ $ref: 'TrueOrFalseInput' },
|
|
2942
|
+
{ $ref: 'DropDownSelectInput' },
|
|
2943
|
+
{ $ref: 'FillInBlankInput' },
|
|
2944
|
+
{ $ref: 'ShortAnswerInput' },
|
|
2945
|
+
{ $ref: 'FillInNumberInput' },
|
|
2946
|
+
{ $ref: 'DepartmentInput' },
|
|
2947
|
+
{ $ref: 'GradeInput' }
|
|
2948
|
+
]
|
|
2949
|
+
},
|
|
2950
|
+
ExamSettingInput: {
|
|
2415
2951
|
type: 'object',
|
|
2416
2952
|
properties: {
|
|
2417
|
-
notice_after_filling_mode: { type: 'string', enum: ['
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
show_indicator_comments: { type: 'boolean' },
|
|
2421
|
-
show_comments: { type: 'boolean' },
|
|
2953
|
+
notice_after_filling_mode: { type: 'string', enum: ['appreciation', 'grade', 'explaination', 'none', 'answer'] },
|
|
2954
|
+
show_timeout: { type: 'boolean' },
|
|
2955
|
+
limited_time: { type: 'integer', minimum: 1, maximum: 9999 },
|
|
2422
2956
|
need_attention: { type: 'string' },
|
|
2423
2957
|
success_message_rich_text: { type: 'string' },
|
|
2424
|
-
|
|
2425
|
-
|
|
2958
|
+
interval_comments: { type: 'array', items: { $ref: 'FormIntervalCommentInput' } },
|
|
2959
|
+
random_questions: {
|
|
2426
2960
|
type: 'object',
|
|
2427
2961
|
properties: {
|
|
2428
2962
|
enabled: { type: 'boolean' },
|
|
2429
|
-
|
|
2430
|
-
|
|
2963
|
+
mode: { type: 'string', enum: ['by_type', 'from_all'] },
|
|
2964
|
+
count: { type: 'integer', minimum: 1 },
|
|
2965
|
+
question_types: {
|
|
2431
2966
|
type: 'array',
|
|
2432
|
-
|
|
2967
|
+
minItems: 1,
|
|
2433
2968
|
items: {
|
|
2434
2969
|
type: 'object',
|
|
2435
|
-
required: ['
|
|
2970
|
+
required: ['question_type', 'count'],
|
|
2436
2971
|
properties: {
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
start_point: { type: 'number' },
|
|
2449
|
-
end_point: { type: 'number' },
|
|
2450
|
-
comment: { type: 'string' }
|
|
2451
|
-
},
|
|
2452
|
-
additionalProperties: false
|
|
2453
|
-
}
|
|
2454
|
-
}
|
|
2972
|
+
question_type: {
|
|
2973
|
+
type: 'string',
|
|
2974
|
+
enum: [
|
|
2975
|
+
'single_select_only_fields',
|
|
2976
|
+
'multi_select_fields',
|
|
2977
|
+
'true_or_false_fields',
|
|
2978
|
+
'simple_text_fields',
|
|
2979
|
+
'multi_text_fields'
|
|
2980
|
+
]
|
|
2981
|
+
},
|
|
2982
|
+
count: { type: 'integer', minimum: 0 }
|
|
2455
2983
|
},
|
|
2456
2984
|
additionalProperties: false
|
|
2457
2985
|
}
|
|
2458
|
-
}
|
|
2986
|
+
},
|
|
2987
|
+
shuffle: { type: 'boolean' }
|
|
2459
2988
|
},
|
|
2460
|
-
additionalProperties: false
|
|
2989
|
+
additionalProperties: false,
|
|
2990
|
+
allOf: [
|
|
2991
|
+
{ if: { properties: { enabled: { const: true } }, required: ['enabled'] }, then: { required: ['mode'] } },
|
|
2992
|
+
{
|
|
2993
|
+
if: { properties: { mode: { const: 'by_type' } }, required: ['mode'] },
|
|
2994
|
+
then: { required: ['question_types'] }
|
|
2995
|
+
},
|
|
2996
|
+
{ if: { properties: { mode: { const: 'from_all' } }, required: ['mode'] }, then: { required: ['count'] } }
|
|
2997
|
+
]
|
|
2461
2998
|
}
|
|
2462
2999
|
},
|
|
2463
3000
|
additionalProperties: false
|
|
2464
3001
|
},
|
|
2465
|
-
ExamSettingInput: {
|
|
2466
|
-
type: 'object',
|
|
2467
|
-
properties: {
|
|
2468
|
-
notice_after_filling_mode: { type: 'string', enum: ['appreciation', 'grade', 'explaination', 'none', 'answer'] },
|
|
2469
|
-
show_timeout: { type: 'boolean' },
|
|
2470
|
-
limited_time: { type: 'integer', minimum: 1, maximum: 9999 },
|
|
2471
|
-
need_attention: { type: 'string' },
|
|
2472
|
-
success_message_rich_text: { type: 'string' },
|
|
2473
|
-
interval_comments: { type: 'array', items: { $ref: 'FormIntervalCommentInput' } }
|
|
2474
|
-
},
|
|
2475
|
-
additionalProperties: false
|
|
2476
|
-
},
|
|
2477
3002
|
FieldDataCheck: {
|
|
2478
3003
|
type: 'object',
|
|
2479
3004
|
required: ['field_api_code'],
|
|
@@ -2534,24 +3059,55 @@ export const SCHEMAS = {
|
|
|
2534
3059
|
'WidgetButton',
|
|
2535
3060
|
'WidgetContact',
|
|
2536
3061
|
'WidgetMap',
|
|
2537
|
-
'WidgetMarquee'
|
|
2538
|
-
'SingleSelect',
|
|
2539
|
-
'MultiSelect',
|
|
2540
|
-
'ImageSingleSelect',
|
|
2541
|
-
'ImageMultiSelect',
|
|
2542
|
-
'TrueOrFalse',
|
|
2543
|
-
'DropDownSelect',
|
|
2544
|
-
'FillInBlank',
|
|
2545
|
-
'ShortAnswer',
|
|
2546
|
-
'FillInNumber',
|
|
2547
|
-
'Rating',
|
|
2548
|
-
'Nps',
|
|
2549
|
-
'Department',
|
|
2550
|
-
'Grade'
|
|
3062
|
+
'WidgetMarquee'
|
|
2551
3063
|
]
|
|
2552
3064
|
},
|
|
2553
3065
|
label: { type: 'string' }
|
|
2554
3066
|
},
|
|
3067
|
+
discriminator: {
|
|
3068
|
+
propertyName: 'type',
|
|
3069
|
+
mapping: {
|
|
3070
|
+
TextField: 'TextFieldInput',
|
|
3071
|
+
TextArea: 'TextAreaInput',
|
|
3072
|
+
NumberField: 'NumberFieldInput',
|
|
3073
|
+
EmailField: 'EmailFieldInput',
|
|
3074
|
+
MobileField: 'MobileFieldInput',
|
|
3075
|
+
IdCardField: 'IdCardFieldInput',
|
|
3076
|
+
NameField: 'NameFieldInput',
|
|
3077
|
+
RadioButton: 'RadioButtonInput',
|
|
3078
|
+
CheckBox: 'CheckBoxInput',
|
|
3079
|
+
DropDown: 'DropDownInput',
|
|
3080
|
+
DateTimeField: 'DateTimeFieldInput',
|
|
3081
|
+
RatingField: 'RatingFieldInput',
|
|
3082
|
+
TableField: 'TableFieldInput',
|
|
3083
|
+
TelephoneField: 'TelephoneFieldInput',
|
|
3084
|
+
AddressField: 'AddressFieldInput',
|
|
3085
|
+
AttachmentField: 'AttachmentFieldInput',
|
|
3086
|
+
GeoField: 'GeoFieldInput',
|
|
3087
|
+
LinkField: 'LinkFieldInput',
|
|
3088
|
+
NpsField: 'NpsFieldInput',
|
|
3089
|
+
TimeField: 'TimeFieldInput',
|
|
3090
|
+
SortField: 'SortFieldInput',
|
|
3091
|
+
ESignatureField: 'ESignatureFieldInput',
|
|
3092
|
+
AudioField: 'AudioFieldInput',
|
|
3093
|
+
CascadeDropDown: 'CascadeDropDownInput',
|
|
3094
|
+
LikertField: 'LikertFieldInput',
|
|
3095
|
+
MatrixField: 'MatrixFieldInput',
|
|
3096
|
+
MatrixScaleField: 'MatrixScaleFieldInput',
|
|
3097
|
+
GoodsField: 'GoodsFieldInput',
|
|
3098
|
+
FormulaField: 'FormulaFieldInput',
|
|
3099
|
+
ReservationField: 'ReservationFieldInput',
|
|
3100
|
+
FormAssociation: 'FormAssociationInput',
|
|
3101
|
+
ImageRadioButton: 'ImageRadioButtonInput',
|
|
3102
|
+
ImageCheckBox: 'ImageCheckBoxInput',
|
|
3103
|
+
SectionBreak: 'SectionBreakInput',
|
|
3104
|
+
PageBreak: 'PageBreakInput',
|
|
3105
|
+
WidgetButton: 'WidgetButtonInput',
|
|
3106
|
+
WidgetContact: 'WidgetContactInput',
|
|
3107
|
+
WidgetMap: 'WidgetMapInput',
|
|
3108
|
+
WidgetMarquee: 'WidgetMarqueeInput'
|
|
3109
|
+
}
|
|
3110
|
+
},
|
|
2555
3111
|
oneOf: [
|
|
2556
3112
|
{ $ref: 'TextFieldInput' },
|
|
2557
3113
|
{ $ref: 'TextAreaInput' },
|
|
@@ -2591,20 +3147,7 @@ export const SCHEMAS = {
|
|
|
2591
3147
|
{ $ref: 'WidgetButtonInput' },
|
|
2592
3148
|
{ $ref: 'WidgetContactInput' },
|
|
2593
3149
|
{ $ref: 'WidgetMapInput' },
|
|
2594
|
-
{ $ref: 'WidgetMarqueeInput' }
|
|
2595
|
-
{ $ref: 'SingleSelectInput' },
|
|
2596
|
-
{ $ref: 'MultiSelectInput' },
|
|
2597
|
-
{ $ref: 'ImageSingleSelectInput' },
|
|
2598
|
-
{ $ref: 'ImageMultiSelectInput' },
|
|
2599
|
-
{ $ref: 'TrueOrFalseInput' },
|
|
2600
|
-
{ $ref: 'DropDownSelectInput' },
|
|
2601
|
-
{ $ref: 'FillInBlankInput' },
|
|
2602
|
-
{ $ref: 'ShortAnswerInput' },
|
|
2603
|
-
{ $ref: 'FillInNumberInput' },
|
|
2604
|
-
{ $ref: 'RatingInput' },
|
|
2605
|
-
{ $ref: 'NpsInput' },
|
|
2606
|
-
{ $ref: 'DepartmentInput' },
|
|
2607
|
-
{ $ref: 'GradeInput' }
|
|
3150
|
+
{ $ref: 'WidgetMarqueeInput' }
|
|
2608
3151
|
]
|
|
2609
3152
|
},
|
|
2610
3153
|
FieldRuleOperations: {
|
|
@@ -2764,8 +3307,9 @@ export const SCHEMAS = {
|
|
|
2764
3307
|
unit: { type: 'string', maxLength: 2 },
|
|
2765
3308
|
collapse_on_mobile: { type: 'boolean' },
|
|
2766
3309
|
columns_on_mobile: { type: 'integer', minimum: 1 },
|
|
3310
|
+
formula: { type: 'string' },
|
|
2767
3311
|
formula_display: { type: 'string' },
|
|
2768
|
-
result_display_type: { type: 'string', enum: ['string', 'numeric', 'datetime'] },
|
|
3312
|
+
result_display_type: { type: 'string', enum: ['string', 'numeric', 'datetime', 'boolean'] },
|
|
2769
3313
|
result_display_as_date: { type: 'boolean' },
|
|
2770
3314
|
allow_multiple_items: { type: 'boolean' },
|
|
2771
3315
|
item_allow_multiple_reservations: { type: 'boolean' },
|
|
@@ -2951,50 +3495,16 @@ export const SCHEMAS = {
|
|
|
2951
3495
|
}
|
|
2952
3496
|
},
|
|
2953
3497
|
{
|
|
2954
|
-
if: {
|
|
2955
|
-
|
|
2956
|
-
fields: {
|
|
2957
|
-
type: 'array',
|
|
2958
|
-
contains: {
|
|
2959
|
-
properties: {
|
|
2960
|
-
type: {
|
|
2961
|
-
enum: ['SingleSelect', 'MultiSelect', 'ImageSingleSelect', 'ImageMultiSelect', 'DropDownSelect']
|
|
2962
|
-
}
|
|
2963
|
-
},
|
|
2964
|
-
required: ['type']
|
|
2965
|
-
}
|
|
2966
|
-
}
|
|
2967
|
-
},
|
|
2968
|
-
required: ['fields']
|
|
2969
|
-
},
|
|
2970
|
-
then: { properties: { scene: { enum: ['exam', 'evaluation'] } }, required: ['scene'] }
|
|
3498
|
+
if: { properties: { scene: { const: 'exam' } }, required: ['scene'] },
|
|
3499
|
+
then: { properties: { fields: { items: { $ref: 'ExamFieldInput' } } } }
|
|
2971
3500
|
},
|
|
2972
3501
|
{
|
|
2973
|
-
if: {
|
|
2974
|
-
|
|
2975
|
-
fields: {
|
|
2976
|
-
type: 'array',
|
|
2977
|
-
contains: {
|
|
2978
|
-
properties: { type: { enum: ['TrueOrFalse', 'FillInBlank', 'ShortAnswer', 'FillInNumber'] } },
|
|
2979
|
-
required: ['type']
|
|
2980
|
-
}
|
|
2981
|
-
}
|
|
2982
|
-
},
|
|
2983
|
-
required: ['fields']
|
|
2984
|
-
},
|
|
2985
|
-
then: { properties: { scene: { enum: ['exam'] } }, required: ['scene'] }
|
|
3502
|
+
if: { properties: { scene: { const: 'evaluation' } }, required: ['scene'] },
|
|
3503
|
+
then: { properties: { fields: { items: { $ref: 'EvaluationFieldInput' } } } }
|
|
2986
3504
|
},
|
|
2987
3505
|
{
|
|
2988
|
-
if: {
|
|
2989
|
-
|
|
2990
|
-
fields: {
|
|
2991
|
-
type: 'array',
|
|
2992
|
-
contains: { properties: { type: { enum: ['Rating', 'Nps'] } }, required: ['type'] }
|
|
2993
|
-
}
|
|
2994
|
-
},
|
|
2995
|
-
required: ['fields']
|
|
2996
|
-
},
|
|
2997
|
-
then: { properties: { scene: { enum: ['evaluation'] } }, required: ['scene'] }
|
|
3506
|
+
if: { properties: { scene: { enum: ['exam', 'evaluation'] } }, required: ['scene'] },
|
|
3507
|
+
else: { properties: { fields: { items: { $ref: 'FieldInput' } } } }
|
|
2998
3508
|
}
|
|
2999
3509
|
]
|
|
3000
3510
|
},
|
|
@@ -3005,7 +3515,7 @@ export const SCHEMAS = {
|
|
|
3005
3515
|
properties: {
|
|
3006
3516
|
name: { type: 'string' },
|
|
3007
3517
|
description: { type: 'string' },
|
|
3008
|
-
fields: { type: 'array', minItems: 1
|
|
3518
|
+
fields: { type: 'array', minItems: 1 },
|
|
3009
3519
|
setting: { $ref: 'FormSettingWriteInput' },
|
|
3010
3520
|
folder_token: { type: 'string' },
|
|
3011
3521
|
scene: {
|
|
@@ -3061,7 +3571,8 @@ export const SCHEMAS = {
|
|
|
3061
3571
|
cycles_per_period: { type: 'integer', minimum: 1, maximum: 1000 },
|
|
3062
3572
|
limited_time: { type: 'integer', minimum: 1 },
|
|
3063
3573
|
limited_field_api_codes: { type: 'array', items: { type: 'string' } }
|
|
3064
|
-
}
|
|
3574
|
+
},
|
|
3575
|
+
additionalProperties: false
|
|
3065
3576
|
},
|
|
3066
3577
|
FormFolderMoveInput: {
|
|
3067
3578
|
type: 'object',
|
|
@@ -3118,6 +3629,7 @@ export const SCHEMAS = {
|
|
|
3118
3629
|
]
|
|
3119
3630
|
},
|
|
3120
3631
|
weixin_limited: { type: 'boolean' },
|
|
3632
|
+
locale: { type: 'string', enum: ['zh-CN', 'zh-TW', 'en'] },
|
|
3121
3633
|
entry_post_url: { type: 'string' },
|
|
3122
3634
|
post_new_entry: { type: 'boolean' },
|
|
3123
3635
|
post_updated_entry: { type: 'boolean' },
|
|
@@ -3201,9 +3713,12 @@ export const SCHEMAS = {
|
|
|
3201
3713
|
weixin_limited: { type: 'boolean' },
|
|
3202
3714
|
submission_region_limited: { type: 'boolean' },
|
|
3203
3715
|
submission_regions: { type: 'array', items: { type: 'string' } },
|
|
3716
|
+
locale: { type: 'string', enum: ['zh-CN', 'zh-TW', 'en'] },
|
|
3204
3717
|
merchant_account_id: { type: ['string', 'null'] },
|
|
3205
3718
|
wxpay_account_id: { type: ['string', 'null'] },
|
|
3206
3719
|
alipay_account_id: { type: ['string', 'null'] },
|
|
3720
|
+
payment_expirable: { type: 'boolean' },
|
|
3721
|
+
payment_expiration_time: { type: 'integer', minimum: 3, maximum: 30 },
|
|
3207
3722
|
notification_rules: { type: 'array', items: { $ref: 'NotificationRuleInput' } },
|
|
3208
3723
|
daily_repeat_close_rule: { $ref: 'DailyRepeatCloseRuleInput' }
|
|
3209
3724
|
},
|
|
@@ -3226,7 +3741,12 @@ export const SCHEMAS = {
|
|
|
3226
3741
|
fields: {
|
|
3227
3742
|
type: 'object',
|
|
3228
3743
|
properties: {
|
|
3229
|
-
add: {
|
|
3744
|
+
add: {
|
|
3745
|
+
type: 'array',
|
|
3746
|
+
items: {
|
|
3747
|
+
anyOf: [{ $ref: 'ExamFieldInput' }, { $ref: 'EvaluationFieldInput' }, { $ref: 'TableColumnInput' }]
|
|
3748
|
+
}
|
|
3749
|
+
},
|
|
3230
3750
|
remove: { type: 'array', items: { type: 'string' } },
|
|
3231
3751
|
update: { type: 'array', items: { $ref: 'FieldUpdateInput' } },
|
|
3232
3752
|
update_choices: { type: 'array', items: { $ref: 'ChoiceUpdateInput' } }
|
|
@@ -3253,7 +3773,12 @@ export const SCHEMAS = {
|
|
|
3253
3773
|
FormViewFilterCondition: {
|
|
3254
3774
|
type: 'object',
|
|
3255
3775
|
required: ['field', 'operator'],
|
|
3256
|
-
properties: {
|
|
3776
|
+
properties: {
|
|
3777
|
+
field: { type: 'string' },
|
|
3778
|
+
operator: { type: 'string' },
|
|
3779
|
+
value: {},
|
|
3780
|
+
scope_attr: { type: 'string', enum: ['date_time'] }
|
|
3781
|
+
}
|
|
3257
3782
|
},
|
|
3258
3783
|
FormViewInput: {
|
|
3259
3784
|
type: 'object',
|
|
@@ -3308,8 +3833,9 @@ export const SCHEMAS = {
|
|
|
3308
3833
|
private: { type: 'boolean' },
|
|
3309
3834
|
required: { type: 'boolean' },
|
|
3310
3835
|
position: { type: 'integer', minimum: 0 },
|
|
3836
|
+
formula: { type: 'string' },
|
|
3311
3837
|
formula_display: { type: 'string' },
|
|
3312
|
-
result_display_type: { type: 'string', enum: ['string', 'numeric', 'datetime'] },
|
|
3838
|
+
result_display_type: { type: 'string', enum: ['string', 'numeric', 'datetime', 'boolean'] },
|
|
3313
3839
|
result_display_as_date: { type: 'boolean' },
|
|
3314
3840
|
precision: { type: 'integer', minimum: 0, maximum: 14 },
|
|
3315
3841
|
display_precision: { type: 'integer', minimum: 0 },
|
|
@@ -3808,6 +4334,111 @@ export const SCHEMAS = {
|
|
|
3808
4334
|
horizontal_on_mobile: { type: 'boolean' }
|
|
3809
4335
|
}
|
|
3810
4336
|
},
|
|
4337
|
+
MemoryCallId: { type: 'string', minLength: 1, maxLength: 100 },
|
|
4338
|
+
MemoryKind: { type: 'string', enum: ['background', 'preference'] },
|
|
4339
|
+
MemoryListedScope: { type: ['string', 'null'] },
|
|
4340
|
+
MemoryListedText: { type: 'string', pattern: '\\S' },
|
|
4341
|
+
MemoryNoteContent: {
|
|
4342
|
+
type: 'object',
|
|
4343
|
+
additionalProperties: false,
|
|
4344
|
+
required: ['text'],
|
|
4345
|
+
properties: { text: { $ref: 'MemoryListedText' }, scope: { $ref: 'MemoryListedScope' } }
|
|
4346
|
+
},
|
|
4347
|
+
MemoryNoteInput: {
|
|
4348
|
+
type: 'object',
|
|
4349
|
+
additionalProperties: false,
|
|
4350
|
+
required: ['call_id', 'kind', 'text', 'quote', 'source'],
|
|
4351
|
+
properties: {
|
|
4352
|
+
call_id: { $ref: 'MemoryCallId' },
|
|
4353
|
+
kind: { $ref: 'MemoryKind' },
|
|
4354
|
+
text: { $ref: 'MemoryNoteText' },
|
|
4355
|
+
scope: { $ref: 'MemoryNoteScope' },
|
|
4356
|
+
quote: { $ref: 'MemoryNoteQuote' },
|
|
4357
|
+
source: { $ref: 'MemorySource' }
|
|
4358
|
+
}
|
|
4359
|
+
},
|
|
4360
|
+
MemoryNoteQuote: { type: 'string', minLength: 1, maxLength: 120 },
|
|
4361
|
+
MemoryNoteScope: { type: ['string', 'null'], maxLength: 20 },
|
|
4362
|
+
MemoryNoteText: { type: 'string', minLength: 1, maxLength: 40 },
|
|
4363
|
+
MemoryNoteUpdateInput: {
|
|
4364
|
+
type: 'object',
|
|
4365
|
+
additionalProperties: false,
|
|
4366
|
+
required: ['call_id', 'current', 'kind', 'text', 'quote'],
|
|
4367
|
+
properties: {
|
|
4368
|
+
call_id: { $ref: 'MemoryCallId' },
|
|
4369
|
+
current: { $ref: 'MemoryNoteContent' },
|
|
4370
|
+
kind: { $ref: 'MemoryKind' },
|
|
4371
|
+
text: { $ref: 'MemoryNoteText' },
|
|
4372
|
+
scope: { $ref: 'MemoryNoteScope' },
|
|
4373
|
+
quote: { $ref: 'MemoryNoteQuote' }
|
|
4374
|
+
}
|
|
4375
|
+
},
|
|
4376
|
+
MemoryNotesDeleteInput: {
|
|
4377
|
+
type: 'object',
|
|
4378
|
+
additionalProperties: false,
|
|
4379
|
+
required: ['call_id', 'notes'],
|
|
4380
|
+
properties: {
|
|
4381
|
+
call_id: { $ref: 'MemoryCallId' },
|
|
4382
|
+
notes: {
|
|
4383
|
+
type: 'array',
|
|
4384
|
+
minItems: 1,
|
|
4385
|
+
maxItems: 20,
|
|
4386
|
+
items: {
|
|
4387
|
+
type: 'object',
|
|
4388
|
+
additionalProperties: false,
|
|
4389
|
+
required: ['number', 'text'],
|
|
4390
|
+
properties: {
|
|
4391
|
+
number: { type: 'integer', minimum: 1 },
|
|
4392
|
+
text: { $ref: 'MemoryListedText' },
|
|
4393
|
+
scope: { $ref: 'MemoryListedScope' }
|
|
4394
|
+
}
|
|
4395
|
+
}
|
|
4396
|
+
}
|
|
4397
|
+
}
|
|
4398
|
+
},
|
|
4399
|
+
MemorySource: { type: 'string', enum: ['asked', 'inferred'] },
|
|
4400
|
+
MessageChannelCreateInput: {
|
|
4401
|
+
oneOf: [
|
|
4402
|
+
{ $ref: 'EmailMessageChannelInput' },
|
|
4403
|
+
{ $ref: 'SMSMessageChannelInput' },
|
|
4404
|
+
{ $ref: 'DingTalkMessageChannelInput' },
|
|
4405
|
+
{ $ref: 'WxworkMessageChannelInput' },
|
|
4406
|
+
{ $ref: 'WebhookMessageChannelInput' }
|
|
4407
|
+
],
|
|
4408
|
+
discriminator: {
|
|
4409
|
+
propertyName: 'type',
|
|
4410
|
+
mapping: {
|
|
4411
|
+
email: 'EmailMessageChannelInput',
|
|
4412
|
+
sms: 'SMSMessageChannelInput',
|
|
4413
|
+
ding_talk: 'DingTalkMessageChannelInput',
|
|
4414
|
+
wxwork: 'WxworkMessageChannelInput',
|
|
4415
|
+
webhook: 'WebhookMessageChannelInput'
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4418
|
+
},
|
|
4419
|
+
MessageChannelName: { type: 'string', maxLength: 50 },
|
|
4420
|
+
MessageInput: {
|
|
4421
|
+
oneOf: [
|
|
4422
|
+
{ $ref: 'EmailMessageInput' },
|
|
4423
|
+
{ $ref: 'SMSMessageInput' },
|
|
4424
|
+
{ $ref: 'RobotMessageInput' },
|
|
4425
|
+
{ $ref: 'WebhookMessageInput' }
|
|
4426
|
+
],
|
|
4427
|
+
discriminator: {
|
|
4428
|
+
propertyName: 'type',
|
|
4429
|
+
mapping: {
|
|
4430
|
+
email: 'EmailMessageInput',
|
|
4431
|
+
sms: 'SMSMessageInput',
|
|
4432
|
+
ding_talk: 'RobotMessageInput',
|
|
4433
|
+
wxwork: 'RobotMessageInput',
|
|
4434
|
+
webhook: 'WebhookMessageInput'
|
|
4435
|
+
}
|
|
4436
|
+
}
|
|
4437
|
+
},
|
|
4438
|
+
MessageRecipients: { type: 'array', minItems: 1, maxItems: 50, uniqueItems: true, items: { type: 'string' } },
|
|
4439
|
+
MessageSource: { type: 'string', enum: ['api', 'jiri', 'routine'] },
|
|
4440
|
+
MessageStatus: { type: 'string', enum: ['queued', 'sending', 'succeeded', 'failed'] },
|
|
4441
|
+
MessageType: { type: 'string', enum: ['email', 'sms', 'ding_talk', 'wxwork', 'webhook'] },
|
|
3811
4442
|
MobileFieldInput: {
|
|
3812
4443
|
type: 'object',
|
|
3813
4444
|
additionalProperties: false,
|
|
@@ -3946,7 +4577,8 @@ export const SCHEMAS = {
|
|
|
3946
4577
|
]
|
|
3947
4578
|
},
|
|
3948
4579
|
value: {},
|
|
3949
|
-
group_index: { type: 'integer' }
|
|
4580
|
+
group_index: { type: 'integer' },
|
|
4581
|
+
scope_attr: { type: ['string', 'null'], enum: ['date_time', null] }
|
|
3950
4582
|
},
|
|
3951
4583
|
additionalProperties: false
|
|
3952
4584
|
},
|
|
@@ -4141,12 +4773,6 @@ export const SCHEMAS = {
|
|
|
4141
4773
|
count_down: { type: 'integer', minimum: 0 }
|
|
4142
4774
|
}
|
|
4143
4775
|
},
|
|
4144
|
-
PredefinedChoicesSetInput: {
|
|
4145
|
-
type: 'object',
|
|
4146
|
-
required: ['label', 'choices'],
|
|
4147
|
-
properties: { label: { type: 'string' }, choices: { type: 'array', items: { type: 'string' } } },
|
|
4148
|
-
additionalProperties: false
|
|
4149
|
-
},
|
|
4150
4776
|
PublishedArtifactInput: {
|
|
4151
4777
|
type: 'object',
|
|
4152
4778
|
additionalProperties: false,
|
|
@@ -4244,11 +4870,12 @@ export const SCHEMAS = {
|
|
|
4244
4870
|
ReservationByDayQuotaInput: {
|
|
4245
4871
|
type: 'object',
|
|
4246
4872
|
additionalProperties: false,
|
|
4247
|
-
required: ['type'],
|
|
4873
|
+
required: ['type', 'available_days_of_week'],
|
|
4248
4874
|
properties: {
|
|
4249
4875
|
type: { const: 'by_day_repeat_weekly' },
|
|
4250
4876
|
available_days_of_week: {
|
|
4251
4877
|
type: 'array',
|
|
4878
|
+
minItems: 1,
|
|
4252
4879
|
items: { type: 'string', enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'] }
|
|
4253
4880
|
},
|
|
4254
4881
|
show_left_quota: { type: 'boolean' },
|
|
@@ -4292,11 +4919,12 @@ export const SCHEMAS = {
|
|
|
4292
4919
|
ReservationByTimeRangeQuotaInput: {
|
|
4293
4920
|
type: 'object',
|
|
4294
4921
|
additionalProperties: false,
|
|
4295
|
-
required: ['type'],
|
|
4922
|
+
required: ['type', 'available_days_of_week'],
|
|
4296
4923
|
properties: {
|
|
4297
4924
|
type: { const: 'by_time_range_repeat_daily' },
|
|
4298
4925
|
available_days_of_week: {
|
|
4299
4926
|
type: 'array',
|
|
4927
|
+
minItems: 1,
|
|
4300
4928
|
items: { type: 'string', enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'] }
|
|
4301
4929
|
},
|
|
4302
4930
|
show_left_quota: { type: 'boolean' },
|
|
@@ -4394,10 +5022,39 @@ export const SCHEMAS = {
|
|
|
4394
5022
|
type: 'object',
|
|
4395
5023
|
required: ['type'],
|
|
4396
5024
|
properties: { type: { type: 'string', enum: ['by_day_repeat_weekly', 'by_time_range_repeat_daily'] } },
|
|
5025
|
+
discriminator: {
|
|
5026
|
+
propertyName: 'type',
|
|
5027
|
+
mapping: {
|
|
5028
|
+
by_day_repeat_weekly: 'ReservationByDayQuotaInput',
|
|
5029
|
+
by_time_range_repeat_daily: 'ReservationByTimeRangeQuotaInput'
|
|
5030
|
+
}
|
|
5031
|
+
},
|
|
4397
5032
|
oneOf: [{ $ref: 'ReservationByDayQuotaInput' }, { $ref: 'ReservationByTimeRangeQuotaInput' }]
|
|
4398
5033
|
}
|
|
4399
5034
|
}
|
|
4400
5035
|
},
|
|
5036
|
+
RobotMessageInput: {
|
|
5037
|
+
type: 'object',
|
|
5038
|
+
additionalProperties: false,
|
|
5039
|
+
required: ['type', 'channel_id', 'content'],
|
|
5040
|
+
properties: {
|
|
5041
|
+
type: { type: 'string', enum: ['ding_talk', 'wxwork'] },
|
|
5042
|
+
channel_id: { type: 'string' },
|
|
5043
|
+
title: { type: 'string', maxLength: 200 },
|
|
5044
|
+
content: { type: 'string' },
|
|
5045
|
+
mentioned_mobile_list: { type: 'array', maxItems: 50, uniqueItems: true, items: { type: 'string' } },
|
|
5046
|
+
idempotency_key: { type: 'string', maxLength: 255 }
|
|
5047
|
+
}
|
|
5048
|
+
},
|
|
5049
|
+
RoutineDataConditionInput: {
|
|
5050
|
+
type: 'object',
|
|
5051
|
+
required: ['scope_conditions'],
|
|
5052
|
+
properties: {
|
|
5053
|
+
source_kind: { type: 'string' },
|
|
5054
|
+
source_token: { type: 'string' },
|
|
5055
|
+
scope_conditions: { type: 'array', items: { $ref: 'RoutineScopeCondition' } }
|
|
5056
|
+
}
|
|
5057
|
+
},
|
|
4401
5058
|
RoutineEventInput: {
|
|
4402
5059
|
type: 'object',
|
|
4403
5060
|
properties: {
|
|
@@ -4405,19 +5062,7 @@ export const SCHEMAS = {
|
|
|
4405
5062
|
source_token: { type: 'string' },
|
|
4406
5063
|
on: { type: 'string' },
|
|
4407
5064
|
field_codes: { type: 'array', items: { type: 'string' } },
|
|
4408
|
-
scope_conditions: {
|
|
4409
|
-
type: 'array',
|
|
4410
|
-
items: {
|
|
4411
|
-
type: 'object',
|
|
4412
|
-
properties: {
|
|
4413
|
-
trigger: { type: 'string' },
|
|
4414
|
-
operator: { type: 'string' },
|
|
4415
|
-
value: {},
|
|
4416
|
-
group_index: { type: 'integer' },
|
|
4417
|
-
scope_attr: { type: 'string' }
|
|
4418
|
-
}
|
|
4419
|
-
}
|
|
4420
|
-
},
|
|
5065
|
+
scope_conditions: { type: 'array', items: { $ref: 'RoutineScopeCondition' } },
|
|
4421
5066
|
include_bulk: { type: 'boolean' }
|
|
4422
5067
|
}
|
|
4423
5068
|
},
|
|
@@ -4435,6 +5080,7 @@ export const SCHEMAS = {
|
|
|
4435
5080
|
trigger_kind: { type: ['string', 'null'] },
|
|
4436
5081
|
schedule: { oneOf: [{ $ref: 'RoutineScheduleInput' }, { type: 'null' }] },
|
|
4437
5082
|
event: { oneOf: [{ $ref: 'RoutineEventInput' }, { type: 'null' }] },
|
|
5083
|
+
data_condition: { oneOf: [{ $ref: 'RoutineDataConditionInput' }, { type: 'null' }] },
|
|
4438
5084
|
delete_authorized: {}
|
|
4439
5085
|
}
|
|
4440
5086
|
},
|
|
@@ -4449,6 +5095,38 @@ export const SCHEMAS = {
|
|
|
4449
5095
|
month_days: { type: 'array', items: { type: 'integer' } }
|
|
4450
5096
|
}
|
|
4451
5097
|
},
|
|
5098
|
+
RoutineScopeCondition: {
|
|
5099
|
+
type: 'object',
|
|
5100
|
+
properties: {
|
|
5101
|
+
trigger: { type: 'string' },
|
|
5102
|
+
operator: { type: 'string' },
|
|
5103
|
+
value: {},
|
|
5104
|
+
group_index: { type: 'integer' },
|
|
5105
|
+
scope_attr: { type: 'string' }
|
|
5106
|
+
}
|
|
5107
|
+
},
|
|
5108
|
+
SMSMessageChannelInput: {
|
|
5109
|
+
type: 'object',
|
|
5110
|
+
additionalProperties: false,
|
|
5111
|
+
required: ['type', 'name', 'sms_template_id'],
|
|
5112
|
+
properties: {
|
|
5113
|
+
type: { type: 'string', enum: ['sms'] },
|
|
5114
|
+
name: { $ref: 'MessageChannelName' },
|
|
5115
|
+
sms_template_id: { type: 'string' }
|
|
5116
|
+
}
|
|
5117
|
+
},
|
|
5118
|
+
SMSMessageInput: {
|
|
5119
|
+
type: 'object',
|
|
5120
|
+
additionalProperties: false,
|
|
5121
|
+
required: ['type', 'channel_id', 'to'],
|
|
5122
|
+
properties: {
|
|
5123
|
+
type: { type: 'string', enum: ['sms'] },
|
|
5124
|
+
channel_id: { type: 'string' },
|
|
5125
|
+
to: { $ref: 'MessageRecipients' },
|
|
5126
|
+
variables: { type: 'object', additionalProperties: { type: 'string', maxLength: 100 } },
|
|
5127
|
+
idempotency_key: { type: 'string', maxLength: 255 }
|
|
5128
|
+
}
|
|
5129
|
+
},
|
|
4452
5130
|
SMSNotificationRuleInput: {
|
|
4453
5131
|
type: 'object',
|
|
4454
5132
|
properties: {
|
|
@@ -4571,6 +5249,7 @@ export const SCHEMAS = {
|
|
|
4571
5249
|
field: { type: 'string' },
|
|
4572
5250
|
api_code: { type: 'string' },
|
|
4573
5251
|
trigger: { type: 'string' },
|
|
5252
|
+
scope_attr: { type: 'string', enum: ['date_time'] },
|
|
4574
5253
|
operator: {
|
|
4575
5254
|
type: 'string',
|
|
4576
5255
|
enum: [
|
|
@@ -4768,6 +5447,24 @@ export const SCHEMAS = {
|
|
|
4768
5447
|
},
|
|
4769
5448
|
label: { type: 'string' }
|
|
4770
5449
|
},
|
|
5450
|
+
discriminator: {
|
|
5451
|
+
propertyName: 'type',
|
|
5452
|
+
mapping: {
|
|
5453
|
+
TextArea: 'TextAreaInput',
|
|
5454
|
+
RadioButton: 'RadioButtonInput',
|
|
5455
|
+
CheckBox: 'CheckBoxInput',
|
|
5456
|
+
BooleanField: 'BooleanFieldInput',
|
|
5457
|
+
MobileField: 'MobileFieldInput',
|
|
5458
|
+
NumberField: 'NumberFieldInput',
|
|
5459
|
+
DateTimeField: 'DateTimeFieldInput',
|
|
5460
|
+
EmailField: 'EmailFieldInput',
|
|
5461
|
+
LinkField: 'LinkFieldInput',
|
|
5462
|
+
AttachmentField: 'AttachmentFieldInput',
|
|
5463
|
+
FormulaField: 'FormulaFieldInput',
|
|
5464
|
+
RelationField: 'RelationFieldInput',
|
|
5465
|
+
SequenceField: 'SequenceFieldInput'
|
|
5466
|
+
}
|
|
5467
|
+
},
|
|
4771
5468
|
oneOf: [
|
|
4772
5469
|
{ $ref: 'TextAreaInput' },
|
|
4773
5470
|
{ $ref: 'RadioButtonInput' },
|
|
@@ -4902,6 +5599,7 @@ export const SCHEMAS = {
|
|
|
4902
5599
|
properties: {
|
|
4903
5600
|
primary_color: { type: 'string' },
|
|
4904
5601
|
secondary_color: { type: 'string' },
|
|
5602
|
+
dominant_color: { type: 'string', pattern: '^#[0-9a-fA-F]{6}$' },
|
|
4905
5603
|
wallpaper: {
|
|
4906
5604
|
type: 'object',
|
|
4907
5605
|
properties: {
|
|
@@ -5027,6 +5725,28 @@ export const SCHEMAS = {
|
|
|
5027
5725
|
]
|
|
5028
5726
|
},
|
|
5029
5727
|
WebhookInput: { type: 'object', properties: { entry_post_url: { type: 'string' } }, additionalProperties: false },
|
|
5728
|
+
WebhookMessageChannelInput: {
|
|
5729
|
+
type: 'object',
|
|
5730
|
+
additionalProperties: false,
|
|
5731
|
+
required: ['type', 'name', 'url'],
|
|
5732
|
+
properties: {
|
|
5733
|
+
type: { type: 'string', enum: ['webhook'] },
|
|
5734
|
+
name: { $ref: 'MessageChannelName' },
|
|
5735
|
+
url: { type: 'string', maxLength: 2000 }
|
|
5736
|
+
}
|
|
5737
|
+
},
|
|
5738
|
+
WebhookMessageInput: {
|
|
5739
|
+
type: 'object',
|
|
5740
|
+
additionalProperties: false,
|
|
5741
|
+
required: ['type', 'channel_id', 'content'],
|
|
5742
|
+
properties: {
|
|
5743
|
+
type: { type: 'string', enum: ['webhook'] },
|
|
5744
|
+
channel_id: { type: 'string' },
|
|
5745
|
+
title: { type: 'string', maxLength: 200 },
|
|
5746
|
+
content: { type: 'string' },
|
|
5747
|
+
idempotency_key: { type: 'string', maxLength: 255 }
|
|
5748
|
+
}
|
|
5749
|
+
},
|
|
5030
5750
|
WebhookNotificationRuleInput: {
|
|
5031
5751
|
type: 'object',
|
|
5032
5752
|
properties: {
|
|
@@ -5150,6 +5870,16 @@ export const SCHEMAS = {
|
|
|
5150
5870
|
marquee_data_type: { type: 'string', enum: ['fake', 'real'] }
|
|
5151
5871
|
}
|
|
5152
5872
|
},
|
|
5873
|
+
WxworkMessageChannelInput: {
|
|
5874
|
+
type: 'object',
|
|
5875
|
+
additionalProperties: false,
|
|
5876
|
+
required: ['type', 'name', 'url'],
|
|
5877
|
+
properties: {
|
|
5878
|
+
type: { type: 'string', enum: ['wxwork'] },
|
|
5879
|
+
name: { $ref: 'MessageChannelName' },
|
|
5880
|
+
url: { type: 'string' }
|
|
5881
|
+
}
|
|
5882
|
+
},
|
|
5153
5883
|
WxworkNotificationRuleInput: {
|
|
5154
5884
|
type: 'object',
|
|
5155
5885
|
properties: {
|