@jinshuju/cli 0.13.0 → 0.15.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.
@@ -8,10 +8,25 @@ export const OPERATIONS = {
8
8
  path: '/forms/{form_token}/entries/aggregate',
9
9
  parameters: [
10
10
  { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
11
- { name: 'metrics', in: 'query', schema: { type: 'string' } },
12
- { name: 'dimensions', in: 'query', schema: { type: 'string' } },
11
+ {
12
+ name: 'metrics',
13
+ in: 'query',
14
+ content: 'application/json',
15
+ schema: { type: 'array', items: { $ref: 'AggregateMetric' } }
16
+ },
17
+ {
18
+ name: 'dimensions',
19
+ in: 'query',
20
+ content: 'application/json',
21
+ schema: { type: 'array', items: { $ref: 'AggregateDimension' } }
22
+ },
13
23
  { name: 'limit', in: 'query', schema: { type: 'integer' } },
14
- { name: 'filters', in: 'query', schema: { type: 'string' } },
24
+ {
25
+ name: 'filters',
26
+ in: 'query',
27
+ content: 'application/json',
28
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
29
+ },
15
30
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } }
16
31
  ]
17
32
  },
@@ -21,10 +36,25 @@ export const OPERATIONS = {
21
36
  parameters: [
22
37
  { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
23
38
  { name: 'view_token', in: 'path', required: true, schema: { type: 'string' } },
24
- { name: 'metrics', in: 'query', schema: { type: 'string' } },
25
- { name: 'dimensions', in: 'query', schema: { type: 'string' } },
39
+ {
40
+ name: 'metrics',
41
+ in: 'query',
42
+ content: 'application/json',
43
+ schema: { type: 'array', items: { $ref: 'AggregateMetric' } }
44
+ },
45
+ {
46
+ name: 'dimensions',
47
+ in: 'query',
48
+ content: 'application/json',
49
+ schema: { type: 'array', items: { $ref: 'AggregateDimension' } }
50
+ },
26
51
  { name: 'limit', in: 'query', schema: { type: 'integer' } },
27
- { name: 'filters', in: 'query', schema: { type: 'string' } },
52
+ {
53
+ name: 'filters',
54
+ in: 'query',
55
+ content: 'application/json',
56
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
57
+ },
28
58
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } }
29
59
  ]
30
60
  },
@@ -33,10 +63,25 @@ export const OPERATIONS = {
33
63
  path: '/tables/{table_token}/entries/aggregate',
34
64
  parameters: [
35
65
  { name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
36
- { name: 'metrics', in: 'query', schema: { type: 'string' } },
37
- { name: 'dimensions', in: 'query', schema: { type: 'string' } },
66
+ {
67
+ name: 'metrics',
68
+ in: 'query',
69
+ content: 'application/json',
70
+ schema: { type: 'array', items: { $ref: 'AggregateMetric' } }
71
+ },
72
+ {
73
+ name: 'dimensions',
74
+ in: 'query',
75
+ content: 'application/json',
76
+ schema: { type: 'array', items: { $ref: 'AggregateDimension' } }
77
+ },
38
78
  { name: 'limit', in: 'query', schema: { type: 'integer' } },
39
- { name: 'filters', in: 'query', schema: { type: 'string' } },
79
+ {
80
+ name: 'filters',
81
+ in: 'query',
82
+ content: 'application/json',
83
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
84
+ },
40
85
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } }
41
86
  ]
42
87
  },
@@ -46,10 +91,25 @@ export const OPERATIONS = {
46
91
  parameters: [
47
92
  { name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
48
93
  { name: 'view_token', in: 'path', required: true, schema: { type: 'string' } },
49
- { name: 'metrics', in: 'query', schema: { type: 'string' } },
50
- { name: 'dimensions', in: 'query', schema: { type: 'string' } },
94
+ {
95
+ name: 'metrics',
96
+ in: 'query',
97
+ content: 'application/json',
98
+ schema: { type: 'array', items: { $ref: 'AggregateMetric' } }
99
+ },
100
+ {
101
+ name: 'dimensions',
102
+ in: 'query',
103
+ content: 'application/json',
104
+ schema: { type: 'array', items: { $ref: 'AggregateDimension' } }
105
+ },
51
106
  { name: 'limit', in: 'query', schema: { type: 'integer' } },
52
- { name: 'filters', in: 'query', schema: { type: 'string' } },
107
+ {
108
+ name: 'filters',
109
+ in: 'query',
110
+ content: 'application/json',
111
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
112
+ },
53
113
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } }
54
114
  ]
55
115
  },
