@technova-tech/olive-proto-lib 3.2.8 → 3.2.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 +125 -0
- package/package.json +1 -1
- package/types/admin/admin.d.ts +40 -0
package/admin/admin.js
CHANGED
|
@@ -8972,6 +8972,106 @@ var com;
|
|
|
8972
8972
|
}
|
|
8973
8973
|
}
|
|
8974
8974
|
admin.RegionData = RegionData;
|
|
8975
|
+
class ChangeDefaultPasswordRequest extends pb_1.Message {
|
|
8976
|
+
#one_of_decls = [];
|
|
8977
|
+
constructor(data) {
|
|
8978
|
+
super();
|
|
8979
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
8980
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
8981
|
+
if ("email" in data && data.email != undefined) {
|
|
8982
|
+
this.email = data.email;
|
|
8983
|
+
}
|
|
8984
|
+
if ("defaultPassword" in data && data.defaultPassword != undefined) {
|
|
8985
|
+
this.defaultPassword = data.defaultPassword;
|
|
8986
|
+
}
|
|
8987
|
+
if ("newPassword" in data && data.newPassword != undefined) {
|
|
8988
|
+
this.newPassword = data.newPassword;
|
|
8989
|
+
}
|
|
8990
|
+
}
|
|
8991
|
+
}
|
|
8992
|
+
get email() {
|
|
8993
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
8994
|
+
}
|
|
8995
|
+
set email(value) {
|
|
8996
|
+
pb_1.Message.setField(this, 1, value);
|
|
8997
|
+
}
|
|
8998
|
+
get defaultPassword() {
|
|
8999
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
9000
|
+
}
|
|
9001
|
+
set defaultPassword(value) {
|
|
9002
|
+
pb_1.Message.setField(this, 2, value);
|
|
9003
|
+
}
|
|
9004
|
+
get newPassword() {
|
|
9005
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
9006
|
+
}
|
|
9007
|
+
set newPassword(value) {
|
|
9008
|
+
pb_1.Message.setField(this, 3, value);
|
|
9009
|
+
}
|
|
9010
|
+
static fromObject(data) {
|
|
9011
|
+
const message = new ChangeDefaultPasswordRequest({});
|
|
9012
|
+
if (data.email != null) {
|
|
9013
|
+
message.email = data.email;
|
|
9014
|
+
}
|
|
9015
|
+
if (data.defaultPassword != null) {
|
|
9016
|
+
message.defaultPassword = data.defaultPassword;
|
|
9017
|
+
}
|
|
9018
|
+
if (data.newPassword != null) {
|
|
9019
|
+
message.newPassword = data.newPassword;
|
|
9020
|
+
}
|
|
9021
|
+
return message;
|
|
9022
|
+
}
|
|
9023
|
+
toObject() {
|
|
9024
|
+
const data = {};
|
|
9025
|
+
if (this.email != null) {
|
|
9026
|
+
data.email = this.email;
|
|
9027
|
+
}
|
|
9028
|
+
if (this.defaultPassword != null) {
|
|
9029
|
+
data.defaultPassword = this.defaultPassword;
|
|
9030
|
+
}
|
|
9031
|
+
if (this.newPassword != null) {
|
|
9032
|
+
data.newPassword = this.newPassword;
|
|
9033
|
+
}
|
|
9034
|
+
return data;
|
|
9035
|
+
}
|
|
9036
|
+
serialize(w) {
|
|
9037
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
9038
|
+
if (this.email.length)
|
|
9039
|
+
writer.writeString(1, this.email);
|
|
9040
|
+
if (this.defaultPassword.length)
|
|
9041
|
+
writer.writeString(2, this.defaultPassword);
|
|
9042
|
+
if (this.newPassword.length)
|
|
9043
|
+
writer.writeString(3, this.newPassword);
|
|
9044
|
+
if (!w)
|
|
9045
|
+
return writer.getResultBuffer();
|
|
9046
|
+
}
|
|
9047
|
+
static deserialize(bytes) {
|
|
9048
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ChangeDefaultPasswordRequest();
|
|
9049
|
+
while (reader.nextField()) {
|
|
9050
|
+
if (reader.isEndGroup())
|
|
9051
|
+
break;
|
|
9052
|
+
switch (reader.getFieldNumber()) {
|
|
9053
|
+
case 1:
|
|
9054
|
+
message.email = reader.readString();
|
|
9055
|
+
break;
|
|
9056
|
+
case 2:
|
|
9057
|
+
message.defaultPassword = reader.readString();
|
|
9058
|
+
break;
|
|
9059
|
+
case 3:
|
|
9060
|
+
message.newPassword = reader.readString();
|
|
9061
|
+
break;
|
|
9062
|
+
default: reader.skipField();
|
|
9063
|
+
}
|
|
9064
|
+
}
|
|
9065
|
+
return message;
|
|
9066
|
+
}
|
|
9067
|
+
serializeBinary() {
|
|
9068
|
+
return this.serialize();
|
|
9069
|
+
}
|
|
9070
|
+
static deserializeBinary(bytes) {
|
|
9071
|
+
return ChangeDefaultPasswordRequest.deserialize(bytes);
|
|
9072
|
+
}
|
|
9073
|
+
}
|
|
9074
|
+
admin.ChangeDefaultPasswordRequest = ChangeDefaultPasswordRequest;
|
|
8975
9075
|
class UnimplementedAdminServiceService {
|
|
8976
9076
|
static definition = {
|
|
8977
9077
|
InviteAdmin: {
|
|
@@ -9333,6 +9433,15 @@ var com;
|
|
|
9333
9433
|
requestDeserialize: (bytes) => IdRequest.deserialize(new Uint8Array(bytes)),
|
|
9334
9434
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
9335
9435
|
responseDeserialize: (bytes) => AdminsResponse.deserialize(new Uint8Array(bytes))
|
|
9436
|
+
},
|
|
9437
|
+
ChangeDefaultPassword: {
|
|
9438
|
+
path: "/com.pkg.admin.AdminService/ChangeDefaultPassword",
|
|
9439
|
+
requestStream: false,
|
|
9440
|
+
responseStream: false,
|
|
9441
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
9442
|
+
requestDeserialize: (bytes) => ChangeDefaultPasswordRequest.deserialize(new Uint8Array(bytes)),
|
|
9443
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
9444
|
+
responseDeserialize: (bytes) => AdminResponse.deserialize(new Uint8Array(bytes))
|
|
9336
9445
|
}
|
|
9337
9446
|
};
|
|
9338
9447
|
}
|
|
@@ -9981,6 +10090,22 @@ var com;
|
|
|
9981
10090
|
}
|
|
9982
10091
|
}));
|
|
9983
10092
|
};
|
|
10093
|
+
ChangeDefaultPassword = (message, metadata, options) => {
|
|
10094
|
+
if (!metadata) {
|
|
10095
|
+
metadata = new grpc_1.Metadata;
|
|
10096
|
+
}
|
|
10097
|
+
if (!options) {
|
|
10098
|
+
options = {};
|
|
10099
|
+
}
|
|
10100
|
+
return new Promise((resolve, reject) => super.ChangeDefaultPassword(message, metadata, options, (error, response) => {
|
|
10101
|
+
if (error) {
|
|
10102
|
+
reject(error);
|
|
10103
|
+
}
|
|
10104
|
+
else {
|
|
10105
|
+
resolve(response);
|
|
10106
|
+
}
|
|
10107
|
+
}));
|
|
10108
|
+
};
|
|
9984
10109
|
}
|
|
9985
10110
|
admin.AdminServiceClient = AdminServiceClient;
|
|
9986
10111
|
})(admin = pkg.admin || (pkg.admin = {}));
|
package/package.json
CHANGED
package/types/admin/admin.d.ts
CHANGED
|
@@ -2928,6 +2928,35 @@ export declare namespace com.pkg.admin {
|
|
|
2928
2928
|
serializeBinary(): Uint8Array;
|
|
2929
2929
|
static deserializeBinary(bytes: Uint8Array): RegionData;
|
|
2930
2930
|
}
|
|
2931
|
+
export class ChangeDefaultPasswordRequest extends pb_1.Message {
|
|
2932
|
+
#private;
|
|
2933
|
+
constructor(data?: any[] | {
|
|
2934
|
+
email?: string;
|
|
2935
|
+
defaultPassword?: string;
|
|
2936
|
+
newPassword?: string;
|
|
2937
|
+
});
|
|
2938
|
+
get email(): string;
|
|
2939
|
+
set email(value: string);
|
|
2940
|
+
get defaultPassword(): string;
|
|
2941
|
+
set defaultPassword(value: string);
|
|
2942
|
+
get newPassword(): string;
|
|
2943
|
+
set newPassword(value: string);
|
|
2944
|
+
static fromObject(data: {
|
|
2945
|
+
email?: string;
|
|
2946
|
+
defaultPassword?: string;
|
|
2947
|
+
newPassword?: string;
|
|
2948
|
+
}): ChangeDefaultPasswordRequest;
|
|
2949
|
+
toObject(): {
|
|
2950
|
+
email?: string | undefined;
|
|
2951
|
+
defaultPassword?: string | undefined;
|
|
2952
|
+
newPassword?: string | undefined;
|
|
2953
|
+
};
|
|
2954
|
+
serialize(): Uint8Array;
|
|
2955
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
2956
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ChangeDefaultPasswordRequest;
|
|
2957
|
+
serializeBinary(): Uint8Array;
|
|
2958
|
+
static deserializeBinary(bytes: Uint8Array): ChangeDefaultPasswordRequest;
|
|
2959
|
+
}
|
|
2931
2960
|
interface GrpcPromiseServiceInterface<P, R> {
|
|
2932
2961
|
(message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
|
|
2933
2962
|
(message: P, options?: grpc_1.CallOptions): Promise<R>;
|
|
@@ -3294,6 +3323,15 @@ export declare namespace com.pkg.admin {
|
|
|
3294
3323
|
responseSerialize: (message: AdminsResponse) => Buffer;
|
|
3295
3324
|
responseDeserialize: (bytes: Buffer) => AdminsResponse;
|
|
3296
3325
|
};
|
|
3326
|
+
ChangeDefaultPassword: {
|
|
3327
|
+
path: string;
|
|
3328
|
+
requestStream: boolean;
|
|
3329
|
+
responseStream: boolean;
|
|
3330
|
+
requestSerialize: (message: ChangeDefaultPasswordRequest) => Buffer;
|
|
3331
|
+
requestDeserialize: (bytes: Buffer) => ChangeDefaultPasswordRequest;
|
|
3332
|
+
responseSerialize: (message: AdminResponse) => Buffer;
|
|
3333
|
+
responseDeserialize: (bytes: Buffer) => AdminResponse;
|
|
3334
|
+
};
|
|
3297
3335
|
};
|
|
3298
3336
|
[method: string]: grpc_1.UntypedHandleCall;
|
|
3299
3337
|
abstract InviteAdmin(call: grpc_1.ServerUnaryCall<InviteAdminRequest, AdminResponse>, callback: grpc_1.sendUnaryData<AdminResponse>): void;
|
|
@@ -3336,6 +3374,7 @@ export declare namespace com.pkg.admin {
|
|
|
3336
3374
|
abstract UpdateRegionStatus(call: grpc_1.ServerUnaryCall<UpdateRegionStatusRequest, RegionResponse>, callback: grpc_1.sendUnaryData<RegionResponse>): void;
|
|
3337
3375
|
abstract GetAdminsByRegionId(call: grpc_1.ServerUnaryCall<IdRequest, AdminsResponse>, callback: grpc_1.sendUnaryData<AdminsResponse>): void;
|
|
3338
3376
|
abstract GetAdminRegionalManager(call: grpc_1.ServerUnaryCall<IdRequest, AdminsResponse>, callback: grpc_1.sendUnaryData<AdminsResponse>): void;
|
|
3377
|
+
abstract ChangeDefaultPassword(call: grpc_1.ServerUnaryCall<ChangeDefaultPasswordRequest, AdminResponse>, callback: grpc_1.sendUnaryData<AdminResponse>): void;
|
|
3339
3378
|
}
|
|
3340
3379
|
const AdminServiceClient_base: grpc_1.ServiceClientConstructor;
|
|
3341
3380
|
export class AdminServiceClient extends AdminServiceClient_base {
|
|
@@ -3380,6 +3419,7 @@ export declare namespace com.pkg.admin {
|
|
|
3380
3419
|
UpdateRegionStatus: GrpcPromiseServiceInterface<UpdateRegionStatusRequest, RegionResponse>;
|
|
3381
3420
|
GetAdminsByRegionId: GrpcPromiseServiceInterface<IdRequest, AdminsResponse>;
|
|
3382
3421
|
GetAdminRegionalManager: GrpcPromiseServiceInterface<IdRequest, AdminsResponse>;
|
|
3422
|
+
ChangeDefaultPassword: GrpcPromiseServiceInterface<ChangeDefaultPasswordRequest, AdminResponse>;
|
|
3383
3423
|
}
|
|
3384
3424
|
export {};
|
|
3385
3425
|
}
|