@mestra-dev/contract 0.0.326 → 0.0.328

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 +98 -16
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -14891,6 +14891,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
14891
14891
  isDeposit?: boolean | undefined;
14892
14892
  billToName?: string | null | undefined;
14893
14893
  billToPhone?: string | null | undefined;
14894
+ linkedRecordId?: string | null | undefined;
14895
+ payerRole?: "payer" | "corporate" | "member" | null | undefined;
14894
14896
  installmentNumber?: number | null | undefined;
14895
14897
  totalInstallments?: number | null | undefined;
14896
14898
  installmentGroupId?: string | null | undefined;
@@ -14950,11 +14952,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
14950
14952
  personKind: "partner" | "member";
14951
14953
  personId?: string | null | undefined;
14952
14954
  name: string;
14953
- role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
14955
+ role: "lead" | "instructor" | "partner" | "co_agent" | "buyer_agent" | "seller_agent" | "trainer" | "sales_manager" | "referral_partner";
14954
14956
  shareKind: "fixed" | "percent";
14955
14957
  sharePercent?: number | null | undefined;
14956
14958
  shareAmount?: number | null | undefined;
14957
- trigger?: "date" | "contract" | "payment" | "deposit" | "registration" | undefined;
14959
+ trigger?: "date" | "contract" | "session" | "payment" | "deposit" | "registration" | undefined;
14958
14960
  }[] | undefined;
14959
14961
  costs?: {
14960
14962
  category: string;
@@ -14964,6 +14966,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
14964
14966
  inputVatRate?: number | undefined;
14965
14967
  paidBy: "company_now" | "company_later" | "executor";
14966
14968
  }[] | undefined;
14969
+ itemType?: "membership" | "sessions" | "drop_in" | null | undefined;
14970
+ sessionCount?: number | null | undefined;
14971
+ termMonths?: number | null | undefined;
14972
+ freezeDays?: number | null | undefined;
14967
14973
  }[] | undefined;
14968
14974
  unitName?: string | undefined;
14969
14975
  unitPrice?: number | undefined;
@@ -15004,6 +15010,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
15004
15010
  isDeposit?: boolean | undefined;
15005
15011
  billToName?: string | null | undefined;
15006
15012
  billToPhone?: string | null | undefined;
15013
+ linkedRecordId?: string | null | undefined;
15014
+ payerRole?: "payer" | "corporate" | "member" | null | undefined;
15007
15015
  installmentNumber?: number | null | undefined;
15008
15016
  totalInstallments?: number | null | undefined;
15009
15017
  installmentGroupId?: string | null | undefined;
@@ -15063,11 +15071,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
15063
15071
  personKind: "partner" | "member";
15064
15072
  personId?: string | null | undefined;
15065
15073
  name: string;
15066
- role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
15074
+ role: "lead" | "instructor" | "partner" | "co_agent" | "buyer_agent" | "seller_agent" | "trainer" | "sales_manager" | "referral_partner";
15067
15075
  shareKind: "fixed" | "percent";
15068
15076
  sharePercent?: number | null | undefined;
15069
15077
  shareAmount?: number | null | undefined;
15070
- trigger?: "date" | "contract" | "payment" | "deposit" | "registration" | undefined;
15078
+ trigger?: "date" | "contract" | "session" | "payment" | "deposit" | "registration" | undefined;
15071
15079
  }[] | undefined;
15072
15080
  costs?: {
15073
15081
  category: string;
@@ -15077,6 +15085,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
15077
15085
  inputVatRate?: number | undefined;
15078
15086
  paidBy: "company_now" | "company_later" | "executor";
15079
15087
  }[] | undefined;
15088
+ itemType?: "membership" | "sessions" | "drop_in" | null | undefined;
15089
+ sessionCount?: number | null | undefined;
15090
+ termMonths?: number | null | undefined;
15091
+ freezeDays?: number | null | undefined;
15080
15092
  }[] | undefined;
15081
15093
  unitName?: string | undefined;
15082
15094
  unitPrice?: number | undefined;
@@ -15126,6 +15138,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
15126
15138
  isDeposit: boolean;
15127
15139
  billToName: string | null;
15128
15140
  billToPhone: string | null;
