@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
@@ -1,18 +1,400 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.APIErrorCode = exports.RiderType = exports.HealthClass = exports.RateClass = exports.PaymentFrequency = exports.Gender = void 0;
4
- // Gender enum
3
+ exports.APIErrorCode = exports.AdbRiderType = exports.RiderType = exports.HealthClass = exports.RateClass = exports.Country = exports.BeneficiaryRelationship = exports.BeneficiaryType = exports.State = exports.PaymentFrequency = exports.Gender = void 0;
4
+ // Gender enum (string-based — used by GIGDB and other string-API products)
5
5
  var Gender;
6
6
  (function (Gender) {
7
- Gender[Gender["Male"] = 1] = "Male";
8
- Gender[Gender["Female"] = 2] = "Female";
7
+ Gender["Male"] = "Male";
8
+ Gender["Female"] = "Female";
9
9
  })(Gender || (exports.Gender = Gender = {}));
10
- // Payment frequency enum
10
+ // Payment frequency enum (string-based — used by GIGDB and other string-API products)
11
11
  var PaymentFrequency;
12
12
  (function (PaymentFrequency) {
13
- PaymentFrequency[PaymentFrequency["Annual"] = 1] = "Annual";
14
- PaymentFrequency[PaymentFrequency["Monthly"] = 12] = "Monthly";
13
+ PaymentFrequency["Monthly"] = "Monthly";
14
+ PaymentFrequency["Annually"] = "Annually";
15
15
  })(PaymentFrequency || (exports.PaymentFrequency = PaymentFrequency = {}));
