@jinshuju/cli 0.25.0 → 0.26.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.
@@ -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-10';
6
+ export const SPEC_DATE = '2026-11-18';
7
7
  export const OPERATIONS = {
8
8
  aggregateEntries: {
9
9
  method: 'GET',
@@ -2069,14 +2069,14 @@ export const SCHEMAS = {
2069
2069
  required: ['type', 'label'],
2070
2070
  properties: {
2071
2071
  type: { const: 'AddressField' },
2072
- label: { type: 'string' },
2072
+ label: { type: ['string', 'null'] },
2073
2073
  cid: { type: 'string' },
2074
- notes: { type: 'string' },
2074
+ notes: { type: ['string', 'null'] },
2075
2075
  private: { type: 'boolean' },
2076
2076
  required: { type: 'boolean' },
2077
2077
  position: { type: 'integer', minimum: 0 },
2078
- predefined_value: { type: 'object' },
2079
- changeable: { type: 'object', additionalProperties: { type: 'boolean' } },
2078
+ predefined_value: { type: ['object', 'null'] },
2079
+ changeable: { type: ['object', 'null'], additionalProperties: { type: 'boolean' } },
2080
2080
  enable_auto_position: { type: 'boolean' },
2081
2081
  grids_to_occupy: { type: ['integer', 'null'], minimum: 2, maximum: 3 },
2082
2082
  start_new_row: { type: 'boolean' }
@@ -2130,22 +2130,46 @@ export const SCHEMAS = {
2130
2130
  },
2131
2131
  additionalProperties: false
2132
2132
  },
2133
+ AttachmentFieldColumnInput: {
2134
+ type: 'object',
2135
+ additionalProperties: false,
2136
+ required: ['type', 'label'],
2137
+ properties: {
2138
+ type: { const: 'AttachmentField' },
2139
+ label: { type: ['string', 'null'] },
2140
+ cid: { type: 'string' },
2141
+ notes: { type: ['string', 'null'] },
2142
+ private: { type: 'boolean' },
2143
+ position: { type: 'integer', minimum: 0 },
2144
+ media_type: {
2145
+ type: ['object', 'null'],
2146
+ additionalProperties: false,
2147
+ properties: {
2148
+ type: { type: 'string', enum: ['unlimited', 'doc', 'image', 'video', 'audio', 'compress', 'custom'] },
2149
+ value: { type: 'array', items: { type: 'string' } }
2150
+ },
2151
+ if: { properties: { type: { const: 'custom' } }, required: ['type'] },
2152
+ then: { required: ['value'], properties: { value: { minItems: 1 } } }
2153
+ },
2154
+ mobile_camera_only: { type: 'boolean' }
2155
+ }
2156
+ },
2133
2157
  AttachmentFieldInput: {
2134
2158
  type: 'object',
2135
2159
  additionalProperties: false,
2136
2160
  required: ['type', 'label'],
2137
2161
  properties: {
2138
2162
  type: { const: 'AttachmentField' },
2139
- label: { type: 'string' },
2163
+ label: { type: ['string', 'null'] },
2140
2164
  cid: { type: 'string' },
2141
- notes: { type: 'string' },
2165
+ notes: { type: ['string', 'null'] },
2142
2166
  private: { type: 'boolean' },
2143
2167
  required: { type: 'boolean' },
2144
2168
  position: { type: 'integer', minimum: 0 },
2145
- max_size: { type: 'integer', minimum: 1, maximum: 500 },
2146
- max_file_quantity: { type: 'integer', minimum: 1 },
2169
+ max_size: { type: ['number', 'null'], exclusiveMinimum: 0, maximum: 500 },
2170
+ max_file_quantity: { type: ['integer', 'null'], minimum: 1 },
2147
2171
  media_type: {
2148
- type: 'object',
2172
+ type: ['object', 'null'],
2149
2173
  additionalProperties: false,
2150
2174
  properties: {
2151
2175
  type: { type: 'string', enum: ['unlimited', 'doc', 'image', 'video', 'audio', 'compress', 'custom'] },
@@ -2163,26 +2187,37 @@ export const SCHEMAS = {
2163
2187
  required: ['type', 'label'],
2164
2188
  properties: {
2165
2189
  type: { const: 'AudioField' },
2166
- label: { type: 'string' },
2190
+ label: { type: ['string', 'null'] },
2167
2191
  cid: { type: 'string' },
2168
- notes: { type: 'string' },
2192
+ notes: { type: ['string', 'null'] },
2169
2193
  private: { type: 'boolean' },
2170
2194
  required: { type: 'boolean' },
2171
2195
  position: { type: 'integer', minimum: 0 },
2172
- max_duration: { type: 'integer', minimum: 1, maximum: 5 }
2196
+ max_duration: { type: ['integer', 'null'], minimum: 1, maximum: 5 }
2197
+ }
2198
+ },
2199
+ AutoCountGenCodeRuleInput: {
2200
+ type: 'object',
2201
+ additionalProperties: false,
2202
+ required: ['type'],
2203
+ properties: {
2204
+ type: { type: 'string', enum: ['auto_count'] },
2205
+ count_digit: { type: 'integer', minimum: 1, maximum: 12 },
2206
+ fixed_digits: { type: 'boolean' },
2207
+ counter: { type: 'integer', minimum: 1 },
2208
+ reset_rule_type: { type: 'string', enum: ['none', 'daily', 'weekly', 'monthly'] }
2173
2209
  }
2174
2210
  },
2175
- BooleanFieldInput: {
2211
+ BooleanFieldColumnInput: {
2176
2212
  type: 'object',
2177
2213
  additionalProperties: false,
2178
2214
  required: ['type', 'label'],
2179
2215
  properties: {
2180
2216
  type: { const: 'BooleanField' },
2181
- label: { type: 'string' },
2217
+ label: { type: ['string', 'null'] },
2182
2218
  cid: { type: 'string' },
2183
- notes: { type: 'string' },
2219
+ notes: { type: ['string', 'null'] },
2184
2220
  private: { type: 'boolean' },
2185
- required: { type: 'boolean' },
2186
2221
  position: { type: 'integer', minimum: 0 }
2187
2222
  }
2188
2223
  },
@@ -2206,14 +2241,14 @@ export const SCHEMAS = {
2206
2241
  required: ['type', 'label'],
2207
2242
  properties: {
2208
2243
  type: { const: 'CascadeDropDown' },
2209
- label: { type: 'string' },
2244
+ label: { type: ['string', 'null'] },
2210
2245
  cid: { type: 'string' },
2211
- notes: { type: 'string' },
2246
+ notes: { type: ['string', 'null'] },
2212
2247
  private: { type: 'boolean' },
2213
2248
  required: { type: 'boolean' },
2214
2249
  position: { type: 'integer', minimum: 0 },
2215
2250
  choices: { type: 'array', minItems: 1, items: { $ref: 'CascadeChoiceInput' } },
2216
- levels: { type: 'integer', minimum: 2 },
2251
+ levels: { type: ['integer', 'null'], minimum: 2 },
2217
2252
  choice_filterable: { type: 'boolean' },
2218
2253
  random_choices: { type: 'boolean' },
2219
2254
  calculable: { type: 'boolean' },
@@ -2222,25 +2257,51 @@ export const SCHEMAS = {
2222
2257
  start_new_row: { type: 'boolean' }
2223
2258
  }
2224
2259
  },
2260
+ CheckBoxColumnInput: {
2261
+ type: 'object',
2262
+ additionalProperties: false,
2263
+ required: ['type', 'label'],
2264
+ properties: {
2265
+ type: { const: 'CheckBox' },
2266
+ label: { type: ['string', 'null'] },
2267
+ cid: { type: 'string' },
2268
+ notes: { type: ['string', 'null'] },
2269
+ private: { type: 'boolean' },
2270
+ position: { type: 'integer', minimum: 0 },
2271
+ choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
2272
+ calculable: { type: 'boolean' },
2273
+ choices_layout: { type: ['string', 'null'] },
2274
+ random_choices: { type: 'boolean' },
2275
+ hide_choice_when_quota_empty: { type: 'boolean' },
2276
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
2277
+ start_new_row: { type: 'boolean' }
2278
+ },
2279
+ allOf: [
2280
+ {
2281
+ if: { properties: { calculable: { const: true } }, required: ['calculable'] },
2282
+ then: { properties: { choices: { items: { required: ['operand_value'] } } } }
2283
+ }
2284
+ ]
2285
+ },
2225
2286
  CheckBoxInput: {
2226
2287
  type: 'object',
2227
2288
  additionalProperties: false,
2228
2289
  required: ['type', 'label'],
2229
2290
  properties: {
2230
2291
  type: { const: 'CheckBox' },
2231
- label: { type: 'string' },
2292
+ label: { type: ['string', 'null'] },
2232
2293
  cid: { type: 'string' },
2233
- notes: { type: 'string' },
2294
+ notes: { type: ['string', 'null'] },
2234
2295
  private: { type: 'boolean' },
2235
2296
  required: { type: 'boolean' },
2236
2297
  position: { type: 'integer', minimum: 0 },
2237
2298
  other_choice_required: { type: 'boolean' },
2238
2299
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
2239
2300
  calculable: { type: 'boolean' },
2240
- choices_layout: { type: 'string' },
2301
+ choices_layout: { type: ['string', 'null'] },
2241
2302
  random_choices: { type: 'boolean' },
2242
- minimum_length: { type: 'integer', minimum: 0 },
2243
- maximum_length: { type: 'integer', minimum: 0 },
2303
+ minimum_length: { type: ['integer', 'null'], minimum: 0 },
2304
+ maximum_length: { type: ['integer', 'null'], minimum: 0 },
2244
2305
  hide_choice_when_quota_empty: { type: 'boolean' },
2245
2306
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
2246
2307
  start_new_row: { type: 'boolean' }
@@ -2339,7 +2400,7 @@ export const SCHEMAS = {
2339
2400
  required: ['field_api_code'],
2340
2401
  properties: {
2341
2402
  field_api_code: { type: 'string' },
2342
- add: { type: 'array', items: { $ref: 'ChoiceInput' } },
2403
+ add: { type: 'array', items: { anyOf: [{ $ref: 'ChoiceInput' }, { $ref: 'ImageChoiceInput' }] } },
2343
2404
  remove: {
2344
2405
  type: 'array',
2345
2406
  items: { oneOf: [{ type: 'string' }, { type: 'object', properties: { api_code: { type: 'string' } } }] }
@@ -2388,20 +2449,37 @@ export const SCHEMAS = {
2388
2449
  },
2389
2450
  additionalProperties: false
2390
2451
  },
2452
+ DateTimeFieldColumnInput: {
2453
+ type: 'object',
2454
+ additionalProperties: false,
2455
+ required: ['type', 'label'],
2456
+ properties: {
2457
+ type: { const: 'DateTimeField' },
2458
+ label: { type: ['string', 'null'] },
2459
+ cid: { type: 'string' },
2460
+ notes: { type: ['string', 'null'] },
2461
+ private: { type: 'boolean' },
2462
+ position: { type: 'integer', minimum: 0 },
2463
+ predefined_value: { type: ['string', 'null'] },
2464
+ precision: { type: ['string', 'null'], enum: ['month', 'day', 'minute', 'second', null] },
2465
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
2466
+ start_new_row: { type: 'boolean' }
2467
+ }
2468
+ },
2391
2469
  DateTimeFieldInput: {
2392
2470
  type: 'object',
2393
2471
  additionalProperties: false,
2394
2472
  required: ['type', 'label'],
2395
2473
  properties: {
2396
2474
  type: { const: 'DateTimeField' },
2397
- label: { type: 'string' },
2475
+ label: { type: ['string', 'null'] },
2398
2476
  cid: { type: 'string' },
2399
- notes: { type: 'string' },
2477
+ notes: { type: ['string', 'null'] },
2400
2478
  private: { type: 'boolean' },
2401
2479
  required: { type: 'boolean' },
2402
2480
  position: { type: 'integer', minimum: 0 },
2403
- predefined_value: { type: 'string' },
2404
- precision: { type: 'string', enum: ['month', 'day', 'minute', 'second'] },
2481
+ predefined_value: { type: ['string', 'null'] },
2482
+ precision: { type: ['string', 'null'], enum: ['month', 'day', 'minute', 'second', null] },
2405
2483
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
2406
2484
  start_new_row: { type: 'boolean' }
2407
2485
  }
@@ -2412,16 +2490,16 @@ export const SCHEMAS = {
2412
2490
  required: ['type', 'label'],
2413
2491
  properties: {
2414
2492
  type: { const: 'Department' },
2415
- label: { type: 'string' },
2493
+ label: { type: ['string', 'null'] },
2416
2494
  cid: { type: 'string' },
2417
- notes: { type: 'string' },
2495
+ notes: { type: ['string', 'null'] },
2418
2496
  private: { type: 'boolean' },
2419
2497
  required: { type: 'boolean' },
2420
2498
  position: { type: 'integer', minimum: 0 },
2421
2499
  other_choice_required: { type: 'boolean' },
2422
2500
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
2423
2501
  calculable: { type: 'boolean' },
2424
- choices_layout: { type: 'string' },
2502
+ choices_layout: { type: ['string', 'null'] },
2425
2503
  random_choices: { type: 'boolean' },
2426
2504
  hide_choice_when_quota_empty: { type: 'boolean' },
2427
2505
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
@@ -2493,9 +2571,9 @@ export const SCHEMAS = {
2493
2571
  required: ['type', 'label'],
2494
2572
  properties: {
2495
2573
  type: { const: 'DropDown' },
2496
- label: { type: 'string' },
2574
+ label: { type: ['string', 'null'] },
2497
2575
  cid: { type: 'string' },
2498
- notes: { type: 'string' },
2576
+ notes: { type: ['string', 'null'] },
2499
2577
  private: { type: 'boolean' },
2500
2578
  required: { type: 'boolean' },
2501
2579
  position: { type: 'integer', minimum: 0 },
@@ -2520,9 +2598,9 @@ export const SCHEMAS = {
2520
2598
  required: ['type', 'label', 'choices', 'answers'],
2521
2599
  properties: {
2522
2600
  type: { const: 'DropDownSelect' },
2523
- label: { type: 'string' },
2601
+ label: { type: ['string', 'null'] },
2524
2602
  cid: { type: 'string' },
2525
- notes: { type: 'string' },
2603
+ notes: { type: ['string', 'null'] },
2526
2604
  private: { type: 'boolean' },
2527
2605
  required: { type: 'boolean' },
2528
2606
  position: { type: 'integer', minimum: 0 },
@@ -2559,28 +2637,44 @@ export const SCHEMAS = {
2559
2637
  required: ['type', 'label'],
2560
2638
  properties: {
2561
2639
  type: { const: 'ESignatureField' },
2562
- label: { type: 'string' },
2640
+ label: { type: ['string', 'null'] },
2563
2641
  cid: { type: 'string' },
2564
- notes: { type: 'string' },
2642
+ notes: { type: ['string', 'null'] },
2565
2643
  private: { type: 'boolean' },
2566
2644
  required: { type: 'boolean' },
2567
2645
  position: { type: 'integer', minimum: 0 }
2568
2646
  }
2569
2647
  },
2648
+ EmailFieldColumnInput: {
2649
+ type: 'object',
2650
+ additionalProperties: false,
2651
+ required: ['type', 'label'],
2652
+ properties: {
2653
+ type: { const: 'EmailField' },
2654
+ label: { type: ['string', 'null'] },
2655
+ cid: { type: 'string' },
2656
+ notes: { type: ['string', 'null'] },
2657
+ private: { type: 'boolean' },
2658
+ position: { type: 'integer', minimum: 0 },
2659
+ placeholder: { type: ['string', 'null'] },
2660
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
2661
+ start_new_row: { type: 'boolean' }
2662
+ }
2663
+ },
2570
2664
  EmailFieldInput: {
2571
2665
  type: 'object',
2572
2666
  additionalProperties: false,
2573
2667
  required: ['type', 'label'],
2574
2668
  properties: {
2575
2669
  type: { const: 'EmailField' },
2576
- label: { type: 'string' },
2670
+ label: { type: ['string', 'null'] },
2577
2671
  cid: { type: 'string' },
2578
- notes: { type: 'string' },
2672
+ notes: { type: ['string', 'null'] },
2579
2673
  private: { type: 'boolean' },
2580
2674
  required: { type: 'boolean' },
2581
2675
  position: { type: 'integer', minimum: 0 },
2582
2676
  unique: { type: 'boolean' },
2583
- placeholder: { type: 'string' },
2677
+ placeholder: { type: ['string', 'null'] },
2584
2678
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
2585
2679
  start_new_row: { type: 'boolean' }
2586
2680
  }
@@ -2743,7 +2837,7 @@ export const SCHEMAS = {
2743
2837
  'Nps'
2744
2838
  ]
2745
2839
  },
2746
- label: { type: 'string' }
2840
+ label: { type: ['string', 'null'] }
2747
2841
  },
2748
2842
  discriminator: {
2749
2843
  propertyName: 'type',
@@ -2956,7 +3050,7 @@ export const SCHEMAS = {
2956
3050
  'Grade'
2957
3051
  ]
2958
3052
  },
2959
- label: { type: 'string' }
3053
+ label: { type: ['string', 'null'] }
2960
3054
  },
2961
3055
  discriminator: {
2962
3056
  propertyName: 'type',
@@ -3119,6 +3213,39 @@ export const SCHEMAS = {
3119
3213
  },
3120
3214
  additionalProperties: false
3121
3215
  },
3216
+ FieldAnalytics: {
3217
+ type: 'object',
3218
+ required: ['agg_funcs', 'summary_kind', 'groupable', 'buckets', 'default_agg', 'summarisable'],
3219
+ properties: {
3220
+ agg_funcs: { type: 'array', items: { type: 'string' } },
3221
+ summary_kind: { type: 'string', enum: ['choice', 'matrix', 'number', 'date', 'text', 'geo'] },
3222
+ groupable: { type: 'boolean' },
3223
+ buckets: { type: 'array', items: { type: 'string', enum: ['day', 'week', 'month'] } },
3224
+ default_agg: { type: 'string' },
3225
+ summarisable: { type: 'boolean' }
3226
+ }
3227
+ },
3228
+ FieldChoiceInput: {
3229
+ type: 'object',
3230
+ additionalProperties: false,
3231
+ anyOf: [{ required: ['value'] }, { required: ['name'] }],
3232
+ properties: {
3233
+ api_code: { type: 'string' },
3234
+ value: { type: 'string' },
3235
+ quota: { type: ['integer', 'null'], minimum: 0 },
3236
+ quota_left: { type: ['integer', 'null'] },
3237
+ operand_value: { type: ['number', 'null'] },
3238
+ selected: { type: 'boolean' },
3239
+ is_other: { type: 'boolean' },
3240
+ hidden: { type: 'boolean' },
3241
+ allow_extended_text: { type: 'boolean' },
3242
+ extended_text_required: { type: 'boolean' },
3243
+ attachment_id: { type: 'string' },
3244
+ image_url: { type: ['string', 'null'] },
3245
+ sub_choices: { type: 'array', items: { $ref: 'FieldChoiceInput' } },
3246
+ name: { type: 'string' }
3247
+ }
3248
+ },
3122
3249
  FieldDataCheck: {
3123
3250
  type: 'object',
3124
3251
  required: ['field_api_code'],
@@ -3134,6 +3261,91 @@ export const SCHEMAS = {
3134
3261
  goods_item_dimension_options: { type: 'object' }
3135
3262
  }
3136
3263
  },
3264
+ FieldDimensionInput: {
3265
+ type: 'object',
3266
+ additionalProperties: false,
3267
+ required: ['type', 'label'],
3268
+ properties: {
3269
+ api_code: { type: 'string' },
3270
+ type: {
3271
+ type: 'string',
3272
+ enum: [
3273
+ 'TextField',
3274
+ 'TextArea',
3275
+ 'MobileField',
3276
+ 'CheckBox',
3277
+ 'DropDown',
3278
+ 'CascadeDropDown',
3279
+ 'NumberField',
3280
+ 'FormulaField',
3281
+ 'DateTimeField',
3282
+ 'TimeField',
3283
+ 'AttachmentField',
3284
+ 'IdCardField',
3285
+ 'EmailField'
3286
+ ]
3287
+ },
3288
+ label: { type: ['string', 'null'] },
3289
+ choices: { type: 'array', items: { $ref: 'FieldChoiceInput' } },
3290
+ cid: { type: 'string' },
3291
+ notes: { type: ['string', 'null'] },
3292
+ private: { type: 'boolean' },
3293
+ predefined_value: {},
3294
+ placeholder: { type: ['string', 'null'] },
3295
+ scannable: { type: 'boolean' },
3296
+ access_control_list_limit: { type: 'boolean' },
3297
+ access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
3298
+ acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
3299
+ minimum_length: { type: ['integer', 'null'], minimum: 0 },
3300
+ maximum_length: { type: ['integer', 'null'], minimum: 0 },
3301
+ api_code_alias: { type: ['string', 'null'] },
3302
+ sms_verification: { type: 'boolean' },
3303
+ calculable: { type: 'boolean' },
3304
+ choices_layout: { type: ['string', 'null'] },
3305
+ random_choices: { type: 'boolean' },
3306
+ hide_choice_when_quota_empty: { type: 'boolean' },
3307
+ levels: { type: ['integer', 'null'], minimum: 2 },
3308
+ choice_filterable: { type: 'boolean' },
3309
+ range_min: { type: ['number', 'null'] },
3310
+ range_max: { type: ['number', 'null'] },
3311
+ precision: {
3312
+ anyOf: [
3313
+ { type: 'integer', minimum: 0, maximum: 14 },
3314
+ { type: 'string', enum: ['month', 'day', 'minute', 'second'] },
3315
+ { type: 'null' }
3316
+ ]
3317
+ },
3318
+ display_precision: { type: ['integer', 'null'], minimum: 0 },
3319
+ display_as_percentage: { type: 'boolean' },
3320
+ thousands_separator: { type: 'boolean' },
3321
+ currency_symbol: { type: ['string', 'null'] },
3322
+ currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
3323
+ icon_type: {
3324
+ type: ['string', 'null'],
3325
+ enum: ['none', 'number-2', 'dollar1', 'cny1', 'formula-2', 'date-2', 'sum', 'text', 'text2', null]
3326
+ },
3327
+ formula: { type: ['string', 'null'] },
3328
+ formula_display: { type: ['string', 'null'] },
3329
+ result_display_type: { type: ['string', 'null'], enum: ['string', 'numeric', 'datetime', 'boolean', null] },
3330
+ result_display_as_date: { type: 'boolean' },
3331
+ start_date: { type: ['string', 'null'] },
3332
+ end_date: { type: ['string', 'null'] },
3333
+ include_second: { type: 'boolean' },
3334
+ max_size: { type: ['number', 'null'], exclusiveMinimum: 0, maximum: 500 },
3335
+ max_file_quantity: { type: ['integer', 'null'], minimum: 1 },
3336
+ media_type: {
3337
+ type: ['object', 'null'],
3338
+ additionalProperties: false,
3339
+ properties: {
3340
+ type: { type: 'string', enum: ['unlimited', 'doc', 'image', 'video', 'audio', 'compress', 'custom'] },
3341
+ value: { type: 'array', items: { type: 'string' } }
3342
+ },
3343
+ if: { properties: { type: { const: 'custom' } }, required: ['type'] },
3344
+ then: { required: ['value'], properties: { value: { minItems: 1 } } }
3345
+ },
3346
+ mobile_camera_only: { type: 'boolean' }
3347
+ }
3348
+ },
3137
3349
  FieldInput: {
3138
3350
  type: 'object',
3139
3351
  required: ['type', 'label'],
@@ -3182,7 +3394,7 @@ export const SCHEMAS = {
3182
3394
  'WidgetMarquee'
3183
3395
  ]
3184
3396
  },
3185
- label: { type: 'string' }
3397
+ label: { type: ['string', 'null'] }
3186
3398
  },
3187
3399
  discriminator: {
3188
3400
  propertyName: 'type',
@@ -3354,63 +3566,97 @@ export const SCHEMAS = {
3354
3566
  'WidgetButton',
3355
3567
  'WidgetContact',
3356
3568
  'WidgetMap',
3357
- 'WidgetMarquee'
3569
+ 'WidgetMarquee',
3570
+ 'SingleSelect',
3571
+ 'MultiSelect',
3572
+ 'ImageSingleSelect',
3573
+ 'ImageMultiSelect',
3574
+ 'TrueOrFalse',
3575
+ 'DropDownSelect',
3576
+ 'FillInBlank',
3577
+ 'ShortAnswer',
3578
+ 'FillInNumber',
3579
+ 'Rating',
3580
+ 'Nps',
3581
+ 'Department',
3582
+ 'Grade',
3583
+ 'ReversedAssociation',
3584
+ 'Divider',
3585
+ 'StyledText',
3586
+ 'ImageText',
3587
+ 'Carousel',
3588
+ 'Timer',
3589
+ 'ImageGroup',
3590
+ 'WidgetVideo',
3591
+ 'MultipleBlanksField',
3592
+ 'BooleanField',
3593
+ 'RelationField',
3594
+ 'SequenceField'
3358
3595
  ]
3359
3596
  },
3360
3597
  confirm_data_loss: { type: 'boolean' },
3361
- label: { type: 'string' },
3362
- notes: { type: 'string' },
3598
+ label: { type: ['string', 'null'] },
3599
+ notes: { type: ['string', 'null'] },
3363
3600
  private: { type: 'boolean' },
3364
3601
  required: { type: 'boolean' },
3365
3602
  unique: { type: 'boolean' },
3366
3603
  other_choice_required: { type: 'boolean' },
3367
3604
  position: { type: 'integer', minimum: 0 },
3368
3605
  rating_max: { type: 'integer', minimum: 1 },
3369
- choices: { type: 'array', items: { $ref: 'CascadeChoiceInput' } },
3370
- dimensions: { type: 'array', items: { $ref: 'DimensionInput' } },
3606
+ choices: { type: 'array', items: { $ref: 'FieldChoiceInput' } },
3607
+ dimensions: { type: 'array', items: { $ref: 'FieldDimensionInput' } },
3371
3608
  statements: { type: 'array', items: { $ref: 'StatementInput' } },
3372
3609
  goods_items: { type: 'array', items: { $ref: 'GoodsItemUpdateInput' } },
3373
3610
  reservation_items: { type: 'array', items: { $ref: 'ReservationItemInput' } },
3374
3611
  buttons: { type: 'array', minItems: 1, items: { $ref: 'WidgetButtonItemInput' } },
3375
3612
  segments: { type: 'array', minItems: 1, items: { $ref: 'SequenceSegmentInput' } },
3376
3613
  display_field_api_codes: { type: 'array', maxItems: 20, items: { type: 'string' } },
3377
- answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
3378
- answer_setting_mode: { type: 'string', enum: ['absolute', 'partial_absolute', 'relative'] },
3379
- answer_explanation: { type: 'string' },
3614
+ init_row_length: { type: 'integer', minimum: 1 },
3615
+ widget_images: { type: 'array', items: { $ref: 'WidgetImageInput' } },
3616
+ answers: { type: 'array', items: { $ref: 'AnswerInput' } },
3617
+ answer_setting_mode: { type: ['string', 'null'], enum: ['absolute', 'partial_absolute', 'relative', null] },
3618
+ answer_explanation: { type: ['string', 'null'] },
3619
+ api_code_alias: { type: ['string', 'null'] },
3620
+ analytics: { anyOf: [{ $ref: 'FieldAnalytics' }, { type: 'null' }] },
3380
3621
  calculable: { type: 'boolean' },
3381
- choices_layout: { type: 'string' },
3622
+ choices_layout: { type: ['string', 'null'] },
3382
3623
  random_choices: { type: 'boolean' },
3383
3624
  hide_choice_when_quota_empty: { type: 'boolean' },
3384
3625
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
3385
3626
  start_new_row: { type: 'boolean' },
3386
- minimum_length: { type: 'integer', minimum: 0 },
3387
- maximum_length: { type: 'integer', minimum: 0 },
3627
+ minimum_length: { type: ['integer', 'null'], minimum: 0 },
3628
+ maximum_length: { type: ['integer', 'null'], minimum: 0 },
3388
3629
  predefined_value: {},
3389
- placeholder: { type: 'string' },
3630
+ placeholder: { type: ['string', 'null'] },
3631
+ scannable: { type: 'boolean' },
3632
+ access_control_list_limit: { type: 'boolean' },
3633
+ access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
3634
+ acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
3390
3635
  sms_verification: { type: 'boolean' },
3391
- range_min: { type: 'number' },
3392
- range_max: { type: 'number' },
3636
+ range_min: { type: ['number', 'null'] },
3637
+ range_max: { type: ['number', 'null'] },
3393
3638
  precision: {
3394
3639
  anyOf: [
3395
3640
  { type: 'integer', minimum: 0, maximum: 14 },
3396
- { type: 'string', enum: ['month', 'day', 'minute', 'second'] }
3641
+ { type: 'string', enum: ['month', 'day', 'minute', 'second'] },
3642
+ { type: 'null' }
3397
3643
  ]
3398
3644
  },
3399
- display_precision: { type: 'integer', minimum: 0 },
3645
+ display_precision: { type: ['integer', 'null'], minimum: 0 },
3400
3646
  display_as_percentage: { type: 'boolean' },
3401
3647
  thousands_separator: { type: 'boolean' },
3402
- currency_symbol: { type: 'string' },
3403
- currency_symbol_position: { type: 'string', enum: ['prefix', 'suffix'] },
3648
+ currency_symbol: { type: ['string', 'null'] },
3649
+ currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
3404
3650
  icon_type: {
3405
- type: 'string',
3406
- enum: ['none', 'number-2', 'dollar1', 'cny1', 'formula-2', 'date-2', 'sum', 'text', 'text2']
3651
+ type: ['string', 'null'],
3652
+ enum: ['none', 'number-2', 'dollar1', 'cny1', 'formula-2', 'date-2', 'sum', 'text', 'text2', null]
3407
3653
  },
3408
- changeable: { type: 'object', additionalProperties: { type: 'boolean' } },
3654
+ changeable: { type: ['object', 'null'], additionalProperties: { type: 'boolean' } },
3409
3655
  enable_auto_position: { type: 'boolean' },
3410
- max_size: { type: 'integer', minimum: 1, maximum: 500 },
3411
- max_file_quantity: { type: 'integer', minimum: 1 },
3656
+ max_size: { type: ['number', 'null'], exclusiveMinimum: 0, maximum: 500 },
3657
+ max_file_quantity: { type: ['integer', 'null'], minimum: 1 },
3412
3658
  media_type: {
3413
- type: 'object',
3659
+ type: ['object', 'null'],
3414
3660
  additionalProperties: false,
3415
3661
  properties: {
3416
3662
  type: { type: 'string', enum: ['unlimited', 'doc', 'image', 'video', 'audio', 'compress', 'custom'] },
@@ -3420,21 +3666,21 @@ export const SCHEMAS = {
3420
3666
  then: { required: ['value'], properties: { value: { minItems: 1 } } }
3421
3667
  },
3422
3668
  mobile_camera_only: { type: 'boolean' },
3423
- minimum_ratings_display_text: { type: 'string' },
3424
- maximum_ratings_display_text: { type: 'string' },
3669
+ minimum_ratings_display_text: { type: ['string', 'null'] },
3670
+ maximum_ratings_display_text: { type: ['string', 'null'] },
3425
3671
  include_second: { type: 'boolean' },
3426
- max_duration: { type: 'integer', minimum: 1, maximum: 5 },
3427
- levels: { type: 'integer', minimum: 2 },
3672
+ max_duration: { type: ['integer', 'null'], minimum: 1, maximum: 5 },
3673
+ levels: { type: ['integer', 'null'], minimum: 2 },
3428
3674
  choice_filterable: { type: 'boolean' },
3429
3675
  horizontal_on_mobile: { type: 'boolean' },
3430
- likert_choice_style: { type: 'string', enum: ['single', 'multiple'] },
3676
+ likert_choice_style: { type: ['string', 'null'], enum: ['single', 'multiple', null] },
3431
3677
  advanced_feature: { type: 'boolean' },
3432
- unit: { type: 'string', maxLength: 2 },
3678
+ unit: { type: ['string', 'null'], maxLength: 2 },
3433
3679
  collapse_on_mobile: { type: 'boolean' },
3434
- columns_on_mobile: { type: 'integer', minimum: 1 },
3435
- formula: { type: 'string' },
3436
- formula_display: { type: 'string' },
3437
- result_display_type: { type: 'string', enum: ['string', 'numeric', 'datetime', 'boolean'] },
3680
+ columns_on_mobile: { type: ['integer', 'null'], minimum: 1 },
3681
+ formula: { type: ['string', 'null'] },
3682
+ formula_display: { type: ['string', 'null'] },
3683
+ result_display_type: { type: ['string', 'null'], enum: ['string', 'numeric', 'datetime', 'boolean', null] },
3438
3684
  result_display_as_date: { type: 'boolean' },
3439
3685
  allow_multiple_items: { type: 'boolean' },
3440
3686
  item_allow_multiple_reservations: { type: 'boolean' },
@@ -3447,34 +3693,38 @@ export const SCHEMAS = {
3447
3693
  reverse_display_field_api_codes: { type: 'array', items: { type: 'string' } },
3448
3694
  related_form_token: { type: 'string' },
3449
3695
  paired: { type: 'boolean' },
3450
- related_label: { type: 'string' },
3696
+ related_label: { type: ['string', 'null'] },
3451
3697
  show_split_line: { type: 'boolean' },
3452
3698
  show_part_description: { type: 'boolean' },
3453
3699
  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 },
3700
+ previous_page_text: { type: ['string', 'null'] },
3701
+ next_page_text: { type: ['string', 'null'] },
3702
+ count_down: { type: ['integer', 'null'], minimum: 0 },
3703
+ buttons_number: { type: ['integer', 'null'], minimum: 1 },
3458
3704
  fixed_to_bottom: { type: 'boolean' },
3459
- widget_max_images_number: { type: 'integer', minimum: 1 },
3705
+ widget_max_images_number: { type: ['integer', 'null'], minimum: 0 },
3460
3706
  phones: {
3461
3707
  type: 'array',
3462
3708
  items: {
3463
3709
  type: 'object',
3464
3710
  required: ['phone'],
3465
3711
  additionalProperties: false,
3466
- properties: { phone: { type: 'string' } }
3712
+ properties: { phone: { type: 'string' }, notes: { type: ['string', 'null'] } }
3467
3713
  }
3468
3714
  },
3469
- nav_address: { type: 'string' },
3470
- longitude: { type: 'number' },
3471
- latitude: { type: 'number' },
3472
- value: { type: 'string' },
3715
+ nav_address: { type: ['string', 'null'] },
3716
+ longitude: { type: ['number', 'null'] },
3717
+ latitude: { type: ['number', 'null'] },
3718
+ value: { type: ['string', 'null'] },
3473
3719
  localizable_on_mobile: { type: 'boolean' },
3474
- lines: { type: 'integer', minimum: 1 },
3475
- entries_init_number: { type: 'integer', minimum: 0 },
3720
+ lines: { type: ['integer', 'null'], minimum: 1 },
3721
+ entries_init_number: { type: ['integer', 'null'], minimum: 0 },
3476
3722
  entries_number_visible: { type: 'boolean' },
3477
- marquee_data_type: { type: 'string', enum: ['fake', 'real'] }
3723
+ marquee_data_type: { type: ['string', 'null'], enum: ['fake', 'real', null] },
3724
+ start_date: { type: ['string', 'null'] },
3725
+ end_date: { type: ['string', 'null'] },
3726
+ rating_type: { type: ['string', 'null'] },
3727
+ highlight_color: { type: ['string', 'null'] }
3478
3728
  },
3479
3729
  allOf: [
3480
3730
  {
@@ -3500,15 +3750,19 @@ export const SCHEMAS = {
3500
3750
  required: ['type', 'label', 'answers'],
3501
3751
  properties: {
3502
3752
  type: { const: 'FillInBlank' },
3503
- label: { type: 'string' },
3753
+ label: { type: ['string', 'null'] },
3504
3754
  cid: { type: 'string' },
3505
- notes: { type: 'string' },
3755
+ notes: { type: ['string', 'null'] },
3506
3756
  private: { type: 'boolean' },
3507
3757
  required: { type: 'boolean' },
3508
3758
  position: { type: 'integer', minimum: 0 },
3509
3759
  unique: { type: 'boolean' },
3510
- predefined_value: { type: 'string' },
3511
- placeholder: { type: 'string' },
3760
+ predefined_value: { type: ['string', 'null'] },
3761
+ placeholder: { type: ['string', 'null'] },
3762
+ scannable: { type: 'boolean' },
3763
+ access_control_list_limit: { type: 'boolean' },
3764
+ access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
3765
+ acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
3512
3766
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
3513
3767
  start_new_row: { type: 'boolean' },
3514
3768
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
@@ -3533,24 +3787,24 @@ export const SCHEMAS = {
3533
3787
  required: ['type', 'label', 'answers'],
3534
3788
  properties: {
3535
3789
  type: { const: 'FillInNumber' },
3536
- label: { type: 'string' },
3790
+ label: { type: ['string', 'null'] },
3537
3791
  cid: { type: 'string' },
3538
- notes: { type: 'string' },
3792
+ notes: { type: ['string', 'null'] },
3539
3793
  private: { type: 'boolean' },
3540
3794
  required: { type: 'boolean' },
3541
3795
  position: { type: 'integer', minimum: 0 },
3542
3796
  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 },
3797
+ predefined_value: { type: ['number', 'string', 'null'] },
3798
+ placeholder: { type: ['string', 'null'] },
3799
+ range_min: { type: ['number', 'null'] },
3800
+ range_max: { type: ['number', 'null'] },
3801
+ precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
3802
+ display_precision: { type: ['integer', 'null'], minimum: 0 },
3549
3803
  display_as_percentage: { type: 'boolean' },
3550
3804
  thousands_separator: { type: 'boolean' },
3551
- currency_symbol: { type: 'string' },
3552
- currency_symbol_position: { type: 'string', enum: ['prefix', 'suffix'] },
3553
- icon_type: { type: 'string', enum: ['none', 'number-2', 'dollar1', 'cny1'] },
3805
+ currency_symbol: { type: ['string', 'null'] },
3806
+ currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
3807
+ icon_type: { type: ['string', 'null'], enum: ['none', 'number-2', 'dollar1', 'cny1', null] },
3554
3808
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
3555
3809
  start_new_row: { type: 'boolean' },
3556
3810
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
@@ -3575,6 +3829,15 @@ export const SCHEMAS = {
3575
3829
  }
3576
3830
  ]
3577
3831
  },
3832
+ FixedCharactersGenCodeRuleInput: {
3833
+ type: 'object',
3834
+ additionalProperties: false,
3835
+ required: ['type', 'value'],
3836
+ properties: {
3837
+ type: { type: 'string', enum: ['fixed_characters'] },
3838
+ value: { type: 'string', minLength: 1, maxLength: 6 }
3839
+ }
3840
+ },
3578
3841
  FolderInput: {
3579
3842
  type: 'object',
3580
3843
  required: ['name'],
@@ -3590,9 +3853,9 @@ export const SCHEMAS = {
3590
3853
  required: ['type', 'label', 'associated_form_token', 'associated_field_api_codes'],
3591
3854
  properties: {
3592
3855
  type: { const: 'FormAssociation' },
3593
- label: { type: 'string' },
3856
+ label: { type: ['string', 'null'] },
3594
3857
  cid: { type: 'string' },
3595
- notes: { type: 'string' },
3858
+ notes: { type: ['string', 'null'] },
3596
3859
  private: { type: 'boolean' },
3597
3860
  required: { type: 'boolean' },
3598
3861
  position: { type: 'integer', minimum: 0 },
@@ -3616,11 +3879,10 @@ export const SCHEMAS = {
3616
3879
  fields: {
3617
3880
  items: {
3618
3881
  properties: {
3619
- type: {
3620
- not: { enum: ['PageBreak', 'MultipleBlanksField', 'WidgetContact', 'WidgetVideo', 'WidgetButton'] }
3621
- }
3622
- },
3623
- not: { anyOf: [{ required: ['grids_to_occupy'] }, { required: ['start_new_row'] }] }
3882
+ type: { not: { enum: ['PageBreak', 'MultipleBlanksField', 'WidgetContact', 'WidgetVideo'] } },
3883
+ grids_to_occupy: { type: 'null' },
3884
+ start_new_row: { const: false }
3885
+ }
3624
3886
  }
3625
3887
  }
3626
3888
  }
@@ -3709,7 +3971,7 @@ export const SCHEMAS = {
3709
3971
  FormFolderMoveInput: {
3710
3972
  type: 'object',
3711
3973
  required: ['folder_token'],
3712
- properties: { folder_token: { type: ['string', 'null'] } },
3974
+ properties: { folder_token: { type: ['string', 'null'] }, original_folder_token: { type: 'string' } },
3713
3975
  additionalProperties: false
3714
3976
  },
3715
3977
  FormIntervalCommentInput: {
@@ -3761,6 +4023,8 @@ export const SCHEMAS = {
3761
4023
  ]
3762
4024
  },
3763
4025
  weixin_limited: { type: 'boolean' },
4026
+ weixin_collect_way: { type: 'string', enum: ['not_collect', 'goldendata', 'own', 'own_weixin_qiye', 'yamcha'] },
4027
+ weixin_collect_more_info_enabled: { type: 'boolean' },
3764
4028
  locale: { type: 'string', enum: ['zh-CN', 'zh-TW', 'en'] },
3765
4029
  entry_post_url: { type: 'string' },
3766
4030
  post_new_entry: { type: 'boolean' },
@@ -3776,6 +4040,10 @@ export const SCHEMAS = {
3776
4040
  properties: { limit: { type: 'integer', maximum: 2147483647 } },
3777
4041
  additionalProperties: false
3778
4042
  },
4043
+ gen_code_enabled: { type: 'boolean' },
4044
+ gen_code_label: { type: 'string', minLength: 2, maxLength: 6 },
4045
+ gen_code_format: { type: 'string', enum: ['d8', 'd12', 'custom'] },
4046
+ gen_code_rules: { type: 'array', items: { $ref: 'GenCodeRuleInput' } },
3779
4047
  fill_frequency: { $ref: 'FormFillFrequencyInput' },
3780
4048
  wording: { $ref: 'FormWordingInput' }
3781
4049
  },
@@ -3847,6 +4115,8 @@ export const SCHEMAS = {
3847
4115
  ]
3848
4116
  },
3849
4117
  weixin_limited: { type: 'boolean' },
4118
+ weixin_collect_way: { type: 'string', enum: ['not_collect', 'goldendata', 'own', 'own_weixin_qiye', 'yamcha'] },
4119
+ weixin_collect_more_info_enabled: { type: 'boolean' },
3850
4120
  submission_region_limited: { type: 'boolean' },
3851
4121
  submission_regions: { type: 'array', items: { type: 'string' } },
3852
4122
  locale: { type: 'string', enum: ['zh-CN', 'zh-TW', 'en'] },
@@ -3856,6 +4126,10 @@ export const SCHEMAS = {
3856
4126
  payment_expirable: { type: 'boolean' },
3857
4127
  payment_expiration_time: { type: 'integer', minimum: 3, maximum: 30 },
3858
4128
  wording: { $ref: 'FormWordingInput' },
4129
+ gen_code_enabled: { type: 'boolean' },
4130
+ gen_code_label: { type: 'string', minLength: 2, maxLength: 6 },
4131
+ gen_code_format: { type: 'string', enum: ['d8', 'd12', 'custom'] },
4132
+ gen_code_rules: { type: 'array', items: { $ref: 'GenCodeRuleInput' } },
3859
4133
  notification_rules: { type: 'array', items: { $ref: 'NotificationRuleInput' } },
3860
4134
  daily_repeat_close_rule: { $ref: 'DailyRepeatCloseRuleInput' }
3861
4135
  },
@@ -3914,7 +4188,8 @@ export const SCHEMAS = {
3914
4188
  field: { type: 'string' },
3915
4189
  operator: { type: 'string' },
3916
4190
  value: {},
3917
- scope_attr: { type: 'string', enum: ['date_time'] }
4191
+ scope_attr: { type: 'string', enum: ['date_time'] },
4192
+ group_index: { type: 'integer' }
3918
4193
  }
3919
4194
  },
3920
4195
  FormViewInput: {
@@ -3977,31 +4252,30 @@ export const SCHEMAS = {
3977
4252
  },
3978
4253
  additionalProperties: false
3979
4254
  },
3980
- FormulaFieldInput: {
4255
+ FormulaFieldColumnInput: {
3981
4256
  type: 'object',
3982
4257
  additionalProperties: false,
3983
4258
  required: ['type', 'label'],
3984
4259
  properties: {
3985
4260
  type: { const: 'FormulaField' },
3986
- label: { type: 'string' },
4261
+ label: { type: ['string', 'null'] },
3987
4262
  cid: { type: 'string' },
3988
- notes: { type: 'string' },
4263
+ notes: { type: ['string', 'null'] },
3989
4264
  private: { type: 'boolean' },
3990
- required: { type: 'boolean' },
3991
4265
  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'] },
4266
+ formula: { type: ['string', 'null'] },
4267
+ formula_display: { type: ['string', 'null'] },
4268
+ result_display_type: { type: ['string', 'null'], enum: ['string', 'numeric', 'datetime', 'boolean', null] },
3995
4269
  result_display_as_date: { type: 'boolean' },
3996
- precision: { type: 'integer', minimum: 0, maximum: 14 },
3997
- display_precision: { type: 'integer', minimum: 0 },
4270
+ precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
4271
+ display_precision: { type: ['integer', 'null'], minimum: 0 },
3998
4272
  display_as_percentage: { type: 'boolean' },
3999
4273
  thousands_separator: { type: 'boolean' },
4000
- currency_symbol: { type: 'string' },
4001
- currency_symbol_position: { type: 'string', enum: ['prefix', 'suffix'] },
4274
+ currency_symbol: { type: ['string', 'null'] },
4275
+ currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
4002
4276
  icon_type: {
4003
- type: 'string',
4004
- enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', 'text', 'text2']
4277
+ type: ['string', 'null'],
4278
+ enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', 'text', 'text2', null]
4005
4279
  },
4006
4280
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4007
4281
  start_new_row: { type: 'boolean' }
@@ -4015,36 +4289,84 @@ export const SCHEMAS = {
4015
4289
  }
4016
4290
  ]
4017
4291
  },
4018
- GeoFieldInput: {
4292
+ FormulaFieldInput: {
4019
4293
  type: 'object',
4020
4294
  additionalProperties: false,
4021
4295
  required: ['type', 'label'],
4022
4296
  properties: {
4023
- type: { const: 'GeoField' },
4024
- label: { type: 'string' },
4297
+ type: { const: 'FormulaField' },
4298
+ label: { type: ['string', 'null'] },
4025
4299
  cid: { type: 'string' },
4026
- notes: { type: 'string' },
4300
+ notes: { type: ['string', 'null'] },
4027
4301
  private: { type: 'boolean' },
4028
4302
  required: { type: 'boolean' },
4029
- position: { type: 'integer', minimum: 0 }
4030
- }
4303
+ position: { type: 'integer', minimum: 0 },
4304
+ formula: { type: ['string', 'null'] },
4305
+ formula_display: { type: ['string', 'null'] },
4306
+ result_display_type: { type: ['string', 'null'], enum: ['string', 'numeric', 'datetime', 'boolean', null] },
4307
+ result_display_as_date: { type: 'boolean' },
4308
+ precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
4309
+ display_precision: { type: ['integer', 'null'], minimum: 0 },
4310
+ display_as_percentage: { type: 'boolean' },
4311
+ thousands_separator: { type: 'boolean' },
4312
+ currency_symbol: { type: ['string', 'null'] },
4313
+ currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
4314
+ icon_type: {
4315
+ type: ['string', 'null'],
4316
+ enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', 'text', 'text2', null]
4317
+ },
4318
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4319
+ start_new_row: { type: 'boolean' }
4320
+ },
4321
+ allOf: [
4322
+ {
4323
+ not: {
4324
+ properties: { display_as_percentage: { const: true }, thousands_separator: { const: true } },
4325
+ required: ['display_as_percentage', 'thousands_separator']
4326
+ }
4327
+ }
4328
+ ]
4031
4329
  },
4032
- GoodsFieldInput: {
4330
+ GenCodeRuleInput: {
4033
4331
  type: 'object',
4034
- additionalProperties: false,
4035
- required: ['type', 'label'],
4036
- properties: {
4332
+ required: ['type'],
4333
+ properties: { type: { type: 'string', enum: ['fixed_characters', 'auto_count'] } },
4334
+ discriminator: {
4335
+ propertyName: 'type',
4336
+ mapping: { fixed_characters: 'FixedCharactersGenCodeRuleInput', auto_count: 'AutoCountGenCodeRuleInput' }
4337
+ },
4338
+ oneOf: [{ $ref: 'FixedCharactersGenCodeRuleInput' }, { $ref: 'AutoCountGenCodeRuleInput' }]
4339
+ },
4340
+ GeoFieldInput: {
4341
+ type: 'object',
4342
+ additionalProperties: false,
4343
+ required: ['type', 'label'],
4344
+ properties: {
4345
+ type: { const: 'GeoField' },
4346
+ label: { type: ['string', 'null'] },
4347
+ cid: { type: 'string' },
4348
+ notes: { type: ['string', 'null'] },
4349
+ private: { type: 'boolean' },
4350
+ required: { type: 'boolean' },
4351
+ position: { type: 'integer', minimum: 0 }
4352
+ }
4353
+ },
4354
+ GoodsFieldInput: {
4355
+ type: 'object',
4356
+ additionalProperties: false,
4357
+ required: ['type', 'label'],
4358
+ properties: {
4037
4359
  type: { const: 'GoodsField' },
4038
- label: { type: 'string' },
4360
+ label: { type: ['string', 'null'] },
4039
4361
  cid: { type: 'string' },
4040
- notes: { type: 'string' },
4362
+ notes: { type: ['string', 'null'] },
4041
4363
  private: { type: 'boolean' },
4042
4364
  required: { type: 'boolean' },
4043
4365
  position: { type: 'integer', minimum: 0 },
4044
4366
  goods_items: { type: 'array', minItems: 1, items: { $ref: 'GoodsItemInput' } },
4045
- unit: { type: 'string', maxLength: 2 },
4367
+ unit: { type: ['string', 'null'], maxLength: 2 },
4046
4368
  collapse_on_mobile: { type: 'boolean' },
4047
- columns_on_mobile: { type: 'integer', minimum: 1 }
4369
+ columns_on_mobile: { type: ['integer', 'null'], minimum: 1 }
4048
4370
  }
4049
4371
  },
4050
4372
  GoodsItemInput: {
@@ -4054,27 +4376,26 @@ export const SCHEMAS = {
4054
4376
  properties: {
4055
4377
  name: { type: 'string' },
4056
4378
  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 },
4379
+ api_code: { type: ['string', 'null'] },
4380
+ description: { type: ['string', 'null'] },
4381
+ position: { type: ['integer', 'null'], minimum: 0 },
4060
4382
  hidden: { type: 'boolean' },
4061
- price: { type: 'number', minimum: 0 },
4062
- original_price: { type: 'number', minimum: 0 },
4063
- predefined_number: { type: 'integer', minimum: 0 },
4383
+ price: { type: ['number', 'null'], minimum: 0 },
4384
+ original_price: { type: ['number', 'null'], minimum: 0 },
4385
+ predefined_number: { type: ['integer', 'null'], minimum: 0 },
4064
4386
  fixed_number: { type: 'boolean' },
4065
- inventory: { type: 'integer', minimum: 0 },
4387
+ inventory: { type: ['integer', 'null'], minimum: 0 },
4066
4388
  inventory_reset: { type: 'boolean' },
4067
- min_purchase_quantity: { type: 'integer', minimum: 0 },
4068
- max_purchase_quantity: { type: 'integer', minimum: 0 },
4389
+ min_purchase_quantity: { type: ['integer', 'null'], minimum: 0 },
4390
+ max_purchase_quantity: { type: ['integer', 'null'], minimum: 0 },
4069
4391
  dimensions: {
4070
4392
  type: 'array',
4071
- minItems: 1,
4072
4393
  items: {
4073
4394
  type: 'object',
4074
4395
  additionalProperties: false,
4075
4396
  required: ['label', 'options'],
4076
4397
  properties: {
4077
- api_code: { type: 'string' },
4398
+ api_code: { type: ['string', 'null'] },
4078
4399
  label: { type: 'string' },
4079
4400
  options: {
4080
4401
  type: 'array',
@@ -4083,7 +4404,7 @@ export const SCHEMAS = {
4083
4404
  type: 'object',
4084
4405
  additionalProperties: false,
4085
4406
  required: ['label'],
4086
- properties: { label: { type: 'string' }, value: { type: 'string' } }
4407
+ properties: { label: { type: 'string' }, value: { type: ['string', 'null'] } }
4087
4408
  }
4088
4409
  }
4089
4410
  }
@@ -4091,19 +4412,18 @@ export const SCHEMAS = {
4091
4412
  },
4092
4413
  skus: {
4093
4414
  type: 'array',
4094
- minItems: 1,
4095
4415
  items: {
4096
4416
  type: 'object',
4097
4417
  additionalProperties: false,
4098
4418
  required: ['specification'],
4099
4419
  properties: {
4100
4420
  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 },
4421
+ price: { type: ['number', 'null'], minimum: 0 },
4422
+ original_price: { type: ['number', 'null'], minimum: 0 },
4423
+ inventory: { type: ['integer', 'null'], minimum: 0 },
4104
4424
  inventory_reset: { type: 'boolean' },
4105
- min_purchase_quantity: { type: 'integer', minimum: 0 },
4106
- max_purchase_quantity: { type: 'integer', minimum: 0 }
4425
+ min_purchase_quantity: { type: ['integer', 'null'], minimum: 0 },
4426
+ max_purchase_quantity: { type: ['integer', 'null'], minimum: 0 }
4107
4427
  }
4108
4428
  }
4109
4429
  },
@@ -4133,29 +4453,28 @@ export const SCHEMAS = {
4133
4453
  type: 'object',
4134
4454
  additionalProperties: false,
4135
4455
  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 },
4456
+ name: { type: ['string', 'null'] },
4457
+ layout: { type: ['string', 'null'], enum: ['without_images', 'price_only', 'images', 'text_options', null] },
4458
+ api_code: { type: ['string', 'null'] },
4459
+ description: { type: ['string', 'null'] },
4460
+ position: { type: ['integer', 'null'], minimum: 0 },
4141
4461
  hidden: { type: 'boolean' },
4142
- price: { type: 'number', minimum: 0 },
4143
- original_price: { type: 'number', minimum: 0 },
4144
- predefined_number: { type: 'integer', minimum: 0 },
4462
+ price: { type: ['number', 'null'], minimum: 0 },
4463
+ original_price: { type: ['number', 'null'], minimum: 0 },
4464
+ predefined_number: { type: ['integer', 'null'], minimum: 0 },
4145
4465
  fixed_number: { type: 'boolean' },
4146
- inventory: { type: 'integer', minimum: 0 },
4466
+ inventory: { type: ['integer', 'null'], minimum: 0 },
4147
4467
  inventory_reset: { type: 'boolean' },
4148
- min_purchase_quantity: { type: 'integer', minimum: 0 },
4149
- max_purchase_quantity: { type: 'integer', minimum: 0 },
4468
+ min_purchase_quantity: { type: ['integer', 'null'], minimum: 0 },
4469
+ max_purchase_quantity: { type: ['integer', 'null'], minimum: 0 },
4150
4470
  dimensions: {
4151
4471
  type: 'array',
4152
- minItems: 1,
4153
4472
  items: {
4154
4473
  type: 'object',
4155
4474
  additionalProperties: false,
4156
4475
  required: ['label', 'options'],
4157
4476
  properties: {
4158
- api_code: { type: 'string' },
4477
+ api_code: { type: ['string', 'null'] },
4159
4478
  label: { type: 'string' },
4160
4479
  options: {
4161
4480
  type: 'array',
@@ -4164,7 +4483,7 @@ export const SCHEMAS = {
4164
4483
  type: 'object',
4165
4484
  additionalProperties: false,
4166
4485
  required: ['label'],
4167
- properties: { label: { type: 'string' }, value: { type: 'string' } }
4486
+ properties: { label: { type: 'string' }, value: { type: ['string', 'null'] } }
4168
4487
  }
4169
4488
  }
4170
4489
  }
@@ -4172,19 +4491,18 @@ export const SCHEMAS = {
4172
4491
  },
4173
4492
  skus: {
4174
4493
  type: 'array',
4175
- minItems: 1,
4176
4494
  items: {
4177
4495
  type: 'object',
4178
4496
  additionalProperties: false,
4179
4497
  required: ['specification'],
4180
4498
  properties: {
4181
4499
  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 },
4500
+ price: { type: ['number', 'null'], minimum: 0 },
4501
+ original_price: { type: ['number', 'null'], minimum: 0 },
4502
+ inventory: { type: ['integer', 'null'], minimum: 0 },
4185
4503
  inventory_reset: { type: 'boolean' },
4186
- min_purchase_quantity: { type: 'integer', minimum: 0 },
4187
- max_purchase_quantity: { type: 'integer', minimum: 0 }
4504
+ min_purchase_quantity: { type: ['integer', 'null'], minimum: 0 },
4505
+ max_purchase_quantity: { type: ['integer', 'null'], minimum: 0 }
4188
4506
  }
4189
4507
  }
4190
4508
  },
@@ -4196,6 +4514,10 @@ export const SCHEMAS = {
4196
4514
  if: { not: { required: ['api_code'] } },
4197
4515
  then: {
4198
4516
  required: ['name', 'layout'],
4517
+ properties: {
4518
+ name: { type: 'string' },
4519
+ layout: { type: 'string', enum: ['without_images', 'price_only', 'images', 'text_options'] }
4520
+ },
4199
4521
  allOf: [
4200
4522
  {
4201
4523
  if: { properties: { layout: { enum: ['price_only', 'text_options'] } } },
@@ -4220,16 +4542,16 @@ export const SCHEMAS = {
4220
4542
  required: ['type', 'label'],
4221
4543
  properties: {
4222
4544
  type: { const: 'Grade' },
4223
- label: { type: 'string' },
4545
+ label: { type: ['string', 'null'] },
4224
4546
  cid: { type: 'string' },
4225
- notes: { type: 'string' },
4547
+ notes: { type: ['string', 'null'] },
4226
4548
  private: { type: 'boolean' },
4227
4549
  required: { type: 'boolean' },
4228
4550
  position: { type: 'integer', minimum: 0 },
4229
4551
  other_choice_required: { type: 'boolean' },
4230
4552
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
4231
4553
  calculable: { type: 'boolean' },
4232
- choices_layout: { type: 'string' },
4554
+ choices_layout: { type: ['string', 'null'] },
4233
4555
  random_choices: { type: 'boolean' },
4234
4556
  hide_choice_when_quota_empty: { type: 'boolean' },
4235
4557
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
@@ -4248,13 +4570,16 @@ export const SCHEMAS = {
4248
4570
  required: ['type', 'label'],
4249
4571
  properties: {
4250
4572
  type: { const: 'IdCardField' },
4251
- label: { type: 'string' },
4573
+ label: { type: ['string', 'null'] },
4252
4574
  cid: { type: 'string' },
4253
- notes: { type: 'string' },
4575
+ notes: { type: ['string', 'null'] },
4254
4576
  private: { type: 'boolean' },
4255
4577
  required: { type: 'boolean' },
4256
4578
  position: { type: 'integer', minimum: 0 },
4257
4579
  unique: { type: 'boolean' },
4580
+ access_control_list_limit: { type: 'boolean' },
4581
+ access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
4582
+ acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
4258
4583
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4259
4584
  start_new_row: { type: 'boolean' }
4260
4585
  }
@@ -4265,18 +4590,18 @@ export const SCHEMAS = {
4265
4590
  required: ['type', 'label'],
4266
4591
  properties: {
4267
4592
  type: { const: 'ImageCheckBox' },
4268
- label: { type: 'string' },
4593
+ label: { type: ['string', 'null'] },
4269
4594
  cid: { type: 'string' },
4270
- notes: { type: 'string' },
4595
+ notes: { type: ['string', 'null'] },
4271
4596
  private: { type: 'boolean' },
4272
4597
  required: { type: 'boolean' },
4273
4598
  position: { type: 'integer', minimum: 0 },
4274
4599
  choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
4275
4600
  calculable: { type: 'boolean' },
4276
- choices_layout: { type: 'string' },
4601
+ choices_layout: { type: ['string', 'null'] },
4277
4602
  random_choices: { type: 'boolean' },
4278
- minimum_length: { type: 'integer', minimum: 0 },
4279
- maximum_length: { type: 'integer', minimum: 0 },
4603
+ minimum_length: { type: ['integer', 'null'], minimum: 0 },
4604
+ maximum_length: { type: ['integer', 'null'], minimum: 0 },
4280
4605
  hide_choice_when_quota_empty: { type: 'boolean' }
4281
4606
  },
4282
4607
  allOf: [
@@ -4311,18 +4636,18 @@ export const SCHEMAS = {
4311
4636
  required: ['type', 'label', 'choices', 'answers'],
4312
4637
  properties: {
4313
4638
  type: { const: 'ImageMultiSelect' },
4314
- label: { type: 'string' },
4639
+ label: { type: ['string', 'null'] },
4315
4640
  cid: { type: 'string' },
4316
- notes: { type: 'string' },
4641
+ notes: { type: ['string', 'null'] },
4317
4642
  private: { type: 'boolean' },
4318
4643
  required: { type: 'boolean' },
4319
4644
  position: { type: 'integer', minimum: 0 },
4320
4645
  choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
4321
4646
  calculable: { type: 'boolean' },
4322
- choices_layout: { type: 'string' },
4647
+ choices_layout: { type: ['string', 'null'] },
4323
4648
  random_choices: { type: 'boolean' },
4324
- minimum_length: { type: 'integer', minimum: 0 },
4325
- maximum_length: { type: 'integer', minimum: 0 },
4649
+ minimum_length: { type: ['integer', 'null'], minimum: 0 },
4650
+ maximum_length: { type: ['integer', 'null'], minimum: 0 },
4326
4651
  hide_choice_when_quota_empty: { type: 'boolean' },
4327
4652
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
4328
4653
  answer_setting_mode: { type: 'string', enum: ['absolute', 'partial_absolute', 'relative'] },
@@ -4363,15 +4688,15 @@ export const SCHEMAS = {
4363
4688
  required: ['type', 'label'],
4364
4689
  properties: {
4365
4690
  type: { const: 'ImageRadioButton' },
4366
- label: { type: 'string' },
4691
+ label: { type: ['string', 'null'] },
4367
4692
  cid: { type: 'string' },
4368
- notes: { type: 'string' },
4693
+ notes: { type: ['string', 'null'] },
4369
4694
  private: { type: 'boolean' },
4370
4695
  required: { type: 'boolean' },
4371
4696
  position: { type: 'integer', minimum: 0 },
4372
4697
  choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
4373
4698
  calculable: { type: 'boolean' },
4374
- choices_layout: { type: 'string' },
4699
+ choices_layout: { type: ['string', 'null'] },
4375
4700
  random_choices: { type: 'boolean' },
4376
4701
  hide_choice_when_quota_empty: { type: 'boolean' }
4377
4702
  },
@@ -4388,15 +4713,15 @@ export const SCHEMAS = {
4388
4713
  required: ['type', 'label', 'choices', 'answers'],
4389
4714
  properties: {
4390
4715
  type: { const: 'ImageSingleSelect' },
4391
- label: { type: 'string' },
4716
+ label: { type: ['string', 'null'] },
4392
4717
  cid: { type: 'string' },
4393
- notes: { type: 'string' },
4718
+ notes: { type: ['string', 'null'] },
4394
4719
  private: { type: 'boolean' },
4395
4720
  required: { type: 'boolean' },
4396
4721
  position: { type: 'integer', minimum: 0 },
4397
4722
  choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
4398
4723
  calculable: { type: 'boolean' },
4399
- choices_layout: { type: 'string' },
4724
+ choices_layout: { type: ['string', 'null'] },
4400
4725
  random_choices: { type: 'boolean' },
4401
4726
  hide_choice_when_quota_empty: { type: 'boolean' },
4402
4727
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
@@ -4425,24 +4750,24 @@ export const SCHEMAS = {
4425
4750
  required: ['type', 'label'],
4426
4751
  properties: {
4427
4752
  type: { const: 'LikertField' },
4428
- label: { type: 'string' },
4753
+ label: { type: ['string', 'null'] },
4429
4754
  cid: { type: 'string' },
4430
- notes: { type: 'string' },
4755
+ notes: { type: ['string', 'null'] },
4431
4756
  private: { type: 'boolean' },
4432
4757
  required: { type: 'boolean' },
4433
4758
  position: { type: 'integer', minimum: 0 },
4434
4759
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
4435
4760
  statements: { type: 'array', minItems: 1, items: { $ref: 'StatementInput' } },
4436
4761
  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 },
4762
+ likert_choice_style: { type: ['string', 'null'], enum: ['single', 'multiple', null] },
4763
+ minimum_length: { type: ['integer', 'null'], minimum: 0 },
4764
+ maximum_length: { type: ['integer', 'null'], minimum: 0 },
4440
4765
  calculable: { type: 'boolean' }
4441
4766
  },
4442
4767
  allOf: [
4443
4768
  {
4444
4769
  if: { not: { properties: { likert_choice_style: { const: 'multiple' } }, required: ['likert_choice_style'] } },
4445
- then: { not: { anyOf: [{ required: ['minimum_length'] }, { required: ['maximum_length'] }] } }
4770
+ then: { properties: { minimum_length: { type: 'null' }, maximum_length: { type: 'null' } } }
4446
4771
  },
4447
4772
  {
4448
4773
  if: { properties: { calculable: { const: true } }, required: ['calculable'] },
@@ -4450,21 +4775,38 @@ export const SCHEMAS = {
4450
4775
  }
4451
4776
  ]
4452
4777
  },
4778
+ LinkFieldColumnInput: {
4779
+ type: 'object',
4780
+ additionalProperties: false,
4781
+ required: ['type', 'label'],
4782
+ properties: {
4783
+ type: { const: 'LinkField' },
4784
+ label: { type: ['string', 'null'] },
4785
+ cid: { type: 'string' },
4786
+ notes: { type: ['string', 'null'] },
4787
+ private: { type: 'boolean' },
4788
+ position: { type: 'integer', minimum: 0 },
4789
+ predefined_value: { type: ['string', 'null'] },
4790
+ placeholder: { type: ['string', 'null'] },
4791
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4792
+ start_new_row: { type: 'boolean' }
4793
+ }
4794
+ },
4453
4795
  LinkFieldInput: {
4454
4796
  type: 'object',
4455
4797
  additionalProperties: false,
4456
4798
  required: ['type', 'label'],
4457
4799
  properties: {
4458
4800
  type: { const: 'LinkField' },
4459
- label: { type: 'string' },
4801
+ label: { type: ['string', 'null'] },
4460
4802
  cid: { type: 'string' },
4461
- notes: { type: 'string' },
4803
+ notes: { type: ['string', 'null'] },
4462
4804
  private: { type: 'boolean' },
4463
4805
  required: { type: 'boolean' },
4464
4806
  position: { type: 'integer', minimum: 0 },
4465
4807
  unique: { type: 'boolean' },
4466
- predefined_value: { type: 'string' },
4467
- placeholder: { type: 'string' },
4808
+ predefined_value: { type: ['string', 'null'] },
4809
+ placeholder: { type: ['string', 'null'] },
4468
4810
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4469
4811
  start_new_row: { type: 'boolean' }
4470
4812
  }
@@ -4475,9 +4817,9 @@ export const SCHEMAS = {
4475
4817
  required: ['type', 'label'],
4476
4818
  properties: {
4477
4819
  type: { const: 'MatrixField' },
4478
- label: { type: 'string' },
4820
+ label: { type: ['string', 'null'] },
4479
4821
  cid: { type: 'string' },
4480
- notes: { type: 'string' },
4822
+ notes: { type: ['string', 'null'] },
4481
4823
  private: { type: 'boolean' },
4482
4824
  required: { type: 'boolean' },
4483
4825
  position: { type: 'integer', minimum: 0 },
@@ -4493,9 +4835,9 @@ export const SCHEMAS = {
4493
4835
  required: ['type', 'label'],
4494
4836
  properties: {
4495
4837
  type: { const: 'MatrixScaleField' },
4496
- label: { type: 'string' },
4838
+ label: { type: ['string', 'null'] },
4497
4839
  cid: { type: 'string' },
4498
- notes: { type: 'string' },
4840
+ notes: { type: ['string', 'null'] },
4499
4841
  private: { type: 'boolean' },
4500
4842
  required: { type: 'boolean' },
4501
4843
  position: { type: 'integer', minimum: 0 },
@@ -4609,22 +4951,43 @@ export const SCHEMAS = {
4609
4951
  MessageSource: { type: 'string', enum: ['api', 'jiri', 'routine'] },
4610
4952
  MessageStatus: { type: 'string', enum: ['queued', 'sending', 'succeeded', 'failed'] },
4611
4953
  MessageType: { type: 'string', enum: ['email', 'sms', 'ding_talk', 'wxwork', 'webhook'] },
4954
+ MobileFieldColumnInput: {
4955
+ type: 'object',
4956
+ additionalProperties: false,
4957
+ required: ['type', 'label'],
4958
+ properties: {
4959
+ type: { const: 'MobileField' },
4960
+ label: { type: ['string', 'null'] },
4961
+ cid: { type: 'string' },
4962
+ notes: { type: ['string', 'null'] },
4963
+ private: { type: 'boolean' },
4964
+ position: { type: 'integer', minimum: 0 },
4965
+ predefined_value: { type: ['string', 'null'] },
4966
+ placeholder: { type: ['string', 'null'] },
4967
+ sms_verification: { type: 'boolean' },
4968
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4969
+ start_new_row: { type: 'boolean' }
4970
+ }
4971
+ },
4612
4972
  MobileFieldInput: {
4613
4973
  type: 'object',
4614
4974
  additionalProperties: false,
4615
4975
  required: ['type', 'label'],
4616
4976
  properties: {
4617
4977
  type: { const: 'MobileField' },
4618
- label: { type: 'string' },
4978
+ label: { type: ['string', 'null'] },
4619
4979
  cid: { type: 'string' },
4620
- notes: { type: 'string' },
4980
+ notes: { type: ['string', 'null'] },
4621
4981
  private: { type: 'boolean' },
4622
4982
  required: { type: 'boolean' },
4623
4983
  position: { type: 'integer', minimum: 0 },
4624
4984
  unique: { type: 'boolean' },
4625
- predefined_value: { type: 'string' },
4626
- placeholder: { type: 'string' },
4985
+ predefined_value: { type: ['string', 'null'] },
4986
+ placeholder: { type: ['string', 'null'] },
4627
4987
  sms_verification: { type: 'boolean' },
4988
+ access_control_list_limit: { type: 'boolean' },
4989
+ access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
4990
+ acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
4628
4991
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4629
4992
  start_new_row: { type: 'boolean' }
4630
4993
  }
@@ -4635,19 +4998,19 @@ export const SCHEMAS = {
4635
4998
  required: ['type', 'label', 'choices', 'answers'],
4636
4999
  properties: {
4637
5000
  type: { const: 'MultiSelect' },
4638
- label: { type: 'string' },
5001
+ label: { type: ['string', 'null'] },
4639
5002
  cid: { type: 'string' },
4640
- notes: { type: 'string' },
5003
+ notes: { type: ['string', 'null'] },
4641
5004
  private: { type: 'boolean' },
4642
5005
  required: { type: 'boolean' },
4643
5006
  position: { type: 'integer', minimum: 0 },
4644
5007
  other_choice_required: { type: 'boolean' },
4645
5008
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
4646
5009
  calculable: { type: 'boolean' },
4647
- choices_layout: { type: 'string' },
5010
+ choices_layout: { type: ['string', 'null'] },
4648
5011
  random_choices: { type: 'boolean' },
4649
- minimum_length: { type: 'integer', minimum: 0 },
4650
- maximum_length: { type: 'integer', minimum: 0 },
5012
+ minimum_length: { type: ['integer', 'null'], minimum: 0 },
5013
+ maximum_length: { type: ['integer', 'null'], minimum: 0 },
4651
5014
  hide_choice_when_quota_empty: { type: 'boolean' },
4652
5015
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4653
5016
  start_new_row: { type: 'boolean' },
@@ -4690,13 +5053,16 @@ export const SCHEMAS = {
4690
5053
  required: ['type', 'label'],
4691
5054
  properties: {
4692
5055
  type: { const: 'NameField' },
4693
- label: { type: 'string' },
5056
+ label: { type: ['string', 'null'] },
4694
5057
  cid: { type: 'string' },
4695
- notes: { type: 'string' },
5058
+ notes: { type: ['string', 'null'] },
4696
5059
  private: { type: 'boolean' },
4697
5060
  required: { type: 'boolean' },
4698
5061
  position: { type: 'integer', minimum: 0 },
4699
5062
  unique: { type: 'boolean' },
5063
+ access_control_list_limit: { type: 'boolean' },
5064
+ access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
5065
+ acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
4700
5066
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4701
5067
  start_new_row: { type: 'boolean' }
4702
5068
  }
@@ -4769,14 +5135,14 @@ export const SCHEMAS = {
4769
5135
  required: ['type', 'label'],
4770
5136
  properties: {
4771
5137
  type: { const: 'NpsField' },
4772
- label: { type: 'string' },
5138
+ label: { type: ['string', 'null'] },
4773
5139
  cid: { type: 'string' },
4774
- notes: { type: 'string' },
5140
+ notes: { type: ['string', 'null'] },
4775
5141
  private: { type: 'boolean' },
4776
5142
  required: { type: 'boolean' },
4777
5143
  position: { type: 'integer', minimum: 0 },
4778
- minimum_ratings_display_text: { type: 'string' },
4779
- maximum_ratings_display_text: { type: 'string' }
5144
+ minimum_ratings_display_text: { type: ['string', 'null'] },
5145
+ maximum_ratings_display_text: { type: ['string', 'null'] }
4780
5146
  }
4781
5147
  },
4782
5148
  NpsInput: {
@@ -4785,14 +5151,14 @@ export const SCHEMAS = {
4785
5151
  required: ['type', 'label', 'answers'],
4786
5152
  properties: {
4787
5153
  type: { const: 'Nps' },
4788
- label: { type: 'string' },
5154
+ label: { type: ['string', 'null'] },
4789
5155
  cid: { type: 'string' },
4790
- notes: { type: 'string' },
5156
+ notes: { type: ['string', 'null'] },
4791
5157
  private: { type: 'boolean' },
4792
5158
  required: { type: 'boolean' },
4793
5159
  position: { type: 'integer', minimum: 0 },
4794
- minimum_ratings_display_text: { type: 'string' },
4795
- maximum_ratings_display_text: { type: 'string' },
5160
+ minimum_ratings_display_text: { type: ['string', 'null'] },
5161
+ maximum_ratings_display_text: { type: ['string', 'null'] },
4796
5162
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
4797
5163
  answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
4798
5164
  answer_explanation: { type: 'string' }
@@ -4809,30 +5175,62 @@ export const SCHEMAS = {
4809
5175
  }
4810
5176
  ]
4811
5177
  },
5178
+ NumberFieldColumnInput: {
5179
+ type: 'object',
5180
+ additionalProperties: false,
5181
+ required: ['type', 'label'],
5182
+ properties: {
5183
+ type: { const: 'NumberField' },
5184
+ label: { type: ['string', 'null'] },
5185
+ cid: { type: 'string' },
5186
+ notes: { type: ['string', 'null'] },
5187
+ private: { type: 'boolean' },
5188
+ position: { type: 'integer', minimum: 0 },
5189
+ predefined_value: { type: ['number', 'string', 'null'] },
5190
+ placeholder: { type: ['string', 'null'] },
5191
+ precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
5192
+ display_precision: { type: ['integer', 'null'], minimum: 0 },
5193
+ display_as_percentage: { type: 'boolean' },
5194
+ thousands_separator: { type: 'boolean' },
5195
+ currency_symbol: { type: ['string', 'null'] },
5196
+ currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
5197
+ icon_type: { type: ['string', 'null'], enum: ['none', 'number-2', 'dollar1', 'cny1', null] },
5198
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
5199
+ start_new_row: { type: 'boolean' }
5200
+ },
5201
+ allOf: [
5202
+ {
5203
+ not: {
5204
+ properties: { display_as_percentage: { const: true }, thousands_separator: { const: true } },
5205
+ required: ['display_as_percentage', 'thousands_separator']
5206
+ }
5207
+ }
5208
+ ]
5209
+ },
4812
5210
  NumberFieldInput: {
4813
5211
  type: 'object',
4814
5212
  additionalProperties: false,
4815
5213
  required: ['type', 'label'],
4816
5214
  properties: {
4817
5215
  type: { const: 'NumberField' },
4818
- label: { type: 'string' },
5216
+ label: { type: ['string', 'null'] },
4819
5217
  cid: { type: 'string' },
4820
- notes: { type: 'string' },
5218
+ notes: { type: ['string', 'null'] },
4821
5219
  private: { type: 'boolean' },
4822
5220
  required: { type: 'boolean' },
4823
5221
  position: { type: 'integer', minimum: 0 },
4824
5222
  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 },
5223
+ predefined_value: { type: ['number', 'string', 'null'] },
5224
+ placeholder: { type: ['string', 'null'] },
5225
+ range_min: { type: ['number', 'null'] },
5226
+ range_max: { type: ['number', 'null'] },
5227
+ precision: { type: ['integer', 'null'], minimum: 0, maximum: 14 },
5228
+ display_precision: { type: ['integer', 'null'], minimum: 0 },
4831
5229
  display_as_percentage: { type: 'boolean' },
4832
5230
  thousands_separator: { type: 'boolean' },
4833
- currency_symbol: { type: 'string' },
4834
- currency_symbol_position: { type: 'string', enum: ['prefix', 'suffix'] },
4835
- icon_type: { type: 'string', enum: ['none', 'number-2', 'dollar1', 'cny1'] },
5231
+ currency_symbol: { type: ['string', 'null'] },
5232
+ currency_symbol_position: { type: ['string', 'null'], enum: ['prefix', 'suffix', null] },
5233
+ icon_type: { type: ['string', 'null'], enum: ['none', 'number-2', 'dollar1', 'cny1', null] },
4836
5234
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4837
5235
  start_new_row: { type: 'boolean' }
4838
5236
  },
@@ -4940,16 +5338,16 @@ export const SCHEMAS = {
4940
5338
  required: ['type', 'label'],
4941
5339
  properties: {
4942
5340
  type: { const: 'PageBreak' },
4943
- label: { type: 'string' },
5341
+ label: { type: ['string', 'null'] },
4944
5342
  cid: { type: 'string' },
4945
- notes: { type: 'string' },
5343
+ notes: { type: ['string', 'null'] },
4946
5344
  private: { type: 'boolean' },
4947
5345
  required: { type: 'boolean' },
4948
5346
  position: { type: 'integer', minimum: 0 },
4949
5347
  disable_previous_page: { type: 'boolean' },
4950
- previous_page_text: { type: 'string' },
4951
- next_page_text: { type: 'string' },
4952
- count_down: { type: 'integer', minimum: 0 }
5348
+ previous_page_text: { type: ['string', 'null'] },
5349
+ next_page_text: { type: ['string', 'null'] },
5350
+ count_down: { type: ['integer', 'null'], minimum: 0 }
4953
5351
  }
4954
5352
  },
4955
5353
  PublishedArtifactInput: {
@@ -4982,22 +5380,48 @@ export const SCHEMAS = {
4982
5380
  deliverables: { type: 'array', maxItems: 10, items: { $ref: 'QuickpayDeliverableInput' } }
4983
5381
  }
4984
5382
  },
5383
+ RadioButtonColumnInput: {
5384
+ type: 'object',
5385
+ additionalProperties: false,
5386
+ required: ['type', 'label'],
5387
+ properties: {
5388
+ type: { const: 'RadioButton' },
5389
+ label: { type: ['string', 'null'] },
5390
+ cid: { type: 'string' },
5391
+ notes: { type: ['string', 'null'] },
5392
+ private: { type: 'boolean' },
5393
+ position: { type: 'integer', minimum: 0 },
5394
+ choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
5395
+ calculable: { type: 'boolean' },
5396
+ choices_layout: { type: ['string', 'null'] },
5397
+ random_choices: { type: 'boolean' },
5398
+ hide_choice_when_quota_empty: { type: 'boolean' },
5399
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
5400
+ start_new_row: { type: 'boolean' }
5401
+ },
5402
+ allOf: [
5403
+ {
5404
+ if: { properties: { calculable: { const: true } }, required: ['calculable'] },
5405
+ then: { properties: { choices: { items: { required: ['operand_value'] } } } }
5406
+ }
5407
+ ]
5408
+ },
4985
5409
  RadioButtonInput: {
4986
5410
  type: 'object',
4987
5411
  additionalProperties: false,
4988
5412
  required: ['type', 'label'],
4989
5413
  properties: {
4990
5414
  type: { const: 'RadioButton' },
4991
- label: { type: 'string' },
5415
+ label: { type: ['string', 'null'] },
4992
5416
  cid: { type: 'string' },
4993
- notes: { type: 'string' },
5417
+ notes: { type: ['string', 'null'] },
4994
5418
  private: { type: 'boolean' },
4995
5419
  required: { type: 'boolean' },
4996
5420
  position: { type: 'integer', minimum: 0 },
4997
5421
  other_choice_required: { type: 'boolean' },
4998
5422
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
4999
5423
  calculable: { type: 'boolean' },
5000
- choices_layout: { type: 'string' },
5424
+ choices_layout: { type: ['string', 'null'] },
5001
5425
  random_choices: { type: 'boolean' },
5002
5426
  hide_choice_when_quota_empty: { type: 'boolean' },
5003
5427
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
@@ -5016,9 +5440,9 @@ export const SCHEMAS = {
5016
5440
  required: ['type', 'label'],
5017
5441
  properties: {
5018
5442
  type: { const: 'RatingField' },
5019
- label: { type: 'string' },
5443
+ label: { type: ['string', 'null'] },
5020
5444
  cid: { type: 'string' },
5021
- notes: { type: 'string' },
5445
+ notes: { type: ['string', 'null'] },
5022
5446
  private: { type: 'boolean' },
5023
5447
  required: { type: 'boolean' },
5024
5448
  position: { type: 'integer', minimum: 0 },
@@ -5031,9 +5455,9 @@ export const SCHEMAS = {
5031
5455
  required: ['type', 'label', 'answers'],
5032
5456
  properties: {
5033
5457
  type: { const: 'Rating' },
5034
- label: { type: 'string' },
5458
+ label: { type: ['string', 'null'] },
5035
5459
  cid: { type: 'string' },
5036
- notes: { type: 'string' },
5460
+ notes: { type: ['string', 'null'] },
5037
5461
  private: { type: 'boolean' },
5038
5462
  required: { type: 'boolean' },
5039
5463
  position: { type: 'integer', minimum: 0 },
@@ -5054,21 +5478,20 @@ export const SCHEMAS = {
5054
5478
  }
5055
5479
  ]
5056
5480
  },
5057
- RelationFieldInput: {
5481
+ RelationFieldColumnInput: {
5058
5482
  type: 'object',
5059
5483
  additionalProperties: false,
5060
5484
  required: ['type', 'label'],
5061
5485
  properties: {
5062
5486
  type: { const: 'RelationField' },
5063
- label: { type: 'string' },
5487
+ label: { type: ['string', 'null'] },
5064
5488
  cid: { type: 'string' },
5065
- notes: { type: 'string' },
5489
+ notes: { type: ['string', 'null'] },
5066
5490
  private: { type: 'boolean' },
5067
- required: { type: 'boolean' },
5068
5491
  position: { type: 'integer', minimum: 0 },
5069
5492
  related_form_token: { type: 'string' },
5070
5493
  paired: { type: 'boolean' },
5071
- related_label: { type: 'string' }
5494
+ related_label: { type: ['string', 'null'] }
5072
5495
  }
5073
5496
  },
5074
5497
  ReservationByDayQuotaInput: {
@@ -5083,14 +5506,20 @@ export const SCHEMAS = {
5083
5506
  },
5084
5507
  show_left_quota: { type: 'boolean' },
5085
5508
  start_time_offset: {
5086
- type: 'object',
5509
+ type: ['object', 'null'],
5087
5510
  additionalProperties: false,
5088
- properties: { offset_number: { type: 'integer', minimum: 0 }, unit: { type: 'string', enum: ['day', 'hour'] } }
5511
+ properties: {
5512
+ offset_number: { type: ['integer', 'null'], minimum: 0 },
5513
+ unit: { type: ['string', 'null'], enum: ['day', 'hour', null] }
5514
+ }
5089
5515
  },
5090
5516
  end_time_offset: {
5091
- type: 'object',
5517
+ type: ['object', 'null'],
5092
5518
  additionalProperties: false,
5093
- properties: { offset_number: { type: 'integer', minimum: 0 }, unit: { type: 'string', enum: ['day', 'hour'] } }
5519
+ properties: {
5520
+ offset_number: { type: ['integer', 'null'], minimum: 0 },
5521
+ unit: { type: ['string', 'null'], enum: ['day', 'hour', null] }
5522
+ }
5094
5523
  },
5095
5524
  daily_time_range_quotas: {
5096
5525
  type: 'array',
@@ -5099,13 +5528,13 @@ export const SCHEMAS = {
5099
5528
  additionalProperties: false,
5100
5529
  properties: {
5101
5530
  for_wday: {
5102
- type: 'string',
5103
- enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
5531
+ type: ['string', 'null'],
5532
+ enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', null]
5104
5533
  },
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' }
5534
+ quota: { type: ['integer', 'null'], minimum: 0 },
5535
+ price: { type: ['number', 'null'], minimum: 0 },
5536
+ position: { type: ['integer', 'null'], minimum: 0 },
5537
+ daily_time_range_token: { type: ['string', 'null'] }
5109
5538
  }
5110
5539
  }
5111
5540
  },
@@ -5114,7 +5543,7 @@ export const SCHEMAS = {
5114
5543
  items: {
5115
5544
  type: 'object',
5116
5545
  additionalProperties: false,
5117
- properties: { start_time: { type: 'string' }, end_time: { type: 'string' } }
5546
+ properties: { start_time: { type: ['string', 'null'] }, end_time: { type: ['string', 'null'] } }
5118
5547
  }
5119
5548
  },
5120
5549
  special_time_range_quotas: {
@@ -5126,7 +5555,7 @@ export const SCHEMAS = {
5126
5555
  properties: {
5127
5556
  special_dates: { type: 'array', minItems: 1, items: { type: 'string' } },
5128
5557
  quota: { type: 'integer', minimum: 0 },
5129
- price: { type: 'number', minimum: 0 }
5558
+ price: { type: ['number', 'null'], minimum: 0 }
5130
5559
  }
5131
5560
  }
5132
5561
  }
@@ -5145,14 +5574,20 @@ export const SCHEMAS = {
5145
5574
  },
5146
5575
  show_left_quota: { type: 'boolean' },
5147
5576
  start_time_offset: {
5148
- type: 'object',
5577
+ type: ['object', 'null'],
5149
5578
  additionalProperties: false,
5150
- properties: { offset_number: { type: 'integer', minimum: 0 }, unit: { type: 'string', enum: ['day', 'hour'] } }
5579
+ properties: {
5580
+ offset_number: { type: ['integer', 'null'], minimum: 0 },
5581
+ unit: { type: ['string', 'null'], enum: ['day', 'hour', null] }
5582
+ }
5151
5583
  },
5152
5584
  end_time_offset: {
5153
- type: 'object',
5585
+ type: ['object', 'null'],
5154
5586
  additionalProperties: false,
5155
- properties: { offset_number: { type: 'integer', minimum: 0 }, unit: { type: 'string', enum: ['day', 'hour'] } }
5587
+ properties: {
5588
+ offset_number: { type: ['integer', 'null'], minimum: 0 },
5589
+ unit: { type: ['string', 'null'], enum: ['day', 'hour', null] }
5590
+ }
5156
5591
  },
5157
5592
  daily_time_range_quotas: {
5158
5593
  type: 'array',
@@ -5162,27 +5597,27 @@ export const SCHEMAS = {
5162
5597
  required: ['start_time', 'end_time'],
5163
5598
  properties: {
5164
5599
  for_wday: {
5165
- type: 'string',
5166
- enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
5600
+ type: ['string', 'null'],
5601
+ enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', null]
5167
5602
  },
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' },
5603
+ quota: { type: ['integer', 'null'], minimum: 0 },
5604
+ price: { type: ['number', 'null'], minimum: 0 },
5605
+ position: { type: ['integer', 'null'], minimum: 0 },
5606
+ daily_time_range_token: { type: ['string', 'null'] },
5172
5607
  start_time: {
5173
5608
  type: 'object',
5174
5609
  additionalProperties: false,
5175
5610
  properties: {
5176
- hour: { type: 'integer', minimum: 0, maximum: 23 },
5177
- minute: { type: 'integer', minimum: 0, maximum: 59 }
5611
+ hour: { type: ['integer', 'null'], minimum: 0, maximum: 23 },
5612
+ minute: { type: ['integer', 'null'], minimum: 0, maximum: 59 }
5178
5613
  }
5179
5614
  },
5180
5615
  end_time: {
5181
5616
  type: 'object',
5182
5617
  additionalProperties: false,
5183
5618
  properties: {
5184
- hour: { type: 'integer', minimum: 0, maximum: 23 },
5185
- minute: { type: 'integer', minimum: 0, maximum: 59 }
5619
+ hour: { type: ['integer', 'null'], minimum: 0, maximum: 23 },
5620
+ minute: { type: ['integer', 'null'], minimum: 0, maximum: 59 }
5186
5621
  }
5187
5622
  }
5188
5623
  }
@@ -5193,13 +5628,27 @@ export const SCHEMAS = {
5193
5628
  items: {
5194
5629
  type: 'object',
5195
5630
  additionalProperties: false,
5196
- properties: { start_time: { type: 'string' }, end_time: { type: 'string' } }
5631
+ properties: { start_time: { type: ['string', 'null'] }, end_time: { type: ['string', 'null'] } }
5197
5632
  }
5198
5633
  },
5199
- time_range_mode: { type: 'string', enum: ['same_by_wday', 'different_by_wday'] }
5634
+ time_range_mode: { type: ['string', 'null'], enum: ['same_by_wday', 'different_by_wday', null] }
5200
5635
  },
5201
5636
  if: { properties: { time_range_mode: { const: 'different_by_wday' } }, required: ['time_range_mode'] },
5202
- then: { properties: { daily_time_range_quotas: { items: { required: ['for_wday'] } } } }
5637
+ then: {
5638
+ properties: {
5639
+ daily_time_range_quotas: {
5640
+ items: {
5641
+ required: ['for_wday'],
5642
+ properties: {
5643
+ for_wday: {
5644
+ type: 'string',
5645
+ enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
5646
+ }
5647
+ }
5648
+ }
5649
+ }
5650
+ }
5651
+ }
5203
5652
  },
5204
5653
  ReservationFieldInput: {
5205
5654
  type: 'object',
@@ -5207,9 +5656,9 @@ export const SCHEMAS = {
5207
5656
  required: ['type', 'label'],
5208
5657
  properties: {
5209
5658
  type: { const: 'ReservationField' },
5210
- label: { type: 'string' },
5659
+ label: { type: ['string', 'null'] },
5211
5660
  cid: { type: 'string' },
5212
- notes: { type: 'string' },
5661
+ notes: { type: ['string', 'null'] },
5213
5662
  private: { type: 'boolean' },
5214
5663
  required: { type: 'boolean' },
5215
5664
  position: { type: 'integer', minimum: 0 },
@@ -5224,7 +5673,11 @@ export const SCHEMAS = {
5224
5673
  type: 'object',
5225
5674
  additionalProperties: false,
5226
5675
  anyOf: [{ required: ['image_url'] }, { required: ['image_base64'] }, { required: ['attachment_id'] }],
5227
- properties: { image_url: { type: 'string' }, image_base64: { type: 'string' }, attachment_id: { type: 'string' } }
5676
+ properties: {
5677
+ image_url: { type: ['string', 'null'] },
5678
+ image_base64: { type: ['string', 'null'] },
5679
+ attachment_id: { type: ['string', 'null'] }
5680
+ }
5228
5681
  },
5229
5682
  ReservationItemInput: {
5230
5683
  type: 'object',
@@ -5232,14 +5685,14 @@ export const SCHEMAS = {
5232
5685
  required: ['name'],
5233
5686
  properties: {
5234
5687
  name: { type: 'string' },
5235
- api_code: { type: 'string' },
5236
- description: { type: 'string' },
5237
- position: { type: 'integer', minimum: 0 },
5688
+ api_code: { type: ['string', 'null'] },
5689
+ description: { type: ['string', 'null'] },
5690
+ position: { type: ['integer', 'null'], minimum: 0 },
5238
5691
  hidden: { type: 'boolean' },
5239
5692
  selected: { type: 'boolean' },
5240
5693
  payable: { type: 'boolean' },
5241
- start_date: { type: 'string', anyOf: [{}, {}] },
5242
- end_date: { type: 'string', anyOf: [{}, {}] },
5694
+ start_date: { type: ['string', 'null'], anyOf: [{}, {}] },
5695
+ end_date: { type: ['string', 'null'], anyOf: [{}, {}] },
5243
5696
  quota_setting: { $ref: 'ReservationQuotaSettingInput' },
5244
5697
  images: { type: 'array', maxItems: 5, items: { $ref: 'ReservationItemImageInput' } }
5245
5698
  }
@@ -5349,10 +5802,40 @@ export const SCHEMAS = {
5349
5802
  delete_authorized: {},
5350
5803
  message_rules: {
5351
5804
  type: ['array', 'null'],
5352
- items: { anyOf: [{ $ref: 'RoutineGroupMessageRuleInput' }, { $ref: 'RoutineEmailMessageRuleInput' }] }
5805
+ items: {
5806
+ anyOf: [
5807
+ { $ref: 'RoutineGroupMessageRuleInput' },
5808
+ { $ref: 'RoutineEmailMessageRuleInput' },
5809
+ { $ref: 'RoutineSMSMessageRuleInput' },
5810
+ { $ref: 'RoutineSystemMessageRuleInput' },
5811
+ { $ref: 'RoutineWebhookMessageRuleInput' },
5812
+ { $ref: 'RoutineWebhookBodyRuleInput' },
5813
+ { $ref: 'RoutineWebhookEntryRuleInput' }
5814
+ ]
5815
+ }
5353
5816
  }
5354
5817
  }
5355
5818
  },
5819
+ RoutineSMSMessageRuleInput: {
5820
+ type: 'object',
5821
+ anyOf: [{ required: ['approach'] }, { required: ['id'] }],
5822
+ properties: {
5823
+ approach: { type: ['string', 'null'], enum: ['sms', null] },
5824
+ id: { type: 'string' },
5825
+ sms_template_id: { type: ['string', 'null'] },
5826
+ recipients: { type: 'array', maxItems: 50, uniqueItems: true, items: { type: 'string' } },
5827
+ recipient_fields: {
5828
+ type: 'array',
5829
+ items: {
5830
+ type: 'object',
5831
+ additionalProperties: false,
5832
+ required: ['form_token', 'field_code'],
5833
+ properties: { form_token: { type: 'string' }, field_code: { type: 'string' } }
5834
+ }
5835
+ },
5836
+ variables: { type: 'object', additionalProperties: { type: 'string' } }
5837
+ }
5838
+ },
5356
5839
  RoutineScheduleInput: {
5357
5840
  type: 'object',
5358
5841
  properties: {
@@ -5374,6 +5857,52 @@ export const SCHEMAS = {
5374
5857
  scope_attr: { type: 'string' }
5375
5858
  }
5376
5859
  },
5860
+ RoutineSystemMessageRuleInput: {
5861
+ type: 'object',
5862
+ anyOf: [{ required: ['approach'] }, { required: ['id'] }],
5863
+ properties: {
5864
+ approach: { type: 'string', enum: ['system_message'] },
5865
+ id: { type: 'string' },
5866
+ title: { type: 'string', maxLength: 200 },
5867
+ content: { type: ['string', 'null'], maxLength: 500 }
5868
+ }
5869
+ },
5870
+ RoutineWebhookBodyRuleInput: {
5871
+ type: 'object',
5872
+ anyOf: [{ required: ['approach', 'body'] }, { required: ['id'] }],
5873
+ properties: {
5874
+ approach: { type: 'string', enum: ['webhook'] },
5875
+ id: { type: 'string' },
5876
+ url: { type: 'string' },
5877
+ channel_id: { type: 'string' },
5878
+ body: { type: 'string', maxLength: 20000 }
5879
+ }
5880
+ },
5881
+ RoutineWebhookEntryRuleInput: {
5882
+ type: 'object',
5883
+ anyOf: [{ required: ['approach', 'form_token'] }, { required: ['id'] }],
5884
+ properties: {
5885
+ approach: { type: 'string', enum: ['webhook'] },
5886
+ id: { type: 'string' },
5887
+ url: { type: 'string' },
5888
+ channel_id: { type: 'string' },
5889
+ form_token: { type: 'string' },
5890
+ selection: { type: 'string', maxLength: 2000 },
5891
+ once_per_entry: { type: 'boolean' }
5892
+ }
5893
+ },
5894
+ RoutineWebhookMessageRuleInput: {
5895
+ type: 'object',
5896
+ anyOf: [{ required: ['approach'] }, { required: ['id'] }],
5897
+ properties: {
5898
+ approach: { type: 'string', enum: ['webhook'] },
5899
+ id: { type: 'string' },
5900
+ url: { type: 'string' },
5901
+ channel_id: { type: 'string' },
5902
+ title: { type: 'string', maxLength: 200 },
5903
+ content: { type: 'string' }
5904
+ }
5905
+ },
5377
5906
  SMSMessageChannelInput: {
5378
5907
  type: 'object',
5379
5908
  additionalProperties: false,
@@ -5543,7 +6072,9 @@ export const SCHEMAS = {
5543
6072
  'end'
5544
6073
  ]
5545
6074
  },
5546
- value: {}
6075
+ value: {},
6076
+ group_index: { type: 'integer' },
6077
+ groupIndex: { type: 'integer' }
5547
6078
  }
5548
6079
  },
5549
6080
  SectionBreakInput: {
@@ -5552,9 +6083,9 @@ export const SCHEMAS = {
5552
6083
  required: ['type', 'label'],
5553
6084
  properties: {
5554
6085
  type: { const: 'SectionBreak' },
5555
- label: { type: 'string' },
6086
+ label: { type: ['string', 'null'] },
5556
6087
  cid: { type: 'string' },
5557
- notes: { type: 'string' },
6088
+ notes: { type: ['string', 'null'] },
5558
6089
  private: { type: 'boolean' },
5559
6090
  required: { type: 'boolean' },
5560
6091
  position: { type: 'integer', minimum: 0 },
@@ -5562,17 +6093,16 @@ export const SCHEMAS = {
5562
6093
  show_part_description: { type: 'boolean' }
5563
6094
  }
5564
6095
  },
5565
- SequenceFieldInput: {
6096
+ SequenceFieldColumnInput: {
5566
6097
  type: 'object',
5567
6098
  additionalProperties: false,
5568
6099
  required: ['type', 'label'],
5569
6100
  properties: {
5570
6101
  type: { const: 'SequenceField' },
5571
- label: { type: 'string' },
6102
+ label: { type: ['string', 'null'] },
5572
6103
  cid: { type: 'string' },
5573
- notes: { type: 'string' },
6104
+ notes: { type: ['string', 'null'] },
5574
6105
  private: { type: 'boolean' },
5575
- required: { type: 'boolean' },
5576
6106
  position: { type: 'integer', minimum: 0 },
5577
6107
  segments: { type: 'array', minItems: 1, items: { $ref: 'SequenceSegmentInput' } }
5578
6108
  }
@@ -5583,18 +6113,29 @@ export const SCHEMAS = {
5583
6113
  required: ['kind'],
5584
6114
  properties: {
5585
6115
  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 }
6116
+ value: { type: ['string', 'null'], minLength: 1, maxLength: 6 },
6117
+ api_code: { type: ['string', 'null'] },
6118
+ cid: { type: ['string', 'null'] },
6119
+ digits: { type: ['integer', 'null'], minimum: 1, maximum: 12 }
5590
6120
  },
5591
6121
  allOf: [
5592
- { if: { properties: { kind: { const: 'fixed_text' } } }, then: { required: ['value'] } },
6122
+ {
6123
+ if: { properties: { kind: { const: 'fixed_text' } } },
6124
+ then: { required: ['value'], properties: { value: { type: 'string' } } }
6125
+ },
5593
6126
  {
5594
6127
  if: { properties: { kind: { const: 'field_value' } } },
5595
- then: { anyOf: [{ required: ['api_code'] }, { required: ['cid'] }] }
6128
+ then: {
6129
+ anyOf: [
6130
+ { required: ['api_code'], properties: { api_code: { type: 'string' } } },
6131
+ { required: ['cid'], properties: { cid: { type: 'string' } } }
6132
+ ]
6133
+ }
5596
6134
  },
5597
- { if: { properties: { kind: { const: 'sequence_number' } } }, then: { required: ['digits'] } }
6135
+ {
6136
+ if: { properties: { kind: { const: 'sequence_number' } } },
6137
+ then: { required: ['digits'], properties: { digits: { type: 'integer' } } }
6138
+ }
5598
6139
  ]
5599
6140
  },
5600
6141
  ShortAnswerInput: {
@@ -5603,15 +6144,15 @@ export const SCHEMAS = {
5603
6144
  required: ['type', 'label', 'answers'],
5604
6145
  properties: {
5605
6146
  type: { const: 'ShortAnswer' },
5606
- label: { type: 'string' },
6147
+ label: { type: ['string', 'null'] },
5607
6148
  cid: { type: 'string' },
5608
- notes: { type: 'string' },
6149
+ notes: { type: ['string', 'null'] },
5609
6150
  private: { type: 'boolean' },
5610
6151
  required: { type: 'boolean' },
5611
6152
  position: { type: 'integer', minimum: 0 },
5612
6153
  unique: { type: 'boolean' },
5613
- predefined_value: { type: 'string' },
5614
- placeholder: { type: 'string' },
6154
+ predefined_value: { type: ['string', 'null'] },
6155
+ placeholder: { type: ['string', 'null'] },
5615
6156
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
5616
6157
  start_new_row: { type: 'boolean' },
5617
6158
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
@@ -5636,16 +6177,16 @@ export const SCHEMAS = {
5636
6177
  required: ['type', 'label', 'choices', 'answers'],
5637
6178
  properties: {
5638
6179
  type: { const: 'SingleSelect' },
5639
- label: { type: 'string' },
6180
+ label: { type: ['string', 'null'] },
5640
6181
  cid: { type: 'string' },
5641
- notes: { type: 'string' },
6182
+ notes: { type: ['string', 'null'] },
5642
6183
  private: { type: 'boolean' },
5643
6184
  required: { type: 'boolean' },
5644
6185
  position: { type: 'integer', minimum: 0 },
5645
6186
  other_choice_required: { type: 'boolean' },
5646
6187
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
5647
6188
  calculable: { type: 'boolean' },
5648
- choices_layout: { type: 'string' },
6189
+ choices_layout: { type: ['string', 'null'] },
5649
6190
  random_choices: { type: 'boolean' },
5650
6191
  hide_choice_when_quota_empty: { type: 'boolean' },
5651
6192
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
@@ -5676,9 +6217,9 @@ export const SCHEMAS = {
5676
6217
  required: ['type', 'label'],
5677
6218
  properties: {
5678
6219
  type: { const: 'SortField' },
5679
- label: { type: 'string' },
6220
+ label: { type: ['string', 'null'] },
5680
6221
  cid: { type: 'string' },
5681
- notes: { type: 'string' },
6222
+ notes: { type: ['string', 'null'] },
5682
6223
  private: { type: 'boolean' },
5683
6224
  required: { type: 'boolean' },
5684
6225
  position: { type: 'integer', minimum: 0 },
@@ -5727,40 +6268,40 @@ export const SCHEMAS = {
5727
6268
  'SequenceField'
5728
6269
  ]
5729
6270
  },
5730
- label: { type: 'string' }
6271
+ label: { type: ['string', 'null'] }
5731
6272
  },
5732
6273
  discriminator: {
5733
6274
  propertyName: 'type',
5734
6275
  mapping: {
5735
- TextArea: 'TextAreaInput',
5736
- RadioButton: 'RadioButtonInput',
5737
- CheckBox: 'CheckBoxInput',
5738
- BooleanField: 'BooleanFieldInput',
5739
- MobileField: 'MobileFieldInput',
5740
- NumberField: 'NumberFieldInput',
5741
- DateTimeField: 'DateTimeFieldInput',
5742
- EmailField: 'EmailFieldInput',
5743
- LinkField: 'LinkFieldInput',
5744
- AttachmentField: 'AttachmentFieldInput',
5745
- FormulaField: 'FormulaFieldInput',
5746
- RelationField: 'RelationFieldInput',
5747
- SequenceField: 'SequenceFieldInput'
6276
+ TextArea: 'TextAreaColumnInput',
6277
+ RadioButton: 'RadioButtonColumnInput',
6278
+ CheckBox: 'CheckBoxColumnInput',
6279
+ BooleanField: 'BooleanFieldColumnInput',
6280
+ MobileField: 'MobileFieldColumnInput',
6281
+ NumberField: 'NumberFieldColumnInput',
6282
+ DateTimeField: 'DateTimeFieldColumnInput',
6283
+ EmailField: 'EmailFieldColumnInput',
6284
+ LinkField: 'LinkFieldColumnInput',
6285
+ AttachmentField: 'AttachmentFieldColumnInput',
6286
+ FormulaField: 'FormulaFieldColumnInput',
6287
+ RelationField: 'RelationFieldColumnInput',
6288
+ SequenceField: 'SequenceFieldColumnInput'
5748
6289
  }
5749
6290
  },
5750
6291
  oneOf: [
5751
- { $ref: 'TextAreaInput' },
5752
- { $ref: 'RadioButtonInput' },
5753
- { $ref: 'CheckBoxInput' },
5754
- { $ref: 'BooleanFieldInput' },
5755
- { $ref: 'MobileFieldInput' },
5756
- { $ref: 'NumberFieldInput' },
5757
- { $ref: 'DateTimeFieldInput' },
5758
- { $ref: 'EmailFieldInput' },
5759
- { $ref: 'LinkFieldInput' },
5760
- { $ref: 'AttachmentFieldInput' },
5761
- { $ref: 'FormulaFieldInput' },
5762
- { $ref: 'RelationFieldInput' },
5763
- { $ref: 'SequenceFieldInput' }
6292
+ { $ref: 'TextAreaColumnInput' },
6293
+ { $ref: 'RadioButtonColumnInput' },
6294
+ { $ref: 'CheckBoxColumnInput' },
6295
+ { $ref: 'BooleanFieldColumnInput' },
6296
+ { $ref: 'MobileFieldColumnInput' },
6297
+ { $ref: 'NumberFieldColumnInput' },
6298
+ { $ref: 'DateTimeFieldColumnInput' },
6299
+ { $ref: 'EmailFieldColumnInput' },
6300
+ { $ref: 'LinkFieldColumnInput' },
6301
+ { $ref: 'AttachmentFieldColumnInput' },
6302
+ { $ref: 'FormulaFieldColumnInput' },
6303
+ { $ref: 'RelationFieldColumnInput' },
6304
+ { $ref: 'SequenceFieldColumnInput' }
5764
6305
  ]
5765
6306
  },
5766
6307
  TableCreateInput: {
@@ -5797,9 +6338,9 @@ export const SCHEMAS = {
5797
6338
  required: ['type', 'label'],
5798
6339
  properties: {
5799
6340
  type: { const: 'TableField' },
5800
- label: { type: 'string' },
6341
+ label: { type: ['string', 'null'] },
5801
6342
  cid: { type: 'string' },
5802
- notes: { type: 'string' },
6343
+ notes: { type: ['string', 'null'] },
5803
6344
  private: { type: 'boolean' },
5804
6345
  required: { type: 'boolean' },
5805
6346
  position: { type: 'integer', minimum: 0 },
@@ -5813,15 +6354,15 @@ export const SCHEMAS = {
5813
6354
  required: ['type', 'label'],
5814
6355
  properties: {
5815
6356
  type: { const: 'TelephoneField' },
5816
- label: { type: 'string' },
6357
+ label: { type: ['string', 'null'] },
5817
6358
  cid: { type: 'string' },
5818
- notes: { type: 'string' },
6359
+ notes: { type: ['string', 'null'] },
5819
6360
  private: { type: 'boolean' },
5820
6361
  required: { type: 'boolean' },
5821
6362
  position: { type: 'integer', minimum: 0 },
5822
6363
  unique: { type: 'boolean' },
5823
- predefined_value: { type: 'string' },
5824
- placeholder: { type: 'string' },
6364
+ predefined_value: { type: ['string', 'null'] },
6365
+ placeholder: { type: ['string', 'null'] },
5825
6366
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
5826
6367
  start_new_row: { type: 'boolean' }
5827
6368
  }
@@ -5844,21 +6385,38 @@ export const SCHEMAS = {
5844
6385
  confirm_form_app_trial: { type: 'boolean' }
5845
6386
  }
5846
6387
  },
6388
+ TextAreaColumnInput: {
6389
+ type: 'object',
6390
+ additionalProperties: false,
6391
+ required: ['type', 'label'],
6392
+ properties: {
6393
+ type: { const: 'TextArea' },
6394
+ label: { type: ['string', 'null'] },
6395
+ cid: { type: 'string' },
6396
+ notes: { type: ['string', 'null'] },
6397
+ private: { type: 'boolean' },
6398
+ position: { type: 'integer', minimum: 0 },
6399
+ predefined_value: { type: ['string', 'null'] },
6400
+ placeholder: { type: ['string', 'null'] },
6401
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
6402
+ start_new_row: { type: 'boolean' }
6403
+ }
6404
+ },
5847
6405
  TextAreaInput: {
5848
6406
  type: 'object',
5849
6407
  additionalProperties: false,
5850
6408
  required: ['type', 'label'],
5851
6409
  properties: {
5852
6410
  type: { const: 'TextArea' },
5853
- label: { type: 'string' },
6411
+ label: { type: ['string', 'null'] },
5854
6412
  cid: { type: 'string' },
5855
- notes: { type: 'string' },
6413
+ notes: { type: ['string', 'null'] },
5856
6414
  private: { type: 'boolean' },
5857
6415
  required: { type: 'boolean' },
5858
6416
  position: { type: 'integer', minimum: 0 },
5859
6417
  unique: { type: 'boolean' },
5860
- predefined_value: { type: 'string' },
5861
- placeholder: { type: 'string' },
6418
+ predefined_value: { type: ['string', 'null'] },
6419
+ placeholder: { type: ['string', 'null'] },
5862
6420
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
5863
6421
  start_new_row: { type: 'boolean' }
5864
6422
  }
@@ -5869,15 +6427,19 @@ export const SCHEMAS = {
5869
6427
  required: ['type', 'label'],
5870
6428
  properties: {
5871
6429
  type: { const: 'TextField' },
5872
- label: { type: 'string' },
6430
+ label: { type: ['string', 'null'] },
5873
6431
  cid: { type: 'string' },
5874
- notes: { type: 'string' },
6432
+ notes: { type: ['string', 'null'] },
5875
6433
  private: { type: 'boolean' },
5876
6434
  required: { type: 'boolean' },
5877
6435
  position: { type: 'integer', minimum: 0 },
5878
6436
  unique: { type: 'boolean' },
5879
- predefined_value: { type: 'string' },
5880
- placeholder: { type: 'string' },
6437
+ predefined_value: { type: ['string', 'null'] },
6438
+ placeholder: { type: ['string', 'null'] },
6439
+ scannable: { type: 'boolean' },
6440
+ access_control_list_limit: { type: 'boolean' },
6441
+ access_control_type: { type: ['string', 'null'], enum: ['white', 'black', null] },
6442
+ acl_values: { type: 'array', maxItems: 5000, items: { type: 'string' } },
5881
6443
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
5882
6444
  start_new_row: { type: 'boolean' }
5883
6445
  }
@@ -5953,14 +6515,14 @@ export const SCHEMAS = {
5953
6515
  required: ['type', 'label'],
5954
6516
  properties: {
5955
6517
  type: { const: 'TimeField' },
5956
- label: { type: 'string' },
6518
+ label: { type: ['string', 'null'] },
5957
6519
  cid: { type: 'string' },
5958
- notes: { type: 'string' },
6520
+ notes: { type: ['string', 'null'] },
5959
6521
  private: { type: 'boolean' },
5960
6522
  required: { type: 'boolean' },
5961
6523
  position: { type: 'integer', minimum: 0 },
5962
6524
  predefined_value: {
5963
- type: 'object',
6525
+ type: ['object', 'null'],
5964
6526
  properties: { hour: { type: 'integer' }, minute: { type: 'integer' }, second: { type: 'integer' } }
5965
6527
  },
5966
6528
  include_second: { type: 'boolean' },
@@ -5983,16 +6545,16 @@ export const SCHEMAS = {
5983
6545
  required: ['type', 'label', 'choices', 'answers'],
5984
6546
  properties: {
5985
6547
  type: { const: 'TrueOrFalse' },
5986
- label: { type: 'string' },
6548
+ label: { type: ['string', 'null'] },
5987
6549
  cid: { type: 'string' },
5988
- notes: { type: 'string' },
6550
+ notes: { type: ['string', 'null'] },
5989
6551
  private: { type: 'boolean' },
5990
6552
  required: { type: 'boolean' },
5991
6553
  position: { type: 'integer', minimum: 0 },
5992
6554
  other_choice_required: { type: 'boolean' },
5993
6555
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
5994
6556
  calculable: { type: 'boolean' },
5995
- choices_layout: { type: 'string' },
6557
+ choices_layout: { type: ['string', 'null'] },
5996
6558
  random_choices: { type: 'boolean' },
5997
6559
  hide_choice_when_quota_empty: { type: 'boolean' },
5998
6560
  grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
@@ -6198,14 +6760,14 @@ export const SCHEMAS = {
6198
6760
  required: ['type', 'label'],
6199
6761
  properties: {
6200
6762
  type: { const: 'WidgetButton' },
6201
- label: { type: 'string' },
6763
+ label: { type: ['string', 'null'] },
6202
6764
  cid: { type: 'string' },
6203
- notes: { type: 'string' },
6765
+ notes: { type: ['string', 'null'] },
6204
6766
  private: { type: 'boolean' },
6205
6767
  required: { type: 'boolean' },
6206
6768
  position: { type: 'integer', minimum: 0 },
6207
6769
  buttons: { type: 'array', minItems: 1, items: { $ref: 'WidgetButtonItemInput' } },
6208
- buttons_number: { type: 'integer', minimum: 1 },
6770
+ buttons_number: { type: ['integer', 'null'], minimum: 1 },
6209
6771
  fixed_to_bottom: { type: 'boolean' }
6210
6772
  }
6211
6773
  },
@@ -6215,10 +6777,10 @@ export const SCHEMAS = {
6215
6777
  required: ['text'],
6216
6778
  properties: {
6217
6779
  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' }
6780
+ position: { type: ['integer', 'null'], minimum: 0 },
6781
+ link_type: { type: ['string', 'null'], enum: ['normal', 'miniapp', 'phone', 'qrcode', null] },
6782
+ link_attrs: { type: ['object', 'null'] },
6783
+ url: { type: ['string', 'null'] }
6222
6784
  }
6223
6785
  },
6224
6786
  WidgetContactInput: {
@@ -6227,21 +6789,21 @@ export const SCHEMAS = {
6227
6789
  required: ['type', 'label'],
6228
6790
  properties: {
6229
6791
  type: { const: 'WidgetContact' },
6230
- label: { type: 'string' },
6792
+ label: { type: ['string', 'null'] },
6231
6793
  cid: { type: 'string' },
6232
- notes: { type: 'string' },
6794
+ notes: { type: ['string', 'null'] },
6233
6795
  private: { type: 'boolean' },
6234
6796
  required: { type: 'boolean' },
6235
6797
  position: { type: 'integer', minimum: 0 },
6236
6798
  widget_images: { type: 'array', items: { $ref: 'WidgetImageInput' } },
6237
- widget_max_images_number: { type: 'integer', minimum: 1 },
6799
+ widget_max_images_number: { type: ['integer', 'null'], minimum: 0 },
6238
6800
  phones: {
6239
6801
  type: 'array',
6240
6802
  items: {
6241
6803
  type: 'object',
6242
6804
  required: ['phone'],
6243
6805
  additionalProperties: false,
6244
- properties: { phone: { type: 'string' } }
6806
+ properties: { phone: { type: 'string' }, notes: { type: ['string', 'null'] } }
6245
6807
  }
6246
6808
  }
6247
6809
  }
@@ -6250,7 +6812,11 @@ export const SCHEMAS = {
6250
6812
  type: 'object',
6251
6813
  additionalProperties: false,
6252
6814
  anyOf: [{ required: ['image_url'] }, { required: ['image_base64'] }, { required: ['attachment_id'] }],
6253
- properties: { image_url: { type: 'string' }, image_base64: { type: 'string' }, attachment_id: { type: 'string' } }
6815
+ properties: {
6816
+ image_url: { type: ['string', 'null'] },
6817
+ image_base64: { type: ['string', 'null'] },
6818
+ attachment_id: { type: ['string', 'null'] }
6819
+ }
6254
6820
  },
6255
6821
  WidgetMapInput: {
6256
6822
  type: 'object',
@@ -6258,16 +6824,16 @@ export const SCHEMAS = {
6258
6824
  required: ['type', 'label'],
6259
6825
  properties: {
6260
6826
  type: { const: 'WidgetMap' },
6261
- label: { type: 'string' },
6827
+ label: { type: ['string', 'null'] },
6262
6828
  cid: { type: 'string' },
6263
- notes: { type: 'string' },
6829
+ notes: { type: ['string', 'null'] },
6264
6830
  private: { type: 'boolean' },
6265
6831
  required: { type: 'boolean' },
6266
6832
  position: { type: 'integer', minimum: 0 },
6267
- nav_address: { type: 'string' },
6268
- longitude: { type: 'number' },
6269
- latitude: { type: 'number' },
6270
- value: { type: 'string' },
6833
+ nav_address: { type: ['string', 'null'] },
6834
+ longitude: { type: ['number', 'null'] },
6835
+ latitude: { type: ['number', 'null'] },
6836
+ value: { type: ['string', 'null'] },
6271
6837
  localizable_on_mobile: { type: 'boolean' }
6272
6838
  }
6273
6839
  },
@@ -6277,16 +6843,16 @@ export const SCHEMAS = {
6277
6843
  required: ['type', 'label'],
6278
6844
  properties: {
6279
6845
  type: { const: 'WidgetMarquee' },
6280
- label: { type: 'string' },
6846
+ label: { type: ['string', 'null'] },
6281
6847
  cid: { type: 'string' },
6282
- notes: { type: 'string' },
6848
+ notes: { type: ['string', 'null'] },
6283
6849
  private: { type: 'boolean' },
6284
6850
  required: { type: 'boolean' },
6285
6851
  position: { type: 'integer', minimum: 0 },
6286
- lines: { type: 'integer', minimum: 1 },
6287
- entries_init_number: { type: 'integer', minimum: 0 },
6852
+ lines: { type: ['integer', 'null'], minimum: 1 },
6853
+ entries_init_number: { type: ['integer', 'null'], minimum: 0 },
6288
6854
  entries_number_visible: { type: 'boolean' },
6289
- marquee_data_type: { type: 'string', enum: ['fake', 'real'] }
6855
+ marquee_data_type: { type: ['string', 'null'], enum: ['fake', 'real', null] }
6290
6856
  }
6291
6857
  },
6292
6858
  WxworkMessageChannelInput: {