@infrab4a/connect 4.9.2-beta.1 → 4.9.3-beta.0
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.
- package/index.cjs.js +18 -17
- package/index.esm.js +19 -18
- package/package.json +2 -2
- package/src/domain/catalog/models/category-base.d.ts +1 -0
package/index.cjs.js
CHANGED
|
@@ -1492,20 +1492,6 @@ exports.DebugNamespaces = void 0;
|
|
|
1492
1492
|
})(exports.DebugNamespaces || (exports.DebugNamespaces = {}));
|
|
1493
1493
|
const Logger = debug.debug(exports.DebugNamespaces.ROOT);
|
|
1494
1494
|
|
|
1495
|
-
class ClassNameHelper {
|
|
1496
|
-
static get(clazz) {
|
|
1497
|
-
if (!clazz)
|
|
1498
|
-
return null;
|
|
1499
|
-
const prototype = Object.getPrototypeOf(clazz);
|
|
1500
|
-
const names = lodash.compact([
|
|
1501
|
-
lodash.get(clazz, 'constructor.name'),
|
|
1502
|
-
lodash.get(prototype, 'constructor.name'),
|
|
1503
|
-
lodash.get(prototype, '__proto__.constructor.name'),
|
|
1504
|
-
]);
|
|
1505
|
-
return names.find((name) => name !== 'class_1');
|
|
1506
|
-
}
|
|
1507
|
-
}
|
|
1508
|
-
|
|
1509
1495
|
class ReflectHelper {
|
|
1510
1496
|
static get items() {
|
|
1511
1497
|
return this._items;
|
|
@@ -1686,6 +1672,20 @@ class DebugDecoratorHelper {
|
|
|
1686
1672
|
}
|
|
1687
1673
|
DebugDecoratorHelper.DebugNamingMetadataKey = 'model:naming:decorator';
|
|
1688
1674
|
|
|
1675
|
+
class ClassNameHelper {
|
|
1676
|
+
static get(clazz) {
|
|
1677
|
+
if (!clazz)
|
|
1678
|
+
return null;
|
|
1679
|
+
const prototype = Object.getPrototypeOf(clazz);
|
|
1680
|
+
const names = lodash.compact([
|
|
1681
|
+
lodash.get(clazz, 'constructor.name'),
|
|
1682
|
+
lodash.get(prototype, 'constructor.name'),
|
|
1683
|
+
lodash.get(prototype, '__proto__.constructor.name'),
|
|
1684
|
+
]);
|
|
1685
|
+
return names.find((name) => name !== 'class_1');
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
1689
|
const isDebuggable = (object) => {
|
|
1690
1690
|
return 'debug' in object;
|
|
1691
1691
|
};
|
|
@@ -1754,17 +1754,17 @@ class DebugHelper {
|
|
|
1754
1754
|
return lodash.compact(lodash.flatten(this.entries)).join(':');
|
|
1755
1755
|
}
|
|
1756
1756
|
log(message, ...args) {
|
|
1757
|
-
this.logger(
|
|
1757
|
+
this.logger(JSON.stringify(message), ...args.map((element) => JSON.stringify(element)));
|
|
1758
1758
|
DebugHelper.logs$.next({ namespace: this.namespace, message, args });
|
|
1759
1759
|
return this;
|
|
1760
1760
|
}
|
|
1761
1761
|
trace(message, ...args) {
|
|
1762
|
-
this.logger.extend(exports.DebugNamespaces.TRACE)(
|
|
1762
|
+
this.logger.extend(exports.DebugNamespaces.TRACE)(message, ...args);
|
|
1763
1763
|
DebugHelper.traces$.next({ namespace: this.namespace, message, args });
|
|
1764
1764
|
return this;
|
|
1765
1765
|
}
|
|
1766
1766
|
error(error, ...args) {
|
|
1767
|
-
this.logger.extend(exports.DebugNamespaces.ERROR)(
|
|
1767
|
+
this.logger.extend(exports.DebugNamespaces.ERROR)(JSON.stringify(error), ...args.map((element) => JSON.stringify(element)));
|
|
1768
1768
|
DebugHelper.errors$.next({ namespace: this.namespace, error, args });
|
|
1769
1769
|
return this;
|
|
1770
1770
|
}
|
|
@@ -4888,6 +4888,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4888
4888
|
},
|
|
4889
4889
|
'theme',
|
|
4890
4890
|
{ bannerUrl: { columnName: 'banner_url' } },
|
|
4891
|
+
{ mostRelevant: { columnName: 'most_relevant', type: HasuraGraphQLColumnType.Jsonb } },
|
|
4891
4892
|
],
|
|
4892
4893
|
});
|
|
4893
4894
|
this.productRepository = productRepository;
|
package/index.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import { __decorate, __metadata, __rest } from 'tslib';
|
|
|
4
4
|
import { plainToInstance, instanceToPlain, Type, Expose } from 'class-transformer';
|
|
5
5
|
import { parseISO } from 'date-fns';
|
|
6
6
|
export { add, addBusinessDays, addDays, addMonths, addYears, endOfDay, format, formatISO9075, parseISO, startOfDay, sub } from 'date-fns';
|
|
7
|
-
import {
|
|
7
|
+
import { isNil, isArray as isArray$1, first, last, flatten, compact, get, isString, each, unset, isObject as isObject$1, set, isNumber, chunk, isEmpty, isDate, isBoolean, isInteger, isNaN as isNaN$1, sortBy, omit } from 'lodash';
|
|
8
8
|
export { chunk, each, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set, sortBy, unset } from 'lodash';
|
|
9
9
|
import { debug } from 'debug';
|
|
10
10
|
import { CustomError } from 'ts-custom-error';
|
|
@@ -1468,20 +1468,6 @@ var DebugNamespaces;
|
|
|
1468
1468
|
})(DebugNamespaces || (DebugNamespaces = {}));
|
|
1469
1469
|
const Logger = debug(DebugNamespaces.ROOT);
|
|
1470
1470
|
|
|
1471
|
-
class ClassNameHelper {
|
|
1472
|
-
static get(clazz) {
|
|
1473
|
-
if (!clazz)
|
|
1474
|
-
return null;
|
|
1475
|
-
const prototype = Object.getPrototypeOf(clazz);
|
|
1476
|
-
const names = compact([
|
|
1477
|
-
get(clazz, 'constructor.name'),
|
|
1478
|
-
get(prototype, 'constructor.name'),
|
|
1479
|
-
get(prototype, '__proto__.constructor.name'),
|
|
1480
|
-
]);
|
|
1481
|
-
return names.find((name) => name !== 'class_1');
|
|
1482
|
-
}
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
1471
|
class ReflectHelper {
|
|
1486
1472
|
static get items() {
|
|
1487
1473
|
return this._items;
|
|
@@ -1662,6 +1648,20 @@ class DebugDecoratorHelper {
|
|
|
1662
1648
|
}
|
|
1663
1649
|
DebugDecoratorHelper.DebugNamingMetadataKey = 'model:naming:decorator';
|
|
1664
1650
|
|
|
1651
|
+
class ClassNameHelper {
|
|
1652
|
+
static get(clazz) {
|
|
1653
|
+
if (!clazz)
|
|
1654
|
+
return null;
|
|
1655
|
+
const prototype = Object.getPrototypeOf(clazz);
|
|
1656
|
+
const names = compact([
|
|
1657
|
+
get(clazz, 'constructor.name'),
|
|
1658
|
+
get(prototype, 'constructor.name'),
|
|
1659
|
+
get(prototype, '__proto__.constructor.name'),
|
|
1660
|
+
]);
|
|
1661
|
+
return names.find((name) => name !== 'class_1');
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
1665
|
const isDebuggable = (object) => {
|
|
1666
1666
|
return 'debug' in object;
|
|
1667
1667
|
};
|
|
@@ -1730,17 +1730,17 @@ class DebugHelper {
|
|
|
1730
1730
|
return compact(flatten(this.entries)).join(':');
|
|
1731
1731
|
}
|
|
1732
1732
|
log(message, ...args) {
|
|
1733
|
-
this.logger(
|
|
1733
|
+
this.logger(JSON.stringify(message), ...args.map((element) => JSON.stringify(element)));
|
|
1734
1734
|
DebugHelper.logs$.next({ namespace: this.namespace, message, args });
|
|
1735
1735
|
return this;
|
|
1736
1736
|
}
|
|
1737
1737
|
trace(message, ...args) {
|
|
1738
|
-
this.logger.extend(DebugNamespaces.TRACE)(
|
|
1738
|
+
this.logger.extend(DebugNamespaces.TRACE)(message, ...args);
|
|
1739
1739
|
DebugHelper.traces$.next({ namespace: this.namespace, message, args });
|
|
1740
1740
|
return this;
|
|
1741
1741
|
}
|
|
1742
1742
|
error(error, ...args) {
|
|
1743
|
-
this.logger.extend(DebugNamespaces.ERROR)(
|
|
1743
|
+
this.logger.extend(DebugNamespaces.ERROR)(JSON.stringify(error), ...args.map((element) => JSON.stringify(element)));
|
|
1744
1744
|
DebugHelper.errors$.next({ namespace: this.namespace, error, args });
|
|
1745
1745
|
return this;
|
|
1746
1746
|
}
|
|
@@ -4864,6 +4864,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4864
4864
|
},
|
|
4865
4865
|
'theme',
|
|
4866
4866
|
{ bannerUrl: { columnName: 'banner_url' } },
|
|
4867
|
+
{ mostRelevant: { columnName: 'most_relevant', type: HasuraGraphQLColumnType.Jsonb } },
|
|
4867
4868
|
],
|
|
4868
4869
|
});
|
|
4869
4870
|
this.productRepository = productRepository;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infrab4a/connect",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.3-beta.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"class-transformer": "^0.5.1",
|
|
14
14
|
"date-fns": "^2.28.0",
|
|
15
15
|
"debug": "^4.3.4",
|
|
16
|
-
"firebase": "
|
|
16
|
+
"firebase": "9.18.0",
|
|
17
17
|
"gql-query-builder": "3.7.0",
|
|
18
18
|
"lodash": "^4.17.21",
|
|
19
19
|
"reflect-metadata": "^0.1.13",
|
|
@@ -26,6 +26,7 @@ export declare class CategoryBase<ChildCategory extends ModelBaseStructure<Child
|
|
|
26
26
|
parentId?: number;
|
|
27
27
|
theme?: string;
|
|
28
28
|
bannerUrl?: string;
|
|
29
|
+
mostRelevant?: string[];
|
|
29
30
|
parent?: CategoryBase;
|
|
30
31
|
filters?: Filter[];
|
|
31
32
|
static get identifiersFields(): GenericIdentifier[];
|