@mestra-dev/contract 0.0.320 → 0.0.322

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +1104 -59
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { ApplyGlobalResponse } from 'hono/client';
2
2
  import type { JwtVariables } from 'hono/jwt';
3
3
 
4
+ type SessionRefusal = "PACKAGE_NOT_ACTIVE" | "PACKAGE_ENDED" | "NO_SESSIONS_LEFT";
4
5
  type FinanceAmountType = "revenue" | "commission" | "transit" | "advance" | "conditional";
5
6
  type FinanceExpenseType = "cogs" | "operating" | "transit_payout";
6
7
  type FinanceRefundDirection = "to_customer" | "from_supplier";
@@ -4486,6 +4487,121 @@ declare const routes: import("hono/hono-base").HonoBase<{
4486
4487
  name: string;
4487
4488
  description: string | null;
4488
4489
  }[];
4490
+ }[] | {
4491
+ type: string | null;
4492
+ description: string | null;
4493
+ name: string;
4494
+ active: boolean | null;
4495
+ stock: number | null;
4496
+ currency: string | null;
4497
+ price: number | null;
4498
+ qrCode: string | null;
4499
+ id: string;
4500
+ created_at: string;
4501
+ workspaceId: string;
4502
+ updated_at: string | null;
4503
+ deleted_at: string | null;
4504
+ verified_at: string | null;
4505
+ suspended_at: string | null;
4506
+ created_by: string | null;
4507
+ status: string | null;
4508
+ expiresAt: string | null;
4509
+ seats: number | null;
4510
+ media: string[] | null;
4511
+ publishTags: string[] | null;
4512
+ publishedAt: string | null;
4513
+ serviceType: string | null;
4514
+ hourlyRate: number | null;
4515
+ platforms: string[] | null;
4516
+ keyFeatures: string[] | null;
4517
+ billingModel: string | null;
4518
+ pricePerUser: number | null;
4519
+ pricePerExtraUser: number | null;
4520
+ minimumTermMonths: number | null;
4521
+ trialDays: number | null;
4522
+ planLimits: string[] | null;
4523
+ amountType: string | null;
4524
+ uptimeSla: number | null;
4525
+ dataResidency: string | null;
4526
+ integrations: string[] | null;
4527
+ security: string[] | null;
4528
+ title: string;
4529
+ createdBy: {
4530
+ id: string;
4531
+ firstName: string | null;
4532
+ lastName: string | null;
4533
+ profilePicture: string | null;
4534
+ } | null;
4535
+ tags: {
4536
+ id: string;
4537
+ name: string;
4538
+ description: string | null;
4539
+ }[];
4540
+ }[] | {
4541
+ type: string | null;
4542
+ description: string | null;
4543
+ name: string;
4544
+ active: boolean | null;
4545
+ stock: number | null;
4546
+ currency: string | null;
4547
+ price: number | null;
4548
+ qrCode: string | null;
4549
+ id: string;
4550
+ created_at: string;
4551
+ workspaceId: string;
4552
+ updated_at: string | null;
4553
+ deleted_at: string | null;
4554
+ verified_at: string | null;
4555
+ suspended_at: string | null;
4556
+ created_by: string | null;
4557
+ status: string | null;
4558
+ expiresAt: string | null;
4559
+ address: string | null;
4560
+ city: string | null;
4561
+ district: string | null;
4562
+ latitude: number | null;
4563
+ longitude: number | null;
4564
+ media: string[] | null;
4565
+ publishTags: string[] | null;
4566
+ publishPlatforms: string[] | null;
4567
+ publishedAt: string | null;
4568
+ serviceType: string | null;
4569
+ materials: string[] | null;
4570
+ sku: string | null;
4571
+ specifications: string | null;
4572
+ bom: {
4573
+ [x: string]: string;
4574
+ }[] | null;
4575
+ volumePrices: {
4576
+ [x: string]: string;
4577
+ }[] | null;
4578
+ moq: number | null;
4579
+ leadTimeDays: number | null;
4580
+ monthlyCapacity: string | null;
4581
+ setupTimeHours: number | null;
4582
+ productionLine: string | null;
4583
+ weight: string | null;
4584
+ dimensions: string | null;
4585
+ countryOfOrigin: string | null;
4586
+ batchTracking: boolean | null;
4587
+ qualityStandards: string[] | null;
4588
+ certificates: {
4589
+ [x: string]: string;
4590
+ }[] | null;
4591
+ customerMaterial: boolean | null;
4592
+ processingCost: number | null;
4593
+ title: string;
4594
+ createdBy: {
4595
+ id: string;
4596
+ firstName: string | null;
4597
+ lastName: string | null;
4598
+ profilePicture: string | null;
4599
+ } | null;
4600
+ tags: {
4601
+ id: string;
4602
+ name: string;
4603
+ description: string | null;
4604
+ }[];
4489
4605
  }[];
4490
4606
  };
4491
4607
  outputFormat: "json";
@@ -5314,6 +5430,121 @@ declare const routes: import("hono/hono-base").HonoBase<{
5314
5430
  name: string;
5315
5431
  description: string | null;
5316
5432
  }[];