16
+ // US states and Canadian provinces enum
17
+ var State;
18
+ (function (State) {
19
+ State["Alaska"] = "AK";
20
+ State["Alabama"] = "AL";
21
+ State["Arkansas"] = "AR";
22
+ State["Arizona"] = "AZ";
23
+ State["California"] = "CA";
24
+ State["Colorado"] = "CO";
25
+ State["Connecticut"] = "CT";
26
+ State["WashingtonDC"] = "DC";
27
+ State["Delaware"] = "DE";
28
+ State["Florida"] = "FL";
29
+ State["Georgia"] = "GA";
30
+ State["Hawaii"] = "HI";
31
+ State["Iowa"] = "IA";
32
+ State["Idaho"] = "ID";
33
+ State["Illinois"] = "IL";
34
+ State["Indiana"] = "IN";
35
+ State["Kansas"] = "KS";
36
+ State["Kentucky"] = "KY";
37
+ State["Louisiana"] = "LA";
38
+ State["Massachusetts"] = "MA";
39
+ State["Maryland"] = "MD";
40
+ State["Maine"] = "ME";
41
+ State["Michigan"] = "MI";
42
+ State["Minnesota"] = "MN";
43
+ State["Missouri"] = "MO";
44
+ State["Mississippi"] = "MS";
45
+ State["Montana"] = "MT";
46
+ State["NorthCarolina"] = "NC";
47
+ State["NorthDakota"] = "ND";
48
+ State["Nebraska"] = "NE";
49
+ State["NewHampshire"] = "NH";
50
+ State["NewJersey"] = "NJ";
51
+ State["NewMexico"] = "NM";
52
+ State["Nevada"] = "NV";
53
+ State["NewYork"] = "NY";
54
+ State["Ohio"] = "OH";
55
+ State["Oklahoma"] = "OK";
56
+ State["Oregon"] = "OR";
57
+ State["Pennsylvania"] = "PA";
58
+ State["RhodeIsland"] = "RI";
59
+ State["SouthCarolina"] = "SC";
60
+ State["SouthDakota"] = "SD";
61
+ State["Tennessee"] = "TN";
62
+ State["Texas"] = "TX";
63
+ State["Utah"] = "UT";
64
+ State["Virginia"] = "VA";
65
+ State["Vermont"] = "VT";
66
+ State["Washington"] = "WA";
67
+ State["Wisconsin"] = "WI";
68
+ State["WestVirginia"] = "WV";
69
+ State["Wyoming"] = "WY";
70
+ // Canadian provinces and territories
71
+ State["Alberta"] = "AB";
72
+ State["BritishColumbia"] = "BC";
73
+ State["Manitoba"] = "MB";
74
+ State["NewBrunswick"] = "NB";
75
+ State["NorthwestTerritories"] = "NT";
76
+ State["NovaScotia"] = "NS";
77
+ State["Ontario"] = "ON";
78
+ State["PrinceEdwardIsland"] = "PE";
79
+ State["Quebec"] = "PQ";
80
+ State["Saskatchewan"] = "SK";
81
+ State["Yukon"] = "YT";
82
+ State["Nunavut"] = "NUNAVUT";
83
+ })(State || (exports.State = State = {}));
84
+ // Beneficiary type enum
85
+ var BeneficiaryType;
86
+ (function (BeneficiaryType) {
87
+ BeneficiaryType["Person"] = "Person";
88
+ BeneficiaryType["AllChildrenOfTheInsuredEqually"] = "All Children Of The Insured Equally";
89
+ BeneficiaryType["AllChildrenOfTheMarriageEqually"] = "All Children Of The Marriage Equally";
90
+ BeneficiaryType["InsuredEstate"] = "Insured Estate";
91
+ BeneficiaryType["Business"] = "Business";
92
+ BeneficiaryType["Corporation"] = "Corporation";
93
+ BeneficiaryType["CharitableOrganization"] = "Charitable Organization";
94
+ BeneficiaryType["Employer"] = "Employer";
95
+ BeneficiaryType["Other"] = "Other";
96
+ BeneficiaryType["Trust"] = "Trust";
97
+ })(BeneficiaryType || (exports.BeneficiaryType = BeneficiaryType = {}));
98
+ // Beneficiary relationship enum
99
+ var BeneficiaryRelationship;
100
+ (function (BeneficiaryRelationship) {
101
+ BeneficiaryRelationship["Aunt"] = "Aunt";
102
+ BeneficiaryRelationship["Boyfriend"] = "Boyfriend";
103
+ BeneficiaryRelationship["Brother"] = "Brother";
104
+ BeneficiaryRelationship["BrotherInLaw"] = "Brother In Law";
105
+ BeneficiaryRelationship["CommonLawHusband"] = "Common Law Husband";
106
+ BeneficiaryRelationship["CommonLawWife"] = "Common Law Wife";
107
+ BeneficiaryRelationship["Cousin"] = "Cousin";
108
+ BeneficiaryRelationship["Daughter"] = "Daughter";
109
+ BeneficiaryRelationship["DaughterInLaw"] = "Daughter In Law";
110
+ BeneficiaryRelationship["DomesticPartner"] = "Domestic Partner";
111
+ BeneficiaryRelationship["Father"] = "Father";
112
+ BeneficiaryRelationship["FatherInLaw"] = "Father In Law";
113
+ BeneficiaryRelationship["FatherOfChild"] = "Father Of Child";
114
+ BeneficiaryRelationship["Fiance"] = "Fiance";
115
+ BeneficiaryRelationship["Fiancee"] = "Fiancee";
116
+ BeneficiaryRelationship["FormerSpouse"] = "Former Spouse";
117
+ BeneficiaryRelationship["Friend"] = "Friend";
118
+ BeneficiaryRelationship["Girlfriend"] = "Girlfriend";
119
+ BeneficiaryRelationship["Granddaughter"] = "Granddaughter";
120
+ BeneficiaryRelationship["Grandfather"] = "Grandfather";
121
+ BeneficiaryRelationship["Grandmother"] = "Grandmother";
122
+ BeneficiaryRelationship["Grandson"] = "Grandson";
123
+ BeneficiaryRelationship["Husband"] = "Husband";
124
+ BeneficiaryRelationship["LifePartner"] = "Life Partner";
125
+ BeneficiaryRelationship["Mother"] = "Mother";
126
+ BeneficiaryRelationship["MotherInLaw"] = "Mother In Law";
127
+ BeneficiaryRelationship["MotherOfChild"] = "Mother Of Child";
128
+ BeneficiaryRelationship["Nephew"] = "Nephew";
129
+ BeneficiaryRelationship["Niece"] = "Niece";
130
+ BeneficiaryRelationship["Sister"] = "Sister";
131
+ BeneficiaryRelationship["SisterInLaw"] = "Sister In Law";
132
+ BeneficiaryRelationship["Son"] = "Son";
133
+ BeneficiaryRelationship["SonInLaw"] = "Son In Law";
134
+ BeneficiaryRelationship["Spouse"] = "Spouse";
135
+ BeneficiaryRelationship["Uncle"] = "Uncle";
136
+ BeneficiaryRelationship["Wife"] = "Wife";
137
+ })(BeneficiaryRelationship || (exports.BeneficiaryRelationship = BeneficiaryRelationship = {}));
138
+ // Country enum
139
+ var Country;
140
+ (function (Country) {
141
+ Country["UnitedStates"] = "US";
142
+ Country["Canada"] = "CA";
143
+ Country["Afghanistan"] = "AF";
144
+ Country["Albania"] = "AL";
145
+ Country["Algeria"] = "DZ";
146
+ Country["AmericanSamoa"] = "AS";
147
+ Country["Andorra"] = "AD";
148
+ Country["Angola"] = "AO";
149
+ Country["Anguilla"] = "AI";
150
+ Country["Antarctica"] = "AQ";
151
+ Country["AntiguaAndBarbuda"] = "AG";
152
+ Country["Argentina"] = "AR";
153
+ Country["Armenia"] = "AM";
154
+ Country["Aruba"] = "AW";
155
+ Country["Australia"] = "AU";
156
+ Country["Austria"] = "AT";
157
+ Country["Azerbaijan"] = "AZ";
158
+ Country["Bahamas"] = "BS";
159
+ Country["Bahrain"] = "BH";
160
+ Country["Bangladesh"] = "BD";
161
+ Country["Barbados"] = "BB";
162
+ Country["Belarus"] = "BY";
163
+ Country["Belgium"] = "BE";
164
+ Country["Belize"] = "BZ";
165
+ Country["Benin"] = "BJ";
166
+ Country["Bermuda"] = "BM";
167
+ Country["Bhutan"] = "BT";
168
+ Country["Bolivia"] = "BO";
169
+ Country["BosniaAndHerzegovina"] = "BA";
170
+ Country["Botswana"] = "BW";
171
+ Country["BouvetIsland"] = "BV";
172
+ Country["Brazil"] = "BR";
173
+ Country["BritishIndianOceanTerritory"] = "IO";
174
+ Country["BruneiDarussalam"] = "BN";
175
+ Country["Bulgaria"] = "BG";
176
+ Country["BurkinaFaso"] = "BF";
177
+ Country["Burundi"] = "BI";
178
+ Country["Cambodia"] = "KH";
179
+ Country["Cameroon"] = "CM";
180
+ Country["CaboVerde"] = "CV";
181
+ Country["CaymanIslands"] = "KY";
182
+ Country["CentralAfricanRepublic"] = "CF";
183
+ Country["Chad"] = "TD";
184
+ Country["Chile"] = "CL";
185
+ Country["China"] = "CN";
186
+ Country["ChristmasIsland"] = "CX";
187
+ Country["CocosKeelingIslands"] = "CC";
188
+ Country["Colombia"] = "CO";
189
+ Country["Comoros"] = "KM";
190
+ Country["Congo"] = "CG";
191
+ Country["CongoDemocraticRepublic"] = "CD";
192
+ Country["CookIslands"] = "CK";
193
+ Country["CostaRica"] = "CR";
194
+ Country["CoteDIvoire"] = "CI";
195
+ Country["Croatia"] = "HR";
196
+ Country["Cuba"] = "CU";
197
+ Country["Curacao"] = "CW";
198
+ Country["Cyprus"] = "CY";
199
+ Country["Czechia"] = "CZ";
200
+ Country["Denmark"] = "DK";
201
+ Country["Djibouti"] = "DJ";
202
+ Country["Dominica"] = "DM";
203
+ Country["DominicanRepublic"] = "DO";
204
+ Country["Ecuador"] = "EC";
205
+ Country["Egypt"] = "EG";
206
+ Country["ElSalvador"] = "SV";
207
+ Country["EquatorialGuinea"] = "GQ";
208
+ Country["Eritrea"] = "ER";
209
+ Country["Estonia"] = "EE";
210
+ Country["Ethiopia"] = "ET";
211
+ Country["FalklandIslands"] = "FK";
212
+ Country["FaroeIslands"] = "FO";
213
+ Country["Fiji"] = "FJ";
214
+ Country["Finland"] = "FI";
215
+ Country["France"] = "FR";
216
+ Country["FrenchGuiana"] = "GF";
217
+ Country["FrenchPolynesia"] = "PF";
218
+ Country["FrenchSouthernTerritories"] = "TF";
219
+ Country["Gabon"] = "GA";
220
+ Country["Gambia"] = "GM";
221
+ Country["Georgia"] = "GE";
222
+ Country["Germany"] = "DE";
223
+ Country["Ghana"] = "GH";
224
+ Country["Gibraltar"] = "GI";
225
+ Country["Greece"] = "GR";
226
+ Country["Greenland"] = "GL";
227
+ Country["Grenada"] = "GD";
228
+ Country["Guadeloupe"] = "GP";
229
+ Country["Guam"] = "GU";
230
+ Country["Guatemala"] = "GT";
231
+ Country["Guernsey"] = "GG";
232
+ Country["Guinea"] = "GN";
233
+ Country["GuineaBissau"] = "GW";
234
+ Country["Guyana"] = "GY";
235
+ Country["Haiti"] = "HT";
236
+ Country["HeardIslandAndMcDonaldIslands"] = "HM";
237
+ Country["HolySee"] = "VA";
238
+ Country["Honduras"] = "HN";
239
+ Country["HongKong"] = "HK";
240
+ Country["Hungary"] = "HU";
241
+ Country["Iceland"] = "IS";
242
+ Country["India"] = "IN";
243
+ Country["Indonesia"] = "ID";
244
+ Country["Iran"] = "IR";
245
+ Country["Iraq"] = "IQ";
246
+ Country["Ireland"] = "IE";
247
+ Country["IsleOfMan"] = "IM";
248
+ Country["Israel"] = "IL";
249
+ Country["Italy"] = "IT";
250
+ Country["Jamaica"] = "JM";
251
+ Country["Japan"] = "JP";
252
+ Country["Jersey"] = "JE";
253
+ Country["Jordan"] = "JO";
254
+ Country["Kazakhstan"] = "KZ";
255
+ Country["Kenya"] = "KE";
256
+ Country["Kiribati"] = "KI";
257
+ Country["NorthKorea"] = "KP";
258
+ Country["SouthKorea"] = "KR";
259
+ Country["Kosovo"] = "XK";
260
+ Country["Kuwait"] = "KW";
261
+ Country["Kyrgyzstan"] = "KG";
262
+ Country["LaoPeoplesDemocraticRepublic"] = "LA";
263
+ Country["Latvia"] = "LV";
264
+ Country["Lebanon"] = "LB";
265
+ Country["Lesotho"] = "LS";
266
+ Country["Liberia"] = "LR";
267
+ Country["Libya"] = "LY";
268
+ Country["Liechtenstein"] = "LI";
269
+ Country["Lithuania"] = "LT";
270
+ Country["Luxembourg"] = "LU";
271
+ Country["Macao"] = "MO";
272
+ Country["NorthMacedonia"] = "MK";
273
+ Country["Madagascar"] = "MG";
274
+ Country["Malawi"] = "MW";
275
+ Country["Malaysia"] = "MY";
276
+ Country["Maldives"] = "MV";
277
+ Country["Mali"] = "ML";
278
+ Country["Malta"] = "MT";
279
+ Country["MarshallIslands"] = "MH";
280
+ Country["Martinique"] = "MQ";
281
+ Country["Mauritania"] = "MR";
282
+ Country["Mauritius"] = "MU";
283
+ Country["Mayotte"] = "YT";
284
+ Country["Mexico"] = "MX";
285
+ Country["Micronesia"] = "FM";
286
+ Country["Moldova"] = "MD";
287
+ Country["Monaco"] = "MC";
288
+ Country["Mongolia"] = "MN";
289
+ Country["Montenegro"] = "ME";
290
+ Country["Montserrat"] = "MS";
291
+ Country["Morocco"] = "MA";
292
+ Country["Mozambique"] = "MZ";
293
+ Country["Myanmar"] = "MM";
294
+ Country["Namibia"] = "NA";
295
+ Country["Nauru"] = "NR";
296
+ Country["Nepal"] = "NP";
297
+ Country["Netherlands"] = "NL";
298
+ Country["NetherlandsAntilles"] = "AN";
299
+ Country["NewCaledonia"] = "NC";
300
+ Country["NewZealand"] = "NZ";
301
+ Country["Nicaragua"] = "NI";
302
+ Country["Niger"] = "NE";
303
+ Country["Nigeria"] = "NG";
304
+ Country["Niue"] = "NU";
305
+ Country["NorfolkIsland"] = "NF";
306
+ Country["NorthernMarianaIslands"] = "MP";
307
+ Country["Norway"] = "NO";
308
+ Country["Oman"] = "OM";
309
+ Country["Pakistan"] = "PK";
310
+ Country["Palau"] = "PW";
311
+ Country["Palestine"] = "PS";
312
+ Country["Panama"] = "PA";
313
+ Country["PapuaNewGuinea"] = "PG";
314
+ Country["Paraguay"] = "PY";
315
+ Country["Peru"] = "PE";
316
+ Country["Philippines"] = "PH";
317
+ Country["Pitcairn"] = "PN";
318
+ Country["Poland"] = "PL";
319
+ Country["Portugal"] = "PT";
320
+ Country["PuertoRico"] = "PR";
321
+ Country["Qatar"] = "QA";
322
+ Country["Reunion"] = "RE";
323
+ Country["Romania"] = "RO";
324
+ Country["RussianFederation"] = "RU";
325
+ Country["Rwanda"] = "RW";
326
+ Country["Samoa"] = "WS";
327
+ Country["SanMarino"] = "SM";
328
+ Country["SaoTomeAndPrincipe"] = "ST";
329
+ Country["SaudiArabia"] = "SA";
330
+ Country["Senegal"] = "SN";
331
+ Country["Serbia"] = "RS";
332
+ Country["Seychelles"] = "SC";
333
+ Country["SierraLeone"] = "SL";
334
+ Country["Singapore"] = "SG";
335
+ Country["Slovakia"] = "SK";
336
+ Country["Slovenia"] = "SI";
337
+ Country["SolomonIslands"] = "SB";
338
+ Country["Somalia"] = "SO";
339
+ Country["SouthAfrica"] = "ZA";
340
+ Country["SouthGeorgiaAndSouthSandwichIslands"] = "GS";
341
+ Country["SouthSudan"] = "SS";
342
+ Country["Spain"] = "ES";
343
+ Country["SriLanka"] = "LK";
344
+ Country["SaintPierreAndMiquelon"] = "PM";
345
+ Country["SaintHelenaAscensionAndTristanDaCunha"] = "SH";
346
+ Country["SaintKittsAndNevis"] = "KN";
347
+ Country["SaintLucia"] = "LC";
348
+ Country["SaintVincentAndTheGrenadines"] = "VC";
349
+ Country["Sudan"] = "SD";
350
+ Country["Suriname"] = "SR";
351
+ Country["SvalbardAndJanMayen"] = "SJ";
352
+ Country["Eswatini"] = "SZ";
353
+ Country["Sweden"] = "SE";
354
+ Country["Switzerland"] = "CH";
355
+ Country["SyrianArabRepublic"] = "SY";
356
+ Country["Taiwan"] = "TW";
357
+ Country["Tajikistan"] = "TJ";
358
+ Country["Tanzania"] = "TZ";
359
+ Country["Thailand"] = "TH";
360
+ Country["TimorLeste"] = "TL";
361
+ Country["Togo"] = "TG";
362
+ Country["Tokelau"] = "TK";
363
+ Country["Tonga"] = "TO";
364
+ Country["TrinidadAndTobago"] = "TT";
365
+ Country["Tunisia"] = "TN";
366
+ Country["Turkey"] = "TR";
367
+ Country["Turkmenistan"] = "TM";
368
+ Country["TurksAndCaicosIslands"] = "TC";
369
+ Country["Tuvalu"] = "TV";
370
+ Country["Uganda"] = "UG";
371
+ Country["Ukraine"] = "UA";
372
+ Country["UnitedArabEmirates"] = "AE";
373
+ Country["UnitedKingdom"] = "GB";
374
+ Country["UnitedStatesMinorOutlyingIslands"] = "UM";
375
+ Country["Uruguay"] = "UY";
376
+ Country["Uzbekistan"] = "UZ";
377
+ Country["Vanuatu"] = "VU";
378
+ Country["Venezuela"] = "VE";
379
+ Country["VietNam"] = "VN";
380
+ Country["VirginIslandsBritish"] = "VG";
381
+ Country["VirginIslandsUS"] = "VI";
382
+ Country["WallisAndFutuna"] = "WF";
383
+ Country["WesternSahara"] = "EH";
384
+ Country["Yemen"] = "YE";
385
+ Country["Yugoslavia"] = "YU";
386
+ Country["Zaire"] = "ZR";
387
+ Country["Zambia"] = "ZM";
388
+ Country["Zimbabwe"] = "ZW";
389
+ Country["Bonaire"] = "BQ";
390
+ Country["SintMaarten"] = "SX";
391
+ Country["SaintBarthelemy"] = "BL";
392
+ Country["SaintMartin"] = "MF";
393
+ Country["England"] = "GB-ENG";
394
+ Country["Scotland"] = "GB-SCT";
395
+ Country["Wales"] = "GB-WLS";
396
+ Country["Tibet"] = "TI";
397
+ })(Country || (exports.Country = Country = {}));
16
398
  // Rate class enum - matches API values exactly