@@ -78,7 +138,13 @@ export const OPERATIONS = {
78
138
  path: '/forms/{form_token}/fields/check',
79
139
  parameters: [
80
140
  { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
81
- { name: 'checks', in: 'query', required: true, schema: { type: 'string' } }
141
+ {
142
+ name: 'checks',
143
+ in: 'query',
144
+ required: true,
145
+ content: 'application/json',
146
+ schema: { type: 'array', items: { $ref: 'FieldDataCheck' } }
147
+ }
82
148
  ]
83
149
  },
84
150
  checkTableFieldData: {
@@ -86,7 +152,13 @@ export const OPERATIONS = {
86
152
  path: '/tables/{table_token}/fields/check',
87
153
  parameters: [
88
154
  { name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
89
- { name: 'checks', in: 'query', required: true, schema: { type: 'string' } }
155
+ {
156
+ name: 'checks',
157
+ in: 'query',
158
+ required: true,
159
+ content: 'application/json',
160
+ schema: { type: 'array', items: { $ref: 'FieldDataCheck' } }
161
+ }
90
162
  ]
91
163
  },
92
164
  copyForm: {
@@ -100,7 +172,12 @@ export const OPERATIONS = {
100
172
  path: '/forms/{form_token}/entries/count',
101
173
  parameters: [
102
174
  { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
103
- { name: 'filters', in: 'query', schema: { type: 'string' } },
175
+ {
176
+ name: 'filters',
177
+ in: 'query',
178
+ content: 'application/json',
179
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
180
+ },
104
181
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } }
105
182
  ]
106
183
  },
@@ -108,8 +185,13 @@ export const OPERATIONS = {
108
185
  method: 'GET',
109
186
  path: '/entries/count',
110
187
  parameters: [
111
- { name: 'form_tokens', in: 'query', schema: { type: 'string' } },
112
- { name: 'filters', in: 'query', schema: { type: 'string' } }
188
+ { name: 'form_tokens', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } },
189
+ {
190
+ name: 'filters',
191
+ in: 'query',
192
+ content: 'application/json',
193
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
194
+ }
113
195
  ]
114
196
  },
115
197
  countFormViewEntries: {
@@ -118,7 +200,12 @@ export const OPERATIONS = {
118
200
  parameters: [
119
201
  { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
120
202
  { name: 'view_token', in: 'path', required: true, schema: { type: 'string' } },
121
- { name: 'filters', in: 'query', schema: { type: 'string' } },
203
+ {
204
+ name: 'filters',
205
+ in: 'query',
206
+ content: 'application/json',
207
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
208
+ },
122
209
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } }
123
210
  ]
124
211
  },
@@ -127,7 +214,12 @@ export const OPERATIONS = {
127
214
  path: '/tables/{table_token}/entries/count',
128
215
  parameters: [
129
216
  { name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
130
- { name: 'filters', in: 'query', schema: { type: 'string' } },
217
+ {
218
+ name: 'filters',
219
+ in: 'query',
220
+ content: 'application/json',
221
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
222
+ },
131
223
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } }
132
224
  ]
133
225
  },
@@ -137,7 +229,12 @@ export const OPERATIONS = {
137
229
  parameters: [
138
230
  { name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
139
231
  { name: 'view_token', in: 'path', required: true, schema: { type: 'string' } },
140
- { name: 'filters', in: 'query', schema: { type: 'string' } },
232
+ {
233
+ name: 'filters',
234
+ in: 'query',
235
+ content: 'application/json',
236
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
237
+ },
141
238
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } }
142
239
  ]
143
240
  },
@@ -270,6 +367,18 @@ export const OPERATIONS = {
270
367
  }
271
368
  }
272
369
  },
370
+ createSmsSignature: {
371
+ method: 'POST',
372
+ path: '/sms/signatures',
373
+ parameters: [],
374
+ body: { required: true, content: { 'application/json': { $ref: 'SMSSignatureCreateInput' } } }
375
+ },
376
+ createSmsTemplate: {
377
+ method: 'POST',
378
+ path: '/sms/templates',
379
+ parameters: [],
380
+ body: { required: true, content: { 'application/json': { $ref: 'SMSTemplateCreateInput' } } }
381
+ },
273
382
  createTable: {
274
383
  method: 'POST',
275
384
  path: '/tables',
@@ -339,6 +448,11 @@ export const OPERATIONS = {
339
448
  { name: 'comment_id', in: 'path', required: true, schema: { type: 'string' } }
340
449
  ]
341
450
  },
