@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
@@ -3,121 +3,78 @@
3
3
  .openapi-generator-ignore
4
4
  README.md
5
5
  api.ts
6
- api/alerts-api.ts
7
6
  api/custom-schema-api.ts
8
- api/dashboard-api.ts
9
7
  api/data-report-api.ts
10
8
  api/data-report-executor-api.ts
9
+ api/invite-organizations-api.ts
11
10
  api/invite-users-api.ts
12
- api/reports-api.ts
13
- api/scenario-analysis-api.ts
14
- api/settings-api.ts
15
- api/tariff-comparisons-api.ts
16
- api/user-subscription-api.ts
11
+ api/organizations-api.ts
17
12
  api/users-api.ts
18
13
  base.ts
19
14
  common.ts
20
15
  configuration.ts
21
16
  git_push.sh
22
17
  index.ts
23
- models/alert-class.ts
24
- models/alert-history-class.ts
25
18
  models/assign-user-roles-request-dto.ts
26
19
  models/assign-user-roles-response-class.ts
27
20
  models/batch-delete-request-dto.ts
28
- models/channel-response-class.ts
29
- models/compare-tariffs-request-dto.ts
30
- models/compare-tariffs-response-class.ts
31
- models/condition-dto.ts
32
- models/create-alert-request-dto.ts
33
- models/create-alert-response-class.ts
21
+ models/batch-delete-response-class.ts
34
22
  models/create-custom-schema-request-dto.ts
35
23
  models/create-custom-schema-response-class.ts
36
- models/create-dashboard-request-dto.ts
37
- models/create-dashboard-response-class.ts
38
24
  models/create-data-report-request-dto.ts
39
25
  models/create-data-report-response-class.ts
40
26
  models/create-permission-request-dto.ts
41
- models/create-report-request-dto.ts
42
- models/create-report-response-class.ts
43
27
  models/create-role-request-dto.ts
44
- models/create-scenario-analysis-request-dto.ts
45
- models/create-scenario-analysis-response-class.ts
46
28
  models/create-tenant-request-dto.ts
47
29
  models/custom-field-dto.ts
48
30
  models/custom-schema-class.ts
49
- models/dashboard-class.ts
50
31
  models/data-report-class.ts
51
32
  models/data-report-filter-class.ts
52
33
  models/data-report-filter-dto.ts
53
34
  models/data-report-filter-single-value-dto.ts
54
35
  models/data-report-filter-value-dto.ts
55
36
  models/dbconfig-dto.ts
37
+ models/delete-response-class.ts
56
38
  models/disable-user-response-class.ts
57
39
  models/disable-users-request-dto.ts
40
+ models/disable-users-response-class.ts
58
41
  models/enable-user-response-class.ts
59
42
  models/enable-users-request-dto.ts
60
- models/get-alert-response-class.ts
43
+ models/enable-users-response-class.ts
61
44
  models/get-custom-schema-response-class.ts
62
- models/get-dashboard-response-class.ts
63
45
  models/get-data-report-response-class.ts
64
- models/get-embedded-url-response-class.ts
65
- models/get-report-response-class.ts
66
- models/get-scenario-analysis-response-class.ts
46
+ models/get-organization-response-class.ts
67
47
  models/get-settings-response-class.ts
68
48
  models/get-user-response-class.ts
69
- models/grouped-tariff-class.ts
70
49
  models/index.ts
71
- models/insurance-company-response-class.ts
72
- models/insurance-response-class.ts
73
50
  models/invite-class.ts
51
+ models/invite-org-request-dto.ts
74
52
  models/invite-user-request-dto.ts
75
53
  models/invite-user-response-class.ts
76
54
  models/invite-users-request-dto.ts
77
- models/list-alert-history-response-class.ts
78
- models/list-alerts-response-class.ts
79
- models/list-channels-response-class.ts
55
+ models/invite-users-response-class.ts
80
56
  models/list-custom-schemas-response-class.ts
81
- models/list-dashboards-response-class.ts
82
57
  models/list-data-reports-response-class.ts
83
- models/list-insurance-companies-response-class.ts
84
58
  models/list-invites-response-class.ts
