@star-insure/sdk 1.1.12 → 1.1.13

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 (93) hide show
  1. package/dist/components/common/Button.d.ts +14 -0
  2. package/dist/components/common/Card.d.ts +7 -0
  3. package/dist/components/common/Modal.d.ts +9 -0
  4. package/dist/components/common/Pagination.d.ts +9 -0
  5. package/dist/components/common/ToastItem.d.ts +3 -0
  6. package/dist/components/common/Toasts.d.ts +2 -0
  7. package/dist/components/common/index.d.ts +7 -0
  8. package/dist/components/forms/DateOfBirthField.d.ts +7 -0
  9. package/dist/components/forms/ErrorList.d.ts +10 -0
  10. package/dist/components/forms/FormTester.d.ts +6 -0
  11. package/dist/components/forms/MoneyField.d.ts +11 -0
  12. package/dist/components/forms/RegistrationSearchField.d.ts +23 -0
  13. package/dist/components/forms/index.d.ts +6 -0
  14. package/dist/components/index.d.ts +3 -0
  15. package/dist/components/tables/Table.d.ts +6 -0
  16. package/dist/components/tables/TableActions.d.ts +7 -0
  17. package/dist/components/tables/TableBody.d.ts +7 -0
  18. package/dist/components/tables/TableCell.d.ts +7 -0
  19. package/dist/components/tables/TableHead.d.ts +7 -0
  20. package/dist/components/tables/TableHeader.d.ts +9 -0
  21. package/dist/components/tables/TableRow.d.ts +8 -0
  22. package/dist/components/tables/index.d.ts +8 -0
  23. package/{index.js → dist/index.d.ts} +3 -4
  24. package/dist/index.js +8 -0
  25. package/dist/lib/addressFinder.d.ts +54 -0
  26. package/dist/lib/auth.d.ts +2 -0
  27. package/dist/lib/calculateAge.d.ts +5 -0
  28. package/dist/lib/clickOutside.d.ts +1 -0
  29. package/dist/lib/dates.d.ts +8 -0
  30. package/dist/lib/index.d.ts +12 -0
  31. package/dist/lib/inertiaOptions.d.ts +6 -0
  32. package/dist/lib/localStorage.d.ts +1 -0
  33. package/dist/lib/money.d.ts +32 -0
  34. package/dist/lib/quoteRequestForm.d.ts +19 -0
  35. package/dist/lib/quoteRequestOptions.d.ts +11 -0
  36. package/dist/lib/toast.d.ts +10 -0
  37. package/dist/lib/vehicles.d.ts +2 -0
  38. package/dist/sdk.cjs.development.js +2005 -0
  39. package/dist/sdk.cjs.development.js.map +1 -0
  40. package/dist/sdk.cjs.production.min.js +2 -0
  41. package/dist/sdk.cjs.production.min.js.map +1 -0
  42. package/dist/sdk.esm.js +1955 -0
  43. package/dist/sdk.esm.js.map +1 -0
  44. package/dist/types/api/auth.d.ts +9 -0
  45. package/dist/types/api/enums.d.ts +4 -0
  46. package/dist/types/api/index.d.ts +31 -0
  47. package/dist/types/api/responses/claimRequestActions.d.ts +12 -0
  48. package/dist/types/api/responses/index.d.ts +1 -0
  49. package/dist/types/index.d.ts +3 -0
  50. package/dist/types/misc/index.d.ts +8 -0
  51. package/dist/types/misc/inertia.d.ts +8 -0
  52. package/dist/types/models/auth/Group.d.ts +10 -0
  53. package/dist/types/models/auth/Permission.d.ts +4 -0
  54. package/dist/types/models/auth/Role.d.ts +6 -0
  55. package/dist/types/models/auth/User.d.ts +12 -0
  56. package/dist/types/models/auth/index.d.ts +4 -0
  57. package/dist/types/models/claims/ClaimRequest.d.ts +287 -0
  58. package/dist/types/models/claims/index.d.ts +1 -0
  59. package/dist/types/models/index.d.ts +6 -0
  60. package/dist/types/models/oracle/Risk.d.ts +8 -0
  61. package/dist/types/models/oracle/TableData.d.ts +9 -0
  62. package/dist/types/models/oracle/index.d.ts +2 -0
  63. package/dist/types/models/payments/Gateways.d.ts +1 -0
  64. package/dist/types/models/payments/Payment.d.ts +35 -0
  65. package/dist/types/models/payments/index.d.ts +2 -0
  66. package/dist/types/models/quotes/Club.d.ts +4 -0
  67. package/dist/types/models/quotes/EmailContentOption.d.ts +7 -0
  68. package/dist/types/models/quotes/InformationRequest.d.ts +34 -0
  69. package/dist/types/models/quotes/Lead.d.ts +17 -0
  70. package/dist/types/models/quotes/MotorwebVehicle.d.ts +120 -0
  71. package/dist/types/models/quotes/PolicyBenefit.d.ts +16 -0
  72. package/dist/types/models/quotes/PolicyEnhancement.d.ts +11 -0
  73. package/dist/types/models/quotes/PostalAddress.d.ts +7 -0
  74. package/dist/types/models/quotes/PromoCode.d.ts +18 -0
  75. package/dist/types/models/quotes/QuoteRequest.d.ts +88 -0
  76. package/dist/types/models/quotes/QuoteRequestDeclaration.d.ts +22 -0
  77. package/dist/types/models/quotes/QuoteRequestForm.d.ts +112 -0
  78. package/dist/types/models/quotes/QuoteRequestIncident.d.ts +5 -0
  79. package/dist/types/models/quotes/QuoteRequestLog.d.ts +10 -0
  80. package/dist/types/models/quotes/QuoteRequestOptions.d.ts +59 -0
  81. package/dist/types/models/quotes/QuoteRequestPurchaseOption.d.ts +35 -0
  82. package/dist/types/models/quotes/QuoteRequestReferrer.d.ts +7 -0
  83. package/dist/types/models/quotes/QuoteRequestReferrerCategory.d.ts +4 -0
  84. package/dist/types/models/quotes/QuoteRequestVehicle.d.ts +20 -0
  85. package/dist/types/models/quotes/QuoteRequestVehicleDriver.d.ts +10 -0
  86. package/dist/types/models/quotes/RedbookVehicle.d.ts +55 -0
  87. package/dist/types/models/quotes/StreetAddress.d.ts +8 -0
  88. package/dist/types/models/quotes/index.d.ts +22 -0
  89. package/dist/types/models/sms-messages/SmsContentOption.d.ts +7 -0
  90. package/dist/types/models/sms-messages/SmsMessage.d.ts +18 -0
  91. package/dist/types/models/sms-messages/SmsMessageReply.d.ts +10 -0
  92. package/dist/types/models/sms-messages/index.d.ts +3 -0
  93. package/package.json +26 -3
