@infrab4a/connect 4.0.0-beta.26 → 4.0.0-beta.28

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 (125) hide show
  1. package/domain/catalog/models/category-collection-children.d.ts +1 -2
  2. package/domain/catalog/models/category-filter.d.ts +1 -1
  3. package/domain/catalog/models/category.d.ts +1 -2
  4. package/domain/catalog/models/filter-option.d.ts +1 -2
  5. package/domain/catalog/models/filter.d.ts +1 -2
  6. package/domain/catalog/models/kit-product.d.ts +1 -1
  7. package/domain/catalog/models/product.d.ts +1 -2
  8. package/domain/catalog/models/variant.d.ts +1 -2
  9. package/domain/generic/model/base.model.d.ts +9 -5
  10. package/domain/generic/model/types/base-model-builder.type.d.ts +4 -2
  11. package/domain/generic/model/types/identifier-model.type.d.ts +6 -5
  12. package/domain/generic/model/types/model-base-structure.type.d.ts +9 -3
  13. package/domain/generic/model/types/non-function-property-name.type.d.ts +12 -3
  14. package/domain/generic/repository/get.repository.d.ts +2 -2
  15. package/domain/generic/repository/types/repository-find-filters.type.d.ts +3 -3
  16. package/domain/generic/repository/types/repository-order-by-list.type.d.ts +2 -2
  17. package/domain/generic/repository/types/repository-update-params.type.d.ts +2 -2
  18. package/domain/location/models/address.d.ts +4 -3
  19. package/domain/shopping/models/checkout.d.ts +5 -6
  20. package/domain/shopping/models/subscription/checkout.d.ts +3 -4
  21. package/domain/users/models/subscription/subscription.d.ts +3 -3
  22. package/domain/users/models/user-address.d.ts +1 -2
  23. package/domain/users/models/user.d.ts +2 -3
  24. package/esm2020/domain/catalog/models/category-collection-children.mjs +1 -4
  25. package/esm2020/domain/catalog/models/category-filter.mjs +1 -1
  26. package/esm2020/domain/catalog/models/category.mjs +1 -4
  27. package/esm2020/domain/catalog/models/filter-option.mjs +1 -4
  28. package/esm2020/domain/catalog/models/filter.mjs +1 -4
  29. package/esm2020/domain/catalog/models/kit-product.mjs +2 -2
  30. package/esm2020/domain/catalog/models/product.mjs +1 -4
  31. package/esm2020/domain/catalog/models/variant.mjs +1 -4
  32. package/esm2020/domain/generic/model/base.model.mjs +3 -2
  33. package/esm2020/domain/generic/model/types/base-model-builder.type.mjs +1 -1
  34. package/esm2020/domain/generic/model/types/identifier-model.type.mjs +1 -1
  35. package/esm2020/domain/generic/model/types/model-base-structure.type.mjs +1 -1
  36. package/esm2020/domain/generic/model/types/non-function-property-name.type.mjs +1 -1
  37. package/esm2020/domain/generic/repository/get.repository.mjs +1 -1
  38. package/esm2020/domain/generic/repository/types/repository-find-filters.type.mjs +1 -1
  39. package/esm2020/domain/generic/repository/types/repository-order-by-list.type.mjs +1 -1
  40. package/esm2020/domain/generic/repository/types/repository-update-params.type.mjs +1 -1
  41. package/esm2020/domain/location/models/address.mjs +2 -2
  42. package/esm2020/domain/shopping/models/checkout.mjs +6 -7
  43. package/esm2020/domain/shopping/models/order.mjs +1 -1
  44. package/esm2020/domain/shopping/models/subscription/checkout.mjs +6 -6
  45. package/esm2020/domain/users/models/subscription/subscription.mjs +6 -6
  46. package/esm2020/domain/users/models/user-address.mjs +1 -1
  47. package/esm2020/domain/users/models/user.mjs +3 -3
  48. package/esm2020/domain/users/use-cases/authentication.mjs +2 -2
  49. package/esm2020/infra/elasticsearch/adapters/axios.adapter.mjs +1 -1
  50. package/esm2020/infra/firebase/firestore/mixins/with-create-firestore.mixin.mjs +2 -2
  51. package/esm2020/infra/firebase/firestore/mixins/with-crud-firestore.mixin.mjs +1 -1
  52. package/esm2020/infra/firebase/firestore/mixins/with-delete-firestore.mixin.mjs +1 -1
  53. package/esm2020/infra/firebase/firestore/mixins/with-find-firestore.mixin.mjs +3 -3
  54. package/esm2020/infra/firebase/firestore/mixins/with-firestore.mixin.mjs +17 -2
  55. package/esm2020/infra/firebase/firestore/mixins/with-get-firestore.mixin.mjs +1 -1
  56. package/esm2020/infra/firebase/firestore/mixins/with-helpers.mixin.mjs +1 -1
  57. package/esm2020/infra/firebase/firestore/mixins/with-sub-collection.mixin.mjs +1 -1
  58. package/esm2020/infra/firebase/firestore/mixins/with-update-firestore.mixin.mjs +1 -1
  59. package/esm2020/infra/firebase/firestore/types/firestore-sub.repository.type.mjs +1 -1
  60. package/esm2020/infra/firebase/firestore/types/firestore.helpers.type.mjs +1 -1
  61. package/esm2020/infra/firebase/firestore/types/firestore.repository.type.mjs +1 -1
  62. package/esm2020/infra/hasura-graphql/mixins/helpers/attribute-option.helper.mjs +1 -1
  63. package/esm2020/infra/hasura-graphql/mixins/helpers/bind-filter-query.helper.mjs +5 -4
  64. package/esm2020/infra/hasura-graphql/mixins/helpers/filter-option.helper.mjs +1 -1
  65. package/esm2020/infra/hasura-graphql/mixins/helpers/graphql-field.helper.mjs +25 -20
  66. package/esm2020/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.mjs +5 -3
  67. package/esm2020/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.mjs +1 -1
  68. package/esm2020/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.mjs +5 -3
  69. package/esm2020/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.mjs +21 -4
  70. package/esm2020/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.mjs +5 -3
  71. package/esm2020/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.mjs +12 -5
  72. package/esm2020/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.mjs +7 -5
  73. package/esm2020/infra/hasura-graphql/types/graphql.repository.type.mjs +1 -1
  74. package/esm2020/infra/hasura-graphql/types/hasura-graphql-fields.type.mjs +1 -1
  75. package/esm2020/utils/decorators/debug.class.decorator.mjs +7 -0
  76. package/esm2020/utils/decorators/index.mjs +3 -0
  77. package/esm2020/utils/decorators/trace.method.decorator.mjs +81 -0
  78. package/esm2020/utils/helpers/class-name.helper.mjs +15 -0
  79. package/esm2020/utils/helpers/debug-decorator.helper.mjs +18 -0
  80. package/esm2020/utils/helpers/debug.helper.mjs +150 -0
  81. package/esm2020/utils/helpers/index.mjs +5 -0
  82. package/esm2020/utils/helpers/reflect.helper.mjs +165 -0
  83. package/esm2020/utils/index.mjs +6 -3
  84. package/esm2020/utils/log.utils.mjs +9 -0
  85. package/fesm2015/infrab4a-connect.mjs +546 -82
  86. package/fesm2015/infrab4a-connect.mjs.map +1 -1
  87. package/fesm2020/infrab4a-connect.mjs +550 -82
  88. package/fesm2020/infrab4a-connect.mjs.map +1 -1
  89. package/infra/elasticsearch/adapters/axios.adapter.d.ts +2 -2
  90. package/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +2 -2
  91. package/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +1 -1
  92. package/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +2 -2
  93. package/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +2 -2
  94. package/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +2 -2
  95. package/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +2 -2
  96. package/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +2 -2
  97. package/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +2 -2
  98. package/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +3 -3
  99. package/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +3 -3
  100. package/infra/firebase/firestore/types/firestore.helpers.type.d.ts +5 -5
  101. package/infra/firebase/firestore/types/firestore.repository.type.d.ts +1 -1
  102. package/infra/hasura-graphql/mixins/helpers/attribute-option.helper.d.ts +9 -3
  103. package/infra/hasura-graphql/mixins/helpers/bind-filter-query.helper.d.ts +5 -5
  104. package/infra/hasura-graphql/mixins/helpers/filter-option.helper.d.ts +4 -2
  105. package/infra/hasura-graphql/mixins/helpers/graphql-field.helper.d.ts +8 -5
  106. package/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.d.ts +2 -1
  107. package/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.d.ts +1 -1
  108. package/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.d.ts +1 -1
  109. package/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +11 -9
  110. package/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.d.ts +7 -6
  111. package/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.d.ts +2 -2
  112. package/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.d.ts +2 -2
  113. package/infra/hasura-graphql/types/graphql.repository.type.d.ts +7 -5
  114. package/infra/hasura-graphql/types/hasura-graphql-fields.type.d.ts +7 -3
  115. package/package.json +2 -1
  116. package/utils/decorators/debug.class.decorator.d.ts +2 -0
  117. package/utils/decorators/index.d.ts +2 -0
  118. package/utils/decorators/trace.method.decorator.d.ts +14 -0
  119. package/utils/helpers/class-name.helper.d.ts +3 -0
  120. package/utils/helpers/debug-decorator.helper.d.ts +9 -0
  121. package/utils/helpers/debug.helper.d.ts +60 -0
  122. package/utils/helpers/index.d.ts +4 -0
  123. package/utils/helpers/reflect.helper.d.ts +50 -0
  124. package/utils/index.d.ts +5 -2
  125. package/utils/log.utils.d.ts +7 -0
