remult 0.25.5-exp.21 → 0.25.5-exp.23
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/esm/src/data-providers/array-entity-data-provider.js +0 -1
- package/esm/src/remult3/remult3.js +4 -1
- package/package.json +1 -1
- package/src/data-providers/array-entity-data-provider.d.ts +13 -0
- package/src/data-providers/array-entity-data-provider.js +0 -1
- package/src/remult3/remult3.d.ts +1 -1
- package/src/remult3/remult3.js +4 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CompoundIdField } from '../CompoundIdField.js';
|
|
2
2
|
import { dbNamesOf, isDbReadonly, } from '../filter/filter-consumer-bridge-to-sql-request.js';
|
|
3
3
|
import { Filter, customDatabaseFilterToken, } from '../filter/filter-interfaces.js';
|
|
4
|
-
//@internal
|
|
5
4
|
export class ArrayEntityDataProvider {
|
|
6
5
|
entity;
|
|
7
6
|
static rawFilter(filter) {
|
|
@@ -9,13 +9,14 @@ export {};
|
|
|
9
9
|
* review react summit
|
|
10
10
|
#
|
|
11
11
|
|
|
12
|
+
//y1 - support get with backend method, with url search params as the first parameter, & url as second parameter
|
|
12
13
|
//y1 - admin url!
|
|
13
14
|
//y1 - number default storage in knex is decimal and it by default has 8,2 - meaning only 999,999 - I think it should be way bigger than that. in firefly we do at least 18 - https://discord.com/channels/975754286384418847/1195162533447876658
|
|
14
15
|
//y1 - talk about the parameter issue with backend methods
|
|
15
16
|
//y1 - tried to upgrade vitest, nuxt tests are failing with loading uuid - sounds familiar?
|
|
16
17
|
//y1 - I think that the tests you've setup cover next app router - I added to the setup, but not sure where else
|
|
17
18
|
//y1 - select data provider per entity https://discord.com/channels/975754286384418847/976006081748807690/1201415305885397003
|
|
18
|
-
|
|
19
|
+
//y1 - talk about modules in init express with entities/controllers,initRequest,initApi
|
|
19
20
|
|
|
20
21
|
//p1 - Small thing, I get SvelteKitError: Not found: /vite.svg
|
|
21
22
|
//p1 - understand the to many relation for the admin, based on the to one
|
|
@@ -72,6 +73,7 @@ remult.apiClient.url='localhost:3007/api
|
|
|
72
73
|
|
|
73
74
|
|
|
74
75
|
*/
|
|
76
|
+
//p1 - allow conditional admin - like allowed
|
|
75
77
|
//p1 - remult-admin doesn't handle primary key that has compound column
|
|
76
78
|
//p1 - remult-admin didn't show a update for a table with a uniqua that is numeric
|
|
77
79
|
//p1 -check if checouknt doesn't respect allow read (I think)
|
|
@@ -79,6 +81,7 @@ remult.apiClient.url='localhost:3007/api
|
|
|
79
81
|
//p1 - allow api update only for new rows
|
|
80
82
|
//p1 - getFields didn't work for kobi in the home component
|
|
81
83
|
//p1 - add to docs https://codesandbox.io/p/devbox/demo-sql-expression-wqvj4g
|
|
84
|
+
//p1 - ValueListFieldType - the decorator gives an error in react vite project - see langulage yedidya
|
|
82
85
|
//y1 - talk about export api is not possible in +server - how did we face that in others, and how do we doc it
|
|
83
86
|
//p2 - document validators
|
|
84
87
|
//p2 - and validators to reference
|
package/package.json
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import type { EntityDataProvider, EntityDataProviderFindOptions } from '../data-interfaces.js';
|
|
2
|
+
import { Filter } from '../filter/filter-interfaces.js';
|
|
3
|
+
import type { EntityFilter, EntityMetadata } from '../remult3/remult3.js';
|
|
4
|
+
export declare class ArrayEntityDataProvider implements EntityDataProvider {
|
|
5
|
+
private entity;
|
|
6
|
+
static rawFilter(filter: CustomArrayFilter): EntityFilter<any>;
|
|
7
|
+
constructor(entity: EntityMetadata, rows?: any[]);
|
|
8
|
+
count(where?: Filter): Promise<number>;
|
|
9
|
+
find(options?: EntityDataProviderFindOptions): Promise<any[]>;
|
|
10
|
+
update(id: any, data: any): Promise<any>;
|
|
11
|
+
delete(id: any): Promise<void>;
|
|
12
|
+
insert(data: any): Promise<any>;
|
|
13
|
+
}
|
|
1
14
|
export type CustomArrayFilter = (item: any) => boolean;
|
|
2
15
|
export interface CustomArrayFilterObject {
|
|
3
16
|
arrayFilter: CustomArrayFilter;
|
|
@@ -5,7 +5,6 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
var CompoundIdField_js_1 = require("../CompoundIdField.js");
|
|
6
6
|
var filter_consumer_bridge_to_sql_request_js_1 = require("../filter/filter-consumer-bridge-to-sql-request.js");
|
|
7
7
|
var filter_interfaces_js_1 = require("../filter/filter-interfaces.js");
|
|
8
|
-
//@internal
|
|
9
8
|
var ArrayEntityDataProvider = /** @class */ (function () {
|
|
10
9
|
function ArrayEntityDataProvider(entity, rows) {
|
|
11
10
|
this.entity = entity;
|
package/src/remult3/remult3.d.ts
CHANGED
|
@@ -194,7 +194,7 @@ export interface EntityMetadata<entityType = any> {
|
|
|
194
194
|
*/
|
|
195
195
|
readonly dbName: string;
|
|
196
196
|
/** The options send to the `Entity`'s decorator */
|
|
197
|
-
readonly options: EntityOptions
|
|
197
|
+
readonly options: EntityOptions<entityType>;
|
|
198
198
|
/** The class type of the entity */
|
|
199
199
|
readonly entityType: ClassType<entityType>;
|
|
200
200
|
/** true if the current user is allowed to update an entity instance
|
package/src/remult3/remult3.js
CHANGED
|
@@ -10,13 +10,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
* review react summit
|
|
11
11
|
#
|
|
12
12
|
|
|
13
|
+
//y1 - support get with backend method, with url search params as the first parameter, & url as second parameter
|
|
13
14
|
//y1 - admin url!
|
|
14
15
|
//y1 - number default storage in knex is decimal and it by default has 8,2 - meaning only 999,999 - I think it should be way bigger than that. in firefly we do at least 18 - https://discord.com/channels/975754286384418847/1195162533447876658
|
|
15
16
|
//y1 - talk about the parameter issue with backend methods
|
|
16
17
|
//y1 - tried to upgrade vitest, nuxt tests are failing with loading uuid - sounds familiar?
|
|
17
18
|
//y1 - I think that the tests you've setup cover next app router - I added to the setup, but not sure where else
|
|
18
19
|
//y1 - select data provider per entity https://discord.com/channels/975754286384418847/976006081748807690/1201415305885397003
|
|
19
|
-
|
|
20
|
+
//y1 - talk about modules in init express with entities/controllers,initRequest,initApi
|
|
20
21
|
|
|
21
22
|
//p1 - Small thing, I get SvelteKitError: Not found: /vite.svg
|
|
22
23
|
//p1 - understand the to many relation for the admin, based on the to one
|
|
@@ -73,6 +74,7 @@ remult.apiClient.url='localhost:3007/api
|
|
|
73
74
|
|
|
74
75
|
|
|
75
76
|
*/
|
|
77
|
+
//p1 - allow conditional admin - like allowed
|
|
76
78
|
//p1 - remult-admin doesn't handle primary key that has compound column
|
|
77
79
|
//p1 - remult-admin didn't show a update for a table with a uniqua that is numeric
|
|
78
80
|
//p1 -check if checouknt doesn't respect allow read (I think)
|
|
@@ -80,6 +82,7 @@ remult.apiClient.url='localhost:3007/api
|
|
|
80
82
|
//p1 - allow api update only for new rows
|
|
81
83
|
//p1 - getFields didn't work for kobi in the home component
|
|
82
84
|
//p1 - add to docs https://codesandbox.io/p/devbox/demo-sql-expression-wqvj4g
|
|
85
|
+
//p1 - ValueListFieldType - the decorator gives an error in react vite project - see langulage yedidya
|
|
83
86
|
//y1 - talk about export api is not possible in +server - how did we face that in others, and how do we doc it
|
|
84
87
|
//p2 - document validators
|
|
85
88
|
//p2 - and validators to reference
|