quickbase-js 1.1.0-beta.2 → 1.1.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -22
- package/README.md +61 -5
- package/dist/quickbase.d.ts +1711 -613
- package/dist/quickbase.js +1469 -468
- package/dist/quickbase.js.map +1 -1
- package/examples/react.js +12 -12
- package/examples/vanillajs.html +12 -12
- package/log-gen.yaml +3558 -528
- package/package.json +12 -14
- package/playwright-results.txt/.last-run.json +4 -0
- package/playwright.config.ts +1 -1
- package/src/code-generation/definitions/apps.ts +274 -0
- package/src/code-generation/definitions/auth.ts +10 -0
- package/src/code-generation/definitions/fields.ts +751 -0
- package/src/code-generation/definitions/index.ts +18 -0
- package/src/code-generation/definitions/records.ts +269 -0
- package/src/code-generation/definitions/relationships.ts +90 -0
- package/src/code-generation/definitions/reports.ts +10 -0
- package/src/code-generation/definitions/tables.ts +112 -0
- package/src/code-generation/fix-spec-main.ts +2 -2
- package/src/code-generation/output/quickbase-fixed.json +1724 -3044
- package/src/code-generation/paths/apps.ts +100 -0
- package/src/code-generation/paths/auth.ts +25 -0
- package/src/code-generation/paths/fields.ts +207 -0
- package/src/code-generation/paths/index.ts +17 -0
- package/src/code-generation/paths/records.ts +68 -0
- package/src/code-generation/paths/relationships.ts +32 -0
- package/src/code-generation/paths/reports.ts +34 -0
- package/src/code-generation/paths/tables.ts +162 -0
- package/src/generated-unified/QuickbaseClient.ts +10 -8
- package/src/log-gen.ts +6 -2
- package/src/quickbaseClient.ts +35 -41
- package/tests/setup.ts +5 -1
- package/tests/vitest/qb/apps/copyApp.test.ts +76 -0
- package/tests/vitest/qb/apps/createApp.test.ts +64 -0
- package/tests/vitest/qb/apps/deleteApp.test.ts +76 -0
- package/tests/vitest/qb/fields/createField.test.ts +78 -0
- package/tests/vitest/qb/fields/deleteFields.test.ts +89 -0
- package/tests/vitest/qb/fields/getField.test.ts +85 -0
- package/tests/vitest/qb/fields/getFieldUsage.test.ts +174 -0
- package/tests/vitest/qb/fields/getFieldsUsage.test.ts +77 -0
- package/tests/vitest/qb/index.ts +25 -1
- package/tests/vitest/qb/records/deleteRecords.test.ts +42 -10
- package/tests/vitest/qb/records/runQuery.test.ts +81 -17
- package/tests/vitest/qb/records/upsert.test.ts +33 -3
- package/tests/vitest/qb/tables/getRelationships.test.ts +80 -0
- package/tests/vitest/unit/apps/copyApp.test.ts +282 -0
- package/tests/vitest/unit/apps/createApp.test.ts +125 -0
- package/tests/vitest/unit/apps/deleteApp.test.ts +215 -0
- package/tests/vitest/unit/fields/createField.test.ts +391 -0
- package/tests/vitest/unit/fields/deleteFields.test.ts +141 -0
- package/tests/vitest/unit/fields/getField.test.ts +189 -0
- package/tests/vitest/unit/fields/getFieldUsage.test.ts +147 -0
- package/tests/vitest/unit/fields/getFieldsUsage.test.ts +160 -0
- package/tests/vitest/unit/index.ts +30 -1
- package/tests/vitest/unit/tables/getRelationships.test.ts +259 -0
- package/src/code-generation/fix-spec-definitions.ts +0 -543
- package/src/code-generation/fix-spec-paths.ts +0 -355
- package/test-artifacts/test-results.json +0 -829
|
@@ -1,543 +0,0 @@
|
|
|
1
|
-
// src/code-generation/fix-spec-definitions.ts
|
|
2
|
-
export const definitions = {
|
|
3
|
-
App: {
|
|
4
|
-
type: "object",
|
|
5
|
-
required: ["id", "name"],
|
|
6
|
-
properties: {
|
|
7
|
-
id: { type: "string" },
|
|
8
|
-
name: { type: "string" },
|
|
9
|
-
created: { type: "string", format: "date-time" },
|
|
10
|
-
updated: { type: "string", format: "date-time" },
|
|
11
|
-
description: { type: "string" },
|
|
12
|
-
timeZone: { type: "string" },
|
|
13
|
-
dateFormat: { type: "string" },
|
|
14
|
-
hasEveryoneOnTheInternet: { type: "boolean" },
|
|
15
|
-
memoryInfo: { $ref: "#/definitions/AppMemoryInfo" },
|
|
16
|
-
securityProperties: { $ref: "#/definitions/AppSecurityProperties" },
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
AppMemoryInfo: {
|
|
20
|
-
type: "object",
|
|
21
|
-
properties: {
|
|
22
|
-
estMemory: { type: "number" },
|
|
23
|
-
estMemoryInclDependentApps: { type: "number" },
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
AppSecurityProperties: {
|
|
27
|
-
type: "object",
|
|
28
|
-
properties: {
|
|
29
|
-
allowClone: { type: "boolean" },
|
|
30
|
-
allowExport: { type: "boolean" },
|
|
31
|
-
enableAppTokens: { type: "boolean" },
|
|
32
|
-
hideFromPublic: { type: "boolean" },
|
|
33
|
-
mustBeRealmApproved: { type: "boolean" },
|
|
34
|
-
useIPFilter: { type: "boolean" },
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
CreateAppRequest: {
|
|
38
|
-
type: "object",
|
|
39
|
-
required: ["name"],
|
|
40
|
-
properties: {
|
|
41
|
-
name: {
|
|
42
|
-
type: "string",
|
|
43
|
-
description:
|
|
44
|
-
"The app name. Multiple apps with the same name are allowed in the same realm.",
|
|
45
|
-
},
|
|
46
|
-
assignToken: {
|
|
47
|
-
type: "boolean",
|
|
48
|
-
description:
|
|
49
|
-
"Set to true to assign the app to the user token used to create it. Default is false.",
|
|
50
|
-
},
|
|
51
|
-
description: {
|
|
52
|
-
type: "string",
|
|
53
|
-
description:
|
|
54
|
-
"The description for the app. Defaults to blank if omitted.",
|
|
55
|
-
},
|
|
56
|
-
securityProperties: {
|
|
57
|
-
$ref: "#/definitions/AppSecurityProperties",
|
|
58
|
-
description: "Application security properties.",
|
|
59
|
-
},
|
|
60
|
-
variables: {
|
|
61
|
-
type: "array",
|
|
62
|
-
items: {
|
|
63
|
-
type: "object",
|
|
64
|
-
properties: {
|
|
65
|
-
name: { type: "string" },
|
|
66
|
-
value: { type: "string" },
|
|
67
|
-
},
|
|
68
|
-
required: ["name", "value"],
|
|
69
|
-
},
|
|
70
|
-
description:
|
|
71
|
-
"App variables (max 10, optional). See About Application Variables.",
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
CreateApp200Response: {
|
|
76
|
-
type: "object",
|
|
77
|
-
properties: {
|
|
78
|
-
id: {
|
|
79
|
-
type: "string",
|
|
80
|
-
description: "The unique identifier for this application.",
|
|
81
|
-
},
|
|
82
|
-
name: { type: "string", description: "The app name." },
|
|
83
|
-
description: {
|
|
84
|
-
type: "string",
|
|
85
|
-
description: "The description for the app.",
|
|
86
|
-
},
|
|
87
|
-
created: {
|
|
88
|
-
type: "string",
|
|
89
|
-
format: "date-time",
|
|
90
|
-
description: "The time and date the app was created (ISO 8601, UTC).",
|
|
91
|
-
},
|
|
92
|
-
updated: {
|
|
93
|
-
type: "string",
|
|
94
|
-
format: "date-time",
|
|
95
|
-
description:
|
|
96
|
-
"The time and date the app was last updated (ISO 8601, UTC).",
|
|
97
|
-
},
|
|
98
|
-
dateFormat: {
|
|
99
|
-
type: "string",
|
|
100
|
-
description:
|
|
101
|
-
"The format used for displaying dates in the app (e.g., MM-DD-YYYY).",
|
|
102
|
-
},
|
|
103
|
-
timeZone: {
|
|
104
|
-
type: "string",
|
|
105
|
-
description:
|
|
106
|
-
"The time zone used for displaying time values (e.g., (UTC-08:00) Pacific Time).",
|
|
107
|
-
},
|
|
108
|
-
memoryInfo: {
|
|
109
|
-
$ref: "#/definitions/AppMemoryInfo",
|
|
110
|
-
description: "Application memory information.",
|
|
111
|
-
},
|
|
112
|
-
hasEveryoneOnTheInternet: {
|
|
113
|
-
type: "boolean",
|
|
114
|
-
description:
|
|
115
|
-
"Indicates if the app includes Everyone On The Internet access.",
|
|
116
|
-
},
|
|
117
|
-
variables: {
|
|
118
|
-
type: "array",
|
|
119
|
-
items: {
|
|
120
|
-
type: "object",
|
|
121
|
-
properties: {
|
|
122
|
-
name: { type: "string" },
|
|
123
|
-
value: { type: "string" },
|
|
124
|
-
},
|
|
125
|
-
required: ["name", "value"],
|
|
126
|
-
},
|
|
127
|
-
description: "The app variables.",
|
|
128
|
-
},
|
|
129
|
-
dataClassification: {
|
|
130
|
-
type: "string",
|
|
131
|
-
description:
|
|
132
|
-
"The Data Classification label assigned to the app (optional, may be 'None').",
|
|
133
|
-
},
|
|
134
|
-
securityProperties: {
|
|
135
|
-
$ref: "#/definitions/AppSecurityProperties",
|
|
136
|
-
description: "Security properties of the application.",
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
required: ["id", "name"],
|
|
140
|
-
},
|
|
141
|
-
Field: {
|
|
142
|
-
type: "object",
|
|
143
|
-
required: ["id", "label", "fieldType"],
|
|
144
|
-
properties: {
|
|
145
|
-
id: { type: "integer" },
|
|
146
|
-
label: { type: "string" },
|
|
147
|
-
fieldType: { type: "string" },
|
|
148
|
-
noWrap: { type: "boolean" },
|
|
149
|
-
bold: { type: "boolean" },
|
|
150
|
-
required: { type: "boolean" },
|
|
151
|
-
appearsByDefault: { type: "boolean" },
|
|
152
|
-
findEnabled: { type: "boolean" },
|
|
153
|
-
unique: { type: "boolean" },
|
|
154
|
-
doesDataCopy: { type: "boolean" },
|
|
155
|
-
fieldHelp: { type: "string" },
|
|
156
|
-
audited: { type: "boolean" },
|
|
157
|
-
properties: { $ref: "#/definitions/FieldProperties" },
|
|
158
|
-
permissions: {
|
|
159
|
-
type: "array",
|
|
160
|
-
items: { $ref: "#/definitions/FieldPermissionsInner" },
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
FieldProperties: {
|
|
165
|
-
type: "object",
|
|
166
|
-
properties: {
|
|
167
|
-
primaryKey: { type: "boolean" },
|
|
168
|
-
foreignKey: { type: "boolean" },
|
|
169
|
-
numLines: { type: "integer" },
|
|
170
|
-
maxLength: { type: "integer" },
|
|
171
|
-
appendOnly: { type: "boolean" },
|
|
172
|
-
allowHTML: { type: "boolean" },
|
|
173
|
-
allowMentions: { type: "boolean" },
|
|
174
|
-
sortAsGiven: { type: "boolean" },
|
|
175
|
-
carryChoices: { type: "boolean" },
|
|
176
|
-
allowNewChoices: { type: "boolean" },
|
|
177
|
-
formula: { type: "string" },
|
|
178
|
-
defaultValue: { type: "string" },
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
FieldPermissionsInner: {
|
|
182
|
-
type: "object",
|
|
183
|
-
properties: {
|
|
184
|
-
permissionType: { type: "string" },
|
|
185
|
-
role: { type: "string" },
|
|
186
|
-
roleId: { type: "integer" },
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
Table: {
|
|
190
|
-
type: "object",
|
|
191
|
-
required: ["id", "name"],
|
|
192
|
-
properties: {
|
|
193
|
-
id: {
|
|
194
|
-
type: "string",
|
|
195
|
-
description: "The unique identifier (dbid) of the table.",
|
|
196
|
-
},
|
|
197
|
-
name: { type: "string", description: "The name of the table." },
|
|
198
|
-
alias: {
|
|
199
|
-
type: "string",
|
|
200
|
-
description: "The automatically-created table alias for the table.",
|
|
201
|
-
},
|
|
202
|
-
description: {
|
|
203
|
-
type: "string",
|
|
204
|
-
description:
|
|
205
|
-
"The description of the table, as configured by an application administrator.",
|
|
206
|
-
},
|
|
207
|
-
created: {
|
|
208
|
-
type: "string",
|
|
209
|
-
format: "date-time",
|
|
210
|
-
description:
|
|
211
|
-
"The time and date when the table was created, in ISO 8601 format (UTC).",
|
|
212
|
-
},
|
|
213
|
-
updated: {
|
|
214
|
-
type: "string",
|
|
215
|
-
format: "date-time",
|
|
216
|
-
description:
|
|
217
|
-
"The time and date when the table schema or data was last updated, in ISO 8601 format (UTC).",
|
|
218
|
-
},
|
|
219
|
-
nextRecordId: {
|
|
220
|
-
type: "integer",
|
|
221
|
-
description:
|
|
222
|
-
"The incremental Record ID that will be used when the next record is created.",
|
|
223
|
-
},
|
|
224
|
-
nextFieldId: {
|
|
225
|
-
type: "integer",
|
|
226
|
-
description:
|
|
227
|
-
"The incremental Field ID that will be used when the next field is created.",
|
|
228
|
-
},
|
|
229
|
-
defaultSortFieldId: {
|
|
230
|
-
type: "integer",
|
|
231
|
-
description:
|
|
232
|
-
"The id of the field that is configured for default sorting.",
|
|
233
|
-
},
|
|
234
|
-
defaultSortOrder: {
|
|
235
|
-
type: "string",
|
|
236
|
-
enum: ["ASC", "DESC"],
|
|
237
|
-
description:
|
|
238
|
-
"The default sort order for the table, either ascending (ASC) or descending (DESC).",
|
|
239
|
-
},
|
|
240
|
-
keyFieldId: {
|
|
241
|
-
type: "integer",
|
|
242
|
-
description:
|
|
243
|
-
"The id of the field that is configured to be the key on this table, usually the Quickbase Record ID.",
|
|
244
|
-
},
|
|
245
|
-
singleRecordName: {
|
|
246
|
-
type: "string",
|
|
247
|
-
description: "The builder-configured singular noun of the table.",
|
|
248
|
-
},
|
|
249
|
-
pluralRecordName: {
|
|
250
|
-
type: "string",
|
|
251
|
-
description: "The builder-configured plural noun of the table.",
|
|
252
|
-
},
|
|
253
|
-
sizeLimit: {
|
|
254
|
-
type: "string",
|
|
255
|
-
description: "The size limit for the table (e.g., '150 MB').",
|
|
256
|
-
},
|
|
257
|
-
spaceUsed: {
|
|
258
|
-
type: "string",
|
|
259
|
-
description:
|
|
260
|
-
"The amount of space currently being used by the table (e.g., '17 MB').",
|
|
261
|
-
},
|
|
262
|
-
spaceRemaining: {
|
|
263
|
-
type: "string",
|
|
264
|
-
description:
|
|
265
|
-
"The amount of space remaining for use by the table (e.g., '133 MB').",
|
|
266
|
-
},
|
|
267
|
-
},
|
|
268
|
-
},
|
|
269
|
-
UpdateTableRequest: {
|
|
270
|
-
type: "object",
|
|
271
|
-
properties: {
|
|
272
|
-
name: { type: "string", description: "The new name for the table." },
|
|
273
|
-
singleRecordName: {
|
|
274
|
-
type: "string",
|
|
275
|
-
description:
|
|
276
|
-
"The new singular noun for records in the table. Defaults to 'Record' if not provided.",
|
|
277
|
-
},
|
|
278
|
-
pluralRecordName: {
|
|
279
|
-
type: "string",
|
|
280
|
-
description:
|
|
281
|
-
"The new plural noun for records in the table. Defaults to 'Records' if not provided.",
|
|
282
|
-
},
|
|
283
|
-
description: {
|
|
284
|
-
type: "string",
|
|
285
|
-
description:
|
|
286
|
-
"The new description for the table. Defaults to blank if not provided.",
|
|
287
|
-
},
|
|
288
|
-
},
|
|
289
|
-
description:
|
|
290
|
-
"Request body for updating table properties. At least one property must be provided.",
|
|
291
|
-
},
|
|
292
|
-
DeleteTableResponse: {
|
|
293
|
-
type: "object",
|
|
294
|
-
properties: {
|
|
295
|
-
deletedTableId: { type: "string", description: "The deleted table id." },
|
|
296
|
-
},
|
|
297
|
-
},
|
|
298
|
-
Record: {
|
|
299
|
-
type: "object",
|
|
300
|
-
properties: {
|
|
301
|
-
_dummy: {
|
|
302
|
-
type: "string",
|
|
303
|
-
description: "Unused dummy property to force model generation.",
|
|
304
|
-
nullable: true,
|
|
305
|
-
},
|
|
306
|
-
},
|
|
307
|
-
additionalProperties: {
|
|
308
|
-
type: "object",
|
|
309
|
-
properties: {
|
|
310
|
-
value: {
|
|
311
|
-
type: ["string", "number", "boolean", "object", "array", "null"],
|
|
312
|
-
},
|
|
313
|
-
},
|
|
314
|
-
description: "The value object for a field ID key.",
|
|
315
|
-
},
|
|
316
|
-
description:
|
|
317
|
-
"A record with field ID keys (e.g., '6') and value objects (e.g., { value: 'data' }).",
|
|
318
|
-
},
|
|
319
|
-
UpsertRequest: {
|
|
320
|
-
type: "object",
|
|
321
|
-
required: ["to"],
|
|
322
|
-
properties: {
|
|
323
|
-
to: { type: "string", description: "The table identifier (dbid)." },
|
|
324
|
-
data: {
|
|
325
|
-
type: "array",
|
|
326
|
-
items: { $ref: "#/definitions/Record" },
|
|
327
|
-
description: "Array of records to upsert.",
|
|
328
|
-
},
|
|
329
|
-
mergeFieldId: {
|
|
330
|
-
type: "integer",
|
|
331
|
-
description: "The field ID to merge on (optional).",
|
|
332
|
-
},
|
|
333
|
-
fieldsToReturn: {
|
|
334
|
-
type: "array",
|
|
335
|
-
items: { type: "integer" },
|
|
336
|
-
description: "Field IDs to return in the response (optional).",
|
|
337
|
-
},
|
|
338
|
-
},
|
|
339
|
-
},
|
|
340
|
-
Upsert200Response: {
|
|
341
|
-
type: "object",
|
|
342
|
-
properties: {
|
|
343
|
-
data: {
|
|
344
|
-
type: "array",
|
|
345
|
-
items: {
|
|
346
|
-
type: "object",
|
|
347
|
-
additionalProperties: {
|
|
348
|
-
type: "object",
|
|
349
|
-
properties: { value: { type: "any" } },
|
|
350
|
-
},
|
|
351
|
-
},
|
|
352
|
-
description: "Array of upserted records with field IDs and values.",
|
|
353
|
-
},
|
|
354
|
-
metadata: {
|
|
355
|
-
type: "object",
|
|
356
|
-
properties: {
|
|
357
|
-
createdRecordIds: {
|
|
358
|
-
type: "array",
|
|
359
|
-
items: { type: "integer" },
|
|
360
|
-
description: "IDs of newly created records.",
|
|
361
|
-
},
|
|
362
|
-
updatedRecordIds: {
|
|
363
|
-
type: "array",
|
|
364
|
-
items: { type: "integer" },
|
|
365
|
-
description: "IDs of updated records.",
|
|
366
|
-
},
|
|
367
|
-
unchangedRecordIds: {
|
|
368
|
-
type: "array",
|
|
369
|
-
items: { type: "integer" },
|
|
370
|
-
description: "IDs of unchanged records.",
|
|
371
|
-
},
|
|
372
|
-
totalNumberOfRecordsProcessed: {
|
|
373
|
-
type: "integer",
|
|
374
|
-
description: "Total records processed.",
|
|
375
|
-
},
|
|
376
|
-
},
|
|
377
|
-
required: ["totalNumberOfRecordsProcessed"],
|
|
378
|
-
},
|
|
379
|
-
},
|
|
380
|
-
},
|
|
381
|
-
Upsert207Response: {
|
|
382
|
-
type: "object",
|
|
383
|
-
properties: {
|
|
384
|
-
data: {
|
|
385
|
-
type: "array",
|
|
386
|
-
items: {
|
|
387
|
-
type: "object",
|
|
388
|
-
additionalProperties: {
|
|
389
|
-
type: "object",
|
|
390
|
-
properties: { value: { type: "any" } },
|
|
391
|
-
},
|
|
392
|
-
},
|
|
393
|
-
description: "Array of successfully upserted records (may be empty).",
|
|
394
|
-
},
|
|
395
|
-
metadata: {
|
|
396
|
-
type: "object",
|
|
397
|
-
properties: {
|
|
398
|
-
createdRecordIds: { type: "array", items: { type: "integer" } },
|
|
399
|
-
updatedRecordIds: { type: "array", items: { type: "integer" } },
|
|
400
|
-
unchangedRecordIds: { type: "array", items: { type: "integer" } },
|
|
401
|
-
lineErrors: {
|
|
402
|
-
type: "object",
|
|
403
|
-
additionalProperties: { type: "array", items: { type: "string" } },
|
|
404
|
-
description: "Errors by line number (1-based index).",
|
|
405
|
-
},
|
|
406
|
-
totalNumberOfRecordsProcessed: { type: "integer" },
|
|
407
|
-
},
|
|
408
|
-
required: ["totalNumberOfRecordsProcessed"],
|
|
409
|
-
},
|
|
410
|
-
},
|
|
411
|
-
},
|
|
412
|
-
ReportRunResponse: {
|
|
413
|
-
type: "object",
|
|
414
|
-
properties: {
|
|
415
|
-
id: { type: "string" },
|
|
416
|
-
data: { type: "object" },
|
|
417
|
-
},
|
|
418
|
-
},
|
|
419
|
-
GetTempTokenDBID200Response: {
|
|
420
|
-
type: "object",
|
|
421
|
-
required: ["temporaryAuthorization"],
|
|
422
|
-
properties: {
|
|
423
|
-
temporaryAuthorization: { type: "string" },
|
|
424
|
-
},
|
|
425
|
-
},
|
|
426
|
-
DeleteRecordsRequest: {
|
|
427
|
-
type: "object",
|
|
428
|
-
required: ["from", "where"],
|
|
429
|
-
properties: {
|
|
430
|
-
from: {
|
|
431
|
-
type: "string",
|
|
432
|
-
description:
|
|
433
|
-
"The table identifier (dbid) from which to delete records.",
|
|
434
|
-
},
|
|
435
|
-
where: {
|
|
436
|
-
type: "string",
|
|
437
|
-
description:
|
|
438
|
-
"A QuickBase query string specifying which records to delete.",
|
|
439
|
-
},
|
|
440
|
-
},
|
|
441
|
-
description:
|
|
442
|
-
"Request body for deleting records from a table using a query.",
|
|
443
|
-
},
|
|
444
|
-
DeleteRecords200Response: {
|
|
445
|
-
type: "object",
|
|
446
|
-
properties: {
|
|
447
|
-
numberDeleted: {
|
|
448
|
-
type: "integer",
|
|
449
|
-
description: "The number of records successfully deleted.",
|
|
450
|
-
},
|
|
451
|
-
},
|
|
452
|
-
required: ["numberDeleted"],
|
|
453
|
-
description: "Response body for successful deletion of records.",
|
|
454
|
-
},
|
|
455
|
-
RunQueryRequest: {
|
|
456
|
-
type: "object",
|
|
457
|
-
required: ["from"],
|
|
458
|
-
properties: {
|
|
459
|
-
from: { type: "string", description: "Table ID (dbid)" },
|
|
460
|
-
select: {
|
|
461
|
-
type: "array",
|
|
462
|
-
items: { type: "integer" },
|
|
463
|
-
description: "Field IDs to return",
|
|
464
|
-
},
|
|
465
|
-
where: { type: "string", description: "Query string" },
|
|
466
|
-
sortBy: {
|
|
467
|
-
type: "array",
|
|
468
|
-
items: {
|
|
469
|
-
type: "object",
|
|
470
|
-
properties: {
|
|
471
|
-
fieldId: { type: "integer" },
|
|
472
|
-
order: { type: "string", enum: ["ASC", "DESC"] },
|
|
473
|
-
},
|
|
474
|
-
},
|
|
475
|
-
description: "Sort criteria",
|
|
476
|
-
},
|
|
477
|
-
groupBy: {
|
|
478
|
-
type: "array",
|
|
479
|
-
items: {
|
|
480
|
-
type: "object",
|
|
481
|
-
properties: {
|
|
482
|
-
fieldId: { type: "integer" },
|
|
483
|
-
grouping: { type: "string", enum: ["equal-values"] },
|
|
484
|
-
},
|
|
485
|
-
},
|
|
486
|
-
description: "Grouping criteria",
|
|
487
|
-
},
|
|
488
|
-
options: {
|
|
489
|
-
type: "object",
|
|
490
|
-
properties: {
|
|
491
|
-
skip: { type: "integer", description: "Number of records to skip" },
|
|
492
|
-
top: {
|
|
493
|
-
type: "integer",
|
|
494
|
-
description: "Max number of records to return",
|
|
495
|
-
},
|
|
496
|
-
compareWithAppLocalTime: {
|
|
497
|
-
type: "boolean",
|
|
498
|
-
description: "Compare times with app local time",
|
|
499
|
-
},
|
|
500
|
-
},
|
|
501
|
-
},
|
|
502
|
-
},
|
|
503
|
-
},
|
|
504
|
-
RunQueryResponse: {
|
|
505
|
-
type: "object",
|
|
506
|
-
properties: {
|
|
507
|
-
data: {
|
|
508
|
-
type: "array",
|
|
509
|
-
items: {
|
|
510
|
-
type: "object",
|
|
511
|
-
additionalProperties: {
|
|
512
|
-
type: "object",
|
|
513
|
-
properties: { value: { type: "any" } },
|
|
514
|
-
},
|
|
515
|
-
},
|
|
516
|
-
description: "Array of record data with field IDs as keys",
|
|
517
|
-
},
|
|
518
|
-
fields: {
|
|
519
|
-
type: "array",
|
|
520
|
-
items: {
|
|
521
|
-
type: "object",
|
|
522
|
-
properties: {
|
|
523
|
-
id: { type: "integer" },
|
|
524
|
-
label: { type: "string" },
|
|
525
|
-
type: { type: "string" },
|
|
526
|
-
},
|
|
527
|
-
},
|
|
528
|
-
description: "Field metadata",
|
|
529
|
-
},
|
|
530
|
-
metadata: {
|
|
531
|
-
type: "object",
|
|
532
|
-
properties: {
|
|
533
|
-
numFields: { type: "integer" },
|
|
534
|
-
numRecords: { type: "integer" },
|
|
535
|
-
skip: { type: "integer" },
|
|
536
|
-
top: { type: "integer" },
|
|
537
|
-
totalRecords: { type: "integer" },
|
|
538
|
-
},
|
|
539
|
-
description: "Query metadata",
|
|
540
|
-
},
|
|
541
|
-
},
|
|
542
|
-
},
|
|
543
|
-
};
|