All files / lib/packages/shared-types/opensearch/changelog index.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128                                                                                                                                                                                                                      261x                                        
import { z } from "zod";
 
import {
  AggQuery,
  ExportHeaderOptions,
  Filterable as FIL,
  Hit,
  QueryState,
  Response as Res,
} from "./../_";
import {
  appK,
  capitatedAmendment,
  capitatedInitial,
  capitatedRenewal,
  contractingAmendment,
  contractingInitial,
  contractingRenewal,
  legacyAdminChange,
  legacyEvent,
  newChipDetailsSubmission,
  newChipSubmission,
  newMedicaidSubmission,
  respondToRai,
  temporaryExtension,
  toggleWithdrawRai,
  uploadSubsequentDocuments,
  withdrawPackage,
  withdrawRai,
} from "./transforms";
 
export type AppkDocument = z.infer<appK.Schema>;
export type CapitatedAmendmentDocument = z.infer<capitatedAmendment.Schema>;
export type CapitatedInitialDocument = z.infer<capitatedInitial.Schema>;
export type CapitatedRenewalDocument = z.infer<capitatedRenewal.Schema>;
export type ContractingAmendmentDocument = z.infer<contractingAmendment.Schema>;
export type ContractingInitialDocument = z.infer<contractingInitial.Schema>;
export type ContractingRenewalDocument = z.infer<contractingRenewal.Schema>;
export type LegacyEventDocument = z.infer<legacyEvent.Schema>;
export type LegacyAdminChangeDocument = z.infer<legacyAdminChange.Schema>;
export type NewChipSubmissionDocument = z.infer<newChipSubmission.Schema>;
export type NewChipDetailsSubmissionDocument = z.infer<newChipDetailsSubmission.Schema>;
export type NewMedicaidSubmissionDocument = z.infer<newMedicaidSubmission.Schema>;
export type RespondToRaiDocument = z.infer<respondToRai.Schema>;
export type TemporaryExtensionDocument = z.infer<temporaryExtension.Schema>;
export type ToggleWithdrawRaiDocument = z.infer<toggleWithdrawRai.Schema>;
export type UploadSubsequentDocuments = z.infer<uploadSubsequentDocuments.Schema>;
export type WithdrawPackageDocument = z.infer<withdrawPackage.Schema>;
export type WithdrawRaiDocument = z.infer<withdrawRai.Schema>;
 
export type Document = Omit<AppkDocument, "event"> &
  Omit<CapitatedAmendmentDocument, "event"> &
  Omit<CapitatedInitialDocument, "event"> &
  Omit<CapitatedRenewalDocument, "event"> &
  Omit<ContractingAmendmentDocument, "event"> &
  Omit<ContractingInitialDocument, "event"> &
  Omit<ContractingRenewalDocument, "event"> &
  Omit<LegacyEventDocument, "event"> &
  LegacyAdminChangeDocument &
  Omit<NewChipSubmissionDocument, "event"> &
  Omit<NewChipDetailsSubmissionDocument, "event"> &
  Omit<NewMedicaidSubmissionDocument, "event"> &
  Omit<RespondToRaiDocument, "event"> &
  Omit<TemporaryExtensionDocument, "event"> &
  Omit<ToggleWithdrawRaiDocument, "event"> &
  Omit<UploadSubsequentDocuments, "event"> &
  Omit<WithdrawPackageDocument, "event"> &
  Omit<WithdrawRaiDocument, "event"> & {
    event:
      | "app-k"
      | "capitated-amendment"
      | "capitated-initial"
      | "capitated-renewal"
      | "contracting-amendment"
      | "contracting-initial"
      | "contracting-renewal"
      | "legacy-admin-change"
      | "new-chip-submission"
      | "new-chip-details-submission"
      | "new-medicaid-submission"
      | "respond-to-rai"
      | "temporary-extension"
      | "toggle-withdraw-rai"
      | "upload-subsequent-documents"
      | "withdraw-package"
      | "withdraw-rai"
      | "legacy-withdraw-rai-request"
      | "update-values"
      | "update-id"
      | "delete"
      | "split-spa"
      | "NOSO";
  };
 
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";
 
export const transforms = {
  "app-k": appK,
  "capitated-amendment": capitatedAmendment,
  "capitated-initial": capitatedInitial,
  "capitated-renewal": capitatedRenewal,
  "contracting-amendment": contractingAmendment,
  "contracting-initial": contractingInitial,
  "contracting-renewal": contractingRenewal,
  "legacy-admin-change": legacyAdminChange,
  "legacy-event": legacyEvent,
  "new-chip-submission": newChipSubmission,
  "new-chip-details-submission": newChipDetailsSubmission,
  "new-medicaid-submission": newMedicaidSubmission,
  "respond-to-rai": respondToRai,
  "temporary-extension": temporaryExtension,
  "toggle-withdraw-rai": toggleWithdrawRai,
  "upload-subsequent-documents": uploadSubsequentDocuments,
  "withdraw-package": withdrawPackage,
  "withdraw-rai": withdrawRai,
};