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 <netlicensing@labs64.com>
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';
4
4
import LicenseeSecretMode from '@/constants/LicenseeSecretMode' ;
5
5
import LicenseType from '@/constants/LicenseType' ;
6
6
import LicensingModel from '@/constants/LicensingModel' ;
7
+ import NodeSecretMode from '@/constants/NodeSecretMode' ;
7
8
import NotificationEvent from '@/constants/NotificationEvent' ;
8
9
import NotificationProtocol from '@/constants/NotificationProtocol' ;
9
10
import PaymentMethodEnum from '@/constants/PaymentMethodEnum' ;
@@ -81,6 +82,7 @@ export {
81
82
LicenseeSecretMode ,
82
83
LicenseType ,
83
84
LicensingModel ,
85
+ NodeSecretMode ,
84
86
NotificationEvent ,
85
87
NotificationProtocol ,
86
88
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 7
7
// types
8
8
import { RequiredProps } from '@/types' ;
9
9
import { LicensingModelValues } from '@/types/constants/LicensingModel' ;
10
+ import { NodeSecretModeValues } from '@/types/constants/NodeSecretMode' ;
10
11
import { Entity } from '@/types/entities/defineEntity' ;
11
12
12
13
export type ProductModuleProps < T extends object = object > = {
@@ -18,6 +19,7 @@ export type ProductModuleProps<T extends object = object> = {
18
19
yellowThreshold ?: number ;
19
20
redThreshold ?: number ;
20
21
productNumber ?: string ;
22
+ nodeSecretMode ?: NodeSecretModeValues ;
21
23
readonly inUse ?: boolean ;
22
24
} & T ;
23
25
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ export * from './api/response';
4
4
// constants
5
5
export * from './constants/ApiKeyRole' ;
6
6
export * from './constants/LicenseeSecretMode' ;
7
+ export * from './constants/NodeSecretMode' ;
7
8
export * from './constants/LicenseType' ;
8
9
export * from './constants/LicensingModel' ;
9
10
export * from './constants/NotificationEvent' ;
You can’t perform that action at this time.
0 commit comments