@licensespring/node-sdk 1.3.7-alpha → 1.3.8-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.
- package/dist/package.json +1 -1
- package/dist/src/api.js +7 -7
- package/dist/src/response-types.d.ts +3 -3
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/src/api.js
CHANGED
|
@@ -3771,7 +3771,7 @@ let LicenseAPI = (() => {
|
|
|
3771
3771
|
throw new Error('Invalid activation data');
|
|
3772
3772
|
}
|
|
3773
3773
|
decodedPayload = this.getOfflinePayload(decodedPayload);
|
|
3774
|
-
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => "number" === typeof input.id && "boolean" === typeof input.allow_grace_period && "boolean" === typeof input.allow_overages && "boolean" === typeof input.allow_unlimited_activations && "boolean" === typeof input.allow_offline_activation && "boolean" === typeof input.can_borrow && (Array.isArray(input.custom_fields) && input.custom_fields.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && ("object" === typeof input.customer && null !== input.customer && $io2(input.customer)) && "boolean" === typeof input.enable_maintenance_period && "number" === typeof input.floating_timeout && (undefined === input.floating_users || "number" === typeof input.floating_users) && (null === input.grace_period || "number" === typeof input.grace_period) && "boolean" === typeof input.is_air_gapped && "boolean" === typeof input.is_floating && "boolean" === typeof input.is_floating_cloud && "boolean" === typeof input.is_hardware_key_auth && (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.license_template_id || "number" === typeof input.license_template_id) && (null === input.maintenance_period || "string" === typeof input.maintenance_period) && "number" === typeof input.max_activations && "number" === typeof input.max_borrow_time && (undefined === input.max_license_users || "number" === typeof input.max_license_users) && "number" === typeof input.max_overages && (undefined === input.max_transfers || "number" === typeof input.max_transfers) && ("object" === typeof input.metadata && null !== input.metadata && false === Array.isArray(input.metadata) && $iu1(input.metadata)) && (undefined === input.metadata_string || "string" === typeof input.metadata_string) && (undefined === input.order_store_id || "string" === typeof input.order_store_id) && "boolean" === typeof input.prevent_vm && ("object" === typeof input.company && null !== input.company && $io7(input.company)) && (undefined === input.product_details || "object" === typeof input.product_details && null !== input.product_details && $io8(input.product_details)) && (Array.isArray(input.product_features) && input.product_features.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (null === input.start_date || "string" === typeof input.start_date) && "number" === typeof input.times_activated && "number" === typeof input.transfer_count && (null === input.validity_period || "string" === typeof input.validity_period) && "boolean" === typeof input.is_trial && (undefined === input.trial_days || "number" === typeof input.trial_days) && (undefined === input.user || "object" === typeof input.user && null !== input.user && $io11(input.user)) && ("perpetual" === input.license_type || "time-limited" === input.license_type || "consumption" === input.license_type || "subscription" === input.license_type) && (undefined === input.allow_negative_consumptions || "boolean" === typeof input.allow_negative_consumptions) && (undefined === input.allow_unlimited_consumptions || "boolean" === typeof input.allow_unlimited_consumptions) && (null === input.consumption_period || undefined === input.consumption_period || "daily" === input.consumption_period || "weekly" === input.consumption_period || "monthly" === input.consumption_period || "annually" === input.consumption_period) && (undefined === input.max_consumptions || "number" === typeof input.max_consumptions) && (undefined === input.reset_consumption || "boolean" === typeof input.reset_consumption) && (undefined === input.total_consumptions || "number" === typeof input.total_consumptions) && "string" === typeof input.request && "boolean" === typeof input.active && "number" === typeof input.device_id && "boolean" === typeof input.is_expired && "string" === typeof input.hardware_id && (undefined === input.username || "string" === typeof input.username) && (undefined === input.floating_in_use || "boolean" === typeof input.floating_in_use) && "string" === typeof input.license_signature && (undefined === input.variables || Array.isArray(input.variables) && input.variables.every(elem => "object" === typeof elem && null !== elem && $io12(elem))) && "string" === typeof input.date && "string" === typeof input.offline_signature && "string" === typeof input.license_signature_v2; const $io1 = input => "string" === typeof input.name && ("numer" === input.data_type || "text" === input.data_type || "date/time" === input.data_type) && (undefined === input.value || "string" === typeof input.value); const $io2 = input => (undefined === input.email || "string" === typeof input.email) && (undefined === input.company_name || "string" === typeof input.company_name) && (undefined === input.reference || "string" === typeof input.reference) && (undefined === input.phone || "string" === typeof input.phone) && (undefined === input.first_name || "string" === typeof input.first_name) && (undefined === input.last_name || "string" === typeof input.last_name) && (undefined === input.city || "string" === typeof input.city) && (undefined === input.postcode || "string" === typeof input.postcode) && (undefined === input.state || "string" === typeof input.state) && (undefined === input.country || "string" === typeof input.country) && (undefined === input.address || "string" === typeof input.address) && (null === input.customer_account || "object" === typeof input.customer_account && null !== input.customer_account && $io3(input.customer_account)) && ("object" === typeof input.metadata && null !== input.metadata && false === Array.isArray(input.metadata) && $iu1(input.metadata)) && (undefined === input.metadata_string || "string" === typeof input.metadata_string); const $io3 = input => "number" === typeof input.id && "string" === typeof input.name && "string" === typeof input.code; const $io4 = input => true; const $io5 = input => Object.keys(input).every(key => {
|
|
3774
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => "number" === typeof input.id && "boolean" === typeof input.allow_grace_period && "boolean" === typeof input.allow_overages && "boolean" === typeof input.allow_unlimited_activations && "boolean" === typeof input.allow_offline_activation && "boolean" === typeof input.can_borrow && (Array.isArray(input.custom_fields) && input.custom_fields.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && ("object" === typeof input.customer && null !== input.customer && $io2(input.customer)) && "boolean" === typeof input.enable_maintenance_period && "number" === typeof input.floating_timeout && (null === input.floating_users || undefined === input.floating_users || "number" === typeof input.floating_users) && (null === input.grace_period || "number" === typeof input.grace_period) && "boolean" === typeof input.is_air_gapped && "boolean" === typeof input.is_floating && "boolean" === typeof input.is_floating_cloud && "boolean" === typeof input.is_hardware_key_auth && (undefined === input.license_key || "string" === typeof input.license_key) && (null === input.license_template_id || undefined === input.license_template_id || "number" === typeof input.license_template_id) && (null === input.maintenance_period || "string" === typeof input.maintenance_period) && "number" === typeof input.max_activations && "number" === typeof input.max_borrow_time && (undefined === input.max_license_users || "number" === typeof input.max_license_users) && "number" === typeof input.max_overages && (undefined === input.max_transfers || "number" === typeof input.max_transfers) && ("object" === typeof input.metadata && null !== input.metadata && false === Array.isArray(input.metadata) && $iu1(input.metadata)) && (undefined === input.metadata_string || "string" === typeof input.metadata_string) && (null === input.order_store_id || undefined === input.order_store_id || "string" === typeof input.order_store_id) && "boolean" === typeof input.prevent_vm && ("object" === typeof input.company && null !== input.company && $io7(input.company)) && (undefined === input.product_details || "object" === typeof input.product_details && null !== input.product_details && $io8(input.product_details)) && (Array.isArray(input.product_features) && input.product_features.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (null === input.start_date || "string" === typeof input.start_date) && "number" === typeof input.times_activated && "number" === typeof input.transfer_count && (null === input.validity_period || "string" === typeof input.validity_period) && "boolean" === typeof input.is_trial && (undefined === input.trial_days || "number" === typeof input.trial_days) && (undefined === input.user || "object" === typeof input.user && null !== input.user && $io11(input.user)) && ("perpetual" === input.license_type || "time-limited" === input.license_type || "consumption" === input.license_type || "subscription" === input.license_type) && (undefined === input.allow_negative_consumptions || "boolean" === typeof input.allow_negative_consumptions) && (undefined === input.allow_unlimited_consumptions || "boolean" === typeof input.allow_unlimited_consumptions) && (null === input.consumption_period || undefined === input.consumption_period || "daily" === input.consumption_period || "weekly" === input.consumption_period || "monthly" === input.consumption_period || "annually" === input.consumption_period) && (undefined === input.max_consumptions || "number" === typeof input.max_consumptions) && (undefined === input.reset_consumption || "boolean" === typeof input.reset_consumption) && (undefined === input.total_consumptions || "number" === typeof input.total_consumptions) && "string" === typeof input.request && "boolean" === typeof input.active && "number" === typeof input.device_id && "boolean" === typeof input.is_expired && "string" === typeof input.hardware_id && (undefined === input.username || "string" === typeof input.username) && (undefined === input.floating_in_use || "boolean" === typeof input.floating_in_use) && "string" === typeof input.license_signature && (undefined === input.variables || Array.isArray(input.variables) && input.variables.every(elem => "object" === typeof elem && null !== elem && $io12(elem))) && "string" === typeof input.date && "string" === typeof input.offline_signature && "string" === typeof input.license_signature_v2; const $io1 = input => "string" === typeof input.name && ("numer" === input.data_type || "text" === input.data_type || "date/time" === input.data_type) && (undefined === input.value || "string" === typeof input.value); const $io2 = input => (undefined === input.email || "string" === typeof input.email) && (undefined === input.company_name || "string" === typeof input.company_name) && (undefined === input.reference || "string" === typeof input.reference) && (undefined === input.phone || "string" === typeof input.phone) && (undefined === input.first_name || "string" === typeof input.first_name) && (undefined === input.last_name || "string" === typeof input.last_name) && (undefined === input.city || "string" === typeof input.city) && (undefined === input.postcode || "string" === typeof input.postcode) && (undefined === input.state || "string" === typeof input.state) && (undefined === input.country || "string" === typeof input.country) && (undefined === input.address || "string" === typeof input.address) && (null === input.customer_account || "object" === typeof input.customer_account && null !== input.customer_account && $io3(input.customer_account)) && ("object" === typeof input.metadata && null !== input.metadata && false === Array.isArray(input.metadata) && $iu1(input.metadata)) && (undefined === input.metadata_string || "string" === typeof input.metadata_string); const $io3 = input => "number" === typeof input.id && "string" === typeof input.name && "string" === typeof input.code; const $io4 = input => true; const $io5 = input => Object.keys(input).every(key => {
|
|
3775
3775
|
const value = input[key];
|
|
3776
3776
|
if (undefined === value)
|
|
3777
3777
|
return true;
|
|
@@ -3850,9 +3850,9 @@ let LicenseAPI = (() => {
|
|
|
3850
3850
|
path: _path + ".floating_timeout",
|
|
3851
3851
|
expected: "number",
|
|
3852
3852
|
value: input.floating_timeout
|
|
3853
|
-
}, _errorFactory)) && (undefined === input.floating_users || "number" === typeof input.floating_users || $guard(_exceptionable, {
|
|
3853
|
+
}, _errorFactory)) && (null === input.floating_users || undefined === input.floating_users || "number" === typeof input.floating_users || $guard(_exceptionable, {
|
|
3854
3854
|
path: _path + ".floating_users",
|
|
3855
|
-
expected: "(number | undefined)",
|
|
3855
|
+
expected: "(null | number | undefined)",
|
|
3856
3856
|
value: input.floating_users
|
|
3857
3857
|
}, _errorFactory)) && (null === input.grace_period || "number" === typeof input.grace_period || $guard(_exceptionable, {
|
|
3858
3858
|
path: _path + ".grace_period",
|
|
@@ -3878,9 +3878,9 @@ let LicenseAPI = (() => {
|
|
|
3878
3878
|
path: _path + ".license_key",
|
|
3879
3879
|
expected: "(string | undefined)",
|
|
3880
3880
|
value: input.license_key
|
|
3881
|
-
}, _errorFactory)) && (undefined === input.license_template_id || "number" === typeof input.license_template_id || $guard(_exceptionable, {
|
|
3881
|
+
}, _errorFactory)) && (null === input.license_template_id || undefined === input.license_template_id || "number" === typeof input.license_template_id || $guard(_exceptionable, {
|
|
3882
3882
|
path: _path + ".license_template_id",
|
|
3883
|
-
expected: "(number | undefined)",
|
|
3883
|
+
expected: "(null | number | undefined)",
|
|
3884
3884
|
value: input.license_template_id
|
|
3885
3885
|
}, _errorFactory)) && (null === input.maintenance_period || "string" === typeof input.maintenance_period || $guard(_exceptionable, {
|
|
3886
3886
|
path: _path + ".maintenance_period",
|
|
@@ -3918,9 +3918,9 @@ let LicenseAPI = (() => {
|
|
|
3918
3918
|
path: _path + ".metadata_string",
|
|
3919
3919
|
expected: "(string | undefined)",
|
|
3920
3920
|
value: input.metadata_string
|
|
3921
|
-
}, _errorFactory)) && (undefined === input.order_store_id || "string" === typeof input.order_store_id || $guard(_exceptionable, {
|
|
3921
|
+
}, _errorFactory)) && (null === input.order_store_id || undefined === input.order_store_id || "string" === typeof input.order_store_id || $guard(_exceptionable, {
|
|
3922
3922
|
path: _path + ".order_store_id",
|
|
3923
|
-
expected: "(string | undefined)",
|
|
3923
|
+
expected: "(null | string | undefined)",
|
|
3924
3924
|
value: input.order_store_id
|
|
3925
3925
|
}, _errorFactory)) && ("boolean" === typeof input.prevent_vm || $guard(_exceptionable, {
|
|
3926
3926
|
path: _path + ".prevent_vm",
|
|
@@ -367,14 +367,14 @@ export type LicenseResponseBase = {
|
|
|
367
367
|
customer: CustomerResponse;
|
|
368
368
|
enable_maintenance_period: boolean;
|
|
369
369
|
floating_timeout: number;
|
|
370
|
-
floating_users?: number;
|
|
370
|
+
floating_users?: number | null;
|
|
371
371
|
grace_period: number | null;
|
|
372
372
|
is_air_gapped: boolean;
|
|
373
373
|
is_floating: boolean;
|
|
374
374
|
is_floating_cloud: boolean;
|
|
375
375
|
is_hardware_key_auth: boolean;
|
|
376
376
|
license_key: string | undefined;
|
|
377
|
-
license_template_id?: number;
|
|
377
|
+
license_template_id?: number | null;
|
|
378
378
|
maintenance_period: string | null;
|
|
379
379
|
max_activations: number;
|
|
380
380
|
max_borrow_time: number;
|
|
@@ -383,7 +383,7 @@ export type LicenseResponseBase = {
|
|
|
383
383
|
max_transfers?: number;
|
|
384
384
|
metadata: JSONObjectRequired;
|
|
385
385
|
metadata_string?: string;
|
|
386
|
-
order_store_id?: string;
|
|
386
|
+
order_store_id?: string | null;
|
|
387
387
|
prevent_vm: boolean;
|
|
388
388
|
company: {
|
|
389
389
|
id: number;
|