@mitway/sdk 0.7.2 → 0.7.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.cts +8 -9
- package/dist/index.d.ts +8 -9
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -471,11 +471,10 @@ declare class Realtime {
|
|
|
471
471
|
|
|
472
472
|
interface MitwayBaasConfig {
|
|
473
473
|
/**
|
|
474
|
-
* Base URL of the MITWAY-BaaS backend
|
|
475
|
-
*
|
|
476
|
-
*
|
|
477
|
-
*
|
|
478
|
-
* storage/functions — through this one URL.
|
|
474
|
+
* Base URL of the MITWAY-BaaS backend the SDK should talk to. The SDK
|
|
475
|
+
* routes every request — auth, database (via the backend's PostgREST
|
|
476
|
+
* proxy at `/api/database/records/*`), storage, realtime (via
|
|
477
|
+
* `/socket.io/`) and functions — through this single URL.
|
|
479
478
|
*
|
|
480
479
|
* @default "http://localhost:7130"
|
|
481
480
|
*/
|
|
@@ -1120,7 +1119,7 @@ declare class Functions {
|
|
|
1120
1119
|
* import { createClient } from '@mitway/sdk';
|
|
1121
1120
|
*
|
|
1122
1121
|
* const client = createClient({
|
|
1123
|
-
* baseUrl: 'https://
|
|
1122
|
+
* baseUrl: 'https://your-baas.example.com',
|
|
1124
1123
|
* anonKey: 'eyJhbGciOiJIUzI1NiIs...', // optional
|
|
1125
1124
|
* });
|
|
1126
1125
|
*
|
|
@@ -1177,11 +1176,11 @@ declare class MitwayBaasClient {
|
|
|
1177
1176
|
*
|
|
1178
1177
|
* @example
|
|
1179
1178
|
* ```typescript
|
|
1180
|
-
* import { createClient } from '@mitway
|
|
1179
|
+
* import { createClient } from '@mitway/sdk';
|
|
1181
1180
|
*
|
|
1182
1181
|
* const client = createClient({
|
|
1183
|
-
* baseUrl: 'https://
|
|
1184
|
-
*
|
|
1182
|
+
* baseUrl: 'https://your-baas.example.com',
|
|
1183
|
+
* anonKey: 'eyJhbGciOiJIUzI1NiIs...', // optional
|
|
1185
1184
|
* });
|
|
1186
1185
|
* ```
|
|
1187
1186
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -471,11 +471,10 @@ declare class Realtime {
|
|
|
471
471
|
|
|
472
472
|
interface MitwayBaasConfig {
|
|
473
473
|
/**
|
|
474
|
-
* Base URL of the MITWAY-BaaS backend
|
|
475
|
-
*
|
|
476
|
-
*
|
|
477
|
-
*
|
|
478
|
-
* storage/functions — through this one URL.
|
|
474
|
+
* Base URL of the MITWAY-BaaS backend the SDK should talk to. The SDK
|
|
475
|
+
* routes every request — auth, database (via the backend's PostgREST
|
|
476
|
+
* proxy at `/api/database/records/*`), storage, realtime (via
|
|
477
|
+
* `/socket.io/`) and functions — through this single URL.
|
|
479
478
|
*
|
|
480
479
|
* @default "http://localhost:7130"
|
|
481
480
|
*/
|
|
@@ -1120,7 +1119,7 @@ declare class Functions {
|
|
|
1120
1119
|
* import { createClient } from '@mitway/sdk';
|
|
1121
1120
|
*
|
|
1122
1121
|
* const client = createClient({
|
|
1123
|
-
* baseUrl: 'https://
|
|
1122
|
+
* baseUrl: 'https://your-baas.example.com',
|
|
1124
1123
|
* anonKey: 'eyJhbGciOiJIUzI1NiIs...', // optional
|
|
1125
1124
|
* });
|
|
1126
1125
|
*
|
|
@@ -1177,11 +1176,11 @@ declare class MitwayBaasClient {
|
|
|
1177
1176
|
*
|
|
1178
1177
|
* @example
|
|
1179
1178
|
* ```typescript
|
|
1180
|
-
* import { createClient } from '@mitway
|
|
1179
|
+
* import { createClient } from '@mitway/sdk';
|
|
1181
1180
|
*
|
|
1182
1181
|
* const client = createClient({
|
|
1183
|
-
* baseUrl: 'https://
|
|
1184
|
-
*
|
|
1182
|
+
* baseUrl: 'https://your-baas.example.com',
|
|
1183
|
+
* anonKey: 'eyJhbGciOiJIUzI1NiIs...', // optional
|
|
1185
1184
|
* });
|
|
1186
1185
|
* ```
|
|
1187
1186
|
*/
|