@base44-preview/sdk 0.8.50-pr.290.5c5f362 → 0.8.50-pr.290.e7ccb0e
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.
|
@@ -341,6 +341,9 @@ export interface EntityHandler<T = any> {
|
|
|
341
341
|
* and records deleted between pages never shift the boundary. `skip` is kept
|
|
342
342
|
* for existing code and is deprecated for loops.
|
|
343
343
|
*
|
|
344
|
+
* **Note:** Returns an empty result if a row-level security rule denies
|
|
345
|
+
* this call. See {@link EntitiesModule | Denied reads and writes}.
|
|
346
|
+
*
|
|
344
347
|
* @typeParam K - The fields to include in the response. Defaults to all fields.
|
|
345
348
|
* @param sort - Sort parameter, such as `'-created_date'` for descending. Defaults to `'-created_date'`.
|
|
346
349
|
* @param limit - Maximum number of results to return. Defaults to `5000`.
|
|
@@ -406,6 +409,9 @@ export interface EntityHandler<T = any> {
|
|
|
406
409
|
* and records deleted between pages never shift the boundary. `skip` is kept
|
|
407
410
|
* for existing code and is deprecated for loops.
|
|
408
411
|
*
|
|
412
|
+
* **Note:** Returns an empty result if a row-level security rule denies
|
|
413
|
+
* this call. See {@link EntitiesModule | Denied reads and writes}.
|
|
414
|
+
*
|
|
409
415
|
* @typeParam K - The fields to include in the response. Defaults to all fields.
|
|
410
416
|
* @param query - Query object with field-value pairs. Each key should be a field name
|
|
411
417
|
* from your entity schema, and each value is the criteria to match. Records matching all
|
|
@@ -526,6 +532,10 @@ export interface EntityHandler<T = any> {
|
|
|
526
532
|
*
|
|
527
533
|
* Retrieves a specific record using its unique identifier.
|
|
528
534
|
*
|
|
535
|
+
* **Note:** Throws a not-found error, whether or not the record exists,
|
|
536
|
+
* if a row-level security rule denies this call. See
|
|
537
|
+
* {@link EntitiesModule | Denied reads and writes}.
|
|
538
|
+
*
|
|
529
539
|
* @param id - The unique identifier of the record.
|
|
530
540
|
* @returns Promise resolving to the record.
|
|
531
541
|
*
|
|
@@ -542,6 +552,9 @@ export interface EntityHandler<T = any> {
|
|
|
542
552
|
*
|
|
543
553
|
* Creates a new record with the provided data.
|
|
544
554
|
*
|
|
555
|
+
* **Note:** Throws a permission error if a row-level security rule
|
|
556
|
+
* denies this call. See {@link EntitiesModule | Denied reads and writes}.
|
|
557
|
+
*
|
|
545
558
|
* @param data - Object containing the record data.
|
|
546
559
|
* @returns Promise resolving to the created record.
|
|
547
560
|
*
|
|
@@ -568,6 +581,9 @@ export interface EntityHandler<T = any> {
|
|
|
568
581
|
* To update multiple specific records with different data each, use
|
|
569
582
|
* {@linkcode bulkUpdate | bulkUpdate()}.
|
|
570
583
|
*
|
|
584
|
+
* **Note:** Throws a permission error if a row-level security rule
|
|
585
|
+
* denies this call. See {@link EntitiesModule | Denied reads and writes}.
|
|
586
|
+
*
|
|
571
587
|
* @param id - The unique identifier of the record to update.
|
|
572
588
|
* @param data - Object containing the fields to update.
|
|
573
589
|
* @returns Promise resolving to the updated record.
|