@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.
Files changed (75) hide show
  1. package/README.md +100 -71
  2. package/dist/client/client.d.ts +160 -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/client/signalr.d.ts +69 -0
  9. package/dist/client/signalr.d.ts.map +1 -0
  10. package/dist/clients/_internal/build-filter-search-variables.d.ts +12 -0
  11. package/dist/clients/_internal/build-filter-search-variables.d.ts.map +1 -0
  12. package/dist/clients/_internal/normalize-search.d.ts +21 -0
  13. package/dist/clients/_internal/normalize-search.d.ts.map +1 -0
  14. package/dist/clients/_internal/split-unified-filter.d.ts +16 -0
  15. package/dist/clients/_internal/split-unified-filter.d.ts.map +1 -0
  16. package/dist/clients/agent.d.ts +121 -0
  17. package/dist/clients/agent.d.ts.map +1 -0
  18. package/dist/clients/agentBranch.d.ts +61 -0
  19. package/dist/clients/agentBranch.d.ts.map +1 -0
  20. package/dist/clients/agentRole.d.ts +60 -0
  21. package/dist/clients/agentRole.d.ts.map +1 -0
  22. package/dist/clients/agentSetup.d.ts +34 -0
  23. package/dist/clients/agentSetup.d.ts.map +1 -0
  24. package/dist/clients/agentUser.d.ts +176 -0
  25. package/dist/clients/agentUser.d.ts.map +1 -0
  26. package/dist/clients/case.d.ts +232 -0
  27. package/dist/clients/case.d.ts.map +1 -0
  28. package/dist/clients/coverage.d.ts +98 -0
  29. package/dist/clients/coverage.d.ts.map +1 -0
  30. package/dist/clients/customer.d.ts +252 -0
  31. package/dist/clients/customer.d.ts.map +1 -0
  32. package/dist/clients/file.d.ts +30 -0
  33. package/dist/clients/file.d.ts.map +1 -0
  34. package/dist/clients/insurance.d.ts +105 -0
  35. package/dist/clients/insurance.d.ts.map +1 -0
  36. package/dist/clients/language.d.ts +27 -0
  37. package/dist/clients/language.d.ts.map +1 -0
  38. package/dist/clients/policy.d.ts +251 -0
  39. package/dist/clients/policy.d.ts.map +1 -0
  40. package/dist/clients/property.d.ts +163 -0
  41. package/dist/clients/property.d.ts.map +1 -0
  42. package/dist/clients/proposal.d.ts +259 -0
  43. package/dist/clients/proposal.d.ts.map +1 -0
  44. package/dist/clients/template.d.ts +73 -0
  45. package/dist/clients/template.d.ts.map +1 -0
  46. package/dist/clients/vehicle.d.ts +112 -0
  47. package/dist/clients/vehicle.d.ts.map +1 -0
  48. package/dist/clients/webhook.d.ts +106 -0
  49. package/dist/clients/webhook.d.ts.map +1 -0
  50. package/dist/core/config.d.ts +38 -0
  51. package/dist/core/config.d.ts.map +1 -0
  52. package/dist/core/endpoints.d.ts +1371 -0
  53. package/dist/core/endpoints.d.ts.map +1 -0
  54. package/dist/core/error-types.d.ts +66 -0
  55. package/dist/core/error-types.d.ts.map +1 -0
  56. package/dist/core/errors.d.ts +42 -0
  57. package/dist/core/errors.d.ts.map +1 -0
  58. package/dist/core/options.d.ts +234 -0
  59. package/dist/core/options.d.ts.map +1 -0
  60. package/dist/core/result.d.ts +183 -0
  61. package/dist/core/result.d.ts.map +1 -0
  62. package/dist/core/retry.d.ts +15 -0
  63. package/dist/core/retry.d.ts.map +1 -0
  64. package/dist/index.browser.js +24 -24
  65. package/dist/index.browser.js.map +1 -1
  66. package/dist/index.cjs +574 -525
  67. package/dist/index.cjs.map +1 -1
  68. package/dist/index.d.ts +34 -4225
  69. package/dist/index.d.ts.map +1 -0
  70. package/dist/index.js +577 -525
  71. package/dist/index.js.map +1 -1
  72. package/dist/version.d.ts +10 -0
  73. package/dist/version.d.ts.map +1 -0
  74. package/package.json +18 -14
  75. package/dist/index.d.cts +0 -4226
