rads-db 0.1.36 → 0.1.38
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/dist/index.d.ts +11 -2
- package/package.json +12 -6
package/dist/index.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ interface FileUploadArgs {
|
|
|
143
143
|
blob: Blob;
|
|
144
144
|
containerName?: string;
|
|
145
145
|
fileName?: string;
|
|
146
|
-
options
|
|
146
|
+
options?: any;
|
|
147
147
|
}
|
|
148
148
|
interface MinimalDriver {
|
|
149
149
|
driverName: string;
|
|
@@ -199,6 +199,15 @@ interface RestDriverOptions {
|
|
|
199
199
|
method?: string;
|
|
200
200
|
}) => any;
|
|
201
201
|
}
|
|
202
|
+
interface RestFileUploadDriverOptions {
|
|
203
|
+
/** @default '/api' */
|
|
204
|
+
baseUrl?: string;
|
|
205
|
+
fetch?: (url: string, options?: {
|
|
206
|
+
body?: any;
|
|
207
|
+
headers?: any;
|
|
208
|
+
method?: string;
|
|
209
|
+
}) => any;
|
|
210
|
+
}
|
|
202
211
|
interface MemoryDriverOptions {
|
|
203
212
|
}
|
|
204
213
|
interface MemoryFileUploadDriverOptions {
|
|
@@ -235,4 +244,4 @@ declare function computed(meta?: ComputedDecoratorArgs): (a: any, b?: ClassField
|
|
|
235
244
|
declare function createRads(args?: CreateRadsArgs): RadsDb;
|
|
236
245
|
declare function getRestRoutes(db: RadsDb, prefix?: string): Record<string, Record<string, Function>>;
|
|
237
246
|
|
|
238
|
-
export { AzureCosmosDriverOptions, AzureStorageBlobUploadDriverOptions, Change, ComputedContext, ComputedDecoratorArgs, CreateRadsArgs, DeepPartial, Driver, DriverConstructor, DriverOptions, EntityDecoratorArgs, EntityMethods, FieldDecoratorArgs, FieldDefinition, FileUploadArgs, FileUploadDriver, GenerateClientNormalizedOptions, GenerateClientOptions, GetAggArgs, GetAggArgsAgg, GetAggArgsAny, GetAggResponse, GetArgs, GetArgsAny, GetArgsInclude, GetManyArgs, GetManyArgsAny, GetManyResponse, GetResponse, GetResponseInclude, GetResponseIncludeSelect, GetResponseNoInclude, MemoryDriverOptions, MemoryFileUploadDriverOptions, MinimalDriver, PutArgs, PutEffect, RadsRequestContext, Relation, RestDriverOptions, Schema, SchemaValidators, TypeDefinition, UiDecoratorArgs, UiFieldDecoratorArgs, computed, createRads, entity, field, getRestRoutes, precomputed, ui };
|
|
247
|
+
export { AzureCosmosDriverOptions, AzureStorageBlobUploadDriverOptions, Change, ComputedContext, ComputedDecoratorArgs, CreateRadsArgs, DeepPartial, Driver, DriverConstructor, DriverOptions, EntityDecoratorArgs, EntityMethods, FieldDecoratorArgs, FieldDefinition, FileUploadArgs, FileUploadDriver, GenerateClientNormalizedOptions, GenerateClientOptions, GetAggArgs, GetAggArgsAgg, GetAggArgsAny, GetAggResponse, GetArgs, GetArgsAny, GetArgsInclude, GetManyArgs, GetManyArgsAny, GetManyResponse, GetResponse, GetResponseInclude, GetResponseIncludeSelect, GetResponseNoInclude, MemoryDriverOptions, MemoryFileUploadDriverOptions, MinimalDriver, PutArgs, PutEffect, RadsRequestContext, Relation, RestDriverOptions, RestFileUploadDriverOptions, Schema, SchemaValidators, TypeDefinition, UiDecoratorArgs, UiFieldDecoratorArgs, computed, createRads, entity, field, getRestRoutes, precomputed, ui };
|
package/package.json
CHANGED
|
@@ -22,20 +22,25 @@
|
|
|
22
22
|
"import": "./drivers/*.mjs",
|
|
23
23
|
"require": "./drivers/*.cjs"
|
|
24
24
|
},
|
|
25
|
+
"./fileUploadDrivers/*": {
|
|
26
|
+
"types": "./fileUploadDrivers/*.d.ts",
|
|
27
|
+
"import": "./fileUploadDrivers/*.mjs",
|
|
28
|
+
"require": "./fileUploadDrivers/*.cjs"
|
|
29
|
+
},
|
|
25
30
|
"./integrations/*": {
|
|
26
31
|
"types": "./integrations/*.d.ts",
|
|
27
32
|
"import": "./integrations/*.mjs",
|
|
28
33
|
"require": "./integrations/*.cjs"
|
|
29
34
|
}
|
|
30
35
|
},
|
|
31
|
-
"version": "0.1.
|
|
36
|
+
"version": "0.1.38",
|
|
32
37
|
"description": "Say goodbye to boilerplate code and hello to efficient and elegant syntax.",
|
|
33
38
|
"keywords": [],
|
|
34
39
|
"author": "",
|
|
35
40
|
"license": "ISC",
|
|
36
41
|
"peerDependencies": {
|
|
37
|
-
"@azure/storage-blob": ">=12",
|
|
38
42
|
"@azure/cosmos": ">=3",
|
|
43
|
+
"@azure/storage-blob": ">=12",
|
|
39
44
|
"h3": "*",
|
|
40
45
|
"typescript": ">=5.0.0"
|
|
41
46
|
},
|
|
@@ -53,7 +58,9 @@
|
|
|
53
58
|
"packageManager": "pnpm@8.6.1",
|
|
54
59
|
"devDependencies": {
|
|
55
60
|
"@azure/cosmos": "^3.17.3",
|
|
61
|
+
"@types/lodash": "4.14.191",
|
|
56
62
|
"@types/pluralize": "^0.0.29",
|
|
63
|
+
"@types/uuid": "^9.0.2",
|
|
57
64
|
"@vitest/ui": "^0.31.0",
|
|
58
65
|
"cross-env": "^7.0.3",
|
|
59
66
|
"eslint-plugin-tyrecheck": "^2.54.4",
|
|
@@ -63,13 +70,12 @@
|
|
|
63
70
|
"tsup": "^6.7.0",
|
|
64
71
|
"unbuild": "^1.2.1",
|
|
65
72
|
"vite": "^4.0.0",
|
|
66
|
-
"vitest": "^0.31.0"
|
|
67
|
-
"@types/lodash": "4.14.191",
|
|
68
|
-
"@types/uuid": "^9.0.2"
|
|
73
|
+
"vitest": "^0.31.0"
|
|
69
74
|
},
|
|
70
75
|
"dependencies": {
|
|
71
76
|
"@nuxt/kit": "^3.5.1",
|
|
72
77
|
"dataloader": "^2.2.2",
|
|
78
|
+
"form-data": "^4.0.0",
|
|
73
79
|
"lodash": "^4.17.21",
|
|
74
80
|
"pluralize": "^8.0.0",
|
|
75
81
|
"uuid": ">=8",
|
|
@@ -79,7 +85,7 @@
|
|
|
79
85
|
"test": "vitest --run && vitest typecheck --run",
|
|
80
86
|
"link-rads-db": "symlink-dir ./test/_rads-db ./node_modules/_rads-db",
|
|
81
87
|
"generate-test-schema": "rads-db",
|
|
82
|
-
"dev": "pnpm install
|
|
88
|
+
"dev": "pnpm install && pnpm build && pnpm generate-test-schema && pnpm link-rads-db && vitest --ui",
|
|
83
89
|
"lint": "cross-env NODE_ENV=production eslint src/**/*.* test/**/*.*",
|
|
84
90
|
"dev-typecheck": "vitest typecheck --ui",
|
|
85
91
|
"build": "unbuild"
|