@technova-tech/olive-proto-lib 2.0.7 → 2.0.9

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.
@@ -10170,7 +10170,7 @@ var com;
10170
10170
  }
10171
10171
  account.FetchChargesRequest = FetchChargesRequest;
10172
10172
  class ChargesData extends pb_1.Message {
10173
- #one_of_decls = [];
10173
+ #one_of_decls = [[12]];
10174
10174
  constructor(data) {
10175
10175
  super();
10176
10176
  pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
@@ -10202,6 +10202,12 @@ var com;
10202
10202
  if ("updatedAt" in data && data.updatedAt != undefined) {
10203
10203
  this.updatedAt = data.updatedAt;
10204
10204
  }
10205
+ if ("isGlobal" in data && data.isGlobal != undefined) {
10206
+ this.isGlobal = data.isGlobal;
10207
+ }
10208
+ if ("merchantId" in data && data.merchantId != undefined) {
10209
+ this.merchantId = data.merchantId;
10210
+ }
10205
10211
  }
10206
10212
  }
10207
10213
  get id() {
@@ -10258,6 +10264,28 @@ var com;
10258
10264
  set updatedAt(value) {
10259
10265
  pb_1.Message.setField(this, 10, value);
10260
10266
  }
10267
+ get isGlobal() {
10268
+ return pb_1.Message.getFieldWithDefault(this, 11, false);
10269
+ }
10270
+ set isGlobal(value) {
10271
+ pb_1.Message.setField(this, 11, value);
10272
+ }
10273
+ get merchantId() {
10274
+ return pb_1.Message.getFieldWithDefault(this, 12, "");
10275
+ }
10276
+ set merchantId(value) {
10277
+ pb_1.Message.setOneofField(this, 12, this.#one_of_decls[0], value);
10278
+ }
10279
+ get hasMerchantId() {
10280
+ return pb_1.Message.getField(this, 12) != null;
10281
+ }
10282
+ get _merchant_id() {
10283
+ const cases = {
10284
+ 0: "none",
10285
+ 12: "merchantId"
10286
+ };
10287
+ return cases[pb_1.Message.computeOneofCase(this, [12])];
10288
+ }
10261
10289
  static fromObject(data) {
10262
10290
  const message = new ChargesData({});
10263
10291
  if (data.id != null) {
@@ -10287,6 +10315,12 @@ var com;
10287
10315
  if (data.updatedAt != null) {
10288
10316
  message.updatedAt = data.updatedAt;
10289
10317
  }
10318
+ if (data.isGlobal != null) {
10319
+ message.isGlobal = data.isGlobal;
10320
+ }
10321
+ if (data.merchantId != null) {
10322
+ message.merchantId = data.merchantId;
10323
+ }
10290
10324
  return message;
10291
10325
  }
10292
10326
  toObject() {
@@ -10318,6 +10352,12 @@ var com;
10318
10352
  if (this.updatedAt != null) {
10319
10353
  data.updatedAt = this.updatedAt;
10320
10354
  }
10355
+ if (this.isGlobal != null) {
10356
+ data.isGlobal = this.isGlobal;
10357
+ }
10358
+ if (this.merchantId != null) {
10359
+ data.merchantId = this.merchantId;
10360
+ }
10321
10361
  return data;
10322
10362
  }
10323
10363
  serialize(w) {
@@ -10340,6 +10380,10 @@ var com;
10340
10380
  writer.writeString(9, this.createdAt);
10341
10381
  if (this.updatedAt.length)
10342
10382
  writer.writeString(10, this.updatedAt);
10383
+ if (this.isGlobal != false)
10384
+ writer.writeBool(11, this.isGlobal);
10385
+ if (this.hasMerchantId)
10386
+ writer.writeString(12, this.merchantId);
10343
10387
  if (!w)
10344
10388
  return writer.getResultBuffer();
10345
10389
  }
@@ -10376,6 +10420,12 @@ var com;
10376
10420
  case 10:
10377
10421
  message.updatedAt = reader.readString();
10378
10422
  break;
10423
+ case 11:
10424
+ message.isGlobal = reader.readBool();
10425
+ break;
10426
+ case 12:
10427
+ message.merchantId = reader.readString();
10428
+ break;
10379
10429
  default: reader.skipField();
10380
10430
  }
10381
10431
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "compile": "tsc -p tsconfig.json"
12
12
  },
13
13
  "license": "MIT",
14
- "version": "2.0.7",
14
+ "version": "2.0.9",
15
15
  "devDependencies": {
16
16
  "@types/google-protobuf": "^3.15.12",
17
17
  "protoc-gen-ts": "^0.8.7",
@@ -10231,6 +10231,9 @@ var com;
10231
10231
  if ("ownerId" in data && data.ownerId != undefined) {
10232
10232
  this.ownerId = data.ownerId;
10233
10233
  }
10234
+ if ("branchId" in data && data.branchId != undefined) {
10235
+ this.branchId = data.branchId;
10236
+ }
10234
10237
  }
10235
10238
  }
