@mxpicture/gcp-functions-common 1.1.3 → 1.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.
Files changed (109) hide show
  1. package/dist/annotation/anno.head.d.ts +24 -0
  2. package/dist/annotation/anno.head.d.ts.map +1 -1
  3. package/dist/annotation/anno.head.js +24 -0
  4. package/dist/annotation/anno.head.js.map +1 -1
  5. package/dist/annotation/anno.property.d.ts +13 -0
  6. package/dist/annotation/anno.property.d.ts.map +1 -1
  7. package/dist/annotation/anno.property.js +13 -0
  8. package/dist/annotation/anno.property.js.map +1 -1
  9. package/dist/config/config.api.d.ts +24 -0
  10. package/dist/config/config.api.d.ts.map +1 -1
  11. package/dist/config/config.api.js +16 -0
  12. package/dist/config/config.api.js.map +1 -1
  13. package/dist/decorator/DecoArray.d.ts +67 -0
  14. package/dist/decorator/DecoArray.d.ts.map +1 -1
  15. package/dist/decorator/DecoArray.js +57 -0
  16. package/dist/decorator/DecoArray.js.map +1 -1
  17. package/dist/decorator/DecoBoolean.d.ts +19 -0
  18. package/dist/decorator/DecoBoolean.d.ts.map +1 -1
  19. package/dist/decorator/DecoBoolean.js +15 -0
  20. package/dist/decorator/DecoBoolean.js.map +1 -1
  21. package/dist/decorator/DecoDate.d.ts +22 -0
  22. package/dist/decorator/DecoDate.d.ts.map +1 -1
  23. package/dist/decorator/DecoDate.js +18 -0
  24. package/dist/decorator/DecoDate.js.map +1 -1
  25. package/dist/decorator/DecoNumber.d.ts +65 -0
  26. package/dist/decorator/DecoNumber.d.ts.map +1 -1
  27. package/dist/decorator/DecoNumber.js +55 -0
  28. package/dist/decorator/DecoNumber.js.map +1 -1
  29. package/dist/decorator/DecoObject.d.ts +21 -0
  30. package/dist/decorator/DecoObject.d.ts.map +1 -1
  31. package/dist/decorator/DecoObject.js +17 -0
  32. package/dist/decorator/DecoObject.js.map +1 -1
  33. package/dist/decorator/DecoProperty.d.ts +95 -0
  34. package/dist/decorator/DecoProperty.d.ts.map +1 -1
  35. package/dist/decorator/DecoProperty.js +94 -0
  36. package/dist/decorator/DecoProperty.js.map +1 -1
  37. package/dist/decorator/DecoString.d.ts +57 -0
  38. package/dist/decorator/DecoString.d.ts.map +1 -1
  39. package/dist/decorator/DecoString.js +48 -0
  40. package/dist/decorator/DecoString.js.map +1 -1
  41. package/dist/decorator/Decorator.d.ts +93 -0
  42. package/dist/decorator/Decorator.d.ts.map +1 -1
  43. package/dist/decorator/Decorator.js +74 -0
  44. package/dist/decorator/Decorator.js.map +1 -1
  45. package/dist/decorator/deco.cast.d.ts +42 -0
  46. package/dist/decorator/deco.cast.d.ts.map +1 -1
  47. package/dist/decorator/deco.cast.js +42 -0
  48. package/dist/decorator/deco.cast.js.map +1 -1
  49. package/dist/decorator/deco.enum.d.ts +37 -0
  50. package/dist/decorator/deco.enum.d.ts.map +1 -1
  51. package/dist/decorator/deco.enum.js +37 -0
  52. package/dist/decorator/deco.enum.js.map +1 -1
  53. package/dist/decorator/deco.names.d.ts +28 -0
  54. package/dist/decorator/deco.names.d.ts.map +1 -1
  55. package/dist/decorator/deco.names.js +6 -0
  56. package/dist/decorator/deco.names.js.map +1 -1
  57. package/dist/decorator/deco.paths.d.ts +20 -0
  58. package/dist/decorator/deco.paths.d.ts.map +1 -1
  59. package/dist/decorator/deco.paths.js +20 -0
  60. package/dist/decorator/deco.paths.js.map +1 -1
  61. package/dist/decorator/deco.properties.d.ts +20 -0
  62. package/dist/decorator/deco.properties.d.ts.map +1 -1
  63. package/dist/decorator/deco.properties.js +20 -0
  64. package/dist/decorator/deco.properties.js.map +1 -1
  65. package/dist/decorator/deco.routes.d.ts +10 -0
  66. package/dist/decorator/deco.routes.d.ts.map +1 -1
  67. package/dist/decorator/deco.routes.js +10 -0
  68. package/dist/decorator/deco.routes.js.map +1 -1
  69. package/dist/helper/FirebaseTimestamp.d.ts +76 -0
  70. package/dist/helper/FirebaseTimestamp.d.ts.map +1 -1
  71. package/dist/helper/FirebaseTimestamp.js +73 -0
  72. package/dist/helper/FirebaseTimestamp.js.map +1 -1
  73. package/dist/helper/helper.annotation.d.ts +10 -0
  74. package/dist/helper/helper.annotation.d.ts.map +1 -1
  75. package/dist/helper/helper.annotation.js +10 -0
  76. package/dist/helper/helper.annotation.js.map +1 -1
  77. package/dist/helper/helper.date.d.ts +23 -0
  78. package/dist/helper/helper.date.d.ts.map +1 -1
  79. package/dist/helper/helper.date.js +28 -1
  80. package/dist/helper/helper.date.js.map +1 -1
  81. package/dist/helper/helper.document.d.ts +10 -0
  82. package/dist/helper/helper.document.d.ts.map +1 -1
  83. package/dist/helper/helper.document.js +10 -0
  84. package/dist/helper/helper.document.js.map +1 -1
  85. package/dist/helper/helper.object.d.ts +7 -0
  86. package/dist/helper/helper.object.d.ts.map +1 -1
  87. package/dist/helper/helper.object.js +7 -0
  88. package/dist/helper/helper.object.js.map +1 -1
  89. package/dist/path/path.common.d.ts +48 -0
  90. package/dist/path/path.common.d.ts.map +1 -1
  91. package/dist/path/path.common.js +35 -0
  92. package/dist/path/path.common.js.map +1 -1
  93. package/dist/types/types.annotation.d.ts +28 -0
  94. package/dist/types/types.annotation.d.ts.map +1 -1
  95. package/dist/types/types.deco.common.d.ts +26 -0
  96. package/dist/types/types.deco.common.d.ts.map +1 -1
  97. package/dist/types/types.deco.property.d.ts +67 -0
  98. package/dist/types/types.deco.property.d.ts.map +1 -1
  99. package/dist/types/types.document.d.ts +29 -0
  100. package/dist/types/types.document.d.ts.map +1 -1
  101. package/dist/types/types.filter.d.ts +13 -0
  102. package/dist/types/types.filter.d.ts.map +1 -1
  103. package/dist/types/types.function.d.ts +20 -0
  104. package/dist/types/types.function.d.ts.map +1 -1
  105. package/dist/types/types.routes.d.ts +31 -0
  106. package/dist/types/types.routes.d.ts.map +1 -1
  107. package/dist/types/types.validation.d.ts +7 -0
  108. package/dist/types/types.validation.d.ts.map +1 -1
  109. package/package.json +4 -2
