@fenixalliance/abs-api-client 1.0.9 → 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 (75) hide show
  1. package/app/index.js +2 -2
  2. package/app/index.ts +1 -1
  3. package/clients/contentService/services/PortalsService.js +22 -11
  4. package/clients/contentService/services/PortalsService.ts +22 -11
  5. package/clients/crmService/services/ContactsService.js +86 -28
  6. package/clients/crmService/services/ContactsService.ts +86 -28
  7. package/clients/holderService/index.js +7 -3
  8. package/clients/holderService/index.ts +3 -2
  9. package/clients/holderService/services/{HolderService.js → IdentityService.js} +58 -176
  10. package/clients/holderService/services/{HolderService.ts → IdentityService.ts} +58 -200
  11. package/clients/holderService/services/TenantsService.js +151 -0
  12. package/clients/holderService/services/TenantsService.ts +176 -0
  13. package/clients/holderService/services/UserService.js +364 -0
  14. package/clients/holderService/services/UserService.ts +421 -0
  15. package/clients/storageService/services/AvatarsService.js +19 -8
  16. package/clients/storageService/services/AvatarsService.ts +19 -8
  17. package/clients/systemService/services/ModulesService.js +4 -2
  18. package/clients/systemService/services/ModulesService.ts +4 -2
  19. package/clients/systemService/services/TenantsService.js +24 -8
  20. package/clients/systemService/services/TenantsService.ts +24 -8
  21. package/clients/tenantService/index.js +1 -29
  22. package/clients/tenantService/index.ts +7 -20
  23. package/clients/{holderService/models/EmptyEnvelopeEnvelope.ts → tenantService/models/TenantIndustryDtoListEnvelope.ts} +3 -3
  24. package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamContactEnrollmentDtoListEnvelope.ts} +1 -1
  25. package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.ts → TenantTeamDtoListEnvelope.ts} +1 -1
  26. package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamEmployeeEnrollmentDtoListEnvelope.ts} +1 -1
  27. package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamProjectEnrollmentDtoListEnvelope.ts} +1 -1
  28. package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.ts → TenantTeamRecordDtoListEnvelope.ts} +1 -1
  29. package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.ts → TenantTypeDtoListEnvelope.ts} +1 -1
  30. package/clients/tenantService/services/SizesService.js +15 -5
  31. package/clients/tenantService/services/SizesService.ts +15 -5
  32. package/clients/tenantService/services/TenantsService.js +2554 -233
  33. package/clients/tenantService/services/TenantsService.ts +3004 -307
  34. package/package.json +1 -1
  35. package/schemas/contentService/schema.s.ts +850 -817
  36. package/schemas/crmService/schema.s.ts +1776 -1516
  37. package/schemas/holderService/schema.s.ts +256 -115
  38. package/schemas/storageService/schema.s.ts +439 -394
  39. package/schemas/systemService/schema.s.ts +465 -387
  40. package/schemas/tenantService/schema.s.ts +5713 -4820
  41. package/clients/tenantService/services/DepartmentsService.js +0 -161
  42. package/clients/tenantService/services/DepartmentsService.ts +0 -192
  43. package/clients/tenantService/services/EmployeeEnrollmentsService.js +0 -153
  44. package/clients/tenantService/services/EmployeeEnrollmentsService.ts +0 -181
  45. package/clients/tenantService/services/EnrollmentsService.js +0 -163
  46. package/clients/tenantService/services/EnrollmentsService.ts +0 -195
  47. package/clients/tenantService/services/IndustriesService.js +0 -161
  48. package/clients/tenantService/services/IndustriesService.ts +0 -190
  49. package/clients/tenantService/services/InvitationsService.js +0 -128
  50. package/clients/tenantService/services/InvitationsService.ts +0 -150
  51. package/clients/tenantService/services/PositionsService.js +0 -161
  52. package/clients/tenantService/services/PositionsService.ts +0 -192
  53. package/clients/tenantService/services/SegmentsService.js +0 -161
  54. package/clients/tenantService/services/SegmentsService.ts +0 -191
  55. package/clients/tenantService/services/TeamContactEnrollmentsService.js +0 -161
  56. package/clients/tenantService/services/TeamContactEnrollmentsService.ts +0 -191
  57. package/clients/tenantService/services/TeamProjectEnrollmentService.js +0 -153
  58. package/clients/tenantService/services/TeamProjectEnrollmentService.ts +0 -181
  59. package/clients/tenantService/services/TeamRecordsService.js +0 -161
  60. package/clients/tenantService/services/TeamRecordsService.ts +0 -192
  61. package/clients/tenantService/services/TeamsService.js +0 -161
  62. package/clients/tenantService/services/TeamsService.ts +0 -192
  63. package/clients/tenantService/services/TerritoriesService.js +0 -161
  64. package/clients/tenantService/services/TerritoriesService.ts +0 -192
  65. package/clients/tenantService/services/TypesService.js +0 -149
  66. package/clients/tenantService/services/TypesService.ts +0 -176
  67. package/clients/tenantService/services/UnitsService.js +0 -159
  68. package/clients/tenantService/services/UnitsService.ts +0 -190
  69. /package/clients/{holderService/models/EmptyEnvelopeEnvelope.js → tenantService/models/TenantIndustryDtoListEnvelope.js} +0 -0
  70. /package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamContactEnrollmentDtoListEnvelope.js} +0 -0
  71. /package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.js → TenantTeamDtoListEnvelope.js} +0 -0
  72. /package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamEmployeeEnrollmentDtoListEnvelope.js} +0 -0
  73. /package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamProjectEnrollmentDtoListEnvelope.js} +0 -0
  74. /package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.js → TenantTeamRecordDtoListEnvelope.js} +0 -0
  75. /package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.js → TenantTypeDtoListEnvelope.js} +0 -0
