@technova-tech/olive-proto-lib 1.7.3 → 1.7.5
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 +61 -1
- package/package.json +1 -1
- package/pos.v1/terminals.js +102 -1
- package/types/admin/admin.d.ts +23 -4
- package/types/pos.v1/terminals.d.ts +31 -3
package/admin/admin.js
CHANGED
|
@@ -751,6 +751,66 @@ var com;
|
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
753
|
admin.Permission = Permission;
|
|
754
|
+
class GetPermissionRequest extends pb_1.Message {
|
|
755
|
+
#one_of_decls = [];
|
|
756
|
+
constructor(data) {
|
|
757
|
+
super();
|
|
758
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
759
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
760
|
+
if ("search" in data && data.search != undefined) {
|
|
761
|
+
this.search = data.search;
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
get search() {
|
|
766
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
767
|
+
}
|
|
768
|
+
set search(value) {
|
|
769
|
+
pb_1.Message.setField(this, 1, value);
|
|
770
|
+
}
|
|
771
|
+
static fromObject(data) {
|
|
772
|
+
const message = new GetPermissionRequest({});
|
|
773
|
+
if (data.search != null) {
|
|
774
|
+
message.search = data.search;
|
|
775
|
+
}
|
|
776
|
+
return message;
|
|
777
|
+
}
|
|
778
|
+
toObject() {
|
|
779
|
+
const data = {};
|
|
780
|
+
if (this.search != null) {
|
|
781
|
+
data.search = this.search;
|
|
782
|
+
}
|
|
783
|
+
return data;
|
|
784
|
+
}
|
|
785
|
+
serialize(w) {
|
|
786
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
787
|
+
if (this.search.length)
|
|
788
|
+
writer.writeString(1, this.search);
|
|
789
|
+
if (!w)
|
|
790
|
+
return writer.getResultBuffer();
|
|
791
|
+
}
|
|
792
|
+
static deserialize(bytes) {
|
|
793
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetPermissionRequest();
|
|
794
|
+
while (reader.nextField()) {
|
|
795
|
+
if (reader.isEndGroup())
|
|
796
|
+
break;
|
|
797
|
+
switch (reader.getFieldNumber()) {
|
|
798
|
+
case 1:
|
|
799
|
+
message.search = reader.readString();
|
|
800
|
+
break;
|
|
801
|
+
default: reader.skipField();
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
return message;
|
|
805
|
+
}
|
|
806
|
+
serializeBinary() {
|
|
807
|
+
return this.serialize();
|
|
808
|
+
}
|
|
809
|
+
static deserializeBinary(bytes) {
|
|
810
|
+
return GetPermissionRequest.deserialize(bytes);
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
admin.GetPermissionRequest = GetPermissionRequest;
|
|
754
814
|
class CreatePermissionRequest extends pb_1.Message {
|
|
755
815
|
#one_of_decls = [];
|
|
756
816
|
constructor(data) {
|
|
@@ -4486,7 +4546,7 @@ var com;
|
|
|
4486
4546
|
requestStream: false,
|
|
4487
4547
|
responseStream: false,
|
|
4488
4548
|
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
4489
|
-
requestDeserialize: (bytes) =>
|
|
4549
|
+
requestDeserialize: (bytes) => GetPermissionRequest.deserialize(new Uint8Array(bytes)),
|
|
4490
4550
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
4491
4551
|
responseDeserialize: (bytes) => PermissionsResponse.deserialize(new Uint8Array(bytes))
|
|
4492
4552
|
},
|
package/package.json
CHANGED
package/pos.v1/terminals.js
CHANGED
|
@@ -3330,6 +3330,12 @@ var com;
|
|
|
3330
3330
|
if ("search" in data && data.search != undefined) {
|
|
3331
3331
|
this.search = data.search;
|
|
3332
3332
|
}
|
|
3333
|
+
if ("from" in data && data.from != undefined) {
|
|
3334
|
+
this.from = data.from;
|
|
3335
|
+
}
|
|
3336
|
+
if ("to" in data && data.to != undefined) {
|
|
3337
|
+
this.to = data.to;
|
|
3338
|
+
}
|
|
3333
3339
|
}
|
|
3334
3340
|
}
|
|
3335
3341
|
get terminalTypeId() {
|
|
@@ -3362,6 +3368,18 @@ var com;
|
|
|
3362
3368
|
set search(value) {
|
|
3363
3369
|
pb_1.Message.setField(this, 5, value);
|
|
3364
3370
|
}
|
|
3371
|
+
get from() {
|
|
3372
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
3373
|
+
}
|
|
3374
|
+
set from(value) {
|
|
3375
|
+
pb_1.Message.setField(this, 6, value);
|
|
3376
|
+
}
|
|
3377
|
+
get to() {
|
|
3378
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
3379
|
+
}
|
|
3380
|
+
set to(value) {
|
|
3381
|
+
pb_1.Message.setField(this, 7, value);
|
|
3382
|
+
}
|
|
3365
3383
|
static fromObject(data) {
|
|
3366
3384
|
const message = new GetAvailableTerminalsRequest({});
|
|
3367
3385
|
if (data.terminalTypeId != null) {
|
|
@@ -3379,6 +3397,12 @@ var com;
|
|
|
3379
3397
|
if (data.search != null) {
|
|
3380
3398
|
message.search = data.search;
|
|
3381
3399
|
}
|
|
3400
|
+
if (data.from != null) {
|
|
3401
|
+
message.from = data.from;
|
|
3402
|
+
}
|
|
3403
|
+
if (data.to != null) {
|
|
3404
|
+
message.to = data.to;
|
|
3405
|
+
}
|
|
3382
3406
|
return message;
|
|
3383
3407
|
}
|
|
3384
3408
|
toObject() {
|
|
@@ -3398,6 +3422,12 @@ var com;
|
|
|
3398
3422
|
if (this.search != null) {
|
|
3399
3423
|
data.search = this.search;
|
|
3400
3424
|
}
|
|
3425
|
+
if (this.from != null) {
|
|
3426
|
+
data.from = this.from;
|
|
3427
|
+
}
|
|
3428
|
+
if (this.to != null) {
|
|
3429
|
+
data.to = this.to;
|
|
3430
|
+
}
|
|
3401
3431
|
return data;
|
|
3402
3432
|
}
|
|
3403
3433
|
serialize(w) {
|
|
@@ -3412,6 +3442,10 @@ var com;
|
|
|
3412
3442
|
writer.writeInt32(4, this.limit);
|
|
3413
3443
|
if (this.search.length)
|
|
3414
3444
|
writer.writeString(5, this.search);
|
|
3445
|
+
if (this.from.length)
|
|
3446
|
+
writer.writeString(6, this.from);
|
|
3447
|
+
if (this.to.length)
|
|
3448
|
+
writer.writeString(7, this.to);
|
|
3415
3449
|
if (!w)
|
|
3416
3450
|
return writer.getResultBuffer();
|
|
3417
3451
|
}
|
|
@@ -3436,6 +3470,12 @@ var com;
|
|
|
3436
3470
|
case 5:
|
|
3437
3471
|
message.search = reader.readString();
|
|
3438
3472
|
break;
|
|
3473
|
+
case 6:
|
|
3474
|
+
message.from = reader.readString();
|
|
3475
|
+
break;
|
|
3476
|
+
case 7:
|
|
3477
|
+
message.to = reader.readString();
|
|
3478
|
+
break;
|
|
3439
3479
|
default: reader.skipField();
|
|
3440
3480
|
}
|
|
3441
3481
|
}
|
|
@@ -14011,18 +14051,70 @@ var com;
|
|
|
14011
14051
|
constructor(data) {
|
|
14012
14052
|
super();
|
|
14013
14053
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
14014
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
14054
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
14055
|
+
if ("from" in data && data.from != undefined) {
|
|
14056
|
+
this.from = data.from;
|
|
14057
|
+
}
|
|
14058
|
+
if ("to" in data && data.to != undefined) {
|
|
14059
|
+
this.to = data.to;
|
|
14060
|
+
}
|
|
14061
|
+
if ("duration" in data && data.duration != undefined) {
|
|
14062
|
+
this.duration = data.duration;
|
|
14063
|
+
}
|
|
14064
|
+
}
|
|
14065
|
+
}
|
|
14066
|
+
get from() {
|
|
14067
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
14068
|
+
}
|
|
14069
|
+
set from(value) {
|
|
14070
|
+
pb_1.Message.setField(this, 1, value);
|
|
14071
|
+
}
|
|
14072
|
+
get to() {
|
|
14073
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
14074
|
+
}
|
|
14075
|
+
set to(value) {
|
|
14076
|
+
pb_1.Message.setField(this, 2, value);
|
|
14077
|
+
}
|
|
14078
|
+
get duration() {
|
|
14079
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
14080
|
+
}
|
|
14081
|
+
set duration(value) {
|
|
14082
|
+
pb_1.Message.setField(this, 3, value);
|
|
14015
14083
|
}
|
|
14016
14084
|
static fromObject(data) {
|
|
14017
14085
|
const message = new GetDashboardStatisticsRequest({});
|
|
14086
|
+
if (data.from != null) {
|
|
14087
|
+
message.from = data.from;
|
|
14088
|
+
}
|
|
14089
|
+
if (data.to != null) {
|
|
14090
|
+
message.to = data.to;
|
|
14091
|
+
}
|
|
14092
|
+
if (data.duration != null) {
|
|
14093
|
+
message.duration = data.duration;
|
|
14094
|
+
}
|
|
14018
14095
|
return message;
|
|
14019
14096
|
}
|
|
14020
14097
|
toObject() {
|
|
14021
14098
|
const data = {};
|
|
14099
|
+
if (this.from != null) {
|
|
14100
|
+
data.from = this.from;
|
|
14101
|
+
}
|
|
14102
|
+
if (this.to != null) {
|
|
14103
|
+
data.to = this.to;
|
|
14104
|
+
}
|
|
14105
|
+
if (this.duration != null) {
|
|
14106
|
+
data.duration = this.duration;
|
|
14107
|
+
}
|
|
14022
14108
|
return data;
|
|
14023
14109
|
}
|
|
14024
14110
|
serialize(w) {
|
|
14025
14111
|
const writer = w || new pb_1.BinaryWriter();
|
|
14112
|
+
if (this.from.length)
|
|
14113
|
+
writer.writeString(1, this.from);
|
|
14114
|
+
if (this.to.length)
|
|
14115
|
+
writer.writeString(2, this.to);
|
|
14116
|
+
if (this.duration.length)
|
|
14117
|
+
writer.writeString(3, this.duration);
|
|
14026
14118
|
if (!w)
|
|
14027
14119
|
return writer.getResultBuffer();
|
|
14028
14120
|
}
|
|
@@ -14032,6 +14124,15 @@ var com;
|
|
|
14032
14124
|
if (reader.isEndGroup())
|
|
14033
14125
|
break;
|
|
14034
14126
|
switch (reader.getFieldNumber()) {
|
|
14127
|
+
case 1:
|
|
14128
|
+
message.from = reader.readString();
|
|
14129
|
+
break;
|
|
14130
|
+
case 2:
|
|
14131
|
+
message.to = reader.readString();
|
|
14132
|
+
break;
|
|
14133
|
+
case 3:
|
|
14134
|
+
message.duration = reader.readString();
|
|
14135
|
+
break;
|
|
14035
14136
|
default: reader.skipField();
|
|
14036
14137
|
}
|
|
14037
14138
|
}
|
package/types/admin/admin.d.ts
CHANGED
|
@@ -210,6 +210,25 @@ export declare namespace com.pkg.admin {
|
|
|
210
210
|
serializeBinary(): Uint8Array;
|
|
211
211
|
static deserializeBinary(bytes: Uint8Array): Permission;
|
|
212
212
|
}
|
|
213
|
+
export class GetPermissionRequest extends pb_1.Message {
|
|
214
|
+
#private;
|
|
215
|
+
constructor(data?: any[] | {
|
|
216
|
+
search?: string;
|
|
217
|
+
});
|
|
218
|
+
get search(): string;
|
|
219
|
+
set search(value: string);
|
|
220
|
+
static fromObject(data: {
|
|
221
|
+
search?: string;
|
|
222
|
+
}): GetPermissionRequest;
|
|
223
|
+
toObject(): {
|
|
224
|
+
search?: string | undefined;
|
|
225
|
+
};
|
|
226
|
+
serialize(): Uint8Array;
|
|
227
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
228
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetPermissionRequest;
|
|
229
|
+
serializeBinary(): Uint8Array;
|
|
230
|
+
static deserializeBinary(bytes: Uint8Array): GetPermissionRequest;
|
|
231
|
+
}
|
|
213
232
|
export class CreatePermissionRequest extends pb_1.Message {
|
|
214
233
|
#private;
|
|
215
234
|
constructor(data?: any[] | {
|
|
@@ -1608,8 +1627,8 @@ export declare namespace com.pkg.admin {
|
|
|
1608
1627
|
path: string;
|
|
1609
1628
|
requestStream: boolean;
|
|
1610
1629
|
responseStream: boolean;
|
|
1611
|
-
requestSerialize: (message:
|
|
1612
|
-
requestDeserialize: (bytes: Buffer) =>
|
|
1630
|
+
requestSerialize: (message: GetPermissionRequest) => Buffer;
|
|
1631
|
+
requestDeserialize: (bytes: Buffer) => GetPermissionRequest;
|
|
1613
1632
|
responseSerialize: (message: PermissionsResponse) => Buffer;
|
|
1614
1633
|
responseDeserialize: (bytes: Buffer) => PermissionsResponse;
|
|
1615
1634
|
};
|
|
@@ -1685,7 +1704,7 @@ export declare namespace com.pkg.admin {
|
|
|
1685
1704
|
abstract DeleteRole(call: grpc_1.ServerUnaryCall<IdRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
1686
1705
|
abstract CreatePermission(call: grpc_1.ServerUnaryCall<CreatePermissionRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
1687
1706
|
abstract UpdatePermission(call: grpc_1.ServerUnaryCall<UpdatePermissionRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
1688
|
-
abstract GetPermissions(call: grpc_1.ServerUnaryCall<
|
|
1707
|
+
abstract GetPermissions(call: grpc_1.ServerUnaryCall<GetPermissionRequest, PermissionsResponse>, callback: grpc_1.sendUnaryData<PermissionsResponse>): void;
|
|
1689
1708
|
abstract AdminsByRoleId(call: grpc_1.ServerUnaryCall<IdRequest, AdminsResponse>, callback: grpc_1.sendUnaryData<AdminsResponse>): void;
|
|
1690
1709
|
abstract DeactivateAdmin(call: grpc_1.ServerUnaryCall<IdRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
1691
1710
|
abstract ActivateAdmin(call: grpc_1.ServerUnaryCall<IdRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
@@ -1712,7 +1731,7 @@ export declare namespace com.pkg.admin {
|
|
|
1712
1731
|
DeleteRole: GrpcPromiseServiceInterface<IdRequest, DefaultResponse>;
|
|
1713
1732
|
CreatePermission: GrpcPromiseServiceInterface<CreatePermissionRequest, DefaultResponse>;
|
|
1714
1733
|
UpdatePermission: GrpcPromiseServiceInterface<UpdatePermissionRequest, DefaultResponse>;
|
|
1715
|
-
GetPermissions: GrpcPromiseServiceInterface<
|
|
1734
|
+
GetPermissions: GrpcPromiseServiceInterface<GetPermissionRequest, PermissionsResponse>;
|
|
1716
1735
|
AdminsByRoleId: GrpcPromiseServiceInterface<IdRequest, AdminsResponse>;
|
|
1717
1736
|
DeactivateAdmin: GrpcPromiseServiceInterface<IdRequest, DefaultResponse>;
|
|
1718
1737
|
ActivateAdmin: GrpcPromiseServiceInterface<IdRequest, DefaultResponse>;
|
|
@@ -1225,6 +1225,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1225
1225
|
page?: number;
|
|
1226
1226
|
limit?: number;
|
|
1227
1227
|
search?: string;
|
|
1228
|
+
from?: string;
|
|
1229
|
+
to?: string;
|
|
1228
1230
|
});
|
|
1229
1231
|
get terminalTypeId(): string;
|
|
1230
1232
|
set terminalTypeId(value: string);
|
|
@@ -1236,12 +1238,18 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1236
1238
|
set limit(value: number);
|
|
1237
1239
|
get search(): string;
|
|
1238
1240
|
set search(value: string);
|
|
1241
|
+
get from(): string;
|
|
1242
|
+
set from(value: string);
|
|
1243
|
+
get to(): string;
|
|
1244
|
+
set to(value: string);
|
|
1239
1245
|
static fromObject(data: {
|
|
1240
1246
|
terminalTypeId?: string;
|
|
1241
1247
|
location?: string;
|
|
1242
1248
|
page?: number;
|
|
1243
1249
|
limit?: number;
|
|
1244
1250
|
search?: string;
|
|
1251
|
+
from?: string;
|
|
1252
|
+
to?: string;
|
|
1245
1253
|
}): GetAvailableTerminalsRequest;
|
|
1246
1254
|
toObject(): {
|
|
1247
1255
|
terminalTypeId?: string | undefined;
|
|
@@ -1249,6 +1257,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1249
1257
|
page?: number | undefined;
|
|
1250
1258
|
limit?: number | undefined;
|
|
1251
1259
|
search?: string | undefined;
|
|
1260
|
+
from?: string | undefined;
|
|
1261
|
+
to?: string | undefined;
|
|
1252
1262
|
};
|
|
1253
1263
|
serialize(): Uint8Array;
|
|
1254
1264
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -4885,9 +4895,27 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
4885
4895
|
}
|
|
4886
4896
|
export class GetDashboardStatisticsRequest extends pb_1.Message {
|
|
4887
4897
|
#private;
|
|
4888
|
-
constructor(data?: any[] | {
|
|
4889
|
-
|
|
4890
|
-
|
|
4898
|
+
constructor(data?: any[] | {
|
|
4899
|
+
from?: string;
|
|
4900
|
+
to?: string;
|
|
4901
|
+
duration?: string;
|
|
4902
|
+
});
|
|
4903
|
+
get from(): string;
|
|
4904
|
+
set from(value: string);
|
|
4905
|
+
get to(): string;
|
|
4906
|
+
set to(value: string);
|
|
4907
|
+
get duration(): string;
|
|
4908
|
+
set duration(value: string);
|
|
4909
|
+
static fromObject(data: {
|
|
4910
|
+
from?: string;
|
|
4911
|
+
to?: string;
|
|
4912
|
+
duration?: string;
|
|
4913
|
+
}): GetDashboardStatisticsRequest;
|
|
4914
|
+
toObject(): {
|
|
4915
|
+
from?: string | undefined;
|
|
4916
|
+
to?: string | undefined;
|
|
4917
|
+
duration?: string | undefined;
|
|
4918
|
+
};
|
|
4891
4919
|
serialize(): Uint8Array;
|
|
4892
4920
|
serialize(w: pb_1.BinaryWriter): void;
|
|
4893
4921
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetDashboardStatisticsRequest;
|