@jinshuju/cli 0.26.0 → 0.27.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/dist/commands/form.js +17 -3
- 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/generated/operations.d.ts +1 -1
- package/dist/generated/operations.js +766 -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' } },
|
|
@@ -3622,16 +3841,34 @@ export const SCHEMAS = {
|
|
|
3622
3841
|
choices_layout: { type: ['string', 'null'] },
|
|
3623
3842
|
random_choices: { type: 'boolean' },
|
|
3624
3843
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
3844
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
3845
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
3846
|
+
hide_quota: { type: 'boolean' },
|
|
3625
3847
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
3626
3848
|
start_new_row: { type: 'boolean' },
|
|
3627
3849
|
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
3628
3850
|
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
3851
|
+
with_exclusive_choice: { type: 'boolean' },
|
|
3852
|
+
exclusive_choice_api_codes: { type: 'array', items: { type: 'string' } },
|
|
3629
3853
|
predefined_value: {},
|
|
3630
3854
|
placeholder: { type: ['string', 'null'] },
|
|
3631
3855
|
scannable: { type: 'boolean' },
|
|
3632
3856
|
access_control_list_limit: { type: 'boolean' },
|
|
3633
3857
|
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
3634
3858
|
acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
|
|
3859
|
+
format_validation_type: {
|
|
3860
|
+
type: ['string', 'null'],
|
|
3861
|
+
enum: [
|
|
3862
|
+
'chinese_only',
|
|
3863
|
+
'custom_regex_format',
|
|
3864
|
+
'english_only',
|
|
3865
|
+
'id_card_format',
|
|
3866
|
+
'plate_number_format',
|
|
3867
|
+
'qq_number_format',
|
|
3868
|
+
null
|
|
3869
|
+
]
|
|
3870
|
+
},
|
|
3871
|
+
custom_validation_regex: { type: ['string', 'null'], maxLength: 1215 },
|
|
3635
3872
|
sms_verification: { type: 'boolean' },
|
|
3636
3873
|
range_min: { type: ['number', 'null'] },
|
|
3637
3874
|
range_max: { type: ['number', 'null'] },
|
|
@@ -3649,12 +3886,14 @@ export const SCHEMAS = {
|
|
|
3649
3886
|
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
|
|
3650
3887
|
icon_type: {
|
|
3651
3888
|
type: ['string', 'null'],
|
|
3652
|
-
enum: ['none', 'number-2', 'dollar1', 'cny1', 'formula-2', 'date-2', 'sum', '
|
|
3889
|
+
enum: ['none', 'number-2', 'dollar1', 'cny1', 'formula-2', 'date-2', 'sum', 'text2', null]
|
|
3653
3890
|
},
|
|
3891
|
+
start_date: { type: ['string', 'null'] },
|
|
3892
|
+
end_date: { type: ['string', 'null'] },
|
|
3654
3893
|
changeable: { type: ['object', 'null'], additionalProperties: { type: 'boolean' } },
|
|
3655
3894
|
enable_auto_position: { type: 'boolean' },
|
|
3656
|
-
max_size: { type: ['number', 'null'],
|
|
3657
|
-
max_file_quantity: { type: ['integer', 'null'], minimum: 1 },
|
|
3895
|
+
max_size: { type: ['number', 'null'], minimum: 0.01, maximum: 500, multipleOf: 0.01 },
|
|
3896
|
+
max_file_quantity: { type: ['integer', 'null'], minimum: 1, maximum: 15 },
|
|
3658
3897
|
media_type: {
|
|
3659
3898
|
type: ['object', 'null'],
|
|
3660
3899
|
additionalProperties: false,
|
|
@@ -3666,18 +3905,16 @@ export const SCHEMAS = {
|
|
|
3666
3905
|
then: { required: ['value'], properties: { value: { minItems: 1 } } }
|
|
3667
3906
|
},
|
|
3668
3907
|
mobile_camera_only: { type: 'boolean' },
|
|
3669
|
-
minimum_ratings_display_text: { type: ['string', 'null'] },
|
|
3670
|
-
maximum_ratings_display_text: { type: ['string', 'null'] },
|
|
3908
|
+
minimum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
3909
|
+
maximum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
3910
|
+
rating_type: { type: ['string', 'null'] },
|
|
3671
3911
|
include_second: { type: 'boolean' },
|
|
3672
3912
|
max_duration: { type: ['integer', 'null'], minimum: 1, maximum: 5 },
|
|
3673
|
-
levels: { type: ['integer', 'null'], minimum: 2 },
|
|
3674
|
-
choice_filterable: { type: 'boolean' },
|
|
3913
|
+
levels: { type: ['integer', 'null'], minimum: 2, maximum: 4 },
|
|
3675
3914
|
horizontal_on_mobile: { type: 'boolean' },
|
|
3676
3915
|
likert_choice_style: { type: ['string', 'null'], enum: ['single', 'multiple', null] },
|
|
3677
|
-
advanced_feature: { type: 'boolean' },
|
|
3678
3916
|
unit: { type: ['string', 'null'], maxLength: 2 },
|
|
3679
|
-
|
|
3680
|
-
columns_on_mobile: { type: ['integer', 'null'], minimum: 1 },
|
|
3917
|
+
columns_on_mobile: { type: ['integer', 'null'], minimum: 1, maximum: 2 },
|
|
3681
3918
|
formula: { type: ['string', 'null'] },
|
|
3682
3919
|
formula_display: { type: ['string', 'null'] },
|
|
3683
3920
|
result_display_type: { type: ['string', 'null'], enum: ['string', 'numeric', 'datetime', 'boolean', null] },
|
|
@@ -3685,15 +3922,53 @@ export const SCHEMAS = {
|
|
|
3685
3922
|
allow_multiple_items: { type: 'boolean' },
|
|
3686
3923
|
item_allow_multiple_reservations: { type: 'boolean' },
|
|
3687
3924
|
allow_multiple_number: { type: 'boolean' },
|
|
3688
|
-
use_daily_time_range: { type: 'boolean' },
|
|
3689
3925
|
associated_form_token: { type: 'string' },
|
|
3690
3926
|
associated_field_api_codes: { type: 'array', minItems: 1, maxItems: 4, items: { type: 'string' } },
|
|
3691
3927
|
privacy_safe: { type: 'boolean' },
|
|
3692
|
-
|
|
3693
|
-
|
|
3928
|
+
scope_conditions: {
|
|
3929
|
+
type: 'array',
|
|
3930
|
+
items: {
|
|
3931
|
+
type: 'object',
|
|
3932
|
+
additionalProperties: false,
|
|
3933
|
+
required: ['trigger', 'operator'],
|
|
3934
|
+
properties: {
|
|
3935
|
+
trigger: { type: 'string' },
|
|
3936
|
+
operator: {
|
|
3937
|
+
type: 'string',
|
|
3938
|
+
enum: [
|
|
3939
|
+
'equal',
|
|
3940
|
+
'not_equal',
|
|
3941
|
+
'eq',
|
|
3942
|
+
'ne',
|
|
3943
|
+
'any_in',
|
|
3944
|
+
'none_in',
|
|
3945
|
+
'between',
|
|
3946
|
+
'not_between',
|
|
3947
|
+
'gte',
|
|
3948
|
+
'gt',
|
|
3949
|
+
'lte',
|
|
3950
|
+
'lt',
|
|
3951
|
+
'null',
|
|
3952
|
+
'not_null',
|
|
3953
|
+
'like',
|
|
3954
|
+
'and',
|
|
3955
|
+
'or',
|
|
3956
|
+
'not_like',
|
|
3957
|
+
'match'
|
|
3958
|
+
]
|
|
3959
|
+
},
|
|
3960
|
+
value: {},
|
|
3961
|
+
group_index: { type: 'integer' },
|
|
3962
|
+
scope_attr: { type: ['string', 'null'], enum: ['date_time', 'api_code', null] }
|
|
3963
|
+
}
|
|
3964
|
+
}
|
|
3965
|
+
},
|
|
3694
3966
|
related_form_token: { type: 'string' },
|
|
3695
3967
|
paired: { type: 'boolean' },
|
|
3696
3968
|
related_label: { type: ['string', 'null'] },
|
|
3969
|
+
relation_field_api_code: { type: ['string', 'null'] },
|
|
3970
|
+
source_field_api_code: { type: ['string', 'null'] },
|
|
3971
|
+
aggregation: { type: ['string', 'null'], enum: ['sum', 'count', 'avg', 'max', 'min', null] },
|
|
3697
3972
|
show_split_line: { type: 'boolean' },
|
|
3698
3973
|
show_part_description: { type: 'boolean' },
|
|
3699
3974
|
disable_previous_page: { type: 'boolean' },
|
|
@@ -3701,8 +3976,6 @@ export const SCHEMAS = {
|
|
|
3701
3976
|
next_page_text: { type: ['string', 'null'] },
|
|
3702
3977
|
count_down: { type: ['integer', 'null'], minimum: 0 },
|
|
3703
3978
|
buttons_number: { type: ['integer', 'null'], minimum: 1 },
|
|
3704
|
-
fixed_to_bottom: { type: 'boolean' },
|
|
3705
|
-
widget_max_images_number: { type: ['integer', 'null'], minimum: 0 },
|
|
3706
3979
|
phones: {
|
|
3707
3980
|
type: 'array',
|
|
3708
3981
|
items: {
|
|
@@ -3715,15 +3988,8 @@ export const SCHEMAS = {
|
|
|
3715
3988
|
nav_address: { type: ['string', 'null'] },
|
|
3716
3989
|
longitude: { type: ['number', 'null'] },
|
|
3717
3990
|
latitude: { type: ['number', 'null'] },
|
|
3718
|
-
value: { type: ['string', 'null'] },
|
|
3719
|
-
localizable_on_mobile: { type: 'boolean' },
|
|
3720
|
-
lines: { type: ['integer', 'null'], minimum: 1 },
|
|
3721
3991
|
entries_init_number: { type: ['integer', 'null'], minimum: 0 },
|
|
3722
3992
|
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
3993
|
highlight_color: { type: ['string', 'null'] }
|
|
3728
3994
|
},
|
|
3729
3995
|
allOf: [
|
|
@@ -3759,10 +4025,25 @@ export const SCHEMAS = {
|
|
|
3759
4025
|
unique: { type: 'boolean' },
|
|
3760
4026
|
predefined_value: { type: ['string', 'null'] },
|
|
3761
4027
|
placeholder: { type: ['string', 'null'] },
|
|
4028
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0, maximum: 300 },
|
|
4029
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0, maximum: 300 },
|
|
3762
4030
|
scannable: { type: 'boolean' },
|
|
3763
4031
|
access_control_list_limit: { type: 'boolean' },
|
|
3764
4032
|
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
3765
4033
|
acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
|
|
4034
|
+
format_validation_type: {
|
|
4035
|
+
type: ['string', 'null'],
|
|
4036
|
+
enum: [
|
|
4037
|
+
'chinese_only',
|
|
4038
|
+
'custom_regex_format',
|
|
4039
|
+
'english_only',
|
|
4040
|
+
'id_card_format',
|
|
4041
|
+
'plate_number_format',
|
|
4042
|
+
'qq_number_format',
|
|
4043
|
+
null
|
|
4044
|
+
]
|
|
4045
|
+
},
|
|
4046
|
+
custom_validation_regex: { type: ['string', 'null'], maxLength: 1215 },
|
|
3766
4047
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
3767
4048
|
start_new_row: { type: 'boolean' },
|
|
3768
4049
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -3799,11 +4080,8 @@ export const SCHEMAS = {
|
|
|
3799
4080
|
range_min: { type: ['number', 'null'] },
|
|
3800
4081
|
range_max: { type: ['number', 'null'] },
|
|
3801
4082
|
precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
|
|
3802
|
-
display_precision: { type: ['integer', 'null'], minimum: 0 },
|
|
3803
4083
|
display_as_percentage: { type: 'boolean' },
|
|
3804
4084
|
thousands_separator: { type: 'boolean' },
|
|
3805
|
-
currency_symbol: { type: ['string', 'null'] },
|
|
3806
|
-
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
|
|
3807
4085
|
icon_type: { type: ['string', 'null'], enum: ['none', 'number-2', 'dollar1', 'cny1', null] },
|
|
3808
4086
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
3809
4087
|
start_new_row: { type: 'boolean' },
|
|
@@ -3864,8 +4142,44 @@ export const SCHEMAS = {
|
|
|
3864
4142
|
associated_form_token: { type: 'string' },
|
|
3865
4143
|
associated_field_api_codes: { type: 'array', minItems: 1, maxItems: 4, items: { type: 'string' } },
|
|
3866
4144
|
privacy_safe: { type: 'boolean' },
|
|
3867
|
-
|
|
3868
|
-
|
|
4145
|
+
scope_conditions: {
|
|
4146
|
+
type: 'array',
|
|
4147
|
+
items: {
|
|
4148
|
+
type: 'object',
|
|
4149
|
+
additionalProperties: false,
|
|
4150
|
+
required: ['trigger', 'operator'],
|
|
4151
|
+
properties: {
|
|
4152
|
+
trigger: { type: 'string' },
|
|
4153
|
+
operator: {
|
|
4154
|
+
type: 'string',
|
|
4155
|
+
enum: [
|
|
4156
|
+
'equal',
|
|
4157
|
+
'not_equal',
|
|
4158
|
+
'eq',
|
|
4159
|
+
'ne',
|
|
4160
|
+
'any_in',
|
|
4161
|
+
'none_in',
|
|
4162
|
+
'between',
|
|
4163
|
+
'not_between',
|
|
4164
|
+
'gte',
|
|
4165
|
+
'gt',
|
|
4166
|
+
'lte',
|
|
4167
|
+
'lt',
|
|
4168
|
+
'null',
|
|
4169
|
+
'not_null',
|
|
4170
|
+
'like',
|
|
4171
|
+
'and',
|
|
4172
|
+
'or',
|
|
4173
|
+
'not_like',
|
|
4174
|
+
'match'
|
|
4175
|
+
]
|
|
4176
|
+
},
|
|
4177
|
+
value: {},
|
|
4178
|
+
group_index: { type: 'integer', minimum: -2147483648, maximum: 2147483647 },
|
|
4179
|
+
scope_attr: { type: ['string', 'null'], enum: ['date_time', 'api_code', null] }
|
|
4180
|
+
}
|
|
4181
|
+
}
|
|
4182
|
+
},
|
|
3869
4183
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
3870
4184
|
start_new_row: { type: 'boolean' }
|
|
3871
4185
|
}
|
|
@@ -3877,13 +4191,7 @@ export const SCHEMAS = {
|
|
|
3877
4191
|
then: {
|
|
3878
4192
|
properties: {
|
|
3879
4193
|
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
|
-
}
|
|
4194
|
+
items: { properties: { type: { not: { enum: ['PageBreak', 'WidgetContact', 'WidgetVideo'] } } } }
|
|
3887
4195
|
}
|
|
3888
4196
|
}
|
|
3889
4197
|
}
|
|
@@ -3899,6 +4207,10 @@ export const SCHEMAS = {
|
|
|
3899
4207
|
{
|
|
3900
4208
|
if: { properties: { scene: { enum: ['exam', 'evaluation'] } }, required: ['scene'] },
|
|
3901
4209
|
else: { properties: { fields: { items: { $ref: 'FieldInput' } } } }
|
|
4210
|
+
},
|
|
4211
|
+
{
|
|
4212
|
+
if: { properties: { scene: { enum: ['exam', 'quickpay'] } }, required: ['scene'] },
|
|
4213
|
+
then: { properties: { fields: { items: { properties: { type: { not: { const: 'MultipleBlanksField' } } } } } } }
|
|
3902
4214
|
}
|
|
3903
4215
|
]
|
|
3904
4216
|
},
|
|
@@ -3983,6 +4295,7 @@ export const SCHEMAS = {
|
|
|
3983
4295
|
retry: { type: 'boolean' }
|
|
3984
4296
|
}
|
|
3985
4297
|
},
|
|
4298
|
+
FormLayoutUpdate: { type: 'string', enum: ['classic', 'card'] },
|
|
3986
4299
|
FormManuallyCloseRuleInput: {
|
|
3987
4300
|
type: 'object',
|
|
3988
4301
|
required: ['open'],
|
|
@@ -4006,20 +4319,18 @@ export const SCHEMAS = {
|
|
|
4006
4319
|
show_submit_again: { type: 'boolean' },
|
|
4007
4320
|
hide_login_and_signup: { type: 'boolean' },
|
|
4008
4321
|
show_close_count_down: { type: 'boolean' },
|
|
4009
|
-
|
|
4322
|
+
show_form_when_unavailable: { type: 'boolean' },
|
|
4010
4323
|
show_field_number: { type: 'boolean' },
|
|
4324
|
+
show_progress: { type: 'boolean' },
|
|
4011
4325
|
password_required: { type: 'boolean' },
|
|
4012
4326
|
access_password: { type: 'string' },
|
|
4013
4327
|
allowed_audience: {
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
'weixin_followers_only',
|
|
4021
|
-
'submitter_only',
|
|
4022
|
-
'gd_user_only'
|
|
4328
|
+
anyOf: [
|
|
4329
|
+
{ type: 'string', enum: ['public', 'gd_user_only'] },
|
|
4330
|
+
{
|
|
4331
|
+
type: 'string',
|
|
4332
|
+
enum: ['internal', 'private', 'weixin_qiye_followers_only', 'weixin_followers_only', 'submitter_only']
|
|
4333
|
+
}
|
|
4023
4334
|
]
|
|
4024
4335
|
},
|
|
4025
4336
|
weixin_limited: { type: 'boolean' },
|
|
@@ -4037,7 +4348,7 @@ export const SCHEMAS = {
|
|
|
4037
4348
|
},
|
|
4038
4349
|
by_entries_close_rule: {
|
|
4039
4350
|
type: 'object',
|
|
4040
|
-
properties: { limit: { type: 'integer', maximum: 2147483647 } },
|
|
4351
|
+
properties: { limit: { type: 'integer', minimum: 0, maximum: 2147483647 } },
|
|
4041
4352
|
additionalProperties: false
|
|
4042
4353
|
},
|
|
4043
4354
|
gen_code_enabled: { type: 'boolean' },
|
|
@@ -4045,7 +4356,8 @@ export const SCHEMAS = {
|
|
|
4045
4356
|
gen_code_format: { type: 'string', enum: ['d8', 'd12', 'custom'] },
|
|
4046
4357
|
gen_code_rules: { type: 'array', items: { $ref: 'GenCodeRuleInput' } },
|
|
4047
4358
|
fill_frequency: { $ref: 'FormFillFrequencyInput' },
|
|
4048
|
-
wording: { $ref: 'FormWordingInput' }
|
|
4359
|
+
wording: { $ref: 'FormWordingInput' },
|
|
4360
|
+
weixin_share: { $ref: 'WeixinShareInput' }
|
|
4049
4361
|
},
|
|
4050
4362
|
additionalProperties: false
|
|
4051
4363
|
},
|
|
@@ -4068,7 +4380,7 @@ export const SCHEMAS = {
|
|
|
4068
4380
|
show_submit_again: { type: 'boolean' },
|
|
4069
4381
|
hide_login_and_signup: { type: 'boolean' },
|
|
4070
4382
|
show_close_count_down: { type: 'boolean' },
|
|
4071
|
-
|
|
4383
|
+
show_form_when_unavailable: { type: 'boolean' },
|
|
4072
4384
|
manually_close_rule: {
|
|
4073
4385
|
type: ['object', 'null'],
|
|
4074
4386
|
properties: { closed: { type: 'boolean' } },
|
|
@@ -4081,7 +4393,7 @@ export const SCHEMAS = {
|
|
|
4081
4393
|
},
|
|
4082
4394
|
by_entries_close_rule: {
|
|
4083
4395
|
type: ['object', 'null'],
|
|
4084
|
-
properties: { enabled: { type: 'boolean' }, limit: { type: 'integer', maximum: 2147483647 } },
|
|
4396
|
+
properties: { enabled: { type: 'boolean' }, limit: { type: 'integer', minimum: 0, maximum: 2147483647 } },
|
|
4085
4397
|
additionalProperties: false
|
|
4086
4398
|
},
|
|
4087
4399
|
fill_frequency: {
|
|
@@ -4103,15 +4415,12 @@ export const SCHEMAS = {
|
|
|
4103
4415
|
password_required: { type: 'boolean' },
|
|
4104
4416
|
access_password: { type: 'string' },
|
|
4105
4417
|
allowed_audience: {
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
'weixin_followers_only',
|
|
4113
|
-
'submitter_only',
|
|
4114
|
-
'gd_user_only'
|
|
4418
|
+
anyOf: [
|
|
4419
|
+
{ type: 'string', enum: ['public', 'gd_user_only'] },
|
|
4420
|
+
{
|
|
4421
|
+
type: 'string',
|
|
4422
|
+
enum: ['internal', 'private', 'weixin_qiye_followers_only', 'weixin_followers_only', 'submitter_only']
|
|
4423
|
+
}
|
|
4115
4424
|
]
|
|
4116
4425
|
},
|
|
4117
4426
|
weixin_limited: { type: 'boolean' },
|
|
@@ -4146,6 +4455,7 @@ export const SCHEMAS = {
|
|
|
4146
4455
|
FormUpdateInput: {
|
|
4147
4456
|
type: 'object',
|
|
4148
4457
|
properties: {
|
|
4458
|
+
layout: { $ref: 'FormLayoutUpdate' },
|
|
4149
4459
|
name: { type: 'string' },
|
|
4150
4460
|
description: { type: ['string', 'null'] },
|
|
4151
4461
|
setting: { $ref: 'FormSettingWriteInput' },
|
|
@@ -4164,7 +4474,8 @@ export const SCHEMAS = {
|
|
|
4164
4474
|
},
|
|
4165
4475
|
additionalProperties: false
|
|
4166
4476
|
},
|
|
4167
|
-
field_rules: { $ref: 'FieldRuleOperations' }
|
|
4477
|
+
field_rules: { $ref: 'FieldRuleOperations' },
|
|
4478
|
+
redirect_rules: { $ref: 'RedirectRuleOperations' }
|
|
4168
4479
|
},
|
|
4169
4480
|
additionalProperties: false
|
|
4170
4481
|
},
|
|
@@ -4275,7 +4586,7 @@ export const SCHEMAS = {
|
|
|
4275
4586
|
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
|
|
4276
4587
|
icon_type: {
|
|
4277
4588
|
type: ['string', 'null'],
|
|
4278
|
-
enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', '
|
|
4589
|
+
enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', 'text2', null]
|
|
4279
4590
|
},
|
|
4280
4591
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4281
4592
|
start_new_row: { type: 'boolean' }
|
|
@@ -4306,14 +4617,11 @@ export const SCHEMAS = {
|
|
|
4306
4617
|
result_display_type: { type: ['string', 'null'], enum: ['string', 'numeric', 'datetime', 'boolean', null] },
|
|
4307
4618
|
result_display_as_date: { type: 'boolean' },
|
|
4308
4619
|
precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
|
|
4309
|
-
display_precision: { type: ['integer', 'null'], minimum: 0 },
|
|
4310
4620
|
display_as_percentage: { type: 'boolean' },
|
|
4311
4621
|
thousands_separator: { type: 'boolean' },
|
|
4312
|
-
currency_symbol: { type: ['string', 'null'] },
|
|
4313
|
-
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
|
|
4314
4622
|
icon_type: {
|
|
4315
4623
|
type: ['string', 'null'],
|
|
4316
|
-
enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', '
|
|
4624
|
+
enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', 'text2', null]
|
|
4317
4625
|
},
|
|
4318
4626
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4319
4627
|
start_new_row: { type: 'boolean' }
|
|
@@ -4365,8 +4673,7 @@ export const SCHEMAS = {
|
|
|
4365
4673
|
position: { type: 'integer', minimum: 0 },
|
|
4366
4674
|
goods_items: { type: 'array', minItems: 1, items: { $ref: 'GoodsItemInput' } },
|
|
4367
4675
|
unit: { type: ['string', 'null'], maxLength: 2 },
|
|
4368
|
-
|
|
4369
|
-
columns_on_mobile: { type: ['integer', 'null'], minimum: 1 }
|
|
4676
|
+
columns_on_mobile: { type: ['integer', 'null'], minimum: 1, maximum: 2 }
|
|
4370
4677
|
}
|
|
4371
4678
|
},
|
|
4372
4679
|
GoodsItemInput: {
|
|
@@ -4549,11 +4856,14 @@ export const SCHEMAS = {
|
|
|
4549
4856
|
required: { type: 'boolean' },
|
|
4550
4857
|
position: { type: 'integer', minimum: 0 },
|
|
4551
4858
|
other_choice_required: { type: 'boolean' },
|
|
4552
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
4859
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
4553
4860
|
calculable: { type: 'boolean' },
|
|
4554
4861
|
choices_layout: { type: ['string', 'null'] },
|
|
4555
4862
|
random_choices: { type: 'boolean' },
|
|
4556
4863
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
4864
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
4865
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
4866
|
+
hide_quota: { type: 'boolean' },
|
|
4557
4867
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4558
4868
|
start_new_row: { type: 'boolean' }
|
|
4559
4869
|
},
|
|
@@ -4596,13 +4906,18 @@ export const SCHEMAS = {
|
|
|
4596
4906
|
private: { type: 'boolean' },
|
|
4597
4907
|
required: { type: 'boolean' },
|
|
4598
4908
|
position: { type: 'integer', minimum: 0 },
|
|
4599
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
|
|
4909
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' }, maxItems: 1000 },
|
|
4600
4910
|
calculable: { type: 'boolean' },
|
|
4601
4911
|
choices_layout: { type: ['string', 'null'] },
|
|
4602
4912
|
random_choices: { type: 'boolean' },
|
|
4603
4913
|
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
4604
4914
|
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
4605
|
-
hide_choice_when_quota_empty: { type: 'boolean' }
|
|
4915
|
+
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
4916
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
4917
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
4918
|
+
hide_quota: { type: 'boolean' },
|
|
4919
|
+
with_exclusive_choice: { type: 'boolean' },
|
|
4920
|
+
exclusive_choice_api_codes: { type: 'array', items: { type: 'string' } }
|
|
4606
4921
|
},
|
|
4607
4922
|
allOf: [
|
|
4608
4923
|
{
|
|
@@ -4622,9 +4937,11 @@ export const SCHEMAS = {
|
|
|
4622
4937
|
value: { type: 'string' },
|
|
4623
4938
|
name: { type: 'string' },
|
|
4624
4939
|
api_code: { type: 'string' },
|
|
4625
|
-
quota: { type: 'integer', minimum:
|
|
4940
|
+
quota: { type: 'integer', minimum: 0 },
|
|
4626
4941
|
operand_value: { type: 'number' },
|
|
4627
4942
|
selected: { type: 'boolean' },
|
|
4943
|
+
description_text: { type: ['string', 'null'] },
|
|
4944
|
+
description_url: { type: ['string', 'null'] },
|
|
4628
4945
|
image_url: { type: 'string' },
|
|
4629
4946
|
image_base64: { type: 'string' },
|
|
4630
4947
|
attachment_id: { type: 'string' }
|
|
@@ -4642,13 +4959,16 @@ export const SCHEMAS = {
|
|
|
4642
4959
|
private: { type: 'boolean' },
|
|
4643
4960
|
required: { type: 'boolean' },
|
|
4644
4961
|
position: { type: 'integer', minimum: 0 },
|
|
4645
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
|
|
4962
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' }, maxItems: 1000 },
|
|
4646
4963
|
calculable: { type: 'boolean' },
|
|
4647
4964
|
choices_layout: { type: ['string', 'null'] },
|
|
4648
4965
|
random_choices: { type: 'boolean' },
|
|
4649
4966
|
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
4650
4967
|
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
4651
4968
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
4969
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
4970
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
4971
|
+
hide_quota: { type: 'boolean' },
|
|
4652
4972
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
4653
4973
|
answer_setting_mode: { type: 'string', enum: ['absolute', 'partial_absolute', 'relative'] },
|
|
4654
4974
|
answer_explanation: { type: 'string' }
|
|
@@ -4694,11 +5014,14 @@ export const SCHEMAS = {
|
|
|
4694
5014
|
private: { type: 'boolean' },
|
|
4695
5015
|
required: { type: 'boolean' },
|
|
4696
5016
|
position: { type: 'integer', minimum: 0 },
|
|
4697
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
|
|
5017
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' }, maxItems: 1000 },
|
|
4698
5018
|
calculable: { type: 'boolean' },
|
|
4699
5019
|
choices_layout: { type: ['string', 'null'] },
|
|
4700
5020
|
random_choices: { type: 'boolean' },
|
|
4701
|
-
hide_choice_when_quota_empty: { type: 'boolean' }
|
|
5021
|
+
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
5022
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
5023
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
5024
|
+
hide_quota: { type: 'boolean' }
|
|
4702
5025
|
},
|
|
4703
5026
|
allOf: [
|
|
4704
5027
|
{
|
|
@@ -4719,11 +5042,14 @@ export const SCHEMAS = {
|
|
|
4719
5042
|
private: { type: 'boolean' },
|
|
4720
5043
|
required: { type: 'boolean' },
|
|
4721
5044
|
position: { type: 'integer', minimum: 0 },
|
|
4722
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
|
|
5045
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' }, maxItems: 1000 },
|
|
4723
5046
|
calculable: { type: 'boolean' },
|
|
4724
5047
|
choices_layout: { type: ['string', 'null'] },
|
|
4725
5048
|
random_choices: { type: 'boolean' },
|
|
4726
5049
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
5050
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
5051
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
5052
|
+
hide_quota: { type: 'boolean' },
|
|
4727
5053
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
4728
5054
|
answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
|
|
4729
5055
|
answer_explanation: { type: 'string' }
|
|
@@ -4756,7 +5082,7 @@ export const SCHEMAS = {
|
|
|
4756
5082
|
private: { type: 'boolean' },
|
|
4757
5083
|
required: { type: 'boolean' },
|
|
4758
5084
|
position: { type: 'integer', minimum: 0 },
|
|
4759
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
5085
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
4760
5086
|
statements: { type: 'array', minItems: 1, items: { $ref: 'StatementInput' } },
|
|
4761
5087
|
horizontal_on_mobile: { type: 'boolean' },
|
|
4762
5088
|
likert_choice_style: { type: ['string', 'null'], enum: ['single', 'multiple', null] },
|
|
@@ -4811,6 +5137,56 @@ export const SCHEMAS = {
|
|
|
4811
5137
|
start_new_row: { type: 'boolean' }
|
|
4812
5138
|
}
|
|
4813
5139
|
},
|
|
5140
|
+
LookupFieldColumnInput: {
|
|
5141
|
+
type: 'object',
|
|
5142
|
+
additionalProperties: false,
|
|
5143
|
+
required: ['type', 'label'],
|
|
5144
|
+
properties: {
|
|
5145
|
+
type: { const: 'LookupField' },
|
|
5146
|
+
label: { type: ['string', 'null'] },
|
|
5147
|
+
cid: { type: 'string' },
|
|
5148
|
+
notes: { type: ['string', 'null'] },
|
|
5149
|
+
private: { type: 'boolean' },
|
|
5150
|
+
position: { type: 'integer', minimum: 0 },
|
|
5151
|
+
relation_field_api_code: { type: ['string', 'null'] },
|
|
5152
|
+
source_field_api_code: { type: ['string', 'null'] },
|
|
5153
|
+
scope_conditions: {
|
|
5154
|
+
type: 'array',
|
|
5155
|
+
items: {
|
|
5156
|
+
type: 'object',
|
|
5157
|
+
additionalProperties: false,
|
|
5158
|
+
required: ['trigger', 'operator'],
|
|
5159
|
+
properties: {
|
|
5160
|
+
trigger: { type: 'string' },
|
|
5161
|
+
operator: {
|
|
5162
|
+
type: 'string',
|
|
5163
|
+
enum: [
|
|
5164
|
+
'eq',
|
|
5165
|
+
'ne',
|
|
5166
|
+
'any_in',
|
|
5167
|
+
'none_in',
|
|
5168
|
+
'between',
|
|
5169
|
+
'not_between',
|
|
5170
|
+
'gte',
|
|
5171
|
+
'gt',
|
|
5172
|
+
'lte',
|
|
5173
|
+
'lt',
|
|
5174
|
+
'null',
|
|
5175
|
+
'not_null',
|
|
5176
|
+
'like',
|
|
5177
|
+
'and',
|
|
5178
|
+
'or',
|
|
5179
|
+
'not_like',
|
|
5180
|
+
'match'
|
|
5181
|
+
]
|
|
5182
|
+
},
|
|
5183
|
+
value: {},
|
|
5184
|
+
group_index: { type: 'integer' }
|
|
5185
|
+
}
|
|
5186
|
+
}
|
|
5187
|
+
}
|
|
5188
|
+
}
|
|
5189
|
+
},
|
|
4814
5190
|
MatrixFieldInput: {
|
|
4815
5191
|
type: 'object',
|
|
4816
5192
|
additionalProperties: false,
|
|
@@ -4825,8 +5201,7 @@ export const SCHEMAS = {
|
|
|
4825
5201
|
position: { type: 'integer', minimum: 0 },
|
|
4826
5202
|
dimensions: { type: 'array', minItems: 1, items: { $ref: 'DimensionInput' } },
|
|
4827
5203
|
statements: { type: 'array', minItems: 1, items: { $ref: 'StatementInput' } },
|
|
4828
|
-
horizontal_on_mobile: { type: 'boolean' }
|
|
4829
|
-
advanced_feature: { type: 'boolean' }
|
|
5204
|
+
horizontal_on_mobile: { type: 'boolean' }
|
|
4830
5205
|
}
|
|
4831
5206
|
},
|
|
4832
5207
|
MatrixScaleFieldInput: {
|
|
@@ -4841,7 +5216,7 @@ export const SCHEMAS = {
|
|
|
4841
5216
|
private: { type: 'boolean' },
|
|
4842
5217
|
required: { type: 'boolean' },
|
|
4843
5218
|
position: { type: 'integer', minimum: 0 },
|
|
4844
|
-
rating_max: { type: 'integer', minimum:
|
|
5219
|
+
rating_max: { type: 'integer', minimum: 3, maximum: 10 },
|
|
4845
5220
|
statements: { type: 'array', minItems: 1, items: { $ref: 'StatementInput' } },
|
|
4846
5221
|
horizontal_on_mobile: { type: 'boolean' }
|
|
4847
5222
|
}
|
|
@@ -5005,13 +5380,16 @@ export const SCHEMAS = {
|
|
|
5005
5380
|
required: { type: 'boolean' },
|
|
5006
5381
|
position: { type: 'integer', minimum: 0 },
|
|
5007
5382
|
other_choice_required: { type: 'boolean' },
|
|
5008
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
5383
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
5009
5384
|
calculable: { type: 'boolean' },
|
|
5010
5385
|
choices_layout: { type: ['string', 'null'] },
|
|
5011
5386
|
random_choices: { type: 'boolean' },
|
|
5012
5387
|
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
5013
5388
|
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
5014
5389
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
5390
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
5391
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
5392
|
+
hide_quota: { type: 'boolean' },
|
|
5015
5393
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5016
5394
|
start_new_row: { type: 'boolean' },
|
|
5017
5395
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -5047,6 +5425,22 @@ export const SCHEMAS = {
|
|
|
5047
5425
|
}
|
|
5048
5426
|
]
|
|
5049
5427
|
},
|
|
5428
|
+
MultipleBlanksFieldInput: {
|
|
5429
|
+
type: 'object',
|
|
5430
|
+
additionalProperties: false,
|
|
5431
|
+
required: ['type', 'label', 'placeholder'],
|
|
5432
|
+
properties: {
|
|
5433
|
+
type: { const: 'MultipleBlanksField' },
|
|
5434
|
+
label: { type: ['string', 'null'] },
|
|
5435
|
+
cid: { type: 'string' },
|
|
5436
|
+
notes: { type: ['string', 'null'] },
|
|
5437
|
+
private: { type: 'boolean' },
|
|
5438
|
+
required: { type: 'boolean' },
|
|
5439
|
+
position: { type: 'integer', minimum: 0 },
|
|
5440
|
+
placeholder: { type: 'string' },
|
|
5441
|
+
dimensions: { type: 'array', minItems: 1, maxItems: 30, items: { $ref: 'BlankInput' } }
|
|
5442
|
+
}
|
|
5443
|
+
},
|
|
5050
5444
|
NameFieldInput: {
|
|
5051
5445
|
type: 'object',
|
|
5052
5446
|
additionalProperties: false,
|
|
@@ -5060,9 +5454,15 @@ export const SCHEMAS = {
|
|
|
5060
5454
|
required: { type: 'boolean' },
|
|
5061
5455
|
position: { type: 'integer', minimum: 0 },
|
|
5062
5456
|
unique: { type: 'boolean' },
|
|
5457
|
+
placeholder: { type: ['string', 'null'] },
|
|
5063
5458
|
access_control_list_limit: { type: 'boolean' },
|
|
5064
5459
|
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
5065
5460
|
acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
|
|
5461
|
+
format_validation_type: {
|
|
5462
|
+
type: ['string', 'null'],
|
|
5463
|
+
enum: ['chinese_only', 'custom_regex_format', 'english_only', null]
|
|
5464
|
+
},
|
|
5465
|
+
custom_validation_regex: { type: ['string', 'null'], maxLength: 1215 },
|
|
5066
5466
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5067
5467
|
start_new_row: { type: 'boolean' }
|
|
5068
5468
|
}
|
|
@@ -5141,8 +5541,8 @@ export const SCHEMAS = {
|
|
|
5141
5541
|
private: { type: 'boolean' },
|
|
5142
5542
|
required: { type: 'boolean' },
|
|
5143
5543
|
position: { type: 'integer', minimum: 0 },
|
|
5144
|
-
minimum_ratings_display_text: { type: ['string', 'null'] },
|
|
5145
|
-
maximum_ratings_display_text: { type: ['string', 'null'] }
|
|
5544
|
+
minimum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
5545
|
+
maximum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 }
|
|
5146
5546
|
}
|
|
5147
5547
|
},
|
|
5148
5548
|
NpsInput: {
|
|
@@ -5157,8 +5557,8 @@ export const SCHEMAS = {
|
|
|
5157
5557
|
private: { type: 'boolean' },
|
|
5158
5558
|
required: { type: 'boolean' },
|
|
5159
5559
|
position: { type: 'integer', minimum: 0 },
|
|
5160
|
-
minimum_ratings_display_text: { type: ['string', 'null'] },
|
|
5161
|
-
maximum_ratings_display_text: { type: ['string', 'null'] },
|
|
5560
|
+
minimum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
5561
|
+
maximum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
5162
5562
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
5163
5563
|
answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
|
|
5164
5564
|
answer_explanation: { type: 'string' }
|
|
@@ -5225,11 +5625,8 @@ export const SCHEMAS = {
|
|
|
5225
5625
|
range_min: { type: ['number', 'null'] },
|
|
5226
5626
|
range_max: { type: ['number', 'null'] },
|
|
5227
5627
|
precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
|
|
5228
|
-
display_precision: { type: ['integer', 'null'], minimum: 0 },
|
|
5229
5628
|
display_as_percentage: { type: 'boolean' },
|
|
5230
5629
|
thousands_separator: { type: 'boolean' },
|
|
5231
|
-
currency_symbol: { type: ['string', 'null'] },
|
|
5232
|
-
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
|
|
5233
5630
|
icon_type: { type: ['string', 'null'], enum: ['none', 'number-2', 'dollar1', 'cny1', null] },
|
|
5234
5631
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5235
5632
|
start_new_row: { type: 'boolean' }
|
|
@@ -5243,6 +5640,20 @@ export const SCHEMAS = {
|
|
|
5243
5640
|
}
|
|
5244
5641
|
]
|
|
5245
5642
|
},
|
|
5643
|
+
OpenResultInput: {
|
|
5644
|
+
type: 'object',
|
|
5645
|
+
properties: {
|
|
5646
|
+
title: { type: 'string', maxLength: 20 },
|
|
5647
|
+
enabled: { type: 'boolean' },
|
|
5648
|
+
allowed_audience: { type: 'string', enum: ['public', 'private'] },
|
|
5649
|
+
password_required: { type: 'boolean' },
|
|
5650
|
+
access_password: { type: 'string' },
|
|
5651
|
+
readable_field_api_codes: { type: 'array', items: { type: 'string' } },
|
|
5652
|
+
report_field_api_codes: { type: 'array', items: { type: 'string' } },
|
|
5653
|
+
privacy_protected_field_api_codes: { type: 'array', items: { type: 'string' } }
|
|
5654
|
+
},
|
|
5655
|
+
additionalProperties: false
|
|
5656
|
+
},
|
|
5246
5657
|
OpensearchDisplayFieldRule: {
|
|
5247
5658
|
type: 'object',
|
|
5248
5659
|
required: ['field_api_code'],
|
|
@@ -5391,11 +5802,14 @@ export const SCHEMAS = {
|
|
|
5391
5802
|
notes: { type: ['string', 'null'] },
|
|
5392
5803
|
private: { type: 'boolean' },
|
|
5393
5804
|
position: { type: 'integer', minimum: 0 },
|
|
5394
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
5805
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
5395
5806
|
calculable: { type: 'boolean' },
|
|
5396
5807
|
choices_layout: { type: ['string', 'null'] },
|
|
5397
5808
|
random_choices: { type: 'boolean' },
|
|
5398
5809
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
5810
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
5811
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
5812
|
+
hide_quota: { type: 'boolean' },
|
|
5399
5813
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5400
5814
|
start_new_row: { type: 'boolean' }
|
|
5401
5815
|
},
|
|
@@ -5419,11 +5833,14 @@ export const SCHEMAS = {
|
|
|
5419
5833
|
required: { type: 'boolean' },
|
|
5420
5834
|
position: { type: 'integer', minimum: 0 },
|
|
5421
5835
|
other_choice_required: { type: 'boolean' },
|
|
5422
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
5836
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
5423
5837
|
calculable: { type: 'boolean' },
|
|
5424
5838
|
choices_layout: { type: ['string', 'null'] },
|
|
5425
5839
|
random_choices: { type: 'boolean' },
|
|
5426
5840
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
5841
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
5842
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
5843
|
+
hide_quota: { type: 'boolean' },
|
|
5427
5844
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5428
5845
|
start_new_row: { type: 'boolean' }
|
|
5429
5846
|
},
|
|
@@ -5446,7 +5863,10 @@ export const SCHEMAS = {
|
|
|
5446
5863
|
private: { type: 'boolean' },
|
|
5447
5864
|
required: { type: 'boolean' },
|
|
5448
5865
|
position: { type: 'integer', minimum: 0 },
|
|
5449
|
-
rating_max: { type: 'integer', minimum:
|
|
5866
|
+
rating_max: { type: 'integer', minimum: 3, maximum: 10 },
|
|
5867
|
+
rating_type: { type: ['string', 'null'], enum: ['star', 'happy', 'heart', 'thumb', null] },
|
|
5868
|
+
minimum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
5869
|
+
maximum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 }
|
|
5450
5870
|
}
|
|
5451
5871
|
},
|
|
5452
5872
|
RatingInput: {
|
|
@@ -5461,7 +5881,10 @@ export const SCHEMAS = {
|
|
|
5461
5881
|
private: { type: 'boolean' },
|
|
5462
5882
|
required: { type: 'boolean' },
|
|
5463
5883
|
position: { type: 'integer', minimum: 0 },
|
|
5464
|
-
rating_max: { type: 'integer', minimum:
|
|
5884
|
+
rating_max: { type: 'integer', minimum: 3, maximum: 10 },
|
|
5885
|
+
rating_type: { type: ['string', 'null'], enum: ['star', 'happy', 'heart', 'thumb', null] },
|
|
5886
|
+
minimum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
5887
|
+
maximum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
5465
5888
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
5466
5889
|
answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
|
|
5467
5890
|
answer_explanation: { type: 'string' }
|
|
@@ -5478,6 +5901,25 @@ export const SCHEMAS = {
|
|
|
5478
5901
|
}
|
|
5479
5902
|
]
|
|
5480
5903
|
},
|
|
5904
|
+
RedirectRuleOperations: {
|
|
5905
|
+
type: 'object',
|
|
5906
|
+
properties: {
|
|
5907
|
+
add: { type: 'array', items: { $ref: 'RedirectRuleWriteInput' } },
|
|
5908
|
+
remove: { type: 'array', items: { type: 'integer' } },
|
|
5909
|
+
update: { type: 'array', items: { $ref: 'RedirectRuleWriteInput' } }
|
|
5910
|
+
},
|
|
5911
|
+
additionalProperties: false
|
|
5912
|
+
},
|
|
5913
|
+
RedirectRuleWriteInput: {
|
|
5914
|
+
type: 'object',
|
|
5915
|
+
properties: {
|
|
5916
|
+
index: { type: 'integer' },
|
|
5917
|
+
redirect_url: { type: 'string' },
|
|
5918
|
+
operator: { type: 'string', enum: ['or', 'and'] },
|
|
5919
|
+
conditions: { type: 'array', items: { $ref: 'RuleConditionInput' } }
|
|
5920
|
+
},
|
|
5921
|
+
additionalProperties: false
|
|
5922
|
+
},
|
|
5481
5923
|
RelationFieldColumnInput: {
|
|
5482
5924
|
type: 'object',
|
|
5483
5925
|
additionalProperties: false,
|
|
@@ -5607,6 +6049,7 @@ export const SCHEMAS = {
|
|
|
5607
6049
|
start_time: {
|
|
5608
6050
|
type: 'object',
|
|
5609
6051
|
additionalProperties: false,
|
|
6052
|
+
required: ['hour', 'minute'],
|
|
5610
6053
|
properties: {
|
|
5611
6054
|
hour: { type: ['integer', 'null'], minimum: 0, maximum: 23 },
|
|
5612
6055
|
minute: { type: ['integer', 'null'], minimum: 0, maximum: 59 }
|
|
@@ -5615,6 +6058,7 @@ export const SCHEMAS = {
|
|
|
5615
6058
|
end_time: {
|
|
5616
6059
|
type: 'object',
|
|
5617
6060
|
additionalProperties: false,
|
|
6061
|
+
required: ['hour', 'minute'],
|
|
5618
6062
|
properties: {
|
|
5619
6063
|
hour: { type: ['integer', 'null'], minimum: 0, maximum: 23 },
|
|
5620
6064
|
minute: { type: ['integer', 'null'], minimum: 0, maximum: 59 }
|
|
@@ -5665,8 +6109,7 @@ export const SCHEMAS = {
|
|
|
5665
6109
|
reservation_items: { type: 'array', minItems: 1, items: { $ref: 'ReservationItemInput' } },
|
|
5666
6110
|
allow_multiple_items: { type: 'boolean' },
|
|
5667
6111
|
item_allow_multiple_reservations: { type: 'boolean' },
|
|
5668
|
-
allow_multiple_number: { type: 'boolean' }
|
|
5669
|
-
use_daily_time_range: { type: 'boolean' }
|
|
6112
|
+
allow_multiple_number: { type: 'boolean' }
|
|
5670
6113
|
}
|
|
5671
6114
|
},
|
|
5672
6115
|
ReservationItemImageInput: {
|
|
@@ -5723,6 +6166,70 @@ export const SCHEMAS = {
|
|
|
5723
6166
|
idempotency_key: { type: 'string', maxLength: 255 }
|
|
5724
6167
|
}
|
|
5725
6168
|
},
|
|
6169
|
+
RollupFieldColumnInput: {
|
|
6170
|
+
type: 'object',
|
|
6171
|
+
additionalProperties: false,
|
|
6172
|
+
required: ['type', 'label'],
|
|
6173
|
+
properties: {
|
|
6174
|
+
type: { const: 'RollupField' },
|
|
6175
|
+
label: { type: ['string', 'null'] },
|
|
6176
|
+
cid: { type: 'string' },
|
|
6177
|
+
notes: { type: ['string', 'null'] },
|
|
6178
|
+
private: { type: 'boolean' },
|
|
6179
|
+
position: { type: 'integer', minimum: 0 },
|
|
6180
|
+
relation_field_api_code: { type: ['string', 'null'] },
|
|
6181
|
+
source_field_api_code: { type: ['string', 'null'] },
|
|
6182
|
+
aggregation: { type: ['string', 'null'], enum: ['sum', 'count', 'avg', 'max', 'min', null] },
|
|
6183
|
+
scope_conditions: {
|
|
6184
|
+
type: 'array',
|
|
6185
|
+
items: {
|
|
6186
|
+
type: 'object',
|
|
6187
|
+
additionalProperties: false,
|
|
6188
|
+
required: ['trigger', 'operator'],
|
|
6189
|
+
properties: {
|
|
6190
|
+
trigger: { type: 'string' },
|
|
6191
|
+
operator: {
|
|
6192
|
+
type: 'string',
|
|
6193
|
+
enum: [
|
|
6194
|
+
'eq',
|
|
6195
|
+
'ne',
|
|
6196
|
+
'any_in',
|
|
6197
|
+
'none_in',
|
|
6198
|
+
'between',
|
|
6199
|
+
'not_between',
|
|
6200
|
+
'gte',
|
|
6201
|
+
'gt',
|
|
6202
|
+
'lte',
|
|
6203
|
+
'lt',
|
|
6204
|
+
'null',
|
|
6205
|
+
'not_null',
|
|
6206
|
+
'like',
|
|
6207
|
+
'and',
|
|
6208
|
+
'or',
|
|
6209
|
+
'not_like',
|
|
6210
|
+
'match'
|
|
6211
|
+
]
|
|
6212
|
+
},
|
|
6213
|
+
value: {},
|
|
6214
|
+
group_index: { type: 'integer' }
|
|
6215
|
+
}
|
|
6216
|
+
}
|
|
6217
|
+
},
|
|
6218
|
+
display_precision: { type: ['integer', 'null'], minimum: 0 },
|
|
6219
|
+
display_as_percentage: { type: 'boolean' },
|
|
6220
|
+
thousands_separator: { type: 'boolean' },
|
|
6221
|
+
currency_symbol: { type: ['string', 'null'] },
|
|
6222
|
+
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] }
|
|
6223
|
+
},
|
|
6224
|
+
allOf: [
|
|
6225
|
+
{
|
|
6226
|
+
not: {
|
|
6227
|
+
properties: { display_as_percentage: { const: true }, thousands_separator: { const: true } },
|
|
6228
|
+
required: ['display_as_percentage', 'thousands_separator']
|
|
6229
|
+
}
|
|
6230
|
+
}
|
|
6231
|
+
]
|
|
6232
|
+
},
|
|
5726
6233
|
RoutineDataConditionInput: {
|
|
5727
6234
|
type: 'object',
|
|
5728
6235
|
required: ['scope_conditions'],
|
|
@@ -5903,6 +6410,17 @@ export const SCHEMAS = {
|
|
|
5903
6410
|
content: { type: 'string' }
|
|
5904
6411
|
}
|
|
5905
6412
|
},
|
|
6413
|
+
RuleConditionInput: {
|
|
6414
|
+
type: 'object',
|
|
6415
|
+
required: ['trigger', 'value'],
|
|
6416
|
+
properties: {
|
|
6417
|
+
trigger: { type: 'string' },
|
|
6418
|
+
comparator: { type: 'string' },
|
|
6419
|
+
value: { type: ['string', 'number', 'array'], items: { type: ['string', 'number'] } },
|
|
6420
|
+
parent_choices: { type: 'array', items: { type: 'string' } }
|
|
6421
|
+
},
|
|
6422
|
+
additionalProperties: false
|
|
6423
|
+
},
|
|
5906
6424
|
SMSMessageChannelInput: {
|
|
5907
6425
|
type: 'object',
|
|
5908
6426
|
additionalProperties: false,
|
|
@@ -6153,6 +6671,8 @@ export const SCHEMAS = {
|
|
|
6153
6671
|
unique: { type: 'boolean' },
|
|
6154
6672
|
predefined_value: { type: ['string', 'null'] },
|
|
6155
6673
|
placeholder: { type: ['string', 'null'] },
|
|
6674
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0, maximum: 10000 },
|
|
6675
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0, maximum: 10000 },
|
|
6156
6676
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
6157
6677
|
start_new_row: { type: 'boolean' },
|
|
6158
6678
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -6184,11 +6704,14 @@ export const SCHEMAS = {
|
|
|
6184
6704
|
required: { type: 'boolean' },
|
|
6185
6705
|
position: { type: 'integer', minimum: 0 },
|
|
6186
6706
|
other_choice_required: { type: 'boolean' },
|
|
6187
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
6707
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
6188
6708
|
calculable: { type: 'boolean' },
|
|
6189
6709
|
choices_layout: { type: ['string', 'null'] },
|
|
6190
6710
|
random_choices: { type: 'boolean' },
|
|
6191
6711
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
6712
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
6713
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
6714
|
+
hide_quota: { type: 'boolean' },
|
|
6192
6715
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
6193
6716
|
start_new_row: { type: 'boolean' },
|
|
6194
6717
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -6211,6 +6734,12 @@ export const SCHEMAS = {
|
|
|
6211
6734
|
}
|
|
6212
6735
|
]
|
|
6213
6736
|
},
|
|
6737
|
+
SortChoiceInput: {
|
|
6738
|
+
type: 'object',
|
|
6739
|
+
additionalProperties: false,
|
|
6740
|
+
anyOf: [{ required: ['value'] }, { required: ['name'] }],
|
|
6741
|
+
properties: { value: { type: 'string' }, name: { type: 'string' }, api_code: { type: 'string' } }
|
|
6742
|
+
},
|
|
6214
6743
|
SortFieldInput: {
|
|
6215
6744
|
type: 'object',
|
|
6216
6745
|
additionalProperties: false,
|
|
@@ -6223,8 +6752,10 @@ export const SCHEMAS = {
|
|
|
6223
6752
|
private: { type: 'boolean' },
|
|
6224
6753
|
required: { type: 'boolean' },
|
|
6225
6754
|
position: { type: 'integer', minimum: 0 },
|
|
6226
|
-
choices: { type: 'array', minItems: 1, items: { $ref: '
|
|
6227
|
-
random_choices: { type: 'boolean' }
|
|
6755
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'SortChoiceInput' }, maxItems: 1000 },
|
|
6756
|
+
random_choices: { type: 'boolean' },
|
|
6757
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
6758
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0 }
|
|
6228
6759
|
}
|
|
6229
6760
|
},
|
|
6230
6761
|
SortRule: {
|
|
@@ -6265,7 +6796,9 @@ export const SCHEMAS = {
|
|
|
6265
6796
|
'AttachmentField',
|
|
6266
6797
|
'FormulaField',
|
|
6267
6798
|
'RelationField',
|
|
6268
|
-
'SequenceField'
|
|
6799
|
+
'SequenceField',
|
|
6800
|
+
'LookupField',
|
|
6801
|
+
'RollupField'
|
|
6269
6802
|
]
|
|
6270
6803
|
},
|
|
6271
6804
|
label: { type: ['string', 'null'] }
|
|
@@ -6285,7 +6818,9 @@ export const SCHEMAS = {
|
|
|
6285
6818
|
AttachmentField: 'AttachmentFieldColumnInput',
|
|
6286
6819
|
FormulaField: 'FormulaFieldColumnInput',
|
|
6287
6820
|
RelationField: 'RelationFieldColumnInput',
|
|
6288
|
-
SequenceField: 'SequenceFieldColumnInput'
|
|
6821
|
+
SequenceField: 'SequenceFieldColumnInput',
|
|
6822
|
+
LookupField: 'LookupFieldColumnInput',
|
|
6823
|
+
RollupField: 'RollupFieldColumnInput'
|
|
6289
6824
|
}
|
|
6290
6825
|
},
|
|
6291
6826
|
oneOf: [
|
|
@@ -6301,7 +6836,9 @@ export const SCHEMAS = {
|
|
|
6301
6836
|
{ $ref: 'AttachmentFieldColumnInput' },
|
|
6302
6837
|
{ $ref: 'FormulaFieldColumnInput' },
|
|
6303
6838
|
{ $ref: 'RelationFieldColumnInput' },
|
|
6304
|
-
{ $ref: 'SequenceFieldColumnInput' }
|
|
6839
|
+
{ $ref: 'SequenceFieldColumnInput' },
|
|
6840
|
+
{ $ref: 'LookupFieldColumnInput' },
|
|
6841
|
+
{ $ref: 'RollupFieldColumnInput' }
|
|
6305
6842
|
]
|
|
6306
6843
|
},
|
|
6307
6844
|
TableCreateInput: {
|
|
@@ -6417,6 +6954,8 @@ export const SCHEMAS = {
|
|
|
6417
6954
|
unique: { type: 'boolean' },
|
|
6418
6955
|
predefined_value: { type: ['string', 'null'] },
|
|
6419
6956
|
placeholder: { type: ['string', 'null'] },
|
|
6957
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0, maximum: 10000 },
|
|
6958
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0, maximum: 10000 },
|
|
6420
6959
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
6421
6960
|
start_new_row: { type: 'boolean' }
|
|
6422
6961
|
}
|
|
@@ -6436,24 +6975,48 @@ export const SCHEMAS = {
|
|
|
6436
6975
|
unique: { type: 'boolean' },
|
|
6437
6976
|
predefined_value: { type: ['string', 'null'] },
|
|
6438
6977
|
placeholder: { type: ['string', 'null'] },
|
|
6978
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0, maximum: 300 },
|
|
6979
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0, maximum: 300 },
|
|
6439
6980
|
scannable: { type: 'boolean' },
|
|
6440
6981
|
access_control_list_limit: { type: 'boolean' },
|
|
6441
6982
|
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
6442
6983
|
acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
|
|
6984
|
+
format_validation_type: {
|
|
6985
|
+
type: ['string', 'null'],
|
|
6986
|
+
enum: [
|
|
6987
|
+
'chinese_only',
|
|
6988
|
+
'custom_regex_format',
|
|
6989
|
+
'english_only',
|
|
6990
|
+
'id_card_format',
|
|
6991
|
+
'plate_number_format',
|
|
6992
|
+
'qq_number_format',
|
|
6993
|
+
null
|
|
6994
|
+
]
|
|
6995
|
+
},
|
|
6996
|
+
custom_validation_regex: { type: ['string', 'null'], maxLength: 1215 },
|
|
6443
6997
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
6444
6998
|
start_new_row: { type: 'boolean' }
|
|
6445
6999
|
}
|
|
6446
7000
|
},
|
|
7001
|
+
ThemeColor: {
|
|
7002
|
+
type: 'string',
|
|
7003
|
+
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*)?\\))$',
|
|
7004
|
+
not: { pattern: '\n' }
|
|
7005
|
+
},
|
|
7006
|
+
ThemeFontFamily: {
|
|
7007
|
+
type: 'string',
|
|
7008
|
+
enum: ['inherit', 'tahoma', 'helvetica', 'verdana', 'georgia', 'heiti', 'kaiti', 'songti']
|
|
7009
|
+
},
|
|
7010
|
+
ThemeFontSize: { type: 'string', enum: ['14px', '15px', '16px', '17px', '18px', '19px', '20px', '22px', '24px'] },
|
|
6447
7011
|
ThemeInput: {
|
|
6448
7012
|
type: 'object',
|
|
6449
7013
|
properties: {
|
|
6450
|
-
primary_color: {
|
|
6451
|
-
secondary_color: { type: 'string' },
|
|
7014
|
+
primary_color: { $ref: 'ThemeColor' },
|
|
6452
7015
|
dominant_color: { type: 'string', pattern: '^#[0-9a-fA-F]{6}$' },
|
|
6453
7016
|
wallpaper: {
|
|
6454
7017
|
type: 'object',
|
|
6455
7018
|
properties: {
|
|
6456
|
-
background_color: {
|
|
7019
|
+
background_color: { $ref: 'ThemeColor' },
|
|
6457
7020
|
background_image_url: { type: 'string' },
|
|
6458
7021
|
background_image_attachment_id: { type: ['string', 'null'] }
|
|
6459
7022
|
},
|
|
@@ -6464,7 +7027,7 @@ export const SCHEMAS = {
|
|
|
6464
7027
|
properties: {
|
|
6465
7028
|
type: { type: 'string', enum: ['none', 'text', 'image', 'carousel'] },
|
|
6466
7029
|
text: { type: 'string' },
|
|
6467
|
-
background_color: {
|
|
7030
|
+
background_color: { $ref: 'ThemeColor' },
|
|
6468
7031
|
text_style: { type: 'object', additionalProperties: { type: 'string' } },
|
|
6469
7032
|
header_image_url: { type: 'string' },
|
|
6470
7033
|
header_image_base64: { type: 'string' },
|
|
@@ -6485,30 +7048,54 @@ export const SCHEMAS = {
|
|
|
6485
7048
|
typography: {
|
|
6486
7049
|
type: 'object',
|
|
6487
7050
|
properties: {
|
|
6488
|
-
form_header: {
|
|
6489
|
-
|
|
6490
|
-
|
|
7051
|
+
form_header: {
|
|
7052
|
+
type: 'object',
|
|
7053
|
+
properties: {
|
|
7054
|
+
font_size: {
|
|
7055
|
+
type: 'string',
|
|
7056
|
+
enum: ['14px', '15px', '16px', '17px', '18px', '19px', '20px', '22px', '24px', '28px', '36px', '40px']
|
|
7057
|
+
},
|
|
7058
|
+
font_weight: { type: 'string', enum: ['normal', 'bold'] },
|
|
7059
|
+
color: { $ref: 'ThemeColor' },
|
|
7060
|
+
font_family: { $ref: 'ThemeFontFamily' },
|
|
7061
|
+
text_align: { type: 'string', enum: ['left', 'center', 'right'] }
|
|
7062
|
+
},
|
|
7063
|
+
additionalProperties: false
|
|
7064
|
+
},
|
|
7065
|
+
field_label: { $ref: 'ThemeTextStyleInput' },
|
|
7066
|
+
choice_style: { $ref: 'ThemeTextStyleInput' }
|
|
6491
7067
|
},
|
|
6492
7068
|
additionalProperties: false
|
|
6493
7069
|
},
|
|
6494
7070
|
form_container: {
|
|
6495
7071
|
type: 'object',
|
|
6496
7072
|
properties: {
|
|
6497
|
-
background_color: {
|
|
6498
|
-
border_color: {
|
|
6499
|
-
border_width: { type: 'string' }
|
|
7073
|
+
background_color: { $ref: 'ThemeColor' },
|
|
7074
|
+
border_color: { $ref: 'ThemeColor' },
|
|
7075
|
+
border_width: { type: 'string', enum: ['0', '0px', '1px', '2px', '3px', '4px', '5px'] },
|
|
7076
|
+
shadow: { type: 'boolean' }
|
|
6500
7077
|
},
|
|
6501
7078
|
additionalProperties: false
|
|
6502
7079
|
},
|
|
6503
7080
|
submit_button: {
|
|
6504
7081
|
type: 'object',
|
|
6505
|
-
properties: {
|
|
7082
|
+
properties: { color: { $ref: 'ThemeColor' }, font_size: { $ref: 'ThemeFontSize' } },
|
|
6506
7083
|
additionalProperties: false
|
|
6507
7084
|
},
|
|
6508
7085
|
generate_header_image: { type: 'object', properties: { prompt: { type: 'string' } }, additionalProperties: false }
|
|
6509
7086
|
},
|
|
6510
7087
|
additionalProperties: false
|
|
6511
7088
|
},
|
|
7089
|
+
ThemeTextStyleInput: {
|
|
7090
|
+
type: 'object',
|
|
7091
|
+
properties: {
|
|
7092
|
+
font_size: { $ref: 'ThemeFontSize' },
|
|
7093
|
+
font_weight: { type: 'string', enum: ['normal', 'bold'] },
|
|
7094
|
+
color: { $ref: 'ThemeColor' },
|
|
7095
|
+
font_family: { $ref: 'ThemeFontFamily' }
|
|
7096
|
+
},
|
|
7097
|
+
additionalProperties: false
|
|
7098
|
+
},
|
|
6512
7099
|
TimeFieldInput: {
|
|
6513
7100
|
type: 'object',
|
|
6514
7101
|
additionalProperties: false,
|
|
@@ -6552,11 +7139,14 @@ export const SCHEMAS = {
|
|
|
6552
7139
|
required: { type: 'boolean' },
|
|
6553
7140
|
position: { type: 'integer', minimum: 0 },
|
|
6554
7141
|
other_choice_required: { type: 'boolean' },
|
|
6555
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
7142
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
6556
7143
|
calculable: { type: 'boolean' },
|
|
6557
7144
|
choices_layout: { type: ['string', 'null'] },
|
|
6558
7145
|
random_choices: { type: 'boolean' },
|
|
6559
7146
|
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
7147
|
+
quota_blank_warning: { type: ['string', 'null'] },
|
|
7148
|
+
quota_cycle_rule: { type: ['string', 'null'], enum: ['fixed', 'per_day', 'per_week', null] },
|
|
7149
|
+
hide_quota: { type: 'boolean' },
|
|
6560
7150
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
6561
7151
|
start_new_row: { type: 'boolean' },
|
|
6562
7152
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -6579,6 +7169,18 @@ export const SCHEMAS = {
|
|
|
6579
7169
|
}
|
|
6580
7170
|
]
|
|
6581
7171
|
},
|
|
7172
|
+
UserFormSettingInput: {
|
|
7173
|
+
type: 'object',
|
|
7174
|
+
minProperties: 1,
|
|
7175
|
+
properties: {
|
|
7176
|
+
weixin_notification: { type: 'boolean' },
|
|
7177
|
+
weixin_payment_notification: { type: 'boolean' },
|
|
7178
|
+
email_notification: { type: 'boolean' },
|
|
7179
|
+
favored: { type: 'boolean' },
|
|
7180
|
+
view_token: { type: 'string' }
|
|
7181
|
+
},
|
|
7182
|
+
additionalProperties: false
|
|
7183
|
+
},
|
|
6582
7184
|
WebhookInput: { type: 'object', properties: { entry_post_url: { type: 'string' } }, additionalProperties: false },
|
|
6583
7185
|
WebhookMessageChannelInput: {
|
|
6584
7186
|
type: 'object',
|
|
@@ -6631,6 +7233,17 @@ export const SCHEMAS = {
|
|
|
6631
7233
|
},
|
|
6632
7234
|
additionalProperties: false
|
|
6633
7235
|
},
|
|
7236
|
+
WeixinShareInput: {
|
|
7237
|
+
type: 'object',
|
|
7238
|
+
properties: {
|
|
7239
|
+
title: { type: ['string', 'null'], maxLength: 200 },
|
|
7240
|
+
description: { type: ['string', 'null'], maxLength: 500 },
|
|
7241
|
+
predefined_icon: { type: 'integer', minimum: 1, maximum: 35 },
|
|
7242
|
+
icon_image_url: { type: 'string' },
|
|
7243
|
+
icon_attachment_id: { type: 'string' }
|
|
7244
|
+
},
|
|
7245
|
+
additionalProperties: false
|
|
7246
|
+
},
|
|
6634
7247
|
WheelFortuneInput: {
|
|
6635
7248
|
type: 'object',
|
|
6636
7249
|
properties: {
|
|
@@ -6762,13 +7375,9 @@ export const SCHEMAS = {
|
|
|
6762
7375
|
type: { const: 'WidgetButton' },
|
|
6763
7376
|
label: { type: ['string', 'null'] },
|
|
6764
7377
|
cid: { type: 'string' },
|
|
6765
|
-
notes: { type: ['string', 'null'] },
|
|
6766
|
-
private: { type: 'boolean' },
|
|
6767
|
-
required: { type: 'boolean' },
|
|
6768
7378
|
position: { type: 'integer', minimum: 0 },
|
|
6769
7379
|
buttons: { type: 'array', minItems: 1, items: { $ref: 'WidgetButtonItemInput' } },
|
|
6770
|
-
buttons_number: { type: ['integer', 'null'], minimum: 1 }
|
|
6771
|
-
fixed_to_bottom: { type: 'boolean' }
|
|
7380
|
+
buttons_number: { type: ['integer', 'null'], minimum: 1 }
|
|
6772
7381
|
}
|
|
6773
7382
|
},
|
|
6774
7383
|
WidgetButtonItemInput: {
|
|
@@ -6792,11 +7401,8 @@ export const SCHEMAS = {
|
|
|
6792
7401
|
label: { type: ['string', 'null'] },
|
|
6793
7402
|
cid: { type: 'string' },
|
|
6794
7403
|
notes: { type: ['string', 'null'] },
|
|
6795
|
-
private: { type: 'boolean' },
|
|
6796
|
-
required: { type: 'boolean' },
|
|
6797
7404
|
position: { type: 'integer', minimum: 0 },
|
|
6798
|
-
widget_images: { type: 'array', items: { $ref: 'WidgetImageInput' } },
|
|
6799
|
-
widget_max_images_number: { type: ['integer', 'null'], minimum: 0 },
|
|
7405
|
+
widget_images: { type: 'array', maxItems: 1, items: { $ref: 'WidgetImageInput' } },
|
|
6800
7406
|
phones: {
|
|
6801
7407
|
type: 'array',
|
|
6802
7408
|
items: {
|
|
@@ -6827,14 +7433,10 @@ export const SCHEMAS = {
|
|
|
6827
7433
|
label: { type: ['string', 'null'] },
|
|
6828
7434
|
cid: { type: 'string' },
|
|
6829
7435
|
notes: { type: ['string', 'null'] },
|
|
6830
|
-
private: { type: 'boolean' },
|
|
6831
|
-
required: { type: 'boolean' },
|
|
6832
7436
|
position: { type: 'integer', minimum: 0 },
|
|
6833
7437
|
nav_address: { type: ['string', 'null'] },
|
|
6834
7438
|
longitude: { type: ['number', 'null'] },
|
|
6835
|
-
latitude: { type: ['number', 'null'] }
|
|
6836
|
-
value: { type: ['string', 'null'] },
|
|
6837
|
-
localizable_on_mobile: { type: 'boolean' }
|
|
7439
|
+
latitude: { type: ['number', 'null'] }
|
|
6838
7440
|
}
|
|
6839
7441
|
},
|
|
6840
7442
|
WidgetMarqueeInput: {
|
|
@@ -6846,13 +7448,9 @@ export const SCHEMAS = {
|
|
|
6846
7448
|
label: { type: ['string', 'null'] },
|
|
6847
7449
|
cid: { type: 'string' },
|
|
6848
7450
|
notes: { type: ['string', 'null'] },
|
|
6849
|
-
private: { type: 'boolean' },
|
|
6850
|
-
required: { type: 'boolean' },
|
|
6851
7451
|
position: { type: 'integer', minimum: 0 },
|
|
6852
|
-
lines: { type: ['integer', 'null'], minimum: 1 },
|
|
6853
7452
|
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] }
|
|
7453
|
+
entries_number_visible: { type: 'boolean' }
|
|
6856
7454
|
}
|
|
6857
7455
|
},
|
|
6858
7456
|
WxworkMessageChannelInput: {
|