@getcommunity/gc-validators 0.0.316 → 0.0.317
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.
|
@@ -69,10 +69,10 @@ const UpdateUtmTrackingLinkDocument = valibot.object({
|
|
|
69
69
|
utm_id: require_string.VStringShortNullable(),
|
|
70
70
|
campaign_phase: valibot.optional(require_string.VStringShort()),
|
|
71
71
|
campaign_product: require_string.VStringShortNullable(),
|
|
72
|
-
campaign_targeting: require_string.
|
|
72
|
+
campaign_targeting: valibot.optional(valibot.nullable(require_string.VStringShortToCSV())),
|
|
73
73
|
campaign_key: require_string.VStringShortNullable(),
|
|
74
74
|
creative_format: require_string.VStringShortNullable(),
|
|
75
|
-
creative_format_variants: require_string.
|
|
75
|
+
creative_format_variants: valibot.optional(valibot.nullable(require_string.VStringShortToCSV())),
|
|
76
76
|
url: valibot.optional(require_utm.VStringUrlUtm()),
|
|
77
77
|
is_active: valibot.optional(valibot.boolean()),
|
|
78
78
|
notes: require_string.VStringLongNullable()
|
|
@@ -135,15 +135,16 @@ declare const UpdateUtmTrackingLinkDocument: v.ObjectSchema<{
|
|
|
135
135
|
readonly utm_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
136
136
|
readonly campaign_phase: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
137
137
|
readonly campaign_product: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
138
|
-
readonly campaign_targeting: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
138
|
+
readonly campaign_targeting: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, v.TransformAction<string[], string>]>, undefined>, undefined>;
|
|
139
139
|
readonly campaign_key: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
140
140
|
readonly creative_format: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
141
|
-
readonly creative_format_variants: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
141
|
+
readonly creative_format_variants: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, v.TransformAction<string[], string>]>, undefined>, undefined>;
|
|
142
142
|
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>, undefined>;
|
|
143
143
|
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
144
144
|
readonly notes: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, undefined>]>, undefined>, undefined>;
|
|
145
145
|
}, undefined>;
|
|
146
|
-
type
|
|
146
|
+
type UpdateUtmTrackingLinkDocumentInput = v.InferInput<typeof UpdateUtmTrackingLinkDocument>;
|
|
147
|
+
type UpdateUtmTrackingLinkDocumentOutput = v.InferOutput<typeof UpdateUtmTrackingLinkDocument>;
|
|
147
148
|
declare const UpdateUtmTrackingLinkDocumentRequest: v.ObjectSchema<{
|
|
148
149
|
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
149
150
|
readonly data: v.ObjectSchema<{
|
|
@@ -158,10 +159,10 @@ declare const UpdateUtmTrackingLinkDocumentRequest: v.ObjectSchema<{
|
|
|
158
159
|
readonly utm_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
159
160
|
readonly campaign_phase: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
160
161
|
readonly campaign_product: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
161
|
-
readonly campaign_targeting: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
162
|
+
readonly campaign_targeting: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, v.TransformAction<string[], string>]>, undefined>, undefined>;
|
|
162
163
|
readonly campaign_key: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
163
164
|
readonly creative_format: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
164
|
-
readonly creative_format_variants: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
165
|
+
readonly creative_format_variants: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, v.TransformAction<string[], string>]>, undefined>, undefined>;
|
|
165
166
|
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>, undefined>;
|
|
166
167
|
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
167
168
|
readonly notes: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, undefined>]>, undefined>, undefined>;
|
|
@@ -169,4 +170,4 @@ declare const UpdateUtmTrackingLinkDocumentRequest: v.ObjectSchema<{
|
|
|
169
170
|
}, undefined>;
|
|
170
171
|
type UpdateUtmTrackingLinkDocumentRequest = v.InferOutput<typeof UpdateUtmTrackingLinkDocumentRequest>;
|
|
171
172
|
//#endregion
|
|
172
|
-
export { CreateUtmTrackingLinkDocument, CreateUtmTrackingLinkDocumentRequest, CreateUtmTrackingLinkParts, SFormCreateMultipleUtmTrackingLinkDocuments, SReadUtmTrackingLinkDocumentByUrl, UpdateUtmTrackingLinkDocument, UpdateUtmTrackingLinkDocumentRequest };
|
|
173
|
+
export { CreateUtmTrackingLinkDocument, CreateUtmTrackingLinkDocumentRequest, CreateUtmTrackingLinkParts, SFormCreateMultipleUtmTrackingLinkDocuments, SReadUtmTrackingLinkDocumentByUrl, UpdateUtmTrackingLinkDocument, UpdateUtmTrackingLinkDocumentInput, UpdateUtmTrackingLinkDocumentOutput, UpdateUtmTrackingLinkDocumentRequest };
|
|
@@ -135,15 +135,16 @@ declare const UpdateUtmTrackingLinkDocument: v.ObjectSchema<{
|
|
|
135
135
|
readonly utm_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
136
136
|
readonly campaign_phase: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
137
137
|
readonly campaign_product: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
138
|
-
readonly campaign_targeting: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
138
|
+
readonly campaign_targeting: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, v.TransformAction<string[], string>]>, undefined>, undefined>;
|
|
139
139
|
readonly campaign_key: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
140
140
|
readonly creative_format: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
141
|
-
readonly creative_format_variants: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
141
|
+
readonly creative_format_variants: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, v.TransformAction<string[], string>]>, undefined>, undefined>;
|
|
142
142
|
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>, undefined>;
|
|
143
143
|
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
144
144
|
readonly notes: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, undefined>]>, undefined>, undefined>;
|
|
145
145
|
}, undefined>;
|
|
146
|
-
type
|
|
146
|
+
type UpdateUtmTrackingLinkDocumentInput = v.InferInput<typeof UpdateUtmTrackingLinkDocument>;
|
|
147
|
+
type UpdateUtmTrackingLinkDocumentOutput = v.InferOutput<typeof UpdateUtmTrackingLinkDocument>;
|
|
147
148
|
declare const UpdateUtmTrackingLinkDocumentRequest: v.ObjectSchema<{
|
|
148
149
|
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
149
150
|
readonly data: v.ObjectSchema<{
|
|
@@ -158,10 +159,10 @@ declare const UpdateUtmTrackingLinkDocumentRequest: v.ObjectSchema<{
|
|
|
158
159
|
readonly utm_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
159
160
|
readonly campaign_phase: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
160
161
|
readonly campaign_product: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
161
|
-
readonly campaign_targeting: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
162
|
+
readonly campaign_targeting: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, v.TransformAction<string[], string>]>, undefined>, undefined>;
|
|
162
163
|
readonly campaign_key: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
163
164
|
readonly creative_format: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
164
|
-
readonly creative_format_variants: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
165
|
+
readonly creative_format_variants: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, v.TransformAction<string[], string>]>, undefined>, undefined>;
|
|
165
166
|
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>, undefined>;
|
|
166
167
|
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
167
168
|
readonly notes: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, undefined>]>, undefined>, undefined>;
|
|
@@ -169,4 +170,4 @@ declare const UpdateUtmTrackingLinkDocumentRequest: v.ObjectSchema<{
|
|
|
169
170
|
}, undefined>;
|
|
170
171
|
type UpdateUtmTrackingLinkDocumentRequest = v.InferOutput<typeof UpdateUtmTrackingLinkDocumentRequest>;
|
|
171
172
|
//#endregion
|
|
172
|
-
export { CreateUtmTrackingLinkDocument, CreateUtmTrackingLinkDocumentRequest, CreateUtmTrackingLinkParts, SFormCreateMultipleUtmTrackingLinkDocuments, SReadUtmTrackingLinkDocumentByUrl, UpdateUtmTrackingLinkDocument, UpdateUtmTrackingLinkDocumentRequest };
|
|
173
|
+
export { CreateUtmTrackingLinkDocument, CreateUtmTrackingLinkDocumentRequest, CreateUtmTrackingLinkParts, SFormCreateMultipleUtmTrackingLinkDocuments, SReadUtmTrackingLinkDocumentByUrl, UpdateUtmTrackingLinkDocument, UpdateUtmTrackingLinkDocumentInput, UpdateUtmTrackingLinkDocumentOutput, UpdateUtmTrackingLinkDocumentRequest };
|
|
@@ -66,10 +66,10 @@ const UpdateUtmTrackingLinkDocument = v.object({
|
|
|
66
66
|
utm_id: VStringShortNullable(),
|
|
67
67
|
campaign_phase: v.optional(VStringShort()),
|
|
68
68
|
campaign_product: VStringShortNullable(),
|
|
69
|
-
campaign_targeting:
|
|
69
|
+
campaign_targeting: v.optional(v.nullable(VStringShortToCSV())),
|
|
70
70
|
campaign_key: VStringShortNullable(),
|
|
71
71
|
creative_format: VStringShortNullable(),
|
|
72
|
-
creative_format_variants:
|
|
72
|
+
creative_format_variants: v.optional(v.nullable(VStringShortToCSV())),
|
|
73
73
|
url: v.optional(VStringUrlUtm()),
|
|
74
74
|
is_active: v.optional(v.boolean()),
|
|
75
75
|
notes: VStringLongNullable()
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getcommunity/gc-validators",
|
|
3
3
|
"description": "Schema Validator for GetCommunity web-stack types",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.317",
|
|
5
5
|
"author": "Joey Grable <joey@getcommunity.com> (https://joeygrable.com)",
|
|
6
6
|
"contributors": [],
|
|
7
7
|
"type": "module",
|