@mxpicture/gcp-functions-common 0.2.69 → 0.2.71

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 (119) hide show
  1. package/dist/annotation/anno.head.d.ts +7 -0
  2. package/dist/annotation/anno.head.d.ts.map +1 -0
  3. package/dist/annotation/anno.head.js +34 -0
  4. package/dist/annotation/anno.head.js.map +1 -0
  5. package/dist/annotation/anno.property.d.ts +4 -0
  6. package/dist/annotation/anno.property.d.ts.map +1 -0
  7. package/dist/annotation/anno.property.js +14 -0
  8. package/dist/annotation/anno.property.js.map +1 -0
  9. package/dist/annotation/index.d.ts +3 -0
  10. package/dist/annotation/index.d.ts.map +1 -0
  11. package/dist/annotation/index.js +4 -0
  12. package/dist/annotation/index.js.map +1 -0
  13. package/dist/decorator/DecoArray.d.ts +22 -0
  14. package/dist/decorator/DecoArray.d.ts.map +1 -0
  15. package/dist/decorator/DecoArray.js +41 -0
  16. package/dist/decorator/DecoArray.js.map +1 -0
  17. package/dist/decorator/DecoBoolean.d.ts +11 -0
  18. package/dist/decorator/DecoBoolean.d.ts.map +1 -0
  19. package/dist/decorator/DecoBoolean.js +13 -0
  20. package/dist/decorator/DecoBoolean.js.map +1 -0
  21. package/dist/decorator/DecoDate.d.ts +12 -0
  22. package/dist/decorator/DecoDate.d.ts.map +1 -0
  23. package/dist/decorator/DecoDate.js +13 -0
  24. package/dist/decorator/DecoDate.js.map +1 -0
  25. package/dist/decorator/DecoNumber.d.ts +23 -0
  26. package/dist/decorator/DecoNumber.d.ts.map +1 -0
  27. package/dist/decorator/DecoNumber.js +37 -0
  28. package/dist/decorator/DecoNumber.js.map +1 -0
  29. package/dist/decorator/DecoObject.d.ts +11 -0
  30. package/dist/decorator/DecoObject.d.ts.map +1 -0
  31. package/dist/decorator/DecoObject.js +9 -0
  32. package/dist/decorator/DecoObject.js.map +1 -0
  33. package/dist/decorator/DecoProperty.d.ts +27 -0
  34. package/dist/decorator/DecoProperty.d.ts.map +1 -0
  35. package/dist/decorator/DecoProperty.js +68 -0
  36. package/dist/decorator/DecoProperty.js.map +1 -0
  37. package/dist/decorator/DecoString.d.ts +21 -0
  38. package/dist/decorator/DecoString.d.ts.map +1 -0
  39. package/dist/decorator/DecoString.js +33 -0
  40. package/dist/decorator/DecoString.js.map +1 -0
  41. package/dist/decorator/Decorator.d.ts +33 -0
  42. package/dist/decorator/Decorator.d.ts.map +1 -0
  43. package/dist/decorator/Decorator.js +73 -0
  44. package/dist/decorator/Decorator.js.map +1 -0
  45. package/dist/decorator/deco.cast.d.ts +9 -0
  46. package/dist/decorator/deco.cast.d.ts.map +1 -0
  47. package/dist/decorator/deco.cast.js +13 -0
  48. package/dist/decorator/deco.cast.js.map +1 -0
  49. package/dist/decorator/deco.enum.d.ts +50 -0
  50. package/dist/decorator/deco.enum.d.ts.map +1 -0
  51. package/dist/decorator/deco.enum.js +73 -0
  52. package/dist/decorator/deco.enum.js.map +1 -0
  53. package/dist/decorator/deco.names.d.ts +20 -0
  54. package/dist/decorator/deco.names.d.ts.map +1 -0
  55. package/dist/decorator/deco.names.js +20 -0
  56. package/dist/decorator/deco.names.js.map +1 -0
  57. package/dist/decorator/deco.paths.d.ts +7 -0
  58. package/dist/decorator/deco.paths.d.ts.map +1 -0
  59. package/dist/decorator/deco.paths.js +14 -0
  60. package/dist/decorator/deco.paths.js.map +1 -0
  61. package/dist/decorator/deco.properties.d.ts +9 -0
  62. package/dist/decorator/deco.properties.d.ts.map +1 -0
  63. package/dist/decorator/deco.properties.js +43 -0
  64. package/dist/decorator/deco.properties.js.map +1 -0
  65. package/dist/decorator/deco.routes.d.ts +4 -0
  66. package/dist/decorator/deco.routes.d.ts.map +1 -0
  67. package/dist/decorator/deco.routes.js +22 -0
  68. package/dist/decorator/deco.routes.js.map +1 -0
  69. package/dist/decorator/index.d.ts +15 -0
  70. package/dist/decorator/index.d.ts.map +1 -0
  71. package/dist/decorator/index.js +16 -0
  72. package/dist/decorator/index.js.map +1 -0
  73. package/dist/helper/helper.annotation.d.ts +3 -8
  74. package/dist/helper/helper.annotation.d.ts.map +1 -1
  75. package/dist/helper/helper.annotation.js +3 -40
  76. package/dist/helper/helper.annotation.js.map +1 -1
  77. package/dist/helper/helper.document.d.ts +1 -2
  78. package/dist/helper/helper.document.d.ts.map +1 -1
  79. package/dist/helper/helper.document.js +0 -1
  80. package/dist/helper/helper.document.js.map +1 -1
  81. package/dist/types/index.d.ts +2 -1
  82. package/dist/types/index.d.ts.map +1 -1
  83. package/dist/types/index.js +2 -1
  84. package/dist/types/index.js.map +1 -1
  85. package/dist/types/types.annotation.d.ts +14 -17
  86. package/dist/types/types.annotation.d.ts.map +1 -1
  87. package/dist/types/types.annotation.js +1 -46
  88. package/dist/types/types.annotation.js.map +1 -1
  89. package/dist/types/types.deco.common.d.ts +21 -0
  90. package/dist/types/types.deco.common.d.ts.map +1 -0
  91. package/dist/types/types.deco.common.js +2 -0
  92. package/dist/types/types.deco.common.js.map +1 -0
  93. package/dist/types/types.deco.property.d.ts +62 -0
  94. package/dist/types/types.deco.property.d.ts.map +1 -0
  95. package/dist/types/types.deco.property.js +2 -0
  96. package/dist/types/types.deco.property.js.map +1 -0
  97. package/dist/types/types.document.d.ts +0 -1
  98. package/dist/types/types.document.d.ts.map +1 -1
  99. package/package.json +5 -4
  100. package/dist/meta/index.d.ts +0 -4
  101. package/dist/meta/index.d.ts.map +0 -1
  102. package/dist/meta/index.js +0 -5
  103. package/dist/meta/index.js.map +0 -1
  104. package/dist/meta/meta.enum.d.ts +0 -104
  105. package/dist/meta/meta.enum.d.ts.map +0 -1
  106. package/dist/meta/meta.enum.js +0 -132
  107. package/dist/meta/meta.enum.js.map +0 -1
  108. package/dist/meta/meta.main.d.ts +0 -44
  109. package/dist/meta/meta.main.d.ts.map +0 -1
  110. package/dist/meta/meta.main.js +0 -60
  111. package/dist/meta/meta.main.js.map +0 -1
  112. package/dist/meta/meta.properties.d.ts +0 -80
  113. package/dist/meta/meta.properties.d.ts.map +0 -1
  114. package/dist/meta/meta.properties.js +0 -91
  115. package/dist/meta/meta.properties.js.map +0 -1
  116. package/dist/types/types.meta.d.ts +0 -143
  117. package/dist/types/types.meta.d.ts.map +0 -1
  118. package/dist/types/types.meta.js +0 -43
  119. package/dist/types/types.meta.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Decorator.js","sourceRoot":"","sources":["../../src/decorator/Decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAMzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAkBlE,MAAM,CAAC,MAAM,eAAe,GAC1B,CAAC,QAAgB,EAAE,EAAE,CACrB,CAAC,IAAY,EAAa,EAAE,CAC1B,IAAI,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAIlC,MAAM,OAAO,SAAS;IAIF;IAHR,IAAI,CAAgB;IAE9B,YACkB,IAAY,EAC5B,aAAqB;QADL,SAAI,GAAJ,IAAI,CAAQ;QAG5B,MAAM,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;QAC5C,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;QAC9C,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;QAC/D,IAAI,CAAC,IAAI,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC7E,CAAC;IAEM,KAAK,CAAC,GAAW;QACtB,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACtB,OAAO,IAAI,CA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AI,GAAG,IAAI,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,UAAU;QACf,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAC1C,OAAO;YACL,GAAG,eAAe,CAAC,IAAI,CAAC;YACxB,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,GAAG,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACzD,CAAC;IACJ,CAAC;IAEM,kBAAkB;QACvB,MAAM,aAAa,GAAsD,EAAE,CAAC;QAC5E,KAAK,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC,EAAE,CAAC;YACrE,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;YAC9B,oFAAoF;YACpF,IACE,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,MAAM;gBACzC,MAAM,IAAK,IAAqC,CAAC,MAAM,CAAC,EACxD,CAAC;gBACA,GAAG,CAAC,IAAuB,CAAC,IAAI,GAC/B,IACD,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;YACjB,CAAC;YACD,aAAa,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;QAC3B,CAAC;QACD,OAAO,oBAAoB,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,aAAa,CAAC,CAAC;IAChE,CAAC;CACF"}