451
+ deleteForm: {
452
+ method: 'DELETE',
453
+ path: '/forms/{form_token}',
454
+ parameters: [{ name: 'form_token', in: 'path', required: true, schema: { type: 'string' } }]
455
+ },
342
456
  deleteFormView: {
343
457
  method: 'DELETE',
344
458
  path: '/forms/{form_token}/views/{view_token}',
@@ -357,6 +471,16 @@ export const OPERATIONS = {
357
471
  path: '/predefined_choices_sets/{id}',
358
472
  parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }]
359
473
  },
474
+ deleteSmsSignature: {
475
+ method: 'DELETE',
476
+ path: '/sms/signatures/{id}',
477
+ parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }]
478
+ },
479
+ deleteSmsTemplate: {
480
+ method: 'DELETE',
481
+ path: '/sms/templates/{id}',
482
+ parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }]
483
+ },
360
484
  deleteTable: {
361
485
  method: 'DELETE',
362
486
  path: '/tables/{table_token}',
@@ -400,7 +524,7 @@ export const OPERATIONS = {
400
524
  parameters: [
401
525
  { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
402
526
  { name: 'serial_number', in: 'path', required: true, schema: { type: 'integer' } },
403
- { name: 'fields', in: 'query', schema: { type: 'string' } },
527
+ { name: 'fields', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } },
404
528
  { name: 'include_labels', in: 'query', schema: { type: 'boolean' } }
405
529
  ]
406
530
  },
@@ -451,6 +575,11 @@ export const OPERATIONS = {
451
575
  path: '/fill/v/{view_token}',
452
576
  parameters: [{ name: 'view_token', in: 'path', required: true, schema: { type: 'string' } }]
453
577
  },
578
+ getFolder: {
579
+ method: 'GET',
580
+ path: '/folders/{folder_token}',
581
+ parameters: [{ name: 'folder_token', in: 'path', required: true, schema: { type: 'string' } }]
582
+ },
454
583
  getForm: {
455
584
  method: 'GET',
456
585
  path: '/forms/{form_token}',
@@ -500,7 +629,7 @@ export const OPERATIONS = {
500
629
  parameters: [
501
630
  { name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
502
631
  { name: 'serial_number', in: 'path', required: true, schema: { type: 'integer' } },
503
- { name: 'fields', in: 'query', schema: { type: 'string' } },
632
+ { name: 'fields', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } },
504
633
  { name: 'include_labels', in: 'query', schema: { type: 'boolean' } }
505
634
  ]
506
635
  },
@@ -514,6 +643,7 @@ export const OPERATIONS = {
514
643
  },
515
644
  getTradeMerchant: { method: 'GET', path: '/trade/merchant', parameters: [] },
516
645
  listBillingAccountInvoices: { method: 'GET', path: '/billing_account/invoices', parameters: [] },
646
+ listBillingAccountPaidFeatures: { method: 'GET', path: '/billing_account/paid_features', parameters: [] },
517
647
  listBillingAccountPaymentHistories: {
518
648
  method: 'GET',
519
649
  path: '/billing_account/payment_histories',
@@ -548,10 +678,20 @@ export const OPERATIONS = {
548
678
  path: '/forms/{form_token}/entries',
549
679
  parameters: [
550
680
  { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
551
- { name: 'fields', in: 'query', schema: { type: 'string' } },
552
- { name: 'filters', in: 'query', schema: { type: 'string' } },
681
+ { name: 'fields', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } },
682
+ {
683
+ name: 'filters',
684
+ in: 'query',
685
+ content: 'application/json',
686
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
687
+ },
553
688
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } },
554
- { name: 'sort', in: 'query', schema: { type: 'string' } },
689
+ {
690
+ name: 'sort',
691
+ in: 'query',
692
+ content: 'application/json',
693
+ schema: { type: 'array', items: { $ref: 'SortRule' } }
694
+ },
555
695
  { name: 'created_at', in: 'query', schema: { type: 'string' } },
556
696
  { name: 'next', in: 'query', schema: { type: ['integer', 'string'] } },
557
697
  { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } },
@@ -612,8 +752,18 @@ export const OPERATIONS = {
612
752
  path: '/forms',
613
753
  parameters: [
614
754
  { name: 'q', in: 'query', schema: { type: 'string' } },
615
- { name: 'filters', in: 'query', schema: { type: 'string' } },
616
- { name: 'sort', in: 'query', schema: { type: 'string' } },
755
+ {
756
+ name: 'filters',
757
+ in: 'query',
758
+ content: 'application/json',
759
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
760
+ },
761
+ {
762
+ name: 'sort',
763
+ in: 'query',
764
+ content: 'application/json',
765
+ schema: { type: 'array', items: { $ref: 'FormSortRule' } }
766
+ },
617
767
  { name: 'next', in: 'query', schema: { type: 'string' } },
618
768
  { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } },
619
769
  { name: 'limit', in: 'query', schema: { type: 'integer' } },
@@ -634,8 +784,13 @@ export const OPERATIONS = {
634
784
  path: '/my/forms/{form_token}/entries',
635
785
  parameters: [
636
786
  { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
637
- { name: 'fields', in: 'query', schema: { type: 'string' } },
638
- { name: 'filters', in: 'query', schema: { type: 'string' } },
787
+ { name: 'fields', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } },
788
+ {
789
+ name: 'filters',
790
+ in: 'query',
791
+ content: 'application/json',
792
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
793
+ },
639
794
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } },
640
795
  { name: 'include_labels', in: 'query', schema: { type: 'boolean' } },
641
796
  { name: 'limit', in: 'query', schema: { type: 'integer' } },
@@ -655,15 +810,48 @@ export const OPERATIONS = {
655
810
  },
656
811
  listPredefinedChoicesSets: { method: 'GET', path: '/predefined_choices_sets', parameters: [] },
657
812
  listSmsAuditStatuses: { method: 'GET', path: '/sms/audit_statuses', parameters: [] },
813
+ listSmsSignatures: {
814
+ method: 'GET',
815
+ path: '/sms/signatures',
816
+ parameters: [
817
+ { name: 'status', in: 'query', schema: { type: 'string', enum: ['CHECKING', 'SUCCESS', 'FAIL'] } },
818
+ { name: 'limit', in: 'query', schema: { type: 'integer' } },
819
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
820
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
821
+ ]
822
+ },
823
+ listSmsTemplates: {
824
+ method: 'GET',
825
+ path: '/sms/templates',
826
+ parameters: [
827
+ { name: 'q', in: 'query', schema: { type: 'string' } },
828
+ { name: 'scope', in: 'query', schema: { type: 'string', enum: ['owned', 'shared'] } },
829
+ { name: 'signature_id', in: 'query', schema: { type: 'string' } },
830
+ { name: 'status', in: 'query', schema: { type: 'string', enum: ['CHECKING', 'SUCCESS', 'FAIL'] } },
831
+ { name: 'limit', in: 'query', schema: { type: 'integer' } },
832
+ { name: 'next', in: 'query', schema: { type: 'integer', minimum: 0 } },
833
+ { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } }
834
+ ]
835
+ },
658
836
  listTableEntries: {
659
837
  method: 'GET',
660
838
  path: '/tables/{table_token}/entries',
661
839
  parameters: [
662
840
  { name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
663
- { name: 'fields', in: 'query', schema: { type: 'string' } },
664
- { name: 'filters', in: 'query', schema: { type: 'string' } },
841
+ { name: 'fields', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } },
842
+ {
843
+ name: 'filters',
844
+ in: 'query',
845
+ content: 'application/json',
846
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
847
+ },
665
848
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } },
666
- { name: 'sort', in: 'query', schema: { type: 'string' } },
849
+ {
850
+ name: 'sort',
851
+ in: 'query',
852
+ content: 'application/json',
853
+ schema: { type: 'array', items: { $ref: 'SortRule' } }
854
+ },
667
855
  { name: 'created_at', in: 'query', schema: { type: 'string' } },
668
856
  { name: 'next', in: 'query', schema: { type: ['integer', 'string'] } },
669
857
  { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } },
@@ -699,8 +887,18 @@ export const OPERATIONS = {
699
887
  path: '/tables',
700
888
  parameters: [
701
889
  { name: 'q', in: 'query', schema: { type: 'string' } },
702
- { name: 'filters', in: 'query', schema: { type: 'string' } },
703
- { name: 'sort', in: 'query', schema: { type: 'string' } },
890
+ {
891
+ name: 'filters',
892
+ in: 'query',
893
+ content: 'application/json',
894
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
895
+ },
896
+ {
897
+ name: 'sort',
898
+ in: 'query',
899
+ content: 'application/json',
900
+ schema: { type: 'array', items: { $ref: 'FormSortRule' } }
901
+ },
704
902
  { name: 'next', in: 'query', schema: { type: 'string' } },
705
903
  { name: 'skip', in: 'query', schema: { type: 'integer', minimum: 0, maximum: 10000 } },
706
904
  { name: 'limit', in: 'query', schema: { type: 'integer' } }
@@ -798,7 +996,13 @@ export const OPERATIONS = {
798
996
  path: '/forms/{form_token}/fields/preview_convert',
799
997
  parameters: [
800
998
  { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
801
- { name: 'checks', in: 'query', required: true, schema: { type: 'string' } }
999
+ {
1000
+ name: 'checks',
1001
+ in: 'query',
1002
+ required: true,
1003
+ content: 'application/json',
1004
+ schema: { type: 'array', items: { $ref: 'FieldTypeChangeCheck' } }
1005
+ }
802
1006
  ]
803
1007
  },
804
1008
  previewTableFieldTypeChange: {
@@ -806,7 +1010,13 @@ export const OPERATIONS = {
806
1010
  path: '/tables/{table_token}/fields/preview_convert',
807
1011
  parameters: [
808
1012
  { name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
809
- { name: 'checks', in: 'query', required: true, schema: { type: 'string' } }
1013
+ {
1014
+ name: 'checks',
1015
+ in: 'query',
1016
+ required: true,
1017
+ content: 'application/json',
1018
+ schema: { type: 'array', items: { $ref: 'FieldTypeChangeCheck' } }
1019
+ }
810
1020
  ]
811
1021
  },
812
1022
  replaceEntry: {
@@ -832,8 +1042,13 @@ export const OPERATIONS = {
832
1042
  path: '/entries/search',
833
1043
  parameters: [
834
1044
  { name: 'keyword', in: 'query', required: true, schema: { type: 'string', maxLength: 200 } },
835
- { name: 'form_tokens', in: 'query', schema: { type: 'string' } },
836
- { name: 'filters', in: 'query', schema: { type: 'string' } }
1045
+ { name: 'form_tokens', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } },
1046
+ {
1047
+ name: 'filters',
1048
+ in: 'query',
1049
+ content: 'application/json',
1050
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
1051
+ }
837
1052
  ]
838
1053
  },
839
1054
  searchMySubmittedEntries: {
@@ -841,7 +1056,7 @@ export const OPERATIONS = {
841
1056
  path: '/my/search',
842
1057
  parameters: [
843
1058
  { name: 'keyword', in: 'query', required: true, schema: { type: 'string', minLength: 1 } },
844
- { name: 'form_tokens', in: 'query', schema: { type: 'string' } }
1059
+ { name: 'form_tokens', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } }
845
1060
  ]
846
1061
  },
847
1062
  summarizeEntries: {
@@ -849,9 +1064,14 @@ export const OPERATIONS = {
849
1064
  path: '/forms/{form_token}/entries/summary',
850
1065
  parameters: [
851
1066
  { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
852
- { name: 'fields', in: 'query', schema: { type: 'string' } },
1067
+ { name: 'fields', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } },
853
1068
  { name: 'include_overview', in: 'query', schema: { type: 'boolean' } },
854
- { name: 'filters', in: 'query', schema: { type: 'string' } },
1069
+ {
1070
+ name: 'filters',
1071
+ in: 'query',
1072
+ content: 'application/json',
1073
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
1074
+ },
855
1075
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } }
856
1076
  ]
857
1077
  },
@@ -861,9 +1081,14 @@ export const OPERATIONS = {
861
1081
  parameters: [
862
1082
  { name: 'form_token', in: 'path', required: true, schema: { type: 'string' } },
863
1083
  { name: 'view_token', in: 'path', required: true, schema: { type: 'string' } },
864
- { name: 'fields', in: 'query', schema: { type: 'string' } },
1084
+ { name: 'fields', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } },
865
1085
  { name: 'include_overview', in: 'query', schema: { type: 'boolean' } },
866
- { name: 'filters', in: 'query', schema: { type: 'string' } },
1086
+ {
1087
+ name: 'filters',
1088
+ in: 'query',
1089
+ content: 'application/json',
1090
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
1091
+ },
867
1092
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } }
868
1093
  ]
869
1094
  },
@@ -872,9 +1097,14 @@ export const OPERATIONS = {
872
1097
  path: '/tables/{table_token}/entries/summary',
873
1098
  parameters: [
874
1099
  { name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
875
- { name: 'fields', in: 'query', schema: { type: 'string' } },
1100
+ { name: 'fields', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } },
876
1101
  { name: 'include_overview', in: 'query', schema: { type: 'boolean' } },
877
- { name: 'filters', in: 'query', schema: { type: 'string' } },
1102
+ {
1103
+ name: 'filters',
1104
+ in: 'query',
1105
+ content: 'application/json',
1106
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
1107
+ },
878
1108
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } }
879
1109
  ]
880
1110
  },