@@ -1,33 +1,126 @@
1
1
  import { DecoImport, DecoRoutes } from "../types/types.deco.common.js";
2
2
  import { DecoProperties } from "./DecoProperty.js";
3
3
  import { AnnotationsHeader } from "../types/types.annotation.js";
4
+ /**
5
+ * Data structure that holds all metadata for a single decorator definition.
6
+ *
7
+ * @remarks
8
+ * Combines user-supplied configuration (name, title, routes, properties) with
9
+ * file-system context derived from the input file path.
10
+ */
4
11
  export interface DecoratorData {
12
+ /** Unique name identifying this decorator. */
5
13
  name: string;
14
+ /** Human-readable display title. */
6
15
  title?: string;
16
+ /** Optional namespace used for grouping related decorators. */
7
17
  namespace?: string;
18
+ /** Route definitions associated with this decorator. */
8
19
  routes?: DecoRoutes;
20
+ /** Extra import declarations required by generated code. */
9
21
  additionalImports?: DecoImport[];
22
+ /** Whether this decorator is the leading/primary decorator. */
10
23
  lead?: boolean;
24
+ /** Map of property names to their decorator property definitions. */
11
25
  properties?: DecoProperties;
26
+ /** Computed decorator path used for file-system resolution. */
12
27
  decoPath: string;
28
+ /** Directory path of the input file. */
13
29
  inputDirPath: string;
30
+ /** Basename of the input file. */
14
31
  inputFilename: string;
32
+ /** Full path to the input file. */
15
33
  inputFilePath: string;
16
34
  }
35
+ /**
36
+ * Creates a curried factory function that produces {@link Decorator} instances bound to a file path.
37
+ *
38
+ * @param filePath - Absolute path to the source file containing the decorator definitions.
39
+ * @returns A function that accepts a decorator name and returns a new {@link Decorator}.
40
+ */
17
41
  export declare const createDecorator: (filePath: string) => (name: string) => Decorator;
