@plyaz/types 1.15.2 → 1.15.4
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/campaign/index.cjs +3 -3
- package/dist/campaign/index.cjs.map +1 -1
- package/dist/campaign/index.js +3 -3
- package/dist/campaign/index.js.map +1 -1
- package/dist/campaign/types.d.ts +3 -3
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/user/index.cjs +2 -2
- package/dist/user/index.cjs.map +1 -1
- package/dist/user/index.js +2 -2
- package/dist/user/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3509,8 +3509,8 @@ var athleteProfileSchema = basicProfileSchema.extend({
|
|
|
3509
3509
|
weight: z.number().min(10, "components.AthleteProfileForm.errors.weightMin" /* WeightMin */).max(500, "components.AthleteProfileForm.errors.weightMax" /* WeightMax */).optional(),
|
|
3510
3510
|
position: z.string().min(2, "components.AthleteProfileForm.errors.positionMin" /* PositionMin */).max(50, "components.AthleteProfileForm.errors.positionMax" /* PositionMax */).optional(),
|
|
3511
3511
|
teamName: z.string().min(2, "components.AthleteProfileForm.errors.teamMin" /* TeamMin */).max(100, "components.AthleteProfileForm.errors.teamMax" /* TeamMax */).optional(),
|
|
3512
|
-
instagramHandle: z.string().regex(
|
|
3513
|
-
tiktokHandle: z.string().regex(
|
|
3512
|
+
instagramHandle: z.string().regex(/^$|^@?(?!.*\.\.)(?!.*\.$)[a-zA-Z0-9._]{1,30}$/, "components.AthleteProfileForm.errors.instagramInvalid" /* InstagramInvalid */).optional(),
|
|
3513
|
+
tiktokHandle: z.string().regex(/^$|^@?[a-zA-Z0-9][a-zA-Z0-9._]{1,23}$/, "components.AthleteProfileForm.errors.tiktokInvalid" /* TiktokInvalid */).optional(),
|
|
3514
3514
|
highlightImage: z.union([
|
|
3515
3515
|
z.instanceof(File).refine(
|
|
3516
3516
|
(file) => file.size <= 5 * 1024 * 1024,
|
|
@@ -3590,9 +3590,9 @@ var formCampaignSchema = /* @__PURE__ */ __name(({ maxFunding }) => z.object({
|
|
|
3590
3590
|
message: "components.CreateCampaign.Form.errors.fundingRange" /* FundingRange */
|
|
3591
3591
|
}
|
|
3592
3592
|
),
|
|
3593
|
-
instagramHandle: z.string().max(30, "components.CreateCampaign.Form.errors.instagramMax" /* InstagramMax */).regex(
|
|
3594
|
-
tiktokHandle: z.string().max(24, "components.CreateCampaign.Form.errors.tiktokMax" /* TiktokMax */).regex(
|
|
3595
|
-
youtubeHandle: z.string().max(50, "components.CreateCampaign.Form.errors.youtubeMax" /* YoutubeMax */).regex(
|
|
3593
|
+
instagramHandle: z.string().max(30, "components.CreateCampaign.Form.errors.instagramMax" /* InstagramMax */).regex(/^$|^@?(?!.*\.\.)(?!.*\.$)[a-zA-Z0-9._]{1,30}$/, "components.CreateCampaign.Form.errors.instagramInvalid" /* InstagramInvalid */).optional(),
|
|
3594
|
+
tiktokHandle: z.string().max(24, "components.CreateCampaign.Form.errors.tiktokMax" /* TiktokMax */).regex(/^$|^@?[a-zA-Z0-9][a-zA-Z0-9._]{1,23}$/, "components.CreateCampaign.Form.errors.tiktokInvalid" /* TiktokInvalid */).optional(),
|
|
3595
|
+
youtubeHandle: z.string().max(50, "components.CreateCampaign.Form.errors.youtubeMax" /* YoutubeMax */).regex(/^$|^@[a-zA-Z0-9][a-zA-Z0-9._-]{1,28}[a-zA-Z0-9]$/, "components.CreateCampaign.Form.errors.youtubeInvalid" /* YoutubeInvalid */).optional()
|
|
3596
3596
|
}), "formCampaignSchema");
|
|
3597
3597
|
|
|
3598
3598
|
// src/logger/enums.ts
|