@jinshuju/cli 0.26.0 → 0.28.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 +9 -3
- package/dist/commands/checkin.js +15 -2
- package/dist/commands/field.js +1 -1
- package/dist/commands/form.js +335 -13
- package/dist/commands/index.js +1 -6
- package/dist/commands/routine.js +3 -1
- package/dist/commands/shared.d.ts +19 -2
- package/dist/commands/shared.js +105 -2
- package/dist/commands/table.js +13 -1
- package/dist/commands/upload.d.ts +3 -3
- package/dist/commands/upload.js +4 -3
- package/dist/generated/operations.d.ts +1 -1
- package/dist/generated/operations.js +768 -168
- package/dist/schema.js +12 -0
- package/dist/spec.d.ts +3 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/** The path every operation's path is relative to, from `servers`. */
|
|
4
4
|
export const BASE_PATH = '/api/v1';
|
|
5
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-
|
|
6
|
+
export const SPEC_DATE = '2026-11-24';
|
|
7
7
|
export const OPERATIONS = {
|
|
8
8
|
aggregateEntries: {
|
|
9
9
|
method: 'GET',
|
|
@@ -324,6 +324,12 @@ export const OPERATIONS = {
|
|
|
324
324
|
parameters: [],
|
|
325
325
|
body: { required: true, content: { 'application/json': { $ref: 'FormCreateInput' } } }
|
|
326
326
|
},
|
|
327
|
+
createFormCooperators: {
|
|
328
|
+
method: 'POST',
|
|
329
|
+
path: '/forms/{form_token}/cooperators',
|
|
330
|
+
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
|
|
331
|
+
body: { required: true, content: { 'application/json': { $ref: 'CooperatorCreateInput' } } }
|
|
332
|
+
},
|
|
327
333
|
createFormView: {
|
|
328
334
|
method: 'POST',
|
|
329
335
|
path: '/forms/{form_token}/views',
|
|
@@ -392,6 +398,12 @@ export const OPERATIONS = {
|
|
|
392
398
|
}
|
|
393
399
|
}
|
|
394
400
|
},
|
|
401
|
+
createOpenResult: {
|
|
402
|
+
method: 'POST',
|
|
403
|
+
path: '/forms/{form_token}/open_results',
|
|
404
|
+
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
|
|
405
|
+
body: { required: true, content: { 'application/json': { $ref: 'OpenResultInput' } } }
|
|
406
|
+
},
|
|
395
407
|
createOpensearchQuery: {
|
|
396
408
|
method: 'POST',
|
|
397
409
|
path: '/opensearch/queries',
|
|
@@ -549,6 +561,14 @@ export const OPERATIONS = {
|
|
|
549
561
|
{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }
|
|
550
562
|
]
|
|
551
563
|
},
|
|
564
|
+
deleteOpenResult: {
|
|
565
|
+
method: 'DELETE',
|
|
566
|
+
path: '/forms/{form_token}/open_results/{token}',
|
|
567
|
+
parameters: [
|
|
568
|
+
{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
569
|
+
{ name: 'token', in: 'path', required: true, schema: { type: 'string' } }
|
|
570
|
+
]
|
|
571
|
+
},
|
|
552
572
|
deleteRoutine: {
|
|
553
573
|
method: 'DELETE',
|
|
554
574
|
path: '/routines/{id}',
|
|
@@ -784,6 +804,7 @@ export const OPERATIONS = {
|
|
|
784
804
|
{ name: 'include_analytics', in: 'query', schema: { type: 'boolean' } },
|
|
785
805
|
{ name: 'include_theme', in: 'query', schema: { type: 'boolean' } },
|
|
786
806
|
{ name: 'include_field_rules', in: 'query', schema: { type: 'boolean' } },
|
|
807
|
+
{ name: 'include_redirect_rules', in: 'query', schema: { type: 'boolean' } },
|
|
787
808
|
{ name: 'include_extended_attributes', in: 'query', schema: { type: 'boolean' } },
|
|
788
809
|
{ name: 'include_exam_setting', in: 'query', schema: { type: 'boolean' } },
|
|
789
810
|
{ name: 'include_transactions', in: 'query', schema: { type: 'boolean' } }
|
|
@@ -826,6 +847,14 @@ export const OPERATIONS = {
|
|
|
826
847
|
{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }
|
|
827
848
|
]
|
|
828
849
|
},
|
|
850
|
+
getOpenResult: {
|
|
851
|
+
method: 'GET',
|
|
852
|
+
path: '/forms/{form_token}/open_results/{token}',
|
|
853
|
+
parameters: [
|
|
854
|
+
{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
855
|
+
{ name: 'token', in: 'path', required: true, schema: { type: 'string' } }
|
|
856
|
+
]
|
|
857
|
+
},
|
|
829
858
|
getOpensearchQuery: {
|
|
830
859
|
method: 'GET',
|
|
831
860
|
path: '/opensearch/queries/{query_token}',
|
|
@@ -881,11 +910,21 @@ export const OPERATIONS = {
|
|
|
881
910
|
]
|
|
882
911
|
},
|
|
883
912
|
getTradeMerchant: { method: 'GET', path: '/trade/merchant', parameters: [] },
|
|
913
|
+
getUserFormSetting: {
|
|
914
|
+
method: 'GET',
|
|
915
|
+
path: '/forms/{form_token}/user_form_setting',
|
|
916
|
+
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
|
|
917
|
+
},
|
|
884
918
|
getWheelFortune: {
|
|
885
919
|
method: 'GET',
|
|
886
920
|
path: '/forms/{form_token}/wheel_fortune',
|
|
887
921
|
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
|
|
888
922
|
},
|
|
923
|
+
listArtifactDataSources: {
|
|
924
|
+
method: 'GET',
|
|
925
|
+
path: '/artifacts/{artifact_id}/data_sources',
|
|
926
|
+
parameters: [{ name: 'artifact_id', in: 'path', required: true, schema: { type: 'string' } }]
|
|
927
|
+
},
|
|
889
928
|
listArtifacts: {
|
|
890
929
|
method: 'GET',
|
|
891
930
|
path: '/artifacts',
|
|
@@ -1042,6 +1081,17 @@ export const OPERATIONS = {
|
|
|
1042
1081
|
path: '/forms/{form_token}/cooperators',
|
|
1043
1082
|
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
|
|
1044
1083
|
},
|
|
1084
|
+
listFormPublishedArtifacts: {
|
|
1085
|
+
method: 'GET',
|
|
1086
|
+
path: '/forms/{form_token}/published_artifacts',
|
|
1087
|
+
parameters: [
|
|
1088
|
+
{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
1089
|
+
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
1090
|
+
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1091
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1092
|
+
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
1093
|
+
]
|
|
1094
|
+
},
|
|
1045
1095
|
listFormViewEntries: {
|
|
1046
1096
|
method: 'GET',
|
|
1047
1097
|
path: '/forms/{form_token}/views/{view_token}/entries',
|
|
@@ -1168,6 +1218,11 @@ export const OPERATIONS = {
|
|
|
1168
1218
|
path: '/forms/{form_token}/notification_rules',
|
|
1169
1219
|
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
|
|
1170
1220
|
},
|
|
1221
|
+
listOpenResults: {
|
|
1222
|
+
method: 'GET',
|
|
1223
|
+
path: '/forms/{form_token}/open_results',
|
|
1224
|
+
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
|
|
1225
|
+
},
|
|
1171
1226
|
listOpensearchQueries: {
|
|
1172
1227
|
method: 'GET',
|
|
1173
1228
|
path: '/opensearch/queries',
|
|
@@ -1178,6 +1233,11 @@ export const OPERATIONS = {
|
|
|
1178
1233
|
path: '/opensearch/query_suggestions',
|
|
1179
1234
|
parameters: [{ name: 'form_token', in: 'query', required: true, schema: { type: 'string' } }]
|
|
1180
1235
|
},
|
|
1236
|
+
listRedirectRules: {
|
|
1237
|
+
method: 'GET',
|
|
1238
|
+
path: '/forms/{form_token}/redirect_rules',
|
|
1239
|
+
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
|
|
1240
|
+
},
|
|
1181
1241
|
listRoutineRuns: {
|
|
1182
1242
|
method: 'GET',
|
|
1183
1243
|
path: '/routines/{routine_id}/runs',
|
|
@@ -1318,6 +1378,17 @@ export const OPERATIONS = {
|
|
|
1318
1378
|
{ name: 'serial_number', in: 'path', required: true, schema: { type: 'integer' } }
|
|
1319
1379
|
]
|
|
1320
1380
|
},
|
|
1381
|
+
listTablePublishedArtifacts: {
|
|
1382
|
+
method: 'GET',
|
|
1383
|
+
path: '/tables/{table_token}/published_artifacts',
|
|
1384
|
+
parameters: [
|
|
1385
|
+
{ name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
1386
|
+
{ name: 'limit', in: 'query', schema: { type: 'integer' } },
|
|
1387
|
+
{ name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
|
|
1388
|
+
{ name: 'page', in: 'query', schema: { type: 'integer', minimum: 1 } },
|
|
1389
|
+
{ name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
|
|
1390
|
+
]
|
|
1391
|
+
},
|
|
1321
1392
|
listTableViewEntries: {
|
|
1322
1393
|
method: 'GET',
|
|
1323
1394
|
path: '/tables/{table_token}/views/{view_token}/entries',
|
|
@@ -1492,7 +1563,8 @@ export const OPERATIONS = {
|
|
|
1492
1563
|
'goods_item',
|
|
1493
1564
|
'contact_widget',
|
|
1494
1565
|
'reservation_item',
|
|
1495
|
-
'wheel_fortune_prize'
|
|
1566
|
+
'wheel_fortune_prize',
|
|
1567
|
+
'weixin_share_icon'
|
|
1496
1568
|
]
|
|
1497
1569
|
}
|
|
1498
1570
|
},
|
|
@@ -1511,6 +1583,11 @@ export const OPERATIONS = {
|
|
|
1511
1583
|
path: '/forms/{form_token}/import_file_upload_urls',
|
|
1512
1584
|
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
|
|
1513
1585
|
},
|
|
1586
|
+
previewFormDeletion: {
|
|
1587
|
+
method: 'GET',
|
|
1588
|
+
path: '/forms/{form_token}/deletion_preview',
|
|
1589
|
+
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
|
|
1590
|
+
},
|
|
1514
1591
|
previewFormFieldTypeChange: {
|
|
1515
1592
|
method: 'GET',
|
|
1516
1593
|
path: '/forms/{form_token}/fields/preview_convert',
|
|
@@ -1525,6 +1602,11 @@ export const OPERATIONS = {
|
|
|
1525
1602
|
}
|
|
1526
1603
|
]
|
|
1527
1604
|
},
|
|
1605
|
+
previewTableDeletion: {
|
|
1606
|
+
method: 'GET',
|
|
1607
|
+
path: '/tables/{table_token}/deletion_preview',
|
|
1608
|
+
parameters: [{ name: 'table_token', in: 'path', required: true, schema: { type: 'string' } }]
|
|
1609
|
+
},
|
|
1528
1610
|
previewTableFieldTypeChange: {
|
|
1529
1611
|
method: 'GET',
|
|
1530
1612
|
path: '/tables/{table_token}/fields/preview_convert',
|
|
@@ -1575,11 +1657,43 @@ export const OPERATIONS = {
|
|
|
1575
1657
|
],
|
|
1576
1658
|
body: { required: true, content: { 'application/json': { $ref: 'EntryTaskResendInput' } } }
|
|
1577
1659
|
},
|
|
1660
|
+
restoreFormPublishedArtifactDataGrant: {
|
|
1661
|
+
method: 'POST',
|
|
1662
|
+
path: '/forms/{form_token}/published_artifacts/{published_artifact_token}/data_grant',
|
|
1663
|
+
parameters: [
|
|
1664
|
+
{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
1665
|
+
{ name: 'published_artifact_token', in: 'path', required: true, schema: { type: 'string' } }
|
|
1666
|
+
]
|
|
1667
|
+
},
|
|
1668
|
+
restoreTablePublishedArtifactDataGrant: {
|
|
1669
|
+
method: 'POST',
|
|
1670
|
+
path: '/tables/{table_token}/published_artifacts/{published_artifact_token}/data_grant',
|
|
1671
|
+
parameters: [
|
|
1672
|
+
{ name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
1673
|
+
{ name: 'published_artifact_token', in: 'path', required: true, schema: { type: 'string' } }
|
|
1674
|
+
]
|
|
1675
|
+
},
|
|
1578
1676
|
resumeRoutine: {
|
|
1579
1677
|
method: 'POST',
|
|
1580
1678
|
path: '/routines/{routine_id}/resume',
|
|
1581
1679
|
parameters: [{ name: 'routine_id', in: 'path', required: true, schema: { type: 'string' } }]
|
|
1582
1680
|
},
|
|
1681
|
+
revokeFormPublishedArtifactDataGrant: {
|
|
1682
|
+
method: 'DELETE',
|
|
1683
|
+
path: '/forms/{form_token}/published_artifacts/{published_artifact_token}/data_grant',
|
|
1684
|
+
parameters: [
|
|
1685
|
+
{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
1686
|
+
{ name: 'published_artifact_token', in: 'path', required: true, schema: { type: 'string' } }
|
|
1687
|
+
]
|
|
1688
|
+
},
|
|
1689
|
+
revokeTablePublishedArtifactDataGrant: {
|
|
1690
|
+
method: 'DELETE',
|
|
1691
|
+
path: '/tables/{table_token}/published_artifacts/{published_artifact_token}/data_grant',
|
|
1692
|
+
parameters: [
|
|
1693
|
+
{ name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
1694
|
+
{ name: 'published_artifact_token', in: 'path', required: true, schema: { type: 'string' } }
|
|
1695
|
+
]
|
|
1696
|
+
},
|
|
1583
1697
|
runRoutine: {
|
|
1584
1698
|
method: 'POST',
|
|
1585
1699
|
path: '/routines/{routine_id}/run',
|
|
@@ -1838,6 +1952,15 @@ export const OPERATIONS = {
|
|
|
1838
1952
|
}
|
|
1839
1953
|
}
|
|
1840
1954
|
},
|
|
1955
|
+
updateOpenResult: {
|
|
1956
|
+
method: 'PATCH',
|
|
1957
|
+
path: '/forms/{form_token}/open_results/{token}',
|
|
1958
|
+
parameters: [
|
|
1959
|
+
{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
|
|
1960
|
+
{ name: 'token', in: 'path', required: true, schema: { type: 'string' } }
|
|
1961
|
+
],
|
|
1962
|
+
body: { required: true, content: { 'application/json': { $ref: 'OpenResultInput' } } }
|
|
1963
|
+
},
|
|
1841
1964
|
updateOpensearchQuery: {
|
|
1842
1965
|
method: 'PATCH',
|
|
1843
1966
|
path: '/opensearch/queries/{query_token}',
|
|
@@ -1936,6 +2059,12 @@ export const OPERATIONS = {
|
|
|
1936
2059
|
],
|
|
1937
2060
|
body: { required: true, content: { 'application/json': { $ref: 'FormViewInput' } } }
|
|
1938
2061
|
},
|
|
2062
|
+
updateUserFormSetting: {
|
|
2063
|
+
method: 'PATCH',
|
|
2064
|
+
path: '/forms/{form_token}/user_form_setting',
|
|
2065
|
+
parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
|
|
2066
|
+
body: { required: true, content: { 'application/json': { $ref: 'UserFormSettingInput' } } }
|
|
2067
|
+
},
|
|
1939
2068
|
updateWheelFortune: {
|
|
1940
2069
|
method: 'PATCH',
|
|
1941
2070
|
path: '/forms/{form_token}/wheel_fortune',
|
|
@@ -1989,7 +2118,8 @@ export const OPERATIONS = {
|
|
|
1989
2118
|
'goods_item',
|
|
1990
2119
|
'contact_widget',
|
|
1991
2120
|
'reservation_item',
|
|
1992
|
-
'wheel_fortune_prize'
|
|
2121
|
+
'wheel_fortune_prize',
|
|
2122
|
+
'weixin_share_icon'
|
|
1993
2123
|
]
|
|
1994
2124
|
},
|
|
1995
2125
|
file: { type: 'string' }
|
|
@@ -2166,8 +2296,8 @@ export const SCHEMAS = {
|
|
|
2166
2296
|
private: { type: 'boolean' },
|
|
2167
2297
|
required: { type: 'boolean' },
|
|
2168
2298
|
position: { type: 'integer', minimum: 0 },
|
|
2169
|
-
max_size: { type: ['number', 'null'],
|
|
2170
|
-
max_file_quantity: { type: ['integer', 'null'], minimum: 1 },
|
|
2299
|
+
max_size: { type: ['number', 'null'], minimum: 0.01, maximum: 500, multipleOf: 0.01 },
|
|
2300
|
+
max_file_quantity: { type: ['integer', 'null'], minimum: 1, maximum: 15 },
|
|
2171
2301
|
media_type: {
|
|
2172
2302
|
type: ['object', 'null'],
|
|
2173
2303
|
additionalProperties: false,
|
|
@@ -2208,6 +2338,40 @@ export const SCHEMAS = {
|
|
|
2208
2338
|
reset_rule_type: { type: 'string', enum: ['none', 'daily', 'weekly', 'monthly'] }
|
|
2209
2339
|
}
|
|
2210
2340
|
},
|
|
2341
|
+
BlankInput: {
|
|
2342
|
+
type: 'object',
|
|
2343
|
+
additionalProperties: false,
|
|
2344
|
+
properties: {
|
|
2345
|
+
type: { type: 'string', enum: ['TextField'] },
|
|
2346
|
+
label: { type: ['string', 'null'] },
|
|
2347
|
+
placeholder: { type: ['string', 'null'] },
|
|
2348
|
+
cid: { type: 'string' },
|
|
2349
|
+
api_code: { type: 'string' },
|
|
2350
|
+
notes: { type: ['string', 'null'] },
|
|
2351
|
+
private: { type: 'boolean' },
|
|
2352
|
+
predefined_value: {},
|
|
2353
|
+
minimum_length: { type: ['integer', 'null'] },
|
|
2354
|
+
maximum_length: { type: ['integer', 'null'] },
|
|
2355
|
+
scannable: { type: 'boolean' },
|
|
2356
|
+
access_control_list_limit: { type: 'boolean' },
|
|
2357
|
+
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
2358
|
+
acl_values: { type: 'array', items: { type: 'string' } },
|
|
2359
|
+
format_validation_type: {
|
|
2360
|
+
type: ['string', 'null'],
|
|
2361
|
+
enum: [
|
|
2362
|
+
'chinese_only',
|
|
2363
|
+
'custom_regex_format',
|
|
2364
|
+
'english_only',
|
|
2365
|
+
'id_card_format',
|
|
2366
|
+
'plate_number_format',
|
|
2367
|
+
'qq_number_format',
|
|
2368
|
+
null
|
|
2369
|
+
]
|
|
2370
|
+
},
|
|
2371
|
+
custom_validation_regex: { type: ['string', 'null'] },
|
|
2372
|
+
api_code_alias: { type: ['string', 'null'] }
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2211
2375
|
BooleanFieldColumnInput: {
|
|
2212
2376
|
type: 'object',
|
|
2213
2377
|
additionalProperties: false,
|
|
@@ -2229,9 +2393,8 @@ export const SCHEMAS = {
|
|
|
2229
2393
|
value: { type: 'string' },
|
|
2230
2394
|
name: { type: 'string' },
|
|
2231
2395
|
api_code: { type: 'string' },
|
|
2232
|
-
quota: { type: 'integer', minimum:
|
|
2396
|
+
quota: { type: 'integer', minimum: 0 },
|
|
2233
2397
|
operand_value: { type: 'number' },
|
|
2234
|
-
selected: { type: 'boolean' },
|
|
2235
2398
|
sub_choices: { type: 'array', items: { $ref: 'CascadeChoiceInput' } }
|
|
2236
2399
|
}
|
|
2237
2400
|
},
|
|
@@ -2248,11 +2411,13 @@ export const SCHEMAS = {
|
|
|
2248
2411
|
required: { type: 'boolean' },
|
|
2249
2412
|
position: { type: 'integer', minimum: 0 },
|
|
2250
2413
|
choices: { type: 'array', minItems: 1, items: { $ref: 'CascadeChoiceInput' } },
|
|
2251
|
-
levels: { type: ['integer', 'null'], minimum: 2 },
|
|
2252
|
-
choice_filterable: { type: 'boolean' },
|
|
2414
|
+
levels: { type: ['integer', 'null'], minimum: 2, maximum: 4 },
|
|
2253
2415
|
random_choices: { type: 'boolean' },
|
|
2254
2416
|
calculable: { type: 'boolean' },
|
|
2255
2417
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
2418
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
2419
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
2420
|
+
hide_quota: { type: 'boolean' },
|
|
2256
2421
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2257
2422
|
start_new_row: { type: 'boolean' }
|
|
2258
2423
|
}
|
|
@@ -2268,11 +2433,14 @@ export const SCHEMAS = {
|
|
|
2268
2433
|
notes: { type: ['string', 'null'] },
|
|
2269
2434
|
private: { type: 'boolean' },
|
|
2270
2435
|
position: { type: 'integer', minimum: 0 },
|
|
2271
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
2436
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
2272
2437
|
calculable: { type: 'boolean' },
|
|
2273
2438
|
choices_layout: { type: ['string', 'null'] },
|
|
2274
2439
|
random_choices: { type: 'boolean' },
|
|
2275
2440
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
2441
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
2442
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
2443
|
+
hide_quota: { type: 'boolean' },
|
|
2276
2444
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2277
2445
|
start_new_row: { type: 'boolean' }
|
|
2278
2446
|
},
|
|
@@ -2296,13 +2464,18 @@ export const SCHEMAS = {
|
|
|
2296
2464
|
required: { type: 'boolean' },
|
|
2297
2465
|
position: { type: 'integer', minimum: 0 },
|
|
2298
2466
|
other_choice_required: { type: 'boolean' },
|
|
2299
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
2467
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
2300
2468
|
calculable: { type: 'boolean' },
|
|
2301
2469
|
choices_layout: { type: ['string', 'null'] },
|
|
2302
2470
|
random_choices: { type: 'boolean' },
|
|
2303
2471
|
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
2304
2472
|
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
2305
2473
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
2474
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
2475
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
2476
|
+
hide_quota: { type: 'boolean' },
|
|
2477
|
+
with_exclusive_choice: { type: 'boolean' },
|
|
2478
|
+
exclusive_choice_api_codes: { type: 'array', items: { type: 'string' } },
|
|
2306
2479
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2307
2480
|
start_new_row: { type: 'boolean' }
|
|
2308
2481
|
},
|
|
@@ -2322,6 +2495,7 @@ export const SCHEMAS = {
|
|
|
2322
2495
|
name: { type: 'string', minLength: 1 },
|
|
2323
2496
|
display_field_api_code: { type: ['string', 'null'] },
|
|
2324
2497
|
enable_checkin_code: { type: 'boolean' },
|
|
2498
|
+
success_message: { type: ['string', 'null'] },
|
|
2325
2499
|
checkin_field_required_unique: { type: 'boolean' },
|
|
2326
2500
|
date_settings: { type: 'array', items: { $ref: 'CheckinDateSetting' } },
|
|
2327
2501
|
geo_location: { oneOf: [{ type: 'null' }, { $ref: 'CheckinGeoLocation' }] }
|
|
@@ -2335,6 +2509,7 @@ export const SCHEMAS = {
|
|
|
2335
2509
|
name: { type: 'string', minLength: 1 },
|
|
2336
2510
|
display_field_api_code: { type: ['string', 'null'] },
|
|
2337
2511
|
enable_checkin_code: { type: 'boolean' },
|
|
2512
|
+
success_message: { type: ['string', 'null'] },
|
|
2338
2513
|
checkin_field_required_unique: { type: 'boolean' },
|
|
2339
2514
|
date_settings: { type: 'array', items: { $ref: 'CheckinDateSetting' } },
|
|
2340
2515
|
geo_location: { oneOf: [{ type: 'null' }, { $ref: 'CheckinGeoLocation' }] }
|
|
@@ -2389,9 +2564,11 @@ export const SCHEMAS = {
|
|
|
2389
2564
|
value: { type: 'string' },
|
|
2390
2565
|
name: { type: 'string' },
|
|
2391
2566
|
api_code: { type: 'string' },
|
|
2392
|
-
quota: { type: 'integer', minimum:
|
|
2567
|
+
quota: { type: 'integer', minimum: 0 },
|
|
2393
2568
|
operand_value: { type: 'number' },
|
|
2394
2569
|
selected: { type: 'boolean' },
|
|
2570
|
+
description_text: { type: ['string', 'null'] },
|
|
2571
|
+
description_url: { type: ['string', 'null'] },
|
|
2395
2572
|
is_other: { type: 'boolean' }
|
|
2396
2573
|
}
|
|
2397
2574
|
},
|
|
@@ -2413,10 +2590,12 @@ export const SCHEMAS = {
|
|
|
2413
2590
|
properties: {
|
|
2414
2591
|
api_code: { type: 'string' },
|
|
2415
2592
|
value: { type: 'string' },
|
|
2416
|
-
operand_value: { type: 'number' },
|
|
2593
|
+
operand_value: { type: ['number', 'null'] },
|
|
2417
2594
|
selected: { type: 'boolean' },
|
|
2418
2595
|
quota: { type: ['integer', 'null'], minimum: 0 },
|
|
2419
|
-
recover_quota: { type: 'integer', minimum: 1 }
|
|
2596
|
+
recover_quota: { type: 'integer', minimum: 1 },
|
|
2597
|
+
description_text: { type: ['string', 'null'] },
|
|
2598
|
+
description_url: { type: ['string', 'null'] }
|
|
2420
2599
|
},
|
|
2421
2600
|
additionalProperties: false
|
|
2422
2601
|
}
|
|
@@ -2424,6 +2603,15 @@ export const SCHEMAS = {
|
|
|
2424
2603
|
},
|
|
2425
2604
|
additionalProperties: false
|
|
2426
2605
|
},
|
|
2606
|
+
CooperatorCreateInput: {
|
|
2607
|
+
type: 'object',
|
|
2608
|
+
required: ['user_ids', 'role'],
|
|
2609
|
+
properties: {
|
|
2610
|
+
user_ids: { type: 'array', minItems: 1, maxItems: 100, items: { type: 'string', pattern: '^[0-9a-f]{24}$' } },
|
|
2611
|
+
role: { type: 'string', enum: ['manager', 'data_maintainer', 'data_viewer'] }
|
|
2612
|
+
},
|
|
2613
|
+
additionalProperties: false
|
|
2614
|
+
},
|
|
2427
2615
|
CopyFormInput: {
|
|
2428
2616
|
type: 'object',
|
|
2429
2617
|
properties: {
|
|
@@ -2439,6 +2627,8 @@ export const SCHEMAS = {
|
|
|
2439
2627
|
enabled: { type: 'boolean' },
|
|
2440
2628
|
time_periods: {
|
|
2441
2629
|
type: 'array',
|
|
2630
|
+
minItems: 1,
|
|
2631
|
+
maxItems: 3,
|
|
2442
2632
|
items: {
|
|
2443
2633
|
type: 'object',
|
|
2444
2634
|
required: ['start_time', 'end_time'],
|
|
@@ -2480,6 +2670,8 @@ export const SCHEMAS = {
|
|
|
2480
2670
|
position: { type: 'integer', minimum: 0 },
|
|
2481
2671
|
predefined_value: { type: ['string', 'null'] },
|
|
2482
2672
|
precision: { type: ['string', 'null'], enum: ['month', 'day', 'minute', 'second', null] },
|
|
2673
|
+
start_date: { type: ['string', 'null'] },
|
|
2674
|
+
end_date: { type: ['string', 'null'] },
|
|
2483
2675
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2484
2676
|
start_new_row: { type: 'boolean' }
|
|
2485
2677
|
}
|
|
@@ -2497,11 +2689,14 @@ export const SCHEMAS = {
|
|
|
2497
2689
|
required: { type: 'boolean' },
|
|
2498
2690
|
position: { type: 'integer', minimum: 0 },
|
|
2499
2691
|
other_choice_required: { type: 'boolean' },
|
|
2500
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
2692
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
2501
2693
|
calculable: { type: 'boolean' },
|
|
2502
2694
|
choices_layout: { type: ['string', 'null'] },
|
|
2503
2695
|
random_choices: { type: 'boolean' },
|
|
2504
2696
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
2697
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
2698
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
2699
|
+
hide_quota: { type: 'boolean' },
|
|
2505
2700
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2506
2701
|
start_new_row: { type: 'boolean' }
|
|
2507
2702
|
},
|
|
@@ -2578,10 +2773,13 @@ export const SCHEMAS = {
|
|
|
2578
2773
|
required: { type: 'boolean' },
|
|
2579
2774
|
position: { type: 'integer', minimum: 0 },
|
|
2580
2775
|
other_choice_required: { type: 'boolean' },
|
|
2581
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
2776
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
2582
2777
|
calculable: { type: 'boolean' },
|
|
2583
2778
|
random_choices: { type: 'boolean' },
|
|
2584
2779
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
2780
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
2781
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
2782
|
+
hide_quota: { type: 'boolean' },
|
|
2585
2783
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2586
2784
|
start_new_row: { type: 'boolean' }
|
|
2587
2785
|
},
|
|
@@ -2605,10 +2803,13 @@ export const SCHEMAS = {
|
|
|
2605
2803
|
required: { type: 'boolean' },
|
|
2606
2804
|
position: { type: 'integer', minimum: 0 },
|
|
2607
2805
|
other_choice_required: { type: 'boolean' },
|
|
2608
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
2806
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
2609
2807
|
calculable: { type: 'boolean' },
|
|
2610
2808
|
random_choices: { type: 'boolean' },
|
|
2611
2809
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
2810
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
2811
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
2812
|
+
hide_quota: { type: 'boolean' },
|
|
2612
2813
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2613
2814
|
start_new_row: { type: 'boolean' },
|
|
2614
2815
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -2816,6 +3017,7 @@ export const SCHEMAS = {
|
|
|
2816
3017
|
'LikertField',
|
|
2817
3018
|
'MatrixField',
|
|
2818
3019
|
'MatrixScaleField',
|
|
3020
|
+
'MultipleBlanksField',
|
|
2819
3021
|
'GoodsField',
|
|
2820
3022
|
'FormulaField',
|
|
2821
3023
|
'ReservationField',
|
|
@@ -2869,6 +3071,7 @@ export const SCHEMAS = {
|
|
|
2869
3071
|
LikertField: 'LikertFieldInput',
|
|
2870
3072
|
MatrixField: 'MatrixFieldInput',
|
|
2871
3073
|
MatrixScaleField: 'MatrixScaleFieldInput',
|
|
3074
|
+
MultipleBlanksField: 'MultipleBlanksFieldInput',
|
|
2872
3075
|
GoodsField: 'GoodsFieldInput',
|
|
2873
3076
|
FormulaField: 'FormulaFieldInput',
|
|
2874
3077
|
ReservationField: 'ReservationFieldInput',
|
|
@@ -2918,6 +3121,7 @@ export const SCHEMAS = {
|
|
|
2918
3121
|
{ $ref: 'LikertFieldInput' },
|
|
2919
3122
|
{ $ref: 'MatrixFieldInput' },
|
|
2920
3123
|
{ $ref: 'MatrixScaleFieldInput' },
|
|
3124
|
+
{ $ref: 'MultipleBlanksFieldInput' },
|
|
2921
3125
|
{ $ref: 'GoodsFieldInput' },
|
|
2922
3126
|
{ $ref: 'FormulaFieldInput' },
|
|
2923
3127
|
{ $ref: 'ReservationFieldInput' },
|
|
@@ -2948,6 +3152,8 @@ export const SCHEMAS = {
|
|
|
2948
3152
|
show_indicator_comments: { type: 'boolean' },
|
|
2949
3153
|
show_comments: { type: 'boolean' },
|
|
2950
3154
|
need_attention: { type: 'string' },
|
|
3155
|
+
show_dispatcher_structure: { type: 'boolean' },
|
|
3156
|
+
show_question_settings_structure: { type: 'boolean' },
|
|
2951
3157
|
success_message_rich_text: { type: 'string' },
|
|
2952
3158
|
evaluation_comments: { type: 'array', items: { $ref: 'FormEvaluationCommentInput' } },
|
|
2953
3159
|
indicator_setting: {
|
|
@@ -3167,6 +3373,8 @@ export const SCHEMAS = {
|
|
|
3167
3373
|
show_timeout: { type: 'boolean' },
|
|
3168
3374
|
limited_time: { type: 'integer', minimum: 1, maximum: 9999 },
|
|
3169
3375
|
need_attention: { type: 'string' },
|
|
3376
|
+
show_dispatcher_structure: { type: 'boolean' },
|
|
3377
|
+
show_question_settings_structure: { type: 'boolean' },
|
|
3170
3378
|
success_message_rich_text: { type: 'string' },
|
|
3171
3379
|
interval_comments: { type: 'array', items: { $ref: 'FormIntervalCommentInput' } },
|
|
3172
3380
|
random_questions: {
|
|
@@ -3240,6 +3448,8 @@ export const SCHEMAS = {
|
|
|
3240
3448
|
hidden: { type: 'boolean' },
|
|
3241
3449
|
allow_extended_text: { type: 'boolean' },
|
|
3242
3450
|
extended_text_required: { type: 'boolean' },
|
|
3451
|
+
description_text: { type: ['string', 'null'] },
|
|
3452
|
+
description_url: { type: ['string', 'null'] },
|
|
3243
3453
|
attachment_id: { type: 'string' },
|
|
3244
3454
|
image_url: { type: ['string', 'null'] },
|
|
3245
3455
|
sub_choices: { type: 'array', items: { $ref: 'FieldChoiceInput' } },
|
|
@@ -3292,20 +3502,35 @@ export const SCHEMAS = {
|
|
|
3292
3502
|
private: { type: 'boolean' },
|
|
3293
3503
|
predefined_value: {},
|
|
3294
3504
|
placeholder: { type: ['string', 'null'] },
|
|
3505
|
+
minimum_length: { type: ['integer', 'null'] },
|
|
3506
|
+
maximum_length: { type: ['integer', 'null'] },
|
|
3295
3507
|
scannable: { type: 'boolean' },
|
|
3296
3508
|
access_control_list_limit: { type: 'boolean' },
|
|
3297
3509
|
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
3298
|
-
acl_values: { type: 'array',
|
|
3299
|
-
|
|
3300
|
-
|
|
3510
|
+
acl_values: { type: 'array', items: { type: 'string' } },
|
|
3511
|
+
format_validation_type: {
|
|
3512
|
+
type: ['string', 'null'],
|
|
3513
|
+
enum: [
|
|
3514
|
+
'chinese_only',
|
|
3515
|
+
'custom_regex_format',
|
|
3516
|
+
'english_only',
|
|
3517
|
+
'id_card_format',
|
|
3518
|
+
'plate_number_format',
|
|
3519
|
+
'qq_number_format',
|
|
3520
|
+
null
|
|
3521
|
+
]
|
|
3522
|
+
},
|
|
3523
|
+
custom_validation_regex: { type: ['string', 'null'] },
|
|
3301
3524
|
api_code_alias: { type: ['string', 'null'] },
|
|
3302
3525
|
sms_verification: { type: 'boolean' },
|
|
3303
3526
|
calculable: { type: 'boolean' },
|
|
3304
3527
|
choices_layout: { type: ['string', 'null'] },
|
|
3305
3528
|
random_choices: { type: 'boolean' },
|
|
3306
3529
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
3307
|
-
|
|
3308
|
-
|
|
3530
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
3531
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
3532
|
+
hide_quota: { type: 'boolean' },
|
|
3533
|
+
levels: { type: ['integer', 'null'] },
|
|
3309
3534
|
range_min: { type: ['number', 'null'] },
|
|
3310
3535
|
range_max: { type: ['number', 'null'] },
|
|
3311
3536
|
precision: {
|
|
@@ -3315,14 +3540,11 @@ export const SCHEMAS = {
|
|
|
3315
3540
|
{ type: 'null' }
|
|
3316
3541
|
]
|
|
3317
3542
|
},
|
|
3318
|
-
display_precision: { type: ['integer', 'null'], minimum: 0 },
|
|
3319
3543
|
display_as_percentage: { type: 'boolean' },
|
|
3320
3544
|
thousands_separator: { type: 'boolean' },
|
|
3321
|
-
currency_symbol: { type: ['string', 'null'] },
|
|
3322
|
-
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
|
|
3323
3545
|
icon_type: {
|
|
3324
3546
|
type: ['string', 'null'],
|
|
3325
|
-
enum: ['none', 'number-2', 'dollar1', 'cny1', 'formula-2', 'date-2', 'sum', '
|
|
3547
|
+
enum: ['none', 'number-2', 'dollar1', 'cny1', 'formula-2', 'date-2', 'sum', 'text2', null]
|
|
3326
3548
|
},
|
|
3327
3549
|
formula: { type: ['string', 'null'] },
|
|
3328
3550
|
formula_display: { type: ['string', 'null'] },
|
|
@@ -3331,8 +3553,8 @@ export const SCHEMAS = {
|
|
|
3331
3553
|
start_date: { type: ['string', 'null'] },
|
|
3332
3554
|
end_date: { type: ['string', 'null'] },
|
|
3333
3555
|
include_second: { type: 'boolean' },
|
|
3334
|
-
max_size: { type: ['number', 'null']
|
|
3335
|
-
max_file_quantity: { type: ['integer', 'null']
|
|
3556
|
+
max_size: { type: ['number', 'null'] },
|
|
3557
|
+
max_file_quantity: { type: ['integer', 'null'] },
|
|
3336
3558
|
media_type: {
|
|
3337
3559
|
type: ['object', 'null'],
|
|
3338
3560
|
additionalProperties: false,
|
|
@@ -3380,6 +3602,7 @@ export const SCHEMAS = {
|
|
|
3380
3602
|
'LikertField',
|
|
3381
3603
|
'MatrixField',
|
|
3382
3604
|
'MatrixScaleField',
|
|
3605
|
+
'MultipleBlanksField',
|
|
3383
3606
|
'GoodsField',
|
|
3384
3607
|
'FormulaField',
|
|
3385
3608
|
'ReservationField',
|
|
@@ -3426,6 +3649,7 @@ export const SCHEMAS = {
|
|
|
3426
3649
|
LikertField: 'LikertFieldInput',
|
|
3427
3650
|
MatrixField: 'MatrixFieldInput',
|
|
3428
3651
|
MatrixScaleField: 'MatrixScaleFieldInput',
|
|
3652
|
+
MultipleBlanksField: 'MultipleBlanksFieldInput',
|
|
3429
3653
|
GoodsField: 'GoodsFieldInput',
|
|
3430
3654
|
FormulaField: 'FormulaFieldInput',
|
|
3431
3655
|
ReservationField: 'ReservationFieldInput',
|
|
@@ -3468,6 +3692,7 @@ export const SCHEMAS = {
|
|
|
3468
3692
|
{ $ref: 'LikertFieldInput' },
|
|
3469
3693
|
{ $ref: 'MatrixFieldInput' },
|
|
3470
3694
|
{ $ref: 'MatrixScaleFieldInput' },
|
|
3695
|
+
{ $ref: 'MultipleBlanksFieldInput' },
|
|
3471
3696
|
{ $ref: 'GoodsFieldInput' },
|
|
3472
3697
|
{ $ref: 'FormulaFieldInput' },
|
|
3473
3698
|
{ $ref: 'ReservationFieldInput' },
|
|
@@ -3498,15 +3723,7 @@ export const SCHEMAS = {
|
|
|
3498
3723
|
targets: { type: 'array', items: { type: 'string' } },
|
|
3499
3724
|
targets_display_mode: { type: 'string', enum: ['show', 'abort'] },
|
|
3500
3725
|
operator: { type: 'string', enum: ['or', 'and'] },
|
|
3501
|
-
conditions: {
|
|
3502
|
-
type: 'array',
|
|
3503
|
-
items: {
|
|
3504
|
-
type: 'object',
|
|
3505
|
-
required: ['trigger'],
|
|
3506
|
-
properties: { trigger: { type: 'string' }, comparator: { type: 'string' }, value: {} },
|
|
3507
|
-
additionalProperties: false
|
|
3508
|
-
}
|
|
3509
|
-
}
|
|
3726
|
+
conditions: { type: 'array', items: { $ref: 'RuleConditionInput' } }
|
|
3510
3727
|
},
|
|
3511
3728
|
additionalProperties: false
|
|
3512
3729
|
},
|
|
@@ -3555,6 +3772,7 @@ export const SCHEMAS = {
|
|
|
3555
3772
|
'LikertField',
|
|
3556
3773
|
'MatrixField',
|
|
3557
3774
|
'MatrixScaleField',
|
|
3775
|
+
'MultipleBlanksField',
|
|
3558
3776
|
'GoodsField',
|
|
3559
3777
|
'FormulaField',
|
|
3560
3778
|
'ReservationField',
|
|
@@ -3588,10 +3806,11 @@ export const SCHEMAS = {
|
|
|
3588
3806
|
'Timer',
|
|
3589
3807
|
'ImageGroup',
|
|
3590
3808
|
'WidgetVideo',
|
|
3591
|
-
'MultipleBlanksField',
|
|
3592
3809
|
'BooleanField',
|
|
3593
3810
|
'RelationField',
|
|
3594
|
-
'SequenceField'
|
|
3811
|
+
'SequenceField',
|
|
3812
|
+
'LookupField',
|
|
3813
|
+
'RollupField'
|
|
3595
3814
|
]
|
|
3596
3815
|
},
|
|
3597
3816
|
confirm_data_loss: { type: 'boolean' },
|
|
@@ -3602,7 +3821,7 @@ export const SCHEMAS = {
|
|
|
3602
3821
|
unique: { type: 'boolean' },
|
|
3603
3822
|
other_choice_required: { type: 'boolean' },
|
|
3604
3823
|
position: { type: 'integer', minimum: 0 },
|
|
3605
|
-
rating_max: { type: 'integer', minimum:
|
|
3824
|
+
rating_max: { type: 'integer', minimum: 3, maximum: 10 },
|
|
3606
3825
|
choices: { type: 'array', items: { $ref: 'FieldChoiceInput' } },
|
|
3607
3826
|
dimensions: { type: 'array', items: { $ref: 'FieldDimensionInput' } },
|
|
3608
3827
|
statements: { type: 'array', items: { $ref: 'StatementInput' } },
|
|
@@ -3611,6 +3830,7 @@ export const SCHEMAS = {
|
|
|
3611
3830
|
buttons: { type: 'array', minItems: 1, items: { $ref: 'WidgetButtonItemInput' } },
|
|
3612
3831
|
segments: { type: 'array', minItems: 1, items: { $ref: 'SequenceSegmentInput' } },
|
|
3613
3832
|
display_field_api_codes: { type: 'array', maxItems: 20, items: { type: 'string' } },
|
|
3833
|
+
masked_display_field_api_codes: { type: 'array', maxItems: 20, items: { type: 'string' } },
|
|
3614
3834
|
init_row_length: { type: 'integer', minimum: 1 },
|
|
3615
3835
|
widget_images: { type: 'array', items: { $ref: 'WidgetImageInput' } },
|
|
3616
3836
|
answers: { type: 'array', items: { $ref: 'AnswerInput' } },
|
|
@@ -3622,16 +3842,34 @@ export const SCHEMAS = {
|
|
|
3622
3842
|
choices_layout: { type: ['string', 'null'] },
|
|
3623
3843
|
random_choices: { type: 'boolean' },
|
|
3624
3844
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
3845
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
3846
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
3847
|
+
hide_quota: { type: 'boolean' },
|
|
3625
3848
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
3626
3849
|
start_new_row: { type: 'boolean' },
|
|
3627
3850
|
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
3628
3851
|
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
3852
|
+
with_exclusive_choice: { type: 'boolean' },
|
|
3853
|
+
exclusive_choice_api_codes: { type: 'array', items: { type: 'string' } },
|
|
3629
3854
|
predefined_value: {},
|
|
3630
3855
|
placeholder: { type: ['string', 'null'] },
|
|
3631
3856
|
scannable: { type: 'boolean' },
|
|
3632
3857
|
access_control_list_limit: { type: 'boolean' },
|
|
3633
3858
|
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
3634
3859
|
acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
|
|
3860
|
+
format_validation_type: {
|
|
3861
|
+
type: ['string', 'null'],
|
|
3862
|
+
enum: [
|
|
3863
|
+
'chinese_only',
|
|
3864
|
+
'custom_regex_format',
|
|
3865
|
+
'english_only',
|
|
3866
|
+
'id_card_format',
|
|
3867
|
+
'plate_number_format',
|
|
3868
|
+
'qq_number_format',
|
|
3869
|
+
null
|
|
3870
|
+
]
|
|
3871
|
+
},
|
|
3872
|
+
custom_validation_regex: { type: ['string', 'null'], maxLength: 1215 },
|
|
3635
3873
|
sms_verification: { type: 'boolean' },
|
|
3636
3874
|
range_min: { type: ['number', 'null'] },
|
|
3637
3875
|
range_max: { type: ['number', 'null'] },
|
|
@@ -3649,12 +3887,14 @@ export const SCHEMAS = {
|
|
|
3649
3887
|
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
|
|
3650
3888
|
icon_type: {
|
|
3651
3889
|
type: ['string', 'null'],
|
|
3652
|
-
enum: ['none', 'number-2', 'dollar1', 'cny1', 'formula-2', 'date-2', 'sum', '
|
|
3890
|
+
enum: ['none', 'number-2', 'dollar1', 'cny1', 'formula-2', 'date-2', 'sum', 'text2', null]
|
|
3653
3891
|
},
|
|
3892
|
+
start_date: { type: ['string', 'null'] },
|
|
3893
|
+
end_date: { type: ['string', 'null'] },
|
|
3654
3894
|
changeable: { type: ['object', 'null'], additionalProperties: { type: 'boolean' } },
|
|
3655
3895
|
enable_auto_position: { type: 'boolean' },
|
|
3656
|
-
max_size: { type: ['number', 'null'],
|
|
3657
|
-
max_file_quantity: { type: ['integer', 'null'], minimum: 1 },
|
|
3896
|
+
max_size: { type: ['number', 'null'], minimum: 0.01, maximum: 500, multipleOf: 0.01 },
|
|
3897
|
+
max_file_quantity: { type: ['integer', 'null'], minimum: 1, maximum: 15 },
|
|
3658
3898
|
media_type: {
|
|
3659
3899
|
type: ['object', 'null'],
|
|
3660
3900
|
additionalProperties: false,
|
|
@@ -3666,18 +3906,16 @@ export const SCHEMAS = {
|
|
|
3666
3906
|
then: { required: ['value'], properties: { value: { minItems: 1 } } }
|
|
3667
3907
|
},
|
|
3668
3908
|
mobile_camera_only: { type: 'boolean' },
|
|
3669
|
-
minimum_ratings_display_text: { type: ['string', 'null'] },
|
|
3670
|
-
maximum_ratings_display_text: { type: ['string', 'null'] },
|
|
3909
|
+
minimum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
3910
|
+
maximum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
3911
|
+
rating_type: { type: ['string', 'null'] },
|
|
3671
3912
|
include_second: { type: 'boolean' },
|
|
3672
3913
|
max_duration: { type: ['integer', 'null'], minimum: 1, maximum: 5 },
|
|
3673
|
-
levels: { type: ['integer', 'null'], minimum: 2 },
|
|
3674
|
-
choice_filterable: { type: 'boolean' },
|
|
3914
|
+
levels: { type: ['integer', 'null'], minimum: 2, maximum: 4 },
|
|
3675
3915
|
horizontal_on_mobile: { type: 'boolean' },
|
|
3676
3916
|
likert_choice_style: { type: ['string', 'null'], enum: ['single', 'multiple', null] },
|
|
3677
|
-
advanced_feature: { type: 'boolean' },
|
|
3678
3917
|
unit: { type: ['string', 'null'], maxLength: 2 },
|
|
3679
|
-
|
|
3680
|
-
columns_on_mobile: { type: ['integer', 'null'], minimum: 1 },
|
|
3918
|
+
columns_on_mobile: { type: ['integer', 'null'], minimum: 1, maximum: 2 },
|
|
3681
3919
|
formula: { type: ['string', 'null'] },
|
|
3682
3920
|
formula_display: { type: ['string', 'null'] },
|
|
3683
3921
|
result_display_type: { type: ['string', 'null'], enum: ['string', 'numeric', 'datetime', 'boolean', null] },
|
|
@@ -3685,15 +3923,53 @@ export const SCHEMAS = {
|
|
|
3685
3923
|
allow_multiple_items: { type: 'boolean' },
|
|
3686
3924
|
item_allow_multiple_reservations: { type: 'boolean' },
|
|
3687
3925
|
allow_multiple_number: { type: 'boolean' },
|
|
3688
|
-
use_daily_time_range: { type: 'boolean' },
|
|
3689
3926
|
associated_form_token: { type: 'string' },
|
|
3690
3927
|
associated_field_api_codes: { type: 'array', minItems: 1, maxItems: 4, items: { type: 'string' } },
|
|
3691
3928
|
privacy_safe: { type: 'boolean' },
|
|
3692
|
-
|
|
3693
|
-
|
|
3929
|
+
scope_conditions: {
|
|
3930
|
+
type: 'array',
|
|
3931
|
+
items: {
|
|
3932
|
+
type: 'object',
|
|
3933
|
+
additionalProperties: false,
|
|
3934
|
+
required: ['trigger', 'operator'],
|
|
3935
|
+
properties: {
|
|
3936
|
+
trigger: { type: 'string' },
|
|
3937
|
+
operator: {
|
|
3938
|
+
type: 'string',
|
|
3939
|
+
enum: [
|
|
3940
|
+
'equal',
|
|
3941
|
+
'not_equal',
|
|
3942
|
+
'eq',
|
|
3943
|
+
'ne',
|
|
3944
|
+
'any_in',
|
|
3945
|
+
'none_in',
|
|
3946
|
+
'between',
|
|
3947
|
+
'not_between',
|
|
3948
|
+
'gte',
|
|
3949
|
+
'gt',
|
|
3950
|
+
'lte',
|
|
3951
|
+
'lt',
|
|
3952
|
+
'null',
|
|
3953
|
+
'not_null',
|
|
3954
|
+
'like',
|
|
3955
|
+
'and',
|
|
3956
|
+
'or',
|
|
3957
|
+
'not_like',
|
|
3958
|
+
'match'
|
|
3959
|
+
]
|
|
3960
|
+
},
|
|
3961
|
+
value: {},
|
|
3962
|
+
group_index: { type: 'integer' },
|
|
3963
|
+
scope_attr: { type: ['string', 'null'], enum: ['date_time', 'api_code', null] }
|
|
3964
|
+
}
|
|
3965
|
+
}
|
|
3966
|
+
},
|
|
3694
3967
|
related_form_token: { type: 'string' },
|
|
3695
3968
|
paired: { type: 'boolean' },
|
|
3696
3969
|
related_label: { type: ['string', 'null'] },
|
|
3970
|
+
relation_field_api_code: { type: ['string', 'null'] },
|
|
3971
|
+
source_field_api_code: { type: ['string', 'null'] },
|
|
3972
|
+
aggregation: { type: ['string', 'null'], enum: ['sum', 'count', 'avg', 'max', 'min', null] },
|
|
3697
3973
|
show_split_line: { type: 'boolean' },
|
|
3698
3974
|
show_part_description: { type: 'boolean' },
|
|
3699
3975
|
disable_previous_page: { type: 'boolean' },
|
|
@@ -3701,8 +3977,6 @@ export const SCHEMAS = {
|
|
|
3701
3977
|
next_page_text: { type: ['string', 'null'] },
|
|
3702
3978
|
count_down: { type: ['integer', 'null'], minimum: 0 },
|
|
3703
3979
|
buttons_number: { type: ['integer', 'null'], minimum: 1 },
|
|
3704
|
-
fixed_to_bottom: { type: 'boolean' },
|
|
3705
|
-
widget_max_images_number: { type: ['integer', 'null'], minimum: 0 },
|
|
3706
3980
|
phones: {
|
|
3707
3981
|
type: 'array',
|
|
3708
3982
|
items: {
|
|
@@ -3715,15 +3989,8 @@ export const SCHEMAS = {
|
|
|
3715
3989
|
nav_address: { type: ['string', 'null'] },
|
|
3716
3990
|
longitude: { type: ['number', 'null'] },
|
|
3717
3991
|
latitude: { type: ['number', 'null'] },
|
|
3718
|
-
value: { type: ['string', 'null'] },
|
|
3719
|
-
localizable_on_mobile: { type: 'boolean' },
|
|
3720
|
-
lines: { type: ['integer', 'null'], minimum: 1 },
|
|
3721
3992
|
entries_init_number: { type: ['integer', 'null'], minimum: 0 },
|
|
3722
3993
|
entries_number_visible: { type: 'boolean' },
|
|
3723
|
-
marquee_data_type: { type: ['string', 'null'], enum: ['fake', 'real', null] },
|
|
3724
|
-
start_date: { type: ['string', 'null'] },
|
|
3725
|
-
end_date: { type: ['string', 'null'] },
|
|
3726
|
-
rating_type: { type: ['string', 'null'] },
|
|
3727
3994
|
highlight_color: { type: ['string', 'null'] }
|
|
3728
3995
|
},
|
|
3729
3996
|
allOf: [
|
|
@@ -3759,10 +4026,25 @@ export const SCHEMAS = {
|
|
|
3759
4026
|
unique: { type: 'boolean' },
|
|
3760
4027
|
predefined_value: { type: ['string', 'null'] },
|
|
3761
4028
|
placeholder: { type: ['string', 'null'] },
|
|
4029
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0, maximum: 300 },
|
|
4030
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0, maximum: 300 },
|
|
3762
4031
|
scannable: { type: 'boolean' },
|
|
3763
4032
|
access_control_list_limit: { type: 'boolean' },
|
|
3764
4033
|
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
3765
4034
|
acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
|
|
4035
|
+
format_validation_type: {
|
|
4036
|
+
type: ['string', 'null'],
|
|
4037
|
+
enum: [
|
|
4038
|
+
'chinese_only',
|
|
4039
|
+
'custom_regex_format',
|
|
4040
|
+
'english_only',
|
|
4041
|
+
'id_card_format',
|
|
4042
|
+
'plate_number_format',
|
|
4043
|
+
'qq_number_format',
|
|
4044
|
+
null
|
|
4045
|
+
]
|
|
4046
|
+
},
|
|
4047
|
+
custom_validation_regex: { type: ['string', 'null'], maxLength: 1215 },
|
|
3766
4048
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
3767
4049
|
start_new_row: { type: 'boolean' },
|
|
3768
4050
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -3799,11 +4081,8 @@ export const SCHEMAS = {
|
|
|
3799
4081
|
range_min: { type: ['number', 'null'] },
|
|
3800
4082
|
range_max: { type: ['number', 'null'] },
|
|
3801
4083
|
precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
|
|
3802
|
-
display_precision: { type: ['integer', 'null'], minimum: 0 },
|
|
3803
4084
|
display_as_percentage: { type: 'boolean' },
|
|
3804
4085
|
thousands_separator: { type: 'boolean' },
|
|
3805
|
-
currency_symbol: { type: ['string', 'null'] },
|
|
3806
|
-
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
|
|
3807
4086
|
icon_type: { type: ['string', 'null'], enum: ['none', 'number-2', 'dollar1', 'cny1', null] },
|
|
3808
4087
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
3809
4088
|
start_new_row: { type: 'boolean' },
|
|
@@ -3861,11 +4140,48 @@ export const SCHEMAS = {
|
|
|
3861
4140
|
position: { type: 'integer', minimum: 0 },
|
|
3862
4141
|
unique: { type: 'boolean' },
|
|
3863
4142
|
display_field_api_codes: { type: 'array', maxItems: 20, items: { type: 'string' } },
|
|
4143
|
+
masked_display_field_api_codes: { type: 'array', maxItems: 20, items: { type: 'string' } },
|
|
3864
4144
|
associated_form_token: { type: 'string' },
|
|
3865
4145
|
associated_field_api_codes: { type: 'array', minItems: 1, maxItems: 4, items: { type: 'string' } },
|
|
3866
4146
|
privacy_safe: { type: 'boolean' },
|
|
3867
|
-
|
|
3868
|
-
|
|
4147
|
+
scope_conditions: {
|
|
4148
|
+
type: 'array',
|
|
4149
|
+
items: {
|
|
4150
|
+
type: 'object',
|
|
4151
|
+
additionalProperties: false,
|
|
4152
|
+
required: ['trigger', 'operator'],
|
|
4153
|
+
properties: {
|
|
4154
|
+
trigger: { type: 'string' },
|
|
4155
|
+
operator: {
|
|
4156
|
+
type: 'string',
|
|
4157
|
+
enum: [
|
|
4158
|
+
'equal',
|
|
4159
|
+
'not_equal',
|
|
4160
|
+
'eq',
|
|
4161
|
+
'ne',
|
|
4162
|
+
'any_in',
|
|
4163
|
+
'none_in',
|
|
4164
|
+
'between',
|
|
4165
|
+
'not_between',
|
|
4166
|
+
'gte',
|
|
4167
|
+
'gt',
|
|
4168
|
+
'lte',
|
|
4169
|
+
'lt',
|
|
4170
|
+
'null',
|
|
4171
|
+
'not_null',
|
|
4172
|
+
'like',
|
|
4173
|
+
'and',
|
|
4174
|
+
'or',
|
|
4175
|
+
'not_like',
|
|
4176
|
+
'match'
|
|
4177
|
+
]
|
|
4178
|
+
},
|
|
4179
|
+
value: {},
|
|
4180
|
+
group_index: { type: 'integer', minimum: -2147483648, maximum: 2147483647 },
|
|
4181
|
+
scope_attr: { type: ['string', 'null'], enum: ['date_time', 'api_code', null] }
|
|
4182
|
+
}
|
|
4183
|
+
}
|
|
4184
|
+
},
|
|
3869
4185
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
3870
4186
|
start_new_row: { type: 'boolean' }
|
|
3871
4187
|
}
|
|
@@ -3877,13 +4193,7 @@ export const SCHEMAS = {
|
|
|
3877
4193
|
then: {
|
|
3878
4194
|
properties: {
|
|
3879
4195
|
fields: {
|
|
3880
|
-
items: {
|
|
3881
|
-
properties: {
|
|
3882
|
-
type: { not: { enum: ['PageBreak', 'MultipleBlanksField', 'WidgetContact', 'WidgetVideo'] } },
|
|
3883
|
-
grids_to_occupy: { type: 'null' },
|
|
3884
|
-
start_new_row: { const: false }
|
|
3885
|
-
}
|
|
3886
|
-
}
|
|
4196
|
+
items: { properties: { type: { not: { enum: ['PageBreak', 'WidgetContact', 'WidgetVideo'] } } } }
|
|
3887
4197
|
}
|
|
3888
4198
|
}
|
|
3889
4199
|
}
|
|
@@ -3899,6 +4209,10 @@ export const SCHEMAS = {
|
|
|
3899
4209
|
{
|
|
3900
4210
|
if: { properties: { scene: { enum: ['exam', 'evaluation'] } }, required: ['scene'] },
|
|
3901
4211
|
else: { properties: { fields: { items: { $ref: 'FieldInput' } } } }
|
|
4212
|
+
},
|
|
4213
|
+
{
|
|
4214
|
+
if: { properties: { scene: { enum: ['exam', 'quickpay'] } }, required: ['scene'] },
|
|
4215
|
+
then: { properties: { fields: { items: { properties: { type: { not: { const: 'MultipleBlanksField' } } } } } } }
|
|
3902
4216
|
}
|
|
3903
4217
|
]
|
|
3904
4218
|
},
|
|
@@ -3983,6 +4297,7 @@ export const SCHEMAS = {
|
|
|
3983
4297
|
retry: { type: 'boolean' }
|
|
3984
4298
|
}
|
|
3985
4299
|
},
|
|
4300
|
+
FormLayoutUpdate: { type: 'string', enum: ['classic', 'card'] },
|
|
3986
4301
|
FormManuallyCloseRuleInput: {
|
|
3987
4302
|
type: 'object',
|
|
3988
4303
|
required: ['open'],
|
|
@@ -4006,20 +4321,18 @@ export const SCHEMAS = {
|
|
|
4006
4321
|
show_submit_again: { type: 'boolean' },
|
|
4007
4322
|
hide_login_and_signup: { type: 'boolean' },
|
|
4008
4323
|
show_close_count_down: { type: 'boolean' },
|
|
4009
|
-
|
|
4324
|
+
show_form_when_unavailable: { type: 'boolean' },
|
|
4010
4325
|
show_field_number: { type: 'boolean' },
|
|
4326
|
+
show_progress: { type: 'boolean' },
|
|
4011
4327
|
password_required: { type: 'boolean' },
|
|
4012
4328
|
access_password: { type: 'string' },
|
|
4013
4329
|
allowed_audience: {
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
'weixin_followers_only',
|
|
4021
|
-
'submitter_only',
|
|
4022
|
-
'gd_user_only'
|
|
4330
|
+
anyOf: [
|
|
4331
|
+
{ type: 'string', enum: ['public', 'gd_user_only'] },
|
|
4332
|
+
{
|
|
4333
|
+
type: 'string',
|
|
4334
|
+
enum: ['internal', 'private', 'weixin_qiye_followers_only', 'weixin_followers_only', 'submitter_only']
|
|
4335
|
+
}
|
|
4023
4336
|
]
|
|
4024
4337
|
},
|
|
4025
4338
|
weixin_limited: { type: 'boolean' },
|
|
@@ -4037,7 +4350,7 @@ export const SCHEMAS = {
|
|
|
4037
4350
|
},
|
|
4038
4351
|
by_entries_close_rule: {
|
|
4039
4352
|
type: 'object',
|
|
4040
|
-
properties: { limit: { type: 'integer', maximum: 2147483647 } },
|
|
4353
|
+
properties: { limit: { type: 'integer', minimum: 0, maximum: 2147483647 } },
|
|
4041
4354
|
additionalProperties: false
|
|
4042
4355
|
},
|
|
4043
4356
|
gen_code_enabled: { type: 'boolean' },
|
|
@@ -4045,7 +4358,8 @@ export const SCHEMAS = {
|
|
|
4045
4358
|
gen_code_format: { type: 'string', enum: ['d8', 'd12', 'custom'] },
|
|
4046
4359
|
gen_code_rules: { type: 'array', items: { $ref: 'GenCodeRuleInput' } },
|
|
4047
4360
|
fill_frequency: { $ref: 'FormFillFrequencyInput' },
|
|
4048
|
-
wording: { $ref: 'FormWordingInput' }
|
|
4361
|
+
wording: { $ref: 'FormWordingInput' },
|
|
4362
|
+
weixin_share: { $ref: 'WeixinShareInput' }
|
|
4049
4363
|
},
|
|
4050
4364
|
additionalProperties: false
|
|
4051
4365
|
},
|
|
@@ -4068,7 +4382,7 @@ export const SCHEMAS = {
|
|
|
4068
4382
|
show_submit_again: { type: 'boolean' },
|
|
4069
4383
|
hide_login_and_signup: { type: 'boolean' },
|
|
4070
4384
|
show_close_count_down: { type: 'boolean' },
|
|
4071
|
-
|
|
4385
|
+
show_form_when_unavailable: { type: 'boolean' },
|
|
4072
4386
|
manually_close_rule: {
|
|
4073
4387
|
type: ['object', 'null'],
|
|
4074
4388
|
properties: { closed: { type: 'boolean' } },
|
|
@@ -4081,7 +4395,7 @@ export const SCHEMAS = {
|
|
|
4081
4395
|
},
|
|
4082
4396
|
by_entries_close_rule: {
|
|
4083
4397
|
type: ['object', 'null'],
|
|
4084
|
-
properties: { enabled: { type: 'boolean' }, limit: { type: 'integer', maximum: 2147483647 } },
|
|
4398
|
+
properties: { enabled: { type: 'boolean' }, limit: { type: 'integer', minimum: 0, maximum: 2147483647 } },
|
|
4085
4399
|
additionalProperties: false
|
|
4086
4400
|
},
|
|
4087
4401
|
fill_frequency: {
|
|
@@ -4103,15 +4417,12 @@ export const SCHEMAS = {
|
|
|
4103
4417
|
password_required: { type: 'boolean' },
|
|
4104
4418
|
access_password: { type: 'string' },
|
|
4105
4419
|
allowed_audience: {
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
'weixin_followers_only',
|
|
4113
|
-
'submitter_only',
|
|
4114
|
-
'gd_user_only'
|
|
4420
|
+
anyOf: [
|
|
4421
|
+
{ type: 'string', enum: ['public', 'gd_user_only'] },
|
|
4422
|
+
{
|
|
4423
|
+
type: 'string',
|
|
4424
|
+
enum: ['internal', 'private', 'weixin_qiye_followers_only', 'weixin_followers_only', 'submitter_only']
|
|
4425
|
+
}
|
|
4115
4426
|
]
|
|
4116
4427
|
},
|
|
4117
4428
|
weixin_limited: { type: 'boolean' },
|
|
@@ -4146,6 +4457,7 @@ export const SCHEMAS = {
|
|
|
4146
4457
|
FormUpdateInput: {
|
|
4147
4458
|
type: 'object',
|
|
4148
4459
|
properties: {
|
|
4460
|
+
layout: { $ref: 'FormLayoutUpdate' },
|
|
4149
4461
|
name: { type: 'string' },
|
|
4150
4462
|
description: { type: ['string', 'null'] },
|
|
4151
4463
|
setting: { $ref: 'FormSettingWriteInput' },
|
|
@@ -4164,7 +4476,8 @@ export const SCHEMAS = {
|
|
|
4164
4476
|
},
|
|
4165
4477
|
additionalProperties: false
|
|
4166
4478
|
},
|
|
4167
|
-
field_rules: { $ref: 'FieldRuleOperations' }
|
|
4479
|
+
field_rules: { $ref: 'FieldRuleOperations' },
|
|
4480
|
+
redirect_rules: { $ref: 'RedirectRuleOperations' }
|
|
4168
4481
|
},
|
|
4169
4482
|
additionalProperties: false
|
|
4170
4483
|
},
|
|
@@ -4275,7 +4588,7 @@ export const SCHEMAS = {
|
|
|
4275
4588
|
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
|
|
4276
4589
|
icon_type: {
|
|
4277
4590
|
type: ['string', 'null'],
|
|
4278
|
-
enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', '
|
|
4591
|
+
enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', 'text2', null]
|
|
4279
4592
|
},
|
|
4280
4593
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4281
4594
|
start_new_row: { type: 'boolean' }
|
|
@@ -4306,14 +4619,11 @@ export const SCHEMAS = {
|
|
|
4306
4619
|
result_display_type: { type: ['string', 'null'], enum: ['string', 'numeric', 'datetime', 'boolean', null] },
|
|
4307
4620
|
result_display_as_date: { type: 'boolean' },
|
|
4308
4621
|
precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
|
|
4309
|
-
display_precision: { type: ['integer', 'null'], minimum: 0 },
|
|
4310
4622
|
display_as_percentage: { type: 'boolean' },
|
|
4311
4623
|
thousands_separator: { type: 'boolean' },
|
|
4312
|
-
currency_symbol: { type: ['string', 'null'] },
|
|
4313
|
-
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
|
|
4314
4624
|
icon_type: {
|
|
4315
4625
|
type: ['string', 'null'],
|
|
4316
|
-
enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', '
|
|
4626
|
+
enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', 'text2', null]
|
|
4317
4627
|
},
|
|
4318
4628
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4319
4629
|
start_new_row: { type: 'boolean' }
|
|
@@ -4365,8 +4675,7 @@ export const SCHEMAS = {
|
|
|
4365
4675
|
position: { type: 'integer', minimum: 0 },
|
|
4366
4676
|
goods_items: { type: 'array', minItems: 1, items: { $ref: 'GoodsItemInput' } },
|
|
4367
4677
|
unit: { type: ['string', 'null'], maxLength: 2 },
|
|
4368
|
-
|
|
4369
|
-
columns_on_mobile: { type: ['integer', 'null'], minimum: 1 }
|
|
4678
|
+
columns_on_mobile: { type: ['integer', 'null'], minimum: 1, maximum: 2 }
|
|
4370
4679
|
}
|
|
4371
4680
|
},
|
|
4372
4681
|
GoodsItemInput: {
|
|
@@ -4549,11 +4858,14 @@ export const SCHEMAS = {
|
|
|
4549
4858
|
required: { type: 'boolean' },
|
|
4550
4859
|
position: { type: 'integer', minimum: 0 },
|
|
4551
4860
|
other_choice_required: { type: 'boolean' },
|
|
4552
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
4861
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
4553
4862
|
calculable: { type: 'boolean' },
|
|
4554
4863
|
choices_layout: { type: ['string', 'null'] },
|
|
4555
4864
|
random_choices: { type: 'boolean' },
|
|
4556
4865
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
4866
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
4867
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
4868
|
+
hide_quota: { type: 'boolean' },
|
|
4557
4869
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4558
4870
|
start_new_row: { type: 'boolean' }
|
|
4559
4871
|
},
|
|
@@ -4596,13 +4908,18 @@ export const SCHEMAS = {
|
|
|
4596
4908
|
private: { type: 'boolean' },
|
|
4597
4909
|
required: { type: 'boolean' },
|
|
4598
4910
|
position: { type: 'integer', minimum: 0 },
|
|
4599
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
|
|
4911
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' }, maxItems: 1000 },
|
|
4600
4912
|
calculable: { type: 'boolean' },
|
|
4601
4913
|
choices_layout: { type: ['string', 'null'] },
|
|
4602
4914
|
random_choices: { type: 'boolean' },
|
|
4603
4915
|
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
4604
4916
|
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
4605
|
-
hide_choice_when_quota_empty: { type: 'boolean' }
|
|
4917
|
+
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
4918
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
4919
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
4920
|
+
hide_quota: { type: 'boolean' },
|
|
4921
|
+
with_exclusive_choice: { type: 'boolean' },
|
|
4922
|
+
exclusive_choice_api_codes: { type: 'array', items: { type: 'string' } }
|
|
4606
4923
|
},
|
|
4607
4924
|
allOf: [
|
|
4608
4925
|
{
|
|
@@ -4622,9 +4939,11 @@ export const SCHEMAS = {
|
|
|
4622
4939
|
value: { type: 'string' },
|
|
4623
4940
|
name: { type: 'string' },
|
|
4624
4941
|
api_code: { type: 'string' },
|
|
4625
|
-
quota: { type: 'integer', minimum:
|
|
4942
|
+
quota: { type: 'integer', minimum: 0 },
|
|
4626
4943
|
operand_value: { type: 'number' },
|
|
4627
4944
|
selected: { type: 'boolean' },
|
|
4945
|
+
description_text: { type: ['string', 'null'] },
|
|
4946
|
+
description_url: { type: ['string', 'null'] },
|
|
4628
4947
|
image_url: { type: 'string' },
|
|
4629
4948
|
image_base64: { type: 'string' },
|
|
4630
4949
|
attachment_id: { type: 'string' }
|
|
@@ -4642,13 +4961,16 @@ export const SCHEMAS = {
|
|
|
4642
4961
|
private: { type: 'boolean' },
|
|
4643
4962
|
required: { type: 'boolean' },
|
|
4644
4963
|
position: { type: 'integer', minimum: 0 },
|
|
4645
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
|
|
4964
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' }, maxItems: 1000 },
|
|
4646
4965
|
calculable: { type: 'boolean' },
|
|
4647
4966
|
choices_layout: { type: ['string', 'null'] },
|
|
4648
4967
|
random_choices: { type: 'boolean' },
|
|
4649
4968
|
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
4650
4969
|
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
4651
4970
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
4971
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
4972
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
4973
|
+
hide_quota: { type: 'boolean' },
|
|
4652
4974
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
4653
4975
|
answer_setting_mode: { type: 'string', enum: ['absolute', 'partial_absolute', 'relative'] },
|
|
4654
4976
|
answer_explanation: { type: 'string' }
|
|
@@ -4694,11 +5016,14 @@ export const SCHEMAS = {
|
|
|
4694
5016
|
private: { type: 'boolean' },
|
|
4695
5017
|
required: { type: 'boolean' },
|
|
4696
5018
|
position: { type: 'integer', minimum: 0 },
|
|
4697
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
|
|
5019
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' }, maxItems: 1000 },
|
|
4698
5020
|
calculable: { type: 'boolean' },
|
|
4699
5021
|
choices_layout: { type: ['string', 'null'] },
|
|
4700
5022
|
random_choices: { type: 'boolean' },
|
|
4701
|
-
hide_choice_when_quota_empty: { type: 'boolean' }
|
|
5023
|
+
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
5024
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
5025
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
5026
|
+
hide_quota: { type: 'boolean' }
|
|
4702
5027
|
},
|
|
4703
5028
|
allOf: [
|
|
4704
5029
|
{
|
|
@@ -4719,11 +5044,14 @@ export const SCHEMAS = {
|
|
|
4719
5044
|
private: { type: 'boolean' },
|
|
4720
5045
|
required: { type: 'boolean' },
|
|
4721
5046
|
position: { type: 'integer', minimum: 0 },
|
|
4722
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
|
|
5047
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' }, maxItems: 1000 },
|
|
4723
5048
|
calculable: { type: 'boolean' },
|
|
4724
5049
|
choices_layout: { type: ['string', 'null'] },
|
|
4725
5050
|
random_choices: { type: 'boolean' },
|
|
4726
5051
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
5052
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
5053
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
5054
|
+
hide_quota: { type: 'boolean' },
|
|
4727
5055
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
4728
5056
|
answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
|
|
4729
5057
|
answer_explanation: { type: 'string' }
|
|
@@ -4756,7 +5084,7 @@ export const SCHEMAS = {
|
|
|
4756
5084
|
private: { type: 'boolean' },
|
|
4757
5085
|
required: { type: 'boolean' },
|
|
4758
5086
|
position: { type: 'integer', minimum: 0 },
|
|
4759
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
5087
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
4760
5088
|
statements: { type: 'array', minItems: 1, items: { $ref: 'StatementInput' } },
|
|
4761
5089
|
horizontal_on_mobile: { type: 'boolean' },
|
|
4762
5090
|
likert_choice_style: { type: ['string', 'null'], enum: ['single', 'multiple', null] },
|
|
@@ -4811,6 +5139,56 @@ export const SCHEMAS = {
|
|
|
4811
5139
|
start_new_row: { type: 'boolean' }
|
|
4812
5140
|
}
|
|
4813
5141
|
},
|
|
5142
|
+
LookupFieldColumnInput: {
|
|
5143
|
+
type: 'object',
|
|
5144
|
+
additionalProperties: false,
|
|
5145
|
+
required: ['type', 'label'],
|
|
5146
|
+
properties: {
|
|
5147
|
+
type: { const: 'LookupField' },
|
|
5148
|
+
label: { type: ['string', 'null'] },
|
|
5149
|
+
cid: { type: 'string' },
|
|
5150
|
+
notes: { type: ['string', 'null'] },
|
|
5151
|
+
private: { type: 'boolean' },
|
|
5152
|
+
position: { type: 'integer', minimum: 0 },
|
|
5153
|
+
relation_field_api_code: { type: ['string', 'null'] },
|
|
5154
|
+
source_field_api_code: { type: ['string', 'null'] },
|
|
5155
|
+
scope_conditions: {
|
|
5156
|
+
type: 'array',
|
|
5157
|
+
items: {
|
|
5158
|
+
type: 'object',
|
|
5159
|
+
additionalProperties: false,
|
|
5160
|
+
required: ['trigger', 'operator'],
|
|
5161
|
+
properties: {
|
|
5162
|
+
trigger: { type: 'string' },
|
|
5163
|
+
operator: {
|
|
5164
|
+
type: 'string',
|
|
5165
|
+
enum: [
|
|
5166
|
+
'eq',
|
|
5167
|
+
'ne',
|
|
5168
|
+
'any_in',
|
|
5169
|
+
'none_in',
|
|
5170
|
+
'between',
|
|
5171
|
+
'not_between',
|
|
5172
|
+
'gte',
|
|
5173
|
+
'gt',
|
|
5174
|
+
'lte',
|
|
5175
|
+
'lt',
|
|
5176
|
+
'null',
|
|
5177
|
+
'not_null',
|
|
5178
|
+
'like',
|
|
5179
|
+
'and',
|
|
5180
|
+
'or',
|
|
5181
|
+
'not_like',
|
|
5182
|
+
'match'
|
|
5183
|
+
]
|
|
5184
|
+
},
|
|
5185
|
+
value: {},
|
|
5186
|
+
group_index: { type: 'integer' }
|
|
5187
|
+
}
|
|
5188
|
+
}
|
|
5189
|
+
}
|
|
5190
|
+
}
|
|
5191
|
+
},
|
|
4814
5192
|
MatrixFieldInput: {
|
|
4815
5193
|
type: 'object',
|
|
4816
5194
|
additionalProperties: false,
|
|
@@ -4825,8 +5203,7 @@ export const SCHEMAS = {
|
|
|
4825
5203
|
position: { type: 'integer', minimum: 0 },
|
|
4826
5204
|
dimensions: { type: 'array', minItems: 1, items: { $ref: 'DimensionInput' } },
|
|
4827
5205
|
statements: { type: 'array', minItems: 1, items: { $ref: 'StatementInput' } },
|
|
4828
|
-
horizontal_on_mobile: { type: 'boolean' }
|
|
4829
|
-
advanced_feature: { type: 'boolean' }
|
|
5206
|
+
horizontal_on_mobile: { type: 'boolean' }
|
|
4830
5207
|
}
|
|
4831
5208
|
},
|
|
4832
5209
|
MatrixScaleFieldInput: {
|
|
@@ -4841,7 +5218,7 @@ export const SCHEMAS = {
|
|
|
4841
5218
|
private: { type: 'boolean' },
|
|
4842
5219
|
required: { type: 'boolean' },
|
|
4843
5220
|
position: { type: 'integer', minimum: 0 },
|
|
4844
|
-
rating_max: { type: 'integer', minimum:
|
|
5221
|
+
rating_max: { type: 'integer', minimum: 3, maximum: 10 },
|
|
4845
5222
|
statements: { type: 'array', minItems: 1, items: { $ref: 'StatementInput' } },
|
|
4846
5223
|
horizontal_on_mobile: { type: 'boolean' }
|
|
4847
5224
|
}
|
|
@@ -5005,13 +5382,16 @@ export const SCHEMAS = {
|
|
|
5005
5382
|
required: { type: 'boolean' },
|
|
5006
5383
|
position: { type: 'integer', minimum: 0 },
|
|
5007
5384
|
other_choice_required: { type: 'boolean' },
|
|
5008
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
5385
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
5009
5386
|
calculable: { type: 'boolean' },
|
|
5010
5387
|
choices_layout: { type: ['string', 'null'] },
|
|
5011
5388
|
random_choices: { type: 'boolean' },
|
|
5012
5389
|
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
5013
5390
|
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
5014
5391
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
5392
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
5393
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
5394
|
+
hide_quota: { type: 'boolean' },
|
|
5015
5395
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5016
5396
|
start_new_row: { type: 'boolean' },
|
|
5017
5397
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -5047,6 +5427,22 @@ export const SCHEMAS = {
|
|
|
5047
5427
|
}
|
|
5048
5428
|
]
|
|
5049
5429
|
},
|
|
5430
|
+
MultipleBlanksFieldInput: {
|
|
5431
|
+
type: 'object',
|
|
5432
|
+
additionalProperties: false,
|
|
5433
|
+
required: ['type', 'label', 'placeholder'],
|
|
5434
|
+
properties: {
|
|
5435
|
+
type: { const: 'MultipleBlanksField' },
|
|
5436
|
+
label: { type: ['string', 'null'] },
|
|
5437
|
+
cid: { type: 'string' },
|
|
5438
|
+
notes: { type: ['string', 'null'] },
|
|
5439
|
+
private: { type: 'boolean' },
|
|
5440
|
+
required: { type: 'boolean' },
|
|
5441
|
+
position: { type: 'integer', minimum: 0 },
|
|
5442
|
+
placeholder: { type: 'string' },
|
|
5443
|
+
dimensions: { type: 'array', minItems: 1, maxItems: 30, items: { $ref: 'BlankInput' } }
|
|
5444
|
+
}
|
|
5445
|
+
},
|
|
5050
5446
|
NameFieldInput: {
|
|
5051
5447
|
type: 'object',
|
|
5052
5448
|
additionalProperties: false,
|
|
@@ -5060,9 +5456,15 @@ export const SCHEMAS = {
|
|
|
5060
5456
|
required: { type: 'boolean' },
|
|
5061
5457
|
position: { type: 'integer', minimum: 0 },
|
|
5062
5458
|
unique: { type: 'boolean' },
|
|
5459
|
+
placeholder: { type: ['string', 'null'] },
|
|
5063
5460
|
access_control_list_limit: { type: 'boolean' },
|
|
5064
5461
|
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
5065
5462
|
acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
|
|
5463
|
+
format_validation_type: {
|
|
5464
|
+
type: ['string', 'null'],
|
|
5465
|
+
enum: ['chinese_only', 'custom_regex_format', 'english_only', null]
|
|
5466
|
+
},
|
|
5467
|
+
custom_validation_regex: { type: ['string', 'null'], maxLength: 1215 },
|
|
5066
5468
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5067
5469
|
start_new_row: { type: 'boolean' }
|
|
5068
5470
|
}
|
|
@@ -5141,8 +5543,8 @@ export const SCHEMAS = {
|
|
|
5141
5543
|
private: { type: 'boolean' },
|
|
5142
5544
|
required: { type: 'boolean' },
|
|
5143
5545
|
position: { type: 'integer', minimum: 0 },
|
|
5144
|
-
minimum_ratings_display_text: { type: ['string', 'null'] },
|
|
5145
|
-
maximum_ratings_display_text: { type: ['string', 'null'] }
|
|
5546
|
+
minimum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
5547
|
+
maximum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 }
|
|
5146
5548
|
}
|
|
5147
5549
|
},
|
|
5148
5550
|
NpsInput: {
|
|
@@ -5157,8 +5559,8 @@ export const SCHEMAS = {
|
|
|
5157
5559
|
private: { type: 'boolean' },
|
|
5158
5560
|
required: { type: 'boolean' },
|
|
5159
5561
|
position: { type: 'integer', minimum: 0 },
|
|
5160
|
-
minimum_ratings_display_text: { type: ['string', 'null'] },
|
|
5161
|
-
maximum_ratings_display_text: { type: ['string', 'null'] },
|
|
5562
|
+
minimum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
5563
|
+
maximum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
5162
5564
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
5163
5565
|
answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
|
|
5164
5566
|
answer_explanation: { type: 'string' }
|
|
@@ -5225,11 +5627,8 @@ export const SCHEMAS = {
|
|
|
5225
5627
|
range_min: { type: ['number', 'null'] },
|
|
5226
5628
|
range_max: { type: ['number', 'null'] },
|
|
5227
5629
|
precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
|
|
5228
|
-
display_precision: { type: ['integer', 'null'], minimum: 0 },
|
|
5229
5630
|
display_as_percentage: { type: 'boolean' },
|
|
5230
5631
|
thousands_separator: { type: 'boolean' },
|
|
5231
|
-
currency_symbol: { type: ['string', 'null'] },
|
|
5232
|
-
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
|
|
5233
5632
|
icon_type: { type: ['string', 'null'], enum: ['none', 'number-2', 'dollar1', 'cny1', null] },
|
|
5234
5633
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5235
5634
|
start_new_row: { type: 'boolean' }
|
|
@@ -5243,6 +5642,20 @@ export const SCHEMAS = {
|
|
|
5243
5642
|
}
|
|
5244
5643
|
]
|
|
5245
5644
|
},
|
|
5645
|
+
OpenResultInput: {
|
|
5646
|
+
type: 'object',
|
|
5647
|
+
properties: {
|
|
5648
|
+
title: { type: 'string', maxLength: 20 },
|
|
5649
|
+
enabled: { type: 'boolean' },
|
|
5650
|
+
allowed_audience: { type: 'string', enum: ['public', 'private'] },
|
|
5651
|
+
password_required: { type: 'boolean' },
|
|
5652
|
+
access_password: { type: 'string' },
|
|
5653
|
+
readable_field_api_codes: { type: 'array', items: { type: 'string' } },
|
|
5654
|
+
report_field_api_codes: { type: 'array', items: { type: 'string' } },
|
|
5655
|
+
privacy_protected_field_api_codes: { type: 'array', items: { type: 'string' } }
|
|
5656
|
+
},
|
|
5657
|
+
additionalProperties: false
|
|
5658
|
+
},
|
|
5246
5659
|
OpensearchDisplayFieldRule: {
|
|
5247
5660
|
type: 'object',
|
|
5248
5661
|
required: ['field_api_code'],
|
|
@@ -5391,11 +5804,14 @@ export const SCHEMAS = {
|
|
|
5391
5804
|
notes: { type: ['string', 'null'] },
|
|
5392
5805
|
private: { type: 'boolean' },
|
|
5393
5806
|
position: { type: 'integer', minimum: 0 },
|
|
5394
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
5807
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
5395
5808
|
calculable: { type: 'boolean' },
|
|
5396
5809
|
choices_layout: { type: ['string', 'null'] },
|
|
5397
5810
|
random_choices: { type: 'boolean' },
|
|
5398
5811
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
5812
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
5813
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
5814
|
+
hide_quota: { type: 'boolean' },
|
|
5399
5815
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5400
5816
|
start_new_row: { type: 'boolean' }
|
|
5401
5817
|
},
|
|
@@ -5419,11 +5835,14 @@ export const SCHEMAS = {
|
|
|
5419
5835
|
required: { type: 'boolean' },
|
|
5420
5836
|
position: { type: 'integer', minimum: 0 },
|
|
5421
5837
|
other_choice_required: { type: 'boolean' },
|
|
5422
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
5838
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
5423
5839
|
calculable: { type: 'boolean' },
|
|
5424
5840
|
choices_layout: { type: ['string', 'null'] },
|
|
5425
5841
|
random_choices: { type: 'boolean' },
|
|
5426
5842
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
5843
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
5844
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
5845
|
+
hide_quota: { type: 'boolean' },
|
|
5427
5846
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5428
5847
|
start_new_row: { type: 'boolean' }
|
|
5429
5848
|
},
|
|
@@ -5446,7 +5865,10 @@ export const SCHEMAS = {
|
|
|
5446
5865
|
private: { type: 'boolean' },
|
|
5447
5866
|
required: { type: 'boolean' },
|
|
5448
5867
|
position: { type: 'integer', minimum: 0 },
|
|
5449
|
-
rating_max: { type: 'integer', minimum:
|
|
5868
|
+
rating_max: { type: 'integer', minimum: 3, maximum: 10 },
|
|
5869
|
+
rating_type: { type: ['string', 'null'], enum: ['star', 'happy', 'heart', 'thumb', null] },
|
|
5870
|
+
minimum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
5871
|
+
maximum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 }
|
|
5450
5872
|
}
|
|
5451
5873
|
},
|
|
5452
5874
|
RatingInput: {
|
|
@@ -5461,7 +5883,10 @@ export const SCHEMAS = {
|
|
|
5461
5883
|
private: { type: 'boolean' },
|
|
5462
5884
|
required: { type: 'boolean' },
|
|
5463
5885
|
position: { type: 'integer', minimum: 0 },
|
|
5464
|
-
rating_max: { type: 'integer', minimum:
|
|
5886
|
+
rating_max: { type: 'integer', minimum: 3, maximum: 10 },
|
|
5887
|
+
rating_type: { type: ['string', 'null'], enum: ['star', 'happy', 'heart', 'thumb', null] },
|
|
5888
|
+
minimum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
5889
|
+
maximum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
5465
5890
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
5466
5891
|
answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
|
|
5467
5892
|
answer_explanation: { type: 'string' }
|
|
@@ -5478,6 +5903,25 @@ export const SCHEMAS = {
|
|
|
5478
5903
|
}
|
|
5479
5904
|
]
|
|
5480
5905
|
},
|
|
5906
|
+
RedirectRuleOperations: {
|
|
5907
|
+
type: 'object',
|
|
5908
|
+
properties: {
|
|
5909
|
+
add: { type: 'array', items: { $ref: 'RedirectRuleWriteInput' } },
|
|
5910
|
+
remove: { type: 'array', items: { type: 'integer' } },
|
|
5911
|
+
update: { type: 'array', items: { $ref: 'RedirectRuleWriteInput' } }
|
|
5912
|
+
},
|
|
5913
|
+
additionalProperties: false
|
|
5914
|
+
},
|
|
5915
|
+
RedirectRuleWriteInput: {
|
|
5916
|
+
type: 'object',
|
|
5917
|
+
properties: {
|
|
5918
|
+
index: { type: 'integer' },
|
|
5919
|
+
redirect_url: { type: 'string' },
|
|
5920
|
+
operator: { type: 'string', enum: ['or', 'and'] },
|
|
5921
|
+
conditions: { type: 'array', items: { $ref: 'RuleConditionInput' } }
|
|
5922
|
+
},
|
|
5923
|
+
additionalProperties: false
|
|
5924
|
+
},
|
|
5481
5925
|
RelationFieldColumnInput: {
|
|
5482
5926
|
type: 'object',
|
|
5483
5927
|
additionalProperties: false,
|
|
@@ -5607,6 +6051,7 @@ export const SCHEMAS = {
|
|
|
5607
6051
|
start_time: {
|
|
5608
6052
|
type: 'object',
|
|
5609
6053
|
additionalProperties: false,
|
|
6054
|
+
required: ['hour', 'minute'],
|
|
5610
6055
|
properties: {
|
|
5611
6056
|
hour: { type: ['integer', 'null'], minimum: 0, maximum: 23 },
|
|
5612
6057
|
minute: { type: ['integer', 'null'], minimum: 0, maximum: 59 }
|
|
@@ -5615,6 +6060,7 @@ export const SCHEMAS = {
|
|
|
5615
6060
|
end_time: {
|
|
5616
6061
|
type: 'object',
|
|
5617
6062
|
additionalProperties: false,
|
|
6063
|
+
required: ['hour', 'minute'],
|
|
5618
6064
|
properties: {
|
|
5619
6065
|
hour: { type: ['integer', 'null'], minimum: 0, maximum: 23 },
|
|
5620
6066
|
minute: { type: ['integer', 'null'], minimum: 0, maximum: 59 }
|
|
@@ -5665,8 +6111,7 @@ export const SCHEMAS = {
|
|
|
5665
6111
|
reservation_items: { type: 'array', minItems: 1, items: { $ref: 'ReservationItemInput' } },
|
|
5666
6112
|
allow_multiple_items: { type: 'boolean' },
|
|
5667
6113
|
item_allow_multiple_reservations: { type: 'boolean' },
|
|
5668
|
-
allow_multiple_number: { type: 'boolean' }
|
|
5669
|
-
use_daily_time_range: { type: 'boolean' }
|
|
6114
|
+
allow_multiple_number: { type: 'boolean' }
|
|
5670
6115
|
}
|
|
5671
6116
|
},
|
|
5672
6117
|
ReservationItemImageInput: {
|
|
@@ -5723,6 +6168,70 @@ export const SCHEMAS = {
|
|
|
5723
6168
|
idempotency_key: { type: 'string', maxLength: 255 }
|
|
5724
6169
|
}
|
|
5725
6170
|
},
|
|
6171
|
+
RollupFieldColumnInput: {
|
|
6172
|
+
type: 'object',
|
|
6173
|
+
additionalProperties: false,
|
|
6174
|
+
required: ['type', 'label'],
|
|
6175
|
+
properties: {
|
|
6176
|
+
type: { const: 'RollupField' },
|
|
6177
|
+
label: { type: ['string', 'null'] },
|
|
6178
|
+
cid: { type: 'string' },
|
|
6179
|
+
notes: { type: ['string', 'null'] },
|
|
6180
|
+
private: { type: 'boolean' },
|
|
6181
|
+
position: { type: 'integer', minimum: 0 },
|
|
6182
|
+
relation_field_api_code: { type: ['string', 'null'] },
|
|
6183
|
+
source_field_api_code: { type: ['string', 'null'] },
|
|
6184
|
+
aggregation: { type: ['string', 'null'], enum: ['sum', 'count', 'avg', 'max', 'min', null] },
|
|
6185
|
+
scope_conditions: {
|
|
6186
|
+
type: 'array',
|
|
6187
|
+
items: {
|
|
6188
|
+
type: 'object',
|
|
6189
|
+
additionalProperties: false,
|
|
6190
|
+
required: ['trigger', 'operator'],
|
|
6191
|
+
properties: {
|
|
6192
|
+
trigger: { type: 'string' },
|
|
6193
|
+
operator: {
|
|
6194
|
+
type: 'string',
|
|
6195
|
+
enum: [
|
|
6196
|
+
'eq',
|
|
6197
|
+
'ne',
|
|
6198
|
+
'any_in',
|
|
6199
|
+
'none_in',
|
|
6200
|
+
'between',
|
|
6201
|
+
'not_between',
|
|
6202
|
+
'gte',
|
|
6203
|
+
'gt',
|
|
6204
|
+
'lte',
|
|
6205
|
+
'lt',
|
|
6206
|
+
'null',
|
|
6207
|
+
'not_null',
|
|
6208
|
+
'like',
|
|
6209
|
+
'and',
|
|
6210
|
+
'or',
|
|
6211
|
+
'not_like',
|
|
6212
|
+
'match'
|
|
6213
|
+
]
|
|
6214
|
+
},
|
|
6215
|
+
value: {},
|
|
6216
|
+
group_index: { type: 'integer' }
|
|
6217
|
+
}
|
|
6218
|
+
}
|
|
6219
|
+
},
|
|
6220
|
+
display_precision: { type: ['integer', 'null'], minimum: 0 },
|
|
6221
|
+
display_as_percentage: { type: 'boolean' },
|
|
6222
|
+
thousands_separator: { type: 'boolean' },
|
|
6223
|
+
currency_symbol: { type: ['string', 'null'] },
|
|
6224
|
+
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] }
|
|
6225
|
+
},
|
|
6226
|
+
allOf: [
|
|
6227
|
+
{
|
|
6228
|
+
not: {
|
|
6229
|
+
properties: { display_as_percentage: { const: true }, thousands_separator: { const: true } },
|
|
6230
|
+
required: ['display_as_percentage', 'thousands_separator']
|
|
6231
|
+
}
|
|
6232
|
+
}
|
|
6233
|
+
]
|
|
6234
|
+
},
|
|
5726
6235
|
RoutineDataConditionInput: {
|
|
5727
6236
|
type: 'object',
|
|
5728
6237
|
required: ['scope_conditions'],
|
|
@@ -5903,6 +6412,17 @@ export const SCHEMAS = {
|
|
|
5903
6412
|
content: { type: 'string' }
|
|
5904
6413
|
}
|
|
5905
6414
|
},
|
|
6415
|
+
RuleConditionInput: {
|
|
6416
|
+
type: 'object',
|
|
6417
|
+
required: ['trigger', 'value'],
|
|
6418
|
+
properties: {
|
|
6419
|
+
trigger: { type: 'string' },
|
|
6420
|
+
comparator: { type: 'string' },
|
|
6421
|
+
value: { type: ['string', 'number', 'array'], items: { type: ['string', 'number'] } },
|
|
6422
|
+
parent_choices: { type: 'array', items: { type: 'string' } }
|
|
6423
|
+
},
|
|
6424
|
+
additionalProperties: false
|
|
6425
|
+
},
|
|
5906
6426
|
SMSMessageChannelInput: {
|
|
5907
6427
|
type: 'object',
|
|
5908
6428
|
additionalProperties: false,
|
|
@@ -6153,6 +6673,8 @@ export const SCHEMAS = {
|
|
|
6153
6673
|
unique: { type: 'boolean' },
|
|
6154
6674
|
predefined_value: { type: ['string', 'null'] },
|
|
6155
6675
|
placeholder: { type: ['string', 'null'] },
|
|
6676
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0, maximum: 10000 },
|
|
6677
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0, maximum: 10000 },
|
|
6156
6678
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
6157
6679
|
start_new_row: { type: 'boolean' },
|
|
6158
6680
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -6184,11 +6706,14 @@ export const SCHEMAS = {
|
|
|
6184
6706
|
required: { type: 'boolean' },
|
|
6185
6707
|
position: { type: 'integer', minimum: 0 },
|
|
6186
6708
|
other_choice_required: { type: 'boolean' },
|
|
6187
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
6709
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
6188
6710
|
calculable: { type: 'boolean' },
|
|
6189
6711
|
choices_layout: { type: ['string', 'null'] },
|
|
6190
6712
|
random_choices: { type: 'boolean' },
|
|
6191
6713
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
6714
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
6715
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
6716
|
+
hide_quota: { type: 'boolean' },
|
|
6192
6717
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
6193
6718
|
start_new_row: { type: 'boolean' },
|
|
6194
6719
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -6211,6 +6736,12 @@ export const SCHEMAS = {
|
|
|
6211
6736
|
}
|
|
6212
6737
|
]
|
|
6213
6738
|
},
|
|
6739
|
+
SortChoiceInput: {
|
|
6740
|
+
type: 'object',
|
|
6741
|
+
additionalProperties: false,
|
|
6742
|
+
anyOf: [{ required: ['value'] }, { required: ['name'] }],
|
|
6743
|
+
properties: { value: { type: 'string' }, name: { type: 'string' }, api_code: { type: 'string' } }
|
|
6744
|
+
},
|
|
6214
6745
|
SortFieldInput: {
|
|
6215
6746
|
type: 'object',
|
|
6216
6747
|
additionalProperties: false,
|
|
@@ -6223,8 +6754,10 @@ export const SCHEMAS = {
|
|
|
6223
6754
|
private: { type: 'boolean' },
|
|
6224
6755
|
required: { type: 'boolean' },
|
|
6225
6756
|
position: { type: 'integer', minimum: 0 },
|
|
6226
|
-
choices: { type: 'array', minItems: 1, items: { $ref: '
|
|
6227
|
-
random_choices: { type: 'boolean' }
|
|
6757
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'SortChoiceInput' }, maxItems: 1000 },
|
|
6758
|
+
random_choices: { type: 'boolean' },
|
|
6759
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
6760
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0 }
|
|
6228
6761
|
}
|
|
6229
6762
|
},
|
|
6230
6763
|
SortRule: {
|
|
@@ -6265,7 +6798,9 @@ export const SCHEMAS = {
|
|
|
6265
6798
|
'AttachmentField',
|
|
6266
6799
|
'FormulaField',
|
|
6267
6800
|
'RelationField',
|
|
6268
|
-
'SequenceField'
|
|
6801
|
+
'SequenceField',
|
|
6802
|
+
'LookupField',
|
|
6803
|
+
'RollupField'
|
|
6269
6804
|
]
|
|
6270
6805
|
},
|
|
6271
6806
|
label: { type: ['string', 'null'] }
|
|
@@ -6285,7 +6820,9 @@ export const SCHEMAS = {
|
|
|
6285
6820
|
AttachmentField: 'AttachmentFieldColumnInput',
|
|
6286
6821
|
FormulaField: 'FormulaFieldColumnInput',
|
|
6287
6822
|
RelationField: 'RelationFieldColumnInput',
|
|
6288
|
-
SequenceField: 'SequenceFieldColumnInput'
|
|
6823
|
+
SequenceField: 'SequenceFieldColumnInput',
|
|
6824
|
+
LookupField: 'LookupFieldColumnInput',
|
|
6825
|
+
RollupField: 'RollupFieldColumnInput'
|
|
6289
6826
|
}
|
|
6290
6827
|
},
|
|
6291
6828
|
oneOf: [
|
|
@@ -6301,7 +6838,9 @@ export const SCHEMAS = {
|
|
|
6301
6838
|
{ $ref: 'AttachmentFieldColumnInput' },
|
|
6302
6839
|
{ $ref: 'FormulaFieldColumnInput' },
|
|
6303
6840
|
{ $ref: 'RelationFieldColumnInput' },
|
|
6304
|
-
{ $ref: 'SequenceFieldColumnInput' }
|
|
6841
|
+
{ $ref: 'SequenceFieldColumnInput' },
|
|
6842
|
+
{ $ref: 'LookupFieldColumnInput' },
|
|
6843
|
+
{ $ref: 'RollupFieldColumnInput' }
|
|
6305
6844
|
]
|
|
6306
6845
|
},
|
|
6307
6846
|
TableCreateInput: {
|
|
@@ -6417,6 +6956,8 @@ export const SCHEMAS = {
|
|
|
6417
6956
|
unique: { type: 'boolean' },
|
|
6418
6957
|
predefined_value: { type: ['string', 'null'] },
|
|
6419
6958
|
placeholder: { type: ['string', 'null'] },
|
|
6959
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0, maximum: 10000 },
|
|
6960
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0, maximum: 10000 },
|
|
6420
6961
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
6421
6962
|
start_new_row: { type: 'boolean' }
|
|
6422
6963
|
}
|
|
@@ -6436,24 +6977,48 @@ export const SCHEMAS = {
|
|
|
6436
6977
|
unique: { type: 'boolean' },
|
|
6437
6978
|
predefined_value: { type: ['string', 'null'] },
|
|
6438
6979
|
placeholder: { type: ['string', 'null'] },
|
|
6980
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0, maximum: 300 },
|
|
6981
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0, maximum: 300 },
|
|
6439
6982
|
scannable: { type: 'boolean' },
|
|
6440
6983
|
access_control_list_limit: { type: 'boolean' },
|
|
6441
6984
|
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
6442
6985
|
acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
|
|
6986
|
+
format_validation_type: {
|
|
6987
|
+
type: ['string', 'null'],
|
|
6988
|
+
enum: [
|
|
6989
|
+
'chinese_only',
|
|
6990
|
+
'custom_regex_format',
|
|
6991
|
+
'english_only',
|
|
6992
|
+
'id_card_format',
|
|
6993
|
+
'plate_number_format',
|
|
6994
|
+
'qq_number_format',
|
|
6995
|
+
null
|
|
6996
|
+
]
|
|
6997
|
+
},
|
|
6998
|
+
custom_validation_regex: { type: ['string', 'null'], maxLength: 1215 },
|
|
6443
6999
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
6444
7000
|
start_new_row: { type: 'boolean' }
|
|
6445
7001
|
}
|
|
6446
7002
|
},
|
|
7003
|
+
ThemeColor: {
|
|
7004
|
+
type: 'string',
|
|
7005
|
+
pattern: '^(#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\\(\\s*\\d{1,3}\\s*(,\\s*\\d{1,3}\\s*){2}(,\\s*\\d*\\.?\\d+\\s*)?\\))$',
|
|
7006
|
+
not: { pattern: '\n' }
|
|
7007
|
+
},
|
|
7008
|
+
ThemeFontFamily: {
|
|
7009
|
+
type: 'string',
|
|
7010
|
+
enum: ['inherit', 'tahoma', 'helvetica', 'verdana', 'georgia', 'heiti', 'kaiti', 'songti']
|
|
7011
|
+
},
|
|
7012
|
+
ThemeFontSize: { type: 'string', enum: ['14px', '15px', '16px', '17px', '18px', '19px', '20px', '22px', '24px'] },
|
|
6447
7013
|
ThemeInput: {
|
|
6448
7014
|
type: 'object',
|
|
6449
7015
|
properties: {
|
|
6450
|
-
primary_color: {
|
|
6451
|
-
secondary_color: { type: 'string' },
|
|
7016
|
+
primary_color: { $ref: 'ThemeColor' },
|
|
6452
7017
|
dominant_color: { type: 'string', pattern: '^#[0-9a-fA-F]{6}$' },
|
|
6453
7018
|
wallpaper: {
|
|
6454
7019
|
type: 'object',
|
|
6455
7020
|
properties: {
|
|
6456
|
-
background_color: {
|
|
7021
|
+
background_color: { $ref: 'ThemeColor' },
|
|
6457
7022
|
background_image_url: { type: 'string' },
|
|
6458
7023
|
background_image_attachment_id: { type: ['string', 'null'] }
|
|
6459
7024
|
},
|
|
@@ -6464,7 +7029,7 @@ export const SCHEMAS = {
|
|
|
6464
7029
|
properties: {
|
|
6465
7030
|
type: { type: 'string', enum: ['none', 'text', 'image', 'carousel'] },
|
|
6466
7031
|
text: { type: 'string' },
|
|
6467
|
-
background_color: {
|
|
7032
|
+
background_color: { $ref: 'ThemeColor' },
|
|
6468
7033
|
text_style: { type: 'object', additionalProperties: { type: 'string' } },
|
|
6469
7034
|
header_image_url: { type: 'string' },
|
|
6470
7035
|
header_image_base64: { type: 'string' },
|
|
@@ -6485,30 +7050,54 @@ export const SCHEMAS = {
|
|
|
6485
7050
|
typography: {
|
|
6486
7051
|
type: 'object',
|
|
6487
7052
|
properties: {
|
|
6488
|
-
form_header: {
|
|
6489
|
-
|
|
6490
|
-
|
|
7053
|
+
form_header: {
|
|
7054
|
+
type: 'object',
|
|
7055
|
+
properties: {
|
|
7056
|
+
font_size: {
|
|
7057
|
+
type: 'string',
|
|
7058
|
+
enum: ['14px', '15px', '16px', '17px', '18px', '19px', '20px', '22px', '24px', '28px', '36px', '40px']
|
|
7059
|
+
},
|
|
7060
|
+
font_weight: { type: 'string', enum: ['normal', 'bold'] },
|
|
7061
|
+
color: { $ref: 'ThemeColor' },
|
|
7062
|
+
font_family: { $ref: 'ThemeFontFamily' },
|
|
7063
|
+
text_align: { type: 'string', enum: ['left', 'center', 'right'] }
|
|
7064
|
+
},
|
|
7065
|
+
additionalProperties: false
|
|
7066
|
+
},
|
|
7067
|
+
field_label: { $ref: 'ThemeTextStyleInput' },
|
|
7068
|
+
choice_style: { $ref: 'ThemeTextStyleInput' }
|
|
6491
7069
|
},
|
|
6492
7070
|
additionalProperties: false
|
|
6493
7071
|
},
|
|
6494
7072
|
form_container: {
|
|
6495
7073
|
type: 'object',
|
|
6496
7074
|
properties: {
|
|
6497
|
-
background_color: {
|
|
6498
|
-
border_color: {
|
|
6499
|
-
border_width: { type: 'string' }
|
|
7075
|
+
background_color: { $ref: 'ThemeColor' },
|
|
7076
|
+
border_color: { $ref: 'ThemeColor' },
|
|
7077
|
+
border_width: { type: 'string', enum: ['0', '0px', '1px', '2px', '3px', '4px', '5px'] },
|
|
7078
|
+
shadow: { type: 'boolean' }
|
|
6500
7079
|
},
|
|
6501
7080
|
additionalProperties: false
|
|
6502
7081
|
},
|
|
6503
7082
|
submit_button: {
|
|
6504
7083
|
type: 'object',
|
|
6505
|
-
properties: {
|
|
7084
|
+
properties: { color: { $ref: 'ThemeColor' }, font_size: { $ref: 'ThemeFontSize' } },
|
|
6506
7085
|
additionalProperties: false
|
|
6507
7086
|
},
|
|
6508
7087
|
generate_header_image: { type: 'object', properties: { prompt: { type: 'string' } }, additionalProperties: false }
|
|
6509
7088
|
},
|
|
6510
7089
|
additionalProperties: false
|
|
6511
7090
|
},
|
|
7091
|
+
ThemeTextStyleInput: {
|
|
7092
|
+
type: 'object',
|
|
7093
|
+
properties: {
|
|
7094
|
+
font_size: { $ref: 'ThemeFontSize' },
|
|
7095
|
+
font_weight: { type: 'string', enum: ['normal', 'bold'] },
|
|
7096
|
+
color: { $ref: 'ThemeColor' },
|
|
7097
|
+
font_family: { $ref: 'ThemeFontFamily' }
|
|
7098
|
+
},
|
|
7099
|
+
additionalProperties: false
|
|
7100
|
+
},
|
|
6512
7101
|
TimeFieldInput: {
|
|
6513
7102
|
type: 'object',
|
|
6514
7103
|
additionalProperties: false,
|
|
@@ -6552,11 +7141,14 @@ export const SCHEMAS = {
|
|
|
6552
7141
|
required: { type: 'boolean' },
|
|
6553
7142
|
position: { type: 'integer', minimum: 0 },
|
|
6554
7143
|
other_choice_required: { type: 'boolean' },
|
|
6555
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
7144
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
6556
7145
|
calculable: { type: 'boolean' },
|
|
6557
7146
|
choices_layout: { type: ['string', 'null'] },
|
|
6558
7147
|
random_choices: { type: 'boolean' },
|
|
6559
7148
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
7149
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
7150
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
7151
|
+
hide_quota: { type: 'boolean' },
|
|
6560
7152
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
6561
7153
|
start_new_row: { type: 'boolean' },
|
|
6562
7154
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -6579,6 +7171,18 @@ export const SCHEMAS = {
|
|
|
6579
7171
|
}
|
|
6580
7172
|
]
|
|
6581
7173
|
},
|
|
7174
|
+
UserFormSettingInput: {
|
|
7175
|
+
type: 'object',
|
|
7176
|
+
minProperties: 1,
|
|
7177
|
+
properties: {
|
|
7178
|
+
weixin_notification: { type: 'boolean' },
|
|
7179
|
+
weixin_payment_notification: { type: 'boolean' },
|
|
7180
|
+
email_notification: { type: 'boolean' },
|
|
7181
|
+
favored: { type: 'boolean' },
|
|
7182
|
+
view_token: { type: 'string' }
|
|
7183
|
+
},
|
|
7184
|
+
additionalProperties: false
|
|
7185
|
+
},
|
|
6582
7186
|
WebhookInput: { type: 'object', properties: { entry_post_url: { type: 'string' } }, additionalProperties: false },
|
|
6583
7187
|
WebhookMessageChannelInput: {
|
|
6584
7188
|
type: 'object',
|
|
@@ -6631,6 +7235,17 @@ export const SCHEMAS = {
|
|
|
6631
7235
|
},
|
|
6632
7236
|
additionalProperties: false
|
|
6633
7237
|
},
|
|
7238
|
+
WeixinShareInput: {
|
|
7239
|
+
type: 'object',
|
|
7240
|
+
properties: {
|
|
7241
|
+
title: { type: ['string', 'null'], maxLength: 200 },
|
|
7242
|
+
description: { type: ['string', 'null'], maxLength: 500 },
|
|
7243
|
+
predefined_icon: { type: 'integer', minimum: 1, maximum: 35 },
|
|
7244
|
+
icon_image_url: { type: 'string' },
|
|
7245
|
+
icon_attachment_id: { type: 'string' }
|
|
7246
|
+
},
|
|
7247
|
+
additionalProperties: false
|
|
7248
|
+
},
|
|
6634
7249
|
WheelFortuneInput: {
|
|
6635
7250
|
type: 'object',
|
|
6636
7251
|
properties: {
|
|
@@ -6762,13 +7377,9 @@ export const SCHEMAS = {
|
|
|
6762
7377
|
type: { const: 'WidgetButton' },
|
|
6763
7378
|
label: { type: ['string', 'null'] },
|
|
6764
7379
|
cid: { type: 'string' },
|
|
6765
|
-
notes: { type: ['string', 'null'] },
|
|
6766
|
-
private: { type: 'boolean' },
|
|
6767
|
-
required: { type: 'boolean' },
|
|
6768
7380
|
position: { type: 'integer', minimum: 0 },
|
|
6769
7381
|
buttons: { type: 'array', minItems: 1, items: { $ref: 'WidgetButtonItemInput' } },
|
|
6770
|
-
buttons_number: { type: ['integer', 'null'], minimum: 1 }
|
|
6771
|
-
fixed_to_bottom: { type: 'boolean' }
|
|
7382
|
+
buttons_number: { type: ['integer', 'null'], minimum: 1 }
|
|
6772
7383
|
}
|
|
6773
7384
|
},
|
|
6774
7385
|
WidgetButtonItemInput: {
|
|
@@ -6792,11 +7403,8 @@ export const SCHEMAS = {
|
|
|
6792
7403
|
label: { type: ['string', 'null'] },
|
|
6793
7404
|
cid: { type: 'string' },
|
|
6794
7405
|
notes: { type: ['string', 'null'] },
|
|
6795
|
-
private: { type: 'boolean' },
|
|
6796
|
-
required: { type: 'boolean' },
|
|
6797
7406
|
position: { type: 'integer', minimum: 0 },
|
|
6798
|
-
widget_images: { type: 'array', items: { $ref: 'WidgetImageInput' } },
|
|
6799
|
-
widget_max_images_number: { type: ['integer', 'null'], minimum: 0 },
|
|
7407
|
+
widget_images: { type: 'array', maxItems: 1, items: { $ref: 'WidgetImageInput' } },
|
|
6800
7408
|
phones: {
|
|
6801
7409
|
type: 'array',
|
|
6802
7410
|
items: {
|
|
@@ -6827,14 +7435,10 @@ export const SCHEMAS = {
|
|
|
6827
7435
|
label: { type: ['string', 'null'] },
|
|
6828
7436
|
cid: { type: 'string' },
|
|
6829
7437
|
notes: { type: ['string', 'null'] },
|
|
6830
|
-
private: { type: 'boolean' },
|
|
6831
|
-
required: { type: 'boolean' },
|
|
6832
7438
|
position: { type: 'integer', minimum: 0 },
|
|
6833
7439
|
nav_address: { type: ['string', 'null'] },
|
|
6834
7440
|
longitude: { type: ['number', 'null'] },
|
|
6835
|
-
latitude: { type: ['number', 'null'] }
|
|
6836
|
-
value: { type: ['string', 'null'] },
|
|
6837
|
-
localizable_on_mobile: { type: 'boolean' }
|
|
7441
|
+
latitude: { type: ['number', 'null'] }
|
|
6838
7442
|
}
|
|
6839
7443
|
},
|
|
6840
7444
|
WidgetMarqueeInput: {
|
|
@@ -6846,13 +7450,9 @@ export const SCHEMAS = {
|
|
|
6846
7450
|
label: { type: ['string', 'null'] },
|
|
6847
7451
|
cid: { type: 'string' },
|
|
6848
7452
|
notes: { type: ['string', 'null'] },
|
|
6849
|
-
private: { type: 'boolean' },
|
|
6850
|
-
required: { type: 'boolean' },
|
|
6851
7453
|
position: { type: 'integer', minimum: 0 },
|
|
6852
|
-
lines: { type: ['integer', 'null'], minimum: 1 },
|
|
6853
7454
|
entries_init_number: { type: ['integer', 'null'], minimum: 0 },
|
|
6854
|
-
entries_number_visible: { type: 'boolean' }
|
|
6855
|
-
marquee_data_type: { type: ['string', 'null'], enum: ['fake', 'real', null] }
|
|
7455
|
+
entries_number_visible: { type: 'boolean' }
|
|
6856
7456
|
}
|
|
6857
7457
|
},
|
|
6858
7458
|
WxworkMessageChannelInput: {
|