@joeygrable94/utm-src-pub-validators 0.0.58 → 0.0.60
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -974,7 +974,7 @@ declare const SCreateCampaignKeyDocument: v.ObjectSchema<{
|
|
|
974
974
|
}, undefined>;
|
|
975
975
|
type SCreateCampaignKeyDocument = v.InferOutput<typeof SCreateCampaignKeyDocument>;
|
|
976
976
|
declare const SCreateMultipleCampaignKeyDocuments: v.ObjectSchema<{
|
|
977
|
-
readonly
|
|
977
|
+
readonly campaign_keys: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
978
978
|
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a label">, v.TrimAction, v.MinLengthAction<string, 1, "the label is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the label is too long, it must be 255 characters or less">]>;
|
|
979
979
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a value">, v.TrimAction, v.MinLengthAction<string, 1, "the value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "the value can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
980
980
|
readonly description: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"the description must be a string">, v.TrimAction, v.MaxLengthAction<string, 1024, "the description is too long, it must be 1024 characters or less">]>, undefined>;
|
|
@@ -1072,7 +1072,7 @@ declare const SCreateCampaignPhaseDocument: v.ObjectSchema<{
|
|
|
1072
1072
|
}, undefined>;
|
|
1073
1073
|
type SCreateCampaignPhaseDocument = v.InferOutput<typeof SCreateCampaignPhaseDocument>;
|
|
1074
1074
|
declare const SCreateMultipleCampaignPhaseDocuments: v.ObjectSchema<{
|
|
1075
|
-
readonly
|
|
1075
|
+
readonly campaign_phases: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
1076
1076
|
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a label">, v.TrimAction, v.MinLengthAction<string, 1, "the label is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the label is too long, it must be 255 characters or less">]>;
|
|
1077
1077
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a value">, v.TrimAction, v.MinLengthAction<string, 1, "the value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "the value can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
1078
1078
|
readonly description: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"the description must be a string">, v.TrimAction, v.MaxLengthAction<string, 1024, "the description is too long, it must be 1024 characters or less">]>, undefined>;
|
|
@@ -2614,11 +2614,11 @@ type StrapiResponseMeta = {
|
|
|
2614
2614
|
type StrapiResponseMetaWithPagination = StrapiResponseMeta & {
|
|
2615
2615
|
pagination: StrapiPagination;
|
|
2616
2616
|
};
|
|
2617
|
-
type StrapiErrorDetail = {
|
|
2617
|
+
type StrapiErrorDetail<T> = {
|
|
2618
2618
|
status: string | number;
|
|
2619
2619
|
name: string;
|
|
2620
2620
|
message: string;
|
|
2621
|
-
details: Record<
|
|
2621
|
+
details: Record<keyof T, string>;
|
|
2622
2622
|
};
|
|
2623
2623
|
type StrapiSingleResponse<T> = {
|
|
2624
2624
|
data: T;
|
|
@@ -2630,9 +2630,9 @@ type StrapiListResponse<T> = {
|
|
|
2630
2630
|
error?: undefined;
|
|
2631
2631
|
meta?: StrapiResponseMetaWithPagination;
|
|
2632
2632
|
};
|
|
2633
|
-
type StrapiErrorResponse = {
|
|
2633
|
+
type StrapiErrorResponse<T> = {
|
|
2634
2634
|
data: null;
|
|
2635
|
-
error: StrapiErrorDetail
|
|
2635
|
+
error: StrapiErrorDetail<T>;
|
|
2636
2636
|
meta?: undefined;
|
|
2637
2637
|
};
|
|
2638
2638
|
|
package/dist/index.d.ts
CHANGED
|
@@ -974,7 +974,7 @@ declare const SCreateCampaignKeyDocument: v.ObjectSchema<{
|
|
|
974
974
|
}, undefined>;
|
|
975
975
|
type SCreateCampaignKeyDocument = v.InferOutput<typeof SCreateCampaignKeyDocument>;
|
|
976
976
|
declare const SCreateMultipleCampaignKeyDocuments: v.ObjectSchema<{
|
|
977
|
-
readonly
|
|
977
|
+
readonly campaign_keys: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
978
978
|
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a label">, v.TrimAction, v.MinLengthAction<string, 1, "the label is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the label is too long, it must be 255 characters or less">]>;
|
|
979
979
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a value">, v.TrimAction, v.MinLengthAction<string, 1, "the value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "the value can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
980
980
|
readonly description: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"the description must be a string">, v.TrimAction, v.MaxLengthAction<string, 1024, "the description is too long, it must be 1024 characters or less">]>, undefined>;
|
|
@@ -1072,7 +1072,7 @@ declare const SCreateCampaignPhaseDocument: v.ObjectSchema<{
|
|
|
1072
1072
|
}, undefined>;
|
|
1073
1073
|
type SCreateCampaignPhaseDocument = v.InferOutput<typeof SCreateCampaignPhaseDocument>;
|
|
1074
1074
|
declare const SCreateMultipleCampaignPhaseDocuments: v.ObjectSchema<{
|
|
1075
|
-
readonly
|
|
1075
|
+
readonly campaign_phases: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
1076
1076
|
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a label">, v.TrimAction, v.MinLengthAction<string, 1, "the label is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the label is too long, it must be 255 characters or less">]>;
|
|
1077
1077
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a value">, v.TrimAction, v.MinLengthAction<string, 1, "the value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "the value can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
1078
1078
|
readonly description: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"the description must be a string">, v.TrimAction, v.MaxLengthAction<string, 1024, "the description is too long, it must be 1024 characters or less">]>, undefined>;
|
|
@@ -2614,11 +2614,11 @@ type StrapiResponseMeta = {
|
|
|
2614
2614
|
type StrapiResponseMetaWithPagination = StrapiResponseMeta & {
|
|
2615
2615
|
pagination: StrapiPagination;
|
|
2616
2616
|
};
|
|
2617
|
-
type StrapiErrorDetail = {
|
|
2617
|
+
type StrapiErrorDetail<T> = {
|
|
2618
2618
|
status: string | number;
|
|
2619
2619
|
name: string;
|
|
2620
2620
|
message: string;
|
|
2621
|
-
details: Record<
|
|
2621
|
+
details: Record<keyof T, string>;
|
|
2622
2622
|
};
|
|
2623
2623
|
type StrapiSingleResponse<T> = {
|
|
2624
2624
|
data: T;
|
|
@@ -2630,9 +2630,9 @@ type StrapiListResponse<T> = {
|
|
|
2630
2630
|
error?: undefined;
|
|
2631
2631
|
meta?: StrapiResponseMetaWithPagination;
|
|
2632
2632
|
};
|
|
2633
|
-
type StrapiErrorResponse = {
|
|
2633
|
+
type StrapiErrorResponse<T> = {
|
|
2634
2634
|
data: null;
|
|
2635
|
-
error: StrapiErrorDetail
|
|
2635
|
+
error: StrapiErrorDetail<T>;
|
|
2636
2636
|
meta?: undefined;
|
|
2637
2637
|
};
|
|
2638
2638
|
|
package/dist/index.js
CHANGED
|
@@ -1607,7 +1607,7 @@ var SCreateCampaignKeyDocument = v36.object({
|
|
|
1607
1607
|
is_active: IsValidIsActive
|
|
1608
1608
|
});
|
|
1609
1609
|
var SCreateMultipleCampaignKeyDocuments = v36.object({
|
|
1610
|
-
|
|
1610
|
+
campaign_keys: v36.pipe(
|
|
1611
1611
|
v36.array(SCreateCampaignKeyDocument),
|
|
1612
1612
|
v36.minLength(1, "At least one campaign key is required")
|
|
1613
1613
|
)
|
|
@@ -1675,7 +1675,7 @@ var SCreateCampaignPhaseDocument = v36.object({
|
|
|
1675
1675
|
is_active: IsValidIsActive
|
|
1676
1676
|
});
|
|
1677
1677
|
var SCreateMultipleCampaignPhaseDocuments = v36.object({
|
|
1678
|
-
|
|
1678
|
+
campaign_phases: v36.pipe(
|
|
1679
1679
|
v36.array(SCreateCampaignPhaseDocument),
|
|
1680
1680
|
v36.minLength(1, "At least one campaign phase is required")
|
|
1681
1681
|
)
|