@emilgroup/tenant-sdk 1.0.0 → 1.0.1

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 (227) hide show
  1. package/.openapi-generator/FILES +57 -14
  2. package/README.md +2 -2
  3. package/api/alerts-api.ts +860 -0
  4. package/api/custom-schema-api.ts +60 -52
  5. package/api/dashboard-api.ts +792 -0
  6. package/api/data-report-api.ts +75 -65
  7. package/api/data-report-executor-api.ts +26 -10
  8. package/api/invite-users-api.ts +79 -75
  9. package/api/reports-api.ts +860 -0
  10. package/api/scenario-analysis-api.ts +977 -0
  11. package/api/settings-api.ts +484 -0
  12. package/api/tariff-comparisons-api.ts +381 -0
  13. package/api/{invite-organizations-api.ts → user-subscription-api.ts} +161 -139
  14. package/api/users-api.ts +148 -138
  15. package/api.ts +14 -4
  16. package/dist/api/alerts-api.d.ts +479 -0
  17. package/dist/api/alerts-api.js +752 -0
  18. package/dist/api/custom-schema-api.d.ts +42 -42
  19. package/dist/api/custom-schema-api.js +38 -31
  20. package/dist/api/dashboard-api.d.ts +434 -0
  21. package/dist/api/dashboard-api.js +724 -0
  22. package/dist/api/data-report-api.d.ts +52 -52
  23. package/dist/api/data-report-api.js +49 -40
  24. package/dist/api/data-report-executor-api.d.ts +16 -7
  25. package/dist/api/data-report-executor-api.js +17 -9
  26. package/dist/api/invite-users-api.d.ts +60 -63
  27. package/dist/api/invite-users-api.js +49 -40
  28. package/dist/api/reports-api.d.ts +479 -0
  29. package/dist/api/reports-api.js +752 -0
  30. package/dist/api/scenario-analysis-api.d.ts +529 -0
  31. package/dist/api/scenario-analysis-api.js +895 -0
  32. package/dist/api/settings-api.d.ts +264 -0
  33. package/dist/api/settings-api.js +509 -0
  34. package/dist/api/tariff-comparisons-api.d.ts +206 -0
  35. package/dist/api/{organizations-api.js → tariff-comparisons-api.js} +158 -99
  36. package/dist/api/{organizations-api.d.ts → user-subscription-api.d.ts} +103 -88
  37. package/dist/api/{invite-organizations-api.js → user-subscription-api.js} +114 -106
  38. package/dist/api/users-api.d.ts +109 -113
  39. package/dist/api/users-api.js +93 -76
  40. package/dist/api.d.ts +7 -2
  41. package/dist/api.js +7 -2
  42. package/dist/models/alert-class.d.ts +90 -0
  43. package/dist/models/alert-history-class.d.ts +108 -0
  44. package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
  45. package/dist/models/channel-response-class.d.ts +30 -0
  46. package/dist/models/compare-tariffs-request-dto.d.ts +37 -0
  47. package/dist/models/compare-tariffs-request-dto.js +22 -0
  48. package/dist/models/compare-tariffs-response-class.d.ts +31 -0
  49. package/dist/models/condition-dto.d.ts +43 -0
  50. package/dist/models/condition-dto.js +22 -0
  51. package/dist/models/create-alert-request-dto.d.ts +79 -0
  52. package/dist/models/create-alert-request-dto.js +27 -0
  53. package/dist/models/create-alert-response-class.d.ts +25 -0
  54. package/dist/models/create-custom-schema-request-dto.d.ts +0 -1
  55. package/dist/models/create-custom-schema-request-dto.js +1 -2
  56. package/dist/models/create-dashboard-request-dto.d.ts +70 -0
  57. package/dist/models/create-dashboard-request-dto.js +29 -0
  58. package/dist/models/create-dashboard-response-class.d.ts +25 -0
  59. package/dist/models/create-report-request-dto.d.ts +49 -0
  60. package/dist/models/create-report-request-dto.js +22 -0
  61. package/dist/models/create-report-response-class.d.ts +25 -0
  62. package/dist/models/create-scenario-analysis-request-dto.d.ts +74 -0
  63. package/dist/models/create-scenario-analysis-request-dto.js +22 -0
  64. package/dist/models/create-scenario-analysis-response-class.d.ts +25 -0
  65. package/dist/models/dashboard-class.d.ts +78 -0
  66. package/dist/models/get-alert-response-class.d.ts +25 -0
  67. package/dist/models/get-dashboard-response-class.d.ts +25 -0
  68. package/dist/models/{delete-response-class.d.ts → get-embedded-url-response-class.d.ts} +6 -6
  69. package/dist/models/get-report-response-class.d.ts +25 -0
  70. package/dist/models/get-report-response-class.js +15 -0
  71. package/dist/models/get-scenario-analysis-response-class.d.ts +25 -0
  72. package/dist/models/get-scenario-analysis-response-class.js +15 -0
  73. package/dist/models/grouped-tariff-class.d.ts +30 -0
  74. package/dist/models/grouped-tariff-class.js +15 -0
  75. package/dist/models/index.d.ts +50 -12
  76. package/dist/models/index.js +50 -12
  77. package/dist/models/{enable-users-response-class.d.ts → insurance-company-response-class.d.ts} +6 -6
  78. package/dist/models/insurance-company-response-class.js +15 -0
  79. package/dist/models/{disable-users-response-class.d.ts → insurance-response-class.d.ts} +6 -6
  80. package/dist/models/insurance-response-class.js +15 -0
  81. package/dist/models/invite-user-request-dto.d.ts +2 -8
  82. package/dist/models/invite-users-request-dto.d.ts +2 -2
  83. package/dist/models/{list-organizations-response-class.d.ts → list-alert-history-response-class.d.ts} +9 -9
  84. package/dist/models/list-alert-history-response-class.js +15 -0
  85. package/dist/models/list-alerts-response-class.d.ts +31 -0
  86. package/dist/models/list-alerts-response-class.js +15 -0
  87. package/dist/models/list-channels-response-class.d.ts +25 -0
  88. package/dist/models/list-channels-response-class.js +15 -0
  89. package/dist/models/list-dashboards-response-class.d.ts +31 -0
  90. package/dist/models/list-dashboards-response-class.js +15 -0
  91. package/dist/models/list-insurance-companies-response-class.d.ts +25 -0
  92. package/dist/models/list-insurance-companies-response-class.js +15 -0
  93. package/dist/models/list-report-history-response-class.d.ts +31 -0
  94. package/dist/models/list-report-history-response-class.js +15 -0
  95. package/dist/models/list-reports-response-class.d.ts +31 -0
  96. package/dist/models/list-reports-response-class.js +15 -0
  97. package/dist/models/list-scenario-analyses-response-class.d.ts +31 -0
  98. package/dist/models/list-scenario-analyses-response-class.js +15 -0
  99. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +25 -0
  100. package/dist/models/list-scenario-analysis-dates-response-class.js +15 -0
  101. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +25 -0
  102. package/dist/models/list-tariff-insurance-companies-response-class.js +15 -0
  103. package/dist/models/list-tariffs-response-class.d.ts +25 -0
  104. package/dist/models/list-tariffs-response-class.js +15 -0
  105. package/dist/models/{list-org-invitations-response-class.d.ts → list-user-subscriptions-response-class.d.ts} +8 -8
  106. package/dist/models/list-user-subscriptions-response-class.js +15 -0
  107. package/dist/models/{batch-delete-response-class.d.ts → manage-subscription-request-dto.d.ts} +5 -5
  108. package/dist/models/manage-subscription-request-dto.js +15 -0
  109. package/dist/models/manage-subscription-response-class.d.ts +25 -0
  110. package/dist/models/manage-subscription-response-class.js +15 -0
  111. package/dist/models/report-class.d.ts +66 -0
  112. package/dist/models/report-class.js +15 -0
  113. package/dist/models/report-history-class.d.ts +48 -0
  114. package/dist/models/report-history-class.js +15 -0
  115. package/dist/models/scenario-analysis-class.d.ts +108 -0
  116. package/dist/models/scenario-analysis-class.js +15 -0
  117. package/dist/models/scenario-analysis-date-response-class.d.ts +36 -0
  118. package/dist/models/scenario-analysis-date-response-class.js +15 -0
  119. package/dist/models/set-setting-request-dto.d.ts +4 -10
  120. package/dist/models/set-tenant-setting-response-class.d.ts +36 -0
  121. package/dist/models/set-tenant-setting-response-class.js +15 -0
  122. package/dist/models/subscription-class.d.ts +2 -9
  123. package/dist/models/update-alert-request-dto.d.ts +72 -0
  124. package/dist/models/update-alert-request-dto.js +21 -0
  125. package/dist/models/update-alert-response-class.d.ts +25 -0
  126. package/dist/models/update-alert-response-class.js +15 -0
  127. package/dist/models/update-custom-schema-request-dto.d.ts +0 -1
  128. package/dist/models/update-custom-schema-request-dto.js +1 -2
  129. package/dist/models/update-dashboard-request-dto.d.ts +76 -0
  130. package/dist/models/update-dashboard-request-dto.js +29 -0
  131. package/dist/models/update-dashboard-response-class.d.ts +25 -0
  132. package/dist/models/update-dashboard-response-class.js +15 -0
  133. package/dist/models/update-report-request-dto.d.ts +55 -0
  134. package/dist/models/update-report-request-dto.js +22 -0
  135. package/dist/models/update-report-response-class.d.ts +25 -0
  136. package/dist/models/update-report-response-class.js +15 -0
  137. package/dist/models/update-scenario-analysis-request-dto.d.ts +74 -0
  138. package/dist/models/update-scenario-analysis-request-dto.js +22 -0
  139. package/dist/models/update-scenario-analysis-response-class.d.ts +25 -0
  140. package/dist/models/update-scenario-analysis-response-class.js +15 -0
  141. package/dist/models/user-class.d.ts +5 -13
  142. package/models/alert-class.ts +96 -0
  143. package/models/alert-history-class.ts +114 -0
  144. package/models/assign-user-roles-request-dto.ts +2 -2
  145. package/models/channel-response-class.ts +36 -0
  146. package/models/compare-tariffs-request-dto.ts +46 -0
  147. package/models/compare-tariffs-response-class.ts +37 -0
  148. package/models/condition-dto.ts +52 -0
  149. package/models/create-alert-request-dto.ts +89 -0
  150. package/models/create-alert-response-class.ts +31 -0
  151. package/models/create-custom-schema-request-dto.ts +1 -2
  152. package/models/create-dashboard-request-dto.ts +81 -0
  153. package/models/create-dashboard-response-class.ts +31 -0
  154. package/models/create-report-request-dto.ts +58 -0
  155. package/models/create-report-response-class.ts +31 -0
  156. package/models/create-scenario-analysis-request-dto.ts +83 -0
  157. package/models/create-scenario-analysis-response-class.ts +31 -0
  158. package/models/dashboard-class.ts +84 -0
  159. package/models/get-alert-response-class.ts +31 -0
  160. package/models/get-dashboard-response-class.ts +31 -0
  161. package/models/{disable-users-response-class.ts → get-embedded-url-response-class.ts} +6 -6
  162. package/models/get-report-response-class.ts +31 -0
  163. package/models/get-scenario-analysis-response-class.ts +31 -0
  164. package/models/grouped-tariff-class.ts +36 -0
  165. package/models/index.ts +50 -12
  166. package/models/{enable-users-response-class.ts → insurance-company-response-class.ts} +6 -6
  167. package/models/{delete-response-class.ts → insurance-response-class.ts} +6 -6
  168. package/models/invite-user-request-dto.ts +2 -8
  169. package/models/invite-users-request-dto.ts +2 -2
  170. package/models/{list-organizations-response-class.ts → list-alert-history-response-class.ts} +9 -9
  171. package/models/list-alerts-response-class.ts +37 -0
  172. package/models/list-channels-response-class.ts +31 -0
  173. package/models/list-dashboards-response-class.ts +37 -0
  174. package/models/list-insurance-companies-response-class.ts +31 -0
  175. package/models/list-report-history-response-class.ts +37 -0
  176. package/models/list-reports-response-class.ts +37 -0
  177. package/models/list-scenario-analyses-response-class.ts +37 -0
  178. package/models/list-scenario-analysis-dates-response-class.ts +31 -0
  179. package/models/list-tariff-insurance-companies-response-class.ts +31 -0
  180. package/models/list-tariffs-response-class.ts +31 -0
  181. package/models/{list-org-invitations-response-class.ts → list-user-subscriptions-response-class.ts} +8 -8
  182. package/models/{batch-delete-response-class.ts → manage-subscription-request-dto.ts} +5 -5
  183. package/models/manage-subscription-response-class.ts +31 -0
  184. package/models/report-class.ts +72 -0
  185. package/models/report-history-class.ts +54 -0
  186. package/models/scenario-analysis-class.ts +114 -0
  187. package/models/scenario-analysis-date-response-class.ts +42 -0
  188. package/models/set-setting-request-dto.ts +4 -10
  189. package/models/set-tenant-setting-response-class.ts +42 -0
  190. package/models/subscription-class.ts +2 -9
  191. package/models/update-alert-request-dto.ts +81 -0
  192. package/models/update-alert-response-class.ts +31 -0
  193. package/models/update-custom-schema-request-dto.ts +1 -2
  194. package/models/update-dashboard-request-dto.ts +87 -0
  195. package/models/update-dashboard-response-class.ts +31 -0
  196. package/models/update-report-request-dto.ts +64 -0
  197. package/models/update-report-response-class.ts +31 -0
  198. package/models/update-scenario-analysis-request-dto.ts +83 -0
  199. package/models/update-scenario-analysis-response-class.ts +31 -0
  200. package/models/user-class.ts +5 -13
  201. package/package.json +1 -1
  202. package/api/organizations-api.ts +0 -339
  203. package/dist/api/invite-organizations-api.d.ts +0 -198
  204. package/dist/models/get-organization-response-class.d.ts +0 -25
  205. package/dist/models/invite-org-request-dto.d.ts +0 -78
  206. package/dist/models/invite-users-response-class.d.ts +0 -24
  207. package/dist/models/org-invitation-class.d.ts +0 -103
  208. package/dist/models/org-invitation-response-class.d.ts +0 -25
  209. package/dist/models/organization-class.d.ts +0 -84
  210. package/models/get-organization-response-class.ts +0 -31
  211. package/models/invite-org-request-dto.ts +0 -84
  212. package/models/invite-users-response-class.ts +0 -30
  213. package/models/org-invitation-class.ts +0 -109
  214. package/models/org-invitation-response-class.ts +0 -31
  215. package/models/organization-class.ts +0 -90
  216. /package/dist/models/{batch-delete-response-class.js → alert-class.js} +0 -0
  217. /package/dist/models/{delete-response-class.js → alert-history-class.js} +0 -0
  218. /package/dist/models/{disable-users-response-class.js → channel-response-class.js} +0 -0
  219. /package/dist/models/{enable-users-response-class.js → compare-tariffs-response-class.js} +0 -0
  220. /package/dist/models/{get-organization-response-class.js → create-alert-response-class.js} +0 -0
  221. /package/dist/models/{invite-org-request-dto.js → create-dashboard-response-class.js} +0 -0
  222. /package/dist/models/{invite-users-response-class.js → create-report-response-class.js} +0 -0
  223. /package/dist/models/{list-org-invitations-response-class.js → create-scenario-analysis-response-class.js} +0 -0
  224. /package/dist/models/{list-organizations-response-class.js → dashboard-class.js} +0 -0
  225. /package/dist/models/{org-invitation-class.js → get-alert-response-class.js} +0 -0
  226. /package/dist/models/{org-invitation-response-class.js → get-dashboard-response-class.js} +0 -0
  227. /package/dist/models/{organization-class.js → get-embedded-url-response-class.js} +0 -0
