quickbase-js 1.1.0-beta.4 → 1.1.0-beta.5
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 +8 -0
- package/README.md +54 -0
- package/build.js +175 -55
- 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 +7696 -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/log-gen.yaml +812 -6054
- 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/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/dist/{quickbase.js → esm/quickbase.js} +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
|
@@ -166,7 +166,7 @@ async function fixQuickBaseSpec(): Promise<void> {
|
|
|
166
166
|
console.log(`Writing fixed spec to ${path.basename(outputFile)}...`);
|
|
167
167
|
await fs.mkdir(OUTPUT_DIR, { recursive: true });
|
|
168
168
|
await fs.writeFile(outputFile, JSON.stringify(spec, null, 2), "utf8");
|
|
169
|
-
console.log("Spec fixed successfully!");
|
|
169
|
+
console.log("Spec fixed successfully! Output written to:", outputFile);
|
|
170
170
|
} catch (error) {
|
|
171
171
|
console.error("Failed to fix spec:", error);
|
|
172
172
|
process.exit(1);
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
// src/code-generation/generate-unified-interface.ts
|
|
2
1
|
import { readFileSync, writeFileSync, mkdirSync, existsSync } from "fs";
|
|
3
2
|
import { join, dirname } from "path";
|
|
4
3
|
import { fileURLToPath } from "url";
|
|
5
|
-
import { simplifyName } from "../utils.ts";
|
|
6
4
|
import { OpenAPIV2 } from "openapi-types";
|
|
7
5
|
|
|
8
6
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
|
-
const SPEC_FILE = join(__dirname, "output", "quickbase-fixed.json");
|
|
10
|
-
const OUTPUT_DIR = join(__dirname, "..", "generated-unified");
|
|
7
|
+
const SPEC_FILE = join(__dirname, "output", "quickbase-fixed.json"); // Remains relative to open-api/
|
|
8
|
+
const OUTPUT_DIR = join(__dirname, "..", "src", "generated-unified"); // Updated to src/generated-unified/
|
|
11
9
|
const OUTPUT_FILE = join(OUTPUT_DIR, "QuickbaseClient.ts");
|
|
12
10
|
|
|
11
|
+
// Placeholder for simplifyName (since utils.ts is missing)
|
|
12
|
+
function simplifyName(name: string): string {
|
|
13
|
+
return name
|
|
14
|
+
.replace(/ById$/, "")
|
|
15
|
+
.replace(/Api$/, "")
|
|
16
|
+
.replace(/^(\w)/, (_, c) => c.toLowerCase());
|
|
17
|
+
}
|
|
18
|
+
|
|
13
19
|
function generateInterface() {
|
|
14
20
|
if (!existsSync(SPEC_FILE)) {
|
|
15
21
|
console.error(
|
|
@@ -38,7 +44,7 @@ function generateInterface() {
|
|
|
38
44
|
const op = operation as OpenAPIV2.OperationObject | undefined;
|
|
39
45
|
if (!op || !op.operationId) continue;
|
|
40
46
|
|
|
41
|
-
const opId = op.operationId;
|
|
47
|
+
const opId = simplifyName(op.operationId);
|
|
42
48
|
const params = (op.parameters || [])
|
|
43
49
|
.filter((p) => {
|
|
44
50
|
const param = p as OpenAPIV2.ParameterObject;
|
|
@@ -96,8 +102,13 @@ function generateInterface() {
|
|
|
96
102
|
console.log(`Generated ${OUTPUT_FILE}`);
|
|
97
103
|
}
|
|
98
104
|
|
|
99
|
-
function mapOpenApiTypeToTs(
|
|
100
|
-
|
|
105
|
+
function mapOpenApiTypeToTs(
|
|
106
|
+
openApiType: string | string[] | undefined
|
|
107
|
+
): string {
|
|
108
|
+
const type = Array.isArray(openApiType)
|
|
109
|
+
? openApiType[0]
|
|
110
|
+
: openApiType || "any";
|
|
111
|
+
switch (type.toLowerCase()) {
|
|
101
112
|
case "integer":
|
|
102
113
|
case "int":
|
|
103
114
|
return "number";
|
|
@@ -111,30 +122,44 @@ function mapOpenApiTypeToTs(openApiType: string): string {
|
|
|
111
122
|
}
|
|
112
123
|
|
|
113
124
|
function mapRefToType(
|
|
114
|
-
schema: OpenAPIV2.SchemaObject | OpenAPIV2.ReferenceObject,
|
|
125
|
+
schema: OpenAPIV2.SchemaObject | OpenAPIV2.ReferenceObject | undefined,
|
|
115
126
|
modelImports: Set<string>
|
|
116
127
|
): string {
|
|
117
|
-
if (
|
|
128
|
+
if (!schema) return "any";
|
|
129
|
+
|
|
130
|
+
if ("$ref" in schema && schema.$ref) {
|
|
118
131
|
const model = schema.$ref.split("/").pop()!;
|
|
119
132
|
modelImports.add(model);
|
|
120
133
|
return model;
|
|
121
134
|
}
|
|
135
|
+
|
|
122
136
|
if (schema.type === "array" && schema.items) {
|
|
123
137
|
const itemType =
|
|
124
|
-
"$ref" in schema.items
|
|
138
|
+
"$ref" in schema.items && schema.items.$ref
|
|
125
139
|
? schema.items.$ref.split("/").pop()!
|
|
126
|
-
: mapOpenApiTypeToTs(schema.items.type
|
|
127
|
-
if ("$ref" in schema.items) modelImports.add(itemType);
|
|
140
|
+
: mapOpenApiTypeToTs(schema.items.type);
|
|
141
|
+
if ("$ref" in schema.items && schema.items.$ref) modelImports.add(itemType);
|
|
128
142
|
return `${itemType}[]`;
|
|
129
143
|
}
|
|
144
|
+
|
|
130
145
|
if (schema.type === "object" && schema.additionalProperties) {
|
|
131
|
-
const
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
146
|
+
const additionalProps = schema.additionalProperties as
|
|
147
|
+
| OpenAPIV2.SchemaObject
|
|
148
|
+
| OpenAPIV2.ReferenceObject
|
|
149
|
+
| boolean;
|
|
150
|
+
if (typeof additionalProps === "boolean") {
|
|
151
|
+
return "{ [key: string]: any }";
|
|
152
|
+
}
|
|
153
|
+
const valueType =
|
|
154
|
+
"$ref" in additionalProps && additionalProps.$ref
|
|
155
|
+
? additionalProps.$ref.split("/").pop()!
|
|
156
|
+
: mapOpenApiTypeToTs(additionalProps.type);
|
|
157
|
+
if ("$ref" in additionalProps && additionalProps.$ref)
|
|
158
|
+
modelImports.add(valueType);
|
|
135
159
|
return `{ [key: string]: ${valueType} }`;
|
|
136
160
|
}
|
|
137
|
-
|
|
161
|
+
|
|
162
|
+
return mapOpenApiTypeToTs(schema.type);
|
|
138
163
|
}
|
|
139
164
|
|
|
140
165
|
try {
|
|
@@ -9,10 +9,10 @@ import readline from "readline";
|
|
|
9
9
|
const CURRENT_JAR_VERSION = "7.12.0";
|
|
10
10
|
const MAVEN_METADATA_URL =
|
|
11
11
|
"https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/maven-metadata.xml";
|
|
12
|
-
const CODEGEN_DIR = join(fileURLToPath(import.meta.url), "..");
|
|
13
|
-
const JARS_DIR = join(CODEGEN_DIR, "..", "openapi-jars");
|
|
14
|
-
const SPEC_INPUT = join(CODEGEN_DIR, "output", "quickbase-fixed.json"); //
|
|
15
|
-
const OUTPUT_DIR = join(CODEGEN_DIR, "..", "generated");
|
|
12
|
+
const CODEGEN_DIR = join(fileURLToPath(import.meta.url), ".."); // open-api/
|
|
13
|
+
const JARS_DIR = join(CODEGEN_DIR, "..", "tools", "openapi-jars"); // Updated to tools/openapi-jars/
|
|
14
|
+
const SPEC_INPUT = join(CODEGEN_DIR, "output", "quickbase-fixed.json"); // Relative to open-api/
|
|
15
|
+
const OUTPUT_DIR = join(CODEGEN_DIR, "..", "src", "generated"); // Up to root, then into src/generated/
|
|
16
16
|
|
|
17
17
|
async function getLatestVersion(): Promise<string> {
|
|
18
18
|
const response = await fetch(MAVEN_METADATA_URL);
|
package/package.json
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quickbase-js",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.1.0-beta.5",
|
|
4
|
+
"description": "QuickBase JavaScript client for frameworks and vanilla JS",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/esm/quickbase.js",
|
|
7
|
+
"module": "dist/esm/quickbase.js",
|
|
8
|
+
"types": "dist/esm/quickbase.d.ts",
|
|
6
9
|
"publishConfig": {
|
|
7
10
|
"access": "public"
|
|
8
11
|
},
|
|
9
|
-
"description": "QuickBase JavaScript client for frameworks and vanilla JS",
|
|
10
|
-
"module": "dist/quickbase.js",
|
|
11
|
-
"type": "module",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"import":
|
|
15
|
-
|
|
14
|
+
"import": {
|
|
15
|
+
"minified": "./dist/esm/quickbase.min.js",
|
|
16
|
+
"default": "./dist/esm/quickbase.js"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"minified": "./dist/umd/quickbase.umd.min.js",
|
|
20
|
+
"default": "./dist/umd/quickbase.umd.js"
|
|
21
|
+
},
|
|
22
|
+
"types": "./dist/esm/quickbase.d.ts",
|
|
23
|
+
"umd:types": "./dist/umd/quickbase.umd.d.ts"
|
|
16
24
|
}
|
|
17
25
|
},
|
|
18
26
|
"scripts": {
|
|
@@ -21,13 +29,14 @@
|
|
|
21
29
|
"release:alpha": "standard-version --prerelease alpha",
|
|
22
30
|
"release:push": "npm run release:beta && git push --follow-tags origin main",
|
|
23
31
|
"release:publish": "npm run release:push && npm publish --tag beta",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"regenerate:
|
|
32
|
+
"release:stable": "standard-version && git push --follow-tags origin main && npm publish",
|
|
33
|
+
"fix-spec": "node --loader ts-node/esm open-api/fix-spec-main.ts",
|
|
34
|
+
"regenerate:openapi": "rimraf src/generated && node --loader ts-node/esm open-api/regenerate-client.ts",
|
|
35
|
+
"regenerate:unified": "node --loader ts-node/esm open-api/generate-unified-interface.ts",
|
|
27
36
|
"regenerate:all": "npm run fix-spec && npm run regenerate:openapi && npm run regenerate:unified",
|
|
28
|
-
"log-gen": "node --loader ts-node/esm
|
|
29
|
-
"build": "rimraf dist &&
|
|
30
|
-
"build:prod": "
|
|
37
|
+
"log-gen": "node --loader ts-node/esm tools/log-gen.ts",
|
|
38
|
+
"build": "rimraf dist && node --loader ts-node/esm build.js",
|
|
39
|
+
"build:prod": "rimraf dist && NODE_ENV=production node --loader ts-node/esm build.js",
|
|
31
40
|
"test:all": "vitest run tests/vitest/**/**/*.test.ts --reporter=basic && playwright test tests/playwright/qb --config playwright.config.ts --reporter=dot --quiet",
|
|
32
41
|
"test:pw:qb:all": "playwright test tests/playwright/qb --config playwright.config.ts",
|
|
33
42
|
"test:vitest:all": "vitest run tests/vitest/**/**/*.test.ts",
|
|
@@ -55,6 +64,7 @@
|
|
|
55
64
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
56
65
|
"@rollup/plugin-terser": "^0.4.4",
|
|
57
66
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
67
|
+
"@types/js-yaml": "^4.0.9",
|
|
58
68
|
"@types/node": "^22.13.10",
|
|
59
69
|
"dotenv": "^16.4.7",
|
|
60
70
|
"glob": "^11.0.1",
|
|
@@ -69,6 +79,7 @@
|
|
|
69
79
|
"ts-morph": "^25.0.1",
|
|
70
80
|
"ts-node": "^10.9.2",
|
|
71
81
|
"tslib": "^2.8.1",
|
|
82
|
+
"undici-types": "^7.5.0",
|
|
72
83
|
"vitest": "^3.0.8"
|
|
73
84
|
}
|
|
74
85
|
}
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated on 2025-03-
|
|
1
|
+
// Generated on 2025-03-12T19:20:50.952Z
|
|
2
2
|
import { App, CopyApp200Response, CopyAppRequest, CreateApp200Response, CreateAppRequest, CreateField200Response, CreateFieldRequest, DeleteApp200Response, DeleteAppRequest, DeleteFields200Response, DeleteFieldsRequest, DeleteRecords200Response, DeleteRecordsRequest, DeleteTableResponse, Field, FieldUsage, GetRelationships200Response, GetTempTokenDBID200Response, ReportRunResponse, RunQueryRequest, RunQueryResponse, Table, UpdateTableRequest, Upsert200Response, Upsert207Response, UpsertRequest } from "../generated/models";
|
|
3
3
|
|
|
4
4
|
export interface QuickbaseClient {
|
package/test-esm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { quickbase } from './dist/esm/quickbase.js'; const qb = quickbase({ realm: 'example', userToken: 'your-token' }); console.log(qb);
|
package/test-umd.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const quickbase = require('./dist/umd/quickbase.umd.js'); const qb = quickbase({ realm: 'example', userToken: 'your-token' }); console.log(qb);
|
package/test.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log('Hello from TypeScript');
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// tests/playwright/qb/auth/umd.test.ts
|
|
2
|
+
import { test, expect } from "@playwright/test";
|
|
3
|
+
test("UMD build works in browser", async ({ page }) => {
|
|
4
|
+
await page.goto("http://localhost:3000/test-umd.html");
|
|
5
|
+
const result = await page.evaluate(() => {
|
|
6
|
+
const qb = new QuickbaseJS({ realm: "example", useTempTokens: true });
|
|
7
|
+
return qb.getTempTokenDBID({ dbid: "test-dbid" });
|
|
8
|
+
});
|
|
9
|
+
expect(result).toBeTruthy();
|
|
10
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// tests/vitest/unit/umd.test.ts
|
|
2
|
+
import { test, expect } from "vitest";
|
|
3
|
+
const quickbaseUMD = require("../../dist/umd/quickbase.umd.js");
|
|
4
|
+
const { quickbase: quickbaseESM } = await import("../../dist/esm/quickbase.js");
|
|
5
|
+
test("UMD and ESM builds work in Node.js", () => {
|
|
6
|
+
expect(quickbaseUMD).toBeDefined();
|
|
7
|
+
expect(quickbaseESM).toBeDefined();
|
|
8
|
+
});
|
package/{src → tools}/log-gen.ts
RENAMED
|
@@ -12,28 +12,30 @@ const excludeDirs: string[] = ["node_modules", ".git", "specs"];
|
|
|
12
12
|
|
|
13
13
|
// prettier-ignore
|
|
14
14
|
const includeFolders: string[] = [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
"open-api",
|
|
16
|
+
"open-api/definitions",
|
|
17
|
+
"open-api/paths",
|
|
18
18
|
];
|
|
19
19
|
|
|
20
20
|
// prettier-ignore
|
|
21
21
|
const includeRecursiveFolders: string[] = [
|
|
22
|
-
"tests",
|
|
23
|
-
"tests/vitest/unit",
|
|
24
|
-
"tests/vitest/qb"
|
|
22
|
+
// "tests",
|
|
23
|
+
// "tests/vitest/unit",
|
|
24
|
+
// "tests/vitest/qb"
|
|
25
25
|
];
|
|
26
26
|
|
|
27
27
|
// prettier-ignore
|
|
28
28
|
const includeFiles: string[] = [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
"package.json",
|
|
30
|
+
"tsconfig.json",
|
|
31
|
+
"tsconfig.build.json",
|
|
32
|
+
"rollup.config.js",
|
|
33
|
+
"vitest.config.ts",
|
|
34
|
+
"build.js",
|
|
35
|
+
"src/utils.ts",
|
|
36
|
+
"src/tokenCache.ts",
|
|
37
|
+
"src/generated-unified/QuickbaseClient.ts",
|
|
38
|
+
"src/quickbaseClient.ts",
|
|
37
39
|
];
|
|
38
40
|
|
|
39
41
|
const projectGoals: string[] = [
|
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "dist/temp",
|
|
5
|
+
"noEmit": false,
|
|
6
|
+
"allowImportingTsExtensions": false,
|
|
7
|
+
"declaration": false,
|
|
8
|
+
"sourceMap": true
|
|
9
|
+
},
|
|
10
|
+
"include": ["dist/temp-src/**/*"],
|
|
11
|
+
"exclude": [
|
|
12
|
+
"node_modules",
|
|
13
|
+
"dist",
|
|
14
|
+
"tests/**/*",
|
|
15
|
+
"src/**/*" // Exclude original src/ to avoid confusion
|
|
16
|
+
]
|
|
17
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"moduleResolution": "bundler",
|
|
6
6
|
"strict": true,
|
|
7
7
|
"lib": ["ES2015", "ESNext", "DOM"],
|
|
8
|
-
"types": ["node", "playwright/test"],
|
|
8
|
+
"types": ["node", "playwright/test", "undici-types"],
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"resolveJsonModule": true,
|
|
11
11
|
"allowImportingTsExtensions": true,
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"sourceMap": true,
|
|
17
17
|
"baseUrl": ".",
|
|
18
18
|
"paths": {
|
|
19
|
-
"@/*": ["src/*"],
|
|
20
|
-
"@tests/*": ["tests/*"]
|
|
19
|
+
"@/*": ["src/*"],
|
|
20
|
+
"@tests/*": ["tests/*"]
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
"include": ["src/**/*", "tests/**/*"],
|
|
24
|
-
"exclude": ["node_modules", "dist", "
|
|
23
|
+
"include": ["src/**/*", "tests/**/*", "open-api/**/*", "tools/**/*"],
|
|
24
|
+
"exclude": ["node_modules", "dist", "specs"],
|
|
25
25
|
"ts-node": {
|
|
26
26
|
"esm": true,
|
|
27
27
|
"transpileOnly": true
|