@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
@@ -26,26 +26,26 @@ export declare const CustomSchemaApiAxiosParamCreator: (configuration?: Configur
26
26
  /**
27
27
  * 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.
28
28
  * @summary Create the custom-schema
29
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
29
30
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
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: (createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34
+ createCustomSchema: (authorization: string, createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
35
  /**
36
36
  * 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.
37
37
  * @summary Retrieve the custom-schema
38
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
38
39
  * @param {string} code Unique identifier for the object.
39
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
40
40
  * @param {string} [expand] Fields to expand response by
41
41
  * @param {*} [options] Override http request option.
42
42
  * @throws {RequiredError}
43
43
  */
44
- getCustomSchema: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
+ getCustomSchema: (authorization: string, code: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
45
  /**
46
46
  * 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.
47
47
  * @summary List custom-schemas
48
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
48
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
49
49
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
50
50
  * @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.
51
51
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -55,17 +55,17 @@ export declare const CustomSchemaApiAxiosParamCreator: (configuration?: Configur
55
55
  * @param {*} [options] Override http request option.
56
56
  * @throws {RequiredError}
57
57
  */
58
- listCustomSchemas: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
58
+ listCustomSchemas: (authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
59
59
  /**
60
60
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
61
61
  * @summary Update the custom-schema
62
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
62
63
  * @param {string} code
63
64
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
64
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
65
65
  * @param {*} [options] Override http request option.
66
66
  * @throws {RequiredError}
67
67
  */
68
- updateCustomSchema: (code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ updateCustomSchema: (authorization: string, code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
69
  };
70
70
  /**
71
71
  * CustomSchemaApi - functional programming interface
@@ -75,26 +75,26 @@ export declare const CustomSchemaApiFp: (configuration?: Configuration) => {
75
75
  /**
76
76
  * 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.
77
77
  * @summary Create the custom-schema
78
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
78
79
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
79
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
80
80
  * @param {*} [options] Override http request option.
81
81
  * @throws {RequiredError}
82
82
  */
83
- createCustomSchema(createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomSchemaResponseClass>>;
83
+ createCustomSchema(authorization: string, createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomSchemaResponseClass>>;
84
84
  /**
85
85
  * 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.
86
86
  * @summary Retrieve the custom-schema
87
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
87
88
  * @param {string} code Unique identifier for the object.
88
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
89
89
  * @param {string} [expand] Fields to expand response by
90
90
  * @param {*} [options] Override http request option.
91
91
  * @throws {RequiredError}
92
92
  */
93
- getCustomSchema(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomSchemaResponseClass>>;
93
+ getCustomSchema(authorization: string, code: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomSchemaResponseClass>>;
94
94
  /**
95
95
  * 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.
96
96
  * @summary List custom-schemas
97
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
98
98
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
99
99
  * @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.
100
100
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -104,17 +104,17 @@ export declare const CustomSchemaApiFp: (configuration?: Configuration) => {
104
104
  * @param {*} [options] Override http request option.
105
105
  * @throws {RequiredError}
106
106
  */
107
- listCustomSchemas(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomSchemasResponseClass>>;
107
+ listCustomSchemas(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomSchemasResponseClass>>;
108
108
  /**
109
109
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
110
110
  * @summary Update the custom-schema
111
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
111
112
  * @param {string} code
112
113
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
113
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
114
114
  * @param {*} [options] Override http request option.
115
115
  * @throws {RequiredError}
116
116
  */
117
- updateCustomSchema(code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomSchemaResponseClass>>;
117
+ updateCustomSchema(authorization: string, code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomSchemaResponseClass>>;
118
118
  };
119
119
  /**
120
120
  * CustomSchemaApi - factory interface
@@ -124,26 +124,26 @@ export declare const CustomSchemaApiFactory: (configuration?: Configuration, bas
124
124
  /**
125
125
  * 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.
126
126
  * @summary Create the custom-schema
127
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
127
128
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
128
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
129
129
  * @param {*} [options] Override http request option.
130
130
  * @throws {RequiredError}
131
131
  */
132
- createCustomSchema(createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCustomSchemaResponseClass>;
132
+ createCustomSchema(authorization: string, createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, options?: any): AxiosPromise<CreateCustomSchemaResponseClass>;
133
133
  /**
134
134
  * 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.
135
135
  * @summary Retrieve the custom-schema
136
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
136
137
  * @param {string} code Unique identifier for the object.
137
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
138
138
  * @param {string} [expand] Fields to expand response by
139
139
  * @param {*} [options] Override http request option.
140
140
  * @throws {RequiredError}
141
141
  */
142
- getCustomSchema(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetCustomSchemaResponseClass>;
142
+ getCustomSchema(authorization: string, code: string, expand?: string, options?: any): AxiosPromise<GetCustomSchemaResponseClass>;
143
143
  /**
144
144
  * 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.
145
145
  * @summary List custom-schemas
146
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
146
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
147
147
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
148
148
  * @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.
149
149
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -153,17 +153,17 @@ export declare const CustomSchemaApiFactory: (configuration?: Configuration, bas
153
153
  * @param {*} [options] Override http request option.
154
154
  * @throws {RequiredError}
155
155
  */
156
- listCustomSchemas(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListCustomSchemasResponseClass>;
156
+ listCustomSchemas(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListCustomSchemasResponseClass>;
157
157
  /**
158
158
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
159
159
  * @summary Update the custom-schema
160
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
160
161
  * @param {string} code
161
162
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
162
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
163
163
  * @param {*} [options] Override http request option.
164
164
  * @throws {RequiredError}
165
165
  */
166
- updateCustomSchema(code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomSchemaResponseClass>;
166
+ updateCustomSchema(authorization: string, code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, options?: any): AxiosPromise<UpdateCustomSchemaResponseClass>;
167
167
  };
168
168
  /**
169
169
  * Request parameters for createCustomSchema operation in CustomSchemaApi.
@@ -172,17 +172,17 @@ export declare const CustomSchemaApiFactory: (configuration?: Configuration, bas
172
172
  */
173
173
  export interface CustomSchemaApiCreateCustomSchemaRequest {
174
174
  /**
175
- *
176
- * @type {CreateCustomSchemaRequestDto}
175
+ * Bearer Token: provided by the login endpoint under the name accessToken.
176
+ * @type {string}
177
177
  * @memberof CustomSchemaApiCreateCustomSchema
178
178
  */
179
- readonly createCustomSchemaRequestDto: CreateCustomSchemaRequestDto;
179
+ readonly authorization: string;
180
180
  /**
181
- * Bearer Token: provided by the login endpoint under the name accessToken.
182
- * @type {string}
181
+ *
182
+ * @type {CreateCustomSchemaRequestDto}
183
183
  * @memberof CustomSchemaApiCreateCustomSchema
184
184
  */
185
- readonly authorization?: string;
185
+ readonly createCustomSchemaRequestDto: CreateCustomSchemaRequestDto;
186
186
  }
187
187
  /**
188
188
  * Request parameters for getCustomSchema operation in CustomSchemaApi.
@@ -191,17 +191,17 @@ export interface CustomSchemaApiCreateCustomSchemaRequest {
191
191
  */
192
192
  export interface CustomSchemaApiGetCustomSchemaRequest {
193
193
  /**
194
- * Unique identifier for the object.
194
+ * Bearer Token: provided by the login endpoint under the name accessToken.
195
195
  * @type {string}
196
196
  * @memberof CustomSchemaApiGetCustomSchema
197
197
  */
198
- readonly code: string;
198
+ readonly authorization: string;
199
199
  /**
200
- * Bearer Token: provided by the login endpoint under the name accessToken.
200
+ * Unique identifier for the object.
201
201
  * @type {string}
202
202
  * @memberof CustomSchemaApiGetCustomSchema
203
203
  */
204
- readonly authorization?: string;
204
+ readonly code: string;
205
205
  /**
206
206
  * Fields to expand response by
207
207
  * @type {string}
@@ -220,7 +220,7 @@ export interface CustomSchemaApiListCustomSchemasRequest {
220
220
  * @type {string}
221
221
  * @memberof CustomSchemaApiListCustomSchemas
222
222
  */
223
- readonly authorization?: string;
223
+ readonly authorization: string;
224
224
  /**
225
225
  * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
226
226
  * @type {any}
@@ -264,6 +264,12 @@ export interface CustomSchemaApiListCustomSchemasRequest {
264
264
  * @interface CustomSchemaApiUpdateCustomSchemaRequest
265
265
  */
266
266
  export interface CustomSchemaApiUpdateCustomSchemaRequest {
267
+ /**
268
+ * Bearer Token: provided by the login endpoint under the name accessToken.
269
+ * @type {string}
270
+ * @memberof CustomSchemaApiUpdateCustomSchema
271
+ */
272
+ readonly authorization: string;
267
273
  /**
268
274
  *
269
275
  * @type {string}
@@ -276,12 +282,6 @@ export interface CustomSchemaApiUpdateCustomSchemaRequest {
276
282
  * @memberof CustomSchemaApiUpdateCustomSchema
277
283
  */
278
284
  readonly updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto;
279
- /**
280
- * Bearer Token: provided by the login endpoint under the name accessToken.
281
- * @type {string}
282
- * @memberof CustomSchemaApiUpdateCustomSchema
283
- */
284
- readonly authorization?: string;
285
285
  }
286
286
  /**
287
287
  * CustomSchemaApi - object-oriented interface
@@ -316,7 +316,7 @@ export declare class CustomSchemaApi extends BaseAPI {
316
316
  * @throws {RequiredError}
317
317
  * @memberof CustomSchemaApi
318
318
  */
319
- listCustomSchemas(requestParameters?: CustomSchemaApiListCustomSchemasRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCustomSchemasResponseClass, any>>;
319
+ listCustomSchemas(requestParameters: CustomSchemaApiListCustomSchemasRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCustomSchemasResponseClass, any>>;
320
320
  /**
321
321
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
322
322
  * @summary Update the custom-schema
@@ -99,18 +99,20 @@ var CustomSchemaApiAxiosParamCreator = function (configuration) {
99
99
  /**
100
100
  * 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.
101
101
  * @summary Create the custom-schema
102
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
102
103
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
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 (createCustomSchemaRequestDto, authorization, options) {
107
+ createCustomSchema: function (authorization, createCustomSchemaRequestDto, 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);
114
116
  // verify required parameter 'createCustomSchemaRequestDto' is not null or undefined
115
117
  (0, common_1.assertParamExists)('createCustomSchema', 'createCustomSchemaRequestDto', createCustomSchemaRequestDto);
116
118
  localVarPath = "/tenantservice/v1/custom-schemas";
@@ -148,19 +150,21 @@ var CustomSchemaApiAxiosParamCreator = function (configuration) {
148
150
  /**
149
151
  * 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.
150
152
  * @summary Retrieve the custom-schema
153
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
151
154
  * @param {string} code Unique identifier for the object.
152
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
155
  * @param {string} [expand] Fields to expand response by
154
156
  * @param {*} [options] Override http request option.
155
157
  * @throws {RequiredError}
156
158
  */
157
- getCustomSchema: function (code, authorization, expand, options) {
159
+ getCustomSchema: function (authorization, code, expand, options) {
158
160
  if (options === void 0) { options = {}; }
159
161
  return __awaiter(_this, void 0, void 0, function () {
160
162
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
163
  return __generator(this, function (_a) {
162
164
  switch (_a.label) {
163
165
  case 0:
166
+ // verify required parameter 'authorization' is not null or undefined
167
+ (0, common_1.assertParamExists)('getCustomSchema', 'authorization', authorization);
164
168
  // verify required parameter 'code' is not null or undefined
165
169
  (0, common_1.assertParamExists)('getCustomSchema', 'code', code);
166
170
  localVarPath = "/tenantservice/v1/custom-schemas/{code}"
@@ -200,7 +204,7 @@ var CustomSchemaApiAxiosParamCreator = function (configuration) {
200
204
  /**
201
205
  * 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.
202
206
  * @summary List custom-schemas
203
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
207
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
204
208
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
205
209
  * @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.
206
210
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -217,6 +221,8 @@ var CustomSchemaApiAxiosParamCreator = function (configuration) {
217
221
  return __generator(this, function (_a) {
218
222
  switch (_a.label) {
219
223
  case 0:
224
+ // verify required parameter 'authorization' is not null or undefined
225
+ (0, common_1.assertParamExists)('listCustomSchemas', 'authorization', authorization);
220
226
  localVarPath = "/tenantservice/v1/custom-schemas";
221
227
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
222
228
  if (configuration) {
@@ -268,19 +274,21 @@ var CustomSchemaApiAxiosParamCreator = function (configuration) {
268
274
  /**
269
275
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
270
276
  * @summary Update the custom-schema
277
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
271
278
  * @param {string} code
272
279
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
273
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
274
280
  * @param {*} [options] Override http request option.
275
281
  * @throws {RequiredError}
276
282
  */
277
- updateCustomSchema: function (code, updateCustomSchemaRequestDto, authorization, options) {
283
+ updateCustomSchema: function (authorization, code, updateCustomSchemaRequestDto, options) {
278
284
  if (options === void 0) { options = {}; }
279
285
  return __awaiter(_this, void 0, void 0, function () {
280
286
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
281
287
  return __generator(this, function (_a) {
282
288
  switch (_a.label) {
283
289
  case 0:
290
+ // verify required parameter 'authorization' is not null or undefined
291
+ (0, common_1.assertParamExists)('updateCustomSchema', 'authorization', authorization);
284
292
  // verify required parameter 'code' is not null or undefined
285
293
  (0, common_1.assertParamExists)('updateCustomSchema', 'code', code);
286
294
  // verify required parameter 'updateCustomSchemaRequestDto' is not null or undefined
@@ -331,17 +339,17 @@ var CustomSchemaApiFp = function (configuration) {
331
339
  /**
332
340
  * 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.
333
341
  * @summary Create the custom-schema
342
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
334
343
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
335
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
336
344
  * @param {*} [options] Override http request option.
337
345
  * @throws {RequiredError}
338
346
  */
339
- createCustomSchema: function (createCustomSchemaRequestDto, authorization, options) {
347
+ createCustomSchema: function (authorization, createCustomSchemaRequestDto, options) {
340
348
  return __awaiter(this, void 0, void 0, function () {
341
349
  var localVarAxiosArgs;
342
350
  return __generator(this, function (_a) {
343
351
  switch (_a.label) {
344
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCustomSchema(createCustomSchemaRequestDto, authorization, options)];
352
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCustomSchema(authorization, createCustomSchemaRequestDto, options)];
345
353
  case 1:
346
354
  localVarAxiosArgs = _a.sent();
347
355
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -352,18 +360,18 @@ var CustomSchemaApiFp = function (configuration) {
352
360
  /**
353
361
  * 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.
354
362
  * @summary Retrieve the custom-schema
363
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
355
364
  * @param {string} code Unique identifier for the object.
356
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
357
365
  * @param {string} [expand] Fields to expand response by
358
366
  * @param {*} [options] Override http request option.
359
367
  * @throws {RequiredError}
360
368
  */
361
- getCustomSchema: function (code, authorization, expand, options) {
369
+ getCustomSchema: function (authorization, code, expand, options) {
362
370
  return __awaiter(this, void 0, void 0, function () {
363
371
  var localVarAxiosArgs;
364
372
  return __generator(this, function (_a) {
365
373
  switch (_a.label) {
366
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCustomSchema(code, authorization, expand, options)];
374
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCustomSchema(authorization, code, expand, options)];
367
375
  case 1:
368
376
  localVarAxiosArgs = _a.sent();
369
377
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -374,7 +382,7 @@ var CustomSchemaApiFp = function (configuration) {
374
382
  /**
375
383
  * 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.
376
384
  * @summary List custom-schemas
377
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
385
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
378
386
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
379
387
  * @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.
380
388
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -400,18 +408,18 @@ var CustomSchemaApiFp = function (configuration) {
400
408
  /**
401
409
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
402
410
  * @summary Update the custom-schema
411
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
403
412
  * @param {string} code
404
413
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
405
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
406
414
  * @param {*} [options] Override http request option.
407
415
  * @throws {RequiredError}
408
416
  */
409
- updateCustomSchema: function (code, updateCustomSchemaRequestDto, authorization, options) {
417
+ updateCustomSchema: function (authorization, code, updateCustomSchemaRequestDto, options) {
410
418
  return __awaiter(this, void 0, void 0, function () {
411
419
  var localVarAxiosArgs;
412
420
  return __generator(this, function (_a) {
413
421
  switch (_a.label) {
414
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCustomSchema(code, updateCustomSchemaRequestDto, authorization, options)];
422
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCustomSchema(authorization, code, updateCustomSchemaRequestDto, options)];
415
423
  case 1:
416
424
  localVarAxiosArgs = _a.sent();
417
425
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -432,30 +440,30 @@ var CustomSchemaApiFactory = function (configuration, basePath, axios) {
432
440
  /**
433
441
  * 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.
434
442
  * @summary Create the custom-schema
443
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
435
444
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
436
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
437
445
  * @param {*} [options] Override http request option.
438
446
  * @throws {RequiredError}
439
447
  */
440
- createCustomSchema: function (createCustomSchemaRequestDto, authorization, options) {
441
- return localVarFp.createCustomSchema(createCustomSchemaRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
448
+ createCustomSchema: function (authorization, createCustomSchemaRequestDto, options) {
449
+ return localVarFp.createCustomSchema(authorization, createCustomSchemaRequestDto, options).then(function (request) { return request(axios, basePath); });
442
450
  },
443
451
  /**
444
452
  * 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.
445
453
  * @summary Retrieve the custom-schema
454
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
446
455
  * @param {string} code Unique identifier for the object.
447
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
448
456
  * @param {string} [expand] Fields to expand response by
449
457
  * @param {*} [options] Override http request option.
450
458
  * @throws {RequiredError}
451
459
  */
452
- getCustomSchema: function (code, authorization, expand, options) {
453
- return localVarFp.getCustomSchema(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
460
+ getCustomSchema: function (authorization, code, expand, options) {
461
+ return localVarFp.getCustomSchema(authorization, code, expand, options).then(function (request) { return request(axios, basePath); });
454
462
  },
455
463
  /**
456
464
  * 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.
457
465
  * @summary List custom-schemas
458
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
466
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
459
467
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
460
468
  * @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.
461
469
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -471,14 +479,14 @@ var CustomSchemaApiFactory = function (configuration, basePath, axios) {
471
479
  /**
472
480
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
473
481
  * @summary Update the custom-schema
482
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
474
483
  * @param {string} code
475
484
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
476
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
477
485
  * @param {*} [options] Override http request option.
478
486
  * @throws {RequiredError}
479
487
  */
480
- updateCustomSchema: function (code, updateCustomSchemaRequestDto, authorization, options) {
481
- return localVarFp.updateCustomSchema(code, updateCustomSchemaRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
488
+ updateCustomSchema: function (authorization, code, updateCustomSchemaRequestDto, options) {
489
+ return localVarFp.updateCustomSchema(authorization, code, updateCustomSchemaRequestDto, options).then(function (request) { return request(axios, basePath); });
482
490
  },
483
491
  };
484
492
  };
@@ -504,7 +512,7 @@ var CustomSchemaApi = /** @class */ (function (_super) {
504
512
  */
505
513
  CustomSchemaApi.prototype.createCustomSchema = function (requestParameters, options) {
506
514
  var _this = this;
507
- return (0, exports.CustomSchemaApiFp)(this.configuration).createCustomSchema(requestParameters.createCustomSchemaRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
515
+ return (0, exports.CustomSchemaApiFp)(this.configuration).createCustomSchema(requestParameters.authorization, requestParameters.createCustomSchemaRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
508
516
  };
509
517
  /**
510
518
  * 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.
@@ -516,7 +524,7 @@ var CustomSchemaApi = /** @class */ (function (_super) {
516
524
  */
517
525
  CustomSchemaApi.prototype.getCustomSchema = function (requestParameters, options) {
518
526
  var _this = this;
519
- return (0, exports.CustomSchemaApiFp)(this.configuration).getCustomSchema(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
527
+ return (0, exports.CustomSchemaApiFp)(this.configuration).getCustomSchema(requestParameters.authorization, requestParameters.code, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
520
528
  };
521
529
  /**
522
530
  * 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.
@@ -528,7 +536,6 @@ var CustomSchemaApi = /** @class */ (function (_super) {
528
536
  */
529
537
  CustomSchemaApi.prototype.listCustomSchemas = function (requestParameters, options) {
530
538
  var _this = this;
531
- if (requestParameters === void 0) { requestParameters = {}; }
532
539
  return (0, exports.CustomSchemaApiFp)(this.configuration).listCustomSchemas(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
533
540
  };
534
541
  /**
@@ -541,7 +548,7 @@ var CustomSchemaApi = /** @class */ (function (_super) {
541
548
  */
542
549
  CustomSchemaApi.prototype.updateCustomSchema = function (requestParameters, options) {
543
550
  var _this = this;
544
- return (0, exports.CustomSchemaApiFp)(this.configuration).updateCustomSchema(requestParameters.code, requestParameters.updateCustomSchemaRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
551
+ return (0, exports.CustomSchemaApiFp)(this.configuration).updateCustomSchema(requestParameters.authorization, requestParameters.code, requestParameters.updateCustomSchemaRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
545
552
  };
546
553
  return CustomSchemaApi;
547
554
  }(base_1.BaseAPI));