@technova-tech/olive-proto-lib 3.1.8 → 3.2.0

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/admin/admin.js CHANGED
@@ -2999,6 +2999,9 @@ var com;
2999
2999
  if ("regionId" in data && data.regionId != undefined) {
3000
3000
  this.regionId = data.regionId;
3001
3001
  }
3002
+ if ("region" in data && data.region != undefined) {
3003
+ this.region = data.region;
3004
+ }
3002
3005
  }
3003
3006
  }
3004
3007
  get id() {
@@ -3058,6 +3061,15 @@ var com;
3058
3061
  set regionId(value) {
3059
3062
  pb_1.Message.setField(this, 9, value);
3060
3063
  }
3064
+ get region() {
3065
+ return pb_1.Message.getWrapperField(this, Region, 10);
3066
+ }
3067
+ set region(value) {
3068
+ pb_1.Message.setWrapperField(this, 10, value);
3069
+ }
3070
+ get hasRegion() {
3071
+ return pb_1.Message.getField(this, 10) != null;
3072
+ }
3061
3073
  static fromObject(data) {
3062
3074
  const message = new AdminInfo({});
3063
3075
  if (data.id != null) {
@@ -3087,6 +3099,9 @@ var com;
3087
3099
  if (data.regionId != null) {
3088
3100
  message.regionId = data.regionId;
3089
3101
  }
3102
+ if (data.region != null) {
3103
+ message.region = Region.fromObject(data.region);
3104
+ }
3090
3105
  return message;
3091
3106
  }
3092
3107
  toObject() {
@@ -3118,6 +3133,9 @@ var com;
3118
3133
  if (this.regionId != null) {
3119
3134
  data.regionId = this.regionId;
3120
3135
  }
3136
+ if (this.region != null) {
3137
+ data.region = this.region.toObject();
3138
+ }
3121
3139
  return data;
3122
3140
  }
3123
3141
  serialize(w) {
@@ -3140,6 +3158,8 @@ var com;
3140
3158
  writer.writeString(8, this.mfbId);
3141
3159
  if (this.regionId.length)
3142
3160
  writer.writeString(9, this.regionId);
3161
+ if (this.hasRegion)
3162
+ writer.writeMessage(10, this.region, () => this.region.serialize(writer));
3143
3163
  if (!w)
3144
3164
  return writer.getResultBuffer();
3145
3165
  }
@@ -3176,6 +3196,9 @@ var com;
3176
3196
  case 9:
3177
3197
  message.regionId = reader.readString();
3178
3198
  break;
3199
+ case 10:
3200
+ reader.readMessage(message.region, () => message.region = Region.deserialize(reader));
3201
+ break;
3179
3202
  default: reader.skipField();
3180
3203
  }
3181
3204
  }
@@ -3373,6 +3396,15 @@ var com;
3373
3396
  if ("searchQuery" in data && data.searchQuery != undefined) {
3374
3397
  this.searchQuery = data.searchQuery;
3375
3398
  }
3399
+ if ("regionId" in data && data.regionId != undefined) {
3400
+ this.regionId = data.regionId;
3401
+ }
3402
+ if ("dataScope" in data && data.dataScope != undefined) {
3403
+ this.dataScope = data.dataScope;
3404
+ }
3405
+ if ("adminId" in data && data.adminId != undefined) {
3406
+ this.adminId = data.adminId;
3407
+ }
3376
3408
  }
3377
3409
  }
3378
3410
  get id() {
@@ -3405,6 +3437,24 @@ var com;
3405
3437
  set searchQuery(value) {
3406
3438
  pb_1.Message.setField(this, 5, value);
3407
3439
  }
3440
+ get regionId() {
3441
+ return pb_1.Message.getFieldWithDefault(this, 6, "");
3442
+ }
3443
+ set regionId(value) {
3444
+ pb_1.Message.setField(this, 6, value);
3445
+ }
3446
+ get dataScope() {
3447
+ return pb_1.Message.getFieldWithDefault(this, 7, "");
3448
+ }
3449
+ set dataScope(value) {
3450
+ pb_1.Message.setField(this, 7, value);
3451
+ }
3452
+ get adminId() {
3453
+ return pb_1.Message.getFieldWithDefault(this, 8, "");
3454
+ }
3455
+ set adminId(value) {
3456
+ pb_1.Message.setField(this, 8, value);
3457
+ }
3408
3458
  static fromObject(data) {
3409
3459
  const message = new GetAdminsRequest({});
3410
3460
  if (data.id != null) {
@@ -3422,6 +3472,15 @@ var com;
3422
3472
  if (data.searchQuery != null) {
3423
3473
  message.searchQuery = data.searchQuery;
3424
3474
  }
3475
+ if (data.regionId != null) {
3476
+ message.regionId = data.regionId;
3477
+ }
3478
+ if (data.dataScope != null) {
3479
+ message.dataScope = data.dataScope;
3480
+ }
3481
+ if (data.adminId != null) {
3482
+ message.adminId = data.adminId;
3483
+ }
3425
3484
  return message;
3426
3485
  }
3427
3486
  toObject() {
@@ -3441,6 +3500,15 @@ var com;
3441
3500
  if (this.searchQuery != null) {
3442
3501
  data.searchQuery = this.searchQuery;
3443
3502
  }
3503
+ if (this.regionId != null) {
3504
+ data.regionId = this.regionId;
3505
+ }
3506
+ if (this.dataScope != null) {
3507
+ data.dataScope = this.dataScope;
3508
+ }
3509
+ if (this.adminId != null) {
3510
+ data.adminId = this.adminId;
3511
+ }
3444
3512
  return data;
3445
3513
  }
3446
3514
  serialize(w) {
@@ -3455,6 +3523,12 @@ var com;
3455
3523
  writer.writeUint32(4, this.limit);
3456
3524
  if (this.searchQuery.length)
3457
3525
  writer.writeString(5, this.searchQuery);
3526
+ if (this.regionId.length)
3527
+ writer.writeString(6, this.regionId);
3528
+ if (this.dataScope.length)
3529
+ writer.writeString(7, this.dataScope);
3530
+ if (this.adminId.length)
3531
+ writer.writeString(8, this.adminId);
3458
3532
  if (!w)
3459
3533
  return writer.getResultBuffer();
3460
3534
  }
@@ -3479,6 +3553,15 @@ var com;
3479
3553
  case 5:
3480
3554
  message.searchQuery = reader.readString();
3481
3555
  break;
3556
+ case 6:
3557
+ message.regionId = reader.readString();
3558
+ break;
3559
+ case 7:
3560
+ message.dataScope = reader.readString();
3561
+ break;
3562
+ case 8:
3563
+ message.adminId = reader.readString();
3564
+ break;
3482
3565
  default: reader.skipField();
3483
3566
  }
3484
3567
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "compile": "tsc -p tsconfig.json"
12
12
  },