@@ -884,9 +1114,14 @@ export const OPERATIONS = {
884
1114
  parameters: [
885
1115
  { name: 'table_token', in: 'path', required: true, schema: { type: 'string' } },
886
1116
  { name: 'view_token', in: 'path', required: true, schema: { type: 'string' } },
887
- { name: 'fields', in: 'query', schema: { type: 'string' } },
1117
+ { name: 'fields', in: 'query', explode: false, schema: { type: 'array', items: { type: 'string' } } },
888
1118
  { name: 'include_overview', in: 'query', schema: { type: 'boolean' } },
889
- { name: 'filters', in: 'query', schema: { type: 'string' } },
1119
+ {
1120
+ name: 'filters',
1121
+ in: 'query',
1122
+ content: 'application/json',
1123
+ schema: { type: 'array', items: { $ref: 'ScopeCondition' } }
1124
+ },
890
1125
  { name: 'keyword', in: 'query', schema: { type: 'string', maxLength: 200 } }
891
1126
  ]
892
1127
  },
@@ -1007,6 +1242,18 @@ export const OPERATIONS = {
1007
1242
  }
1008
1243
  }
1009
1244
  },
1245
+ updateSmsSignature: {
1246
+ method: 'PATCH',
1247
+ path: '/sms/signatures/{id}',
1248
+ parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }],
1249
+ body: { required: true, content: { 'application/json': { $ref: 'SMSSignatureUpdateInput' } } }
1250
+ },
1251
+ updateSmsTemplate: {
1252
+ method: 'PATCH',
1253
+ path: '/sms/templates/{id}',
1254
+ parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }],
1255
+ body: { required: true, content: { 'application/json': { $ref: 'SMSTemplateUpdateInput' } } }
1256
+ },
1010
1257
  updateTable: {
1011
1258
  method: 'PATCH',
1012
1259
  path: '/tables/{table_token}',
@@ -1126,6 +1373,22 @@ export const OPERATIONS = {
1126
1373
  }
1127
1374
  }
