feed-common 1.16.2 → 1.18.0
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.d.ts +35 -0
- package/dist/constants/profile.constants.d.ts.map +1 -1
- package/dist/constants/profile.constants.js +74 -7
- 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 +39 -0
- package/dist/utils/utils.js.map +1 -1
- package/package.json +1 -1
- package/src/constants/profile.constants.ts +84 -7
- package/src/types/profile.types.ts +10 -5
- package/src/utils/utils.ts +62 -0
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
# [1.18.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.17.0...v1.18.0) (2024-07-03)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* add format macro helper function ([9336462](https://github.com/advertikon/package-maxify-feed-common/commit/9336462ee3fe381f17402b19467fe055b8625ace))
|
7
|
+
|
8
|
+
# [1.17.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.16.2...v1.17.0) (2024-07-01)
|
9
|
+
|
10
|
+
|
11
|
+
### Features
|
12
|
+
|
13
|
+
* add mapping actions ([130e705](https://github.com/advertikon/package-maxify-feed-common/commit/130e7054d7be891cf26ec7e41ddf7cf382bf2206))
|
14
|
+
|
1
15
|
## [1.16.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.16.1...v1.16.2) (2024-07-01)
|
2
16
|
|
3
17
|
|
@@ -124,40 +124,75 @@ export declare const ProductUploadRulesOperators: {
|
|
124
124
|
}[];
|
125
125
|
};
|
126
126
|
export declare const ProductUploadRuleFilters: ProductUploadRuleFilterType[];
|
127
|
+
export type MappingSourceActionType = {
|
128
|
+
label: string;
|
129
|
+
description?: string;
|
130
|
+
type: MappingSourceValueType[];
|
131
|
+
value: string;
|
132
|
+
isUnary?: boolean;
|
133
|
+
};
|
134
|
+
export declare enum MappingSourceValueType {
|
135
|
+
STRING = "string",
|
136
|
+
FLOAT = "float",
|
137
|
+
INT = "int",
|
138
|
+
BOOLEAN = "boolean"
|
139
|
+
}
|
140
|
+
export declare const ACTION_UPPERCASE = "action.uppercase";
|
141
|
+
export declare const ACTION_LOWERCASE = "action.lowercase";
|
142
|
+
export declare const ACTION_TRIM = "action.trim";
|
143
|
+
export declare const ACTION_CAPITALIZE = "action.capitalize";
|
144
|
+
export declare const ACTION_ADD = "action.add";
|
145
|
+
export declare const ACTION_SUBTRACT = "action.subtract";
|
146
|
+
export declare const ACTION_MULTIPLY = "action.multiply";
|
147
|
+
export declare const ACTION_DIVIDE = "action.divide";
|
148
|
+
export declare const MappingSourceActions: MappingSourceActionType[];
|
127
149
|
export declare const SOURCE_SHOPIFY_VENDORS = "shopify.vendor";
|
128
150
|
export declare const SOURCE_SHOPIFY_BARCODE = "shopify.barcode";
|
129
151
|
export declare const SOURCE_SHOPIFY_SKU = "shopify.sku";
|
130
152
|
export declare const SOURCE_SHOPIFY_ID = "shopify.id";
|
131
153
|
export declare const SOURCE_SHOPIFY_VENDOR_ID = "shopify.vendor_id";
|
132
154
|
export declare const SOURCE_SHOPIFY_TITLE = "shopify.title";
|
155
|
+
export declare const SOURCE_SHOPIFY_PRICE = "shopify.price";
|
133
156
|
export declare const ShopifyProductSource: {
|
134
157
|
vendor: {
|
135
158
|
label: string;
|
136
159
|
value: string;
|
160
|
+
type: MappingSourceValueType;
|
137
161
|
};
|
138
162
|
barcode: {
|
139
163
|
label: string;
|
140
164
|
value: string;
|
165
|
+
type: MappingSourceValueType;
|
141
166
|
};
|
142
167
|
sku: {
|
143
168
|
label: string;
|
144
169
|
value: string;
|
170
|
+
type: MappingSourceValueType;
|
145
171
|
};
|
146
172
|
id: {
|
147
173
|
label: string;
|
148
174
|
value: string;
|
175
|
+
type: MappingSourceValueType;
|
149
176
|
};
|
150
177
|
vendor_id: {
|
151
178
|
label: string;
|
152
179
|
value: string;
|
180
|
+
type: MappingSourceValueType;
|
153
181
|
};
|
154
182
|
title: {
|
155
183
|
label: string;
|
156
184
|
value: string;
|
185
|
+
type: MappingSourceValueType;
|
186
|
+
};
|
187
|
+
price: {
|
188
|
+
label: string;
|
189
|
+
value: string;
|
190
|
+
type: MappingSourceValueType;
|
157
191
|
};
|
158
192
|
custom: {
|
159
193
|
label: string;
|
160
194
|
value: string;
|
195
|
+
type: MappingSourceValueType;
|
161
196
|
};
|
162
197
|
};
|
163
198
|
export declare const ProductUploadMappings: ProductUploadMapSource[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"profile.constants.d.ts","sourceRoot":"","sources":["../../src/constants/profile.constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAEhG,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,WAAW,eAAe,CAAC;AACxC,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAE5C,oBAAY,eAAe;IACvB,QAAQ,aAAa;IACrB,YAAY,gBAAgB;IAC5B,MAAM,WAAW;IACjB,UAAU,cAAc;IACxB,WAAW,eAAe;IAC1B,eAAe,kBAAkB;IACjC,SAAS,aAAa;IACtB,aAAa,gBAAgB;IAC7B,EAAE,OAAO;IACT,MAAM,UAAU;IAChB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,aAAa,gBAAgB;IAC7B,gBAAgB,mBAAmB;CACtC;AAED,oBAAY,gBAAgB;IACxB,KAAK,U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Type;
|
178
|
+
(function (MappingSourceValueType) {
|
179
|
+
MappingSourceValueType["STRING"] = "string";
|
180
|
+
MappingSourceValueType["FLOAT"] = "float";
|
181
|
+
MappingSourceValueType["INT"] = "int";
|
182
|
+
MappingSourceValueType["BOOLEAN"] = "boolean";
|
183
|
+
})(MappingSourceValueType || (MappingSourceValueType = {}));
|
184
|
+
export const ACTION_UPPERCASE = 'action.uppercase';
|
185
|
+
export const ACTION_LOWERCASE = 'action.lowercase';
|
186
|
+
export const ACTION_TRIM = 'action.trim';
|
187
|
+
export const ACTION_CAPITALIZE = 'action.capitalize';
|
188
|
+
export const ACTION_ADD = 'action.add';
|
189
|
+
export const ACTION_SUBTRACT = 'action.subtract';
|
190
|
+
export const ACTION_MULTIPLY = 'action.multiply';
|
191
|
+
export const ACTION_DIVIDE = 'action.divide';
|
192
|
+
export const MappingSourceActions = [{
|
193
|
+
label: 'Uppercase',
|
194
|
+
description: 'Convert all words to uppercase',
|
195
|
+
type: [MappingSourceValueType.STRING],
|
196
|
+
value: ACTION_UPPERCASE,
|
197
|
+
isUnary: true,
|
198
|
+
}, {
|
199
|
+
label: 'Lowercase',
|
200
|
+
description: 'Convert all words to lowercase',
|
201
|
+
type: [MappingSourceValueType.STRING],
|
202
|
+
value: ACTION_LOWERCASE,
|
203
|
+
isUnary: true,
|
204
|
+
}, {
|
205
|
+
label: 'Trim',
|
206
|
+
description: 'Remove leading and trailing whitespace',
|
207
|
+
type: [MappingSourceValueType.STRING],
|
208
|
+
value: ACTION_TRIM,
|
209
|
+
isUnary: true,
|
210
|
+
}, {
|
211
|
+
label: 'Capitalize',
|
212
|
+
description: 'Capitalize the first letter of each word',
|
213
|
+
type: [MappingSourceValueType.STRING],
|
214
|
+
value: ACTION_CAPITALIZE,
|
215
|
+
isUnary: true,
|
216
|
+
}, {
|
217
|
+
label: 'Add',
|
218
|
+
description: 'Add a value to the current value',
|
219
|
+
type: [MappingSourceValueType.FLOAT, MappingSourceValueType.INT],
|
220
|
+
value: ACTION_ADD,
|
221
|
+
isUnary: false
|
222
|
+
}, {
|
223
|
+
label: 'Subtract',
|
224
|
+
description: 'Subtract a value from the current value',
|
225
|
+
type: [MappingSourceValueType.FLOAT, MappingSourceValueType.INT],
|
226
|
+
value: ACTION_SUBTRACT,
|
227
|
+
isUnary: false
|
228
|
+
}, {
|
229
|
+
label: 'Multiply',
|
230
|
+
description: 'Multiply the current value by a value',
|
231
|
+
type: [MappingSourceValueType.FLOAT, MappingSourceValueType.INT],
|
232
|
+
value: ACTION_MULTIPLY,
|
233
|
+
isUnary: false
|
234
|
+
}, {
|
235
|
+
label: 'Divide',
|
236
|
+
description: 'Divide the current value by a value',
|
237
|
+
type: [MappingSourceValueType.FLOAT, MappingSourceValueType.INT],
|
238
|
+
value: ACTION_DIVIDE,
|
239
|
+
isUnary: false
|
240
|
+
}
|
241
|
+
];
|
177
242
|
export const SOURCE_SHOPIFY_VENDORS = 'shopify.vendor';
|
178
243
|
export const SOURCE_SHOPIFY_BARCODE = 'shopify.barcode';
|
179
244
|
export const SOURCE_SHOPIFY_SKU = 'shopify.sku';
|
180
245
|
export const SOURCE_SHOPIFY_ID = 'shopify.id';
|
181
246
|
export const SOURCE_SHOPIFY_VENDOR_ID = 'shopify.vendor_id';
|
182
247
|
export const SOURCE_SHOPIFY_TITLE = 'shopify.title';
|
248
|
+
export const SOURCE_SHOPIFY_PRICE = 'shopify.price';
|
183
249
|
export const ShopifyProductSource = {
|
184
|
-
vendor: { label: 'Shopify Product Vendor', value: SOURCE_SHOPIFY_VENDORS },
|
185
|
-
barcode: { label: 'Shopify Product Barcode', value: SOURCE_SHOPIFY_BARCODE },
|
186
|
-
sku: { label: 'Shopify Product SKU', value: SOURCE_SHOPIFY_SKU },
|
187
|
-
id: { label: 'Shopify Product ID', value:
|
188
|
-
vendor_id: { label: 'Shopify Vendor ID', value: SOURCE_SHOPIFY_VENDOR_ID },
|
189
|
-
title: { label: 'Shopify Product Title', value: SOURCE_SHOPIFY_TITLE },
|
190
|
-
|
250
|
+
vendor: { label: 'Shopify Product Vendor', value: SOURCE_SHOPIFY_VENDORS, type: MappingSourceValueType.STRING },
|
251
|
+
barcode: { label: 'Shopify Product Barcode', value: SOURCE_SHOPIFY_BARCODE, type: MappingSourceValueType.STRING },
|
252
|
+
sku: { label: 'Shopify Product SKU', value: SOURCE_SHOPIFY_SKU, type: MappingSourceValueType.STRING },
|
253
|
+
id: { label: 'Shopify Product ID', value: SOURCE_SHOPIFY_ID, type: MappingSourceValueType.STRING },
|
254
|
+
vendor_id: { label: 'Shopify Vendor ID', value: SOURCE_SHOPIFY_VENDOR_ID, type: MappingSourceValueType.STRING },
|
255
|
+
title: { label: 'Shopify Product Title', value: SOURCE_SHOPIFY_TITLE, type: MappingSourceValueType.STRING },
|
256
|
+
price: { label: 'Shopify Product Price', value: SOURCE_SHOPIFY_PRICE, type: MappingSourceValueType.FLOAT },
|
257
|
+
custom: { label: 'Custom input', value: SOURCE_CUSTOM, type: MappingSourceValueType.STRING },
|
191
258
|
};
|
192
259
|
export const ProductUploadMappings = [
|
193
260
|
{
|
@@ -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,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C9B,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,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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ACN,6CAA6C;IAC7C,MAAM;IACN,4BAA4B;IAC5B,MAAM;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"}
|
@@ -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,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAEzF,MAAM,MAAM,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1D,MAAM,MAAM,6BAA6B,GAAG,UAAU,CAAC;AAEvD,MAAM,MAAM,2BAA2B,GAAG;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,6BAA6B,EAAE,CAAC;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,OAAO,aAAa,CAAC;AACrD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,CAAC;AACxE,MAAM,MAAM,cAAc,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,cAAc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,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC;CAC1D,CAAC;AAEF,oBAAY,WAAW;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACxB;AAED,MAAM,MAAM,aAAa,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAClC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"profile.types.js","sourceRoot":"","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,CA0DvE"}
|
package/dist/utils/utils.js
CHANGED
@@ -1,4 +1,43 @@
|
|
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
|
+
while (startPos !== -1 && startPos < textContent.length) {
|
10
|
+
const nextStartPos = textContent.indexOf(openTag, startPos);
|
11
|
+
if (nextStartPos === -1) {
|
12
|
+
parts.push({
|
13
|
+
content: textContent.substring(startPos),
|
14
|
+
type: 'string',
|
15
|
+
});
|
16
|
+
break;
|
17
|
+
}
|
18
|
+
else if (nextStartPos > startPos) {
|
19
|
+
parts.push({
|
20
|
+
content: textContent.substring(startPos, nextStartPos),
|
21
|
+
type: 'string',
|
22
|
+
});
|
23
|
+
}
|
24
|
+
const nextEndPos = textContent.indexOf(closeTag, nextStartPos);
|
25
|
+
if (nextEndPos === -1) {
|
26
|
+
throw new Error(`[TAG PARSER] Cannot find closing tag for string '${textContent}' starting from ${nextStartPos}`);
|
27
|
+
}
|
28
|
+
// console.log('check for nex opening tag', textContent.indexOf(openTag, nextStartPos + openTag.length))
|
29
|
+
const checkNextOpeningTag = textContent.indexOf(openTag, nextStartPos + openTag.length);
|
30
|
+
if (checkNextOpeningTag !== -1 && checkNextOpeningTag < nextEndPos) {
|
31
|
+
throw new Error(`[TAG PARSER] Expecting closing tag, found opening tag in '${textContent}' starting from ${nextStartPos}`);
|
32
|
+
}
|
33
|
+
const tagValue = textContent.substring(nextStartPos + openTag.length, nextEndPos);
|
34
|
+
parts.push({
|
35
|
+
content: tagValue.trim(),
|
36
|
+
type: 'macro',
|
37
|
+
subtype: tagValue.trim().split('.')[0] === 'action' ? 'action' : 'mapping',
|
38
|
+
});
|
39
|
+
startPos = nextEndPos + closeTag.length;
|
40
|
+
}
|
41
|
+
return parts;
|
42
|
+
}
|
4
43
|
//# 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":[],"m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,CAC7C,OAAO,EACP,YAAY,GAAG,OAAO,CAAC,MAAM,CAC9B,CAAC;QAEF,IAAI,mBAAmB,KAAK,CAAC,CAAC,IAAI,mBAAmB,GAAG,UAAU,EAAE,CAAC;YACnE,MAAM,IAAI,KAAK,CACb,6DAA6D,WAAW,mBAAmB,YAAY,EAAE,CAC1G,CAAC;QACJ,CAAC;QAED,MAAM,QAAQ,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
@@ -183,21 +183,98 @@ export const ProductUploadRuleFilters: ProductUploadRuleFilterType[] = [
|
|
183
183
|
},
|
184
184
|
];
|
185
185
|
|
186
|
+
export type MappingSourceActionType = {
|
187
|
+
label: string,
|
188
|
+
description?: string,
|
189
|
+
type: MappingSourceValueType[],
|
190
|
+
value: string,
|
191
|
+
isUnary?: boolean,
|
192
|
+
}
|
193
|
+
|
194
|
+
export enum MappingSourceValueType {
|
195
|
+
STRING = 'string',
|
196
|
+
FLOAT = 'float',
|
197
|
+
INT = 'int',
|
198
|
+
BOOLEAN = 'boolean',
|
199
|
+
}
|
200
|
+
|
201
|
+
export const ACTION_UPPERCASE = 'action.uppercase';
|
202
|
+
export const ACTION_LOWERCASE = 'action.lowercase';
|
203
|
+
export const ACTION_TRIM = 'action.trim';
|
204
|
+
export const ACTION_CAPITALIZE = 'action.capitalize';
|
205
|
+
export const ACTION_ADD = 'action.add';
|
206
|
+
export const ACTION_SUBTRACT = 'action.subtract';
|
207
|
+
export const ACTION_MULTIPLY = 'action.multiply';
|
208
|
+
export const ACTION_DIVIDE = 'action.divide';
|
209
|
+
|
210
|
+
export const MappingSourceActions: MappingSourceActionType[] = [{
|
211
|
+
label: 'Uppercase',
|
212
|
+
description: 'Convert all words to uppercase',
|
213
|
+
type: [MappingSourceValueType.STRING],
|
214
|
+
value: ACTION_UPPERCASE,
|
215
|
+
isUnary: true,
|
216
|
+
}, {
|
217
|
+
label: 'Lowercase',
|
218
|
+
description: 'Convert all words to lowercase',
|
219
|
+
type: [MappingSourceValueType.STRING],
|
220
|
+
value: ACTION_LOWERCASE,
|
221
|
+
isUnary: true,
|
222
|
+
}, {
|
223
|
+
label: 'Trim',
|
224
|
+
description: 'Remove leading and trailing whitespace',
|
225
|
+
type: [MappingSourceValueType.STRING],
|
226
|
+
value: ACTION_TRIM,
|
227
|
+
isUnary: true,
|
228
|
+
}, {
|
229
|
+
label: 'Capitalize',
|
230
|
+
description: 'Capitalize the first letter of each word',
|
231
|
+
type: [MappingSourceValueType.STRING],
|
232
|
+
value: ACTION_CAPITALIZE,
|
233
|
+
isUnary: true,
|
234
|
+
}, {
|
235
|
+
label: 'Add',
|
236
|
+
description: 'Add a value to the current value',
|
237
|
+
type: [MappingSourceValueType.FLOAT, MappingSourceValueType.INT],
|
238
|
+
value: ACTION_ADD,
|
239
|
+
isUnary: false
|
240
|
+
}, {
|
241
|
+
label: 'Subtract',
|
242
|
+
description: 'Subtract a value from the current value',
|
243
|
+
type: [MappingSourceValueType.FLOAT, MappingSourceValueType.INT],
|
244
|
+
value: ACTION_SUBTRACT,
|
245
|
+
isUnary: false
|
246
|
+
}, {
|
247
|
+
label: 'Multiply',
|
248
|
+
description: 'Multiply the current value by a value',
|
249
|
+
type: [MappingSourceValueType.FLOAT, MappingSourceValueType.INT],
|
250
|
+
value: ACTION_MULTIPLY,
|
251
|
+
isUnary: false
|
252
|
+
}, {
|
253
|
+
label: 'Divide',
|
254
|
+
description: 'Divide the current value by a value',
|
255
|
+
type: [MappingSourceValueType.FLOAT, MappingSourceValueType.INT],
|
256
|
+
value: ACTION_DIVIDE,
|
257
|
+
isUnary: false
|
258
|
+
}
|
259
|
+
];
|
260
|
+
|
186
261
|
export const SOURCE_SHOPIFY_VENDORS = 'shopify.vendor';
|
187
262
|
export const SOURCE_SHOPIFY_BARCODE = 'shopify.barcode';
|
188
263
|
export const SOURCE_SHOPIFY_SKU = 'shopify.sku';
|
189
264
|
export const SOURCE_SHOPIFY_ID = 'shopify.id';
|
190
265
|
export const SOURCE_SHOPIFY_VENDOR_ID = 'shopify.vendor_id';
|
191
266
|
export const SOURCE_SHOPIFY_TITLE = 'shopify.title';
|
267
|
+
export const SOURCE_SHOPIFY_PRICE = 'shopify.price';
|
192
268
|
|
193
269
|
export const ShopifyProductSource = {
|
194
|
-
vendor: { label: 'Shopify Product Vendor', value: SOURCE_SHOPIFY_VENDORS },
|
195
|
-
barcode: { label: 'Shopify Product Barcode', value: SOURCE_SHOPIFY_BARCODE },
|
196
|
-
sku: { label: 'Shopify Product SKU', value: SOURCE_SHOPIFY_SKU },
|
197
|
-
id: { label: 'Shopify Product ID', value:
|
198
|
-
vendor_id: { label: 'Shopify Vendor ID', value: SOURCE_SHOPIFY_VENDOR_ID },
|
199
|
-
title: { label: 'Shopify Product Title', value: SOURCE_SHOPIFY_TITLE },
|
200
|
-
|
270
|
+
vendor: { label: 'Shopify Product Vendor', value: SOURCE_SHOPIFY_VENDORS, type: MappingSourceValueType.STRING },
|
271
|
+
barcode: { label: 'Shopify Product Barcode', value: SOURCE_SHOPIFY_BARCODE, type: MappingSourceValueType.STRING },
|
272
|
+
sku: { label: 'Shopify Product SKU', value: SOURCE_SHOPIFY_SKU, type: MappingSourceValueType.STRING },
|
273
|
+
id: { label: 'Shopify Product ID', value: SOURCE_SHOPIFY_ID, type: MappingSourceValueType.STRING },
|
274
|
+
vendor_id: { label: 'Shopify Vendor ID', value: SOURCE_SHOPIFY_VENDOR_ID, type: MappingSourceValueType.STRING },
|
275
|
+
title: { label: 'Shopify Product Title', value: SOURCE_SHOPIFY_TITLE, type: MappingSourceValueType.STRING },
|
276
|
+
price: { label: 'Shopify Product Price', value: SOURCE_SHOPIFY_PRICE, type: MappingSourceValueType.FLOAT },
|
277
|
+
custom: { label: 'Custom input', value: SOURCE_CUSTOM, type: MappingSourceValueType.STRING },
|
201
278
|
};
|
202
279
|
|
203
280
|
export const ProductUploadMappings: ProductUploadMapSource[] = [
|
@@ -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,65 @@
|
|
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
|
+
while (startPos !== -1 && startPos < textContent.length) {
|
14
|
+
const nextStartPos = textContent.indexOf(openTag, startPos);
|
15
|
+
|
16
|
+
if (nextStartPos === -1) {
|
17
|
+
parts.push({
|
18
|
+
content: textContent.substring(startPos),
|
19
|
+
type: 'string',
|
20
|
+
});
|
21
|
+
break;
|
22
|
+
} else if (nextStartPos > startPos) {
|
23
|
+
parts.push({
|
24
|
+
content: textContent.substring(startPos, nextStartPos),
|
25
|
+
type: 'string',
|
26
|
+
});
|
27
|
+
}
|
28
|
+
|
29
|
+
const nextEndPos = textContent.indexOf(closeTag, nextStartPos);
|
30
|
+
|
31
|
+
if (nextEndPos === -1) {
|
32
|
+
throw new Error(
|
33
|
+
`[TAG PARSER] Cannot find closing tag for string '${textContent}' starting from ${nextStartPos}`
|
34
|
+
);
|
35
|
+
}
|
36
|
+
|
37
|
+
// console.log('check for nex opening tag', textContent.indexOf(openTag, nextStartPos + openTag.length))
|
38
|
+
const checkNextOpeningTag = textContent.indexOf(
|
39
|
+
openTag,
|
40
|
+
nextStartPos + openTag.length
|
41
|
+
);
|
42
|
+
|
43
|
+
if (checkNextOpeningTag !== -1 && checkNextOpeningTag < nextEndPos) {
|
44
|
+
throw new Error(
|
45
|
+
`[TAG PARSER] Expecting closing tag, found opening tag in '${textContent}' starting from ${nextStartPos}`
|
46
|
+
);
|
47
|
+
}
|
48
|
+
|
49
|
+
const tagValue = textContent.substring(
|
50
|
+
nextStartPos + openTag.length,
|
51
|
+
nextEndPos
|
52
|
+
);
|
53
|
+
|
54
|
+
parts.push({
|
55
|
+
content: tagValue.trim(),
|
56
|
+
type: 'macro',
|
57
|
+
subtype:
|
58
|
+
tagValue.trim().split('.')[0] === 'action' ? 'action' : 'mapping',
|
59
|
+
});
|
60
|
+
|
61
|
+
startPos = nextEndPos + closeTag.length;
|
62
|
+
}
|
63
|
+
|
64
|
+
return parts;
|
65
|
+
}
|