@mxpicture/gcp-functions-generator 2.1.2 → 2.1.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.
- package/dist/generator/GeneratorBackendFactory.d.ts +2 -0
- package/dist/generator/GeneratorBackendFactory.d.ts.map +1 -0
- package/dist/generator/GeneratorBackendFactory.js +51 -0
- package/dist/generator/GeneratorBackendFactory.js.map +1 -0
- package/dist/generator/index.d.ts +1 -0
- package/dist/generator/index.d.ts.map +1 -1
- package/dist/generator/index.js +1 -0
- package/dist/generator/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeneratorBackendFactory.d.ts","sourceRoot":"","sources":["../../src/generator/GeneratorBackendFactory.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// import type {
|
|
2
|
+
// DecoNames,
|
|
3
|
+
// DecoratorData,
|
|
4
|
+
// } from "@mxpicture/gcp-functions-common/decorator";
|
|
5
|
+
// import {
|
|
6
|
+
// hasCrudRoute,
|
|
7
|
+
// isCrudRoute,
|
|
8
|
+
// DecoFileExtension,
|
|
9
|
+
// DecoFileType,
|
|
10
|
+
// DecoPropertyType,
|
|
11
|
+
// DecoPackageType,
|
|
12
|
+
// hasCustomCrudRoute,
|
|
13
|
+
// isCustomCrudRoute,
|
|
14
|
+
// } from "@mxpicture/gcp-functions-common/decorator";
|
|
15
|
+
// import { Generator } from "./Generator.js";
|
|
16
|
+
// import {} from "@mxpicture/gcp-functions-backend/api"; // for reference only
|
|
17
|
+
// import {} from "@mxpicture/gcp-functions-frontend/types"; // for reference only
|
|
18
|
+
// import type {
|
|
19
|
+
// GeneratorEnv,
|
|
20
|
+
// GeneratorRunItem,
|
|
21
|
+
// GeneratorRunResult,
|
|
22
|
+
// } from "../common/types.common.js";
|
|
23
|
+
// import type {
|
|
24
|
+
// AnnotationsProperty,
|
|
25
|
+
// DecoPropertyBase,
|
|
26
|
+
// } from "@mxpicture/gcp-functions-common/types";
|
|
27
|
+
// import { extractAnnotationsPaths } from "@mxpicture/gcp-functions-common/annotation";
|
|
28
|
+
// import type { ExportsAlias } from "@mxpicture/build-api/types";
|
|
29
|
+
export {};
|
|
30
|
+
// /**
|
|
31
|
+
// * Generator that produces backend-specific code including API classes, stores, functions, and factory helpers.
|
|
32
|
+
// *
|
|
33
|
+
// * @remarks
|
|
34
|
+
// * Targets the `backend` package and generates classes extending `BackendDefaultApi`,
|
|
35
|
+
// * `IBackendFunction`, `Store`, and a `create*Function` factory.
|
|
36
|
+
// */
|
|
37
|
+
// export class GeneratorBackendFactory extends Generator {
|
|
38
|
+
// public constructor() {
|
|
39
|
+
// super({
|
|
40
|
+
// fileType: DecoFileType.backend,
|
|
41
|
+
// ext: DecoFileExtension.ts,
|
|
42
|
+
// packageType: DecoPackageType.backend,
|
|
43
|
+
// });
|
|
44
|
+
// }
|
|
45
|
+
// protected override async runHeader(
|
|
46
|
+
// item: GeneratorRunItem,
|
|
47
|
+
// env: GeneratorEnv,
|
|
48
|
+
// ): Promise<GeneratorRunResult | null> {}
|
|
49
|
+
// }
|
|
50
|
+
// export default new GeneratorBackendFactory();
|
|
51
|
+
//# sourceMappingURL=GeneratorBackendFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeneratorBackendFactory.js","sourceRoot":"","sources":["../../src/generator/GeneratorBackendFactory.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,eAAe;AACf,mBAAmB;AACnB,sDAAsD;AACtD,WAAW;AACX,kBAAkB;AAClB,iBAAiB;AACjB,uBAAuB;AACvB,kBAAkB;AAClB,sBAAsB;AACtB,qBAAqB;AACrB,wBAAwB;AACxB,uBAAuB;AACvB,sDAAsD;AACtD,8CAA8C;AAC9C,+EAA+E;AAC/E,kFAAkF;AAClF,gBAAgB;AAChB,kBAAkB;AAClB,sBAAsB;AACtB,wBAAwB;AACxB,sCAAsC;AACtC,gBAAgB;AAChB,yBAAyB;AACzB,sBAAsB;AACtB,kDAAkD;AAClD,wFAAwF;AACxF,kEAAkE;;AAElE,MAAM;AACN,kHAAkH;AAClH,KAAK;AACL,cAAc;AACd,wFAAwF;AACxF,mEAAmE;AACnE,MAAM;AACN,2DAA2D;AAC3D,2BAA2B;AAC3B,cAAc;AACd,wCAAwC;AACxC,mCAAmC;AACnC,8CAA8C;AAC9C,UAAU;AACV,MAAM;AAEN,wCAAwC;AACxC,8BAA8B;AAC9B,yBAAyB;AACzB,6CAA6C;AAC7C,IAAI;AAEJ,gDAAgD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./Generator.js";
|
|
2
2
|
export * from "./GeneratorAnnotations.js";
|
|
3
3
|
export * from "./GeneratorBackend.js";
|
|
4
|
+
export * from "./GeneratorBackendFactory.js";
|
|
4
5
|
export * from "./GeneratorComposite.js";
|
|
5
6
|
export * from "./GeneratorDoc.js";
|
|
6
7
|
export * from "./GeneratorEnum.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
package/dist/generator/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export * from "./Generator.js";
|
|
3
3
|
export * from "./GeneratorAnnotations.js";
|
|
4
4
|
export * from "./GeneratorBackend.js";
|
|
5
|
+
export * from "./GeneratorBackendFactory.js";
|
|
5
6
|
export * from "./GeneratorComposite.js";
|
|
6
7
|
export * from "./GeneratorDoc.js";
|
|
7
8
|
export * from "./GeneratorEnum.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mxpicture/gcp-functions-generator",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "Tools for google cloud functions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "MXPicture",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@google-cloud/scheduler": "^5.3.1",
|
|
51
51
|
"@mxpicture/build-api": "^0.4.37",
|
|
52
|
-
"@mxpicture/gcp-functions-backend": "^2.1.
|
|
53
|
-
"@mxpicture/gcp-functions-common": "^2.1.
|
|
54
|
-
"@mxpicture/gcp-functions-frontend": "^2.1.
|
|
52
|
+
"@mxpicture/gcp-functions-backend": "^2.1.4",
|
|
53
|
+
"@mxpicture/gcp-functions-common": "^2.1.4",
|
|
54
|
+
"@mxpicture/gcp-functions-frontend": "^2.1.4",
|
|
55
55
|
"google-auth-library": "^10.6.2",
|
|
56
56
|
"googleapis": "^171.4.0",
|
|
57
57
|
"json5": "^2.2.3"
|