@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,232 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Case Management Client - Direct port from DefaultInsurUpClient.Case.cs
|
|
3
|
+
* @description TypeScript client for case management operations
|
|
4
|
+
*/
|
|
5
|
+
import type { InsurUpResult, InsurUpGraphQLResult } from '../core/result.js';
|
|
6
|
+
import type { HttpTransport } from '../client/http.js';
|
|
7
|
+
import type { GraphQLTransport } from '../client/graphql.js';
|
|
8
|
+
import type { RequestOptions } from '../core/options.js';
|
|
9
|
+
import { type CaseFieldKey, type GetCasesOptions, type CasesConnection } from '@insurup/contracts';
|
|
10
|
+
import type { AssignCaseRepresentativeRequest, ChangeCaseChannelRequest, ChangeCaseStateRequest, CreateCancelCaseRequest, CreateComplaintCaseRequest, CreateCrossSaleOpportunityCaseRequest, CreateEndorsementCaseRequest, CreateNewSaleOpportunityCaseRequest, AddNoteToCaseRequest, SetCaseAssetRequest, SetCaseBranchRequest, GetSalesOpportunityFunnelAnalyticsRequest, GetOpenCaseBacklogPivotAnalyticsRequest, GetFailedCasesReasonDistributionRequest, GetCaseByRefResult, CasePolicyResult, CaseActivityResult, CaseProposalResult, GetSalesOpportunityFunnelAnalyticsResult, GetOpenCaseBacklogPivotAnalyticsResult, GetFailedCasesReasonDistributionResult, CaseCommunicationAutomationResult, GetCasePriorityTemplatesResult } from '@insurup/contracts';
|
|
11
|
+
/**
|
|
12
|
+
* Case Management Client
|
|
13
|
+
*
|
|
14
|
+
* Central client for managing all types of customer cases and requests within the InsurUp platform. Handles various
|
|
15
|
+
* case types including policy cancellations, customer complaints, cross-sale opportunities, endorsement requests, and
|
|
16
|
+
* new sale opportunities. Provides comprehensive workflow management including case representative assignment, status tracking, activity
|
|
17
|
+
* logging, and representative management. Essential for agencies that need to maintain organized customer service operations
|
|
18
|
+
* and ensure proper follow-up on all customer interactions and business opportunities.
|
|
19
|
+
*
|
|
20
|
+
* InsurUp platformu içinde her türlü müşteri talebi ve isteğini yönetmek için merkezi istemci. Poliçe iptalleri,
|
|
21
|
+
* müşteri şikayetleri, çapraz satış fırsatları, zeyilname talepleri ve yeni satış fırsatları dahil çeşitli talep türlerini
|
|
22
|
+
* yönetir. Talep atama, durum takibi, aktivite kaydı ve temsilci yönetimi dahil kapsamlı iş akışı yönetimi sağlar.
|
|
23
|
+
* Düzenli müşteri hizmet operasyonlarını sürdürmesi ve tüm müşteri etkileşimleri ile iş fırsatlarında uygun takibi
|
|
24
|
+
* sağlaması gereken acenteler için olmazsa olmazdır.
|
|
25
|
+
*/
|
|
26
|
+
export declare class InsurUpCaseClient {
|
|
27
|
+
private readonly http;
|
|
28
|
+
private readonly graphql?;
|
|
29
|
+
constructor(http: HttpTransport, graphql?: GraphQLTransport | undefined);
|
|
30
|
+
/**
|
|
31
|
+
* Assigns a case representative to handle a specific customer case, ensuring proper ownership and accountability.
|
|
32
|
+
*
|
|
33
|
+
* Belirli bir müşteri talebini ele almak için talep temsilcisi atar ve uygun sahiplik ile hesap verebilirliği sağlar.
|
|
34
|
+
*
|
|
35
|
+
* @param request Case representative assignment request with representative details / Temsilci detayları ile talep atama talebi
|
|
36
|
+
* @returns Operation result / İşlem sonucu
|
|
37
|
+
*/
|
|
38
|
+
assignCaseRepresentative(request: AssignCaseRepresentativeRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
39
|
+
/**
|
|
40
|
+
* Changes the communication channel for a case to redirect it to appropriate department or platform.
|
|
41
|
+
*
|
|
42
|
+
* Bir talebin iletişim kanalını değiştirerek uygun departman veya platforma yönlendirir.
|
|
43
|
+
*
|
|
44
|
+
* @param request Channel change request / Kanal değişiklik talebi
|
|
45
|
+
* @returns Operation result / İşlem sonucu
|
|
46
|
+
*/
|
|
47
|
+
changeCaseChannel(request: ChangeCaseChannelRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
48
|
+
/**
|
|
49
|
+
* Updates the status of a case to reflect its current progress in the resolution workflow.
|
|
50
|
+
*
|
|
51
|
+
* Çözüm iş akışındaki mevcut ilerlemesini yansıtmak için talebin durumunu günceller.
|
|
52
|
+
*
|
|
53
|
+
* @param request Status change request / Durum değişiklik talebi
|
|
54
|
+
* @returns Operation result / İşlem sonucu
|
|
55
|
+
*/
|
|
56
|
+
changeCaseState(request: ChangeCaseStateRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
57
|
+
/**
|
|
58
|
+
* Creates a policy cancellation case when a customer requests to terminate their insurance coverage.
|
|
59
|
+
*
|
|
60
|
+
* Müşteri sigorta teminatını sonlandırma talebinde bulunduğunda poliçe iptal talebi oluşturur.
|
|
61
|
+
*
|
|
62
|
+
* @param request Cancellation case creation request / İptal talebi oluşturma talebi
|
|
63
|
+
* @returns Created case identifier / Oluşturulan talep tanımlayıcısı
|
|
64
|
+
*/
|
|
65
|
+
createCancelCase(request: CreateCancelCaseRequest, options?: RequestOptions): Promise<InsurUpResult<string>>;
|
|
66
|
+
/**
|
|
67
|
+
* Creates a complaint case to handle customer dissatisfaction or service issues requiring resolution.
|
|
68
|
+
*
|
|
69
|
+
* Müşteri memnuniyetsizliği veya çözüm gerektiren hizmet sorunlarını ele almak için şikayet talebi oluşturur.
|
|
70
|
+
*
|
|
71
|
+
* @param request Complaint case creation request / Şikayet talebi oluşturma talebi
|
|
72
|
+
* @returns Created case identifier / Oluşturulan talep tanımlayıcısı
|
|
73
|
+
*/
|
|
74
|
+
createComplaintCase(request: CreateComplaintCaseRequest, options?: RequestOptions): Promise<InsurUpResult<string>>;
|
|
75
|
+
/**
|
|
76
|
+
* Creates a cross-sale opportunity case to track potential additional insurance products for existing customers.
|
|
77
|
+
*
|
|
78
|
+
* Mevcut müşteriler için potansiyel ek sigorta ürünlerini takip etmek üzere çapraz satış fırsatı talebi oluşturur.
|
|
79
|
+
*
|
|
80
|
+
* @param request Cross-sale opportunity creation request / Çapraz satış fırsatı oluşturma talebi
|
|
81
|
+
* @returns Created case identifier / Oluşturulan talep tanımlayıcısı
|
|
82
|
+
*/
|
|
83
|
+
createCrossSaleOpportunityCase(request: CreateCrossSaleOpportunityCaseRequest, options?: RequestOptions): Promise<InsurUpResult<string>>;
|
|
84
|
+
/**
|
|
85
|
+
* Creates an endorsement case for policy modifications or updates requested by the customer.
|
|
86
|
+
*
|
|
87
|
+
* Müşteri tarafından talep edilen poliçe değişiklikleri veya güncellemeler için zeyilname talebi oluşturur.
|
|
88
|
+
*
|
|
89
|
+
* @param request Endorsement case creation request / Zeyilname talebi oluşturma talebi
|
|
90
|
+
* @returns Created case identifier / Oluşturulan talep tanımlayıcısı
|
|
91
|
+
*/
|
|
92
|
+
createEndorsementCase(request: CreateEndorsementCaseRequest, options?: RequestOptions): Promise<InsurUpResult<string>>;
|
|
93
|
+
/**
|
|
94
|
+
* Creates a new sale opportunity case to track potential insurance sales to prospective customers.
|
|
95
|
+
*
|
|
96
|
+
* Potansiyel müşterilere olası sigorta satışlarını takip etmek için yeni satış fırsatı talebi oluşturur.
|
|
97
|
+
*
|
|
98
|
+
* @param request New sale opportunity creation request / Yeni satış fırsatı oluşturma talebi
|
|
99
|
+
* @returns Created case identifier / Oluşturulan talep tanımlayıcısı
|
|
100
|
+
*/
|
|
101
|
+
createNewSaleOpportunityCase(request: CreateNewSaleOpportunityCaseRequest, options?: RequestOptions): Promise<InsurUpResult<string>>;
|
|
102
|
+
/**
|
|
103
|
+
* Retrieves all policies associated with a specific case for comprehensive case context and decision making.
|
|
104
|
+
*
|
|
105
|
+
* Kapsamlı talep bağlamı ve karar verme için belirli bir talep ile ilişkili tüm poliçeleri getirir.
|
|
106
|
+
*
|
|
107
|
+
* @param ref Case reference identifier / Talep referans tanımlayıcısı
|
|
108
|
+
* @returns Associated policies / İlişkili poliçeler
|
|
109
|
+
*/
|
|
110
|
+
getCasePolicies(ref: string, options?: RequestOptions): Promise<InsurUpResult<CasePolicyResult[]>>;
|
|
111
|
+
/**
|
|
112
|
+
* Retrieves the complete activity history for a case showing all actions, updates, and communications.
|
|
113
|
+
*
|
|
114
|
+
* Tüm eylemleri, güncellemeleri ve iletişimleri gösteren talep için tam aktivite geçmişini getirir.
|
|
115
|
+
*
|
|
116
|
+
* @param ref Case reference identifier / Talep referans tanımlayıcısı
|
|
117
|
+
* @returns Case activity history / Talep aktivite geçmişi
|
|
118
|
+
*/
|
|
119
|
+
getCaseActivities(ref: string, options?: RequestOptions): Promise<InsurUpResult<CaseActivityResult[]>>;
|
|
120
|
+
/**
|
|
121
|
+
* Retrieves detailed information about a specific case including status, assigned representative, and progress.
|
|
122
|
+
*
|
|
123
|
+
* Belirli bir talep hakkında durum, atanan temsilci ve ilerleme dahil detaylı bilgileri getirir.
|
|
124
|
+
*
|
|
125
|
+
* @param ref Case reference identifier / Talep referans tanımlayıcısı
|
|
126
|
+
* @returns Detailed case information / Detaylı talep bilgileri
|
|
127
|
+
*/
|
|
128
|
+
getCaseByRef(ref: string, options?: RequestOptions): Promise<InsurUpResult<GetCaseByRefResult>>;
|
|
129
|
+
/**
|
|
130
|
+
* Retrieves all proposals associated with a specific case to understand related insurance quotations.
|
|
131
|
+
*
|
|
132
|
+
* İlgili sigorta tekliflerini anlamak için belirli bir talep ile ilişkili tüm teklifleri getirir.
|
|
133
|
+
*
|
|
134
|
+
* @param ref Case reference identifier / Talep referans tanımlayıcısı
|
|
135
|
+
* @returns Associated proposals / İlişkili teklifler
|
|
136
|
+
*/
|
|
137
|
+
getCaseProposals(ref: string, options?: RequestOptions): Promise<InsurUpResult<CaseProposalResult[]>>;
|
|
138
|
+
/**
|
|
139
|
+
* Adds a note or comment to a case for documentation, communication, or progress tracking purposes.
|
|
140
|
+
*
|
|
141
|
+
* Dokümantasyon, iletişim veya ilerleme takibi amaçları için talepe not veya yorum ekler.
|
|
142
|
+
*
|
|
143
|
+
* @param request Note addition request / Not ekleme talebi
|
|
144
|
+
* @returns Operation result / İşlem sonucu
|
|
145
|
+
*/
|
|
146
|
+
addNoteToCase(request: AddNoteToCaseRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
147
|
+
/**
|
|
148
|
+
* Sets or updates the asset associated with a case for proper tracking and management.
|
|
149
|
+
*
|
|
150
|
+
* Uygun takip ve yönetim için taleple ilişkili varlığı ayarlar veya günceller.
|
|
151
|
+
*
|
|
152
|
+
* @param request Asset assignment request / Varlık atama talebi
|
|
153
|
+
* @returns Operation result / İşlem sonucu
|
|
154
|
+
*/
|
|
155
|
+
setCaseAsset(request: SetCaseAssetRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
156
|
+
/**
|
|
157
|
+
* Assigns or changes the branch for a case to organize case segmentation and reporting.
|
|
158
|
+
*
|
|
159
|
+
* Talep segmentasyonu ve raporlama için talebin şubesini atar veya değiştirir.
|
|
160
|
+
*
|
|
161
|
+
* @param request Branch assignment request / Şube atama talebi
|
|
162
|
+
* @returns Operation result / İşlem sonucu
|
|
163
|
+
*/
|
|
164
|
+
setCaseBranch(request: SetCaseBranchRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
165
|
+
/**
|
|
166
|
+
* Retrieves analytics for the New Sales Opportunity Lifecycle Funnel dashboard widget.
|
|
167
|
+
*
|
|
168
|
+
* Yeni Satış Fırsatı Yaşam Döngüsü Hunisi gösterge paneli bileşeni için analitik verileri getirir.
|
|
169
|
+
*
|
|
170
|
+
* @param request Analytics request with filtering options / Filtreleme seçenekleri içeren analitik isteği
|
|
171
|
+
* @returns Funnel analytics response / Huni analitiği yanıtı
|
|
172
|
+
*/
|
|
173
|
+
getSalesOpportunityFunnelAnalytics(request: GetSalesOpportunityFunnelAnalyticsRequest, options?: RequestOptions): Promise<InsurUpResult<GetSalesOpportunityFunnelAnalyticsResult>>;
|
|
174
|
+
/**
|
|
175
|
+
* Retrieves backlog analytics that pivot open cases by type and subtype for dashboard reporting.
|
|
176
|
+
*
|
|
177
|
+
* Gösterge paneli raporlaması için açık talepleri tür ve alt tür bazında pivotlayan backlog analitiğini getirir.
|
|
178
|
+
*
|
|
179
|
+
* @param request Backlog pivot analytics request / Backlog pivot analitiği isteği
|
|
180
|
+
* @returns Backlog pivot analytics response / Backlog pivot analitiği yanıtı
|
|
181
|
+
*/
|
|
182
|
+
getOpenCaseBacklogPivotAnalytics(request: GetOpenCaseBacklogPivotAnalyticsRequest, options?: RequestOptions): Promise<InsurUpResult<GetOpenCaseBacklogPivotAnalyticsResult>>;
|
|
183
|
+
/**
|
|
184
|
+
* Retrieves failed cases reason distribution analytics for conversion improvement analysis.
|
|
185
|
+
*
|
|
186
|
+
* Dönüşüm iyileştirme analizi için başarısız taleplerin neden dağılımı analitiğini getirir.
|
|
187
|
+
*
|
|
188
|
+
* @param request Failed cases reason distribution analytics request / Başarısız talep neden dağılımı analitiği isteği
|
|
189
|
+
* @returns Failed cases reason distribution analytics response / Başarısız talep neden dağılımı analitiği yanıtı
|
|
190
|
+
*/
|
|
191
|
+
getFailedCasesReasonDistribution(request: GetFailedCasesReasonDistributionRequest, options?: RequestOptions): Promise<InsurUpResult<GetFailedCasesReasonDistributionResult>>;
|
|
192
|
+
/**
|
|
193
|
+
* Retrieves all available case communication automation configurations with their argument definitions.
|
|
194
|
+
*
|
|
195
|
+
* Argüman tanımları ile birlikte mevcut tüm talep iletişim otomasyonu yapılandırmalarını getirir.
|
|
196
|
+
*
|
|
197
|
+
* @returns Available communication automations / Mevcut iletişim otomasyonları
|
|
198
|
+
*/
|
|
199
|
+
getAllCaseCommunicationAutomations(options?: RequestOptions): Promise<InsurUpResult<CaseCommunicationAutomationResult[]>>;
|
|
200
|
+
/**
|
|
201
|
+
* Retrieves all available case priority templates for agent configuration.
|
|
202
|
+
*
|
|
203
|
+
* Acente yapılandırması için mevcut tüm talep öncelik şablonlarını getirir.
|
|
204
|
+
*
|
|
205
|
+
* @returns Available case priority templates / Mevcut talep öncelik şablonları
|
|
206
|
+
*/
|
|
207
|
+
getCasePriorityTemplates(options?: RequestOptions): Promise<InsurUpResult<GetCasePriorityTemplatesResult>>;
|
|
208
|
+
/**
|
|
209
|
+
* Queries cases 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 talepleri 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.cases.getCases({ first: 10 });
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* // Type-safe field selection
|
|
221
|
+
* const result = await client.cases.getCases({
|
|
222
|
+
* select: ['id', 'ref', 'type', 'status', 'mainState'] as const,
|
|
223
|
+
* first: 10,
|
|
224
|
+
* filter: { type: { eq: CaseType.NewSaleOpportunity } }
|
|
225
|
+
* });
|
|
226
|
+
*
|
|
227
|
+
* @param requestOptions Query options including pagination, filters, search, and field selection
|
|
228
|
+
* @returns Paginated connection of cases with type-narrowed fields
|
|
229
|
+
*/
|
|
230
|
+
getCases<const TFields extends CaseFieldKey[]>(requestOptions?: GetCasesOptions<TFields>, options?: RequestOptions): Promise<InsurUpGraphQLResult<CasesConnection<TFields>>>;
|
|
231
|
+
}
|
|
232
|
+
//# sourceMappingURL=case.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case.d.ts","sourceRoot":"","sources":["../../src/clients/case.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,eAAe,EACrB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EAEV,+BAA+B,EAC/B,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC1B,qCAAqC,EACrC,4BAA4B,EAC5B,mCAAmC,EACnC,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,yCAAyC,EACzC,uCAAuC,EACvC,uCAAuC,EAEvC,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,wCAAwC,EACxC,sCAAsC,EACtC,sCAAsC,EACtC,iCAA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AAa,CAAC,sCAAsC,CAAC,CAAC;IAQjE;;;;;;;OAOG;IACG,gCAAgC,CACpC,OAAO,EAAE,uCAAuC,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,sCAAsC,CAAC,CAAC;IAQjE;;;;;;OAMG;IACG,kCAAkC,CACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,iCAAiC,EAAE,CAAC,CAAC;IAO9D;;;;;;OAMG;IACG,wBAAwB,CAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,8BAA8B,CAAC,CAAC;IAQzD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,QAAQ,CAAC,KAAK,CAAC,OAAO,SAAS,YAAY,EAAE,EACjD,cAAc,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,oBAAoB,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;CAgF3D"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Coverage Management Client - Client for managing insurance coverage configurations
|
|
3
|
+
* @description Provides coverage management operations for configuring insurance product coverages, managing coverage groups, and retrieving available coverage options
|
|
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 { CreateCoverageGroupRequest, UpdateCoverageGroupRequest, DeleteCoverageGroupRequest, GetCoverageGroupByIdResult, GetCoverageGroupsResultItem, KaskoCoverageChoices, KonutCoverageChoices, TssCoverageChoices, ImmCoverageChoices, CompanyCoverageChoices } from '@insurup/contracts';
|
|
9
|
+
import type { VehicleUtilizationStyle } from '@insurup/contracts';
|
|
10
|
+
/**
|
|
11
|
+
* Provides coverage management operations for configuring insurance product coverages, managing coverage groups,
|
|
12
|
+
* and retrieving available coverage options for different insurance branches within the InsurUp platform.
|
|
13
|
+
*
|
|
14
|
+
* InsurUp platformu içinde sigorta ürün teminatlarını yapılandırma, teminat gruplarını yönetme ve farklı
|
|
15
|
+
* sigorta dalları için mevcut teminat seçeneklerini alma konularında teminat yönetimi işlemlerini sağlar.
|
|
16
|
+
*/
|
|
17
|
+
export declare class InsurUpCoverageClient {
|
|
18
|
+
private readonly http;
|
|
19
|
+
constructor(http: HttpTransport);
|
|
20
|
+
/**
|
|
21
|
+
* Creates a new coverage group to organize and standardize coverage offerings across multiple insurance products.
|
|
22
|
+
*
|
|
23
|
+
* Birden fazla sigorta ürününde teminat tekliflerini organize etmek ve standartlaştırmak için yeni teminat grubu oluşturur.
|
|
24
|
+
*
|
|
25
|
+
* @param request Coverage group creation request / Teminat grubu oluşturma talebi
|
|
26
|
+
* @returns Operation result / İşlem sonucu
|
|
27
|
+
*/
|
|
28
|
+
createCoverageGroup(request: CreateCoverageGroupRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
29
|
+
/**
|
|
30
|
+
* Updates an existing coverage group's configuration, coverage options, or applicable insurance products.
|
|
31
|
+
*
|
|
32
|
+
* Mevcut bir teminat grubunun yapılandırmasını, teminat seçeneklerini veya uygulanabilir sigorta ürünlerini günceller.
|
|
33
|
+
*
|
|
34
|
+
* @param request Coverage group update request / Teminat grubu güncelleme talebi
|
|
35
|
+
* @returns Operation result / İşlem sonucu
|
|
36
|
+
*/
|
|
37
|
+
updateCoverageGroup(request: UpdateCoverageGroupRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
38
|
+
/**
|
|
39
|
+
* Removes a coverage group from the system, ensuring proper cleanup of associated coverage configurations.
|
|
40
|
+
*
|
|
41
|
+
* Sistemden bir teminat grubunu kaldırır ve ilişkili teminat yapılandırmalarının düzgün temizlenmesini sağlar.
|
|
42
|
+
*
|
|
43
|
+
* @param request Coverage group deletion request / Teminat grubu silme talebi
|
|
44
|
+
* @returns Operation result / İşlem sonucu
|
|
45
|
+
*/
|
|
46
|
+
deleteCoverageGroup(request: DeleteCoverageGroupRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves detailed information about a specific coverage group including its coverage options and configurations.
|
|
49
|
+
*
|
|
50
|
+
* Belirli bir teminat grubu hakkında teminat seçenekleri ve yapılandırmaları dahil detaylı bilgileri getirir.
|
|
51
|
+
*
|
|
52
|
+
* @param coverageGroupId Unique identifier of the coverage group / Teminat grubunun benzersiz tanımlayıcısı
|
|
53
|
+
* @returns Coverage group details / Teminat grubu detayları
|
|
54
|
+
*/
|
|
55
|
+
getCoverageGroupById(coverageGroupId: string, options?: RequestOptions): Promise<InsurUpResult<GetCoverageGroupByIdResult>>;
|
|
56
|
+
/**
|
|
57
|
+
* Retrieves all available coverage groups within the agency for comprehensive coverage management overview.
|
|
58
|
+
*
|
|
59
|
+
* Kapsamlı teminat yönetimi genel bakışı için acente içindeki tüm mevcut teminat gruplarını getirir.
|
|
60
|
+
*
|
|
61
|
+
* @returns List of all coverage groups / Tüm teminat grupları listesi
|
|
62
|
+
*/
|
|
63
|
+
getAllCoverageGroups(options?: RequestOptions): Promise<InsurUpResult<GetCoverageGroupsResultItem[]>>;
|
|
64
|
+
/**
|
|
65
|
+
* Retrieves available Kasko (comprehensive vehicle insurance) coverage options and configurations for proposal generation.
|
|
66
|
+
*
|
|
67
|
+
* Teklif oluşturma için mevcut Kasko (kasko araç sigortası) teminat seçenekleri ve yapılandırmalarını getirir.
|
|
68
|
+
*
|
|
69
|
+
* @param vehicleUtilizationStyle Optional vehicle utilization style filter / İsteğe bağlı araç kullanım stili filtresi
|
|
70
|
+
* @returns Kasko coverage choices grouped by insurance company / Sigorta şirketine göre gruplanmış Kasko teminat seçenekleri
|
|
71
|
+
*/
|
|
72
|
+
getKaskoCoverageChoices(vehicleUtilizationStyle?: VehicleUtilizationStyle, options?: RequestOptions): Promise<InsurUpResult<CompanyCoverageChoices<KaskoCoverageChoices>[]>>;
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves available Konut (home/property insurance) coverage options including DASK earthquake insurance configurations.
|
|
75
|
+
*
|
|
76
|
+
* DASK deprem sigortası yapılandırmaları dahil mevcut Konut (ev/mülk sigortası) teminat seçeneklerini getirir.
|
|
77
|
+
*
|
|
78
|
+
* @returns Konut coverage choices grouped by insurance company / Sigorta şirketine göre gruplanmış Konut teminat seçenekleri
|
|
79
|
+
*/
|
|
80
|
+
getKonutCoverageChoices(options?: RequestOptions): Promise<InsurUpResult<CompanyCoverageChoices<KonutCoverageChoices>[]>>;
|
|
81
|
+
/**
|
|
82
|
+
* Retrieves available TSS (Traffic Insurance) coverage options for mandatory and voluntary vehicle liability insurance.
|
|
83
|
+
*
|
|
84
|
+
* Zorunlu ve ihtiyari araç sorumluluk sigortası için mevcut TSS (Trafik Sigortası) teminat seçeneklerini getirir.
|
|
85
|
+
*
|
|
86
|
+
* @returns TSS coverage choices grouped by insurance company / Sigorta şirketine göre gruplanmış TSS teminat seçenekleri
|
|
87
|
+
*/
|
|
88
|
+
getTssCoverageChoices(options?: RequestOptions): Promise<InsurUpResult<CompanyCoverageChoices<TssCoverageChoices>[]>>;
|
|
89
|
+
/**
|
|
90
|
+
* Retrieves available IMM (Voluntary Financial Liability) coverage options for extended liability protection beyond mandatory insurance.
|
|
91
|
+
*
|
|
92
|
+
* Zorunlu sigortanın ötesinde genişletilmiş sorumluluk koruması için mevcut İMM (İhtiyari Mali Mesuliyet) teminat seçeneklerini getirir.
|
|
93
|
+
*
|
|
94
|
+
* @returns IMM coverage choices grouped by insurance company / Sigorta şirketine göre gruplanmış İMM teminat seçenekleri
|
|
95
|
+
*/
|
|
96
|
+
getImmCoverageChoices(options?: RequestOptions): Promise<InsurUpResult<CompanyCoverageChoices<ImmCoverageChoices>[]>>;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=coverage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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;;;OAOG;IACG,uBAAuB,CAC3B,uBAAuB,CAAC,EAAE,uBAAuB,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,sBAAsB,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;IAKzE;;;;;;OAMG;IACG,uBAAuB,CAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,sBAAsB,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;IAOzE;;;;;;OAMG;IACG,qBAAqB,CACzB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;IAOvE;;;;;;OAMG;IACG,qBAAqB,CACzB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;CAMxE"}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Customer management client for the InsurUp TypeScript SDK.
|
|
3
|
+
*/
|
|
4
|
+
import type { HttpTransport } from '../client/http.js';
|
|
5
|
+
import type { GraphQLTransport } from '../client/graphql.js';
|
|
6
|
+
import type { InsurUpResult, InsurUpGraphQLResult } from '../core/result.js';
|
|
7
|
+
import type { RequestOptions } from '../core/options.js';
|
|
8
|
+
import type { CreateCustomerRequest, CreateCustomerResult, GetCustomerResult, UpdateCustomerRequest, AddCustomerEmailRequest, RemoveCustomerEmailRequest, ChangePrimaryCustomerEmailRequest, GetCustomerEmailsResultItem, AddCustomerPhoneNumberRequest, RemoveCustomerPhoneNumberRequest, ChangePrimaryCustomerPhoneNumberRequest, GetCustomerPhoneNumbersResultItem, GetPrimaryCustomerEmailResult, SetPrimaryCustomerEmailRequest, GetPrimaryCustomerPhoneNumberResult, SetPrimaryCustomerPhoneNumberRequest, GetCustomerAssetsResultItem, SetCustomerRepresentativeRequest, GetCustomerHealthInfoResult, UpdateCustomerHealthInfoRequest, CreateContactFlowRequest, CreateCustomerContactRequest, EndContactFlowRequest, GetCustomerContactFlowsResultItem, GetCustomerContactsResultItem, ExternalLookupCustomerRequest, ExternalLookupCustomerResult, SetCustomerBranchRequest, CreateCustomerAddressRequest, CreateCustomerAddressResult, UpdateCustomerAddressRequest, GetCustomerAddressResult, GiveCustomerConsentRequest, RevokeCustomerConsentRequest, GetCustomerConsentsResult } from '@insurup/contracts';
|
|
9
|
+
import { type CustomerFieldKey, type GetCustomersOptions, type CustomersConnection } from '@insurup/contracts';
|
|
10
|
+
/**
|
|
11
|
+
* Customer management client providing comprehensive customer lifecycle management.
|
|
12
|
+
*/
|
|
13
|
+
export declare class InsurUpCustomerClient {
|
|
14
|
+
private readonly http;
|
|
15
|
+
private readonly graphql?;
|
|
16
|
+
constructor(http: HttpTransport, graphql?: GraphQLTransport | undefined);
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new customer profile with essential personal and contact information.
|
|
19
|
+
*/
|
|
20
|
+
createCustomer(request: CreateCustomerRequest, options?: RequestOptions): Promise<InsurUpResult<CreateCustomerResult>>;
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves detailed information about a specific customer.
|
|
23
|
+
*/
|
|
24
|
+
getCustomer(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerResult>>;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves the profile information of the currently authenticated customer.
|
|
27
|
+
*/
|
|
28
|
+
getCurrentCustomer(options?: RequestOptions): Promise<InsurUpResult<GetCustomerResult>>;
|
|
29
|
+
/**
|
|
30
|
+
* Updates existing customer profile information.
|
|
31
|
+
*/
|
|
32
|
+
updateCustomer(request: UpdateCustomerRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
33
|
+
/**
|
|
34
|
+
* Permanently removes a customer profile and all associated data.
|
|
35
|
+
*/
|
|
36
|
+
deleteCustomer(customerId: string, options?: RequestOptions): Promise<InsurUpResult>;
|
|
37
|
+
/**
|
|
38
|
+
* Retrieves all email addresses associated with a customer.
|
|
39
|
+
*/
|
|
40
|
+
getCustomerEmails(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerEmailsResultItem[]>>;
|
|
41
|
+
/**
|
|
42
|
+
* Adds a new email address to a customer's contact information.
|
|
43
|
+
*/
|
|
44
|
+
addCustomerEmail(request: AddCustomerEmailRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
45
|
+
/**
|
|
46
|
+
* Removes an email address from a customer's contact information.
|
|
47
|
+
*/
|
|
48
|
+
removeCustomerEmail(request: RemoveCustomerEmailRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
49
|
+
/**
|
|
50
|
+
* Changes the primary email address for a customer.
|
|
51
|
+
*/
|
|
52
|
+
changePrimaryCustomerEmail(request: ChangePrimaryCustomerEmailRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves the primary email address for a customer.
|
|
55
|
+
*
|
|
56
|
+
* Müşterinin birincil e-posta adresini getirir.
|
|
57
|
+
*/
|
|
58
|
+
getPrimaryCustomerEmail(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetPrimaryCustomerEmailResult>>;
|
|
59
|
+
/**
|
|
60
|
+
* Sets the primary email address for a customer (upsert — adds to the customer's email
|
|
61
|
+
* collection if missing, then marks it as primary).
|
|
62
|
+
*
|
|
63
|
+
* Müşterinin birincil e-posta adresini ayarlar (mevcut değilse koleksiyona ekler ve birincil
|
|
64
|
+
* olarak işaretler).
|
|
65
|
+
*/
|
|
66
|
+
setPrimaryCustomerEmail(request: SetPrimaryCustomerEmailRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
67
|
+
/**
|
|
68
|
+
* Retrieves all phone numbers associated with a customer.
|
|
69
|
+
*/
|
|
70
|
+
getCustomerPhoneNumbers(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerPhoneNumbersResultItem[]>>;
|
|
71
|
+
/**
|
|
72
|
+
* Adds a new phone number to a customer's contact information.
|
|
73
|
+
*/
|
|
74
|
+
addCustomerPhoneNumber(request: AddCustomerPhoneNumberRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
75
|
+
/**
|
|
76
|
+
* Removes a phone number from a customer's contact information.
|
|
77
|
+
*/
|
|
78
|
+
removeCustomerPhoneNumber(request: RemoveCustomerPhoneNumberRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
79
|
+
/**
|
|
80
|
+
* Changes the primary phone number for a customer.
|
|
81
|
+
*/
|
|
82
|
+
changePrimaryCustomerPhoneNumber(request: ChangePrimaryCustomerPhoneNumberRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
83
|
+
/**
|
|
84
|
+
* Retrieves the primary phone number for a customer.
|
|
85
|
+
*
|
|
86
|
+
* Müşterinin birincil telefon numarasını getirir.
|
|
87
|
+
*/
|
|
88
|
+
getPrimaryCustomerPhoneNumber(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetPrimaryCustomerPhoneNumberResult>>;
|
|
89
|
+
/**
|
|
90
|
+
* Sets the primary phone number for a customer (upsert — adds to the customer's phone
|
|
91
|
+
* number collection if missing, then marks it as primary).
|
|
92
|
+
*
|
|
93
|
+
* Müşterinin birincil telefon numarasını ayarlar (mevcut değilse koleksiyona ekler ve
|
|
94
|
+
* birincil olarak işaretler).
|
|
95
|
+
*/
|
|
96
|
+
setPrimaryCustomerPhoneNumber(request: SetPrimaryCustomerPhoneNumberRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
97
|
+
/**
|
|
98
|
+
* Retrieves all of a customer's insurable assets (vehicles and properties) in a single
|
|
99
|
+
* polymorphic list discriminated by the `$type` field.
|
|
100
|
+
*
|
|
101
|
+
* Müşterinin tüm sigortalanabilir varlıklarını (araçlar ve mülkler) `$type` alanı ile
|
|
102
|
+
* ayırt edilen tek bir polimorfik listede getirir.
|
|
103
|
+
*/
|
|
104
|
+
getCustomerAssets(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerAssetsResultItem[]>>;
|
|
105
|
+
/**
|
|
106
|
+
* Assigns a specific agent representative to manage a customer's account.
|
|
107
|
+
*/
|
|
108
|
+
setCustomerRepresentative(request: SetCustomerRepresentativeRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
109
|
+
/**
|
|
110
|
+
* Assigns or changes the branch for a customer to organize customer segmentation and reporting.
|
|
111
|
+
*
|
|
112
|
+
* Müşteri segmentasyonu ve raporlama için müşterinin şubesini atar veya değiştirir.
|
|
113
|
+
*
|
|
114
|
+
* @param request Branch assignment request / Şube atama talebi
|
|
115
|
+
* @returns Operation result / İşlem sonucu
|
|
116
|
+
*/
|
|
117
|
+
setCustomerBranch(request: SetCustomerBranchRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
118
|
+
/**
|
|
119
|
+
* Creates a new customer address record using property number as the single source of truth.
|
|
120
|
+
*
|
|
121
|
+
* Tek doğruluk kaynağı olarak konut numarasını kullanarak yeni müşteri adres kaydı oluşturur.
|
|
122
|
+
*
|
|
123
|
+
* @param request Address creation request / Adres oluşturma talebi
|
|
124
|
+
* @returns Created address information / Oluşturulan adres bilgileri
|
|
125
|
+
*/
|
|
126
|
+
createCustomerAddress(request: CreateCustomerAddressRequest, options?: RequestOptions): Promise<InsurUpResult<CreateCustomerAddressResult>>;
|
|
127
|
+
/**
|
|
128
|
+
* Updates the type classification of an existing customer address.
|
|
129
|
+
*
|
|
130
|
+
* Mevcut bir müşteri adresinin tür sınıflandırmasını günceller.
|
|
131
|
+
*
|
|
132
|
+
* @param request Address update request / Adres güncelleme talebi
|
|
133
|
+
* @returns Operation result / İşlem sonucu
|
|
134
|
+
*/
|
|
135
|
+
updateCustomerAddress(request: UpdateCustomerAddressRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
136
|
+
/**
|
|
137
|
+
* Retrieves detailed information about a specific customer address.
|
|
138
|
+
*
|
|
139
|
+
* Belirli bir müşteri adresi hakkında detaylı bilgileri getirir.
|
|
140
|
+
*
|
|
141
|
+
* @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
|
|
142
|
+
* @param addressId Unique identifier of the address / Adresin benzersiz tanımlayıcısı
|
|
143
|
+
* @returns Address details / Adres detayları
|
|
144
|
+
*/
|
|
145
|
+
getCustomerAddressById(customerId: string, addressId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerAddressResult>>;
|
|
146
|
+
/**
|
|
147
|
+
* Retrieves all addresses owned by a specific customer for comprehensive address management.
|
|
148
|
+
*
|
|
149
|
+
* Kapsamlı adres yönetimi için belirli bir müşteriye ait tüm adresleri getirir.
|
|
150
|
+
*
|
|
151
|
+
* @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
|
|
152
|
+
* @returns Customer addresses / Müşteri adresleri
|
|
153
|
+
*/
|
|
154
|
+
getCustomerAddresses(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerAddressResult[]>>;
|
|
155
|
+
/**
|
|
156
|
+
* Deletes a customer address from their address collection.
|
|
157
|
+
*
|
|
158
|
+
* Müşterinin adres koleksiyonundan bir adresi siler.
|
|
159
|
+
*
|
|
160
|
+
* @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
|
|
161
|
+
* @param addressId Unique identifier of the address to delete / Silinecek adresin benzersiz tanımlayıcısı
|
|
162
|
+
* @returns Operation result / İşlem sonucu
|
|
163
|
+
*/
|
|
164
|
+
deleteCustomerAddress(customerId: string, addressId: string, options?: RequestOptions): Promise<InsurUpResult>;
|
|
165
|
+
/**
|
|
166
|
+
* Records customer consent for data processing or marketing communications in compliance with KVKK/ETK regulations.
|
|
167
|
+
*
|
|
168
|
+
* KVKK/ETK düzenlemelerine uygun olarak veri işleme veya pazarlama iletişimleri için müşteri iznini kaydeder.
|
|
169
|
+
*
|
|
170
|
+
* @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
|
|
171
|
+
* @param request Consent recording request / İzin kayıt talebi
|
|
172
|
+
* @returns Operation result / İşlem sonucu
|
|
173
|
+
*/
|
|
174
|
+
giveCustomerConsent(customerId: string, request: GiveCustomerConsentRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
175
|
+
/**
|
|
176
|
+
* Revokes a previously granted customer consent in accordance with customer data rights.
|
|
177
|
+
*
|
|
178
|
+
* Müşteri veri hakları uyarınca önceden verilmiş bir müşteri iznini geri çeker.
|
|
179
|
+
*
|
|
180
|
+
* @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
|
|
181
|
+
* @param request Consent revocation request / İzin geri çekme talebi
|
|
182
|
+
* @returns Operation result / İşlem sonucu
|
|
183
|
+
*/
|
|
184
|
+
revokeCustomerConsent(customerId: string, request: RevokeCustomerConsentRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
185
|
+
/**
|
|
186
|
+
* Retrieves both active consent states and complete consent history for a customer in a single optimized API call.
|
|
187
|
+
*
|
|
188
|
+
* Müşterinin hem aktif izin durumlarını hem de tam izin geçmişini tek bir optimize edilmiş API çağrısında getirir.
|
|
189
|
+
*
|
|
190
|
+
* @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
|
|
191
|
+
* @returns Active consent states and complete history / Aktif izin durumları ve tam geçmiş
|
|
192
|
+
*/
|
|
193
|
+
getCustomerConsents(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerConsentsResult>>;
|
|
194
|
+
/**
|
|
195
|
+
* Retrieves comprehensive health information for a customer.
|
|
196
|
+
*/
|
|
197
|
+
getCustomerHealthInfo(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerHealthInfoResult>>;
|
|
198
|
+
/**
|
|
199
|
+
* Updates customer health information.
|
|
200
|
+
*/
|
|
201
|
+
updateCustomerHealthInfo(request: UpdateCustomerHealthInfoRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
202
|
+
/**
|
|
203
|
+
* Initiates a new customer contact flow.
|
|
204
|
+
*/
|
|
205
|
+
createCustomerContactFlow(request: CreateContactFlowRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
206
|
+
/**
|
|
207
|
+
* Records a customer contact interaction.
|
|
208
|
+
*/
|
|
209
|
+
createCustomerContact(request: CreateCustomerContactRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
210
|
+
/**
|
|
211
|
+
* Completes and closes a customer contact flow.
|
|
212
|
+
*/
|
|
213
|
+
endCustomerContactFlow(request: EndContactFlowRequest, options?: RequestOptions): Promise<InsurUpResult>;
|
|
214
|
+
/**
|
|
215
|
+
* Retrieves all contact flows for a customer.
|
|
216
|
+
*/
|
|
217
|
+
getCustomerContactFlows(customerId: string, caseRef?: string | null, options?: RequestOptions): Promise<InsurUpResult<GetCustomerContactFlowsResultItem[]>>;
|
|
218
|
+
/**
|
|
219
|
+
* Retrieves all individual contact interactions for a customer.
|
|
220
|
+
*/
|
|
221
|
+
getCustomerContacts(customerId: string, caseRef?: string | null, options?: RequestOptions): Promise<InsurUpResult<GetCustomerContactsResultItem[]>>;
|
|
222
|
+
/**
|
|
223
|
+
* Performs external customer data lookup.
|
|
224
|
+
*/
|
|
225
|
+
externalLookupCustomer(request: ExternalLookupCustomerRequest, options?: RequestOptions): Promise<InsurUpResult<ExternalLookupCustomerResult>>;
|
|
226
|
+
/**
|
|
227
|
+
* Retrieves a paginated list of customers using GraphQL with type-safe field selection.
|
|
228
|
+
*
|
|
229
|
+
* GraphQL kullanarak tip güvenli alan seçimi ile sayfalanmış müşteri listesi getirir.
|
|
230
|
+
*
|
|
231
|
+
* @example
|
|
232
|
+
* // Get all fields
|
|
233
|
+
* const result = await client.customers.getCustomers({ first: 10 });
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* // Type-safe field selection
|
|
237
|
+
* const result = await client.customers.getCustomers({
|
|
238
|
+
* select: ['id', 'name', 'type', 'primaryEmail'] as const,
|
|
239
|
+
* first: 10,
|
|
240
|
+
* filter: { type: { eq: CustomerType.INDIVIDUAL } }
|
|
241
|
+
* });
|
|
242
|
+
* // result.data.nodes[0].id - ✓ string
|
|
243
|
+
* // result.data.nodes[0].name - ✓ string | null
|
|
244
|
+
* // result.data.nodes[0].type - ✓ CustomerType
|
|
245
|
+
* // result.data.nodes[0].birthDate - ✗ TypeScript Error!
|
|
246
|
+
*
|
|
247
|
+
* @param requestOptions Query options including pagination, filters, search, and field selection
|
|
248
|
+
* @returns Paginated connection of customers with type-narrowed fields
|
|
249
|
+
*/
|
|
250
|
+
getCustomers<const TFields extends CustomerFieldKey[]>(requestOptions?: GetCustomersOptions<TFields>, options?: RequestOptions): Promise<InsurUpGraphQLResult<CustomersConnection<TFields>>>;
|
|
251
|
+
}
|
|
252
|
+
//# sourceMappingURL=customer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../src/clients/customer.ts"],"names":[],"mappings":"AAAA;;GAEG;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,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,iCAAiC,EACjC,2BAA2B,EAC3B,6BAA6B,EAC7B,gCAAgC,EAChC,uCAAuC,EACvC,iCAAiC,EACjC,6BAA6B,EAC7B,8BAA8B,EAC9B,mCAAmC,EACnC,oCAAoC,EACpC,2BAA2B,EAC3B,gCAAgC,EAChC,2BAA2B,EAC3B,+BAA+B,EAC/B,wBAAwB,EACxB,4BAA4B,EAC5B,qBAAqB,EACrB,iCAAiC,EACjC,6BAA6B,EAC7B,6BAA6B,EAC7B,4BAA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,GACvB,OAAO,CAAC,aAAa,CAAC,6BAA6B,EAAE,CAAC,CAAC;IAO1D;;OAEG;IACG,sBAAsB,CAC1B,OAAO,EAAE,6BAA6B,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,4BAA4B,CAAC,CAAC;IAYvD;;;;;;;;;;;;;;;;;;;;;;;OAuBG;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;CAuF/D"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview File Client - File upload operations
|
|
3
|
+
* @description Provides file 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 { UploadPublicFileRequest, UploadPublicFileResult } from '@insurup/contracts';
|
|
9
|
+
/**
|
|
10
|
+
* Provides file management operations for the InsurUp platform, enabling agents to upload and manage files
|
|
11
|
+
* within the insurance ecosystem.
|
|
12
|
+
*/
|
|
13
|
+
export declare class InsurUpFileClient {
|
|
14
|
+
private readonly http;
|
|
15
|
+
constructor(http: HttpTransport);
|
|
16
|
+
/**
|
|
17
|
+
* Uploads a file to public storage and returns the file URL for public access.
|
|
18
|
+
* Maximum file size is 1MB. Only available for agent users.
|
|
19
|
+
*
|
|
20
|
+
* Bir dosyayı genel depolamaya yükler ve genel erişim için dosya URL'sini döndürür.
|
|
21
|
+
* Maksimum dosya boyutu 1MB'dir. Sadece acente kullanıcıları için kullanılabilir.
|
|
22
|
+
*
|
|
23
|
+
* @param request Upload configuration including optional path
|
|
24
|
+
* @param file File content
|
|
25
|
+
* @param fileName Name of the file
|
|
26
|
+
* @returns File URL and path information
|
|
27
|
+
*/
|
|
28
|
+
uploadPublicFile(request: UploadPublicFileRequest, file: File, fileName: string, options?: RequestOptions): Promise<InsurUpResult<UploadPublicFileResult>>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/clients/file.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,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE1F;;;GAGG;AACH,qBAAa,iBAAiB;IAChB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,aAAa;IAEhD;;;;;;;;;;;OAWG;IACG,gBAAgB,CACpB,OAAO,EAAE,uBAAuB,EAChC,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;CAUlD"}
|