quickbase-js 0.1.0-beta.9 → 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 +270 -60
- package/dist/esm/quickbase.d.ts +2553 -3220
- package/dist/esm/quickbase.js +1545 -3443
- 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 +1544 -3625
- 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 +25 -12
- package/CHANGELOG.md +0 -184
- 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 -336
- 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/generateJsDoc.ts +0 -96
- 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 -41
- package/src/authorizationStrategy.ts +0 -246
- package/src/generated-unified/QuickbaseClient.ts +0 -1049
- package/src/generated-unified/missing-types-report.json +0 -3
- package/src/index.ts +0 -1
- package/src/invokeMethod.ts +0 -242
- package/src/quickbaseClient.ts +0 -271
- package/src/rateLimiter.ts +0 -25
- package/src/tokenCache.ts +0 -35
- 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/mockQuickbaseServer.ts +0 -60
- package/tests/vitest/qb/auth/retryUserToken401.test.ts +0 -73
- package/tests/vitest/qb/auth/ssoTokenIntegrationWithServer.test.ts +0 -65
- 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 -82
- 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/formulas/runFormula.test.ts +0 -96
- 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/createRelationship.test.ts +0 -102
- package/tests/vitest/qb/tables/createTable.test.ts +0 -55
- package/tests/vitest/qb/tables/deleteRelationship.test.ts +0 -143
- 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 -250
- package/tests/vitest/qb/tables/updateTable.test.ts +0 -48
- package/tests/vitest/unit/ThrottleBucket.test.ts +0 -95
- package/tests/vitest/unit/apps/copyApp.test.ts +0 -581
- 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 -412
- package/tests/vitest/unit/auth/fetchTempToken401.test.ts +0 -63
- package/tests/vitest/unit/auth/getTempToken.test.ts +0 -119
- package/tests/vitest/unit/auth/retryTempToken401.test.ts +0 -95
- package/tests/vitest/unit/auth/retryTempTokenMaxRetries.test.ts +0 -235
- package/tests/vitest/unit/auth/retryUserToken401.test.ts +0 -69
- package/tests/vitest/unit/auth/ssoTokenRefresh.test.ts +0 -325
- package/tests/vitest/unit/fields/createField.test.ts +0 -451
- 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 -180
- 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 -285
- package/tests/vitest/unit/formulas/runFormula.test.ts +0 -205
- package/tests/vitest/unit/index.ts +0 -34
- package/tests/vitest/unit/inferHttpMethod.test.ts +0 -131
- package/tests/vitest/unit/rateLimit.test.ts +0 -191
- 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/createRelationship.test.ts +0 -212
- package/tests/vitest/unit/tables/createTable.test.ts +0 -70
- package/tests/vitest/unit/tables/deleteRelationship.test.ts +0 -97
- 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 -307
- package/tests/vitest/unit/tables/updateTable.test.ts +0 -80
- package/tests/vitest/unit/tokenLifespan.test.ts +0 -204
- package/tests/vitest/unit/umd.test.ts +0 -8
- package/text.txt +0 -104
- package/tools/log-gen.ts +0 -244
- package/tools/log-gen.yaml +0 -5424
- 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/rollup.config.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import terser from "@rollup/plugin-terser";
|
|
2
|
-
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
3
|
-
import commonjs from "@rollup/plugin-commonjs";
|
|
4
|
-
import dts from "rollup-plugin-dts";
|
|
5
|
-
import typescript from "@rollup/plugin-typescript";
|
|
6
|
-
|
|
7
|
-
const isProd = process.env.NODE_ENV === "production";
|
|
8
|
-
|
|
9
|
-
// External dependencies for both ESM and UMD builds
|
|
10
|
-
const external = [
|
|
11
|
-
"node:http",
|
|
12
|
-
"node:https",
|
|
13
|
-
"node:zlib",
|
|
14
|
-
"node:stream",
|
|
15
|
-
"node:buffer",
|
|
16
|
-
"node:util",
|
|
17
|
-
"node:url",
|
|
18
|
-
"node:net",
|
|
19
|
-
"node:fs",
|
|
20
|
-
"node:path",
|
|
21
|
-
"node-fetch",
|
|
22
|
-
];
|
|
23
|
-
|
|
24
|
-
// Global mappings for UMD (browser) build
|
|
25
|
-
const globals = {
|
|
26
|
-
"node-fetch": "fetch", // Map node-fetch to window.fetch in browsers
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export default [
|
|
30
|
-
// ESM Build
|
|
31
|
-
{
|
|
32
|
-
input: "src/quickbaseClient.ts",
|
|
33
|
-
output: {
|
|
34
|
-
dir: "dist/esm",
|
|
35
|
-
format: "esm",
|
|
36
|
-
sourcemap: true,
|
|
37
|
-
entryFileNames: "quickbase.js",
|
|
38
|
-
},
|
|
39
|
-
external,
|
|
40
|
-
plugins: [
|
|
41
|
-
nodeResolve({ preferBuiltins: true }), // Node.js resolution
|
|
42
|
-
commonjs(), // Convert CommonJS to ESM
|
|
43
|
-
typescript({
|
|
44
|
-
tsconfig: "./tsconfig.json",
|
|
45
|
-
noEmitOnError: true, // Fail on TypeScript errors
|
|
46
|
-
// Use Rollup to emit JavaScript, overriding noEmit for this build
|
|
47
|
-
}),
|
|
48
|
-
isProd && terser(), // Minification for production
|
|
49
|
-
],
|
|
50
|
-
},
|
|
51
|
-
// UMD Build
|
|
52
|
-
{
|
|
53
|
-
input: "src/quickbaseClient.ts",
|
|
54
|
-
output: {
|
|
55
|
-
file: "dist/umd/quickbase.umd.js",
|
|
56
|
-
format: "umd",
|
|
57
|
-
name: "QuickbaseJS", // Global name for browser
|
|
58
|
-
sourcemap: true,
|
|
59
|
-
globals,
|
|
60
|
-
},
|
|
61
|
-
external,
|
|
62
|
-
plugins: [
|
|
63
|
-
nodeResolve({ preferBuiltins: true, browser: true }), // Browser-first resolution
|
|
64
|
-
commonjs(), // Convert CommonJS to UMD
|
|
65
|
-
typescript({
|
|
66
|
-
tsconfig: "./tsconfig.json",
|
|
67
|
-
noEmitOnError: true, // Fail on TypeScript errors
|
|
68
|
-
// Use Rollup to emit JavaScript, overriding noEmit for this build
|
|
69
|
-
}),
|
|
70
|
-
isProd && terser(), // Minification for production
|
|
71
|
-
],
|
|
72
|
-
},
|
|
73
|
-
// ESM Declarations
|
|
74
|
-
{
|
|
75
|
-
input: "src/quickbaseClient.ts",
|
|
76
|
-
output: {
|
|
77
|
-
file: "dist/esm/quickbase.d.ts",
|
|
78
|
-
format: "esm",
|
|
79
|
-
},
|
|
80
|
-
plugins: [
|
|
81
|
-
dts({
|
|
82
|
-
tsconfig: "./tsconfig.json",
|
|
83
|
-
respectExternal: true, // Include external dependencies in declarations
|
|
84
|
-
}),
|
|
85
|
-
],
|
|
86
|
-
},
|
|
87
|
-
// UMD Declarations
|
|
88
|
-
{
|
|
89
|
-
input: "src/quickbaseClient.ts",
|
|
90
|
-
output: {
|
|
91
|
-
file: "dist/umd/quickbase.umd.d.ts",
|
|
92
|
-
format: "umd",
|
|
93
|
-
},
|
|
94
|
-
plugins: [
|
|
95
|
-
dts({
|
|
96
|
-
tsconfig: "./tsconfig.json",
|
|
97
|
-
respectExternal: true, // Include external dependencies in declarations
|
|
98
|
-
}),
|
|
99
|
-
],
|
|
100
|
-
},
|
|
101
|
-
].map((config) => ({
|
|
102
|
-
...config,
|
|
103
|
-
onwarn(warning, warn) {
|
|
104
|
-
// Suppress TypeScript plugin warnings
|
|
105
|
-
if (
|
|
106
|
-
warning.code === "PLUGIN_WARNING" &&
|
|
107
|
-
warning.plugin === "typescript" &&
|
|
108
|
-
warning.message.includes("TS5096")
|
|
109
|
-
) {
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
warn(warning);
|
|
113
|
-
},
|
|
114
|
-
}));
|