@technova-tech/olive-proto-lib 3.2.8 → 3.2.10
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/bills/bills.js +20 -0
- package/package.json +1 -1
- package/types/admin/admin.d.ts +40 -0
- package/types/bills/bills.d.ts +5 -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/bills/bills.js
CHANGED
|
@@ -1869,6 +1869,9 @@ var com;
|
|
|
1869
1869
|
if ("recipient" in data && data.recipient != undefined) {
|
|
1870
1870
|
this.recipient = data.recipient;
|
|
1871
1871
|
}
|
|
1872
|
+
if ("customerPhone" in data && data.customerPhone != undefined) {
|
|
1873
|
+
this.customerPhone = data.customerPhone;
|
|
1874
|
+
}
|
|
1872
1875
|
}
|
|
1873
1876
|
}
|
|
1874
1877
|
get category() {
|
|
@@ -1889,6 +1892,12 @@ var com;
|
|
|
1889
1892
|
set recipient(value) {
|
|
1890
1893
|
pb_1.Message.setField(this, 3, value);
|
|
1891
1894
|
}
|
|
1895
|
+
get customerPhone() {
|
|
1896
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
1897
|
+
}
|
|
1898
|
+
set customerPhone(value) {
|
|
1899
|
+
pb_1.Message.setField(this, 4, value);
|
|
1900
|
+
}
|
|
1892
1901
|
static fromObject(data) {
|
|
1893
1902
|
const message = new ValidateRecipientRequest({});
|
|
1894
1903
|
if (data.category != null) {
|
|
@@ -1900,6 +1909,9 @@ var com;
|
|
|
1900
1909
|
if (data.recipient != null) {
|
|
1901
1910
|
message.recipient = data.recipient;
|
|
1902
1911
|
}
|
|
1912
|
+
if (data.customerPhone != null) {
|
|
1913
|
+
message.customerPhone = data.customerPhone;
|
|
1914
|
+
}
|
|
1903
1915
|
return message;
|
|
1904
1916
|
}
|
|
1905
1917
|
toObject() {
|
|
@@ -1913,6 +1925,9 @@ var com;
|
|
|
1913
1925
|
if (this.recipient != null) {
|
|
1914
1926
|
data.recipient = this.recipient;
|
|
1915
1927
|
}
|
|
1928
|
+
if (this.customerPhone != null) {
|
|
1929
|
+
data.customerPhone = this.customerPhone;
|
|
1930
|
+
}
|
|
1916
1931
|
return data;
|
|
1917
1932
|
}
|
|
1918
1933
|
serialize(w) {
|
|
@@ -1923,6 +1938,8 @@ var com;
|
|
|
1923
1938
|
writer.writeString(2, this.providerCode);
|
|
1924
1939
|
if (this.recipient.length)
|
|
1925
1940
|
writer.writeString(3, this.recipient);
|
|
1941
|
+
if (this.customerPhone.length)
|
|
1942
|
+
writer.writeString(4, this.customerPhone);
|
|
1926
1943
|
if (!w)
|
|
1927
1944
|
return writer.getResultBuffer();
|
|
1928
1945
|
}
|
|
@@ -1941,6 +1958,9 @@ var com;
|
|
|
1941
1958
|
case 3:
|
|
1942
1959
|
message.recipient = reader.readString();
|
|
1943
1960
|
break;
|
|
1961
|
+
case 4:
|
|
1962
|
+
message.customerPhone = reader.readString();
|
|
1963
|
+
break;
|
|
1944
1964
|
default: reader.skipField();
|
|
1945
1965
|
}
|
|
1946
1966
|
}
|
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
|
}
|
package/types/bills/bills.d.ts
CHANGED
|
@@ -550,6 +550,7 @@ export declare namespace com.pkg.bills {
|
|
|
550
550
|
category?: string;
|
|
551
551
|
providerCode?: string;
|
|
552
552
|
recipient?: string;
|
|
553
|
+
customerPhone?: string;
|
|
553
554
|
});
|
|
554
555
|
get category(): string;
|
|
555
556
|
set category(value: string);
|
|
@@ -557,15 +558,19 @@ export declare namespace com.pkg.bills {
|
|
|
557
558
|
set providerCode(value: string);
|
|
558
559
|
get recipient(): string;
|
|
559
560
|
set recipient(value: string);
|
|
561
|
+
get customerPhone(): string;
|
|
562
|
+
set customerPhone(value: string);
|
|
560
563
|
static fromObject(data: {
|
|
561
564
|
category?: string;
|
|
562
565
|
providerCode?: string;
|
|
563
566
|
recipient?: string;
|
|
567
|
+
customerPhone?: string;
|
|
564
568
|
}): ValidateRecipientRequest;
|
|
565
569
|
toObject(): {
|
|
566
570
|
category?: string | undefined;
|
|
567
571
|
providerCode?: string | undefined;
|
|
568
572
|
recipient?: string | undefined;
|
|
573
|
+
customerPhone?: string | undefined;
|
|
569
574
|
};
|
|
570
575
|
serialize(): Uint8Array;
|
|
571
576
|
serialize(w: pb_1.BinaryWriter): void;
|