@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
@@ -45,12 +45,14 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
45
45
  /**
46
46
  * This will create an custom schema for tenant in the database. Custom schema are extra fields that tenant added to his entity and we need to validate this fields using the created schema.
47
47
  * @summary Create the custom-schema
48
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
48
49
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
49
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
50
  * @param {*} [options] Override http request option.
51
51
  * @throws {RequiredError}
52
52
  */
53
- createCustomSchema: async (createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
53
+ createCustomSchema: async (authorization: string, createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
+ // verify required parameter 'authorization' is not null or undefined
55
+ assertParamExists('createCustomSchema', 'authorization', authorization)
54
56
  // verify required parameter 'createCustomSchemaRequestDto' is not null or undefined
55
57
  assertParamExists('createCustomSchema', 'createCustomSchemaRequestDto', createCustomSchemaRequestDto)
56
58
  const localVarPath = `/tenantservice/v1/custom-schemas`;
@@ -92,13 +94,15 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
92
94
  /**
93
95
  * Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
94
96
  * @summary Retrieve the custom-schema
97
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
95
98
  * @param {string} code Unique identifier for the object.
96
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
99
  * @param {string} [expand] Fields to expand response by
98
100
  * @param {*} [options] Override http request option.
99
101
  * @throws {RequiredError}
100
102
  */
101
- getCustomSchema: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
103
+ getCustomSchema: async (authorization: string, code: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
104
+ // verify required parameter 'authorization' is not null or undefined
105
+ assertParamExists('getCustomSchema', 'authorization', authorization)
102
106
  // verify required parameter 'code' is not null or undefined
103
107
  assertParamExists('getCustomSchema', 'code', code)
104
108
  const localVarPath = `/tenantservice/v1/custom-schemas/{code}`
@@ -142,7 +146,7 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
142
146
  /**
143
147
  * Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
144
148
  * @summary List custom-schemas
145
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
146
150
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
147
151
  * @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.
148
152
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -152,7 +156,9 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
152
156
  * @param {*} [options] Override http request option.
153
157
  * @throws {RequiredError}
154
158
  */
155
- listCustomSchemas: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
159
+ listCustomSchemas: async (authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
160
+ // verify required parameter 'authorization' is not null or undefined
161
+ assertParamExists('listCustomSchemas', 'authorization', authorization)
156
162
  const localVarPath = `/tenantservice/v1/custom-schemas`;
157
163
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
158
164
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -213,13 +219,15 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
213
219
  /**
214
220
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
215
221
  * @summary Update the custom-schema
222
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
216
223
  * @param {string} code
217
224
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
218
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
219
225
  * @param {*} [options] Override http request option.
220
226
  * @throws {RequiredError}
221
227
  */
222
- updateCustomSchema: async (code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
228
+ updateCustomSchema: async (authorization: string, code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
229
+ // verify required parameter 'authorization' is not null or undefined
230
+ assertParamExists('updateCustomSchema', 'authorization', authorization)
223
231
  // verify required parameter 'code' is not null or undefined
224
232
  assertParamExists('updateCustomSchema', 'code', code)
225
233
  // verify required parameter 'updateCustomSchemaRequestDto' is not null or undefined
@@ -274,32 +282,32 @@ export const CustomSchemaApiFp = function(configuration?: Configuration) {
274
282
  /**
275
283
  * This will create an custom schema for tenant in the database. Custom schema are extra fields that tenant added to his entity and we need to validate this fields using the created schema.
276
284
  * @summary Create the custom-schema
285
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
277
286
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
278
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
279
287
  * @param {*} [options] Override http request option.
280
288
  * @throws {RequiredError}
281
289
  */
282
- async createCustomSchema(createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomSchemaResponseClass>> {
283
- const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomSchema(createCustomSchemaRequestDto, authorization, options);
290
+ async createCustomSchema(authorization: string, createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomSchemaResponseClass>> {
291
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomSchema(authorization, createCustomSchemaRequestDto, options);
284
292
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
285
293
  },
286
294
  /**
287
295
  * Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
288
296
  * @summary Retrieve the custom-schema
297
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
289
298
  * @param {string} code Unique identifier for the object.
290
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
291
299
  * @param {string} [expand] Fields to expand response by
292
300
  * @param {*} [options] Override http request option.
293
301
  * @throws {RequiredError}
294
302
  */
295
- async getCustomSchema(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomSchemaResponseClass>> {
296
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomSchema(code, authorization, expand, options);
303
+ async getCustomSchema(authorization: string, code: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomSchemaResponseClass>> {
304
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomSchema(authorization, code, expand, options);
297
305
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
298
306
  },
299
307
  /**
300
308
  * Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
301
309
  * @summary List custom-schemas
302
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
310
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
303
311
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
304
312
  * @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.
305
313
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -309,21 +317,21 @@ export const CustomSchemaApiFp = function(configuration?: Configuration) {
309
317
  * @param {*} [options] Override http request option.
310
318
  * @throws {RequiredError}
311
319
  */
312
- async listCustomSchemas(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomSchemasResponseClass>> {
320
+ async listCustomSchemas(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomSchemasResponseClass>> {
313
321
  const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomSchemas(authorization, pageSize, pageToken, filter, search, order, expand, options);
314
322
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
315
323
  },
316
324
  /**
317
325
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
318
326
  * @summary Update the custom-schema
327
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
319
328
  * @param {string} code
320
329
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
321
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
322
330
  * @param {*} [options] Override http request option.
323
331
  * @throws {RequiredError}
324
332
  */
325
- async updateCustomSchema(code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomSchemaResponseClass>> {
326
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomSchema(code, updateCustomSchemaRequestDto, authorization, options);
333
+ async updateCustomSchema(authorization: string, code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomSchemaResponseClass>> {
334
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomSchema(authorization, code, updateCustomSchemaRequestDto, options);
327
335
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
328
336
  },
329
337
  }
@@ -339,30 +347,30 @@ export const CustomSchemaApiFactory = function (configuration?: Configuration, b
339
347
  /**
340
348
  * This will create an custom schema for tenant in the database. Custom schema are extra fields that tenant added to his entity and we need to validate this fields using the created schema.
341
349
  * @summary Create the custom-schema
350
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
342
351
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
343
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
344
352
  * @param {*} [options] Override http request option.
345
353
  * @throws {RequiredError}
346
354
  */
347
- createCustomSchema(createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCustomSchemaResponseClass> {
348
- return localVarFp.createCustomSchema(createCustomSchemaRequestDto, authorization, options).then((request) => request(axios, basePath));
355
+ createCustomSchema(authorization: string, createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, options?: any): AxiosPromise<CreateCustomSchemaResponseClass> {
356
+ return localVarFp.createCustomSchema(authorization, createCustomSchemaRequestDto, options).then((request) => request(axios, basePath));
349
357
  },
350
358
  /**
351
359
  * Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
352
360
  * @summary Retrieve the custom-schema
361
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
353
362
  * @param {string} code Unique identifier for the object.
354
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
355
363
  * @param {string} [expand] Fields to expand response by
356
364
  * @param {*} [options] Override http request option.
357
365
  * @throws {RequiredError}
358
366
  */
359
- getCustomSchema(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetCustomSchemaResponseClass> {
360
- return localVarFp.getCustomSchema(code, authorization, expand, options).then((request) => request(axios, basePath));
367
+ getCustomSchema(authorization: string, code: string, expand?: string, options?: any): AxiosPromise<GetCustomSchemaResponseClass> {
368
+ return localVarFp.getCustomSchema(authorization, code, expand, options).then((request) => request(axios, basePath));
361
369
  },
362
370
  /**
363
371
  * Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
364
372
  * @summary List custom-schemas
365
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
373
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
366
374
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
367
375
  * @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.
368
376
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -372,20 +380,20 @@ export const CustomSchemaApiFactory = function (configuration?: Configuration, b
372
380
  * @param {*} [options] Override http request option.
373
381
  * @throws {RequiredError}
374
382
  */
375
- listCustomSchemas(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListCustomSchemasResponseClass> {
383
+ listCustomSchemas(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListCustomSchemasResponseClass> {
376
384
  return localVarFp.listCustomSchemas(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
377
385
  },
378
386
  /**
379
387
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
380
388
  * @summary Update the custom-schema
389
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
381
390
  * @param {string} code
382
391
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
383
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
384
392
  * @param {*} [options] Override http request option.
385
393
  * @throws {RequiredError}
386
394
  */
387
- updateCustomSchema(code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomSchemaResponseClass> {
388
- return localVarFp.updateCustomSchema(code, updateCustomSchemaRequestDto, authorization, options).then((request) => request(axios, basePath));
395
+ updateCustomSchema(authorization: string, code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, options?: any): AxiosPromise<UpdateCustomSchemaResponseClass> {
396
+ return localVarFp.updateCustomSchema(authorization, code, updateCustomSchemaRequestDto, options).then((request) => request(axios, basePath));
389
397
  },
390
398
  };
391
399
  };
@@ -397,18 +405,18 @@ export const CustomSchemaApiFactory = function (configuration?: Configuration, b
397
405
  */
398
406
  export interface CustomSchemaApiCreateCustomSchemaRequest {
399
407
  /**
400
- *
401
- * @type {CreateCustomSchemaRequestDto}
408
+ * Bearer Token: provided by the login endpoint under the name accessToken.
409
+ * @type {string}
402
410
  * @memberof CustomSchemaApiCreateCustomSchema
403
411
  */
404
- readonly createCustomSchemaRequestDto: CreateCustomSchemaRequestDto
412
+ readonly authorization: string
405
413
 
406
414
  /**
407
- * Bearer Token: provided by the login endpoint under the name accessToken.
408
- * @type {string}
415
+ *
416
+ * @type {CreateCustomSchemaRequestDto}
409
417
  * @memberof CustomSchemaApiCreateCustomSchema
410
418
  */
411
- readonly authorization?: string
419
+ readonly createCustomSchemaRequestDto: CreateCustomSchemaRequestDto
412
420
  }
413
421
 
414
422
  /**
@@ -418,18 +426,18 @@ export interface CustomSchemaApiCreateCustomSchemaRequest {
418
426
  */
419
427
  export interface CustomSchemaApiGetCustomSchemaRequest {
420
428
  /**
421
- * Unique identifier for the object.
429
+ * Bearer Token: provided by the login endpoint under the name accessToken.
422
430
  * @type {string}
423
431
  * @memberof CustomSchemaApiGetCustomSchema
424
432
  */
425
- readonly code: string
433
+ readonly authorization: string
426
434
 
427
435
  /**
428
- * Bearer Token: provided by the login endpoint under the name accessToken.
436
+ * Unique identifier for the object.
429
437
  * @type {string}
430
438
  * @memberof CustomSchemaApiGetCustomSchema
431
439
  */
432
- readonly authorization?: string
440
+ readonly code: string
433
441
 
434
442
  /**
435
443
  * Fields to expand response by
@@ -450,7 +458,7 @@ export interface CustomSchemaApiListCustomSchemasRequest {
450
458
  * @type {string}
451
459
  * @memberof CustomSchemaApiListCustomSchemas
452
460
  */
453
- readonly authorization?: string
461
+ readonly authorization: string
454
462
 
455
463
  /**
456
464
  * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -502,25 +510,25 @@ export interface CustomSchemaApiListCustomSchemasRequest {
502
510
  */
503
511
  export interface CustomSchemaApiUpdateCustomSchemaRequest {
504
512
  /**
505
- *
513
+ * Bearer Token: provided by the login endpoint under the name accessToken.
506
514
  * @type {string}
507
515
  * @memberof CustomSchemaApiUpdateCustomSchema
508
516
  */
509
- readonly code: string
517
+ readonly authorization: string
510
518
 
511
519
  /**
512
520
  *
513
- * @type {UpdateCustomSchemaRequestDto}
521
+ * @type {string}
514
522
  * @memberof CustomSchemaApiUpdateCustomSchema
515
523
  */
516
- readonly updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto
524
+ readonly code: string
517
525
 
518
526
  /**
519
- * Bearer Token: provided by the login endpoint under the name accessToken.
520
- * @type {string}
527
+ *
528
+ * @type {UpdateCustomSchemaRequestDto}
521
529
  * @memberof CustomSchemaApiUpdateCustomSchema
522
530
  */
523
- readonly authorization?: string
531
+ readonly updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto
524
532
  }
525
533
 
526
534
  /**
@@ -539,7 +547,7 @@ export class CustomSchemaApi extends BaseAPI {
539
547
  * @memberof CustomSchemaApi
540
548
  */
541
549
  public createCustomSchema(requestParameters: CustomSchemaApiCreateCustomSchemaRequest, options?: AxiosRequestConfig) {
542
- return CustomSchemaApiFp(this.configuration).createCustomSchema(requestParameters.createCustomSchemaRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
550
+ return CustomSchemaApiFp(this.configuration).createCustomSchema(requestParameters.authorization, requestParameters.createCustomSchemaRequestDto, options).then((request) => request(this.axios, this.basePath));
543
551
  }
544
552
 
545
553
  /**
@@ -551,7 +559,7 @@ export class CustomSchemaApi extends BaseAPI {
551
559
  * @memberof CustomSchemaApi
552
560
  */
553
561
  public getCustomSchema(requestParameters: CustomSchemaApiGetCustomSchemaRequest, options?: AxiosRequestConfig) {
554
- return CustomSchemaApiFp(this.configuration).getCustomSchema(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
562
+ return CustomSchemaApiFp(this.configuration).getCustomSchema(requestParameters.authorization, requestParameters.code, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
555
563
  }
556
564
 
557
565
  /**
@@ -562,7 +570,7 @@ export class CustomSchemaApi extends BaseAPI {
562
570
  * @throws {RequiredError}
563
571
  * @memberof CustomSchemaApi
564
572
  */
565
- public listCustomSchemas(requestParameters: CustomSchemaApiListCustomSchemasRequest = {}, options?: AxiosRequestConfig) {
573
+ public listCustomSchemas(requestParameters: CustomSchemaApiListCustomSchemasRequest, options?: AxiosRequestConfig) {
566
574
  return CustomSchemaApiFp(this.configuration).listCustomSchemas(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
567
575
  }
568
576
 
@@ -575,6 +583,6 @@ export class CustomSchemaApi extends BaseAPI {
575
583
  * @memberof CustomSchemaApi
576
584
  */
577
585
  public updateCustomSchema(requestParameters: CustomSchemaApiUpdateCustomSchemaRequest, options?: AxiosRequestConfig) {
578
- return CustomSchemaApiFp(this.configuration).updateCustomSchema(requestParameters.code, requestParameters.updateCustomSchemaRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
586
+ return CustomSchemaApiFp(this.configuration).updateCustomSchema(requestParameters.authorization, requestParameters.code, requestParameters.updateCustomSchemaRequestDto, options).then((request) => request(this.axios, this.basePath));
579
587
  }
580
588
  }