netlicensing-client 2.0.0 → 2.0.2
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 +1 -1
- package/dist/index.d.mts +25 -39
- package/dist/index.d.ts +25 -39
- package/dist/index.global.js +6 -6
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# [Labs64 NetLicensing](https://netlicensing.io) Client (JavaScript)
|
|
4
4
|
|
|
5
|
-
[](https://github.com/Labs64/NetLicensingClient-javascript/actions/workflows/netlicensing-js-ci.yml)
|
|
6
6
|
[](https://www.npmjs.com/package/netlicensing-client)
|
|
7
7
|
[](https://www.npmjs.com/package/netlicensing-client)
|
|
8
8
|
[](https://www.jsdelivr.com/package/npm/netlicensing-client)
|
package/dist/index.d.mts
CHANGED
|
@@ -451,6 +451,7 @@ type TransactionStatusKeys = keyof typeof TransactionStatus;
|
|
|
451
451
|
type TransactionStatusValues = (typeof TransactionStatus)[TransactionStatusKeys];
|
|
452
452
|
|
|
453
453
|
type RequiredProps<Base, Keys extends keyof Base> = Required<Pick<Base, Keys>>;
|
|
454
|
+
type DateField = Date | 'now';
|
|
454
455
|
|
|
455
456
|
/**
|
|
456
457
|
* @author Labs64 <netlicensing@labs64.com>
|
|
@@ -512,10 +513,7 @@ type LicenseProps<T extends object = object> = {
|
|
|
512
513
|
hidden?: boolean;
|
|
513
514
|
licenseeNumber?: string;
|
|
514
515
|
licenseTemplateNumber?: string;
|
|
515
|
-
|
|
516
|
-
timeVolumePeriod?: TimeVolumePeriodValues;
|
|
517
|
-
startDate?: Date | 'now';
|
|
518
|
-
parentfeature?: string;
|
|
516
|
+
productModuleNumber?: string;
|
|
519
517
|
readonly inUse?: boolean;
|
|
520
518
|
} & T;
|
|
521
519
|
type SavedLicenseProps<T extends object = object> = RequiredProps<LicenseProps, 'active' | 'number'> & LicenseProps<T>;
|
|
@@ -536,14 +534,8 @@ interface LicenseMethods {
|
|
|
536
534
|
getLicenseeNumber<D = undefined>(def?: D): string | D;
|
|
537
535
|
setLicenseTemplateNumber(number: string): void;
|
|
538
536
|
getLicenseTemplateNumber<D = undefined>(def?: D): string | D;
|
|
539
|
-
|
|
540
|
-
|
|
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;
|
|
547
539
|
serialize(): Record<string, string>;
|
|
548
540
|
}
|
|
549
541
|
type LicenseEntity<T extends object = object> = Entity<LicenseProps<T>, LicenseMethods>;
|
|
@@ -555,15 +547,22 @@ type LicenseEntity<T extends object = object> = Entity<LicenseProps<T>, LicenseM
|
|
|
555
547
|
* @copyright 2017 Labs64 NetLicensing
|
|
556
548
|
*/
|
|
557
549
|
|
|
550
|
+
interface WarningLevelSummary {
|
|
551
|
+
RED: string[];
|
|
552
|
+
YELLOW: string[];
|
|
553
|
+
GREEN: string[];
|
|
554
|
+
}
|
|
558
555
|
type LicenseeProps<T extends object = object> = {
|
|
559
556
|
active?: boolean;
|
|
560
557
|
number?: string;
|
|
561
558
|
name?: string;
|
|
562
559
|
markedForTransfer?: boolean;
|
|
563
560
|
productNumber?: string;
|
|
561
|
+
aliases?: string[];
|
|
564
562
|
readonly inUse?: boolean;
|
|
563
|
+
readonly warningLevelSummary?: WarningLevelSummary;
|
|
565
564
|
} & T;
|
|
566
|
-
type SavedLicenseeProps<T extends object = object> = RequiredProps<LicenseeProps, 'active' | 'number' | 'productNumber'> & LicenseeProps<T>;
|
|
565
|
+
type SavedLicenseeProps<T extends object = object> = RequiredProps<LicenseeProps, 'active' | 'number' | 'productNumber' | 'inUse' | 'warningLevelSummary'> & LicenseeProps<T>;
|
|
567
566
|
interface LicenseeMethods {
|
|
568
567
|
setActive(active: boolean): void;
|
|
569
568
|
getActive<D = undefined>(def?: D): boolean | D;
|
|
@@ -596,11 +595,6 @@ type LicenseTemplateProps<T extends object = object> = {
|
|
|
596
595
|
automatic?: boolean;
|
|
597
596
|
hidden?: boolean;
|
|
598
597
|
hideLicenses?: boolean;
|
|
599
|
-
gracePeriod?: boolean;
|
|
600
|
-
timeVolume?: number;
|
|
601
|
-
timeVolumePeriod?: TimeVolumePeriodValues;
|
|
602
|
-
maxSessions?: number;
|
|
603
|
-
quantity?: number;
|
|
604
598
|
productModuleNumber?: string;
|
|
605
599
|
readonly inUse?: boolean;
|
|
606
600
|
} & T;
|
|
@@ -624,16 +618,6 @@ interface LicenseTemplateMethods {
|
|
|
624
618
|
getHidden<D = undefined>(def?: D): boolean | D;
|
|
625
619
|
setHideLicenses(hideLicenses: boolean): void;
|
|
626
620
|
getHideLicenses<D = undefined>(def?: D): boolean | D;
|
|
627
|
-
setGracePeriod(gradePeriod: boolean): void;
|
|
628
|
-
getGracePeriod<D = undefined>(def?: D): boolean | D;
|
|
629
|
-
setTimeVolume(timeVolume: number): void;
|
|
630
|
-
getTimeVolume<D = undefined>(def?: D): number | D;
|
|
631
|
-
setTimeVolumePeriod(timeVolumePeriod: TimeVolumePeriodValues): void;
|
|
632
|
-
getTimeVolumePeriod<D = undefined>(def?: D): TimeVolumePeriodValues | D;
|
|
633
|
-
setMaxSessions(maxSessions: number): void;
|
|
634
|
-
getMaxSessions<D = undefined>(def?: D): number | D;
|
|
635
|
-
setQuantity(quantity: number): void;
|
|
636
|
-
getQuantity<D = undefined>(def?: D): number | D;
|
|
637
621
|
setProductModuleNumber(productModuleNumber: string): void;
|
|
638
622
|
getProductModuleNumber<D = undefined>(def?: D): string | D;
|
|
639
623
|
serialize(): Record<string, string>;
|
|
@@ -847,11 +831,7 @@ type ProductModuleProps<T extends object = object> = {
|
|
|
847
831
|
number?: string;
|
|
848
832
|
name?: string;
|
|
849
833
|
licensingModel?: LicensingModelValues;
|
|
850
|
-
maxCheckoutValidity?: number;
|
|
851
|
-
yellowThreshold?: number;
|
|
852
|
-
redThreshold?: number;
|
|
853
834
|
productNumber?: string;
|
|
854
|
-
nodeSecretMode?: NodeSecretModeValues;
|
|
855
835
|
readonly inUse?: boolean;
|
|
856
836
|
} & T;
|
|
857
837
|
type SavedProductModuleProps<T extends object = object> = RequiredProps<ProductModuleProps, 'active' | 'number' | 'licensingModel' | 'productNumber' | 'inUse'> & ProductModuleProps<T>;
|
|
@@ -864,12 +844,6 @@ interface ProductModuleMethods {
|
|
|
864
844
|
getName<D = undefined>(def?: D): string | D;
|
|
865
845
|
setLicensingModel(licensingModel: LicensingModelValues): void;
|
|
866
846
|
getLicensingModel<D = undefined>(def?: D): LicensingModelValues | D;
|
|
867
|
-
setMaxCheckoutValidity(maxCheckoutValidity: number): void;
|
|
868
|
-
getMaxCheckoutValidity<D = undefined>(def?: D): number | D;
|
|
869
|
-
setYellowThreshold(yellowThreshold: number): void;
|
|
870
|
-
getYellowThreshold<D = undefined>(def?: D): number | D;
|
|
871
|
-
setRedThreshold(redThreshold: number): void;
|
|
872
|
-
getRedThreshold<D = undefined>(def?: D): number | D;
|
|
873
847
|
setProductNumber(productNumber: string): void;
|
|
874
848
|
getProductNumber<D = undefined>(def?: D): string | D;
|
|
875
849
|
serialize(): Record<string, string>;
|
|
@@ -1262,7 +1236,9 @@ type BundleProps<T extends object = object> = T & {
|
|
|
1262
1236
|
name?: string;
|
|
1263
1237
|
price?: number;
|
|
1264
1238
|
currency?: string;
|
|
1239
|
+
productNumber?: string;
|
|
1265
1240
|
licenseTemplateNumbers?: string[];
|
|
1241
|
+
readonly staleLicenseTemplateNumbers?: string[];
|
|
1266
1242
|
};
|
|
1267
1243
|
type SavedBundleProps<T extends object = object> = RequiredProps<BundleProps, 'active' | 'number' | 'name'> & BundleProps<T>;
|
|
1268
1244
|
interface BundleMethods {
|
|
@@ -1276,10 +1252,13 @@ interface BundleMethods {
|
|
|
1276
1252
|
getPrice<D = undefined>(def?: D): number | D;
|
|
1277
1253
|
setCurrency(currency: string): void;
|
|
1278
1254
|
getCurrency<D = undefined>(def?: D): string | D;
|
|
1255
|
+
setProductNumber(number: string): void;
|
|
1256
|
+
getProductNumber<D = undefined>(def?: D): string | D;
|
|
1279
1257
|
setLicenseTemplateNumbers(numbers: string[]): void;
|
|
1280
1258
|
getLicenseTemplateNumbers<D = undefined>(def?: D): string[] | D;
|
|
1281
1259
|
addLicenseTemplateNumber(number: string): void;
|
|
1282
1260
|
removeLicenseTemplateNumber(number: string): void;
|
|
1261
|
+
getStaleLicenseTemplateNumbers<D = undefined>(def?: D): string[] | D;
|
|
1283
1262
|
serialize(): Record<string, string>;
|
|
1284
1263
|
}
|
|
1285
1264
|
type BundleEntity<T extends object = object> = Entity<BundleProps<T>, BundleMethods>;
|
|
@@ -1376,6 +1355,13 @@ declare const defineEntity: <P extends Proto, T extends object, M extends object
|
|
|
1376
1355
|
get?: PropGetEventListener<T>;
|
|
1377
1356
|
}) => Entity<T, M>;
|
|
1378
1357
|
|
|
1358
|
+
/**
|
|
1359
|
+
* @author Labs64 <netlicensing@labs64.com>
|
|
1360
|
+
* @license Apache-2.0
|
|
1361
|
+
* @link https://netlicensing.io
|
|
1362
|
+
* @copyright 2017 Labs64 NetLicensing
|
|
1363
|
+
*/
|
|
1364
|
+
|
|
1379
1365
|
/**
|
|
1380
1366
|
* License entity used internally by NetLicensing.
|
|
1381
1367
|
*
|
|
@@ -1794,4 +1780,4 @@ declare const _default$1: () => ValidationParametersInstance;
|
|
|
1794
1780
|
|
|
1795
1781
|
declare const _default: () => ValidationResultsInstance;
|
|
1796
1782
|
|
|
1797
|
-
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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -451,6 +451,7 @@ type TransactionStatusKeys = keyof typeof TransactionStatus;
|
|
|
451
451
|
type TransactionStatusValues = (typeof TransactionStatus)[TransactionStatusKeys];
|
|
452
452
|
|
|
453
453
|
type RequiredProps<Base, Keys extends keyof Base> = Required<Pick<Base, Keys>>;
|
|
454
|
+
type DateField = Date | 'now';
|
|
454
455
|
|
|
455
456
|
/**
|
|
456
457
|
* @author Labs64 <netlicensing@labs64.com>
|
|
@@ -512,10 +513,7 @@ type LicenseProps<T extends object = object> = {
|
|
|
512
513
|
hidden?: boolean;
|
|
513
514
|
licenseeNumber?: string;
|
|
514
515
|
licenseTemplateNumber?: string;
|
|
515
|
-
|
|
516
|
-
timeVolumePeriod?: TimeVolumePeriodValues;
|
|
517
|
-
startDate?: Date | 'now';
|
|
518
|
-
parentfeature?: string;
|
|
516
|
+
productModuleNumber?: string;
|
|
519
517
|
readonly inUse?: boolean;
|
|
520
518
|
} & T;
|
|
521
519
|
type SavedLicenseProps<T extends object = object> = RequiredProps<LicenseProps, 'active' | 'number'> & LicenseProps<T>;
|
|
@@ -536,14 +534,8 @@ interface LicenseMethods {
|
|
|
536
534
|
getLicenseeNumber<D = undefined>(def?: D): string | D;
|
|
537
535
|
setLicenseTemplateNumber(number: string): void;
|
|
538
536
|
getLicenseTemplateNumber<D = undefined>(def?: D): string | D;
|
|
539
|
-
|
|
540
|
-
|
|
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;
|
|
547
539
|
serialize(): Record<string, string>;
|
|
548
540
|
}
|
|
549
541
|
type LicenseEntity<T extends object = object> = Entity<LicenseProps<T>, LicenseMethods>;
|
|
@@ -555,15 +547,22 @@ type LicenseEntity<T extends object = object> = Entity<LicenseProps<T>, LicenseM
|
|
|
555
547
|
* @copyright 2017 Labs64 NetLicensing
|
|
556
548
|
*/
|
|
557
549
|
|
|
550
|
+
interface WarningLevelSummary {
|
|
551
|
+
RED: string[];
|
|
552
|
+
YELLOW: string[];
|
|
553
|
+
GREEN: string[];
|
|
554
|
+
}
|
|
558
555
|
type LicenseeProps<T extends object = object> = {
|
|
559
556
|
active?: boolean;
|
|
560
557
|
number?: string;
|
|
561
558
|
name?: string;
|
|
562
559
|
markedForTransfer?: boolean;
|
|
563
560
|
productNumber?: string;
|
|
561
|
+
aliases?: string[];
|
|
564
562
|
readonly inUse?: boolean;
|
|
563
|
+
readonly warningLevelSummary?: WarningLevelSummary;
|
|
565
564
|
} & T;
|
|
566
|
-
type SavedLicenseeProps<T extends object = object> = RequiredProps<LicenseeProps, 'active' | 'number' | 'productNumber'> & LicenseeProps<T>;
|
|
565
|
+
type SavedLicenseeProps<T extends object = object> = RequiredProps<LicenseeProps, 'active' | 'number' | 'productNumber' | 'inUse' | 'warningLevelSummary'> & LicenseeProps<T>;
|
|
567
566
|
interface LicenseeMethods {
|
|
568
567
|
setActive(active: boolean): void;
|
|
569
568
|
getActive<D = undefined>(def?: D): boolean | D;
|
|
@@ -596,11 +595,6 @@ type LicenseTemplateProps<T extends object = object> = {
|
|
|
596
595
|
automatic?: boolean;
|
|
597
596
|
hidden?: boolean;
|
|
598
597
|
hideLicenses?: boolean;
|
|
599
|
-
gracePeriod?: boolean;
|
|
600
|
-
timeVolume?: number;
|
|
601
|
-
timeVolumePeriod?: TimeVolumePeriodValues;
|
|
602
|
-
maxSessions?: number;
|
|
603
|
-
quantity?: number;
|
|
604
598
|
productModuleNumber?: string;
|
|
605
599
|
readonly inUse?: boolean;
|
|
606
600
|
} & T;
|
|
@@ -624,16 +618,6 @@ interface LicenseTemplateMethods {
|
|
|
624
618
|
getHidden<D = undefined>(def?: D): boolean | D;
|
|
625
619
|
setHideLicenses(hideLicenses: boolean): void;
|
|
626
620
|
getHideLicenses<D = undefined>(def?: D): boolean | D;
|
|
627
|
-
setGracePeriod(gradePeriod: boolean): void;
|
|
628
|
-
getGracePeriod<D = undefined>(def?: D): boolean | D;
|
|
629
|
-
setTimeVolume(timeVolume: number): void;
|
|
630
|
-
getTimeVolume<D = undefined>(def?: D): number | D;
|
|
631
|
-
setTimeVolumePeriod(timeVolumePeriod: TimeVolumePeriodValues): void;
|
|
632
|
-
getTimeVolumePeriod<D = undefined>(def?: D): TimeVolumePeriodValues | D;
|
|
633
|
-
setMaxSessions(maxSessions: number): void;
|
|
634
|
-
getMaxSessions<D = undefined>(def?: D): number | D;
|
|
635
|
-
setQuantity(quantity: number): void;
|
|
636
|
-
getQuantity<D = undefined>(def?: D): number | D;
|
|
637
621
|
setProductModuleNumber(productModuleNumber: string): void;
|
|
638
622
|
getProductModuleNumber<D = undefined>(def?: D): string | D;
|
|
639
623
|
serialize(): Record<string, string>;
|
|
@@ -847,11 +831,7 @@ type ProductModuleProps<T extends object = object> = {
|
|
|
847
831
|
number?: string;
|
|
848
832
|
name?: string;
|
|
849
833
|
licensingModel?: LicensingModelValues;
|
|
850
|
-
maxCheckoutValidity?: number;
|
|
851
|
-
yellowThreshold?: number;
|
|
852
|
-
redThreshold?: number;
|
|
853
834
|
productNumber?: string;
|
|
854
|
-
nodeSecretMode?: NodeSecretModeValues;
|
|
855
835
|
readonly inUse?: boolean;
|
|
856
836
|
} & T;
|
|
857
837
|
type SavedProductModuleProps<T extends object = object> = RequiredProps<ProductModuleProps, 'active' | 'number' | 'licensingModel' | 'productNumber' | 'inUse'> & ProductModuleProps<T>;
|
|
@@ -864,12 +844,6 @@ interface ProductModuleMethods {
|
|
|
864
844
|
getName<D = undefined>(def?: D): string | D;
|
|
865
845
|
setLicensingModel(licensingModel: LicensingModelValues): void;
|
|
866
846
|
getLicensingModel<D = undefined>(def?: D): LicensingModelValues | D;
|
|
867
|
-
setMaxCheckoutValidity(maxCheckoutValidity: number): void;
|
|
868
|
-
getMaxCheckoutValidity<D = undefined>(def?: D): number | D;
|
|
869
|
-
setYellowThreshold(yellowThreshold: number): void;
|
|
870
|
-
getYellowThreshold<D = undefined>(def?: D): number | D;
|
|
871
|
-
setRedThreshold(redThreshold: number): void;
|
|
872
|
-
getRedThreshold<D = undefined>(def?: D): number | D;
|
|
873
847
|
setProductNumber(productNumber: string): void;
|
|
874
848
|
getProductNumber<D = undefined>(def?: D): string | D;
|
|
875
849
|
serialize(): Record<string, string>;
|
|
@@ -1262,7 +1236,9 @@ type BundleProps<T extends object = object> = T & {
|
|
|
1262
1236
|
name?: string;
|
|
1263
1237
|
price?: number;
|
|
1264
1238
|
currency?: string;
|
|
1239
|
+
productNumber?: string;
|
|
1265
1240
|
licenseTemplateNumbers?: string[];
|
|
1241
|
+
readonly staleLicenseTemplateNumbers?: string[];
|
|
1266
1242
|
};
|
|
1267
1243
|
type SavedBundleProps<T extends object = object> = RequiredProps<BundleProps, 'active' | 'number' | 'name'> & BundleProps<T>;
|
|
1268
1244
|
interface BundleMethods {
|
|
@@ -1276,10 +1252,13 @@ interface BundleMethods {
|
|
|
1276
1252
|
getPrice<D = undefined>(def?: D): number | D;
|
|
1277
1253
|
setCurrency(currency: string): void;
|
|
1278
1254
|
getCurrency<D = undefined>(def?: D): string | D;
|
|
1255
|
+
setProductNumber(number: string): void;
|
|
1256
|
+
getProductNumber<D = undefined>(def?: D): string | D;
|
|
1279
1257
|
setLicenseTemplateNumbers(numbers: string[]): void;
|
|
1280
1258
|
getLicenseTemplateNumbers<D = undefined>(def?: D): string[] | D;
|
|
1281
1259
|
addLicenseTemplateNumber(number: string): void;
|
|
1282
1260
|
removeLicenseTemplateNumber(number: string): void;
|
|
1261
|
+
getStaleLicenseTemplateNumbers<D = undefined>(def?: D): string[] | D;
|
|
1283
1262
|
serialize(): Record<string, string>;
|
|
1284
1263
|
}
|
|
1285
1264
|
type BundleEntity<T extends object = object> = Entity<BundleProps<T>, BundleMethods>;
|
|
@@ -1376,6 +1355,13 @@ declare const defineEntity: <P extends Proto, T extends object, M extends object
|
|
|
1376
1355
|
get?: PropGetEventListener<T>;
|
|
1377
1356
|
}) => Entity<T, M>;
|
|
1378
1357
|
|
|
1358
|
+
/**
|
|
1359
|
+
* @author Labs64 <netlicensing@labs64.com>
|
|
1360
|
+
* @license Apache-2.0
|
|
1361
|
+
* @link https://netlicensing.io
|
|
1362
|
+
* @copyright 2017 Labs64 NetLicensing
|
|
1363
|
+
*/
|
|
1364
|
+
|
|
1379
1365
|
/**
|
|
1380
1366
|
* License entity used internally by NetLicensing.
|
|
1381
1367
|
*
|
|
@@ -1794,4 +1780,4 @@ declare const _default$1: () => ValidationParametersInstance;
|
|
|
1794
1780
|
|
|
1795
1781
|
declare const _default: () => ValidationResultsInstance;
|
|
1796
1782
|
|
|
1797
|
-
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, 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 };
|