13
13
  "license": "MIT",
14
- "version": "3.1.8",
14
+ "version": "3.2.0",
15
15
  "devDependencies": {
16
16
  "@types/google-protobuf": "^3.15.12",
17
17
  "protoc-gen-ts": "^0.8.7",
@@ -937,6 +937,7 @@ export declare namespace com.pkg.admin {
937
937
  phone?: string;
938
938
  mfbId?: string;
939
939
  regionId?: string;
940
+ region?: Region;
940
941
  });
941
942
  get id(): string;
942
943
  set id(value: string);
@@ -957,6 +958,9 @@ export declare namespace com.pkg.admin {
957
958
  set mfbId(value: string);
958
959
  get regionId(): string;
959
960
  set regionId(value: string);
961
+ get region(): Region;
962
+ set region(value: Region);
963
+ get hasRegion(): boolean;
960
964
  static fromObject(data: {
961
965
  id?: string;
962
966
  email?: string;
@@ -967,6 +971,7 @@ export declare namespace com.pkg.admin {
967
971
  phone?: string;
968
972
  mfbId?: string;
969
973
  regionId?: string;
974
+ region?: ReturnType<typeof Region.prototype.toObject>;
970
975
  }): AdminInfo;
971
976
  toObject(): {
972
977
  id?: string | undefined;
@@ -985,6 +990,11 @@ export declare namespace com.pkg.admin {
985
990
  phone?: string | undefined;
986
991
  mfbId?: string | undefined;
987
992
  regionId?: string | undefined;
993
+ region?: {
994
+ name?: string | undefined;
995
+ description?: string | undefined;
996
+ active?: boolean | undefined;
997
+ } | undefined;
988
998
  };
989
999
  serialize(): Uint8Array;
990
1000
  serialize(w: pb_1.BinaryWriter): void;
@@ -1072,6 +1082,9 @@ export declare namespace com.pkg.admin {
1072
1082
  page?: number;
1073
1083
  limit?: number;
1074
1084
  searchQuery?: string;
1085
+ regionId?: string;
1086
+ dataScope?: string;
1087
+ adminId?: string;
1075
1088
  });
1076
1089
  get id(): string;
1077
1090
  set id(value: string);
@@ -1083,12 +1096,21 @@ export declare namespace com.pkg.admin {
1083
1096
  set limit(value: number);
1084
1097
  get searchQuery(): string;
1085
1098
  set searchQuery(value: string);
1099
+ get regionId(): string;
1100
+ set regionId(value: string);
1101
+ get dataScope(): string;
1102
+ set dataScope(value: string);
1103
+ get adminId(): string;
1104
+ set adminId(value: string);
1086
1105
  static fromObject(data: {
1087
1106
  id?: string;
1088
1107
  roleId?: string;
1089
1108
  page?: number;
1090
1109
  limit?: number;
1091
1110
  searchQuery?: string;
1111
+ regionId?: string;
1112
+ dataScope?: string;
1113
+ adminId?: string;
1092
1114
  }): GetAdminsRequest;
1093
1115
  toObject(): {
1094
1116
  id?: string | undefined;
@@ -1096,6 +1118,9 @@ export declare namespace com.pkg.admin {
1096
1118
  page?: number | undefined;
1097
1119
  limit?: number | undefined;
1098
1120
  searchQuery?: string | undefined;
1121
+ regionId?: string | undefined;
1122
+ dataScope?: string | undefined;
1123
+ adminId?: string | undefined;
1099
1124
  };
1100
1125
  serialize(): Uint8Array;
1101
1126
  serialize(w: pb_1.BinaryWriter): void;
@@ -1246,6 +1271,11 @@ export declare namespace com.pkg.admin {
1246
1271
  phone?: string | undefined;
1247
1272
  mfbId?: string | undefined;
1248
1273
  regionId?: string | undefined;
1274
+ region?: {
1275
+ name?: string | undefined;
1276
+ description?: string | undefined;
1277
+ active?: boolean | undefined;
1278
+ } | undefined;
1249
1279
  }[] | undefined;
1250
1280
  error?: string | undefined;
1251
1281
  pagination?: {