@jinshuju/cli 0.22.0 → 0.24.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-05';
6
+ export const SPEC_DATE = '2026-11-10';
7
7
  export const OPERATIONS = {
8
8
  aggregateEntries: {
9
9
  method: 'GET',
@@ -682,6 +682,14 @@ export const OPERATIONS = {
682
682
  { name: 'view_token', in: 'query', schema: { type: 'string' } }
683
683
  ]
684
684
  },
685
+ exportRemainingVouchers: {
686
+ method: 'POST',
687
+ path: '/forms/{form_token}/wheel_fortune/prizes/{prize_id}/remaining_vouchers',
688
+ parameters: [
689
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
690
+ { name: 'prize_id', in: 'path', required: true, schema: { type: 'string' } }
691
+ ]
692
+ },
685
693
  getBillingAccount: { method: 'GET', path: '/billing_account', parameters: [] },
686
694
  getCheckinCampaign: {
687
695
  method: 'GET',
@@ -715,6 +723,15 @@ export const OPERATIONS = {
715
723
  { name: 'id', in: 'path', required: true, schema: { type: 'string' } }
716
724
  ]
717
725
  },
726
+ getEntryStateFlow: {
727
+ method: 'GET',
728
+ path: '/forms/{form_token}/entries/{serial_number}/state_flows/{flow}',
729
+ parameters: [
730
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
731
+ { name: 'serial_number', in: 'path', required: true, schema: { type: 'integer' } },
732
+ { name: 'flow', in: 'path', required: true, schema: { $ref: 'StateFlowName' } }
733
+ ]
734
+ },
718
735
  getEntryStats: {
719
736
  method: 'GET',
720
737
  path: '/entries/stats',
@@ -819,6 +836,11 @@ export const OPERATIONS = {
819
836
  path: '/artifacts/{artifact_id}/published_artifact',
820
837
  parameters: [{ name: 'artifact_id', in: 'path', required: true, schema: { type: 'string' } }]
821
838
  },
839
+ getQuickpaySetting: {
840
+ method: 'GET',
841
+ path: '/forms/{form_token}/quickpay_setting',
842
+ parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
843
+ },
822
844
  getRoutine: {
823
845
  method: 'GET',
824
846
  path: '/routines/{id}',
@@ -859,6 +881,11 @@ export const OPERATIONS = {
859
881
  ]
860
882
  },
861
883
  getTradeMerchant: { method: 'GET', path: '/trade/merchant', parameters: [] },
884
+ getWheelFortune: {
885
+ method: 'GET',
886
+ path: '/forms/{form_token}/wheel_fortune',
887
+ parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
888
+ },
862
889
  listArtifacts: {
863
890
  method: 'GET',
864
891
  path: '/artifacts',
@@ -1463,7 +1490,9 @@ export const OPERATIONS = {
1463
1490
  'opensearch_header',
1464
1491
  'description',
1465
1492
  'goods_item',
1466
- 'contact_widget'
1493
+ 'contact_widget',
1494
+ 'reservation_item',
1495
+ 'wheel_fortune_prize'
1467
1496
  ]
1468
1497
  }
1469
1498
  },
@@ -1472,6 +1501,11 @@ export const OPERATIONS = {
1472
1501
  }
1473
1502
  }
1474
1503
  },
1504
+ prepareGoodsDeliverableAttachmentUpload: {
1505
+ method: 'POST',
1506
+ path: '/forms/{form_token}/goods_deliverable_attachment_upload_urls',
1507
+ parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
1508
+ },
1475
1509
  prepareImportFileUpload: {
1476
1510
  method: 'POST',
1477
1511
  path: '/forms/{form_token}/import_file_upload_urls',
@@ -1694,6 +1728,26 @@ export const OPERATIONS = {
1694
1728
  }
1695
1729
  }
1696
1730
  },
1731
+ updateEntryStateFlow: {
1732
+ method: 'PATCH',
1733
+ path: '/forms/{form_token}/entries/{serial_number}/state_flows/{flow}',
1734
+ parameters: [
1735
+ { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
1736
+ { name: 'serial_number', in: 'path', required: true, schema: { type: 'integer' } },
1737
+ { name: 'flow', in: 'path', required: true, schema: { $ref: 'StateFlowName' } }
1738
+ ],
1739
+ body: {
1740
+ required: true,
1741
+ content: {
1742
+ 'application/json': {
1743
+ type: 'object',
1744
+ required: ['event'],
1745
+ properties: { event: { $ref: 'StateFlowEvent' }, target_id: { type: 'string' } },
1746
+ additionalProperties: false
1747
+ }
1748
+ }
1749
+ }
1750
+ },
1697
1751
  updateEntryViaPost: {
1698
1752
  method: 'POST',
1699
1753
  path: '/forms/{form_token}/entries/{serial_number}',
@@ -1796,6 +1850,12 @@ export const OPERATIONS = {
1796
1850
  parameters: [{ name: 'artifact_id', in: 'path', required: true, schema: { type: 'string' } }],
1797
1851
  body: { required: true, content: { 'application/json': { $ref: 'PublishedArtifactInput' } } }
1798
1852
  },
1853
+ updateQuickpaySetting: {
1854
+ method: 'PATCH',
1855
+ path: '/forms/{form_token}/quickpay_setting',
1856
+ parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
1857
+ body: { required: true, content: { 'application/json': { $ref: 'QuickpaySettingInput' } } }
1858
+ },
1799
1859
  updateRoutine: {
1800
1860
  method: 'PATCH',
1801
1861
  path: '/routines/{id}',
@@ -1876,6 +1936,12 @@ export const OPERATIONS = {
1876
1936
  ],
1877
1937
  body: { required: true, content: { 'application/json': { $ref: 'FormViewInput' } } }
1878
1938
  },
1939
+ updateWheelFortune: {
1940
+ method: 'PATCH',
1941
+ path: '/forms/{form_token}/wheel_fortune',
1942
+ parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
1943
+ body: { required: true, content: { 'application/json': { $ref: 'WheelFortuneInput' } } }
1944
+ },
1879
1945
  uploadEntryAttachment: {
1880
1946
  method: 'POST',
1881
1947
  path: '/forms/{form_token}/entry_attachments',
@@ -1921,7 +1987,9 @@ export const OPERATIONS = {
1921
1987
  'opensearch_header',
1922
1988
  'description',
1923
1989
  'goods_item',
1924
- 'contact_widget'
1990
+ 'contact_widget',
1991
+ 'reservation_item',
1992
+ 'wheel_fortune_prize'
1925
1993
  ]
1926
1994
  },
1927
1995
  file: { type: 'string' }
@@ -1931,6 +1999,22 @@ export const OPERATIONS = {
1931
1999
  }
1932
2000
  }
1933
2001
  },
