@tspvivek/baasix-sdk 0.1.0-alpha.6 → 0.1.0-alpha.8
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/{client-BydI-nYY.d.ts → client-B7CU_tr7.d.ts} +2 -0
- package/dist/{client-BY4L9ASe.d.cts → client-BCNmu9xC.d.cts} +2 -0
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/modules/auth.cjs.map +1 -1
- package/dist/modules/auth.d.cts +1 -1
- package/dist/modules/auth.d.ts +1 -1
- package/dist/modules/auth.js.map +1 -1
- package/dist/modules/files.d.cts +1 -1
- package/dist/modules/files.d.ts +1 -1
- package/dist/modules/items.cjs +4 -3
- package/dist/modules/items.cjs.map +1 -1
- package/dist/modules/items.d.cts +3 -3
- package/dist/modules/items.d.ts +3 -3
- package/dist/modules/items.js +4 -3
- package/dist/modules/items.js.map +1 -1
- package/dist/modules/schemas.d.cts +1 -1
- package/dist/modules/schemas.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HttpClient, e as PaginatedResponse, N as Notification, o as SendNotificationData, p as Permission, C as CreatePermissionData, q as Role$1, r as Settings, s as ReportConfig, t as ReportResult, u as Aggregate, F as Filter, W as Workflow, v as WorkflowExecution, B as BaseItem, w as BaasixConfig, A as AuthMode } from './client-
|
|
2
|
-
export { V as AggregateConfig, O as AggregateFunction, k as AssetTransformOptions, b as AuthResponse, d as AuthState, a as AuthStateEvent, c as AuthTokens, a4 as BaasixError, a3 as BaasixErrorDetails, f as BulkResponse, a6 as CollectionItem, a5 as DeepPartial, Y as DefaultValueType, D as DeleteResponse, Z as FieldDefinition, X as FieldType, j as FileMetadata, G as FilterCondition, z as FilterOperator, E as FilterValue, y as HttpClientConfig, I as IndexDefinition, J as LogicalFilter, L as LoginCredentials, M as MagicLinkOptions, g as MutationResponse, P as PasswordResetOptions, $ as PermissionAction, Q as QueryParams, R as RegisterData, n as RelationshipDefinition, _ as RelationshipType, x as RequestOptions, m as SchemaDefinition, l as SchemaInfo, h as SingleResponse, S as Sort, K as SortDirection, T as Tenant, i as UploadOptions, U as User, a2 as WorkflowEdge, a1 as WorkflowNode, a0 as WorkflowTrigger } from './client-
|
|
1
|
+
import { H as HttpClient, e as PaginatedResponse, N as Notification, o as SendNotificationData, p as Permission, C as CreatePermissionData, q as Role$1, r as Settings, s as ReportConfig, t as ReportResult, u as Aggregate, F as Filter, W as Workflow, v as WorkflowExecution, B as BaseItem, w as BaasixConfig, A as AuthMode } from './client-BCNmu9xC.cjs';
|
|
2
|
+
export { V as AggregateConfig, O as AggregateFunction, k as AssetTransformOptions, b as AuthResponse, d as AuthState, a as AuthStateEvent, c as AuthTokens, a4 as BaasixError, a3 as BaasixErrorDetails, f as BulkResponse, a6 as CollectionItem, a5 as DeepPartial, Y as DefaultValueType, D as DeleteResponse, Z as FieldDefinition, X as FieldType, j as FileMetadata, G as FilterCondition, z as FilterOperator, E as FilterValue, y as HttpClientConfig, I as IndexDefinition, J as LogicalFilter, L as LoginCredentials, M as MagicLinkOptions, g as MutationResponse, P as PasswordResetOptions, $ as PermissionAction, Q as QueryParams, R as RegisterData, n as RelationshipDefinition, _ as RelationshipType, x as RequestOptions, m as SchemaDefinition, l as SchemaInfo, h as SingleResponse, S as Sort, K as SortDirection, T as Tenant, i as UploadOptions, U as User, a2 as WorkflowEdge, a1 as WorkflowNode, a0 as WorkflowTrigger } from './client-BCNmu9xC.cjs';
|
|
3
3
|
import { S as StorageAdapter } from './types-BdjsGANq.cjs';
|
|
4
4
|
export { a as STORAGE_KEYS, b as StorageKey } from './types-BdjsGANq.cjs';
|
|
5
5
|
import { AuthModule } from './modules/auth.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HttpClient, e as PaginatedResponse, N as Notification, o as SendNotificationData, p as Permission, C as CreatePermissionData, q as Role$1, r as Settings, s as ReportConfig, t as ReportResult, u as Aggregate, F as Filter, W as Workflow, v as WorkflowExecution, B as BaseItem, w as BaasixConfig, A as AuthMode } from './client-
|
|
2
|
-
export { V as AggregateConfig, O as AggregateFunction, k as AssetTransformOptions, b as AuthResponse, d as AuthState, a as AuthStateEvent, c as AuthTokens, a4 as BaasixError, a3 as BaasixErrorDetails, f as BulkResponse, a6 as CollectionItem, a5 as DeepPartial, Y as DefaultValueType, D as DeleteResponse, Z as FieldDefinition, X as FieldType, j as FileMetadata, G as FilterCondition, z as FilterOperator, E as FilterValue, y as HttpClientConfig, I as IndexDefinition, J as LogicalFilter, L as LoginCredentials, M as MagicLinkOptions, g as MutationResponse, P as PasswordResetOptions, $ as PermissionAction, Q as QueryParams, R as RegisterData, n as RelationshipDefinition, _ as RelationshipType, x as RequestOptions, m as SchemaDefinition, l as SchemaInfo, h as SingleResponse, S as Sort, K as SortDirection, T as Tenant, i as UploadOptions, U as User, a2 as WorkflowEdge, a1 as WorkflowNode, a0 as WorkflowTrigger } from './client-
|
|
1
|
+
import { H as HttpClient, e as PaginatedResponse, N as Notification, o as SendNotificationData, p as Permission, C as CreatePermissionData, q as Role$1, r as Settings, s as ReportConfig, t as ReportResult, u as Aggregate, F as Filter, W as Workflow, v as WorkflowExecution, B as BaseItem, w as BaasixConfig, A as AuthMode } from './client-B7CU_tr7.js';
|
|
2
|
+
export { V as AggregateConfig, O as AggregateFunction, k as AssetTransformOptions, b as AuthResponse, d as AuthState, a as AuthStateEvent, c as AuthTokens, a4 as BaasixError, a3 as BaasixErrorDetails, f as BulkResponse, a6 as CollectionItem, a5 as DeepPartial, Y as DefaultValueType, D as DeleteResponse, Z as FieldDefinition, X as FieldType, j as FileMetadata, G as FilterCondition, z as FilterOperator, E as FilterValue, y as HttpClientConfig, I as IndexDefinition, J as LogicalFilter, L as LoginCredentials, M as MagicLinkOptions, g as MutationResponse, P as PasswordResetOptions, $ as PermissionAction, Q as QueryParams, R as RegisterData, n as RelationshipDefinition, _ as RelationshipType, x as RequestOptions, m as SchemaDefinition, l as SchemaInfo, h as SingleResponse, S as Sort, K as SortDirection, T as Tenant, i as UploadOptions, U as User, a2 as WorkflowEdge, a1 as WorkflowNode, a0 as WorkflowTrigger } from './client-B7CU_tr7.js';
|
|
3
3
|
import { S as StorageAdapter } from './types-BdjsGANq.js';
|
|
4
4
|
export { a as STORAGE_KEYS, b as StorageKey } from './types-BdjsGANq.js';
|
|
5
5
|
import { AuthModule } from './modules/auth.js';
|
package/dist/index.js
CHANGED
|
@@ -1495,14 +1495,15 @@ var ItemsModule = class {
|
|
|
1495
1495
|
*
|
|
1496
1496
|
* @example
|
|
1497
1497
|
* ```typescript
|
|
1498
|
-
* // Update by IDs
|
|
1498
|
+
* // Update by IDs with same data
|
|
1499
1499
|
* await items.updateMany(['id1', 'id2'], { status: 'archived' });
|
|
1500
1500
|
* ```
|
|
1501
1501
|
*/
|
|
1502
1502
|
async updateMany(ids, data) {
|
|
1503
|
+
const updates = ids.map((id) => ({ id, data }));
|
|
1503
1504
|
const response = await this.client.patch(
|
|
1504
1505
|
`/items/${this.collection}/bulk`,
|
|
1505
|
-
|
|
1506
|
+
updates
|
|
1506
1507
|
);
|
|
1507
1508
|
return response.data;
|
|
1508
1509
|
}
|
|
@@ -1545,7 +1546,7 @@ var ItemsModule = class {
|
|
|
1545
1546
|
*/
|
|
1546
1547
|
async deleteMany(ids) {
|
|
1547
1548
|
await this.client.delete(`/items/${this.collection}/bulk`, {
|
|
1548
|
-
|
|
1549
|
+
body: JSON.stringify(ids)
|
|
1549
1550
|
});
|
|
1550
1551
|
}
|
|
1551
1552
|
/**
|