@ssoeasy-dev/proto 1.1.1-beta.8 → 1.1.1-beta.9

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.
@@ -11,12 +11,16 @@ import type { CallContext, CallOptions } from "nice-grpc-common";
11
11
  export interface GetByUserIdRequest {
12
12
  $type: "companies.v1.GetByUserIdRequest";
13
13
  userId: string;
14
+ serviceId?: string | undefined;
14
15
  }
15
16
 
16
17
  export interface EmployeeCompany {
17
18
  $type: "companies.v1.EmployeeCompany";
18
19
  id: string;
19
20
  name: string;
21
+ serviceName?: string | undefined;
22
+ subscriptionId?: string | undefined;
23
+ subscriptionIsActive?: boolean | undefined;
20
24
  }
21
25
 
22
26
  export interface GetByUserIdResponse {
@@ -27,7 +31,7 @@ export interface GetByUserIdResponse {
27
31
  }
28
32
 
29
33
  function createBaseGetByUserIdRequest(): GetByUserIdRequest {
30
- return { $type: "companies.v1.GetByUserIdRequest", userId: "" };
34
+ return { $type: "companies.v1.GetByUserIdRequest", userId: "", serviceId: undefined };
31
35
  }
32
36
 
33
37
  export const GetByUserIdRequest: MessageFns<GetByUserIdRequest, "companies.v1.GetByUserIdRequest"> = {
@@ -37,6 +41,9 @@ export const GetByUserIdRequest: MessageFns<GetByUserIdRequest, "companies.v1.Ge
37
41
  if (message.userId !== "") {
38
42
  writer.uint32(10).string(message.userId);
39
43
  }
44
+ if (message.serviceId !== undefined) {
45
+ writer.uint32(18).string(message.serviceId);
46
+ }
40
47
  return writer;
41
48
  },
42
49
 
@@ -55,6 +62,14 @@ export const GetByUserIdRequest: MessageFns<GetByUserIdRequest, "companies.v1.Ge
55
62
  message.userId = reader.string();
56
63
  continue;
57
64
  }
65
+ case 2: {
66
+ if (tag !== 18) {
67
+ break;
68
+ }
69
+
70
+ message.serviceId = reader.string();
71
+ continue;
72
+ }
58
73
  }
59
74
  if ((tag & 7) === 4 || tag === 0) {
60
75
  break;
@@ -72,6 +87,11 @@ export const GetByUserIdRequest: MessageFns<GetByUserIdRequest, "companies.v1.Ge
72
87
  : isSet(object.user_id)
73
88
  ? globalThis.String(object.user_id)
74
89
  : "",
90
+ serviceId: isSet(object.serviceId)
91
+ ? globalThis.String(object.serviceId)
92
+ : isSet(object.service_id)
93
+ ? globalThis.String(object.service_id)
94
+ : undefined,
75
95
  };
76
96
  },
77
97
 
@@ -80,6 +100,9 @@ export const GetByUserIdRequest: MessageFns<GetByUserIdRequest, "companies.v1.Ge
80
100
  if (message.userId !== "") {
81
101
  obj.userId = message.userId;
82
102
  }
103
+ if (message.serviceId !== undefined) {
104
+ obj.serviceId = message.serviceId;
105
+ }
83
106
  return obj;
84
107
  },
85
108
 
@@ -89,12 +112,20 @@ export const GetByUserIdRequest: MessageFns<GetByUserIdRequest, "companies.v1.Ge
89
112
  fromPartial<I extends Exact<DeepPartial<GetByUserIdRequest>, I>>(object: I): GetByUserIdRequest {
90
113
  const message = createBaseGetByUserIdRequest();
91
114
  message.userId = object.userId ?? "";
115
+ message.serviceId = object.serviceId ?? undefined;
92
116
  return message;
93
117
  },
94
118
  };
95
119
 
96
120
  function createBaseEmployeeCompany(): EmployeeCompany {
97
- return { $type: "companies.v1.EmployeeCompany", id: "", name: "" };
121
+ return {
122
+ $type: "companies.v1.EmployeeCompany",
123
+ id: "",
124
+ name: "",
125
+ serviceName: undefined,
126
+ subscriptionId: undefined,
127
+ subscriptionIsActive: undefined,
128
+ };
98
129
  }
99
130
 
