@emilgroup/tenant-sdk 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/.openapi-generator/FILES +14 -57
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +52 -60
  4. package/api/data-report-api.ts +65 -75
  5. package/api/data-report-executor-api.ts +10 -26
  6. package/api/{user-subscription-api.ts → invite-organizations-api.ts} +139 -161
  7. package/api/invite-users-api.ts +75 -79
  8. package/api/organizations-api.ts +455 -0
  9. package/api/users-api.ts +138 -148
  10. package/api.ts +4 -14
  11. package/dist/api/custom-schema-api.d.ts +42 -42
  12. package/dist/api/custom-schema-api.js +31 -38
  13. package/dist/api/data-report-api.d.ts +52 -52
  14. package/dist/api/data-report-api.js +40 -49
  15. package/dist/api/data-report-executor-api.d.ts +7 -16
  16. package/dist/api/data-report-executor-api.js +9 -17
  17. package/dist/api/{user-subscription-api.d.ts → invite-organizations-api.d.ts} +89 -103
  18. package/dist/api/{user-subscription-api.js → invite-organizations-api.js} +106 -114
  19. package/dist/api/invite-users-api.d.ts +63 -60
  20. package/dist/api/invite-users-api.js +40 -49
  21. package/dist/api/organizations-api.d.ts +261 -0
  22. package/dist/api/{settings-api.js → organizations-api.js} +135 -195
  23. package/dist/api/users-api.d.ts +113 -109
  24. package/dist/api/users-api.js +76 -93
  25. package/dist/api.d.ts +2 -7
  26. package/dist/api.js +2 -7
  27. package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
  28. package/dist/models/{manage-subscription-request-dto.d.ts → batch-delete-response-class.d.ts} +5 -5
  29. package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
  30. package/dist/models/create-custom-schema-request-dto.js +2 -1
  31. package/dist/models/{insurance-response-class.d.ts → delete-response-class.d.ts} +6 -6
  32. package/dist/models/{get-embedded-url-response-class.d.ts → disable-users-response-class.d.ts} +6 -6
  33. package/dist/models/{insurance-company-response-class.d.ts → enable-users-response-class.d.ts} +6 -6
  34. package/dist/models/{create-alert-response-class.d.ts → get-organization-response-class.d.ts} +7 -7
  35. package/dist/models/index.d.ts +12 -50
  36. package/dist/models/index.js +12 -50
  37. package/dist/models/invite-org-request-dto.d.ts +78 -0
  38. package/dist/models/invite-user-request-dto.d.ts +8 -2
  39. package/dist/models/invite-users-request-dto.d.ts +2 -2
  40. package/dist/models/invite-users-response-class.d.ts +24 -0
  41. package/dist/models/{list-user-subscriptions-response-class.d.ts → list-org-invitations-response-class.d.ts} +8 -8
  42. package/dist/models/{list-alert-history-response-class.d.ts → list-organizations-response-class.d.ts} +9 -9
  43. package/dist/models/org-invitation-class.d.ts +103 -0
  44. package/dist/models/{create-dashboard-response-class.d.ts → org-invitation-response-class.d.ts} +7 -7
  45. package/dist/models/organization-class.d.ts +84 -0
  46. package/dist/models/set-setting-request-dto.d.ts +10 -4
  47. package/dist/models/subscription-class.d.ts +9 -2
  48. package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
  49. package/dist/models/update-custom-schema-request-dto.js +2 -1
  50. package/dist/models/user-class.d.ts +13 -5
  51. package/models/assign-user-roles-request-dto.ts +2 -2
  52. package/models/{manage-subscription-request-dto.ts → batch-delete-response-class.ts} +5 -5
  53. package/models/create-custom-schema-request-dto.ts +2 -1
  54. package/models/{insurance-response-class.ts → delete-response-class.ts} +6 -6
  55. package/models/{get-embedded-url-response-class.ts → disable-users-response-class.ts} +6 -6
  56. package/models/{insurance-company-response-class.ts → enable-users-response-class.ts} +6 -6
  57. package/models/{channel-response-class.ts → get-organization-response-class.ts} +7 -12
  58. package/models/index.ts +12 -50
  59. package/models/invite-org-request-dto.ts +84 -0
  60. package/models/invite-user-request-dto.ts +8 -2
  61. package/models/invite-users-request-dto.ts +2 -2
  62. package/models/invite-users-response-class.ts +30 -0
  63. package/models/{list-user-subscriptions-response-class.ts → list-org-invitations-response-class.ts} +8 -8
  64. package/models/{list-alert-history-response-class.ts → list-organizations-response-class.ts} +9 -9
  65. package/models/org-invitation-class.ts +109 -0
  66. package/models/{create-alert-response-class.ts → org-invitation-response-class.ts} +7 -7
  67. package/models/organization-class.ts +90 -0
  68. package/models/set-setting-request-dto.ts +10 -4
  69. package/models/subscription-class.ts +9 -2
  70. package/models/update-custom-schema-request-dto.ts +2 -1
  71. package/models/user-class.ts +13 -5
  72. package/package.json +1 -1
  73. package/api/alerts-api.ts +0 -860
  74. package/api/dashboard-api.ts +0 -792
  75. package/api/reports-api.ts +0 -860
  76. package/api/scenario-analysis-api.ts +0 -977
  77. package/api/settings-api.ts +0 -484
  78. package/api/tariff-comparisons-api.ts +0 -381
  79. package/dist/api/alerts-api.d.ts +0 -479
  80. package/dist/api/alerts-api.js +0 -752
  81. package/dist/api/dashboard-api.d.ts +0 -434
  82. package/dist/api/dashboard-api.js +0 -724
  83. package/dist/api/reports-api.d.ts +0 -479
  84. package/dist/api/reports-api.js +0 -752
  85. package/dist/api/scenario-analysis-api.d.ts +0 -529
  86. package/dist/api/scenario-analysis-api.js +0 -895
  87. package/dist/api/settings-api.d.ts +0 -264
  88. package/dist/api/tariff-comparisons-api.d.ts +0 -206
  89. package/dist/api/tariff-comparisons-api.js +0 -409
  90. package/dist/models/alert-class.d.ts +0 -90
  91. package/dist/models/alert-history-class.d.ts +0 -108
  92. package/dist/models/channel-response-class.d.ts +0 -30
  93. package/dist/models/compare-tariffs-request-dto.d.ts +0 -37
  94. package/dist/models/compare-tariffs-request-dto.js +0 -22
  95. package/dist/models/compare-tariffs-response-class.d.ts +0 -31
  96. package/dist/models/condition-dto.d.ts +0 -43
  97. package/dist/models/condition-dto.js +0 -22
  98. package/dist/models/create-alert-request-dto.d.ts +0 -79
  99. package/dist/models/create-alert-request-dto.js +0 -27
  100. package/dist/models/create-dashboard-request-dto.d.ts +0 -70
  101. package/dist/models/create-dashboard-request-dto.js +0 -29
  102. package/dist/models/create-report-request-dto.d.ts +0 -49
  103. package/dist/models/create-report-request-dto.js +0 -22
  104. package/dist/models/create-report-response-class.d.ts +0 -25
  105. package/dist/models/create-scenario-analysis-request-dto.d.ts +0 -74
  106. package/dist/models/create-scenario-analysis-request-dto.js +0 -22
  107. package/dist/models/create-scenario-analysis-response-class.d.ts +0 -25
  108. package/dist/models/dashboard-class.d.ts +0 -78
  109. package/dist/models/get-alert-response-class.d.ts +0 -25
  110. package/dist/models/get-dashboard-response-class.d.ts +0 -25
  111. package/dist/models/get-report-response-class.d.ts +0 -25
  112. package/dist/models/get-report-response-class.js +0 -15
  113. package/dist/models/get-scenario-analysis-response-class.d.ts +0 -25
  114. package/dist/models/get-scenario-analysis-response-class.js +0 -15
  115. package/dist/models/grouped-tariff-class.d.ts +0 -30
  116. package/dist/models/grouped-tariff-class.js +0 -15
  117. package/dist/models/insurance-company-response-class.js +0 -15
  118. package/dist/models/insurance-response-class.js +0 -15
  119. package/dist/models/list-alert-history-response-class.js +0 -15
  120. package/dist/models/list-alerts-response-class.d.ts +0 -31
  121. package/dist/models/list-alerts-response-class.js +0 -15
  122. package/dist/models/list-channels-response-class.d.ts +0 -25
  123. package/dist/models/list-channels-response-class.js +0 -15
  124. package/dist/models/list-dashboards-response-class.d.ts +0 -31
  125. package/dist/models/list-dashboards-response-class.js +0 -15
  126. package/dist/models/list-insurance-companies-response-class.d.ts +0 -25
  127. package/dist/models/list-insurance-companies-response-class.js +0 -15
  128. package/dist/models/list-report-history-response-class.d.ts +0 -31
  129. package/dist/models/list-report-history-response-class.js +0 -15
  130. package/dist/models/list-reports-response-class.d.ts +0 -31
  131. package/dist/models/list-reports-response-class.js +0 -15
  132. package/dist/models/list-scenario-analyses-response-class.d.ts +0 -31
  133. package/dist/models/list-scenario-analyses-response-class.js +0 -15
  134. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +0 -25
  135. package/dist/models/list-scenario-analysis-dates-response-class.js +0 -15
  136. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +0 -25
  137. package/dist/models/list-tariff-insurance-companies-response-class.js +0 -15
  138. package/dist/models/list-tariffs-response-class.d.ts +0 -25
  139. package/dist/models/list-tariffs-response-class.js +0 -15
  140. package/dist/models/list-user-subscriptions-response-class.js +0 -15
  141. package/dist/models/manage-subscription-request-dto.js +0 -15
  142. package/dist/models/manage-subscription-response-class.d.ts +0 -25
  143. package/dist/models/manage-subscription-response-class.js +0 -15
  144. package/dist/models/report-class.d.ts +0 -66
  145. package/dist/models/report-class.js +0 -15
  146. package/dist/models/report-history-class.d.ts +0 -48
  147. package/dist/models/report-history-class.js +0 -15
  148. package/dist/models/scenario-analysis-class.d.ts +0 -108
  149. package/dist/models/scenario-analysis-class.js +0 -15
  150. package/dist/models/scenario-analysis-date-response-class.d.ts +0 -36
  151. package/dist/models/scenario-analysis-date-response-class.js +0 -15
  152. package/dist/models/set-tenant-setting-response-class.d.ts +0 -36
  153. package/dist/models/set-tenant-setting-response-class.js +0 -15
  154. package/dist/models/update-alert-request-dto.d.ts +0 -72
  155. package/dist/models/update-alert-request-dto.js +0 -21
  156. package/dist/models/update-alert-response-class.d.ts +0 -25
  157. package/dist/models/update-alert-response-class.js +0 -15
  158. package/dist/models/update-dashboard-request-dto.d.ts +0 -76
  159. package/dist/models/update-dashboard-request-dto.js +0 -29
  160. package/dist/models/update-dashboard-response-class.d.ts +0 -25
  161. package/dist/models/update-dashboard-response-class.js +0 -15
  162. package/dist/models/update-report-request-dto.d.ts +0 -55
  163. package/dist/models/update-report-request-dto.js +0 -22
  164. package/dist/models/update-report-response-class.d.ts +0 -25
  165. package/dist/models/update-report-response-class.js +0 -15
  166. package/dist/models/update-scenario-analysis-request-dto.d.ts +0 -74
  167. package/dist/models/update-scenario-analysis-request-dto.js +0 -22
  168. package/dist/models/update-scenario-analysis-response-class.d.ts +0 -25
  169. package/dist/models/update-scenario-analysis-response-class.js +0 -15
  170. package/models/alert-class.ts +0 -96
  171. package/models/alert-history-class.ts +0 -114
  172. package/models/compare-tariffs-request-dto.ts +0 -46
  173. package/models/compare-tariffs-response-class.ts +0 -37
  174. package/models/condition-dto.ts +0 -52
  175. package/models/create-alert-request-dto.ts +0 -89
  176. package/models/create-dashboard-request-dto.ts +0 -81
  177. package/models/create-dashboard-response-class.ts +0 -31
  178. package/models/create-report-request-dto.ts +0 -58
  179. package/models/create-report-response-class.ts +0 -31
  180. package/models/create-scenario-analysis-request-dto.ts +0 -83
  181. package/models/create-scenario-analysis-response-class.ts +0 -31
  182. package/models/dashboard-class.ts +0 -84
  183. package/models/get-alert-response-class.ts +0 -31
  184. package/models/get-dashboard-response-class.ts +0 -31
  185. package/models/get-report-response-class.ts +0 -31
  186. package/models/get-scenario-analysis-response-class.ts +0 -31
  187. package/models/grouped-tariff-class.ts +0 -36
  188. package/models/list-alerts-response-class.ts +0 -37
  189. package/models/list-channels-response-class.ts +0 -31
  190. package/models/list-dashboards-response-class.ts +0 -37
  191. package/models/list-insurance-companies-response-class.ts +0 -31
  192. package/models/list-report-history-response-class.ts +0 -37
  193. package/models/list-reports-response-class.ts +0 -37
  194. package/models/list-scenario-analyses-response-class.ts +0 -37
  195. package/models/list-scenario-analysis-dates-response-class.ts +0 -31
  196. package/models/list-tariff-insurance-companies-response-class.ts +0 -31
  197. package/models/list-tariffs-response-class.ts +0 -31
  198. package/models/manage-subscription-response-class.ts +0 -31
  199. package/models/report-class.ts +0 -72
  200. package/models/report-history-class.ts +0 -54
  201. package/models/scenario-analysis-class.ts +0 -114
  202. package/models/scenario-analysis-date-response-class.ts +0 -42
  203. package/models/set-tenant-setting-response-class.ts +0 -42
  204. package/models/update-alert-request-dto.ts +0 -81
  205. package/models/update-alert-response-class.ts +0 -31
  206. package/models/update-dashboard-request-dto.ts +0 -87
  207. package/models/update-dashboard-response-class.ts +0 -31
  208. package/models/update-report-request-dto.ts +0 -64
  209. package/models/update-report-response-class.ts +0 -31
  210. package/models/update-scenario-analysis-request-dto.ts +0 -83
  211. package/models/update-scenario-analysis-response-class.ts +0 -31
  212. /package/dist/models/{alert-class.js → batch-delete-response-class.js} +0 -0
  213. /package/dist/models/{alert-history-class.js → delete-response-class.js} +0 -0
  214. /package/dist/models/{channel-response-class.js → disable-users-response-class.js} +0 -0
  215. /package/dist/models/{compare-tariffs-response-class.js → enable-users-response-class.js} +0 -0
  216. /package/dist/models/{create-alert-response-class.js → get-organization-response-class.js} +0 -0
  217. /package/dist/models/{create-dashboard-response-class.js → invite-org-request-dto.js} +0 -0
  218. /package/dist/models/{create-report-response-class.js → invite-users-response-class.js} +0 -0
  219. /package/dist/models/{create-scenario-analysis-response-class.js → list-org-invitations-response-class.js} +0 -0
  220. /package/dist/models/{dashboard-class.js → list-organizations-response-class.js} +0 -0
  221. /package/dist/models/{get-alert-response-class.js → org-invitation-class.js} +0 -0
  222. /package/dist/models/{get-dashboard-response-class.js → org-invitation-response-class.js} +0 -0
  223. /package/dist/models/{get-embedded-url-response-class.js → organization-class.js} +0 -0
