@pristine-ts/gcp 2.0.16 → 2.0.17
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/lib/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/dist/lib/cjs/decorators/decorators.js +0 -18
- package/dist/lib/cjs/decorators/decorators.js.map +0 -1
- package/dist/lib/cjs/decorators/dynamic-collection-name.decorator.js +0 -33
- package/dist/lib/cjs/decorators/dynamic-collection-name.decorator.js.map +0 -1
- package/dist/lib/cjs/models/dynamic-collection-name.model.js +0 -11
- package/dist/lib/cjs/models/dynamic-collection-name.model.js.map +0 -1
- package/dist/lib/esm/decorators/decorators.js +0 -2
- package/dist/lib/esm/decorators/decorators.js.map +0 -1
- package/dist/lib/esm/decorators/dynamic-collection-name.decorator.js +0 -29
- package/dist/lib/esm/decorators/dynamic-collection-name.decorator.js.map +0 -1
- package/dist/lib/esm/models/dynamic-collection-name.model.js +0 -7
- package/dist/lib/esm/models/dynamic-collection-name.model.js.map +0 -1
- package/dist/types/decorators/decorators.d.ts +0 -1
- package/dist/types/decorators/dynamic-collection-name.decorator.d.ts +0 -22
- package/dist/types/models/dynamic-collection-name.model.d.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/gcp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/gcp.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/gcp.module.js",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"@google-cloud/pubsub": "^4.8.0",
|
|
23
23
|
"@google-cloud/secret-manager": "^5.6.0",
|
|
24
24
|
"@google-cloud/storage": "^7.14.0",
|
|
25
|
-
"@pristine-ts/common": "^2.0.
|
|
26
|
-
"@pristine-ts/core": "^2.0.
|
|
27
|
-
"@pristine-ts/logging": "^2.0.
|
|
25
|
+
"@pristine-ts/common": "^2.0.17",
|
|
26
|
+
"@pristine-ts/core": "^2.0.17",
|
|
27
|
+
"@pristine-ts/logging": "^2.0.17"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"url": "https://github.com/magieno/pristine-ts.git",
|
|
69
69
|
"directory": "packages/gcp"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "26201327def8a2705293e1e47ea12fa3dc438f53"
|
|
72
72
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./dynamic-collection-name.decorator"), exports);
|
|
18
|
-
//# sourceMappingURL=decorators.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../src/decorators/decorators.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dynamicCollectionName = exports.dynamicCollectionNameRegistry = exports.FirestoreCollection = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Symbol used to stamp the resolved Firestore collection name onto a class prototype.
|
|
6
|
-
* Mirrors `DynamoDbTable` from `@awslabs-community-fork/dynamodb-data-mapper`.
|
|
7
|
-
*/
|
|
8
|
-
exports.FirestoreCollection = Symbol("FirestoreCollection");
|
|
9
|
-
/**
|
|
10
|
-
* The registry where the Firestore collection names are saved.
|
|
11
|
-
*/
|
|
12
|
-
exports.dynamicCollectionNameRegistry = [];
|
|
13
|
-
/**
|
|
14
|
-
* This decorator is placed on a class that will be used with Firestore.
|
|
15
|
-
* It registers the class against a configuration token name; during `GcpModule.afterInit`,
|
|
16
|
-
* the token is resolved from the DI container (or from an environment variable as a
|
|
17
|
-
* fallback) and the resulting collection name is stamped onto the class prototype under
|
|
18
|
-
* the `FirestoreCollection` symbol.
|
|
19
|
-
*
|
|
20
|
-
* Mirrors `@dynamicTableName` in `@pristine-ts/aws`.
|
|
21
|
-
*
|
|
22
|
-
* @param name The container token whose value is the Firestore collection name.
|
|
23
|
-
*/
|
|
24
|
-
const dynamicCollectionName = (name) => {
|
|
25
|
-
return (constructor) => {
|
|
26
|
-
exports.dynamicCollectionNameRegistry.push({
|
|
27
|
-
tokenName: name,
|
|
28
|
-
classConstructor: constructor,
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
exports.dynamicCollectionName = dynamicCollectionName;
|
|
33
|
-
//# sourceMappingURL=dynamic-collection-name.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-collection-name.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/dynamic-collection-name.decorator.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACU,QAAA,mBAAmB,GAAkB,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAEhF;;GAEG;AACU,QAAA,6BAA6B,GAAiC,EAAE,CAAC;AAE9E;;;;;;;;;;GAUG;AACI,MAAM,qBAAqB,GAAG,CAAC,IAAY,EAAE,EAAE;IACpD,OAAO,CAAC,WAAgB,EAAE,EAAE;QAC1B,qCAA6B,CAAC,IAAI,CAAC;YACjC,SAAS,EAAE,IAAI;YACf,gBAAgB,EAAE,WAAW;SAC9B,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,qBAAqB,yBAOhC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DynamicCollectionNameModel = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Model representing the object that the `@dynamicCollectionName` decorator saves in the
|
|
6
|
-
* registry, mirroring `DynamicTableNameModel` in `@pristine-ts/aws`.
|
|
7
|
-
*/
|
|
8
|
-
class DynamicCollectionNameModel {
|
|
9
|
-
}
|
|
10
|
-
exports.DynamicCollectionNameModel = DynamicCollectionNameModel;
|
|
11
|
-
//# sourceMappingURL=dynamic-collection-name.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-collection-name.model.js","sourceRoot":"","sources":["../../../../src/models/dynamic-collection-name.model.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,MAAa,0BAA0B;CAGtC;AAHD,gEAGC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../src/decorators/decorators.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Symbol used to stamp the resolved Firestore collection name onto a class prototype.
|
|
3
|
-
* Mirrors `DynamoDbTable` from `@awslabs-community-fork/dynamodb-data-mapper`.
|
|
4
|
-
*/
|
|
5
|
-
export const FirestoreCollection = Symbol("FirestoreCollection");
|
|
6
|
-
/**
|
|
7
|
-
* The registry where the Firestore collection names are saved.
|
|
8
|
-
*/
|
|
9
|
-
export const dynamicCollectionNameRegistry = [];
|
|
10
|
-
/**
|
|
11
|
-
* This decorator is placed on a class that will be used with Firestore.
|
|
12
|
-
* It registers the class against a configuration token name; during `GcpModule.afterInit`,
|
|
13
|
-
* the token is resolved from the DI container (or from an environment variable as a
|
|
14
|
-
* fallback) and the resulting collection name is stamped onto the class prototype under
|
|
15
|
-
* the `FirestoreCollection` symbol.
|
|
16
|
-
*
|
|
17
|
-
* Mirrors `@dynamicTableName` in `@pristine-ts/aws`.
|
|
18
|
-
*
|
|
19
|
-
* @param name The container token whose value is the Firestore collection name.
|
|
20
|
-
*/
|
|
21
|
-
export const dynamicCollectionName = (name) => {
|
|
22
|
-
return (constructor) => {
|
|
23
|
-
dynamicCollectionNameRegistry.push({
|
|
24
|
-
tokenName: name,
|
|
25
|
-
classConstructor: constructor,
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=dynamic-collection-name.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-collection-name.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/dynamic-collection-name.decorator.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAkB,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAEhF;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAiC,EAAE,CAAC;AAE9E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAAY,EAAE,EAAE;IACpD,OAAO,CAAC,WAAgB,EAAE,EAAE;QAC1B,6BAA6B,CAAC,IAAI,CAAC;YACjC,SAAS,EAAE,IAAI;YACf,gBAAgB,EAAE,WAAW;SAC9B,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Model representing the object that the `@dynamicCollectionName` decorator saves in the
|
|
3
|
-
* registry, mirroring `DynamicTableNameModel` in `@pristine-ts/aws`.
|
|
4
|
-
*/
|
|
5
|
-
export class DynamicCollectionNameModel {
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=dynamic-collection-name.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-collection-name.model.js","sourceRoot":"","sources":["../../../../src/models/dynamic-collection-name.model.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,OAAO,0BAA0B;CAGtC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./dynamic-collection-name.decorator";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DynamicCollectionNameModel } from "../models/dynamic-collection-name.model";
|
|
2
|
-
/**
|
|
3
|
-
* Symbol used to stamp the resolved Firestore collection name onto a class prototype.
|
|
4
|
-
* Mirrors `DynamoDbTable` from `@awslabs-community-fork/dynamodb-data-mapper`.
|
|
5
|
-
*/
|
|
6
|
-
export declare const FirestoreCollection: unique symbol;
|
|
7
|
-
/**
|
|
8
|
-
* The registry where the Firestore collection names are saved.
|
|
9
|
-
*/
|
|
10
|
-
export declare const dynamicCollectionNameRegistry: DynamicCollectionNameModel[];
|
|
11
|
-
/**
|
|
12
|
-
* This decorator is placed on a class that will be used with Firestore.
|
|
13
|
-
* It registers the class against a configuration token name; during `GcpModule.afterInit`,
|
|
14
|
-
* the token is resolved from the DI container (or from an environment variable as a
|
|
15
|
-
* fallback) and the resulting collection name is stamped onto the class prototype under
|
|
16
|
-
* the `FirestoreCollection` symbol.
|
|
17
|
-
*
|
|
18
|
-
* Mirrors `@dynamicTableName` in `@pristine-ts/aws`.
|
|
19
|
-
*
|
|
20
|
-
* @param name The container token whose value is the Firestore collection name.
|
|
21
|
-
*/
|
|
22
|
-
export declare const dynamicCollectionName: (name: string) => (constructor: any) => void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Model representing the object that the `@dynamicCollectionName` decorator saves in the
|
|
3
|
-
* registry, mirroring `DynamicTableNameModel` in `@pristine-ts/aws`.
|
|
4
|
-
*/
|
|
5
|
-
export declare class DynamicCollectionNameModel {
|
|
6
|
-
classConstructor: any;
|
|
7
|
-
tokenName: string;
|
|
8
|
-
}
|