@yimingliao/cms 0.0.209 → 0.0.210

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.
Files changed (32) hide show
  1. package/dist/export/client/components/index.js +6 -14
  2. package/dist/export/client/components/resources/index.js +2 -0
  3. package/dist/src/client/interfaces/components/resources/inquiry/inquiry-card.js +68 -0
  4. package/dist/src/client/interfaces/components/resources/inquiry/inquiry-list.js +121 -0
  5. package/dist/src/server/infrastructure/database/inquiry/query/create-post-query-repository.js +23 -1
  6. package/dist/types/export/client/components/resources/index.d.ts +1 -1
  7. package/dist/types/export/client/components/resources/index.d.ts.map +1 -1
  8. package/dist/types/export/index.d.ts +1 -1
  9. package/dist/types/export/index.d.ts.map +1 -1
  10. package/dist/types/src/client/interfaces/components/index.d.ts +0 -1
  11. package/dist/types/src/client/interfaces/components/index.d.ts.map +1 -1
  12. package/dist/types/src/client/interfaces/components/resources/index.d.ts +1 -0
  13. package/dist/types/src/client/interfaces/components/resources/index.d.ts.map +1 -1
  14. package/dist/types/src/client/interfaces/components/resources/inquiry/index.d.ts +3 -0
  15. package/dist/types/src/client/interfaces/components/resources/inquiry/index.d.ts.map +1 -0
  16. package/dist/types/src/client/interfaces/components/resources/inquiry/inquiry-card.d.ts +15 -0
  17. package/dist/types/src/client/interfaces/components/resources/inquiry/inquiry-card.d.ts.map +1 -0
  18. package/dist/types/src/client/interfaces/components/resources/inquiry/inquiry-list.d.ts +22 -0
  19. package/dist/types/src/client/interfaces/components/resources/inquiry/inquiry-list.d.ts.map +1 -0
  20. package/dist/types/src/domain/index.d.ts +1 -1
  21. package/dist/types/src/domain/index.d.ts.map +1 -1
  22. package/dist/types/src/domain/resources/index.d.ts +1 -1
  23. package/dist/types/src/domain/resources/index.d.ts.map +1 -1
  24. package/dist/types/src/domain/resources/inquiry/fields.d.ts +3 -0
  25. package/dist/types/src/domain/resources/inquiry/fields.d.ts.map +1 -0
  26. package/dist/types/src/domain/resources/inquiry/index.d.ts +1 -0
  27. package/dist/types/src/domain/resources/inquiry/index.d.ts.map +1 -1
  28. package/dist/types/src/server/infrastructure/database/inquiry/query/create-post-query-repository.d.ts +1 -1
  29. package/dist/types/src/server/infrastructure/database/inquiry/query/create-post-query-repository.d.ts.map +1 -1
  30. package/dist/types/src/server/infrastructure/database/inquiry/query/types.d.ts +1 -0
  31. package/dist/types/src/server/infrastructure/database/inquiry/query/types.d.ts.map +1 -1
  32. package/package.json +1 -1
@@ -37,26 +37,22 @@ export { PasswordInput } from '../../../src/client/interfaces/components/ui/inpu
37
37
  export { SearchInput } from '../../../src/client/interfaces/components/ui/inputs/search-input.js';
38
38
  export { Option, Select } from '../../../src/client/interfaces/components/ui/inputs/select.js';
39
39
  export { Textarea } from '../../../src/client/interfaces/components/ui/inputs/textarea.js';
40
+ export { createNavbar } from '../../../src/client/interfaces/components/ui/layouts/navbar/navbar.js';
41
+ export { createI18nSelector } from '../../../src/client/interfaces/components/ui/layouts/navbar/i18n-selector.js';
42
+ export { createSignOutButton } from '../../../src/client/interfaces/components/ui/layouts/navbar/sign-out-button.js';
43
+ export { NavMain } from '../../../src/client/interfaces/components/ui/layouts/sidebar/nav-main.js';
40
44
  import 'react/jsx-runtime';
41
- import 'intor/react';
42
- import 'lucide-react';
43
- import '../../../src/constants/paths/auth.js';
44
- import '../../../src/constants/paths/main.js';
45
- import '../../../src/constants/paths/resources.js';
46
- import '../../../src/constants/redirect-paths.js';
47
- import '../../../src/domain/resources/admin/constants.js';
48
- import 'mime-types';
45
+ import '@radix-ui/react-avatar';
49
46
  import 'react';
50
47
  import 'ua-parser-js';
51
48
  import 'clsx';
52
49
  import 'tailwind-merge';
53
50
  import 'next/navigation';
