feed-common 1.51.6 → 1.53.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/types/profile.types.d.ts +1 -0
- package/dist/types/profile.types.d.ts.map +1 -1
- package/dist/utils/feed-templates/google-api.template.d.ts.map +1 -1
- package/dist/utils/feed-templates/google-api.template.js +8 -1
- package/dist/utils/feed-templates/google-api.template.js.map +1 -1
- package/dist/utils/feed-templates/index.d.ts +1 -0
- package/dist/utils/feed-templates/index.d.ts.map +1 -1
- package/dist/utils/feed-templates/index.js +24 -5
- package/dist/utils/feed-templates/index.js.map +1 -1
- package/dist/utils/utils.d.ts +11 -1
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +32 -0
- package/dist/utils/utils.js.map +1 -1
- package/package.json +1 -1
- package/src/types/profile.types.ts +1 -0
- package/src/utils/feed-templates/google-api.template.ts +9 -2
- package/src/utils/feed-templates/index.ts +25 -5
- package/src/utils/utils.ts +48 -1
- package/tests/utils.spec.ts +43 -0
- package/tests/validator.spec.ts +19 -14
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
# [1.53.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.52.0...v1.53.0) (2024-10-13)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* update GMC API template ([5dec94b](https://github.com/advertikon/package-maxify-feed-common/commit/5dec94b6d953a4c9b2be9ab1c158a6abce63a5a0))
|
7
|
+
|
8
|
+
# [1.52.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.51.6...v1.52.0) (2024-10-13)
|
9
|
+
|
10
|
+
|
11
|
+
### Features
|
12
|
+
|
13
|
+
* add some source tag util functions ([b53def7](https://github.com/advertikon/package-maxify-feed-common/commit/b53def7e09e6f0842766d55dc5cff84afb282b61))
|
14
|
+
|
1
15
|
## [1.51.6](https://github.com/advertikon/package-maxify-feed-common/compare/v1.51.5...v1.51.6) (2024-10-13)
|
2
16
|
|
3
17
|
|
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AAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,sBAAsB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,sBAAsB,CAAA;IAC5B,KAAK,EAAE,MAAM,CAAC;CACjB,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"google-api.template.d.ts","sourceRoot":"","sources":["../../../src/utils/feed-templates/google-api.template.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"google-api.template.d.ts","sourceRoot":"","sources":["../../../src/utils/feed-templates/google-api.template.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AA+B3F,eAAO,MAAM,iBAAiB,EAAE,mBAq/B/B,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/* eslint-disable quotes */
|
2
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
3
3
|
/* eslint-disable max-len */
|
4
|
-
import { dateRangeSchema, languageSchema, measureUnitsSchema, priceSchema, validateIfNoMacro } from './index.js';
|
4
|
+
import { countrySchema, dateRangeSchema, languageSchema, measureUnitsSchema, priceSchema, validateIfNoMacro } from './index.js';
|
5
5
|
import { SOURCE_LANGUAGE, XmlFeedFormat } from '../../constants/profile.constants.js';
|
6
6
|
import { z } from 'zod';
|
7
7
|
import { ulid } from 'ulid';
|
@@ -15,6 +15,7 @@ const availabilityMapping = {
|
|
15
15
|
rules: { sections: [] },
|
16
16
|
baseMode: true,
|
17
17
|
defaultValue: '',
|
18
|
+
singleChoice: true,
|
18
19
|
};
|
19
20
|
const customLabelMapping = {
|
20
21
|
attribute: '',
|
@@ -51,6 +52,7 @@ export const googleApiTemplate = {
|
|
51
52
|
rules: { sections: [] },
|
52
53
|
baseMode: true,
|
53
54
|
validator: (v) => validateIfNoMacro(v, [languageSchema, z.string().min(2, { message: 'Language should be 2 characters long' })]),
|
55
|
+
singleChoice: true,
|
54
56
|
},
|
55
57
|
{
|
56
58
|
attribute: 'targetCountry',
|
@@ -60,7 +62,9 @@ export const googleApiTemplate = {
|
|
60
62
|
type: 'macro-input',
|
61
63
|
defaultValue: '',
|
62
64
|
rules: { sections: [] },
|
65
|
+
validator: (v) => validateIfNoMacro(v, [countrySchema, z.string().min(2, { message: 'Country code should be 2 characters long' })]),
|
63
66
|
baseMode: true,
|
67
|
+
singleChoice: true,
|
64
68
|
},
|
65
69
|
{
|
66
70
|
attribute: 'title',
|
@@ -94,6 +98,7 @@ export const googleApiTemplate = {
|
|
94
98
|
defaultValue: 'https://{{shopify.shop_domain}}/products/{{shopify.handle}}',
|
95
99
|
rules: { sections: [] },
|
96
100
|
baseMode: true,
|
101
|
+
singleChoice: true,
|
97
102
|
},
|
98
103
|
{
|
99
104
|
attribute: 'imageLink',
|
@@ -105,6 +110,7 @@ export const googleApiTemplate = {
|
|
105
110
|
defaultValue: '{{shopify.image}}',
|
106
111
|
rules: { sections: [] },
|
107
112
|
baseMode: true,
|
113
|
+
singleChoice: true,
|
108
114
|
},
|
109
115
|
{
|
110
116
|
attribute: 'additionalImageLinks',
|
@@ -240,6 +246,7 @@ export const googleApiTemplate = {
|
|
240
246
|
defaultValue: '{{shopify.price}} {{shopify.shop_currency}}',
|
241
247
|
rules: { sections: [] },
|
242
248
|
baseMode: true,
|
249
|
+
singleChoice: true,
|
243
250
|
},
|
244
251
|
{
|
245
252
|
attribute: 'salePrice',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"google-api.template.js","sourceRoot":"","sources":["../../../src/utils/feed-templates/google-api.template.ts"],"names":[],"mappings":"AAAA,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YACf,IAAI,EAAE,aAAa;YACnB,YAAY,EAAE,EAAE;YAChB,qCAAqC;YACrC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;SAC1B;QACD;YACI,SAAS,EAAE,aAAa;YACxB,KAAK,EAAE,cAAc;YACrB,WAAW,EACP,4JAA4J;YAChK,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,aAAa;YACnB,YAAY,EAAE,EAAE;YAChB,SAAS,EAAE,CAAC,CAAkB,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC5E,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;SAC1B;KACJ;CACJ,CAAC"}
|
1
|
+
{"version":3,"file":"google-api.template.js","sourceRoot":"","sources":["../../../src/utils/feed-templates/google-api.template.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,uDAAuD;AACvD,4BAA4B;AAC5B,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,kBAAkB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAChI,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,MAAM,mBAAmB,GAA2B;IAChD,SAAS,EAAE,cAAc;IACzB,KAAK,EAAE,cAAc;IACrB,WAAW,EACP,gJAAgJ;IACpJ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,aAAoB;IAC1B,SAAS,EAAE,CAAC,CAAkB,EAAE,EAAE,CAC9B,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC;IACvF,KAAK,EAAE,EA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AAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC5E,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;SAC1B;KACJ;CACJ,CAAC"}
|
@@ -12,6 +12,7 @@ export declare const optionalUrlSchema: z.ZodEffects<z.ZodString, string, string
|
|
12
12
|
export declare function getTemplate(type: XMLFeedType): XmlFeedTemplateType;
|
13
13
|
export declare const currencySchema: z.ZodEnum<["AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BOV", "BRL", "BSD", "BTN", "BWP", "BYN", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLF", "CLP", "CNY", "COP", "COU", "CRC", "CUC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "FOK", "GBP", "GEL", "GGP", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HRK", "HTG", "HUF", "IDR", "ILS", "IMP", "INR", "IQD", "IRR", "ISK", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KID", "KMF", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRU", "MUR", "MVR", "MWK", "MXN", "MXV", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLE", "SLL", "SOS", "SRD", "SSP", "STN", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TVD", "TWD", "TZS", "UAH", "UGX", "USD", "USN", "UYI", "UYU", "UYW", "UZS", "VED", "VES", "VND", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XOF", "XPD", "XPF", "XPT", "XSU", "XTS", "XUA", "XXX", "YER", "ZAR", "ZMW", "ZWL"]>;
|
14
14
|
export declare const languageSchema: z.ZodEffects<z.ZodString, string, string>;
|
15
|
+
export declare const countrySchema: z.ZodEffects<z.ZodString, string, string>;
|
15
16
|
export declare const priceRegex: RegExp;
|
16
17
|
export declare const priceSchema: ({ min, max }?: {
|
17
18
|
min?: number | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/feed-templates/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAGnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/feed-templates/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAGnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAOnE,eAAO,MAAM,QAAQ,MAAO,MAAM,YAA2D,CAAC;AAC9F,eAAO,MAAM,WAAW,MAAO,MAAM,WAAiC,CAAC;AAEvE,wBAAgB,QAAQ,CACpB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,SAAS,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,EAC5B,SAAS,UAAO,GACjB,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC,CAY/B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EA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AM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB,CAcA;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAUvD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAEnD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/C"}
|
@@ -7,8 +7,9 @@ import { googleFeedTemplate } from './google.template.js';
|
|
7
7
|
import { tiktokFeedTemplate } from './tiktok.template.js';
|
8
8
|
import { microsoftTemplate } from './microsoft.template.js';
|
9
9
|
import { googleApiTemplate } from './google-api.template.js';
|
10
|
-
|
11
|
-
export const
|
10
|
+
import { getSourceTagValue } from '../utils.js';
|
11
|
+
export const hasMacro = (v) => /{{[^}]+}}/.test(v.replaceAll(/{{source\..+?}}/g, ''));
|
12
|
+
export const removeMacro = (v) => v.replaceAll(/{{.+?}}/g, '');
|
12
13
|
export function validate(value, validator, skipEmpty = true) {
|
13
14
|
let valueToValidate = value;
|
14
15
|
if (typeof value === 'string') {
|
@@ -38,9 +39,9 @@ export function resolveSourceMacro(macro) {
|
|
38
39
|
if (typeof macro !== 'string') {
|
39
40
|
return macro;
|
40
41
|
}
|
41
|
-
return macro.replace(/{{source
|
42
|
-
const
|
43
|
-
return value;
|
42
|
+
return macro.replace(/{{source\..+?}}/g, (macro) => {
|
43
|
+
const { value } = getSourceTagValue(macro.slice(2, -2));
|
44
|
+
return value?.map(v => v.value)?.join(', ') ?? '';
|
44
45
|
});
|
45
46
|
}
|
46
47
|
export const dateRangeSchema = z
|
@@ -133,6 +134,24 @@ export const languageSchema = z.string().refine(v => !v || [
|
|
133
134
|
'ty', 'ug', 'uk', 'ur', 'uz', 've', 'vi', 'vo', 'wa', 'wo', 'xh', 'yi',
|
134
135
|
'yo', 'za', 'zh', 'zu'
|
135
136
|
].includes(v.toLowerCase()), { message: 'Invalid language code' });
|
137
|
+
export const countrySchema = z.string().refine(v => !v || [
|
138
|
+
'AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ',
|
139
|
+
'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS',
|
140
|
+
'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN',
|
141
|
+
'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE',
|
142
|
+
'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG',
|
143
|
+
'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR',
|
144
|
+
'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP',
|
145
|
+
'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK',
|
146
|
+
'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM',
|
147
|
+
'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE',
|
148
|
+
'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK',
|
149
|
+
'PL', 'PM', 'PN', 'PR', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC',
|
150
|
+
'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX',
|
151
|
+
'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV',
|
152
|
+
'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS',
|
153
|
+
'YE', 'YT', 'ZA', 'ZM', 'ZW'
|
154
|
+
].includes(v.toUpperCase()), { message: 'Invalid country code' });
|
136
155
|
export const priceRegex = /^(?<value>\d+(?:\.\d{1,2})?)\s*(?<currency>\w+)$/;
|
137
156
|
export const priceSchema = ({ min = 0, max = 1000000 } = {}) => z.string().superRefine((v, ctx) => {
|
138
157
|
if (!v) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/feed-templates/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAuB,CAAC,EAAW,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,WA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O,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AACnE,CAAC"}
|
package/dist/utils/utils.d.ts
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
-
import { MacroPartType } from '../types/profile.types.js';
|
1
|
+
import { MacroPartType, SelectItem } from '../types/profile.types.js';
|
2
2
|
export declare function code(): string;
|
3
3
|
export declare function parseMacrosString(textContent: string): MacroPartType[];
|
4
|
+
export declare function isJSON(input: any): input is string;
|
5
|
+
export declare function isSourceJSON(input: any): input is string;
|
6
|
+
export declare function getSourceTagParts(content: string): {
|
7
|
+
tag: string;
|
8
|
+
value: string | null;
|
9
|
+
};
|
10
|
+
export declare function getSourceTagValue(content: string): {
|
11
|
+
tag: string;
|
12
|
+
value: SelectItem[] | null;
|
13
|
+
};
|
4
14
|
//# sourceMappingURL=utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEtE,wBAAgB,IAAI,WAEnB;AAED,wBAAgB,iBAAiB,CAAE,WAAW,EAAE,MAAM,GAAG,aAAa,EAAE,CA4DvE;AAeD,wBAAgB,MAAM,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,MAAM,CAOhD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,MAAM,CAYxD;AAEH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG;IAChD,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAMA;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG;IAClD,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;CAC5B,CAOA"}
|
package/dist/utils/utils.js
CHANGED
@@ -60,4 +60,36 @@ function getMacroSubtype(tagValue) {
|
|
60
60
|
return 'mapping';
|
61
61
|
}
|
62
62
|
}
|
63
|
+
export function isJSON(input) {
|
64
|
+
try {
|
65
|
+
JSON.parse(input);
|
66
|
+
return true;
|
67
|
+
}
|
68
|
+
catch (e) {
|
69
|
+
return false;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
export function isSourceJSON(input) {
|
73
|
+
if (!isJSON(input)) {
|
74
|
+
return false;
|
75
|
+
}
|
76
|
+
const content = JSON.parse(input);
|
77
|
+
if (Array.isArray(content)) {
|
78
|
+
return content.every((item) => item?.label !== undefined && item?.value !== undefined);
|
79
|
+
}
|
80
|
+
return content?.label !== undefined && content?.value !== undefined;
|
81
|
+
}
|
82
|
+
export function getSourceTagParts(content) {
|
83
|
+
const splitPoint = content.indexOf(":");
|
84
|
+
const tag = splitPoint !== -1 ? content.slice(0, splitPoint) : content;
|
85
|
+
const value = splitPoint !== -1 ? content.slice(splitPoint + 1) : null;
|
86
|
+
return { tag, value };
|
87
|
+
}
|
88
|
+
export function getSourceTagValue(content) {
|
89
|
+
const splitPoint = content.indexOf(":");
|
90
|
+
const tag = splitPoint !== -1 ? content.slice(0, splitPoint) : content;
|
91
|
+
const valueText = splitPoint !== -1 ? content.slice(splitPoint + 1) : null;
|
92
|
+
const value = isSourceJSON(valueText) ? JSON.parse(valueText) : null;
|
93
|
+
return { tag, value: value && !Array.isArray(value) ? [value] : value };
|
94
|
+
}
|
63
95
|
//# 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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AAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC3E,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAErE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;AAC1E,CAAC"}
|
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
/* eslint-disable quotes */
|
2
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
3
3
|
/* eslint-disable max-len */
|
4
|
-
import { dateRangeSchema, languageSchema, measureUnitsSchema, priceSchema, validateIfNoMacro } from './index.js';
|
5
|
-
import {
|
4
|
+
import { countrySchema, dateRangeSchema, languageSchema, measureUnitsSchema, priceSchema, validateIfNoMacro } from './index.js';
|
5
|
+
import { SOURCE_LANGUAGE, XmlFeedFormat } from '../../constants/profile.constants.js';
|
6
6
|
import { ProductUploadMapSource, XmlFeedTemplateType } from '../../types/profile.types.js';
|
7
7
|
import { z } from 'zod';
|
8
8
|
import { ulid } from 'ulid';
|
@@ -19,6 +19,7 @@ const availabilityMapping: ProductUploadMapSource = {
|
|
19
19
|
rules: { sections: [] },
|
20
20
|
baseMode: true,
|
21
21
|
defaultValue: '',
|
22
|
+
singleChoice: true,
|
22
23
|
};
|
23
24
|
|
24
25
|
const customLabelMapping: ProductUploadMapSource = {
|
@@ -59,6 +60,7 @@ export const googleApiTemplate: XmlFeedTemplateType = {
|
|
59
60
|
rules: { sections: [] },
|
60
61
|
baseMode: true,
|
61
62
|
validator: (v: string | number) => validateIfNoMacro(v, [languageSchema, z.string().min(2, { message: 'Language should be 2 characters long' })]),
|
63
|
+
singleChoice: true,
|
62
64
|
},
|
63
65
|
{
|
64
66
|
attribute: 'targetCountry',
|
@@ -68,7 +70,9 @@ export const googleApiTemplate: XmlFeedTemplateType = {
|
|
68
70
|
type: 'macro-input',
|
69
71
|
defaultValue: '',
|
70
72
|
rules: { sections: [] },
|
73
|
+
validator: (v: string | number) => validateIfNoMacro(v, [countrySchema, z.string().min(2, { message: 'Country code should be 2 characters long' })]),
|
71
74
|
baseMode: true,
|
75
|
+
singleChoice: true,
|
72
76
|
},
|
73
77
|
{
|
74
78
|
attribute: 'title',
|
@@ -104,6 +108,7 @@ export const googleApiTemplate: XmlFeedTemplateType = {
|
|
104
108
|
defaultValue: 'https://{{shopify.shop_domain}}/products/{{shopify.handle}}',
|
105
109
|
rules: { sections: [] },
|
106
110
|
baseMode: true,
|
111
|
+
singleChoice: true,
|
107
112
|
},
|
108
113
|
{
|
109
114
|
attribute: 'imageLink',
|
@@ -115,6 +120,7 @@ export const googleApiTemplate: XmlFeedTemplateType = {
|
|
115
120
|
defaultValue: '{{shopify.image}}',
|
116
121
|
rules: { sections: [] },
|
117
122
|
baseMode: true,
|
123
|
+
singleChoice: true,
|
118
124
|
},
|
119
125
|
{
|
120
126
|
attribute: 'additionalImageLinks',
|
@@ -280,6 +286,7 @@ export const googleApiTemplate: XmlFeedTemplateType = {
|
|
280
286
|
defaultValue: '{{shopify.price}} {{shopify.shop_currency}}',
|
281
287
|
rules: { sections: [] },
|
282
288
|
baseMode: true,
|
289
|
+
singleChoice: true,
|
283
290
|
},
|
284
291
|
{
|
285
292
|
attribute: 'salePrice',
|
@@ -8,9 +8,10 @@ import { googleFeedTemplate } from './google.template.js';
|
|
8
8
|
import { tiktokFeedTemplate } from './tiktok.template.js';
|
9
9
|
import { microsoftTemplate } from './microsoft.template.js';
|
10
10
|
import { googleApiTemplate } from './google-api.template.js';
|
11
|
+
import { getSourceTagValue } from '../utils.js';
|
11
12
|
|
12
|
-
export const hasMacro = (v: string) => /{{[^}]+}}/.test(v.replaceAll(/{{source
|
13
|
-
export const removeMacro = (v: string) => v.replaceAll(/{{
|
13
|
+
export const hasMacro = (v: string) => /{{[^}]+}}/.test(v.replaceAll(/{{source\..+?}}/g, ''));
|
14
|
+
export const removeMacro = (v: string) => v.replaceAll(/{{.+?}}/g, '');
|
14
15
|
|
15
16
|
export function validate(
|
16
17
|
value: string | number,
|
@@ -52,9 +53,9 @@ export function resolveSourceMacro(macro: any): any {
|
|
52
53
|
if (typeof macro !== 'string') {
|
53
54
|
return macro;
|
54
55
|
}
|
55
|
-
return macro.replace(/{{source
|
56
|
-
const
|
57
|
-
return value;
|
56
|
+
return macro.replace(/{{source\..+?}}/g, (macro) => {
|
57
|
+
const {value} = getSourceTagValue(macro.slice(2, -2));
|
58
|
+
return value?.map(v => v.value)?.join(', ') ?? '';
|
58
59
|
});
|
59
60
|
}
|
60
61
|
|
@@ -157,6 +158,25 @@ export const languageSchema = z.string().refine(v => !v || [
|
|
157
158
|
'yo', 'za', 'zh', 'zu'
|
158
159
|
].includes(v.toLowerCase()), { message: 'Invalid language code' });
|
159
160
|
|
161
|
+
export const countrySchema = z.string().refine(v => !v || [
|
162
|
+
'AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ',
|
163
|
+
'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS',
|
164
|
+
'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN',
|
165
|
+
'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE',
|
166
|
+
'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG',
|
167
|
+
'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR',
|
168
|
+
'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP',
|
169
|
+
'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK',
|
170
|
+
'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM',
|
171
|
+
'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE',
|
172
|
+
'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK',
|
173
|
+
'PL', 'PM', 'PN', 'PR', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC',
|
174
|
+
'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX',
|
175
|
+
'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV',
|
176
|
+
'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS',
|
177
|
+
'YE', 'YT', 'ZA', 'ZM', 'ZW'
|
178
|
+
].includes(v.toUpperCase()), { message: 'Invalid country code' });
|
179
|
+
|
160
180
|
export const priceRegex = /^(?<value>\d+(?:\.\d{1,2})?)\s*(?<currency>\w+)$/;
|
161
181
|
|
162
182
|
export const priceSchema = ({ min = 0, max = 1000000 } = {}) =>
|
package/src/utils/utils.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { input } from 'zod';
|
2
|
+
import { MacroPartType, SelectItem } from '../types/profile.types.js';
|
2
3
|
|
3
4
|
export function code () {
|
4
5
|
return (Math.random() * 1000000).toFixed(0);
|
@@ -78,3 +79,49 @@ function getMacroSubtype (tagValue: string): MacroPartType['subtype'] {
|
|
78
79
|
return 'mapping';
|
79
80
|
}
|
80
81
|
}
|
82
|
+
|
83
|
+
export function isJSON(input: any): input is string {
|
84
|
+
try {
|
85
|
+
JSON.parse(input);
|
86
|
+
return true;
|
87
|
+
} catch (e) {
|
88
|
+
return false;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
export function isSourceJSON(input: any): input is string {
|
93
|
+
if (!isJSON(input)) {
|
94
|
+
return false;
|
95
|
+
}
|
96
|
+
|
97
|
+
const content = JSON.parse(input);
|
98
|
+
|
99
|
+
if (Array.isArray(content)) {
|
100
|
+
return content.every((item) => item?.label !== undefined && item?.value !== undefined);
|
101
|
+
}
|
102
|
+
|
103
|
+
return content?.label !== undefined && content?.value !== undefined;
|
104
|
+
}
|
105
|
+
|
106
|
+
export function getSourceTagParts(content: string): {
|
107
|
+
tag: string;
|
108
|
+
value: string | null;
|
109
|
+
} {
|
110
|
+
const splitPoint = content.indexOf(":");
|
111
|
+
const tag = splitPoint !== -1 ? content.slice(0, splitPoint) : content;
|
112
|
+
const value = splitPoint !== -1 ? content.slice(splitPoint + 1) : null;
|
113
|
+
|
114
|
+
return { tag, value };
|
115
|
+
}
|
116
|
+
|
117
|
+
export function getSourceTagValue(content: string): {
|
118
|
+
tag: string;
|
119
|
+
value: SelectItem[] | null;
|
120
|
+
} {
|
121
|
+
const splitPoint = content.indexOf(":");
|
122
|
+
const tag = splitPoint !== -1 ? content.slice(0, splitPoint) : content;
|
123
|
+
const valueText = splitPoint !== -1 ? content.slice(splitPoint + 1) : null;
|
124
|
+
const value = isSourceJSON(valueText) ? JSON.parse(valueText) : null;
|
125
|
+
|
126
|
+
return { tag, value: value && !Array.isArray(value) ? [value] : value };
|
127
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { describe, test, expect } from "vitest";
|
2
|
+
import { getSourceTagParts, getSourceTagValue, isJSON, isSourceJSON } from "../src/utils/utils";
|
3
|
+
|
4
|
+
describe("Utils", () => {
|
5
|
+
describe('Source tag', () => {
|
6
|
+
test('isJson', () => {
|
7
|
+
expect(isJSON('{"hello": "world"}')).toBe(true);
|
8
|
+
expect(isJSON('[{"hello": "world"}]')).toBe(true);
|
9
|
+
expect(isJSON(1)).toBe(true);
|
10
|
+
expect(isJSON('1')).toBe(true);
|
11
|
+
expect(isJSON(null)).toBe(true);
|
12
|
+
|
13
|
+
expect(isJSON('{"hello": "world"')).toBe(false);
|
14
|
+
});
|
15
|
+
|
16
|
+
test('isSourceJSON', () => {
|
17
|
+
expect(isSourceJSON('{"label": "hello", "value": "world"}')).toBe(true);
|
18
|
+
expect(isSourceJSON('[{"label": "hello", "value": "world"}]')).toBe(true);
|
19
|
+
|
20
|
+
expect(isSourceJSON('{"label": "hello", "value": "world"')).toBe(false);
|
21
|
+
expect(isSourceJSON('{"label": "hello": "key": "world"}')).toBe(false);
|
22
|
+
expect(isSourceJSON(1)).toBe(false);
|
23
|
+
expect(isSourceJSON('1')).toBe(false);
|
24
|
+
expect(isSourceJSON(null)).toBe(false);
|
25
|
+
});
|
26
|
+
|
27
|
+
test('getSourceTagParts', () => {
|
28
|
+
expect(getSourceTagParts('source.world')).toEqual({ tag: 'source.world', value: null });
|
29
|
+
expect(getSourceTagParts('source.world:hello')).toEqual({ tag: 'source.world', value: 'hello' });
|
30
|
+
expect(getSourceTagParts('source.world:')).toEqual({ tag: 'source.world', value: '' });
|
31
|
+
expect(getSourceTagParts('source.world:hello:world')).toEqual({ tag: 'source.world', value: 'hello:world' });
|
32
|
+
})
|
33
|
+
|
34
|
+
test('getSourceTagValue', () => {
|
35
|
+
expect(getSourceTagValue('source.world')).toEqual({ tag: 'source.world', value: null });
|
36
|
+
expect(getSourceTagValue('source.world:hello')).toEqual({ tag: 'source.world', value: null });
|
37
|
+
expect(getSourceTagValue('source.world:hello:world')).toEqual({ tag: 'source.world', value: null });
|
38
|
+
expect(getSourceTagValue('source.world:')).toEqual({ tag: 'source.world', value: null });
|
39
|
+
expect(getSourceTagValue('source.world:{"label": "hello", "value": "world"}')).toEqual({ tag: 'source.world', value: [{ label: 'hello', value: 'world' }] });
|
40
|
+
expect(getSourceTagValue('source.world:[{"label": "hello", "value": "world"}]')).toEqual({ tag: 'source.world', value: [{ label: 'hello', value: 'world' }] });
|
41
|
+
});
|
42
|
+
});
|
43
|
+
});
|
package/tests/validator.spec.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { describe, expect, test } from "vitest";
|
2
|
-
import { hasMacro, languageSchema, validateIfNoMacro } from "../src/utils/feed-templates";
|
2
|
+
import { hasMacro, languageSchema, resolveSourceMacro, validateIfNoMacro } from "../src/utils/feed-templates";
|
3
3
|
import { z } from "zod";
|
4
4
|
|
5
5
|
describe("Validator", () => {
|
@@ -7,23 +7,28 @@ describe("Validator", () => {
|
|
7
7
|
expect(hasMacro('Hello {{shopify.id}}')).toBe(true);
|
8
8
|
expect(hasMacro('Hello world')).toBe(false);
|
9
9
|
expect(hasMacro('Hello {{source.world}} {{source.world:any value}}')).toBe(false);
|
10
|
+
expect(hasMacro('Hello {{source.world}} {{source.world:[{"a": "b"}]}}')).toBe(false);
|
10
11
|
});
|
11
12
|
|
12
|
-
test('
|
13
|
-
expect(
|
14
|
-
expect(
|
15
|
-
expect(
|
16
|
-
|
17
|
-
expect(validateIfNoMacro('en', languageSchema).success).toBe(true);
|
18
|
-
expect(validateIfNoMacro('{{source.language:en}}', [languageSchema, z.string().min(1)]).success).toBe(true);
|
19
|
-
expect(validateIfNoMacro('{{source.language:foo}}', [languageSchema, z.string().min(1)]).success).toBe(false);
|
20
|
-
expect(validateIfNoMacro('{{source.language:}}', [languageSchema, z.string().min(2)]).success).toBe(false);
|
21
|
-
})
|
13
|
+
test('resolveSourceMacro', () => {
|
14
|
+
expect(resolveSourceMacro('Hello {{shopify.id}}')).toBe('Hello {{shopify.id}}');
|
15
|
+
expect(resolveSourceMacro('Hello {{source.foo}}')).toBe('Hello ');
|
16
|
+
expect(resolveSourceMacro('Hello {{source.foo:[{"label": "Label1", "value": "value1"}]}}')).toBe('Hello value1');
|
17
|
+
});
|
22
18
|
|
23
19
|
test('multiple validators', () => {
|
24
|
-
expect(validateIfNoMacro('en', [
|
25
|
-
expect(validateIfNoMacro('', [
|
26
|
-
expect(validateIfNoMacro('', [
|
20
|
+
expect(validateIfNoMacro('en', [z.string(), z.string().min(2)]).success).toBe(true);
|
21
|
+
expect(validateIfNoMacro('en', [z.string(), z.string().min(3)]).success).toBe(false);
|
22
|
+
expect(validateIfNoMacro('en', [z.number(), z.string().min(2)]).success).toBe(false);
|
27
23
|
});
|
24
|
+
|
25
|
+
describe('language validate', () => {
|
26
|
+
test('languageSchema', () => {
|
27
|
+
expect(languageSchema.safeParse('en').success).toBe(true);
|
28
|
+
expect(languageSchema.safeParse('ES').success).toBe(true);
|
29
|
+
expect(languageSchema.safeParse('ES\nES').success).toBe(false);
|
30
|
+
expect(languageSchema.safeParse('').success).toBe(true);
|
31
|
+
})
|
32
|
+
})
|
28
33
|
});
|
29
34
|
|