@@ -0,0 +1,9 @@
1
+ import { DecoArrayOptions, DecoBooleanOptions, DecoDateOptions, DecoNumberOptions, DecoObjectOptions, DecoPropertyBase, DecoStringOptions } from "../types/types.deco.property.js";
2
+ export declare const castDecoKey: (prop: DecoPropertyBase) => DecoStringOptions | null;
3
+ export declare const castDecoNumber: (prop: DecoPropertyBase) => DecoNumberOptions | null;
4
+ export declare const castDecoString: (prop: DecoPropertyBase) => DecoStringOptions | null;
5
+ export declare const castDecoBoolean: (prop: DecoPropertyBase) => DecoBooleanOptions | null;
6
+ export declare const castDecoDate: (prop: DecoPropertyBase) => DecoDateOptions | null;
7
+ export declare const castDecoArray: (prop: DecoPropertyBase) => DecoArrayOptions | null;
8
+ export declare const castDecoObject: (prop: DecoPropertyBase) => DecoObjectOptions | null;
9
+ //# sourceMappingURL=deco.cast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deco.cast.d.ts","sourceRoot":"","sources":["../../src/decorator/deco.cast.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,iCAAiC,CAAC;AAIzC,eAAO,MAAM,WAAW,GACtB,MAAM,gBAAgB,KACrB,iBAAiB,GAAG,IAGtB,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,MAAM,gBAAgB,KACrB,iBAAiB,GAAG,IACqD,CAAC;AAE7E,eAAO,MAAM,cAAc,GACzB,MAAM,gBAAgB,KACrB,iBAAiB,GAAG,IACqD,CAAC;AAE7E,eAAO,MAAM,eAAe,GAC1B,MAAM,gBAAgB,KACrB,kBAAkB,GAAG,IACsD,CAAC;AAE/E,eAAO,MAAM,YAAY,GAAI,MAAM,gBAAgB,KAAG,eAAe,GAAG,IACA,CAAC;AAEzE,eAAO,MAAM,aAAa,GACxB,MAAM,gBAAgB,KACrB,gBAAgB,GAAG,IACoD,CAAC;AAE3E,eAAO,MAAM,cAAc,GACzB,MAAM,gBAAgB,KACrB,iBAAiB,GAAG,IACqD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { DecoPropertyType } from "./deco.enum.js";
2
+ // ----- Properties ----------------------------------------------------------------
3
+ export const castDecoKey = (prop) => {
4
+ const casted = castDecoString(prop);
5
+ return casted?.isKey === true ? casted : null;
6
+ };
7
+ export const castDecoNumber = (prop) => prop.type === DecoPropertyType.number ? prop : null;
8
+ export const castDecoString = (prop) => prop.type === DecoPropertyType.string ? prop : null;
9
+ export const castDecoBoolean = (prop) => prop.type === DecoPropertyType.boolean ? prop : null;
10
+ export const castDecoDate = (prop) => prop.type === DecoPropertyType.date ? prop : null;
11
+ export const castDecoArray = (prop) => prop.type === DecoPropertyType.array ? prop : null;
12
+ export const castDecoObject = (prop) => prop.type === DecoPropertyType.object ? prop : null;
13
+ //# sourceMappingURL=deco.cast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deco.cast.js","sourceRoot":"","sources":["../../src/decorator/deco.cast.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,oFAAoF;AACpF,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,IAAsB,EACI,EAAE;IAC5B,MAAM,MAAM,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IACpC,OAAO,MAAM,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AAChD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,IAAsB,EACI,EAAE,CAC5B,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAE,IAA0B,CAAC,CAAC,CAAC,IAAI,CAAC;AAE7E,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,IAAsB,EACI,EAAE,CAC5B,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAE,IAA0B,CAAC,CAAC,CAAC,IAAI,CAAC;AAE7E,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,IAAsB,EACK,EAAE,CAC7B,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAE,IAA2B,CAAC,CAAC,CAAC,IAAI,CAAC;AAE/E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAsB,EAA0B,EAAE,CAC7E,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAE,IAAwB,CAAC,CAAC,CAAC,IAAI,CAAC;AAEzE,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,IAAsB,EACG,EAAE,CAC3B,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAE,IAAyB,CAAC,CAAC,CAAC,IAAI,CAAC;AAE3E,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,IAAsB,EACI,EAAE,CAC5B,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAE,IAA0B,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -0,0 +1,50 @@
1
+ export declare enum DecoFileType {
2
+ doc = "doc",
3
+ template = "template",
4
+ routes = "routes",
5
+ backend = "backend",
6
+ frontend = "frontend",
7
+ zod = "zod",
8
+ annotations = "annotations"
9
+ }
10
+ export declare const guardDecoFileType: (type: unknown) => DecoFileType | null;
11
+ export declare enum DecoFileExtension {
12
+ ts = "ts",
13
+ json = "json"
14
+ }
15
+ export declare const guardDecoFileExtension: (type: unknown) => DecoFileExtension | null;
16
+ export declare enum DecoTargetType {
17
+ common = "common",
18
+ frontend = "frontend",
19
+ backend = "backend"
20
+ }
21
+ export declare const guardDecoTargetType: (type: unknown) => DecoTargetType | null;
22
+ export declare enum DecoPropertyType {
23
+ string = "string",
24
+ number = "number",
25
+ boolean = "boolean",
26
+ date = "date",
27
+ array = "array",
28
+ object = "object"
29
+ }
30
+ export declare enum DecoHeadType {
31
+ default = "default",
32
+ leading = "leading"
33
+ }
34
+ export declare enum DecoDateFormat {
35
+ timestamp = "timestamp",
36
+ time = "time",
37
+ date = "date"
38
+ }
39
+ export declare enum CrudRouteName {
40
+ create = "create",
41
+ update = "update",
42
+ delete = "delete",
43
+ get = "get",
44
+ query = "query",
45
+ count = "count",
46
+ exists = "exists"
47
+ }
48
+ export declare const isCrudRoute: (routeName: string) => boolean;
49
+ export declare const hasCrudRoute: (routeNames: string[]) => boolean;
50
+ //# sourceMappingURL=deco.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deco.enum.d.ts","sourceRoot":"","sources":["../../src/decorator/deco.enum.ts"],"names":[],"mappings":"AACA,oBAAY,YAAY;IACtB,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,WAAW,gBAAgB;CAC5B;AAED,eAAO,MAAM,iBAAiB,GAAI,MAAM,OAAO,KAAG,YAAY,GAAG,IAIvD,CAAC;AAGX,oBAAY,iBAAiB;IAC3B,EAAE,OAAO;IACT,IAAI,SAAS;CACd;AAED,eAAO,MAAM,sBAAsB,GACjC,MAAM,OAAO,KACZ,iBAAiB,GAAG,IAIb,CAAC;AAGX,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,KAAG,cAAc,GAAG,IAI3D,CAAC;AAGX,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAGD,oBAAY,YAAY;IACtB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAGD,oBAAY,cAAc;IACxB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAGD,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,WAAW,GAAI,WAAW,MAAM,KAAG,OACa,CAAC;AAE9D,eAAO,MAAM,YAAY,GAAI,YAAY,MAAM,EAAE,KAAG,OACM,CAAC"}
@@ -0,0 +1,73 @@
1
+ // ----- DecoFileType --------------------------------------
2
+ export var DecoFileType;
3
+ (function (DecoFileType) {
4
+ DecoFileType["doc"] = "doc";
5
+ DecoFileType["template"] = "template";
6
+ DecoFileType["routes"] = "routes";
7
+ DecoFileType["backend"] = "backend";
8
+ DecoFileType["frontend"] = "frontend";
9
+ DecoFileType["zod"] = "zod";
10
+ DecoFileType["annotations"] = "annotations";
11
+ })(DecoFileType || (DecoFileType = {}));
12
+ export const guardDecoFileType = (type) => typeof type === "string" &&
13
+ Object.values(DecoFileType).includes(type)
14
+ ? type
15
+ : null;
16
+ // ----- DecoFileExtension --------------------------------------
17
+ export var DecoFileExtension;
18
+ (function (DecoFileExtension) {
19
+ DecoFileExtension["ts"] = "ts";
20
+ DecoFileExtension["json"] = "json";
21
+ })(DecoFileExtension || (DecoFileExtension = {}));
22
+ export const guardDecoFileExtension = (type) => typeof type === "string" &&
23
+ Object.values(DecoFileExtension).includes(type)
24
+ ? type
25
+ : null;
26
+ // ----- DecoTargetType --------------------------------------
27
+ export var DecoTargetType;
28
+ (function (DecoTargetType) {
29
+ DecoTargetType["common"] = "common";
30
+ DecoTargetType["frontend"] = "frontend";
31
+ DecoTargetType["backend"] = "backend";
32
+ })(DecoTargetType || (DecoTargetType = {}));
33
+ export const guardDecoTargetType = (type) => typeof type === "string" &&
34
+ Object.values(DecoTargetType).includes(type)
35
+ ? type
36
+ : null;
37
+ // ----- DecoPropertyType --------------------------------------
38
+ export var DecoPropertyType;
39
+ (function (DecoPropertyType) {
40
+ DecoPropertyType["string"] = "string";
41
+ DecoPropertyType["number"] = "number";
42
+ DecoPropertyType["boolean"] = "boolean";
43
+ DecoPropertyType["date"] = "date";
44
+ DecoPropertyType["array"] = "array";
45
+ DecoPropertyType["object"] = "object";
46
+ })(DecoPropertyType || (DecoPropertyType = {}));
47
+ // ----- DecoHeadType --------------------------------------
48
+ export var DecoHeadType;
49
+ (function (DecoHeadType) {
50
+ DecoHeadType["default"] = "default";
51
+ DecoHeadType["leading"] = "leading";
52
+ })(DecoHeadType || (DecoHeadType = {}));
53
+ // ----- DecoDateFormat --------------------------------------
54
+ export var DecoDateFormat;
55
+ (function (DecoDateFormat) {
56
+ DecoDateFormat["timestamp"] = "timestamp";
57
+ DecoDateFormat["time"] = "time";
58
+ DecoDateFormat["date"] = "date";
59
+ })(DecoDateFormat || (DecoDateFormat = {}));
60
+ // ----- CrudRouteName --------------------------------------
61
+ export var CrudRouteName;
62
+ (function (CrudRouteName) {
63
+ CrudRouteName["create"] = "create";
64
+ CrudRouteName["update"] = "update";
65
+ CrudRouteName["delete"] = "delete";
66
+ CrudRouteName["get"] = "get";
67
+ CrudRouteName["query"] = "query";
68
+ CrudRouteName["count"] = "count";
69
+ CrudRouteName["exists"] = "exists";
70
+ })(CrudRouteName || (CrudRouteName = {}));
71
+ export const isCrudRoute = (routeName) => !!Object.values(CrudRouteName).find((r) => r === routeName);
72
+ export const hasCrudRoute = (routeNames) => !!routeNames.find((routeName) => isCrudRoute(routeName));
73
+ //# sourceMappingURL=deco.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deco.enum.js","sourceRoot":"","sources":["../../src/decorator/deco.enum.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,2BAAW,CAAA;IACX,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;IACX,2CAA2B,CAAA;AAC7B,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAAa,EAAuB,EAAE,CACtE,OAAO,IAAI,KAAK,QAAQ;IACxB,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,IAAoB,CAAC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D,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,+BAAa,CAAA;IACb,+BAAa,CAAA;AACf,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAED,6DAA6D;AAC7D,MAAM,CAAN,IAAY,aAQX;AARD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,4BAAW,CAAA;IACX,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,kCAAiB,CAAA;AACnB,CAAC,EARW,aAAa,KAAb,aAAa,QAQxB;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,SAAiB,EAAW,EAAE,CACxD,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;AAE9D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,UAAoB,EAAW,EAAE,CAC5D,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { DecoTargetType } from "./deco.enum.js";
2
+ export interface DecoNames {
3
+ targetType: DecoTargetType;
4
+ basename: string;
5
+ basenameLower: string;
6
+ basenameUpper: string;
7
+ doc: string;
8
+ routes: string;
9
+ routesName: string;
10
+ api: string;
11
+ func: string;
12
+ store: string;
13
+ shape: string;
14
+ schema: string;
15
+ annotations: string;
16
+ initialFunc: string;
17
+ functionName: string;
18
+ }
19
+ export declare const decoNamesProperties: (keyof DecoNames)[];
20
+ //# sourceMappingURL=deco.names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deco.names.d.ts","sourceRoot":"","sources":["../../src/decorator/deco.names.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,cAAc,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IAEtB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAqBD,eAAO,MAAM,mBAAmB,EAEhB,CAAC,MAAM,SAAS,CAAC,EAAE,CAAC"}
@@ -0,0 +1,20 @@
1
+ const decoNames = {
2
+ targetType: undefined,
3
+ basename: undefined,
4
+ basenameLower: undefined,
5
+ basenameUpper: undefined,
6
+ // template: undefined!,
7
+ doc: undefined,
8
+ routes: undefined,
9
+ routesName: undefined,
10
+ api: undefined,
11
+ func: undefined,
12
+ store: undefined,
13
+ shape: undefined,
14
+ schema: undefined,
15
+ annotations: undefined,
16
+ initialFunc: undefined,
17
+ functionName: undefined,
18
+ };
19
+ export const decoNamesProperties = Object.keys(decoNames);
20
+ //# sourceMappingURL=deco.names.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deco.names.js","sourceRoot":"","sources":["../../src/decorator/deco.names.ts"],"names":[],"mappings":"AAqBA,MAAM,SAAS,GAAwB;IACrC,UAAU,EAAE,SAAU;IACtB,QAAQ,EAAE,SAAU;IACpB,aAAa,EAAE,SAAU;IACzB,aAAa,EAAE,SAAU;IACzB,wBAAwB;IACxB,GAAG,EAAE,SAAU;IACf,MAAM,EAAE,SAAU;IAClB,UAAU,EAAE,SAAU;IACtB,GAAG,EAAE,SAAU;IACf,IAAI,EAAE,SAAU;IAChB,KAAK,EAAE,SAAU;IACjB,KAAK,EAAE,SAAU;IACjB,MAAM,EAAE,SAAU;IAClB,WAAW,EAAE,SAAU;IACvB,WAAW,EAAE,SAAU;IACvB,YAAY,EAAE,SAAU;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,IAAI,CAC5C,SAAS,CACwB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const toDecoPath: (name: string, dirPath: string, filename: string) => string;
2
+ export declare const fromDecoPath: (decoPath: string) => {
3
+ name: string;
4
+ dirPath: string;
5
+ filename: string;
6
+ };
7
+ //# sourceMappingURL=deco.paths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deco.paths.d.ts","sourceRoot":"","sources":["../../src/decorator/deco.paths.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GACrB,MAAM,MAAM,EACZ,SAAS,MAAM,EACf,UAAU,MAAM,KACf,MAQF,CAAC;AAEF,eAAO,MAAM,YAAY,GACvB,UAAU,MAAM,KACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAOnD,CAAC"}
@@ -0,0 +1,14 @@
1
+ export const toDecoPath = (name, dirPath, filename) => {
2
+ if ((!filename.endsWith(".ts") && !filename.endsWith(".js")) ||
3
+ filename.endsWith(".d.ts"))
4
+ throw new Error(`Expected file extensions: .ts and .js. Got: ${filename}`);
5
+ return `${dirPath}/${filename}=${name}`;
6
+ };
7
+ export const fromDecoPath = (decoPath) => {
8
+ const found = decoPath.match(/^(.+)\/([a-zA-Z0-9-_+]+\.[tj]s)=([a-zA-Z0-9-_+]+)$/);
9
+ if (!found)
10
+ throw new Error(`decoPath not supported: ${decoPath}`);
11
+ const [dirPath, filename, name] = found;
12
+ return { dirPath, filename, name };
13
+ };
14
+ //# sourceMappingURL=deco.paths.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deco.paths.js","sourceRoot":"","sources":["../../src/decorator/deco.paths.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,IAAY,EACZ,OAAe,EACf,QAAgB,EACR,EAAE;IACV,IACE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACxD,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC;QAE1B,MAAM,IAAI,KAAK,CAAC,+CAA+C,QAAQ,EAAE,CAAC,CAAC;IAE7E,OAAO,GAAG,OAAO,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,QAAgB,EACqC,EAAE;IACvD,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAC1B,oDAAoD,CACrD,CAAC;IACF,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,2BAA2B,QAAQ,EAAE,CAAC,CAAC;IACnE,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC;IACxC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACrC,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { DecoPropertyBase, DecoPropertyRaw } from "../types/types.deco.property.js";
2
+ import { DecoArray } from "./DecoArray.js";
3
+ import { DecoBoolean } from "./DecoBoolean.js";
4
+ import { DecoDate } from "./DecoDate.js";
5
+ import { DecoNumber } from "./DecoNumber.js";
6
+ import { DecoString } from "./DecoString.js";
7
+ export declare const createInstance: <T extends DecoPropertyBase>(extr: DecoPropertyRaw<T>) => DecoArray | DecoBoolean | DecoDate | DecoNumber | DecoString | null;
8
+ export declare const createInstances: (extracts: DecoPropertyRaw<any>[]) => (DecoArray | DecoBoolean | DecoDate | DecoNumber | DecoString)[];
9
+ //# sourceMappingURL=deco.properties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deco.properties.d.ts","sourceRoot":"","sources":["../../src/decorator/deco.properties.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,eAAe,EAChB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAgB,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,gBAAgB,EACvD,MAAM,eAAe,CAAC,CAAC,CAAC,wEAwCzB,CAAC;AAGF,eAAO,MAAM,eAAe,GAAI,UAAU,eAAe,CAAC,GAAG,CAAC,EAAE,qEACW,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { DecoPropertyType } from "./deco.enum.js";
2
+ import { DecoArray } from "./DecoArray.js";
3
+ import { DecoBoolean } from "./DecoBoolean.js";
4
+ import { DecoDate } from "./DecoDate.js";
5
+ import { DecoNumber } from "./DecoNumber.js";
6
+ import { DecoString } from "./DecoString.js";
7
+ export const createInstance = (extr) => {
8
+ if (extr.data.type === DecoPropertyType.string)
9
+ return new DecoString().setAll({
10
+ common: extr.common,
11
+ data: extr.data,
12
+ });
13
+ if (extr.data.type === DecoPropertyType.number)
14
+ return new DecoNumber().setAll({
15
+ common: extr.common,
16
+ data: extr.data,
17
+ });
18
+ if (extr.data.type === DecoPropertyType.boolean)
19
+ return new DecoBoolean().setAll({
20
+ common: extr.common,
21
+ data: extr.data,
22
+ });
23
+ if (extr.data.type === DecoPropertyType.date)
24
+ return new DecoDate().setAll({
25
+ common: extr.common,
26
+ data: extr.data,
27
+ });
28
+ if (extr.data.type === DecoPropertyType.array)
29
+ return new DecoArray().setAll({
30
+ common: extr.common,
31
+ data: extr.data,
32
+ });
33
+ // todo
34
+ // if (extr.data.type === DecoPropertyType.object)
35
+ // return new DecoObject().setAll({
36
+ // common: extr.common,
37
+ // data: extr.data,
38
+ // });
39
+ return null;
40
+ };
41
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
42
+ export const createInstances = (extracts) => extracts.map(createInstance).filter((s) => s !== null && s !== undefined);
43
+ //# sourceMappingURL=deco.properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deco.properties.js","sourceRoot":"","sources":["../../src/decorator/deco.properties.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAgB,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,IAAwB,EACxB,EAAE;IACF,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,MAAM;QAC5C,OAAO,IAAI,UAAU,EAAE,CAAC,MAAM,CAAC;YAC7B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC,CAAC;IAEL,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,MAAM;QAC5C,OAAO,IAAI,UAAU,EAAE,CAAC,MAAM,CAAC;YAC7B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC,CAAC;IAEL,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,OAAO;QAC7C,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC;YAC9B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC,CAAC;IAEL,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,IAAI;QAC1C,OAAO,IAAI,QAAQ,EAAE,CAAC,MAAM,CAAC;YAC3B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI,CAAC,IAA+B;SAC3C,CAAC,CAAC;IAEL,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,KAAK;QAC3C,OAAO,IAAI,SAAS,EAAE,CAAC,MAAM,CAAC;YAC5B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC,CAAC;IAEL,OAAO;IACP,kDAAkD;IAClD,qCAAqC;IACrC,2BAA2B;IAC3B,uBAAuB;IACvB,QAAQ;IAER,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,8DAA8D;AAC9D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,QAAgC,EAAE,EAAE,CAClE,QAAQ,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { DecoRouteParams } from "../types/types.deco.common.js";
2
+ import { CrudRouteName } from "./deco.enum.js";
3
+ export declare const crudRoutes: (docName: string) => Record<CrudRouteName, DecoRouteParams>;
4
+ //# sourceMappingURL=deco.routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deco.routes.d.ts","sourceRoot":"","sources":["../../src/decorator/deco.routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,eAAO,MAAM,UAAU,GACrB,SAAS,MAAM,KACd,MAAM,CAAC,aAAa,EAAE,eAAe,CAoBtC,CAAC"}
@@ -0,0 +1,22 @@
1
+ export const crudRoutes = (docName) => ({
2
+ create: {
3
+ requestType: `WithoutKey<${docName}>`,
4
+ responseType: `WithKey<${docName}>`,
5
+ },
6
+ update: {
7
+ requestType: `WithKey<Partial<${docName}>>`,
8
+ responseType: `WithKey<${docName}>`,
9
+ },
10
+ delete: { requestType: "DocumentKey", responseType: "{ deleted: true }" },
11
+ get: { requestType: "DocumentKey", responseType: `WithKey<${docName}>` },
12
+ query: {
13
+ requestType: "ApiFilter | undefined | null | never",
14
+ responseType: `WithKey<${docName}>[]`,
15
+ },
16
+ count: {
17
+ requestType: "ApiFilter | undefined | null | never",
18
+ responseType: "{ count: number }",
19
+ },
20
+ exists: { requestType: "DocumentKey", responseType: "{ exists: boolean }" },
21
+ });
22
+ //# sourceMappingURL=deco.routes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deco.routes.js","sourceRoot":"","sources":["../../src/decorator/deco.routes.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,OAAe,EACyB,EAAE,CAAC,CAAC;IAC5C,MAAM,EAAE;QACN,WAAW,EAAE,cAAc,OAAO,GAAG;QACrC,YAAY,EAAE,WAAW,OAAO,GAAG;KACpC;IACD,MAAM,EAAE;QACN,WAAW,EAAE,mBAAmB,OAAO,IAAI;QAC3C,YAAY,EAAE,WAAW,OAAO,GAAG;KACpC;IACD,MAAM,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,mBAAmB,EAAE;IACzE,GAAG,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,OAAO,GAAG,EAAE;IACxE,KAAK,EAAE;QACL,WAAW,EAAE,sCAAsC;QACnD,YAAY,EAAE,WAAW,OAAO,KAAK;KACtC;IACD,KAAK,EAAE;QACL,WAAW,EAAE,sCAAsC;QACnD,YAAY,EAAE,mBAAmB;KAClC;IACD,MAAM,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE;CAC5E,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ export * from "./DecoArray.js";
2
+ export * from "./DecoBoolean.js";
3
+ export * from "./DecoDate.js";
4
+ export * from "./DecoNumber.js";
5
+ export * from "./DecoObject.js";
6
+ export * from "./DecoProperty.js";
7
+ export * from "./DecoString.js";
8
+ export * from "./Decorator.js";
9
+ export * from "./deco.cast.js";
10
+ export * from "./deco.enum.js";
11
+ export * from "./deco.names.js";
12
+ export * from "./deco.paths.js";
13
+ export * from "./deco.properties.js";
14
+ export * from "./deco.routes.js";
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decorator/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,16 @@
1
+ // This file is auto-generated by build-cli. Do not edit manually.
2
+ export * from "./DecoArray.js";
3
+ export * from "./DecoBoolean.js";
4
+ export * from "./DecoDate.js";
5
+ export * from "./DecoNumber.js";
6
+ export * from "./DecoObject.js";
7
+ export * from "./DecoProperty.js";
8
+ export * from "./DecoString.js";
9
+ export * from "./Decorator.js";
10
+ export * from "./deco.cast.js";
11
+ export * from "./deco.enum.js";
12
+ export * from "./deco.names.js";
13
+ export * from "./deco.paths.js";
14
+ export * from "./deco.properties.js";
15
+ export * from "./deco.routes.js";
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorator/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
@@ -1,10 +1,5 @@
1
- import { MetaFacetItemType } from "../meta/meta.enum.js";
2
- import { AnnotationsError, AnnotationsHeader, AnnotationsProperty } from "../types/types.annotation.js";
1
+ import { AnnotationsProperty } from "../types/types.annotation.js";
2
+ import { DecoPropertyBase } from "../types/types.deco.property.js";
3
3
  import { DocumentData } from "../types/types.document.js";