85
- models/list-report-history-response-class.ts
86
- models/list-reports-response-class.ts
87
- models/list-scenario-analyses-response-class.ts
88
- models/list-scenario-analysis-dates-response-class.ts
89
- models/list-tariff-insurance-companies-response-class.ts
90
- models/list-tariffs-response-class.ts
91
- models/list-user-subscriptions-response-class.ts
59
+ models/list-org-invitations-response-class.ts
60
+ models/list-organizations-response-class.ts
92
61
  models/list-users-response-class.ts
93
- models/manage-subscription-request-dto.ts
94
- models/manage-subscription-response-class.ts
62
+ models/org-invitation-class.ts
63
+ models/org-invitation-response-class.ts
64
+ models/organization-class.ts
95
65
  models/permission-class.ts
96
- models/report-class.ts
97
- models/report-history-class.ts
98
66
  models/role-class.ts
99
67
  models/run-data-report-request-dto.ts
100
68
  models/run-data-report-response-class.ts
101
- models/scenario-analysis-class.ts
102
- models/scenario-analysis-date-response-class.ts
103
69
  models/set-setting-request-dto.ts
104
- models/set-tenant-setting-response-class.ts
105
70
  models/set-user-setting-response-class.ts
106
71
  models/subscription-class.ts
107
72
  models/tenant-admin-user-dto.ts
108
- models/update-alert-request-dto.ts
109
- models/update-alert-response-class.ts
110
73
  models/update-custom-schema-request-dto.ts
111
74
  models/update-custom-schema-response-class.ts
112
- models/update-dashboard-request-dto.ts
113
- models/update-dashboard-response-class.ts
114
75
  models/update-data-report-request-dto.ts
115
76
  models/update-data-report-response-class.ts
116
- models/update-report-request-dto.ts
117
- models/update-report-response-class.ts
118
77
  models/update-role-request-dto.ts
119
- models/update-scenario-analysis-request-dto.ts
120
- models/update-scenario-analysis-response-class.ts
121
78
  models/user-class.ts
122
79
  package.json
123
80
  tsconfig.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/tenant-sdk@1.0.1 --save
20
+ npm install @emilgroup/tenant-sdk@1.1.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk@1.0.1
24
+ yarn add @emilgroup/tenant-sdk@1.1.0
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -45,14 +45,12 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
45
45
  /**
46
46
  * This will create an custom schema for tenant in the database. Custom schema are extra fields that tenant added to his entity and we need to validate this fields using the created schema.
47
47
  * @summary Create the custom-schema
48
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
49
48
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
49
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
50
  * @param {*} [options] Override http request option.
51
51
  * @throws {RequiredError}
52
52
  */
