firebase-admin 13.3.0 → 13.4.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/lib/app/core.d.ts +1 -1
- package/lib/app/core.js +1 -1
- package/lib/app/credential-factory.d.ts +1 -1
- package/lib/app/credential-factory.js +1 -1
- package/lib/app/credential-internal.d.ts +1 -1
- package/lib/app/credential-internal.js +1 -1
- package/lib/app/credential.d.ts +1 -1
- package/lib/app/credential.js +1 -1
- package/lib/app/firebase-app.d.ts +1 -1
- package/lib/app/firebase-app.js +1 -1
- package/lib/app/firebase-namespace.d.ts +1 -1
- package/lib/app/firebase-namespace.js +1 -1
- package/lib/app/index.d.ts +1 -1
- package/lib/app/index.js +1 -1
- package/lib/app/lifecycle.d.ts +1 -1
- package/lib/app/lifecycle.js +1 -1
- package/lib/app-check/app-check-api-client-internal.d.ts +1 -1
- package/lib/app-check/app-check-api-client-internal.js +1 -1
- package/lib/app-check/app-check-api.d.ts +1 -1
- package/lib/app-check/app-check-api.js +1 -1
- package/lib/app-check/app-check-namespace.d.ts +1 -1
- package/lib/app-check/app-check-namespace.js +1 -1
- package/lib/app-check/app-check.d.ts +1 -1
- package/lib/app-check/app-check.js +1 -1
- package/lib/app-check/index.d.ts +1 -1
- package/lib/app-check/index.js +1 -1
- package/lib/app-check/token-generator.d.ts +1 -1
- package/lib/app-check/token-generator.js +1 -1
- package/lib/app-check/token-verifier.d.ts +1 -1
- package/lib/app-check/token-verifier.js +1 -1
- package/lib/auth/action-code-settings-builder.d.ts +1 -1
- package/lib/auth/action-code-settings-builder.js +1 -1
- package/lib/auth/auth-api-request.d.ts +1 -1
- package/lib/auth/auth-api-request.js +1 -1
- package/lib/auth/auth-config.d.ts +1 -1
- package/lib/auth/auth-config.js +1 -1
- package/lib/auth/auth-namespace.d.ts +1 -1
- package/lib/auth/auth-namespace.js +1 -1
- package/lib/auth/auth.d.ts +1 -1
- package/lib/auth/auth.js +1 -1
- package/lib/auth/base-auth.d.ts +1 -1
- package/lib/auth/base-auth.js +1 -1
- package/lib/auth/identifier.d.ts +1 -1
- package/lib/auth/identifier.js +1 -1
- package/lib/auth/index.d.ts +1 -1
- package/lib/auth/index.js +1 -1
- package/lib/auth/project-config-manager.d.ts +1 -1
- package/lib/auth/project-config-manager.js +1 -1
- package/lib/auth/project-config.d.ts +1 -1
- package/lib/auth/project-config.js +1 -1
- package/lib/auth/tenant-manager.d.ts +1 -1
- package/lib/auth/tenant-manager.js +1 -1
- package/lib/auth/tenant.d.ts +1 -1
- package/lib/auth/tenant.js +1 -1
- package/lib/auth/token-generator.d.ts +1 -1
- package/lib/auth/token-generator.js +1 -1
- package/lib/auth/token-verifier.d.ts +1 -1
- package/lib/auth/token-verifier.js +1 -1
- package/lib/auth/user-import-builder.d.ts +1 -1
- package/lib/auth/user-import-builder.js +1 -1
- package/lib/auth/user-record.d.ts +1 -1
- package/lib/auth/user-record.js +1 -1
- package/lib/credential/index.d.ts +1 -1
- package/lib/credential/index.js +1 -1
- package/lib/data-connect/data-connect-api-client-internal.d.ts +1 -1
- package/lib/data-connect/data-connect-api-client-internal.js +147 -1
- package/lib/data-connect/data-connect-api.d.ts +1 -1
- package/lib/data-connect/data-connect-api.js +1 -1
- package/lib/data-connect/data-connect.d.ts +44 -14
- package/lib/data-connect/data-connect.js +57 -19
- package/lib/data-connect/index.d.ts +1 -1
- package/lib/data-connect/index.js +1 -1
- package/lib/database/database-namespace.d.ts +1 -1
- package/lib/database/database-namespace.js +1 -1
- package/lib/database/database.d.ts +1 -1
- package/lib/database/database.js +1 -1
- package/lib/database/index.d.ts +1 -1
- package/lib/database/index.js +1 -1
- package/lib/default-namespace.d.ts +1 -1
- package/lib/default-namespace.js +1 -1
- package/lib/eventarc/cloudevent.d.ts +1 -1
- package/lib/eventarc/cloudevent.js +1 -1
- package/lib/eventarc/eventarc-client-internal.d.ts +1 -1
- package/lib/eventarc/eventarc-client-internal.js +1 -1
- package/lib/eventarc/eventarc-utils.d.ts +1 -1
- package/lib/eventarc/eventarc-utils.js +1 -1
- package/lib/eventarc/eventarc.d.ts +1 -1
- package/lib/eventarc/eventarc.js +1 -1
- package/lib/eventarc/index.d.ts +1 -1
- package/lib/eventarc/index.js +1 -1
- package/lib/extensions/extensions-api-client-internal.d.ts +1 -1
- package/lib/extensions/extensions-api-client-internal.js +1 -1
- package/lib/extensions/extensions-api.d.ts +1 -1
- package/lib/extensions/extensions-api.js +1 -1
- package/lib/extensions/extensions.d.ts +1 -1
- package/lib/extensions/extensions.js +1 -1
- package/lib/extensions/index.d.ts +1 -1
- package/lib/extensions/index.js +1 -1
- package/lib/firebase-namespace-api.d.ts +1 -1
- package/lib/firebase-namespace-api.js +1 -1
- package/lib/firestore/firestore-internal.d.ts +1 -1
- package/lib/firestore/firestore-internal.js +1 -1
- package/lib/firestore/firestore-namespace.d.ts +1 -1
- package/lib/firestore/firestore-namespace.js +1 -1
- package/lib/firestore/index.d.ts +1 -1
- package/lib/firestore/index.js +1 -1
- package/lib/functions/functions-api-client-internal.d.ts +1 -1
- package/lib/functions/functions-api-client-internal.js +1 -1
- package/lib/functions/functions-api.d.ts +1 -1
- package/lib/functions/functions-api.js +1 -1
- package/lib/functions/functions.d.ts +1 -1
- package/lib/functions/functions.js +1 -1
- package/lib/functions/index.d.ts +1 -1
- package/lib/functions/index.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/installations/index.d.ts +1 -1
- package/lib/installations/index.js +1 -1
- package/lib/installations/installations-namespace.d.ts +1 -1
- package/lib/installations/installations-namespace.js +1 -1
- package/lib/installations/installations-request-handler.d.ts +1 -1
- package/lib/installations/installations-request-handler.js +1 -1
- package/lib/installations/installations.d.ts +1 -1
- package/lib/installations/installations.js +1 -1
- package/lib/instance-id/index.d.ts +1 -1
- package/lib/instance-id/index.js +1 -1
- package/lib/instance-id/instance-id-namespace.d.ts +1 -1
- package/lib/instance-id/instance-id-namespace.js +1 -1
- package/lib/instance-id/instance-id.d.ts +1 -1
- package/lib/instance-id/instance-id.js +1 -1
- package/lib/machine-learning/index.d.ts +1 -1
- package/lib/machine-learning/index.js +1 -1
- package/lib/machine-learning/machine-learning-api-client.d.ts +1 -1
- package/lib/machine-learning/machine-learning-api-client.js +1 -1
- package/lib/machine-learning/machine-learning-namespace.d.ts +1 -1
- package/lib/machine-learning/machine-learning-namespace.js +1 -1
- package/lib/machine-learning/machine-learning-utils.d.ts +1 -1
- package/lib/machine-learning/machine-learning-utils.js +1 -1
- package/lib/machine-learning/machine-learning.d.ts +1 -1
- package/lib/machine-learning/machine-learning.js +1 -1
- package/lib/messaging/index.d.ts +1 -1
- package/lib/messaging/index.js +1 -1
- package/lib/messaging/messaging-api-request-internal.d.ts +1 -1
- package/lib/messaging/messaging-api-request-internal.js +1 -1
- package/lib/messaging/messaging-api.d.ts +1 -1
- package/lib/messaging/messaging-api.js +1 -1
- package/lib/messaging/messaging-errors-internal.d.ts +1 -1
- package/lib/messaging/messaging-errors-internal.js +1 -1
- package/lib/messaging/messaging-internal.d.ts +1 -1
- package/lib/messaging/messaging-internal.js +1 -1
- package/lib/messaging/messaging-namespace.d.ts +1 -1
- package/lib/messaging/messaging-namespace.js +1 -1
- package/lib/messaging/messaging.d.ts +1 -1
- package/lib/messaging/messaging.js +1 -1
- package/lib/project-management/android-app.d.ts +1 -1
- package/lib/project-management/android-app.js +1 -1
- package/lib/project-management/app-metadata.d.ts +1 -1
- package/lib/project-management/app-metadata.js +1 -1
- package/lib/project-management/index.d.ts +1 -1
- package/lib/project-management/index.js +1 -1
- package/lib/project-management/ios-app.d.ts +1 -1
- package/lib/project-management/ios-app.js +1 -1
- package/lib/project-management/project-management-api-request-internal.d.ts +1 -1
- package/lib/project-management/project-management-api-request-internal.js +1 -1
- package/lib/project-management/project-management-namespace.d.ts +1 -1
- package/lib/project-management/project-management-namespace.js +1 -1
- package/lib/project-management/project-management.d.ts +1 -1
- package/lib/project-management/project-management.js +1 -1
- package/lib/remote-config/condition-evaluator-internal.d.ts +1 -1
- package/lib/remote-config/condition-evaluator-internal.js +1 -1
- package/lib/remote-config/index.d.ts +1 -1
- package/lib/remote-config/index.js +1 -1
- package/lib/remote-config/internal/value-impl.d.ts +1 -1
- package/lib/remote-config/internal/value-impl.js +1 -1
- package/lib/remote-config/remote-config-api-client-internal.d.ts +1 -1
- package/lib/remote-config/remote-config-api-client-internal.js +1 -1
- package/lib/remote-config/remote-config-api.d.ts +1 -1
- package/lib/remote-config/remote-config-api.js +1 -1
- package/lib/remote-config/remote-config-namespace.d.ts +1 -1
- package/lib/remote-config/remote-config-namespace.js +1 -1
- package/lib/remote-config/remote-config.d.ts +1 -1
- package/lib/remote-config/remote-config.js +1 -1
- package/lib/security-rules/index.d.ts +1 -1
- package/lib/security-rules/index.js +1 -1
- package/lib/security-rules/security-rules-api-client-internal.d.ts +1 -1
- package/lib/security-rules/security-rules-api-client-internal.js +1 -1
- package/lib/security-rules/security-rules-internal.d.ts +1 -1
- package/lib/security-rules/security-rules-internal.js +1 -1
- package/lib/security-rules/security-rules-namespace.d.ts +1 -1
- package/lib/security-rules/security-rules-namespace.js +1 -1
- package/lib/security-rules/security-rules.d.ts +1 -1
- package/lib/security-rules/security-rules.js +1 -1
- package/lib/storage/index.d.ts +1 -1
- package/lib/storage/index.js +1 -1
- package/lib/storage/storage-namespace.d.ts +1 -1
- package/lib/storage/storage-namespace.js +1 -1
- package/lib/storage/storage.d.ts +1 -1
- package/lib/storage/storage.js +1 -1
- package/lib/storage/utils.d.ts +1 -1
- package/lib/storage/utils.js +1 -1
- package/lib/utils/api-request.d.ts +1 -1
- package/lib/utils/api-request.js +1 -1
- package/lib/utils/crypto-signer.d.ts +1 -1
- package/lib/utils/crypto-signer.js +1 -1
- package/lib/utils/deep-copy.d.ts +1 -1
- package/lib/utils/deep-copy.js +1 -1
- package/lib/utils/error.d.ts +1 -1
- package/lib/utils/error.js +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/jwt.d.ts +1 -1
- package/lib/utils/jwt.js +1 -1
- package/lib/utils/validator.d.ts +1 -1
- package/lib/utils/validator.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.4.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2024 Google Inc.
|
|
@@ -23,10 +23,10 @@ export declare class DataConnectService {
|
|
|
23
23
|
constructor(app: App);
|
|
24
24
|
getDataConnect(connectorConfig: ConnectorConfig): DataConnect;
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
* Returns the app associated with this `DataConnectService` instance.
|
|
27
|
+
*
|
|
28
|
+
* @returns The app associated with this `DataConnectService` instance.
|
|
29
|
+
*/
|
|
30
30
|
get app(): App;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
@@ -37,14 +37,13 @@ export declare class DataConnect {
|
|
|
37
37
|
readonly app: App;
|
|
38
38
|
private readonly client;
|
|
39
39
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
*/
|
|
40
|
+
* Execute an arbitrary GraphQL query or mutation
|
|
41
|
+
*
|
|
42
|
+
* @param query - The GraphQL query or mutation.
|
|
43
|
+
* @param options - Optional {@link GraphqlOptions} when executing a GraphQL query or mutation.
|
|
44
|
+
*
|
|
45
|
+
* @returns A promise that fulfills with a `ExecuteGraphqlResponse`.
|
|
46
|
+
*/
|
|
48
47
|
executeGraphql<GraphqlResponse, Variables>(query: string, options?: GraphqlOptions<Variables>): Promise<ExecuteGraphqlResponse<GraphqlResponse>>;
|
|
49
48
|
/**
|
|
50
49
|
* Execute an arbitrary read-only GraphQL query
|
|
@@ -53,7 +52,38 @@ export declare class DataConnect {
|
|
|
53
52
|
* @param options - Optional {@link GraphqlOptions} when executing a read-only GraphQL query.
|
|
54
53
|
*
|
|
55
54
|
* @returns A promise that fulfills with a `ExecuteGraphqlResponse`.
|
|
56
|
-
* @beta
|
|
57
55
|
*/
|
|
58
56
|
executeGraphqlRead<GraphqlResponse, Variables>(query: string, options?: GraphqlOptions<Variables>): Promise<ExecuteGraphqlResponse<GraphqlResponse>>;
|
|
57
|
+
/**
|
|
58
|
+
* Insert a single row into the specified table.
|
|
59
|
+
*
|
|
60
|
+
* @param tableName - The name of the table to insert data into.
|
|
61
|
+
* @param variables - The data object to insert. The keys should correspond to the column names.
|
|
62
|
+
* @returns A promise that fulfills with a `ExecuteGraphqlResponse`.
|
|
63
|
+
*/
|
|
64
|
+
insert<GraphQlResponse, Variables extends object>(tableName: string, variables: Variables): Promise<ExecuteGraphqlResponse<GraphQlResponse>>;
|
|
65
|
+
/**
|
|
66
|
+
* Insert multiple rows into the specified table.
|
|
67
|
+
*
|
|
68
|
+
* @param tableName - The name of the table to insert data into.
|
|
69
|
+
* @param variables - An array of data objects to insert. Each object's keys should correspond to the column names.
|
|
70
|
+
* @returns A promise that fulfills with a `ExecuteGraphqlResponse`.
|
|
71
|
+
*/
|
|
72
|
+
insertMany<GraphQlResponse, Variables extends Array<unknown>>(tableName: string, variables: Variables): Promise<ExecuteGraphqlResponse<GraphQlResponse>>;
|
|
73
|
+
/**
|
|
74
|
+
* Insert a single row into the specified table, or update it if it already exists.
|
|
75
|
+
*
|
|
76
|
+
* @param tableName - The name of the table to upsert data into.
|
|
77
|
+
* @param variables - The data object to upsert. The keys should correspond to the column names.
|
|
78
|
+
* @returns A promise that fulfills with a `ExecuteGraphqlResponse`.
|
|
79
|
+
*/
|
|
80
|
+
upsert<GraphQlResponse, Variables extends object>(tableName: string, variables: Variables): Promise<ExecuteGraphqlResponse<GraphQlResponse>>;
|
|
81
|
+
/**
|
|
82
|
+
* Insert multiple rows into the specified table, or update them if they already exist.
|
|
83
|
+
*
|
|
84
|
+
* @param tableName - The name of the table to upsert data into.
|
|
85
|
+
* @param variables - An array of data objects to upsert. Each object's keys should correspond to the column names.
|
|
86
|
+
* @returns A promise that fulfills with a `ExecuteGraphqlResponse`.
|
|
87
|
+
*/
|
|
88
|
+
upsertMany<GraphQlResponse, Variables extends Array<unknown>>(tableName: string, variables: Variables): Promise<ExecuteGraphqlResponse<GraphQlResponse>>;
|
|
59
89
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.
|
|
1
|
+
/*! firebase-admin v13.4.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
@@ -35,10 +35,10 @@ class DataConnectService {
|
|
|
35
35
|
return newInstance;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
* Returns the app associated with this `DataConnectService` instance.
|
|
39
|
+
*
|
|
40
|
+
* @returns The app associated with this `DataConnectService` instance.
|
|
41
|
+
*/
|
|
42
42
|
get app() {
|
|
43
43
|
return this.appInternal;
|
|
44
44
|
}
|
|
@@ -49,25 +49,24 @@ exports.DataConnectService = DataConnectService;
|
|
|
49
49
|
*/
|
|
50
50
|
class DataConnect {
|
|
51
51
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
* @param connectorConfig - The connector configuration.
|
|
53
|
+
* @param app - The app for this `DataConnect` service.
|
|
54
|
+
* @constructor
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
57
|
constructor(connectorConfig, app) {
|
|
58
58
|
this.connectorConfig = connectorConfig;
|
|
59
59
|
this.app = app;
|
|
60
60
|
this.client = new data_connect_api_client_internal_1.DataConnectApiClient(connectorConfig, app);
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
*/
|
|
63
|
+
* Execute an arbitrary GraphQL query or mutation
|
|
64
|
+
*
|
|
65
|
+
* @param query - The GraphQL query or mutation.
|
|
66
|
+
* @param options - Optional {@link GraphqlOptions} when executing a GraphQL query or mutation.
|
|
67
|
+
*
|
|
68
|
+
* @returns A promise that fulfills with a `ExecuteGraphqlResponse`.
|
|
69
|
+
*/
|
|
71
70
|
executeGraphql(query, options) {
|
|
72
71
|
return this.client.executeGraphql(query, options);
|
|
73
72
|
}
|
|
@@ -78,10 +77,49 @@ class DataConnect {
|
|
|
78
77
|
* @param options - Optional {@link GraphqlOptions} when executing a read-only GraphQL query.
|
|
79
78
|
*
|
|
80
79
|
* @returns A promise that fulfills with a `ExecuteGraphqlResponse`.
|
|
81
|
-
* @beta
|
|
82
80
|
*/
|
|
83
81
|
executeGraphqlRead(query, options) {
|
|
84
82
|
return this.client.executeGraphqlRead(query, options);
|
|
85
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Insert a single row into the specified table.
|
|
86
|
+
*
|
|
87
|
+
* @param tableName - The name of the table to insert data into.
|
|
88
|
+
* @param variables - The data object to insert. The keys should correspond to the column names.
|
|
89
|
+
* @returns A promise that fulfills with a `ExecuteGraphqlResponse`.
|
|
90
|
+
*/
|
|
91
|
+
insert(tableName, variables) {
|
|
92
|
+
return this.client.insert(tableName, variables);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Insert multiple rows into the specified table.
|
|
96
|
+
*
|
|
97
|
+
* @param tableName - The name of the table to insert data into.
|
|
98
|
+
* @param variables - An array of data objects to insert. Each object's keys should correspond to the column names.
|
|
99
|
+
* @returns A promise that fulfills with a `ExecuteGraphqlResponse`.
|
|
100
|
+
*/
|
|
101
|
+
insertMany(tableName, variables) {
|
|
102
|
+
return this.client.insertMany(tableName, variables);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Insert a single row into the specified table, or update it if it already exists.
|
|
106
|
+
*
|
|
107
|
+
* @param tableName - The name of the table to upsert data into.
|
|
108
|
+
* @param variables - The data object to upsert. The keys should correspond to the column names.
|
|
109
|
+
* @returns A promise that fulfills with a `ExecuteGraphqlResponse`.
|
|
110
|
+
*/
|
|
111
|
+
upsert(tableName, variables) {
|
|
112
|
+
return this.client.upsert(tableName, variables);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Insert multiple rows into the specified table, or update them if they already exist.
|
|
116
|
+
*
|
|
117
|
+
* @param tableName - The name of the table to upsert data into.
|
|
118
|
+
* @param variables - An array of data objects to upsert. Each object's keys should correspond to the column names.
|
|
119
|
+
* @returns A promise that fulfills with a `ExecuteGraphqlResponse`.
|
|
120
|
+
*/
|
|
121
|
+
upsertMany(tableName, variables) {
|
|
122
|
+
return this.client.upsertMany(tableName, variables);
|
|
123
|
+
}
|
|
86
124
|
}
|
|
87
125
|
exports.DataConnect = DataConnect;
|
package/lib/database/database.js
CHANGED
package/lib/database/index.d.ts
CHANGED
package/lib/database/index.js
CHANGED
package/lib/default-namespace.js
CHANGED
package/lib/eventarc/eventarc.js
CHANGED
package/lib/eventarc/index.d.ts
CHANGED
package/lib/eventarc/index.js
CHANGED
package/lib/extensions/index.js
CHANGED
package/lib/firestore/index.d.ts
CHANGED
package/lib/firestore/index.js
CHANGED
package/lib/functions/index.d.ts
CHANGED
package/lib/functions/index.js
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/lib/instance-id/index.js
CHANGED