@firebase/data-connect 0.3.3 → 0.3.4-canary.080a90dcc

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/private.d.ts CHANGED
@@ -40,9 +40,9 @@ export declare const CallerSdkTypeEnum: {
40
40
  readonly GeneratedAngular: "GeneratedAngular";
41
41
  };
42
42
 
43
- declare type Code = DataConnectErrorCode;
43
+ export declare type Code = DataConnectErrorCode;
44
44
 
45
- declare const Code: {
45
+ export declare const Code: {
46
46
  OTHER: DataConnectErrorCode;
47
47
  ALREADY_INITIALIZED: DataConnectErrorCode;
48
48
  NOT_INITIALIZED: DataConnectErrorCode;
@@ -101,7 +101,6 @@ export declare class DataConnect {
101
101
  /** An error returned by a DataConnect operation. */
102
102
  export declare class DataConnectError extends FirebaseError {
103
103
  /* Excluded from this release type: name */
104
- /** @hideconstructor */
105
104
  constructor(code: Code, message: string);
106
105
  /* Excluded from this release type: toString */
107
106
  }
package/dist/public.d.ts CHANGED
@@ -24,6 +24,16 @@ export declare const CallerSdkTypeEnum: {
24
24
  readonly TanstackAngularCore: "TanstackAngularCore";
25
25
  readonly GeneratedAngular: "GeneratedAngular";
26
26
  };
27
+ export declare type Code = DataConnectErrorCode;
28
+ export declare const Code: {
29
+ OTHER: DataConnectErrorCode;
30
+ ALREADY_INITIALIZED: DataConnectErrorCode;
31
+ NOT_INITIALIZED: DataConnectErrorCode;
32
+ NOT_SUPPORTED: DataConnectErrorCode;
33
+ INVALID_ARGUMENT: DataConnectErrorCode;
34
+ PARTIAL_ERROR: DataConnectErrorCode;
35
+ UNAUTHORIZED: DataConnectErrorCode;
36
+ };
27
37
  /**
28
38
  * Connect to the DataConnect Emulator
29
39
  * @param dc Data Connect instance
@@ -54,7 +64,8 @@ export declare class DataConnect {
54
64
  }
55
65
  /** An error returned by a DataConnect operation. */
56
66
  export declare class DataConnectError extends FirebaseError {
57
- private constructor();
67
+ /* Excluded from this release type: name */
68
+ constructor(code: Code, message: string);
58
69
  }
59
70
  export declare type DataConnectErrorCode = 'other' | 'already-initialized' | 'not-initialized' | 'not-supported' | 'invalid-argument' | 'partial-error' | 'unauthorized';
60
71
  /** An error returned by a DataConnect operation. */
@@ -21,4 +21,4 @@ export * from './Mutation';
21
21
  export * from './query';
22
22
  export { setLogLevel } from '../logger';
23
23
  export { validateArgs } from '../util/validateArgs';
24
- export { DataConnectErrorCode, DataConnectError, DataConnectOperationError, DataConnectOperationFailureResponse, DataConnectOperationFailureResponseErrorInfo } from '../core/error';
24
+ export { DataConnectErrorCode, Code, DataConnectError, DataConnectOperationError, DataConnectOperationFailureResponse, DataConnectOperationFailureResponseErrorInfo } from '../core/error';
@@ -30,7 +30,6 @@ export declare const Code: {
30
30
  export declare class DataConnectError extends FirebaseError {
31
31
  /** @internal */
32
32
  readonly name: string;
33
- /** @hideconstructor */
34
33
  constructor(code: Code, message: string);
35
34
  /** @internal */
36
35
  toString(): string;
@@ -21,7 +21,7 @@ export interface DataConnectFetchBody<T> {
21
21
  operationName: string;
22
22
  variables: T;
23
23
  }
24
- export declare function dcFetch<T, U>(url: string, body: DataConnectFetchBody<U>, { signal }: AbortController, appId: string | null, accessToken: string | null, appCheckToken: string | null, _isUsingGen: boolean, _callerSdkType: CallerSdkType): Promise<{
24
+ export declare function dcFetch<T, U>(url: string, body: DataConnectFetchBody<U>, { signal }: AbortController, appId: string | null, accessToken: string | null, appCheckToken: string | null, _isUsingGen: boolean, _callerSdkType: CallerSdkType, _isUsingEmulator: boolean): Promise<{
25
25
  data: T;
26
26
  errors: Error[];
27
27
  }>;
@@ -35,6 +35,7 @@ export declare class RESTTransport implements DataConnectTransport {
35
35
  private _accessToken;
36
36
  private _appCheckToken;
37
37
  private _lastToken;
38
+ private _isUsingEmulator;
38
39
  constructor(options: DataConnectOptions, apiKey?: string | undefined, appId?: string, authProvider?: AuthTokenProvider | undefined, appCheckProvider?: AppCheckTokenProvider | undefined, transportOptions?: TransportOptions | undefined, _isUsingGen?: boolean, _callerSdkType?: CallerSdkType);
39
40
  get endpointUrl(): string;
40
41
  useEmulator(host: string, port?: number, isSecure?: boolean): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/data-connect",
3
- "version": "0.3.3",
3
+ "version": "0.3.4-canary.080a90dcc",
4
4
  "description": "",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.node.cjs.js",
@@ -45,17 +45,17 @@
45
45
  },
46
46
  "license": "Apache-2.0",
47
47
  "peerDependencies": {
48
- "@firebase/app": "0.x"
48
+ "@firebase/app": "0.11.5-canary.080a90dcc"
49
49
  },
50
50
  "dependencies": {
51
- "@firebase/auth-interop-types": "0.2.4",
52
- "@firebase/component": "0.6.13",
53
- "@firebase/logger": "0.4.4",
54
- "@firebase/util": "1.11.0",
51
+ "@firebase/auth-interop-types": "0.2.4-canary.080a90dcc",
52
+ "@firebase/component": "0.6.13-canary.080a90dcc",
53
+ "@firebase/logger": "0.4.4-canary.080a90dcc",
54
+ "@firebase/util": "1.11.0-canary.080a90dcc",
55
55
  "tslib": "^2.1.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@firebase/app": "0.11.4",
58
+ "@firebase/app": "0.11.5-canary.080a90dcc",
59
59
  "rollup": "2.79.2",
60
60
  "rollup-plugin-typescript2": "0.36.0",
61
61
  "typescript": "5.5.4"