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/auth.json
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"swagger": "2.0",
|
|
3
|
-
"info": {
|
|
4
|
-
"title": "Quick Base API",
|
|
5
|
-
"version": "1.0.0"
|
|
6
|
-
},
|
|
7
|
-
"paths": {
|
|
8
|
-
"/auth/temporary/{dbid}": {
|
|
9
|
-
"get": {
|
|
10
|
-
"description": "Use this endpoint to get a temporary authorization token, scoped to either an app or a table. It can only be used inside of code pages for client-side authentication because it relies on the browser session. Learn more about [extending Quickbase](https://helpv2.quickbase.com/hc/en-us/articles/4570341709844-Extending-Quickbase). You can then use this token to make other API calls (see [authorization](../auth)). This token expires in 5 minutes.",
|
|
11
|
-
"summary": "Get a temporary token for a dbid",
|
|
12
|
-
"operationId": "getTempTokenDBID",
|
|
13
|
-
"consumes": [
|
|
14
|
-
"application/json"
|
|
15
|
-
],
|
|
16
|
-
"produces": [
|
|
17
|
-
"application/json"
|
|
18
|
-
],
|
|
19
|
-
"parameters": [
|
|
20
|
-
{
|
|
21
|
-
"name": "dbid",
|
|
22
|
-
"in": "path",
|
|
23
|
-
"required": true,
|
|
24
|
-
"description": "The unique identifier of an app or 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": "QB-App-Token",
|
|
43
|
-
"in": "header",
|
|
44
|
-
"required": false,
|
|
45
|
-
"description": "Your Quickbase app token",
|
|
46
|
-
"type": "string"
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"responses": {
|
|
50
|
-
"200": {
|
|
51
|
-
"description": "This token is used in the authorization header value (similar to the QB-USER-TOKEN), except it uses the QB-TEMP-TOKEN prefix header['Authorization'] = 'QB-TEMP-TOKEN {token}'",
|
|
52
|
-
"x-amf-mediaType": "application/json",
|
|
53
|
-
"schema": {
|
|
54
|
-
"example": {
|
|
55
|
-
"temporaryAuthorization": "token"
|
|
56
|
-
},
|
|
57
|
-
"type": "object",
|
|
58
|
-
"additionalProperties": true,
|
|
59
|
-
"properties": {
|
|
60
|
-
"temporaryAuthorization": {
|
|
61
|
-
"description": "Temporary authorization token.",
|
|
62
|
-
"type": "string"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"tags": [
|
|
69
|
-
"Auth"
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"/auth/oauth/token": {
|
|
74
|
-
"post": {
|
|
75
|
-
"description": "Use this endpoint to exchange a SAML assertion for a Quickbase token following [RFC 8693](https://www.rfc-editor.org/rfc/rfc8693.html). Callers can choose to return a token compatible with SCIM, XML, or RESTful APIs. The token duration is determined by the [SAML timeout session time](https://helpv2.quickbase.com/hc/en-us/articles/4570410646420-SAML-assertion-example#:~:text=Setting%20SAML%20timeout%20session%20time). You must be able to create a SAML assertion in your code to use this endpoint. The SAML assertion is verified against the configuration on the realm. Learn more about about [SAML assertions](https://helpv2.quickbase.com/hc/en-us/articles/4570410646420-SAML-assertion-example).",
|
|
76
|
-
"summary": "Exchange an SSO token",
|
|
77
|
-
"operationId": "exchangeSsoToken",
|
|
78
|
-
"consumes": [
|
|
79
|
-
"application/json"
|
|
80
|
-
],
|
|
81
|
-
"produces": [
|
|
82
|
-
"application/json"
|
|
83
|
-
],
|
|
84
|
-
"parameters": [
|
|
85
|
-
{
|
|
86
|
-
"name": "QB-Realm-Hostname",
|
|
87
|
-
"in": "header",
|
|
88
|
-
"required": true,
|
|
89
|
-
"description": "Your Quickbase domain, for example demo.quickbase.com",
|
|
90
|
-
"type": "string"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"name": "User-Agent",
|
|
94
|
-
"in": "header",
|
|
95
|
-
"required": false,
|
|
96
|
-
"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.",
|
|
97
|
-
"type": "string"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "generated",
|
|
101
|
-
"in": "body",
|
|
102
|
-
"schema": {
|
|
103
|
-
"example": {
|
|
104
|
-
"grant_type": "urn:ietf:params:oauth:grant-type:token-exchange",
|
|
105
|
-
"requested_token_type": "urn:quickbase:params:oauth:token-type:temp_ticket",
|
|
106
|
-
"subject_token": "PHNhbWxwOlJlc3BvbnNlDQogICAgeG1sbnM6c2FtbHA9bjp...",
|
|
107
|
-
"subject_token_type": "urn:ietf:params:oauth:token-type:saml2"
|
|
108
|
-
},
|
|
109
|
-
"type": "object",
|
|
110
|
-
"additionalProperties": false,
|
|
111
|
-
"required": [
|
|
112
|
-
"grant_type",
|
|
113
|
-
"subject_token",
|
|
114
|
-
"subject_token_type",
|
|
115
|
-
"requested_token_type"
|
|
116
|
-
],
|
|
117
|
-
"properties": {
|
|
118
|
-
"grant_type": {
|
|
119
|
-
"type": "string",
|
|
120
|
-
"description": "The value `urn:ietf:params:oauth:grant-type:token-exchange` indicates that a token exchange is being performed.",
|
|
121
|
-
"enum": [
|
|
122
|
-
"urn:ietf:params:oauth:grant-type:token-exchange"
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
"requested_token_type": {
|
|
126
|
-
"type": "string",
|
|
127
|
-
"description": "An identifier for the type of the requested security token. For the RESTful API, use `urn:quickbase:params:oauth:token-type:temp_token`. For the XML or SCIM APIs use `urn:quickbase:params:oauth:token-type:temp_ticket`.",
|
|
128
|
-
"enum": [
|
|
129
|
-
"urn:quickbase:params:oauth:token-type:temp_ticket",
|
|
130
|
-
"urn:quickbase:params:oauth:token-type:temp_token"
|
|
131
|
-
]
|
|
132
|
-
},
|
|
133
|
-
"subject_token": {
|
|
134
|
-
"type": "string",
|
|
135
|
-
"description": "A security token that represents the identity of the party on behalf of whom the request is being made. For SAML 2.0, the value should be a base64url-encoded SAML 2.0 assertion."
|
|
136
|
-
},
|
|
137
|
-
"subject_token_type": {
|
|
138
|
-
"type": "string",
|
|
139
|
-
"description": "An identifier that indicates the type of the security token in the `subject_token` parameter.",
|
|
140
|
-
"enum": [
|
|
141
|
-
"urn:ietf:params:oauth:token-type:saml2"
|
|
142
|
-
]
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
],
|
|
148
|
-
"responses": {
|
|
149
|
-
"200": {
|
|
150
|
-
"description": "Success",
|
|
151
|
-
"x-amf-mediaType": "application/json",
|
|
152
|
-
"schema": {
|
|
153
|
-
"example": {
|
|
154
|
-
"access_token": "example_token_1NiIsImtpZCI6IjllciJ9w",
|
|
155
|
-
"issued_token_type": "urn:quickbase:params:oauth:token-type:temp_ticket",
|
|
156
|
-
"token_type": "N_A"
|
|
157
|
-
},
|
|
158
|
-
"type": "object",
|
|
159
|
-
"additionalProperties": true,
|
|
160
|
-
"properties": {
|
|
161
|
-
"access_token": {
|
|
162
|
-
"type": "string",
|
|
163
|
-
"description": "The security token issued by the authorization server in response to the token exchange request. The identifier `access_token` is used for historical reasons and the issued token need not be an OAuth access token."
|
|
164
|
-
},
|
|
165
|
-
"issued_token_type": {
|
|
166
|
-
"type": "string",
|
|
167
|
-
"description": "An identifier for the representation of the issued security token.",
|
|
168
|
-
"enum": [
|
|
169
|
-
"urn:quickbase:params:oauth:token-type:temp_ticket",
|
|
170
|
-
"urn:quickbase:params:oauth:token-type:temp_token"
|
|
171
|
-
]
|
|
172
|
-
},
|
|
173
|
-
"token_type": {
|
|
174
|
-
"type": "string",
|
|
175
|
-
"description": "Will always return `N_A`",
|
|
176
|
-
"enum": [
|
|
177
|
-
"N_A"
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
"tags": [
|
|
185
|
-
"Auth"
|
|
186
|
-
]
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
"definitions": {}
|
|
191
|
-
}
|