@@ -1,149 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TypesService = void 0;
4
- const OpenAPI_1 = require("../core/OpenAPI");
5
- const request_1 = require("../core/request");
6
- class TypesService {
7
- /**
8
- * @param tenantId
9
- * @param xApiVersion
10
- * @param requestBody
11
- * @returns TenantTypeDtoEnvelope Created
12
- * @throws ApiError
13
- */
14
- static postApiV2Types(tenantId, xApiVersion, requestBody) {
15
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
16
- method: 'POST',
17
- url: '/api/v2/Types',
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 TenantTypeDtoIReadOnlyCollectionEnvelope OK
36
- * @throws ApiError
37
- */
38
- static getApiV2Types(tenantId, xApiVersion) {
39
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
40
- method: 'GET',
41
- url: '/api/v2/Types',
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 tenantTypeId
56
- * @param xApiVersion
57
- * @returns TenantTypeDtoEnvelope OK
58
- * @throws ApiError
59
- */
60
- static getApiV2Types1(tenantTypeId, xApiVersion) {
61
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
62
- method: 'GET',
63
- url: '/api/v2/Types/{tenantTypeId}',
64
- path: {
65
- 'tenantTypeId': tenantTypeId,
66
- },
67
- headers: {
68
- 'x-api-version': xApiVersion,
69
- },
70
- errors: {
71
- 401: `Unauthorized`,
72
- 403: `Forbidden`,
73
- },
74
- });
75
- }
76
- /**
77
- * @param tenantTypeId
78
- * @param xApiVersion
79
- * @param requestBody
80
- * @returns TenantTypeDtoEnvelope OK
81
- * @throws ApiError
82
- */
83
- static patchApiV2Types(tenantTypeId, xApiVersion, requestBody) {
84
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
85
- method: 'PATCH',
86
- url: '/api/v2/Types/{tenantTypeId}',
87
- path: {
88
- 'tenantTypeId': tenantTypeId,
89
- },
90
- headers: {
91
- 'x-api-version': xApiVersion,
92
- },
93
- body: requestBody,
94
- mediaType: 'application/json',
95
- errors: {
96
- 401: `Unauthorized`,
97
- 403: `Forbidden`,
98
- },
99
- });
100
- }
101
- /**
102
- * @param tenantTypeId
103
- * @param xApiVersion
104
- * @returns TenantTypeDtoEnvelope OK
105
- * @throws ApiError
106
- */
107
- static deleteApiV2Types(tenantTypeId, xApiVersion) {
108
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
109
- method: 'DELETE',
110
- url: '/api/v2/Types/{tenantTypeId}',
111
- path: {
112
- 'tenantTypeId': tenantTypeId,
113
- },
114
- headers: {
115
- 'x-api-version': xApiVersion,
116
- },
117
- errors: {
118
- 401: `Unauthorized`,
119
- 403: `Forbidden`,
120
- },
121
- });
122
- }
123
- /**
124
- * @param tenantTypeId
125
- * @param xApiVersion
126
- * @param requestBody
127
- * @returns TenantTypeDtoEnvelope OK
128
- * @throws ApiError
129
- */
130
- static putApiV2Types(tenantTypeId, xApiVersion, requestBody) {
131
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
132
- method: 'PUT',
133
- url: '/api/v2/Types/{tenantTypeId}',
134
- path: {
135
- 'tenantTypeId': tenantTypeId,
136
- },
137
- headers: {
138
- 'x-api-version': xApiVersion,
139
- },
140
- body: requestBody,
141
- mediaType: 'application/json',
142
- errors: {
143
- 401: `Unauthorized`,
144
- 403: `Forbidden`,
145
- },
146
- });
147
- }
148
- }
149
- exports.TypesService = TypesService;
@@ -1,176 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { Operation } from '../models/Operation';
6
- import type { TenantTypeCreateDto } from '../models/TenantTypeCreateDto';
7
- import type { TenantTypeDtoEnvelope } from '../models/TenantTypeDtoEnvelope';
8
- import type { TenantTypeDtoIReadOnlyCollectionEnvelope } from '../models/TenantTypeDtoIReadOnlyCollectionEnvelope';
9
- import type { TenantTypeUpdateDto } from '../models/TenantTypeUpdateDto';
10
- import type { CancelablePromise } from '../core/CancelablePromise';
11
- import { OpenAPI } from '../core/OpenAPI';
12
- import { request as __request } from '../core/request';
13
- export class TypesService {
14
- /**
15
- * @param tenantId
16
- * @param xApiVersion
17
- * @param requestBody
18
- * @returns TenantTypeDtoEnvelope Created
19
- * @throws ApiError
20
- */
21
- public static postApiV2Types(
22
- tenantId: string,
23
- xApiVersion?: string,
24
- requestBody?: TenantTypeCreateDto,
25
- ): CancelablePromise<TenantTypeDtoEnvelope> {
26
- return __request(OpenAPI, {
27
- method: 'POST',
28
- url: '/api/v2/Types',
29
- headers: {
30
- 'x-api-version': xApiVersion,
31
- },
32
- query: {
33
- 'tenantId': tenantId,
34
- },
35
- body: requestBody,
36
- mediaType: 'application/json',
37
- errors: {
38
- 401: `Unauthorized`,
39
- 403: `Forbidden`,
40
- },
41
- });
42
- }
43
- /**
44
- * @param tenantId
45
- * @param xApiVersion
46
- * @returns TenantTypeDtoIReadOnlyCollectionEnvelope OK
47
- * @throws ApiError
48
- */
49
- public static getApiV2Types(
50
- tenantId: string,
51
- xApiVersion?: string,
52
- ): CancelablePromise<TenantTypeDtoIReadOnlyCollectionEnvelope> {
53
- return __request(OpenAPI, {
54
- method: 'GET',
55
- url: '/api/v2/Types',
56
- headers: {
57
- 'x-api-version': xApiVersion,
58
- },
59
- query: {
60
- 'tenantId': tenantId,
61
- },
62
- errors: {
63
- 401: `Unauthorized`,
64
- 403: `Forbidden`,
65
- },
66
- });
67
- }
68
- /**
69
- * @param tenantTypeId
70
- * @param xApiVersion
71
- * @returns TenantTypeDtoEnvelope OK
72
- * @throws ApiError
73
- */
74
- public static getApiV2Types1(
75
- tenantTypeId: string,
76
- xApiVersion?: string,
77
- ): CancelablePromise<TenantTypeDtoEnvelope> {
78
- return __request(OpenAPI, {
79
- method: 'GET',
80
- url: '/api/v2/Types/{tenantTypeId}',
81
- path: {
82
- 'tenantTypeId': tenantTypeId,
83
- },
84
- headers: {
85
- 'x-api-version': xApiVersion,
86
- },
87
- errors: {
88
- 401: `Unauthorized`,
89
- 403: `Forbidden`,
90
- },
91
- });
92
- }
93
- /**
94
- * @param tenantTypeId
95
- * @param xApiVersion
96
- * @param requestBody
97
- * @returns TenantTypeDtoEnvelope OK
98
- * @throws ApiError
99
- */
100
- public static patchApiV2Types(
101
- tenantTypeId: string,
102
- xApiVersion?: string,
103
- requestBody?: Array<Operation>,
104
- ): CancelablePromise<TenantTypeDtoEnvelope> {
105
- return __request(OpenAPI, {
106
- method: 'PATCH',
107
- url: '/api/v2/Types/{tenantTypeId}',
108
- path: {
109
- 'tenantTypeId': tenantTypeId,
110
- },
111
- headers: {
112
- 'x-api-version': xApiVersion,
113
- },
114
- body: requestBody,
115
- mediaType: 'application/json',
116
- errors: {
117
- 401: `Unauthorized`,
118
- 403: `Forbidden`,
119
- },
120
- });
121
- }
122
- /**
123
- * @param tenantTypeId
124
- * @param xApiVersion
125
- * @returns TenantTypeDtoEnvelope OK
126
- * @throws ApiError
127
- */
128
- public static deleteApiV2Types(
129
- tenantTypeId: string,
130
- xApiVersion?: string,
131
- ): CancelablePromise<TenantTypeDtoEnvelope> {
132
- return __request(OpenAPI, {
133
- method: 'DELETE',
134
- url: '/api/v2/Types/{tenantTypeId}',
135
- path: {
136
- 'tenantTypeId': tenantTypeId,
137
- },
138
- headers: {
139
- 'x-api-version': xApiVersion,
140
- },
141
- errors: {
142
- 401: `Unauthorized`,
143
- 403: `Forbidden`,
144
- },
145
- });
146
- }
147
- /**
148
- * @param tenantTypeId
149
- * @param xApiVersion
150
- * @param requestBody
151
- * @returns TenantTypeDtoEnvelope OK
152
- * @throws ApiError
153
- */
154
- public static putApiV2Types(
155
- tenantTypeId: string,
156
- xApiVersion?: string,
157
- requestBody?: TenantTypeUpdateDto,
158
- ): CancelablePromise<TenantTypeDtoEnvelope> {
159
- return __request(OpenAPI, {
160
- method: 'PUT',
161
- url: '/api/v2/Types/{tenantTypeId}',
162
- path: {
163
- 'tenantTypeId': tenantTypeId,
164
- },
165
- headers: {
166
- 'x-api-version': xApiVersion,
167
- },
168
- body: requestBody,
169
- mediaType: 'application/json',
170
- errors: {
171
- 401: `Unauthorized`,
172
- 403: `Forbidden`,
173
- },
174
- });
175
- }
176
- }
@@ -1,159 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnitsService = void 0;
4
- const OpenAPI_1 = require("../core/OpenAPI");
5
- const request_1 = require("../core/request");
6
- class UnitsService {
7
- /**
8
- * @param tenantId
9
- * @param xApiVersion
10
- * @param requestBody
11
- * @returns EmptyEnvelope Created
12
- * @throws ApiError
13
- */
14
- static postApiV2Units(tenantId, xApiVersion, requestBody) {
15
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
16
- method: 'POST',
17
- url: '/api/v2/Units',
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 TenantUnitDtoListEnvelope OK
36
- * @throws ApiError
37
- */
38
- static getApiV2Units(tenantId, xApiVersion) {
39
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
40
- method: 'GET',
41
- url: '/api/v2/Units',
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 tenantId
56
- * @param tenantUnitId
57
- * @param xApiVersion
58
- * @param requestBody
59
- * @returns EmptyEnvelope OK
60
- * @throws ApiError
61
- */
62
- static patchApiV2Units(tenantId, tenantUnitId, xApiVersion, requestBody) {
63
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
64
- method: 'PATCH',
65
- url: '/api/v2/Units',
66
- headers: {
67
- 'x-api-version': xApiVersion,
68
- },
69
- query: {
70
- 'tenantId': tenantId,
71
- 'tenantUnitId': tenantUnitId,
72
- },
73
- body: requestBody,
74
- mediaType: 'application/json',
75
- errors: {
76
- 401: `Unauthorized`,
77
- 403: `Forbidden`,
78
- },
79
- });
80
- }
81
- /**
82
- * @param tenantUnitId
83
- * @param xApiVersion
84
- * @returns TenantUnitDtoEnvelope OK
85
- * @throws ApiError
86
- */
87
- static getApiV2Units1(tenantUnitId, xApiVersion) {
88
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
89
- method: 'GET',
90
- url: '/api/v2/Units/{tenantUnitId}',
91
- path: {
92
- 'tenantUnitId': tenantUnitId,
93
- },
94
- headers: {
95
- 'x-api-version': xApiVersion,
96
- },
97
- errors: {
98
- 401: `Unauthorized`,
99
- 403: `Forbidden`,
100
- },
101
- });
102
- }
103
- /**
104
- * @param tenantId
105
- * @param tenantUnitId
106
- * @param xApiVersion
107
- * @param requestBody
108
- * @returns EmptyEnvelope OK
109
- * @throws ApiError
110
- */
111
- static putApiV2Units(tenantId, tenantUnitId, xApiVersion, requestBody) {
112
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
113
- method: 'PUT',
114
- url: '/api/v2/Units/{tenantUnitId}',
115
- path: {
116
- 'tenantUnitId': tenantUnitId,
117
- },
118
- headers: {
119
- 'x-api-version': xApiVersion,
120
- },
121
- query: {
122
- 'tenantId': tenantId,
123
- },
124
- body: requestBody,
125
- mediaType: 'application/json',
126
- errors: {
127
- 401: `Unauthorized`,
128
- 403: `Forbidden`,
129
- },
130
- });
131
- }
132
- /**
133
- * @param tenantId
134
- * @param tenantUnitId
135
- * @param xApiVersion
136
- * @returns EmptyEnvelope OK
137
- * @throws ApiError
138
- */
139
- static deleteApiV2Units(tenantId, tenantUnitId, xApiVersion) {
140
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
141
- method: 'DELETE',
142
- url: '/api/v2/Units/{tenantUnitId}',
143
- path: {
144
- 'tenantUnitId': tenantUnitId,
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
- exports.UnitsService = UnitsService;
@@ -1,190 +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 { TenantUnitCreateDto } from '../models/TenantUnitCreateDto';
8
- import type { TenantUnitDtoEnvelope } from '../models/TenantUnitDtoEnvelope';
9
- import type { TenantUnitDtoListEnvelope } from '../models/TenantUnitDtoListEnvelope';
10
- import type { TenantUnitUpdateDto } from '../models/TenantUnitUpdateDto';
11
- import type { CancelablePromise } from '../core/CancelablePromise';
12
- import { OpenAPI } from '../core/OpenAPI';
13
- import { request as __request } from '../core/request';
14
- export class UnitsService {
15
- /**
16
- * @param tenantId
17
- * @param xApiVersion
18
- * @param requestBody
19
- * @returns EmptyEnvelope Created
20
- * @throws ApiError
21
- */
22
- public static postApiV2Units(
23
- tenantId: string,
24
- xApiVersion?: string,
25
- requestBody?: TenantUnitCreateDto,
26
- ): CancelablePromise<EmptyEnvelope> {
27
- return __request(OpenAPI, {
28
- method: 'POST',
29
- url: '/api/v2/Units',
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 TenantUnitDtoListEnvelope OK
48
- * @throws ApiError
49
- */
50
- public static getApiV2Units(
51
- tenantId: string,
52
- xApiVersion?: string,
53
- ): CancelablePromise<TenantUnitDtoListEnvelope> {
54
- return __request(OpenAPI, {
55
- method: 'GET',
56
- url: '/api/v2/Units',
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 tenantId
71
- * @param tenantUnitId
72
- * @param xApiVersion
73
- * @param requestBody
74
- * @returns EmptyEnvelope OK
75
- * @throws ApiError
76
- */
77
- public static patchApiV2Units(
78
- tenantId: string,
79
- tenantUnitId: string,
80
- xApiVersion?: string,
81
- requestBody?: Array<Operation>,
82
- ): CancelablePromise<EmptyEnvelope> {
83
- return __request(OpenAPI, {
84
- method: 'PATCH',
85
- url: '/api/v2/Units',
86
- headers: {
87
- 'x-api-version': xApiVersion,
88
- },
89
- query: {
90
- 'tenantId': tenantId,
91
- 'tenantUnitId': tenantUnitId,
92
- },
93
- body: requestBody,
94
- mediaType: 'application/json',
95
- errors: {
96
- 401: `Unauthorized`,
97
- 403: `Forbidden`,
98
- },
99
- });
100
- }
101
- /**
102
- * @param tenantUnitId
103
- * @param xApiVersion
104
- * @returns TenantUnitDtoEnvelope OK
105
- * @throws ApiError
106
- */
107
- public static getApiV2Units1(
108
- tenantUnitId: string,
109
- xApiVersion?: string,
110
- ): CancelablePromise<TenantUnitDtoEnvelope> {
111
- return __request(OpenAPI, {
112
- method: 'GET',
113
- url: '/api/v2/Units/{tenantUnitId}',
114
- path: {
115
- 'tenantUnitId': tenantUnitId,
116
- },
117
- headers: {
118
- 'x-api-version': xApiVersion,
119
- },
120
- errors: {
121
- 401: `Unauthorized`,
122
- 403: `Forbidden`,
123
- },
124
- });
125
- }
126
- /**
127
- * @param tenantId
128
- * @param tenantUnitId
129
- * @param xApiVersion
130
- * @param requestBody
131
- * @returns EmptyEnvelope OK
132
- * @throws ApiError
133
- */
134
- public static putApiV2Units(
135
- tenantId: string,
136
- tenantUnitId: string,
137
- xApiVersion?: string,
138
- requestBody?: TenantUnitUpdateDto,
139
- ): CancelablePromise<EmptyEnvelope> {
140
- return __request(OpenAPI, {
141
- method: 'PUT',
142
- url: '/api/v2/Units/{tenantUnitId}',
143
- path: {
144
- 'tenantUnitId': tenantUnitId,
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
- * @param tenantId
162
- * @param tenantUnitId
163
- * @param xApiVersion
164
- * @returns EmptyEnvelope OK
165
- * @throws ApiError
166
- */
167
- public static deleteApiV2Units(
168
- tenantId: string,
169
- tenantUnitId: string,
170
- xApiVersion?: string,
171
- ): CancelablePromise<EmptyEnvelope> {
172
- return __request(OpenAPI, {
173
- method: 'DELETE',
174
- url: '/api/v2/Units/{tenantUnitId}',
175
- path: {
176
- 'tenantUnitId': tenantUnitId,
177
- },
178
- headers: {
179
- 'x-api-version': xApiVersion,
180
- },
181
- query: {
182
- 'tenantId': tenantId,
183
- },
184
- errors: {
185
- 401: `Unauthorized`,
186
- 403: `Forbidden`,
187
- },
188
- });
189
- }
190
- }