@instabrain-sdks/api-client 2.0.1 → 2.2.0

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 (90) hide show
  1. package/README.md +1457 -351
  2. package/dist/client/instabrain-client.d.ts +55 -5
  3. package/dist/client/instabrain-client.js +67 -4
  4. package/dist/index.d.ts +0 -1
  5. package/dist/index.js +0 -1
  6. package/dist/services/adb.service.d.ts +65 -0
  7. package/dist/services/adb.service.js +87 -0
  8. package/dist/services/application.service.d.ts +2 -3
  9. package/dist/services/application.service.js +5 -52
  10. package/dist/services/auth.service.d.ts +0 -1
  11. package/dist/services/auth.service.js +0 -1
  12. package/dist/services/base.service.d.ts +45 -0
  13. package/dist/services/base.service.js +92 -0
  14. package/dist/services/gigdb.service.d.ts +2 -3
  15. package/dist/services/gigdb.service.js +12 -133
  16. package/dist/services/quote.service.d.ts +2 -3
  17. package/dist/services/quote.service.js +4 -35
  18. package/dist/services/reports.service.d.ts +2 -3
  19. package/dist/services/reports.service.js +6 -86
  20. package/dist/services/secure-sign.service.d.ts +2 -3
  21. package/dist/services/secure-sign.service.js +7 -109
  22. package/dist/types/adb.types.d.ts +154 -0
  23. package/dist/types/adb.types.js +2 -0
  24. package/dist/types/application.types.d.ts +0 -1
  25. package/dist/types/application.types.js +0 -1
  26. package/dist/types/auth.types.d.ts +0 -1
  27. package/dist/types/auth.types.js +0 -1
  28. package/dist/types/beneficiary.types.d.ts +54 -0
  29. package/dist/types/beneficiary.types.js +2 -0
  30. package/dist/types/constants.d.ts +0 -1
  31. package/dist/types/constants.js +0 -1
  32. package/dist/types/enums.d.ts +384 -5
  33. package/dist/types/enums.js +403 -9
  34. package/dist/types/errors.d.ts +0 -1
  35. package/dist/types/errors.js +0 -1
  36. package/dist/types/gigdb.types.d.ts +50 -15
  37. package/dist/types/gigdb.types.js +0 -1
  38. package/dist/types/index.d.ts +2 -1
  39. package/dist/types/index.js +2 -1
  40. package/dist/types/quote.types.d.ts +0 -1
  41. package/dist/types/quote.types.js +0 -1
  42. package/dist/types/reports.types.d.ts +0 -1
  43. package/dist/types/reports.types.js +0 -1
  44. package/dist/types/secure-sign.types.d.ts +0 -1
  45. package/dist/types/secure-sign.types.js +0 -1
  46. package/dist/utils/error-utils.d.ts +0 -1
  47. package/dist/utils/error-utils.js +0 -1
  48. package/dist/utils/http-client.d.ts +0 -1
  49. package/dist/utils/http-client.js +0 -4
  50. package/package.json +2 -3
  51. package/dist/client/instabrain-client.d.ts.map +0 -1
  52. package/dist/client/instabrain-client.js.map +0 -1
  53. package/dist/index.d.ts.map +0 -1
  54. package/dist/index.js.map +0 -1
  55. package/dist/services/application.service.d.ts.map +0 -1
  56. package/dist/services/application.service.js.map +0 -1
  57. package/dist/services/auth.service.d.ts.map +0 -1
  58. package/dist/services/auth.service.js.map +0 -1
  59. package/dist/services/gigdb.service.d.ts.map +0 -1
  60. package/dist/services/gigdb.service.js.map +0 -1
  61. package/dist/services/quote.service.d.ts.map +0 -1
  62. package/dist/services/quote.service.js.map +0 -1
  63. package/dist/services/reports.service.d.ts.map +0 -1
  64. package/dist/services/reports.service.js.map +0 -1
  65. package/dist/services/secure-sign.service.d.ts.map +0 -1
  66. package/dist/services/secure-sign.service.js.map +0 -1
  67. package/dist/types/application.types.d.ts.map +0 -1
  68. package/dist/types/application.types.js.map +0 -1
  69. package/dist/types/auth.types.d.ts.map +0 -1
  70. package/dist/types/auth.types.js.map +0 -1
  71. package/dist/types/constants.d.ts.map +0 -1
  72. package/dist/types/constants.js.map +0 -1
  73. package/dist/types/enums.d.ts.map +0 -1
  74. package/dist/types/enums.js.map +0 -1
  75. package/dist/types/errors.d.ts.map +0 -1
  76. package/dist/types/errors.js.map +0 -1
  77. package/dist/types/gigdb.types.d.ts.map +0 -1
  78. package/dist/types/gigdb.types.js.map +0 -1
  79. package/dist/types/index.d.ts.map +0 -1
  80. package/dist/types/index.js.map +0 -1
  81. package/dist/types/quote.types.d.ts.map +0 -1
  82. package/dist/types/quote.types.js.map +0 -1
  83. package/dist/types/reports.types.d.ts.map +0 -1
  84. package/dist/types/reports.types.js.map +0 -1
  85. package/dist/types/secure-sign.types.d.ts.map +0 -1
  86. package/dist/types/secure-sign.types.js.map +0 -1
  87. package/dist/utils/error-utils.d.ts.map +0 -1
  88. package/dist/utils/error-utils.js.map +0 -1
  89. package/dist/utils/http-client.d.ts.map +0 -1
  90. package/dist/utils/http-client.js.map +0 -1