@@ -0,0 +1,50 @@
1
+ import 'reflect-metadata';
2
+ declare type Dictionary<T> = {
3
+ [key: string]: T;
4
+ };
5
+ export declare type MetaArgs = {
6
+ key: keyof MetaStorage | string;
7
+ target: any;
8
+ property?: string | symbol;
9
+ own?: boolean;
10
+ propertyDescriptor?: PropertyDescriptor;
11
+ };
12
+ export declare type MetaValueArgs<T = any> = MetaArgs & {
13
+ value: T;
14
+ };
15
+ declare type MetaProperties<T = any> = Dictionary<T>;
16
+ declare type MetaTargets = Dictionary<MetaProperties>;
17
+ declare type MetaKeys = Dictionary<MetaTargets>;
18
+ declare type MetaStorage = {
19
+ value?: any;
20
+ object?: any;
21
+ values?: MetaKeys;
22
+ } & Record<string, any>;
23
+ export declare class ReflectHelper {
24
+ static get items(): MetaStorage;
25
+ static get keys(): Array<string>;
26
+ static has(key: keyof MetaStorage, target?: any, property?: string | symbol): boolean;
27
+ static get<T = any>({ key, target, property, own }: MetaArgs): Array<T>;
28
+ static first<T = any>({ key, target, property, own }: MetaArgs): T;
29
+ static last<T = any>({ key, target, property, own }: MetaArgs): T;
30
+ static set<T = any>({ key, target, property, value, propertyDescriptor }: MetaValueArgs<T>): void;
31
+ static add<T = any>({ key, target, property, value, propertyDescriptor }: MetaValueArgs<T>): void;
32
+ static all<T = any>({ key }: Partial<MetaArgs>): Array<MetaValueArgs<T>>;
33
+ static allFrom(key: string, target: any): any;
34
+ static allValuesFrom(key: string, target: any, property: any): any;
35
+ static delete({ key, target, property }: MetaArgs): boolean;
36
+ static clear(key?: string): void;
37
+ static getType({ target, propertyKey }: {
38
+ target: string;
39
+ propertyKey: string;
40
+ }): any;
41
+ static getReturntype({ target, propertyKey }: {
42
+ target: string;
43
+ propertyKey: string;
44
+ }): any;
45
+ static getAllMethods(target: any): string[];
46
+ private static _items;
47
+ private static put;
48
+ private static remove;
49
+ }
50
+ export {};
package/utils/index.d.ts CHANGED
@@ -1,10 +1,13 @@
1
1
  import { add, addBusinessDays, addDays, addMonths, addYears, Duration, endOfDay, format, formatISO9075, parseISO, startOfDay, sub } from 'date-fns';