2002
+ uploadGoodsDeliverableAttachment: {
2003
+ method: 'POST',
2004
+ path: '/forms/{form_token}/goods_deliverable_attachments',
2005
+ parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }],
2006
+ body: {
2007
+ required: true,
2008
+ content: {
2009
+ 'multipart/form-data': {
2010
+ type: 'object',
2011
+ required: ['file'],
2012
+ properties: { file: { type: 'string' } },
2013
+ additionalProperties: false
2014
+ }
2015
+ }
2016
+ }
2017
+ },
1934
2018
  uploadImportFile: {
1935
2019
  method: 'POST',
1936
2020
  path: '/forms/{form_token}/import_files',
@@ -1993,7 +2077,9 @@ export const SCHEMAS = {
1993
2077
  position: { type: 'integer', minimum: 0 },
1994
2078
  predefined_value: { type: 'object' },
1995
2079
  changeable: { type: 'object', additionalProperties: { type: 'boolean' } },
1996
- enable_auto_position: { type: 'boolean' }
2080
+ enable_auto_position: { type: 'boolean' },
2081
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 2, maximum: 3 },
2082
+ start_new_row: { type: 'boolean' }
1997
2083
  }
1998
2084
  },
1999
2085
  AggregateDimension: {
@@ -2032,6 +2118,18 @@ export const SCHEMAS = {
2032
2118
  required: ['value', 'score'],
2033
2119
  properties: { value: {}, score: { type: 'number' } }
2034
2120
  },
2121
+ AntiCheatingSettingInput: {
2122
+ type: 'object',
2123
+ properties: {
2124
+ enabled: { type: 'boolean' },
2125
+ copying_disabled: { type: 'boolean' },
2126
+ paste_disabled: { type: 'boolean' },
2127
+ switching_screen_disabled: { type: 'boolean' },
2128
+ switching_screen_limit_time: { type: 'integer', minimum: 0, maximum: 10000 },
2129
+ switching_screen_limit: { type: 'integer', minimum: 0, maximum: 10000 }
2130
+ },
2131
+ additionalProperties: false
2132
+ },
2035
2133
  AttachmentFieldInput: {
2036
2134
  type: 'object',
2037
2135
  additionalProperties: false,
@@ -2118,7 +2216,10 @@ export const SCHEMAS = {
2118
2216
  levels: { type: 'integer', minimum: 2 },
2119
2217
  choice_filterable: { type: 'boolean' },
2120
2218
  random_choices: { type: 'boolean' },
2121
- calculable: { type: 'boolean' }
2219
+ calculable: { type: 'boolean' },
2220
+ hide_choice_when_quota_empty: { type: 'boolean' },
2221
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
2222
+ start_new_row: { type: 'boolean' }
2122
2223
  }
2123
2224
  },
2124
2225
  CheckBoxInput: {
@@ -2139,7 +2240,10 @@ export const SCHEMAS = {
2139
2240
  choices_layout: { type: 'string' },
2140
2241
  random_choices: { type: 'boolean' },
2141
2242
  minimum_length: { type: 'integer', minimum: 0 },
2142
- maximum_length: { type: 'integer', minimum: 0 }
2243
+ maximum_length: { type: 'integer', minimum: 0 },
2244
+ hide_choice_when_quota_empty: { type: 'boolean' },
2245
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
2246
+ start_new_row: { type: 'boolean' }
2143
2247
  },
2144
2248
  allOf: [
2145
2249
  {
@@ -2297,7 +2401,9 @@ export const SCHEMAS = {
2297
2401
  required: { type: 'boolean' },
2298
2402
  position: { type: 'integer', minimum: 0 },
2299
2403
  predefined_value: { type: 'string' },
2300
- precision: { type: 'string', enum: ['month', 'day', 'minute', 'second'] }
2404
+ precision: { type: 'string', enum: ['month', 'day', 'minute', 'second'] },
2405
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
2406
+ start_new_row: { type: 'boolean' }
2301
2407
  }
2302
2408
  },
2303
2409
  DepartmentInput: {
@@ -2316,7 +2422,10 @@ export const SCHEMAS = {
2316
2422
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
2317
2423
  calculable: { type: 'boolean' },
2318
2424
  choices_layout: { type: 'string' },
2319
- random_choices: { type: 'boolean' }
2425
+ random_choices: { type: 'boolean' },
2426
+ hide_choice_when_quota_empty: { type: 'boolean' },
2427
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
2428
+ start_new_row: { type: 'boolean' }
2320
2429
  },
2321
2430
  allOf: [
2322
2431
  {
@@ -2372,6 +2481,7 @@ export const SCHEMAS = {
2372
2481
  scope_conditions: { type: 'array', items: { $ref: 'NotificationRuleScopeCondition' } },
2373
2482
  schedule_time_rule: { $ref: 'NotificationRuleScheduleTimeRule' },
2374
2483
  url: { type: 'string' },
2484
+ address_id: { type: 'string' },
2375
2485
  content: { type: 'string' },
2376
2486
  mentioned_mobile_list: { type: 'array', items: { type: 'string' } }
2377
2487
  },
@@ -2392,7 +2502,10 @@ export const SCHEMAS = {
2392
2502
  other_choice_required: { type: 'boolean' },
2393
2503
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
2394
2504
  calculable: { type: 'boolean' },
2395
- random_choices: { type: 'boolean' }
2505
+ random_choices: { type: 'boolean' },
2506
+ hide_choice_when_quota_empty: { type: 'boolean' },
2507
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
2508
+ start_new_row: { type: 'boolean' }
2396
2509
  },
2397
2510
  allOf: [
2398
2511
  {
@@ -2417,6 +2530,9 @@ export const SCHEMAS = {
2417
2530
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
2418
2531
  calculable: { type: 'boolean' },
2419
2532
  random_choices: { type: 'boolean' },
2533
+ hide_choice_when_quota_empty: { type: 'boolean' },
2534
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
2535
+ start_new_row: { type: 'boolean' },
2420
2536
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
2421
2537
  answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
2422
2538
  answer_explanation: { type: 'string' }
@@ -2464,7 +2580,9 @@ export const SCHEMAS = {
2464
2580
  required: { type: 'boolean' },
2465
2581
  position: { type: 'integer', minimum: 0 },
2466
2582
  unique: { type: 'boolean' },
2467
- placeholder: { type: 'string' }
2583
+ placeholder: { type: 'string' },
2584
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
2585
+ start_new_row: { type: 'boolean' }
2468
2586
  }
2469
2587
  },
2470
2588
  EmailMessageChannelInput: {
@@ -2774,7 +2892,8 @@ export const SCHEMAS = {
2774
2892
  }
2775
2893
  },
2776
2894
  additionalProperties: false
2777
- }
2895
+ },
2896
+ anti_cheating: { $ref: 'AntiCheatingSettingInput' }
2778
2897
  },
2779
2898
  additionalProperties: false
2780
2899
  },
@@ -2995,7 +3114,8 @@ export const SCHEMAS = {
2995
3114
  },
2996
3115
  { if: { properties: { mode: { const: 'from_all' } }, required: ['mode'] }, then: { required: ['count'] } }
2997
3116
  ]
2998
- }
3117
+ },
3118
+ anti_cheating: { $ref: 'AntiCheatingSettingInput' }
2999
3119
  },
