Skip to content

Commit 41ae5f9

Browse files
authored
Merge pull request #4410 from jeclrsg/bump-wsaccount-1.07
chore(comms): bump ws_account wsdl to 1.07
2 parents ae0ae6e + 4f6d713 commit 41ae5f9

2 files changed

Lines changed: 115 additions & 1 deletion

File tree

packages/comms/src/services/wsAccount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AccountServiceBase, WsAccount } from "./wsdl/ws_account/v1.06/ws_account.ts";
1+
import { AccountServiceBase, WsAccount } from "./wsdl/ws_account/v1.07/ws_account.ts";
22
import { ESPExceptions } from "../espConnection.ts";
33

44
export {
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
import { IConnection, IOptions } from "../../../../connection.ts";
2+
import { Service } from "../../../../espConnection.ts";
3+
4+
export namespace WsAccount {
5+
6+
export type int = number;
7+
8+
export interface MyAccountRequest {
9+
10+
}
11+
12+
export interface Exception {
13+
Code: string;
14+
Audience: string;
15+
Source: string;
16+
Message: string;
17+
}
18+
19+
export interface Exceptions {
20+
Source: string;
21+
Exception: Exception[];
22+
}
23+
24+
export interface Groups {
25+
Group: string[];
26+
}
27+
28+
export interface MyAccountResponse {
29+
Exceptions: Exceptions;
30+
username: string;
31+
firstName: string;
32+
lastName: string;
33+
passwordExpiration: string;
34+
passwordDaysRemaining: int;
35+
passwordExpirationWarningDays: int;
36+
employeeID: string;
37+
distinguishedName: string;
38+
accountType: string;
39+
passwordNeverExpires: boolean;
40+
passwordIsExpired: boolean;
41+
CanUpdatePassword: boolean;
42+
accountStatus: int;
43+
Groups: Groups;
44+
}
45+
46+
export interface ws_accountPingRequest {
47+
48+
}
49+
50+
export interface ws_accountPingResponse {
51+
52+
}
53+
54+
export interface UpdateUserRequest {
55+
username?: string;
56+
oldpass?: string;
57+
newpass1?: string;
58+
newpass2?: string;
59+
}
60+
61+
export interface UpdateUserResponse {
62+
Exceptions: Exceptions;
63+
retcode: int;
64+
message: string;
65+
}
66+
67+
export interface UpdateUserInputRequest {
68+
69+
}
70+
71+
export interface UpdateUserInputResponse {
72+
Exceptions: Exceptions;
73+
username: string;
74+
}
75+
76+
export interface VerifyUserRequest {
77+
application?: string;
78+
version?: string;
79+
}
80+
81+
export interface VerifyUserResponse {
82+
Exceptions: Exceptions;
83+
retcode: int;
84+
}
85+
86+
}
87+
88+
export class AccountServiceBase extends Service {
89+
90+
constructor(optsConnection: IOptions | IConnection) {
91+
super(optsConnection, "ws_account", "1.07");
92+
}
93+
94+
MyAccount(request: Partial<WsAccount.MyAccountRequest>): Promise<WsAccount.MyAccountResponse> {
95+
return this._connection.send("MyAccount", request, "json", false, undefined, "MyAccountResponse");
96+
}
97+
98+
Ping(request: Partial<WsAccount.ws_accountPingRequest>): Promise<WsAccount.ws_accountPingResponse> {
99+
return this._connection.send("Ping", request, "json", false, undefined, "ws_accountPingResponse");
100+
}
101+
102+
UpdateUser(request: Partial<WsAccount.UpdateUserRequest>): Promise<WsAccount.UpdateUserResponse> {
103+
return this._connection.send("UpdateUser", request, "json", false, undefined, "UpdateUserResponse");
104+
}
105+
106+
UpdateUserInput(request: Partial<WsAccount.UpdateUserInputRequest>): Promise<WsAccount.UpdateUserInputResponse> {
107+
return this._connection.send("UpdateUserInput", request, "json", false, undefined, "UpdateUserInputResponse");
108+
}
109+
110+
VerifyUser(request: Partial<WsAccount.VerifyUserRequest>): Promise<WsAccount.VerifyUserResponse> {
111+
return this._connection.send("VerifyUser", request, "json", false, undefined, "VerifyUserResponse");
112+
}
113+
114+
}

0 commit comments

Comments
 (0)