10236
10239
  get businessContextToken() {
@@ -10338,6 +10341,12 @@ var com;
10338
10341
  set ownerId(value) {
10339
10342
  pb_1.Message.setField(this, 16, value);
10340
10343
  }
10344
+ get branchId() {
10345
+ return pb_1.Message.getFieldWithDefault(this, 17, "");
10346
+ }
10347
+ set branchId(value) {
10348
+ pb_1.Message.setField(this, 17, value);
10349
+ }
10341
10350
  static fromObject(data) {
10342
10351
  const message = new BusinessContextData({});
10343
10352
  if (data.businessContextToken != null) {
@@ -10388,6 +10397,9 @@ var com;
10388
10397
  if (data.ownerId != null) {
10389
10398
  message.ownerId = data.ownerId;
10390
10399
  }
10400
+ if (data.branchId != null) {
10401
+ message.branchId = data.branchId;
10402
+ }
10391
10403
  return message;
10392
10404
  }
10393
10405
  toObject() {
@@ -10440,6 +10452,9 @@ var com;
10440
10452
  if (this.ownerId != null) {
10441
10453
  data.ownerId = this.ownerId;
10442
10454
  }
10455
+ if (this.branchId != null) {
10456
+ data.branchId = this.branchId;
10457
+ }
10443
10458
  return data;
10444
10459
  }
10445
10460
  serialize(w) {
@@ -10476,6 +10491,8 @@ var com;
10476
10491
  writer.writeString(15, this.ownerType);
10477
10492
  if (this.ownerId.length)
10478
10493
  writer.writeString(16, this.ownerId);
10494
+ if (this.branchId.length)
10495
+ writer.writeString(17, this.branchId);
10479
10496
  if (!w)
10480
10497
  return writer.getResultBuffer();
10481
10498
  }
@@ -10533,6 +10550,9 @@ var com;
10533
10550
  case 16:
10534
10551
  message.ownerId = reader.readString();
10535
10552
  break;
10553
+ case 17:
10554
+ message.branchId = reader.readString();
10555
+ break;
10536
10556
  default: reader.skipField();
10537
10557
  }
10538
10558
  }
@@ -3313,7 +3313,7 @@ export declare namespace com.pkg.account {
3313
3313
  }