package/dist/index.d.cts DELETED
@@ -1,4226 +0,0 @@
1
- import { GetCurrentAgentResult, UpdateCurrentAgentRequest, GetMyAgentInsuranceCompaniesResult, GetAgentInsuranceCompanyBranchesResult, GetAgentInsuranceCompanyConnectionResult, AddInsuranceCompanyToAgentRequest, UpdateAgentInsuranceCompanyConnectionRequest, UpdateAgentInsuranceCompanyBranchesRequest, ReSyncAgentInsuranceCompanyWithInsuranceRequest, GetB2CConfigFieldsResult, UpdateB2CConfigFieldsRequest, CreateAgentBranchRequest, GetAgentBranchResult, GetAllAgentBranchesResult, UpdateAgentBranchRequest, DeleteAgentBranchRequest, CreateAgentRoleRequest, GetAgentRoleByIdResult, GetAllAgentRolesResult, UpdateAgentRoleRequest, DeleteAgentRoleRequest, EnterAgentSetupRequestRequest, EnterAgentSetupRequestResult, CompleteAgentSetupRequestRequest, GetAgentUserResult, UpdateMyAgentUserRequest, InviteAgentUserRequest, AcceptAgentUserInviteRequest, UpdateAgentUserRequest, UpdateAgentUserPasswordRequest, GetMyAgentUserRobotCodeResult, MigrateAllAgentUsersResult, AgentUserFieldKey, GetAgentUsersOptions, AgentUsersConnection, CreateCustomerRequest, CreateCustomerResult, GetCustomerResult, UpdateCustomerRequest, GetCustomerEmailsResultItem, AddCustomerEmailRequest, RemoveCustomerEmailRequest, ChangePrimaryCustomerEmailRequest, GetCustomerPhoneNumbersResultItem, AddCustomerPhoneNumberRequest, RemoveCustomerPhoneNumberRequest, ChangePrimaryCustomerPhoneNumberRequest, SetCustomerRepresentativeRequest, SetCustomerBranchRequest, CreateCustomerAddressRequest, CreateCustomerAddressResult, UpdateCustomerAddressRequest, GetCustomerAddressResult, GiveCustomerConsentRequest, RevokeCustomerConsentRequest, GetCustomerConsentsResult, GetCustomerHealthInfoResult, UpdateCustomerHealthInfoRequest, CreateContactFlowRequest, CreateCustomerContactRequest, EndContactFlowRequest, GetCustomerContactFlowsResultItem, GetCustomerContactsResultItem, ExternalLookupCustomerRequest, ExternalLookupCustomerResult, CustomerFieldKey, GetCustomersOptions, CustomersConnection, CreateCustomerVehicleRequest, CreateCustomerVehicleResult, UpdateCustomerVehicleRequest, GetCustomerVehicleResult, GetCustomerVehiclesRequest, GetCustomerVehiclesResult, ExternalLookupVehicleRequest, ExternalLookupVehicleResult, InsuranceParameter, QueryVehicleModelTypesRequest, QueryVehicleByBrandCodeResult, QueryDistrictsRequest, QueryTownsRequest, QueryNeighbourhoodsRequest, QueryStreetsRequest, QueryBuildingsRequest, QueryApartmentsRequest, CreateCustomerPropertyRequest, CreateCustomerPropertyResult, UpdateCustomerPropertyRequest, GetCustomerPropertyByIdResult, GetAllCustomerPropertiesResult, PropertyAddress, QueryPropertyByDaskOldPolicyResult, GetPolicyDetailRequest, GetPolicyDetailResult, FetchPolicyDocumentRequest, FetchPolicyDocumentResult, SendPolicyDocumentRequest, SetPolicyRepresentativeRequest, SetPolicyBranchRequest, CreateManualPolicyRequest, CreateManualPolicyResult, UpdateManualPolicyRequest, GetPolicyCountAndPremiumAnalyticsRequest, GetPolicyCountAndPremiumAnalyticsResult, GetPolicyRenewalAnalyticsRequest, GetPolicyRenewalAnalyticsResult, GetPolicyDistributionByBranchRequest, GetPolicyDistributionByBranchResult, GetRepresentativeEarningsAnalyticsRequest, GetRepresentativeEarningsAnalyticsResult, GetPolicyTransferDetailRequest, GetPolicyTransferDetailResult, GetPolicyTransferTriggerDetailRequest, GetPolicyTransferTriggerDetailResult, CreatePolicyTransferRequest, TriggerPolicyTransferRequest, CreateFilePolicyTransferRequest, GetFilePolicyTransferDetailRequest, GetFilePolicyTransferDetailResult, PolicyFieldKey, GetPoliciesOptions, PoliciesConnection, PolicyTransferFieldKey, GetPolicyTransfersOptions, PolicyTransfersConnection, FilePolicyTransferFieldKey, GetFilePolicyTransfersOptions, FilePolicyTransfersConnection, AssignCaseRepresentativeRequest, ChangeCaseChannelRequest, ChangeCaseStateRequest, CreateCancelCaseRequest, CreateComplaintCaseRequest, CreateCrossSaleOpportunityCaseRequest, CreateEndorsementCaseRequest, CreateNewSaleOpportunityCaseRequest, CasePolicyResult, CaseActivityResult, GetCaseByRefResult, CaseProposalResult, AddNoteToCaseRequest, SetCaseAssetRequest, SetCaseBranchRequest, GetSalesOpportunityFunnelAnalyticsRequest, GetSalesOpportunityFunnelAnalyticsResult, GetOpenCaseBacklogPivotAnalyticsRequest, GetOpenCaseBacklogPivotAnalyticsResult, GetFailedCasesReasonDistributionRequest, GetFailedCasesReasonDistributionResult, CaseCommunicationAutomationResult, GetCasePriorityTemplatesResult, CaseFieldKey, GetCasesOptions, CasesConnection, CreateWebhookRequest, CreateWebhookResult, GetWebhookByIdResult, GetWebhooksResult, UpdateWebhookRequest, GetWebhookDeliveryResult, WebhookDeliveryFieldKey, GetWebhookDeliveriesOptions, WebhookDeliveriesConnection, CreateCoverageGroupRequest, UpdateCoverageGroupRequest, DeleteCoverageGroupRequest, GetCoverageGroupByIdResult, GetCoverageGroupsResultItem, VehicleUtilizationStyle, CompanyCoverageChoices, KaskoCoverageChoices, KonutCoverageChoices, TssCoverageChoices, ImmCoverageChoices, ResourceKey, InsuranceCompany, InsuranceProduct, GetAgentBasedConnectionFieldsByCompanyIdResultItem, GetAllReleaseNotesResultItem, Bank, BankBranch, FinancialInstitution, CreateProposalRequest, CreateProposalResult, GetProposalByIdResult, GetProposalProductPremiumDetailResult, PurchaseProposalProductSyncRequest, PurchaseProposalProductSyncResult, PurchaseProposalProductAsyncRequest, PurchaseProposalProductAsyncResult, GetProposalProductCoverageResult, ReviseProposalRequest, ReviseProposalResult, ReviseProposalProductRequest, FetchProposalProductDocumentRequest, FetchProposalProductDocumentResult, FetchProposalInformationFormDocumentRequest, FetchProposalInformationFormDocumentResult, SendProposalProductDocumentRequest, SendProposalInformationFormDocumentRequest, GenerateCompareProposalProductsPdfRequest, GenerateCompareProposalProductsPdfResult, SendCompareProposalProductsPdfRequest, GenerateCustomerProposalDocumentPdfRequest, GenerateCustomerProposalDocumentPdfResult, SetProposalBranchRequest, GetProposalConversionTrendRequest, GetProposalConversionTrendResult, SetProposalRepresentativeRequest, ProposalFieldKey, GetProposalsOptions, ProposalsConnection, UploadPublicFileRequest, UploadPublicFileResult, LanguageResult, GetTemplateDefinitionsResult, QueryTemplatesResult, GetTemplateByKeyResult, UpdateTemplateRequest, DeleteTemplateRequest } from '@insurup/contracts';
2
- export * from '@insurup/contracts';
3
-
4
- /**
5
- * SDK version information.
6
- * @module version
7
- */
8
- /**
9
- * The current version of the InsurUp SDK.
10
- * This value is automatically derived from package.json.
11
- */
12
- declare const VERSION: string;
13
-
14
- /**
15
- * @fileoverview Error Type Enums - Foundational error types used across the SDK
16
- * @description Centralized error type definitions to avoid circular dependencies
17
- */
18
- /**
19
- * Client-side error types that can occur during API operations
20
- */
21
- declare enum InsurUpClientErrorType {
22
- Unknown = "Unknown",
23
- JsonSerialization = "JsonSerialization",
24
- JsonDeserialization = "JsonDeserialization",
25
- NullResponse = "NullResponse",
26
- Timeout = "Timeout",
27
- HttpRequestFailed = "HttpRequestFailed",
28
- UnexpectedNoContent = "UnexpectedNoContent",
29
- GraphQLError = "GraphQLError"
30
- }
31
- /**
32
- * Server-side error types from HTTP responses
33
- */
34
- declare enum InsurUpServerErrorType {
35
- Unknown = "Unknown",
36
- AccessDenied = "AccessDenied",
37
- BusinessValidation = "BusinessValidation",
38
- FeatureNotSupported = "FeatureNotSupported",
39
- InputValidation = "InputValidation",
40
- ResourceDuplicate = "ResourceDuplicate",
41
- ResourceInvalidState = "ResourceInvalidState",
42
- ResourceNotFound = "ResourceNotFound",
43
- EndpointNotFound = "EndpointNotFound",
44
- UnsupportedMediaType = "UnsupportedMediaType",
45
- MethodNotAllowed = "MethodNotAllowed",
46
- Unauthorized = "Unauthorized",
47
- Upstream = "Upstream"
48
- }
49
- /**
50
- * GraphQL error codes from the server
51
- * These match the error codes set by the GraphQL error filter on the backend
52
- */
53
- declare enum InsurUpGraphQLErrorCode {
54
- /** Access denied - user lacks permission */
55
- Forbidden = "FORBIDDEN",
56
- /** Authentication required or invalid */
57
- Unauthorized = "UNAUTHORIZED",
58
- /** Requested resource not found */
59
- NotFound = "NOT_FOUND",
60
- /** Invalid input or business validation failure */
61
- BadRequest = "BAD_REQUEST",
62
- /** Resource conflict (duplicate or invalid state) */
63
- Conflict = "CONFLICT",
64
- /** Feature not supported */
65
- NotSupported = "NOT_SUPPORTED",
66
- /** Upstream service error */
67
- UpstreamError = "UPSTREAM_ERROR",
68
- /** Internal server error */
69
- InternalError = "INTERNAL_ERROR",
70
- /** GraphQL validation error */
71
- ValidationError = "VALIDATION_ERROR",
72
- /** Filter is required for this query */
73
- FilterRequired = "FILTER_REQUIRED",
74
- /** Filter time span exceeds maximum allowed */
75
- FilterMaxSpanExceeded = "FILTER_MAX_SPAN_EXCEEDED",
76
- /** Unknown error code */
77
- Unknown = "UNKNOWN"
78
- }
79
-
80
- /**
81
- * @fileoverview InsurUp Result Types - Type-safe discriminated unions for operation results
82
- * @description Type-safe discriminated unions for operation results
83
- */
84
-
85
- /**
86
- * Represents a validation error that occurred during request processing
87
- */
88
- interface ValidationError {
89
- /**
90
- * The name of the property that failed validation
91
- * The name of the property.
92
- */
93
- readonly propertyName: string;
94
- /**
95
- * The error message describing what went wrong
96
- * The error message
97
- */
98
- readonly errorMessage: string;
99
- /**
100
- * The property value that caused the validation failure
101
- * The property value that caused the failure.
102
- */
103
- readonly attemptedValue: unknown;
104
- }
105
-
106
- /**
107
- * Represents a successful operation with data
108
- */
109
- interface Success<T> {
110
- readonly kind: "success";
111
- readonly isSuccess: true;
112
- readonly message: "Success";
113
- readonly data: T;
114
- }
115
- /**
116
- * Represents a successful operation without data (e.g., 204 No Content)
117
- */
118
- interface SuccessNoContent {
119
- readonly kind: "success";
120
- readonly isSuccess: true;
121
- readonly message: "Success";
122
- }
123
- /**
124
- * Represents an error response from the server (4xx and 5xx HTTP status codes)
125
- */
126
- interface ServerError {
127
- readonly kind: "server-error";
128
- readonly isSuccess: false;
129
- readonly message: string;
130
- readonly type: InsurUpServerErrorType;
131
- readonly typeString: string;
132
- readonly title: string;
133
- readonly detail: string;
134
- readonly instance: string;
135
- readonly status: number;
136
- readonly codes: readonly string[];
137
- readonly traceId: string | undefined;
138
- readonly template: string;
139
- readonly templateArgs: Readonly<Record<string, unknown>>;
140
- readonly suggestions: readonly string[];
141
- readonly validationErrors: readonly ValidationError[];
142
- }
143
- /**
144
- * Represents a client-side error (exceptions, null JSON responses, etc.)
145
- */
146
- interface ClientError {
147
- readonly kind: "client-error";
148
- readonly isSuccess: false;
149
- readonly message: string;
150
- readonly type: InsurUpClientErrorType;
151
- readonly error?: unknown;
152
- }
153
- /**
154
- * Represents the location of an error in a GraphQL document
155
- */
156
- interface GraphQLErrorLocation {
157
- readonly line: number;
158
- readonly column: number;
159
- }
160
- /**
161
- * Extensions attached to GraphQL errors by the server
162
- * Contains structured error information from the backend error filter
163
- */
164
- interface GraphQLErrorExtensions {
165
- /** The error code (e.g., FORBIDDEN, UNAUTHORIZED, NOT_FOUND) */
166
- readonly code?: InsurUpGraphQLErrorCode;
167
- /** Trace ID for debugging/correlation */
168
- readonly traceId?: string;
169
- /** Array of error codes from the backend AppException */
170
- readonly codes?: readonly string[];
171
- /** Message template for localization */
172
- readonly template?: string;
173
- /** Arguments for the message template */
174
- readonly templateArgs?: Readonly<Record<string, unknown>>;
175
- /** Suggested actions or fixes */
176
- readonly suggestions?: readonly string[];
177
- /** Additional extension fields */
178
- readonly [key: string]: unknown;
179
- }
180
- /**
181
- * Represents a single GraphQL error item
182
- */
183
- interface GraphQLErrorItem {
184
- /** The error message */
185
- readonly message: string;
186
- /** Locations in the GraphQL document where the error occurred */
187
- readonly locations?: readonly GraphQLErrorLocation[];
188
- /** Path to the field that caused the error */
189
- readonly path?: readonly (string | number)[];
190
- /** Extensions containing additional error information */
191
- readonly extensions?: GraphQLErrorExtensions;
192
- }
193
- /**
194
- * Represents a GraphQL error response containing one or more errors
195
- */
196
- interface GraphQLErrors {
197
- readonly kind: "graphql-error";
198
- readonly isSuccess: false;
199
- /** First error message for convenience */
200
- readonly message: string;
201
- /** All GraphQL errors from the response */
202
- readonly errors: readonly GraphQLErrorItem[];
203
- }
204
- /**
205
- * Discriminated union representing the result of a GraphQL operation
206
- *
207
- * Similar to InsurUpResult but uses GraphQLErrors instead of ServerError
208
- * since GraphQL errors have a different schema and can contain multiple errors.
209
- *
210
- * @template T The type of the success data (void for no-content operations)
211
- */
212
- type InsurUpGraphQLResult<T = void> = T extends void ? SuccessNoContent | GraphQLErrors | ClientError : Success<T> | GraphQLErrors | ClientError;
213
- /**
214
- * Discriminated union representing the result of an InsurUp operation
215
- *
216
- * When called without a type parameter (InsurUpResult), represents a no-content result
217
- * where the success case has no data field.
218
- *
219
- * When called with a type parameter (InsurUpResult<T>), represents a result with data
220
- * where the success case has a data field of type T.
221
- *
222
- * @template T The type of the success data (void for no-content operations)
223
- */
224
- type InsurUpResult<T = void> = T extends void ? SuccessNoContent | ServerError | ClientError : Success<T> | ServerError | ClientError;
225
- /**
226
- * Extracts data from a successful result or throws an InsurUpError
227
- * Only works with InsurUpResult<T> where T is not void
228
- */
229
- declare function getDataOrThrow<T>(result: InsurUpResult<T>): T;
230
- /**
231
- * Throws an InsurUpError if the result is not successful
232
- * Works with any InsurUpResult type
233
- */
234
- declare function throwIfError(result: InsurUpResult<unknown> | InsurUpResult): void;
235
- /**
236
- * Extracts data from a successful GraphQL result or throws an InsurUpError
237
- * Only works with InsurUpGraphQLResult<T> where T is not void
238
- */
239
- declare function getGraphQLDataOrThrow<T>(result: InsurUpGraphQLResult<T>): T;
240
- /**
241
- * Throws an InsurUpError if the GraphQL result is not successful
242
- * Works with any InsurUpGraphQLResult type
243
- */
244
- declare function throwIfGraphQLError(result: InsurUpGraphQLResult<unknown> | InsurUpGraphQLResult): void;
245
- /**
246
- * Creates a GraphQL errors result from an array of GraphQL error items
247
- */
248
- declare function createGraphQLErrors(errors: readonly GraphQLErrorItem[]): GraphQLErrors;
249
-
250
- /**
251
- * @fileoverview InsurUp Client Options - Configuration for the SDK client
252
- * @description Configuration for the SDK client
253
- */
254
-
255
- /**
256
- * Logging levels for request/response debugging
257
- */
258
- type LogLevel = "none" | "basic" | "detailed";
259
- /**
260
- * Custom logger interface for request/response logging
261
- */
262
- interface Logger {
263
- /**
264
- * Log informational messages
265
- */
266
- info(message: string, data?: unknown): void;
267
- /**
268
- * Log warning messages
269
- */
270
- warn(message: string, data?: unknown): void;
271
- /**
272
- * Log error messages
273
- */
274
- error(message: string, data?: unknown): void;
275
- }
276
- /**
277
- * Backoff strategy for retry delays
278
- * - exponential: delay = minTimeout * (factor ^ attempt) - grows quickly
279
- * - linear: delay = minTimeout * attempt - grows steadily
280
- * - constant: delay = minTimeout - fixed delay between retries
281
- */
282
- type BackoffStrategy = "exponential" | "linear" | "constant";
283
- /**
284
- * Retry configuration for handling transient failures
285
- * Built-in implementation providing configurable backoff with jitter.
286
- * Disabled by default. To enable, provide an object with retry settings.
287
- */
288
- interface RetryOptions {
289
- /**
290
- * Maximum number of retry attempts
291
- * @default 3
292
- */
293
- readonly retries?: number;
294
- /**
295
- * The exponential factor to use
296
- * @default 2
297
- */
298
- readonly factor?: number;
299
- /**
300
- * The number of milliseconds before starting the first retry
301
- * @default 1000
302
- */
303
- readonly minTimeout?: number;
304
- /**
305
- * The maximum number of milliseconds between two retries
306
- * @default 10000
307
- */
308
- readonly maxTimeout?: number;
309
- /**
310
- * Randomizes the timeouts by multiplying with a factor between 1 to 2
311
- * @default true
312
- */
313
- readonly randomize?: boolean;
314
- /**
315
- * The backoff strategy to use between retries
316
- * - exponential: delay = minTimeout * (factor ^ attempt)
317
- * - linear: delay = minTimeout * attempt
318
- * - constant: delay = minTimeout
319
- * @default "exponential"
320
- */
321
- readonly backoffStrategy?: BackoffStrategy;
322
- /**
323
- * HTTP status codes that should trigger a retry
324
- * @default [408, 429, 500, 502, 503, 504]
325
- */
326
- readonly retryableStatusCodes?: readonly number[];
327
- /**
328
- * Called when a retry is made
329
- */
330
- readonly onFailedAttempt?: (error: {
331
- attemptNumber: number;
332
- retriesLeft: number;
333
- name: string;
334
- message: string;
335
- error: Error;
336
- }) => void;
337
- }
338
- /**
339
- * Token provider function that returns an authentication token
340
- * Can be async to support dynamic token retrieval
341
- */
342
- type TokenProvider = () => string | Promise<string | null> | null;
343
- /**
344
- * Request configuration passed to interceptors
345
- */
346
- interface RequestConfig {
347
- /**
348
- * The full URL of the request
349
- */
350
- readonly url: string;
351
- /**
352
- * HTTP method (GET, POST, PUT, DELETE, PATCH)
353
- */
354
- readonly method: string;
355
- /**
356
- * Request headers
357
- */
358
- readonly headers: Record<string, string>;
359
- /**
360
- * Request body (if any)
361
- */
362
- readonly body?: unknown;
363
- }
364
- /**
365
- * Request interceptor function called before each request is sent
366
- * Can modify the request configuration or perform side effects
367
- */
368
- type RequestInterceptor = (config: RequestConfig) => RequestConfig | Promise<RequestConfig>;
369
- /**
370
- * Response interceptor function called after each response is received
371
- * Can transform the result or perform side effects
372
- */
373
- type ResponseInterceptor = <T>(result: InsurUpResult<T>, config: RequestConfig) => InsurUpResult<T> | Promise<InsurUpResult<T>>;
374
- /**
375
- * Per-request options for individual API calls
376
- * Allows overriding client-level defaults and controlling request lifecycle
377
- */
378
- interface RequestOptions {
379
- /**
380
- * AbortSignal for request cancellation
381
- * Useful for cancelling requests on component unmount (React) or user navigation
382
- *
383
- * @example
384
- * ```typescript
385
- * const controller = new AbortController();
386
- * const result = await client.customers.getCustomer('id', { signal: controller.signal });
387
- * // Later: controller.abort();
388
- * ```
389
- */
390
- readonly signal?: AbortSignal;
391
- /**
392
- * Per-request timeout in milliseconds
393
- * Overrides the client-level timeoutMs for this specific request
394
- *
395
- * @example
396
- * ```typescript
397
- * // Override default timeout for a slow operation
398
- * const result = await client.customers.getCustomer('id', { timeoutMs: 60000 });
399
- * ```
400
- */
401
- readonly timeoutMs?: number;
402
- /**
403
- * Additional headers for this specific request
404
- * These headers will be merged with client-level customHeaders
405
- */
406
- readonly headers?: Record<string, string>;
407
- }
408
- /**
409
- * Configuration options for the InsurUp SDK client
410
- */
411
- interface InsurUpClientOptions {
412
- /**
413
- * The base URL of the InsurUp API
414
- *
415
- * @default "https://api.insurup.com/api/"
416
- */
417
- readonly baseUrl?: string;
418
- /**
419
- * Custom headers to include with every request
420
- * These headers will be merged with the default headers for each request
421
- */
422
- readonly customHeaders?: Readonly<Record<string, string>>;
423
- /**
424
- * User agent string for HTTP requests
425
- * Note: In browser environments, this may be ignored due to CORS restrictions
426
- *
427
- * @default "@insurup/sdk/1.0.0"
428
- */
429
- readonly userAgent?: string;
430
- /**
431
- * Request timeout in milliseconds
432
- * This is a simplified adaptation of the .NET TimeoutStrategy options
433
- *
434
- * @default 30000 (30 seconds)
435
- */
436
- readonly timeoutMs?: number;
437
- /**
438
- * Logging configuration for request/response debugging
439
- *
440
- * @default 'none'
441
- */
442
- readonly logLevel?: LogLevel;
443
- /**
444
- * Custom logger implementation
445
- * If not provided, console will be used when logLevel is not 'none'
446
- */
447
- readonly logger?: Logger;
448
- /**
449
- * Retry configuration for handling transient failures
450
- * If not provided, no retries will be attempted
451
- */
452
- readonly retry?: RetryOptions;
453
- /**
454
- * Optional token provider function for authentication
455
- * Called before each request to get the current authentication token
456
- * The token will be automatically added to the Authorization header as 'Bearer {token}'
457
- */
458
- readonly tokenProvider?: TokenProvider;
459
- /**
460
- * Optional request interceptor called before each request is sent
461
- * Allows modifying request configuration or performing side effects
462
- */
463
- readonly onRequest?: RequestInterceptor;
464
- /**
465
- * Optional response interceptor called after each response is received
466
- * Allows transforming the result or performing side effects
467
- */
468
- readonly onResponse?: ResponseInterceptor;
469
- }
470
-
471
- /**
472
- * @fileoverview HTTP Transport Layer - Fetch-based HTTP client
473
- * @description Cross-environment HTTP transport with timeout support and error handling
474
- */
475
-
476
- /**
477
- * Valid request body types for HTTP requests
478
- */
479
- type RequestBody = unknown | FormData;
480
- /**
481
- * HTTP transport class providing fetch-based request capabilities
482
- * with environment detection and timeout support
483
- */
484
- declare class HttpTransport {
485
- private readonly options;
486
- constructor(options?: InsurUpClientOptions);
487
- /**
488
- * Sends an HTTP request and returns the parsed result
489
- * @template T The expected response type (void for no-content operations)
490
- * @param method HTTP method
491
- * @param path Relative path (will be prefixed with baseUrl)
492
- * @param body Optional request body
493
- * @param options Optional request options (headers, signal, timeoutMs)
494
- * @param expectContent Whether the response should contain data (internal use)
495
- * @returns Promise resolving to InsurUpResult<T>
496
- */
497
- private sendInternal;
498
- /**
499
- * Sends a single HTTP request without retry logic
500
- */
501
- private sendSingleRequest;
502
- /**
503
- * Convenience method for GET requests - always expects content
504
- * @param path Relative path (will be prefixed with baseUrl)
505
- * @param options Optional request options (headers, signal, timeoutMs)
506
- */
507
- get<T>(path: string, options?: RequestOptions): Promise<InsurUpResult<T>>;
508
- /**
509
- * POST request expecting a response with data
510
- * @param path Relative path (will be prefixed with baseUrl)
511
- * @param data Optional request body
512
- * @param options Optional request options (headers, signal, timeoutMs)
513
- * @returns Promise resolving to InsurUpResult<T> with response data
514
- */
515
- post<T>(path: string, data?: RequestBody, options?: RequestOptions): Promise<InsurUpResult<T>>;
516
- /**
517
- * POST request expecting no response content (204 No Content)
518
- * @param path Relative path (will be prefixed with baseUrl)
519
- * @param data Optional request body
520
- * @param options Optional request options (headers, signal, timeoutMs)
521
- * @returns Promise resolving to InsurUpResult (no data)
522
- */
523
- postNoContent(path: string, data?: RequestBody, options?: RequestOptions): Promise<InsurUpResult>;
524
- /**
525
- * PUT request expecting a response with data
526
- * @param path Relative path (will be prefixed with baseUrl)
527
- * @param data Optional request body
528
- * @param options Optional request options (headers, signal, timeoutMs)
529
- * @returns Promise resolving to InsurUpResult<T> with response data
530
- */
531
- put<T>(path: string, data?: RequestBody, options?: RequestOptions): Promise<InsurUpResult<T>>;
532
- /**
533
- * PUT request expecting no response content (204 No Content)
534
- * @param path Relative path (will be prefixed with baseUrl)
535
- * @param data Optional request body
536
- * @param options Optional request options (headers, signal, timeoutMs)
537
- * @returns Promise resolving to InsurUpResult (no data)
538
- */
539
- putNoContent(path: string, data?: RequestBody, options?: RequestOptions): Promise<InsurUpResult>;
540
- /**
541
- * PATCH request expecting a response with data
542
- * @param path Relative path (will be prefixed with baseUrl)
543
- * @param data Optional request body
544
- * @param options Optional request options (headers, signal, timeoutMs)
545
- * @returns Promise resolving to InsurUpResult<T> with response data
546
- */
547
- patch<T>(path: string, data?: RequestBody, options?: RequestOptions): Promise<InsurUpResult<T>>;
548
- /**
549
- * PATCH request expecting no response content (204 No Content)
550
- * @param path Relative path (will be prefixed with baseUrl)
551
- * @param data Optional request body
552
- * @param options Optional request options (headers, signal, timeoutMs)
553
- * @returns Promise resolving to InsurUpResult (no data)
554
- */
555
- patchNoContent(path: string, data?: RequestBody, options?: RequestOptions): Promise<InsurUpResult>;
556
- /**
557
- * DELETE request expecting a response with data
558
- * @param path Relative path (will be prefixed with baseUrl)
559
- * @param options Optional request options (headers, signal, timeoutMs)
560
- * @returns Promise resolving to InsurUpResult<T> with response data
561
- */
562
- delete<T>(path: string, options?: RequestOptions): Promise<InsurUpResult<T>>;
563
- /**
564
- * DELETE request expecting no response content (204 No Content)
565
- * @param path Relative path (will be prefixed with baseUrl)
566
- * @param options Optional request options (headers, signal, timeoutMs)
567
- * @returns Promise resolving to InsurUpResult (no data)
568
- */
569
- deleteNoContent(path: string, options?: RequestOptions): Promise<InsurUpResult>;
570
- /**
571
- * Downloads a binary file as a Blob
572
- * Use this for downloading documents, images, or other binary content
573
- * @param path Relative path (will be prefixed with baseUrl)
574
- * @param options Optional request options (headers, signal, timeoutMs)
575
- * @returns Promise resolving to InsurUpResult<Blob>
576
- */
577
- getBlob(path: string, options?: RequestOptions): Promise<InsurUpResult<Blob>>;
578
- /**
579
- * Builds request headers including defaults and custom headers
580
- * Invokes token provider if available and adds Authorization header
581
- */
582
- private buildHeaders;
583
- /**
584
- * Checks if Content-Type header is present (case-insensitive)
585
- */
586
- private hasContentTypeHeader;
587
- /**
588
- * Checks if a content type is a valid JSON content type
589
- */
590
- private isJsonContentType;
591
- /**
592
- * Handles HTTP response and converts to InsurUpResult
593
- * @param response The fetch Response object
594
- * @param expectContent Whether the caller expects response data
595
- */
596
- private handleResponse;
597
- /**
598
- * Parses successful JSON response body
599
- */
600
- private parseSuccessResponse;
601
- /**
602
- * Determines if a result should be retried
603
- */
604
- private shouldRetryResult;
605
- /**
606
- * Logs outgoing request details
607
- */
608
- private logRequest;
609
- /**
610
- * Logs response details
611
- */
612
- private logResponse;
613
- /**
614
- * Logs retry attempt
615
- */
616
- private logRetry;
617
- /**
618
- * Sanitizes headers for logging (removes sensitive information)
619
- */
620
- private sanitizeHeaders;
621
- /**
622
- * Sanitizes request body for logging with memory-efficient handling
623
- */
624
- private sanitizeBody;
625
- /**
626
- * Efficiently estimates if an object is large without full serialization
627
- */
628
- private isLargeObject;
629
- /**
630
- * Sanitizes response data for logging with memory-efficient handling
631
- */
632
- private sanitizeResponseData;
633
- /**
634
- * Sanitizes error information for logging
635
- */
636
- private sanitizeError;
637
- }
638
-
639
- /**
640
- * Provides agent management operations for the InsurUp platform, enabling agents to manage their profile,
641
- * insurance company connections, and business relationships within the insurance ecosystem.
642
- *
643
- * InsurUp platformunda acente yönetimi işlemlerini sağlar; acentelerin profilerini, sigorta şirketi
644
- * bağlantılarını ve sigorta ekosistemi içindeki iş ilişkilerini yönetmelerine olanak tanır.
645
- */
646
- declare class InsurUpAgentClient {
647
- private readonly http;
648
- constructor(http: HttpTransport);
649
- /**
650
- * Retrieves the current agent's profile information including business details and configuration settings.
651
- *
652
- * Mevcut acentenin iş detayları ve yapılandırma ayarları dahil profil bilgilerini getirir.
653
- *
654
- * @returns Agent profile information / Acente profil bilgileri
655
- */
656
- getCurrentAgent(options?: RequestOptions): Promise<InsurUpResult<GetCurrentAgentResult>>;
657
- /**
658
- * Updates the current agent's profile information such as business details, contact information, and operational preferences.
659
- *
660
- * Mevcut acentenin iş detayları, iletişim bilgileri ve operasyonel tercihleri gibi profil bilgilerini günceller.
661
- *
662
- * @param request Agent profile update data / Acente profil güncelleme verileri
663
- * @returns Operation result / İşlem sonucu
664
- */
665
- updateCurrentAgent(request: UpdateCurrentAgentRequest, options?: RequestOptions): Promise<InsurUpResult>;
666
- /**
667
- * Retrieves all insurance companies that the current agent is affiliated with or has authorization to work with.
668
- *
669
- * Mevcut acentenin bağlı olduğu veya çalışma yetkisine sahip olduğu tüm sigorta şirketlerini getirir.
670
- *
671
- * @returns List of agent's insurance companies / Acentenin sigorta şirketleri listesi
672
- */
673
- getAgentInsuranceCompaniesAsync(options?: RequestOptions): Promise<InsurUpResult<GetMyAgentInsuranceCompaniesResult[]>>;
674
- /**
675
- * Retrieves the available product branches (Kasko, TSS, IMM, DASK, etc.) for a specific insurance company that the agent can offer.
676
- *
677
- * Acentenin sunabileceği belirli bir sigorta şirketi için mevcut ürün dallarını (Kasko, TSS, İMM, DASK, vb.) getirir.
678
- *
679
- * @param agentInsuranceCompanyId Insurance company relationship identifier / Sigorta şirketi ilişki tanımlayıcısı
680
- * @returns Available product branches / Mevcut ürün dalları
681
- */
682
- getAgentInsuranceCompanyBranchesAsync(agentInsuranceCompanyId: string, options?: RequestOptions): Promise<InsurUpResult<GetAgentInsuranceCompanyBranchesResult[]>>;
683
- /**
684
- * Retrieves the technical connection configuration and credentials for integrating with a specific insurance company's systems.
685
- *
686
- * Belirli bir sigorta şirketinin sistemleri ile entegrasyon için teknik bağlantı yapılandırması ve kimlik bilgilerini getirir.
687
- *
688
- * @param agentInsuranceCompanyId Insurance company relationship identifier / Sigorta şirketi ilişki tanımlayıcısı
689
- * @returns Connection configuration details / Bağlantı yapılandırma detayları
690
- */
691
- getAgentInsuranceCompanyConnectionAsync(agentInsuranceCompanyId: string, options?: RequestOptions): Promise<InsurUpResult<GetAgentInsuranceCompanyConnectionResult>>;
692
- /**
693
- * Establishes a new business relationship between the agent and an insurance company, enabling the agent to offer that company's products.
694
- *
695
- * Acente ile sigorta şirketi arasında yeni bir iş ilişkisi kurar ve acentenin o şirketin ürünlerini sunmasına olanak tanır.
696
- *
697
- * @param request Insurance company association request / Sigorta şirketi ilişkilendirme talebi
698
- * @returns Operation result / İşlem sonucu
699
- */
700
- addAgentInsuranceCompany(request: AddInsuranceCompanyToAgentRequest, options?: RequestOptions): Promise<InsurUpResult>;
701
- /**
702
- * Removes the business relationship between the agent and an insurance company, terminating the agent's ability to offer that company's products.
703
- *
704
- * Acente ile sigorta şirketi arasındaki iş ilişkisini kaldırır ve acentenin o şirketin ürünlerini sunma yeteneğini sonlandırır.
705
- *
706
- * @param agentInsuranceCompanyId Insurance company relationship identifier to remove / Kaldırılacak sigorta şirketi ilişki tanımlayıcısı
707
- * @returns Operation result / İşlem sonucu
708
- */
709
- removeAgentInsuranceCompany(agentInsuranceCompanyId: string, options?: RequestOptions): Promise<InsurUpResult>;
710
- /**
711
- * Updates the technical connection settings and credentials for integrating with an insurance company's API or systems.
712
- *
713
- * Bir sigorta şirketinin API'si veya sistemleri ile entegrasyon için teknik bağlantı ayarları ve kimlik bilgilerini günceller.
714
- *
715
- * @param request Connection configuration update request / Bağlantı yapılandırma güncelleme talebi
716
- * @returns Operation result / İşlem sonucu
717
- */
718
- updateAgentInsuranceCompanyConnection(request: UpdateAgentInsuranceCompanyConnectionRequest, options?: RequestOptions): Promise<InsurUpResult>;
719
- /**
720
- * Updates which product branches (Kasko, TSS, IMM, DASK, etc.) the agent is authorized to offer for a specific insurance company.
721
- *
722
- * Acentenin belirli bir sigorta şirketi için hangi ürün dallarını (Kasko, TSS, İMM, DASK, vb.) sunma yetkisine sahip olduğunu günceller.
723
- *
724
- * @param request Branch authorization update request / Şube yetkilendirme güncelleme talebi
725
- * @returns Operation result / İşlem sonucu
726
- */
727
- updateAgentInsuranceCompanyBranches(request: UpdateAgentInsuranceCompanyBranchesRequest, options?: RequestOptions): Promise<InsurUpResult>;
728
- /**
729
- * Re-synchronizes the agent's configuration and authorizations with the insurance company's systems to ensure data consistency and updated permissions.
730
- *
731
- * Veri tutarlılığını ve güncellenmiş izinleri sağlamak için acentenin yapılandırması ve yetkilendirmelerini sigorta şirketinin sistemleri ile yeniden senkronize eder.
732
- *
733
- * @param request Re-synchronization request details / Yeniden senkronizasyon talep detayları
734
- * @returns Operation result / İşlem sonucu
735
- */
736
- reSyncAgentInsuranceCompanyWithInsurance(request: ReSyncAgentInsuranceCompanyWithInsuranceRequest, options?: RequestOptions): Promise<InsurUpResult>;
737
- /**
738
- * Retrieves all B2C configuration fields that define the customizable settings and parameters for the agent's customer-facing interface.
739
- *
740
- * Acentenin müşteriye yönelik arayüzü için özelleştirilebilir ayarları ve parametreleri tanımlayan tüm B2C yapılandırma alanlarını getirir.
741
- *
742
- * @returns List of B2C configuration fields
743
- */
744
- getB2CConfigFields(options?: RequestOptions): Promise<InsurUpResult<GetB2CConfigFieldsResult>>;
745
- /**
746
- * Updates all B2C configuration fields at once, allowing agents to customize their customer-facing interface settings and branding parameters.
747
- *
748
- * Tüm B2C yapılandırma alanlarını bir kerede günceller, acentelerin müşteriye yönelik arayüz ayarlarını ve marka parametrelerini özelleştirmelerine olanak tanır.
749
- *
750
- * @param request B2C configuration fields update data
751
- * @returns Operation result
752
- */
753
- updateB2CConfigFields(request: UpdateB2CConfigFieldsRequest, options?: RequestOptions): Promise<InsurUpResult>;
754
- }
755
-
756
- /**
757
- * @fileoverview Agent Branch Client - Agent branch management operations
758
- * @description Provides branch management operations for insurance agents
759
- */
760
-
761
- /**
762
- * Provides branch management operations for insurance agents, enabling the creation and administration
763
- * of organizational branches within agency structures.
764
- */
765
- declare class InsurUpAgentBranchClient {
766
- private readonly http;
767
- constructor(http: HttpTransport);
768
- /**
769
- * Creates a new agent branch within the agency structure with optional parent branch relationship.
770
- *
771
- * Acente yapısı içinde isteğe bağlı üst şube ilişkisi ile yeni bir acente şubesi oluşturur.
772
- *
773
- * @param request Branch creation request with name and optional parent
774
- * @returns Created branch details
775
- */
776
- createAgentBranch(request: CreateAgentBranchRequest, options?: RequestOptions): Promise<InsurUpResult<string>>;
777
- /**
778
- * Retrieves detailed information about a specific agent branch including its parent relationship.
779
- *
780
- * Belirli bir acente şubesi hakkında üst şube ilişkisi dahil detaylı bilgileri getirir.
781
- *
782
- * @param id Unique identifier of the agent branch
783
- * @returns Agent branch details
784
- */
785
- getAgentBranchById(id: string, options?: RequestOptions): Promise<InsurUpResult<GetAgentBranchResult>>;
786
- /**
787
- * Retrieves all available agent branches within the current agency, showing the complete branch hierarchy.
788
- *
789
- * Mevcut acente içindeki tüm kullanılabilir acente şubelerini getirir ve tam şube hiyerarşisini gösterir.
790
- *
791
- * @returns List of all agent branches
792
- */
793
- getAgentBranches(options?: RequestOptions): Promise<InsurUpResult<GetAllAgentBranchesResult[]>>;
794
- /**
795
- * Updates an existing agent branch's name or parent branch relationship to reflect changing organizational needs.
796
- *
797
- * Değişen organizasyonel ihtiyaçları yansıtmak için mevcut bir acente şubesinin adını veya üst şube ilişkisini günceller.
798
- *
799
- * @param request Branch update request with modified details
800
- * @returns Operation result
801
- */
802
- updateAgentBranch(request: UpdateAgentBranchRequest, options?: RequestOptions): Promise<InsurUpResult>;
803
- /**
804
- * Removes an agent branch from the agency structure. The branch must not have any child branches.
805
- *
806
- * Acente yapısından bir acente şubesini kaldırır. Şubenin alt şubeleri olmamalıdır.
807
- *
808
- * @param request Branch deletion request
809
- * @returns Operation result
810
- */
811
- deleteAgentBranch(request: DeleteAgentBranchRequest, options?: RequestOptions): Promise<InsurUpResult>;
812
- }
813
-
814
- /**
815
- * Provides role management operations for insurance agents, enabling the creation and administration
816
- * of role-based access control within agency hierarchies and permission structures.
817
- *
818
- * Sigorta acenteleri için rol yönetimi işlemlerini sağlar; acente hiyerarşileri ve izin yapıları
819
- * içinde rol tabanlı erişim kontrolünün oluşturulması ve yönetimini mümkün kılar.
820
- */
821
- declare class InsurUpAgentRoleClient {
822
- private readonly http;
823
- constructor(http: HttpTransport);
824
- /**
825
- * Creates a new agent role with specified permissions and access levels for use within the agency structure.
826
- *
827
- * Acente yapısı içinde kullanım için belirtilen izinler ve erişim seviyeleri ile yeni bir acente rolü oluşturur.
828
- *
829
- * @param request Role creation request with permissions and configurations / İzinler ve yapılandırmalar ile rol oluşturma talebi
830
- * @returns Operation result / İşlem sonucu
831
- */
832
- createAgentRole(request: CreateAgentRoleRequest, options?: RequestOptions): Promise<InsurUpResult>;
833
- /**
834
- * Retrieves detailed information about a specific agent role including its permissions and access configurations.
835
- *
836
- * Belirli bir acente rolü hakkında izinleri ve erişim yapılandırmaları dahil detaylı bilgileri getirir.
837
- *
838
- * @param id Unique identifier of the agent role / Acente rolünün benzersiz tanımlayıcısı
839
- * @returns Agent role details / Acente rolü detayları
840
- */
841
- getAgentRoleById(id: string, options?: RequestOptions): Promise<InsurUpResult<GetAgentRoleByIdResult>>;
842
- /**
843
- * Retrieves all available agent roles within the current agency, showing the complete role hierarchy and permissions structure.
844
- *
845
- * Mevcut acente içindeki tüm kullanılabilir acente rollerini getirir ve tam rol hiyerarşisi ile izin yapısını gösterir.
846
- *
847
- * @returns List of all agent roles / Tüm acente rolleri listesi
848
- */
849
- getAgentRoles(options?: RequestOptions): Promise<InsurUpResult<GetAllAgentRolesResult[]>>;
850
- /**
851
- * Updates an existing agent role's permissions, access levels, or configuration settings to reflect changing organizational needs.
852
- *
853
- * Değişen organizasyonel ihtiyaçları yansıtmak için mevcut bir acente rolünün izinlerini, erişim seviyelerini veya yapılandırma ayarlarını günceller.
854
- *
855
- * @param request Role update request with modified permissions / Değiştirilmiş izinlerle rol güncelleme talebi
856
- * @returns Operation result / İşlem sonucu
857
- */
858
- updateAgentRole(request: UpdateAgentRoleRequest, options?: RequestOptions): Promise<InsurUpResult>;
859
- /**
860
- * Removes an agent role from the agency structure, ensuring proper cleanup of associated permissions and user assignments.
861
- *
862
- * Acente yapısından bir acente rolünü kaldırır ve ilişkili izinlerin ve kullanıcı atamalarının düzgün temizlenmesini sağlar.
863
- *
864
- * @param request Role deletion request / Rol silme talebi
865
- * @returns Operation result / İşlem sonucu
866
- */
867
- deleteAgentRole(request: DeleteAgentRoleRequest, options?: RequestOptions): Promise<InsurUpResult>;
868
- }
869
-
870
- /**
871
- * Provides agent onboarding and setup operations for new insurance agents joining the InsurUp platform,
872
- * facilitating the complete registration and configuration process required for business operations.
873
- *
874
- * InsurUp platformuna katılan yeni sigorta acenteleri için acente katılım ve kurulum işlemlerini sağlar;
875
- * iş operasyonları için gereken tam kayıt ve yapılandırma sürecini kolaylaştırır.
876
- */
877
- declare class InsurUpAgentSetupClient {
878
- private readonly http;
879
- constructor(http: HttpTransport);
880
- /**
881
- * Initiates the agent setup process by submitting initial business information and required documentation for platform registration.
882
- *
883
- * Platform kaydı için ilk iş bilgilerini ve gerekli dokümantasyonu sunarak acente kurulum sürecini başlatır.
884
- *
885
- * @param request Agent setup initiation request with business details / İş detayları ile acente kurulum başlatma talebi
886
- * @returns Setup process identifier and next steps / Kurulum süreci tanımlayıcısı ve sonraki adımlar
887
- */
888
- enterAgentSetupRequest(request: EnterAgentSetupRequestRequest, options?: RequestOptions): Promise<InsurUpResult<EnterAgentSetupRequestResult>>;
889
- /**
890
- * Finalizes the agent setup process by confirming all requirements are met and activating the agent's platform access.
891
- *
892
- * Tüm gereksinimlerin karşılandığını onaylayarak ve acentenin platform erişimini aktive ederek acente kurulum sürecini sonlandırır.
893
- *
894
- * @param request Setup completion request with final confirmations / Son onaylar ile kurulum tamamlama talebi
895
- * @returns Operation result / İşlem sonucu
896
- */
897
- completeAgentSetupRequest(request: CompleteAgentSetupRequestRequest, options?: RequestOptions): Promise<InsurUpResult>;
898
- }
899
-
900
- /**
901
- * @fileoverview GraphQL Transport Layer - Fetch-based GraphQL client
902
- * @description GraphQL transport with error handling and type safety
903
- */
904
-
905
- /**
906
- * Raw GraphQL error from the server response
907
- */
908
- interface RawGraphQLError {
909
- message: string;
910
- locations?: Array<{
911
- line: number;
912
- column: number;
913
- }>;
914
- path?: (string | number)[];
915
- extensions?: Record<string, unknown>;
916
- }
917
- /**
918
- * GraphQL response structure
919
- */
920
- interface GraphQLResponse<T> {
921
- data?: T;
922
- errors?: RawGraphQLError[];
923
- }
924
- /**
925
- * GraphQL request payload
926
- */
927
- interface GraphQLRequest {
928
- query: string;
929
- variables?: Record<string, unknown>;
930
- operationName?: string;
931
- }
932
- /**
933
- * GraphQL transport class providing typed query execution
934
- */
935
- declare class GraphQLTransport {
936
- private readonly http;
937
- constructor(http: HttpTransport);
938
- /**
939
- * Executes a GraphQL query or mutation
940
- * @param query The GraphQL query string
941
- * @param variables Optional variables for the query
942
- * @param options Optional request options
943
- * @returns Promise resolving to InsurUpGraphQLResult<T>
944
- */
945
- query<T>(query: string, variables?: Record<string, unknown>, options?: RequestOptions): Promise<InsurUpGraphQLResult<T>>;
946
- }
947
-
948
- /**
949
- * Provides comprehensive user management operations for insurance agency staff, enabling agencies to manage
950
- * their team members, permissions, and access control within the InsurUp platform ecosystem.
951
- *
952
- * Sigorta acente personeli için kapsamlı kullanıcı yönetimi işlemlerini sağlar; acentelerin InsurUp platform
953
- * ekosistemi içinde ekip üyelerini, izinlerini ve erişim kontrolünü yönetmesine olanak tanır.
954
- */
955
- declare class InsurUpAgentUserClient {
956
- private readonly http;
957
- private readonly graphql?;
958
- constructor(http: HttpTransport, graphql?: GraphQLTransport | undefined);
959
- /**
960
- * Retrieves the current agent user's profile information including personal details and platform settings.
961
- *
962
- * Mevcut acente kullanıcısının kişisel detayları ve platform ayarları dahil profil bilgilerini getirir.
963
- *
964
- * @returns Current agent user profile / Mevcut acente kullanıcı profili
965
- */
966
- getMyAgentUser(options?: RequestOptions): Promise<InsurUpResult<GetAgentUserResult>>;
967
- /**
968
- * Updates the current agent user's profile information such as contact details and preferences.
969
- *
970
- * Mevcut acente kullanıcısının iletişim detayları ve tercihleri gibi profil bilgilerini günceller.
971
- *
972
- * @param request Profile update request / Profil güncelleme talebi
973
- * @returns Operation result / İşlem sonucu
974
- */
975
- updateMyAgentUser(request: UpdateMyAgentUserRequest, options?: RequestOptions): Promise<InsurUpResult>;
976
- /**
977
- * Sends an invitation to a new user to join the agency team with specified role and permissions.
978
- *
979
- * Belirtilen rol ve izinlerle acente takımına katılması için yeni bir kullanıcıya davetiye gönderir.
980
- *
981
- * @param request User invitation request with role and contact information / Rol ve iletişim bilgileri ile kullanıcı davet talebi
982
- * @returns Operation result / İşlem sonucu
983
- */
984
- inviteAgentUser(request: InviteAgentUserRequest, options?: RequestOptions): Promise<InsurUpResult>;
985
- /**
986
- * Activates an agent user account, granting them access to the platform and enabling their permissions.
987
- *
988
- * Bir acente kullanıcı hesabını aktive eder, platform erişimi verir ve izinlerini etkinleştirir.
989
- *
990
- * @param agentUserId Unique identifier of the agent user to activate / Aktive edilecek acente kullanıcısının benzersiz tanımlayıcısı
991
- * @returns Operation result / İşlem sonucu
992
- */
993
- activateAgentUser(agentUserId: string, options?: RequestOptions): Promise<InsurUpResult>;
994
- /**
995
- * Deactivates an agent user account, suspending their access while preserving their profile data.
996
- *
997
- * Bir acente kullanıcı hesabını deaktive eder, profil verilerini korurken erişimlerini askıya alır.
998
- *
999
- * @param agentUserId Unique identifier of the agent user to deactivate / Deaktive edilecek acente kullanıcısının benzersiz tanımlayıcısı
1000
- * @returns Operation result / İşlem sonucu
1001
- */
1002
- deactivateAgentUser(agentUserId: string, options?: RequestOptions): Promise<InsurUpResult>;
1003
- /**
1004
- * Validates an agent user invitation code to ensure it is legitimate and has not expired.
1005
- *
1006
- * Bir acente kullanıcı davet kodunun meşru olduğunu ve süresinin dolmadığını doğrular.
1007
- *
1008
- * @param code Invitation code to validate / Doğrulanacak davet kodu
1009
- * @returns Operation result / İşlem sonucu
1010
- */
1011
- checkAgentUserInviteCode(code: string, options?: RequestOptions): Promise<InsurUpResult>;
1012
- /**
1013
- * Permanently removes an agent user account and all associated data from the agency.
1014
- *
1015
- * Bir acente kullanıcı hesabını ve tüm ilişkili verileri acenteden kalıcı olarak kaldırır.
1016
- *
1017
- * @param agentUserId Unique identifier of the agent user to delete / Silinecek acente kullanıcısının benzersiz tanımlayıcısı
1018
- * @returns Operation result / İşlem sonucu
1019
- */
1020
- deleteAgentUser(agentUserId: string, options?: RequestOptions): Promise<InsurUpResult>;
1021
- /**
1022
- * Retrieves detailed information about a specific agent user including their role and current status.
1023
- *
1024
- * Belirli bir acente kullanıcısı hakkında rolü ve mevcut durumu dahil detaylı bilgileri getirir.
1025
- *
1026
- * @param agentUserId Unique identifier of the agent user / Acente kullanıcısının benzersiz tanımlayıcısı
1027
- * @returns Agent user details / Acente kullanıcı detayları
1028
- */
1029
- getAgentUserById(agentUserId: string, options?: RequestOptions): Promise<InsurUpResult<GetAgentUserResult>>;
1030
- /**
1031
- * Resends an invitation email to an agent user who may not have received or lost their original invitation.
1032
- *
1033
- * Orijinal davetiyesini almamış veya kaybetmiş olabilecek bir acente kullanıcısına davet e-postasını yeniden gönderir.
1034
- *
1035
- * @param agentUserId Unique identifier of the agent user to resend invitation / Davetiyesi yeniden gönderilecek acente kullanıcısının benzersiz tanımlayıcısı
1036
- * @returns Operation result / İşlem sonucu
1037
- */
1038
- reSendInviteAgentUser(agentUserId: string, options?: RequestOptions): Promise<InsurUpResult>;
1039
- /**
1040
- * Accepts an agent user invitation and completes the registration process for the new team member.
1041
- *
1042
- * Bir acente kullanıcı davetiyesini kabul eder ve yeni ekip üyesi için kayıt sürecini tamamlar.
1043
- *
1044
- * @param request Invitation acceptance request with user details / Kullanıcı detayları ile davetiye kabul talebi
1045
- * @returns Operation result / İşlem sonucu
1046
- */
1047
- acceptAgentUserInvite(request: AcceptAgentUserInviteRequest, options?: RequestOptions): Promise<InsurUpResult>;
1048
- /**
1049
- * Updates an agent user's profile information, role assignments, or access permissions by an administrator.
1050
- *
1051
- * Bir yönetici tarafından acente kullanıcısının profil bilgilerini, rol atamalarını veya erişim izinlerini günceller.
1052
- *
1053
- * @param request User update request with modified information / Değiştirilmiş bilgilerle kullanıcı güncelleme talebi
1054
- * @returns Operation result / İşlem sonucu
1055
- */
1056
- updateAgentUser(request: UpdateAgentUserRequest, options?: RequestOptions): Promise<InsurUpResult>;
1057
- /**
1058
- * Updates an agent user's password for enhanced security or when requested by the user.
1059
- *
1060
- * Gelişmiş güvenlik için veya kullanıcı tarafından talep edildiğinde acente kullanıcısının şifresini günceller.
1061
- *
1062
- * @param request Password update request / Şifre güncelleme talebi
1063
- * @returns Operation result / İşlem sonucu
1064
- */
1065
- updateAgentUserPassword(request: UpdateAgentUserPasswordRequest, options?: RequestOptions): Promise<InsurUpResult>;
1066
- /**
1067
- * Retrieves the current agent user's robot/automation code for API integrations and automated operations.
1068
- *
1069
- * API entegrasyonları ve otomatik işlemler için mevcut acente kullanıcısının robot/otomasyon kodunu getirir.
1070
- *
1071
- * @returns Agent user robot code / Acente kullanıcı robot kodu
1072
- */
1073
- getMyAgentUserRobotCode(options?: RequestOptions): Promise<InsurUpResult<GetMyAgentUserRobotCodeResult>>;
1074
- /**
1075
- * Migrates an agent user from the legacy authentication system to the AuthServer.
1076
- * Creates an auth user and links it via AuthUserId field. A password reset email will be sent.
1077
- *
1078
- * Acente kullanıcısını eski kimlik doğrulama sisteminden AuthServer'a taşır.
1079
- * Auth kullanıcısı oluşturur ve AuthUserId alanı ile bağlar. Şifre sıfırlama e-postası gönderilir.
1080
- *
1081
- * @param agentUserId Unique identifier of the agent user to migrate / Taşınacak acente kullanıcısının benzersiz tanımlayıcısı
1082
- * @returns Operation result / İşlem sonucu
1083
- */
1084
- migrateAgentUser(agentUserId: string, options?: RequestOptions): Promise<InsurUpResult>;
1085
- /**
1086
- * Migrates all agent users in the current tenant that haven't been migrated yet.
1087
- *
1088
- * Henüz taşınmamış mevcut kiracıdaki tüm acente kullanıcılarını taşır.
1089
- *
1090
- * @returns Response with the count of migrated users / Taşınan kullanıcı sayısı ile yanıt
1091
- */
1092
- migrateAllAgentUsers(options?: RequestOptions): Promise<InsurUpResult<MigrateAllAgentUsersResult>>;
1093
- /**
1094
- * Queries agent users using GraphQL with advanced filtering, searching, sorting, and field selection.
1095
- * Supports cursor-based pagination and type-safe field selection.
1096
- *
1097
- * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak acente kullanıcılarını sorgular.
1098
- * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
1099
- *
1100
- * @example
1101
- * // Basic query with all fields
1102
- * const result = await client.agentUsers.getAgentUsers({ first: 10 });
1103
- *
1104
- * @example
1105
- * // Type-safe field selection
1106
- * const result = await client.agentUsers.getAgentUsers({
1107
- * select: ['id', 'email', 'name', 'state'] as const,
1108
- * first: 10,
1109
- * filter: { state: { eq: AgentUserState.Active } }
1110
- * });
1111
- *
1112
- * @param requestOptions Query options including pagination, filters, search, and field selection
1113
- * @returns Paginated connection of agent users with type-narrowed fields
1114
- */
1115
- getAgentUsers<const TFields extends AgentUserFieldKey[]>(requestOptions?: GetAgentUsersOptions<TFields>, options?: RequestOptions): Promise<InsurUpGraphQLResult<AgentUsersConnection<TFields>>>;
1116
- }
1117
-
1118
- /**
1119
- * Customer management client for the InsurUp TypeScript SDK.
1120
- */
1121
-
1122
- /**
1123
- * Customer management client providing comprehensive customer lifecycle management.
1124
- */
1125
- declare class InsurUpCustomerClient {
1126
- private readonly http;
1127
- private readonly graphql?;
1128
- constructor(http: HttpTransport, graphql?: GraphQLTransport | undefined);
1129
- /**
1130
- * Creates a new customer profile with essential personal and contact information.
1131
- */
1132
- createCustomer(request: CreateCustomerRequest, options?: RequestOptions): Promise<InsurUpResult<CreateCustomerResult>>;
1133
- /**
1134
- * Retrieves detailed information about a specific customer.
1135
- */
1136
- getCustomer(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerResult>>;
1137
- /**
1138
- * Retrieves the profile information of the currently authenticated customer.
1139
- */
1140
- getCurrentCustomer(options?: RequestOptions): Promise<InsurUpResult<GetCustomerResult>>;
1141
- /**
1142
- * Updates existing customer profile information.
1143
- */
1144
- updateCustomer(request: UpdateCustomerRequest, options?: RequestOptions): Promise<InsurUpResult>;
1145
- /**
1146
- * Permanently removes a customer profile and all associated data.
1147
- */
1148
- deleteCustomer(customerId: string, options?: RequestOptions): Promise<InsurUpResult>;
1149
- /**
1150
- * Retrieves all email addresses associated with a customer.
1151
- */
1152
- getCustomerEmails(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerEmailsResultItem[]>>;
1153
- /**
1154
- * Adds a new email address to a customer's contact information.
1155
- */
1156
- addCustomerEmail(request: AddCustomerEmailRequest, options?: RequestOptions): Promise<InsurUpResult>;
1157
- /**
1158
- * Removes an email address from a customer's contact information.
1159
- */
1160
- removeCustomerEmail(request: RemoveCustomerEmailRequest, options?: RequestOptions): Promise<InsurUpResult>;
1161
- /**
1162
- * Changes the primary email address for a customer.
1163
- */
1164
- changePrimaryCustomerEmail(request: ChangePrimaryCustomerEmailRequest, options?: RequestOptions): Promise<InsurUpResult>;
1165
- /**
1166
- * Retrieves all phone numbers associated with a customer.
1167
- */
1168
- getCustomerPhoneNumbers(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerPhoneNumbersResultItem[]>>;
1169
- /**
1170
- * Adds a new phone number to a customer's contact information.
1171
- */
1172
- addCustomerPhoneNumber(request: AddCustomerPhoneNumberRequest, options?: RequestOptions): Promise<InsurUpResult>;
1173
- /**
1174
- * Removes a phone number from a customer's contact information.
1175
- */
1176
- removeCustomerPhoneNumber(request: RemoveCustomerPhoneNumberRequest, options?: RequestOptions): Promise<InsurUpResult>;
1177
- /**
1178
- * Changes the primary phone number for a customer.
1179
- */
1180
- changePrimaryCustomerPhoneNumber(request: ChangePrimaryCustomerPhoneNumberRequest, options?: RequestOptions): Promise<InsurUpResult>;
1181
- /**
1182
- * Assigns a specific agent representative to manage a customer's account.
1183
- */
1184
- setCustomerRepresentative(request: SetCustomerRepresentativeRequest, options?: RequestOptions): Promise<InsurUpResult>;
1185
- /**
1186
- * Assigns or changes the branch for a customer to organize customer segmentation and reporting.
1187
- *
1188
- * Müşteri segmentasyonu ve raporlama için müşterinin şubesini atar veya değiştirir.
1189
- *
1190
- * @param request Branch assignment request / Şube atama talebi
1191
- * @returns Operation result / İşlem sonucu
1192
- */
1193
- setCustomerBranch(request: SetCustomerBranchRequest, options?: RequestOptions): Promise<InsurUpResult>;
1194
- /**
1195
- * Creates a new customer address record using property number as the single source of truth.
1196
- *
1197
- * Tek doğruluk kaynağı olarak konut numarasını kullanarak yeni müşteri adres kaydı oluşturur.
1198
- *
1199
- * @param request Address creation request / Adres oluşturma talebi
1200
- * @returns Created address information / Oluşturulan adres bilgileri
1201
- */
1202
- createCustomerAddress(request: CreateCustomerAddressRequest, options?: RequestOptions): Promise<InsurUpResult<CreateCustomerAddressResult>>;
1203
- /**
1204
- * Updates the type classification of an existing customer address.
1205
- *
1206
- * Mevcut bir müşteri adresinin tür sınıflandırmasını günceller.
1207
- *
1208
- * @param request Address update request / Adres güncelleme talebi
1209
- * @returns Operation result / İşlem sonucu
1210
- */
1211
- updateCustomerAddress(request: UpdateCustomerAddressRequest, options?: RequestOptions): Promise<InsurUpResult>;
1212
- /**
1213
- * Retrieves detailed information about a specific customer address.
1214
- *
1215
- * Belirli bir müşteri adresi hakkında detaylı bilgileri getirir.
1216
- *
1217
- * @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
1218
- * @param addressId Unique identifier of the address / Adresin benzersiz tanımlayıcısı
1219
- * @returns Address details / Adres detayları
1220
- */
1221
- getCustomerAddressById(customerId: string, addressId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerAddressResult>>;
1222
- /**
1223
- * Retrieves all addresses owned by a specific customer for comprehensive address management.
1224
- *
1225
- * Kapsamlı adres yönetimi için belirli bir müşteriye ait tüm adresleri getirir.
1226
- *
1227
- * @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
1228
- * @returns Customer addresses / Müşteri adresleri
1229
- */
1230
- getCustomerAddresses(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerAddressResult[]>>;
1231
- /**
1232
- * Deletes a customer address from their address collection.
1233
- *
1234
- * Müşterinin adres koleksiyonundan bir adresi siler.
1235
- *
1236
- * @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
1237
- * @param addressId Unique identifier of the address to delete / Silinecek adresin benzersiz tanımlayıcısı
1238
- * @returns Operation result / İşlem sonucu
1239
- */
1240
- deleteCustomerAddress(customerId: string, addressId: string, options?: RequestOptions): Promise<InsurUpResult>;
1241
- /**
1242
- * Records customer consent for data processing or marketing communications in compliance with KVKK/ETK regulations.
1243
- *
1244
- * KVKK/ETK düzenlemelerine uygun olarak veri işleme veya pazarlama iletişimleri için müşteri iznini kaydeder.
1245
- *
1246
- * @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
1247
- * @param request Consent recording request / İzin kayıt talebi
1248
- * @returns Operation result / İşlem sonucu
1249
- */
1250
- giveCustomerConsent(customerId: string, request: GiveCustomerConsentRequest, options?: RequestOptions): Promise<InsurUpResult>;
1251
- /**
1252
- * Revokes a previously granted customer consent in accordance with customer data rights.
1253
- *
1254
- * Müşteri veri hakları uyarınca önceden verilmiş bir müşteri iznini geri çeker.
1255
- *
1256
- * @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
1257
- * @param request Consent revocation request / İzin geri çekme talebi
1258
- * @returns Operation result / İşlem sonucu
1259
- */
1260
- revokeCustomerConsent(customerId: string, request: RevokeCustomerConsentRequest, options?: RequestOptions): Promise<InsurUpResult>;
1261
- /**
1262
- * Retrieves both active consent states and complete consent history for a customer in a single optimized API call.
1263
- *
1264
- * Müşterinin hem aktif izin durumlarını hem de tam izin geçmişini tek bir optimize edilmiş API çağrısında getirir.
1265
- *
1266
- * @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
1267
- * @returns Active consent states and complete history / Aktif izin durumları ve tam geçmiş
1268
- */
1269
- getCustomerConsents(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerConsentsResult>>;
1270
- /**
1271
- * Retrieves comprehensive health information for a customer.
1272
- */
1273
- getCustomerHealthInfo(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerHealthInfoResult>>;
1274
- /**
1275
- * Updates customer health information.
1276
- */
1277
- updateCustomerHealthInfo(request: UpdateCustomerHealthInfoRequest, options?: RequestOptions): Promise<InsurUpResult>;
1278
- /**
1279
- * Initiates a new customer contact flow.
1280
- */
1281
- createCustomerContactFlow(request: CreateContactFlowRequest, options?: RequestOptions): Promise<InsurUpResult>;
1282
- /**
1283
- * Records a customer contact interaction.
1284
- */
1285
- createCustomerContact(request: CreateCustomerContactRequest, options?: RequestOptions): Promise<InsurUpResult>;
1286
- /**
1287
- * Completes and closes a customer contact flow.
1288
- */
1289
- endCustomerContactFlow(request: EndContactFlowRequest, options?: RequestOptions): Promise<InsurUpResult>;
1290
- /**
1291
- * Retrieves all contact flows for a customer.
1292
- */
1293
- getCustomerContactFlows(customerId: string, caseRef?: string | null, options?: RequestOptions): Promise<InsurUpResult<GetCustomerContactFlowsResultItem[]>>;
1294
- /**
1295
- * Retrieves all individual contact interactions for a customer.
1296
- */
1297
- getCustomerContacts(customerId: string, caseRef?: string | null, options?: RequestOptions): Promise<InsurUpResult<GetCustomerContactsResultItem[]>>;
1298
- /**
1299
- * Performs external customer data lookup.
1300
- */
1301
- externalLookupCustomer(request: ExternalLookupCustomerRequest, options?: RequestOptions): Promise<InsurUpResult<ExternalLookupCustomerResult>>;
1302
- /**
1303
- * Retrieves a paginated list of customers using GraphQL with type-safe field selection.
1304
- *
1305
- * GraphQL kullanarak tip güvenli alan seçimi ile sayfalanmış müşteri listesi getirir.
1306
- *
1307
- * @example
1308
- * // Get all fields
1309
- * const result = await client.customers.getCustomers({ first: 10 });
1310
- *
1311
- * @example
1312
- * // Type-safe field selection
1313
- * const result = await client.customers.getCustomers({
1314
- * select: ['id', 'name', 'type', 'primaryEmail'] as const,
1315
- * first: 10,
1316
- * filter: { type: { eq: CustomerType.INDIVIDUAL } }
1317
- * });
1318
- * // result.data.nodes[0].id - ✓ string
1319
- * // result.data.nodes[0].name - ✓ string | null
1320
- * // result.data.nodes[0].type - ✓ CustomerType
1321
- * // result.data.nodes[0].birthDate - ✗ TypeScript Error!
1322
- *
1323
- * @param requestOptions Query options including pagination, filters, search, and field selection
1324
- * @returns Paginated connection of customers with type-narrowed fields
1325
- */
1326
- getCustomers<const TFields extends CustomerFieldKey[]>(requestOptions?: GetCustomersOptions<TFields>, options?: RequestOptions): Promise<InsurUpGraphQLResult<CustomersConnection<TFields>>>;
1327
- }
1328
-
1329
- /**
1330
- * @fileoverview Vehicle Client Implementation
1331
- * @description Provides comprehensive vehicle management operations for handling customer vehicles, vehicle data lookups,
1332
- * brand and model queries, and vehicle-based insurance operations within the automotive insurance ecosystem.
1333
- */
1334
-
1335
- /**
1336
- * Vehicle Management Client
1337
- *
1338
- * Specialized client for managing customer vehicles and automotive industry data within the InsurUp platform.
1339
- * Handles vehicle lifecycle management, chassis number validations, external vehicle data lookups, brand and model
1340
- * queries, and vehicle-based insurance operations. Essential for agencies offering vehicle insurance products including
1341
- * Kasko (comprehensive vehicle insurance), TSS (traffic insurance), and IMM (voluntary financial liability) coverage,
1342
- * requiring accurate vehicle identification, validation, and market data integration for proper risk assessment and pricing.
1343
- *
1344
- * InsurUp platformu içinde müşteri araçları ve otomotiv sektörü verilerini yönetmek için özelleşmiş istemci.
1345
- * Araç yaşam döngüsü yönetimi, şasi numarası doğrulamaları, harici araç veri aramaları, marka ve model sorguları ve
1346
- * araç tabanlı sigorta operasyonlarını yönetir. Kasko (kasko araç sigortası), TSS (trafik sigortası) ve İMM (ihtiyari
1347
- * mali mesuliyet) teminatı dahil araç sigortası ürünleri sunan ve uygun risk değerlendirmesi ile fiyatlandırma için
1348
- * doğru araç tanımlaması, doğrulama ve pazar veri entegrasyonu gerektiren acenteler için olmazsa olmazdır.
1349
- */
1350
- declare class InsurUpVehicleClient {
1351
- private readonly http;
1352
- constructor(http: HttpTransport);
1353
- /**
1354
- * Adds a new vehicle to a customer's profile with complete vehicle information including chassis number and specifications.
1355
- *
1356
- * Şasi numarası ve özellikler dahil tam araç bilgileri ile müşterinin profiline yeni araç ekler.
1357
- *
1358
- * @param request Vehicle creation request with vehicle details / Araç detayları ile araç oluşturma talebi
1359
- * @returns Created vehicle information / Oluşturulan araç bilgileri
1360
- */
1361
- addCustomerVehicle(request: CreateCustomerVehicleRequest, options?: RequestOptions): Promise<InsurUpResult<CreateCustomerVehicleResult>>;
1362
- /**
1363
- * Updates existing customer vehicle information including modifications, ownership changes, or specification updates.
1364
- *
1365
- * Modifikasyonlar, sahiplik değişiklikleri veya özellik güncellemeleri dahil mevcut müşteri araç bilgilerini günceller.
1366
- *
1367
- * @param request Vehicle update request / Araç güncelleme talebi
1368
- * @returns Operation result / İşlem sonucu
1369
- */
1370
- updateCustomerVehicle(request: UpdateCustomerVehicleRequest, options?: RequestOptions): Promise<InsurUpResult>;
1371
- /**
1372
- * Retrieves detailed information about a specific customer vehicle including its insurance history and current status.
1373
- *
1374
- * Belirli bir müşteri aracı hakkında sigorta geçmişi ve mevcut durumu dahil detaylı bilgileri getirir.
1375
- *
1376
- * @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
1377
- * @param vehicleId Unique identifier of the vehicle / Aracın benzersiz tanımlayıcısı
1378
- * @returns Vehicle details / Araç detayları
1379
- */
1380
- getCustomerVehicle(customerId: string, vehicleId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerVehicleResult>>;
1381
- /**
1382
- * Retrieves all vehicles owned by a specific customer for comprehensive vehicle portfolio management.
1383
- *
1384
- * Kapsamlı araç portföy yönetimi için belirli bir müşterinin sahip olduğu tüm araçları getirir.
1385
- *
1386
- * @param request Customer vehicles query request / Müşteri araçları sorgu talebi
1387
- * @returns List of customer vehicles / Müşteri araçları listesi
1388
- */
1389
- getCustomerVehicles(request: GetCustomerVehiclesRequest, options?: RequestOptions): Promise<InsurUpResult<GetCustomerVehiclesResult[]>>;
1390
- /**
1391
- * Permanently removes a customer vehicle record from the system with proper data cleanup and insurance impact assessment.
1392
- *
1393
- * Uygun veri temizliği ve sigorta etki değerlendirmesi ile müşteri araç kaydını sistemden kalıcı olarak kaldırır.
1394
- *
1395
- * @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
1396
- * @param vehicleId Unique identifier of the vehicle / Aracın benzersiz tanımlayıcısı
1397
- * @returns Operation result / İşlem sonucu
1398
- */
1399
- deleteCustomerVehicle(customerId: string, vehicleId: string, options?: RequestOptions): Promise<InsurUpResult>;
1400
- /**
1401
- * Performs external vehicle data lookup using chassis number or license plate to retrieve official vehicle information.
1402
- *
1403
- * Resmi araç bilgilerini almak için şasi numarası veya plaka kullanarak harici araç veri araması yapar.
1404
- *
1405
- * @param request External vehicle lookup request / Harici araç arama talebi
1406
- * @returns External vehicle data / Harici araç verileri
1407
- */
1408
- externalLookupVehicle(request: ExternalLookupVehicleRequest, options?: RequestOptions): Promise<InsurUpResult<ExternalLookupVehicleResult>>;
1409
- /**
1410
- * Retrieves all available vehicle brands for vehicle selection and registration purposes.
1411
- *
1412
- * Araç seçimi ve kayıt amaçları için mevcut tüm araç markalarını getirir.
1413
- *
1414
- * @returns List of vehicle brands / Araç markaları listesi
1415
- */
1416
- queryVehicleBrands(options?: RequestOptions): Promise<InsurUpResult<InsuranceParameter[]>>;
1417
- /**
1418
- * Retrieves all vehicle models for a specific brand including different model years and specifications.
1419
- *
1420
- * Farklı model yılları ve özellikler dahil belirli bir marka için tüm araç modellerini getirir.
1421
- *
1422
- * @param request Vehicle model query request / Araç modeli sorgu talebi
1423
- * @returns List of vehicle models / Araç modelleri listesi
1424
- */
1425
- queryVehicleModels(request: QueryVehicleModelTypesRequest, options?: RequestOptions): Promise<InsurUpResult<InsuranceParameter[]>>;
1426
- /**
1427
- * Queries vehicle information using a specific brand code to retrieve detailed brand and model specifications.
1428
- *
1429
- * Detaylı marka ve model özelliklerini almak için belirli bir marka kodu kullanarak araç bilgilerini sorgular.
1430
- *
1431
- * @param brandCode Vehicle brand code for query / Sorgu için araç marka kodu
1432
- * @returns Vehicle brand information / Araç marka bilgileri
1433
- */
1434
- queryVehicleByBrandCode(brandCode: string, options?: RequestOptions): Promise<InsurUpResult<QueryVehicleByBrandCodeResult>>;
1435
- }
1436
-
1437
- /**
1438
- * Property Management Client
1439
- *
1440
- * Provides comprehensive property management operations for handling customer properties, Turkish address hierarchy queries,
1441
- * DASK earthquake insurance lookups, and property-based insurance operations within the real estate insurance ecosystem.
1442
- *
1443
- * Gayrimenkul sigorta ekosistemi içinde müşteri mülklerini yönetme, Türk adres hiyerarşisi sorguları, DASK deprem
1444
- * sigortası aramaları ve mülk tabanlı sigorta operasyonları için kapsamlı mülk yönetimi işlemlerini sağlar.
1445
- */
1446
-
1447
- /**
1448
- * Property Management Client
1449
- *
1450
- * Specialized client for managing customer properties and Turkish address system integration within the InsurUp platform.
1451
- * Handles the complete Turkish administrative address hierarchy (City→District→Town→Neighborhood→Street→Building→Apartment),
1452
- * customer property lifecycle management, DASK earthquake insurance policy lookups, and property-based insurance operations.
1453
- * Essential for agencies offering property insurance products including home insurance (Konut), earthquake insurance (DASK),
1454
- * and commercial property coverage, requiring precise address validation and property identification within Turkey's
1455
- * administrative structure.
1456
- *
1457
- * InsurUp platformu içinde müşteri mülkleri ve Türk adres sistemi entegrasyonunu yönetmek için özelleşmiş istemci.
1458
- * Tam Türk idari adres hiyerarşisini (Şehir→İlçe→Kasaba→Mahalle→Sokak→Bina→Daire), müşteri mülk yaşam döngüsü yönetimini,
1459
- * DASK deprem sigortası poliçe aramalarını ve mülk tabanlı sigorta operasyonlarını yönetir. Ev sigortası (Konut), deprem
1460
- * sigortası (DASK) ve ticari mülk teminatı dahil mülk sigortası ürünleri sunan ve Türkiye'nin idari yapısı içinde hassas
1461
- * adres doğrulaması ve mülk tanımlaması gerektiren acenteler için olmazsa olmazdır.
1462
- */
1463
- declare class InsurUpPropertyClient {
1464
- private readonly http;
1465
- constructor(http: HttpTransport);
1466
- /**
1467
- * Retrieves all cities (provinces) in Turkey for address selection and property location identification.
1468
- *
1469
- * Adres seçimi ve mülk konum tanımlaması için Türkiye'deki tüm şehirleri (illeri) getirir.
1470
- *
1471
- * @returns List of Turkish cities / Türk şehirleri listesi
1472
- */
1473
- queryCities(options?: RequestOptions): Promise<InsurUpResult<InsuranceParameter[]>>;
1474
- /**
1475
- * Retrieves all districts within a specific city following the Turkish administrative hierarchy.
1476
- *
1477
- * Türk idari hiyerarşisini takip ederek belirli bir şehir içindeki tüm ilçeleri getirir.
1478
- *
1479
- * @param request District query request with city selection / Şehir seçimi ile ilçe sorgu talebi
1480
- * @returns List of districts in the selected city / Seçilen şehirdeki ilçeler listesi
1481
- */
1482
- queryDistricts(request: QueryDistrictsRequest, options?: RequestOptions): Promise<InsurUpResult<InsuranceParameter[]>>;
1483
- /**
1484
- * Retrieves all towns within a specific district for precise administrative location identification.
1485
- *
1486
- * Hassas idari konum tanımlaması için belirli bir ilçe içindeki tüm kasabaları getirir.
1487
- *
1488
- * @param request Town query request with district selection / İlçe seçimi ile kasaba sorgu talebi
1489
- * @returns List of towns in the selected district / Seçilen ilçedeki kasabalar listesi
1490
- */
1491
- queryTowns(request: QueryTownsRequest, options?: RequestOptions): Promise<InsurUpResult<InsuranceParameter[]>>;
1492
- /**
1493
- * Retrieves all neighborhoods within a specific administrative area for detailed address specification.
1494
- *
1495
- * Detaylı adres belirtimi için belirli bir idari alan içindeki tüm mahalleleri getirir.
1496
- *
1497
- * @param request Neighborhood query request / Mahalle sorgu talebi
1498
- * @returns List of neighborhoods / Mahalleler listesi
1499
- */
1500
- queryNeighborhoods(request: QueryNeighbourhoodsRequest, options?: RequestOptions): Promise<InsurUpResult<InsuranceParameter[]>>;
1501
- /**
1502
- * Retrieves all streets within a specific neighborhood for complete address formation.
1503
- *
1504
- * Tam adres oluşturma için belirli bir mahalle içindeki tüm sokakları getirir.
1505
- *
1506
- * @param request Street query request / Sokak sorgu talebi
1507
- * @returns List of streets / Sokaklar listesi
1508
- */
1509
- queryStreets(request: QueryStreetsRequest, options?: RequestOptions): Promise<InsurUpResult<InsuranceParameter[]>>;
1510
- /**
1511
- * Retrieves all buildings on a specific street for precise property identification and addressing.
1512
- *
1513
- * Hassas mülk tanımlaması ve adresleme için belirli bir sokaktaki tüm binaları getirir.
1514
- *
1515
- * @param request Building query request / Bina sorgu talebi
1516
- * @returns List of buildings / Binalar listesi
1517
- */
1518
- queryBuildings(request: QueryBuildingsRequest, options?: RequestOptions): Promise<InsurUpResult<InsuranceParameter[]>>;
1519
- /**
1520
- * Retrieves all apartments within a specific building for individual property unit identification.
1521
- *
1522
- * Bireysel mülk birimi tanımlaması için belirli bir bina içindeki tüm daireleri getirir.
1523
- *
1524
- * @param request Apartment query request / Daire sorgu talebi
1525
- * @returns List of apartments / Daireler listesi
1526
- */
1527
- queryApartments(request: QueryApartmentsRequest, options?: RequestOptions): Promise<InsurUpResult<InsuranceParameter[]>>;
1528
- /**
1529
- * Creates a new customer property record with complete address information and property characteristics for insurance purposes.
1530
- *
1531
- * Sigorta amaçları için tam adres bilgileri ve mülk özellikleri ile yeni müşteri mülk kaydı oluşturur.
1532
- *
1533
- * @param request Property creation request with details / Detaylar ile mülk oluşturma talebi
1534
- * @returns Created property information / Oluşturulan mülk bilgileri
1535
- */
1536
- createCustomerProperty(request: CreateCustomerPropertyRequest, options?: RequestOptions): Promise<InsurUpResult<CreateCustomerPropertyResult>>;
1537
- /**
1538
- * Updates existing customer property information including address changes, structural modifications, or usage updates.
1539
- *
1540
- * Adres değişiklikleri, yapısal değişiklikler veya kullanım güncellemeleri dahil mevcut müşteri mülk bilgilerini günceller.
1541
- *
1542
- * @param request Property update request / Mülk güncelleme talebi
1543
- * @returns Operation result / İşlem sonucu
1544
- */
1545
- updateCustomerProperty(request: UpdateCustomerPropertyRequest, options?: RequestOptions): Promise<InsurUpResult>;
1546
- /**
1547
- * Retrieves detailed information about a specific customer property including its insurance history and characteristics.
1548
- *
1549
- * Belirli bir müşteri mülkü hakkında sigorta geçmişi ve özellikleri dahil detaylı bilgileri getirir.
1550
- *
1551
- * @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
1552
- * @param propertyId Unique identifier of the property / Mülkün benzersiz tanımlayıcısı
1553
- * @returns Property details / Mülk detayları
1554
- */
1555
- getCustomerPropertyById(customerId: string, propertyId: string, options?: RequestOptions): Promise<InsurUpResult<GetCustomerPropertyByIdResult>>;
1556
- /**
1557
- * Retrieves all properties owned by a specific customer for comprehensive property portfolio management.
1558
- *
1559
- * Kapsamlı mülk portföy yönetimi için belirli bir müşterinin sahip olduğu tüm mülkleri getirir.
1560
- *
1561
- * @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
1562
- * @returns List of customer properties / Müşteri mülkleri listesi
1563
- */
1564
- getCustomerProperties(customerId: string, options?: RequestOptions): Promise<InsurUpResult<GetAllCustomerPropertiesResult[]>>;
1565
- /**
1566
- * Permanently removes a customer property record from the system with proper data cleanup and insurance impact assessment.
1567
- *
1568
- * Uygun veri temizliği ve sigorta etki değerlendirmesi ile müşteri mülk kaydını sistemden kalıcı olarak kaldırır.
1569
- *
1570
- * @param customerId Unique identifier of the customer / Müşterinin benzersiz tanımlayıcısı
1571
- * @param propertyId Unique identifier of the property / Mülkün benzersiz tanımlayıcısı
1572
- * @returns Operation result / İşlem sonucu
1573
- */
1574
- deleteCustomerProperty(customerId: string, propertyId: string, options?: RequestOptions): Promise<InsurUpResult>;
1575
- /**
1576
- * Retrieves property address information using the official Turkish property registration number for verification purposes.
1577
- *
1578
- * Doğrulama amaçları için resmi Türk mülk kayıt numarasını kullanarak mülk adres bilgilerini getirir.
1579
- *
1580
- * @param propertyNumber Official Turkish property registration number / Resmi Türk mülk kayıt numarası
1581
- * @returns Property address information / Mülk adres bilgileri
1582
- */
1583
- getPropertyAddressByPropertyNumber(propertyNumber: number, options?: RequestOptions): Promise<InsurUpResult<PropertyAddress>>;
1584
- /**
1585
- * Queries property information using an existing DASK earthquake insurance policy number for cross-reference and continuity.
1586
- *
1587
- * Çapraz referans ve süreklilik için mevcut DASK deprem sigortası poliçe numarasını kullanarak mülk bilgilerini sorgular.
1588
- *
1589
- * @param daskPolicyNumber DASK earthquake insurance policy number / DASK deprem sigortası poliçe numarası
1590
- * @returns Property information from DASK records / DASK kayıtlarından mülk bilgileri
1591
- */
1592
- queryPropertyByDaskOldPolicy(daskPolicyNumber: number, options?: RequestOptions): Promise<InsurUpResult<QueryPropertyByDaskOldPolicyResult>>;
1593
- }
1594
-
1595
- /**
1596
- * @fileoverview Policy Management Client - Comprehensive policy operations
1597
- * @description Provides comprehensive policy management operations for handling active insurance policies,
1598
- * document generation, customer communications, representative assignments, and policy transfer processes
1599
- */
1600
-
1601
- /**
1602
- * Policy Management Client / Poliçe Yönetimi İstemcisi
1603
- *
1604
- * Central client for managing active insurance policies throughout their lifecycle from issuance to expiration.
1605
- * Handles policy documentation, customer communication, representative management, and complex policy transfer operations
1606
- * including bulk transfers and file-based transfers. Essential for agencies that need to maintain comprehensive policy
1607
- * administration, ensure proper documentation delivery to customers, manage policy ownership changes, and coordinate
1608
- * policy transfers between different systems or agents while maintaining audit trails and regulatory compliance.
1609
- *
1610
- * Düzenlenmesinden sona ermesine kadar aktif sigorta poliçelerini yaşam döngüleri boyunca yönetmek için merkezi istemci.
1611
- * Poliçe dokümantasyonu, müşteri iletişimi, temsilci yönetimi ve toplu transferler ile dosya tabanlı transferler dahil
1612
- * karmaşık poliçe transfer operasyonlarını yönetir. Kapsamlı poliçe yönetimi sürdürmesi, müşterilere uygun dokümantasyon
1613
- * teslimatını sağlaması, poliçe sahiplik değişikliklerini yönetmesi ve denetim izleri ile düzenleyici uyumu korurken
1614
- * farklı sistemler veya acenteler arasında poliçe transferlerini koordine etmesi gereken acenteler için olmazsa olmazdır.
1615
- */
1616
- declare class InsurUpPolicyClient {
1617
- private readonly http;
1618
- private readonly graphql?;
1619
- constructor(http: HttpTransport, graphql?: GraphQLTransport | undefined);
1620
- /**
1621
- * Retrieves comprehensive details of a specific policy including coverage information, premium details, and current status.
1622
- *
1623
- * Teminat bilgileri, prim detayları ve mevcut durum dahil belirli bir poliçenin kapsamlı detaylarını getirir.
1624
- *
1625
- * @param request - Policy detail request with policy ID
1626
- * @returns Detailed policy information
1627
- */
1628
- getPolicyDetail(request: GetPolicyDetailRequest, options?: RequestOptions): Promise<InsurUpResult<GetPolicyDetailResult>>;
1629
- /**
1630
- * Fetches the official policy document from the insurance company's systems for customer delivery or records.
1631
- *
1632
- * Müşteri teslimatı veya kayıtlar için sigorta şirketinin sistemlerinden resmi poliçe belgesini getirir.
1633
- *
1634
- * @param request - Policy document fetch request with policy ID
1635
- * @returns Policy document data
1636
- */
1637
- fetchPolicyDocument(request: FetchPolicyDocumentRequest, options?: RequestOptions): Promise<InsurUpResult<FetchPolicyDocumentResult>>;
1638
- /**
1639
- * Sends the policy document directly to the customer via email or other communication channels for their records.
1640
- *
1641
- * Poliçe belgesini müşterinin kayıtları için e-posta veya diğer iletişim kanalları aracılığıyla doğrudan müşteriye gönderir.
1642
- *
1643
- * @param request - Document delivery request
1644
- * @returns Operation result
1645
- */
1646
- sendPolicyDocumentToCustomer(request: SendPolicyDocumentRequest, options?: RequestOptions): Promise<InsurUpResult>;
1647
- /**
1648
- * Assigns or updates the representative responsible for managing a specific policy and customer relationship.
1649
- *
1650
- * Belirli bir poliçeyi ve müşteri ilişkisini yönetmekten sorumlu temsilciyi atar veya günceller.
1651
- *
1652
- * @param request - Representative assignment request
1653
- * @returns Operation result
1654
- */
1655
- setPolicyRepresentative(request: SetPolicyRepresentativeRequest, options?: RequestOptions): Promise<InsurUpResult>;
1656
- /**
1657
- * Assigns or changes the branch for a policy to organize policy segmentation and reporting.
1658
- *
1659
- * Poliçe segmentasyonu ve raporlama için poliçenin şubesini atar veya değiştirir.
1660
- *
1661
- * @param request Branch assignment request / Şube atama talebi
1662
- * @returns Operation result / İşlem sonucu
1663
- */
1664
- setPolicyBranch(request: SetPolicyBranchRequest, options?: RequestOptions): Promise<InsurUpResult>;
1665
- /**
1666
- * Creates a new manual policy through the agent panel without insurance services integration.
1667
- *
1668
- * Sigorta hizmetleri entegrasyonu olmadan acente paneli üzerinden yeni manuel poliçe oluşturur.
1669
- *
1670
- * @param request Manual policy creation request / Manuel poliçe oluşturma talebi
1671
- * @returns Created policy identifier / Oluşturulan poliçe tanımlayıcısı
1672
- */
1673
- createManualPolicy(request: CreateManualPolicyRequest, options?: RequestOptions): Promise<InsurUpResult<CreateManualPolicyResult>>;
1674
- /**
1675
- * Updates an existing manual policy through the agent panel and creates a new policy version for tracking changes.
1676
- *
1677
- * Acente paneli üzerinden mevcut manuel poliçeyi günceller ve değişiklikleri takip etmek için yeni poliçe versiyonu oluşturur.
1678
- *
1679
- * @param request Manual policy update request / Manuel poliçe güncelleme talebi
1680
- * @returns Operation result / İşlem sonucu
1681
- */
1682
- updateManualPolicy(request: UpdateManualPolicyRequest, options?: RequestOptions): Promise<InsurUpResult>;
1683
- /**
1684
- * Retrieves comprehensive policy count and gross premium analytics with flexible filtering and grouping options.
1685
- * Provides time series data, summary KPIs, and optional grouping by product branch or insurance company.
1686
- *
1687
- * Esnek filtreleme ve gruplama seçenekleri ile kapsamlı poliçe adedi ve brüt prim analitiği getirir.
1688
- * Zaman serisi verileri, özet KPI'lar ve isteğe bağlı ürün branşı veya sigorta şirketine göre gruplama sağlar.
1689
- *
1690
- * @param request Analytics request with filters and grouping options / Filtreler ve gruplama seçenekleri ile analitik talebi
1691
- * @returns Comprehensive analytics data including KPIs, time series, and grouped data / KPI'lar, zaman serisi ve gruplanmış veriler dahil kapsamlı analitik verileri
1692
- */
1693
- getPolicyCountAndPremiumAnalytics(request: GetPolicyCountAndPremiumAnalyticsRequest, options?: RequestOptions): Promise<InsurUpResult<GetPolicyCountAndPremiumAnalyticsResult>>;
1694
- /**
1695
- * Retrieves stacked daily renewal analytics for policies with RenewalNumber greater than zero.
1696
- * Provides branch segmented counts together with total and peak KPIs.
1697
- *
1698
- * RenewalNumber değeri sıfırdan büyük olan poliçeler için günlük yenileme analitiği sağlar.
1699
- * Branş bazlı yığılmış adetler ile toplam ve pik KPI değerlerini döner.
1700
- *
1701
- * @param request Renewal analytics request with filtering options / Filtre seçenekleri ile yenileme analitiği isteği
1702
- * @returns Renewal analytics response / Yenileme analitiği yanıtı
1703
- */
1704
- getPolicyRenewalAnalytics(request: GetPolicyRenewalAnalyticsRequest, options?: RequestOptions): Promise<InsurUpResult<GetPolicyRenewalAnalyticsResult>>;
1705
- /**
1706
- * Retrieves policy distribution by branch analytics data.
1707
- * Provides aggregated counts, gross premiums, and percentage shares grouped by product branch.
1708
- *
1709
- * Branş bazında poliçe dağılımı analitik verilerini getirir.
1710
- * Ürün branşına göre gruplanmış toplam adetler, brüt primler ve yüzde payları sağlar.
1711
- *
1712
- * @param request Distribution analytics request with filtering options / Filtre seçenekleri ile dağılım analitiği isteği
1713
- * @returns Distribution analytics response / Dağılım analitiği yanıtı
1714
- */
1715
- getPolicyDistributionByBranch(request: GetPolicyDistributionByBranchRequest, options?: RequestOptions): Promise<InsurUpResult<GetPolicyDistributionByBranchResult>>;
1716
- /**
1717
- * Retrieves representative earnings analytics data.
1718
- * Provides earnings breakdown grouped by representative for performance tracking.
1719
- *
1720
- * Temsilci kazanç analitik verilerini getirir.
1721
- * Performans takibi için temsilciye göre gruplanmış kazanç dökümü sağlar.
1722
- *
1723
- * @param request Representative earnings analytics request with filtering options / Filtre seçenekleri ile temsilci kazanç analitiği isteği
1724
- * @returns Representative earnings analytics response / Temsilci kazanç analitiği yanıtı
1725
- */
1726
- getRepresentativeEarningsAnalytics(request: GetRepresentativeEarningsAnalyticsRequest, options?: RequestOptions): Promise<InsurUpResult<GetRepresentativeEarningsAnalyticsResult>>;
1727
- /**
1728
- * Retrieves detailed information about a specific policy transfer process including status and progress tracking.
1729
- *
1730
- * Durum ve ilerleme takibi dahil belirli bir poliçe transfer süreciyle ilgili detaylı bilgileri getirir.
1731
- *
1732
- * @param request - Policy transfer detail request
1733
- * @returns Policy transfer details
1734
- */
1735
- getPolicyTransferDetail(request: GetPolicyTransferDetailRequest, options?: RequestOptions): Promise<InsurUpResult<GetPolicyTransferDetailResult>>;
1736
- /**
1737
- * Retrieves specific trigger details for a policy transfer process to understand execution conditions and timing.
1738
- *
1739
- * Yürütme koşulları ve zamanlamasını anlamak için poliçe transfer sürecinin belirli tetikleyici detaylarını getirir.
1740
- *
1741
- * @param request - Policy transfer trigger detail request
1742
- * @returns Transfer trigger details
1743
- */
1744
- getPolicyTransferTriggerDetail(request: GetPolicyTransferTriggerDetailRequest, options?: RequestOptions): Promise<InsurUpResult<GetPolicyTransferTriggerDetailResult>>;
1745
- /**
1746
- * Creates a new policy transfer request to move policies between agents, agencies, or systems with proper validation.
1747
- *
1748
- * Uygun doğrulama ile poliçeleri acenteler, acenteler veya sistemler arasında taşımak için yeni poliçe transfer talebi oluşturur.
1749
- *
1750
- * @param request - Policy transfer creation request
1751
- * @returns Created transfer identifier
1752
- */
1753
- createPolicyTransfer(request: CreatePolicyTransferRequest, options?: RequestOptions): Promise<InsurUpResult<string>>;
1754
- /**
1755
- * Executes a prepared policy transfer, initiating the actual movement of policies according to the transfer configuration.
1756
- *
1757
- * Hazırlanmış poliçe transferini yürütür ve transfer yapılandırmasına göre poliçelerin gerçek hareketini başlatır.
1758
- *
1759
- * @param request - Policy transfer trigger request
1760
- * @returns Operation result
1761
- */
1762
- triggerPolicyTransfer(request: TriggerPolicyTransferRequest, options?: RequestOptions): Promise<InsurUpResult>;
1763
- /**
1764
- * Creates a file-based policy transfer by uploading a file containing policy information for bulk transfer operations.
1765
- *
1766
- * Toplu transfer işlemleri için poliçe bilgilerini içeren dosya yükleyerek dosya tabanlı poliçe transferi oluşturur.
1767
- *
1768
- * @param request - File-based transfer request
1769
- * @param file - File containing policy data
1770
- * @param fileName - Name of the uploaded file
1771
- * @returns Operation result
1772
- */
1773
- createFilePolicyTransfer(request: CreateFilePolicyTransferRequest, file: File, fileName: string, options?: RequestOptions): Promise<InsurUpResult>;
1774
- /**
1775
- * Retrieves detailed information about a file-based policy transfer including processing status and results.
1776
- *
1777
- * İşleme durumu ve sonuçları dahil dosya tabanlı poliçe transferi hakkında detaylı bilgileri getirir.
1778
- *
1779
- * @param request - File policy transfer detail request
1780
- * @returns File transfer details
1781
- */
1782
- getFilePolicyTransferDetail(request: GetFilePolicyTransferDetailRequest, options?: RequestOptions): Promise<InsurUpResult<GetFilePolicyTransferDetailResult>>;
1783
- /**
1784
- * Queries policies using GraphQL with advanced filtering, searching, sorting, and field selection.
1785
- * Supports cursor-based pagination and type-safe field selection.
1786
- *
1787
- * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak poliçeleri sorgular.
1788
- * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
1789
- *
1790
- * @example
1791
- * // Basic query with all fields
1792
- * const result = await client.policies.getPolicies({ first: 10 });
1793
- *
1794
- * @example
1795
- * // Type-safe field selection
1796
- * const result = await client.policies.getPolicies({
1797
- * select: ['id', 'productBranch', 'grossPremium', 'state'] as const,
1798
- * first: 10,
1799
- * filter: { state: { eq: PolicyState.Active } }
1800
- * });
1801
- *
1802
- * @param requestOptions Query options including pagination, filters, search, and field selection
1803
- * @returns Paginated connection of policies with type-narrowed fields
1804
- */
1805
- getPolicies<const TFields extends PolicyFieldKey[]>(requestOptions?: GetPoliciesOptions<TFields>, options?: RequestOptions): Promise<InsurUpGraphQLResult<PoliciesConnection<TFields>>>;
1806
- /**
1807
- * Queries policy transfers using GraphQL with advanced filtering, searching, sorting, and field selection.
1808
- * Supports cursor-based pagination and type-safe field selection.
1809
- *
1810
- * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak poliçe transferlerini sorgular.
1811
- * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
1812
- *
1813
- * @example
1814
- * // Basic query with all fields
1815
- * const result = await client.policies.getPolicyTransfers({ first: 10 });
1816
- *
1817
- * @param requestOptions Query options including pagination, filters, search, and field selection
1818
- * @returns Paginated connection of policy transfers with type-narrowed fields
1819
- */
1820
- getPolicyTransfers<const TFields extends PolicyTransferFieldKey[]>(requestOptions?: GetPolicyTransfersOptions<TFields>, options?: RequestOptions): Promise<InsurUpGraphQLResult<PolicyTransfersConnection<TFields>>>;
1821
- /**
1822
- * Queries file policy transfers using GraphQL with advanced filtering, searching, sorting, and field selection.
1823
- * Supports cursor-based pagination and type-safe field selection.
1824
- *
1825
- * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak dosya bazlı poliçe transferlerini sorgular.
1826
- * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
1827
- *
1828
- * @example
1829
- * // Basic query with all fields
1830
- * const result = await client.policies.getFilePolicyTransfers({ first: 10 });
1831
- *
1832
- * @param requestOptions Query options including pagination, filters, search, and field selection
1833
- * @returns Paginated connection of file policy transfers with type-narrowed fields
1834
- */
1835
- getFilePolicyTransfers<const TFields extends FilePolicyTransferFieldKey[]>(requestOptions?: GetFilePolicyTransfersOptions<TFields>, options?: RequestOptions): Promise<InsurUpGraphQLResult<FilePolicyTransfersConnection<TFields>>>;
1836
- }
1837
-
1838
- /**
1839
- * @fileoverview Case Management Client - Direct port from DefaultInsurUpClient.Case.cs
1840
- * @description TypeScript client for case management operations
1841
- */
1842
-
1843
- /**
1844
- * Case Management Client
1845
- *
1846
- * Central client for managing all types of customer cases and requests within the InsurUp platform. Handles various
1847
- * case types including policy cancellations, customer complaints, cross-sale opportunities, endorsement requests, and
1848
- * new sale opportunities. Provides comprehensive workflow management including case representative assignment, status tracking, activity
1849
- * logging, and representative management. Essential for agencies that need to maintain organized customer service operations
1850
- * and ensure proper follow-up on all customer interactions and business opportunities.
1851
- *
1852
- * InsurUp platformu içinde her türlü müşteri talebi ve isteğini yönetmek için merkezi istemci. Poliçe iptalleri,
1853
- * müşteri şikayetleri, çapraz satış fırsatları, zeyilname talepleri ve yeni satış fırsatları dahil çeşitli talep türlerini
1854
- * yönetir. Talep atama, durum takibi, aktivite kaydı ve temsilci yönetimi dahil kapsamlı iş akışı yönetimi sağlar.
1855
- * Düzenli müşteri hizmet operasyonlarını sürdürmesi ve tüm müşteri etkileşimleri ile iş fırsatlarında uygun takibi
1856
- * sağlaması gereken acenteler için olmazsa olmazdır.
1857
- */
1858
- declare class InsurUpCaseClient {
1859
- private readonly http;
1860
- private readonly graphql?;
1861
- constructor(http: HttpTransport, graphql?: GraphQLTransport | undefined);
1862
- /**
1863
- * Assigns a case representative to handle a specific customer case, ensuring proper ownership and accountability.
1864
- *
1865
- * Belirli bir müşteri talebini ele almak için talep temsilcisi atar ve uygun sahiplik ile hesap verebilirliği sağlar.
1866
- *
1867
- * @param request Case representative assignment request with representative details / Temsilci detayları ile talep atama talebi
1868
- * @returns Operation result / İşlem sonucu
1869
- */
1870
- assignCaseRepresentative(request: AssignCaseRepresentativeRequest, options?: RequestOptions): Promise<InsurUpResult>;
1871
- /**
1872
- * Changes the communication channel for a case to redirect it to appropriate department or platform.
1873
- *
1874
- * Bir talebin iletişim kanalını değiştirerek uygun departman veya platforma yönlendirir.
1875
- *
1876
- * @param request Channel change request / Kanal değişiklik talebi
1877
- * @returns Operation result / İşlem sonucu
1878
- */
1879
- changeCaseChannel(request: ChangeCaseChannelRequest, options?: RequestOptions): Promise<InsurUpResult>;
1880
- /**
1881
- * Updates the status of a case to reflect its current progress in the resolution workflow.
1882
- *
1883
- * Çözüm iş akışındaki mevcut ilerlemesini yansıtmak için talebin durumunu günceller.
1884
- *
1885
- * @param request Status change request / Durum değişiklik talebi
1886
- * @returns Operation result / İşlem sonucu
1887
- */
1888
- changeCaseState(request: ChangeCaseStateRequest, options?: RequestOptions): Promise<InsurUpResult>;
1889
- /**
1890
- * Creates a policy cancellation case when a customer requests to terminate their insurance coverage.
1891
- *
1892
- * Müşteri sigorta teminatını sonlandırma talebinde bulunduğunda poliçe iptal talebi oluşturur.
1893
- *
1894
- * @param request Cancellation case creation request / İptal talebi oluşturma talebi
1895
- * @returns Created case identifier / Oluşturulan talep tanımlayıcısı
1896
- */
1897
- createCancelCase(request: CreateCancelCaseRequest, options?: RequestOptions): Promise<InsurUpResult<string>>;
1898
- /**
1899
- * Creates a complaint case to handle customer dissatisfaction or service issues requiring resolution.
1900
- *
1901
- * Müşteri memnuniyetsizliği veya çözüm gerektiren hizmet sorunlarını ele almak için şikayet talebi oluşturur.
1902
- *
1903
- * @param request Complaint case creation request / Şikayet talebi oluşturma talebi
1904
- * @returns Created case identifier / Oluşturulan talep tanımlayıcısı
1905
- */
1906
- createComplaintCase(request: CreateComplaintCaseRequest, options?: RequestOptions): Promise<InsurUpResult<string>>;
1907
- /**
1908
- * Creates a cross-sale opportunity case to track potential additional insurance products for existing customers.
1909
- *
1910
- * Mevcut müşteriler için potansiyel ek sigorta ürünlerini takip etmek üzere çapraz satış fırsatı talebi oluşturur.
1911
- *
1912
- * @param request Cross-sale opportunity creation request / Çapraz satış fırsatı oluşturma talebi
1913
- * @returns Created case identifier / Oluşturulan talep tanımlayıcısı
1914
- */
1915
- createCrossSaleOpportunityCase(request: CreateCrossSaleOpportunityCaseRequest, options?: RequestOptions): Promise<InsurUpResult<string>>;
1916
- /**
1917
- * Creates an endorsement case for policy modifications or updates requested by the customer.
1918
- *
1919
- * Müşteri tarafından talep edilen poliçe değişiklikleri veya güncellemeler için zeyilname talebi oluşturur.
1920
- *
1921
- * @param request Endorsement case creation request / Zeyilname talebi oluşturma talebi
1922
- * @returns Created case identifier / Oluşturulan talep tanımlayıcısı
1923
- */
1924
- createEndorsementCase(request: CreateEndorsementCaseRequest, options?: RequestOptions): Promise<InsurUpResult<string>>;
1925
- /**
1926
- * Creates a new sale opportunity case to track potential insurance sales to prospective customers.
1927
- *
1928
- * Potansiyel müşterilere olası sigorta satışlarını takip etmek için yeni satış fırsatı talebi oluşturur.
1929
- *
1930
- * @param request New sale opportunity creation request / Yeni satış fırsatı oluşturma talebi
1931
- * @returns Created case identifier / Oluşturulan talep tanımlayıcısı
1932
- */
1933
- createNewSaleOpportunityCase(request: CreateNewSaleOpportunityCaseRequest, options?: RequestOptions): Promise<InsurUpResult<string>>;
1934
- /**
1935
- * Retrieves all policies associated with a specific case for comprehensive case context and decision making.
1936
- *
1937
- * Kapsamlı talep bağlamı ve karar verme için belirli bir talep ile ilişkili tüm poliçeleri getirir.
1938
- *
1939
- * @param ref Case reference identifier / Talep referans tanımlayıcısı
1940
- * @returns Associated policies / İlişkili poliçeler
1941
- */
1942
- getCasePolicies(ref: string, options?: RequestOptions): Promise<InsurUpResult<CasePolicyResult[]>>;
1943
- /**
1944
- * Retrieves the complete activity history for a case showing all actions, updates, and communications.
1945
- *
1946
- * Tüm eylemleri, güncellemeleri ve iletişimleri gösteren talep için tam aktivite geçmişini getirir.
1947
- *
1948
- * @param ref Case reference identifier / Talep referans tanımlayıcısı
1949
- * @returns Case activity history / Talep aktivite geçmişi
1950
- */
1951
- getCaseActivities(ref: string, options?: RequestOptions): Promise<InsurUpResult<CaseActivityResult[]>>;
1952
- /**
1953
- * Retrieves detailed information about a specific case including status, assigned representative, and progress.
1954
- *
1955
- * Belirli bir talep hakkında durum, atanan temsilci ve ilerleme dahil detaylı bilgileri getirir.
1956
- *
1957
- * @param ref Case reference identifier / Talep referans tanımlayıcısı
1958
- * @returns Detailed case information / Detaylı talep bilgileri
1959
- */
1960
- getCaseByRef(ref: string, options?: RequestOptions): Promise<InsurUpResult<GetCaseByRefResult>>;
1961
- /**
1962
- * Retrieves all proposals associated with a specific case to understand related insurance quotations.
1963
- *
1964
- * İlgili sigorta tekliflerini anlamak için belirli bir talep ile ilişkili tüm teklifleri getirir.
1965
- *
1966
- * @param ref Case reference identifier / Talep referans tanımlayıcısı
1967
- * @returns Associated proposals / İlişkili teklifler
1968
- */
1969
- getCaseProposals(ref: string, options?: RequestOptions): Promise<InsurUpResult<CaseProposalResult[]>>;
1970
- /**
1971
- * Adds a note or comment to a case for documentation, communication, or progress tracking purposes.
1972
- *
1973
- * Dokümantasyon, iletişim veya ilerleme takibi amaçları için talepe not veya yorum ekler.
1974
- *
1975
- * @param request Note addition request / Not ekleme talebi
1976
- * @returns Operation result / İşlem sonucu
1977
- */
1978
- addNoteToCase(request: AddNoteToCaseRequest, options?: RequestOptions): Promise<InsurUpResult>;
1979
- /**
1980
- * Sets or updates the asset associated with a case for proper tracking and management.
1981
- *
1982
- * Uygun takip ve yönetim için taleple ilişkili varlığı ayarlar veya günceller.
1983
- *
1984
- * @param request Asset assignment request / Varlık atama talebi
1985
- * @returns Operation result / İşlem sonucu
1986
- */
1987
- setCaseAsset(request: SetCaseAssetRequest, options?: RequestOptions): Promise<InsurUpResult>;
1988
- /**
1989
- * Assigns or changes the branch for a case to organize case segmentation and reporting.
1990
- *
1991
- * Talep segmentasyonu ve raporlama için talebin şubesini atar veya değiştirir.
1992
- *
1993
- * @param request Branch assignment request / Şube atama talebi
1994
- * @returns Operation result / İşlem sonucu
1995
- */
1996
- setCaseBranch(request: SetCaseBranchRequest, options?: RequestOptions): Promise<InsurUpResult>;
1997
- /**
1998
- * Retrieves analytics for the New Sales Opportunity Lifecycle Funnel dashboard widget.
1999
- *
2000
- * Yeni Satış Fırsatı Yaşam Döngüsü Hunisi gösterge paneli bileşeni için analitik verileri getirir.
2001
- *
2002
- * @param request Analytics request with filtering options / Filtreleme seçenekleri içeren analitik isteği
2003
- * @returns Funnel analytics response / Huni analitiği yanıtı
2004
- */
2005
- getSalesOpportunityFunnelAnalytics(request: GetSalesOpportunityFunnelAnalyticsRequest, options?: RequestOptions): Promise<InsurUpResult<GetSalesOpportunityFunnelAnalyticsResult>>;
2006
- /**
2007
- * Retrieves backlog analytics that pivot open cases by type and subtype for dashboard reporting.
2008
- *
2009
- * Gösterge paneli raporlaması için açık talepleri tür ve alt tür bazında pivotlayan backlog analitiğini getirir.
2010
- *
2011
- * @param request Backlog pivot analytics request / Backlog pivot analitiği isteği
2012
- * @returns Backlog pivot analytics response / Backlog pivot analitiği yanıtı
2013
- */
2014
- getOpenCaseBacklogPivotAnalytics(request: GetOpenCaseBacklogPivotAnalyticsRequest, options?: RequestOptions): Promise<InsurUpResult<GetOpenCaseBacklogPivotAnalyticsResult>>;
2015
- /**
2016
- * Retrieves failed cases reason distribution analytics for conversion improvement analysis.
2017
- *
2018
- * Dönüşüm iyileştirme analizi için başarısız taleplerin neden dağılımı analitiğini getirir.
2019
- *
2020
- * @param request Failed cases reason distribution analytics request / Başarısız talep neden dağılımı analitiği isteği
2021
- * @returns Failed cases reason distribution analytics response / Başarısız talep neden dağılımı analitiği yanıtı
2022
- */
2023
- getFailedCasesReasonDistribution(request: GetFailedCasesReasonDistributionRequest, options?: RequestOptions): Promise<InsurUpResult<GetFailedCasesReasonDistributionResult>>;
2024
- /**
2025
- * Retrieves all available case communication automation configurations with their argument definitions.
2026
- *
2027
- * Argüman tanımları ile birlikte mevcut tüm talep iletişim otomasyonu yapılandırmalarını getirir.
2028
- *
2029
- * @returns Available communication automations / Mevcut iletişim otomasyonları
2030
- */
2031
- getAllCaseCommunicationAutomations(options?: RequestOptions): Promise<InsurUpResult<CaseCommunicationAutomationResult[]>>;
2032
- /**
2033
- * Retrieves all available case priority templates for agent configuration.
2034
- *
2035
- * Acente yapılandırması için mevcut tüm talep öncelik şablonlarını getirir.
2036
- *
2037
- * @returns Available case priority templates / Mevcut talep öncelik şablonları
2038
- */
2039
- getCasePriorityTemplates(options?: RequestOptions): Promise<InsurUpResult<GetCasePriorityTemplatesResult>>;
2040
- /**
2041
- * Queries cases using GraphQL with advanced filtering, searching, sorting, and field selection.
2042
- * Supports cursor-based pagination and type-safe field selection.
2043
- *
2044
- * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak talepleri sorgular.
2045
- * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
2046
- *
2047
- * @example
2048
- * // Basic query with all fields
2049
- * const result = await client.cases.getCases({ first: 10 });
2050
- *
2051
- * @example
2052
- * // Type-safe field selection
2053
- * const result = await client.cases.getCases({
2054
- * select: ['id', 'ref', 'type', 'status', 'mainState'] as const,
2055
- * first: 10,
2056
- * filter: { type: { eq: CaseType.NewSaleOpportunity } }
2057
- * });
2058
- *
2059
- * @param requestOptions Query options including pagination, filters, search, and field selection
2060
- * @returns Paginated connection of cases with type-narrowed fields
2061
- */
2062
- getCases<const TFields extends CaseFieldKey[]>(requestOptions?: GetCasesOptions<TFields>, options?: RequestOptions): Promise<InsurUpGraphQLResult<CasesConnection<TFields>>>;
2063
- }
2064
-
2065
- /**
2066
- * Provides comprehensive webhook management operations for configuring event notifications, monitoring delivery status,
2067
- * and managing external system integrations within the InsurUp platform ecosystem.
2068
- *
2069
- * InsurUp platform ekosistemi içinde olay bildirimlerini yapılandırma, teslimat durumunu izleme ve
2070
- * harici sistem entegrasyonlarını yönetmek için kapsamlı webhook yönetimi işlemlerini sağlar.
2071
- */
2072
- declare class InsurUpWebhookClient {
2073
- private readonly http;
2074
- private readonly graphql?;
2075
- constructor(http: HttpTransport, graphql?: GraphQLTransport | undefined);
2076
- /**
2077
- * Creates a new webhook configuration to receive event notifications from the InsurUp platform.
2078
- *
2079
- * InsurUp platformundan olay bildirimleri almak için yeni webhook yapılandırması oluşturur.
2080
- *
2081
- * @param request Webhook creation request with endpoint and event configurations / Endpoint ve olay yapılandırmaları ile webhook oluşturma talebi
2082
- * @returns Created webhook information / Oluşturulan webhook bilgileri
2083
- */
2084
- createWebhook(request: CreateWebhookRequest, options?: RequestOptions): Promise<InsurUpResult<CreateWebhookResult>>;
2085
- /**
2086
- * Retrieves detailed information about a specific webhook including its configuration and current status.
2087
- *
2088
- * Belirli bir webhook hakkında yapılandırması ve mevcut durumu dahil detaylı bilgileri getirir.
2089
- *
2090
- * @param webhookId Unique identifier of the webhook / Webhook'un benzersiz tanımlayıcısı
2091
- * @returns Webhook configuration details / Webhook yapılandırma detayları
2092
- */
2093
- getWebhookById(webhookId: string, options?: RequestOptions): Promise<InsurUpResult<GetWebhookByIdResult>>;
2094
- /**
2095
- * Retrieves all webhooks configured for the current agent or organization for comprehensive webhook management.
2096
- *
2097
- * Kapsamlı webhook yönetimi için mevcut acente veya organizasyon için yapılandırılmış tüm webhook'ları getirir.
2098
- *
2099
- * @returns List of configured webhooks / Yapılandırılmış webhook'lar listesi
2100
- */
2101
- getWebhooks(options?: RequestOptions): Promise<InsurUpResult<GetWebhooksResult[]>>;
2102
- /**
2103
- * Updates an existing webhook configuration including endpoint URL, event subscriptions, or authentication settings.
2104
- *
2105
- * Endpoint URL'si, olay abonelikleri veya kimlik doğrulama ayarları dahil mevcut webhook yapılandırmasını günceller.
2106
- *
2107
- * @param request Webhook update request with modified configuration / Değiştirilmiş yapılandırma ile webhook güncelleme talebi
2108
- * @returns Operation result / İşlem sonucu
2109
- */
2110
- updateWebhook(request: UpdateWebhookRequest, options?: RequestOptions): Promise<InsurUpResult>;
2111
- /**
2112
- * Permanently removes a webhook configuration, stopping all future event notifications to the specified endpoint.
2113
- *
2114
- * Webhook yapılandırmasını kalıcı olarak kaldırır ve belirtilen endpoint'e gelecekteki tüm olay bildirimlerini durdurur.
2115
- *
2116
- * @param webhookId Unique identifier of the webhook to delete / Silinecek webhook'un benzersiz tanımlayıcısı
2117
- * @returns Operation result / İşlem sonucu
2118
- */
2119
- deleteWebhook(webhookId: string, options?: RequestOptions): Promise<InsurUpResult>;
2120
- /**
2121
- * Retrieves detailed information about a specific webhook delivery including delivery status, response, and timing.
2122
- *
2123
- * Teslimat durumu, yanıt ve zamanlama dahil belirli bir webhook teslimatı hakkında detaylı bilgileri getirir.
2124
- *
2125
- * @param webhookId Unique identifier of the webhook / Webhook'un benzersiz tanımlayıcısı
2126
- * @param webhookDeliveryId Unique identifier of the delivery attempt / Teslimat denemesinin benzersiz tanımlayıcısı
2127
- * @returns Webhook delivery details / Webhook teslimat detayları
2128
- */
2129
- getWebhookDelivery(webhookId: string, webhookDeliveryId: string, options?: RequestOptions): Promise<InsurUpResult<GetWebhookDeliveryResult>>;
2130
- /**
2131
- * Manually retries a failed webhook event delivery to attempt successful notification delivery.
2132
- *
2133
- * Başarılı bildirim teslimatını denemek için başarısız webhook olay teslimatını manuel olarak yeniden dener.
2134
- *
2135
- * @param webhookId Unique identifier of the webhook / Webhook'un benzersiz tanımlayıcısı
2136
- * @param webhookDeliveryId Unique identifier of the delivery to retry / Yeniden denenecek teslimatın benzersiz tanımlayıcısı
2137
- * @returns Operation result / İşlem sonucu
2138
- */
2139
- redeliverWebhookEvent(webhookId: string, webhookDeliveryId: string, options?: RequestOptions): Promise<InsurUpResult>;
2140
- /**
2141
- * Queries webhook deliveries using GraphQL with advanced filtering, searching, sorting, and field selection.
2142
- * Supports cursor-based pagination and type-safe field selection.
2143
- *
2144
- * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak webhook teslimatlarını sorgular.
2145
- * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
2146
- *
2147
- * @example
2148
- * // Basic query with all fields
2149
- * const result = await client.webhooks.getWebhookDeliveries({ first: 10 });
2150
- *
2151
- * @example
2152
- * // Type-safe field selection with filter
2153
- * const result = await client.webhooks.getWebhookDeliveries({
2154
- * select: ['id', 'webhookId', 'event', 'state'] as const,
2155
- * first: 10,
2156
- * filter: { state: { eq: WebhookDeliveryState.Failed } }
2157
- * });
2158
- *
2159
- * @param requestOptions Query options including pagination, filters, search, and field selection
2160
- * @returns Paginated connection of webhook deliveries with type-narrowed fields
2161
- */
2162
- getWebhookDeliveries<const TFields extends WebhookDeliveryFieldKey[]>(requestOptions?: GetWebhookDeliveriesOptions<TFields>, options?: RequestOptions): Promise<InsurUpGraphQLResult<WebhookDeliveriesConnection<TFields>>>;
2163
- }
2164
-
2165
- /**
2166
- * @fileoverview Coverage Management Client - Client for managing insurance coverage configurations
2167
- * @description Provides coverage management operations for configuring insurance product coverages, managing coverage groups, and retrieving available coverage options
2168
- */
2169
-
2170
- /**
2171
- * Provides coverage management operations for configuring insurance product coverages, managing coverage groups,
2172
- * and retrieving available coverage options for different insurance branches within the InsurUp platform.
2173
- *
2174
- * InsurUp platformu içinde sigorta ürün teminatlarını yapılandırma, teminat gruplarını yönetme ve farklı
2175
- * sigorta dalları için mevcut teminat seçeneklerini alma konularında teminat yönetimi işlemlerini sağlar.
2176
- */
2177
- declare class InsurUpCoverageClient {
2178
- private readonly http;
2179
- constructor(http: HttpTransport);
2180
- /**
2181
- * Creates a new coverage group to organize and standardize coverage offerings across multiple insurance products.
2182
- *
2183
- * Birden fazla sigorta ürününde teminat tekliflerini organize etmek ve standartlaştırmak için yeni teminat grubu oluşturur.
2184
- *
2185
- * @param request Coverage group creation request / Teminat grubu oluşturma talebi
2186
- * @returns Operation result / İşlem sonucu
2187
- */
2188
- createCoverageGroup(request: CreateCoverageGroupRequest, options?: RequestOptions): Promise<InsurUpResult>;
2189
- /**
2190
- * Updates an existing coverage group's configuration, coverage options, or applicable insurance products.
2191
- *
2192
- * Mevcut bir teminat grubunun yapılandırmasını, teminat seçeneklerini veya uygulanabilir sigorta ürünlerini günceller.
2193
- *
2194
- * @param request Coverage group update request / Teminat grubu güncelleme talebi
2195
- * @returns Operation result / İşlem sonucu
2196
- */
2197
- updateCoverageGroup(request: UpdateCoverageGroupRequest, options?: RequestOptions): Promise<InsurUpResult>;
2198
- /**
2199
- * Removes a coverage group from the system, ensuring proper cleanup of associated coverage configurations.
2200
- *
2201
- * Sistemden bir teminat grubunu kaldırır ve ilişkili teminat yapılandırmalarının düzgün temizlenmesini sağlar.
2202
- *
2203
- * @param request Coverage group deletion request / Teminat grubu silme talebi
2204
- * @returns Operation result / İşlem sonucu
2205
- */
2206
- deleteCoverageGroup(request: DeleteCoverageGroupRequest, options?: RequestOptions): Promise<InsurUpResult>;
2207
- /**
2208
- * Retrieves detailed information about a specific coverage group including its coverage options and configurations.
2209
- *
2210
- * Belirli bir teminat grubu hakkında teminat seçenekleri ve yapılandırmaları dahil detaylı bilgileri getirir.
2211
- *
2212
- * @param coverageGroupId Unique identifier of the coverage group / Teminat grubunun benzersiz tanımlayıcısı
2213
- * @returns Coverage group details / Teminat grubu detayları
2214
- */
2215
- getCoverageGroupById(coverageGroupId: string, options?: RequestOptions): Promise<InsurUpResult<GetCoverageGroupByIdResult>>;
2216
- /**
2217
- * Retrieves all available coverage groups within the agency for comprehensive coverage management overview.
2218
- *
2219
- * Kapsamlı teminat yönetimi genel bakışı için acente içindeki tüm mevcut teminat gruplarını getirir.
2220
- *
2221
- * @returns List of all coverage groups / Tüm teminat grupları listesi
2222
- */
2223
- getAllCoverageGroups(options?: RequestOptions): Promise<InsurUpResult<GetCoverageGroupsResultItem[]>>;
2224
- /**
2225
- * Retrieves available Kasko (comprehensive vehicle insurance) coverage options and configurations for proposal generation.
2226
- *
2227
- * Teklif oluşturma için mevcut Kasko (kasko araç sigortası) teminat seçenekleri ve yapılandırmalarını getirir.
2228
- *
2229
- * @param vehicleUtilizationStyle Optional vehicle utilization style filter / İsteğe bağlı araç kullanım stili filtresi
2230
- * @returns Kasko coverage choices grouped by insurance company / Sigorta şirketine göre gruplanmış Kasko teminat seçenekleri
2231
- */
2232
- getKaskoCoverageChoices(vehicleUtilizationStyle?: VehicleUtilizationStyle, options?: RequestOptions): Promise<InsurUpResult<CompanyCoverageChoices<KaskoCoverageChoices>[]>>;
2233
- /**
2234
- * Retrieves available Konut (home/property insurance) coverage options including DASK earthquake insurance configurations.
2235
- *
2236
- * DASK deprem sigortası yapılandırmaları dahil mevcut Konut (ev/mülk sigortası) teminat seçeneklerini getirir.
2237
- *
2238
- * @returns Konut coverage choices grouped by insurance company / Sigorta şirketine göre gruplanmış Konut teminat seçenekleri
2239
- */
2240
- getKonutCoverageChoices(options?: RequestOptions): Promise<InsurUpResult<CompanyCoverageChoices<KonutCoverageChoices>[]>>;
2241
- /**
2242
- * Retrieves available TSS (Traffic Insurance) coverage options for mandatory and voluntary vehicle liability insurance.
2243
- *
2244
- * Zorunlu ve ihtiyari araç sorumluluk sigortası için mevcut TSS (Trafik Sigortası) teminat seçeneklerini getirir.
2245
- *
2246
- * @returns TSS coverage choices grouped by insurance company / Sigorta şirketine göre gruplanmış TSS teminat seçenekleri
2247
- */
2248
- getTssCoverageChoices(options?: RequestOptions): Promise<InsurUpResult<CompanyCoverageChoices<TssCoverageChoices>[]>>;
2249
- /**
2250
- * Retrieves available IMM (Voluntary Financial Liability) coverage options for extended liability protection beyond mandatory insurance.
2251
- *
2252
- * Zorunlu sigortanın ötesinde genişletilmiş sorumluluk koruması için mevcut İMM (İhtiyari Mali Mesuliyet) teminat seçeneklerini getirir.
2253
- *
2254
- * @returns IMM coverage choices grouped by insurance company / Sigorta şirketine göre gruplanmış İMM teminat seçenekleri
2255
- */
2256
- getImmCoverageChoices(options?: RequestOptions): Promise<InsurUpResult<CompanyCoverageChoices<ImmCoverageChoices>[]>>;
2257
- }
2258
-
2259
- /**
2260
- * Provides comprehensive insurance industry data access for retrieving insurance companies, products, resource keys,
2261
- * release notes, and financial institution information essential for platform operations and integrations.
2262
- *
2263
- * Platform operasyonları ve entegrasyonları için gerekli sigorta şirketleri, ürünler, kaynak anahtarları,
2264
- * sürüm notları ve finansal kurum bilgilerini almak üzere kapsamlı sigorta sektörü veri erişimi sağlar.
2265
- *
2266
- * **Insurance Industry Data Client / Sigorta Sektörü Veri İstemcisi**
2267
- *
2268
- * EN: Central client for accessing comprehensive insurance industry reference data and platform configuration information.
2269
- * Provides access to insurance companies, their products, localization resources, platform release notes, banking
2270
- * institutions, and financial service providers. Essential for agencies that need to stay updated with insurance
2271
- * market offerings, configure platform integrations, access multilingual resources, and integrate with banking
2272
- * systems for premium collection and policy financing operations.
2273
- *
2274
- * TR: Kapsamlı sigorta sektörü referans verilerine ve platform yapılandırma bilgilerine erişim için merkezi istemci.
2275
- * Sigorta şirketleri, ürünleri, yerelleştirme kaynakları, platform sürüm notları, bankacılık kurumları ve finansal
2276
- * hizmet sağlayıcılarına erişim sağlar. Sigorta pazar teklifleri ile güncel kalması, platform entegrasyonlarını
2277
- * yapılandırması, çok dilli kaynaklara erişmesi ve prim tahsilatı ile poliçe finansman operasyonları için bankacılık
2278
- * sistemleri ile entegrasyon yapması gereken acenteler için olmazsa olmazdır.
2279
- */
2280
- declare class InsurUpInsuranceClient {
2281
- private readonly http;
2282
- constructor(http: HttpTransport);
2283
- /**
2284
- * Retrieves all available resource keys for localization and multi-language support within the platform.
2285
- *
2286
- * Platform içinde yerelleştirme ve çoklu dil desteği için mevcut tüm kaynak anahtarlarını getirir.
2287
- *
2288
- * @returns List of resource keys for localization / Yerelleştirme için kaynak anahtarları listesi
2289
- */
2290
- getResourceKeys(options?: RequestOptions): Promise<InsurUpResult<ResourceKey[]>>;
2291
- /**
2292
- * Retrieves all insurance companies available on the platform for agent partnerships and product offerings.
2293
- *
2294
- * Acente ortaklıkları ve ürün teklifleri için platformda bulunan tüm sigorta şirketlerini getirir.
2295
- *
2296
- * @returns List of insurance companies / Sigorta şirketleri listesi
2297
- */
2298
- getInsuranceCompanies(options?: RequestOptions): Promise<InsurUpResult<InsuranceCompany[]>>;
2299
- /**
2300
- * Retrieves all insurance products offered by a specific insurance company including their features and coverage options.
2301
- *
2302
- * Belirli bir sigorta şirketinin sunduğu tüm sigorta ürünlerini özellikleri ve teminat seçenekleri dahil getirir.
2303
- *
2304
- * @param insuranceCompanyId Unique identifier of the insurance company / Sigorta şirketinin benzersiz tanımlayıcısı
2305
- * @returns List of insurance products / Sigorta ürünleri listesi
2306
- */
2307
- getInsuranceCompanyProducts(insuranceCompanyId: number, options?: RequestOptions): Promise<InsurUpResult<InsuranceProduct[]>>;
2308
- /**
2309
- * Retrieves all insurance products from all companies on the platform including their features and coverage options.
2310
- *
2311
- * Platformdaki tüm şirketlerden mevcut tüm sigorta ürünlerini özellikleri ve teminat seçenekleri dahil getirir.
2312
- *
2313
- * @returns List of all insurance products / Tüm sigorta ürünleri listesi
2314
- */
2315
- getAllProducts(options?: RequestOptions): Promise<InsurUpResult<InsuranceProduct[]>>;
2316
- /**
2317
- * Retrieves agent-specific connection fields and requirements for integrating with a particular insurance company's systems.
2318
- *
2319
- * Belirli bir sigorta şirketinin sistemleri ile entegrasyon için acente özel bağlantı alanları ve gereksinimlerini getirir.
2320
- *
2321
- * @param insuranceCompanyId Unique identifier of the insurance company / Sigorta şirketinin benzersiz tanımlayıcısı
2322
- * @returns Connection field requirements / Bağlantı alanı gereksinimleri
2323
- */
2324
- getCompanyConnectionFields(insuranceCompanyId: number, options?: RequestOptions): Promise<InsurUpResult<GetAgentBasedConnectionFieldsByCompanyIdResultItem[]>>;
2325
- /**
2326
- * Retrieves all platform release notes including new features, bug fixes, and important updates for system awareness.
2327
- *
2328
- * Sistem farkındalığı için yeni özellikler, hata düzeltmeleri ve önemli güncellemeler dahil tüm platform sürüm notlarını getirir.
2329
- *
2330
- * @returns Platform release notes / Platform sürüm notları
2331
- */
2332
- getAllReleaseNotes(options?: RequestOptions): Promise<InsurUpResult<GetAllReleaseNotesResultItem[]>>;
2333
- /**
2334
- * Retrieves all banks available for premium collection, policy financing, and customer payment processing operations.
2335
- *
2336
- * Prim tahsilatı, poliçe finansmanı ve müşteri ödeme işleme operasyonları için mevcut tüm bankaları getirir.
2337
- *
2338
- * @returns List of banks / Bankalar listesi
2339
- */
2340
- getBanks(options?: RequestOptions): Promise<InsurUpResult<Bank[]>>;
2341
- /**
2342
- * Retrieves all branches for a specific bank to enable precise payment routing and customer service location matching.
2343
- *
2344
- * Hassas ödeme yönlendirmesi ve müşteri hizmet konumu eşleştirmesi için belirli bir bankanın tüm şubelerini getirir.
2345
- *
2346
- * @param bankId Unique identifier of the bank / Bankanın benzersiz tanımlayıcısı
2347
- * @returns List of bank branches / Banka şubeleri listesi
2348
- */
2349
- getBankBranches(bankId: string, options?: RequestOptions): Promise<InsurUpResult<BankBranch[]>>;
2350
- /**
2351
- * Retrieves all financial institutions including banks, credit unions, and other financial service providers for comprehensive payment options.
2352
- *
2353
- * Kapsamlı ödeme seçenekleri için bankalar, kredi birlikleri ve diğer finansal hizmet sağlayıcıları dahil tüm finansal kurumları getirir.
2354
- *
2355
- * @returns List of financial institutions / Finansal kurumlar listesi
2356
- */
2357
- getFinancialInstitutions(options?: RequestOptions): Promise<InsurUpResult<FinancialInstitution[]>>;
2358
- }
2359
-
2360
- /**
2361
- * @fileoverview Proposal Client - Comprehensive proposal management operations
2362
- * @description Provides comprehensive proposal management operations for creating insurance proposals, managing proposal lifecycle,
2363
- * document generation, product purchasing, and comparison tools within the insurance sales process.
2364
- */
2365
-
2366
- /**
2367
- * Proposal Management Client / Teklif Yönetimi İstemcisi
2368
- *
2369
- * Central client for managing the complete insurance proposal lifecycle from creation to policy conversion. Handles
2370
- * proposal generation, product comparison, premium calculations, document management, customer communication, and the
2371
- * purchasing process for various insurance products. Provides both synchronous and asynchronous purchasing options,
2372
- * comprehensive document generation including comparison PDFs, and proposal revision capabilities. Essential for
2373
- * agencies that need to create competitive insurance proposals, manage customer decision processes, and convert
2374
- * proposals into active policies while maintaining detailed audit trails and customer communication records.
2375
- *
2376
- * Oluşturmadan poliçe dönüştürmeye kadar tam sigorta teklif yaşam döngüsünü yönetmek için merkezi istemci.
2377
- * Teklif oluşturma, ürün karşılaştırması, prim hesaplamaları, belge yönetimi, müşteri iletişimi ve çeşitli sigorta
2378
- * ü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
2379
- * dahil kapsamlı belge oluşturma ve teklif revizyon yetenekleri sağlar. Rekabetçi sigorta teklifleri oluşturması,
2380
- * müşteri karar süreçlerini yönetmesi ve detaylı denetim izleri ile müşteri iletişim kayıtlarını korurken teklifleri
2381
- * aktif poliçelere dönüştürmesi gereken acenteler için olmazsa olmazdır.
2382
- */
2383
- declare class InsurUpProposalClient {
2384
- private readonly http;
2385
- private readonly graphql?;
2386
- constructor(http: HttpTransport, graphql?: GraphQLTransport | undefined);
2387
- /**
2388
- * Creates a new insurance proposal with customer information, coverage selections, and product options for quotation.
2389
- *
2390
- * Fiyat teklifi için müşteri bilgileri, teminat seçimleri ve ürün seçenekleri ile yeni sigorta teklifi oluşturur.
2391
- *
2392
- * @param request - Proposal creation request with customer and coverage details / Müşteri ve teminat detayları ile teklif oluşturma talebi
2393
- * @returns Created proposal information / Oluşturulan teklif bilgileri
2394
- */
2395
- createProposal(request: CreateProposalRequest, options?: RequestOptions): Promise<InsurUpResult<CreateProposalResult>>;
2396
- /**
2397
- * Retries a failed proposal product calculation or processing to attempt resolution of temporary issues.
2398
- *
2399
- * Geçici sorunların çözümünü denemek için başarısız teklif ürün hesaplama veya işlemesini yeniden dener.
2400
- *
2401
- * @param proposalId - Unique identifier of the proposal / Teklifin benzersiz tanımlayıcısı
2402
- * @param proposalProductId - Unique identifier of the proposal product / Teklif ürününün benzersiz tanımlayıcısı
2403
- * @returns Operation result / İşlem sonucu
2404
- */
2405
- retryFailedProposalProduct(proposalId: string, proposalProductId: string, options?: RequestOptions): Promise<InsurUpResult>;
2406
- /**
2407
- * Retrieves comprehensive details of a specific proposal including all products, coverage options, and pricing information.
2408
- *
2409
- * Tüm ürünler, teminat seçenekleri ve fiyatlandırma bilgileri dahil belirli bir teklifin kapsamlı detaylarını getirir.
2410
- *
2411
- * @param proposalId - Unique identifier of the proposal / Teklifin benzersiz tanımlayıcısı
2412
- * @returns Detailed proposal information / Detaylı teklif bilgileri
2413
- */
2414
- getProposalDetail(proposalId: string, options?: RequestOptions): Promise<InsurUpResult<GetProposalByIdResult>>;
2415
- /**
2416
- * Retrieves detailed premium breakdown information for a specific proposal product including installment options.
2417
- *
2418
- * Taksit seçenekleri dahil belirli bir teklif ürünü için detaylı prim dağılım bilgilerini getirir.
2419
- *
2420
- * @param proposalId - Unique identifier of the proposal / Teklifin benzersiz tanımlayıcısı
2421
- * @param proposalProductId - Unique identifier of the proposal product / Teklif ürününün benzersiz tanımlayıcısı
2422
- * @param installmentNumber - Installment option number / Taksit seçenek numarası
2423
- * @returns Premium breakdown details / Prim dağılım detayları
2424
- */
2425
- getProposalProductPremiumDetail(proposalId: string, proposalProductId: string, installmentNumber: number, options?: RequestOptions): Promise<InsurUpResult<GetProposalProductPremiumDetailResult>>;
2426
- /**
2427
- * Purchases a proposal product synchronously, converting it to an active policy with immediate confirmation.
2428
- *
2429
- * Teklif ürününü senkron olarak satın alır ve anında onay ile aktif poliçeye dönüştürür.
2430
- *
2431
- * @param request - Synchronous purchase request / Senkron satın alma talebi
2432
- * @returns Purchase confirmation with policy details / Poliçe detayları ile satın alma onayı
2433
- */
2434
- purchaseProposalProductSync(request: PurchaseProposalProductSyncRequest, options?: RequestOptions): Promise<InsurUpResult<PurchaseProposalProductSyncResult>>;
2435
- /**
2436
- * Initiates an asynchronous purchase process for a proposal product, allowing for background processing and later confirmation.
2437
- *
2438
- * Arka plan işleme ve sonraki onay için teklif ürünü için asenkron satın alma sürecini başlatır.
2439
- *
2440
- * @param request - Asynchronous purchase request / Asenkron satın alma talebi
2441
- * @returns Purchase initiation confirmation / Satın alma başlatma onayı
2442
- */
2443
- purchaseProposalProductAsync(request: PurchaseProposalProductAsyncRequest, options?: RequestOptions): Promise<InsurUpResult<PurchaseProposalProductAsyncResult>>;
2444
- /**
2445
- * Retrieves detailed coverage configuration for a specific proposal product including all coverage options and limits.
2446
- *
2447
- * Tüm teminat seçenekleri ve limitleri dahil belirli bir teklif ürünü için detaylı teminat yapılandırmasını getirir.
2448
- *
2449
- * @param proposalId - Unique identifier of the proposal / Teklifin benzersiz tanımlayıcısı
2450
- * @param proposalProductId - Unique identifier of the proposal product / Teklif ürününün benzersiz tanımlayıcısı
2451
- * @returns Coverage configuration details / Teminat yapılandırma detayları
2452
- */
2453
- getProposalProductCoverage(proposalId: string, proposalProductId: string, options?: RequestOptions): Promise<InsurUpResult<GetProposalProductCoverageResult>>;
2454
- /**
2455
- * Creates a revised version of an existing proposal with updated information, coverage changes, or customer modifications.
2456
- *
2457
- * Güncellenmiş bilgiler, teminat değişiklikleri veya müşteri değişiklikleri ile mevcut teklifin revize edilmiş versiyonunu oluşturur.
2458
- *
2459
- * @param request - Proposal revision request / Teklif revizyon talebi
2460
- * @returns Revised proposal information / Revize edilmiş teklif bilgileri
2461
- */
2462
- reviseProposal(request: ReviseProposalRequest, options?: RequestOptions): Promise<InsurUpResult<ReviseProposalResult>>;
2463
- /**
2464
- * Revises a specific product within a proposal with updated coverage options, limits, or pricing parameters.
2465
- *
2466
- * Güncellenmiş teminat seçenekleri, limitler veya fiyatlandırma parametreleri ile teklif içindeki belirli ürünü revize eder.
2467
- *
2468
- * @param request - Product revision request / Ürün revizyon talebi
2469
- * @returns Operation result / İşlem sonucu
2470
- */
2471
- reviseProposalProduct(request: ReviseProposalProductRequest, options?: RequestOptions): Promise<InsurUpResult>;
2472
- /**
2473
- * Fetches the official proposal document for a specific product from the insurance company's systems.
2474
- *
2475
- * Sigorta şirketinin sistemlerinden belirli bir ürün için resmi teklif belgesini getirir.
2476
- *
2477
- * @param request - Document fetch request / Belge getirme talebi
2478
- * @returns Proposal document data / Teklif belgesi verisi
2479
- */
2480
- fetchProposalProductDocument(request: FetchProposalProductDocumentRequest, options?: RequestOptions): Promise<InsurUpResult<FetchProposalProductDocumentResult>>;
2481
- /**
2482
- * Fetches the information form document that contains detailed product information and terms for customer review.
2483
- *
2484
- * Müşteri incelemesi için detaylı ürün bilgileri ve şartları içeren bilgi formu belgesini getirir.
2485
- *
2486
- * @param request - Information form document request / Bilgi formu belgesi talebi
2487
- * @returns Information form document data / Bilgi formu belgesi verisi
2488
- */
2489
- fetchProposalInformationFormDocument(request: FetchProposalInformationFormDocumentRequest, options?: RequestOptions): Promise<InsurUpResult<FetchProposalInformationFormDocumentResult>>;
2490
- /**
2491
- * Sends the proposal product document directly to the customer via email or other communication channels.
2492
- *
2493
- * Teklif ürün belgesini e-posta veya diğer iletişim kanalları aracılığıyla doğrudan müşteriye gönderir.
2494
- *
2495
- * @param request - Document delivery request / Belge teslim talebi
2496
- * @returns Operation result / İşlem sonucu
2497
- */
2498
- sendProposalProductDocument(request: SendProposalProductDocumentRequest, options?: RequestOptions): Promise<InsurUpResult>;
2499
- /**
2500
- * Sends the information form document to the customer for detailed product review and decision making.
2501
- *
2502
- * Detaylı ürün incelemesi ve karar verme için bilgi formu belgesini müşteriye gönderir.
2503
- *
2504
- * @param request - Information form delivery request / Bilgi formu teslim talebi
2505
- * @returns Operation result / İşlem sonucu
2506
- */
2507
- sendProposalInformationFormDocument(request: SendProposalInformationFormDocumentRequest, options?: RequestOptions): Promise<InsurUpResult>;
2508
- /**
2509
- * Generates a comparative PDF document showing multiple proposal products side-by-side for customer decision support.
2510
- *
2511
- * 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.
2512
- *
2513
- * @param request - Comparison PDF generation request / Karşılaştırma PDF oluşturma talebi
2514
- * @returns Generated comparison document / Oluşturulan karşılaştırma belgesi
2515
- */
2516
- generateCompareProposalProductsPdf(request: GenerateCompareProposalProductsPdfRequest, options?: RequestOptions): Promise<InsurUpResult<GenerateCompareProposalProductsPdfResult>>;
2517
- /**
2518
- * Sends the proposal comparison PDF document to the customer to facilitate informed decision making between insurance options.
2519
- *
2520
- * 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.
2521
- *
2522
- * @param request - Comparison PDF delivery request / Karşılaştırma PDF teslim talebi
2523
- * @returns Operation result / İşlem sonucu
2524
- */
2525
- sendCompareProposalProductsPdf(request: SendCompareProposalProductsPdfRequest, options?: RequestOptions): Promise<InsurUpResult>;
2526
- /**
2527
- * Generates a professional PDF document containing selected proposal products for customer presentation.
2528
- *
2529
- * Müşteri sunumu için seçilen teklif ürünlerini içeren profesyonel bir PDF belgesi oluşturur.
2530
- *
2531
- * @param request Customer proposal document generation request / Müşteri teklif belgesi oluşturma talebi
2532
- * @returns Generated document URL / Oluşturulan belge URL'i
2533
- */
2534
- generateCustomerProposalDocumentPdf(request: GenerateCustomerProposalDocumentPdfRequest, options?: RequestOptions): Promise<InsurUpResult<GenerateCustomerProposalDocumentPdfResult>>;
2535
- /**
2536
- * Assigns or changes the branch for a proposal to organize proposal segmentation and reporting.
2537
- *
2538
- * Teklif segmentasyonu ve raporlama için teklifin şubesini atar veya değiştirir.
2539
- *
2540
- * @param request Branch assignment request / Şube atama talebi
2541
- * @returns Operation result / İşlem sonucu
2542
- */
2543
- setProposalBranch(request: SetProposalBranchRequest, options?: RequestOptions): Promise<InsurUpResult>;
2544
- /**
2545
- * Retrieves proposal-to-policy conversion trend analytics as a time series.
2546
- *
2547
- * Tekliften poliçeye dönüşüm trendi analitiğini zaman serisi olarak getirir.
2548
- *
2549
- * @param request Conversion trend analytics request / Dönüşüm trendi analitik isteği
2550
- * @returns Conversion trend analytics response / Dönüşüm trendi analitiği yanıtı
2551
- */
2552
- getProposalConversionTrend(request: GetProposalConversionTrendRequest, options?: RequestOptions): Promise<InsurUpResult<GetProposalConversionTrendResult>>;
2553
- /**
2554
- * Assigns or updates the representative responsible for managing a specific proposal and customer relationship.
2555
- *
2556
- * Belirli bir teklifi ve müşteri ilişkisini yönetmekten sorumlu temsilciyi atar veya günceller.
2557
- *
2558
- * @param request - Representative assignment request / Temsilci atama talebi
2559
- * @returns Operation result / İşlem sonucu
2560
- */
2561
- setProposalRepresentative(request: SetProposalRepresentativeRequest, options?: RequestOptions): Promise<InsurUpResult>;
2562
- /**
2563
- * Queries proposals using GraphQL with advanced filtering, searching, sorting, and field selection.
2564
- * Supports cursor-based pagination and type-safe field selection.
2565
- *
2566
- * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak teklifleri sorgular.
2567
- * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
2568
- *
2569
- * @example
2570
- * // Basic query with all fields
2571
- * const result = await client.proposals.getProposals({ first: 10 });
2572
- *
2573
- * @example
2574
- * // Type-safe field selection
2575
- * const result = await client.proposals.getProposals({
2576
- * select: ['id', 'productBranch', 'state', 'insuredCustomerName'] as const,
2577
- * first: 10,
2578
- * filter: { state: { eq: ProposalState.Active } }
2579
- * });
2580
- *
2581
- * @param requestOptions Query options including pagination, filters, search, and field selection
2582
- * @returns Paginated connection of proposals with type-narrowed fields
2583
- */
2584
- getProposals<const TFields extends ProposalFieldKey[]>(requestOptions?: GetProposalsOptions<TFields>, options?: RequestOptions): Promise<InsurUpGraphQLResult<ProposalsConnection<TFields>>>;
2585
- }
2586
-
2587
- /**
2588
- * @fileoverview File Client - File upload operations
2589
- * @description Provides file management operations for the InsurUp platform
2590
- */
2591
-
2592
- /**
2593
- * Provides file management operations for the InsurUp platform, enabling agents to upload and manage files
2594
- * within the insurance ecosystem.
2595
- */
2596
- declare class InsurUpFileClient {
2597
- private readonly http;
2598
- constructor(http: HttpTransport);
2599
- /**
2600
- * Uploads a file to public storage and returns the file URL for public access.
2601
- * Maximum file size is 1MB. Only available for agent users.
2602
- *
2603
- * Bir dosyayı genel depolamaya yükler ve genel erişim için dosya URL'sini döndürür.
2604
- * Maksimum dosya boyutu 1MB'dir. Sadece acente kullanıcıları için kullanılabilir.
2605
- *
2606
- * @param request Upload configuration including optional path
2607
- * @param file File content
2608
- * @param fileName Name of the file
2609
- * @returns File URL and path information
2610
- */
2611
- uploadPublicFile(request: UploadPublicFileRequest, file: File, fileName: string, options?: RequestOptions): Promise<InsurUpResult<UploadPublicFileResult>>;
2612
- }
2613
-
2614
- /**
2615
- * @fileoverview Language Client - Language and localization operations
2616
- * @description Provides language and localization operations for retrieving available languages
2617
- */
2618
-
2619
- /**
2620
- * Provides language and localization operations for retrieving available languages in the InsurUp platform.
2621
- * Essential for multi-language support and internationalization features.
2622
- */
2623
- declare class InsurUpLanguageClient {
2624
- private readonly http;
2625
- constructor(http: HttpTransport);
2626
- /**
2627
- * Retrieves all available languages in the system for localization and internationalization purposes.
2628
- * Returns language information including language codes, native names, and English names.
2629
- *
2630
- * Yerelleştirme ve uluslararasılaştırma amaçları için sistemdeki tüm kullanılabilir dilleri getirir.
2631
- * Dil kodları, yerel adlar ve İngilizce adlar dahil dil bilgilerini döndürür.
2632
- *
2633
- * @returns List of all available languages
2634
- */
2635
- getLanguages(options?: RequestOptions): Promise<InsurUpResult<LanguageResult[]>>;
2636
- }
2637
-
2638
- /**
2639
- * @fileoverview Template Client - Template management operations
2640
- * @description Provides template management operations for the InsurUp platform
2641
- */
2642
-
2643
- /**
2644
- * Provides template management operations for the InsurUp platform, enabling agents to retrieve and update
2645
- * document templates, email templates, and other content templates used in insurance workflows.
2646
- */
2647
- declare class InsurUpTemplateClient {
2648
- private readonly http;
2649
- constructor(http: HttpTransport);
2650
- /**
2651
- * Retrieves all template definitions with their JSON schemas and metadata.
2652
- * These definitions describe the structure and data models for all template types available in the system.
2653
- * Only accessible by admin panel users and agent users with appropriate permissions.
2654
- *
2655
- * Tüm şablon tanımlarını JSON şemaları ve meta verileriyle getirir.
2656
- * Bu tanımlar, sistemde mevcut tüm şablon türleri için yapı ve veri modellerini açıklar.
2657
- * Sadece yönetici panel kullanıcıları ve uygun izinlere sahip acente kullanıcıları tarafından erişilebilir.
2658
- *
2659
- * @returns List of all template definitions
2660
- */
2661
- getTemplateDefinitions(options?: RequestOptions): Promise<InsurUpResult<GetTemplateDefinitionsResult[]>>;
2662
- /**
2663
- * Retrieves all available templates in the system with their metadata and content.
2664
- * Only accessible by admin panel users and agent users with appropriate permissions.
2665
- *
2666
- * Sistemdeki tüm kullanılabilir şablonları meta verileri ve içerikleriyle getirir.
2667
- * Sadece yönetici panel kullanıcıları ve uygun izinlere sahip acente kullanıcıları tarafından erişilebilir.
2668
- *
2669
- * @returns List of all templates with their details
2670
- */
2671
- getAllTemplates(options?: RequestOptions): Promise<InsurUpResult<QueryTemplatesResult[]>>;
2672
- /**
2673
- * Retrieves a specific template by its unique key for a particular language.
2674
- * Returns the complete template including content and JSON schema for data validation.
2675
- *
2676
- * Belirli bir dil için benzersiz anahtarına göre belirli bir şablonu getirir.
2677
- * Veri doğrulama için içerik ve JSON şeması dahil tam şablonu döndürür.
2678
- *
2679
- * @param key Unique identifier key of the template
2680
- * @param languageId Language identifier for template localization
2681
- * @returns Complete template information
2682
- */
2683
- getTemplateByKey(key: string, languageId: number, options?: RequestOptions): Promise<InsurUpResult<GetTemplateByKeyResult>>;
2684
- /**
2685
- * Updates an existing template with new content, name, description, and localization settings.
2686
- * Allows administrators to maintain and modify templates used throughout the insurance platform.
2687
- *
2688
- * Mevcut bir şablonu yeni içerik, ad, açıklama ve yerelleştirme ayarlarıyla günceller.
2689
- * Yöneticilerin sigorta platformu boyunca kullanılan şablonları sürdürmesine ve değiştirmesine olanak tanır.
2690
- *
2691
- * @param request Template update request with new content and metadata
2692
- * @returns Operation result
2693
- */
2694
- updateTemplate(request: UpdateTemplateRequest, options?: RequestOptions): Promise<InsurUpResult>;
2695
- /**
2696
- * Deletes a template owned by the current agent user.
2697
- * Only agent users can delete templates they own. Templates with null AgentId or different AgentId cannot be deleted.
2698
- *
2699
- * Mevcut acente kullanıcısına ait bir şablonu siler.
2700
- * Sadece acente kullanıcıları kendi şablonlarını silebilir. Null AgentId'ye sahip veya farklı AgentId'ye sahip şablonlar silinemez.
2701
- *
2702
- * @param request Template delete request with key and language ID
2703
- * @returns Operation result
2704
- */
2705
- deleteTemplate(request: DeleteTemplateRequest, options?: RequestOptions): Promise<InsurUpResult>;
2706
- }
2707
-
2708
- /**
2709
- * @fileoverview Default InsurUp Client - Main SDK client implementation
2710
- * @description Main SDK client implementation
2711
- */
2712
-
2713
- /**
2714
- * Main unified client providing comprehensive access to all InsurUp platform operations.
2715
- * Aggregates specialized client interfaces for authentication, agent management, customer operations,
2716
- * vehicle and property insurance, coverage management, and policy administration.
2717
- */
2718
- declare class DefaultInsurUpClient {
2719
- private readonly http;
2720
- private readonly graphql;
2721
- /**
2722
- * Agent Management Client
2723
- *
2724
- * Provides agent management operations for handling agent profiles, insurance company connections,
2725
- * and business relationships within the insurance ecosystem.
2726
- */
2727
- readonly agents: InsurUpAgentClient;
2728
- /**
2729
- * Agent Branch Management Client
2730
- *
2731
- * Provides branch management operations for insurance agents, enabling the creation and administration
2732
- * of organizational branches within agency structures.
2733
- */
2734
- readonly agentBranches: InsurUpAgentBranchClient;
2735
- /**
2736
- * Agent Role Management Client
2737
- *
2738
- * Provides role management operations for insurance agents, enabling the creation and administration
2739
- * of role-based access control within agency hierarchies and permission structures.
2740
- */
2741
- readonly agentRoles: InsurUpAgentRoleClient;
2742
- /**
2743
- * Agent Setup Client
2744
- *
2745
- * Provides agent onboarding and setup operations for new insurance agents joining the InsurUp platform,
2746
- * facilitating the complete registration and configuration process required for business operations.
2747
- */
2748
- readonly agentSetup: InsurUpAgentSetupClient;
2749
- /**
2750
- * Agent User Management Client
2751
- *
2752
- * Provides comprehensive user management operations for insurance agency staff, enabling agencies to manage
2753
- * their team members, permissions, and access control within the InsurUp platform ecosystem.
2754
- */
2755
- readonly agentUsers: InsurUpAgentUserClient;
2756
- /**
2757
- * Customer Management Client
2758
- *
2759
- * Provides comprehensive customer management operations for handling customer profiles, contact information,
2760
- * health data, communication flows, and external customer data integration.
2761
- */
2762
- readonly customers: InsurUpCustomerClient;
2763
- /**
2764
- * Vehicle Management Client
2765
- *
2766
- * Provides comprehensive vehicle management operations for handling customer vehicles, vehicle data lookups,
2767
- * brand and model queries, and vehicle-based insurance operations within the automotive insurance ecosystem.
2768
- */
2769
- readonly vehicles: InsurUpVehicleClient;
2770
- /**
2771
- * Property Management Client
2772
- *
2773
- * Provides comprehensive property management operations for handling customer properties, Turkish address hierarchy queries,
2774
- * DASK earthquake insurance lookups, and property-based insurance operations within the real estate insurance ecosystem.
2775
- */
2776
- readonly properties: InsurUpPropertyClient;
2777
- /**
2778
- * Policy Management Client
2779
- *
2780
- * Provides comprehensive policy management operations for handling insurance policies, policy documents,
2781
- * representative assignments, and policy administration.
2782
- */
2783
- readonly policies: InsurUpPolicyClient;
2784
- /**
2785
- * Case Management Client
2786
- *
2787
- * Provides comprehensive case management operations for handling customer service requests, claims processing,
2788
- * sales opportunities, and complaint resolution within the insurance workflow.
2789
- */
2790
- readonly cases: InsurUpCaseClient;
2791
- /**
2792
- * Webhook Management Client
2793
- *
2794
- * Provides comprehensive webhook management operations for configuring event notifications, monitoring delivery status,
2795
- * and managing external system integrations within the InsurUp platform ecosystem.
2796
- */
2797
- readonly webhooks: InsurUpWebhookClient;
2798
- /**
2799
- * Coverage Management Client
2800
- *
2801
- * Provides coverage management operations for configuring insurance product coverages, managing coverage groups,
2802
- * and retrieving available coverage options for different insurance branches within the InsurUp platform.
2803
- */
2804
- readonly coverage: InsurUpCoverageClient;
2805
- /**
2806
- * Insurance Industry Data Client
2807
- *
2808
- * Provides comprehensive insurance industry data access for retrieving insurance companies, products, resource keys,
2809
- * release notes, and financial institution information essential for platform operations and integrations.
2810
- */
2811
- readonly insurance: InsurUpInsuranceClient;
2812
- /**
2813
- * Proposal Management Client
2814
- *
2815
- * Provides comprehensive proposal management operations for creating insurance proposals, managing proposal lifecycle,
2816
- * document generation, product purchasing, and comparison tools within the insurance sales process.
2817
- */
2818
- readonly proposals: InsurUpProposalClient;
2819
- /**
2820
- * File Management Client
2821
- *
2822
- * Provides file management operations for the InsurUp platform, enabling agents to upload and manage files
2823
- * within the insurance ecosystem.
2824
- */
2825
- readonly files: InsurUpFileClient;
2826
- /**
2827
- * Language Management Client
2828
- *
2829
- * Provides language and localization operations for retrieving available languages in the InsurUp platform.
2830
- * Essential for multi-language support and internationalization features.
2831
- */
2832
- readonly languages: InsurUpLanguageClient;
2833
- /**
2834
- * Template Management Client
2835
- *
2836
- * Provides template management operations for the InsurUp platform, enabling agents to retrieve and update
2837
- * document templates, email templates, and other content templates used in insurance workflows.
2838
- */
2839
- readonly templates: InsurUpTemplateClient;
2840
- readonly options: InsurUpClientOptions;
2841
- constructor(options?: InsurUpClientOptions);
2842
- }
2843
-
2844
- /**
2845
- * @fileoverview Error handling and mapping utilities
2846
- * @description Error type mapping and parsing logic
2847
- */
2848
-
2849
- declare function extractError(error: Error): ClientError | ServerError | GraphQLErrors;
2850
- /**
2851
- * Custom InsurUp error class that extends the standard Error
2852
- */
2853
- declare class InsurUpError extends Error {
2854
- /**
2855
- * The original client, server, or GraphQL error object
2856
- */
2857
- readonly error: ClientError | ServerError | GraphQLErrors;
2858
- constructor(error: ClientError | ServerError | GraphQLErrors);
2859
- }
2860
-
2861
- /**
2862
- * @fileoverview InsurUp API Endpoints - API endpoint definitions
2863
- * @description API endpoint definitions with identical names and render functions
2864
- */
2865
- /**
2866
- * Contact form endpoints
2867
- */
2868
- declare const contactForm: {
2869
- readonly submit: "contact-form";
2870
- };
2871
- /**
2872
- * Agent management endpoints
2873
- */
2874
- declare const agents: {
2875
- readonly getCurrentAgent: "agents/me";
2876
- readonly updateCurrentAgent: "agents/me";
2877
- readonly reSyncCurrentAgentWithInsurance: "agents/me/re-sync";
2878
- readonly insuranceCompanies: {
2879
- readonly getMyInsuranceCompanies: "agents/me/insurance-companies";
2880
- readonly addInsuranceCompanyToAgent: "agents/me/insurance-companies";
2881
- readonly getBranches: {
2882
- readonly definition: "agents/me/insurance-companies/{AgentInsuranceCompanyId}/branches";
2883
- readonly render: (agentInsuranceCompanyId: string) => string;
2884
- };
2885
- readonly getConnection: {
2886
- readonly definition: "agents/me/insurance-companies/{AgentInsuranceCompanyId}/connection";
2887
- readonly render: (agentInsuranceCompanyId: string) => string;
2888
- };
2889
- readonly updateConnection: {
2890
- readonly definition: "agents/me/insurance-companies/{AgentInsuranceCompanyId}/connection";
2891
- readonly render: (agentInsuranceCompanyId: string) => string;
2892
- };
2893
- readonly updateBranches: {
2894
- readonly definition: "agents/me/insurance-companies/{AgentInsuranceCompanyId}/branches";
2895
- readonly render: (agentInsuranceCompanyId: string) => string;
2896
- };
2897
- readonly reSyncAgentInsuranceCompanyWithInsurance: {
2898
- readonly definition: "agents/me/insurance-companies/{AgentInsuranceCompanyId}/re-sync";
2899
- readonly render: (agentInsuranceCompanyId: string) => string;
2900
- };
2901
- readonly remove: {
2902
- readonly definition: "agents/me/insurance-companies/{AgentInsuranceCompanyId}";
2903
- readonly render: (agentInsuranceCompanyId: string) => string;
2904
- };
2905
- };
2906
- };
2907
- /**
2908
- * Insurance company endpoints
2909
- */
2910
- declare const insuranceCompanies: {
2911
- readonly getInsuranceCompanies: "insurance-companies";
2912
- readonly getInsuranceCompanyProducts: {
2913
- readonly definition: "insurance-companies/{InsuranceCompanyId}/products";
2914
- readonly render: (insuranceCompanyId: number) => string;
2915
- };
2916
- readonly getAllProducts: "insurance-companies/products";
2917
- readonly connectionFields: {
2918
- readonly getAgentBasedConnectionFieldsByCompanyId: {
2919
- readonly definition: "insurance-companies/{InsuranceCompanyId}/connection-fields:agent-based";
2920
- readonly render: (insuranceCompanyId: number) => string;
2921
- };
2922
- };
2923
- };
2924
- /**
2925
- * Resource keys endpoints
2926
- */
2927
- declare const resourceKeys: {
2928
- readonly getAll: "resource-keys";
2929
- };
2930
- /**
2931
- * Customer management endpoints
2932
- */
2933
- declare const customers: {
2934
- readonly createCustomer: "customers";
2935
- readonly getCurrentCustomer: "customers/me";
2936
- readonly externalLookup: "customers/external-lookup";
2937
- readonly setCustomerRepresentative: {
2938
- readonly definition: "customers/{CustomerId}/representative";
2939
- readonly render: (customerId: string) => string;
2940
- };
2941
- readonly getCustomer: {
2942
- readonly definition: "customers/{CustomerId}";
2943
- readonly render: (customerId: string) => string;
2944
- };
2945
- readonly updateCustomer: {
2946
- readonly definition: "customers/{CustomerId}";
2947
- readonly render: (customerId: string) => string;
2948
- };
2949
- readonly deleteCustomer: {
2950
- readonly definition: "customers/{CustomerId}";
2951
- readonly render: (customerId: string) => string;
2952
- };
2953
- readonly getHealthInfo: {
2954
- readonly definition: "customers/{CustomerId}/health-info";
2955
- readonly render: (customerId: string) => string;
2956
- };
2957
- readonly updateHealthInfo: {
2958
- readonly definition: "customers/{CustomerId}/health-info";
2959
- readonly render: (customerId: string) => string;
2960
- };
2961
- readonly emails: {
2962
- readonly addCustomerEmail: {
2963
- readonly definition: "customers/{CustomerId}/emails";
2964
- readonly render: (customerId: string) => string;
2965
- };
2966
- readonly removeCustomerEmail: {
2967
- readonly definition: "customers/{CustomerId}/emails/{Email}";
2968
- readonly render: (request: {
2969
- customerId: string;
2970
- email: string;
2971
- }) => string;
2972
- };
2973
- readonly changePrimaryCustomerEmail: {
2974
- readonly definition: "customers/{CustomerId}/emails/{Email}/primary";
2975
- readonly render: (request: {
2976
- customerId: string;
2977
- email: string;
2978
- }) => string;
2979
- };
2980
- readonly getCustomerEmails: {
2981
- readonly definition: "customers/{CustomerId}/emails";
2982
- readonly render: (customerId: string) => string;
2983
- };
2984
- };
2985
- readonly phoneNumbers: {
2986
- readonly addCustomerPhoneNumber: {
2987
- readonly definition: "customers/{CustomerId}/phone-numbers";
2988
- readonly render: (customerId: string) => string;
2989
- };
2990
- readonly removeCustomerPhoneNumber: {
2991
- readonly definition: "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}";
2992
- readonly render: (request: {
2993
- customerId: string;
2994
- countryCode: number;
2995
- phoneNumber: string;
2996
- }) => string;
2997
- };
2998
- readonly changePrimaryCustomerPhoneNumber: {
2999
- readonly definition: "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}/primary";
3000
- readonly render: (request: {
3001
- customerId: string;
3002
- countryCode: number;
3003
- phoneNumber: string;
3004
- }) => string;
3005
- };
3006
- readonly getCustomerPhoneNumbers: {
3007
- readonly definition: "customers/{CustomerId}/phone-numbers";
3008
- readonly render: (customerId: string) => string;
3009
- };
3010
- };
3011
- readonly contactFlows: {
3012
- readonly getCustomerContactFlows: {
3013
- readonly definition: "customers/{CustomerId}/contact-flows";
3014
- readonly render: (customerId: string, caseRef?: string | null) => string;
3015
- };
3016
- readonly createContactFlow: {
3017
- readonly definition: "customers/{CustomerId}/contact-flows";
3018
- readonly render: (customerId: string) => string;
3019
- };
3020
- readonly endContactFlow: {
3021
- readonly definition: "customers/{CustomerId}/contact-flows/{ContactFlowId}/end";
3022
- readonly render: (customerId: string, contactFlowId: string) => string;
3023
- };
3024
- };
3025
- readonly contacts: {
3026
- readonly getCustomerContacts: {
3027
- readonly definition: "customers/{CustomerId}/contacts";
3028
- readonly render: (customerId: string, caseRef?: string | null) => string;
3029
- };
3030
- readonly create: {
3031
- readonly definition: "customers/{CustomerId}/contacts";
3032
- readonly render: (customerId: string) => string;
3033
- };
3034
- };
3035
- readonly setCustomerBranch: {
3036
- readonly definition: "customers/{CustomerId}/branch";
3037
- readonly render: (customerId: string) => string;
3038
- };
3039
- readonly addresses: {
3040
- readonly create: {
3041
- readonly definition: "customers/{CustomerId}/addresses";
3042
- readonly render: (customerId: string) => string;
3043
- };
3044
- readonly update: {
3045
- readonly definition: "customers/{CustomerId}/addresses/{AddressId}";
3046
- readonly render: (customerId: string, addressId: string) => string;
3047
- };
3048
- readonly getById: {
3049
- readonly definition: "customers/{CustomerId}/addresses/{AddressId}";
3050
- readonly render: (customerId: string, addressId: string) => string;
3051
- };
3052
- readonly getAll: {
3053
- readonly definition: "customers/{CustomerId}/addresses";
3054
- readonly render: (customerId: string) => string;
3055
- };
3056
- readonly delete: {
3057
- readonly definition: "customers/{CustomerId}/addresses/{AddressId}";
3058
- readonly render: (customerId: string, addressId: string) => string;
3059
- };
3060
- };
3061
- readonly consents: {
3062
- readonly give: {
3063
- readonly definition: "customers/{CustomerId}/consents";
3064
- readonly render: (customerId: string) => string;
3065
- };
3066
- readonly revoke: {
3067
- readonly definition: "customers/{CustomerId}/consents/revoke";
3068
- readonly render: (customerId: string) => string;
3069
- };
3070
- readonly getAll: {
3071
- readonly definition: "customers/{CustomerId}/consents";
3072
- readonly render: (customerId: string) => string;
3073
- };
3074
- };
3075
- };
3076
- /**
3077
- * Address parameter endpoints
3078
- */
3079
- declare const addressParameters: {
3080
- readonly queryCities: "address-parameters/cities";
3081
- readonly queryDistricts: {
3082
- readonly definition: "address-parameters/districts";
3083
- readonly render: (request: {
3084
- cityReference: string;
3085
- }) => string;
3086
- };
3087
- readonly queryTowns: {
3088
- readonly definition: "address-parameters/towns";
3089
- readonly render: (request: {
3090
- districtReference: string;
3091
- }) => string;
3092
- };
3093
- readonly queryNeighbourhoods: {
3094
- readonly definition: "address-parameters/neighbourhoods";
3095
- readonly render: (request: {
3096
- townReference: string;
3097
- }) => string;
3098
- };
3099
- readonly queryStreets: {
3100
- readonly definition: "address-parameters/streets";
3101
- readonly render: (request: {
3102
- neighbourhoodReference: string;
3103
- }) => string;
3104
- };
3105
- readonly queryBuildings: {
3106
- readonly definition: "address-parameters/buildings";
3107
- readonly render: (request: {
3108
- streetReference: string;
3109
- }) => string;
3110
- };
3111
- readonly queryApartments: {
3112
- readonly definition: "address-parameters/apartments";
3113
- readonly render: (request: {
3114
- buildingReference: string;
3115
- }) => string;
3116
- };
3117
- };
3118
- /**
3119
- * Vehicle parameter endpoints
3120
- */
3121
- declare const vehicleParameters: {
3122
- readonly queryBrands: "vehicle-parameters/brands";
3123
- readonly queryModels: {
3124
- readonly definition: "vehicle-parameters/models";
3125
- readonly render: (request: {
3126
- brandReference: string;
3127
- year: number;
3128
- }) => string;
3129
- };
3130
- };
3131
- /**
3132
- * Vehicle endpoints
3133
- */
3134
- declare const vehicles: {
3135
- readonly getCurrentCustomerVehicles: "customers/me/vehicles";
3136
- readonly externalLookup: {
3137
- readonly definition: "customers/{CustomerId}/vehicles/external-lookup";
3138
- readonly render: (customerId: string) => string;
3139
- };
3140
- readonly create: {
3141
- readonly definition: "customers/{CustomerId}/vehicles";
3142
- readonly render: (customerId: string) => string;
3143
- };
3144
- readonly update: {
3145
- readonly definition: "customers/{CustomerId}/vehicles/{VehicleId}";
3146
- readonly render: (customerId: string, vehicleId: string) => string;
3147
- };
3148
- readonly delete: {
3149
- readonly definition: "customers/{CustomerId}/vehicles/{VehicleId}";
3150
- readonly render: (customerId: string, vehicleId: string) => string;
3151
- };
3152
- readonly get: {
3153
- readonly definition: "customers/{CustomerId}/vehicles/{VehicleId}";
3154
- readonly render: (customerId: string, vehicleId: string) => string;
3155
- };
3156
- readonly getCustomerVehicles: {
3157
- readonly definition: "customers/{CustomerId}/vehicles";
3158
- readonly render: (customerId: string) => string;
3159
- };
3160
- };
3161
- /**
3162
- * Insurance services endpoints
3163
- */
3164
- declare const insuranceServices: {
3165
- readonly queryVehicleByBrandCode: "insurance-services/query-vehicle-by-brand-code";
3166
- };
3167
- /**
3168
- * Property endpoints
3169
- */
3170
- declare const properties: {
3171
- readonly getPropertyAddressByPropertyNumber: "properties/query-address-by-property-number";
3172
- readonly queryPropertyByDaskOldPolicy: "properties/query-property-by-dask-old-policy";
3173
- readonly getCurrentCustomerProperties: "customers/me/properties";
3174
- readonly getAll: {
3175
- readonly definition: "customers/{CustomerId}/properties";
3176
- readonly render: (customerId: string) => string;
3177
- };
3178
- readonly create: {
3179
- readonly definition: "customers/{CustomerId}/properties";
3180
- readonly render: (customerId: string) => string;
3181
- };
3182
- readonly getById: {
3183
- readonly definition: "customers/{CustomerId}/properties/{PropertyId}";
3184
- readonly render: (customerId: string, propertyId: string) => string;
3185
- };
3186
- readonly update: {
3187
- readonly definition: "customers/{CustomerId}/properties/{PropertyId}";
3188
- readonly render: (customerId: string, propertyId: string) => string;
3189
- };
3190
- readonly delete: {
3191
- readonly definition: "customers/{CustomerId}/properties/{PropertyId}";
3192
- readonly render: (customerId: string, propertyId: string) => string;
3193
- };
3194
- };
3195
- /**
3196
- * Proposal endpoints
3197
- */
3198
- declare const proposals: {
3199
- readonly create: "proposals";
3200
- readonly getProposalById: {
3201
- readonly definition: "proposals/{ProposalId}";
3202
- readonly render: (proposalId: string) => string;
3203
- };
3204
- readonly getProposalSnapshot: {
3205
- readonly definition: "proposals/{ProposalId}/snapshot";
3206
- readonly render: (proposalId: string) => string;
3207
- };
3208
- readonly getProposalCoverage: {
3209
- readonly definition: "proposals/{ProposalId}/coverage";
3210
- readonly render: (proposalId: string) => string;
3211
- };
3212
- readonly getProposalProductCoverage: {
3213
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/coverage";
3214
- readonly render: (proposalId: string, proposalProductId: string) => string;
3215
- };
3216
- readonly retryFailedProposalProduct: {
3217
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/retry";
3218
- readonly render: (proposalId: string, proposalProductId: string) => string;
3219
- };
3220
- readonly getProposalProductPremiumDetail: {
3221
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/premium-detail/{InstallmentNumber}";
3222
- readonly render: (proposalId: string, proposalProductId: string, installmentNumber: number) => string;
3223
- };
3224
- readonly purchaseProposalProductSync: {
3225
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/purchase/sync";
3226
- readonly render: (proposalId: string, proposalProductId: string) => string;
3227
- };
3228
- readonly purchaseProposalProductAsync: {
3229
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/purchase/async";
3230
- readonly render: (proposalId: string, proposalProductId: string) => string;
3231
- };
3232
- readonly reviseProposal: {
3233
- readonly definition: "proposals/{ProposalId}/revise";
3234
- readonly render: (proposalId: string) => string;
3235
- };
3236
- readonly reviseProposalProduct: {
3237
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/revise";
3238
- readonly render: (proposalId: string, proposalProductId: string) => string;
3239
- };
3240
- readonly fetchProposalProductDocument: {
3241
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/document";
3242
- readonly render: (proposalId: string, proposalProductId: string) => string;
3243
- };
3244
- readonly fetchProposalInformationFormDocument: {
3245
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/information-form";
3246
- readonly render: (proposalId: string, proposalProductId: string) => string;
3247
- };
3248
- readonly sendProposalProductDocument: {
3249
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/document/send";
3250
- readonly render: (proposalId: string, proposalProductId: string) => string;
3251
- };
3252
- readonly sendProposalInformationFormDocument: {
3253
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/information-form/send";
3254
- readonly render: (proposalId: string, proposalProductId: string) => string;
3255
- };
3256
- readonly generateCompareProposalProductsPdf: {
3257
- readonly definition: "proposals/{ProposalId}/products/compare-pdf";
3258
- readonly render: (proposalId: string) => string;
3259
- };
3260
- readonly sendCompareProposalProductsPdf: {
3261
- readonly definition: "proposals/{ProposalId}/products/compare-pdf/send";
3262
- readonly render: (proposalId: string) => string;
3263
- };
3264
- readonly setProposalRepresentative: {
3265
- readonly definition: "proposals/{ProposalId}/representative";
3266
- readonly render: (proposalId: string) => string;
3267
- };
3268
- readonly setProposalBranch: {
3269
- readonly definition: "proposals/{ProposalId}/branch";
3270
- readonly render: (proposalId: string) => string;
3271
- };
3272
- readonly generateCustomerProposalDocumentPdf: {
3273
- readonly definition: "proposals/{ProposalId}/customer-document-pdf";
3274
- readonly render: (proposalId: string) => string;
3275
- };
3276
- readonly getProposalConversionTrend: {
3277
- readonly definition: "proposals/analytics/conversion-trend";
3278
- };
3279
- };
3280
- /**
3281
- * Policy endpoints
3282
- */
3283
- declare const policies: {
3284
- readonly getPolicyDetail: {
3285
- readonly definition: "policies/{PolicyId}";
3286
- readonly render: (policyId: string) => string;
3287
- };
3288
- readonly fetchPolicyDocument: {
3289
- readonly definition: "policies/{PolicyId}/document";
3290
- readonly render: (policyId: string) => string;
3291
- };
3292
- readonly sendPolicyDocument: {
3293
- readonly definition: "policies/{PolicyId}/document/send";
3294
- readonly render: (policyId: string) => string;
3295
- };
3296
- readonly setPolicyRepresentative: {
3297
- readonly definition: "policies/{PolicyId}/representative";
3298
- readonly render: (policyId: string) => string;
3299
- };
3300
- readonly setPolicyBranch: {
3301
- readonly definition: "policies/{PolicyId}/branch";
3302
- readonly render: (policyId: string) => string;
3303
- };
3304
- readonly createManualPolicy: {
3305
- readonly definition: "policies/manual";
3306
- };
3307
- readonly updateManualPolicy: {
3308
- readonly definition: "policies/manual/{PolicyId}";
3309
- readonly render: (policyId: string) => string;
3310
- };
3311
- readonly getPolicyCountAndPremiumAnalytics: {
3312
- readonly definition: "policies/analytics/count-and-premium";
3313
- };
3314
- readonly getPolicyRenewalAnalytics: {
3315
- readonly definition: "policies/analytics/renewal";
3316
- };
3317
- readonly getPolicyDistributionByBranch: {
3318
- readonly definition: "policies/analytics/distribution-by-branch";
3319
- };
3320
- readonly getRepresentativeEarningsAnalytics: {
3321
- readonly definition: "policies/analytics/representative-earnings";
3322
- };
3323
- };
3324
- /**
3325
- * Policy transfer endpoints
3326
- */
3327
- declare const policyTransfers: {
3328
- readonly create: "policy-transfers";
3329
- readonly getPolicyTransferDetail: {
3330
- readonly definition: "policy-transfers/{PolicyTransferId}";
3331
- readonly render: (policyTransferId: string) => string;
3332
- };
3333
- readonly getPolicyTransferTriggerDetail: {
3334
- readonly definition: "policy-transfers/{PolicyTransferId}/triggers/{PolicyTransferTriggerId}";
3335
- readonly render: (policyTransferId: string, policyTransferTriggerId: string) => string;
3336
- };
3337
- readonly triggerPolicyTransfer: {
3338
- readonly definition: "policy-transfers/{PolicyTransferId}/trigger";
3339
- readonly render: (policyTransferId: string) => string;
3340
- };
3341
- };
3342
- /**
3343
- * File policy transfer endpoints
3344
- */
3345
- declare const filePolicyTransfers: {
3346
- readonly create: "file-policy-transfers";
3347
- readonly getFilePolicyTransferDetail: {
3348
- readonly definition: "file-policy-transfers/{FilePolicyTransferId}";
3349
- readonly render: (filePolicyTransferId: string) => string;
3350
- };
3351
- };
3352
- /**
3353
- * Coverage choice endpoints
3354
- */
3355
- declare const coverageChoices: {
3356
- readonly getKaskoCoverageChoices: {
3357
- readonly definition: "coverage-choices:kasko";
3358
- readonly render: (vehicleUtilizationStyle?: string) => string;
3359
- };
3360
- readonly getKonutCoverageChoices: {
3361
- readonly definition: "coverage-choices:konut";
3362
- readonly render: () => string;
3363
- };
3364
- readonly getImmCoverageChoices: {
3365
- readonly definition: "coverage-choices:imm";
3366
- readonly render: () => string;
3367
- };
3368
- readonly getTssCoverageChoices: {
3369
- readonly definition: "coverage-choices:tss";
3370
- readonly render: () => string;
3371
- };
3372
- };
3373
- /**
3374
- * Agent setup request endpoints
3375
- */
3376
- declare const agentSetupRequests: {
3377
- readonly complete: "agent-setup-requests/complete";
3378
- readonly create: "agent-setup-requests";
3379
- readonly getAll: "agent-setup-requests";
3380
- readonly enter: "agent-setup-requests/enter";
3381
- readonly getAgentSetupRequestById: {
3382
- readonly definition: "agent-setup-requests/{Id}";
3383
- readonly render: (id: string) => string;
3384
- };
3385
- readonly disableAgentSetupRequest: {
3386
- readonly definition: "agent-setup-requests/{Id}/disable";
3387
- readonly render: (id: string) => string;
3388
- };
3389
- };
3390
- /**
3391
- * Agent user endpoints
3392
- */
3393
- declare const agentUsers: {
3394
- readonly forgotPassword: "agent-users/forgot-password";
3395
- readonly resetPassword: "agent-users/reset-password";
3396
- readonly checkAgentUserForgotPasswordToken: "agent-users/check-forgot-password-token";
3397
- readonly me: "agent-users/me";
3398
- readonly meRobotCode: "agent-users/me/robot-code";
3399
- readonly invite: "agent-users/invite";
3400
- readonly updateMyUser: "agent-users/me";
3401
- readonly acceptInvite: "agent-users/accept-invite";
3402
- readonly updatePassword: "agent-users/me/password";
3403
- readonly reSendInvite: {
3404
- readonly definition: "agent-users/{AgentUserId}/re-send-invite";
3405
- readonly render: (userId: string) => string;
3406
- };
3407
- readonly deactivate: {
3408
- readonly definition: "agent-users/{AgentUserId}/deactivate";
3409
- readonly render: (userId: string) => string;
3410
- };
3411
- readonly activate: {
3412
- readonly definition: "agent-users/{AgentUserId}/activate";
3413
- readonly render: (userId: string) => string;
3414
- };
3415
- readonly delete: {
3416
- readonly definition: "agent-users/{UserId}";
3417
- readonly render: (userId: string) => string;
3418
- };
3419
- readonly getById: {
3420
- readonly definition: "agent-users/{UserId}";
3421
- readonly render: (userId: string) => string;
3422
- };
3423
- readonly checkAgentUserInviteCode: {
3424
- readonly definition: "agent-users/check-invite-code";
3425
- readonly render: (code: string) => string;
3426
- };
3427
- readonly update: {
3428
- readonly definition: "agent-users/{Id}";
3429
- readonly render: (userId: string) => string;
3430
- };
3431
- readonly migrate: {
3432
- readonly definition: "agent-users/{AgentUserId}/migrate";
3433
- readonly render: (agentUserId: string) => string;
3434
- };
3435
- readonly migrateAll: "agent-users/migrate-all";
3436
- };
3437
- /**
3438
- * Agent role endpoints
3439
- */
3440
- declare const agentRoles: {
3441
- readonly getAll: "agent-roles";
3442
- readonly create: "agent-roles";
3443
- readonly update: {
3444
- readonly definition: "agent-roles/{Id}";
3445
- readonly render: (agentRoleId: string) => string;
3446
- };
3447
- readonly delete: {
3448
- readonly definition: "agent-roles/{Id}";
3449
- readonly render: (agentRoleId: string) => string;
3450
- };
3451
- readonly getById: {
3452
- readonly definition: "agent-roles/{Id}";
3453
- readonly render: (agentRoleId: string) => string;
3454
- };
3455
- };
3456
- /**
3457
- * Webhook endpoints
3458
- */
3459
- declare const webhooks: {
3460
- readonly getAll: "webhooks";
3461
- readonly create: "webhooks";
3462
- readonly getById: {
3463
- readonly definition: "webhooks/{Id}";
3464
- readonly render: (id: string) => string;
3465
- };
3466
- readonly update: {
3467
- readonly definition: "webhooks/{Id}";
3468
- readonly render: (id: string) => string;
3469
- };
3470
- readonly delete: {
3471
- readonly definition: "webhooks/{Id}";
3472
- readonly render: (id: string) => string;
3473
- };
3474
- readonly deliveries: {
3475
- readonly getById: {
3476
- readonly definition: "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}";
3477
- readonly render: (webhookId: string, webhookDeliveryId: string) => string;
3478
- };
3479
- readonly redeliver: {
3480
- readonly definition: "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}/redeliver";
3481
- readonly render: (webhookId: string, webhookDeliveryId: string) => string;
3482
- };
3483
- };
3484
- };
3485
- /**
3486
- * Case management endpoints
3487
- */
3488
- declare const cases: {
3489
- readonly createNewSaleOpportunity: "cases:new-sale-opportunity";
3490
- readonly createCrossSaleOpportunity: "cases:cross-sale-opportunity";
3491
- readonly createCancel: "cases:cancel";
3492
- readonly createEndorsement: "cases:endorsement";
3493
- readonly createComplaint: "cases:complaint";
3494
- readonly assignRepresentative: {
3495
- readonly definition: "cases/{Ref}/representative";
3496
- readonly render: (ref: string) => string;
3497
- };
3498
- readonly addNoteToCase: {
3499
- readonly definition: "cases/{Ref}/notes";
3500
- readonly render: (ref: string) => string;
3501
- };
3502
- readonly changeChannel: {
3503
- readonly definition: "cases/{Ref}/channel";
3504
- readonly render: (ref: string) => string;
3505
- };
3506
- readonly changeState: {
3507
- readonly definition: "cases/{Ref}/state";
3508
- readonly render: (ref: string) => string;
3509
- };
3510
- readonly getActivities: {
3511
- readonly definition: "cases/{Ref}/activities";
3512
- readonly render: (ref: string) => string;
3513
- };
3514
- readonly getCaseByRef: {
3515
- readonly definition: "cases/{Ref}";
3516
- readonly render: (ref: string) => string;
3517
- };
3518
- readonly getProposals: {
3519
- readonly definition: "cases/{Ref}/proposals";
3520
- readonly render: (ref: string) => string;
3521
- };
3522
- readonly getPolicies: {
3523
- readonly definition: "cases/{Ref}/policies";
3524
- readonly render: (ref: string) => string;
3525
- };
3526
- readonly setAsset: {
3527
- readonly definition: "cases/{Ref}/asset";
3528
- readonly render: (ref: string) => string;
3529
- };
3530
- readonly setBranch: {
3531
- readonly definition: "cases/{Ref}/branch";
3532
- readonly render: (ref: string) => string;
3533
- };
3534
- readonly getSalesOpportunityFunnelAnalytics: {
3535
- readonly definition: "cases/analytics/sales-opportunity-funnel";
3536
- };
3537
- readonly getOpenCaseBacklogPivotAnalytics: {
3538
- readonly definition: "cases/analytics/open-case-backlog-pivot";
3539
- };
3540
- readonly getFailedCasesReasonDistribution: {
3541
- readonly definition: "cases/analytics/failed-cases-reason-distribution";
3542
- };
3543
- readonly communicationAutomations: {
3544
- readonly getAll: "cases/communication-automations";
3545
- };
3546
- readonly getPriorityTemplates: "cases/priority-templates";
3547
- };
3548
- /**
3549
- * Coverage Groups endpoints for managing insurance coverage groups
3550
- * Sigorta teminat gruplarını yönetmek için teminat grupları endpoint'leri
3551
- */
3552
- declare const coverageGroups: {
3553
- readonly getAll: "coverage-groups";
3554
- readonly create: "coverage-groups";
3555
- readonly update: {
3556
- readonly definition: "coverage-groups/{Id}";
3557
- readonly render: (id: string) => string;
3558
- };
3559
- readonly delete: {
3560
- readonly definition: "coverage-groups/{Id}";
3561
- readonly render: (id: string) => string;
3562
- };
3563
- readonly getById: {
3564
- readonly definition: "coverage-groups/{Id}";
3565
- readonly render: (id: string) => string;
3566
- };
3567
- };
3568
- /**
3569
- * Release Notes endpoints
3570
- */
3571
- declare const releaseNotes: {
3572
- readonly getAll: "release-notes";
3573
- };
3574
- /**
3575
- * Banks endpoints
3576
- */
3577
- declare const banks: {
3578
- readonly getAll: "banks";
3579
- readonly getBranches: {
3580
- readonly definition: "banks/{BankId}/branches";
3581
- readonly render: (bankId: string) => string;
3582
- };
3583
- };
3584
- /**
3585
- * Financial Institutions endpoints
3586
- */
3587
- declare const financialInstitutions: {
3588
- readonly getAll: "financial-institutions";
3589
- };
3590
- /**
3591
- * Agent Branches endpoints
3592
- */
3593
- declare const agentBranches: {
3594
- readonly getAll: "agent-branches";
3595
- readonly create: "agent-branches";
3596
- readonly getById: {
3597
- readonly definition: "agent-branches/{Id}";
3598
- readonly render: (id: string) => string;
3599
- };
3600
- readonly update: {
3601
- readonly definition: "agent-branches/{Id}";
3602
- readonly render: (id: string) => string;
3603
- };
3604
- readonly delete: {
3605
- readonly definition: "agent-branches/{Id}";
3606
- readonly render: (id: string) => string;
3607
- };
3608
- };
3609
- /**
3610
- * Files endpoints
3611
- */
3612
- declare const files: {
3613
- readonly uploadPublicFile: "files/upload-public";
3614
- };
3615
- /**
3616
- * Languages endpoints
3617
- */
3618
- declare const languages: {
3619
- readonly getAll: "languages";
3620
- };
3621
- /**
3622
- * Templates endpoints
3623
- */
3624
- declare const templates: {
3625
- readonly getDefinitions: "templates/definitions";
3626
- readonly getAll: "templates";
3627
- readonly getByKey: {
3628
- readonly definition: "templates/{Key}";
3629
- readonly render: (key: string) => string;
3630
- };
3631
- readonly update: {
3632
- readonly definition: "templates/{Key}";
3633
- readonly render: (key: string) => string;
3634
- };
3635
- readonly delete: {
3636
- readonly definition: "templates/{Key}";
3637
- readonly render: (key: string) => string;
3638
- };
3639
- };
3640
- /**
3641
- * B2C Configuration endpoints
3642
- */
3643
- declare const b2c: {
3644
- readonly configFields: {
3645
- readonly getAll: "b2c/config-fields";
3646
- readonly updateAll: "b2c/config-fields";
3647
- };
3648
- };
3649
- /**
3650
- * Main endpoints export object
3651
- */
3652
- declare const endpoints: {
3653
- readonly customers: {
3654
- readonly createCustomer: "customers";
3655
- readonly getCurrentCustomer: "customers/me";
3656
- readonly externalLookup: "customers/external-lookup";
3657
- readonly setCustomerRepresentative: {
3658
- readonly definition: "customers/{CustomerId}/representative";
3659
- readonly render: (customerId: string) => string;
3660
- };
3661
- readonly getCustomer: {
3662
- readonly definition: "customers/{CustomerId}";
3663
- readonly render: (customerId: string) => string;
3664
- };
3665
- readonly updateCustomer: {
3666
- readonly definition: "customers/{CustomerId}";
3667
- readonly render: (customerId: string) => string;
3668
- };
3669
- readonly deleteCustomer: {
3670
- readonly definition: "customers/{CustomerId}";
3671
- readonly render: (customerId: string) => string;
3672
- };
3673
- readonly getHealthInfo: {
3674
- readonly definition: "customers/{CustomerId}/health-info";
3675
- readonly render: (customerId: string) => string;
3676
- };
3677
- readonly updateHealthInfo: {
3678
- readonly definition: "customers/{CustomerId}/health-info";
3679
- readonly render: (customerId: string) => string;
3680
- };
3681
- readonly emails: {
3682
- readonly addCustomerEmail: {
3683
- readonly definition: "customers/{CustomerId}/emails";
3684
- readonly render: (customerId: string) => string;
3685
- };
3686
- readonly removeCustomerEmail: {
3687
- readonly definition: "customers/{CustomerId}/emails/{Email}";
3688
- readonly render: (request: {
3689
- customerId: string;
3690
- email: string;
3691
- }) => string;
3692
- };
3693
- readonly changePrimaryCustomerEmail: {
3694
- readonly definition: "customers/{CustomerId}/emails/{Email}/primary";
3695
- readonly render: (request: {
3696
- customerId: string;
3697
- email: string;
3698
- }) => string;
3699
- };
3700
- readonly getCustomerEmails: {
3701
- readonly definition: "customers/{CustomerId}/emails";
3702
- readonly render: (customerId: string) => string;
3703
- };
3704
- };
3705
- readonly phoneNumbers: {
3706
- readonly addCustomerPhoneNumber: {
3707
- readonly definition: "customers/{CustomerId}/phone-numbers";
3708
- readonly render: (customerId: string) => string;
3709
- };
3710
- readonly removeCustomerPhoneNumber: {
3711
- readonly definition: "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}";
3712
- readonly render: (request: {
3713
- customerId: string;
3714
- countryCode: number;
3715
- phoneNumber: string;
3716
- }) => string;
3717
- };
3718
- readonly changePrimaryCustomerPhoneNumber: {
3719
- readonly definition: "customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}/primary";
3720
- readonly render: (request: {
3721
- customerId: string;
3722
- countryCode: number;
3723
- phoneNumber: string;
3724
- }) => string;
3725
- };
3726
- readonly getCustomerPhoneNumbers: {
3727
- readonly definition: "customers/{CustomerId}/phone-numbers";
3728
- readonly render: (customerId: string) => string;
3729
- };
3730
- };
3731
- readonly contactFlows: {
3732
- readonly getCustomerContactFlows: {
3733
- readonly definition: "customers/{CustomerId}/contact-flows";
3734
- readonly render: (customerId: string, caseRef?: string | null) => string;
3735
- };
3736
- readonly createContactFlow: {
3737
- readonly definition: "customers/{CustomerId}/contact-flows";
3738
- readonly render: (customerId: string) => string;
3739
- };
3740
- readonly endContactFlow: {
3741
- readonly definition: "customers/{CustomerId}/contact-flows/{ContactFlowId}/end";
3742
- readonly render: (customerId: string, contactFlowId: string) => string;
3743
- };
3744
- };
3745
- readonly contacts: {
3746
- readonly getCustomerContacts: {
3747
- readonly definition: "customers/{CustomerId}/contacts";
3748
- readonly render: (customerId: string, caseRef?: string | null) => string;
3749
- };
3750
- readonly create: {
3751
- readonly definition: "customers/{CustomerId}/contacts";
3752
- readonly render: (customerId: string) => string;
3753
- };
3754
- };
3755
- readonly setCustomerBranch: {
3756
- readonly definition: "customers/{CustomerId}/branch";
3757
- readonly render: (customerId: string) => string;
3758
- };
3759
- readonly addresses: {
3760
- readonly create: {
3761
- readonly definition: "customers/{CustomerId}/addresses";
3762
- readonly render: (customerId: string) => string;
3763
- };
3764
- readonly update: {
3765
- readonly definition: "customers/{CustomerId}/addresses/{AddressId}";
3766
- readonly render: (customerId: string, addressId: string) => string;
3767
- };
3768
- readonly getById: {
3769
- readonly definition: "customers/{CustomerId}/addresses/{AddressId}";
3770
- readonly render: (customerId: string, addressId: string) => string;
3771
- };
3772
- readonly getAll: {
3773
- readonly definition: "customers/{CustomerId}/addresses";
3774
- readonly render: (customerId: string) => string;
3775
- };
3776
- readonly delete: {
3777
- readonly definition: "customers/{CustomerId}/addresses/{AddressId}";
3778
- readonly render: (customerId: string, addressId: string) => string;
3779
- };
3780
- };
3781
- readonly consents: {
3782
- readonly give: {
3783
- readonly definition: "customers/{CustomerId}/consents";
3784
- readonly render: (customerId: string) => string;
3785
- };
3786
- readonly revoke: {
3787
- readonly definition: "customers/{CustomerId}/consents/revoke";
3788
- readonly render: (customerId: string) => string;
3789
- };
3790
- readonly getAll: {
3791
- readonly definition: "customers/{CustomerId}/consents";
3792
- readonly render: (customerId: string) => string;
3793
- };
3794
- };
3795
- };
3796
- readonly vehicles: {
3797
- readonly getCurrentCustomerVehicles: "customers/me/vehicles";
3798
- readonly externalLookup: {
3799
- readonly definition: "customers/{CustomerId}/vehicles/external-lookup";
3800
- readonly render: (customerId: string) => string;
3801
- };
3802
- readonly create: {
3803
- readonly definition: "customers/{CustomerId}/vehicles";
3804
- readonly render: (customerId: string) => string;
3805
- };
3806
- readonly update: {
3807
- readonly definition: "customers/{CustomerId}/vehicles/{VehicleId}";
3808
- readonly render: (customerId: string, vehicleId: string) => string;
3809
- };
3810
- readonly delete: {
3811
- readonly definition: "customers/{CustomerId}/vehicles/{VehicleId}";
3812
- readonly render: (customerId: string, vehicleId: string) => string;
3813
- };
3814
- readonly get: {
3815
- readonly definition: "customers/{CustomerId}/vehicles/{VehicleId}";
3816
- readonly render: (customerId: string, vehicleId: string) => string;
3817
- };
3818
- readonly getCustomerVehicles: {
3819
- readonly definition: "customers/{CustomerId}/vehicles";
3820
- readonly render: (customerId: string) => string;
3821
- };
3822
- };
3823
- readonly vehicleParameters: {
3824
- readonly queryBrands: "vehicle-parameters/brands";
3825
- readonly queryModels: {
3826
- readonly definition: "vehicle-parameters/models";
3827
- readonly render: (request: {
3828
- brandReference: string;
3829
- year: number;
3830
- }) => string;
3831
- };
3832
- };
3833
- readonly insuranceServices: {
3834
- readonly queryVehicleByBrandCode: "insurance-services/query-vehicle-by-brand-code";
3835
- };
3836
- readonly agents: {
3837
- readonly getCurrentAgent: "agents/me";
3838
- readonly updateCurrentAgent: "agents/me";
3839
- readonly reSyncCurrentAgentWithInsurance: "agents/me/re-sync";
3840
- readonly insuranceCompanies: {
3841
- readonly getMyInsuranceCompanies: "agents/me/insurance-companies";
3842
- readonly addInsuranceCompanyToAgent: "agents/me/insurance-companies";
3843
- readonly getBranches: {
3844
- readonly definition: "agents/me/insurance-companies/{AgentInsuranceCompanyId}/branches";
3845
- readonly render: (agentInsuranceCompanyId: string) => string;
3846
- };
3847
- readonly getConnection: {
3848
- readonly definition: "agents/me/insurance-companies/{AgentInsuranceCompanyId}/connection";
3849
- readonly render: (agentInsuranceCompanyId: string) => string;
3850
- };
3851
- readonly updateConnection: {
3852
- readonly definition: "agents/me/insurance-companies/{AgentInsuranceCompanyId}/connection";
3853
- readonly render: (agentInsuranceCompanyId: string) => string;
3854
- };
3855
- readonly updateBranches: {
3856
- readonly definition: "agents/me/insurance-companies/{AgentInsuranceCompanyId}/branches";
3857
- readonly render: (agentInsuranceCompanyId: string) => string;
3858
- };
3859
- readonly reSyncAgentInsuranceCompanyWithInsurance: {
3860
- readonly definition: "agents/me/insurance-companies/{AgentInsuranceCompanyId}/re-sync";
3861
- readonly render: (agentInsuranceCompanyId: string) => string;
3862
- };
3863
- readonly remove: {
3864
- readonly definition: "agents/me/insurance-companies/{AgentInsuranceCompanyId}";
3865
- readonly render: (agentInsuranceCompanyId: string) => string;
3866
- };
3867
- };
3868
- };
3869
- readonly insuranceCompanies: {
3870
- readonly getInsuranceCompanies: "insurance-companies";
3871
- readonly getInsuranceCompanyProducts: {
3872
- readonly definition: "insurance-companies/{InsuranceCompanyId}/products";
3873
- readonly render: (insuranceCompanyId: number) => string;
3874
- };
3875
- readonly getAllProducts: "insurance-companies/products";
3876
- readonly connectionFields: {
3877
- readonly getAgentBasedConnectionFieldsByCompanyId: {
3878
- readonly definition: "insurance-companies/{InsuranceCompanyId}/connection-fields:agent-based";
3879
- readonly render: (insuranceCompanyId: number) => string;
3880
- };
3881
- };
3882
- };
3883
- readonly resourceKeys: {
3884
- readonly getAll: "resource-keys";
3885
- };
3886
- readonly releaseNotes: {
3887
- readonly getAll: "release-notes";
3888
- };
3889
- readonly banks: {
3890
- readonly getAll: "banks";
3891
- readonly getBranches: {
3892
- readonly definition: "banks/{BankId}/branches";
3893
- readonly render: (bankId: string) => string;
3894
- };
3895
- };
3896
- readonly financialInstitutions: {
3897
- readonly getAll: "financial-institutions";
3898
- };
3899
- readonly policies: {
3900
- readonly getPolicyDetail: {
3901
- readonly definition: "policies/{PolicyId}";
3902
- readonly render: (policyId: string) => string;
3903
- };
3904
- readonly fetchPolicyDocument: {
3905
- readonly definition: "policies/{PolicyId}/document";
3906
- readonly render: (policyId: string) => string;
3907
- };
3908
- readonly sendPolicyDocument: {
3909
- readonly definition: "policies/{PolicyId}/document/send";
3910
- readonly render: (policyId: string) => string;
3911
- };
3912
- readonly setPolicyRepresentative: {
3913
- readonly definition: "policies/{PolicyId}/representative";
3914
- readonly render: (policyId: string) => string;
3915
- };
3916
- readonly setPolicyBranch: {
3917
- readonly definition: "policies/{PolicyId}/branch";
3918
- readonly render: (policyId: string) => string;
3919
- };
3920
- readonly createManualPolicy: {
3921
- readonly definition: "policies/manual";
3922
- };
3923
- readonly updateManualPolicy: {
3924
- readonly definition: "policies/manual/{PolicyId}";
3925
- readonly render: (policyId: string) => string;
3926
- };
3927
- readonly getPolicyCountAndPremiumAnalytics: {
3928
- readonly definition: "policies/analytics/count-and-premium";
3929
- };
3930
- readonly getPolicyRenewalAnalytics: {
3931
- readonly definition: "policies/analytics/renewal";
3932
- };
3933
- readonly getPolicyDistributionByBranch: {
3934
- readonly definition: "policies/analytics/distribution-by-branch";
3935
- };
3936
- readonly getRepresentativeEarningsAnalytics: {
3937
- readonly definition: "policies/analytics/representative-earnings";
3938
- };
3939
- };
3940
- readonly policyTransfers: {
3941
- readonly create: "policy-transfers";
3942
- readonly getPolicyTransferDetail: {
3943
- readonly definition: "policy-transfers/{PolicyTransferId}";
3944
- readonly render: (policyTransferId: string) => string;
3945
- };
3946
- readonly getPolicyTransferTriggerDetail: {
3947
- readonly definition: "policy-transfers/{PolicyTransferId}/triggers/{PolicyTransferTriggerId}";
3948
- readonly render: (policyTransferId: string, policyTransferTriggerId: string) => string;
3949
- };
3950
- readonly triggerPolicyTransfer: {
3951
- readonly definition: "policy-transfers/{PolicyTransferId}/trigger";
3952
- readonly render: (policyTransferId: string) => string;
3953
- };
3954
- };
3955
- readonly filePolicyTransfers: {
3956
- readonly create: "file-policy-transfers";
3957
- readonly getFilePolicyTransferDetail: {
3958
- readonly definition: "file-policy-transfers/{FilePolicyTransferId}";
3959
- readonly render: (filePolicyTransferId: string) => string;
3960
- };
3961
- };
3962
- readonly cases: {
3963
- readonly createNewSaleOpportunity: "cases:new-sale-opportunity";
3964
- readonly createCrossSaleOpportunity: "cases:cross-sale-opportunity";
3965
- readonly createCancel: "cases:cancel";
3966
- readonly createEndorsement: "cases:endorsement";
3967
- readonly createComplaint: "cases:complaint";
3968
- readonly assignRepresentative: {
3969
- readonly definition: "cases/{Ref}/representative";
3970
- readonly render: (ref: string) => string;
3971
- };
3972
- readonly addNoteToCase: {
3973
- readonly definition: "cases/{Ref}/notes";
3974
- readonly render: (ref: string) => string;
3975
- };
3976
- readonly changeChannel: {
3977
- readonly definition: "cases/{Ref}/channel";
3978
- readonly render: (ref: string) => string;
3979
- };
3980
- readonly changeState: {
3981
- readonly definition: "cases/{Ref}/state";
3982
- readonly render: (ref: string) => string;
3983
- };
3984
- readonly getActivities: {
3985
- readonly definition: "cases/{Ref}/activities";
3986
- readonly render: (ref: string) => string;
3987
- };
3988
- readonly getCaseByRef: {
3989
- readonly definition: "cases/{Ref}";
3990
- readonly render: (ref: string) => string;
3991
- };
3992
- readonly getProposals: {
3993
- readonly definition: "cases/{Ref}/proposals";
3994
- readonly render: (ref: string) => string;
3995
- };
3996
- readonly getPolicies: {
3997
- readonly definition: "cases/{Ref}/policies";
3998
- readonly render: (ref: string) => string;
3999
- };
4000
- readonly setAsset: {
4001
- readonly definition: "cases/{Ref}/asset";
4002
- readonly render: (ref: string) => string;
4003
- };
4004
- readonly setBranch: {
4005
- readonly definition: "cases/{Ref}/branch";
4006
- readonly render: (ref: string) => string;
4007
- };
4008
- readonly getSalesOpportunityFunnelAnalytics: {
4009
- readonly definition: "cases/analytics/sales-opportunity-funnel";
4010
- };
4011
- readonly getOpenCaseBacklogPivotAnalytics: {
4012
- readonly definition: "cases/analytics/open-case-backlog-pivot";
4013
- };
4014
- readonly getFailedCasesReasonDistribution: {
4015
- readonly definition: "cases/analytics/failed-cases-reason-distribution";
4016
- };
4017
- readonly communicationAutomations: {
4018
- readonly getAll: "cases/communication-automations";
4019
- };
4020
- readonly getPriorityTemplates: "cases/priority-templates";
4021
- };
4022
- readonly coverageGroups: {
4023
- readonly getAll: "coverage-groups";
4024
- readonly create: "coverage-groups";
4025
- readonly update: {
4026
- readonly definition: "coverage-groups/{Id}";
4027
- readonly render: (id: string) => string;
4028
- };
4029
- readonly delete: {
4030
- readonly definition: "coverage-groups/{Id}";
4031
- readonly render: (id: string) => string;
4032
- };
4033
- readonly getById: {
4034
- readonly definition: "coverage-groups/{Id}";
4035
- readonly render: (id: string) => string;
4036
- };
4037
- };
4038
- readonly webhooks: {
4039
- readonly getAll: "webhooks";
4040
- readonly create: "webhooks";
4041
- readonly getById: {
4042
- readonly definition: "webhooks/{Id}";
4043
- readonly render: (id: string) => string;
4044
- };
4045
- readonly update: {
4046
- readonly definition: "webhooks/{Id}";
4047
- readonly render: (id: string) => string;
4048
- };
4049
- readonly delete: {
4050
- readonly definition: "webhooks/{Id}";
4051
- readonly render: (id: string) => string;
4052
- };
4053
- readonly deliveries: {
4054
- readonly getById: {
4055
- readonly definition: "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}";
4056
- readonly render: (webhookId: string, webhookDeliveryId: string) => string;
4057
- };
4058
- readonly redeliver: {
4059
- readonly definition: "webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}/redeliver";
4060
- readonly render: (webhookId: string, webhookDeliveryId: string) => string;
4061
- };
4062
- };
4063
- };
4064
- readonly agentBranches: {
4065
- readonly getAll: "agent-branches";
4066
- readonly create: "agent-branches";
4067
- readonly getById: {
4068
- readonly definition: "agent-branches/{Id}";
4069
- readonly render: (id: string) => string;
4070
- };
4071
- readonly update: {
4072
- readonly definition: "agent-branches/{Id}";
4073
- readonly render: (id: string) => string;
4074
- };
4075
- readonly delete: {
4076
- readonly definition: "agent-branches/{Id}";
4077
- readonly render: (id: string) => string;
4078
- };
4079
- };
4080
- readonly files: {
4081
- readonly uploadPublicFile: "files/upload-public";
4082
- };
4083
- readonly languages: {
4084
- readonly getAll: "languages";
4085
- };
4086
- readonly templates: {
4087
- readonly getDefinitions: "templates/definitions";
4088
- readonly getAll: "templates";
4089
- readonly getByKey: {
4090
- readonly definition: "templates/{Key}";
4091
- readonly render: (key: string) => string;
4092
- };
4093
- readonly update: {
4094
- readonly definition: "templates/{Key}";
4095
- readonly render: (key: string) => string;
4096
- };
4097
- readonly delete: {
4098
- readonly definition: "templates/{Key}";
4099
- readonly render: (key: string) => string;
4100
- };
4101
- };
4102
- readonly b2c: {
4103
- readonly configFields: {
4104
- readonly getAll: "b2c/config-fields";
4105
- readonly updateAll: "b2c/config-fields";
4106
- };
4107
- };
4108
- readonly proposals: {
4109
- readonly create: "proposals";
4110
- readonly getProposalById: {
4111
- readonly definition: "proposals/{ProposalId}";
4112
- readonly render: (proposalId: string) => string;
4113
- };
4114
- readonly getProposalSnapshot: {
4115
- readonly definition: "proposals/{ProposalId}/snapshot";
4116
- readonly render: (proposalId: string) => string;
4117
- };
4118
- readonly getProposalCoverage: {
4119
- readonly definition: "proposals/{ProposalId}/coverage";
4120
- readonly render: (proposalId: string) => string;
4121
- };
4122
- readonly getProposalProductCoverage: {
4123
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/coverage";
4124
- readonly render: (proposalId: string, proposalProductId: string) => string;
4125
- };
4126
- readonly retryFailedProposalProduct: {
4127
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/retry";
4128
- readonly render: (proposalId: string, proposalProductId: string) => string;
4129
- };
4130
- readonly getProposalProductPremiumDetail: {
4131
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/premium-detail/{InstallmentNumber}";
4132
- readonly render: (proposalId: string, proposalProductId: string, installmentNumber: number) => string;
4133
- };
4134
- readonly purchaseProposalProductSync: {
4135
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/purchase/sync";
4136
- readonly render: (proposalId: string, proposalProductId: string) => string;
4137
- };
4138
- readonly purchaseProposalProductAsync: {
4139
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/purchase/async";
4140
- readonly render: (proposalId: string, proposalProductId: string) => string;
4141
- };
4142
- readonly reviseProposal: {
4143
- readonly definition: "proposals/{ProposalId}/revise";
4144
- readonly render: (proposalId: string) => string;
4145
- };
4146
- readonly reviseProposalProduct: {
4147
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/revise";
4148
- readonly render: (proposalId: string, proposalProductId: string) => string;
4149
- };
4150
- readonly fetchProposalProductDocument: {
4151
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/document";
4152
- readonly render: (proposalId: string, proposalProductId: string) => string;
4153
- };
4154
- readonly fetchProposalInformationFormDocument: {
4155
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/information-form";
4156
- readonly render: (proposalId: string, proposalProductId: string) => string;
4157
- };
4158
- readonly sendProposalProductDocument: {
4159
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/document/send";
4160
- readonly render: (proposalId: string, proposalProductId: string) => string;
4161
- };
4162
- readonly sendProposalInformationFormDocument: {
4163
- readonly definition: "proposals/{ProposalId}/products/{ProposalProductId}/information-form/send";
4164
- readonly render: (proposalId: string, proposalProductId: string) => string;
4165
- };
4166
- readonly generateCompareProposalProductsPdf: {
4167
- readonly definition: "proposals/{ProposalId}/products/compare-pdf";
4168
- readonly render: (proposalId: string) => string;
4169
- };
4170
- readonly sendCompareProposalProductsPdf: {
4171
- readonly definition: "proposals/{ProposalId}/products/compare-pdf/send";
4172
- readonly render: (proposalId: string) => string;
4173
- };
4174
- readonly setProposalRepresentative: {
4175
- readonly definition: "proposals/{ProposalId}/representative";
4176
- readonly render: (proposalId: string) => string;
4177
- };
4178
- readonly setProposalBranch: {
4179
- readonly definition: "proposals/{ProposalId}/branch";
4180
- readonly render: (proposalId: string) => string;
4181
- };
4182
- readonly generateCustomerProposalDocumentPdf: {
4183
- readonly definition: "proposals/{ProposalId}/customer-document-pdf";
4184
- readonly render: (proposalId: string) => string;
4185
- };
4186
- readonly getProposalConversionTrend: {
4187
- readonly definition: "proposals/analytics/conversion-trend";
4188
- };
4189
- };
4190
- };
4191
-
4192
- declare const endpoints$1_addressParameters: typeof addressParameters;
4193
- declare const endpoints$1_agentBranches: typeof agentBranches;
4194
- declare const endpoints$1_agentRoles: typeof agentRoles;
4195
- declare const endpoints$1_agentSetupRequests: typeof agentSetupRequests;
4196
- declare const endpoints$1_agentUsers: typeof agentUsers;
4197
- declare const endpoints$1_agents: typeof agents;
4198
- declare const endpoints$1_b2c: typeof b2c;
4199
- declare const endpoints$1_banks: typeof banks;
4200
- declare const endpoints$1_cases: typeof cases;
4201
- declare const endpoints$1_contactForm: typeof contactForm;
4202
- declare const endpoints$1_coverageChoices: typeof coverageChoices;
4203
- declare const endpoints$1_coverageGroups: typeof coverageGroups;
4204
- declare const endpoints$1_customers: typeof customers;
4205
- declare const endpoints$1_endpoints: typeof endpoints;
4206
- declare const endpoints$1_filePolicyTransfers: typeof filePolicyTransfers;
4207
- declare const endpoints$1_files: typeof files;
4208
- declare const endpoints$1_financialInstitutions: typeof financialInstitutions;
4209
- declare const endpoints$1_insuranceCompanies: typeof insuranceCompanies;
4210
- declare const endpoints$1_insuranceServices: typeof insuranceServices;
4211
- declare const endpoints$1_languages: typeof languages;
4212
- declare const endpoints$1_policies: typeof policies;
4213
- declare const endpoints$1_policyTransfers: typeof policyTransfers;
4214
- declare const endpoints$1_properties: typeof properties;
4215
- declare const endpoints$1_proposals: typeof proposals;
4216
- declare const endpoints$1_releaseNotes: typeof releaseNotes;
4217
- declare const endpoints$1_resourceKeys: typeof resourceKeys;
4218
- declare const endpoints$1_templates: typeof templates;
4219
- declare const endpoints$1_vehicleParameters: typeof vehicleParameters;
4220
- declare const endpoints$1_vehicles: typeof vehicles;
4221
- declare const endpoints$1_webhooks: typeof webhooks;
4222
- declare namespace endpoints$1 {
4223
- export { endpoints$1_addressParameters as addressParameters, endpoints$1_agentBranches as agentBranches, endpoints$1_agentRoles as agentRoles, endpoints$1_agentSetupRequests as agentSetupRequests, endpoints$1_agentUsers as agentUsers, endpoints$1_agents as agents, endpoints$1_b2c as b2c, endpoints$1_banks as banks, endpoints$1_cases as cases, endpoints$1_contactForm as contactForm, endpoints$1_coverageChoices as coverageChoices, endpoints$1_coverageGroups as coverageGroups, endpoints$1_customers as customers, endpoints$1_endpoints as endpoints, endpoints$1_filePolicyTransfers as filePolicyTransfers, endpoints$1_files as files, endpoints$1_financialInstitutions as financialInstitutions, endpoints$1_insuranceCompanies as insuranceCompanies, endpoints$1_insuranceServices as insuranceServices, endpoints$1_languages as languages, endpoints$1_policies as policies, endpoints$1_policyTransfers as policyTransfers, endpoints$1_properties as properties, endpoints$1_proposals as proposals, endpoints$1_releaseNotes as releaseNotes, endpoints$1_resourceKeys as resourceKeys, endpoints$1_templates as templates, endpoints$1_vehicleParameters as vehicleParameters, endpoints$1_vehicles as vehicles, endpoints$1_webhooks as webhooks };
4224
- }
4225
-
4226
- export { type BackoffStrategy, type ClientError, DefaultInsurUpClient, endpoints$1 as Endpoints, type GraphQLErrorExtensions, type GraphQLErrorItem, type GraphQLErrorLocation, type GraphQLErrors, type GraphQLRequest, type GraphQLResponse, GraphQLTransport, InsurUpAgentBranchClient, InsurUpAgentClient, InsurUpAgentRoleClient, InsurUpAgentSetupClient, InsurUpAgentUserClient, InsurUpCaseClient, InsurUpClientErrorType, type InsurUpClientOptions, InsurUpCoverageClient, InsurUpCustomerClient, InsurUpError, InsurUpFileClient, InsurUpGraphQLErrorCode, type InsurUpGraphQLResult, InsurUpInsuranceClient, InsurUpLanguageClient, InsurUpPolicyClient, InsurUpPropertyClient, InsurUpProposalClient, type InsurUpResult, InsurUpServerErrorType, InsurUpTemplateClient, InsurUpVehicleClient, InsurUpWebhookClient, type LogLevel, type Logger, type RequestConfig, type RequestInterceptor, type RequestOptions, type ResponseInterceptor, type RetryOptions, type ServerError, type Success, type SuccessNoContent, type TokenProvider, VERSION, type ValidationError, createGraphQLErrors, extractError, getDataOrThrow, getGraphQLDataOrThrow, throwIfError, throwIfGraphQLError };