15141
+ linkedRecordId: string | null;
15142
+ payerRole: string | null;
15129
15143
  installmentNumber: number | null;
15130
15144
  totalInstallments: number | null;
15131
15145
  installmentGroupId: string | null;
@@ -15221,6 +15235,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
15221
15235
  transferPayment: {
15222
15236
  viaAgencyBefore: boolean;
15223
15237
  } | null;
15238
+ itemType: string | null;
15239
+ sessionCount: number | null;
15240
+ termMonths: number | null;
15241
+ freezeDays: number | null;
15224
15242
  }[];
15225
15243
  }[];
15226
15244
  };
@@ -15344,6 +15362,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
15344
15362
  isDeposit: boolean;
15345
15363
  billToName: string | null;
15346
15364
  billToPhone: string | null;
15365
+ linkedRecordId: string | null;
15366
+ payerRole: string | null;
15347
15367
  installmentNumber: number | null;
15348
15368
  totalInstallments: number | null;
15349
15369
  installmentGroupId: string | null;
@@ -15439,6 +15459,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
15439
15459
  transferPayment: {
15440
15460
  viaAgencyBefore: boolean;
15441
15461
  } | null;
15462
+ itemType: string | null;
15463
+ sessionCount: number | null;
15464
+ termMonths: number | null;
15465
+ freezeDays: number | null;
15442
15466
  }[];
15443
15467
  }[];
15444
15468
  };
@@ -15504,6 +15528,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
15504
15528
  isDeposit?: boolean | undefined;
15505
15529
  billToName?: string | null | undefined;
15506
15530
  billToPhone?: string | null | undefined;
15531
+ linkedRecordId?: string | null | undefined;
15532
+ payerRole?: "payer" | "corporate" | "member" | null | undefined;
15507
15533
  installmentNumber?: number | null | undefined;
15508
15534
  totalInstallments?: number | null | undefined;
15509
15535
  installmentGroupId?: string | null | undefined;
@@ -15554,11 +15580,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
15554
15580
  personKind: "partner" | "member";
15555
15581
  personId?: string | null | undefined;
15556
15582
  name: string;
15557
- role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
15583
+ role: "lead" | "instructor" | "partner" | "co_agent" | "buyer_agent" | "seller_agent" | "trainer" | "sales_manager" | "referral_partner";
15558
15584
  shareKind: "fixed" | "percent";
15559
15585
  sharePercent?: number | null | undefined;
15560
15586
  shareAmount?: number | null | undefined;
15561
- trigger?: "date" | "contract" | "payment" | "deposit" | "registration" | undefined;
15587
+ trigger?: "date" | "contract" | "session" | "payment" | "deposit" | "registration" | undefined;
15562
15588
  }[] | undefined;
15563
15589
  costs?: {
15564
15590
  category: string;
@@ -15568,6 +15594,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
15568
15594
  inputVatRate?: number | undefined;
15569
15595
  paidBy: "company_now" | "company_later" | "executor";
15570
15596
  }[] | undefined;
15597
+ itemType?: "membership" | "sessions" | "drop_in" | null | undefined;
15598
+ sessionCount?: number | null | undefined;
15599
+ termMonths?: number | null | undefined;
15600
+ freezeDays?: number | null | undefined;
15571
15601
  }[] | undefined;
15572
15602
  serviceId?: string | undefined;
15573
15603
  SellerFinanceAccountId?: string | undefined;
@@ -15618,6 +15648,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
15618
15648
  isDeposit?: boolean | undefined;
15619
15649
  billToName?: string | null | undefined;
15620
15650
  billToPhone?: string | null | undefined;
15651
+ linkedRecordId?: string | null | undefined;
15652
+ payerRole?: "payer" | "corporate" | "member" | null | undefined;
15621
15653
  installmentNumber?: number | null | undefined;
15622
15654
  totalInstallments?: number | null | undefined;
15623
15655
  installmentGroupId?: string | null | undefined;
@@ -15668,11 +15700,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
15668
15700
  personKind: "partner" | "member";
15669
15701
  personId?: string | null | undefined;
15670
15702
  name: string;