3314
3314
  export class ChargesData extends pb_1.Message {
3315
3315
  #private;
3316
- constructor(data?: any[] | {
3316
+ constructor(data?: any[] | ({
3317
3317
  id?: string;
3318
3318
  transactionType?: string;
3319
3319
  chargeType?: string;
@@ -3323,7 +3323,10 @@ export declare namespace com.pkg.account {
3323
3323
  active?: boolean;
3324
3324
  createdAt?: string;
3325
3325
  updatedAt?: string;
3326
- });
3326
+ isGlobal?: boolean;
3327
+ } & (({
3328
+ merchantId?: string;
3329
+ }))));
3327
3330
  get id(): string;
3328
3331
  set id(value: string);
3329
3332
  get transactionType(): string;
@@ -3342,6 +3345,12 @@ export declare namespace com.pkg.account {
3342
3345
  set createdAt(value: string);
3343
3346
  get updatedAt(): string;
3344
3347
  set updatedAt(value: string);
3348
+ get isGlobal(): boolean;
3349
+ set isGlobal(value: boolean);
3350
+ get merchantId(): string;
3351
+ set merchantId(value: string);
3352
+ get hasMerchantId(): boolean;
3353
+ get _merchant_id(): "merchantId" | "none";
3345
3354
  static fromObject(data: {
3346
3355
  id?: string;
3347
3356
  transactionType?: string;
@@ -3352,6 +3361,8 @@ export declare namespace com.pkg.account {
3352
3361
  active?: boolean;
3353
3362
  createdAt?: string;
3354
3363
  updatedAt?: string;
3364
+ isGlobal?: boolean;
3365
+ merchantId?: string;
3355
3366
  }): ChargesData;
3356
3367
  toObject(): {
3357
3368
  id?: string | undefined;
@@ -3363,6 +3374,8 @@ export declare namespace com.pkg.account {
3363
3374
  active?: boolean | undefined;
3364
3375
  createdAt?: string | undefined;
3365
3376
  updatedAt?: string | undefined;
3377
+ isGlobal?: boolean | undefined;
3378
+ merchantId?: string | undefined;
3366
3379
  };
3367
3380
  serialize(): Uint8Array;
3368
3381
  serialize(w: pb_1.BinaryWriter): void;
@@ -3413,6 +3426,8 @@ export declare namespace com.pkg.account {
3413
3426
  active?: boolean | undefined;
3414
3427
  createdAt?: string | undefined;
3415
3428
  updatedAt?: string | undefined;
3429
+ isGlobal?: boolean | undefined;
3430
+ merchantId?: string | undefined;
3416
3431
  } | undefined;
3417
3432
  error?: string | undefined;
3418
3433
  message?: string | undefined;
@@ -3475,6 +3490,8 @@ export declare namespace com.pkg.account {
3475
3490
  active?: boolean | undefined;
3476
3491
  createdAt?: string | undefined;
3477
3492
  updatedAt?: string | undefined;
3493
+ isGlobal?: boolean | undefined;
3494
+ merchantId?: string | undefined;
3478
3495
  }[] | undefined;
3479
3496
  error?: string | undefined;
3480
3497
  message?: string | undefined;
@@ -3648,6 +3648,7 @@ export declare namespace com.pkg.posv1.terminals {
3648
3648
  sessionExpiresAt?: string;
3649
3649
  ownerType?: string;
3650
3650
  ownerId?: string;
3651
+ branchId?: string;
3651
3652
  });
3652
3653
  get businessContextToken(): string;
3653
3654
  set businessContextToken(value: string);
@@ -3684,6 +3685,8 @@ export declare namespace com.pkg.posv1.terminals {
3684
3685
  set ownerType(value: string);
3685
3686
  get ownerId(): string;
3686
3687
  set ownerId(value: string);
3688
+ get branchId(): string;
3689
+ set branchId(value: string);
3687
3690
  static fromObject(data: {
3688
3691
  businessContextToken?: string;
3689
3692
  businessId?: string;
@@ -3701,6 +3704,7 @@ export declare namespace com.pkg.posv1.terminals {
3701
3704
  sessionExpiresAt?: string;
3702
3705
  ownerType?: string;
3703
3706
  ownerId?: string;
3707
+ branchId?: string;
3704
3708
  }): BusinessContextData;
3705
3709
  toObject(): {
3706
3710
  businessContextToken?: string | undefined;
@@ -3745,6 +3749,7 @@ export declare namespace com.pkg.posv1.terminals {
3745
3749
  sessionExpiresAt?: string | undefined;
3746
3750
  ownerType?: string | undefined;
3747
3751
  ownerId?: string | undefined;
3752
+ branchId?: string | undefined;
3748
3753
  };
3749
3754
  serialize(): Uint8Array;
3750
3755
  serialize(w: pb_1.BinaryWriter): void;
@@ -6291,7 +6296,7 @@ export declare namespace com.pkg.posv1.terminals {
6291
6296
  get auditContext(): string;
6292
6297
  set auditContext(value: string);
6293
6298
  get _amount(): "amount" | "none";
6294
- get _description(): "description" | "none";
6299
+ get _description(): "none" | "description";
6295
6300
  get _is_active(): "none" | "isActive";
6296
6301
  get _effective_date(): "none" | "effectiveDate";
6297
6302
  get _expiry_date(): "none" | "expiryDate";
@@ -6799,7 +6804,7 @@ export declare namespace com.pkg.posv1.terminals {
6799
6804
  get auditContext(): string;
6800
6805
  set auditContext(value: string);
6801
6806
  get _limit_amount(): "none" | "limitAmount";
6802
- get _description(): "description" | "none";
6807
+ get _description(): "none" | "description";
6803
6808
  get _is_active(): "none" | "isActive";
6804
6809
  get _effective_date(): "none" | "effectiveDate";
6805
6810
  get _expiry_date(): "none" | "expiryDate";
@@ -7275,6 +7280,7 @@ export declare namespace com.pkg.posv1.terminals {
7275
7280
  sessionExpiresAt?: string | undefined;
7276
7281
  ownerType?: string | undefined;
7277
7282
  ownerId?: string | undefined;
7283
+ branchId?: string | undefined;
7278
7284
  } | undefined;
7279
7285
  error?: string | undefined;
7280
7286
  };
@@ -864,10 +864,10 @@ export declare namespace com.pkg.user {
864
864
  get isPinLocked(): boolean;
865
865
  set isPinLocked(value: boolean);
866
866
  get hasIsPinLocked(): boolean;
867
- get _has_account(): "hasAccount" | "none";
868
- get _completion_stage(): "completionStage" | "none";
869
- get _kyc_status(): "kycStatus" | "none";
870
- get _is_pin_locked(): "isPinLocked" | "none";
867
+ get _has_account(): "none" | "hasAccount";
868
+ get _completion_stage(): "none" | "completionStage";
869
+ get _kyc_status(): "none" | "kycStatus";
870
+ get _is_pin_locked(): "none" | "isPinLocked";
871
871
  static fromObject(data: {
872
872
  page?: number;
873
873
  limit?: number;