@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,150 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { TenantDtoEnvelope } from '../models/TenantDtoEnvelope';
|
|
6
|
-
import type { TenantInvitationCreateDto } from '../models/TenantInvitationCreateDto';
|
|
7
|
-
import type { TenantInvitationDtoEnvelope } from '../models/TenantInvitationDtoEnvelope';
|
|
8
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
9
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
10
|
-
import { request as __request } from '../core/request';
|
|
11
|
-
export class InvitationsService {
|
|
12
|
-
/**
|
|
13
|
-
* @param invitationId
|
|
14
|
-
* @param xApiVersion
|
|
15
|
-
* @param requestBody
|
|
16
|
-
* @returns TenantInvitationDtoEnvelope OK
|
|
17
|
-
* @throws ApiError
|
|
18
|
-
*/
|
|
19
|
-
public static getApiV2TenantServiceInvitations(
|
|
20
|
-
invitationId: string,
|
|
21
|
-
xApiVersion?: string,
|
|
22
|
-
requestBody?: string,
|
|
23
|
-
): CancelablePromise<TenantInvitationDtoEnvelope> {
|
|
24
|
-
return __request(OpenAPI, {
|
|
25
|
-
method: 'GET',
|
|
26
|
-
url: '/api/v2/TenantService/Invitations/{invitationId}',
|
|
27
|
-
path: {
|
|
28
|
-
'invitationId': invitationId,
|
|
29
|
-
},
|
|
30
|
-
headers: {
|
|
31
|
-
'x-api-version': xApiVersion,
|
|
32
|
-
},
|
|
33
|
-
body: requestBody,
|
|
34
|
-
mediaType: 'application/json',
|
|
35
|
-
errors: {
|
|
36
|
-
401: `Unauthorized`,
|
|
37
|
-
403: `Forbidden`,
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @param invitationId
|
|
43
|
-
* @param tenantId
|
|
44
|
-
* @param xApiVersion
|
|
45
|
-
* @returns TenantDtoEnvelope OK
|
|
46
|
-
* @throws ApiError
|
|
47
|
-
*/
|
|
48
|
-
public static deleteApiV2TenantServiceInvitations(
|
|
49
|
-
invitationId: string,
|
|
50
|
-
tenantId: string,
|
|
51
|
-
xApiVersion?: string,
|
|
52
|
-
): CancelablePromise<TenantDtoEnvelope> {
|
|
53
|
-
return __request(OpenAPI, {
|
|
54
|
-
method: 'DELETE',
|
|
55
|
-
url: '/api/v2/TenantService/Invitations/{invitationId}',
|
|
56
|
-
path: {
|
|
57
|
-
'invitationId': invitationId,
|
|
58
|
-
},
|
|
59
|
-
headers: {
|
|
60
|
-
'x-api-version': xApiVersion,
|
|
61
|
-
},
|
|
62
|
-
query: {
|
|
63
|
-
'tenantId': tenantId,
|
|
64
|
-
},
|
|
65
|
-
errors: {
|
|
66
|
-
401: `Unauthorized`,
|
|
67
|
-
403: `Forbidden`,
|
|
68
|
-
},
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* @param tenantId
|
|
73
|
-
* @param xApiVersion
|
|
74
|
-
* @param requestBody
|
|
75
|
-
* @returns TenantDtoEnvelope OK
|
|
76
|
-
* @throws ApiError
|
|
77
|
-
*/
|
|
78
|
-
public static postApiV2TenantServiceInvitations(
|
|
79
|
-
tenantId: string,
|
|
80
|
-
xApiVersion?: string,
|
|
81
|
-
requestBody?: TenantInvitationCreateDto,
|
|
82
|
-
): CancelablePromise<TenantDtoEnvelope> {
|
|
83
|
-
return __request(OpenAPI, {
|
|
84
|
-
method: 'POST',
|
|
85
|
-
url: '/api/v2/TenantService/Invitations',
|
|
86
|
-
headers: {
|
|
87
|
-
'x-api-version': xApiVersion,
|
|
88
|
-
},
|
|
89
|
-
query: {
|
|
90
|
-
'tenantId': tenantId,
|
|
91
|
-
},
|
|
92
|
-
body: requestBody,
|
|
93
|
-
mediaType: 'application/json',
|
|
94
|
-
errors: {
|
|
95
|
-
401: `Unauthorized`,
|
|
96
|
-
403: `Forbidden`,
|
|
97
|
-
},
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* @param invitationId
|
|
102
|
-
* @param xApiVersion
|
|
103
|
-
* @returns TenantDtoEnvelope OK
|
|
104
|
-
* @throws ApiError
|
|
105
|
-
*/
|
|
106
|
-
public static postApiV2TenantServiceInvitationsDecline(
|
|
107
|
-
invitationId: string,
|
|
108
|
-
xApiVersion?: string,
|
|
109
|
-
): CancelablePromise<TenantDtoEnvelope> {
|
|
110
|
-
return __request(OpenAPI, {
|
|
111
|
-
method: 'POST',
|
|
112
|
-
url: '/api/v2/TenantService/Invitations/{invitationId}/Decline',
|
|
113
|
-
path: {
|
|
114
|
-
'invitationId': invitationId,
|
|
115
|
-
},
|
|
116
|
-
headers: {
|
|
117
|
-
'x-api-version': xApiVersion,
|
|
118
|
-
},
|
|
119
|
-
errors: {
|
|
120
|
-
401: `Unauthorized`,
|
|
121
|
-
403: `Forbidden`,
|
|
122
|
-
},
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* @param invitationId
|
|
127
|
-
* @param xApiVersion
|
|
128
|
-
* @returns TenantDtoEnvelope OK
|
|
129
|
-
* @throws ApiError
|
|
130
|
-
*/
|
|
131
|
-
public static postApiV2TenantServiceInvitationsAccept(
|
|
132
|
-
invitationId: string,
|
|
133
|
-
xApiVersion?: string,
|
|
134
|
-
): CancelablePromise<TenantDtoEnvelope> {
|
|
135
|
-
return __request(OpenAPI, {
|
|
136
|
-
method: 'POST',
|
|
137
|
-
url: '/api/v2/TenantService/Invitations/{invitationId}/Accept',
|
|
138
|
-
path: {
|
|
139
|
-
'invitationId': invitationId,
|
|
140
|
-
},
|
|
141
|
-
headers: {
|
|
142
|
-
'x-api-version': xApiVersion,
|
|
143
|
-
},
|
|
144
|
-
errors: {
|
|
145
|
-
401: `Unauthorized`,
|
|
146
|
-
403: `Forbidden`,
|
|
147
|
-
},
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PositionsService = void 0;
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class PositionsService {
|
|
7
|
-
/**
|
|
8
|
-
* @param tenantId
|
|
9
|
-
* @param xApiVersion
|
|
10
|
-
* @param requestBody
|
|
11
|
-
* @returns EmptyEnvelope Created
|
|
12
|
-
* @throws ApiError
|
|
13
|
-
*/
|
|
14
|
-
static postApiV2Positions(tenantId, xApiVersion, requestBody) {
|
|
15
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
16
|
-
method: 'POST',
|
|
17
|
-
url: '/api/v2/Positions',
|
|
18
|
-
headers: {
|
|
19
|
-
'x-api-version': xApiVersion,
|
|
20
|
-
},
|
|
21
|
-
query: {
|
|
22
|
-
'tenantId': tenantId,
|
|
23
|
-
},
|
|
24
|
-
body: requestBody,
|
|
25
|
-
mediaType: 'application/json',
|
|
26
|
-
errors: {
|
|
27
|
-
401: `Unauthorized`,
|
|
28
|
-
403: `Forbidden`,
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @param tenantId
|
|
34
|
-
* @param xApiVersion
|
|
35
|
-
* @returns TenantPositionDtoListEnvelope OK
|
|
36
|
-
* @throws ApiError
|
|
37
|
-
*/
|
|
38
|
-
static getApiV2Positions(tenantId, xApiVersion) {
|
|
39
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
40
|
-
method: 'GET',
|
|
41
|
-
url: '/api/v2/Positions',
|
|
42
|
-
headers: {
|
|
43
|
-
'x-api-version': xApiVersion,
|
|
44
|
-
},
|
|
45
|
-
query: {
|
|
46
|
-
'tenantId': tenantId,
|
|
47
|
-
},
|
|
48
|
-
errors: {
|
|
49
|
-
401: `Unauthorized`,
|
|
50
|
-
403: `Forbidden`,
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* @param tenantPositionId
|
|
56
|
-
* @param xApiVersion
|
|
57
|
-
* @returns TenantPositionDtoEnvelope OK
|
|
58
|
-
* @throws ApiError
|
|
59
|
-
*/
|
|
60
|
-
static getApiV2Positions1(tenantPositionId, xApiVersion) {
|
|
61
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
62
|
-
method: 'GET',
|
|
63
|
-
url: '/api/v2/Positions/{tenantPositionId}',
|
|
64
|
-
path: {
|
|
65
|
-
'tenantPositionId': tenantPositionId,
|
|
66
|
-
},
|
|
67
|
-
headers: {
|
|
68
|
-
'x-api-version': xApiVersion,
|
|
69
|
-
},
|
|
70
|
-
errors: {
|
|
71
|
-
401: `Unauthorized`,
|
|
72
|
-
403: `Forbidden`,
|
|
73
|
-
},
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* @param tenantId
|
|
78
|
-
* @param tenantPositionId
|
|
79
|
-
* @param xApiVersion
|
|
80
|
-
* @param requestBody
|
|
81
|
-
* @returns EmptyEnvelope OK
|
|
82
|
-
* @throws ApiError
|
|
83
|
-
*/
|
|
84
|
-
static putApiV2Positions(tenantId, tenantPositionId, xApiVersion, requestBody) {
|
|
85
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
86
|
-
method: 'PUT',
|
|
87
|
-
url: '/api/v2/Positions/{tenantPositionId}',
|
|
88
|
-
path: {
|
|
89
|
-
'tenantPositionId': tenantPositionId,
|
|
90
|
-
},
|
|
91
|
-
headers: {
|
|
92
|
-
'x-api-version': xApiVersion,
|
|
93
|
-
},
|
|
94
|
-
query: {
|
|
95
|
-
'tenantId': tenantId,
|
|
96
|
-
},
|
|
97
|
-
body: requestBody,
|
|
98
|
-
mediaType: 'application/json',
|
|
99
|
-
errors: {
|
|
100
|
-
401: `Unauthorized`,
|
|
101
|
-
403: `Forbidden`,
|
|
102
|
-
},
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* @param tenantId
|
|
107
|
-
* @param tenantPositionId
|
|
108
|
-
* @param xApiVersion
|
|
109
|
-
* @returns EmptyEnvelope OK
|
|
110
|
-
* @throws ApiError
|
|
111
|
-
*/
|
|
112
|
-
static deleteApiV2Positions(tenantId, tenantPositionId, xApiVersion) {
|
|
113
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
114
|
-
method: 'DELETE',
|
|
115
|
-
url: '/api/v2/Positions/{tenantPositionId}',
|
|
116
|
-
path: {
|
|
117
|
-
'tenantPositionId': tenantPositionId,
|
|
118
|
-
},
|
|
119
|
-
headers: {
|
|
120
|
-
'x-api-version': xApiVersion,
|
|
121
|
-
},
|
|
122
|
-
query: {
|
|
123
|
-
'tenantId': tenantId,
|
|
124
|
-
},
|
|
125
|
-
errors: {
|
|
126
|
-
401: `Unauthorized`,
|
|
127
|
-
403: `Forbidden`,
|
|
128
|
-
},
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* @param tenantId
|
|
133
|
-
* @param tenantPositionId
|
|
134
|
-
* @param xApiVersion
|
|
135
|
-
* @param requestBody
|
|
136
|
-
* @returns EmptyEnvelope OK
|
|
137
|
-
* @throws ApiError
|
|
138
|
-
*/
|
|
139
|
-
static patchApiV2Positions(tenantId, tenantPositionId, xApiVersion, requestBody) {
|
|
140
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
141
|
-
method: 'PATCH',
|
|
142
|
-
url: '/api/v2/Positions/{tenantPositionId}',
|
|
143
|
-
path: {
|
|
144
|
-
'tenantPositionId': tenantPositionId,
|
|
145
|
-
},
|
|
146
|
-
headers: {
|
|
147
|
-
'x-api-version': xApiVersion,
|
|
148
|
-
},
|
|
149
|
-
query: {
|
|
150
|
-
'tenantId': tenantId,
|
|
151
|
-
},
|
|
152
|
-
body: requestBody,
|
|
153
|
-
mediaType: 'application/json',
|
|
154
|
-
errors: {
|
|
155
|
-
401: `Unauthorized`,
|
|
156
|
-
403: `Forbidden`,
|
|
157
|
-
},
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
exports.PositionsService = PositionsService;
|
|
@@ -1,192 +0,0 @@
|
|
|
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 { Operation } from '../models/Operation';
|
|
7
|
-
import type { TenantPositionCreateDto } from '../models/TenantPositionCreateDto';
|
|
8
|
-
import type { TenantPositionDtoEnvelope } from '../models/TenantPositionDtoEnvelope';
|
|
9
|
-
import type { TenantPositionDtoListEnvelope } from '../models/TenantPositionDtoListEnvelope';
|
|
10
|
-
import type { TenantPositionUpdateDto } from '../models/TenantPositionUpdateDto';
|
|
11
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
12
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
13
|
-
import { request as __request } from '../core/request';
|
|
14
|
-
export class PositionsService {
|
|
15
|
-
/**
|
|
16
|
-
* @param tenantId
|
|
17
|
-
* @param xApiVersion
|
|
18
|
-
* @param requestBody
|
|
19
|
-
* @returns EmptyEnvelope Created
|
|
20
|
-
* @throws ApiError
|
|
21
|
-
*/
|
|
22
|
-
public static postApiV2Positions(
|
|
23
|
-
tenantId: string,
|
|
24
|
-
xApiVersion?: string,
|
|
25
|
-
requestBody?: TenantPositionCreateDto,
|
|
26
|
-
): CancelablePromise<EmptyEnvelope> {
|
|
27
|
-
return __request(OpenAPI, {
|
|
28
|
-
method: 'POST',
|
|
29
|
-
url: '/api/v2/Positions',
|
|
30
|
-
headers: {
|
|
31
|
-
'x-api-version': xApiVersion,
|
|
32
|
-
},
|
|
33
|
-
query: {
|
|
34
|
-
'tenantId': tenantId,
|
|
35
|
-
},
|
|
36
|
-
body: requestBody,
|
|
37
|
-
mediaType: 'application/json',
|
|
38
|
-
errors: {
|
|
39
|
-
401: `Unauthorized`,
|
|
40
|
-
403: `Forbidden`,
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @param tenantId
|
|
46
|
-
* @param xApiVersion
|
|
47
|
-
* @returns TenantPositionDtoListEnvelope OK
|
|
48
|
-
* @throws ApiError
|
|
49
|
-
*/
|
|
50
|
-
public static getApiV2Positions(
|
|
51
|
-
tenantId: string,
|
|
52
|
-
xApiVersion?: string,
|
|
53
|
-
): CancelablePromise<TenantPositionDtoListEnvelope> {
|
|
54
|
-
return __request(OpenAPI, {
|
|
55
|
-
method: 'GET',
|
|
56
|
-
url: '/api/v2/Positions',
|
|
57
|
-
headers: {
|
|
58
|
-
'x-api-version': xApiVersion,
|
|
59
|
-
},
|
|
60
|
-
query: {
|
|
61
|
-
'tenantId': tenantId,
|
|
62
|
-
},
|
|
63
|
-
errors: {
|
|
64
|
-
401: `Unauthorized`,
|
|
65
|
-
403: `Forbidden`,
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* @param tenantPositionId
|
|
71
|
-
* @param xApiVersion
|
|
72
|
-
* @returns TenantPositionDtoEnvelope OK
|
|
73
|
-
* @throws ApiError
|
|
74
|
-
*/
|
|
75
|
-
public static getApiV2Positions1(
|
|
76
|
-
tenantPositionId: string,
|
|
77
|
-
xApiVersion?: string,
|
|
78
|
-
): CancelablePromise<TenantPositionDtoEnvelope> {
|
|
79
|
-
return __request(OpenAPI, {
|
|
80
|
-
method: 'GET',
|
|
81
|
-
url: '/api/v2/Positions/{tenantPositionId}',
|
|
82
|
-
path: {
|
|
83
|
-
'tenantPositionId': tenantPositionId,
|
|
84
|
-
},
|
|
85
|
-
headers: {
|
|
86
|
-
'x-api-version': xApiVersion,
|
|
87
|
-
},
|
|
88
|
-
errors: {
|
|
89
|
-
401: `Unauthorized`,
|
|
90
|
-
403: `Forbidden`,
|
|
91
|
-
},
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* @param tenantId
|
|
96
|
-
* @param tenantPositionId
|
|
97
|
-
* @param xApiVersion
|
|
98
|
-
* @param requestBody
|
|
99
|
-
* @returns EmptyEnvelope OK
|
|
100
|
-
* @throws ApiError
|
|
101
|
-
*/
|
|
102
|
-
public static putApiV2Positions(
|
|
103
|
-
tenantId: string,
|
|
104
|
-
tenantPositionId: string,
|
|
105
|
-
xApiVersion?: string,
|
|
106
|
-
requestBody?: TenantPositionUpdateDto,
|
|
107
|
-
): CancelablePromise<EmptyEnvelope> {
|
|
108
|
-
return __request(OpenAPI, {
|
|
109
|
-
method: 'PUT',
|
|
110
|
-
url: '/api/v2/Positions/{tenantPositionId}',
|
|
111
|
-
path: {
|
|
112
|
-
'tenantPositionId': tenantPositionId,
|
|
113
|
-
},
|
|
114
|
-
headers: {
|
|
115
|
-
'x-api-version': xApiVersion,
|
|
116
|
-
},
|
|
117
|
-
query: {
|
|
118
|
-
'tenantId': tenantId,
|
|
119
|
-
},
|
|
120
|
-
body: requestBody,
|
|
121
|
-
mediaType: 'application/json',
|
|
122
|
-
errors: {
|
|
123
|
-
401: `Unauthorized`,
|
|
124
|
-
403: `Forbidden`,
|
|
125
|
-
},
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* @param tenantId
|
|
130
|
-
* @param tenantPositionId
|
|
131
|
-
* @param xApiVersion
|
|
132
|
-
* @returns EmptyEnvelope OK
|
|
133
|
-
* @throws ApiError
|
|
134
|
-
*/
|
|
135
|
-
public static deleteApiV2Positions(
|
|
136
|
-
tenantId: string,
|
|
137
|
-
tenantPositionId: string,
|
|
138
|
-
xApiVersion?: string,
|
|
139
|
-
): CancelablePromise<EmptyEnvelope> {
|
|
140
|
-
return __request(OpenAPI, {
|
|
141
|
-
method: 'DELETE',
|
|
142
|
-
url: '/api/v2/Positions/{tenantPositionId}',
|
|
143
|
-
path: {
|
|
144
|
-
'tenantPositionId': tenantPositionId,
|
|
145
|
-
},
|
|
146
|
-
headers: {
|
|
147
|
-
'x-api-version': xApiVersion,
|
|
148
|
-
},
|
|
149
|
-
query: {
|
|
150
|
-
'tenantId': tenantId,
|
|
151
|
-
},
|
|
152
|
-
errors: {
|
|
153
|
-
401: `Unauthorized`,
|
|
154
|
-
403: `Forbidden`,
|
|
155
|
-
},
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* @param tenantId
|
|
160
|
-
* @param tenantPositionId
|
|
161
|
-
* @param xApiVersion
|
|
162
|
-
* @param requestBody
|
|
163
|
-
* @returns EmptyEnvelope OK
|
|
164
|
-
* @throws ApiError
|
|
165
|
-
*/
|
|
166
|
-
public static patchApiV2Positions(
|
|
167
|
-
tenantId: string,
|
|
168
|
-
tenantPositionId: string,
|
|
169
|
-
xApiVersion?: string,
|
|
170
|
-
requestBody?: Array<Operation>,
|
|
171
|
-
): CancelablePromise<EmptyEnvelope> {
|
|
172
|
-
return __request(OpenAPI, {
|
|
173
|
-
method: 'PATCH',
|
|
174
|
-
url: '/api/v2/Positions/{tenantPositionId}',
|
|
175
|
-
path: {
|
|
176
|
-
'tenantPositionId': tenantPositionId,
|
|
177
|
-
},
|
|
178
|
-
headers: {
|
|
179
|
-
'x-api-version': xApiVersion,
|
|
180
|
-
},
|
|
181
|
-
query: {
|
|
182
|
-
'tenantId': tenantId,
|
|
183
|
-
},
|
|
184
|
-
body: requestBody,
|
|
185
|
-
mediaType: 'application/json',
|
|
186
|
-
errors: {
|
|
187
|
-
401: `Unauthorized`,
|
|
188
|
-
403: `Forbidden`,
|
|
189
|
-
},
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SegmentsService = void 0;
|
|
4
|
-
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
-
const request_1 = require("../core/request");
|
|
6
|
-
class SegmentsService {
|
|
7
|
-
/**
|
|
8
|
-
* @param tenantId
|
|
9
|
-
* @param xApiVersion
|
|
10
|
-
* @param requestBody
|
|
11
|
-
* @returns TenantSegmentDtoEnvelope Created
|
|
12
|
-
* @throws ApiError
|
|
13
|
-
*/
|
|
14
|
-
static postApiV2Segments(tenantId, xApiVersion, requestBody) {
|
|
15
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
16
|
-
method: 'POST',
|
|
17
|
-
url: '/api/v2/Segments',
|
|
18
|
-
headers: {
|
|
19
|
-
'x-api-version': xApiVersion,
|
|
20
|
-
},
|
|
21
|
-
query: {
|
|
22
|
-
'tenantId': tenantId,
|
|
23
|
-
},
|
|
24
|
-
body: requestBody,
|
|
25
|
-
mediaType: 'application/json',
|
|
26
|
-
errors: {
|
|
27
|
-
401: `Unauthorized`,
|
|
28
|
-
403: `Forbidden`,
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @param tenantId
|
|
34
|
-
* @param xApiVersion
|
|
35
|
-
* @returns TenantSegmentDtoListEnvelope OK
|
|
36
|
-
* @throws ApiError
|
|
37
|
-
*/
|
|
38
|
-
static getApiV2Segments(tenantId, xApiVersion) {
|
|
39
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
40
|
-
method: 'GET',
|
|
41
|
-
url: '/api/v2/Segments',
|
|
42
|
-
headers: {
|
|
43
|
-
'x-api-version': xApiVersion,
|
|
44
|
-
},
|
|
45
|
-
query: {
|
|
46
|
-
'tenantId': tenantId,
|
|
47
|
-
},
|
|
48
|
-
errors: {
|
|
49
|
-
401: `Unauthorized`,
|
|
50
|
-
403: `Forbidden`,
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* @param tenantSegmentId
|
|
56
|
-
* @param xApiVersion
|
|
57
|
-
* @returns TenantSegmentDtoEnvelope OK
|
|
58
|
-
* @throws ApiError
|
|
59
|
-
*/
|
|
60
|
-
static getApiV2Segments1(tenantSegmentId, xApiVersion) {
|
|
61
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
62
|
-
method: 'GET',
|
|
63
|
-
url: '/api/v2/Segments/{tenantSegmentId}',
|
|
64
|
-
path: {
|
|
65
|
-
'tenantSegmentId': tenantSegmentId,
|
|
66
|
-
},
|
|
67
|
-
headers: {
|
|
68
|
-
'x-api-version': xApiVersion,
|
|
69
|
-
},
|
|
70
|
-
errors: {
|
|
71
|
-
401: `Unauthorized`,
|
|
72
|
-
403: `Forbidden`,
|
|
73
|
-
},
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* @param tenantId
|
|
78
|
-
* @param tenantSegmentId
|
|
79
|
-
* @param xApiVersion
|
|
80
|
-
* @returns TenantSegmentDtoEnvelope OK
|
|
81
|
-
* @throws ApiError
|
|
82
|
-
*/
|
|
83
|
-
static deleteApiV2Segments(tenantId, tenantSegmentId, xApiVersion) {
|
|
84
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
85
|
-
method: 'DELETE',
|
|
86
|
-
url: '/api/v2/Segments/{tenantSegmentId}',
|
|
87
|
-
path: {
|
|
88
|
-
'tenantSegmentId': tenantSegmentId,
|
|
89
|
-
},
|
|
90
|
-
headers: {
|
|
91
|
-
'x-api-version': xApiVersion,
|
|
92
|
-
},
|
|
93
|
-
query: {
|
|
94
|
-
'tenantId': tenantId,
|
|
95
|
-
},
|
|
96
|
-
errors: {
|
|
97
|
-
401: `Unauthorized`,
|
|
98
|
-
403: `Forbidden`,
|
|
99
|
-
},
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* @param tenantId
|
|
104
|
-
* @param tenantSegmentId
|
|
105
|
-
* @param xApiVersion
|
|
106
|
-
* @param requestBody
|
|
107
|
-
* @returns TenantSegmentDtoEnvelope OK
|
|
108
|
-
* @throws ApiError
|
|
109
|
-
*/
|
|
110
|
-
static putApiV2Segments(tenantId, tenantSegmentId, xApiVersion, requestBody) {
|
|
111
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
112
|
-
method: 'PUT',
|
|
113
|
-
url: '/api/v2/Segments/{tenantSegmentId}',
|
|
114
|
-
path: {
|
|
115
|
-
'tenantSegmentId': tenantSegmentId,
|
|
116
|
-
},
|
|
117
|
-
headers: {
|
|
118
|
-
'x-api-version': xApiVersion,
|
|
119
|
-
},
|
|
120
|
-
query: {
|
|
121
|
-
'tenantId': tenantId,
|
|
122
|
-
},
|
|
123
|
-
body: requestBody,
|
|
124
|
-
mediaType: 'application/json',
|
|
125
|
-
errors: {
|
|
126
|
-
401: `Unauthorized`,
|
|
127
|
-
403: `Forbidden`,
|
|
128
|
-
},
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* @param tenantId
|
|
133
|
-
* @param tenantSegmentId
|
|
134
|
-
* @param xApiVersion
|
|
135
|
-
* @param requestBody
|
|
136
|
-
* @returns TenantSegmentDtoEnvelope OK
|
|
137
|
-
* @throws ApiError
|
|
138
|
-
*/
|
|
139
|
-
static patchApiV2Segments(tenantId, tenantSegmentId, xApiVersion, requestBody) {
|
|
140
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
141
|
-
method: 'PATCH',
|
|
142
|
-
url: '/api/v2/Segments/{tenantSegmentId}',
|
|
143
|
-
path: {
|
|
144
|
-
'tenantSegmentId': tenantSegmentId,
|
|
145
|
-
},
|
|
146
|
-
headers: {
|
|
147
|
-
'x-api-version': xApiVersion,
|
|
148
|
-
},
|
|
149
|
-
query: {
|
|
150
|
-
'tenantId': tenantId,
|
|
151
|
-
},
|
|
152
|
-
body: requestBody,
|
|
153
|
-
mediaType: 'application/json',
|
|
154
|
-
errors: {
|
|
155
|
-
401: `Unauthorized`,
|
|
156
|
-
403: `Forbidden`,
|
|
157
|
-
},
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
exports.SegmentsService = SegmentsService;
|