Skip to content

Commit aafe4c2

Browse files
committed
add NodeSecretMode.ts
1 parent 874da9e commit aafe4c2

File tree

5 files changed

+21
-0
lines changed

5 files changed

+21
-0
lines changed

src/constants/NodeSecretMode.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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;

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import ApiKeyRole from '@/constants/ApiKeyRole';
44
import LicenseeSecretMode from '@/constants/LicenseeSecretMode';
55
import LicenseType from '@/constants/LicenseType';
66
import LicensingModel from '@/constants/LicensingModel';
7+
import NodeSecretMode from '@/constants/NodeSecretMode';
78
import NotificationEvent from '@/constants/NotificationEvent';
89
import NotificationProtocol from '@/constants/NotificationProtocol';
910
import PaymentMethodEnum from '@/constants/PaymentMethodEnum';
@@ -81,6 +82,7 @@ export {
8182
LicenseeSecretMode,
8283
LicenseType,
8384
LicensingModel,
85+
NodeSecretMode,
8486
NotificationEvent,
8587
NotificationProtocol,
8688
PaymentMethodEnum,

src/types/constants/NodeSecretMode.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import NodeSecretMode from '@/constants/NodeSecretMode';
2+
3+
export type NodeSecretModeKeys = keyof typeof NodeSecretMode;
4+
export type NodeSecretModeValues = (typeof NodeSecretMode)[NodeSecretModeKeys];

src/types/entities/ProductModule.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// types
88
import { RequiredProps } from '@/types';
99
import { LicensingModelValues } from '@/types/constants/LicensingModel';
10+
import { NodeSecretModeValues } from '@/types/constants/NodeSecretMode';
1011
import { Entity } from '@/types/entities/defineEntity';
1112

1213
export 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

src/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export * from './api/response';
44
// constants
55
export * from './constants/ApiKeyRole';
66
export * from './constants/LicenseeSecretMode';
7+
export * from './constants/NodeSecretMode';
78
export * from './constants/LicenseType';
89
export * from './constants/LicensingModel';
910
export * from './constants/NotificationEvent';

0 commit comments

Comments
 (0)