15671
- role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
15703
+ role: "lead" | "instructor" | "partner" | "co_agent" | "buyer_agent" | "seller_agent" | "trainer" | "sales_manager" | "referral_partner";
15672
15704
  shareKind: "fixed" | "percent";
15673
15705
  sharePercent?: number | null | undefined;
15674
15706
  shareAmount?: number | null | undefined;
15675
- trigger?: "date" | "contract" | "payment" | "deposit" | "registration" | undefined;
15707
+ trigger?: "date" | "contract" | "session" | "payment" | "deposit" | "registration" | undefined;
15676
15708
  }[] | undefined;
15677
15709
  costs?: {
15678
15710
  category: string;
@@ -15682,6 +15714,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
15682
15714
  inputVatRate?: number | undefined;
15683
15715
  paidBy: "company_now" | "company_later" | "executor";
15684
15716
  }[] | undefined;
15717
+ itemType?: "membership" | "sessions" | "drop_in" | null | undefined;
15718
+ sessionCount?: number | null | undefined;
15719
+ termMonths?: number | null | undefined;
15720
+ freezeDays?: number | null | undefined;
15685
15721
  }[] | undefined;
15686
15722
  serviceId?: string | undefined;
15687
15723
  SellerFinanceAccountId?: string | undefined;
@@ -15741,6 +15777,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
15741
15777
  isDeposit: boolean;
15742
15778
  billToName: string | null;
15743
15779
  billToPhone: string | null;
15780
+ linkedRecordId: string | null;
15781
+ payerRole: string | null;
15744
15782
  installmentNumber: number | null;
15745
15783
  totalInstallments: number | null;
15746
15784
  installmentGroupId: string | null;
@@ -15836,6 +15874,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
15836
15874
  transferPayment: {
15837
15875
  viaAgencyBefore: boolean;
15838
15876
  } | null;
15877
+ itemType: string | null;
15878
+ sessionCount: number | null;
15879
+ termMonths: number | null;
15880
+ freezeDays: number | null;
15839
15881
  }[];
15840
15882
  }[];
15841
15883
  };
@@ -15895,11 +15937,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
15895
15937
  personKind: "partner" | "member";
15896
15938
  personId?: string | null | undefined;
15897
15939
  name: string;
15898
- role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
15940
+ role: "lead" | "instructor" | "partner" | "co_agent" | "buyer_agent" | "seller_agent" | "trainer" | "sales_manager" | "referral_partner";
15899
15941
  shareKind: "fixed" | "percent";
15900
15942
  sharePercent?: number | null | undefined;
15901
15943
  shareAmount?: number | null | undefined;
15902
- trigger?: "date" | "contract" | "payment" | "deposit" | "registration" | undefined;
15944
+ trigger?: "date" | "contract" | "session" | "payment" | "deposit" | "registration" | undefined;
15903
15945
  }[] | undefined;
15904
15946
  costs?: {
15905
15947
  category: string;
@@ -15909,6 +15951,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
15909
15951
  inputVatRate?: number | undefined;
15910
15952
  paidBy: "company_now" | "company_later" | "executor";
15911
15953
  }[] | undefined;
15954
+ itemType?: "membership" | "sessions" | "drop_in" | null | undefined;
15955
+ sessionCount?: number | null | undefined;
15956
+ termMonths?: number | null | undefined;
15957
+ freezeDays?: number | null | undefined;
15912
15958
  }[];
15913
15959
  branchId?: string | null | undefined;
15914
15960
  responsibleId?: string | null | undefined;
@@ -15925,6 +15971,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
15925
15971
  isDeposit?: boolean | undefined;
15926
15972
  billToName?: string | null | undefined;
15927
15973
  billToPhone?: string | null | undefined;
15974
+ linkedRecordId?: string | null | undefined;
15975
+ payerRole?: "payer" | "corporate" | "member" | null | undefined;
15928
15976
  invoiceId: string;
15929
15977
  SellerFinanceAccountId: string;
15930
15978
  customerId: string;
@@ -15994,11 +16042,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
15994
16042
  personKind: "partner" | "member";
15995
16043
  personId?: string | null | undefined;
15996
16044
  name: string;
