• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

teableio / teable / 8538004962

03 Apr 2024 11:36AM UTC coverage: 18.233% (-3.3%) from 21.535%
8538004962

Pull #528

github

web-flow
Merge c1a248a6f into 45ee7ebb3
Pull Request #528: feat: Kanban view

575 of 1136 branches covered (50.62%)

29 of 2908 new or added lines in 83 files covered. (1.0%)

5 existing lines in 5 files now uncovered.

6439 of 35315 relevant lines covered (18.23%)

3.94 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/apps/nextjs-app/src/features/app/components/ai-chat/prompt/createTablePrompt.bak.ts
1
export const CREATE_TABLE_PROMPT = `
×
2
openapi: 3.0.0
×
3
info:
×
4
  title: Teable App
×
5
  description: Manage Data as easy as drink a cup of tea
×
6
  version: 1.0.0
×
7
  contact: {}
×
8
tags: []
×
9
servers: []
×
10
paths:
×
11
  /api/table:
×
12
    post:
×
13
      operationId: TableController_createTable
×
14
      summary: Create table
×
15
      parameters: []
×
16
      requestBody:
×
17
        required: true
×
18
        content:
×
19
          application/json:
×
20
            schema:
×
21
              $ref: '#/components/schemas/CreateTableRo'
×
22
      responses:
×
23
        '201':
×
24
          description: The Table has been successfully created.
×
25
        '403':
×
26
          description: Forbidden.
×
27
      tags:
×
28
        - table
×
29
  /api/table/{tableId}/record:
×
30
    get:
×
31
      operationId: RecordOpenApiController_getRecords
×
32
      parameters:
×
33
        - name: tableId
×
34
          required: true
×
35
          in: path
×
36
          schema:
×
37
            type: string
×
38
        - name: take
×
39
          required: false
×
40
          in: query
×
41
          example: 100
×
42
          description: The record count you want to take
×
43
          schema:
×
44
            minimum: 1
×
45
            maximum: 10000
×
46
            default: 100
×
47
            type: number
×
48
        - name: skip
×
49
          required: false
×
50
          in: query
×
51
          example: 0
×
52
          description: The records count you want to skip
×
53
          schema:
×
54
            minimum: 0
×
55
            default: 0
×
56
            type: number
×
57
        - name: recordIds
×
58
          required: false
×
59
          in: query
×
60
          example: recXXXXXXX
×
61
          description: Specify the records you want to fetch
×
62
          schema:
×
63
            type: array
×
64
            items:
×
65
              type: string
×
66
        - name: viewId
×
67
          required: false
×
68
          in: query
×
69
          example: viwXXXXXXX
×
70
          description: Set the view you want to fetch, default is first view. result will influent by view options.
×
71
          schema:
×
72
            type: string
×
73
        - name: projection
×
74
          required: false
×
75
          in: query
×
76
          description: Project the fields you want to fetch, default is all fields in view.
×
77
          schema:
×
78
            type: array
×
79
            items:
×
80
              type: string
×
81
        - name: cellFormat
×
82
          required: false
×
83
          in: query
×
84
          description: value formate, you can set it to text if you only need simple string value
×
85
          schema:
×
86
            default: json
×
87
            enum:
×
88
              - json
×
89
              - text
×
90
            type: string
×
91
        - name: fieldKeyType
×
92
          required: false
×
93
          in: query
×
94
          description: Set the key of record.fields[key], default is 'id'
×
95
          schema:
×
96
            default: id
×
97
            enum:
×
98
              - id
×
99
              - name
×
100
            type: string
×
101
      responses:
×
102
        '200':
×
103
          description: list of records
×
104
          content:
×
105
            application/json:
×
106
              schema:
×
107
                $ref: '#/components/schemas/RecordsVo'
×
108
      tags:
×
109
        - record
×
110
      security:
×
111
        - bearer: []
×
112
    post:
×
113
      operationId: RecordOpenApiController_createRecords
×
114
      summary: Create records
×
115
      parameters:
×
116
        - name: tableId
×
117
          required: true
×
118
          in: path
×
119
          description: The id for table.
×
120
          example: tbla63d4543eb5eded6
×
121
          schema:
×
122
            type: string
×
123
      requestBody:
×
124
        required: true
×
125
        content:
×
126
          application/json:
×
127
            schema:
×
128
              $ref: '#/components/schemas/CreateRecordsDto'
×
129
      responses:
×
130
        '201':
×
131
          description: The record has been successfully created.
×
132
        '403':
×
133
          description: Forbidden.
×
134
      tags:
×
135
        - record
×
136
      security:
×
137
        - bearer: []
×
138
components:
×
139
  schemas:
×
140
    SingleSelectOption:
×
141
      type: object
×
142
      properties:
×
143
        name:
×
144
          type: string
×
145
          example: light
×
146
          description: Name of the option.
×
147
        color:
×
148
          type: string
×
149
          enum:
×
150
            - blueBright
×
151
            - blueDark1
×
152
            - blueLight1
×
153
            - blueLight2
×
154
            - blue
×
155
            - cyanBright
×
156
            - cyanDark1
×
157
            - cyanLight1
×
158
            - cyanLight2
×
159
            - cyan
×
160
            - grayBright
×
161
            - grayDark1
×
162
            - grayLight1
×
163
            - grayLight2
×
164
            - gray
×
165
            - greenBright
×
166
            - greenDark1
×
167
            - greenLight1
×
168
            - greenLight2
×
169
            - green
×
170
            - orangeBright
×
171
            - orangeDark1
×
172
            - orangeLight1
×
173
            - orangeLight2
×
174
            - orange
×
175
            - pinkBright
×
176
            - pinkDark1
×
177
            - pinkLight1
×
178
            - pinkLight2
×
179
            - pink
×
180
            - purpleBright
×
181
            - purpleDark1
×
182
            - purpleLight1
×
183
            - purpleLight2
×
184
            - purple
×
185
            - redBright
×
186
            - redDark1
×
187
            - redLight1
×
188
            - redLight2
×
189
            - red
×
190
            - tealBright
×
191
            - tealDark1
×
192
            - tealLight1
×
193
            - tealLight2
×
194
            - teal
×
195
            - yellowBright
×
196
            - yellowDark1
×
197
            - yellowLight1
×
198
            - yellowLight2
×
199
            - yellow
×
200
          example: yellow
×
201
          description: The color of the option.
×
202
      required:
×
203
        - name
×
204
        - color
×
205
    SingleSelectOptionsDto:
×
206
      type: object
×
207
      properties:
×
208
        choices:
×
209
          description: 'The display precision of the number, caveat: the precision is just a formatter, it dose not effect the storing value of the record'
×
210
          type: array
×
211
          items:
×
212
            $ref: '#/components/schemas/SingleSelectOption'
×
213
      required:
×
214
        - choices
×
215
    NumberOptionsDto:
×
216
      type: object
×
217
      properties:
×
218
        precision:
×
219
          type: number
×
220
          example: 2
×
221
          description: 'the display precision of the number, caveat: the precision is just a formatter, it dose not effect the storing value of the record'
×
222
      required:
×
223
        - precision
×
224
    IFieldRo:
×
225
      type: object
×
226
      properties:
×
227
        name:
×
228
          type: string
×
229
          description: The name of the field.
×
230
          example: Single Select
×
231
        description:
×
232
          type: string
×
233
          description: The description of the field.
×
234
          example: this is a summary
×
235
        type:
×
236
          type: string
×
237
          description: The types supported by teable.
×
238
          example: singleSelect
×
239
          enum:
×
240
            - singleLineText
×
241
            - longText
×
242
            - user
×
243
            - attachment
×
244
            - checkbox
×
245
            - multipleSelect
×
246
            - singleSelect
×
247
            - date
×
248
            - phoneNumber
×
249
            - email
×
250
            - url
×
251
            - number
×
252
            - currency
×
253
            - percent
×
254
            - duration
×
255
            - rating
×
256
            - formula
×
257
            - rollup
×
258
            - count
×
259
            - multipleRecordLinks
×
260
            - multipleLookupValues
×
261
            - createdTime
×
262
            - lastModifiedTime
×
263
            - createdBy
×
264
            - lastModifiedBy
×
265
            - autoNumber
×
266
            - button
×
267
        options:
×
268
          description: The configuration options of the field. The structure of the field's options depend on the field's type.
×
269
          oneOf:
×
270
            - $ref: '#/components/schemas/SingleSelectOptionsDto'
×
271
            - $ref: '#/components/schemas/NumberOptionsDto'
×
272
        defaultValue:
×
273
          type: string
×
274
          description: The defaultValue of the field. The datatype of the value depends on the field type.
×
275
          example:
×
276
            name: light
×
277
            color: yellow
×
278
        isPrimary:
×
279
          type: boolean
×
280
          description: Set if it is a primary field
×
281
        notNull:
×
282
          type: boolean
×
283
          description: Set if value are not allowed to be null, not all fields support this option.
×
284
          example: false
×
285
        unique:
×
286
          type: boolean
×
287
          description: Set if value are not allowed to be duplicated, not all fields support this option.
×
288
          example: false
×
289
      required:
×
290
        - name
×
291
        - description
×
292
        - type
×
293
    GridViewOptionsDto:
×
294
      type: object
×
295
      properties:
×
296
        rowHeight:
×
297
          type: string
×
298
          example: short
×
299
          default: short
×
300
          description: The row height level of row in view
×
301
      required:
×
302
        - rowHeight
×
303
    KanbanViewOptionsDto:
×
304
      type: object
×
305
      properties:
×
NEW
306
        stackFieldId:
×
307
          type: string
×
308
          example: fldXXXXXXX
×
309
          description: The field id of the board group.
×
310
    IViewRo:
×
311
      type: object
×
312
      properties:
×
313
        name:
×
314
          type: string
×
315
          description: The name of the view.
×
316
          example: Grid view
×
317
        description:
×
318
          type: string
×
319
          description: The description of the view.
×
320
          example: this view show all records
×
321
        type:
×
322
          type: string
×
323
          description: The view type supported by teable.
×
324
          example: grid
×
325
        filter:
×
326
          type: object
×
327
          description: The filter config of the view.
×
328
        sort:
×
329
          type: object
×
330
          description: The sort config of the view.
×
331
        group:
×
332
          type: object
×
333
          description: The group config of the view.
×
334
        options:
×
335
          description: The configuration options of the View. The structure of the View's options depend on the View's type.
×
336
          oneOf:
×
337
            - $ref: '#/components/schemas/GridViewOptionsDto'
×
338
            - $ref: '#/components/schemas/KanbanViewOptionsDto'
×
339
      required:
×
340
        - name
×
341
        - description
×
342
        - type
×
343
    CreateRecordsDto:
×
344
      type: object
×
345
      properties:
×
346
        fieldKeyType:
×
347
          type: string
×
348
          description: Define the field key type when create and return records
×
349
          example: name
×
350
          default: name
×
351
          enum:
×
352
            - id
×
353
            - name
×
354
        records:
×
355
          description: |
×
356

×
357
            Array of objects with a fields key mapping fieldId or field name to value for that field.
×
358
            singleLineText, type: string, example: "bieber"
×
359
            longText, type: string, example: "line1
×
360
            line2"
×
361
            singleLineText, type: string, example: "bieber"
×
362
            attachment, type: string, example: "bieber"
×
363
            checkbox, type: string, example: "true"
×
364
            multipleSelect, type: string[], example: ["red", "green"]
×
365
            singleSelect, type: string, example: "In Progress"
×
366
            date, type: string, example: "2012/12/12"
×
367
            phoneNumber, type: string, example: "1234567890"
×
368
            email, type: string, example: "address@teable.io"
×
369
            url, type: string, example: "https://teable.io"
×
370
            number, type: number, example: 1
×
371
            currency, type: number, example: 1
×
372
            percent, type: number, example: 1
×
373
            duration, type: number, example: 1
×
374
            rating, type: number, example: 1
×
375
            formula,type: string, example: "bieber"
×
376
            rollup, type: string, example: "bieber"
×
377
            count, type: number, example: 1
×
378
            multipleRecordLinks, type: string, example: "bieber"
×
379
            multipleLookupValues, type: string, example: "bieber"
×
380
            createdTime, type: string, example: "2012/12/12 03:03"
×
381
            lastModifiedTime, type: string, example: "2012/12/12 03:03"
×
382
            createdBy, type: string, example: "bieber"
×
383
            lastModifiedBy, type: string, example: "bieber"
×
384
            autoNumber, type: number, example: 1
×
385
            button, type: string, example: "click"
×
386
          example:
×
387
            - fields:
×
388
                name: Bieber
×
389
          type: array
×
390
          items:
×
391
            type: string
×
392
      required:
×
393
        - records
×
394
    CreateTableRo:
×
395
      type: object
×
396
      properties:
×
397
        name:
×
398
          type: string
×
399
          description: The name of the table.
×
400
          example: table1
×
401
        description:
×
402
          type: string
×
403
          description: The description of the table.
×
404
          example: my favorite songs
×
405
        icon:
×
406
          type: string
×
407
          description: The icon of the table.
×
408
        fields:
×
409
          description: The fields of the table. If it is empty, 3 fields include SingleLineText, Number, SingleSelect will be generated by default.
×
410
          type: array
×
411
          items:
×
412
            $ref: '#/components/schemas/IFieldRo'
×
413
        views:
×
414
          description: The views of the table. If it is empty, a grid view will be generated by default.
×
415
          type: array
×
416
          items:
×
417
            $ref: '#/components/schemas/IViewRo'
×
418
        rows:
×
419
          description: The record data of the table. If it is empty, 3 empty records will be generated by default.
×
420
          allOf:
×
421
            - $ref: '#/components/schemas/CreateRecordsDto'
×
422
      required:
×
423
        - name
×
424
    RecordsVo:
×
425
      type: object
×
426
      properties:
×
427
        records:
×
428
          description: Array of objects with a fields key mapping fieldId or field name to value for that field.
×
429
          example:
×
430
            - id: recXXXXXXX
×
431
              fields:
×
432
                fldXXXXXXXXXXXXXXX: text value
×
433
          type: array
×
434
          items:
×
435
            type: string
×
436
        total:
×
437
          type: number
×
438
          description: Total number of records in this query.
×
439
      required:
×
440
        - records
×
441
        - total
×
442
`;
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc