@getcommunity/gc-validators 0.0.270 → 0.0.271-alpha.0
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/README.md +2 -40
- package/dist/base/index.cjs +106 -0
- package/dist/base/index.d.cts +5 -0
- package/dist/base/index.d.mts +5 -0
- package/dist/base/index.mjs +21 -0
- package/dist/component-BPHZTfVY.mjs +6 -0
- package/dist/component-DLjTD_qK.cjs +19 -0
- package/dist/components/blocks/index.cjs +207 -0
- package/dist/components/blocks/index.d.cts +1322 -0
- package/dist/components/blocks/index.d.mts +1322 -0
- package/dist/components/blocks/index.mjs +175 -0
- package/dist/components/brand/index.cjs +37 -0
- package/dist/components/brand/index.d.cts +315 -0
- package/dist/components/brand/index.d.mts +315 -0
- package/dist/components/brand/index.mjs +31 -0
- package/dist/components/forms/index.cjs +70 -0
- package/dist/components/forms/index.d.cts +333 -0
- package/dist/components/forms/index.d.mts +333 -0
- package/dist/components/forms/index.mjs +58 -0
- package/dist/components/shared/index.cjs +127 -0
- package/dist/components/shared/index.d.cts +917 -0
- package/dist/components/shared/index.d.mts +917 -0
- package/dist/components/shared/index.mjs +107 -0
- package/dist/components/slideshow/index.cjs +129 -0
- package/dist/components/slideshow/index.d.cts +742 -0
- package/dist/components/slideshow/index.d.mts +742 -0
- package/dist/components/slideshow/index.mjs +106 -0
- package/dist/components/utm/index.cjs +55 -0
- package/dist/components/utm/index.d.cts +32 -0
- package/dist/components/utm/index.d.mts +32 -0
- package/dist/components/utm/index.mjs +47 -0
- package/dist/constants/index.cjs +243 -0
- package/dist/constants/index.d.cts +197 -0
- package/dist/constants/index.d.mts +197 -0
- package/dist/constants/index.mjs +182 -0
- package/dist/constants-L2goO7Eg.mjs +85 -0
- package/dist/constants-PBZKggHL.cjs +102 -0
- package/dist/document-BAro2Mrj.cjs +18 -0
- package/dist/document-BAzLIprH.d.mts +100 -0
- package/dist/document-BFukanLe.mjs +54 -0
- package/dist/document-BK1ASowb.d.cts +17 -0
- package/dist/document-BMxLOdrT.d.cts +267 -0
- package/dist/document-BNoXPGwF.d.mts +27 -0
- package/dist/document-B_pJW777.d.mts +30 -0
- package/dist/document-Bd2AyLs8.d.mts +16 -0
- package/dist/document-BezYxNmb.d.cts +16 -0
- package/dist/document-Bj7SRTOn.d.cts +18 -0
- package/dist/document-Bo869pZx.d.mts +18 -0
- package/dist/document-Bpr9mbCs.d.mts +15 -0
- package/dist/document-Bqoi1MdT.mjs +11 -0
- package/dist/document-Bs8c1mok.d.cts +15 -0
- package/dist/document-C0c7azOe.d.mts +434 -0
- package/dist/document-CTTDXzOF.mjs +13 -0
- package/dist/document-CUl_Ys6-.mjs +23 -0
- package/dist/document-CWYzG60q.d.cts +19 -0
- package/dist/document-Ccszj8lR.cjs +20 -0
- package/dist/document-CjNHI7Eb.d.cts +27 -0
- package/dist/document-Cu_HUDC5.mjs +51 -0
- package/dist/document-D-KvyEb5.d.cts +238 -0
- package/dist/document-D2nLVGig.d.mts +238 -0
- package/dist/document-D5yDIDIx.d.mts +15 -0
- package/dist/document-D73dqRle.d.cts +19 -0
- package/dist/document-DA6YVZz-.d.cts +100 -0
- package/dist/document-DJ0YiVte.d.cts +30 -0
- package/dist/document-DMHIUE3J.d.mts +17 -0
- package/dist/document-DN3g0EFx.d.cts +434 -0
- package/dist/document-DWapIF7V.d.cts +12223 -0
- package/dist/document-DYzRVV1C.d.mts +16 -0
- package/dist/document-D_ZMbzn6.d.cts +18 -0
- package/dist/document-DeoRGh7p.d.mts +19 -0
- package/dist/document-DsIPBTG8.cjs +30 -0
- package/dist/document-DsSaMVGb.cjs +106 -0
- package/dist/document-Gx2Vrg_w.d.mts +267 -0
- package/dist/document-IIJpsOIO.d.cts +16 -0
- package/dist/document-WHS8GHY5.d.mts +18 -0
- package/dist/document-dqrWptdY.d.cts +244 -0
- package/dist/document-hEBlSep8.d.cts +15 -0
- package/dist/document-qcC-10Nd.d.mts +12223 -0
- package/dist/document-rbMXLGxt.cjs +103 -0
- package/dist/document-si7GYS5g.d.mts +19 -0
- package/dist/document-vq-7rcU5.d.mts +244 -0
- package/dist/entities/audit-log/index.cjs +127 -0
- package/dist/entities/audit-log/index.d.cts +134 -0
- package/dist/entities/audit-log/index.d.mts +134 -0
- package/dist/entities/audit-log/index.mjs +115 -0
- package/dist/entities/blog-page/index.cjs +16 -0
- package/dist/entities/blog-page/index.d.cts +257 -0
- package/dist/entities/blog-page/index.d.mts +257 -0
- package/dist/entities/blog-page/index.mjs +13 -0
- package/dist/entities/blog-post/index.cjs +33 -0
- package/dist/entities/blog-post/index.d.cts +917 -0
- package/dist/entities/blog-post/index.d.mts +917 -0
- package/dist/entities/blog-post/index.mjs +21 -0
- package/dist/entities/careers-page/index.cjs +16 -0
- package/dist/entities/careers-page/index.d.cts +257 -0
- package/dist/entities/careers-page/index.d.mts +257 -0
- package/dist/entities/careers-page/index.mjs +13 -0
- package/dist/entities/category/index.cjs +63 -0
- package/dist/entities/category/index.d.cts +300 -0
- package/dist/entities/category/index.d.mts +300 -0
- package/dist/entities/category/index.mjs +52 -0
- package/dist/entities/client/index.cjs +96 -0
- package/dist/entities/client/index.d.cts +85 -0
- package/dist/entities/client/index.d.mts +85 -0
- package/dist/entities/client/index.mjs +83 -0
- package/dist/entities/client-content-pillar/index.cjs +70 -0
- package/dist/entities/client-content-pillar/index.d.cts +49 -0
- package/dist/entities/client-content-pillar/index.d.mts +49 -0
- package/dist/entities/client-content-pillar/index.mjs +59 -0
- package/dist/entities/client-media-platform/index.cjs +74 -0
- package/dist/entities/client-media-platform/index.d.cts +53 -0
- package/dist/entities/client-media-platform/index.d.mts +53 -0
- package/dist/entities/client-media-platform/index.mjs +63 -0
- package/dist/entities/client-project/index.cjs +205 -0
- package/dist/entities/client-project/index.d.cts +147 -0
- package/dist/entities/client-project/index.d.mts +147 -0
- package/dist/entities/client-project/index.mjs +188 -0
- package/dist/entities/client-report/index.cjs +82 -0
- package/dist/entities/client-report/index.d.cts +63 -0
- package/dist/entities/client-report/index.d.mts +63 -0
- package/dist/entities/client-report/index.mjs +71 -0
- package/dist/entities/client-styleguide/index.cjs +77 -0
- package/dist/entities/client-styleguide/index.d.cts +48 -0
- package/dist/entities/client-styleguide/index.d.mts +48 -0
- package/dist/entities/client-styleguide/index.mjs +66 -0
- package/dist/entities/client-user/index.cjs +78 -0
- package/dist/entities/client-user/index.d.cts +47 -0
- package/dist/entities/client-user/index.d.mts +47 -0
- package/dist/entities/client-user/index.mjs +64 -0
- package/dist/entities/comment/index.cjs +137 -0
- package/dist/entities/comment/index.d.cts +2 -0
- package/dist/entities/comment/index.d.mts +2 -0
- package/dist/entities/comment/index.mjs +116 -0
- package/dist/entities/content-pillar/index.cjs +59 -0
- package/dist/entities/content-pillar/index.d.cts +50 -0
- package/dist/entities/content-pillar/index.d.mts +50 -0
- package/dist/entities/content-pillar/index.mjs +48 -0
- package/dist/entities/faq-page/index.cjs +17 -0
- package/dist/entities/faq-page/index.d.cts +335 -0
- package/dist/entities/faq-page/index.d.mts +335 -0
- package/dist/entities/faq-page/index.mjs +14 -0
- package/dist/entities/formatter/index.cjs +258 -0
- package/dist/entities/formatter/index.d.cts +121 -0
- package/dist/entities/formatter/index.d.mts +121 -0
- package/dist/entities/formatter/index.mjs +233 -0
- package/dist/entities/gcflytour/index.cjs +79 -0
- package/dist/entities/gcflytour/index.d.cts +61 -0
- package/dist/entities/gcflytour/index.d.mts +61 -0
- package/dist/entities/gcflytour/index.mjs +68 -0
- package/dist/entities/gcflytour-snap/index.cjs +78 -0
- package/dist/entities/gcflytour-snap/index.d.cts +59 -0
- package/dist/entities/gcflytour-snap/index.d.mts +59 -0
- package/dist/entities/gcflytour-snap/index.mjs +67 -0
- package/dist/entities/landing-page/index.cjs +28 -0
- package/dist/entities/landing-page/index.d.cts +479 -0
- package/dist/entities/landing-page/index.d.mts +479 -0
- package/dist/entities/landing-page/index.mjs +25 -0
- package/dist/entities/lead/index.cjs +63 -0
- package/dist/entities/lead/index.d.cts +75 -0
- package/dist/entities/lead/index.d.mts +75 -0
- package/dist/entities/lead/index.mjs +57 -0
- package/dist/entities/media-content-type/index.cjs +100 -0
- package/dist/entities/media-content-type/index.d.cts +66 -0
- package/dist/entities/media-content-type/index.d.mts +66 -0
- package/dist/entities/media-content-type/index.mjs +89 -0
- package/dist/entities/media-creative-format/index.cjs +79 -0
- package/dist/entities/media-creative-format/index.d.cts +54 -0
- package/dist/entities/media-creative-format/index.d.mts +54 -0
- package/dist/entities/media-creative-format/index.mjs +68 -0
- package/dist/entities/media-medium/index.cjs +90 -0
- package/dist/entities/media-medium/index.d.cts +77 -0
- package/dist/entities/media-medium/index.d.mts +77 -0
- package/dist/entities/media-medium/index.mjs +79 -0
- package/dist/entities/media-platform/index.cjs +118 -0
- package/dist/entities/media-platform/index.d.cts +74 -0
- package/dist/entities/media-platform/index.d.mts +74 -0
- package/dist/entities/media-platform/index.mjs +107 -0
- package/dist/entities/monday-workspace/index.cjs +66 -0
- package/dist/entities/monday-workspace/index.d.cts +47 -0
- package/dist/entities/monday-workspace/index.d.mts +47 -0
- package/dist/entities/monday-workspace/index.mjs +55 -0
- package/dist/entities/newsletter-signup/index.cjs +67 -0
- package/dist/entities/newsletter-signup/index.d.cts +76 -0
- package/dist/entities/newsletter-signup/index.d.mts +76 -0
- package/dist/entities/newsletter-signup/index.mjs +60 -0
- package/dist/entities/policy-page/index.cjs +23 -0
- package/dist/entities/policy-page/index.d.cts +331 -0
- package/dist/entities/policy-page/index.d.mts +331 -0
- package/dist/entities/policy-page/index.mjs +20 -0
- package/dist/entities/product/index.cjs +28 -0
- package/dist/entities/product/index.d.cts +325 -0
- package/dist/entities/product/index.d.mts +325 -0
- package/dist/entities/product/index.mjs +23 -0
- package/dist/entities/product-highlight/index.cjs +28 -0
- package/dist/entities/product-highlight/index.d.cts +245 -0
- package/dist/entities/product-highlight/index.d.mts +245 -0
- package/dist/entities/product-highlight/index.mjs +23 -0
- package/dist/entities/resume/index.cjs +129 -0
- package/dist/entities/resume/index.d.cts +198 -0
- package/dist/entities/resume/index.d.mts +198 -0
- package/dist/entities/resume/index.mjs +119 -0
- package/dist/entities/sharpspring/index.cjs +19 -0
- package/dist/entities/sharpspring/index.d.cts +16 -0
- package/dist/entities/sharpspring/index.d.mts +16 -0
- package/dist/entities/sharpspring/index.mjs +16 -0
- package/dist/entities/tag/index.cjs +61 -0
- package/dist/entities/tag/index.d.cts +54 -0
- package/dist/entities/tag/index.d.mts +54 -0
- package/dist/entities/tag/index.mjs +50 -0
- package/dist/entities/team-member/index.cjs +29 -0
- package/dist/entities/team-member/index.d.cts +210 -0
- package/dist/entities/team-member/index.d.mts +210 -0
- package/dist/entities/team-member/index.mjs +17 -0
- package/dist/entities/team-page/index.cjs +16 -0
- package/dist/entities/team-page/index.d.cts +257 -0
- package/dist/entities/team-page/index.d.mts +257 -0
- package/dist/entities/team-page/index.mjs +13 -0
- package/dist/entities/teamwork/index.cjs +74 -0
- package/dist/entities/teamwork/index.d.cts +512 -0
- package/dist/entities/teamwork/index.d.mts +512 -0
- package/dist/entities/teamwork/index.mjs +68 -0
- package/dist/entities/trend/index.cjs +34 -0
- package/dist/entities/trend/index.d.cts +347 -0
- package/dist/entities/trend/index.d.mts +347 -0
- package/dist/entities/trend/index.mjs +28 -0
- package/dist/entities/up-auth/index.cjs +56 -0
- package/dist/entities/up-auth/index.d.cts +2 -0
- package/dist/entities/up-auth/index.d.mts +2 -0
- package/dist/entities/up-auth/index.mjs +44 -0
- package/dist/entities/up-permission/index.cjs +12 -0
- package/dist/entities/up-permission/index.d.cts +14 -0
- package/dist/entities/up-permission/index.d.mts +14 -0
- package/dist/entities/up-permission/index.mjs +9 -0
- package/dist/entities/up-role/index.cjs +28 -0
- package/dist/entities/up-role/index.d.cts +7 -0
- package/dist/entities/up-role/index.d.mts +7 -0
- package/dist/entities/up-role/index.mjs +23 -0
- package/dist/entities/up-user/index.cjs +64 -0
- package/dist/entities/up-user/index.d.cts +38 -0
- package/dist/entities/up-user/index.d.mts +38 -0
- package/dist/entities/up-user/index.mjs +54 -0
- package/dist/entities/upload/index.cjs +35 -0
- package/dist/entities/upload/index.d.cts +31 -0
- package/dist/entities/upload/index.d.mts +31 -0
- package/dist/entities/upload/index.mjs +29 -0
- package/dist/entities/url-redirect/index.cjs +67 -0
- package/dist/entities/url-redirect/index.d.cts +45 -0
- package/dist/entities/url-redirect/index.d.mts +45 -0
- package/dist/entities/url-redirect/index.mjs +54 -0
- package/dist/entities/user-account/index.cjs +48 -0
- package/dist/entities/user-account/index.d.cts +39 -0
- package/dist/entities/user-account/index.d.mts +39 -0
- package/dist/entities/user-account/index.mjs +39 -0
- package/dist/entities/utm-link-builder/index.cjs +84 -0
- package/dist/entities/utm-link-builder/index.d.cts +191 -0
- package/dist/entities/utm-link-builder/index.d.mts +191 -0
- package/dist/entities/utm-link-builder/index.mjs +76 -0
- package/dist/entities/utm-meta/index.cjs +19 -0
- package/dist/entities/utm-meta/index.d.cts +83 -0
- package/dist/entities/utm-meta/index.d.mts +83 -0
- package/dist/entities/utm-meta/index.mjs +16 -0
- package/dist/entities/utm-tracking-link/index.cjs +199 -0
- package/dist/entities/utm-tracking-link/index.d.cts +235 -0
- package/dist/entities/utm-tracking-link/index.d.mts +235 -0
- package/dist/entities/utm-tracking-link/index.mjs +184 -0
- package/dist/fields-BQHSYj70.d.cts +7 -0
- package/dist/fields-qx-5saY5.d.mts +7 -0
- package/dist/fonts-CGSHKgp0.cjs +125 -0
- package/dist/fonts-tMy55UFs.mjs +58 -0
- package/dist/index-CPUGB8lZ.d.mts +95 -0
- package/dist/index-DDYmaYSm.d.mts +200 -0
- package/dist/index-Dl6KBLdT.d.mts +422 -0
- package/dist/index-DmLVZdb3.d.cts +200 -0
- package/dist/index-Dv9bgrpo.d.cts +422 -0
- package/dist/index-H4RC0v4h.d.cts +95 -0
- package/dist/json-BJ8GyrtC.d.cts +9 -0
- package/dist/json-BgewUW_1.cjs +19 -0
- package/dist/json-CTduX6Ak.mjs +12 -0
- package/dist/json-CqAaKeHA.d.mts +9 -0
- package/dist/media-upload-B6aQYeRM.cjs +59 -0
- package/dist/media-upload-DiRJksSU.mjs +40 -0
- package/dist/pagination-4pZafglS.cjs +23 -0
- package/dist/pagination-owwfYJS6.mjs +6 -0
- package/dist/{permissions.cjs → permissions/index.cjs} +6 -89
- package/dist/permissions/index.d.cts +2 -0
- package/dist/permissions/index.d.mts +2 -0
- package/dist/{permissions.mjs → permissions/index.mjs} +3 -86
- package/dist/query.schema-BOn5Kk_p.d.mts +41 -0
- package/dist/query.schema-CItKlb0x.d.cts +41 -0
- package/dist/query.schema-DHTf6rTw.cjs +95 -0
- package/dist/query.schema-YKoOuBnk.mjs +40 -0
- package/dist/regex-BnKGcdS4.mjs +55 -0
- package/dist/regex-Cl5goNwp.cjs +342 -0
- package/dist/relations-C04F46xL.mjs +41 -0
- package/dist/relations-CGu18hfT.cjs +90 -0
- package/dist/response-C-7nyNVD.d.mts +57 -0
- package/dist/response-c6SgLvi9.d.cts +57 -0
- package/dist/strapi-C0DtxJLD.mjs +9 -0
- package/dist/strapi-C7POOPEf.cjs +34 -0
- package/dist/strapi-COeswSwJ.mjs +49 -0
- package/dist/strapi-DmhV7ODq.cjs +72 -0
- package/dist/theme-Ba9vW4PA.cjs +230 -0
- package/dist/theme-BhQd4eMI.mjs +97 -0
- package/dist/{utilities.cjs → utilities/index.cjs} +9 -28
- package/dist/utilities/index.d.cts +24 -0
- package/dist/utilities/index.d.mts +24 -0
- package/dist/{utilities.mjs → utilities/index.mjs} +9 -25
- package/dist/validators-Bc9Is5Sr.cjs +222 -0
- package/dist/validators-P5E_3qzc.mjs +95 -0
- package/package.json +64 -40
- package/dist/constants.cjs +0 -461
- package/dist/constants.d.cts +0 -2
- package/dist/constants.d.mts +0 -2
- package/dist/constants.mjs +0 -353
- package/dist/index-CiWVYf_f.d.cts +0 -291
- package/dist/index-D5uEXy4J.d.mts +0 -4509
- package/dist/index-DOR_It7I.d.mts +0 -291
- package/dist/index-Df4iWapE.d.cts +0 -4509
- package/dist/index.cjs +0 -384
- package/dist/index.d.cts +0 -3
- package/dist/index.d.mts +0 -3
- package/dist/index.mjs +0 -6
- package/dist/permissions.d.cts +0 -2
- package/dist/permissions.d.mts +0 -2
- package/dist/schemas.cjs +0 -2326
- package/dist/schemas.d.cts +0 -2
- package/dist/schemas.d.mts +0 -2
- package/dist/schemas.mjs +0 -2068
- package/dist/types.cjs +0 -0
- package/dist/types.d.cts +0 -2
- package/dist/types.d.mts +0 -2
- package/dist/types.mjs +0 -1
- package/dist/utilities.d.cts +0 -2
- package/dist/utilities.d.mts +0 -2
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/teamwork/constants.d.ts
|
|
4
|
+
declare const TEAMWORK_PROJECT_HEALTH_SELECT_SORT_OPTIONS: readonly [{
|
|
5
|
+
readonly label: "Name";
|
|
6
|
+
readonly value: "name";
|
|
7
|
+
}, {
|
|
8
|
+
readonly label: "Health";
|
|
9
|
+
readonly value: "health";
|
|
10
|
+
}];
|
|
11
|
+
type TeamworkProjectHealthSortKey = (typeof TEAMWORK_PROJECT_HEALTH_SELECT_SORT_OPTIONS)[number]["value"];
|
|
12
|
+
declare const TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS: readonly [{
|
|
13
|
+
readonly label: "Active";
|
|
14
|
+
readonly value: "active";
|
|
15
|
+
readonly description: "Projects that are currently active";
|
|
16
|
+
}, {
|
|
17
|
+
readonly label: "Current";
|
|
18
|
+
readonly value: "current";
|
|
19
|
+
readonly description: "Projects that are currently ongoing";
|
|
20
|
+
}, {
|
|
21
|
+
readonly label: "Late";
|
|
22
|
+
readonly value: "late";
|
|
23
|
+
readonly description: "Projects that are behind schedule";
|
|
24
|
+
}, {
|
|
25
|
+
readonly label: "Upcoming";
|
|
26
|
+
readonly value: "upcoming";
|
|
27
|
+
readonly description: "Projects that are scheduled to start soon";
|
|
28
|
+
}, {
|
|
29
|
+
readonly label: "Completed";
|
|
30
|
+
readonly value: "completed";
|
|
31
|
+
readonly description: "Projects that have been completed";
|
|
32
|
+
}, {
|
|
33
|
+
readonly label: "Archived";
|
|
34
|
+
readonly value: "archived";
|
|
35
|
+
readonly description: "Projects that have been archived";
|
|
36
|
+
}];
|
|
37
|
+
type TeamworkProjectHealthProjectStatus = (typeof TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS)[number]["value"];
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/entities/teamwork/fields.d.ts
|
|
40
|
+
declare const QuerySortTeamworkProjectHealth: v.OptionalSchema<v.ObjectSchema<{
|
|
41
|
+
readonly key: v.PicklistSchema<("name" | "health")[], undefined>;
|
|
42
|
+
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
43
|
+
}, undefined>, undefined>;
|
|
44
|
+
type QuerySortTeamworkProjectHealth = v.InferOutput<typeof QuerySortTeamworkProjectHealth>;
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/entities/teamwork/query.d.ts
|
|
47
|
+
declare const QueryStrapiSearchTeamworkProjectHealth: v.ObjectSchema<{
|
|
48
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
49
|
+
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
50
|
+
readonly lastPeriodDays: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
51
|
+
readonly searchTerm: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
52
|
+
readonly excludeTagIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
53
|
+
readonly includeArchivedProjects: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
54
|
+
readonly projectCategoryIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
55
|
+
readonly projectCompanyIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
56
|
+
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>;
|
|
57
|
+
readonly projectHealths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
|
+
readonly projectStatuses: v.OptionalSchema<v.PicklistSchema<("active" | "current" | "late" | "upcoming" | "completed" | "archived")[], undefined>, "active">;
|
|
59
|
+
readonly sort: v.OptionalSchema<v.ObjectSchema<{
|
|
60
|
+
readonly key: v.PicklistSchema<("name" | "health")[], undefined>;
|
|
61
|
+
readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
|
|
62
|
+
}, undefined>, undefined>;
|
|
63
|
+
}, undefined>;
|
|
64
|
+
type QueryStrapiSearchTeamworkProjectHealth = v.InferOutput<typeof QueryStrapiSearchTeamworkProjectHealth>;
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/entities/teamwork/types/generic.types.d.ts
|
|
67
|
+
type TeamworkResponseMetaPagination = {
|
|
68
|
+
pageOffset: number;
|
|
69
|
+
pageSize: number;
|
|
70
|
+
count: number;
|
|
71
|
+
hasMore: boolean;
|
|
72
|
+
};
|
|
73
|
+
type TeamworkResponseMeta = {
|
|
74
|
+
page: TeamworkResponseMetaPagination;
|
|
75
|
+
averageSpend?: number;
|
|
76
|
+
limit?: number;
|
|
77
|
+
nextCursor?: string;
|
|
78
|
+
prevCursor?: string;
|
|
79
|
+
totalCapacity?: number;
|
|
80
|
+
};
|
|
81
|
+
type TeamworkRelatedMeta = {
|
|
82
|
+
id: number;
|
|
83
|
+
type: string;
|
|
84
|
+
};
|
|
85
|
+
type TeamworkActivePages = {
|
|
86
|
+
billing: boolean;
|
|
87
|
+
forms: boolean;
|
|
88
|
+
comments: boolean;
|
|
89
|
+
files: boolean;
|
|
90
|
+
links: boolean;
|
|
91
|
+
messages: boolean;
|
|
92
|
+
milestones: boolean;
|
|
93
|
+
notebooks: boolean;
|
|
94
|
+
riskRegister: boolean;
|
|
95
|
+
tasks: boolean;
|
|
96
|
+
list: boolean;
|
|
97
|
+
board: boolean;
|
|
98
|
+
gantt: boolean;
|
|
99
|
+
table: boolean;
|
|
100
|
+
time: boolean;
|
|
101
|
+
finance: boolean;
|
|
102
|
+
proofs: boolean;
|
|
103
|
+
tickets: boolean;
|
|
104
|
+
};
|
|
105
|
+
type TeamworkLockdown = {
|
|
106
|
+
id: number;
|
|
107
|
+
items: TeamworkRelatedMeta[];
|
|
108
|
+
updatedAt: string;
|
|
109
|
+
user: TeamworkRelatedMeta;
|
|
110
|
+
userID: number;
|
|
111
|
+
};
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/entities/teamwork/types/company.types.d.ts
|
|
114
|
+
type TeamworkCompany = {
|
|
115
|
+
id: number;
|
|
116
|
+
name: string;
|
|
117
|
+
logoUrl: string;
|
|
118
|
+
createdAt: string | null;
|
|
119
|
+
updatedAt: string;
|
|
120
|
+
addressOne: string;
|
|
121
|
+
addressTwo: string;
|
|
122
|
+
city: string;
|
|
123
|
+
state: string;
|
|
124
|
+
zip: string;
|
|
125
|
+
countryCode: string;
|
|
126
|
+
emailOne: string;
|
|
127
|
+
emailTwo: string;
|
|
128
|
+
emailThree: string;
|
|
129
|
+
website: string;
|
|
130
|
+
cid: string;
|
|
131
|
+
phone: string;
|
|
132
|
+
fax: string;
|
|
133
|
+
canSeePrivate: boolean;
|
|
134
|
+
isOwner: boolean;
|
|
135
|
+
industryId: number;
|
|
136
|
+
industry: TeamworkRelatedMeta;
|
|
137
|
+
companyNameUrl: string;
|
|
138
|
+
accounts: number;
|
|
139
|
+
collaborators: number;
|
|
140
|
+
contacts: number;
|
|
141
|
+
clients: number;
|
|
142
|
+
clientManagedBy: null;
|
|
143
|
+
companyUpdate: null;
|
|
144
|
+
companyDomains: TeamworkRelatedMeta[];
|
|
145
|
+
tags: TeamworkRelatedMeta[];
|
|
146
|
+
status: string;
|
|
147
|
+
currency: TeamworkRelatedMeta;
|
|
148
|
+
};
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region src/entities/teamwork/types/currency.types.d.ts
|
|
151
|
+
type TeamworkCurrency = {
|
|
152
|
+
id: number;
|
|
153
|
+
name: string;
|
|
154
|
+
code: string;
|
|
155
|
+
symbol: string;
|
|
156
|
+
decimalPoints: number;
|
|
157
|
+
};
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region src/entities/teamwork/types/custom-field.types.d.ts
|
|
160
|
+
type TeamworkCustomField = {
|
|
161
|
+
id: number | null;
|
|
162
|
+
projectId: number | null;
|
|
163
|
+
project: TeamworkRelatedMeta | null;
|
|
164
|
+
entity: string;
|
|
165
|
+
name: string;
|
|
166
|
+
description: string;
|
|
167
|
+
type: string;
|
|
168
|
+
options: null;
|
|
169
|
+
formula: null;
|
|
170
|
+
visibilities: null;
|
|
171
|
+
isPrivate: boolean;
|
|
172
|
+
required: boolean;
|
|
173
|
+
createdAt: string;
|
|
174
|
+
createdByUserId: number;
|
|
175
|
+
createdBy: TeamworkRelatedMeta | null;
|
|
176
|
+
updatedAt: string;
|
|
177
|
+
updatedByUserId: number;
|
|
178
|
+
updatedBy: TeamworkRelatedMeta | null;
|
|
179
|
+
deleted: boolean;
|
|
180
|
+
deletedAt: string | null;
|
|
181
|
+
deletedByUserId: number | null;
|
|
182
|
+
deletedBy: TeamworkRelatedMeta | null;
|
|
183
|
+
groupId: number | null;
|
|
184
|
+
unitId: number | null;
|
|
185
|
+
};
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region src/entities/teamwork/types/project-category.types.d.ts
|
|
188
|
+
type TeamworkProjectCategory = {
|
|
189
|
+
id: number;
|
|
190
|
+
name: string;
|
|
191
|
+
color: string;
|
|
192
|
+
count: number;
|
|
193
|
+
parentId: number | null;
|
|
194
|
+
parent: TeamworkRelatedMeta | null;
|
|
195
|
+
};
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region src/entities/teamwork/types/project-custom-field.types.d.ts
|
|
198
|
+
type TeamworkProjectCustomField = {
|
|
199
|
+
id: number;
|
|
200
|
+
customfieldId: number;
|
|
201
|
+
customfield: TeamworkRelatedMeta;
|
|
202
|
+
value: number | string;
|
|
203
|
+
createdAt: string;
|
|
204
|
+
createdBy: number;
|
|
205
|
+
projectId: number;
|
|
206
|
+
project: TeamworkRelatedMeta;
|
|
207
|
+
};
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/entities/teamwork/types/project-task-stat.types.d.ts
|
|
210
|
+
type TeamworkProjectTaskStat = {
|
|
211
|
+
id: number;
|
|
212
|
+
complete: number;
|
|
213
|
+
active: number;
|
|
214
|
+
late: number;
|
|
215
|
+
};
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region src/entities/teamwork/types/project-update.types.d.ts
|
|
218
|
+
type TeamworkProjectUpdate = {
|
|
219
|
+
id: number;
|
|
220
|
+
text: string;
|
|
221
|
+
health: number;
|
|
222
|
+
healthLabel: string;
|
|
223
|
+
color: string;
|
|
224
|
+
createdAt: string;
|
|
225
|
+
updatedAt: string;
|
|
226
|
+
deleted: boolean;
|
|
227
|
+
projectId: number;
|
|
228
|
+
project: TeamworkRelatedMeta;
|
|
229
|
+
createdBy: number;
|
|
230
|
+
isActive: boolean;
|
|
231
|
+
};
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region src/entities/teamwork/types/tag.types.d.ts
|
|
234
|
+
type TeamworkTag = {
|
|
235
|
+
id: number;
|
|
236
|
+
projectId: number;
|
|
237
|
+
project: TeamworkRelatedMeta;
|
|
238
|
+
name: string;
|
|
239
|
+
color: string;
|
|
240
|
+
};
|
|
241
|
+
type TeamworkTagResponseMeta = Record<string, unknown>;
|
|
242
|
+
type TeamworkTagsResponse = {
|
|
243
|
+
tags: TeamworkTag[];
|
|
244
|
+
meta: TeamworkResponseMeta & TeamworkTagResponseMeta;
|
|
245
|
+
included: object;
|
|
246
|
+
};
|
|
247
|
+
type TeamworkTagResponse = {
|
|
248
|
+
tag: TeamworkTag;
|
|
249
|
+
meta: TeamworkResponseMeta & TeamworkTagResponseMeta;
|
|
250
|
+
included: object;
|
|
251
|
+
};
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region src/entities/teamwork/types/user.types.d.ts
|
|
254
|
+
type TeamworkUserAccount = {
|
|
255
|
+
id: number;
|
|
256
|
+
firstName: string;
|
|
257
|
+
lastName: string;
|
|
258
|
+
title: string;
|
|
259
|
+
email: string;
|
|
260
|
+
companyId: number;
|
|
261
|
+
companyRoleId: number;
|
|
262
|
+
company: TeamworkRelatedMeta;
|
|
263
|
+
isAdmin: boolean;
|
|
264
|
+
isClientUser: boolean;
|
|
265
|
+
isServiceAccount: boolean;
|
|
266
|
+
type: string;
|
|
267
|
+
deleted: boolean;
|
|
268
|
+
avatarUrl: string | null;
|
|
269
|
+
lengthOfDay: number;
|
|
270
|
+
workingHoursId: number;
|
|
271
|
+
workingHour: TeamworkRelatedMeta;
|
|
272
|
+
canAccessPortfolio: boolean;
|
|
273
|
+
canAddProjects: boolean;
|
|
274
|
+
canManagePortfolio: boolean;
|
|
275
|
+
isPlaceholderResource: boolean;
|
|
276
|
+
timezone: string;
|
|
277
|
+
lastLogin: string | null;
|
|
278
|
+
createdBy: TeamworkRelatedMeta | null;
|
|
279
|
+
createdAt: string;
|
|
280
|
+
updatedBy: TeamworkRelatedMeta | null;
|
|
281
|
+
updatedAt: string;
|
|
282
|
+
};
|
|
283
|
+
//#endregion
|
|
284
|
+
//#region src/entities/teamwork/types/project.types.d.ts
|
|
285
|
+
type TeamworkProject = {
|
|
286
|
+
id: number;
|
|
287
|
+
name: string;
|
|
288
|
+
description: string | null;
|
|
289
|
+
type: string;
|
|
290
|
+
status: string;
|
|
291
|
+
subStatus: string;
|
|
292
|
+
company: TeamworkRelatedMeta;
|
|
293
|
+
tags: TeamworkRelatedMeta[];
|
|
294
|
+
startAt: string | null;
|
|
295
|
+
endAt: string | null;
|
|
296
|
+
category: TeamworkRelatedMeta;
|
|
297
|
+
ownedBy: number;
|
|
298
|
+
update: TeamworkRelatedMeta;
|
|
299
|
+
timeBudget: number | null;
|
|
300
|
+
financialBudget: number | null;
|
|
301
|
+
createdBy: number;
|
|
302
|
+
createdAt: string;
|
|
303
|
+
updatedAt: string;
|
|
304
|
+
updatedBy: number | null;
|
|
305
|
+
completedAt: string | null;
|
|
306
|
+
completedBy: string | null;
|
|
307
|
+
defaultPrivacy: string;
|
|
308
|
+
activePages: TeamworkActivePages;
|
|
309
|
+
directFileUploadsEnabled: boolean;
|
|
310
|
+
harvestTimersEnabled: boolean;
|
|
311
|
+
integrations: object;
|
|
312
|
+
isOnBoardingProject: boolean;
|
|
313
|
+
isSampleProject: boolean;
|
|
314
|
+
logo: string | null;
|
|
315
|
+
logoIcon: string | null;
|
|
316
|
+
logoColor: string | null;
|
|
317
|
+
notifyEveryone: boolean;
|
|
318
|
+
allowNotifyAnyone: boolean;
|
|
319
|
+
notifyCommentIncludeCreator: boolean;
|
|
320
|
+
notifyTaskAssignee: boolean;
|
|
321
|
+
overviewStartPage: string;
|
|
322
|
+
privacyEnabled: boolean;
|
|
323
|
+
projectOwner: TeamworkRelatedMeta;
|
|
324
|
+
replyByEmailEnabled: boolean;
|
|
325
|
+
showAnnouncement: boolean;
|
|
326
|
+
announcement: string;
|
|
327
|
+
skipWeekends: boolean;
|
|
328
|
+
startPage: string;
|
|
329
|
+
tasksStartPage: string;
|
|
330
|
+
customfieldValues: TeamworkRelatedMeta[];
|
|
331
|
+
isBillable: boolean;
|
|
332
|
+
timelogRequiresTask: boolean;
|
|
333
|
+
customFieldValueIds: number[] | null;
|
|
334
|
+
customFieldValues: TeamworkRelatedMeta[];
|
|
335
|
+
companyId: number;
|
|
336
|
+
tagIds: number[] | null;
|
|
337
|
+
startDate: null;
|
|
338
|
+
endDate: null;
|
|
339
|
+
categoryId: number | null;
|
|
340
|
+
ownerId: number;
|
|
341
|
+
updateId: number | null;
|
|
342
|
+
timeBudgetId: number | null;
|
|
343
|
+
financialBudgetId: number | null;
|
|
344
|
+
projectOwnerId: number;
|
|
345
|
+
};
|
|
346
|
+
type TeamworkResponseMetaProjectStats = {
|
|
347
|
+
noDate: number;
|
|
348
|
+
late: number;
|
|
349
|
+
upcoming: number;
|
|
350
|
+
complete: number;
|
|
351
|
+
active: number;
|
|
352
|
+
count: number;
|
|
353
|
+
today: number;
|
|
354
|
+
archived: number;
|
|
355
|
+
starred: number;
|
|
356
|
+
current: number;
|
|
357
|
+
};
|
|
358
|
+
type TeamworkProjectResponseMeta = {
|
|
359
|
+
projectStats?: TeamworkResponseMetaProjectStats;
|
|
360
|
+
};
|
|
361
|
+
type TeamworkProjectsResponse = {
|
|
362
|
+
projects: TeamworkProject[];
|
|
363
|
+
meta: TeamworkResponseMeta & TeamworkProjectResponseMeta & {
|
|
364
|
+
integrations: Record<string, string[]>;
|
|
365
|
+
permissions: Record<string, string[]>;
|
|
366
|
+
};
|
|
367
|
+
included: {
|
|
368
|
+
users: Record<string, TeamworkUserAccount>;
|
|
369
|
+
projectUpdates: Record<string, TeamworkProjectUpdate>;
|
|
370
|
+
companies: Record<string, TeamworkCompany>;
|
|
371
|
+
projectCategories: Record<string, TeamworkProjectCategory>;
|
|
372
|
+
tags: Record<string, TeamworkTag>;
|
|
373
|
+
customfields: Record<string, TeamworkCustomField>;
|
|
374
|
+
customfieldProjects: Record<string, TeamworkProjectCustomField>;
|
|
375
|
+
projectTaskStats: Record<string, TeamworkProjectTaskStat>;
|
|
376
|
+
currencies: Record<string, TeamworkCurrency>;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
type TeamworkProjectResponse = {
|
|
380
|
+
project: TeamworkProject;
|
|
381
|
+
meta: TeamworkResponseMeta & TeamworkProjectResponseMeta & {
|
|
382
|
+
integrations: Record<string, string[]>;
|
|
383
|
+
permissions: Record<string, string[]>;
|
|
384
|
+
};
|
|
385
|
+
included: object;
|
|
386
|
+
};
|
|
387
|
+
//#endregion
|
|
388
|
+
//#region src/entities/teamwork/types/task.types.d.ts
|
|
389
|
+
type TeamworkTaskUserPermissions = {
|
|
390
|
+
canEdit: boolean;
|
|
391
|
+
canComplete: boolean;
|
|
392
|
+
canLogTime: boolean;
|
|
393
|
+
canViewEstTime: boolean;
|
|
394
|
+
canAddSubtasks: boolean;
|
|
395
|
+
};
|
|
396
|
+
type TeamworkTaskCard = {
|
|
397
|
+
id: number;
|
|
398
|
+
status: string;
|
|
399
|
+
archived: boolean;
|
|
400
|
+
archivedAt: string | null;
|
|
401
|
+
archivedBy: TeamworkRelatedMeta | null;
|
|
402
|
+
column: TeamworkRelatedMeta;
|
|
403
|
+
createdBy: TeamworkRelatedMeta;
|
|
404
|
+
createdAt: string;
|
|
405
|
+
deletedBy: TeamworkRelatedMeta | null;
|
|
406
|
+
deletedAt: string | null;
|
|
407
|
+
displayOrder: number;
|
|
408
|
+
updatedAt: string;
|
|
409
|
+
visible: boolean;
|
|
410
|
+
};
|
|
411
|
+
type TeamworkTask = {
|
|
412
|
+
id: number;
|
|
413
|
+
name: string;
|
|
414
|
+
description: string;
|
|
415
|
+
descriptionContentType: string;
|
|
416
|
+
priority: string | null;
|
|
417
|
+
hasDeskTickets: boolean;
|
|
418
|
+
progress: number;
|
|
419
|
+
displayOrder: number;
|
|
420
|
+
decimalDisplayOrder: number;
|
|
421
|
+
crmDealIds: number[] | null;
|
|
422
|
+
tagIds: number[] | null;
|
|
423
|
+
tags: TeamworkRelatedMeta[] | null;
|
|
424
|
+
updatedAt: string | null;
|
|
425
|
+
updatedBy: number | number;
|
|
426
|
+
deletedAt: string | null;
|
|
427
|
+
deletedBy: number | null;
|
|
428
|
+
parentTask: TeamworkRelatedMeta | null;
|
|
429
|
+
card: Record<string, TeamworkTaskCard> | null;
|
|
430
|
+
isPrivate: 1 | 0;
|
|
431
|
+
lockdown: Record<string, TeamworkLockdown> | null;
|
|
432
|
+
status: string;
|
|
433
|
+
tasklist: TeamworkRelatedMeta;
|
|
434
|
+
startDate: string;
|
|
435
|
+
dueDate: string;
|
|
436
|
+
startDateOffset: number | null;
|
|
437
|
+
dueDateOffset: number | null;
|
|
438
|
+
originalDueDate: string;
|
|
439
|
+
estimateMinutes: number;
|
|
440
|
+
accumulatedEstimatedMinutes: number;
|
|
441
|
+
assignees: TeamworkRelatedMeta[];
|
|
442
|
+
commentFollowers: TeamworkRelatedMeta[];
|
|
443
|
+
changeFollowers: TeamworkRelatedMeta[];
|
|
444
|
+
completeFollowers: TeamworkRelatedMeta[];
|
|
445
|
+
attachments: TeamworkRelatedMeta[];
|
|
446
|
+
notify: boolean;
|
|
447
|
+
isArchived: boolean;
|
|
448
|
+
capacities: TeamworkRelatedMeta[] | null;
|
|
449
|
+
proofs: TeamworkRelatedMeta[] | null;
|
|
450
|
+
userPermissions: TeamworkTaskUserPermissions;
|
|
451
|
+
createdBy: number;
|
|
452
|
+
createdAt: string;
|
|
453
|
+
sequence: TeamworkRelatedMeta[] | null;
|
|
454
|
+
dateUpdated: string | null;
|
|
455
|
+
parentTaskId: number;
|
|
456
|
+
tasklistId: number;
|
|
457
|
+
assigneeUserIds: number[] | null;
|
|
458
|
+
assigneeUsers: TeamworkRelatedMeta[];
|
|
459
|
+
assigneeCompanyIds: number[] | null;
|
|
460
|
+
assigneeCompanies: TeamworkRelatedMeta[];
|
|
461
|
+
assigneeTeamIds: number[] | null;
|
|
462
|
+
assigneeTeams: TeamworkRelatedMeta[];
|
|
463
|
+
createdByUserId: number;
|
|
464
|
+
sequenceId: number | null;
|
|
465
|
+
};
|
|
466
|
+
type TeamworkTaskResponseMeta = Record<string, unknown>;
|
|
467
|
+
type TeamworkTasksResponse = {
|
|
468
|
+
tasks: TeamworkTask[];
|
|
469
|
+
meta: TeamworkResponseMeta & TeamworkTaskResponseMeta;
|
|
470
|
+
included: object;
|
|
471
|
+
};
|
|
472
|
+
type TeamworkTaskResponse = {
|
|
473
|
+
task: TeamworkTask;
|
|
474
|
+
meta: TeamworkResponseMeta & TeamworkTaskResponseMeta;
|
|
475
|
+
included: object;
|
|
476
|
+
};
|
|
477
|
+
//#endregion
|
|
478
|
+
//#region src/entities/teamwork/types/tasklist.types.d.ts
|
|
479
|
+
type TeamworkTasklist = {
|
|
480
|
+
id: number;
|
|
481
|
+
name: string;
|
|
482
|
+
description: string;
|
|
483
|
+
displayOrder: number;
|
|
484
|
+
projectId: number;
|
|
485
|
+
project: TeamworkRelatedMeta;
|
|
486
|
+
milestoneId: number | null;
|
|
487
|
+
milestone: null;
|
|
488
|
+
isPinned: boolean;
|
|
489
|
+
isPrivate: boolean;
|
|
490
|
+
lockdownId: number | null;
|
|
491
|
+
status: string;
|
|
492
|
+
defaultTaskId: number;
|
|
493
|
+
defaultTask: TeamworkRelatedMeta;
|
|
494
|
+
isBillable: boolean;
|
|
495
|
+
tasklistBudget: TeamworkRelatedMeta | null;
|
|
496
|
+
createdAt: string;
|
|
497
|
+
updatedAt: string | null;
|
|
498
|
+
icon: string | null;
|
|
499
|
+
};
|
|
500
|
+
type TeamworkTasklistResponseMeta = Record<string, unknown>;
|
|
501
|
+
type TeamworkTasklistsResponse = {
|
|
502
|
+
tasklists: TeamworkTasklist[];
|
|
503
|
+
meta: TeamworkResponseMeta & TeamworkTasklistResponseMeta;
|
|
504
|
+
included: object;
|
|
505
|
+
};
|
|
506
|
+
type TeamworkTasklistResponse = {
|
|
507
|
+
tasklist: TeamworkTasklist;
|
|
508
|
+
meta: TeamworkResponseMeta & TeamworkTasklistResponseMeta;
|
|
509
|
+
included: object;
|
|
510
|
+
};
|
|
511
|
+
//#endregion
|
|
512
|
+
export { QuerySortTeamworkProjectHealth, QueryStrapiSearchTeamworkProjectHealth, TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS, TEAMWORK_PROJECT_HEALTH_SELECT_SORT_OPTIONS, TeamworkActivePages, TeamworkCompany, TeamworkCurrency, TeamworkCustomField, TeamworkLockdown, TeamworkProject, TeamworkProjectCategory, TeamworkProjectCustomField, TeamworkProjectHealthProjectStatus, TeamworkProjectHealthSortKey, TeamworkProjectResponse, TeamworkProjectResponseMeta, TeamworkProjectTaskStat, TeamworkProjectUpdate, TeamworkProjectsResponse, TeamworkRelatedMeta, TeamworkResponseMeta, TeamworkResponseMetaPagination, TeamworkResponseMetaProjectStats, TeamworkTag, TeamworkTagResponse, TeamworkTagResponseMeta, TeamworkTagsResponse, TeamworkTask, TeamworkTaskCard, TeamworkTaskResponse, TeamworkTaskResponseMeta, TeamworkTaskUserPermissions, TeamworkTasklist, TeamworkTasklistResponse, TeamworkTasklistResponseMeta, TeamworkTasklistsResponse, TeamworkTasksResponse, TeamworkUserAccount };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import "../../pagination-owwfYJS6.mjs";
|
|
2
|
+
import "../../regex-BnKGcdS4.mjs";
|
|
3
|
+
import { d as VStringMinMax, i as VSize, l as VStringMax, r as VPage, t as VIntegerNullable } from "../../validators-P5E_3qzc.mjs";
|
|
4
|
+
import * as v from "valibot";
|
|
5
|
+
//#region src/entities/teamwork/constants.ts
|
|
6
|
+
const TEAMWORK_PROJECT_HEALTH_SELECT_SORT_OPTIONS = [{
|
|
7
|
+
label: "Name",
|
|
8
|
+
value: "name"
|
|
9
|
+
}, {
|
|
10
|
+
label: "Health",
|
|
11
|
+
value: "health"
|
|
12
|
+
}];
|
|
13
|
+
const TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS = [
|
|
14
|
+
{
|
|
15
|
+
label: "Active",
|
|
16
|
+
value: "active",
|
|
17
|
+
description: "Projects that are currently active"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: "Current",
|
|
21
|
+
value: "current",
|
|
22
|
+
description: "Projects that are currently ongoing"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: "Late",
|
|
26
|
+
value: "late",
|
|
27
|
+
description: "Projects that are behind schedule"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: "Upcoming",
|
|
31
|
+
value: "upcoming",
|
|
32
|
+
description: "Projects that are scheduled to start soon"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: "Completed",
|
|
36
|
+
value: "completed",
|
|
37
|
+
description: "Projects that have been completed"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: "Archived",
|
|
41
|
+
value: "archived",
|
|
42
|
+
description: "Projects that have been archived"
|
|
43
|
+
}
|
|
44
|
+
];
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/entities/teamwork/fields.ts
|
|
47
|
+
const QuerySortTeamworkProjectHealth = v.optional(v.object({
|
|
48
|
+
key: v.picklist(TEAMWORK_PROJECT_HEALTH_SELECT_SORT_OPTIONS.map((option) => option.value)),
|
|
49
|
+
order: v.picklist(["ASC", "DESC"])
|
|
50
|
+
}));
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/entities/teamwork/query.ts
|
|
53
|
+
const QueryStrapiSearchTeamworkProjectHealth = v.object({
|
|
54
|
+
page: VPage(),
|
|
55
|
+
size: VSize(100),
|
|
56
|
+
lastPeriodDays: VIntegerNullable(),
|
|
57
|
+
searchTerm: v.optional(VStringMax()),
|
|
58
|
+
excludeTagIds: v.optional(v.array(VStringMinMax(1, 255))),
|
|
59
|
+
includeArchivedProjects: v.optional(v.boolean()),
|
|
60
|
+
projectCategoryIds: v.optional(v.array(VStringMinMax(1, 255))),
|
|
61
|
+
projectCompanyIds: v.optional(v.array(VStringMinMax(1, 255))),
|
|
62
|
+
projectTagIds: v.optional(v.array(VStringMinMax(1, 255))),
|
|
63
|
+
projectHealths: v.optional(VStringMax()),
|
|
64
|
+
projectStatuses: v.optional(v.picklist(TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS.map((option) => option.value)), TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS[0].value),
|
|
65
|
+
sort: QuerySortTeamworkProjectHealth
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
export { QuerySortTeamworkProjectHealth, QueryStrapiSearchTeamworkProjectHealth, TEAMWORK_PROJECT_HEALTH_PROJECT_STATUS_OPTIONS, TEAMWORK_PROJECT_HEALTH_SELECT_SORT_OPTIONS };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
|
+
const require_document = require("../../document-BAro2Mrj.cjs");
|
|
4
|
+
const require_media_upload = require("../../media-upload-B6aQYeRM.cjs");
|
|
5
|
+
const require_relations = require("../../relations-CGu18hfT.cjs");
|
|
6
|
+
const require_components_blocks_index = require("../../components/blocks/index.cjs");
|
|
7
|
+
const require_document$1 = require("../../document-DsSaMVGb.cjs");
|
|
8
|
+
let valibot = require("valibot");
|
|
9
|
+
valibot = require_chunk.__toESM(valibot, 1);
|
|
10
|
+
//#region src/entities/trend/constants.ts
|
|
11
|
+
const LIMIT_TREND_PAGINATION_DEFAULT_SIZE = 7;
|
|
12
|
+
const LIMIT_TREND_PAGINATION_MAX_SIZE = 100;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/entities/trend/document.ts
|
|
15
|
+
const TrendDocument = valibot.object({
|
|
16
|
+
...require_document.BaseDocument.entries,
|
|
17
|
+
title: valibot.string(),
|
|
18
|
+
video_embed: valibot.optional(valibot.nullable(require_components_blocks_index.BlockVideoEmbed)),
|
|
19
|
+
caption: valibot.nullable(valibot.string()),
|
|
20
|
+
featured_image: valibot.optional(valibot.nullable(valibot.lazy(() => require_media_upload.MediaUploadDocument))),
|
|
21
|
+
likes: valibot.number(),
|
|
22
|
+
creators: valibot.optional(valibot.nullable(valibot.lazy(() => require_document$1.TeamMemberDocument)))
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/entities/trend/mutation.ts
|
|
26
|
+
const UpdateTrendsLikes = valibot.object({
|
|
27
|
+
documentId: require_relations.SAssociateOneEntity,
|
|
28
|
+
likes: valibot.number()
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.LIMIT_TREND_PAGINATION_DEFAULT_SIZE = LIMIT_TREND_PAGINATION_DEFAULT_SIZE;
|
|
32
|
+
exports.LIMIT_TREND_PAGINATION_MAX_SIZE = LIMIT_TREND_PAGINATION_MAX_SIZE;
|
|
33
|
+
exports.TrendDocument = TrendDocument;
|
|
34
|
+
exports.UpdateTrendsLikes = UpdateTrendsLikes;
|