42
+ /** A record mapping decorator names to their {@link Decorator} instances. */
18
43
  export type Decorators = Record<string, Decorator>;
44
+ /**
45
+ * Fluent builder that assembles metadata for a single decorator definition.
46
+ *
47
+ * @remarks
48
+ * Use {@link createDecorator} for a convenient factory. All setter methods
49
+ * return `this` to support method chaining.
50
+ */
19
51
  export declare class Decorator {
20
52
  readonly name: string;
21
53
  protected data: DecoratorData;
54
+ /**
55
+ * Creates a new Decorator instance.
56
+ *
57
+ * @param name - Unique identifier for the decorator.
58
+ * @param inputFilePath - Absolute path to the source file that defines this decorator.
59
+ */
22
60
  constructor(name: string, inputFilePath: string);
61
+ /**
62
+ * Sets the human-readable display title.
63
+ *
64
+ * @param val - The title string.
65
+ * @returns This instance for chaining.
66
+ */
23
67
  title(val: string): this;
68
+ /**
69
+ * Sets the namespace for grouping related decorators.
70
+ *
71
+ * @param val - The namespace string.
72
+ * @returns This instance for chaining.
73
+ */
24
74
  namespace(val: string): this;
75
+ /**
76
+ * Merges the given properties into this decorator's property map.
77
+ *
78
+ * @param properties - A record of property names to {@link DecoProperty} instances.
79
+ * @returns This instance for chaining.
80
+ */
25
81
  properties(properties: DecoProperties): this;
82
+ /**
83
+ * Appends additional import declarations required by generated code.
84
+ *
85
+ * @param imps - One or more import declarations to add.
86
+ * @returns This instance for chaining.
87
+ */
26
88
  additionalImports(...imps: DecoImport[]): this;
89
+ /**
90
+ * Merges the given route definitions into this decorator's route map.
91
+ *
92
+ * @param routes - A record of route names to {@link DecoRouteParams}.
93
+ * @returns This instance for chaining.
94
+ */
27
95
  routes(routes: DecoRoutes): this;
96
+ /**
97
+ * Adds the standard CRUD route set derived from the decorator name.
98
+ *
99
+ * @returns This instance for chaining.
100
+ */
28
101
  routesCrud(): this;
102
+ /**
103
+ * Marks this decorator as the leading/primary decorator.
104
+ *
105
+ * @param lead - Whether the decorator is the lead. Defaults to `true`.
106
+ * @returns This instance for chaining.
107
+ */
29
108
  lead(lead?: boolean): this;
109
+ /**
110
+ * Extracts a deep-cloned snapshot of the decorator's raw data.
111
+ *
112
+ * @returns A plain {@link DecoratorData} object safe to mutate independently.
113
+ */
30
114
  extractRaw(): DecoratorData;
115
+ /**
116
+ * Extracts annotations header metadata from this decorator and its properties.
117
+ *
118
+ * @remarks
119
+ * Object-type properties receive special handling to preserve the live
120
+ * {@link Decorator} reference that `structuredClone` would otherwise strip.
121
+ *
122
+ * @returns An {@link AnnotationsHeader} derived from the current decorator state.
123
+ */
31
124
  extractAnnotations(): AnnotationsHeader;
32
125
  }
33
126
  //# sourceMappingURL=Decorator.d.ts.map
@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CAAC;IAE9B;;;;;OAKG;gBAEe,IAAI,EAAE,MAAM,EAC5B,aAAa,EAAE,MAAM;IAQvB;;;;;OAKG;IACI,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI/B;;;;;OAKG;IACI,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAInC;;;;;OAKG;IACI,UAAU,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI;IAMnD;;;;;OAKG;IACI,iBAAiB,CAAC,GAAG,IAAI,EAAE,UAAU,EAAE,GAAG,IAAI;IAKrD;;;;;OAKG;IACI,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI;IAMvC;;;;OAIG;IACI,UAAU,IAAI,IAAI;IAGzB;;;;;OAKG;IACI,IAAI,CAAC,IAAI,GAAE,OAAc,GAAG,IAAI;IAKvC;;;;OAIG;IACI,UAAU,IAAI,aAAa;IAQlC;;;;;;;;OAQG;IACI,kBAAkB,IAAI,iBAAiB;CAiB/C"}
@@ -3,10 +3,29 @@ import { DecoPropertyType } from "./deco.enum.js";
3
3
  import { toDecoPath } from "./deco.paths.js";
4
4
  import { crudRoutes } from "./deco.routes.js";
5
5
  import { mapAnnotationsHeader } from "../annotation/anno.head.js";
