feat(partners): add utility functions for partner business activity allocation limits and remaining licenses

- Implemented `getPartnerBusinessActivityAllocationLimits` to retrieve allocation limits for a partner's business activity.
- Added `ensurePartnerBusinessActivityHasRemainingAllocation` to validate remaining allocation credits.
- Created `getPartnerRemainingLicenses` to count remaining licenses for a partner.
- Developed `getPartnerFirstRemainingLicense` to fetch the first unused license for a partner.
- Introduced `ensurePartnerHasRemainingLicense` to ensure a partner has at least one unused license.
This commit is contained in:
2026-04-24 23:02:05 +03:30
parent 9b652a3603
commit 12506de863
43 changed files with 4645 additions and 2196 deletions
+4 -3
View File
@@ -18,13 +18,14 @@ export type * from './models/Complex.js'
export type * from './models/Pos.js'
export type * from './models/DeviceBrand.js'
export type * from './models/Device.js'
export type * from './models/LicenseChargeTransaction.js'
export type * from './models/License.js'
export type * from './models/LicenseActivation.js'
export type * from './models/LicenseChargeTransaction.js'
export type * from './models/LicenseRenew.js'
export type * from './models/LicenseRenewChargeTransaction.js'
export type * from './models/LicenseRenew.js'
export type * from './models/PartnerAccountQuotaChargeTransaction.js'
export type * from './models/PartnerAccountQuotaAllocation.js'
export type * from './models/PartnerAccountQuotaCredit.js'
export type * from './models/LicenseAccountAllocation.js'
export type * from './models/PartnerAccount.js'
export type * from './models/Partner.js'
export type * from './models/PermissionConsumer.js'