@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.
Files changed (232) hide show
  1. package/.openapi-generator/VERSION +1 -1
  2. package/dist/apis/OAuthApi.d.ts +5 -5
  3. package/dist/apis/OrganizationApi.d.ts +37 -37
  4. package/dist/apis/PermissionApi.d.ts +3 -3
  5. package/dist/apis/RoleApi.d.ts +3 -3
  6. package/dist/apis/ServiceAccountApi.d.ts +17 -17
  7. package/dist/apis/SessionApi.d.ts +25 -25
  8. package/dist/apis/UserApi.d.ts +45 -45
  9. package/dist/models/ApplyPermissionsPayload.d.ts +5 -1
  10. package/dist/models/ApplyPermissionsPayload.js +11 -1
  11. package/dist/models/AuthenticationUserAccount.d.ts +4 -0
  12. package/dist/models/AuthenticationUserAccount.js +14 -1
  13. package/dist/models/CreateOrUpdateOAuthClientPayload.d.ts +5 -1
  14. package/dist/models/CreateOrUpdateOAuthClientPayload.js +13 -1
  15. package/dist/models/CreateOrUpdateOrganizationPayload.d.ts +5 -1
  16. package/dist/models/CreateOrUpdateOrganizationPayload.js +12 -1
  17. package/dist/models/CreateOrUpdatePermissionPayload.d.ts +5 -1
  18. package/dist/models/CreateOrUpdatePermissionPayload.js +10 -1
  19. package/dist/models/CreateOrganizationPayload.d.ts +5 -1
  20. package/dist/models/CreateOrganizationPayload.js +12 -1
  21. package/dist/models/CreateOrganizationUserServiceOptionPayload.d.ts +4 -0
  22. package/dist/models/CreateOrganizationUserServiceOptionPayload.js +10 -1
  23. package/dist/models/CreateOrganizationUserServicePayload.d.ts +4 -0
  24. package/dist/models/CreateOrganizationUserServicePayload.js +9 -1
  25. package/dist/models/CreateRole.d.ts +5 -1
  26. package/dist/models/CreateRole.js +11 -1
  27. package/dist/models/DatabaseState.d.ts +1 -0
  28. package/dist/models/DatabaseState.js +2 -1
  29. package/dist/models/EnableEquisoftConnectPayloadSchema.d.ts +4 -0
  30. package/dist/models/EnableEquisoftConnectPayloadSchema.js +9 -1
  31. package/dist/models/ErrorMessage.d.ts +1 -0
  32. package/dist/models/ErrorMessage.js +2 -1
  33. package/dist/models/ErrorPayload.d.ts +5 -1
  34. package/dist/models/ErrorPayload.js +10 -1
  35. package/dist/models/Id.d.ts +4 -0
  36. package/dist/models/Id.js +11 -1
  37. package/dist/models/ImpersonatePayload.d.ts +4 -0
  38. package/dist/models/ImpersonatePayload.js +10 -1
  39. package/dist/models/LegacyRoleSchema.d.ts +5 -1
  40. package/dist/models/LegacyRoleSchema.js +11 -1
  41. package/dist/models/ListOrganizationElement.d.ts +7 -3
  42. package/dist/models/ListOrganizationElement.js +13 -1
  43. package/dist/models/ListUserOrganizations.d.ts +5 -1
  44. package/dist/models/ListUserOrganizations.js +10 -1
  45. package/dist/models/LocalizedString.d.ts +4 -0
  46. package/dist/models/LocalizedString.js +11 -1
  47. package/dist/models/LoginPayload.d.ts +4 -0
  48. package/dist/models/LoginPayload.js +11 -1
  49. package/dist/models/OAuthClient.d.ts +5 -1
  50. package/dist/models/OAuthClient.js +19 -1
  51. package/dist/models/OAuthClientCreated.d.ts +4 -0
  52. package/dist/models/OAuthClientCreated.js +10 -1
  53. package/dist/models/OAuthClientPublicKey.d.ts +4 -0
  54. package/dist/models/OAuthClientPublicKey.js +11 -1
  55. package/dist/models/Organization.d.ts +7 -3
  56. package/dist/models/Organization.js +15 -1
  57. package/dist/models/OrganizationCreated.d.ts +4 -0
  58. package/dist/models/OrganizationCreated.js +10 -1
  59. package/dist/models/OrganizationPathElement.d.ts +5 -1
  60. package/dist/models/OrganizationPathElement.js +11 -1
  61. package/dist/models/OrganizationRoleAttribution.d.ts +6 -2
  62. package/dist/models/OrganizationRoleAttribution.js +11 -1
  63. package/dist/models/OrganizationRoleAttributionPermission.d.ts +5 -1
  64. package/dist/models/OrganizationRoleAttributionPermission.js +11 -1
  65. package/dist/models/OrganizationRoleAttributionRole.d.ts +6 -2
  66. package/dist/models/OrganizationRoleAttributionRole.js +12 -1
  67. package/dist/models/OrganizationRoleAttributions.d.ts +5 -1
  68. package/dist/models/OrganizationRoleAttributions.js +10 -1
  69. package/dist/models/OrganizationServicesElement.d.ts +4 -0
  70. package/dist/models/OrganizationServicesElement.js +10 -1
  71. package/dist/models/OrganizationSsoProvider.d.ts +5 -1
  72. package/dist/models/OrganizationSsoProvider.js +11 -1
  73. package/dist/models/OrganizationUserServiceAssociation.d.ts +4 -0
  74. package/dist/models/OrganizationUserServiceAssociation.js +11 -1
  75. package/dist/models/PermissionCode.d.ts +4 -0
  76. package/dist/models/PermissionCode.js +10 -1
  77. package/dist/models/PermissionCreated.d.ts +4 -0
  78. package/dist/models/PermissionCreated.js +10 -1
  79. package/dist/models/PermissionList.d.ts +5 -1
  80. package/dist/models/PermissionList.js +10 -1
  81. package/dist/models/PermissionResourceType.d.ts +1 -0
  82. package/dist/models/PermissionResourceType.js +2 -1
  83. package/dist/models/Role.d.ts +5 -1
  84. package/dist/models/Role.js +12 -1
  85. package/dist/models/RoleCreated.d.ts +5 -1
  86. package/dist/models/RoleCreated.js +12 -1
  87. package/dist/models/RolesOnOrganization.d.ts +8 -4
  88. package/dist/models/RolesOnOrganization.js +14 -1
  89. package/dist/models/SendResetPasswordLinkPayload.d.ts +4 -0
  90. package/dist/models/SendResetPasswordLinkPayload.js +11 -1
  91. package/dist/models/ServiceAccess.d.ts +6 -2
  92. package/dist/models/ServiceAccess.js +10 -1
  93. package/dist/models/ServiceAccountCreationSchema.d.ts +4 -0
  94. package/dist/models/ServiceAccountCreationSchema.js +12 -1
  95. package/dist/models/ServiceAccountSchema.d.ts +5 -1
  96. package/dist/models/ServiceAccountSchema.js +15 -1
  97. package/dist/models/ServiceAccountStatus.d.ts +1 -0
  98. package/dist/models/ServiceAccountStatus.js +2 -1
  99. package/dist/models/ServiceAccountUpdateSchema.d.ts +4 -0
  100. package/dist/models/ServiceAccountUpdateSchema.js +9 -1
  101. package/dist/models/ServiceAccountUuidSchema.d.ts +4 -0
  102. package/dist/models/ServiceAccountUuidSchema.js +10 -1
  103. package/dist/models/ServiceName.d.ts +1 -0
  104. package/dist/models/ServiceName.js +2 -1
  105. package/dist/models/Session.d.ts +7 -3
  106. package/dist/models/Session.js +17 -1
  107. package/dist/models/SessionPayload.d.ts +5 -1
  108. package/dist/models/SessionPayload.js +11 -1
  109. package/dist/models/SessionState.d.ts +1 -0
  110. package/dist/models/SessionState.js +2 -1
  111. package/dist/models/SetPasswordByConfirmationHashPayload.d.ts +4 -0
  112. package/dist/models/SetPasswordByConfirmationHashPayload.js +10 -1
  113. package/dist/models/SetUserAccountPasswordPayload.d.ts +4 -0
  114. package/dist/models/SetUserAccountPasswordPayload.js +11 -1
  115. package/dist/models/SsoProvider.d.ts +4 -0
  116. package/dist/models/SsoProvider.js +11 -1
  117. package/dist/models/SsoToken.d.ts +4 -0
  118. package/dist/models/SsoToken.js +11 -1
  119. package/dist/models/UpdateParentOrganizationPayload.d.ts +4 -0
  120. package/dist/models/UpdateParentOrganizationPayload.js +10 -1
  121. package/dist/models/UpdateUserAccountPayload.d.ts +4 -0
  122. package/dist/models/UpdateUserAccountPayload.js +11 -1
  123. package/dist/models/UpdateUserAccountSsoPayload.d.ts +4 -0
  124. package/dist/models/UpdateUserAccountSsoPayload.js +10 -1
  125. package/dist/models/UpsertServicePayload.d.ts +4 -0
  126. package/dist/models/UpsertServicePayload.js +9 -1
  127. package/dist/models/User.d.ts +9 -5
  128. package/dist/models/User.js +26 -1
  129. package/dist/models/UserAccountOrganizationRoles.d.ts +6 -2
  130. package/dist/models/UserAccountOrganizationRoles.js +12 -1
  131. package/dist/models/UserAccountPermission.d.ts +5 -1
  132. package/dist/models/UserAccountPermission.js +11 -1
  133. package/dist/models/UserAccountRole.d.ts +5 -1
  134. package/dist/models/UserAccountRole.js +11 -1
  135. package/dist/models/UserAccountRoleAttributions.d.ts +5 -1
  136. package/dist/models/UserAccountRoleAttributions.js +10 -1
  137. package/dist/models/UserAccountSearchResult.d.ts +9 -5
  138. package/dist/models/UserAccountSearchResult.js +26 -1
  139. package/dist/models/UserAgreement.d.ts +5 -1
  140. package/dist/models/UserAgreement.js +10 -1
  141. package/dist/models/UserAgreementState.d.ts +1 -0
  142. package/dist/models/UserAgreementState.js +2 -1
  143. package/dist/models/UserPermissions.d.ts +6 -2
  144. package/dist/models/UserPermissions.js +11 -1
  145. package/dist/models/UserServiceAssociation.d.ts +4 -0
  146. package/dist/models/UserServiceAssociation.js +11 -1
  147. package/dist/models/UserSsoProvider.d.ts +4 -0
  148. package/dist/models/UserSsoProvider.js +10 -1
  149. package/dist/models/UserState.d.ts +1 -0
  150. package/dist/models/UserState.js +2 -1
  151. package/dist/runtime.d.ts +15 -2
  152. package/dist/runtime.js +29 -2
  153. package/package.json +1 -1
  154. package/src/apis/OAuthApi.ts +10 -8
  155. package/src/apis/OrganizationApi.ts +54 -52
  156. package/src/apis/PermissionApi.ts +7 -5
  157. package/src/apis/RoleApi.ts +6 -4
  158. package/src/apis/ServiceAccountApi.ts +26 -24
  159. package/src/apis/SessionApi.ts +32 -30
  160. package/src/apis/UserApi.ts +62 -60
  161. package/src/models/ApplyPermissionsPayload.ts +12 -1
  162. package/src/models/AuthenticationUserAccount.ts +14 -0
  163. package/src/models/CreateOrUpdateOAuthClientPayload.ts +14 -1
  164. package/src/models/CreateOrUpdateOrganizationPayload.ts +13 -1
  165. package/src/models/CreateOrUpdatePermissionPayload.ts +11 -1
  166. package/src/models/CreateOrganizationPayload.ts +13 -1
  167. package/src/models/CreateOrganizationUserServiceOptionPayload.ts +10 -0
  168. package/src/models/CreateOrganizationUserServicePayload.ts +9 -0
  169. package/src/models/CreateRole.ts +12 -1
  170. package/src/models/DatabaseState.ts +2 -1
  171. package/src/models/EnableEquisoftConnectPayloadSchema.ts +9 -0
  172. package/src/models/ErrorMessage.ts +2 -1
  173. package/src/models/ErrorPayload.ts +11 -1
  174. package/src/models/Id.ts +11 -0
  175. package/src/models/ImpersonatePayload.ts +10 -0
  176. package/src/models/LegacyRoleSchema.ts +12 -1
  177. package/src/models/ListOrganizationElement.ts +16 -3
  178. package/src/models/ListUserOrganizations.ts +11 -1
  179. package/src/models/LocalizedString.ts +11 -0
  180. package/src/models/LoginPayload.ts +11 -0
  181. package/src/models/OAuthClient.ts +20 -1
  182. package/src/models/OAuthClientCreated.ts +10 -0
  183. package/src/models/OAuthClientPublicKey.ts +11 -0
  184. package/src/models/Organization.ts +18 -3
  185. package/src/models/OrganizationCreated.ts +10 -0
  186. package/src/models/OrganizationPathElement.ts +12 -1
  187. package/src/models/OrganizationRoleAttribution.ts +13 -2
  188. package/src/models/OrganizationRoleAttributionPermission.ts +12 -1
  189. package/src/models/OrganizationRoleAttributionRole.ts +14 -2
  190. package/src/models/OrganizationRoleAttributions.ts +11 -1
  191. package/src/models/OrganizationServicesElement.ts +10 -0
  192. package/src/models/OrganizationSsoProvider.ts +12 -1
  193. package/src/models/OrganizationUserServiceAssociation.ts +11 -0
  194. package/src/models/PermissionCode.ts +10 -0
  195. package/src/models/PermissionCreated.ts +10 -0
  196. package/src/models/PermissionList.ts +11 -1
  197. package/src/models/PermissionResourceType.ts +2 -1
  198. package/src/models/Role.ts +13 -1
  199. package/src/models/RoleCreated.ts +13 -1
  200. package/src/models/RolesOnOrganization.ts +18 -4
  201. package/src/models/SendResetPasswordLinkPayload.ts +11 -0
  202. package/src/models/ServiceAccess.ts +12 -2
  203. package/src/models/ServiceAccountCreationSchema.ts +12 -0
  204. package/src/models/ServiceAccountSchema.ts +16 -1
  205. package/src/models/ServiceAccountStatus.ts +2 -1
  206. package/src/models/ServiceAccountUpdateSchema.ts +9 -0
  207. package/src/models/ServiceAccountUuidSchema.ts +10 -0
  208. package/src/models/ServiceName.ts +2 -1
  209. package/src/models/Session.ts +20 -3
  210. package/src/models/SessionPayload.ts +12 -1
  211. package/src/models/SessionState.ts +2 -1
  212. package/src/models/SetPasswordByConfirmationHashPayload.ts +10 -0
  213. package/src/models/SetUserAccountPasswordPayload.ts +11 -0
  214. package/src/models/SsoProvider.ts +11 -0
  215. package/src/models/SsoToken.ts +11 -0
  216. package/src/models/UpdateParentOrganizationPayload.ts +10 -0
  217. package/src/models/UpdateUserAccountPayload.ts +11 -0
  218. package/src/models/UpdateUserAccountSsoPayload.ts +10 -0
  219. package/src/models/UpsertServicePayload.ts +9 -0
  220. package/src/models/User.ts +31 -5
  221. package/src/models/UserAccountOrganizationRoles.ts +14 -2
  222. package/src/models/UserAccountPermission.ts +12 -1
  223. package/src/models/UserAccountRole.ts +12 -1
  224. package/src/models/UserAccountRoleAttributions.ts +11 -1
  225. package/src/models/UserAccountSearchResult.ts +31 -5
  226. package/src/models/UserAgreement.ts +11 -1
  227. package/src/models/UserAgreementState.ts +2 -1
  228. package/src/models/UserPermissions.ts +13 -2
  229. package/src/models/UserServiceAssociation.ts +11 -0
  230. package/src/models/UserSsoProvider.ts +10 -0
  231. package/src/models/UserState.ts +2 -1
  232. package/src/runtime.ts +39 -5
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { LocalizedString } from './LocalizedString';
16
17
  import {
17
- LocalizedString,
18
18
  LocalizedStringFromJSON,
19
19
  LocalizedStringFromJSONTyped,
20
20
  LocalizedStringToJSON,
@@ -40,6 +40,17 @@ export interface CreateRole {
40
40
  permissions: Array<string>;
41
41
  }
42
42
 
43
+ /**
44
+ * Check if a given object implements the CreateRole interface.
45
+ */
46
+ export function instanceOfCreateRole(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "name" in value;
49
+ isInstance = isInstance && "permissions" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
43
54
  export function CreateRoleFromJSON(json: any): CreateRole {
44
55
  return CreateRoleFromJSONTyped(json, false);
45
56
  }
@@ -25,7 +25,8 @@ export const DatabaseState = {
25
25
  ENABLED: 'ENABLED',
26
26
  DISABLED: 'DISABLED',
27
27
  DELETED: 'DELETED',
28
- MAINTENANCE: 'MAINTENANCE'
28
+ MAINTENANCE: 'MAINTENANCE',
29
+ unknown_default_open_api: '11184809'
29
30
  } as const;
30
31
  export type DatabaseState = typeof DatabaseState[keyof typeof DatabaseState];
31
32
 
@@ -27,6 +27,15 @@ export interface EnableEquisoftConnectPayloadSchema {
27
27
  disableOldestSessions?: boolean | null;
28
28
  }
29
29
 
30
+ /**
31
+ * Check if a given object implements the EnableEquisoftConnectPayloadSchema interface.
32
+ */
33
+ export function instanceOfEnableEquisoftConnectPayloadSchema(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
30
39
  export function EnableEquisoftConnectPayloadSchemaFromJSON(json: any): EnableEquisoftConnectPayloadSchema {
31
40
  return EnableEquisoftConnectPayloadSchemaFromJSONTyped(json, false);
32
41
  }
@@ -34,7 +34,8 @@ export const ErrorMessage = {
34
34
  DUPLICATE_USER_ACCOUNT_EMAIL: 'DUPLICATE_USER_ACCOUNT_EMAIL',
35
35
  PASSWORD_LOGIN_DISABLED: 'PASSWORD_LOGIN_DISABLED',
36
36
  LOCKED_USER: 'LOCKED_USER',
37
- LOGIN_DENIED: 'LOGIN_DENIED'
37
+ LOGIN_DENIED: 'LOGIN_DENIED',
38
+ unknown_default_open_api: '11184809'
38
39
  } as const;
39
40
  export type ErrorMessage = typeof ErrorMessage[keyof typeof ErrorMessage];
40
41
 
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { ErrorMessage } from './ErrorMessage';
16
17
  import {
17
- ErrorMessage,
18
18
  ErrorMessageFromJSON,
19
19
  ErrorMessageFromJSONTyped,
20
20
  ErrorMessageToJSON,
@@ -40,6 +40,16 @@ export interface ErrorPayload {
40
40
  description?: string | null;
41
41
  }
42
42
 
43
+ /**
44
+ * Check if a given object implements the ErrorPayload interface.
45
+ */
46
+ export function instanceOfErrorPayload(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "message" in value;
49
+
50
+ return isInstance;
51
+ }
52
+
43
53
  export function ErrorPayloadFromJSON(json: any): ErrorPayload {
44
54
  return ErrorPayloadFromJSONTyped(json, false);
45
55
  }
package/src/models/Id.ts CHANGED
@@ -33,6 +33,17 @@ export interface Id {
33
33
  uuid: string;
34
34
  }
35
35
 
36
+ /**
37
+ * Check if a given object implements the Id interface.
38
+ */
39
+ export function instanceOfId(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "id" in value;
42
+ isInstance = isInstance && "uuid" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
36
47
  export function IdFromJSON(json: any): Id {
37
48
  return IdFromJSONTyped(json, false);
38
49
  }
@@ -27,6 +27,16 @@ export interface ImpersonatePayload {
27
27
  userUuid: string;
28
28
  }
29
29
 
30
+ /**
31
+ * Check if a given object implements the ImpersonatePayload interface.
32
+ */
33
+ export function instanceOfImpersonatePayload(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "userUuid" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
30
40
  export function ImpersonatePayloadFromJSON(json: any): ImpersonatePayload {
31
41
  return ImpersonatePayloadFromJSONTyped(json, false);
32
42
  }
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { LocalizedString } from './LocalizedString';
16
17
  import {
17
- LocalizedString,
18
18
  LocalizedStringFromJSON,
19
19
  LocalizedStringFromJSONTyped,
20
20
  LocalizedStringToJSON,
@@ -40,6 +40,17 @@ export interface LegacyRoleSchema {
40
40
  name: LocalizedString;
41
41
  }
42
42
 
43
+ /**
44
+ * Check if a given object implements the LegacyRoleSchema interface.
45
+ */
46
+ export function instanceOfLegacyRoleSchema(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "code" in value;
49
+ isInstance = isInstance && "name" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
43
54
  export function LegacyRoleSchemaFromJSON(json: any): LegacyRoleSchema {
44
55
  return LegacyRoleSchemaFromJSONTyped(json, false);
45
56
  }
@@ -13,20 +13,20 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { LocalizedString } from './LocalizedString';
16
17
  import {
17
- LocalizedString,
18
18
  LocalizedStringFromJSON,
19
19
  LocalizedStringFromJSONTyped,
20
20
  LocalizedStringToJSON,
21
21
  } from './LocalizedString';
22
+ import type { OrganizationPathElement } from './OrganizationPathElement';
22
23
  import {
23
- OrganizationPathElement,
24
24
  OrganizationPathElementFromJSON,
25
25
  OrganizationPathElementFromJSONTyped,
26
26
  OrganizationPathElementToJSON,
27
27
  } from './OrganizationPathElement';
28
+ import type { OrganizationServicesElement } from './OrganizationServicesElement';
28
29
  import {
29
- OrganizationServicesElement,
30
30
  OrganizationServicesElementFromJSON,
31
31
  OrganizationServicesElementFromJSONTyped,
32
32
  OrganizationServicesElementToJSON,
@@ -70,6 +70,19 @@ export interface ListOrganizationElement {
70
70
  services: Array<OrganizationServicesElement>;
71
71
  }
72
72
 
73
+ /**
74
+ * Check if a given object implements the ListOrganizationElement interface.
75
+ */
76
+ export function instanceOfListOrganizationElement(value: object): boolean {
77
+ let isInstance = true;
78
+ isInstance = isInstance && "uuid" in value;
79
+ isInstance = isInstance && "name" in value;
80
+ isInstance = isInstance && "path" in value;
81
+ isInstance = isInstance && "services" in value;
82
+
83
+ return isInstance;
84
+ }
85
+
73
86
  export function ListOrganizationElementFromJSON(json: any): ListOrganizationElement {
74
87
  return ListOrganizationElementFromJSONTyped(json, false);
75
88
  }
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { ListOrganizationElement } from './ListOrganizationElement';
16
17
  import {
17
- ListOrganizationElement,
18
18
  ListOrganizationElementFromJSON,
19
19
  ListOrganizationElementFromJSONTyped,
20
20
  ListOrganizationElementToJSON,
@@ -40,6 +40,16 @@ export interface ListUserOrganizations {
40
40
  nextPageToken?: string | null;
41
41
  }
42
42
 
43
+ /**
44
+ * Check if a given object implements the ListUserOrganizations interface.
45
+ */
46
+ export function instanceOfListUserOrganizations(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "organizations" in value;
49
+
50
+ return isInstance;
51
+ }
52
+
43
53
  export function ListUserOrganizationsFromJSON(json: any): ListUserOrganizations {
44
54
  return ListUserOrganizationsFromJSONTyped(json, false);
45
55
  }
@@ -33,6 +33,17 @@ export interface LocalizedString {
33
33
  defaultLocale: string;
34
34
  }
35
35
 
36
+ /**
37
+ * Check if a given object implements the LocalizedString interface.
38
+ */
39
+ export function instanceOfLocalizedString(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "values" in value;
42
+ isInstance = isInstance && "defaultLocale" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
36
47
  export function LocalizedStringFromJSON(json: any): LocalizedString {
37
48
  return LocalizedStringFromJSONTyped(json, false);
38
49
  }
@@ -33,6 +33,17 @@ export interface LoginPayload {
33
33
  password: string;
34
34
  }
35
35
 
36
+ /**
37
+ * Check if a given object implements the LoginPayload interface.
38
+ */
39
+ export function instanceOfLoginPayload(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "email" in value;
42
+ isInstance = isInstance && "password" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
36
47
  export function LoginPayloadFromJSON(json: any): LoginPayload {
37
48
  return LoginPayloadFromJSONTyped(json, false);
38
49
  }
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { OAuthClientPublicKey } from './OAuthClientPublicKey';
16
17
  import {
17
- OAuthClientPublicKey,
18
18
  OAuthClientPublicKeyFromJSON,
19
19
  OAuthClientPublicKeyFromJSONTyped,
20
20
  OAuthClientPublicKeyToJSON,
@@ -106,6 +106,25 @@ export interface OAuthClient {
106
106
  additionalTokenFields?: { [key: string]: any; } | null;
107
107
  }
108
108
 
109
+ /**
110
+ * Check if a given object implements the OAuthClient interface.
111
+ */
112
+ export function instanceOfOAuthClient(value: object): boolean {
113
+ let isInstance = true;
114
+ isInstance = isInstance && "clientId" in value;
115
+ isInstance = isInstance && "name" in value;
116
+ isInstance = isInstance && "clientSecret" in value;
117
+ isInstance = isInstance && "trusted" in value;
118
+ isInstance = isInstance && "audiences" in value;
119
+ isInstance = isInstance && "redirectUris" in value;
120
+ isInstance = isInstance && "grantTypes" in value;
121
+ isInstance = isInstance && "scopes" in value;
122
+ isInstance = isInstance && "serviceAccount" in value;
123
+ isInstance = isInstance && "serviceAccountDelegation" in value;
124
+
125
+ return isInstance;
126
+ }
127
+
109
128
  export function OAuthClientFromJSON(json: any): OAuthClient {
110
129
  return OAuthClientFromJSONTyped(json, false);
111
130
  }
@@ -27,6 +27,16 @@ export interface OAuthClientCreated {
27
27
  clientId: string;
28
28
  }
29
29
 
30
+ /**
31
+ * Check if a given object implements the OAuthClientCreated interface.
32
+ */
33
+ export function instanceOfOAuthClientCreated(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "clientId" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
30
40
  export function OAuthClientCreatedFromJSON(json: any): OAuthClientCreated {
31
41
  return OAuthClientCreatedFromJSONTyped(json, false);
32
42
  }
@@ -33,6 +33,17 @@ export interface OAuthClientPublicKey {
33
33
  algorithm: string;
34
34
  }
35
35
 
36
+ /**
37
+ * Check if a given object implements the OAuthClientPublicKey interface.
38
+ */
39
+ export function instanceOfOAuthClientPublicKey(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "publicKey" in value;
42
+ isInstance = isInstance && "algorithm" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
36
47
  export function OAuthClientPublicKeyFromJSON(json: any): OAuthClientPublicKey {
37
48
  return OAuthClientPublicKeyFromJSONTyped(json, false);
38
49
  }
@@ -13,20 +13,20 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { LocalizedString } from './LocalizedString';
16
17
  import {
17
- LocalizedString,
18
18
  LocalizedStringFromJSON,
19
19
  LocalizedStringFromJSONTyped,
20
20
  LocalizedStringToJSON,
21
21
  } from './LocalizedString';
22
+ import type { OrganizationPathElement } from './OrganizationPathElement';
22
23
  import {
23
- OrganizationPathElement,
24
24
  OrganizationPathElementFromJSON,
25
25
  OrganizationPathElementFromJSONTyped,
26
26
  OrganizationPathElementToJSON,
27
27
  } from './OrganizationPathElement';
28
+ import type { OrganizationServicesElement } from './OrganizationServicesElement';
28
29
  import {
29
- OrganizationServicesElement,
30
30
  OrganizationServicesElementFromJSON,
31
31
  OrganizationServicesElementFromJSONTyped,
32
32
  OrganizationServicesElementToJSON,
@@ -94,6 +94,21 @@ export interface Organization {
94
94
  services: Array<OrganizationServicesElement>;
95
95
  }
96
96
 
97
+ /**
98
+ * Check if a given object implements the Organization interface.
99
+ */
100
+ export function instanceOfOrganization(value: object): boolean {
101
+ let isInstance = true;
102
+ isInstance = isInstance && "uuid" in value;
103
+ isInstance = isInstance && "name" in value;
104
+ isInstance = isInstance && "equisoftConnectProfiles" in value;
105
+ isInstance = isInstance && "equisoftPlanProfiles" in value;
106
+ isInstance = isInstance && "createdAt" in value;
107
+ isInstance = isInstance && "services" in value;
108
+
109
+ return isInstance;
110
+ }
111
+
97
112
  export function OrganizationFromJSON(json: any): Organization {
98
113
  return OrganizationFromJSONTyped(json, false);
99
114
  }
@@ -27,6 +27,16 @@ export interface OrganizationCreated {
27
27
  uuid: string;
28
28
  }
29
29
 
30
+ /**
31
+ * Check if a given object implements the OrganizationCreated interface.
32
+ */
33
+ export function instanceOfOrganizationCreated(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "uuid" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
30
40
  export function OrganizationCreatedFromJSON(json: any): OrganizationCreated {
31
41
  return OrganizationCreatedFromJSONTyped(json, false);
32
42
  }
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { LocalizedString } from './LocalizedString';
16
17
  import {
17
- LocalizedString,
18
18
  LocalizedStringFromJSON,
19
19
  LocalizedStringFromJSONTyped,
20
20
  LocalizedStringToJSON,
@@ -40,6 +40,17 @@ export interface OrganizationPathElement {
40
40
  uuid: string;
41
41
  }
42
42
 
43
+ /**
44
+ * Check if a given object implements the OrganizationPathElement interface.
45
+ */
46
+ export function instanceOfOrganizationPathElement(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "name" in value;
49
+ isInstance = isInstance && "uuid" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
43
54
  export function OrganizationPathElementFromJSON(json: any): OrganizationPathElement {
44
55
  return OrganizationPathElementFromJSONTyped(json, false);
45
56
  }
@@ -13,14 +13,14 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { OrganizationRoleAttributionRole } from './OrganizationRoleAttributionRole';
16
17
  import {
17
- OrganizationRoleAttributionRole,
18
18
  OrganizationRoleAttributionRoleFromJSON,
19
19
  OrganizationRoleAttributionRoleFromJSONTyped,
20
20
  OrganizationRoleAttributionRoleToJSON,
21
21
  } from './OrganizationRoleAttributionRole';
22
+ import type { User } from './User';
22
23
  import {
23
- User,
24
24
  UserFromJSON,
25
25
  UserFromJSONTyped,
26
26
  UserToJSON,
@@ -46,6 +46,17 @@ export interface OrganizationRoleAttribution {
46
46
  roles: Array<OrganizationRoleAttributionRole>;
47
47
  }
48
48
 
49
+ /**
50
+ * Check if a given object implements the OrganizationRoleAttribution interface.
51
+ */
52
+ export function instanceOfOrganizationRoleAttribution(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "user" in value;
55
+ isInstance = isInstance && "roles" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
49
60
  export function OrganizationRoleAttributionFromJSON(json: any): OrganizationRoleAttribution {
50
61
  return OrganizationRoleAttributionFromJSONTyped(json, false);
51
62
  }
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { LocalizedString } from './LocalizedString';
16
17
  import {
17
- LocalizedString,
18
18
  LocalizedStringFromJSON,
19
19
  LocalizedStringFromJSONTyped,
20
20
  LocalizedStringToJSON,
@@ -40,6 +40,17 @@ export interface OrganizationRoleAttributionPermission {
40
40
  name: LocalizedString;
41
41
  }
42
42
 
43
+ /**
44
+ * Check if a given object implements the OrganizationRoleAttributionPermission interface.
45
+ */
46
+ export function instanceOfOrganizationRoleAttributionPermission(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "code" in value;
49
+ isInstance = isInstance && "name" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
43
54
  export function OrganizationRoleAttributionPermissionFromJSON(json: any): OrganizationRoleAttributionPermission {
44
55
  return OrganizationRoleAttributionPermissionFromJSONTyped(json, false);
45
56
  }
@@ -13,14 +13,14 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { LocalizedString } from './LocalizedString';
16
17
  import {
17
- LocalizedString,
18
18
  LocalizedStringFromJSON,
19
19
  LocalizedStringFromJSONTyped,
20
20
  LocalizedStringToJSON,
21
21
  } from './LocalizedString';
22
+ import type { OrganizationRoleAttributionPermission } from './OrganizationRoleAttributionPermission';
22
23
  import {
23
- OrganizationRoleAttributionPermission,
24
24
  OrganizationRoleAttributionPermissionFromJSON,
25
25
  OrganizationRoleAttributionPermissionFromJSONTyped,
26
26
  OrganizationRoleAttributionPermissionToJSON,
@@ -52,6 +52,18 @@ export interface OrganizationRoleAttributionRole {
52
52
  permissions: Array<OrganizationRoleAttributionPermission>;
53
53
  }
54
54
 
55
+ /**
56
+ * Check if a given object implements the OrganizationRoleAttributionRole interface.
57
+ */
58
+ export function instanceOfOrganizationRoleAttributionRole(value: object): boolean {
59
+ let isInstance = true;
60
+ isInstance = isInstance && "uuid" in value;
61
+ isInstance = isInstance && "name" in value;
62
+ isInstance = isInstance && "permissions" in value;
63
+
64
+ return isInstance;
65
+ }
66
+
55
67
  export function OrganizationRoleAttributionRoleFromJSON(json: any): OrganizationRoleAttributionRole {
56
68
  return OrganizationRoleAttributionRoleFromJSONTyped(json, false);
57
69
  }
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { OrganizationRoleAttribution } from './OrganizationRoleAttribution';
16
17
  import {
17
- OrganizationRoleAttribution,
18
18
  OrganizationRoleAttributionFromJSON,
19
19
  OrganizationRoleAttributionFromJSONTyped,
20
20
  OrganizationRoleAttributionToJSON,
@@ -34,6 +34,16 @@ export interface OrganizationRoleAttributions {
34
34
  users: Array<OrganizationRoleAttribution>;
35
35
  }
36
36
 
37
+ /**
38
+ * Check if a given object implements the OrganizationRoleAttributions interface.
39
+ */
40
+ export function instanceOfOrganizationRoleAttributions(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "users" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
37
47
  export function OrganizationRoleAttributionsFromJSON(json: any): OrganizationRoleAttributions {
38
48
  return OrganizationRoleAttributionsFromJSONTyped(json, false);
39
49
  }
@@ -33,6 +33,16 @@ export interface OrganizationServicesElement {
33
33
  externalId?: string | null;
34
34
  }
35
35
 
36
+ /**
37
+ * Check if a given object implements the OrganizationServicesElement interface.
38
+ */
39
+ export function instanceOfOrganizationServicesElement(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "code" in value;
42
+
43
+ return isInstance;
44
+ }
45
+
36
46
  export function OrganizationServicesElementFromJSON(json: any): OrganizationServicesElement {
37
47
  return OrganizationServicesElementFromJSONTyped(json, false);
38
48
  }
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { LocalizedString } from './LocalizedString';
16
17
  import {
17
- LocalizedString,
18
18
  LocalizedStringFromJSON,
19
19
  LocalizedStringFromJSONTyped,
20
20
  LocalizedStringToJSON,
@@ -40,6 +40,17 @@ export interface OrganizationSsoProvider {
40
40
  name: LocalizedString;
41
41
  }
42
42
 
43
+ /**
44
+ * Check if a given object implements the OrganizationSsoProvider interface.
45
+ */
46
+ export function instanceOfOrganizationSsoProvider(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "code" in value;
49
+ isInstance = isInstance && "name" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
43
54
  export function OrganizationSsoProviderFromJSON(json: any): OrganizationSsoProvider {
44
55
  return OrganizationSsoProviderFromJSONTyped(json, false);
45
56
  }
@@ -39,6 +39,17 @@ export interface OrganizationUserServiceAssociation {
39
39
  options?: { [key: string]: string; } | null;
40
40
  }
41
41
 
42
+ /**
43
+ * Check if a given object implements the OrganizationUserServiceAssociation interface.
44
+ */
45
+ export function instanceOfOrganizationUserServiceAssociation(value: object): boolean {
46
+ let isInstance = true;
47
+ isInstance = isInstance && "organizationUuid" in value;
48
+ isInstance = isInstance && "code" in value;
49
+
50
+ return isInstance;
51
+ }
52
+
42
53
  export function OrganizationUserServiceAssociationFromJSON(json: any): OrganizationUserServiceAssociation {
43
54
  return OrganizationUserServiceAssociationFromJSONTyped(json, false);
44
55
  }
@@ -27,6 +27,16 @@ export interface PermissionCode {
27
27
  code: string;
28
28
  }
29
29
 
30
+ /**
31
+ * Check if a given object implements the PermissionCode interface.
32
+ */
33
+ export function instanceOfPermissionCode(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "code" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
30
40
  export function PermissionCodeFromJSON(json: any): PermissionCode {
31
41
  return PermissionCodeFromJSONTyped(json, false);
32
42
  }
@@ -27,6 +27,16 @@ export interface PermissionCreated {
27
27
  code: string;
28
28
  }
29
29
 
30
+ /**
31
+ * Check if a given object implements the PermissionCreated interface.
32
+ */
33
+ export function instanceOfPermissionCreated(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "code" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
30
40
  export function PermissionCreatedFromJSON(json: any): PermissionCreated {
31
41
  return PermissionCreatedFromJSONTyped(json, false);
32
42
  }