@wenlarge/communication 1.3.0 → 1.3.2
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/dist/generated/auth.d.ts +11 -0
- package/dist/generated/auth.js +2 -0
- package/dist/generated/workflow.d.ts +6 -6
- package/package.json +1 -1
- package/proto/auth.proto +11 -0
- package/proto/workflow.proto +6 -6
- package/src/generated/auth.ts +19 -0
- package/src/generated/workflow.ts +6 -6
package/dist/generated/auth.d.ts
CHANGED
|
@@ -74,6 +74,13 @@ export interface RemoveUserFromCompanyRequest {
|
|
|
74
74
|
export interface RefreshTokenRequest {
|
|
75
75
|
userId: string;
|
|
76
76
|
}
|
|
77
|
+
export interface ForgotPasswordRequest {
|
|
78
|
+
email: string;
|
|
79
|
+
}
|
|
80
|
+
export interface ResetPasswordRequest {
|
|
81
|
+
token: string;
|
|
82
|
+
newPassword: string;
|
|
83
|
+
}
|
|
77
84
|
export declare const AUTH_PACKAGE_NAME = "auth";
|
|
78
85
|
export interface AuthServiceClient {
|
|
79
86
|
login(request: LoginRequest, metadata?: Metadata): Observable<LoginResponse>;
|
|
@@ -84,6 +91,8 @@ export interface AuthServiceClient {
|
|
|
84
91
|
getCompanyUsers(request: GetCompanyUsersRequest, metadata?: Metadata): Observable<GetCompanyUsersResponse>;
|
|
85
92
|
removeUserFromCompany(request: RemoveUserFromCompanyRequest, metadata?: Metadata): Observable<Empty>;
|
|
86
93
|
refreshToken(request: RefreshTokenRequest, metadata?: Metadata): Observable<LoginResponse>;
|
|
94
|
+
forgotPassword(request: ForgotPasswordRequest, metadata?: Metadata): Observable<Empty>;
|
|
95
|
+
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): Observable<Empty>;
|
|
87
96
|
}
|
|
88
97
|
export interface AuthServiceController {
|
|
89
98
|
login(request: LoginRequest, metadata?: Metadata): Promise<LoginResponse> | Observable<LoginResponse> | LoginResponse;
|
|
@@ -94,6 +103,8 @@ export interface AuthServiceController {
|
|
|
94
103
|
getCompanyUsers(request: GetCompanyUsersRequest, metadata?: Metadata): Promise<GetCompanyUsersResponse> | Observable<GetCompanyUsersResponse> | GetCompanyUsersResponse;
|
|
95
104
|
removeUserFromCompany(request: RemoveUserFromCompanyRequest, metadata?: Metadata): void;
|
|
96
105
|
refreshToken(request: RefreshTokenRequest, metadata?: Metadata): Promise<LoginResponse> | Observable<LoginResponse> | LoginResponse;
|
|
106
|
+
forgotPassword(request: ForgotPasswordRequest, metadata?: Metadata): void;
|
|
107
|
+
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): void;
|
|
97
108
|
}
|
|
98
109
|
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
99
110
|
export declare const AUTH_SERVICE_NAME = "AuthService";
|
package/dist/generated/auth.js
CHANGED
|
@@ -21,6 +21,8 @@ function AuthServiceControllerMethods() {
|
|
|
21
21
|
"getCompanyUsers",
|
|
22
22
|
"removeUserFromCompany",
|
|
23
23
|
"refreshToken",
|
|
24
|
+
"forgotPassword",
|
|
25
|
+
"resetPassword",
|
|
24
26
|
];
|
|
25
27
|
for (const method of grpcMethods) {
|
|
26
28
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
@@ -10,7 +10,7 @@ export declare enum WorkflowStatus {
|
|
|
10
10
|
export interface CreateWorkflowRequest {
|
|
11
11
|
name: string;
|
|
12
12
|
projectId: string;
|
|
13
|
-
defaultEnvironmentId
|
|
13
|
+
defaultEnvironmentId: string;
|
|
14
14
|
}
|
|
15
15
|
export interface WorkflowResponse {
|
|
16
16
|
id: string;
|
|
@@ -20,7 +20,7 @@ export interface WorkflowResponse {
|
|
|
20
20
|
createdAt: string;
|
|
21
21
|
updatedAt: string;
|
|
22
22
|
status: WorkflowStatus;
|
|
23
|
-
defaultEnvironmentId
|
|
23
|
+
defaultEnvironmentId: string;
|
|
24
24
|
}
|
|
25
25
|
export interface DeleteWorkflowRequest {
|
|
26
26
|
id: string;
|
|
@@ -28,7 +28,7 @@ export interface DeleteWorkflowRequest {
|
|
|
28
28
|
export interface UpdateWorkflowRequest {
|
|
29
29
|
id: string;
|
|
30
30
|
name: string;
|
|
31
|
-
defaultEnvironmentId
|
|
31
|
+
defaultEnvironmentId: string;
|
|
32
32
|
}
|
|
33
33
|
export interface FindManyWorkflowRequest {
|
|
34
34
|
projectId: string;
|
|
@@ -66,7 +66,7 @@ export interface WorkflowNodeRequest {
|
|
|
66
66
|
[key: string]: any;
|
|
67
67
|
} | undefined;
|
|
68
68
|
nodeTypeId: string;
|
|
69
|
-
environmentId
|
|
69
|
+
environmentId: string;
|
|
70
70
|
}
|
|
71
71
|
export interface FindManyWorkflowNodeRequest {
|
|
72
72
|
workflowId: string;
|
|
@@ -90,7 +90,7 @@ export interface WorkflowNodeResponse {
|
|
|
90
90
|
} | undefined;
|
|
91
91
|
createdAt: string;
|
|
92
92
|
updatedAt: string;
|
|
93
|
-
environmentId
|
|
93
|
+
environmentId: string;
|
|
94
94
|
}
|
|
95
95
|
export interface WorkflowNodeConnection {
|
|
96
96
|
id: string;
|
|
@@ -106,7 +106,7 @@ export interface SaveWorkflowBatchRequest {
|
|
|
106
106
|
workflowName: string;
|
|
107
107
|
nodes: WorkflowNodeRequest[];
|
|
108
108
|
connections: UpdateBatchConnection[];
|
|
109
|
-
defaultEnvironmentId
|
|
109
|
+
defaultEnvironmentId: string;
|
|
110
110
|
}
|
|
111
111
|
export interface UpdateBatchConnection {
|
|
112
112
|
fromNodeId: string;
|
package/package.json
CHANGED
package/proto/auth.proto
CHANGED
|
@@ -13,6 +13,8 @@ service AuthService {
|
|
|
13
13
|
rpc GetCompanyUsers (GetCompanyUsersRequest) returns (GetCompanyUsersResponse);
|
|
14
14
|
rpc RemoveUserFromCompany (RemoveUserFromCompanyRequest) returns (google.protobuf.Empty);
|
|
15
15
|
rpc RefreshToken (RefreshTokenRequest) returns (LoginResponse);
|
|
16
|
+
rpc ForgotPassword (ForgotPasswordRequest) returns (google.protobuf.Empty);
|
|
17
|
+
rpc ResetPassword (ResetPasswordRequest) returns (google.protobuf.Empty);
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
message LoginRequest {
|
|
@@ -101,4 +103,13 @@ message RemoveUserFromCompanyRequest {
|
|
|
101
103
|
|
|
102
104
|
message RefreshTokenRequest {
|
|
103
105
|
string userId = 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
message ForgotPasswordRequest {
|
|
109
|
+
string email = 1;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
message ResetPasswordRequest {
|
|
113
|
+
string token = 1;
|
|
114
|
+
string newPassword = 2;
|
|
104
115
|
}
|
package/proto/workflow.proto
CHANGED
|
@@ -25,7 +25,7 @@ service WorkflowService {
|
|
|
25
25
|
message CreateWorkflowRequest {
|
|
26
26
|
string name = 1;
|
|
27
27
|
string projectId = 2;
|
|
28
|
-
|
|
28
|
+
string defaultEnvironmentId = 3;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
message WorkflowResponse {
|
|
@@ -36,7 +36,7 @@ message WorkflowResponse {
|
|
|
36
36
|
string createdAt = 5;
|
|
37
37
|
string updatedAt = 6;
|
|
38
38
|
WorkflowStatus status = 7;
|
|
39
|
-
|
|
39
|
+
string defaultEnvironmentId = 8;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
message DeleteWorkflowRequest{
|
|
@@ -46,7 +46,7 @@ message DeleteWorkflowRequest{
|
|
|
46
46
|
message UpdateWorkflowRequest{
|
|
47
47
|
string id = 1;
|
|
48
48
|
string name = 2;
|
|
49
|
-
|
|
49
|
+
string defaultEnvironmentId = 3;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
message FindManyWorkflowRequest{
|
|
@@ -82,7 +82,7 @@ message WorkflowNodeRequest{
|
|
|
82
82
|
google.protobuf.Struct outputSchema = 5;
|
|
83
83
|
google.protobuf.Struct config = 6;
|
|
84
84
|
string nodeTypeId = 7;
|
|
85
|
-
|
|
85
|
+
string environmentId = 8;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
message FindManyWorkflowNodeRequest{
|
|
@@ -103,7 +103,7 @@ message WorkflowNodeResponse{
|
|
|
103
103
|
google.protobuf.Struct config = 7;
|
|
104
104
|
string createdAt = 8;
|
|
105
105
|
string updatedAt = 9;
|
|
106
|
-
|
|
106
|
+
string environmentId = 10;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
message WorkflowNodeConnection {
|
|
@@ -119,7 +119,7 @@ message SaveWorkflowBatchRequest {
|
|
|
119
119
|
string workflowName = 2;
|
|
120
120
|
repeated WorkflowNodeRequest nodes = 3;
|
|
121
121
|
repeated UpdateBatchConnection connections = 4;
|
|
122
|
-
|
|
122
|
+
string defaultEnvironmentId = 5;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
message UpdateBatchConnection {
|
package/src/generated/auth.ts
CHANGED
|
@@ -100,6 +100,15 @@ export interface RefreshTokenRequest {
|
|
|
100
100
|
userId: string;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
export interface ForgotPasswordRequest {
|
|
104
|
+
email: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface ResetPasswordRequest {
|
|
108
|
+
token: string;
|
|
109
|
+
newPassword: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
103
112
|
export const AUTH_PACKAGE_NAME = "auth";
|
|
104
113
|
|
|
105
114
|
export interface AuthServiceClient {
|
|
@@ -118,6 +127,10 @@ export interface AuthServiceClient {
|
|
|
118
127
|
removeUserFromCompany(request: RemoveUserFromCompanyRequest, metadata?: Metadata): Observable<Empty>;
|
|
119
128
|
|
|
120
129
|
refreshToken(request: RefreshTokenRequest, metadata?: Metadata): Observable<LoginResponse>;
|
|
130
|
+
|
|
131
|
+
forgotPassword(request: ForgotPasswordRequest, metadata?: Metadata): Observable<Empty>;
|
|
132
|
+
|
|
133
|
+
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): Observable<Empty>;
|
|
121
134
|
}
|
|
122
135
|
|
|
123
136
|
export interface AuthServiceController {
|
|
@@ -148,6 +161,10 @@ export interface AuthServiceController {
|
|
|
148
161
|
request: RefreshTokenRequest,
|
|
149
162
|
metadata?: Metadata,
|
|
150
163
|
): Promise<LoginResponse> | Observable<LoginResponse> | LoginResponse;
|
|
164
|
+
|
|
165
|
+
forgotPassword(request: ForgotPasswordRequest, metadata?: Metadata): void;
|
|
166
|
+
|
|
167
|
+
resetPassword(request: ResetPasswordRequest, metadata?: Metadata): void;
|
|
151
168
|
}
|
|
152
169
|
|
|
153
170
|
export function AuthServiceControllerMethods() {
|
|
@@ -161,6 +178,8 @@ export function AuthServiceControllerMethods() {
|
|
|
161
178
|
"getCompanyUsers",
|
|
162
179
|
"removeUserFromCompany",
|
|
163
180
|
"refreshToken",
|
|
181
|
+
"forgotPassword",
|
|
182
|
+
"resetPassword",
|
|
164
183
|
];
|
|
165
184
|
for (const method of grpcMethods) {
|
|
166
185
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
@@ -23,7 +23,7 @@ export enum WorkflowStatus {
|
|
|
23
23
|
export interface CreateWorkflowRequest {
|
|
24
24
|
name: string;
|
|
25
25
|
projectId: string;
|
|
26
|
-
defaultEnvironmentId
|
|
26
|
+
defaultEnvironmentId: string;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface WorkflowResponse {
|
|
@@ -34,7 +34,7 @@ export interface WorkflowResponse {
|
|
|
34
34
|
createdAt: string;
|
|
35
35
|
updatedAt: string;
|
|
36
36
|
status: WorkflowStatus;
|
|
37
|
-
defaultEnvironmentId
|
|
37
|
+
defaultEnvironmentId: string;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export interface DeleteWorkflowRequest {
|
|
@@ -44,7 +44,7 @@ export interface DeleteWorkflowRequest {
|
|
|
44
44
|
export interface UpdateWorkflowRequest {
|
|
45
45
|
id: string;
|
|
46
46
|
name: string;
|
|
47
|
-
defaultEnvironmentId
|
|
47
|
+
defaultEnvironmentId: string;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export interface FindManyWorkflowRequest {
|
|
@@ -80,7 +80,7 @@ export interface WorkflowNodeRequest {
|
|
|
80
80
|
outputSchema?: { [key: string]: any } | undefined;
|
|
81
81
|
config?: { [key: string]: any } | undefined;
|
|
82
82
|
nodeTypeId: string;
|
|
83
|
-
environmentId
|
|
83
|
+
environmentId: string;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
export interface FindManyWorkflowNodeRequest {
|
|
@@ -101,7 +101,7 @@ export interface WorkflowNodeResponse {
|
|
|
101
101
|
config?: { [key: string]: any } | undefined;
|
|
102
102
|
createdAt: string;
|
|
103
103
|
updatedAt: string;
|
|
104
|
-
environmentId
|
|
104
|
+
environmentId: string;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
export interface WorkflowNodeConnection {
|
|
@@ -117,7 +117,7 @@ export interface SaveWorkflowBatchRequest {
|
|
|
117
117
|
workflowName: string;
|
|
118
118
|
nodes: WorkflowNodeRequest[];
|
|
119
119
|
connections: UpdateBatchConnection[];
|
|
120
|
-
defaultEnvironmentId
|
|
120
|
+
defaultEnvironmentId: string;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
export interface UpdateBatchConnection {
|