54
- import 'next/link';
55
- import '@radix-ui/react-avatar';
56
51
  import '../../../src/client/interfaces/components/shadcn/badge.js';
57
52
  import '../../../src/client/interfaces/components/shadcn/button.js';
58
53
  import '@radix-ui/react-collapsible';
59
54
  import '@radix-ui/react-dialog';
55
+ import 'lucide-react';
60
56
  import '@radix-ui/react-dropdown-menu';
61
57
  import '../../../src/client/interfaces/components/shadcn/input-group.js';
62
58
  import '../../../src/client/interfaces/components/shadcn/item.js';
@@ -68,10 +64,6 @@ import 'next-themes';
68
64
  import 'sonner';
69
65
  import '@radix-ui/react-tabs';
70
66
  import '@radix-ui/react-tooltip';
71
- export { createNavbar } from '../../../src/client/interfaces/components/ui/layouts/navbar/navbar.js';
72
- export { createI18nSelector } from '../../../src/client/interfaces/components/ui/layouts/navbar/i18n-selector.js';
73
- export { createSignOutButton } from '../../../src/client/interfaces/components/ui/layouts/navbar/sign-out-button.js';
74
- export { NavMain } from '../../../src/client/interfaces/components/ui/layouts/sidebar/nav-main.js';
75
67
  export { ContentContainer } from '../../../src/client/interfaces/components/ui/layouts/content-container.js';
76
68
  export { createI18nTabsWrapper } from '../../../src/client/interfaces/components/ui/i18n/i18n-tabs-wrapper.js';
77
69
  export { createI18nDisplay } from '../../../src/client/interfaces/components/ui/i18n/display/i18n-display.js';
@@ -25,3 +25,5 @@ export { createTopicList } from '../../../../src/client/interfaces/components/re
25
25
  export { TagCard } from '../../../../src/client/interfaces/components/resources/tag/tag-card.js';
26
26
  export { createTagList } from '../../../../src/client/interfaces/components/resources/tag/tag-list.js';
27
27
  export { createTagRelationsSection } from '../../../../src/client/interfaces/components/resources/tag/tag-relations-section.js';
