@wandzai/utils 1.0.60 → 1.0.62
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/package.json +1 -1
- package/src/date.d.ts +4 -1
- package/src/date.js +32 -1
- package/src/date.js.map +1 -1
- package/src/wandz.d.ts +10 -10
- package/src/wandz.js +15 -33
- package/src/wandz.js.map +1 -1
package/package.json
CHANGED
package/src/date.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { TimeUnits } from '@wandzai/wandz-interfaces';
|
|
1
|
+
import { TimeUnits, ITimeFrame, IDateRange } from '@wandzai/wandz-interfaces';
|
|
2
2
|
export declare const formatDateYearMonthDay: (date: string | Date) => string;
|
|
3
|
+
export declare const datesRangeEnumToRange: (range: ITimeFrame) => IDateRange;
|
|
3
4
|
export declare const calcDatesRange: (range: number) => {
|
|
4
5
|
startDate: string;
|
|
5
6
|
endDate: string;
|
|
6
7
|
};
|
|
7
8
|
export declare const getTimeDifference: (date: Date, timeUnit: TimeUnits) => number;
|
|
9
|
+
export declare const shiftDateRangeByDays: (dateRange: IDateRange, days: number) => IDateRange;
|
|
10
|
+
export declare const datesRangeLength: (dateRange: IDateRange) => number;
|
package/src/date.js
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getTimeDifference = exports.calcDatesRange = exports.formatDateYearMonthDay = void 0;
|
|
3
|
+
exports.datesRangeLength = exports.shiftDateRangeByDays = exports.getTimeDifference = exports.calcDatesRange = exports.datesRangeEnumToRange = exports.formatDateYearMonthDay = void 0;
|
|
4
4
|
const wandz_interfaces_1 = require("@wandzai/wandz-interfaces");
|
|
5
5
|
const formatDateYearMonthDay = (date) => new Date(date).toLocaleDateString('en-CA', { year: 'numeric', month: '2-digit', day: '2-digit' });
|
|
6
6
|
exports.formatDateYearMonthDay = formatDateYearMonthDay;
|
|
7
|
+
const datesRangeEnumToRange = (range) => {
|
|
8
|
+
if (typeof range === 'object') {
|
|
9
|
+
return { startDate: String(range.startDate), endDate: String(range.endDate) };
|
|
10
|
+
}
|
|
11
|
+
if (range === wandz_interfaces_1.DaysRanges.ALL_HISTORY) {
|
|
12
|
+
return {};
|
|
13
|
+
}
|
|
14
|
+
return (0, exports.calcDatesRange)(range);
|
|
15
|
+
};
|
|
16
|
+
exports.datesRangeEnumToRange = datesRangeEnumToRange;
|
|
7
17
|
const calcDatesRange = (range) => {
|
|
8
18
|
const today = new Date();
|
|
9
19
|
const startDate = new Date(today);
|
|
@@ -31,4 +41,25 @@ const getTimeDifference = (date, timeUnit) => {
|
|
|
31
41
|
}
|
|
32
42
|
};
|
|
33
43
|
exports.getTimeDifference = getTimeDifference;
|
|
44
|
+
const shiftDateRangeByDays = (dateRange, days) => {
|
|
45
|
+
if (!dateRange?.startDate || !dateRange?.endDate)
|
|
46
|
+
return dateRange;
|
|
47
|
+
const shiftedStart = new Date(dateRange.startDate);
|
|
48
|
+
shiftedStart.setDate(shiftedStart.getDate() + days);
|
|
49
|
+
const end = new Date(dateRange.endDate);
|
|
50
|
+
return {
|
|
51
|
+
startDate: shiftedStart.toISOString(),
|
|
52
|
+
endDate: end.toISOString(),
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
exports.shiftDateRangeByDays = shiftDateRangeByDays;
|
|
56
|
+
const datesRangeLength = (dateRange) => {
|
|
57
|
+
const { startDate, endDate } = dateRange;
|
|
58
|
+
if (startDate && endDate) {
|
|
59
|
+
const diff = new Date(endDate).valueOf() - new Date(startDate).valueOf();
|
|
60
|
+
return Math.ceil(diff / (1000 * 3600 * 24));
|
|
61
|
+
}
|
|
62
|
+
return 0;
|
|
63
|
+
};
|
|
64
|
+
exports.datesRangeLength = datesRangeLength;
|
|
34
65
|
//# sourceMappingURL=date.js.map
|
package/src/date.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../../../libs/utils/src/date.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../../../libs/utils/src/date.ts"],"names":[],"mappings":";;;AAAA,gEAA0F;AAEnF,MAAM,sBAAsB,GAAG,CAAC,IAAmB,EAAE,EAAE,CAC5D,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,kBAAkB,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;AADvF,QAAA,sBAAsB,0BACiE;AAG7F,MAAM,qBAAqB,GAAG,CAAC,KAAiB,EAAc,EAAE;IACrE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;IAChF,CAAC;IAED,IAAI,KAAK,KAAK,6BAAU,CAAC,WAAW,EAAE,CAAC;QACrC,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,IAAA,sBAAc,EAAC,KAAe,CAAC,CAAC;AACzC,CAAC,CAAC;AATW,QAAA,qBAAqB,yBAShC;AAGK,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,EAAE;IAC9C,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC;IACzB,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IAClC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,KAAK,CAAC,CAAC;IAE3C,OAAO;QACL,SAAS,EAAE,IAAA,8BAAsB,EAAC,SAAS,CAAC;QAC5C,OAAO,EAAE,IAAA,8BAAsB,EAAC,KAAK,CAAC;KACvC,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,cAAc,kBASzB;AAE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GK,MAAM,gBAAgB,GAAG,CAAC,SAAqB,EAAU,EAAE;IAChE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;IACzC,IAAI,SAAS,IAAI,OAAO,EAAE,CAAC;QACzB,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC;QACzE,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;IAC9C,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC,CAAC;AAPW,QAAA,gBAAgB,oBAO3B"}
|
package/src/wandz.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { AdaptiveSearchReplaceLabels, AiFeatureDistributionType, IAdaptiveSearch, IAffinityBasedCustomAiFeatureConfig, IAiFeaturesBasicConfig, IAudience, ICustomAiFeature, ICustomAudience,
|
|
1
|
+
import { AdaptiveSearchReplaceLabels, AiFeatureDistributionType, IAdaptiveSearch, IAffinityBasedCustomAiFeatureConfig, IAiFeaturesBasicConfig, IAudience, ICustomAiFeature, ICustomAudience, IEntityCommonDetails, IEventBasedCustomAiFeatureConfig, IPredictionModel, IStorageBasedCustomAiFeatureConfig, IWandzAiFeaturesConfig, WandzAllEntities } from '@wandzai/wandz-interfaces';
|
|
2
2
|
export declare const entityTechNameBuilder: (entityName: string) => string;
|
|
3
|
-
export declare function isAffinityBasedCustomAiFeature(feature: ICustomAiFeature): feature is IAffinityBasedCustomAiFeatureConfig;
|
|
4
3
|
export declare function isStorageBasedCustomAiFeature(feature: ICustomAiFeature): feature is IStorageBasedCustomAiFeatureConfig;
|
|
4
|
+
export declare function isAffinityBasedCustomAiFeature(feature: ICustomAiFeature): feature is IAffinityBasedCustomAiFeatureConfig;
|
|
5
5
|
export declare function isEventBasedCustomAiFeature(feature: ICustomAiFeature): feature is IEventBasedCustomAiFeatureConfig;
|
|
6
6
|
export declare const getCustomAiFeatureType: (feature: ICustomAiFeature) => AiFeatureDistributionType;
|
|
7
|
-
export declare const isAiFeature: (entity:
|
|
8
|
-
export declare const isAudience: (entity:
|
|
9
|
-
export declare const
|
|
7
|
+
export declare const isAiFeature: (entity: IEntityCommonDetails) => entity is IAiFeaturesBasicConfig;
|
|
8
|
+
export declare const isAudience: (entity: IEntityCommonDetails) => entity is IAudience;
|
|
9
|
+
export declare const isModel: (entity: IEntityCommonDetails) => entity is IPredictionModel;
|
|
10
|
+
export declare const isCustomEntity: (entity: IEntityCommonDetails) => boolean;
|
|
10
11
|
export declare const isCustomAudience: (audience: IAudience) => audience is ICustomAudience;
|
|
11
12
|
export declare const isCustomAiFeature: (feature: IAiFeaturesBasicConfig) => feature is ICustomAiFeature;
|
|
12
|
-
export declare const isInHouseAiFeature: (entity:
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const getEntityDisplayName: (entity: IEntity) => string;
|
|
13
|
+
export declare const isInHouseAiFeature: (entity: IEntityCommonDetails) => entity is IWandzAiFeaturesConfig;
|
|
14
|
+
export declare const getEntityID: (entity: IEntityCommonDetails) => string | number;
|
|
15
|
+
export declare const getEntityType: (entity: IEntityCommonDetails) => WandzAllEntities;
|
|
16
|
+
export declare const getEntityDisplayName: (entity: IEntityCommonDetails) => string;
|
|
17
17
|
export declare const getAdaptiveSearchDataByField: (search: IAdaptiveSearch, label: AdaptiveSearchReplaceLabels) => any;
|
package/src/wandz.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAdaptiveSearchDataByField = exports.getEntityDisplayName = exports.getEntityType = exports.getEntityID = exports.
|
|
4
|
-
exports.isAffinityBasedCustomAiFeature = isAffinityBasedCustomAiFeature;
|
|
3
|
+
exports.getAdaptiveSearchDataByField = exports.getEntityDisplayName = exports.getEntityType = exports.getEntityID = exports.isInHouseAiFeature = exports.isCustomAiFeature = exports.isCustomAudience = exports.isCustomEntity = exports.isModel = exports.isAudience = exports.isAiFeature = exports.getCustomAiFeatureType = exports.entityTechNameBuilder = void 0;
|
|
5
4
|
exports.isStorageBasedCustomAiFeature = isStorageBasedCustomAiFeature;
|
|
5
|
+
exports.isAffinityBasedCustomAiFeature = isAffinityBasedCustomAiFeature;
|
|
6
6
|
exports.isEventBasedCustomAiFeature = isEventBasedCustomAiFeature;
|
|
7
7
|
const wandz_interfaces_1 = require("@wandzai/wandz-interfaces");
|
|
8
8
|
const entityTechNameBuilder = (entityName) => {
|
|
@@ -12,14 +12,14 @@ const entityTechNameBuilder = (entityName) => {
|
|
|
12
12
|
.replace(/[^\w_.]+/g, '');
|
|
13
13
|
};
|
|
14
14
|
exports.entityTechNameBuilder = entityTechNameBuilder;
|
|
15
|
-
function isAffinityBasedCustomAiFeature(feature) {
|
|
16
|
-
return feature.affinityType != null;
|
|
17
|
-
}
|
|
18
15
|
function isStorageBasedCustomAiFeature(feature) {
|
|
19
16
|
return feature.storageLogic != null;
|
|
20
17
|
}
|
|
18
|
+
function isAffinityBasedCustomAiFeature(feature) {
|
|
19
|
+
return feature.entitySubType === wandz_interfaces_1.WandzEntities.AFFINITY;
|
|
20
|
+
}
|
|
21
21
|
function isEventBasedCustomAiFeature(feature) {
|
|
22
|
-
return feature.
|
|
22
|
+
return feature.entitySubType === wandz_interfaces_1.WandzEntities.EVENT;
|
|
23
23
|
}
|
|
24
24
|
const getCustomAiFeatureType = (feature) => {
|
|
25
25
|
if (isEventBasedCustomAiFeature(feature)) {
|
|
@@ -32,15 +32,19 @@ const getCustomAiFeatureType = (feature) => {
|
|
|
32
32
|
};
|
|
33
33
|
exports.getCustomAiFeatureType = getCustomAiFeatureType;
|
|
34
34
|
const isAiFeature = (entity) => {
|
|
35
|
-
return entity.
|
|
35
|
+
return entity.entityType === wandz_interfaces_1.WandzEntities.AI_FEATURE;
|
|
36
36
|
};
|
|
37
37
|
exports.isAiFeature = isAiFeature;
|
|
38
38
|
const isAudience = (entity) => {
|
|
39
|
-
return entity.
|
|
39
|
+
return entity.entityType === wandz_interfaces_1.WandzEntities.AUDIENCE;
|
|
40
40
|
};
|
|
41
41
|
exports.isAudience = isAudience;
|
|
42
|
+
const isModel = (entity) => {
|
|
43
|
+
return entity.entityType === wandz_interfaces_1.WandzEntities.MODEL;
|
|
44
|
+
};
|
|
45
|
+
exports.isModel = isModel;
|
|
42
46
|
const isCustomEntity = (entity) => {
|
|
43
|
-
return
|
|
47
|
+
return entity.isCustom;
|
|
44
48
|
};
|
|
45
49
|
exports.isCustomEntity = isCustomEntity;
|
|
46
50
|
const isCustomAudience = (audience) => {
|
|
@@ -55,34 +59,12 @@ const isInHouseAiFeature = (entity) => {
|
|
|
55
59
|
return (0, exports.isAiFeature)(entity) && !(0, exports.isCustomEntity)(entity);
|
|
56
60
|
};
|
|
57
61
|
exports.isInHouseAiFeature = isInHouseAiFeature;
|
|
58
|
-
const isModel = (entity) => {
|
|
59
|
-
return entity.targetRules != null;
|
|
60
|
-
};
|
|
61
|
-
exports.isModel = isModel;
|
|
62
62
|
const getEntityID = (entity) => {
|
|
63
|
-
|
|
64
|
-
return entity.id?.toString();
|
|
65
|
-
}
|
|
66
|
-
else if ((0, exports.isAudience)(entity)) {
|
|
67
|
-
return entity.guid;
|
|
68
|
-
}
|
|
69
|
-
else if ((0, exports.isModel)(entity)) {
|
|
70
|
-
return entity.guid;
|
|
71
|
-
}
|
|
72
|
-
return '';
|
|
63
|
+
return entity.identifier;
|
|
73
64
|
};
|
|
74
65
|
exports.getEntityID = getEntityID;
|
|
75
66
|
const getEntityType = (entity) => {
|
|
76
|
-
|
|
77
|
-
return wandz_interfaces_1.WandzEntities.AI_FEATURE;
|
|
78
|
-
}
|
|
79
|
-
else if ((0, exports.isAudience)(entity)) {
|
|
80
|
-
return wandz_interfaces_1.WandzEntities.AUDIENCE;
|
|
81
|
-
}
|
|
82
|
-
else if ((0, exports.isModel)(entity)) {
|
|
83
|
-
return wandz_interfaces_1.WandzEntities.MODEL;
|
|
84
|
-
}
|
|
85
|
-
return wandz_interfaces_1.WandzEntities.AI_FEATURE;
|
|
67
|
+
return entity.entityType;
|
|
86
68
|
};
|
|
87
69
|
exports.getEntityType = getEntityType;
|
|
88
70
|
const getEntityDisplayName = (entity) => {
|
package/src/wandz.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wandz.js","sourceRoot":"","sources":["../../../../libs/utils/src/wandz.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"wandz.js","sourceRoot":"","sources":["../../../../libs/utils/src/wandz.ts"],"names":[],"mappings":";;;AA4BA,sEAIC;AAED,wEAIC;AAED,kEAEC;AA1CD,gEAcmC;AAG5B,MAAM,qBAAqB,GAAG,CAAC,UAAkB,EAAE,EAAE;IAK1D,OAAO,UAAU;SACd,WAAW,EAAE;SACb,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;SAClB,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC,CAAC;AATW,QAAA,qBAAqB,yBAShC;AAEF,SAAgB,6BAA6B,CACzC,OAAyB;IAEzB,OAAQ,OAA8C,CAAC,YAAY,IAAI,IAAI,CAAC;AAChF,CAAC;AAED,SAAgB,8BAA8B,CAC5C,OAAyB;IAEvB,OAAO,OAAO,CAAC,aAAa,KAAK,gCAAa,CAAC,QAAQ,CAAC;AAC5D,CAAC;AAED,SAAgB,2BAA2B,CAAC,OAAyB;IACjE,OAAO,OAAO,CAAC,aAAa,KAAK,gCAAa,CAAC,KAAK,CAAC;AACzD,CAAC;AAEM,MAAM,sBAAsB,GAAG,CAAC,OAAyB,EAA6B,EAAE;IAC7F,IAAI,2BAA2B,CAAC,OAAO,CAAC,EAAE,CAAC;QACzC,OAAO,OAAO,CAAC;IACjB,CAAC;S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