5433
+ }[] | {
5434
+ type: string | null;
5435
+ description: string | null;
5436
+ name: string;
5437
+ active: boolean | null;
5438
+ stock: number | null;
5439
+ currency: string | null;
5440
+ price: number | null;
5441
+ qrCode: string | null;
5442
+ id: string;
5443
+ created_at: string;
5444
+ workspaceId: string;
5445
+ updated_at: string | null;
5446
+ deleted_at: string | null;
5447
+ verified_at: string | null;
5448
+ suspended_at: string | null;
5449
+ created_by: string | null;
5450
+ status: string | null;
5451
+ expiresAt: string | null;
5452
+ seats: number | null;
5453
+ media: string[] | null;
5454
+ publishTags: string[] | null;
5455
+ publishedAt: string | null;
5456
+ serviceType: string | null;
5457
+ hourlyRate: number | null;
5458
+ platforms: string[] | null;
5459
+ keyFeatures: string[] | null;
5460
+ billingModel: string | null;
5461
+ pricePerUser: number | null;
5462
+ pricePerExtraUser: number | null;
5463
+ minimumTermMonths: number | null;
5464
+ trialDays: number | null;
5465
+ planLimits: string[] | null;
5466
+ amountType: string | null;
5467
+ uptimeSla: number | null;
5468
+ dataResidency: string | null;
5469
+ integrations: string[] | null;
5470
+ security: string[] | null;
5471
+ title: string;
5472
+ createdBy: {
5473
+ id: string;
5474
+ firstName: string | null;
5475
+ lastName: string | null;
5476
+ profilePicture: string | null;
5477
+ } | null;
5478
+ tags: {
5479
+ id: string;
5480
+ name: string;
5481
+ description: string | null;
5482
+ }[];
5483
+ }[] | {
5484
+ type: string | null;
5485
+ description: string | null;
5486
+ name: string;
5487
+ active: boolean | null;
5488
+ stock: number | null;
5489
+ currency: string | null;
5490
+ price: number | null;
5491
+ qrCode: string | null;
5492
+ id: string;
5493
+ created_at: string;
5494
+ workspaceId: string;
5495
+ updated_at: string | null;
5496
+ deleted_at: string | null;
5497
+ verified_at: string | null;
5498
+ suspended_at: string | null;
5499
+ created_by: string | null;
5500
+ status: string | null;
5501
+ expiresAt: string | null;
5502
+ address: string | null;
5503
+ city: string | null;
5504
+ district: string | null;
5505
+ latitude: number | null;
5506
+ longitude: number | null;
5507
+ media: string[] | null;
5508
+ publishTags: string[] | null;
5509
+ publishPlatforms: string[] | null;
5510
+ publishedAt: string | null;
5511
+ serviceType: string | null;
5512
+ materials: string[] | null;
5513
+ sku: string | null;
5514
+ specifications: string | null;
5515
+ bom: {
5516
+ [x: string]: string;
5517
+ }[] | null;
5518
+ volumePrices: {
5519
+ [x: string]: string;
5520
+ }[] | null;
5521
+ moq: number | null;
5522
+ leadTimeDays: number | null;
5523
+ monthlyCapacity: string | null;
5524
+ setupTimeHours: number | null;
5525
+ productionLine: string | null;
5526
+ weight: string | null;
5527
+ dimensions: string | null;
5528
+ countryOfOrigin: string | null;
5529
+ batchTracking: boolean | null;
5530
+ qualityStandards: string[] | null;
5531
+ certificates: {
5532
+ [x: string]: string;
5533
+ }[] | null;
5534
+ customerMaterial: boolean | null;
5535
+ processingCost: number | null;
5536
+ title: string;
5537
+ createdBy: {
5538
+ id: string;
5539
+ firstName: string | null;
5540
+ lastName: string | null;
5541
+ profilePicture: string | null;
5542
+ } | null;
5543
+ tags: {
5544
+ id: string;
5545
+ name: string;
5546
+ description: string | null;
5547
+ }[];
5317
5548
  }[] | {
5318
5549
  updated_at: string | null;
5319
5550
  deleted_at: string | null;
@@ -6232,6 +6463,121 @@ declare const routes: import("hono/hono-base").HonoBase<{
6232
6463
  name: string;
6233
6464
  description: string | null;
6234
6465
  }[];
6466
+ }[] | {
6467
+ type: string | null;
6468
+ description: string | null;
6469
+ name: string;
6470
+ active: boolean | null;
6471
+ stock: number | null;
6472
+ currency: string | null;
6473
+ price: number | null;
6474
+ qrCode: string | null;
6475
+ id: string;
6476
+ created_at: string;
6477
+ workspaceId: string;
6478
+ updated_at: string | null;
6479
+ deleted_at: string | null;
6480
+ verified_at: string | null;
6481
+ suspended_at: string | null;
6482
+ created_by: string | null;
6483
+ status: string | null;
6484
+ expiresAt: string | null;
6485
+ seats: number | null;
6486
+ media: string[] | null;
6487
+ publishTags: string[] | null;
6488
+ publishedAt: string | null;
6489
+ serviceType: string | null;
6490
+ hourlyRate: number | null;
6491
+ platforms: string[] | null;
6492
+ keyFeatures: string[] | null;
6493
+ billingModel: string | null;
6494
+ pricePerUser: number | null;
6495
+ pricePerExtraUser: number | null;
6496
+ minimumTermMonths: number | null;
6497
+ trialDays: number | null;
6498
+ planLimits: string[] | null;
6499
+ amountType: string | null;
6500
+ uptimeSla: number | null;
6501
+ dataResidency: string | null;
6502
+ integrations: string[] | null;
6503
+ security: string[] | null;
6504
+ title: string;
6505
+ createdBy: {
6506
+ id: string;
6507
+ firstName: string | null;
6508
+ lastName: string | null;
6509
+ profilePicture: string | null;
6510
+ } | null;
6511
+ tags: {
6512
+ id: string;
6513
+ name: string;
6514
+ description: string | null;
6515
+ }[];
6516
+ }[] | {
6517
+ type: string | null;
6518
+ description: string | null;
6519
+ name: string;
6520
+ active: boolean | null;
6521
+ stock: number | null;
6522
+ currency: string | null;
6523
+ price: number | null;
6524
+ qrCode: string | null;
6525
+ id: string;
6526
+ created_at: string;
6527
+ workspaceId: string;
6528
+ updated_at: string | null;
6529
+ deleted_at: string | null;
6530
+ verified_at: string | null;
6531
+ suspended_at: string | null;
6532
+ created_by: string | null;
6533
+ status: string | null;
6534
+ expiresAt: string | null;
6535
+ address: string | null;
6536
+ city: string | null;
6537
+ district: string | null;
6538
+ latitude: number | null;
6539
+ longitude: number | null;
6540
+ media: string[] | null;
6541
+ publishTags: string[] | null;
6542
+ publishPlatforms: string[] | null;
6543
+ publishedAt: string | null;
6544
+ serviceType: string | null;
6545
+ materials: string[] | null;
6546
+ sku: string | null;
6547
+ specifications: string | null;
6548
+ bom: {
6549
+ [x: string]: string;
6550
+ }[] | null;
6551
+ volumePrices: {
6552
+ [x: string]: string;
6553
+ }[] | null;
6554
+ moq: number | null;
6555
+ leadTimeDays: number | null;
6556
+ monthlyCapacity: string | null;
6557
+ setupTimeHours: number | null;
6558
+ productionLine: string | null;
6559
+ weight: string | null;
6560
+ dimensions: string | null;
6561
+ countryOfOrigin: string | null;
6562
+ batchTracking: boolean | null;
6563
+ qualityStandards: string[] | null;
6564
+ certificates: {
6565
+ [x: string]: string;
6566
+ }[] | null;
6567
+ customerMaterial: boolean | null;
6568
+ processingCost: number | null;
6569
+ title: string;
6570
+ createdBy: {
6571
+ id: string;
6572
+ firstName: string | null;
6573
+ lastName: string | null;
6574
+ profilePicture: string | null;
6575
+ } | null;
6576
+ tags: {
6577
+ id: string;
6578
+ name: string;
6579
+ description: string | null;
6580
+ }[];
6235
6581
  }[] | {
6236
6582
  createdBy: {
6237
6583
  id: string;
@@ -7191,7 +7537,122 @@ declare const routes: import("hono/hono-base").HonoBase<{
7191
7537
  description: string | null;
7192
7538
  }[];
7193
7539
  } | {
7194
- createdBy: {
7540
+ type: string | null;
7541
+ description: string | null;
7542
+ name: string;
7543
+ active: boolean | null;
7544
+ stock: number | null;
7545
+ currency: string | null;
7546
+ price: number | null;
7547
+ qrCode: string | null;
7548
+ id: string;
7549
+ created_at: string;
7550
+ workspaceId: string;
7551
+ updated_at: string | null;
7552
+ deleted_at: string | null;
7553
+ verified_at: string | null;
7554
+ suspended_at: string | null;
7555
+ created_by: string | null;
7556
+ status: string | null;
7557
+ expiresAt: string | null;
7558
+ seats: number | null;
7559
+ media: string[] | null;
7560
+ publishTags: string[] | null;
7561
+ publishedAt: string | null;
7562
+ serviceType: string | null;
7563
+ hourlyRate: number | null;
7564
+ platforms: string[] | null;
7565
+ keyFeatures: string[] | null;
7566
+ billingModel: string | null;
7567
+ pricePerUser: number | null;
7568
+ pricePerExtraUser: number | null;
7569
+ minimumTermMonths: number | null;
7570
+ trialDays: number | null;
7571
+ planLimits: string[] | null;
7572
+ amountType: string | null;
7573
+ uptimeSla: number | null;
7574
+ dataResidency: string | null;
7575
+ integrations: string[] | null;
7576
+ security: string[] | null;
7577
+ title: string;
7578
+ createdBy: {
7579
+ id: string;
7580
+ firstName: string | null;
7581
+ lastName: string | null;
7582
+ profilePicture: string | null;
7583
+ } | null;
7584
+ tags: {
7585
+ id: string;
7586
+ name: string;
7587
+ description: string | null;
7588
+ }[];
7589
+ } | {
7590
+ type: string | null;
7591
+ description: string | null;
7592
+ name: string;
7593
+ active: boolean | null;
7594
+ stock: number | null;
7595
+ currency: string | null;
7596
+ price: number | null;
7597
+ qrCode: string | null;
7598
+ id: string;
7599
+ created_at: string;
7600
+ workspaceId: string;
7601
+ updated_at: string | null;
7602
+ deleted_at: string | null;
7603
+ verified_at: string | null;
7604
+ suspended_at: string | null;
7605
+ created_by: string | null;
7606
+ status: string | null;
7607
+ expiresAt: string | null;
7608
+ address: string | null;
7609
+ city: string | null;
7610
+ district: string | null;
7611
+ latitude: number | null;
7612
+ longitude: number | null;
7613
+ media: string[] | null;
7614
+ publishTags: string[] | null;
7615
+ publishPlatforms: string[] | null;
7616
+ publishedAt: string | null;
7617
+ serviceType: string | null;
7618
+ materials: string[] | null;
7619
+ sku: string | null;
7620
+ specifications: string | null;
7621
+ bom: {
7622
+ [x: string]: string;
7623
+ }[] | null;
7624
+ volumePrices: {
7625
+ [x: string]: string;
7626
+ }[] | null;
7627
+ moq: number | null;
7628
+ leadTimeDays: number | null;
7629
+ monthlyCapacity: string | null;
7630
+ setupTimeHours: number | null;
7631
+ productionLine: string | null;
7632
+ weight: string | null;
7633
+ dimensions: string | null;
7634
+ countryOfOrigin: string | null;
7635
+ batchTracking: boolean | null;
7636
+ qualityStandards: string[] | null;
7637
+ certificates: {
7638
+ [x: string]: string;
7639
+ }[] | null;
7640
+ customerMaterial: boolean | null;
7641
+ processingCost: number | null;
7642
+ title: string;
7643
+ createdBy: {
7644
+ id: string;
7645
+ firstName: string | null;
7646
+ lastName: string | null;
7647
+ profilePicture: string | null;
7648
+ } | null;
7649
+ tags: {
7650
+ id: string;
7651
+ name: string;
7652
+ description: string | null;
7653
+ }[];
7654
+ } | {
7655
+ createdBy: {
7195
7656
  id: string;
7196
7657
  firstName: string | null;
7197
7658
  lastName: string | null;
@@ -7483,13 +7944,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
7483
7944
  verified_at: string | null;
7484
7945
  suspended_at: string | null;
7485
7946
  created_by: string | null;
7947
+ companyName: string | null;
7486
7948
  telegram: string | null;
7487
7949
  whatsapp: string | null;
7488
- clientId: string | null;
7489
- gender: string | null;
7490
- accessCardNumber: string | null;
7491
- emergencyContactName: string | null;
7492
- emergencyContactPhone: string | null;
7493
7950
  membershipStatus: string | null;
7494
7951
  goals: string[] | null;
7495
7952
  level: string | null;
@@ -7497,6 +7954,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
7497
7954
  preferredPayments: string[] | null;
7498
7955
  healthNotes: string | null;
7499
7956
  medicalClearanceUntil: string | null;
7957
+ inn: string | null;
7958
+ kpp: string | null;
7959
+ ogrn: string | null;
7960
+ clientId: string | null;
7961
+ gender: string | null;
7962
+ accessCardNumber: string | null;
7963
+ emergencyContactName: string | null;
7964
+ emergencyContactPhone: string | null;
7500
7965
  createdBy: {
7501
7966
  id: string;
7502
7967
  firstName: string | null;
@@ -7815,8 +8280,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
7815
8280
  telegram: string | null;
7816
8281
  whatsapp: string | null;
7817
8282
  maternityCapital: boolean | null;
7818
- gender: string | null;
7819
8283
  level: string | null;
8284
+ gender: string | null;
7820
8285
  preferredPayment: string[] | null;
7821
8286
  studentId: string | null;
7822
8287
  schoolGrade: string | null;
@@ -8084,6 +8549,95 @@ declare const routes: import("hono/hono-base").HonoBase<{
8084
8549
  name: string;
8085
8550
  description: string | null;
8086
8551
  }[];
8552
+ }[] | {
8553
+ type: string | null;
8554
+ email: string | null;
8555
+ description: string | null;
8556
+ name: string;
8557
+ active: boolean | null;
8558
+ phone: string | null;
8559
+ website: string | null;
8560
+ birthDate: string | null;
8561
+ companyPhone: string | null;
8562
+ companyAddress: string | null;
8563
+ address: string | null;
8564
+ utmSource: string | null;
8565
+ id: string;
8566
+ created_at: string;
8567
+ workspaceId: string;
8568
+ updated_at: string | null;
8569
+ deleted_at: string | null;
8570
+ verified_at: string | null;
8571
+ suspended_at: string | null;
8572
+ created_by: string | null;
8573
+ plan: string | null;
8574
+ telegram: string | null;
8575
+ whatsapp: string | null;
8576
+ preferredCurrency: string | null;
8577
+ inn: string | null;
8578
+ industry: string | null;
8579
+ clientStatus: string | null;
8580
+ churnDate: string | null;
8581
+ churnReason: string | null;
8582
+ churnedTo: string | null;
8583
+ winBack: string | null;
8584
+ churnComment: string | null;
8585
+ users: number | null;
8586
+ trialEndsAt: string | null;
8587
+ renewalDate: string | null;
8588
+ createdBy: {
8589
+ id: string;
8590
+ firstName: string | null;
8591
+ lastName: string | null;
8592
+ profilePicture: string | null;
8593
+ } | null;
8594
+ tags: {
8595
+ id: string;
8596
+ name: string;
8597
+ description: string | null;
8598
+ }[];
8599
+ }[] | {
8600
+ type: string | null;
8601
+ email: string | null;
8602
+ description: string | null;
8603
+ name: string;
8604
+ active: boolean | null;
8605
+ phone: string | null;
8606
+ website: string | null;
8607
+ birthDate: string | null;
8608
+ companyPhone: string | null;
8609
+ companyAddress: string | null;
8610
+ address: string | null;
8611
+ utmSource: string | null;
8612
+ id: string;
8613
+ created_at: string;
8614
+ workspaceId: string;
8615
+ updated_at: string | null;
8616
+ deleted_at: string | null;
8617
+ verified_at: string | null;
8618
+ suspended_at: string | null;
8619
+ created_by: string | null;
8620
+ telegram: string | null;
8621
+ whatsapp: string | null;
8622
+ preferredCurrency: string | null;
8623
+ preferredPayments: string[] | null;
8624
+ inn: string | null;
8625
+ industry: string | null;
8626
+ clientStatus: string | null;
8627
+ requisites: string | null;
8628
+ paymentDeferralDays: number | null;
8629
+ creditLimit: number | null;
8630
+ createdBy: {
8631
+ id: string;
8632
+ firstName: string | null;
8633
+ lastName: string | null;
8634
+ profilePicture: string | null;
8635
+ } | null;
8636
+ tags: {
8637
+ id: string;
8638
+ name: string;
8639
+ description: string | null;
8640
+ }[];
8087
8641
  }[];
8088
8642
  };
8089
8643
  outputFormat: "json";
@@ -8244,13 +8798,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
8244
8798
  verified_at: string | null;
8245
8799
  suspended_at: string | null;
8246
8800
  created_by: string | null;
8801
+ companyName: string | null;
8247
8802
  telegram: string | null;
8248
8803
  whatsapp: string | null;
8249
- clientId: string | null;
8250
- gender: string | null;
8251
- accessCardNumber: string | null;
8252
- emergencyContactName: string | null;
8253
- emergencyContactPhone: string | null;
8254
8804
  membershipStatus: string | null;
8255
8805
  goals: string[] | null;
8256
8806
  level: string | null;
@@ -8258,6 +8808,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
8258
8808
  preferredPayments: string[] | null;
8259
8809
  healthNotes: string | null;
8260
8810
  medicalClearanceUntil: string | null;
8811
+ inn: string | null;
8812
+ kpp: string | null;
8813
+ ogrn: string | null;
8814
+ clientId: string | null;
8815
+ gender: string | null;
8816
+ accessCardNumber: string | null;
8817
+ emergencyContactName: string | null;
8818
+ emergencyContactPhone: string | null;
8261
8819
  createdBy: {
8262
8820
  id: string;
8263
8821
  firstName: string | null;
@@ -8582,8 +9140,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
8582
9140
  telegram: string | null;
8583
9141
  whatsapp: string | null;
8584
9142
  maternityCapital: boolean | null;
8585
- gender: string | null;
8586
9143
  level: string | null;
9144
+ gender: string | null;
8587
9145
  preferredPayment: string[] | null;
8588
9146
  studentId: string | null;
8589
9147
  schoolGrade: string | null;
@@ -8857,6 +9415,97 @@ declare const routes: import("hono/hono-base").HonoBase<{
8857
9415
  description: string | null;
8858
9416
  }[];
8859
9417
  subscriptionEndDate: string | null;
9418
+ }[] | {
9419
+ type: string | null;
9420
+ email: string | null;
9421
+ description: string | null;
9422
+ name: string;
9423
+ active: boolean | null;
9424
+ phone: string | null;
9425
+ website: string | null;
9426
+ birthDate: string | null;
9427
+ companyPhone: string | null;
9428
+ companyAddress: string | null;
9429
+ address: string | null;
9430
+ utmSource: string | null;
9431
+ id: string;
9432
+ created_at: string;
9433
+ workspaceId: string;
9434
+ updated_at: string | null;
9435
+ deleted_at: string | null;
9436
+ verified_at: string | null;
9437
+ suspended_at: string | null;
9438
+ created_by: string | null;
9439
+ plan: string | null;
9440
+ telegram: string | null;
9441
+ whatsapp: string | null;
9442
+ preferredCurrency: string | null;
9443
+ inn: string | null;
9444
+ industry: string | null;
9445
+ clientStatus: string | null;
9446
+ churnDate: string | null;
9447
+ churnReason: string | null;
9448
+ churnedTo: string | null;
9449
+ winBack: string | null;
9450
+ churnComment: string | null;
9451
+ users: number | null;
9452
+ trialEndsAt: string | null;
9453
+ renewalDate: string | null;
9454
+ createdBy: {
9455
+ id: string;
9456
+ firstName: string | null;
9457
+ lastName: string | null;
9458
+ profilePicture: string | null;
9459
+ } | null;
9460
+ tags: {
9461
+ id: string;
9462
+ name: string;
9463
+ description: string | null;
9464
+ }[];
9465
+ subscriptionEndDate: string | null;
9466
+ }[] | {
9467
+ type: string | null;
9468
+ email: string | null;
9469
+ description: string | null;
9470
+ name: string;
9471
+ active: boolean | null;
9472
+ phone: string | null;
9473
+ website: string | null;
9474
+ birthDate: string | null;
9475
+ companyPhone: string | null;
9476
+ companyAddress: string | null;
9477
+ address: string | null;
9478
+ utmSource: string | null;
9479
+ id: string;
9480
+ created_at: string;
9481
+ workspaceId: string;
9482
+ updated_at: string | null;
9483
+ deleted_at: string | null;
9484
+ verified_at: string | null;
9485
+ suspended_at: string | null;
9486
+ created_by: string | null;
9487
+ telegram: string | null;
9488
+ whatsapp: string | null;
9489
+ preferredCurrency: string | null;
9490
+ preferredPayments: string[] | null;
9491
+ inn: string | null;
9492
+ industry: string | null;
9493
+ clientStatus: string | null;
9494
+ requisites: string | null;
9495
+ paymentDeferralDays: number | null;
9496
+ creditLimit: number | null;
9497
+ createdBy: {
9498
+ id: string;
9499
+ firstName: string | null;
9500
+ lastName: string | null;
9501
+ profilePicture: string | null;
9502
+ } | null;
9503
+ tags: {
9504
+ id: string;
9505
+ name: string;
9506
+ description: string | null;
9507
+ }[];
9508
+ subscriptionEndDate: string | null;
8860
9509
  }[];
8861
9510
  };
8862
9511
  outputFormat: "json";
@@ -9021,13 +9670,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
9021
9670
  verified_at: string | null;
9022
9671
  suspended_at: string | null;
9023
9672
  created_by: string | null;
9673
+ companyName: string | null;
9024
9674
  telegram: string | null;
9025
9675
  whatsapp: string | null;
9026
- clientId: string | null;
9027
- gender: string | null;
9028
- accessCardNumber: string | null;
9029
- emergencyContactName: string | null;
9030
- emergencyContactPhone: string | null;
9031
9676
  membershipStatus: string | null;
9032
9677
  goals: string[] | null;
9033
9678
  level: string | null;
@@ -9035,6 +9680,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
9035
9680
  preferredPayments: string[] | null;
9036
9681
  healthNotes: string | null;
9037
9682
  medicalClearanceUntil: string | null;
9683
+ inn: string | null;
9684
+ kpp: string | null;
9685
+ ogrn: string | null;
9686
+ clientId: string | null;
9687
+ gender: string | null;
9688
+ accessCardNumber: string | null;
9689
+ emergencyContactName: string | null;
9690
+ emergencyContactPhone: string | null;
9038
9691
  createdBy: {
9039
9692
  id: string;
9040
9693
  firstName: string | null;
@@ -9353,8 +10006,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
9353
10006
  telegram: string | null;
9354
10007
  whatsapp: string | null;
9355
10008
  maternityCapital: boolean | null;
9356
- gender: string | null;
9357
10009
  level: string | null;
10010
+ gender: string | null;
9358
10011
  preferredPayment: string[] | null;
9359
10012
  studentId: string | null;
9360
10013
  schoolGrade: string | null;
@@ -9622,6 +10275,95 @@ declare const routes: import("hono/hono-base").HonoBase<{
9622
10275
  name: string;
9623
10276
  description: string | null;
9624
10277
  }[];
10278
+ } | {
10279
+ type: string | null;
10280
+ email: string | null;
10281
+ description: string | null;
10282
+ name: string;
10283
+ active: boolean | null;
10284
+ phone: string | null;
10285
+ website: string | null;
10286
+ birthDate: string | null;
10287
+ companyPhone: string | null;
10288
+ companyAddress: string | null;
10289
+ address: string | null;
10290
+ utmSource: string | null;
10291
+ id: string;
10292
+ created_at: string;
10293
+ workspaceId: string;
10294
+ updated_at: string | null;
10295
+ deleted_at: string | null;
10296
+ verified_at: string | null;
10297
+ suspended_at: string | null;
10298
+ created_by: string | null;
10299
+ plan: string | null;
10300
+ telegram: string | null;
10301
+ whatsapp: string | null;
10302
+ preferredCurrency: string | null;
10303
+ inn: string | null;
10304
+ industry: string | null;
10305
+ clientStatus: string | null;
10306
+ churnDate: string | null;
10307
+ churnReason: string | null;
10308
+ churnedTo: string | null;
10309
+ winBack: string | null;
10310
+ churnComment: string | null;
10311
+ users: number | null;
10312
+ trialEndsAt: string | null;
10313
+ renewalDate: string | null;
10314
+ createdBy: {
10315
+ id: string;
10316
+ firstName: string | null;
10317
+ lastName: string | null;
10318
+ profilePicture: string | null;
10319
+ } | null;
10320
+ tags: {
10321
+ id: string;
10322
+ name: string;
10323
+ description: string | null;
10324
+ }[];
10325
+ } | {
10326
+ type: string | null;
10327
+ email: string | null;
10328
+ description: string | null;
10329
+ name: string;
10330
+ active: boolean | null;
10331
+ phone: string | null;
10332
+ website: string | null;
10333
+ birthDate: string | null;
10334
+ companyPhone: string | null;
10335
+ companyAddress: string | null;
10336
+ address: string | null;
10337
+ utmSource: string | null;
10338
+ id: string;
10339
+ created_at: string;
10340
+ workspaceId: string;
10341
+ updated_at: string | null;
10342
+ deleted_at: string | null;
10343
+ verified_at: string | null;
10344
+ suspended_at: string | null;
10345
+ created_by: string | null;
10346
+ telegram: string | null;
10347
+ whatsapp: string | null;
10348
+ preferredCurrency: string | null;
10349
+ preferredPayments: string[] | null;
10350
+ inn: string | null;
10351
+ industry: string | null;
10352
+ clientStatus: string | null;
10353
+ requisites: string | null;
10354
+ paymentDeferralDays: number | null;
10355
+ creditLimit: number | null;
10356
+ createdBy: {
10357
+ id: string;
10358
+ firstName: string | null;
10359
+ lastName: string | null;
10360
+ profilePicture: string | null;
10361
+ } | null;
10362
+ tags: {
10363
+ id: string;
10364
+ name: string;
10365
+ description: string | null;
10366
+ }[];
9625
10367
  };
9626
10368
  };
9627
10369
  outputFormat: "json";
@@ -9722,13 +10464,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
9722
10464
  verified_at: string | null;
9723
10465
  suspended_at: string | null;
9724
10466
  created_by: string | null;
10467
+ companyName: string | null;
9725
10468
  telegram: string | null;
9726
10469
  whatsapp: string | null;
9727
- clientId: string | null;
9728
- gender: string | null;
9729
- accessCardNumber: string | null;
9730
- emergencyContactName: string | null;
9731
- emergencyContactPhone: string | null;
9732
10470
  membershipStatus: string | null;
9733
10471
  goals: string[] | null;
9734
10472
  level: string | null;
@@ -9736,6 +10474,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
9736
10474
  preferredPayments: string[] | null;
9737
10475
  healthNotes: string | null;
9738
10476
  medicalClearanceUntil: string | null;
10477
+ inn: string | null;
10478
+ kpp: string | null;
10479
+ ogrn: string | null;
10480
+ clientId: string | null;
10481
+ gender: string | null;
10482
+ accessCardNumber: string | null;
10483
+ emergencyContactName: string | null;
10484
+ emergencyContactPhone: string | null;
9739
10485
  createdBy: {
9740
10486
  id: string;
9741
10487
  firstName: string | null;
@@ -10054,8 +10800,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
10054
10800
  telegram: string | null;
10055
10801
  whatsapp: string | null;
10056
10802
  maternityCapital: boolean | null;
10057
- gender: string | null;
10058
10803
  level: string | null;
10804
+ gender: string | null;
10059
10805
  preferredPayment: string[] | null;
10060
10806
  studentId: string | null;
10061
10807
  schoolGrade: string | null;
@@ -10260,16 +11006,105 @@ declare const routes: import("hono/hono-base").HonoBase<{
10260
11006
  whatsapp: string | null;
10261
11007
  preferredCurrency: string | null;
10262
11008
  inn: string | null;
10263
- kpp: string | null;
11009
+ kpp: string | null;
11010
+ clientStatus: string | null;
11011
+ marketingBudget: number | null;
11012
+ accesses: {
11013
+ [x: string]: string;
11014
+ }[] | null;
11015
+ brandBook: string | null;
11016
+ kpi: {
11017
+ [x: string]: string;
11018
+ }[] | null;
11019
+ createdBy: {
11020
+ id: string;
11021
+ firstName: string | null;
11022
+ lastName: string | null;
11023
+ profilePicture: string | null;
11024
+ } | null;
11025
+ tags: {
11026
+ id: string;
11027
+ name: string;
11028
+ description: string | null;
11029
+ }[];
11030
+ }[] | {
11031
+ type: string | null;
11032
+ email: string | null;
11033
+ description: string | null;
11034
+ name: string;
11035
+ active: boolean | null;
11036
+ phone: string | null;
11037
+ website: string | null;
11038
+ birthDate: string | null;
11039
+ companyPhone: string | null;
11040
+ companyAddress: string | null;
11041
+ address: string | null;
11042
+ utmSource: string | null;
11043
+ id: string;
11044
+ created_at: string;
11045
+ workspaceId: string;
11046
+ updated_at: string | null;
11047
+ deleted_at: string | null;
11048
+ verified_at: string | null;
11049
+ suspended_at: string | null;
11050
+ created_by: string | null;
11051
+ telegram: string | null;
11052
+ whatsapp: string | null;
11053
+ preferredCurrency: string | null;
11054
+ inn: string | null;
11055
+ preferredPayment: string | null;
11056
+ preferences: string[] | null;
11057
+ documentType: string | null;
11058
+ documentNumber: string | null;
11059
+ loyaltyLevel: string | null;
11060
+ loyaltyNumber: string | null;
11061
+ createdBy: {
11062
+ id: string;
11063
+ firstName: string | null;
11064
+ lastName: string | null;
11065
+ profilePicture: string | null;
11066
+ } | null;
11067
+ tags: {
11068
+ id: string;
11069
+ name: string;
11070
+ description: string | null;
11071
+ }[];
11072
+ }[] | {
11073
+ type: string | null;
11074
+ email: string | null;
11075
+ description: string | null;
11076
+ name: string;
11077
+ active: boolean | null;
11078
+ phone: string | null;
11079
+ website: string | null;
11080
+ birthDate: string | null;
11081
+ companyPhone: string | null;
11082
+ companyAddress: string | null;
11083
+ address: string | null;
11084
+ utmSource: string | null;
11085
+ id: string;
11086
+ created_at: string;
11087
+ workspaceId: string;
11088
+ updated_at: string | null;
11089
+ deleted_at: string | null;
11090
+ verified_at: string | null;
11091
+ suspended_at: string | null;
11092
+ created_by: string | null;
11093
+ plan: string | null;
11094
+ telegram: string | null;
11095
+ whatsapp: string | null;
11096
+ preferredCurrency: string | null;
11097
+ inn: string | null;
11098
+ industry: string | null;
10264
11099
  clientStatus: string | null;
10265
- marketingBudget: number | null;
10266
- accesses: {
10267
- [x: string]: string;
10268
- }[] | null;
10269
- brandBook: string | null;
10270
- kpi: {
10271
- [x: string]: string;
10272
- }[] | null;
11100
+ churnDate: string | null;
11101
+ churnReason: string | null;
11102
+ churnedTo: string | null;
11103
+ winBack: string | null;
11104
+ churnComment: string | null;
11105
+ users: number | null;
11106
+ trialEndsAt: string | null;
11107
+ renewalDate: string | null;
10273
11108
  createdBy: {
10274
11109
  id: string;
10275
11110
  firstName: string | null;
@@ -10305,13 +11140,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
10305
11140
  telegram: string | null;
10306
11141
  whatsapp: string | null;
10307
11142
  preferredCurrency: string | null;
11143
+ preferredPayments: string[] | null;
10308
11144
  inn: string | null;
10309
- preferredPayment: string | null;
10310
- preferences: string[] | null;
10311
- documentType: string | null;
10312
- documentNumber: string | null;
10313
- loyaltyLevel: string | null;
10314
- loyaltyNumber: string | null;
11145
+ industry: string | null;
11146
+ clientStatus: string | null;
11147
+ requisites: string | null;
11148
+ paymentDeferralDays: number | null;
11149
+ creditLimit: number | null;
10315
11150
  createdBy: {
10316
11151
  id: string;
10317
11152
  firstName: string | null;
@@ -10673,21 +11508,64 @@ declare const routes: import("hono/hono-base").HonoBase<{
10673
11508
  customerId: string;
10674
11509
  date: string;
10675
11510
  status: string | null;
11511
+ id: string;
10676
11512
  fields: {
10677
11513
  [x: string]: import("hono/utils/types").JSONValue;
10678
11514
  };
10679
11515
  events: {
10680
11516
  [x: string]: string;
10681
11517
  } | null;
10682
- id: string;
10683
11518
  workspaceId: string;
10684
11519
  createdAt: string;
10685
11520
  updatedAt: string;
10686
11521
  createdBy: string | null;
10687
11522
  };
11523
+ related: {
11524
+ type: string;
11525
+ customerId: string;
11526
+ date: string;
11527
+ status: string | null;
11528
+ id: string;
11529
+ fields: {
11530
+ [x: string]: import("hono/utils/types").JSONValue;
11531
+ };
11532
+ events: {
11533
+ [x: string]: string;
11534
+ } | null;
11535
+ workspaceId: string;
11536
+ createdAt: string;
11537
+ updatedAt: string;
11538
+ createdBy: string | null;
11539
+ }[];
10688
11540
  };
10689
11541
  outputFormat: "json";
10690
11542
  status: 201;
11543
+ } | {
11544
+ input: {
11545
+ json: {
11546
+ workspace: string;
11547
+ customerId: string;
11548
+ type: string;
11549
+ status?: string | null | undefined;
11550
+ date: string;
11551
+ fields?: {
11552
+ [x: string]: string | number | boolean | string[] | {
11553
+ [x: string]: string;
11554
+ }[] | null;
11555
+ } | undefined;
11556
+ events?: {
11557
+ [x: string]: string;
11558
+ } | null | undefined;
11559
+ };
11560
+ };
11561
+ output: {
11562
+ success: false;
11563
+ error: string;
11564
+ code: SessionRefusal;
11565
+ packageId: string;
11566
+ };
11567
+ outputFormat: "json";
11568
+ status: 409;
10691
11569
  };
10692
11570
  };
10693
11571
  } & {
@@ -10762,21 +11640,63 @@ declare const routes: import("hono/hono-base").HonoBase<{
10762
11640
  customerId: string;
10763
11641
  date: string;
10764
11642
  status: string | null;
11643
+ id: string;
10765
11644
  fields: {
10766
11645
  [x: string]: import("hono/utils/types").JSONValue;
10767
11646
  };
10768
11647
  events: {
10769
11648
  [x: string]: string;
10770
11649
  } | null;
10771
- id: string;
10772
11650
  workspaceId: string;
10773
11651
  createdAt: string;
10774
11652
  updatedAt: string;
10775
11653
  createdBy: string | null;
10776
11654
  };
11655
+ related: {
11656
+ type: string;
11657
+ customerId: string;
11658
+ date: string;
11659
+ status: string | null;
11660
+ id: string;
11661
+ fields: {
11662
+ [x: string]: import("hono/utils/types").JSONValue;
11663
+ };
11664
+ events: {
11665
+ [x: string]: string;
11666
+ } | null;
11667
+ workspaceId: string;
11668
+ createdAt: string;
11669
+ updatedAt: string;
11670
+ createdBy: string | null;
11671
+ }[];
10777
11672
  };
10778
11673
  outputFormat: "json";
10779
11674
  status: 200;
11675
+ } | {
11676
+ input: {
11677
+ json: {
11678
+ workspace: string;
11679
+ recordId: string;
11680
+ status?: string | null | undefined;
11681
+ date?: string | undefined;
11682
+ fields?: {
11683
+ [x: string]: string | number | boolean | string[] | {
11684
+ [x: string]: string;
11685
+ }[] | null;
11686
+ } | undefined;
11687
+ events?: {
11688
+ [x: string]: string;
11689
+ } | null | undefined;
11690
+ };
11691
+ };
11692
+ output: {
11693
+ success: false;
11694
+ error: string;
11695
+ code: SessionRefusal;
11696
+ packageId: string;
11697
+ };
11698
+ outputFormat: "json";
11699
+ status: 409;
10780
11700
  };
