@equisoft/account-service-sdk-typescript
Advanced tools
Comparing version 7.1.1-snapshot.20240625140250 to 7.1.1-snapshot.20240705134433
@@ -14,2 +14,7 @@ /** | ||
import type { CreateOrUpdateOrganizationPayload, CreateOrganizationPayload, CreateOrganizationUserServiceOptionPayload, CreateOrganizationUserServicePayload, CreateRole, ListUserOrganizations, Organization, OrganizationCreated, OrganizationRoleAttributions, OrganizationSsoProvider, OrganizationUserServiceAssociation, RoleCreated, UpdateParentOrganizationPayload, UpsertServicePayload, UserAccountSearchResult } from '../models/index'; | ||
export interface ActivateUserServiceRequest { | ||
uuid: string; | ||
userUuid: string; | ||
serviceCode: string; | ||
} | ||
export interface AddServiceRequest { | ||
@@ -42,2 +47,7 @@ uuid: string; | ||
} | ||
export interface DeactivateUserServiceRequest { | ||
uuid: string; | ||
userUuid: string; | ||
serviceCode: string; | ||
} | ||
export interface DeleteOrganizationRequest { | ||
@@ -104,2 +114,10 @@ uuid: string; | ||
/** | ||
* Activate a service from a user for an organization. Does add service associations | ||
*/ | ||
activateUserServiceRaw(requestParameters: ActivateUserServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>; | ||
/** | ||
* Activate a service from a user for an organization. Does add service associations | ||
*/ | ||
activateUserService(requestParameters: ActivateUserServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>; | ||
/** | ||
* Add/update a service for an organization | ||
@@ -153,2 +171,10 @@ */ | ||
/** | ||
* Deactivate a service from a user for an organization. Does add or remove service associations | ||
*/ | ||
deactivateUserServiceRaw(requestParameters: DeactivateUserServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>; | ||
/** | ||
* Deactivate a service from a user for an organization. Does add or remove service associations | ||
*/ | ||
deactivateUserService(requestParameters: DeactivateUserServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>; | ||
/** | ||
* Delete organization | ||
@@ -155,0 +181,0 @@ */ |
@@ -33,2 +33,43 @@ "use strict"; | ||
/** | ||
* Activate a service from a user for an organization. Does add service associations | ||
*/ | ||
activateUserServiceRaw(requestParameters, initOverrides) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.uuid === null || requestParameters.uuid === undefined) { | ||
throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling activateUserService.'); | ||
} | ||
if (requestParameters.userUuid === null || requestParameters.userUuid === undefined) { | ||
throw new runtime.RequiredError('userUuid', 'Required parameter requestParameters.userUuid was null or undefined when calling activateUserService.'); | ||
} | ||
if (requestParameters.serviceCode === null || requestParameters.serviceCode === undefined) { | ||
throw new runtime.RequiredError('serviceCode', 'Required parameter requestParameters.serviceCode was null or undefined when calling activateUserService.'); | ||
} | ||
const queryParameters = {}; | ||
const headerParameters = {}; | ||
if (this.configuration && this.configuration.accessToken) { | ||
// oauth required | ||
const token = this.configuration.accessToken; | ||
const tokenString = yield token("OAuth2", ["account:organization", "account:service"]); | ||
if (tokenString) { | ||
headerParameters["Authorization"] = `Bearer ${tokenString}`; | ||
} | ||
} | ||
const response = yield this.request({ | ||
path: `/organizations/{uuid}/users/{userUuid}/services/{serviceCode}/activate`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"userUuid"}}`, encodeURIComponent(String(requestParameters.userUuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))), | ||
method: 'PUT', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
}, initOverrides); | ||
return new runtime.VoidApiResponse(response); | ||
}); | ||
} | ||
/** | ||
* Activate a service from a user for an organization. Does add service associations | ||
*/ | ||
activateUserService(requestParameters, initOverrides) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield this.activateUserServiceRaw(requestParameters, initOverrides); | ||
}); | ||
} | ||
/** | ||
* Add/update a service for an organization | ||
@@ -287,2 +328,43 @@ */ | ||
/** | ||
* Deactivate a service from a user for an organization. Does add or remove service associations | ||
*/ | ||
deactivateUserServiceRaw(requestParameters, initOverrides) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.uuid === null || requestParameters.uuid === undefined) { | ||
throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling deactivateUserService.'); | ||
} | ||
if (requestParameters.userUuid === null || requestParameters.userUuid === undefined) { | ||
throw new runtime.RequiredError('userUuid', 'Required parameter requestParameters.userUuid was null or undefined when calling deactivateUserService.'); | ||
} | ||
if (requestParameters.serviceCode === null || requestParameters.serviceCode === undefined) { | ||
throw new runtime.RequiredError('serviceCode', 'Required parameter requestParameters.serviceCode was null or undefined when calling deactivateUserService.'); | ||
} | ||
const queryParameters = {}; | ||
const headerParameters = {}; | ||
if (this.configuration && this.configuration.accessToken) { | ||
// oauth required | ||
const token = this.configuration.accessToken; | ||
const tokenString = yield token("OAuth2", ["account:organization", "account:service"]); | ||
if (tokenString) { | ||
headerParameters["Authorization"] = `Bearer ${tokenString}`; | ||
} | ||
} | ||
const response = yield this.request({ | ||
path: `/organizations/{uuid}/users/{userUuid}/services/{serviceCode}/deactivate`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"userUuid"}}`, encodeURIComponent(String(requestParameters.userUuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))), | ||
method: 'PUT', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
}, initOverrides); | ||
return new runtime.VoidApiResponse(response); | ||
}); | ||
} | ||
/** | ||
* Deactivate a service from a user for an organization. Does add or remove service associations | ||
*/ | ||
deactivateUserService(requestParameters, initOverrides) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield this.deactivateUserServiceRaw(requestParameters, initOverrides); | ||
}); | ||
} | ||
/** | ||
* Delete organization | ||
@@ -289,0 +371,0 @@ */ |
@@ -14,2 +14,7 @@ /** | ||
import type { CreateOrUpdateOrganizationPayload, CreateOrganizationPayload, CreateOrganizationUserServiceOptionPayload, CreateOrganizationUserServicePayload, CreateRole, ListUserOrganizations, Organization, OrganizationCreated, OrganizationRoleAttributions, OrganizationSsoProvider, OrganizationUserServiceAssociation, RoleCreated, UpdateParentOrganizationPayload, UpsertServicePayload, UserAccountSearchResult } from '../models/index'; | ||
export interface ActivateUserServiceRequest { | ||
uuid: string; | ||
userUuid: string; | ||
serviceCode: string; | ||
} | ||
export interface AddServiceRequest { | ||
@@ -42,2 +47,7 @@ uuid: string; | ||
} | ||
export interface DeactivateUserServiceRequest { | ||
uuid: string; | ||
userUuid: string; | ||
serviceCode: string; | ||
} | ||
export interface DeleteOrganizationRequest { | ||
@@ -104,2 +114,10 @@ uuid: string; | ||
/** | ||
* Activate a service from a user for an organization. Does add service associations | ||
*/ | ||
activateUserServiceRaw(requestParameters: ActivateUserServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>; | ||
/** | ||
* Activate a service from a user for an organization. Does add service associations | ||
*/ | ||
activateUserService(requestParameters: ActivateUserServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>; | ||
/** | ||
* Add/update a service for an organization | ||
@@ -153,2 +171,10 @@ */ | ||
/** | ||
* Deactivate a service from a user for an organization. Does add or remove service associations | ||
*/ | ||
deactivateUserServiceRaw(requestParameters: DeactivateUserServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>; | ||
/** | ||
* Deactivate a service from a user for an organization. Does add or remove service associations | ||
*/ | ||
deactivateUserService(requestParameters: DeactivateUserServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>; | ||
/** | ||
* Delete organization | ||
@@ -155,0 +181,0 @@ */ |
@@ -30,2 +30,43 @@ /* tslint:disable */ | ||
/** | ||
* Activate a service from a user for an organization. Does add service associations | ||
*/ | ||
activateUserServiceRaw(requestParameters, initOverrides) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.uuid === null || requestParameters.uuid === undefined) { | ||
throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling activateUserService.'); | ||
} | ||
if (requestParameters.userUuid === null || requestParameters.userUuid === undefined) { | ||
throw new runtime.RequiredError('userUuid', 'Required parameter requestParameters.userUuid was null or undefined when calling activateUserService.'); | ||
} | ||
if (requestParameters.serviceCode === null || requestParameters.serviceCode === undefined) { | ||
throw new runtime.RequiredError('serviceCode', 'Required parameter requestParameters.serviceCode was null or undefined when calling activateUserService.'); | ||
} | ||
const queryParameters = {}; | ||
const headerParameters = {}; | ||
if (this.configuration && this.configuration.accessToken) { | ||
// oauth required | ||
const token = this.configuration.accessToken; | ||
const tokenString = yield token("OAuth2", ["account:organization", "account:service"]); | ||
if (tokenString) { | ||
headerParameters["Authorization"] = `Bearer ${tokenString}`; | ||
} | ||
} | ||
const response = yield this.request({ | ||
path: `/organizations/{uuid}/users/{userUuid}/services/{serviceCode}/activate`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"userUuid"}}`, encodeURIComponent(String(requestParameters.userUuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))), | ||
method: 'PUT', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
}, initOverrides); | ||
return new runtime.VoidApiResponse(response); | ||
}); | ||
} | ||
/** | ||
* Activate a service from a user for an organization. Does add service associations | ||
*/ | ||
activateUserService(requestParameters, initOverrides) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield this.activateUserServiceRaw(requestParameters, initOverrides); | ||
}); | ||
} | ||
/** | ||
* Add/update a service for an organization | ||
@@ -284,2 +325,43 @@ */ | ||
/** | ||
* Deactivate a service from a user for an organization. Does add or remove service associations | ||
*/ | ||
deactivateUserServiceRaw(requestParameters, initOverrides) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.uuid === null || requestParameters.uuid === undefined) { | ||
throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling deactivateUserService.'); | ||
} | ||
if (requestParameters.userUuid === null || requestParameters.userUuid === undefined) { | ||
throw new runtime.RequiredError('userUuid', 'Required parameter requestParameters.userUuid was null or undefined when calling deactivateUserService.'); | ||
} | ||
if (requestParameters.serviceCode === null || requestParameters.serviceCode === undefined) { | ||
throw new runtime.RequiredError('serviceCode', 'Required parameter requestParameters.serviceCode was null or undefined when calling deactivateUserService.'); | ||
} | ||
const queryParameters = {}; | ||
const headerParameters = {}; | ||
if (this.configuration && this.configuration.accessToken) { | ||
// oauth required | ||
const token = this.configuration.accessToken; | ||
const tokenString = yield token("OAuth2", ["account:organization", "account:service"]); | ||
if (tokenString) { | ||
headerParameters["Authorization"] = `Bearer ${tokenString}`; | ||
} | ||
} | ||
const response = yield this.request({ | ||
path: `/organizations/{uuid}/users/{userUuid}/services/{serviceCode}/deactivate`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"userUuid"}}`, encodeURIComponent(String(requestParameters.userUuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))), | ||
method: 'PUT', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
}, initOverrides); | ||
return new runtime.VoidApiResponse(response); | ||
}); | ||
} | ||
/** | ||
* Deactivate a service from a user for an organization. Does add or remove service associations | ||
*/ | ||
deactivateUserService(requestParameters, initOverrides) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield this.deactivateUserServiceRaw(requestParameters, initOverrides); | ||
}); | ||
} | ||
/** | ||
* Delete organization | ||
@@ -286,0 +368,0 @@ */ |
@@ -32,2 +32,8 @@ /** | ||
* | ||
* @type {boolean} | ||
* @memberof UserServiceAssociation | ||
*/ | ||
active: boolean; | ||
/** | ||
* | ||
* @type {string} | ||
@@ -34,0 +40,0 @@ * @memberof UserServiceAssociation |
@@ -22,2 +22,3 @@ /* tslint:disable */ | ||
isInstance = isInstance && "code" in value; | ||
isInstance = isInstance && "active" in value; | ||
return isInstance; | ||
@@ -35,2 +36,3 @@ } | ||
'code': json['code'], | ||
'active': json['active'], | ||
'externalId': !exists(json, 'externalId') ? undefined : json['externalId'], | ||
@@ -50,2 +52,3 @@ 'options': !exists(json, 'options') ? undefined : json['options'], | ||
'code': value.code, | ||
'active': value.active, | ||
'externalId': value.externalId, | ||
@@ -52,0 +55,0 @@ 'options': value.options, |
@@ -32,2 +32,8 @@ /** | ||
* | ||
* @type {boolean} | ||
* @memberof UserServiceAssociation | ||
*/ | ||
active: boolean; | ||
/** | ||
* | ||
* @type {string} | ||
@@ -34,0 +40,0 @@ * @memberof UserServiceAssociation |
@@ -25,2 +25,3 @@ "use strict"; | ||
isInstance = isInstance && "code" in value; | ||
isInstance = isInstance && "active" in value; | ||
return isInstance; | ||
@@ -40,2 +41,3 @@ } | ||
'code': json['code'], | ||
'active': json['active'], | ||
'externalId': !(0, runtime_1.exists)(json, 'externalId') ? undefined : json['externalId'], | ||
@@ -56,2 +58,3 @@ 'options': !(0, runtime_1.exists)(json, 'options') ? undefined : json['options'], | ||
'code': value.code, | ||
'active': value.active, | ||
'externalId': value.externalId, | ||
@@ -58,0 +61,0 @@ 'options': value.options, |
{ | ||
"name": "@equisoft/account-service-sdk-typescript", | ||
"version": "7.1.1-snapshot.20240625140250", | ||
"version": "7.1.1-snapshot.20240705134433", | ||
"description": "OpenAPI client for @equisoft/account-service-sdk-typescript", | ||
@@ -5,0 +5,0 @@ "author": "OpenAPI-Generator", |
@@ -70,2 +70,8 @@ /* tslint:disable */ | ||
export interface ActivateUserServiceRequest { | ||
uuid: string; | ||
userUuid: string; | ||
serviceCode: string; | ||
} | ||
export interface AddServiceRequest { | ||
@@ -104,2 +110,8 @@ uuid: string; | ||
export interface DeactivateUserServiceRequest { | ||
uuid: string; | ||
userUuid: string; | ||
serviceCode: string; | ||
} | ||
export interface DeleteOrganizationRequest { | ||
@@ -180,2 +192,48 @@ uuid: string; | ||
/** | ||
* Activate a service from a user for an organization. Does add service associations | ||
*/ | ||
async activateUserServiceRaw(requestParameters: ActivateUserServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> { | ||
if (requestParameters.uuid === null || requestParameters.uuid === undefined) { | ||
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling activateUserService.'); | ||
} | ||
if (requestParameters.userUuid === null || requestParameters.userUuid === undefined) { | ||
throw new runtime.RequiredError('userUuid','Required parameter requestParameters.userUuid was null or undefined when calling activateUserService.'); | ||
} | ||
if (requestParameters.serviceCode === null || requestParameters.serviceCode === undefined) { | ||
throw new runtime.RequiredError('serviceCode','Required parameter requestParameters.serviceCode was null or undefined when calling activateUserService.'); | ||
} | ||
const queryParameters: any = {}; | ||
const headerParameters: runtime.HTTPHeaders = {}; | ||
if (this.configuration && this.configuration.accessToken) { | ||
// oauth required | ||
const token = this.configuration.accessToken; | ||
const tokenString = await token("OAuth2", ["account:organization", "account:service"]); | ||
if (tokenString) { | ||
headerParameters["Authorization"] = `Bearer ${tokenString}`; | ||
} | ||
} | ||
const response = await this.request({ | ||
path: `/organizations/{uuid}/users/{userUuid}/services/{serviceCode}/activate`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"userUuid"}}`, encodeURIComponent(String(requestParameters.userUuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))), | ||
method: 'PUT', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
}, initOverrides); | ||
return new runtime.VoidApiResponse(response); | ||
} | ||
/** | ||
* Activate a service from a user for an organization. Does add service associations | ||
*/ | ||
async activateUserService(requestParameters: ActivateUserServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> { | ||
await this.activateUserServiceRaw(requestParameters, initOverrides); | ||
} | ||
/** | ||
* Add/update a service for an organization | ||
@@ -467,2 +525,48 @@ */ | ||
/** | ||
* Deactivate a service from a user for an organization. Does add or remove service associations | ||
*/ | ||
async deactivateUserServiceRaw(requestParameters: DeactivateUserServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> { | ||
if (requestParameters.uuid === null || requestParameters.uuid === undefined) { | ||
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling deactivateUserService.'); | ||
} | ||
if (requestParameters.userUuid === null || requestParameters.userUuid === undefined) { | ||
throw new runtime.RequiredError('userUuid','Required parameter requestParameters.userUuid was null or undefined when calling deactivateUserService.'); | ||
} | ||
if (requestParameters.serviceCode === null || requestParameters.serviceCode === undefined) { | ||
throw new runtime.RequiredError('serviceCode','Required parameter requestParameters.serviceCode was null or undefined when calling deactivateUserService.'); | ||
} | ||
const queryParameters: any = {}; | ||
const headerParameters: runtime.HTTPHeaders = {}; | ||
if (this.configuration && this.configuration.accessToken) { | ||
// oauth required | ||
const token = this.configuration.accessToken; | ||
const tokenString = await token("OAuth2", ["account:organization", "account:service"]); | ||
if (tokenString) { | ||
headerParameters["Authorization"] = `Bearer ${tokenString}`; | ||
} | ||
} | ||
const response = await this.request({ | ||
path: `/organizations/{uuid}/users/{userUuid}/services/{serviceCode}/deactivate`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"userUuid"}}`, encodeURIComponent(String(requestParameters.userUuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))), | ||
method: 'PUT', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
}, initOverrides); | ||
return new runtime.VoidApiResponse(response); | ||
} | ||
/** | ||
* Deactivate a service from a user for an organization. Does add or remove service associations | ||
*/ | ||
async deactivateUserService(requestParameters: DeactivateUserServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> { | ||
await this.deactivateUserServiceRaw(requestParameters, initOverrides); | ||
} | ||
/** | ||
* Delete organization | ||
@@ -469,0 +573,0 @@ */ |
@@ -36,2 +36,8 @@ /* tslint:disable */ | ||
* | ||
* @type {boolean} | ||
* @memberof UserServiceAssociation | ||
*/ | ||
active: boolean; | ||
/** | ||
* | ||
* @type {string} | ||
@@ -56,2 +62,3 @@ * @memberof UserServiceAssociation | ||
isInstance = isInstance && "code" in value; | ||
isInstance = isInstance && "active" in value; | ||
@@ -73,2 +80,3 @@ return isInstance; | ||
'code': json['code'], | ||
'active': json['active'], | ||
'externalId': !exists(json, 'externalId') ? undefined : json['externalId'], | ||
@@ -90,2 +98,3 @@ 'options': !exists(json, 'options') ? undefined : json['options'], | ||
'code': value.code, | ||
'active': value.active, | ||
'externalId': value.externalId, | ||
@@ -92,0 +101,0 @@ 'options': value.options, |
1421213
36659