@mxpicture/gcp-functions-common 0.2.70 → 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 -145
  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
@@ -1,80 +0,0 @@
1
- import { MetaArrayOptions, MetaBooleanOptions, MetaCreateTimeOptions, MetaDateOptions, MetaKeyOptions, MetaNumberOptions, MetaObjectOptions, MetaPropertyBaseOptions, MetaStringOptions, MetaUpdateTimeOptions, WithoutBase, WithoutType } from "../types/types.meta.js";
2
- import { MetaPropertyType } from "./meta.enum.js";
3
- export type MetaPropertyDecoratorMap<DEF = any> = Record<MetaPropertyDecorator, DEF>;
4
- export type WithPropertyDecoratorMap<T, R extends MetaPropertyDecoratorMap<T>> = R;
5
- export declare enum MetaPropertyDecorator {
6
- MetaKey = "MetaKey",
7
- MetaCreateTime = "MetaCreateTime",
8
- MetaUpdateTime = "MetaUpdateTime",
9
- MetaNumber = "MetaNumber",
10
- MetaString = "MetaString",
11
- MetaArray = "MetaArray",
12
- MetaObject = "MetaObject",
13
- MetaDate = "MetaDate",
14
- MetaBoolean = "MetaBoolean"
15
- }
16
- export declare const metaPropertyOptionsMap: MetaPropertyOptionsMap;
17
- export type MetaPropertyOptionsMap = WithPropertyDecoratorMap<MetaPropertyType, {
18
- [MetaPropertyDecorator.MetaKey]: MetaPropertyType.key;
19
- [MetaPropertyDecorator.MetaCreateTime]: MetaPropertyType.createTime;
20
- [MetaPropertyDecorator.MetaUpdateTime]: MetaPropertyType.updateTime;
21
- [MetaPropertyDecorator.MetaNumber]: MetaPropertyType.number;
22
- [MetaPropertyDecorator.MetaString]: MetaPropertyType.string;
23
- [MetaPropertyDecorator.MetaArray]: MetaPropertyType.array;
24
- [MetaPropertyDecorator.MetaObject]: MetaPropertyType.object;
25
- [MetaPropertyDecorator.MetaDate]: MetaPropertyType.date;
26
- [MetaPropertyDecorator.MetaBoolean]: MetaPropertyType.boolean;
27
- }>;
28
- export type MetaPropertyOptionsBase = WithPropertyDecoratorMap<MetaPropertyBaseOptions, {
29
- [MetaPropertyDecorator.MetaKey]: MetaKeyOptions;
30
- [MetaPropertyDecorator.MetaCreateTime]: MetaCreateTimeOptions;
31
- [MetaPropertyDecorator.MetaUpdateTime]: MetaUpdateTimeOptions;
32
- [MetaPropertyDecorator.MetaNumber]: MetaNumberOptions;
33
- [MetaPropertyDecorator.MetaString]: MetaStringOptions;
34
- [MetaPropertyDecorator.MetaArray]: MetaArrayOptions;
35
- [MetaPropertyDecorator.MetaObject]: MetaObjectOptions;
36
- [MetaPropertyDecorator.MetaDate]: MetaDateOptions;
37
- [MetaPropertyDecorator.MetaBoolean]: MetaBooleanOptions;
38
- }>;
39
- export type MetaPropertyOptions = Partial<WithPropertyDecoratorMap<WithoutBase<MetaPropertyBaseOptions>, {
40
- [MetaPropertyDecorator.MetaKey]: WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaKey]>;
41
- [MetaPropertyDecorator.MetaCreateTime]: WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaCreateTime]>;
42
- [MetaPropertyDecorator.MetaUpdateTime]: WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaUpdateTime]>;
43
- [MetaPropertyDecorator.MetaNumber]: WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaNumber]>;
44
- [MetaPropertyDecorator.MetaString]: WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaString]>;
45
- [MetaPropertyDecorator.MetaArray]: WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaArray]>;
46
- [MetaPropertyDecorator.MetaObject]: WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaObject]>;
47
- [MetaPropertyDecorator.MetaDate]: WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaDate]>;
48
- [MetaPropertyDecorator.MetaBoolean]: WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaBoolean]>;
49
- }>>;
50
- export type MetaPropertyOptionsWoType = Partial<WithPropertyDecoratorMap<WithoutType<WithoutBase<MetaPropertyBaseOptions>>, {
51
- [MetaPropertyDecorator.MetaKey]: WithoutType<WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaKey]>>;
52
- [MetaPropertyDecorator.MetaCreateTime]: WithoutType<WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaCreateTime]>>;
53
- [MetaPropertyDecorator.MetaUpdateTime]: WithoutType<WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaUpdateTime]>>;
54
- [MetaPropertyDecorator.MetaNumber]: WithoutType<WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaNumber]>>;
55
- [MetaPropertyDecorator.MetaString]: WithoutType<WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaString]>>;
56
- [MetaPropertyDecorator.MetaArray]: WithoutType<WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaArray]>>;
57
- [MetaPropertyDecorator.MetaObject]: WithoutType<WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaObject]>>;
58
- [MetaPropertyDecorator.MetaDate]: WithoutType<WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaDate]>>;
59
- [MetaPropertyDecorator.MetaBoolean]: WithoutType<WithoutBase<MetaPropertyOptionsBase[MetaPropertyDecorator.MetaBoolean]>>;
60
- }>>;
61
- export interface MetaPropertyData extends MetaPropertyBaseOptions, MetaPropertyOptions {
62
- propertyKey: string;
63
- propertyType: string;
64
- }
65
- export interface MetaPropertyDataWoType extends MetaPropertyBaseOptions, MetaPropertyOptionsWoType {
66
- propertyKey: string;
67
- propertyType: string;
68
- }
69
- export declare const stripMetaPropertyData: (data: MetaPropertyData) => MetaPropertyData;
70
- export declare const stripMetaPropertyDataWoType: (data: MetaPropertyDataWoType) => MetaPropertyDataWoType;
71
- export declare const castMetaPropertyNumber: (prop: MetaPropertyData) => MetaNumberOptions | null;
72
- export declare const castMetaPropertyKey: (prop: MetaPropertyData) => MetaKeyOptions | null;
73
- export declare const castMetaPropertyCreateTime: (prop: MetaPropertyData) => MetaCreateTimeOptions | null;
74
- export declare const castMetaPropertyUpdateTime: (prop: MetaPropertyData) => MetaUpdateTimeOptions | null;
75
- export declare const castMetaPropertyString: (prop: MetaPropertyData) => MetaStringOptions | null;
76
- export declare const castMetaPropertyArray: (prop: MetaPropertyData) => MetaArrayOptions | null;
77
- export declare const castMetaPropertyObject: (prop: MetaPropertyData) => MetaObjectOptions | null;
78
- export declare const castMetaPropertyDate: (prop: MetaPropertyData) => MetaDateOptions | null;
79
- export declare const castMetaPropertyBoolean: (prop: MetaPropertyData) => MetaBooleanOptions | null;
80
- //# sourceMappingURL=meta.properties.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.properties.d.ts","sourceRoot":"","sources":["../../src/meta/meta.properties.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,WAAW,EACX,WAAW,EACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,MAAM,MAAM,wBAAwB,CAAC,GAAG,GAAG,GAAG,IAAI,MAAM,CACtD,qBAAqB,EACrB,GAAG,CACJ,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAClC,CAAC,EACD,CAAC,SAAS,wBAAwB,CAAC,CAAC,CAAC,IACnC,CAAC,CAAC;AAEN,oBAAY,qBAAqB;IAC/B,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,SAAS,cAAc;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AC,WAAW,CAAC,EAAE,WAAW,CAC9C,WAAW,CAAC,uBAAuB,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC,CACxE,CAAC;CACH,CACF,CACF,CAAC;AAEF,MAAM,WAAW,gBACf,SAAQ,uBAAuB,EAAE,mBAAmB;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBACf,SAAQ,uBAAuB,EAAE,yBAAyB;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AA8BD,eAAO,MAAM,qBAAqB,GAAI,MAAM,gBAAgB,qBACD,CAAC;AA8B5D,eAAO,MAAM,2BAA2B,GAAI,MAAM,sBAAsB,2BACD,CAAC;AAExE,eAAO,MAAM,sBAAsB,GAAI,MAAM,gBAAgB,6BACe,CAAC;AAC7E,eAAO,MAAM,mBAAmB,GAAI,MAAM,gBAAgB,0BACY,CAAC;AACvE,eAAO,MAAM,0BAA0B,GAAI,MAAM,gBAAgB,iCAGvD,CAAC;AACX,eAAO,MAAM,0BAA0B,GAAI,MAAM,gBAAgB,iCAGvD,CAAC;AACX,eAAO,MAAM,sBAAsB,GAAI,MAAM,gBAAgB,6BACe,CAAC;AAC7E,eAAO,MAAM,qBAAqB,GAAI,MAAM,gBAAgB,4BACc,CAAC;AAC3E,eAAO,MAAM,sBAAsB,GAAI,MAAM,gBAAgB,6BACe,CAAC;AAC7E,eAAO,MAAM,oBAAoB,GAAI,MAAM,gBAAgB,2BACa,CAAC;AACzE,eAAO,MAAM,uBAAuB,GAAI,MAAM,gBAAgB,8BACgB,CAAC"}
@@ -1,91 +0,0 @@
1
- import { stripObject } from "../helper/helper.object.js";
2
- import { MetaPropertyType } from "./meta.enum.js";
3
- export var MetaPropertyDecorator;
4
- (function (MetaPropertyDecorator) {
5
- MetaPropertyDecorator["MetaKey"] = "MetaKey";
6
- MetaPropertyDecorator["MetaCreateTime"] = "MetaCreateTime";
7
- MetaPropertyDecorator["MetaUpdateTime"] = "MetaUpdateTime";
8
- MetaPropertyDecorator["MetaNumber"] = "MetaNumber";
9
- MetaPropertyDecorator["MetaString"] = "MetaString";
10
- MetaPropertyDecorator["MetaArray"] = "MetaArray";
11
- MetaPropertyDecorator["MetaObject"] = "MetaObject";
12
- MetaPropertyDecorator["MetaDate"] = "MetaDate";
13
- MetaPropertyDecorator["MetaBoolean"] = "MetaBoolean";
14
- })(MetaPropertyDecorator || (MetaPropertyDecorator = {}));
15
- export const metaPropertyOptionsMap = {
16
- [MetaPropertyDecorator.MetaKey]: MetaPropertyType.key,
17
- [MetaPropertyDecorator.MetaCreateTime]: MetaPropertyType.createTime,
18
- [MetaPropertyDecorator.MetaUpdateTime]: MetaPropertyType.updateTime,
19
- [MetaPropertyDecorator.MetaNumber]: MetaPropertyType.number,
20
- [MetaPropertyDecorator.MetaString]: MetaPropertyType.string,
21
- [MetaPropertyDecorator.MetaArray]: MetaPropertyType.array,
22
- [MetaPropertyDecorator.MetaObject]: MetaPropertyType.object,
23
- [MetaPropertyDecorator.MetaDate]: MetaPropertyType.date,
24
- [MetaPropertyDecorator.MetaBoolean]: MetaPropertyType.boolean,
25
- };
26
- const metaPropertyData = {
27
- propertyKey: undefined,
28
- propertyType: undefined,
29
- type: undefined,
30
- title: undefined,
31
- description: undefined,
32
- optional: undefined,
33
- editable: undefined,
34
- sortable: undefined,
35
- filterable: undefined,
36
- hidden: undefined,
37
- width: undefined,
38
- depandPopin: undefined,
39
- order: undefined,
40
- [MetaPropertyDecorator.MetaKey]: undefined,
41
- [MetaPropertyDecorator.MetaCreateTime]: undefined,
42
- [MetaPropertyDecorator.MetaUpdateTime]: undefined,
43
- [MetaPropertyDecorator.MetaNumber]: undefined,
44
- [MetaPropertyDecorator.MetaString]: undefined,
45
- [MetaPropertyDecorator.MetaArray]: undefined,
46
- [MetaPropertyDecorator.MetaObject]: undefined,
47
- [MetaPropertyDecorator.MetaDate]: undefined,
48
- [MetaPropertyDecorator.MetaBoolean]: undefined,
49
- };
50
- const metaPropertyDataKeys = Object.keys(metaPropertyData);
51
- export const stripMetaPropertyData = (data) => stripObject(data, metaPropertyDataKeys);
52
- const metaPropertyDataWoType = {
53
- propertyKey: undefined,
54
- propertyType: undefined,
55
- type: undefined,
56
- title: undefined,
57
- description: undefined,
58
- optional: undefined,
59
- editable: undefined,
60
- sortable: undefined,
61
- filterable: undefined,
62
- hidden: undefined,
63
- width: undefined,
64
- depandPopin: undefined,
65
- order: undefined,
66
- [MetaPropertyDecorator.MetaKey]: undefined,
67
- [MetaPropertyDecorator.MetaCreateTime]: undefined,
68
- [MetaPropertyDecorator.MetaUpdateTime]: undefined,
69
- [MetaPropertyDecorator.MetaNumber]: undefined,
70
- [MetaPropertyDecorator.MetaString]: undefined,
71
- [MetaPropertyDecorator.MetaArray]: undefined,
72
- [MetaPropertyDecorator.MetaObject]: undefined,
73
- [MetaPropertyDecorator.MetaDate]: undefined,
74
- [MetaPropertyDecorator.MetaBoolean]: undefined,
75
- };
76
- const metaPropertyDataWoTypeKeys = Object.keys(metaPropertyDataWoType);
77
- export const stripMetaPropertyDataWoType = (data) => stripObject(data, metaPropertyDataWoTypeKeys);
78
- export const castMetaPropertyNumber = (prop) => prop.type === MetaPropertyType.number ? prop : null;
79
- export const castMetaPropertyKey = (prop) => prop.type === MetaPropertyType.key ? prop : null;
80
- export const castMetaPropertyCreateTime = (prop) => prop.type === MetaPropertyType.createTime
81
- ? prop
82
- : null;
83
- export const castMetaPropertyUpdateTime = (prop) => prop.type === MetaPropertyType.updateTime
84
- ? prop
85
- : null;
86
- export const castMetaPropertyString = (prop) => prop.type === MetaPropertyType.string ? prop : null;
87
- export const castMetaPropertyArray = (prop) => prop.type === MetaPropertyType.array ? prop : null;
88
- export const castMetaPropertyObject = (prop) => prop.type === MetaPropertyType.object ? prop : null;
89
- export const castMetaPropertyDate = (prop) => prop.type === MetaPropertyType.date ? prop : null;
90
- export const castMetaPropertyBoolean = (prop) => prop.type === MetaPropertyType.boolean ? prop : null;
91
- //# sourceMappingURL=meta.properties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.properties.js","sourceRoot":"","sources":["../../src/meta/meta.properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAezD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAalD,MAAM,CAAN,IAAY,qBAUX;AAVD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,0DAAiC,CAAA;IACjC,0DAAiC,CAAA;IACjC,kDAAyB,CAAA;IACzB,kDAAyB,CAAA;IACzB,gDAAuB,CAAA;IACvB,kDAAyB,CAAA;IACzB,8CAAqB,CAAA;IACrB,oDAA2B,CAAA;AAC7B,CAAC,EAVW,qBAAqB,KAArB,qBAAqB,QAUhC;AAED,MAAM,CAAC,MAAM,sBAAsB,GAA2B;IAC5D,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAC,GAAG;IACrD,CAAC,qBAAqB,CAAC,cAAc,CAAC,EAAE,gBAAgB,CAAC,UAAU;IACnE,CAAC,qBAAqB,CAAC,cAAc,CAAC,EAAE,gBAAgB,CAAC,UAAU;IACnE,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC,MAAM;IAC3D,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC,MAAM;IAC3D,CAAC,qBAAqB,CAAC,SAAS,CAAC,EAAE,gBAAgB,CAAC,KAAK;IACzD,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC,MAAM;IAC3D,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAC,IAAI;IACvD,CAAC,qBAAqB,CAAC,WAAW,CAAC,EAAE,gBAAgB,CAAC,OAAO;CAC9D,CAAC;AAqHF,MAAM,gBAAgB,GAA+B;IACnD,WAAW,EAAE,SA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AC,IAAI,CAAC;AACX,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,IAAsB,EAAE,EAAE,CACnE,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,UAAU;IACvC,CAAC,CAAE,IAA8B;IACjC,CAAC,CAAC,IAAI,CAAC;AACX,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,IAAsB,EAAE,EAAE,CAC/D,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAE,IAA0B,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAAsB,EAAE,EAAE,CAC9D,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAE,IAAyB,CAAC,CAAC,CAAC,IAAI,CAAC;AAC3E,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,IAAsB,EAAE,EAAE,CAC/D,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAE,IAA0B,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7E,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAsB,EAAE,EAAE,CAC7D,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAE,IAAwB,CAAC,CAAC,CAAC,IAAI,CAAC;AACzE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,IAAsB,EAAE,EAAE,CAChE,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAE,IAA2B,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -1,145 +0,0 @@
1
- /**
2
- * TypeScript decorators for generating Zod schemas from classes
3
- *
4
- * Example usage:
5
- *
6
- * @Interface({title: "Medication"})
7
- * export class MedicationDoc {
8
- * @PropString()
9
- * ingredient!: string;
10
- * @PropNumber({title: "Dosage mg", min: 0, max: 50})
11
- * dosageMg!: number;
12
- * tradeNames!: string[];
13
- * }
14
- */
15
- import { MetaPropertyType, MetaHeadType, MetaTargetType, MetaDateFormat, MetaFacetItemType } from "../meta/meta.enum.js";
16
- import { MetaHeadData } from "../meta/meta.main.js";
17
- export interface MetaRouteParams {
18
- requestType: string;
19
- responseType: string;
20
- }
21
- export interface MetaHeadBaseOptions {
22
- type: MetaHeadType;
23
- title: string;
24
- }
25
- export interface MetaInterfaceOptions extends MetaHeadBaseOptions {
26
- type: MetaHeadType.interface;
27
- }
28
- export interface MetaImport {
29
- props: string[];
30
- path: string;
31
- isType?: boolean;
32
- }
33
- export interface MetaFacetItemParams<T> extends Partial<Record<MetaFacetItemType, T>> {
34
- [MetaFacetItemType.facet]?: T;
35
- [MetaFacetItemType.lineItem]?: T;
36
- }
37
- export interface MetaHeadInterfaceOptions extends MetaHeadBaseOptions {
38
- type: MetaHeadType.mainInterface;
39
- namespace?: string;
40
- routes: Record<string, MetaRouteParams> | {
41
- crud?: boolean;
42
- };
43
- additionalImports?: MetaImport[];
44
- }
45
- export interface MetaPropertyBaseOptions {
46
- type: MetaPropertyType;
47
- title?: string | MetaFacetItemParams<string>;
48
- description?: string | MetaFacetItemParams<string>;
49
- optional?: boolean;
50
- editable?: boolean;
51
- sortable?: boolean;
52
- filterable?: boolean;
53
- hidden?: boolean | MetaFacetItemParams<boolean>;
54
- width?: string;
55
- depandPopin?: boolean;
56
- order?: number | MetaFacetItemParams<number>;
57
- }
58
- export declare const withoutBaseIgnoreValues: readonly ["title", "description", "optional"];
59
- export type WithoutBaseIgnore = (typeof withoutBaseIgnoreValues)[number];
60
- export type WithoutBase<T extends MetaPropertyBaseOptions | MetaHeadBaseOptions> = Omit<T, WithoutBaseIgnore>;
61
- export declare const withoutTypeIgnoreValues: readonly ["type"];
62
- export type WithoutTypeIgnore = (typeof withoutTypeIgnoreValues)[number];
63
- export type WithoutType<T extends MetaPropertyBaseOptions | MetaHeadBaseOptions> = Omit<T, WithoutTypeIgnore>;
64
- export declare const withoutEditableIgnoreValues: readonly ["type", "editable"];
65
- export type WithoutEditableIgnore = (typeof withoutEditableIgnoreValues)[number];
66
- export type WithoutEditable<T extends MetaPropertyBaseOptions | MetaHeadBaseOptions> = Omit<T, WithoutEditableIgnore>;
67
- export interface MetaNumberOptions extends MetaPropertyBaseOptions {
68
- type: MetaPropertyType.number;
69
- default?: number;
70
- min?: number;
71
- minInclusive?: boolean;
72
- max?: number;
73
- maxInclusive?: boolean;
74
- multipleOf?: number;
75
- fractionDigits?: number;
76
- }
77
- export interface MetaKeyOptions extends MetaPropertyBaseOptions {
78
- type: MetaPropertyType.key;
79
- default?: string;
80
- }
81
- export interface MetaCreateTimeOptions extends MetaPropertyBaseOptions {
82
- type: MetaPropertyType.createTime;
83
- dateFormat?: MetaDateFormat;
84
- }
85
- export interface MetaUpdateTimeOptions extends MetaPropertyBaseOptions {
86
- type: MetaPropertyType.updateTime;
87
- dateFormat?: MetaDateFormat;
88
- }
89
- export interface MetaStringOptions extends MetaPropertyBaseOptions {
90
- type: MetaPropertyType.string;
91
- default?: string;
92
- minLength?: number;
93
- maxLength?: number;
94
- exactLength?: number;
95
- regex?: string;
96
- }
97
- export interface MetaArrayOptions extends MetaPropertyBaseOptions {
98
- type: MetaPropertyType.array;
99
- itemType?: MetaPropertyType;
100
- minLength?: number;
101
- maxLength?: number;
102
- exactLength?: number;
103
- }
104
- export interface MetaObjectOptions extends MetaPropertyBaseOptions {
105
- type: MetaPropertyType.object;
106
- }
107
- export interface MetaDateOptions extends MetaPropertyBaseOptions {
108
- type: MetaPropertyType.date;
109
- dateFormat?: MetaDateFormat;
110
- }
111
- export interface MetaBooleanOptions extends MetaPropertyBaseOptions {
112
- type: MetaPropertyType.boolean;
113
- default?: boolean;
114
- }
115
- export type MetaNamesMap = Record<string, string>;
116
- export type WithMap<R extends MetaNamesMap> = R;
117
- export type MetaNamesNoTarget = WithMap<{
118
- basename: string;
119
- basenameLower: string;
120
- basenameUpper: string;
121
- template: string;
122
- doc: string;
123
- routes: string;
124
- api: string;
125
- func: string;
126
- store: string;
127
- shape: string;
128
- schema: string;
129
- annotations: string;
130
- initialFunc: string;
131
- functionName: string;
132
- }>;
133
- export interface MetaNames extends MetaNamesNoTarget {
134
- targetType: MetaTargetType;
135
- }
136
- export type MetaNamesFromMap<R extends MetaNamesNoTarget> = {
137
- [K in keyof R]: R[K];
138
- };
139
- export declare const metaNameProperties: (keyof MetaNamesNoTarget)[];
140
- export interface MetaFile {
141
- templateFilePath: string;
142
- templateRepoFilePath: string;
143
- headers: MetaHeadData[];
144
- }
145
- //# sourceMappingURL=types.meta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.meta.d.ts","sourceRoot":"","sources":["../../src/types/types.meta.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAC/D,IAAI,EAAE,YAAY,CAAC,SAAS,CAAC;CAC9B;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,CAAE,SAAQ,OAAO,CACrD,MAAM,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAC7B;IACC,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAA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C;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,CAAC,CAAC;AAEH,MAAM,WAAW,SAAU,SAAQ,iBAAiB;IAClD,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,iBAAiB,IAAI;KACzD,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAC;AAmBF,eAAO,MAAM,kBAAkB,EAEf,CAAC,MAAM,iBAAiB,CAAC,EAAE,CAAC;AAG5C,MAAM,WAAW,QAAQ;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB"}
@@ -1,43 +0,0 @@
1
- /**
2
- * TypeScript decorators for generating Zod schemas from classes
3
- *
4
- * Example usage:
5
- *
6
- * @Interface({title: "Medication"})
7
- * export class MedicationDoc {
8
- * @PropString()
9
- * ingredient!: string;
10
- * @PropNumber({title: "Dosage mg", min: 0, max: 50})
11
- * dosageMg!: number;
12
- * tradeNames!: string[];
13
- * }
14
- */
15
- import { MetaFacetItemType, } from "../meta/meta.enum.js";
16
- // ----- WithoutBase ----------------------------------------------
17
- export const withoutBaseIgnoreValues = [
18
- "title",
19
- "description",
20
- "optional",
21
- ];
22
- // ----- WithoutType ----------------------------------------------
23
- export const withoutTypeIgnoreValues = ["type"];
24
- // ----- WithoutEditable ----------------------------------------------
25
- export const withoutEditableIgnoreValues = ["type", "editable"];
26
- const metaNameDummy = {
27
- basename: "",
28
- basenameLower: "",
29
- basenameUpper: "",
30
- template: "",
31
- doc: "",
32
- routes: "",
33
- api: "",
34
- func: "",
35
- store: "",
36
- shape: "",
37
- schema: "",
38
- annotations: "",
39
- initialFunc: "",
40
- functionName: "",
41
- };
42
- export const metaNameProperties = Object.keys(metaNameDummy);
43
- //# sourceMappingURL=types.meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.meta.js","sourceRoot":"","sources":["../../src/types/types.meta.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAKL,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAmD9B,mEAAmE;AACnE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,OAAO;IACP,aAAa;IACb,UAAU;CACF,CAAC;AAOX,mEAAmE;AACnE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,MAAM,CAAU,CAAC;AAOzD,uEAAuE;AACvE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,MAAM,EAAE,UAAU,CAAU,CAAC;AAwGzE,MAAM,aAAa,GAAwC;IACzD,QAAQ,EAAE,EAAE;IACZ,aAAa,EAAE,EAAE;IACjB,aAAa,EAAE,EAAE;IACjB,QAAQ,EAAE,EAAE;IACZ,GAAG,EAAE,EAAE;IACP,MAAM,EAAE,EAAE;IACV,GAAG,EAAE,EAAE;IACP,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,WAAW,EAAE,EAAE;IACf,WAAW,EAAE,EAAE;IACf,YAAY,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,IAAI,CAC3C,aAAa,CAC4B,CAAC"}