Skip to content

Commit

Permalink
fix: cleanup type barrel files
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeaturner committed Oct 16, 2024
1 parent 55bbe87 commit b224460
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 345 deletions.
285 changes: 25 additions & 260 deletions client/src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,260 +1,25 @@
import { Author } from "./Author";
import {
Collection,
CollectionResource,
CollectionPrivacyOptions,
CollectionResourceType,
CollectionDirectoryPathObj,
CollectionLocations,
} from "./Collection";
import { Book, BookLinks, ReaderResource, TableOfContents, PageTag, PageDetailsResponse } from "./Book";
import { ControlledInputProps } from "./ControlledInputs";
import {
Organization,
CampusSettingsOpts,
CommonsModule,
CommonsModuleConfig,
CommonsModuleSettings,
} from "./Organization";
import {
GenericKeyTextValueObj,
TimeZoneOption,
MongoBaseDocument,
ConductorBaseResponse,
AtlasSearchHighlight,
_MoveFile,
_MoveFileWithChildren,
CloudflareCaptionData,
License
} from "./Misc";
import { Announcement } from "./Announcement";
import { a11ySectionReviewSchema } from "./a11y";
import {
Project,
ProjectFile,
ProjectFileWProjectData,
ProjectFileWCustomData,
ProjectTag,
ProjectClassification,
ProjectStatus,
CIDDescriptor,
ProjectModule,
ProjectModuleConfig,
ProjectModuleSettings,
AddableProjectTeamMember
} from "./Project";
import { User, Account, AuthorizedApp, UserWCentralID } from "./User";
import { Homework, AdaptAssignment } from "./Homework";
import {
AccountRequest,
AccountRequestPurpose,
InstructorVerifReqStatus,
InstructorVerifReqStatuses,
InstructorVerifReq,
} from "./InstructorVerifReq";
import { CatalogLocation } from "./Catalog";
import { PeerReview } from "./PeerReview";
import { PeerReviewRubric } from "./PeerReviewRubric";
import { BaseDocument } from "./BaseDocument";
import {
LicenseReport,
LicenseReportLicense,
LicenseReportMeta,
LicenseReportText,
} from "./LicenseReport";
import {
OrgEventParticipant,
OrgEvent,
OrgEventParticipantFormResponse,
} from "./OrgEvent";
import {
CustomFormBlockType,
CustomFormHeading,
CustomFormPrompt,
CustomFormPromptType,
CustomFormTextBlock,
CustomFormUIType,
CustomFormElement,
} from "./CustomForm";
import {
CentralIdentityUser,
CentralIdentityOrg,
CentralIdentityService,
CentralIdentitySystem,
CentralIdentityApp,
CentralIdentityVerificationRequest,
CentralIdentityVerificationRequestStatus,
CentralIdentityLicense,
} from "./CentralIdentity";

import {
KBPage,
KBPageEditor,
KBTreeNode,
KBSearchResult,
KBFeaturedPage,
KBFeaturedVideo,
KBFeaturedContent,
} from "./kb";

import {
SupportTicketGuest,
SupportTicket,
SupportTicketMessage,
SupportTicketFeedEntry,
SupportTicketAttachment,
} from "./support";
import {
AssetTag,
AssetTagWithKey,
AssetTagKey,
AssetTagTemplate,
AssetTagFramework,
AssetTagFrameworkWithCampusDefault,
AssetTagTemplateValueType,
AssetTagTemplateValueTypeOptions,
} from "./AssetTagging";

import {
AssetFilters,
AssetFiltersAction,
AuthorFilters,
AuthorFiltersAction,
BookFilters,
BookFiltersAction,
ConductorSearchResponse,
ConductorSearchResponseAuthor,
ConductorSearchResponseFile,
AssetSearchParams,
BookSearchParams,
HomeworkSearchParams,
ProjectFilters,
ProjectFiltersAction,
ProjectSearchParams,
UserSearchParams,
} from "./Search";

import {
HarvestRequest,
} from "./HarvestRequest";

