@plyaz/types 1.15.1 → 1.15.3

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.cjs CHANGED
@@ -3511,8 +3511,8 @@ var athleteProfileSchema = basicProfileSchema.extend({
3511
3511
  weight: zod.z.number().min(10, "components.AthleteProfileForm.errors.weightMin" /* WeightMin */).max(500, "components.AthleteProfileForm.errors.weightMax" /* WeightMax */).optional(),
3512
3512
  position: zod.z.string().min(2, "components.AthleteProfileForm.errors.positionMin" /* PositionMin */).max(50, "components.AthleteProfileForm.errors.positionMax" /* PositionMax */).optional(),
3513
3513
  teamName: zod.z.string().min(2, "components.AthleteProfileForm.errors.teamMin" /* TeamMin */).max(100, "components.AthleteProfileForm.errors.teamMax" /* TeamMax */).optional(),
3514
- instagramHandle: zod.z.string().regex(/^@?[a-zA-Z0-9._]{1,30}$/, "components.AthleteProfileForm.errors.instagramInvalid" /* InstagramInvalid */).optional(),
3515
- tiktokHandle: zod.z.string().regex(/^@?[a-zA-Z0-9._]{1,24}$/, "components.AthleteProfileForm.errors.tiktokInvalid" /* TiktokInvalid */).optional(),
3514
+ instagramHandle: zod.z.string().regex(/^$|^@?(?!.*\.\.)(?!.*\.$)[a-zA-Z0-9._]{1,30}$/, "components.AthleteProfileForm.errors.instagramInvalid" /* InstagramInvalid */).optional(),
3515
+ tiktokHandle: zod.z.string().regex(/^$|^@?[a-zA-Z0-9][a-zA-Z0-9._]{1,23}$/, "components.AthleteProfileForm.errors.tiktokInvalid" /* TiktokInvalid */).optional(),
3516
3516
  highlightImage: zod.z.union([
3517
3517
  zod.z.instanceof(File).refine(
3518
3518
  (file) => file.size <= 5 * 1024 * 1024,
@@ -3592,9 +3592,9 @@ var formCampaignSchema = /* @__PURE__ */ __name(({ maxFunding }) => zod.z.object
3592
3592
  message: "components.CreateCampaign.Form.errors.fundingRange" /* FundingRange */
3593
3593
  }
3594
3594
  ),
3595
- instagramHandle: zod.z.string().max(30, "components.CreateCampaign.Form.errors.instagramMax" /* InstagramMax */).regex(/^@?[a-zA-Z0-9._]{1,30}$/, "components.CreateCampaign.Form.errors.instagramInvalid" /* InstagramInvalid */).optional(),
3596
- tiktokHandle: zod.z.string().max(24, "components.CreateCampaign.Form.errors.tiktokMax" /* TiktokMax */).regex(/^@?[a-zA-Z0-9._]{1,24}$/, "components.CreateCampaign.Form.errors.tiktokInvalid" /* TiktokInvalid */).optional(),
3597
- youtubeHandle: zod.z.string().max(50, "components.CreateCampaign.Form.errors.youtubeMax" /* YoutubeMax */).regex(/^@?[a-zA-Z0-9._]{1,50}$/, "components.CreateCampaign.Form.errors.youtubeInvalid" /* YoutubeInvalid */).optional()
3595
+ instagramHandle: zod.z.string().max(30, "components.CreateCampaign.Form.errors.instagramMax" /* InstagramMax */).regex(/^$|^@?(?!.*\.\.)(?!.*\.$)[a-zA-Z0-9._]{1,30}$/, "components.CreateCampaign.Form.errors.instagramInvalid" /* InstagramInvalid */).optional(),
3596
+ tiktokHandle: zod.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(),
3597
+ youtubeHandle: zod.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()
3598
3598
  }), "formCampaignSchema");
3599
3599
 
3600
3600
  // src/logger/enums.ts
@@ -3920,6 +3920,36 @@ var ROUTINGSTRATEGY = /* @__PURE__ */ ((ROUTINGSTRATEGY2) => {
3920
3920
  })(ROUTINGSTRATEGY || {});
3921
3921
 
3922
3922
  // src/payments/base-error/enum.ts
3923
+ var PAYMENT_ERROR_CATEGORY = {
3924
+ /** Payment method validation or processing error */
3925
+ PaymentMethod: "payment.method",
3926
+ /** Transaction processing error */
3927
+ Transaction: "transaction",
3928
+ /** Payment capture error */
3929
+ Capture: "capture",
3930
+ /** Payment authorization error */
3931
+ Authorization: "authorization",
3932
+ /** Payment settlement error */
3933
+ Settlement: "settlement",
3934
+ /** Refund processing error */
3935
+ Refund: "refund",
3936
+ /** Payment gateway or provider error */
3937
+ Gateway: "gateway",
3938
+ /** Payment fraud detection error */
3939
+ Fraud: "fraud",
3940
+ /** Payment compliance error (AML/KYC) */
3941
+ Compliance: "compliance",
3942
+ /** Payment limits exceeded */
3943
+ Limits: "limits",
3944
+ /** Payment webhook error */
3945
+ Webhook: "webhook",
3946
+ /** Payment security error */
3947
+ Security: "security",
3948
+ /** Payment processing timeout */
3949
+ Timeout: "timeout",
3950
+ /** Payment configuration error */
3951
+ Configuration: "configuration"
3952
+ };
3923
3953
  var REFUND_ERROR_TYPES = /* @__PURE__ */ ((REFUND_ERROR_TYPES2) => {
3924
3954
  REFUND_ERROR_TYPES2["NotAllowed"] = "not_allowed";
3925
3955
  REFUND_ERROR_TYPES2["Authorization"] = "authorization";
@@ -4964,6 +4994,7 @@ exports.NetworkPresetNames = NetworkPresetNames;
4964
4994
  exports.NotificationCategorySchema = NotificationCategorySchema;
4965
4995
  exports.OPERATIONS = COMMON_OPERATIONS;
4966
4996
  exports.PACKAGE_STATUS_CODES = INTERNAL_STATUS_CODES;
4997
+ exports.PAYMENT_ERROR_CATEGORY = PAYMENT_ERROR_CATEGORY;
4967
4998
  exports.PAYMENT_ERROR_CODES = PAYMENT_ERROR_CODES;
4968
4999
  exports.PAYMENT_EVENT_CATEGORY = PAYMENT_EVENT_CATEGORY;
4969
5000
  exports.PAYMENT_EVENT_ERROR_CATEGORY = PAYMENT_EVENT_ERROR_CATEGORY;