@instabrain-sdks/api-client 2.3.1 → 2.3.3

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.
@@ -0,0 +1,59 @@
1
+ import { Gender, PaymentFrequency, PureTermRateClass, HealthClass } from './enums';
2
+ import { ThirdPartyQuoteReqHeight, ThirdPartyQuoteReqRider } from './quote.types';
3
+ /**
4
+ * Request body for `POST /api/ThirdPartyIbPureTermQuote/get`.
5
+ *
6
+ * Source of truth: ThirdPartyTermQuoteRequest.cs (InstaPureTerm product).
7
+ *
8
+ * **Validation rules (enforced server-side):**
9
+ * - `benefitPeriod` is required.
10
+ * - **One rating input group is required** — supply ONE of:
11
+ * (a) `rateClass`, OR
12
+ * (b) `healthClass`, OR
13
+ * (c) `height` + `weightInLbs` (both together).
14
+ * - `age` OR `dateOfBirth` required; resolved age must be 18–60. When both
15
+ * are provided, `dateOfBirth` takes priority.
16
+ * - `stateCode` required.
17
+ */
18
+ export interface ThirdPartyPureTermQuoteReq {
19
+ /**
20
+ * Coverage amount in dollars.
21
+ * Age-based limits apply — same schedule as IB Term.
22
+ */
23
+ faceAmount?: number | null;
24
+ /** Term length in years. **Required.** Available: 10, 20, 30 (state/age/tobacco dependent). */
25
+ benefitPeriod?: number | null;
26
+ /** Whether the applicant uses tobacco or nicotine. */
27
+ flagTobaccoUse: boolean;
28
+ /** Applicant gender. */
29
+ gender?: Gender | null;
30
+ /** 2-letter US state code. Required. */
31
+ stateCode?: string | null;
32
+ /** Rate class — one of the three rating groups (†). */
33
+ rateClass?: PureTermRateClass | null;
34
+ /** Health class — one of the three rating groups (†). */
35
+ healthClass?: HealthClass | null;
36
+ /**
37
+ * Applicant height. Required together with `weightInLbs` when using the
38
+ * height/weight rating path. Omit when rating via `rateClass` or `healthClass`.
39
+ */
40
+ height?: ThirdPartyQuoteReqHeight | null;
41
+ /** Applicant weight in lbs. Required together with `height`. */
42
+ weightInLbs?: number | null;
43
+ /** Applicant age (18–60). Provide `age` OR `dateOfBirth`. */
44
+ age?: number | null;
45
+ /** Applicant date of birth (ISO 8601). Takes priority over `age` when both are provided. */
46
+ dateOfBirth?: string | null;
47
+ /** Riders to include. Use `riderCode` values returned by the rider lookup endpoint. */
48
+ riders?: ThirdPartyQuoteReqRider[] | null;
49
+ /** Payment frequency. */
50
+ paymentFreq?: PaymentFrequency | null;
51
+ /** First name — alphabetic only. Lead capture. */
52
+ firstName?: string | null;
53
+ /** Last name — alphabetic only. Lead capture. */
54
+ lastName?: string | null;
55
+ /** Email address. Lead capture. */
56
+ email?: string | null;
57
+ /** Phone number — 10-digit local or E.164 format. Lead capture. */
58
+ phoneNum?: string | null;
59
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instabrain-sdks/api-client",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "Official Node.js SDK for InstaBrain APIs - Insurance quotes and application processing",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",