@technova-tech/olive-proto-lib 3.2.1 → 3.2.3
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/business/business.js +1261 -419
- package/package.json +1 -1
- package/types/business/business.d.ts +315 -0
package/package.json
CHANGED
|
@@ -7241,6 +7241,121 @@ export declare namespace com.pkg.business {
|
|
|
7241
7241
|
serializeBinary(): Uint8Array;
|
|
7242
7242
|
static deserializeBinary(bytes: Uint8Array): MerchantLookupRequest;
|
|
7243
7243
|
}
|
|
7244
|
+
export class Role extends pb_1.Message {
|
|
7245
|
+
#private;
|
|
7246
|
+
constructor(data?: any[] | {
|
|
7247
|
+
id?: string;
|
|
7248
|
+
name?: string;
|
|
7249
|
+
});
|
|
7250
|
+
get id(): string;
|
|
7251
|
+
set id(value: string);
|
|
7252
|
+
get name(): string;
|
|
7253
|
+
set name(value: string);
|
|
7254
|
+
static fromObject(data: {
|
|
7255
|
+
id?: string;
|
|
7256
|
+
name?: string;
|
|
7257
|
+
}): Role;
|
|
7258
|
+
toObject(): {
|
|
7259
|
+
id?: string | undefined;
|
|
7260
|
+
name?: string | undefined;
|
|
7261
|
+
};
|
|
7262
|
+
serialize(): Uint8Array;
|
|
7263
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
7264
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Role;
|
|
7265
|
+
serializeBinary(): Uint8Array;
|
|
7266
|
+
static deserializeBinary(bytes: Uint8Array): Role;
|
|
7267
|
+
}
|
|
7268
|
+
export class Region extends pb_1.Message {
|
|
7269
|
+
#private;
|
|
7270
|
+
constructor(data?: any[] | {
|
|
7271
|
+
id?: string;
|
|
7272
|
+
name?: string;
|
|
7273
|
+
});
|
|
7274
|
+
get id(): string;
|
|
7275
|
+
set id(value: string);
|
|
7276
|
+
get name(): string;
|
|
7277
|
+
set name(value: string);
|
|
7278
|
+
static fromObject(data: {
|
|
7279
|
+
id?: string;
|
|
7280
|
+
name?: string;
|
|
7281
|
+
}): Region;
|
|
7282
|
+
toObject(): {
|
|
7283
|
+
id?: string | undefined;
|
|
7284
|
+
name?: string | undefined;
|
|
7285
|
+
};
|
|
7286
|
+
serialize(): Uint8Array;
|
|
7287
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
7288
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Region;
|
|
7289
|
+
serializeBinary(): Uint8Array;
|
|
7290
|
+
static deserializeBinary(bytes: Uint8Array): Region;
|
|
7291
|
+
}
|
|
7292
|
+
export class StaffAttributionData extends pb_1.Message {
|
|
7293
|
+
#private;
|
|
7294
|
+
constructor(data?: any[] | {
|
|
7295
|
+
id?: string;
|
|
7296
|
+
firstName?: string;
|
|
7297
|
+
lastName?: string;
|
|
7298
|
+
email?: string;
|
|
7299
|
+
phone?: string;
|
|
7300
|
+
active?: boolean;
|
|
7301
|
+
role?: Role;
|
|
7302
|
+
regionId?: string;
|
|
7303
|
+
region?: Region;
|
|
7304
|
+
});
|
|
7305
|
+
get id(): string;
|
|
7306
|
+
set id(value: string);
|
|
7307
|
+
get firstName(): string;
|
|
7308
|
+
set firstName(value: string);
|
|
7309
|
+
get lastName(): string;
|
|
7310
|
+
set lastName(value: string);
|
|
7311
|
+
get email(): string;
|
|
7312
|
+
set email(value: string);
|
|
7313
|
+
get phone(): string;
|
|
7314
|
+
set phone(value: string);
|
|
7315
|
+
get active(): boolean;
|
|
7316
|
+
set active(value: boolean);
|
|
7317
|
+
get role(): Role;
|
|
7318
|
+
set role(value: Role);
|
|
7319
|
+
get hasRole(): boolean;
|
|
7320
|
+
get regionId(): string;
|
|
7321
|
+
set regionId(value: string);
|
|
7322
|
+
get region(): Region;
|
|
7323
|
+
set region(value: Region);
|
|
7324
|
+
get hasRegion(): boolean;
|
|
7325
|
+
static fromObject(data: {
|
|
7326
|
+
id?: string;
|
|
7327
|
+
firstName?: string;
|
|
7328
|
+
lastName?: string;
|
|
7329
|
+
email?: string;
|
|
7330
|
+
phone?: string;
|
|
7331
|
+
active?: boolean;
|
|
7332
|
+
role?: ReturnType<typeof Role.prototype.toObject>;
|
|
7333
|
+
regionId?: string;
|
|
7334
|
+
region?: ReturnType<typeof Region.prototype.toObject>;
|
|
7335
|
+
}): StaffAttributionData;
|
|
7336
|
+
toObject(): {
|
|
7337
|
+
id?: string | undefined;
|
|
7338
|
+
firstName?: string | undefined;
|
|
7339
|
+
lastName?: string | undefined;
|
|
7340
|
+
email?: string | undefined;
|
|
7341
|
+
phone?: string | undefined;
|
|
7342
|
+
active?: boolean | undefined;
|
|
7343
|
+
role?: {
|
|
7344
|
+
id?: string | undefined;
|
|
7345
|
+
name?: string | undefined;
|
|
7346
|
+
} | undefined;
|
|
7347
|
+
regionId?: string | undefined;
|
|
7348
|
+
region?: {
|
|
7349
|
+
id?: string | undefined;
|
|
7350
|
+
name?: string | undefined;
|
|
7351
|
+
} | undefined;
|
|
7352
|
+
};
|
|
7353
|
+
serialize(): Uint8Array;
|
|
7354
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
7355
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StaffAttributionData;
|
|
7356
|
+
serializeBinary(): Uint8Array;
|
|
7357
|
+
static deserializeBinary(bytes: Uint8Array): StaffAttributionData;
|
|
7358
|
+
}
|
|
7244
7359
|
export class MerchantData extends pb_1.Message {
|
|
7245
7360
|
#private;
|
|
7246
7361
|
constructor(data?: any[] | {
|
|
@@ -7257,6 +7372,11 @@ export declare namespace com.pkg.business {
|
|
|
7257
7372
|
hasPin?: boolean;
|
|
7258
7373
|
createdAt?: string;
|
|
7259
7374
|
updatedAt?: string;
|
|
7375
|
+
staffAttributedId?: string;
|
|
7376
|
+
staffAttributedLastUpdateDatetime?: string;
|
|
7377
|
+
staffAttributedStatus?: string;
|
|
7378
|
+
staffAttributed?: StaffAttributionData;
|
|
7379
|
+
regionId?: string;
|
|
7260
7380
|
});
|
|
7261
7381
|
get id(): string;
|
|
7262
7382
|
set id(value: string);
|
|
@@ -7284,6 +7404,17 @@ export declare namespace com.pkg.business {
|
|
|
7284
7404
|
set createdAt(value: string);
|
|
7285
7405
|
get updatedAt(): string;
|
|
7286
7406
|
set updatedAt(value: string);
|
|
7407
|
+
get staffAttributedId(): string;
|
|
7408
|
+
set staffAttributedId(value: string);
|
|
7409
|
+
get staffAttributedLastUpdateDatetime(): string;
|
|
7410
|
+
set staffAttributedLastUpdateDatetime(value: string);
|
|
7411
|
+
get staffAttributedStatus(): string;
|
|
7412
|
+
set staffAttributedStatus(value: string);
|
|
7413
|
+
get staffAttributed(): StaffAttributionData;
|
|
7414
|
+
set staffAttributed(value: StaffAttributionData);
|
|
7415
|
+
get hasStaffAttributed(): boolean;
|
|
7416
|
+
get regionId(): string;
|
|
7417
|
+
set regionId(value: string);
|
|
7287
7418
|
static fromObject(data: {
|
|
7288
7419
|
id?: string;
|
|
7289
7420
|
email?: string;
|
|
@@ -7298,6 +7429,11 @@ export declare namespace com.pkg.business {
|
|
|
7298
7429
|
hasPin?: boolean;
|
|
7299
7430
|
createdAt?: string;
|
|
7300
7431
|
updatedAt?: string;
|
|
7432
|
+
staffAttributedId?: string;
|
|
7433
|
+
staffAttributedLastUpdateDatetime?: string;
|
|
7434
|
+
staffAttributedStatus?: string;
|
|
7435
|
+
staffAttributed?: ReturnType<typeof StaffAttributionData.prototype.toObject>;
|
|
7436
|
+
regionId?: string;
|
|
7301
7437
|
}): MerchantData;
|
|
7302
7438
|
toObject(): {
|
|
7303
7439
|
id?: string | undefined;
|
|
@@ -7313,6 +7449,27 @@ export declare namespace com.pkg.business {
|
|
|
7313
7449
|
hasPin?: boolean | undefined;
|
|
7314
7450
|
createdAt?: string | undefined;
|
|
7315
7451
|
updatedAt?: string | undefined;
|
|
7452
|
+
staffAttributedId?: string | undefined;
|
|
7453
|
+
staffAttributedLastUpdateDatetime?: string | undefined;
|
|
7454
|
+
staffAttributedStatus?: string | undefined;
|
|
7455
|
+
staffAttributed?: {
|
|
7456
|
+
id?: string | undefined;
|
|
7457
|
+
firstName?: string | undefined;
|
|
7458
|
+
lastName?: string | undefined;
|
|
7459
|
+
email?: string | undefined;
|
|
7460
|
+
phone?: string | undefined;
|
|
7461
|
+
active?: boolean | undefined;
|
|
7462
|
+
role?: {
|
|
7463
|
+
id?: string | undefined;
|
|
7464
|
+
name?: string | undefined;
|
|
7465
|
+
} | undefined;
|
|
7466
|
+
regionId?: string | undefined;
|
|
7467
|
+
region?: {
|
|
7468
|
+
id?: string | undefined;
|
|
7469
|
+
name?: string | undefined;
|
|
7470
|
+
} | undefined;
|
|
7471
|
+
} | undefined;
|
|
7472
|
+
regionId?: string | undefined;
|
|
7316
7473
|
};
|
|
7317
7474
|
serialize(): Uint8Array;
|
|
7318
7475
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -7368,6 +7525,27 @@ export declare namespace com.pkg.business {
|
|
|
7368
7525
|
hasPin?: boolean | undefined;
|
|
7369
7526
|
createdAt?: string | undefined;
|
|
7370
7527
|
updatedAt?: string | undefined;
|
|
7528
|
+
staffAttributedId?: string | undefined;
|
|
7529
|
+
staffAttributedLastUpdateDatetime?: string | undefined;
|
|
7530
|
+
staffAttributedStatus?: string | undefined;
|
|
7531
|
+
staffAttributed?: {
|
|
7532
|
+
id?: string | undefined;
|
|
7533
|
+
firstName?: string | undefined;
|
|
7534
|
+
lastName?: string | undefined;
|
|
7535
|
+
email?: string | undefined;
|
|
7536
|
+
phone?: string | undefined;
|
|
7537
|
+
active?: boolean | undefined;
|
|
7538
|
+
role?: {
|
|
7539
|
+
id?: string | undefined;
|
|
7540
|
+
name?: string | undefined;
|
|
7541
|
+
} | undefined;
|
|
7542
|
+
regionId?: string | undefined;
|
|
7543
|
+
region?: {
|
|
7544
|
+
id?: string | undefined;
|
|
7545
|
+
name?: string | undefined;
|
|
7546
|
+
} | undefined;
|
|
7547
|
+
} | undefined;
|
|
7548
|
+
regionId?: string | undefined;
|
|
7371
7549
|
} | undefined;
|
|
7372
7550
|
error?: string | undefined;
|
|
7373
7551
|
message?: string | undefined;
|
|
@@ -7434,6 +7612,27 @@ export declare namespace com.pkg.business {
|
|
|
7434
7612
|
hasPin?: boolean | undefined;
|
|
7435
7613
|
createdAt?: string | undefined;
|
|
7436
7614
|
updatedAt?: string | undefined;
|
|
7615
|
+
staffAttributedId?: string | undefined;
|
|
7616
|
+
staffAttributedLastUpdateDatetime?: string | undefined;
|
|
7617
|
+
staffAttributedStatus?: string | undefined;
|
|
7618
|
+
staffAttributed?: {
|
|
7619
|
+
id?: string | undefined;
|
|
7620
|
+
firstName?: string | undefined;
|
|
7621
|
+
lastName?: string | undefined;
|
|
7622
|
+
email?: string | undefined;
|
|
7623
|
+
phone?: string | undefined;
|
|
7624
|
+
active?: boolean | undefined;
|
|
7625
|
+
role?: {
|
|
7626
|
+
id?: string | undefined;
|
|
7627
|
+
name?: string | undefined;
|
|
7628
|
+
} | undefined;
|
|
7629
|
+
regionId?: string | undefined;
|
|
7630
|
+
region?: {
|
|
7631
|
+
id?: string | undefined;
|
|
7632
|
+
name?: string | undefined;
|
|
7633
|
+
} | undefined;
|
|
7634
|
+
} | undefined;
|
|
7635
|
+
regionId?: string | undefined;
|
|
7437
7636
|
}[] | undefined;
|
|
7438
7637
|
error?: string | undefined;
|
|
7439
7638
|
message?: string | undefined;
|
|
@@ -7526,6 +7725,100 @@ export declare namespace com.pkg.business {
|
|
|
7526
7725
|
serializeBinary(): Uint8Array;
|
|
7527
7726
|
static deserializeBinary(bytes: Uint8Array): DefaultResponse;
|
|
7528
7727
|
}
|
|
7728
|
+
export class GetByIdRequest extends pb_1.Message {
|
|
7729
|
+
#private;
|
|
7730
|
+
constructor(data?: any[] | {
|
|
7731
|
+
id?: string;
|
|
7732
|
+
});
|
|
7733
|
+
get id(): string;
|
|
7734
|
+
set id(value: string);
|
|
7735
|
+
static fromObject(data: {
|
|
7736
|
+
id?: string;
|
|
7737
|
+
}): GetByIdRequest;
|
|
7738
|
+
toObject(): {
|
|
7739
|
+
id?: string | undefined;
|
|
7740
|
+
};
|
|
7741
|
+
serialize(): Uint8Array;
|
|
7742
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
7743
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetByIdRequest;
|
|
7744
|
+
serializeBinary(): Uint8Array;
|
|
7745
|
+
static deserializeBinary(bytes: Uint8Array): GetByIdRequest;
|
|
7746
|
+
}
|
|
7747
|
+
export class OrphanMerchant extends pb_1.Message {
|
|
7748
|
+
#private;
|
|
7749
|
+
constructor(data?: any[] | {
|
|
7750
|
+
total?: number;
|
|
7751
|
+
merchantIds?: string[];
|
|
7752
|
+
});
|
|
7753
|
+
get total(): number;
|
|
7754
|
+
set total(value: number);
|
|
7755
|
+
get merchantIds(): string[];
|
|
7756
|
+
set merchantIds(value: string[]);
|
|
7757
|
+
static fromObject(data: {
|
|
7758
|
+
total?: number;
|
|
7759
|
+
merchantIds?: string[];
|
|
7760
|
+
}): OrphanMerchant;
|
|
7761
|
+
toObject(): {
|
|
7762
|
+
total?: number | undefined;
|
|
7763
|
+
merchantIds?: string[] | undefined;
|
|
7764
|
+
};
|
|
7765
|
+
serialize(): Uint8Array;
|
|
7766
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
7767
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): OrphanMerchant;
|
|
7768
|
+
serializeBinary(): Uint8Array;
|
|
7769
|
+
static deserializeBinary(bytes: Uint8Array): OrphanMerchant;
|
|
7770
|
+
}
|
|
7771
|
+
export class OrphanMerchantsResponse extends pb_1.Message {
|
|
7772
|
+
#private;
|
|
7773
|
+
constructor(data?: any[] | {
|
|
7774
|
+
success?: string;
|
|
7775
|
+
message?: string;
|
|
7776
|
+
data?: OrphanMerchant;
|
|
7777
|
+
status?: string;
|
|
7778
|
+
error?: string;
|
|
7779
|
+
errors?: ValidationErrors[];
|
|
7780
|
+
});
|
|
7781
|
+
get success(): string;
|
|
7782
|
+
set success(value: string);
|
|
7783
|
+
get message(): string;
|
|
7784
|
+
set message(value: string);
|
|
7785
|
+
get data(): OrphanMerchant;
|
|
7786
|
+
set data(value: OrphanMerchant);
|
|
7787
|
+
get hasData(): boolean;
|
|
7788
|
+
get status(): string;
|
|
7789
|
+
set status(value: string);
|
|
7790
|
+
get error(): string;
|
|
7791
|
+
set error(value: string);
|
|
7792
|
+
get errors(): ValidationErrors[];
|
|
7793
|
+
set errors(value: ValidationErrors[]);
|
|
7794
|
+
static fromObject(data: {
|
|
7795
|
+
success?: string;
|
|
7796
|
+
message?: string;
|
|
7797
|
+
data?: ReturnType<typeof OrphanMerchant.prototype.toObject>;
|
|
7798
|
+
status?: string;
|
|
7799
|
+
error?: string;
|
|
7800
|
+
errors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
|
|
7801
|
+
}): OrphanMerchantsResponse;
|
|
7802
|
+
toObject(): {
|
|
7803
|
+
success?: string | undefined;
|
|
7804
|
+
message?: string | undefined;
|
|
7805
|
+
data?: {
|
|
7806
|
+
total?: number | undefined;
|
|
7807
|
+
merchantIds?: string[] | undefined;
|
|
7808
|
+
} | undefined;
|
|
7809
|
+
status?: string | undefined;
|
|
7810
|
+
error?: string | undefined;
|
|
7811
|
+
errors?: {
|
|
7812
|
+
field?: string | undefined;
|
|
7813
|
+
message?: string | undefined;
|
|
7814
|
+
}[] | undefined;
|
|
7815
|
+
};
|
|
7816
|
+
serialize(): Uint8Array;
|
|
7817
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
7818
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): OrphanMerchantsResponse;
|
|
7819
|
+
serializeBinary(): Uint8Array;
|
|
7820
|
+
static deserializeBinary(bytes: Uint8Array): OrphanMerchantsResponse;
|
|
7821
|
+
}
|
|
7529
7822
|
interface GrpcPromiseServiceInterface<P, R> {
|
|
7530
7823
|
(message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
|
|
7531
7824
|
(message: P, options?: grpc_1.CallOptions): Promise<R>;
|
|
@@ -7991,6 +8284,24 @@ export declare namespace com.pkg.business {
|
|
|
7991
8284
|
responseSerialize: (message: DefaultResponse) => Buffer;
|
|
7992
8285
|
responseDeserialize: (bytes: Buffer) => DefaultResponse;
|
|
7993
8286
|
};
|
|
8287
|
+
GetMerchantsByAttributionStaff: {
|
|
8288
|
+
path: string;
|
|
8289
|
+
requestStream: boolean;
|
|
8290
|
+
responseStream: boolean;
|
|
8291
|
+
requestSerialize: (message: GetByIdRequest) => Buffer;
|
|
8292
|
+
requestDeserialize: (bytes: Buffer) => GetByIdRequest;
|
|
8293
|
+
responseSerialize: (message: MMerchantDataResponse) => Buffer;
|
|
8294
|
+
responseDeserialize: (bytes: Buffer) => MMerchantDataResponse;
|
|
8295
|
+
};
|
|
8296
|
+
OrphanMerchants: {
|
|
8297
|
+
path: string;
|
|
8298
|
+
requestStream: boolean;
|
|
8299
|
+
responseStream: boolean;
|
|
8300
|
+
requestSerialize: (message: GetByIdRequest) => Buffer;
|
|
8301
|
+
requestDeserialize: (bytes: Buffer) => GetByIdRequest;
|
|
8302
|
+
responseSerialize: (message: OrphanMerchantsResponse) => Buffer;
|
|
8303
|
+
responseDeserialize: (bytes: Buffer) => OrphanMerchantsResponse;
|
|
8304
|
+
};
|
|
7994
8305
|
};
|
|
7995
8306
|
[method: string]: grpc_1.UntypedHandleCall;
|
|
7996
8307
|
abstract CreateBusiness(call: grpc_1.ServerUnaryCall<CreateBusinessRequest, BusinessDataResponse>, callback: grpc_1.sendUnaryData<BusinessDataResponse>): void;
|
|
@@ -8044,6 +8355,8 @@ export declare namespace com.pkg.business {
|
|
|
8044
8355
|
abstract GetMerchant(call: grpc_1.ServerUnaryCall<MerchantLookupRequest, MerchantDataResponse>, callback: grpc_1.sendUnaryData<MerchantDataResponse>): void;
|
|
8045
8356
|
abstract AssignAttributionStaff(call: grpc_1.ServerUnaryCall<AssignAttributionStaffRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
8046
8357
|
abstract ReassignAttributionStaff(call: grpc_1.ServerUnaryCall<AssignAttributionStaffRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
8358
|
+
abstract GetMerchantsByAttributionStaff(call: grpc_1.ServerUnaryCall<GetByIdRequest, MMerchantDataResponse>, callback: grpc_1.sendUnaryData<MMerchantDataResponse>): void;
|
|
8359
|
+
abstract OrphanMerchants(call: grpc_1.ServerUnaryCall<GetByIdRequest, OrphanMerchantsResponse>, callback: grpc_1.sendUnaryData<OrphanMerchantsResponse>): void;
|
|
8047
8360
|
}
|
|
8048
8361
|
const BusinessClient_base: grpc_1.ServiceClientConstructor;
|
|
8049
8362
|
export class BusinessClient extends BusinessClient_base {
|
|
@@ -8099,6 +8412,8 @@ export declare namespace com.pkg.business {
|
|
|
8099
8412
|
GetMerchant: GrpcPromiseServiceInterface<MerchantLookupRequest, MerchantDataResponse>;
|
|
8100
8413
|
AssignAttributionStaff: GrpcPromiseServiceInterface<AssignAttributionStaffRequest, DefaultResponse>;
|
|
8101
8414
|
ReassignAttributionStaff: GrpcPromiseServiceInterface<AssignAttributionStaffRequest, DefaultResponse>;
|
|
8415
|
+
GetMerchantsByAttributionStaff: GrpcPromiseServiceInterface<GetByIdRequest, MMerchantDataResponse>;
|
|
8416
|
+
OrphanMerchants: GrpcPromiseServiceInterface<GetByIdRequest, OrphanMerchantsResponse>;
|
|
8102
8417
|
}
|
|
8103
8418
|
export {};
|
|
8104
8419
|
}
|