@@ -0,0 +1,154 @@
1
+ import { Gender, PaymentFrequency, AdbRiderType } from './enums';
2
+ import { BeneficiaryDetails } from './beneficiary.types';
3
+ /**
4
+ * Request for ADB (Accidental Death Benefit) quote
5
+ * POST /api/ThirdPartyIbAdbQuote/get
6
+ * Eligibility: ages 20-59
7
+ */
8
+ export interface ThirdPartyAdbQuoteRequest {
9
+ /** Coverage amount in dollars */
10
+ faceAmount: number;
11
+ /** Gender of the insured */
12
+ gender: Gender;
13
+ /** 2-letter US state code */
14
+ stateCode: string;
15
+ /** Age of the insured (20-59). Required if dateOfBirth not provided */
16
+ age?: number;
17
+ /** Date of birth (ISO 8601). Required if age not provided */
18
+ dateOfBirth?: string;
19
+ /** Payment frequency (Monthly or Annually) */
20
+ paymentFreq: PaymentFrequency;
21
+ /** Optional list of rider codes validated against ADB product (use `AdbRiderType` values) */
22
+ riders?: AdbRiderType[];
23
+ /** Max 35 chars */
24
+ firstName?: string;
25
+ /** Max 35 chars */
26
+ lastName?: string;
27
+ /** Valid email format */
28
+ email?: string;
29
+ /** 10-digit numeric */
30
+ phoneNum?: string;
31
+ }
32
+ /**
33
+ * Request for ADB update quote
34
+ * POST /api/ThirdPartyIbAdbQuote/update
35
+ * Use after application has been started to re-quote for the same opportunity
36
+ * with a new faceAmount, paymentFreq, or riders list.
37
+ *
38
+ * Business error: "Quote update is not allowed when payment is already made"
39
+ */
40
+ export interface ThirdPartyAdbUpdateQuoteReq {
41
+ /** OpportunityId from the ADB Start Application response */
42
+ opportunityId: string;
43
+ /** New coverage amount in dollars */
44
+ faceAmount: number;
45
+ /** Payment frequency (Monthly or Annually) */
46
+ paymentFreq: PaymentFrequency;
47
+ /** Rider codes to apply — pass [] to clear all riders */
48
+ riders: AdbRiderType[];
49
+ }
50
+ export interface AdbAddress {
51
+ addressLine1: string;
52
+ city: string;
53
+ /** Valid 2-letter US state code; must match state used at quote time */
54
+ state: string;
55
+ /** 5-digit numeric */
56
+ zipcode: string;
57
+ }
58
+ export interface AdbExistingCoverageInfo {
59
+ nameOfTheCompany: string;
60
+ insuranceAmount: string;
61
+ /** Format: YYYY-MM */
62
+ dateOfIssue: string;
63
+ toBeReplaced: boolean;
64
+ toBeFinanced: boolean;
65
+ /** Required when address.state === "OK" AND hasExistingCoverage === true */
66
+ notifyPresentInsurer?: boolean;
67
+ /** Required when address.state === "FL" AND hasExistingCoverage === true */
68
+ wantsComparativeInformationForm?: boolean;
69
+ /** Required when address.state === "DE" AND hasExistingCoverage === true */
70
+ wantsPolicySummary?: boolean;
71
+ }
72
+ export interface AdbExistingCoverageData {
73
+ isExistingPolicyBeingTerminated: boolean;
74
+ existingCoverages: AdbExistingCoverageInfo[];
75
+ }
76
+ /**
77
+ * Request for ADB start application
78
+ * POST /api/ThirdPartyAdbApplication/start-application
79
+ *
80
+ * Knockout rules (returns isDeclined: true, no opportunityId created):
81
+ * - isPayerAlsoOwnerAndInsured = false
82
+ * - isUsCitizen = false AND isLegalUsResident = false
83
+ */
84
+ export interface ThirdPartyAdbAppReq {
85
+ /** UUID from the ADB quote response */
86
+ quoteResponseId: string;
87
+ /** Max 35 chars */
88
+ firstName: string;
89
+ /** Max 35 chars */
90
+ lastName: string;
91
+ /** Valid email format */
92
+ email: string;
93
+ /** 10-digit numeric */
94
+ phoneNumber: string;
95
+ isUsCitizen: boolean;
96
+ /** Required when isUsCitizen = false */
97
+ isLegalUsResident?: boolean;
98
+ /** Must be true to proceed — knockout if false */
99
+ isPayerAlsoOwnerAndInsured: boolean;
100
+ address: AdbAddress;
101
+ /** ISO 8601; age must be 20-59 */
102
+ dateOfBirth: string;
103
+ /** Format: XXXXXXXXX (9 digits, no dashes) */
104
+ socialSecurityNumber: string;
105
+ hasExistingCoverage: boolean;
106
+ /** Required when hasExistingCoverage = true */
107
+ willOtherCoverageBeReplacedOrFinanced?: boolean;
108
+ /** Required when hasExistingCoverage = true */
109
+ existingCoverageData?: AdbExistingCoverageData;
110
+ beneficiaryDetails: BeneficiaryDetails;
111
+ /**
112
+ * Occupation labels for the insured.
113
+ * Required when address.state === "CA" — obtain values via getAdbOccupationOptions().
114
+ */
115
+ occupation?: string[];
116
+ /** Required when address.state === "DC" — ACA minimum essential coverage acknowledgement */
117
+ hasMedicalCoverage?: boolean;
118
+ /** Required when address.state === "DC" — supplemental policy benefits acknowledgement */
119
+ understandsBenefits?: boolean;
120
+ /** Required when address.state === "DC" — limited benefits acknowledgement */
121
+ understandsLimitedBenefits?: boolean;
122
+ }
123
+ /** A single rider option returned for a state */
124
+ export interface AdbRiderResp {
125
+ /** Pass into the Quote API Riders array to include this rider (`AdbRiderType` value) */
126
+ riderCode: AdbRiderType;
127
+ /** Display title for UI rendering */
128
+ riderTitle: string;
129
+ /** Display description for UI rendering */
130
+ riderDescription: string;
131
+ }
132
+ /**
133
+ * Response from GET /api/ThirdPartyAdbLookup/get-rider-details
134
+ * Call before getAdbQuote() to check state availability and available riders.
135
+ */
136
+ export interface AdbRiderDetailsResp {
137
+ /** Available riders for the state. May be empty even when product is available. */
138
+ riders: AdbRiderResp[];
139
+ /**
140
+ * true → ADB is not available in this state; do not proceed to quote.
141
+ * false → ADB is available; riders array may still be empty (no optional riders configured).
142
+ */
143
+ flagProductNotAvailableForState: boolean;
144
+ }
145
+ /**
146
+ * Response from ADB start application
147
+ * isDeclined: true is a valid success (knockout) — not an error
148
+ */
149
+ export interface ThirdPartyAdbStartAppResp {
150
+ /** UUID of the created application. Empty GUID when isDeclined = true */
151
+ opportunityId: string;
152
+ /** true if a knockout criterion was met — no application was created */
153
+ isDeclined: boolean;
154
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,4 +15,3 @@ export interface ThirdPartyStartAppResp {
15
15
  /** Whether the quote changed during application (GIGDB product) */
16
16
  isQuoteChanged: boolean;
17
17
  }
18
- //# sourceMappingURL=application.types.d.ts.map
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=application.types.js.map
@@ -5,4 +5,3 @@ export interface AuthorizationRequest {
5
5
  export interface AuthorizationResponse {
6
6
  jwtToken: string | null;
7
7
  }
8
- //# sourceMappingURL=auth.types.d.ts.map
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=auth.types.js.map
@@ -0,0 +1,54 @@
1
+ import { BeneficiaryType, BeneficiaryRelationship } from './enums';
2
+ export interface BeneficiaryPerson {
3
+ firstName: string;
4
+ lastName: string;
5
+ relationship: BeneficiaryRelationship;
6
+ }
7
+ export interface BeneficiaryNamedEntity {
8
+ name: string;
9
+ taxId?: string;
10
+ /** Format: YYYY-MM — Trust type only */
11
+ trustDate?: string;
12
+ }
13
+ /**
14
+ * Beneficiary with no extra data required.
15
+ * Used for: AllChildrenOfTheInsuredEqually, AllChildrenOfTheMarriageEqually, InsuredEstate.
16
+ */
17
+ export interface BeneficiaryNoDetail {
18
+ beneficiaryType: BeneficiaryType.AllChildrenOfTheInsuredEqually | BeneficiaryType.AllChildrenOfTheMarriageEqually | BeneficiaryType.InsuredEstate;
19
+ beneficiaryPerson?: never;
20
+ namedEntity?: never;
21
+ }
22
+ /**
23
+ * Beneficiary who is a named person.
24
+ * Used when beneficiaryType = Person. Requires beneficiaryPerson.
25
+ */
26
+ export interface BeneficiaryPersonDetails {
27
+ beneficiaryType: BeneficiaryType.Person;
28
+ beneficiaryPerson: BeneficiaryPerson;
29
+ namedEntity?: never;
30
+ }
31
+ /**
32
+ * Beneficiary that is an organization or entity.
33
+ * Used for: Business, Corporation, CharitableOrganization, Employer, Other, Trust.
34
+ * Requires namedEntity.
35
+ */
36
+ export interface BeneficiaryNamedEntityDetails {
37
+ beneficiaryType: BeneficiaryType.Business | BeneficiaryType.Corporation | BeneficiaryType.CharitableOrganization | BeneficiaryType.Employer | BeneficiaryType.Other | BeneficiaryType.Trust;
38
+ namedEntity: BeneficiaryNamedEntity;
39
+ beneficiaryPerson?: never;
40
+ }
41
+ /**
42
+ * Discriminated union for beneficiary details.
43
+ * TypeScript will enforce the correct fields for each beneficiaryType.
44
+ *
45
+ * @example Person
46
+ * { beneficiaryType: BeneficiaryType.Person, beneficiaryPerson: { firstName: 'Jane', lastName: 'Doe', relationship: BeneficiaryRelationship.Spouse } }
47
+ *
48
+ * @example No-detail (estate/children)
49
+ * { beneficiaryType: BeneficiaryType.InsuredEstate }
50
+ *
51
+ * @example Named entity (trust, business, etc.)
52
+ * { beneficiaryType: BeneficiaryType.Trust, namedEntity: { name: 'Smith Family Trust', trustDate: '2020-01' } }
53
+ */
54
+ export type BeneficiaryDetails = BeneficiaryNoDetail | BeneficiaryPersonDetails | BeneficiaryNamedEntityDetails;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -63,4 +63,3 @@ export declare const BENEFIT_PERIOD_AVAILABILITY: {
63
63
  readonly AGE_45_50_TOBACCO: readonly [10, 20];
64
64
  readonly AGE_51_60: readonly [10, 20];
65
65
  };
66
- //# sourceMappingURL=constants.d.ts.map
@@ -52,4 +52,3 @@ exports.BENEFIT_PERIOD_AVAILABILITY = {
52
52
  AGE_45_50_TOBACCO: [10, 20],
53
53
  AGE_51_60: [10, 20]
54
54
  };
55
- //# sourceMappingURL=constants.js.map
@@ -1,10 +1,383 @@
1
1
  export declare enum Gender {
2
- Male = 1,
3
- Female = 2
2
+ Male = "Male",
3
+ Female = "Female"
4
4
  }
5
5
  export declare enum PaymentFrequency {
6
- Annual = 1,
7
- Monthly = 12
6
+ Monthly = "Monthly",
7
+ Annually = "Annually"
8
+ }
9
+ export declare enum State {
10
+ Alaska = "AK",
11
+ Alabama = "AL",
12
+ Arkansas = "AR",
13
+ Arizona = "AZ",
14
+ California = "CA",
15
+ Colorado = "CO",
16
+ Connecticut = "CT",
17
+ WashingtonDC = "DC",
18
+ Delaware = "DE",
19
+ Florida = "FL",
20
+ Georgia = "GA",
21
+ Hawaii = "HI",
22
+ Iowa = "IA",
23
+ Idaho = "ID",
24
+ Illinois = "IL",
25
+ Indiana = "IN",
26
+ Kansas = "KS",
27
+ Kentucky = "KY",
28
+ Louisiana = "LA",
29
+ Massachusetts = "MA",
30
+ Maryland = "MD",
31
+ Maine = "ME",
32
+ Michigan = "MI",
33
+ Minnesota = "MN",
34
+ Missouri = "MO",
35
+ Mississippi = "MS",
36
+ Montana = "MT",
37
+ NorthCarolina = "NC",
38
+ NorthDakota = "ND",
39
+ Nebraska = "NE",
40
+ NewHampshire = "NH",
41
+ NewJersey = "NJ",
42
+ NewMexico = "NM",
43
+ Nevada = "NV",
44
+ NewYork = "NY",
45
+ Ohio = "OH",
46
+ Oklahoma = "OK",
47
+ Oregon = "OR",
48
+ Pennsylvania = "PA",
49
+ RhodeIsland = "RI",
50
+ SouthCarolina = "SC",
51
+ SouthDakota = "SD",
52
+ Tennessee = "TN",
53
+ Texas = "TX",
54
+ Utah = "UT",
55
+ Virginia = "VA",
56
+ Vermont = "VT",
57
+ Washington = "WA",
58
+ Wisconsin = "WI",
59
+ WestVirginia = "WV",
60
+ Wyoming = "WY",
61
+ Alberta = "AB",
62
+ BritishColumbia = "BC",
63
+ Manitoba = "MB",
64
+ NewBrunswick = "NB",
65
+ NorthwestTerritories = "NT",
66
+ NovaScotia = "NS",
67
+ Ontario = "ON",
68
+ PrinceEdwardIsland = "PE",
69
+ Quebec = "PQ",
70
+ Saskatchewan = "SK",
71
+ Yukon = "YT",
72
+ Nunavut = "NUNAVUT"
73
+ }
74
+ export declare enum BeneficiaryType {
75
+ Person = "Person",
76
+ AllChildrenOfTheInsuredEqually = "All Children Of The Insured Equally",
77
+ AllChildrenOfTheMarriageEqually = "All Children Of The Marriage Equally",
78
+ InsuredEstate = "Insured Estate",
79
+ Business = "Business",
80
+ Corporation = "Corporation",
81
+ CharitableOrganization = "Charitable Organization",
82
+ Employer = "Employer",
83
+ Other = "Other",
84
+ Trust = "Trust"
85
+ }
86
+ export declare enum BeneficiaryRelationship {
87
+ Aunt = "Aunt",
88
+ Boyfriend = "Boyfriend",
89
+ Brother = "Brother",
90
+ BrotherInLaw = "Brother In Law",
91
+ CommonLawHusband = "Common Law Husband",
92
+ CommonLawWife = "Common Law Wife",
93
+ Cousin = "Cousin",
94
+ Daughter = "Daughter",
95
+ DaughterInLaw = "Daughter In Law",
96
+ DomesticPartner = "Domestic Partner",
97
+ Father = "Father",
98
+ FatherInLaw = "Father In Law",
99
+ FatherOfChild = "Father Of Child",
100
+ Fiance = "Fiance",
101
+ Fiancee = "Fiancee",
102
+ FormerSpouse = "Former Spouse",
103
+ Friend = "Friend",
104
+ Girlfriend = "Girlfriend",
105
+ Granddaughter = "Granddaughter",
106
+ Grandfather = "Grandfather",
107
+ Grandmother = "Grandmother",
108
+ Grandson = "Grandson",
109
+ Husband = "Husband",
110
+ LifePartner = "Life Partner",
111
+ Mother = "Mother",
112
+ MotherInLaw = "Mother In Law",
113
+ MotherOfChild = "Mother Of Child",
114
+ Nephew = "Nephew",
115
+ Niece = "Niece",
116
+ Sister = "Sister",
117
+ SisterInLaw = "Sister In Law",
118
+ Son = "Son",
119
+ SonInLaw = "Son In Law",
120
+ Spouse = "Spouse",
121
+ Uncle = "Uncle",
122
+ Wife = "Wife"
123
+ }
124
+ export declare enum Country {
125
+ UnitedStates = "US",
126
+ Canada = "CA",
127
+ Afghanistan = "AF",
128
+ Albania = "AL",
129
+ Algeria = "DZ",
130
+ AmericanSamoa = "AS",
131
+ Andorra = "AD",
132
+ Angola = "AO",
133
+ Anguilla = "AI",
134
+ Antarctica = "AQ",
135
+ AntiguaAndBarbuda = "AG",
136
+ Argentina = "AR",
137
+ Armenia = "AM",
138
+ Aruba = "AW",
139
+ Australia = "AU",
140
+ Austria = "AT",
141
+ Azerbaijan = "AZ",
142
+ Bahamas = "BS",
143
+ Bahrain = "BH",
144
+ Bangladesh = "BD",
145
+ Barbados = "BB",
146
+ Belarus = "BY",
147
+ Belgium = "BE",
148
+ Belize = "BZ",
149
+ Benin = "BJ",
150
+ Bermuda = "BM",
151
+ Bhutan = "BT",
152
+ Bolivia = "BO",
153
+ BosniaAndHerzegovina = "BA",
154
+ Botswana = "BW",
155
+ BouvetIsland = "BV",
156
+ Brazil = "BR",
157
+ BritishIndianOceanTerritory = "IO",
158
+ BruneiDarussalam = "BN",
159
+ Bulgaria = "BG",
160
+ BurkinaFaso = "BF",
161
+ Burundi = "BI",
162
+ Cambodia = "KH",
163
+ Cameroon = "CM",
164
+ CaboVerde = "CV",
165
+ CaymanIslands = "KY",
166
+ CentralAfricanRepublic = "CF",
167
+ Chad = "TD",
168
+ Chile = "CL",
169
+ China = "CN",
170
+ ChristmasIsland = "CX",
171
+ CocosKeelingIslands = "CC",
172
+ Colombia = "CO",
173
+ Comoros = "KM",
174
+ Congo = "CG",
175
+ CongoDemocraticRepublic = "CD",
176
+ CookIslands = "CK",
177
+ CostaRica = "CR",
178
+ CoteDIvoire = "CI",
179
+ Croatia = "HR",
180
+ Cuba = "CU",
181
+ Curacao = "CW",
182
+ Cyprus = "CY",
183
+ Czechia = "CZ",
184
+ Denmark = "DK",
185
+ Djibouti = "DJ",
186
+ Dominica = "DM",
187
+ DominicanRepublic = "DO",
188
+ Ecuador = "EC",
189
+ Egypt = "EG",
190
+ ElSalvador = "SV",
191
+ EquatorialGuinea = "GQ",
192
+ Eritrea = "ER",
193
+ Estonia = "EE",
194
+ Ethiopia = "ET",
195
+ FalklandIslands = "FK",
196
+ FaroeIslands = "FO",
197
+ Fiji = "FJ",
198
+ Finland = "FI",
199
+ France = "FR",
200
+ FrenchGuiana = "GF",
201
+ FrenchPolynesia = "PF",
202
+ FrenchSouthernTerritories = "TF",
203
+ Gabon = "GA",
204
+ Gambia = "GM",
205
+ Georgia = "GE",
206
+ Germany = "DE",
207
+ Ghana = "GH",
208
+ Gibraltar = "GI",
209
+ Greece = "GR",
210
+ Greenland = "GL",
211
+ Grenada = "GD",
212
+ Guadeloupe = "GP",
213
+ Guam = "GU",
214
+ Guatemala = "GT",
215
+ Guernsey = "GG",
216
+ Guinea = "GN",
217
+ GuineaBissau = "GW",
218
+ Guyana = "GY",
219
+ Haiti = "HT",
220
+ HeardIslandAndMcDonaldIslands = "HM",
221
+ HolySee = "VA",
222
+ Honduras = "HN",
223
+ HongKong = "HK",
224
+ Hungary = "HU",
225
+ Iceland = "IS",
226
+ India = "IN",
227
+ Indonesia = "ID",
228
+ Iran = "IR",
229
+ Iraq = "IQ",
230
+ Ireland = "IE",
231
+ IsleOfMan = "IM",
232
+ Israel = "IL",
233
+ Italy = "IT",
234
+ Jamaica = "JM",
235
+ Japan = "JP",
236
+ Jersey = "JE",
237
+ Jordan = "JO",
238
+ Kazakhstan = "KZ",
239
+ Kenya = "KE",
240
+ Kiribati = "KI",
241
+ NorthKorea = "KP",
242
+ SouthKorea = "KR",
243
+ Kosovo = "XK",
244
+ Kuwait = "KW",
245
+ Kyrgyzstan = "KG",
246
+ LaoPeoplesDemocraticRepublic = "LA",
247
+ Latvia = "LV",
248
+ Lebanon = "LB",
249
+ Lesotho = "LS",
250
+ Liberia = "LR",
251
+ Libya = "LY",
252
+ Liechtenstein = "LI",
253
+ Lithuania = "LT",
254
+ Luxembourg = "LU",
255
+ Macao = "MO",
256
+ NorthMacedonia = "MK",
257
+ Madagascar = "MG",
258
+ Malawi = "MW",
259
+ Malaysia = "MY",
260
+ Maldives = "MV",
261
+ Mali = "ML",
262
+ Malta = "MT",
263
+ MarshallIslands = "MH",
264
+ Martinique = "MQ",
265
+ Mauritania = "MR",
266
+ Mauritius = "MU",
267
+ Mayotte = "YT",
268
+ Mexico = "MX",
269
+ Micronesia = "FM",
270
+ Moldova = "MD",
271
+ Monaco = "MC",
272
+ Mongolia = "MN",
273
+ Montenegro = "ME",
274
+ Montserrat = "MS",
275
+ Morocco = "MA",
276
+ Mozambique = "MZ",
277
+ Myanmar = "MM",
278
+ Namibia = "NA",
279
+ Nauru = "NR",
280
+ Nepal = "NP",
281
+ Netherlands = "NL",
282
+ NetherlandsAntilles = "AN",
283
+ NewCaledonia = "NC",
284
+ NewZealand = "NZ",
285
+ Nicaragua = "NI",
286
+ Niger = "NE",
287
+ Nigeria = "NG",
288
+ Niue = "NU",
289
+ NorfolkIsland = "NF",
290
+ NorthernMarianaIslands = "MP",
291
+ Norway = "NO",
292
+ Oman = "OM",
293
+ Pakistan = "PK",
294
+ Palau = "PW",
295
+ Palestine = "PS",
296
+ Panama = "PA",
297
+ PapuaNewGuinea = "PG",
298
+ Paraguay = "PY",
299
+ Peru = "PE",
300
+ Philippines = "PH",
301
+ Pitcairn = "PN",
302
+ Poland = "PL",
303
+ Portugal = "PT",
304
+ PuertoRico = "PR",
305
+ Qatar = "QA",
306
+ Reunion = "RE",
307
+ Romania = "RO",
308
+ RussianFederation = "RU",
309
+ Rwanda = "RW",
310
+ Samoa = "WS",
311
+ SanMarino = "SM",
312
+ SaoTomeAndPrincipe = "ST",
313
+ SaudiArabia = "SA",
314
+ Senegal = "SN",
315
+ Serbia = "RS",
316
+ Seychelles = "SC",
317
+ SierraLeone = "SL",
318
+ Singapore = "SG",
319
+ Slovakia = "SK",
320
+ Slovenia = "SI",
321
+ SolomonIslands = "SB",
322
+ Somalia = "SO",
323
+ SouthAfrica = "ZA",
324
+ SouthGeorgiaAndSouthSandwichIslands = "GS",
325
+ SouthSudan = "SS",
326
+ Spain = "ES",
327
+ SriLanka = "LK",
328
+ SaintPierreAndMiquelon = "PM",
329
+ SaintHelenaAscensionAndTristanDaCunha = "SH",
330
+ SaintKittsAndNevis = "KN",
331
+ SaintLucia = "LC",
332
+ SaintVincentAndTheGrenadines = "VC",
333
+ Sudan = "SD",
334
+ Suriname = "SR",
335
+ SvalbardAndJanMayen = "SJ",
336
+ Eswatini = "SZ",
337
+ Sweden = "SE",
338
+ Switzerland = "CH",
339
+ SyrianArabRepublic = "SY",
340
+ Taiwan = "TW",
341
+ Tajikistan = "TJ",
342
+ Tanzania = "TZ",
343
+ Thailand = "TH",
344
+ TimorLeste = "TL",
345
+ Togo = "TG",
346
+ Tokelau = "TK",
347
+ Tonga = "TO",
348
+ TrinidadAndTobago = "TT",
349
+ Tunisia = "TN",
350
+ Turkey = "TR",
351
+ Turkmenistan = "TM",
352
+ TurksAndCaicosIslands = "TC",
353
+ Tuvalu = "TV",
354
+ Uganda = "UG",
355
+ Ukraine = "UA",
356
+ UnitedArabEmirates = "AE",
357
+ UnitedKingdom = "GB",
358
+ UnitedStatesMinorOutlyingIslands = "UM",
359
+ Uruguay = "UY",
360
+ Uzbekistan = "UZ",
361
+ Vanuatu = "VU",
362
+ Venezuela = "VE",
363
+ VietNam = "VN",
364
+ VirginIslandsBritish = "VG",
365
+ VirginIslandsUS = "VI",
366
+ WallisAndFutuna = "WF",
367
+ WesternSahara = "EH",
368
+ Yemen = "YE",
369
+ Yugoslavia = "YU",
370
+ Zaire = "ZR",
371
+ Zambia = "ZM",
372
+ Zimbabwe = "ZW",
373
+ Bonaire = "BQ",
374
+ SintMaarten = "SX",
375
+ SaintBarthelemy = "BL",
376
+ SaintMartin = "MF",
377
+ England = "GB-ENG",
378
+ Scotland = "GB-SCT",
379
+ Wales = "GB-WLS",
380
+ Tibet = "TI"
8
381
  }
9
382
  export declare enum RateClass {
10
383
  PreferredPlus = "Preferred Plus",
@@ -22,6 +395,11 @@ export declare enum RiderType {
22
395
  ADBRider = "ADB Rider",
23
396
  DependentChildRider = "Dependent Child Rider"
24
397
  }
398
+ export declare enum AdbRiderType {
399
+ FamilyADB = "FamilyADB",
400
+ ReturnOfPremium = "ReturnOfPremium",
401
+ InflationBenefit = "InflationBenefit"
402
+ }
25
403
  export declare enum APIErrorCode {
26
404
  StateNotFound = "stateNotFound",
27
405
  RateClassNotFound = "RateClassNotFound",
@@ -51,6 +429,8 @@ export declare enum APIErrorCode {
51
429
  InvalidQuoteParameters = "InvalidQuoteParameters",
52
430
  InvalidRequestFormat = "InvalidRequestFormat",
53
431
  QuoteNotFound = "QuoteNotFound",
432
+ InvalidStateCode = "InvalidStateCode",
433
+ InvalidAdbAgeRange = "InvalidAdbAgeRange",
54
434
  PaymentNotMade = "paymentNotMade",
55
435
  SecureSignRelatedError = "SecureSignRelatedError",
56
436
  SigningPackageNotCreated = "SigningPackageNotCreated",
@@ -59,4 +439,3 @@ export declare enum APIErrorCode {
59
439
  DocumentsNotViewed = "DocumentsNotViewed",
60
440
  DocumentsAlreadySigned = "DocumentsAlreadySigned"
61
441
  }
62
- //# sourceMappingURL=enums.d.ts.map