@equisoft/account-service-sdk-typescript 4.5.1-snapshot.20230206204303 → 4.5.1-snapshot.20230207210529
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/VERSION +1 -1
- package/dist/apis/OAuthApi.d.ts +5 -5
- package/dist/apis/OrganizationApi.d.ts +37 -37
- package/dist/apis/PermissionApi.d.ts +3 -3
- package/dist/apis/RoleApi.d.ts +3 -3
- package/dist/apis/ServiceAccountApi.d.ts +17 -17
- package/dist/apis/SessionApi.d.ts +25 -25
- package/dist/apis/UserApi.d.ts +45 -45
- package/dist/models/ApplyPermissionsPayload.d.ts +5 -1
- package/dist/models/ApplyPermissionsPayload.js +11 -1
- package/dist/models/AuthenticationUserAccount.d.ts +4 -0
- package/dist/models/AuthenticationUserAccount.js +14 -1
- package/dist/models/CreateOrUpdateOAuthClientPayload.d.ts +5 -1
- package/dist/models/CreateOrUpdateOAuthClientPayload.js +13 -1
- package/dist/models/CreateOrUpdateOrganizationPayload.d.ts +5 -1
- package/dist/models/CreateOrUpdateOrganizationPayload.js +12 -1
- package/dist/models/CreateOrUpdatePermissionPayload.d.ts +5 -1
- package/dist/models/CreateOrUpdatePermissionPayload.js +10 -1
- package/dist/models/CreateOrganizationPayload.d.ts +5 -1
- package/dist/models/CreateOrganizationPayload.js +12 -1
- package/dist/models/CreateOrganizationUserServiceOptionPayload.d.ts +4 -0
- package/dist/models/CreateOrganizationUserServiceOptionPayload.js +10 -1
- package/dist/models/CreateOrganizationUserServicePayload.d.ts +4 -0
- package/dist/models/CreateOrganizationUserServicePayload.js +9 -1
- package/dist/models/CreateRole.d.ts +5 -1
- package/dist/models/CreateRole.js +11 -1
- package/dist/models/DatabaseState.d.ts +1 -0
- package/dist/models/DatabaseState.js +2 -1
- package/dist/models/EnableEquisoftConnectPayloadSchema.d.ts +4 -0
- package/dist/models/EnableEquisoftConnectPayloadSchema.js +9 -1
- package/dist/models/ErrorMessage.d.ts +1 -0
- package/dist/models/ErrorMessage.js +2 -1
- package/dist/models/ErrorPayload.d.ts +5 -1
- package/dist/models/ErrorPayload.js +10 -1
- package/dist/models/Id.d.ts +4 -0
- package/dist/models/Id.js +11 -1
- package/dist/models/ImpersonatePayload.d.ts +4 -0
- package/dist/models/ImpersonatePayload.js +10 -1
- package/dist/models/LegacyRoleSchema.d.ts +5 -1
- package/dist/models/LegacyRoleSchema.js +11 -1
- package/dist/models/ListOrganizationElement.d.ts +7 -3
- package/dist/models/ListOrganizationElement.js +13 -1
- package/dist/models/ListUserOrganizations.d.ts +5 -1
- package/dist/models/ListUserOrganizations.js +10 -1
- package/dist/models/LocalizedString.d.ts +4 -0
- package/dist/models/LocalizedString.js +11 -1
- package/dist/models/LoginPayload.d.ts +4 -0
- package/dist/models/LoginPayload.js +11 -1
- package/dist/models/OAuthClient.d.ts +5 -1
- package/dist/models/OAuthClient.js +19 -1
- package/dist/models/OAuthClientCreated.d.ts +4 -0
- package/dist/models/OAuthClientCreated.js +10 -1
- package/dist/models/OAuthClientPublicKey.d.ts +4 -0
- package/dist/models/OAuthClientPublicKey.js +11 -1
- package/dist/models/Organization.d.ts +7 -3
- package/dist/models/Organization.js +15 -1
- package/dist/models/OrganizationCreated.d.ts +4 -0
- package/dist/models/OrganizationCreated.js +10 -1
- package/dist/models/OrganizationPathElement.d.ts +5 -1
- package/dist/models/OrganizationPathElement.js +11 -1
- package/dist/models/OrganizationRoleAttribution.d.ts +6 -2
- package/dist/models/OrganizationRoleAttribution.js +11 -1
- package/dist/models/OrganizationRoleAttributionPermission.d.ts +5 -1
- package/dist/models/OrganizationRoleAttributionPermission.js +11 -1
- package/dist/models/OrganizationRoleAttributionRole.d.ts +6 -2
- package/dist/models/OrganizationRoleAttributionRole.js +12 -1
- package/dist/models/OrganizationRoleAttributions.d.ts +5 -1
- package/dist/models/OrganizationRoleAttributions.js +10 -1
- package/dist/models/OrganizationServicesElement.d.ts +4 -0
- package/dist/models/OrganizationServicesElement.js +10 -1
- package/dist/models/OrganizationSsoProvider.d.ts +5 -1
- package/dist/models/OrganizationSsoProvider.js +11 -1
- package/dist/models/OrganizationUserServiceAssociation.d.ts +4 -0
- package/dist/models/OrganizationUserServiceAssociation.js +11 -1
- package/dist/models/PermissionCode.d.ts +4 -0
- package/dist/models/PermissionCode.js +10 -1
- package/dist/models/PermissionCreated.d.ts +4 -0
- package/dist/models/PermissionCreated.js +10 -1
- package/dist/models/PermissionList.d.ts +5 -1
- package/dist/models/PermissionList.js +10 -1
- package/dist/models/PermissionResourceType.d.ts +1 -0
- package/dist/models/PermissionResourceType.js +2 -1
- package/dist/models/Role.d.ts +5 -1
- package/dist/models/Role.js +12 -1
- package/dist/models/RoleCreated.d.ts +5 -1
- package/dist/models/RoleCreated.js +12 -1
- package/dist/models/RolesOnOrganization.d.ts +8 -4
- package/dist/models/RolesOnOrganization.js +14 -1
- package/dist/models/SendResetPasswordLinkPayload.d.ts +4 -0
- package/dist/models/SendResetPasswordLinkPayload.js +11 -1
- package/dist/models/ServiceAccess.d.ts +6 -2
- package/dist/models/ServiceAccess.js +10 -1
- package/dist/models/ServiceAccountCreationSchema.d.ts +4 -0
- package/dist/models/ServiceAccountCreationSchema.js +12 -1
- package/dist/models/ServiceAccountSchema.d.ts +5 -1
- package/dist/models/ServiceAccountSchema.js +15 -1
- package/dist/models/ServiceAccountStatus.d.ts +1 -0
- package/dist/models/ServiceAccountStatus.js +2 -1
- package/dist/models/ServiceAccountUpdateSchema.d.ts +4 -0
- package/dist/models/ServiceAccountUpdateSchema.js +9 -1
- package/dist/models/ServiceAccountUuidSchema.d.ts +4 -0
- package/dist/models/ServiceAccountUuidSchema.js +10 -1
- package/dist/models/ServiceName.d.ts +1 -0
- package/dist/models/ServiceName.js +2 -1
- package/dist/models/Session.d.ts +7 -3
- package/dist/models/Session.js +17 -1
- package/dist/models/SessionPayload.d.ts +5 -1
- package/dist/models/SessionPayload.js +11 -1
- package/dist/models/SessionState.d.ts +1 -0
- package/dist/models/SessionState.js +2 -1
- package/dist/models/SetPasswordByConfirmationHashPayload.d.ts +4 -0
- package/dist/models/SetPasswordByConfirmationHashPayload.js +10 -1
- package/dist/models/SetUserAccountPasswordPayload.d.ts +4 -0
- package/dist/models/SetUserAccountPasswordPayload.js +11 -1
- package/dist/models/SsoProvider.d.ts +4 -0
- package/dist/models/SsoProvider.js +11 -1
- package/dist/models/SsoToken.d.ts +4 -0
- package/dist/models/SsoToken.js +11 -1
- package/dist/models/UpdateParentOrganizationPayload.d.ts +4 -0
- package/dist/models/UpdateParentOrganizationPayload.js +10 -1
- package/dist/models/UpdateUserAccountPayload.d.ts +4 -0
- package/dist/models/UpdateUserAccountPayload.js +11 -1
- package/dist/models/UpdateUserAccountSsoPayload.d.ts +4 -0
- package/dist/models/UpdateUserAccountSsoPayload.js +10 -1
- package/dist/models/UpsertServicePayload.d.ts +4 -0
- package/dist/models/UpsertServicePayload.js +9 -1
- package/dist/models/User.d.ts +9 -5
- package/dist/models/User.js +26 -1
- package/dist/models/UserAccountOrganizationRoles.d.ts +6 -2
- package/dist/models/UserAccountOrganizationRoles.js +12 -1
- package/dist/models/UserAccountPermission.d.ts +5 -1
- package/dist/models/UserAccountPermission.js +11 -1
- package/dist/models/UserAccountRole.d.ts +5 -1
- package/dist/models/UserAccountRole.js +11 -1
- package/dist/models/UserAccountRoleAttributions.d.ts +5 -1
- package/dist/models/UserAccountRoleAttributions.js +10 -1
- package/dist/models/UserAccountSearchResult.d.ts +9 -5
- package/dist/models/UserAccountSearchResult.js +26 -1
- package/dist/models/UserAgreement.d.ts +5 -1
- package/dist/models/UserAgreement.js +10 -1
- package/dist/models/UserAgreementState.d.ts +1 -0
- package/dist/models/UserAgreementState.js +2 -1
- package/dist/models/UserPermissions.d.ts +6 -2
- package/dist/models/UserPermissions.js +11 -1
- package/dist/models/UserServiceAssociation.d.ts +4 -0
- package/dist/models/UserServiceAssociation.js +11 -1
- package/dist/models/UserSsoProvider.d.ts +4 -0
- package/dist/models/UserSsoProvider.js +10 -1
- package/dist/models/UserState.d.ts +1 -0
- package/dist/models/UserState.js +2 -1
- package/dist/runtime.d.ts +15 -2
- package/dist/runtime.js +29 -2
- package/package.json +1 -1
- package/src/apis/OAuthApi.ts +10 -8
- package/src/apis/OrganizationApi.ts +54 -52
- package/src/apis/PermissionApi.ts +7 -5
- package/src/apis/RoleApi.ts +6 -4
- package/src/apis/ServiceAccountApi.ts +26 -24
- package/src/apis/SessionApi.ts +32 -30
- package/src/apis/UserApi.ts +62 -60
- package/src/models/ApplyPermissionsPayload.ts +12 -1
- package/src/models/AuthenticationUserAccount.ts +14 -0
- package/src/models/CreateOrUpdateOAuthClientPayload.ts +14 -1
- package/src/models/CreateOrUpdateOrganizationPayload.ts +13 -1
- package/src/models/CreateOrUpdatePermissionPayload.ts +11 -1
- package/src/models/CreateOrganizationPayload.ts +13 -1
- package/src/models/CreateOrganizationUserServiceOptionPayload.ts +10 -0
- package/src/models/CreateOrganizationUserServicePayload.ts +9 -0
- package/src/models/CreateRole.ts +12 -1
- package/src/models/DatabaseState.ts +2 -1
- package/src/models/EnableEquisoftConnectPayloadSchema.ts +9 -0
- package/src/models/ErrorMessage.ts +2 -1
- package/src/models/ErrorPayload.ts +11 -1
- package/src/models/Id.ts +11 -0
- package/src/models/ImpersonatePayload.ts +10 -0
- package/src/models/LegacyRoleSchema.ts +12 -1
- package/src/models/ListOrganizationElement.ts +16 -3
- package/src/models/ListUserOrganizations.ts +11 -1
- package/src/models/LocalizedString.ts +11 -0
- package/src/models/LoginPayload.ts +11 -0
- package/src/models/OAuthClient.ts +20 -1
- package/src/models/OAuthClientCreated.ts +10 -0
- package/src/models/OAuthClientPublicKey.ts +11 -0
- package/src/models/Organization.ts +18 -3
- package/src/models/OrganizationCreated.ts +10 -0
- package/src/models/OrganizationPathElement.ts +12 -1
- package/src/models/OrganizationRoleAttribution.ts +13 -2
- package/src/models/OrganizationRoleAttributionPermission.ts +12 -1
- package/src/models/OrganizationRoleAttributionRole.ts +14 -2
- package/src/models/OrganizationRoleAttributions.ts +11 -1
- package/src/models/OrganizationServicesElement.ts +10 -0
- package/src/models/OrganizationSsoProvider.ts +12 -1
- package/src/models/OrganizationUserServiceAssociation.ts +11 -0
- package/src/models/PermissionCode.ts +10 -0
- package/src/models/PermissionCreated.ts +10 -0
- package/src/models/PermissionList.ts +11 -1
- package/src/models/PermissionResourceType.ts +2 -1
- package/src/models/Role.ts +13 -1
- package/src/models/RoleCreated.ts +13 -1
- package/src/models/RolesOnOrganization.ts +18 -4
- package/src/models/SendResetPasswordLinkPayload.ts +11 -0
- package/src/models/ServiceAccess.ts +12 -2
- package/src/models/ServiceAccountCreationSchema.ts +12 -0
- package/src/models/ServiceAccountSchema.ts +16 -1
- package/src/models/ServiceAccountStatus.ts +2 -1
- package/src/models/ServiceAccountUpdateSchema.ts +9 -0
- package/src/models/ServiceAccountUuidSchema.ts +10 -0
- package/src/models/ServiceName.ts +2 -1
- package/src/models/Session.ts +20 -3
- package/src/models/SessionPayload.ts +12 -1
- package/src/models/SessionState.ts +2 -1
- package/src/models/SetPasswordByConfirmationHashPayload.ts +10 -0
- package/src/models/SetUserAccountPasswordPayload.ts +11 -0
- package/src/models/SsoProvider.ts +11 -0
- package/src/models/SsoToken.ts +11 -0
- package/src/models/UpdateParentOrganizationPayload.ts +10 -0
- package/src/models/UpdateUserAccountPayload.ts +11 -0
- package/src/models/UpdateUserAccountSsoPayload.ts +10 -0
- package/src/models/UpsertServicePayload.ts +9 -0
- package/src/models/User.ts +31 -5
- package/src/models/UserAccountOrganizationRoles.ts +14 -2
- package/src/models/UserAccountPermission.ts +12 -1
- package/src/models/UserAccountRole.ts +12 -1
- package/src/models/UserAccountRoleAttributions.ts +11 -1
- package/src/models/UserAccountSearchResult.ts +31 -5
- package/src/models/UserAgreement.ts +11 -1
- package/src/models/UserAgreementState.ts +2 -1
- package/src/models/UserPermissions.ts +13 -2
- package/src/models/UserServiceAssociation.ts +11 -0
- package/src/models/UserSsoProvider.ts +10 -0
- package/src/models/UserState.ts +2 -1
- package/src/runtime.ts +39 -5
|
@@ -13,8 +13,18 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UserAccountRoleToJSON = exports.UserAccountRoleFromJSONTyped = exports.UserAccountRoleFromJSON = void 0;
|
|
16
|
+
exports.UserAccountRoleToJSON = exports.UserAccountRoleFromJSONTyped = exports.UserAccountRoleFromJSON = exports.instanceOfUserAccountRole = void 0;
|
|
17
17
|
const LocalizedString_1 = require("./LocalizedString");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the UserAccountRole interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfUserAccountRole(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "uuid" in value;
|
|
24
|
+
isInstance = isInstance && "name" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfUserAccountRole = instanceOfUserAccountRole;
|
|
18
28
|
function UserAccountRoleFromJSON(json) {
|
|
19
29
|
return UserAccountRoleFromJSONTyped(json, false);
|
|
20
30
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { UserAccountOrganizationRoles } from './UserAccountOrganizationRoles';
|
|
12
|
+
import type { UserAccountOrganizationRoles } from './UserAccountOrganizationRoles';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -23,6 +23,10 @@ export interface UserAccountRoleAttributions {
|
|
|
23
23
|
*/
|
|
24
24
|
organizations: Array<UserAccountOrganizationRoles>;
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the UserAccountRoleAttributions interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfUserAccountRoleAttributions(value: object): boolean;
|
|
26
30
|
export declare function UserAccountRoleAttributionsFromJSON(json: any): UserAccountRoleAttributions;
|
|
27
31
|
export declare function UserAccountRoleAttributionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAccountRoleAttributions;
|
|
28
32
|
export declare function UserAccountRoleAttributionsToJSON(value?: UserAccountRoleAttributions | null): any;
|
|
@@ -13,8 +13,17 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UserAccountRoleAttributionsToJSON = exports.UserAccountRoleAttributionsFromJSONTyped = exports.UserAccountRoleAttributionsFromJSON = void 0;
|
|
16
|
+
exports.UserAccountRoleAttributionsToJSON = exports.UserAccountRoleAttributionsFromJSONTyped = exports.UserAccountRoleAttributionsFromJSON = exports.instanceOfUserAccountRoleAttributions = void 0;
|
|
17
17
|
const UserAccountOrganizationRoles_1 = require("./UserAccountOrganizationRoles");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the UserAccountRoleAttributions interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfUserAccountRoleAttributions(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "organizations" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfUserAccountRoleAttributions = instanceOfUserAccountRoleAttributions;
|
|
18
27
|
function UserAccountRoleAttributionsFromJSON(json) {
|
|
19
28
|
return UserAccountRoleAttributionsFromJSONTyped(json, false);
|
|
20
29
|
}
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ServiceAccess } from './ServiceAccess';
|
|
13
|
-
import { UserAgreement } from './UserAgreement';
|
|
14
|
-
import { UserServiceAssociation } from './UserServiceAssociation';
|
|
15
|
-
import { UserSsoProvider } from './UserSsoProvider';
|
|
16
|
-
import { UserState } from './UserState';
|
|
12
|
+
import type { ServiceAccess } from './ServiceAccess';
|
|
13
|
+
import type { UserAgreement } from './UserAgreement';
|
|
14
|
+
import type { UserServiceAssociation } from './UserServiceAssociation';
|
|
15
|
+
import type { UserSsoProvider } from './UserSsoProvider';
|
|
16
|
+
import type { UserState } from './UserState';
|
|
17
17
|
/**
|
|
18
18
|
* The list of user accounts that matched the search.
|
|
19
19
|
* @export
|
|
@@ -159,6 +159,10 @@ export interface UserAccountSearchResult {
|
|
|
159
159
|
*/
|
|
160
160
|
ssoIdentifier?: string | null;
|
|
161
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* Check if a given object implements the UserAccountSearchResult interface.
|
|
164
|
+
*/
|
|
165
|
+
export declare function instanceOfUserAccountSearchResult(value: object): boolean;
|
|
162
166
|
export declare function UserAccountSearchResultFromJSON(json: any): UserAccountSearchResult;
|
|
163
167
|
export declare function UserAccountSearchResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAccountSearchResult;
|
|
164
168
|
export declare function UserAccountSearchResultToJSON(value?: UserAccountSearchResult | null): any;
|
|
@@ -13,13 +13,38 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UserAccountSearchResultToJSON = exports.UserAccountSearchResultFromJSONTyped = exports.UserAccountSearchResultFromJSON = void 0;
|
|
16
|
+
exports.UserAccountSearchResultToJSON = exports.UserAccountSearchResultFromJSONTyped = exports.UserAccountSearchResultFromJSON = exports.instanceOfUserAccountSearchResult = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
const ServiceAccess_1 = require("./ServiceAccess");
|
|
19
19
|
const UserAgreement_1 = require("./UserAgreement");
|
|
20
20
|
const UserServiceAssociation_1 = require("./UserServiceAssociation");
|
|
21
21
|
const UserSsoProvider_1 = require("./UserSsoProvider");
|
|
22
22
|
const UserState_1 = require("./UserState");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the UserAccountSearchResult interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfUserAccountSearchResult(value) {
|
|
27
|
+
let isInstance = true;
|
|
28
|
+
isInstance = isInstance && "id" in value;
|
|
29
|
+
isInstance = isInstance && "uuid" in value;
|
|
30
|
+
isInstance = isInstance && "displayName" in value;
|
|
31
|
+
isInstance = isInstance && "sortName" in value;
|
|
32
|
+
isInstance = isInstance && "givenName" in value;
|
|
33
|
+
isInstance = isInstance && "familyName" in value;
|
|
34
|
+
isInstance = isInstance && "email" in value;
|
|
35
|
+
isInstance = isInstance && "locale" in value;
|
|
36
|
+
isInstance = isInstance && "state" in value;
|
|
37
|
+
isInstance = isInstance && "locked" in value;
|
|
38
|
+
isInstance = isInstance && "deletable" in value;
|
|
39
|
+
isInstance = isInstance && "billable" in value;
|
|
40
|
+
isInstance = isInstance && "agreement" in value;
|
|
41
|
+
isInstance = isInstance && "services" in value;
|
|
42
|
+
isInstance = isInstance && "servicesUsers" in value;
|
|
43
|
+
isInstance = isInstance && "legacyServices" in value;
|
|
44
|
+
isInstance = isInstance && "authType" in value;
|
|
45
|
+
return isInstance;
|
|
46
|
+
}
|
|
47
|
+
exports.instanceOfUserAccountSearchResult = instanceOfUserAccountSearchResult;
|
|
23
48
|
function UserAccountSearchResultFromJSON(json) {
|
|
24
49
|
return UserAccountSearchResultFromJSONTyped(json, false);
|
|
25
50
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { UserAgreementState } from './UserAgreementState';
|
|
12
|
+
import type { UserAgreementState } from './UserAgreementState';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -23,6 +23,10 @@ export interface UserAgreement {
|
|
|
23
23
|
*/
|
|
24
24
|
state: UserAgreementState;
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the UserAgreement interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfUserAgreement(value: object): boolean;
|
|
26
30
|
export declare function UserAgreementFromJSON(json: any): UserAgreement;
|
|
27
31
|
export declare function UserAgreementFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAgreement;
|
|
28
32
|
export declare function UserAgreementToJSON(value?: UserAgreement | null): any;
|
|
@@ -13,8 +13,17 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UserAgreementToJSON = exports.UserAgreementFromJSONTyped = exports.UserAgreementFromJSON = void 0;
|
|
16
|
+
exports.UserAgreementToJSON = exports.UserAgreementFromJSONTyped = exports.UserAgreementFromJSON = exports.instanceOfUserAgreement = void 0;
|
|
17
17
|
const UserAgreementState_1 = require("./UserAgreementState");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the UserAgreement interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfUserAgreement(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "state" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfUserAgreement = instanceOfUserAgreement;
|
|
18
27
|
function UserAgreementFromJSON(json) {
|
|
19
28
|
return UserAgreementFromJSONTyped(json, false);
|
|
20
29
|
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
export declare const UserAgreementState: {
|
|
19
19
|
readonly ACCEPTED: "ACCEPTED";
|
|
20
20
|
readonly REQUESTED: "REQUESTED";
|
|
21
|
+
readonly unknown_default_open_api: "11184809";
|
|
21
22
|
};
|
|
22
23
|
export declare type UserAgreementState = typeof UserAgreementState[keyof typeof UserAgreementState];
|
|
23
24
|
export declare function UserAgreementStateFromJSON(json: any): UserAgreementState;
|
|
@@ -22,7 +22,8 @@ exports.UserAgreementStateToJSON = exports.UserAgreementStateFromJSONTyped = exp
|
|
|
22
22
|
*/
|
|
23
23
|
exports.UserAgreementState = {
|
|
24
24
|
ACCEPTED: 'ACCEPTED',
|
|
25
|
-
REQUESTED: 'REQUESTED'
|
|
25
|
+
REQUESTED: 'REQUESTED',
|
|
26
|
+
unknown_default_open_api: '11184809'
|
|
26
27
|
};
|
|
27
28
|
function UserAgreementStateFromJSON(json) {
|
|
28
29
|
return UserAgreementStateFromJSONTyped(json, false);
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { LegacyRoleSchema } from './LegacyRoleSchema';
|
|
13
|
-
import { RolesOnOrganization } from './RolesOnOrganization';
|
|
12
|
+
import type { LegacyRoleSchema } from './LegacyRoleSchema';
|
|
13
|
+
import type { RolesOnOrganization } from './RolesOnOrganization';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -30,6 +30,10 @@ export interface UserPermissions {
|
|
|
30
30
|
*/
|
|
31
31
|
legacyRoles: Array<LegacyRoleSchema>;
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the UserPermissions interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfUserPermissions(value: object): boolean;
|
|
33
37
|
export declare function UserPermissionsFromJSON(json: any): UserPermissions;
|
|
34
38
|
export declare function UserPermissionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPermissions;
|
|
35
39
|
export declare function UserPermissionsToJSON(value?: UserPermissions | null): any;
|
|
@@ -13,9 +13,19 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UserPermissionsToJSON = exports.UserPermissionsFromJSONTyped = exports.UserPermissionsFromJSON = void 0;
|
|
16
|
+
exports.UserPermissionsToJSON = exports.UserPermissionsFromJSONTyped = exports.UserPermissionsFromJSON = exports.instanceOfUserPermissions = void 0;
|
|
17
17
|
const LegacyRoleSchema_1 = require("./LegacyRoleSchema");
|
|
18
18
|
const RolesOnOrganization_1 = require("./RolesOnOrganization");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the UserPermissions interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfUserPermissions(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "organizations" in value;
|
|
25
|
+
isInstance = isInstance && "legacyRoles" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfUserPermissions = instanceOfUserPermissions;
|
|
19
29
|
function UserPermissionsFromJSON(json) {
|
|
20
30
|
return UserPermissionsFromJSONTyped(json, false);
|
|
21
31
|
}
|
|
@@ -42,6 +42,10 @@ export interface UserServiceAssociation {
|
|
|
42
42
|
[key: string]: string;
|
|
43
43
|
} | null;
|
|
44
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the UserServiceAssociation interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfUserServiceAssociation(value: object): boolean;
|
|
45
49
|
export declare function UserServiceAssociationFromJSON(json: any): UserServiceAssociation;
|
|
46
50
|
export declare function UserServiceAssociationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserServiceAssociation;
|
|
47
51
|
export declare function UserServiceAssociationToJSON(value?: UserServiceAssociation | null): any;
|
|
@@ -13,8 +13,18 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UserServiceAssociationToJSON = exports.UserServiceAssociationFromJSONTyped = exports.UserServiceAssociationFromJSON = void 0;
|
|
16
|
+
exports.UserServiceAssociationToJSON = exports.UserServiceAssociationFromJSONTyped = exports.UserServiceAssociationFromJSON = exports.instanceOfUserServiceAssociation = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the UserServiceAssociation interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfUserServiceAssociation(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "organizationUuid" in value;
|
|
24
|
+
isInstance = isInstance && "code" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfUserServiceAssociation = instanceOfUserServiceAssociation;
|
|
18
28
|
function UserServiceAssociationFromJSON(json) {
|
|
19
29
|
return UserServiceAssociationFromJSONTyped(json, false);
|
|
20
30
|
}
|
|
@@ -22,6 +22,10 @@ export interface UserSsoProvider {
|
|
|
22
22
|
*/
|
|
23
23
|
code: string;
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UserSsoProvider interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUserSsoProvider(value: object): boolean;
|
|
25
29
|
export declare function UserSsoProviderFromJSON(json: any): UserSsoProvider;
|
|
26
30
|
export declare function UserSsoProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSsoProvider;
|
|
27
31
|
export declare function UserSsoProviderToJSON(value?: UserSsoProvider | null): any;
|
|
@@ -13,7 +13,16 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UserSsoProviderToJSON = exports.UserSsoProviderFromJSONTyped = exports.UserSsoProviderFromJSON = void 0;
|
|
16
|
+
exports.UserSsoProviderToJSON = exports.UserSsoProviderFromJSONTyped = exports.UserSsoProviderFromJSON = exports.instanceOfUserSsoProvider = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the UserSsoProvider interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfUserSsoProvider(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "code" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfUserSsoProvider = instanceOfUserSsoProvider;
|
|
17
26
|
function UserSsoProviderFromJSON(json) {
|
|
18
27
|
return UserSsoProviderFromJSONTyped(json, false);
|
|
19
28
|
}
|
|
@@ -20,6 +20,7 @@ export declare const UserState: {
|
|
|
20
20
|
readonly DELETED: "DELETED";
|
|
21
21
|
readonly DISABLED: "DISABLED";
|
|
22
22
|
readonly ENABLED: "ENABLED";
|
|
23
|
+
readonly unknown_default_open_api: "11184809";
|
|
23
24
|
};
|
|
24
25
|
export declare type UserState = typeof UserState[keyof typeof UserState];
|
|
25
26
|
export declare function UserStateFromJSON(json: any): UserState;
|
package/dist/models/UserState.js
CHANGED
|
@@ -24,7 +24,8 @@ exports.UserStateToJSON = exports.UserStateFromJSONTyped = exports.UserStateFrom
|
|
|
24
24
|
exports.UserState = {
|
|
25
25
|
DELETED: 'DELETED',
|
|
26
26
|
DISABLED: 'DISABLED',
|
|
27
|
-
ENABLED: 'ENABLED'
|
|
27
|
+
ENABLED: 'ENABLED',
|
|
28
|
+
unknown_default_open_api: '11184809'
|
|
28
29
|
};
|
|
29
30
|
function UserStateFromJSON(json) {
|
|
30
31
|
return UserStateFromJSONTyped(json, false);
|
package/dist/runtime.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export declare class BaseAPI {
|
|
|
48
48
|
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
49
49
|
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
50
50
|
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
|
51
|
-
protected request(context: RequestOpts, initOverrides?: RequestInit |
|
|
51
|
+
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
|
|
52
52
|
private createFetchParams;
|
|
53
53
|
private fetchApi;
|
|
54
54
|
/**
|
|
@@ -62,6 +62,11 @@ export declare class ResponseError extends Error {
|
|
|
62
62
|
name: "ResponseError";
|
|
63
63
|
constructor(response: Response, msg?: string);
|
|
64
64
|
}
|
|
65
|
+
export declare class FetchError extends Error {
|
|
66
|
+
cause: unknown;
|
|
67
|
+
name: "FetchError";
|
|
68
|
+
constructor(cause: unknown, msg?: string);
|
|
69
|
+
}
|
|
65
70
|
export declare class RequiredError extends Error {
|
|
66
71
|
field: string;
|
|
67
72
|
name: "RequiredError";
|
|
@@ -90,7 +95,7 @@ export declare type HTTPRequestInit = {
|
|
|
90
95
|
body?: HTTPBody;
|
|
91
96
|
};
|
|
92
97
|
export declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
93
|
-
export declare type
|
|
98
|
+
export declare type InitOverrideFunction = (requestContext: {
|
|
94
99
|
init: HTTPRequestInit;
|
|
95
100
|
context: RequestOpts;
|
|
96
101
|
}) => Promise<RequestInit>;
|
|
@@ -123,9 +128,17 @@ export interface ResponseContext {
|
|
|
123
128
|
init: RequestInit;
|
|
124
129
|
response: Response;
|
|
125
130
|
}
|
|
131
|
+
export interface ErrorContext {
|
|
132
|
+
fetch: FetchAPI;
|
|
133
|
+
url: string;
|
|
134
|
+
init: RequestInit;
|
|
135
|
+
error: unknown;
|
|
136
|
+
response?: Response;
|
|
137
|
+
}
|
|
126
138
|
export interface Middleware {
|
|
127
139
|
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
128
140
|
post?(context: ResponseContext): Promise<Response | void>;
|
|
141
|
+
onError?(context: ErrorContext): Promise<Response | void>;
|
|
129
142
|
}
|
|
130
143
|
export interface ApiResponse<T> {
|
|
131
144
|
raw: Response;
|
package/dist/runtime.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
|
|
25
|
+
exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
|
|
26
26
|
exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
27
27
|
class Configuration {
|
|
28
28
|
constructor(configuration = {}) {
|
|
@@ -85,7 +85,26 @@ class BaseAPI {
|
|
|
85
85
|
fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
let response =
|
|
88
|
+
let response = undefined;
|
|
89
|
+
try {
|
|
90
|
+
response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
91
|
+
}
|
|
92
|
+
catch (e) {
|
|
93
|
+
for (const middleware of this.middleware) {
|
|
94
|
+
if (middleware.onError) {
|
|
95
|
+
response = (yield middleware.onError({
|
|
96
|
+
fetch: this.fetchApi,
|
|
97
|
+
url: fetchParams.url,
|
|
98
|
+
init: fetchParams.init,
|
|
99
|
+
error: e,
|
|
100
|
+
response: response ? response.clone() : undefined,
|
|
101
|
+
})) || response;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (response !== undefined) {
|
|
105
|
+
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
|
106
|
+
}
|
|
107
|
+
}
|
|
89
108
|
for (const middleware of this.middleware) {
|
|
90
109
|
if (middleware.post) {
|
|
91
110
|
response = (yield middleware.post({
|
|
@@ -182,6 +201,14 @@ class ResponseError extends Error {
|
|
|
182
201
|
}
|
|
183
202
|
}
|
|
184
203
|
exports.ResponseError = ResponseError;
|
|
204
|
+
class FetchError extends Error {
|
|
205
|
+
constructor(cause, msg) {
|
|
206
|
+
super(msg);
|
|
207
|
+
this.cause = cause;
|
|
208
|
+
this.name = "FetchError";
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
exports.FetchError = FetchError;
|
|
185
212
|
class RequiredError extends Error {
|
|
186
213
|
constructor(field, msg) {
|
|
187
214
|
super(msg);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equisoft/account-service-sdk-typescript",
|
|
3
|
-
"version": "4.5.1-snapshot.
|
|
3
|
+
"version": "4.5.1-snapshot.20230207210529",
|
|
4
4
|
"description": "OpenAPI client for @equisoft/account-service-sdk-typescript",
|
|
5
5
|
"author": "Equisoft Inc.",
|
|
6
6
|
"main": "./dist/index.js",
|
package/src/apis/OAuthApi.ts
CHANGED
|
@@ -14,17 +14,19 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
CreateOrUpdateOAuthClientPayload,
|
|
19
|
+
ErrorPayload,
|
|
20
|
+
OAuthClient,
|
|
21
|
+
OAuthClientCreated,
|
|
22
|
+
} from '../models';
|
|
17
23
|
import {
|
|
18
|
-
CreateOrUpdateOAuthClientPayload,
|
|
19
24
|
CreateOrUpdateOAuthClientPayloadFromJSON,
|
|
20
25
|
CreateOrUpdateOAuthClientPayloadToJSON,
|
|
21
|
-
ErrorPayload,
|
|
22
26
|
ErrorPayloadFromJSON,
|
|
23
27
|
ErrorPayloadToJSON,
|
|
24
|
-
OAuthClient,
|
|
25
28
|
OAuthClientFromJSON,
|
|
26
29
|
OAuthClientToJSON,
|
|
27
|
-
OAuthClientCreated,
|
|
28
30
|
OAuthClientCreatedFromJSON,
|
|
29
31
|
OAuthClientCreatedToJSON,
|
|
30
32
|
} from '../models';
|
|
@@ -46,7 +48,7 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
46
48
|
/**
|
|
47
49
|
* Create or update an oauth client
|
|
48
50
|
*/
|
|
49
|
-
async createOrUpdateOAuthClientRaw(requestParameters: CreateOrUpdateOAuthClientRequest, initOverrides?: RequestInit | runtime.
|
|
51
|
+
async createOrUpdateOAuthClientRaw(requestParameters: CreateOrUpdateOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthClientCreated>> {
|
|
50
52
|
if (requestParameters.clientId === null || requestParameters.clientId === undefined) {
|
|
51
53
|
throw new runtime.RequiredError('clientId','Required parameter requestParameters.clientId was null or undefined when calling createOrUpdateOAuthClient.');
|
|
52
54
|
}
|
|
@@ -85,7 +87,7 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
85
87
|
/**
|
|
86
88
|
* Create or update an oauth client
|
|
87
89
|
*/
|
|
88
|
-
async createOrUpdateOAuthClient(requestParameters: CreateOrUpdateOAuthClientRequest, initOverrides?: RequestInit | runtime.
|
|
90
|
+
async createOrUpdateOAuthClient(requestParameters: CreateOrUpdateOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClientCreated> {
|
|
89
91
|
const response = await this.createOrUpdateOAuthClientRaw(requestParameters, initOverrides);
|
|
90
92
|
return await response.value();
|
|
91
93
|
}
|
|
@@ -93,7 +95,7 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
93
95
|
/**
|
|
94
96
|
* Get detailed information about an oauth client.
|
|
95
97
|
*/
|
|
96
|
-
async getOAuthClientRaw(requestParameters: GetOAuthClientRequest, initOverrides?: RequestInit | runtime.
|
|
98
|
+
async getOAuthClientRaw(requestParameters: GetOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthClient>> {
|
|
97
99
|
if (requestParameters.clientId === null || requestParameters.clientId === undefined) {
|
|
98
100
|
throw new runtime.RequiredError('clientId','Required parameter requestParameters.clientId was null or undefined when calling getOAuthClient.');
|
|
99
101
|
}
|
|
@@ -125,7 +127,7 @@ export class OAuthApi extends runtime.BaseAPI {
|
|
|
125
127
|
/**
|
|
126
128
|
* Get detailed information about an oauth client.
|
|
127
129
|
*/
|
|
128
|
-
async getOAuthClient(requestParameters: GetOAuthClientRequest, initOverrides?: RequestInit | runtime.
|
|
130
|
+
async getOAuthClient(requestParameters: GetOAuthClientRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthClient> {
|
|
129
131
|
const response = await this.getOAuthClientRaw(requestParameters, initOverrides);
|
|
130
132
|
return await response.value();
|
|
131
133
|
}
|