@insurup/sdk 0.1.12 → 0.1.14

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 (67) hide show
  1. package/README.md +55 -58
  2. package/dist/client/client.d.ts +153 -0
  3. package/dist/client/client.d.ts.map +1 -0
  4. package/dist/client/graphql.d.ts +51 -0
  5. package/dist/client/graphql.d.ts.map +1 -0
  6. package/dist/client/http.d.ts +173 -0
  7. package/dist/client/http.d.ts.map +1 -0
  8. package/dist/clients/agent.d.ts +121 -0
  9. package/dist/clients/agent.d.ts.map +1 -0
  10. package/dist/clients/agentBranch.d.ts +61 -0
  11. package/dist/clients/agentBranch.d.ts.map +1 -0
  12. package/dist/clients/agentRole.d.ts +60 -0
  13. package/dist/clients/agentRole.d.ts.map +1 -0
  14. package/dist/clients/agentSetup.d.ts +34 -0
  15. package/dist/clients/agentSetup.d.ts.map +1 -0
  16. package/dist/clients/agentUser.d.ts +176 -0
  17. package/dist/clients/agentUser.d.ts.map +1 -0
  18. package/dist/clients/case.d.ts +232 -0
  19. package/dist/clients/case.d.ts.map +1 -0
  20. package/dist/clients/coverage.d.ts +98 -0
  21. package/dist/clients/coverage.d.ts.map +1 -0
  22. package/dist/clients/customer.d.ts +216 -0
  23. package/dist/clients/customer.d.ts.map +1 -0
  24. package/dist/clients/file.d.ts +30 -0
  25. package/dist/clients/file.d.ts.map +1 -0
  26. package/dist/clients/insurance.d.ts +105 -0
  27. package/dist/clients/insurance.d.ts.map +1 -0
  28. package/dist/clients/language.d.ts +27 -0
  29. package/dist/clients/language.d.ts.map +1 -0
  30. package/dist/clients/policy.d.ts +251 -0
  31. package/dist/clients/policy.d.ts.map +1 -0
  32. package/dist/clients/property.d.ts +163 -0
  33. package/dist/clients/property.d.ts.map +1 -0
  34. package/dist/clients/proposal.d.ts +232 -0
  35. package/dist/clients/proposal.d.ts.map +1 -0
  36. package/dist/clients/template.d.ts +73 -0
  37. package/dist/clients/template.d.ts.map +1 -0
  38. package/dist/clients/vehicle.d.ts +112 -0
  39. package/dist/clients/vehicle.d.ts.map +1 -0
  40. package/dist/clients/webhook.d.ts +106 -0
  41. package/dist/clients/webhook.d.ts.map +1 -0
  42. package/dist/core/config.d.ts +38 -0
  43. package/dist/core/config.d.ts.map +1 -0
  44. package/dist/core/endpoints.d.ts +1331 -0
  45. package/dist/core/endpoints.d.ts.map +1 -0
  46. package/dist/core/error-types.d.ts +66 -0
  47. package/dist/core/error-types.d.ts.map +1 -0
  48. package/dist/core/errors.d.ts +42 -0
  49. package/dist/core/errors.d.ts.map +1 -0
  50. package/dist/core/options.d.ts +221 -0
  51. package/dist/core/options.d.ts.map +1 -0
  52. package/dist/core/result.d.ts +183 -0
  53. package/dist/core/result.d.ts.map +1 -0
  54. package/dist/core/retry.d.ts +15 -0
  55. package/dist/core/retry.d.ts.map +1 -0
  56. package/dist/index.browser.js +1 -1
  57. package/dist/index.browser.js.map +1 -1
  58. package/dist/index.cjs +144 -506
  59. package/dist/index.cjs.map +1 -1
  60. package/dist/index.d.ts +31 -4225
  61. package/dist/index.d.ts.map +1 -0
  62. package/dist/index.js +144 -506
  63. package/dist/index.js.map +1 -1
  64. package/dist/version.d.ts +10 -0
  65. package/dist/version.d.ts.map +1 -0
  66. package/package.json +17 -14
  67. package/dist/index.d.cts +0 -4226
