@getcommunity/gc-validators 0.0.281 → 0.0.282

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.
@@ -2,8 +2,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_chunk = require("../../chunk-CKQMccvm.cjs");
3
3
  const require_components_shared_index = require("../../components/shared/index.cjs");
4
4
  const require_components_blocks_index = require("../../components/blocks/index.cjs");
5
- const require_components_forms_index = require("../../components/forms/index.cjs");
6
5
  const require_components_slideshow_index = require("../../components/slideshow/index.cjs");
6
+ const require_components_forms_index = require("../../components/forms/index.cjs");
7
7
  const require_entities_blog_post_constants = require("./constants.cjs");
8
8
  let valibot = require("valibot");
9
9
  valibot = require_chunk.__toESM(valibot, 1);
@@ -1,7 +1,7 @@
1
1
  import { ComponentSharedRichTextBlock } from "../../components/shared/index.mjs";
2
2
  import { ComponentBlockButtonGroup, ComponentBlockContact, ComponentBlockFaq, ComponentBlockFullscreenContent, ComponentBlockGraphicImage, ComponentBlockPullQuote, ComponentBlockSectionTitle, ComponentBlockVideo } from "../../components/blocks/index.mjs";
3
- import { ComponentFormSelect } from "../../components/forms/index.mjs";
4
3
  import { ComponentSlideshow } from "../../components/slideshow/index.mjs";
4
+ import { ComponentFormSelect } from "../../components/forms/index.mjs";
5
5
  import { BLOG_POST_LAYOUT } from "./constants.mjs";
6
6
  import * as v from "valibot";
7
7
  //#region src/entities/blog-post/fields.ts
@@ -2,10 +2,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_chunk = require("../../chunk-CKQMccvm.cjs");
3
3
  require("../../pagination-C-gjFxDp.cjs");
4
4
  const require_pagination$1 = require("../../pagination-DWZDPzR4.cjs");
5
+ const require_sort = require("../../sort-CvgExm09.cjs");
5
6
  const require_string = require("../../string-Yn-6xiAZ.cjs");
7
+ require("../../base/index.cjs");
6
8
  const require_number = require("../../number-Bt4nZKCU.cjs");
7
9
  const require_entities_teamwork_constants = require("./constants.cjs");
8
- const require_entities_teamwork_fields = require("./fields.cjs");
9
10
  let valibot = require("valibot");
10
11
  valibot = require_chunk.__toESM(valibot, 1);
11
12
  //#region src/entities/teamwork/query.ts
@@ -21,7 +22,7 @@ const QueryStrapiSearchTeamworkProjectHealth = valibot.object({
21
22
  projectTagIds: valibot.optional(valibot.array(require_string.VStringMinMax())),
22
23
  projectHealths: valibot.optional(require_string.VStringMax()),
23
24
  projectStatuses: valibot.optional(valibot.picklist(require_entities_teamwork_constants.TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS.map((option) => option.value)), require_entities_teamwork_constants.TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS[0].value),
24
- sort: valibot.optional(require_entities_teamwork_fields.QuerySortTeamworkProjectHealth)
25
+ sort: valibot.optional(require_sort.QuerySortValues)
25
26
  });
26
27
  //#endregion
27
28
  exports.QueryStrapiSearchTeamworkProjectHealth = QueryStrapiSearchTeamworkProjectHealth;
@@ -13,10 +13,7 @@ declare const QueryStrapiSearchTeamworkProjectHealth: v.ObjectSchema<{
13
13
  readonly projectTagIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
14
14
  readonly projectHealths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
15
  readonly projectStatuses: v.OptionalSchema<v.PicklistSchema<("active" | "current" | "late" | "upcoming" | "completed" | "archived")[], undefined>, "active">;
16
- readonly sort: v.OptionalSchema<v.OptionalSchema<v.ObjectSchema<{
17
- readonly key: v.PicklistSchema<("name" | "health")[], undefined>;
18
- readonly order: v.PicklistSchema<readonly ["asc", "desc"], undefined>;
19
- }, undefined>, undefined>, undefined>;
16
+ readonly sort: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, undefined>, v.SchemaWithPipe<readonly [v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, v.TransformAction<`${string}:asc` | `${string}:desc`, (`${string}:asc` | `${string}:desc`)[]>]>], undefined>, undefined>;
20
17
  }, undefined>;
21
18
  type QueryStrapiSearchTeamworkProjectHealth = v.InferOutput<typeof QueryStrapiSearchTeamworkProjectHealth>;
22
19
  //#endregion
@@ -13,10 +13,7 @@ declare const QueryStrapiSearchTeamworkProjectHealth: v.ObjectSchema<{
13
13
  readonly projectTagIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
14
14
  readonly projectHealths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
15
  readonly projectStatuses: v.OptionalSchema<v.PicklistSchema<("active" | "current" | "late" | "upcoming" | "completed" | "archived")[], undefined>, "active">;
16
- readonly sort: v.OptionalSchema<v.OptionalSchema<v.ObjectSchema<{
17
- readonly key: v.PicklistSchema<("name" | "health")[], undefined>;
18
- readonly order: v.PicklistSchema<readonly ["asc", "desc"], undefined>;
19
- }, undefined>, undefined>, undefined>;
16
+ readonly sort: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, undefined>, v.SchemaWithPipe<readonly [v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, v.TransformAction<`${string}:asc` | `${string}:desc`, (`${string}:asc` | `${string}:desc`)[]>]>], undefined>, undefined>;
20
17
  }, undefined>;
