@licensespring/node-sdk 1.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.
Files changed (187) hide show
  1. package/README.md +1 -0
  2. package/dist/.env.prod +22 -0
  3. package/dist/hwid/hardware_id_generator/CHANGELOG.md +4 -0
  4. package/dist/hwid/hardware_id_generator/bin/linux/aarch64/glibc/libhardware_id_generator.so +0 -0
  5. package/dist/hwid/hardware_id_generator/bin/linux/aarch64/musl/libhardware_id_generator.so +0 -0
  6. package/dist/hwid/hardware_id_generator/bin/linux/arm/glibc/libhardware_id_generator.so +0 -0
  7. package/dist/hwid/hardware_id_generator/bin/linux/arm/musl/libhardware_id_generator.so +0 -0
  8. package/dist/hwid/hardware_id_generator/bin/linux/i686/glibc/libhardware_id_generator.so +0 -0
  9. package/dist/hwid/hardware_id_generator/bin/linux/i686/musl/libhardware_id_generator.so +0 -0
  10. package/dist/hwid/hardware_id_generator/bin/linux/ppc64le/glibc/libhardware_id_generator.so +0 -0
  11. package/dist/hwid/hardware_id_generator/bin/linux/ppc64le/musl/libhardware_id_generator.so +0 -0
  12. package/dist/hwid/hardware_id_generator/bin/linux/riscv64/glibc/libhardware_id_generator.so +0 -0
  13. package/dist/hwid/hardware_id_generator/bin/linux/riscv64/musl/libhardware_id_generator.so +0 -0
  14. package/dist/hwid/hardware_id_generator/bin/linux/s390x/glibc/libhardware_id_generator.so +0 -0
  15. package/dist/hwid/hardware_id_generator/bin/linux/s390x/musl/libhardware_id_generator.so +0 -0
  16. package/dist/hwid/hardware_id_generator/bin/linux/x86_64/glibc/libhardware_id_generator.so +0 -0
  17. package/dist/hwid/hardware_id_generator/bin/linux/x86_64/musl/libhardware_id_generator.so +0 -0
  18. package/dist/hwid/hardware_id_generator/bin/macos/arm64/libhardware_id_generator.so +0 -0
  19. package/dist/hwid/hardware_id_generator/bin/macos/x86_64/libhardware_id_generator.so +0 -0
  20. package/dist/hwid/hardware_id_generator/bin/windows/arm/hardware_id_generator.dll +0 -0
  21. package/dist/hwid/hardware_id_generator/bin/windows/arm64/hardware_id_generator.dll +0 -0
  22. package/dist/hwid/hardware_id_generator/bin/windows/x64/hardware_id_generator.dll +0 -0
  23. package/dist/hwid/hardware_id_generator/bin/windows/x86/hardware_id_generator.dll +0 -0
  24. package/dist/hwid/hardware_id_generator/documentation/Documentation.html +1 -0
  25. package/dist/hwid/hardware_id_generator/documentation/README.md +25 -0
  26. package/dist/hwid/hardware_id_generator/documentation/html/annotated.html +115 -0
  27. package/dist/hwid/hardware_id_generator/documentation/html/annotated_dup.js +10 -0
  28. package/dist/hwid/hardware_id_generator/documentation/html/bc_s.png +0 -0
  29. package/dist/hwid/hardware_id_generator/documentation/html/bc_sd.png +0 -0
  30. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProvider-members.html +114 -0
  31. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProvider.html +338 -0
  32. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProvider.js +5 -0
  33. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProvider.png +0 -0
  34. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderCloud-members.html +114 -0
  35. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderCloud.html +184 -0
  36. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderCloud.js +4 -0
  37. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderCloud.png +0 -0
  38. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderLinux-members.html +114 -0
  39. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderLinux.html +184 -0
  40. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderLinux.js +4 -0
  41. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderLinux.png +0 -0
  42. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderMacos-members.html +114 -0
  43. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderMacos.html +184 -0
  44. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderMacos.js +4 -0
  45. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderMacos.png +0 -0
  46. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderWindows-members.html +114 -0
  47. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderWindows.html +192 -0
  48. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderWindows.js +4 -0
  49. package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderWindows.png +0 -0
  50. package/dist/hwid/hardware_id_generator/documentation/html/classes.html +111 -0
  51. package/dist/hwid/hardware_id_generator/documentation/html/closed.png +0 -0
  52. package/dist/hwid/hardware_id_generator/documentation/html/dir_a49c68042076af89c9be520540c36a5a.html +106 -0
  53. package/dist/hwid/hardware_id_generator/documentation/html/dir_d44c64559bbebec7f509842c48db8b23.html +122 -0
  54. package/dist/hwid/hardware_id_generator/documentation/html/dir_d44c64559bbebec7f509842c48db8b23.js +9 -0
  55. package/dist/hwid/hardware_id_generator/documentation/html/doc.svg +12 -0
  56. package/dist/hwid/hardware_id_generator/documentation/html/docd.svg +12 -0
  57. package/dist/hwid/hardware_id_generator/documentation/html/doxygen.css +2045 -0
  58. package/dist/hwid/hardware_id_generator/documentation/html/doxygen.svg +28 -0
  59. package/dist/hwid/hardware_id_generator/documentation/html/dynsections.js +192 -0
  60. package/dist/hwid/hardware_id_generator/documentation/html/exports_8h_source.html +137 -0
  61. package/dist/hwid/hardware_id_generator/documentation/html/files.html +116 -0
  62. package/dist/hwid/hardware_id_generator/documentation/html/files_dup.js +4 -0
  63. package/dist/hwid/hardware_id_generator/documentation/html/folderclosed.svg +11 -0
  64. package/dist/hwid/hardware_id_generator/documentation/html/folderclosedd.svg +11 -0
  65. package/dist/hwid/hardware_id_generator/documentation/html/folderopen.svg +17 -0
  66. package/dist/hwid/hardware_id_generator/documentation/html/folderopend.svg +12 -0
  67. package/dist/hwid/hardware_id_generator/documentation/html/functions.html +110 -0
  68. package/dist/hwid/hardware_id_generator/documentation/html/functions_func.html +110 -0
  69. package/dist/hwid/hardware_id_generator/documentation/html/hardware__id__provider_8h_source.html +161 -0
  70. package/dist/hwid/hardware_id_generator/documentation/html/hardware__id__provider__cloud_8h_source.html +142 -0
  71. package/dist/hwid/hardware_id_generator/documentation/html/hardware__id__provider__linux_8h_source.html +131 -0
  72. package/dist/hwid/hardware_id_generator/documentation/html/hardware__id__provider__macos_8h_source.html +131 -0
  73. package/dist/hwid/hardware_id_generator/documentation/html/hardware__id__provider__windows_8h_source.html +149 -0
  74. package/dist/hwid/hardware_id_generator/documentation/html/hierarchy.html +114 -0
  75. package/dist/hwid/hardware_id_generator/documentation/html/hierarchy.js +9 -0
  76. package/dist/hwid/hardware_id_generator/documentation/html/index.html +132 -0
  77. package/dist/hwid/hardware_id_generator/documentation/html/index.js +4 -0
  78. package/dist/hwid/hardware_id_generator/documentation/html/jquery.js +34 -0
  79. package/dist/hwid/hardware_id_generator/documentation/html/logo_small.png +0 -0
  80. package/dist/hwid/hardware_id_generator/documentation/html/menu.js +136 -0
  81. package/dist/hwid/hardware_id_generator/documentation/html/menudata.js +35 -0
  82. package/dist/hwid/hardware_id_generator/documentation/html/minus.svg +8 -0
  83. package/dist/hwid/hardware_id_generator/documentation/html/minusd.svg +8 -0
  84. package/dist/hwid/hardware_id_generator/documentation/html/nav_f.png +0 -0
  85. package/dist/hwid/hardware_id_generator/documentation/html/nav_fd.png +0 -0
  86. package/dist/hwid/hardware_id_generator/documentation/html/nav_g.png +0 -0
  87. package/dist/hwid/hardware_id_generator/documentation/html/nav_h.png +0 -0
  88. package/dist/hwid/hardware_id_generator/documentation/html/nav_hd.png +0 -0
  89. package/dist/hwid/hardware_id_generator/documentation/html/navtree.css +149 -0
  90. package/dist/hwid/hardware_id_generator/documentation/html/navtree.js +559 -0
  91. package/dist/hwid/hardware_id_generator/documentation/html/navtreedata.js +50 -0
  92. package/dist/hwid/hardware_id_generator/documentation/html/navtreeindex0.js +31 -0
  93. package/dist/hwid/hardware_id_generator/documentation/html/open.png +0 -0
  94. package/dist/hwid/hardware_id_generator/documentation/html/plus.svg +9 -0
  95. package/dist/hwid/hardware_id_generator/documentation/html/plusd.svg +9 -0
  96. package/dist/hwid/hardware_id_generator/documentation/html/resize.js +155 -0
  97. package/dist/hwid/hardware_id_generator/documentation/html/search/all_0.js +4 -0
  98. package/dist/hwid/hardware_id_generator/documentation/html/search/all_1.js +4 -0
  99. package/dist/hwid/hardware_id_generator/documentation/html/search/all_2.js +6 -0
  100. package/dist/hwid/hardware_id_generator/documentation/html/search/all_3.js +9 -0
  101. package/dist/hwid/hardware_id_generator/documentation/html/search/all_4.js +4 -0
  102. package/dist/hwid/hardware_id_generator/documentation/html/search/all_5.js +5 -0
  103. package/dist/hwid/hardware_id_generator/documentation/html/search/all_6.js +4 -0
  104. package/dist/hwid/hardware_id_generator/documentation/html/search/all_7.js +4 -0
  105. package/dist/hwid/hardware_id_generator/documentation/html/search/all_8.js +4 -0
  106. package/dist/hwid/hardware_id_generator/documentation/html/search/all_9.js +4 -0
  107. package/dist/hwid/hardware_id_generator/documentation/html/search/classes_0.js +8 -0
  108. package/dist/hwid/hardware_id_generator/documentation/html/search/close.svg +18 -0
  109. package/dist/hwid/hardware_id_generator/documentation/html/search/functions_0.js +4 -0
  110. package/dist/hwid/hardware_id_generator/documentation/html/search/functions_1.js +4 -0
  111. package/dist/hwid/hardware_id_generator/documentation/html/search/functions_2.js +6 -0
  112. package/dist/hwid/hardware_id_generator/documentation/html/search/functions_3.js +4 -0
  113. package/dist/hwid/hardware_id_generator/documentation/html/search/mag.svg +24 -0
  114. package/dist/hwid/hardware_id_generator/documentation/html/search/mag_d.svg +24 -0
  115. package/dist/hwid/hardware_id_generator/documentation/html/search/mag_sel.svg +31 -0
  116. package/dist/hwid/hardware_id_generator/documentation/html/search/mag_seld.svg +31 -0
  117. package/dist/hwid/hardware_id_generator/documentation/html/search/pages_0.js +4 -0
  118. package/dist/hwid/hardware_id_generator/documentation/html/search/pages_1.js +4 -0
  119. package/dist/hwid/hardware_id_generator/documentation/html/search/pages_2.js +4 -0
  120. package/dist/hwid/hardware_id_generator/documentation/html/search/pages_3.js +4 -0
  121. package/dist/hwid/hardware_id_generator/documentation/html/search/search.css +291 -0
  122. package/dist/hwid/hardware_id_generator/documentation/html/search/search.js +840 -0
  123. package/dist/hwid/hardware_id_generator/documentation/html/search/searchdata.js +24 -0
  124. package/dist/hwid/hardware_id_generator/documentation/html/splitbar.png +0 -0
  125. package/dist/hwid/hardware_id_generator/documentation/html/splitbard.png +0 -0
  126. package/dist/hwid/hardware_id_generator/documentation/html/sync_off.png +0 -0
  127. package/dist/hwid/hardware_id_generator/documentation/html/sync_on.png +0 -0
  128. package/dist/hwid/hardware_id_generator/documentation/html/tab_a.png +0 -0
  129. package/dist/hwid/hardware_id_generator/documentation/html/tab_ad.png +0 -0
  130. package/dist/hwid/hardware_id_generator/documentation/html/tab_b.png +0 -0
  131. package/dist/hwid/hardware_id_generator/documentation/html/tab_bd.png +0 -0
  132. package/dist/hwid/hardware_id_generator/documentation/html/tab_h.png +0 -0
  133. package/dist/hwid/hardware_id_generator/documentation/html/tab_hd.png +0 -0
  134. package/dist/hwid/hardware_id_generator/documentation/html/tab_s.png +0 -0
  135. package/dist/hwid/hardware_id_generator/documentation/html/tab_sd.png +0 -0
  136. package/dist/hwid/hardware_id_generator/documentation/html/tabs.css +1 -0
  137. package/dist/hwid/hardware_id_generator/documentation/licenses/curl/LICENSE.txt +11 -0
  138. package/dist/hwid/hardware_id_generator/documentation/licenses/openssl/LICENSE.txt +177 -0
  139. package/dist/hwid/index.d.ts +12 -0
  140. package/dist/hwid/index.js +82 -0
  141. package/dist/hwid/index.js.map +1 -0
  142. package/dist/hwid/install.d.ts +1 -0
  143. package/dist/hwid/install.js +49 -0
  144. package/dist/hwid/install.js.map +1 -0
  145. package/dist/src/abstract-manager.d.ts +21 -0
  146. package/dist/src/abstract-manager.js +170 -0
  147. package/dist/src/abstract-manager.js.map +1 -0
  148. package/dist/src/api.d.ts +2765 -0
  149. package/dist/src/api.js +2533 -0
  150. package/dist/src/api.js.map +1 -0
  151. package/dist/src/common.d.ts +11 -0
  152. package/dist/src/common.js +87 -0
  153. package/dist/src/common.js.map +1 -0
  154. package/dist/src/floating.d.ts +46 -0
  155. package/dist/src/floating.js +273 -0
  156. package/dist/src/floating.js.map +1 -0
  157. package/dist/src/index.d.ts +4 -0
  158. package/dist/src/index.js +13 -0
  159. package/dist/src/index.js.map +1 -0
  160. package/dist/src/license-data.d.ts +52 -0
  161. package/dist/src/license-data.js +214 -0
  162. package/dist/src/license-data.js.map +1 -0
  163. package/dist/src/license-file.d.ts +23 -0
  164. package/dist/src/license-file.js +238 -0
  165. package/dist/src/license-file.js.map +1 -0
  166. package/dist/src/license-manager.d.ts +34 -0
  167. package/dist/src/license-manager.js +1010 -0
  168. package/dist/src/license-manager.js.map +1 -0
  169. package/dist/src/license.d.ts +644 -0
  170. package/dist/src/license.js +630 -0
  171. package/dist/src/license.js.map +1 -0
  172. package/dist/src/offline-activation.d.ts +6 -0
  173. package/dist/src/offline-activation.js +10 -0
  174. package/dist/src/offline-activation.js.map +1 -0
  175. package/dist/src/service.d.ts +21 -0
  176. package/dist/src/service.js +100 -0
  177. package/dist/src/service.js.map +1 -0
  178. package/dist/src/types.d.ts +513 -0
  179. package/dist/src/types.js +14 -0
  180. package/dist/src/types.js.map +1 -0
  181. package/dist/src/version.d.ts +2 -0
  182. package/dist/src/version.js +5 -0
  183. package/dist/src/version.js.map +1 -0
  184. package/dist/src/watchdog.d.ts +18 -0
  185. package/dist/src/watchdog.js +80 -0
  186. package/dist/src/watchdog.js.map +1 -0
  187. package/package.json +45 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"license-manager.js","sourceRoot":"","sources":["../../src/license-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kDAA0B;AAC1B,kDAA0B;AAC1B,iEAAsC;AACtC,qFAA0D;AAC1D,0EAAiD;AACjD,gDAAkC;AAClC,4CAA8B;AAE9B,eAAK,CAAC,MAAM,CAAC,gBAAG,CAAC,CAAC;AAClB,eAAK,CAAC,MAAM,CAAC,0BAAa,CAAC,CAAC;AAE5B,+CAAiC;AACjC,wDAAgC;AAChC,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAE3F,MAAqB,cAAe,SAAQ,0BAAe;IAElD,kBAAkB,CAAC,OAAwB;QAEhD,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC;YAC7B,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;QAC5F,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;YAC5B,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;QAC1F,CAAC;QAED,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;YAC5B,IAAI,IAAA,eAAK,GAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,eAAe,CA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B,CAAC;CAGF;AA/TD,iCA+TC"}
