@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.
Files changed (119) hide show
  1. package/app/index.js +2 -2
  2. package/app/index.ts +1 -1
  3. package/clients/contentService/index.ts +2 -2
  4. package/clients/contentService/models/{Portal.ts → PortalSettings.ts} +1 -1
  5. package/clients/contentService/models/PortalSettingsEnvelope.ts +14 -0
  6. package/clients/contentService/services/PortalsService.js +23 -12
  7. package/clients/contentService/services/PortalsService.ts +25 -14
  8. package/clients/crmService/services/ContactsService.js +86 -28
  9. package/clients/crmService/services/ContactsService.ts +86 -28
  10. package/clients/holderService/index.js +7 -3
  11. package/clients/holderService/index.ts +4 -2
  12. package/clients/holderService/models/FollowRecordDtoListEnvelope.ts +14 -0
  13. package/clients/holderService/services/{HolderService.js → IdentityService.js} +65 -157
  14. package/clients/holderService/services/{HolderService.ts → IdentityService.ts} +70 -186
  15. package/clients/holderService/services/TenantsService.js +151 -0
  16. package/clients/holderService/services/TenantsService.ts +176 -0
  17. package/clients/holderService/services/UserService.js +364 -0
  18. package/clients/holderService/services/UserService.ts +421 -0
  19. package/clients/storageService/core/ApiError.js +20 -0
  20. package/clients/storageService/core/ApiError.ts +25 -0
  21. package/clients/storageService/core/ApiRequestOptions.ts +17 -0
  22. package/clients/storageService/core/ApiResult.ts +11 -0
  23. package/clients/storageService/core/CancelablePromise.js +104 -0
  24. package/clients/storageService/core/CancelablePromise.ts +131 -0
  25. package/clients/storageService/core/OpenAPI.js +14 -0
  26. package/clients/storageService/core/OpenAPI.ts +32 -0
  27. package/clients/storageService/core/request.js +294 -0
  28. package/clients/storageService/core/request.ts +322 -0
  29. package/clients/storageService/index.js +26 -0
  30. package/clients/storageService/index.ts +23 -0
  31. package/clients/storageService/models/Blob.js +11 -0
  32. package/clients/storageService/models/Blob.ts +26 -0
  33. package/clients/{contentService/models/PortalEnvelope.ts → storageService/models/BlobEnvelope.ts} +3 -3
  34. package/clients/{holderService/models/EmptyEnvelopeEnvelope.ts → storageService/models/EmptyEnvelope.ts} +1 -3
  35. package/clients/storageService/models/ErrorEnvelope.ts +12 -0
  36. package/clients/storageService/models/FileUploadCreateDto.ts +20 -0
  37. package/clients/storageService/models/FileUploadDto.js +2 -0
  38. package/clients/storageService/models/FileUploadDto.ts +29 -0
  39. package/clients/storageService/models/FileUploadDtoEnvelope.js +2 -0
  40. package/clients/storageService/models/FileUploadDtoEnvelope.ts +14 -0
  41. package/clients/storageService/models/FileUploadUpdateDto.js +2 -0
  42. package/clients/storageService/models/FileUploadUpdateDto.ts +19 -0
  43. package/clients/storageService/services/AvatarsService.js +200 -0
  44. package/clients/storageService/services/AvatarsService.ts +234 -0
  45. package/clients/storageService/services/BlobsService.js +66 -0
  46. package/clients/storageService/services/BlobsService.ts +81 -0
  47. package/clients/{tenantService/services/EnrollmentsService.js → storageService/services/FilesService.js} +50 -42
  48. package/clients/{tenantService/services/UnitsService.ts → storageService/services/FilesService.ts} +75 -65
  49. package/clients/storageService/services/RadzenEditorService.js +117 -0
  50. package/clients/storageService/services/RadzenEditorService.ts +149 -0
  51. package/clients/storageService/services/UploadsService.js +33 -0
  52. package/clients/storageService/services/UploadsService.ts +53 -0
  53. package/clients/systemService/services/ModulesService.js +4 -2
  54. package/clients/systemService/services/ModulesService.ts +4 -2
  55. package/clients/systemService/services/TenantsService.js +24 -8
  56. package/clients/systemService/services/TenantsService.ts +24 -8
  57. package/clients/tenantService/index.js +1 -29
  58. package/clients/tenantService/index.ts +7 -20
  59. package/clients/tenantService/models/TenantIndustryDtoListEnvelope.js +2 -0
  60. package/clients/tenantService/models/TenantIndustryDtoListEnvelope.ts +14 -0
  61. package/clients/tenantService/models/TenantTeamContactEnrollmentDtoListEnvelope.js +2 -0
  62. package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamContactEnrollmentDtoListEnvelope.ts} +1 -1
  63. package/clients/tenantService/models/TenantTeamDtoListEnvelope.js +2 -0
  64. package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.ts → TenantTeamDtoListEnvelope.ts} +1 -1
  65. package/clients/tenantService/models/TenantTeamEmployeeEnrollmentDtoListEnvelope.js +2 -0
  66. package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamEmployeeEnrollmentDtoListEnvelope.ts} +1 -1
  67. package/clients/tenantService/models/TenantTeamProjectEnrollmentDtoListEnvelope.js +2 -0
  68. package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamProjectEnrollmentDtoListEnvelope.ts} +1 -1
  69. package/clients/tenantService/models/TenantTeamRecordDtoListEnvelope.js +2 -0
  70. package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.ts → TenantTeamRecordDtoListEnvelope.ts} +1 -1
  71. package/clients/tenantService/models/TenantTypeDtoListEnvelope.js +2 -0
  72. package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.ts → TenantTypeDtoListEnvelope.ts} +1 -1
  73. package/clients/tenantService/services/SizesService.js +15 -5
  74. package/clients/tenantService/services/SizesService.ts +15 -5
  75. package/clients/tenantService/services/TenantsService.js +2554 -233
  76. package/clients/tenantService/services/TenantsService.ts +3004 -307
  77. package/package.json +1 -1
  78. package/schemas/contentService/schema.s.ts +877 -844
  79. package/schemas/crmService/schema.s.ts +1776 -1516
  80. package/schemas/holderService/schema.s.ts +1024 -789
  81. package/schemas/storageService/schema.s.js +6 -0
  82. package/schemas/storageService/schema.s.ts +1087 -0
  83. package/schemas/systemService/schema.s.ts +465 -387
  84. package/schemas/tenantService/schema.s.ts +5713 -4820
  85. package/clients/tenantService/services/DepartmentsService.js +0 -161
  86. package/clients/tenantService/services/DepartmentsService.ts +0 -192
  87. package/clients/tenantService/services/EmployeeEnrollmentsService.js +0 -153
  88. package/clients/tenantService/services/EmployeeEnrollmentsService.ts +0 -181
  89. package/clients/tenantService/services/EnrollmentsService.ts +0 -195
  90. package/clients/tenantService/services/IndustriesService.js +0 -161
  91. package/clients/tenantService/services/IndustriesService.ts +0 -190
  92. package/clients/tenantService/services/InvitationsService.js +0 -128
  93. package/clients/tenantService/services/InvitationsService.ts +0 -150
  94. package/clients/tenantService/services/PositionsService.js +0 -161
  95. package/clients/tenantService/services/PositionsService.ts +0 -192
  96. package/clients/tenantService/services/SegmentsService.js +0 -161
  97. package/clients/tenantService/services/SegmentsService.ts +0 -191
  98. package/clients/tenantService/services/TeamContactEnrollmentsService.js +0 -161
  99. package/clients/tenantService/services/TeamContactEnrollmentsService.ts +0 -191
  100. package/clients/tenantService/services/TeamProjectEnrollmentService.js +0 -153
  101. package/clients/tenantService/services/TeamProjectEnrollmentService.ts +0 -181
  102. package/clients/tenantService/services/TeamRecordsService.js +0 -161
  103. package/clients/tenantService/services/TeamRecordsService.ts +0 -192
  104. package/clients/tenantService/services/TeamsService.js +0 -161
  105. package/clients/tenantService/services/TeamsService.ts +0 -192
  106. package/clients/tenantService/services/TerritoriesService.js +0 -161
  107. package/clients/tenantService/services/TerritoriesService.ts +0 -192
  108. package/clients/tenantService/services/TypesService.js +0 -149
  109. package/clients/tenantService/services/TypesService.ts +0 -176
  110. package/clients/tenantService/services/UnitsService.js +0 -159
  111. /package/clients/contentService/models/{Portal.js → PortalSettings.js} +0 -0
  112. /package/clients/contentService/models/{PortalEnvelope.js → PortalSettingsEnvelope.js} +0 -0
  113. /package/clients/holderService/models/{EmptyEnvelopeEnvelope.js → FollowRecordDtoListEnvelope.js} +0 -0
  114. /package/clients/{tenantService/models/TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.js → storageService/core/ApiRequestOptions.js} +0 -0
  115. /package/clients/{tenantService/models/TenantTeamDtoIReadOnlyCollectionEnvelope.js → storageService/core/ApiResult.js} +0 -0
  116. /package/clients/{tenantService/models/TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.js → storageService/models/BlobEnvelope.js} +0 -0
  117. /package/clients/{tenantService/models/TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.js → storageService/models/EmptyEnvelope.js} +0 -0
  118. /package/clients/{tenantService/models/TenantTeamRecordDtoIReadOnlyCollectionEnvelope.js → storageService/models/ErrorEnvelope.js} +0 -0
  119. /package/clients/{tenantService/models/TenantTypeDtoIReadOnlyCollectionEnvelope.js → storageService/models/FileUploadCreateDto.js} +0 -0
