feed-common 1.38.4 → 1.39.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/dist/constants/profile.constants.d.ts +2 -1
- package/dist/constants/profile.constants.d.ts.map +1 -1
- package/dist/constants/profile.constants.js +1 -0
- package/dist/constants/profile.constants.js.map +1 -1
- package/dist/utils/feed-templates/index.d.ts.map +1 -1
- package/dist/utils/feed-templates/index.js +3 -0
- package/dist/utils/feed-templates/index.js.map +1 -1
- package/dist/utils/feed-templates/tiktok.template.d.ts +3 -0
- package/dist/utils/feed-templates/tiktok.template.d.ts.map +1 -0
- package/dist/utils/feed-templates/tiktok.template.js +370 -0
- package/dist/utils/feed-templates/tiktok.template.js.map +1 -0
- package/package.json +1 -1
- package/src/constants/profile.constants.ts +1 -0
- package/src/utils/feed-templates/index.ts +3 -0
- package/src/utils/feed-templates/tiktok.template.ts +401 -0
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [1.39.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.38.4...v1.39.0) (2024-08-19)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* add tik-tok feed ([73dbec3](https://github.com/advertikon/package-maxify-feed-common/commit/73dbec32ba03e5de1f97541a511c4787be0b9c4d))
|
7
|
+
|
1
8
|
## [1.38.4](https://github.com/advertikon/package-maxify-feed-common/compare/v1.38.3...v1.38.4) (2024-08-18)
|
2
9
|
|
3
10
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"profile.constants.d.ts","sourceRoot":"","sources":["../../src/constants/profile.constants.ts"],"names":[],"mappings":"AAAA,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,CA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yBAAyB,CAAC;AAClE,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;AAClD,eAAO,MAAM,yBAAyB,uBAAuB,CAAC;AAC9D,eAAO,MAAM,4BAA4B,0BAA0B,CAAC;AACpE,eAAO,MAAM,iCAAiC,+BAA+B,CAAC;AAC9E,eAAO,MAAM,qBAAqB,mBAAmB,CAAC;AACtD,eAAO,MAAM,0BAA0B,wBAAwB,CAAC;AAChE,eAAO,MAAM,0BAA0B,wBAAwB,CAAC;AAChE,eAAO,MAAM,2BAA2B,yBAAyB,CAAC;AAClE,eAAO,MAAM,4BAA4B,0BAA0B,CAAC;AACpE,eAAO,MAAM,0BAA0B,wBAAwB,CAAC;AAChE,eAAO,MAAM,+BAA+B,6BAA6B,CAAC;AAE1E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuChC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,sBAAsB,EAgJzD,CAAC;AACF,eAAO,MAAM,OAAO,WAAW,CAAC;AAChC,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AACnE,eAAO,MAAM,sBAAsB,UAAsD,CAAC;AAE1F,oBAAY,aAAa;IACrB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;CACd;AAED,oBAAY,WAAW;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB"}
|
@@ -499,5 +499,6 @@ export var XMLFeedType;
|
|
499
499
|
XMLFeedType["Custom"] = "Custom";
|
500
500
|
XMLFeedType["Facebook"] = "Facebook";
|
501
501
|
XMLFeedType["Google"] = "Google";
|
502
|
+
XMLFeedType["TikTok"] = "TikTok";
|
502
503
|
})(XMLFeedType || (XMLFeedType = {}));
|
503
504
|
//# sourceMappingURL=profile.constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"profile.constants.js","sourceRoot":"","sources":["../../src/constants/profile.constants.ts"],"names":[],"mappings":"AAEA,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,eAiBX;AAjBD,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;IACnC,kCAAe,CAAA;IACf,yCAAsB,CAAA;AAC1B,CAAC,EAjBW,eAAe,KAAf,eAAe,QAiB1B;AAED,MAAM,CAAN,IAAY,gBASX;AATD,WAAY,gBAAgB;IACxB,mCAAe,CAAA;IACf,6CAAyB,CAAA;IACzB,iDAA6B,CAAA;IAC7B,qCAAiB,CAAA;IACjB,+BAAW,CAAA;IACX,yDAAqC,CAAA;IACrC,6DAAyC,CAAA;IACzC,mCAAe,CAAA;AACnB,CAAC,EATW,gBAAgB,KAAhB,gB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AE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE;YAChD,EAAE,KAAK,EAAE,yBAAyB,EAAE,KAAK,EAAE,aAAa,EAAE;YAC1D,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;SACrD;QACD,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;QACvB,WAAW;QACP,mCAAmC;QACnC,6GAA6G;KACpH;IACD;QACI,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,gBAAgB;QACvB,SAAS,EAAE,kBAAkB,CAAC,cAAc;QAC5C,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;QACvB,WAAW,EAAE,0FAA0F;KAC1G;CACJ,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;AAE1F,MAAM,CAAN,IAAY,aAMX;AAND,WAAY,aAAa;IACrB,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,8BAAa,CAAA;IACb,4BAAW,CAAA;AACf,CAAC,EANW,aAAa,KAAb,aAAa,QAMxB;AAED,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;AACrB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB"}
|
1
|
+
{"version":3,"file":"profile.constants.js","sourceRoot":"","sources":["../../src/constants/profile.constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC;AAC9C,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;AACxC,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAq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K,EAAE,gBAAgB;QACvB,SAAS,EAAE,kBAAkB,CAAC,cAAc;QAC5C,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;QACvB,WAAW,EAAE,0FAA0F;KAC1G;CACJ,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;AAE1F,MAAM,CAAN,IAAY,aAMX;AAND,WAAY,aAAa;IACrB,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,8BAAa,CAAA;IACb,4BAAW,CAAA;AACf,CAAC,EANW,aAAa,KAAb,aAAa,QAMxB;AAED,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;AACrB,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB"}
|
@@ -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;AAInE,eAAO,MAAM,QAAQ,MAAO,MAAM,YAAwB,CAAC;AAC3D,eAAO,MAAM,WAAW,MAAO,MAAM,WAAmC,CAAC;AAEzE,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,EAAE,MAAM,GAAG,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC,CAMrH;AAED,eAAO,MAAM,eAAe,qIAatB,CAAC;AAIP,eAAO,MAAM,kBAAkB,UAAW,MAAM,EAAE,8CAmB5C,CAAC;AAEP,eAAO,MAAM,iBAAiB,2CAE2D,CAAC;AAE1F,wBAAgB,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,mBAAmB,CAalE"}
|
@@ -4,6 +4,7 @@ import { XMLFeedType } from '../../constants/profile.constants.js';
|
|
4
4
|
import { customFeedTemplate } from './custom.template.js';
|
5
5
|
import { facebookFeedTemplate } from './facebook.template.js';
|
6
6
|
import { googleFeedTemplate } from './google.template.js';
|
7
|
+
import { tiktokFeedTemplate } from './tiktok.template.js';
|
7
8
|
export const hasMacro = (v) => /{{[^}]+}}/.test(v);
|
8
9
|
export const removeMacro = (v) => v.replaceAll(/{{[^}]+}}/g, '');
|
9
10
|
export function validate(value, validator, skipEmpty = true) {
|
@@ -66,6 +67,8 @@ export function getTemplate(type) {
|
|
66
67
|
return facebookFeedTemplate;
|
67
68
|
case XMLFeedType.Google:
|
68
69
|
return googleFeedTemplate;
|
70
|
+
case XMLFeedType.TikTok:
|
71
|
+
return tiktokFeedTemplate;
|
69
72
|
default:
|
70
73
|
throw new Error(`Inval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AM;YACnB,OAAO,kBAAkB,CAAC;QAC9B,KAAK,WAAW,CAAC,QAAQ;YACrB,OAAO,oBAAoB,CAAC;QAChC,KAAK,WAAW,CAAC,MAAM;YACnB,OAAO,kBAAkB,CAAC;QAC9B,KAAK,WAAW,CAAC,MAAM;YACnB,OAAO,kBAAkB,CAAC;QAC9B;YACI,MAAM,IAAI,KAAK,CAAC,sBAAsB,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;AACL,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tiktok.template.d.ts","sourceRoot":"","sources":["../../../src/utils/feed-templates/tiktok.template.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAoCnE,eAAO,MAAM,kBAAkB,EAAE,mBAuWhC,CAAC"}
|
@@ -0,0 +1,370 @@
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
2
|
+
/* eslint-disable quotes */
|
3
|
+
import * as z from 'zod';
|
4
|
+
import { ulid } from 'ulid';
|
5
|
+
import { dateRangeSchema, measureUnitsSchema, validate, validateIfNoMacro } from './index.js';
|
6
|
+
import { XmlFeedFormat } from '../../constants/profile.constants.js';
|
7
|
+
/* eslint-disable max-len */
|
8
|
+
const availabilityMapping = {
|
9
|
+
attribute: 'availability',
|
10
|
+
label: 'Availability',
|
11
|
+
description: 'The current availability of the item in your store. Supported values: in stock, available for order, preorder, out of stock, discontinued. Example: in stock',
|
12
|
+
required: true,
|
13
|
+
type: 'macro-input',
|
14
|
+
validator: (v) => validateIfNoMacro(v, z.enum(['in stock', 'available for order', 'preorder', 'out of stock', 'discontinued'])),
|
15
|
+
};
|
16
|
+
const conditionMapping = {
|
17
|
+
attribute: 'condition',
|
18
|
+
label: 'Condition',
|
19
|
+
description: 'The current condition of the item in your store. Supported values: new, refurbished, used. Example: new',
|
20
|
+
required: true,
|
21
|
+
type: 'macro-input',
|
22
|
+
validator: (v) => validateIfNoMacro(v, z.enum(['new', 'refurbished', 'used'])),
|
23
|
+
};
|
24
|
+
const customLabelMapping = {
|
25
|
+
attribute: 'custom_label_0',
|
26
|
+
label: 'Custom Label 1',
|
27
|
+
description: 'Additional information about the product you want to include. Max character limit: 100',
|
28
|
+
required: false,
|
29
|
+
type: 'macro-input',
|
30
|
+
defaultValue: '',
|
31
|
+
rules: { sections: [] },
|
32
|
+
validator: (v) => validate(v, z.string().max(100).optional()),
|
33
|
+
};
|
34
|
+
export const tiktokFeedTemplate = {
|
35
|
+
formats: [XmlFeedFormat.CSV, XmlFeedFormat.XML],
|
36
|
+
documentation: 'https://ads.tiktok.com/help/article/catalog-product-parameters',
|
37
|
+
mapping: [
|
38
|
+
{
|
39
|
+
attribute: 'sku_id',
|
40
|
+
label: 'ID',
|
41
|
+
description: 'Enter a unique ID for the item, such as a SKU. If there are multiple instances of the same ID, these will be ignored. You need to use the same id to replace the same product in the original data feed if you want to update it. Use only valid unicode characters, avoid invalid characters like control or function characters.: tiktok_item_1234',
|
42
|
+
required: true,
|
43
|
+
type: 'macro-input',
|
44
|
+
validator: v => validateIfNoMacro(v, z.string().min(1)),
|
45
|
+
defaultValue: '{{shopify.id}}-{{shopify.variant_id}}',
|
46
|
+
rules: { sections: [] },
|
47
|
+
},
|
48
|
+
{
|
49
|
+
attribute: 'title',
|
50
|
+
label: 'Title',
|
51
|
+
description: 'The title of the item. Use only valid unicode characters, avoid invalid characters like control, function characters or emoji. Do not include promotional text like "free shipping, high quality, wholesale". Example: T-Shirt (Unisex)',
|
52
|
+
required: true,
|
53
|
+
type: 'macro-input',
|
54
|
+
validator: (v) => validateIfNoMacro(v, z.string().min(1)),
|
55
|
+
defaultValue: '{{shopify.title}}',
|
56
|
+
rules: { sections: [] },
|
57
|
+
},
|
58
|
+
{
|
59
|
+
attribute: 'description',
|
60
|
+
label: 'Description',
|
61
|
+
description: 'A short description describing the item. Example: A vibrant crewneck for all shapes and sizes. Made from 100% cotton.',
|
62
|
+
required: true,
|
63
|
+
type: 'macro-input',
|
64
|
+
validator: (v) => validateIfNoMacro(v, z.string().max(9999).min(1)),
|
65
|
+
defaultValue: '{{shopify.description}}',
|
66
|
+
rules: { sections: [] },
|
67
|
+
},
|
68
|
+
{
|
69
|
+
...availabilityMapping,
|
70
|
+
defaultValue: 'in stock',
|
71
|
+
rules: { sections: [] },
|
72
|
+
},
|
73
|
+
{
|
74
|
+
...availabilityMapping,
|
75
|
+
defaultValue: 'out of stock',
|
76
|
+
rules: {
|
77
|
+
sections: [
|
78
|
+
{
|
79
|
+
id: ulid(),
|
80
|
+
ruleItems: [
|
81
|
+
{
|
82
|
+
id: ulid(),
|
83
|
+
attribute: 'inventory_quantity',
|
84
|
+
operator: 'equals',
|
85
|
+
value: 0,
|
86
|
+
},
|
87
|
+
],
|
88
|
+
},
|
89
|
+
{
|
90
|
+
id: ulid(),
|
91
|
+
ruleItems: [
|
92
|
+
{
|
93
|
+
id: ulid(),
|
94
|
+
attribute: 'inventory_policy',
|
95
|
+
operator: 'equals',
|
96
|
+
value: 'deny',
|
97
|
+
},
|
98
|
+
],
|
99
|
+
},
|
100
|
+
],
|
101
|
+
},
|
102
|
+
},
|
103
|
+
{
|
104
|
+
...conditionMapping,
|
105
|
+
defaultValue: 'new',
|
106
|
+
rules: {
|
107
|
+
sections: [],
|
108
|
+
},
|
109
|
+
},
|
110
|
+
{
|
111
|
+
attribute: 'price',
|
112
|
+
label: 'Price',
|
113
|
+
description: "The cost of the item. Currency will follow the catalog's target country by default. Examples: 9.99 USD",
|
114
|
+
required: true,
|
115
|
+
type: 'macro-input',
|
116
|
+
validator: (v) => validateIfNoMacro(v, z.string().min(1)),
|
117
|
+
defaultValue: '{{shopify.price}} {{shopify.shop_currency}}',
|
118
|
+
rules: { sections: [] },
|
119
|
+
},
|
120
|
+
{
|
121
|
+
attribute: 'link',
|
122
|
+
label: 'Link',
|
123
|
+
description: 'The URL of the product landing page, or the website where you can buy the item. Example: https://www.tiktok.com/tiktok_t_shirt',
|
124
|
+
required: true,
|
125
|
+
type: 'macro-input',
|
126
|
+
validator: (v) => validateIfNoMacro(v, z.string().url()),
|
127
|
+
defaultValue: 'https://{{shopify.shop_domain}}/products/{{shopify.handle}}',
|
128
|
+
rules: { sections: [] },
|
129
|
+
},
|
130
|
+
{
|
131
|
+
attribute: 'image_link',
|
132
|
+
label: 'Image link',
|
133
|
+
description: 'The URL for the image used in your ad.- For square (1:1) aspect ratios in the carousel ad format, your image should be ≥500x500.- Image links should end with JPG or PNG.- Supported image hosting sites include: Imgur, Imgshare.io, Photobucket, Imageshack.- Non-supported image hosting sites include: GoogleDrive, Flickr, Pinterest, 500px, Imgbb, Smugmug, Dropbox Note: TikTok has no affiliation with these hosting sites and are not responsible for advertiser experience with these sites.. Example: https://www.tiktok.com/t_shirt_image_001.jpg',
|
134
|
+
required: true,
|
135
|
+
type: 'macro-input',
|
136
|
+
validator: (v) => validateIfNoMacro(v, z.string().url()),
|
137
|
+
defaultValue: '{{shopify.image}}',
|
138
|
+
rules: { sections: [] },
|
139
|
+
},
|
140
|
+
{
|
141
|
+
attribute: 'brand',
|
142
|
+
label: 'Brand',
|
143
|
+
description: 'You can use a brand name for your product. - We strongly recommend you to provide an accurate value instead of a meaningless one. Example: Nike, Adidas, Apple, Google',
|
144
|
+
required: true,
|
145
|
+
type: 'macro-input',
|
146
|
+
validator: (v) => validateIfNoMacro(v, z.string().max(100).min(1)),
|
147
|
+
defaultValue: '{{shopify.vendor}}',
|
148
|
+
rules: { sections: [] },
|
149
|
+
},
|
150
|
+
{
|
151
|
+
attribute: 'google_product_category',
|
152
|
+
label: 'Google product category',
|
153
|
+
description: "A preset value from Google's product taxonomy. Only supports three levels. Example: Apparel & Accessories > Clothing > Dresses -Apparel & Accessories > Clothing > Shirts",
|
154
|
+
required: false,
|
155
|
+
type: 'macro-input',
|
156
|
+
defaultValue: '',
|
157
|
+
rules: { sections: [] },
|
158
|
+
},
|
159
|
+
{
|
160
|
+
attribute: 'video_link',
|
161
|
+
label: 'Video link',
|
162
|
+
description: 'The URL for the video used in your ad for the video placement. Recommend Vertical(9:16);Recommend Resolution for TikTok: ≥720*1280;Recommend Bitrate for TikTok: ≥516kbps; Sound: Enabled with captions included. Example: https://www.tiktok.com/tiktok_t_shirt',
|
163
|
+
required: false,
|
164
|
+
type: 'macro-input',
|
165
|
+
defaultValue: '',
|
166
|
+
rules: { sections: [] },
|
167
|
+
validator: (v) => validateIfNoMacro(v, z.string().refine(v => !v || z.string().url().safeParse(v).success, { message: 'invalid URL' })),
|
168
|
+
},
|
169
|
+
{
|
170
|
+
attribute: 'additional_image_link',
|
171
|
+
label: 'Additional image link',
|
172
|
+
description: 'Additional image URLs for the item. You need to use double quote to include the URLs. You can include up to 10 image URLs. Use "," to separate each URL. For square (1:1) aspect ratios in the carousel ad format, your image should be ≥500x500. All images should be in JPG or PNG format. Example: https://www.tiktok.com/t_shirt_image_002.jpg,https://www.tiktok.com/t_shirt_image_003.jpg',
|
173
|
+
required: false,
|
174
|
+
type: 'macro-input',
|
175
|
+
defaultValue: '{{shopify.images}}',
|
176
|
+
rules: { sections: [] },
|
177
|
+
},
|
178
|
+
{
|
179
|
+
attribute: 'age_group',
|
180
|
+
label: 'Age group',
|
181
|
+
description: 'The age group for your item. The accuracy of this field is important to ensure products are delivered to the intended age demographics. Supported values:Newborn (0-3 months old)Infant (3-12 months old)Toddler (1-5 years old)Kids (5-13 years old)Adult (13 years old or more). Example: adult',
|
182
|
+
required: false,
|
183
|
+
type: 'macro-input',
|
184
|
+
defaultValue: '',
|
185
|
+
rules: { sections: [] },
|
186
|
+
validator: v => validate(v, z.enum(['newborn', 'infant', 'toddler', 'kids', 'adult']).optional()),
|
187
|
+
},
|
188
|
+
{
|
189
|
+
attribute: 'color',
|
190
|
+
label: 'Color',
|
191
|
+
description: 'The item color. Example: Royal blue',
|
192
|
+
required: false,
|
193
|
+
type: 'macro-input',
|
194
|
+
defaultValue: '',
|
195
|
+
rules: { sections: [] },
|
196
|
+
validator: (v) => validate(v, z.string().optional()),
|
197
|
+
},
|
198
|
+
{
|
199
|
+
attribute: 'gender',
|
200
|
+
label: 'Gender',
|
201
|
+
description: "The item's gender. The accuracy of this field is important to ensure products are delivered to the intended gender group. Supported values: male, female, unisex. Example: unisex",
|
202
|
+
required: false,
|
203
|
+
type: 'macro-input',
|
204
|
+
defaultValue: '',
|
205
|
+
rules: { sections: [] },
|
206
|
+
validator: v => validate(v, z.enum(['female', 'male', 'unisex', '']).optional()),
|
207
|
+
},
|
208
|
+
{
|
209
|
+
attribute: 'item_group_id',
|
210
|
+
label: 'Item group ID',
|
211
|
+
description: 'Items that are variants of a specific product. Provide the same item_group_id for all items that are variants. For example, a red Polo Shirt is a variant of Polo Shirt. Example: tiktok_1234_shirts',
|
212
|
+
required: false,
|
213
|
+
type: 'macro-input',
|
214
|
+
defaultValue: '{{shopify.id}}',
|
215
|
+
rules: { sections: [] },
|
216
|
+
},
|
217
|
+
{
|
218
|
+
attribute: 'material',
|
219
|
+
label: 'Material',
|
220
|
+
description: 'The material the product is made from, such as cotton, denim, or leather. Example: cotton',
|
221
|
+
required: false,
|
222
|
+
type: 'macro-input',
|
223
|
+
defaultValue: '',
|
224
|
+
rules: { sections: [] },
|
225
|
+
validator: (v) => validate(v, z.string().optional()),
|
226
|
+
},
|
227
|
+
{
|
228
|
+
attribute: 'pattern',
|
229
|
+
label: 'Pattern',
|
230
|
+
description: 'Pattern or graphic print on a product. Example: stripes1',
|
231
|
+
required: false,
|
232
|
+
type: 'macro-input',
|
233
|
+
defaultValue: '',
|
234
|
+
rules: { sections: [] },
|
235
|
+
validator: (v) => validate(v, z.string().max(100).optional()),
|
236
|
+
},
|
237
|
+
{
|
238
|
+
attribute: 'product_type',
|
239
|
+
label: 'Product type',
|
240
|
+
description: 'The category the product belongs to. Only the first three levels are indicated. Example: Home & Garden > Kitchen & Dining > Appliances > Refrigerators ',
|
241
|
+
required: false,
|
242
|
+
type: 'macro-input',
|
243
|
+
defaultValue: '{{shopify.category}}',
|
244
|
+
rules: { sections: [] },
|
245
|
+
validator: (v) => validate(v, z.string().max(100).optional()),
|
246
|
+
},
|
247
|
+
{
|
248
|
+
attribute: 'sale_price',
|
249
|
+
label: 'Sale price',
|
250
|
+
description: 'The discounted cost and currency code for the product if it\'s on sale. A sale price is a number followed by the currency code (ISO 4217 standards). Use "." as the decimal for the sale price. The sale price is required if you plan on using an overlay for discounted prices. Example: 4.99 USD',
|
251
|
+
required: false,
|
252
|
+
type: 'macro-input',
|
253
|
+
defaultValue: '',
|
254
|
+
rules: { sections: [] },
|
255
|
+
},
|
256
|
+
{
|
257
|
+
attribute: 'sale_price_effective_date',
|
258
|
+
label: 'Sale price effective date',
|
259
|
+
description: 'The start and end date and time for your sale, written as: YYYY-MM-DDT0:00-23:59/YYYY-MM-DDT0:00-23:59. Use a start date before the end date. Example 2017-12-01T0:00/2017-12-31T0:00',
|
260
|
+
required: false,
|
261
|
+
type: 'macro-input',
|
262
|
+
defaultValue: '',
|
263
|
+
validator: (v) => validateIfNoMacro(v, dateRangeSchema),
|
264
|
+
rules: { sections: [] },
|
265
|
+
},
|
266
|
+
{
|
267
|
+
attribute: 'shipping',
|
268
|
+
label: 'Shipping',
|
269
|
+
description: 'The type of shipping for the item, Recommend written as: COUNTRY:STATE:SHIPPING_TYPE:PRICE:SERVICE. Use ";" to separate different regions. Example: US:CA: Ground:9.99 USD: Standard',
|
270
|
+
required: false,
|
271
|
+
type: 'macro-input',
|
272
|
+
defaultValue: '',
|
273
|
+
rules: { sections: [] },
|
274
|
+
},
|
275
|
+
{
|
276
|
+
attribute: 'shipping_weight',
|
277
|
+
label: 'Shipping weight',
|
278
|
+
description: 'The shipping weight of the item. Example: 0.3 lb',
|
279
|
+
required: false,
|
280
|
+
type: 'macro-input',
|
281
|
+
defaultValue: '{{shopify.weight}} {{shopify.weight_unit}}',
|
282
|
+
validator: (v) => validateIfNoMacro(v, measureUnitsSchema(['lb', 'oz', 'g', 'kg'])),
|
283
|
+
rules: { sections: [] },
|
284
|
+
},
|
285
|
+
{
|
286
|
+
attribute: 'gtin',
|
287
|
+
label: 'GTIN',
|
288
|
+
description: 'Several different types of ID numbers are considered a GTIN (Global Trade Item Numbers). Use the GTIN attribute to submit any of the following types of numbers: UPC (in North America / GTIN-12): 12-digit number (convert 8-digit UPC-E codes to 12-digit codes) EAN (in Europe / GTIN-13): 13-digit number JAN (in Japan / GTIN-13): 8 or 13-digit number ISBN (for books): 13-digit number (convert ISBN-10 to ISBN-13) - If you have both, include only the 13-digit number. ITF-14 (for multipacks / GTIN-14): 14-digit number. Example: 3234567890126',
|
289
|
+
required: false,
|
290
|
+
type: 'macro-input',
|
291
|
+
defaultValue: '',
|
292
|
+
rules: { sections: [] },
|
293
|
+
},
|
294
|
+
{
|
295
|
+
attribute: 'mpn',
|
296
|
+
label: 'MPN',
|
297
|
+
description: 'You can use a unique manufacturer part number (MPN) to describe your product. Example: 12433',
|
298
|
+
required: false,
|
299
|
+
type: 'macro-input',
|
300
|
+
defaultValue: '',
|
301
|
+
validator: (v) => validate(v, z.string().optional()),
|
302
|
+
rules: { sections: [] },
|
303
|
+
},
|
304
|
+
{
|
305
|
+
attribute: 'size',
|
306
|
+
label: 'Size',
|
307
|
+
description: 'The size of the item. Example: Small, Large,Extra Large',
|
308
|
+
required: false,
|
309
|
+
type: 'macro-input',
|
310
|
+
validator: (v) => validate(v, z.string().max(200).optional()),
|
311
|
+
defaultValue: '',
|
312
|
+
rules: { sections: [] },
|
313
|
+
},
|
314
|
+
{
|
315
|
+
attribute: 'tax',
|
316
|
+
label: 'Tax',
|
317
|
+
description: 'The tax for item. Example: 0.05',
|
318
|
+
required: false,
|
319
|
+
type: 'macro-input',
|
320
|
+
validator: (v) => validate(v, z.coerce.number().min(0).optional()),
|
321
|
+
defaultValue: '',
|
322
|
+
rules: { sections: [] },
|
323
|
+
},
|
324
|
+
{
|
325
|
+
attribute: 'ios_url',
|
326
|
+
label: 'iOS URL',
|
327
|
+
description: 'Required Field for IOS App re-engagement. Only support schema format. Custom scheme for iOS app as URL. For iOS, provide both iPhone & iPad app information if they are different from the general iOS app. Example: iOS://electronic',
|
328
|
+
required: false,
|
329
|
+
type: 'macro-input',
|
330
|
+
validator: (v) => validate(v, z.string().max(200).optional()),
|
331
|
+
defaultValue: '',
|
332
|
+
rules: { sections: [] },
|
333
|
+
},
|
334
|
+
{
|
335
|
+
attribute: 'android_url',
|
336
|
+
label: 'Android URL',
|
337
|
+
description: 'Custom scheme for Android app as URL. For example: android://electronic',
|
338
|
+
required: false,
|
339
|
+
type: 'macro-input',
|
340
|
+
validator: (v) => validate(v, z.string().max(200).optional()),
|
341
|
+
defaultValue: '',
|
342
|
+
rules: { sections: [] },
|
343
|
+
},
|
344
|
+
...[0, 1, 2, 3, 4].map(i => ({
|
345
|
+
...customLabelMapping,
|
346
|
+
attribute: `custom_label_${i}`,
|
347
|
+
label: `Custom Label ${i + 1}`,
|
348
|
+
})),
|
349
|
+
{
|
350
|
+
attribute: 'merchant_brand',
|
351
|
+
label: 'Merchant brand',
|
352
|
+
description: 'This is the Brand Name of the Store on your E-Comm website. For example, Alibaba, Amazon, JingDong',
|
353
|
+
required: false,
|
354
|
+
type: 'macro-input',
|
355
|
+
defaultValue: '',
|
356
|
+
validator: (v) => validate(v, z.string().max(200).optional()),
|
357
|
+
rules: { sections: [] },
|
358
|
+
},
|
359
|
+
{
|
360
|
+
attribute: 'productHisEval',
|
361
|
+
label: 'Product history evaluation',
|
362
|
+
description: "You can provide the purchase count and the good feedback count in this field. Split by ':'",
|
363
|
+
required: false,
|
364
|
+
type: 'macro-input',
|
365
|
+
defaultValue: '',
|
366
|
+
rules: { sections: [] },
|
367
|
+
},
|
368
|
+
],
|
369
|
+
};
|
370
|
+
//# sourceMappingURL=tiktok.template.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tiktok.template.js","sourceRoot":"","sources":["../../../src/utils/feed-templates/tiktok.template.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,2BA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AAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACzB,GAAG,kBAAkB;YACrB,SAAS,EAAE,gBAAgB,CAAC,EAAE;YAC9B,KAAK,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE;SACjC,CAAC,CAAC;QACH;YACI,SAAS,EAAE,gBAAgB;YAC3B,KAAK,EAAE,gBAAgB;YACvB,WAAW,EACP,qGAAqG;YACzG,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,aAAa;YACnB,YAAY,EAAE,EAAE;YAChB,SAAS,EAAE,CAAC,CAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;YAC9E,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;SAC1B;QACD;YACI,SAAS,EAAE,gBAAgB;YAC3B,KAAK,EAAE,4BAA4B;YACnC,WAAW,EAAE,4FAA4F;YACzG,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,aAAa;YACnB,YAAY,EAAE,EAAE;YAChB,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;SAC1B;KACJ;CACJ,CAAC"}
|
package/package.json
CHANGED
@@ -5,6 +5,7 @@ import { customFeedTemplate } from './custom.template.js';
|
|
5
5
|
import { facebookFeedTemplate } from './facebook.template.js';
|
6
6
|
import { XmlFeedTemplateType } from '../../types/profile.types.js';
|
7
7
|
import { googleFeedTemplate } from './google.template.js';
|
8
|
+
import { tiktokFeedTemplate } from './tiktok.template.js';
|
8
9
|
|
9
10
|
export const hasMacro = (v: string) => /{{[^}]+}}/.test(v);
|
10
11
|
export const removeMacro = (v: string) => v.replaceAll(/{{[^}]+}}/g, '');
|
@@ -85,6 +86,8 @@ export function getTemplate(type: XMLFeedType): XmlFeedTemplateType {
|
|
85
86
|
return facebookFeedTemplate;
|
86
87
|
case XMLFeedType.Google:
|
87
88
|
return googleFeedTemplate;
|
89
|
+
case XMLFeedType.TikTok:
|
90
|
+
return tiktokFeedTemplate;
|
88
91
|
default:
|
89
92
|
throw new Error(`Invalid feed type: ${type}`);
|
90
93
|
}
|
@@ -0,0 +1,401 @@
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
2
|
+
/* eslint-disable quotes */
|
3
|
+
import * as z from 'zod';
|
4
|
+
import { ulid } from 'ulid';
|
5
|
+
import { dateRangeSchema, measureUnitsSchema, validate, validateIfNoMacro } from './index.js';
|
6
|
+
import { XmlFeedTemplateType } from '../../types/profile.types.js';
|
7
|
+
import { XmlFeedFormat } from '../../constants/profile.constants.js';
|
8
|
+
|
9
|
+
/* eslint-disable max-len */
|
10
|
+
const availabilityMapping = {
|
11
|
+
attribute: 'availability',
|
12
|
+
label: 'Availability',
|
13
|
+
description:
|
14
|
+
'The current availability of the item in your store. Supported values: in stock, available for order, preorder, out of stock, discontinued. Example: in stock',
|
15
|
+
required: true,
|
16
|
+
type: 'macro-input' as any,
|
17
|
+
validator: (v: string | number) =>
|
18
|
+
validateIfNoMacro(v, z.enum(['in stock', 'available for order', 'preorder', 'out of stock', 'discontinued'])),
|
19
|
+
};
|
20
|
+
|
21
|
+
const conditionMapping = {
|
22
|
+
attribute: 'condition',
|
23
|
+
label: 'Condition',
|
24
|
+
description:
|
25
|
+
'The current condition of the item in your store. Supported values: new, refurbished, used. Example: new',
|
26
|
+
required: true,
|
27
|
+
type: 'macro-input' as any,
|
28
|
+
validator: (v: string | number) => validateIfNoMacro(v, z.enum(['new', 'refurbished', 'used'])),
|
29
|
+
};
|
30
|
+
|
31
|
+
const customLabelMapping = {
|
32
|
+
attribute: 'custom_label_0',
|
33
|
+
label: 'Custom Label 1',
|
34
|
+
description: 'Additional information about the product you want to include. Max character limit: 100',
|
35
|
+
required: false,
|
36
|
+
type: 'macro-input' as any,
|
37
|
+
defaultValue: '',
|
38
|
+
rules: { sections: [] },
|
39
|
+
validator: (v: string | number) => validate(v, z.string().max(100).optional()),
|
40
|
+
};
|
41
|
+
|
42
|
+
export const tiktokFeedTemplate: XmlFeedTemplateType = {
|
43
|
+
formats: [XmlFeedFormat.CSV, XmlFeedFormat.XML],
|
44
|
+
documentation: 'https://ads.tiktok.com/help/article/catalog-product-parameters',
|
45
|
+
mapping: [
|
46
|
+
{
|
47
|
+
attribute: 'sku_id',
|
48
|
+
label: 'ID',
|
49
|
+
description:
|
50
|
+
'Enter a unique ID for the item, such as a SKU. If there are multiple instances of the same ID, these will be ignored. You need to use the same id to replace the same product in the original data feed if you want to update it. Use only valid unicode characters, avoid invalid characters like control or function characters.: tiktok_item_1234',
|
51
|
+
required: true,
|
52
|
+
type: 'macro-input',
|
53
|
+
validator: v => validateIfNoMacro(v, z.string().min(1)),
|
54
|
+
defaultValue: '{{shopify.id}}-{{shopify.variant_id}}',
|
55
|
+
rules: { sections: [] },
|
56
|
+
},
|
57
|
+
{
|
58
|
+
attribute: 'title',
|
59
|
+
label: 'Title',
|
60
|
+
description:
|
61
|
+
'The title of the item. Use only valid unicode characters, avoid invalid characters like control, function characters or emoji. Do not include promotional text like "free shipping, high quality, wholesale". Example: T-Shirt (Unisex)',
|
62
|
+
required: true,
|
63
|
+
type: 'macro-input',
|
64
|
+
validator: (v: string | number) => validateIfNoMacro(v, z.string().min(1)),
|
65
|
+
defaultValue: '{{shopify.title}}',
|
66
|
+
rules: { sections: [] },
|
67
|
+
},
|
68
|
+
{
|
69
|
+
attribute: 'description',
|
70
|
+
label: 'Description',
|
71
|
+
description:
|
72
|
+
'A short description describing the item. Example: A vibrant crewneck for all shapes and sizes. Made from 100% cotton.',
|
73
|
+
required: true,
|
74
|
+
type: 'macro-input',
|
75
|
+
validator: (v: string | number) => validateIfNoMacro(v, z.string().max(9999).min(1)),
|
76
|
+
defaultValue: '{{shopify.description}}',
|
77
|
+
rules: { sections: [] },
|
78
|
+
},
|
79
|
+
{
|
80
|
+
...availabilityMapping,
|
81
|
+
defaultValue: 'in stock',
|
82
|
+
rules: { sections: [] },
|
83
|
+
},
|
84
|
+
{
|
85
|
+
...availabilityMapping,
|
86
|
+
defaultValue: 'out of stock',
|
87
|
+
rules: {
|
88
|
+
sections: [
|
89
|
+
{
|
90
|
+
id: ulid(),
|
91
|
+
ruleItems: [
|
92
|
+
{
|
93
|
+
id: ulid(),
|
94
|
+
attribute: 'inventory_quantity',
|
95
|
+
operator: 'equals',
|
96
|
+
value: 0,
|
97
|
+
},
|
98
|
+
],
|
99
|
+
},
|
100
|
+
{
|
101
|
+
id: ulid(),
|
102
|
+
ruleItems: [
|
103
|
+
{
|
104
|
+
id: ulid(),
|
105
|
+
attribute: 'inventory_policy',
|
106
|
+
operator: 'equals',
|
107
|
+
value: 'deny',
|
108
|
+
},
|
109
|
+
],
|
110
|
+
},
|
111
|
+
],
|
112
|
+
},
|
113
|
+
},
|
114
|
+
{
|
115
|
+
...conditionMapping,
|
116
|
+
defaultValue: 'new',
|
117
|
+
rules: {
|
118
|
+
sections: [],
|
119
|
+
},
|
120
|
+
},
|
121
|
+
{
|
122
|
+
attribute: 'price',
|
123
|
+
label: 'Price',
|
124
|
+
description:
|
125
|
+
"The cost of the item. Currency will follow the catalog's target country by default. Examples: 9.99 USD",
|
126
|
+
required: true,
|
127
|
+
type: 'macro-input',
|
128
|
+
validator: (v: string | number) => validateIfNoMacro(v, z.string().min(1)),
|
129
|
+
defaultValue: '{{shopify.price}} {{shopify.shop_currency}}',
|
130
|
+
rules: { sections: [] },
|
131
|
+
},
|
132
|
+
{
|
133
|
+
attribute: 'link',
|
134
|
+
label: 'Link',
|
135
|
+
description:
|
136
|
+
'The URL of the product landing page, or the website where you can buy the item. Example: https://www.tiktok.com/tiktok_t_shirt',
|
137
|
+
required: true,
|
138
|
+
type: 'macro-input',
|
139
|
+
validator: (v: string | number) => validateIfNoMacro(v, z.string().url()),
|
140
|
+
defaultValue: 'https://{{shopify.shop_domain}}/products/{{shopify.handle}}',
|
141
|
+
rules: { sections: [] },
|
142
|
+
},
|
143
|
+
{
|
144
|
+
attribute: 'image_link',
|
145
|
+
label: 'Image link',
|
146
|
+
description:
|
147
|
+
'The URL for the image used in your ad.- For square (1:1) aspect ratios in the carousel ad format, your image should be ≥500x500.- Image links should end with JPG or PNG.- Supported image hosting sites include: Imgur, Imgshare.io, Photobucket, Imageshack.- Non-supported image hosting sites include: GoogleDrive, Flickr, Pinterest, 500px, Imgbb, Smugmug, Dropbox Note: TikTok has no affiliation with these hosting sites and are not responsible for advertiser experience with these sites.. Example: https://www.tiktok.com/t_shirt_image_001.jpg',
|
148
|
+
required: true,
|
149
|
+
type: 'macro-input',
|
150
|
+
validator: (v: string | number) => validateIfNoMacro(v, z.string().url()),
|
151
|
+
defaultValue: '{{shopify.image}}',
|
152
|
+
rules: { sections: [] },
|
153
|
+
},
|
154
|
+
{
|
155
|
+
attribute: 'brand',
|
156
|
+
label: 'Brand',
|
157
|
+
description:
|
158
|
+
'You can use a brand name for your product. - We strongly recommend you to provide an accurate value instead of a meaningless one. Example: Nike, Adidas, Apple, Google',
|
159
|
+
required: true,
|
160
|
+
type: 'macro-input',
|
161
|
+
validator: (v: string | number) => validateIfNoMacro(v, z.string().max(100).min(1)),
|
162
|
+
defaultValue: '{{shopify.vendor}}',
|
163
|
+
rules: { sections: [] },
|
164
|
+
},
|
165
|
+
{
|
166
|
+
attribute: 'google_product_category',
|
167
|
+
label: 'Google product category',
|
168
|
+
description:
|
169
|
+
"A preset value from Google's product taxonomy. Only supports three levels. Example: Apparel & Accessories > Clothing > Dresses -Apparel & Accessories > Clothing > Shirts",
|
170
|
+
required: false,
|
171
|
+
type: 'macro-input',
|
172
|
+
defaultValue: '',
|
173
|
+
rules: { sections: [] },
|
174
|
+
},
|
175
|
+
{
|
176
|
+
attribute: 'video_link',
|
177
|
+
label: 'Video link',
|
178
|
+
description:
|
179
|
+
'The URL for the video used in your ad for the video placement. Recommend Vertical(9:16);Recommend Resolution for TikTok: ≥720*1280;Recommend Bitrate for TikTok: ≥516kbps; Sound: Enabled with captions included. Example: https://www.tiktok.com/tiktok_t_shirt',
|
180
|
+
required: false,
|
181
|
+
type: 'macro-input' as any,
|
182
|
+
defaultValue: '',
|
183
|
+
rules: { sections: [] },
|
184
|
+
validator: (v: string | number) =>
|
185
|
+
validateIfNoMacro(
|
186
|
+
v,
|
187
|
+
z.string().refine(v => !v || z.string().url().safeParse(v).success, { message: 'invalid URL' })
|
188
|
+
),
|
189
|
+
},
|
190
|
+
{
|
191
|
+
attribute: 'additional_image_link',
|
192
|
+
label: 'Additional image link',
|
193
|
+
description:
|
194
|
+
'Additional image URLs for the item. You need to use double quote to include the URLs. You can include up to 10 image URLs. Use "," to separate each URL. For square (1:1) aspect ratios in the carousel ad format, your image should be ≥500x500. All images should be in JPG or PNG format. Example: https://www.tiktok.com/t_shirt_image_002.jpg,https://www.tiktok.com/t_shirt_image_003.jpg',
|
195
|
+
required: false,
|
196
|
+
type: 'macro-input',
|
197
|
+
defaultValue: '{{shopify.images}}',
|
198
|
+
rules: { sections: [] },
|
199
|
+
},
|
200
|
+
{
|
201
|
+
attribute: 'age_group',
|
202
|
+
label: 'Age group',
|
203
|
+
description:
|
204
|
+
'The age group for your item. The accuracy of this field is important to ensure products are delivered to the intended age demographics. Supported values:Newborn (0-3 months old)Infant (3-12 months old)Toddler (1-5 years old)Kids (5-13 years old)Adult (13 years old or more). Example: adult',
|
205
|
+
required: false,
|
206
|
+
type: 'macro-input',
|
207
|
+
defaultValue: '',
|
208
|
+
rules: { sections: [] },
|
209
|
+
validator: v => validate(v, z.enum(['newborn', 'infant', 'toddler', 'kids', 'adult']).optional()),
|
210
|
+
},
|
211
|
+
{
|
212
|
+
attribute: 'color',
|
213
|
+
label: 'Color',
|
214
|
+
description: 'The item color. Example: Royal blue',
|
215
|
+
required: false,
|
216
|
+
type: 'macro-input',
|
217
|
+
defaultValue: '',
|
218
|
+
rules: { sections: [] },
|
219
|
+
validator: (v: string | number) => validate(v, z.string().optional()),
|
220
|
+
},
|
221
|
+
{
|
222
|
+
attribute: 'gender',
|
223
|
+
label: 'Gender',
|
224
|
+
description:
|
225
|
+
"The item's gender. The accuracy of this field is important to ensure products are delivered to the intended gender group. Supported values: male, female, unisex. Example: unisex",
|
226
|
+
required: false,
|
227
|
+
type: 'macro-input',
|
228
|
+
defaultValue: '',
|
229
|
+
rules: { sections: [] },
|
230
|
+
validator: v => validate(v, z.enum(['female', 'male', 'unisex', '']).optional()),
|
231
|
+
},
|
232
|
+
{
|
233
|
+
attribute: 'item_group_id',
|
234
|
+
label: 'Item group ID',
|
235
|
+
description:
|
236
|
+
'Items that are variants of a specific product. Provide the same item_group_id for all items that are variants. For example, a red Polo Shirt is a variant of Polo Shirt. Example: tiktok_1234_shirts',
|
237
|
+
required: false,
|
238
|
+
type: 'macro-input',
|
239
|
+
defaultValue: '{{shopify.id}}',
|
240
|
+
rules: { sections: [] },
|
241
|
+
},
|
242
|
+
{
|
243
|
+
attribute: 'material',
|
244
|
+
label: 'Material',
|
245
|
+
description: 'The material the product is made from, such as cotton, denim, or leather. Example: cotton',
|
246
|
+
required: false,
|
247
|
+
type: 'macro-input',
|
248
|
+
defaultValue: '',
|
249
|
+
rules: { sections: [] },
|
250
|
+
validator: (v: string | number) => validate(v, z.string().optional()),
|
251
|
+
},
|
252
|
+
{
|
253
|
+
attribute: 'pattern',
|
254
|
+
label: 'Pattern',
|
255
|
+
description: 'Pattern or graphic print on a product. Example: stripes1',
|
256
|
+
required: false,
|
257
|
+
type: 'macro-input',
|
258
|
+
defaultValue: '',
|
259
|
+
rules: { sections: [] },
|
260
|
+
validator: (v: string | number) => validate(v, z.string().max(100).optional()),
|
261
|
+
},
|
262
|
+
{
|
263
|
+
attribute: 'product_type',
|
264
|
+
label: 'Product type',
|
265
|
+
description:
|
266
|
+
'The category the product belongs to. Only the first three levels are indicated. Example: Home & Garden > Kitchen & Dining > Appliances > Refrigerators ',
|
267
|
+
required: false,
|
268
|
+
type: 'macro-input',
|
269
|
+
defaultValue: '{{shopify.category}}',
|
270
|
+
rules: { sections: [] },
|
271
|
+
validator: (v: string | number) => validate(v, z.string().max(100).optional()),
|
272
|
+
},
|
273
|
+
{
|
274
|
+
attribute: 'sale_price',
|
275
|
+
label: 'Sale price',
|
276
|
+
description:
|
277
|
+
'The discounted cost and currency code for the product if it\'s on sale. A sale price is a number followed by the currency code (ISO 4217 standards). Use "." as the decimal for the sale price. The sale price is required if you plan on using an overlay for discounted prices. Example: 4.99 USD',
|
278
|
+
required: false,
|
279
|
+
type: 'macro-input',
|
280
|
+
defaultValue: '',
|
281
|
+
rules: { sections: [] },
|
282
|
+
},
|
283
|
+
{
|
284
|
+
attribute: 'sale_price_effective_date',
|
285
|
+
label: 'Sale price effective date',
|
286
|
+
description:
|
287
|
+
'The start and end date and time for your sale, written as: YYYY-MM-DDT0:00-23:59/YYYY-MM-DDT0:00-23:59. Use a start date before the end date. Example 2017-12-01T0:00/2017-12-31T0:00',
|
288
|
+
required: false,
|
289
|
+
type: 'macro-input',
|
290
|
+
defaultValue: '',
|
291
|
+
validator: (v: string | number) => validateIfNoMacro(v, dateRangeSchema),
|
292
|
+
rules: { sections: [] },
|
293
|
+
},
|
294
|
+
{
|
295
|
+
attribute: 'shipping',
|
296
|
+
label: 'Shipping',
|
297
|
+
description:
|
298
|
+
'The type of shipping for the item, Recommend written as: COUNTRY:STATE:SHIPPING_TYPE:PRICE:SERVICE. Use ";" to separate different regions. Example: US:CA: Ground:9.99 USD: Standard',
|
299
|
+
required: false,
|
300
|
+
type: 'macro-input',
|
301
|
+
defaultValue: '',
|
302
|
+
rules: { sections: [] },
|
303
|
+
},
|
304
|
+
{
|
305
|
+
attribute: 'shipping_weight',
|
306
|
+
label: 'Shipping weight',
|
307
|
+
description: 'The shipping weight of the item. Example: 0.3 lb',
|
308
|
+
required: false,
|
309
|
+
type: 'macro-input',
|
310
|
+
defaultValue: '{{shopify.weight}} {{shopify.weight_unit}}',
|
311
|
+
validator: (v: string | number) => validateIfNoMacro(v, measureUnitsSchema(['lb', 'oz', 'g', 'kg'])),
|
312
|
+
rules: { sections: [] },
|
313
|
+
},
|
314
|
+
{
|
315
|
+
attribute: 'gtin',
|
316
|
+
label: 'GTIN',
|
317
|
+
description:
|
318
|
+
'Several different types of ID numbers are considered a GTIN (Global Trade Item Numbers). Use the GTIN attribute to submit any of the following types of numbers: UPC (in North America / GTIN-12): 12-digit number (convert 8-digit UPC-E codes to 12-digit codes) EAN (in Europe / GTIN-13): 13-digit number JAN (in Japan / GTIN-13): 8 or 13-digit number ISBN (for books): 13-digit number (convert ISBN-10 to ISBN-13) - If you have both, include only the 13-digit number. ITF-14 (for multipacks / GTIN-14): 14-digit number. Example: 3234567890126',
|
319
|
+
required: false,
|
320
|
+
type: 'macro-input',
|
321
|
+
defaultValue: '',
|
322
|
+
rules: { sections: [] },
|
323
|
+
},
|
324
|
+
{
|
325
|
+
attribute: 'mpn',
|
326
|
+
label: 'MPN',
|
327
|
+
description: 'You can use a unique manufacturer part number (MPN) to describe your product. Example: 12433',
|
328
|
+
required: false,
|
329
|
+
type: 'macro-input',
|
330
|
+
defaultValue: '',
|
331
|
+
validator: (v: string | number) => validate(v, z.string().optional()),
|
332
|
+
rules: { sections: [] },
|
333
|
+
},
|
334
|
+
{
|
335
|
+
attribute: 'size',
|
336
|
+
label: 'Size',
|
337
|
+
description: 'The size of the item. Example: Small, Large,Extra Large',
|
338
|
+
required: false,
|
339
|
+
type: 'macro-input',
|
340
|
+
validator: (v: string | number) => validate(v, z.string().max(200).optional()),
|
341
|
+
defaultValue: '',
|
342
|
+
rules: { sections: [] },
|
343
|
+
},
|
344
|
+
{
|
345
|
+
attribute: 'tax',
|
346
|
+
label: 'Tax',
|
347
|
+
description: 'The tax for item. Example: 0.05',
|
348
|
+
required: false,
|
349
|
+
type: 'macro-input',
|
350
|
+
validator: (v: string | number) => validate(v, z.coerce.number().min(0).optional()),
|
351
|
+
defaultValue: '',
|
352
|
+
rules: { sections: [] },
|
353
|
+
},
|
354
|
+
{
|
355
|
+
attribute: 'ios_url',
|
356
|
+
label: 'iOS URL',
|
357
|
+
description:
|
358
|
+
'Required Field for IOS App re-engagement. Only support schema format. Custom scheme for iOS app as URL. For iOS, provide both iPhone & iPad app information if they are different from the general iOS app. Example: iOS://electronic',
|
359
|
+
required: false,
|
360
|
+
type: 'macro-input',
|
361
|
+
validator: (v: string | number) => validate(v, z.string().max(200).optional()),
|
362
|
+
defaultValue: '',
|
363
|
+
rules: { sections: [] },
|
364
|
+
},
|
365
|
+
{
|
366
|
+
attribute: 'android_url',
|
367
|
+
label: 'Android URL',
|
368
|
+
description: 'Custom scheme for Android app as URL. For example: android://electronic',
|
369
|
+
required: false,
|
370
|
+
type: 'macro-input',
|
371
|
+
validator: (v: string | number) => validate(v, z.string().max(200).optional()),
|
372
|
+
defaultValue: '',
|
373
|
+
rules: { sections: [] },
|
374
|
+
},
|
375
|
+
...[0, 1, 2, 3, 4].map(i => ({
|
376
|
+
...customLabelMapping,
|
377
|
+
attribute: `custom_label_${i}`,
|
378
|
+
label: `Custom Label ${i + 1}`,
|
379
|
+
})),
|
380
|
+
{
|
381
|
+
attribute: 'merchant_brand',
|
382
|
+
label: 'Merchant brand',
|
383
|
+
description:
|
384
|
+
'This is the Brand Name of the Store on your E-Comm website. For example, Alibaba, Amazon, JingDong',
|
385
|
+
required: false,
|
386
|
+
type: 'macro-input',
|
387
|
+
defaultValue: '',
|
388
|
+
validator: (v: string | number) => validate(v, z.string().max(200).optional()),
|
389
|
+
rules: { sections: [] },
|
390
|
+
},
|
391
|
+
{
|
392
|
+
attribute: 'productHisEval',
|
393
|
+
label: 'Product history evaluation',
|
394
|
+
description: "You can provide the purchase count and the good feedback count in this field. Split by ':'",
|
395
|
+
required: false,
|
396
|
+
type: 'macro-input',
|
397
|
+
defaultValue: '',
|
398
|
+
rules: { sections: [] },
|
399
|
+
},
|
400
|
+
],
|
401
|
+
};
|