3000
3120
  additionalProperties: false
3001
3121
  },
@@ -3239,7 +3359,7 @@ export const SCHEMAS = {
3239
3359
  },
3240
3360
  confirm_data_loss: { type: 'boolean' },
3241
3361
  label: { type: 'string' },
3242
- notes: { type: ['string', 'null'] },
3362
+ notes: { type: 'string' },
3243
3363
  private: { type: 'boolean' },
3244
3364
  required: { type: 'boolean' },
3245
3365
  unique: { type: 'boolean' },
@@ -3251,6 +3371,8 @@ export const SCHEMAS = {
3251
3371
  statements: { type: 'array', items: { $ref: 'StatementInput' } },
3252
3372
  goods_items: { type: 'array', items: { $ref: 'GoodsItemUpdateInput' } },
3253
3373
  reservation_items: { type: 'array', items: { $ref: 'ReservationItemInput' } },
3374
+ buttons: { type: 'array', minItems: 1, items: { $ref: 'WidgetButtonItemInput' } },
3375
+ segments: { type: 'array', minItems: 1, items: { $ref: 'SequenceSegmentInput' } },
3254
3376
  display_field_api_codes: { type: 'array', maxItems: 20, items: { type: 'string' } },
3255
3377
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
3256
3378
  answer_setting_mode: { type: 'string', enum: ['absolute', 'partial_absolute', 'relative'] },
@@ -3258,6 +3380,9 @@ export const SCHEMAS = {
3258
3380
  calculable: { type: 'boolean' },
3259
3381
  choices_layout: { type: 'string' },
3260
3382
  random_choices: { type: 'boolean' },
3383
+ hide_choice_when_quota_empty: { type: 'boolean' },
3384
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
3385
+ start_new_row: { type: 'boolean' },
3261
3386
  minimum_length: { type: 'integer', minimum: 0 },
3262
3387
  maximum_length: { type: 'integer', minimum: 0 },
3263
3388
  predefined_value: {},
@@ -3384,6 +3509,8 @@ export const SCHEMAS = {
3384
3509
  unique: { type: 'boolean' },
3385
3510
  predefined_value: { type: 'string' },
3386
3511
  placeholder: { type: 'string' },
3512
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
3513
+ start_new_row: { type: 'boolean' },
3387
3514
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
3388
3515
  answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
3389
3516
  answer_explanation: { type: 'string' }
@@ -3424,6 +3551,8 @@ export const SCHEMAS = {
3424
3551
  currency_symbol: { type: 'string' },
3425
3552
  currency_symbol_position: { type: 'string', enum: ['prefix', 'suffix'] },
3426
3553
  icon_type: { type: 'string', enum: ['none', 'number-2', 'dollar1', 'cny1'] },
3554
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
3555
+ start_new_row: { type: 'boolean' },
3427
3556
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
3428
3557
  answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
3429
3558
  answer_explanation: { type: 'string' }
@@ -3473,7 +3602,9 @@ export const SCHEMAS = {
3473
3602
  associated_field_api_codes: { type: 'array', minItems: 1, maxItems: 4, items: { type: 'string' } },
3474
3603
  privacy_safe: { type: 'boolean' },
3475
3604
  allow_reverse_association: { type: 'boolean' },
3476
- reverse_display_field_api_codes: { type: 'array', items: { type: 'string' } }
3605
+ reverse_display_field_api_codes: { type: 'array', items: { type: 'string' } },
3606
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
3607
+ start_new_row: { type: 'boolean' }
3477
3608
  }
3478
3609
  },
3479
3610
  FormCreateConstraints: {
@@ -3488,7 +3619,8 @@ export const SCHEMAS = {
3488
3619
  type: {
3489
3620
  not: { enum: ['PageBreak', 'MultipleBlanksField', 'WidgetContact', 'WidgetVideo', 'WidgetButton'] }
3490
3621
  }
3491
- }
3622
+ },
3623
+ not: { anyOf: [{ required: ['grids_to_occupy'] }, { required: ['start_new_row'] }] }
3492
3624
  }
3493
3625
  }
3494
3626
  }
@@ -3644,7 +3776,8 @@ export const SCHEMAS = {
3644
3776
  properties: { limit: { type: 'integer', maximum: 2147483647 } },
3645
3777
  additionalProperties: false
3646
3778
  },
3647
- fill_frequency: { $ref: 'FormFillFrequencyInput' }
3779
+ fill_frequency: { $ref: 'FormFillFrequencyInput' },
3780
+ wording: { $ref: 'FormWordingInput' }
3648
3781
  },
3649
3782
  additionalProperties: false
3650
3783
  },