@@ -0,0 +1,88 @@
1
+ import { Club } from "./Club";
2
+ import { InformationRequest } from "./InformationRequest";
3
+ import { Lead } from "./Lead";
4
+ import { PostalAddress } from "./PostalAddress";
5
+ import { QuoteRequestDeclaration } from "./QuoteRequestDeclaration";
6
+ import { QuoteRequestLog } from "./QuoteRequestLog";
7
+ import { QuoteRequestPurchaseOption } from "./QuoteRequestPurchaseOption";
8
+ import { QuoteRequestReferrer } from "./QuoteRequestReferrer";
9
+ import { QuoteRequestReferrerCategory } from "./QuoteRequestReferrerCategory";
10
+ import { QuoteRequestVehicle } from "./QuoteRequestVehicle";
11
+ import { StreetAddress } from "./StreetAddress";
12
+ export declare type QuoteRequestStatus = 'new' | 'draft' | 'in-progress' | 'with-customer' | 'sold' | 'bound' | 'customer-modified' | 'closed';
13
+ export declare type QuoteRequestSource = 'web' | 'phone' | 'show' | 'existing-customer' | 'mighway' | 'agent' | 'entry-form' | 'bularangi';
14
+ export declare type QuoteRequestAutomatch = 'quote' | 'email' | 'registration' | 'duplicate';
15
+ export interface QuoteRequestUser {
16
+ id: number;
17
+ name: string;
18
+ email: string;
19
+ }
20
+ export interface QuoteRequestUserGroup {
21
+ id: number;
22
+ name: string;
23
+ }
24
+ export interface QuoteRequest {
25
+ id?: string;
26
+ status?: QuoteRequestStatus;
27
+ source?: QuoteRequestSource;
28
+ reference?: string;
29
+ client_number?: string;
30
+ policy_number?: string;
31
+ first_name?: string;
32
+ last_name?: string;
33
+ phone?: string;
34
+ mobile?: string;
35
+ email?: string;
36
+ licence?: string;
37
+ licence_other?: string;
38
+ has_automatch?: boolean;
39
+ automatch_by?: QuoteRequestAutomatch;
40
+ automatch_client_id?: string;
41
+ automatch_registrations?: string;
42
+ promo_code?: string;
43
+ club_membership_number?: string;
44
+ broker_fee?: number;
45
+ length_of_insurance?: string;
46
+ theme?: string;
47
+ notes?: string;
48
+ created_at?: string;
49
+ updated_at?: string;
50
+ dob?: string;
51
+ sold_at?: string;
52
+ sent_at?: string;
53
+ pricing_expires_at?: string;
54
+ follow_up_at?: string;
55
+ resubmit_id?: QuoteRequest['id'];
56
+ referrer_id?: QuoteRequestReferrer['id'];
57
+ referrer_category_id?: QuoteRequestReferrerCategory['id'];
58
+ staff_member_id?: QuoteRequestUser['id'];
59
+ agent_id?: QuoteRequestUser['id'];
60
+ agent_firm_id?: QuoteRequestUserGroup['id'];
61
+ broker_firm_id?: QuoteRequestUserGroup['id'];
62
+ broker_id?: QuoteRequestUser['id'];
63
+ club_id?: Club['id'];
64
+ lead_id?: Lead['id'];
65
+ declaration?: QuoteRequestDeclaration;
66
+ street_address?: StreetAddress;
67
+ postal_address?: PostalAddress;
68
+ resubmit?: QuoteRequest;
69
+ referrer?: QuoteRequestReferrer;
70
+ referrer_category?: QuoteRequestReferrerCategory;
71
+ staff_member?: QuoteRequestUser;
72
+ agent?: QuoteRequestUser;
73
+ agent_firm?: QuoteRequestUserGroup;
74
+ broker?: QuoteRequestUser;
75
+ broker_firm?: QuoteRequestUserGroup;
76
+ club?: Club;
77
+ lead?: Lead;
78
+ vehicles?: QuoteRequestVehicle[];
79
+ purchase_options?: QuoteRequestPurchaseOption[];
80
+ logs?: QuoteRequestLog[];
81
+ information_requests?: InformationRequest[];
82
+ links?: {
83
+ purchase: string;
84
+ purchase_preview: string;
85
+ purchase_options_pdf: string;
86
+ documentation_pdf: string;
87
+ };
88
+ }
@@ -0,0 +1,22 @@
1
+ import { QuoteRequest } from "./QuoteRequest";
2
+ import { QuoteRequestIncident } from "./QuoteRequestIncident";
3
+ export interface QuoteRequestDeclaration {
4
+ id?: number;
5
+ quote_request_id?: QuoteRequest['id'];
6
+ had_incident?: boolean;
7
+ incidents?: QuoteRequestIncident[];
8
+ has_demerit_points?: boolean;
9
+ demerit_points?: string;
10
+ has_lost_licence?: boolean;
11
+ lost_licence_details?: string;
12
+ was_refused_insurance?: boolean;
13
+ refused_insurance_details?: string;
14
+ has_criminal_conviction?: boolean;
15
+ criminal_conviction_details?: string;
16
+ has_vehicle_modifications?: boolean;
17
+ vehicle_modifications_details?: string;
18
+ has_previous_insurer?: boolean;
19
+ previous_insurer_details?: string;
20
+ previous_insurer_expires_at?: string;
21
+ additional_details?: string;
22
+ }
@@ -0,0 +1,112 @@
1
+ import { Product, VehicleType } from "../../api";
2
+ import { Club } from "./Club";
3
+ import { QuoteRequestSource, QuoteRequestStatus, QuoteRequestUser, QuoteRequestUserGroup } from "./QuoteRequest";
4
+ import { PaymentFrequency, PremiumType } from "./QuoteRequestPurchaseOption";
5
+ import { QuoteRequestReferrer } from "./QuoteRequestReferrer";
6
+ import { QuoteRequestReferrerCategory } from "./QuoteRequestReferrerCategory";
7
+ export interface QuoteRequestForm {
8
+ id?: string;
9
+ status?: QuoteRequestStatus;
10
+ source?: QuoteRequestSource;
11
+ reference?: string;
12
+ client_number?: string;
13
+ first_name?: string;
14
+ last_name?: string;
15
+ phone?: string;
16
+ mobile?: string;
17
+ email?: string;
18
+ licence?: string;
19
+ licence_other?: string;
20
+ promo_code?: string;
21
+ club_membership_number?: string;
22
+ broker_fee?: number;
23
+ length_of_insurance?: string;
24
+ theme?: string;
25
+ notes?: string;
26
+ dob?: string;
27
+ sold_at?: string;
28
+ sent_at?: string;
29
+ pricing_expires_at?: string;
30
+ follow_up_at?: string;
31
+ referrer_id?: QuoteRequestReferrer['id'];
32
+ referrer_category_id?: QuoteRequestReferrerCategory['id'];
33
+ staff_member_id?: QuoteRequestUser['id'];
34
+ agent_id?: QuoteRequestUser['id'];
35
+ agent_firm_id?: QuoteRequestUserGroup['id'];
36
+ broker_firm_id?: QuoteRequestUserGroup['id'];
37
+ broker_id?: QuoteRequestUser['id'];
38
+ club_id?: Club['id'];
39
+ street_address: {
40
+ id?: number;
41
+ address?: string;
42
+ unit?: string;
43
+ suburb?: string;
44
+ city?: string;
45
+ post_code?: string;
46
+ };
47
+ declaration: {
48
+ id?: number;
49
+ had_incident?: boolean;
50
+ incidents: {
51
+ year?: string;
52
+ month?: string;
53
+ description?: string;
54
+ }[];
55
+ has_demerit_points?: boolean;
56
+ demerit_points?: string;
57
+ has_lost_licence?: boolean;
58
+ lost_licence_details?: string;
59
+ was_refused_insurance?: boolean;
60
+ refused_insurance_details?: string;
61
+ has_criminal_conviction?: boolean;
62
+ criminal_conviction_details?: string;
63
+ has_vehicle_modifications?: boolean;
64
+ vehicle_modifications_details?: string;
65
+ has_previous_insurer?: boolean;
66
+ previous_insurer_details?: string;
67
+ previous_insurer_expires_at?: string;
68
+ additional_details?: string;
69
+ };
70
+ vehicles: {
71
+ id?: number;
72
+ vehicle_type?: VehicleType;
73
+ registration?: string;
74
+ make?: string;
75
+ model?: string;
76
+ year?: string;
77
+ usage?: string;
78
+ product?: Product;
79
+ has_financially_interested_party?: boolean;
80
+ financially_interested_party_detail?: string;
81
+ owned_duration?: string;
82
+ value?: number;
83
+ storage_location?: string;
84
+ is_heavy?: boolean;
85
+ drivers: {
86
+ id?: number;
87
+ first_name?: string;
88
+ last_name?: string;
89
+ dob?: string;
90
+ relationship?: string;
91
+ licence?: string;
92
+ licence_other?: string;
93
+ }[];
94
+ }[];
95
+ purchase_options: {
96
+ id?: number;
97
+ level_of_insurance_id?: number;
98
+ sort_order?: number;
99
+ description?: string;
100
+ base_premium?: number;
101
+ premium?: number;
102
+ monthly_premium?: number;
103
+ show_monthly?: boolean;
104
+ fsl?: number;
105
+ gst?: number;
106
+ premium_type?: PremiumType;
107
+ policy_starts_at?: string;
108
+ sold_at?: string;
109
+ is_paid?: boolean;
110
+ payment_frequency?: PaymentFrequency;
111
+ }[];
112
+ }
@@ -0,0 +1,5 @@
1
+ export interface QuoteRequestIncident {
2
+ year?: string;
3
+ month?: string;
4
+ description?: string;
5
+ }
@@ -0,0 +1,10 @@
1
+ import { User } from "../auth";
2
+ export interface QuoteRequestLog {
3
+ id: number;
4
+ created_at: string;
5
+ quote_request_id: string;
6
+ user_id: number | null;
7
+ user?: User;
8
+ activity_type: string;
9
+ message: string;
10
+ }
@@ -0,0 +1,59 @@
1
+ import { VehicleType } from "../../api";
2
+ export interface QuoteRequestOptions {
3
+ club_options: SimpleOption[];
4
+ driver_licence_options: SimpleOption[];
5
+ incident_options: SimpleOption[];
6
+ insurance_companies: SimpleOption[];
7
+ level_of_insurance_options: SimpleOption[];
8
+ policy_description_options: SimpleOption[];
9
+ referrer_category_options: SimpleOption[];
10
+ relationship_options: SimpleOption[];
11
+ storage_location_options: SimpleOption[];
12
+ vehicle_usage_options: {
13
+ id: number;
14
+ name: string;
15
+ vehicle_type: VehicleType;
16
+ }[];
17
+ policy_benefit_template_options: SimpleOption[];
18
+ referrer_options: {
19
+ id: number;
20
+ name: string;
21
+ category_id: number;
22
+ }[];
23
+ policy_benefit_options: {
24
+ id: number;
25
+ name: string;
26
+ description: string;
27
+ auto_select: boolean;
28
+ template_id: number;
29
+ sort_order: number;
30
+ }[];
31
+ policy_enhancement_options: {
32
+ id: number;
33
+ name: string;
34
+ description: string;
35
+ premium: number;
36
+ disable_rounding: boolean;
37
+ auto_select: boolean;
38
+ }[];
39
+ authorised_drivers_options: {
40
+ id: number;
41
+ name: string;
42
+ description: string;
43
+ }[];
44
+ terms_options: {
45
+ id: number;
46
+ name: string;
47
+ description: string;
48
+ }[];
49
+ excess_options: {
50
+ id: number;
51
+ name: string;
52
+ description: string;
53
+ }[];
54
+ }
55
+ interface SimpleOption {
56
+ id: number;
57
+ name: string;
58
+ }
59
+ export {};
@@ -0,0 +1,35 @@
1
+ import { PolicyBenefit, PolicyBenefitTemplate } from "./PolicyBenefit";
2
+ import { PolicyEnhancement } from "./PolicyEnhancement";
3
+ export interface QuoteRequestPurchaseOption {
4
+ id?: number;
5
+ quote_request_id?: string;
6
+ level_of_insurance_id?: number;
7
+ sort_order?: number;
8
+ description?: string;
9
+ premium?: number;
10
+ monthly_premium?: number;
11
+ show_monthly?: boolean;
12
+ fsl?: number;
13
+ gst?: number;
14
+ premium_type?: PremiumType;
15
+ policy_starts_at?: string;
16
+ sold_at?: string;
17
+ is_paid?: boolean;
18
+ payment_frequency?: PaymentFrequency;
19
+ excess_details?: string;
20
+ terms?: string;
21
+ authorised_drivers?: string;
22
+ is_draft?: boolean;
23
+ is_direct_debit?: boolean;
24
+ benefit_template_id?: number;
25
+ level_of_insurance?: LevelOfInsurance;
26
+ enhancements?: PolicyEnhancement[];
27
+ benefits?: PolicyBenefit[];
28
+ benefit_template?: PolicyBenefitTemplate;
29
+ }
30
+ export declare type PremiumType = 'annual' | 'total-due';
31
+ export declare type PaymentFrequency = 'monthly' | 'annually';
32
+ export interface LevelOfInsurance {
33
+ id: number;
34
+ name: string;
35
+ }
@@ -0,0 +1,7 @@
1
+ import { QuoteRequestReferrerCategory } from "./QuoteRequestReferrerCategory";
2
+ export interface QuoteRequestReferrer {
3
+ id: number;
4
+ name: string;
5
+ category_id: QuoteRequestReferrerCategory['id'];
6
+ category?: QuoteRequestReferrerCategory;
7
+ }
@@ -0,0 +1,4 @@
1
+ export interface QuoteRequestReferrerCategory {
2
+ id: number;
3
+ name: string;
4
+ }
@@ -0,0 +1,20 @@
1
+ import { Product, VehicleType } from "../../api";
2
+ import { QuoteRequestVehicleDriver } from "./QuoteRequestVehicleDriver";
3
+ export interface QuoteRequestVehicle {
4
+ id?: number;
5
+ vehicle_type?: VehicleType;
6
+ registration?: string;
7
+ make?: string;
8
+ model?: string;
9
+ year?: string;
10
+ usage?: string;
11
+ product?: Product;
12
+ has_financially_interested_party?: boolean;
13
+ financially_interested_party_detail?: string;
14
+ owned_duration?: string;
15
+ value?: number;
16
+ storage_location?: string;
17
+ is_heavy?: boolean;
18
+ quote_request_id?: string;
19
+ drivers?: QuoteRequestVehicleDriver[];
20
+ }
@@ -0,0 +1,10 @@
1
+ export interface QuoteRequestVehicleDriver {
2
+ id?: number;
3
+ first_name?: string;
4
+ last_name?: string;
5
+ dob?: string;
6
+ relationship?: string;
7
+ licence?: string;
8
+ licence_other?: string;
9
+ quote_request_vehicle_id?: number;
10
+ }
@@ -0,0 +1,55 @@
1
+ export interface RedbookVehicle {
2
+ id: number;
3
+ body_type: string | null;
4
+ colour: string | null;
5
+ condition: string | null;
6
+ created_at: string | null;
7
+ description: string | null;
8
+ engine_number: string | null;
9
+ imported: boolean | null;
10
+ make: string | null;
11
+ model: string | null;
12
+ odometer_read_at: string | null;
13
+ odometer_reading: string | null;
14
+ odometer_reading_source: string | null;
15
+ redbook_code: string | null;
16
+ registration: string | null;
17
+ sub_model: string | null;
18
+ updated_at: string | null;
19
+ value: number | null;
20
+ vehicle_type: string | null;
21
+ vin: string | null;
22
+ weight: number | null;
23
+ year: number | null;
24
+ valuation_details: Valuation[] | null;
25
+ chassis_number: string | null;
26
+ fuel_type: string | null;
27
+ previous_registered_country: string | null;
28
+ overseas_first_registered_year: number | null;
29
+ overseas_first_registered_month: number | null;
30
+ }
31
+ export interface Valuation {
32
+ matchedRedbookVehicle: MatchedRedbookVehicle;
33
+ valuationDetail: ValuationDetail;
34
+ }
35
+ export interface MatchedRedbookVehicle {
36
+ make?: string;
37
+ model?: string;
38
+ year?: number;
39
+ description?: string;
40
+ redbookCode: string;
41
+ }
42
+ export interface ValuationDetail {
43
+ newRetailValue: number;
44
+ targetConditionTypeAvailable: boolean;
45
+ newValueAvailable: boolean;
46
+ pricingBandAvailable: boolean;
47
+ retailValueList: RetailValueList[];
48
+ }
49
+ export interface RetailValueList {
50
+ condition: string;
51
+ lowerPricingRange: number;
52
+ upperPricingRange: number;
53
+ value: number;
54
+ kilometers: number;
55
+ }
@@ -0,0 +1,8 @@
1
+ export interface StreetAddress {
2
+ id?: number;
3
+ address?: string;
4
+ unit?: string;
5
+ suburb?: string;
6
+ city?: string;
7
+ post_code?: string;
8
+ }
@@ -0,0 +1,22 @@
1
+ export * from './QuoteRequest';
2
+ export * from './QuoteRequestDeclaration';
3
+ export * from './QuoteRequestVehicle';
4
+ export * from './QuoteRequestVehicleDriver';
5
+ export * from './QuoteRequestPurchaseOption';
6
+ export * from './PolicyEnhancement';
7
+ export * from './QuoteRequestReferrerCategory';
8
+ export * from './QuoteRequestReferrer';
9
+ export * from './Club';
10
+ export * from './Lead';
11
+ export * from './StreetAddress';
12
+ export * from './PostalAddress';
13
+ export * from './QuoteRequestIncident';
14
+ export * from './QuoteRequestOptions';
15
+ export * from './RedbookVehicle';
16
+ export * from './QuoteRequestForm';
17
+ export * from './QuoteRequestForm';
18
+ export * from './PolicyBenefit';
19
+ export * from './InformationRequest';
20
+ export * from './EmailContentOption';
21
+ export * from './MotorwebVehicle';
22
+ export * from './PromoCode';
@@ -0,0 +1,7 @@
1
+ export interface SmsContentOption {
2
+ id: number;
3
+ created_at: string;
4
+ updated_at: string;
5
+ name: string;
6
+ content: string;
7
+ }
@@ -0,0 +1,18 @@
1
+ import { User } from "../auth";
2
+ import { QuoteRequest } from "../quotes";
3
+ import { SmsMessageReply } from "./SmsMessageReply";
4
+ export interface SmsMessage {
5
+ id: number;
6
+ created_at: string;
7
+ updated_at: string;
8
+ content: string;
9
+ recipients: string;
10
+ reference: string | null;
11
+ reply_to: string | null;
12
+ user_id: number | null;
13
+ quote_request_id: string | null;
14
+ is_archived: boolean;
15
+ replies?: SmsMessageReply[];
16
+ quote_request?: QuoteRequest;
17
+ user?: User;
18
+ }
@@ -0,0 +1,10 @@
1
+ import { SmsMessage } from "./SmsMessage";
2
+ export interface SmsMessageReply {
3
+ id: number;
4
+ created_at: string;
5
+ updated_at: string;
6
+ content: string;
7
+ phone_number: string;
8
+ sms_message_id: number;
9
+ message?: SmsMessage;
10
+ }
@@ -0,0 +1,3 @@
1
+ export * from './SmsMessage';
2
+ export * from './SmsMessageReply';
3
+ export * from './SmsContentOption';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@star-insure/sdk",
3
3
  "description": "The SDK for Star Insure client apps with shared helper functions and TypeScript definitions.",
