@fenixalliance/abs-api-client 1.0.9 → 1.0.11

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 (86) hide show
  1. package/app/index.js +3 -3
  2. package/app/index.ts +2 -2
  3. package/clients/cartService/index.js +7 -3
  4. package/clients/cartService/index.ts +3 -1
  5. package/clients/cartService/services/CartLinesService.js +173 -0
  6. package/clients/cartService/services/CartLinesService.ts +203 -0
  7. package/clients/cartService/services/{CartsService.js → CartService.js} +137 -44
  8. package/clients/cartService/services/{CartsService.ts → CartService.ts} +135 -42
  9. package/clients/cartService/services/ECommerceService.js +1104 -0
  10. package/clients/cartService/services/ECommerceService.ts +1289 -0
  11. package/clients/cartService/services/WishListsService.js +321 -0
  12. package/clients/cartService/services/WishListsService.ts +373 -0
  13. package/clients/contentService/services/PortalsService.js +22 -11
  14. package/clients/contentService/services/PortalsService.ts +22 -11
  15. package/clients/crmService/services/ContactsService.js +86 -28
  16. package/clients/crmService/services/ContactsService.ts +86 -28
  17. package/clients/holderService/index.js +7 -3
  18. package/clients/holderService/index.ts +3 -2
  19. package/clients/holderService/services/{HolderService.js → IdentityService.js} +58 -176
  20. package/clients/holderService/services/{HolderService.ts → IdentityService.ts} +58 -200
  21. package/clients/holderService/services/TenantsService.js +151 -0
  22. package/clients/holderService/services/TenantsService.ts +176 -0
  23. package/clients/holderService/services/UserService.js +364 -0
  24. package/clients/holderService/services/UserService.ts +421 -0
  25. package/clients/storageService/services/AvatarsService.js +19 -8
  26. package/clients/storageService/services/AvatarsService.ts +19 -8
  27. package/clients/systemService/services/ModulesService.js +4 -2
  28. package/clients/systemService/services/ModulesService.ts +4 -2
  29. package/clients/systemService/services/TenantsService.js +24 -8
  30. package/clients/systemService/services/TenantsService.ts +24 -8
  31. package/clients/tenantService/index.js +1 -29
  32. package/clients/tenantService/index.ts +7 -20
  33. package/clients/{holderService/models/EmptyEnvelopeEnvelope.ts → tenantService/models/TenantIndustryDtoListEnvelope.ts} +3 -3
  34. package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamContactEnrollmentDtoListEnvelope.ts} +1 -1
  35. package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.ts → TenantTeamDtoListEnvelope.ts} +1 -1
  36. package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamEmployeeEnrollmentDtoListEnvelope.ts} +1 -1
  37. package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamProjectEnrollmentDtoListEnvelope.ts} +1 -1
  38. package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.ts → TenantTeamRecordDtoListEnvelope.ts} +1 -1
  39. package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.ts → TenantTypeDtoListEnvelope.ts} +1 -1
  40. package/clients/tenantService/services/SizesService.js +15 -5
  41. package/clients/tenantService/services/SizesService.ts +15 -5
  42. package/clients/tenantService/services/TenantsService.js +2554 -233
  43. package/clients/tenantService/services/TenantsService.ts +3004 -307
  44. package/package.json +1 -1
  45. package/schemas/cartService/schema.s.ts +2239 -1868
  46. package/schemas/contentService/schema.s.ts +850 -817
  47. package/schemas/crmService/schema.s.ts +1776 -1516
  48. package/schemas/holderService/schema.s.ts +256 -115
  49. package/schemas/storageService/schema.s.ts +439 -394
  50. package/schemas/systemService/schema.s.ts +465 -387
  51. package/schemas/tenantService/schema.s.ts +5713 -4820
  52. package/clients/tenantService/services/DepartmentsService.js +0 -161
  53. package/clients/tenantService/services/DepartmentsService.ts +0 -192
  54. package/clients/tenantService/services/EmployeeEnrollmentsService.js +0 -153
  55. package/clients/tenantService/services/EmployeeEnrollmentsService.ts +0 -181
  56. package/clients/tenantService/services/EnrollmentsService.js +0 -163
  57. package/clients/tenantService/services/EnrollmentsService.ts +0 -195
  58. package/clients/tenantService/services/IndustriesService.js +0 -161
  59. package/clients/tenantService/services/IndustriesService.ts +0 -190
  60. package/clients/tenantService/services/InvitationsService.js +0 -128
  61. package/clients/tenantService/services/InvitationsService.ts +0 -150
  62. package/clients/tenantService/services/PositionsService.js +0 -161
  63. package/clients/tenantService/services/PositionsService.ts +0 -192
  64. package/clients/tenantService/services/SegmentsService.js +0 -161
  65. package/clients/tenantService/services/SegmentsService.ts +0 -191
  66. package/clients/tenantService/services/TeamContactEnrollmentsService.js +0 -161
  67. package/clients/tenantService/services/TeamContactEnrollmentsService.ts +0 -191
  68. package/clients/tenantService/services/TeamProjectEnrollmentService.js +0 -153
  69. package/clients/tenantService/services/TeamProjectEnrollmentService.ts +0 -181
  70. package/clients/tenantService/services/TeamRecordsService.js +0 -161
  71. package/clients/tenantService/services/TeamRecordsService.ts +0 -192
  72. package/clients/tenantService/services/TeamsService.js +0 -161
  73. package/clients/tenantService/services/TeamsService.ts +0 -192
  74. package/clients/tenantService/services/TerritoriesService.js +0 -161
  75. package/clients/tenantService/services/TerritoriesService.ts +0 -192
  76. package/clients/tenantService/services/TypesService.js +0 -149
  77. package/clients/tenantService/services/TypesService.ts +0 -176
  78. package/clients/tenantService/services/UnitsService.js +0 -159
  79. package/clients/tenantService/services/UnitsService.ts +0 -190
  80. /package/clients/{holderService/models/EmptyEnvelopeEnvelope.js → tenantService/models/TenantIndustryDtoListEnvelope.js} +0 -0
  81. /package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamContactEnrollmentDtoListEnvelope.js} +0 -0
  82. /package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.js → TenantTeamDtoListEnvelope.js} +0 -0
  83. /package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamEmployeeEnrollmentDtoListEnvelope.js} +0 -0
  84. /package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamProjectEnrollmentDtoListEnvelope.js} +0 -0
  85. /package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.js → TenantTeamRecordDtoListEnvelope.js} +0 -0
  86. /package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.js → TenantTypeDtoListEnvelope.js} +0 -0
@@ -16,10 +16,62 @@ import type { SuiteLicenseAssignmentDtoListEnvelope } from '../models/SuiteLicen
16
16
  import type { SuiteLicenseDtoListEnvelope } from '../models/SuiteLicenseDtoListEnvelope';
17
17
  import type { SuiteLicenseFeatureDtoListEnvelope } from '../models/SuiteLicenseFeatureDtoListEnvelope';
18
18
  import type { TenantCreateDto } from '../models/TenantCreateDto';
19
+ import type { TenantDepartmentCreateDto } from '../models/TenantDepartmentCreateDto';
20
+ import type { TenantDepartmentDtoEnvelope } from '../models/TenantDepartmentDtoEnvelope';
21
+ import type { TenantDepartmentDtoListEnvelope } from '../models/TenantDepartmentDtoListEnvelope';
22
+ import type { TenantDepartmentUpdateDto } from '../models/TenantDepartmentUpdateDto';
19
23
  import type { TenantDtoEnvelope } from '../models/TenantDtoEnvelope';
24
+ import type { TenantEnrollmentCreateDto } from '../models/TenantEnrollmentCreateDto';
25
+ import type { TenantEnrollmentUpdateDto } from '../models/TenantEnrollmentUpdateDto';
20
26
  import type { TenantEnrolmentDtoEnvelope } from '../models/TenantEnrolmentDtoEnvelope';
21
27
  import type { TenantEnrolmentDtoListEnvelope } from '../models/TenantEnrolmentDtoListEnvelope';
28
+ import type { TenantIndustryCreateDto } from '../models/TenantIndustryCreateDto';
29
+ import type { TenantIndustryDtoEnvelope } from '../models/TenantIndustryDtoEnvelope';
30
+ import type { TenantIndustryDtoListEnvelope } from '../models/TenantIndustryDtoListEnvelope';
31
+ import type { TenantIndustryUpdateDto } from '../models/TenantIndustryUpdateDto';
32
+ import type { TenantInvitationCreateDto } from '../models/TenantInvitationCreateDto';
33
+ import type { TenantInvitationDtoEnvelope } from '../models/TenantInvitationDtoEnvelope';
22
34
  import type { TenantInvitationDtoListEnvelope } from '../models/TenantInvitationDtoListEnvelope';
35
+ import type { TenantPositionCreateDto } from '../models/TenantPositionCreateDto';
36
+ import type { TenantPositionDtoEnvelope } from '../models/TenantPositionDtoEnvelope';
37
+ import type { TenantPositionDtoListEnvelope } from '../models/TenantPositionDtoListEnvelope';
38
+ import type { TenantPositionUpdateDto } from '../models/TenantPositionUpdateDto';
39
+ import type { TenantSegmentCreateDto } from '../models/TenantSegmentCreateDto';
40
+ import type { TenantSegmentDtoEnvelope } from '../models/TenantSegmentDtoEnvelope';
41
+ import type { TenantSegmentDtoListEnvelope } from '../models/TenantSegmentDtoListEnvelope';
42
+ import type { TenantSegmentUpdateDto } from '../models/TenantSegmentUpdateDto';
43
+ import type { TenantTeamContactEnrollmentCreateDto } from '../models/TenantTeamContactEnrollmentCreateDto';
44
+ import type { TenantTeamContactEnrollmentDtoEnvelope } from '../models/TenantTeamContactEnrollmentDtoEnvelope';
45
+ import type { TenantTeamContactEnrollmentDtoListEnvelope } from '../models/TenantTeamContactEnrollmentDtoListEnvelope';
46
+ import type { TenantTeamContactEnrollmentUpdateDto } from '../models/TenantTeamContactEnrollmentUpdateDto';
47
+ import type { TenantTeamCreateDto } from '../models/TenantTeamCreateDto';
48
+ import type { TenantTeamDtoEnvelope } from '../models/TenantTeamDtoEnvelope';
49
+ import type { TenantTeamDtoListEnvelope } from '../models/TenantTeamDtoListEnvelope';
50
+ import type { TenantTeamEmployeeEnrollmentCreateDto } from '../models/TenantTeamEmployeeEnrollmentCreateDto';
51
+ import type { TenantTeamEmployeeEnrollmentDtoEnvelope } from '../models/TenantTeamEmployeeEnrollmentDtoEnvelope';
52
+ import type { TenantTeamEmployeeEnrollmentDtoListEnvelope } from '../models/TenantTeamEmployeeEnrollmentDtoListEnvelope';
53
+ import type { TenantTeamEmployeeEnrollmentUpdateDto } from '../models/TenantTeamEmployeeEnrollmentUpdateDto';
54
+ import type { TenantTeamProjectEnrollmentCreateDto } from '../models/TenantTeamProjectEnrollmentCreateDto';
55
+ import type { TenantTeamProjectEnrollmentDtoEnvelope } from '../models/TenantTeamProjectEnrollmentDtoEnvelope';
56
+ import type { TenantTeamProjectEnrollmentDtoListEnvelope } from '../models/TenantTeamProjectEnrollmentDtoListEnvelope';
57
+ import type { TenantTeamProjectEnrollmentUpdateDto } from '../models/TenantTeamProjectEnrollmentUpdateDto';
58
+ import type { TenantTeamRecordCreateDto } from '../models/TenantTeamRecordCreateDto';
59
+ import type { TenantTeamRecordDtoEnvelope } from '../models/TenantTeamRecordDtoEnvelope';
60
+ import type { TenantTeamRecordDtoListEnvelope } from '../models/TenantTeamRecordDtoListEnvelope';
61
+ import type { TenantTeamRecordUpdateDto } from '../models/TenantTeamRecordUpdateDto';
62
+ import type { TenantTeamUpdateDto } from '../models/TenantTeamUpdateDto';
63
+ import type { TenantTerritoryCreateDto } from '../models/TenantTerritoryCreateDto';
64
+ import type { TenantTerritoryDtoEnvelope } from '../models/TenantTerritoryDtoEnvelope';
65
+ import type { TenantTerritoryDtoListEnvelope } from '../models/TenantTerritoryDtoListEnvelope';
66
+ import type { TenantTerritoryUpdateDto } from '../models/TenantTerritoryUpdateDto';
67
+ import type { TenantTypeCreateDto } from '../models/TenantTypeCreateDto';
68
+ import type { TenantTypeDtoEnvelope } from '../models/TenantTypeDtoEnvelope';
69
+ import type { TenantTypeDtoListEnvelope } from '../models/TenantTypeDtoListEnvelope';
70
+ import type { TenantTypeUpdateDto } from '../models/TenantTypeUpdateDto';
71
+ import type { TenantUnitCreateDto } from '../models/TenantUnitCreateDto';
72
+ import type { TenantUnitDtoEnvelope } from '../models/TenantUnitDtoEnvelope';
73
+ import type { TenantUnitDtoListEnvelope } from '../models/TenantUnitDtoListEnvelope';
74
+ import type { TenantUnitUpdateDto } from '../models/TenantUnitUpdateDto';
23
75
  import type { TenantUpdateDto } from '../models/TenantUpdateDto';
24
76
  import type { UserDtoListEnvelope } from '../models/UserDtoListEnvelope';
25
77
  import type { WalletDtoEnvelope } from '../models/WalletDtoEnvelope';
@@ -29,19 +81,30 @@ import { OpenAPI } from '../core/OpenAPI';
29
81
  import { request as __request } from '../core/request';
