@mestra-dev/contract 0.0.213 → 0.0.215
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/dist/index.d.ts +146 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4514,6 +4514,12 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
4514
4514
|
readonly format: "date-time";
|
|
4515
4515
|
readonly nullable: true;
|
|
4516
4516
|
};
|
|
4517
|
+
readonly paymentMethod: {
|
|
4518
|
+
readonly type: "string";
|
|
4519
|
+
readonly nullable: true;
|
|
4520
|
+
readonly maxLength: 50;
|
|
4521
|
+
readonly description: "How the invoice is paid.";
|
|
4522
|
+
};
|
|
4517
4523
|
readonly created_by: {
|
|
4518
4524
|
readonly type: "string";
|
|
4519
4525
|
readonly format: "uuid";
|
|
@@ -4578,17 +4584,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
4578
4584
|
readonly type: "object";
|
|
4579
4585
|
readonly required: readonly [
|
|
4580
4586
|
"id",
|
|
4587
|
+
"workspaceId",
|
|
4581
4588
|
"order",
|
|
4582
4589
|
"name",
|
|
4583
4590
|
"cardColor",
|
|
4584
4591
|
"currency",
|
|
4585
|
-
"active"
|
|
4592
|
+
"active",
|
|
4593
|
+
"created_at"
|
|
4586
4594
|
];
|
|
4587
4595
|
readonly properties: {
|
|
4588
4596
|
readonly id: {
|
|
4589
4597
|
readonly type: "string";
|
|
4590
4598
|
readonly format: "uuid";
|
|
4591
4599
|
};
|
|
4600
|
+
readonly workspaceId: {
|
|
4601
|
+
readonly type: "string";
|
|
4602
|
+
readonly format: "uuid";
|
|
4603
|
+
};
|
|
4592
4604
|
readonly order: {
|
|
4593
4605
|
readonly type: "integer";
|
|
4594
4606
|
readonly minimum: 1;
|
|
@@ -4610,10 +4622,49 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
4610
4622
|
"euro"
|
|
4611
4623
|
];
|
|
4612
4624
|
};
|
|
4625
|
+
readonly country: {
|
|
4626
|
+
readonly type: "string";
|
|
4627
|
+
readonly nullable: true;
|
|
4628
|
+
};
|
|
4613
4629
|
readonly companyName: {
|
|
4614
4630
|
readonly type: "string";
|
|
4615
4631
|
readonly nullable: true;
|
|
4616
|
-
|
|
4632
|
+
};
|
|
4633
|
+
readonly inn: {
|
|
4634
|
+
readonly type: "string";
|
|
4635
|
+
readonly nullable: true;
|
|
4636
|
+
};
|
|
4637
|
+
readonly kpp: {
|
|
4638
|
+
readonly type: "string";
|
|
4639
|
+
readonly nullable: true;
|
|
4640
|
+
};
|
|
4641
|
+
readonly ogrn: {
|
|
4642
|
+
readonly type: "string";
|
|
4643
|
+
readonly nullable: true;
|
|
4644
|
+
};
|
|
4645
|
+
readonly bankName: {
|
|
4646
|
+
readonly type: "string";
|
|
4647
|
+
readonly nullable: true;
|
|
4648
|
+
};
|
|
4649
|
+
readonly bankAccountNumber: {
|
|
4650
|
+
readonly type: "string";
|
|
4651
|
+
readonly nullable: true;
|
|
4652
|
+
};
|
|
4653
|
+
readonly bankBik: {
|
|
4654
|
+
readonly type: "string";
|
|
4655
|
+
readonly nullable: true;
|
|
4656
|
+
};
|
|
4657
|
+
readonly bankKc: {
|
|
4658
|
+
readonly type: "string";
|
|
4659
|
+
readonly nullable: true;
|
|
4660
|
+
};
|
|
4661
|
+
readonly bankInn: {
|
|
4662
|
+
readonly type: "string";
|
|
4663
|
+
readonly nullable: true;
|
|
4664
|
+
};
|
|
4665
|
+
readonly bankKpp: {
|
|
4666
|
+
readonly type: "string";
|
|
4667
|
+
readonly nullable: true;
|
|
4617
4668
|
};
|
|
4618
4669
|
readonly vatRate: {
|
|
4619
4670
|
readonly type: "integer";
|
|
@@ -4624,6 +4675,15 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
4624
4675
|
readonly active: {
|
|
4625
4676
|
readonly type: "boolean";
|
|
4626
4677
|
};
|
|
4678
|
+
readonly created_at: {
|
|
4679
|
+
readonly type: "string";
|
|
4680
|
+
readonly format: "date-time";
|
|
4681
|
+
};
|
|
4682
|
+
readonly updated_at: {
|
|
4683
|
+
readonly type: "string";
|
|
4684
|
+
readonly format: "date-time";
|
|
4685
|
+
readonly nullable: true;
|
|
4686
|
+
};
|
|
4627
4687
|
};
|
|
4628
4688
|
};
|
|
4629
4689
|
readonly ListCInvoiceFinanceAccountsSuccess: {
|
|
@@ -6091,7 +6151,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6091
6151
|
readonly type: "string";
|
|
6092
6152
|
readonly nullable: true;
|
|
6093
6153
|
};
|
|
6094
|
-
readonly
|
|
6154
|
+
readonly ogrn: {
|
|
6155
|
+
readonly type: "string";
|
|
6156
|
+
readonly nullable: true;
|
|
6157
|
+
};
|
|
6158
|
+
readonly bankName: {
|
|
6095
6159
|
readonly type: "string";
|
|
6096
6160
|
readonly nullable: true;
|
|
6097
6161
|
};
|
|
@@ -6107,6 +6171,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6107
6171
|
readonly type: "string";
|
|
6108
6172
|
readonly nullable: true;
|
|
6109
6173
|
};
|
|
6174
|
+
readonly bankInn: {
|
|
6175
|
+
readonly type: "string";
|
|
6176
|
+
readonly nullable: true;
|
|
6177
|
+
};
|
|
6178
|
+
readonly bankKpp: {
|
|
6179
|
+
readonly type: "string";
|
|
6180
|
+
readonly nullable: true;
|
|
6181
|
+
};
|
|
6110
6182
|
readonly vatRate: {
|
|
6111
6183
|
readonly type: "integer";
|
|
6112
6184
|
readonly nullable: true;
|
|
@@ -14859,6 +14931,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
14859
14931
|
readonly format: "date-time";
|
|
14860
14932
|
readonly description: "Subscription period end.";
|
|
14861
14933
|
};
|
|
14934
|
+
readonly paymentMethod: {
|
|
14935
|
+
readonly type: "string";
|
|
14936
|
+
readonly maxLength: 50;
|
|
14937
|
+
readonly description: "How the invoice is paid. Copied onto the income finance transaction when status is paid.";
|
|
14938
|
+
};
|
|
14862
14939
|
};
|
|
14863
14940
|
};
|
|
14864
14941
|
};
|
|
@@ -14924,7 +15001,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
14924
15001
|
"CInvoices"
|
|
14925
15002
|
];
|
|
14926
15003
|
readonly summary: "List finance accounts for invoice seller selection";
|
|
14927
|
-
readonly description: "Returns workspace finance accounts for choosing SellerFinanceAccountId when creating or updating a customer invoice. Requires workspace access and read access to crm::customers, not crm::finance.
|
|
15004
|
+
readonly description: "Returns workspace finance accounts for choosing SellerFinanceAccountId when creating or updating a customer invoice. Requires workspace access and read access to crm::customers, not crm::finance. Includes company and bank details, but omits openingBalance.";
|
|
14928
15005
|
readonly security: readonly [
|
|
14929
15006
|
never
|
|
14930
15007
|
];
|
|
@@ -15196,6 +15273,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
15196
15273
|
readonly format: "date-time";
|
|
15197
15274
|
readonly description: "Subscription period end.";
|
|
15198
15275
|
};
|
|
15276
|
+
readonly paymentMethod: {
|
|
15277
|
+
readonly type: "string";
|
|
15278
|
+
readonly maxLength: 50;
|
|
15279
|
+
readonly description: "How the invoice is paid. Copied onto the income finance transaction when status changes to paid.";
|
|
15280
|
+
};
|
|
15199
15281
|
};
|
|
15200
15282
|
};
|
|
15201
15283
|
};
|
|
@@ -20127,7 +20209,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
20127
20209
|
readonly kpp: {
|
|
20128
20210
|
readonly type: "string";
|
|
20129
20211
|
};
|
|
20130
|
-
readonly
|
|
20212
|
+
readonly ogrn: {
|
|
20213
|
+
readonly type: "string";
|
|
20214
|
+
};
|
|
20215
|
+
readonly bankName: {
|
|
20131
20216
|
readonly type: "string";
|
|
20132
20217
|
};
|
|
20133
20218
|
readonly bankAccountNumber: {
|
|
@@ -20139,6 +20224,12 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
20139
20224
|
readonly bankKc: {
|
|
20140
20225
|
readonly type: "string";
|
|
20141
20226
|
};
|
|
20227
|
+
readonly bankInn: {
|
|
20228
|
+
readonly type: "string";
|
|
20229
|
+
};
|
|
20230
|
+
readonly bankKpp: {
|
|
20231
|
+
readonly type: "string";
|
|
20232
|
+
};
|
|
20142
20233
|
readonly vatRate: {
|
|
20143
20234
|
readonly type: "integer";
|
|
20144
20235
|
readonly minimum: 0;
|
|
@@ -20255,7 +20346,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
20255
20346
|
readonly kpp: {
|
|
20256
20347
|
readonly type: "string";
|
|
20257
20348
|
};
|
|
20258
|
-
readonly
|
|
20349
|
+
readonly ogrn: {
|
|
20350
|
+
readonly type: "string";
|
|
20351
|
+
};
|
|
20352
|
+
readonly bankName: {
|
|
20259
20353
|
readonly type: "string";
|
|
20260
20354
|
};
|
|
20261
20355
|
readonly bankAccountNumber: {
|
|
@@ -20267,6 +20361,12 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
20267
20361
|
readonly bankKc: {
|
|
20268
20362
|
readonly type: "string";
|
|
20269
20363
|
};
|
|
20364
|
+
readonly bankInn: {
|
|
20365
|
+
readonly type: "string";
|
|
20366
|
+
};
|
|
20367
|
+
readonly bankKpp: {
|
|
20368
|
+
readonly type: "string";
|
|
20369
|
+
};
|
|
20270
20370
|
readonly vatRate: {
|
|
20271
20371
|
readonly type: "integer";
|
|
20272
20372
|
readonly minimum: 0;
|
|
@@ -23969,6 +24069,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
23969
24069
|
discount: number | null;
|
|
23970
24070
|
subscriptionStartDate: string | null;
|
|
23971
24071
|
subscriptionEndDate: string | null;
|
|
24072
|
+
paymentMethod: string | null;
|
|
23972
24073
|
}[];
|
|
23973
24074
|
};
|
|
23974
24075
|
outputFormat: "json";
|
|
@@ -23987,13 +24088,26 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
23987
24088
|
success: true;
|
|
23988
24089
|
accounts: {
|
|
23989
24090
|
id: string;
|
|
23990
|
-
|
|
24091
|
+
created_at: string;
|
|
23991
24092
|
name: string;
|
|
23992
|
-
|
|
23993
|
-
|
|
24093
|
+
active: boolean;
|
|
24094
|
+
workspaceId: string;
|
|
24095
|
+
country: string | null;
|
|
23994
24096
|
companyName: string | null;
|
|
24097
|
+
inn: string | null;
|
|
24098
|
+
kpp: string | null;
|
|
24099
|
+
bankAccountNumber: string | null;
|
|
24100
|
+
bankBik: string | null;
|
|
24101
|
+
bankKc: string | null;
|
|
23995
24102
|
vatRate: number | null;
|
|
23996
|
-
|
|
24103
|
+
currency: FinanceCurrency;
|
|
24104
|
+
order: number;
|
|
24105
|
+
cardColor: string;
|
|
24106
|
+
updated_at: string | null;
|
|
24107
|
+
ogrn: string | null;
|
|
24108
|
+
bankName: string | null;
|
|
24109
|
+
bankInn: string | null;
|
|
24110
|
+
bankKpp: string | null;
|
|
23997
24111
|
}[];
|
|
23998
24112
|
};
|
|
23999
24113
|
outputFormat: "json";
|
|
@@ -24069,6 +24183,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
24069
24183
|
subscription: boolean | null;
|
|
24070
24184
|
subscriptionStartDate: string | null;
|
|
24071
24185
|
subscriptionEndDate: string | null;
|
|
24186
|
+
paymentMethod: string | null;
|
|
24072
24187
|
status: string;
|
|
24073
24188
|
paidAt: string | null;
|
|
24074
24189
|
created_by: string;
|
|
@@ -24132,6 +24247,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
24132
24247
|
discount: number | null;
|
|
24133
24248
|
subscriptionStartDate: string | null;
|
|
24134
24249
|
subscriptionEndDate: string | null;
|
|
24250
|
+
paymentMethod: string | null;
|
|
24135
24251
|
}[];
|
|
24136
24252
|
};
|
|
24137
24253
|
outputFormat: "json";
|
|
@@ -30084,10 +30200,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
30084
30200
|
companyName: string | null;
|
|
30085
30201
|
inn: string | null;
|
|
30086
30202
|
kpp: string | null;
|
|
30087
|
-
|
|
30203
|
+
ogrn: string | null;
|
|
30204
|
+
bankName: string | null;
|
|
30088
30205
|
bankAccountNumber: string | null;
|
|
30089
30206
|
bankBik: string | null;
|
|
30090
30207
|
bankKc: string | null;
|
|
30208
|
+
bankInn: string | null;
|
|
30209
|
+
bankKpp: string | null;
|
|
30091
30210
|
vatRate: number | null;
|
|
30092
30211
|
active: boolean;
|
|
30093
30212
|
created_at: string;
|
|
@@ -30136,10 +30255,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
30136
30255
|
companyName: string | null;
|
|
30137
30256
|
inn: string | null;
|
|
30138
30257
|
kpp: string | null;
|
|
30139
|
-
|
|
30258
|
+
ogrn: string | null;
|
|
30259
|
+
bankName: string | null;
|
|
30140
30260
|
bankAccountNumber: string | null;
|
|
30141
30261
|
bankBik: string | null;
|
|
30142
30262
|
bankKc: string | null;
|
|
30263
|
+
bankInn: string | null;
|
|
30264
|
+
bankKpp: string | null;
|
|
30143
30265
|
vatRate: number | null;
|
|
30144
30266
|
active: boolean;
|
|
30145
30267
|
created_at: string;
|
|
@@ -30176,10 +30298,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
30176
30298
|
companyName: string | null;
|
|
30177
30299
|
inn: string | null;
|
|
30178
30300
|
kpp: string | null;
|
|
30179
|
-
|
|
30301
|
+
ogrn: string | null;
|
|
30302
|
+
bankName: string | null;
|
|
30180
30303
|
bankAccountNumber: string | null;
|
|
30181
30304
|
bankBik: string | null;
|
|
30182
30305
|
bankKc: string | null;
|
|
30306
|
+
bankInn: string | null;
|
|
30307
|
+
bankKpp: string | null;
|
|
30183
30308
|
vatRate: number | null;
|
|
30184
30309
|
active: boolean;
|
|
30185
30310
|
created_at: string;
|
|
@@ -30224,10 +30349,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
30224
30349
|
companyName: string | null;
|
|
30225
30350
|
inn: string | null;
|
|
30226
30351
|
kpp: string | null;
|
|
30227
|
-
|
|
30352
|
+
ogrn: string | null;
|
|
30353
|
+
bankName: string | null;
|
|
30228
30354
|
bankAccountNumber: string | null;
|
|
30229
30355
|
bankBik: string | null;
|
|
30230
30356
|
bankKc: string | null;
|
|
30357
|
+
bankInn: string | null;
|
|
30358
|
+
bankKpp: string | null;
|
|
30231
30359
|
vatRate: number | null;
|
|
30232
30360
|
active: boolean;
|
|
30233
30361
|
created_at: string;
|
|
@@ -30264,10 +30392,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
30264
30392
|
companyName: string | null;
|
|
30265
30393
|
inn: string | null;
|
|
30266
30394
|
kpp: string | null;
|
|
30267
|
-
|
|
30395
|
+
ogrn: string | null;
|
|
30396
|
+
bankName: string | null;
|
|
30268
30397
|
bankAccountNumber: string | null;
|
|
30269
30398
|
bankBik: string | null;
|
|
30270
30399
|
bankKc: string | null;
|
|
30400
|
+
bankInn: string | null;
|
|
30401
|
+
bankKpp: string | null;
|
|
30271
30402
|
vatRate: number | null;
|
|
30272
30403
|
active: boolean;
|
|
30273
30404
|
created_at: string;
|