@01.software/sdk 0.41.0 → 0.42.0
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 +222 -0
- package/README.md +81 -18
- package/dist/analytics/react.cjs +71 -3
- package/dist/analytics/react.cjs.map +1 -1
- package/dist/analytics/react.d.cts +18 -2
- package/dist/analytics/react.d.ts +18 -2
- package/dist/analytics/react.js +67 -3
- package/dist/analytics/react.js.map +1 -1
- package/dist/analytics.cjs +6 -2
- package/dist/analytics.cjs.map +1 -1
- package/dist/analytics.d.cts +17 -4
- package/dist/analytics.d.ts +17 -4
- package/dist/analytics.js +6 -2
- package/dist/analytics.js.map +1 -1
- package/dist/client.cjs +176 -32
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/client.js +176 -32
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-Bymfni8u.d.cts → collection-client-B-qVIBnJ.d.cts} +5 -5
- package/dist/{collection-client-CN4lj6gi.d.ts → collection-client-BhCMwIus.d.ts} +5 -5
- package/dist/{const-4BUtUdGU.d.cts → const-BiDujixF.d.cts} +1 -1
- package/dist/{const-ymprfiPf.d.ts → const-pmHlwm3E.d.ts} +1 -1
- package/dist/{index-w36lpSkU.d.ts → index-B1UBDaKz.d.ts} +3 -3
- package/dist/{index-Dquv4xTL.d.cts → index-D78ki6Ij.d.cts} +3 -3
- package/dist/index.cjs +156 -339
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +156 -339
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-DC0xzR9i.d.cts → payload-types-C7Ul4ElL.d.cts} +181 -118
- package/dist/{payload-types-DC0xzR9i.d.ts → payload-types-C7Ul4ElL.d.ts} +181 -118
- package/dist/query.d.cts +5 -5
- package/dist/query.d.ts +5 -5
- package/dist/realtime.cjs +1 -1
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/realtime.js +1 -1
- package/dist/realtime.js.map +1 -1
- package/dist/server.cjs +236 -50
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +7 -7
- package/dist/server.d.ts +7 -7
- package/dist/server.js +236 -50
- package/dist/server.js.map +1 -1
- package/dist/{types-CHrzs2GB.d.ts → types-BL7M-EUV.d.cts} +140 -14
- package/dist/{types-Bh2p-EMc.d.ts → types-Bf2iCjy8.d.ts} +1 -1
- package/dist/{types-BvpjooU-.d.cts → types-ChV1t4ei.d.cts} +1 -1
- package/dist/{types-Bl-m9ttd.d.cts → types-D5dSNIGs.d.ts} +140 -14
- package/dist/ui/canvas.cjs.map +1 -1
- package/dist/ui/canvas.js.map +1 -1
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.d.cts +4 -4
- package/dist/webhook.d.ts +4 -4
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as DebugConfig, x as RetryConfig, f as ApiQueryOptions, P as PayloadFindResponse, n as PayloadMutationResponse, ax as PublicReadQueryOptions } from './types-
|
|
1
|
+
import { D as DebugConfig, x as RetryConfig, f as ApiQueryOptions, P as PayloadFindResponse, n as PayloadMutationResponse, ax as ApiDeleteOptions, ay as PublicReadQueryOptions } from './types-BL7M-EUV.cjs';
|
|
2
2
|
import { GenerateMetadataOptions, Metadata } from './metadata.cjs';
|
|
3
|
-
import { S as ServerCollection, P as PublicCollection } from './const-
|
|
4
|
-
import { C as CollectionType } from './types-
|
|
3
|
+
import { S as ServerCollection, P as PublicCollection } from './const-BiDujixF.cjs';
|
|
4
|
+
import { C as CollectionType } from './types-ChV1t4ei.cjs';
|
|
5
5
|
|
|
6
6
|
interface FetchOptions extends RequestInit {
|
|
7
7
|
apiUrl?: string;
|
|
@@ -131,7 +131,7 @@ declare class CollectionQueryBuilder<T extends string> {
|
|
|
131
131
|
* DELETE /api/{collection}/{id}
|
|
132
132
|
* @returns Deleted document object directly (no wrapper)
|
|
133
133
|
*/
|
|
134
|
-
remove(id: string): Promise<CollectionType<T>>;
|
|
134
|
+
remove(id: string, options?: ApiDeleteOptions): Promise<CollectionType<T>>;
|
|
135
135
|
/**
|
|
136
136
|
* Delete multiple documents (bulk delete)
|
|
137
137
|
* DELETE /api/{collection}
|
|
@@ -192,7 +192,7 @@ declare class CollectionClient<TCollection extends string = PublicCollection> ex
|
|
|
192
192
|
* Delete document
|
|
193
193
|
* DELETE /api/{collection}/{id}
|
|
194
194
|
*/
|
|
195
|
-
requestDelete<T = unknown>(endpoint: string): Promise<T>;
|
|
195
|
+
requestDelete<T = unknown>(endpoint: string, options?: ApiDeleteOptions): Promise<T>;
|
|
196
196
|
/**
|
|
197
197
|
* Delete multiple documents (bulk delete)
|
|
198
198
|
* DELETE /api/{collection}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as DebugConfig, x as RetryConfig, f as ApiQueryOptions, P as PayloadFindResponse, n as PayloadMutationResponse, ax as PublicReadQueryOptions } from './types-
|
|
1
|
+
import { D as DebugConfig, x as RetryConfig, f as ApiQueryOptions, P as PayloadFindResponse, n as PayloadMutationResponse, ax as ApiDeleteOptions, ay as PublicReadQueryOptions } from './types-D5dSNIGs.js';
|
|
2
2
|
import { GenerateMetadataOptions, Metadata } from './metadata.js';
|
|
3
|
-
import { S as ServerCollection, P as PublicCollection } from './const-
|
|
4
|
-
import { C as CollectionType } from './types-
|
|
3
|
+
import { S as ServerCollection, P as PublicCollection } from './const-pmHlwm3E.js';
|
|
4
|
+
import { C as CollectionType } from './types-Bf2iCjy8.js';
|
|
5
5
|
|
|
6
6
|
interface FetchOptions extends RequestInit {
|
|
7
7
|
apiUrl?: string;
|
|
@@ -131,7 +131,7 @@ declare class CollectionQueryBuilder<T extends string> {
|
|
|
131
131
|
* DELETE /api/{collection}/{id}
|
|
132
132
|
* @returns Deleted document object directly (no wrapper)
|
|
133
133
|
*/
|
|
134
|
-
remove(id: string): Promise<CollectionType<T>>;
|
|
134
|
+
remove(id: string, options?: ApiDeleteOptions): Promise<CollectionType<T>>;
|
|
135
135
|
/**
|
|
136
136
|
* Delete multiple documents (bulk delete)
|
|
137
137
|
* DELETE /api/{collection}
|
|
@@ -192,7 +192,7 @@ declare class CollectionClient<TCollection extends string = PublicCollection> ex
|
|
|
192
192
|
* Delete document
|
|
193
193
|
* DELETE /api/{collection}/{id}
|
|
194
194
|
*/
|
|
195
|
-
requestDelete<T = unknown>(endpoint: string): Promise<T>;
|
|
195
|
+
requestDelete<T = unknown>(endpoint: string, options?: ApiDeleteOptions): Promise<T>;
|
|
196
196
|
/**
|
|
197
197
|
* Delete multiple documents (bulk delete)
|
|
198
198
|
* DELETE /api/{collection}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as Collection } from './const-
|
|
2
|
-
import { C as CollectionType } from './types-
|
|
3
|
-
import './payload-types-
|
|
1
|
+
import { C as Collection } from './const-pmHlwm3E.js';
|
|
2
|
+
import { C as CollectionType } from './types-Bf2iCjy8.js';
|
|
3
|
+
import './payload-types-C7Ul4ElL.js';
|
|
4
4
|
|
|
5
5
|
type WebhookOperation = string;
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as Collection } from './const-
|
|
2
|
-
import { C as CollectionType } from './types-
|
|
3
|
-
import './payload-types-
|
|
1
|
+
import { C as Collection } from './const-BiDujixF.cjs';
|
|
2
|
+
import { C as CollectionType } from './types-ChV1t4ei.cjs';
|
|
3
|
+
import './payload-types-C7Ul4ElL.cjs';
|
|
4
4
|
|
|
5
5
|
type WebhookOperation = string;
|
|
6
6
|
/**
|