30
82
  export class TenantsService {
31
83
  /**
84
+ * Create a new tenant department
85
+ * Create a new tenant department
86
+ * @param tenantId
32
87
  * @param xApiVersion
33
- * @returns TenantDtoEnvelope OK
88
+ * @param requestBody
89
+ * @returns EmptyEnvelope Created
34
90
  * @throws ApiError
35
91
  */
36
- public static getApiV2TenantsRoot(
92
+ public static createTenantDepartment(
93
+ tenantId: string,
37
94
  xApiVersion?: string,
38
- ): CancelablePromise<TenantDtoEnvelope> {
95
+ requestBody?: TenantDepartmentCreateDto,
96
+ ): CancelablePromise<EmptyEnvelope> {
39
97
  return __request(OpenAPI, {
40
- method: 'GET',
41
- url: '/api/v2/Tenants/Root',
98
+ method: 'POST',
99
+ url: '/api/v2/Departments',
42
100
  headers: {
43
101
  'x-api-version': xApiVersion,
44
102
  },
103
+ query: {
104
+ 'tenantId': tenantId,
105
+ },
106
+ body: requestBody,
107
+ mediaType: 'application/json',
45
108
  errors: {
46
109
  401: `Unauthorized`,
47
110
  403: `Forbidden`,
@@ -49,18 +112,20 @@ export class TenantsService {
49
112
  });
50
113
  }
51
114
  /**
115
+ * Retrieve a list of tenant departments
116
+ * Retrieve a list of tenant departments
52
117
  * @param tenantId
53
118
  * @param xApiVersion
54
- * @returns TenantDtoEnvelope OK
119
+ * @returns TenantDepartmentDtoListEnvelope OK
55
120
  * @throws ApiError
56
121
  */
57
- public static getApiV2TenantsCurrent(
122
+ public static getTenantDepartments(
58
123
  tenantId: string,
59
124
  xApiVersion?: string,
60
- ): CancelablePromise<TenantDtoEnvelope> {
125
+ ): CancelablePromise<TenantDepartmentDtoListEnvelope> {
61
126
  return __request(OpenAPI, {
62
127
  method: 'GET',
63
- url: '/api/v2/Tenants/Current',
128
+ url: '/api/v2/Departments',
64
129
  headers: {
65
130
  'x-api-version': xApiVersion,
66
131
  },
@@ -74,20 +139,22 @@ export class TenantsService {
74
139
  });
75
140
  }
76
141
  /**
77
- * @param tenantId
142
+ * Retrieve a single tenant department by its ID
143
+ * Retrieve a single tenant department by its ID
144
+ * @param tenantDepartmentId
78
145
  * @param xApiVersion
79
- * @returns TenantDtoEnvelope OK
146
+ * @returns TenantDepartmentDtoEnvelope OK
80
147
  * @throws ApiError
81
148
  */
82
- public static getApiV2Tenants(
83
- tenantId: string,
149
+ public static getTenantDepartmentById(
150
+ tenantDepartmentId: string,
84
151
  xApiVersion?: string,
85
- ): CancelablePromise<TenantDtoEnvelope> {
152
+ ): CancelablePromise<TenantDepartmentDtoEnvelope> {
86
153
  return __request(OpenAPI, {
87
154
  method: 'GET',
88
- url: '/api/v2/Tenants/{tenantId}',
155
+ url: '/api/v2/Departments/{tenantDepartmentId}',
89
156
  path: {
90
- 'tenantId': tenantId,
157
+ 'tenantDepartmentId': tenantDepartmentId,
91
158
  },
92
159
  headers: {
93
160
  'x-api-version': xApiVersion,
@@ -99,26 +166,33 @@ export class TenantsService {
99
166
  });
100
167
  }
101
168
  /**
169
+ * Update a tenant department
170
+ * Update a tenant department
102
171
  * @param tenantId
172
+ * @param tenantDepartmentId
103
173
  * @param xApiVersion
104
174
  * @param requestBody
105
175
  * @returns EmptyEnvelope OK
106
176
  * @throws ApiError
107
177
  */
108
- public static putApiV2Tenants(
178
+ public static updateTenantDepartment(
109
179
  tenantId: string,
180
+ tenantDepartmentId: string,
110
181
  xApiVersion?: string,
111
- requestBody?: TenantUpdateDto,
182
+ requestBody?: TenantDepartmentUpdateDto,
112
183
  ): CancelablePromise<EmptyEnvelope> {
113
184
  return __request(OpenAPI, {
114
185
  method: 'PUT',
115
- url: '/api/v2/Tenants/{tenantId}',
186
+ url: '/api/v2/Departments/{tenantDepartmentId}',
116
187
  path: {
117
- 'tenantId': tenantId,
188
+ 'tenantDepartmentId': tenantDepartmentId,
118
189
  },
119
190
  headers: {
120
191
  'x-api-version': xApiVersion,
121
192
  },
193
+ query: {
194
+ 'tenantId': tenantId,
195
+ },
122
196
  body: requestBody,
123
197
  mediaType: 'application/json',
124
198
  errors: {
@@ -128,28 +202,31 @@ export class TenantsService {
128
202
  });
129
203
  }
130
204
  /**
205
+ * Delete a tenant department
206
+ * Delete a tenant department
131
207
  * @param tenantId
208
+ * @param tenantDepartmentId
132
209
  * @param xApiVersion
133
- * @param requestBody
134
210
  * @returns EmptyEnvelope OK
135
211
  * @throws ApiError
136
212
  */
137
- public static patchApiV2Tenants(
213
+ public static deleteTenantDepartment(
138
214
  tenantId: string,
215
+ tenantDepartmentId: string,
139
216
  xApiVersion?: string,
140
- requestBody?: Array<Operation>,
141
217
  ): CancelablePromise<EmptyEnvelope> {
142
218
  return __request(OpenAPI, {
143
- method: 'PATCH',
144
- url: '/api/v2/Tenants/{tenantId}',
219
+ method: 'DELETE',
220
+ url: '/api/v2/Departments/{tenantDepartmentId}',
145
221
  path: {
146
- 'tenantId': tenantId,
222
+ 'tenantDepartmentId': tenantDepartmentId,
147
223
  },
148
224
  headers: {
149
225
  'x-api-version': xApiVersion,
150
226
  },
151
- body: requestBody,
152
- mediaType: 'application/json',
227
+ query: {
228
+ 'tenantId': tenantId,
229
+ },
153
230
  errors: {
154
231
  401: `Unauthorized`,
155
232
  403: `Forbidden`,
@@ -157,24 +234,35 @@ export class TenantsService {
157
234
  });
158
235
  }
159
236
  /**
237
+ * Partially update a tenant department
238
+ * Partially update a tenant department
160
239
  * @param tenantId
240
+ * @param tenantDepartmentId
161
241
  * @param xApiVersion
162
- * @returns ExtendedTenantDtoEnvelope OK
242
+ * @param requestBody
243
+ * @returns EmptyEnvelope OK
163
244
  * @throws ApiError
164
245
  */
165
- public static getApiV2TenantsExtended(
246
+ public static patchTenantDepartment(
166
247
  tenantId: string,
248
+ tenantDepartmentId: string,
167
249
  xApiVersion?: string,
168
- ): CancelablePromise<ExtendedTenantDtoEnvelope> {
250
+ requestBody?: Array<Operation>,
251
+ ): CancelablePromise<EmptyEnvelope> {
169
252
  return __request(OpenAPI, {
170
- method: 'GET',
171
- url: '/api/v2/Tenants/{tenantId}/Extended',
253
+ method: 'PATCH',
254
+ url: '/api/v2/Departments/{tenantDepartmentId}',
172
255
  path: {
173
- 'tenantId': tenantId,
256
+ 'tenantDepartmentId': tenantDepartmentId,
174
257
  },
175
258
  headers: {
176
259
  'x-api-version': xApiVersion,
177
260
  },
261
+ query: {
262
+ 'tenantId': tenantId,
263
+ },
264
+ body: requestBody,
265
+ mediaType: 'application/json',
178
266
  errors: {
179
267
  401: `Unauthorized`,
180
268
  403: `Forbidden`,
@@ -182,24 +270,30 @@ export class TenantsService {
182
270
  });
183
271
  }
184
272
  /**
273
+ * Create a new tenant team employee enrollment
274
+ * Create a new tenant team employee enrollment
185
275
  * @param tenantId
186
276
  * @param xApiVersion
187
- * @returns EmptyEnvelope OK
277
+ * @param requestBody
278
+ * @returns TenantTeamEmployeeEnrollmentDtoEnvelope Created
188
279
  * @throws ApiError
189
280
  */
190
- public static getApiV2TenantsAvatar(
281
+ public static createTenantTeamEmployeeEnrollment(
191
282
  tenantId: string,
192
283
  xApiVersion?: string,
193
- ): CancelablePromise<EmptyEnvelope> {
284
+ requestBody?: TenantTeamEmployeeEnrollmentCreateDto,
285
+ ): CancelablePromise<TenantTeamEmployeeEnrollmentDtoEnvelope> {
194
286
  return __request(OpenAPI, {
195
- method: 'GET',
196
- url: '/api/v2/Tenants/{tenantId}/Avatar',
197
- path: {
198
- 'tenantId': tenantId,
199
- },
287
+ method: 'POST',
288
+ url: '/api/v2/EmployeeEnrollments',
200
289
  headers: {
201
290
  'x-api-version': xApiVersion,
202
291
  },
292
+ query: {
293
+ 'tenantId': tenantId,
294
+ },
295
+ body: requestBody,
296
+ mediaType: 'application/json',
203
297
  errors: {
204
298
  401: `Unauthorized`,
205
299
  403: `Forbidden`,
@@ -207,30 +301,26 @@ export class TenantsService {
207
301
  });
208
302
  }
209
303
  /**
304
+ * Retrieve a list of tenant team employee enrollments
305
+ * Retrieve a list of tenant team employee enrollments
210
306
  * @param tenantId
211
307
  * @param xApiVersion
212
- * @param formData
213
- * @returns EmptyEnvelope OK
308
+ * @returns TenantTeamEmployeeEnrollmentDtoListEnvelope OK
214
309
  * @throws ApiError
215
310
  */
216
- public static postApiV2TenantsAvatar(
311
+ public static getTenantTeamEmployeeEnrollments(
217
312
  tenantId: string,
218
313
  xApiVersion?: string,
219
- formData?: {
220
- avatar?: Blob;
221
- },
222
- ): CancelablePromise<EmptyEnvelope> {
314
+ ): CancelablePromise<TenantTeamEmployeeEnrollmentDtoListEnvelope> {
223
315
  return __request(OpenAPI, {
224
- method: 'POST',
225
- url: '/api/v2/Tenants/{tenantId}/Avatar',
226
- path: {
227
- 'tenantId': tenantId,
228
- },
316
+ method: 'GET',
317
+ url: '/api/v2/EmployeeEnrollments',
229
318
  headers: {
230
319
  'x-api-version': xApiVersion,
231
320
  },
232
- formData: formData,
233
- mediaType: 'multipart/form-data',
321
+ query: {
322
+ 'tenantId': tenantId,
323
+ },
234
324
  errors: {
235
325
  401: `Unauthorized`,
236
326
  403: `Forbidden`,
@@ -238,20 +328,22 @@ export class TenantsService {
238
328
  });
239
329
  }
240
330
  /**
241
- * @param tenantId
331
+ * Retrieve a single tenant team employee enrollment by its ID
332
+ * Retrieve a single tenant team employee enrollment by its ID
333
+ * @param tenantTeamId
242
334
  * @param xApiVersion
243
- * @returns WalletDtoEnvelope OK
335
+ * @returns TenantTeamEmployeeEnrollmentDtoEnvelope OK
244
336
  * @throws ApiError
245
337
  */
246
- public static getApiV2TenantsWallet(
247
- tenantId: string,
338
+ public static getTenantTeamEmployeeEnrollmentById(
339
+ tenantTeamId: string,
248
340
  xApiVersion?: string,
249
- ): CancelablePromise<WalletDtoEnvelope> {
341
+ ): CancelablePromise<TenantTeamEmployeeEnrollmentDtoEnvelope> {
250
342
  return __request(OpenAPI, {
251
343
  method: 'GET',
252
- url: '/api/v2/Tenants/{tenantId}/Wallet',
344
+ url: '/api/v2/EmployeeEnrollments/{tenantTeamId}',
253
345
  path: {
254
- 'tenantId': tenantId,
346
+ 'tenantTeamId': tenantTeamId,
255
347
  },
256
348
  headers: {
257
349
  'x-api-version': xApiVersion,
@@ -263,24 +355,31 @@ export class TenantsService {
263
355
  });
264
356
  }
265
357
  /**
358
+ * Deletes a tenant team employee enrollment
359
+ * Deletes a tenant team employee enrollment
266
360
  * @param tenantId
361
+ * @param tenantTeamId
267
362
  * @param xApiVersion
268
- * @returns SocialProfileDtoEnvelope OK
363
+ * @returns TenantTeamEmployeeEnrollmentDtoEnvelope OK
269
364
  * @throws ApiError
270
365
  */
271
- public static getApiV2TenantsSocialProfile(
366
+ public static deleteTenantTeamEmployeeEnrollment(
272
367
  tenantId: string,
368
+ tenantTeamId: string,
273
369
  xApiVersion?: string,
274
- ): CancelablePromise<SocialProfileDtoEnvelope> {
370
+ ): CancelablePromise<TenantTeamEmployeeEnrollmentDtoEnvelope> {
275
371
  return __request(OpenAPI, {
276
- method: 'GET',
277
- url: '/api/v2/Tenants/{tenantId}/SocialProfile',
372
+ method: 'DELETE',
373
+ url: '/api/v2/EmployeeEnrollments/{tenantTeamId}',
278
374
  path: {
279
- 'tenantId': tenantId,
375
+ 'tenantTeamId': tenantTeamId,
280
376
  },
281
377
  headers: {
282
378
  'x-api-version': xApiVersion,
283
379
  },
380
+ query: {
381
+ 'tenantId': tenantId,
382
+ },
284
383
  errors: {
285
384
  401: `Unauthorized`,
286
385
  403: `Forbidden`,
@@ -288,24 +387,30 @@ export class TenantsService {
288
387
  });
289
388
  }
290
389
  /**
291
- * @param tenantId
390
+ * Update a tenant team employee enrollment
391
+ * Update a tenant team employee enrollment
392
+ * @param tenantTeamId
292
393
  * @param xApiVersion
293
- * @returns CartDtoEnvelope OK
394
+ * @param requestBody
395
+ * @returns TenantTeamEmployeeEnrollmentDtoEnvelope OK
294
396
  * @throws ApiError
295
397
  */
296
- public static getApiV2TenantsCart(
297
- tenantId: string,
398
+ public static updateTenantTeamEmployeeEnrollment(
399
+ tenantTeamId: string,
298
400
  xApiVersion?: string,
299
- ): CancelablePromise<CartDtoEnvelope> {
401
+ requestBody?: TenantTeamEmployeeEnrollmentUpdateDto,
402
+ ): CancelablePromise<TenantTeamEmployeeEnrollmentDtoEnvelope> {
300
403
  return __request(OpenAPI, {
301
- method: 'GET',
302
- url: '/api/v2/Tenants/{tenantId}/Cart',
404
+ method: 'PUT',
405
+ url: '/api/v2/EmployeeEnrollments/{tenantTeamId}',
303
406
  path: {
304
- 'tenantId': tenantId,
407
+ 'tenantTeamId': tenantTeamId,
305
408
  },
306
409
  headers: {
307
410
  'x-api-version': xApiVersion,
308
411
  },
412
+ body: requestBody,
413
+ mediaType: 'application/json',
309
414
  errors: {
310
415
  401: `Unauthorized`,
311
416
  403: `Forbidden`,
@@ -313,24 +418,30 @@ export class TenantsService {
313
418
  });
314
419
  }
315
420
  /**
316
- * @param tenantId
421
+ * Partially update a tenant team employee enrollment
422
+ * Partially update a tenant team employee enrollment
423
+ * @param tenantTeamId
317
424
  * @param xApiVersion
318
- * @returns UserDtoListEnvelope OK
425
+ * @param requestBody
426
+ * @returns TenantTeamEmployeeEnrollmentDtoEnvelope OK
319
427
  * @throws ApiError
320
428
  */
321
- public static getApiV2TenantsUsers(
322
- tenantId: string,
429
+ public static patchTenantTeamEmployeeEnrollment(
430
+ tenantTeamId: string,
323
431
  xApiVersion?: string,
324
- ): CancelablePromise<UserDtoListEnvelope> {
432
+ requestBody?: Array<Operation>,
433
+ ): CancelablePromise<TenantTeamEmployeeEnrollmentDtoEnvelope> {
325
434
  return __request(OpenAPI, {
326
- method: 'GET',
327
- url: '/api/v2/Tenants/{tenantId}/Users',
435
+ method: 'PATCH',
436
+ url: '/api/v2/EmployeeEnrollments/{tenantTeamId}',
328
437
  path: {
329
- 'tenantId': tenantId,
438
+ 'tenantTeamId': tenantTeamId,
330
439
  },
331
440
  headers: {
332
441
  'x-api-version': xApiVersion,
333
442
  },
443
+ body: requestBody,
444
+ mediaType: 'application/json',
334
445
  errors: {
335
446
  401: `Unauthorized`,
336
447
  403: `Forbidden`,
@@ -338,24 +449,30 @@ export class TenantsService {
338
449
  });
339
450
  }
340
451
  /**
452
+ * Create a new tenant enrollment
453
+ * Create a new tenant enrollment
341
454
  * @param tenantId
342
455
  * @param xApiVersion
343
- * @returns TenantEnrolmentDtoListEnvelope OK
456
+ * @param requestBody
457
+ * @returns EmptyEnvelope Created
344
458
  * @throws ApiError
345
459
  */
346
- public static getApiV2TenantsEnrollments(
460
+ public static createTenantEnrollment(
347
461
  tenantId: string,
348
462
  xApiVersion?: string,
349
- ): CancelablePromise<TenantEnrolmentDtoListEnvelope> {
463
+ requestBody?: TenantEnrollmentCreateDto,
464
+ ): CancelablePromise<EmptyEnvelope> {
350
465
  return __request(OpenAPI, {
351
- method: 'GET',
352
- url: '/api/v2/Tenants/{tenantId}/Enrollments',
353
- path: {
354
- 'tenantId': tenantId,
355
- },
466
+ method: 'POST',
467
+ url: '/api/v2/Enrollments',
356
468
  headers: {
357
469
  'x-api-version': xApiVersion,
358
470
  },
471
+ query: {
472
+ 'tenantId': tenantId,
473
+ },
474
+ body: requestBody,
475
+ mediaType: 'application/json',
359
476
  errors: {
360
477
  401: `Unauthorized`,
361
478
  403: `Forbidden`,
@@ -363,27 +480,26 @@ export class TenantsService {
363
480
  });
364
481
  }
365
482
  /**
483
+ * Retrieve a list of tenant enrollments
484
+ * Retrieve a list of tenant enrollments
366
485
  * @param tenantId
367
- * @param enrollmentId
368
486
  * @param xApiVersion
369
- * @returns TenantEnrolmentDtoEnvelope OK
487
+ * @returns TenantEnrolmentDtoListEnvelope OK
370
488
  * @throws ApiError
371
489
  */
372
- public static getApiV2TenantsEnrollments1(
490
+ public static getTenantEnrollments(
373
491
  tenantId: string,
374
- enrollmentId: string,
375
492
  xApiVersion?: string,
376
- ): CancelablePromise<TenantEnrolmentDtoEnvelope> {
493
+ ): CancelablePromise<TenantEnrolmentDtoListEnvelope> {
377
494
  return __request(OpenAPI, {
378
495
  method: 'GET',
379
- url: '/api/v2/Tenants/{tenantId}/Enrollments/{enrollmentId}',
380
- path: {
381
- 'tenantId': tenantId,
382
- 'enrollmentId': enrollmentId,
383
- },
496
+ url: '/api/v2/Enrollments',
384
497
  headers: {
385
498
  'x-api-version': xApiVersion,
386
499
  },
500
+ query: {
501
+ 'tenantId': tenantId,
502
+ },
387
503
  errors: {
388
504
  401: `Unauthorized`,
389
505
  403: `Forbidden`,
@@ -391,27 +507,29 @@ export class TenantsService {
391
507
  });
392
508
  }
393
509
  /**
510
+ * Retrieve a single tenant enrollment by its ID
511
+ * Retrieve a single tenant enrollment by its ID
394
512
  * @param tenantId
395
- * @param enrollmentId
513
+ * @param userId
396
514
  * @param xApiVersion
397
- * @returns ExtendedTenantEnrolmentDtoEnvelope OK
515
+ * @returns TenantEnrolmentDtoEnvelope OK
398
516
  * @throws ApiError
399
517
  */
400
- public static getApiV2TenantsEnrollmentsExtended(
518
+ public static getTenantEnrollmentById(
401
519
  tenantId: string,
402
- enrollmentId: string,
520
+ userId: string,
403
521
  xApiVersion?: string,
404
- ): CancelablePromise<ExtendedTenantEnrolmentDtoEnvelope> {
522
+ ): CancelablePromise<TenantEnrolmentDtoEnvelope> {
405
523
  return __request(OpenAPI, {
406
524
  method: 'GET',
407
- url: '/api/v2/Tenants/{tenantId}/Enrollments/{enrollmentId}/Extended',
408
- path: {
409
- 'tenantId': tenantId,
410
- 'enrollmentId': enrollmentId,
411
- },
525
+ url: '/api/v2/Enrollments/{tenantId}',
412
526
  headers: {
413
527
  'x-api-version': xApiVersion,
414
528
  },
529
+ query: {
530
+ 'tenantId': tenantId,
531
+ 'userId': userId,
532
+ },
415
533
  errors: {
416
534
  401: `Unauthorized`,
417
535
  403: `Forbidden`,
@@ -419,27 +537,35 @@ export class TenantsService {
419
537
  });
420
538
  }
421
539
  /**
540
+ * Update a tenant enrollment
541
+ * Update a tenant enrollment
422
542
  * @param tenantId
423
- * @param enrollmentId
543
+ * @param tenantEnrollmentId
424
544
  * @param xApiVersion
425
- * @returns StringListEnvelope OK
545
+ * @param requestBody
546
+ * @returns EmptyEnvelope OK
426
547
  * @throws ApiError
427
548
  */
428
- public static getApiV2TenantsEnrollmentsPermissions(
549
+ public static updateTenantEnrollment(
429
550
  tenantId: string,
430
- enrollmentId: string,
551
+ tenantEnrollmentId: string,
431
552
  xApiVersion?: string,
432
- ): CancelablePromise<StringListEnvelope> {
553
+ requestBody?: TenantEnrollmentUpdateDto,
554
+ ): CancelablePromise<EmptyEnvelope> {
433
555
  return __request(OpenAPI, {
434
- method: 'GET',
435
- url: '/api/v2/Tenants/{tenantId}/Enrollments/{enrollmentId}/Permissions',
556
+ method: 'PUT',
557
+ url: '/api/v2/Enrollments/{tenantEnrollmentId}',
436
558
  path: {
437
- 'tenantId': tenantId,
438
- 'enrollmentId': enrollmentId,
559
+ 'tenantEnrollmentId': tenantEnrollmentId,
439
560
  },
440
561
  headers: {
441
562
  'x-api-version': xApiVersion,
442
563
  },
564
+ query: {
565
+ 'tenantId': tenantId,
566
+ },
567
+ body: requestBody,
568
+ mediaType: 'application/json',
443
569
  errors: {
444
570
  401: `Unauthorized`,
445
571
  403: `Forbidden`,
@@ -447,35 +573,35 @@ export class TenantsService {
447
573
  });
448
574
  }
449
575
  /**
576
+ * Partially update a tenant enrollment
577
+ * Partially update a tenant enrollment
450
578
  * @param tenantId
451
- * @param enrollmentId
452
- * @param roles
453
- * @param permissions
579
+ * @param tenantEnrollmentId
454
580
  * @param xApiVersion
455
- * @returns BooleanEnvelope OK
581
+ * @param requestBody
582
+ * @returns EmptyEnvelope OK
456
583
  * @throws ApiError
457
584
  */
458
- public static getApiV2TenantsEnrollmentsPermissionsValidate(
585
+ public static patchTenantEnrollment(
459
586
  tenantId: string,
460
- enrollmentId: string,
461
- roles?: Array<string>,
462
- permissions?: Array<string>,
587
+ tenantEnrollmentId: string,
463
588
  xApiVersion?: string,
464
- ): CancelablePromise<BooleanEnvelope> {
589
+ requestBody?: Array<Operation>,
590
+ ): CancelablePromise<EmptyEnvelope> {
465
591
  return __request(OpenAPI, {
466
- method: 'GET',
467
- url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentID}/Permissions/Validate',
592
+ method: 'PATCH',
593
+ url: '/api/v2/Enrollments/{tenantEnrollmentId}',
468
594
  path: {
469
- 'tenantId': tenantId,
470
- 'enrollmentId': enrollmentId,
595
+ 'tenantEnrollmentId': tenantEnrollmentId,
471
596
  },
472
597
  headers: {
473
598
  'x-api-version': xApiVersion,
474
599
  },
475
600
  query: {
476
- 'roles': roles,
477
- 'permissions': permissions,
601
+ 'tenantId': tenantId,
478
602
  },
603
+ body: requestBody,
604
+ mediaType: 'application/json',
479
605
  errors: {
480
606
  401: `Unauthorized`,
481
607
  403: `Forbidden`,
@@ -483,24 +609,31 @@ export class TenantsService {
483
609
  });
484
610
  }
485
611
  /**
612
+ * Delete a tenant enrollment
613
+ * Delete a tenant enrollment
486
614
  * @param tenantId
615
+ * @param tenantEnrollmentId
487
616
  * @param xApiVersion
488
- * @returns TenantInvitationDtoListEnvelope OK
617
+ * @returns EmptyEnvelope OK
489
618
  * @throws ApiError
490
619
  */
491
- public static getApiV2TenantsInvitations(
620
+ public static deleteTenantEnrollment(
492
621
  tenantId: string,
622
+ tenantEnrollmentId: string,
493
623
  xApiVersion?: string,
494
- ): CancelablePromise<TenantInvitationDtoListEnvelope> {
624
+ ): CancelablePromise<EmptyEnvelope> {
495
625
  return __request(OpenAPI, {
496
- method: 'GET',
497
- url: '/api/v2/Tenants/{tenantId}/Invitations',
626
+ method: 'DELETE',
627
+ url: '/api/v2/Enrollments/{tenantEnrollmentId}',
498
628
  path: {
499
- 'tenantId': tenantId,
629
+ 'tenantEnrollmentId': tenantEnrollmentId,
500
630
  },
501
631
  headers: {
502
632
  'x-api-version': xApiVersion,
503
633
  },
634
+ query: {
635
+ 'tenantId': tenantId,
636
+ },
504
637
  errors: {
505
638
  401: `Unauthorized`,
506
639
  403: `Forbidden`,
@@ -508,24 +641,30 @@ export class TenantsService {
508
641
  });
509
642
  }
510
643
  /**
644
+ * Create a new tenant industry
645
+ * Create a new tenant industry
511
646
  * @param tenantId
512
647
  * @param xApiVersion
513
- * @returns TenantInvitationDtoListEnvelope OK
648
+ * @param requestBody
649
+ * @returns TenantIndustryDtoEnvelope Created
514
650
  * @throws ApiError
515
651
  */
516
- public static getApiV2TenantsInvitationsPending(
652
+ public static createTenantIndustry(
517
653
  tenantId: string,
518
654
  xApiVersion?: string,
519
- ): CancelablePromise<TenantInvitationDtoListEnvelope> {
655
+ requestBody?: TenantIndustryCreateDto,
656
+ ): CancelablePromise<TenantIndustryDtoEnvelope> {
520
657
  return __request(OpenAPI, {
521
- method: 'GET',
522
- url: '/api/v2/Tenants/{tenantId}/Invitations/Pending',
523
- path: {
524
- 'tenantId': tenantId,
525
- },
658
+ method: 'POST',
659
+ url: '/api/v2/Industries',
526
660
  headers: {
527
661
  'x-api-version': xApiVersion,
528
662
  },
663
+ query: {
664
+ 'tenantId': tenantId,
665
+ },
666
+ body: requestBody,
667
+ mediaType: 'application/json',
529
668
  errors: {
530
669
  401: `Unauthorized`,
531
670
  403: `Forbidden`,
@@ -533,24 +672,26 @@ export class TenantsService {
533
672
  });
534
673
  }
535
674
  /**
675
+ * Retrieve a list of tenant industries
676
+ * Retrieve a list of tenant industries
536
677
  * @param tenantId
537
678
  * @param xApiVersion
538
- * @returns TenantInvitationDtoListEnvelope OK
679
+ * @returns TenantIndustryDtoListEnvelope OK
539
680
  * @throws ApiError
540
681
  */
541
- public static getApiV2TenantsInvitationsRedeemed(
682
+ public static getTenantIndustries(
542
683
  tenantId: string,
543
684
  xApiVersion?: string,
544
- ): CancelablePromise<TenantInvitationDtoListEnvelope> {
685
+ ): CancelablePromise<TenantIndustryDtoListEnvelope> {
545
686
  return __request(OpenAPI, {
546
687
  method: 'GET',
547
- url: '/api/v2/Tenants/{tenantId}/Invitations/Redeemed',
548
- path: {
549
- 'tenantId': tenantId,
550
- },
688
+ url: '/api/v2/Industries',
551
689
  headers: {
552
690
  'x-api-version': xApiVersion,
553
691
  },
692
+ query: {
693
+ 'tenantId': tenantId,
694
+ },
554
695
  errors: {
555
696
  401: `Unauthorized`,
556
697
  403: `Forbidden`,
@@ -558,20 +699,22 @@ export class TenantsService {
558
699
  });
559
700
  }
560
701
  /**
561
- * @param tenantId
702
+ * Retrieve a single tenant industry by its ID
703
+ * Retrieve a single tenant industry by its ID
704
+ * @param tenantIndustryId
562
705
  * @param xApiVersion
563
- * @returns TenantInvitationDtoListEnvelope OK
706
+ * @returns TenantIndustryDtoEnvelope OK
564
707
  * @throws ApiError
565
708
  */
566
- public static getApiV2TenantsInvitationsRevoked(
567
- tenantId: string,
709
+ public static getTenantIndustryById(
710
+ tenantIndustryId: string,
568
711
  xApiVersion?: string,
569
- ): CancelablePromise<TenantInvitationDtoListEnvelope> {
712
+ ): CancelablePromise<TenantIndustryDtoEnvelope> {
570
713
  return __request(OpenAPI, {
571
714
  method: 'GET',
572
- url: '/api/v2/Tenants/{tenantId}/Invitations/Revoked',
715
+ url: '/api/v2/Industries/{tenantIndustryId}',
573
716
  path: {
574
- 'tenantId': tenantId,
717
+ 'tenantIndustryId': tenantIndustryId,
575
718
  },
576
719
  headers: {
577
720
  'x-api-version': xApiVersion,
@@ -583,24 +726,31 @@ export class TenantsService {
583
726
  });
584
727
  }
585
728
  /**
729
+ * Delete a tenant industry
730
+ * Delete a tenant industry
586
731
  * @param tenantId
732
+ * @param tenantIndustryId
587
733
  * @param xApiVersion
588
- * @returns SuiteLicenseDtoListEnvelope OK
734
+ * @returns TenantIndustryDtoEnvelope OK
589
735
  * @throws ApiError
590
736
  */
591
- public static getApiV2TenantsLicenses(
737
+ public static deleteTenantIndustry(
592
738
  tenantId: string,
739
+ tenantIndustryId: string,
593
740
  xApiVersion?: string,
594
- ): CancelablePromise<SuiteLicenseDtoListEnvelope> {
741
+ ): CancelablePromise<TenantIndustryDtoEnvelope> {
595
742
  return __request(OpenAPI, {
596
- method: 'GET',
597
- url: '/api/v2/Tenants/{tenantId}/Licenses',
743
+ method: 'DELETE',
744
+ url: '/api/v2/Industries/{tenantIndustryId}',
598
745
  path: {
599
- 'tenantId': tenantId,
746
+ 'tenantIndustryId': tenantIndustryId,
600
747
  },
601
748
  headers: {
602
749
  'x-api-version': xApiVersion,
603
750
  },
751
+ query: {
752
+ 'tenantId': tenantId,
753
+ },
604
754
  errors: {
605
755
  401: `Unauthorized`,
606
756
  403: `Forbidden`,
@@ -608,27 +758,35 @@ export class TenantsService {
608
758
  });
609
759
  }
610
760
  /**
761
+ * Update a tenant industry
762
+ * Update a tenant industry
611
763
  * @param tenantId
612
- * @param enrollmentId
764
+ * @param tenantIndustryId
613
765
  * @param xApiVersion
614
- * @returns SuiteLicenseAssignmentDtoListEnvelope OK
766
+ * @param requestBody
767
+ * @returns TenantIndustryDtoEnvelope OK
615
768
  * @throws ApiError
616
769
  */
617
- public static getApiV2TenantsEnrollmentsLicenses(
770
+ public static updateTenantIndustry(
618
771
  tenantId: string,
619
- enrollmentId: string,
772
+ tenantIndustryId: string,
620
773
  xApiVersion?: string,
621
- ): CancelablePromise<SuiteLicenseAssignmentDtoListEnvelope> {
774
+ requestBody?: TenantIndustryUpdateDto,
775
+ ): CancelablePromise<TenantIndustryDtoEnvelope> {
622
776
  return __request(OpenAPI, {
623
- method: 'GET',
624
- url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentId}/Licenses',
777
+ method: 'PUT',
778
+ url: '/api/v2/Industries/{tenantIndustryId}',
625
779
  path: {
626
- 'tenantId': tenantId,
627
- 'enrollmentId': enrollmentId,
780
+ 'tenantIndustryId': tenantIndustryId,
628
781
  },
629
782
  headers: {
630
783
  'x-api-version': xApiVersion,
631
784
  },
785
+ query: {
786
+ 'tenantId': tenantId,
787
+ },
788
+ body: requestBody,
789
+ mediaType: 'application/json',
632
790
  errors: {
633
791
  401: `Unauthorized`,
634
792
  403: `Forbidden`,
@@ -636,30 +794,35 @@ export class TenantsService {
636
794
  });
637
795
  }
638
796
  /**
797
+ * Partially update a tenant industry
798
+ * Partially update a tenant industry
639
799
  * @param tenantId
640
- * @param enrollmentId
641
- * @param licenseId
800
+ * @param tenantIndustryId
642
801
  * @param xApiVersion
643
- * @returns SuiteLicenseDtoListEnvelope OK
802
+ * @param requestBody
803
+ * @returns TenantIndustryDtoEnvelope OK
644
804
  * @throws ApiError
645
805
  */
646
- public static getApiV2TenantsEnrollmentsLicenses1(
806
+ public static patchTenantIndustry(
647
807
  tenantId: string,
648
- enrollmentId: string,
649
- licenseId: string,
808
+ tenantIndustryId: string,
650
809
  xApiVersion?: string,
651
- ): CancelablePromise<SuiteLicenseDtoListEnvelope> {
810
+ requestBody?: Array<Operation>,
811
+ ): CancelablePromise<TenantIndustryDtoEnvelope> {
652
812
  return __request(OpenAPI, {
653
- method: 'GET',
654
- url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentId}/Licenses/{licenseId}',
813
+ method: 'PATCH',
814
+ url: '/api/v2/Industries/{tenantIndustryId}',
655
815
  path: {
656
- 'tenantId': tenantId,
657
- 'enrollmentId': enrollmentId,
658
- 'licenseId': licenseId,
816
+ 'tenantIndustryId': tenantIndustryId,
659
817
  },
660
818
  headers: {
661
819
  'x-api-version': xApiVersion,
662
820
  },
821
+ query: {
822
+ 'tenantId': tenantId,
823
+ },
824
+ body: requestBody,
825
+ mediaType: 'application/json',
663
826
  errors: {
664
827
  401: `Unauthorized`,
665
828
  403: `Forbidden`,
@@ -667,30 +830,30 @@ export class TenantsService {
667
830
  });
668
831
  }
669
832
  /**
670
- * @param tenantId
671
- * @param enrollmentId
672
- * @param licenseId
833
+ * Get an invitation by its ID
834
+ * Get an invitation by its ID
835
+ * @param invitationId
673
836
  * @param xApiVersion
674
- * @returns SuiteLicenseDtoListEnvelope OK
837
+ * @param requestBody
838
+ * @returns TenantInvitationDtoEnvelope OK
675
839
  * @throws ApiError
676
840
  */
677
- public static postApiV2TenantsEnrollmentsLicenses(
678
- tenantId: string,
679
- enrollmentId: string,
680
- licenseId: string,
841
+ public static getInvitation(
842
+ invitationId: string,
681
843
  xApiVersion?: string,
682
- ): CancelablePromise<SuiteLicenseDtoListEnvelope> {
844
+ requestBody?: string,
845
+ ): CancelablePromise<TenantInvitationDtoEnvelope> {
683
846
  return __request(OpenAPI, {
684
- method: 'POST',
685
- url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentId}/Licenses/{licenseId}',
847
+ method: 'GET',
848
+ url: '/api/v2/TenantService/Invitations/{invitationId}',
686
849
  path: {
687
- 'tenantId': tenantId,
688
- 'enrollmentId': enrollmentId,
689
- 'licenseId': licenseId,
850
+ 'invitationId': invitationId,
690
851
  },
691
852
  headers: {
692
853
  'x-api-version': xApiVersion,
693
854
  },
855
+ body: requestBody,
856
+ mediaType: 'application/json',
694
857
  errors: {
695
858
  401: `Unauthorized`,
696
859
  403: `Forbidden`,
@@ -698,30 +861,31 @@ export class TenantsService {
698
861
  });
699
862
  }
700
863
  /**
864
+ * Delete an invitation
865
+ * Delete an invitation
866
+ * @param invitationId
701
867
  * @param tenantId
702
- * @param enrollmentId
703
- * @param licenseId
704
868
  * @param xApiVersion
705
- * @returns SuiteLicenseDtoListEnvelope OK
869
+ * @returns TenantDtoEnvelope OK
706
870
  * @throws ApiError
707
871
  */
708
- public static deleteApiV2TenantsEnrollmentsLicenses(
872
+ public static deleteInvitation(
873
+ invitationId: string,
709
874
  tenantId: string,
710
- enrollmentId: string,
711
- licenseId: string,
712
875
  xApiVersion?: string,
713
- ): CancelablePromise<SuiteLicenseDtoListEnvelope> {
876
+ ): CancelablePromise<TenantDtoEnvelope> {
714
877
  return __request(OpenAPI, {
715
878
  method: 'DELETE',
716
- url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentId}/Licenses/{licenseId}',
879
+ url: '/api/v2/TenantService/Invitations/{invitationId}',
717
880
  path: {
718
- 'tenantId': tenantId,
719
- 'enrollmentId': enrollmentId,
720
- 'licenseId': licenseId,
881
+ 'invitationId': invitationId,
721
882
  },
722
883
  headers: {
723
884
  'x-api-version': xApiVersion,
724
885
  },
886
+ query: {
887
+ 'tenantId': tenantId,
888
+ },
725
889
  errors: {
726
890
  401: `Unauthorized`,
727
891
  403: `Forbidden`,
@@ -729,80 +893,113 @@ export class TenantsService {
729
893
  });
730
894
  }
731
895
  /**
896
+ * Send an invitation to a user to join a tenant
897
+ * Send an invitation to a user to join a tenant
732
898
  * @param tenantId
733
- * @param enrollmentId
734
899
  * @param xApiVersion
735
- * @returns SuiteLicenseFeatureDtoListEnvelope OK
900
+ * @param requestBody
901
+ * @returns TenantDtoEnvelope OK
736
902
  * @throws ApiError
737
903
  */
738
- public static getApiV2TenantsEnrollmentsFeatures(
904
+ public static sendInvitation(
739
905
  tenantId: string,
740
- enrollmentId: string,
741
906
  xApiVersion?: string,
742
- ): CancelablePromise<SuiteLicenseFeatureDtoListEnvelope> {
907
+ requestBody?: TenantInvitationCreateDto,
908
+ ): CancelablePromise<TenantDtoEnvelope> {
743
909
  return __request(OpenAPI, {
744
- method: 'GET',
745
- url: '/api/v2/Tenants/{tenantId}/Enrollments/{enrollmentId}/Features',
746
- path: {
910
+ method: 'POST',
911
+ url: '/api/v2/TenantService/Invitations',
912
+ headers: {
913
+ 'x-api-version': xApiVersion,
914
+ },
915
+ query: {
747
916
  'tenantId': tenantId,
748
- 'enrollmentId': enrollmentId,
917
+ },
918
+ body: requestBody,
919
+ mediaType: 'application/json',
920
+ errors: {
921
+ 401: `Unauthorized`,
922
+ 403: `Forbidden`,
923
+ },
924
+ });
925
+ }
926
+ /**
927
+ * Decline an invitation to join a tenant
928
+ * Decline an invitation to join a tenant
929
+ * @param invitationId
930
+ * @param xApiVersion
931
+ * @returns TenantDtoEnvelope OK
932
+ * @throws ApiError
933
+ */
934
+ public static declineInvitation(
935
+ invitationId: string,
936
+ xApiVersion?: string,
937
+ ): CancelablePromise<TenantDtoEnvelope> {
938
+ return __request(OpenAPI, {
939
+ method: 'POST',
940
+ url: '/api/v2/TenantService/Invitations/{invitationId}/Decline',
941
+ path: {
942
+ 'invitationId': invitationId,
749
943
  },
750
944
  headers: {
751
945
  'x-api-version': xApiVersion,
752
946
  },
753
947
  errors: {
948
+ 401: `Unauthorized`,
754
949
  403: `Forbidden`,
755
950
  },
756
951
  });
757
952
  }
758
953
  /**
759
- * @param tenantId
760
- * @param enrollmentId
761
- * @param feature
954
+ * Accept an invitation to join a tenant
955
+ * Accept an invitation to join a tenant
956
+ * @param invitationId
762
957
  * @param xApiVersion
763
- * @returns BooleanEnvelope OK
958
+ * @returns TenantDtoEnvelope OK
764
959
  * @throws ApiError
765
960
  */
766
- public static getApiV2TenantsEnrollmentsHasAccess(
767
- tenantId: string,
768
- enrollmentId: string,
769
- feature?: string,
961
+ public static acceptInvitation(
962
+ invitationId: string,
770
963
  xApiVersion?: string,
771
- ): CancelablePromise<BooleanEnvelope> {
964
+ ): CancelablePromise<TenantDtoEnvelope> {
772
965
  return __request(OpenAPI, {
773
- method: 'GET',
774
- url: '/api/v2/Tenants/{tenantId}/Enrollments/{enrollmentId}/HasAccess',
966
+ method: 'POST',
967
+ url: '/api/v2/TenantService/Invitations/{invitationId}/Accept',
775
968
  path: {
776
- 'tenantId': tenantId,
777
- 'enrollmentId': enrollmentId,
969
+ 'invitationId': invitationId,
778
970
  },
779
971
  headers: {
780
972
  'x-api-version': xApiVersion,
781
973
  },
782
- query: {
783
- 'feature': feature,
784
- },
785
974
  errors: {
975
+ 401: `Unauthorized`,
786
976
  403: `Forbidden`,
787
977
  },
788
978
  });
789
979
  }
790
980
  /**
981
+ * Create a new tenant position
982
+ * Create a new tenant position
983
+ * @param tenantId
791
984
  * @param xApiVersion
792
985
  * @param requestBody
793
- * @returns EmptyEnvelope OK
986
+ * @returns EmptyEnvelope Created
794
987
  * @throws ApiError
795
988
  */
796
- public static postApiV2Tenants(
989
+ public static createTenantPosition(
990
+ tenantId: string,
797
991
  xApiVersion?: string,
798
- requestBody?: TenantCreateDto,
992
+ requestBody?: TenantPositionCreateDto,
799
993
  ): CancelablePromise<EmptyEnvelope> {
800
994
  return __request(OpenAPI, {
801
995
  method: 'POST',
802
- url: '/api/v2/Tenants',
996
+ url: '/api/v2/Positions',
803
997
  headers: {
804
998
  'x-api-version': xApiVersion,
805
999
  },
1000
+ query: {
1001
+ 'tenantId': tenantId,
1002
+ },
806
1003
  body: requestBody,
807
1004
  mediaType: 'application/json',
808
1005
  errors: {
@@ -812,18 +1009,20 @@ export class TenantsService {
812
1009
  });
813
1010
  }
814
1011
  /**
1012
+ * Retrieve a list of tenant positions
1013
+ * Retrieve a list of tenant positions
815
1014
  * @param tenantId
816
1015
  * @param xApiVersion
817
- * @returns EmptyEnvelope OK
1016
+ * @returns TenantPositionDtoListEnvelope OK
818
1017
  * @throws ApiError
819
1018
  */
820
- public static deleteApiV2Tenants(
1019
+ public static getTenantPositions(
821
1020
  tenantId: string,
822
1021
  xApiVersion?: string,
823
- ): CancelablePromise<EmptyEnvelope> {
1022
+ ): CancelablePromise<TenantPositionDtoListEnvelope> {
824
1023
  return __request(OpenAPI, {
825
- method: 'DELETE',
826
- url: '/api/v2/Tenants',
1024
+ method: 'GET',
1025
+ url: '/api/v2/Positions',
827
1026
  headers: {
828
1027
  'x-api-version': xApiVersion,
829
1028
  },
@@ -837,32 +1036,62 @@ export class TenantsService {
837
1036
  });
838
1037
  }
839
1038
  /**
1039
+ * Retrieve a single tenant position by its ID
1040
+ * Retrieve a single tenant position by its ID
1041
+ * @param tenantPositionId
1042
+ * @param xApiVersion
1043
+ * @returns TenantPositionDtoEnvelope OK
1044
+ * @throws ApiError
1045
+ */
1046
+ public static getTenantPositionById(
1047
+ tenantPositionId: string,
1048
+ xApiVersion?: string,
1049
+ ): CancelablePromise<TenantPositionDtoEnvelope> {
1050
+ return __request(OpenAPI, {
1051
+ method: 'GET',
1052
+ url: '/api/v2/Positions/{tenantPositionId}',
1053
+ path: {
1054
+ 'tenantPositionId': tenantPositionId,
1055
+ },
1056
+ headers: {
1057
+ 'x-api-version': xApiVersion,
1058
+ },
1059
+ errors: {
1060
+ 401: `Unauthorized`,
1061
+ 403: `Forbidden`,
1062
+ },
1063
+ });
1064
+ }
1065
+ /**
1066
+ * Update a tenant position
1067
+ * Update a tenant position
840
1068
  * @param tenantId
841
- * @param backTo
842
- * @param enableRedirect
1069
+ * @param tenantPositionId
843
1070
  * @param xApiVersion
1071
+ * @param requestBody
844
1072
  * @returns EmptyEnvelope OK
845
1073
  * @throws ApiError
846
1074
  */
847
- public static getApiV2TenantsSelect(
1075
+ public static updateTenantPosition(
848
1076
  tenantId: string,
849
- backTo?: string,
850
- enableRedirect: boolean = true,
1077
+ tenantPositionId: string,
851
1078
  xApiVersion?: string,
1079
+ requestBody?: TenantPositionUpdateDto,
852
1080
  ): CancelablePromise<EmptyEnvelope> {
853
1081
  return __request(OpenAPI, {
854
- method: 'GET',
855
- url: '/api/v2/Tenants/{tenantId}/Select',
1082
+ method: 'PUT',
1083
+ url: '/api/v2/Positions/{tenantPositionId}',
856
1084
  path: {
857
- 'tenantId': tenantId,
1085
+ 'tenantPositionId': tenantPositionId,
858
1086
  },
859
1087
  headers: {
860
1088
  'x-api-version': xApiVersion,
861
1089
  },
862
1090
  query: {
863
- 'backTo': backTo,
864
- 'enableRedirect': enableRedirect,
1091
+ 'tenantId': tenantId,
865
1092
  },
1093
+ body: requestBody,
1094
+ mediaType: 'application/json',
866
1095
  errors: {
867
1096
  401: `Unauthorized`,
868
1097
  403: `Forbidden`,
@@ -870,31 +1099,30 @@ export class TenantsService {
870
1099
  });
871
1100
  }
872
1101
  /**
1102
+ * Delete a tenant position
1103
+ * Delete a tenant position
873
1104
  * @param tenantId
874
- * @param backTo
875
- * @param enableRedirect
1105
+ * @param tenantPositionId
876
1106
  * @param xApiVersion
877
1107
  * @returns EmptyEnvelope OK
878
1108
  * @throws ApiError
879
1109
  */
880
- public static postApiV2TenantsSelect(
1110
+ public static deleteTenantPosition(
881
1111
  tenantId: string,
882
- backTo?: string,
883
- enableRedirect: boolean = true,
1112
+ tenantPositionId: string,
884
1113
  xApiVersion?: string,
885
1114
  ): CancelablePromise<EmptyEnvelope> {
886
1115
  return __request(OpenAPI, {
887
- method: 'POST',
888
- url: '/api/v2/Tenants/{tenantId}/Select',
1116
+ method: 'DELETE',
1117
+ url: '/api/v2/Positions/{tenantPositionId}',
889
1118
  path: {
890
- 'tenantId': tenantId,
1119
+ 'tenantPositionId': tenantPositionId,
891
1120
  },
892
1121
  headers: {
893
1122
  'x-api-version': xApiVersion,
894
1123
  },
895
1124
  query: {
896
- 'backTo': backTo,
897
- 'enableRedirect': enableRedirect,
1125
+ 'tenantId': tenantId,
898
1126
  },
899
1127
  errors: {
900
1128
  401: `Unauthorized`,
@@ -903,27 +1131,35 @@ export class TenantsService {
903
1131
  });
904
1132
  }
905
1133
  /**
906
- * @param backTo
907
- * @param enableRedirect
1134
+ * Partially update a tenant position
1135
+ * Partially update a tenant position
1136
+ * @param tenantId
1137
+ * @param tenantPositionId
908
1138
  * @param xApiVersion
1139
+ * @param requestBody
909
1140
  * @returns EmptyEnvelope OK
910
1141
  * @throws ApiError
911
1142
  */
912
- public static getApiV2TenantsDeselect(
913
- backTo?: string,
914
- enableRedirect: boolean = true,
1143
+ public static patchTenantPosition(
1144
+ tenantId: string,
1145
+ tenantPositionId: string,
915
1146
  xApiVersion?: string,
1147
+ requestBody?: Array<Operation>,
916
1148
  ): CancelablePromise<EmptyEnvelope> {
917
1149
  return __request(OpenAPI, {
918
- method: 'GET',
919
- url: '/api/v2/Tenants/Deselect',
1150
+ method: 'PATCH',
1151
+ url: '/api/v2/Positions/{tenantPositionId}',
1152
+ path: {
1153
+ 'tenantPositionId': tenantPositionId,
1154
+ },
920
1155
  headers: {
921
1156
  'x-api-version': xApiVersion,
922
1157
  },
923
1158
  query: {
924
- 'backTo': backTo,
925
- 'enableRedirect': enableRedirect,
1159
+ 'tenantId': tenantId,
926
1160
  },
1161
+ body: requestBody,
1162
+ mediaType: 'application/json',
927
1163
  errors: {
928
1164
  401: `Unauthorized`,
929
1165
  403: `Forbidden`,
@@ -931,27 +1167,30 @@ export class TenantsService {
931
1167
  });
932
1168
  }
933
1169
  /**
934
- * @param backTo
935
- * @param enableRedirect
1170
+ * Create a new tenant segment
1171
+ * Create a new tenant segment
1172
+ * @param tenantId
936
1173
  * @param xApiVersion
937
- * @returns EmptyEnvelope OK
1174
+ * @param requestBody
1175
+ * @returns TenantSegmentDtoEnvelope Created
938
1176
  * @throws ApiError
939
1177
  */
940
- public static postApiV2TenantsDeselect(
941
- backTo?: string,
942
- enableRedirect: boolean = true,
1178
+ public static createTenantSegment(
1179
+ tenantId: string,
943
1180
  xApiVersion?: string,
944
- ): CancelablePromise<EmptyEnvelope> {
1181
+ requestBody?: TenantSegmentCreateDto,
1182
+ ): CancelablePromise<TenantSegmentDtoEnvelope> {
945
1183
  return __request(OpenAPI, {
946
1184
  method: 'POST',
947
- url: '/api/v2/Tenants/Deselect',
1185
+ url: '/api/v2/Segments',
948
1186
  headers: {
949
1187
  'x-api-version': xApiVersion,
950
1188
  },
951
1189
  query: {
952
- 'backTo': backTo,
953
- 'enableRedirect': enableRedirect,
1190
+ 'tenantId': tenantId,
954
1191
  },
1192
+ body: requestBody,
1193
+ mediaType: 'application/json',
955
1194
  errors: {
956
1195
  401: `Unauthorized`,
957
1196
  403: `Forbidden`,
@@ -959,21 +1198,50 @@ export class TenantsService {
959
1198
  });
960
1199
  }
961
1200
  /**
1201
+ * Retrieve a list of tenant segments for a specific tenant
1202
+ * Retrieve a list of tenant segments for a specific tenant
962
1203
  * @param tenantId
963
1204
  * @param xApiVersion
964
- * @returns WebPortalDtoListEnvelope OK
1205
+ * @returns TenantSegmentDtoListEnvelope OK
965
1206
  * @throws ApiError
966
1207
  */
967
- public static getApiV2TenantsWebPortals(
1208
+ public static getTenantSegments(
968
1209
  tenantId: string,
969
1210
  xApiVersion?: string,
970
- ): CancelablePromise<WebPortalDtoListEnvelope> {
1211
+ ): CancelablePromise<TenantSegmentDtoListEnvelope> {
971
1212
  return __request(OpenAPI, {
972
1213
  method: 'GET',
973
- url: '/api/v2/Tenants/{tenantId}/WebPortals',
974
- path: {
1214
+ url: '/api/v2/Segments',
1215
+ headers: {
1216
+ 'x-api-version': xApiVersion,
1217
+ },
1218
+ query: {
975
1219
  'tenantId': tenantId,
976
1220
  },
1221
+ errors: {
1222
+ 401: `Unauthorized`,
1223
+ 403: `Forbidden`,
1224
+ },
1225
+ });
1226
+ }
1227
+ /**
1228
+ * Retrieve a single tenant segment by its ID
1229
+ * Retrieve a single tenant segment by its ID
1230
+ * @param tenantSegmentId
1231
+ * @param xApiVersion
1232
+ * @returns TenantSegmentDtoEnvelope OK
1233
+ * @throws ApiError
1234
+ */
1235
+ public static getTenantSegmentById(
1236
+ tenantSegmentId: string,
1237
+ xApiVersion?: string,
1238
+ ): CancelablePromise<TenantSegmentDtoEnvelope> {
1239
+ return __request(OpenAPI, {
1240
+ method: 'GET',
1241
+ url: '/api/v2/Segments/{tenantSegmentId}',
1242
+ path: {
1243
+ 'tenantSegmentId': tenantSegmentId,
1244
+ },
977
1245
  headers: {
978
1246
  'x-api-version': xApiVersion,
979
1247
  },
@@ -984,24 +1252,31 @@ export class TenantsService {
984
1252
  });
985
1253
  }
986
1254
  /**
1255
+ * Delete a tenant segment
1256
+ * Delete a tenant segment
987
1257
  * @param tenantId
1258
+ * @param tenantSegmentId
988
1259
  * @param xApiVersion
989
- * @returns NotificationDtoListEnvelope OK
1260
+ * @returns TenantSegmentDtoEnvelope OK
990
1261
  * @throws ApiError
991
1262
  */
992
- public static getApiV2TenantsNotifications(
1263
+ public static deleteTenantSegment(
993
1264
  tenantId: string,
1265
+ tenantSegmentId: string,
994
1266
  xApiVersion?: string,
995
- ): CancelablePromise<NotificationDtoListEnvelope> {
1267
+ ): CancelablePromise<TenantSegmentDtoEnvelope> {
996
1268
  return __request(OpenAPI, {
997
- method: 'GET',
998
- url: '/api/v2/Tenants/{tenantId}/Notifications',
1269
+ method: 'DELETE',
1270
+ url: '/api/v2/Segments/{tenantSegmentId}',
999
1271
  path: {
1000
- 'tenantId': tenantId,
1272
+ 'tenantSegmentId': tenantSegmentId,
1001
1273
  },
1002
1274
  headers: {
1003
1275
  'x-api-version': xApiVersion,
1004
1276
  },
1277
+ query: {
1278
+ 'tenantId': tenantId,
1279
+ },
1005
1280
  errors: {
1006
1281
  401: `Unauthorized`,
1007
1282
  403: `Forbidden`,
@@ -1009,24 +1284,2446 @@ export class TenantsService {
1009
1284
  });
1010
1285
  }
1011
1286
  /**
1287
+ * Update a tenant segment
1288
+ * Update a tenant segment
1012
1289
  * @param tenantId
1290
+ * @param tenantSegmentId
1013
1291
  * @param xApiVersion
1014
- * @returns Int32Envelope OK
1292
+ * @param requestBody
1293
+ * @returns TenantSegmentDtoEnvelope OK
1015
1294
  * @throws ApiError
1016
1295
  */
1017
- public static getApiV2TenantsNotificationsCount(
1296
+ public static updateTenantSegment(
1018
1297
  tenantId: string,
1298
+ tenantSegmentId: string,
1019
1299
  xApiVersion?: string,
1020
- ): CancelablePromise<Int32Envelope> {
1300
+ requestBody?: TenantSegmentUpdateDto,
1301
+ ): CancelablePromise<TenantSegmentDtoEnvelope> {
1021
1302
  return __request(OpenAPI, {
1022
- method: 'GET',
1023
- url: '/api/v2/Tenants/{tenantId}/Notifications/Count',
1303
+ method: 'PUT',
1304
+ url: '/api/v2/Segments/{tenantSegmentId}',
1024
1305
  path: {
1025
- 'tenantId': tenantId,
1306
+ 'tenantSegmentId': tenantSegmentId,
1026
1307
  },
1027
1308
  headers: {
1028
1309
  'x-api-version': xApiVersion,
1029
1310
  },
1311
+ query: {
1312
+ 'tenantId': tenantId,
1313
+ },
1314
+ body: requestBody,
1315
+ mediaType: 'application/json',
1316
+ errors: {
1317
+ 401: `Unauthorized`,
1318
+ 403: `Forbidden`,
1319
+ },
1320
+ });
1321
+ }
1322
+ /**
1323
+ * Partially update a tenant segment
1324
+ * Partially update a tenant segment
1325
+ * @param tenantId
1326
+ * @param tenantSegmentId
1327
+ * @param xApiVersion
1328
+ * @param requestBody
1329
+ * @returns TenantSegmentDtoEnvelope OK
1330
+ * @throws ApiError
1331
+ */
1332
+ public static patchTenantSegment(
1333
+ tenantId: string,
1334
+ tenantSegmentId: string,
1335
+ xApiVersion?: string,
1336
+ requestBody?: Array<Operation>,
1337
+ ): CancelablePromise<TenantSegmentDtoEnvelope> {
1338
+ return __request(OpenAPI, {
1339
+ method: 'PATCH',
1340
+ url: '/api/v2/Segments/{tenantSegmentId}',
1341
+ path: {
1342
+ 'tenantSegmentId': tenantSegmentId,
1343
+ },
1344
+ headers: {
1345
+ 'x-api-version': xApiVersion,
1346
+ },
1347
+ query: {
1348
+ 'tenantId': tenantId,
1349
+ },
1350
+ body: requestBody,
1351
+ mediaType: 'application/json',
1352
+ errors: {
1353
+ 401: `Unauthorized`,
1354
+ 403: `Forbidden`,
1355
+ },
1356
+ });
1357
+ }
1358
+ /**
1359
+ * Create a new tenant team contact enrollment
1360
+ * Create a new tenant team contact enrollment
1361
+ * @param tenantId
1362
+ * @param xApiVersion
1363
+ * @param requestBody
1364
+ * @returns TenantTeamContactEnrollmentDtoEnvelope Created
1365
+ * @throws ApiError
1366
+ */
1367
+ public static createTenantContactEnrollmentAsync(
1368
+ tenantId: string,
1369
+ xApiVersion?: string,
1370
+ requestBody?: TenantTeamContactEnrollmentCreateDto,
1371
+ ): CancelablePromise<TenantTeamContactEnrollmentDtoEnvelope> {
1372
+ return __request(OpenAPI, {
1373
+ method: 'POST',
1374
+ url: '/api/v2/TeamContactEnrollments',
1375
+ headers: {
1376
+ 'x-api-version': xApiVersion,
1377
+ },
1378
+ query: {
1379
+ 'tenantId': tenantId,
1380
+ },
1381
+ body: requestBody,
1382
+ mediaType: 'application/json',
1383
+ errors: {
1384
+ 401: `Unauthorized`,
1385
+ 403: `Forbidden`,
1386
+ },
1387
+ });
1388
+ }
1389
+ /**
1390
+ * Retrieve a list of tenant team contact enrollments for a specific tenant
1391
+ * Retrieve a list of tenant team contact enrollments for a specific tenant
1392
+ * @param tenantId
1393
+ * @param xApiVersion
1394
+ * @returns TenantTeamContactEnrollmentDtoListEnvelope OK
1395
+ * @throws ApiError
1396
+ */
1397
+ public static getTenantTeamContactEnrollmentsAsync(
1398
+ tenantId: string,
1399
+ xApiVersion?: string,
1400
+ ): CancelablePromise<TenantTeamContactEnrollmentDtoListEnvelope> {
1401
+ return __request(OpenAPI, {
1402
+ method: 'GET',
1403
+ url: '/api/v2/TeamContactEnrollments',
1404
+ headers: {
1405
+ 'x-api-version': xApiVersion,
1406
+ },
1407
+ query: {
1408
+ 'tenantId': tenantId,
1409
+ },
1410
+ errors: {
1411
+ 401: `Unauthorized`,
1412
+ 403: `Forbidden`,
1413
+ },
1414
+ });
1415
+ }
1416
+ /**
1417
+ * Retrieve a single tenant team contact enrollment by its ID
1418
+ * Retrieve a single tenant team contact enrollment by its ID
1419
+ * @param tenantTeamContactEnrollmentId
1420
+ * @param xApiVersion
1421
+ * @returns TenantTeamContactEnrollmentDtoEnvelope OK
1422
+ * @throws ApiError
1423
+ */
1424
+ public static getTenantTeamContactEnrollmentByIdAsync(
1425
+ tenantTeamContactEnrollmentId: string,
1426
+ xApiVersion?: string,
1427
+ ): CancelablePromise<TenantTeamContactEnrollmentDtoEnvelope> {
1428
+ return __request(OpenAPI, {
1429
+ method: 'GET',
1430
+ url: '/api/v2/TeamContactEnrollments/{tenantTeamContactEnrollmentId}',
1431
+ path: {
1432
+ 'tenantTeamContactEnrollmentId': tenantTeamContactEnrollmentId,
1433
+ },
1434
+ headers: {
1435
+ 'x-api-version': xApiVersion,
1436
+ },
1437
+ errors: {
1438
+ 401: `Unauthorized`,
1439
+ 403: `Forbidden`,
1440
+ },
1441
+ });
1442
+ }
1443
+ /**
1444
+ * Delete a tenant team contact enrollment
1445
+ * Delete a tenant team contact enrollment
1446
+ * @param tenantId
1447
+ * @param tenantTeamContactEnrollmentId
1448
+ * @param xApiVersion
1449
+ * @returns TenantTeamContactEnrollmentDtoEnvelope OK
1450
+ * @throws ApiError
1451
+ */
1452
+ public static deleteTenantTeamContactEnrollmentAsync(
1453
+ tenantId: string,
1454
+ tenantTeamContactEnrollmentId: string,
1455
+ xApiVersion?: string,
1456
+ ): CancelablePromise<TenantTeamContactEnrollmentDtoEnvelope> {
1457
+ return __request(OpenAPI, {
1458
+ method: 'DELETE',
1459
+ url: '/api/v2/TeamContactEnrollments/{tenantTeamContactEnrollmentId}',
1460
+ path: {
1461
+ 'tenantTeamContactEnrollmentId': tenantTeamContactEnrollmentId,
1462
+ },
1463
+ headers: {
1464
+ 'x-api-version': xApiVersion,
1465
+ },
1466
+ query: {
1467
+ 'tenantId': tenantId,
1468
+ },
1469
+ errors: {
1470
+ 401: `Unauthorized`,
1471
+ 403: `Forbidden`,
1472
+ },
1473
+ });
1474
+ }
1475
+ /**
1476
+ * Partially updates a tenant team contact enrollment by its ID
1477
+ * Partially updates a tenant team contact enrollment by its ID
1478
+ * @param tenantId
1479
+ * @param tenantTeamContactEnrollmentId
1480
+ * @param xApiVersion
1481
+ * @param requestBody
1482
+ * @returns TenantTeamContactEnrollmentDtoEnvelope OK
1483
+ * @throws ApiError
1484
+ */
1485
+ public static patchTenantTeamContactEnrollmentAsync(
1486
+ tenantId: string,
1487
+ tenantTeamContactEnrollmentId: string,
1488
+ xApiVersion?: string,
1489
+ requestBody?: Array<Operation>,
1490
+ ): CancelablePromise<TenantTeamContactEnrollmentDtoEnvelope> {
1491
+ return __request(OpenAPI, {
1492
+ method: 'PATCH',
1493
+ url: '/api/v2/TeamContactEnrollments/{tenantTeamContactEnrollmentId}',
1494
+ path: {
1495
+ 'tenantTeamContactEnrollmentId': tenantTeamContactEnrollmentId,
1496
+ },
1497
+ headers: {
1498
+ 'x-api-version': xApiVersion,
1499
+ },
1500
+ query: {
1501
+ 'tenantId': tenantId,
1502
+ },
1503
+ body: requestBody,
1504
+ mediaType: 'application/json',
1505
+ errors: {
1506
+ 401: `Unauthorized`,
1507
+ 403: `Forbidden`,
1508
+ },
1509
+ });
1510
+ }
1511
+ /**
1512
+ * Update a tenant team contact enrollment by its ID
1513
+ * Update a tenant team contact enrollment by its ID
1514
+ * @param tenantId
1515
+ * @param tenantTeamContactEnrollmentId
1516
+ * @param xApiVersion
1517
+ * @param requestBody
1518
+ * @returns TenantTeamContactEnrollmentDtoEnvelope OK
1519
+ * @throws ApiError
1520
+ */
1521
+ public static updateTenantTeamContactEnrollmentAsync(
1522
+ tenantId: string,
1523
+ tenantTeamContactEnrollmentId: string,
1524
+ xApiVersion?: string,
1525
+ requestBody?: TenantTeamContactEnrollmentUpdateDto,
1526
+ ): CancelablePromise<TenantTeamContactEnrollmentDtoEnvelope> {
1527
+ return __request(OpenAPI, {
1528
+ method: 'PUT',
1529
+ url: '/api/v2/TeamContactEnrollments/{tenantTeamContactEnrollmentId}',
1530
+ path: {
1531
+ 'tenantTeamContactEnrollmentId': tenantTeamContactEnrollmentId,
1532
+ },
1533
+ headers: {
1534
+ 'x-api-version': xApiVersion,
1535
+ },
1536
+ query: {
1537
+ 'tenantId': tenantId,
1538
+ },
1539
+ body: requestBody,
1540
+ mediaType: 'application/json',
1541
+ errors: {
1542
+ 401: `Unauthorized`,
1543
+ 403: `Forbidden`,
1544
+ },
1545
+ });
1546
+ }
1547
+ /**
1548
+ * Create a new tenant team project enrollment
1549
+ * Create a new tenant team project enrollment
1550
+ * @param tenantId
1551
+ * @param xApiVersion
1552
+ * @param requestBody
1553
+ * @returns TenantTeamProjectEnrollmentDtoEnvelope Created
1554
+ * @throws ApiError
1555
+ */
1556
+ public static createTenantTeamProjectEnrollmentAsync(
1557
+ tenantId: string,
1558
+ xApiVersion?: string,
1559
+ requestBody?: TenantTeamProjectEnrollmentCreateDto,
1560
+ ): CancelablePromise<TenantTeamProjectEnrollmentDtoEnvelope> {
1561
+ return __request(OpenAPI, {
1562
+ method: 'POST',
1563
+ url: '/api/v2/TeamProjectEnrollment',
1564
+ headers: {
1565
+ 'x-api-version': xApiVersion,
1566
+ },
1567
+ query: {
1568
+ 'tenantId': tenantId,
1569
+ },
1570
+ body: requestBody,
1571
+ mediaType: 'application/json',
1572
+ errors: {
1573
+ 401: `Unauthorized`,
1574
+ 403: `Forbidden`,
1575
+ },
1576
+ });
1577
+ }
1578
+ /**
1579
+ * Retrieve a list of tenant team project enrollments by tenant ID
1580
+ * Retrieve a list of tenant team project enrollments by tenant ID
1581
+ * @param tenantId
1582
+ * @param xApiVersion
1583
+ * @returns TenantTeamProjectEnrollmentDtoListEnvelope OK
1584
+ * @throws ApiError
1585
+ */
1586
+ public static getTenantTeamProjectEnrollmentsAsync(
1587
+ tenantId: string,
1588
+ xApiVersion?: string,
1589
+ ): CancelablePromise<TenantTeamProjectEnrollmentDtoListEnvelope> {
1590
+ return __request(OpenAPI, {
1591
+ method: 'GET',
1592
+ url: '/api/v2/TeamProjectEnrollment',
1593
+ headers: {
1594
+ 'x-api-version': xApiVersion,
1595
+ },
1596
+ query: {
1597
+ 'tenantId': tenantId,
1598
+ },
1599
+ errors: {
1600
+ 401: `Unauthorized`,
1601
+ 403: `Forbidden`,
1602
+ },
1603
+ });
1604
+ }
1605
+ /**
1606
+ * Retrieve a single tenant team project enrollment by its ID
1607
+ * Retrieve a single tenant team project enrollment by its ID
1608
+ * @param tenantTeamId
1609
+ * @param xApiVersion
1610
+ * @returns TenantTeamProjectEnrollmentDtoEnvelope OK
1611
+ * @throws ApiError
1612
+ */
1613
+ public static getTenantTeamProjectEnrollmentByIdAsync(
1614
+ tenantTeamId: string,
1615
+ xApiVersion?: string,
1616
+ ): CancelablePromise<TenantTeamProjectEnrollmentDtoEnvelope> {
1617
+ return __request(OpenAPI, {
1618
+ method: 'GET',
1619
+ url: '/api/v2/TeamProjectEnrollment/{tenantTeamId}',
1620
+ path: {
1621
+ 'tenantTeamId': tenantTeamId,
1622
+ },
1623
+ headers: {
1624
+ 'x-api-version': xApiVersion,
1625
+ },
1626
+ errors: {
1627
+ 401: `Unauthorized`,
1628
+ 403: `Forbidden`,
1629
+ },
1630
+ });
1631
+ }
1632
+ /**
1633
+ * Delete a tenant team project enrollment
1634
+ * Delete a tenant team project enrollment
1635
+ * @param tenantId
1636
+ * @param tenantTeamId
1637
+ * @param xApiVersion
1638
+ * @returns TenantTeamProjectEnrollmentDtoEnvelope OK
1639
+ * @throws ApiError
1640
+ */
1641
+ public static deleteTenantTeamProjectEnrollmentAsync(
1642
+ tenantId: string,
1643
+ tenantTeamId: string,
1644
+ xApiVersion?: string,
1645
+ ): CancelablePromise<TenantTeamProjectEnrollmentDtoEnvelope> {
1646
+ return __request(OpenAPI, {
1647
+ method: 'DELETE',
1648
+ url: '/api/v2/TeamProjectEnrollment/{tenantTeamId}',
1649
+ path: {
1650
+ 'tenantTeamId': tenantTeamId,
1651
+ },
1652
+ headers: {
1653
+ 'x-api-version': xApiVersion,
1654
+ },
1655
+ query: {
1656
+ 'tenantId': tenantId,
1657
+ },
1658
+ errors: {
1659
+ 401: `Unauthorized`,
1660
+ 403: `Forbidden`,
1661
+ },
1662
+ });
1663
+ }
1664
+ /**
1665
+ * Partially updates a tenant team project enrollment
1666
+ * Partially updates a tenant team project enrollment
1667
+ * @param tenantTeamId
1668
+ * @param xApiVersion
1669
+ * @param requestBody
1670
+ * @returns TenantTeamProjectEnrollmentDtoEnvelope OK
1671
+ * @throws ApiError
1672
+ */
1673
+ public static patchTenantTeamProjectEnrollmentAsync(
1674
+ tenantTeamId: string,
1675
+ xApiVersion?: string,
1676
+ requestBody?: Array<Operation>,
1677
+ ): CancelablePromise<TenantTeamProjectEnrollmentDtoEnvelope> {
1678
+ return __request(OpenAPI, {
1679
+ method: 'PATCH',
1680
+ url: '/api/v2/TeamProjectEnrollment/{tenantTeamId}',
1681
+ path: {
1682
+ 'tenantTeamId': tenantTeamId,
1683
+ },
1684
+ headers: {
1685
+ 'x-api-version': xApiVersion,
1686
+ },
1687
+ body: requestBody,
1688
+ mediaType: 'application/json',
1689
+ errors: {
1690
+ 401: `Unauthorized`,
1691
+ 403: `Forbidden`,
1692
+ },
1693
+ });
1694
+ }
1695
+ /**
1696
+ * Update a tenant team project enrollment
1697
+ * Update a tenant team project enrollment
1698
+ * @param tenantTeamId
1699
+ * @param xApiVersion
1700
+ * @param requestBody
1701
+ * @returns TenantTeamProjectEnrollmentDtoEnvelope OK
1702
+ * @throws ApiError
1703
+ */
1704
+ public static updateTenantTeamProjectEnrollmentAsync(
1705
+ tenantTeamId: string,
1706
+ xApiVersion?: string,
1707
+ requestBody?: TenantTeamProjectEnrollmentUpdateDto,
1708
+ ): CancelablePromise<TenantTeamProjectEnrollmentDtoEnvelope> {
1709
+ return __request(OpenAPI, {
1710
+ method: 'PUT',
1711
+ url: '/api/v2/TeamProjectEnrollment/{tenantTeamId}',
1712
+ path: {
1713
+ 'tenantTeamId': tenantTeamId,
1714
+ },
1715
+ headers: {
1716
+ 'x-api-version': xApiVersion,
1717
+ },
1718
+ body: requestBody,
1719
+ mediaType: 'application/json',
1720
+ errors: {
1721
+ 401: `Unauthorized`,
1722
+ 403: `Forbidden`,
1723
+ },
1724
+ });
1725
+ }
1726
+ /**
1727
+ * Create a new tenant team record
1728
+ * Create a new tenant team record
1729
+ * @param tenantId
1730
+ * @param xApiVersion
1731
+ * @param requestBody
1732
+ * @returns TenantTeamRecordDtoEnvelope Created
1733
+ * @throws ApiError
1734
+ */
1735
+ public static createTenantTeamRecordAsync(
1736
+ tenantId: string,
1737
+ xApiVersion?: string,
1738
+ requestBody?: TenantTeamRecordCreateDto,
1739
+ ): CancelablePromise<TenantTeamRecordDtoEnvelope> {
1740
+ return __request(OpenAPI, {
1741
+ method: 'POST',
1742
+ url: '/api/v2/TeamRecords',
1743
+ headers: {
1744
+ 'x-api-version': xApiVersion,
1745
+ },
1746
+ query: {
1747
+ 'tenantId': tenantId,
1748
+ },
1749
+ body: requestBody,
1750
+ mediaType: 'application/json',
1751
+ errors: {
1752
+ 401: `Unauthorized`,
1753
+ 403: `Forbidden`,
1754
+ },
1755
+ });
1756
+ }
1757
+ /**
1758
+ * Retrieve a list of tenant team records related to a specific tenant
1759
+ * Retrieve a list of tenant team records related to a specific tenant
1760
+ * @param tenantId
1761
+ * @param xApiVersion
1762
+ * @returns TenantTeamRecordDtoListEnvelope OK
1763
+ * @throws ApiError
1764
+ */
1765
+ public static getTenantTeamRecordsAsync(
1766
+ tenantId: string,
1767
+ xApiVersion?: string,
1768
+ ): CancelablePromise<TenantTeamRecordDtoListEnvelope> {
1769
+ return __request(OpenAPI, {
1770
+ method: 'GET',
1771
+ url: '/api/v2/TeamRecords',
1772
+ headers: {
1773
+ 'x-api-version': xApiVersion,
1774
+ },
1775
+ query: {
1776
+ 'tenantId': tenantId,
1777
+ },
1778
+ errors: {
1779
+ 401: `Unauthorized`,
1780
+ 403: `Forbidden`,
1781
+ },
1782
+ });
1783
+ }
1784
+ /**
1785
+ * Retrieve a single tenant team record by its ID
1786
+ * Retrieve a single tenant team record by its ID
1787
+ * @param tenantTeamId
1788
+ * @param xApiVersion
1789
+ * @returns TenantTeamRecordDtoEnvelope OK
1790
+ * @throws ApiError
1791
+ */
1792
+ public static getTenantTeamRecordByIdAsync(
1793
+ tenantTeamId: string,
1794
+ xApiVersion?: string,
1795
+ ): CancelablePromise<TenantTeamRecordDtoEnvelope> {
1796
+ return __request(OpenAPI, {
1797
+ method: 'GET',
1798
+ url: '/api/v2/TeamRecords/{tenantTeamId}',
1799
+ path: {
1800
+ 'tenantTeamId': tenantTeamId,
1801
+ },
1802
+ headers: {
1803
+ 'x-api-version': xApiVersion,
1804
+ },
1805
+ errors: {
1806
+ 401: `Unauthorized`,
1807
+ 403: `Forbidden`,
1808
+ },
1809
+ });
1810
+ }
1811
+ /**
1812
+ * Delete a tenant team record by its ID
1813
+ * Delete a tenant team record by its ID
1814
+ * @param tenantId
1815
+ * @param tenantTeamId
1816
+ * @param xApiVersion
1817
+ * @returns TenantTeamRecordDtoEnvelope OK
1818
+ * @throws ApiError
1819
+ */
1820
+ public static deleteTenantTeamRecordAsync(
1821
+ tenantId: string,
1822
+ tenantTeamId: string,
1823
+ xApiVersion?: string,
1824
+ ): CancelablePromise<TenantTeamRecordDtoEnvelope> {
1825
+ return __request(OpenAPI, {
1826
+ method: 'DELETE',
1827
+ url: '/api/v2/TeamRecords/{tenantTeamId}',
1828
+ path: {
1829
+ 'tenantTeamId': tenantTeamId,
1830
+ },
1831
+ headers: {
1832
+ 'x-api-version': xApiVersion,
1833
+ },
1834
+ query: {
1835
+ 'tenantId': tenantId,
1836
+ },
1837
+ errors: {
1838
+ 401: `Unauthorized`,
1839
+ 403: `Forbidden`,
1840
+ },
1841
+ });
1842
+ }
1843
+ /**
1844
+ * Partially updates a tenant team record
1845
+ * Partially updates a tenant team record
1846
+ * @param tenantId
1847
+ * @param tenantTeamId
1848
+ * @param xApiVersion
1849
+ * @param requestBody
1850
+ * @returns EmptyEnvelope OK
1851
+ * @throws ApiError
1852
+ */
1853
+ public static patchTenantTeamRecordAsync(
1854
+ tenantId: string,
1855
+ tenantTeamId: string,
1856
+ xApiVersion?: string,
1857
+ requestBody?: Array<Operation>,
1858
+ ): CancelablePromise<EmptyEnvelope> {
1859
+ return __request(OpenAPI, {
1860
+ method: 'PATCH',
1861
+ url: '/api/v2/TeamRecords/{tenantTeamId}',
1862
+ path: {
1863
+ 'tenantTeamId': tenantTeamId,
1864
+ },
1865
+ headers: {
1866
+ 'x-api-version': xApiVersion,
1867
+ },
1868
+ query: {
1869
+ 'tenantId': tenantId,
1870
+ },
1871
+ body: requestBody,
1872
+ mediaType: 'application/json',
1873
+ errors: {
1874
+ 401: `Unauthorized`,
1875
+ 403: `Forbidden`,
1876
+ },
1877
+ });
1878
+ }
1879
+ /**
1880
+ * Updates a tenant team record
1881
+ * Updates a tenant team record
1882
+ * @param tenantId
1883
+ * @param tenantTeamId
1884
+ * @param xApiVersion
1885
+ * @param requestBody
1886
+ * @returns TenantTeamRecordDtoEnvelope OK
1887
+ * @throws ApiError
1888
+ */
1889
+ public static updateTenantTeamRecordAsync(
1890
+ tenantId: string,
1891
+ tenantTeamId: string,
1892
+ xApiVersion?: string,
1893
+ requestBody?: TenantTeamRecordUpdateDto,
1894
+ ): CancelablePromise<TenantTeamRecordDtoEnvelope> {
1895
+ return __request(OpenAPI, {
1896
+ method: 'PUT',
1897
+ url: '/api/v2/TeamRecords/{tenantTeamId}',
1898
+ path: {
1899
+ 'tenantTeamId': tenantTeamId,
1900
+ },
1901
+ headers: {
1902
+ 'x-api-version': xApiVersion,
1903
+ },
1904
+ query: {
1905
+ 'tenantId': tenantId,
1906
+ },
1907
+ body: requestBody,
1908
+ mediaType: 'application/json',
1909
+ errors: {
1910
+ 401: `Unauthorized`,
1911
+ 403: `Forbidden`,
1912
+ },
1913
+ });
1914
+ }
1915
+ /**
1916
+ * Create a new tenant team
1917
+ * Create a new tenant team
1918
+ * @param tenantId
1919
+ * @param xApiVersion
1920
+ * @param requestBody
1921
+ * @returns TenantTeamDtoEnvelope Created
1922
+ * @throws ApiError
1923
+ */
1924
+ public static createTenantTeamAsync(
1925
+ tenantId: string,
1926
+ xApiVersion?: string,
1927
+ requestBody?: TenantTeamCreateDto,
1928
+ ): CancelablePromise<TenantTeamDtoEnvelope> {
1929
+ return __request(OpenAPI, {
1930
+ method: 'POST',
1931
+ url: '/api/v2/Teams',
1932
+ headers: {
1933
+ 'x-api-version': xApiVersion,
1934
+ },
1935
+ query: {
1936
+ 'tenantId': tenantId,
1937
+ },
1938
+ body: requestBody,
1939
+ mediaType: 'application/json',
1940
+ errors: {
1941
+ 401: `Unauthorized`,
1942
+ 403: `Forbidden`,
1943
+ },
1944
+ });
1945
+ }
1946
+ /**
1947
+ * Retrieve a list of tenant teams related to a specific tenant
1948
+ * Retrieve a list of tenant teams related to a specific tenant
1949
+ * @param tenantId
1950
+ * @param xApiVersion
1951
+ * @returns TenantTeamDtoListEnvelope OK
1952
+ * @throws ApiError
1953
+ */
1954
+ public static getTenantTeamsAsync(
1955
+ tenantId: string,
1956
+ xApiVersion?: string,
1957
+ ): CancelablePromise<TenantTeamDtoListEnvelope> {
1958
+ return __request(OpenAPI, {
1959
+ method: 'GET',
1960
+ url: '/api/v2/Teams',
1961
+ headers: {
1962
+ 'x-api-version': xApiVersion,
1963
+ },
1964
+ query: {
1965
+ 'tenantId': tenantId,
1966
+ },
1967
+ errors: {
1968
+ 401: `Unauthorized`,
1969
+ 403: `Forbidden`,
1970
+ },
1971
+ });
1972
+ }
1973
+ /**
1974
+ * Retrieve a single tenant team by its ID
1975
+ * Retrieve a single tenant team by its ID
1976
+ * @param tenantTeamId
1977
+ * @param xApiVersion
1978
+ * @returns TenantTeamDtoEnvelope OK
1979
+ * @throws ApiError
1980
+ */
1981
+ public static getTenantTeamByIdAsync(
1982
+ tenantTeamId: string,
1983
+ xApiVersion?: string,
1984
+ ): CancelablePromise<TenantTeamDtoEnvelope> {
1985
+ return __request(OpenAPI, {
1986
+ method: 'GET',
1987
+ url: '/api/v2/Teams/{tenantTeamId}',
1988
+ path: {
1989
+ 'tenantTeamId': tenantTeamId,
1990
+ },
1991
+ headers: {
1992
+ 'x-api-version': xApiVersion,
1993
+ },
1994
+ errors: {
1995
+ 401: `Unauthorized`,
1996
+ 403: `Forbidden`,
1997
+ },
1998
+ });
1999
+ }
2000
+ /**
2001
+ * Delete a tenant team by its ID
2002
+ * Delete a tenant team by its ID
2003
+ * @param tenantId
2004
+ * @param tenantTeamId
2005
+ * @param xApiVersion
2006
+ * @returns TenantTeamDtoEnvelope OK
2007
+ * @throws ApiError
2008
+ */
2009
+ public static deleteTenantTeamAsync(
2010
+ tenantId: string,
2011
+ tenantTeamId: string,
2012
+ xApiVersion?: string,
2013
+ ): CancelablePromise<TenantTeamDtoEnvelope> {
2014
+ return __request(OpenAPI, {
2015
+ method: 'DELETE',
2016
+ url: '/api/v2/Teams/{tenantTeamId}',
2017
+ path: {
2018
+ 'tenantTeamId': tenantTeamId,
2019
+ },
2020
+ headers: {
2021
+ 'x-api-version': xApiVersion,
2022
+ },
2023
+ query: {
2024
+ 'tenantId': tenantId,
2025
+ },
2026
+ errors: {
2027
+ 401: `Unauthorized`,
2028
+ 403: `Forbidden`,
2029
+ },
2030
+ });
2031
+ }
2032
+ /**
2033
+ * Partially updates a tenant team by its ID
2034
+ * Partially updates a tenant team by its ID
2035
+ * @param tenantId
2036
+ * @param tenantTeamId
2037
+ * @param xApiVersion
2038
+ * @param requestBody
2039
+ * @returns EmptyEnvelope OK
2040
+ * @throws ApiError
2041
+ */
2042
+ public static patchTenantTeamAsync(
2043
+ tenantId: string,
2044
+ tenantTeamId: string,
2045
+ xApiVersion?: string,
2046
+ requestBody?: Array<Operation>,
2047
+ ): CancelablePromise<EmptyEnvelope> {
2048
+ return __request(OpenAPI, {
2049
+ method: 'PATCH',
2050
+ url: '/api/v2/Teams/{tenantTeamId}',
2051
+ path: {
2052
+ 'tenantTeamId': tenantTeamId,
2053
+ },
2054
+ headers: {
2055
+ 'x-api-version': xApiVersion,
2056
+ },
2057
+ query: {
2058
+ 'tenantId': tenantId,
2059
+ },
2060
+ body: requestBody,
2061
+ mediaType: 'application/json',
2062
+ errors: {
2063
+ 401: `Unauthorized`,
2064
+ 403: `Forbidden`,
2065
+ },
2066
+ });
2067
+ }
2068
+ /**
2069
+ * Updates a tenant team
2070
+ * Updates a tenant team and returns an envelope.
2071
+ * @param tenantId
2072
+ * @param tenantTeamId
2073
+ * @param xApiVersion
2074
+ * @param requestBody
2075
+ * @returns TenantTeamDtoEnvelope OK
2076
+ * @throws ApiError
2077
+ */
2078
+ public static updateTenantTeamAsync(
2079
+ tenantId: string,
2080
+ tenantTeamId: string,
2081
+ xApiVersion?: string,
2082
+ requestBody?: TenantTeamUpdateDto,
2083
+ ): CancelablePromise<TenantTeamDtoEnvelope> {
2084
+ return __request(OpenAPI, {
2085
+ method: 'PUT',
2086
+ url: '/api/v2/Teams/{tenantTeamId}',
2087
+ path: {
2088
+ 'tenantTeamId': tenantTeamId,
2089
+ },
2090
+ headers: {
2091
+ 'x-api-version': xApiVersion,
2092
+ },
2093
+ query: {
2094
+ 'tenantId': tenantId,
2095
+ },
2096
+ body: requestBody,
2097
+ mediaType: 'application/json',
2098
+ errors: {
2099
+ 401: `Unauthorized`,
2100
+ 403: `Forbidden`,
2101
+ },
2102
+ });
2103
+ }
2104
+ /**
2105
+ * Get the root tenant of the platform
2106
+ * Get the root tenant of the platform
2107
+ * @param xApiVersion
2108
+ * @returns TenantDtoEnvelope OK
2109
+ * @throws ApiError
2110
+ */
2111
+ public static getRootTenantAsync(
2112
+ xApiVersion?: string,
2113
+ ): CancelablePromise<TenantDtoEnvelope> {
2114
+ return __request(OpenAPI, {
2115
+ method: 'GET',
2116
+ url: '/api/v2/Tenants/Root',
2117
+ headers: {
2118
+ 'x-api-version': xApiVersion,
2119
+ },
2120
+ errors: {
2121
+ 401: `Unauthorized`,
2122
+ 403: `Forbidden`,
2123
+ },
2124
+ });
2125
+ }
2126
+ /**
2127
+ * Get the user's current default tenant
2128
+ * Get the user's current default tenant
2129
+ * @param tenantId
2130
+ * @param xApiVersion
2131
+ * @returns TenantDtoEnvelope OK
2132
+ * @throws ApiError
2133
+ */
2134
+ public static getCurrentTenant(
2135
+ tenantId: string,
2136
+ xApiVersion?: string,
2137
+ ): CancelablePromise<TenantDtoEnvelope> {
2138
+ return __request(OpenAPI, {
2139
+ method: 'GET',
2140
+ url: '/api/v2/Tenants/Current',
2141
+ headers: {
2142
+ 'x-api-version': xApiVersion,
2143
+ },
2144
+ query: {
2145
+ 'tenantId': tenantId,
2146
+ },
2147
+ errors: {
2148
+ 401: `Unauthorized`,
2149
+ 403: `Forbidden`,
2150
+ },
2151
+ });
2152
+ }
2153
+ /**
2154
+ * Get a specific tenant by ID
2155
+ * Get a specific tenant by ID
2156
+ * @param tenantId
2157
+ * @param xApiVersion
2158
+ * @returns TenantDtoEnvelope OK
2159
+ * @throws ApiError
2160
+ */
2161
+ public static getTenant(
2162
+ tenantId: string,
2163
+ xApiVersion?: string,
2164
+ ): CancelablePromise<TenantDtoEnvelope> {
2165
+ return __request(OpenAPI, {
2166
+ method: 'GET',
2167
+ url: '/api/v2/Tenants/{tenantId}',
2168
+ path: {
2169
+ 'tenantId': tenantId,
2170
+ },
2171
+ headers: {
2172
+ 'x-api-version': xApiVersion,
2173
+ },
2174
+ errors: {
2175
+ 401: `Unauthorized`,
2176
+ 403: `Forbidden`,
2177
+ },
2178
+ });
2179
+ }
2180
+ /**
2181
+ * Update a tenant's profile
2182
+ * Update a tenant's profile
2183
+ * @param tenantId
2184
+ * @param xApiVersion
2185
+ * @param requestBody
2186
+ * @returns EmptyEnvelope OK
2187
+ * @throws ApiError
2188
+ */
2189
+ public static updateTenant(
2190
+ tenantId: string,
2191
+ xApiVersion?: string,
2192
+ requestBody?: TenantUpdateDto,
2193
+ ): CancelablePromise<EmptyEnvelope> {
2194
+ return __request(OpenAPI, {
2195
+ method: 'PUT',
2196
+ url: '/api/v2/Tenants/{tenantId}',
2197
+ path: {
2198
+ 'tenantId': tenantId,
2199
+ },
2200
+ headers: {
2201
+ 'x-api-version': xApiVersion,
2202
+ },
2203
+ body: requestBody,
2204
+ mediaType: 'application/json',
2205
+ errors: {
2206
+ 401: `Unauthorized`,
2207
+ 403: `Forbidden`,
2208
+ },
2209
+ });
2210
+ }
2211
+ /**
2212
+ * Patch a tenant's profile
2213
+ * Patch a tenant's profile
2214
+ * @param tenantId
2215
+ * @param xApiVersion
2216
+ * @param requestBody
2217
+ * @returns EmptyEnvelope OK
2218
+ * @throws ApiError
2219
+ */
2220
+ public static patchTenant(
2221
+ tenantId: string,
2222
+ xApiVersion?: string,
2223
+ requestBody?: Array<Operation>,
2224
+ ): CancelablePromise<EmptyEnvelope> {
2225
+ return __request(OpenAPI, {
2226
+ method: 'PATCH',
2227
+ url: '/api/v2/Tenants/{tenantId}',
2228
+ path: {
2229
+ 'tenantId': tenantId,
2230
+ },
2231
+ headers: {
2232
+ 'x-api-version': xApiVersion,
2233
+ },
2234
+ body: requestBody,
2235
+ mediaType: 'application/json',
2236
+ errors: {
2237
+ 401: `Unauthorized`,
2238
+ 403: `Forbidden`,
2239
+ },
2240
+ });
2241
+ }
2242
+ /**
2243
+ * Get an extended tenant's business profile
2244
+ * Get an extended tenant's business profile
2245
+ * @param tenantId
2246
+ * @param xApiVersion
2247
+ * @returns ExtendedTenantDtoEnvelope OK
2248
+ * @throws ApiError
2249
+ */
2250
+ public static getExtendedTenant(
2251
+ tenantId: string,
2252
+ xApiVersion?: string,
2253
+ ): CancelablePromise<ExtendedTenantDtoEnvelope> {
2254
+ return __request(OpenAPI, {
2255
+ method: 'GET',
2256
+ url: '/api/v2/Tenants/{tenantId}/Extended',
2257
+ path: {
2258
+ 'tenantId': tenantId,
2259
+ },
2260
+ headers: {
2261
+ 'x-api-version': xApiVersion,
2262
+ },
2263
+ errors: {
2264
+ 401: `Unauthorized`,
2265
+ 403: `Forbidden`,
2266
+ },
2267
+ });
2268
+ }
2269
+ /**
2270
+ * Get a tenant's avatar
2271
+ * Get a tenant's avatar
2272
+ * @param tenantId
2273
+ * @param xApiVersion
2274
+ * @returns EmptyEnvelope OK
2275
+ * @throws ApiError
2276
+ */
2277
+ public static getTenantAvatarAsync(
2278
+ tenantId: string,
2279
+ xApiVersion?: string,
2280
+ ): CancelablePromise<EmptyEnvelope> {
2281
+ return __request(OpenAPI, {
2282
+ method: 'GET',
2283
+ url: '/api/v2/Tenants/{tenantId}/Avatar',
2284
+ path: {
2285
+ 'tenantId': tenantId,
2286
+ },
2287
+ headers: {
2288
+ 'x-api-version': xApiVersion,
2289
+ },
2290
+ errors: {
2291
+ 401: `Unauthorized`,
2292
+ 403: `Forbidden`,
2293
+ },
2294
+ });
2295
+ }
2296
+ /**
2297
+ * Update a tenant's avatar
2298
+ * Update a tenant's avatar
2299
+ * @param tenantId
2300
+ * @param xApiVersion
2301
+ * @param formData
2302
+ * @returns EmptyEnvelope OK
2303
+ * @throws ApiError
2304
+ */
2305
+ public static updateAvatarAsync(
2306
+ tenantId: string,
2307
+ xApiVersion?: string,
2308
+ formData?: {
2309
+ avatar?: Blob;
2310
+ },
2311
+ ): CancelablePromise<EmptyEnvelope> {
2312
+ return __request(OpenAPI, {
2313
+ method: 'POST',
2314
+ url: '/api/v2/Tenants/{tenantId}/Avatar',
2315
+ path: {
2316
+ 'tenantId': tenantId,
2317
+ },
2318
+ headers: {
2319
+ 'x-api-version': xApiVersion,
2320
+ },
2321
+ formData: formData,
2322
+ mediaType: 'multipart/form-data',
2323
+ errors: {
2324
+ 401: `Unauthorized`,
2325
+ 403: `Forbidden`,
2326
+ },
2327
+ });
2328
+ }
2329
+ /**
2330
+ * Get a tenant's billing profile (A.K.A. Wallet Account)
2331
+ * Get a tenant's billing profile (A.K.A. Wallet Account)
2332
+ * @param tenantId
2333
+ * @param xApiVersion
2334
+ * @returns WalletDtoEnvelope OK
2335
+ * @throws ApiError
2336
+ */
2337
+ public static getTenantWallet(
2338
+ tenantId: string,
2339
+ xApiVersion?: string,
2340
+ ): CancelablePromise<WalletDtoEnvelope> {
2341
+ return __request(OpenAPI, {
2342
+ method: 'GET',
2343
+ url: '/api/v2/Tenants/{tenantId}/Wallet',
2344
+ path: {
2345
+ 'tenantId': tenantId,
2346
+ },
2347
+ headers: {
2348
+ 'x-api-version': xApiVersion,
2349
+ },
2350
+ errors: {
2351
+ 401: `Unauthorized`,
2352
+ 403: `Forbidden`,
2353
+ },
2354
+ });
2355
+ }
2356
+ /**
2357
+ * Get a tenant's social profile
2358
+ * Get a tenant's social profile
2359
+ * @param tenantId
2360
+ * @param xApiVersion
2361
+ * @returns SocialProfileDtoEnvelope OK
2362
+ * @throws ApiError
2363
+ */
2364
+ public static getTenantSocialProfile(
2365
+ tenantId: string,
2366
+ xApiVersion?: string,
2367
+ ): CancelablePromise<SocialProfileDtoEnvelope> {
2368
+ return __request(OpenAPI, {
2369
+ method: 'GET',
2370
+ url: '/api/v2/Tenants/{tenantId}/SocialProfile',
2371
+ path: {
2372
+ 'tenantId': tenantId,
2373
+ },
2374
+ headers: {
2375
+ 'x-api-version': xApiVersion,
2376
+ },
2377
+ errors: {
2378
+ 401: `Unauthorized`,
2379
+ 403: `Forbidden`,
2380
+ },
2381
+ });
2382
+ }
2383
+ /**
2384
+ * Get a tenant's default cart
2385
+ * Get a tenant's default cart
2386
+ * @param tenantId
2387
+ * @param xApiVersion
2388
+ * @returns CartDtoEnvelope OK
2389
+ * @throws ApiError
2390
+ */
2391
+ public static getTenantCart(
2392
+ tenantId: string,
2393
+ xApiVersion?: string,
2394
+ ): CancelablePromise<CartDtoEnvelope> {
2395
+ return __request(OpenAPI, {
2396
+ method: 'GET',
2397
+ url: '/api/v2/Tenants/{tenantId}/Cart',
2398
+ path: {
2399
+ 'tenantId': tenantId,
2400
+ },
2401
+ headers: {
2402
+ 'x-api-version': xApiVersion,
2403
+ },
2404
+ errors: {
2405
+ 401: `Unauthorized`,
2406
+ 403: `Forbidden`,
2407
+ },
2408
+ });
2409
+ }
2410
+ /**
2411
+ * Get the list of users enrolled in a tenant
2412
+ * Get the list of users enrolled in a tenant
2413
+ * @param tenantId
2414
+ * @param xApiVersion
2415
+ * @returns UserDtoListEnvelope OK
2416
+ * @throws ApiError
2417
+ */
2418
+ public static getTenantEnrollments1(
2419
+ tenantId: string,
2420
+ xApiVersion?: string,
2421
+ ): CancelablePromise<UserDtoListEnvelope> {
2422
+ return __request(OpenAPI, {
2423
+ method: 'GET',
2424
+ url: '/api/v2/Tenants/{tenantId}/Users',
2425
+ path: {
2426
+ 'tenantId': tenantId,
2427
+ },
2428
+ headers: {
2429
+ 'x-api-version': xApiVersion,
2430
+ },
2431
+ errors: {
2432
+ 401: `Unauthorized`,
2433
+ 403: `Forbidden`,
2434
+ },
2435
+ });
2436
+ }
2437
+ /**
2438
+ * Get the list of user enrollments for a tenant
2439
+ * Get the list of user enrollments for a tenant
2440
+ * @param tenantId
2441
+ * @param xApiVersion
2442
+ * @returns TenantEnrolmentDtoListEnvelope OK
2443
+ * @throws ApiError
2444
+ */
2445
+ public static getTenantEnrollments2(
2446
+ tenantId: string,
2447
+ xApiVersion?: string,
2448
+ ): CancelablePromise<TenantEnrolmentDtoListEnvelope> {
2449
+ return __request(OpenAPI, {
2450
+ method: 'GET',
2451
+ url: '/api/v2/Tenants/{tenantId}/Enrollments',
2452
+ path: {
2453
+ 'tenantId': tenantId,
2454
+ },
2455
+ headers: {
2456
+ 'x-api-version': xApiVersion,
2457
+ },
2458
+ errors: {
2459
+ 401: `Unauthorized`,
2460
+ 403: `Forbidden`,
2461
+ },
2462
+ });
2463
+ }
2464
+ /**
2465
+ * Get a specific tenant enrollment
2466
+ * Get a specific tenant enrollment
2467
+ * @param tenantId
2468
+ * @param enrollmentId
2469
+ * @param xApiVersion
2470
+ * @returns TenantEnrolmentDtoEnvelope OK
2471
+ * @throws ApiError
2472
+ */
2473
+ public static getTenantEnrollment(
2474
+ tenantId: string,
2475
+ enrollmentId: string,
2476
+ xApiVersion?: string,
2477
+ ): CancelablePromise<TenantEnrolmentDtoEnvelope> {
2478
+ return __request(OpenAPI, {
2479
+ method: 'GET',
2480
+ url: '/api/v2/Tenants/{tenantId}/Enrollments/{enrollmentId}',
2481
+ path: {
2482
+ 'tenantId': tenantId,
2483
+ 'enrollmentId': enrollmentId,
2484
+ },
2485
+ headers: {
2486
+ 'x-api-version': xApiVersion,
2487
+ },
2488
+ errors: {
2489
+ 401: `Unauthorized`,
2490
+ 403: `Forbidden`,
2491
+ },
2492
+ });
2493
+ }
2494
+ /**
2495
+ * Get a specific tenant enrollment
2496
+ * Get a specific tenant enrollment
2497
+ * @param tenantId
2498
+ * @param enrollmentId
2499
+ * @param xApiVersion
2500
+ * @returns ExtendedTenantEnrolmentDtoEnvelope OK
2501
+ * @throws ApiError
2502
+ */
2503
+ public static getExtendedTenantEnrollment(
2504
+ tenantId: string,
2505
+ enrollmentId: string,
2506
+ xApiVersion?: string,
2507
+ ): CancelablePromise<ExtendedTenantEnrolmentDtoEnvelope> {
2508
+ return __request(OpenAPI, {
2509
+ method: 'GET',
2510
+ url: '/api/v2/Tenants/{tenantId}/Enrollments/{enrollmentId}/Extended',
2511
+ path: {
2512
+ 'tenantId': tenantId,
2513
+ 'enrollmentId': enrollmentId,
2514
+ },
2515
+ headers: {
2516
+ 'x-api-version': xApiVersion,
2517
+ },
2518
+ errors: {
2519
+ 401: `Unauthorized`,
2520
+ 403: `Forbidden`,
2521
+ },
2522
+ });
2523
+ }
2524
+ /**
2525
+ * Get a specific tenant enrollment's permissions list
2526
+ * Get a specific tenant enrollment's permissions list
2527
+ * @param tenantId
2528
+ * @param enrollmentId
2529
+ * @param xApiVersion
2530
+ * @returns StringListEnvelope OK
2531
+ * @throws ApiError
2532
+ */
2533
+ public static getEnrollmentPermissions(
2534
+ tenantId: string,
2535
+ enrollmentId: string,
2536
+ xApiVersion?: string,
2537
+ ): CancelablePromise<StringListEnvelope> {
2538
+ return __request(OpenAPI, {
2539
+ method: 'GET',
2540
+ url: '/api/v2/Tenants/{tenantId}/Enrollments/{enrollmentId}/Permissions',
2541
+ path: {
2542
+ 'tenantId': tenantId,
2543
+ 'enrollmentId': enrollmentId,
2544
+ },
2545
+ headers: {
2546
+ 'x-api-version': xApiVersion,
2547
+ },
2548
+ errors: {
2549
+ 401: `Unauthorized`,
2550
+ 403: `Forbidden`,
2551
+ },
2552
+ });
2553
+ }
2554
+ /**
2555
+ * Validate the existence of a list of roles and permissions for a specific enrollment
2556
+ * Validate the existence of a list of roles and permissions for a specific enrollment
2557
+ * @param tenantId
2558
+ * @param enrollmentId
2559
+ * @param roles
2560
+ * @param permissions
2561
+ * @param xApiVersion
2562
+ * @returns BooleanEnvelope OK
2563
+ * @throws ApiError
2564
+ */
2565
+ public static getEnrollmentPermissions1(
2566
+ tenantId: string,
2567
+ enrollmentId: string,
2568
+ roles?: Array<string>,
2569
+ permissions?: Array<string>,
2570
+ xApiVersion?: string,
2571
+ ): CancelablePromise<BooleanEnvelope> {
2572
+ return __request(OpenAPI, {
2573
+ method: 'GET',
2574
+ url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentID}/Permissions/Validate',
2575
+ path: {
2576
+ 'tenantId': tenantId,
2577
+ 'enrollmentId': enrollmentId,
2578
+ },
2579
+ headers: {
2580
+ 'x-api-version': xApiVersion,
2581
+ },
2582
+ query: {
2583
+ 'roles': roles,
2584
+ 'permissions': permissions,
2585
+ },
2586
+ errors: {
2587
+ 401: `Unauthorized`,
2588
+ 403: `Forbidden`,
2589
+ },
2590
+ });
2591
+ }
2592
+ /**
2593
+ * Get the list of invitations issued by a tenant
2594
+ * Get the list of invitations issued by a tenant
2595
+ * @param tenantId
2596
+ * @param xApiVersion
2597
+ * @returns TenantInvitationDtoListEnvelope OK
2598
+ * @throws ApiError
2599
+ */
2600
+ public static getTenantInvitations(
2601
+ tenantId: string,
2602
+ xApiVersion?: string,
2603
+ ): CancelablePromise<TenantInvitationDtoListEnvelope> {
2604
+ return __request(OpenAPI, {
2605
+ method: 'GET',
2606
+ url: '/api/v2/Tenants/{tenantId}/Invitations',
2607
+ path: {
2608
+ 'tenantId': tenantId,
2609
+ },
2610
+ headers: {
2611
+ 'x-api-version': xApiVersion,
2612
+ },
2613
+ errors: {
2614
+ 401: `Unauthorized`,
2615
+ 403: `Forbidden`,
2616
+ },
2617
+ });
2618
+ }
2619
+ /**
2620
+ * Get the list of invitations issued by a tenant that are pending
2621
+ * Get the list of invitations issued by a tenant that are pending
2622
+ * @param tenantId
2623
+ * @param xApiVersion
2624
+ * @returns TenantInvitationDtoListEnvelope OK
2625
+ * @throws ApiError
2626
+ */
2627
+ public static getPendingInvitations(
2628
+ tenantId: string,
2629
+ xApiVersion?: string,
2630
+ ): CancelablePromise<TenantInvitationDtoListEnvelope> {
2631
+ return __request(OpenAPI, {
2632
+ method: 'GET',
2633
+ url: '/api/v2/Tenants/{tenantId}/Invitations/Pending',
2634
+ path: {
2635
+ 'tenantId': tenantId,
2636
+ },
2637
+ headers: {
2638
+ 'x-api-version': xApiVersion,
2639
+ },
2640
+ errors: {
2641
+ 401: `Unauthorized`,
2642
+ 403: `Forbidden`,
2643
+ },
2644
+ });
2645
+ }
2646
+ /**
2647
+ * Get the list of invitations issued by a tenant that have been redeemed
2648
+ * Get the list of invitations issued by a tenant that have been redeemed
2649
+ * @param tenantId
2650
+ * @param xApiVersion
2651
+ * @returns TenantInvitationDtoListEnvelope OK
2652
+ * @throws ApiError
2653
+ */
2654
+ public static getRedeemedInvitations(
2655
+ tenantId: string,
2656
+ xApiVersion?: string,
2657
+ ): CancelablePromise<TenantInvitationDtoListEnvelope> {
2658
+ return __request(OpenAPI, {
2659
+ method: 'GET',
2660
+ url: '/api/v2/Tenants/{tenantId}/Invitations/Redeemed',
2661
+ path: {
2662
+ 'tenantId': tenantId,
2663
+ },
2664
+ headers: {
2665
+ 'x-api-version': xApiVersion,
2666
+ },
2667
+ errors: {
2668
+ 401: `Unauthorized`,
2669
+ 403: `Forbidden`,
2670
+ },
2671
+ });
2672
+ }
2673
+ /**
2674
+ * Get the list of invitations issued by a tenant that have been revoked
2675
+ * Get the list of invitations issued by a tenant that have been revoked
2676
+ * @param tenantId
2677
+ * @param xApiVersion
2678
+ * @returns TenantInvitationDtoListEnvelope OK
2679
+ * @throws ApiError
2680
+ */
2681
+ public static getRevokedInvitations(
2682
+ tenantId: string,
2683
+ xApiVersion?: string,
2684
+ ): CancelablePromise<TenantInvitationDtoListEnvelope> {
2685
+ return __request(OpenAPI, {
2686
+ method: 'GET',
2687
+ url: '/api/v2/Tenants/{tenantId}/Invitations/Revoked',
2688
+ path: {
2689
+ 'tenantId': tenantId,
2690
+ },
2691
+ headers: {
2692
+ 'x-api-version': xApiVersion,
2693
+ },
2694
+ errors: {
2695
+ 401: `Unauthorized`,
2696
+ 403: `Forbidden`,
2697
+ },
2698
+ });
2699
+ }
2700
+ /**
2701
+ * Get the list of licenses available to a tenant
2702
+ * Get the list of licenses available to a tenant
2703
+ * @param tenantId
2704
+ * @param xApiVersion
2705
+ * @returns SuiteLicenseDtoListEnvelope OK
2706
+ * @throws ApiError
2707
+ */
2708
+ public static getTenantLicenses(
2709
+ tenantId: string,
2710
+ xApiVersion?: string,
2711
+ ): CancelablePromise<SuiteLicenseDtoListEnvelope> {
2712
+ return __request(OpenAPI, {
2713
+ method: 'GET',
2714
+ url: '/api/v2/Tenants/{tenantId}/Licenses',
2715
+ path: {
2716
+ 'tenantId': tenantId,
2717
+ },
2718
+ headers: {
2719
+ 'x-api-version': xApiVersion,
2720
+ },
2721
+ errors: {
2722
+ 401: `Unauthorized`,
2723
+ 403: `Forbidden`,
2724
+ },
2725
+ });
2726
+ }
2727
+ /**
2728
+ * Get the list of licenses available to a specific enrollment
2729
+ * Get the list of licenses available to a specific enrollment
2730
+ * @param tenantId
2731
+ * @param enrollmentId
2732
+ * @param xApiVersion
2733
+ * @returns SuiteLicenseAssignmentDtoListEnvelope OK
2734
+ * @throws ApiError
2735
+ */
2736
+ public static getEnrollmentLicenses(
2737
+ tenantId: string,
2738
+ enrollmentId: string,
2739
+ xApiVersion?: string,
2740
+ ): CancelablePromise<SuiteLicenseAssignmentDtoListEnvelope> {
2741
+ return __request(OpenAPI, {
2742
+ method: 'GET',
2743
+ url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentId}/Licenses',
2744
+ path: {
2745
+ 'tenantId': tenantId,
2746
+ 'enrollmentId': enrollmentId,
2747
+ },
2748
+ headers: {
2749
+ 'x-api-version': xApiVersion,
2750
+ },
2751
+ errors: {
2752
+ 401: `Unauthorized`,
2753
+ 403: `Forbidden`,
2754
+ },
2755
+ });
2756
+ }
2757
+ /**
2758
+ * Get the list of licenses available to a specific enrollment
2759
+ * Get the list of licenses available to a specific enrollment
2760
+ * @param tenantId
2761
+ * @param enrollmentId
2762
+ * @param licenseId
2763
+ * @param xApiVersion
2764
+ * @returns SuiteLicenseDtoListEnvelope OK
2765
+ * @throws ApiError
2766
+ */
2767
+ public static getEnrollmentLicenses1(
2768
+ tenantId: string,
2769
+ enrollmentId: string,
2770
+ licenseId: string,
2771
+ xApiVersion?: string,
2772
+ ): CancelablePromise<SuiteLicenseDtoListEnvelope> {
2773
+ return __request(OpenAPI, {
2774
+ method: 'GET',
2775
+ url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentId}/Licenses/{licenseId}',
2776
+ path: {
2777
+ 'tenantId': tenantId,
2778
+ 'enrollmentId': enrollmentId,
2779
+ 'licenseId': licenseId,
2780
+ },
2781
+ headers: {
2782
+ 'x-api-version': xApiVersion,
2783
+ },
2784
+ errors: {
2785
+ 401: `Unauthorized`,
2786
+ 403: `Forbidden`,
2787
+ },
2788
+ });
2789
+ }
2790
+ /**
2791
+ * Assign a license to a specific enrollment
2792
+ * Assign a license to a specific enrollment
2793
+ * @param tenantId
2794
+ * @param enrollmentId
2795
+ * @param licenseId
2796
+ * @param xApiVersion
2797
+ * @returns SuiteLicenseDtoListEnvelope OK
2798
+ * @throws ApiError
2799
+ */
2800
+ public static assignLicense(
2801
+ tenantId: string,
2802
+ enrollmentId: string,
2803
+ licenseId: string,
2804
+ xApiVersion?: string,
2805
+ ): CancelablePromise<SuiteLicenseDtoListEnvelope> {
2806
+ return __request(OpenAPI, {
2807
+ method: 'POST',
2808
+ url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentId}/Licenses/{licenseId}',
2809
+ path: {
2810
+ 'tenantId': tenantId,
2811
+ 'enrollmentId': enrollmentId,
2812
+ 'licenseId': licenseId,
2813
+ },
2814
+ headers: {
2815
+ 'x-api-version': xApiVersion,
2816
+ },
2817
+ errors: {
2818
+ 401: `Unauthorized`,
2819
+ 403: `Forbidden`,
2820
+ },
2821
+ });
2822
+ }
2823
+ /**
2824
+ * Revoke a license from a specific enrollment
2825
+ * Revoke a license from a specific enrollment
2826
+ * @param tenantId
2827
+ * @param enrollmentId
2828
+ * @param licenseId
2829
+ * @param xApiVersion
2830
+ * @returns SuiteLicenseDtoListEnvelope OK
2831
+ * @throws ApiError
2832
+ */
2833
+ public static revokeLicense(
2834
+ tenantId: string,
2835
+ enrollmentId: string,
2836
+ licenseId: string,
2837
+ xApiVersion?: string,
2838
+ ): CancelablePromise<SuiteLicenseDtoListEnvelope> {
2839
+ return __request(OpenAPI, {
2840
+ method: 'DELETE',
2841
+ url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentId}/Licenses/{licenseId}',
2842
+ path: {
2843
+ 'tenantId': tenantId,
2844
+ 'enrollmentId': enrollmentId,
2845
+ 'licenseId': licenseId,
2846
+ },
2847
+ headers: {
2848
+ 'x-api-version': xApiVersion,
2849
+ },
2850
+ errors: {
2851
+ 401: `Unauthorized`,
2852
+ 403: `Forbidden`,
2853
+ },
2854
+ });
2855
+ }
2856
+ /**
2857
+ * Get the list of features accessible to a specific enrollment
2858
+ * Get the list of features accessible to a specific enrollment
2859
+ * @param tenantId
2860
+ * @param enrollmentId
2861
+ * @param xApiVersion
2862
+ * @returns SuiteLicenseFeatureDtoListEnvelope OK
2863
+ * @throws ApiError
2864
+ */
2865
+ public static getAccessibleFeatures(
2866
+ tenantId: string,
2867
+ enrollmentId: string,
2868
+ xApiVersion?: string,
2869
+ ): CancelablePromise<SuiteLicenseFeatureDtoListEnvelope> {
2870
+ return __request(OpenAPI, {
2871
+ method: 'GET',
2872
+ url: '/api/v2/Tenants/{tenantId}/Enrollments/{enrollmentId}/Features',
2873
+ path: {
2874
+ 'tenantId': tenantId,
2875
+ 'enrollmentId': enrollmentId,
2876
+ },
2877
+ headers: {
2878
+ 'x-api-version': xApiVersion,
2879
+ },
2880
+ errors: {
2881
+ 403: `Forbidden`,
2882
+ },
2883
+ });
2884
+ }
2885
+ /**
2886
+ * Validate the access to a specific feature for a specific enrollment
2887
+ * Validate the access to a specific feature for a specific enrollment
2888
+ * @param tenantId
2889
+ * @param enrollmentId
2890
+ * @param feature
2891
+ * @param xApiVersion
2892
+ * @returns BooleanEnvelope OK
2893
+ * @throws ApiError
2894
+ */
2895
+ public static validateEnrollmentFeatureAccess(
2896
+ tenantId: string,
2897
+ enrollmentId: string,
2898
+ feature?: string,
2899
+ xApiVersion?: string,
2900
+ ): CancelablePromise<BooleanEnvelope> {
2901
+ return __request(OpenAPI, {
2902
+ method: 'GET',
2903
+ url: '/api/v2/Tenants/{tenantId}/Enrollments/{enrollmentId}/HasAccess',
2904
+ path: {
2905
+ 'tenantId': tenantId,
2906
+ 'enrollmentId': enrollmentId,
2907
+ },
2908
+ headers: {
2909
+ 'x-api-version': xApiVersion,
2910
+ },
2911
+ query: {
2912
+ 'feature': feature,
2913
+ },
2914
+ errors: {
2915
+ 403: `Forbidden`,
2916
+ },
2917
+ });
2918
+ }
2919
+ /**
2920
+ * Create a new business tenant
2921
+ * Create a new business tenant
2922
+ * @param xApiVersion
2923
+ * @param requestBody
2924
+ * @returns EmptyEnvelope OK
2925
+ * @throws ApiError
2926
+ */
2927
+ public static createBusinessTenant(
2928
+ xApiVersion?: string,
2929
+ requestBody?: TenantCreateDto,
2930
+ ): CancelablePromise<EmptyEnvelope> {
2931
+ return __request(OpenAPI, {
2932
+ method: 'POST',
2933
+ url: '/api/v2/Tenants',
2934
+ headers: {
2935
+ 'x-api-version': xApiVersion,
2936
+ },
2937
+ body: requestBody,
2938
+ mediaType: 'application/json',
2939
+ errors: {
2940
+ 401: `Unauthorized`,
2941
+ 403: `Forbidden`,
2942
+ },
2943
+ });
2944
+ }
2945
+ /**
2946
+ * Delete a tenant
2947
+ * Delete a business tenant
2948
+ * @param tenantId
2949
+ * @param xApiVersion
2950
+ * @returns EmptyEnvelope OK
2951
+ * @throws ApiError
2952
+ */
2953
+ public static deleteTenant(
2954
+ tenantId: string,
2955
+ xApiVersion?: string,
2956
+ ): CancelablePromise<EmptyEnvelope> {
2957
+ return __request(OpenAPI, {
2958
+ method: 'DELETE',
2959
+ url: '/api/v2/Tenants',
2960
+ headers: {
2961
+ 'x-api-version': xApiVersion,
2962
+ },
2963
+ query: {
2964
+ 'tenantId': tenantId,
2965
+ },
2966
+ errors: {
2967
+ 401: `Unauthorized`,
2968
+ 403: `Forbidden`,
2969
+ },
2970
+ });
2971
+ }
2972
+ /**
2973
+ * Select a business tenant as the user's default tenant
2974
+ * Select a business tenant as the user's default tenant
2975
+ * @param tenantId
2976
+ * @param backTo
2977
+ * @param enableRedirect
2978
+ * @param xApiVersion
2979
+ * @returns EmptyEnvelope OK
2980
+ * @throws ApiError
2981
+ */
2982
+ public static selectTenant(
2983
+ tenantId: string,
2984
+ backTo?: string,
2985
+ enableRedirect: boolean = true,
2986
+ xApiVersion?: string,
2987
+ ): CancelablePromise<EmptyEnvelope> {
2988
+ return __request(OpenAPI, {
2989
+ method: 'GET',
2990
+ url: '/api/v2/Tenants/{tenantId}/Select',
2991
+ path: {
2992
+ 'tenantId': tenantId,
2993
+ },
2994
+ headers: {
2995
+ 'x-api-version': xApiVersion,
2996
+ },
2997
+ query: {
2998
+ 'backTo': backTo,
2999
+ 'enableRedirect': enableRedirect,
3000
+ },
3001
+ errors: {
3002
+ 401: `Unauthorized`,
3003
+ 403: `Forbidden`,
3004
+ },
3005
+ });
3006
+ }
3007
+ /**
3008
+ * Select a business tenant as the user's default tenant
3009
+ * Select a business tenant as the user's default tenant
3010
+ * @param tenantId
3011
+ * @param backTo
3012
+ * @param enableRedirect
3013
+ * @param xApiVersion
3014
+ * @returns EmptyEnvelope OK
3015
+ * @throws ApiError
3016
+ */
3017
+ public static selectTenant1(
3018
+ tenantId: string,
3019
+ backTo?: string,
3020
+ enableRedirect: boolean = true,
3021
+ xApiVersion?: string,
3022
+ ): CancelablePromise<EmptyEnvelope> {
3023
+ return __request(OpenAPI, {
3024
+ method: 'POST',
3025
+ url: '/api/v2/Tenants/{tenantId}/Select',
3026
+ path: {
3027
+ 'tenantId': tenantId,
3028
+ },
3029
+ headers: {
3030
+ 'x-api-version': xApiVersion,
3031
+ },
3032
+ query: {
3033
+ 'backTo': backTo,
3034
+ 'enableRedirect': enableRedirect,
3035
+ },
3036
+ errors: {
3037
+ 401: `Unauthorized`,
3038
+ 403: `Forbidden`,
3039
+ },
3040
+ });
3041
+ }
3042
+ /**
3043
+ * Deselect the user's default tenant
3044
+ * Deselect the user's default tenant
3045
+ * @param backTo
3046
+ * @param enableRedirect
3047
+ * @param xApiVersion
3048
+ * @returns EmptyEnvelope OK
3049
+ * @throws ApiError
3050
+ */
3051
+ public static deSelectTenant(
3052
+ backTo?: string,
3053
+ enableRedirect: boolean = true,
3054
+ xApiVersion?: string,
3055
+ ): CancelablePromise<EmptyEnvelope> {
3056
+ return __request(OpenAPI, {
3057
+ method: 'GET',
3058
+ url: '/api/v2/Tenants/Deselect',
3059
+ headers: {
3060
+ 'x-api-version': xApiVersion,
3061
+ },
3062
+ query: {
3063
+ 'backTo': backTo,
3064
+ 'enableRedirect': enableRedirect,
3065
+ },
3066
+ errors: {
3067
+ 401: `Unauthorized`,
3068
+ 403: `Forbidden`,
3069
+ },
3070
+ });
3071
+ }
3072
+ /**
3073
+ * Deselect the user's default tenant
3074
+ * Deselect the user's default tenant
3075
+ * @param backTo
3076
+ * @param enableRedirect
3077
+ * @param xApiVersion
3078
+ * @returns EmptyEnvelope OK
3079
+ * @throws ApiError
3080
+ */
3081
+ public static deSelectTenant1(
3082
+ backTo?: string,
3083
+ enableRedirect: boolean = true,
3084
+ xApiVersion?: string,
3085
+ ): CancelablePromise<EmptyEnvelope> {
3086
+ return __request(OpenAPI, {
3087
+ method: 'POST',
3088
+ url: '/api/v2/Tenants/Deselect',
3089
+ headers: {
3090
+ 'x-api-version': xApiVersion,
3091
+ },
3092
+ query: {
3093
+ 'backTo': backTo,
3094
+ 'enableRedirect': enableRedirect,
3095
+ },
3096
+ errors: {
3097
+ 401: `Unauthorized`,
3098
+ 403: `Forbidden`,
3099
+ },
3100
+ });
3101
+ }
3102
+ /**
3103
+ * Get the list of web portals for a tenant
3104
+ * Get the list of web portals for a tenant
3105
+ * @param tenantId
3106
+ * @param xApiVersion
3107
+ * @returns WebPortalDtoListEnvelope OK
3108
+ * @throws ApiError
3109
+ */
3110
+ public static getWebPortals(
3111
+ tenantId: string,
3112
+ xApiVersion?: string,
3113
+ ): CancelablePromise<WebPortalDtoListEnvelope> {
3114
+ return __request(OpenAPI, {
3115
+ method: 'GET',
3116
+ url: '/api/v2/Tenants/{tenantId}/WebPortals',
3117
+ path: {
3118
+ 'tenantId': tenantId,
3119
+ },
3120
+ headers: {
3121
+ 'x-api-version': xApiVersion,
3122
+ },
3123
+ errors: {
3124
+ 401: `Unauthorized`,
3125
+ 403: `Forbidden`,
3126
+ },
3127
+ });
3128
+ }
3129
+ /**
3130
+ * Get the list of notifications for a tenant
3131
+ * Get the list of notifications for a tenant
3132
+ * @param tenantId
3133
+ * @param xApiVersion
3134
+ * @returns NotificationDtoListEnvelope OK
3135
+ * @throws ApiError
3136
+ */
3137
+ public static getTenantNotifications(
3138
+ tenantId: string,
3139
+ xApiVersion?: string,
3140
+ ): CancelablePromise<NotificationDtoListEnvelope> {
3141
+ return __request(OpenAPI, {
3142
+ method: 'GET',
3143
+ url: '/api/v2/Tenants/{tenantId}/Notifications',
3144
+ path: {
3145
+ 'tenantId': tenantId,
3146
+ },
3147
+ headers: {
3148
+ 'x-api-version': xApiVersion,
3149
+ },
3150
+ errors: {
3151
+ 401: `Unauthorized`,
3152
+ 403: `Forbidden`,
3153
+ },
3154
+ });
3155
+ }
3156
+ /**
3157
+ * Get the count of notifications for a tenant
3158
+ * Get the count of notifications for a tenant
3159
+ * @param tenantId
3160
+ * @param xApiVersion
3161
+ * @returns Int32Envelope OK
3162
+ * @throws ApiError
3163
+ */
3164
+ public static getTenantNotificationsCount(
3165
+ tenantId: string,
3166
+ xApiVersion?: string,
3167
+ ): CancelablePromise<Int32Envelope> {
3168
+ return __request(OpenAPI, {
3169
+ method: 'GET',
3170
+ url: '/api/v2/Tenants/{tenantId}/Notifications/Count',
3171
+ path: {
3172
+ 'tenantId': tenantId,
3173
+ },
3174
+ headers: {
3175
+ 'x-api-version': xApiVersion,
3176
+ },
3177
+ errors: {
3178
+ 401: `Unauthorized`,
3179
+ 403: `Forbidden`,
3180
+ },
3181
+ });
3182
+ }
3183
+ /**
3184
+ * Create a new tenant territory
3185
+ * Create a new tenant territory
3186
+ * @param tenantId
3187
+ * @param xApiVersion
3188
+ * @param requestBody
3189
+ * @returns EmptyEnvelope Created
3190
+ * @throws ApiError
3191
+ */
3192
+ public static createTenantTerritoryAsync(
3193
+ tenantId: string,
3194
+ xApiVersion?: string,
3195
+ requestBody?: TenantTerritoryCreateDto,
3196
+ ): CancelablePromise<EmptyEnvelope> {
3197
+ return __request(OpenAPI, {
3198
+ method: 'POST',
3199
+ url: '/api/v2/Territories',
3200
+ headers: {
3201
+ 'x-api-version': xApiVersion,
3202
+ },
3203
+ query: {
3204
+ 'tenantId': tenantId,
3205
+ },
3206
+ body: requestBody,
3207
+ mediaType: 'application/json',
3208
+ errors: {
3209
+ 401: `Unauthorized`,
3210
+ 403: `Forbidden`,
3211
+ },
3212
+ });
3213
+ }
3214
+ /**
3215
+ * Retrieve a list of tenant territories for a specific tenant
3216
+ * Retrieve a list of tenant territories for a specific tenant
3217
+ * @param tenantId
3218
+ * @param xApiVersion
3219
+ * @returns TenantTerritoryDtoListEnvelope OK
3220
+ * @throws ApiError
3221
+ */
3222
+ public static getTenantTerritoriesAsync(
3223
+ tenantId: string,
3224
+ xApiVersion?: string,
3225
+ ): CancelablePromise<TenantTerritoryDtoListEnvelope> {
3226
+ return __request(OpenAPI, {
3227
+ method: 'GET',
3228
+ url: '/api/v2/Territories',
3229
+ headers: {
3230
+ 'x-api-version': xApiVersion,
3231
+ },
3232
+ query: {
3233
+ 'tenantId': tenantId,
3234
+ },
3235
+ errors: {
3236
+ 401: `Unauthorized`,
3237
+ 403: `Forbidden`,
3238
+ },
3239
+ });
3240
+ }
3241
+ /**
3242
+ * Retrieve a single tenant territory by its ID
3243
+ * Retrieve a single tenant territory by its ID
3244
+ * @param tenantTerritoryId
3245
+ * @param xApiVersion
3246
+ * @returns TenantTerritoryDtoEnvelope OK
3247
+ * @throws ApiError
3248
+ */
3249
+ public static getTenantTerritoryByIdAsync(
3250
+ tenantTerritoryId: string,
3251
+ xApiVersion?: string,
3252
+ ): CancelablePromise<TenantTerritoryDtoEnvelope> {
3253
+ return __request(OpenAPI, {
3254
+ method: 'GET',
3255
+ url: '/api/v2/Territories/{tenantTerritoryId}',
3256
+ path: {
3257
+ 'tenantTerritoryId': tenantTerritoryId,
3258
+ },
3259
+ headers: {
3260
+ 'x-api-version': xApiVersion,
3261
+ },
3262
+ errors: {
3263
+ 401: `Unauthorized`,
3264
+ 403: `Forbidden`,
3265
+ },
3266
+ });
3267
+ }
3268
+ /**
3269
+ * Partially update a tenant territory
3270
+ * Partially update a tenant territory
3271
+ * @param tenantId
3272
+ * @param tenantTerritoryId
3273
+ * @param xApiVersion
3274
+ * @param requestBody
3275
+ * @returns EmptyEnvelope OK
3276
+ * @throws ApiError
3277
+ */
3278
+ public static patchTenantTerritoryAsync(
3279
+ tenantId: string,
3280
+ tenantTerritoryId: string,
3281
+ xApiVersion?: string,
3282
+ requestBody?: Array<Operation>,
3283
+ ): CancelablePromise<EmptyEnvelope> {
3284
+ return __request(OpenAPI, {
3285
+ method: 'PATCH',
3286
+ url: '/api/v2/Territories/{tenantTerritoryId}',
3287
+ path: {
3288
+ 'tenantTerritoryId': tenantTerritoryId,
3289
+ },
3290
+ headers: {
3291
+ 'x-api-version': xApiVersion,
3292
+ },
3293
+ query: {
3294
+ 'tenantId': tenantId,
3295
+ },
3296
+ body: requestBody,
3297
+ mediaType: 'application/json',
3298
+ errors: {
3299
+ 401: `Unauthorized`,
3300
+ 403: `Forbidden`,
3301
+ },
3302
+ });
3303
+ }
3304
+ /**
3305
+ * Update a tenant territory
3306
+ * Update a tenant territory
3307
+ * @param tenantId
3308
+ * @param tenantTerritoryId
3309
+ * @param xApiVersion
3310
+ * @param requestBody
3311
+ * @returns EmptyEnvelope OK
3312
+ * @throws ApiError
3313
+ */
3314
+ public static putTenantTerritoryAsync(
3315
+ tenantId: string,
3316
+ tenantTerritoryId: string,
3317
+ xApiVersion?: string,
3318
+ requestBody?: TenantTerritoryUpdateDto,
3319
+ ): CancelablePromise<EmptyEnvelope> {
3320
+ return __request(OpenAPI, {
3321
+ method: 'PUT',
3322
+ url: '/api/v2/Territories/{tenantTerritoryId}',
3323
+ path: {
3324
+ 'tenantTerritoryId': tenantTerritoryId,
3325
+ },
3326
+ headers: {
3327
+ 'x-api-version': xApiVersion,
3328
+ },
3329
+ query: {
3330
+ 'tenantId': tenantId,
3331
+ },
3332
+ body: requestBody,
3333
+ mediaType: 'application/json',
3334
+ errors: {
3335
+ 401: `Unauthorized`,
3336
+ 403: `Forbidden`,
3337
+ },
3338
+ });
3339
+ }
3340
+ /**
3341
+ * Delete a tenant territory
3342
+ * Delete a tenant territory
3343
+ * @param tenantId
3344
+ * @param tenantTerritoryId
3345
+ * @param xApiVersion
3346
+ * @returns EmptyEnvelope OK
3347
+ * @throws ApiError
3348
+ */
3349
+ public static deleteTenantTerritoryAsync(
3350
+ tenantId: string,
3351
+ tenantTerritoryId: string,
3352
+ xApiVersion?: string,
3353
+ ): CancelablePromise<EmptyEnvelope> {
3354
+ return __request(OpenAPI, {
3355
+ method: 'DELETE',
3356
+ url: '/api/v2/Territories/{tenantTerritoryId}',
3357
+ path: {
3358
+ 'tenantTerritoryId': tenantTerritoryId,
3359
+ },
3360
+ headers: {
3361
+ 'x-api-version': xApiVersion,
3362
+ },
3363
+ query: {
3364
+ 'tenantId': tenantId,
3365
+ },
3366
+ errors: {
3367
+ 401: `Unauthorized`,
3368
+ 403: `Forbidden`,
3369
+ },
3370
+ });
3371
+ }
3372
+ /**
3373
+ * Create a new tenant type
3374
+ * Create a new tenant type
3375
+ * @param tenantId
3376
+ * @param xApiVersion
3377
+ * @param requestBody
3378
+ * @returns TenantTypeDtoEnvelope Created
3379
+ * @throws ApiError
3380
+ */
3381
+ public static createTenantTypeAsync(
3382
+ tenantId: string,
3383
+ xApiVersion?: string,
3384
+ requestBody?: TenantTypeCreateDto,
3385
+ ): CancelablePromise<TenantTypeDtoEnvelope> {
3386
+ return __request(OpenAPI, {
3387
+ method: 'POST',
3388
+ url: '/api/v2/Types',
3389
+ headers: {
3390
+ 'x-api-version': xApiVersion,
3391
+ },
3392
+ query: {
3393
+ 'tenantId': tenantId,
3394
+ },
3395
+ body: requestBody,
3396
+ mediaType: 'application/json',
3397
+ errors: {
3398
+ 401: `Unauthorized`,
3399
+ 403: `Forbidden`,
3400
+ },
3401
+ });
3402
+ }
3403
+ /**
3404
+ * Retrieve a list of tenant types for a specific tenant
3405
+ * Retrieve a list of tenant types for a specific tenant
3406
+ * @param tenantId
3407
+ * @param xApiVersion
3408
+ * @returns TenantTypeDtoListEnvelope OK
3409
+ * @throws ApiError
3410
+ */
3411
+ public static getTenantTypesAsync(
3412
+ tenantId: string,
3413
+ xApiVersion?: string,
3414
+ ): CancelablePromise<TenantTypeDtoListEnvelope> {
3415
+ return __request(OpenAPI, {
3416
+ method: 'GET',
3417
+ url: '/api/v2/Types',
3418
+ headers: {
3419
+ 'x-api-version': xApiVersion,
3420
+ },
3421
+ query: {
3422
+ 'tenantId': tenantId,
3423
+ },
3424
+ errors: {
3425
+ 401: `Unauthorized`,
3426
+ 403: `Forbidden`,
3427
+ },
3428
+ });
3429
+ }
3430
+ /**
3431
+ * Retrieve a single tenant type by its ID
3432
+ * Retrieve a single tenant type by its ID
3433
+ * @param tenantTypeId
3434
+ * @param xApiVersion
3435
+ * @returns TenantTypeDtoEnvelope OK
3436
+ * @throws ApiError
3437
+ */
3438
+ public static getTenantTypeByIdAsync(
3439
+ tenantTypeId: string,
3440
+ xApiVersion?: string,
3441
+ ): CancelablePromise<TenantTypeDtoEnvelope> {
3442
+ return __request(OpenAPI, {
3443
+ method: 'GET',
3444
+ url: '/api/v2/Types/{tenantTypeId}',
3445
+ path: {
3446
+ 'tenantTypeId': tenantTypeId,
3447
+ },
3448
+ headers: {
3449
+ 'x-api-version': xApiVersion,
3450
+ },
3451
+ errors: {
3452
+ 401: `Unauthorized`,
3453
+ 403: `Forbidden`,
3454
+ },
3455
+ });
3456
+ }
3457
+ /**
3458
+ * Partially updates a tenant type by its ID
3459
+ * Partially updates a tenant type by its ID
3460
+ * @param tenantTypeId
3461
+ * @param xApiVersion
3462
+ * @param requestBody
3463
+ * @returns TenantTypeDtoEnvelope OK
3464
+ * @throws ApiError
3465
+ */
3466
+ public static patchTenantTypeAsync(
3467
+ tenantTypeId: string,
3468
+ xApiVersion?: string,
3469
+ requestBody?: Array<Operation>,
3470
+ ): CancelablePromise<TenantTypeDtoEnvelope> {
3471
+ return __request(OpenAPI, {
3472
+ method: 'PATCH',
3473
+ url: '/api/v2/Types/{tenantTypeId}',
3474
+ path: {
3475
+ 'tenantTypeId': tenantTypeId,
3476
+ },
3477
+ headers: {
3478
+ 'x-api-version': xApiVersion,
3479
+ },
3480
+ body: requestBody,
3481
+ mediaType: 'application/json',
3482
+ errors: {
3483
+ 401: `Unauthorized`,
3484
+ 403: `Forbidden`,
3485
+ },
3486
+ });
3487
+ }
3488
+ /**
3489
+ * Delete a tenant type by its ID
3490
+ * Delete a tenant type by its ID
3491
+ * @param tenantTypeId
3492
+ * @param xApiVersion
3493
+ * @returns TenantTypeDtoEnvelope OK
3494
+ * @throws ApiError
3495
+ */
3496
+ public static deleteTenantTypeAsync(
3497
+ tenantTypeId: string,
3498
+ xApiVersion?: string,
3499
+ ): CancelablePromise<TenantTypeDtoEnvelope> {
3500
+ return __request(OpenAPI, {
3501
+ method: 'DELETE',
3502
+ url: '/api/v2/Types/{tenantTypeId}',
3503
+ path: {
3504
+ 'tenantTypeId': tenantTypeId,
3505
+ },
3506
+ headers: {
3507
+ 'x-api-version': xApiVersion,
3508
+ },
3509
+ errors: {
3510
+ 401: `Unauthorized`,
3511
+ 403: `Forbidden`,
3512
+ },
3513
+ });
3514
+ }
3515
+ /**
3516
+ * Updates a tenant type
3517
+ * Updates a tenant type and returns an envelope
3518
+ * @param tenantTypeId
3519
+ * @param xApiVersion
3520
+ * @param requestBody
3521
+ * @returns TenantTypeDtoEnvelope OK
3522
+ * @throws ApiError
3523
+ */
3524
+ public static updateTenantTypeAsync(
3525
+ tenantTypeId: string,
3526
+ xApiVersion?: string,
3527
+ requestBody?: TenantTypeUpdateDto,
3528
+ ): CancelablePromise<TenantTypeDtoEnvelope> {
3529
+ return __request(OpenAPI, {
3530
+ method: 'PUT',
3531
+ url: '/api/v2/Types/{tenantTypeId}',
3532
+ path: {
3533
+ 'tenantTypeId': tenantTypeId,
3534
+ },
3535
+ headers: {
3536
+ 'x-api-version': xApiVersion,
3537
+ },
3538
+ body: requestBody,
3539
+ mediaType: 'application/json',
3540
+ errors: {
3541
+ 401: `Unauthorized`,
3542
+ 403: `Forbidden`,
3543
+ },
3544
+ });
3545
+ }
3546
+ /**
3547
+ * Create a new tenant unit
3548
+ * Create a new tenant unit
3549
+ * @param tenantId
3550
+ * @param xApiVersion
3551
+ * @param requestBody
3552
+ * @returns EmptyEnvelope Created
3553
+ * @throws ApiError
3554
+ */
3555
+ public static createTenantUnitAsync(
3556
+ tenantId: string,
3557
+ xApiVersion?: string,
3558
+ requestBody?: TenantUnitCreateDto,
3559
+ ): CancelablePromise<EmptyEnvelope> {
3560
+ return __request(OpenAPI, {
3561
+ method: 'POST',
3562
+ url: '/api/v2/Units',
3563
+ headers: {
3564
+ 'x-api-version': xApiVersion,
3565
+ },
3566
+ query: {
3567
+ 'tenantId': tenantId,
3568
+ },
3569
+ body: requestBody,
3570
+ mediaType: 'application/json',
3571
+ errors: {
3572
+ 401: `Unauthorized`,
3573
+ 403: `Forbidden`,
3574
+ },
3575
+ });
3576
+ }
3577
+ /**
3578
+ * Get list of tenant units related to a tenant
3579
+ * Get list of tenant units related to a tenant
3580
+ * @param tenantId
3581
+ * @param xApiVersion
3582
+ * @returns TenantUnitDtoListEnvelope OK
3583
+ * @throws ApiError
3584
+ */
3585
+ public static getTenantUnitsAsync(
3586
+ tenantId: string,
3587
+ xApiVersion?: string,
3588
+ ): CancelablePromise<TenantUnitDtoListEnvelope> {
3589
+ return __request(OpenAPI, {
3590
+ method: 'GET',
3591
+ url: '/api/v2/Units',
3592
+ headers: {
3593
+ 'x-api-version': xApiVersion,
3594
+ },
3595
+ query: {
3596
+ 'tenantId': tenantId,
3597
+ },
3598
+ errors: {
3599
+ 401: `Unauthorized`,
3600
+ 403: `Forbidden`,
3601
+ },
3602
+ });
3603
+ }
3604
+ /**
3605
+ * Partially updates a tenant unit
3606
+ * Partially updates a tenant unit
3607
+ * @param tenantId
3608
+ * @param tenantUnitId
3609
+ * @param xApiVersion
3610
+ * @param requestBody
3611
+ * @returns EmptyEnvelope OK
3612
+ * @throws ApiError
3613
+ */
3614
+ public static patchTenantUnitAsync(
3615
+ tenantId: string,
3616
+ tenantUnitId: string,
3617
+ xApiVersion?: string,
3618
+ requestBody?: Array<Operation>,
3619
+ ): CancelablePromise<EmptyEnvelope> {
3620
+ return __request(OpenAPI, {
3621
+ method: 'PATCH',
3622
+ url: '/api/v2/Units',
3623
+ headers: {
3624
+ 'x-api-version': xApiVersion,
3625
+ },
3626
+ query: {
3627
+ 'tenantId': tenantId,
3628
+ 'tenantUnitId': tenantUnitId,
3629
+ },
3630
+ body: requestBody,
3631
+ mediaType: 'application/json',
3632
+ errors: {
3633
+ 401: `Unauthorized`,
3634
+ 403: `Forbidden`,
3635
+ },
3636
+ });
3637
+ }
3638
+ /**
3639
+ * Get single tenant unit by ID
3640
+ * Get single tenant unit by ID
3641
+ * @param tenantUnitId
3642
+ * @param xApiVersion
3643
+ * @returns TenantUnitDtoEnvelope OK
3644
+ * @throws ApiError
3645
+ */
3646
+ public static getTenantUnitByIdAsync(
3647
+ tenantUnitId: string,
3648
+ xApiVersion?: string,
3649
+ ): CancelablePromise<TenantUnitDtoEnvelope> {
3650
+ return __request(OpenAPI, {
3651
+ method: 'GET',
3652
+ url: '/api/v2/Units/{tenantUnitId}',
3653
+ path: {
3654
+ 'tenantUnitId': tenantUnitId,
3655
+ },
3656
+ headers: {
3657
+ 'x-api-version': xApiVersion,
3658
+ },
3659
+ errors: {
3660
+ 401: `Unauthorized`,
3661
+ 403: `Forbidden`,
3662
+ },
3663
+ });
3664
+ }
3665
+ /**
3666
+ * Update tenant unit details
3667
+ * Update tenant unit details
3668
+ * @param tenantId
3669
+ * @param tenantUnitId
3670
+ * @param xApiVersion
3671
+ * @param requestBody
3672
+ * @returns EmptyEnvelope OK
3673
+ * @throws ApiError
3674
+ */
3675
+ public static putTenantUnitAsync(
3676
+ tenantId: string,
3677
+ tenantUnitId: string,
3678
+ xApiVersion?: string,
3679
+ requestBody?: TenantUnitUpdateDto,
3680
+ ): CancelablePromise<EmptyEnvelope> {
3681
+ return __request(OpenAPI, {
3682
+ method: 'PUT',
3683
+ url: '/api/v2/Units/{tenantUnitId}',
3684
+ path: {
3685
+ 'tenantUnitId': tenantUnitId,
3686
+ },
3687
+ headers: {
3688
+ 'x-api-version': xApiVersion,
3689
+ },
3690
+ query: {
3691
+ 'tenantId': tenantId,
3692
+ },
3693
+ body: requestBody,
3694
+ mediaType: 'application/json',
3695
+ errors: {
3696
+ 401: `Unauthorized`,
3697
+ 403: `Forbidden`,
3698
+ },
3699
+ });
3700
+ }
3701
+ /**
3702
+ * Delete tenant unit by ID
3703
+ * Delete tenant unit by ID
3704
+ * @param tenantId
3705
+ * @param tenantUnitId
3706
+ * @param xApiVersion
3707
+ * @returns EmptyEnvelope OK
3708
+ * @throws ApiError
3709
+ */
3710
+ public static deleteTenantUnitAsync(
3711
+ tenantId: string,
3712
+ tenantUnitId: string,
3713
+ xApiVersion?: string,
3714
+ ): CancelablePromise<EmptyEnvelope> {
3715
+ return __request(OpenAPI, {
3716
+ method: 'DELETE',
3717
+ url: '/api/v2/Units/{tenantUnitId}',
3718
+ path: {
3719
+ 'tenantUnitId': tenantUnitId,
3720
+ },
3721
+ headers: {
3722
+ 'x-api-version': xApiVersion,
3723
+ },
3724
+ query: {
3725
+ 'tenantId': tenantId,
3726
+ },
1030
3727
  errors: {
1031
3728
  401: `Unauthorized`,
1032
3729
  403: `Forbidden`,