@microsoft/rayfin-client 1.27.0 → 1.29.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/dist/client.d.ts CHANGED
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import { Auth, AuthStorage } from '@microsoft/rayfin-auth';
7
7
  import { type EntitySchema, createDataApi } from '@microsoft/rayfin-data';
8
+ import { createFunctionsApi, type FunctionsSchema } from '@microsoft/rayfin-functions';
8
9
  import { SdkError, NetworkError } from '@microsoft/rayfin-lib';
9
10
  import { ApiClient, ApiClientConfig } from '@microsoft/rayfin-lib';
10
11
  /**
@@ -63,8 +64,9 @@ export declare abstract class RayfinClientBase<TSchema extends EntitySchema = Re
63
64
  * .execute();
64
65
  * ```
65
66
  */
66
- export declare class RayfinClient<TSchema extends EntitySchema = Record<string, any>> extends RayfinClientBase<TSchema> {
67
+ export declare class RayfinClient<TSchema extends EntitySchema = Record<string, any>, TFunctionsSchema extends FunctionsSchema = FunctionsSchema> extends RayfinClientBase<TSchema> {
67
68
  readonly auth: Auth;
69
+ readonly functions: ReturnType<typeof createFunctionsApi<TFunctionsSchema>>;
68
70
  constructor(config: RayfinClientConfig);
69
71
  }
70
72
  /**
package/dist/client.js CHANGED
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import { Auth } from '@microsoft/rayfin-auth';
7
7
  import { createDataApi } from '@microsoft/rayfin-data';
8
+ import { createFunctionsApi, } from '@microsoft/rayfin-functions';
8
9
  import { SdkError, NetworkError } from '@microsoft/rayfin-lib';
9
10
  import { ApiClient } from '@microsoft/rayfin-lib';
10
11
  /**
@@ -71,10 +72,12 @@ export class RayfinClientBase {
71
72
  */
72
73
  export class RayfinClient extends RayfinClientBase {
73
74
  auth;
75
+ functions; // Functions-specific operations (typed function schema)
74
76
  constructor(config) {
75
77
  super(config);
76
78
  this.auth = new Auth(this.apiClient, { storage: config.authStorage });
77
79
  this.auth.attachToClient(this.apiClient);
80
+ this.functions = createFunctionsApi(this.apiClient);
78
81
  }
79
82
  }
80
83
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/rayfin-client",
3
- "version": "1.27.0",
3
+ "version": "1.29.0",
4
4
  "description": "Main client SDK for Rayfin services",
5
5
  "type": "module",
6
6
  "exports": {
@@ -20,9 +20,10 @@
20
20
  "LICENSE"
21
21
  ],
22
22
  "dependencies": {
23
- "@microsoft/rayfin-auth": "1.27.0",
24
- "@microsoft/rayfin-data": "1.27.0",
25
- "@microsoft/rayfin-lib": "1.27.0"
23
+ "@microsoft/rayfin-auth": "1.29.0",
24
+ "@microsoft/rayfin-data": "1.29.0",
25
+ "@microsoft/rayfin-lib": "1.29.0",
26
+ "@microsoft/rayfin-functions": "1.29.0"
26
27
  },
27
28
  "devDependencies": {
28
29
  "typescript": "^5.8.3",