@technova-tech/olive-proto-lib 3.1.8 → 3.1.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.
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
  }
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.1.9",
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;
@@ -1246,6 +1256,11 @@ export declare namespace com.pkg.admin {
1246
1256
  phone?: string | undefined;
1247
1257
  mfbId?: string | undefined;
1248
1258
  regionId?: string | undefined;
1259
+ region?: {
1260
+ name?: string | undefined;
1261
+ description?: string | undefined;
1262
+ active?: boolean | undefined;
1263
+ } | undefined;
1249
1264
  }[] | undefined;
1250
1265
  error?: string | undefined;
1251
1266
  pagination?: {