@ssoeasy-dev/proto 1.1.1-beta.10 → 1.1.1-beta.11

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.
@@ -97,6 +97,7 @@ export interface GetCompanyIdByCodeRequest {
97
97
 
98
98
  export interface GetCompanyIdByCodeResponse {
99
99
  $type: "auth.v1.GetCompanyIdByCodeResponse";
100
+ userId: string;
100
101
  companyId?: string | undefined;
101
102
  }
102
103
 
@@ -1233,7 +1234,7 @@ export const GetCompanyIdByCodeRequest: MessageFns<GetCompanyIdByCodeRequest, "a
1233
1234
  };
1234
1235
 
1235
1236
  function createBaseGetCompanyIdByCodeResponse(): GetCompanyIdByCodeResponse {
1236
- return { $type: "auth.v1.GetCompanyIdByCodeResponse", companyId: undefined };
1237
+ return { $type: "auth.v1.GetCompanyIdByCodeResponse", userId: "", companyId: undefined };
1237
1238
  }
1238
1239
 
1239
1240
  export const GetCompanyIdByCodeResponse: MessageFns<GetCompanyIdByCodeResponse, "auth.v1.GetCompanyIdByCodeResponse"> =
@@ -1241,8 +1242,11 @@ export const GetCompanyIdByCodeResponse: MessageFns<GetCompanyIdByCodeResponse,
1241
1242
  $type: "auth.v1.GetCompanyIdByCodeResponse" as const,
1242
1243
 
1243
1244
  encode(message: GetCompanyIdByCodeResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1245
+ if (message.userId !== "") {
1246
+ writer.uint32(10).string(message.userId);
1247
+ }
1244
1248
  if (message.companyId !== undefined) {
1245
- writer.uint32(10).string(message.companyId);
1249
+ writer.uint32(18).string(message.companyId);
1246
1250
  }
1247
1251
  return writer;
1248
1252
  },
@@ -1259,6 +1263,14 @@ export const GetCompanyIdByCodeResponse: MessageFns<GetCompanyIdByCodeResponse,
1259
1263
  break;
1260
1264
  }
1261
1265
 
1266
+ message.userId = reader.string();
1267
+ continue;
1268
+ }
1269
+ case 2: {
1270
+ if (tag !== 18) {
1271
+ break;
1272
+ }
1273
+
1262
1274
  message.companyId = reader.string();
1263
1275
  continue;
1264
1276
  }
@@ -1274,6 +1286,7 @@ export const GetCompanyIdByCodeResponse: MessageFns<GetCompanyIdByCodeResponse,
1274
1286
  fromJSON(object: any): GetCompanyIdByCodeResponse {
1275
1287
  return {
1276
1288
  $type: GetCompanyIdByCodeResponse.$type,
1289
+ userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
1277
1290
  companyId: isSet(object.companyId)
1278
1291
  ? globalThis.String(object.companyId)
1279
1292
  : isSet(object.company_id)
@@ -1284,6 +1297,9 @@ export const GetCompanyIdByCodeResponse: MessageFns<GetCompanyIdByCodeResponse,
1284
1297
 
1285
1298
  toJSON(message: GetCompanyIdByCodeResponse): unknown {
1286
1299
  const obj: any = {};
1300
+ if (message.userId !== "") {
1301
+ obj.userId = message.userId;
1302
+ }
1287
1303
  if (message.companyId !== undefined) {
1288
1304
  obj.companyId = message.companyId;
1289
1305
  }
@@ -1295,6 +1311,7 @@ export const GetCompanyIdByCodeResponse: MessageFns<GetCompanyIdByCodeResponse,
1295
1311
  },
1296
1312
  fromPartial<I extends Exact<DeepPartial<GetCompanyIdByCodeResponse>, I>>(object: I): GetCompanyIdByCodeResponse {
1297
1313
  const message = createBaseGetCompanyIdByCodeResponse();
1314
+ message.userId = object.userId ?? "";
1298
1315
  message.companyId = object.companyId ?? undefined;
1299
1316
  return message;
1300
1317
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssoeasy-dev/proto",
3
- "version": "1.1.1-beta.10",
3
+ "version": "1.1.1-beta.11",
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",
@@ -84,5 +84,6 @@ message GetCompanyIdByCodeRequest {
84
84
  }
85
85
 
86
86
  message GetCompanyIdByCodeResponse {
87
- optional string company_id = 1;
87
+ string userId = 1;
88
+ optional string company_id = 2;
88
89
  }