@instabrain-sdks/api-client 2.0.0 → 2.1.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 (50) hide show
  1. package/README.md +1228 -348
  2. package/dist/client/instabrain-client.d.ts +34 -2
  3. package/dist/client/instabrain-client.js +42 -1
  4. package/dist/index.d.ts +0 -1
  5. package/dist/index.js +0 -1
  6. package/dist/services/adb.service.d.ts +48 -0
  7. package/dist/services/adb.service.js +64 -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 +119 -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 +379 -5
  33. package/dist/types/enums.js +392 -8
  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 +3 -17
  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 -2
@@ -0,0 +1,119 @@
1
+ import { Gender, PaymentFrequency } 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 names validated against ADB product */
22
+ riders?: string[];
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
+ export interface AdbAddress {
33
+ addressLine1: string;
34
+ city: string;
35
+ /** Valid 2-letter US state code; must match state used at quote time */
36
+ state: string;
37
+ /** 5-digit numeric */
38
+ zipcode: string;
39
+ }
40
+ export interface AdbExistingCoverageInfo {
41
+ nameOfTheCompany: string;
42
+ insuranceAmount: string;
43
+ /** Format: YYYY-MM */
44
+ dateOfIssue: string;
45
+ toBeReplaced: boolean;
46
+ toBeFinanced: boolean;
47
+ }
48
+ export interface AdbExistingCoverageData {
49
+ isExistingPolicyBeingTerminated: boolean;
50
+ existingCoverages: AdbExistingCoverageInfo[];
51
+ }
52
+ /**
53
+ * Request for ADB start application
54
+ * POST /api/ThirdPartyAdbApplication/start-application
55
+ *
56
+ * Knockout rules (returns isDeclined: true, no opportunityId created):
57
+ * - isPayerAlsoOwnerAndInsured = false
58
+ * - isUsCitizen = false AND isLegalUsResident = false
59
+ */
60
+ export interface ThirdPartyAdbAppReq {
61
+ /** UUID from the ADB quote response */
62
+ quoteResponseId: string;
63
+ /** Max 35 chars */
64
+ firstName: string;
65
+ /** Max 35 chars */
66
+ lastName: string;
67
+ /** Valid email format */
68
+ email: string;
69
+ /** 10-digit numeric */
70
+ phoneNumber: string;
71
+ isUsCitizen: boolean;
72
+ /** Required when isUsCitizen = false */
73
+ isLegalUsResident?: boolean;
74
+ /** Must be true to proceed — knockout if false */
75
+ isPayerAlsoOwnerAndInsured: boolean;
76
+ address: AdbAddress;
77
+ /** ISO 8601; age must be 20-59 */
78
+ dateOfBirth: string;
79
+ /** Format: XXX-XX-XXXX */
80
+ socialSecurityNumber: string;
81
+ hasExistingCoverage: boolean;
82
+ /** Required when hasExistingCoverage = true */
83
+ willOtherCoverageBeReplacedOrFinanced?: boolean;
84
+ /** Required when hasExistingCoverage = true */
85
+ existingCoverageData?: AdbExistingCoverageData;
86
+ beneficiaryDetails: BeneficiaryDetails;
87
+ }
88
+ /** A single rider option returned for a state */
89
+ export interface AdbRiderResp {
90
+ /** Pass into the Quote API Riders array to include this rider */
91
+ riderCode: string;
92
+ /** Display title for UI rendering */
93
+ riderTitle: string;
94
+ /** Display description for UI rendering */
95
+ riderDescription: string;
96
+ }
97
+ /**
98
+ * Response from GET /api/ThirdPartyAdbLookup/get-rider-details
99
+ * Call before getAdbQuote() to check state availability and available riders.
100
+ */
101
+ export interface AdbRiderDetailsResp {
102
+ /** Available riders for the state. May be empty even when product is available. */
103
+ riders: AdbRiderResp[];
104
+ /**
105
+ * true → ADB is not available in this state; do not proceed to quote.
106
+ * false → ADB is available; riders array may still be empty (no optional riders configured).
107
+ */
108
+ flagProductNotAvailableForState: boolean;
109
+ }
110
+ /**
111
+ * Response from ADB start application
112
+ * isDeclined: true is a valid success (knockout) — not an error
113
+ */
114
+ export interface ThirdPartyAdbStartAppResp {
115
+ /** UUID of the created application. Empty GUID when isDeclined = true */
116
+ opportunityId: string;
117
+ /** true if a knockout criterion was met — no application was created */
118
+ isDeclined: boolean;
119
+ }
@@ -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",
@@ -51,6 +424,8 @@ export declare enum APIErrorCode {
51
424
  InvalidQuoteParameters = "InvalidQuoteParameters",
52
425
  InvalidRequestFormat = "InvalidRequestFormat",
53
426
  QuoteNotFound = "QuoteNotFound",
427
+ InvalidStateCode = "InvalidStateCode",
428
+ InvalidAdbAgeRange = "InvalidAdbAgeRange",
54
429
  PaymentNotMade = "paymentNotMade",
55
430
  SecureSignRelatedError = "SecureSignRelatedError",
56
431
  SigningPackageNotCreated = "SigningPackageNotCreated",
@@ -59,4 +434,3 @@ export declare enum APIErrorCode {
59
434
  DocumentsNotViewed = "DocumentsNotViewed",
60
435
  DocumentsAlreadySigned = "DocumentsAlreadySigned"
61
436
  }
62
- //# sourceMappingURL=enums.d.ts.map