@jinshuju/cli 0.25.1 → 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/README.md +8 -4
- package/dist/commands/field.js +22 -21
- package/dist/commands/form.js +25 -10
- 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 +1683 -519
- package/dist/http.d.ts +9 -0
- package/dist/http.js +11 -1
- package/dist/preflight.d.ts +4 -6
- package/dist/preflight.js +4 -32
- package/dist/schema.d.ts +0 -2
- package/dist/schema.js +19 -8
- package/dist/spec.d.ts +5 -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' }
|
|
@@ -2069,14 +2199,14 @@ export const SCHEMAS = {
|
|
|
2069
2199
|
required: ['type', 'label'],
|
|
2070
2200
|
properties: {
|
|
2071
2201
|
type: { const: 'AddressField' },
|
|
2072
|
-
label: { type: 'string' },
|
|
2202
|
+
label: { type: ['string', 'null'] },
|
|
2073
2203
|
cid: { type: 'string' },
|
|
2074
|
-
notes: { type: 'string' },
|
|
2204
|
+
notes: { type: ['string', 'null'] },
|
|
2075
2205
|
private: { type: 'boolean' },
|
|
2076
2206
|
required: { type: 'boolean' },
|
|
2077
2207
|
position: { type: 'integer', minimum: 0 },
|
|
2078
|
-
predefined_value: { type: 'object' },
|
|
2079
|
-
changeable: { type: 'object', additionalProperties: { type: 'boolean' } },
|
|
2208
|
+
predefined_value: { type: ['object', 'null'] },
|
|
2209
|
+
changeable: { type: ['object', 'null'], additionalProperties: { type: 'boolean' } },
|
|
2080
2210
|
enable_auto_position: { type: 'boolean' },
|
|
2081
2211
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 2, maximum: 3 },
|
|
2082
2212
|
start_new_row: { type: 'boolean' }
|
|
@@ -2130,22 +2260,46 @@ export const SCHEMAS = {
|
|
|
2130
2260
|
},
|
|
2131
2261
|
additionalProperties: false
|
|
2132
2262
|
},
|
|
2263
|
+
AttachmentFieldColumnInput: {
|
|
2264
|
+
type: 'object',
|
|
2265
|
+
additionalProperties: false,
|
|
2266
|
+
required: ['type', 'label'],
|
|
2267
|
+
properties: {
|
|
2268
|
+
type: { const: 'AttachmentField' },
|
|
2269
|
+
label: { type: ['string', 'null'] },
|
|
2270
|
+
cid: { type: 'string' },
|
|
2271
|
+
notes: { type: ['string', 'null'] },
|
|
2272
|
+
private: { type: 'boolean' },
|
|
2273
|
+
position: { type: 'integer', minimum: 0 },
|
|
2274
|
+
media_type: {
|
|
2275
|
+
type: ['object', 'null'],
|
|
2276
|
+
additionalProperties: false,
|
|
2277
|
+
properties: {
|
|
2278
|
+
type: { type: 'string', enum: ['unlimited', 'doc', 'image', 'video', 'audio', 'compress', 'custom'] },
|
|
2279
|
+
value: { type: 'array', items: { type: 'string' } }
|
|
2280
|
+
},
|
|
2281
|
+
if: { properties: { type: { const: 'custom' } }, required: ['type'] },
|
|
2282
|
+
then: { required: ['value'], properties: { value: { minItems: 1 } } }
|
|
2283
|
+
},
|
|
2284
|
+
mobile_camera_only: { type: 'boolean' }
|
|
2285
|
+
}
|
|
2286
|
+
},
|
|
2133
2287
|
AttachmentFieldInput: {
|
|
2134
2288
|
type: 'object',
|
|
2135
2289
|
additionalProperties: false,
|
|
2136
2290
|
required: ['type', 'label'],
|
|
2137
2291
|
properties: {
|
|
2138
2292
|
type: { const: 'AttachmentField' },
|
|
2139
|
-
label: { type: 'string' },
|
|
2293
|
+
label: { type: ['string', 'null'] },
|
|
2140
2294
|
cid: { type: 'string' },
|
|
2141
|
-
notes: { type: 'string' },
|
|
2295
|
+
notes: { type: ['string', 'null'] },
|
|
2142
2296
|
private: { type: 'boolean' },
|
|
2143
2297
|
required: { type: 'boolean' },
|
|
2144
2298
|
position: { type: 'integer', minimum: 0 },
|
|
2145
|
-
max_size: { type: '
|
|
2146
|
-
max_file_quantity: { type: 'integer', 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 },
|
|
2147
2301
|
media_type: {
|
|
2148
|
-
type: 'object',
|
|
2302
|
+
type: ['object', 'null'],
|
|
2149
2303
|
additionalProperties: false,
|
|
2150
2304
|
properties: {
|
|
2151
2305
|
type: { type: 'string', enum: ['unlimited', 'doc', 'image', 'video', 'audio', 'compress', 'custom'] },
|
|
@@ -2163,26 +2317,71 @@ export const SCHEMAS = {
|
|
|
2163
2317
|
required: ['type', 'label'],
|
|
2164
2318
|
properties: {
|
|
2165
2319
|
type: { const: 'AudioField' },
|
|
2166
|
-
label: { type: 'string' },
|
|
2320
|
+
label: { type: ['string', 'null'] },
|
|
2167
2321
|
cid: { type: 'string' },
|
|
2168
|
-
notes: { type: 'string' },
|
|
2322
|
+
notes: { type: ['string', 'null'] },
|
|
2169
2323
|
private: { type: 'boolean' },
|
|
2170
2324
|
required: { type: 'boolean' },
|
|
2171
2325
|
position: { type: 'integer', minimum: 0 },
|
|
2172
|
-
max_duration: { type: 'integer', minimum: 1, maximum: 5 }
|
|
2326
|
+
max_duration: { type: ['integer', 'null'], minimum: 1, maximum: 5 }
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
AutoCountGenCodeRuleInput: {
|
|
2330
|
+
type: 'object',
|
|
2331
|
+
additionalProperties: false,
|
|
2332
|
+
required: ['type'],
|
|
2333
|
+
properties: {
|
|
2334
|
+
type: { type: 'string', enum: ['auto_count'] },
|
|
2335
|
+
count_digit: { type: 'integer', minimum: 1, maximum: 12 },
|
|
2336
|
+
fixed_digits: { type: 'boolean' },
|
|
2337
|
+
counter: { type: 'integer', minimum: 1 },
|
|
2338
|
+
reset_rule_type: { type: 'string', enum: ['none', 'daily', 'weekly', 'monthly'] }
|
|
2339
|
+
}
|
|
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'] }
|
|
2173
2373
|
}
|
|
2174
2374
|
},
|
|
2175
|
-
|
|
2375
|
+
BooleanFieldColumnInput: {
|
|
2176
2376
|
type: 'object',
|
|
2177
2377
|
additionalProperties: false,
|
|
2178
2378
|
required: ['type', 'label'],
|
|
2179
2379
|
properties: {
|
|
2180
2380
|
type: { const: 'BooleanField' },
|
|
2181
|
-
label: { type: 'string' },
|
|
2381
|
+
label: { type: ['string', 'null'] },
|
|
2182
2382
|
cid: { type: 'string' },
|
|
2183
|
-
notes: { type: 'string' },
|
|
2383
|
+
notes: { type: ['string', 'null'] },
|
|
2184
2384
|
private: { type: 'boolean' },
|
|
2185
|
-
required: { type: 'boolean' },
|
|
2186
2385
|
position: { type: 'integer', minimum: 0 }
|
|
2187
2386
|
}
|
|
2188
2387
|
},
|
|
@@ -2194,9 +2393,8 @@ export const SCHEMAS = {
|
|
|
2194
2393
|
value: { type: 'string' },
|
|
2195
2394
|
name: { type: 'string' },
|
|
2196
2395
|
api_code: { type: 'string' },
|
|
2197
|
-
quota: { type: 'integer', minimum:
|
|
2396
|
+
quota: { type: 'integer', minimum: 0 },
|
|
2198
2397
|
operand_value: { type: 'number' },
|
|
2199
|
-
selected: { type: 'boolean' },
|
|
2200
2398
|
sub_choices: { type: 'array', items: { $ref: 'CascadeChoiceInput' } }
|
|
2201
2399
|
}
|
|
2202
2400
|
},
|
|
@@ -2206,42 +2404,78 @@ export const SCHEMAS = {
|
|
|
2206
2404
|
required: ['type', 'label'],
|
|
2207
2405
|
properties: {
|
|
2208
2406
|
type: { const: 'CascadeDropDown' },
|
|
2209
|
-
label: { type: 'string' },
|
|
2407
|
+
label: { type: ['string', 'null'] },
|
|
2210
2408
|
cid: { type: 'string' },
|
|
2211
|
-
notes: { type: 'string' },
|
|
2409
|
+
notes: { type: ['string', 'null'] },
|
|
2212
2410
|
private: { type: 'boolean' },
|
|
2213
2411
|
required: { type: 'boolean' },
|
|
2214
2412
|
position: { type: 'integer', minimum: 0 },
|
|
2215
2413
|
choices: { type: 'array', minItems: 1, items: { $ref: 'CascadeChoiceInput' } },
|
|
2216
|
-
levels: { type: 'integer', minimum: 2 },
|
|
2217
|
-
choice_filterable: { type: 'boolean' },
|
|
2414
|
+
levels: { type: ['integer', 'null'], minimum: 2, maximum: 4 },
|
|
2218
2415
|
random_choices: { type: 'boolean' },
|
|
2219
2416
|
calculable: { type: 'boolean' },
|
|
2220
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' },
|
|
2221
2421
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2222
2422
|
start_new_row: { type: 'boolean' }
|
|
2223
2423
|
}
|
|
2224
2424
|
},
|
|
2425
|
+
CheckBoxColumnInput: {
|
|
2426
|
+
type: 'object',
|
|
2427
|
+
additionalProperties: false,
|
|
2428
|
+
required: ['type', 'label'],
|
|
2429
|
+
properties: {
|
|
2430
|
+
type: { const: 'CheckBox' },
|
|
2431
|
+
label: { type: ['string', 'null'] },
|
|
2432
|
+
cid: { type: 'string' },
|
|
2433
|
+
notes: { type: ['string', 'null'] },
|
|
2434
|
+
private: { type: 'boolean' },
|
|
2435
|
+
position: { type: 'integer', minimum: 0 },
|
|
2436
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
2437
|
+
calculable: { type: 'boolean' },
|
|
2438
|
+
choices_layout: { type: ['string', 'null'] },
|
|
2439
|
+
random_choices: { type: 'boolean' },
|
|
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' },
|
|
2444
|
+
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2445
|
+
start_new_row: { type: 'boolean' }
|
|
2446
|
+
},
|
|
2447
|
+
allOf: [
|
|
2448
|
+
{
|
|
2449
|
+
if: { properties: { calculable: { const: true } }, required: ['calculable'] },
|
|
2450
|
+
then: { properties: { choices: { items: { required: ['operand_value'] } } } }
|
|
2451
|
+
}
|
|
2452
|
+
]
|
|
2453
|
+
},
|
|
2225
2454
|
CheckBoxInput: {
|
|
2226
2455
|
type: 'object',
|
|
2227
2456
|
additionalProperties: false,
|
|
2228
2457
|
required: ['type', 'label'],
|
|
2229
2458
|
properties: {
|
|
2230
2459
|
type: { const: 'CheckBox' },
|
|
2231
|
-
label: { type: 'string' },
|
|
2460
|
+
label: { type: ['string', 'null'] },
|
|
2232
2461
|
cid: { type: 'string' },
|
|
2233
|
-
notes: { type: 'string' },
|
|
2462
|
+
notes: { type: ['string', 'null'] },
|
|
2234
2463
|
private: { type: 'boolean' },
|
|
2235
2464
|
required: { type: 'boolean' },
|
|
2236
2465
|
position: { type: 'integer', minimum: 0 },
|
|
2237
2466
|
other_choice_required: { type: 'boolean' },
|
|
2238
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
2467
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
2239
2468
|
calculable: { type: 'boolean' },
|
|
2240
|
-
choices_layout: { type: 'string' },
|
|
2469
|
+
choices_layout: { type: ['string', 'null'] },
|
|
2241
2470
|
random_choices: { type: 'boolean' },
|
|
2242
|
-
minimum_length: { type: 'integer', minimum: 0 },
|
|
2243
|
-
maximum_length: { type: 'integer', minimum: 0 },
|
|
2471
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
2472
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
2244
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' } },
|
|
2245
2479
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2246
2480
|
start_new_row: { type: 'boolean' }
|
|
2247
2481
|
},
|
|
@@ -2261,6 +2495,7 @@ export const SCHEMAS = {
|
|
|
2261
2495
|
name: { type: 'string', minLength: 1 },
|
|
2262
2496
|
display_field_api_code: { type: ['string', 'null'] },
|
|
2263
2497
|
enable_checkin_code: { type: 'boolean' },
|
|
2498
|
+
success_message: { type: ['string', 'null'] },
|
|
2264
2499
|
checkin_field_required_unique: { type: 'boolean' },
|
|
2265
2500
|
date_settings: { type: 'array', items: { $ref: 'CheckinDateSetting' } },
|
|
2266
2501
|
geo_location: { oneOf: [{ type: 'null' }, { $ref: 'CheckinGeoLocation' }] }
|
|
@@ -2274,6 +2509,7 @@ export const SCHEMAS = {
|
|
|
2274
2509
|
name: { type: 'string', minLength: 1 },
|
|
2275
2510
|
display_field_api_code: { type: ['string', 'null'] },
|
|
2276
2511
|
enable_checkin_code: { type: 'boolean' },
|
|
2512
|
+
success_message: { type: ['string', 'null'] },
|
|
2277
2513
|
checkin_field_required_unique: { type: 'boolean' },
|
|
2278
2514
|
date_settings: { type: 'array', items: { $ref: 'CheckinDateSetting' } },
|
|
2279
2515
|
geo_location: { oneOf: [{ type: 'null' }, { $ref: 'CheckinGeoLocation' }] }
|
|
@@ -2328,9 +2564,11 @@ export const SCHEMAS = {
|
|
|
2328
2564
|
value: { type: 'string' },
|
|
2329
2565
|
name: { type: 'string' },
|
|
2330
2566
|
api_code: { type: 'string' },
|
|
2331
|
-
quota: { type: 'integer', minimum:
|
|
2567
|
+
quota: { type: 'integer', minimum: 0 },
|
|
2332
2568
|
operand_value: { type: 'number' },
|
|
2333
2569
|
selected: { type: 'boolean' },
|
|
2570
|
+
description_text: { type: ['string', 'null'] },
|
|
2571
|
+
description_url: { type: ['string', 'null'] },
|
|
2334
2572
|
is_other: { type: 'boolean' }
|
|
2335
2573
|
}
|
|
2336
2574
|
},
|
|
@@ -2339,7 +2577,7 @@ export const SCHEMAS = {
|
|
|
2339
2577
|
required: ['field_api_code'],
|
|
2340
2578
|
properties: {
|
|
2341
2579
|
field_api_code: { type: 'string' },
|
|
2342
|
-
add: { type: 'array', items: { $ref: 'ChoiceInput' } },
|
|
2580
|
+
add: { type: 'array', items: { anyOf: [{ $ref: 'ChoiceInput' }, { $ref: 'ImageChoiceInput' }] } },
|
|
2343
2581
|
remove: {
|
|
2344
2582
|
type: 'array',
|
|
2345
2583
|
items: { oneOf: [{ type: 'string' }, { type: 'object', properties: { api_code: { type: 'string' } } }] }
|
|
@@ -2352,10 +2590,12 @@ export const SCHEMAS = {
|
|
|
2352
2590
|
properties: {
|
|
2353
2591
|
api_code: { type: 'string' },
|
|
2354
2592
|
value: { type: 'string' },
|
|
2355
|
-
operand_value: { type: 'number' },
|
|
2593
|
+
operand_value: { type: ['number', 'null'] },
|
|
2356
2594
|
selected: { type: 'boolean' },
|
|
2357
2595
|
quota: { type: ['integer', 'null'], minimum: 0 },
|
|
2358
|
-
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'] }
|
|
2359
2599
|
},
|
|
2360
2600
|
additionalProperties: false
|
|
2361
2601
|
}
|
|
@@ -2363,6 +2603,15 @@ export const SCHEMAS = {
|
|
|
2363
2603
|
},
|
|
2364
2604
|
additionalProperties: false
|
|
2365
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
|
+
},
|
|
2366
2615
|
CopyFormInput: {
|
|
2367
2616
|
type: 'object',
|
|
2368
2617
|
properties: {
|
|
@@ -2378,6 +2627,8 @@ export const SCHEMAS = {
|
|
|
2378
2627
|
enabled: { type: 'boolean' },
|
|
2379
2628
|
time_periods: {
|
|
2380
2629
|
type: 'array',
|
|
2630
|
+
minItems: 1,
|
|
2631
|
+
maxItems: 3,
|
|
2381
2632
|
items: {
|
|
2382
2633
|
type: 'object',
|
|
2383
2634
|
required: ['start_time', 'end_time'],
|
|
@@ -2388,20 +2639,39 @@ export const SCHEMAS = {
|
|
|
2388
2639
|
},
|
|
2389
2640
|
additionalProperties: false
|
|
2390
2641
|
},
|
|
2642
|
+
DateTimeFieldColumnInput: {
|
|
2643
|
+
type: 'object',
|
|
2644
|
+
additionalProperties: false,
|
|
2645
|
+
required: ['type', 'label'],
|
|
2646
|
+
properties: {
|
|
2647
|
+
type: { const: 'DateTimeField' },
|
|
2648
|
+
label: { type: ['string', 'null'] },
|
|
2649
|
+
cid: { type: 'string' },
|
|
2650
|
+
notes: { type: ['string', 'null'] },
|
|
2651
|
+
private: { type: 'boolean' },
|
|
2652
|
+
position: { type: 'integer', minimum: 0 },
|
|
2653
|
+
predefined_value: { type: ['string', 'null'] },
|
|
2654
|
+
precision: { type: ['string', 'null'], enum: ['month', 'day', 'minute', 'second', null] },
|
|
2655
|
+
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2656
|
+
start_new_row: { type: 'boolean' }
|
|
2657
|
+
}
|
|
2658
|
+
},
|
|
2391
2659
|
DateTimeFieldInput: {
|
|
2392
2660
|
type: 'object',
|
|
2393
2661
|
additionalProperties: false,
|
|
2394
2662
|
required: ['type', 'label'],
|
|
2395
2663
|
properties: {
|
|
2396
2664
|
type: { const: 'DateTimeField' },
|
|
2397
|
-
label: { type: 'string' },
|
|
2665
|
+
label: { type: ['string', 'null'] },
|
|
2398
2666
|
cid: { type: 'string' },
|
|
2399
|
-
notes: { type: 'string' },
|
|
2667
|
+
notes: { type: ['string', 'null'] },
|
|
2400
2668
|
private: { type: 'boolean' },
|
|
2401
2669
|
required: { type: 'boolean' },
|
|
2402
2670
|
position: { type: 'integer', minimum: 0 },
|
|
2403
|
-
predefined_value: { type: 'string' },
|
|
2404
|
-
precision: { type: 'string', enum: ['month', 'day', 'minute', 'second'] },
|
|
2671
|
+
predefined_value: { type: ['string', 'null'] },
|
|
2672
|
+
precision: { type: ['string', 'null'], enum: ['month', 'day', 'minute', 'second', null] },
|
|
2673
|
+
start_date: { type: ['string', 'null'] },
|
|
2674
|
+
end_date: { type: ['string', 'null'] },
|
|
2405
2675
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2406
2676
|
start_new_row: { type: 'boolean' }
|
|
2407
2677
|
}
|
|
@@ -2412,18 +2682,21 @@ export const SCHEMAS = {
|
|
|
2412
2682
|
required: ['type', 'label'],
|
|
2413
2683
|
properties: {
|
|
2414
2684
|
type: { const: 'Department' },
|
|
2415
|
-
label: { type: 'string' },
|
|
2685
|
+
label: { type: ['string', 'null'] },
|
|
2416
2686
|
cid: { type: 'string' },
|
|
2417
|
-
notes: { type: 'string' },
|
|
2687
|
+
notes: { type: ['string', 'null'] },
|
|
2418
2688
|
private: { type: 'boolean' },
|
|
2419
2689
|
required: { type: 'boolean' },
|
|
2420
2690
|
position: { type: 'integer', minimum: 0 },
|
|
2421
2691
|
other_choice_required: { type: 'boolean' },
|
|
2422
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
2692
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
2423
2693
|
calculable: { type: 'boolean' },
|
|
2424
|
-
choices_layout: { type: 'string' },
|
|
2694
|
+
choices_layout: { type: ['string', 'null'] },
|
|
2425
2695
|
random_choices: { type: 'boolean' },
|
|
2426
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' },
|
|
2427
2700
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2428
2701
|
start_new_row: { type: 'boolean' }
|
|
2429
2702
|
},
|
|
@@ -2493,17 +2766,20 @@ export const SCHEMAS = {
|
|
|
2493
2766
|
required: ['type', 'label'],
|
|
2494
2767
|
properties: {
|
|
2495
2768
|
type: { const: 'DropDown' },
|
|
2496
|
-
label: { type: 'string' },
|
|
2769
|
+
label: { type: ['string', 'null'] },
|
|
2497
2770
|
cid: { type: 'string' },
|
|
2498
|
-
notes: { type: 'string' },
|
|
2771
|
+
notes: { type: ['string', 'null'] },
|
|
2499
2772
|
private: { type: 'boolean' },
|
|
2500
2773
|
required: { type: 'boolean' },
|
|
2501
2774
|
position: { type: 'integer', minimum: 0 },
|
|
2502
2775
|
other_choice_required: { type: 'boolean' },
|
|
2503
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
2776
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
2504
2777
|
calculable: { type: 'boolean' },
|
|
2505
2778
|
random_choices: { type: 'boolean' },
|
|
2506
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' },
|
|
2507
2783
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2508
2784
|
start_new_row: { type: 'boolean' }
|
|
2509
2785
|
},
|
|
@@ -2520,17 +2796,20 @@ export const SCHEMAS = {
|
|
|
2520
2796
|
required: ['type', 'label', 'choices', 'answers'],
|
|
2521
2797
|
properties: {
|
|
2522
2798
|
type: { const: 'DropDownSelect' },
|
|
2523
|
-
label: { type: 'string' },
|
|
2799
|
+
label: { type: ['string', 'null'] },
|
|
2524
2800
|
cid: { type: 'string' },
|
|
2525
|
-
notes: { type: 'string' },
|
|
2801
|
+
notes: { type: ['string', 'null'] },
|
|
2526
2802
|
private: { type: 'boolean' },
|
|
2527
2803
|
required: { type: 'boolean' },
|
|
2528
2804
|
position: { type: 'integer', minimum: 0 },
|
|
2529
2805
|
other_choice_required: { type: 'boolean' },
|
|
2530
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
2806
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
2531
2807
|
calculable: { type: 'boolean' },
|
|
2532
2808
|
random_choices: { type: 'boolean' },
|
|
2533
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' },
|
|
2534
2813
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2535
2814
|
start_new_row: { type: 'boolean' },
|
|
2536
2815
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -2559,28 +2838,44 @@ export const SCHEMAS = {
|
|
|
2559
2838
|
required: ['type', 'label'],
|
|
2560
2839
|
properties: {
|
|
2561
2840
|
type: { const: 'ESignatureField' },
|
|
2562
|
-
label: { type: 'string' },
|
|
2841
|
+
label: { type: ['string', 'null'] },
|
|
2563
2842
|
cid: { type: 'string' },
|
|
2564
|
-
notes: { type: 'string' },
|
|
2843
|
+
notes: { type: ['string', 'null'] },
|
|
2565
2844
|
private: { type: 'boolean' },
|
|
2566
2845
|
required: { type: 'boolean' },
|
|
2567
2846
|
position: { type: 'integer', minimum: 0 }
|
|
2568
2847
|
}
|
|
2569
2848
|
},
|
|
2849
|
+
EmailFieldColumnInput: {
|
|
2850
|
+
type: 'object',
|
|
2851
|
+
additionalProperties: false,
|
|
2852
|
+
required: ['type', 'label'],
|
|
2853
|
+
properties: {
|
|
2854
|
+
type: { const: 'EmailField' },
|
|
2855
|
+
label: { type: ['string', 'null'] },
|
|
2856
|
+
cid: { type: 'string' },
|
|
2857
|
+
notes: { type: ['string', 'null'] },
|
|
2858
|
+
private: { type: 'boolean' },
|
|
2859
|
+
position: { type: 'integer', minimum: 0 },
|
|
2860
|
+
placeholder: { type: ['string', 'null'] },
|
|
2861
|
+
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2862
|
+
start_new_row: { type: 'boolean' }
|
|
2863
|
+
}
|
|
2864
|
+
},
|
|
2570
2865
|
EmailFieldInput: {
|
|
2571
2866
|
type: 'object',
|
|
2572
2867
|
additionalProperties: false,
|
|
2573
2868
|
required: ['type', 'label'],
|
|
2574
2869
|
properties: {
|
|
2575
2870
|
type: { const: 'EmailField' },
|
|
2576
|
-
label: { type: 'string' },
|
|
2871
|
+
label: { type: ['string', 'null'] },
|
|
2577
2872
|
cid: { type: 'string' },
|
|
2578
|
-
notes: { type: 'string' },
|
|
2873
|
+
notes: { type: ['string', 'null'] },
|
|
2579
2874
|
private: { type: 'boolean' },
|
|
2580
2875
|
required: { type: 'boolean' },
|
|
2581
2876
|
position: { type: 'integer', minimum: 0 },
|
|
2582
2877
|
unique: { type: 'boolean' },
|
|
2583
|
-
placeholder: { type: 'string' },
|
|
2878
|
+
placeholder: { type: ['string', 'null'] },
|
|
2584
2879
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
2585
2880
|
start_new_row: { type: 'boolean' }
|
|
2586
2881
|
}
|
|
@@ -2722,6 +3017,7 @@ export const SCHEMAS = {
|
|
|
2722
3017
|
'LikertField',
|
|
2723
3018
|
'MatrixField',
|
|
2724
3019
|
'MatrixScaleField',
|
|
3020
|
+
'MultipleBlanksField',
|
|
2725
3021
|
'GoodsField',
|
|
2726
3022
|
'FormulaField',
|
|
2727
3023
|
'ReservationField',
|
|
@@ -2743,7 +3039,7 @@ export const SCHEMAS = {
|
|
|
2743
3039
|
'Nps'
|
|
2744
3040
|
]
|
|
2745
3041
|
},
|
|
2746
|
-
label: { type: 'string' }
|
|
3042
|
+
label: { type: ['string', 'null'] }
|
|
2747
3043
|
},
|
|
2748
3044
|
discriminator: {
|
|
2749
3045
|
propertyName: 'type',
|
|
@@ -2775,6 +3071,7 @@ export const SCHEMAS = {
|
|
|
2775
3071
|
LikertField: 'LikertFieldInput',
|
|
2776
3072
|
MatrixField: 'MatrixFieldInput',
|
|
2777
3073
|
MatrixScaleField: 'MatrixScaleFieldInput',
|
|
3074
|
+
MultipleBlanksField: 'MultipleBlanksFieldInput',
|
|
2778
3075
|
GoodsField: 'GoodsFieldInput',
|
|
2779
3076
|
FormulaField: 'FormulaFieldInput',
|
|
2780
3077
|
ReservationField: 'ReservationFieldInput',
|
|
@@ -2824,6 +3121,7 @@ export const SCHEMAS = {
|
|
|
2824
3121
|
{ $ref: 'LikertFieldInput' },
|
|
2825
3122
|
{ $ref: 'MatrixFieldInput' },
|
|
2826
3123
|
{ $ref: 'MatrixScaleFieldInput' },
|
|
3124
|
+
{ $ref: 'MultipleBlanksFieldInput' },
|
|
2827
3125
|
{ $ref: 'GoodsFieldInput' },
|
|
2828
3126
|
{ $ref: 'FormulaFieldInput' },
|
|
2829
3127
|
{ $ref: 'ReservationFieldInput' },
|
|
@@ -2854,6 +3152,8 @@ export const SCHEMAS = {
|
|
|
2854
3152
|
show_indicator_comments: { type: 'boolean' },
|
|
2855
3153
|
show_comments: { type: 'boolean' },
|
|
2856
3154
|
need_attention: { type: 'string' },
|
|
3155
|
+
show_dispatcher_structure: { type: 'boolean' },
|
|
3156
|
+
show_question_settings_structure: { type: 'boolean' },
|
|
2857
3157
|
success_message_rich_text: { type: 'string' },
|
|
2858
3158
|
evaluation_comments: { type: 'array', items: { $ref: 'FormEvaluationCommentInput' } },
|
|
2859
3159
|
indicator_setting: {
|
|
@@ -2956,7 +3256,7 @@ export const SCHEMAS = {
|
|
|
2956
3256
|
'Grade'
|
|
2957
3257
|
]
|
|
2958
3258
|
},
|
|
2959
|
-
label: { type: 'string' }
|
|
3259
|
+
label: { type: ['string', 'null'] }
|
|
2960
3260
|
},
|
|
2961
3261
|
discriminator: {
|
|
2962
3262
|
propertyName: 'type',
|
|
@@ -3073,6 +3373,8 @@ export const SCHEMAS = {
|
|
|
3073
3373
|
show_timeout: { type: 'boolean' },
|
|
3074
3374
|
limited_time: { type: 'integer', minimum: 1, maximum: 9999 },
|
|
3075
3375
|
need_attention: { type: 'string' },
|
|
3376
|
+
show_dispatcher_structure: { type: 'boolean' },
|
|
3377
|
+
show_question_settings_structure: { type: 'boolean' },
|
|
3076
3378
|
success_message_rich_text: { type: 'string' },
|
|
3077
3379
|
interval_comments: { type: 'array', items: { $ref: 'FormIntervalCommentInput' } },
|
|
3078
3380
|
random_questions: {
|
|
@@ -3119,6 +3421,41 @@ export const SCHEMAS = {
|
|
|
3119
3421
|
},
|
|
3120
3422
|
additionalProperties: false
|
|
3121
3423
|
},
|
|
3424
|
+
FieldAnalytics: {
|
|
3425
|
+
type: 'object',
|
|
3426
|
+
required: ['agg_funcs', 'summary_kind', 'groupable', 'buckets', 'default_agg', 'summarisable'],
|
|
3427
|
+
properties: {
|
|
3428
|
+
agg_funcs: { type: 'array', items: { type: 'string' } },
|
|
3429
|
+
summary_kind: { type: 'string', enum: ['choice', 'matrix', 'number', 'date', 'text', 'geo'] },
|
|
3430
|
+
groupable: { type: 'boolean' },
|
|
3431
|
+
buckets: { type: 'array', items: { type: 'string', enum: ['day', 'week', 'month'] } },
|
|
3432
|
+
default_agg: { type: 'string' },
|
|
3433
|
+
summarisable: { type: 'boolean' }
|
|
3434
|
+
}
|
|
3435
|
+
},
|
|
3436
|
+
FieldChoiceInput: {
|
|
3437
|
+
type: 'object',
|
|
3438
|
+
additionalProperties: false,
|
|
3439
|
+
anyOf: [{ required: ['value'] }, { required: ['name'] }],
|
|
3440
|
+
properties: {
|
|
3441
|
+
api_code: { type: 'string' },
|
|
3442
|
+
value: { type: 'string' },
|
|
3443
|
+
quota: { type: ['integer', 'null'], minimum: 0 },
|
|
3444
|
+
quota_left: { type: ['integer', 'null'] },
|
|
3445
|
+
operand_value: { type: ['number', 'null'] },
|
|
3446
|
+
selected: { type: 'boolean' },
|
|
3447
|
+
is_other: { type: 'boolean' },
|
|
3448
|
+
hidden: { type: 'boolean' },
|
|
3449
|
+
allow_extended_text: { type: 'boolean' },
|
|
3450
|
+
extended_text_required: { type: 'boolean' },
|
|
3451
|
+
description_text: { type: ['string', 'null'] },
|
|
3452
|
+
description_url: { type: ['string', 'null'] },
|
|
3453
|
+
attachment_id: { type: 'string' },
|
|
3454
|
+
image_url: { type: ['string', 'null'] },
|
|
3455
|
+
sub_choices: { type: 'array', items: { $ref: 'FieldChoiceInput' } },
|
|
3456
|
+
name: { type: 'string' }
|
|
3457
|
+
}
|
|
3458
|
+
},
|
|
3122
3459
|
FieldDataCheck: {
|
|
3123
3460
|
type: 'object',
|
|
3124
3461
|
required: ['field_api_code'],
|
|
@@ -3134,47 +3471,145 @@ export const SCHEMAS = {
|
|
|
3134
3471
|
goods_item_dimension_options: { type: 'object' }
|
|
3135
3472
|
}
|
|
3136
3473
|
},
|
|
3137
|
-
|
|
3474
|
+
FieldDimensionInput: {
|
|
3138
3475
|
type: 'object',
|
|
3476
|
+
additionalProperties: false,
|
|
3139
3477
|
required: ['type', 'label'],
|
|
3140
3478
|
properties: {
|
|
3479
|
+
api_code: { type: 'string' },
|
|
3141
3480
|
type: {
|
|
3142
3481
|
type: 'string',
|
|
3143
3482
|
enum: [
|
|
3144
3483
|
'TextField',
|
|
3145
3484
|
'TextArea',
|
|
3146
|
-
'NumberField',
|
|
3147
|
-
'EmailField',
|
|
3148
3485
|
'MobileField',
|
|
3149
|
-
'IdCardField',
|
|
3150
|
-
'NameField',
|
|
3151
|
-
'RadioButton',
|
|
3152
3486
|
'CheckBox',
|
|
3153
3487
|
'DropDown',
|
|
3154
|
-
'DateTimeField',
|
|
3155
|
-
'RatingField',
|
|
3156
|
-
'TableField',
|
|
3157
|
-
'TelephoneField',
|
|
3158
|
-
'AddressField',
|
|
3159
|
-
'AttachmentField',
|
|
3160
|
-
'GeoField',
|
|
3161
|
-
'LinkField',
|
|
3162
|
-
'NpsField',
|
|
3163
|
-
'TimeField',
|
|
3164
|
-
'SortField',
|
|
3165
|
-
'ESignatureField',
|
|
3166
|
-
'AudioField',
|
|
3167
3488
|
'CascadeDropDown',
|
|
3168
|
-
'
|
|
3169
|
-
'MatrixField',
|
|
3170
|
-
'MatrixScaleField',
|
|
3171
|
-
'GoodsField',
|
|
3489
|
+
'NumberField',
|
|
3172
3490
|
'FormulaField',
|
|
3173
|
-
'
|
|
3174
|
-
'
|
|
3175
|
-
'
|
|
3176
|
-
'
|
|
3177
|
-
'
|
|
3491
|
+
'DateTimeField',
|
|
3492
|
+
'TimeField',
|
|
3493
|
+
'AttachmentField',
|
|
3494
|
+
'IdCardField',
|
|
3495
|
+
'EmailField'
|
|
3496
|
+
]
|
|
3497
|
+
},
|
|
3498
|
+
label: { type: ['string', 'null'] },
|
|
3499
|
+
choices: { type: 'array', items: { $ref: 'FieldChoiceInput' } },
|
|
3500
|
+
cid: { type: 'string' },
|
|
3501
|
+
notes: { type: ['string', 'null'] },
|
|
3502
|
+
private: { type: 'boolean' },
|
|
3503
|
+
predefined_value: {},
|
|
3504
|
+
placeholder: { type: ['string', 'null'] },
|
|
3505
|
+
minimum_length: { type: ['integer', 'null'] },
|
|
3506
|
+
maximum_length: { type: ['integer', 'null'] },
|
|
3507
|
+
scannable: { type: 'boolean' },
|
|
3508
|
+
access_control_list_limit: { type: 'boolean' },
|
|
3509
|
+
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
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'] },
|
|
3524
|
+
api_code_alias: { type: ['string', 'null'] },
|
|
3525
|
+
sms_verification: { type: 'boolean' },
|
|
3526
|
+
calculable: { type: 'boolean' },
|
|
3527
|
+
choices_layout: { type: ['string', 'null'] },
|
|
3528
|
+
random_choices: { type: 'boolean' },
|
|
3529
|
+
hide_choice_when_quota_empty: { type: 'boolean' },
|
|
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'] },
|
|
3534
|
+
range_min: { type: ['number', 'null'] },
|
|
3535
|
+
range_max: { type: ['number', 'null'] },
|
|
3536
|
+
precision: {
|
|
3537
|
+
anyOf: [
|
|
3538
|
+
{ type: 'integer', minimum: 0, maximum: 14 },
|
|
3539
|
+
{ type: 'string', enum: ['month', 'day', 'minute', 'second'] },
|
|
3540
|
+
{ type: 'null' }
|
|
3541
|
+
]
|
|
3542
|
+
},
|
|
3543
|
+
display_as_percentage: { type: 'boolean' },
|
|
3544
|
+
thousands_separator: { type: 'boolean' },
|
|
3545
|
+
icon_type: {
|
|
3546
|
+
type: ['string', 'null'],
|
|
3547
|
+
enum: ['none', 'number-2', 'dollar1', 'cny1', 'formula-2', 'date-2', 'sum', 'text2', null]
|
|
3548
|
+
},
|
|
3549
|
+
formula: { type: ['string', 'null'] },
|
|
3550
|
+
formula_display: { type: ['string', 'null'] },
|
|
3551
|
+
result_display_type: { type: ['string', 'null'], enum: ['string', 'numeric', 'datetime', 'boolean', null] },
|
|
3552
|
+
result_display_as_date: { type: 'boolean' },
|
|
3553
|
+
start_date: { type: ['string', 'null'] },
|
|
3554
|
+
end_date: { type: ['string', 'null'] },
|
|
3555
|
+
include_second: { type: 'boolean' },
|
|
3556
|
+
max_size: { type: ['number', 'null'] },
|
|
3557
|
+
max_file_quantity: { type: ['integer', 'null'] },
|
|
3558
|
+
media_type: {
|
|
3559
|
+
type: ['object', 'null'],
|
|
3560
|
+
additionalProperties: false,
|
|
3561
|
+
properties: {
|
|
3562
|
+
type: { type: 'string', enum: ['unlimited', 'doc', 'image', 'video', 'audio', 'compress', 'custom'] },
|
|
3563
|
+
value: { type: 'array', items: { type: 'string' } }
|
|
3564
|
+
},
|
|
3565
|
+
if: { properties: { type: { const: 'custom' } }, required: ['type'] },
|
|
3566
|
+
then: { required: ['value'], properties: { value: { minItems: 1 } } }
|
|
3567
|
+
},
|
|
3568
|
+
mobile_camera_only: { type: 'boolean' }
|
|
3569
|
+
}
|
|
3570
|
+
},
|
|
3571
|
+
FieldInput: {
|
|
3572
|
+
type: 'object',
|
|
3573
|
+
required: ['type', 'label'],
|
|
3574
|
+
properties: {
|
|
3575
|
+
type: {
|
|
3576
|
+
type: 'string',
|
|
3577
|
+
enum: [
|
|
3578
|
+
'TextField',
|
|
3579
|
+
'TextArea',
|
|
3580
|
+
'NumberField',
|
|
3581
|
+
'EmailField',
|
|
3582
|
+
'MobileField',
|
|
3583
|
+
'IdCardField',
|
|
3584
|
+
'NameField',
|
|
3585
|
+
'RadioButton',
|
|
3586
|
+
'CheckBox',
|
|
3587
|
+
'DropDown',
|
|
3588
|
+
'DateTimeField',
|
|
3589
|
+
'RatingField',
|
|
3590
|
+
'TableField',
|
|
3591
|
+
'TelephoneField',
|
|
3592
|
+
'AddressField',
|
|
3593
|
+
'AttachmentField',
|
|
3594
|
+
'GeoField',
|
|
3595
|
+
'LinkField',
|
|
3596
|
+
'NpsField',
|
|
3597
|
+
'TimeField',
|
|
3598
|
+
'SortField',
|
|
3599
|
+
'ESignatureField',
|
|
3600
|
+
'AudioField',
|
|
3601
|
+
'CascadeDropDown',
|
|
3602
|
+
'LikertField',
|
|
3603
|
+
'MatrixField',
|
|
3604
|
+
'MatrixScaleField',
|
|
3605
|
+
'MultipleBlanksField',
|
|
3606
|
+
'GoodsField',
|
|
3607
|
+
'FormulaField',
|
|
3608
|
+
'ReservationField',
|
|
3609
|
+
'FormAssociation',
|
|
3610
|
+
'ImageRadioButton',
|
|
3611
|
+
'ImageCheckBox',
|
|
3612
|
+
'SectionBreak',
|
|
3178
3613
|
'PageBreak',
|
|
3179
3614
|
'WidgetButton',
|
|
3180
3615
|
'WidgetContact',
|
|
@@ -3182,7 +3617,7 @@ export const SCHEMAS = {
|
|
|
3182
3617
|
'WidgetMarquee'
|
|
3183
3618
|
]
|
|
3184
3619
|
},
|
|
3185
|
-
label: { type: 'string' }
|
|
3620
|
+
label: { type: ['string', 'null'] }
|
|
3186
3621
|
},
|
|
3187
3622
|
discriminator: {
|
|
3188
3623
|
propertyName: 'type',
|
|
@@ -3214,6 +3649,7 @@ export const SCHEMAS = {
|
|
|
3214
3649
|
LikertField: 'LikertFieldInput',
|
|
3215
3650
|
MatrixField: 'MatrixFieldInput',
|
|
3216
3651
|
MatrixScaleField: 'MatrixScaleFieldInput',
|
|
3652
|
+
MultipleBlanksField: 'MultipleBlanksFieldInput',
|
|
3217
3653
|
GoodsField: 'GoodsFieldInput',
|
|
3218
3654
|
FormulaField: 'FormulaFieldInput',
|
|
3219
3655
|
ReservationField: 'ReservationFieldInput',
|
|
@@ -3256,6 +3692,7 @@ export const SCHEMAS = {
|
|
|
3256
3692
|
{ $ref: 'LikertFieldInput' },
|
|
3257
3693
|
{ $ref: 'MatrixFieldInput' },
|
|
3258
3694
|
{ $ref: 'MatrixScaleFieldInput' },
|
|
3695
|
+
{ $ref: 'MultipleBlanksFieldInput' },
|
|
3259
3696
|
{ $ref: 'GoodsFieldInput' },
|
|
3260
3697
|
{ $ref: 'FormulaFieldInput' },
|
|
3261
3698
|
{ $ref: 'ReservationFieldInput' },
|
|
@@ -3286,15 +3723,7 @@ export const SCHEMAS = {
|
|
|
3286
3723
|
targets: { type: 'array', items: { type: 'string' } },
|
|
3287
3724
|
targets_display_mode: { type: 'string', enum: ['show', 'abort'] },
|
|
3288
3725
|
operator: { type: 'string', enum: ['or', 'and'] },
|
|
3289
|
-
conditions: {
|
|
3290
|
-
type: 'array',
|
|
3291
|
-
items: {
|
|
3292
|
-
type: 'object',
|
|
3293
|
-
required: ['trigger'],
|
|
3294
|
-
properties: { trigger: { type: 'string' }, comparator: { type: 'string' }, value: {} },
|
|
3295
|
-
additionalProperties: false
|
|
3296
|
-
}
|
|
3297
|
-
}
|
|
3726
|
+
conditions: { type: 'array', items: { $ref: 'RuleConditionInput' } }
|
|
3298
3727
|
},
|
|
3299
3728
|
additionalProperties: false
|
|
3300
3729
|
},
|
|
@@ -3343,6 +3772,7 @@ export const SCHEMAS = {
|
|
|
3343
3772
|
'LikertField',
|
|
3344
3773
|
'MatrixField',
|
|
3345
3774
|
'MatrixScaleField',
|
|
3775
|
+
'MultipleBlanksField',
|
|
3346
3776
|
'GoodsField',
|
|
3347
3777
|
'FormulaField',
|
|
3348
3778
|
'ReservationField',
|
|
@@ -3354,63 +3784,118 @@ export const SCHEMAS = {
|
|
|
3354
3784
|
'WidgetButton',
|
|
3355
3785
|
'WidgetContact',
|
|
3356
3786
|
'WidgetMap',
|
|
3357
|
-
'WidgetMarquee'
|
|
3787
|
+
'WidgetMarquee',
|
|
3788
|
+
'SingleSelect',
|
|
3789
|
+
'MultiSelect',
|
|
3790
|
+
'ImageSingleSelect',
|
|
3791
|
+
'ImageMultiSelect',
|
|
3792
|
+
'TrueOrFalse',
|
|
3793
|
+
'DropDownSelect',
|
|
3794
|
+
'FillInBlank',
|
|
3795
|
+
'ShortAnswer',
|
|
3796
|
+
'FillInNumber',
|
|
3797
|
+
'Rating',
|
|
3798
|
+
'Nps',
|
|
3799
|
+
'Department',
|
|
3800
|
+
'Grade',
|
|
3801
|
+
'ReversedAssociation',
|
|
3802
|
+
'Divider',
|
|
3803
|
+
'StyledText',
|
|
3804
|
+
'ImageText',
|
|
3805
|
+
'Carousel',
|
|
3806
|
+
'Timer',
|
|
3807
|
+
'ImageGroup',
|
|
3808
|
+
'WidgetVideo',
|
|
3809
|
+
'BooleanField',
|
|
3810
|
+
'RelationField',
|
|
3811
|
+
'SequenceField',
|
|
3812
|
+
'LookupField',
|
|
3813
|
+
'RollupField'
|
|
3358
3814
|
]
|
|
3359
3815
|
},
|
|
3360
3816
|
confirm_data_loss: { type: 'boolean' },
|
|
3361
|
-
label: { type: 'string' },
|
|
3362
|
-
notes: { type: 'string' },
|
|
3817
|
+
label: { type: ['string', 'null'] },
|
|
3818
|
+
notes: { type: ['string', 'null'] },
|
|
3363
3819
|
private: { type: 'boolean' },
|
|
3364
3820
|
required: { type: 'boolean' },
|
|
3365
3821
|
unique: { type: 'boolean' },
|
|
3366
3822
|
other_choice_required: { type: 'boolean' },
|
|
3367
3823
|
position: { type: 'integer', minimum: 0 },
|
|
3368
|
-
rating_max: { type: 'integer', minimum:
|
|
3369
|
-
choices: { type: 'array', items: { $ref: '
|
|
3370
|
-
dimensions: { type: 'array', items: { $ref: '
|
|
3824
|
+
rating_max: { type: 'integer', minimum: 3, maximum: 10 },
|
|
3825
|
+
choices: { type: 'array', items: { $ref: 'FieldChoiceInput' } },
|
|
3826
|
+
dimensions: { type: 'array', items: { $ref: 'FieldDimensionInput' } },
|
|
3371
3827
|
statements: { type: 'array', items: { $ref: 'StatementInput' } },
|
|
3372
3828
|
goods_items: { type: 'array', items: { $ref: 'GoodsItemUpdateInput' } },
|
|
3373
3829
|
reservation_items: { type: 'array', items: { $ref: 'ReservationItemInput' } },
|
|
3374
3830
|
buttons: { type: 'array', minItems: 1, items: { $ref: 'WidgetButtonItemInput' } },
|
|
3375
3831
|
segments: { type: 'array', minItems: 1, items: { $ref: 'SequenceSegmentInput' } },
|
|
3376
3832
|
display_field_api_codes: { type: 'array', maxItems: 20, items: { type: 'string' } },
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3833
|
+
init_row_length: { type: 'integer', minimum: 1 },
|
|
3834
|
+
widget_images: { type: 'array', items: { $ref: 'WidgetImageInput' } },
|
|
3835
|
+
answers: { type: 'array', items: { $ref: 'AnswerInput' } },
|
|
3836
|
+
answer_setting_mode: { type: ['string', 'null'], enum: ['absolute', 'partial_absolute', 'relative', null] },
|
|
3837
|
+
answer_explanation: { type: ['string', 'null'] },
|
|
3838
|
+
api_code_alias: { type: ['string', 'null'] },
|
|
3839
|
+
analytics: { anyOf: [{ $ref: 'FieldAnalytics' }, { type: 'null' }] },
|
|
3380
3840
|
calculable: { type: 'boolean' },
|
|
3381
|
-
choices_layout: { type: 'string' },
|
|
3841
|
+
choices_layout: { type: ['string', 'null'] },
|
|
3382
3842
|
random_choices: { type: 'boolean' },
|
|
3383
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' },
|
|
3384
3847
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
3385
3848
|
start_new_row: { type: 'boolean' },
|
|
3386
|
-
minimum_length: { type: 'integer', minimum: 0 },
|
|
3387
|
-
maximum_length: { type: 'integer', minimum: 0 },
|
|
3849
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
3850
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
3851
|
+
with_exclusive_choice: { type: 'boolean' },
|
|
3852
|
+
exclusive_choice_api_codes: { type: 'array', items: { type: 'string' } },
|
|
3388
3853
|
predefined_value: {},
|
|
3389
|
-
placeholder: { type: 'string' },
|
|
3854
|
+
placeholder: { type: ['string', 'null'] },
|
|
3855
|
+
scannable: { type: 'boolean' },
|
|
3856
|
+
access_control_list_limit: { type: 'boolean' },
|
|
3857
|
+
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
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 },
|
|
3390
3872
|
sms_verification: { type: 'boolean' },
|
|
3391
|
-
range_min: { type: 'number' },
|
|
3392
|
-
range_max: { type: 'number' },
|
|
3873
|
+
range_min: { type: ['number', 'null'] },
|
|
3874
|
+
range_max: { type: ['number', 'null'] },
|
|
3393
3875
|
precision: {
|
|
3394
3876
|
anyOf: [
|
|
3395
3877
|
{ type: 'integer', minimum: 0, maximum: 14 },
|
|
3396
|
-
{ type: 'string', enum: ['month', 'day', 'minute', 'second'] }
|
|
3878
|
+
{ type: 'string', enum: ['month', 'day', 'minute', 'second'] },
|
|
3879
|
+
{ type: 'null' }
|
|
3397
3880
|
]
|
|
3398
3881
|
},
|
|
3399
|
-
display_precision: { type: 'integer', minimum: 0 },
|
|
3882
|
+
display_precision: { type: ['integer', 'null'], minimum: 0 },
|
|
3400
3883
|
display_as_percentage: { type: 'boolean' },
|
|
3401
3884
|
thousands_separator: { type: 'boolean' },
|
|
3402
|
-
currency_symbol: { type: 'string' },
|
|
3403
|
-
currency_symbol_position: { type: 'string', enum: ['prefix', 'suffix'] },
|
|
3885
|
+
currency_symbol: { type: ['string', 'null'] },
|
|
3886
|
+
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
|
|
3404
3887
|
icon_type: {
|
|
3405
|
-
type: 'string',
|
|
3406
|
-
enum: ['none', 'number-2', 'dollar1', 'cny1', 'formula-2', 'date-2', 'sum', '
|
|
3888
|
+
type: ['string', 'null'],
|
|
3889
|
+
enum: ['none', 'number-2', 'dollar1', 'cny1', 'formula-2', 'date-2', 'sum', 'text2', null]
|
|
3407
3890
|
},
|
|
3408
|
-
|
|
3891
|
+
start_date: { type: ['string', 'null'] },
|
|
3892
|
+
end_date: { type: ['string', 'null'] },
|
|
3893
|
+
changeable: { type: ['object', 'null'], additionalProperties: { type: 'boolean' } },
|
|
3409
3894
|
enable_auto_position: { type: 'boolean' },
|
|
3410
|
-
max_size: { type: '
|
|
3411
|
-
max_file_quantity: { type: 'integer', 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 },
|
|
3412
3897
|
media_type: {
|
|
3413
|
-
type: 'object',
|
|
3898
|
+
type: ['object', 'null'],
|
|
3414
3899
|
additionalProperties: false,
|
|
3415
3900
|
properties: {
|
|
3416
3901
|
type: { type: 'string', enum: ['unlimited', 'doc', 'image', 'video', 'audio', 'compress', 'custom'] },
|
|
@@ -3420,61 +3905,92 @@ export const SCHEMAS = {
|
|
|
3420
3905
|
then: { required: ['value'], properties: { value: { minItems: 1 } } }
|
|
3421
3906
|
},
|
|
3422
3907
|
mobile_camera_only: { type: 'boolean' },
|
|
3423
|
-
minimum_ratings_display_text: { type: 'string' },
|
|
3424
|
-
maximum_ratings_display_text: { type: 'string' },
|
|
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'] },
|
|
3425
3911
|
include_second: { type: 'boolean' },
|
|
3426
|
-
max_duration: { type: 'integer', minimum: 1, maximum: 5 },
|
|
3427
|
-
levels: { type: 'integer', minimum: 2 },
|
|
3428
|
-
choice_filterable: { type: 'boolean' },
|
|
3912
|
+
max_duration: { type: ['integer', 'null'], minimum: 1, maximum: 5 },
|
|
3913
|
+
levels: { type: ['integer', 'null'], minimum: 2, maximum: 4 },
|
|
3429
3914
|
horizontal_on_mobile: { type: 'boolean' },
|
|
3430
|
-
likert_choice_style: { type: 'string', enum: ['single', 'multiple'] },
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
formula_display: { type: 'string' },
|
|
3437
|
-
result_display_type: { type: 'string', enum: ['string', 'numeric', 'datetime', 'boolean'] },
|
|
3915
|
+
likert_choice_style: { type: ['string', 'null'], enum: ['single', 'multiple', null] },
|
|
3916
|
+
unit: { type: ['string', 'null'], maxLength: 2 },
|
|
3917
|
+
columns_on_mobile: { type: ['integer', 'null'], minimum: 1, maximum: 2 },
|
|
3918
|
+
formula: { type: ['string', 'null'] },
|
|
3919
|
+
formula_display: { type: ['string', 'null'] },
|
|
3920
|
+
result_display_type: { type: ['string', 'null'], enum: ['string', 'numeric', 'datetime', 'boolean', null] },
|
|
3438
3921
|
result_display_as_date: { type: 'boolean' },
|
|
3439
3922
|
allow_multiple_items: { type: 'boolean' },
|
|
3440
3923
|
item_allow_multiple_reservations: { type: 'boolean' },
|
|
3441
3924
|
allow_multiple_number: { type: 'boolean' },
|
|
3442
|
-
use_daily_time_range: { type: 'boolean' },
|
|
3443
3925
|
associated_form_token: { type: 'string' },
|
|
3444
3926
|
associated_field_api_codes: { type: 'array', minItems: 1, maxItems: 4, items: { type: 'string' } },
|
|
3445
3927
|
privacy_safe: { type: 'boolean' },
|
|
3446
|
-
|
|
3447
|
-
|
|
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
|
+
},
|
|
3448
3966
|
related_form_token: { type: 'string' },
|
|
3449
3967
|
paired: { type: 'boolean' },
|
|
3450
|
-
related_label: { type: 'string' },
|
|
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] },
|
|
3451
3972
|
show_split_line: { type: 'boolean' },
|
|
3452
3973
|
show_part_description: { type: 'boolean' },
|
|
3453
3974
|
disable_previous_page: { type: 'boolean' },
|
|
3454
|
-
previous_page_text: { type: 'string' },
|
|
3455
|
-
next_page_text: { type: 'string' },
|
|
3456
|
-
count_down: { type: 'integer', minimum: 0 },
|
|
3457
|
-
buttons_number: { type: 'integer', minimum: 1 },
|
|
3458
|
-
fixed_to_bottom: { type: 'boolean' },
|
|
3459
|
-
widget_max_images_number: { type: 'integer', minimum: 1 },
|
|
3975
|
+
previous_page_text: { type: ['string', 'null'] },
|
|
3976
|
+
next_page_text: { type: ['string', 'null'] },
|
|
3977
|
+
count_down: { type: ['integer', 'null'], minimum: 0 },
|
|
3978
|
+
buttons_number: { type: ['integer', 'null'], minimum: 1 },
|
|
3460
3979
|
phones: {
|
|
3461
3980
|
type: 'array',
|
|
3462
3981
|
items: {
|
|
3463
3982
|
type: 'object',
|
|
3464
3983
|
required: ['phone'],
|
|
3465
3984
|
additionalProperties: false,
|
|
3466
|
-
properties: { phone: { type: 'string' } }
|
|
3985
|
+
properties: { phone: { type: 'string' }, notes: { type: ['string', 'null'] } }
|
|
3467
3986
|
}
|
|
3468
3987
|
},
|
|
3469
|
-
nav_address: { type: 'string' },
|
|
3470
|
-
longitude: { type: 'number' },
|
|
3471
|
-
latitude: { type: 'number' },
|
|
3472
|
-
|
|
3473
|
-
localizable_on_mobile: { type: 'boolean' },
|
|
3474
|
-
lines: { type: 'integer', minimum: 1 },
|
|
3475
|
-
entries_init_number: { type: 'integer', minimum: 0 },
|
|
3988
|
+
nav_address: { type: ['string', 'null'] },
|
|
3989
|
+
longitude: { type: ['number', 'null'] },
|
|
3990
|
+
latitude: { type: ['number', 'null'] },
|
|
3991
|
+
entries_init_number: { type: ['integer', 'null'], minimum: 0 },
|
|
3476
3992
|
entries_number_visible: { type: 'boolean' },
|
|
3477
|
-
|
|
3993
|
+
highlight_color: { type: ['string', 'null'] }
|
|
3478
3994
|
},
|
|
3479
3995
|
allOf: [
|
|
3480
3996
|
{
|
|
@@ -3500,15 +4016,34 @@ export const SCHEMAS = {
|
|
|
3500
4016
|
required: ['type', 'label', 'answers'],
|
|
3501
4017
|
properties: {
|
|
3502
4018
|
type: { const: 'FillInBlank' },
|
|
3503
|
-
label: { type: 'string' },
|
|
4019
|
+
label: { type: ['string', 'null'] },
|
|
3504
4020
|
cid: { type: 'string' },
|
|
3505
|
-
notes: { type: 'string' },
|
|
4021
|
+
notes: { type: ['string', 'null'] },
|
|
3506
4022
|
private: { type: 'boolean' },
|
|
3507
4023
|
required: { type: 'boolean' },
|
|
3508
4024
|
position: { type: 'integer', minimum: 0 },
|
|
3509
4025
|
unique: { type: 'boolean' },
|
|
3510
|
-
predefined_value: { type: 'string' },
|
|
3511
|
-
placeholder: { type: 'string' },
|
|
4026
|
+
predefined_value: { type: ['string', 'null'] },
|
|
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 },
|
|
4030
|
+
scannable: { type: 'boolean' },
|
|
4031
|
+
access_control_list_limit: { type: 'boolean' },
|
|
4032
|
+
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
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 },
|
|
3512
4047
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
3513
4048
|
start_new_row: { type: 'boolean' },
|
|
3514
4049
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -3533,24 +4068,21 @@ export const SCHEMAS = {
|
|
|
3533
4068
|
required: ['type', 'label', 'answers'],
|
|
3534
4069
|
properties: {
|
|
3535
4070
|
type: { const: 'FillInNumber' },
|
|
3536
|
-
label: { type: 'string' },
|
|
4071
|
+
label: { type: ['string', 'null'] },
|
|
3537
4072
|
cid: { type: 'string' },
|
|
3538
|
-
notes: { type: 'string' },
|
|
4073
|
+
notes: { type: ['string', 'null'] },
|
|
3539
4074
|
private: { type: 'boolean' },
|
|
3540
4075
|
required: { type: 'boolean' },
|
|
3541
4076
|
position: { type: 'integer', minimum: 0 },
|
|
3542
4077
|
unique: { type: 'boolean' },
|
|
3543
|
-
predefined_value: { type: ['number', 'string'] },
|
|
3544
|
-
placeholder: { type: 'string' },
|
|
3545
|
-
range_min: { type: 'number' },
|
|
3546
|
-
range_max: { type: 'number' },
|
|
3547
|
-
precision: { type: 'integer', minimum: 0, maximum: 14 },
|
|
3548
|
-
display_precision: { type: 'integer', minimum: 0 },
|
|
4078
|
+
predefined_value: { type: ['number', 'string', 'null'] },
|
|
4079
|
+
placeholder: { type: ['string', 'null'] },
|
|
4080
|
+
range_min: { type: ['number', 'null'] },
|
|
4081
|
+
range_max: { type: ['number', 'null'] },
|
|
4082
|
+
precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
|
|
3549
4083
|
display_as_percentage: { type: 'boolean' },
|
|
3550
4084
|
thousands_separator: { type: 'boolean' },
|
|
3551
|
-
|
|
3552
|
-
currency_symbol_position: { type: 'string', enum: ['prefix', 'suffix'] },
|
|
3553
|
-
icon_type: { type: 'string', enum: ['none', 'number-2', 'dollar1', 'cny1'] },
|
|
4085
|
+
icon_type: { type: ['string', 'null'], enum: ['none', 'number-2', 'dollar1', 'cny1', null] },
|
|
3554
4086
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
3555
4087
|
start_new_row: { type: 'boolean' },
|
|
3556
4088
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -3575,6 +4107,15 @@ export const SCHEMAS = {
|
|
|
3575
4107
|
}
|
|
3576
4108
|
]
|
|
3577
4109
|
},
|
|
4110
|
+
FixedCharactersGenCodeRuleInput: {
|
|
4111
|
+
type: 'object',
|
|
4112
|
+
additionalProperties: false,
|
|
4113
|
+
required: ['type', 'value'],
|
|
4114
|
+
properties: {
|
|
4115
|
+
type: { type: 'string', enum: ['fixed_characters'] },
|
|
4116
|
+
value: { type: 'string', minLength: 1, maxLength: 6 }
|
|
4117
|
+
}
|
|
4118
|
+
},
|
|
3578
4119
|
FolderInput: {
|
|
3579
4120
|
type: 'object',
|
|
3580
4121
|
required: ['name'],
|
|
@@ -3590,9 +4131,9 @@ export const SCHEMAS = {
|
|
|
3590
4131
|
required: ['type', 'label', 'associated_form_token', 'associated_field_api_codes'],
|
|
3591
4132
|
properties: {
|
|
3592
4133
|
type: { const: 'FormAssociation' },
|
|
3593
|
-
label: { type: 'string' },
|
|
4134
|
+
label: { type: ['string', 'null'] },
|
|
3594
4135
|
cid: { type: 'string' },
|
|
3595
|
-
notes: { type: 'string' },
|
|
4136
|
+
notes: { type: ['string', 'null'] },
|
|
3596
4137
|
private: { type: 'boolean' },
|
|
3597
4138
|
required: { type: 'boolean' },
|
|
3598
4139
|
position: { type: 'integer', minimum: 0 },
|
|
@@ -3601,8 +4142,44 @@ export const SCHEMAS = {
|
|
|
3601
4142
|
associated_form_token: { type: 'string' },
|
|
3602
4143
|
associated_field_api_codes: { type: 'array', minItems: 1, maxItems: 4, items: { type: 'string' } },
|
|
3603
4144
|
privacy_safe: { type: 'boolean' },
|
|
3604
|
-
|
|
3605
|
-
|
|
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
|
+
},
|
|
3606
4183
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
3607
4184
|
start_new_row: { type: 'boolean' }
|
|
3608
4185
|
}
|
|
@@ -3614,14 +4191,7 @@ export const SCHEMAS = {
|
|
|
3614
4191
|
then: {
|
|
3615
4192
|
properties: {
|
|
3616
4193
|
fields: {
|
|
3617
|
-
items: {
|
|
3618
|
-
properties: {
|
|
3619
|
-
type: {
|
|
3620
|
-
not: { enum: ['PageBreak', 'MultipleBlanksField', 'WidgetContact', 'WidgetVideo', 'WidgetButton'] }
|
|
3621
|
-
}
|
|
3622
|
-
},
|
|
3623
|
-
not: { anyOf: [{ required: ['grids_to_occupy'] }, { required: ['start_new_row'] }] }
|
|
3624
|
-
}
|
|
4194
|
+
items: { properties: { type: { not: { enum: ['PageBreak', 'WidgetContact', 'WidgetVideo'] } } } }
|
|
3625
4195
|
}
|
|
3626
4196
|
}
|
|
3627
4197
|
}
|
|
@@ -3637,6 +4207,10 @@ export const SCHEMAS = {
|
|
|
3637
4207
|
{
|
|
3638
4208
|
if: { properties: { scene: { enum: ['exam', 'evaluation'] } }, required: ['scene'] },
|
|
3639
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' } } } } } } }
|
|
3640
4214
|
}
|
|
3641
4215
|
]
|
|
3642
4216
|
},
|
|
@@ -3709,7 +4283,7 @@ export const SCHEMAS = {
|
|
|
3709
4283
|
FormFolderMoveInput: {
|
|
3710
4284
|
type: 'object',
|
|
3711
4285
|
required: ['folder_token'],
|
|
3712
|
-
properties: { folder_token: { type: ['string', 'null'] } },
|
|
4286
|
+
properties: { folder_token: { type: ['string', 'null'] }, original_folder_token: { type: 'string' } },
|
|
3713
4287
|
additionalProperties: false
|
|
3714
4288
|
},
|
|
3715
4289
|
FormIntervalCommentInput: {
|
|
@@ -3721,6 +4295,7 @@ export const SCHEMAS = {
|
|
|
3721
4295
|
retry: { type: 'boolean' }
|
|
3722
4296
|
}
|
|
3723
4297
|
},
|
|
4298
|
+
FormLayoutUpdate: { type: 'string', enum: ['classic', 'card'] },
|
|
3724
4299
|
FormManuallyCloseRuleInput: {
|
|
3725
4300
|
type: 'object',
|
|
3726
4301
|
required: ['open'],
|
|
@@ -3744,23 +4319,23 @@ export const SCHEMAS = {
|
|
|
3744
4319
|
show_submit_again: { type: 'boolean' },
|
|
3745
4320
|
hide_login_and_signup: { type: 'boolean' },
|
|
3746
4321
|
show_close_count_down: { type: 'boolean' },
|
|
3747
|
-
|
|
4322
|
+
show_form_when_unavailable: { type: 'boolean' },
|
|
3748
4323
|
show_field_number: { type: 'boolean' },
|
|
4324
|
+
show_progress: { type: 'boolean' },
|
|
3749
4325
|
password_required: { type: 'boolean' },
|
|
3750
4326
|
access_password: { type: 'string' },
|
|
3751
4327
|
allowed_audience: {
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
'weixin_followers_only',
|
|
3759
|
-
'submitter_only',
|
|
3760
|
-
'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
|
+
}
|
|
3761
4334
|
]
|
|
3762
4335
|
},
|
|
3763
4336
|
weixin_limited: { type: 'boolean' },
|
|
4337
|
+
weixin_collect_way: { type: 'string', enum: ['not_collect', 'goldendata', 'own', 'own_weixin_qiye', 'yamcha'] },
|
|
4338
|
+
weixin_collect_more_info_enabled: { type: 'boolean' },
|
|
3764
4339
|
locale: { type: 'string', enum: ['zh-CN', 'zh-TW', 'en'] },
|
|
3765
4340
|
entry_post_url: { type: 'string' },
|
|
3766
4341
|
post_new_entry: { type: 'boolean' },
|
|
@@ -3773,11 +4348,16 @@ export const SCHEMAS = {
|
|
|
3773
4348
|
},
|
|
3774
4349
|
by_entries_close_rule: {
|
|
3775
4350
|
type: 'object',
|
|
3776
|
-
properties: { limit: { type: 'integer', maximum: 2147483647 } },
|
|
4351
|
+
properties: { limit: { type: 'integer', minimum: 0, maximum: 2147483647 } },
|
|
3777
4352
|
additionalProperties: false
|
|
3778
4353
|
},
|
|
4354
|
+
gen_code_enabled: { type: 'boolean' },
|
|
4355
|
+
gen_code_label: { type: 'string', minLength: 2, maxLength: 6 },
|
|
4356
|
+
gen_code_format: { type: 'string', enum: ['d8', 'd12', 'custom'] },
|
|
4357
|
+
gen_code_rules: { type: 'array', items: { $ref: 'GenCodeRuleInput' } },
|
|
3779
4358
|
fill_frequency: { $ref: 'FormFillFrequencyInput' },
|
|
3780
|
-
wording: { $ref: 'FormWordingInput' }
|
|
4359
|
+
wording: { $ref: 'FormWordingInput' },
|
|
4360
|
+
weixin_share: { $ref: 'WeixinShareInput' }
|
|
3781
4361
|
},
|
|
3782
4362
|
additionalProperties: false
|
|
3783
4363
|
},
|
|
@@ -3800,7 +4380,7 @@ export const SCHEMAS = {
|
|
|
3800
4380
|
show_submit_again: { type: 'boolean' },
|
|
3801
4381
|
hide_login_and_signup: { type: 'boolean' },
|
|
3802
4382
|
show_close_count_down: { type: 'boolean' },
|
|
3803
|
-
|
|
4383
|
+
show_form_when_unavailable: { type: 'boolean' },
|
|
3804
4384
|
manually_close_rule: {
|
|
3805
4385
|
type: ['object', 'null'],
|
|
3806
4386
|
properties: { closed: { type: 'boolean' } },
|
|
@@ -3813,7 +4393,7 @@ export const SCHEMAS = {
|
|
|
3813
4393
|
},
|
|
3814
4394
|
by_entries_close_rule: {
|
|
3815
4395
|
type: ['object', 'null'],
|
|
3816
|
-
properties: { enabled: { type: 'boolean' }, limit: { type: 'integer', maximum: 2147483647 } },
|
|
4396
|
+
properties: { enabled: { type: 'boolean' }, limit: { type: 'integer', minimum: 0, maximum: 2147483647 } },
|
|
3817
4397
|
additionalProperties: false
|
|
3818
4398
|
},
|
|
3819
4399
|
fill_frequency: {
|
|
@@ -3835,18 +4415,17 @@ export const SCHEMAS = {
|
|
|
3835
4415
|
password_required: { type: 'boolean' },
|
|
3836
4416
|
access_password: { type: 'string' },
|
|
3837
4417
|
allowed_audience: {
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
'weixin_followers_only',
|
|
3845
|
-
'submitter_only',
|
|
3846
|
-
'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
|
+
}
|
|
3847
4424
|
]
|
|
3848
4425
|
},
|
|
3849
4426
|
weixin_limited: { type: 'boolean' },
|
|
4427
|
+
weixin_collect_way: { type: 'string', enum: ['not_collect', 'goldendata', 'own', 'own_weixin_qiye', 'yamcha'] },
|
|
4428
|
+
weixin_collect_more_info_enabled: { type: 'boolean' },
|
|
3850
4429
|
submission_region_limited: { type: 'boolean' },
|
|
3851
4430
|
submission_regions: { type: 'array', items: { type: 'string' } },
|
|
3852
4431
|
locale: { type: 'string', enum: ['zh-CN', 'zh-TW', 'en'] },
|
|
@@ -3856,6 +4435,10 @@ export const SCHEMAS = {
|
|
|
3856
4435
|
payment_expirable: { type: 'boolean' },
|
|
3857
4436
|
payment_expiration_time: { type: 'integer', minimum: 3, maximum: 30 },
|
|
3858
4437
|
wording: { $ref: 'FormWordingInput' },
|
|
4438
|
+
gen_code_enabled: { type: 'boolean' },
|
|
4439
|
+
gen_code_label: { type: 'string', minLength: 2, maxLength: 6 },
|
|
4440
|
+
gen_code_format: { type: 'string', enum: ['d8', 'd12', 'custom'] },
|
|
4441
|
+
gen_code_rules: { type: 'array', items: { $ref: 'GenCodeRuleInput' } },
|
|
3859
4442
|
notification_rules: { type: 'array', items: { $ref: 'NotificationRuleInput' } },
|
|
3860
4443
|
daily_repeat_close_rule: { $ref: 'DailyRepeatCloseRuleInput' }
|
|
3861
4444
|
},
|
|
@@ -3872,6 +4455,7 @@ export const SCHEMAS = {
|
|
|
3872
4455
|
FormUpdateInput: {
|
|
3873
4456
|
type: 'object',
|
|
3874
4457
|
properties: {
|
|
4458
|
+
layout: { $ref: 'FormLayoutUpdate' },
|
|
3875
4459
|
name: { type: 'string' },
|
|
3876
4460
|
description: { type: ['string', 'null'] },
|
|
3877
4461
|
setting: { $ref: 'FormSettingWriteInput' },
|
|
@@ -3890,7 +4474,8 @@ export const SCHEMAS = {
|
|
|
3890
4474
|
},
|
|
3891
4475
|
additionalProperties: false
|
|
3892
4476
|
},
|
|
3893
|
-
field_rules: { $ref: 'FieldRuleOperations' }
|
|
4477
|
+
field_rules: { $ref: 'FieldRuleOperations' },
|
|
4478
|
+
redirect_rules: { $ref: 'RedirectRuleOperations' }
|
|
3894
4479
|
},
|
|
3895
4480
|
additionalProperties: false
|
|
3896
4481
|
},
|
|
@@ -3914,7 +4499,8 @@ export const SCHEMAS = {
|
|
|
3914
4499
|
field: { type: 'string' },
|
|
3915
4500
|
operator: { type: 'string' },
|
|
3916
4501
|
value: {},
|
|
3917
|
-
scope_attr: { type: 'string', enum: ['date_time'] }
|
|
4502
|
+
scope_attr: { type: 'string', enum: ['date_time'] },
|
|
4503
|
+
group_index: { type: 'integer' }
|
|
3918
4504
|
}
|
|
3919
4505
|
},
|
|
3920
4506
|
FormViewInput: {
|
|
@@ -3977,31 +4563,65 @@ export const SCHEMAS = {
|
|
|
3977
4563
|
},
|
|
3978
4564
|
additionalProperties: false
|
|
3979
4565
|
},
|
|
4566
|
+
FormulaFieldColumnInput: {
|
|
4567
|
+
type: 'object',
|
|
4568
|
+
additionalProperties: false,
|
|
4569
|
+
required: ['type', 'label'],
|
|
4570
|
+
properties: {
|
|
4571
|
+
type: { const: 'FormulaField' },
|
|
4572
|
+
label: { type: ['string', 'null'] },
|
|
4573
|
+
cid: { type: 'string' },
|
|
4574
|
+
notes: { type: ['string', 'null'] },
|
|
4575
|
+
private: { type: 'boolean' },
|
|
4576
|
+
position: { type: 'integer', minimum: 0 },
|
|
4577
|
+
formula: { type: ['string', 'null'] },
|
|
4578
|
+
formula_display: { type: ['string', 'null'] },
|
|
4579
|
+
result_display_type: { type: ['string', 'null'], enum: ['string', 'numeric', 'datetime', 'boolean', null] },
|
|
4580
|
+
result_display_as_date: { type: 'boolean' },
|
|
4581
|
+
precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
|
|
4582
|
+
display_precision: { type: ['integer', 'null'], minimum: 0 },
|
|
4583
|
+
display_as_percentage: { type: 'boolean' },
|
|
4584
|
+
thousands_separator: { type: 'boolean' },
|
|
4585
|
+
currency_symbol: { type: ['string', 'null'] },
|
|
4586
|
+
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
|
|
4587
|
+
icon_type: {
|
|
4588
|
+
type: ['string', 'null'],
|
|
4589
|
+
enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', 'text2', null]
|
|
4590
|
+
},
|
|
4591
|
+
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4592
|
+
start_new_row: { type: 'boolean' }
|
|
4593
|
+
},
|
|
4594
|
+
allOf: [
|
|
4595
|
+
{
|
|
4596
|
+
not: {
|
|
4597
|
+
properties: { display_as_percentage: { const: true }, thousands_separator: { const: true } },
|
|
4598
|
+
required: ['display_as_percentage', 'thousands_separator']
|
|
4599
|
+
}
|
|
4600
|
+
}
|
|
4601
|
+
]
|
|
4602
|
+
},
|
|
3980
4603
|
FormulaFieldInput: {
|
|
3981
4604
|
type: 'object',
|
|
3982
4605
|
additionalProperties: false,
|
|
3983
4606
|
required: ['type', 'label'],
|
|
3984
4607
|
properties: {
|
|
3985
4608
|
type: { const: 'FormulaField' },
|
|
3986
|
-
label: { type: 'string' },
|
|
4609
|
+
label: { type: ['string', 'null'] },
|
|
3987
4610
|
cid: { type: 'string' },
|
|
3988
|
-
notes: { type: 'string' },
|
|
4611
|
+
notes: { type: ['string', 'null'] },
|
|
3989
4612
|
private: { type: 'boolean' },
|
|
3990
4613
|
required: { type: 'boolean' },
|
|
3991
4614
|
position: { type: 'integer', minimum: 0 },
|
|
3992
|
-
formula: { type: 'string' },
|
|
3993
|
-
formula_display: { type: 'string' },
|
|
3994
|
-
result_display_type: { type: 'string', enum: ['string', 'numeric', 'datetime', 'boolean'] },
|
|
4615
|
+
formula: { type: ['string', 'null'] },
|
|
4616
|
+
formula_display: { type: ['string', 'null'] },
|
|
4617
|
+
result_display_type: { type: ['string', 'null'], enum: ['string', 'numeric', 'datetime', 'boolean', null] },
|
|
3995
4618
|
result_display_as_date: { type: 'boolean' },
|
|
3996
|
-
precision: { type: 'integer', minimum: 0, maximum: 14 },
|
|
3997
|
-
display_precision: { type: 'integer', minimum: 0 },
|
|
4619
|
+
precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
|
|
3998
4620
|
display_as_percentage: { type: 'boolean' },
|
|
3999
4621
|
thousands_separator: { type: 'boolean' },
|
|
4000
|
-
currency_symbol: { type: 'string' },
|
|
4001
|
-
currency_symbol_position: { type: 'string', enum: ['prefix', 'suffix'] },
|
|
4002
4622
|
icon_type: {
|
|
4003
|
-
type: 'string',
|
|
4004
|
-
enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', '
|
|
4623
|
+
type: ['string', 'null'],
|
|
4624
|
+
enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', 'text2', null]
|
|
4005
4625
|
},
|
|
4006
4626
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4007
4627
|
start_new_row: { type: 'boolean' }
|
|
@@ -4015,15 +4635,25 @@ export const SCHEMAS = {
|
|
|
4015
4635
|
}
|
|
4016
4636
|
]
|
|
4017
4637
|
},
|
|
4638
|
+
GenCodeRuleInput: {
|
|
4639
|
+
type: 'object',
|
|
4640
|
+
required: ['type'],
|
|
4641
|
+
properties: { type: { type: 'string', enum: ['fixed_characters', 'auto_count'] } },
|
|
4642
|
+
discriminator: {
|
|
4643
|
+
propertyName: 'type',
|
|
4644
|
+
mapping: { fixed_characters: 'FixedCharactersGenCodeRuleInput', auto_count: 'AutoCountGenCodeRuleInput' }
|
|
4645
|
+
},
|
|
4646
|
+
oneOf: [{ $ref: 'FixedCharactersGenCodeRuleInput' }, { $ref: 'AutoCountGenCodeRuleInput' }]
|
|
4647
|
+
},
|
|
4018
4648
|
GeoFieldInput: {
|
|
4019
4649
|
type: 'object',
|
|
4020
4650
|
additionalProperties: false,
|
|
4021
4651
|
required: ['type', 'label'],
|
|
4022
4652
|
properties: {
|
|
4023
4653
|
type: { const: 'GeoField' },
|
|
4024
|
-
label: { type: 'string' },
|
|
4654
|
+
label: { type: ['string', 'null'] },
|
|
4025
4655
|
cid: { type: 'string' },
|
|
4026
|
-
notes: { type: 'string' },
|
|
4656
|
+
notes: { type: ['string', 'null'] },
|
|
4027
4657
|
private: { type: 'boolean' },
|
|
4028
4658
|
required: { type: 'boolean' },
|
|
4029
4659
|
position: { type: 'integer', minimum: 0 }
|
|
@@ -4035,16 +4665,15 @@ export const SCHEMAS = {
|
|
|
4035
4665
|
required: ['type', 'label'],
|
|
4036
4666
|
properties: {
|
|
4037
4667
|
type: { const: 'GoodsField' },
|
|
4038
|
-
label: { type: 'string' },
|
|
4668
|
+
label: { type: ['string', 'null'] },
|
|
4039
4669
|
cid: { type: 'string' },
|
|
4040
|
-
notes: { type: 'string' },
|
|
4670
|
+
notes: { type: ['string', 'null'] },
|
|
4041
4671
|
private: { type: 'boolean' },
|
|
4042
4672
|
required: { type: 'boolean' },
|
|
4043
4673
|
position: { type: 'integer', minimum: 0 },
|
|
4044
4674
|
goods_items: { type: 'array', minItems: 1, items: { $ref: 'GoodsItemInput' } },
|
|
4045
|
-
unit: { type: 'string', maxLength: 2 },
|
|
4046
|
-
|
|
4047
|
-
columns_on_mobile: { type: 'integer', minimum: 1 }
|
|
4675
|
+
unit: { type: ['string', 'null'], maxLength: 2 },
|
|
4676
|
+
columns_on_mobile: { type: ['integer', 'null'], minimum: 1, maximum: 2 }
|
|
4048
4677
|
}
|
|
4049
4678
|
},
|
|
4050
4679
|
GoodsItemInput: {
|
|
@@ -4054,27 +4683,26 @@ export const SCHEMAS = {
|
|
|
4054
4683
|
properties: {
|
|
4055
4684
|
name: { type: 'string' },
|
|
4056
4685
|
layout: { type: 'string', enum: ['without_images', 'price_only', 'images', 'text_options'] },
|
|
4057
|
-
api_code: { type: 'string' },
|
|
4058
|
-
description: { type: 'string' },
|
|
4059
|
-
position: { type: 'integer', minimum: 0 },
|
|
4686
|
+
api_code: { type: ['string', 'null'] },
|
|
4687
|
+
description: { type: ['string', 'null'] },
|
|
4688
|
+
position: { type: ['integer', 'null'], minimum: 0 },
|
|
4060
4689
|
hidden: { type: 'boolean' },
|
|
4061
|
-
price: { type: 'number', minimum: 0 },
|
|
4062
|
-
original_price: { type: 'number', minimum: 0 },
|
|
4063
|
-
predefined_number: { type: 'integer', minimum: 0 },
|
|
4690
|
+
price: { type: ['number', 'null'], minimum: 0 },
|
|
4691
|
+
original_price: { type: ['number', 'null'], minimum: 0 },
|
|
4692
|
+
predefined_number: { type: ['integer', 'null'], minimum: 0 },
|
|
4064
4693
|
fixed_number: { type: 'boolean' },
|
|
4065
|
-
inventory: { type: 'integer', minimum: 0 },
|
|
4694
|
+
inventory: { type: ['integer', 'null'], minimum: 0 },
|
|
4066
4695
|
inventory_reset: { type: 'boolean' },
|
|
4067
|
-
min_purchase_quantity: { type: 'integer', minimum: 0 },
|
|
4068
|
-
max_purchase_quantity: { type: 'integer', minimum: 0 },
|
|
4696
|
+
min_purchase_quantity: { type: ['integer', 'null'], minimum: 0 },
|
|
4697
|
+
max_purchase_quantity: { type: ['integer', 'null'], minimum: 0 },
|
|
4069
4698
|
dimensions: {
|
|
4070
4699
|
type: 'array',
|
|
4071
|
-
minItems: 1,
|
|
4072
4700
|
items: {
|
|
4073
4701
|
type: 'object',
|
|
4074
4702
|
additionalProperties: false,
|
|
4075
4703
|
required: ['label', 'options'],
|
|
4076
4704
|
properties: {
|
|
4077
|
-
api_code: { type: 'string' },
|
|
4705
|
+
api_code: { type: ['string', 'null'] },
|
|
4078
4706
|
label: { type: 'string' },
|
|
4079
4707
|
options: {
|
|
4080
4708
|
type: 'array',
|
|
@@ -4083,7 +4711,7 @@ export const SCHEMAS = {
|
|
|
4083
4711
|
type: 'object',
|
|
4084
4712
|
additionalProperties: false,
|
|
4085
4713
|
required: ['label'],
|
|
4086
|
-
properties: { label: { type: 'string' }, value: { type: 'string' } }
|
|
4714
|
+
properties: { label: { type: 'string' }, value: { type: ['string', 'null'] } }
|
|
4087
4715
|
}
|
|
4088
4716
|
}
|
|
4089
4717
|
}
|
|
@@ -4091,19 +4719,18 @@ export const SCHEMAS = {
|
|
|
4091
4719
|
},
|
|
4092
4720
|
skus: {
|
|
4093
4721
|
type: 'array',
|
|
4094
|
-
minItems: 1,
|
|
4095
4722
|
items: {
|
|
4096
4723
|
type: 'object',
|
|
4097
4724
|
additionalProperties: false,
|
|
4098
4725
|
required: ['specification'],
|
|
4099
4726
|
properties: {
|
|
4100
4727
|
specification: { type: 'object', additionalProperties: { type: 'string' } },
|
|
4101
|
-
price: { type: 'number', minimum: 0 },
|
|
4102
|
-
original_price: { type: 'number', minimum: 0 },
|
|
4103
|
-
inventory: { type: 'integer', minimum: 0 },
|
|
4728
|
+
price: { type: ['number', 'null'], minimum: 0 },
|
|
4729
|
+
original_price: { type: ['number', 'null'], minimum: 0 },
|
|
4730
|
+
inventory: { type: ['integer', 'null'], minimum: 0 },
|
|
4104
4731
|
inventory_reset: { type: 'boolean' },
|
|
4105
|
-
min_purchase_quantity: { type: 'integer', minimum: 0 },
|
|
4106
|
-
max_purchase_quantity: { type: 'integer', minimum: 0 }
|
|
4732
|
+
min_purchase_quantity: { type: ['integer', 'null'], minimum: 0 },
|
|
4733
|
+
max_purchase_quantity: { type: ['integer', 'null'], minimum: 0 }
|
|
4107
4734
|
}
|
|
4108
4735
|
}
|
|
4109
4736
|
},
|
|
@@ -4133,29 +4760,28 @@ export const SCHEMAS = {
|
|
|
4133
4760
|
type: 'object',
|
|
4134
4761
|
additionalProperties: false,
|
|
4135
4762
|
properties: {
|
|
4136
|
-
name: { type: 'string' },
|
|
4137
|
-
layout: { type: 'string', enum: ['without_images', 'price_only', 'images', 'text_options'] },
|
|
4138
|
-
api_code: { type: 'string' },
|
|
4139
|
-
description: { type: 'string' },
|
|
4140
|
-
position: { type: 'integer', minimum: 0 },
|
|
4763
|
+
name: { type: ['string', 'null'] },
|
|
4764
|
+
layout: { type: ['string', 'null'], enum: ['without_images', 'price_only', 'images', 'text_options', null] },
|
|
4765
|
+
api_code: { type: ['string', 'null'] },
|
|
4766
|
+
description: { type: ['string', 'null'] },
|
|
4767
|
+
position: { type: ['integer', 'null'], minimum: 0 },
|
|
4141
4768
|
hidden: { type: 'boolean' },
|
|
4142
|
-
price: { type: 'number', minimum: 0 },
|
|
4143
|
-
original_price: { type: 'number', minimum: 0 },
|
|
4144
|
-
predefined_number: { type: 'integer', minimum: 0 },
|
|
4769
|
+
price: { type: ['number', 'null'], minimum: 0 },
|
|
4770
|
+
original_price: { type: ['number', 'null'], minimum: 0 },
|
|
4771
|
+
predefined_number: { type: ['integer', 'null'], minimum: 0 },
|
|
4145
4772
|
fixed_number: { type: 'boolean' },
|
|
4146
|
-
inventory: { type: 'integer', minimum: 0 },
|
|
4773
|
+
inventory: { type: ['integer', 'null'], minimum: 0 },
|
|
4147
4774
|
inventory_reset: { type: 'boolean' },
|
|
4148
|
-
min_purchase_quantity: { type: 'integer', minimum: 0 },
|
|
4149
|
-
max_purchase_quantity: { type: 'integer', minimum: 0 },
|
|
4775
|
+
min_purchase_quantity: { type: ['integer', 'null'], minimum: 0 },
|
|
4776
|
+
max_purchase_quantity: { type: ['integer', 'null'], minimum: 0 },
|
|
4150
4777
|
dimensions: {
|
|
4151
4778
|
type: 'array',
|
|
4152
|
-
minItems: 1,
|
|
4153
4779
|
items: {
|
|
4154
4780
|
type: 'object',
|
|
4155
4781
|
additionalProperties: false,
|
|
4156
4782
|
required: ['label', 'options'],
|
|
4157
4783
|
properties: {
|
|
4158
|
-
api_code: { type: 'string' },
|
|
4784
|
+
api_code: { type: ['string', 'null'] },
|
|
4159
4785
|
label: { type: 'string' },
|
|
4160
4786
|
options: {
|
|
4161
4787
|
type: 'array',
|
|
@@ -4164,7 +4790,7 @@ export const SCHEMAS = {
|
|
|
4164
4790
|
type: 'object',
|
|
4165
4791
|
additionalProperties: false,
|
|
4166
4792
|
required: ['label'],
|
|
4167
|
-
properties: { label: { type: 'string' }, value: { type: 'string' } }
|
|
4793
|
+
properties: { label: { type: 'string' }, value: { type: ['string', 'null'] } }
|
|
4168
4794
|
}
|
|
4169
4795
|
}
|
|
4170
4796
|
}
|
|
@@ -4172,19 +4798,18 @@ export const SCHEMAS = {
|
|
|
4172
4798
|
},
|
|
4173
4799
|
skus: {
|
|
4174
4800
|
type: 'array',
|
|
4175
|
-
minItems: 1,
|
|
4176
4801
|
items: {
|
|
4177
4802
|
type: 'object',
|
|
4178
4803
|
additionalProperties: false,
|
|
4179
4804
|
required: ['specification'],
|
|
4180
4805
|
properties: {
|
|
4181
4806
|
specification: { type: 'object', additionalProperties: { type: 'string' } },
|
|
4182
|
-
price: { type: 'number', minimum: 0 },
|
|
4183
|
-
original_price: { type: 'number', minimum: 0 },
|
|
4184
|
-
inventory: { type: 'integer', minimum: 0 },
|
|
4807
|
+
price: { type: ['number', 'null'], minimum: 0 },
|
|
4808
|
+
original_price: { type: ['number', 'null'], minimum: 0 },
|
|
4809
|
+
inventory: { type: ['integer', 'null'], minimum: 0 },
|
|
4185
4810
|
inventory_reset: { type: 'boolean' },
|
|
4186
|
-
min_purchase_quantity: { type: 'integer', minimum: 0 },
|
|
4187
|
-
max_purchase_quantity: { type: 'integer', minimum: 0 }
|
|
4811
|
+
min_purchase_quantity: { type: ['integer', 'null'], minimum: 0 },
|
|
4812
|
+
max_purchase_quantity: { type: ['integer', 'null'], minimum: 0 }
|
|
4188
4813
|
}
|
|
4189
4814
|
}
|
|
4190
4815
|
},
|
|
@@ -4196,6 +4821,10 @@ export const SCHEMAS = {
|
|
|
4196
4821
|
if: { not: { required: ['api_code'] } },
|
|
4197
4822
|
then: {
|
|
4198
4823
|
required: ['name', 'layout'],
|
|
4824
|
+
properties: {
|
|
4825
|
+
name: { type: 'string' },
|
|
4826
|
+
layout: { type: 'string', enum: ['without_images', 'price_only', 'images', 'text_options'] }
|
|
4827
|
+
},
|
|
4199
4828
|
allOf: [
|
|
4200
4829
|
{
|
|
4201
4830
|
if: { properties: { layout: { enum: ['price_only', 'text_options'] } } },
|
|
@@ -4220,18 +4849,21 @@ export const SCHEMAS = {
|
|
|
4220
4849
|
required: ['type', 'label'],
|
|
4221
4850
|
properties: {
|
|
4222
4851
|
type: { const: 'Grade' },
|
|
4223
|
-
label: { type: 'string' },
|
|
4852
|
+
label: { type: ['string', 'null'] },
|
|
4224
4853
|
cid: { type: 'string' },
|
|
4225
|
-
notes: { type: 'string' },
|
|
4854
|
+
notes: { type: ['string', 'null'] },
|
|
4226
4855
|
private: { type: 'boolean' },
|
|
4227
4856
|
required: { type: 'boolean' },
|
|
4228
4857
|
position: { type: 'integer', minimum: 0 },
|
|
4229
4858
|
other_choice_required: { type: 'boolean' },
|
|
4230
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
4859
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
4231
4860
|
calculable: { type: 'boolean' },
|
|
4232
|
-
choices_layout: { type: 'string' },
|
|
4861
|
+
choices_layout: { type: ['string', 'null'] },
|
|
4233
4862
|
random_choices: { type: 'boolean' },
|
|
4234
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' },
|
|
4235
4867
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4236
4868
|
start_new_row: { type: 'boolean' }
|
|
4237
4869
|
},
|
|
@@ -4248,13 +4880,16 @@ export const SCHEMAS = {
|
|
|
4248
4880
|
required: ['type', 'label'],
|
|
4249
4881
|
properties: {
|
|
4250
4882
|
type: { const: 'IdCardField' },
|
|
4251
|
-
label: { type: 'string' },
|
|
4883
|
+
label: { type: ['string', 'null'] },
|
|
4252
4884
|
cid: { type: 'string' },
|
|
4253
|
-
notes: { type: 'string' },
|
|
4885
|
+
notes: { type: ['string', 'null'] },
|
|
4254
4886
|
private: { type: 'boolean' },
|
|
4255
4887
|
required: { type: 'boolean' },
|
|
4256
4888
|
position: { type: 'integer', minimum: 0 },
|
|
4257
4889
|
unique: { type: 'boolean' },
|
|
4890
|
+
access_control_list_limit: { type: 'boolean' },
|
|
4891
|
+
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
4892
|
+
acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
|
|
4258
4893
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4259
4894
|
start_new_row: { type: 'boolean' }
|
|
4260
4895
|
}
|
|
@@ -4265,19 +4900,24 @@ export const SCHEMAS = {
|
|
|
4265
4900
|
required: ['type', 'label'],
|
|
4266
4901
|
properties: {
|
|
4267
4902
|
type: { const: 'ImageCheckBox' },
|
|
4268
|
-
label: { type: 'string' },
|
|
4903
|
+
label: { type: ['string', 'null'] },
|
|
4269
4904
|
cid: { type: 'string' },
|
|
4270
|
-
notes: { type: 'string' },
|
|
4905
|
+
notes: { type: ['string', 'null'] },
|
|
4271
4906
|
private: { type: 'boolean' },
|
|
4272
4907
|
required: { type: 'boolean' },
|
|
4273
4908
|
position: { type: 'integer', minimum: 0 },
|
|
4274
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
|
|
4909
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' }, maxItems: 1000 },
|
|
4275
4910
|
calculable: { type: 'boolean' },
|
|
4276
|
-
choices_layout: { type: 'string' },
|
|
4911
|
+
choices_layout: { type: ['string', 'null'] },
|
|
4277
4912
|
random_choices: { type: 'boolean' },
|
|
4278
|
-
minimum_length: { type: 'integer', minimum: 0 },
|
|
4279
|
-
maximum_length: { type: 'integer', minimum: 0 },
|
|
4280
|
-
hide_choice_when_quota_empty: { type: 'boolean' }
|
|
4913
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
4914
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
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' } }
|
|
4281
4921
|
},
|
|
4282
4922
|
allOf: [
|
|
4283
4923
|
{
|
|
@@ -4297,9 +4937,11 @@ export const SCHEMAS = {
|
|
|
4297
4937
|
value: { type: 'string' },
|
|
4298
4938
|
name: { type: 'string' },
|
|
4299
4939
|
api_code: { type: 'string' },
|
|
4300
|
-
quota: { type: 'integer', minimum:
|
|
4940
|
+
quota: { type: 'integer', minimum: 0 },
|
|
4301
4941
|
operand_value: { type: 'number' },
|
|
4302
4942
|
selected: { type: 'boolean' },
|
|
4943
|
+
description_text: { type: ['string', 'null'] },
|
|
4944
|
+
description_url: { type: ['string', 'null'] },
|
|
4303
4945
|
image_url: { type: 'string' },
|
|
4304
4946
|
image_base64: { type: 'string' },
|
|
4305
4947
|
attachment_id: { type: 'string' }
|
|
@@ -4311,19 +4953,22 @@ export const SCHEMAS = {
|
|
|
4311
4953
|
required: ['type', 'label', 'choices', 'answers'],
|
|
4312
4954
|
properties: {
|
|
4313
4955
|
type: { const: 'ImageMultiSelect' },
|
|
4314
|
-
label: { type: 'string' },
|
|
4956
|
+
label: { type: ['string', 'null'] },
|
|
4315
4957
|
cid: { type: 'string' },
|
|
4316
|
-
notes: { type: 'string' },
|
|
4958
|
+
notes: { type: ['string', 'null'] },
|
|
4317
4959
|
private: { type: 'boolean' },
|
|
4318
4960
|
required: { type: 'boolean' },
|
|
4319
4961
|
position: { type: 'integer', minimum: 0 },
|
|
4320
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
|
|
4962
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' }, maxItems: 1000 },
|
|
4321
4963
|
calculable: { type: 'boolean' },
|
|
4322
|
-
choices_layout: { type: 'string' },
|
|
4964
|
+
choices_layout: { type: ['string', 'null'] },
|
|
4323
4965
|
random_choices: { type: 'boolean' },
|
|
4324
|
-
minimum_length: { type: 'integer', minimum: 0 },
|
|
4325
|
-
maximum_length: { type: 'integer', minimum: 0 },
|
|
4966
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
4967
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
4326
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' },
|
|
4327
4972
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
4328
4973
|
answer_setting_mode: { type: 'string', enum: ['absolute', 'partial_absolute', 'relative'] },
|
|
4329
4974
|
answer_explanation: { type: 'string' }
|
|
@@ -4363,17 +5008,20 @@ export const SCHEMAS = {
|
|
|
4363
5008
|
required: ['type', 'label'],
|
|
4364
5009
|
properties: {
|
|
4365
5010
|
type: { const: 'ImageRadioButton' },
|
|
4366
|
-
label: { type: 'string' },
|
|
5011
|
+
label: { type: ['string', 'null'] },
|
|
4367
5012
|
cid: { type: 'string' },
|
|
4368
|
-
notes: { type: 'string' },
|
|
5013
|
+
notes: { type: ['string', 'null'] },
|
|
4369
5014
|
private: { type: 'boolean' },
|
|
4370
5015
|
required: { type: 'boolean' },
|
|
4371
5016
|
position: { type: 'integer', minimum: 0 },
|
|
4372
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
|
|
5017
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' }, maxItems: 1000 },
|
|
4373
5018
|
calculable: { type: 'boolean' },
|
|
4374
|
-
choices_layout: { type: 'string' },
|
|
5019
|
+
choices_layout: { type: ['string', 'null'] },
|
|
4375
5020
|
random_choices: { type: 'boolean' },
|
|
4376
|
-
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' }
|
|
4377
5025
|
},
|
|
4378
5026
|
allOf: [
|
|
4379
5027
|
{
|
|
@@ -4388,17 +5036,20 @@ export const SCHEMAS = {
|
|
|
4388
5036
|
required: ['type', 'label', 'choices', 'answers'],
|
|
4389
5037
|
properties: {
|
|
4390
5038
|
type: { const: 'ImageSingleSelect' },
|
|
4391
|
-
label: { type: 'string' },
|
|
5039
|
+
label: { type: ['string', 'null'] },
|
|
4392
5040
|
cid: { type: 'string' },
|
|
4393
|
-
notes: { type: 'string' },
|
|
5041
|
+
notes: { type: ['string', 'null'] },
|
|
4394
5042
|
private: { type: 'boolean' },
|
|
4395
5043
|
required: { type: 'boolean' },
|
|
4396
5044
|
position: { type: 'integer', minimum: 0 },
|
|
4397
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
|
|
5045
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' }, maxItems: 1000 },
|
|
4398
5046
|
calculable: { type: 'boolean' },
|
|
4399
|
-
choices_layout: { type: 'string' },
|
|
5047
|
+
choices_layout: { type: ['string', 'null'] },
|
|
4400
5048
|
random_choices: { type: 'boolean' },
|
|
4401
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' },
|
|
4402
5053
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
4403
5054
|
answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
|
|
4404
5055
|
answer_explanation: { type: 'string' }
|
|
@@ -4425,24 +5076,24 @@ export const SCHEMAS = {
|
|
|
4425
5076
|
required: ['type', 'label'],
|
|
4426
5077
|
properties: {
|
|
4427
5078
|
type: { const: 'LikertField' },
|
|
4428
|
-
label: { type: 'string' },
|
|
5079
|
+
label: { type: ['string', 'null'] },
|
|
4429
5080
|
cid: { type: 'string' },
|
|
4430
|
-
notes: { type: 'string' },
|
|
5081
|
+
notes: { type: ['string', 'null'] },
|
|
4431
5082
|
private: { type: 'boolean' },
|
|
4432
5083
|
required: { type: 'boolean' },
|
|
4433
5084
|
position: { type: 'integer', minimum: 0 },
|
|
4434
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
5085
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
4435
5086
|
statements: { type: 'array', minItems: 1, items: { $ref: 'StatementInput' } },
|
|
4436
5087
|
horizontal_on_mobile: { type: 'boolean' },
|
|
4437
|
-
likert_choice_style: { type: 'string', enum: ['single', 'multiple'] },
|
|
4438
|
-
minimum_length: { type: 'integer', minimum: 0 },
|
|
4439
|
-
maximum_length: { type: 'integer', minimum: 0 },
|
|
5088
|
+
likert_choice_style: { type: ['string', 'null'], enum: ['single', 'multiple', null] },
|
|
5089
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
5090
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
4440
5091
|
calculable: { type: 'boolean' }
|
|
4441
5092
|
},
|
|
4442
5093
|
allOf: [
|
|
4443
5094
|
{
|
|
4444
5095
|
if: { not: { properties: { likert_choice_style: { const: 'multiple' } }, required: ['likert_choice_style'] } },
|
|
4445
|
-
then: {
|
|
5096
|
+
then: { properties: { minimum_length: { type: 'null' }, maximum_length: { type: 'null' } } }
|
|
4446
5097
|
},
|
|
4447
5098
|
{
|
|
4448
5099
|
if: { properties: { calculable: { const: true } }, required: ['calculable'] },
|
|
@@ -4450,41 +5101,107 @@ export const SCHEMAS = {
|
|
|
4450
5101
|
}
|
|
4451
5102
|
]
|
|
4452
5103
|
},
|
|
5104
|
+
LinkFieldColumnInput: {
|
|
5105
|
+
type: 'object',
|
|
5106
|
+
additionalProperties: false,
|
|
5107
|
+
required: ['type', 'label'],
|
|
5108
|
+
properties: {
|
|
5109
|
+
type: { const: 'LinkField' },
|
|
5110
|
+
label: { type: ['string', 'null'] },
|
|
5111
|
+
cid: { type: 'string' },
|
|
5112
|
+
notes: { type: ['string', 'null'] },
|
|
5113
|
+
private: { type: 'boolean' },
|
|
5114
|
+
position: { type: 'integer', minimum: 0 },
|
|
5115
|
+
predefined_value: { type: ['string', 'null'] },
|
|
5116
|
+
placeholder: { type: ['string', 'null'] },
|
|
5117
|
+
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5118
|
+
start_new_row: { type: 'boolean' }
|
|
5119
|
+
}
|
|
5120
|
+
},
|
|
4453
5121
|
LinkFieldInput: {
|
|
4454
5122
|
type: 'object',
|
|
4455
5123
|
additionalProperties: false,
|
|
4456
5124
|
required: ['type', 'label'],
|
|
4457
5125
|
properties: {
|
|
4458
5126
|
type: { const: 'LinkField' },
|
|
4459
|
-
label: { type: 'string' },
|
|
5127
|
+
label: { type: ['string', 'null'] },
|
|
4460
5128
|
cid: { type: 'string' },
|
|
4461
|
-
notes: { type: 'string' },
|
|
5129
|
+
notes: { type: ['string', 'null'] },
|
|
4462
5130
|
private: { type: 'boolean' },
|
|
4463
5131
|
required: { type: 'boolean' },
|
|
4464
5132
|
position: { type: 'integer', minimum: 0 },
|
|
4465
5133
|
unique: { type: 'boolean' },
|
|
4466
|
-
predefined_value: { type: 'string' },
|
|
4467
|
-
placeholder: { type: 'string' },
|
|
5134
|
+
predefined_value: { type: ['string', 'null'] },
|
|
5135
|
+
placeholder: { type: ['string', 'null'] },
|
|
4468
5136
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4469
5137
|
start_new_row: { type: 'boolean' }
|
|
4470
5138
|
}
|
|
4471
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
|
+
},
|
|
4472
5190
|
MatrixFieldInput: {
|
|
4473
5191
|
type: 'object',
|
|
4474
5192
|
additionalProperties: false,
|
|
4475
5193
|
required: ['type', 'label'],
|
|
4476
5194
|
properties: {
|
|
4477
5195
|
type: { const: 'MatrixField' },
|
|
4478
|
-
label: { type: 'string' },
|
|
5196
|
+
label: { type: ['string', 'null'] },
|
|
4479
5197
|
cid: { type: 'string' },
|
|
4480
|
-
notes: { type: 'string' },
|
|
5198
|
+
notes: { type: ['string', 'null'] },
|
|
4481
5199
|
private: { type: 'boolean' },
|
|
4482
5200
|
required: { type: 'boolean' },
|
|
4483
5201
|
position: { type: 'integer', minimum: 0 },
|
|
4484
5202
|
dimensions: { type: 'array', minItems: 1, items: { $ref: 'DimensionInput' } },
|
|
4485
5203
|
statements: { type: 'array', minItems: 1, items: { $ref: 'StatementInput' } },
|
|
4486
|
-
horizontal_on_mobile: { type: 'boolean' }
|
|
4487
|
-
advanced_feature: { type: 'boolean' }
|
|
5204
|
+
horizontal_on_mobile: { type: 'boolean' }
|
|
4488
5205
|
}
|
|
4489
5206
|
},
|
|
4490
5207
|
MatrixScaleFieldInput: {
|
|
@@ -4493,13 +5210,13 @@ export const SCHEMAS = {
|
|
|
4493
5210
|
required: ['type', 'label'],
|
|
4494
5211
|
properties: {
|
|
4495
5212
|
type: { const: 'MatrixScaleField' },
|
|
4496
|
-
label: { type: 'string' },
|
|
5213
|
+
label: { type: ['string', 'null'] },
|
|
4497
5214
|
cid: { type: 'string' },
|
|
4498
|
-
notes: { type: 'string' },
|
|
5215
|
+
notes: { type: ['string', 'null'] },
|
|
4499
5216
|
private: { type: 'boolean' },
|
|
4500
5217
|
required: { type: 'boolean' },
|
|
4501
5218
|
position: { type: 'integer', minimum: 0 },
|
|
4502
|
-
rating_max: { type: 'integer', minimum:
|
|
5219
|
+
rating_max: { type: 'integer', minimum: 3, maximum: 10 },
|
|
4503
5220
|
statements: { type: 'array', minItems: 1, items: { $ref: 'StatementInput' } },
|
|
4504
5221
|
horizontal_on_mobile: { type: 'boolean' }
|
|
4505
5222
|
}
|
|
@@ -4609,22 +5326,43 @@ export const SCHEMAS = {
|
|
|
4609
5326
|
MessageSource: { type: 'string', enum: ['api', 'jiri', 'routine'] },
|
|
4610
5327
|
MessageStatus: { type: 'string', enum: ['queued', 'sending', 'succeeded', 'failed'] },
|
|
4611
5328
|
MessageType: { type: 'string', enum: ['email', 'sms', 'ding_talk', 'wxwork', 'webhook'] },
|
|
5329
|
+
MobileFieldColumnInput: {
|
|
5330
|
+
type: 'object',
|
|
5331
|
+
additionalProperties: false,
|
|
5332
|
+
required: ['type', 'label'],
|
|
5333
|
+
properties: {
|
|
5334
|
+
type: { const: 'MobileField' },
|
|
5335
|
+
label: { type: ['string', 'null'] },
|
|
5336
|
+
cid: { type: 'string' },
|
|
5337
|
+
notes: { type: ['string', 'null'] },
|
|
5338
|
+
private: { type: 'boolean' },
|
|
5339
|
+
position: { type: 'integer', minimum: 0 },
|
|
5340
|
+
predefined_value: { type: ['string', 'null'] },
|
|
5341
|
+
placeholder: { type: ['string', 'null'] },
|
|
5342
|
+
sms_verification: { type: 'boolean' },
|
|
5343
|
+
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5344
|
+
start_new_row: { type: 'boolean' }
|
|
5345
|
+
}
|
|
5346
|
+
},
|
|
4612
5347
|
MobileFieldInput: {
|
|
4613
5348
|
type: 'object',
|
|
4614
5349
|
additionalProperties: false,
|
|
4615
5350
|
required: ['type', 'label'],
|
|
4616
5351
|
properties: {
|
|
4617
5352
|
type: { const: 'MobileField' },
|
|
4618
|
-
label: { type: 'string' },
|
|
5353
|
+
label: { type: ['string', 'null'] },
|
|
4619
5354
|
cid: { type: 'string' },
|
|
4620
|
-
notes: { type: 'string' },
|
|
5355
|
+
notes: { type: ['string', 'null'] },
|
|
4621
5356
|
private: { type: 'boolean' },
|
|
4622
5357
|
required: { type: 'boolean' },
|
|
4623
5358
|
position: { type: 'integer', minimum: 0 },
|
|
4624
5359
|
unique: { type: 'boolean' },
|
|
4625
|
-
predefined_value: { type: 'string' },
|
|
4626
|
-
placeholder: { type: 'string' },
|
|
5360
|
+
predefined_value: { type: ['string', 'null'] },
|
|
5361
|
+
placeholder: { type: ['string', 'null'] },
|
|
4627
5362
|
sms_verification: { type: 'boolean' },
|
|
5363
|
+
access_control_list_limit: { type: 'boolean' },
|
|
5364
|
+
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
5365
|
+
acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
|
|
4628
5366
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4629
5367
|
start_new_row: { type: 'boolean' }
|
|
4630
5368
|
}
|
|
@@ -4635,20 +5373,23 @@ export const SCHEMAS = {
|
|
|
4635
5373
|
required: ['type', 'label', 'choices', 'answers'],
|
|
4636
5374
|
properties: {
|
|
4637
5375
|
type: { const: 'MultiSelect' },
|
|
4638
|
-
label: { type: 'string' },
|
|
5376
|
+
label: { type: ['string', 'null'] },
|
|
4639
5377
|
cid: { type: 'string' },
|
|
4640
|
-
notes: { type: 'string' },
|
|
5378
|
+
notes: { type: ['string', 'null'] },
|
|
4641
5379
|
private: { type: 'boolean' },
|
|
4642
5380
|
required: { type: 'boolean' },
|
|
4643
5381
|
position: { type: 'integer', minimum: 0 },
|
|
4644
5382
|
other_choice_required: { type: 'boolean' },
|
|
4645
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
5383
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
4646
5384
|
calculable: { type: 'boolean' },
|
|
4647
|
-
choices_layout: { type: 'string' },
|
|
5385
|
+
choices_layout: { type: ['string', 'null'] },
|
|
4648
5386
|
random_choices: { type: 'boolean' },
|
|
4649
|
-
minimum_length: { type: 'integer', minimum: 0 },
|
|
4650
|
-
maximum_length: { type: 'integer', minimum: 0 },
|
|
5387
|
+
minimum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
5388
|
+
maximum_length: { type: ['integer', 'null'], minimum: 0 },
|
|
4651
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' },
|
|
4652
5393
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4653
5394
|
start_new_row: { type: 'boolean' },
|
|
4654
5395
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -4684,19 +5425,44 @@ export const SCHEMAS = {
|
|
|
4684
5425
|
}
|
|
4685
5426
|
]
|
|
4686
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
|
+
},
|
|
4687
5444
|
NameFieldInput: {
|
|
4688
5445
|
type: 'object',
|
|
4689
5446
|
additionalProperties: false,
|
|
4690
5447
|
required: ['type', 'label'],
|
|
4691
5448
|
properties: {
|
|
4692
5449
|
type: { const: 'NameField' },
|
|
4693
|
-
label: { type: 'string' },
|
|
5450
|
+
label: { type: ['string', 'null'] },
|
|
4694
5451
|
cid: { type: 'string' },
|
|
4695
|
-
notes: { type: 'string' },
|
|
5452
|
+
notes: { type: ['string', 'null'] },
|
|
4696
5453
|
private: { type: 'boolean' },
|
|
4697
5454
|
required: { type: 'boolean' },
|
|
4698
5455
|
position: { type: 'integer', minimum: 0 },
|
|
4699
5456
|
unique: { type: 'boolean' },
|
|
5457
|
+
placeholder: { type: ['string', 'null'] },
|
|
5458
|
+
access_control_list_limit: { type: 'boolean' },
|
|
5459
|
+
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
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 },
|
|
4700
5466
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4701
5467
|
start_new_row: { type: 'boolean' }
|
|
4702
5468
|
}
|
|
@@ -4769,14 +5535,14 @@ export const SCHEMAS = {
|
|
|
4769
5535
|
required: ['type', 'label'],
|
|
4770
5536
|
properties: {
|
|
4771
5537
|
type: { const: 'NpsField' },
|
|
4772
|
-
label: { type: 'string' },
|
|
5538
|
+
label: { type: ['string', 'null'] },
|
|
4773
5539
|
cid: { type: 'string' },
|
|
4774
|
-
notes: { type: 'string' },
|
|
5540
|
+
notes: { type: ['string', 'null'] },
|
|
4775
5541
|
private: { type: 'boolean' },
|
|
4776
5542
|
required: { type: 'boolean' },
|
|
4777
5543
|
position: { type: 'integer', minimum: 0 },
|
|
4778
|
-
minimum_ratings_display_text: { type: 'string' },
|
|
4779
|
-
maximum_ratings_display_text: { type: 'string' }
|
|
5544
|
+
minimum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
5545
|
+
maximum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 }
|
|
4780
5546
|
}
|
|
4781
5547
|
},
|
|
4782
5548
|
NpsInput: {
|
|
@@ -4785,14 +5551,14 @@ export const SCHEMAS = {
|
|
|
4785
5551
|
required: ['type', 'label', 'answers'],
|
|
4786
5552
|
properties: {
|
|
4787
5553
|
type: { const: 'Nps' },
|
|
4788
|
-
label: { type: 'string' },
|
|
5554
|
+
label: { type: ['string', 'null'] },
|
|
4789
5555
|
cid: { type: 'string' },
|
|
4790
|
-
notes: { type: 'string' },
|
|
5556
|
+
notes: { type: ['string', 'null'] },
|
|
4791
5557
|
private: { type: 'boolean' },
|
|
4792
5558
|
required: { type: 'boolean' },
|
|
4793
5559
|
position: { type: 'integer', minimum: 0 },
|
|
4794
|
-
minimum_ratings_display_text: { type: 'string' },
|
|
4795
|
-
maximum_ratings_display_text: { type: 'string' },
|
|
5560
|
+
minimum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
5561
|
+
maximum_ratings_display_text: { type: ['string', 'null'], maxLength: 20 },
|
|
4796
5562
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
4797
5563
|
answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
|
|
4798
5564
|
answer_explanation: { type: 'string' }
|
|
@@ -4809,30 +5575,59 @@ export const SCHEMAS = {
|
|
|
4809
5575
|
}
|
|
4810
5576
|
]
|
|
4811
5577
|
},
|
|
5578
|
+
NumberFieldColumnInput: {
|
|
5579
|
+
type: 'object',
|
|
5580
|
+
additionalProperties: false,
|
|
5581
|
+
required: ['type', 'label'],
|
|
5582
|
+
properties: {
|
|
5583
|
+
type: { const: 'NumberField' },
|
|
5584
|
+
label: { type: ['string', 'null'] },
|
|
5585
|
+
cid: { type: 'string' },
|
|
5586
|
+
notes: { type: ['string', 'null'] },
|
|
5587
|
+
private: { type: 'boolean' },
|
|
5588
|
+
position: { type: 'integer', minimum: 0 },
|
|
5589
|
+
predefined_value: { type: ['number', 'string', 'null'] },
|
|
5590
|
+
placeholder: { type: ['string', 'null'] },
|
|
5591
|
+
precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
|
|
5592
|
+
display_precision: { type: ['integer', 'null'], minimum: 0 },
|
|
5593
|
+
display_as_percentage: { type: 'boolean' },
|
|
5594
|
+
thousands_separator: { type: 'boolean' },
|
|
5595
|
+
currency_symbol: { type: ['string', 'null'] },
|
|
5596
|
+
currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
|
|
5597
|
+
icon_type: { type: ['string', 'null'], enum: ['none', 'number-2', 'dollar1', 'cny1', null] },
|
|
5598
|
+
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5599
|
+
start_new_row: { type: 'boolean' }
|
|
5600
|
+
},
|
|
5601
|
+
allOf: [
|
|
5602
|
+
{
|
|
5603
|
+
not: {
|
|
5604
|
+
properties: { display_as_percentage: { const: true }, thousands_separator: { const: true } },
|
|
5605
|
+
required: ['display_as_percentage', 'thousands_separator']
|
|
5606
|
+
}
|
|
5607
|
+
}
|
|
5608
|
+
]
|
|
5609
|
+
},
|
|
4812
5610
|
NumberFieldInput: {
|
|
4813
5611
|
type: 'object',
|
|
4814
5612
|
additionalProperties: false,
|
|
4815
5613
|
required: ['type', 'label'],
|
|
4816
5614
|
properties: {
|
|
4817
5615
|
type: { const: 'NumberField' },
|
|
4818
|
-
label: { type: 'string' },
|
|
5616
|
+
label: { type: ['string', 'null'] },
|
|
4819
5617
|
cid: { type: 'string' },
|
|
4820
|
-
notes: { type: 'string' },
|
|
5618
|
+
notes: { type: ['string', 'null'] },
|
|
4821
5619
|
private: { type: 'boolean' },
|
|
4822
5620
|
required: { type: 'boolean' },
|
|
4823
5621
|
position: { type: 'integer', minimum: 0 },
|
|
4824
5622
|
unique: { type: 'boolean' },
|
|
4825
|
-
predefined_value: { type: ['number', 'string'] },
|
|
4826
|
-
placeholder: { type: 'string' },
|
|
4827
|
-
range_min: { type: 'number' },
|
|
4828
|
-
range_max: { type: 'number' },
|
|
4829
|
-
precision: { type: 'integer', minimum: 0, maximum: 14 },
|
|
4830
|
-
display_precision: { type: 'integer', minimum: 0 },
|
|
5623
|
+
predefined_value: { type: ['number', 'string', 'null'] },
|
|
5624
|
+
placeholder: { type: ['string', 'null'] },
|
|
5625
|
+
range_min: { type: ['number', 'null'] },
|
|
5626
|
+
range_max: { type: ['number', 'null'] },
|
|
5627
|
+
precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
|
|
4831
5628
|
display_as_percentage: { type: 'boolean' },
|
|
4832
5629
|
thousands_separator: { type: 'boolean' },
|
|
4833
|
-
|
|
4834
|
-
currency_symbol_position: { type: 'string', enum: ['prefix', 'suffix'] },
|
|
4835
|
-
icon_type: { type: 'string', enum: ['none', 'number-2', 'dollar1', 'cny1'] },
|
|
5630
|
+
icon_type: { type: ['string', 'null'], enum: ['none', 'number-2', 'dollar1', 'cny1', null] },
|
|
4836
5631
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
4837
5632
|
start_new_row: { type: 'boolean' }
|
|
4838
5633
|
},
|
|
@@ -4845,6 +5640,20 @@ export const SCHEMAS = {
|
|
|
4845
5640
|
}
|
|
4846
5641
|
]
|
|
4847
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
|
+
},
|
|
4848
5657
|
OpensearchDisplayFieldRule: {
|
|
4849
5658
|
type: 'object',
|
|
4850
5659
|
required: ['field_api_code'],
|
|
@@ -4940,16 +5749,16 @@ export const SCHEMAS = {
|
|
|
4940
5749
|
required: ['type', 'label'],
|
|
4941
5750
|
properties: {
|
|
4942
5751
|
type: { const: 'PageBreak' },
|
|
4943
|
-
label: { type: 'string' },
|
|
5752
|
+
label: { type: ['string', 'null'] },
|
|
4944
5753
|
cid: { type: 'string' },
|
|
4945
|
-
notes: { type: 'string' },
|
|
5754
|
+
notes: { type: ['string', 'null'] },
|
|
4946
5755
|
private: { type: 'boolean' },
|
|
4947
5756
|
required: { type: 'boolean' },
|
|
4948
5757
|
position: { type: 'integer', minimum: 0 },
|
|
4949
5758
|
disable_previous_page: { type: 'boolean' },
|
|
4950
|
-
previous_page_text: { type: 'string' },
|
|
4951
|
-
next_page_text: { type: 'string' },
|
|
4952
|
-
count_down: { type: 'integer', minimum: 0 }
|
|
5759
|
+
previous_page_text: { type: ['string', 'null'] },
|
|
5760
|
+
next_page_text: { type: ['string', 'null'] },
|
|
5761
|
+
count_down: { type: ['integer', 'null'], minimum: 0 }
|
|
4953
5762
|
}
|
|
4954
5763
|
},
|
|
4955
5764
|
PublishedArtifactInput: {
|
|
@@ -4982,24 +5791,56 @@ export const SCHEMAS = {
|
|
|
4982
5791
|
deliverables: { type: 'array', maxItems: 10, items: { $ref: 'QuickpayDeliverableInput' } }
|
|
4983
5792
|
}
|
|
4984
5793
|
},
|
|
5794
|
+
RadioButtonColumnInput: {
|
|
5795
|
+
type: 'object',
|
|
5796
|
+
additionalProperties: false,
|
|
5797
|
+
required: ['type', 'label'],
|
|
5798
|
+
properties: {
|
|
5799
|
+
type: { const: 'RadioButton' },
|
|
5800
|
+
label: { type: ['string', 'null'] },
|
|
5801
|
+
cid: { type: 'string' },
|
|
5802
|
+
notes: { type: ['string', 'null'] },
|
|
5803
|
+
private: { type: 'boolean' },
|
|
5804
|
+
position: { type: 'integer', minimum: 0 },
|
|
5805
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
5806
|
+
calculable: { type: 'boolean' },
|
|
5807
|
+
choices_layout: { type: ['string', 'null'] },
|
|
5808
|
+
random_choices: { type: 'boolean' },
|
|
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' },
|
|
5813
|
+
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5814
|
+
start_new_row: { type: 'boolean' }
|
|
5815
|
+
},
|
|
5816
|
+
allOf: [
|
|
5817
|
+
{
|
|
5818
|
+
if: { properties: { calculable: { const: true } }, required: ['calculable'] },
|
|
5819
|
+
then: { properties: { choices: { items: { required: ['operand_value'] } } } }
|
|
5820
|
+
}
|
|
5821
|
+
]
|
|
5822
|
+
},
|
|
4985
5823
|
RadioButtonInput: {
|
|
4986
5824
|
type: 'object',
|
|
4987
5825
|
additionalProperties: false,
|
|
4988
5826
|
required: ['type', 'label'],
|
|
4989
5827
|
properties: {
|
|
4990
5828
|
type: { const: 'RadioButton' },
|
|
4991
|
-
label: { type: 'string' },
|
|
5829
|
+
label: { type: ['string', 'null'] },
|
|
4992
5830
|
cid: { type: 'string' },
|
|
4993
|
-
notes: { type: 'string' },
|
|
5831
|
+
notes: { type: ['string', 'null'] },
|
|
4994
5832
|
private: { type: 'boolean' },
|
|
4995
5833
|
required: { type: 'boolean' },
|
|
4996
5834
|
position: { type: 'integer', minimum: 0 },
|
|
4997
5835
|
other_choice_required: { type: 'boolean' },
|
|
4998
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
5836
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
4999
5837
|
calculable: { type: 'boolean' },
|
|
5000
|
-
choices_layout: { type: 'string' },
|
|
5838
|
+
choices_layout: { type: ['string', 'null'] },
|
|
5001
5839
|
random_choices: { type: 'boolean' },
|
|
5002
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' },
|
|
5003
5844
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5004
5845
|
start_new_row: { type: 'boolean' }
|
|
5005
5846
|
},
|
|
@@ -5016,13 +5857,16 @@ export const SCHEMAS = {
|
|
|
5016
5857
|
required: ['type', 'label'],
|
|
5017
5858
|
properties: {
|
|
5018
5859
|
type: { const: 'RatingField' },
|
|
5019
|
-
label: { type: 'string' },
|
|
5860
|
+
label: { type: ['string', 'null'] },
|
|
5020
5861
|
cid: { type: 'string' },
|
|
5021
|
-
notes: { type: 'string' },
|
|
5862
|
+
notes: { type: ['string', 'null'] },
|
|
5022
5863
|
private: { type: 'boolean' },
|
|
5023
5864
|
required: { type: 'boolean' },
|
|
5024
5865
|
position: { type: 'integer', minimum: 0 },
|
|
5025
|
-
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 }
|
|
5026
5870
|
}
|
|
5027
5871
|
},
|
|
5028
5872
|
RatingInput: {
|
|
@@ -5031,13 +5875,16 @@ export const SCHEMAS = {
|
|
|
5031
5875
|
required: ['type', 'label', 'answers'],
|
|
5032
5876
|
properties: {
|
|
5033
5877
|
type: { const: 'Rating' },
|
|
5034
|
-
label: { type: 'string' },
|
|
5878
|
+
label: { type: ['string', 'null'] },
|
|
5035
5879
|
cid: { type: 'string' },
|
|
5036
|
-
notes: { type: 'string' },
|
|
5880
|
+
notes: { type: ['string', 'null'] },
|
|
5037
5881
|
private: { type: 'boolean' },
|
|
5038
5882
|
required: { type: 'boolean' },
|
|
5039
5883
|
position: { type: 'integer', minimum: 0 },
|
|
5040
|
-
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 },
|
|
5041
5888
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
5042
5889
|
answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
|
|
5043
5890
|
answer_explanation: { type: 'string' }
|
|
@@ -5054,21 +5901,39 @@ export const SCHEMAS = {
|
|
|
5054
5901
|
}
|
|
5055
5902
|
]
|
|
5056
5903
|
},
|
|
5057
|
-
|
|
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
|
+
},
|
|
5923
|
+
RelationFieldColumnInput: {
|
|
5058
5924
|
type: 'object',
|
|
5059
5925
|
additionalProperties: false,
|
|
5060
5926
|
required: ['type', 'label'],
|
|
5061
5927
|
properties: {
|
|
5062
5928
|
type: { const: 'RelationField' },
|
|
5063
|
-
label: { type: 'string' },
|
|
5929
|
+
label: { type: ['string', 'null'] },
|
|
5064
5930
|
cid: { type: 'string' },
|
|
5065
|
-
notes: { type: 'string' },
|
|
5931
|
+
notes: { type: ['string', 'null'] },
|
|
5066
5932
|
private: { type: 'boolean' },
|
|
5067
|
-
required: { type: 'boolean' },
|
|
5068
5933
|
position: { type: 'integer', minimum: 0 },
|
|
5069
5934
|
related_form_token: { type: 'string' },
|
|
5070
5935
|
paired: { type: 'boolean' },
|
|
5071
|
-
related_label: { type: 'string' }
|
|
5936
|
+
related_label: { type: ['string', 'null'] }
|
|
5072
5937
|
}
|
|
5073
5938
|
},
|
|
5074
5939
|
ReservationByDayQuotaInput: {
|
|
@@ -5083,14 +5948,20 @@ export const SCHEMAS = {
|
|
|
5083
5948
|
},
|
|
5084
5949
|
show_left_quota: { type: 'boolean' },
|
|
5085
5950
|
start_time_offset: {
|
|
5086
|
-
type: 'object',
|
|
5951
|
+
type: ['object', 'null'],
|
|
5087
5952
|
additionalProperties: false,
|
|
5088
|
-
properties: {
|
|
5953
|
+
properties: {
|
|
5954
|
+
offset_number: { type: ['integer', 'null'], minimum: 0 },
|
|
5955
|
+
unit: { type: ['string', 'null'], enum: ['day', 'hour', null] }
|
|
5956
|
+
}
|
|
5089
5957
|
},
|
|
5090
5958
|
end_time_offset: {
|
|
5091
|
-
type: 'object',
|
|
5959
|
+
type: ['object', 'null'],
|
|
5092
5960
|
additionalProperties: false,
|
|
5093
|
-
properties: {
|
|
5961
|
+
properties: {
|
|
5962
|
+
offset_number: { type: ['integer', 'null'], minimum: 0 },
|
|
5963
|
+
unit: { type: ['string', 'null'], enum: ['day', 'hour', null] }
|
|
5964
|
+
}
|
|
5094
5965
|
},
|
|
5095
5966
|
daily_time_range_quotas: {
|
|
5096
5967
|
type: 'array',
|
|
@@ -5099,13 +5970,13 @@ export const SCHEMAS = {
|
|
|
5099
5970
|
additionalProperties: false,
|
|
5100
5971
|
properties: {
|
|
5101
5972
|
for_wday: {
|
|
5102
|
-
type: 'string',
|
|
5103
|
-
enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
|
|
5973
|
+
type: ['string', 'null'],
|
|
5974
|
+
enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', null]
|
|
5104
5975
|
},
|
|
5105
|
-
quota: { type: 'integer', minimum: 0 },
|
|
5106
|
-
price: { type: 'number', minimum: 0 },
|
|
5107
|
-
position: { type: 'integer', minimum: 0 },
|
|
5108
|
-
daily_time_range_token: { type: 'string' }
|
|
5976
|
+
quota: { type: ['integer', 'null'], minimum: 0 },
|
|
5977
|
+
price: { type: ['number', 'null'], minimum: 0 },
|
|
5978
|
+
position: { type: ['integer', 'null'], minimum: 0 },
|
|
5979
|
+
daily_time_range_token: { type: ['string', 'null'] }
|
|
5109
5980
|
}
|
|
5110
5981
|
}
|
|
5111
5982
|
},
|
|
@@ -5114,7 +5985,7 @@ export const SCHEMAS = {
|
|
|
5114
5985
|
items: {
|
|
5115
5986
|
type: 'object',
|
|
5116
5987
|
additionalProperties: false,
|
|
5117
|
-
properties: { start_time: { type: 'string' }, end_time: { type: 'string' } }
|
|
5988
|
+
properties: { start_time: { type: ['string', 'null'] }, end_time: { type: ['string', 'null'] } }
|
|
5118
5989
|
}
|
|
5119
5990
|
},
|
|
5120
5991
|
special_time_range_quotas: {
|
|
@@ -5126,7 +5997,7 @@ export const SCHEMAS = {
|
|
|
5126
5997
|
properties: {
|
|
5127
5998
|
special_dates: { type: 'array', minItems: 1, items: { type: 'string' } },
|
|
5128
5999
|
quota: { type: 'integer', minimum: 0 },
|
|
5129
|
-
price: { type: 'number', minimum: 0 }
|
|
6000
|
+
price: { type: ['number', 'null'], minimum: 0 }
|
|
5130
6001
|
}
|
|
5131
6002
|
}
|
|
5132
6003
|
}
|
|
@@ -5145,14 +6016,20 @@ export const SCHEMAS = {
|
|
|
5145
6016
|
},
|
|
5146
6017
|
show_left_quota: { type: 'boolean' },
|
|
5147
6018
|
start_time_offset: {
|
|
5148
|
-
type: 'object',
|
|
6019
|
+
type: ['object', 'null'],
|
|
5149
6020
|
additionalProperties: false,
|
|
5150
|
-
properties: {
|
|
6021
|
+
properties: {
|
|
6022
|
+
offset_number: { type: ['integer', 'null'], minimum: 0 },
|
|
6023
|
+
unit: { type: ['string', 'null'], enum: ['day', 'hour', null] }
|
|
6024
|
+
}
|
|
5151
6025
|
},
|
|
5152
6026
|
end_time_offset: {
|
|
5153
|
-
type: 'object',
|
|
6027
|
+
type: ['object', 'null'],
|
|
5154
6028
|
additionalProperties: false,
|
|
5155
|
-
properties: {
|
|
6029
|
+
properties: {
|
|
6030
|
+
offset_number: { type: ['integer', 'null'], minimum: 0 },
|
|
6031
|
+
unit: { type: ['string', 'null'], enum: ['day', 'hour', null] }
|
|
6032
|
+
}
|
|
5156
6033
|
},
|
|
5157
6034
|
daily_time_range_quotas: {
|
|
5158
6035
|
type: 'array',
|
|
@@ -5162,27 +6039,29 @@ export const SCHEMAS = {
|
|
|
5162
6039
|
required: ['start_time', 'end_time'],
|
|
5163
6040
|
properties: {
|
|
5164
6041
|
for_wday: {
|
|
5165
|
-
type: 'string',
|
|
5166
|
-
enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
|
|
6042
|
+
type: ['string', 'null'],
|
|
6043
|
+
enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', null]
|
|
5167
6044
|
},
|
|
5168
|
-
quota: { type: 'integer', minimum: 0 },
|
|
5169
|
-
price: { type: 'number', minimum: 0 },
|
|
5170
|
-
position: { type: 'integer', minimum: 0 },
|
|
5171
|
-
daily_time_range_token: { type: 'string' },
|
|
6045
|
+
quota: { type: ['integer', 'null'], minimum: 0 },
|
|
6046
|
+
price: { type: ['number', 'null'], minimum: 0 },
|
|
6047
|
+
position: { type: ['integer', 'null'], minimum: 0 },
|
|
6048
|
+
daily_time_range_token: { type: ['string', 'null'] },
|
|
5172
6049
|
start_time: {
|
|
5173
6050
|
type: 'object',
|
|
5174
6051
|
additionalProperties: false,
|
|
6052
|
+
required: ['hour', 'minute'],
|
|
5175
6053
|
properties: {
|
|
5176
|
-
hour: { type: 'integer', minimum: 0, maximum: 23 },
|
|
5177
|
-
minute: { type: 'integer', minimum: 0, maximum: 59 }
|
|
6054
|
+
hour: { type: ['integer', 'null'], minimum: 0, maximum: 23 },
|
|
6055
|
+
minute: { type: ['integer', 'null'], minimum: 0, maximum: 59 }
|
|
5178
6056
|
}
|
|
5179
6057
|
},
|
|
5180
6058
|
end_time: {
|
|
5181
6059
|
type: 'object',
|
|
5182
6060
|
additionalProperties: false,
|
|
6061
|
+
required: ['hour', 'minute'],
|
|
5183
6062
|
properties: {
|
|
5184
|
-
hour: { type: 'integer', minimum: 0, maximum: 23 },
|
|
5185
|
-
minute: { type: 'integer', minimum: 0, maximum: 59 }
|
|
6063
|
+
hour: { type: ['integer', 'null'], minimum: 0, maximum: 23 },
|
|
6064
|
+
minute: { type: ['integer', 'null'], minimum: 0, maximum: 59 }
|
|
5186
6065
|
}
|
|
5187
6066
|
}
|
|
5188
6067
|
}
|
|
@@ -5193,13 +6072,27 @@ export const SCHEMAS = {
|
|
|
5193
6072
|
items: {
|
|
5194
6073
|
type: 'object',
|
|
5195
6074
|
additionalProperties: false,
|
|
5196
|
-
properties: { start_time: { type: 'string' }, end_time: { type: 'string' } }
|
|
6075
|
+
properties: { start_time: { type: ['string', 'null'] }, end_time: { type: ['string', 'null'] } }
|
|
5197
6076
|
}
|
|
5198
6077
|
},
|
|
5199
|
-
time_range_mode: { type: 'string', enum: ['same_by_wday', 'different_by_wday'] }
|
|
6078
|
+
time_range_mode: { type: ['string', 'null'], enum: ['same_by_wday', 'different_by_wday', null] }
|
|
5200
6079
|
},
|
|
5201
6080
|
if: { properties: { time_range_mode: { const: 'different_by_wday' } }, required: ['time_range_mode'] },
|
|
5202
|
-
then: {
|
|
6081
|
+
then: {
|
|
6082
|
+
properties: {
|
|
6083
|
+
daily_time_range_quotas: {
|
|
6084
|
+
items: {
|
|
6085
|
+
required: ['for_wday'],
|
|
6086
|
+
properties: {
|
|
6087
|
+
for_wday: {
|
|
6088
|
+
type: 'string',
|
|
6089
|
+
enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
|
|
6090
|
+
}
|
|
6091
|
+
}
|
|
6092
|
+
}
|
|
6093
|
+
}
|
|
6094
|
+
}
|
|
6095
|
+
}
|
|
5203
6096
|
},
|
|
5204
6097
|
ReservationFieldInput: {
|
|
5205
6098
|
type: 'object',
|
|
@@ -5207,24 +6100,27 @@ export const SCHEMAS = {
|
|
|
5207
6100
|
required: ['type', 'label'],
|
|
5208
6101
|
properties: {
|
|
5209
6102
|
type: { const: 'ReservationField' },
|
|
5210
|
-
label: { type: 'string' },
|
|
6103
|
+
label: { type: ['string', 'null'] },
|
|
5211
6104
|
cid: { type: 'string' },
|
|
5212
|
-
notes: { type: 'string' },
|
|
6105
|
+
notes: { type: ['string', 'null'] },
|
|
5213
6106
|
private: { type: 'boolean' },
|
|
5214
6107
|
required: { type: 'boolean' },
|
|
5215
6108
|
position: { type: 'integer', minimum: 0 },
|
|
5216
6109
|
reservation_items: { type: 'array', minItems: 1, items: { $ref: 'ReservationItemInput' } },
|
|
5217
6110
|
allow_multiple_items: { type: 'boolean' },
|
|
5218
6111
|
item_allow_multiple_reservations: { type: 'boolean' },
|
|
5219
|
-
allow_multiple_number: { type: 'boolean' }
|
|
5220
|
-
use_daily_time_range: { type: 'boolean' }
|
|
6112
|
+
allow_multiple_number: { type: 'boolean' }
|
|
5221
6113
|
}
|
|
5222
6114
|
},
|
|
5223
6115
|
ReservationItemImageInput: {
|
|
5224
6116
|
type: 'object',
|
|
5225
6117
|
additionalProperties: false,
|
|
5226
6118
|
anyOf: [{ required: ['image_url'] }, { required: ['image_base64'] }, { required: ['attachment_id'] }],
|
|
5227
|
-
properties: {
|
|
6119
|
+
properties: {
|
|
6120
|
+
image_url: { type: ['string', 'null'] },
|
|
6121
|
+
image_base64: { type: ['string', 'null'] },
|
|
6122
|
+
attachment_id: { type: ['string', 'null'] }
|
|
6123
|
+
}
|
|
5228
6124
|
},
|
|
5229
6125
|
ReservationItemInput: {
|
|
5230
6126
|
type: 'object',
|
|
@@ -5232,14 +6128,14 @@ export const SCHEMAS = {
|
|
|
5232
6128
|
required: ['name'],
|
|
5233
6129
|
properties: {
|
|
5234
6130
|
name: { type: 'string' },
|
|
5235
|
-
api_code: { type: 'string' },
|
|
5236
|
-
description: { type: 'string' },
|
|
5237
|
-
position: { type: 'integer', minimum: 0 },
|
|
6131
|
+
api_code: { type: ['string', 'null'] },
|
|
6132
|
+
description: { type: ['string', 'null'] },
|
|
6133
|
+
position: { type: ['integer', 'null'], minimum: 0 },
|
|
5238
6134
|
hidden: { type: 'boolean' },
|
|
5239
6135
|
selected: { type: 'boolean' },
|
|
5240
6136
|
payable: { type: 'boolean' },
|
|
5241
|
-
start_date: { type: 'string', anyOf: [{}, {}] },
|
|
5242
|
-
end_date: { type: 'string', anyOf: [{}, {}] },
|
|
6137
|
+
start_date: { type: ['string', 'null'], anyOf: [{}, {}] },
|
|
6138
|
+
end_date: { type: ['string', 'null'], anyOf: [{}, {}] },
|
|
5243
6139
|
quota_setting: { $ref: 'ReservationQuotaSettingInput' },
|
|
5244
6140
|
images: { type: 'array', maxItems: 5, items: { $ref: 'ReservationItemImageInput' } }
|
|
5245
6141
|
}
|
|
@@ -5270,6 +6166,70 @@ export const SCHEMAS = {
|
|
|
5270
6166
|
idempotency_key: { type: 'string', maxLength: 255 }
|
|
5271
6167
|
}
|
|
5272
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
|
+
},
|
|
5273
6233
|
RoutineDataConditionInput: {
|
|
5274
6234
|
type: 'object',
|
|
5275
6235
|
required: ['scope_conditions'],
|
|
@@ -5349,10 +6309,40 @@ export const SCHEMAS = {
|
|
|
5349
6309
|
delete_authorized: {},
|
|
5350
6310
|
message_rules: {
|
|
5351
6311
|
type: ['array', 'null'],
|
|
5352
|
-
items: {
|
|
6312
|
+
items: {
|
|
6313
|
+
anyOf: [
|
|
6314
|
+
{ $ref: 'RoutineGroupMessageRuleInput' },
|
|
6315
|
+
{ $ref: 'RoutineEmailMessageRuleInput' },
|
|
6316
|
+
{ $ref: 'RoutineSMSMessageRuleInput' },
|
|
6317
|
+
{ $ref: 'RoutineSystemMessageRuleInput' },
|
|
6318
|
+
{ $ref: 'RoutineWebhookMessageRuleInput' },
|
|
6319
|
+
{ $ref: 'RoutineWebhookBodyRuleInput' },
|
|
6320
|
+
{ $ref: 'RoutineWebhookEntryRuleInput' }
|
|
6321
|
+
]
|
|
6322
|
+
}
|
|
5353
6323
|
}
|
|
5354
6324
|
}
|
|
5355
6325
|
},
|
|
6326
|
+
RoutineSMSMessageRuleInput: {
|
|
6327
|
+
type: 'object',
|
|
6328
|
+
anyOf: [{ required: ['approach'] }, { required: ['id'] }],
|
|
6329
|
+
properties: {
|
|
6330
|
+
approach: { type: ['string', 'null'], enum: ['sms', null] },
|
|
6331
|
+
id: { type: 'string' },
|
|
6332
|
+
sms_template_id: { type: ['string', 'null'] },
|
|
6333
|
+
recipients: { type: 'array', maxItems: 50, uniqueItems: true, items: { type: 'string' } },
|
|
6334
|
+
recipient_fields: {
|
|
6335
|
+
type: 'array',
|
|
6336
|
+
items: {
|
|
6337
|
+
type: 'object',
|
|
6338
|
+
additionalProperties: false,
|
|
6339
|
+
required: ['form_token', 'field_code'],
|
|
6340
|
+
properties: { form_token: { type: 'string' }, field_code: { type: 'string' } }
|
|
6341
|
+
}
|
|
6342
|
+
},
|
|
6343
|
+
variables: { type: 'object', additionalProperties: { type: 'string' } }
|
|
6344
|
+
}
|
|
6345
|
+
},
|
|
5356
6346
|
RoutineScheduleInput: {
|
|
5357
6347
|
type: 'object',
|
|
5358
6348
|
properties: {
|
|
@@ -5374,6 +6364,63 @@ export const SCHEMAS = {
|
|
|
5374
6364
|
scope_attr: { type: 'string' }
|
|
5375
6365
|
}
|
|
5376
6366
|
},
|
|
6367
|
+
RoutineSystemMessageRuleInput: {
|
|
6368
|
+
type: 'object',
|
|
6369
|
+
anyOf: [{ required: ['approach'] }, { required: ['id'] }],
|
|
6370
|
+
properties: {
|
|
6371
|
+
approach: { type: 'string', enum: ['system_message'] },
|
|
6372
|
+
id: { type: 'string' },
|
|
6373
|
+
title: { type: 'string', maxLength: 200 },
|
|
6374
|
+
content: { type: ['string', 'null'], maxLength: 500 }
|
|
6375
|
+
}
|
|
6376
|
+
},
|
|
6377
|
+
RoutineWebhookBodyRuleInput: {
|
|
6378
|
+
type: 'object',
|
|
6379
|
+
anyOf: [{ required: ['approach', 'body'] }, { required: ['id'] }],
|
|
6380
|
+
properties: {
|
|
6381
|
+
approach: { type: 'string', enum: ['webhook'] },
|
|
6382
|
+
id: { type: 'string' },
|
|
6383
|
+
url: { type: 'string' },
|
|
6384
|
+
channel_id: { type: 'string' },
|
|
6385
|
+
body: { type: 'string', maxLength: 20000 }
|
|
6386
|
+
}
|
|
6387
|
+
},
|
|
6388
|
+
RoutineWebhookEntryRuleInput: {
|
|
6389
|
+
type: 'object',
|
|
6390
|
+
anyOf: [{ required: ['approach', 'form_token'] }, { required: ['id'] }],
|
|
6391
|
+
properties: {
|
|
6392
|
+
approach: { type: 'string', enum: ['webhook'] },
|
|
6393
|
+
id: { type: 'string' },
|
|
6394
|
+
url: { type: 'string' },
|
|
6395
|
+
channel_id: { type: 'string' },
|
|
6396
|
+
form_token: { type: 'string' },
|
|
6397
|
+
selection: { type: 'string', maxLength: 2000 },
|
|
6398
|
+
once_per_entry: { type: 'boolean' }
|
|
6399
|
+
}
|
|
6400
|
+
},
|
|
6401
|
+
RoutineWebhookMessageRuleInput: {
|
|
6402
|
+
type: 'object',
|
|
6403
|
+
anyOf: [{ required: ['approach'] }, { required: ['id'] }],
|
|
6404
|
+
properties: {
|
|
6405
|
+
approach: { type: 'string', enum: ['webhook'] },
|
|
6406
|
+
id: { type: 'string' },
|
|
6407
|
+
url: { type: 'string' },
|
|
6408
|
+
channel_id: { type: 'string' },
|
|
6409
|
+
title: { type: 'string', maxLength: 200 },
|
|
6410
|
+
content: { type: 'string' }
|
|
6411
|
+
}
|
|
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
|
+
},
|
|
5377
6424
|
SMSMessageChannelInput: {
|
|
5378
6425
|
type: 'object',
|
|
5379
6426
|
additionalProperties: false,
|
|
@@ -5543,7 +6590,9 @@ export const SCHEMAS = {
|
|
|
5543
6590
|
'end'
|
|
5544
6591
|
]
|
|
5545
6592
|
},
|
|
5546
|
-
value: {}
|
|
6593
|
+
value: {},
|
|
6594
|
+
group_index: { type: 'integer' },
|
|
6595
|
+
groupIndex: { type: 'integer' }
|
|
5547
6596
|
}
|
|
5548
6597
|
},
|
|
5549
6598
|
SectionBreakInput: {
|
|
@@ -5552,9 +6601,9 @@ export const SCHEMAS = {
|
|
|
5552
6601
|
required: ['type', 'label'],
|
|
5553
6602
|
properties: {
|
|
5554
6603
|
type: { const: 'SectionBreak' },
|
|
5555
|
-
label: { type: 'string' },
|
|
6604
|
+
label: { type: ['string', 'null'] },
|
|
5556
6605
|
cid: { type: 'string' },
|
|
5557
|
-
notes: { type: 'string' },
|
|
6606
|
+
notes: { type: ['string', 'null'] },
|
|
5558
6607
|
private: { type: 'boolean' },
|
|
5559
6608
|
required: { type: 'boolean' },
|
|
5560
6609
|
position: { type: 'integer', minimum: 0 },
|
|
@@ -5562,17 +6611,16 @@ export const SCHEMAS = {
|
|
|
5562
6611
|
show_part_description: { type: 'boolean' }
|
|
5563
6612
|
}
|
|
5564
6613
|
},
|
|
5565
|
-
|
|
6614
|
+
SequenceFieldColumnInput: {
|
|
5566
6615
|
type: 'object',
|
|
5567
6616
|
additionalProperties: false,
|
|
5568
6617
|
required: ['type', 'label'],
|
|
5569
6618
|
properties: {
|
|
5570
6619
|
type: { const: 'SequenceField' },
|
|
5571
|
-
label: { type: 'string' },
|
|
6620
|
+
label: { type: ['string', 'null'] },
|
|
5572
6621
|
cid: { type: 'string' },
|
|
5573
|
-
notes: { type: 'string' },
|
|
6622
|
+
notes: { type: ['string', 'null'] },
|
|
5574
6623
|
private: { type: 'boolean' },
|
|
5575
|
-
required: { type: 'boolean' },
|
|
5576
6624
|
position: { type: 'integer', minimum: 0 },
|
|
5577
6625
|
segments: { type: 'array', minItems: 1, items: { $ref: 'SequenceSegmentInput' } }
|
|
5578
6626
|
}
|
|
@@ -5583,18 +6631,29 @@ export const SCHEMAS = {
|
|
|
5583
6631
|
required: ['kind'],
|
|
5584
6632
|
properties: {
|
|
5585
6633
|
kind: { type: 'string', enum: ['fixed_text', 'field_value', 'sequence_number'] },
|
|
5586
|
-
value: { type: 'string', minLength: 1, maxLength: 6 },
|
|
5587
|
-
api_code: { type: 'string' },
|
|
5588
|
-
cid: { type: 'string' },
|
|
5589
|
-
digits: { type: 'integer', minimum: 1, maximum: 12 }
|
|
6634
|
+
value: { type: ['string', 'null'], minLength: 1, maxLength: 6 },
|
|
6635
|
+
api_code: { type: ['string', 'null'] },
|
|
6636
|
+
cid: { type: ['string', 'null'] },
|
|
6637
|
+
digits: { type: ['integer', 'null'], minimum: 1, maximum: 12 }
|
|
5590
6638
|
},
|
|
5591
6639
|
allOf: [
|
|
5592
|
-
{
|
|
6640
|
+
{
|
|
6641
|
+
if: { properties: { kind: { const: 'fixed_text' } } },
|
|
6642
|
+
then: { required: ['value'], properties: { value: { type: 'string' } } }
|
|
6643
|
+
},
|
|
5593
6644
|
{
|
|
5594
6645
|
if: { properties: { kind: { const: 'field_value' } } },
|
|
5595
|
-
then: {
|
|
6646
|
+
then: {
|
|
6647
|
+
anyOf: [
|
|
6648
|
+
{ required: ['api_code'], properties: { api_code: { type: 'string' } } },
|
|
6649
|
+
{ required: ['cid'], properties: { cid: { type: 'string' } } }
|
|
6650
|
+
]
|
|
6651
|
+
}
|
|
5596
6652
|
},
|
|
5597
|
-
{
|
|
6653
|
+
{
|
|
6654
|
+
if: { properties: { kind: { const: 'sequence_number' } } },
|
|
6655
|
+
then: { required: ['digits'], properties: { digits: { type: 'integer' } } }
|
|
6656
|
+
}
|
|
5598
6657
|
]
|
|
5599
6658
|
},
|
|
5600
6659
|
ShortAnswerInput: {
|
|
@@ -5603,15 +6662,17 @@ export const SCHEMAS = {
|
|
|
5603
6662
|
required: ['type', 'label', 'answers'],
|
|
5604
6663
|
properties: {
|
|
5605
6664
|
type: { const: 'ShortAnswer' },
|
|
5606
|
-
label: { type: 'string' },
|
|
6665
|
+
label: { type: ['string', 'null'] },
|
|
5607
6666
|
cid: { type: 'string' },
|
|
5608
|
-
notes: { type: 'string' },
|
|
6667
|
+
notes: { type: ['string', 'null'] },
|
|
5609
6668
|
private: { type: 'boolean' },
|
|
5610
6669
|
required: { type: 'boolean' },
|
|
5611
6670
|
position: { type: 'integer', minimum: 0 },
|
|
5612
6671
|
unique: { type: 'boolean' },
|
|
5613
|
-
predefined_value: { type: 'string' },
|
|
5614
|
-
placeholder: { type: 'string' },
|
|
6672
|
+
predefined_value: { type: ['string', 'null'] },
|
|
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 },
|
|
5615
6676
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5616
6677
|
start_new_row: { type: 'boolean' },
|
|
5617
6678
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -5636,18 +6697,21 @@ export const SCHEMAS = {
|
|
|
5636
6697
|
required: ['type', 'label', 'choices', 'answers'],
|
|
5637
6698
|
properties: {
|
|
5638
6699
|
type: { const: 'SingleSelect' },
|
|
5639
|
-
label: { type: 'string' },
|
|
6700
|
+
label: { type: ['string', 'null'] },
|
|
5640
6701
|
cid: { type: 'string' },
|
|
5641
|
-
notes: { type: 'string' },
|
|
6702
|
+
notes: { type: ['string', 'null'] },
|
|
5642
6703
|
private: { type: 'boolean' },
|
|
5643
6704
|
required: { type: 'boolean' },
|
|
5644
6705
|
position: { type: 'integer', minimum: 0 },
|
|
5645
6706
|
other_choice_required: { type: 'boolean' },
|
|
5646
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
6707
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
5647
6708
|
calculable: { type: 'boolean' },
|
|
5648
|
-
choices_layout: { type: 'string' },
|
|
6709
|
+
choices_layout: { type: ['string', 'null'] },
|
|
5649
6710
|
random_choices: { type: 'boolean' },
|
|
5650
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' },
|
|
5651
6715
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5652
6716
|
start_new_row: { type: 'boolean' },
|
|
5653
6717
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -5670,20 +6734,28 @@ export const SCHEMAS = {
|
|
|
5670
6734
|
}
|
|
5671
6735
|
]
|
|
5672
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
|
+
},
|
|
5673
6743
|
SortFieldInput: {
|
|
5674
6744
|
type: 'object',
|
|
5675
6745
|
additionalProperties: false,
|
|
5676
6746
|
required: ['type', 'label'],
|
|
5677
6747
|
properties: {
|
|
5678
6748
|
type: { const: 'SortField' },
|
|
5679
|
-
label: { type: 'string' },
|
|
6749
|
+
label: { type: ['string', 'null'] },
|
|
5680
6750
|
cid: { type: 'string' },
|
|
5681
|
-
notes: { type: 'string' },
|
|
6751
|
+
notes: { type: ['string', 'null'] },
|
|
5682
6752
|
private: { type: 'boolean' },
|
|
5683
6753
|
required: { type: 'boolean' },
|
|
5684
6754
|
position: { type: 'integer', minimum: 0 },
|
|
5685
|
-
choices: { type: 'array', minItems: 1, items: { $ref: '
|
|
5686
|
-
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 }
|
|
5687
6759
|
}
|
|
5688
6760
|
},
|
|
5689
6761
|
SortRule: {
|
|
@@ -5724,43 +6796,49 @@ export const SCHEMAS = {
|
|
|
5724
6796
|
'AttachmentField',
|
|
5725
6797
|
'FormulaField',
|
|
5726
6798
|
'RelationField',
|
|
5727
|
-
'SequenceField'
|
|
6799
|
+
'SequenceField',
|
|
6800
|
+
'LookupField',
|
|
6801
|
+
'RollupField'
|
|
5728
6802
|
]
|
|
5729
6803
|
},
|
|
5730
|
-
label: { type: 'string' }
|
|
6804
|
+
label: { type: ['string', 'null'] }
|
|
5731
6805
|
},
|
|
5732
6806
|
discriminator: {
|
|
5733
6807
|
propertyName: 'type',
|
|
5734
6808
|
mapping: {
|
|
5735
|
-
TextArea: '
|
|
5736
|
-
RadioButton: '
|
|
5737
|
-
CheckBox: '
|
|
5738
|
-
BooleanField: '
|
|
5739
|
-
MobileField: '
|
|
5740
|
-
NumberField: '
|
|
5741
|
-
DateTimeField: '
|
|
5742
|
-
EmailField: '
|
|
5743
|
-
LinkField: '
|
|
5744
|
-
AttachmentField: '
|
|
5745
|
-
FormulaField: '
|
|
5746
|
-
RelationField: '
|
|
5747
|
-
SequenceField: '
|
|
6809
|
+
TextArea: 'TextAreaColumnInput',
|
|
6810
|
+
RadioButton: 'RadioButtonColumnInput',
|
|
6811
|
+
CheckBox: 'CheckBoxColumnInput',
|
|
6812
|
+
BooleanField: 'BooleanFieldColumnInput',
|
|
6813
|
+
MobileField: 'MobileFieldColumnInput',
|
|
6814
|
+
NumberField: 'NumberFieldColumnInput',
|
|
6815
|
+
DateTimeField: 'DateTimeFieldColumnInput',
|
|
6816
|
+
EmailField: 'EmailFieldColumnInput',
|
|
6817
|
+
LinkField: 'LinkFieldColumnInput',
|
|
6818
|
+
AttachmentField: 'AttachmentFieldColumnInput',
|
|
6819
|
+
FormulaField: 'FormulaFieldColumnInput',
|
|
6820
|
+
RelationField: 'RelationFieldColumnInput',
|
|
6821
|
+
SequenceField: 'SequenceFieldColumnInput',
|
|
6822
|
+
LookupField: 'LookupFieldColumnInput',
|
|
6823
|
+
RollupField: 'RollupFieldColumnInput'
|
|
5748
6824
|
}
|
|
5749
6825
|
},
|
|
5750
6826
|
oneOf: [
|
|
5751
|
-
{ $ref: '
|
|
5752
|
-
{ $ref: '
|
|
5753
|
-
{ $ref: '
|
|
5754
|
-
{ $ref: '
|
|
5755
|
-
{ $ref: '
|
|
5756
|
-
{ $ref: '
|
|
5757
|
-
{ $ref: '
|
|
5758
|
-
{ $ref: '
|
|
5759
|
-
{ $ref: '
|
|
5760
|
-
{ $ref: '
|
|
5761
|
-
{ $ref: '
|
|
5762
|
-
{ $ref: '
|
|
5763
|
-
{ $ref: '
|
|
6827
|
+
{ $ref: 'TextAreaColumnInput' },
|
|
6828
|
+
{ $ref: 'RadioButtonColumnInput' },
|
|
6829
|
+
{ $ref: 'CheckBoxColumnInput' },
|
|
6830
|
+
{ $ref: 'BooleanFieldColumnInput' },
|
|
6831
|
+
{ $ref: 'MobileFieldColumnInput' },
|
|
6832
|
+
{ $ref: 'NumberFieldColumnInput' },
|
|
6833
|
+
{ $ref: 'DateTimeFieldColumnInput' },
|
|
6834
|
+
{ $ref: 'EmailFieldColumnInput' },
|
|
6835
|
+
{ $ref: 'LinkFieldColumnInput' },
|
|
6836
|
+
{ $ref: 'AttachmentFieldColumnInput' },
|
|
6837
|
+
{ $ref: 'FormulaFieldColumnInput' },
|
|
6838
|
+
{ $ref: 'RelationFieldColumnInput' },
|
|
6839
|
+
{ $ref: 'SequenceFieldColumnInput' },
|
|
6840
|
+
{ $ref: 'LookupFieldColumnInput' },
|
|
6841
|
+
{ $ref: 'RollupFieldColumnInput' }
|
|
5764
6842
|
]
|
|
5765
6843
|
},
|
|
5766
6844
|
TableCreateInput: {
|
|
@@ -5797,9 +6875,9 @@ export const SCHEMAS = {
|
|
|
5797
6875
|
required: ['type', 'label'],
|
|
5798
6876
|
properties: {
|
|
5799
6877
|
type: { const: 'TableField' },
|
|
5800
|
-
label: { type: 'string' },
|
|
6878
|
+
label: { type: ['string', 'null'] },
|
|
5801
6879
|
cid: { type: 'string' },
|
|
5802
|
-
notes: { type: 'string' },
|
|
6880
|
+
notes: { type: ['string', 'null'] },
|
|
5803
6881
|
private: { type: 'boolean' },
|
|
5804
6882
|
required: { type: 'boolean' },
|
|
5805
6883
|
position: { type: 'integer', minimum: 0 },
|
|
@@ -5813,15 +6891,15 @@ export const SCHEMAS = {
|
|
|
5813
6891
|
required: ['type', 'label'],
|
|
5814
6892
|
properties: {
|
|
5815
6893
|
type: { const: 'TelephoneField' },
|
|
5816
|
-
label: { type: 'string' },
|
|
6894
|
+
label: { type: ['string', 'null'] },
|
|
5817
6895
|
cid: { type: 'string' },
|
|
5818
|
-
notes: { type: 'string' },
|
|
6896
|
+
notes: { type: ['string', 'null'] },
|
|
5819
6897
|
private: { type: 'boolean' },
|
|
5820
6898
|
required: { type: 'boolean' },
|
|
5821
6899
|
position: { type: 'integer', minimum: 0 },
|
|
5822
6900
|
unique: { type: 'boolean' },
|
|
5823
|
-
predefined_value: { type: 'string' },
|
|
5824
|
-
placeholder: { type: 'string' },
|
|
6901
|
+
predefined_value: { type: ['string', 'null'] },
|
|
6902
|
+
placeholder: { type: ['string', 'null'] },
|
|
5825
6903
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5826
6904
|
start_new_row: { type: 'boolean' }
|
|
5827
6905
|
}
|
|
@@ -5844,21 +6922,40 @@ export const SCHEMAS = {
|
|
|
5844
6922
|
confirm_form_app_trial: { type: 'boolean' }
|
|
5845
6923
|
}
|
|
5846
6924
|
},
|
|
6925
|
+
TextAreaColumnInput: {
|
|
6926
|
+
type: 'object',
|
|
6927
|
+
additionalProperties: false,
|
|
6928
|
+
required: ['type', 'label'],
|
|
6929
|
+
properties: {
|
|
6930
|
+
type: { const: 'TextArea' },
|
|
6931
|
+
label: { type: ['string', 'null'] },
|
|
6932
|
+
cid: { type: 'string' },
|
|
6933
|
+
notes: { type: ['string', 'null'] },
|
|
6934
|
+
private: { type: 'boolean' },
|
|
6935
|
+
position: { type: 'integer', minimum: 0 },
|
|
6936
|
+
predefined_value: { type: ['string', 'null'] },
|
|
6937
|
+
placeholder: { type: ['string', 'null'] },
|
|
6938
|
+
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
6939
|
+
start_new_row: { type: 'boolean' }
|
|
6940
|
+
}
|
|
6941
|
+
},
|
|
5847
6942
|
TextAreaInput: {
|
|
5848
6943
|
type: 'object',
|
|
5849
6944
|
additionalProperties: false,
|
|
5850
6945
|
required: ['type', 'label'],
|
|
5851
6946
|
properties: {
|
|
5852
6947
|
type: { const: 'TextArea' },
|
|
5853
|
-
label: { type: 'string' },
|
|
6948
|
+
label: { type: ['string', 'null'] },
|
|
5854
6949
|
cid: { type: 'string' },
|
|
5855
|
-
notes: { type: 'string' },
|
|
6950
|
+
notes: { type: ['string', 'null'] },
|
|
5856
6951
|
private: { type: 'boolean' },
|
|
5857
6952
|
required: { type: 'boolean' },
|
|
5858
6953
|
position: { type: 'integer', minimum: 0 },
|
|
5859
6954
|
unique: { type: 'boolean' },
|
|
5860
|
-
predefined_value: { type: 'string' },
|
|
5861
|
-
placeholder: { type: 'string' },
|
|
6955
|
+
predefined_value: { type: ['string', 'null'] },
|
|
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 },
|
|
5862
6959
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5863
6960
|
start_new_row: { type: 'boolean' }
|
|
5864
6961
|
}
|
|
@@ -5869,29 +6966,57 @@ export const SCHEMAS = {
|
|
|
5869
6966
|
required: ['type', 'label'],
|
|
5870
6967
|
properties: {
|
|
5871
6968
|
type: { const: 'TextField' },
|
|
5872
|
-
label: { type: 'string' },
|
|
6969
|
+
label: { type: ['string', 'null'] },
|
|
5873
6970
|
cid: { type: 'string' },
|
|
5874
|
-
notes: { type: 'string' },
|
|
6971
|
+
notes: { type: ['string', 'null'] },
|
|
5875
6972
|
private: { type: 'boolean' },
|
|
5876
6973
|
required: { type: 'boolean' },
|
|
5877
6974
|
position: { type: 'integer', minimum: 0 },
|
|
5878
6975
|
unique: { type: 'boolean' },
|
|
5879
|
-
predefined_value: { type: 'string' },
|
|
5880
|
-
placeholder: { type: 'string' },
|
|
6976
|
+
predefined_value: { type: ['string', 'null'] },
|
|
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 },
|
|
6980
|
+
scannable: { type: 'boolean' },
|
|
6981
|
+
access_control_list_limit: { type: 'boolean' },
|
|
6982
|
+
access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
|
|
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 },
|
|
5881
6997
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5882
6998
|
start_new_row: { type: 'boolean' }
|
|
5883
6999
|
}
|
|
5884
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'] },
|
|
5885
7011
|
ThemeInput: {
|
|
5886
7012
|
type: 'object',
|
|
5887
7013
|
properties: {
|
|
5888
|
-
primary_color: {
|
|
5889
|
-
secondary_color: { type: 'string' },
|
|
7014
|
+
primary_color: { $ref: 'ThemeColor' },
|
|
5890
7015
|
dominant_color: { type: 'string', pattern: '^#[0-9a-fA-F]{6}$' },
|
|
5891
7016
|
wallpaper: {
|
|
5892
7017
|
type: 'object',
|
|
5893
7018
|
properties: {
|
|
5894
|
-
background_color: {
|
|
7019
|
+
background_color: { $ref: 'ThemeColor' },
|
|
5895
7020
|
background_image_url: { type: 'string' },
|
|
5896
7021
|
background_image_attachment_id: { type: ['string', 'null'] }
|
|
5897
7022
|
},
|
|
@@ -5902,7 +7027,7 @@ export const SCHEMAS = {
|
|
|
5902
7027
|
properties: {
|
|
5903
7028
|
type: { type: 'string', enum: ['none', 'text', 'image', 'carousel'] },
|
|
5904
7029
|
text: { type: 'string' },
|
|
5905
|
-
background_color: {
|
|
7030
|
+
background_color: { $ref: 'ThemeColor' },
|
|
5906
7031
|
text_style: { type: 'object', additionalProperties: { type: 'string' } },
|
|
5907
7032
|
header_image_url: { type: 'string' },
|
|
5908
7033
|
header_image_base64: { type: 'string' },
|
|
@@ -5923,44 +7048,68 @@ export const SCHEMAS = {
|
|
|
5923
7048
|
typography: {
|
|
5924
7049
|
type: 'object',
|
|
5925
7050
|
properties: {
|
|
5926
|
-
form_header: {
|
|
5927
|
-
|
|
5928
|
-
|
|
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' }
|
|
5929
7067
|
},
|
|
5930
7068
|
additionalProperties: false
|
|
5931
7069
|
},
|
|
5932
7070
|
form_container: {
|
|
5933
7071
|
type: 'object',
|
|
5934
7072
|
properties: {
|
|
5935
|
-
background_color: {
|
|
5936
|
-
border_color: {
|
|
5937
|
-
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' }
|
|
5938
7077
|
},
|
|
5939
7078
|
additionalProperties: false
|
|
5940
7079
|
},
|
|
5941
7080
|
submit_button: {
|
|
5942
7081
|
type: 'object',
|
|
5943
|
-
properties: {
|
|
7082
|
+
properties: { color: { $ref: 'ThemeColor' }, font_size: { $ref: 'ThemeFontSize' } },
|
|
5944
7083
|
additionalProperties: false
|
|
5945
7084
|
},
|
|
5946
7085
|
generate_header_image: { type: 'object', properties: { prompt: { type: 'string' } }, additionalProperties: false }
|
|
5947
7086
|
},
|
|
5948
7087
|
additionalProperties: false
|
|
5949
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
|
+
},
|
|
5950
7099
|
TimeFieldInput: {
|
|
5951
7100
|
type: 'object',
|
|
5952
7101
|
additionalProperties: false,
|
|
5953
7102
|
required: ['type', 'label'],
|
|
5954
7103
|
properties: {
|
|
5955
7104
|
type: { const: 'TimeField' },
|
|
5956
|
-
label: { type: 'string' },
|
|
7105
|
+
label: { type: ['string', 'null'] },
|
|
5957
7106
|
cid: { type: 'string' },
|
|
5958
|
-
notes: { type: 'string' },
|
|
7107
|
+
notes: { type: ['string', 'null'] },
|
|
5959
7108
|
private: { type: 'boolean' },
|
|
5960
7109
|
required: { type: 'boolean' },
|
|
5961
7110
|
position: { type: 'integer', minimum: 0 },
|
|
5962
7111
|
predefined_value: {
|
|
5963
|
-
type: 'object',
|
|
7112
|
+
type: ['object', 'null'],
|
|
5964
7113
|
properties: { hour: { type: 'integer' }, minute: { type: 'integer' }, second: { type: 'integer' } }
|
|
5965
7114
|
},
|
|
5966
7115
|
include_second: { type: 'boolean' },
|
|
@@ -5983,18 +7132,21 @@ export const SCHEMAS = {
|
|
|
5983
7132
|
required: ['type', 'label', 'choices', 'answers'],
|
|
5984
7133
|
properties: {
|
|
5985
7134
|
type: { const: 'TrueOrFalse' },
|
|
5986
|
-
label: { type: 'string' },
|
|
7135
|
+
label: { type: ['string', 'null'] },
|
|
5987
7136
|
cid: { type: 'string' },
|
|
5988
|
-
notes: { type: 'string' },
|
|
7137
|
+
notes: { type: ['string', 'null'] },
|
|
5989
7138
|
private: { type: 'boolean' },
|
|
5990
7139
|
required: { type: 'boolean' },
|
|
5991
7140
|
position: { type: 'integer', minimum: 0 },
|
|
5992
7141
|
other_choice_required: { type: 'boolean' },
|
|
5993
|
-
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
|
|
7142
|
+
choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' }, maxItems: 1000 },
|
|
5994
7143
|
calculable: { type: 'boolean' },
|
|
5995
|
-
choices_layout: { type: 'string' },
|
|
7144
|
+
choices_layout: { type: ['string', 'null'] },
|
|
5996
7145
|
random_choices: { type: 'boolean' },
|
|
5997
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' },
|
|
5998
7150
|
grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
|
|
5999
7151
|
start_new_row: { type: 'boolean' },
|
|
6000
7152
|
answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
|
|
@@ -6017,6 +7169,18 @@ export const SCHEMAS = {
|
|
|
6017
7169
|
}
|
|
6018
7170
|
]
|
|
6019
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
|
+
},
|
|
6020
7184
|
WebhookInput: { type: 'object', properties: { entry_post_url: { type: 'string' } }, additionalProperties: false },
|
|
6021
7185
|
WebhookMessageChannelInput: {
|
|
6022
7186
|
type: 'object',
|
|
@@ -6069,6 +7233,17 @@ export const SCHEMAS = {
|
|
|
6069
7233
|
},
|
|
6070
7234
|
additionalProperties: false
|
|
6071
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
|
+
},
|
|
6072
7247
|
WheelFortuneInput: {
|
|
6073
7248
|
type: 'object',
|
|
6074
7249
|
properties: {
|
|
@@ -6198,15 +7373,11 @@ export const SCHEMAS = {
|
|
|
6198
7373
|
required: ['type', 'label'],
|
|
6199
7374
|
properties: {
|
|
6200
7375
|
type: { const: 'WidgetButton' },
|
|
6201
|
-
label: { type: 'string' },
|
|
7376
|
+
label: { type: ['string', 'null'] },
|
|
6202
7377
|
cid: { type: 'string' },
|
|
6203
|
-
notes: { type: 'string' },
|
|
6204
|
-
private: { type: 'boolean' },
|
|
6205
|
-
required: { type: 'boolean' },
|
|
6206
7378
|
position: { type: 'integer', minimum: 0 },
|
|
6207
7379
|
buttons: { type: 'array', minItems: 1, items: { $ref: 'WidgetButtonItemInput' } },
|
|
6208
|
-
buttons_number: { type: 'integer', minimum: 1 }
|
|
6209
|
-
fixed_to_bottom: { type: 'boolean' }
|
|
7380
|
+
buttons_number: { type: ['integer', 'null'], minimum: 1 }
|
|
6210
7381
|
}
|
|
6211
7382
|
},
|
|
6212
7383
|
WidgetButtonItemInput: {
|
|
@@ -6215,10 +7386,10 @@ export const SCHEMAS = {
|
|
|
6215
7386
|
required: ['text'],
|
|
6216
7387
|
properties: {
|
|
6217
7388
|
text: { type: 'string' },
|
|
6218
|
-
position: { type: 'integer', minimum: 0 },
|
|
6219
|
-
link_type: { type: 'string', enum: ['normal', 'miniapp', 'phone', 'qrcode'] },
|
|
6220
|
-
link_attrs: { type: 'object' },
|
|
6221
|
-
url: { type: 'string' }
|
|
7389
|
+
position: { type: ['integer', 'null'], minimum: 0 },
|
|
7390
|
+
link_type: { type: ['string', 'null'], enum: ['normal', 'miniapp', 'phone', 'qrcode', null] },
|
|
7391
|
+
link_attrs: { type: ['object', 'null'] },
|
|
7392
|
+
url: { type: ['string', 'null'] }
|
|
6222
7393
|
}
|
|
6223
7394
|
},
|
|
6224
7395
|
WidgetContactInput: {
|
|
@@ -6227,21 +7398,18 @@ export const SCHEMAS = {
|
|
|
6227
7398
|
required: ['type', 'label'],
|
|
6228
7399
|
properties: {
|
|
6229
7400
|
type: { const: 'WidgetContact' },
|
|
6230
|
-
label: { type: 'string' },
|
|
7401
|
+
label: { type: ['string', 'null'] },
|
|
6231
7402
|
cid: { type: 'string' },
|
|
6232
|
-
notes: { type: 'string' },
|
|
6233
|
-
private: { type: 'boolean' },
|
|
6234
|
-
required: { type: 'boolean' },
|
|
7403
|
+
notes: { type: ['string', 'null'] },
|
|
6235
7404
|
position: { type: 'integer', minimum: 0 },
|
|
6236
|
-
widget_images: { type: 'array', items: { $ref: 'WidgetImageInput' } },
|
|
6237
|
-
widget_max_images_number: { type: 'integer', minimum: 1 },
|
|
7405
|
+
widget_images: { type: 'array', maxItems: 1, items: { $ref: 'WidgetImageInput' } },
|
|
6238
7406
|
phones: {
|
|
6239
7407
|
type: 'array',
|
|
6240
7408
|
items: {
|
|
6241
7409
|
type: 'object',
|
|
6242
7410
|
required: ['phone'],
|
|
6243
7411
|
additionalProperties: false,
|
|
6244
|
-
properties: { phone: { type: 'string' } }
|
|
7412
|
+
properties: { phone: { type: 'string' }, notes: { type: ['string', 'null'] } }
|
|
6245
7413
|
}
|
|
6246
7414
|
}
|
|
6247
7415
|
}
|
|
@@ -6250,7 +7418,11 @@ export const SCHEMAS = {
|
|
|
6250
7418
|
type: 'object',
|
|
6251
7419
|
additionalProperties: false,
|
|
6252
7420
|
anyOf: [{ required: ['image_url'] }, { required: ['image_base64'] }, { required: ['attachment_id'] }],
|
|
6253
|
-
properties: {
|
|
7421
|
+
properties: {
|
|
7422
|
+
image_url: { type: ['string', 'null'] },
|
|
7423
|
+
image_base64: { type: ['string', 'null'] },
|
|
7424
|
+
attachment_id: { type: ['string', 'null'] }
|
|
7425
|
+
}
|
|
6254
7426
|
},
|
|
6255
7427
|
WidgetMapInput: {
|
|
6256
7428
|
type: 'object',
|
|
@@ -6258,17 +7430,13 @@ export const SCHEMAS = {
|
|
|
6258
7430
|
required: ['type', 'label'],
|
|
6259
7431
|
properties: {
|
|
6260
7432
|
type: { const: 'WidgetMap' },
|
|
6261
|
-
label: { type: 'string' },
|
|
7433
|
+
label: { type: ['string', 'null'] },
|
|
6262
7434
|
cid: { type: 'string' },
|
|
6263
|
-
notes: { type: 'string' },
|
|
6264
|
-
private: { type: 'boolean' },
|
|
6265
|
-
required: { type: 'boolean' },
|
|
7435
|
+
notes: { type: ['string', 'null'] },
|
|
6266
7436
|
position: { type: 'integer', minimum: 0 },
|
|
6267
|
-
nav_address: { type: 'string' },
|
|
6268
|
-
longitude: { type: 'number' },
|
|
6269
|
-
latitude: { type: 'number' }
|
|
6270
|
-
value: { type: 'string' },
|
|
6271
|
-
localizable_on_mobile: { type: 'boolean' }
|
|
7437
|
+
nav_address: { type: ['string', 'null'] },
|
|
7438
|
+
longitude: { type: ['number', 'null'] },
|
|
7439
|
+
latitude: { type: ['number', 'null'] }
|
|
6272
7440
|
}
|
|
6273
7441
|
},
|
|
6274
7442
|
WidgetMarqueeInput: {
|
|
@@ -6277,16 +7445,12 @@ export const SCHEMAS = {
|
|
|
6277
7445
|
required: ['type', 'label'],
|
|
6278
7446
|
properties: {
|
|
6279
7447
|
type: { const: 'WidgetMarquee' },
|
|
6280
|
-
label: { type: 'string' },
|
|
7448
|
+
label: { type: ['string', 'null'] },
|
|
6281
7449
|
cid: { type: 'string' },
|
|
6282
|
-
notes: { type: 'string' },
|
|
6283
|
-
private: { type: 'boolean' },
|
|
6284
|
-
required: { type: 'boolean' },
|
|
7450
|
+
notes: { type: ['string', 'null'] },
|
|
6285
7451
|
position: { type: 'integer', minimum: 0 },
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
entries_number_visible: { type: 'boolean' },
|
|
6289
|
-
marquee_data_type: { type: 'string', enum: ['fake', 'real'] }
|
|
7452
|
+
entries_init_number: { type: ['integer', 'null'], minimum: 0 },
|
|
7453
|
+
entries_number_visible: { type: 'boolean' }
|
|
6290
7454
|
}
|
|
6291
7455
|
},
|
|
6292
7456
|
WxworkMessageChannelInput: {
|