@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
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { EnrollmentId } from '../models/EnrollmentId';
|
|
6
|
+
import type { ExtendedTenantDtoListEnvelope } from '../models/ExtendedTenantDtoListEnvelope';
|
|
7
|
+
import type { ExtendedTenantEnrolmentDtoListEnvelope } from '../models/ExtendedTenantEnrolmentDtoListEnvelope';
|
|
8
|
+
import type { Int32Envelope } from '../models/Int32Envelope';
|
|
9
|
+
import type { TenantDtoListEnvelope } from '../models/TenantDtoListEnvelope';
|
|
10
|
+
import type { TenantEnrolmentDtoEnvelope } from '../models/TenantEnrolmentDtoEnvelope';
|
|
11
|
+
import type { TenantEnrolmentDtoListEnvelope } from '../models/TenantEnrolmentDtoListEnvelope';
|
|
12
|
+
import type { TenantInvitationDtoListEnvelope } from '../models/TenantInvitationDtoListEnvelope';
|
|
13
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
14
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
15
|
+
import { request as __request } from '../core/request';
|
|
16
|
+
export class TenantsService {
|
|
17
|
+
/**
|
|
18
|
+
* Get the tenants that the current user is enrolled in
|
|
19
|
+
* Get the tenants that the current user is enrolled in
|
|
20
|
+
* @param xApiVersion
|
|
21
|
+
* @returns TenantDtoListEnvelope OK
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
public static getCurrentUserTenantsAsync(
|
|
25
|
+
xApiVersion?: string,
|
|
26
|
+
): CancelablePromise<TenantDtoListEnvelope> {
|
|
27
|
+
return __request(OpenAPI, {
|
|
28
|
+
method: 'GET',
|
|
29
|
+
url: '/api/v2/Me/Businesses',
|
|
30
|
+
headers: {
|
|
31
|
+
'x-api-version': xApiVersion,
|
|
32
|
+
},
|
|
33
|
+
errors: {
|
|
34
|
+
401: `Unauthorized`,
|
|
35
|
+
403: `Forbidden`,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Count the tenants that the current user is enrolled in
|
|
41
|
+
* Count the tenants that the current user is enrolled in
|
|
42
|
+
* @param xApiVersion
|
|
43
|
+
* @returns Int32Envelope OK
|
|
44
|
+
* @throws ApiError
|
|
45
|
+
*/
|
|
46
|
+
public static countCurrentUserTenantsAsync(
|
|
47
|
+
xApiVersion?: string,
|
|
48
|
+
): CancelablePromise<Int32Envelope> {
|
|
49
|
+
return __request(OpenAPI, {
|
|
50
|
+
method: 'GET',
|
|
51
|
+
url: '/api/v2/Me/Businesses/Count',
|
|
52
|
+
headers: {
|
|
53
|
+
'x-api-version': xApiVersion,
|
|
54
|
+
},
|
|
55
|
+
errors: {
|
|
56
|
+
401: `Unauthorized`,
|
|
57
|
+
403: `Forbidden`,
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Get the tenants that the current user is enrolled in
|
|
63
|
+
* Get the tenants that the current user is enrolled in
|
|
64
|
+
* @param xApiVersion
|
|
65
|
+
* @returns ExtendedTenantDtoListEnvelope OK
|
|
66
|
+
* @throws ApiError
|
|
67
|
+
*/
|
|
68
|
+
public static getCurrentUserTenantsExtendedAsync(
|
|
69
|
+
xApiVersion?: string,
|
|
70
|
+
): CancelablePromise<ExtendedTenantDtoListEnvelope> {
|
|
71
|
+
return __request(OpenAPI, {
|
|
72
|
+
method: 'GET',
|
|
73
|
+
url: '/api/v2/Me/Businesses/Extended',
|
|
74
|
+
headers: {
|
|
75
|
+
'x-api-version': xApiVersion,
|
|
76
|
+
},
|
|
77
|
+
errors: {
|
|
78
|
+
401: `Unauthorized`,
|
|
79
|
+
403: `Forbidden`,
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Get the list of enrollments for the current user
|
|
85
|
+
* Get the list of enrollments for the current user
|
|
86
|
+
* @param xApiVersion
|
|
87
|
+
* @returns TenantEnrolmentDtoListEnvelope OK
|
|
88
|
+
* @throws ApiError
|
|
89
|
+
*/
|
|
90
|
+
public static getCurrentUserEnrollmentsAsync(
|
|
91
|
+
xApiVersion?: string,
|
|
92
|
+
): CancelablePromise<TenantEnrolmentDtoListEnvelope> {
|
|
93
|
+
return __request(OpenAPI, {
|
|
94
|
+
method: 'GET',
|
|
95
|
+
url: '/api/v2/Me/Enrollments',
|
|
96
|
+
headers: {
|
|
97
|
+
'x-api-version': xApiVersion,
|
|
98
|
+
},
|
|
99
|
+
errors: {
|
|
100
|
+
401: `Unauthorized`,
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Get the list of enrollments for the current user
|
|
106
|
+
* Get the list of enrollments for the current user
|
|
107
|
+
* @param xApiVersion
|
|
108
|
+
* @returns ExtendedTenantEnrolmentDtoListEnvelope OK
|
|
109
|
+
* @throws ApiError
|
|
110
|
+
*/
|
|
111
|
+
public static getCurrentUserEnrollmentsExtendedAsync(
|
|
112
|
+
xApiVersion?: string,
|
|
113
|
+
): CancelablePromise<ExtendedTenantEnrolmentDtoListEnvelope> {
|
|
114
|
+
return __request(OpenAPI, {
|
|
115
|
+
method: 'GET',
|
|
116
|
+
url: '/api/v2/Me/Enrollments/Extended',
|
|
117
|
+
headers: {
|
|
118
|
+
'x-api-version': xApiVersion,
|
|
119
|
+
},
|
|
120
|
+
errors: {
|
|
121
|
+
401: `Unauthorized`,
|
|
122
|
+
},
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Get a single TenantEnrollment by its ID
|
|
127
|
+
* Get a single TenantEnrollment by its ID
|
|
128
|
+
* @param enrollmentId
|
|
129
|
+
* @param xApiVersion
|
|
130
|
+
* @param requestBody
|
|
131
|
+
* @returns TenantEnrolmentDtoEnvelope OK
|
|
132
|
+
* @throws ApiError
|
|
133
|
+
*/
|
|
134
|
+
public static getTenantEnrollmentAsync(
|
|
135
|
+
enrollmentId: string,
|
|
136
|
+
xApiVersion?: string,
|
|
137
|
+
requestBody?: EnrollmentId,
|
|
138
|
+
): CancelablePromise<TenantEnrolmentDtoEnvelope> {
|
|
139
|
+
return __request(OpenAPI, {
|
|
140
|
+
method: 'GET',
|
|
141
|
+
url: '/api/v2/Me/Enrollments/{enrollmentId}',
|
|
142
|
+
path: {
|
|
143
|
+
'enrollmentId': enrollmentId,
|
|
144
|
+
},
|
|
145
|
+
headers: {
|
|
146
|
+
'x-api-version': xApiVersion,
|
|
147
|
+
},
|
|
148
|
+
body: requestBody,
|
|
149
|
+
mediaType: 'application/json',
|
|
150
|
+
errors: {
|
|
151
|
+
401: `Unauthorized`,
|
|
152
|
+
},
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Get the list of tenant enrollment invitations for the current user
|
|
157
|
+
* Get the list of tenant enrollment invitations for the current user
|
|
158
|
+
* @param xApiVersion
|
|
159
|
+
* @returns TenantInvitationDtoListEnvelope OK
|
|
160
|
+
* @throws ApiError
|
|
161
|
+
*/
|
|
162
|
+
public static getCurrentUserInvitationAsync(
|
|
163
|
+
xApiVersion?: string,
|
|
164
|
+
): CancelablePromise<TenantInvitationDtoListEnvelope> {
|
|
165
|
+
return __request(OpenAPI, {
|
|
166
|
+
method: 'GET',
|
|
167
|
+
url: '/api/v2/Me/Invitations',
|
|
168
|
+
headers: {
|
|
169
|
+
'x-api-version': xApiVersion,
|
|
170
|
+
},
|
|
171
|
+
errors: {
|
|
172
|
+
401: `Unauthorized`,
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class UserService {
|
|
7
|
+
/**
|
|
8
|
+
* Gets the current user
|
|
9
|
+
* Get the currently acting user.
|
|
10
|
+
* @param xApiVersion
|
|
11
|
+
* @returns UserDtoEnvelope OK
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
static getCurrentUserAsync(xApiVersion) {
|
|
15
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
16
|
+
method: 'GET',
|
|
17
|
+
url: '/api/v2/Me',
|
|
18
|
+
headers: {
|
|
19
|
+
'x-api-version': xApiVersion,
|
|
20
|
+
},
|
|
21
|
+
errors: {
|
|
22
|
+
401: `Unauthorized`,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Update the current user's profile
|
|
28
|
+
* Update the current user's profile
|
|
29
|
+
* @param xApiVersion
|
|
30
|
+
* @param requestBody
|
|
31
|
+
* @returns EmptyEnvelope OK
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
static updateCurrentUserAsync(xApiVersion, requestBody) {
|
|
35
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
36
|
+
method: 'PUT',
|
|
37
|
+
url: '/api/v2/Me',
|
|
38
|
+
headers: {
|
|
39
|
+
'x-api-version': xApiVersion,
|
|
40
|
+
},
|
|
41
|
+
body: requestBody,
|
|
42
|
+
mediaType: 'application/json',
|
|
43
|
+
errors: {
|
|
44
|
+
401: `Unauthorized`,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Partially update the current user's profile
|
|
50
|
+
* Partially update the current user's profile
|
|
51
|
+
* @param xApiVersion
|
|
52
|
+
* @param requestBody
|
|
53
|
+
* @returns EmptyEnvelope OK
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static patchCurrentUserAsync(xApiVersion, requestBody) {
|
|
57
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
58
|
+
method: 'PATCH',
|
|
59
|
+
url: '/api/v2/Me',
|
|
60
|
+
headers: {
|
|
61
|
+
'x-api-version': xApiVersion,
|
|
62
|
+
},
|
|
63
|
+
body: requestBody,
|
|
64
|
+
mediaType: 'application/json',
|
|
65
|
+
errors: {
|
|
66
|
+
401: `Unauthorized`,
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Get the current user's extended profile
|
|
72
|
+
* Get the current user's extended profile
|
|
73
|
+
* @param xApiVersion
|
|
74
|
+
* @returns ExtendedUserDtoEnvelope OK
|
|
75
|
+
* @throws ApiError
|
|
76
|
+
*/
|
|
77
|
+
static getExtendedCurrentUserAsync(xApiVersion) {
|
|
78
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
79
|
+
method: 'GET',
|
|
80
|
+
url: '/api/v2/Me/Extended',
|
|
81
|
+
headers: {
|
|
82
|
+
'x-api-version': xApiVersion,
|
|
83
|
+
},
|
|
84
|
+
errors: {
|
|
85
|
+
401: `Unauthorized`,
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Get the current user's avatar
|
|
91
|
+
* Get the current user's avatar
|
|
92
|
+
* @param xApiVersion
|
|
93
|
+
* @returns binary OK
|
|
94
|
+
* @throws ApiError
|
|
95
|
+
*/
|
|
96
|
+
static getCurrentUserAvatarAsync(xApiVersion) {
|
|
97
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
98
|
+
method: 'GET',
|
|
99
|
+
url: '/api/v2/Me/Avatar',
|
|
100
|
+
headers: {
|
|
101
|
+
'x-api-version': xApiVersion,
|
|
102
|
+
},
|
|
103
|
+
errors: {
|
|
104
|
+
401: `Unauthorized`,
|
|
105
|
+
403: `Forbidden`,
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Update the current user's avatar
|
|
111
|
+
* Update the current user's avatar
|
|
112
|
+
* @param xApiVersion
|
|
113
|
+
* @param formData
|
|
114
|
+
* @returns EmptyEnvelope OK
|
|
115
|
+
* @throws ApiError
|
|
116
|
+
*/
|
|
117
|
+
static updateAvatarAsync(xApiVersion, formData) {
|
|
118
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
119
|
+
method: 'POST',
|
|
120
|
+
url: '/api/v2/Me/Avatar',
|
|
121
|
+
headers: {
|
|
122
|
+
'x-api-version': xApiVersion,
|
|
123
|
+
},
|
|
124
|
+
formData: formData,
|
|
125
|
+
mediaType: 'multipart/form-data',
|
|
126
|
+
errors: {
|
|
127
|
+
401: `Unauthorized`,
|
|
128
|
+
403: `Forbidden`,
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Get the social profiles that the current user follows
|
|
134
|
+
* Get the social profiles that the current user follows
|
|
135
|
+
* @param xApiVersion
|
|
136
|
+
* @returns FollowRecordDtoListEnvelope OK
|
|
137
|
+
* @throws ApiError
|
|
138
|
+
*/
|
|
139
|
+
static getCurrentUserFollowsAsync(xApiVersion) {
|
|
140
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
141
|
+
method: 'GET',
|
|
142
|
+
url: '/api/v2/Me/Follows',
|
|
143
|
+
headers: {
|
|
144
|
+
'x-api-version': xApiVersion,
|
|
145
|
+
},
|
|
146
|
+
errors: {
|
|
147
|
+
401: `Unauthorized`,
|
|
148
|
+
},
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Count the social profiles that the current user follows
|
|
153
|
+
* Count the social profiles that the current user follows
|
|
154
|
+
* @param xApiVersion
|
|
155
|
+
* @returns Int32Envelope OK
|
|
156
|
+
* @throws ApiError
|
|
157
|
+
*/
|
|
158
|
+
static countCurrentUserFollowsAsync(xApiVersion) {
|
|
159
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
160
|
+
method: 'GET',
|
|
161
|
+
url: '/api/v2/Me/Follows/Count',
|
|
162
|
+
headers: {
|
|
163
|
+
'x-api-version': xApiVersion,
|
|
164
|
+
},
|
|
165
|
+
errors: {
|
|
166
|
+
401: `Unauthorized`,
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Get the social profiles that follow the current user
|
|
172
|
+
* Get the social profiles that follow the current user
|
|
173
|
+
* @param xApiVersion
|
|
174
|
+
* @returns FollowRecordDtoListEnvelope OK
|
|
175
|
+
* @throws ApiError
|
|
176
|
+
*/
|
|
177
|
+
static getCurrentUserFollowersAsync(xApiVersion) {
|
|
178
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
179
|
+
method: 'GET',
|
|
180
|
+
url: '/api/v2/Me/Followers',
|
|
181
|
+
headers: {
|
|
182
|
+
'x-api-version': xApiVersion,
|
|
183
|
+
},
|
|
184
|
+
errors: {
|
|
185
|
+
401: `Unauthorized`,
|
|
186
|
+
},
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Count the social profiles that follow the current user
|
|
191
|
+
* Count the social profiles that follow the current user
|
|
192
|
+
* @param xApiVersion
|
|
193
|
+
* @returns Int32Envelope OK
|
|
194
|
+
* @throws ApiError
|
|
195
|
+
*/
|
|
196
|
+
static countCurrentUserFollowersAsync(xApiVersion) {
|
|
197
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
198
|
+
method: 'GET',
|
|
199
|
+
url: '/api/v2/Me/Followers/Count',
|
|
200
|
+
headers: {
|
|
201
|
+
'x-api-version': xApiVersion,
|
|
202
|
+
},
|
|
203
|
+
errors: {
|
|
204
|
+
401: `Unauthorized`,
|
|
205
|
+
},
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Get the current user's social profile
|
|
210
|
+
* Get the current user's social profile
|
|
211
|
+
* @param xApiVersion
|
|
212
|
+
* @returns SocialProfileDtoEnvelope OK
|
|
213
|
+
* @throws ApiError
|
|
214
|
+
*/
|
|
215
|
+
static getCurrentUserSocialProfileAsync(xApiVersion) {
|
|
216
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
217
|
+
method: 'GET',
|
|
218
|
+
url: '/api/v2/Me/SocialProfile',
|
|
219
|
+
headers: {
|
|
220
|
+
'x-api-version': xApiVersion,
|
|
221
|
+
},
|
|
222
|
+
errors: {
|
|
223
|
+
401: `Unauthorized`,
|
|
224
|
+
},
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Get the current user's cart
|
|
229
|
+
* Get the current user's cart
|
|
230
|
+
* @param xApiVersion
|
|
231
|
+
* @returns CartDtoEnvelope OK
|
|
232
|
+
* @throws ApiError
|
|
233
|
+
*/
|
|
234
|
+
static getCurrentUserCartAsync(xApiVersion) {
|
|
235
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
236
|
+
method: 'GET',
|
|
237
|
+
url: '/api/v2/Me/Cart',
|
|
238
|
+
headers: {
|
|
239
|
+
'x-api-version': xApiVersion,
|
|
240
|
+
},
|
|
241
|
+
errors: {
|
|
242
|
+
401: `Unauthorized`,
|
|
243
|
+
},
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Get the current user's billing profile
|
|
248
|
+
* Get the current user's billing profile
|
|
249
|
+
* @param xApiVersion
|
|
250
|
+
* @returns WalletDtoEnvelope OK
|
|
251
|
+
* @throws ApiError
|
|
252
|
+
*/
|
|
253
|
+
static getCurrentUserWalletAsync(xApiVersion) {
|
|
254
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
255
|
+
method: 'GET',
|
|
256
|
+
url: '/api/v2/Me/Wallet',
|
|
257
|
+
headers: {
|
|
258
|
+
'x-api-version': xApiVersion,
|
|
259
|
+
},
|
|
260
|
+
errors: {
|
|
261
|
+
401: `Unauthorized`,
|
|
262
|
+
},
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Get the list of notifications for the current user
|
|
267
|
+
* Get the list of notifications for the current user
|
|
268
|
+
* @param xApiVersion
|
|
269
|
+
* @returns NotificationDtoListEnvelope OK
|
|
270
|
+
* @throws ApiError
|
|
271
|
+
*/
|
|
272
|
+
static getCurrentUserNotificationsAsync(xApiVersion) {
|
|
273
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
274
|
+
method: 'GET',
|
|
275
|
+
url: '/api/v2/Me/Notifications',
|
|
276
|
+
headers: {
|
|
277
|
+
'x-api-version': xApiVersion,
|
|
278
|
+
},
|
|
279
|
+
errors: {
|
|
280
|
+
401: `Unauthorized`,
|
|
281
|
+
},
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Count the notifications for the current user
|
|
286
|
+
* Count the notifications for the current user
|
|
287
|
+
* @param xApiVersion
|
|
288
|
+
* @returns Int32Envelope OK
|
|
289
|
+
* @throws ApiError
|
|
290
|
+
*/
|
|
291
|
+
static countCurrentUserNotificationsAsync(xApiVersion) {
|
|
292
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
293
|
+
method: 'GET',
|
|
294
|
+
url: '/api/v2/Me/Notifications/Count',
|
|
295
|
+
headers: {
|
|
296
|
+
'x-api-version': xApiVersion,
|
|
297
|
+
},
|
|
298
|
+
errors: {
|
|
299
|
+
401: `Unauthorized`,
|
|
300
|
+
},
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Get the settings for the current user
|
|
305
|
+
* Get the settings for the current user
|
|
306
|
+
* @param xApiVersion
|
|
307
|
+
* @returns UserSettingsDtoEnvelope OK
|
|
308
|
+
* @throws ApiError
|
|
309
|
+
*/
|
|
310
|
+
static getCurrentUserSettingsAsync(xApiVersion) {
|
|
311
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
312
|
+
method: 'GET',
|
|
313
|
+
url: '/api/v2/Me/Settings',
|
|
314
|
+
headers: {
|
|
315
|
+
'x-api-version': xApiVersion,
|
|
316
|
+
},
|
|
317
|
+
errors: {
|
|
318
|
+
401: `Unauthorized`,
|
|
319
|
+
},
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Update the settings for the current user
|
|
324
|
+
* Update the settings for the current user
|
|
325
|
+
* @param xApiVersion
|
|
326
|
+
* @param requestBody
|
|
327
|
+
* @returns UserSettingsDtoEnvelope OK
|
|
328
|
+
* @throws ApiError
|
|
329
|
+
*/
|
|
330
|
+
static updateCurrentUserSettingsAsync(xApiVersion, requestBody) {
|
|
331
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
332
|
+
method: 'PUT',
|
|
333
|
+
url: '/api/v2/Me/Settings',
|
|
334
|
+
headers: {
|
|
335
|
+
'x-api-version': xApiVersion,
|
|
336
|
+
},
|
|
337
|
+
body: requestBody,
|
|
338
|
+
mediaType: 'application/json',
|
|
339
|
+
errors: {
|
|
340
|
+
401: `Unauthorized`,
|
|
341
|
+
},
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Get the list of addresses for the current user
|
|
346
|
+
* Get the list of addresses for the current user
|
|
347
|
+
* @param xApiVersion
|
|
348
|
+
* @returns AddressDtoListEnvelope OK
|
|
349
|
+
* @throws ApiError
|
|
350
|
+
*/
|
|
351
|
+
static getCurrentUserAddressesAsync(xApiVersion) {
|
|
352
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
353
|
+
method: 'GET',
|
|
354
|
+
url: '/api/v2/Me/Addresses',
|
|
355
|
+
headers: {
|
|
356
|
+
'x-api-version': xApiVersion,
|
|
357
|
+
},
|
|
358
|
+
errors: {
|
|
359
|
+
401: `Unauthorized`,
|
|
360
|
+
},
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
exports.UserService = UserService;
|