|
3 | 3 | * Description: A User Authentication Password Profile Info resource represents username and password for user authentication info. |
4 | 4 | * DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/index.html |
5 | 5 | */ |
6 | | -import {Identifiable, Resource, ResourceList} from './core' |
| 6 | +import { Identifiable, Resource, ResourceList } from './core' |
7 | 7 |
|
8 | 8 | /** |
9 | 9 | * The User Authentication Password Profile Info object |
10 | 10 | * DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/index.html#The-User-Authentication-Password-Profile-Object |
11 | 11 | */ |
12 | 12 |
|
13 | 13 | export interface UserAuthenticationPasswordProfileBody { |
14 | | - type: string |
15 | | - password_profile_id: string |
16 | | - username: string |
17 | | - password : string |
| 14 | + type: string |
| 15 | + password_profile_id: string |
| 16 | + username: string |
| 17 | + password: string |
18 | 18 | } |
19 | 19 |
|
20 | 20 | export interface UserAuthenticationPasswordProfileUpdateBody { |
21 | | - type: string |
22 | | - username: string |
23 | | - password : string |
| 21 | + type: string |
| 22 | + username: string |
| 23 | + password: string |
24 | 24 | } |
25 | 25 |
|
26 | | -export interface UserAuthenticationPasswordProfile extends UserAuthenticationPasswordProfileBody, Identifiable { |
27 | | - meta: { |
28 | | - timestamps: { |
29 | | - created_at: string |
30 | | - updated_at: string |
31 | | - } |
| 26 | +export interface UserAuthenticationPasswordProfile |
| 27 | + extends UserAuthenticationPasswordProfileBody, |
| 28 | + Identifiable { |
| 29 | + meta: { |
| 30 | + timestamps: { |
| 31 | + created_at: string |
| 32 | + updated_at: string |
32 | 33 | } |
33 | | - links: {} |
34 | | - relationships: {} |
| 34 | + } |
| 35 | + links: {} |
| 36 | + relationships: {} |
35 | 37 | } |
36 | 38 |
|
37 | | -export interface UserAuthenticationPasswordProfileResponse extends Resource<UserAuthenticationPasswordProfile> { |
38 | | - links: { |
39 | | - self: string |
40 | | - } |
| 39 | +export interface UserAuthenticationPasswordProfileResponse |
| 40 | + extends Resource<UserAuthenticationPasswordProfile> { |
| 41 | + links: { |
| 42 | + self: string |
| 43 | + } |
41 | 44 | } |
42 | 45 |
|
43 | 46 | /** |
44 | 47 | * User Authentication Password Profile Info Endpoints |
45 | 48 | * DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/index.html |
46 | 49 | */ |
47 | 50 | export interface UserAuthenticationPasswordProfileEndpoint { |
48 | | - /** |
49 | | - * Read All User Authentication Password Info Profile |
50 | | - * DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/get-all-user-authentication-password-profile.html |
51 | | - * @param realmId - The ID for the authentication-realm. |
52 | | - * @param userAuthenticationInfoId - The ID for the user authentication info. |
53 | | - */ |
54 | | - All(realmId: string, userAuthenticationInfoId: string, token?: string, headers?): Promise<ResourceList<UserAuthenticationPasswordProfile>> |
55 | | - /** |
56 | | - * Get a User Authentication Password Info Profile |
57 | | - * DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/get-a-user-authentication-password-profile.html |
58 | | - * @param realmId - The ID for the authentication-realm. |
59 | | - * @param userAuthenticationInfoId - The ID for the user authentication info. |
60 | | - * @param userAuthenticationPasswordProfileId - The ID for the user authentication password profile info. |
61 | | - */ |
62 | | - Get(realmId: string, userAuthenticationInfoId: string, userAuthenticationPasswordProfileId: string, token?: string): Promise<UserAuthenticationPasswordProfileResponse> |
| 51 | + /** |
| 52 | + * Read All User Authentication Password Info Profile |
| 53 | + * DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/get-all-user-authentication-password-profile.html |
| 54 | + * @param realmId - The ID for the authentication-realm. |
| 55 | + * @param userAuthenticationInfoId - The ID for the user authentication info. |
| 56 | + */ |
| 57 | + All( |
| 58 | + realmId: string, |
| 59 | + userAuthenticationInfoId: string, |
| 60 | + token?: string, |
| 61 | + headers? |
| 62 | + ): Promise<ResourceList<UserAuthenticationPasswordProfile>> |
| 63 | + /** |
| 64 | + * Get a User Authentication Password Info Profile |
| 65 | + * DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/get-a-user-authentication-password-profile.html |
| 66 | + * @param realmId - The ID for the authentication-realm. |
| 67 | + * @param userAuthenticationInfoId - The ID for the user authentication info. |
| 68 | + * @param userAuthenticationPasswordProfileId - The ID for the user authentication password profile info. |
| 69 | + */ |
| 70 | + Get( |
| 71 | + realmId: string, |
| 72 | + userAuthenticationInfoId: string, |
| 73 | + userAuthenticationPasswordProfileId: string, |
| 74 | + token?: string |
| 75 | + ): Promise<UserAuthenticationPasswordProfileResponse> |
63 | 76 |
|
64 | | - /** |
65 | | - * Create an User Authentication Password Info Profile |
66 | | - * DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/create-a-user-authentication-password-profile.html |
67 | | - * @param realmId - The ID for the authentication-realm. |
68 | | - * @param userAuthenticationInfoId - The ID for the user authentication info. |
69 | | - * @param body - The User Authentication Password Profile Info object |
70 | | - */ |
71 | | - Create(realmId: string, userAuthenticationInfoId: string, body: { data: UserAuthenticationPasswordProfileBody }, token?: string): Promise<UserAuthenticationPasswordProfileResponse> |
| 77 | + /** |
| 78 | + * Create an User Authentication Password Info Profile |
| 79 | + * DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/create-a-user-authentication-password-profile.html |
| 80 | + * @param realmId - The ID for the authentication-realm. |
| 81 | + * @param userAuthenticationInfoId - The ID for the user authentication info. |
| 82 | + * @param body - The User Authentication Password Profile Info object |
| 83 | + */ |
| 84 | + Create( |
| 85 | + realmId: string, |
| 86 | + userAuthenticationInfoId: string, |
| 87 | + body: { data: UserAuthenticationPasswordProfileBody }, |
| 88 | + token?: string |
| 89 | + ): Promise<UserAuthenticationPasswordProfileResponse> |
72 | 90 |
|
73 | | - /** |
74 | | - * Update an User Authentication Password Profile Info |
75 | | - * DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/update-a-user-authentication-password-profile.html |
76 | | - * @param realmId - The ID for the authentication-realm. |
77 | | - * @param userAuthenticationInfoId - The ID for the user authentication info. |
78 | | - * @param userAuthenticationPasswordProfileId - The ID for the user authentication password profile info. |
79 | | - * @param body - The User Authentication Password Profile Info object |
80 | | - */ |
81 | | - Update(realmId: string, userAuthenticationInfoId: string,userAuthenticationPasswordProfileId: string, body: { data: UserAuthenticationPasswordProfileUpdateBody }, token?: string): Promise<UserAuthenticationPasswordProfileResponse> |
| 91 | + /** |
| 92 | + * Update an User Authentication Password Profile Info |
| 93 | + * DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/user-authentication-password-profiles/update-a-user-authentication-password-profile.html |
| 94 | + * @param realmId - The ID for the authentication-realm. |
| 95 | + * @param userAuthenticationInfoId - The ID for the user authentication info. |
| 96 | + * @param userAuthenticationPasswordProfileId - The ID for the user authentication password profile info. |
| 97 | + * @param body - The User Authentication Password Profile Info object |
| 98 | + */ |
| 99 | + Update( |
| 100 | + realmId: string, |
| 101 | + userAuthenticationInfoId: string, |
| 102 | + userAuthenticationPasswordProfileId: string, |
| 103 | + body: { data: UserAuthenticationPasswordProfileUpdateBody }, |
| 104 | + accountManagementAuthenticationToken: string, |
| 105 | + token?: string |
| 106 | + ): Promise<UserAuthenticationPasswordProfileResponse> |
82 | 107 |
|
83 | | - /** |
84 | | - * Delete an User Authentication Password Profile Info |
85 | | - * DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/password-profiles/delete-a-user-authentication-password-profile.html |
86 | | - * @param realmId - The ID for the authentication-realm containing the Password profiles. |
87 | | - * @param userAuthenticationInfoId - The ID for the user authentication info. |
88 | | - * @param userAuthenticationPasswordProfileId - The ID for the user authentication password profile info. |
89 | | - */ |
90 | | - Delete(realmId: string, userAuthenticationInfoId: string, userAuthenticationPasswordProfileId: string, token?: string) |
| 108 | + /** |
| 109 | + * Delete an User Authentication Password Profile Info |
| 110 | + * DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/password-profiles/delete-a-user-authentication-password-profile.html |
| 111 | + * @param realmId - The ID for the authentication-realm containing the Password profiles. |
| 112 | + * @param userAuthenticationInfoId - The ID for the user authentication info. |
| 113 | + * @param userAuthenticationPasswordProfileId - The ID for the user authentication password profile info. |
| 114 | + */ |
| 115 | + Delete( |
| 116 | + realmId: string, |
| 117 | + userAuthenticationInfoId: string, |
| 118 | + userAuthenticationPasswordProfileId: string, |
| 119 | + token?: string |
| 120 | + ) |
91 | 121 | } |
0 commit comments