@stedi/sdk 0.0.9 → 0.0.10

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 (105) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +82 -29
  3. package/dist-cjs/Stedi.js +35 -1
  4. package/dist-cjs/StediClient.js +1 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +8 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +8 -0
  7. package/dist-cjs/commandBuilder.js +4 -1
  8. package/dist-cjs/commands/CreateEventDestinationCommand.js +8 -0
  9. package/dist-cjs/commands/CreateProfessionalClaimSubmissionCommand.js +1 -1
  10. package/dist-cjs/commands/DeleteEventDestinationCommand.js +8 -0
  11. package/dist-cjs/commands/GetClaimCommand.js +8 -0
  12. package/dist-cjs/commands/GetClaimTimelineCommand.js +8 -0
  13. package/dist-cjs/commands/GetEventDestinationCommand.js +8 -0
  14. package/dist-cjs/commands/GetEventDestinationEventCommand.js +8 -0
  15. package/dist-cjs/commands/GetEventDestinationSecretCommand.js +8 -0
  16. package/dist-cjs/commands/GetProfessionalClaimSubmissionCommand.js +1 -1
  17. package/dist-cjs/commands/ListClaimsCommand.js +8 -0
  18. package/dist-cjs/commands/ListEventDestinationEventsCommand.js +8 -0
  19. package/dist-cjs/commands/ListEventDestinationsCommand.js +8 -0
  20. package/dist-cjs/commands/RotateEventDestinationSecretCommand.js +8 -0
  21. package/dist-cjs/commands/UpdateEventDestinationCommand.js +8 -0
  22. package/dist-cjs/commands/ValidateProfessionalClaimSubmissionCommand.js +1 -1
  23. package/dist-cjs/commands/index.js +12 -0
  24. package/dist-cjs/endpoint/bdd.js +8 -5
  25. package/dist-cjs/index.js +1 -0
  26. package/dist-cjs/models/enums.js +61 -1
  27. package/dist-cjs/models/errors.js +27 -34
  28. package/dist-cjs/pagination/GetClaimTimelinePaginator.js +7 -0
  29. package/dist-cjs/pagination/Interfaces.js +2 -0
  30. package/dist-cjs/pagination/ListClaimsPaginator.js +7 -0
  31. package/dist-cjs/pagination/ListEventDestinationEventsPaginator.js +7 -0
  32. package/dist-cjs/pagination/ListEventDestinationsPaginator.js +7 -0
  33. package/dist-cjs/pagination/index.js +8 -0
  34. package/dist-cjs/runtimeConfig.shared.js +5 -0
  35. package/dist-cjs/schemas/schemas_0.js +487 -127
  36. package/dist-es/Stedi.js +35 -1
  37. package/dist-es/StediClient.js +1 -0
  38. package/dist-es/auth/httpAuthExtensionConfiguration.js +8 -0
  39. package/dist-es/auth/httpAuthSchemeProvider.js +8 -0
  40. package/dist-es/commandBuilder.js +3 -0
  41. package/dist-es/commands/CreateEventDestinationCommand.js +4 -0
  42. package/dist-es/commands/CreateProfessionalClaimSubmissionCommand.js +2 -2
  43. package/dist-es/commands/DeleteEventDestinationCommand.js +4 -0
  44. package/dist-es/commands/GetClaimCommand.js +4 -0
  45. package/dist-es/commands/GetClaimTimelineCommand.js +4 -0
  46. package/dist-es/commands/GetEventDestinationCommand.js +4 -0
  47. package/dist-es/commands/GetEventDestinationEventCommand.js +4 -0
  48. package/dist-es/commands/GetEventDestinationSecretCommand.js +4 -0
  49. package/dist-es/commands/GetProfessionalClaimSubmissionCommand.js +2 -2
  50. package/dist-es/commands/ListClaimsCommand.js +4 -0
  51. package/dist-es/commands/ListEventDestinationEventsCommand.js +4 -0
  52. package/dist-es/commands/ListEventDestinationsCommand.js +4 -0
  53. package/dist-es/commands/RotateEventDestinationSecretCommand.js +4 -0
  54. package/dist-es/commands/UpdateEventDestinationCommand.js +4 -0
  55. package/dist-es/commands/ValidateProfessionalClaimSubmissionCommand.js +2 -2
  56. package/dist-es/commands/index.js +12 -0
  57. package/dist-es/endpoint/bdd.js +8 -5
  58. package/dist-es/index.js +1 -0
  59. package/dist-es/models/enums.js +60 -0
  60. package/dist-es/models/errors.js +24 -31
  61. package/dist-es/pagination/GetClaimTimelinePaginator.js +4 -0
  62. package/dist-es/pagination/Interfaces.js +1 -0
  63. package/dist-es/pagination/ListClaimsPaginator.js +4 -0
  64. package/dist-es/pagination/ListEventDestinationEventsPaginator.js +4 -0
  65. package/dist-es/pagination/ListEventDestinationsPaginator.js +4 -0
  66. package/dist-es/pagination/index.js +5 -0
  67. package/dist-es/runtimeConfig.shared.js +6 -1
  68. package/dist-es/schemas/schemas_0.js +485 -126
  69. package/dist-types/Stedi.d.ts +116 -1
  70. package/dist-types/StediClient.d.ts +14 -2
  71. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +4 -1
  72. package/dist-types/auth/httpAuthSchemeProvider.d.ts +9 -1
  73. package/dist-types/commandBuilder.d.ts +4 -0
  74. package/dist-types/commands/CreateEventDestinationCommand.d.ts +146 -0
  75. package/dist-types/commands/CreateProfessionalClaimSubmissionCommand.d.ts +177 -152
  76. package/dist-types/commands/DeleteEventDestinationCommand.d.ts +105 -0
  77. package/dist-types/commands/GetClaimCommand.d.ts +139 -0
  78. package/dist-types/commands/GetClaimTimelineCommand.d.ts +218 -0
  79. package/dist-types/commands/GetEventDestinationCommand.d.ts +124 -0
  80. package/dist-types/commands/GetEventDestinationEventCommand.d.ts +141 -0
  81. package/dist-types/commands/GetEventDestinationSecretCommand.d.ts +105 -0
  82. package/dist-types/commands/GetProfessionalClaimSubmissionCommand.d.ts +349 -4
  83. package/dist-types/commands/ListClaimsCommand.d.ts +169 -0
  84. package/dist-types/commands/ListEventDestinationEventsCommand.d.ts +120 -0
  85. package/dist-types/commands/ListEventDestinationsCommand.d.ts +132 -0
  86. package/dist-types/commands/RotateEventDestinationSecretCommand.d.ts +113 -0
  87. package/dist-types/commands/UpdateEventDestinationCommand.d.ts +142 -0
  88. package/dist-types/commands/ValidateProfessionalClaimSubmissionCommand.d.ts +363 -9
  89. package/dist-types/commands/index.d.ts +12 -0
  90. package/dist-types/index.d.ts +1 -0
  91. package/dist-types/models/enums.d.ts +263 -1
  92. package/dist-types/models/errors.d.ts +25 -41
  93. package/dist-types/models/models_0.d.ts +1320 -43
  94. package/dist-types/pagination/GetClaimTimelinePaginator.d.ts +7 -0
  95. package/dist-types/pagination/Interfaces.d.ts +8 -0
  96. package/dist-types/pagination/ListClaimsPaginator.d.ts +7 -0
  97. package/dist-types/pagination/ListEventDestinationEventsPaginator.d.ts +7 -0
  98. package/dist-types/pagination/ListEventDestinationsPaginator.d.ts +7 -0
  99. package/dist-types/pagination/index.d.ts +5 -0
  100. package/dist-types/runtimeConfig.browser.d.ts +7 -2
  101. package/dist-types/runtimeConfig.d.ts +7 -2
  102. package/dist-types/runtimeConfig.native.d.ts +7 -2
  103. package/dist-types/runtimeConfig.shared.d.ts +7 -3
  104. package/dist-types/schemas/schemas_0.d.ts +54 -3
  105. package/package.json +4 -3
