@technova-tech/olive-proto-lib 3.2.1 → 3.2.2

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/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "compile": "tsc -p tsconfig.json"
12
12
  },
13
13
  "license": "MIT",
14
- "version": "3.2.1",
14
+ "version": "3.2.2",
15
15
  "devDependencies": {
16
16
  "@types/google-protobuf": "^3.15.12",
17
17
  "protoc-gen-ts": "^0.8.7",
@@ -7241,6 +7241,83 @@ 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 StaffAttributionData extends pb_1.Message {
7269
+ #private;
7270
+ constructor(data?: any[] | {
7271
+ id?: string;
7272
+ firstName?: string;
7273
+ lastName?: string;
7274
+ email?: string;
7275
+ phone?: string;
7276
+ active?: boolean;
7277
+ role?: Role;
7278
+ });
7279
+ get id(): string;
7280
+ set id(value: string);
7281
+ get firstName(): string;
7282
+ set firstName(value: string);
7283
+ get lastName(): string;
7284
+ set lastName(value: string);
7285
+ get email(): string;
7286
+ set email(value: string);
7287
+ get phone(): string;
7288
+ set phone(value: string);
7289
+ get active(): boolean;
7290
+ set active(value: boolean);
7291
+ get role(): Role;
7292
+ set role(value: Role);
7293
+ get hasRole(): boolean;
7294
+ static fromObject(data: {
7295
+ id?: string;
7296
+ firstName?: string;
7297
+ lastName?: string;
7298
+ email?: string;
7299
+ phone?: string;
7300
+ active?: boolean;
7301
+ role?: ReturnType<typeof Role.prototype.toObject>;
7302
+ }): StaffAttributionData;
7303
+ toObject(): {
7304
+ id?: string | undefined;
7305
+ firstName?: string | undefined;
7306
+ lastName?: string | undefined;
7307
+ email?: string | undefined;
7308
+ phone?: string | undefined;
7309
+ active?: boolean | undefined;
7310
+ role?: {
7311
+ id?: string | undefined;
7312
+ name?: string | undefined;
7313
+ } | undefined;
7314
+ };
7315
+ serialize(): Uint8Array;
7316
+ serialize(w: pb_1.BinaryWriter): void;
7317
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StaffAttributionData;
7318
+ serializeBinary(): Uint8Array;
7319
+ static deserializeBinary(bytes: Uint8Array): StaffAttributionData;
7320
+ }
7244
7321
  export class MerchantData extends pb_1.Message {
7245
7322
  #private;
7246
7323
  constructor(data?: any[] | {
@@ -7257,6 +7334,10 @@ export declare namespace com.pkg.business {
7257
7334
  hasPin?: boolean;
7258
7335
  createdAt?: string;
7259
7336
  updatedAt?: string;
7337
+ staffAttributedId?: string;
7338
+ staffAttributedLastUpdateDatetime?: string;
7339
+ staffAttributedStatus?: string;
7340
+ staffAttributed?: StaffAttributionData;
7260
7341
  });
7261
7342
  get id(): string;
7262
7343
  set id(value: string);
@@ -7284,6 +7365,15 @@ export declare namespace com.pkg.business {
7284
7365
  set createdAt(value: string);
7285
7366
  get updatedAt(): string;
7286
7367
  set updatedAt(value: string);
7368
+ get staffAttributedId(): string;
7369
+ set staffAttributedId(value: string);
7370
+ get staffAttributedLastUpdateDatetime(): string;
7371
+ set staffAttributedLastUpdateDatetime(value: string);
7372
+ get staffAttributedStatus(): string;
7373
+ set staffAttributedStatus(value: string);
7374
+ get staffAttributed(): StaffAttributionData;
7375
+ set staffAttributed(value: StaffAttributionData);
7376
+ get hasStaffAttributed(): boolean;
7287
7377
  static fromObject(data: {
7288
7378
  id?: string;
7289
7379
  email?: string;
@@ -7298,6 +7388,10 @@ export declare namespace com.pkg.business {
7298
7388
  hasPin?: boolean;
7299
7389
  createdAt?: string;
7300
7390
  updatedAt?: string;
7391
+ staffAttributedId?: string;
7392
+ staffAttributedLastUpdateDatetime?: string;
7393
+ staffAttributedStatus?: string;
7394
+ staffAttributed?: ReturnType<typeof StaffAttributionData.prototype.toObject>;
7301
7395
  }): MerchantData;
7302
7396
  toObject(): {
7303
7397
  id?: string | undefined;
@@ -7313,6 +7407,21 @@ export declare namespace com.pkg.business {
7313
7407
  hasPin?: boolean | undefined;
7314
7408
  createdAt?: string | undefined;
7315
7409
  updatedAt?: string | undefined;
7410
+ staffAttributedId?: string | undefined;
7411
+ staffAttributedLastUpdateDatetime?: string | undefined;
7412
+ staffAttributedStatus?: string | undefined;
7413
+ staffAttributed?: {
7414
+ id?: string | undefined;
7415
+ firstName?: string | undefined;
7416
+ lastName?: string | undefined;
7417
+ email?: string | undefined;
7418
+ phone?: string | undefined;
7419
+ active?: boolean | undefined;
7420
+ role?: {
7421
+ id?: string | undefined;
7422
+ name?: string | undefined;
7423
+ } | undefined;
7424
+ } | undefined;
7316
7425
  };
7317
7426
  serialize(): Uint8Array;
7318
7427
  serialize(w: pb_1.BinaryWriter): void;
@@ -7368,6 +7477,21 @@ export declare namespace com.pkg.business {
7368
7477
  hasPin?: boolean | undefined;
7369
7478
  createdAt?: string | undefined;
7370
7479
  updatedAt?: string | undefined;
7480
+ staffAttributedId?: string | undefined;
7481
+ staffAttributedLastUpdateDatetime?: string | undefined;
7482
+ staffAttributedStatus?: string | undefined;
7483
+ staffAttributed?: {
7484
+ id?: string | undefined;
7485
+ firstName?: string | undefined;
7486
+ lastName?: string | undefined;
7487
+ email?: string | undefined;
7488
+ phone?: string | undefined;
7489
+ active?: boolean | undefined;
7490
+ role?: {
7491
+ id?: string | undefined;
7492
+ name?: string | undefined;
7493
+ } | undefined;
7494
+ } | undefined;
7371
7495
  } | undefined;
7372
7496
  error?: string | undefined;
7373
7497
  message?: string | undefined;
@@ -7434,6 +7558,21 @@ export declare namespace com.pkg.business {
7434
7558
  hasPin?: boolean | undefined;
7435
7559
  createdAt?: string | undefined;
7436
7560
  updatedAt?: string | undefined;
7561
+ staffAttributedId?: string | undefined;
7562
+ staffAttributedLastUpdateDatetime?: string | undefined;
7563
+ staffAttributedStatus?: string | undefined;
7564
+ staffAttributed?: {
7565
+ id?: string | undefined;
7566
+ firstName?: string | undefined;
7567
+ lastName?: string | undefined;
7568
+ email?: string | undefined;
7569
+ phone?: string | undefined;
7570
+ active?: boolean | undefined;
7571
+ role?: {
7572
+ id?: string | undefined;
7573
+ name?: string | undefined;
7574
+ } | undefined;
7575
+ } | undefined;
7437
7576
  }[] | undefined;
7438
7577
  error?: string | undefined;
7439
7578
  message?: string | undefined;
@@ -7526,6 +7665,100 @@ export declare namespace com.pkg.business {
7526
7665
  serializeBinary(): Uint8Array;
7527
7666
  static deserializeBinary(bytes: Uint8Array): DefaultResponse;
7528
7667
  }
7668
+ export class GetByIdRequest extends pb_1.Message {
7669
+ #private;
7670
+ constructor(data?: any[] | {
7671
+ id?: string;
7672
+ });
7673
+ get id(): string;
7674
+ set id(value: string);
7675
+ static fromObject(data: {
7676
+ id?: string;
7677
+ }): GetByIdRequest;
7678
+ toObject(): {
7679
+ id?: string | undefined;
7680
+ };
7681
+ serialize(): Uint8Array;
7682
+ serialize(w: pb_1.BinaryWriter): void;
7683
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetByIdRequest;
7684
+ serializeBinary(): Uint8Array;
7685
+ static deserializeBinary(bytes: Uint8Array): GetByIdRequest;
7686
+ }
7687
+ export class OrphanMerchant extends pb_1.Message {
7688
+ #private;
7689
+ constructor(data?: any[] | {
7690
+ total?: number;
7691
+ merchantIds?: string[];
7692
+ });
7693
+ get total(): number;
7694
+ set total(value: number);
7695
+ get merchantIds(): string[];
7696
+ set merchantIds(value: string[]);
7697
+ static fromObject(data: {
7698
+ total?: number;
7699
+ merchantIds?: string[];
7700
+ }): OrphanMerchant;
7701
+ toObject(): {
7702
+ total?: number | undefined;
7703
+ merchantIds?: string[] | undefined;
7704
+ };
7705
+ serialize(): Uint8Array;
7706
+ serialize(w: pb_1.BinaryWriter): void;
7707
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): OrphanMerchant;
7708
+ serializeBinary(): Uint8Array;
7709
+ static deserializeBinary(bytes: Uint8Array): OrphanMerchant;
7710
+ }
7711
+ export class OrphanMerchantsResponse extends pb_1.Message {
7712
+ #private;
7713
+ constructor(data?: any[] | {
7714
+ success?: string;
7715
+ message?: string;
7716
+ data?: OrphanMerchant;
7717
+ status?: string;
7718
+ error?: string;
7719
+ errors?: ValidationErrors[];
7720
+ });
7721
+ get success(): string;
7722
+ set success(value: string);
7723
+ get message(): string;
7724
+ set message(value: string);
7725
+ get data(): OrphanMerchant;
7726
+ set data(value: OrphanMerchant);
7727
+ get hasData(): boolean;
7728
+ get status(): string;
7729
+ set status(value: string);
7730
+ get error(): string;
7731
+ set error(value: string);
7732
+ get errors(): ValidationErrors[];
7733
+ set errors(value: ValidationErrors[]);
7734
+ static fromObject(data: {
7735
+ success?: string;
7736
+ message?: string;
7737
+ data?: ReturnType<typeof OrphanMerchant.prototype.toObject>;
7738
+ status?: string;
7739
+ error?: string;
7740
+ errors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
7741
+ }): OrphanMerchantsResponse;
7742
+ toObject(): {
7743
+ success?: string | undefined;
7744
+ message?: string | undefined;
7745
+ data?: {
7746
+ total?: number | undefined;
7747
+ merchantIds?: string[] | undefined;
7748
+ } | undefined;
7749
+ status?: string | undefined;
7750
+ error?: string | undefined;
7751
+ errors?: {
7752
+ field?: string | undefined;
7753
+ message?: string | undefined;
7754
+ }[] | undefined;
7755
+ };
7756
+ serialize(): Uint8Array;
7757
+ serialize(w: pb_1.BinaryWriter): void;
7758
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): OrphanMerchantsResponse;
7759
+ serializeBinary(): Uint8Array;
7760
+ static deserializeBinary(bytes: Uint8Array): OrphanMerchantsResponse;
7761
+ }
7529
7762
  interface GrpcPromiseServiceInterface<P, R> {
7530
7763
  (message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
7531
7764
  (message: P, options?: grpc_1.CallOptions): Promise<R>;
@@ -7991,6 +8224,24 @@ export declare namespace com.pkg.business {
7991
8224
  responseSerialize: (message: DefaultResponse) => Buffer;
7992
8225
  responseDeserialize: (bytes: Buffer) => DefaultResponse;
7993
8226
  };
8227
+ GetMerchantsByAttributionStaff: {
8228
+ path: string;
8229
+ requestStream: boolean;
8230
+ responseStream: boolean;
8231
+ requestSerialize: (message: GetByIdRequest) => Buffer;
8232
+ requestDeserialize: (bytes: Buffer) => GetByIdRequest;
8233
+ responseSerialize: (message: MMerchantDataResponse) => Buffer;
8234
+ responseDeserialize: (bytes: Buffer) => MMerchantDataResponse;
8235
+ };
8236
+ OrphanMerchants: {
8237
+ path: string;
8238
+ requestStream: boolean;
8239
+ responseStream: boolean;
8240
+ requestSerialize: (message: GetByIdRequest) => Buffer;
8241
+ requestDeserialize: (bytes: Buffer) => GetByIdRequest;
8242
+ responseSerialize: (message: OrphanMerchantsResponse) => Buffer;
8243
+ responseDeserialize: (bytes: Buffer) => OrphanMerchantsResponse;
8244
+ };
7994
8245
  };
7995
8246
  [method: string]: grpc_1.UntypedHandleCall;
7996
8247
  abstract CreateBusiness(call: grpc_1.ServerUnaryCall<CreateBusinessRequest, BusinessDataResponse>, callback: grpc_1.sendUnaryData<BusinessDataResponse>): void;
@@ -8044,6 +8295,8 @@ export declare namespace com.pkg.business {
8044
8295
  abstract GetMerchant(call: grpc_1.ServerUnaryCall<MerchantLookupRequest, MerchantDataResponse>, callback: grpc_1.sendUnaryData<MerchantDataResponse>): void;
8045
8296
  abstract AssignAttributionStaff(call: grpc_1.ServerUnaryCall<AssignAttributionStaffRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
8046
8297
  abstract ReassignAttributionStaff(call: grpc_1.ServerUnaryCall<AssignAttributionStaffRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
8298
+ abstract GetMerchantsByAttributionStaff(call: grpc_1.ServerUnaryCall<GetByIdRequest, MMerchantDataResponse>, callback: grpc_1.sendUnaryData<MMerchantDataResponse>): void;
8299
+ abstract OrphanMerchants(call: grpc_1.ServerUnaryCall<GetByIdRequest, OrphanMerchantsResponse>, callback: grpc_1.sendUnaryData<OrphanMerchantsResponse>): void;
8047
8300
  }
8048
8301
  const BusinessClient_base: grpc_1.ServiceClientConstructor;
8049
8302
  export class BusinessClient extends BusinessClient_base {
@@ -8099,6 +8352,8 @@ export declare namespace com.pkg.business {
8099
8352
  GetMerchant: GrpcPromiseServiceInterface<MerchantLookupRequest, MerchantDataResponse>;
8100
8353
  AssignAttributionStaff: GrpcPromiseServiceInterface<AssignAttributionStaffRequest, DefaultResponse>;
8101
8354
  ReassignAttributionStaff: GrpcPromiseServiceInterface<AssignAttributionStaffRequest, DefaultResponse>;
8355
+ GetMerchantsByAttributionStaff: GrpcPromiseServiceInterface<GetByIdRequest, MMerchantDataResponse>;
8356
+ OrphanMerchants: GrpcPromiseServiceInterface<GetByIdRequest, OrphanMerchantsResponse>;
8102
8357
  }
8103
8358
  export {};
8104
8359
  }