@star-insure/sdk 3.2.13 → 3.2.16
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.
- package/dist/components/common/Modal.d.ts +2 -1
- package/dist/sdk.cjs.development.js +4 -2
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +4 -2
- package/dist/sdk.esm.js.map +1 -1
- package/dist/types/models/quotes/QuoteRequest.d.ts +8 -0
- package/package.json +2 -2
- package/src/components/common/Modal.tsx +5 -4
- package/src/types/models/quotes/QuoteRequest.ts +9 -0
|
@@ -23,6 +23,13 @@ export interface QuoteRequestUserGroup {
|
|
|
23
23
|
id: number;
|
|
24
24
|
name: string;
|
|
25
25
|
}
|
|
26
|
+
export interface Automatch {
|
|
27
|
+
client_number: string;
|
|
28
|
+
id: number;
|
|
29
|
+
matched_by: QuoteRequestAutomatch;
|
|
30
|
+
matched_by_value: string;
|
|
31
|
+
quote_request_id: string;
|
|
32
|
+
}
|
|
26
33
|
export interface QuoteRequest {
|
|
27
34
|
id?: string;
|
|
28
35
|
status?: QuoteRequestStatus;
|
|
@@ -97,4 +104,5 @@ export interface QuoteRequest {
|
|
|
97
104
|
blacklist_entry?: BlacklistEntry;
|
|
98
105
|
is_follow_up_required: boolean;
|
|
99
106
|
payments?: Payment[];
|
|
107
|
+
automatches?: Automatch[];
|
|
100
108
|
}
|
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": "3.2.
|
|
5
|
+
"version": "3.2.16",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@types/react-dom": "^18.0.6",
|
|
57
57
|
"@types/uuid": "^8.3.4",
|
|
58
58
|
"husky": "^8.0.1",
|
|
59
|
-
"np": "^
|
|
59
|
+
"np": "^9.2.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"size-limit": "^7.0.8",
|
|
62
62
|
"tsdx": "^0.14.1",
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Fragment } from 'react'
|
|
3
|
-
import { Dialog, Transition } from '@headlessui/react'
|
|
2
|
+
import { Fragment } from 'react';
|
|
3
|
+
import { Dialog, Transition } from '@headlessui/react';
|
|
4
4
|
|
|
5
5
|
interface Props {
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
isActive?: boolean;
|
|
8
8
|
onClose: () => void;
|
|
9
9
|
title?: string;
|
|
10
|
+
className?: string;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
export default function Modal({ children, isActive = false, onClose, title }: Props) {
|
|
13
|
+
export default function Modal({ children, isActive = false, onClose, title, className = '' }: Props) {
|
|
13
14
|
return (
|
|
14
15
|
<Transition.Root show={isActive} as={Fragment}>
|
|
15
16
|
<Dialog as="div" className="fixed z-[110] inset-0 overflow-y-auto" onClose={onClose}>
|
|
@@ -35,7 +36,7 @@ export default function Modal({ children, isActive = false, onClose, title }: Pr
|
|
|
35
36
|
leaveFrom="opacity-100 translate-y-0 sm:scale-100"
|
|
36
37
|
leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
37
38
|
>
|
|
38
|
-
<div className=
|
|
39
|
+
<div className={`${className} w-full align-start inline-block bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-3xl sm:p-6`}>
|
|
39
40
|
<div className={`flex gap-4 mb-4 text-asphalt ${title ? 'border-b-2 border-asphalt pb-4' : ''}`}>
|
|
40
41
|
{title && <h3 className="font-black text-lg">{title}</h3>}
|
|
41
42
|
<button type="button" onClick={onClose} className="ml-auto transition-all hover:opacity-50">
|
|
@@ -29,6 +29,14 @@ export interface QuoteRequestUserGroup {
|
|
|
29
29
|
name: string;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
export interface Automatch {
|
|
33
|
+
client_number: string;
|
|
34
|
+
id: number;
|
|
35
|
+
matched_by: QuoteRequestAutomatch;
|
|
36
|
+
matched_by_value: string;
|
|
37
|
+
quote_request_id: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
32
40
|
export interface QuoteRequest {
|
|
33
41
|
id?: string;
|
|
34
42
|
status?: QuoteRequestStatus;
|
|
@@ -109,4 +117,5 @@ export interface QuoteRequest {
|
|
|
109
117
|
blacklist_entry?: BlacklistEntry;
|
|
110
118
|
is_follow_up_required: boolean;
|
|
111
119
|
payments?: Payment[];
|
|
120
|
+
automatches?: Automatch[];
|
|
112
121
|
}
|