@emilgroup/tenant-sdk 1.0.1 → 1.1.0

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 (223) hide show
  1. package/.openapi-generator/FILES +14 -57
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +52 -60
  4. package/api/data-report-api.ts +65 -75
  5. package/api/data-report-executor-api.ts +10 -26
  6. package/api/{user-subscription-api.ts → invite-organizations-api.ts} +139 -161
  7. package/api/invite-users-api.ts +75 -79
  8. package/api/organizations-api.ts +455 -0
  9. package/api/users-api.ts +138 -148
  10. package/api.ts +4 -14
  11. package/dist/api/custom-schema-api.d.ts +42 -42
  12. package/dist/api/custom-schema-api.js +31 -38
  13. package/dist/api/data-report-api.d.ts +52 -52
  14. package/dist/api/data-report-api.js +40 -49
  15. package/dist/api/data-report-executor-api.d.ts +7 -16
  16. package/dist/api/data-report-executor-api.js +9 -17
  17. package/dist/api/{user-subscription-api.d.ts → invite-organizations-api.d.ts} +89 -103
  18. package/dist/api/{user-subscription-api.js → invite-organizations-api.js} +106 -114
  19. package/dist/api/invite-users-api.d.ts +63 -60
  20. package/dist/api/invite-users-api.js +40 -49
  21. package/dist/api/organizations-api.d.ts +261 -0
  22. package/dist/api/{settings-api.js → organizations-api.js} +135 -195
  23. package/dist/api/users-api.d.ts +113 -109
  24. package/dist/api/users-api.js +76 -93
  25. package/dist/api.d.ts +2 -7
  26. package/dist/api.js +2 -7
  27. package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
  28. package/dist/models/{manage-subscription-request-dto.d.ts → batch-delete-response-class.d.ts} +5 -5
  29. package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
  30. package/dist/models/create-custom-schema-request-dto.js +2 -1
  31. package/dist/models/{insurance-response-class.d.ts → delete-response-class.d.ts} +6 -6
  32. package/dist/models/{get-embedded-url-response-class.d.ts → disable-users-response-class.d.ts} +6 -6
  33. package/dist/models/{insurance-company-response-class.d.ts → enable-users-response-class.d.ts} +6 -6
  34. package/dist/models/{create-alert-response-class.d.ts → get-organization-response-class.d.ts} +7 -7
  35. package/dist/models/index.d.ts +12 -50
  36. package/dist/models/index.js +12 -50
  37. package/dist/models/invite-org-request-dto.d.ts +78 -0
  38. package/dist/models/invite-user-request-dto.d.ts +8 -2
  39. package/dist/models/invite-users-request-dto.d.ts +2 -2
  40. package/dist/models/invite-users-response-class.d.ts +24 -0
  41. package/dist/models/{list-user-subscriptions-response-class.d.ts → list-org-invitations-response-class.d.ts} +8 -8
  42. package/dist/models/{list-alert-history-response-class.d.ts → list-organizations-response-class.d.ts} +9 -9
  43. package/dist/models/org-invitation-class.d.ts +103 -0
  44. package/dist/models/{create-dashboard-response-class.d.ts → org-invitation-response-class.d.ts} +7 -7
  45. package/dist/models/organization-class.d.ts +84 -0
  46. package/dist/models/set-setting-request-dto.d.ts +10 -4
  47. package/dist/models/subscription-class.d.ts +9 -2
  48. package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
  49. package/dist/models/update-custom-schema-request-dto.js +2 -1
  50. package/dist/models/user-class.d.ts +13 -5
  51. package/models/assign-user-roles-request-dto.ts +2 -2
  52. package/models/{manage-subscription-request-dto.ts → batch-delete-response-class.ts} +5 -5
  53. package/models/create-custom-schema-request-dto.ts +2 -1
  54. package/models/{insurance-response-class.ts → delete-response-class.ts} +6 -6
  55. package/models/{get-embedded-url-response-class.ts → disable-users-response-class.ts} +6 -6
  56. package/models/{insurance-company-response-class.ts → enable-users-response-class.ts} +6 -6
  57. package/models/{channel-response-class.ts → get-organization-response-class.ts} +7 -12
  58. package/models/index.ts +12 -50
  59. package/models/invite-org-request-dto.ts +84 -0
  60. package/models/invite-user-request-dto.ts +8 -2
  61. package/models/invite-users-request-dto.ts +2 -2
  62. package/models/invite-users-response-class.ts +30 -0
  63. package/models/{list-user-subscriptions-response-class.ts → list-org-invitations-response-class.ts} +8 -8
  64. package/models/{list-alert-history-response-class.ts → list-organizations-response-class.ts} +9 -9
  65. package/models/org-invitation-class.ts +109 -0
  66. package/models/{create-alert-response-class.ts → org-invitation-response-class.ts} +7 -7
  67. package/models/organization-class.ts +90 -0
  68. package/models/set-setting-request-dto.ts +10 -4
  69. package/models/subscription-class.ts +9 -2
  70. package/models/update-custom-schema-request-dto.ts +2 -1
  71. package/models/user-class.ts +13 -5
  72. package/package.json +1 -1
  73. package/api/alerts-api.ts +0 -860
  74. package/api/dashboard-api.ts +0 -792
  75. package/api/reports-api.ts +0 -860
  76. package/api/scenario-analysis-api.ts +0 -977
  77. package/api/settings-api.ts +0 -484
  78. package/api/tariff-comparisons-api.ts +0 -381
  79. package/dist/api/alerts-api.d.ts +0 -479
  80. package/dist/api/alerts-api.js +0 -752
  81. package/dist/api/dashboard-api.d.ts +0 -434
  82. package/dist/api/dashboard-api.js +0 -724
  83. package/dist/api/reports-api.d.ts +0 -479
  84. package/dist/api/reports-api.js +0 -752
  85. package/dist/api/scenario-analysis-api.d.ts +0 -529
  86. package/dist/api/scenario-analysis-api.js +0 -895
  87. package/dist/api/settings-api.d.ts +0 -264
  88. package/dist/api/tariff-comparisons-api.d.ts +0 -206
  89. package/dist/api/tariff-comparisons-api.js +0 -409
  90. package/dist/models/alert-class.d.ts +0 -90
  91. package/dist/models/alert-history-class.d.ts +0 -108
  92. package/dist/models/channel-response-class.d.ts +0 -30
  93. package/dist/models/compare-tariffs-request-dto.d.ts +0 -37
  94. package/dist/models/compare-tariffs-request-dto.js +0 -22
  95. package/dist/models/compare-tariffs-response-class.d.ts +0 -31
  96. package/dist/models/condition-dto.d.ts +0 -43
  97. package/dist/models/condition-dto.js +0 -22
  98. package/dist/models/create-alert-request-dto.d.ts +0 -79
  99. package/dist/models/create-alert-request-dto.js +0 -27
  100. package/dist/models/create-dashboard-request-dto.d.ts +0 -70
  101. package/dist/models/create-dashboard-request-dto.js +0 -29
  102. package/dist/models/create-report-request-dto.d.ts +0 -49
  103. package/dist/models/create-report-request-dto.js +0 -22
  104. package/dist/models/create-report-response-class.d.ts +0 -25
  105. package/dist/models/create-scenario-analysis-request-dto.d.ts +0 -74
  106. package/dist/models/create-scenario-analysis-request-dto.js +0 -22
  107. package/dist/models/create-scenario-analysis-response-class.d.ts +0 -25
  108. package/dist/models/dashboard-class.d.ts +0 -78
  109. package/dist/models/get-alert-response-class.d.ts +0 -25
  110. package/dist/models/get-dashboard-response-class.d.ts +0 -25
  111. package/dist/models/get-report-response-class.d.ts +0 -25
  112. package/dist/models/get-report-response-class.js +0 -15
  113. package/dist/models/get-scenario-analysis-response-class.d.ts +0 -25
  114. package/dist/models/get-scenario-analysis-response-class.js +0 -15
  115. package/dist/models/grouped-tariff-class.d.ts +0 -30
  116. package/dist/models/grouped-tariff-class.js +0 -15
  117. package/dist/models/insurance-company-response-class.js +0 -15
  118. package/dist/models/insurance-response-class.js +0 -15
  119. package/dist/models/list-alert-history-response-class.js +0 -15
  120. package/dist/models/list-alerts-response-class.d.ts +0 -31
  121. package/dist/models/list-alerts-response-class.js +0 -15
  122. package/dist/models/list-channels-response-class.d.ts +0 -25
  123. package/dist/models/list-channels-response-class.js +0 -15
  124. package/dist/models/list-dashboards-response-class.d.ts +0 -31
  125. package/dist/models/list-dashboards-response-class.js +0 -15
  126. package/dist/models/list-insurance-companies-response-class.d.ts +0 -25
  127. package/dist/models/list-insurance-companies-response-class.js +0 -15
  128. package/dist/models/list-report-history-response-class.d.ts +0 -31
  129. package/dist/models/list-report-history-response-class.js +0 -15
  130. package/dist/models/list-reports-response-class.d.ts +0 -31
  131. package/dist/models/list-reports-response-class.js +0 -15
  132. package/dist/models/list-scenario-analyses-response-class.d.ts +0 -31
  133. package/dist/models/list-scenario-analyses-response-class.js +0 -15
  134. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +0 -25
  135. package/dist/models/list-scenario-analysis-dates-response-class.js +0 -15
  136. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +0 -25
  137. package/dist/models/list-tariff-insurance-companies-response-class.js +0 -15
  138. package/dist/models/list-tariffs-response-class.d.ts +0 -25
  139. package/dist/models/list-tariffs-response-class.js +0 -15
  140. package/dist/models/list-user-subscriptions-response-class.js +0 -15
  141. package/dist/models/manage-subscription-request-dto.js +0 -15
  142. package/dist/models/manage-subscription-response-class.d.ts +0 -25
  143. package/dist/models/manage-subscription-response-class.js +0 -15
  144. package/dist/models/report-class.d.ts +0 -66
  145. package/dist/models/report-class.js +0 -15
  146. package/dist/models/report-history-class.d.ts +0 -48
  147. package/dist/models/report-history-class.js +0 -15
  148. package/dist/models/scenario-analysis-class.d.ts +0 -108
  149. package/dist/models/scenario-analysis-class.js +0 -15
  150. package/dist/models/scenario-analysis-date-response-class.d.ts +0 -36
  151. package/dist/models/scenario-analysis-date-response-class.js +0 -15
  152. package/dist/models/set-tenant-setting-response-class.d.ts +0 -36
  153. package/dist/models/set-tenant-setting-response-class.js +0 -15
  154. package/dist/models/update-alert-request-dto.d.ts +0 -72
  155. package/dist/models/update-alert-request-dto.js +0 -21
  156. package/dist/models/update-alert-response-class.d.ts +0 -25
  157. package/dist/models/update-alert-response-class.js +0 -15
  158. package/dist/models/update-dashboard-request-dto.d.ts +0 -76
  159. package/dist/models/update-dashboard-request-dto.js +0 -29
  160. package/dist/models/update-dashboard-response-class.d.ts +0 -25
  161. package/dist/models/update-dashboard-response-class.js +0 -15
  162. package/dist/models/update-report-request-dto.d.ts +0 -55
  163. package/dist/models/update-report-request-dto.js +0 -22
  164. package/dist/models/update-report-response-class.d.ts +0 -25
  165. package/dist/models/update-report-response-class.js +0 -15
  166. package/dist/models/update-scenario-analysis-request-dto.d.ts +0 -74
  167. package/dist/models/update-scenario-analysis-request-dto.js +0 -22
  168. package/dist/models/update-scenario-analysis-response-class.d.ts +0 -25
  169. package/dist/models/update-scenario-analysis-response-class.js +0 -15
  170. package/models/alert-class.ts +0 -96
  171. package/models/alert-history-class.ts +0 -114
  172. package/models/compare-tariffs-request-dto.ts +0 -46
  173. package/models/compare-tariffs-response-class.ts +0 -37
  174. package/models/condition-dto.ts +0 -52
  175. package/models/create-alert-request-dto.ts +0 -89
  176. package/models/create-dashboard-request-dto.ts +0 -81
  177. package/models/create-dashboard-response-class.ts +0 -31
  178. package/models/create-report-request-dto.ts +0 -58
  179. package/models/create-report-response-class.ts +0 -31
  180. package/models/create-scenario-analysis-request-dto.ts +0 -83
  181. package/models/create-scenario-analysis-response-class.ts +0 -31
  182. package/models/dashboard-class.ts +0 -84
  183. package/models/get-alert-response-class.ts +0 -31
  184. package/models/get-dashboard-response-class.ts +0 -31
  185. package/models/get-report-response-class.ts +0 -31
  186. package/models/get-scenario-analysis-response-class.ts +0 -31
  187. package/models/grouped-tariff-class.ts +0 -36
  188. package/models/list-alerts-response-class.ts +0 -37
  189. package/models/list-channels-response-class.ts +0 -31
  190. package/models/list-dashboards-response-class.ts +0 -37
  191. package/models/list-insurance-companies-response-class.ts +0 -31
  192. package/models/list-report-history-response-class.ts +0 -37
  193. package/models/list-reports-response-class.ts +0 -37
  194. package/models/list-scenario-analyses-response-class.ts +0 -37
  195. package/models/list-scenario-analysis-dates-response-class.ts +0 -31
  196. package/models/list-tariff-insurance-companies-response-class.ts +0 -31
  197. package/models/list-tariffs-response-class.ts +0 -31
  198. package/models/manage-subscription-response-class.ts +0 -31
  199. package/models/report-class.ts +0 -72
  200. package/models/report-history-class.ts +0 -54
  201. package/models/scenario-analysis-class.ts +0 -114
  202. package/models/scenario-analysis-date-response-class.ts +0 -42
  203. package/models/set-tenant-setting-response-class.ts +0 -42
  204. package/models/update-alert-request-dto.ts +0 -81
  205. package/models/update-alert-response-class.ts +0 -31
  206. package/models/update-dashboard-request-dto.ts +0 -87
  207. package/models/update-dashboard-response-class.ts +0 -31
  208. package/models/update-report-request-dto.ts +0 -64
  209. package/models/update-report-response-class.ts +0 -31
  210. package/models/update-scenario-analysis-request-dto.ts +0 -83
  211. package/models/update-scenario-analysis-response-class.ts +0 -31
  212. /package/dist/models/{alert-class.js → batch-delete-response-class.js} +0 -0
  213. /package/dist/models/{alert-history-class.js → delete-response-class.js} +0 -0
  214. /package/dist/models/{channel-response-class.js → disable-users-response-class.js} +0 -0
  215. /package/dist/models/{compare-tariffs-response-class.js → enable-users-response-class.js} +0 -0
  216. /package/dist/models/{create-alert-response-class.js → get-organization-response-class.js} +0 -0
  217. /package/dist/models/{create-dashboard-response-class.js → invite-org-request-dto.js} +0 -0
  218. /package/dist/models/{create-report-response-class.js → invite-users-response-class.js} +0 -0
  219. /package/dist/models/{create-scenario-analysis-response-class.js → list-org-invitations-response-class.js} +0 -0
  220. /package/dist/models/{dashboard-class.js → list-organizations-response-class.js} +0 -0
  221. /package/dist/models/{get-alert-response-class.js → org-invitation-class.js} +0 -0
  222. /package/dist/models/{get-dashboard-response-class.js → org-invitation-response-class.js} +0 -0
  223. /package/dist/models/{get-embedded-url-response-class.js → organization-class.js} +0 -0
