File tree Expand file tree Collapse file tree 5 files changed +21
-0
lines changed Expand file tree Collapse file tree 5 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * @author Labs64 <[email protected] > 3+ * @license Apache-2.0
4+ * @link https://netlicensing.io
5+ * @copyright 2017 Labs64 NetLicensing
6+ */
7+ const NodeSecretMode = Object . freeze ( {
8+ PREDEFINED : 'PREDEFINED' ,
9+ CLIENT : 'CLIENT' ,
10+ } ) ;
11+
12+ export default NodeSecretMode ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import ApiKeyRole from '@/constants/ApiKeyRole';
44import LicenseeSecretMode from '@/constants/LicenseeSecretMode' ;
55import LicenseType from '@/constants/LicenseType' ;
66import LicensingModel from '@/constants/LicensingModel' ;
7+ import NodeSecretMode from '@/constants/NodeSecretMode' ;
78import NotificationEvent from '@/constants/NotificationEvent' ;
89import NotificationProtocol from '@/constants/NotificationProtocol' ;
910import PaymentMethodEnum from '@/constants/PaymentMethodEnum' ;
@@ -81,6 +82,7 @@ export {
8182 LicenseeSecretMode ,
8283 LicenseType ,
8384 LicensingModel ,
85+ NodeSecretMode ,
8486 NotificationEvent ,
8587 NotificationProtocol ,
8688 PaymentMethodEnum ,
Original file line number Diff line number Diff line change 1+ import NodeSecretMode from '@/constants/NodeSecretMode' ;
2+
3+ export type NodeSecretModeKeys = keyof typeof NodeSecretMode ;
4+ export type NodeSecretModeValues = ( typeof NodeSecretMode ) [ NodeSecretModeKeys ] ;
Original file line number Diff line number Diff line change 77// types
88import { RequiredProps } from '@/types' ;
99import { LicensingModelValues } from '@/types/constants/LicensingModel' ;
10+ import { NodeSecretModeValues } from '@/types/constants/NodeSecretMode' ;
1011import { Entity } from '@/types/entities/defineEntity' ;
1112
1213export type ProductModuleProps < T extends object = object > = {
@@ -18,6 +19,7 @@ export type ProductModuleProps<T extends object = object> = {
1819 yellowThreshold ?: number ;
1920 redThreshold ?: number ;
2021 productNumber ?: string ;
22+ nodeSecretMode ?: NodeSecretModeValues ;
2123 readonly inUse ?: boolean ;
2224} & T ;
2325
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ export * from './api/response';
44// constants
55export * from './constants/ApiKeyRole' ;
66export * from './constants/LicenseeSecretMode' ;
7+ export * from './constants/NodeSecretMode' ;
78export * from './constants/LicenseType' ;
89export * from './constants/LicensingModel' ;
910export * from './constants/NotificationEvent' ;
You can’t perform that action at this time.
0 commit comments