@@ -451,6 +451,7 @@ type TransactionStatusKeys = keyof typeof TransactionStatus;
451451type TransactionStatusValues = ( typeof TransactionStatus ) [ TransactionStatusKeys ] ;
452452
453453type RequiredProps < Base , Keys extends keyof Base > = Required < Pick < Base , Keys > > ;
454+ type DateField = Date | 'now' ;
454455
455456/**
456457 * @author Labs64 <netlicensing@labs64.com>
@@ -512,10 +513,7 @@ type LicenseProps<T extends object = object> = {
512513 hidden ?: boolean ;
513514 licenseeNumber ?: string ;
514515 licenseTemplateNumber ?: string ;
515- timeVolume ?: number ;
516- timeVolumePeriod ?: TimeVolumePeriodValues ;
517- startDate ?: Date | 'now' ;
518- parentfeature ?: string ;
516+ productModuleNumber ?: string ;
519517 readonly inUse ?: boolean ;
520518} & T ;
521519type SavedLicenseProps < T extends object = object > = RequiredProps < LicenseProps , 'active' | 'number' > & LicenseProps < T > ;
@@ -536,14 +534,8 @@ interface LicenseMethods {
536534 getLicenseeNumber < D = undefined > ( def ?: D ) : string | D ;
537535 setLicenseTemplateNumber ( number : string ) : void ;
538536 getLicenseTemplateNumber < D = undefined > ( def ?: D ) : string | D ;
539- setTimeVolume ( timeVolume : number ) : void ;
540- getTimeVolume < D = undefined > ( def ?: D ) : number | D ;
541- setTimeVolumePeriod ( timeVolumePeriod : TimeVolumePeriodValues ) : void ;
542- getTimeVolumePeriod < D = undefined > ( def ?: D ) : TimeVolumePeriodValues | D ;
543- setStartDate ( startDate : Date | 'now' ) : void ;
544- getStartDate < D = undefined > ( def ?: D ) : Date | 'now' | D ;
545- setParentfeature ( parentfeature ?: string ) : void ;
546- getParentfeature < D = undefined > ( def ?: D ) : string | D ;
537+ setProductModuleNumber ( number : string ) : void ;
538+ getProductModuleNumber < D = undefined > ( def ?: D ) : string | D ;
547539 serialize ( ) : Record < string , string > ;
548540}
549541type LicenseEntity < T extends object = object > = Entity < LicenseProps < T > , LicenseMethods > ;
@@ -603,11 +595,6 @@ type LicenseTemplateProps<T extends object = object> = {
603595 automatic ?: boolean ;
604596 hidden ?: boolean ;
605597 hideLicenses ?: boolean ;
606- gracePeriod ?: boolean ;
607- timeVolume ?: number ;
608- timeVolumePeriod ?: TimeVolumePeriodValues ;
609- maxSessions ?: number ;
610- quantity ?: number ;
611598 productModuleNumber ?: string ;
612599 readonly inUse ?: boolean ;
613600} & T ;
@@ -631,16 +618,6 @@ interface LicenseTemplateMethods {
631618 getHidden < D = undefined > ( def ?: D ) : boolean | D ;
632619 setHideLicenses ( hideLicenses : boolean ) : void ;
633620 getHideLicenses < D = undefined > ( def ?: D ) : boolean | D ;
634- setGracePeriod ( gradePeriod : boolean ) : void ;
635- getGracePeriod < D = undefined > ( def ?: D ) : boolean | D ;
636- setTimeVolume ( timeVolume : number ) : void ;
637- getTimeVolume < D = undefined > ( def ?: D ) : number | D ;
638- setTimeVolumePeriod ( timeVolumePeriod : TimeVolumePeriodValues ) : void ;
639- getTimeVolumePeriod < D = undefined > ( def ?: D ) : TimeVolumePeriodValues | D ;
640- setMaxSessions ( maxSessions : number ) : void ;
641- getMaxSessions < D = undefined > ( def ?: D ) : number | D ;
642- setQuantity ( quantity : number ) : void ;
643- getQuantity < D = undefined > ( def ?: D ) : number | D ;
644621 setProductModuleNumber ( productModuleNumber : string ) : void ;
645622 getProductModuleNumber < D = undefined > ( def ?: D ) : string | D ;
646623 serialize ( ) : Record < string , string > ;
@@ -854,11 +831,7 @@ type ProductModuleProps<T extends object = object> = {
854831 number ?: string ;
855832 name ?: string ;
856833 licensingModel ?: LicensingModelValues ;
857- maxCheckoutValidity ?: number ;
858- yellowThreshold ?: number ;
859- redThreshold ?: number ;
860834 productNumber ?: string ;
861- nodeSecretMode ?: NodeSecretModeValues ;
862835 readonly inUse ?: boolean ;
863836} & T ;
864837type SavedProductModuleProps < T extends object = object > = RequiredProps < ProductModuleProps , 'active' | 'number' | 'licensingModel' | 'productNumber' | 'inUse' > & ProductModuleProps < T > ;
@@ -871,12 +844,6 @@ interface ProductModuleMethods {
871844 getName < D = undefined > ( def ?: D ) : string | D ;
872845 setLicensingModel ( licensingModel : LicensingModelValues ) : void ;
873846 getLicensingModel < D = undefined > ( def ?: D ) : LicensingModelValues | D ;
874- setMaxCheckoutValidity ( maxCheckoutValidity : number ) : void ;
875- getMaxCheckoutValidity < D = undefined > ( def ?: D ) : number | D ;
876- setYellowThreshold ( yellowThreshold : number ) : void ;
877- getYellowThreshold < D = undefined > ( def ?: D ) : number | D ;
878- setRedThreshold ( redThreshold : number ) : void ;
879- getRedThreshold < D = undefined > ( def ?: D ) : number | D ;
880847 setProductNumber ( productNumber : string ) : void ;
881848 getProductNumber < D = undefined > ( def ?: D ) : string | D ;
882849 serialize ( ) : Record < string , string > ;
@@ -1269,7 +1236,9 @@ type BundleProps<T extends object = object> = T & {
12691236 name ?: string ;
12701237 price ?: number ;
12711238 currency ?: string ;
1239+ productNumber ?: string ;
12721240 licenseTemplateNumbers ?: string [ ] ;
1241+ readonly staleLicenseTemplateNumbers ?: string [ ] ;
12731242} ;
12741243type SavedBundleProps < T extends object = object > = RequiredProps < BundleProps , 'active' | 'number' | 'name' > & BundleProps < T > ;
12751244interface BundleMethods {
@@ -1283,10 +1252,13 @@ interface BundleMethods {
12831252 getPrice < D = undefined > ( def ?: D ) : number | D ;
12841253 setCurrency ( currency : string ) : void ;
12851254 getCurrency < D = undefined > ( def ?: D ) : string | D ;
1255+ setProductNumber ( number : string ) : void ;
1256+ getProductNumber < D = undefined > ( def ?: D ) : string | D ;
12861257 setLicenseTemplateNumbers ( numbers : string [ ] ) : void ;
12871258 getLicenseTemplateNumbers < D = undefined > ( def ?: D ) : string [ ] | D ;
12881259 addLicenseTemplateNumber ( number : string ) : void ;
12891260 removeLicenseTemplateNumber ( number : string ) : void ;
1261+ getStaleLicenseTemplateNumbers < D = undefined > ( def ?: D ) : string [ ] | D ;
12901262 serialize ( ) : Record < string , string > ;
12911263}
12921264type BundleEntity < T extends object = object > = Entity < BundleProps < T > , BundleMethods > ;
@@ -1383,6 +1355,13 @@ declare const defineEntity: <P extends Proto, T extends object, M extends object
13831355 get ?: PropGetEventListener < T > ;
13841356} ) => Entity < T , M > ;
13851357
1358+ /**
1359+ * @author Labs64 <netlicensing@labs64.com>
1360+ * @license Apache-2.0
1361+ * @link https://netlicensing.io
1362+ * @copyright 2017 Labs64 NetLicensing
1363+ */
1364+
13861365/**
13871366 * License entity used internally by NetLicensing.
13881367 *
@@ -1801,4 +1780,4 @@ declare const _default$1: () => ValidationParametersInstance;
18011780
18021781declare const _default : ( ) => ValidationResultsInstance ;
18031782
1804- export { ApiKeyRole , type ApiKeyRoleKeys , type ApiKeyRoleValues , Bundle , type BundleEntity , type BundleMethods , type BundleProps , bundleService as BundleService , _default$g as Constants , _default$2 as Context , type ContextConfig , type ContextInstance , Country , type CountryEntity , type CountryMethods , type CountryProps , type Entity , type EntityMethods , type IBundleService , type ILicenseService , type ILicenseTemplateService , type ILicenseeService , type INotificationService , type IPaymentMethodService , type IProductModuleService , type IProductService , type IService , type ITokenService , type ITransactionService , type IUtilityService , type Info , type Item , type ItemPagination , type Items , License , type LicenseEntity , type LicenseMethods , type LicenseProps , licenseService as LicenseService , LicenseTemplate , type LicenseTemplateEntity , type LicenseTemplateMethods , type LicenseTemplateProps , licenseTemplateService as LicenseTemplateService , _default$4 as LicenseTransactionJoin , type LicenseTransactionJoinEntity , type LicenseTransactionJoinMethods , type LicenseTransactionJoinProps , LicenseType , type LicenseTypeKeys , type LicenseTypeValues , Licensee , type LicenseeEntity , type LicenseeMethods , type LicenseeProperties , type LicenseeProps , LicenseeSecretMode , type LicenseeSecretModeKeys , type LicenseeSecretModeValues , licenseeService as LicenseeService , LicensingModel , type LicensingModelKeys , type LicensingModelValues , type List , NlicError , type NlicResponse , NodeSecretMode , type NodeSecretModeKeys , type NodeSecretModeValues , Notification , type NotificationEntity , NotificationEvent , type NotificationEventKeys , type NotificationEventValues , type NotificationMethods , type NotificationProps , NotificationProtocol , type NotificationProtocolKeys , type NotificationProtocolValues , notificationService as NotificationService , Page , type PageInstance , type Pagination , type PaginationMethods , type Parameter , type Parameters , PaymentMethod , type PaymentMethodEntity , PaymentMethodEnum , type PaymentMethodKeys , type PaymentMethodMethods , type PaymentMethodProps , paymentMethodService as PaymentMethodService , type PaymentMethodValues , Product , ProductDiscount , type ProductDiscountEntity , type ProductDiscountMethods , type ProductDiscountProps , type ProductEntity , type ProductMethods , ProductModule , type ProductModuleEntity , type ProductModuleMethods , type ProductModuleProps , productModuleService as ProductModuleService , type ProductModuleValidation , type ProductProps , productService as ProductService , type PropGetEventListener , type PropSetEventListener , type Proto , type RequestConfig , type RequiredProps , type SavedBundleProps , type SavedLicenseProps , type SavedLicenseTemplateProps , type SavedLicenseeProps , type SavedNotificationProps , type SavedPaymentMethodProps , type SavedProductModuleProps , type SavedProductProps , type SavedTokenProps , type SavedTransactionProps , SecurityMode , type SecurityModeKeys , type SecurityModeValues , service as Service , TimeVolumePeriod , type TimeVolumePeriodKeys , type TimeVolumePeriodValues , Token , type TokenEntity , type TokenMethods , type TokenProps , tokenService as TokenService , TokenType , type TokenTypeKeys , type TokenTypeValues , Transaction , type TransactionEntity , type TransactionMethods , type TransactionProps , transactionService as TransactionService , TransactionSource , type TransactionSourceKeys , type TransactionSourceValues , TransactionStatus , type TransactionStatusKeys , type TransactionStatusValues , utilityService as UtilityService , _default$1 as ValidationParameters , type ValidationParametersInstance , _default as ValidationResults , type ValidationResultsInstance , type WarningLevelSummary , defineEntity , ensureNotEmpty , ensureNotNull , decode as filterDecode , encode as filterEncode , isDefined , isValid , _default$f as itemToBundle , _default$e as itemToCountry , _default$d as itemToLicense , _default$b as itemToLicenseTemplate , _default$c as itemToLicensee , _default$a as itemToNotification , itemToObject , _default$9 as itemToPaymentMethod , _default$8 as itemToProduct , _default$7 as itemToProductModule , _default$6 as itemToToken , _default$5 as itemToTransaction , _default$3 as serialize } ;
1783+ export { ApiKeyRole , type ApiKeyRoleKeys , type ApiKeyRoleValues , Bundle , type BundleEntity , type BundleMethods , type BundleProps , bundleService as BundleService , _default$g as Constants , _default$2 as Context , type ContextConfig , type ContextInstance , Country , type CountryEntity , type CountryMethods , type CountryProps , type DateField , type Entity , type EntityMethods , type IBundleService , type ILicenseService , type ILicenseTemplateService , type ILicenseeService , type INotificationService , type IPaymentMethodService , type IProductModuleService , type IProductService , type IService , type ITokenService , type ITransactionService , type IUtilityService , type Info , type Item , type ItemPagination , type Items , License , type LicenseEntity , type LicenseMethods , type LicenseProps , licenseService as LicenseService , LicenseTemplate , type LicenseTemplateEntity , type LicenseTemplateMethods , type LicenseTemplateProps , licenseTemplateService as LicenseTemplateService , _default$4 as LicenseTransactionJoin , type LicenseTransactionJoinEntity , type LicenseTransactionJoinMethods , type LicenseTransactionJoinProps , LicenseType , type LicenseTypeKeys , type LicenseTypeValues , Licensee , type LicenseeEntity , type LicenseeMethods , type LicenseeProperties , type LicenseeProps , LicenseeSecretMode , type LicenseeSecretModeKeys , type LicenseeSecretModeValues , licenseeService as LicenseeService , LicensingModel , type LicensingModelKeys , type LicensingModelValues , type List , NlicError , type NlicResponse , NodeSecretMode , type NodeSecretModeKeys , type NodeSecretModeValues , Notification , type NotificationEntity , NotificationEvent , type NotificationEventKeys , type NotificationEventValues , type NotificationMethods , type NotificationProps , NotificationProtocol , type NotificationProtocolKeys , type NotificationProtocolValues , notificationService as NotificationService , Page , type PageInstance , type Pagination , type PaginationMethods , type Parameter , type Parameters , PaymentMethod , type PaymentMethodEntity , PaymentMethodEnum , type PaymentMethodKeys , type PaymentMethodMethods , type PaymentMethodProps , paymentMethodService as PaymentMethodService , type PaymentMethodValues , Product , ProductDiscount , type ProductDiscountEntity , type ProductDiscountMethods , type ProductDiscountProps , type ProductEntity , type ProductMethods , ProductModule , type ProductModuleEntity , type ProductModuleMethods , type ProductModuleProps , productModuleService as ProductModuleService , type ProductModuleValidation , type ProductProps , productService as ProductService , type PropGetEventListener , type PropSetEventListener , type Proto , type RequestConfig , type RequiredProps , type SavedBundleProps , type SavedLicenseProps , type SavedLicenseTemplateProps , type SavedLicenseeProps , type SavedNotificationProps , type SavedPaymentMethodProps , type SavedProductModuleProps , type SavedProductProps , type SavedTokenProps , type SavedTransactionProps , SecurityMode , type SecurityModeKeys , type SecurityModeValues , service as Service , TimeVolumePeriod , type TimeVolumePeriodKeys , type TimeVolumePeriodValues , Token , type TokenEntity , type TokenMethods , type TokenProps , tokenService as TokenService , TokenType , type TokenTypeKeys , type TokenTypeValues , Transaction , type TransactionEntity , type TransactionMethods , type TransactionProps , transactionService as TransactionService , TransactionSource , type TransactionSourceKeys , type TransactionSourceValues , TransactionStatus , type TransactionStatusKeys , type TransactionStatusValues , utilityService as UtilityService , _default$1 as ValidationParameters , type ValidationParametersInstance , _default as ValidationResults , type ValidationResultsInstance , type WarningLevelSummary , defineEntity , ensureNotEmpty , ensureNotNull , decode as filterDecode , encode as filterEncode , isDefined , isValid , _default$f as itemToBundle , _default$e as itemToCountry , _default$d as itemToLicense , _default$b as itemToLicenseTemplate , _default$c as itemToLicensee , _default$a as itemToNotification , itemToObject , _default$9 as itemToPaymentMethod , _default$8 as itemToProduct , _default$7 as itemToProductModule , _default$6 as itemToToken , _default$5 as itemToTransaction , _default$3 as serialize } ;
0 commit comments