package/api.ts CHANGED
@@ -24,30 +24,20 @@ import FormData from 'form-data'
24
24
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
- import { AlertsApi } from './api';
28
27
  import { CustomSchemaApi } from './api';
29
- import { DashboardApi } from './api';
30
28
  import { DataReportApi } from './api';
31
29
  import { DataReportExecutorApi } from './api';
30
+ import { InviteOrganizationsApi } from './api';
32
31
  import { InviteUsersApi } from './api';
33
- import { ReportsApi } from './api';
34
- import { ScenarioAnalysisApi } from './api';
35
- import { SettingsApi } from './api';
36
- import { TariffComparisonsApi } from './api';
37
- import { UserSubscriptionApi } from './api';
32
+ import { OrganizationsApi } from './api';
38
33
  import { UsersApi } from './api';
39
34
 
40
35
 
41
- export * from './api/alerts-api';
42
36
  export * from './api/custom-schema-api';
43
- export * from './api/dashboard-api';
44
37
  export * from './api/data-report-api';
45
38
  export * from './api/data-report-executor-api';
39
+ export * from './api/invite-organizations-api';
46
40
  export * from './api/invite-users-api';
47
- export * from './api/reports-api';
48
- export * from './api/scenario-analysis-api';
49
- export * from './api/settings-api';
50
- export * from './api/tariff-comparisons-api';
51
- export * from './api/user-subscription-api';
41
+ export * from './api/organizations-api';
52
42
  export * from './api/users-api';
