quickbase-js 0.1.0-beta.8 → 1.0.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.
- package/README.md +252 -126
- package/dist/esm/quickbase.d.ts +2725 -2689
- package/dist/esm/quickbase.js +1763 -3524
- package/dist/esm/quickbase.js.map +1 -1
- package/dist/esm/quickbase.min.js +1 -1
- package/dist/esm/quickbase.min.js.map +1 -1
- package/dist/umd/quickbase.umd.js +1762 -3706
- package/dist/umd/quickbase.umd.js.map +1 -1
- package/dist/umd/quickbase.umd.min.js +1 -1
- package/dist/umd/quickbase.umd.min.js.map +1 -1
- package/package.json +27 -12
- package/CHANGELOG.md +0 -155
- package/build-common.js +0 -131
- package/build-esm.js +0 -71
- package/build-umd.js +0 -69
- package/examples/quicbase-jsCDN.html +0 -36
- package/examples/react.js +0 -48
- package/examples/vanillajs.html +0 -47
- package/open-api/fix-spec-main.ts +0 -97
- package/open-api/generate-override-report.ts +0 -214
- package/open-api/generate-unified-interface.ts +0 -256
- package/open-api/output/override-report.html +0 -11
- package/open-api/output/override-report.json +0 -14395
- package/open-api/output/quickbase-fixed.json +0 -11191
- package/open-api/regenerate-client.ts +0 -116
- package/open-api/schema/enhance-general.ts +0 -100
- package/open-api/schema/fix-arrays.ts +0 -69
- package/open-api/schema/tags/apps.ts +0 -90
- package/open-api/schema/tags/fields.ts +0 -471
- package/open-api/schema/tags/groups.ts +0 -51
- package/open-api/schema/tags/index.ts +0 -66
- package/open-api/schema/tags/records.ts +0 -115
- package/open-api/schema/tags/tables.ts +0 -211
- package/open-api/schema/tags/users.ts +0 -47
- package/open-api/types/spec.ts +0 -42
- package/open-api/utils/infer-schema.ts +0 -40
- package/open-api/utils/naming.ts +0 -10
- package/playwright.config.ts +0 -37
- package/rollup.config.js +0 -114
- package/specs/QuickBase_RESTful_API_2025-03-04T06_22_39.725Z.json +0 -46878
- package/specs/split/apps.json +0 -1315
- package/specs/split/auth.json +0 -191
- package/specs/split/fields.json +0 -3869
- package/specs/split/records.json +0 -754
- package/specs/split/reports.json +0 -619
- package/specs/split/tables.json +0 -1605
- package/src/RateLimitError.ts +0 -12
- package/src/ThrottleBucket.ts +0 -36
- package/src/generated-unified/QuickbaseClient.ts +0 -359
- package/src/generated-unified/missing-types-report.json +0 -3
- package/src/index.ts +0 -1
- package/src/invokeMethod.ts +0 -357
- package/src/quickbaseClient.ts +0 -244
- package/src/tokenCache.ts +0 -51
- package/src/utils.ts +0 -7
- package/test-esm.js +0 -1
- package/test-results.json +0 -2050
- package/test-umd.js +0 -1
- package/test.ts +0 -1
- package/tests/playwright/qb/auth/cacheSwitching.test.ts +0 -159
- package/tests/playwright/qb/auth/fetchTempToken401.test.ts +0 -219
- package/tests/playwright/qb/auth/getAppWithTempToken.test.ts +0 -162
- package/tests/playwright/qb/auth/getAppWithUserToken.test.ts +0 -153
- package/tests/playwright/qb/auth/getTempToken.test.ts +0 -152
- package/tests/playwright/qb/auth/tempTokenPrefetch.test.ts +0 -179
- package/tests/playwright/qb/auth/tempTokenRenewal.test.ts +0 -133
- package/tests/setup.ts +0 -53
- package/tests/vitest/qb/apps/copyApp.test.ts +0 -76
- package/tests/vitest/qb/apps/createApp.test.ts +0 -64
- package/tests/vitest/qb/apps/deleteApp.test.ts +0 -76
- package/tests/vitest/qb/apps/getApp.test.ts +0 -44
- package/tests/vitest/qb/apps/getAppEvents.test.ts +0 -67
- package/tests/vitest/qb/apps/updateApp.test.ts +0 -58
- package/tests/vitest/qb/auth/retryUserToken401.test.ts +0 -56
- package/tests/vitest/qb/fields/createField.test.ts +0 -77
- package/tests/vitest/qb/fields/deleteFields.test.ts +0 -83
- package/tests/vitest/qb/fields/getField.test.ts +0 -85
- package/tests/vitest/qb/fields/getFieldUsage.test.ts +0 -174
- package/tests/vitest/qb/fields/getFields.test.ts +0 -232
- package/tests/vitest/qb/fields/getFieldsUsage.test.ts +0 -77
- package/tests/vitest/qb/fields/updateField.test.ts +0 -93
- package/tests/vitest/qb/index.ts +0 -29
- package/tests/vitest/qb/records/deleteRecords.test.ts +0 -110
- package/tests/vitest/qb/records/runQuery.test.ts +0 -146
- package/tests/vitest/qb/records/upsert.test.ts +0 -102
- package/tests/vitest/qb/tables/createTable.test.ts +0 -55
- package/tests/vitest/qb/tables/deleteTable.test.ts +0 -50
- package/tests/vitest/qb/tables/getAppTables.test.ts +0 -46
- package/tests/vitest/qb/tables/getRelationships.test.ts +0 -80
- package/tests/vitest/qb/tables/getTable.test.ts +0 -26
- package/tests/vitest/qb/tables/updateRelationship.test.ts +0 -277
- package/tests/vitest/qb/tables/updateTable.test.ts +0 -48
- package/tests/vitest/unit/apps/copyApp.test.ts +0 -488
- package/tests/vitest/unit/apps/createApp.test.ts +0 -186
- package/tests/vitest/unit/apps/deleteApp.test.ts +0 -216
- package/tests/vitest/unit/apps/getApp.test.ts +0 -128
- package/tests/vitest/unit/apps/getAppEvents.test.ts +0 -193
- package/tests/vitest/unit/apps/updateApp.test.ts +0 -381
- package/tests/vitest/unit/auth/fetchTempToken401.test.ts +0 -62
- package/tests/vitest/unit/auth/getTempToken.test.ts +0 -95
- package/tests/vitest/unit/auth/retryTempToken401.test.ts +0 -113
- package/tests/vitest/unit/auth/retryTempTokenTwo401.test.ts +0 -81
- package/tests/vitest/unit/auth/retryUserToken401.test.ts +0 -56
- package/tests/vitest/unit/fields/createField.test.ts +0 -387
- package/tests/vitest/unit/fields/deleteFields.test.ts +0 -141
- package/tests/vitest/unit/fields/getField.test.ts +0 -189
- package/tests/vitest/unit/fields/getFieldUsage.test.ts +0 -166
- package/tests/vitest/unit/fields/getFields.test.ts +0 -122
- package/tests/vitest/unit/fields/getFieldsUsage.test.ts +0 -160
- package/tests/vitest/unit/fields/updateField.test.ts +0 -280
- package/tests/vitest/unit/index.ts +0 -33
- package/tests/vitest/unit/rateLimit.test.ts +0 -189
- package/tests/vitest/unit/records/deleteRecords.test.ts +0 -112
- package/tests/vitest/unit/records/runQuery.test.ts +0 -102
- package/tests/vitest/unit/records/upsert.test.ts +0 -234
- package/tests/vitest/unit/tables/createTable.test.ts +0 -70
- package/tests/vitest/unit/tables/deleteTable.test.ts +0 -77
- package/tests/vitest/unit/tables/getAppTables.test.ts +0 -85
- package/tests/vitest/unit/tables/getRelationships.test.ts +0 -259
- package/tests/vitest/unit/tables/getTable.test.ts +0 -233
- package/tests/vitest/unit/tables/updateRelationship.test.ts +0 -305
- package/tests/vitest/unit/tables/updateTable.test.ts +0 -80
- package/tests/vitest/unit/tokenLifespan.test.ts +0 -138
- package/tests/vitest/unit/umd.test.ts +0 -8
- package/text.txt +0 -104
- package/tools/log-gen.ts +0 -235
- package/tools/log-gen.yaml +0 -4982
- package/tools/openapi-jars/openapi-generator-cli-7.12.0.jar +0 -0
- package/tsconfig.build.json +0 -17
- package/tsconfig.json +0 -32
- package/versionrc.json +0 -9
- package/vitest.config.ts +0 -27
package/specs/split/reports.json
DELETED
|
@@ -1,619 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"swagger": "2.0",
|
|
3
|
-
"info": {
|
|
4
|
-
"title": "Quick Base API",
|
|
5
|
-
"version": "1.0.0"
|
|
6
|
-
},
|
|
7
|
-
"paths": {
|
|
8
|
-
"/reports": {
|
|
9
|
-
"get": {
|
|
10
|
-
"description": "Get the schema (properties) of all reports for a table. If the user running the API is an application administrator, the API will also return all personal reports with owner's user id.",
|
|
11
|
-
"operationId": "getTableReports",
|
|
12
|
-
"summary": "Get reports for a table",
|
|
13
|
-
"consumes": [
|
|
14
|
-
"application/json"
|
|
15
|
-
],
|
|
16
|
-
"produces": [
|
|
17
|
-
"application/json"
|
|
18
|
-
],
|
|
19
|
-
"parameters": [
|
|
20
|
-
{
|
|
21
|
-
"name": "tableId",
|
|
22
|
-
"in": "query",
|
|
23
|
-
"required": true,
|
|
24
|
-
"description": "The unique identifier of the table.",
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "QB-Realm-Hostname",
|
|
29
|
-
"in": "header",
|
|
30
|
-
"required": true,
|
|
31
|
-
"description": "Your Quickbase domain, for example demo.quickbase.com",
|
|
32
|
-
"type": "string"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "User-Agent",
|
|
36
|
-
"in": "header",
|
|
37
|
-
"required": false,
|
|
38
|
-
"description": "This is entered by the person or utility invoking the API. You might custom create this or use the default one of your toolkit. Being descriptive here may offer more identification and troubleshooting capabilities.",
|
|
39
|
-
"type": "string"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"name": "Authorization",
|
|
43
|
-
"in": "header",
|
|
44
|
-
"required": true,
|
|
45
|
-
"description": "The Quickbase authentication scheme you are using to authenticate the request, as described on the [authorization page](../auth).",
|
|
46
|
-
"type": "string"
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"responses": {
|
|
50
|
-
"200": {
|
|
51
|
-
"description": "Success",
|
|
52
|
-
"x-amf-mediaType": "application/json",
|
|
53
|
-
"schema": {
|
|
54
|
-
"description": "This is simple example of report schema for more details please refer [Report types page](../reportTypes)",
|
|
55
|
-
"type": "array",
|
|
56
|
-
"items": {
|
|
57
|
-
"example": {
|
|
58
|
-
"value": {
|
|
59
|
-
"id": "5",
|
|
60
|
-
"name": "table-report",
|
|
61
|
-
"type": "table",
|
|
62
|
-
"description": "This is Table report.",
|
|
63
|
-
"query": {
|
|
64
|
-
"tableId": "bpweef42b",
|
|
65
|
-
"filter": "{6.CT.'FilterByThisValue'}",
|
|
66
|
-
"formulaFields": [
|
|
67
|
-
{
|
|
68
|
-
"id": -100,
|
|
69
|
-
"label": "NumericField",
|
|
70
|
-
"fieldType": "numeric",
|
|
71
|
-
"formula": "1+1",
|
|
72
|
-
"decimalPrecision": 4
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
"fields": [
|
|
76
|
-
7
|
|
77
|
-
],
|
|
78
|
-
"sortBy": [
|
|
79
|
-
{
|
|
80
|
-
"fieldId": 28,
|
|
81
|
-
"order": "ASC"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"fieldId": 3,
|
|
85
|
-
"order": "ASC"
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"groupBy": [
|
|
89
|
-
{
|
|
90
|
-
"fieldId": 3,
|
|
91
|
-
"grouping": "equal-values"
|
|
92
|
-
}
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
"properties": {
|
|
96
|
-
"displayOnlyNewOrChangedRecords": true,
|
|
97
|
-
"columnProperties": [
|
|
98
|
-
{
|
|
99
|
-
"fieldId": -100,
|
|
100
|
-
"labelOverride": "Numeric Field Label"
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
},
|
|
104
|
-
"usedLast": "2020-09-20T20:23:00Z",
|
|
105
|
-
"usedCount": 7
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
"type": "object",
|
|
109
|
-
"additionalProperties": true,
|
|
110
|
-
"properties": {
|
|
111
|
-
"id": {
|
|
112
|
-
"description": "The identifier of the report, unique to the table.",
|
|
113
|
-
"type": "string"
|
|
114
|
-
},
|
|
115
|
-
"name": {
|
|
116
|
-
"description": "The configured name of the report.",
|
|
117
|
-
"type": "string"
|
|
118
|
-
},
|
|
119
|
-
"type": {
|
|
120
|
-
"description": "The type of report in Quickbase (e.g., chart).",
|
|
121
|
-
"type": "string"
|
|
122
|
-
},
|
|
123
|
-
"description": {
|
|
124
|
-
"description": "The configured description of a report.",
|
|
125
|
-
"type": "string"
|
|
126
|
-
},
|
|
127
|
-
"ownerId": {
|
|
128
|
-
"description": "Optional, showed only for personal reports. The user ID of report owner.",
|
|
129
|
-
"type": "integer"
|
|
130
|
-
},
|
|
131
|
-
"query": {
|
|
132
|
-
"description": "The query definition as configured in Quickbase that gets executed when the report is run.",
|
|
133
|
-
"type": "object",
|
|
134
|
-
"additionalProperties": true,
|
|
135
|
-
"properties": {
|
|
136
|
-
"tableId": {
|
|
137
|
-
"description": "The table identifier for the report.",
|
|
138
|
-
"type": "string"
|
|
139
|
-
},
|
|
140
|
-
"filter": {
|
|
141
|
-
"description": "Filter used to query for data.",
|
|
142
|
-
"type": "string"
|
|
143
|
-
},
|
|
144
|
-
"formulaFields": {
|
|
145
|
-
"description": "Calculated formula fields.",
|
|
146
|
-
"type": "array",
|
|
147
|
-
"items": {
|
|
148
|
-
"type": "object",
|
|
149
|
-
"additionalProperties": true,
|
|
150
|
-
"properties": {
|
|
151
|
-
"id": {
|
|
152
|
-
"description": "Formula field identifier.",
|
|
153
|
-
"type": "integer"
|
|
154
|
-
},
|
|
155
|
-
"label": {
|
|
156
|
-
"description": "Formula field label.",
|
|
157
|
-
"type": "string"
|
|
158
|
-
},
|
|
159
|
-
"fieldType": {
|
|
160
|
-
"description": "Resulting formula value type.",
|
|
161
|
-
"enum": [
|
|
162
|
-
"rich-text",
|
|
163
|
-
"text",
|
|
164
|
-
"numeric",
|
|
165
|
-
"currency",
|
|
166
|
-
"percent",
|
|
167
|
-
"rating",
|
|
168
|
-
"date",
|
|
169
|
-
"timestamp",
|
|
170
|
-
"timeofday",
|
|
171
|
-
"duration",
|
|
172
|
-
"checkbox",
|
|
173
|
-
"phone",
|
|
174
|
-
"email",
|
|
175
|
-
"user",
|
|
176
|
-
"multiuser",
|
|
177
|
-
"url"
|
|
178
|
-
],
|
|
179
|
-
"type": "string"
|
|
180
|
-
},
|
|
181
|
-
"formula": {
|
|
182
|
-
"description": "Formula text.",
|
|
183
|
-
"type": "string"
|
|
184
|
-
},
|
|
185
|
-
"decimalPrecision": {
|
|
186
|
-
"description": "For numeric formula the number precision.",
|
|
187
|
-
"type": "integer"
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
"properties": {
|
|
195
|
-
"description": "A list of properties specific to the report type. To see a detailed description of the properties for each report type, See [Report Types.](../reportTypes)",
|
|
196
|
-
"type": "object",
|
|
197
|
-
"additionalProperties": true
|
|
198
|
-
},
|
|
199
|
-
"usedLast": {
|
|
200
|
-
"description": "The instant at which a report was last used.",
|
|
201
|
-
"type": "string"
|
|
202
|
-
},
|
|
203
|
-
"usedCount": {
|
|
204
|
-
"description": "The number of times a report has been used.",
|
|
205
|
-
"type": "integer"
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
"tags": [
|
|
213
|
-
"Reports"
|
|
214
|
-
]
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
"/reports/{reportId}": {
|
|
218
|
-
"get": {
|
|
219
|
-
"description": "Get the schema (properties) of an individual report.",
|
|
220
|
-
"operationId": "getReport",
|
|
221
|
-
"summary": "Get a report",
|
|
222
|
-
"consumes": [
|
|
223
|
-
"application/json"
|
|
224
|
-
],
|
|
225
|
-
"produces": [
|
|
226
|
-
"application/json"
|
|
227
|
-
],
|
|
228
|
-
"parameters": [
|
|
229
|
-
{
|
|
230
|
-
"name": "tableId",
|
|
231
|
-
"in": "query",
|
|
232
|
-
"required": true,
|
|
233
|
-
"description": "The unique identifier of table.",
|
|
234
|
-
"type": "string"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"name": "reportId",
|
|
238
|
-
"in": "path",
|
|
239
|
-
"required": true,
|
|
240
|
-
"description": "The identifier of the report, unique to the table.",
|
|
241
|
-
"type": "string"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"name": "QB-Realm-Hostname",
|
|
245
|
-
"in": "header",
|
|
246
|
-
"required": true,
|
|
247
|
-
"description": "Your Quickbase domain, for example demo.quickbase.com",
|
|
248
|
-
"type": "string"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"name": "User-Agent",
|
|
252
|
-
"in": "header",
|
|
253
|
-
"required": false,
|
|
254
|
-
"description": "This is entered by the person or utility invoking the API. You might custom create this or use the default one of your toolkit. Being descriptive here may offer more identification and troubleshooting capabilities.",
|
|
255
|
-
"type": "string"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"name": "Authorization",
|
|
259
|
-
"in": "header",
|
|
260
|
-
"required": true,
|
|
261
|
-
"description": "The Quickbase authentication scheme you are using to authenticate the request, as described on the [authorization page](../auth).",
|
|
262
|
-
"type": "string"
|
|
263
|
-
}
|
|
264
|
-
],
|
|
265
|
-
"responses": {
|
|
266
|
-
"200": {
|
|
267
|
-
"description": "Success",
|
|
268
|
-
"x-amf-mediaType": "application/json",
|
|
269
|
-
"schema": {
|
|
270
|
-
"example": {
|
|
271
|
-
"value": {
|
|
272
|
-
"id": "5",
|
|
273
|
-
"name": "table-report",
|
|
274
|
-
"type": "table",
|
|
275
|
-
"description": "This is Table report.",
|
|
276
|
-
"query": {
|
|
277
|
-
"tableId": "bpweef42b",
|
|
278
|
-
"filter": "{6.CT.'FilterByThisValue'}",
|
|
279
|
-
"formulaFields": [
|
|
280
|
-
{
|
|
281
|
-
"id": -100,
|
|
282
|
-
"label": "NumericField",
|
|
283
|
-
"fieldType": "numeric",
|
|
284
|
-
"formula": "1+1",
|
|
285
|
-
"decimalPrecision": 4
|
|
286
|
-
}
|
|
287
|
-
],
|
|
288
|
-
"fields": [
|
|
289
|
-
7
|
|
290
|
-
],
|
|
291
|
-
"sortBy": [
|
|
292
|
-
{
|
|
293
|
-
"fieldId": 28,
|
|
294
|
-
"order": "ASC"
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
"fieldId": 3,
|
|
298
|
-
"order": "ASC"
|
|
299
|
-
}
|
|
300
|
-
],
|
|
301
|
-
"groupBy": [
|
|
302
|
-
{
|
|
303
|
-
"fieldId": 3,
|
|
304
|
-
"grouping": "equal-values"
|
|
305
|
-
}
|
|
306
|
-
]
|
|
307
|
-
},
|
|
308
|
-
"properties": {
|
|
309
|
-
"displayOnlyNewOrChangedRecords": true,
|
|
310
|
-
"columnProperties": [
|
|
311
|
-
{
|
|
312
|
-
"fieldId": -100,
|
|
313
|
-
"labelOverride": "Numeric Field Label"
|
|
314
|
-
}
|
|
315
|
-
]
|
|
316
|
-
},
|
|
317
|
-
"usedLast": "2020-09-20T20:23:00Z",
|
|
318
|
-
"usedCount": 7
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
"type": "object",
|
|
322
|
-
"additionalProperties": true,
|
|
323
|
-
"properties": {
|
|
324
|
-
"id": {
|
|
325
|
-
"description": "The identifier of the report, unique to the table.",
|
|
326
|
-
"type": "string"
|
|
327
|
-
},
|
|
328
|
-
"name": {
|
|
329
|
-
"description": "The configured name of the report.",
|
|
330
|
-
"type": "string"
|
|
331
|
-
},
|
|
332
|
-
"type": {
|
|
333
|
-
"description": "The type of report in Quickbase (e.g., chart).",
|
|
334
|
-
"type": "string"
|
|
335
|
-
},
|
|
336
|
-
"description": {
|
|
337
|
-
"description": "The configured description of a report.",
|
|
338
|
-
"type": "string"
|
|
339
|
-
},
|
|
340
|
-
"ownerId": {
|
|
341
|
-
"description": "Optional, showed only for personal reports. The user ID of report owner.",
|
|
342
|
-
"type": "integer"
|
|
343
|
-
},
|
|
344
|
-
"query": {
|
|
345
|
-
"description": "The query definition as configured in Quickbase that gets executed when the report is run.",
|
|
346
|
-
"type": "object",
|
|
347
|
-
"additionalProperties": true,
|
|
348
|
-
"properties": {
|
|
349
|
-
"tableId": {
|
|
350
|
-
"description": "The table identifier for the report.",
|
|
351
|
-
"type": "string"
|
|
352
|
-
},
|
|
353
|
-
"filter": {
|
|
354
|
-
"description": "Filter used to query for data.",
|
|
355
|
-
"type": "string"
|
|
356
|
-
},
|
|
357
|
-
"formulaFields": {
|
|
358
|
-
"description": "Calculated formula fields.",
|
|
359
|
-
"type": "array",
|
|
360
|
-
"items": {
|
|
361
|
-
"type": "object",
|
|
362
|
-
"additionalProperties": true,
|
|
363
|
-
"properties": {
|
|
364
|
-
"id": {
|
|
365
|
-
"description": "Formula field identifier.",
|
|
366
|
-
"type": "integer"
|
|
367
|
-
},
|
|
368
|
-
"label": {
|
|
369
|
-
"description": "Formula field label.",
|
|
370
|
-
"type": "string"
|
|
371
|
-
},
|
|
372
|
-
"fieldType": {
|
|
373
|
-
"description": "Resulting formula value type.",
|
|
374
|
-
"enum": [
|
|
375
|
-
"rich-text",
|
|
376
|
-
"text",
|
|
377
|
-
"numeric",
|
|
378
|
-
"currency",
|
|
379
|
-
"percent",
|
|
380
|
-
"rating",
|
|
381
|
-
"date",
|
|
382
|
-
"timestamp",
|
|
383
|
-
"timeofday",
|
|
384
|
-
"duration",
|
|
385
|
-
"checkbox",
|
|
386
|
-
"phone",
|
|
387
|
-
"email",
|
|
388
|
-
"user",
|
|
389
|
-
"multiuser",
|
|
390
|
-
"url"
|
|
391
|
-
],
|
|
392
|
-
"type": "string"
|
|
393
|
-
},
|
|
394
|
-
"formula": {
|
|
395
|
-
"description": "Formula text.",
|
|
396
|
-
"type": "string"
|
|
397
|
-
},
|
|
398
|
-
"decimalPrecision": {
|
|
399
|
-
"description": "For numeric formula the number precision.",
|
|
400
|
-
"type": "integer"
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
},
|
|
407
|
-
"properties": {
|
|
408
|
-
"description": "A list of properties specific to the report type. To see a detailed description of the properties for each report type, See [Report Types.](../reportTypes)",
|
|
409
|
-
"type": "object",
|
|
410
|
-
"additionalProperties": true
|
|
411
|
-
},
|
|
412
|
-
"usedLast": {
|
|
413
|
-
"description": "The instant at which a report was last used.",
|
|
414
|
-
"type": "string"
|
|
415
|
-
},
|
|
416
|
-
"usedCount": {
|
|
417
|
-
"description": "The number of times a report has been used.",
|
|
418
|
-
"type": "integer"
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
},
|
|
424
|
-
"tags": [
|
|
425
|
-
"Reports"
|
|
426
|
-
]
|
|
427
|
-
}
|
|
428
|
-
},
|
|
429
|
-
"/reports/{reportId}/run": {
|
|
430
|
-
"post": {
|
|
431
|
-
"description": "Runs a report, based on an ID and returns the underlying data associated with it. The format of the data will vary based on the report type. Reports that focus on record-level data (table, calendar, etc.) return the individual records. Aggregate reports (summary, chart) will return the summarized information as configured in the report. UI-specific elements are not returned, such as totals, averages and visualizations. Returns data with intelligent pagination based on the approximate size of each record. The metadata object will include the necessary information to iterate over the response and gather more data.",
|
|
432
|
-
"summary": "Run a report",
|
|
433
|
-
"operationId": "runReport",
|
|
434
|
-
"consumes": [
|
|
435
|
-
"application/json"
|
|
436
|
-
],
|
|
437
|
-
"produces": [
|
|
438
|
-
"application/json"
|
|
439
|
-
],
|
|
440
|
-
"parameters": [
|
|
441
|
-
{
|
|
442
|
-
"name": "tableId",
|
|
443
|
-
"in": "query",
|
|
444
|
-
"required": true,
|
|
445
|
-
"description": "The identifier of the table for the report.",
|
|
446
|
-
"type": "string"
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"name": "skip",
|
|
450
|
-
"in": "query",
|
|
451
|
-
"required": false,
|
|
452
|
-
"description": "The number of records to skip. You can set this value when paginating through a set of results.",
|
|
453
|
-
"type": "integer"
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
"name": "top",
|
|
457
|
-
"in": "query",
|
|
458
|
-
"required": false,
|
|
459
|
-
"description": "The maximum number of records to return. You can override the default Quickbase pagination to get more or fewer results. If your requested value here exceeds the dynamic maximums, we will return a subset of results and the rest can be gathered in subsequent API calls.",
|
|
460
|
-
"type": "integer"
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
"name": "reportId",
|
|
464
|
-
"in": "path",
|
|
465
|
-
"required": true,
|
|
466
|
-
"description": "The identifier of the report, unique to the table.",
|
|
467
|
-
"type": "string"
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
"name": "QB-Realm-Hostname",
|
|
471
|
-
"in": "header",
|
|
472
|
-
"required": true,
|
|
473
|
-
"description": "Your Quickbase domain, for example demo.quickbase.com",
|
|
474
|
-
"type": "string"
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
"name": "User-Agent",
|
|
478
|
-
"in": "header",
|
|
479
|
-
"required": false,
|
|
480
|
-
"description": "This is entered by the person or utility invoking the API. You might custom create this or use the default one of your toolkit. Being descriptive here may offer more identification and troubleshooting capabilities.",
|
|
481
|
-
"type": "string"
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
"name": "Authorization",
|
|
485
|
-
"in": "header",
|
|
486
|
-
"required": true,
|
|
487
|
-
"description": "The Quickbase authentication scheme you are using to authenticate the request, as described on the [authorization page](../auth).",
|
|
488
|
-
"type": "string"
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
"name": "generated",
|
|
492
|
-
"in": "body",
|
|
493
|
-
"schema": {}
|
|
494
|
-
}
|
|
495
|
-
],
|
|
496
|
-
"responses": {
|
|
497
|
-
"200": {
|
|
498
|
-
"description": "Success",
|
|
499
|
-
"x-amf-mediaType": "application/json",
|
|
500
|
-
"schema": {
|
|
501
|
-
"example": {
|
|
502
|
-
"value": {
|
|
503
|
-
"data": [
|
|
504
|
-
{
|
|
505
|
-
"6": {
|
|
506
|
-
"value": "Jamie Stein"
|
|
507
|
-
},
|
|
508
|
-
"7": {
|
|
509
|
-
"value": 10
|
|
510
|
-
},
|
|
511
|
-
"8": {
|
|
512
|
-
"value": "2019-12-18T08:00:00Z"
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
],
|
|
516
|
-
"fields": [
|
|
517
|
-
{
|
|
518
|
-
"id": 6,
|
|
519
|
-
"label": "Full Name",
|
|
520
|
-
"type": "text"
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
"id": 7,
|
|
524
|
-
"label": "Amount",
|
|
525
|
-
"labelOverride": "Total Amount",
|
|
526
|
-
"type": "numeric"
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
"id": 8,
|
|
530
|
-
"label": "Date time",
|
|
531
|
-
"type": "date time"
|
|
532
|
-
}
|
|
533
|
-
],
|
|
534
|
-
"metadata": {
|
|
535
|
-
"totalRecords": 10,
|
|
536
|
-
"numRecords": 1,
|
|
537
|
-
"numFields": 3,
|
|
538
|
-
"skip": 0,
|
|
539
|
-
"top": 1
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
},
|
|
543
|
-
"type": "object",
|
|
544
|
-
"additionalProperties": true,
|
|
545
|
-
"properties": {
|
|
546
|
-
"fields": {
|
|
547
|
-
"description": "An array of objects that contains limited meta-data of each field displayed in the report. This assists in building logic that depends on field types and IDs.",
|
|
548
|
-
"type": "array",
|
|
549
|
-
"items": {
|
|
550
|
-
"type": "object",
|
|
551
|
-
"additionalProperties": true,
|
|
552
|
-
"properties": {
|
|
553
|
-
"id": {
|
|
554
|
-
"description": "Field id.",
|
|
555
|
-
"type": "integer"
|
|
556
|
-
},
|
|
557
|
-
"label": {
|
|
558
|
-
"description": "Field label.",
|
|
559
|
-
"type": "string"
|
|
560
|
-
},
|
|
561
|
-
"type": {
|
|
562
|
-
"description": "Field type.",
|
|
563
|
-
"type": "string"
|
|
564
|
-
},
|
|
565
|
-
"labelOverride": {
|
|
566
|
-
"description": "Column heading label override for field in report.",
|
|
567
|
-
"type": "string"
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
},
|
|
572
|
-
"data": {
|
|
573
|
-
"description": "An array of objects that either represents the record data or summarized values, depending on the report type.",
|
|
574
|
-
"type": "array"
|
|
575
|
-
},
|
|
576
|
-
"metadata": {
|
|
577
|
-
"description": "Additional information about the results that may be helpful. Pagination may be needed if either you specify a smaller number of results to skip than is available, or if the API automatically returns fewer results. numRecords can be compared to totalRecords to determine if further pagination is needed.",
|
|
578
|
-
"type": "object",
|
|
579
|
-
"additionalProperties": true,
|
|
580
|
-
"required": [
|
|
581
|
-
"numFields",
|
|
582
|
-
"totalRecords",
|
|
583
|
-
"numRecords"
|
|
584
|
-
],
|
|
585
|
-
"properties": {
|
|
586
|
-
"skip": {
|
|
587
|
-
"description": "The number of records to skip",
|
|
588
|
-
"type": "integer"
|
|
589
|
-
},
|
|
590
|
-
"numFields": {
|
|
591
|
-
"description": "The number of fields in each record in the current response object",
|
|
592
|
-
"type": "integer"
|
|
593
|
-
},
|
|
594
|
-
"top": {
|
|
595
|
-
"description": "If present, the maximum number of records requested by the caller",
|
|
596
|
-
"type": "integer"
|
|
597
|
-
},
|
|
598
|
-
"totalRecords": {
|
|
599
|
-
"description": "The total number of records in the result set",
|
|
600
|
-
"type": "integer"
|
|
601
|
-
},
|
|
602
|
-
"numRecords": {
|
|
603
|
-
"description": "The number of records in the current response object",
|
|
604
|
-
"type": "integer"
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
},
|
|
612
|
-
"tags": [
|
|
613
|
-
"Reports"
|
|
614
|
-
]
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
},
|
|
618
|
-
"definitions": {}
|
|
619
|
-
}
|