53
- createCustomSchema: async (authorization: string, createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
- // verify required parameter 'authorization' is not null or undefined
55
- assertParamExists('createCustomSchema', 'authorization', authorization)
53
+ createCustomSchema: async (createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
56
54
  // verify required parameter 'createCustomSchemaRequestDto' is not null or undefined
57
55
  assertParamExists('createCustomSchema', 'createCustomSchemaRequestDto', createCustomSchemaRequestDto)
58
56
  const localVarPath = `/tenantservice/v1/custom-schemas`;
@@ -94,15 +92,13 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
94
92
  /**
95
93
  * 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.
96
94
  * @summary Retrieve the custom-schema
97
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
98
95
  * @param {string} code Unique identifier for the object.
96
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
97
  * @param {string} [expand] Fields to expand response by
100
98
  * @param {*} [options] Override http request option.
101
99
  * @throws {RequiredError}
102
100
  */
103
- getCustomSchema: async (authorization: string, code: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
104
- // verify required parameter 'authorization' is not null or undefined
105
- assertParamExists('getCustomSchema', 'authorization', authorization)
101
+ getCustomSchema: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
106
102
  // verify required parameter 'code' is not null or undefined
107
103
  assertParamExists('getCustomSchema', 'code', code)
108
104
  const localVarPath = `/tenantservice/v1/custom-schemas/{code}`
@@ -146,7 +142,7 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
146
142
  /**
147
143
  * 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.
148
144
  * @summary List custom-schemas
149
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
145
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
150
146
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
151
147
  * @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.
152
148
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -156,9 +152,7 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
156
152
  * @param {*} [options] Override http request option.
157
153
  * @throws {RequiredError}
158
154
  */
159
- listCustomSchemas: async (authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
160
- // verify required parameter 'authorization' is not null or undefined
161
- assertParamExists('listCustomSchemas', 'authorization', authorization)
155
+ listCustomSchemas: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
162
156
  const localVarPath = `/tenantservice/v1/custom-schemas`;
163
157
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
164
158
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -219,15 +213,13 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
219
213
  /**
220
214
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
221
215
  * @summary Update the custom-schema
222
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
223
216
  * @param {string} code
224
217
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
218
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
225
219
  * @param {*} [options] Override http request option.
226
220
  * @throws {RequiredError}
227
221
  */
228
- updateCustomSchema: async (authorization: string, code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
229
- // verify required parameter 'authorization' is not null or undefined
230
- assertParamExists('updateCustomSchema', 'authorization', authorization)
222
+ updateCustomSchema: async (code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
231
223
  // verify required parameter 'code' is not null or undefined
232
224
  assertParamExists('updateCustomSchema', 'code', code)
233
225
  // verify required parameter 'updateCustomSchemaRequestDto' is not null or undefined
@@ -282,32 +274,32 @@ export const CustomSchemaApiFp = function(configuration?: Configuration) {
282
274
  /**
283
275
  * 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.
284
276
  * @summary Create the custom-schema
285
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
286
277
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
278
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
287
279
  * @param {*} [options] Override http request option.
288
280
  * @throws {RequiredError}
289
281
  */
290
- async createCustomSchema(authorization: string, createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomSchemaResponseClass>> {
291
- const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomSchema(authorization, createCustomSchemaRequestDto, options);
282
+ async createCustomSchema(createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomSchemaResponseClass>> {
283
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomSchema(createCustomSchemaRequestDto, authorization, options);
292
284
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
293
285
  },
294
286
  /**
295
287
  * 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.
296
288
  * @summary Retrieve the custom-schema
297
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
298
289
  * @param {string} code Unique identifier for the object.
290
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
299
291
  * @param {string} [expand] Fields to expand response by
300
292
  * @param {*} [options] Override http request option.
301
293
  * @throws {RequiredError}
302
294
  */
303
- async getCustomSchema(authorization: string, code: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomSchemaResponseClass>> {
304
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomSchema(authorization, code, expand, options);
295
+ async getCustomSchema(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomSchemaResponseClass>> {
296
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomSchema(code, authorization, expand, options);
305
297
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
306
298
  },
307
299
  /**
308
300
  * 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.
309
301
  * @summary List custom-schemas
310
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
302
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
311
303
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
312
304
  * @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.
313
305
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -317,21 +309,21 @@ export const CustomSchemaApiFp = function(configuration?: Configuration) {
317
309
  * @param {*} [options] Override http request option.
318
310
  * @throws {RequiredError}
319
311
  */
320
- async listCustomSchemas(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomSchemasResponseClass>> {
312
+ async listCustomSchemas(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomSchemasResponseClass>> {
321
313
  const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomSchemas(authorization, pageSize, pageToken, filter, search, order, expand, options);
322
314
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
323
315
  },
324
316
  /**
325
317
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
326
318
  * @summary Update the custom-schema
327
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
328
319
  * @param {string} code
329
320
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
321
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
330
322
  * @param {*} [options] Override http request option.
331
323
  * @throws {RequiredError}
332
324
  */
333
- async updateCustomSchema(authorization: string, code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomSchemaResponseClass>> {
334
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomSchema(authorization, code, updateCustomSchemaRequestDto, options);
325
+ async updateCustomSchema(code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomSchemaResponseClass>> {
326
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomSchema(code, updateCustomSchemaRequestDto, authorization, options);
335
327
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
336
328
  },
337
329
  }
@@ -347,30 +339,30 @@ export const CustomSchemaApiFactory = function (configuration?: Configuration, b
347
339
  /**
348
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.
349
341
  * @summary Create the custom-schema
350
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
351
342
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
343
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
352
344
  * @param {*} [options] Override http request option.
353
345
  * @throws {RequiredError}
354
346
  */
355
- createCustomSchema(authorization: string, createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, options?: any): AxiosPromise<CreateCustomSchemaResponseClass> {
356
- return localVarFp.createCustomSchema(authorization, createCustomSchemaRequestDto, options).then((request) => request(axios, basePath));
347
+ createCustomSchema(createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCustomSchemaResponseClass> {
348
+ return localVarFp.createCustomSchema(createCustomSchemaRequestDto, authorization, options).then((request) => request(axios, basePath));
357
349
  },
358
350
  /**
359
351
  * 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.
360
352
  * @summary Retrieve the custom-schema
361
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
362
353
  * @param {string} code Unique identifier for the object.
354
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
363
355
  * @param {string} [expand] Fields to expand response by
364
356
  * @param {*} [options] Override http request option.
365
357
  * @throws {RequiredError}
366
358
  */
367
- getCustomSchema(authorization: string, code: string, expand?: string, options?: any): AxiosPromise<GetCustomSchemaResponseClass> {
368
- return localVarFp.getCustomSchema(authorization, code, expand, options).then((request) => request(axios, basePath));
359
+ getCustomSchema(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetCustomSchemaResponseClass> {
360
+ return localVarFp.getCustomSchema(code, authorization, expand, options).then((request) => request(axios, basePath));
369
361
  },
370
362
  /**
371
363
  * 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.
372
364
  * @summary List custom-schemas
373
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
365
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
374
366
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
375
367
  * @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.
376
368
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -380,20 +372,20 @@ export const CustomSchemaApiFactory = function (configuration?: Configuration, b
380
372
  * @param {*} [options] Override http request option.
381
373
  * @throws {RequiredError}
382
374
  */
383
- listCustomSchemas(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListCustomSchemasResponseClass> {
375
+ listCustomSchemas(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListCustomSchemasResponseClass> {
384
376
  return localVarFp.listCustomSchemas(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
385
377
  },
386
378
  /**
387
379
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
388
380
  * @summary Update the custom-schema
389
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
390
381
  * @param {string} code
391
382
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
383
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
392
384
  * @param {*} [options] Override http request option.
393
385
  * @throws {RequiredError}
394
386
  */
395
- updateCustomSchema(authorization: string, code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, options?: any): AxiosPromise<UpdateCustomSchemaResponseClass> {
396
- return localVarFp.updateCustomSchema(authorization, code, updateCustomSchemaRequestDto, options).then((request) => request(axios, basePath));
387
+ updateCustomSchema(code: string, updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomSchemaResponseClass> {
388
+ return localVarFp.updateCustomSchema(code, updateCustomSchemaRequestDto, authorization, options).then((request) => request(axios, basePath));
397
389
  },
398
390
  };
399
391
  };
@@ -405,18 +397,18 @@ export const CustomSchemaApiFactory = function (configuration?: Configuration, b
405
397
  */
406
398
  export interface CustomSchemaApiCreateCustomSchemaRequest {
407
399
  /**
408
- * Bearer Token: provided by the login endpoint under the name accessToken.
409
- * @type {string}
400
+ *
401
+ * @type {CreateCustomSchemaRequestDto}
410
402
  * @memberof CustomSchemaApiCreateCustomSchema
411
403
  */
412
- readonly authorization: string
404
+ readonly createCustomSchemaRequestDto: CreateCustomSchemaRequestDto
413
405
 
414
406
  /**
415
- *
416
- * @type {CreateCustomSchemaRequestDto}
407
+ * Bearer Token: provided by the login endpoint under the name accessToken.
408
+ * @type {string}
417
409
  * @memberof CustomSchemaApiCreateCustomSchema
418
410
  */
419
- readonly createCustomSchemaRequestDto: CreateCustomSchemaRequestDto
411
+ readonly authorization?: string
420
412
  }
421
413
 
422
414
  /**
@@ -426,18 +418,18 @@ export interface CustomSchemaApiCreateCustomSchemaRequest {
426
418
  */
427
419
  export interface CustomSchemaApiGetCustomSchemaRequest {
428
420
  /**
429
- * Bearer Token: provided by the login endpoint under the name accessToken.
421
+ * Unique identifier for the object.
430
422
  * @type {string}
431
423
  * @memberof CustomSchemaApiGetCustomSchema
432
424
  */
433
- readonly authorization: string
425
+ readonly code: string
434
426
 
435
427
  /**
436
- * Unique identifier for the object.
428
+ * Bearer Token: provided by the login endpoint under the name accessToken.
437
429
  * @type {string}
438
430
  * @memberof CustomSchemaApiGetCustomSchema
439
431
  */
440
- readonly code: string
432
+ readonly authorization?: string
441
433
 
442
434
  /**
443
435
  * Fields to expand response by
@@ -458,7 +450,7 @@ export interface CustomSchemaApiListCustomSchemasRequest {
458
450
  * @type {string}
459
451
  * @memberof CustomSchemaApiListCustomSchemas
460
452
  */
461
- readonly authorization: string
453
+ readonly authorization?: string
462
454
 
463
455
  /**
464
456
  * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -509,13 +501,6 @@ export interface CustomSchemaApiListCustomSchemasRequest {
509
501
  * @interface CustomSchemaApiUpdateCustomSchemaRequest
510
502
  */
511
503
  export interface CustomSchemaApiUpdateCustomSchemaRequest {
512
- /**
513
- * Bearer Token: provided by the login endpoint under the name accessToken.
514
- * @type {string}
515
- * @memberof CustomSchemaApiUpdateCustomSchema
516
- */
517
- readonly authorization: string
518
-
519
504
  /**
520
505
  *
521
506
  * @type {string}
@@ -529,6 +514,13 @@ export interface CustomSchemaApiUpdateCustomSchemaRequest {
529
514
  * @memberof CustomSchemaApiUpdateCustomSchema
530
515
  */
531
516
  readonly updateCustomSchemaRequestDto: UpdateCustomSchemaRequestDto
517
+
518
+ /**
519
+ * Bearer Token: provided by the login endpoint under the name accessToken.
520
+ * @type {string}
521
+ * @memberof CustomSchemaApiUpdateCustomSchema
522
+ */
523
+ readonly authorization?: string
532
524
  }
533
525
 
534
526
  /**
@@ -547,7 +539,7 @@ export class CustomSchemaApi extends BaseAPI {
547
539
  * @memberof CustomSchemaApi
548
540
  */
549
541
  public createCustomSchema(requestParameters: CustomSchemaApiCreateCustomSchemaRequest, options?: AxiosRequestConfig) {
550
- return CustomSchemaApiFp(this.configuration).createCustomSchema(requestParameters.authorization, requestParameters.createCustomSchemaRequestDto, options).then((request) => request(this.axios, this.basePath));
542
+ return CustomSchemaApiFp(this.configuration).createCustomSchema(requestParameters.createCustomSchemaRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
551
543
  }
552
544
 
553
545
  /**
@@ -559,7 +551,7 @@ export class CustomSchemaApi extends BaseAPI {
559
551
  * @memberof CustomSchemaApi
560
552
  */
561
553
  public getCustomSchema(requestParameters: CustomSchemaApiGetCustomSchemaRequest, options?: AxiosRequestConfig) {
562
- return CustomSchemaApiFp(this.configuration).getCustomSchema(requestParameters.authorization, requestParameters.code, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
554
+ return CustomSchemaApiFp(this.configuration).getCustomSchema(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
563
555
  }
564
556
 
565
557
  /**
@@ -570,7 +562,7 @@ export class CustomSchemaApi extends BaseAPI {
570
562
  * @throws {RequiredError}
571
563
  * @memberof CustomSchemaApi
572
564
  */
573
- public listCustomSchemas(requestParameters: CustomSchemaApiListCustomSchemasRequest, options?: AxiosRequestConfig) {
565
+ public listCustomSchemas(requestParameters: CustomSchemaApiListCustomSchemasRequest = {}, options?: AxiosRequestConfig) {
574
566
  return CustomSchemaApiFp(this.configuration).listCustomSchemas(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
575
567
  }
576
568
 
@@ -583,6 +575,6 @@ export class CustomSchemaApi extends BaseAPI {
583
575
  * @memberof CustomSchemaApi
584
576
  */
585
577
  public updateCustomSchema(requestParameters: CustomSchemaApiUpdateCustomSchemaRequest, options?: AxiosRequestConfig) {
586
- return CustomSchemaApiFp(this.configuration).updateCustomSchema(requestParameters.authorization, requestParameters.code, requestParameters.updateCustomSchemaRequestDto, options).then((request) => request(this.axios, this.basePath));
578
+ return CustomSchemaApiFp(this.configuration).updateCustomSchema(requestParameters.code, requestParameters.updateCustomSchemaRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
587
579
  }
588
580
  }