@technova-tech/olive-proto-lib 3.2.0 → 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.0",
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;
@@ -7455,6 +7594,171 @@ export declare namespace com.pkg.business {
7455
7594
  serializeBinary(): Uint8Array;
7456
7595
  static deserializeBinary(bytes: Uint8Array): MMerchantDataResponse;
7457
7596
  }
7597
+ export class AssignAttributionStaffRequest extends pb_1.Message {
7598
+ #private;
7599
+ constructor(data?: any[] | {
7600
+ staffId?: string;
7601
+ merchantId?: string;
7602
+ actionBy?: string;
7603
+ });
7604
+ get staffId(): string;
7605
+ set staffId(value: string);
7606
+ get merchantId(): string;
7607
+ set merchantId(value: string);
7608
+ get actionBy(): string;
7609
+ set actionBy(value: string);
7610
+ static fromObject(data: {
7611
+ staffId?: string;
7612
+ merchantId?: string;
7613
+ actionBy?: string;
7614
+ }): AssignAttributionStaffRequest;
7615
+ toObject(): {
7616
+ staffId?: string | undefined;
7617
+ merchantId?: string | undefined;
7618
+ actionBy?: string | undefined;
7619
+ };
7620
+ serialize(): Uint8Array;
7621
+ serialize(w: pb_1.BinaryWriter): void;
7622
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AssignAttributionStaffRequest;
7623
+ serializeBinary(): Uint8Array;
7624
+ static deserializeBinary(bytes: Uint8Array): AssignAttributionStaffRequest;
7625
+ }
7626
+ export class DefaultResponse extends pb_1.Message {
7627
+ #private;
7628
+ constructor(data?: any[] | {
7629
+ success?: boolean;
7630
+ status?: string;
7631
+ error?: string;
7632
+ message?: string;
7633
+ errors?: ValidationErrors[];
7634
+ });
7635
+ get success(): boolean;
7636
+ set success(value: boolean);
7637
+ get status(): string;
7638
+ set status(value: string);
7639
+ get error(): string;
7640
+ set error(value: string);
7641
+ get message(): string;
7642
+ set message(value: string);
7643
+ get errors(): ValidationErrors[];
7644
+ set errors(value: ValidationErrors[]);
7645
+ static fromObject(data: {
7646
+ success?: boolean;
7647
+ status?: string;
7648
+ error?: string;
7649
+ message?: string;
7650
+ errors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
7651
+ }): DefaultResponse;
7652
+ toObject(): {
7653
+ success?: boolean | undefined;
7654
+ status?: string | undefined;
7655
+ error?: string | undefined;
7656
+ message?: string | undefined;
7657
+ errors?: {
7658
+ field?: string | undefined;
7659
+ message?: string | undefined;
7660
+ }[] | undefined;
7661
+ };
7662
+ serialize(): Uint8Array;
7663
+ serialize(w: pb_1.BinaryWriter): void;
7664
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DefaultResponse;
7665
+ serializeBinary(): Uint8Array;
7666
+ static deserializeBinary(bytes: Uint8Array): DefaultResponse;
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
+ }
7458
7762
  interface GrpcPromiseServiceInterface<P, R> {
7459
7763
  (message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
7460
7764
  (message: P, options?: grpc_1.CallOptions): Promise<R>;
@@ -7902,6 +8206,42 @@ export declare namespace com.pkg.business {
7902
8206
  responseSerialize: (message: MerchantDataResponse) => Buffer;
7903
8207
  responseDeserialize: (bytes: Buffer) => MerchantDataResponse;
7904
8208
  };
8209
+ AssignAttributionStaff: {
8210
+ path: string;
8211
+ requestStream: boolean;
8212
+ responseStream: boolean;
8213
+ requestSerialize: (message: AssignAttributionStaffRequest) => Buffer;
8214
+ requestDeserialize: (bytes: Buffer) => AssignAttributionStaffRequest;
8215
+ responseSerialize: (message: DefaultResponse) => Buffer;
8216
+ responseDeserialize: (bytes: Buffer) => DefaultResponse;
8217
+ };
8218
+ ReassignAttributionStaff: {
8219
+ path: string;
8220
+ requestStream: boolean;
8221
+ responseStream: boolean;
8222
+ requestSerialize: (message: AssignAttributionStaffRequest) => Buffer;
8223
+ requestDeserialize: (bytes: Buffer) => AssignAttributionStaffRequest;
8224
+ responseSerialize: (message: DefaultResponse) => Buffer;
8225
+ responseDeserialize: (bytes: Buffer) => DefaultResponse;
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
+ };
7905
8245
  };
7906
8246
  [method: string]: grpc_1.UntypedHandleCall;
7907
8247
  abstract CreateBusiness(call: grpc_1.ServerUnaryCall<CreateBusinessRequest, BusinessDataResponse>, callback: grpc_1.sendUnaryData<BusinessDataResponse>): void;
@@ -7953,6 +8293,10 @@ export declare namespace com.pkg.business {
7953
8293
  abstract GetBusinessIndustries(call: grpc_1.ServerUnaryCall<PaginatedRequest, BusinessIndustryDataResponse>, callback: grpc_1.sendUnaryData<BusinessIndustryDataResponse>): void;
7954
8294
  abstract GetMerchants(call: grpc_1.ServerUnaryCall<MerchantFilterRequest, MMerchantDataResponse>, callback: grpc_1.sendUnaryData<MMerchantDataResponse>): void;
7955
8295
  abstract GetMerchant(call: grpc_1.ServerUnaryCall<MerchantLookupRequest, MerchantDataResponse>, callback: grpc_1.sendUnaryData<MerchantDataResponse>): void;
8296
+ abstract AssignAttributionStaff(call: grpc_1.ServerUnaryCall<AssignAttributionStaffRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
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;
7956
8300
  }
7957
8301
  const BusinessClient_base: grpc_1.ServiceClientConstructor;
7958
8302
  export class BusinessClient extends BusinessClient_base {
@@ -8006,6 +8350,10 @@ export declare namespace com.pkg.business {
8006
8350
  GetBusinessIndustries: GrpcPromiseServiceInterface<PaginatedRequest, BusinessIndustryDataResponse>;
8007
8351
  GetMerchants: GrpcPromiseServiceInterface<MerchantFilterRequest, MMerchantDataResponse>;
8008
8352
  GetMerchant: GrpcPromiseServiceInterface<MerchantLookupRequest, MerchantDataResponse>;
8353
+ AssignAttributionStaff: GrpcPromiseServiceInterface<AssignAttributionStaffRequest, DefaultResponse>;
8354
+ ReassignAttributionStaff: GrpcPromiseServiceInterface<AssignAttributionStaffRequest, DefaultResponse>;
8355
+ GetMerchantsByAttributionStaff: GrpcPromiseServiceInterface<GetByIdRequest, MMerchantDataResponse>;
8356
+ OrphanMerchants: GrpcPromiseServiceInterface<GetByIdRequest, OrphanMerchantsResponse>;
8009
8357
  }
8010
8358
  export {};
8011
8359
  }