-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #398 from Enterprise-CMCS/master
Release to val
- Loading branch information
Showing
88 changed files
with
2,762 additions
and
1,048 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/packages/shared-types/planType.ts → src/packages/shared-types/authority.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export * as changelog from "./changelog"; | ||
export * as main from "./main"; | ||
export * as types from "./types"; | ||
export * as subtypes from "./subtypes"; | ||
export * from "./_"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { | ||
Response as Res, | ||
Hit, | ||
Filterable as FIL, | ||
QueryState, | ||
AggQuery, | ||
ExportHeaderOptions, | ||
} from "./../_"; | ||
import { z } from "zod"; | ||
import { Type } from "./transforms"; | ||
|
||
export type Document = z.infer<Type.Schema>; | ||
|
||
export type Response = Res<Document>; | ||
export type ItemResult = Hit<Document> & { | ||
found: boolean; | ||
}; | ||
|
||
export type Field = keyof Document | `${keyof Document}.keyword`; | ||
export type Filterable = FIL<Field>; | ||
export type State = QueryState<Field>; | ||
export type Aggs = AggQuery<Field>; | ||
export type ExportHeader = ExportHeaderOptions<Document>; | ||
|
||
export * from "./transforms"; |
15 changes: 15 additions & 0 deletions
15
src/packages/shared-types/opensearch/subtypes/transforms/Type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { seaSubtypeSchema } from "../../.."; | ||
|
||
export const transform = () => { | ||
return seaSubtypeSchema.transform((data) => { | ||
const transformedData = { | ||
id: data.Type_Id, | ||
name: data.Type_Name, | ||
typeId: data.Type_Class, | ||
authorityId: data.Plan_Type_ID, | ||
}; | ||
return transformedData; | ||
}); | ||
}; | ||
|
||
export type Schema = ReturnType<typeof transform>; |
1 change: 1 addition & 0 deletions
1
src/packages/shared-types/opensearch/subtypes/transforms/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * as Type from "./Type"; |
Oops, something went wrong.