@joeygrable94/utm-src-pub-validators 0.0.112 → 0.0.113
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 +15 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +15 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -8,18 +8,18 @@ declare const SQuerySortDocuments: v.OptionalSchema<v.ObjectSchema<{
|
|
|
8
8
|
readonly order: "DESC";
|
|
9
9
|
}>;
|
|
10
10
|
type SQuerySortDocuments = v.InferOutput<typeof SQuerySortDocuments>;
|
|
11
|
-
declare const SQueryListDocuments: v.ObjectSchema<{
|
|
11
|
+
declare const SQueryListDocuments: v.OptionalSchema<v.ObjectSchema<{
|
|
12
12
|
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
13
13
|
readonly page: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, 1>, 1>;
|
|
14
14
|
readonly size: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 10, undefined>, v.MaxValueAction<number, 10000, undefined>]>, 100>, 100>;
|
|
15
|
-
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
15
|
+
readonly sort: v.OptionalSchema<v.OptionalSchema<v.ObjectSchema<{
|
|
16
16
|
readonly key: v.SchemaWithFallback<v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>, "updatedAt">;
|
|
17
17
|
readonly order: v.SchemaWithFallback<v.PicklistSchema<["ASC", "DESC"], undefined>, "DESC">;
|
|
18
18
|
}, undefined>, {
|
|
19
19
|
readonly key: "updatedAt";
|
|
20
20
|
readonly order: "DESC";
|
|
21
|
-
}>;
|
|
22
|
-
}, undefined>;
|
|
21
|
+
}>, undefined>;
|
|
22
|
+
}, undefined>, undefined>;
|
|
23
23
|
type SQueryListDocuments = v.InferOutput<typeof SQueryListDocuments>;
|
|
24
24
|
|
|
25
25
|
declare const SQueryListGroupUserDocuments: v.ObjectSchema<{
|
package/dist/index.d.ts
CHANGED
|
@@ -8,18 +8,18 @@ declare const SQuerySortDocuments: v.OptionalSchema<v.ObjectSchema<{
|
|
|
8
8
|
readonly order: "DESC";
|
|
9
9
|
}>;
|
|
10
10
|
type SQuerySortDocuments = v.InferOutput<typeof SQuerySortDocuments>;
|
|
11
|
-
declare const SQueryListDocuments: v.ObjectSchema<{
|
|
11
|
+
declare const SQueryListDocuments: v.OptionalSchema<v.ObjectSchema<{
|
|
12
12
|
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
13
13
|
readonly page: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, 1>, 1>;
|
|
14
14
|
readonly size: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 10, undefined>, v.MaxValueAction<number, 10000, undefined>]>, 100>, 100>;
|
|
15
|
-
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
15
|
+
readonly sort: v.OptionalSchema<v.OptionalSchema<v.ObjectSchema<{
|
|
16
16
|
readonly key: v.SchemaWithFallback<v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>, "updatedAt">;
|
|
17
17
|
readonly order: v.SchemaWithFallback<v.PicklistSchema<["ASC", "DESC"], undefined>, "DESC">;
|
|
18
18
|
}, undefined>, {
|
|
19
19
|
readonly key: "updatedAt";
|
|
20
20
|
readonly order: "DESC";
|
|
21
|
-
}>;
|
|
22
|
-
}, undefined>;
|
|
21
|
+
}>, undefined>;
|
|
22
|
+
}, undefined>, undefined>;
|
|
23
23
|
type SQueryListDocuments = v.InferOutput<typeof SQueryListDocuments>;
|
|
24
24
|
|
|
25
25
|
declare const SQueryListGroupUserDocuments: v.ObjectSchema<{
|
package/dist/index.js
CHANGED
|
@@ -1028,22 +1028,24 @@ var SQuerySortDocuments = v13.optional(
|
|
|
1028
1028
|
order: "DESC"
|
|
1029
1029
|
}
|
|
1030
1030
|
);
|
|
1031
|
-
var SQueryListDocuments = v13.
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
v13.
|
|
1036
|
-
v13.
|
|
1037
|
-
v13.
|
|
1038
|
-
|
|
1039
|
-
|
|
1031
|
+
var SQueryListDocuments = v13.optional(
|
|
1032
|
+
v13.object({
|
|
1033
|
+
documentId: IsValidReferenceDocumentId,
|
|
1034
|
+
page: IsValidMinPage,
|
|
1035
|
+
size: v13.fallback(
|
|
1036
|
+
v13.optional(
|
|
1037
|
+
v13.pipe(
|
|
1038
|
+
v13.number(),
|
|
1039
|
+
v13.minValue(STRAPI_PAGINATION_MIN_SIZE_LIMIT),
|
|
1040
|
+
v13.maxValue(WEBSITE_PAGINATION_MAX_SIZE_LIMIT)
|
|
1041
|
+
),
|
|
1042
|
+
WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1040
1043
|
),
|
|
1041
1044
|
WEBSITE_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
1042
1045
|
),
|
|
1043
|
-
|
|
1044
|
-
)
|
|
1045
|
-
|
|
1046
|
-
});
|
|
1046
|
+
sort: v13.optional(SQuerySortDocuments)
|
|
1047
|
+
})
|
|
1048
|
+
);
|
|
1047
1049
|
var SQueryListGroupUserDocuments = v13.object({
|
|
1048
1050
|
documentId: IsValidReferenceDocumentId,
|
|
1049
1051
|
page: IsValidMinPage,
|