@technova-tech/olive-proto-lib 3.1.5 → 3.1.6

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
@@ -3512,6 +3512,226 @@ var com;
3512
3512
  }
3513
3513
  }
3514
3514
  admin.InviteAdminRequest = InviteAdminRequest;
3515
+ class UpdateAdminRequest extends pb_1.Message {
3516
+ #one_of_decls = [];
3517
+ constructor(data) {
3518
+ super();
3519
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
3520
+ if (!Array.isArray(data) && typeof data == "object") {
3521
+ if ("adminId" in data && data.adminId != undefined) {
3522
+ this.adminId = data.adminId;
3523
+ }
3524
+ if ("updatedBy" in data && data.updatedBy != undefined) {
3525
+ this.updatedBy = data.updatedBy;
3526
+ }
3527
+ if ("firstName" in data && data.firstName != undefined) {
3528
+ this.firstName = data.firstName;
3529
+ }
3530
+ if ("lastName" in data && data.lastName != undefined) {
3531
+ this.lastName = data.lastName;
3532
+ }
3533
+ if ("middleName" in data && data.middleName != undefined) {
3534
+ this.middleName = data.middleName;
3535
+ }
3536
+ if ("phone" in data && data.phone != undefined) {
3537
+ this.phone = data.phone;
3538
+ }
3539
+ if ("roleId" in data && data.roleId != undefined) {
3540
+ this.roleId = data.roleId;
3541
+ }
3542
+ if ("mfbId" in data && data.mfbId != undefined) {
3543
+ this.mfbId = data.mfbId;
3544
+ }
3545
+ if ("regionId" in data && data.regionId != undefined) {
3546
+ this.regionId = data.regionId;
3547
+ }
3548
+ }
3549
+ }
3550
+ get adminId() {
3551
+ return pb_1.Message.getFieldWithDefault(this, 1, "");
3552
+ }
3553
+ set adminId(value) {
3554
+ pb_1.Message.setField(this, 1, value);
3555
+ }
3556
+ get updatedBy() {
3557
+ return pb_1.Message.getFieldWithDefault(this, 2, "");
3558
+ }
3559
+ set updatedBy(value) {
3560
+ pb_1.Message.setField(this, 2, value);
3561
+ }
3562
+ get firstName() {
3563
+ return pb_1.Message.getFieldWithDefault(this, 3, "");
3564
+ }
3565
+ set firstName(value) {
3566
+ pb_1.Message.setField(this, 3, value);
3567
+ }
3568
+ get lastName() {
3569
+ return pb_1.Message.getFieldWithDefault(this, 4, "");
3570
+ }
3571
+ set lastName(value) {
3572
+ pb_1.Message.setField(this, 4, value);
3573
+ }
3574
+ get middleName() {
3575
+ return pb_1.Message.getFieldWithDefault(this, 5, "");
3576
+ }
3577
+ set middleName(value) {
3578
+ pb_1.Message.setField(this, 5, value);
3579
+ }
3580
+ get phone() {
3581
+ return pb_1.Message.getFieldWithDefault(this, 6, "");
3582
+ }
3583
+ set phone(value) {
3584
+ pb_1.Message.setField(this, 6, value);
3585
+ }
3586
+ get roleId() {
3587
+ return pb_1.Message.getFieldWithDefault(this, 7, "");
3588
+ }
3589
+ set roleId(value) {
3590
+ pb_1.Message.setField(this, 7, value);
3591
+ }
3592
+ get mfbId() {
3593
+ return pb_1.Message.getFieldWithDefault(this, 8, "");
3594
+ }
3595
+ set mfbId(value) {
3596
+ pb_1.Message.setField(this, 8, value);
3597
+ }
3598
+ get regionId() {
3599
+ return pb_1.Message.getFieldWithDefault(this, 9, "");
3600
+ }
3601
+ set regionId(value) {
3602
+ pb_1.Message.setField(this, 9, value);
3603
+ }
3604
+ static fromObject(data) {
3605
+ const message = new UpdateAdminRequest({});
3606
+ if (data.adminId != null) {
3607
+ message.adminId = data.adminId;
3608
+ }
3609
+ if (data.updatedBy != null) {
3610
+ message.updatedBy = data.updatedBy;
3611
+ }
3612
+ if (data.firstName != null) {
3613
+ message.firstName = data.firstName;
3614
+ }
3615
+ if (data.lastName != null) {
3616
+ message.lastName = data.lastName;
3617
+ }
3618
+ if (data.middleName != null) {
3619
+ message.middleName = data.middleName;
3620
+ }
3621
+ if (data.phone != null) {
3622
+ message.phone = data.phone;
3623
+ }
3624
+ if (data.roleId != null) {
3625
+ message.roleId = data.roleId;
3626
+ }
3627
+ if (data.mfbId != null) {
3628
+ message.mfbId = data.mfbId;
3629
+ }
3630
+ if (data.regionId != null) {
3631
+ message.regionId = data.regionId;
3632
+ }
3633
+ return message;
3634
+ }
3635
+ toObject() {
3636
+ const data = {};
3637
+ if (this.adminId != null) {
3638
+ data.adminId = this.adminId;
3639
+ }
3640
+ if (this.updatedBy != null) {
3641
+ data.updatedBy = this.updatedBy;
3642
+ }
3643
+ if (this.firstName != null) {
3644
+ data.firstName = this.firstName;
3645
+ }
3646
+ if (this.lastName != null) {
3647
+ data.lastName = this.lastName;
3648
+ }
3649
+ if (this.middleName != null) {
3650
+ data.middleName = this.middleName;
3651
+ }
3652
+ if (this.phone != null) {
3653
+ data.phone = this.phone;
3654
+ }
3655
+ if (this.roleId != null) {
3656
+ data.roleId = this.roleId;
3657
+ }
3658
+ if (this.mfbId != null) {
3659
+ data.mfbId = this.mfbId;
3660
+ }
3661
+ if (this.regionId != null) {
3662
+ data.regionId = this.regionId;
3663
+ }
3664
+ return data;
3665
+ }
3666
+ serialize(w) {
3667
+ const writer = w || new pb_1.BinaryWriter();
3668
+ if (this.adminId.length)
3669
+ writer.writeString(1, this.adminId);
3670
+ if (this.updatedBy.length)
3671
+ writer.writeString(2, this.updatedBy);
3672
+ if (this.firstName.length)
3673
+ writer.writeString(3, this.firstName);
3674
+ if (this.lastName.length)
3675
+ writer.writeString(4, this.lastName);
3676
+ if (this.middleName.length)
3677
+ writer.writeString(5, this.middleName);
3678
+ if (this.phone.length)
3679
+ writer.writeString(6, this.phone);
3680
+ if (this.roleId.length)
3681
+ writer.writeString(7, this.roleId);
3682
+ if (this.mfbId.length)
3683
+ writer.writeString(8, this.mfbId);
3684
+ if (this.regionId.length)
3685
+ writer.writeString(9, this.regionId);
3686
+ if (!w)
3687
+ return writer.getResultBuffer();
3688
+ }
3689
+ static deserialize(bytes) {
3690
+ const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new UpdateAdminRequest();
3691
+ while (reader.nextField()) {
3692
+ if (reader.isEndGroup())
3693
+ break;
3694
+ switch (reader.getFieldNumber()) {
3695
+ case 1:
3696
+ message.adminId = reader.readString();
3697
+ break;
3698
+ case 2:
3699
+ message.updatedBy = reader.readString();
3700
+ break;
3701
+ case 3:
3702
+ message.firstName = reader.readString();
3703
+ break;
3704
+ case 4:
3705
+ message.lastName = reader.readString();
3706
+ break;
3707
+ case 5:
3708
+ message.middleName = reader.readString();
3709
+ break;
3710
+ case 6:
3711
+ message.phone = reader.readString();
3712
+ break;
3713
+ case 7:
3714
+ message.roleId = reader.readString();
3715
+ break;
3716
+ case 8:
3717
+ message.mfbId = reader.readString();
3718
+ break;
3719
+ case 9:
3720
+ message.regionId = reader.readString();
3721
+ break;
3722
+ default: reader.skipField();
3723
+ }
3724
+ }
3725
+ return message;
3726
+ }
3727
+ serializeBinary() {
3728
+ return this.serialize();
3729
+ }
3730
+ static deserializeBinary(bytes) {
3731
+ return UpdateAdminRequest.deserialize(bytes);
3732
+ }
3733
+ }
3734
+ admin.UpdateAdminRequest = UpdateAdminRequest;
3515
3735
  class ReInviteAdminRequest extends pb_1.Message {
3516
3736
  #one_of_decls = [];
3517
3737
  constructor(data) {
@@ -8071,6 +8291,15 @@ var com;
8071
8291
  responseSerialize: (message) => Buffer.from(message.serialize()),
8072
8292
  responseDeserialize: (bytes) => AdminResponse.deserialize(new Uint8Array(bytes))
8073
8293
  },
8294
+ UpdateAdmin: {
8295
+ path: "/com.pkg.admin.AdminService/UpdateAdmin",
8296
+ requestStream: false,
8297
+ responseStream: false,
8298
+ requestSerialize: (message) => Buffer.from(message.serialize()),
8299
+ requestDeserialize: (bytes) => UpdateAdminRequest.deserialize(new Uint8Array(bytes)),
8300
+ responseSerialize: (message) => Buffer.from(message.serialize()),
8301
+ responseDeserialize: (bytes) => AdminResponse.deserialize(new Uint8Array(bytes))
8302
+ },
8074
8303
  ReInviteAdmin: {
8075
8304
  path: "/com.pkg.admin.AdminService/ReInviteAdmin",
8076
8305
  requestStream: false,
@@ -8427,6 +8656,22 @@ var com;
8427
8656
  }
8428
8657
  }));
