@fenixalliance/abs-api-client 1.0.8 → 1.0.10
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/app/index.js +2 -2
- package/app/index.ts +1 -1
- package/clients/contentService/index.ts +2 -2
- package/clients/contentService/models/{Portal.ts → PortalSettings.ts} +1 -1
- package/clients/contentService/models/PortalSettingsEnvelope.ts +14 -0
- package/clients/contentService/services/PortalsService.js +23 -12
- package/clients/contentService/services/PortalsService.ts +25 -14
- package/clients/crmService/services/ContactsService.js +86 -28
- package/clients/crmService/services/ContactsService.ts +86 -28
- package/clients/holderService/index.js +7 -3
- package/clients/holderService/index.ts +4 -2
- package/clients/holderService/models/FollowRecordDtoListEnvelope.ts +14 -0
- package/clients/holderService/services/{HolderService.js → IdentityService.js} +65 -157
- package/clients/holderService/services/{HolderService.ts → IdentityService.ts} +70 -186
- package/clients/holderService/services/TenantsService.js +151 -0
- package/clients/holderService/services/TenantsService.ts +176 -0
- package/clients/holderService/services/UserService.js +364 -0
- package/clients/holderService/services/UserService.ts +421 -0
- package/clients/storageService/core/ApiError.js +20 -0
- package/clients/storageService/core/ApiError.ts +25 -0
- package/clients/storageService/core/ApiRequestOptions.ts +17 -0
- package/clients/storageService/core/ApiResult.ts +11 -0
- package/clients/storageService/core/CancelablePromise.js +104 -0
- package/clients/storageService/core/CancelablePromise.ts +131 -0
- package/clients/storageService/core/OpenAPI.js +14 -0
- package/clients/storageService/core/OpenAPI.ts +32 -0
- package/clients/storageService/core/request.js +294 -0
- package/clients/storageService/core/request.ts +322 -0
- package/clients/storageService/index.js +26 -0
- package/clients/storageService/index.ts +23 -0
- package/clients/storageService/models/Blob.js +11 -0
- package/clients/storageService/models/Blob.ts +26 -0
- package/clients/{contentService/models/PortalEnvelope.ts → storageService/models/BlobEnvelope.ts} +3 -3
- package/clients/{holderService/models/EmptyEnvelopeEnvelope.ts → storageService/models/EmptyEnvelope.ts} +1 -3
- package/clients/storageService/models/ErrorEnvelope.ts +12 -0
- package/clients/storageService/models/FileUploadCreateDto.ts +20 -0
- package/clients/storageService/models/FileUploadDto.js +2 -0
- package/clients/storageService/models/FileUploadDto.ts +29 -0
- package/clients/storageService/models/FileUploadDtoEnvelope.js +2 -0
- package/clients/storageService/models/FileUploadDtoEnvelope.ts +14 -0
- package/clients/storageService/models/FileUploadUpdateDto.js +2 -0
- package/clients/storageService/models/FileUploadUpdateDto.ts +19 -0
- package/clients/storageService/services/AvatarsService.js +200 -0
- package/clients/storageService/services/AvatarsService.ts +234 -0
- package/clients/storageService/services/BlobsService.js +66 -0
- package/clients/storageService/services/BlobsService.ts +81 -0
- package/clients/{tenantService/services/EnrollmentsService.js → storageService/services/FilesService.js} +50 -42
- package/clients/{tenantService/services/UnitsService.ts → storageService/services/FilesService.ts} +75 -65
- package/clients/storageService/services/RadzenEditorService.js +117 -0
- package/clients/storageService/services/RadzenEditorService.ts +149 -0
- package/clients/storageService/services/UploadsService.js +33 -0
- package/clients/storageService/services/UploadsService.ts +53 -0
- package/clients/systemService/services/ModulesService.js +4 -2
- package/clients/systemService/services/ModulesService.ts +4 -2
- package/clients/systemService/services/TenantsService.js +24 -8
- package/clients/systemService/services/TenantsService.ts +24 -8
- package/clients/tenantService/index.js +1 -29
- package/clients/tenantService/index.ts +7 -20
- package/clients/tenantService/models/TenantIndustryDtoListEnvelope.js +2 -0
- package/clients/tenantService/models/TenantIndustryDtoListEnvelope.ts +14 -0
- package/clients/tenantService/models/TenantTeamContactEnrollmentDtoListEnvelope.js +2 -0
- package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamContactEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/TenantTeamDtoListEnvelope.js +2 -0
- package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.ts → TenantTeamDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/TenantTeamEmployeeEnrollmentDtoListEnvelope.js +2 -0
- package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamEmployeeEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/TenantTeamProjectEnrollmentDtoListEnvelope.js +2 -0
- package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamProjectEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/TenantTeamRecordDtoListEnvelope.js +2 -0
- package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.ts → TenantTeamRecordDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/TenantTypeDtoListEnvelope.js +2 -0
- package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.ts → TenantTypeDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/services/SizesService.js +15 -5
- package/clients/tenantService/services/SizesService.ts +15 -5
- package/clients/tenantService/services/TenantsService.js +2554 -233
- package/clients/tenantService/services/TenantsService.ts +3004 -307
- package/package.json +1 -1
- package/schemas/contentService/schema.s.ts +877 -844
- package/schemas/crmService/schema.s.ts +1776 -1516
- package/schemas/holderService/schema.s.ts +1024 -789
- package/schemas/storageService/schema.s.js +6 -0
- package/schemas/storageService/schema.s.ts +1087 -0
- package/schemas/systemService/schema.s.ts +465 -387
- package/schemas/tenantService/schema.s.ts +5713 -4820
- package/clients/tenantService/services/DepartmentsService.js +0 -161
- package/clients/tenantService/services/DepartmentsService.ts +0 -192
- package/clients/tenantService/services/EmployeeEnrollmentsService.js +0 -153
- package/clients/tenantService/services/EmployeeEnrollmentsService.ts +0 -181
- package/clients/tenantService/services/EnrollmentsService.ts +0 -195
- package/clients/tenantService/services/IndustriesService.js +0 -161
- package/clients/tenantService/services/IndustriesService.ts +0 -190
- package/clients/tenantService/services/InvitationsService.js +0 -128
- package/clients/tenantService/services/InvitationsService.ts +0 -150
- package/clients/tenantService/services/PositionsService.js +0 -161
- package/clients/tenantService/services/PositionsService.ts +0 -192
- package/clients/tenantService/services/SegmentsService.js +0 -161
- package/clients/tenantService/services/SegmentsService.ts +0 -191
- package/clients/tenantService/services/TeamContactEnrollmentsService.js +0 -161
- package/clients/tenantService/services/TeamContactEnrollmentsService.ts +0 -191
- package/clients/tenantService/services/TeamProjectEnrollmentService.js +0 -153
- package/clients/tenantService/services/TeamProjectEnrollmentService.ts +0 -181
- package/clients/tenantService/services/TeamRecordsService.js +0 -161
- package/clients/tenantService/services/TeamRecordsService.ts +0 -192
- package/clients/tenantService/services/TeamsService.js +0 -161
- package/clients/tenantService/services/TeamsService.ts +0 -192
- package/clients/tenantService/services/TerritoriesService.js +0 -161
- package/clients/tenantService/services/TerritoriesService.ts +0 -192
- package/clients/tenantService/services/TypesService.js +0 -149
- package/clients/tenantService/services/TypesService.ts +0 -176
- package/clients/tenantService/services/UnitsService.js +0 -159
- /package/clients/contentService/models/{Portal.js → PortalSettings.js} +0 -0
- /package/clients/contentService/models/{PortalEnvelope.js → PortalSettingsEnvelope.js} +0 -0
- /package/clients/holderService/models/{EmptyEnvelopeEnvelope.js → FollowRecordDtoListEnvelope.js} +0 -0
- /package/clients/{tenantService/models/TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.js → storageService/core/ApiRequestOptions.js} +0 -0
- /package/clients/{tenantService/models/TenantTeamDtoIReadOnlyCollectionEnvelope.js → storageService/core/ApiResult.js} +0 -0
- /package/clients/{tenantService/models/TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.js → storageService/models/BlobEnvelope.js} +0 -0
- /package/clients/{tenantService/models/TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.js → storageService/models/EmptyEnvelope.js} +0 -0
- /package/clients/{tenantService/models/TenantTeamRecordDtoIReadOnlyCollectionEnvelope.js → storageService/models/ErrorEnvelope.js} +0 -0
- /package/clients/{tenantService/models/TenantTypeDtoIReadOnlyCollectionEnvelope.js → storageService/models/FileUploadCreateDto.js} +0 -0
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.FilesService = void 0;
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
|
-
class
|
|
6
|
+
class FilesService {
|
|
7
7
|
/**
|
|
8
8
|
* @param tenantId
|
|
9
9
|
* @param xApiVersion
|
|
10
|
-
* @
|
|
11
|
-
* @returns EmptyEnvelope Created
|
|
10
|
+
* @returns FileUploadDtoEnvelope OK
|
|
12
11
|
* @throws ApiError
|
|
13
12
|
*/
|
|
14
|
-
static
|
|
13
|
+
static getFilesAsync(tenantId, xApiVersion) {
|
|
15
14
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
16
|
-
method: '
|
|
17
|
-
url: '/api/v2/
|
|
15
|
+
method: 'GET',
|
|
16
|
+
url: '/api/v2/StorageService/Files',
|
|
18
17
|
headers: {
|
|
19
18
|
'x-api-version': xApiVersion,
|
|
20
19
|
},
|
|
21
20
|
query: {
|
|
22
21
|
'tenantId': tenantId,
|
|
23
22
|
},
|
|
24
|
-
body: requestBody,
|
|
25
|
-
mediaType: 'application/json',
|
|
26
23
|
errors: {
|
|
27
24
|
401: `Unauthorized`,
|
|
28
25
|
403: `Forbidden`,
|
|
@@ -32,42 +29,50 @@ class EnrollmentsService {
|
|
|
32
29
|
/**
|
|
33
30
|
* @param tenantId
|
|
34
31
|
* @param xApiVersion
|
|
35
|
-
* @
|
|
32
|
+
* @param formData
|
|
33
|
+
* @returns EmptyEnvelope Created
|
|
36
34
|
* @throws ApiError
|
|
37
35
|
*/
|
|
38
|
-
static
|
|
36
|
+
static createFileAsync(tenantId, xApiVersion, formData) {
|
|
39
37
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
40
|
-
method: '
|
|
41
|
-
url: '/api/v2/
|
|
38
|
+
method: 'POST',
|
|
39
|
+
url: '/api/v2/StorageService/Files',
|
|
42
40
|
headers: {
|
|
43
41
|
'x-api-version': xApiVersion,
|
|
44
42
|
},
|
|
45
43
|
query: {
|
|
46
44
|
'tenantId': tenantId,
|
|
47
45
|
},
|
|
46
|
+
formData: formData,
|
|
47
|
+
mediaType: 'multipart/form-data',
|
|
48
48
|
errors: {
|
|
49
|
+
400: `Bad Request`,
|
|
49
50
|
401: `Unauthorized`,
|
|
50
51
|
403: `Forbidden`,
|
|
52
|
+
409: `Conflict`,
|
|
53
|
+
422: `Unprocessable Content`,
|
|
51
54
|
},
|
|
52
55
|
});
|
|
53
56
|
}
|
|
54
57
|
/**
|
|
58
|
+
* @param fileId
|
|
55
59
|
* @param tenantId
|
|
56
|
-
* @param userId
|
|
57
60
|
* @param xApiVersion
|
|
58
|
-
* @returns
|
|
61
|
+
* @returns FileUploadDtoEnvelope OK
|
|
59
62
|
* @throws ApiError
|
|
60
63
|
*/
|
|
61
|
-
static
|
|
64
|
+
static getFileAsync(fileId, tenantId, xApiVersion) {
|
|
62
65
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
63
66
|
method: 'GET',
|
|
64
|
-
url: '/api/v2/
|
|
67
|
+
url: '/api/v2/StorageService/Files/{fileId}',
|
|
68
|
+
path: {
|
|
69
|
+
'fileId': fileId,
|
|
70
|
+
},
|
|
65
71
|
headers: {
|
|
66
72
|
'x-api-version': xApiVersion,
|
|
67
73
|
},
|
|
68
74
|
query: {
|
|
69
75
|
'tenantId': tenantId,
|
|
70
|
-
'userId': userId,
|
|
71
76
|
},
|
|
72
77
|
errors: {
|
|
73
78
|
401: `Unauthorized`,
|
|
@@ -76,19 +81,19 @@ class EnrollmentsService {
|
|
|
76
81
|
});
|
|
77
82
|
}
|
|
78
83
|
/**
|
|
84
|
+
* @param fileId
|
|
79
85
|
* @param tenantId
|
|
80
|
-
* @param tenantEnrollmentId
|
|
81
86
|
* @param xApiVersion
|
|
82
|
-
* @param
|
|
83
|
-
* @returns
|
|
87
|
+
* @param formData
|
|
88
|
+
* @returns FileUploadDtoEnvelope OK
|
|
84
89
|
* @throws ApiError
|
|
85
90
|
*/
|
|
86
|
-
static
|
|
91
|
+
static updateFileAsync(fileId, tenantId, xApiVersion, formData) {
|
|
87
92
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
88
93
|
method: 'PUT',
|
|
89
|
-
url: '/api/v2/
|
|
94
|
+
url: '/api/v2/StorageService/Files/{fileId}',
|
|
90
95
|
path: {
|
|
91
|
-
'
|
|
96
|
+
'fileId': fileId,
|
|
92
97
|
},
|
|
93
98
|
headers: {
|
|
94
99
|
'x-api-version': xApiVersion,
|
|
@@ -96,28 +101,30 @@ class EnrollmentsService {
|
|
|
96
101
|
query: {
|
|
97
102
|
'tenantId': tenantId,
|
|
98
103
|
},
|
|
99
|
-
|
|
100
|
-
mediaType: '
|
|
104
|
+
formData: formData,
|
|
105
|
+
mediaType: 'multipart/form-data',
|
|
101
106
|
errors: {
|
|
107
|
+
400: `Bad Request`,
|
|
102
108
|
401: `Unauthorized`,
|
|
103
109
|
403: `Forbidden`,
|
|
110
|
+
409: `Conflict`,
|
|
111
|
+
422: `Unprocessable Content`,
|
|
104
112
|
},
|
|
105
113
|
});
|
|
106
114
|
}
|
|
107
115
|
/**
|
|
116
|
+
* @param fileId
|
|
108
117
|
* @param tenantId
|
|
109
|
-
* @param tenantEnrollmentId
|
|
110
118
|
* @param xApiVersion
|
|
111
|
-
* @
|
|
112
|
-
* @returns EmptyEnvelope OK
|
|
119
|
+
* @returns FileUploadDtoEnvelope OK
|
|
113
120
|
* @throws ApiError
|
|
114
121
|
*/
|
|
115
|
-
static
|
|
122
|
+
static deleteFileAsync(fileId, tenantId, xApiVersion) {
|
|
116
123
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
117
|
-
method: '
|
|
118
|
-
url: '/api/v2/
|
|
124
|
+
method: 'DELETE',
|
|
125
|
+
url: '/api/v2/StorageService/Files/{fileId}',
|
|
119
126
|
path: {
|
|
120
|
-
'
|
|
127
|
+
'fileId': fileId,
|
|
121
128
|
},
|
|
122
129
|
headers: {
|
|
123
130
|
'x-api-version': xApiVersion,
|
|
@@ -125,27 +132,28 @@ class EnrollmentsService {
|
|
|
125
132
|
query: {
|
|
126
133
|
'tenantId': tenantId,
|
|
127
134
|
},
|
|
128
|
-
body: requestBody,
|
|
129
|
-
mediaType: 'application/json',
|
|
130
135
|
errors: {
|
|
136
|
+
400: `Bad Request`,
|
|
131
137
|
401: `Unauthorized`,
|
|
132
138
|
403: `Forbidden`,
|
|
139
|
+
409: `Conflict`,
|
|
140
|
+
422: `Unprocessable Content`,
|
|
133
141
|
},
|
|
134
142
|
});
|
|
135
143
|
}
|
|
136
144
|
/**
|
|
145
|
+
* @param fileId
|
|
137
146
|
* @param tenantId
|
|
138
|
-
* @param tenantEnrollmentId
|
|
139
147
|
* @param xApiVersion
|
|
140
|
-
* @returns
|
|
148
|
+
* @returns binary OK
|
|
141
149
|
* @throws ApiError
|
|
142
150
|
*/
|
|
143
|
-
static
|
|
151
|
+
static downloadFileAsync(fileId, tenantId, xApiVersion) {
|
|
144
152
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
145
|
-
method: '
|
|
146
|
-
url: '/api/v2/
|
|
153
|
+
method: 'GET',
|
|
154
|
+
url: '/api/v2/StorageService/Files/{fileId}/Raw',
|
|
147
155
|
path: {
|
|
148
|
-
'
|
|
156
|
+
'fileId': fileId,
|
|
149
157
|
},
|
|
150
158
|
headers: {
|
|
151
159
|
'x-api-version': xApiVersion,
|
|
@@ -160,4 +168,4 @@ class EnrollmentsService {
|
|
|
160
168
|
});
|
|
161
169
|
}
|
|
162
170
|
}
|
|
163
|
-
exports.
|
|
171
|
+
exports.FilesService = FilesService;
|
package/clients/{tenantService/services/UnitsService.ts → storageService/services/FilesService.ts}
RENAMED
|
@@ -3,38 +3,32 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
import type { EmptyEnvelope } from '../models/EmptyEnvelope';
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import type { TenantUnitDtoListEnvelope } from '../models/TenantUnitDtoListEnvelope';
|
|
10
|
-
import type { TenantUnitUpdateDto } from '../models/TenantUnitUpdateDto';
|
|
6
|
+
import type { FileUploadCreateDto } from '../models/FileUploadCreateDto';
|
|
7
|
+
import type { FileUploadDtoEnvelope } from '../models/FileUploadDtoEnvelope';
|
|
8
|
+
import type { FileUploadUpdateDto } from '../models/FileUploadUpdateDto';
|
|
11
9
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
12
10
|
import { OpenAPI } from '../core/OpenAPI';
|
|
13
11
|
import { request as __request } from '../core/request';
|
|
14
|
-
export class
|
|
12
|
+
export class FilesService {
|
|
15
13
|
/**
|
|
16
14
|
* @param tenantId
|
|
17
15
|
* @param xApiVersion
|
|
18
|
-
* @
|
|
19
|
-
* @returns EmptyEnvelope Created
|
|
16
|
+
* @returns FileUploadDtoEnvelope OK
|
|
20
17
|
* @throws ApiError
|
|
21
18
|
*/
|
|
22
|
-
public static
|
|
23
|
-
tenantId
|
|
19
|
+
public static getFilesAsync(
|
|
20
|
+
tenantId?: string,
|
|
24
21
|
xApiVersion?: string,
|
|
25
|
-
|
|
26
|
-
): CancelablePromise<EmptyEnvelope> {
|
|
22
|
+
): CancelablePromise<FileUploadDtoEnvelope> {
|
|
27
23
|
return __request(OpenAPI, {
|
|
28
|
-
method: '
|
|
29
|
-
url: '/api/v2/
|
|
24
|
+
method: 'GET',
|
|
25
|
+
url: '/api/v2/StorageService/Files',
|
|
30
26
|
headers: {
|
|
31
27
|
'x-api-version': xApiVersion,
|
|
32
28
|
},
|
|
33
29
|
query: {
|
|
34
30
|
'tenantId': tenantId,
|
|
35
31
|
},
|
|
36
|
-
body: requestBody,
|
|
37
|
-
mediaType: 'application/json',
|
|
38
32
|
errors: {
|
|
39
33
|
401: `Unauthorized`,
|
|
40
34
|
403: `Forbidden`,
|
|
@@ -44,54 +38,59 @@ export class UnitsService {
|
|
|
44
38
|
/**
|
|
45
39
|
* @param tenantId
|
|
46
40
|
* @param xApiVersion
|
|
47
|
-
* @
|
|
41
|
+
* @param formData
|
|
42
|
+
* @returns EmptyEnvelope Created
|
|
48
43
|
* @throws ApiError
|
|
49
44
|
*/
|
|
50
|
-
public static
|
|
51
|
-
tenantId
|
|
45
|
+
public static createFileAsync(
|
|
46
|
+
tenantId?: string,
|
|
52
47
|
xApiVersion?: string,
|
|
53
|
-
|
|
48
|
+
formData?: FileUploadCreateDto,
|
|
49
|
+
): CancelablePromise<EmptyEnvelope> {
|
|
54
50
|
return __request(OpenAPI, {
|
|
55
|
-
method: '
|
|
56
|
-
url: '/api/v2/
|
|
51
|
+
method: 'POST',
|
|
52
|
+
url: '/api/v2/StorageService/Files',
|
|
57
53
|
headers: {
|
|
58
54
|
'x-api-version': xApiVersion,
|
|
59
55
|
},
|
|
60
56
|
query: {
|
|
61
57
|
'tenantId': tenantId,
|
|
62
58
|
},
|
|
59
|
+
formData: formData,
|
|
60
|
+
mediaType: 'multipart/form-data',
|
|
63
61
|
errors: {
|
|
62
|
+
400: `Bad Request`,
|
|
64
63
|
401: `Unauthorized`,
|
|
65
64
|
403: `Forbidden`,
|
|
65
|
+
409: `Conflict`,
|
|
66
|
+
422: `Unprocessable Content`,
|
|
66
67
|
},
|
|
67
68
|
});
|
|
68
69
|
}
|
|
69
70
|
/**
|
|
71
|
+
* @param fileId
|
|
70
72
|
* @param tenantId
|
|
71
|
-
* @param tenantUnitId
|
|
72
73
|
* @param xApiVersion
|
|
73
|
-
* @
|
|
74
|
-
* @returns EmptyEnvelope OK
|
|
74
|
+
* @returns FileUploadDtoEnvelope OK
|
|
75
75
|
* @throws ApiError
|
|
76
76
|
*/
|
|
77
|
-
public static
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
public static getFileAsync(
|
|
78
|
+
fileId: string,
|
|
79
|
+
tenantId?: string,
|
|
80
80
|
xApiVersion?: string,
|
|
81
|
-
|
|
82
|
-
): CancelablePromise<EmptyEnvelope> {
|
|
81
|
+
): CancelablePromise<FileUploadDtoEnvelope> {
|
|
83
82
|
return __request(OpenAPI, {
|
|
84
|
-
method: '
|
|
85
|
-
url: '/api/v2/
|
|
83
|
+
method: 'GET',
|
|
84
|
+
url: '/api/v2/StorageService/Files/{fileId}',
|
|
85
|
+
path: {
|
|
86
|
+
'fileId': fileId,
|
|
87
|
+
},
|
|
86
88
|
headers: {
|
|
87
89
|
'x-api-version': xApiVersion,
|
|
88
90
|
},
|
|
89
91
|
query: {
|
|
90
92
|
'tenantId': tenantId,
|
|
91
|
-
'tenantUnitId': tenantUnitId,
|
|
92
93
|
},
|
|
93
|
-
body: requestBody,
|
|
94
|
-
mediaType: 'application/json',
|
|
95
94
|
errors: {
|
|
96
95
|
401: `Unauthorized`,
|
|
97
96
|
403: `Forbidden`,
|
|
@@ -99,49 +98,59 @@ export class UnitsService {
|
|
|
99
98
|
});
|
|
100
99
|
}
|
|
101
100
|
/**
|
|
102
|
-
* @param
|
|
101
|
+
* @param fileId
|
|
102
|
+
* @param tenantId
|
|
103
103
|
* @param xApiVersion
|
|
104
|
-
* @
|
|
104
|
+
* @param formData
|
|
105
|
+
* @returns FileUploadDtoEnvelope OK
|
|
105
106
|
* @throws ApiError
|
|
106
107
|
*/
|
|
107
|
-
public static
|
|
108
|
-
|
|
108
|
+
public static updateFileAsync(
|
|
109
|
+
fileId: string,
|
|
110
|
+
tenantId?: string,
|
|
109
111
|
xApiVersion?: string,
|
|
110
|
-
|
|
112
|
+
formData?: FileUploadUpdateDto,
|
|
113
|
+
): CancelablePromise<FileUploadDtoEnvelope> {
|
|
111
114
|
return __request(OpenAPI, {
|
|
112
|
-
method: '
|
|
113
|
-
url: '/api/v2/
|
|
115
|
+
method: 'PUT',
|
|
116
|
+
url: '/api/v2/StorageService/Files/{fileId}',
|
|
114
117
|
path: {
|
|
115
|
-
'
|
|
118
|
+
'fileId': fileId,
|
|
116
119
|
},
|
|
117
120
|
headers: {
|
|
118
121
|
'x-api-version': xApiVersion,
|
|
119
122
|
},
|
|
123
|
+
query: {
|
|
124
|
+
'tenantId': tenantId,
|
|
125
|
+
},
|
|
126
|
+
formData: formData,
|
|
127
|
+
mediaType: 'multipart/form-data',
|
|
120
128
|
errors: {
|
|
129
|
+
400: `Bad Request`,
|
|
121
130
|
401: `Unauthorized`,
|
|
122
131
|
403: `Forbidden`,
|
|
132
|
+
409: `Conflict`,
|
|
133
|
+
422: `Unprocessable Content`,
|
|
123
134
|
},
|
|
124
135
|
});
|
|
125
136
|
}
|
|
126
137
|
/**
|
|
138
|
+
* @param fileId
|
|
127
139
|
* @param tenantId
|
|
128
|
-
* @param tenantUnitId
|
|
129
140
|
* @param xApiVersion
|
|
130
|
-
* @
|
|
131
|
-
* @returns EmptyEnvelope OK
|
|
141
|
+
* @returns FileUploadDtoEnvelope OK
|
|
132
142
|
* @throws ApiError
|
|
133
143
|
*/
|
|
134
|
-
public static
|
|
135
|
-
|
|
136
|
-
|
|
144
|
+
public static deleteFileAsync(
|
|
145
|
+
fileId: string,
|
|
146
|
+
tenantId?: string,
|
|
137
147
|
xApiVersion?: string,
|
|
138
|
-
|
|
139
|
-
): CancelablePromise<EmptyEnvelope> {
|
|
148
|
+
): CancelablePromise<FileUploadDtoEnvelope> {
|
|
140
149
|
return __request(OpenAPI, {
|
|
141
|
-
method: '
|
|
142
|
-
url: '/api/v2/
|
|
150
|
+
method: 'DELETE',
|
|
151
|
+
url: '/api/v2/StorageService/Files/{fileId}',
|
|
143
152
|
path: {
|
|
144
|
-
'
|
|
153
|
+
'fileId': fileId,
|
|
145
154
|
},
|
|
146
155
|
headers: {
|
|
147
156
|
'x-api-version': xApiVersion,
|
|
@@ -149,31 +158,32 @@ export class UnitsService {
|
|
|
149
158
|
query: {
|
|
150
159
|
'tenantId': tenantId,
|
|
151
160
|
},
|
|
152
|
-
body: requestBody,
|
|
153
|
-
mediaType: 'application/json',
|
|
154
161
|
errors: {
|
|
162
|
+
400: `Bad Request`,
|
|
155
163
|
401: `Unauthorized`,
|
|
156
164
|
403: `Forbidden`,
|
|
165
|
+
409: `Conflict`,
|
|
166
|
+
422: `Unprocessable Content`,
|
|
157
167
|
},
|
|
158
168
|
});
|
|
159
169
|
}
|
|
160
170
|
/**
|
|
171
|
+
* @param fileId
|
|
161
172
|
* @param tenantId
|
|
162
|
-
* @param tenantUnitId
|
|
163
173
|
* @param xApiVersion
|
|
164
|
-
* @returns
|
|
174
|
+
* @returns binary OK
|
|
165
175
|
* @throws ApiError
|
|
166
176
|
*/
|
|
167
|
-
public static
|
|
168
|
-
|
|
169
|
-
|
|
177
|
+
public static downloadFileAsync(
|
|
178
|
+
fileId: string,
|
|
179
|
+
tenantId?: string,
|
|
170
180
|
xApiVersion?: string,
|
|
171
|
-
): CancelablePromise<
|
|
181
|
+
): CancelablePromise<Blob> {
|
|
172
182
|
return __request(OpenAPI, {
|
|
173
|
-
method: '
|
|
174
|
-
url: '/api/v2/
|
|
183
|
+
method: 'GET',
|
|
184
|
+
url: '/api/v2/StorageService/Files/{fileId}/Raw',
|
|
175
185
|
path: {
|
|
176
|
-
'
|
|
186
|
+
'fileId': fileId,
|
|
177
187
|
},
|
|
178
188
|
headers: {
|
|
179
189
|
'x-api-version': xApiVersion,
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RadzenEditorService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class RadzenEditorService {
|
|
7
|
+
/**
|
|
8
|
+
* @param tenantId
|
|
9
|
+
* @param xApiVersion
|
|
10
|
+
* @param formData
|
|
11
|
+
* @returns any OK
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
static postApiV2StorageServiceRadzenEditorUploadsSingle(tenantId, xApiVersion, formData) {
|
|
15
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
16
|
+
method: 'POST',
|
|
17
|
+
url: '/api/v2/StorageService/RadzenEditor/Uploads/Single',
|
|
18
|
+
headers: {
|
|
19
|
+
'x-api-version': xApiVersion,
|
|
20
|
+
},
|
|
21
|
+
query: {
|
|
22
|
+
'tenantId': tenantId,
|
|
23
|
+
},
|
|
24
|
+
formData: formData,
|
|
25
|
+
mediaType: 'multipart/form-data',
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @param tenantId
|
|
30
|
+
* @param xApiVersion
|
|
31
|
+
* @param formData
|
|
32
|
+
* @returns any OK
|
|
33
|
+
* @throws ApiError
|
|
34
|
+
*/
|
|
35
|
+
static postApiV2StorageServiceRadzenEditorUploadsImage(tenantId, xApiVersion, formData) {
|
|
36
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
37
|
+
method: 'POST',
|
|
38
|
+
url: '/api/v2/StorageService/RadzenEditor/Uploads/Image',
|
|
39
|
+
headers: {
|
|
40
|
+
'x-api-version': xApiVersion,
|
|
41
|
+
},
|
|
42
|
+
query: {
|
|
43
|
+
'tenantId': tenantId,
|
|
44
|
+
},
|
|
45
|
+
formData: formData,
|
|
46
|
+
mediaType: 'multipart/form-data',
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @param tenantId
|
|
51
|
+
* @param xApiVersion
|
|
52
|
+
* @param formData
|
|
53
|
+
* @returns any OK
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static postApiV2StorageServiceRadzenEditorUploadsMultiple(tenantId, xApiVersion, formData) {
|
|
57
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
58
|
+
method: 'POST',
|
|
59
|
+
url: '/api/v2/StorageService/RadzenEditor/Uploads/Multiple',
|
|
60
|
+
headers: {
|
|
61
|
+
'x-api-version': xApiVersion,
|
|
62
|
+
},
|
|
63
|
+
query: {
|
|
64
|
+
'tenantId': tenantId,
|
|
65
|
+
},
|
|
66
|
+
formData: formData,
|
|
67
|
+
mediaType: 'multipart/form-data',
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @param id
|
|
72
|
+
* @param tenantId
|
|
73
|
+
* @param xApiVersion
|
|
74
|
+
* @param formData
|
|
75
|
+
* @returns any OK
|
|
76
|
+
* @throws ApiError
|
|
77
|
+
*/
|
|
78
|
+
static postApiV2StorageServiceRadzenEditorUploads(id, tenantId, xApiVersion, formData) {
|
|
79
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
80
|
+
method: 'POST',
|
|
81
|
+
url: '/api/v2/StorageService/RadzenEditor/Uploads/{id}',
|
|
82
|
+
path: {
|
|
83
|
+
'id': id,
|
|
84
|
+
},
|
|
85
|
+
headers: {
|
|
86
|
+
'x-api-version': xApiVersion,
|
|
87
|
+
},
|
|
88
|
+
query: {
|
|
89
|
+
'tenantId': tenantId,
|
|
90
|
+
},
|
|
91
|
+
formData: formData,
|
|
92
|
+
mediaType: 'multipart/form-data',
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @param tenantId
|
|
97
|
+
* @param xApiVersion
|
|
98
|
+
* @param formData
|
|
99
|
+
* @returns any OK
|
|
100
|
+
* @throws ApiError
|
|
101
|
+
*/
|
|
102
|
+
static postApiV2StorageServiceRadzenEditorUploadsSpecific(tenantId, xApiVersion, formData) {
|
|
103
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
104
|
+
method: 'POST',
|
|
105
|
+
url: '/api/v2/StorageService/RadzenEditor/Uploads/Specific',
|
|
106
|
+
headers: {
|
|
107
|
+
'x-api-version': xApiVersion,
|
|
108
|
+
},
|
|
109
|
+
query: {
|
|
110
|
+
'tenantId': tenantId,
|
|
111
|
+
},
|
|
112
|
+
formData: formData,
|
|
113
|
+
mediaType: 'multipart/form-data',
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
exports.RadzenEditorService = RadzenEditorService;
|