@pi-r/gcp 0.7.2 → 0.7.4

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.
Files changed (3) hide show
  1. package/README.md +6 -6
  2. package/package.json +29 -29
  3. package/types/index.d.ts +35 -35
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- ### @pi-r/gcp
2
-
3
- https://e-mc.readthedocs.io/en/latest/cloud/gcp.html
4
-
5
- ### LICENSE
6
-
1
+ ### @pi-r/gcp
2
+
3
+ https://e-mc.readthedocs.io/en/latest/cloud/gcp.html
4
+
5
+ ### LICENSE
6
+
7
7
  MIT
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
- {
2
- "name": "@pi-r/gcp",
3
- "version": "0.7.2",
4
- "description": "Google (GCP) cloud functions for E-mc.",
5
- "main": "client/index.js",
6
- "publishConfig": {
7
- "access": "public"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/anpham6/pi-r.git",
12
- "directory": "src/cloud/gcp"
13
- },
14
- "keywords": [
15
- "squared",
16
- "e-mc",
17
- "squared-functions"
18
- ],
19
- "author": "An Pham <anpham6@gmail.com>",
20
- "license": "MIT",
21
- "homepage": "https://github.com/anpham6/pi-r#readme",
22
- "dependencies": {
23
- "@e-mc/cloud": "^0.9.4",
24
- "@e-mc/module": "^0.9.4",
25
- "@e-mc/types": "^0.9.4",
26
- "@google-cloud/firestore": "^7.8.0",
27
- "@google-cloud/storage": "^7.11.2"
28
- }
29
- }
1
+ {
2
+ "name": "@pi-r/gcp",
3
+ "version": "0.7.4",
4
+ "description": "Google (GCP) cloud functions for E-mc.",
5
+ "main": "client/index.js",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/anpham6/pi-r.git",
12
+ "directory": "src/cloud/gcp"
13
+ },
14
+ "keywords": [
15
+ "squared",
16
+ "e-mc",
17
+ "squared-functions"
18
+ ],
19
+ "author": "An Pham <anpham6@gmail.com>",
20
+ "license": "MIT",
21
+ "homepage": "https://github.com/anpham6/pi-r#readme",
22
+ "dependencies": {
23
+ "@e-mc/cloud": "^0.9.12",
24
+ "@e-mc/module": "^0.9.12",
25
+ "@e-mc/types": "^0.9.12",
26
+ "@google-cloud/firestore": "^7.10.0",
27
+ "@google-cloud/storage": "^7.13.0"
28
+ }
29
+ }
package/types/index.d.ts CHANGED
@@ -1,36 +1,36 @@
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 { entity } from '@google-cloud/datastore/build/src/entity';
6
- import type { FirebaseOptions as IFirebaseOptions } from '@firebase/app';
7
-
8
- // @ts-ignore
9
- import type { GoogleAuthOptions } from 'google-auth-library';
10
-
11
- export type GCPStorage = CloudStorage<GCPStorageCredential, "gcp | gcloud">;
12
-
13
- export interface GCPStorageCredential extends StorageOptions, IFirebaseOptions {}
14
-
15
- export interface GCPDatabaseQuery<T = PlainObject> extends Omit<CloudDatabase<unknown, T, unknown, unknown[] | StandardMap, GCPDatabaseCredential>, "id"> {
16
- source: "cloud";
17
- service: "gcp" | "gcloud";
18
- product?: "firestore" | "firebase" | "bigquery" | "bigtable" | "datastore" | "spanner";
19
- database?: string;
20
- id?: ArrayOf<string>;
21
- updateType?: 0 | 1 | 2 | 3;
22
- columns?: string[];
23
- keys?: ArrayOf<DatastoreKey>;
24
- kind?: ArrayOf<string>;
25
- orderBy?: unknown[][];
26
- }
27
-
28
- export type GCPDatabaseCredential = GoogleAuthOptions;
29
-
30
- export interface FirebaseOptions extends IFirebaseOptions {
31
- product?: "firebase";
32
- admin?: boolean;
33
- }
34
-
35
- export type DatastoreKey = string | PathType[] | entity.KeyOptions;
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 { entity } from '@google-cloud/datastore/build/src/entity';
6
+ import type { FirebaseOptions as IFirebaseOptions } from '@firebase/app';
7
+
8
+ // @ts-ignore
9
+ import type { GoogleAuthOptions } from 'google-auth-library';
10
+
11
+ export type GCPStorage = CloudStorage<GCPStorageCredential, "gcp | gcloud">;
12
+
13
+ export interface GCPStorageCredential extends StorageOptions, IFirebaseOptions {}
14
+
15
+ export interface GCPDatabaseQuery<T = PlainObject> extends Omit<CloudDatabase<unknown, T, unknown, unknown[] | StandardMap, GCPDatabaseCredential>, "id"> {
16
+ source: "cloud";
17
+ service: "gcp" | "gcloud";
18
+ product?: "firestore" | "firebase" | "bigquery" | "bigtable" | "datastore" | "spanner";
19
+ database?: string;
20
+ id?: ArrayOf<string>;
21
+ updateType?: 0 | 1 | 2 | 3;
22
+ columns?: string[];
23
+ keys?: ArrayOf<DatastoreKey>;
24
+ kind?: ArrayOf<string>;
25
+ orderBy?: unknown[][];
26
+ }
27
+
28
+ export type GCPDatabaseCredential = GoogleAuthOptions;
29
+
30
+ export interface FirebaseOptions extends IFirebaseOptions {
31
+ product?: "firebase";
32
+ admin?: boolean;
33
+ }
34
+
35
+ export type DatastoreKey = string | PathType[] | entity.KeyOptions;
36
36
  export type BucketAcl = "authenticatedRead" | "private" | "projectPrivate" | "publicRead" | "publicReadWrite" | "bucketAccessUniform" | "bucketAccessACL";