@licensespring/node-sdk 1.0.9 → 1.1.0-alpha

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.
@@ -1,4 +1,3 @@
1
- import { JSON } from './types';
2
1
  import { AxiosHeaders, AxiosProxyConfig } from 'axios';
3
2
  declare class RequestService {
4
3
  private config;
@@ -10,12 +9,13 @@ declare class RequestService {
10
9
  });
11
10
  setProxy(proxy: AxiosProxyConfig | null): void;
12
11
  private createUrl;
12
+ private createAxiosObject;
13
13
  private generateLicenseAPIAuthHeaders;
14
- getRequest<T>(url: string, params: JSON, headers?: AxiosHeaders, licenseAPIAuth?: boolean): Promise<{
14
+ getRequest<T>(url: string, params: any, headers?: AxiosHeaders, licenseAPIAuth?: boolean): Promise<{
15
15
  headers: AxiosHeaders;
16
16
  response: T;
17
17
  }>;
18
- postRequest<T>(url: string, payload: JSON | string, headers?: JSON, licenseAPIAuth?: boolean): Promise<{
18
+ postRequest<T>(url: string, payload: any, headers?: Record<string, string>, licenseAPIAuth?: boolean): Promise<{
19
19
  headers: AxiosHeaders;
20
20
  response: T;
21
21
  }>;
@@ -13,6 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const axios_1 = __importDefault(require("axios"));
16
+ const https_proxy_agent_1 = require("https-proxy-agent");
16
17
  const node_crypto_1 = require("node:crypto");
17
18
  class RequestService {
18
19
  constructor(config) {
@@ -25,6 +26,19 @@ class RequestService {
25
26
  createUrl(url) {
26
27
  return `${this.config.apiPath.replace(/\/+$/, '')}/${url}`;
27
28
  }
29
+ createAxiosObject(requestObject) {
30
+ if (this.config.proxy) {
31
+ const url = new URL(this.config.proxy.host);
32
+ if (this.config.proxy.port)
33
+ url.port = String(this.config.proxy.port);
34
+ if (this.config.proxy.auth) {
35
+ url.username = this.config.proxy.auth.username;
36
+ url.password = this.config.proxy.auth.password;
37
+ }
38
+ requestObject.httpsAgent = new https_proxy_agent_1.HttpsProxyAgent(url);
39
+ }
40
+ return requestObject;
41
+ }
28
42
  generateLicenseAPIAuthHeaders() {
29
43
  const signatureTime = new Date().toUTCString();
30
44
  const signatureString = `licenseSpring\ndate: ${signatureTime}`;
@@ -41,11 +55,10 @@ class RequestService {
41
55
  var _a;
42
56
  const _headers = licenseAPIAuth ? this.generateLicenseAPIAuthHeaders() : {};
43
57
  try {
44
- const response = yield axios_1.default.get(this.createUrl(url), {
58
+ const response = yield axios_1.default.get(this.createUrl(url), this.createAxiosObject({
45
59
  params,
46
60
  headers: Object.assign(Object.assign({}, _headers), (headers || {})),
47
- proxy: this.config.proxy || false,
48
- });
61
+ }));
49
62
  return {
50
63
  headers: response.headers,
51
64
  response: response.data
@@ -76,10 +89,9 @@ class RequestService {
76
89
  var _a;
77
90
  const _headers = licenseAPIAuth ? this.generateLicenseAPIAuthHeaders() : {};
78
91
  try {
79
- const response = yield axios_1.default.post(this.createUrl(url), payload, {
92
+ const response = yield axios_1.default.post(this.createUrl(url), payload, this.createAxiosObject({
80
93
  headers: Object.assign(Object.assign({}, _headers), (headers || {})),
81
- proxy: this.config.proxy || false,
82
- });
94
+ }));
83
95
  return {
84
96
  headers: response.headers,
85
97
  response: response.data
@@ -1 +1 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,kDAA8D;AAC9D,6CAAyC;AAEzC,MAAM,cAAc;IAElB,YAA4B,MAAwF;QAAxF,WAAM,GAAN,MAAM,CAAkF;QAClH,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEM,QAAQ,CAAC,KAA8B;QAC5C,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,SAAS,CAAC;IACzC,CAAC;IAEO,SAAS,CAAC,GAAW;QAC3B,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,OAAQ,CAA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I,EAAE,0BAA0B;wBAChC,OAAO,EAAE,0BAA0B;qBACpC,CAAC;gBACJ,CAAC;qBAAM,IAAI,CAAC,CAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,IAAI,CAAA,EAAE,CAAC;oBACjC,MAAM;wBACJ,MAAM,EAAE,GAAG;wBACX,IAAI,EAAE,uBAAuB;wBAC7B,OAAO,EAAE,uBAAuB;qBACjC,CAAC;gBACJ,CAAC;gBACD,MAAM,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;YAC5B,CAAC;QACH,CAAC;KAAA;IAAA,CAAC;CACH;AAED,kBAAe,cAAc,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { AxiosProxyConfig } from 'axios';
2
- export type JSON = string | number | boolean | null | JSONObject | JSONArray;
3
- interface JSONObject {
4
- [key: string]: JSON;
2
+ export type JSONType = string | number | boolean | null | JSONObject | JSONArray;
3
+ export interface JSONObject {
4
+ [key: string]: JSONType;
5
5
  }
6
- type JSONArray = JSON[];
6
+ type JSONArray = JSONType[];
7
7
  export type Dictionary<T = string> = {
8
8
  [key: string]: T;
9
9
  };
@@ -79,71 +79,12 @@ type LicenseIdentificatorUserSSOBased = ({
79
79
  }) & {
80
80
  customer_account_code: string;
81
81
  };
82
- export type SSOURLParams = {
83
- product: string;
84
- type: 'token' | 'code';
85
- };
86
82
  type LicenseIdentificatiorRequired = {
87
83
  hardware_id: string;
88
84
  product: string;
89
85
  bundle_code?: string;
90
86
  license_id?: number;
91
87
  };
92
- export type LicenseActivationIdentificatorWithVariables = LicenseActivationIdentificator & {
93
- variables?: Dictionary<string>;
94
- };
95
- export type LicenseActivationIdentificatorOfflineWithVariables = LicenseActivationIdentificator & OfflineActivationRequest & {
96
- variables?: Dictionary<string>;
97
- };
98
- export type LicenseIdentificatorWithVariables = LicenseIdentificator & {
99
- variables?: Dictionary<string>;
100
- };
101
- export type LicenseIdentificatorOfflineWithVariables = LicenseIdentificator & OfflineActivationRequest & {
102
- variables?: Dictionary<string>;
103
- };
104
- export type TrialKeyPayload = {
105
- email: string;
106
- product: string;
107
- hardware_id: string;
108
- };
109
- export type GetUserLicensesPayload = {
110
- username: string;
111
- password: string;
112
- product: string;
113
- };
114
- export type GetCustomerLicensesPayload = {
115
- customer: string;
116
- product: string;
117
- };
118
- export type LicenseIdentificatorAndFeature = LicenseIdentificator & {
119
- feature: string;
120
- };
121
- export type LicenseIdentificatorAddConsumptions = LicenseIdentificator & {
122
- consumptions: number;
123
- };
124
- export type LicenseIdentificatorAddFeatureConsumptions = LicenseIdentificator & {
125
- feature: string;
126
- consumptions: number;
127
- };
128
- export type ProductDetailsPayload = {
129
- product: string;
130
- include_expired_features?: boolean;
131
- include_latest_version?: boolean;
132
- include_custom_fields?: boolean;
133
- };
134
- export type LicenseIdentificatorWithBorrowedUntil = LicenseIdentificator & {
135
- borrowed_until: DateInputString;
136
- };
137
- export type PasswordChangePayload = {
138
- username: string;
139
- password: string;
140
- new_password: string;
141
- };
142
- export type LicenseIdentificatorWithInstallation = LicenseIdentificator & {
143
- env: string;
144
- channel: string;
145
- version: string;
146
- };
147
88
  export type Managed<T> = Omit<T, 'product' | 'hardware_id'>;
148
89
  type ListProps<T> = {
149
90
  [K in keyof T]: T[K];
@@ -233,6 +174,7 @@ export type LicenseResponse = {
233
174
  eula_link: string;
234
175
  floating_timeout: number;
235
176
  grace_period: number;
177
+ hardware_id: string;
236
178
  hash_md5: string;
237
179
  installation_file: string;
238
180
  is_air_gapped: boolean;
@@ -299,20 +241,11 @@ export type LicenseResponse = {
299
241
  }, {}>;
300
242
  export type LicenseResponseOffline = LicenseResponse & {
301
243
  license_signature_v2: string;
244
+ date: string;
302
245
  };
303
246
  export type LicenseFilePayload = LicenseResponseOffline & {
304
247
  offline_signature: string;
305
248
  };
306
- export type OfflineActivationRequest = {
307
- prefix?: string;
308
- os_ver?: string;
309
- sdk_build_version?: string;
310
- hostname?: string;
311
- ip?: string;
312
- external_ip?: string;
313
- app_ver?: string;
314
- mac_address?: string;
315
- };
316
249
  export type DeviceVariable = {
317
250
  id: number;
318
251
  device_id: number;
@@ -515,6 +448,38 @@ export type VersionsResponse = {
515
448
  version: string;
516
449
  release_date: DateISO8601UTC;
517
450
  }[];
451
+ export type CreateOfflineActivationRequestPayload = {
452
+ bundle_code?: string;
453
+ hardware_id: string;
454
+ hostname?: string;
455
+ ip?: string;
456
+ mac_address?: string;
457
+ os_ver?: string;
458
+ product: string;
459
+ variables?: Record<string, any>;
460
+ vm_info?: string;
461
+ } & ({
462
+ license_key?: string;
463
+ } | {
464
+ username?: string;
465
+ password?: string;
466
+ });
467
+ export type CreateOfflineDeactivationRequestPayload = {
468
+ bundle_code?: string;
469
+ hardware_id: string;
470
+ hostname?: string;
471
+ ip?: string;
472
+ mac_address?: string;
473
+ os_ver?: string;
474
+ product: string;
475
+ vm_info?: string;
476
+ consumptions?: number;
477
+ } & ({
478
+ license_key?: string;
479
+ } | {
480
+ username?: string;
481
+ password?: string;
482
+ });
518
483
  export type LicenseDataMethod = 'check_license' | 'activate_license' | 'activate_license_offline' | 'activate_air_gap' | 'update_license_offline' | 'product_details' | 'device_variables' | 'normal' | 'license_consumption' | 'feature_consumption' | 'register_feature' | 'floating_server_register';
519
484
  export declare enum HardwareIdAlgorithm {
520
485
  Default = 0,
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AA+qBA,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,mEAAW,CAAA;IACX,6GAAgC,CAAA;IAChC,iHAAkC,CAAA;IAClC,+FAAyB,CAAA;IACzB,iFAAkB,CAAA;IAClB,qFAAoB,CAAA;AACtB,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B;AAAA,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAgqBA,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,mEAAW,CAAA;IACX,6GAAgC,CAAA;IAChC,iHAAkC,CAAA;IAClC,+FAAyB,CAAA;IACzB,iFAAkB,CAAA;IAClB,qFAAoB,CAAA;AACtB,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B;AAAA,CAAC"}
@@ -1,2 +1,2 @@
1
- declare const SDK_VERSION = "1.0.8";
2
- export default SDK_VERSION;
1
+ declare const _default: string;
2
+ export default _default;
@@ -1,5 +1,8 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const SDK_VERSION = '1.0.8';
4
- exports.default = SDK_VERSION;
6
+ const package_json_1 = __importDefault(require("../package.json"));
7
+ exports.default = package_json_1.default.version;
5
8
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW,GAAG,OAAO,CAAC;AAC5B,kBAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;;;AAAA,mEAA0C;AAC1C,kBAAe,sBAAW,CAAC,OAAO,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licensespring/node-sdk",
3
- "version": "1.0.9",
3
+ "version": "1.1.0-alpha",
4
4
  "main": "dist/src/index.js",
5
5
  "modules": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -24,6 +24,7 @@
24
24
  "cpx": "^1.5.0",
25
25
  "eslint": "^9.11.1",
26
26
  "jest": "^29.7.0",
27
+ "json-schema-to-ts": "^3.1.1",
27
28
  "ts-jest": "^29.2.5",
28
29
  "ts-patch": "^3.2.1",
29
30
  "typedoc": "^0.27.4",
@@ -37,8 +38,10 @@
37
38
  "dotenv-run-script": "^0.4.1",
38
39
  "elliptic": "^6.6.1",
39
40
  "hash.js": "^1.1.7",
41
+ "https-proxy-agent": "^7.0.6",
40
42
  "koffi": "^2.9.1",
41
43
  "typia": "^6.11.1",
42
- "unzipper": "^0.12.3"
44
+ "unzipper": "^0.12.3",
45
+ "uuid": "^11.1.0"
43
46
  }
44
47
  }