@joeygrable94/utm-src-pub-validators 0.0.49 → 0.0.50
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 +93 -120
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -410
- package/dist/index.d.ts +11 -410
- package/dist/index.js +94 -96
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -750,82 +750,42 @@ var SBaseAssociateRelation = v44__namespace.object({
|
|
|
750
750
|
documentId: IsValidReferenceDocumentId,
|
|
751
751
|
position: v44__namespace.optional(SBaseAssociateRelationPosition)
|
|
752
752
|
});
|
|
753
|
-
|
|
753
|
+
v44__namespace.object({
|
|
754
754
|
connect: v44__namespace.pipe(
|
|
755
755
|
v44__namespace.array(v44__namespace.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
756
756
|
v44__namespace.minLength(1, "At least one document ID is required to connect"),
|
|
757
757
|
v44__namespace.maxLength(100, "A maximum of 100 document IDs can be connected per request")
|
|
758
758
|
)
|
|
759
759
|
});
|
|
760
|
-
|
|
760
|
+
v44__namespace.object({
|
|
761
761
|
disconnect: v44__namespace.pipe(
|
|
762
762
|
v44__namespace.array(v44__namespace.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
763
763
|
v44__namespace.minLength(1, "At least one document ID is required to disconnect"),
|
|
764
764
|
v44__namespace.maxLength(100, "A maximum of 100 document IDs can be disconnected per request")
|
|
765
765
|
)
|
|
766
766
|
});
|
|
767
|
-
|
|
767
|
+
v44__namespace.object({
|
|
768
768
|
set: v44__namespace.pipe(
|
|
769
769
|
v44__namespace.array(v44__namespace.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
770
770
|
v44__namespace.minLength(1, "At least one document ID is required to set a relation")
|
|
771
771
|
)
|
|
772
772
|
});
|
|
773
|
-
|
|
773
|
+
v44__namespace.object({
|
|
774
774
|
connect: v44__namespace.union([IsValidReferenceDocumentId, SBaseAssociateRelation])
|
|
775
775
|
});
|
|
776
|
-
|
|
776
|
+
v44__namespace.object({
|
|
777
777
|
disconnect: v44__namespace.pipe(
|
|
778
778
|
v44__namespace.array(v44__namespace.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
779
779
|
v44__namespace.minLength(1, "At least one document ID is required to disconnect"),
|
|
780
780
|
v44__namespace.maxLength(100, "A maximum of 100 document IDs can be disconnected per request")
|
|
781
781
|
)
|
|
782
782
|
});
|
|
783
|
-
|
|
783
|
+
v44__namespace.object({
|
|
784
784
|
set: v44__namespace.pipe(
|
|
785
785
|
v44__namespace.array(v44__namespace.union([IsValidReferenceDocumentId, SBaseAssociateRelation])),
|
|
786
786
|
v44__namespace.minLength(1, "At least one document ID is required to set a relation")
|
|
787
787
|
)
|
|
788
788
|
});
|
|
789
|
-
var SBaseGroupDocument = v44__namespace.object({
|
|
790
|
-
label: IsValidLabel,
|
|
791
|
-
value: IsValidValue,
|
|
792
|
-
description: IsValidDescription,
|
|
793
|
-
is_active: IsValidIsActive,
|
|
794
|
-
apply_value_to: IsValidApplyValueTo,
|
|
795
|
-
apply_value_as: IsValidApplyValueAs
|
|
796
|
-
});
|
|
797
|
-
|
|
798
|
-
// src/entities/group/group.document.ts
|
|
799
|
-
var SGroupDocument = v44__namespace.object({
|
|
800
|
-
...SBaseDocument.entries,
|
|
801
|
-
...SBaseGroupDocument.entries
|
|
802
|
-
});
|
|
803
|
-
var SBaseTrackingLinkDocument = v44__namespace.object({
|
|
804
|
-
is_active: IsValidIsActive,
|
|
805
|
-
destination: IsValidUrlDestination,
|
|
806
|
-
protocol: IsValidUrlProtocol,
|
|
807
|
-
domain: IsValidUrlDomain,
|
|
808
|
-
path: v44__namespace.nullable(IsValidUrlPath),
|
|
809
|
-
query: v44__namespace.nullable(IsValidUrlQuery),
|
|
810
|
-
fragment: v44__namespace.nullable(IsValidUrlFragment),
|
|
811
|
-
utm_source: v44__namespace.nullable(IsValidUrlUtmSource),
|
|
812
|
-
utm_medium: v44__namespace.nullable(IsValidUrlUtmMedium),
|
|
813
|
-
utm_campaign: v44__namespace.nullable(IsValidUrlUtmCampaign),
|
|
814
|
-
utm_creative_format: v44__namespace.nullable(IsValidUrlUtmCreativeFormat),
|
|
815
|
-
utm_content: v44__namespace.nullable(IsValidUrlUtmContent),
|
|
816
|
-
utm_term: v44__namespace.nullable(IsValidUrlUtmTerm),
|
|
817
|
-
utm_id: v44__namespace.nullable(IsValidUrlUtmId)
|
|
818
|
-
});
|
|
819
|
-
|
|
820
|
-
// src/entities/tracking-link/tracking-link.document.ts
|
|
821
|
-
var STrackingLinkDocument = v44__namespace.object({
|
|
822
|
-
...SBaseDocument.entries,
|
|
823
|
-
...SBaseTrackingLinkDocument.entries
|
|
824
|
-
});
|
|
825
|
-
var STrackingLinkRelationsDocument = v44__namespace.object({
|
|
826
|
-
...SBaseRelationGroup.entries,
|
|
827
|
-
...SBaseRelationCreator.entries
|
|
828
|
-
});
|
|
829
789
|
var SBaseUserDocument = v44__namespace.object({
|
|
830
790
|
username: IsValidUsername,
|
|
831
791
|
email: IsValidEmail,
|
|
@@ -860,6 +820,32 @@ var SRoleDocument = v44__namespace.object({
|
|
|
860
820
|
|
|
861
821
|
// src/entities/role/role.relations.ts
|
|
862
822
|
var SRoleRelationsDocument = SBaseRelationUsers;
|
|
823
|
+
var SBaseTrackingLinkDocument = v44__namespace.object({
|
|
824
|
+
is_active: IsValidIsActive,
|
|
825
|
+
destination: IsValidUrlDestination,
|
|
826
|
+
protocol: IsValidUrlProtocol,
|
|
827
|
+
domain: IsValidUrlDomain,
|
|
828
|
+
path: v44__namespace.nullable(IsValidUrlPath),
|
|
829
|
+
query: v44__namespace.nullable(IsValidUrlQuery),
|
|
830
|
+
fragment: v44__namespace.nullable(IsValidUrlFragment),
|
|
831
|
+
utm_source: v44__namespace.nullable(IsValidUrlUtmSource),
|
|
832
|
+
utm_medium: v44__namespace.nullable(IsValidUrlUtmMedium),
|
|
833
|
+
utm_campaign: v44__namespace.nullable(IsValidUrlUtmCampaign),
|
|
834
|
+
utm_creative_format: v44__namespace.nullable(IsValidUrlUtmCreativeFormat),
|
|
835
|
+
utm_content: v44__namespace.nullable(IsValidUrlUtmContent),
|
|
836
|
+
utm_term: v44__namespace.nullable(IsValidUrlUtmTerm),
|
|
837
|
+
utm_id: v44__namespace.nullable(IsValidUrlUtmId)
|
|
838
|
+
});
|
|
839
|
+
|
|
840
|
+
// src/entities/tracking-link/tracking-link.document.ts
|
|
841
|
+
var STrackingLinkDocument = v44__namespace.object({
|
|
842
|
+
...SBaseDocument.entries,
|
|
843
|
+
...SBaseTrackingLinkDocument.entries
|
|
844
|
+
});
|
|
845
|
+
var STrackingLinkRelationsDocument = v44__namespace.object({
|
|
846
|
+
...SBaseRelationGroup.entries,
|
|
847
|
+
...SBaseRelationCreator.entries
|
|
848
|
+
});
|
|
863
849
|
var SBaseUserAccountDocument = v44__namespace.object({
|
|
864
850
|
customer_id: v44__namespace.nullable(IsValidCustomerId),
|
|
865
851
|
subscription_id: v44__namespace.nullable(IsValidCustomerId),
|
|
@@ -1091,7 +1077,67 @@ var SUserRelationsDocument = v44__namespace.object({
|
|
|
1091
1077
|
...SUserRelationTerms.entries
|
|
1092
1078
|
});
|
|
1093
1079
|
|
|
1094
|
-
// src/
|
|
1080
|
+
// src/base/base.relations.ts
|
|
1081
|
+
var SBaseRelationUser = v44__namespace.object({
|
|
1082
|
+
user: v44__namespace.optional(SUserDocument)
|
|
1083
|
+
});
|
|
1084
|
+
var SBaseRelationReqUser = v44__namespace.object({
|
|
1085
|
+
user: SUserDocument
|
|
1086
|
+
});
|
|
1087
|
+
var SBaseRelationUsers = v44__namespace.object({
|
|
1088
|
+
users: v44__namespace.optional(v44__namespace.array(SUserDocument))
|
|
1089
|
+
});
|
|
1090
|
+
v44__namespace.object({
|
|
1091
|
+
users: v44__namespace.array(SUserDocument)
|
|
1092
|
+
});
|
|
1093
|
+
var SBaseRelationCreator = v44__namespace.object({
|
|
1094
|
+
creator: v44__namespace.optional(SUserDocument)
|
|
1095
|
+
});
|
|
1096
|
+
v44__namespace.object({
|
|
1097
|
+
creator: SUserDocument
|
|
1098
|
+
});
|
|
1099
|
+
var SBaseRelationGroup = v44__namespace.object({
|
|
1100
|
+
group: v44__namespace.optional(SGroupDocument)
|
|
1101
|
+
});
|
|
1102
|
+
var SBaseRelationReqGroup = v44__namespace.object({
|
|
1103
|
+
group: SGroupDocument
|
|
1104
|
+
});
|
|
1105
|
+
var SBaseRelationGroups = v44__namespace.object({
|
|
1106
|
+
groups: v44__namespace.optional(v44__namespace.array(SGroupDocument))
|
|
1107
|
+
});
|
|
1108
|
+
v44__namespace.object({
|
|
1109
|
+
groups: v44__namespace.array(SGroupDocument)
|
|
1110
|
+
});
|
|
1111
|
+
var SBaseDocument = v44__namespace.object({
|
|
1112
|
+
id: v44__namespace.number(),
|
|
1113
|
+
documentId: IsValidReferenceDocumentId,
|
|
1114
|
+
publishedAt: v44__namespace.optional(v44__namespace.string()),
|
|
1115
|
+
createdAt: v44__namespace.string(),
|
|
1116
|
+
updatedAt: v44__namespace.string()
|
|
1117
|
+
});
|
|
1118
|
+
var SBaseCostDocument = v44__namespace.object({
|
|
1119
|
+
cost: IsValidCost
|
|
1120
|
+
});
|
|
1121
|
+
var SBaseUtmParamDocument = v44__namespace.object({
|
|
1122
|
+
label: IsValidLabel,
|
|
1123
|
+
value: IsValidValue,
|
|
1124
|
+
description: IsValidDescription,
|
|
1125
|
+
is_active: IsValidIsActive
|
|
1126
|
+
});
|
|
1127
|
+
var SBaseGroupDocument = v44__namespace.object({
|
|
1128
|
+
label: IsValidLabel,
|
|
1129
|
+
value: IsValidValue,
|
|
1130
|
+
description: IsValidDescription,
|
|
1131
|
+
is_active: IsValidIsActive,
|
|
1132
|
+
apply_value_to: IsValidApplyValueTo,
|
|
1133
|
+
apply_value_as: IsValidApplyValueAs
|
|
1134
|
+
});
|
|
1135
|
+
|
|
1136
|
+
// src/entities/group/group.document.ts
|
|
1137
|
+
var SGroupDocument = v44__namespace.object({
|
|
1138
|
+
...SBaseDocument.entries,
|
|
1139
|
+
...SBaseGroupDocument.entries
|
|
1140
|
+
});
|
|
1095
1141
|
var SGroupRelationAuthorizedUsers = v44__namespace.object({
|
|
1096
1142
|
authorized_users: v44__namespace.optional(v44__namespace.array(SUserDocument))
|
|
1097
1143
|
});
|
|
@@ -1147,54 +1193,6 @@ var SGroupRelationsDocument = v44__namespace.object({
|
|
|
1147
1193
|
...SGroupRelationCreativeFormatVariants.entries,
|
|
1148
1194
|
...SGroupRelationTerms.entries
|
|
1149
1195
|
});
|
|
1150
|
-
|
|
1151
|
-
// src/entities/base/base.relations.ts
|
|
1152
|
-
var SBaseRelationUser = v44__namespace.object({
|
|
1153
|
-
user: v44__namespace.optional(SUserDocument)
|
|
1154
|
-
});
|
|
1155
|
-
var SBaseRelationReqUser = v44__namespace.object({
|
|
1156
|
-
user: SUserDocument
|
|
1157
|
-
});
|
|
1158
|
-
var SBaseRelationUsers = v44__namespace.object({
|
|
1159
|
-
users: v44__namespace.optional(v44__namespace.array(SUserDocument))
|
|
1160
|
-
});
|
|
1161
|
-
var SBaseRelationReqUsers = v44__namespace.object({
|
|
1162
|
-
users: v44__namespace.array(SUserDocument)
|
|
1163
|
-
});
|
|
1164
|
-
var SBaseRelationCreator = v44__namespace.object({
|
|
1165
|
-
creator: v44__namespace.optional(SUserDocument)
|
|
1166
|
-
});
|
|
1167
|
-
var SBaseRelationReqCreator = v44__namespace.object({
|
|
1168
|
-
creator: SUserDocument
|
|
1169
|
-
});
|
|
1170
|
-
var SBaseRelationGroup = v44__namespace.object({
|
|
1171
|
-
group: v44__namespace.optional(SGroupDocument)
|
|
1172
|
-
});
|
|
1173
|
-
var SBaseRelationReqGroup = v44__namespace.object({
|
|
1174
|
-
group: SGroupDocument
|
|
1175
|
-
});
|
|
1176
|
-
var SBaseRelationGroups = v44__namespace.object({
|
|
1177
|
-
groups: v44__namespace.optional(v44__namespace.array(SGroupDocument))
|
|
1178
|
-
});
|
|
1179
|
-
var SBaseRelationReqGroups = v44__namespace.object({
|
|
1180
|
-
groups: v44__namespace.array(SGroupDocument)
|
|
1181
|
-
});
|
|
1182
|
-
var SBaseDocument = v44__namespace.object({
|
|
1183
|
-
id: v44__namespace.number(),
|
|
1184
|
-
documentId: IsValidReferenceDocumentId,
|
|
1185
|
-
publishedAt: v44__namespace.optional(v44__namespace.string()),
|
|
1186
|
-
createdAt: v44__namespace.string(),
|
|
1187
|
-
updatedAt: v44__namespace.string()
|
|
1188
|
-
});
|
|
1189
|
-
var SBaseCostDocument = v44__namespace.object({
|
|
1190
|
-
cost: IsValidCost
|
|
1191
|
-
});
|
|
1192
|
-
var SBaseUtmParamDocument = v44__namespace.object({
|
|
1193
|
-
label: IsValidLabel,
|
|
1194
|
-
value: IsValidValue,
|
|
1195
|
-
description: IsValidDescription,
|
|
1196
|
-
is_active: IsValidIsActive
|
|
1197
|
-
});
|
|
1198
1196
|
var SBaseGroupUserDocument = v44__namespace.object({
|
|
1199
1197
|
scopes: IsValidGroupUserScopes
|
|
1200
1198
|
});
|
|
@@ -2473,35 +2471,17 @@ exports.MEDIUM_PAGINATION_DEFAULT_SIZE_LIMIT = MEDIUM_PAGINATION_DEFAULT_SIZE_LI
|
|
|
2473
2471
|
exports.MEDIUM_PAGINATION_MAX_SIZE_LIMIT = MEDIUM_PAGINATION_MAX_SIZE_LIMIT;
|
|
2474
2472
|
exports.REGEX_DOMAIN = REGEX_DOMAIN;
|
|
2475
2473
|
exports.REGEX_VALUE = REGEX_VALUE;
|
|
2476
|
-
exports.SBaseAssociateRelation = SBaseAssociateRelation;
|
|
2477
|
-
exports.SBaseAssociateRelationPosition = SBaseAssociateRelationPosition;
|
|
2478
|
-
exports.SBaseAssociateRelationPositionAfter = SBaseAssociateRelationPositionAfter;
|
|
2479
|
-
exports.SBaseAssociateRelationPositionBefore = SBaseAssociateRelationPositionBefore;
|
|
2480
|
-
exports.SBaseAssociateRelationPositionEnd = SBaseAssociateRelationPositionEnd;
|
|
2481
|
-
exports.SBaseAssociateRelationPositionStart = SBaseAssociateRelationPositionStart;
|
|
2482
2474
|
exports.SBaseCampaignIdDocument = SBaseCampaignIdDocument;
|
|
2483
2475
|
exports.SBaseCampaignKeyDocument = SBaseCampaignKeyDocument;
|
|
2484
2476
|
exports.SBaseCampaignPhaseDocument = SBaseCampaignPhaseDocument;
|
|
2485
2477
|
exports.SBaseCampaignProductDocument = SBaseCampaignProductDocument;
|
|
2486
2478
|
exports.SBaseContentDocument = SBaseContentDocument;
|
|
2487
|
-
exports.SBaseCostDocument = SBaseCostDocument;
|
|
2488
2479
|
exports.SBaseCreativeFormatDocument = SBaseCreativeFormatDocument;
|
|
2489
2480
|
exports.SBaseCreativeFormatVariantDocument = SBaseCreativeFormatVariantDocument;
|
|
2490
|
-
exports.SBaseDocument = SBaseDocument;
|
|
2491
2481
|
exports.SBaseDocumentCreatedBy = SBaseDocumentCreatedBy;
|
|
2492
2482
|
exports.SBaseGroupDocument = SBaseGroupDocument;
|
|
2493
2483
|
exports.SBaseGroupUserDocument = SBaseGroupUserDocument;
|
|
2494
2484
|
exports.SBaseMediumDocument = SBaseMediumDocument;
|
|
2495
|
-
exports.SBaseRelationCreator = SBaseRelationCreator;
|
|
2496
|
-
exports.SBaseRelationGroup = SBaseRelationGroup;
|
|
2497
|
-
exports.SBaseRelationGroups = SBaseRelationGroups;
|
|
2498
|
-
exports.SBaseRelationReqCreator = SBaseRelationReqCreator;
|
|
2499
|
-
exports.SBaseRelationReqGroup = SBaseRelationReqGroup;
|
|
2500
|
-
exports.SBaseRelationReqGroups = SBaseRelationReqGroups;
|
|
2501
|
-
exports.SBaseRelationReqUser = SBaseRelationReqUser;
|
|
2502
|
-
exports.SBaseRelationReqUsers = SBaseRelationReqUsers;
|
|
2503
|
-
exports.SBaseRelationUser = SBaseRelationUser;
|
|
2504
|
-
exports.SBaseRelationUsers = SBaseRelationUsers;
|
|
2505
2485
|
exports.SBaseRoleDocument = SBaseRoleDocument;
|
|
2506
2486
|
exports.SBaseSourceDocument = SBaseSourceDocument;
|
|
2507
2487
|
exports.SBaseTermDocument = SBaseTermDocument;
|
|
@@ -2509,7 +2489,6 @@ exports.SBaseTrackingLinkDocument = SBaseTrackingLinkDocument;
|
|
|
2509
2489
|
exports.SBaseUserAccountDocument = SBaseUserAccountDocument;
|
|
2510
2490
|
exports.SBaseUserDocument = SBaseUserDocument;
|
|
2511
2491
|
exports.SBaseUserLimitationsDocument = SBaseUserLimitationsDocument;
|
|
2512
|
-
exports.SBaseUtmParamDocument = SBaseUtmParamDocument;
|
|
2513
2492
|
exports.SBaseWebsiteDocument = SBaseWebsiteDocument;
|
|
2514
2493
|
exports.SCampaignIdDocument = SCampaignIdDocument;
|
|
2515
2494
|
exports.SCampaignIdDocumentWithRelations = SCampaignIdDocumentWithRelations;
|
|
@@ -2524,8 +2503,6 @@ exports.SCampaignProductDocument = SCampaignProductDocument;
|
|
|
2524
2503
|
exports.SCampaignProductDocumentWithRelations = SCampaignProductDocumentWithRelations;
|
|
2525
2504
|
exports.SCampaignProductRelationsDocument = SCampaignProductRelationsDocument;
|
|
2526
2505
|
exports.SChangePassword = SChangePassword;
|
|
2527
|
-
exports.SConnectManyEntityRelation = SConnectManyEntityRelation;
|
|
2528
|
-
exports.SConnectOneEntityRelation = SConnectOneEntityRelation;
|
|
2529
2506
|
exports.SContentDocument = SContentDocument;
|
|
2530
2507
|
exports.SContentDocumentWithRelations = SContentDocumentWithRelations;
|
|
2531
2508
|
exports.SContentRelationsDocument = SContentRelationsDocument;
|
|
@@ -2578,8 +2555,6 @@ exports.SDeleteSourceDocument = SDeleteSourceDocument;
|
|
|
2578
2555
|
exports.SDeleteTermDocument = SDeleteTermDocument;
|
|
2579
2556
|
exports.SDeleteTrackingLinkDocument = SDeleteTrackingLinkDocument;
|
|
2580
2557
|
exports.SDeleteWebsiteDocument = SDeleteWebsiteDocument;
|
|
2581
|
-
exports.SDisconnectManyEntityRelation = SDisconnectManyEntityRelation;
|
|
2582
|
-
exports.SDisconnectOneEntityRelation = SDisconnectOneEntityRelation;
|
|
2583
2558
|
exports.SForgotPasswordUserDocument = SForgotPasswordUserDocument;
|
|
2584
2559
|
exports.SGroupDocument = SGroupDocument;
|
|
2585
2560
|
exports.SGroupDocumentWithRelations = SGroupDocumentWithRelations;
|
|
@@ -2667,8 +2642,6 @@ exports.SResetPasswordUserDocument = SResetPasswordUserDocument;
|
|
|
2667
2642
|
exports.SRoleDocument = SRoleDocument;
|
|
2668
2643
|
exports.SRoleDocumentWithRelations = SRoleDocumentWithRelations;
|
|
2669
2644
|
exports.SRoleRelationsDocument = SRoleRelationsDocument;
|
|
2670
|
-
exports.SSetManyEntityRelation = SSetManyEntityRelation;
|
|
2671
|
-
exports.SSetOneEntityRelation = SSetOneEntityRelation;
|
|
2672
2645
|
exports.SSourceDocument = SSourceDocument;
|
|
2673
2646
|
exports.SSourceDocumentWithRelations = SSourceDocumentWithRelations;
|
|
2674
2647
|
exports.SSourceRelationsDocument = SSourceRelationsDocument;
|