@firela/api-types 0.0.0-canary.2fbeefe9 → 0.0.0-canary.3d558482
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.mts +539 -363
- package/dist/index.d.ts +539 -363
- package/dist/index.js +26 -0
- package/dist/index.mjs +26 -0
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +1017 -806
- package/src/generated/services.gen.ts +200 -169
- package/src/generated/types.gen.ts +559 -366
package/dist/index.js
CHANGED
|
@@ -629,6 +629,32 @@ var BeanAccountsService = class {
|
|
|
629
629
|
}
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
+
/**
|
|
633
|
+
* Post an opening-balance transaction
|
|
634
|
+
* Posts a double-entry opening-balance transaction against Equity:Opening-Balances for an existing Assets/Liabilities account. At most one active opening balance per account.
|
|
635
|
+
* @param data The data for the request.
|
|
636
|
+
* @param data.id Account UUID
|
|
637
|
+
* @param data.region Region code for tenant context
|
|
638
|
+
* @param data.requestBody
|
|
639
|
+
* @returns OpeningBalanceResultDto Opening-balance transaction created
|
|
640
|
+
* @throws ApiError
|
|
641
|
+
*/
|
|
642
|
+
static accountControllerAddOpeningBalance(data) {
|
|
643
|
+
return request(OpenAPI, {
|
|
644
|
+
method: "POST",
|
|
645
|
+
url: "/api/v1/{region}/bean/accounts/{id}/opening-balance",
|
|
646
|
+
path: {
|
|
647
|
+
id: data.id,
|
|
648
|
+
region: data.region
|
|
649
|
+
},
|
|
650
|
+
body: data.requestBody,
|
|
651
|
+
mediaType: "application/json",
|
|
652
|
+
errors: {
|
|
653
|
+
404: "Account not found",
|
|
654
|
+
409: "An opening balance already exists for this account"
|
|
655
|
+
}
|
|
656
|
+
});
|
|
657
|
+
}
|
|
632
658
|
};
|
|
633
659
|
var BeanTransactionsService = class {
|
|
634
660
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -597,6 +597,32 @@ var BeanAccountsService = class {
|
|
|
597
597
|
}
|
|
598
598
|
});
|
|
599
599
|
}
|
|
600
|
+
/**
|
|
601
|
+
* Post an opening-balance transaction
|
|
602
|
+
* Posts a double-entry opening-balance transaction against Equity:Opening-Balances for an existing Assets/Liabilities account. At most one active opening balance per account.
|
|
603
|
+
* @param data The data for the request.
|
|
604
|
+
* @param data.id Account UUID
|
|
605
|
+
* @param data.region Region code for tenant context
|
|
606
|
+
* @param data.requestBody
|
|
607
|
+
* @returns OpeningBalanceResultDto Opening-balance transaction created
|
|
608
|
+
* @throws ApiError
|
|
609
|
+
*/
|
|
610
|
+
static accountControllerAddOpeningBalance(data) {
|
|
611
|
+
return request(OpenAPI, {
|
|
612
|
+
method: "POST",
|
|
613
|
+
url: "/api/v1/{region}/bean/accounts/{id}/opening-balance",
|
|
614
|
+
path: {
|
|
615
|
+
id: data.id,
|
|
616
|
+
region: data.region
|
|
617
|
+
},
|
|
618
|
+
body: data.requestBody,
|
|
619
|
+
mediaType: "application/json",
|
|
620
|
+
errors: {
|
|
621
|
+
404: "Account not found",
|
|
622
|
+
409: "An opening balance already exists for this account"
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
}
|
|
600
626
|
};
|
|
601
627
|
var BeanTransactionsService = class {
|
|
602
628
|
/**
|