quickbase-js 1.1.0-beta.2 → 1.1.0-beta.4

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 (59) hide show
  1. package/CHANGELOG.md +53 -22
  2. package/README.md +61 -5
  3. package/dist/quickbase.d.ts +1711 -613
  4. package/dist/quickbase.js +1469 -468
  5. package/dist/quickbase.js.map +1 -1
  6. package/examples/react.js +12 -12
  7. package/examples/vanillajs.html +12 -12
  8. package/log-gen.yaml +3558 -528
  9. package/package.json +12 -14
  10. package/playwright-results.txt/.last-run.json +4 -0
  11. package/playwright.config.ts +1 -1
  12. package/src/code-generation/definitions/apps.ts +274 -0
  13. package/src/code-generation/definitions/auth.ts +10 -0
  14. package/src/code-generation/definitions/fields.ts +751 -0
  15. package/src/code-generation/definitions/index.ts +18 -0
  16. package/src/code-generation/definitions/records.ts +269 -0
  17. package/src/code-generation/definitions/relationships.ts +90 -0
  18. package/src/code-generation/definitions/reports.ts +10 -0
  19. package/src/code-generation/definitions/tables.ts +112 -0
  20. package/src/code-generation/fix-spec-main.ts +2 -2
  21. package/src/code-generation/output/quickbase-fixed.json +1724 -3044
  22. package/src/code-generation/paths/apps.ts +100 -0
  23. package/src/code-generation/paths/auth.ts +25 -0
  24. package/src/code-generation/paths/fields.ts +207 -0
  25. package/src/code-generation/paths/index.ts +17 -0
  26. package/src/code-generation/paths/records.ts +68 -0
  27. package/src/code-generation/paths/relationships.ts +32 -0
  28. package/src/code-generation/paths/reports.ts +34 -0
  29. package/src/code-generation/paths/tables.ts +162 -0
  30. package/src/generated-unified/QuickbaseClient.ts +10 -8
  31. package/src/log-gen.ts +6 -2
  32. package/src/quickbaseClient.ts +35 -41
  33. package/tests/setup.ts +5 -1
  34. package/tests/vitest/qb/apps/copyApp.test.ts +76 -0
  35. package/tests/vitest/qb/apps/createApp.test.ts +64 -0
  36. package/tests/vitest/qb/apps/deleteApp.test.ts +76 -0
  37. package/tests/vitest/qb/fields/createField.test.ts +78 -0
  38. package/tests/vitest/qb/fields/deleteFields.test.ts +89 -0
  39. package/tests/vitest/qb/fields/getField.test.ts +85 -0
  40. package/tests/vitest/qb/fields/getFieldUsage.test.ts +174 -0
  41. package/tests/vitest/qb/fields/getFieldsUsage.test.ts +77 -0
  42. package/tests/vitest/qb/index.ts +25 -1
  43. package/tests/vitest/qb/records/deleteRecords.test.ts +42 -10
  44. package/tests/vitest/qb/records/runQuery.test.ts +81 -17
  45. package/tests/vitest/qb/records/upsert.test.ts +33 -3
  46. package/tests/vitest/qb/tables/getRelationships.test.ts +80 -0
  47. package/tests/vitest/unit/apps/copyApp.test.ts +282 -0
  48. package/tests/vitest/unit/apps/createApp.test.ts +125 -0
  49. package/tests/vitest/unit/apps/deleteApp.test.ts +215 -0
  50. package/tests/vitest/unit/fields/createField.test.ts +391 -0
  51. package/tests/vitest/unit/fields/deleteFields.test.ts +141 -0
  52. package/tests/vitest/unit/fields/getField.test.ts +189 -0
  53. package/tests/vitest/unit/fields/getFieldUsage.test.ts +147 -0
  54. package/tests/vitest/unit/fields/getFieldsUsage.test.ts +160 -0
  55. package/tests/vitest/unit/index.ts +30 -1
  56. package/tests/vitest/unit/tables/getRelationships.test.ts +259 -0
  57. package/src/code-generation/fix-spec-definitions.ts +0 -543
  58. package/src/code-generation/fix-spec-paths.ts +0 -355
  59. package/test-artifacts/test-results.json +0 -829