export type {
AddableProjectTeamMember,
AtlasSearchHighlight,
AssetFilters,
AssetFiltersAction,
AssetTag,
AssetTagWithKey,
AssetTagKey,
AssetTagTemplate,
AssetTagTemplateValueType,
AssetTagFramework,
AssetTagFrameworkWithCampusDefault,
Author,
AuthorFilters,
AuthorFiltersAction,
BookFilters,
BookFiltersAction,
CentralIdentityUser,
CentralIdentityOrg,
CentralIdentityService,
CentralIdentitySystem,
CentralIdentityApp,
CentralIdentityVerificationRequest,
CentralIdentityVerificationRequestStatus,
CentralIdentityLicense,
ConductorBaseResponse,
ConductorSearchResponse,
ConductorSearchResponseAuthor,
ConductorSearchResponseFile,
Organization,
CampusSettingsOpts,
Collection,
CollectionResource,
CommonsModule,
CommonsModuleConfig,
CommonsModuleSettings,
ControlledInputProps,
GenericKeyTextValueObj,
HarvestRequest,
TimeZoneOption,
MongoBaseDocument,
CollectionDirectoryPathObj,
Book,
BookLinks,
ReaderResource,
Announcement,
a11ySectionReviewSchema,
PageTag,
PageDetailsResponse,
Project,
ProjectFile,
ProjectFileWProjectData,
ProjectFileWCustomData,
ProjectTag,
CIDDescriptor,
User,
Account,
AuthorizedApp,
UserWCentralID,
Homework,
AdaptAssignment,
AccountRequest,
InstructorVerifReq,
InstructorVerifReqStatus,
CatalogLocation,
PeerReview,
PeerReviewRubric,
ProjectFilters,
ProjectFiltersAction,
ProjectModule,
ProjectModuleConfig,
ProjectModuleSettings,
BaseDocument,
License,
LicenseReport,
LicenseReportLicense,
LicenseReportMeta,
LicenseReportText,
OrgEventParticipantFormResponse,
OrgEventParticipant,
OrgEvent,
CustomFormBlockType,
CustomFormHeading,
CustomFormPrompt,
CustomFormPromptType,
CustomFormTextBlock,
CustomFormUIType,
CustomFormElement,
KBPage,
KBPageEditor,
KBTreeNode,
KBSearchResult,
KBFeaturedPage,
KBFeaturedVideo,
KBFeaturedContent,
SupportTicketGuest,
SupportTicket,
SupportTicketMessage,
SupportTicketFeedEntry,
SupportTicketAttachment,
TableOfContents,
_MoveFile,
_MoveFileWithChildren,
AssetSearchParams,
BookSearchParams,
HomeworkSearchParams,
ProjectSearchParams,
UserSearchParams,
};

export {
AssetTagTemplateValueTypeOptions,
CollectionPrivacyOptions,
CollectionResourceType,
CollectionLocations,
ProjectClassification,
ProjectStatus,
AccountRequestPurpose,
InstructorVerifReqStatuses,
};
export * from "./Announcement";
export * from "./Author";
export * from "./AssetTagging";
export * from "./a11y";
export * from "./BaseDocument";
export * from "./Book";
export * from "./Catalog";
export * from "./CentralIdentity";
export * from "./Collection";
export * from "./ControlledInputs";
export * from "./CustomForm";
export * from "./HarvestRequest";
export * from "./Homework";
export * from "./InstructorVerifReq";
export * from "./kb";
export * from "./LicenseReport";
export * from "./Misc";
export * from "./Organization";
export * from "./OrgEvent";
export * from "./PeerReview";
export * from "./PeerReviewRubric";
export * from "./Project";
export * from "./support";
export * from "./Search";
export * from "./User";
93 changes: 8 additions & 85 deletions server/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,85 +1,8 @@
import { AssetTagWithFramework, AssetTagTemplateWithKey, AssetTagWithFrameworkAndKey } from "./AssetTags";
import { ReaderResource } from "../types/ReaderResource";
import { TimeZoneOption, GenericKeyTextValueObj, License } from "./Misc";
import {
TypedReqUser,
TypedReqWithUser,
TypedReqBody,
TypedReqBodyWithUser,
TypedReqQuery,
TypedReqQueryWithUser,
TypedReqParams,
TypedReqParamsWithUser,
TypedReqParamsAndQuery,
TypedReqParamsAndQueryWithUser,
TypedReqParamsAndBody,
TypedReqParamsAndBodyWithUser,
ZodReqWithUser,
ZodReqWithOptionalUser
} from "./Express";
import { BookSortOption } from "./Book";
import {
CustomFormHeadingType,
CustomFormPromptType,
CustomFormTextBlockType,
} from "./CustomForm";
import {
CentralIdentityUser,
CentralIdentityOrg,
CentralIdentityService,
CentralIdentitySystem,
CentralIdentityApp,
CentralIdentityVerificationRequest,
CentralIdentityVerificationRequestStatus,
CentralIdentityLicense
} from "./CentralIdentity";
import {
CXOneFetchParams,
LibrariesSSMClient,
LibraryTokenPair,
LibraryAPIRequestHeaders,
CXOneGroup,
CXOneUser
} from "./LibrariesClient";

export type {
AssetTagWithFramework,
AssetTagWithFrameworkAndKey,
AssetTagTemplateWithKey,
BookSortOption,
CentralIdentityUser,
CentralIdentityOrg,
CentralIdentityService,
CentralIdentitySystem,
CentralIdentityApp,
CentralIdentityVerificationRequest,
CentralIdentityVerificationRequestStatus,
CentralIdentityLicense,
ReaderResource,
CustomFormHeadingType,
CustomFormPromptType,
CustomFormTextBlockType,
CXOneFetchParams,
CXOneGroup,
CXOneUser,
GenericKeyTextValueObj,
LibrariesSSMClient,
LibraryTokenPair,
LibraryAPIRequestHeaders,
License,
TimeZoneOption,
TypedReqUser,
TypedReqWithUser,
TypedReqBody,
TypedReqBodyWithUser,
TypedReqQuery,
TypedReqQueryWithUser,
TypedReqParams,
TypedReqParamsWithUser,
TypedReqParamsAndQuery,
TypedReqParamsAndQueryWithUser,
TypedReqParamsAndBody,
TypedReqParamsAndBodyWithUser,
ZodReqWithUser,
ZodReqWithOptionalUser
};
export * from "./AssetTags";
export * from "./Book";
export * from "./CentralIdentity";
export * from "./CustomForm";
export * from "./Express";
export * from "./LibrariesClient";
export * from "./Misc";
export * from "./ReaderResource";

0 comments on commit b224460

Please sign in to comment.