10781
11701
  };
10782
11702
  } & {
@@ -10803,6 +11723,65 @@ declare const routes: import("hono/hono-base").HonoBase<{
10803
11723
  };
10804
11724
  output: {
10805
11725
  success: true;
11726
+ related: {
11727
+ type: string;
11728
+ customerId: string;
11729
+ date: string;
11730
+ status: string | null;
11731
+ id: string;
11732
+ fields: {
11733
+ [x: string]: import("hono/utils/types").JSONValue;
11734
+ };
11735
+ events: {
11736
+ [x: string]: string;
11737
+ } | null;
11738
+ workspaceId: string;
11739
+ createdAt: string;
11740
+ updatedAt: string;
11741
+ createdBy: string | null;
11742
+ }[];
11743
+ };
11744
+ outputFormat: "json";
11745
+ status: 200;
11746
+ };
11747
+ };
11748
+ } & {
11749
+ "/churn-reasons/:workspace": {
11750
+ $get: {
11751
+ input: {
11752
+ param: {
11753
+ workspace: string;
11754
+ };
11755
+ };
11756
+ output: {
11757
+ success: true;
11758
+ reasons: {
11759
+ id: string;
11760
+ title: string | null;
11761
+ }[];
11762
+ };
11763
+ outputFormat: "json";
11764
+ status: 200;
11765
+ };
11766
+ };
11767
+ } & {
11768
+ "/churn-reasons/update": {
11769
+ $post: {
11770
+ input: {
11771
+ json: {
11772
+ workspace: string;
11773
+ reasons: {
11774
+ id: string;
11775
+ title: string | null;
11776
+ }[];
11777
+ };
11778
+ };
11779
+ output: {
11780
+ success: true;
11781
+ reasons: {
11782
+ id: string;
11783
+ title: string | null;
11784
+ }[];
10806
11785
  };
10807
11786
  outputFormat: "json";
10808
11787
  status: 200;
@@ -10816,7 +11795,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
10816
11795
  workspace: string;
10817
11796
  customerId: string;
10818
11797
  relatedCustomerId: string;
10819
- type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "other";
11798
+ type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "technical_contact" | "technical_contact_at" | "accountant" | "accountant_at" | "account_admin" | "account_admin_at" | "account_user" | "account_user_at" | "engineer" | "engineer_at" | "other";
10820
11799
  };
10821
11800
  };
10822
11801
  output: {
@@ -10831,7 +11810,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
10831
11810
  workspace: string;
10832
11811
  customerId: string;
10833
11812
  relatedCustomerId: string;
10834
- type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "other";
11813
+ type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "technical_contact" | "technical_contact_at" | "accountant" | "accountant_at" | "account_admin" | "account_admin_at" | "account_user" | "account_user_at" | "engineer" | "engineer_at" | "other";
10835
11814
  };
10836
11815
  };
