@sniipwebmaster/payroll-service-client-grpcweb-ts 25.10.384 → 25.10.396
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/dependancies/ServiceServiceClientPb.ts +43 -43
- package/dependancies/service_pb.d.ts +71 -70
- package/dependancies/service_pb.js +906 -954
- package/package.json +1 -1
|
@@ -599,49 +599,6 @@ export class PayrollServiceClient {
|
|
|
599
599
|
this.methodDescriptorCreateBusiness);
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
-
methodDescriptorListBusinesses = new grpcWeb.MethodDescriptor(
|
|
603
|
-
'/payrollserviceapi.PayrollService/ListBusinesses',
|
|
604
|
-
grpcWeb.MethodType.UNARY,
|
|
605
|
-
service_pb.ListBusinessesRequest,
|
|
606
|
-
service_pb.ListBusinessesResponse,
|
|
607
|
-
(request: service_pb.ListBusinessesRequest) => {
|
|
608
|
-
return request.serializeBinary();
|
|
609
|
-
},
|
|
610
|
-
service_pb.ListBusinessesResponse.deserializeBinary
|
|
611
|
-
);
|
|
612
|
-
|
|
613
|
-
listBusinesses(
|
|
614
|
-
request: service_pb.ListBusinessesRequest,
|
|
615
|
-
metadata?: grpcWeb.Metadata | null): Promise<service_pb.ListBusinessesResponse>;
|
|
616
|
-
|
|
617
|
-
listBusinesses(
|
|
618
|
-
request: service_pb.ListBusinessesRequest,
|
|
619
|
-
metadata: grpcWeb.Metadata | null,
|
|
620
|
-
callback: (err: grpcWeb.RpcError,
|
|
621
|
-
response: service_pb.ListBusinessesResponse) => void): grpcWeb.ClientReadableStream<service_pb.ListBusinessesResponse>;
|
|
622
|
-
|
|
623
|
-
listBusinesses(
|
|
624
|
-
request: service_pb.ListBusinessesRequest,
|
|
625
|
-
metadata?: grpcWeb.Metadata | null,
|
|
626
|
-
callback?: (err: grpcWeb.RpcError,
|
|
627
|
-
response: service_pb.ListBusinessesResponse) => void) {
|
|
628
|
-
if (callback !== undefined) {
|
|
629
|
-
return this.client_.rpcCall(
|
|
630
|
-
this.hostname_ +
|
|
631
|
-
'/payrollserviceapi.PayrollService/ListBusinesses',
|
|
632
|
-
request,
|
|
633
|
-
metadata || {},
|
|
634
|
-
this.methodDescriptorListBusinesses,
|
|
635
|
-
callback);
|
|
636
|
-
}
|
|
637
|
-
return this.client_.unaryCall(
|
|
638
|
-
this.hostname_ +
|
|
639
|
-
'/payrollserviceapi.PayrollService/ListBusinesses',
|
|
640
|
-
request,
|
|
641
|
-
metadata || {},
|
|
642
|
-
this.methodDescriptorListBusinesses);
|
|
643
|
-
}
|
|
644
|
-
|
|
645
602
|
methodDescriptorGetUserBusinessSummary = new grpcWeb.MethodDescriptor(
|
|
646
603
|
'/payrollserviceapi.PayrollService/GetUserBusinessSummary',
|
|
647
604
|
grpcWeb.MethodType.UNARY,
|
|
@@ -814,6 +771,49 @@ export class PayrollServiceClient {
|
|
|
814
771
|
this.methodDescriptorDeleteBusiness);
|
|
815
772
|
}
|
|
816
773
|
|
|
774
|
+
methodDescriptorArchiveBusiness = new grpcWeb.MethodDescriptor(
|
|
775
|
+
'/payrollserviceapi.PayrollService/ArchiveBusiness',
|
|
776
|
+
grpcWeb.MethodType.UNARY,
|
|
777
|
+
service_pb.ArchiveBusinessRequest,
|
|
778
|
+
service_pb.ArchiveBusinessResponse,
|
|
779
|
+
(request: service_pb.ArchiveBusinessRequest) => {
|
|
780
|
+
return request.serializeBinary();
|
|
781
|
+
},
|
|
782
|
+
service_pb.ArchiveBusinessResponse.deserializeBinary
|
|
783
|
+
);
|
|
784
|
+
|
|
785
|
+
archiveBusiness(
|
|
786
|
+
request: service_pb.ArchiveBusinessRequest,
|
|
787
|
+
metadata?: grpcWeb.Metadata | null): Promise<service_pb.ArchiveBusinessResponse>;
|
|
788
|
+
|
|
789
|
+
archiveBusiness(
|
|
790
|
+
request: service_pb.ArchiveBusinessRequest,
|
|
791
|
+
metadata: grpcWeb.Metadata | null,
|
|
792
|
+
callback: (err: grpcWeb.RpcError,
|
|
793
|
+
response: service_pb.ArchiveBusinessResponse) => void): grpcWeb.ClientReadableStream<service_pb.ArchiveBusinessResponse>;
|
|
794
|
+
|
|
795
|
+
archiveBusiness(
|
|
796
|
+
request: service_pb.ArchiveBusinessRequest,
|
|
797
|
+
metadata?: grpcWeb.Metadata | null,
|
|
798
|
+
callback?: (err: grpcWeb.RpcError,
|
|
799
|
+
response: service_pb.ArchiveBusinessResponse) => void) {
|
|
800
|
+
if (callback !== undefined) {
|
|
801
|
+
return this.client_.rpcCall(
|
|
802
|
+
this.hostname_ +
|
|
803
|
+
'/payrollserviceapi.PayrollService/ArchiveBusiness',
|
|
804
|
+
request,
|
|
805
|
+
metadata || {},
|
|
806
|
+
this.methodDescriptorArchiveBusiness,
|
|
807
|
+
callback);
|
|
808
|
+
}
|
|
809
|
+
return this.client_.unaryCall(
|
|
810
|
+
this.hostname_ +
|
|
811
|
+
'/payrollserviceapi.PayrollService/ArchiveBusiness',
|
|
812
|
+
request,
|
|
813
|
+
metadata || {},
|
|
814
|
+
this.methodDescriptorArchiveBusiness);
|
|
815
|
+
}
|
|
816
|
+
|
|
817
817
|
methodDescriptorCreateEmployee = new grpcWeb.MethodDescriptor(
|
|
818
818
|
'/payrollserviceapi.PayrollService/CreateEmployee',
|
|
819
819
|
grpcWeb.MethodType.UNARY,
|
|
@@ -414,8 +414,8 @@ export class BusinessCountsDetails extends jspb.Message {
|
|
|
414
414
|
getName(): string;
|
|
415
415
|
setName(value: string): BusinessCountsDetails;
|
|
416
416
|
|
|
417
|
-
getStatus():
|
|
418
|
-
setStatus(value:
|
|
417
|
+
getStatus(): BusinessStatus;
|
|
418
|
+
setStatus(value: BusinessStatus): BusinessCountsDetails;
|
|
419
419
|
|
|
420
420
|
getTotalemployees(): number;
|
|
421
421
|
setTotalemployees(value: number): BusinessCountsDetails;
|
|
@@ -438,7 +438,7 @@ export namespace BusinessCountsDetails {
|
|
|
438
438
|
export type AsObject = {
|
|
439
439
|
businessId: number,
|
|
440
440
|
name: string,
|
|
441
|
-
status:
|
|
441
|
+
status: BusinessStatus,
|
|
442
442
|
totalemployees: number,
|
|
443
443
|
totalunpaidbatches: number,
|
|
444
444
|
totalpaidbatches: number,
|
|
@@ -1077,70 +1077,6 @@ export namespace CreateBusinessResponse {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
1079
|
|
|
1080
|
-
export class ListBusinessesRequest extends jspb.Message {
|
|
1081
|
-
getPage(): number;
|
|
1082
|
-
setPage(value: number): ListBusinessesRequest;
|
|
1083
|
-
|
|
1084
|
-
getLimit(): number;
|
|
1085
|
-
setLimit(value: number): ListBusinessesRequest;
|
|
1086
|
-
|
|
1087
|
-
getClientUserId(): number;
|
|
1088
|
-
setClientUserId(value: number): ListBusinessesRequest;
|
|
1089
|
-
|
|
1090
|
-
serializeBinary(): Uint8Array;
|
|
1091
|
-
toObject(includeInstance?: boolean): ListBusinessesRequest.AsObject;
|
|
1092
|
-
static toObject(includeInstance: boolean, msg: ListBusinessesRequest): ListBusinessesRequest.AsObject;
|
|
1093
|
-
static serializeBinaryToWriter(message: ListBusinessesRequest, writer: jspb.BinaryWriter): void;
|
|
1094
|
-
static deserializeBinary(bytes: Uint8Array): ListBusinessesRequest;
|
|
1095
|
-
static deserializeBinaryFromReader(message: ListBusinessesRequest, reader: jspb.BinaryReader): ListBusinessesRequest;
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
export namespace ListBusinessesRequest {
|
|
1099
|
-
export type AsObject = {
|
|
1100
|
-
page: number,
|
|
1101
|
-
limit: number,
|
|
1102
|
-
clientUserId: number,
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
export class ListBusinessesResponse extends jspb.Message {
|
|
1107
|
-
getResponsecode(): ResponseCode | undefined;
|
|
1108
|
-
setResponsecode(value?: ResponseCode): ListBusinessesResponse;
|
|
1109
|
-
hasResponsecode(): boolean;
|
|
1110
|
-
clearResponsecode(): ListBusinessesResponse;
|
|
1111
|
-
|
|
1112
|
-
getBusinessesList(): Array<BusinessSummary>;
|
|
1113
|
-
setBusinessesList(value: Array<BusinessSummary>): ListBusinessesResponse;
|
|
1114
|
-
clearBusinessesList(): ListBusinessesResponse;
|
|
1115
|
-
addBusinesses(value?: BusinessSummary, index?: number): BusinessSummary;
|
|
1116
|
-
|
|
1117
|
-
getTotalCount(): number;
|
|
1118
|
-
setTotalCount(value: number): ListBusinessesResponse;
|
|
1119
|
-
|
|
1120
|
-
getPage(): number;
|
|
1121
|
-
setPage(value: number): ListBusinessesResponse;
|
|
1122
|
-
|
|
1123
|
-
getLimit(): number;
|
|
1124
|
-
setLimit(value: number): ListBusinessesResponse;
|
|
1125
|
-
|
|
1126
|
-
serializeBinary(): Uint8Array;
|
|
1127
|
-
toObject(includeInstance?: boolean): ListBusinessesResponse.AsObject;
|
|
1128
|
-
static toObject(includeInstance: boolean, msg: ListBusinessesResponse): ListBusinessesResponse.AsObject;
|
|
1129
|
-
static serializeBinaryToWriter(message: ListBusinessesResponse, writer: jspb.BinaryWriter): void;
|
|
1130
|
-
static deserializeBinary(bytes: Uint8Array): ListBusinessesResponse;
|
|
1131
|
-
static deserializeBinaryFromReader(message: ListBusinessesResponse, reader: jspb.BinaryReader): ListBusinessesResponse;
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
export namespace ListBusinessesResponse {
|
|
1135
|
-
export type AsObject = {
|
|
1136
|
-
responsecode?: ResponseCode.AsObject,
|
|
1137
|
-
businessesList: Array<BusinessSummary.AsObject>,
|
|
1138
|
-
totalCount: number,
|
|
1139
|
-
page: number,
|
|
1140
|
-
limit: number,
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
1080
|
export class BusinessSummary extends jspb.Message {
|
|
1145
1081
|
getBusinessId(): number;
|
|
1146
1082
|
setBusinessId(value: number): BusinessSummary;
|
|
@@ -1381,6 +1317,64 @@ export namespace DeleteBusinessResponse {
|
|
|
1381
1317
|
}
|
|
1382
1318
|
}
|
|
1383
1319
|
|
|
1320
|
+
export class ArchiveBusinessRequest extends jspb.Message {
|
|
1321
|
+
getBusinessId(): number;
|
|
1322
|
+
setBusinessId(value: number): ArchiveBusinessRequest;
|
|
1323
|
+
|
|
1324
|
+
getClientUserId(): number;
|
|
1325
|
+
setClientUserId(value: number): ArchiveBusinessRequest;
|
|
1326
|
+
|
|
1327
|
+
getArchived(): boolean;
|
|
1328
|
+
setArchived(value: boolean): ArchiveBusinessRequest;
|
|
1329
|
+
|
|
1330
|
+
serializeBinary(): Uint8Array;
|
|
1331
|
+
toObject(includeInstance?: boolean): ArchiveBusinessRequest.AsObject;
|
|
1332
|
+
static toObject(includeInstance: boolean, msg: ArchiveBusinessRequest): ArchiveBusinessRequest.AsObject;
|
|
1333
|
+
static serializeBinaryToWriter(message: ArchiveBusinessRequest, writer: jspb.BinaryWriter): void;
|
|
1334
|
+
static deserializeBinary(bytes: Uint8Array): ArchiveBusinessRequest;
|
|
1335
|
+
static deserializeBinaryFromReader(message: ArchiveBusinessRequest, reader: jspb.BinaryReader): ArchiveBusinessRequest;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
export namespace ArchiveBusinessRequest {
|
|
1339
|
+
export type AsObject = {
|
|
1340
|
+
businessId: number,
|
|
1341
|
+
clientUserId: number,
|
|
1342
|
+
archived: boolean,
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
export class ArchiveBusinessResponse extends jspb.Message {
|
|
1347
|
+
getResponsecode(): ResponseCode | undefined;
|
|
1348
|
+
setResponsecode(value?: ResponseCode): ArchiveBusinessResponse;
|
|
1349
|
+
hasResponsecode(): boolean;
|
|
1350
|
+
clearResponsecode(): ArchiveBusinessResponse;
|
|
1351
|
+
|
|
1352
|
+
getBusinessId(): number;
|
|
1353
|
+
setBusinessId(value: number): ArchiveBusinessResponse;
|
|
1354
|
+
|
|
1355
|
+
getArchived(): boolean;
|
|
1356
|
+
setArchived(value: boolean): ArchiveBusinessResponse;
|
|
1357
|
+
|
|
1358
|
+
getUpdatedAt(): string;
|
|
1359
|
+
setUpdatedAt(value: string): ArchiveBusinessResponse;
|
|
1360
|
+
|
|
1361
|
+
serializeBinary(): Uint8Array;
|
|
1362
|
+
toObject(includeInstance?: boolean): ArchiveBusinessResponse.AsObject;
|
|
1363
|
+
static toObject(includeInstance: boolean, msg: ArchiveBusinessResponse): ArchiveBusinessResponse.AsObject;
|
|
1364
|
+
static serializeBinaryToWriter(message: ArchiveBusinessResponse, writer: jspb.BinaryWriter): void;
|
|
1365
|
+
static deserializeBinary(bytes: Uint8Array): ArchiveBusinessResponse;
|
|
1366
|
+
static deserializeBinaryFromReader(message: ArchiveBusinessResponse, reader: jspb.BinaryReader): ArchiveBusinessResponse;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
export namespace ArchiveBusinessResponse {
|
|
1370
|
+
export type AsObject = {
|
|
1371
|
+
responsecode?: ResponseCode.AsObject,
|
|
1372
|
+
businessId: number,
|
|
1373
|
+
archived: boolean,
|
|
1374
|
+
updatedAt: string,
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1384
1378
|
export class CreateEmployeeRequest extends jspb.Message {
|
|
1385
1379
|
getBusinessId(): number;
|
|
1386
1380
|
setBusinessId(value: number): CreateEmployeeRequest;
|
|
@@ -2005,8 +1999,8 @@ export class ImportDetail extends jspb.Message {
|
|
|
2005
1999
|
getRow(): number;
|
|
2006
2000
|
setRow(value: number): ImportDetail;
|
|
2007
2001
|
|
|
2008
|
-
|
|
2009
|
-
|
|
2002
|
+
getEmployeeName(): string;
|
|
2003
|
+
setEmployeeName(value: string): ImportDetail;
|
|
2010
2004
|
|
|
2011
2005
|
getStatus(): string;
|
|
2012
2006
|
setStatus(value: string): ImportDetail;
|
|
@@ -2028,7 +2022,7 @@ export class ImportDetail extends jspb.Message {
|
|
|
2028
2022
|
export namespace ImportDetail {
|
|
2029
2023
|
export type AsObject = {
|
|
2030
2024
|
row: number,
|
|
2031
|
-
|
|
2025
|
+
employeeName: string,
|
|
2032
2026
|
status: string,
|
|
2033
2027
|
employeeId: number,
|
|
2034
2028
|
errorMessage: string,
|
|
@@ -2363,6 +2357,13 @@ export namespace GetAgentUserRelationshipsResponse {
|
|
|
2363
2357
|
}
|
|
2364
2358
|
}
|
|
2365
2359
|
|
|
2360
|
+
export enum BusinessStatus {
|
|
2361
|
+
UNKNOWN = 0,
|
|
2362
|
+
IN_REVIEW = 1,
|
|
2363
|
+
ACTIVE = 2,
|
|
2364
|
+
DECLINED = 3,
|
|
2365
|
+
NOT_ACTIVE = 4,
|
|
2366
|
+
}
|
|
2366
2367
|
export enum BankAccountStatus {
|
|
2367
2368
|
BANK_ACCOUNT_STATUS_UNKNOWN = 0,
|
|
2368
2369
|
BANK_ACCOUNT_STATUS_MATCHED = 1,
|