@mxpicture/gcp-functions-generator 0.2.47 → 0.2.49
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/4testing/templates/template.example.d.ts +36 -0
- package/dist/4testing/templates/template.example.d.ts.map +1 -0
- package/dist/4testing/templates/template.example.js +182 -0
- package/dist/4testing/templates/template.example.js.map +1 -0
- package/dist/4testing/templates/template.medication.d.ts +3 -11
- package/dist/4testing/templates/template.medication.d.ts.map +1 -1
- package/dist/4testing/templates/template.medication.js +32 -72
- package/dist/4testing/templates/template.medication.js.map +1 -1
- package/dist/generator/GeneratorAnnotations.d.ts.map +1 -1
- package/dist/generator/GeneratorAnnotations.js +25 -10
- package/dist/generator/GeneratorAnnotations.js.map +1 -1
- package/dist/meta/meta.decorators.d.ts +8 -16
- package/dist/meta/meta.decorators.d.ts.map +1 -1
- package/dist/meta/meta.decorators.js +11 -6
- package/dist/meta/meta.decorators.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Example: Decorator-based Zod schema generation
|
|
3
|
+
*
|
|
4
|
+
* Since TypeScript interfaces are compile-time only and don't exist at runtime,
|
|
5
|
+
* we demonstrate the decorator system using classes that can serve as both
|
|
6
|
+
* type definitions and runtime metadata carriers.
|
|
7
|
+
*
|
|
8
|
+
* test
|
|
9
|
+
* This example shows how to:
|
|
10
|
+
* 1. Use decorators to annotate class properties
|
|
11
|
+
* 2. Generate Zod schemas from the decorator metadata
|
|
12
|
+
* 3. Use the generated schemas for validation
|
|
13
|
+
*/
|
|
14
|
+
import type { DocumentAdmin, DocumentKey } from "@mxpicture/gcp-functions-common/types";
|
|
15
|
+
export declare class ExamplePlanTimesTemplate {
|
|
16
|
+
morning: number;
|
|
17
|
+
noon: number;
|
|
18
|
+
evening: number;
|
|
19
|
+
night: number;
|
|
20
|
+
}
|
|
21
|
+
export declare class ExamplePlanTemplate {
|
|
22
|
+
lastPickDate?: Date;
|
|
23
|
+
times: ExamplePlanTimesTemplate;
|
|
24
|
+
}
|
|
25
|
+
export declare class ExampleTemplate implements DocumentKey, DocumentAdmin {
|
|
26
|
+
id: string;
|
|
27
|
+
createTime?: Date;
|
|
28
|
+
updateTime?: Date;
|
|
29
|
+
name: string;
|
|
30
|
+
dosageMg: number;
|
|
31
|
+
size?: number;
|
|
32
|
+
stock: number;
|
|
33
|
+
orderMail?: string;
|
|
34
|
+
plan?: ExamplePlanTemplate;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=template.example.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.example.d.ts","sourceRoot":"","sources":["../../../src/4testing/templates/template.example.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAaH,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACZ,MAAM,uCAAuC,CAAC;AAE/C,qBACa,wBAAwB;IAQnC,OAAO,EAAG,MAAM,CAAC;IAQjB,IAAI,EAAG,MAAM,CAAC;IAQd,OAAO,EAAG,MAAM,CAAC;IAQjB,KAAK,EAAG,MAAM,CAAC;CAChB;AAED,qBACa,mBAAmB;IAE9B,YAAY,CAAC,EAAE,IAAI,CAAC;IAGpB,KAAK,EAAG,wBAAwB,CAAC;CAClC;AAED,qBAea,eAAgB,YAAW,WAAW,EAAE,aAAa;IAEhE,EAAE,EAAG,MAAM,CAAC;IAGZ,UAAU,CAAC,EAAE,IAAI,CAAC;IAGlB,UAAU,CAAC,EAAE,IAAI,CAAC;IAUlB,IAAI,EAAG,MAAM,CAAC;IAGd,QAAQ,EAAG,MAAM,CAAC;IAWlB,IAAI,CAAC,EAAE,MAAM,CAAC;IAUd,KAAK,EAAG,MAAM,CAAC;IAQf,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,IAAI,CAAC,EAAE,mBAAmB,CAAC;CAC5B"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Example: Decorator-based Zod schema generation
|
|
3
|
+
*
|
|
4
|
+
* Since TypeScript interfaces are compile-time only and don't exist at runtime,
|
|
5
|
+
* we demonstrate the decorator system using classes that can serve as both
|
|
6
|
+
* type definitions and runtime metadata carriers.
|
|
7
|
+
*
|
|
8
|
+
* test
|
|
9
|
+
* This example shows how to:
|
|
10
|
+
* 1. Use decorators to annotate class properties
|
|
11
|
+
* 2. Generate Zod schemas from the decorator metadata
|
|
12
|
+
* 3. Use the generated schemas for validation
|
|
13
|
+
*/
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
};
|
|
23
|
+
import { MetaCreateTime, MetaDate, MetaHeadInterface, MetaInterface, MetaKey, MetaNumber, MetaObject, MetaString, MetaUpdateTime, } from "@mxpicture/gcp-functions-generator/meta";
|
|
24
|
+
let ExamplePlanTimesTemplate = class ExamplePlanTimesTemplate {
|
|
25
|
+
morning;
|
|
26
|
+
noon;
|
|
27
|
+
evening;
|
|
28
|
+
night;
|
|
29
|
+
};
|
|
30
|
+
__decorate([
|
|
31
|
+
MetaNumber({
|
|
32
|
+
title: "Morning",
|
|
33
|
+
min: 0,
|
|
34
|
+
minInclusive: false,
|
|
35
|
+
default: 0,
|
|
36
|
+
editable: true,
|
|
37
|
+
}),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], ExamplePlanTimesTemplate.prototype, "morning", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
MetaNumber({
|
|
42
|
+
title: "Noon",
|
|
43
|
+
min: 0,
|
|
44
|
+
minInclusive: false,
|
|
45
|
+
default: 0,
|
|
46
|
+
editable: true,
|
|
47
|
+
}),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], ExamplePlanTimesTemplate.prototype, "noon", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
MetaNumber({
|
|
52
|
+
title: "Evening",
|
|
53
|
+
min: 0,
|
|
54
|
+
minInclusive: false,
|
|
55
|
+
default: 0,
|
|
56
|
+
editable: true,
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], ExamplePlanTimesTemplate.prototype, "evening", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
MetaNumber({
|
|
62
|
+
title: "Night",
|
|
63
|
+
min: 0,
|
|
64
|
+
minInclusive: false,
|
|
65
|
+
default: 0,
|
|
66
|
+
editable: true,
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], ExamplePlanTimesTemplate.prototype, "night", void 0);
|
|
70
|
+
ExamplePlanTimesTemplate = __decorate([
|
|
71
|
+
MetaInterface({ title: "Example Plan Times" })
|
|
72
|
+
], ExamplePlanTimesTemplate);
|
|
73
|
+
export { ExamplePlanTimesTemplate };
|
|
74
|
+
let ExamplePlanTemplate = class ExamplePlanTemplate {
|
|
75
|
+
lastPickDate;
|
|
76
|
+
times;
|
|
77
|
+
};
|
|
78
|
+
__decorate([
|
|
79
|
+
MetaDate({ title: "Last Pick Date", optional: true }),
|
|
80
|
+
__metadata("design:type", Date)
|
|
81
|
+
], ExamplePlanTemplate.prototype, "lastPickDate", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
MetaObject({ title: "Times", editable: true }),
|
|
84
|
+
__metadata("design:type", ExamplePlanTimesTemplate)
|
|
85
|
+
], ExamplePlanTemplate.prototype, "times", void 0);
|
|
86
|
+
ExamplePlanTemplate = __decorate([
|
|
87
|
+
MetaInterface({ title: "Example Plan" })
|
|
88
|
+
], ExamplePlanTemplate);
|
|
89
|
+
export { ExamplePlanTemplate };
|
|
90
|
+
let ExampleTemplate = class ExampleTemplate {
|
|
91
|
+
id;
|
|
92
|
+
createTime;
|
|
93
|
+
updateTime;
|
|
94
|
+
name;
|
|
95
|
+
dosageMg;
|
|
96
|
+
size;
|
|
97
|
+
stock;
|
|
98
|
+
orderMail;
|
|
99
|
+
plan;
|
|
100
|
+
};
|
|
101
|
+
__decorate([
|
|
102
|
+
MetaKey({ hidden: true }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], ExampleTemplate.prototype, "id", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
MetaCreateTime({ optional: true, hidden: true }),
|
|
107
|
+
__metadata("design:type", Date)
|
|
108
|
+
], ExampleTemplate.prototype, "createTime", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
MetaUpdateTime({ optional: true, hidden: true }),
|
|
111
|
+
__metadata("design:type", Date)
|
|
112
|
+
], ExampleTemplate.prototype, "updateTime", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
MetaString({
|
|
115
|
+
title: "Name",
|
|
116
|
+
editable: true,
|
|
117
|
+
sortable: true,
|
|
118
|
+
filterable: true,
|
|
119
|
+
default: "",
|
|
120
|
+
minLength: 3,
|
|
121
|
+
}),
|
|
122
|
+
__metadata("design:type", String)
|
|
123
|
+
], ExampleTemplate.prototype, "name", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
MetaNumber({ title: "Dosage mg", min: 0, editable: true, default: 0 }),
|
|
126
|
+
__metadata("design:type", Number)
|
|
127
|
+
], ExampleTemplate.prototype, "dosageMg", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
MetaNumber({
|
|
130
|
+
title: "Size",
|
|
131
|
+
min: 1,
|
|
132
|
+
optional: true,
|
|
133
|
+
editable: true,
|
|
134
|
+
sortable: true,
|
|
135
|
+
filterable: true,
|
|
136
|
+
default: 0,
|
|
137
|
+
}),
|
|
138
|
+
__metadata("design:type", Number)
|
|
139
|
+
], ExampleTemplate.prototype, "size", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
MetaNumber({
|
|
142
|
+
title: "Stock",
|
|
143
|
+
min: 0,
|
|
144
|
+
editable: true,
|
|
145
|
+
sortable: true,
|
|
146
|
+
filterable: true,
|
|
147
|
+
default: 0,
|
|
148
|
+
}),
|
|
149
|
+
__metadata("design:type", Number)
|
|
150
|
+
], ExampleTemplate.prototype, "stock", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
MetaString({
|
|
153
|
+
title: "Order Mail",
|
|
154
|
+
optional: true,
|
|
155
|
+
editable: true,
|
|
156
|
+
default: "",
|
|
157
|
+
}),
|
|
158
|
+
__metadata("design:type", String)
|
|
159
|
+
], ExampleTemplate.prototype, "orderMail", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
MetaObject({ title: "Plan", optional: true, editable: true }),
|
|
162
|
+
__metadata("design:type", ExamplePlanTemplate)
|
|
163
|
+
], ExampleTemplate.prototype, "plan", void 0);
|
|
164
|
+
ExampleTemplate = __decorate([
|
|
165
|
+
MetaHeadInterface({
|
|
166
|
+
title: "Example",
|
|
167
|
+
namespace: "ex",
|
|
168
|
+
routes: {
|
|
169
|
+
crud: true,
|
|
170
|
+
testRoute: { requestType: "DocumentKey", responseType: "{test:boolean}" },
|
|
171
|
+
},
|
|
172
|
+
additionalImports: [
|
|
173
|
+
{
|
|
174
|
+
path: "@mxpicture/gcp-functions-common/types",
|
|
175
|
+
props: ["DocumentKey"],
|
|
176
|
+
isType: true,
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
})
|
|
180
|
+
], ExampleTemplate);
|
|
181
|
+
export { ExampleTemplate };
|
|
182
|
+
//# sourceMappingURL=template.example.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.example.js","sourceRoot":"","sources":["../../../src/4testing/templates/template.example.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;;;;;;;;;;AAEH,OAAO,EACL,cAAc,EACd,QAAQ,EACR,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,UAAU,EACV,UAAU,EACV,UAAU,EACV,cAAc,GACf,MAAM,yCAAyC,CAAC;AAO1C,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAQnC,OAAO,CAAU;IAQjB,IAAI,CAAU;IAQd,OAAO,CAAU;IAQjB,KAAK,CAAU;CAChB,CAAA;AAzBC;IAPC,UAAU,CAAC;QACV,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,CAAC;QACN,YAAY,EAAE,KAAK;QACnB,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;KACf,CAAC;;yDACe;AAQjB;IAPC,UAAU,CAAC;QACV,KAAK,EAAE,MAAM;QACb,GAAG,EAAE,CAAC;QACN,YAAY,EAAE,KAAK;QACnB,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;KACf,CAAC;;sDACY;AAQd;IAPC,UAAU,CAAC;QACV,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,CAAC;QACN,YAAY,EAAE,KAAK;QACnB,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;KACf,CAAC;;yDACe;AAQjB;IAPC,UAAU,CAAC;QACV,KAAK,EAAE,OAAO;QACd,GAAG,EAAE,CAAC;QACN,YAAY,EAAE,KAAK;QACnB,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;KACf,CAAC;;uDACa;AAhCJ,wBAAwB;IADpC,aAAa,CAAC,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC;GAClC,wBAAwB,CAiCpC;;AAGM,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAE9B,YAAY,CAAQ;IAGpB,KAAK,CAA4B;CAClC,CAAA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QACd,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,CAAC;KACX,CAAC;;6CACY;AAUd;IARC,UAAU,CAAC;QACV,KAAK,EAAE,OAAO;QACd,GAAG,EAAE,CAAC;QACN,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,CAAC;KACX,CAAC;;8CACa;AAQf;IANC,UAAU,CAAC;QACV,KAAK,EAAE,YAAY;QACnB,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;KACZ,CAAC;;kDACiB;AAGnB;IADC,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACvD,mBAAmB;6CAAC;AArDhB,eAAe;IAf3B,iBAAiB,CAAC;QACjB,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,IAAI;QACf,MAAM,EAAE;YACN,IAAI,EAAE,IAAI;YACV,SAAS,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE;SAC1E;QACD,iBAAiB,EAAE;YACjB;gBACE,IAAI,EAAE,uCAAuC;gBAC7C,KAAK,EAAE,CAAC,aAAa,CAAC;gBACtB,MAAM,EAAE,IAAI;aACb;SACF;KACF,CAAC;GACW,eAAe,CAsD3B"}
|
|
@@ -12,16 +12,6 @@
|
|
|
12
12
|
* 3. Use the generated schemas for validation
|
|
13
13
|
*/
|
|
14
14
|
import type { DocumentAdmin, DocumentKey } from "@mxpicture/gcp-functions-common/types";
|
|
15
|
-
export declare class MedicationPlanTimesTemplate {
|
|
16
|
-
morning: number;
|
|
17
|
-
noon: number;
|
|
18
|
-
evening: number;
|
|
19
|
-
night: number;
|
|
20
|
-
}
|
|
21
|
-
export declare class MedicationPlanTemplate {
|
|
22
|
-
lastPickDate?: Date;
|
|
23
|
-
times: MedicationPlanTimesTemplate;
|
|
24
|
-
}
|
|
25
15
|
export declare class MedicationTemplate implements DocumentKey, DocumentAdmin {
|
|
26
16
|
id: string;
|
|
27
17
|
createTime?: Date;
|
|
@@ -31,6 +21,8 @@ export declare class MedicationTemplate implements DocumentKey, DocumentAdmin {
|
|
|
31
21
|
size?: number;
|
|
32
22
|
stock: number;
|
|
33
23
|
orderMail?: string;
|
|
34
|
-
|
|
24
|
+
planLastPickDate?: Date;
|
|
25
|
+
planTime?: Date;
|
|
26
|
+
planQuantity: number;
|
|
35
27
|
}
|
|
36
28
|
//# sourceMappingURL=template.medication.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.medication.d.ts","sourceRoot":"","sources":["../../../src/4testing/templates/template.medication.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"template.medication.d.ts","sourceRoot":"","sources":["../../../src/4testing/templates/template.medication.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAWH,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACZ,MAAM,uCAAuC,CAAC;AAG/C,qBAea,kBAAmB,YAAW,WAAW,EAAE,aAAa;IAEnE,EAAE,EAAG,MAAM,CAAC;IAGZ,UAAU,CAAC,EAAE,IAAI,CAAC;IAGlB,UAAU,CAAC,EAAE,IAAI,CAAC;IAUlB,IAAI,EAAG,MAAM,CAAC;IAGd,QAAQ,EAAG,MAAM,CAAC;IAYlB,IAAI,CAAC,EAAE,MAAM,CAAC;IAWd,KAAK,EAAG,MAAM,CAAC;IAQf,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,gBAAgB,CAAC,EAAE,IAAI,CAAC;IAQxB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAWhB,YAAY,EAAG,MAAM,CAAC;CACvB"}
|
|
@@ -20,73 +20,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
20
20
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
21
21
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
22
|
};
|
|
23
|
-
import { MetaCreateTime, MetaDate, MetaHeadInterface,
|
|
24
|
-
|
|
25
|
-
morning;
|
|
26
|
-
noon;
|
|
27
|
-
evening;
|
|
28
|
-
night;
|
|
29
|
-
};
|
|
30
|
-
__decorate([
|
|
31
|
-
MetaNumber({
|
|
32
|
-
title: "Morning",
|
|
33
|
-
min: 0,
|
|
34
|
-
minInclusive: false,
|
|
35
|
-
default: 0,
|
|
36
|
-
editable: true,
|
|
37
|
-
}),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], MedicationPlanTimesTemplate.prototype, "morning", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
MetaNumber({
|
|
42
|
-
title: "Noon",
|
|
43
|
-
min: 0,
|
|
44
|
-
minInclusive: false,
|
|
45
|
-
default: 0,
|
|
46
|
-
editable: true,
|
|
47
|
-
}),
|
|
48
|
-
__metadata("design:type", Number)
|
|
49
|
-
], MedicationPlanTimesTemplate.prototype, "noon", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
MetaNumber({
|
|
52
|
-
title: "Evening",
|
|
53
|
-
min: 0,
|
|
54
|
-
minInclusive: false,
|
|
55
|
-
default: 0,
|
|
56
|
-
editable: true,
|
|
57
|
-
}),
|
|
58
|
-
__metadata("design:type", Number)
|
|
59
|
-
], MedicationPlanTimesTemplate.prototype, "evening", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
MetaNumber({
|
|
62
|
-
title: "Night",
|
|
63
|
-
min: 0,
|
|
64
|
-
minInclusive: false,
|
|
65
|
-
default: 0,
|
|
66
|
-
editable: true,
|
|
67
|
-
}),
|
|
68
|
-
__metadata("design:type", Number)
|
|
69
|
-
], MedicationPlanTimesTemplate.prototype, "night", void 0);
|
|
70
|
-
MedicationPlanTimesTemplate = __decorate([
|
|
71
|
-
MetaInterface({ title: "Medication Plan Times" })
|
|
72
|
-
], MedicationPlanTimesTemplate);
|
|
73
|
-
export { MedicationPlanTimesTemplate };
|
|
74
|
-
let MedicationPlanTemplate = class MedicationPlanTemplate {
|
|
75
|
-
lastPickDate;
|
|
76
|
-
times;
|
|
77
|
-
};
|
|
78
|
-
__decorate([
|
|
79
|
-
MetaDate({ title: "Last Pick Date", optional: true }),
|
|
80
|
-
__metadata("design:type", Date)
|
|
81
|
-
], MedicationPlanTemplate.prototype, "lastPickDate", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
MetaObject({ title: "Times", editable: true }),
|
|
84
|
-
__metadata("design:type", MedicationPlanTimesTemplate)
|
|
85
|
-
], MedicationPlanTemplate.prototype, "times", void 0);
|
|
86
|
-
MedicationPlanTemplate = __decorate([
|
|
87
|
-
MetaInterface({ title: "Medication Plan" })
|
|
88
|
-
], MedicationPlanTemplate);
|
|
89
|
-
export { MedicationPlanTemplate };
|
|
23
|
+
import { MetaCreateTime, MetaDate, MetaHeadInterface, MetaKey, MetaNumber, MetaString, MetaUpdateTime, } from "@mxpicture/gcp-functions-generator/meta";
|
|
24
|
+
import { MetaDateFormat } from "@mxpicture/gcp-functions-common/meta";
|
|
90
25
|
let MedicationTemplate = class MedicationTemplate {
|
|
91
26
|
id;
|
|
92
27
|
createTime;
|
|
@@ -96,7 +31,9 @@ let MedicationTemplate = class MedicationTemplate {
|
|
|
96
31
|
size;
|
|
97
32
|
stock;
|
|
98
33
|
orderMail;
|
|
99
|
-
|
|
34
|
+
planLastPickDate;
|
|
35
|
+
planTime;
|
|
36
|
+
planQuantity;
|
|
100
37
|
};
|
|
101
38
|
__decorate([
|
|
102
39
|
MetaKey({ hidden: true }),
|
|
@@ -122,13 +59,14 @@ __decorate([
|
|
|
122
59
|
__metadata("design:type", String)
|
|
123
60
|
], MedicationTemplate.prototype, "name", void 0);
|
|
124
61
|
__decorate([
|
|
125
|
-
MetaNumber({ title: "Dosage mg", min: 0,
|
|
62
|
+
MetaNumber({ title: "Dosage mg", min: 0, default: 0, editable: true }),
|
|
126
63
|
__metadata("design:type", Number)
|
|
127
64
|
], MedicationTemplate.prototype, "dosageMg", void 0);
|
|
128
65
|
__decorate([
|
|
129
66
|
MetaNumber({
|
|
130
67
|
title: "Size",
|
|
131
68
|
min: 1,
|
|
69
|
+
minInclusive: true,
|
|
132
70
|
optional: true,
|
|
133
71
|
editable: true,
|
|
134
72
|
sortable: true,
|
|
@@ -141,6 +79,7 @@ __decorate([
|
|
|
141
79
|
MetaNumber({
|
|
142
80
|
title: "Stock",
|
|
143
81
|
min: 0,
|
|
82
|
+
minInclusive: true,
|
|
144
83
|
editable: true,
|
|
145
84
|
sortable: true,
|
|
146
85
|
filterable: true,
|
|
@@ -158,9 +97,30 @@ __decorate([
|
|
|
158
97
|
__metadata("design:type", String)
|
|
159
98
|
], MedicationTemplate.prototype, "orderMail", void 0);
|
|
160
99
|
__decorate([
|
|
161
|
-
|
|
162
|
-
__metadata("design:type",
|
|
163
|
-
], MedicationTemplate.prototype, "
|
|
100
|
+
MetaDate({ title: "Plan Last Pick", optional: true }),
|
|
101
|
+
__metadata("design:type", Date)
|
|
102
|
+
], MedicationTemplate.prototype, "planLastPickDate", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
MetaDate({
|
|
105
|
+
title: "Plan Time",
|
|
106
|
+
optional: true,
|
|
107
|
+
editable: true,
|
|
108
|
+
dateFormat: MetaDateFormat.date,
|
|
109
|
+
}),
|
|
110
|
+
__metadata("design:type", Date)
|
|
111
|
+
], MedicationTemplate.prototype, "planTime", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
MetaNumber({
|
|
114
|
+
title: "Plan Quantity",
|
|
115
|
+
min: 0,
|
|
116
|
+
minInclusive: true,
|
|
117
|
+
default: 0,
|
|
118
|
+
optional: true,
|
|
119
|
+
editable: true,
|
|
120
|
+
fractionDigits: 1,
|
|
121
|
+
}),
|
|
122
|
+
__metadata("design:type", Number)
|
|
123
|
+
], MedicationTemplate.prototype, "planQuantity", void 0);
|
|
164
124
|
MedicationTemplate = __decorate([
|
|
165
125
|
MetaHeadInterface({
|
|
166
126
|
title: "Medication",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.medication.js","sourceRoot":"","sources":["../../../src/4testing/templates/template.medication.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;;;;;;;;;;AAEH,OAAO,EACL,cAAc,EACd,QAAQ,EACR,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"template.medication.js","sourceRoot":"","sources":["../../../src/4testing/templates/template.medication.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;;;;;;;;;;AAEH,OAAO,EACL,cAAc,EACd,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,UAAU,EACV,UAAU,EACV,cAAc,GACf,MAAM,yCAAyC,CAAC;AAKjD,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAiB/D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAE7B,EAAE,CAAU;IAGZ,UAAU,CAAQ;IAGlB,UAAU,CAAQ;IAUlB,IAAI,CAAU;IAGd,QAAQ,CAAU;IAYlB,IAAI,CAAU;IAWd,KAAK,CAAU;IAQf,SAAS,CAAU;IAGnB,gBAAgB,CAAQ;IAQxB,QAAQ,CAAQ;IAWhB,YAAY,CAAU;CACvB,CAAA;AAzEC;IADC,OAAO,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;8CACd;AAGZ;IADC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;8BACpC,IAAI;sDAAC;AAGlB;IADC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;8BACpC,IAAI;sDAAC;AAUlB;IARC,UAAU,CAAC;QACV,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,IAA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,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,CAAC;KAClB,CAAC;;wDACoB;AA1EX,kBAAkB;IAf9B,iBAAiB,CAAC;QACjB,KAAK,EAAE,YAAY;QACnB,SAAS,EAAE,QAAQ;QACnB,MAAM,EAAE;YACN,IAAI,EAAE,IAAI;YACV,SAAS,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE;SAC1E;QACD,iBAAiB,EAAE;YACjB;gBACE,IAAI,EAAE,uCAAuC;gBAC7C,KAAK,EAAE,CAAC,aAAa,CAAC;gBACtB,MAAM,EAAE,IAAI;aACb;SACF;KACF,CAAC;GACW,kBAAkB,CA2E9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneratorAnnotations.d.ts","sourceRoot":"","sources":["../../src/generator/GeneratorAnnotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,YAAY,EACZ,cAAc,EACf,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"GeneratorAnnotations.d.ts","sourceRoot":"","sources":["../../src/generator/GeneratorAnnotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,YAAY,EACZ,cAAc,EACf,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAW1D,qBAAa,oBAAqB,SAAQ,SAAS;;cAUxB,SAAS,CAChC,UAAU,EAAE,YAAY,EACxB,KAAK,EAAE,SAAS,EAChB,SAAS,EAAE,cAAc,GACxB,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;CA8GjC;;AAED,wBAA0C"}
|
|
@@ -6,6 +6,7 @@ const typeRegex = /\"type\": \"([a-zA-Z][a-zA-Z0-9]*)\"/;
|
|
|
6
6
|
const itemTypeRegex = /\"itemType\": \"(MetaPropertyType\.|)([a-zA-Z][a-zA-Z0-9]*)\"/;
|
|
7
7
|
const propertyRefRegex = /\"propertyRef\": \"([a-zA-Z][a-zA-Z0-9]*)\"/;
|
|
8
8
|
const subHeaderNameRegex = /\"subHeaderName\": \"([a-zA-Z][a-zA-Z0-9]*)\"/;
|
|
9
|
+
const dateFormatRegex = /\"dateFormat\": \"([a-zA-Z][a-zA-Z0-9]*)\"/;
|
|
9
10
|
export class GeneratorAnnotations extends Generator {
|
|
10
11
|
constructor() {
|
|
11
12
|
super(MetaFileType.annotations, MetaFileExtension.ts, MetaTargetType.common, Collector.instance());
|
|
@@ -19,16 +20,6 @@ export class GeneratorAnnotations extends Generator {
|
|
|
19
20
|
props: ["AnnotationsHeader"],
|
|
20
21
|
isType: true,
|
|
21
22
|
},
|
|
22
|
-
{
|
|
23
|
-
path: "@mxpicture/gcp-functions-common/meta",
|
|
24
|
-
props: ["MetaPropertyType"],
|
|
25
|
-
isType: false,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
path: "@mxpicture/gcp-functions-common/meta",
|
|
29
|
-
props: ["MetaPropertyDataWoType"],
|
|
30
|
-
isType: true,
|
|
31
|
-
},
|
|
32
23
|
{
|
|
33
24
|
path: "@mxpicture/gcp-functions-common/helper",
|
|
34
25
|
props: ["annoDocInitial"],
|
|
@@ -42,6 +33,8 @@ export class GeneratorAnnotations extends Generator {
|
|
|
42
33
|
],
|
|
43
34
|
name: mainHeader.templateName,
|
|
44
35
|
};
|
|
36
|
+
const importMetaProps = new Set();
|
|
37
|
+
const importMetaTypeProps = new Set();
|
|
45
38
|
const header = mapAnnotationsHeader(mainHeader, allParams);
|
|
46
39
|
const json = await formatJsonStringify(JSON.stringify(header));
|
|
47
40
|
const lines = json.split("\n");
|
|
@@ -53,21 +46,31 @@ export class GeneratorAnnotations extends Generator {
|
|
|
53
46
|
let match = null;
|
|
54
47
|
match = line.match(typeRegex);
|
|
55
48
|
while (match && match.length > 1) {
|
|
49
|
+
importMetaProps.add("MetaPropertyType");
|
|
56
50
|
line = line.replace(typeRegex, `type: MetaPropertyType.${match[1]}`);
|
|
57
51
|
match = line.match(typeRegex);
|
|
58
52
|
}
|
|
59
53
|
// itemType
|
|
60
54
|
match = line.match(itemTypeRegex);
|
|
61
55
|
while (match && match.length > 2) {
|
|
56
|
+
importMetaProps.add("MetaPropertyType");
|
|
62
57
|
line = line.replace(itemTypeRegex, `itemType: MetaPropertyType.${match[2]}`);
|
|
63
58
|
match = line.match(itemTypeRegex);
|
|
64
59
|
}
|
|
65
60
|
// propertyRef
|
|
66
61
|
match = line.match(propertyRefRegex);
|
|
67
62
|
while (match && match.length > 1) {
|
|
63
|
+
importMetaTypeProps.add("MetaPropertyDataWoType");
|
|
68
64
|
line = line.replace(propertyRefRegex, `propertyRef: "${match[1]}" as keyof MetaPropertyDataWoType`);
|
|
69
65
|
match = line.match(propertyRefRegex);
|
|
70
66
|
}
|
|
67
|
+
// dateFormat
|
|
68
|
+
match = line.match(dateFormatRegex);
|
|
69
|
+
while (match && match.length > 1) {
|
|
70
|
+
importMetaTypeProps.add("MetaDateFormat");
|
|
71
|
+
line = line.replace(dateFormatRegex, `dateFormat: "${match[1]}" as MetaDateFormat`);
|
|
72
|
+
match = line.match(dateFormatRegex);
|
|
73
|
+
}
|
|
71
74
|
// subHeader(Name)
|
|
72
75
|
match = line.match(subHeaderNameRegex);
|
|
73
76
|
while (match && match.length > 1) {
|
|
@@ -77,6 +80,18 @@ export class GeneratorAnnotations extends Generator {
|
|
|
77
80
|
res.code.push(line);
|
|
78
81
|
}
|
|
79
82
|
res.code.push(";");
|
|
83
|
+
if (importMetaTypeProps.size > 0)
|
|
84
|
+
res.imports.push({
|
|
85
|
+
path: "@mxpicture/gcp-functions-common/meta",
|
|
86
|
+
props: [...importMetaTypeProps],
|
|
87
|
+
isType: true,
|
|
88
|
+
});
|
|
89
|
+
if (importMetaProps.size > 0)
|
|
90
|
+
res.imports.push({
|
|
91
|
+
path: "@mxpicture/gcp-functions-common/meta",
|
|
92
|
+
props: [...importMetaProps],
|
|
93
|
+
isType: false,
|
|
94
|
+
});
|
|
80
95
|
return res;
|
|
81
96
|
}
|
|
82
97
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneratorAnnotations.js","sourceRoot":"","sources":["../../src/generator/GeneratorAnnotations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,oBAAoB,GAGrB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAiB,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,SAAS,GAAG,sCAAsC,CAAC;AACzD,MAAM,aAAa,GACjB,+DAA+D,CAAC;AAClE,MAAM,gBAAgB,GAAG,6CAA6C,CAAC;AACvE,MAAM,kBAAkB,GAAG,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"GeneratorAnnotations.js","sourceRoot":"","sources":["../../src/generator/GeneratorAnnotations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,oBAAoB,GAGrB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAiB,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,SAAS,GAAG,sCAAsC,CAAC;AACzD,MAAM,aAAa,GACjB,+DAA+D,CAAC;AAClE,MAAM,gBAAgB,GAAG,6CAA6C,CAAC;AACvE,MAAM,kBAAkB,GAAG,+CA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C;gBACf,IAAI,EAAE,sCAAsC;gBAC5C,KAAK,EAAE,CAAC,GAAG,eAAe,CAAC;gBAC3B,MAAM,EAAE,KAAK;aACd,CAAC,CAAC;QAEL,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AAED,eAAe,IAAI,oBAAoB,EAAE,CAAC"}
|
|
@@ -8,20 +8,12 @@ export declare const MetaHeadInterface: (options: WithoutType<MetaHeadInterfaceO
|
|
|
8
8
|
new (...args: any[]): {};
|
|
9
9
|
}>(constructor: T) => T;
|
|
10
10
|
export declare const MetaKey: (options: Omit<WithoutType<MetaKeyOptions>, "optional">, decoratorType?: MetaPropertyDecorator.MetaKey) => (target: any, propertyKey: string) => void;
|
|
11
|
-
export
|
|
12
|
-
export declare const
|
|
13
|
-
export
|
|
14
|
-
export declare const
|
|
15
|
-
export
|
|
16
|
-
export declare const
|
|
17
|
-
export
|
|
18
|
-
export declare const
|
|
19
|
-
export type MetaArrayOptionsBase = WithoutType<MetaArrayOptions>;
|
|
20
|
-
export declare const MetaArray: <Opt extends MetaArrayOptionsBase>(options: Opt, decoratorType?: MetaPropertyDecorator.MetaArray) => <T, K extends Extract<keyof T, string>>(target: T, propertyKey: K & (T[K] extends (Opt["optional"] extends true ? unknown[] | undefined : unknown[]) ? unknown : never)) => void;
|
|
21
|
-
export type MetaObjectOptionsBase = WithoutType<MetaObjectOptions>;
|
|
22
|
-
export declare const MetaObject: <Opt extends MetaObjectOptionsBase>(options: Opt, decoratorType?: MetaPropertyDecorator.MetaObject) => <T, K extends Extract<keyof T, string>>(target: T, propertyKey: K & (T[K] extends (Opt["optional"] extends true ? object | undefined : object) ? unknown : never)) => void;
|
|
23
|
-
export type MetaDateOptionsBase = WithoutType<MetaDateOptions>;
|
|
24
|
-
export declare const MetaDate: <Opt extends MetaDateOptionsBase>(options: Opt, decoratorType?: MetaPropertyDecorator.MetaDate) => <T, K extends Extract<keyof T, string>>(target: T, propertyKey: K & (T[K] extends (Opt["optional"] extends true ? Date | undefined : Date) ? unknown : never)) => void;
|
|
25
|
-
export type MetaBooleanOptionsBase = WithoutType<MetaBooleanOptions>;
|
|
26
|
-
export declare const MetaBoolean: <Opt extends MetaBooleanOptionsBase>(options: Opt, decoratorType?: MetaPropertyDecorator.MetaBoolean) => <T, K extends Extract<keyof T, string>>(target: T, propertyKey: K & (T[K] extends (Opt["optional"] extends true ? boolean | undefined : boolean) ? unknown : never)) => void;
|
|
11
|
+
export declare const MetaCreateTime: <Opt extends WithoutType<MetaCreateTimeOptions>>(options: Opt, decoratorType?: MetaPropertyDecorator.MetaCreateTime) => <T, K extends Extract<keyof T, string>>(target: T, propertyKey: K & (T[K] extends (Opt["optional"] extends true ? Date | undefined : Date) ? unknown : never)) => void;
|
|
12
|
+
export declare const MetaUpdateTime: <Opt extends WithoutType<MetaUpdateTimeOptions>>(options: Opt, decoratorType?: MetaPropertyDecorator.MetaUpdateTime) => <T, K extends Extract<keyof T, string>>(target: T, propertyKey: K & (T[K] extends (Opt["optional"] extends true ? Date | undefined : Date) ? unknown : never)) => void;
|
|
13
|
+
export declare const MetaNumber: <Opt extends WithoutType<MetaNumberOptions>>(options: Opt, decoratorType?: MetaPropertyDecorator.MetaNumber) => <T, K extends Extract<keyof T, string>>(target: T, propertyKey: K & (T[K] extends (Opt["optional"] extends true ? number | undefined : number) ? unknown : never)) => void;
|
|
14
|
+
export declare const MetaString: <Opt extends WithoutType<MetaStringOptions>>(options: Opt, decoratorType?: MetaPropertyDecorator.MetaString) => <T, K extends Extract<keyof T, string>>(target: T, propertyKey: K & (T[K] extends (Opt["optional"] extends true ? string | undefined : string) ? unknown : never)) => void;
|
|
15
|
+
export declare const MetaArray: <Opt extends WithoutType<MetaArrayOptions>>(options: Opt, decoratorType?: MetaPropertyDecorator.MetaArray) => <T, K extends Extract<keyof T, string>>(target: T, propertyKey: K & (T[K] extends (Opt["optional"] extends true ? unknown[] | undefined : unknown[]) ? unknown : never)) => void;
|
|
16
|
+
export declare const MetaObject: <Opt extends WithoutType<MetaObjectOptions>>(options: Opt, decoratorType?: MetaPropertyDecorator.MetaObject) => <T, K extends Extract<keyof T, string>>(target: T, propertyKey: K & (T[K] extends (Opt["optional"] extends true ? object | undefined : object) ? unknown : never)) => void;
|
|
17
|
+
export declare const MetaDate: <Opt extends WithoutType<MetaDateOptions>>(options: Opt, decoratorType?: MetaPropertyDecorator.MetaDate) => <T, K extends Extract<keyof T, string>>(target: T, propertyKey: K & (T[K] extends (Opt["optional"] extends true ? Date | undefined : Date) ? unknown : never)) => void;
|
|
18
|
+
export declare const MetaBoolean: <Opt extends WithoutType<MetaBooleanOptions>>(options: Opt, decoratorType?: MetaPropertyDecorator.MetaBoolean) => <T, K extends Extract<keyof T, string>>(target: T, propertyKey: K & (T[K] extends (Opt["optional"] extends true ? boolean | undefined : boolean) ? unknown : never)) => void;
|
|
27
19
|
//# sourceMappingURL=meta.decorators.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.decorators.d.ts","sourceRoot":"","sources":["../../src/meta/meta.decorators.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EACnB,MAAM,uCAAuC,CAAC;AAI/C,eAAO,MAAM,aAAa,GAEtB,SAAS,WAAW,CAAC,oBAAoB,CAAC,EAC1C,gBAAe,iBAAiB,CAAC,aAA+C,MAEjF,CAAC,SAAS;IAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAA;CAAE,EAAE,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"meta.decorators.d.ts","sourceRoot":"","sources":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UAAU,CAAC,SAAS,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC,GAClE,OAAO,GACP,KAAK,CAAC,KACX,IAAU,CAAC;AAGhB,eAAO,MAAM,WAAW,GACrB,GAAG,SAAS,WAAW,CAAC,kBAAkB,CAAC,EAC1C,SAAS,GAAG,EACZ,gBAAe,qBAAqB,CAAC,WAA+C,MAErF,CAAC,EAAE,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,EACpC,QAAQ,CAAC,EACT,aAAa,CAAC,GACZ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CACZ,GAAG,CAAC,UAAU,CAAC,SAAS,IAAI,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAC7D,GACG,OAAO,GACP,KAAK,CAAC,KACX,IAAU,CAAC"}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { MetaHeadDecorator, MetaPropertyDecorator, } from "@mxpicture/gcp-functions-common/meta";
|
|
2
2
|
// after adding new decorator add it to MetaPropDecorator too
|
|
3
|
-
export const MetaInterface = (options, decoratorType = MetaHeadDecorator.MetaInterface) => (constructor) =>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const MetaHeadInterface = (options, decoratorType = MetaHeadDecorator.MetaHeadInterface) => (constructor) => {
|
|
7
|
-
return constructor;
|
|
8
|
-
};
|
|
3
|
+
export const MetaInterface = (options, decoratorType = MetaHeadDecorator.MetaInterface) => (constructor) => constructor;
|
|
4
|
+
export const MetaHeadInterface = (options, decoratorType = MetaHeadDecorator.MetaHeadInterface) => (constructor) => constructor;
|
|
5
|
+
// ----- MetaKey ----------------------------------------------
|
|
9
6
|
export const MetaKey = (options, decoratorType = MetaPropertyDecorator.MetaKey) => (target, propertyKey) => { };
|
|
7
|
+
// ----- MetaCreateTime ----------------------------------------------
|
|
10
8
|
export const MetaCreateTime = (options, decoratorType = MetaPropertyDecorator.MetaCreateTime) => (target, propertyKey) => { };
|
|
9
|
+
// ----- MetaUpdateTime ----------------------------------------------
|
|
11
10
|
export const MetaUpdateTime = (options, decoratorType = MetaPropertyDecorator.MetaUpdateTime) => (target, propertyKey) => { };
|
|
11
|
+
// ----- MetaNumber ----------------------------------------------
|
|
12
12
|
export const MetaNumber = (options, decoratorType = MetaPropertyDecorator.MetaNumber) => (target, propertyKey) => { };
|
|
13
|
+
// ----- MetaString ----------------------------------------------
|
|
13
14
|
export const MetaString = (options, decoratorType = MetaPropertyDecorator.MetaString) => (target, propertyKey) => { };
|
|
15
|
+
// ----- MetaArray ----------------------------------------------
|
|
14
16
|
export const MetaArray = (options, decoratorType = MetaPropertyDecorator.MetaArray) => (target, propertyKey) => { };
|
|
17
|
+
// ----- MetaObject ----------------------------------------------
|
|
15
18
|
export const MetaObject = (options, decoratorType = MetaPropertyDecorator.MetaObject) => (target, propertyKey) => { };
|
|
19
|
+
// ----- MetaDate ----------------------------------------------
|
|
16
20
|
export const MetaDate = (options, decoratorType = MetaPropertyDecorator.MetaDate) => (target, propertyKey) => { };
|
|
21
|
+
// ----- MetaBoolean ----------------------------------------------
|
|
17
22
|
export const MetaBoolean = (options, decoratorType = MetaPropertyDecorator.MetaBoolean) => (target, propertyKey) => { };
|
|
18
23
|
//# sourceMappingURL=meta.decorators.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.decorators.js","sourceRoot":"","sources":["../../src/meta/meta.decorators.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,sCAAsC,CAAC;AAe9C,6DAA6D;AAE7D,MAAM,CAAC,MAAM,aAAa,GACxB,CACE,OAA0C,EAC1C,gBAAiD,iBAAiB,CAAC,aAAa,EAChF,EAAE,CACJ,CAAyC,WAAc,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"meta.decorators.js","sourceRoot":"","sources":["../../src/meta/meta.decorators.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,iBAAiB,EACjB,qBAAqB,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B,CACE,OAAY,EACZ,gBAAiD,qBAAqB,CAAC,SAAS,EAChF,EAAE,CACJ,CACE,MAAS,EACT,WAKY,EACN,EAAE,GAAE,CAAC,CAAC;AAEhB,kEAAkE;AAClE,MAAM,CAAC,MAAM,UAAU,GACrB,CACE,OAAY,EACZ,gBAAkD,qBAAqB,CAAC,UAAU,EAClF,EAAE,CACJ,CACE,MAAS,EACT,WAGY,EACN,EAAE,GAAE,CAAC,CAAC;AAEhB,gEAAgE;AAChE,MAAM,CAAC,MAAM,QAAQ,GACnB,CACE,OAAY,EACZ,gBAAgD,qBAAqB,CAAC,QAAQ,EAC9E,EAAE,CACJ,CACE,MAAS,EACT,WAGY,EACN,EAAE,GAAE,CAAC,CAAC;AAEhB,mEAAmE;AACnE,MAAM,CAAC,MAAM,WAAW,GACtB,CACE,OAAY,EACZ,gBAAmD,qBAAqB,CAAC,WAAW,EACpF,EAAE,CACJ,CACE,MAAS,EACT,WAKY,EACN,EAAE,GAAE,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mxpicture/gcp-functions-generator",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.49",
|
|
4
4
|
"description": "Tools for google cloud functions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "MXPicture",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@mxpicture/build-api": "^0.2.56",
|
|
35
|
-
"@mxpicture/gcp-functions-backend": "^0.2.
|
|
36
|
-
"@mxpicture/gcp-functions-common": "^0.2.
|
|
37
|
-
"@mxpicture/gcp-functions-frontend": "^0.2.
|
|
35
|
+
"@mxpicture/gcp-functions-backend": "^0.2.49",
|
|
36
|
+
"@mxpicture/gcp-functions-common": "^0.2.49",
|
|
37
|
+
"@mxpicture/gcp-functions-frontend": "^0.2.49"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^25.2.3",
|