10837
11816
  output: {
@@ -10846,7 +11825,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
10846
11825
  workspace: string;
10847
11826
  customerId: string;
10848
11827
  relatedCustomerId: string;
10849
- type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "other";
11828
+ type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "technical_contact" | "technical_contact_at" | "accountant" | "accountant_at" | "account_admin" | "account_admin_at" | "account_user" | "account_user_at" | "engineer" | "engineer_at" | "other";
10850
11829
  };
10851
11830
  };
10852
11831
  output: {
@@ -11160,8 +12139,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
11160
12139
  currency: string;
11161
12140
  discount: number;
11162
12141
  subscription: boolean | null;
11163
- unitPrice: number;
12142
+ id: string;
11164
12143
  amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
12144
+ unitPrice: number;
11165
12145
  vatRate: number | null;
11166
12146
  branchId: string | null;
11167
12147
  responsibleId: string | null;
@@ -11191,7 +12171,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
11191
12171
  subscriptionStartDate: string | null;
11192
12172
  subscriptionEndDate: string | null;
11193
12173
  paymentMethod: string | null;
11194
- id: string;
11195
12174
  created_at: string;
11196
12175
  workspaceId: string;
11197
12176
  updated_at: string | null;
@@ -11298,6 +12277,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
11298
12277
  currency: FinanceCurrency;
11299
12278
  country: string | null;
11300
12279
  legalAddress: string | null;
12280
+ id: string;
11301
12281
  vatRate: number | null;
11302
12282
  branchId: string | null;
11303
12283
  cardColor: string;
@@ -11313,7 +12293,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
11313
12293
  bankInn: string | null;
11314
12294
  bankKpp: string | null;
11315
12295
  pricesIncludeVat: boolean;
11316
- id: string;
11317
12296
  created_at: string;
11318
12297
  workspaceId: string;
11319
12298
  updated_at: string | null;
@@ -11378,8 +12357,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
11378
12357
  currency: string;
11379
12358
  discount: number;
11380
12359
  subscription: boolean | null;
11381
- unitPrice: number;
12360
+ id: string;
11382
12361
  amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
12362
+ unitPrice: number;
11383
12363
  vatRate: number | null;
11384
12364
  branchId: string | null;
11385
12365
  responsibleId: string | null;
@@ -11409,7 +12389,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
11409
12389
  subscriptionStartDate: string | null;
11410
12390
  subscriptionEndDate: string | null;
11411
12391
  paymentMethod: string | null;
11412
- id: string;
11413
12392
  created_at: string;
11414
12393
  workspaceId: string;
11415
12394
  updated_at: string | null;
@@ -11775,8 +12754,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
11775
12754
  currency: string;
11776
12755
  discount: number;
11777
12756
  subscription: boolean | null;
11778
- unitPrice: number;
12757
+ id: string;
11779
12758
  amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
12759
+ unitPrice: number;
11780
12760
  vatRate: number | null;
11781
12761
  branchId: string | null;
11782
12762
  responsibleId: string | null;
@@ -11806,7 +12786,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
11806
12786
  subscriptionStartDate: string | null;
11807
12787
  subscriptionEndDate: string | null;
11808
12788
  paymentMethod: string | null;
11809
- id: string;
11810
12789
  created_at: string;
11811
12790
  workspaceId: string;
11812
12791
  updated_at: string | null;
@@ -12328,8 +13307,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
12328
13307
  currency: string;
12329
13308
  discount: number;
12330
13309
  subscription: boolean | null;
12331
- unitPrice: number;
13310
+ id: string;
12332
13311
  amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
13312
+ unitPrice: number;
12333
13313
  vatRate: number | null;
12334
13314
  branchId: string | null;
12335
13315
  responsibleId: string | null;
@@ -12359,7 +13339,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12359
13339
  subscriptionStartDate: string | null;
12360
13340
  subscriptionEndDate: string | null;
12361
13341
  paymentMethod: string | null;
12362
- id: string;
12363
13342
  created_at: string;
12364
13343
  workspaceId: string;
12365
13344
  updated_at: string | null;
@@ -12500,8 +13479,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
12500
13479
  currency: string;
12501
13480
  discount: number;
12502
13481
  subscription: boolean | null;
12503
- unitPrice: number;
13482
+ id: string;
12504
13483
  amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
13484
+ unitPrice: number;
12505
13485
  vatRate: number | null;
12506
13486
  branchId: string | null;
12507
13487
  responsibleId: string | null;
@@ -12531,7 +13511,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12531
13511
  subscriptionStartDate: string | null;
12532
13512
  subscriptionEndDate: string | null;
12533
13513
  paymentMethod: string | null;
12534
- id: string;
12535
13514
  created_at: string;
12536
13515
  workspaceId: string;
12537
13516
  updated_at: string | null;
@@ -18018,6 +18997,72 @@ declare const routes: import("hono/hono-base").HonoBase<{
18018
18997
  status: 200;
18019
18998
  };
18020
18999
  };
