@infrab4a/connect 4.0.0-beta.25 → 4.0.0-beta.27

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 (152) hide show
  1. package/domain/catalog/helpers/RoundProdutcPriceHelper.d.ts +4 -0
  2. package/domain/catalog/helpers/index.d.ts +1 -0
  3. package/domain/catalog/index.d.ts +1 -0
  4. package/domain/catalog/models/category-collection-children.d.ts +13 -0
  5. package/domain/catalog/models/category-filter.d.ts +1 -1
  6. package/domain/catalog/models/category.d.ts +3 -3
  7. package/domain/catalog/models/filter-option.d.ts +1 -2
  8. package/domain/catalog/models/filter.d.ts +1 -2
  9. package/domain/catalog/models/index.d.ts +1 -0
  10. package/domain/catalog/models/kit-product.d.ts +1 -1
  11. package/domain/catalog/models/product.d.ts +1 -2
  12. package/domain/catalog/models/types/category-product.d.ts +4 -0
  13. package/domain/catalog/models/types/index.d.ts +1 -0
  14. package/domain/catalog/models/variant.d.ts +1 -2
  15. package/domain/catalog/repositories/category-collection-children.repository.d.ts +4 -0
  16. package/domain/catalog/repositories/category.repository.d.ts +1 -0
  17. package/domain/catalog/repositories/index.d.ts +1 -0
  18. package/domain/generic/model/base.model.d.ts +9 -5
  19. package/domain/generic/model/types/base-model-builder.type.d.ts +4 -2
  20. package/domain/generic/model/types/identifier-model.type.d.ts +6 -5
  21. package/domain/generic/model/types/model-base-structure.type.d.ts +9 -3
  22. package/domain/generic/model/types/non-function-property-name.type.d.ts +12 -3
  23. package/domain/generic/repository/get.repository.d.ts +2 -2
  24. package/domain/generic/repository/types/repository-find-filters.type.d.ts +3 -3
  25. package/domain/generic/repository/types/repository-order-by-list.type.d.ts +2 -2
  26. package/domain/generic/repository/types/repository-update-params.type.d.ts +2 -2
  27. package/domain/location/models/address.d.ts +5 -3
  28. package/domain/shopping/models/checkout.d.ts +5 -6
  29. package/domain/shopping/models/subscription/checkout.d.ts +3 -4
  30. package/domain/users/models/subscription/subscription.d.ts +3 -3
  31. package/domain/users/models/user-address.d.ts +1 -2
  32. package/domain/users/models/user.d.ts +2 -3
  33. package/esm2020/domain/catalog/helpers/RoundProdutcPriceHelper.mjs +15 -0
  34. package/esm2020/domain/catalog/helpers/index.mjs +2 -0
  35. package/esm2020/domain/catalog/index.mjs +2 -1
  36. package/esm2020/domain/catalog/models/category-collection-children.mjs +13 -0
  37. package/esm2020/domain/catalog/models/category-filter.mjs +1 -1
  38. package/esm2020/domain/catalog/models/category.mjs +1 -4
  39. package/esm2020/domain/catalog/models/filter-option.mjs +1 -4
  40. package/esm2020/domain/catalog/models/filter.mjs +1 -4
  41. package/esm2020/domain/catalog/models/index.mjs +2 -1
  42. package/esm2020/domain/catalog/models/kit-product.mjs +2 -2
  43. package/esm2020/domain/catalog/models/product.mjs +1 -4
  44. package/esm2020/domain/catalog/models/types/category-product.mjs +2 -0
  45. package/esm2020/domain/catalog/models/types/index.mjs +2 -1
  46. package/esm2020/domain/catalog/models/variant.mjs +1 -4
  47. package/esm2020/domain/catalog/repositories/category-collection-children.repository.mjs +2 -0
  48. package/esm2020/domain/catalog/repositories/category.repository.mjs +1 -1
  49. package/esm2020/domain/catalog/repositories/index.mjs +2 -1
  50. package/esm2020/domain/generic/model/base.model.mjs +3 -2
  51. package/esm2020/domain/generic/model/types/base-model-builder.type.mjs +1 -1
  52. package/esm2020/domain/generic/model/types/identifier-model.type.mjs +1 -1
  53. package/esm2020/domain/generic/model/types/model-base-structure.type.mjs +1 -1
  54. package/esm2020/domain/generic/model/types/non-function-property-name.type.mjs +1 -1
  55. package/esm2020/domain/generic/repository/get.repository.mjs +1 -1
  56. package/esm2020/domain/generic/repository/types/repository-find-filters.type.mjs +1 -1
  57. package/esm2020/domain/generic/repository/types/repository-order-by-list.type.mjs +1 -1
  58. package/esm2020/domain/generic/repository/types/repository-update-params.type.mjs +1 -1
  59. package/esm2020/domain/location/models/address.mjs +2 -2
  60. package/esm2020/domain/shopping/models/checkout.mjs +6 -7
  61. package/esm2020/domain/shopping/models/order.mjs +1 -1
  62. package/esm2020/domain/shopping/models/subscription/checkout.mjs +6 -6
  63. package/esm2020/domain/users/models/subscription/subscription.mjs +6 -6
  64. package/esm2020/domain/users/models/user-address.mjs +1 -1
  65. package/esm2020/domain/users/models/user.mjs +3 -3
  66. package/esm2020/domain/users/use-cases/authentication.mjs +2 -2
  67. package/esm2020/infra/elasticsearch/adapters/axios.adapter.mjs +1 -1
  68. package/esm2020/infra/firebase/firestore/mixins/with-create-firestore.mixin.mjs +2 -2
  69. package/esm2020/infra/firebase/firestore/mixins/with-crud-firestore.mixin.mjs +1 -1
  70. package/esm2020/infra/firebase/firestore/mixins/with-delete-firestore.mixin.mjs +1 -1
  71. package/esm2020/infra/firebase/firestore/mixins/with-find-firestore.mixin.mjs +3 -3
  72. package/esm2020/infra/firebase/firestore/mixins/with-firestore.mixin.mjs +1 -1
  73. package/esm2020/infra/firebase/firestore/mixins/with-get-firestore.mixin.mjs +1 -1
  74. package/esm2020/infra/firebase/firestore/mixins/with-helpers.mixin.mjs +1 -1
  75. package/esm2020/infra/firebase/firestore/mixins/with-sub-collection.mixin.mjs +1 -1
  76. package/esm2020/infra/firebase/firestore/mixins/with-update-firestore.mixin.mjs +1 -1
  77. package/esm2020/infra/firebase/firestore/repositories/catalog/category-firestore.repository.mjs +4 -1
  78. package/esm2020/infra/firebase/firestore/types/firestore-sub.repository.type.mjs +1 -1
  79. package/esm2020/infra/firebase/firestore/types/firestore.helpers.type.mjs +1 -1
  80. package/esm2020/infra/firebase/firestore/types/firestore.repository.type.mjs +1 -1
  81. package/esm2020/infra/hasura-graphql/mixins/helpers/attribute-option.helper.mjs +1 -1
  82. package/esm2020/infra/hasura-graphql/mixins/helpers/bind-filter-query.helper.mjs +5 -4
  83. package/esm2020/infra/hasura-graphql/mixins/helpers/filter-option.helper.mjs +1 -1
  84. package/esm2020/infra/hasura-graphql/mixins/helpers/graphql-field.helper.mjs +25 -20
  85. package/esm2020/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.mjs +5 -3
  86. package/esm2020/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.mjs +1 -1
  87. package/esm2020/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.mjs +5 -3
  88. package/esm2020/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.mjs +21 -4
  89. package/esm2020/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.mjs +5 -3
  90. package/esm2020/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.mjs +12 -5
  91. package/esm2020/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.mjs +7 -5
  92. package/esm2020/infra/hasura-graphql/repositories/catalog/category-collection-children-hasura-graphql.repository.mjs +38 -0
  93. package/esm2020/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.mjs +26 -2
  94. package/esm2020/infra/hasura-graphql/repositories/catalog/index.mjs +2 -1
  95. package/esm2020/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.mjs +3 -2
  96. package/esm2020/infra/hasura-graphql/types/graphql.repository.type.mjs +1 -1
  97. package/esm2020/infra/hasura-graphql/types/hasura-graphql-fields.type.mjs +1 -1
  98. package/esm2020/utils/decorators/debug.class.decorator.mjs +7 -0
  99. package/esm2020/utils/decorators/index.mjs +3 -0
  100. package/esm2020/utils/decorators/trace.method.decorator.mjs +81 -0
  101. package/esm2020/utils/helpers/class-name.helper.mjs +15 -0
  102. package/esm2020/utils/helpers/debug-decorator.helper.mjs +18 -0
  103. package/esm2020/utils/helpers/debug.helper.mjs +150 -0
  104. package/esm2020/utils/helpers/index.mjs +5 -0
  105. package/esm2020/utils/helpers/reflect.helper.mjs +165 -0
  106. package/esm2020/utils/index.mjs +4 -1
  107. package/esm2020/utils/log.utils.mjs +9 -0
  108. package/fesm2015/infrab4a-connect.mjs +620 -78
  109. package/fesm2015/infrab4a-connect.mjs.map +1 -1
  110. package/fesm2020/infrab4a-connect.mjs +622 -78
  111. package/fesm2020/infrab4a-connect.mjs.map +1 -1
  112. package/infra/elasticsearch/adapters/axios.adapter.d.ts +2 -2
  113. package/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +2 -2
  114. package/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +1 -1
  115. package/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +2 -2
  116. package/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +2 -2
  117. package/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +2 -2
  118. package/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +2 -2
  119. package/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +2 -2
  120. package/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +2 -2
  121. package/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +3 -3
  122. package/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +1 -0
  123. package/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +3 -3
  124. package/infra/firebase/firestore/types/firestore.helpers.type.d.ts +5 -5
  125. package/infra/firebase/firestore/types/firestore.repository.type.d.ts +1 -1
  126. package/infra/hasura-graphql/mixins/helpers/attribute-option.helper.d.ts +9 -3
  127. package/infra/hasura-graphql/mixins/helpers/bind-filter-query.helper.d.ts +5 -5
  128. package/infra/hasura-graphql/mixins/helpers/filter-option.helper.d.ts +4 -2
  129. package/infra/hasura-graphql/mixins/helpers/graphql-field.helper.d.ts +8 -5
  130. package/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.d.ts +2 -1
  131. package/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.d.ts +1 -1
  132. package/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.d.ts +1 -1
  133. package/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +11 -9
  134. package/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.d.ts +7 -6
  135. package/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.d.ts +2 -2
  136. package/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.d.ts +2 -2
  137. package/infra/hasura-graphql/repositories/catalog/category-collection-children-hasura-graphql.repository.d.ts +10 -0
  138. package/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +1 -0
  139. package/infra/hasura-graphql/repositories/catalog/index.d.ts +1 -0
  140. package/infra/hasura-graphql/types/graphql.repository.type.d.ts +7 -5
  141. package/infra/hasura-graphql/types/hasura-graphql-fields.type.d.ts +7 -3
  142. package/package.json +2 -1
  143. package/utils/decorators/debug.class.decorator.d.ts +2 -0
  144. package/utils/decorators/index.d.ts +2 -0
  145. package/utils/decorators/trace.method.decorator.d.ts +14 -0
  146. package/utils/helpers/class-name.helper.d.ts +3 -0
  147. package/utils/helpers/debug-decorator.helper.d.ts +9 -0
  148. package/utils/helpers/debug.helper.d.ts +60 -0
  149. package/utils/helpers/index.d.ts +4 -0
  150. package/utils/helpers/reflect.helper.d.ts +50 -0
  151. package/utils/index.d.ts +3 -0
  152. 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,9 +1,12 @@
1
1
  import { add, addBusinessDays, addDays, addMonths, addYears, Duration, endOfDay, format, formatISO9075, parseISO, startOfDay, sub } from 'date-fns';
2
2
  import { chunk, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set } 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';
@@ -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;