@billionaire-sh/node-sdk 0.1.1 → 1.0.0
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/README.md +30 -1
- package/dist/client.cjs +96 -3
- package/dist/client.d.cts +306 -55
- package/dist/client.d.mts +306 -55
- package/dist/client.mjs +96 -3
- package/dist/schemas.cjs +450 -221
- package/dist/schemas.d.cts +1321 -384
- package/dist/schemas.d.mts +1321 -384
- package/dist/schemas.mjs +450 -221
- package/package.json +2 -2
package/dist/schemas.mjs
CHANGED
|
@@ -18,159 +18,6 @@ const accessGrantStatusSchema = z.enum([
|
|
|
18
18
|
"revoked"
|
|
19
19
|
]);
|
|
20
20
|
|
|
21
|
-
const accountMappingTypeSchema = z.enum([
|
|
22
|
-
"accounts_receivable",
|
|
23
|
-
"accounts_payable",
|
|
24
|
-
"bank_default",
|
|
25
|
-
"cash_default",
|
|
26
|
-
"vat_input",
|
|
27
|
-
"vat_output",
|
|
28
|
-
"vat_input_reduced",
|
|
29
|
-
"vat_output_reduced",
|
|
30
|
-
"vat_prepayment",
|
|
31
|
-
"revenue_default",
|
|
32
|
-
"revenue_reduced",
|
|
33
|
-
"expense_default",
|
|
34
|
-
"depreciation_expense",
|
|
35
|
-
"accumulated_depreciation",
|
|
36
|
-
"asset_disposal_gain",
|
|
37
|
-
"asset_disposal_loss",
|
|
38
|
-
"loan_receivable",
|
|
39
|
-
"loan_payable",
|
|
40
|
-
"loan_receivable_shareholder",
|
|
41
|
-
"loan_receivable_affiliated",
|
|
42
|
-
"loan_receivable_third_party",
|
|
43
|
-
"loan_payable_shareholder",
|
|
44
|
-
"loan_payable_affiliated",
|
|
45
|
-
"loan_payable_third_party",
|
|
46
|
-
"loan_payable_shareholder_short",
|
|
47
|
-
"loan_payable_shareholder_medium",
|
|
48
|
-
"loan_payable_shareholder_long",
|
|
49
|
-
"loan_payable_affiliated_short",
|
|
50
|
-
"loan_payable_affiliated_medium",
|
|
51
|
-
"loan_payable_affiliated_long",
|
|
52
|
-
"loan_payable_third_party_short",
|
|
53
|
-
"loan_payable_third_party_medium",
|
|
54
|
-
"loan_payable_third_party_long",
|
|
55
|
-
"loan_receivable_shareholder_short",
|
|
56
|
-
"loan_receivable_shareholder_medium",
|
|
57
|
-
"loan_receivable_shareholder_long",
|
|
58
|
-
"loan_receivable_affiliated_short",
|
|
59
|
-
"loan_receivable_affiliated_medium",
|
|
60
|
-
"loan_receivable_affiliated_long",
|
|
61
|
-
"loan_receivable_third_party_short",
|
|
62
|
-
"loan_receivable_third_party_medium",
|
|
63
|
-
"loan_receivable_third_party_long",
|
|
64
|
-
"loan_payable_general_partner",
|
|
65
|
-
"loan_payable_limited_partner",
|
|
66
|
-
"loan_receivable_general_partner",
|
|
67
|
-
"loan_receivable_limited_partner",
|
|
68
|
-
"loan_payable_general_partner_short",
|
|
69
|
-
"loan_payable_general_partner_medium",
|
|
70
|
-
"loan_payable_general_partner_long",
|
|
71
|
-
"loan_payable_limited_partner_short",
|
|
72
|
-
"loan_payable_limited_partner_medium",
|
|
73
|
-
"loan_payable_limited_partner_long",
|
|
74
|
-
"loan_receivable_general_partner_short",
|
|
75
|
-
"loan_receivable_general_partner_medium",
|
|
76
|
-
"loan_receivable_general_partner_long",
|
|
77
|
-
"loan_receivable_limited_partner_short",
|
|
78
|
-
"loan_receivable_limited_partner_medium",
|
|
79
|
-
"loan_receivable_limited_partner_long",
|
|
80
|
-
"silent_contribution_typical",
|
|
81
|
-
"silent_contribution_typical_short",
|
|
82
|
-
"silent_contribution_typical_medium",
|
|
83
|
-
"silent_contribution_typical_long",
|
|
84
|
-
"silent_contribution_atypical",
|
|
85
|
-
"silent_contribution_atypical_short",
|
|
86
|
-
"silent_contribution_atypical_medium",
|
|
87
|
-
"silent_contribution_atypical_long",
|
|
88
|
-
"loan_payable_silent_partner",
|
|
89
|
-
"loan_payable_silent_partner_short",
|
|
90
|
-
"loan_payable_silent_partner_medium",
|
|
91
|
-
"loan_payable_silent_partner_long",
|
|
92
|
-
"loan_receivable_typical_silent_partner",
|
|
93
|
-
"loan_receivable_typical_silent_partner_short",
|
|
94
|
-
"loan_receivable_typical_silent_partner_long",
|
|
95
|
-
"silent_profit_share_typical",
|
|
96
|
-
"silent_profit_share_atypical",
|
|
97
|
-
"silent_profit_share_payable",
|
|
98
|
-
"loan_receivable_director",
|
|
99
|
-
"loan_receivable_director_short",
|
|
100
|
-
"loan_receivable_director_long",
|
|
101
|
-
"loan_payable_bank",
|
|
102
|
-
"loan_payable_bank_short",
|
|
103
|
-
"loan_payable_bank_medium",
|
|
104
|
-
"loan_payable_bank_long",
|
|
105
|
-
"interest_income",
|
|
106
|
-
"interest_expense",
|
|
107
|
-
"retained_earnings",
|
|
108
|
-
"private_withdrawals",
|
|
109
|
-
"private_contributions",
|
|
110
|
-
"own_consumption_goods_full_rate",
|
|
111
|
-
"own_consumption_goods_reduced_rate",
|
|
112
|
-
"capital_in_business",
|
|
113
|
-
"private_health_insurance_statutory",
|
|
114
|
-
"private_health_insurance_private",
|
|
115
|
-
"private_care_insurance_statutory",
|
|
116
|
-
"private_care_insurance_private",
|
|
117
|
-
"private_pension_insurance_basic",
|
|
118
|
-
"private_unemployment_insurance",
|
|
119
|
-
"private_liability_and_accident_insurance",
|
|
120
|
-
"private_church_tax",
|
|
121
|
-
"private_donations_charitable",
|
|
122
|
-
"private_donations_political_party",
|
|
123
|
-
"loss_carried_forward",
|
|
124
|
-
"suspense",
|
|
125
|
-
"subscribed_capital",
|
|
126
|
-
"outstanding_contributions_uncalled",
|
|
127
|
-
"called_up_capital_receivable",
|
|
128
|
-
"capital_reserve",
|
|
129
|
-
"legal_reserve",
|
|
130
|
-
"voluntary_reserve",
|
|
131
|
-
"fixed_asset_land",
|
|
132
|
-
"fixed_asset_building_residential",
|
|
133
|
-
"fixed_asset_building_commercial",
|
|
134
|
-
"building_savings_balance",
|
|
135
|
-
"bank_fee_expense",
|
|
136
|
-
"other_operating_expense",
|
|
137
|
-
"legal_consulting_expense",
|
|
138
|
-
"software_expense",
|
|
139
|
-
"utility_expense_energy",
|
|
140
|
-
"utility_expense_heating",
|
|
141
|
-
"utility_expense_cleaning",
|
|
142
|
-
"utility_expense_maintenance",
|
|
143
|
-
"utility_expense_insurance",
|
|
144
|
-
"utility_expense_property_tax",
|
|
145
|
-
"gwg_expense_immediate",
|
|
146
|
-
"loan_receivable_participation",
|
|
147
|
-
"loan_receivable_participation_short",
|
|
148
|
-
"loan_receivable_participation_medium",
|
|
149
|
-
"loan_receivable_participation_long",
|
|
150
|
-
"loan_payable_participation",
|
|
151
|
-
"loan_payable_participation_short",
|
|
152
|
-
"loan_payable_participation_medium",
|
|
153
|
-
"loan_payable_participation_long",
|
|
154
|
-
"interest_income_affiliated",
|
|
155
|
-
"interest_income_long_term_loans",
|
|
156
|
-
"interest_income_long_term_loans_affiliated",
|
|
157
|
-
"interest_expense_affiliated",
|
|
158
|
-
"interest_expense_shareholder",
|
|
159
|
-
"loan_fee_expense",
|
|
160
|
-
"loan_fee_income",
|
|
161
|
-
"accrued_interest_receivable",
|
|
162
|
-
"accrued_interest_payable",
|
|
163
|
-
"rental_deposit_receivable",
|
|
164
|
-
"rental_deposit_payable",
|
|
165
|
-
"other_operating_income",
|
|
166
|
-
"cash_discount_granted",
|
|
167
|
-
"bad_debt_expense",
|
|
168
|
-
"inventory",
|
|
169
|
-
"prepaid_expenses",
|
|
170
|
-
"deferred_income",
|
|
171
|
-
"owner_capital"
|
|
172
|
-
]);
|
|
173
|
-
|
|
174
21
|
const accountSnapshotStatusSchema = z.enum([
|
|
175
22
|
"pending",
|
|
176
23
|
"ready",
|
|
@@ -305,13 +152,16 @@ const assetDepreciationTypeSchema = z.enum([
|
|
|
305
152
|
"disposal_book_value"
|
|
306
153
|
]);
|
|
307
154
|
|
|
155
|
+
const assetDisposalResultSchema = z.enum(["gain", "loss"]);
|
|
156
|
+
|
|
308
157
|
const auditActorTypeSchema = z.enum(["user", "system"]);
|
|
309
158
|
|
|
310
159
|
const auditCategorySchema = z.enum([
|
|
311
160
|
"documents",
|
|
312
161
|
"inbox",
|
|
313
162
|
"team",
|
|
314
|
-
"entity"
|
|
163
|
+
"entity",
|
|
164
|
+
"journal"
|
|
315
165
|
]);
|
|
316
166
|
|
|
317
167
|
const balanceSheetCategorySchema = z.enum([
|
|
@@ -331,8 +181,6 @@ const balanceSheetStandardSchema = z.enum([
|
|
|
331
181
|
|
|
332
182
|
const bandMeasureSchema = z.enum(["revenue", "balance_sheet_total"]);
|
|
333
183
|
|
|
334
|
-
const bankAccountStatusSchema = z.enum(["active", "closed"]);
|
|
335
|
-
|
|
336
184
|
const bankStatementDecimalSeparatorSchema = z.enum(["comma", "period"]);
|
|
337
185
|
|
|
338
186
|
const bankStatementSourceSchema = z.enum(["csv"]);
|
|
@@ -421,7 +269,38 @@ const bookingPurposeSchema = z.enum([
|
|
|
421
269
|
"deferred_income",
|
|
422
270
|
"owner_capital",
|
|
423
271
|
"cash_discount_received",
|
|
424
|
-
"supplier_credit_receivable"
|
|
272
|
+
"supplier_credit_receivable",
|
|
273
|
+
"rental_income",
|
|
274
|
+
"goods_expense",
|
|
275
|
+
"wage_expense",
|
|
276
|
+
"salary_expense",
|
|
277
|
+
"social_security_expense",
|
|
278
|
+
"payroll_payable",
|
|
279
|
+
"wage_tax_payable",
|
|
280
|
+
"social_security_payable",
|
|
281
|
+
"rent_expense",
|
|
282
|
+
"leasing_expense",
|
|
283
|
+
"sales_commission_expense",
|
|
284
|
+
"gift_voucher_liability",
|
|
285
|
+
"corporate_income_tax_expense",
|
|
286
|
+
"solidarity_surcharge_expense",
|
|
287
|
+
"trade_tax_expense",
|
|
288
|
+
"corporate_income_tax_provision",
|
|
289
|
+
"fixed_asset_operating_equipment",
|
|
290
|
+
"trade_tax_provision",
|
|
291
|
+
"equipment_repair_expense",
|
|
292
|
+
"operating_supplies_expense",
|
|
293
|
+
"cash_in_transit",
|
|
294
|
+
"special_depreciation_expense",
|
|
295
|
+
"asset_pool_depreciation_expense",
|
|
296
|
+
"customer_credit_payable",
|
|
297
|
+
"deferred_input_vat",
|
|
298
|
+
"bad_debt_recovery_income",
|
|
299
|
+
"asset_disposal_book_value",
|
|
300
|
+
"asset_disposal_proceeds",
|
|
301
|
+
"asset_sale_receivable",
|
|
302
|
+
"purchase_reduction",
|
|
303
|
+
"payment_provider_balance"
|
|
425
304
|
]);
|
|
426
305
|
|
|
427
306
|
const bookingSideSchema = z.enum(["debit", "credit"]);
|
|
@@ -456,7 +335,19 @@ const cancelPlatformInvoiceOutcomeSchema = z.enum([
|
|
|
456
335
|
"already_cancelled",
|
|
457
336
|
"no_invoice",
|
|
458
337
|
"paid",
|
|
459
|
-
"partial_credit"
|
|
338
|
+
"partial_credit",
|
|
339
|
+
"corrected",
|
|
340
|
+
"already_corrected",
|
|
341
|
+
"credit_exceeds_invoice"
|
|
342
|
+
]);
|
|
343
|
+
|
|
344
|
+
const cancellationFeedbackReasonSchema = z.enum([
|
|
345
|
+
"too_expensive",
|
|
346
|
+
"missing_feature",
|
|
347
|
+
"too_complicated",
|
|
348
|
+
"switched_provider",
|
|
349
|
+
"no_longer_needed",
|
|
350
|
+
"other"
|
|
460
351
|
]);
|
|
461
352
|
|
|
462
353
|
const cashBasisAssetGroupSchema = z.enum([
|
|
@@ -494,6 +385,7 @@ const catchUpUstvaStatusSchema = z.enum([
|
|
|
494
385
|
const chartFamilySchema = z.enum(["datev", "kmu", "de_gaap_ci"]);
|
|
495
386
|
|
|
496
387
|
const chartInterchangeTierSchema = z.enum([
|
|
388
|
+
"succession",
|
|
497
389
|
"origin",
|
|
498
390
|
"correspondence",
|
|
499
391
|
"role",
|
|
@@ -505,11 +397,24 @@ const chartNumberBlockTypeSchema = z.enum([
|
|
|
505
397
|
"reserved",
|
|
506
398
|
"account_block",
|
|
507
399
|
"personal_debtors",
|
|
508
|
-
"personal_creditors"
|
|
400
|
+
"personal_creditors",
|
|
401
|
+
"free_class"
|
|
509
402
|
]);
|
|
510
403
|
|
|
404
|
+
const chartPlacePoolMemberTypeSchema = z.enum(["account", "range"]);
|
|
405
|
+
|
|
511
406
|
const chartProviderSchema = z.enum(["datev", "veb", "esteuer"]);
|
|
512
407
|
|
|
408
|
+
const chartSuccessionTypeSchema = z.enum([
|
|
409
|
+
"same",
|
|
410
|
+
"renamed",
|
|
411
|
+
"dropped",
|
|
412
|
+
"renumbered",
|
|
413
|
+
"merged",
|
|
414
|
+
"split",
|
|
415
|
+
"repurposed"
|
|
416
|
+
]);
|
|
417
|
+
|
|
513
418
|
const chatChannelTypeSchema = z.enum([
|
|
514
419
|
"team",
|
|
515
420
|
"direct",
|
|
@@ -620,7 +525,8 @@ const contractPartyRoleSchema = z.enum([
|
|
|
620
525
|
"borrower",
|
|
621
526
|
"landlord",
|
|
622
527
|
"renter",
|
|
623
|
-
"head_landlord"
|
|
528
|
+
"head_landlord",
|
|
529
|
+
"partner"
|
|
624
530
|
]);
|
|
625
531
|
|
|
626
532
|
const contractScanContentTypeSchema = z.enum([
|
|
@@ -668,7 +574,8 @@ const contractTypeSchema = z.enum([
|
|
|
668
574
|
"service",
|
|
669
575
|
"purchase",
|
|
670
576
|
"rental",
|
|
671
|
-
"loan"
|
|
577
|
+
"loan",
|
|
578
|
+
"partnership_agreement"
|
|
672
579
|
]);
|
|
673
580
|
|
|
674
581
|
const contractTypographySchema = z.enum([
|
|
@@ -1012,13 +919,36 @@ const defectResponsibilitySchema = z.enum([
|
|
|
1012
919
|
"unknown"
|
|
1013
920
|
]);
|
|
1014
921
|
|
|
1015
|
-
const
|
|
922
|
+
const demoAreaSchema = z.enum([
|
|
923
|
+
"dashboard",
|
|
924
|
+
"accounting",
|
|
925
|
+
"balanceSheet",
|
|
926
|
+
"profitAndLoss",
|
|
927
|
+
"reporting",
|
|
928
|
+
"documents",
|
|
929
|
+
"inbox",
|
|
930
|
+
"contracts",
|
|
931
|
+
"rolodex",
|
|
932
|
+
"properties",
|
|
933
|
+
"letterhead",
|
|
934
|
+
"taxRegistration",
|
|
935
|
+
"formation",
|
|
936
|
+
"transition",
|
|
937
|
+
"settings",
|
|
938
|
+
"other"
|
|
939
|
+
]);
|
|
1016
940
|
|
|
1017
|
-
const
|
|
1018
|
-
"
|
|
1019
|
-
"
|
|
941
|
+
const demoStatusSchema = z.enum([
|
|
942
|
+
"generating",
|
|
943
|
+
"ready",
|
|
944
|
+
"failed",
|
|
945
|
+
"expired"
|
|
1020
946
|
]);
|
|
1021
947
|
|
|
948
|
+
const depositCustodyModelSchema = z.enum(["held", "separate_account"]);
|
|
949
|
+
|
|
950
|
+
const depreciationRefusalTypeSchema = z.enum(["no_expense_account"]);
|
|
951
|
+
|
|
1022
952
|
const directionSchema = z.enum(["left", "right", "up", "down"]);
|
|
1023
953
|
|
|
1024
954
|
const directionXSchema = z.enum(["left", "right"]);
|
|
@@ -1033,6 +963,11 @@ const documentClassificationStateSchema = z.enum([
|
|
|
1033
963
|
"confirmed"
|
|
1034
964
|
]);
|
|
1035
965
|
|
|
966
|
+
const documentErasureReasonSchema = z.enum([
|
|
967
|
+
"account_retention_ended",
|
|
968
|
+
"archive_expired"
|
|
969
|
+
]);
|
|
970
|
+
|
|
1036
971
|
const documentLinkProvenanceSchema = z.enum(["rule", "model", "user"]);
|
|
1037
972
|
|
|
1038
973
|
const documentLinkRelationTypeSchema = z.enum([
|
|
@@ -1201,7 +1136,8 @@ const entityDecisionReasonSchema = z.enum([
|
|
|
1201
1136
|
"threshold_cross",
|
|
1202
1137
|
"threshold_drop",
|
|
1203
1138
|
"permanent_extension",
|
|
1204
|
-
"became_merchant"
|
|
1139
|
+
"became_merchant",
|
|
1140
|
+
"successor_edition"
|
|
1205
1141
|
]);
|
|
1206
1142
|
|
|
1207
1143
|
const entityDecisionSourceSchema = z.enum(["entity", "authority", "law"]);
|
|
@@ -1223,7 +1159,8 @@ const entityDecisionTypeSchema = z.enum([
|
|
|
1223
1159
|
"vat_taxation_method",
|
|
1224
1160
|
"vat_permanent_extension",
|
|
1225
1161
|
"entity_type",
|
|
1226
|
-
"declared_size"
|
|
1162
|
+
"declared_size",
|
|
1163
|
+
"consumer_supplies_abroad"
|
|
1227
1164
|
]);
|
|
1228
1165
|
|
|
1229
1166
|
const entityDocumentTypeSchema = z.enum([
|
|
@@ -1270,6 +1207,8 @@ const entityUserStatusSchema = z.enum([
|
|
|
1270
1207
|
"revoked"
|
|
1271
1208
|
]);
|
|
1272
1209
|
|
|
1210
|
+
const enumCancelledOpenPaidSchema = z.enum(["cancelled", "open", "paid"]);
|
|
1211
|
+
|
|
1273
1212
|
const estScheduleSchema = z.enum([
|
|
1274
1213
|
"anlage_n",
|
|
1275
1214
|
"anlage_kap",
|
|
@@ -1332,7 +1271,34 @@ const featureGateSchema = z.enum([
|
|
|
1332
1271
|
"renter-documents",
|
|
1333
1272
|
"whitelabel-branding",
|
|
1334
1273
|
"payment-reminders",
|
|
1335
|
-
"property-management"
|
|
1274
|
+
"property-management",
|
|
1275
|
+
"financial-dashboard",
|
|
1276
|
+
"incoming-invoices",
|
|
1277
|
+
"bank-transactions",
|
|
1278
|
+
"journal",
|
|
1279
|
+
"payment-claims",
|
|
1280
|
+
"dunning",
|
|
1281
|
+
"fixed-assets",
|
|
1282
|
+
"balance-sheet",
|
|
1283
|
+
"profit-and-loss",
|
|
1284
|
+
"annual-statement",
|
|
1285
|
+
"vat-return",
|
|
1286
|
+
"trial-balance",
|
|
1287
|
+
"business-analysis",
|
|
1288
|
+
"income-expense-statement",
|
|
1289
|
+
"corporation-tax-return",
|
|
1290
|
+
"trade-tax-return",
|
|
1291
|
+
"income-tax-return",
|
|
1292
|
+
"tax-assessments",
|
|
1293
|
+
"document-hub",
|
|
1294
|
+
"inbox",
|
|
1295
|
+
"rolodex",
|
|
1296
|
+
"letterhead",
|
|
1297
|
+
"tax-registration",
|
|
1298
|
+
"company-formation",
|
|
1299
|
+
"advisor-switch",
|
|
1300
|
+
"team-management",
|
|
1301
|
+
"developer-api"
|
|
1336
1302
|
]);
|
|
1337
1303
|
|
|
1338
1304
|
const featureStatusSchema = z.enum([
|
|
@@ -1341,6 +1307,50 @@ const featureStatusSchema = z.enum([
|
|
|
1341
1307
|
"released"
|
|
1342
1308
|
]);
|
|
1343
1309
|
|
|
1310
|
+
const fetchCustomerPlatformInvoiceDocumentUrlBodySchema = z.object({
|
|
1311
|
+
filters: z.object({
|
|
1312
|
+
platform: z.string().min(1).describe(
|
|
1313
|
+
"The platform whose customer it is, as it names itself (order3000)"
|
|
1314
|
+
),
|
|
1315
|
+
tenantIds: z.array(z.string().min(1)).min(1).max(500).describe(
|
|
1316
|
+
"The platform's own ids of the customers it may be addressed to \u2014 the tenants of the account that opens it"
|
|
1317
|
+
)
|
|
1318
|
+
})
|
|
1319
|
+
});
|
|
1320
|
+
|
|
1321
|
+
const fetchCustomerPlatformInvoiceDocumentUrlResponseSchema = z.object({
|
|
1322
|
+
signedUrl: z.string().describe("Where the PDF is served for the next few minutes")
|
|
1323
|
+
});
|
|
1324
|
+
|
|
1325
|
+
const fetchCustomerPlatformInvoicesBodySchema = z.object({
|
|
1326
|
+
filters: z.object({
|
|
1327
|
+
platform: z.string().min(1).describe(
|
|
1328
|
+
"The platform whose customers are asked for, as it names itself (order3000)"
|
|
1329
|
+
),
|
|
1330
|
+
tenantIds: z.array(z.string().min(1)).min(1).max(500).describe(
|
|
1331
|
+
"The platform's own ids of the customers whose invoices are asked for \u2014 the tenants of one account"
|
|
1332
|
+
)
|
|
1333
|
+
})
|
|
1334
|
+
});
|
|
1335
|
+
|
|
1336
|
+
const fetchCustomerPlatformInvoicesResponseSchema = z.array(
|
|
1337
|
+
z.object({
|
|
1338
|
+
stripeInvoiceId: z.string().describe("The payment provider's id of the platform's invoice"),
|
|
1339
|
+
invoiceNumber: z.nullable(z.string()),
|
|
1340
|
+
issueDate: z.iso.date().describe("The day it was issued"),
|
|
1341
|
+
dueDate: z.nullable(z.iso.date()),
|
|
1342
|
+
currency: z.string().describe("Upper case"),
|
|
1343
|
+
amount: z.int().min(-9007199254740991).max(9007199254740991).describe(
|
|
1344
|
+
"What it is issued for, tax included, in the currency's minor unit"
|
|
1345
|
+
),
|
|
1346
|
+
get state() {
|
|
1347
|
+
return enumCancelledOpenPaidSchema;
|
|
1348
|
+
},
|
|
1349
|
+
tenantId: z.string().describe("The platform's id of the customer it is addressed to"),
|
|
1350
|
+
hasDocument: z.boolean().describe("Whether the entity keeps its PDF")
|
|
1351
|
+
})
|
|
1352
|
+
);
|
|
1353
|
+
|
|
1344
1354
|
const fetchOpenPlatformInvoicesBodySchema = z.object({
|
|
1345
1355
|
filters: z.object({
|
|
1346
1356
|
platform: z.string().min(1).describe(
|
|
@@ -1425,6 +1435,83 @@ const fetchPlatformChargeTaxesResponseSchema = z.object({
|
|
|
1425
1435
|
)
|
|
1426
1436
|
});
|
|
1427
1437
|
|
|
1438
|
+
const partyTypeSchema = z.enum([
|
|
1439
|
+
"natural_person",
|
|
1440
|
+
"legal_entity",
|
|
1441
|
+
"sole_prop"
|
|
1442
|
+
]);
|
|
1443
|
+
|
|
1444
|
+
const fetchPlatformCustomerResponseSchema = z.object({
|
|
1445
|
+
partyId: z.string().describe("The party the customer is in the books of the platform's owner"),
|
|
1446
|
+
reference: z.string().describe("The platform's own reference of its customer"),
|
|
1447
|
+
get partyType() {
|
|
1448
|
+
return partyTypeSchema;
|
|
1449
|
+
},
|
|
1450
|
+
name: z.string().describe("The name its invoices are addressed to"),
|
|
1451
|
+
email: z.nullable(z.string()),
|
|
1452
|
+
vatId: z.nullable(z.string()),
|
|
1453
|
+
taxNumber: z.nullable(z.string()),
|
|
1454
|
+
address: z.nullable(
|
|
1455
|
+
z.object({
|
|
1456
|
+
street: z.string(),
|
|
1457
|
+
building: z.nullable(z.string()),
|
|
1458
|
+
postcode: z.string(),
|
|
1459
|
+
city: z.string(),
|
|
1460
|
+
get country() {
|
|
1461
|
+
return countrySchema;
|
|
1462
|
+
}
|
|
1463
|
+
}).describe("Its billing address; null where the party keeps none")
|
|
1464
|
+
)
|
|
1465
|
+
});
|
|
1466
|
+
|
|
1467
|
+
const fetchPlatformInvoiceMonthsBodySchema = z.object({
|
|
1468
|
+
filters: z.object({
|
|
1469
|
+
platform: z.string().min(1).describe(
|
|
1470
|
+
"The platform whose customers are asked for, as it names itself (order3000)"
|
|
1471
|
+
),
|
|
1472
|
+
since: z.iso.date().describe("The first day of issue read")
|
|
1473
|
+
})
|
|
1474
|
+
});
|
|
1475
|
+
|
|
1476
|
+
const fetchPlatformInvoiceMonthsResponseSchema = z.array(
|
|
1477
|
+
z.object({
|
|
1478
|
+
month: z.iso.date().describe("The month's first day"),
|
|
1479
|
+
currency: z.string().describe("Upper case"),
|
|
1480
|
+
get state() {
|
|
1481
|
+
return enumCancelledOpenPaidSchema;
|
|
1482
|
+
},
|
|
1483
|
+
amount: z.int().min(-9007199254740991).max(9007199254740991).describe(
|
|
1484
|
+
"What was invoiced, tax included, in the currency's minor unit"
|
|
1485
|
+
)
|
|
1486
|
+
})
|
|
1487
|
+
);
|
|
1488
|
+
|
|
1489
|
+
const platformInvoiceCustomerSchema = z.object({
|
|
1490
|
+
reference: z.string().min(1).describe("The platform's own reference of its customer (a tenant's id)"),
|
|
1491
|
+
get partyType() {
|
|
1492
|
+
return partyTypeSchema;
|
|
1493
|
+
},
|
|
1494
|
+
name: z.string().min(1).describe(
|
|
1495
|
+
"The name the invoice is addressed to, as the platform names its customer \u2014 a business's legal name"
|
|
1496
|
+
),
|
|
1497
|
+
email: z.nullable(z.email()),
|
|
1498
|
+
vatId: z.nullable(z.string().min(1)),
|
|
1499
|
+
taxNumber: z.nullable(
|
|
1500
|
+
z.string().min(1).describe(
|
|
1501
|
+
"The customer's tax number \u2014 with its VAT ID, what shows a business abroad is one (KLVR-2234)"
|
|
1502
|
+
)
|
|
1503
|
+
),
|
|
1504
|
+
address: z.object({
|
|
1505
|
+
street: z.string().min(1),
|
|
1506
|
+
building: z.nullable(z.string().min(1)),
|
|
1507
|
+
postcode: z.string().min(1),
|
|
1508
|
+
city: z.string().min(1),
|
|
1509
|
+
get country() {
|
|
1510
|
+
return countrySchema;
|
|
1511
|
+
}
|
|
1512
|
+
})
|
|
1513
|
+
});
|
|
1514
|
+
|
|
1428
1515
|
const platformInvoiceLineTypeSchema = z.enum([
|
|
1429
1516
|
"plan",
|
|
1430
1517
|
"tenant",
|
|
@@ -1474,6 +1561,9 @@ const fetchPlatformInvoicePreviewBodySchema = z.object({
|
|
|
1474
1561
|
),
|
|
1475
1562
|
get lines() {
|
|
1476
1563
|
return z.array(platformInvoiceLineSchema);
|
|
1564
|
+
},
|
|
1565
|
+
get customer() {
|
|
1566
|
+
return platformInvoiceCustomerSchema.nullable();
|
|
1477
1567
|
}
|
|
1478
1568
|
});
|
|
1479
1569
|
|
|
@@ -1560,6 +1650,7 @@ const filingTypeSchema = z.enum([
|
|
|
1560
1650
|
"ust",
|
|
1561
1651
|
"est",
|
|
1562
1652
|
"separate_determination",
|
|
1653
|
+
"recapitulative_statement",
|
|
1563
1654
|
"unternehmensregister",
|
|
1564
1655
|
"opening_balance",
|
|
1565
1656
|
"mwst",
|
|
@@ -1873,7 +1964,14 @@ const journalEntrySourceSchema = z.enum([
|
|
|
1873
1964
|
"silent_partnership"
|
|
1874
1965
|
]);
|
|
1875
1966
|
|
|
1876
|
-
const
|
|
1967
|
+
const journalErasureReasonSchema = z.enum([
|
|
1968
|
+
"e2e_clean_up",
|
|
1969
|
+
"held_entity_never_paid",
|
|
1970
|
+
"books_reset",
|
|
1971
|
+
"demo_generated_anew",
|
|
1972
|
+
"account_retention_ended",
|
|
1973
|
+
"archive_expired"
|
|
1974
|
+
]);
|
|
1877
1975
|
|
|
1878
1976
|
const jurisdictionSchema = z.enum(["DE", "CH"]);
|
|
1879
1977
|
|
|
@@ -2195,6 +2293,7 @@ const mantelbogenFieldSchema = z.enum([
|
|
|
2195
2293
|
const mappingCoverageSourceSchema = z.enum([
|
|
2196
2294
|
"override",
|
|
2197
2295
|
"template",
|
|
2296
|
+
"parent",
|
|
2198
2297
|
"unmapped"
|
|
2199
2298
|
]);
|
|
2200
2299
|
|
|
@@ -2261,6 +2360,10 @@ const messageThreadSubjectTypeSchema = z.enum([
|
|
|
2261
2360
|
|
|
2262
2361
|
const moduleScopeSchema = z.enum(["account", "tenant"]);
|
|
2263
2362
|
|
|
2363
|
+
const moneyAccountStatusSchema = z.enum(["active", "closed"]);
|
|
2364
|
+
|
|
2365
|
+
const moneyAccountTypeSchema = z.enum(["bank", "payment_provider"]);
|
|
2366
|
+
|
|
2264
2367
|
const obligationAmountBasisSchema = z.enum([
|
|
2265
2368
|
"fixed",
|
|
2266
2369
|
"computed_at_period_end",
|
|
@@ -2323,6 +2426,11 @@ const occupantRelationshipSchema = z.enum([
|
|
|
2323
2426
|
"household_member"
|
|
2324
2427
|
]);
|
|
2325
2428
|
|
|
2429
|
+
const officialExchangeRateMethodSchema = z.enum([
|
|
2430
|
+
"estv_monthly_average",
|
|
2431
|
+
"estv_daily_selling_rate"
|
|
2432
|
+
]);
|
|
2433
|
+
|
|
2326
2434
|
const onboardingCardSchema = z.enum(["mail_account", "own_domain"]);
|
|
2327
2435
|
|
|
2328
2436
|
const organicCollectionSchema = z.enum(["bin", "optional_bin", "none"]);
|
|
@@ -2366,17 +2474,13 @@ const parkingSpaceTypeSchema = z.enum(["garage", "parking_space"]);
|
|
|
2366
2474
|
|
|
2367
2475
|
const partyGenderSchema = z.enum(["male", "female", "neutral"]);
|
|
2368
2476
|
|
|
2369
|
-
const partyTypeSchema = z.enum([
|
|
2370
|
-
"natural_person",
|
|
2371
|
-
"legal_entity",
|
|
2372
|
-
"sole_prop"
|
|
2373
|
-
]);
|
|
2374
|
-
|
|
2375
2477
|
const paymentClaimSettlementTypeSchema = z.enum([
|
|
2376
2478
|
"payment",
|
|
2377
2479
|
"cash_discount",
|
|
2378
2480
|
"write_off",
|
|
2379
|
-
"correction"
|
|
2481
|
+
"correction",
|
|
2482
|
+
"offset",
|
|
2483
|
+
"recovery"
|
|
2380
2484
|
]);
|
|
2381
2485
|
|
|
2382
2486
|
const paymentClaimSideSchema = z.enum(["receivable", "payable"]);
|
|
@@ -2409,6 +2513,13 @@ const paymentFrequencySchema = z.enum([
|
|
|
2409
2513
|
|
|
2410
2514
|
const paymentMethodSchema = z.enum(["bank_transfer", "cash"]);
|
|
2411
2515
|
|
|
2516
|
+
const paymentProviderLicenceSchema = z.enum([
|
|
2517
|
+
"credit_institution",
|
|
2518
|
+
"e_money_institution"
|
|
2519
|
+
]);
|
|
2520
|
+
|
|
2521
|
+
const paymentProviderSchema = z.enum(["stripe", "paypal", "sumup"]);
|
|
2522
|
+
|
|
2412
2523
|
const pendingSuperadminTransferStatusSchema = z.enum([
|
|
2413
2524
|
"pending_invite",
|
|
2414
2525
|
"accepted_awaiting_payment",
|
|
@@ -2479,12 +2590,13 @@ const permissionSchema = z.enum([
|
|
|
2479
2590
|
"property:manage-defects",
|
|
2480
2591
|
"journal:view",
|
|
2481
2592
|
"journal:book",
|
|
2593
|
+
"chart-of-accounts:view",
|
|
2482
2594
|
"fixed-asset:view",
|
|
2483
2595
|
"fixed-asset:manage",
|
|
2484
2596
|
"transaction:view",
|
|
2485
2597
|
"transaction:manage",
|
|
2486
|
-
"
|
|
2487
|
-
"
|
|
2598
|
+
"money-account:view",
|
|
2599
|
+
"money-account:manage",
|
|
2488
2600
|
"access-grant:view",
|
|
2489
2601
|
"access-grant:offer",
|
|
2490
2602
|
"access-grant:respond",
|
|
@@ -2518,37 +2630,6 @@ const personalAnnualReviewStatusSchema = z.enum([
|
|
|
2518
2630
|
"frozen"
|
|
2519
2631
|
]);
|
|
2520
2632
|
|
|
2521
|
-
const platformInvoiceCustomerSchema = z.object({
|
|
2522
|
-
reference: z.string().min(1).describe("The platform's own reference of its customer (a tenant's id)"),
|
|
2523
|
-
get partyType() {
|
|
2524
|
-
return partyTypeSchema;
|
|
2525
|
-
},
|
|
2526
|
-
name: z.string().min(1).describe(
|
|
2527
|
-
"The name the invoice is addressed to, as the platform names its customer \u2014 a business's legal name"
|
|
2528
|
-
),
|
|
2529
|
-
email: z.nullable(z.email()),
|
|
2530
|
-
vatId: z.nullable(z.string().min(1)),
|
|
2531
|
-
taxNumber: z.nullable(
|
|
2532
|
-
z.string().min(1).describe(
|
|
2533
|
-
"The customer's tax number \u2014 with its VAT ID, what shows a business abroad is one (KLVR-2234)"
|
|
2534
|
-
)
|
|
2535
|
-
),
|
|
2536
|
-
address: z.object({
|
|
2537
|
-
street: z.string().min(1),
|
|
2538
|
-
building: z.nullable(z.string().min(1)),
|
|
2539
|
-
postcode: z.string().min(1),
|
|
2540
|
-
city: z.string().min(1),
|
|
2541
|
-
get country() {
|
|
2542
|
-
return countrySchema;
|
|
2543
|
-
}
|
|
2544
|
-
})
|
|
2545
|
-
});
|
|
2546
|
-
|
|
2547
|
-
const platformRoleSchema = z.enum([
|
|
2548
|
-
"platform_maintainer",
|
|
2549
|
-
"data_scientist"
|
|
2550
|
-
]);
|
|
2551
|
-
|
|
2552
2633
|
const positionCenterSchema = z.enum(["center"]);
|
|
2553
2634
|
|
|
2554
2635
|
const positionCornerSchema = z.enum([
|
|
@@ -2581,6 +2662,19 @@ const priorYearFigureTypeSchema = z.enum([
|
|
|
2581
2662
|
"bwa_line"
|
|
2582
2663
|
]);
|
|
2583
2664
|
|
|
2665
|
+
const processPlatformCustomerBodySchema = z.object({
|
|
2666
|
+
platform: z.string().min(1).describe(
|
|
2667
|
+
"The platform whose customer it is, as it names itself (order3000)"
|
|
2668
|
+
),
|
|
2669
|
+
get customer() {
|
|
2670
|
+
return platformInvoiceCustomerSchema;
|
|
2671
|
+
}
|
|
2672
|
+
});
|
|
2673
|
+
|
|
2674
|
+
const processPlatformCustomerResponseSchema = z.object({
|
|
2675
|
+
partyId: z.string().describe("The party the customer is in the books of the platform's owner")
|
|
2676
|
+
});
|
|
2677
|
+
|
|
2584
2678
|
const processPlatformInvoiceBodySchema = z.object({
|
|
2585
2679
|
platform: z.string().min(1).describe("The platform that invoiced, as it names itself (order3000)"),
|
|
2586
2680
|
stripeInvoiceId: z.string().min(1).describe(
|
|
@@ -2605,19 +2699,82 @@ const processPlatformInvoiceBodySchema = z.object({
|
|
|
2605
2699
|
|
|
2606
2700
|
const processPlatformInvoiceCreditBodySchema = z.object({
|
|
2607
2701
|
stripeCreditNoteId: z.string().min(1).describe("The payment provider's id of the credit note"),
|
|
2608
|
-
creditedAt: z.iso.datetime()
|
|
2702
|
+
creditedAt: z.iso.datetime().describe(
|
|
2703
|
+
"When the credit note was issued \u2014 the day its refund left the payment provider balance"
|
|
2704
|
+
),
|
|
2609
2705
|
grossAmount: z.int().max(9007199254740991).gt(0).describe(
|
|
2610
2706
|
"What the credit note takes back, tax included, in the smallest unit of the invoice currency"
|
|
2707
|
+
),
|
|
2708
|
+
netAmount: z.optional(
|
|
2709
|
+
z.int().min(-9007199254740991).max(9007199254740991).describe(
|
|
2710
|
+
"Of it, net of tax \u2014 what a credit note without lines takes back at the invoice\u2019s rate"
|
|
2711
|
+
)
|
|
2712
|
+
),
|
|
2713
|
+
lines: z.optional(
|
|
2714
|
+
z.array(
|
|
2715
|
+
z.object({
|
|
2716
|
+
invoiceLineIndex: z.nullable(
|
|
2717
|
+
z.int().min(0).max(9007199254740991).describe(
|
|
2718
|
+
"The invoice line it takes back of, by its place among the lines the invoice was handed over with (from 0); null for an amount of its own"
|
|
2719
|
+
)
|
|
2720
|
+
),
|
|
2721
|
+
description: z.nullable(z.string()),
|
|
2722
|
+
quantity: z.int().min(-9007199254740991).max(9007199254740991),
|
|
2723
|
+
netAmount: z.int().min(-9007199254740991).max(9007199254740991).describe("What it takes back of the line, net of tax"),
|
|
2724
|
+
taxAmount: z.int().min(-9007199254740991).max(9007199254740991),
|
|
2725
|
+
taxRatePercent: z.nullable(z.number()),
|
|
2726
|
+
isReverseCharge: z.boolean(),
|
|
2727
|
+
taxCountry: z.nullable(z.string())
|
|
2728
|
+
})
|
|
2729
|
+
).describe(
|
|
2730
|
+
"What the credit note takes back, line by line: by them a credit note for part of the invoice corrects it by exactly that part"
|
|
2731
|
+
)
|
|
2732
|
+
),
|
|
2733
|
+
taxes: z.optional(
|
|
2734
|
+
z.array(
|
|
2735
|
+
z.object({
|
|
2736
|
+
netAmount: z.int().min(-9007199254740991).max(9007199254740991).describe(
|
|
2737
|
+
"What the tax is calculated on: the net taken back at the rate"
|
|
2738
|
+
),
|
|
2739
|
+
taxAmount: z.int().min(-9007199254740991).max(9007199254740991),
|
|
2740
|
+
taxRatePercent: z.nullable(z.number()),
|
|
2741
|
+
isReverseCharge: z.boolean(),
|
|
2742
|
+
taxCountry: z.nullable(z.string())
|
|
2743
|
+
})
|
|
2744
|
+
).describe(
|
|
2745
|
+
"What the credit note takes back, rate by rate, as it states its taxes: by them an amount on an invoice of several rates corrects it by each"
|
|
2746
|
+
)
|
|
2747
|
+
),
|
|
2748
|
+
refundedAmount: z.optional(
|
|
2749
|
+
z.int().min(0).max(9007199254740991).describe(
|
|
2750
|
+
"Of it, what went back to the card, in the smallest unit of the invoice currency (at Stripe the credit note\u2019s refund). It is recorded as an outgoing payment on the money account that keeps the payment provider\u2019s balance, and pays back the customer\u2019s credit the credit note raised. Left out or 0, the whole credit stays the customer\u2019s balance."
|
|
2751
|
+
)
|
|
2752
|
+
),
|
|
2753
|
+
paymentProviderAccount: z.optional(
|
|
2754
|
+
z.string().min(1).describe(
|
|
2755
|
+
"The payment provider account the refund left \u2014 at Stripe the platform's account id (acct_\u2026). Needed when anything was refunded."
|
|
2756
|
+
)
|
|
2611
2757
|
)
|
|
2612
2758
|
});
|
|
2613
2759
|
|
|
2760
|
+
const refundPlatformInvoiceCreditOutcomeSchema = z.enum([
|
|
2761
|
+
"recorded",
|
|
2762
|
+
"already_recorded",
|
|
2763
|
+
"no_credit",
|
|
2764
|
+
"refund_exceeds_credit",
|
|
2765
|
+
"no_money_account"
|
|
2766
|
+
]);
|
|
2767
|
+
|
|
2614
2768
|
const processPlatformInvoiceCreditResponseSchema = z.object({
|
|
2615
2769
|
get outcome() {
|
|
2616
2770
|
return cancelPlatformInvoiceOutcomeSchema;
|
|
2617
2771
|
},
|
|
2618
2772
|
invoiceId: z.nullable(
|
|
2619
2773
|
z.string().describe("The entity's own invoice for it, once known")
|
|
2620
|
-
)
|
|
2774
|
+
),
|
|
2775
|
+
get refund() {
|
|
2776
|
+
return refundPlatformInvoiceCreditOutcomeSchema.optional();
|
|
2777
|
+
}
|
|
2621
2778
|
});
|
|
2622
2779
|
|
|
2623
2780
|
const processPlatformInvoicePaymentBodySchema = z.object({
|
|
@@ -2740,6 +2897,12 @@ const propertyVanityHostStatusSchema = z.enum([
|
|
|
2740
2897
|
"failed"
|
|
2741
2898
|
]);
|
|
2742
2899
|
|
|
2900
|
+
const purchaseReductionTypeSchema = z.enum([
|
|
2901
|
+
"price_reduction",
|
|
2902
|
+
"rebate",
|
|
2903
|
+
"bonus"
|
|
2904
|
+
]);
|
|
2905
|
+
|
|
2743
2906
|
const questionnairePersonFieldSchema = z.enum([
|
|
2744
2907
|
"first_name",
|
|
2745
2908
|
"date_of_birth",
|
|
@@ -2757,6 +2920,12 @@ const questionnairePersonRoleSchema = z.enum([
|
|
|
2757
2920
|
"partner"
|
|
2758
2921
|
]);
|
|
2759
2922
|
|
|
2923
|
+
const recapitulativeSupplyTypeSchema = z.enum([
|
|
2924
|
+
"intra_community_goods",
|
|
2925
|
+
"triangular_transaction",
|
|
2926
|
+
"intra_community_services"
|
|
2927
|
+
]);
|
|
2928
|
+
|
|
2760
2929
|
const reconciliationItemStatusSchema = z.enum([
|
|
2761
2930
|
"open",
|
|
2762
2931
|
"resolved",
|
|
@@ -2998,9 +3167,13 @@ const salesActivityTypeSchema = z.enum([
|
|
|
2998
3167
|
"meeting",
|
|
2999
3168
|
"stage_change",
|
|
3000
3169
|
"value_change",
|
|
3001
|
-
"owner_change"
|
|
3170
|
+
"owner_change",
|
|
3171
|
+
"close_day_change",
|
|
3172
|
+
"link_click"
|
|
3002
3173
|
]);
|
|
3003
3174
|
|
|
3175
|
+
const salesMailTemplateTypeSchema = z.enum(["general", "demo"]);
|
|
3176
|
+
|
|
3004
3177
|
const scanPageContentTypeSchema = z.enum(["image/jpeg", "image/png"]);
|
|
3005
3178
|
|
|
3006
3179
|
const semesterContinuationSchema = z.enum([
|
|
@@ -3072,6 +3245,15 @@ const subleaseRentRoutingSchema = z.enum([
|
|
|
3072
3245
|
|
|
3073
3246
|
const subleaseRoleSchema = z.enum(["headLandlord", "subLandlord"]);
|
|
3074
3247
|
|
|
3248
|
+
const supplierCreditNoteTypeSchema = z.enum([
|
|
3249
|
+
"return_of_goods",
|
|
3250
|
+
"corrected_invoice",
|
|
3251
|
+
"price_reduction",
|
|
3252
|
+
"rebate",
|
|
3253
|
+
"bonus",
|
|
3254
|
+
"no_consideration_reduction"
|
|
3255
|
+
]);
|
|
3256
|
+
|
|
3075
3257
|
const taxAccountAuthorizationStatusSchema = z.enum([
|
|
3076
3258
|
"requested",
|
|
3077
3259
|
"active",
|
|
@@ -3235,6 +3417,13 @@ const temporaryOccasionSchema = z.enum([
|
|
|
3235
3417
|
|
|
3236
3418
|
const termTypeSchema = z.enum(["fixed", "indefinite"]);
|
|
3237
3419
|
|
|
3420
|
+
const transactionHolderSchema = z.enum([
|
|
3421
|
+
"allocation",
|
|
3422
|
+
"booking",
|
|
3423
|
+
"loan",
|
|
3424
|
+
"rental_deposit"
|
|
3425
|
+
]);
|
|
3426
|
+
|
|
3238
3427
|
const transactionMethodSchema = z.enum([
|
|
3239
3428
|
"bank_transfer",
|
|
3240
3429
|
"credit_card",
|
|
@@ -3299,9 +3488,6 @@ const triggerEventSchema = z.enum([
|
|
|
3299
3488
|
"payment_allocated_incoming",
|
|
3300
3489
|
"payment_allocated_outgoing",
|
|
3301
3490
|
"payment_cancelled",
|
|
3302
|
-
"depreciation_scheduled",
|
|
3303
|
-
"asset_created",
|
|
3304
|
-
"asset_disposed",
|
|
3305
3491
|
"loan_drawdown",
|
|
3306
3492
|
"loan_repayment_principal",
|
|
3307
3493
|
"loan_repayment_interest",
|
|
@@ -3327,7 +3513,8 @@ const triggerEventSchema = z.enum([
|
|
|
3327
3513
|
"receivable_written_off",
|
|
3328
3514
|
"revenue_received",
|
|
3329
3515
|
"expense_paid",
|
|
3330
|
-
"till_day_closed"
|
|
3516
|
+
"till_day_closed",
|
|
3517
|
+
"asset_sale_received"
|
|
3331
3518
|
]);
|
|
3332
3519
|
|
|
3333
3520
|
const vatCategorySchema = z.enum([
|
|
@@ -3341,13 +3528,29 @@ const vatCategorySchema = z.enum([
|
|
|
3341
3528
|
"intra_community_acquisition",
|
|
3342
3529
|
"intra_community_supply",
|
|
3343
3530
|
"import",
|
|
3344
|
-
"export"
|
|
3531
|
+
"export",
|
|
3532
|
+
"outside_scope",
|
|
3533
|
+
"taxed_abroad"
|
|
3345
3534
|
]);
|
|
3346
3535
|
|
|
3347
3536
|
const vatCharacterSchema = z.enum(["liable", "small_business", "exempt"]);
|
|
3348
3537
|
|
|
3349
3538
|
const vatDirectionSchema = z.enum(["output", "input"]);
|
|
3350
3539
|
|
|
3540
|
+
const vatSupplyTypeSchema = z.enum([
|
|
3541
|
+
"new_vehicle",
|
|
3542
|
+
"triangular_transaction",
|
|
3543
|
+
"international_agreement",
|
|
3544
|
+
"travel_service",
|
|
3545
|
+
"letting",
|
|
3546
|
+
"eu_business_service",
|
|
3547
|
+
"third_country_service",
|
|
3548
|
+
"taxable_in_other_eu_state",
|
|
3549
|
+
"electronic_service",
|
|
3550
|
+
"small_business",
|
|
3551
|
+
"mobile_devices_and_integrated_circuits"
|
|
3552
|
+
]);
|
|
3553
|
+
|
|
3351
3554
|
const vatTaxationMethodSchema = z.enum(["accrual", "cash"]);
|
|
3352
3555
|
|
|
3353
3556
|
const wasteFractionSchema = z.enum([
|
|
@@ -3416,7 +3619,6 @@ const schemas = {
|
|
|
3416
3619
|
AccessGrantInitiator: accessGrantInitiatorSchema,
|
|
3417
3620
|
AccessGrantResourceType: accessGrantResourceTypeSchema,
|
|
3418
3621
|
AccessGrantStatus: accessGrantStatusSchema,
|
|
3419
|
-
AccountMappingType: accountMappingTypeSchema,
|
|
3420
3622
|
AccountSnapshotStatus: accountSnapshotStatusSchema,
|
|
3421
3623
|
AccountSnapshotType: accountSnapshotTypeSchema,
|
|
3422
3624
|
AccountType: accountTypeSchema,
|
|
@@ -3435,12 +3637,12 @@ const schemas = {
|
|
|
3435
3637
|
ArtifactType: artifactTypeSchema,
|
|
3436
3638
|
AssetDepreciationMethod: assetDepreciationMethodSchema,
|
|
3437
3639
|
AssetDepreciationType: assetDepreciationTypeSchema,
|
|
3640
|
+
AssetDisposalResult: assetDisposalResultSchema,
|
|
3438
3641
|
AuditActorType: auditActorTypeSchema,
|
|
3439
3642
|
AuditCategory: auditCategorySchema,
|
|
3440
3643
|
BalanceSheetCategory: balanceSheetCategorySchema,
|
|
3441
3644
|
BalanceSheetStandard: balanceSheetStandardSchema,
|
|
3442
3645
|
BandMeasure: bandMeasureSchema,
|
|
3443
|
-
BankAccountStatus: bankAccountStatusSchema,
|
|
3444
3646
|
BankStatementDecimalSeparator: bankStatementDecimalSeparatorSchema,
|
|
3445
3647
|
BankStatementSource: bankStatementSourceSchema,
|
|
3446
3648
|
BescheidEinwilligungStatus: bescheidEinwilligungStatusSchema,
|
|
@@ -3453,13 +3655,16 @@ const schemas = {
|
|
|
3453
3655
|
BusinessFoundingType: businessFoundingTypeSchema,
|
|
3454
3656
|
BusinessStage: businessStageSchema,
|
|
3455
3657
|
CancelPlatformInvoiceOutcome: cancelPlatformInvoiceOutcomeSchema,
|
|
3658
|
+
CancellationFeedbackReason: cancellationFeedbackReasonSchema,
|
|
3456
3659
|
CashBasisAssetGroup: cashBasisAssetGroupSchema,
|
|
3457
3660
|
CashBasisReconciliationKey: cashBasisReconciliationKeySchema,
|
|
3458
3661
|
CatchUpUstvaStatus: catchUpUstvaStatusSchema,
|
|
3459
3662
|
ChartFamily: chartFamilySchema,
|
|
3460
3663
|
ChartInterchangeTier: chartInterchangeTierSchema,
|
|
3461
3664
|
ChartNumberBlockType: chartNumberBlockTypeSchema,
|
|
3665
|
+
ChartPlacePoolMemberType: chartPlacePoolMemberTypeSchema,
|
|
3462
3666
|
ChartProvider: chartProviderSchema,
|
|
3667
|
+
ChartSuccessionType: chartSuccessionTypeSchema,
|
|
3463
3668
|
ChatChannelType: chatChannelTypeSchema,
|
|
3464
3669
|
ChatMemberRole: chatMemberRoleSchema,
|
|
3465
3670
|
CollateralType: collateralTypeSchema,
|
|
@@ -3501,6 +3706,8 @@ const schemas = {
|
|
|
3501
3706
|
DealStage: dealStageSchema,
|
|
3502
3707
|
DealValueSource: dealValueSourceSchema,
|
|
3503
3708
|
DefectResponsibility: defectResponsibilitySchema,
|
|
3709
|
+
DemoArea: demoAreaSchema,
|
|
3710
|
+
DemoStatus: demoStatusSchema,
|
|
3504
3711
|
DepositCustodyModel: depositCustodyModelSchema,
|
|
3505
3712
|
DepreciationRefusalType: depreciationRefusalTypeSchema,
|
|
3506
3713
|
Direction: directionSchema,
|
|
@@ -3508,6 +3715,7 @@ const schemas = {
|
|
|
3508
3715
|
DirectionY: directionYSchema,
|
|
3509
3716
|
DocumentAccessType: documentAccessTypeSchema,
|
|
3510
3717
|
DocumentClassificationState: documentClassificationStateSchema,
|
|
3718
|
+
DocumentErasureReason: documentErasureReasonSchema,
|
|
3511
3719
|
DocumentLinkProvenance: documentLinkProvenanceSchema,
|
|
3512
3720
|
DocumentLinkRelationType: documentLinkRelationTypeSchema,
|
|
3513
3721
|
DocumentLinkStatus: documentLinkStatusSchema,
|
|
@@ -3540,6 +3748,7 @@ const schemas = {
|
|
|
3540
3748
|
EntityRelationshipType: entityRelationshipTypeSchema,
|
|
3541
3749
|
EntityType: entityTypeSchema,
|
|
3542
3750
|
EntityUserStatus: entityUserStatusSchema,
|
|
3751
|
+
EnumCancelledOpenPaid: enumCancelledOpenPaidSchema,
|
|
3543
3752
|
EstSchedule: estScheduleSchema,
|
|
3544
3753
|
EuerLineNature: euerLineNatureSchema,
|
|
3545
3754
|
ExternalFilingDeclaredBy: externalFilingDeclaredBySchema,
|
|
@@ -3547,10 +3756,17 @@ const schemas = {
|
|
|
3547
3756
|
FeatureCategory: featureCategorySchema,
|
|
3548
3757
|
FeatureGate: featureGateSchema,
|
|
3549
3758
|
FeatureStatus: featureStatusSchema,
|
|
3759
|
+
FetchCustomerPlatformInvoiceDocumentUrlBody: fetchCustomerPlatformInvoiceDocumentUrlBodySchema,
|
|
3760
|
+
FetchCustomerPlatformInvoiceDocumentUrlResponse: fetchCustomerPlatformInvoiceDocumentUrlResponseSchema,
|
|
3761
|
+
FetchCustomerPlatformInvoicesBody: fetchCustomerPlatformInvoicesBodySchema,
|
|
3762
|
+
FetchCustomerPlatformInvoicesResponse: fetchCustomerPlatformInvoicesResponseSchema,
|
|
3550
3763
|
FetchOpenPlatformInvoicesBody: fetchOpenPlatformInvoicesBodySchema,
|
|
3551
3764
|
FetchOpenPlatformInvoicesResponse: fetchOpenPlatformInvoicesResponseSchema,
|
|
3552
3765
|
FetchPlatformChargeTaxesBody: fetchPlatformChargeTaxesBodySchema,
|
|
3553
3766
|
FetchPlatformChargeTaxesResponse: fetchPlatformChargeTaxesResponseSchema,
|
|
3767
|
+
FetchPlatformCustomerResponse: fetchPlatformCustomerResponseSchema,
|
|
3768
|
+
FetchPlatformInvoiceMonthsBody: fetchPlatformInvoiceMonthsBodySchema,
|
|
3769
|
+
FetchPlatformInvoiceMonthsResponse: fetchPlatformInvoiceMonthsResponseSchema,
|
|
3554
3770
|
FetchPlatformInvoicePreviewBody: fetchPlatformInvoicePreviewBodySchema,
|
|
3555
3771
|
FetchPlatformInvoicePreviewResponse: fetchPlatformInvoicePreviewResponseSchema,
|
|
3556
3772
|
FetchPlatformInvoiceResponse: fetchPlatformInvoiceResponseSchema,
|
|
@@ -3602,7 +3818,7 @@ const schemas = {
|
|
|
3602
3818
|
InvoiceType: invoiceTypeSchema,
|
|
3603
3819
|
IssuePlatformInvoiceOutcome: issuePlatformInvoiceOutcomeSchema,
|
|
3604
3820
|
JournalEntrySource: journalEntrySourceSchema,
|
|
3605
|
-
|
|
3821
|
+
JournalErasureReason: journalErasureReasonSchema,
|
|
3606
3822
|
Jurisdiction: jurisdictionSchema,
|
|
3607
3823
|
JurisdictionType: jurisdictionTypeSchema,
|
|
3608
3824
|
KnownFactSourceType: knownFactSourceTypeSchema,
|
|
@@ -3637,6 +3853,8 @@ const schemas = {
|
|
|
3637
3853
|
MessageThreadStatus: messageThreadStatusSchema,
|
|
3638
3854
|
MessageThreadSubjectType: messageThreadSubjectTypeSchema,
|
|
3639
3855
|
ModuleScope: moduleScopeSchema,
|
|
3856
|
+
MoneyAccountStatus: moneyAccountStatusSchema,
|
|
3857
|
+
MoneyAccountType: moneyAccountTypeSchema,
|
|
3640
3858
|
ObligationAmountBasis: obligationAmountBasisSchema,
|
|
3641
3859
|
ObligationLinkType: obligationLinkTypeSchema,
|
|
3642
3860
|
ObligationPlanLineStatus: obligationPlanLineStatusSchema,
|
|
@@ -3647,6 +3865,7 @@ const schemas = {
|
|
|
3647
3865
|
ObligationTermsSource: obligationTermsSourceSchema,
|
|
3648
3866
|
ObligationType: obligationTypeSchema,
|
|
3649
3867
|
OccupantRelationship: occupantRelationshipSchema,
|
|
3868
|
+
OfficialExchangeRateMethod: officialExchangeRateMethodSchema,
|
|
3650
3869
|
OnboardingCard: onboardingCardSchema,
|
|
3651
3870
|
OrganicCollection: organicCollectionSchema,
|
|
3652
3871
|
Orientation: orientationSchema,
|
|
@@ -3664,6 +3883,8 @@ const schemas = {
|
|
|
3664
3883
|
PaymentClaimType: paymentClaimTypeSchema,
|
|
3665
3884
|
PaymentFrequency: paymentFrequencySchema,
|
|
3666
3885
|
PaymentMethod: paymentMethodSchema,
|
|
3886
|
+
PaymentProviderLicence: paymentProviderLicenceSchema,
|
|
3887
|
+
PaymentProvider: paymentProviderSchema,
|
|
3667
3888
|
PendingSuperadminTransferStatus: pendingSuperadminTransferStatusSchema,
|
|
3668
3889
|
PermanentExtensionDecision: permanentExtensionDecisionSchema,
|
|
3669
3890
|
Permission: permissionSchema,
|
|
@@ -3674,13 +3895,14 @@ const schemas = {
|
|
|
3674
3895
|
PlatformInvoiceLine: platformInvoiceLineSchema,
|
|
3675
3896
|
PlatformInvoiceLineType: platformInvoiceLineTypeSchema,
|
|
3676
3897
|
PlatformInvoicePreview: platformInvoicePreviewSchema,
|
|
3677
|
-
PlatformRole: platformRoleSchema,
|
|
3678
3898
|
PositionCenter: positionCenterSchema,
|
|
3679
3899
|
PositionCorner: positionCornerSchema,
|
|
3680
3900
|
PositionEdge: positionEdgeSchema,
|
|
3681
3901
|
Position: positionSchema,
|
|
3682
3902
|
PositionY: positionYSchema,
|
|
3683
3903
|
PriorYearFigureType: priorYearFigureTypeSchema,
|
|
3904
|
+
ProcessPlatformCustomerBody: processPlatformCustomerBodySchema,
|
|
3905
|
+
ProcessPlatformCustomerResponse: processPlatformCustomerResponseSchema,
|
|
3684
3906
|
ProcessPlatformInvoiceBody: processPlatformInvoiceBodySchema,
|
|
3685
3907
|
ProcessPlatformInvoiceCreditBody: processPlatformInvoiceCreditBodySchema,
|
|
3686
3908
|
ProcessPlatformInvoiceCreditResponse: processPlatformInvoiceCreditResponseSchema,
|
|
@@ -3699,14 +3921,17 @@ const schemas = {
|
|
|
3699
3921
|
PropertyType: propertyTypeSchema,
|
|
3700
3922
|
PropertyVanityDomainMode: propertyVanityDomainModeSchema,
|
|
3701
3923
|
PropertyVanityHostStatus: propertyVanityHostStatusSchema,
|
|
3924
|
+
PurchaseReductionType: purchaseReductionTypeSchema,
|
|
3702
3925
|
QuestionnairePersonField: questionnairePersonFieldSchema,
|
|
3703
3926
|
QuestionnairePersonRole: questionnairePersonRoleSchema,
|
|
3927
|
+
RecapitulativeSupplyType: recapitulativeSupplyTypeSchema,
|
|
3704
3928
|
ReconciliationItemStatus: reconciliationItemStatusSchema,
|
|
3705
3929
|
ReconciliationItemType: reconciliationItemTypeSchema,
|
|
3706
3930
|
ReconciliationResolution: reconciliationResolutionSchema,
|
|
3707
3931
|
RecordPlatformInvoicePaymentOutcome: recordPlatformInvoicePaymentOutcomeSchema,
|
|
3708
3932
|
RecyclingCentreScheduleReading: recyclingCentreScheduleReadingSchema,
|
|
3709
3933
|
RecyclingCentreType: recyclingCentreTypeSchema,
|
|
3934
|
+
RefundPlatformInvoiceCreditOutcome: refundPlatformInvoiceCreditOutcomeSchema,
|
|
3710
3935
|
RelationshipType: relationshipTypeSchema,
|
|
3711
3936
|
Religion: religionSchema,
|
|
3712
3937
|
ReligionTaxAffiliation: religionTaxAffiliationSchema,
|
|
@@ -3738,6 +3963,7 @@ const schemas = {
|
|
|
3738
3963
|
SalesAccountSegment: salesAccountSegmentSchema,
|
|
3739
3964
|
SalesAccountSource: salesAccountSourceSchema,
|
|
3740
3965
|
SalesActivityType: salesActivityTypeSchema,
|
|
3966
|
+
SalesMailTemplateType: salesMailTemplateTypeSchema,
|
|
3741
3967
|
ScanPageContentType: scanPageContentTypeSchema,
|
|
3742
3968
|
SemesterContinuation: semesterContinuationSchema,
|
|
3743
3969
|
SemesterStart: semesterStartSchema,
|
|
@@ -3754,6 +3980,7 @@ const schemas = {
|
|
|
3754
3980
|
SubleaseDepositMethod: subleaseDepositMethodSchema,
|
|
3755
3981
|
SubleaseRentRouting: subleaseRentRoutingSchema,
|
|
3756
3982
|
SubleaseRole: subleaseRoleSchema,
|
|
3983
|
+
SupplierCreditNoteType: supplierCreditNoteTypeSchema,
|
|
3757
3984
|
TaxAccountAuthorizationStatus: taxAccountAuthorizationStatusSchema,
|
|
3758
3985
|
TaxAccountEntryType: taxAccountEntryTypeSchema,
|
|
3759
3986
|
TaxAccountQueryType: taxAccountQueryTypeSchema,
|
|
@@ -3774,6 +4001,7 @@ const schemas = {
|
|
|
3774
4001
|
TaxonomyMappingType: taxonomyMappingTypeSchema,
|
|
3775
4002
|
TemporaryOccasion: temporaryOccasionSchema,
|
|
3776
4003
|
TermType: termTypeSchema,
|
|
4004
|
+
TransactionHolder: transactionHolderSchema,
|
|
3777
4005
|
TransactionMethod: transactionMethodSchema,
|
|
3778
4006
|
TransactionStatus: transactionStatusSchema,
|
|
3779
4007
|
TransactionType: transactionTypeSchema,
|
|
@@ -3784,6 +4012,7 @@ const schemas = {
|
|
|
3784
4012
|
VatCategory: vatCategorySchema,
|
|
3785
4013
|
VatCharacter: vatCharacterSchema,
|
|
3786
4014
|
VatDirection: vatDirectionSchema,
|
|
4015
|
+
VatSupplyType: vatSupplyTypeSchema,
|
|
3787
4016
|
VatTaxationMethod: vatTaxationMethodSchema,
|
|
3788
4017
|
WasteFraction: wasteFractionSchema,
|
|
3789
4018
|
WasteHolder: wasteHolderSchema,
|