1128
1375
  },
1376
+ uploadUserLicenseAttachment: {
1377
+ method: 'POST',
1378
+ path: '/user/license_attachments',
1379
+ parameters: [],
1380
+ body: {
1381
+ required: true,
1382
+ content: {
1383
+ 'multipart/form-data': {
1384
+ type: 'object',
1385
+ required: ['file'],
1386
+ properties: { file: { type: 'string' } },
1387
+ additionalProperties: false
1388
+ }
1389
+ }
1390
+ }
1391
+ },
1129
1392
  verifyRedirectParams: {
1130
1393
  method: 'GET',
1131
1394
  path: '/jamr_v',
@@ -1159,6 +1422,36 @@ export const SCHEMAS = {
1159
1422
  enable_auto_position: { type: 'boolean' }
1160
1423
  }
1161
1424
  },
1425
+ AggregateDimension: {
1426
+ type: 'object',
1427
+ required: ['field'],
1428
+ properties: { field: { type: 'string' }, bucket: { type: 'string', enum: ['day', 'week', 'month'] } }
1429
+ },
1430
+ AggregateMetric: {
1431
+ type: 'object',
1432
+ required: ['func', 'field'],
1433
+ properties: {
1434
+ func: {
1435
+ type: 'string',
1436
+ enum: [
1437
+ 'count',
1438
+ 'count_non_empty',
1439
+ 'count_empty',
1440
+ 'count_unique',
1441
+ 'sum',
1442
+ 'avg',
1443
+ 'min',
1444
+ 'max',
1445
+ 'stddev',
1446
+ 'median',
1447
+ 'p25',
1448
+ 'p75',
1449
+ 'p90'
1450
+ ]
1451
+ },
1452
+ field: { type: 'string' }
1453
+ }
1454
+ },
1162
1455
  AnswerInput: {
1163
1456
  type: 'object',
1164
1457
  additionalProperties: false,
@@ -1392,7 +1685,11 @@ export const SCHEMAS = {
1392
1685
  },
1393
1686
  CopyFormInput: {
1394
1687
  type: 'object',
1395
- properties: { name: { type: 'string' }, folder_token: { type: 'string' } },
1688
+ properties: {
1689
+ name: { type: 'string' },
1690
+ folder_token: { type: 'string' },
1691
+ with_notification_rules: { type: 'boolean' }
1692
+ },
1396
1693
  additionalProperties: false
1397
1694
  },
1398
1695
  DailyRepeatCloseRuleInput: {
@@ -1675,6 +1972,21 @@ export const SCHEMAS = {
1675
1972
  },
1676
1973
  additionalProperties: false
1677
1974
  },
1975
+ FieldDataCheck: {
1976
+ type: 'object',
1977
+ required: ['field_api_code'],
1978
+ properties: {
1979
+ field_api_code: { type: 'string' },
1980
+ choice_value: { type: 'string' },
1981
+ choice_type: {
1982
+ type: 'string',
1983
+ enum: ['choice', 'statement', 'dimension', 'level_1', 'level_2', 'level_3', 'level_4']
1984
+ },
1985
+ parent_field: { type: 'string' },
1986
+ check_extended_text: { type: 'boolean' },
1987
+ goods_item_dimension_options: { type: 'object' }
1988
+ }
1989
+ },
1678
1990
  FieldInput: {
1679
1991
  type: 'object',
1680
1992
  required: ['type', 'label'],
@@ -1821,6 +2133,15 @@ export const SCHEMAS = {
1821
2133
  },
1822
2134
  additionalProperties: false
1823
2135
  },
2136
+ FieldTypeChangeCheck: {
2137
+ type: 'object',
2138
+ required: ['field_api_code', 'target_type'],
2139
+ properties: {
2140
+ field_api_code: { type: 'string' },
2141
+ target_type: { type: 'string' },
2142
+ target_precision: { type: 'string', enum: ['month', 'day', 'minute', 'second'] }
2143
+ }
2144
+ },
1824
2145
  FieldUpdateInput: {
1825
2146
  type: 'object',
1826
2147
  additionalProperties: false,
@@ -2119,16 +2440,7 @@ export const SCHEMAS = {
2119
2440
  items: {
2120
2441
  properties: {
2121
2442
  type: {
2122
- not: {
2123
- enum: [
2124
- 'PageBreak',
2125
- 'GoodsField',
2126
- 'MultipleBlanksField',
2127
- 'WidgetContact',
2128
- 'WidgetVideo',
2129
- 'WidgetButton'
2130
- ]
2131
- }
2443
+ not: { enum: ['PageBreak', 'MultipleBlanksField', 'WidgetContact', 'WidgetVideo', 'WidgetButton'] }
2132
2444
  }
2133
2445
  }
2134
2446
  }
@@ -2328,10 +2640,10 @@ export const SCHEMAS = {
2328
2640
  success_message: { type: 'string' },
2329
2641
  success_message_rich_text: { type: 'string' },
2330
2642
  success_message_style: { type: 'string', enum: ['text', 'rich_text'] },
2331
- entry_submit_mode: { type: 'string' },
2643
+ entry_submit_mode: { type: 'string', enum: ['show_message', 'redirect', 'reports', 'exam_score'] },
2332
2644
  success_redirect_url: { type: 'string' },
2333
2645
  success_redirect_fields: { type: 'array', items: { type: 'string' } },
2334
- open_entry_action: { type: 'string' },
2646
+ open_entry_action: { type: 'string', enum: ['hide', 'view', 'edit'] },
2335
2647
  open_entry_message: { type: 'string' },
2336
2648
  open_entry_cancel_reservation: { type: 'boolean' },
2337
2649
  show_serial_number_on_success: { type: 'boolean' },
@@ -2346,12 +2658,12 @@ export const SCHEMAS = {
2346
2658
  },
2347
2659
  by_time_range_close_rule: {
2348
2660
  type: ['object', 'null'],
2349
- properties: { start_time: { type: 'string' }, end_time: { type: 'string' } },
2661
+ properties: { enabled: { type: 'boolean' }, start_time: { type: 'string' }, end_time: { type: 'string' } },
2350
2662
  additionalProperties: false
2351
2663
  },
2352
2664
  by_entries_close_rule: {
2353
2665
  type: ['object', 'null'],
2354
- properties: { limit: { type: 'integer' } },
2666
+ properties: { enabled: { type: 'boolean' }, limit: { type: 'integer' } },
2355
2667
  additionalProperties: false
2356
2668
  },
2357
2669
  fill_frequency: {
@@ -2372,7 +2684,18 @@ export const SCHEMAS = {
2372
2684
  show_field_number: { type: 'boolean' },
2373
2685
  password_required: { type: 'boolean' },
2374
2686
  access_password: { type: 'string' },
2375
- allowed_audience: { type: 'string' },
2687
+ allowed_audience: {
2688
+ type: 'string',
2689
+ enum: [
2690
+ 'public',
2691
+ 'internal',
2692
+ 'private',
2693
+ 'weixin_qiye_followers_only',
2694
+ 'weixin_followers_only',
2695
+ 'submitter_only',
2696
+ 'gd_user_only'
2697
+ ]
2698
+ },
2376
2699
  weixin_limited: { type: 'boolean' },
2377
2700
  submission_region_limited: { type: 'boolean' },
2378
2701
  submission_regions: { type: 'array', items: { type: 'string' } },
@@ -2384,6 +2707,14 @@ export const SCHEMAS = {
2384
2707
  },
2385
2708
  additionalProperties: false
2386
2709
  },
2710
+ FormSortRule: {
2711
+ type: 'object',
2712
+ required: ['field'],
2713
+ properties: {
2714
+ field: { type: 'string', enum: ['created_at', 'last_entry_created_at', 'entries_count'] },
2715
+ order: { type: 'string', enum: ['asc', 'desc'] }
2716
+ }
2717
+ },
2387
2718
  FormUpdateInput: {
2388
2719
  type: 'object',
2389
2720
  properties: {
@@ -3506,6 +3837,101 @@ export const SCHEMAS = {
3506
3837
  }
3507
3838
  }
3508
3839
  },
3840
+ SMSSignatureCreateInput: {
3841
+ type: 'object',
3842
+ required: [
3843
+ 'signature',
3844
+ 'license_attachment_ids',
3845
+ 'company_name',
3846
+ 'company_id',
3847
+ 'id_card_front_attachment_id',
3848
+ 'id_card_back_attachment_id',
3849
+ 'id_card_name',
3850
+ 'id_card_number',
3851
+ 'identity_mobile'
3852
+ ],
3853
+ properties: {
3854
+ signature: { type: 'string', minLength: 2, maxLength: 20 },
3855
+ type: { type: 'string', enum: ['notification', 'verification'] },
3856
+ company_name: { type: 'string', minLength: 1 },
3857
+ company_id: { type: 'string', minLength: 1 },
3858
+ license_attachment_ids: { type: 'array', minItems: 1, items: { type: 'string' } },
3859
+ id_card_front_attachment_id: { type: 'string' },
3860
+ id_card_back_attachment_id: { type: 'string' },
3861
+ id_card_name: { type: 'string' },
3862
+ id_card_number: { type: 'string' },
3863
+ identity_mobile: { type: 'string' }
3864
+ },
3865
+ additionalProperties: false
3866
+ },
3867
+ SMSSignatureUpdateInput: {
3868
+ type: 'object',
3869
+ properties: {
3870
+ signature: { type: 'string', minLength: 2, maxLength: 20 },
3871
+ company_name: { type: 'string', minLength: 1 },
3872
+ company_id: { type: 'string', minLength: 1 },
3873
+ license_attachment_ids: { type: 'array', minItems: 1, items: { type: 'string' } },
3874
+ id_card_front_attachment_id: { type: 'string' },
3875
+ id_card_back_attachment_id: { type: 'string' },
3876
+ id_card_name: { type: 'string' },
3877
+ id_card_number: { type: 'string' },
3878
+ identity_mobile: { type: 'string' }
3879
+ },
3880
+ additionalProperties: false
3881
+ },
3882
+ SMSTemplateCreateInput: {
3883
+ type: 'object',
3884
+ required: ['signature', 'content'],
3885
+ properties: {
3886
+ signature: { type: 'string' },
3887
+ content: { type: 'string' },
3888
+ apply_description: { type: 'string', maxLength: 200 }
3889
+ },
3890
+ additionalProperties: false
3891
+ },
3892
+ SMSTemplateUpdateInput: {
3893
+ type: 'object',
3894
+ properties: {
3895
+ signature: { type: 'string' },
3896
+ content: { type: 'string' },
3897
+ apply_description: { type: 'string', maxLength: 200 }
3898
+ },
3899
+ additionalProperties: false
3900
+ },
3901
+ ScopeCondition: {
3902
+ type: 'object',
3903
+ required: ['operator'],
3904
+ properties: {
3905
+ field: { type: 'string' },
3906
+ api_code: { type: 'string' },
3907
+ trigger: { type: 'string' },
3908
+ operator: {
3909
+ type: 'string',
3910
+ enum: [
3911
+ 'eq',
3912
+ 'ne',
3913
+ 'any_in',
3914
+ 'none_in',
3915
+ 'between',
3916
+ 'not_between',
3917
+ 'null',
3918
+ 'not_null',
3919
+ 'gte',
3920
+ 'gt',
3921
+ 'lte',
3922
+ 'lt',
3923
+ 'like',
3924
+ 'not_like',
3925
+ 'within_last',
3926
+ 'equal',
3927
+ 'not_equal',
3928
+ 'start',
3929
+ 'end'
3930
+ ]
3931
+ },
3932
+ value: {}
3933
+ }
3934
+ },
3509
3935
  SectionBreakInput: {
3510
3936
  type: 'object',
3511
3937
  additionalProperties: false,
@@ -3606,6 +4032,11 @@ export const SCHEMAS = {
3606
4032
  random_choices: { type: 'boolean' }
3607
4033
  }
3608
4034
  },
4035
+ SortRule: {
4036
+ type: 'object',
4037
+ required: ['api_code'],
4038
+ properties: { api_code: { type: 'string' }, order: { type: 'string', enum: ['asc', 'desc'] } }
4039
+ },
3609
4040
  StatementInput: {
3610
4041
  type: 'object',
3611
4042
  additionalProperties: false,