@@ -450,7 +450,7 @@ export declare const ProfessionalClaimSubmissionInsuranceType: {
450
450
  */
451
451
  readonly MEDICAID: "MEDICAID";
452
452
  /**
453
- * Original Medicare. Don't use this for Medicare Advantage plans; use `OTHER` instead.
453
+ * Original Medicare. Don't use this for Medicare Advantage plans use `OTHER` instead.
454
454
  */
455
455
  readonly MEDICARE: "MEDICARE";
456
456
  /**
@@ -774,3 +774,265 @@ export declare const ProfessionalClaimSubmissionDrugIdentificationUnitOfMeasure:
774
774
  * @public
775
775
  */
776
776
  export type ProfessionalClaimSubmissionDrugIdentificationUnitOfMeasure = (typeof ProfessionalClaimSubmissionDrugIdentificationUnitOfMeasure)[keyof typeof ProfessionalClaimSubmissionDrugIdentificationUnitOfMeasure];
777
+ /**
778
+ * @public
779
+ * @enum
780
+ */
781
+ export declare const ProfessionalClaimSubmissionPurchasedServiceProviderEntityType: {
782
+ /**
783
+ * An organization, such as an independent laboratory.
784
+ */
785
+ readonly ORGANIZATION: "ORGANIZATION";
786
+ /**
787
+ * An individual provider, such as a physician who performed a purchased interpretation.
788
+ */
789
+ readonly PERSON: "PERSON";
790
+ };
791
+ /**
792
+ * @public
793
+ */
794
+ export type ProfessionalClaimSubmissionPurchasedServiceProviderEntityType = (typeof ProfessionalClaimSubmissionPurchasedServiceProviderEntityType)[keyof typeof ProfessionalClaimSubmissionPurchasedServiceProviderEntityType];
795
+ /**
796
+ * @public
797
+ * @enum
798
+ */
799
+ export declare const ClaimAcknowledgmentStatus: {
800
+ /**
801
+ * A clearinghouse or the payer accepted the claim. A clearinghouse acceptance means the claim passed its edits and the clearinghouse forwarded it to the payer. A payer acceptance means the payer will adjudicate the claim.
802
+ */
803
+ readonly ACCEPTED: "ACCEPTED";
804
+ /**
805
+ * Stedi couldn't determine the status because the 277CA carries a status category code Stedi doesn't recognize.
806
+ */
807
+ readonly INVALID: "INVALID";
808
+ /**
809
+ * A clearinghouse or the payer received the claim but hasn't yet accepted or rejected it.
810
+ */
811
+ readonly RECEIVED: "RECEIVED";
812
+ /**
813
+ * A clearinghouse or the payer rejected the claim. The payer won't adjudicate the claim until you correct and resubmit it.
814
+ */
815
+ readonly REJECTED: "REJECTED";
816
+ };
817
+ /**
818
+ * @public
819
+ */
820
+ export type ClaimAcknowledgmentStatus = (typeof ClaimAcknowledgmentStatus)[keyof typeof ClaimAcknowledgmentStatus];
821
+ /**
822
+ * @public
823
+ * @enum
824
+ */
825
+ export declare const ClaimType: {
826
+ /**
827
+ * An 837D dental claim, the electronic equivalent of the ADA Dental Claim Form.
828
+ */
829
+ readonly DENTAL: "DENTAL";
830
+ /**
831
+ * An 837I institutional claim, the electronic equivalent of the UB-04 form.
832
+ */
833
+ readonly INSTITUTIONAL: "INSTITUTIONAL";
834
+ /**
835
+ * An 837P professional claim, the electronic equivalent of the CMS-1500 form.
836
+ */
837
+ readonly PROFESSIONAL: "PROFESSIONAL";
838
+ };
839
+ /**
840
+ * @public
841
+ */
842
+ export type ClaimType = (typeof ClaimType)[keyof typeof ClaimType];
843
+ /**
844
+ * @public
845
+ * @enum
846
+ */
847
+ export declare const ClaimStatusReportedBy: {
848
+ /**
849
+ * A clearinghouse reported the status, either Stedi or an intermediary clearinghouse between Stedi and the payer.
850
+ */
851
+ readonly CLEARINGHOUSE: "CLEARINGHOUSE";
852
+ /**
853
+ * The payer reported the status, in a 277CA claim acknowledgment or an 835 ERA.
854
+ */
855
+ readonly PAYER: "PAYER";
856
+ };
857
+ /**
858
+ * @public
859
+ */
860
+ export type ClaimStatusReportedBy = (typeof ClaimStatusReportedBy)[keyof typeof ClaimStatusReportedBy];
861
+ /**
862
+ * @public
863
+ * @enum
864
+ */
865
+ export declare const ClaimPaymentInformationStatusCode: {
866
+ /**
867
+ * The payer denied the claim.
868
+ */
869
+ readonly DENIED: "DENIED";
870
+ /**
871
+ * The payer isn't responsible for the claim and forwarded it to additional payers.
872
+ */
873
+ readonly NOT_OUR_CLAIM_FORWARDED_TO_ADDITIONAL_PAYERS: "NOT_OUR_CLAIM_FORWARDED_TO_ADDITIONAL_PAYERS";
874
+ /**
875
+ * The payer priced the claim without paying it.
876
+ */
877
+ readonly PREDETERMINATION_PRICING_ONLY: "PREDETERMINATION_PRICING_ONLY";
878
+ /**
879
+ * The payer processed the claim as the primary payer.
880
+ */
881
+ readonly PROCESSED_AS_PRIMARY: "PROCESSED_AS_PRIMARY";
882
+ /**
883
+ * The payer processed the claim as the primary payer and forwarded it to additional payers.
884
+ */
885
+ readonly PROCESSED_AS_PRIMARY_FORWARDED_TO_ADDITIONAL_PAYERS: "PROCESSED_AS_PRIMARY_FORWARDED_TO_ADDITIONAL_PAYERS";
886
+ /**
887
+ * The payer processed the claim as the secondary payer.
888
+ */
889
+ readonly PROCESSED_AS_SECONDARY: "PROCESSED_AS_SECONDARY";
890
+ /**
891
+ * The payer processed the claim as the secondary payer and forwarded it to additional payers.
892
+ */
893
+ readonly PROCESSED_AS_SECONDARY_FORWARDED_TO_ADDITIONAL_PAYERS: "PROCESSED_AS_SECONDARY_FORWARDED_TO_ADDITIONAL_PAYERS";
894
+ /**
895
+ * The payer processed the claim as the tertiary payer.
896
+ */
897
+ readonly PROCESSED_AS_TERTIARY: "PROCESSED_AS_TERTIARY";
898
+ /**
899
+ * The payer processed the claim as the tertiary payer and forwarded it to additional payers.
900
+ */
901
+ readonly PROCESSED_AS_TERTIARY_FORWARDED_TO_ADDITIONAL_PAYERS: "PROCESSED_AS_TERTIARY_FORWARDED_TO_ADDITIONAL_PAYERS";
902
+ /**
903
+ * The payer reversed a payment it reported earlier. The amounts are negative, so they cancel the earlier payment.
904
+ */
905
+ readonly REVERSAL_OF_PREVIOUS_PAYMENT: "REVERSAL_OF_PREVIOUS_PAYMENT";
906
+ };
907
+ /**
908
+ * @public
909
+ */
910
+ export type ClaimPaymentInformationStatusCode = (typeof ClaimPaymentInformationStatusCode)[keyof typeof ClaimPaymentInformationStatusCode];
911
+ /**
912
+ * @public
913
+ * @enum
914
+ */
915
+ export declare const ClaimStatus: {
916
+ /**
917
+ * A clearinghouse or the payer accepted the claim. Check `statusReportedBy` to see which one.
918
+ */
919
+ readonly ACCEPTED: "ACCEPTED";
920
+ /**
921
+ * The payer adjudicated the claim and denied it in an 835 ERA.
922
+ */
923
+ readonly DENIED: "DENIED";
924
+ /**
925
+ * The payer adjudicated the claim and reported the result in an 835 ERA. The payer may have paid all, part, or none of the charges. Check `totalClaimPaidAmount` for the amount.
926
+ */
927
+ readonly PROCESSED: "PROCESSED";
928
+ /**
929
+ * A clearinghouse or the payer received the claim but hasn't yet accepted or rejected it.
930
+ */
931
+ readonly RECEIVED: "RECEIVED";
932
+ /**
933
+ * A clearinghouse or the payer rejected the claim. The payer won't adjudicate the claim until you correct and resubmit it.
934
+ */
935
+ readonly REJECTED: "REJECTED";
936
+ /**
937
+ * You submitted the claim. No clearinghouse or payer has acknowledged it yet.
938
+ */
939
+ readonly SUBMITTED: "SUBMITTED";
940
+ /**
941
+ * Stedi couldn't determine the status. The 277CA carries a status category code Stedi doesn't recognize, or the 835 ERA doesn't report a clear outcome for the claim.
942
+ */
943
+ readonly UNKNOWN: "UNKNOWN";
944
+ };
945
+ /**
946
+ * @public
947
+ */
948
+ export type ClaimStatus = (typeof ClaimStatus)[keyof typeof ClaimStatus];
949
+ /**
950
+ * @public
951
+ * @enum
952
+ */
953
+ export declare const EventDestinationsDestinationInputStatus: {
954
+ /**
955
+ * The destination is paused and will not receive event deliveries.
956
+ */
957
+ readonly DISABLED: "DISABLED";
958
+ /**
959
+ * The destination is active and will receive event deliveries.
960
+ */
961
+ readonly ENABLED: "ENABLED";
962
+ };
963
+ /**
964
+ * @public
965
+ */
966
+ export type EventDestinationsDestinationInputStatus = (typeof EventDestinationsDestinationInputStatus)[keyof typeof EventDestinationsDestinationInputStatus];
967
+ /**
968
+ * @public
969
+ * @enum
970
+ */
971
+ export declare const EventDestinationsDestinationStatus: {
972
+ /**
973
+ * The destination is paused and will not receive event deliveries.
974
+ */
975
+ readonly DISABLED: "DISABLED";
976
+ /**
977
+ * The destination is active and will receive event deliveries.
978
+ */
979
+ readonly ENABLED: "ENABLED";
980
+ };
981
+ /**
982
+ * @public
983
+ */
984
+ export type EventDestinationsDestinationStatus = (typeof EventDestinationsDestinationStatus)[keyof typeof EventDestinationsDestinationStatus];
985
+ /**
986
+ * @public
987
+ * @enum
988
+ */
989
+ export declare const EventDestinationsEventEnvironment: {
990
+ /**
991
+ * Production environment.
992
+ */
993
+ readonly PRODUCTION: "PRODUCTION";
994
+ /**
995
+ * Test environment.
996
+ */
997
+ readonly TEST: "TEST";
998
+ };
999
+ /**
1000
+ * @public
1001
+ */
1002
+ export type EventDestinationsEventEnvironment = (typeof EventDestinationsEventEnvironment)[keyof typeof EventDestinationsEventEnvironment];
1003
+ /**
1004
+ * @public
1005
+ * @enum
1006
+ */
1007
+ export declare const EventDestinationsEventPayloadObjectType: {
1008
+ /**
1009
+ * Version 1 thin event schema.
1010
+ */
1011
+ readonly V1_EVENT: "v1.event";
1012
+ };
1013
+ /**
1014
+ * @public
1015
+ */
1016
+ export type EventDestinationsEventPayloadObjectType = (typeof EventDestinationsEventPayloadObjectType)[keyof typeof EventDestinationsEventPayloadObjectType];
1017
+ /**
1018
+ * @public
1019
+ * @enum
1020
+ */
1021
+ export declare const EventDestinationsEventStatus: {
1022
+ /**
1023
+ * Stedi successfully delivered the event to all relevant event destinations.
1024
+ */
1025
+ readonly DELIVERED: "DELIVERED";
1026
+ /**
1027
+ * Stedi couldn't deliver the event to at least one event destination and is no longer retrying. Deliveries to some event destinations may have been successful.
1028
+ */
1029
+ readonly FAILED: "FAILED";
1030
+ /**
1031
+ * Stedi is still trying to deliver the event to one or more event destinations. Events may stay in this state for multiple days as Stedi automatically retries.
1032
+ */
1033
+ readonly PENDING: "PENDING";
1034
+ };
1035
+ /**
1036
+ * @public
1037
+ */
1038
+ export type EventDestinationsEventStatus = (typeof EventDestinationsEventStatus)[keyof typeof EventDestinationsEventStatus];
@@ -1,46 +1,6 @@
1
1
  import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
- import type { ClaimEditError, ValidationFailure } from "./models_0";
2
+ import type { ValidationFailure } from "./models_0";
3
3
  import { StediServiceException as __BaseException } from "./StediServiceException";
4
- /**
5
- * Exception returned when the claim fails one or more pre-submission edits.
6
- * @public
7
- */
8
- export declare class ClaimEditException extends __BaseException {
9
- readonly name: "ClaimEditException";
10
- readonly $fault: "client";
11
- /**
12
- * The edits the claim failed.
13
- * @public
14
- */
15
- errors: ClaimEditError[] | undefined;
16
- /**
17
- * A synthetic 277CA acknowledging the rejection, with one STC segment per failed edit.
18
- * @public
19
- */
20
- x12?: string | undefined;
21
- /**
22
- * @internal
23
- */
24
- constructor(opts: __ExceptionOptionType<ClaimEditException, __BaseException>);
25
- }
26
- /**
27
- * The server response when an unexpected error occurred while processing request.
28
- * @public
29
- */
30
- export declare class InternalFailureException extends __BaseException {
31
- readonly name: "InternalFailureException";
32
- readonly $fault: "server";
33
- $retryable: {};
34
- /**
35
- * Error classification code
36
- * @public
37
- */
38
- code?: string | undefined;
39
- /**
40
- * @internal
41
- */
42
- constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
43
- }
44
4
  /**
45
5
  * The request credentials are missing or not valid.
46
6
  * @public
@@ -134,3 +94,27 @@ export declare class NotFoundException extends __BaseException {
134
94
  */
135
95
  constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
136
96
  }
97
+ /**
98
+ * The account has reached its maximum number of event destinations. Delete an existing destination or request a limit increase before creating another. Not retryable — the caller must change account state before retrying.
99
+ * @public
100
+ */
101
+ export declare class EventDestinationsLimitExceededException extends __BaseException {
102
+ readonly name: "EventDestinationsLimitExceededException";
103
+ readonly $fault: "client";
104
+ /**
105
+ * @internal
106
+ */
107
+ constructor(opts: __ExceptionOptionType<EventDestinationsLimitExceededException, __BaseException>);
108
+ }
109
+ /**
110
+ * The request payload is larger than the service accepts. Send less in one request.
111
+ * @public
112
+ */
113
+ export declare class ContentTooLargeException extends __BaseException {
114
+ readonly name: "ContentTooLargeException";
115
+ readonly $fault: "client";
116
+ /**
117
+ * @internal
118
+ */
119
+ constructor(opts: __ExceptionOptionType<ContentTooLargeException, __BaseException>);
120
+ }