@@ -3660,6 +3793,9 @@ export const SCHEMAS = {
3660
3793
  open_entry_action: { type: 'string', enum: ['hide', 'view', 'edit'] },
3661
3794
  open_entry_message: { type: 'string' },
3662
3795
  open_entry_cancel_reservation: { type: 'boolean' },
3796
+ show_entry_on_success: { type: 'boolean' },
3797
+ show_entry_on_success_button_text: { type: 'string' },
3798
+ edit_entry_on_success: { type: 'boolean' },
3663
3799
  show_serial_number_on_success: { type: 'boolean' },
3664
3800
  show_submit_again: { type: 'boolean' },
3665
3801
  hide_login_and_signup: { type: 'boolean' },
@@ -3719,6 +3855,7 @@ export const SCHEMAS = {
3719
3855
  alipay_account_id: { type: ['string', 'null'] },
3720
3856
  payment_expirable: { type: 'boolean' },
3721
3857
  payment_expiration_time: { type: 'integer', minimum: 3, maximum: 30 },
3858
+ wording: { $ref: 'FormWordingInput' },
3722
3859
  notification_rules: { type: 'array', items: { $ref: 'NotificationRuleInput' } },
3723
3860
  daily_repeat_close_rule: { $ref: 'DailyRepeatCloseRuleInput' }
3724
3861
  },
@@ -3821,6 +3958,25 @@ export const SCHEMAS = {
3821
3958
  properties: { code: { type: 'string' } },
3822
3959
  additionalProperties: false
3823
3960
  },
3961
+ FormWordingInput: {
3962
+ type: 'object',
3963
+ properties: {
3964
+ submit: { type: 'string', maxLength: 10 },
3965
+ start: { type: 'string', maxLength: 10 },
3966
+ submit_by_password: { type: 'string', maxLength: 36 },
3967
+ view_result_by_password: { type: 'string', maxLength: 36 },
3968
+ search_result_by_password: { type: 'string', maxLength: 36 },
3969
+ region_limited: { type: 'string', maxLength: 40 },
3970
+ already_closed: { type: 'string', maxLength: 40 },
3971
+ not_open: { type: 'string', maxLength: 40 },
3972
+ not_open_show_form: { type: 'string' },
3973
+ not_open_hide_form: { type: 'string' },
3974
+ fill_frequency_limited: { type: 'string', maxLength: 40 },
3975
+ fill_frequency_limited_show_form: { type: 'string' },
3976
+ fill_frequency_limited_hide_form: { type: 'string' }
3977
+ },
3978
+ additionalProperties: false
3979
+ },
3824
3980
  FormulaFieldInput: {
3825
3981
  type: 'object',
3826
3982
  additionalProperties: false,
@@ -3846,7 +4002,9 @@ export const SCHEMAS = {
3846
4002
  icon_type: {
3847
4003
  type: 'string',
3848
4004
  enum: ['none', 'formula-2', 'date-2', 'number-2', 'dollar1', 'cny1', 'sum', 'text', 'text2']
3849
- }
4005
+ },
4006
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4007
+ start_new_row: { type: 'boolean' }
3850
4008
  },
3851
4009
  allOf: [
3852
4010
  {
@@ -4072,7 +4230,10 @@ export const SCHEMAS = {
4072
4230
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
4073
4231
  calculable: { type: 'boolean' },
4074
4232
  choices_layout: { type: 'string' },
4075
- random_choices: { type: 'boolean' }
4233
+ random_choices: { type: 'boolean' },
4234
+ hide_choice_when_quota_empty: { type: 'boolean' },
4235
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4236
+ start_new_row: { type: 'boolean' }
4076
4237
  },
4077
4238
  allOf: [
4078
4239
  {
@@ -4093,7 +4254,9 @@ export const SCHEMAS = {
4093
4254
  private: { type: 'boolean' },
4094
4255
  required: { type: 'boolean' },
4095
4256
  position: { type: 'integer', minimum: 0 },
4096
- unique: { type: 'boolean' }
4257
+ unique: { type: 'boolean' },
4258
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4259
+ start_new_row: { type: 'boolean' }
4097
4260
  }
4098
4261
  },
4099
4262
  ImageCheckBoxInput: {
@@ -4113,7 +4276,8 @@ export const SCHEMAS = {
4113
4276
  choices_layout: { type: 'string' },
4114
4277
  random_choices: { type: 'boolean' },
4115
4278
  minimum_length: { type: 'integer', minimum: 0 },
4116
- maximum_length: { type: 'integer', minimum: 0 }
4279
+ maximum_length: { type: 'integer', minimum: 0 },
4280
+ hide_choice_when_quota_empty: { type: 'boolean' }
4117
4281
  },
4118
4282
  allOf: [
4119
4283
  {
@@ -4133,6 +4297,7 @@ export const SCHEMAS = {
4133
4297
  value: { type: 'string' },
4134
4298
  name: { type: 'string' },
4135
4299
  api_code: { type: 'string' },
4300
+ quota: { type: 'integer', minimum: 1 },
4136
4301
  operand_value: { type: 'number' },
4137
4302
  selected: { type: 'boolean' },
4138
4303
  image_url: { type: 'string' },
@@ -4158,6 +4323,7 @@ export const SCHEMAS = {
4158
4323
  random_choices: { type: 'boolean' },
4159
4324
  minimum_length: { type: 'integer', minimum: 0 },
4160
4325
  maximum_length: { type: 'integer', minimum: 0 },
4326
+ hide_choice_when_quota_empty: { type: 'boolean' },
4161
4327
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
4162
4328
  answer_setting_mode: { type: 'string', enum: ['absolute', 'partial_absolute', 'relative'] },
4163
4329
  answer_explanation: { type: 'string' }
@@ -4206,7 +4372,8 @@ export const SCHEMAS = {
4206
4372
  choices: { type: 'array', minItems: 1, items: { $ref: 'ImageChoiceInput' } },
4207
4373
  calculable: { type: 'boolean' },
4208
4374
  choices_layout: { type: 'string' },
4209
- random_choices: { type: 'boolean' }
4375
+ random_choices: { type: 'boolean' },
4376
+ hide_choice_when_quota_empty: { type: 'boolean' }
4210
4377
  },
4211
4378
  allOf: [
4212
4379
  {
@@ -4231,6 +4398,7 @@ export const SCHEMAS = {
4231
4398
  calculable: { type: 'boolean' },
4232
4399
  choices_layout: { type: 'string' },
4233
4400
  random_choices: { type: 'boolean' },
4401
+ hide_choice_when_quota_empty: { type: 'boolean' },
4234
4402
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
4235
4403
  answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
4236
4404
  answer_explanation: { type: 'string' }
@@ -4296,7 +4464,9 @@ export const SCHEMAS = {
4296
4464
  position: { type: 'integer', minimum: 0 },
4297
4465
  unique: { type: 'boolean' },
4298
4466
  predefined_value: { type: 'string' },
4299
- placeholder: { type: 'string' }
4467
+ placeholder: { type: 'string' },
4468
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4469
+ start_new_row: { type: 'boolean' }
4300
4470
  }
4301
4471
  },
4302
4472
  MatrixFieldInput: {
@@ -4454,7 +4624,9 @@ export const SCHEMAS = {
4454
4624
  unique: { type: 'boolean' },
4455
4625
  predefined_value: { type: 'string' },
4456
4626
  placeholder: { type: 'string' },
4457
- sms_verification: { type: 'boolean' }
4627
+ sms_verification: { type: 'boolean' },
4628
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4629
+ start_new_row: { type: 'boolean' }
4458
4630
  }
4459
4631
  },
4460
4632
  MultiSelectInput: {
@@ -4476,6 +4648,9 @@ export const SCHEMAS = {
4476
4648
  random_choices: { type: 'boolean' },
4477
4649
  minimum_length: { type: 'integer', minimum: 0 },
4478
4650
  maximum_length: { type: 'integer', minimum: 0 },
4651
+ hide_choice_when_quota_empty: { type: 'boolean' },
4652
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4653
+ start_new_row: { type: 'boolean' },
4479
4654
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
4480
4655
  answer_setting_mode: { type: 'string', enum: ['absolute', 'partial_absolute', 'relative'] },
4481
4656
  answer_explanation: { type: 'string' }
@@ -4521,7 +4696,9 @@ export const SCHEMAS = {
4521
4696
  private: { type: 'boolean' },
4522
4697
  required: { type: 'boolean' },
4523
4698
  position: { type: 'integer', minimum: 0 },
4524
- unique: { type: 'boolean' }
4699
+ unique: { type: 'boolean' },
4700
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4701
+ start_new_row: { type: 'boolean' }
4525
4702
  }
4526
4703
  },
4527
4704
  NotificationRuleInput: {
@@ -4655,7 +4832,9 @@ export const SCHEMAS = {
4655
4832
  thousands_separator: { type: 'boolean' },
4656
4833
  currency_symbol: { type: 'string' },
4657
4834
  currency_symbol_position: { type: 'string', enum: ['prefix', 'suffix'] },
4658
- icon_type: { type: 'string', enum: ['none', 'number-2', 'dollar1', 'cny1'] }
4835
+ icon_type: { type: 'string', enum: ['none', 'number-2', 'dollar1', 'cny1'] },
4836
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
4837
+ start_new_row: { type: 'boolean' }
4659
4838
  },
4660
4839
  allOf: [
4661
4840
  {
@@ -4781,6 +4960,28 @@ export const SCHEMAS = {
4781
4960
  version_id: { type: 'string' }
4782
4961
  }
4783
4962
  },
4963
+ QuickpayDeliverableInput: {
4964
+ type: 'object',
4965
+ additionalProperties: false,
4966
+ required: ['kind', 'goods_item_api_codes'],
4967
+ properties: {
4968
+ token: { type: 'string' },
4969
+ kind: { type: 'string', enum: ['link', 'file', 'image'] },
4970
+ name: { type: 'string', maxLength: 100 },
4971
+ url: { type: 'string', pattern: '^https?://' },
4972
+ attachment_id: { type: 'string' },
4973
+ goods_item_api_codes: { type: 'array', minItems: 1, items: { type: 'string' } }
4974
+ }
4975
+ },
4976
+ QuickpaySettingInput: {
4977
+ type: 'object',
4978
+ additionalProperties: false,
4979
+ properties: {
4980
+ mode: { type: 'string', enum: ['fixed', 'choice', 'custom'] },
4981
+ auto_delivery_enabled: { type: 'boolean' },
4982
+ deliverables: { type: 'array', maxItems: 10, items: { $ref: 'QuickpayDeliverableInput' } }
4983
+ }
4984
+ },
4784
4985
  RadioButtonInput: {
4785
4986
  type: 'object',
4786
4987
  additionalProperties: false,
@@ -4797,7 +4998,10 @@ export const SCHEMAS = {
4797
4998
  choices: { type: 'array', minItems: 1, items: { $ref: 'ChoiceInput' } },
4798
4999
  calculable: { type: 'boolean' },
4799
5000
  choices_layout: { type: 'string' },
4800
- random_choices: { type: 'boolean' }
5001
+ random_choices: { type: 'boolean' },
5002
+ hide_choice_when_quota_empty: { type: 'boolean' },
5003
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
5004
+ start_new_row: { type: 'boolean' }
4801
5005
  },
4802
5006
  allOf: [
4803
5007
  {
@@ -4875,7 +5079,6 @@ export const SCHEMAS = {
4875
5079
  type: { const: 'by_day_repeat_weekly' },
4876
5080
  available_days_of_week: {
4877
5081
  type: 'array',
4878
- minItems: 1,
4879
5082
  items: { type: 'string', enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'] }
4880
5083
  },
4881
5084
  show_left_quota: { type: 'boolean' },
@@ -4913,6 +5116,19 @@ export const SCHEMAS = {
4913
5116
  additionalProperties: false,
4914
5117
  properties: { start_time: { type: 'string' }, end_time: { type: 'string' } }
4915
5118
  }
5119
+ },
5120
+ special_time_range_quotas: {
5121
+ type: 'array',
5122
+ items: {
5123
+ type: 'object',
5124
+ additionalProperties: false,
5125
+ required: ['special_dates', 'quota'],
5126
+ properties: {
5127
+ special_dates: { type: 'array', minItems: 1, items: { type: 'string' } },
5128
+ quota: { type: 'integer', minimum: 0 },
5129
+ price: { type: 'number', minimum: 0 }
5130
+ }
5131
+ }
4916
5132
  }
4917
5133
  }
4918
5134
  },
@@ -4924,8 +5140,8 @@ export const SCHEMAS = {
4924
5140
  type: { const: 'by_time_range_repeat_daily' },
4925
5141
  available_days_of_week: {
4926
5142
  type: 'array',
4927
- minItems: 1,
4928
- items: { type: 'string', enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'] }
5143
+ items: { type: 'string', enum: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'] },
5144
+ minItems: 1
4929
5145
  },
4930
5146
  show_left_quota: { type: 'boolean' },
4931
5147
  start_time_offset: {
@@ -5004,6 +5220,12 @@ export const SCHEMAS = {
5004
5220
  use_daily_time_range: { type: 'boolean' }
5005
5221
  }
5006
5222
  },
5223
+ ReservationItemImageInput: {
5224
+ type: 'object',
5225
+ additionalProperties: false,
5226
+ anyOf: [{ required: ['image_url'] }, { required: ['image_base64'] }, { required: ['attachment_id'] }],
5227
+ properties: { image_url: { type: 'string' }, image_base64: { type: 'string' }, attachment_id: { type: 'string' } }
5228
+ },
5007
5229
  ReservationItemInput: {
5008
5230
  type: 'object',
5009
5231
  additionalProperties: false,
@@ -5016,23 +5238,25 @@ export const SCHEMAS = {
5016
5238
  hidden: { type: 'boolean' },
5017
5239
  selected: { type: 'boolean' },
5018
5240
  payable: { type: 'boolean' },
5019
- start_date: { type: 'string' },
5020
- end_date: { type: 'string' },
5021
- quota_setting: {
5022
- type: 'object',
5023
- required: ['type'],
5024
- properties: { type: { type: 'string', enum: ['by_day_repeat_weekly', 'by_time_range_repeat_daily'] } },
5025
- discriminator: {
5026
- propertyName: 'type',
5027
- mapping: {
5028
- by_day_repeat_weekly: 'ReservationByDayQuotaInput',
5029
- by_time_range_repeat_daily: 'ReservationByTimeRangeQuotaInput'
5030
- }
5031
- },
5032
- oneOf: [{ $ref: 'ReservationByDayQuotaInput' }, { $ref: 'ReservationByTimeRangeQuotaInput' }]
5033
- }
5241
+ start_date: { type: 'string', anyOf: [{}, {}] },
5242
+ end_date: { type: 'string', anyOf: [{}, {}] },
5243
+ quota_setting: { $ref: 'ReservationQuotaSettingInput' },
5244
+ images: { type: 'array', maxItems: 5, items: { $ref: 'ReservationItemImageInput' } }
5034
5245
  }
5035
5246
  },
5247
+ ReservationQuotaSettingInput: {
5248
+ type: 'object',
5249
+ required: ['type'],
5250
+ properties: { type: { type: 'string', enum: ['by_day_repeat_weekly', 'by_time_range_repeat_daily'] } },
5251
+ discriminator: {
5252
+ propertyName: 'type',
5253
+ mapping: {
5254
+ by_day_repeat_weekly: 'ReservationByDayQuotaInput',
5255
+ by_time_range_repeat_daily: 'ReservationByTimeRangeQuotaInput'
5256
+ }
5257
+ },
5258
+ oneOf: [{ $ref: 'ReservationByDayQuotaInput' }, { $ref: 'ReservationByTimeRangeQuotaInput' }]
5259
+ },
5036
5260
  RobotMessageInput: {
5037
5261
  type: 'object',
5038
5262
  additionalProperties: false,
@@ -5055,6 +5279,27 @@ export const SCHEMAS = {
5055
5279
  scope_conditions: { type: 'array', items: { $ref: 'RoutineScopeCondition' } }
5056
5280
  }
5057
5281
  },
5282
+ RoutineEmailMessageRuleInput: {
5283
+ type: 'object',
5284
+ anyOf: [{ required: ['approach'] }, { required: ['id'] }],
5285
+ properties: {
5286
+ approach: { type: 'string', enum: ['email'] },
5287
+ id: { type: 'string' },
5288
+ smtp_account_id: { type: ['string', 'null'] },
5289
+ recipients: { type: 'array', maxItems: 50, uniqueItems: true, items: { type: 'string' } },
5290
+ recipient_fields: {
5291
+ type: 'array',
5292
+ items: {
5293
+ type: 'object',
5294
+ additionalProperties: false,
5295
+ required: ['form_token', 'field_code'],
5296
+ properties: { form_token: { type: 'string' }, field_code: { type: 'string' } }
5297
+ }
5298
+ },
5299
+ subject: { type: 'string' },
5300
+ content: { type: 'string' }
5301
+ }
5302
+ },
5058
5303
  RoutineEventInput: {
5059
5304
  type: 'object',
5060
5305
  properties: {
@@ -5066,6 +5311,26 @@ export const SCHEMAS = {
5066
5311
  include_bulk: { type: 'boolean' }
5067
5312
  }
5068
5313
  },
5314
+ RoutineGroupMessageRuleInput: {
5315
+ type: 'object',
5316
+ properties: {
5317
+ approach: { type: 'string', enum: ['wxwork', 'ding_talk'] },
5318
+ id: { type: 'string' },
5319
+ address_id: { type: 'string' },
5320
+ channel_id: { type: 'string' },
5321
+ mentioned_mobile_list: { type: 'array', maxItems: 50, uniqueItems: true, items: { type: 'string' } },
5322
+ mentioned_fields: {
5323
+ type: 'array',
5324
+ items: {
5325
+ type: 'object',
5326
+ additionalProperties: false,
5327
+ required: ['form_token', 'field_code'],
5328
+ properties: { form_token: { type: 'string' }, field_code: { type: 'string' } }
5329
+ }
5330
+ },
5331
+ content: { type: 'string' }
5332
+ }
5333
+ },
5069
5334
  RoutineInput: {
5070
5335
  type: 'object',
5071
5336
  properties: {
@@ -5081,7 +5346,11 @@ export const SCHEMAS = {
5081
5346
  schedule: { oneOf: [{ $ref: 'RoutineScheduleInput' }, { type: 'null' }] },
5082
5347
  event: { oneOf: [{ $ref: 'RoutineEventInput' }, { type: 'null' }] },
5083
5348
  data_condition: { oneOf: [{ $ref: 'RoutineDataConditionInput' }, { type: 'null' }] },
5084
- delete_authorized: {}
5349
+ delete_authorized: {},
5350
+ message_rules: {
5351
+ type: ['array', 'null'],
5352
+ items: { anyOf: [{ $ref: 'RoutineGroupMessageRuleInput' }, { $ref: 'RoutineEmailMessageRuleInput' }] }
5353
+ }
5085
5354
  }
5086
5355
  },
5087
5356
  RoutineScheduleInput: {
@@ -5343,6 +5612,8 @@ export const SCHEMAS = {
5343
5612
  unique: { type: 'boolean' },
5344
5613
  predefined_value: { type: 'string' },
5345
5614
  placeholder: { type: 'string' },
5615
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
5616
+ start_new_row: { type: 'boolean' },
5346
5617
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
5347
5618
  answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
5348
5619
  answer_explanation: { type: 'string' }
@@ -5376,6 +5647,9 @@ export const SCHEMAS = {
5376
5647
  calculable: { type: 'boolean' },
5377
5648
  choices_layout: { type: 'string' },
5378
5649
  random_choices: { type: 'boolean' },
5650
+ hide_choice_when_quota_empty: { type: 'boolean' },
5651
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
5652
+ start_new_row: { type: 'boolean' },
5379
5653
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
5380
5654
  answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
5381
5655
  answer_explanation: { type: 'string' }
@@ -5417,6 +5691,14 @@ export const SCHEMAS = {
5417
5691
  required: ['api_code'],
5418
5692
  properties: { api_code: { type: 'string' }, order: { type: 'string', enum: ['asc', 'desc'] } }
5419
5693
  },
5694
+ StateFlowEvent: {
5695
+ type: 'string',
5696
+ enum: ['reda_confirm', 'reda_refuse', 'cancel_all', 'winner_confirm', 'delete_winner']
5697
+ },
5698
+ StateFlowName: {
5699
+ type: 'string',
5700
+ enum: ['red_envelope_audit_state', 'reservation_status', 'wheel_fortune_prize_audit_state']
5701
+ },
5420
5702
  StatementInput: {
5421
5703
  type: 'object',
5422
5704
  additionalProperties: false,
@@ -5539,7 +5821,9 @@ export const SCHEMAS = {
5539
5821
  position: { type: 'integer', minimum: 0 },
5540
5822
  unique: { type: 'boolean' },
5541
5823
  predefined_value: { type: 'string' },
5542
- placeholder: { type: 'string' }
5824
+ placeholder: { type: 'string' },
5825
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
5826
+ start_new_row: { type: 'boolean' }
5543
5827
  }
5544
5828
  },
5545
5829
  TemplateUsageInput: {
@@ -5574,7 +5858,9 @@ export const SCHEMAS = {
5574
5858
  position: { type: 'integer', minimum: 0 },
5575
5859
  unique: { type: 'boolean' },
5576
5860
  predefined_value: { type: 'string' },
5577
- placeholder: { type: 'string' }
5861
+ placeholder: { type: 'string' },
5862
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
5863
+ start_new_row: { type: 'boolean' }
5578
5864
  }
5579
5865
  },
5580
5866
  TextFieldInput: {
@@ -5591,7 +5877,9 @@ export const SCHEMAS = {
5591
5877
  position: { type: 'integer', minimum: 0 },
5592
5878
  unique: { type: 'boolean' },
5593
5879
  predefined_value: { type: 'string' },
5594
- placeholder: { type: 'string' }
5880
+ placeholder: { type: 'string' },
5881
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
5882
+ start_new_row: { type: 'boolean' }
5595
5883
  }
5596
5884
  },
5597
5885
  ThemeInput: {
@@ -5675,7 +5963,9 @@ export const SCHEMAS = {
5675
5963
  type: 'object',
5676
5964
  properties: { hour: { type: 'integer' }, minute: { type: 'integer' }, second: { type: 'integer' } }
5677
5965
  },
5678
- include_second: { type: 'boolean' }
5966
+ include_second: { type: 'boolean' },
5967
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
5968
+ start_new_row: { type: 'boolean' }
5679
5969
  }
5680
5970
  },
5681
5971
  TimeOfDay: {
@@ -5704,6 +5994,9 @@ export const SCHEMAS = {
5704
5994
  calculable: { type: 'boolean' },
5705
5995
  choices_layout: { type: 'string' },
5706
5996
  random_choices: { type: 'boolean' },
5997
+ hide_choice_when_quota_empty: { type: 'boolean' },
5998
+ grids_to_occupy: { type: ['integer', 'null'], minimum: 1, maximum: 3 },
5999
+ start_new_row: { type: 'boolean' },
5707
6000
  answers: { type: 'array', minItems: 1, items: { $ref: 'AnswerInput' } },
5708
6001
  answer_setting_mode: { type: 'string', enum: ['absolute', 'relative'] },
5709
6002
  answer_explanation: { type: 'string' }
@@ -5738,12 +6031,15 @@ export const SCHEMAS = {
5738
6031
  WebhookMessageInput: {
5739
6032
  type: 'object',
5740
6033
  additionalProperties: false,
5741
- required: ['type', 'channel_id', 'content'],
6034
+ required: ['type', 'channel_id'],
5742
6035
  properties: {
5743
6036
  type: { type: 'string', enum: ['webhook'] },
5744
6037
  channel_id: { type: 'string' },
5745
6038
  title: { type: 'string', maxLength: 200 },
5746
6039
  content: { type: 'string' },
6040
+ body: { type: 'string' },
6041
+ form_token: { type: 'string' },
6042
+ entries: { type: 'array', minItems: 1, maxItems: 50, uniqueItems: true, items: { type: 'integer' } },
5747
6043
  idempotency_key: { type: 'string', maxLength: 255 }
5748
6044
  }
5749
6045
  },
@@ -5773,6 +6069,129 @@ export const SCHEMAS = {
5773
6069
  },
5774
6070
  additionalProperties: false
5775
6071
  },
6072
+ WheelFortuneInput: {
6073
+ type: 'object',
6074
+ properties: {
6075
+ confirm_form_app_trial: { type: 'boolean' },
6076
+ confirm_ending_conflicts: { type: 'boolean' },
6077
+ enabled: { type: 'boolean' },
6078
+ prizes: {
6079
+ type: 'array',
6080
+ minItems: 1,
6081
+ maxItems: 7,
6082
+ items: {
6083
+ type: 'object',
6084
+ required: ['title', 'prize_name', 'probability'],
6085
+ properties: {
6086
+ id: { type: 'string' },
6087
+ title: { type: 'string', pattern: '\\S', maxLength: 10 },
6088
+ prize_name: { type: 'string', pattern: '\\S', maxLength: 20 },
6089
+ prize_type: { type: 'string', enum: ['gift', 'voucher'] },
6090
+ prize_amount: { type: 'integer', minimum: 0, maximum: 100000 },
6091
+ probability: { type: 'number', minimum: 0, maximum: 100 },
6092
+ prize_image_id: { type: 'string' },
6093
+ vouchers: {
6094
+ type: 'array',
6095
+ minItems: 1,
6096
+ maxItems: 100000,
6097
+ items: {
6098
+ type: 'object',
6099
+ required: ['code'],
6100
+ properties: { code: { type: 'string', pattern: '\\S' }, password: { type: 'string', pattern: '\\S' } },
6101
+ additionalProperties: false
6102
+ }
6103
+ }
6104
+ },
6105
+ additionalProperties: false,
6106
+ allOf: [
6107
+ {
6108
+ if: { properties: { prize_type: { const: 'voucher' } }, required: ['prize_type'] },
6109
+ else: { required: ['prize_amount'] }
6110
+ },
6111
+ {
6112
+ if: { required: ['vouchers'] },
6113
+ then: { properties: { prize_type: { const: 'voucher' } }, required: ['prize_type'] }
6114
+ }
6115
+ ]
6116
+ }
6117
+ },
6118
+ lottery: {
6119
+ type: 'object',
6120
+ required: ['limit_times', 'show_casher'],
6121
+ properties: {
6122
+ limit_times: { type: 'integer', minimum: 1, maximum: 20 },
6123
+ show_casher: { type: 'boolean' },
6124
+ casher_name: { type: 'string', pattern: '\\S' },
6125
+ casher_phone: { type: 'string', pattern: '^[0-9]+$' },
6126
+ send_sms: { type: 'boolean' },
6127
+ mobile_field_api_code: { type: 'string' },
6128
+ lottery_scope_rule_enabled: { type: 'boolean' },
6129
+ lottery_scope_rule: { $ref: 'WheelFortuneLotteryScopeRule' }
6130
+ },
6131
+ additionalProperties: false,
6132
+ allOf: [
6133
+ { if: { properties: { show_casher: { const: true } } }, then: { required: ['casher_name', 'casher_phone'] } },
6134
+ {
6135
+ if: {
6136
+ properties: { lottery_scope_rule_enabled: { const: true } },
6137
+ required: ['lottery_scope_rule_enabled']
6138
+ },
6139
+ then: { required: ['lottery_scope_rule'] }
6140
+ },
6141
+ { if: { required: ['lottery_scope_rule'] }, then: { required: ['lottery_scope_rule_enabled'] } },
6142
+ {
6143
+ if: { properties: { send_sms: { const: true } }, required: ['send_sms'] },
6144
+ then: { required: ['mobile_field_api_code'] }
6145
+ }
6146
+ ]
6147
+ },
6148
+ cash: {
6149
+ type: 'object',
6150
+ required: ['cash_style'],
6151
+ properties: {
6152
+ cash_style: { type: 'string', enum: ['phone', 'code'] },
6153
+ mobile_field_api_code: { type: 'string' }
6154
+ },
6155
+ additionalProperties: false,
6156
+ if: { properties: { cash_style: { const: 'phone' } } },
6157
+ then: { required: ['mobile_field_api_code'] }
6158
+ },
6159
+ text: {
6160
+ type: 'object',
6161
+ required: ['win_text', 'lose_text', 'cash_text'],
6162
+ properties: {
6163
+ win_text: { type: 'string', pattern: '\\S', maxLength: 400 },
6164
+ lose_text: { type: 'string', pattern: '\\S', maxLength: 300 },
6165
+ cash_text: { type: 'string', pattern: '\\S', maxLength: 300 }
6166
+ },
6167
+ additionalProperties: false
6168
+ }
6169
+ },
6170
+ additionalProperties: false
6171
+ },
6172
+ WheelFortuneLotteryScopeRule: {
6173
+ type: 'object',
6174
+ required: ['predicate_type'],
6175
+ properties: {
6176
+ predicate_type: {
6177
+ type: 'string',
6178
+ enum: ['greater_than_or_equal_to', 'less_than_or_equal_to', 'equal_to', 'range']
6179
+ },
6180
+ left_boundary: { type: 'number' },
6181
+ right_boundary: { type: 'number' }
6182
+ },
6183
+ additionalProperties: false,
6184
+ allOf: [
6185
+ {
6186
+ if: { properties: { predicate_type: { enum: ['greater_than_or_equal_to', 'equal_to', 'range'] } } },
6187
+ then: { required: ['left_boundary'] }
6188
+ },
6189
+ {
6190
+ if: { properties: { predicate_type: { enum: ['less_than_or_equal_to', 'range'] } } },
6191
+ then: { required: ['right_boundary'] }
6192
+ }
6193
+ ]
6194
+ },
5776
6195
  WidgetButtonInput: {
5777
6196
  type: 'object',
5778
6197
  additionalProperties: false,
@@ -5889,6 +6308,7 @@ export const SCHEMAS = {
5889
6308
  scope_conditions: { type: 'array', items: { $ref: 'NotificationRuleScopeCondition' } },
5890
6309
  schedule_time_rule: { $ref: 'NotificationRuleScheduleTimeRule' },
5891
6310
  url: { type: 'string' },
6311
+ address_id: { type: 'string' },
5892
6312
  content: { type: 'string' },
5893
6313
  mentioned_mobile_list: { type: 'array', items: { type: 'string' } }
5894
6314
  },