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