@@ -0,0 +1,322 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import { ApiError } from './ApiError';
6
+ import type { ApiRequestOptions } from './ApiRequestOptions';
7
+ import type { ApiResult } from './ApiResult';
8
+ import { CancelablePromise } from './CancelablePromise';
9
+ import type { OnCancel } from './CancelablePromise';
10
+ import type { OpenAPIConfig } from './OpenAPI';
11
+
12
+ export const isDefined = <T>(value: T | null | undefined): value is Exclude<T, null | undefined> => {
13
+ return value !== undefined && value !== null;
14
+ };
15
+
16
+ export const isString = (value: any): value is string => {
17
+ return typeof value === 'string';
18
+ };
19
+
20
+ export const isStringWithValue = (value: any): value is string => {
21
+ return isString(value) && value !== '';
22
+ };
23
+
24
+ export const isBlob = (value: any): value is Blob => {
25
+ return (
26
+ typeof value === 'object' &&
27
+ typeof value.type === 'string' &&
28
+ typeof value.stream === 'function' &&
29
+ typeof value.arrayBuffer === 'function' &&
30
+ typeof value.constructor === 'function' &&
31
+ typeof value.constructor.name === 'string' &&
32
+ /^(Blob|File)$/.test(value.constructor.name) &&
33
+ /^(Blob|File)$/.test(value[Symbol.toStringTag])
34
+ );
35
+ };
36
+
37
+ export const isFormData = (value: any): value is FormData => {
38
+ return value instanceof FormData;
39
+ };
40
+
41
+ export const base64 = (str: string): string => {
42
+ try {
43
+ return btoa(str);
44
+ } catch (err) {
45
+ // @ts-ignore
46
+ return Buffer.from(str).toString('base64');
47
+ }
48
+ };
49
+
50
+ export const getQueryString = (params: Record<string, any>): string => {
51
+ const qs: string[] = [];
52
+
53
+ const append = (key: string, value: any) => {
54
+ qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
55
+ };
56
+
57
+ const process = (key: string, value: any) => {
58
+ if (isDefined(value)) {
59
+ if (Array.isArray(value)) {
60
+ value.forEach(v => {
61
+ process(key, v);
62
+ });
63
+ } else if (typeof value === 'object') {
64
+ Object.entries(value).forEach(([k, v]) => {
65
+ process(`${key}[${k}]`, v);
66
+ });
67
+ } else {
68
+ append(key, value);
69
+ }
70
+ }
71
+ };
72
+
73
+ Object.entries(params).forEach(([key, value]) => {
74
+ process(key, value);
75
+ });
76
+
77
+ if (qs.length > 0) {
78
+ return `?${qs.join('&')}`;
79
+ }
80
+
81
+ return '';
82
+ };
83
+
84
+ const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {
85
+ const encoder = config.ENCODE_PATH || encodeURI;
86
+
87
+ const path = options.url
88
+ .replace('{api-version}', config.VERSION)
89
+ .replace(/{(.*?)}/g, (substring: string, group: string) => {
90
+ if (options.path?.hasOwnProperty(group)) {
91
+ return encoder(String(options.path[group]));
92
+ }
93
+ return substring;
94
+ });
95
+
96
+ const url = `${config.BASE}${path}`;
97
+ if (options.query) {
98
+ return `${url}${getQueryString(options.query)}`;
99
+ }
100
+ return url;
101
+ };
102
+
103
+ export const getFormData = (options: ApiRequestOptions): FormData | undefined => {
104
+ if (options.formData) {
105
+ const formData = new FormData();
106
+
107
+ const process = (key: string, value: any) => {
108
+ if (isString(value) || isBlob(value)) {
109
+ formData.append(key, value);
110
+ } else {
111
+ formData.append(key, JSON.stringify(value));
112
+ }
113
+ };
114
+
115
+ Object.entries(options.formData)
116
+ .filter(([_, value]) => isDefined(value))
117
+ .forEach(([key, value]) => {
118
+ if (Array.isArray(value)) {
119
+ value.forEach(v => process(key, v));
120
+ } else {
121
+ process(key, value);
122
+ }
123
+ });
124
+
125
+ return formData;
126
+ }
127
+ return undefined;
128
+ };
129
+
130
+ type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
131
+
132
+ export const resolve = async <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>): Promise<T | undefined> => {
133
+ if (typeof resolver === 'function') {
134
+ return (resolver as Resolver<T>)(options);
135
+ }
136
+ return resolver;
137
+ };
138
+
139
+ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise<Headers> => {
140
+ const [token, username, password, additionalHeaders] = await Promise.all([
141
+ resolve(options, config.TOKEN),
142
+ resolve(options, config.USERNAME),
143
+ resolve(options, config.PASSWORD),
144
+ resolve(options, config.HEADERS),
145
+ ]);
146
+
147
+ const headers = Object.entries({
148
+ Accept: 'application/json',
149
+ ...additionalHeaders,
150
+ ...options.headers,
151
+ })
152
+ .filter(([_, value]) => isDefined(value))
153
+ .reduce((headers, [key, value]) => ({
154
+ ...headers,
155
+ [key]: String(value),
156
+ }), {} as Record<string, string>);
157
+
158
+ if (isStringWithValue(token)) {
159
+ headers['Authorization'] = `Bearer ${token}`;
160
+ }
161
+
162
+ if (isStringWithValue(username) && isStringWithValue(password)) {
163
+ const credentials = base64(`${username}:${password}`);
164
+ headers['Authorization'] = `Basic ${credentials}`;
165
+ }
166
+
167
+ if (options.body) {
168
+ if (options.mediaType) {
169
+ headers['Content-Type'] = options.mediaType;
170
+ } else if (isBlob(options.body)) {
171
+ headers['Content-Type'] = options.body.type || 'application/octet-stream';
172
+ } else if (isString(options.body)) {
173
+ headers['Content-Type'] = 'text/plain';
174
+ } else if (!isFormData(options.body)) {
175
+ headers['Content-Type'] = 'application/json';
176
+ }
177
+ }
178
+
179
+ return new Headers(headers);
180
+ };
181
+
182
+ export const getRequestBody = (options: ApiRequestOptions): any => {
183
+ if (options.body !== undefined) {
184
+ if (options.mediaType?.includes('/json')) {
185
+ return JSON.stringify(options.body)
186
+ } else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {
187
+ return options.body;
188
+ } else {
189
+ return JSON.stringify(options.body);
190
+ }
191
+ }
192
+ return undefined;
193
+ };
194
+
195
+ export const sendRequest = async (
196
+ config: OpenAPIConfig,
197
+ options: ApiRequestOptions,
198
+ url: string,
199
+ body: any,
200
+ formData: FormData | undefined,
201
+ headers: Headers,
202
+ onCancel: OnCancel
203
+ ): Promise<Response> => {
204
+ const controller = new AbortController();
205
+
206
+ const request: RequestInit = {
207
+ headers,
208
+ body: body ?? formData,
209
+ method: options.method,
210
+ signal: controller.signal,
211
+ };
212
+
213
+ if (config.WITH_CREDENTIALS) {
214
+ request.credentials = config.CREDENTIALS;
215
+ }
216
+
217
+ onCancel(() => controller.abort());
218
+
219
+ return await fetch(url, request);
220
+ };
221
+
222
+ export const getResponseHeader = (response: Response, responseHeader?: string): string | undefined => {
223
+ if (responseHeader) {
224
+ const content = response.headers.get(responseHeader);
225
+ if (isString(content)) {
226
+ return content;
227
+ }
228
+ }
229
+ return undefined;
230
+ };
231
+
232
+ export const getResponseBody = async (response: Response): Promise<any> => {
233
+ if (response.status !== 204) {
234
+ try {
235
+ const contentType = response.headers.get('Content-Type');
236
+ if (contentType) {
237
+ const jsonTypes = ['application/json', 'application/problem+json']
238
+ const isJSON = jsonTypes.some(type => contentType.toLowerCase().startsWith(type));
239
+ if (isJSON) {
240
+ return await response.json();
241
+ } else {
242
+ return await response.text();
243
+ }
244
+ }
245
+ } catch (error) {
246
+ console.error(error);
247
+ }
248
+ }
249
+ return undefined;
250
+ };
251
+
252
+ export const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => {
253
+ const errors: Record<number, string> = {
254
+ 400: 'Bad Request',
255
+ 401: 'Unauthorized',
256
+ 403: 'Forbidden',
257
+ 404: 'Not Found',
258
+ 500: 'Internal Server Error',
259
+ 502: 'Bad Gateway',
260
+ 503: 'Service Unavailable',
261
+ ...options.errors,
262
+ }
263
+
264
+ const error = errors[result.status];
265
+ if (error) {
266
+ throw new ApiError(options, result, error);
267
+ }
268
+
269
+ if (!result.ok) {
270
+ const errorStatus = result.status ?? 'unknown';
271
+ const errorStatusText = result.statusText ?? 'unknown';
272
+ const errorBody = (() => {
273
+ try {
274
+ return JSON.stringify(result.body, null, 2);
275
+ } catch (e) {
276
+ return undefined;
277
+ }
278
+ })();
279
+
280
+ throw new ApiError(options, result,
281
+ `Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`
282
+ );
283
+ }
284
+ };
285
+
286
+ /**
287
+ * Request method
288
+ * @param config The OpenAPI configuration object
289
+ * @param options The request options from the service
290
+ * @returns CancelablePromise<T>
291
+ * @throws ApiError
292
+ */
293
+ export const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions): CancelablePromise<T> => {
294
+ return new CancelablePromise(async (resolve, reject, onCancel) => {
295
+ try {
296
+ const url = getUrl(config, options);
297
+ const formData = getFormData(options);
298
+ const body = getRequestBody(options);
299
+ const headers = await getHeaders(config, options);
300
+
301
+ if (!onCancel.isCancelled) {
302
+ const response = await sendRequest(config, options, url, body, formData, headers, onCancel);
303
+ const responseBody = await getResponseBody(response);
304
+ const responseHeader = getResponseHeader(response, options.responseHeader);
305
+
306
+ const result: ApiResult = {
307
+ url,
308
+ ok: response.ok,
309
+ status: response.status,
310
+ statusText: response.statusText,
311
+ body: responseHeader ?? responseBody,
312
+ };
313
+
314
+ catchErrorCodes(options, result);
315
+
316
+ resolve(result.body);
317
+ }
318
+ } catch (error) {
319
+ reject(error);
320
+ }
321
+ });
322
+ };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UploadsService = exports.RadzenEditorService = exports.FilesService = exports.BlobsService = exports.AvatarsService = exports.Blob = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
4
+ /* generated using openapi-typescript-codegen -- do no edit */
5
+ /* istanbul ignore file */
6
+ /* tslint:disable */
7
+ /* eslint-disable */
8
+ var ApiError_1 = require("./core/ApiError");
9
+ Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return ApiError_1.ApiError; } });
10
+ var CancelablePromise_1 = require("./core/CancelablePromise");
11
+ Object.defineProperty(exports, "CancelablePromise", { enumerable: true, get: function () { return CancelablePromise_1.CancelablePromise; } });
12
+ Object.defineProperty(exports, "CancelError", { enumerable: true, get: function () { return CancelablePromise_1.CancelError; } });
13
+ var OpenAPI_1 = require("./core/OpenAPI");
14
+ Object.defineProperty(exports, "OpenAPI", { enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } });
15
+ var Blob_1 = require("./models/Blob");
16
+ Object.defineProperty(exports, "Blob", { enumerable: true, get: function () { return Blob_1.Blob; } });
17
+ var AvatarsService_1 = require("./services/AvatarsService");
18
+ Object.defineProperty(exports, "AvatarsService", { enumerable: true, get: function () { return AvatarsService_1.AvatarsService; } });
19
+ var BlobsService_1 = require("./services/BlobsService");
20
+ Object.defineProperty(exports, "BlobsService", { enumerable: true, get: function () { return BlobsService_1.BlobsService; } });
21
+ var FilesService_1 = require("./services/FilesService");
22
+ Object.defineProperty(exports, "FilesService", { enumerable: true, get: function () { return FilesService_1.FilesService; } });
23
+ var RadzenEditorService_1 = require("./services/RadzenEditorService");
24
+ Object.defineProperty(exports, "RadzenEditorService", { enumerable: true, get: function () { return RadzenEditorService_1.RadzenEditorService; } });
25
+ var UploadsService_1 = require("./services/UploadsService");
26
+ Object.defineProperty(exports, "UploadsService", { enumerable: true, get: function () { return UploadsService_1.UploadsService; } });
@@ -0,0 +1,23 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export { ApiError } from './core/ApiError';
6
+ export { CancelablePromise, CancelError } from './core/CancelablePromise';
7
+ export { OpenAPI } from './core/OpenAPI';
8
+ export type { OpenAPIConfig } from './core/OpenAPI';
9
+
10
+ export { Blob } from './models/Blob';
11
+ export type { BlobEnvelope } from './models/BlobEnvelope';
12
+ export type { EmptyEnvelope } from './models/EmptyEnvelope';
13
+ export type { ErrorEnvelope } from './models/ErrorEnvelope';
14
+ export type { FileUploadCreateDto } from './models/FileUploadCreateDto';
15
+ export type { FileUploadDto } from './models/FileUploadDto';
16
+ export type { FileUploadDtoEnvelope } from './models/FileUploadDtoEnvelope';
17
+ export type { FileUploadUpdateDto } from './models/FileUploadUpdateDto';
18
+
19
+ export { AvatarsService } from './services/AvatarsService';
20
+ export { BlobsService } from './services/BlobsService';
21
+ export { FilesService } from './services/FilesService';
22
+ export { RadzenEditorService } from './services/RadzenEditorService';
23
+ export { UploadsService } from './services/UploadsService';
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Blob = void 0;
4
+ var Blob;
5
+ (function (Blob) {
6
+ let kind;
7
+ (function (kind) {
8
+ kind[kind["_0"] = 0] = "_0";
9
+ kind[kind["_1"] = 1] = "_1";
10
+ })(kind = Blob.kind || (Blob.kind = {}));
11
+ })(Blob = exports.Blob || (exports.Blob = {}));
@@ -0,0 +1,26 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type Blob = {
6
+ kind?: Blob.kind;
7
+ readonly isFolder?: boolean;
8
+ readonly isFile?: boolean;
9
+ readonly folderPath?: string | null;
10
+ readonly name?: string | null;
11
+ size?: number | null;
12
+ md5?: string | null;
13
+ createdTime?: string | null;
14
+ lastModificationTime?: string | null;
15
+ fullPath?: string | null;
16
+ readonly properties?: Record<string, any> | null;
17
+ readonly metadata?: Record<string, string | null> | null;
18
+ readonly isRootFolder?: boolean;
19
+ };
20
+ export namespace Blob {
21
+ export enum kind {
22
+ '_0' = 0,
23
+ '_1' = 1,
24
+ }
25
+ }
26
+
@@ -2,13 +2,13 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
- import type { Portal } from './Portal';
6
- export type PortalEnvelope = {
5
+ import type { Blob } from './Blob';
6
+ export type BlobEnvelope = {
7
7
  readonly isSuccess?: boolean;
8
8
  errorMessage?: string | null;
9
9
  correlationId?: string | null;
10
10
  readonly timestamp?: string;
11
11
  readonly activityId?: string | null;
12
- result?: Portal;
12
+ result?: Blob;
13
13
  };
14
14
 
@@ -2,13 +2,11 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
- import type { EmptyEnvelope } from './EmptyEnvelope';
6
- export type EmptyEnvelopeEnvelope = {
5
+ export type EmptyEnvelope = {
7
6
  readonly isSuccess?: boolean;
8
7
  errorMessage?: string | null;
9
8
  correlationId?: string | null;
10
9
  readonly timestamp?: string;
11
10
  readonly activityId?: string | null;
12
- result?: EmptyEnvelope;
13
11
  };
14
12
 
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type ErrorEnvelope = {
6
+ readonly isSuccess?: boolean;
7
+ errorMessage?: string | null;
8
+ correlationId?: string | null;
9
+ readonly timestamp?: string;
10
+ readonly activityId?: string | null;
11
+ };
12
+
@@ -0,0 +1,20 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type FileUploadCreateDto = {
6
+ readonly id?: string;
7
+ readonly timestamp?: string;
8
+ notes?: string | null;
9
+ title?: string | null;
10
+ author?: string | null;
11
+ isFolder?: boolean;
12
+ fileName?: string | null;
13
+ abstract?: string | null;
14
+ keyWords?: string | null;
15
+ validResponse?: boolean;
16
+ parentFileUploadId?: string | null;
17
+ filePath?: string | null;
18
+ file?: Blob | null;
19
+ };
20
+
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type FileUploadDto = {
6
+ id?: string | null;
7
+ timestamp?: string | null;
8
+ notes?: string | null;
9
+ title?: string | null;
10
+ author?: string | null;
11
+ isFolder?: boolean;
12
+ hash?: string | null;
13
+ fileUrl?: string | null;
14
+ filePath?: string | null;
15
+ fileName?: string | null;
16
+ abstract?: string | null;
17
+ keyWords?: string | null;
18
+ metadata?: string | null;
19
+ fileLength?: number;
20
+ contentType?: string | null;
21
+ parentFileId?: string | null;
22
+ validResponse?: boolean;
23
+ userId?: string | null;
24
+ tenantId?: string | null;
25
+ enrollmentId?: string | null;
26
+ socialProfileId?: string | null;
27
+ folderPath?: string | null;
28
+ };
29
+
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { FileUploadDto } from './FileUploadDto';
6
+ export type FileUploadDtoEnvelope = {
7
+ readonly isSuccess?: boolean;
8
+ errorMessage?: string | null;
9
+ correlationId?: string | null;
10
+ readonly timestamp?: string;
11
+ readonly activityId?: string | null;
12
+ result?: FileUploadDto;
13
+ };
14
+
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type FileUploadUpdateDto = {
6
+ notes?: string | null;
7
+ metadata?: string | null;
8
+ title?: string | null;
9
+ author?: string | null;
10
+ isFolder?: boolean;
11
+ fileName?: string | null;
12
+ abstract?: string | null;
13
+ keyWords?: string | null;
14
+ validResponse?: boolean;
15
+ parentFileUploadID?: string | null;
16
+ filePath?: string | null;
17
+ file?: Blob | null;
18
+ };
19
+