28
+ export { InquiryCard } from '../../../../src/client/interfaces/components/resources/inquiry/inquiry-card.js';
29
+ export { createInquiryList } from '../../../../src/client/interfaces/components/resources/inquiry/inquiry-list.js';
@@ -0,0 +1,68 @@
1
+ "use client";
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { PATHS } from '../../../../../constants/paths/index.js';
4
+ import '../../../../../constants/redirect-paths.js';
5
+ import 'react';
6
+ import 'ua-parser-js';
7
+ import { cn } from '../../../../applications/shadcn/utils.js';
8
+ import 'next/navigation';
9
+ import 'intor/react';
10
+ import 'lucide-react';
11
+ import '@radix-ui/react-avatar';
12
+ import '../../shadcn/badge.js';
13
+ import '../../shadcn/button.js';
14
+ import '@radix-ui/react-collapsible';
15
+ import '@radix-ui/react-dialog';
16
+ import '@radix-ui/react-dropdown-menu';
17
+ import '../../shadcn/input-group.js';
18
+ import '../../shadcn/item.js';
19
+ import '@radix-ui/react-label';
20
+ import '@radix-ui/react-select';
21
+ import '@radix-ui/react-separator';
22
+ import '../../shadcn/sidebar.js';
23
+ import 'next-themes';
24
+ import 'sonner';
25
+ import '@radix-ui/react-tabs';
26
+ import '@radix-ui/react-tooltip';
27
+ import { ResourceCard } from '../../ui/cards/resource-card/resource-card.js';
28
+ import 'next/link';
29
+ import 'mime-types';
30
+ import '../../../../../domain/resources/admin/constants.js';
31
+ import 'next/image';
32
+
33
+ function InquiryCard({
34
+ inquiry,
35
+ headFields = ["text1"],
36
+ headComponent,
37
+ bodyFields = ["text2", "text3", "text4"],
38
+ bodyComponent,
39
+ // link
40
+ openNewTab = false,
41
+ anchorProps,
42
+ // base
43
+ className = ""
44
+ }) {
45
+ return /* @__PURE__ */ jsx(
46
+ ResourceCard,
47
+ {
48
+ className: cn(className, "w-72!"),
49
+ href: `${PATHS.main.inquiry.path}/${inquiry.id}`,
50
+ openNewTab,
51
+ anchorProps,
52
+ cardStatusBarProps: {
53
+ children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: headFields.map((key) => {
54
+ return /* @__PURE__ */ jsx("div", { children: headComponent(inquiry, key) }, key);
55
+ }) })
56
+ },
57
+ cardTextContentProps: {
58
+ children: /* @__PURE__ */ jsx("div", { className: "text-sm", children: bodyFields.map((key) => {
59
+ return /* @__PURE__ */ jsx("div", { children: bodyComponent(inquiry, key) }, key);
60
+ }) }),
61
+ hasTitleFields: false,
62
+ hasChildrenFields: true
63
+ }
64
+ }
65
+ );
66
+ }
67
+
68
+ export { InquiryCard };
@@ -0,0 +1,121 @@
1
+ "use client";
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { useState, useMemo, useEffect } from 'react';
4
+ import 'mime-types';
5
+ import { debounce } from '../../../../../shared/utils/debounce.js';
6
+ import { ensureArray } from '../../../../../shared/utils/ensure-array.js';
7
+ import 'ua-parser-js';
8
+ import { cn } from '../../../../applications/shadcn/utils.js';
9
+ import 'next/navigation';
10
+ import 'intor/react';
11
+ import 'lucide-react';
12
+ import '@radix-ui/react-avatar';
13
+ import '../../shadcn/badge.js';
14
+ import '../../shadcn/button.js';
15
+ import '@radix-ui/react-collapsible';
16
+ import '@radix-ui/react-dialog';
17
+ import '@radix-ui/react-dropdown-menu';
18
+ import '../../shadcn/input-group.js';
19
+ import '../../shadcn/item.js';
20
+ import '@radix-ui/react-label';
21
+ import '@radix-ui/react-select';
22
+ import '@radix-ui/react-separator';
23
+ import '../../shadcn/sidebar.js';
24
+ import 'next-themes';
25
+ import 'sonner';
26
+ import '@radix-ui/react-tabs';
27
+ import '@radix-ui/react-tooltip';
28
+ import { ListCardsContainer } from '../../ui/blocks/list-cards-container/list-cards-container.js';
29
+ import 'next/link';
30
+ import '../../../../../constants/paths/auth.js';
31
+ import '../../../../../constants/paths/main.js';
32
+ import '../../../../../constants/paths/resources.js';
33
+ import '../../../../../constants/redirect-paths.js';
34
+ import '../../../../../domain/resources/admin/constants.js';
35
+ import 'next/image';
36
+ import { Tick } from '../../ui/features/tick.js';
37
+ import { InquiryCard } from './inquiry-card.js';
38
+
39
+ function createInquiryList({
40
+ useQuery,
41
+ inquiryFindListCardsAction
42
+ }) {
43
+ return function InquiryList({
44
+ setItemStates,
45
+ // Link Props
46
+ openNewTab,
47
+ // Pick Mode
48
+ pickedItems,
49
+ handleClick,
50
+ // card
51
+ headComponent,
52
+ headFields,
53
+ bodyComponent,
54
+ bodyFields
55
+ }) {
56
+ const [page, setPage] = useState(1);
57
+ const [pageSize, setPageSize] = useState(20);
58
+ const [searchString, setSearchString] = useState("");
59
+ const debouncedSetSearchString = useMemo(
60
+ () => debounce((v) => setSearchString(v), 300),
61
+ []
62
+ );
63
+ const { data, isFetching } = useQuery(
64
+ () => inquiryFindListCardsAction({ page, pageSize }),
65
+ [page, pageSize]
66
+ );
67
+ const inquiries = useMemo(() => ensureArray(data?.items), [data?.items]);
68
+ useEffect(() => {
69
+ setItemStates?.({
70
+ items: inquiries,
71
+ count: data?.total ?? 0,
72
+ isFetching
73
+ });
74
+ }, [inquiries, data?.total, isFetching, setItemStates]);
75
+ return /* @__PURE__ */ jsx(
76
+ ListCardsContainer,
77
+ {
78
+ page,
79
+ setPage,
80
+ pageSize,
81
+ setPageSize,
82
+ total: data?.total ?? 0,
83
+ searchString,
84
+ setSearchString: debouncedSetSearchString,
85
+ isFetching,
86
+ children: inquiries.map((inquiry) => {
87
+ const isPicked = pickedItems?.some((item) => item.id === inquiry.id);
88
+ return /* @__PURE__ */ jsxs("div", { className: "relative w-fit", children: [
89
+ /* @__PURE__ */ jsx(
90
+ InquiryCard,
91
+ {
92
+ inquiry,
93
+ headFields,
94
+ headComponent,
95
+ bodyFields,
96
+ bodyComponent,
97
+ openNewTab: openNewTab ?? false,
98
+ className: cn(pickedItems && !isPicked && "opacity-50"),
99
+ anchorProps: handleClick && {
100
+ onClick: (e) => {
101
+ e.preventDefault();
102
+ handleClick(inquiry);
103
+ }
104
+ }
105
+ }
106
+ ),
107
+ pickedItems && /* @__PURE__ */ jsx(
108
+ Tick,
109
+ {
110
+ isPicked: isPicked ?? false,
111
+ className: "absolute top-2 right-2"
112
+ }
113
+ )
114
+ ] }, inquiry.id);
115
+ })
116
+ }
117
+ );
118
+ };
119
+ }
120
+
121
+ export { createInquiryList };
@@ -5,16 +5,38 @@ function createInquiryQueryRepository(prisma) {
5
5
  return prisma.inquiry.findUnique({ where: { id } });
6
6
  }