17
399
  var RateClass;
18
400
  (function (RateClass) {
@@ -29,12 +411,22 @@ var HealthClass;
29
411
  HealthClass["Good"] = "Good";
30
412
  HealthClass["Average"] = "Average";
31
413
  })(HealthClass || (exports.HealthClass = HealthClass = {}));
32
- // Rider types enum
414
+ // Rider types enum (Term product)
33
415
  var RiderType;
34
416
  (function (RiderType) {
35
417
  RiderType["ADBRider"] = "ADB Rider";
36
418
  RiderType["DependentChildRider"] = "Dependent Child Rider";
37
419
  })(RiderType || (exports.RiderType = RiderType = {}));
420
+ // Rider codes for the ADB (Accidental Death Benefit) product.
421
+ // These are the rider *codes* (not titles) — pass them as `riders` on the
422
+ // ADB quote / update-quote requests. Titles/descriptions are returned by
423
+ // `getAdbRiderDetails()` as `AdbRiderResp.riderTitle` / `riderDescription`.
424
+ var AdbRiderType;
425
+ (function (AdbRiderType) {
426
+ AdbRiderType["FamilyADB"] = "FamilyADB";
427
+ AdbRiderType["ReturnOfPremium"] = "ReturnOfPremium";
428
+ AdbRiderType["InflationBenefit"] = "InflationBenefit";
429
+ })(AdbRiderType || (exports.AdbRiderType = AdbRiderType = {}));
38
430
  // API Error codes enum