53
43
 
@@ -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.
30
29
  * @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: (authorization: string, createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34
+ createCustomSchema: (createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, 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.
39
38
  * @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: (authorization: string, code: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
+ getCustomSchema: (code: string, authorization?: 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.
63
62
  * @param {string} code
64
63
  * @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: (authorization: string, code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ updateCustomSchema: (code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, authorization?: string, 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.
79
78
  * @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(authorization: string, createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomSchemaResponseClass>>;
83
+ createCustomSchema(createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, 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.
88
87
  * @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(authorization: string, code: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomSchemaResponseClass>>;
93
+ getCustomSchema(code: string, authorization?: 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.
112
111
  * @param {string} code
113
112
  * @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(authorization: string, code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomSchemaResponseClass>>;
117
+ updateCustomSchema(code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, authorization?: string, 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.
128
127
  * @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(authorization: string, createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, options?: any): AxiosPromise<CreateCustomSchemaResponseClass>;
132
+ createCustomSchema(createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, 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.
137
136
  * @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(authorization: string, code: string, expand?: string, options?: any): AxiosPromise<GetCustomSchemaResponseClass>;
142
+ getCustomSchema(code: string, authorization?: 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.
161
160
  * @param {string} code
162
161
  * @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(authorization: string, code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, options?: any): AxiosPromise<UpdateCustomSchemaResponseClass>;
166
+ updateCustomSchema(code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomSchemaResponseClass>;
167
167
  };
168
168
  /**
169
169
  * Request parameters for createCustomSchema operation in CustomSchemaApi.
@@ -171,18 +171,18 @@ export declare const CustomSchemaApiFactory: (configuration?: Configuration, bas
171
171
  * @interface CustomSchemaApiCreateCustomSchemaRequest
172
172
  */
173
173
  export interface CustomSchemaApiCreateCustomSchemaRequest {
174
- /**
175
- * Bearer Token: provided by the login endpoint under the name accessToken.
176
- * @type {string}
177
- * @memberof CustomSchemaApiCreateCustomSchema
178
- */
179
- readonly authorization: string;
180
174
  /**
181
175
  *
182
176
  * @type {CreateCustomSchemaRequestDto}
183
177
  * @memberof CustomSchemaApiCreateCustomSchema
184
178
  */
185
179
  readonly createCustomSchemaRequestDto: CreateCustomSchemaRequestDto;
180
+ /**
181
+ * Bearer Token: provided by the login endpoint under the name accessToken.
182
+ * @type {string}
183
+ * @memberof CustomSchemaApiCreateCustomSchema
184
+ */
185
+ readonly authorization?: string;
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
- * Bearer Token: provided by the login endpoint under the name accessToken.
194
+ * Unique identifier for the object.
195
195
  * @type {string}
196
196
  * @memberof CustomSchemaApiGetCustomSchema
197
197
  */
198
- readonly authorization: string;
198
+ readonly code: string;
199
199
  /**
200
- * Unique identifier for the object.
200
+ * Bearer Token: provided by the login endpoint under the name accessToken.
201
201
  * @type {string}
202
202
  * @memberof CustomSchemaApiGetCustomSchema
203
203
  */
204
- readonly code: string;
204
+ readonly authorization?: 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,12 +264,6 @@ 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;
273
267
  /**
274
268
  *
275
269
  * @type {string}
@@ -282,6 +276,12 @@ export interface CustomSchemaApiUpdateCustomSchemaRequest {
282
276
  * @memberof CustomSchemaApiUpdateCustomSchema
283
277
  */
284
278
  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,20 +99,18 @@ 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.
103
102
  * @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 (authorization, createCustomSchemaRequestDto, options) {
107
+ createCustomSchema: function (createCustomSchemaRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
114
- // verify required parameter 'authorization' is not null or undefined
115
- (0, common_1.assertParamExists)('createCustomSchema', 'authorization', authorization);
116
114
  // verify required parameter 'createCustomSchemaRequestDto' is not null or undefined
117
115
  (0, common_1.assertParamExists)('createCustomSchema', 'createCustomSchemaRequestDto', createCustomSchemaRequestDto);
118
116
  localVarPath = "/tenantservice/v1/custom-schemas";
@@ -150,21 +148,19 @@ var CustomSchemaApiAxiosParamCreator = function (configuration) {
150
148
  /**
151
149
  * 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.
152
150
  * @summary Retrieve the custom-schema
153
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
154
151
  * @param {string} code Unique identifier for the object.
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
155
153
  * @param {string} [expand] Fields to expand response by
156
154
  * @param {*} [options] Override http request option.
157
155
  * @throws {RequiredError}
158
156
  */
159
- getCustomSchema: function (authorization, code, expand, options) {
157
+ getCustomSchema: function (code, authorization, expand, options) {
160
158
  if (options === void 0) { options = {}; }
161
159
  return __awaiter(_this, void 0, void 0, function () {
162
160
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
163
161
  return __generator(this, function (_a) {
164
162
  switch (_a.label) {
165
163
  case 0:
166
- // verify required parameter 'authorization' is not null or undefined
167
- (0, common_1.assertParamExists)('getCustomSchema', 'authorization', authorization);
168
164
  // verify required parameter 'code' is not null or undefined
169
165
  (0, common_1.assertParamExists)('getCustomSchema', 'code', code);
170
166
  localVarPath = "/tenantservice/v1/custom-schemas/{code}"
@@ -204,7 +200,7 @@ var CustomSchemaApiAxiosParamCreator = function (configuration) {
204
200
  /**
205
201
  * 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.
206
202
  * @summary List custom-schemas
207
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
203
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
208
204
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
209
205
  * @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.
210
206
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -221,8 +217,6 @@ var CustomSchemaApiAxiosParamCreator = function (configuration) {
221
217
  return __generator(this, function (_a) {
222
218
  switch (_a.label) {
223
219
  case 0:
224
- // verify required parameter 'authorization' is not null or undefined
225
- (0, common_1.assertParamExists)('listCustomSchemas', 'authorization', authorization);
226
220
  localVarPath = "/tenantservice/v1/custom-schemas";
227
221
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
228
222
  if (configuration) {
@@ -274,21 +268,19 @@ var CustomSchemaApiAxiosParamCreator = function (configuration) {
274
268
  /**
275
269
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
276
270
  * @summary Update the custom-schema
277
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
278
271
  * @param {string} code
279
272
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
273
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
280
274
  * @param {*} [options] Override http request option.
281
275
  * @throws {RequiredError}
282
276
  */
283
- updateCustomSchema: function (authorization, code, updateCustomSchemaRequestDto, options) {
277
+ updateCustomSchema: function (code, updateCustomSchemaRequestDto, authorization, options) {
284
278
  if (options === void 0) { options = {}; }
285
279
  return __awaiter(_this, void 0, void 0, function () {
286
280
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
287
281
  return __generator(this, function (_a) {
288
282
  switch (_a.label) {
289
283
  case 0:
290
- // verify required parameter 'authorization' is not null or undefined
291
- (0, common_1.assertParamExists)('updateCustomSchema', 'authorization', authorization);
292
284
  // verify required parameter 'code' is not null or undefined
293
285
  (0, common_1.assertParamExists)('updateCustomSchema', 'code', code);
294
286
  // verify required parameter 'updateCustomSchemaRequestDto' is not null or undefined
@@ -339,17 +331,17 @@ var CustomSchemaApiFp = function (configuration) {
339
331
  /**
340
332
  * 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
333
  * @summary Create the custom-schema
342
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
343
334
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
335
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
344
336
  * @param {*} [options] Override http request option.
345
337
  * @throws {RequiredError}
346
338
  */
347
- createCustomSchema: function (authorization, createCustomSchemaRequestDto, options) {
339
+ createCustomSchema: function (createCustomSchemaRequestDto, authorization, options) {
348
340
  return __awaiter(this, void 0, void 0, function () {
349
341
  var localVarAxiosArgs;
350
342
  return __generator(this, function (_a) {
351
343
  switch (_a.label) {
352
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCustomSchema(authorization, createCustomSchemaRequestDto, options)];
344
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCustomSchema(createCustomSchemaRequestDto, authorization, options)];
353
345
  case 1:
354
346
  localVarAxiosArgs = _a.sent();
355
347
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -360,18 +352,18 @@ var CustomSchemaApiFp = function (configuration) {
360
352
  /**
361
353
  * 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.
362
354
  * @summary Retrieve the custom-schema
363
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
364
355
  * @param {string} code Unique identifier for the object.
356
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
365
357
  * @param {string} [expand] Fields to expand response by
366
358
  * @param {*} [options] Override http request option.
367
359
  * @throws {RequiredError}
368
360
  */
369
- getCustomSchema: function (authorization, code, expand, options) {
361
+ getCustomSchema: function (code, authorization, expand, options) {
370
362
  return __awaiter(this, void 0, void 0, function () {
371
363
  var localVarAxiosArgs;
372
364
  return __generator(this, function (_a) {
373
365
  switch (_a.label) {
374
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCustomSchema(authorization, code, expand, options)];
366
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCustomSchema(code, authorization, expand, options)];
375
367
  case 1:
376
368
  localVarAxiosArgs = _a.sent();
377
369
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -382,7 +374,7 @@ var CustomSchemaApiFp = function (configuration) {
382
374
  /**
383
375
  * 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.
384
376
  * @summary List custom-schemas
385
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
377
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
386
378
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
387
379
  * @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.
388
380
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -408,18 +400,18 @@ var CustomSchemaApiFp = function (configuration) {
408
400
  /**
409
401
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
410
402
  * @summary Update the custom-schema
411
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
412
403
  * @param {string} code
413
404
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
405
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
414
406
  * @param {*} [options] Override http request option.
415
407
  * @throws {RequiredError}
416
408
  */
417
- updateCustomSchema: function (authorization, code, updateCustomSchemaRequestDto, options) {
409
+ updateCustomSchema: function (code, updateCustomSchemaRequestDto, authorization, options) {
418
410
  return __awaiter(this, void 0, void 0, function () {
419
411
  var localVarAxiosArgs;
420
412
  return __generator(this, function (_a) {
421
413
  switch (_a.label) {
422
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCustomSchema(authorization, code, updateCustomSchemaRequestDto, options)];
414
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCustomSchema(code, updateCustomSchemaRequestDto, authorization, options)];
423
415
  case 1:
424
416
  localVarAxiosArgs = _a.sent();
425
417
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -440,30 +432,30 @@ var CustomSchemaApiFactory = function (configuration, basePath, axios) {
440
432
  /**
441
433
  * 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.
442
434
  * @summary Create the custom-schema
443
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
444
435
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
436
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
445
437
  * @param {*} [options] Override http request option.
446
438
  * @throws {RequiredError}
447
439
  */
448
- createCustomSchema: function (authorization, createCustomSchemaRequestDto, options) {
449
- return localVarFp.createCustomSchema(authorization, createCustomSchemaRequestDto, options).then(function (request) { return request(axios, basePath); });
440
+ createCustomSchema: function (createCustomSchemaRequestDto, authorization, options) {
441
+ return localVarFp.createCustomSchema(createCustomSchemaRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
450
442
  },
451
443
  /**
452
444
  * 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.
453
445
  * @summary Retrieve the custom-schema
454
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
455
446
  * @param {string} code Unique identifier for the object.
447
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
456
448
  * @param {string} [expand] Fields to expand response by
457
449
  * @param {*} [options] Override http request option.
458
450
  * @throws {RequiredError}
459
451
  */
460
- getCustomSchema: function (authorization, code, expand, options) {
461
- return localVarFp.getCustomSchema(authorization, code, expand, options).then(function (request) { return request(axios, basePath); });
452
+ getCustomSchema: function (code, authorization, expand, options) {
453
+ return localVarFp.getCustomSchema(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
462
454
  },
463
455
  /**
464
456
  * 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.
465
457
  * @summary List custom-schemas
466
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
458
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
467
459
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
468
460
  * @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.
469
461
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -479,14 +471,14 @@ var CustomSchemaApiFactory = function (configuration, basePath, axios) {
479
471
  /**
480
472
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
481
473
  * @summary Update the custom-schema
482
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
483
474
  * @param {string} code
484
475
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
476
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
485
477
  * @param {*} [options] Override http request option.
486
478
  * @throws {RequiredError}
487
479
  */
488
- updateCustomSchema: function (authorization, code, updateCustomSchemaRequestDto, options) {
489
- return localVarFp.updateCustomSchema(authorization, code, updateCustomSchemaRequestDto, options).then(function (request) { return request(axios, basePath); });
480
+ updateCustomSchema: function (code, updateCustomSchemaRequestDto, authorization, options) {
481
+ return localVarFp.updateCustomSchema(code, updateCustomSchemaRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
490
482
  },
491
483
  };
492
484
  };
@@ -512,7 +504,7 @@ var CustomSchemaApi = /** @class */ (function (_super) {
512
504
  */
513
505
  CustomSchemaApi.prototype.createCustomSchema = function (requestParameters, options) {
514
506
  var _this = this;
515
- return (0, exports.CustomSchemaApiFp)(this.configuration).createCustomSchema(requestParameters.authorization, requestParameters.createCustomSchemaRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
507
+ return (0, exports.CustomSchemaApiFp)(this.configuration).createCustomSchema(requestParameters.createCustomSchemaRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
516
508
  };
517
509
  /**
518
510
  * 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.
@@ -524,7 +516,7 @@ var CustomSchemaApi = /** @class */ (function (_super) {
524
516
  */
525
517
  CustomSchemaApi.prototype.getCustomSchema = function (requestParameters, options) {
526
518
  var _this = this;
527
- return (0, exports.CustomSchemaApiFp)(this.configuration).getCustomSchema(requestParameters.authorization, requestParameters.code, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
519
+ return (0, exports.CustomSchemaApiFp)(this.configuration).getCustomSchema(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
528
520
  };
529
521
  /**
530
522
  * 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.
@@ -536,6 +528,7 @@ var CustomSchemaApi = /** @class */ (function (_super) {
536
528
  */
537
529
  CustomSchemaApi.prototype.listCustomSchemas = function (requestParameters, options) {
538
530
  var _this = this;
531
+ if (requestParameters === void 0) { requestParameters = {}; }
539
532
  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); });
540
533
  };
541
534
  /**
@@ -548,7 +541,7 @@ var CustomSchemaApi = /** @class */ (function (_super) {
548
541
  */
549
542
  CustomSchemaApi.prototype.updateCustomSchema = function (requestParameters, options) {
550
543
  var _this = this;
551
- return (0, exports.CustomSchemaApiFp)(this.configuration).updateCustomSchema(requestParameters.authorization, requestParameters.code, requestParameters.updateCustomSchemaRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
544
+ return (0, exports.CustomSchemaApiFp)(this.configuration).updateCustomSchema(requestParameters.code, requestParameters.updateCustomSchemaRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
552
545
  };
553
546
  return CustomSchemaApi;
554
547
  }(base_1.BaseAPI));