7
7
  async function findListCards({
8
+ // search
9
+ searchString,
8
10
  // pagination
9
11
  page,
10
12
  pageSize
11
13
  }) {
14
+ const SEARCH_FIELDS = [
15
+ "text1",
16
+ "text2",
17
+ "text3",
18
+ "text4",
19
+ "text5",
20
+ "text6",
21
+ "text7",
22
+ "text8",
23
+ "text9",
24
+ "text10"
25
+ ];
26
+ const where = searchString ? {
27
+ OR: SEARCH_FIELDS.map((field) => ({
28
+ [field]: { contains: searchString, mode: "insensitive" }
29
+ }))
30
+ } : void 0;
12
31
  const [items, total] = await prisma.$transaction([
13
32
  prisma.inquiry.findMany({
33
+ ...where ? { where } : {},
14
34
  orderBy: [{ createdAt: "desc" }, { id: "asc" }],
15
35
  ...createPagination(page, pageSize)
16
36
  }),
17
- prisma.inquiry.count()
37
+ prisma.inquiry.count({
38
+ ...where ? { where } : {}
39
+ })
18
40
  ]);
19
41
  return { items, total };
20
42
  }
@@ -1,2 +1,2 @@
1
- export { AdminCard, createAdminList, createAdminRelationsSection, ActiveSessionsBadge, AdminRefreshTokenCard, createFileCard, createFileList, createFileRelationsSection, FolderCard, createFolderList, FolderFullPath, createFileManagerList, createFolderRelationsSection, createPostCard, createPostList, createPostRelationsSection, PostTypeGate, CategoryCard, createCategoryList, createCategoryRelationsSection, TopicCard, createTopicList, TagCard, createTagList, createTagRelationsSection, } from "../../../../src/client/interfaces/components/resources";
1
+ export { AdminCard, createAdminList, createAdminRelationsSection, ActiveSessionsBadge, AdminRefreshTokenCard, createFileCard, createFileList, createFileRelationsSection, FolderCard, createFolderList, FolderFullPath, createFileManagerList, createFolderRelationsSection, createPostCard, createPostList, createPostRelationsSection, PostTypeGate, CategoryCard, createCategoryList, createCategoryRelationsSection, TopicCard, createTopicList, TagCard, createTagList, createTagRelationsSection, InquiryCard, createInquiryList, } from "../../../../src/client/interfaces/components/resources";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../export/client/components/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EACT,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EAErB,cAAc,EACd,cAAc,EACd,0BAA0B,EAE1B,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,4BAA4B,EAE5B,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,YAAY,EAEZ,YAAY,EACZ,kBAAkB,EAClB,8BAA8B,EAE9B,SAAS,EACT,eAAe,EAEf,OAAO,EACP,aAAa,EACb,yBAAyB,GAC1B,MAAM,wDAAwD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../export/client/components/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EACT,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EAErB,cAAc,EACd,cAAc,EACd,0BAA0B,EAE1B,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,4BAA4B,EAE5B,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,YAAY,EAEZ,YAAY,EACZ,kBAAkB,EAClB,8BAA8B,EAE9B,SAAS,EACT,eAAe,EAEf,OAAO,EACP,aAAa,EACb,yBAAyB,EAEzB,WAAW,EACX,iBAAiB,GAClB,MAAM,wDAAwD,CAAC"}
@@ -1,4 +1,4 @@
1
- export { type MultiItems, type SingleItem, type BaseTranslation, type Translation, ADMIN_ROLES, type AdminRole, type Admin, type AdminTranslation, type AdminFull, type AdminCard, type AdminSafe, ADMIN_ROLE_ARRAY, ADMIN_ROLE_I18N_MAP, type AdminRefreshToken, type DeviceInfo, FILE_TYPES, type FileType, type File, type FileTranslation, type FileFull, type FileCard, isFileLocked, type Folder, type FolderFull, isFolderLocked, normalizeFolderKey, fileManagerDoubleClick, POST_TYPES, type PostType, type Post, type PostTranslation, type PostFull, type PostListCard, type ExternalLink, type Faq, type TocItem, type SeoMetadata, type Alternate, type Config, type ConfigTranslation, type Inquiry, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, } from "../src/domain";
1
+ export { type MultiItems, type SingleItem, type BaseTranslation, type Translation, ADMIN_ROLES, type AdminRole, type Admin, type AdminTranslation, type AdminFull, type AdminCard, type AdminSafe, ADMIN_ROLE_ARRAY, ADMIN_ROLE_I18N_MAP, type AdminRefreshToken, type DeviceInfo, FILE_TYPES, type FileType, type File, type FileTranslation, type FileFull, type FileCard, isFileLocked, type Folder, type FolderFull, isFolderLocked, normalizeFolderKey, fileManagerDoubleClick, POST_TYPES, type PostType, type Post, type PostTranslation, type PostFull, type PostListCard, type ExternalLink, type Faq, type TocItem, type SeoMetadata, type Alternate, type Config, type ConfigTranslation, type Inquiry, type InquiryFields, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, } from "../src/domain";
2
2
  export { CACHE_KEYS, KEYS, PATHS, PROTECTED_PATHS, LOGGED_IN_SKIP_PATHS, NEW_TAB_REL, NEW_TAB_TARGET, } from "../src/constants";