39
431
  var APIErrorCode;
40
432
  (function (APIErrorCode) {
@@ -67,6 +459,9 @@ var APIErrorCode;
67
459
  APIErrorCode["InvalidQuoteParameters"] = "InvalidQuoteParameters";
68
460
  APIErrorCode["InvalidRequestFormat"] = "InvalidRequestFormat";
69
461
  APIErrorCode["QuoteNotFound"] = "QuoteNotFound";
462
+ // ADB-specific error codes
463
+ APIErrorCode["InvalidStateCode"] = "InvalidStateCode";
464
+ APIErrorCode["InvalidAdbAgeRange"] = "InvalidAdbAgeRange";
70
465
  // Final Submit error codes
71
466
  APIErrorCode["PaymentNotMade"] = "paymentNotMade";
72
467
  // Secure Sign error codes
@@ -77,4 +472,3 @@ var APIErrorCode;
77
472
  APIErrorCode["DocumentsNotViewed"] = "DocumentsNotViewed";
78
473
  APIErrorCode["DocumentsAlreadySigned"] = "DocumentsAlreadySigned";
79
474
  })(APIErrorCode || (exports.APIErrorCode = APIErrorCode = {}));
80
- //# sourceMappingURL=enums.js.map
@@ -27,4 +27,3 @@ export declare class APIValidationError extends InstaBrainError {
27
27
  */
28
28
  getUserFriendlyMessage(): string;
29
29
  }
