feed-common 1.17.0 → 1.18.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/dist/constants/profile.constants.js +2 -2
- package/dist/constants/profile.constants.js.map +1 -1
- package/dist/types/profile.types.d.ts +6 -1
- package/dist/types/profile.types.d.ts.map +1 -1
- package/dist/types/profile.types.js.map +1 -1
- package/dist/utils/utils.d.ts +2 -0
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +45 -0
- package/dist/utils/utils.js.map +1 -1
- package/package.json +1 -1
- package/src/constants/profile.constants.ts +2 -2
- package/src/types/profile.types.ts +10 -5
- package/src/utils/utils.ts +69 -0
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
## [1.18.1](https://github.com/advertikon/package-maxify-feed-common/compare/v1.18.0...v1.18.1) (2024-07-15)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* change how parse macro handles empty string ([1deba63](https://github.com/advertikon/package-maxify-feed-common/commit/1deba6336d80fc8a1d5b9ffe6fc6b383bcb09a64))
|
7
|
+
|
8
|
+
# [1.18.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.17.0...v1.18.0) (2024-07-03)
|
9
|
+
|
10
|
+
|
11
|
+
### Features
|
12
|
+
|
13
|
+
* add format macro helper function ([9336462](https://github.com/advertikon/package-maxify-feed-common/commit/9336462ee3fe381f17402b19467fe055b8625ace))
|
14
|
+
|
1
15
|
# [1.17.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.16.2...v1.17.0) (2024-07-01)
|
2
16
|
|
3
17
|
|
@@ -226,13 +226,13 @@ export const MappingSourceActions = [{
|
|
226
226
|
value: ACTION_SUBTRACT,
|
227
227
|
isUnary: false
|
228
228
|
}, {
|
229
|
-
label: 'Multiply',
|
229
|
+
label: 'Multiply by',
|
230
230
|
description: 'Multiply the current value by a value',
|
231
231
|
type: [MappingSourceValueType.FLOAT, MappingSourceValueType.INT],
|
232
232
|
value: ACTION_MULTIPLY,
|
233
233
|
isUnary: false
|
234
234
|
}, {
|
235
|
-
label: 'Divide',
|
235
|
+
label: 'Divide by',
|
236
236
|
description: 'Divide the current value by a value',
|
237
237
|
type: [MappingSourceValueType.FLOAT, MappingSourceValueType.INT],
|
238
238
|
value: ACTION_DIVIDE,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"profile.constants.js","sourceRoot":"","sources":["../../src/constants/profile.constants.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC;AAC9C,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;AACxC,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AACtD,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AACjD,MAAM,CAAC,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AAC/D,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CAAC;AAE5C,MAAM,CAAN,IAAY,eAeX;AAfD,WAAY,eAAe;IACvB,wCAAqB,CAAA;IACrB,+CAA4B,CAAA;IAC5B,oCAAiB,CAAA;IACjB,2CAAwB,CAAA;IACxB,6CAA0B,CAAA;IAC1B,oDAAiC,CAAA;IACjC,yCAAsB,CAAA;IACtB,gDAA6B,CAAA;IAC7B,4BAAS,CAAA;IACT,mCAAgB,CAAA;IAChB,gCAAa,CAAA;IACb,sCAAmB,CAAA;IACnB,gDAA6B,CAAA;IAC7B,sDAAmC,CAAA;AACvC,CAAC,EAfW,eAAe,KAAf,eAAe,QAe1B;AAED,MAAM,CAAN,IAAY,gBASX;AATD,WAAY,gBAAgB;IACxB,mCAAe,CAAA;IACf,6CAAyB,CAAA;IACzB,iDAA6B,CAAA;IAC7B,qCAAiB,CAAA;IACjB,+BAAW,CAAA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AAM;IACN,uDAAuD;IACvD,MAAM;IACN,mCAAmC;IACnC,MAAM;IACN,uDAAuD;IACvD,MAAM;IACN,mCAAmC;IACnC,MAAM;IACN,6HAA6H;IAC7H,MAAM;IACN,gCAAgC;IAChC,MAAM;IACN,+KAA+K;IAC/K,MAAM;IACN,6BAA6B;IAC7B,MAAM;IACN,oHAAoH;IACpH,MAAM;IACN,2CAA2C;IAC3C,MAAM;IACN,oHAAoH;IACpH,MAAM;IACN,2CAA2C;IAC3C,MAAM;IACN,mHAAmH;IACnH,MAAM;IACN,0CAA0C;IAC1C,MAAM;IACN,qBAAqB;IACrB,MAAM;IACN,uCAAuC;IACvC,MAAM;IACN,sCAAsC;IACtC,MAAM;IACN,oDAAoD;IACpD,MAAM;IACN,sCAAsC;IACtC,MAAM;IACN,oDAAoD;IACpD,MAAM;IACN,sCAAsC;IACtC,MAAM;IACN,iDAAiD;IACjD,MAAM;IACN,qCAAqC;IACrC,MAAM;IACN,mDAAmD;IACnD,MAAM;IACN,wLAAwL;IACxL,MAAM;IACN,kDAAkD;IAClD,MAAM;IACN,sLAAsL;IACtL,MAAM;IACN,2BAA2B;IAC3B,MAAM;IACN,2EAA2E;IAC3E,MAAM;IACN,8BAA8B;IAC9B,MAAM;IACN,yDAAyD;IACzD,MAAM;IACN,4BAA4B;CAC/B,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC;AAChC,MAAM,CAAC,MAAM,uBAAuB,GAAG,2BAA2B,CAAC;AACnE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC"}
|
1
|
+
{"version":3,"file":"profile.constants.js","sourceRoot":"","sources":["../../src/constants/profile.constants.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC;AAC9C,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;AACxC,MAAM,CAAC,MAAM,mB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CAAsC;IACtC,MAAM;IACN,oDAAoD;IACpD,MAAM;IACN,sCAAsC;IACtC,MAAM;IACN,oDAAoD;IACpD,MAAM;IACN,sCAAsC;IACtC,MAAM;IACN,iDAAiD;IACjD,MAAM;IACN,qCAAqC;IACrC,MAAM;IACN,mDAAmD;IACnD,MAAM;IACN,wLAAwL;IACxL,MAAM;IACN,kDAAkD;IAClD,MAAM;IACN,sLAAsL;IACtL,MAAM;IACN,2BAA2B;IAC3B,MAAM;IACN,2EAA2E;IAC3E,MAAM;IACN,8BAA8B;IAC9B,MAAM;IACN,yDAAyD;IACzD,MAAM;IACN,4BAA4B;CAC/B,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC;AAChC,MAAM,CAAC,MAAM,uBAAuB,GAAG,2BAA2B,CAAC;AACnE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC"}
|
@@ -26,7 +26,7 @@ export type ProductUploadMapSource = {
|
|
26
26
|
required: boolean;
|
27
27
|
label: string;
|
28
28
|
attribute: string;
|
29
|
-
type: 'select' | 'multiselect' | 'text' | 'number';
|
29
|
+
type: 'select' | 'multiselect' | 'text' | 'number' | 'macro-input';
|
30
30
|
choices?: OptionType[];
|
31
31
|
rules: ProductUploadRuleFilterType['value'][];
|
32
32
|
description?: string;
|
@@ -67,5 +67,10 @@ export declare enum XMLFeedType {
|
|
67
67
|
Custom = "Custom",
|
68
68
|
Facebook = "Facebook"
|
69
69
|
}
|
70
|
+
export type MacroPartType = {
|
71
|
+
content: string;
|
72
|
+
type: 'macro' | 'string';
|
73
|
+
subtype?: 'mapping' | 'action';
|
74
|
+
};
|
70
75
|
export {};
|
71
76
|
//# sourceMappingURL=profile.types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"profile.types.d.ts","sourceRoot":"","sources":["../../src/types/profile.types.ts"],"names":[],"mappings":"AAAA,OAAO,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ceRoot":"","sources":["../../src/types/profile.types.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"profile.types.js","sourceRoot":"","sources":["../../src/types/profile.types.ts"],"names":[],"mappings":"AAqEA,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;AACzB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB"}
|
package/dist/utils/utils.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,IAAI,WAEnB"}
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,wBAAgB,IAAI,WAEnB;AAED,wBAAgB,iBAAiB,CAAE,WAAW,EAAE,MAAM,GAAG,aAAa,EAAE,CAiEvE"}
|
package/dist/utils/utils.js
CHANGED
@@ -1,4 +1,49 @@
|
|
1
1
|
export function code() {
|
2
2
|
return (Math.random() * 1000000).toFixed(0);
|
3
3
|
}
|
4
|
+
export function parseMacrosString(textContent) {
|
5
|
+
const openTag = '{{';
|
6
|
+
const closeTag = '}}';
|
7
|
+
let startPos = 0;
|
8
|
+
const parts = [];
|
9
|
+
if (!textContent) {
|
10
|
+
return [{
|
11
|
+
content: '',
|
12
|
+
type: 'string',
|
13
|
+
}];
|
14
|
+
}
|
15
|
+
while (startPos !== -1 && startPos < textContent.length) {
|
16
|
+
const nextStartPos = textContent.indexOf(openTag, startPos);
|
17
|
+
if (nextStartPos === -1) {
|
18
|
+
parts.push({
|
19
|
+
content: textContent.substring(startPos),
|
20
|
+
type: 'string',
|
21
|
+
});
|
22
|
+
break;
|
23
|
+
}
|
24
|
+
else if (nextStartPos > startPos) {
|
25
|
+
parts.push({
|
26
|
+
content: textContent.substring(startPos, nextStartPos),
|
27
|
+
type: 'string',
|
28
|
+
});
|
29
|
+
}
|
30
|
+
const nextEndPos = textContent.indexOf(closeTag, nextStartPos);
|
31
|
+
if (nextEndPos === -1) {
|
32
|
+
throw new Error(`[TAG PARSER] Cannot find closing tag for string '${textContent}' starting from ${nextStartPos}`);
|
33
|
+
}
|
34
|
+
// console.log('check for nex opening tag', textContent.indexOf(openTag, nextStartPos + openTag.length))
|
35
|
+
const checkNextOpeningTag = textContent.indexOf(openTag, nextStartPos + openTag.length);
|
36
|
+
if (checkNextOpeningTag !== -1 && checkNextOpeningTag < nextEndPos) {
|
37
|
+
throw new Error(`[TAG PARSER] Expecting closing tag, found opening tag in '${textContent}' starting from ${nextStartPos}`);
|
38
|
+
}
|
39
|
+
const tagValue = textContent.substring(nextStartPos + openTag.length, nextEndPos);
|
40
|
+
parts.push({
|
41
|
+
content: tagValue.trim(),
|
42
|
+
type: 'macro',
|
43
|
+
subtype: tagValue.trim().split('.')[0] === 'action' ? 'action' : 'mapping',
|
44
|
+
});
|
45
|
+
startPos = nextEndPos + closeTag.length;
|
46
|
+
}
|
47
|
+
return parts;
|
48
|
+
}
|
4
49
|
//# sourceMappingURL=utils.js.map
|
package/dist/utils/utils.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,IAAI;IAClB,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAE,WAAmB;IACpD,MAAM,OAAO,GAAG,IAAI,CAAC;IACrB,MAAM,QAAQ,GAAG,IAAI,CAAC;IACtB,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,MAAM,K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,GAAG,WAAW,CAAC,SAAS,CACpC,YAAY,GAAG,OAAO,CAAC,MAAM,EAC7B,UAAU,CACX,CAAC;QAEF,KAAK,CAAC,IAAI,CAAC;YACT,OAAO,EAAE,QAAQ,CAAC,IAAI,EAAE;YACxB,IAAI,EAAE,OAAO;YACb,OAAO,EACL,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;SACpE,CAAC,CAAC;QAEH,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC1C,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/package.json
CHANGED
@@ -244,13 +244,13 @@ export const MappingSourceActions: MappingSourceActionType[] = [{
|
|
244
244
|
value: ACTION_SUBTRACT,
|
245
245
|
isUnary: false
|
246
246
|
}, {
|
247
|
-
label: 'Multiply',
|
247
|
+
label: 'Multiply by',
|
248
248
|
description: 'Multiply the current value by a value',
|
249
249
|
type: [MappingSourceValueType.FLOAT, MappingSourceValueType.INT],
|
250
250
|
value: ACTION_MULTIPLY,
|
251
251
|
isUnary: false
|
252
252
|
}, {
|
253
|
-
label: 'Divide',
|
253
|
+
label: 'Divide by',
|
254
254
|
description: 'Divide the current value by a value',
|
255
255
|
type: [MappingSourceValueType.FLOAT, MappingSourceValueType.INT],
|
256
256
|
value: ACTION_DIVIDE,
|
@@ -21,7 +21,7 @@ export type ProductUploadMapSource = {
|
|
21
21
|
required: boolean;
|
22
22
|
label: string;
|
23
23
|
attribute: string;
|
24
|
-
type: 'select' | 'multiselect' | 'text' | 'number';
|
24
|
+
type: 'select' | 'multiselect' | 'text' | 'number' | 'macro-input';
|
25
25
|
choices?: OptionType[];
|
26
26
|
rules: ProductUploadRuleFilterType['value'][];
|
27
27
|
description?: string;
|
@@ -45,11 +45,11 @@ export type BaseProductUploadProfile = {
|
|
45
45
|
mappings: ProductUploadMapping[];
|
46
46
|
};
|
47
47
|
|
48
|
-
export type ProductUploadProfile =
|
48
|
+
export type ProductUploadProfile = BaseProductUploadProfile & {
|
49
49
|
profileIdTemplate: string;
|
50
50
|
};
|
51
51
|
|
52
|
-
export type XmlFeed
|
52
|
+
export type XmlFeed = BaseProductUploadProfile;
|
53
53
|
|
54
54
|
export type ProductUploadRules = {
|
55
55
|
sections: ProductUploadRuleSection[];
|
@@ -67,8 +67,13 @@ export type ProductUploadRuleItem = {
|
|
67
67
|
value: string | number | string[] | number[] | boolean;
|
68
68
|
};
|
69
69
|
|
70
|
-
|
71
70
|
export enum XMLFeedType {
|
72
71
|
Custom = 'Custom',
|
73
72
|
Facebook = 'Facebook',
|
74
|
-
|
73
|
+
}
|
74
|
+
|
75
|
+
export type MacroPartType = {
|
76
|
+
content: string;
|
77
|
+
type: 'macro' | 'string';
|
78
|
+
subtype?: 'mapping' | 'action';
|
79
|
+
};
|
package/src/utils/utils.ts
CHANGED
@@ -1,3 +1,72 @@
|
|
1
|
+
import { MacroPartType } from '../types/profile.types.js';
|
2
|
+
|
1
3
|
export function code () {
|
2
4
|
return (Math.random() * 1000000).toFixed(0);
|
3
5
|
}
|
6
|
+
|
7
|
+
export function parseMacrosString (textContent: string): MacroPartType[] {
|
8
|
+
const openTag = '{{';
|
9
|
+
const closeTag = '}}';
|
10
|
+
let startPos = 0;
|
11
|
+
const parts: MacroPartType[] = [];
|
12
|
+
|
13
|
+
if (!textContent) {
|
14
|
+
return [{
|
15
|
+
content: '',
|
16
|
+
type: 'string',
|
17
|
+
}]
|
18
|
+
}
|
19
|
+
|
20
|
+
while (startPos !== -1 && startPos < textContent.length) {
|
21
|
+
const nextStartPos = textContent.indexOf(openTag, startPos);
|
22
|
+
|
23
|
+
if (nextStartPos === -1) {
|
24
|
+
parts.push({
|
25
|
+
content: textContent.substring(startPos),
|
26
|
+
type: 'string',
|
27
|
+
});
|
28
|
+
break;
|
29
|
+
} else if (nextStartPos > startPos) {
|
30
|
+
parts.push({
|
31
|
+
content: textContent.substring(startPos, nextStartPos),
|
32
|
+
type: 'string',
|
33
|
+
});
|
34
|
+
}
|
35
|
+
|
36
|
+
const nextEndPos = textContent.indexOf(closeTag, nextStartPos);
|
37
|
+
|
38
|
+
if (nextEndPos === -1) {
|
39
|
+
throw new Error(
|
40
|
+
`[TAG PARSER] Cannot find closing tag for string '${textContent}' starting from ${nextStartPos}`
|
41
|
+
);
|
42
|
+
}
|
43
|
+
|
44
|
+
// console.log('check for nex opening tag', textContent.indexOf(openTag, nextStartPos + openTag.length))
|
45
|
+
const checkNextOpeningTag = textContent.indexOf(
|
46
|
+
openTag,
|
47
|
+
nextStartPos + openTag.length
|
48
|
+
);
|
49
|
+
|
50
|
+
if (checkNextOpeningTag !== -1 && checkNextOpeningTag < nextEndPos) {
|
51
|
+
throw new Error(
|
52
|
+
`[TAG PARSER] Expecting closing tag, found opening tag in '${textContent}' starting from ${nextStartPos}`
|
53
|
+
);
|
54
|
+
}
|
55
|
+
|
56
|
+
const tagValue = textContent.substring(
|
57
|
+
nextStartPos + openTag.length,
|
58
|
+
nextEndPos
|
59
|
+
);
|
60
|
+
|
61
|
+
parts.push({
|
62
|
+
content: tagValue.trim(),
|
63
|
+
type: 'macro',
|
64
|
+
subtype:
|
65
|
+
tagValue.trim().split('.')[0] === 'action' ? 'action' : 'mapping',
|
66
|
+
});
|
67
|
+
|
68
|
+
startPos = nextEndPos + closeTag.length;
|
69
|
+
}
|
70
|
+
|
71
|
+
return parts;
|
72
|
+
}
|