@seaverse/dataservice 1.8.2 → 1.8.3
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.mts +0 -27
- package/dist/index.d.ts +0 -27
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -302,33 +302,6 @@ declare function debugSetToken(token: string): void;
|
|
|
302
302
|
* ```
|
|
303
303
|
*/
|
|
304
304
|
declare function setAppId(appId: string): void;
|
|
305
|
-
/**
|
|
306
|
-
* Create a new Data Service client
|
|
307
|
-
*
|
|
308
|
-
* The SDK automatically obtains the service host from the parent page via PostMessage (500ms timeout).
|
|
309
|
-
* If the fetch fails, it falls back to the default host: https://dataservice-api.seaverse.ai
|
|
310
|
-
*
|
|
311
|
-
* AI-friendly: Single entry point with clear configuration
|
|
312
|
-
*
|
|
313
|
-
* @param config - Client configuration (optional)
|
|
314
|
-
* @returns DataServiceClient instance
|
|
315
|
-
*
|
|
316
|
-
* @example
|
|
317
|
-
* ```typescript
|
|
318
|
-
* // Auto-fetch token and serviceHost from parent page (iframe)
|
|
319
|
-
* // ServiceHost fetch: 500ms timeout, falls back to https://dataservice-api.seaverse.ai
|
|
320
|
-
* const client = await createClient({});
|
|
321
|
-
*
|
|
322
|
-
* // For development/testing, use debugSetToken
|
|
323
|
-
* import { debugSetToken, createClient } from '@seaverse/dataservice';
|
|
324
|
-
* debugSetToken('your-test-token');
|
|
325
|
-
* const client = await createClient({});
|
|
326
|
-
*
|
|
327
|
-
* // appId is automatically extracted from current URL
|
|
328
|
-
* const order = await client.userData.collection('orders').insert({ ... });
|
|
329
|
-
* const orders = await client.userData.collection('orders').select().execute();
|
|
330
|
-
* ```
|
|
331
|
-
*/
|
|
332
305
|
declare function createClient(config?: ClientConfig): Promise<DataServiceClient>;
|
|
333
306
|
|
|
334
307
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -302,33 +302,6 @@ declare function debugSetToken(token: string): void;
|
|
|
302
302
|
* ```
|
|
303
303
|
*/
|
|
304
304
|
declare function setAppId(appId: string): void;
|
|
305
|
-
/**
|
|
306
|
-
* Create a new Data Service client
|
|
307
|
-
*
|
|
308
|
-
* The SDK automatically obtains the service host from the parent page via PostMessage (500ms timeout).
|
|
309
|
-
* If the fetch fails, it falls back to the default host: https://dataservice-api.seaverse.ai
|
|
310
|
-
*
|
|
311
|
-
* AI-friendly: Single entry point with clear configuration
|
|
312
|
-
*
|
|
313
|
-
* @param config - Client configuration (optional)
|
|
314
|
-
* @returns DataServiceClient instance
|
|
315
|
-
*
|
|
316
|
-
* @example
|
|
317
|
-
* ```typescript
|
|
318
|
-
* // Auto-fetch token and serviceHost from parent page (iframe)
|
|
319
|
-
* // ServiceHost fetch: 500ms timeout, falls back to https://dataservice-api.seaverse.ai
|
|
320
|
-
* const client = await createClient({});
|
|
321
|
-
*
|
|
322
|
-
* // For development/testing, use debugSetToken
|
|
323
|
-
* import { debugSetToken, createClient } from '@seaverse/dataservice';
|
|
324
|
-
* debugSetToken('your-test-token');
|
|
325
|
-
* const client = await createClient({});
|
|
326
|
-
*
|
|
327
|
-
* // appId is automatically extracted from current URL
|
|
328
|
-
* const order = await client.userData.collection('orders').insert({ ... });
|
|
329
|
-
* const orders = await client.userData.collection('orders').select().execute();
|
|
330
|
-
* ```
|
|
331
|
-
*/
|
|
332
305
|
declare function createClient(config?: ClientConfig): Promise<DataServiceClient>;
|
|
333
306
|
|
|
334
307
|
/**
|