30
- //# sourceMappingURL=errors.d.ts.map
@@ -91,4 +91,3 @@ class APIValidationError extends InstaBrainError {
91
91
  }
92
92
  }
93
93
  exports.APIValidationError = APIValidationError;
94
- //# sourceMappingURL=errors.js.map
@@ -1,4 +1,5 @@
1
1
  import { Gender, PaymentFrequency } from './enums';
2
+ import { BeneficiaryDetails } from './beneficiary.types';
2
3
  export interface ThirdPartyGigdbQuoteRequest {
3
4
  /** Face amount for GIGDB product ($5,000 - $25,000) */
4
5
  faceAmount: number | null;
@@ -50,24 +51,57 @@ export interface GigdbExistingCoverageInfo {
50
51
  dateOfIssue: string | null;
51
52
  toBeReplaced: boolean | null;
52
53
  toBeFinanced: boolean | null;
54
+ /** Required when address.state === "MA" */
55
+ requestsYieldIndices?: boolean | null;
56
+ /** Required when address.state === "OK" */
57
+ notifyPresentInsurer?: boolean | null;
58
+ /** Required when address.state is "DE" or "GA" */
59
+ wantsPolicySummary?: boolean | null;
60
+ /** Required when address.state === "FL" */
61
+ wantsComparativeInformationForm?: boolean | null;
53
62
  }
54
63
  export interface GigdbExistingCoverageData {
64
+ isExistingPolicyBeingTerminated: boolean | null;
55
65
  existingCoverages: GigdbExistingCoverageInfo[] | null;
66
+ /** Required when address.state is "RI" or "WV" */
67
+ areExistingPoliciesIssuedByFidelity?: boolean | null;
56
68
  }
57
- export interface GigdbBeneficiaryPerson {
58
- firstName: string | null;
59
- lastName: string | null;
60
- relationship: string | null;
61
- }
62
- export interface GigdbNamedEntity {
63
- name: string | null;
64
- taxId: string | null;
65
- trustDate: string | null;
69
+ /**
70
+ * Washington-only replacement disclosure block — all 7 booleans are required server-side.
71
+ * Each `specify*` field is required when its boolean is `true`.
72
+ */
73
+ export interface GigdbOtherInsuranceReplacementData {
74
+ mayReduceBenefitsIncreasePremiums: boolean;
75
+ /** Required when mayReduceBenefitsIncreasePremiums === true */
76
+ specifyReduceBenefitsIncreasePremiums?: string | null;
77
+ hasNewPolicyCharges: boolean;
78
+ /** Required when hasNewPolicyCharges === true */
79
+ specifyNewPolicyCharges?: string | null;
80
+ hasPriorPolicyCharges: boolean;
81
+ /** Required when hasPriorPolicyCharges === true */
82
+ specifyPriorPolicyCharges?: string | null;
83
+ hasTaxConsequences: boolean;
84
+ /** Required when hasTaxConsequences === true */
85
+ specifyTaxConsequences?: string | null;
86
+ hasInterestConsiderations: boolean;
87
+ /** Required when hasInterestConsiderations === true */
88
+ specifyInterestConsiderations?: string | null;
89
+ hasMinRequirementsBeforeInterest: boolean;
90
+ /** Required when hasMinRequirementsBeforeInterest === true */
91
+ specifyMinRequirementsBeforeInterest?: string | null;
92
+ hasOtherAdverseEffects: boolean;
93
+ /** Required when hasOtherAdverseEffects === true */
94
+ specifyOtherAdverseEffects?: string | null;
66
95
  }
67
- export interface GigdbBeneficiaryDetails {
68
- beneficiaryType: string | null;
69
- beneficiaryPerson: GigdbBeneficiaryPerson | null;
70
- namedEntity: GigdbNamedEntity | null;
96
+ /**
97
+ * Top-level wrapper for KS / WA replacement-or-financing disclosures.
98
+ * Required when address.state is "KS" or "WA" AND willOtherCoverageBeReplacedOrFinanced === true.
99
+ */
100
+ export interface GigdbWillOtherCoverageBeReplacedOrFinancedData {
101
+ /** Required for KS when willOtherCoverageBeReplacedOrFinanced === true */
102
+ areReplacedPoliciesIssuedByFidelity?: boolean | null;
103
+ /** Required for WA when willOtherCoverageBeReplacedOrFinanced === true */
104
+ otherInsuranceReplacementData?: GigdbOtherInsuranceReplacementData | null;
71
105
  }
72
106
  export interface ThirdPartyGigdbAppReq {
73
107
  quoteResponseId: string;
@@ -83,11 +117,13 @@ export interface ThirdPartyGigdbAppReq {
83
117
  hasExistingCoverage: boolean | null;
84
118
  willOtherCoverageBeReplacedOrFinanced: boolean | null;
85
119
  existingCoverageData: GigdbExistingCoverageData | null;
86
- beneficiaryDetails: GigdbBeneficiaryDetails;
120
+ beneficiaryDetails: BeneficiaryDetails;
87
121
  isSmoker: boolean | null;
88
122
  isLegalUsResident: boolean | null;
89
123
  birthJurisdiction: GigdbBirthJurisdiction;
90
124
  nicotineInfo: GigdbNicotineInfo | null;
125
+ /** Required for KS or WA when willOtherCoverageBeReplacedOrFinanced === true */
126
+ willOtherCoverageBeReplacedOrFinancedData?: GigdbWillOtherCoverageBeReplacedOrFinancedData | null;
91
127
  }
92
128
  export interface ThirdPartyEftPaymentReq {
93
129
  opportunityId: string;
@@ -95,4 +131,3 @@ export interface ThirdPartyEftPaymentReq {
95
131
  routingNumber: string | null;
96
132
  accountNumber: string | null;
97
133
  }
98
- //# sourceMappingURL=gigdb.types.d.ts.map
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=gigdb.types.js.map
@@ -5,7 +5,9 @@ export * from './reports.types';
5
5
  export * from './enums';
6
6
  export * from './errors';
7
7
  export * from './constants';
8
+ export * from './beneficiary.types';
8
9
  export * from './gigdb.types';
10
+ export * from './adb.types';
9
11
  export * from './secure-sign.types';
10
12
  /**
11
13
  * Base configuration for the InstaBrain SDK
@@ -43,4 +45,3 @@ export interface ThirdPartyQuoterCategory {
43
45
  categoryType: string | null;
44
46
  categoryLabel: string | null;
45
47
  }
46
- //# sourceMappingURL=index.d.ts.map
@@ -22,6 +22,7 @@ __exportStar(require("./reports.types"), exports);
22
22
  __exportStar(require("./enums"), exports);
23
23
  __exportStar(require("./errors"), exports);
24
24
  __exportStar(require("./constants"), exports);
25
+ __exportStar(require("./beneficiary.types"), exports);
25
26
  __exportStar(require("./gigdb.types"), exports);
27
+ __exportStar(require("./adb.types"), exports);
26
28
  __exportStar(require("./secure-sign.types"), exports);
27
- //# sourceMappingURL=index.js.map
@@ -184,4 +184,3 @@ export interface ThirdPartyQuoteResp {
184
184
  productName: string | null;
185
185
  selectedQuote: Quote;
186
186
  }
187
- //# sourceMappingURL=quote.types.d.ts.map
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=quote.types.js.map
@@ -191,4 +191,3 @@ export interface ThirdPartyApplicationReportRes {
191
191
  applicationFilters?: ApplicationFilters | null;
192
192
  availableFilters?: AgentPortalReqFilters[] | null;
193
193
  }
194
- //# sourceMappingURL=reports.types.d.ts.map
@@ -19,4 +19,3 @@ var SQLOperator;
19
19
  // ============ SHARED TYPES ============
20
20
  // These types are imported from other modules to avoid duplication
21
21
  // RidersList and QuoteParts are already defined in quote.types.ts
22
- //# sourceMappingURL=reports.types.js.map
@@ -79,4 +79,3 @@ export interface ThirdPartyFinalSubmitResp {
79
79
  /** The policy number issued by the carrier. May be null if pending carrier decision */
80
80
  policyNumber: string | null;
81
81
  }
82
- //# sourceMappingURL=secure-sign.types.d.ts.map
@@ -2,4 +2,3 @@
2
2
  // Secure Sign types - shared across all products (not GIGDB-specific)
3
3
  // Used for document signing flow after EFT payment
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=secure-sign.types.js.map
@@ -10,4 +10,3 @@ export declare function extractErrorCode(response: {
10
10
  errorCode?: string;
11
11
  error?: string | null;
12
12
  }): string | null;
13
- //# sourceMappingURL=error-utils.d.ts.map
@@ -28,4 +28,3 @@ function extractErrorCode(response) {
28
28
  }
29
29
  return null;
30
30
  }
31
- //# sourceMappingURL=error-utils.js.map
@@ -59,4 +59,3 @@ export declare class HttpClient {
59
59
  */
60
60
  getBaseUrl(): string;
61
61
  }
62
- //# sourceMappingURL=http-client.d.ts.map
@@ -107,18 +107,15 @@ class HttpClient {
107
107
  var _a;
108
108
  if (this.jwtToken && this.isTokenExpired() && this.authCredentials) {
109
109
  try {
110
- console.log('🔄 Auto-refreshing expired JWT token...');
111
110
  const response = await this.axiosInstance.post('/api/ThirdParty/auth', {
112
111
  userId: this.authCredentials.userId,
113
112
  accessToken: this.authCredentials.accessToken
114
113
  });
115
114
  if (response.data.flagStatus && ((_a = response.data.value) === null || _a === void 0 ? void 0 : _a.jwtToken)) {
116
115
  this.setJwtToken(response.data.value.jwtToken);
117
- console.log('✅ JWT token refreshed successfully');
118
116
  }
119
117
  }
120
118
  catch (error) {
121
- console.error('❌ Failed to refresh JWT token:', error);
122
119
  this.jwtToken = null;
123
120
  this.tokenExpiry = null;
124
121
  throw error;
@@ -173,4 +170,3 @@ class HttpClient {
173
170
  }
174
171
  }
175
172
  exports.HttpClient = HttpClient;
176
- //# sourceMappingURL=http-client.js.map