@pi-r/gcp 0.2.13 → 0.2.15
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/package.json +4 -4
- package/types/index.d.ts +0 -40
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/gcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"description": "Google (GCP) cloud functions for E-mc.",
|
|
5
5
|
"main": "client/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/pi-r#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/cloud": "^0.5.
|
|
24
|
-
"@e-mc/module": "^0.5.
|
|
25
|
-
"@e-mc/types": "^0.5.
|
|
23
|
+
"@e-mc/cloud": "^0.5.23",
|
|
24
|
+
"@e-mc/module": "^0.5.23",
|
|
25
|
+
"@e-mc/types": "^0.5.23",
|
|
26
26
|
"@google-cloud/firestore": "^6.8.0",
|
|
27
27
|
"@google-cloud/storage": "^6.12.0"
|
|
28
28
|
}
|
package/types/index.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { CloudDatabase, CloudStorage } from '@e-mc/types/lib/cloud';
|
|
2
|
-
|
|
3
|
-
import type { StorageOptions } from '@google-cloud/storage';
|
|
4
|
-
import type { PathType } from '@google-cloud/datastore';
|
|
5
|
-
import type { AggregateSpec } from '@google-cloud/firestore';
|
|
6
|
-
import type { entity } from '@google-cloud/datastore/build/src/entity';
|
|
7
|
-
import type { FirebaseOptions as IFirebaseOptions } from '@firebase/app';
|
|
8
|
-
import type { ServiceAccount } from 'firebase-admin/app';
|
|
9
|
-
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
import type { GoogleAuthOptions } from 'google-auth-library';
|
|
12
|
-
|
|
13
|
-
export type GCPStorage = CloudStorage<GCPStorageCredential, "gcp | gcloud">;
|
|
14
|
-
|
|
15
|
-
export interface GCPStorageCredential extends StorageOptions, IFirebaseOptions {}
|
|
16
|
-
|
|
17
|
-
export interface GCPDatabaseQuery<T = PlainObject> extends Omit<CloudDatabase<unknown, T, unknown, string | unknown[] | StandardMap, GCPDatabaseCredential>, "id"> {
|
|
18
|
-
source: "cloud";
|
|
19
|
-
service: "gcp" | "gcloud";
|
|
20
|
-
product?: "firestore" | "firebase" | "bigquery" | "bigtable" | "datastore" | "spanner";
|
|
21
|
-
database?: string;
|
|
22
|
-
id?: string | string[] | number;
|
|
23
|
-
updateType?: 0 | 1 | 2 | 3;
|
|
24
|
-
columns?: string[];
|
|
25
|
-
keys?: DatastoreKey | DatastoreKey[];
|
|
26
|
-
kind?: string | string[];
|
|
27
|
-
orderBy?: unknown[][];
|
|
28
|
-
aggregateSpec?: AggregateSpec;
|
|
29
|
-
flags?: number;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export type GCPDatabaseCredential = GoogleAuthOptions;
|
|
33
|
-
|
|
34
|
-
export interface FirebaseOptions extends IFirebaseOptions {
|
|
35
|
-
product?: "firebase";
|
|
36
|
-
admin?: boolean | string | ServiceAccount;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type DatastoreKey = string | PathType[] | entity.KeyOptions;
|
|
40
|
-
export type BucketAcl = "authenticatedRead" | "private" | "projectPrivate" | "publicRead" | "publicReadWrite" | "bucketAccessUniform" | "bucketAccessACL";
|