3
3
  export { mimeToExtension, classifyFileType, getMediaInfo, formatFileSize, type BlobFile, result, type SuccessResultParams, type ErrorResultParams, type Result, type SuccessResult, type ErrorResult, type ErrorDetail, OG_TYPE_ARRAY, type OgType, TWITTER_CARD_ARRAY, type TwitterCard, createBuildWebsiteMetadata, createBuildArticleMetadata, type SeoMetadataDefaults, serializeJsonLd, toIsoTime, findTranslation, createBuildTranslations, datetimeToDb, datetimeToUi, jsonArrayToDb, jsonArrayToUi, type UIStates, type FormData, type FormFieldController, debounce, ensureArray, formatDateTime, joinUrl, DO_NOT_FETCH_KEY, type ListItemsState, SIZE, type SizeUnit, } from "../src/shared";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../export/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,eAAe,EACpB,KAAK,WAAW,EAEhB,WAAW,EACX,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,gBAAgB,EAChB,mBAAmB,EAEnB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEf,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,YAAY,EAEZ,KAAK,MAAM,EACX,KAAK,UAAU,EACf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EAEtB,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,MAAM,EACX,KAAK,iBAAiB,EAEtB,KAAK,OAAO,EAEZ,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,eAAe,CAAC;AAKvB,OAAO,EACL,UAAU,EACV,IAAI,EACJ,KAAK,EACL,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,cAAc,GACf,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EAEL,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,KAAK,QAAQ,EAGb,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,WAAW,EAGhB,aAAa,EACb,KAAK,MAAM,EACX,kBAAkB,EAClB,KAAK,WAAW,EAChB,0BAA0B,EAC1B,0BAA0B,EAC1B,KAAK,mBAAmB,EACxB,eAAe,EACf,SAAS,EAGT,eAAe,EACf,uBAAuB,EAGvB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,mBAAmB,EAGxB,QAAQ,EACR,WAAW,EACX,cAAc,EACd,OAAO,EAGP,gBAAgB,EAChB,KAAK,cAAc,EAGnB,IAAI,EACJ,KAAK,QAAQ,GACd,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../export/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,eAAe,EACpB,KAAK,WAAW,EAEhB,WAAW,EACX,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,gBAAgB,EAChB,mBAAmB,EAEnB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEf,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,YAAY,EAEZ,KAAK,MAAM,EACX,KAAK,UAAU,EACf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EAEtB,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,MAAM,EACX,KAAK,iBAAiB,EAEtB,KAAK,OAAO,EACZ,KAAK,aAAa,EAElB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,eAAe,CAAC;AAKvB,OAAO,EACL,UAAU,EACV,IAAI,EACJ,KAAK,EACL,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,cAAc,GACf,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EAEL,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,KAAK,QAAQ,EAGb,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,WAAW,EAGhB,aAAa,EACb,KAAK,MAAM,EACX,kBAAkB,EAClB,KAAK,WAAW,EAChB,0BAA0B,EAC1B,0BAA0B,EAC1B,KAAK,mBAAmB,EACxB,eAAe,EACf,SAAS,EAGT,eAAe,EACf,uBAAuB,EAGvB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,mBAAmB,EAGxB,QAAQ,EACR,WAAW,EACX,cAAc,EACd,OAAO,EAGP,gBAAgB,EAChB,KAAK,cAAc,EAGnB,IAAI,EACJ,KAAK,QAAQ,GACd,MAAM,eAAe,CAAC"}