2
- import { chunk, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set } from 'lodash';
2
+ import { chunk, each, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set, unset } from 'lodash';
3
3
  export declare type DateDuration = Duration;
4
+ export * from './decorators';
4
5
  export * from './get';
6
+ export * from './helpers';
5
7
  export * from './is';
6
8
  export * from './is-uuid';
9
+ export * from './log.utils';
7
10
  export * from './mixins';
8
11
  export * from './parse-datetime';
9
12
  export * from './types';
10
- export { add, addDays, addBusinessDays, addMonths, addYears, chunk, endOfDay, format, formatISO9075, isBoolean, isDate, isEmpty, isInteger, isNil, isNaN, isNumber, isObject, isString, parseISO, now, omit, pick, set, startOfDay, sub, };
13
+ export { add, addDays, addBusinessDays, addMonths, addYears, chunk, each, endOfDay, format, formatISO9075, isBoolean, isDate, isEmpty, isInteger, isNil, isNaN, isNumber, isObject, isString, parseISO, now, omit, pick, set, startOfDay, sub, unset, };
@@ -0,0 +1,7 @@
1
+ import { Debugger } from 'debug';
2
+ export declare enum DebugNamespaces {
3
+ ROOT = "connect",
4
+ TRACE = "trace",
5
+ ERROR = "error"
6
+ }
7
+ export declare const Logger: Debugger;