@insurup/sdk 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +55 -58
  2. package/dist/client/client.d.ts +153 -0
  3. package/dist/client/client.d.ts.map +1 -0
  4. package/dist/client/graphql.d.ts +51 -0
  5. package/dist/client/graphql.d.ts.map +1 -0
  6. package/dist/client/http.d.ts +173 -0
  7. package/dist/client/http.d.ts.map +1 -0
  8. package/dist/clients/agent.d.ts +121 -0
  9. package/dist/clients/agent.d.ts.map +1 -0
  10. package/dist/clients/agentBranch.d.ts +61 -0
  11. package/dist/clients/agentBranch.d.ts.map +1 -0
  12. package/dist/clients/agentRole.d.ts +60 -0
  13. package/dist/clients/agentRole.d.ts.map +1 -0
  14. package/dist/clients/agentSetup.d.ts +34 -0
  15. package/dist/clients/agentSetup.d.ts.map +1 -0
  16. package/dist/clients/agentUser.d.ts +176 -0
  17. package/dist/clients/agentUser.d.ts.map +1 -0
  18. package/dist/clients/case.d.ts +232 -0
  19. package/dist/clients/case.d.ts.map +1 -0
  20. package/dist/clients/coverage.d.ts +98 -0
  21. package/dist/clients/coverage.d.ts.map +1 -0
  22. package/dist/clients/customer.d.ts +216 -0
  23. package/dist/clients/customer.d.ts.map +1 -0
  24. package/dist/clients/file.d.ts +30 -0
  25. package/dist/clients/file.d.ts.map +1 -0
  26. package/dist/clients/insurance.d.ts +105 -0
  27. package/dist/clients/insurance.d.ts.map +1 -0
  28. package/dist/clients/language.d.ts +27 -0
  29. package/dist/clients/language.d.ts.map +1 -0
  30. package/dist/clients/policy.d.ts +251 -0
  31. package/dist/clients/policy.d.ts.map +1 -0
  32. package/dist/clients/property.d.ts +163 -0
  33. package/dist/clients/property.d.ts.map +1 -0
  34. package/dist/clients/proposal.d.ts +232 -0
  35. package/dist/clients/proposal.d.ts.map +1 -0
  36. package/dist/clients/template.d.ts +73 -0
  37. package/dist/clients/template.d.ts.map +1 -0
  38. package/dist/clients/vehicle.d.ts +112 -0
  39. package/dist/clients/vehicle.d.ts.map +1 -0
  40. package/dist/clients/webhook.d.ts +106 -0
  41. package/dist/clients/webhook.d.ts.map +1 -0
  42. package/dist/core/config.d.ts +38 -0
  43. package/dist/core/config.d.ts.map +1 -0
  44. package/dist/core/endpoints.d.ts +1331 -0
  45. package/dist/core/endpoints.d.ts.map +1 -0
  46. package/dist/core/error-types.d.ts +66 -0
  47. package/dist/core/error-types.d.ts.map +1 -0
  48. package/dist/core/errors.d.ts +42 -0
  49. package/dist/core/errors.d.ts.map +1 -0
  50. package/dist/core/options.d.ts +221 -0
  51. package/dist/core/options.d.ts.map +1 -0
  52. package/dist/core/result.d.ts +183 -0
  53. package/dist/core/result.d.ts.map +1 -0
  54. package/dist/core/retry.d.ts +15 -0
  55. package/dist/core/retry.d.ts.map +1 -0
  56. package/dist/index.browser.js +1 -1
  57. package/dist/index.browser.js.map +1 -1
  58. package/dist/index.cjs +144 -506
  59. package/dist/index.cjs.map +1 -1
  60. package/dist/index.d.ts +31 -4225
  61. package/dist/index.d.ts.map +1 -0
  62. package/dist/index.js +144 -506
  63. package/dist/index.js.map +1 -1
  64. package/dist/version.d.ts +10 -0
  65. package/dist/version.d.ts.map +1 -0
  66. package/package.json +16 -13
  67. package/dist/index.d.cts +0 -4226
