@fenixalliance/abs-api-client 1.0.8 → 1.0.9

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 (57) hide show
  1. package/clients/contentService/index.ts +2 -2
  2. package/clients/contentService/models/{Portal.ts → PortalSettings.ts} +1 -1
  3. package/clients/contentService/models/PortalSettingsEnvelope.ts +14 -0
  4. package/clients/contentService/services/PortalsService.js +1 -1
  5. package/clients/contentService/services/PortalsService.ts +3 -3
  6. package/clients/holderService/index.ts +1 -0
  7. package/clients/holderService/models/FollowRecordDtoListEnvelope.js +2 -0
  8. package/clients/holderService/models/FollowRecordDtoListEnvelope.ts +14 -0
  9. package/clients/holderService/services/HolderService.js +56 -30
  10. package/clients/holderService/services/HolderService.ts +62 -36
  11. package/clients/storageService/core/ApiError.js +20 -0
  12. package/clients/storageService/core/ApiError.ts +25 -0
  13. package/clients/storageService/core/ApiRequestOptions.js +2 -0
  14. package/clients/storageService/core/ApiRequestOptions.ts +17 -0
  15. package/clients/storageService/core/ApiResult.js +2 -0
  16. package/clients/storageService/core/ApiResult.ts +11 -0
  17. package/clients/storageService/core/CancelablePromise.js +104 -0
  18. package/clients/storageService/core/CancelablePromise.ts +131 -0
  19. package/clients/storageService/core/OpenAPI.js +14 -0
  20. package/clients/storageService/core/OpenAPI.ts +32 -0
  21. package/clients/storageService/core/request.js +294 -0
  22. package/clients/storageService/core/request.ts +322 -0
  23. package/clients/storageService/index.js +26 -0
  24. package/clients/storageService/index.ts +23 -0
  25. package/clients/storageService/models/Blob.js +11 -0
  26. package/clients/storageService/models/Blob.ts +26 -0
  27. package/clients/storageService/models/BlobEnvelope.js +2 -0
  28. package/clients/{contentService/models/PortalEnvelope.ts → storageService/models/BlobEnvelope.ts} +3 -3
  29. package/clients/storageService/models/EmptyEnvelope.js +2 -0
  30. package/clients/storageService/models/EmptyEnvelope.ts +12 -0
  31. package/clients/storageService/models/ErrorEnvelope.js +2 -0
  32. package/clients/storageService/models/ErrorEnvelope.ts +12 -0
  33. package/clients/storageService/models/FileUploadCreateDto.js +2 -0
  34. package/clients/storageService/models/FileUploadCreateDto.ts +20 -0
  35. package/clients/storageService/models/FileUploadDto.js +2 -0
  36. package/clients/storageService/models/FileUploadDto.ts +29 -0
  37. package/clients/storageService/models/FileUploadDtoEnvelope.js +2 -0
  38. package/clients/storageService/models/FileUploadDtoEnvelope.ts +14 -0
  39. package/clients/storageService/models/FileUploadUpdateDto.js +2 -0
  40. package/clients/storageService/models/FileUploadUpdateDto.ts +19 -0
  41. package/clients/storageService/services/AvatarsService.js +189 -0
  42. package/clients/storageService/services/AvatarsService.ts +223 -0
  43. package/clients/storageService/services/BlobsService.js +66 -0
  44. package/clients/storageService/services/BlobsService.ts +81 -0
  45. package/clients/storageService/services/FilesService.js +171 -0
  46. package/clients/storageService/services/FilesService.ts +200 -0
  47. package/clients/storageService/services/RadzenEditorService.js +117 -0
  48. package/clients/storageService/services/RadzenEditorService.ts +149 -0
  49. package/clients/storageService/services/UploadsService.js +33 -0
  50. package/clients/storageService/services/UploadsService.ts +53 -0
  51. package/package.json +1 -1
  52. package/schemas/contentService/schema.s.ts +29 -29
  53. package/schemas/holderService/schema.s.ts +874 -780
  54. package/schemas/storageService/schema.s.js +6 -0
  55. package/schemas/storageService/schema.s.ts +1042 -0
  56. /package/clients/contentService/models/{Portal.js → PortalSettings.js} +0 -0
  57. /package/clients/contentService/models/{PortalEnvelope.js → PortalSettingsEnvelope.js} +0 -0
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AvatarsService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class AvatarsService {
7
+ /**
8
+ * @param socialProfileId
9
+ * @param xApiVersion
10
+ * @returns EmptyEnvelope OK
11
+ * @throws ApiError
12
+ */
13
+ static getApiV2StorageServiceAvatars(socialProfileId, xApiVersion) {
14
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
15
+ method: 'GET',
16
+ url: '/api/v2/StorageService/Avatars/{socialProfileId}',
17
+ path: {
18
+ 'socialProfileId': socialProfileId,
19
+ },
20
+ headers: {
21
+ 'x-api-version': xApiVersion,
22
+ },
23
+ errors: {
24
+ 401: `Unauthorized`,
25
+ 403: `Forbidden`,
26
+ },
27
+ });
28
+ }
29
+ /**
30
+ * @param xApiVersion
31
+ * @returns EmptyEnvelope OK
32
+ * @throws ApiError
33
+ */
34
+ static getApiV2StorageServiceAvatarsUser(xApiVersion) {
35
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
36
+ method: 'GET',
37
+ url: '/api/v2/StorageService/Avatars/User',
38
+ headers: {
39
+ 'x-api-version': xApiVersion,
40
+ },
41
+ errors: {
42
+ 401: `Unauthorized`,
43
+ 403: `Forbidden`,
44
+ },
45
+ });
46
+ }
47
+ /**
48
+ * @param xApiVersion
49
+ * @param formData
50
+ * @returns EmptyEnvelope OK
51
+ * @throws ApiError
52
+ */
53
+ static postApiV2StorageServiceAvatarsUser(xApiVersion, formData) {
54
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
55
+ method: 'POST',
56
+ url: '/api/v2/StorageService/Avatars/User',
57
+ headers: {
58
+ 'x-api-version': xApiVersion,
59
+ },
60
+ formData: formData,
61
+ mediaType: 'multipart/form-data',
62
+ errors: {
63
+ 401: `Unauthorized`,
64
+ 403: `Forbidden`,
65
+ },
66
+ });
67
+ }
68
+ /**
69
+ * @param userId
70
+ * @param xApiVersion
71
+ * @returns EmptyEnvelope OK
72
+ * @throws ApiError
73
+ */
74
+ static getApiV2StorageServiceAvatarsUser1(userId, xApiVersion) {
75
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
76
+ method: 'GET',
77
+ url: '/api/v2/StorageService/Avatars/User/{userId}',
78
+ path: {
79
+ 'userId': userId,
80
+ },
81
+ headers: {
82
+ 'x-api-version': xApiVersion,
83
+ },
84
+ errors: {
85
+ 401: `Unauthorized`,
86
+ 403: `Forbidden`,
87
+ },
88
+ });
89
+ }
90
+ /**
91
+ * @param tenantId
92
+ * @param xApiVersion
93
+ * @returns EmptyEnvelope OK
94
+ * @throws ApiError
95
+ */
96
+ static getApiV2StorageServiceAvatarsTenant(tenantId, xApiVersion) {
97
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
98
+ method: 'GET',
99
+ url: '/api/v2/StorageService/Avatars/Tenant/{tenantId}',
100
+ path: {
101
+ 'tenantId': tenantId,
102
+ },
103
+ headers: {
104
+ 'x-api-version': xApiVersion,
105
+ },
106
+ errors: {
107
+ 401: `Unauthorized`,
108
+ 403: `Forbidden`,
109
+ },
110
+ });
111
+ }
112
+ /**
113
+ * @param tenantId
114
+ * @param xApiVersion
115
+ * @param formData
116
+ * @returns EmptyEnvelope OK
117
+ * @throws ApiError
118
+ */
119
+ static postApiV2StorageServiceAvatarsTenant(tenantId, xApiVersion, formData) {
120
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
121
+ method: 'POST',
122
+ url: '/api/v2/StorageService/Avatars/Tenant/{tenantId}',
123
+ path: {
124
+ 'tenantId': tenantId,
125
+ },
126
+ headers: {
127
+ 'x-api-version': xApiVersion,
128
+ },
129
+ formData: formData,
130
+ mediaType: 'multipart/form-data',
131
+ errors: {
132
+ 401: `Unauthorized`,
133
+ 403: `Forbidden`,
134
+ },
135
+ });
136
+ }
137
+ /**
138
+ * @param contactId
139
+ * @param xApiVersion
140
+ * @returns EmptyEnvelope OK
141
+ * @throws ApiError
142
+ */
143
+ static getApiV2StorageServiceAvatarsContact(contactId, xApiVersion) {
144
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
145
+ method: 'GET',
146
+ url: '/api/v2/StorageService/Avatars/Contact/{contactId}',
147
+ path: {
148
+ 'contactId': contactId,
149
+ },
150
+ headers: {
151
+ 'x-api-version': xApiVersion,
152
+ },
153
+ errors: {
154
+ 401: `Unauthorized`,
155
+ 403: `Forbidden`,
156
+ },
157
+ });
158
+ }
159
+ /**
160
+ * @param contactId
161
+ * @param tenantId
162
+ * @param xApiVersion
163
+ * @param formData
164
+ * @returns EmptyEnvelope OK
165
+ * @throws ApiError
166
+ */
167
+ static postApiV2StorageServiceAvatarsContacts(contactId, tenantId, xApiVersion, formData) {
168
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
169
+ method: 'POST',
170
+ url: '/api/v2/StorageService/Avatars/Contacts/{contactId}',
171
+ path: {
172
+ 'contactId': contactId,
173
+ },
174
+ headers: {
175
+ 'x-api-version': xApiVersion,
176
+ },
177
+ query: {
178
+ 'tenantId': tenantId,
179
+ },
180
+ formData: formData,
181
+ mediaType: 'multipart/form-data',
182
+ errors: {
183
+ 401: `Unauthorized`,
184
+ 403: `Forbidden`,
185
+ },
186
+ });
187
+ }
188
+ }
189
+ exports.AvatarsService = AvatarsService;
@@ -0,0 +1,223 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { EmptyEnvelope } from '../models/EmptyEnvelope';
6
+ import type { CancelablePromise } from '../core/CancelablePromise';
7
+ import { OpenAPI } from '../core/OpenAPI';
8
+ import { request as __request } from '../core/request';
9
+ export class AvatarsService {
10
+ /**
11
+ * @param socialProfileId
12
+ * @param xApiVersion
13
+ * @returns EmptyEnvelope OK
14
+ * @throws ApiError
15
+ */
16
+ public static getApiV2StorageServiceAvatars(
17
+ socialProfileId: string,
18
+ xApiVersion?: string,
19
+ ): CancelablePromise<EmptyEnvelope> {
20
+ return __request(OpenAPI, {
21
+ method: 'GET',
22
+ url: '/api/v2/StorageService/Avatars/{socialProfileId}',
23
+ path: {
24
+ 'socialProfileId': socialProfileId,
25
+ },
26
+ headers: {
27
+ 'x-api-version': xApiVersion,
28
+ },
29
+ errors: {
30
+ 401: `Unauthorized`,
31
+ 403: `Forbidden`,
32
+ },
33
+ });
34
+ }
35
+ /**
36
+ * @param xApiVersion
37
+ * @returns EmptyEnvelope OK
38
+ * @throws ApiError
39
+ */
40
+ public static getApiV2StorageServiceAvatarsUser(
41
+ xApiVersion?: string,
42
+ ): CancelablePromise<EmptyEnvelope> {
43
+ return __request(OpenAPI, {
44
+ method: 'GET',
45
+ url: '/api/v2/StorageService/Avatars/User',
46
+ headers: {
47
+ 'x-api-version': xApiVersion,
48
+ },
49
+ errors: {
50
+ 401: `Unauthorized`,
51
+ 403: `Forbidden`,
52
+ },
53
+ });
54
+ }
55
+ /**
56
+ * @param xApiVersion
57
+ * @param formData
58
+ * @returns EmptyEnvelope OK
59
+ * @throws ApiError
60
+ */
61
+ public static postApiV2StorageServiceAvatarsUser(
62
+ xApiVersion?: string,
63
+ formData?: {
64
+ avatar?: Blob;
65
+ },
66
+ ): CancelablePromise<EmptyEnvelope> {
67
+ return __request(OpenAPI, {
68
+ method: 'POST',
69
+ url: '/api/v2/StorageService/Avatars/User',
70
+ headers: {
71
+ 'x-api-version': xApiVersion,
72
+ },
73
+ formData: formData,
74
+ mediaType: 'multipart/form-data',
75
+ errors: {
76
+ 401: `Unauthorized`,
77
+ 403: `Forbidden`,
78
+ },
79
+ });
80
+ }
81
+ /**
82
+ * @param userId
83
+ * @param xApiVersion
84
+ * @returns EmptyEnvelope OK
85
+ * @throws ApiError
86
+ */
87
+ public static getApiV2StorageServiceAvatarsUser1(
88
+ userId: string,
89
+ xApiVersion?: string,
90
+ ): CancelablePromise<EmptyEnvelope> {
91
+ return __request(OpenAPI, {
92
+ method: 'GET',
93
+ url: '/api/v2/StorageService/Avatars/User/{userId}',
94
+ path: {
95
+ 'userId': userId,
96
+ },
97
+ headers: {
98
+ 'x-api-version': xApiVersion,
99
+ },
100
+ errors: {
101
+ 401: `Unauthorized`,
102
+ 403: `Forbidden`,
103
+ },
104
+ });
105
+ }
106
+ /**
107
+ * @param tenantId
108
+ * @param xApiVersion
109
+ * @returns EmptyEnvelope OK
110
+ * @throws ApiError
111
+ */
112
+ public static getApiV2StorageServiceAvatarsTenant(
113
+ tenantId: string,
114
+ xApiVersion?: string,
115
+ ): CancelablePromise<EmptyEnvelope> {
116
+ return __request(OpenAPI, {
117
+ method: 'GET',
118
+ url: '/api/v2/StorageService/Avatars/Tenant/{tenantId}',
119
+ path: {
120
+ 'tenantId': tenantId,
121
+ },
122
+ headers: {
123
+ 'x-api-version': xApiVersion,
124
+ },
125
+ errors: {
126
+ 401: `Unauthorized`,
127
+ 403: `Forbidden`,
128
+ },
129
+ });
130
+ }
131
+ /**
132
+ * @param tenantId
133
+ * @param xApiVersion
134
+ * @param formData
135
+ * @returns EmptyEnvelope OK
136
+ * @throws ApiError
137
+ */
138
+ public static postApiV2StorageServiceAvatarsTenant(
139
+ tenantId: string,
140
+ xApiVersion?: string,
141
+ formData?: {
142
+ avatar?: Blob;
143
+ },
144
+ ): CancelablePromise<EmptyEnvelope> {
145
+ return __request(OpenAPI, {
146
+ method: 'POST',
147
+ url: '/api/v2/StorageService/Avatars/Tenant/{tenantId}',
148
+ path: {
149
+ 'tenantId': tenantId,
150
+ },
151
+ headers: {
152
+ 'x-api-version': xApiVersion,
153
+ },
154
+ formData: formData,
155
+ mediaType: 'multipart/form-data',
156
+ errors: {
157
+ 401: `Unauthorized`,
158
+ 403: `Forbidden`,
159
+ },
160
+ });
161
+ }
162
+ /**
163
+ * @param contactId
164
+ * @param xApiVersion
165
+ * @returns EmptyEnvelope OK
166
+ * @throws ApiError
167
+ */
168
+ public static getApiV2StorageServiceAvatarsContact(
169
+ contactId: string,
170
+ xApiVersion?: string,
171
+ ): CancelablePromise<EmptyEnvelope> {
172
+ return __request(OpenAPI, {
173
+ method: 'GET',
174
+ url: '/api/v2/StorageService/Avatars/Contact/{contactId}',
175
+ path: {
176
+ 'contactId': contactId,
177
+ },
178
+ headers: {
179
+ 'x-api-version': xApiVersion,
180
+ },
181
+ errors: {
182
+ 401: `Unauthorized`,
183
+ 403: `Forbidden`,
184
+ },
185
+ });
186
+ }
187
+ /**
188
+ * @param contactId
189
+ * @param tenantId
190
+ * @param xApiVersion
191
+ * @param formData
192
+ * @returns EmptyEnvelope OK
193
+ * @throws ApiError
194
+ */
195
+ public static postApiV2StorageServiceAvatarsContacts(
196
+ contactId: string,
197
+ tenantId?: string,
198
+ xApiVersion?: string,
199
+ formData?: {
200
+ avatar?: Blob;
201
+ },
202
+ ): CancelablePromise<EmptyEnvelope> {
203
+ return __request(OpenAPI, {
204
+ method: 'POST',
205
+ url: '/api/v2/StorageService/Avatars/Contacts/{contactId}',
206
+ path: {
207
+ 'contactId': contactId,
208
+ },
209
+ headers: {
210
+ 'x-api-version': xApiVersion,
211
+ },
212
+ query: {
213
+ 'tenantId': tenantId,
214
+ },
215
+ formData: formData,
216
+ mediaType: 'multipart/form-data',
217
+ errors: {
218
+ 401: `Unauthorized`,
219
+ 403: `Forbidden`,
220
+ },
221
+ });
222
+ }
223
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BlobsService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class BlobsService {
7
+ /**
8
+ * @param tenantId
9
+ * @param folderPath
10
+ * @param browseFilter
11
+ * @param filePrefix
12
+ * @param recurse
13
+ * @param maxResults
14
+ * @param includeAttributes
15
+ * @param xApiVersion
16
+ * @returns BlobEnvelope OK
17
+ * @throws ApiError
18
+ */
19
+ static getBlobsAsync(tenantId, folderPath, browseFilter, filePrefix, recurse, maxResults, includeAttributes, xApiVersion) {
20
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
21
+ method: 'GET',
22
+ url: '/api/v2/StorageService/Blobs',
23
+ headers: {
24
+ 'x-api-version': xApiVersion,
25
+ },
26
+ query: {
27
+ 'tenantId': tenantId,
28
+ 'folderPath': folderPath,
29
+ 'browseFilter': browseFilter,
30
+ 'filePrefix': filePrefix,
31
+ 'recurse': recurse,
32
+ 'maxResults': maxResults,
33
+ 'includeAttributes': includeAttributes,
34
+ },
35
+ errors: {
36
+ 401: `Unauthorized`,
37
+ 403: `Forbidden`,
38
+ },
39
+ });
40
+ }
41
+ /**
42
+ * @param tenantId
43
+ * @param filePath
44
+ * @param xApiVersion
45
+ * @returns BlobEnvelope OK
46
+ * @throws ApiError
47
+ */
48
+ static getBlobAsync(tenantId, filePath, xApiVersion) {
49
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
50
+ method: 'GET',
51
+ url: '/api/v2/StorageService/Blobs/Single',
52
+ headers: {
53
+ 'x-api-version': xApiVersion,
54
+ },
55
+ query: {
56
+ 'tenantId': tenantId,
57
+ 'filePath': filePath,
58
+ },
59
+ errors: {
60
+ 401: `Unauthorized`,
61
+ 403: `Forbidden`,
62
+ },
63
+ });
64
+ }
65
+ }
66
+ exports.BlobsService = BlobsService;
@@ -0,0 +1,81 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { BlobEnvelope } from '../models/BlobEnvelope';
6
+ import type { CancelablePromise } from '../core/CancelablePromise';
7
+ import { OpenAPI } from '../core/OpenAPI';
8
+ import { request as __request } from '../core/request';
9
+ export class BlobsService {
10
+ /**
11
+ * @param tenantId
12
+ * @param folderPath
13
+ * @param browseFilter
14
+ * @param filePrefix
15
+ * @param recurse
16
+ * @param maxResults
17
+ * @param includeAttributes
18
+ * @param xApiVersion
19
+ * @returns BlobEnvelope OK
20
+ * @throws ApiError
21
+ */
22
+ public static getBlobsAsync(
23
+ tenantId?: string,
24
+ folderPath?: string,
25
+ browseFilter?: string,
26
+ filePrefix?: string,
27
+ recurse?: boolean,
28
+ maxResults?: number,
29
+ includeAttributes?: boolean,
30
+ xApiVersion?: string,
31
+ ): CancelablePromise<BlobEnvelope> {
32
+ return __request(OpenAPI, {
33
+ method: 'GET',
34
+ url: '/api/v2/StorageService/Blobs',
35
+ headers: {
36
+ 'x-api-version': xApiVersion,
37
+ },
38
+ query: {
39
+ 'tenantId': tenantId,
40
+ 'folderPath': folderPath,
41
+ 'browseFilter': browseFilter,
42
+ 'filePrefix': filePrefix,
43
+ 'recurse': recurse,
44
+ 'maxResults': maxResults,
45
+ 'includeAttributes': includeAttributes,
46
+ },
47
+ errors: {
48
+ 401: `Unauthorized`,
49
+ 403: `Forbidden`,
50
+ },
51
+ });
52
+ }
53
+ /**
54
+ * @param tenantId
55
+ * @param filePath
56
+ * @param xApiVersion
57
+ * @returns BlobEnvelope OK
58
+ * @throws ApiError
59
+ */
60
+ public static getBlobAsync(
61
+ tenantId?: string,
62
+ filePath?: string,
63
+ xApiVersion?: string,
64
+ ): CancelablePromise<BlobEnvelope> {
65
+ return __request(OpenAPI, {
66
+ method: 'GET',
67
+ url: '/api/v2/StorageService/Blobs/Single',
68
+ headers: {
69
+ 'x-api-version': xApiVersion,
70
+ },
71
+ query: {
72
+ 'tenantId': tenantId,
73
+ 'filePath': filePath,
74
+ },
75
+ errors: {
76
+ 401: `Unauthorized`,
77
+ 403: `Forbidden`,
78
+ },
79
+ });
80
+ }
81
+ }