@@ -0,0 +1,232 @@
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 { InsurUpResult, InsurUpGraphQLResult } from '../core/result.js';
9
+ import type { RequestOptions } from '../core/options.js';
10
+ import { type ProposalFieldKey, type GetProposalsOptions, type ProposalsConnection } from '@insurup/contracts';
11
+ 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';
12
+ /**
13
+ * Proposal Management Client / Teklif Yönetimi İstemcisi
14
+ *
15
+ * Central client for managing the complete insurance proposal lifecycle from creation to policy conversion. Handles
16
+ * proposal generation, product comparison, premium calculations, document management, customer communication, and the
17
+ * purchasing process for various insurance products. Provides both synchronous and asynchronous purchasing options,
18
+ * comprehensive document generation including comparison PDFs, and proposal revision capabilities. Essential for
19
+ * agencies that need to create competitive insurance proposals, manage customer decision processes, and convert
20
+ * proposals into active policies while maintaining detailed audit trails and customer communication records.
21
+ *
22
+ * Oluşturmadan poliçe dönüştürmeye kadar tam sigorta teklif yaşam döngüsünü yönetmek için merkezi istemci.
23
+ * Teklif oluşturma, ürün karşılaştırması, prim hesaplamaları, belge yönetimi, müşteri iletişimi ve çeşitli sigorta
24
+ * ü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
25
+ * dahil kapsamlı belge oluşturma ve teklif revizyon yetenekleri sağlar. Rekabetçi sigorta teklifleri oluşturması,
26
+ * müşteri karar süreçlerini yönetmesi ve detaylı denetim izleri ile müşteri iletişim kayıtlarını korurken teklifleri
27
+ * aktif poliçelere dönüştürmesi gereken acenteler için olmazsa olmazdır.
28
+ */
29
+ export declare class InsurUpProposalClient {
30
+ private readonly http;
31
+ private readonly graphql?;
32
+ constructor(http: HttpTransport, graphql?: GraphQLTransport | undefined);
33
+ /**
34
+ * Creates a new insurance proposal with customer information, coverage selections, and product options for quotation.
35
+ *
36
+ * Fiyat teklifi için müşteri bilgileri, teminat seçimleri ve ürün seçenekleri ile yeni sigorta teklifi oluşturur.
37
+ *
38
+ * @param request - Proposal creation request with customer and coverage details / Müşteri ve teminat detayları ile teklif oluşturma talebi
39
+ * @returns Created proposal information / Oluşturulan teklif bilgileri
40
+ */
41
+ createProposal(request: CreateProposalRequest, options?: RequestOptions): Promise<InsurUpResult<CreateProposalResult>>;
42
+ /**
43
+ * Retries a failed proposal product calculation or processing to attempt resolution of temporary issues.
44
+ *
45
+ * Geçici sorunların çözümünü denemek için başarısız teklif ürün hesaplama veya işlemesini yeniden dener.
46
+ *
47
+ * @param proposalId - Unique identifier of the proposal / Teklifin benzersiz tanımlayıcısı
48
+ * @param proposalProductId - Unique identifier of the proposal product / Teklif ürününün benzersiz tanımlayıcısı
49
+ * @returns Operation result / İşlem sonucu
50
+ */
51
+ retryFailedProposalProduct(proposalId: string, proposalProductId: string, options?: RequestOptions): Promise<InsurUpResult>;
52
+ /**
53
+ * Retrieves comprehensive details of a specific proposal including all products, coverage options, and pricing information.
54
+ *
55
+ * Tüm ürünler, teminat seçenekleri ve fiyatlandırma bilgileri dahil belirli bir teklifin kapsamlı detaylarını getirir.
56
+ *
57
+ * @param proposalId - Unique identifier of the proposal / Teklifin benzersiz tanımlayıcısı
58
+ * @returns Detailed proposal information / Detaylı teklif bilgileri
59
+ */
60
+ getProposalDetail(proposalId: string, options?: RequestOptions): Promise<InsurUpResult<GetProposalByIdResult>>;
61
+ /**
62
+ * Retrieves detailed premium breakdown information for a specific proposal product including installment options.
63
+ *
64
+ * Taksit seçenekleri dahil belirli bir teklif ürünü için detaylı prim dağılım bilgilerini getirir.
65
+ *
66
+ * @param proposalId - Unique identifier of the proposal / Teklifin benzersiz tanımlayıcısı
67
+ * @param proposalProductId - Unique identifier of the proposal product / Teklif ürününün benzersiz tanımlayıcısı
68
+ * @param installmentNumber - Installment option number / Taksit seçenek numarası
69
+ * @returns Premium breakdown details / Prim dağılım detayları
70
+ */
71
+ getProposalProductPremiumDetail(proposalId: string, proposalProductId: string, installmentNumber: number, options?: RequestOptions): Promise<InsurUpResult<GetProposalProductPremiumDetailResult>>;
72
+ /**
73
+ * Purchases a proposal product synchronously, converting it to an active policy with immediate confirmation.
74
+ *
75
+ * Teklif ürününü senkron olarak satın alır ve anında onay ile aktif poliçeye dönüştürür.
76
+ *
77
+ * @param request - Synchronous purchase request / Senkron satın alma talebi
78
+ * @returns Purchase confirmation with policy details / Poliçe detayları ile satın alma onayı
79
+ */
80
+ purchaseProposalProductSync(request: PurchaseProposalProductSyncRequest, options?: RequestOptions): Promise<InsurUpResult<PurchaseProposalProductSyncResult>>;
81
+ /**
82
+ * Initiates an asynchronous purchase process for a proposal product, allowing for background processing and later confirmation.
83
+ *
84
+ * Arka plan işleme ve sonraki onay için teklif ürünü için asenkron satın alma sürecini başlatır.
85
+ *
86
+ * @param request - Asynchronous purchase request / Asenkron satın alma talebi
87
+ * @returns Purchase initiation confirmation / Satın alma başlatma onayı
88
+ */
89
+ purchaseProposalProductAsync(request: PurchaseProposalProductAsyncRequest, options?: RequestOptions): Promise<InsurUpResult<PurchaseProposalProductAsyncResult>>;
90
+ /**
91
+ * Retrieves detailed coverage configuration for a specific proposal product including all coverage options and limits.
92
+ *
93
+ * Tüm teminat seçenekleri ve limitleri dahil belirli bir teklif ürünü için detaylı teminat yapılandırmasını getirir.
94
+ *
95
+ * @param proposalId - Unique identifier of the proposal / Teklifin benzersiz tanımlayıcısı
96
+ * @param proposalProductId - Unique identifier of the proposal product / Teklif ürününün benzersiz tanımlayıcısı
97
+ * @returns Coverage configuration details / Teminat yapılandırma detayları
98
+ */
99
+ getProposalProductCoverage(proposalId: string, proposalProductId: string, options?: RequestOptions): Promise<InsurUpResult<GetProposalProductCoverageResult>>;
100
+ /**
101
+ * Creates a revised version of an existing proposal with updated information, coverage changes, or customer modifications.
102
+ *
103
+ * Güncellenmiş bilgiler, teminat değişiklikleri veya müşteri değişiklikleri ile mevcut teklifin revize edilmiş versiyonunu oluşturur.
104
+ *
105
+ * @param request - Proposal revision request / Teklif revizyon talebi
106
+ * @returns Revised proposal information / Revize edilmiş teklif bilgileri
107
+ */
108
+ reviseProposal(request: ReviseProposalRequest, options?: RequestOptions): Promise<InsurUpResult<ReviseProposalResult>>;
109
+ /**
110
+ * Revises a specific product within a proposal with updated coverage options, limits, or pricing parameters.
111
+ *
112
+ * Güncellenmiş teminat seçenekleri, limitler veya fiyatlandırma parametreleri ile teklif içindeki belirli ürünü revize eder.
113
+ *
114
+ * @param request - Product revision request / Ürün revizyon talebi
115
+ * @returns Operation result / İşlem sonucu
116
+ */
117
+ reviseProposalProduct(request: ReviseProposalProductRequest, options?: RequestOptions): Promise<InsurUpResult>;
118
+ /**
119
+ * Fetches the official proposal document for a specific product from the insurance company's systems.
120
+ *
121
+ * Sigorta şirketinin sistemlerinden belirli bir ürün için resmi teklif belgesini getirir.
122
+ *
123
+ * @param request - Document fetch request / Belge getirme talebi
124
+ * @returns Proposal document data / Teklif belgesi verisi
125
+ */
126
+ fetchProposalProductDocument(request: FetchProposalProductDocumentRequest, options?: RequestOptions): Promise<InsurUpResult<FetchProposalProductDocumentResult>>;
127
+ /**
128
+ * Fetches the information form document that contains detailed product information and terms for customer review.
129
+ *
130
+ * Müşteri incelemesi için detaylı ürün bilgileri ve şartları içeren bilgi formu belgesini getirir.
131
+ *
132
+ * @param request - Information form document request / Bilgi formu belgesi talebi
133
+ * @returns Information form document data / Bilgi formu belgesi verisi
134
+ */
135
+ fetchProposalInformationFormDocument(request: FetchProposalInformationFormDocumentRequest, options?: RequestOptions): Promise<InsurUpResult<FetchProposalInformationFormDocumentResult>>;
136
+ /**
137
+ * Sends the proposal product document directly to the customer via email or other communication channels.
138
+ *
139
+ * Teklif ürün belgesini e-posta veya diğer iletişim kanalları aracılığıyla doğrudan müşteriye gönderir.
140
+ *
141
+ * @param request - Document delivery request / Belge teslim talebi
142
+ * @returns Operation result / İşlem sonucu
143
+ */
144
+ sendProposalProductDocument(request: SendProposalProductDocumentRequest, options?: RequestOptions): Promise<InsurUpResult>;
145
+ /**
146
+ * Sends the information form document to the customer for detailed product review and decision making.
147
+ *
148
+ * Detaylı ürün incelemesi ve karar verme için bilgi formu belgesini müşteriye gönderir.
149
+ *
150
+ * @param request - Information form delivery request / Bilgi formu teslim talebi
151
+ * @returns Operation result / İşlem sonucu
152
+ */
153
+ sendProposalInformationFormDocument(request: SendProposalInformationFormDocumentRequest, options?: RequestOptions): Promise<InsurUpResult>;
154
+ /**
155
+ * Generates a comparative PDF document showing multiple proposal products side-by-side for customer decision support.
156
+ *
157
+ * 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.
158
+ *
159
+ * @param request - Comparison PDF generation request / Karşılaştırma PDF oluşturma talebi
160
+ * @returns Generated comparison document / Oluşturulan karşılaştırma belgesi
161
+ */
162
+ generateCompareProposalProductsPdf(request: GenerateCompareProposalProductsPdfRequest, options?: RequestOptions): Promise<InsurUpResult<GenerateCompareProposalProductsPdfResult>>;
163
+ /**
164
+ * Sends the proposal comparison PDF document to the customer to facilitate informed decision making between insurance options.
165
+ *
166
+ * 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.
167
+ *
168
+ * @param request - Comparison PDF delivery request / Karşılaştırma PDF teslim talebi
169
+ * @returns Operation result / İşlem sonucu
170
+ */
171
+ sendCompareProposalProductsPdf(request: SendCompareProposalProductsPdfRequest, options?: RequestOptions): Promise<InsurUpResult>;
172
+ /**
173
+ * Generates a professional PDF document containing selected proposal products for customer presentation.
174
+ *
175
+ * Müşteri sunumu için seçilen teklif ürünlerini içeren profesyonel bir PDF belgesi oluşturur.
176
+ *
177
+ * @param request Customer proposal document generation request / Müşteri teklif belgesi oluşturma talebi
178
+ * @returns Generated document URL / Oluşturulan belge URL'i
179
+ */
180
+ generateCustomerProposalDocumentPdf(request: GenerateCustomerProposalDocumentPdfRequest, options?: RequestOptions): Promise<InsurUpResult<GenerateCustomerProposalDocumentPdfResult>>;
181
+ /**
182
+ * Assigns or changes the branch for a proposal to organize proposal segmentation and reporting.
183
+ *
184
+ * Teklif segmentasyonu ve raporlama için teklifin şubesini atar veya değiştirir.
185
+ *
186
+ * @param request Branch assignment request / Şube atama talebi
187
+ * @returns Operation result / İşlem sonucu
188
+ */
189
+ setProposalBranch(request: SetProposalBranchRequest, options?: RequestOptions): Promise<InsurUpResult>;
190
+ /**
191
+ * Retrieves proposal-to-policy conversion trend analytics as a time series.
192
+ *
193
+ * Tekliften poliçeye dönüşüm trendi analitiğini zaman serisi olarak getirir.
194
+ *
195
+ * @param request Conversion trend analytics request / Dönüşüm trendi analitik isteği
196
+ * @returns Conversion trend analytics response / Dönüşüm trendi analitiği yanıtı
197
+ */
198
+ getProposalConversionTrend(request: GetProposalConversionTrendRequest, options?: RequestOptions): Promise<InsurUpResult<GetProposalConversionTrendResult>>;
199
+ /**
200
+ * Assigns or updates the representative responsible for managing a specific proposal and customer relationship.
201
+ *
202
+ * Belirli bir teklifi ve müşteri ilişkisini yönetmekten sorumlu temsilciyi atar veya günceller.
203
+ *
204
+ * @param request - Representative assignment request / Temsilci atama talebi
205
+ * @returns Operation result / İşlem sonucu
206
+ */
207
+ setProposalRepresentative(request: SetProposalRepresentativeRequest, options?: RequestOptions): Promise<InsurUpResult>;
208
+ /**
209
+ * Queries proposals using GraphQL with advanced filtering, searching, sorting, and field selection.
210
+ * Supports cursor-based pagination and type-safe field selection.
211
+ *
212
+ * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak teklifleri sorgular.
213
+ * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
214
+ *
215
+ * @example
216
+ * // Basic query with all fields
217
+ * const result = await client.proposals.getProposals({ first: 10 });
218
+ *
219
+ * @example
220
+ * // Type-safe field selection
221
+ * const result = await client.proposals.getProposals({
222
+ * select: ['id', 'productBranch', 'state', 'insuredCustomerName'] as const,
223
+ * first: 10,
224
+ * filter: { state: { eq: ProposalState.Active } }
225
+ * });
226
+ *
227
+ * @param requestOptions Query options including pagination, filters, search, and field selection
228
+ * @returns Paginated connection of proposals with type-narrowed fields
229
+ */
230
+ getProposals<const TFields extends ProposalFieldKey[]>(requestOptions?: GetProposalsOptions<TFields>, options?: RequestOptions): Promise<InsurUpGraphQLResult<ProposalsConnection<TFields>>>;
231
+ }
232
+ //# 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,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,CAAC;AAE5B,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,qCAAqC,EACrC,kCAAkC,EAClC,iCAAiC,EACjC,mCAAmC,EACnC,kCAAkC,EAClC,gCAAgC,EAChC,qBAAqB,EACrB,oBAAoB,EACpB,4BAA4B,EAC5B,mCAAmC,EACnC,kCAAkC,EAClC,2CAA2C,EAC3C,0CAA0C,EAC1C,kCAAkC,EAClC,0CAA0C,EAC1C,yCAAyC,EACzC,wCAAwC,EACxC,qCAAqC,EACrC,gCAAg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,EAAE,0CAA0C,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,yCAAyC,CAAC,CAAC;IAQpE;;;;;;;OAOG;IACG,iBAAiB,CACrB,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IAQzB;;;;;;;OAOG;IACG,0BAA0B,CAC9B,OAAO,EAAE,iCAAiC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAAC;IAQ3D;;;;;;;OAOG;IACG,yBAAyB,CAC7B,OAAO,EAAE,gCAAgC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IAYzB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,YAAY,CAAC,KAAK,CAAC,OAAO,SAAS,gBAAgB,EAAE,EACzD,cAAc,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC;CAiF/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
+ //# sourceMappingURL=vehicle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vehicle.d.ts","sourceRoot":"","sources":["../../src/clients/vehicle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;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;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EACV,4BAA4B,EAC5B,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,EAE7B,6BAA6B,EAC9B,MAAM,oBAAoB,CAAC;AAG5B;;;;;;;;;;;;;;GAcG;AACH,qBAAa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,aAAa;IAEhD;;;;;;;OAOG;IACG,kBAAkB,CACtB,OAAO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,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,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,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;CAkFvE"}
@@ -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'>> & {
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,CAAC,oBAAoB,EAAE,eAAe,GAAG,WAAW,GAAG,YAAY,GAAG,OAAO,CAAC,CACnF,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"}