6
+ /**
7
+ * Creates a curried factory function that produces {@link Decorator} instances bound to a file path.
8
+ *
9
+ * @param filePath - Absolute path to the source file containing the decorator definitions.
10
+ * @returns A function that accepts a decorator name and returns a new {@link Decorator}.
11
+ */
6
12
  export const createDecorator = (filePath) => (name) => new Decorator(name, filePath);
13
+ /**
14
+ * Fluent builder that assembles metadata for a single decorator definition.
15
+ *
16
+ * @remarks
17
+ * Use {@link createDecorator} for a convenient factory. All setter methods
18
+ * return `this` to support method chaining.
19
+ */
7
20
  export class Decorator {
8
21
  name;
9
22
  data;
23
+ /**
24
+ * Creates a new Decorator instance.
25
+ *
26
+ * @param name - Unique identifier for the decorator.
27
+ * @param inputFilePath - Absolute path to the source file that defines this decorator.
28
+ */
10
29
  constructor(name, inputFilePath) {
11
30
  this.name = name;
12
31
  const inputDirPath = dirname(inputFilePath);
@@ -14,14 +33,32 @@ export class Decorator {
14
33
  const decoPath = toDecoPath(name, inputDirPath, inputFilename);
15
34
  this.data = { name, inputDirPath, inputFilename, decoPath, inputFilePath };
16
35
  }
36
+ /**
37
+ * Sets the human-readable display title.
38
+ *
39
+ * @param val - The title string.
40
+ * @returns This instance for chaining.
41
+ */
17
42
  title(val) {
18
43
  this.data.title = val;
19
44
  return this;
20
45
  }
46
+ /**
47
+ * Sets the namespace for grouping related decorators.
48
+ *
49
+ * @param val - The namespace string.
50
+ * @returns This instance for chaining.
51
+ */
21
52
  namespace(val) {
22
53
  this.data.namespace = val;
23
54
  return this;
24
55
  }
56
+ /**
57
+ * Merges the given properties into this decorator's property map.
58
+ *
59
+ * @param properties - A record of property names to {@link DecoProperty} instances.
60
+ * @returns This instance for chaining.
61
+ */
25
62
  properties(properties) {
26
63
  if (!this.data.properties)
27
64
  this.data.properties = {};
@@ -29,12 +66,24 @@ export class Decorator {
29
66
  this.data.properties[key] = prop;
30
67
  return this;
31
68
  }
69
+ /**
70
+ * Appends additional import declarations required by generated code.
71
+ *
72
+ * @param imps - One or more import declarations to add.
73
+ * @returns This instance for chaining.
74
+ */
32
75
  additionalImports(...imps) {
33
76
  if (!this.data.additionalImports)
34
77
  this.data.additionalImports = [];
35
78
  this.data.additionalImports.push(...imps);
36
79
  return this;
37
80
  }
81
+ /**
82
+ * Merges the given route definitions into this decorator's route map.
83
+ *
84
+ * @param routes - A record of route names to {@link DecoRouteParams}.
85
+ * @returns This instance for chaining.
86
+ */
38
87
  routes(routes) {
39
88
  if (!this.data.routes)
40
89
  this.data.routes = {};
@@ -42,13 +91,29 @@ export class Decorator {
42
91
  this.data.routes[key] = route;
43
92
  return this;
44
93
  }
94
+ /**
95
+ * Adds the standard CRUD route set derived from the decorator name.
96
+ *
97
+ * @returns This instance for chaining.
98
+ */
45
99
  routesCrud() {
46
100
  return this.routes(crudRoutes(`${this.data.name}Doc`));
47
101
  }
102
+ /**
103
+ * Marks this decorator as the leading/primary decorator.
104
+ *
105
+ * @param lead - Whether the decorator is the lead. Defaults to `true`.
106
+ * @returns This instance for chaining.
107
+ */
48
108
  lead(lead = true) {
49
109
  this.data.lead = lead;
50
110
  return this;
51
111
  }
112
+ /**
113
+ * Extracts a deep-cloned snapshot of the decorator's raw data.
114
+ *
115
+ * @returns A plain {@link DecoratorData} object safe to mutate independently.
116
+ */
52
117
  extractRaw() {
53
118
  const { properties, ...rest } = this.data;
54
119
  return {
@@ -56,6 +121,15 @@ export class Decorator {
56
121
  ...(properties ? { properties: { ...properties } } : {}),
57
122
  };
58
123
  }
124
+ /**
125
+ * Extracts annotations header metadata from this decorator and its properties.
126
+ *
127
+ * @remarks
128
+ * Object-type properties receive special handling to preserve the live
129
+ * {@link Decorator} reference that `structuredClone` would otherwise strip.
130
+ *
131
+ * @returns An {@link AnnotationsHeader} derived from the current decorator state.
132
+ */
59
133
  extractAnnotations() {
60
134
  const rawProperties = {};
61
135
  for (const [key, prop] of Object.entries(this.data.properties ?? {})) {
@@ -1 +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,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oDateOptions, DecoNumberOptions, DecoObjectOptions, DecoPropertyBase, DecoStringOptions } from "../types/types.deco.property.js";
2
+ /**
3
+ * Casts a property to a key-typed string option if it is a string marked as a key.
4
+ *
5
+ * @param prop - The base property to inspect.
6
+ * @returns The cast {@link DecoStringOptions} when the property is a key string, or `null` otherwise.
7
+ */
2
8
  export declare const castDecoKey: (prop: DecoPropertyBase) => DecoStringOptions | null;
9
+ /**
10
+ * Casts a property to {@link DecoNumberOptions} if it is a number type.
11
+ *
12
+ * @param prop - The base property to inspect.
13
+ * @returns The cast options or `null` when the type does not match.
14
+ */
3
15
  export declare const castDecoNumber: (prop: DecoPropertyBase) => DecoNumberOptions | null;
16
+ /**
17
+ * Casts a property to {@link DecoStringOptions} if it is a string type.
18
+ *
19
+ * @param prop - The base property to inspect.
20
+ * @returns The cast options or `null` when the type does not match.
21
+ */
4
22
  export declare const castDecoString: (prop: DecoPropertyBase) => DecoStringOptions | null;
23
+ /**
24
+ * Casts a property to {@link DecoBooleanOptions} if it is a boolean type.
25
+ *
26
+ * @param prop - The base property to inspect.
27
+ * @returns The cast options or `null` when the type does not match.
28
+ */
5
29
  export declare const castDecoBoolean: (prop: DecoPropertyBase) => DecoBooleanOptions | null;
30
+ /**
31
+ * Casts a property to {@link DecoDateOptions} if it is a date type.
32
+ *
33
+ * @param prop - The base property to inspect.
34
+ * @returns The cast options or `null` when the type does not match.
35
+ */
6
36
  export declare const castDecoDate: (prop: DecoPropertyBase) => DecoDateOptions | null;
37
+ /**
38
+ * Casts a property to {@link DecoArrayOptions} if it is an array type.
39
+ *
40
+ * @param prop - The base property to inspect.
41
+ * @returns The cast options or `null` when the type does not match.
42
+ */
7
43
  export declare const castDecoArray: (prop: DecoPropertyBase) => DecoArrayOptions | null;
44
+ /**
45
+ * Casts a property to {@link DecoObjectOptions} if it is an object type.
46
+ *
47
+ * @param prop - The base property to inspect.
48
+ * @returns The cast options or `null` when the type does not match.
49
+ */
8
50
  export declare const castDecoObject: (prop: DecoPropertyBase) => DecoObjectOptions | null;
9
51
  //# sourceMappingURL=deco.cast.d.ts.map
@@ -1 +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"}
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;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GACtB,MAAM,gBAAgB,KACrB,iBAAiB,GAAG,IAGtB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GACzB,MAAM,gBAAgB,KACrB,iBAAiB,GAAG,IACqD,CAAC;AAE7E;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GACzB,MAAM,gBAAgB,KACrB,iBAAiB,GAAG,IACqD,CAAC;AAE7E;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAC1B,MAAM,gBAAgB,KACrB,kBAAkB,GAAG,IACsD,CAAC;AAE/E;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,MAAM,gBAAgB,KAAG,eAAe,GAAG,IACA,CAAC;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GACxB,MAAM,gBAAgB,KACrB,gBAAgB,GAAG,IACoD,CAAC;AAE3E;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GACzB,MAAM,gBAAgB,KACrB,iBAAiB,GAAG,IACqD,CAAC"}
@@ -1,13 +1,55 @@
1
1
  import { DecoPropertyType } from "./deco.enum.js";
2
2
  // ----- Properties ----------------------------------------------------------------
3
+ /**
4
+ * Casts a property to a key-typed string option if it is a string marked as a key.
5
+ *
6
+ * @param prop - The base property to inspect.
7
+ * @returns The cast {@link DecoStringOptions} when the property is a key string, or `null` otherwise.
8
+ */
3
9
  export const castDecoKey = (prop) => {
4
10
  const casted = castDecoString(prop);
5
11
  return casted?.isKey === true ? casted : null;
6
12
  };
13
+ /**
14
+ * Casts a property to {@link DecoNumberOptions} if it is a number type.
15
+ *
16
+ * @param prop - The base property to inspect.
17
+ * @returns The cast options or `null` when the type does not match.
18
+ */
7
19
  export const castDecoNumber = (prop) => prop.type === DecoPropertyType.number ? prop : null;
20
+ /**
21
+ * Casts a property to {@link DecoStringOptions} if it is a string type.
22
+ *
23
+ * @param prop - The base property to inspect.
24
+ * @returns The cast options or `null` when the type does not match.
25
+ */
8
26
  export const castDecoString = (prop) => prop.type === DecoPropertyType.string ? prop : null;
27
+ /**
28
+ * Casts a property to {@link DecoBooleanOptions} if it is a boolean type.
29
+ *
30
+ * @param prop - The base property to inspect.
31
+ * @returns The cast options or `null` when the type does not match.
32
+ */
9
33
  export const castDecoBoolean = (prop) => prop.type === DecoPropertyType.boolean ? prop : null;
34
+ /**
35
+ * Casts a property to {@link DecoDateOptions} if it is a date type.
36
+ *
37
+ * @param prop - The base property to inspect.
38
+ * @returns The cast options or `null` when the type does not match.
39
+ */
10
40
  export const castDecoDate = (prop) => prop.type === DecoPropertyType.date ? prop : null;
41
+ /**
42
+ * Casts a property to {@link DecoArrayOptions} if it is an array type.
43
+ *
44
+ * @param prop - The base property to inspect.
45
+ * @returns The cast options or `null` when the type does not match.
46
+ */
11
47
  export const castDecoArray = (prop) => prop.type === DecoPropertyType.array ? prop : null;
48
+ /**
49
+ * Casts a property to {@link DecoObjectOptions} if it is an object type.
50
+ *
51
+ * @param prop - The base property to inspect.
52
+ * @returns The cast options or `null` when the type does not match.
53
+ */
12
54
  export const castDecoObject = (prop) => prop.type === DecoPropertyType.object ? prop : null;
13
55
  //# sourceMappingURL=deco.cast.js.map
@@ -1 +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,CAA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BAAgB,CAAC,MAAM,CAAC,CAAC,CAAE,IAA0B,CAAC,CAAC,CAAC,IAAI,CAAC;AAE7E;;;;;GAKG;AACH,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;;;;;GAKG;AACH,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;;;;;GAKG;AACH,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;;;;;GAKG;AACH,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;;;;;GAKG;AACH,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"}
@@ -1,3 +1,4 @@
1
+ /** Enumeration of output file types generated from decorator definitions. */
1
2
  export declare enum DecoFileType {
2
3
  doc = "doc",
3
4
  template = "template",
@@ -7,18 +8,39 @@ export declare enum DecoFileType {
7
8
  zod = "zod",
8
9
  annotations = "annotations"
9
10
  }
11
+ /**
12
+ * Type guard that validates whether an unknown value is a valid {@link DecoFileType}.
13
+ *
14
+ * @param type - The value to check.
15
+ * @returns The narrowed {@link DecoFileType} or `null` when invalid.
16
+ */
10
17
  export declare const guardDecoFileType: (type: unknown) => DecoFileType | null;
18
+ /** Supported file extensions for generated decorator output files. */
11
19
  export declare enum DecoFileExtension {
12
20
  ts = "ts",
13
21
  json = "json"
14
22
  }
23
+ /**
24
+ * Type guard that validates whether an unknown value is a valid {@link DecoFileExtension}.
25
+ *
26
+ * @param type - The value to check.
27
+ * @returns The narrowed {@link DecoFileExtension} or `null` when invalid.
28
+ */
15
29
  export declare const guardDecoFileExtension: (type: unknown) => DecoFileExtension | null;
30
+ /** Target platform for generated code output. */
16
31
  export declare enum DecoTargetType {
17
32
  common = "common",
18
33
  frontend = "frontend",
19
34
  backend = "backend"
20
35
  }
36
+ /**
37
+ * Type guard that validates whether an unknown value is a valid {@link DecoTargetType}.
38
+ *
39
+ * @param type - The value to check.
40
+ * @returns The narrowed {@link DecoTargetType} or `null` when invalid.
41
+ */
21
42
  export declare const guardDecoTargetType: (type: unknown) => DecoTargetType | null;
43
+ /** Discriminator values for the supported decorator property types. */
22
44
  export declare enum DecoPropertyType {
23
45
  string = "string",
24
46
  number = "number",
@@ -27,15 +49,18 @@ export declare enum DecoPropertyType {
27
49
  array = "array",
28
50
  object = "object"
29
51
  }
52
+ /** Header type classification for decorator display. */
30
53
  export declare enum DecoHeadType {
31
54
  default = "default",
32
55
  leading = "leading"
33
56
  }
57
+ /** Supported date serialization formats for date properties. */
34
58
  export declare enum DecoDateFormat {
35
59
  timestamp = "timestamp",
36
60
  time = "time",
37
61
  date = "date"
38
62
  }
63
+ /** Standard CRUD operation route names. */
39
64
  export declare enum CrudRouteName {
40
65
  create = "create",
41
66
  update = "update",
@@ -45,6 +70,18 @@ export declare enum CrudRouteName {
45
70
  count = "count",
46
71
  exists = "exists"
47
72
  }
73
+ /**
74
+ * Checks whether a route name corresponds to a standard CRUD operation.
75
+ *
76
+ * @param routeName - The route name to test.
77
+ * @returns `true` if the name matches a {@link CrudRouteName} value.
78
+ */
48
79
  export declare const isCrudRoute: (routeName: string) => boolean;
80
+ /**
81
+ * Checks whether any route name in the array is a standard CRUD operation.
82
+ *
83
+ * @param routeNames - Array of route names to test.
84
+ * @returns `true` if at least one name matches a {@link CrudRouteName} value.
85
+ */
49
86
  export declare const hasCrudRoute: (routeNames: string[]) => boolean;
50
87
  //# sourceMappingURL=deco.enum.d.ts.map
@@ -1 +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,G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AAY,aAAa;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,WAAW,MAAM,KAAG,OACa,CAAC;AAE9D;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,YAAY,MAAM,EAAE,KAAG,OACM,CAAC"}
@@ -1,4 +1,5 @@
1
1
  // ----- DecoFileType --------------------------------------
2
+ /** Enumeration of output file types generated from decorator definitions. */
2
3
  export var DecoFileType;
3
4
  (function (DecoFileType) {
4
5
  DecoFileType["doc"] = "doc";
@@ -9,32 +10,53 @@ export var DecoFileType;
9
10
  DecoFileType["zod"] = "zod";
10
11
  DecoFileType["annotations"] = "annotations";
11
12
  })(DecoFileType || (DecoFileType = {}));
13
+ /**
14
+ * Type guard that validates whether an unknown value is a valid {@link DecoFileType}.
15
+ *
16
+ * @param type - The value to check.
17
+ * @returns The narrowed {@link DecoFileType} or `null` when invalid.
18
+ */
12
19
  export const guardDecoFileType = (type) => typeof type === "string" &&
13
20
  Object.values(DecoFileType).includes(type)
14
21
  ? type
15
22
  : null;
16
23
  // ----- DecoFileExtension --------------------------------------
24
+ /** Supported file extensions for generated decorator output files. */
17
25
  export var DecoFileExtension;
18
26
  (function (DecoFileExtension) {
19
27
  DecoFileExtension["ts"] = "ts";
20
28
  DecoFileExtension["json"] = "json";
21
29
  })(DecoFileExtension || (DecoFileExtension = {}));
30
+ /**
31
+ * Type guard that validates whether an unknown value is a valid {@link DecoFileExtension}.
32
+ *
33
+ * @param type - The value to check.
34
+ * @returns The narrowed {@link DecoFileExtension} or `null` when invalid.
35
+ */
22
36
  export const guardDecoFileExtension = (type) => typeof type === "string" &&
23
37
  Object.values(DecoFileExtension).includes(type)
24
38
  ? type
25
39
  : null;
26
40
  // ----- DecoTargetType --------------------------------------
41
+ /** Target platform for generated code output. */
27
42
  export var DecoTargetType;
28
43
  (function (DecoTargetType) {
29
44
  DecoTargetType["common"] = "common";
30
45
  DecoTargetType["frontend"] = "frontend";
31
46
  DecoTargetType["backend"] = "backend";
32
47
  })(DecoTargetType || (DecoTargetType = {}));
48
+ /**
49
+ * Type guard that validates whether an unknown value is a valid {@link DecoTargetType}.
50
+ *
51
+ * @param type - The value to check.
52
+ * @returns The narrowed {@link DecoTargetType} or `null` when invalid.
53
+ */
33
54
  export const guardDecoTargetType = (type) => typeof type === "string" &&
34
55
  Object.values(DecoTargetType).includes(type)
35
56
  ? type
36
57
  : null;
37
58
  // ----- DecoPropertyType --------------------------------------
59
+ /** Discriminator values for the supported decorator property types. */
38
60
  export var DecoPropertyType;
39
61
  (function (DecoPropertyType) {
40
62
  DecoPropertyType["string"] = "string";
@@ -45,12 +67,14 @@ export var DecoPropertyType;
45
67
  DecoPropertyType["object"] = "object";
46
68
  })(DecoPropertyType || (DecoPropertyType = {}));
47
69
  // ----- DecoHeadType --------------------------------------
70
+ /** Header type classification for decorator display. */
48
71
  export var DecoHeadType;
49
72
  (function (DecoHeadType) {
50
73
  DecoHeadType["default"] = "default";
51
74
  DecoHeadType["leading"] = "leading";
52
75
  })(DecoHeadType || (DecoHeadType = {}));
53
76
  // ----- DecoDateFormat --------------------------------------
77
+ /** Supported date serialization formats for date properties. */
54
78
  export var DecoDateFormat;
55
79
  (function (DecoDateFormat) {
56
80
  DecoDateFormat["timestamp"] = "timestamp";
@@ -58,6 +82,7 @@ export var DecoDateFormat;
58
82
  DecoDateFormat["date"] = "date";
59
83
  })(DecoDateFormat || (DecoDateFormat = {}));
60
84
  // ----- CrudRouteName --------------------------------------
85
+ /** Standard CRUD operation route names. */
61
86
  export var CrudRouteName;
62
87
  (function (CrudRouteName) {
63
88
  CrudRouteName["create"] = "create";
@@ -68,6 +93,18 @@ export var CrudRouteName;
68
93
  CrudRouteName["count"] = "count";
69
94
  CrudRouteName["exists"] = "exists";
70
95
  })(CrudRouteName || (CrudRouteName = {}));
96
+ /**
97
+ * Checks whether a route name corresponds to a standard CRUD operation.
98
+ *
99
+ * @param routeName - The route name to test.
100
+ * @returns `true` if the name matches a {@link CrudRouteName} value.
101
+ */
71
102
  export const isCrudRoute = (routeName) => !!Object.values(CrudRouteName).find((r) => r === routeName);
103
+ /**
104
+ * Checks whether any route name in the array is a standard CRUD operation.
105
+ *
106
+ * @param routeNames - Array of route names to test.
107
+ * @returns `true` if at least one name matches a {@link CrudRouteName} value.
108
+ */
72
109
  export const hasCrudRoute = (routeNames) => !!routeNames.find((routeName) => isCrudRoute(routeName));
73
110
  //# sourceMappingURL=deco.enum.js.map
@@ -1 +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;IACxD,CAAC,CAAE,IAAqB;IACxB,CAAC,CAAC,IAAI,CAAC;AAEX,iEAAiE;AACjE,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,8BAAS,CAAA;IACT,kCAAa,CAAA;AACf,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,IAAa,EACa,EAAE,CAC5B,OAAO,IAAI,KAAK,QAAQ;IACxB,MAAM,CAAC,MAAM,CA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,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;;;;;GAKG;AACH,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;;;;;GAKG;AACH,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"}
@@ -1,20 +1,48 @@
1
1
  import { DecoTargetType } from "./deco.enum.js";
2
+ /**
3
+ * Shape describing all generated name variants derived from a decorator.
4
+ *
5
+ * @remarks
6
+ * Each property represents a conventional name used in code generation
7
+ * (e.g., API client, store module, Zod schema).
8
+ */
2
9
  export interface DecoNames {
10
+ /** Target platform for the generated output. */
3
11
  targetType: DecoTargetType;
12
+ /** Original base name of the decorator. */
4
13
  basename: string;
14
+ /** Lower-case variant of the base name. */
5
15
  basenameLower: string;
16
+ /** Upper-case variant of the base name. */
6
17
  basenameUpper: string;
18
+ /** Document type name. */
7
19
  doc: string;
20
+ /** Routes file name. */
8
21
  routes: string;
22
+ /** Routes constant name. */
9
23
  routesName: string;
24
+ /** API client name. */
10
25
  api: string;
26
+ /** Cloud function name. */
11
27
  func: string;
28
+ /** Store module name. */
12
29
  store: string;
30
+ /** Shape type name. */
13
31
  shape: string;
32
+ /** Zod schema name. */
14
33
  schema: string;
34
+ /** Annotations constant name. */
15
35
  annotations: string;
36
+ /** Factory/initialisation function name. */
16
37
  initialFunc: string;
38
+ /** Cloud Function entry-point name. */
17
39
  functionName: string;
18
40
  }
41
+ /**
42
+ * Array of all property keys defined on {@link DecoNames}.
43
+ *
44
+ * @remarks
45
+ * Derived at module load time from the private `decoNames` sentinel object.
46
+ */
19
47
  export declare const decoNamesProperties: (keyof DecoNames)[];
20
48
  //# sourceMappingURL=deco.names.d.ts.map