15997
- role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
16045
+ role: "lead" | "instructor" | "partner" | "co_agent" | "buyer_agent" | "seller_agent" | "trainer" | "sales_manager" | "referral_partner";
15998
16046
  shareKind: "fixed" | "percent";
15999
16047
  sharePercent?: number | null | undefined;
16000
16048
  shareAmount?: number | null | undefined;
16001
- trigger?: "date" | "contract" | "payment" | "deposit" | "registration" | undefined;
16049
+ trigger?: "date" | "contract" | "session" | "payment" | "deposit" | "registration" | undefined;
16002
16050
  }[] | undefined;
16003
16051
  costs?: {
16004
16052
  category: string;
@@ -16008,6 +16056,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
16008
16056
  inputVatRate?: number | undefined;
16009
16057
  paidBy: "company_now" | "company_later" | "executor";
16010
16058
  }[] | undefined;
16059
+ itemType?: "membership" | "sessions" | "drop_in" | null | undefined;
16060
+ sessionCount?: number | null | undefined;
16061
+ termMonths?: number | null | undefined;
16062
+ freezeDays?: number | null | undefined;
16011
16063
  }[];
16012
16064
  branchId?: string | null | undefined;
16013
16065
  responsibleId?: string | null | undefined;
@@ -16024,6 +16076,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
16024
16076
  isDeposit?: boolean | undefined;
16025
16077
  billToName?: string | null | undefined;
16026
16078
  billToPhone?: string | null | undefined;
16079
+ linkedRecordId?: string | null | undefined;
16080
+ payerRole?: "payer" | "corporate" | "member" | null | undefined;
16027
16081
  invoiceId: string;
16028
16082
  SellerFinanceAccountId: string;
16029
16083
  customerId: string;
@@ -16106,11 +16160,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
16106
16160
  personKind: "partner" | "member";
16107
16161
  personId?: string | null | undefined;
16108
16162
  name: string;
16109
- role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
16163
+ role: "lead" | "instructor" | "partner" | "co_agent" | "buyer_agent" | "seller_agent" | "trainer" | "sales_manager" | "referral_partner";
16110
16164
  shareKind: "fixed" | "percent";
16111
16165
  sharePercent?: number | null | undefined;
16112
16166
  shareAmount?: number | null | undefined;
16113
- trigger?: "date" | "contract" | "payment" | "deposit" | "registration" | undefined;
16167
+ trigger?: "date" | "contract" | "session" | "payment" | "deposit" | "registration" | undefined;
16114
16168
  }[] | undefined;
16115
16169
  costs?: {
16116
16170
  category: string;
@@ -16120,6 +16174,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
16120
16174
  inputVatRate?: number | undefined;
16121
16175
  paidBy: "company_now" | "company_later" | "executor";
16122
16176
  }[] | undefined;
16177
+ itemType?: "membership" | "sessions" | "drop_in" | null | undefined;
16178
+ sessionCount?: number | null | undefined;
16179
+ termMonths?: number | null | undefined;
16180
+ freezeDays?: number | null | undefined;
16123
16181
  }[];
16124
16182
  branchId?: string | null | undefined;
16125
16183
  responsibleId?: string | null | undefined;
@@ -16136,6 +16194,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
16136
16194
  isDeposit?: boolean | undefined;
16137
16195
  billToName?: string | null | undefined;
16138
16196
  billToPhone?: string | null | undefined;
16197
+ linkedRecordId?: string | null | undefined;
16198
+ payerRole?: "payer" | "corporate" | "member" | null | undefined;
16139
16199
  invoiceId: string;
16140
16200
  SellerFinanceAccountId: string;
16141
16201
  customerId: string;
@@ -16205,11 +16265,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
16205
16265
  personKind: "partner" | "member";
16206
16266
  personId?: string | null | undefined;
16207
16267
  name: string;
16208
- role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
16268
+ role: "lead" | "instructor" | "partner" | "co_agent" | "buyer_agent" | "seller_agent" | "trainer" | "sales_manager" | "referral_partner";
16209
16269
  shareKind: "fixed" | "percent";
16210
16270
  sharePercent?: number | null | undefined;
16211
16271
  shareAmount?: number | null | undefined;