21
18
  type QueryStrapiSearchTeamworkProjectHealth = v.InferOutput<typeof QueryStrapiSearchTeamworkProjectHealth>;
22
19
  //#endregion
@@ -1,9 +1,10 @@
1
1
  import "../../pagination-BdjrPJfW.mjs";
2
2
  import { n as VSize, t as VPage } from "../../pagination-D5l_UjyM.mjs";
3
+ import { t as QuerySortValues } from "../../sort-i9OLHfrW.mjs";
3
4
  import { a as VStringMinMax, i as VStringMax } from "../../string-BHHnD2Qu.mjs";
5
+ import "../../base/index.mjs";
4
6
  import { t as VIntegerNullable } from "../../number-OMFRufFt.mjs";
5
7
  import { TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS } from "./constants.mjs";
6
- import { QuerySortTeamworkProjectHealth } from "./fields.mjs";
7
8
  import * as v from "valibot";
8
9
  //#region src/entities/teamwork/query.ts
9
10
  const QueryStrapiSearchTeamworkProjectHealth = v.object({
@@ -18,7 +19,7 @@ const QueryStrapiSearchTeamworkProjectHealth = v.object({
18
19
  projectTagIds: v.optional(v.array(VStringMinMax())),
19
20
  projectHealths: v.optional(VStringMax()),
20
21
  projectStatuses: v.optional(v.picklist(TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS.map((option) => option.value)), TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS[0].value),
21
- sort: v.optional(QuerySortTeamworkProjectHealth)
22
+ sort: v.optional(QuerySortValues)
22
23
  });
23
24
  //#endregion
24
25
  export { QueryStrapiSearchTeamworkProjectHealth };
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.281",
4
+ "version": "0.0.282",
5
5
  "author": "Joey Grable <joey@getcommunity.com> (https://joeygrable.com)",
6
6
  "contributors": [],
7
7
  "type": "module",
@@ -1,13 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_chunk = require("../../chunk-CKQMccvm.cjs");
3
- const require_sort = require("../../sort-CvgExm09.cjs");
4
- const require_entities_teamwork_constants = require("./constants.cjs");
5
- let valibot = require("valibot");
6
- valibot = require_chunk.__toESM(valibot, 1);
7
- //#region src/entities/teamwork/fields.ts
8
- const QuerySortTeamworkProjectHealth = valibot.optional(valibot.object({
9
- key: valibot.picklist(require_entities_teamwork_constants.TEAMWORK_PROJECT_HEALTH_SELECT_SORT_OPTIONS.map((option) => option.value)),
10
- order: valibot.picklist(require_sort.SORT_ORDER)
11
- }));
12
- //#endregion
13
- exports.QuerySortTeamworkProjectHealth = QuerySortTeamworkProjectHealth;
@@ -1,10 +0,0 @@
1
- import * as v from "valibot";
2
-
3
- //#region src/entities/teamwork/fields.d.ts
4
- declare const QuerySortTeamworkProjectHealth: v.OptionalSchema<v.ObjectSchema<{
5
- readonly key: v.PicklistSchema<("name" | "health")[], undefined>;
6
- readonly order: v.PicklistSchema<readonly ["asc", "desc"], undefined>;
7
- }, undefined>, undefined>;
8
- type QuerySortTeamworkProjectHealth = v.InferOutput<typeof QuerySortTeamworkProjectHealth>;
9
- //#endregion
10
- export { QuerySortTeamworkProjectHealth };
@@ -1,10 +0,0 @@
1
- import * as v from "valibot";
2
-
3
- //#region src/entities/teamwork/fields.d.ts
4
- declare const QuerySortTeamworkProjectHealth: v.OptionalSchema<v.ObjectSchema<{
5
- readonly key: v.PicklistSchema<("name" | "health")[], undefined>;
6
- readonly order: v.PicklistSchema<readonly ["asc", "desc"], undefined>;
7
- }, undefined>, undefined>;
8
- type QuerySortTeamworkProjectHealth = v.InferOutput<typeof QuerySortTeamworkProjectHealth>;
9
- //#endregion
10
- export { QuerySortTeamworkProjectHealth };
@@ -1,10 +0,0 @@
1
- import { n as SORT_ORDER } from "../../sort-i9OLHfrW.mjs";
2
- import { TEAMWORK_PROJECT_HEALTH_SELECT_SORT_OPTIONS } from "./constants.mjs";
3
- import * as v from "valibot";
4
- //#region src/entities/teamwork/fields.ts
5
- const QuerySortTeamworkProjectHealth = v.optional(v.object({
6
- key: v.picklist(TEAMWORK_PROJECT_HEALTH_SELECT_SORT_OPTIONS.map((option) => option.value)),
7
- order: v.picklist(SORT_ORDER)
8
- }));
9
- //#endregion
10
- export { QuerySortTeamworkProjectHealth };