package/examples/react.js CHANGED
@@ -9,20 +9,20 @@ const App = () => {
9
9
  // Initialize the QuickBase client
10
10
  const qb = quickbase({
11
11
  realm: "your-realm", // Replace with actual QuickBase realm
12
- // ------------------------------
13
- // Authentication Options
14
- // ------------------------------
15
- // OPTION 1: User Token Authentication
16
- // - Use this if you have a QuickBase user token (get it from "My Profile" > "Manage User Tokens")
17
- // - Works in Node.js or browsers, ideal for standalone apps or testing outside QuickBase
18
- // - Use the line below and replace with your token; comment out 'useTempTokens'
12
+ // ## ------------------------------
13
+ // ## Authentication Options
14
+ // ## ------------------------------
15
+ // ## OPTION 1: User Token Authentication
16
+ // ## - Use this if you have a QuickBase user token (get it from "My Profile" > "Manage User Tokens")
17
+ // ## - Works in Node.js or browsers, ideal for standalone apps or testing outside QuickBase
18
+ // ## - Use the line below and replace with your token; comment out 'useTempTokens'
19
19
  // userToken: "your-user-token",
20
20
 
21
- // ------------------------------
22
- // OPTION 2: Temporary Token Authentication
23
- // - Use this for QuickBase code pages, leveraging the browser’s authenticated session
24
- // - No user token needed; requires running in a QuickBase browser context
25
- // - Uncomment the line below and comment out 'userToken' if using this option
21
+ // ## ------------------------------
22
+ // ## OPTION 2: Temporary Token Authentication
23
+ // ## - Use this for QuickBase code pages, leveraging the browser’s authenticated session
24
+ // ## - No user token needed; requires running in a QuickBase browser context
25
+ // ## - Uncomment the line below and comment out 'userToken' if using this option
26
26
  // useTempTokens: true,
27
27
  });
28
28
 
@@ -15,20 +15,20 @@
15
15
  // Initalize the QuickBase client
16
16
  const qb = quickbase({
17
17
  realm: 'your-realm', // Replace with actual QuickBase realm
18
- // ------------------------------
19
- // Authentication Options
20
- // ----------------------------
21
- // OPTION 1: User Token Authentication
22
- // - Use this if you have a QuickBase user token (get it from "My Profile" > "Manage User Tokens")
23
- // - Works in Node.js or browsers, ideal for standalone apps or testing outside QuickBase
24
- // - Uncomment the line below and replace with your token; comment out 'useTempTokens'
18
+ // ## ------------------------------
19
+ // ## Authentication Options
20
+ // ## ----------------------------
21
+ // ## OPTION 1: User Token Authentication
22
+ // ## - Use this if you have a QuickBase user token (get it from "My Profile" > "Manage User Tokens")
23
+ // ## - Works in Node.js or browsers, ideal for standalone apps or testing outside QuickBase
24
+ // ## - Uncomment the line below and replace with your token; comment out 'useTempTokens'
25
25
  // userToken: "your-user-token",
26
26
 
27
- // ----------------------------
28
- // OPTION 2: Temporary Token Authentication
29
- // - Use this for QuickBase code pages, leveraging the browser’s authenticated session
30
- // - No user token needed; requires running in a QuickBase browser context
31
- // - Uncomment the line below and comment out 'userToken' if using this option
27
+ // ## ----------------------------
28
+ // ## OPTION 2: Temporary Token Authentication
29
+ // ## - Use this for QuickBase code pages, leveraging the browser’s authenticated session
30
+ // ## - No user token needed; requires running in a QuickBase browser context
31
+ // ## - Uncomment the line below and comment out 'userToken' if using this option
32
32
  // useTempTokens: true,
33
33
  });
34
34