100
131
  export const EmployeeCompany: MessageFns<EmployeeCompany, "companies.v1.EmployeeCompany"> = {
@@ -107,6 +138,15 @@ export const EmployeeCompany: MessageFns<EmployeeCompany, "companies.v1.Employee
107
138
  if (message.name !== "") {
108
139
  writer.uint32(18).string(message.name);
109
140
  }
141
+ if (message.serviceName !== undefined) {
142
+ writer.uint32(26).string(message.serviceName);
143
+ }
144
+ if (message.subscriptionId !== undefined) {
145
+ writer.uint32(34).string(message.subscriptionId);
146
+ }
147
+ if (message.subscriptionIsActive !== undefined) {
148
+ writer.uint32(40).bool(message.subscriptionIsActive);
149
+ }
110
150
  return writer;
111
151
  },
112
152
 
@@ -133,6 +173,30 @@ export const EmployeeCompany: MessageFns<EmployeeCompany, "companies.v1.Employee
133
173
  message.name = reader.string();
134
174
  continue;
135
175
  }
176
+ case 3: {
177
+ if (tag !== 26) {
178
+ break;
179
+ }
180
+
181
+ message.serviceName = reader.string();
182
+ continue;
183
+ }
184
+ case 4: {
185
+ if (tag !== 34) {
186
+ break;
187
+ }
188
+
189
+ message.subscriptionId = reader.string();
190
+ continue;
191
+ }
192
+ case 5: {
193
+ if (tag !== 40) {
194
+ break;
195
+ }
196
+
197
+ message.subscriptionIsActive = reader.bool();
198
+ continue;
199
+ }
136
200
  }
137
201
  if ((tag & 7) === 4 || tag === 0) {
138
202
  break;
@@ -147,6 +211,21 @@ export const EmployeeCompany: MessageFns<EmployeeCompany, "companies.v1.Employee
147
211
  $type: EmployeeCompany.$type,
148
212
  id: isSet(object.id) ? globalThis.String(object.id) : "",
149
213
  name: isSet(object.name) ? globalThis.String(object.name) : "",
214
+ serviceName: isSet(object.serviceName)
215
+ ? globalThis.String(object.serviceName)
216
+ : isSet(object.service_name)
217
+ ? globalThis.String(object.service_name)
218
+ : undefined,
219
+ subscriptionId: isSet(object.subscriptionId)
220
+ ? globalThis.String(object.subscriptionId)
221
+ : isSet(object.subscription_id)
222
+ ? globalThis.String(object.subscription_id)
223
+ : undefined,
224
+ subscriptionIsActive: isSet(object.subscriptionIsActive)
225
+ ? globalThis.Boolean(object.subscriptionIsActive)
226
+ : isSet(object.subscription_is_active)
227
+ ? globalThis.Boolean(object.subscription_is_active)
228
+ : undefined,
150
229
  };
151
230
  },
152
231
 
@@ -158,6 +237,15 @@ export const EmployeeCompany: MessageFns<EmployeeCompany, "companies.v1.Employee
158
237
  if (message.name !== "") {
159
238
  obj.name = message.name;
160
239
  }
240
+ if (message.serviceName !== undefined) {
241
+ obj.serviceName = message.serviceName;
242
+ }
243
+ if (message.subscriptionId !== undefined) {
244
+ obj.subscriptionId = message.subscriptionId;
245
+ }
246
+ if (message.subscriptionIsActive !== undefined) {
247
+ obj.subscriptionIsActive = message.subscriptionIsActive;
248
+ }
161
249
  return obj;
162
250
  },
163
251
 
@@ -168,6 +256,9 @@ export const EmployeeCompany: MessageFns<EmployeeCompany, "companies.v1.Employee
168
256
  const message = createBaseEmployeeCompany();
169
257
  message.id = object.id ?? "";
170
258
  message.name = object.name ?? "";
259
+ message.serviceName = object.serviceName ?? undefined;
260
+ message.subscriptionId = object.subscriptionId ?? undefined;
261
+ message.subscriptionIsActive = object.subscriptionIsActive ?? undefined;
171
262
  return message;
172
263
  },
173
264
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssoeasy-dev/proto",
3
- "version": "1.1.1-beta.8",
3
+ "version": "1.1.1-beta.9",
4
4
  "description": "gRPC proto contracts and generated TypeScript clients for SSOEasy",
5
5
  "main": "gen/ts/index.ts",
6
6
  "types": "gen/ts/index.ts",
@@ -8,11 +8,15 @@ service EmployeeService {
8
8
 
9
9
  message GetByUserIdRequest {
10
10
  string user_id = 1;
11
+ optional string service_id = 2;
11
12
  }
12
13
 
13
14
  message EmployeeCompany {
14
15
  string id = 1;
15
16
  string name = 2;
17
+ optional string service_name = 3;
18
+ optional string subscription_id = 4;
19
+ optional bool subscription_is_active = 5;
16
20
  }
17
21
 
18
22
  message GetByUserIdResponse {