1type LicenseCheckResponseBody = {
2 id: number,
3 allow_grace_period: boolean,
4 allow_overages: boolean,
5 allow_unlimited_activations: boolean,
6 borrowed_until: string | null,
7 can_borrow: boolean,
8 channel: string,
9 device_id: number,
10 enable_maintenance_period: boolean
11 environment: string,
12 eula_link: string,
13 floating_timeout: number,
14 grace_period: number,
15 hash_md5: string,
16 installation_file: string,
17 is_air_gapped: boolean,
18 is_borrowed: boolean,
19 is_expired: boolean,
20 is_floating_cloud: boolean,
21 is_floating: boolean,
22 is_hardware_key_auth: boolean,
23 license_active: boolean,
24 license_enabled: boolean,
25 license_signature: string,
26 license_signature_v2: string,
27 offline_signature: string,
28 license_type: string,
29 maintenance_period: string | null,
30 max_activations: number,
31 max_borrow_time: number,
32 max_license_users: number,
33 max_overages: number,
34 max_transfers: number,
35 order_store_id: string,
36 prevent_vm: boolean,
37 release_date: string,
38 release_notes_link: string,
39 requires_version: string,
40 size: string,
41 start_date: string | null,
42 times_activated: number,
43 transfer_count: number,
44 validity_period: string | null,
45 version: string,
46
47 product_features: ({
48 id: number,
49 code: string,
50 name: string,
51 expiry_date: string,
52 metadata: JSON,
53 feature_type: 'activation' | 'consumption',
54 is_floating: boolean,
55 is_floating_cloud: boolean,
56
57
58 floating_users: number,
59 floating_timeout: number,
60
61
62 max_consumption: number,
63 allow_unlimited_consumptions: boolean,
64 total_consumptions: number,
65 allow_overages: number,
66 max_overages: number,
67 reset_consumption: boolean,
68 consumption_period: 'daily' | 'weekly' | 'monthly' | 'annualy' | null,
69 })[],
70
71 custom_fields: ({
72 name: string,
73 data_type: 'numer' | 'text' | 'date/time',
74 value: string,
75 })[],
76
77 customer: {
78 email: string,
79 company_name: string,
80 reference: string,
81 phone: string,
82 first_name: string,
83 last_name: string,
84 city: string,
85 postcode: string,
86 state: string,
87 country: string,
88 address: string,
89 customer_account: string | null,
90 metadata: JSON,
91 },
92
93 product_details: {
94 product_id: number,
95 product_name: string,
96 short_code: string,
97 authorization_method: 'license-key' | 'user',
98 metadata: JSON,
99 },
100
101 metadata: JSON,
102
103
104 trial_days: number,
105
106
107 floating_in_use_devices: number,
108 floating_users: number,
109
110
111 max_consumptions: number,
112 total_consumptions: number,
113 allow_unlimited_consumptions: boolean,
114 reset_consumption: boolean,
115 consumption_period: string | null,
116
117} & ({
118
119
120 license_key: string,
121
122} | {
123
124
125 user: {
126 id: number,
127 email: string,
128 first_name: string,
129 last_name: string,
130 phone_number: string,
131 is_initial_password: boolean,
132 max_activations: number,
133 allow_unlimited_activations: boolean,
134 total_activations: number
135 }
136});
137