@planoly/planogram-config 1.0.6 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- var version = "1.0.6";
1
+ var version = "1.1.0";
2
2
  var platforms = [
3
3
  {
4
4
  name: "tiktok",
@@ -6,6 +6,7 @@ var platforms = [
6
6
  enabled: true,
7
7
  order: 3,
8
8
  isBeta: false,
9
+ hidePostTypeSelector: true,
9
10
  postTypes: [
10
11
  {
11
12
  name: "Video Post",
@@ -15,7 +16,7 @@ var platforms = [
15
16
  "video/mp4",
16
17
  "video/quicktime"
17
18
  ],
18
- allowMultipleAssets: true,
19
+ allowMultipleAssets: false,
19
20
  allowedMultipleAssetMediaTypes: [
20
21
  ],
21
22
  hasCaptions: true,
@@ -48,6 +49,54 @@ var platforms = [
48
49
  ],
49
50
  allowCoverPhotoCanva: false,
50
51
  allowCoverPhotoImageCompression: false,
52
+ tiktokOptions: {
53
+ allowPrivacyLevel: false,
54
+ allowBrandedContent: true,
55
+ allowAutoAddMusic: false,
56
+ allowDisableComment: true,
57
+ autoAddMusicTooltip: "Recommended music will be automatically added to photos, you can change the post's music on TikTok after it posts"
58
+ },
59
+ brandContentOptions: [
60
+ {
61
+ name: "Not Promoting A Brand",
62
+ value: "none",
63
+ icon: "vp-icon-user"
64
+ },
65
+ {
66
+ name: "Brand Promotion",
67
+ value: "organic",
68
+ icon: "vp-icon-megaphone",
69
+ tooltip: "Enable if the content is promoting your own brand or business"
70
+ },
71
+ {
72
+ name: "Paid Partnership",
73
+ value: "brand",
74
+ icon: "vp-icon-currency-dollar-circle",
75
+ tooltip: "Enable if the content is a paid partnership to promote a third-party business."
76
+ }
77
+ ],
78
+ privacyLevelOptions: [
79
+ {
80
+ name: "Public",
81
+ value: "PUBLIC_TO_EVERYONE",
82
+ icon: "vp-icon-eye"
83
+ },
84
+ {
85
+ name: "Mutuals",
86
+ value: "MUTUAL_FOLLOW_FRIENDS",
87
+ icon: "vp-icon-users"
88
+ },
89
+ {
90
+ name: "Followers",
91
+ value: "FOLLOWER_OF_CREATOR",
92
+ icon: "vp-icon-user"
93
+ },
94
+ {
95
+ name: "Private",
96
+ value: "SELF_ONLY",
97
+ icon: "vp-icon-eye-off"
98
+ }
99
+ ],
51
100
  validations: [
52
101
  {
53
102
  type: "numberOfAssets",
@@ -116,6 +165,178 @@ var platforms = [
116
165
  }
117
166
  }
118
167
  ]
168
+ },
169
+ {
170
+ name: "Photo Carousel",
171
+ allowAutoPost: true,
172
+ allowFirstComment: false,
173
+ allowedMediaTypes: [
174
+ "image/jpeg",
175
+ "image/webp"
176
+ ],
177
+ allowMultipleAssets: true,
178
+ allowedMultipleAssetMediaTypes: [
179
+ "image/jpeg",
180
+ "image/webp"
181
+ ],
182
+ hasCaptions: true,
183
+ hasTitle: true,
184
+ allowNotifySubscribers: false,
185
+ allowVisibility: false,
186
+ visibilityOptions: [
187
+ ],
188
+ coverPhotoSource: [
189
+ ],
190
+ allowHashtags: true,
191
+ allowSoundUrl: true,
192
+ allowSnipfeed: true,
193
+ allowSoundUrlForAutopost: false,
194
+ allowAddLink: false,
195
+ allowUserTagging: false,
196
+ allowProductTagging: false,
197
+ allowLocationTagging: false,
198
+ allowTagInLinkit: false,
199
+ allowASINTagging: false,
200
+ allowShareToFeed: false,
201
+ allowOptions: true,
202
+ allowCanva: false,
203
+ allowCollaboratorTagging: false,
204
+ canvaDesignType: "TiktokPhotoCarousel",
205
+ allowImageCompression: false,
206
+ allowCoverPhoto: false,
207
+ allowedCoverPhotoTypes: [
208
+ ],
209
+ allowCoverPhotoCanva: false,
210
+ allowCoverPhotoImageCompression: false,
211
+ tiktokOptions: {
212
+ allowPrivacyLevel: true,
213
+ allowBrandedContent: true,
214
+ allowAutoAddMusic: true,
215
+ allowDisableComment: true,
216
+ autoAddMusicTooltip: "Recommended music will be automatically added to photos, you can change the post's music on TikTok after it posts"
217
+ },
218
+ brandContentOptions: [
219
+ {
220
+ name: "Not Promoting A Brand",
221
+ value: "none",
222
+ icon: "vp-icon-user"
223
+ },
224
+ {
225
+ name: "Brand Promotion",
226
+ value: "organic",
227
+ icon: "vp-icon-megaphone",
228
+ tooltip: "Enable if the content is promoting your own brand or business"
229
+ },
230
+ {
231
+ name: "Paid Partnership",
232
+ value: "brand",
233
+ icon: "vp-icon-currency-dollar-circle",
234
+ tooltip: "Enable if the content is a paid partnership to promote a third-party business."
235
+ }
236
+ ],
237
+ privacyLevelOptions: [
238
+ {
239
+ name: "Public",
240
+ value: "PUBLIC_TO_EVERYONE",
241
+ icon: "vp-icon-eye"
242
+ },
243
+ {
244
+ name: "Mutuals",
245
+ value: "MUTUAL_FOLLOW_FRIENDS",
246
+ icon: "vp-icon-users"
247
+ },
248
+ {
249
+ name: "Followers",
250
+ value: "FOLLOWER_OF_CREATOR",
251
+ icon: "vp-icon-user"
252
+ },
253
+ {
254
+ name: "Private",
255
+ value: "SELF_ONLY",
256
+ icon: "vp-icon-eye-off"
257
+ }
258
+ ],
259
+ validations: [
260
+ {
261
+ type: "numberOfAssets",
262
+ userErrorMessage: "Media ineligible for auto-post. Upload 1 to 35 images to meet TikTok guidelines.",
263
+ errorHelpLink: "https://help.planoly.com/knowledge/auto-posting-to-tiktok-from-planoly",
264
+ parameters: {
265
+ min: 1,
266
+ max: 35
267
+ }
268
+ },
269
+ {
270
+ type: "autoPostImageSize",
271
+ userErrorMessage: "Media ineligible for auto-post. Your image size must be less than 20MB. Adjust size & re-upload to meet TikTok guidelines.",
272
+ errorHelpLink: "https://help.planoly.com/knowledge",
273
+ parameters: {
274
+ value: 20
275
+ }
276
+ },
277
+ {
278
+ type: "orientationSpecificMaxDimensions",
279
+ userErrorMessage: "Image resolution is too high. Please use a maximum of 1080x1920 for portrait or 1920x1080 for landscape.",
280
+ parameters: {
281
+ portrait: {
282
+ maxWidth: 1080,
283
+ maxHeight: 1920
284
+ },
285
+ landscape: {
286
+ maxWidth: 1920,
287
+ maxHeight: 1080
288
+ }
289
+ }
290
+ },
291
+ {
292
+ type: "futureDate",
293
+ userErrorMessage: "Media ineligible for auto-post. Please choose a date and time at least 5 minutes in the future.",
294
+ errorHelpLink: "https://help.planoly.com/knowledge/auto-posting-to-tiktok-from-planoly",
295
+ parameters: {
296
+ value: 5
297
+ }
298
+ },
299
+ {
300
+ type: "manualPostCaptionLength",
301
+ userErrorMessage: "Caption ineligible for posting. Your caption must be between 1 and 4000 characters. Adjust caption length to meet TikTok guidelines.",
302
+ errorHelpLink: "https://help.planoly.com/knowledge/auto-posting-to-tiktok-from-planoly",
303
+ parameters: {
304
+ min: 0,
305
+ max: 4000
306
+ }
307
+ },
308
+ {
309
+ type: "autoPostCaptionLength",
310
+ userErrorMessage: "Caption ineligible for auto-post. Your caption must be between 1 and 4000 characters. Adjust caption length to meet TikTok guidelines.",
311
+ errorHelpLink: "https://help.planoly.com/knowledge/auto-posting-to-tiktok-from-planoly",
312
+ parameters: {
313
+ min: 0,
314
+ max: 4000
315
+ }
316
+ },
317
+ {
318
+ type: "titleLength",
319
+ userErrorMessage: "Title ineligible for auto-post. Your title must be between 1 and 90 characters. Adjust title length to meet TikTok guidelines.",
320
+ errorHelpLink: "https://help.planoly.com/knowledge",
321
+ parameters: {
322
+ min: 1,
323
+ max: 90
324
+ }
325
+ },
326
+ {
327
+ type: "allowedMediaTypes",
328
+ userErrorMessage: "Media ineligible for posting. Image content must be uploaded in .jpeg, .jpg, or .webp format. Adjust your file type and re-upload to meet TikTok guidelines.",
329
+ errorHelpLink: "https://help.planoly.com/knowledge"
330
+ },
331
+ {
332
+ type: "hashtagLimit",
333
+ userErrorMessage: "Hashtag limit exceeded. Please remove additional hashtags to continue.",
334
+ parameters: {
335
+ min: 0,
336
+ max: 5
337
+ }
338
+ }
339
+ ]
119
340
  }
120
341
  ]
121
342
  },
@@ -230,10 +451,10 @@ var platforms = [
230
451
  },
231
452
  {
232
453
  type: "autoPostVideoMaxDimensions",
233
- userErrorMessage: "Media ineligible for auto-post. Crop your video to be a maximum of 2160 pixels in width and 3840 pixels in height to meet Instagram's guidelines.",
454
+ userErrorMessage: "Media ineligible for auto-post. Your video exceeds Instagram's resolution limit. Resize it to a maximum of 3840×2160 pixels (landscape) or 2160×3840 pixels (portrait).",
234
455
  errorHelpLink: "https://help.planoly.com/knowledge/auto-post-guidelines-and-limitations",
235
456
  parameters: {
236
- width: 2160,
457
+ width: 3840,
237
458
  height: 3840
238
459
  }
239
460
  },
@@ -437,10 +658,10 @@ var platforms = [
437
658
  },
438
659
  {
439
660
  type: "autoPostVideoMaxDimensions",
440
- userErrorMessage: "Media ineligible for auto-post. Crop your video to be a maximum of 1920 pixels in width and 3840 pixels in height to meet Instagram's guidelines.",
661
+ userErrorMessage: "Media ineligible for auto-post. Your video exceeds Instagram's resolution limit. Resize it to a maximum of 3840×2160 pixels (landscape) or 2160×3840 pixels (portrait).",
441
662
  errorHelpLink: "https://help.planoly.com/knowledge/auto-post-guidelines-and-limitations",
442
663
  parameters: {
443
- width: 2160,
664
+ width: 3840,
444
665
  height: 3840
445
666
  }
446
667
  },
@@ -608,10 +829,10 @@ var platforms = [
608
829
  },
609
830
  {
610
831
  type: "autoPostVideoMaxDimensions",
611
- userErrorMessage: "Media ineligible for auto-post. Crop your video to be a maximum of 2160 pixels in width and 3840 pixels in height to meet Instagram's guidelines.",
832
+ userErrorMessage: "Media ineligible for auto-post. Your video exceeds Instagram's resolution limit. Resize it to a maximum of 3840×2160 pixels (landscape) or 2160×3840 pixels (portrait).",
612
833
  errorHelpLink: "https://help.planoly.com/knowledge/auto-post-guidelines-and-limitations",
613
834
  parameters: {
614
- width: 2160,
835
+ width: 3840,
615
836
  height: 3840
616
837
  }
617
838
  },
@@ -2285,7 +2506,8 @@ declare const postExperienceConfig: {
2285
2506
  enabled: boolean;
2286
2507
  order: number;
2287
2508
  isBeta: boolean;
2288
- postTypes: {
2509
+ hidePostTypeSelector: boolean;
2510
+ postTypes: ({
2289
2511
  name: string;
2290
2512
  allowAutoPost: boolean;
2291
2513
  allowFirstComment: boolean;
@@ -2318,6 +2540,29 @@ declare const postExperienceConfig: {
2318
2540
  allowedCoverPhotoTypes: never[];
2319
2541
  allowCoverPhotoCanva: boolean;
2320
2542
  allowCoverPhotoImageCompression: boolean;
2543
+ tiktokOptions: {
2544
+ allowPrivacyLevel: boolean;
2545
+ allowBrandedContent: boolean;
2546
+ allowAutoAddMusic: boolean;
2547
+ allowDisableComment: boolean;
2548
+ autoAddMusicTooltip: string;
2549
+ };
2550
+ brandContentOptions: ({
2551
+ name: string;
2552
+ value: string;
2553
+ icon: string;
2554
+ tooltip?: undefined;
2555
+ } | {
2556
+ name: string;
2557
+ value: string;
2558
+ icon: string;
2559
+ tooltip: string;
2560
+ })[];
2561
+ privacyLevelOptions: {
2562
+ name: string;
2563
+ value: string;
2564
+ icon: string;
2565
+ }[];
2321
2566
  validations: ({
2322
2567
  type: string;
2323
2568
  userErrorMessage: string;
@@ -2368,7 +2613,119 @@ declare const postExperienceConfig: {
2368
2613
  };
2369
2614
  errorHelpLink?: undefined;
2370
2615
  })[];
2371
- }[];
2616
+ } | {
2617
+ name: string;
2618
+ allowAutoPost: boolean;
2619
+ allowFirstComment: boolean;
2620
+ allowedMediaTypes: string[];
2621
+ allowMultipleAssets: boolean;
2622
+ allowedMultipleAssetMediaTypes: string[];
2623
+ hasCaptions: boolean;
2624
+ hasTitle: boolean;
2625
+ allowNotifySubscribers: boolean;
2626
+ allowVisibility: boolean;
2627
+ visibilityOptions: never[];
2628
+ coverPhotoSource: never[];
2629
+ allowHashtags: boolean;
2630
+ allowSoundUrl: boolean;
2631
+ allowSnipfeed: boolean;
2632
+ allowSoundUrlForAutopost: boolean;
2633
+ allowAddLink: boolean;
2634
+ allowUserTagging: boolean;
2635
+ allowProductTagging: boolean;
2636
+ allowLocationTagging: boolean;
2637
+ allowTagInLinkit: boolean;
2638
+ allowASINTagging: boolean;
2639
+ allowShareToFeed: boolean;
2640
+ allowOptions: boolean;
2641
+ allowCanva: boolean;
2642
+ allowCollaboratorTagging: boolean;
2643
+ canvaDesignType: string;
2644
+ allowImageCompression: boolean;
2645
+ allowCoverPhoto: boolean;
2646
+ allowedCoverPhotoTypes: never[];
2647
+ allowCoverPhotoCanva: boolean;
2648
+ allowCoverPhotoImageCompression: boolean;
2649
+ tiktokOptions: {
2650
+ allowPrivacyLevel: boolean;
2651
+ allowBrandedContent: boolean;
2652
+ allowAutoAddMusic: boolean;
2653
+ allowDisableComment: boolean;
2654
+ autoAddMusicTooltip: string;
2655
+ };
2656
+ brandContentOptions: ({
2657
+ name: string;
2658
+ value: string;
2659
+ icon: string;
2660
+ tooltip?: undefined;
2661
+ } | {
2662
+ name: string;
2663
+ value: string;
2664
+ icon: string;
2665
+ tooltip: string;
2666
+ })[];
2667
+ privacyLevelOptions: {
2668
+ name: string;
2669
+ value: string;
2670
+ icon: string;
2671
+ }[];
2672
+ validations: ({
2673
+ type: string;
2674
+ userErrorMessage: string;
2675
+ errorHelpLink: string;
2676
+ parameters: {
2677
+ min: number;
2678
+ max: number;
2679
+ value?: undefined;
2680
+ portrait?: undefined;
2681
+ landscape?: undefined;
2682
+ };
2683
+ } | {
2684
+ type: string;
2685
+ userErrorMessage: string;
2686
+ errorHelpLink: string;
2687
+ parameters: {
2688
+ value: number;
2689
+ min?: undefined;
2690
+ max?: undefined;
2691
+ portrait?: undefined;
2692
+ landscape?: undefined;
2693
+ };
2694
+ } | {
2695
+ type: string;
2696
+ userErrorMessage: string;
2697
+ parameters: {
2698
+ portrait: {
2699
+ maxWidth: number;
2700
+ maxHeight: number;
2701
+ };
2702
+ landscape: {
2703
+ maxWidth: number;
2704
+ maxHeight: number;
2705
+ };
2706
+ min?: undefined;
2707
+ max?: undefined;
2708
+ value?: undefined;
2709
+ };
2710
+ errorHelpLink?: undefined;
2711
+ } | {
2712
+ type: string;
2713
+ userErrorMessage: string;
2714
+ errorHelpLink: string;
2715
+ parameters?: undefined;
2716
+ } | {
2717
+ type: string;
2718
+ userErrorMessage: string;
2719
+ parameters: {
2720
+ min: number;
2721
+ max: number;
2722
+ value?: undefined;
2723
+ portrait?: undefined;
2724
+ landscape?: undefined;
2725
+ };
2726
+ errorHelpLink?: undefined;
2727
+ })[];
2728
+ })[];
2372
2729
  } | {
2373
2730
  name: string;
2374
2731
  id: number;
@@ -2691,6 +3048,7 @@ declare const postExperienceConfig: {
2691
3048
  })[];
2692
3049
  information?: undefined;
2693
3050
  })[];
3051
+ hidePostTypeSelector?: undefined;
2694
3052
  } | {
2695
3053
  name: string;
2696
3054
  id: number;
@@ -2976,6 +3334,7 @@ declare const postExperienceConfig: {
2976
3334
  })[];