@@ -0,0 +1,206 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CompareTariffsRequestDto } from '../models';
16
+ import { CompareTariffsResponseClass } from '../models';
17
+ import { ListTariffInsuranceCompaniesResponseClass } from '../models';
18
+ import { ListTariffsResponseClass } from '../models';
19
+ /**
20
+ * TariffComparisonsApi - axios parameter creator
21
+ * @export
22
+ */
23
+ export declare const TariffComparisonsApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ *
26
+ * @param {CompareTariffsRequestDto} compareTariffsRequestDto
27
+ * @param {string} [authorization] Bearer Token
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ compareTariffs: (compareTariffsRequestDto: CompareTariffsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ /**
33
+ *
34
+ * @param {string} [authorization] Bearer Token
35
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ listTariffInsuranceCompanies: (authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig) => Promise<RequestArgs>;
40
+ /**
41
+ *
42
+ * @param {string} insurerName Insurer name
43
+ * @param {string} [authorization] Bearer Token
44
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ listTariffs: (insurerName: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig) => Promise<RequestArgs>;
49
+ };
50
+ /**
51
+ * TariffComparisonsApi - functional programming interface
52
+ * @export
53
+ */
54
+ export declare const TariffComparisonsApiFp: (configuration?: Configuration) => {
55
+ /**
56
+ *
57
+ * @param {CompareTariffsRequestDto} compareTariffsRequestDto
58
+ * @param {string} [authorization] Bearer Token
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ compareTariffs(compareTariffsRequestDto: CompareTariffsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompareTariffsResponseClass>>;
63
+ /**
64
+ *
65
+ * @param {string} [authorization] Bearer Token
66
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
67
+ * @param {*} [options] Override http request option.
68
+ * @throws {RequiredError}
69
+ */
70
+ listTariffInsuranceCompanies(authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTariffInsuranceCompaniesResponseClass>>;
71
+ /**
72
+ *
73
+ * @param {string} insurerName Insurer name
74
+ * @param {string} [authorization] Bearer Token
75
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ listTariffs(insurerName: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTariffsResponseClass>>;
80
+ };
81
+ /**
82
+ * TariffComparisonsApi - factory interface
83
+ * @export
84
+ */
85
+ export declare const TariffComparisonsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
86
+ /**
87
+ *
88
+ * @param {CompareTariffsRequestDto} compareTariffsRequestDto
89
+ * @param {string} [authorization] Bearer Token
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ compareTariffs(compareTariffsRequestDto: CompareTariffsRequestDto, authorization?: string, options?: any): AxiosPromise<CompareTariffsResponseClass>;
94
+ /**
95
+ *
96
+ * @param {string} [authorization] Bearer Token
97
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ listTariffInsuranceCompanies(authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: any): AxiosPromise<ListTariffInsuranceCompaniesResponseClass>;
102
+ /**
103
+ *
104
+ * @param {string} insurerName Insurer name
105
+ * @param {string} [authorization] Bearer Token
106
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ listTariffs(insurerName: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: any): AxiosPromise<ListTariffsResponseClass>;
111
+ };
112
+ /**
113
+ * Request parameters for compareTariffs operation in TariffComparisonsApi.
114
+ * @export
115
+ * @interface TariffComparisonsApiCompareTariffsRequest
116
+ */
117
+ export interface TariffComparisonsApiCompareTariffsRequest {
118
+ /**
119
+ *
120
+ * @type {CompareTariffsRequestDto}
121
+ * @memberof TariffComparisonsApiCompareTariffs
122
+ */
123
+ readonly compareTariffsRequestDto: CompareTariffsRequestDto;
124
+ /**
125
+ * Bearer Token
126
+ * @type {string}
127
+ * @memberof TariffComparisonsApiCompareTariffs
128
+ */
129
+ readonly authorization?: string;
130
+ }
131
+ /**
132
+ * Request parameters for listTariffInsuranceCompanies operation in TariffComparisonsApi.
133
+ * @export
134
+ * @interface TariffComparisonsApiListTariffInsuranceCompaniesRequest
135
+ */
136
+ export interface TariffComparisonsApiListTariffInsuranceCompaniesRequest {
137
+ /**
138
+ * Bearer Token
139
+ * @type {string}
140
+ * @memberof TariffComparisonsApiListTariffInsuranceCompanies
141
+ */
142
+ readonly authorization?: string;
143
+ /**
144
+ * Product type [ car | homeowner | household | private-liability ]
145
+ * @type {'car' | 'homeowner' | 'household' | 'privateLiability'}
146
+ * @memberof TariffComparisonsApiListTariffInsuranceCompanies
147
+ */
148
+ readonly product?: 'car' | 'homeowner' | 'household' | 'privateLiability';
149
+ }
150
+ /**
151
+ * Request parameters for listTariffs operation in TariffComparisonsApi.
152
+ * @export
153
+ * @interface TariffComparisonsApiListTariffsRequest
154
+ */
155
+ export interface TariffComparisonsApiListTariffsRequest {
156
+ /**
157
+ * Insurer name
158
+ * @type {string}
159
+ * @memberof TariffComparisonsApiListTariffs
160
+ */
161
+ readonly insurerName: string;
162
+ /**
163
+ * Bearer Token
164
+ * @type {string}
165
+ * @memberof TariffComparisonsApiListTariffs
166
+ */
167
+ readonly authorization?: string;
168
+ /**
169
+ * Product
170
+ * @type {'car' | 'homeowner' | 'household' | 'privateLiability'}
171
+ * @memberof TariffComparisonsApiListTariffs
172
+ */
173
+ readonly product?: 'car' | 'homeowner' | 'household' | 'privateLiability';
174
+ }
175
+ /**
176
+ * TariffComparisonsApi - object-oriented interface
177
+ * @export
178
+ * @class TariffComparisonsApi
179
+ * @extends {BaseAPI}
180
+ */
181
+ export declare class TariffComparisonsApi extends BaseAPI {
182
+ /**
183
+ *
184
+ * @param {TariffComparisonsApiCompareTariffsRequest} requestParameters Request parameters.
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ * @memberof TariffComparisonsApi
188
+ */
189
+ compareTariffs(requestParameters: TariffComparisonsApiCompareTariffsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompareTariffsResponseClass, any>>;
190
+ /**
191
+ *
192
+ * @param {TariffComparisonsApiListTariffInsuranceCompaniesRequest} requestParameters Request parameters.
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ * @memberof TariffComparisonsApi
196
+ */
197
+ listTariffInsuranceCompanies(requestParameters?: TariffComparisonsApiListTariffInsuranceCompaniesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTariffInsuranceCompaniesResponseClass, any>>;
198
+ /**
199
+ *
200
+ * @param {TariffComparisonsApiListTariffsRequest} requestParameters Request parameters.
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ * @memberof TariffComparisonsApi
204
+ */
205
+ listTariffs(requestParameters: TariffComparisonsApiListTariffsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTariffsResponseClass, any>>;
206
+ }
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = void 0;
81
+ exports.TariffComparisonsApi = exports.TariffComparisonsApiFactory = exports.TariffComparisonsApiFp = exports.TariffComparisonsApiAxiosParamCreator = void 0;
82
82
  var axios_1 = __importDefault(require("axios"));
83
83
  // Some imports not used depending on template conditions
84
84
  // @ts-ignore
@@ -90,37 +90,35 @@ var base_1 = require("../base");
90
90
  var url_1 = require("url");
91
91
  var FormData = require('form-data');
92
92
  /**
93
- * OrganizationsApi - axios parameter creator
93
+ * TariffComparisonsApi - axios parameter creator
94
94
  * @export
95
95
  */
96
- var OrganizationsApiAxiosParamCreator = function (configuration) {
96
+ var TariffComparisonsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * Get Organization by code
101
- * @summary Retrieve the Organization
102
- * @param {string} code
103
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
+ *
101
+ * @param {CompareTariffsRequestDto} compareTariffsRequestDto
102
+ * @param {string} [authorization] Bearer Token
104
103
  * @param {*} [options] Override http request option.
105
104
  * @throws {RequiredError}
106
105
  */
107
- getOrganization: function (code, authorization, options) {
106
+ compareTariffs: function (compareTariffsRequestDto, authorization, options) {
108
107
  if (options === void 0) { options = {}; }
109
108
  return __awaiter(_this, void 0, void 0, function () {
110
109
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
110
  return __generator(this, function (_a) {
112
111
  switch (_a.label) {
113
112
  case 0:
114
- // verify required parameter 'code' is not null or undefined
115
- (0, common_1.assertParamExists)('getOrganization', 'code', code);
116
- localVarPath = "/tenantservice/v1/organizations/{code}"
117
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
113
+ // verify required parameter 'compareTariffsRequestDto' is not null or undefined
114
+ (0, common_1.assertParamExists)('compareTariffs', 'compareTariffsRequestDto', compareTariffsRequestDto);
115
+ localVarPath = "/tenantservice/v1/tariff-comparisons";
118
116
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
119
117
  if (configuration) {
120
118
  baseOptions = configuration.baseOptions;
121
119
  baseAccessToken = configuration.accessToken;
122
120
  }
123
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
121
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
124
122
  localVarHeaderParameter = {};
125
123
  localVarQueryParameter = {};
126
124
  // authentication bearer required
@@ -133,9 +131,11 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
133
131
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
132
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
133
  }
134
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
136
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
137
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(compareTariffsRequestDto, localVarRequestOptions, configuration);
139
139
  return [2 /*return*/, {
140
140
  url: (0, common_1.toPathString)(localVarUrlObj),
141
141
  options: localVarRequestOptions,
@@ -145,26 +145,20 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
145
145
  });
146
146
  },
147
147
  /**
148
- * This will fetch list of organizations
149
- * @summary List organizations
150
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
151
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
152
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
153
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
154
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
155
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
156
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
148
+ *
149
+ * @param {string} [authorization] Bearer Token
150
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
157
151
  * @param {*} [options] Override http request option.
158
152
  * @throws {RequiredError}
159
153
  */
160
- listOrganizations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
154
+ listTariffInsuranceCompanies: function (authorization, product, options) {
161
155
  if (options === void 0) { options = {}; }
162
156
  return __awaiter(_this, void 0, void 0, function () {
163
157
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
164
158
  return __generator(this, function (_a) {
165
159
  switch (_a.label) {
166
160
  case 0:
167
- localVarPath = "/tenantservice/v1/organizations";
161
+ localVarPath = "/tenantservice/v1/tariff-comparisons/insurances";
168
162
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
169
163
  if (configuration) {
170
164
  baseOptions = configuration.baseOptions;
@@ -180,23 +174,61 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
180
174
  // authentication bearer required
181
175
  // http bearer authentication required
182
176
  _a.sent();
183
- if (pageSize !== undefined) {
184
- localVarQueryParameter['pageSize'] = pageSize;
185
- }
186
- if (pageToken !== undefined) {
187
- localVarQueryParameter['pageToken'] = pageToken;
177
+ if (product !== undefined) {
178
+ localVarQueryParameter['product'] = product;
188
179
  }
189
- if (filter !== undefined) {
190
- localVarQueryParameter['filter'] = filter;
180
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
181
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
191
182
  }
192
- if (search !== undefined) {
193
- localVarQueryParameter['search'] = search;
183
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
186
+ return [2 /*return*/, {
187
+ url: (0, common_1.toPathString)(localVarUrlObj),
188
+ options: localVarRequestOptions,
189
+ }];
190
+ }
191
+ });
192
+ });
193
+ },
194
+ /**
195
+ *
196
+ * @param {string} insurerName Insurer name
197
+ * @param {string} [authorization] Bearer Token
198
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ listTariffs: function (insurerName, authorization, product, options) {
203
+ if (options === void 0) { options = {}; }
204
+ return __awaiter(_this, void 0, void 0, function () {
205
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
206
+ return __generator(this, function (_a) {
207
+ switch (_a.label) {
208
+ case 0:
209
+ // verify required parameter 'insurerName' is not null or undefined
210
+ (0, common_1.assertParamExists)('listTariffs', 'insurerName', insurerName);
211
+ localVarPath = "/tenantservice/v1/tariff-comparisons/tariffs";
212
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
213
+ if (configuration) {
214
+ baseOptions = configuration.baseOptions;
215
+ baseAccessToken = configuration.accessToken;
194
216
  }
195
- if (order !== undefined) {
196
- localVarQueryParameter['order'] = order;
217
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
218
+ localVarHeaderParameter = {};
219
+ localVarQueryParameter = {};
220
+ // authentication bearer required
221
+ // http bearer authentication required
222
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
223
+ case 1:
224
+ // authentication bearer required
225
+ // http bearer authentication required
226
+ _a.sent();
227
+ if (insurerName !== undefined) {
228
+ localVarQueryParameter['insurerName'] = insurerName;
197
229
  }
198
- if (expand !== undefined) {
199
- localVarQueryParameter['expand'] = expand;
230
+ if (product !== undefined) {
231
+ localVarQueryParameter['product'] = product;
200
232
  }
201
233
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
202
234
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
@@ -214,28 +246,47 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
214
246
  },
215
247
  };
216
248
  };
217
- exports.OrganizationsApiAxiosParamCreator = OrganizationsApiAxiosParamCreator;
249
+ exports.TariffComparisonsApiAxiosParamCreator = TariffComparisonsApiAxiosParamCreator;
218
250
  /**
219
- * OrganizationsApi - functional programming interface
251
+ * TariffComparisonsApi - functional programming interface
220
252
  * @export
221
253
  */
222
- var OrganizationsApiFp = function (configuration) {
223
- var localVarAxiosParamCreator = (0, exports.OrganizationsApiAxiosParamCreator)(configuration);
254
+ var TariffComparisonsApiFp = function (configuration) {
255
+ var localVarAxiosParamCreator = (0, exports.TariffComparisonsApiAxiosParamCreator)(configuration);
224
256
  return {
225
257
  /**
226
- * Get Organization by code
227
- * @summary Retrieve the Organization
228
- * @param {string} code
229
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
258
+ *
259
+ * @param {CompareTariffsRequestDto} compareTariffsRequestDto
260
+ * @param {string} [authorization] Bearer Token
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ compareTariffs: function (compareTariffsRequestDto, authorization, options) {
265
+ return __awaiter(this, void 0, void 0, function () {
266
+ var localVarAxiosArgs;
267
+ return __generator(this, function (_a) {
268
+ switch (_a.label) {
269
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.compareTariffs(compareTariffsRequestDto, authorization, options)];
270
+ case 1:
271
+ localVarAxiosArgs = _a.sent();
272
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
273
+ }
274
+ });
275
+ });
276
+ },
277
+ /**
278
+ *
279
+ * @param {string} [authorization] Bearer Token
280
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
230
281
  * @param {*} [options] Override http request option.
231
282
  * @throws {RequiredError}
232
283
  */
233
- getOrganization: function (code, authorization, options) {
284
+ listTariffInsuranceCompanies: function (authorization, product, options) {
234
285
  return __awaiter(this, void 0, void 0, function () {
235
286
  var localVarAxiosArgs;
236
287
  return __generator(this, function (_a) {
237
288
  switch (_a.label) {
238
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganization(code, authorization, options)];
289
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTariffInsuranceCompanies(authorization, product, options)];
239
290
  case 1:
240
291
  localVarAxiosArgs = _a.sent();
241
292
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -244,24 +295,19 @@ var OrganizationsApiFp = function (configuration) {
244
295
  });
245
296
  },
246
297
  /**
247
- * This will fetch list of organizations
248
- * @summary List organizations
249
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
251
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
252
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
253
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
254
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
255
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
298
+ *
299
+ * @param {string} insurerName Insurer name
300
+ * @param {string} [authorization] Bearer Token
301
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
256
302
  * @param {*} [options] Override http request option.
257
303
  * @throws {RequiredError}
258
304
  */
259
- listOrganizations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
305
+ listTariffs: function (insurerName, authorization, product, options) {
260
306
  return __awaiter(this, void 0, void 0, function () {
261
307
  var localVarAxiosArgs;
262
308
  return __generator(this, function (_a) {
263
309
  switch (_a.label) {
264
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options)];
310
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTariffs(insurerName, authorization, product, options)];
265
311
  case 1:
266
312
  localVarAxiosArgs = _a.sent();
267
313
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -271,80 +317,93 @@ var OrganizationsApiFp = function (configuration) {
271
317
  },
272
318
  };
273
319
  };
274
- exports.OrganizationsApiFp = OrganizationsApiFp;
320
+ exports.TariffComparisonsApiFp = TariffComparisonsApiFp;
275
321
  /**
276
- * OrganizationsApi - factory interface
322
+ * TariffComparisonsApi - factory interface
277
323
  * @export
278
324
  */
279
- var OrganizationsApiFactory = function (configuration, basePath, axios) {
280
- var localVarFp = (0, exports.OrganizationsApiFp)(configuration);
325
+ var TariffComparisonsApiFactory = function (configuration, basePath, axios) {
326
+ var localVarFp = (0, exports.TariffComparisonsApiFp)(configuration);
281
327
  return {
282
328
  /**
283
- * Get Organization by code
284
- * @summary Retrieve the Organization
285
- * @param {string} code
286
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
329
+ *
330
+ * @param {CompareTariffsRequestDto} compareTariffsRequestDto
331
+ * @param {string} [authorization] Bearer Token
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ compareTariffs: function (compareTariffsRequestDto, authorization, options) {
336
+ return localVarFp.compareTariffs(compareTariffsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
337
+ },
338
+ /**
339
+ *
340
+ * @param {string} [authorization] Bearer Token
341
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
287
342
  * @param {*} [options] Override http request option.
288
343
  * @throws {RequiredError}
289
344
  */
290
- getOrganization: function (code, authorization, options) {
291
- return localVarFp.getOrganization(code, authorization, options).then(function (request) { return request(axios, basePath); });
345
+ listTariffInsuranceCompanies: function (authorization, product, options) {
346
+ return localVarFp.listTariffInsuranceCompanies(authorization, product, options).then(function (request) { return request(axios, basePath); });
292
347
  },
293
348
  /**
294
- * This will fetch list of organizations
295
- * @summary List organizations
296
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
297
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
298
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
299
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
300
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
301
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
302
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
349
+ *
350
+ * @param {string} insurerName Insurer name
351
+ * @param {string} [authorization] Bearer Token
352
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
303
353
  * @param {*} [options] Override http request option.
304
354
  * @throws {RequiredError}
305
355
  */
306
- listOrganizations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
307
- return localVarFp.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
356
+ listTariffs: function (insurerName, authorization, product, options) {
357
+ return localVarFp.listTariffs(insurerName, authorization, product, options).then(function (request) { return request(axios, basePath); });
308
358
  },
309
359
  };
310
360
  };
311
- exports.OrganizationsApiFactory = OrganizationsApiFactory;
361
+ exports.TariffComparisonsApiFactory = TariffComparisonsApiFactory;
312
362
  /**
313
- * OrganizationsApi - object-oriented interface
363
+ * TariffComparisonsApi - object-oriented interface
314
364
  * @export
315
- * @class OrganizationsApi
365
+ * @class TariffComparisonsApi
316
366
  * @extends {BaseAPI}
317
367
  */
318
- var OrganizationsApi = /** @class */ (function (_super) {
319
- __extends(OrganizationsApi, _super);
320
- function OrganizationsApi() {
368
+ var TariffComparisonsApi = /** @class */ (function (_super) {
369
+ __extends(TariffComparisonsApi, _super);
370
+ function TariffComparisonsApi() {
321
371
  return _super !== null && _super.apply(this, arguments) || this;
322
372
  }
323
373
  /**
324
- * Get Organization by code
325
- * @summary Retrieve the Organization
326
- * @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters.
374
+ *
375
+ * @param {TariffComparisonsApiCompareTariffsRequest} requestParameters Request parameters.
327
376
  * @param {*} [options] Override http request option.
328
377
  * @throws {RequiredError}
329
- * @memberof OrganizationsApi
378
+ * @memberof TariffComparisonsApi
330
379
  */
331
- OrganizationsApi.prototype.getOrganization = function (requestParameters, options) {
380
+ TariffComparisonsApi.prototype.compareTariffs = function (requestParameters, options) {
332
381
  var _this = this;
333
- return (0, exports.OrganizationsApiFp)(this.configuration).getOrganization(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
382
+ return (0, exports.TariffComparisonsApiFp)(this.configuration).compareTariffs(requestParameters.compareTariffsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
334
383
  };
335
384
  /**
336
- * This will fetch list of organizations
337
- * @summary List organizations
338
- * @param {OrganizationsApiListOrganizationsRequest} requestParameters Request parameters.
385
+ *
386
+ * @param {TariffComparisonsApiListTariffInsuranceCompaniesRequest} requestParameters Request parameters.
339
387
  * @param {*} [options] Override http request option.
340
388
  * @throws {RequiredError}
341
- * @memberof OrganizationsApi
389
+ * @memberof TariffComparisonsApi
342
390
  */
343
- OrganizationsApi.prototype.listOrganizations = function (requestParameters, options) {
391
+ TariffComparisonsApi.prototype.listTariffInsuranceCompanies = function (requestParameters, options) {
344
392
  var _this = this;
345
393
  if (requestParameters === void 0) { requestParameters = {}; }
346
- return (0, exports.OrganizationsApiFp)(this.configuration).listOrganizations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
394
+ return (0, exports.TariffComparisonsApiFp)(this.configuration).listTariffInsuranceCompanies(requestParameters.authorization, requestParameters.product, options).then(function (request) { return request(_this.axios, _this.basePath); });
395
+ };
396
+ /**
397
+ *
398
+ * @param {TariffComparisonsApiListTariffsRequest} requestParameters Request parameters.
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ * @memberof TariffComparisonsApi
402
+ */
403
+ TariffComparisonsApi.prototype.listTariffs = function (requestParameters, options) {
404
+ var _this = this;
405
+ return (0, exports.TariffComparisonsApiFp)(this.configuration).listTariffs(requestParameters.insurerName, requestParameters.authorization, requestParameters.product, options).then(function (request) { return request(_this.axios, _this.basePath); });
347
406
  };
348
- return OrganizationsApi;
407
+ return TariffComparisonsApi;
349
408
  }(base_1.BaseAPI));
350
- exports.OrganizationsApi = OrganizationsApi;
409
+ exports.TariffComparisonsApi = TariffComparisonsApi;