@@ -1,4 +1,3 @@
1
1
  export { createAdminInitializer } from "./admin-initializer";
2
2
  export { PageHeader, ListCardsContainer, Button, type ButtonProps, ReturnButton, ActionButtonsCard, ResourceCard, FeatureCard, ArrayList, Badge, HtmlDisplay, ObjectArrayList, Accordion, AccordionContainer, createFileInfo, createFilePicker, createFilePreview, createFilePreviewList, createUploader, ExternalLink, PickModal, createSmartImage, Tick, Form, Field, FieldBody, FieldsContainer, MainFields, SideFields, IndexField, SlugField, ControlFields, type ControlMeta, ArrayInput, Checkbox, Input, type InputProps, PasswordInput, SearchInput, Select, Option, Textarea, } from "./ui";
3
- export { createFileCard, createFileList } from "./resources";
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/client/interfaces/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAEL,UAAU,EACV,kBAAkB,EAElB,MAAM,EACN,KAAK,WAAW,EAChB,YAAY,EAEZ,iBAAiB,EACjB,YAAY,EACZ,WAAW,EAEX,SAAS,EACT,KAAK,EACL,WAAW,EACX,eAAe,EAEf,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,IAAI,EAEJ,IAAI,EACJ,KAAK,EACL,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,KAAK,WAAW,EAEhB,UAAU,EACV,QAAQ,EACR,KAAK,EACL,KAAK,UAAU,EACf,aAAa,EACb,WAAW,EACX,MAAM,EACN,MAAM,EACN,QAAQ,GACT,MAAM,MAAM,CAAC;AAEd,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/client/interfaces/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAEL,UAAU,EACV,kBAAkB,EAElB,MAAM,EACN,KAAK,WAAW,EAChB,YAAY,EAEZ,iBAAiB,EACjB,YAAY,EACZ,WAAW,EAEX,SAAS,EACT,KAAK,EACL,WAAW,EACX,eAAe,EAEf,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,IAAI,EAEJ,IAAI,EACJ,KAAK,EACL,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,KAAK,WAAW,EAEhB,UAAU,EACV,QAAQ,EACR,KAAK,EACL,KAAK,UAAU,EACf,aAAa,EACb,WAAW,EACX,MAAM,EACN,MAAM,EACN,QAAQ,GACT,MAAM,MAAM,CAAC"}
@@ -5,4 +5,5 @@ export { createPostCard, createPostList, createPostRelationsSection, PostTypeGat
5
5
  export { CategoryCard, createCategoryList, createCategoryRelationsSection, } from "./category";
6
6
  export { TopicCard, createTopicList } from "./topic";
7
7
  export { TagCard, createTagList, createTagRelationsSection } from "./tag";
8
+ export { InquiryCard, createInquiryList } from "./inquiry";
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/interfaces/components/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,GAC3B,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,YAAY,GACb,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,8BAA8B,GAC/B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/interfaces/components/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,GAC3B,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,YAAY,GACb,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,8BAA8B,GAC/B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { InquiryCard } from "./inquiry-card";
2
+ export { createInquiryList } from "./inquiry-list";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/inquiry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { Inquiry, InquiryFields } from "../../../../../domain";
2
+ import type { ComponentProps, ReactNode } from "react";
3
+ interface InquiryCardProps {
4
+ inquiry: Inquiry;
5
+ className?: string;
6
+ openNewTab?: boolean;
7
+ anchorProps?: ComponentProps<"a"> | undefined;
8
+ headFields?: InquiryFields[] | undefined;
9
+ headComponent: (inquiry: Inquiry, key: InquiryFields) => ReactNode;
10
+ bodyFields?: InquiryFields[] | undefined;
11
+ bodyComponent: (inquiry: Inquiry, key: InquiryFields) => ReactNode;
12
+ }
13
+ export declare function InquiryCard({ inquiry, headFields, headComponent, bodyFields, bodyComponent, openNewTab, anchorProps, className, }: InquiryCardProps): import("react/jsx-runtime").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=inquiry-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inquiry-card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/inquiry/inquiry-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvD,UAAU,gBAAgB;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;IAC9C,UAAU,CAAC,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IACzC,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,aAAa,KAAK,SAAS,CAAC;IACnE,UAAU,CAAC,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IACzC,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,aAAa,KAAK,SAAS,CAAC;CACpE;AAED,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,UAAsB,EACtB,aAAa,EACb,UAAwC,EACxC,aAAa,EAEb,UAAkB,EAClB,WAAW,EAEX,SAAc,GACf,EAAE,gBAAgB,2CA6BlB"}
@@ -0,0 +1,22 @@
1
+ import type { Inquiry, InquiryFields, MultiItems, SingleItem } from "../../../../../domain";
2
+ import type { createInquiryFindListCardsAction } from "../../../../../server";
3
+ import type { createUseQuery } from "../../../../infrastructure";
4
+ import type { Dispatch, ReactNode, SetStateAction } from "react";
5
+ import { type ListItemsState } from "../../../../../shared";
6
+ interface InquiryListProps {
7
+ setItemStates?: Dispatch<SetStateAction<ListItemsState<Inquiry>>>;
8
+ InquiryIds?: string[];
9
+ openNewTab?: boolean;
10
+ pickedItems?: MultiItems;
11
+ handleClick?: (item: SingleItem) => void;
12
+ headFields?: InquiryFields[];
13
+ headComponent: (inquiry: Inquiry, key: InquiryFields) => ReactNode;
14
+ bodyFields?: InquiryFields[];
15
+ bodyComponent: (inquiry: Inquiry, key: InquiryFields) => ReactNode;
16
+ }
17
+ export declare function createInquiryList({ useQuery, inquiryFindListCardsAction, }: {
18
+ useQuery: ReturnType<typeof createUseQuery>;
19
+ inquiryFindListCardsAction: ReturnType<typeof createInquiryFindListCardsAction>;
20
+ }): ({ setItemStates, openNewTab, pickedItems, handleClick, headComponent, headFields, bodyComponent, bodyFields, }: InquiryListProps) => import("react/jsx-runtime").JSX.Element;
21
+ export {};
22
+ //# sourceMappingURL=inquiry-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inquiry-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/inquiry/inquiry-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,OAAO,EACP,aAAa,EACb,UAAU,EACV,UAAU,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAK/B,UAAU,gBAAgB;IACxB,aAAa,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAClE,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACzC,UAAU,CAAC,EAAE,aAAa,EAAE,CAAC;IAC7B,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,aAAa,KAAK,SAAS,CAAC;IACnE,UAAU,CAAC,EAAE,aAAa,EAAE,CAAC;IAC7B,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,aAAa,KAAK,SAAS,CAAC;CACpE;AAED,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,0BAA0B,GAC3B,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,0BAA0B,EAAE,UAAU,CACpC,OAAO,gCAAgC,CACxC,CAAC;CACH,IAC6B,gHAYzB,gBAAgB,6CA6EpB"}
@@ -1,4 +1,4 @@
1
1
  export type { MultiItems, SingleItem } from "./item";
2
2
  export type { BaseTranslation, Translation } from "./translation";
3
- export { ADMIN_ROLES, type AdminRole, type Admin, type AdminTranslation, type AdminFull, type AdminCard, type AdminSafe, ADMIN_ROLE_ARRAY, ADMIN_ROLE_I18N_MAP, type AdminRefreshToken, type DeviceInfo, FILE_TYPES, type FileType, type File, type FileTranslation, type FileFull, type FileCard, isFileLocked, type Folder, type FolderFull, isFolderLocked, normalizeFolderKey, fileManagerDoubleClick, POST_TYPES, type PostType, type Post, type PostTranslation, type PostFull, type PostListCard, type ExternalLink, type Faq, type TocItem, type SeoMetadata, type Alternate, type Config, type ConfigTranslation, type Inquiry, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, } from "./resources";
3
+ export { ADMIN_ROLES, type AdminRole, type Admin, type AdminTranslation, type AdminFull, type AdminCard, type AdminSafe, ADMIN_ROLE_ARRAY, ADMIN_ROLE_I18N_MAP, type AdminRefreshToken, type DeviceInfo, FILE_TYPES, type FileType, type File, type FileTranslation, type FileFull, type FileCard, isFileLocked, type Folder, type FolderFull, isFolderLocked, normalizeFolderKey, fileManagerDoubleClick, POST_TYPES, type PostType, type Post, type PostTranslation, type PostFull, type PostListCard, type ExternalLink, type Faq, type TocItem, type SeoMetadata, type Alternate, type Config, type ConfigTranslation, type Inquiry, type InquiryFields, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, } from "./resources";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAKrD,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAKlE,OAAO,EAEL,WAAW,EACX,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,gBAAgB,EAChB,mBAAmB,EAEnB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEf,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,YAAY,EAEZ,KAAK,MAAM,EACX,KAAK,UAAU,EACf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EAEtB,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,MAAM,EACX,KAAK,iBAAiB,EAEtB,KAAK,OAAO,EAEZ,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAKrD,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAKlE,OAAO,EAEL,WAAW,EACX,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,gBAAgB,EAChB,mBAAmB,EAEnB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEf,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,YAAY,EAEZ,KAAK,MAAM,EACX,KAAK,UAAU,EACf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EAEtB,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,MAAM,EACX,KAAK,iBAAiB,EAEtB,KAAK,OAAO,EACZ,KAAK,aAAa,EAElB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,aAAa,CAAC"}
@@ -5,6 +5,6 @@ export { type Folder, type FolderFull, isFolderLocked, normalizeFolderKey, fileM
5
5
  export { POST_TYPES, type PostType, type ExternalLink, type Faq, type TocItem, type Post, type PostTranslation, type PostFull, type PostListCard, } from "./post";
6
6
  export type { Alternate, SeoMetadata, } from "./seo-metadata";
7
7
  export type { Config, ConfigTranslation } from "./config";
8
- export type { Inquiry } from "./inquiry";
8
+ export type { Inquiry, InquiryFields } from "./inquiry";
9
9
  export { ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, } from "./constants";
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/domain/resources/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,EACX,KAAK,SAAS,EAEd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EAEd,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAGjB,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAG3E,OAAO,EAEL,UAAU,EACV,KAAK,QAAQ,EAEb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EAEb,YAAY,GACb,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACL,KAAK,MAAM,EACX,KAAK,UAAU,EAEf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAEL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,GAClB,MAAM,QAAQ,CAAC;AAGhB,YAAY,EAEV,SAAS,EAET,WAAW,GACZ,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG1D,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC,OAAO,EAEL,WAAW,EACX,cAAc,EACd,gBAAgB,EAEhB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/domain/resources/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,EACX,KAAK,SAAS,EAEd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EAEd,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAGjB,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAG3E,OAAO,EAEL,UAAU,EACV,KAAK,QAAQ,EAEb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EAEb,YAAY,GACb,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACL,KAAK,MAAM,EACX,KAAK,UAAU,EAEf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAEL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,GAClB,MAAM,QAAQ,CAAC;AAGhB,YAAY,EAEV,SAAS,EAET,WAAW,GACZ,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG1D,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAKxD,OAAO,EAEL,WAAW,EACX,cAAc,EACd,gBAAgB,EAEhB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Inquiry } from "./base";
2
+ export type InquiryFields = Exclude<keyof Inquiry, "id" | "createdAt" | "updatedAt">;
3
+ //# sourceMappingURL=fields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/inquiry/fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,OAAO,CACjC,MAAM,OAAO,EACb,IAAI,GAAG,WAAW,GAAG,WAAW,CACjC,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export type { Inquiry } from "./base";
2
+ export type { InquiryFields } from "./fields";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/inquiry/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/inquiry/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC"}
@@ -3,7 +3,7 @@ import type { PrismaClient } from "../../../../../../prisma/generated/client";
3
3
  import type { Inquiry } from "../../../../../domain";
4
4
  export declare function createInquiryQueryRepository(prisma: PrismaClient): {
5
5
  find: ({ id }: FindParams) => Promise<Inquiry | null>;
6
- findListCards: ({ page, pageSize, }: FindListCardsParams) => Promise<{
6
+ findListCards: ({ searchString, page, pageSize, }: FindListCardsParams) => Promise<{
7
7
  items: Inquiry[];
8
8
  total: number;
9
9
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"create-post-query-repository.d.ts","sourceRoot":"","sources":["../../../../../../../../src/server/infrastructure/database/inquiry/query/create-post-query-repository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGrD,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,YAAY;mBAInC,UAAU,KAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;yCAW7D,mBAAmB,KAAG,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;EAmBtE"}
1
+ {"version":3,"file":"create-post-query-repository.d.ts","sourceRoot":"","sources":["../../../../../../../../src/server/infrastructure/database/inquiry/query/create-post-query-repository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,KAAK,EAAE,OAAO,EAAiB,MAAM,uBAAuB,CAAC;AAGpE,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,YAAY;mBAInC,UAAU,KAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;uDAa7D,mBAAmB,KAAG,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;EA2CtE"}
@@ -2,6 +2,7 @@ export interface FindParams {
2
2
  id: string;
3
3
  }
4
4
  export interface FindListCardsParams {
5
+ searchString?: string;
5
6
  page?: number;
6
7
  pageSize?: number;
7
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/server/infrastructure/database/inquiry/query/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,mBAAmB;IAElC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/server/infrastructure/database/inquiry/query/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,mBAAmB;IAElC,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yimingliao/cms",
3
- "version": "0.0.209",
3
+ "version": "0.0.210",
4
4
  "author": "Yiming Liao",
5
5
  "license": "MIT",
6
6
  "type": "module",