2977
3335
  information?: undefined;
2978
3336
  })[];
3337
+ hidePostTypeSelector?: undefined;
2979
3338
  } | {
2980
3339
  name: string;
2981
3340
  id: number;
@@ -3075,6 +3434,7 @@ declare const postExperienceConfig: {
3075
3434
  };
3076
3435
  })[];
3077
3436
  }[];
3437
+ hidePostTypeSelector?: undefined;
3078
3438
  } | {
3079
3439
  name: string;
3080
3440
  id: number;
@@ -3190,6 +3550,7 @@ declare const postExperienceConfig: {
3190
3550
  };
3191
3551
  })[];
3192
3552
  }[];
3553
+ hidePostTypeSelector?: undefined;
3193
3554
  } | {
3194
3555
  name: string;
3195
3556
  id: number;
@@ -3263,6 +3624,7 @@ declare const postExperienceConfig: {
3263
3624
  errorHelpLink?: undefined;
3264
3625
  })[];
3265
3626
  }[];
3627
+ hidePostTypeSelector?: undefined;
3266
3628
  } | {
3267
3629
  name: string;
3268
3630
  id: number;
@@ -3341,6 +3703,7 @@ declare const postExperienceConfig: {
3341
3703
  errorHelpLink?: undefined;
3342
3704
  })[];
3343
3705
  }[];
3706
+ hidePostTypeSelector?: undefined;
3344
3707
  } | {
3345
3708
  name: string;
3346
3709
  id: number;
@@ -3405,6 +3768,7 @@ declare const postExperienceConfig: {
3405
3768
  errorHelpLink?: undefined;
3406
3769
  })[];
3407
3770
  }[];
3771
+ hidePostTypeSelector?: undefined;
3408
3772
  } | {
3409
3773
  name: string;
3410
3774
  id: number;
@@ -3524,6 +3888,7 @@ declare const postExperienceConfig: {
3524
3888
  };
3525
3889
  })[];
3526
3890
  }[];
3891
+ hidePostTypeSelector?: undefined;
3527
3892
  })[];
3528
3893
  };
3529
3894