4
4
  "author": "alexclark_nz",
5
- "version": "1.1.12",
5
+ "version": "1.1.13",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -11,14 +11,26 @@
11
11
  "main": "index.js",
12
12
  "typings": "index.d.ts",
13
13
  "files": [
14
+ "dist",
14
15
  "src"
15
16
  ],
16
17
  "engines": {
17
18
  "node": ">=10"
18
19
  },
19
20
  "scripts": {
20
- "dev": "tsc",
21
- "build": "tsc"
21
+ "dev": "tsdx watch",
22
+ "start": "tsdx watch",
23
+ "build": "tsdx build",
24
+ "test": "tsdx test --passWithNoTests",
25
+ "lint": "tsdx lint",
26
+ "prepare": "tsdx build",
27
+ "size": "size-limit",
28
+ "analyze": "size-limit --why"
29
+ },
30
+ "husky": {
31
+ "hooks": {
32
+ "pre-commit": "tsdx lint"
33
+ }
22
34
  },
23
35
  "prettier": {
24
36
  "printWidth": 80,
@@ -26,6 +38,17 @@
26
38
  "singleQuote": true,
27
39
  "trailingComma": "es5"
28
40
  },
41
+ "module": "dist/starinsure-sdk.esm.js",
42
+ "size-limit": [
43
+ {
44
+ "path": "dist/starinsure-sdk.cjs.production.min.js",
45
+ "limit": "10 KB"
46
+ },
47
+ {
48
+ "path": "dist/starinsure-sdk.esm.js",
49
+ "limit": "10 KB"
50
+ }
51
+ ],
29
52
  "devDependencies": {
30
53
  "@size-limit/preset-small-lib": "^7.0.8",
31
54
  "@types/lodash-es": "^4.17.6",