@@ -0,0 +1,644 @@
1
+ import LicenseAPI from './api';
2
+ import dayjs from 'dayjs';
3
+ import LicenseFile from './license-file';
4
+ import FloatingAPI from './floating';
5
+ export default class License {
6
+ private productCode;
7
+ private licenseAPI;
8
+ private licenseFile;
9
+ private floatingAPI;
10
+ constructor(productCode: string, licenseAPI: LicenseAPI, licenseFile: LicenseFile, floatingAPI: FloatingAPI);
11
+ get isAirGapped(): boolean | undefined;
12
+ get policyID(): any;
13
+ get isFloatingExpired(): boolean;
14
+ get isValidityPeriodExpired(): boolean;
15
+ get validityPeriod(): string | null;
16
+ get validityWithGracePeriod(): string | dayjs.Dayjs | null;
17
+ get licenseUser(): import("./types").LicenseUser | null;
18
+ get licenseKey(): string | null;
19
+ get isGracePeriodStarted(): boolean;
20
+ get gracePeriodHoursRemaining(): number;
21
+ get maintenanceDaysRemaining(): number | null;
22
+ get daysRemaining(): number | null;
23
+ get customerInformation(): import("./types").Customer | undefined;
24
+ get id(): number | undefined;
25
+ get maxTransfers(): number | undefined;
26
+ get transferCount(): number | undefined;
27
+ get isDeviceTransferAllowed(): boolean;
28
+ get isDeviceTransferLimited(): boolean;
29
+ get daysSinceLastCheck(): number;
30
+ get startDate(): string | null | undefined;
31
+ get maintenancePeriod(): string | null | undefined;
32
+ get isMaintenancePeriodExpired(): boolean;
33
+ get lastCheck(): string | undefined;
34
+ get lastUsage(): string | undefined;
35
+ get licenseType(): "consumption" | undefined;
36
+ get maxActivations(): number | undefined;
37
+ get metadata(): import("./types").JSON | undefined;
38
+ get allowUnlimitedActivations(): boolean | undefined;
39
+ get allowGraceSubscriptionPeriod(): boolean | undefined;
40
+ get isSubcriptionGracePeriodStarted(): boolean;
41
+ get gracePeriod(): number;
42
+ get subscriptionGracePeriod(): number | null;
43
+ get isExpired(): boolean | undefined;
44
+ get licenseEnabled(): boolean | undefined;
45
+ get licenseActive(): boolean | undefined;
46
+ get isValid(): boolean | undefined;
47
+ get preventVm(): boolean | undefined;
48
+ get isTrial(): boolean | undefined;
49
+ get floatingTimeout(): number | undefined;
50
+ get isFloating(): boolean | undefined;
51
+ get floatingClientId(): string;
52
+ get isControlledByFloatingServer(): boolean | undefined;
53
+ get expiryDate(): string;
54
+ get borrowUntil(): string | null | undefined;
55
+ get isBorrowed(): boolean | undefined;
56
+ get floatingInUseDevices(): number | null;
57
+ get floatingEndDate(): string;
58
+ get maxFloatingUsers(): number | null;
59
+ get localConsumptions(): number | null;
60
+ get maxConsumptions(): number | null;
61
+ get totalConsumptions(): number | null;
62
+ get maxOverages(): number | undefined;
63
+ get allowUnlimitedConsumptions(): boolean | null;
64
+ get consumptionReset(): boolean | null;
65
+ get allowOverages(): boolean | undefined;
66
+ get consumptionPeriod(): string | null;
67
+ featureData(featureCode: string): import("./types").ProductFeature;
68
+ get features(): import("./types").ProductFeature[] | undefined;
69
+ get customFields(): import("./types").CustomField[] | undefined;
70
+ checkLicenseStatus(): void;
71
+ check(includeExpiredFeatures?: boolean): Promise<({
72
+ id: number;
73
+ allow_grace_period: boolean;
74
+ allow_overages: boolean;
75
+ allow_unlimited_activations: boolean;
76
+ borrowed_until: string | null;
77
+ can_borrow: boolean;
78
+ channel: string;
79
+ device_id: number;
80
+ enable_maintenance_period: boolean;
81
+ environment: string;
82
+ eula_link: string;
83
+ floating_timeout: number;
84
+ grace_period: number;
85
+ hash_md5: string;
86
+ installation_file: string;
87
+ is_air_gapped: boolean;
88
+ is_borrowed: boolean;
89
+ is_expired: boolean;
90
+ is_hardware_key_auth: boolean;
91
+ license_active: boolean;
92
+ license_enabled: boolean;
93
+ license_signature: string;
94
+ license_type: import("./types").LicenseType;
95
+ maintenance_period: string | null;
96
+ max_activations: number;
97
+ max_borrow_time: number;
98
+ max_license_users: number;
99
+ max_overages: number;
100
+ max_transfers: number;
101
+ order_store_id: string;
102
+ prevent_vm: boolean;
103
+ release_date: string;
104
+ release_notes_link: string;
105
+ requires_version: string;
106
+ size: string;
107
+ start_date: string | null;
108
+ times_activated: number;
109
+ transfer_count: number;
110
+ validity_period: import("./types").DateISO8601UTC | null;
111
+ version: string;
112
+ product_features: import("./types").ProductFeature[];
113
+ custom_fields: import("./types").CustomField[];
114
+ customer: import("./types").Customer;
115
+ product_details: import("./types").ProductDetails;
116
+ metadata: import("./types").JSON;
117
+ } & {
118
+ user?: undefined;
119
+ license_key: string;
120
+ } & {
121
+ is_floating: true;
122
+ is_floating_cloud: boolean;
123
+ floating_in_use_devices: number;
124
+ floating_users: number;
125
+ floating_timeout: number;
126
+ } & {
127
+ trial_days?: undefined;
128
+ is_trial: false;
129
+ } & {
130
+ license_type: "consumption";
131
+ max_consumptions: number;
132
+ total_consumptions: number;
133
+ allow_unlimited_consumptions: boolean;
134
+ allow_overages: boolean;
135
+ max_overages: number;
136
+ reset_consumption: boolean;
137
+ consumption_period: import("./types").DateISO8601UTC | null;
138
+ }) | ({
139
+ id: number;
140
+ allow_grace_period: boolean;
141
+ allow_overages: boolean;
142
+ allow_unlimited_activations: boolean;
143
+ borrowed_until: string | null;
144
+ can_borrow: boolean;
145
+ channel: string;
146
+ device_id: number;
147
+ enable_maintenance_period: boolean;
148
+ environment: string;
149
+ eula_link: string;
150
+ floating_timeout: number;
151
+ grace_period: number;
152
+ hash_md5: string;
153
+ installation_file: string;
154
+ is_air_gapped: boolean;
155
+ is_borrowed: boolean;
156
+ is_expired: boolean;
157
+ is_hardware_key_auth: boolean;
158
+ license_active: boolean;
159
+ license_enabled: boolean;
160
+ license_signature: string;
161
+ license_type: import("./types").LicenseType;
162
+ maintenance_period: string | null;
163
+ max_activations: number;
164
+ max_borrow_time: number;
165
+ max_license_users: number;
166
+ max_overages: number;
167
+ max_transfers: number;
168
+ order_store_id: string;
169
+ prevent_vm: boolean;
170
+ release_date: string;
171
+ release_notes_link: string;
172
+ requires_version: string;
173
+ size: string;
174
+ start_date: string | null;
175
+ times_activated: number;
176
+ transfer_count: number;
177
+ validity_period: import("./types").DateISO8601UTC | null;
178
+ version: string;
179
+ product_features: import("./types").ProductFeature[];
180
+ custom_fields: import("./types").CustomField[];
181
+ customer: import("./types").Customer;
182
+ product_details: import("./types").ProductDetails;
183
+ metadata: import("./types").JSON;
184
+ } & {
185
+ user?: undefined;
186
+ license_key: string;
187
+ } & {
188
+ is_floating: true;
189
+ is_floating_cloud: boolean;
190
+ floating_in_use_devices: number;
191
+ floating_users: number;
192
+ floating_timeout: number;
193
+ } & {
194
+ is_trial: true;
195
+ trial_days: number;
196
+ } & {
197
+ license_type: "consumption";
198
+ max_consumptions: number;
199
+ total_consumptions: number;
200
+ allow_unlimited_consumptions: boolean;
201
+ allow_overages: boolean;
202
+ max_overages: number;
203
+ reset_consumption: boolean;
204
+ consumption_period: import("./types").DateISO8601UTC | null;
205
+ }) | ({
206
+ id: number;
207
+ allow_grace_period: boolean;
208
+ allow_overages: boolean;
209
+ allow_unlimited_activations: boolean;
210
+ borrowed_until: string | null;
211
+ can_borrow: boolean;
212
+ channel: string;
213
+ device_id: number;
214
+ enable_maintenance_period: boolean;
215
+ environment: string;
216
+ eula_link: string;
217
+ floating_timeout: number;
218
+ grace_period: number;
219
+ hash_md5: string;
220
+ installation_file: string;
221
+ is_air_gapped: boolean;
222
+ is_borrowed: boolean;
223
+ is_expired: boolean;
224
+ is_hardware_key_auth: boolean;
225
+ license_active: boolean;
226
+ license_enabled: boolean;
227
+ license_signature: string;
228
+ license_type: import("./types").LicenseType;
229
+ maintenance_period: string | null;
230
+ max_activations: number;
231
+ max_borrow_time: number;
232
+ max_license_users: number;
233
+ max_overages: number;
234
+ max_transfers: number;
235
+ order_store_id: string;
236
+ prevent_vm: boolean;
237
+ release_date: string;
238
+ release_notes_link: string;
239
+ requires_version: string;
240
+ size: string;
241
+ start_date: string | null;
242
+ times_activated: number;
243
+ transfer_count: number;
244
+ validity_period: import("./types").DateISO8601UTC | null;
245
+ version: string;
246
+ product_features: import("./types").ProductFeature[];
247
+ custom_fields: import("./types").CustomField[];
248
+ customer: import("./types").Customer;
249
+ product_details: import("./types").ProductDetails;
250
+ metadata: import("./types").JSON;
251
+ } & {
252
+ user?: undefined;
253
+ license_key: string;
254
+ } & {
255
+ is_floating: boolean;
256
+ is_floating_cloud: true;
257
+ floating_in_use_devices: number;
258
+ floating_users: number;
259
+ floating_timeout: number;
260
+ } & {
261
+ trial_days?: undefined;
262
+ is_trial: false;
263
+ } & {
264
+ license_type: "consumption";
265
+ max_consumptions: number;
266
+ total_consumptions: number;
267
+ allow_unlimited_consumptions: boolean;
268
+ allow_overages: boolean;
269
+ max_overages: number;
270
+ reset_consumption: boolean;
271
+ consumption_period: import("./types").DateISO8601UTC | null;
272
+ }) | ({
273
+ id: number;
274
+ allow_grace_period: boolean;
275
+ allow_overages: boolean;
276
+ allow_unlimited_activations: boolean;
277
+ borrowed_until: string | null;
278
+ can_borrow: boolean;
279
+ channel: string;
280
+ device_id: number;
281
+ enable_maintenance_period: boolean;
282
+ environment: string;
283
+ eula_link: string;
284
+ floating_timeout: number;
285
+ grace_period: number;
286
+ hash_md5: string;
287
+ installation_file: string;
288
+ is_air_gapped: boolean;
289
+ is_borrowed: boolean;
290
+ is_expired: boolean;
291
+ is_hardware_key_auth: boolean;
292
+ license_active: boolean;
293
+ license_enabled: boolean;
294
+ license_signature: string;
295
+ license_type: import("./types").LicenseType;
296
+ maintenance_period: string | null;
297
+ max_activations: number;
298
+ max_borrow_time: number;
299
+ max_license_users: number;
300
+ max_overages: number;
301
+ max_transfers: number;
302
+ order_store_id: string;
303
+ prevent_vm: boolean;
304
+ release_date: string;
305
+ release_notes_link: string;
306
+ requires_version: string;
307
+ size: string;
308
+ start_date: string | null;
309
+ times_activated: number;
310
+ transfer_count: number;
311
+ validity_period: import("./types").DateISO8601UTC | null;
312
+ version: string;
313
+ product_features: import("./types").ProductFeature[];
314
+ custom_fields: import("./types").CustomField[];
315
+ customer: import("./types").Customer;
316
+ product_details: import("./types").ProductDetails;
317
+ metadata: import("./types").JSON;
318
+ } & {
319
+ user?: undefined;
320
+ license_key: string;
321
+ } & {
322
+ is_floating: boolean;
323
+ is_floating_cloud: true;
324
+ floating_in_use_devices: number;
325
+ floating_users: number;
326
+ floating_timeout: number;
327
+ } & {
328
+ is_trial: true;
329
+ trial_days: number;
330
+ } & {
331
+ license_type: "consumption";
332
+ max_consumptions: number;
333
+ total_consumptions: number;
334
+ allow_unlimited_consumptions: boolean;
335
+ allow_overages: boolean;
336
+ max_overages: number;
337
+ reset_consumption: boolean;
338
+ consumption_period: import("./types").DateISO8601UTC | null;
339
+ }) | ({
340
+ id: number;
341
+ allow_grace_period: boolean;
342
+ allow_overages: boolean;
343
+ allow_unlimited_activations: boolean;
344
+ borrowed_until: string | null;
345
+ can_borrow: boolean;
346
+ channel: string;
347
+ device_id: number;
348
+ enable_maintenance_period: boolean;
349
+ environment: string;
350
+ eula_link: string;
351
+ floating_timeout: number;
352
+ grace_period: number;
353
+ hash_md5: string;
354
+ installation_file: string;
355
+ is_air_gapped: boolean;
356
+ is_borrowed: boolean;
357
+ is_expired: boolean;
358
+ is_hardware_key_auth: boolean;
359
+ license_active: boolean;
360
+ license_enabled: boolean;
361
+ license_signature: string;
362
+ license_type: import("./types").LicenseType;
363
+ maintenance_period: string | null;
364
+ max_activations: number;
365
+ max_borrow_time: number;
366
+ max_license_users: number;
367
+ max_overages: number;
368
+ max_transfers: number;
369
+ order_store_id: string;
370
+ prevent_vm: boolean;
371
+ release_date: string;
372
+ release_notes_link: string;
373
+ requires_version: string;
374
+ size: string;
375
+ start_date: string | null;
376
+ times_activated: number;
377
+ transfer_count: number;
378
+ validity_period: import("./types").DateISO8601UTC | null;
379
+ version: string;
380
+ product_features: import("./types").ProductFeature[];
381
+ custom_fields: import("./types").CustomField[];
382
+ customer: import("./types").Customer;
383
+ product_details: import("./types").ProductDetails;
384
+ metadata: import("./types").JSON;
385
+ } & {
386
+ license_key?: undefined;
387
+ user: import("./types").LicenseUser;
388
+ } & {
389
+ is_floating: true;
390
+ is_floating_cloud: boolean;
391
+ floating_in_use_devices: number;
392
+ floating_users: number;
393
+ floating_timeout: number;
394
+ } & {
395
+ trial_days?: undefined;
396
+ is_trial: false;
397
+ } & {
398
+ license_type: "consumption";
399
+ max_consumptions: number;
400
+ total_consumptions: number;
401
+ allow_unlimited_consumptions: boolean;
402
+ allow_overages: boolean;
403
+ max_overages: number;
404
+ reset_consumption: boolean;
405
+ consumption_period: import("./types").DateISO8601UTC | null;
406
+ }) | ({
407
+ id: number;
408
+ allow_grace_period: boolean;
409
+ allow_overages: boolean;
410
+ allow_unlimited_activations: boolean;
411
+ borrowed_until: string | null;
412
+ can_borrow: boolean;
413
+ channel: string;
414
+ device_id: number;
415
+ enable_maintenance_period: boolean;
416
+ environment: string;
417
+ eula_link: string;
418
+ floating_timeout: number;
419
+ grace_period: number;
420
+ hash_md5: string;
421
+ installation_file: string;
422
+ is_air_gapped: boolean;
423
+ is_borrowed: boolean;
424
+ is_expired: boolean;
425
+ is_hardware_key_auth: boolean;
426
+ license_active: boolean;
427
+ license_enabled: boolean;
428
+ license_signature: string;
429
+ license_type: import("./types").LicenseType;
430
+ maintenance_period: string | null;
431
+ max_activations: number;
432
+ max_borrow_time: number;
433
+ max_license_users: number;
434
+ max_overages: number;
435
+ max_transfers: number;
436
+ order_store_id: string;
437
+ prevent_vm: boolean;
438
+ release_date: string;
439
+ release_notes_link: string;
440
+ requires_version: string;
441
+ size: string;
442
+ start_date: string | null;
443
+ times_activated: number;
444
+ transfer_count: number;
445
+ validity_period: import("./types").DateISO8601UTC | null;
446
+ version: string;
447
+ product_features: import("./types").ProductFeature[];
448
+ custom_fields: import("./types").CustomField[];
449
+ customer: import("./types").Customer;
450
+ product_details: import("./types").ProductDetails;
451
+ metadata: import("./types").JSON;
452
+ } & {
453
+ license_key?: undefined;
454
+ user: import("./types").LicenseUser;
455
+ } & {
456
+ is_floating: true;
457
+ is_floating_cloud: boolean;
458
+ floating_in_use_devices: number;
459
+ floating_users: number;
460
+ floating_timeout: number;
461
+ } & {
462
+ is_trial: true;
463
+ trial_days: number;
464
+ } & {
465
+ license_type: "consumption";
466
+ max_consumptions: number;
467
+ total_consumptions: number;
468
+ allow_unlimited_consumptions: boolean;
469
+ allow_overages: boolean;
470
+ max_overages: number;
471
+ reset_consumption: boolean;
472
+ consumption_period: import("./types").DateISO8601UTC | null;
473
+ }) | ({
474
+ id: number;
475
+ allow_grace_period: boolean;
476
+ allow_overages: boolean;
477
+ allow_unlimited_activations: boolean;
478
+ borrowed_until: string | null;
479
+ can_borrow: boolean;
480
+ channel: string;
481
+ device_id: number;
482
+ enable_maintenance_period: boolean;
483
+ environment: string;
484
+ eula_link: string;
485
+ floating_timeout: number;
486
+ grace_period: number;
487
+ hash_md5: string;
488
+ installation_file: string;
489
+ is_air_gapped: boolean;
490
+ is_borrowed: boolean;
491
+ is_expired: boolean;
492
+ is_hardware_key_auth: boolean;
493
+ license_active: boolean;
494
+ license_enabled: boolean;
495
+ license_signature: string;
496
+ license_type: import("./types").LicenseType;
497
+ maintenance_period: string | null;
498
+ max_activations: number;
499
+ max_borrow_time: number;
500
+ max_license_users: number;
501
+ max_overages: number;
502
+ max_transfers: number;
503
+ order_store_id: string;
504
+ prevent_vm: boolean;
505
+ release_date: string;
506
+ release_notes_link: string;
507
+ requires_version: string;
508
+ size: string;
509
+ start_date: string | null;
510
+ times_activated: number;
511
+ transfer_count: number;
512
+ validity_period: import("./types").DateISO8601UTC | null;
513
+ version: string;
514
+ product_features: import("./types").ProductFeature[];
515
+ custom_fields: import("./types").CustomField[];
516
+ customer: import("./types").Customer;
517
+ product_details: import("./types").ProductDetails;
518
+ metadata: import("./types").JSON;
519
+ } & {
520
+ license_key?: undefined;
521
+ user: import("./types").LicenseUser;
522
+ } & {
523
+ is_floating: boolean;
524
+ is_floating_cloud: true;
525
+ floating_in_use_devices: number;
526
+ floating_users: number;
527
+ floating_timeout: number;
528
+ } & {
529
+ trial_days?: undefined;
530
+ is_trial: false;
531
+ } & {
532
+ license_type: "consumption";
533
+ max_consumptions: number;
534
+ total_consumptions: number;
535
+ allow_unlimited_consumptions: boolean;
536
+ allow_overages: boolean;
537
+ max_overages: number;
538
+ reset_consumption: boolean;
539
+ consumption_period: import("./types").DateISO8601UTC | null;
540
+ }) | ({
541
+ id: number;
542
+ allow_grace_period: boolean;
543
+ allow_overages: boolean;
544
+ allow_unlimited_activations: boolean;
545
+ borrowed_until: string | null;
546
+ can_borrow: boolean;
547
+ channel: string;
548
+ device_id: number;
549
+ enable_maintenance_period: boolean;
550
+ environment: string;
551
+ eula_link: string;
552
+ floating_timeout: number;
553
+ grace_period: number;
554
+ hash_md5: string;
555
+ installation_file: string;
556
+ is_air_gapped: boolean;
557
+ is_borrowed: boolean;
558
+ is_expired: boolean;
559
+ is_hardware_key_auth: boolean;
560
+ license_active: boolean;
561
+ license_enabled: boolean;
562
+ license_signature: string;
563
+ license_type: import("./types").LicenseType;
564
+ maintenance_period: string | null;
565
+ max_activations: number;
566
+ max_borrow_time: number;
567
+ max_license_users: number;
568
+ max_overages: number;
569
+ max_transfers: number;
570
+ order_store_id: string;
571
+ prevent_vm: boolean;
572
+ release_date: string;
573
+ release_notes_link: string;
574
+ requires_version: string;
575
+ size: string;
576
+ start_date: string | null;
577
+ times_activated: number;
578
+ transfer_count: number;
579
+ validity_period: import("./types").DateISO8601UTC | null;
580
+ version: string;
581
+ product_features: import("./types").ProductFeature[];
582
+ custom_fields: import("./types").CustomField[];
583
+ customer: import("./types").Customer;
584
+ product_details: import("./types").ProductDetails;
585
+ metadata: import("./types").JSON;
586
+ } & {
587
+ license_key?: undefined;
588
+ user: import("./types").LicenseUser;
589
+ } & {
590
+ is_floating: boolean;
591
+ is_floating_cloud: true;
592
+ floating_in_use_devices: number;
593
+ floating_users: number;
594
+ floating_timeout: number;
595
+ } & {
596
+ is_trial: true;
597
+ trial_days: number;
598
+ } & {
599
+ license_type: "consumption";
600
+ max_consumptions: number;
601
+ total_consumptions: number;
602
+ allow_unlimited_consumptions: boolean;
603
+ allow_overages: boolean;
604
+ max_overages: number;
605
+ reset_consumption: boolean;
606
+ consumption_period: import("./types").DateISO8601UTC | null;
607
+ }) | {
608
+ headers: import("axios").AxiosHeaders;
609
+ response: unknown;
610
+ } | null>;
611
+ private getLicenseIDPayload;
612
+ getDeactivationCode(initializationCode: string): string;
613
+ deactivateAirGap(confirmationCode: string): void;
614
+ deactivate(deleteLicense?: boolean): Promise<boolean | {
615
+ headers: import("axios").AxiosHeaders;
616
+ response: unknown;
617
+ } | undefined>;
618
+ localCheck(): Promise<boolean>;
619
+ changePassword(oldPassword: string, newPassword: string): Promise<boolean | undefined>;
620
+ addLocalConsumption(consumptions?: number): void;
621
+ addLocalFeatureConsumption(featureCode: string, consumptions?: number): void;
622
+ syncFeatureConsumption(feature: {
623
+ code: string;
624
+ local_consumption: number;
625
+ }): Promise<boolean>;
626
+ syncConsumption(overages?: number): Promise<boolean>;
627
+ get isGracePeriod(): boolean;
628
+ floatingBorrow(borrowUntil: string, password?: string): Promise<boolean>;
629
+ floatingRelease(): Promise<boolean>;
630
+ checkFeature(featureCode: string): Promise<void>;
631
+ releaseFeature(featureCode: string): Promise<void>;
632
+ updateOffline(path: string, resetConsumption: boolean): boolean;
633
+ deactivateOffline(offlinePath: string): Promise<void>;
634
+ productDetails(includeLatestVersion?: boolean, includeCustomFields?: boolean, includeExpiredFeatures?: boolean): Promise<import("./types").ProductDetailsResponse>;
635
+ get productDetailsLocal(): import("./types").ProductDetails | undefined;
636
+ setDeviceVariablesLocal(variables: {
637
+ [key: string]: string | number;
638
+ }, save?: boolean): void;
639
+ setDeviceVariables(save?: boolean): Promise<false | undefined>;
640
+ getDeviceVariableLocal(variable: string): import("./types").DeviceVariable;
641
+ getDeviceVariablesLocal(): import("./types").DeviceVariable[];
642
+ getDeviceVariables(): Promise<null | undefined>;
643
+ private isGracePeriodException;
644
+ }