8429
8658
  };
8659
+ UpdateAdmin = (message, metadata, options) => {
8660
+ if (!metadata) {
8661
+ metadata = new grpc_1.Metadata;
8662
+ }
8663
+ if (!options) {
8664
+ options = {};
8665
+ }
8666
+ return new Promise((resolve, reject) => super.UpdateAdmin(message, metadata, options, (error, response) => {
8667
+ if (error) {
8668
+ reject(error);
8669
+ }
8670
+ else {
8671
+ resolve(response);
8672
+ }
8673
+ }));
8674
+ };
8430
8675
  ReInviteAdmin = (message, metadata, options) => {
8431
8676
  if (!metadata) {
8432
8677
  metadata = new grpc_1.Metadata;
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.5",
14
+ "version": "3.1.6",
15
15
  "devDependencies": {
16
16
  "@types/google-protobuf": "^3.15.12",
17
17
  "protoc-gen-ts": "^0.8.7",
@@ -1134,6 +1134,65 @@ export declare namespace com.pkg.admin {
1134
1134
  serializeBinary(): Uint8Array;
1135
1135
  static deserializeBinary(bytes: Uint8Array): InviteAdminRequest;
1136
1136
  }
1137
+ export class UpdateAdminRequest extends pb_1.Message {
1138
+ #private;
1139
+ constructor(data?: any[] | {
1140
+ adminId?: string;
1141
+ updatedBy?: string;
1142
+ firstName?: string;
1143
+ lastName?: string;
1144
+ middleName?: string;
1145
+ phone?: string;
1146
+ roleId?: string;
1147
+ mfbId?: string;
1148
+ regionId?: string;
1149
+ });
1150
+ get adminId(): string;
1151
+ set adminId(value: string);
1152
+ get updatedBy(): string;
1153
+ set updatedBy(value: string);
1154
+ get firstName(): string;
1155
+ set firstName(value: string);
1156
+ get lastName(): string;
1157
+ set lastName(value: string);
1158
+ get middleName(): string;
1159
+ set middleName(value: string);
1160
+ get phone(): string;
1161
+ set phone(value: string);
1162
+ get roleId(): string;
1163
+ set roleId(value: string);
1164
+ get mfbId(): string;
1165
+ set mfbId(value: string);
1166
+ get regionId(): string;
1167
+ set regionId(value: string);
1168
+ static fromObject(data: {
1169
+ adminId?: string;
1170
+ updatedBy?: string;
1171
+ firstName?: string;
1172
+ lastName?: string;
1173
+ middleName?: string;
1174
+ phone?: string;
1175
+ roleId?: string;
1176
+ mfbId?: string;
1177
+ regionId?: string;
1178
+ }): UpdateAdminRequest;
1179
+ toObject(): {
1180
+ adminId?: string | undefined;
1181
+ updatedBy?: string | undefined;
1182
+ firstName?: string | undefined;
1183
+ lastName?: string | undefined;
1184
+ middleName?: string | undefined;
1185
+ phone?: string | undefined;
1186
+ roleId?: string | undefined;
1187
+ mfbId?: string | undefined;
1188
+ regionId?: string | undefined;
1189
+ };
1190
+ serialize(): Uint8Array;
1191
+ serialize(w: pb_1.BinaryWriter): void;
1192
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): UpdateAdminRequest;
1193
+ serializeBinary(): Uint8Array;
1194
+ static deserializeBinary(bytes: Uint8Array): UpdateAdminRequest;
1195
+ }
1137
1196
  export class ReInviteAdminRequest extends pb_1.Message {
1138
1197
  #private;
1139
1198
  constructor(data?: any[] | {
@@ -2622,6 +2681,15 @@ export declare namespace com.pkg.admin {
2622
2681
  responseSerialize: (message: AdminResponse) => Buffer;
2623
2682
  responseDeserialize: (bytes: Buffer) => AdminResponse;
2624
2683
  };
2684
+ UpdateAdmin: {
2685
+ path: string;
2686
+ requestStream: boolean;
2687
+ responseStream: boolean;
2688
+ requestSerialize: (message: UpdateAdminRequest) => Buffer;
2689
+ requestDeserialize: (bytes: Buffer) => UpdateAdminRequest;
2690
+ responseSerialize: (message: AdminResponse) => Buffer;
2691
+ responseDeserialize: (bytes: Buffer) => AdminResponse;
2692
+ };
2625
2693
  ReInviteAdmin: {
2626
2694
  path: string;
2627
2695
  requestStream: boolean;
@@ -2958,6 +3026,7 @@ export declare namespace com.pkg.admin {
2958
3026
  };
2959
3027
  [method: string]: grpc_1.UntypedHandleCall;
2960
3028
  abstract InviteAdmin(call: grpc_1.ServerUnaryCall<InviteAdminRequest, AdminResponse>, callback: grpc_1.sendUnaryData<AdminResponse>): void;
3029
+ abstract UpdateAdmin(call: grpc_1.ServerUnaryCall<UpdateAdminRequest, AdminResponse>, callback: grpc_1.sendUnaryData<AdminResponse>): void;
2961
3030
  abstract ReInviteAdmin(call: grpc_1.ServerUnaryCall<ReInviteAdminRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
2962
3031
  abstract ValidateInvitation(call: grpc_1.ServerUnaryCall<ValidationRequest, AdminResponse>, callback: grpc_1.sendUnaryData<AdminResponse>): void;
2963
3032
  abstract AcceptInvitation(call: grpc_1.ServerUnaryCall<AcceptInvitationRequest, AdminResponse>, callback: grpc_1.sendUnaryData<AdminResponse>): void;
@@ -3000,6 +3069,7 @@ export declare namespace com.pkg.admin {
3000
3069
  export class AdminServiceClient extends AdminServiceClient_base {
3001
3070
  constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial<grpc_1.ChannelOptions>);
3002
3071
  InviteAdmin: GrpcPromiseServiceInterface<InviteAdminRequest, AdminResponse>;
3072
+ UpdateAdmin: GrpcPromiseServiceInterface<UpdateAdminRequest, AdminResponse>;
3003
3073
  ReInviteAdmin: GrpcPromiseServiceInterface<ReInviteAdminRequest, DefaultResponse>;
3004
3074
  ValidateInvitation: GrpcPromiseServiceInterface<ValidationRequest, AdminResponse>;
3005
3075
  AcceptInvitation: GrpcPromiseServiceInterface<AcceptInvitationRequest, AdminResponse>;