quickbase-js 1.1.0-beta.3 → 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.
- package/CHANGELOG.md +23 -0
- package/README.md +61 -5
- package/dist/quickbase.d.ts +1108 -349
- package/dist/quickbase.js +828 -263
- package/dist/quickbase.js.map +1 -1
- package/examples/react.js +12 -12
- package/examples/vanillajs.html +12 -12
- package/log-gen.yaml +4622 -759
- package/package.json +12 -14
- package/playwright-results.txt/.last-run.json +4 -0
- package/playwright.config.ts +1 -1
- package/src/code-generation/definitions/apps.ts +274 -0
- package/src/code-generation/definitions/auth.ts +10 -0
- package/src/code-generation/definitions/fields.ts +751 -0
- package/src/code-generation/definitions/index.ts +18 -0
- package/src/code-generation/definitions/records.ts +269 -0
- package/src/code-generation/definitions/relationships.ts +90 -0
- package/src/code-generation/definitions/reports.ts +10 -0
- package/src/code-generation/definitions/tables.ts +112 -0
- package/src/code-generation/fix-spec-main.ts +2 -2
- package/src/code-generation/output/quickbase-fixed.json +3244 -4586
- package/src/code-generation/paths/apps.ts +100 -0
- package/src/code-generation/paths/auth.ts +25 -0
- package/src/code-generation/paths/fields.ts +207 -0
- package/src/code-generation/paths/index.ts +17 -0
- package/src/code-generation/paths/records.ts +68 -0
- package/src/code-generation/paths/relationships.ts +32 -0
- package/src/code-generation/paths/reports.ts +34 -0
- package/src/code-generation/paths/tables.ts +162 -0
- package/src/generated-unified/QuickbaseClient.ts +7 -6
- package/src/log-gen.ts +8 -6
- package/tests/vitest/qb/fields/createField.test.ts +78 -0
- package/tests/vitest/qb/fields/deleteFields.test.ts +89 -0
- package/tests/vitest/qb/fields/getField.test.ts +85 -0
- package/tests/vitest/qb/fields/getFieldUsage.test.ts +174 -0
- package/tests/vitest/qb/fields/getFieldsUsage.test.ts +77 -0
- package/tests/vitest/qb/index.ts +25 -1
- package/tests/vitest/unit/fields/createField.test.ts +391 -0
- package/tests/vitest/unit/fields/deleteFields.test.ts +141 -0
- package/tests/vitest/unit/fields/getField.test.ts +189 -0
- package/tests/vitest/unit/fields/getFieldUsage.test.ts +147 -0
- package/tests/vitest/unit/fields/getFieldsUsage.test.ts +160 -0
- package/tests/vitest/unit/index.ts +30 -1
- package/src/code-generation/fix-spec-definitions.ts +0 -809
- package/src/code-generation/fix-spec-paths.ts +0 -439
- 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
|
|
package/examples/vanillajs.html
CHANGED
|
@@ -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
|
|