4
- import { ValidationResultFields } from "../types/types.validation.js";
5
- export declare const annoProperty: (propertyKey: string, headerOrProps: AnnotationsHeader | AnnotationsProperty[]) => AnnotationsProperty | null;
6
- export declare const annoPropertyTitle: (prop: AnnotationsProperty, type?: MetaFacetItemType | "*") => string;
7
- export declare const annoPropertyBase: <T>(annoKey: keyof AnnotationsProperty, prop: AnnotationsProperty, type: (MetaFacetItemType | "*") | undefined, fallback: T) => T;
8
- export declare const annoPropertyError: (propertyKey: string, headerOrProps: AnnotationsHeader | AnnotationsProperty[], errorFields: ValidationResultFields, type?: MetaFacetItemType | "*") => AnnotationsError | undefined;
9
- export declare const annoDocInitial: <T extends DocumentData>(properties: AnnotationsProperty[]) => Partial<T>;
4
+ export declare const annoDocInitial: <T extends DocumentData>(properties: AnnotationsProperty<DecoPropertyBase>[]) => Partial<T>;
10
5
  //# sourceMappingURL=helper.annotation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.annotation.d.ts","sourceRoot":"","sources":["../../src/helper/helper.annotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAEL,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,eAAO,MAAM,YAAY,GACvB,aAAa,MAAM,EACnB,eAAe,iBAAiB,GAAG,mBAAmB,EAAE,KACvD,mBAAmB,GAAG,IAMxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,MAAM,mBAAmB,EACzB,OAAM,iBAAiB,GAAG,GAAS,KAClC,MAAiE,CAAC;AAErE,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAChC,SAAS,MAAM,mBAAmB,EAClC,MAAM,mBAAmB,EACzB,OAAM,iBAAiB,GAAG,GAAG,aAAM,EACnC,UAAU,CAAC,KACV,CAgBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,aAAa,MAAM,EACnB,eAAe,iBAAiB,GAAG,mBAAmB,EAAE,EACxD,aAAa,sBAAsB,EACnC,OAAM,iBAAiB,GAAG,GAAS,KAClC,gBAAgB,GAAG,SASrB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,YAAY,EACnD,YAAY,mBAAmB,EAAE,KAChC,OAAO,CAAC,CAAC,CAcX,CAAC"}