@@ -26,34 +26,34 @@ export declare const DataReportApiAxiosParamCreator: (configuration?: Configurat
26
26
  /**
27
27
  * This will create a data report for tenant in the database
28
28
  * @summary Create the data-report
29
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
30
29
  * @param {CreateDataReportRequestDto} createDataReportRequestDto
30
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
31
31
  * @param {*} [options] Override http request option.
32
32
  * @throws {RequiredError}
33
33
  */
34
- createCustomSchema: (authorization: string, createDataReportRequestDto: CreateDataReportRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34
+ createCustomSchema: (createDataReportRequestDto: CreateDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
35
  /**
36
36
  *
37
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
38
37
  * @param {string} id
38
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
39
39
  * @param {*} [options] Override http request option.
40
40
  * @throws {RequiredError}
41
41
  */
42
- deleteAlert: (authorization: string, id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
+ deleteAlert: (id: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
43
43
  /**
44
44
  * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
45
45
  * @summary Retrieve the data-report
46
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
47
46
  * @param {string} code Unique identifier for the object.
47
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
48
48
  * @param {string} [expand] Fields to expand response by
49
49
  * @param {*} [options] Override http request option.
50
50
  * @throws {RequiredError}
51
51
  */
52
- getDataReport: (authorization: string, code: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
+ getDataReport: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
53
  /**
54
54
  * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
55
55
  * @summary List data-reports
56
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
56
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
57
57
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
58
58
  * @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.
59
59
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -63,17 +63,17 @@ export declare const DataReportApiAxiosParamCreator: (configuration?: Configurat
63
63
  * @param {*} [options] Override http request option.
64
64
  * @throws {RequiredError}
65
65
  */
66
- listDataReports: (authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
+ listDataReports: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
67
  /**
68
68
  * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
69
69
  * @summary Update the data-report
70
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
71
70
  * @param {string} code
72
71
  * @param {UpdateDataReportRequestDto} updateDataReportRequestDto
72
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
73
73
  * @param {*} [options] Override http request option.
74
74
  * @throws {RequiredError}
75
75
  */
76
- updateDataReport: (authorization: string, code: string, updateDataReportRequestDto: UpdateDataReportRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
76
+ updateDataReport: (code: string, updateDataReportRequestDto: UpdateDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
77
77
  };
78
78
  /**
79
79
  * DataReportApi - functional programming interface
@@ -83,34 +83,34 @@ export declare const DataReportApiFp: (configuration?: Configuration) => {
83
83
  /**
84
84
  * This will create a data report for tenant in the database
85
85
  * @summary Create the data-report
86
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
87
86
  * @param {CreateDataReportRequestDto} createDataReportRequestDto
87
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
88
88
  * @param {*} [options] Override http request option.
89
89
  * @throws {RequiredError}
90
90
  */
91
- createCustomSchema(authorization: string, createDataReportRequestDto: CreateDataReportRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateDataReportResponseClass>>;
91
+ createCustomSchema(createDataReportRequestDto: CreateDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateDataReportResponseClass>>;
92
92
  /**
93
93
  *
94
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
95
94
  * @param {string} id
95
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
96
96
  * @param {*} [options] Override http request option.
97
97
  * @throws {RequiredError}
98
98
  */
99
- deleteAlert(authorization: string, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
99
+ deleteAlert(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
100
100
  /**
101
101
  * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
102
102
  * @summary Retrieve the data-report
103
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
104
103
  * @param {string} code Unique identifier for the object.
104
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
105
  * @param {string} [expand] Fields to expand response by
106
106
  * @param {*} [options] Override http request option.
107
107
  * @throws {RequiredError}
108
108
  */
109
- getDataReport(authorization: string, code: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDataReportResponseClass>>;
109
+ getDataReport(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDataReportResponseClass>>;
110
110
  /**
111
111
  * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
112
112
  * @summary List data-reports
113
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
113
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
114
114
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
115
115
  * @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.
116
116
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -120,17 +120,17 @@ export declare const DataReportApiFp: (configuration?: Configuration) => {
120
120
  * @param {*} [options] Override http request option.
121
121
  * @throws {RequiredError}
122
122
  */
123
- listDataReports(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDataReportsResponseClass>>;
123
+ listDataReports(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDataReportsResponseClass>>;
124
124
  /**
125
125
  * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
126
126
  * @summary Update the data-report
127
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
128
127
  * @param {string} code
129
128
  * @param {UpdateDataReportRequestDto} updateDataReportRequestDto
129
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
130
130
  * @param {*} [options] Override http request option.
131
131
  * @throws {RequiredError}
132
132
  */
133
- updateDataReport(authorization: string, code: string, updateDataReportRequestDto: UpdateDataReportRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateDataReportResponseClass>>;
133
+ updateDataReport(code: string, updateDataReportRequestDto: UpdateDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateDataReportResponseClass>>;
134
134
  };
135
135
  /**
136
136
  * DataReportApi - factory interface
@@ -140,34 +140,34 @@ export declare const DataReportApiFactory: (configuration?: Configuration, baseP
140
140
  /**
141
141
  * This will create a data report for tenant in the database
142
142
  * @summary Create the data-report
143
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
144
143
  * @param {CreateDataReportRequestDto} createDataReportRequestDto
144
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
145
145
  * @param {*} [options] Override http request option.
146
146
  * @throws {RequiredError}
147
147
  */
148
- createCustomSchema(authorization: string, createDataReportRequestDto: CreateDataReportRequestDto, options?: any): AxiosPromise<CreateDataReportResponseClass>;
148
+ createCustomSchema(createDataReportRequestDto: CreateDataReportRequestDto, authorization?: string, options?: any): AxiosPromise<CreateDataReportResponseClass>;
149
149
  /**
150
150
  *
151
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
152
151
  * @param {string} id
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
153
  * @param {*} [options] Override http request option.
154
154
  * @throws {RequiredError}
155
155
  */
156
- deleteAlert(authorization: string, id: string, options?: any): AxiosPromise<void>;
156
+ deleteAlert(id: string, authorization?: string, options?: any): AxiosPromise<void>;
157
157
  /**
158
158
  * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
159
159
  * @summary Retrieve the data-report
160
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
161
160
  * @param {string} code Unique identifier for the object.
161
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
162
162
  * @param {string} [expand] Fields to expand response by
163
163
  * @param {*} [options] Override http request option.
164
164
  * @throws {RequiredError}
165
165
  */
166
- getDataReport(authorization: string, code: string, expand?: string, options?: any): AxiosPromise<GetDataReportResponseClass>;
166
+ getDataReport(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetDataReportResponseClass>;
167
167
  /**
168
168
  * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
169
169
  * @summary List data-reports
170
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
170
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
171
171
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
172
172
  * @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.
173
173
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -177,17 +177,17 @@ export declare const DataReportApiFactory: (configuration?: Configuration, baseP
177
177
  * @param {*} [options] Override http request option.
178
178
  * @throws {RequiredError}
179
179
  */
180
- listDataReports(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListDataReportsResponseClass>;
180
+ listDataReports(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListDataReportsResponseClass>;
181
181
  /**
182
182
  * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
183
183
  * @summary Update the data-report
184
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
185
184
  * @param {string} code
186
185
  * @param {UpdateDataReportRequestDto} updateDataReportRequestDto
186
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
187
  * @param {*} [options] Override http request option.
188
188
  * @throws {RequiredError}
189
189
  */
190
- updateDataReport(authorization: string, code: string, updateDataReportRequestDto: UpdateDataReportRequestDto, options?: any): AxiosPromise<UpdateDataReportResponseClass>;
190
+ updateDataReport(code: string, updateDataReportRequestDto: UpdateDataReportRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateDataReportResponseClass>;
191
191
  };
192
192
  /**
193
193
  * Request parameters for createCustomSchema operation in DataReportApi.
@@ -195,18 +195,18 @@ export declare const DataReportApiFactory: (configuration?: Configuration, baseP
195
195
  * @interface DataReportApiCreateCustomSchemaRequest
196
196
  */
197
197
  export interface DataReportApiCreateCustomSchemaRequest {
198
- /**
199
- * Bearer Token: provided by the login endpoint under the name accessToken.
200
- * @type {string}
201
- * @memberof DataReportApiCreateCustomSchema
202
- */
203
- readonly authorization: string;
204
198
  /**
205
199
  *
206
200
  * @type {CreateDataReportRequestDto}
207
201
  * @memberof DataReportApiCreateCustomSchema
208
202
  */
209
203
  readonly createDataReportRequestDto: CreateDataReportRequestDto;
204
+ /**
205
+ * Bearer Token: provided by the login endpoint under the name accessToken.
206
+ * @type {string}
207
+ * @memberof DataReportApiCreateCustomSchema
208
+ */
209
+ readonly authorization?: string;
210
210
  }
211
211
  /**
212
212
  * Request parameters for deleteAlert operation in DataReportApi.
@@ -215,17 +215,17 @@ export interface DataReportApiCreateCustomSchemaRequest {
215
215
  */
216
216
  export interface DataReportApiDeleteAlertRequest {
217
217
  /**
218
- * Bearer Token: provided by the login endpoint under the name accessToken.
218
+ *
219
219
  * @type {string}
220
220
  * @memberof DataReportApiDeleteAlert
221
221
  */
222
- readonly authorization: string;
222
+ readonly id: string;
223
223
  /**
224
- *
224
+ * Bearer Token: provided by the login endpoint under the name accessToken.
225
225
  * @type {string}
226
226
  * @memberof DataReportApiDeleteAlert
227
227
  */
228
- readonly id: string;
228
+ readonly authorization?: string;
229
229
  }
230
230
  /**
231
231
  * Request parameters for getDataReport operation in DataReportApi.
@@ -234,17 +234,17 @@ export interface DataReportApiDeleteAlertRequest {
234
234
  */
235
235
  export interface DataReportApiGetDataReportRequest {
236
236
  /**
237
- * Bearer Token: provided by the login endpoint under the name accessToken.
237
+ * Unique identifier for the object.
238
238
  * @type {string}
239
239
  * @memberof DataReportApiGetDataReport
240
240
  */
241
- readonly authorization: string;
241
+ readonly code: string;
242
242
  /**
243
- * Unique identifier for the object.
243
+ * Bearer Token: provided by the login endpoint under the name accessToken.
244
244
  * @type {string}
245
245
  * @memberof DataReportApiGetDataReport
246
246
  */
247
- readonly code: string;
247
+ readonly authorization?: string;
248
248
  /**
249
249
  * Fields to expand response by
250
250
  * @type {string}
@@ -263,7 +263,7 @@ export interface DataReportApiListDataReportsRequest {
263
263
  * @type {string}
264
264
  * @memberof DataReportApiListDataReports
265
265
  */
266
- readonly authorization: string;
266
+ readonly authorization?: string;
267
267
  /**
268
268
  * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
269
269
  * @type {any}
@@ -307,12 +307,6 @@ export interface DataReportApiListDataReportsRequest {
307
307
  * @interface DataReportApiUpdateDataReportRequest
308
308
  */
309
309
  export interface DataReportApiUpdateDataReportRequest {
310
- /**
311
- * Bearer Token: provided by the login endpoint under the name accessToken.
312
- * @type {string}
313
- * @memberof DataReportApiUpdateDataReport
314
- */
315
- readonly authorization: string;
316
310
  /**
317
311
  *
318
312
  * @type {string}
@@ -325,6 +319,12 @@ export interface DataReportApiUpdateDataReportRequest {
325
319
  * @memberof DataReportApiUpdateDataReport
326
320
  */
327
321
  readonly updateDataReportRequestDto: UpdateDataReportRequestDto;
322
+ /**
323
+ * Bearer Token: provided by the login endpoint under the name accessToken.
324
+ * @type {string}
325
+ * @memberof DataReportApiUpdateDataReport
326
+ */
327
+ readonly authorization?: string;
328
328
  }
329
329
  /**
330
330
  * DataReportApi - object-oriented interface
@@ -367,7 +367,7 @@ export declare class DataReportApi extends BaseAPI {
367
367
  * @throws {RequiredError}
368
368
  * @memberof DataReportApi
369
369
  */
370
- listDataReports(requestParameters: DataReportApiListDataReportsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDataReportsResponseClass, any>>;
370
+ listDataReports(requestParameters?: DataReportApiListDataReportsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDataReportsResponseClass, any>>;
371
371
  /**
372
372
  * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
373
373
  * @summary Update the data-report
@@ -99,20 +99,18 @@ var DataReportApiAxiosParamCreator = function (configuration) {
99
99
  /**
100
100
  * This will create a data report for tenant in the database
101
101
  * @summary Create the data-report
102
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
103
102
  * @param {CreateDataReportRequestDto} createDataReportRequestDto
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
104
  * @param {*} [options] Override http request option.
105
105
  * @throws {RequiredError}
106
106
  */
107
- createCustomSchema: function (authorization, createDataReportRequestDto, options) {
107
+ createCustomSchema: function (createDataReportRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
114
- // verify required parameter 'authorization' is not null or undefined
115
- (0, common_1.assertParamExists)('createCustomSchema', 'authorization', authorization);
116
114
  // verify required parameter 'createDataReportRequestDto' is not null or undefined
117
115
  (0, common_1.assertParamExists)('createCustomSchema', 'createDataReportRequestDto', createDataReportRequestDto);
118
116
  localVarPath = "/tenantservice/v1/data-reports";
@@ -149,20 +147,18 @@ var DataReportApiAxiosParamCreator = function (configuration) {
149
147
  },
150
148
  /**
151
149
  *
152
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
153
150
  * @param {string} id
151
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
152
  * @param {*} [options] Override http request option.
155
153
  * @throws {RequiredError}
156
154
  */
157
- deleteAlert: function (authorization, id, options) {
155
+ deleteAlert: function (id, authorization, options) {
158
156
  if (options === void 0) { options = {}; }
159
157
  return __awaiter(_this, void 0, void 0, function () {
160
158
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
159
  return __generator(this, function (_a) {
162
160
  switch (_a.label) {
163
161
  case 0:
164
- // verify required parameter 'authorization' is not null or undefined
165
- (0, common_1.assertParamExists)('deleteAlert', 'authorization', authorization);
166
162
  // verify required parameter 'id' is not null or undefined
167
163
  (0, common_1.assertParamExists)('deleteAlert', 'id', id);
168
164
  localVarPath = "/tenantservice/v1/data-reports/{id}"
@@ -199,21 +195,19 @@ var DataReportApiAxiosParamCreator = function (configuration) {
199
195
  /**
200
196
  * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
201
197
  * @summary Retrieve the data-report
202
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
203
198
  * @param {string} code Unique identifier for the object.
199
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
204
200
  * @param {string} [expand] Fields to expand response by
205
201
  * @param {*} [options] Override http request option.
206
202
  * @throws {RequiredError}
207
203
  */
208
- getDataReport: function (authorization, code, expand, options) {
204
+ getDataReport: function (code, authorization, expand, options) {
209
205
  if (options === void 0) { options = {}; }
210
206
  return __awaiter(_this, void 0, void 0, function () {
211
207
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
212
208
  return __generator(this, function (_a) {
213
209
  switch (_a.label) {
214
210
  case 0:
215
- // verify required parameter 'authorization' is not null or undefined
216
- (0, common_1.assertParamExists)('getDataReport', 'authorization', authorization);
217
211
  // verify required parameter 'code' is not null or undefined
218
212
  (0, common_1.assertParamExists)('getDataReport', 'code', code);
219
213
  localVarPath = "/tenantservice/v1/data-reports/{code}"
@@ -253,7 +247,7 @@ var DataReportApiAxiosParamCreator = function (configuration) {
253
247
  /**
254
248
  * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
255
249
  * @summary List data-reports
256
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
250
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
257
251
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
258
252
  * @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.
259
253
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -270,8 +264,6 @@ var DataReportApiAxiosParamCreator = function (configuration) {
270
264
  return __generator(this, function (_a) {
271
265
  switch (_a.label) {
272
266
  case 0:
273
- // verify required parameter 'authorization' is not null or undefined
274
- (0, common_1.assertParamExists)('listDataReports', 'authorization', authorization);
275
267
  localVarPath = "/tenantservice/v1/data-reports";
276
268
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
277
269
  if (configuration) {
@@ -323,21 +315,19 @@ var DataReportApiAxiosParamCreator = function (configuration) {
323
315
  /**
324
316
  * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
325
317
  * @summary Update the data-report
326
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
327
318
  * @param {string} code
328
319
  * @param {UpdateDataReportRequestDto} updateDataReportRequestDto
320
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
329
321
  * @param {*} [options] Override http request option.
330
322
  * @throws {RequiredError}
331
323
  */
332
- updateDataReport: function (authorization, code, updateDataReportRequestDto, options) {
324
+ updateDataReport: function (code, updateDataReportRequestDto, authorization, options) {
333
325
  if (options === void 0) { options = {}; }
334
326
  return __awaiter(_this, void 0, void 0, function () {
335
327
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
336
328
  return __generator(this, function (_a) {
337
329
  switch (_a.label) {
338
330
  case 0:
339
- // verify required parameter 'authorization' is not null or undefined
340
- (0, common_1.assertParamExists)('updateDataReport', 'authorization', authorization);
341
331
  // verify required parameter 'code' is not null or undefined
342
332
  (0, common_1.assertParamExists)('updateDataReport', 'code', code);
343
333
  // verify required parameter 'updateDataReportRequestDto' is not null or undefined
@@ -388,17 +378,17 @@ var DataReportApiFp = function (configuration) {
388
378
  /**
389
379
  * This will create a data report for tenant in the database
390
380
  * @summary Create the data-report
391
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
392
381
  * @param {CreateDataReportRequestDto} createDataReportRequestDto
382
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
393
383
  * @param {*} [options] Override http request option.
394
384
  * @throws {RequiredError}
395
385
  */
396
- createCustomSchema: function (authorization, createDataReportRequestDto, options) {
386
+ createCustomSchema: function (createDataReportRequestDto, authorization, options) {
397
387
  return __awaiter(this, void 0, void 0, function () {
398
388
  var localVarAxiosArgs;
399
389
  return __generator(this, function (_a) {
400
390
  switch (_a.label) {
401
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCustomSchema(authorization, createDataReportRequestDto, options)];
391
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCustomSchema(createDataReportRequestDto, authorization, options)];
402
392
  case 1:
403
393
  localVarAxiosArgs = _a.sent();
404
394
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -408,17 +398,17 @@ var DataReportApiFp = function (configuration) {
408
398
  },
409
399
  /**
410
400
  *
411
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
412
401
  * @param {string} id
402
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
413
403
  * @param {*} [options] Override http request option.
414
404
  * @throws {RequiredError}
415
405
  */
416
- deleteAlert: function (authorization, id, options) {
406
+ deleteAlert: function (id, authorization, options) {
417
407
  return __awaiter(this, void 0, void 0, function () {
418
408
  var localVarAxiosArgs;
419
409
  return __generator(this, function (_a) {
420
410
  switch (_a.label) {
421
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAlert(authorization, id, options)];
411
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAlert(id, authorization, options)];
422
412
  case 1:
423
413
  localVarAxiosArgs = _a.sent();
424
414
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -429,18 +419,18 @@ var DataReportApiFp = function (configuration) {
429
419
  /**
430
420
  * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
431
421
  * @summary Retrieve the data-report
432
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
433
422
  * @param {string} code Unique identifier for the object.
423
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
434
424
  * @param {string} [expand] Fields to expand response by
435
425
  * @param {*} [options] Override http request option.
436
426
  * @throws {RequiredError}
437
427
  */
438
- getDataReport: function (authorization, code, expand, options) {
428
+ getDataReport: function (code, authorization, expand, options) {
439
429
  return __awaiter(this, void 0, void 0, function () {
440
430
  var localVarAxiosArgs;
441
431
  return __generator(this, function (_a) {
442
432
  switch (_a.label) {
443
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDataReport(authorization, code, expand, options)];
433
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDataReport(code, authorization, expand, options)];
444
434
  case 1:
445
435
  localVarAxiosArgs = _a.sent();
446
436
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -451,7 +441,7 @@ var DataReportApiFp = function (configuration) {
451
441
  /**
452
442
  * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
453
443
  * @summary List data-reports
454
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
444
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
455
445
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
456
446
  * @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.
457
447
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -477,18 +467,18 @@ var DataReportApiFp = function (configuration) {
477
467
  /**
478
468
  * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
479
469
  * @summary Update the data-report
480
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
481
470
  * @param {string} code
482
471
  * @param {UpdateDataReportRequestDto} updateDataReportRequestDto
472
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
483
473
  * @param {*} [options] Override http request option.
484
474
  * @throws {RequiredError}
485
475
  */
486
- updateDataReport: function (authorization, code, updateDataReportRequestDto, options) {
476
+ updateDataReport: function (code, updateDataReportRequestDto, authorization, options) {
487
477
  return __awaiter(this, void 0, void 0, function () {
488
478
  var localVarAxiosArgs;
489
479
  return __generator(this, function (_a) {
490
480
  switch (_a.label) {
491
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateDataReport(authorization, code, updateDataReportRequestDto, options)];
481
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateDataReport(code, updateDataReportRequestDto, authorization, options)];
492
482
  case 1:
493
483
  localVarAxiosArgs = _a.sent();
494
484
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -509,40 +499,40 @@ var DataReportApiFactory = function (configuration, basePath, axios) {
509
499
  /**
510
500
  * This will create a data report for tenant in the database
511
501
  * @summary Create the data-report
512
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
513
502
  * @param {CreateDataReportRequestDto} createDataReportRequestDto
503
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
514
504
  * @param {*} [options] Override http request option.
515
505
  * @throws {RequiredError}
516
506
  */
517
- createCustomSchema: function (authorization, createDataReportRequestDto, options) {
518
- return localVarFp.createCustomSchema(authorization, createDataReportRequestDto, options).then(function (request) { return request(axios, basePath); });
507
+ createCustomSchema: function (createDataReportRequestDto, authorization, options) {
508
+ return localVarFp.createCustomSchema(createDataReportRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
519
509
  },
520
510
  /**
521
511
  *
522
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
523
512
  * @param {string} id
513
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
524
514
  * @param {*} [options] Override http request option.
525
515
  * @throws {RequiredError}
526
516
  */
527
- deleteAlert: function (authorization, id, options) {
528
- return localVarFp.deleteAlert(authorization, id, options).then(function (request) { return request(axios, basePath); });
517
+ deleteAlert: function (id, authorization, options) {
518
+ return localVarFp.deleteAlert(id, authorization, options).then(function (request) { return request(axios, basePath); });
529
519
  },
530
520
  /**
531
521
  * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
532
522
  * @summary Retrieve the data-report
533
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
534
523
  * @param {string} code Unique identifier for the object.
524
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
535
525
  * @param {string} [expand] Fields to expand response by
536
526
  * @param {*} [options] Override http request option.
537
527
  * @throws {RequiredError}
538
528
  */
539
- getDataReport: function (authorization, code, expand, options) {
540
- return localVarFp.getDataReport(authorization, code, expand, options).then(function (request) { return request(axios, basePath); });
529
+ getDataReport: function (code, authorization, expand, options) {
530
+ return localVarFp.getDataReport(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
541
531
  },
542
532
  /**
543
533
  * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
544
534
  * @summary List data-reports
545
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
535
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
546
536
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
547
537
  * @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.
548
538
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -558,14 +548,14 @@ var DataReportApiFactory = function (configuration, basePath, axios) {
558
548
  /**
559
549
  * Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
560
550
  * @summary Update the data-report
561
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
562
551
  * @param {string} code
563
552
  * @param {UpdateDataReportRequestDto} updateDataReportRequestDto
553
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
564
554
  * @param {*} [options] Override http request option.
565
555
  * @throws {RequiredError}
566
556
  */
567
- updateDataReport: function (authorization, code, updateDataReportRequestDto, options) {
568
- return localVarFp.updateDataReport(authorization, code, updateDataReportRequestDto, options).then(function (request) { return request(axios, basePath); });
557
+ updateDataReport: function (code, updateDataReportRequestDto, authorization, options) {
558
+ return localVarFp.updateDataReport(code, updateDataReportRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
569
559
  },
570
560
  };
571
561
  };
@@ -591,7 +581,7 @@ var DataReportApi = /** @class */ (function (_super) {
591
581
  */
592
582
  DataReportApi.prototype.createCustomSchema = function (requestParameters, options) {
593
583
  var _this = this;
594
- return (0, exports.DataReportApiFp)(this.configuration).createCustomSchema(requestParameters.authorization, requestParameters.createDataReportRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
584
+ return (0, exports.DataReportApiFp)(this.configuration).createCustomSchema(requestParameters.createDataReportRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
595
585
  };
596
586
  /**
597
587
  *
@@ -602,7 +592,7 @@ var DataReportApi = /** @class */ (function (_super) {
602
592
  */
603
593
  DataReportApi.prototype.deleteAlert = function (requestParameters, options) {
604
594
  var _this = this;
605
- return (0, exports.DataReportApiFp)(this.configuration).deleteAlert(requestParameters.authorization, requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
595
+ return (0, exports.DataReportApiFp)(this.configuration).deleteAlert(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
606
596
  };
607
597
  /**
608
598
  * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
@@ -614,7 +604,7 @@ var DataReportApi = /** @class */ (function (_super) {
614
604
  */
615
605
  DataReportApi.prototype.getDataReport = function (requestParameters, options) {
616
606
  var _this = this;
617
- return (0, exports.DataReportApiFp)(this.configuration).getDataReport(requestParameters.authorization, requestParameters.code, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
607
+ return (0, exports.DataReportApiFp)(this.configuration).getDataReport(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
618
608
  };
619
609
  /**
620
610
  * Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -626,6 +616,7 @@ var DataReportApi = /** @class */ (function (_super) {
626
616
  */
627
617
  DataReportApi.prototype.listDataReports = function (requestParameters, options) {
628
618
  var _this = this;
619
+ if (requestParameters === void 0) { requestParameters = {}; }
629
620
  return (0, exports.DataReportApiFp)(this.configuration).listDataReports(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
630
621
  };
631
622
  /**
@@ -638,7 +629,7 @@ var DataReportApi = /** @class */ (function (_super) {
638
629
  */
639
630
  DataReportApi.prototype.updateDataReport = function (requestParameters, options) {
640
631
  var _this = this;
641
- return (0, exports.DataReportApiFp)(this.configuration).updateDataReport(requestParameters.authorization, requestParameters.code, requestParameters.updateDataReportRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
632
+ return (0, exports.DataReportApiFp)(this.configuration).updateDataReport(requestParameters.code, requestParameters.updateDataReportRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
642
633
  };
643
634
  return DataReportApi;
644
635
  }(base_1.BaseAPI));