16212
- trigger?: "date" | "contract" | "payment" | "deposit" | "registration" | undefined;
16272
+ trigger?: "date" | "contract" | "session" | "payment" | "deposit" | "registration" | undefined;
16213
16273
  }[] | undefined;
16214
16274
  costs?: {
16215
16275
  category: string;
@@ -16219,6 +16279,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
16219
16279
  inputVatRate?: number | undefined;
16220
16280
  paidBy: "company_now" | "company_later" | "executor";
16221
16281
  }[] | undefined;
16282
+ itemType?: "membership" | "sessions" | "drop_in" | null | undefined;
16283
+ sessionCount?: number | null | undefined;
16284
+ termMonths?: number | null | undefined;
16285
+ freezeDays?: number | null | undefined;
16222
16286
  }[];
16223
16287
  branchId?: string | null | undefined;
16224
16288
  responsibleId?: string | null | undefined;
@@ -16235,6 +16299,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
16235
16299
  isDeposit?: boolean | undefined;
16236
16300
  billToName?: string | null | undefined;
16237
16301
  billToPhone?: string | null | undefined;
16302
+ linkedRecordId?: string | null | undefined;
16303
+ payerRole?: "payer" | "corporate" | "member" | null | undefined;
16238
16304
  invoiceId: string;
16239
16305
  SellerFinanceAccountId: string;
16240
16306
  customerId: string;
@@ -16294,6 +16360,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
16294
16360
  isDeposit: boolean;
16295
16361
  billToName: string | null;
16296
16362
  billToPhone: string | null;
16363
+ linkedRecordId: string | null;
16364
+ payerRole: string | null;
16297
16365
  installmentNumber: number | null;
16298
16366
  totalInstallments: number | null;
16299
16367
  installmentGroupId: string | null;
@@ -16389,6 +16457,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
16389
16457
  transferPayment: {
16390
16458
  viaAgencyBefore: boolean;
16391
16459
  } | null;
16460
+ itemType: string | null;
16461
+ sessionCount: number | null;
16462
+ termMonths: number | null;
16463
+ freezeDays: number | null;
16392
16464
  }[];
16393
16465
  }[];
16394
16466
  };
@@ -16466,6 +16538,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
16466
16538
  isDeposit: boolean;
16467
16539
  billToName: string | null;
16468
16540
  billToPhone: string | null;
16541
+ linkedRecordId: string | null;
16542
+ payerRole: string | null;
16469
16543
  installmentNumber: number | null;
16470
16544
  totalInstallments: number | null;
16471
16545
  installmentGroupId: string | null;
@@ -16561,6 +16635,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
16561
16635
  transferPayment: {
16562
16636
  viaAgencyBefore: boolean;
16563
16637
  } | null;
16638
+ itemType: string | null;
16639
+ sessionCount: number | null;
16640
+ termMonths: number | null;
16641
+ freezeDays: number | null;
16564
16642
  }[];
16565
16643
  };
16566
16644
  };
@@ -22948,6 +23026,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
22948
23026
  collaboratorId: string | null;
22949
23027
  taskId: string | null;
22950
23028
  branchId: string | null;
23029
+ deferredRecognition: boolean;
22951
23030
  created_at: string;
22952
23031
  updated_at: string | null;
22953
23032
  responsibleId: string | null;
@@ -23010,6 +23089,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
23010
23089
  collaboratorId: string | null;
23011
23090
  taskId: string | null;
23012
23091
  branchId: string | null;
23092
+ deferredRecognition: boolean;
23013
23093
  created_at: string;
23014
23094
  updated_at: string | null;
23015
23095
  };
@@ -23107,6 +23187,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
23107
23187
  collaboratorId: string | null;
23108
23188
  taskId: string | null;
23109
23189
  branchId: string | null;
23190
+ deferredRecognition: boolean;
23110
23191
  created_at: string;
23111
23192
  updated_at: string | null;
23112
23193
  };
@@ -23239,6 +23320,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
23239
23320
  collaboratorId: string | null;
23240
23321
  taskId: string | null;
23241
23322
  branchId: string | null;
23323
+ deferredRecognition: boolean;
23242
23324
  created_at: string;
23243
23325
  updated_at: string | null;
23244
23326
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.326",
3
+ "version": "0.0.328",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,