19000
+ } & {
19001
+ "/:workspace/churn-reasons": {
19002
+ $get: {
19003
+ input: {
19004
+ query: {
19005
+ from?: string | number | undefined;
19006
+ to?: string | number | undefined;
19007
+ };
19008
+ } & {
19009
+ param: {
19010
+ workspace: string;
19011
+ };
19012
+ };
19013
+ output: {
19014
+ success: false;
19015
+ error: string;
19016
+ };
19017
+ outputFormat: "json";
19018
+ status: 400;
19019
+ } | {
19020
+ input: {
19021
+ query: {
19022
+ from?: string | number | undefined;
19023
+ to?: string | number | undefined;
19024
+ };
19025
+ } & {
19026
+ param: {
19027
+ workspace: string;
19028
+ };
19029
+ };
19030
+ output: {
19031
+ success: false;
19032
+ error: string;
19033
+ };
19034
+ outputFormat: "json";
19035
+ status: 404;
19036
+ } | {
19037
+ input: {
19038
+ query: {
19039
+ from?: string | number | undefined;
19040
+ to?: string | number | undefined;
19041
+ };
19042
+ } & {
19043
+ param: {
19044
+ workspace: string;
19045
+ };
19046
+ };
19047
+ output: {
19048
+ success: true;
19049
+ workspaceId: string;
19050
+ period: {
19051
+ from: string | null;
19052
+ to: string | null;
19053
+ };
19054
+ churnedCount: number;
19055
+ unattributedCount: number;
19056
+ reasons: {
19057
+ share: number;
19058
+ reasonId: string;
19059
+ count: number;
19060
+ }[];
19061
+ };
19062
+ outputFormat: "json";
19063
+ status: 200;
19064
+ };
19065
+ };
18021
19066
  } & {
18022
19067
  "/:workspace/first-response-time": {
18023
19068
  $get: {
@@ -19613,8 +20658,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
19613
20658
  telegram: string;
19614
20659
  whatsapp: string;
19615
20660
  address: string;
19616
- timeZone: string;
19617
20661
  id: string;
20662
+ timeZone: string;
19618
20663
  franchiseeId: string | null;
19619
20664
  openedAt: string | null;
19620
20665
  managerId: string | null;
@@ -19806,9 +20851,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
19806
20851
  warehouse: {
19807
20852
  name: string;
19808
20853
  address: string | null;
20854
+ id: string;
19809
20855
  branchId: string;
19810
20856
  responsibleId: string | null;
19811
- id: string;
19812
20857
  attributes: {
19813
20858
  [x: string]: ResourceAttributeValue;
19814
20859
  };
@@ -19961,8 +21006,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
19961
21006
  variant: string | null;
19962
21007
  quantity: number;
19963
21008
  id: string;
19964
- warehouseId: string;
19965
21009
  sku: string;
21010
+ warehouseId: string;
19966
21011
  productName: string;
19967
21012
  minStock: number;
19968
21013
  workspaceId: string;