@@ -0,0 +1,121 @@
1
+ import type { HttpTransport } from '../client/http.js';
2
+ import type { InsurUpResult } from '../core/result.js';
3
+ import type { RequestOptions } from '../core/options.js';
4
+ import type { GetCurrentAgentResult, UpdateCurrentAgentRequest, GetMyAgentInsuranceCompaniesResult, GetAgentInsuranceCompanyBranchesResult, GetAgentInsuranceCompanyConnectionResult, AddInsuranceCompanyToAgentRequest, UpdateAgentInsuranceCompanyConnectionRequest, UpdateAgentInsuranceCompanyBranchesRequest, ReSyncAgentInsuranceCompanyWithInsuranceRequest, GetB2CConfigFieldsResult, UpdateB2CConfigFieldsRequest } from '@insurup/contracts';
5
+ /**
6
+ * Provides agent management operations for the InsurUp platform, enabling agents to manage their profile,
7
+ * insurance company connections, and business relationships within the insurance ecosystem.
8
+ *
9
+ * InsurUp platformunda acente yönetimi işlemlerini sağlar; acentelerin profilerini, sigorta şirketi
10
+ * bağlantılarını ve sigorta ekosistemi içindeki iş ilişkilerini yönetmelerine olanak tanır.
11
+ */
12
+ export declare class InsurUpAgentClient {
13
+ private readonly http;
14
+ constructor(http: HttpTransport);
15
+ /**
16
+ * Retrieves the current agent's profile information including business details and configuration settings.
17
+ *
18
+ * Mevcut acentenin iş detayları ve yapılandırma ayarları dahil profil bilgilerini getirir.
19
+ *
20
+ * @returns Agent profile information / Acente profil bilgileri
21
+ */
22
+ getCurrentAgent(options?: RequestOptions): Promise<InsurUpResult<GetCurrentAgentResult>>;
23
+ /**
24
+ * Updates the current agent's profile information such as business details, contact information, and operational preferences.
25
+ *
26
+ * Mevcut acentenin iş detayları, iletişim bilgileri ve operasyonel tercihleri gibi profil bilgilerini günceller.
27
+ *
28
+ * @param request Agent profile update data / Acente profil güncelleme verileri
29
+ * @returns Operation result / İşlem sonucu
30
+ */
31
+ updateCurrentAgent(request: UpdateCurrentAgentRequest, options?: RequestOptions): Promise<InsurUpResult>;
32
+ /**
33
+ * Retrieves all insurance companies that the current agent is affiliated with or has authorization to work with.
34
+ *
35
+ * Mevcut acentenin bağlı olduğu veya çalışma yetkisine sahip olduğu tüm sigorta şirketlerini getirir.
36
+ *
37
+ * @returns List of agent's insurance companies / Acentenin sigorta şirketleri listesi
38
+ */
39
+ getAgentInsuranceCompaniesAsync(options?: RequestOptions): Promise<InsurUpResult<GetMyAgentInsuranceCompaniesResult[]>>;
40
+ /**
41
+ * Retrieves the available product branches (Kasko, TSS, IMM, DASK, etc.) for a specific insurance company that the agent can offer.
42
+ *
43
+ * Acentenin sunabileceği belirli bir sigorta şirketi için mevcut ürün dallarını (Kasko, TSS, İMM, DASK, vb.) getirir.
44
+ *
45
+ * @param agentInsuranceCompanyId Insurance company relationship identifier / Sigorta şirketi ilişki tanımlayıcısı
46
+ * @returns Available product branches / Mevcut ürün dalları
47
+ */
48
+ getAgentInsuranceCompanyBranchesAsync(agentInsuranceCompanyId: string, options?: RequestOptions): Promise<InsurUpResult<GetAgentInsuranceCompanyBranchesResult[]>>;
49
+ /**
50
+ * Retrieves the technical connection configuration and credentials for integrating with a specific insurance company's systems.
51
+ *
52
+ * Belirli bir sigorta şirketinin sistemleri ile entegrasyon için teknik bağlantı yapılandırması ve kimlik bilgilerini getirir.
53
+ *
54
+ * @param agentInsuranceCompanyId Insurance company relationship identifier / Sigorta şirketi ilişki tanımlayıcısı
55
+ * @returns Connection configuration details / Bağlantı yapılandırma detayları
56
+ */
57
+ getAgentInsuranceCompanyConnectionAsync(agentInsuranceCompanyId: string, options?: RequestOptions): Promise<InsurUpResult<GetAgentInsuranceCompanyConnectionResult>>;
58
+ /**
59
+ * Establishes a new business relationship between the agent and an insurance company, enabling the agent to offer that company's products.
60
+ *
61
+ * Acente ile sigorta şirketi arasında yeni bir iş ilişkisi kurar ve acentenin o şirketin ürünlerini sunmasına olanak tanır.
62
+ *
63
+ * @param request Insurance company association request / Sigorta şirketi ilişkilendirme talebi
64
+ * @returns Operation result / İşlem sonucu
65
+ */
66
+ addAgentInsuranceCompany(request: AddInsuranceCompanyToAgentRequest, options?: RequestOptions): Promise<InsurUpResult>;
67
+ /**
68
+ * Removes the business relationship between the agent and an insurance company, terminating the agent's ability to offer that company's products.
69
+ *
70
+ * Acente ile sigorta şirketi arasındaki iş ilişkisini kaldırır ve acentenin o şirketin ürünlerini sunma yeteneğini sonlandırır.
71
+ *
72
+ * @param agentInsuranceCompanyId Insurance company relationship identifier to remove / Kaldırılacak sigorta şirketi ilişki tanımlayıcısı
73
+ * @returns Operation result / İşlem sonucu
74
+ */
75
+ removeAgentInsuranceCompany(agentInsuranceCompanyId: string, options?: RequestOptions): Promise<InsurUpResult>;
76
+ /**
77
+ * Updates the technical connection settings and credentials for integrating with an insurance company's API or systems.
78
+ *
79
+ * Bir sigorta şirketinin API'si veya sistemleri ile entegrasyon için teknik bağlantı ayarları ve kimlik bilgilerini günceller.
80
+ *
81
+ * @param request Connection configuration update request / Bağlantı yapılandırma güncelleme talebi
82
+ * @returns Operation result / İşlem sonucu
83
+ */
84
+ updateAgentInsuranceCompanyConnection(request: UpdateAgentInsuranceCompanyConnectionRequest, options?: RequestOptions): Promise<InsurUpResult>;
85
+ /**
86
+ * Updates which product branches (Kasko, TSS, IMM, DASK, etc.) the agent is authorized to offer for a specific insurance company.
87
+ *
88
+ * Acentenin belirli bir sigorta şirketi için hangi ürün dallarını (Kasko, TSS, İMM, DASK, vb.) sunma yetkisine sahip olduğunu günceller.
89
+ *
90
+ * @param request Branch authorization update request / Şube yetkilendirme güncelleme talebi
91
+ * @returns Operation result / İşlem sonucu
92
+ */
93
+ updateAgentInsuranceCompanyBranches(request: UpdateAgentInsuranceCompanyBranchesRequest, options?: RequestOptions): Promise<InsurUpResult>;
94
+ /**
95
+ * Re-synchronizes the agent's configuration and authorizations with the insurance company's systems to ensure data consistency and updated permissions.
96
+ *
97
+ * 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.
98
+ *
99
+ * @param request Re-synchronization request details / Yeniden senkronizasyon talep detayları
100
+ * @returns Operation result / İşlem sonucu
101
+ */
102
+ reSyncAgentInsuranceCompanyWithInsurance(request: ReSyncAgentInsuranceCompanyWithInsuranceRequest, options?: RequestOptions): Promise<InsurUpResult>;
103
+ /**
104
+ * Retrieves all B2C configuration fields that define the customizable settings and parameters for the agent's customer-facing interface.
105
+ *
106
+ * 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.
107
+ *
108
+ * @returns List of B2C configuration fields
109
+ */
110
+ getB2CConfigFields(options?: RequestOptions): Promise<InsurUpResult<GetB2CConfigFieldsResult>>;
111
+ /**
112
+ * Updates all B2C configuration fields at once, allowing agents to customize their customer-facing interface settings and branding parameters.
113
+ *
114
+ * 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.
115
+ *
116
+ * @param request B2C configuration fields update data
117
+ * @returns Operation result
118
+ */
119
+ updateB2CConfigFields(request: UpdateB2CConfigFieldsRequest, options?: RequestOptions): Promise<InsurUpResult>;
120
+ }
121
+ //# sourceMappingURL=agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/clients/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,kCAAkC,EAClC,sCAAsC,EACtC,wCAAwC,EACxC,iCAAiC,EACjC,4CAA4C,EAC5C,0CAA0C,EAC1C,+CAA+C,EAC/C,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,oBAAoB,CAAC;AAG5B;;;;;;GAMG;AACH,qBAAa,kBAAkB;IACjB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,aAAa;IAEhD;;;;;;OAMG;IACG,eAAe,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;IAI9F;;;;;;;OAOG;IACG,kBAAkB,CACtB,OAAO,EAAE,yBAAyB,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IAIzB;;;;;;OAMG;IACG,+BAA+B,CACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,kCAAkC,EAAE,CAAC,CAAC;IAO/D;;;;;;;OAOG;IACG,qCAAqC,CACzC,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,sCAAsC,EAAE,CAAC,CAAC;IAKnE;;;;;;;OAOG;IACG,uCAAuC,CAC3C,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,wCAAwC,CAAC,CAAC;IAKnE;;;;;;;OAOG;IACG,wBAAwB,CAC5B,OAAO,EAAE,iCAAiC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IAQzB;;;;;;;OAOG;IACG,2BAA2B,CAC/B,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IAKzB;;;;;;;OAOG;IACG,qCAAqC,CACzC,OAAO,EAAE,4CAA4C,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IAOzB;;;;;;;OAOG;IACG,mCAAmC,CACvC,OAAO,EAAE,0CAA0C,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IAOzB;;;;;;;OAOG;IACG,wCAAwC,CAC5C,OAAO,EAAE,+CAA+C,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IAOzB;;;;;;OAMG;IACG,kBAAkB,CACtB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC;IAInD;;;;;;;OAOG;IACG,qBAAqB,CACzB,OAAO,EAAE,4BAA4B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;CAG1B"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @fileoverview Agent Branch Client - Agent branch management operations
3
+ * @description Provides branch management operations for insurance agents
4
+ */
5
+ import type { HttpTransport } from '../client/http.js';
6
+ import type { InsurUpResult } from '../core/result.js';
7
+ import type { RequestOptions } from '../core/options.js';
8
+ import type { CreateAgentBranchRequest, UpdateAgentBranchRequest, DeleteAgentBranchRequest, GetAgentBranchResult, GetAllAgentBranchesResult } from '@insurup/contracts';
9
+ /**
10
+ * Provides branch management operations for insurance agents, enabling the creation and administration
11
+ * of organizational branches within agency structures.
12
+ */
13
+ export declare class InsurUpAgentBranchClient {
14
+ private readonly http;
15
+ constructor(http: HttpTransport);
16
+ /**
17
+ * Creates a new agent branch within the agency structure with optional parent branch relationship.
18
+ *
19
+ * Acente yapısı içinde isteğe bağlı üst şube ilişkisi ile yeni bir acente şubesi oluşturur.
20
+ *
21
+ * @param request Branch creation request with name and optional parent
22
+ * @returns Created branch details
23
+ */
24
+ createAgentBranch(request: CreateAgentBranchRequest, options?: RequestOptions): Promise<InsurUpResult<string>>;
25
+ /**
26
+ * Retrieves detailed information about a specific agent branch including its parent relationship.
27
+ *
28
+ * Belirli bir acente şubesi hakkında üst şube ilişkisi dahil detaylı bilgileri getirir.
29
+ *
30
+ * @param id Unique identifier of the agent branch
31
+ * @returns Agent branch details
32
+ */
33
+ getAgentBranchById(id: string, options?: RequestOptions): Promise<InsurUpResult<GetAgentBranchResult>>;
34
+ /**
35
+ * Retrieves all available agent branches within the current agency, showing the complete branch hierarchy.
36
+ *
37
+ * Mevcut acente içindeki tüm kullanılabilir acente şubelerini getirir ve tam şube hiyerarşisini gösterir.
38
+ *
39
+ * @returns List of all agent branches
40
+ */
41
+ getAgentBranches(options?: RequestOptions): Promise<InsurUpResult<GetAllAgentBranchesResult[]>>;
42
+ /**
43
+ * Updates an existing agent branch's name or parent branch relationship to reflect changing organizational needs.
44
+ *
45
+ * Değişen organizasyonel ihtiyaçları yansıtmak için mevcut bir acente şubesinin adını veya üst şube ilişkisini günceller.
46
+ *
47
+ * @param request Branch update request with modified details
48
+ * @returns Operation result
49
+ */
50
+ updateAgentBranch(request: UpdateAgentBranchRequest, options?: RequestOptions): Promise<InsurUpResult>;
51
+ /**
52
+ * Removes an agent branch from the agency structure. The branch must not have any child branches.
53
+ *
54
+ * Acente yapısından bir acente şubesini kaldırır. Şubenin alt şubeleri olmamalıdır.
55
+ *
56
+ * @param request Branch deletion request
57
+ * @returns Operation result
58
+ */
59
+ deleteAgentBranch(request: DeleteAgentBranchRequest, options?: RequestOptions): Promise<InsurUpResult>;
60
+ }
61
+ //# sourceMappingURL=agentBranch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentBranch.d.ts","sourceRoot":"","sources":["../../src/clients/agentBranch.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,qBAAa,wBAAwB;IACvB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,aAAa;IAEhD;;;;;;;OAOG;IACG,iBAAiB,CACrB,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAIjC;;;;;;;OAOG;IACG,kBAAkB,CACtB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAK/C;;;;;;OAMG;IACG,gBAAgB,CACpB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,yBAAyB,EAAE,CAAC,CAAC;IAItD;;;;;;;OAOG;IACG,iBAAiB,CACrB,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IAKzB;;;;;;;OAOG;IACG,iBAAiB,CACrB,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;CAI1B"}
@@ -0,0 +1,60 @@
1
+ import type { HttpTransport } from '../client/http.js';
2
+ import type { InsurUpResult } from '../core/result.js';
3
+ import type { RequestOptions } from '../core/options.js';
4
+ import type { CreateAgentRoleRequest, UpdateAgentRoleRequest, DeleteAgentRoleRequest, GetAgentRoleByIdResult, GetAllAgentRolesResult } from '@insurup/contracts';
5
+ /**
6
+ * Provides role management operations for insurance agents, enabling the creation and administration
7
+ * of role-based access control within agency hierarchies and permission structures.
8
+ *
9
+ * Sigorta acenteleri için rol yönetimi işlemlerini sağlar; acente hiyerarşileri ve izin yapıları
10
+ * içinde rol tabanlı erişim kontrolünün oluşturulması ve yönetimini mümkün kılar.
11
+ */
12
+ export declare class InsurUpAgentRoleClient {
13
+ private readonly http;
14
+ constructor(http: HttpTransport);
15
+ /**
16
+ * Creates a new agent role with specified permissions and access levels for use within the agency structure.
17
+ *
18
+ * Acente yapısı içinde kullanım için belirtilen izinler ve erişim seviyeleri ile yeni bir acente rolü oluşturur.
19
+ *
20
+ * @param request Role creation request with permissions and configurations / İzinler ve yapılandırmalar ile rol oluşturma talebi
21
+ * @returns Operation result / İşlem sonucu
22
+ */
23
+ createAgentRole(request: CreateAgentRoleRequest, options?: RequestOptions): Promise<InsurUpResult>;
24
+ /**
25
+ * Retrieves detailed information about a specific agent role including its permissions and access configurations.
26
+ *
27
+ * Belirli bir acente rolü hakkında izinleri ve erişim yapılandırmaları dahil detaylı bilgileri getirir.
28
+ *
29
+ * @param id Unique identifier of the agent role / Acente rolünün benzersiz tanımlayıcısı
30
+ * @returns Agent role details / Acente rolü detayları
31
+ */
32
+ getAgentRoleById(id: string, options?: RequestOptions): Promise<InsurUpResult<GetAgentRoleByIdResult>>;
33
+ /**
34
+ * Retrieves all available agent roles within the current agency, showing the complete role hierarchy and permissions structure.
35
+ *
36
+ * Mevcut acente içindeki tüm kullanılabilir acente rollerini getirir ve tam rol hiyerarşisi ile izin yapısını gösterir.
37
+ *
38
+ * @returns List of all agent roles / Tüm acente rolleri listesi
39
+ */
40
+ getAgentRoles(options?: RequestOptions): Promise<InsurUpResult<GetAllAgentRolesResult[]>>;
41
+ /**
42
+ * Updates an existing agent role's permissions, access levels, or configuration settings to reflect changing organizational needs.
43
+ *
44
+ * 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.
45
+ *
46
+ * @param request Role update request with modified permissions / Değiştirilmiş izinlerle rol güncelleme talebi
47
+ * @returns Operation result / İşlem sonucu
48
+ */
49
+ updateAgentRole(request: UpdateAgentRoleRequest, options?: RequestOptions): Promise<InsurUpResult>;
50
+ /**
51
+ * Removes an agent role from the agency structure, ensuring proper cleanup of associated permissions and user assignments.
52
+ *
53
+ * 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.
54
+ *
55
+ * @param request Role deletion request / Rol silme talebi
56
+ * @returns Operation result / İşlem sonucu
57
+ */
58
+ deleteAgentRole(request: DeleteAgentRoleRequest, options?: RequestOptions): Promise<InsurUpResult>;
59
+ }
60
+ //# sourceMappingURL=agentRole.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentRole.d.ts","sourceRoot":"","sources":["../../src/clients/agentRole.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EACV,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAE5B;;;;;;GAMG;AACH,qBAAa,sBAAsB;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,aAAa;IAEhD;;;;;;;OAOG;IACG,eAAe,CACnB,OAAO,EAAE,sBAAsB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IAIzB;;;;;;;OAOG;IACG,gBAAgB,CACpB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;IAKjD;;;;;;OAMG;IACG,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,sBAAsB,EAAE,CAAC,CAAC;IAI/F;;;;;;;OAOG;IACG,eAAe,CACnB,OAAO,EAAE,sBAAsB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;IAKzB;;;;;;;OAOG;IACG,eAAe,CACnB,OAAO,EAAE,sBAAsB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;CAI1B"}
@@ -0,0 +1,34 @@
1
+ import type { HttpTransport } from '../client/http.js';
2
+ import type { InsurUpResult } from '../core/result.js';
3
+ import type { RequestOptions } from '../core/options.js';
4
+ import type { EnterAgentSetupRequestRequest, EnterAgentSetupRequestResult, CompleteAgentSetupRequestRequest } from '@insurup/contracts';
5
+ /**
6
+ * Provides agent onboarding and setup operations for new insurance agents joining the InsurUp platform,
7
+ * facilitating the complete registration and configuration process required for business operations.
8
+ *
9
+ * InsurUp platformuna katılan yeni sigorta acenteleri için acente katılım ve kurulum işlemlerini sağlar;
10
+ * iş operasyonları için gereken tam kayıt ve yapılandırma sürecini kolaylaştırır.
11
+ */
12
+ export declare class InsurUpAgentSetupClient {
13
+ private readonly http;
14
+ constructor(http: HttpTransport);
15
+ /**
16
+ * Initiates the agent setup process by submitting initial business information and required documentation for platform registration.
17
+ *
18
+ * Platform kaydı için ilk iş bilgilerini ve gerekli dokümantasyonu sunarak acente kurulum sürecini başlatır.
19
+ *
20
+ * @param request Agent setup initiation request with business details / İş detayları ile acente kurulum başlatma talebi
21
+ * @returns Setup process identifier and next steps / Kurulum süreci tanımlayıcısı ve sonraki adımlar
22
+ */
23
+ enterAgentSetupRequest(request: EnterAgentSetupRequestRequest, options?: RequestOptions): Promise<InsurUpResult<EnterAgentSetupRequestResult>>;
24
+ /**
25
+ * Finalizes the agent setup process by confirming all requirements are met and activating the agent's platform access.
26
+ *
27
+ * Tüm gereksinimlerin karşılandığını onaylayarak ve acentenin platform erişimini aktive ederek acente kurulum sürecini sonlandırır.
28
+ *
29
+ * @param request Setup completion request with final confirmations / Son onaylar ile kurulum tamamlama talebi
30
+ * @returns Operation result / İşlem sonucu
31
+ */
32
+ completeAgentSetupRequest(request: CompleteAgentSetupRequestRequest, options?: RequestOptions): Promise<InsurUpResult>;
33
+ }
34
+ //# sourceMappingURL=agentSetup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentSetup.d.ts","sourceRoot":"","sources":["../../src/clients/agentSetup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,gCAAgC,EACjC,MAAM,oBAAoB,CAAC;AAE5B;;;;;;GAMG;AACH,qBAAa,uBAAuB;IACtB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,aAAa;IAEhD;;;;;;;OAOG;IACG,sBAAsB,CAC1B,OAAO,EAAE,6BAA6B,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,4BAA4B,CAAC,CAAC;IAIvD;;;;;;;OAOG;IACG,yBAAyB,CAC7B,OAAO,EAAE,gCAAgC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC;CAG1B"}
@@ -0,0 +1,176 @@
1
+ import type { HttpTransport } from '../client/http.js';
2
+ import type { GraphQLTransport } from '../client/graphql.js';
3
+ import type { InsurUpResult, InsurUpGraphQLResult } from '../core/result.js';
4
+ import type { RequestOptions } from '../core/options.js';
5
+ import { type AgentUserFieldKey, type GetAgentUsersOptions, type AgentUsersConnection } from '@insurup/contracts';
6
+ import type { GetAgentUserResult, UpdateMyAgentUserRequest, InviteAgentUserRequest, AcceptAgentUserInviteRequest, UpdateAgentUserRequest, UpdateAgentUserPasswordRequest, GetMyAgentUserRobotCodeResult, MigrateAllAgentUsersResult } from '@insurup/contracts';
7
+ /**
8
+ * Provides comprehensive user management operations for insurance agency staff, enabling agencies to manage
9
+ * their team members, permissions, and access control within the InsurUp platform ecosystem.
10
+ *
11
+ * Sigorta acente personeli için kapsamlı kullanıcı yönetimi işlemlerini sağlar; acentelerin InsurUp platform
12
+ * ekosistemi içinde ekip üyelerini, izinlerini ve erişim kontrolünü yönetmesine olanak tanır.
13
+ */
14
+ export declare class InsurUpAgentUserClient {
15
+ private readonly http;
16
+ private readonly graphql?;
17
+ constructor(http: HttpTransport, graphql?: GraphQLTransport | undefined);
18
+ /**
19
+ * Retrieves the current agent user's profile information including personal details and platform settings.
20
+ *
21
+ * Mevcut acente kullanıcısının kişisel detayları ve platform ayarları dahil profil bilgilerini getirir.
22
+ *
23
+ * @returns Current agent user profile / Mevcut acente kullanıcı profili
24
+ */
25
+ getMyAgentUser(options?: RequestOptions): Promise<InsurUpResult<GetAgentUserResult>>;
26
+ /**
27
+ * Updates the current agent user's profile information such as contact details and preferences.
28
+ *
29
+ * Mevcut acente kullanıcısının iletişim detayları ve tercihleri gibi profil bilgilerini günceller.
30
+ *
31
+ * @param request Profile update request / Profil güncelleme talebi
32
+ * @returns Operation result / İşlem sonucu
33
+ */
34
+ updateMyAgentUser(request: UpdateMyAgentUserRequest, options?: RequestOptions): Promise<InsurUpResult>;
35
+ /**
36
+ * Sends an invitation to a new user to join the agency team with specified role and permissions.
37
+ *
38
+ * Belirtilen rol ve izinlerle acente takımına katılması için yeni bir kullanıcıya davetiye gönderir.
39
+ *
40
+ * @param request User invitation request with role and contact information / Rol ve iletişim bilgileri ile kullanıcı davet talebi
41
+ * @returns Operation result / İşlem sonucu
42
+ */
43
+ inviteAgentUser(request: InviteAgentUserRequest, options?: RequestOptions): Promise<InsurUpResult>;
44
+ /**
45
+ * Activates an agent user account, granting them access to the platform and enabling their permissions.
46
+ *
47
+ * Bir acente kullanıcı hesabını aktive eder, platform erişimi verir ve izinlerini etkinleştirir.
48
+ *
49
+ * @param agentUserId Unique identifier of the agent user to activate / Aktive edilecek acente kullanıcısının benzersiz tanımlayıcısı
50
+ * @returns Operation result / İşlem sonucu
51
+ */
52
+ activateAgentUser(agentUserId: string, options?: RequestOptions): Promise<InsurUpResult>;
53
+ /**
54
+ * Deactivates an agent user account, suspending their access while preserving their profile data.
55
+ *
56
+ * Bir acente kullanıcı hesabını deaktive eder, profil verilerini korurken erişimlerini askıya alır.
57
+ *
58
+ * @param agentUserId Unique identifier of the agent user to deactivate / Deaktive edilecek acente kullanıcısının benzersiz tanımlayıcısı
59
+ * @returns Operation result / İşlem sonucu
60
+ */
61
+ deactivateAgentUser(agentUserId: string, options?: RequestOptions): Promise<InsurUpResult>;
62
+ /**
63
+ * Validates an agent user invitation code to ensure it is legitimate and has not expired.
64
+ *
65
+ * Bir acente kullanıcı davet kodunun meşru olduğunu ve süresinin dolmadığını doğrular.
66
+ *
67
+ * @param code Invitation code to validate / Doğrulanacak davet kodu
68
+ * @returns Operation result / İşlem sonucu
69
+ */
70
+ checkAgentUserInviteCode(code: string, options?: RequestOptions): Promise<InsurUpResult>;
71
+ /**
72
+ * Permanently removes an agent user account and all associated data from the agency.
73
+ *
74
+ * Bir acente kullanıcı hesabını ve tüm ilişkili verileri acenteden kalıcı olarak kaldırır.
75
+ *
76
+ * @param agentUserId Unique identifier of the agent user to delete / Silinecek acente kullanıcısının benzersiz tanımlayıcısı
77
+ * @returns Operation result / İşlem sonucu
78
+ */
79
+ deleteAgentUser(agentUserId: string, options?: RequestOptions): Promise<InsurUpResult>;
80
+ /**
81
+ * Retrieves detailed information about a specific agent user including their role and current status.
82
+ *
83
+ * Belirli bir acente kullanıcısı hakkında rolü ve mevcut durumu dahil detaylı bilgileri getirir.
84
+ *
85
+ * @param agentUserId Unique identifier of the agent user / Acente kullanıcısının benzersiz tanımlayıcısı
86
+ * @returns Agent user details / Acente kullanıcı detayları
87
+ */
88
+ getAgentUserById(agentUserId: string, options?: RequestOptions): Promise<InsurUpResult<GetAgentUserResult>>;
89
+ /**
90
+ * Resends an invitation email to an agent user who may not have received or lost their original invitation.
91
+ *
92
+ * Orijinal davetiyesini almamış veya kaybetmiş olabilecek bir acente kullanıcısına davet e-postasını yeniden gönderir.
93
+ *
94
+ * @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ı
95
+ * @returns Operation result / İşlem sonucu
96
+ */
97
+ reSendInviteAgentUser(agentUserId: string, options?: RequestOptions): Promise<InsurUpResult>;
98
+ /**
99
+ * Accepts an agent user invitation and completes the registration process for the new team member.
100
+ *
101
+ * Bir acente kullanıcı davetiyesini kabul eder ve yeni ekip üyesi için kayıt sürecini tamamlar.
102
+ *
103
+ * @param request Invitation acceptance request with user details / Kullanıcı detayları ile davetiye kabul talebi
104
+ * @returns Operation result / İşlem sonucu
105
+ */
106
+ acceptAgentUserInvite(request: AcceptAgentUserInviteRequest, options?: RequestOptions): Promise<InsurUpResult>;
107
+ /**
108
+ * Updates an agent user's profile information, role assignments, or access permissions by an administrator.
109
+ *
110
+ * Bir yönetici tarafından acente kullanıcısının profil bilgilerini, rol atamalarını veya erişim izinlerini günceller.
111
+ *
112
+ * @param request User update request with modified information / Değiştirilmiş bilgilerle kullanıcı güncelleme talebi
113
+ * @returns Operation result / İşlem sonucu
114
+ */
115
+ updateAgentUser(request: UpdateAgentUserRequest, options?: RequestOptions): Promise<InsurUpResult>;
116
+ /**
117
+ * Updates an agent user's password for enhanced security or when requested by the user.
118
+ *
119
+ * Gelişmiş güvenlik için veya kullanıcı tarafından talep edildiğinde acente kullanıcısının şifresini günceller.
120
+ *
121
+ * @param request Password update request / Şifre güncelleme talebi
122
+ * @returns Operation result / İşlem sonucu
123
+ */
124
+ updateAgentUserPassword(request: UpdateAgentUserPasswordRequest, options?: RequestOptions): Promise<InsurUpResult>;
125
+ /**
126
+ * Retrieves the current agent user's robot/automation code for API integrations and automated operations.
127
+ *
128
+ * API entegrasyonları ve otomatik işlemler için mevcut acente kullanıcısının robot/otomasyon kodunu getirir.
129
+ *
130
+ * @returns Agent user robot code / Acente kullanıcı robot kodu
131
+ */
132
+ getMyAgentUserRobotCode(options?: RequestOptions): Promise<InsurUpResult<GetMyAgentUserRobotCodeResult>>;
133
+ /**
134
+ * Migrates an agent user from the legacy authentication system to the AuthServer.
135
+ * Creates an auth user and links it via AuthUserId field. A password reset email will be sent.
136
+ *
137
+ * Acente kullanıcısını eski kimlik doğrulama sisteminden AuthServer'a taşır.
138
+ * Auth kullanıcısı oluşturur ve AuthUserId alanı ile bağlar. Şifre sıfırlama e-postası gönderilir.
139
+ *
140
+ * @param agentUserId Unique identifier of the agent user to migrate / Taşınacak acente kullanıcısının benzersiz tanımlayıcısı
141
+ * @returns Operation result / İşlem sonucu
142
+ */
143
+ migrateAgentUser(agentUserId: string, options?: RequestOptions): Promise<InsurUpResult>;
144
+ /**
145
+ * Migrates all agent users in the current tenant that haven't been migrated yet.
146
+ *
147
+ * Henüz taşınmamış mevcut kiracıdaki tüm acente kullanıcılarını taşır.
148
+ *
149
+ * @returns Response with the count of migrated users / Taşınan kullanıcı sayısı ile yanıt
150
+ */
151
+ migrateAllAgentUsers(options?: RequestOptions): Promise<InsurUpResult<MigrateAllAgentUsersResult>>;
152
+ /**
153
+ * Queries agent users using GraphQL with advanced filtering, searching, sorting, and field selection.
154
+ * Supports cursor-based pagination and type-safe field selection.
155
+ *
156
+ * Gelişmiş filtreleme, arama, sıralama ve alan seçimi ile GraphQL kullanarak acente kullanıcılarını sorgular.
157
+ * İmleç tabanlı sayfalama ve tip-güvenli alan seçimini destekler.
158
+ *
159
+ * @example
160
+ * // Basic query with all fields
161
+ * const result = await client.agentUsers.getAgentUsers({ first: 10 });
162
+ *
163
+ * @example
164
+ * // Type-safe field selection
165
+ * const result = await client.agentUsers.getAgentUsers({
166
+ * select: ['id', 'email', 'name', 'state'] as const,
167
+ * first: 10,
168
+ * filter: { state: { eq: AgentUserState.Active } }
169
+ * });
170
+ *
171
+ * @param requestOptions Query options including pagination, filters, search, and field selection
172
+ * @returns Paginated connection of agent users with type-narrowed fields
173
+ */
174
+ getAgentUsers<const TFields extends AgentUserFieldKey[]>(requestOptions?: GetAgentUsersOptions<TFields>, options?: RequestOptions): Promise<InsurUpGraphQLResult<AgentUsersConnection<TFields>>>;
175
+ }
176
+ //# sourceMappingURL=agentUser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentUser.d.ts","sourceRoot":"","sources":["../../src/clients/agentUser.ts"],"names":[],"mappings":"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"}