1
+ {"version":3,"file":"helper.annotation.d.ts","sourceRoot":"","sources":["../../src/helper/helper.annotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,YAAY,EACnD,YAAY,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,KAClD,OAAO,CAAC,CAAC,CAUX,CAAC"}
@@ -1,48 +1,11 @@
1
- import { MetaFacetItemType } from "../meta/meta.enum.js";
2
- export const annoProperty = (propertyKey, headerOrProps) => {
3
- const properties = Array.isArray(headerOrProps)
4
- ? headerOrProps
5
- : headerOrProps.properties;
6
- return properties.find((prop) => prop.propertyKey == propertyKey) ?? null;
7
- };
8
- export const annoPropertyTitle = (prop, type = "*") => annoPropertyBase("title", prop, type, prop.propertyKey);
9
- export const annoPropertyBase = (annoKey, prop, type = "*", fallback) => {
10
- const res = prop[annoKey];
11
- if (res === null || res === undefined)
12
- return fallback;
13
- if (typeof res === "object") {
14
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
15
- const resAny = res;
16
- const typesToBeChecked = type === "*" ? Object.values(MetaFacetItemType) : [type];
17
- const foundType = typesToBeChecked.find((t) => resAny[t] !== null && resAny[t] !== undefined);
18
- return foundType ? resAny[foundType] : fallback;
19
- }
20
- if (typeof res === typeof fallback)
21
- return res;
22
- return fallback;
23
- };
24
- export const annoPropertyError = (propertyKey, headerOrProps, errorFields, type = "*") => {
25
- const errors = errorFields[propertyKey];
26
- if (!errors)
27
- return undefined;
28
- const prop = annoProperty(propertyKey, headerOrProps);
29
- return {
30
- propertyKey,
31
- title: prop ? annoPropertyTitle(prop, type) : propertyKey,
32
- error: errors.join("\n"),
33
- };
34
- };
35
1
  export const annoDocInitial = (properties) => {
36
2
  const result = {};
37
3
  for (const prop of properties) {
38
4
  const key = prop.propertyKey;
39
- const refObject = prop[prop.propertyRef];
40
- if (typeof refObject !== "object")
41
- continue;
42
- const def = refObject ?? null;
43
- if (def?.default !== null && def?.default !== undefined)
5
+ const def = prop.data["default"];
6
+ if (def !== null && def !== undefined)
44
7
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
45
- result[key] = def.default;
8
+ result[key] = def;
46
9
  }
47
10
  return result;
48
11
  };
@@ -1 +1 @@
1
- {"version":3,"file":"helper.annotation.js","sourceRoot":"","sources":["../../src/helper/helper.annotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAUzD,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,WAAmB,EACnB,aAAwD,EAC5B,EAAE;IAC9B,MAAM,UAAU,GAA0B,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC;QACpE,CAAC,CAAC,aAAa;QACf,CAAC,CAAC,aAAa,CAAC,UAAU,CAAC;IAE7B,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,IAAI,WAAW,CAAC,IAAI,IAAI,CAAC;AAC5E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,IAAyB,EACzB,OAAgC,GAAG,EAC3B,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;AAErE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,OAAkC,EAClC,IAAyB,EACzB,OAAgC,GAAG,EACnC,QAAW,EACR,EAAE;IACL,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1B,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,QAAQ,CAAC;IACvD,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC5B,8DAA8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AAI,CAAC,WAAsB,CAAC;QACxC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzC,IAAI,OAAO,SAAS,KAAK,QAAQ;YAAE,SAAS;QAE5C,MAAM,GAAG,GACN,SAAqC,IAAI,IAAI,CAAC;QACjD,IAAI,GAAG,EAAE,OAAO,KAAK,IAAI,IAAI,GAAG,EAAE,OAAO,KAAK,SAAS;YACrD,8DAA8D;YAC7D,MAAc,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC;IACvC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
1
+ {"version":3,"file":"helper.annotation.js","sourceRoot":"","sources":["../../src/helper/helper.annotation.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,UAAmD,EACvC,EAAE;IACd,MAAM,MAAM,GAAe,EAAE,CAAC;IAC9B,KAAK,MAAM,IAAI,IAAI,UAAU,EAAE,CAAC;QAC9B,MAAM,GAAG,GAAG,IAAI,CAAC,WAAsB,CAAC;QACxC,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACjC,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS;YACnC,8DAA8D;YAC7D,MAAc,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IAC/B,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
@@ -1,5 +1,4 @@
1
- import { CallbackAble, DocumentData, DocumentKeyAdmin } from "../types/types.document.js";
2
- export declare const callableUnwrap: <T extends DocumentData>(c: CallbackAble<T>) => Promise<T>;
1
+ import { DocumentKeyAdmin } from "../types/types.document.js";
3
2
  export declare const documentKeyAdmin: Required<DocumentKeyAdmin>;
4
3
  export declare const DOCUMENT_KEY_ADMIN_KEYS: string[];
5
4
  //# sourceMappingURL=helper.document.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.document.d.ts","sourceRoot":"","sources":["../../src/helper/helper.document.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,cAAc,GAAU,CAAC,SAAS,YAAY,EACzD,GAAG,YAAY,CAAC,CAAC,CAAC,eAC0B,CAAC;AAE/C,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,CAIvD,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAgC,CAAC"}
1
+ {"version":3,"file":"helper.document.d.ts","sourceRoot":"","sources":["../../src/helper/helper.document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,CAIvD,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAgC,CAAC"}
@@ -1,4 +1,3 @@
1
- export const callableUnwrap = async (c) => (typeof c === "function" ? await c() : c);
2
1
  export const documentKeyAdmin = {
3
2
  id: undefined,
4
3
  createTime: undefined,
@@ -1 +1 @@
1
- {"version":3,"file":"helper.document.js","sourceRoot":"","sources":["../../src/helper/helper.document.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EACjC,CAAkB,EAClB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/C,MAAM,CAAC,MAAM,gBAAgB,GAA+B;IAC1D,EAAE,EAAE,SAAU;IACd,UAAU,EAAE,SAAU;IACtB,UAAU,EAAE,SAAU;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"helper.document.js","sourceRoot":"","sources":["../../src/helper/helper.document.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAA+B;IAC1D,EAAE,EAAE,SAAU;IACd,UAAU,EAAE,SAAU;IACtB,UAAU,EAAE,SAAU;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC"}
@@ -1,8 +1,9 @@
1
1
  export * from "./types.annotation.js";
2
+ export * from "./types.deco.common.js";
3
+ export * from "./types.deco.property.js";
2
4
  export * from "./types.document.js";
3
5
  export * from "./types.filter.js";
4
6
  export * from "./types.function.js";
5
- export * from "./types.meta.js";
6
7
  export * from "./types.routes.js";
7
8
  export * from "./types.validation.js";
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC"}
@@ -1,9 +1,10 @@
1
1
  // This file is auto-generated by build-cli. Do not edit manually.
2
2
  export * from "./types.annotation.js";
3
+ export * from "./types.deco.common.js";
4
+ export * from "./types.deco.property.js";
3
5
  export * from "./types.document.js";
4
6
  export * from "./types.filter.js";
5
7
  export * from "./types.function.js";
6
- export * from "./types.meta.js";
7
8
  export * from "./types.routes.js";
8
9
  export * from "./types.validation.js";
9
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC"}
@@ -1,28 +1,25 @@
1
- import { MetaPropertyDataWoType } from "../meta/meta.properties.js";
2
- import { MetaRouteParams } from "./types.meta.js";
3
- export interface AnnotationsRoute extends MetaRouteParams {
1
+ import { DecoImport, DecoRouteParams } from "./types.deco.common.js";
2
+ import { DecoPropertyBase, DecoPropertyCommon } from "./types.deco.property.js";
3
+ export interface AnnotationsRoute extends DecoRouteParams {
4
4
  name: string;
5
5
  }
6
- export declare const stripAnnotationsRoute: (route: AnnotationsRoute) => AnnotationsRoute;
7
- export interface AnnotationsProperty extends MetaPropertyDataWoType {
8
- propertyRef: keyof MetaPropertyDataWoType;
9
- subHeaderName?: string;
10
- subHeader?: AnnotationsHeader;
6
+ export interface AnnotationsProperty<T extends DecoPropertyBase> {
7
+ propertyKey: string;
8
+ propertyType: string;
9
+ common: DecoPropertyCommon;
10
+ data: T;
11
+ sub?: AnnotationsHeader;
11
12
  }
12
- export declare const stripAnnotationsProperty: (prop: AnnotationsProperty) => AnnotationsProperty;
13
13
  export interface AnnotationsHeader {
14
- title: string;
15
- properties: AnnotationsProperty[];
16
- routes: AnnotationsRoute[];
14
+ name: string;
15
+ namespace?: string;
16
+ properties: AnnotationsProperty<DecoPropertyBase>[];
17
+ routes?: AnnotationsRoute[];
18
+ additionalImports?: DecoImport[];
17
19
  }
18
- export declare const stripAnnotationsHeader: (header: AnnotationsHeader, deepStrip?: boolean) => AnnotationsHeader;
19
20
  export interface AnnotationsError {
20
21
  propertyKey: string;
21
22
  title: string;
22
23
  error: string;
23
24
  }
24
- export declare const stripAnnotationsError: (error: AnnotationsError) => AnnotationsError;
25
- export interface AnnotationsDefaultValue {
26
- default?: string | number | boolean | null;
27
- }
28
25
  //# sourceMappingURL=types.annotation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.annotation.d.ts","sourceRoot":"","sources":["../../src/types/types.annotation.ts"],"names":[],"mappings":"AACA,OAAO,EACL,sBAAsB,EAGvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,eAAe,EAKhB,MAAM,iBAAiB,CAAC;AAGzB,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,IAAI,EAAE,MAAM,CAAC;CACd;AAWD,eAAO,MAAM,qBAAqB,GAAI,OAAO,gBAAgB,qBACD,CAAC;AAG7D,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;IACjE,WAAW,EAAE,MAAM,sBAAsB,CAAC;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC/B;AAED,eAAO,MAAM,wBAAwB,GACnC,MAAM,mBAAmB,KACxB,mBAiBF,CAAC;AAGF,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAClC,MAAM,EAAE,gBAAgB,EAAE,CAAC;CAC5B;AAWD,eAAO,MAAM,sBAAsB,GACjC,QAAQ,iBAAiB,EACzB,YAAW,O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