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.
Files changed (52) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +54 -0
  3. package/build.js +175 -55
  4. package/dist/{quickbase.js → esm/quickbase.js} +5 -3
  5. package/dist/esm/quickbase.js.map +1 -0
  6. package/dist/esm/quickbase.min.js +2 -0
  7. package/dist/esm/quickbase.min.js.map +1 -0
  8. package/dist/umd/quickbase.umd.d.ts +5341 -0
  9. package/dist/umd/quickbase.umd.js +7698 -0
  10. package/dist/umd/quickbase.umd.js.map +1 -0
  11. package/dist/umd/quickbase.umd.min.js +2 -0
  12. package/dist/umd/quickbase.umd.min.js.map +1 -0
  13. package/examples/vanillatest.html +49 -0
  14. package/log-gen.yaml +884 -6055
  15. package/{src/code-generation → open-api}/fix-spec-main.ts +1 -1
  16. package/{src/code-generation → open-api}/generate-unified-interface.ts +42 -17
  17. package/{src/code-generation → open-api}/regenerate-client.ts +4 -4
  18. package/package.json +25 -14
  19. package/rollup.config.mjs +114 -0
  20. package/src/generated-unified/QuickbaseClient.ts +1 -1
  21. package/src/quickbaseClient.ts +5 -3
  22. package/test-artifacts/.last-run.json +4 -2
  23. package/test-esm.js +1 -0
  24. package/test-umd.js +1 -0
  25. package/test.ts +1 -0
  26. package/tests/playwright/qb/auth/umd.test.ts +10 -0
  27. package/tests/vitest/unit/umd.test.ts +8 -0
  28. package/{src → tools}/log-gen.ts +16 -14
  29. package/tools/openapi-jars/openapi-generator-cli-7.12.0.jar +0 -0
  30. package/tsconfig.build.json +17 -0
  31. package/tsconfig.json +5 -5
  32. package/dist/quickbase.js.map +0 -1
  33. package/rollup.config.js +0 -70
  34. /package/dist/{quickbase.d.ts → esm/quickbase.d.ts} +0 -0
  35. /package/{src/code-generation → open-api}/definitions/apps.ts +0 -0
  36. /package/{src/code-generation → open-api}/definitions/auth.ts +0 -0
  37. /package/{src/code-generation → open-api}/definitions/fields.ts +0 -0
  38. /package/{src/code-generation → open-api}/definitions/index.ts +0 -0
  39. /package/{src/code-generation → open-api}/definitions/records.ts +0 -0
  40. /package/{src/code-generation → open-api}/definitions/relationships.ts +0 -0
  41. /package/{src/code-generation → open-api}/definitions/reports.ts +0 -0
  42. /package/{src/code-generation → open-api}/definitions/tables.ts +0 -0
  43. /package/{src/code-generation → open-api}/output/quickbase-fixed.json +0 -0
  44. /package/{src/code-generation → open-api}/paths/apps.ts +0 -0
  45. /package/{src/code-generation → open-api}/paths/auth.ts +0 -0
  46. /package/{src/code-generation → open-api}/paths/fields.ts +0 -0
  47. /package/{src/code-generation → open-api}/paths/index.ts +0 -0
  48. /package/{src/code-generation → open-api}/paths/records.ts +0 -0
  49. /package/{src/code-generation → open-api}/paths/relationships.ts +0 -0
  50. /package/{src/code-generation → open-api}/paths/reports.ts +0 -0
  51. /package/{src/code-generation → open-api}/paths/tables.ts +0 -0
  52. /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>