quickbase-js 1.1.0-beta.4 → 1.1.0-beta.6
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 +15 -0
- package/README.md +54 -0
- package/build.js +175 -55
- package/dist/{quickbase.js → esm/quickbase.js} +5 -3
- package/dist/esm/quickbase.js.map +1 -0
- package/dist/esm/quickbase.min.js +2 -0
- package/dist/esm/quickbase.min.js.map +1 -0
- package/dist/umd/quickbase.umd.d.ts +5341 -0
- package/dist/umd/quickbase.umd.js +7698 -0
- package/dist/umd/quickbase.umd.js.map +1 -0
- package/dist/umd/quickbase.umd.min.js +2 -0
- package/dist/umd/quickbase.umd.min.js.map +1 -0
- package/examples/vanillatest.html +49 -0
- package/log-gen.yaml +884 -6055
- package/{src/code-generation → open-api}/fix-spec-main.ts +1 -1
- package/{src/code-generation → open-api}/generate-unified-interface.ts +42 -17
- package/{src/code-generation → open-api}/regenerate-client.ts +4 -4
- package/package.json +25 -14
- package/rollup.config.mjs +114 -0
- package/src/generated-unified/QuickbaseClient.ts +1 -1
- package/src/quickbaseClient.ts +5 -3
- package/test-artifacts/.last-run.json +4 -2
- package/test-esm.js +1 -0
- package/test-umd.js +1 -0
- package/test.ts +1 -0
- package/tests/playwright/qb/auth/umd.test.ts +10 -0
- package/tests/vitest/unit/umd.test.ts +8 -0
- package/{src → tools}/log-gen.ts +16 -14
- package/tools/openapi-jars/openapi-generator-cli-7.12.0.jar +0 -0
- package/tsconfig.build.json +17 -0
- package/tsconfig.json +5 -5
- package/dist/quickbase.js.map +0 -1
- package/rollup.config.js +0 -70
- /package/dist/{quickbase.d.ts → esm/quickbase.d.ts} +0 -0
- /package/{src/code-generation → open-api}/definitions/apps.ts +0 -0
- /package/{src/code-generation → open-api}/definitions/auth.ts +0 -0
- /package/{src/code-generation → open-api}/definitions/fields.ts +0 -0
- /package/{src/code-generation → open-api}/definitions/index.ts +0 -0
- /package/{src/code-generation → open-api}/definitions/records.ts +0 -0
- /package/{src/code-generation → open-api}/definitions/relationships.ts +0 -0
- /package/{src/code-generation → open-api}/definitions/reports.ts +0 -0
- /package/{src/code-generation → open-api}/definitions/tables.ts +0 -0
- /package/{src/code-generation → open-api}/output/quickbase-fixed.json +0 -0
- /package/{src/code-generation → open-api}/paths/apps.ts +0 -0
- /package/{src/code-generation → open-api}/paths/auth.ts +0 -0
- /package/{src/code-generation → open-api}/paths/fields.ts +0 -0
- /package/{src/code-generation → open-api}/paths/index.ts +0 -0
- /package/{src/code-generation → open-api}/paths/records.ts +0 -0
- /package/{src/code-generation → open-api}/paths/relationships.ts +0 -0
- /package/{src/code-generation → open-api}/paths/reports.ts +0 -0
- /package/{src/code-generation → open-api}/paths/tables.ts +0 -0
- /package/{src/specs → specs}/QuickBase_RESTful_API_2025-03-04T06_22_39.725Z.json +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<title>Quickbase CDN Test</title>
|
|
6
|
+
<!-- Load Quickbase library from CDN -->
|
|
7
|
+
<script src="https://cdn.jsdelivr.net/npm/quickbase-js@1.1.0-beta.5/dist/umd/quickbase.umd.min.js"></script>
|
|
8
|
+
</head>
|
|
9
|
+
|
|
10
|
+
<body>
|
|
11
|
+
<div>
|
|
12
|
+
<h1>Quickbase CDN Test</h1>
|
|
13
|
+
<p id="result">Loading...</p>
|
|
14
|
+
</div>
|
|
15
|
+
<script>
|
|
16
|
+
// Log the global object for debugging
|
|
17
|
+
console.log("Window object:", window);
|
|
18
|
+
|
|
19
|
+
// Log the QuickbaseJS variable for debugging
|
|
20
|
+
console.log("QuickbaseJS:", typeof QuickbaseJS);
|
|
21
|
+
|
|
22
|
+
// Ensure the QuickbaseJS library is loaded
|
|
23
|
+
if (typeof QuickbaseJS === "undefined") {
|
|
24
|
+
console.error("QuickbaseJS library not loaded.");
|
|
25
|
+
document.getElementById("result").textContent = "Error: Failed to load QuickbaseJS library.";
|
|
26
|
+
} else {
|
|
27
|
+
console.log("QuickbaseJS library loaded successfully.");
|
|
28
|
+
|
|
29
|
+
// Initialize the Quickbase client
|
|
30
|
+
var qbClient = QuickbaseJS.quickbase({
|
|
31
|
+
realm: "builderprogram-dbradford6815", // Replace with your realm (without .quickbase.com)
|
|
32
|
+
useTempTokens: true,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
// Fetch the app using the getApp method
|
|
36
|
+
qbClient.getApp({ appId: "buwai2zpe" })
|
|
37
|
+
.then(function (app) {
|
|
38
|
+
document.getElementById("result").textContent = "App Name: " + app.name;
|
|
39
|
+
})
|
|
40
|
+
.catch(function (err) {
|
|
41
|
+
console.error("Error fetching app:", err);
|
|
42
|
+
document.getElementById("result").textContent =
|
|
43
|
+
"Error: " + (err.message || "Failed to load app");
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
</script>
|
|
47
|
+
</body>
|
|
48
|
+
|
|
49
|
+
</html>
|