@insurup/sdk 0.1.13 → 0.1.15
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/README.md +100 -71
- package/dist/client/client.d.ts +160 -0
- package/dist/client/client.d.ts.map +1 -0
- package/dist/client/graphql.d.ts +51 -0
- package/dist/client/graphql.d.ts.map +1 -0
- package/dist/client/http.d.ts +173 -0
- package/dist/client/http.d.ts.map +1 -0
- package/dist/client/signalr.d.ts +69 -0
- package/dist/client/signalr.d.ts.map +1 -0
- package/dist/clients/_internal/build-filter-search-variables.d.ts +12 -0
- package/dist/clients/_internal/build-filter-search-variables.d.ts.map +1 -0
- package/dist/clients/_internal/normalize-search.d.ts +21 -0
- package/dist/clients/_internal/normalize-search.d.ts.map +1 -0
- package/dist/clients/_internal/split-unified-filter.d.ts +16 -0
- package/dist/clients/_internal/split-unified-filter.d.ts.map +1 -0
- package/dist/clients/agent.d.ts +121 -0
- package/dist/clients/agent.d.ts.map +1 -0
- package/dist/clients/agentBranch.d.ts +61 -0
- package/dist/clients/agentBranch.d.ts.map +1 -0
- package/dist/clients/agentRole.d.ts +60 -0
- package/dist/clients/agentRole.d.ts.map +1 -0
- package/dist/clients/agentSetup.d.ts +34 -0
- package/dist/clients/agentSetup.d.ts.map +1 -0
- package/dist/clients/agentUser.d.ts +176 -0
- package/dist/clients/agentUser.d.ts.map +1 -0
- package/dist/clients/case.d.ts +232 -0
- package/dist/clients/case.d.ts.map +1 -0
- package/dist/clients/coverage.d.ts +98 -0
- package/dist/clients/coverage.d.ts.map +1 -0
- package/dist/clients/customer.d.ts +252 -0
- package/dist/clients/customer.d.ts.map +1 -0
- package/dist/clients/file.d.ts +30 -0
- package/dist/clients/file.d.ts.map +1 -0
- package/dist/clients/insurance.d.ts +105 -0
- package/dist/clients/insurance.d.ts.map +1 -0
- package/dist/clients/language.d.ts +27 -0
- package/dist/clients/language.d.ts.map +1 -0
- package/dist/clients/policy.d.ts +251 -0
- package/dist/clients/policy.d.ts.map +1 -0
- package/dist/clients/property.d.ts +163 -0
- package/dist/clients/property.d.ts.map +1 -0
- package/dist/clients/proposal.d.ts +259 -0
- package/dist/clients/proposal.d.ts.map +1 -0
- package/dist/clients/template.d.ts +73 -0
- package/dist/clients/template.d.ts.map +1 -0
- package/dist/clients/vehicle.d.ts +112 -0
- package/dist/clients/vehicle.d.ts.map +1 -0
- package/dist/clients/webhook.d.ts +106 -0
- package/dist/clients/webhook.d.ts.map +1 -0
- package/dist/core/config.d.ts +38 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/endpoints.d.ts +1371 -0
- package/dist/core/endpoints.d.ts.map +1 -0
- package/dist/core/error-types.d.ts +66 -0
- package/dist/core/error-types.d.ts.map +1 -0
- package/dist/core/errors.d.ts +42 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/options.d.ts +234 -0
- package/dist/core/options.d.ts.map +1 -0
- package/dist/core/result.d.ts +183 -0
- package/dist/core/result.d.ts.map +1 -0
- package/dist/core/retry.d.ts +15 -0
- package/dist/core/retry.d.ts.map +1 -0
- package/dist/index.browser.js +24 -24
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +574 -525
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +34 -4225
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +577 -525
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +10 -0
- package/dist/version.d.ts.map +1 -0
- package/package.json +18 -14
- package/dist/index.d.cts +0 -4226
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Proposal Client - Comprehensive proposal management operations
|
|
3
|
+
* @description Provides comprehensive proposal management operations for creating insurance proposals, managing proposal lifecycle,
|
|
4
|
+
* document generation, product purchasing, and comparison tools within the insurance sales process.
|
|
5
|
+
*/
|
|
6
|
+
import type { HttpTransport } from '../client/http.js';
|
|
7
|
+
import type { GraphQLTransport } from '../client/graphql.js';
|
|
8
|
+
import type { ProposalDetailHandlers, SignalRTransport } from '../client/signalr.js';
|
|
9
|
+
import type { InsurUpResult, InsurUpGraphQLResult } from '../core/result.js';
|
|
10
|
+
import type { RequestOptions } from '../core/options.js';
|
|
11
|
+
import { type ProposalFieldKey, type GetProposalsOptions, type ProposalsConnection } from '@insurup/contracts';
|
|
12
|
+
import type { CreateProposalRequest, CreateProposalResult, GetProposalByIdResult, GetProposalProductPremiumDetailResult, PurchaseProposalProductSyncRequest, PurchaseProposalProductSyncResult, PurchaseProposalProductAsyncRequest, PurchaseProposalProductAsyncResult, GetProposalProductCoverageResult, ReviseProposalRequest, ReviseProposalResult, ReviseProposalProductRequest, FetchProposalProductDocumentRequest, FetchProposalProductDocumentResult, FetchProposalInformationFormDocumentRequest, FetchProposalInformationFormDocumentResult, SendProposalProductDocumentRequest, SendProposalInformationFormDocumentRequest, GenerateCompareProposalProductsPdfRequest, GenerateCompareProposalProductsPdfResult, SendCompareProposalProductsPdfRequest, SetProposalRepresentativeRequest, GenerateCustomerProposalDocumentPdfRequest, GenerateCustomerProposalDocumentPdfResult, SetProposalBranchRequest, GetProposalConversionTrendRequest, GetProposalConversionTrendResult } from '@insurup/contracts';
|
|
13
|
+
/**
|
|
14
|
+
* Proposal Management Client / Teklif Yönetimi İstemcisi
|
|
15
|
+
*
|
|
16
|
+
* Central client for managing the complete insurance proposal lifecycle from creation to policy conversion. Handles
|
|
17
|
+
* proposal generation, product comparison, premium calculations, document management, customer communication, and the
|
|
18
|
+
* purchasing process for various insurance products. Provides both synchronous and asynchronous purchasing options,
|
|
19
|
+
* comprehensive document generation including comparison PDFs, and proposal revision capabilities. Essential for
|
|
20
|
+
* agencies that need to create competitive insurance proposals, manage customer decision processes, and convert
|
|
21
|
+
* proposals into active policies while maintaining detailed audit trails and customer communication records.
|
|
22
|
+
*
|
|
23
|
+
* Oluşturmadan poliçe dönüştürmeye kadar tam sigorta teklif yaşam döngüsünü yönetmek için merkezi istemci.
|
|
24
|
+
* Teklif oluşturma, ürün karşılaştırması, prim hesaplamaları, belge yönetimi, müşteri iletişimi ve çeşitli sigorta
|
|
25
|
+
* ürünleri için satın alma sürecini yönetir. Hem senkron hem de asenkron satın alma seçenekleri, karşılaştırma PDF'leri
|
|
26
|
+
* dahil kapsamlı belge oluşturma ve teklif revizyon yetenekleri sağlar. Rekabetçi sigorta teklifleri oluşturması,
|
|
27
|
+
* müşteri karar süreçlerini yönetmesi ve detaylı denetim izleri ile müşteri iletişim kayıtlarını korurken teklifleri
|
|
28
|
+
* aktif poliçelere dönüştürmesi gereken acenteler için olmazsa olmazdır.
|
|
29
|
+
*/
|
|
30
|
+
export declare class InsurUpProposalClient {
|
|
31
|
+
private readonly http;
|
|
32
|
+
private readonly graphql?;
|
|
33
|
+
private readonly signalR?;
|
|
34
|
+
constructor(http: HttpTransport, graphql?: GraphQLTransport | undefined, signalR?: SignalRTransport | undefined);
|
|
35
|
+
/**
|
|
36
|
+
* Subscribe to real-time updates for a proposal via the InsurUp SignalR
|
|
37
|
+
* ProposalDetailHub. The first subscriber opens the underlying hub
|
|
38
|
+
* connection lazily; subscriptions for additional proposals are multiplexed
|
|
39
|
+
* over the same connection. Pass only the handlers you care about.
|
|
40
|
+
*
|
|
41
|
+
* Teklif için gerçek zamanlı güncellemelere SignalR üzerinden abone olur.
|
|
42
|
+
*
|
|
43
|
+
* @param proposalId - The proposal to subscribe to / Abone olunacak teklif
|
|
44
|
+
* @param handlers - Per-event callbacks; missing entries are ignored
|
|
45
|
+
* @returns An unsubscribe function. When the last subscription is torn
|
|
46
|
+
* down, the underlying hub connection is stopped.
|
|
47
|
+
* @throws If the SDK client was constructed without SignalR support
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```typescript
|
|
51
|
+
* const unsub = await client.proposals.subscribeToDetail(proposalId, {
|
|
52
|
+
* onProductSuccess: (event) => console.log('priced', event),
|
|
53
|
+
* onProductFailed: (event) => console.warn('failed', event.errorMessage),
|
|
54
|
+
* });
|
|
55
|
+
* // later
|
|
56
|
+
* unsub();
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
subscribeToDetail(proposalId: string, handlers: ProposalDetailHandlers): Promise<() => void>;
|
|
60
|
+
/**
|
|
61
|
+
* Creates a new insurance proposal with customer information, coverage selections, and product options for quotation.
|
|
62
|
+
*
|
|
63
|
+
* Fiyat teklifi için müşteri bilgileri, teminat seçimleri ve ürün seçenekleri ile yeni sigorta teklifi oluşturur.
|
|
64
|
+
*
|
|
65
|
+
* @param request - Proposal creation request with customer and coverage details / Müşteri ve teminat detayları ile teklif oluşturma talebi
|
|
66
|
+
* @returns Created proposal information / Oluşturulan teklif bilgileri
|
|
67
|
+
*/
|
|
68
|
+
createProposal(request: CreateProposalRequest, options?: RequestOptions): Promise<InsurUpResult<CreateProposalResult>>;
|
|
69
|
+
/**
|
|
70
|
+
* Retries a failed proposal product calculation or processing to attempt resolution of temporary issues.
|
|
71
|
+
*
|
|
72
|
+
* Geçici sorunların çözümünü denemek için başarısız teklif ürün hesaplama veya işlemesini yeniden dener.
|
|
73
|
+
*
|
|
74
|
+
* @param proposalId - Unique identifier of the proposal / Teklifin benzersiz tanımlayıcısı
|
|
75
|
+
* @param proposalProductId - Unique identifier of the proposal product / Teklif ürününün benzersiz tanımlayıcısı
|
|
76
|
+
* @returns Operation result / İşlem sonucu
|
|
77
|
+
*/
|
|
78
|
+
retryFailedProposalProduct(proposalId: string, proposalProductId: string, options?: RequestOptions): Promise<InsurUpResult>;
|
|
79
|
+
/**
|
|
80
|
+
* Retrieves comprehensive details of a specific proposal including all products, coverage options, and pricing information.
|
|
81
|
+
*
|
|
82
|
+
* Tüm ürünler, teminat seçenekleri ve fiyatlandırma bilgileri dahil belirli bir teklifin kapsamlı detaylarını getirir.
|
|
83
|
+
*
|
|
84
|
+
* @param proposalId - Unique identifier of the proposal / Teklifin benzersiz tanımlayıcısı
|
|
85
|
+
* @returns Detailed proposal information / Detaylı teklif bilgileri
|
|
86
|
+
*/
|
|
87
|
+
getProposalDetail(proposalId: string, options?: RequestOptions): Promise<InsurUpResult<GetProposalByIdResult>>;
|
|
88
|
+
/**
|
|
89
|
+
* Retrieves detailed premium breakdown information for a specific proposal product including installment options.
|
|
90
|
+
*
|
|
91
|
+
* Taksit seçenekleri dahil belirli bir teklif ürünü için detaylı prim dağılım bilgilerini getirir.
|
|
92
|
+
*
|
|
93
|
+
* @param proposalId - Unique identifier of the proposal / Teklifin benzersiz tanımlayıcısı
|
|
94
|
+
* @param proposalProductId - Unique identifier of the proposal product / Teklif ürününün benzersiz tanımlayıcısı
|
|
95
|
+
* @param installmentNumber - Installment option number / Taksit seçenek numarası
|
|
96
|
+
* @returns Premium breakdown details / Prim dağılım detayları
|
|
97
|
+
*/
|
|
98
|
+
getProposalProductPremiumDetail(proposalId: string, proposalProductId: string, installmentNumber: number, options?: RequestOptions): Promise<InsurUpResult<GetProposalProductPremiumDetailResult>>;
|
|
99
|
+
/**
|
|
100
|
+
* Purchases a proposal product synchronously, converting it to an active policy with immediate confirmation.
|
|
101
|
+
*
|
|
102
|
+
* Teklif ürününü senkron olarak satın alır ve anında onay ile aktif poliçeye dönüştürür.
|
|
103
|
+
*
|
|
104
|
+
* @param request - Synchronous purchase request / Senkron satın alma talebi
|
|
105
|
+
* @returns Purchase confirmation with policy details / Poliçe detayları ile satın alma onayı
|
|
106
|
+
*/
|
|
107
|
+
purchaseProposalProductSync(request: PurchaseProposalProductSyncRequest, options?: RequestOptions): Promise<InsurUpResult<PurchaseProposalProductSyncResult>>;
|
|
108
|
+
/**
|
|
109
|
+
* Initiates an asynchronous purchase process for a proposal product, allowing for background processing and later confirmation.
|
|
110
|
+
*
|
|
111
|
+
* Arka plan işleme ve sonraki onay için teklif ürünü için asenkron satın alma sürecini başlatır.
|
|
112
|
+
*
|
|
113
|
+
* @param request - Asynchronous purchase request / Asenkron satın alma talebi
|
|
114
|
+
* @returns Purchase initiation confirmation / Satın alma başlatma onayı
|
|
115
|
+
*/
|
|
116
|
+
purchaseProposalProductAsync(request: PurchaseProposalProductAsyncRequest, options?: RequestOptions): Promise<InsurUpResult<PurchaseProposalProductAsyncResult>>;
|
|
117
|
+
/**
|
|
118
|
+
* Retrieves detailed coverage configuration for a specific proposal product including all coverage options and limits.
|
|
119
|
+
*
|
|
120
|
+
* Tüm teminat seçenekleri ve limitleri dahil belirli bir teklif ürünü için detaylı teminat yapılandırmasını getirir.
|
|
121
|
+
*
|
|
122
|
+
* @param proposalId - Unique identifier of the proposal / Teklifin benzersiz tanımlayıcısı
|
|
123
|
+
* @param proposalProductId - Unique identifier of the proposal product / Teklif ürününün benzersiz tanımlayıcısı
|
|
124
|
+
* @returns Coverage configuration details / Teminat yapılandırma detayları
|
|
125
|
+
*/
|
|
126
|
+
getProposalProductCoverage(proposalId: string, proposalProductId: string, options?: RequestOptions): Promise<InsurUpResult<GetProposalProductCoverageResult>>;
|
|
127
|
+
/**
|
|
128
|
+
* Creates a revised version of an existing proposal with updated information, coverage changes, or customer modifications.
|
|
129
|
+
*
|
|
130
|
+
* Güncellenmiş bilgiler, teminat değişiklikleri veya müşteri değişiklikleri ile mevcut teklifin revize edilmiş versiyonunu oluşturur.
|
|
131
|
+
*
|
|
132
|
+
* @param request - Proposal revision request / Teklif revizyon talebi
|
|
133
|
+
* @returns Revised proposal information / Revize edilmiş teklif bilgileri
|
|
134
|
+
*/
|
|
135
|
+
reviseProposal(request: ReviseProposalRequest, options?: RequestOptions): Promise<InsurUpResult<ReviseProposalResult>>;
|
|
136
|
+
/**
|
|
137
|
+
* Revises a specific product within a proposal with updated coverage options, limits, or pricing parameters.
|
|
138
|
+
*
|
|
139
|
+
* Güncellenmiş teminat seçenekleri, limitler veya fiyatlandırma parametreleri ile teklif içindeki belirli ürünü revize eder.
|
|
140
|
+
*
|
|
141
|
+
* @param request - Product revision request / Ürün revizyon talebi
|
|
142
|
+
* @returns Operation result / İşlem sonucu
|
|
143
|
+
*/
|
|
144
|
+
reviseProposalProduct(request: ReviseProposalProductRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
145
|
+
/**
|
|
146
|
+
* Fetches the official proposal document for a specific product from the insurance company's systems.
|
|
147
|
+
*
|
|
148
|
+
* Sigorta şirketinin sistemlerinden belirli bir ürün için resmi teklif belgesini getirir.
|
|
149
|
+
*
|
|
150
|
+
* @param request - Document fetch request / Belge getirme talebi
|
|
151
|
+
* @returns Proposal document data / Teklif belgesi verisi
|
|
152
|
+
*/
|
|
153
|
+
fetchProposalProductDocument(request: FetchProposalProductDocumentRequest, options?: RequestOptions): Promise<InsurUpResult<FetchProposalProductDocumentResult>>;
|
|
154
|
+
/**
|
|
155
|
+
* Fetches the information form document that contains detailed product information and terms for customer review.
|
|
156
|
+
*
|
|
157
|
+
* Müşteri incelemesi için detaylı ürün bilgileri ve şartları içeren bilgi formu belgesini getirir.
|
|
158
|
+
*
|
|
159
|
+
* @param request - Information form document request / Bilgi formu belgesi talebi
|
|
160
|
+
* @returns Information form document data / Bilgi formu belgesi verisi
|
|
161
|
+
*/
|
|
162
|
+
fetchProposalInformationFormDocument(request: FetchProposalInformationFormDocumentRequest, options?: RequestOptions): Promise<InsurUpResult<FetchProposalInformationFormDocumentResult>>;
|
|
163
|
+
/**
|
|
164
|
+
* Sends the proposal product document directly to the customer via email or other communication channels.
|
|
165
|
+
*
|
|
166
|
+
* Teklif ürün belgesini e-posta veya diğer iletişim kanalları aracılığıyla doğrudan müşteriye gönderir.
|
|
167
|
+
*
|
|
168
|
+
* @param request - Document delivery request / Belge teslim talebi
|
|
169
|
+
* @returns Operation result / İşlem sonucu
|
|
170
|
+
*/
|
|
171
|
+
sendProposalProductDocument(request: SendProposalProductDocumentRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
172
|
+
/**
|
|
173
|
+
* Sends the information form document to the customer for detailed product review and decision making.
|
|
174
|
+
*
|
|
175
|
+
* Detaylı ürün incelemesi ve karar verme için bilgi formu belgesini müşteriye gönderir.
|
|
176
|
+
*
|
|
177
|
+
* @param request - Information form delivery request / Bilgi formu teslim talebi
|
|
178
|
+
* @returns Operation result / İşlem sonucu
|
|
179
|
+
*/
|
|
180
|
+
sendProposalInformationFormDocument(request: SendProposalInformationFormDocumentRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
181
|
+
/**
|
|
182
|
+
* Generates a comparative PDF document showing multiple proposal products side-by-side for customer decision support.
|
|
183
|
+
*
|
|
184
|
+
* Müşteri karar desteği için birden fazla teklif ürününü yan yana gösteren karşılaştırmalı PDF belgesi oluşturur.
|
|
185
|
+
*
|
|
186
|
+
* @param request - Comparison PDF generation request / Karşılaştırma PDF oluşturma talebi
|
|
187
|
+
* @returns Generated comparison document / Oluşturulan karşılaştırma belgesi
|
|
188
|
+
*/
|
|
189
|
+
generateCompareProposalProductsPdf(request: GenerateCompareProposalProductsPdfRequest, options?: RequestOptions): Promise<InsurUpResult<GenerateCompareProposalProductsPdfResult>>;
|
|
190
|
+
/**
|
|
191
|
+
* Sends the proposal comparison PDF document to the customer to facilitate informed decision making between insurance options.
|
|
192
|
+
*
|
|
193
|
+
* Sigorta seçenekleri arasında bilinçli karar vermeyi kolaylaştırmak için teklif karşılaştırma PDF belgesini müşteriye gönderir.
|
|
194
|
+
*
|
|
195
|
+
* @param request - Comparison PDF delivery request / Karşılaştırma PDF teslim talebi
|
|
196
|
+
* @returns Operation result / İşlem sonucu
|
|
197
|
+
*/
|
|
198
|
+
sendCompareProposalProductsPdf(request: SendCompareProposalProductsPdfRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
199
|
+
/**
|
|
200
|
+
* Generates a professional PDF document containing selected proposal products for customer presentation.
|
|
201
|
+
*
|
|
202
|
+
* Müşteri sunumu için seçilen teklif ürünlerini içeren profesyonel bir PDF belgesi oluşturur.
|
|
203
|
+
*
|
|
204
|
+
* @param request Customer proposal document generation request / Müşteri teklif belgesi oluşturma talebi
|
|
205
|
+
* @returns Generated document URL / Oluşturulan belge URL'i
|
|
206
|
+
*/
|
|
207
|
+
generateCustomerProposalDocumentPdf(request: GenerateCustomerProposalDocumentPdfRequest, options?: RequestOptions): Promise<InsurUpResult<GenerateCustomerProposalDocumentPdfResult>>;
|
|
208
|
+
/**
|
|
209
|
+
* Assigns or changes the branch for a proposal to organize proposal segmentation and reporting.
|
|
210
|
+
*
|
|
211
|
+
* Teklif segmentasyonu ve raporlama için teklifin şubesini atar veya değiştirir.
|
|
212
|
+
*
|
|
213
|
+
* @param request Branch assignment request / Şube atama talebi
|
|
214
|
+
* @returns Operation result / İşlem sonucu
|
|
215
|
+
*/
|
|
216
|
+
setProposalBranch(request: SetProposalBranchRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
217
|
+
/**
|
|
218
|
+
* Retrieves proposal-to-policy conversion trend analytics as a time series.
|
|
219
|
+
*
|
|
220
|
+
* Tekliften poliçeye dönüşüm trendi analitiğini zaman serisi olarak getirir.
|
|
221
|
+
*
|
|
222
|
+
* @param request Conversion trend analytics request / Dönüşüm trendi analitik isteği
|
|
223
|
+
* @returns Conversion trend analytics response / Dönüşüm trendi analitiği yanıtı
|
|
224
|
+
*/
|
|
225
|
+
getProposalConversionTrend(request: GetProposalConversionTrendRequest, options?: RequestOptions): Promise<InsurUpResult<GetProposalConversionTrendResult>>;
|
|
226
|
+
/**
|
|
227
|
+
* Assigns or updates the representative responsible for managing a specific proposal and customer relationship.
|
|
228
|
+
*
|
|
229
|
+
* Belirli bir teklifi ve müşteri ilişkisini yönetmekten sorumlu temsilciyi atar veya günceller.
|
|
230
|
+
*
|
|
231
|
+
* @param request - Representative assignment request / Temsilci atama talebi
|
|
232
|
+
* @returns Operation result / İşlem sonucu
|
|
233
|
+
*/
|
|
234
|
+
setProposalRepresentative(request: SetProposalRepresentativeRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
235
|
+
/**
|
|
236
|
+
* Queries proposals using GraphQL with advanced filtering, searching, sorting, and field selection.
|
|
237
|
+
* Supports cursor-based pagination and type-safe field selection.
|
|
238
|
+
*
|
|
239
|
+
* Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak teklifleri sorgular.
|
|
240
|
+
* İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
|
|
241
|
+
*
|
|
242
|
+
* @example
|
|
243
|
+
* // Basic query with all fields
|
|
244
|
+
* const result = await client.proposals.getProposals({ first: 10 });
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* // Type-safe field selection
|
|
248
|
+
* const result = await client.proposals.getProposals({
|
|
249
|
+
* select: ['id', 'productBranch', 'state', 'insuredCustomerName'] as const,
|
|
250
|
+
* first: 10,
|
|
251
|
+
* filter: { state: { eq: ProposalState.Active } }
|
|
252
|
+
* });
|
|
253
|
+
*
|
|
254
|
+
* @param requestOptions Query options including pagination, filters, search, and field selection
|
|
255
|
+
* @returns Paginated connection of proposals with type-narrowed fields
|
|
256
|
+
*/
|
|
257
|
+
getProposals<const TFields extends ProposalFieldKey[]>(requestOptions?: GetProposalsOptions<TFields>, options?: RequestOptions): Promise<InsurUpGraphQLResult<ProposalsConnection<TFields>>>;
|
|
258
|
+
}
|
|
259
|
+
//# sourceMappingURL=proposal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proposal.d.ts","sourceRoot":"","sources":["../../src/clients/proposal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAA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AAO,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC;CAgF/D"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Template Client - Template management operations
|
|
3
|
+
* @description Provides template management operations for the InsurUp platform
|
|
4
|
+
*/
|
|
5
|
+
import type { HttpTransport } from '../client/http.js';
|
|
6
|
+
import type { InsurUpResult } from '../core/result.js';
|
|
7
|
+
import type { RequestOptions } from '../core/options.js';
|
|
8
|
+
import type { GetTemplateDefinitionsResult, QueryTemplatesResult, GetTemplateByKeyResult, UpdateTemplateRequest, DeleteTemplateRequest } from '@insurup/contracts';
|
|
9
|
+
/**
|
|
10
|
+
* Provides template management operations for the InsurUp platform, enabling agents to retrieve and update
|
|
11
|
+
* document templates, email templates, and other content templates used in insurance workflows.
|
|
12
|
+
*/
|
|
13
|
+
export declare class InsurUpTemplateClient {
|
|
14
|
+
private readonly http;
|
|
15
|
+
constructor(http: HttpTransport);
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves all template definitions with their JSON schemas and metadata.
|
|
18
|
+
* These definitions describe the structure and data models for all template types available in the system.
|
|
19
|
+
* Only accessible by admin panel users and agent users with appropriate permissions.
|
|
20
|
+
*
|
|
21
|
+
* Tüm şablon tanımlarını JSON şemaları ve meta verileriyle getirir.
|
|
22
|
+
* Bu tanımlar, sistemde mevcut tüm şablon türleri için yapı ve veri modellerini açıklar.
|
|
23
|
+
* Sadece yönetici panel kullanıcıları ve uygun izinlere sahip acente kullanıcıları tarafından erişilebilir.
|
|
24
|
+
*
|
|
25
|
+
* @returns List of all template definitions
|
|
26
|
+
*/
|
|
27
|
+
getTemplateDefinitions(options?: RequestOptions): Promise<InsurUpResult<GetTemplateDefinitionsResult[]>>;
|
|
28
|
+
/**
|
|
29
|
+
* Retrieves all available templates in the system with their metadata and content.
|
|
30
|
+
* Only accessible by admin panel users and agent users with appropriate permissions.
|
|
31
|
+
*
|
|
32
|
+
* Sistemdeki tüm kullanılabilir şablonları meta verileri ve içerikleriyle getirir.
|
|
33
|
+
* Sadece yönetici panel kullanıcıları ve uygun izinlere sahip acente kullanıcıları tarafından erişilebilir.
|
|
34
|
+
*
|
|
35
|
+
* @returns List of all templates with their details
|
|
36
|
+
*/
|
|
37
|
+
getAllTemplates(options?: RequestOptions): Promise<InsurUpResult<QueryTemplatesResult[]>>;
|
|
38
|
+
/**
|
|
39
|
+
* Retrieves a specific template by its unique key for a particular language.
|
|
40
|
+
* Returns the complete template including content and JSON schema for data validation.
|
|
41
|
+
*
|
|
42
|
+
* Belirli bir dil için benzersiz anahtarına göre belirli bir şablonu getirir.
|
|
43
|
+
* Veri doğrulama için içerik ve JSON şeması dahil tam şablonu döndürür.
|
|
44
|
+
*
|
|
45
|
+
* @param key Unique identifier key of the template
|
|
46
|
+
* @param languageId Language identifier for template localization
|
|
47
|
+
* @returns Complete template information
|
|
48
|
+
*/
|
|
49
|
+
getTemplateByKey(key: string, languageId: number, options?: RequestOptions): Promise<InsurUpResult<GetTemplateByKeyResult>>;
|
|
50
|
+
/**
|
|
51
|
+
* Updates an existing template with new content, name, description, and localization settings.
|
|
52
|
+
* Allows administrators to maintain and modify templates used throughout the insurance platform.
|
|
53
|
+
*
|
|
54
|
+
* Mevcut bir şablonu yeni içerik, ad, açıklama ve yerelleştirme ayarlarıyla günceller.
|
|
55
|
+
* Yöneticilerin sigorta platformu boyunca kullanılan şablonları sürdürmesine ve değiştirmesine olanak tanır.
|
|
56
|
+
*
|
|
57
|
+
* @param request Template update request with new content and metadata
|
|
58
|
+
* @returns Operation result
|
|
59
|
+
*/
|
|
60
|
+
updateTemplate(request: UpdateTemplateRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
61
|
+
/**
|
|
62
|
+
* Deletes a template owned by the current agent user.
|
|
63
|
+
* Only agent users can delete templates they own. Templates with null AgentId or different AgentId cannot be deleted.
|
|
64
|
+
*
|
|
65
|
+
* Mevcut acente kullanıcısına ait bir şablonu siler.
|
|
66
|
+
* Sadece acente kullanıcıları kendi şablonlarını silebilir. Null AgentId'ye sahip veya farklı AgentId'ye sahip şablonlar silinemez.
|
|
67
|
+
*
|
|
68
|
+
* @param request Template delete request with key and language ID
|
|
69
|
+
* @returns Operation result
|
|
70
|
+
*/
|
|
71
|
+
deleteTemplate(request: DeleteTemplateRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/clients/template.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EACV,4BAA4B,EAC5B,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,qBAAa,qBAAqB;IACpB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,aAAa;IAEhD;;;;;;;;;;OAUG;IACG,sBAAsB,CAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,4BAA4B,EAAE,CAAC,CAAC;IAIzD;;;;;;;;OAQG;IACG,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAI/F;;;;;;;;;;OAUG;IACG,gBAAgB,CACpB,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;IAKjD;;;;;;;;;OASG;IACG,cAAc,CAClB,OAAO,EAAE,qBAAqB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IAKzB;;;;;;;;;OASG;IACG,cAAc,CAClB,OAAO,EAAE,qBAAqB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;CAI1B"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Vehicle Client Implementation
|
|
3
|
+
* @description Provides comprehensive vehicle management operations for handling customer vehicles, vehicle data lookups,
|
|
4
|
+
* brand and model queries, and vehicle-based insurance operations within the automotive insurance ecosystem.
|
|
5
|
+
*/
|
|
6
|
+
import type { HttpTransport } from '../client/http.js';
|
|
7
|
+
import type { InsurUpResult } from '../core/result.js';
|
|
8
|
+
import type { RequestOptions } from '../core/options.js';
|
|
9
|
+
import type { InsuranceParameter } from '@insurup/contracts';
|
|
10
|
+
import type { CreateCustomerVehicleRequest, CreateCustomerVehicleResult, UpdateCustomerVehicleRequest, GetCustomerVehicleResult, GetCustomerVehiclesRequest, GetCustomerVehiclesResult, ExternalLookupVehicleRequest, ExternalLookupVehicleResult, QueryVehicleModelTypesRequest, QueryVehicleByBrandCodeResult } from '@insurup/contracts';
|
|
11
|
+
/**
|
|
12
|
+
* Vehicle Management Client
|
|
13
|
+
*
|
|
14
|
+
* Specialized client for managing customer vehicles and automotive industry data within the InsurUp platform.
|
|
15
|
+
* Handles vehicle lifecycle management, chassis number validations, external vehicle data lookups, brand and model
|
|
16
|
+
* queries, and vehicle-based insurance operations. Essential for agencies offering vehicle insurance products including
|
|
17
|
+
* Kasko (comprehensive vehicle insurance), TSS (traffic insurance), and IMM (voluntary financial liability) coverage,
|
|
18
|
+
* requiring accurate vehicle identification, validation, and market data integration for proper risk assessment and pricing.
|
|
19
|
+
*
|
|
20
|
+
* InsurUp platformu içinde müşteri araçları ve otomotiv sektörü verilerini yönetmek için özelleşmiş istemci.
|
|
21
|
+
* Araç yaşam döngüsü yönetimi, şasi numarası doğrulamaları, harici araç veri aramaları, marka ve model sorguları ve
|
|
22
|
+
* araç tabanlı sigorta operasyonlarını yönetir. Kasko (kasko araç sigortası), TSS (trafik sigortası) ve İMM (ihtiyari
|
|
23
|
+
* mali mesuliyet) teminatı dahil araç sigortası ürünleri sunan ve uygun risk değerlendirmesi ile fiyatlandırma için
|
|
24
|
+
* doğru araç tanımlaması, doğrulama ve pazar veri entegrasyonu gerektiren acenteler için olmazsa olmazdır.
|
|
25
|
+
*/
|
|
26
|
+
export declare class InsurUpVehicleClient {
|
|
27
|
+
private readonly http;
|
|
28
|
+
constructor(http: HttpTransport);
|
|
29
|
+
/**
|
|
30
|
+
* Adds a new vehicle to a customer's profile with complete vehicle information including chassis number and specifications.
|
|
31
|
+
*
|
|
32
|
+
* Şasi numarası ve özellikler dahil tam araç bilgileri ile müşterinin profiline yeni araç ekler.
|
|
33
|
+
*
|
|
34
|
+
* @param request Vehicle creation request with vehicle details / Araç detayları ile araç oluşturma talebi
|
|
35
|
+
* @returns Created vehicle information / Oluşturulan araç bilgileri
|
|
36
|
+
*/
|
|
37
|
+
addCustomerVehicle(request: CreateCustomerVehicleRequest, options?: RequestOptions): Promise<InsurUpResult<CreateCustomerVehicleResult>>;
|
|
38
|
+
/**
|
|
39
|
+
* Updates existing customer vehicle information including modifications, ownership changes, or specification updates.
|
|
40
|
+
*
|
|
41
|
+
* Modifikasyonlar, sahiplik değişiklikleri veya özellik güncellemeleri dahil mevcut müşteri araç bilgilerini günceller.
|
|
42
|
+
*
|
|
43
|
+
* @param request Vehicle update request / Araç güncelleme talebi
|
|
44
|
+
* @returns Operation result / İşlem sonucu
|
|
45
|
+
*/
|
|
46
|
+
updateCustomerVehicle(request: UpdateCustomerVehicleRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves detailed information about a specific customer vehicle including its insurance history and current status.
|
|
49
|
+
*
|
|
50
|
+
* Belirli bir müşteri aracı hakkında sigorta geçmişi ve mevcut durumu dahil detaylı bilgileri getirir.
|
|
51
|
+
*
|
|
52
|
+
* @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
|
|
53
|
+
* @param vehicleId Unique identifier of the vehicle / Aracın benzersiz tanımlayıcısı
|
|
54
|
+
* @returns Vehicle details / Araç detayları
|
|
55
|
+
*/
|
|
56
|
+
getCustomerVehicle(customerId: string, vehicleId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerVehicleResult>>;
|
|
57
|
+
/**
|
|
58
|
+
* Retrieves all vehicles owned by a specific customer for comprehensive vehicle portfolio management.
|
|
59
|
+
*
|
|
60
|
+
* Kapsamlı araç portföy yönetimi için belirli bir müşterinin sahip olduğu tüm araçları getirir.
|
|
61
|
+
*
|
|
62
|
+
* @param request Customer vehicles query request / Müşteri araçları sorgu talebi
|
|
63
|
+
* @returns List of customer vehicles / Müşteri araçları listesi
|
|
64
|
+
*/
|
|
65
|
+
getCustomerVehicles(request: GetCustomerVehiclesRequest, options?: RequestOptions): Promise<InsurUpResult<GetCustomerVehiclesResult[]>>;
|
|
66
|
+
/**
|
|
67
|
+
* Permanently removes a customer vehicle record from the system with proper data cleanup and insurance impact assessment.
|
|
68
|
+
*
|
|
69
|
+
* Uygun veri temizliği ve sigorta etki değerlendirmesi ile müşteri araç kaydını sistemden kalıcı olarak kaldırır.
|
|
70
|
+
*
|
|
71
|
+
* @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
|
|
72
|
+
* @param vehicleId Unique identifier of the vehicle / Aracın benzersiz tanımlayıcısı
|
|
73
|
+
* @returns Operation result / İşlem sonucu
|
|
74
|
+
*/
|
|
75
|
+
deleteCustomerVehicle(customerId: string, vehicleId: string, options?: RequestOptions): Promise<InsurUpResult>;
|
|
76
|
+
/**
|
|
77
|
+
* Performs external vehicle data lookup using chassis number or license plate to retrieve official vehicle information.
|
|
78
|
+
*
|
|
79
|
+
* Resmi araç bilgilerini almak için şasi numarası veya plaka kullanarak harici araç veri araması yapar.
|
|
80
|
+
*
|
|
81
|
+
* @param request External vehicle lookup request / Harici araç arama talebi
|
|
82
|
+
* @returns External vehicle data / Harici araç verileri
|
|
83
|
+
*/
|
|
84
|
+
externalLookupVehicle(request: ExternalLookupVehicleRequest, options?: RequestOptions): Promise<InsurUpResult<ExternalLookupVehicleResult>>;
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves all available vehicle brands for vehicle selection and registration purposes.
|
|
87
|
+
*
|
|
88
|
+
* Araç seçimi ve kayıt amaçları için mevcut tüm araç markalarını getirir.
|
|
89
|
+
*
|
|
90
|
+
* @returns List of vehicle brands / Araç markaları listesi
|
|
91
|
+
*/
|
|
92
|
+
queryVehicleBrands(options?: RequestOptions): Promise<InsurUpResult<InsuranceParameter[]>>;
|
|
93
|
+
/**
|
|
94
|
+
* Retrieves all vehicle models for a specific brand including different model years and specifications.
|
|
95
|
+
*
|
|
96
|
+
* Farklı model yılları ve özellikler dahil belirli bir marka için tüm araç modellerini getirir.
|
|
97
|
+
*
|
|
98
|
+
* @param request Vehicle model query request / Araç modeli sorgu talebi
|
|
99
|
+
* @returns List of vehicle models / Araç modelleri listesi
|
|
100
|
+
*/
|
|
101
|
+
queryVehicleModels(request: QueryVehicleModelTypesRequest, options?: RequestOptions): Promise<InsurUpResult<InsuranceParameter[]>>;
|
|
102
|
+
/**
|
|
103
|
+
* Queries vehicle information using a specific brand code to retrieve detailed brand and model specifications.
|
|
104
|
+
*
|
|
105
|
+
* Detaylı marka ve model özelliklerini almak için belirli bir marka kodu kullanarak araç bilgilerini sorgular.
|
|
106
|
+
*
|
|
107
|
+
* @param brandCode Vehicle brand code for query / Sorgu için araç marka kodu
|
|
108
|
+
* @returns Vehicle brand information / Araç marka bilgileri
|
|
109
|
+
*/
|
|
110
|
+
queryVehicleByBrandCode(brandCode: string, options?: RequestOptions): Promise<InsurUpResult<QueryVehicleByBrandCodeResult>>;
|
|
111
|
+
}
|
|
112
|
+
//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AC,yBAAyB,EAAE,CAAC,CAAC;IAKtD;;;;;;;;OAQG;IACG,qBAAqB,CACzB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IAKzB;;;;;;;OAOG;IACG,qBAAqB,CACzB,OAAO,EAAE,4BAA4B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAAC;IAKtD;;;;;;OAMG;IACG,kBAAkB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAKhG;;;;;;;OAOG;IACG,kBAAkB,CACtB,OAAO,EAAE,6BAA6B,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAK/C;;;;;;;OAOG;IACG,uBAAuB,CAC3B,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,6BAA6B,CAAC,CAAC;CAKzD"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { HttpTransport } from '../client/http.js';
|
|
2
|
+
import type { GraphQLTransport } from '../client/graphql.js';
|
|
3
|
+
import type { InsurUpResult, InsurUpGraphQLResult } from '../core/result.js';
|
|
4
|
+
import type { RequestOptions } from '../core/options.js';
|
|
5
|
+
import { type WebhookDeliveryFieldKey, type GetWebhookDeliveriesOptions, type WebhookDeliveriesConnection } from '@insurup/contracts';
|
|
6
|
+
import type { CreateWebhookRequest, CreateWebhookResult, GetWebhookByIdResult, GetWebhooksResult, UpdateWebhookRequest, GetWebhookDeliveryResult } from '@insurup/contracts';
|
|
7
|
+
/**
|
|
8
|
+
* Provides comprehensive webhook management operations for configuring event notifications, monitoring delivery status,
|
|
9
|
+
* and managing external system integrations within the InsurUp platform ecosystem.
|
|
10
|
+
*
|
|
11
|
+
* InsurUp platform ekosistemi içinde olay bildirimlerini yapılandırma, teslimat durumunu izleme ve
|
|
12
|
+
* harici sistem entegrasyonlarını yönetmek için kapsamlı webhook yönetimi işlemlerini sağlar.
|
|
13
|
+
*/
|
|
14
|
+
export declare class InsurUpWebhookClient {
|
|
15
|
+
private readonly http;
|
|
16
|
+
private readonly graphql?;
|
|
17
|
+
constructor(http: HttpTransport, graphql?: GraphQLTransport | undefined);
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new webhook configuration to receive event notifications from the InsurUp platform.
|
|
20
|
+
*
|
|
21
|
+
* InsurUp platformundan olay bildirimleri almak için yeni webhook yapılandırması oluşturur.
|
|
22
|
+
*
|
|
23
|
+
* @param request Webhook creation request with endpoint and event configurations / Endpoint ve olay yapılandırmaları ile webhook oluşturma talebi
|
|
24
|
+
* @returns Created webhook information / Oluşturulan webhook bilgileri
|
|
25
|
+
*/
|
|
26
|
+
createWebhook(request: CreateWebhookRequest, options?: RequestOptions): Promise<InsurUpResult<CreateWebhookResult>>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves detailed information about a specific webhook including its configuration and current status.
|
|
29
|
+
*
|
|
30
|
+
* Belirli bir webhook hakkında yapılandırması ve mevcut durumu dahil detaylı bilgileri getirir.
|
|
31
|
+
*
|
|
32
|
+
* @param webhookId Unique identifier of the webhook / Webhook'un benzersiz tanımlayıcısı
|
|
33
|
+
* @returns Webhook configuration details / Webhook yapılandırma detayları
|
|
34
|
+
*/
|
|
35
|
+
getWebhookById(webhookId: string, options?: RequestOptions): Promise<InsurUpResult<GetWebhookByIdResult>>;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves all webhooks configured for the current agent or organization for comprehensive webhook management.
|
|
38
|
+
*
|
|
39
|
+
* Kapsamlı webhook yönetimi için mevcut acente veya organizasyon için yapılandırılmış tüm webhook'ları getirir.
|
|
40
|
+
*
|
|
41
|
+
* @returns List of configured webhooks / Yapılandırılmış webhook'lar listesi
|
|
42
|
+
*/
|
|
43
|
+
getWebhooks(options?: RequestOptions): Promise<InsurUpResult<GetWebhooksResult[]>>;
|
|
44
|
+
/**
|
|
45
|
+
* Updates an existing webhook configuration including endpoint URL, event subscriptions, or authentication settings.
|
|
46
|
+
*
|
|
47
|
+
* Endpoint URL'si, olay abonelikleri veya kimlik doğrulama ayarları dahil mevcut webhook yapılandırmasını günceller.
|
|
48
|
+
*
|
|
49
|
+
* @param request Webhook update request with modified configuration / Değiştirilmiş yapılandırma ile webhook güncelleme talebi
|
|
50
|
+
* @returns Operation result / İşlem sonucu
|
|
51
|
+
*/
|
|
52
|
+
updateWebhook(request: UpdateWebhookRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
53
|
+
/**
|
|
54
|
+
* Permanently removes a webhook configuration, stopping all future event notifications to the specified endpoint.
|
|
55
|
+
*
|
|
56
|
+
* Webhook yapılandırmasını kalıcı olarak kaldırır ve belirtilen endpoint'e gelecekteki tüm olay bildirimlerini durdurur.
|
|
57
|
+
*
|
|
58
|
+
* @param webhookId Unique identifier of the webhook to delete / Silinecek webhook'un benzersiz tanımlayıcısı
|
|
59
|
+
* @returns Operation result / İşlem sonucu
|
|
60
|
+
*/
|
|
61
|
+
deleteWebhook(webhookId: string, options?: RequestOptions): Promise<InsurUpResult>;
|
|
62
|
+
/**
|
|
63
|
+
* Retrieves detailed information about a specific webhook delivery including delivery status, response, and timing.
|
|
64
|
+
*
|
|
65
|
+
* Teslimat durumu, yanıt ve zamanlama dahil belirli bir webhook teslimatı hakkında detaylı bilgileri getirir.
|
|
66
|
+
*
|
|
67
|
+
* @param webhookId Unique identifier of the webhook / Webhook'un benzersiz tanımlayıcısı
|
|
68
|
+
* @param webhookDeliveryId Unique identifier of the delivery attempt / Teslimat denemesinin benzersiz tanımlayıcısı
|
|
69
|
+
* @returns Webhook delivery details / Webhook teslimat detayları
|
|
70
|
+
*/
|
|
71
|
+
getWebhookDelivery(webhookId: string, webhookDeliveryId: string, options?: RequestOptions): Promise<InsurUpResult<GetWebhookDeliveryResult>>;
|
|
72
|
+
/**
|
|
73
|
+
* Manually retries a failed webhook event delivery to attempt successful notification delivery.
|
|
74
|
+
*
|
|
75
|
+
* Başarılı bildirim teslimatını denemek için başarısız webhook olay teslimatını manuel olarak yeniden dener.
|
|
76
|
+
*
|
|
77
|
+
* @param webhookId Unique identifier of the webhook / Webhook'un benzersiz tanımlayıcısı
|
|
78
|
+
* @param webhookDeliveryId Unique identifier of the delivery to retry / Yeniden denenecek teslimatın benzersiz tanımlayıcısı
|
|
79
|
+
* @returns Operation result / İşlem sonucu
|
|
80
|
+
*/
|
|
81
|
+
redeliverWebhookEvent(webhookId: string, webhookDeliveryId: string, options?: RequestOptions): Promise<InsurUpResult>;
|
|
82
|
+
/**
|
|
83
|
+
* Queries webhook deliveries using GraphQL with advanced filtering, searching, sorting, and field selection.
|
|
84
|
+
* Supports cursor-based pagination and type-safe field selection.
|
|
85
|
+
*
|
|
86
|
+
* Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak webhook teslimatlarını sorgular.
|
|
87
|
+
* İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* // Basic query with all fields
|
|
91
|
+
* const result = await client.webhooks.getWebhookDeliveries({ first: 10 });
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* // Type-safe field selection with filter
|
|
95
|
+
* const result = await client.webhooks.getWebhookDeliveries({
|
|
96
|
+
* select: ['id', 'webhookId', 'event', 'state'] as const,
|
|
97
|
+
* first: 10,
|
|
98
|
+
* filter: { state: { eq: WebhookDeliveryState.Failed } }
|
|
99
|
+
* });
|
|
100
|
+
*
|
|
101
|
+
* @param requestOptions Query options including pagination, filters, search, and field selection
|
|
102
|
+
* @returns Paginated connection of webhook deliveries with type-narrowed fields
|
|
103
|
+
*/
|
|
104
|
+
getWebhookDeliveries<const TFields extends WebhookDeliveryFieldKey[]>(requestOptions?: GetWebhookDeliveriesOptions<TFields>, options?: RequestOptions): Promise<InsurUpGraphQLResult<WebhookDeliveriesConnection<TFields>>>;
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=webhook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../src/clients/webhook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EACjC,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAE5B;;;;;;GAMG;AACH,qBAAa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;gBADR,IAAI,EAAE,aAAa,EACnB,OAAO,CAAC,EAAE,gBAAgB,YAAA;IAG7C;;;;;;;OAOG;IACG,aAAa,CACjB,OAAO,EAAE,oBAAoB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;IAI9C;;;;;;;OAOG;IACG,cAAc,CAClB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAK/C;;;;;;OAMG;IACG,WAAW,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAIxF;;;;;;;OAOG;IACG,aAAa,CACjB,OAAO,EAAE,oBAAoB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IAKzB;;;;;;;OAOG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAKxF;;;;;;;;OAQG;IACG,kBAAkB,CACtB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC;IAKnD;;;;;;;;OAQG;IACG,qBAAqB,CACzB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IASzB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,oBAAoB,CAAC,KAAK,CAAC,OAAO,SAAS,uBAAuB,EAAE,EACxE,cAAc,CAAC,EAAE,2BAA2B,CAAC,OAAO,CAAC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,oBAAoB,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC,CAAC;CAiFvE"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview SDK Configuration - Default values and configuration constants
|
|
3
|
+
* @description Default configuration values for the InsurUp SDK client
|
|
4
|
+
*/
|
|
5
|
+
import type { InsurUpClientOptions, RetryOptions, TokenProvider, RequestInterceptor, ResponseInterceptor } from './options.js';
|
|
6
|
+
/**
|
|
7
|
+
* Default retry options for transient failure handling
|
|
8
|
+
* Based on standard exponential backoff defaults with InsurUp-specific settings
|
|
9
|
+
*/
|
|
10
|
+
export declare const DEFAULT_RETRY_OPTIONS: Required<RetryOptions>;
|
|
11
|
+
/**
|
|
12
|
+
* Default logger implementation using console
|
|
13
|
+
*/
|
|
14
|
+
export declare const DEFAULT_LOGGER: {
|
|
15
|
+
readonly info: (message: string, data?: unknown) => void;
|
|
16
|
+
readonly warn: (message: string, data?: unknown) => void;
|
|
17
|
+
readonly error: (message: string, data?: unknown) => void;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Required client options type (tokenProvider, onRequest, onResponse, retry remain optional)
|
|
21
|
+
*/
|
|
22
|
+
export type RequiredClientOptions = Required<Omit<InsurUpClientOptions, 'tokenProvider' | 'onRequest' | 'onResponse' | 'retry' | 'hubsBaseUrl' | 'signalRLogLevel'>> & {
|
|
23
|
+
tokenProvider?: TokenProvider;
|
|
24
|
+
onRequest?: RequestInterceptor;
|
|
25
|
+
onResponse?: ResponseInterceptor;
|
|
26
|
+
retry?: Required<RetryOptions>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Default configuration values for the InsurUp SDK client
|
|
30
|
+
*/
|
|
31
|
+
export declare const DEFAULT_CLIENT_OPTIONS: RequiredClientOptions;
|
|
32
|
+
/**
|
|
33
|
+
* Merges user-provided options with defaults
|
|
34
|
+
* @param options User-provided options
|
|
35
|
+
* @returns Complete options object with defaults applied
|
|
36
|
+
*/
|
|
37
|
+
export declare function mergeWithDefaults(options?: InsurUpClientOptions): RequiredClientOptions;
|
|
38
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/core/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAEtB;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,YAAY,CAS/C,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;6BACT,MAAM,SAAS,OAAO;6BAOtB,MAAM,SAAS,OAAO;8BAOrB,MAAM,SAAS,OAAO;CAO/B,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAC1C,IAAI,CACF,oBAAoB,EACpB,eAAe,GAAG,WAAW,GAAG,YAAY,GAAG,OAAO,GAAG,aAAa,GAAG,iBAAiB,CAC3F,CACF,GAAG;IACF,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,KAAK,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,qBAW3B,CAAC;AAEX;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,qBAAqB,CAgBvF"}
|