@licensespring/node-sdk 1.1.19-alpha → 1.2.0
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/License.key +1 -1
- package/dist/package.json +16 -9
- package/dist/src/abstract-manager.d.ts +42 -15
- package/dist/src/abstract-manager.js +248 -22
- package/dist/src/abstract-manager.js.map +1 -1
- package/dist/src/api.d.ts +9 -5
- package/dist/src/api.js +1176 -1065
- package/dist/src/api.js.map +1 -1
- package/dist/src/bundle-file.d.ts +11 -0
- package/dist/src/bundle-file.js +110 -0
- package/dist/src/bundle-file.js.map +1 -0
- package/dist/src/bundle-manager.d.ts +17 -0
- package/dist/src/bundle-manager.js +252 -0
- package/dist/src/bundle-manager.js.map +1 -0
- package/dist/src/common.d.ts +1 -0
- package/dist/src/common.js +5 -1
- package/dist/src/common.js.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.js +3 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/license-data.d.ts +15 -9
- package/dist/src/license-data.js +66 -71
- package/dist/src/license-data.js.map +1 -1
- package/dist/src/license-file.d.ts +8 -19
- package/dist/src/license-file.js +38 -315
- package/dist/src/license-file.js.map +1 -1
- package/dist/src/license-manager.d.ts +11 -32
- package/dist/src/license-manager.js +213 -313
- package/dist/src/license-manager.js.map +1 -1
- package/dist/src/license.d.ts +49 -47
- package/dist/src/license.js +145 -142
- package/dist/src/license.js.map +1 -1
- package/dist/src/logger.d.ts +1 -0
- package/dist/src/logger.js +28 -5
- package/dist/src/logger.js.map +1 -1
- package/dist/src/offline-activation.d.ts +2 -1
- package/dist/src/offline-activation.js.map +1 -1
- package/dist/src/response-types.d.ts +43 -58
- package/dist/src/response-types.js +0 -1
- package/dist/src/response-types.js.map +1 -1
- package/dist/src/schema.d.ts +4 -2
- package/dist/src/schema.js +6 -2
- package/dist/src/schema.js.map +1 -1
- package/dist/src/storage-file.d.ts +24 -0
- package/dist/src/storage-file.js +354 -0
- package/dist/src/storage-file.js.map +1 -0
- package/dist/src/test/api-response-mock.d.ts +1435 -0
- package/dist/src/test/api-response-mock.js +1966 -0
- package/dist/src/test/api-response-mock.js.map +1 -0
- package/dist/src/test/api.test.d.ts +1 -0
- package/dist/src/test/api.test.js +228 -0
- package/dist/src/test/api.test.js.map +1 -0
- package/dist/src/test/bundle-manager.test.d.ts +0 -0
- package/dist/src/test/bundle-manager.test.js +15 -0
- package/dist/src/test/bundle-manager.test.js.map +1 -0
- package/dist/src/test/jest.setup.d.ts +1 -0
- package/dist/src/test/jest.setup.js +17 -0
- package/dist/src/test/jest.setup.js.map +1 -0
- package/dist/src/test/license-manager.test.d.ts +1 -0
- package/dist/src/test/license-manager.test.js +1011 -0
- package/dist/src/test/license-manager.test.js.map +1 -0
- package/dist/src/types.d.ts +11 -1
- package/dist/src/types.js.map +1 -1
- package/package.json +16 -9
package/dist/src/api.js
CHANGED
|
@@ -96,8 +96,8 @@ let LicenseAPI = (() => {
|
|
|
96
96
|
let _classThis;
|
|
97
97
|
var LicenseAPI = _classThis = class {
|
|
98
98
|
constructor(config) {
|
|
99
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
100
|
-
(() => { const $guard = typia_1.default.assert.guard; const $io0 = input => "string" === typeof input.appName && "string" === typeof input.appVersion && (undefined === input.airGapKey || "string" === typeof input.airGapKey) && "string" === typeof input.apiKey && "string" === typeof input.sharedKey && (undefined === input.apiPath || "string" === typeof input.apiPath) && (undefined === input.proxy || "object" === typeof input.proxy && null !== input.proxy && $io1(input.proxy)) && (undefined === input.publicKey || "string" === typeof input.publicKey) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.filePath || "string" === typeof input.filePath) && (undefined === input.gracePeriod || "number" === typeof input.gracePeriod) && (undefined === input.fileKey || "string" === typeof input.fileKey) && (undefined === input.isGuardFileEnabled || "boolean" === typeof input.isGuardFileEnabled) && (undefined === input.hardwareIDMethod || "number" === typeof input.hardwareIDMethod) && (undefined === input.logLevel || "
|
|
99
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
100
|
+
(() => { const $guard = typia_1.default.assert.guard; const $io0 = input => "string" === typeof input.appName && "string" === typeof input.appVersion && (undefined === input.airGapKey || "string" === typeof input.airGapKey) && "string" === typeof input.apiKey && "string" === typeof input.sharedKey && (undefined === input.apiPath || "string" === typeof input.apiPath) && (undefined === input.proxy || "object" === typeof input.proxy && null !== input.proxy && $io1(input.proxy)) && (undefined === input.publicKey || "string" === typeof input.publicKey) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.filePath || "string" === typeof input.filePath) && (undefined === input.gracePeriod || "number" === typeof input.gracePeriod) && (undefined === input.fileKey || "string" === typeof input.fileKey) && (undefined === input.isGuardFileEnabled || "boolean" === typeof input.isGuardFileEnabled) && (undefined === input.hardwareIDMethod || "number" === typeof input.hardwareIDMethod) && (undefined === input.logLevel || "debug" === input.logLevel || "info" === input.logLevel || "warn" === input.logLevel || "error" === input.logLevel || "off" === input.logLevel) && (undefined === input.hardwareID || "string" === typeof input.hardwareID); const $io1 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.auth || "object" === typeof input.auth && null !== input.auth && $io2(input.auth)) && (undefined === input.protocol || "string" === typeof input.protocol); const $io2 = input => "string" === typeof input.username && "string" === typeof input.password; const $io3 = input => "string" === typeof input.appName && "string" === typeof input.appVersion && (undefined === input.airGapKey || "string" === typeof input.airGapKey) && "string" === typeof input.clientID && "string" === typeof input.clientSecret && "string" === typeof input.tokenUrl && (undefined === input.apiPath || "string" === typeof input.apiPath) && (undefined === input.proxy || "object" === typeof input.proxy && null !== input.proxy && $io1(input.proxy)) && (undefined === input.publicKey || "string" === typeof input.publicKey) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.filePath || "string" === typeof input.filePath) && (undefined === input.gracePeriod || "number" === typeof input.gracePeriod) && (undefined === input.fileKey || "string" === typeof input.fileKey) && (undefined === input.isGuardFileEnabled || "boolean" === typeof input.isGuardFileEnabled) && (undefined === input.hardwareIDMethod || "number" === typeof input.hardwareIDMethod) && (undefined === input.logLevel || "debug" === input.logLevel || "info" === input.logLevel || "warn" === input.logLevel || "error" === input.logLevel || "off" === input.logLevel) && (undefined === input.hardwareID || "string" === typeof input.hardwareID); const $iu0 = input => (() => {
|
|
101
101
|
if (undefined !== input.apiKey)
|
|
102
102
|
return $io0(input);
|
|
103
103
|
else if (undefined !== input.clientID)
|
|
@@ -164,10 +164,14 @@ let LicenseAPI = (() => {
|
|
|
164
164
|
path: _path + ".hardwareIDMethod",
|
|
165
165
|
expected: "(number | undefined)",
|
|
166
166
|
value: input.hardwareIDMethod
|
|
167
|
-
}, _errorFactory)) && (undefined === input.logLevel || "
|
|
167
|
+
}, _errorFactory)) && (undefined === input.logLevel || "debug" === input.logLevel || "info" === input.logLevel || "warn" === input.logLevel || "error" === input.logLevel || "off" === input.logLevel || $guard(_exceptionable, {
|
|
168
168
|
path: _path + ".logLevel",
|
|
169
169
|
expected: "(\"debug\" | \"error\" | \"info\" | \"off\" | \"warn\" | undefined)",
|
|
170
170
|
value: input.logLevel
|
|
171
|
+
}, _errorFactory)) && (undefined === input.hardwareID || "string" === typeof input.hardwareID || $guard(_exceptionable, {
|
|
172
|
+
path: _path + ".hardwareID",
|
|
173
|
+
expected: "(string | undefined)",
|
|
174
|
+
value: input.hardwareID
|
|
171
175
|
}, _errorFactory)); const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.host || $guard(_exceptionable, {
|
|
172
176
|
path: _path + ".host",
|
|
173
177
|
expected: "string",
|
|
@@ -260,10 +264,14 @@ let LicenseAPI = (() => {
|
|
|
260
264
|
path: _path + ".hardwareIDMethod",
|
|
261
265
|
expected: "(number | undefined)",
|
|
262
266
|
value: input.hardwareIDMethod
|
|
263
|
-
}, _errorFactory)) && (undefined === input.logLevel || "
|
|
267
|
+
}, _errorFactory)) && (undefined === input.logLevel || "debug" === input.logLevel || "info" === input.logLevel || "warn" === input.logLevel || "error" === input.logLevel || "off" === input.logLevel || $guard(_exceptionable, {
|
|
264
268
|
path: _path + ".logLevel",
|
|
265
269
|
expected: "(\"debug\" | \"error\" | \"info\" | \"off\" | \"warn\" | undefined)",
|
|
266
270
|
value: input.logLevel
|
|
271
|
+
}, _errorFactory)) && (undefined === input.hardwareID || "string" === typeof input.hardwareID || $guard(_exceptionable, {
|
|
272
|
+
path: _path + ".hardwareID",
|
|
273
|
+
expected: "(string | undefined)",
|
|
274
|
+
value: input.hardwareID
|
|
267
275
|
}, _errorFactory)); const $au0 = (input, _path, _exceptionable = true) => (() => {
|
|
268
276
|
if (undefined !== input.apiKey)
|
|
269
277
|
return $ao0(input, _path, true && _exceptionable);
|
|
@@ -272,7 +280,7 @@ let LicenseAPI = (() => {
|
|
|
272
280
|
else
|
|
273
281
|
return $guard(_exceptionable, {
|
|
274
282
|
path: _path,
|
|
275
|
-
expected: "(Pick<LicensespringConfig, \"appName\" | \"appVersion\" | \"airGapKey\"> & { apiKey: string; sharedKey: string; } & { apiPath?: string | undefined; proxy?: AxiosProxyConfig | undefined; ...
|
|
283
|
+
expected: "(Pick<LicensespringConfig, \"appName\" | \"appVersion\" | \"airGapKey\"> & { apiKey: string; sharedKey: string; } & { apiPath?: string | undefined; proxy?: AxiosProxyConfig | undefined; ... 8 more ...; hardwareID?: string | undefined; } | Pick<LicensespringConfig, \"appName\" | \"appVersion\" | \"airGapKey\"> & { clientID: string; clientSecret: string; tokenUrl: string; } & { apiPath?: string | undefined; ... 9 more ...; hardwareID?: string | undefined; })",
|
|
276
284
|
value: input
|
|
277
285
|
}, _errorFactory);
|
|
278
286
|
})(); const __is = input => "object" === typeof input && null !== input && $iu0(input); let _errorFactory; return (input, errorFactory) => {
|
|
@@ -280,18 +288,21 @@ let LicenseAPI = (() => {
|
|
|
280
288
|
_errorFactory = errorFactory;
|
|
281
289
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $guard(true, {
|
|
282
290
|
path: _path + "",
|
|
283
|
-
expected: "(Pick<LicensespringConfig, \"appName\" | \"appVersion\" | \"airGapKey\"> & { apiKey: string; sharedKey: string; } & { apiPath?: string | undefined; proxy?: AxiosProxyConfig | undefined; ...
|
|
291
|
+
expected: "(Pick<LicensespringConfig, \"appName\" | \"appVersion\" | \"airGapKey\"> & { apiKey: string; sharedKey: string; } & { apiPath?: string | undefined; proxy?: AxiosProxyConfig | undefined; ... 8 more ...; hardwareID?: string | undefined; } | Pick<LicensespringConfig, \"appName\" | \"appVersion\" | \"airGapKey\"> & { clientID: string; clientSecret: string; tokenUrl: string; } & { apiPath?: string | undefined; ... 9 more ...; hardwareID?: string | undefined; })",
|
|
284
292
|
value: input
|
|
285
293
|
}, _errorFactory)) && $au0(input, _path + "", true) || $guard(true, {
|
|
286
294
|
path: _path + "",
|
|
287
|
-
expected: "(Pick<LicensespringConfig, \"appName\" | \"appVersion\" | \"airGapKey\"> & { apiKey: string; sharedKey: string; } & { apiPath?: string | undefined; proxy?: AxiosProxyConfig | undefined; ...
|
|
295
|
+
expected: "(Pick<LicensespringConfig, \"appName\" | \"appVersion\" | \"airGapKey\"> & { apiKey: string; sharedKey: string; } & { apiPath?: string | undefined; proxy?: AxiosProxyConfig | undefined; ... 8 more ...; hardwareID?: string | undefined; } | Pick<LicensespringConfig, \"appName\" | \"appVersion\" | \"airGapKey\"> & { clientID: string; clientSecret: string; tokenUrl: string; } & { apiPath?: string | undefined; ... 9 more ...; hardwareID?: string | undefined; })",
|
|
288
296
|
value: input
|
|
289
297
|
}, _errorFactory))(input, "$input", true);
|
|
290
298
|
}
|
|
291
299
|
return input;
|
|
292
300
|
}; })()(config);
|
|
293
301
|
const _config = Object.assign(Object.assign({}, config), { apiPath: (_a = config.apiPath) !== null && _a !== void 0 ? _a : process.env.API_PATH, publicKey: (_b = config.publicKey) !== null && _b !== void 0 ? _b : process.env.PUBLIC_KEY, filename: (_c = config.filename) !== null && _c !== void 0 ? _c : process.env.FILENAME, filePath: (_d = config.filePath) !== null && _d !== void 0 ? _d : process.env.FILE_PATH, gracePeriod: (_e = config.gracePeriod) !== null && _e !== void 0 ? _e : 24, fileKey: (_f = config.fileKey) !== null && _f !== void 0 ? _f : process.env.LICENSE_FILE_KEY, isGuardFileEnabled: (_h = (_g = config.isGuardFileEnabled) !== null && _g !== void 0 ? _g : !!process.env.GUARD_FILE_ENABLED) !== null && _h !== void 0 ? _h : false, hardwareIDMethod: (_j = config.hardwareIDMethod) !== null && _j !== void 0 ? _j : 0, airGapKey: (_k = config.airGapKey) !== null && _k !== void 0 ? _k : process.env.AIR_GAP_KEY, sdkVersion: version_1.default, proxy: config.proxy, tokenUrl: (_l = ('tokenUrl' in config ? config.tokenUrl : process.env.TOKEN_URL)) !== null && _l !== void 0 ? _l : '' });
|
|
294
|
-
|
|
302
|
+
if ((_m = config.hardwareID) === null || _m === void 0 ? void 0 : _m.length) {
|
|
303
|
+
this.hardwareIDmanual = config.hardwareID;
|
|
304
|
+
}
|
|
305
|
+
(() => { const $guard = typia_1.default.assert.guard; const $io0 = input => "string" === typeof input.apiKey && "string" === typeof input.sharedKey && "string" === typeof input.apiPath && "string" === typeof input.publicKey && "string" === typeof input.appName && "string" === typeof input.appVersion && "string" === typeof input.filePath && "string" === typeof input.filename && "number" === typeof input.gracePeriod && "string" === typeof input.fileKey && (undefined === input.airGapKey || "string" === typeof input.airGapKey) && "boolean" === typeof input.isGuardFileEnabled && "number" === typeof input.hardwareIDMethod && "string" === typeof input.sdkVersion && (undefined === input.proxy || "object" === typeof input.proxy && null !== input.proxy && $io1(input.proxy)) && (undefined === input.logLevel || "debug" === input.logLevel || "info" === input.logLevel || "warn" === input.logLevel || "error" === input.logLevel || "off" === input.logLevel); const $io1 = input => "string" === typeof input.host && "number" === typeof input.port && (undefined === input.auth || "object" === typeof input.auth && null !== input.auth && $io2(input.auth)) && (undefined === input.protocol || "string" === typeof input.protocol); const $io2 = input => "string" === typeof input.username && "string" === typeof input.password; const $io3 = input => "string" === typeof input.clientID && "string" === typeof input.clientSecret && "string" === typeof input.tokenUrl && "string" === typeof input.apiPath && "string" === typeof input.publicKey && "string" === typeof input.appName && "string" === typeof input.appVersion && "string" === typeof input.filePath && "string" === typeof input.filename && "number" === typeof input.gracePeriod && "string" === typeof input.fileKey && (undefined === input.airGapKey || "string" === typeof input.airGapKey) && "boolean" === typeof input.isGuardFileEnabled && "number" === typeof input.hardwareIDMethod && "string" === typeof input.sdkVersion && (undefined === input.proxy || "object" === typeof input.proxy && null !== input.proxy && $io1(input.proxy)) && (undefined === input.logLevel || "debug" === input.logLevel || "info" === input.logLevel || "warn" === input.logLevel || "error" === input.logLevel || "off" === input.logLevel); const $iu0 = input => (() => {
|
|
295
306
|
if (undefined !== input.apiKey)
|
|
296
307
|
return $io0(input);
|
|
297
308
|
else if (undefined !== input.clientID)
|
|
@@ -306,18 +317,6 @@ let LicenseAPI = (() => {
|
|
|
306
317
|
path: _path + ".sharedKey",
|
|
307
318
|
expected: "string",
|
|
308
319
|
value: input.sharedKey
|
|
309
|
-
}, _errorFactory)) && ("string" === typeof input.filename || $guard(_exceptionable, {
|
|
310
|
-
path: _path + ".filename",
|
|
311
|
-
expected: "string",
|
|
312
|
-
value: input.filename
|
|
313
|
-
}, _errorFactory)) && (undefined === input.proxy || ("object" === typeof input.proxy && null !== input.proxy || $guard(_exceptionable, {
|
|
314
|
-
path: _path + ".proxy",
|
|
315
|
-
expected: "(AxiosProxyConfig | undefined)",
|
|
316
|
-
value: input.proxy
|
|
317
|
-
}, _errorFactory)) && $ao1(input.proxy, _path + ".proxy", true && _exceptionable) || $guard(_exceptionable, {
|
|
318
|
-
path: _path + ".proxy",
|
|
319
|
-
expected: "(AxiosProxyConfig | undefined)",
|
|
320
|
-
value: input.proxy
|
|
321
320
|
}, _errorFactory)) && ("string" === typeof input.apiPath || $guard(_exceptionable, {
|
|
322
321
|
path: _path + ".apiPath",
|
|
323
322
|
expected: "string",
|
|
@@ -338,6 +337,10 @@ let LicenseAPI = (() => {
|
|
|
338
337
|
path: _path + ".filePath",
|
|
339
338
|
expected: "string",
|
|
340
339
|
value: input.filePath
|
|
340
|
+
}, _errorFactory)) && ("string" === typeof input.filename || $guard(_exceptionable, {
|
|
341
|
+
path: _path + ".filename",
|
|
342
|
+
expected: "string",
|
|
343
|
+
value: input.filename
|
|
341
344
|
}, _errorFactory)) && ("number" === typeof input.gracePeriod || $guard(_exceptionable, {
|
|
342
345
|
path: _path + ".gracePeriod",
|
|
343
346
|
expected: "number",
|
|
@@ -362,7 +365,15 @@ let LicenseAPI = (() => {
|
|
|
362
365
|
path: _path + ".sdkVersion",
|
|
363
366
|
expected: "string",
|
|
364
367
|
value: input.sdkVersion
|
|
365
|
-
}, _errorFactory)) && (undefined === input.
|
|
368
|
+
}, _errorFactory)) && (undefined === input.proxy || ("object" === typeof input.proxy && null !== input.proxy || $guard(_exceptionable, {
|
|
369
|
+
path: _path + ".proxy",
|
|
370
|
+
expected: "(AxiosProxyConfig | undefined)",
|
|
371
|
+
value: input.proxy
|
|
372
|
+
}, _errorFactory)) && $ao1(input.proxy, _path + ".proxy", true && _exceptionable) || $guard(_exceptionable, {
|
|
373
|
+
path: _path + ".proxy",
|
|
374
|
+
expected: "(AxiosProxyConfig | undefined)",
|
|
375
|
+
value: input.proxy
|
|
376
|
+
}, _errorFactory)) && (undefined === input.logLevel || "debug" === input.logLevel || "info" === input.logLevel || "warn" === input.logLevel || "error" === input.logLevel || "off" === input.logLevel || $guard(_exceptionable, {
|
|
366
377
|
path: _path + ".logLevel",
|
|
367
378
|
expected: "(\"debug\" | \"error\" | \"info\" | \"off\" | \"warn\" | undefined)",
|
|
368
379
|
value: input.logLevel
|
|
@@ -406,18 +417,6 @@ let LicenseAPI = (() => {
|
|
|
406
417
|
path: _path + ".tokenUrl",
|
|
407
418
|
expected: "string",
|
|
408
419
|
value: input.tokenUrl
|
|
409
|
-
}, _errorFactory)) && ("string" === typeof input.filename || $guard(_exceptionable, {
|
|
410
|
-
path: _path + ".filename",
|
|
411
|
-
expected: "string",
|
|
412
|
-
value: input.filename
|
|
413
|
-
}, _errorFactory)) && (undefined === input.proxy || ("object" === typeof input.proxy && null !== input.proxy || $guard(_exceptionable, {
|
|
414
|
-
path: _path + ".proxy",
|
|
415
|
-
expected: "(AxiosProxyConfig | undefined)",
|
|
416
|
-
value: input.proxy
|
|
417
|
-
}, _errorFactory)) && $ao1(input.proxy, _path + ".proxy", true && _exceptionable) || $guard(_exceptionable, {
|
|
418
|
-
path: _path + ".proxy",
|
|
419
|
-
expected: "(AxiosProxyConfig | undefined)",
|
|
420
|
-
value: input.proxy
|
|
421
420
|
}, _errorFactory)) && ("string" === typeof input.apiPath || $guard(_exceptionable, {
|
|
422
421
|
path: _path + ".apiPath",
|
|
423
422
|
expected: "string",
|
|
@@ -438,6 +437,10 @@ let LicenseAPI = (() => {
|
|
|
438
437
|
path: _path + ".filePath",
|
|
439
438
|
expected: "string",
|
|
440
439
|
value: input.filePath
|
|
440
|
+
}, _errorFactory)) && ("string" === typeof input.filename || $guard(_exceptionable, {
|
|
441
|
+
path: _path + ".filename",
|
|
442
|
+
expected: "string",
|
|
443
|
+
value: input.filename
|
|
441
444
|
}, _errorFactory)) && ("number" === typeof input.gracePeriod || $guard(_exceptionable, {
|
|
442
445
|
path: _path + ".gracePeriod",
|
|
443
446
|
expected: "number",
|
|
@@ -462,7 +465,15 @@ let LicenseAPI = (() => {
|
|
|
462
465
|
path: _path + ".sdkVersion",
|
|
463
466
|
expected: "string",
|
|
464
467
|
value: input.sdkVersion
|
|
465
|
-
}, _errorFactory)) && (undefined === input.
|
|
468
|
+
}, _errorFactory)) && (undefined === input.proxy || ("object" === typeof input.proxy && null !== input.proxy || $guard(_exceptionable, {
|
|
469
|
+
path: _path + ".proxy",
|
|
470
|
+
expected: "(AxiosProxyConfig | undefined)",
|
|
471
|
+
value: input.proxy
|
|
472
|
+
}, _errorFactory)) && $ao1(input.proxy, _path + ".proxy", true && _exceptionable) || $guard(_exceptionable, {
|
|
473
|
+
path: _path + ".proxy",
|
|
474
|
+
expected: "(AxiosProxyConfig | undefined)",
|
|
475
|
+
value: input.proxy
|
|
476
|
+
}, _errorFactory)) && (undefined === input.logLevel || "debug" === input.logLevel || "info" === input.logLevel || "warn" === input.logLevel || "error" === input.logLevel || "off" === input.logLevel || $guard(_exceptionable, {
|
|
466
477
|
path: _path + ".logLevel",
|
|
467
478
|
expected: "(\"debug\" | \"error\" | \"info\" | \"off\" | \"warn\" | undefined)",
|
|
468
479
|
value: input.logLevel
|
|
@@ -492,14 +503,14 @@ let LicenseAPI = (() => {
|
|
|
492
503
|
}
|
|
493
504
|
return input;
|
|
494
505
|
}; })()(_config);
|
|
495
|
-
this.setLogLevel((
|
|
506
|
+
this.setLogLevel((_o = config.logLevel) !== null && _o !== void 0 ? _o : 'off');
|
|
496
507
|
this.config = _config;
|
|
497
508
|
this.service = new service_1.default(this.config);
|
|
498
509
|
}
|
|
499
510
|
getHardwareID(algorithm) {
|
|
500
|
-
var _a;
|
|
511
|
+
var _a, _b;
|
|
501
512
|
if (algorithm === void 0) { algorithm = (_a = this.config.hardwareIDMethod) !== null && _a !== void 0 ? _a : 0; }
|
|
502
|
-
return String((0, hwid_1.getHardwareId)(algorithm));
|
|
513
|
+
return String((_b = this.hardwareIDmanual) !== null && _b !== void 0 ? _b : (0, hwid_1.getHardwareId)(algorithm));
|
|
503
514
|
}
|
|
504
515
|
setProxy(proxy) {
|
|
505
516
|
this.config.proxy = proxy !== null && proxy !== void 0 ? proxy : undefined;
|
|
@@ -510,46 +521,24 @@ let LicenseAPI = (() => {
|
|
|
510
521
|
}
|
|
511
522
|
checkLicense(payload_1) {
|
|
512
523
|
return __awaiter(this, arguments, void 0, function* (payload, includeExpiredFeatures = false) {
|
|
513
|
-
(() => { const $guard = typia_1.default.assert.guard; const $
|
|
514
|
-
if (["channel", "username", "env", "hostname", "bundle_code", "license_id", "sdk_ver", "app_ver", "os_hostname", "ip_local", "mac_address", "ip", "os_ver", "product", "hardware_id", "license_key"].some(prop => key === prop))
|
|
515
|
-
return true;
|
|
516
|
-
const value = input[key];
|
|
517
|
-
if (undefined === value)
|
|
518
|
-
return true;
|
|
519
|
-
return true;
|
|
520
|
-
}); const $io1 = input => (undefined === input.channel || "string" === typeof input.channel) && (undefined === input.env || "string" === typeof input.env) && (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.hostname || "string" === typeof input.hostname) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.app_ver || "string" === typeof input.app_ver) && (undefined === input.os_hostname || "string" === typeof input.os_hostname) && (undefined === input.ip_local || "string" === typeof input.ip_local) && (undefined === input.mac_address || "string" === typeof input.mac_address) && (undefined === input.ip || "string" === typeof input.ip) && (undefined === input.os_ver || "string" === typeof input.os_ver) && "string" === typeof input.product && "string" === typeof input.username && "string" === typeof input.hardware_id && Object.keys(input).every(key => {
|
|
521
|
-
if (["channel", "env", "license_key", "hostname", "bundle_code", "license_id", "sdk_ver", "app_ver", "os_hostname", "ip_local", "mac_address", "ip", "os_ver", "product", "username", "hardware_id"].some(prop => key === prop))
|
|
522
|
-
return true;
|
|
523
|
-
const value = input[key];
|
|
524
|
-
if (undefined === value)
|
|
525
|
-
return true;
|
|
526
|
-
return true;
|
|
527
|
-
}); const $iu0 = input => (() => {
|
|
524
|
+
(() => { const $guard = typia_1.default.assert.guard; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.env || "string" === typeof input.env) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.app_ver || "string" === typeof input.app_ver) && (undefined === input.hostname || "string" === typeof input.hostname) && (undefined === input.os_hostname || "string" === typeof input.os_hostname) && (undefined === input.ip_local || "string" === typeof input.ip_local) && (undefined === input.mac_address || "string" === typeof input.mac_address) && (undefined === input.ip || "string" === typeof input.ip) && (undefined === input.os_ver || "string" === typeof input.os_ver) && (undefined === input.channel || "string" === typeof input.channel) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product; const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.env || "string" === typeof input.env) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.app_ver || "string" === typeof input.app_ver) && (undefined === input.hostname || "string" === typeof input.hostname) && (undefined === input.os_hostname || "string" === typeof input.os_hostname) && (undefined === input.ip_local || "string" === typeof input.ip_local) && (undefined === input.mac_address || "string" === typeof input.mac_address) && (undefined === input.ip || "string" === typeof input.ip) && (undefined === input.os_ver || "string" === typeof input.os_ver) && (undefined === input.channel || "string" === typeof input.channel) && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.product; const $iu0 = input => (() => {
|
|
528
525
|
if ($io1(input))
|
|
529
526
|
return $io1(input);
|
|
530
527
|
if ($io0(input))
|
|
531
528
|
return $io0(input);
|
|
532
529
|
return false;
|
|
533
|
-
})(); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
534
|
-
path: _path + ".channel",
|
|
535
|
-
expected: "(string | undefined)",
|
|
536
|
-
value: input.channel
|
|
537
|
-
}, _errorFactory)) && (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
530
|
+
})(); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
538
531
|
path: _path + ".username",
|
|
539
532
|
expected: "(string | undefined)",
|
|
540
533
|
value: input.username
|
|
541
|
-
}, _errorFactory)) && (undefined === input.env || "string" === typeof input.env || $guard(_exceptionable, {
|
|
542
|
-
path: _path + ".env",
|
|
543
|
-
expected: "(string | undefined)",
|
|
544
|
-
value: input.env
|
|
545
|
-
}, _errorFactory)) && (undefined === input.hostname || "string" === typeof input.hostname || $guard(_exceptionable, {
|
|
546
|
-
path: _path + ".hostname",
|
|
547
|
-
expected: "(string | undefined)",
|
|
548
|
-
value: input.hostname
|
|
549
534
|
}, _errorFactory)) && (undefined === input.bundle_code || "string" === typeof input.bundle_code || $guard(_exceptionable, {
|
|
550
535
|
path: _path + ".bundle_code",
|
|
551
536
|
expected: "(string | undefined)",
|
|
552
537
|
value: input.bundle_code
|
|
538
|
+
}, _errorFactory)) && (undefined === input.env || "string" === typeof input.env || $guard(_exceptionable, {
|
|
539
|
+
path: _path + ".env",
|
|
540
|
+
expected: "(string | undefined)",
|
|
541
|
+
value: input.env
|
|
553
542
|
}, _errorFactory)) && (undefined === input.license_id || "number" === typeof input.license_id || $guard(_exceptionable, {
|
|
554
543
|
path: _path + ".license_id",
|
|
555
544
|
expected: "(number | undefined)",
|
|
@@ -562,6 +551,10 @@ let LicenseAPI = (() => {
|
|
|
562
551
|
path: _path + ".app_ver",
|
|
563
552
|
expected: "(string | undefined)",
|
|
564
553
|
value: input.app_ver
|
|
554
|
+
}, _errorFactory)) && (undefined === input.hostname || "string" === typeof input.hostname || $guard(_exceptionable, {
|
|
555
|
+
path: _path + ".hostname",
|
|
556
|
+
expected: "(string | undefined)",
|
|
557
|
+
value: input.hostname
|
|
565
558
|
}, _errorFactory)) && (undefined === input.os_hostname || "string" === typeof input.os_hostname || $guard(_exceptionable, {
|
|
566
559
|
path: _path + ".os_hostname",
|
|
567
560
|
expected: "(string | undefined)",
|
|
@@ -582,45 +575,34 @@ let LicenseAPI = (() => {
|
|
|
582
575
|
path: _path + ".os_ver",
|
|
583
576
|
expected: "(string | undefined)",
|
|
584
577
|
value: input.os_ver
|
|
585
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
586
|
-
path: _path + ".
|
|
578
|
+
}, _errorFactory)) && (undefined === input.channel || "string" === typeof input.channel || $guard(_exceptionable, {
|
|
579
|
+
path: _path + ".channel",
|
|
580
|
+
expected: "(string | undefined)",
|
|
581
|
+
value: input.channel
|
|
582
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
583
|
+
path: _path + ".license_key",
|
|
587
584
|
expected: "string",
|
|
588
|
-
value: input.
|
|
585
|
+
value: input.license_key
|
|
589
586
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
590
587
|
path: _path + ".hardware_id",
|
|
591
588
|
expected: "string",
|
|
592
589
|
value: input.hardware_id
|
|
593
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
594
|
-
path: _path + ".
|
|
590
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
591
|
+
path: _path + ".product",
|
|
595
592
|
expected: "string",
|
|
596
|
-
value: input.
|
|
597
|
-
}, _errorFactory))
|
|
598
|
-
if (["channel", "username", "env", "hostname", "bundle_code", "license_id", "sdk_ver", "app_ver", "os_hostname", "ip_local", "mac_address", "ip", "os_ver", "product", "hardware_id", "license_key"].some(prop => key === prop))
|
|
599
|
-
return true;
|
|
600
|
-
const value = input[key];
|
|
601
|
-
if (undefined === value)
|
|
602
|
-
return true;
|
|
603
|
-
return true;
|
|
604
|
-
})); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.channel || "string" === typeof input.channel || $guard(_exceptionable, {
|
|
605
|
-
path: _path + ".channel",
|
|
606
|
-
expected: "(string | undefined)",
|
|
607
|
-
value: input.channel
|
|
608
|
-
}, _errorFactory)) && (undefined === input.env || "string" === typeof input.env || $guard(_exceptionable, {
|
|
609
|
-
path: _path + ".env",
|
|
610
|
-
expected: "(string | undefined)",
|
|
611
|
-
value: input.env
|
|
612
|
-
}, _errorFactory)) && (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
593
|
+
value: input.product
|
|
594
|
+
}, _errorFactory)); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
613
595
|
path: _path + ".license_key",
|
|
614
596
|
expected: "(string | undefined)",
|
|
615
597
|
value: input.license_key
|
|
616
|
-
}, _errorFactory)) && (undefined === input.hostname || "string" === typeof input.hostname || $guard(_exceptionable, {
|
|
617
|
-
path: _path + ".hostname",
|
|
618
|
-
expected: "(string | undefined)",
|
|
619
|
-
value: input.hostname
|
|
620
598
|
}, _errorFactory)) && (undefined === input.bundle_code || "string" === typeof input.bundle_code || $guard(_exceptionable, {
|
|
621
599
|
path: _path + ".bundle_code",
|
|
622
600
|
expected: "(string | undefined)",
|
|
623
601
|
value: input.bundle_code
|
|
602
|
+
}, _errorFactory)) && (undefined === input.env || "string" === typeof input.env || $guard(_exceptionable, {
|
|
603
|
+
path: _path + ".env",
|
|
604
|
+
expected: "(string | undefined)",
|
|
605
|
+
value: input.env
|
|
624
606
|
}, _errorFactory)) && (undefined === input.license_id || "number" === typeof input.license_id || $guard(_exceptionable, {
|
|
625
607
|
path: _path + ".license_id",
|
|
626
608
|
expected: "(number | undefined)",
|
|
@@ -633,6 +615,10 @@ let LicenseAPI = (() => {
|
|
|
633
615
|
path: _path + ".app_ver",
|
|
634
616
|
expected: "(string | undefined)",
|
|
635
617
|
value: input.app_ver
|
|
618
|
+
}, _errorFactory)) && (undefined === input.hostname || "string" === typeof input.hostname || $guard(_exceptionable, {
|
|
619
|
+
path: _path + ".hostname",
|
|
620
|
+
expected: "(string | undefined)",
|
|
621
|
+
value: input.hostname
|
|
636
622
|
}, _errorFactory)) && (undefined === input.os_hostname || "string" === typeof input.os_hostname || $guard(_exceptionable, {
|
|
637
623
|
path: _path + ".os_hostname",
|
|
638
624
|
expected: "(string | undefined)",
|
|
@@ -653,10 +639,10 @@ let LicenseAPI = (() => {
|
|
|
653
639
|
path: _path + ".os_ver",
|
|
654
640
|
expected: "(string | undefined)",
|
|
655
641
|
value: input.os_ver
|
|
656
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
657
|
-
path: _path + ".
|
|
658
|
-
expected: "string",
|
|
659
|
-
value: input.
|
|
642
|
+
}, _errorFactory)) && (undefined === input.channel || "string" === typeof input.channel || $guard(_exceptionable, {
|
|
643
|
+
path: _path + ".channel",
|
|
644
|
+
expected: "(string | undefined)",
|
|
645
|
+
value: input.channel
|
|
660
646
|
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
661
647
|
path: _path + ".username",
|
|
662
648
|
expected: "string",
|
|
@@ -665,14 +651,11 @@ let LicenseAPI = (() => {
|
|
|
665
651
|
path: _path + ".hardware_id",
|
|
666
652
|
expected: "string",
|
|
667
653
|
value: input.hardware_id
|
|
668
|
-
}, _errorFactory)) && (
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
return true;
|
|
674
|
-
return true;
|
|
675
|
-
})); const $au0 = (input, _path, _exceptionable = true) => $ao1(input, _path, false && _exceptionable) || $ao0(input, _path, false && _exceptionable) || $guard(_exceptionable, {
|
|
654
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
655
|
+
path: _path + ".product",
|
|
656
|
+
expected: "string",
|
|
657
|
+
value: input.product
|
|
658
|
+
}, _errorFactory)); const $au0 = (input, _path, _exceptionable = true) => $ao1(input, _path, false && _exceptionable) || $ao0(input, _path, false && _exceptionable) || $guard(_exceptionable, {
|
|
676
659
|
path: _path,
|
|
677
660
|
expected: "(__type.o1 | __type)",
|
|
678
661
|
value: input
|
|
@@ -698,119 +681,251 @@ let LicenseAPI = (() => {
|
|
|
698
681
|
});
|
|
699
682
|
}
|
|
700
683
|
;
|
|
701
|
-
|
|
702
|
-
return __awaiter(this,
|
|
703
|
-
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.
|
|
704
|
-
if (["
|
|
705
|
-
return true;
|
|
706
|
-
const value = input[key];
|
|
707
|
-
if (undefined === value)
|
|
708
|
-
return true;
|
|
709
|
-
return true;
|
|
710
|
-
}); const $io1 = input => Object.keys(input).every(key => {
|
|
711
|
-
const value = input[key];
|
|
712
|
-
if (undefined === value)
|
|
713
|
-
return true;
|
|
714
|
-
return true;
|
|
715
|
-
}); const $io2 = input => (undefined === input.code || "string" === typeof input.code) && (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.id_token || "string" === typeof input.id_token) && (undefined === input.customer_account_code || "string" === typeof input.customer_account_code) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && "string" === typeof input.product && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.password && Object.keys(input).every(key => {
|
|
716
|
-
if (["code", "license_key", "id_token", "customer_account_code", "bundle_code", "variables", "product", "username", "hardware_id", "password"].some(prop => key === prop))
|
|
717
|
-
return true;
|
|
718
|
-
const value = input[key];
|
|
719
|
-
if (undefined === value)
|
|
720
|
-
return true;
|
|
721
|
-
return true;
|
|
722
|
-
}); const $io3 = input => (undefined === input.code || "string" === typeof input.code) && (undefined === input.username || "string" === typeof input.username) && (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && "string" === typeof input.product && "string" === typeof input.hardware_id && "string" === typeof input.id_token && "string" === typeof input.customer_account_code && Object.keys(input).every(key => {
|
|
723
|
-
if (["code", "username", "license_key", "password", "bundle_code", "variables", "product", "hardware_id", "id_token", "customer_account_code"].some(prop => key === prop))
|
|
684
|
+
checkBundle(payload_1) {
|
|
685
|
+
return __awaiter(this, arguments, void 0, function* (payload, includeExpiredFeatures = false) {
|
|
686
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.env || "string" === typeof input.env) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.app_ver || "string" === typeof input.app_ver) && (undefined === input.hostname || "string" === typeof input.hostname) && (undefined === input.os_hostname || "string" === typeof input.os_hostname) && (undefined === input.ip_local || "string" === typeof input.ip_local) && (undefined === input.mac_address || "string" === typeof input.mac_address) && (undefined === input.ip || "string" === typeof input.ip) && (undefined === input.os_ver || "string" === typeof input.os_ver) && (undefined === input.channel || "string" === typeof input.channel) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
687
|
+
if (["username", "env", "license_id", "sdk_ver", "app_ver", "hostname", "os_hostname", "ip_local", "mac_address", "ip", "os_ver", "channel", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
724
688
|
return true;
|
|
725
689
|
const value = input[key];
|
|
726
690
|
if (undefined === value)
|
|
727
691
|
return true;
|
|
728
692
|
return true;
|
|
729
|
-
}); const $
|
|
730
|
-
if (["
|
|
693
|
+
}); const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.env || "string" === typeof input.env) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.app_ver || "string" === typeof input.app_ver) && (undefined === input.hostname || "string" === typeof input.hostname) && (undefined === input.os_hostname || "string" === typeof input.os_hostname) && (undefined === input.ip_local || "string" === typeof input.ip_local) && (undefined === input.mac_address || "string" === typeof input.mac_address) && (undefined === input.ip || "string" === typeof input.ip) && (undefined === input.os_ver || "string" === typeof input.os_ver) && (undefined === input.channel || "string" === typeof input.channel) && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
694
|
+
if (["license_key", "env", "license_id", "sdk_ver", "app_ver", "hostname", "os_hostname", "ip_local", "mac_address", "ip", "os_ver", "channel", "username", "hardware_id", "product"].some(prop => key === prop))
|
|
731
695
|
return true;
|
|
732
696
|
const value = input[key];
|
|
733
697
|
if (undefined === value)
|
|
734
698
|
return true;
|
|
735
699
|
return true;
|
|
736
700
|
}); const $iu0 = input => (() => {
|
|
737
|
-
if ($
|
|
738
|
-
return $
|
|
739
|
-
if ($io3(input))
|
|
740
|
-
return $io3(input);
|
|
741
|
-
if ($io2(input))
|
|
742
|
-
return $io2(input);
|
|
701
|
+
if ($io1(input))
|
|
702
|
+
return $io1(input);
|
|
743
703
|
if ($io0(input))
|
|
744
704
|
return $io0(input);
|
|
745
705
|
return false;
|
|
746
|
-
})(); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
747
|
-
path: _path + ".code",
|
|
748
|
-
expected: "(string | undefined)",
|
|
749
|
-
value: input.code
|
|
750
|
-
}, _errorFactory)) && (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
706
|
+
})(); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
751
707
|
path: _path + ".username",
|
|
752
708
|
expected: "(string | undefined)",
|
|
753
709
|
value: input.username
|
|
754
|
-
}, _errorFactory)) && (undefined === input.
|
|
755
|
-
path: _path + ".
|
|
710
|
+
}, _errorFactory)) && (undefined === input.env || "string" === typeof input.env || $guard(_exceptionable, {
|
|
711
|
+
path: _path + ".env",
|
|
756
712
|
expected: "(string | undefined)",
|
|
757
|
-
value: input.
|
|
758
|
-
}, _errorFactory)) && (undefined === input.
|
|
759
|
-
path: _path + ".
|
|
713
|
+
value: input.env
|
|
714
|
+
}, _errorFactory)) && (undefined === input.license_id || "number" === typeof input.license_id || $guard(_exceptionable, {
|
|
715
|
+
path: _path + ".license_id",
|
|
716
|
+
expected: "(number | undefined)",
|
|
717
|
+
value: input.license_id
|
|
718
|
+
}, _errorFactory)) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver || $guard(_exceptionable, {
|
|
719
|
+
path: _path + ".sdk_ver",
|
|
760
720
|
expected: "(string | undefined)",
|
|
761
|
-
value: input.
|
|
762
|
-
}, _errorFactory)) && (undefined === input.
|
|
763
|
-
path: _path + ".
|
|
721
|
+
value: input.sdk_ver
|
|
722
|
+
}, _errorFactory)) && (undefined === input.app_ver || "string" === typeof input.app_ver || $guard(_exceptionable, {
|
|
723
|
+
path: _path + ".app_ver",
|
|
764
724
|
expected: "(string | undefined)",
|
|
765
|
-
value: input.
|
|
766
|
-
}, _errorFactory)) && (undefined === input.
|
|
767
|
-
path: _path + ".
|
|
725
|
+
value: input.app_ver
|
|
726
|
+
}, _errorFactory)) && (undefined === input.hostname || "string" === typeof input.hostname || $guard(_exceptionable, {
|
|
727
|
+
path: _path + ".hostname",
|
|
768
728
|
expected: "(string | undefined)",
|
|
769
|
-
value: input.
|
|
770
|
-
}, _errorFactory)) && (undefined === input.
|
|
771
|
-
path: _path + ".
|
|
772
|
-
expected: "(
|
|
773
|
-
value: input.
|
|
774
|
-
}, _errorFactory)) &&
|
|
775
|
-
path: _path + ".
|
|
776
|
-
expected: "(
|
|
777
|
-
value: input.
|
|
778
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
779
|
-
path: _path + ".
|
|
729
|
+
value: input.hostname
|
|
730
|
+
}, _errorFactory)) && (undefined === input.os_hostname || "string" === typeof input.os_hostname || $guard(_exceptionable, {
|
|
731
|
+
path: _path + ".os_hostname",
|
|
732
|
+
expected: "(string | undefined)",
|
|
733
|
+
value: input.os_hostname
|
|
734
|
+
}, _errorFactory)) && (undefined === input.ip_local || "string" === typeof input.ip_local || $guard(_exceptionable, {
|
|
735
|
+
path: _path + ".ip_local",
|
|
736
|
+
expected: "(string | undefined)",
|
|
737
|
+
value: input.ip_local
|
|
738
|
+
}, _errorFactory)) && (undefined === input.mac_address || "string" === typeof input.mac_address || $guard(_exceptionable, {
|
|
739
|
+
path: _path + ".mac_address",
|
|
740
|
+
expected: "(string | undefined)",
|
|
741
|
+
value: input.mac_address
|
|
742
|
+
}, _errorFactory)) && (undefined === input.ip || "string" === typeof input.ip || $guard(_exceptionable, {
|
|
743
|
+
path: _path + ".ip",
|
|
744
|
+
expected: "(string | undefined)",
|
|
745
|
+
value: input.ip
|
|
746
|
+
}, _errorFactory)) && (undefined === input.os_ver || "string" === typeof input.os_ver || $guard(_exceptionable, {
|
|
747
|
+
path: _path + ".os_ver",
|
|
748
|
+
expected: "(string | undefined)",
|
|
749
|
+
value: input.os_ver
|
|
750
|
+
}, _errorFactory)) && (undefined === input.channel || "string" === typeof input.channel || $guard(_exceptionable, {
|
|
751
|
+
path: _path + ".channel",
|
|
752
|
+
expected: "(string | undefined)",
|
|
753
|
+
value: input.channel
|
|
754
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
755
|
+
path: _path + ".license_key",
|
|
780
756
|
expected: "string",
|
|
781
|
-
value: input.
|
|
757
|
+
value: input.license_key
|
|
782
758
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
783
759
|
path: _path + ".hardware_id",
|
|
784
760
|
expected: "string",
|
|
785
761
|
value: input.hardware_id
|
|
786
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
787
|
-
path: _path + ".
|
|
762
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
763
|
+
path: _path + ".product",
|
|
788
764
|
expected: "string",
|
|
789
|
-
value: input.
|
|
765
|
+
value: input.product
|
|
790
766
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
791
|
-
if (["
|
|
767
|
+
if (["username", "env", "license_id", "sdk_ver", "app_ver", "hostname", "os_hostname", "ip_local", "mac_address", "ip", "os_ver", "channel", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
792
768
|
return true;
|
|
793
769
|
const value = input[key];
|
|
794
770
|
if (undefined === value)
|
|
795
771
|
return true;
|
|
796
772
|
return true;
|
|
797
|
-
})); const $ao1 = (input, _path, _exceptionable = true) =>
|
|
798
|
-
const value = input[key];
|
|
799
|
-
if (undefined === value)
|
|
800
|
-
return true;
|
|
801
|
-
return true;
|
|
802
|
-
}); const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
|
|
803
|
-
path: _path + ".code",
|
|
804
|
-
expected: "(string | undefined)",
|
|
805
|
-
value: input.code
|
|
806
|
-
}, _errorFactory)) && (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
773
|
+
})); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
807
774
|
path: _path + ".license_key",
|
|
808
775
|
expected: "(string | undefined)",
|
|
809
776
|
value: input.license_key
|
|
810
|
-
}, _errorFactory)) && (undefined === input.
|
|
811
|
-
path: _path + ".
|
|
812
|
-
expected: "(string | undefined)",
|
|
777
|
+
}, _errorFactory)) && (undefined === input.env || "string" === typeof input.env || $guard(_exceptionable, {
|
|
778
|
+
path: _path + ".env",
|
|
779
|
+
expected: "(string | undefined)",
|
|
780
|
+
value: input.env
|
|
781
|
+
}, _errorFactory)) && (undefined === input.license_id || "number" === typeof input.license_id || $guard(_exceptionable, {
|
|
782
|
+
path: _path + ".license_id",
|
|
783
|
+
expected: "(number | undefined)",
|
|
784
|
+
value: input.license_id
|
|
785
|
+
}, _errorFactory)) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver || $guard(_exceptionable, {
|
|
786
|
+
path: _path + ".sdk_ver",
|
|
787
|
+
expected: "(string | undefined)",
|
|
788
|
+
value: input.sdk_ver
|
|
789
|
+
}, _errorFactory)) && (undefined === input.app_ver || "string" === typeof input.app_ver || $guard(_exceptionable, {
|
|
790
|
+
path: _path + ".app_ver",
|
|
791
|
+
expected: "(string | undefined)",
|
|
792
|
+
value: input.app_ver
|
|
793
|
+
}, _errorFactory)) && (undefined === input.hostname || "string" === typeof input.hostname || $guard(_exceptionable, {
|
|
794
|
+
path: _path + ".hostname",
|
|
795
|
+
expected: "(string | undefined)",
|
|
796
|
+
value: input.hostname
|
|
797
|
+
}, _errorFactory)) && (undefined === input.os_hostname || "string" === typeof input.os_hostname || $guard(_exceptionable, {
|
|
798
|
+
path: _path + ".os_hostname",
|
|
799
|
+
expected: "(string | undefined)",
|
|
800
|
+
value: input.os_hostname
|
|
801
|
+
}, _errorFactory)) && (undefined === input.ip_local || "string" === typeof input.ip_local || $guard(_exceptionable, {
|
|
802
|
+
path: _path + ".ip_local",
|
|
803
|
+
expected: "(string | undefined)",
|
|
804
|
+
value: input.ip_local
|
|
805
|
+
}, _errorFactory)) && (undefined === input.mac_address || "string" === typeof input.mac_address || $guard(_exceptionable, {
|
|
806
|
+
path: _path + ".mac_address",
|
|
807
|
+
expected: "(string | undefined)",
|
|
808
|
+
value: input.mac_address
|
|
809
|
+
}, _errorFactory)) && (undefined === input.ip || "string" === typeof input.ip || $guard(_exceptionable, {
|
|
810
|
+
path: _path + ".ip",
|
|
811
|
+
expected: "(string | undefined)",
|
|
812
|
+
value: input.ip
|
|
813
|
+
}, _errorFactory)) && (undefined === input.os_ver || "string" === typeof input.os_ver || $guard(_exceptionable, {
|
|
814
|
+
path: _path + ".os_ver",
|
|
815
|
+
expected: "(string | undefined)",
|
|
816
|
+
value: input.os_ver
|
|
817
|
+
}, _errorFactory)) && (undefined === input.channel || "string" === typeof input.channel || $guard(_exceptionable, {
|
|
818
|
+
path: _path + ".channel",
|
|
819
|
+
expected: "(string | undefined)",
|
|
820
|
+
value: input.channel
|
|
821
|
+
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
822
|
+
path: _path + ".username",
|
|
823
|
+
expected: "string",
|
|
824
|
+
value: input.username
|
|
825
|
+
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
826
|
+
path: _path + ".hardware_id",
|
|
827
|
+
expected: "string",
|
|
828
|
+
value: input.hardware_id
|
|
829
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
830
|
+
path: _path + ".product",
|
|
831
|
+
expected: "string",
|
|
832
|
+
value: input.product
|
|
833
|
+
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
834
|
+
if (["license_key", "env", "license_id", "sdk_ver", "app_ver", "hostname", "os_hostname", "ip_local", "mac_address", "ip", "os_ver", "channel", "username", "hardware_id", "product"].some(prop => key === prop))
|
|
835
|
+
return true;
|
|
836
|
+
const value = input[key];
|
|
837
|
+
if (undefined === value)
|
|
838
|
+
return true;
|
|
839
|
+
return true;
|
|
840
|
+
})); const $au0 = (input, _path, _exceptionable = true) => $ao1(input, _path, false && _exceptionable) || $ao0(input, _path, false && _exceptionable) || $guard(_exceptionable, {
|
|
841
|
+
path: _path,
|
|
842
|
+
expected: "(__type.o1 | __type)",
|
|
843
|
+
value: input
|
|
844
|
+
}, _errorFactory); const __is = input => "object" === typeof input && null !== input && $iu0(input); let _errorFactory; return (input, errorFactory) => {
|
|
845
|
+
if (false === __is(input)) {
|
|
846
|
+
_errorFactory = errorFactory;
|
|
847
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $guard(true, {
|
|
848
|
+
path: _path + "",
|
|
849
|
+
expected: "(__type | __type.o1)",
|
|
850
|
+
value: input
|
|
851
|
+
}, _errorFactory)) && $au0(input, _path + "", true) || $guard(true, {
|
|
852
|
+
path: _path + "",
|
|
853
|
+
expected: "(__type | __type.o1)",
|
|
854
|
+
value: input
|
|
855
|
+
}, _errorFactory))(input, "$input", true);
|
|
856
|
+
}
|
|
857
|
+
return input;
|
|
858
|
+
}; })()(payload);
|
|
859
|
+
const { headers, response } = yield this.service.getRequest('check_bundle', Object.assign(Object.assign({}, payload), { include_expired_features: includeExpiredFeatures }));
|
|
860
|
+
for (const license of response) {
|
|
861
|
+
(0, common_1.checkSignatureV1)(this.config.publicKey, license, payload);
|
|
862
|
+
}
|
|
863
|
+
(0, common_1.checkSignatureV2)(this.config.publicKey, response, (0, common_1.getHeaderString)(headers, 'LicenseSignature'));
|
|
864
|
+
return response;
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
;
|
|
868
|
+
activateLicense(payload) {
|
|
869
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
870
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.id_token || "string" === typeof input.id_token) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.customer_account_code || "string" === typeof input.customer_account_code) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
871
|
+
if (["username", "password", "id_token", "code", "customer_account_code", "bundle_code", "variables", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
872
|
+
return true;
|
|
873
|
+
const value = input[key];
|
|
874
|
+
if (undefined === value)
|
|
875
|
+
return true;
|
|
876
|
+
return true;
|
|
877
|
+
}); const $io1 = input => Object.keys(input).every(key => {
|
|
878
|
+
const value = input[key];
|
|
879
|
+
if (undefined === value)
|
|
880
|
+
return true;
|
|
881
|
+
return true;
|
|
882
|
+
}); const $io2 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.id_token || "string" === typeof input.id_token) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.customer_account_code || "string" === typeof input.customer_account_code) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && "string" === typeof input.username && "string" === typeof input.password && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
883
|
+
if (["license_key", "id_token", "code", "customer_account_code", "bundle_code", "variables", "username", "password", "hardware_id", "product"].some(prop => key === prop))
|
|
884
|
+
return true;
|
|
885
|
+
const value = input[key];
|
|
886
|
+
if (undefined === value)
|
|
887
|
+
return true;
|
|
888
|
+
return true;
|
|
889
|
+
}); const $io3 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && "string" === typeof input.hardware_id && "string" === typeof input.product && "string" === typeof input.id_token && "string" === typeof input.customer_account_code && Object.keys(input).every(key => {
|
|
890
|
+
if (["license_key", "username", "password", "code", "bundle_code", "variables", "hardware_id", "product", "id_token", "customer_account_code"].some(prop => key === prop))
|
|
891
|
+
return true;
|
|
892
|
+
const value = input[key];
|
|
893
|
+
if (undefined === value)
|
|
894
|
+
return true;
|
|
895
|
+
return true;
|
|
896
|
+
}); const $io4 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.id_token || "string" === typeof input.id_token) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && "string" === typeof input.hardware_id && "string" === typeof input.product && "string" === typeof input.code && "string" === typeof input.customer_account_code && Object.keys(input).every(key => {
|
|
897
|
+
if (["license_key", "username", "password", "id_token", "bundle_code", "variables", "hardware_id", "product", "code", "customer_account_code"].some(prop => key === prop))
|
|
898
|
+
return true;
|
|
899
|
+
const value = input[key];
|
|
900
|
+
if (undefined === value)
|
|
901
|
+
return true;
|
|
902
|
+
return true;
|
|
903
|
+
}); const $iu0 = input => (() => {
|
|
904
|
+
if ($io4(input))
|
|
905
|
+
return $io4(input);
|
|
906
|
+
if ($io3(input))
|
|
907
|
+
return $io3(input);
|
|
908
|
+
if ($io2(input))
|
|
909
|
+
return $io2(input);
|
|
910
|
+
if ($io0(input))
|
|
911
|
+
return $io0(input);
|
|
912
|
+
return false;
|
|
913
|
+
})(); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
914
|
+
path: _path + ".username",
|
|
915
|
+
expected: "(string | undefined)",
|
|
916
|
+
value: input.username
|
|
917
|
+
}, _errorFactory)) && (undefined === input.password || "string" === typeof input.password || $guard(_exceptionable, {
|
|
918
|
+
path: _path + ".password",
|
|
919
|
+
expected: "(string | undefined)",
|
|
920
|
+
value: input.password
|
|
921
|
+
}, _errorFactory)) && (undefined === input.id_token || "string" === typeof input.id_token || $guard(_exceptionable, {
|
|
922
|
+
path: _path + ".id_token",
|
|
923
|
+
expected: "(string | undefined)",
|
|
813
924
|
value: input.id_token
|
|
925
|
+
}, _errorFactory)) && (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
|
|
926
|
+
path: _path + ".code",
|
|
927
|
+
expected: "(string | undefined)",
|
|
928
|
+
value: input.code
|
|
814
929
|
}, _errorFactory)) && (undefined === input.customer_account_code || "string" === typeof input.customer_account_code || $guard(_exceptionable, {
|
|
815
930
|
path: _path + ".customer_account_code",
|
|
816
931
|
expected: "(string | undefined)",
|
|
@@ -827,45 +942,97 @@ let LicenseAPI = (() => {
|
|
|
827
942
|
path: _path + ".variables",
|
|
828
943
|
expected: "(__type.o1 | undefined)",
|
|
829
944
|
value: input.variables
|
|
945
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
946
|
+
path: _path + ".license_key",
|
|
947
|
+
expected: "string",
|
|
948
|
+
value: input.license_key
|
|
949
|
+
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
950
|
+
path: _path + ".hardware_id",
|
|
951
|
+
expected: "string",
|
|
952
|
+
value: input.hardware_id
|
|
830
953
|
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
831
954
|
path: _path + ".product",
|
|
832
955
|
expected: "string",
|
|
833
956
|
value: input.product
|
|
957
|
+
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
958
|
+
if (["username", "password", "id_token", "code", "customer_account_code", "bundle_code", "variables", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
959
|
+
return true;
|
|
960
|
+
const value = input[key];
|
|
961
|
+
if (undefined === value)
|
|
962
|
+
return true;
|
|
963
|
+
return true;
|
|
964
|
+
})); const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
965
|
+
const value = input[key];
|
|
966
|
+
if (undefined === value)
|
|
967
|
+
return true;
|
|
968
|
+
return true;
|
|
969
|
+
}); const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
970
|
+
path: _path + ".license_key",
|
|
971
|
+
expected: "(string | undefined)",
|
|
972
|
+
value: input.license_key
|
|
973
|
+
}, _errorFactory)) && (undefined === input.id_token || "string" === typeof input.id_token || $guard(_exceptionable, {
|
|
974
|
+
path: _path + ".id_token",
|
|
975
|
+
expected: "(string | undefined)",
|
|
976
|
+
value: input.id_token
|
|
977
|
+
}, _errorFactory)) && (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
|
|
978
|
+
path: _path + ".code",
|
|
979
|
+
expected: "(string | undefined)",
|
|
980
|
+
value: input.code
|
|
981
|
+
}, _errorFactory)) && (undefined === input.customer_account_code || "string" === typeof input.customer_account_code || $guard(_exceptionable, {
|
|
982
|
+
path: _path + ".customer_account_code",
|
|
983
|
+
expected: "(string | undefined)",
|
|
984
|
+
value: input.customer_account_code
|
|
985
|
+
}, _errorFactory)) && (undefined === input.bundle_code || "string" === typeof input.bundle_code || $guard(_exceptionable, {
|
|
986
|
+
path: _path + ".bundle_code",
|
|
987
|
+
expected: "(string | undefined)",
|
|
988
|
+
value: input.bundle_code
|
|
989
|
+
}, _errorFactory)) && (undefined === input.variables || ("object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) || $guard(_exceptionable, {
|
|
990
|
+
path: _path + ".variables",
|
|
991
|
+
expected: "(__type.o1 | undefined)",
|
|
992
|
+
value: input.variables
|
|
993
|
+
}, _errorFactory)) && $ao1(input.variables, _path + ".variables", true && _exceptionable) || $guard(_exceptionable, {
|
|
994
|
+
path: _path + ".variables",
|
|
995
|
+
expected: "(__type.o1 | undefined)",
|
|
996
|
+
value: input.variables
|
|
834
997
|
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
835
998
|
path: _path + ".username",
|
|
836
999
|
expected: "string",
|
|
837
1000
|
value: input.username
|
|
1001
|
+
}, _errorFactory)) && ("string" === typeof input.password || $guard(_exceptionable, {
|
|
1002
|
+
path: _path + ".password",
|
|
1003
|
+
expected: "string",
|
|
1004
|
+
value: input.password
|
|
838
1005
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
839
1006
|
path: _path + ".hardware_id",
|
|
840
1007
|
expected: "string",
|
|
841
1008
|
value: input.hardware_id
|
|
842
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
843
|
-
path: _path + ".
|
|
1009
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
1010
|
+
path: _path + ".product",
|
|
844
1011
|
expected: "string",
|
|
845
|
-
value: input.
|
|
1012
|
+
value: input.product
|
|
846
1013
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
847
|
-
if (["
|
|
1014
|
+
if (["license_key", "id_token", "code", "customer_account_code", "bundle_code", "variables", "username", "password", "hardware_id", "product"].some(prop => key === prop))
|
|
848
1015
|
return true;
|
|
849
1016
|
const value = input[key];
|
|
850
1017
|
if (undefined === value)
|
|
851
1018
|
return true;
|
|
852
1019
|
return true;
|
|
853
|
-
})); const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
854
|
-
path: _path + ".
|
|
1020
|
+
})); const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
1021
|
+
path: _path + ".license_key",
|
|
855
1022
|
expected: "(string | undefined)",
|
|
856
|
-
value: input.
|
|
1023
|
+
value: input.license_key
|
|
857
1024
|
}, _errorFactory)) && (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
858
1025
|
path: _path + ".username",
|
|
859
1026
|
expected: "(string | undefined)",
|
|
860
1027
|
value: input.username
|
|
861
|
-
}, _errorFactory)) && (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
862
|
-
path: _path + ".license_key",
|
|
863
|
-
expected: "(string | undefined)",
|
|
864
|
-
value: input.license_key
|
|
865
1028
|
}, _errorFactory)) && (undefined === input.password || "string" === typeof input.password || $guard(_exceptionable, {
|
|
866
1029
|
path: _path + ".password",
|
|
867
1030
|
expected: "(string | undefined)",
|
|
868
1031
|
value: input.password
|
|
1032
|
+
}, _errorFactory)) && (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
|
|
1033
|
+
path: _path + ".code",
|
|
1034
|
+
expected: "(string | undefined)",
|
|
1035
|
+
value: input.code
|
|
869
1036
|
}, _errorFactory)) && (undefined === input.bundle_code || "string" === typeof input.bundle_code || $guard(_exceptionable, {
|
|
870
1037
|
path: _path + ".bundle_code",
|
|
871
1038
|
expected: "(string | undefined)",
|
|
@@ -878,14 +1045,14 @@ let LicenseAPI = (() => {
|
|
|
878
1045
|
path: _path + ".variables",
|
|
879
1046
|
expected: "(__type.o1 | undefined)",
|
|
880
1047
|
value: input.variables
|
|
881
|
-
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
882
|
-
path: _path + ".product",
|
|
883
|
-
expected: "string",
|
|
884
|
-
value: input.product
|
|
885
1048
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
886
1049
|
path: _path + ".hardware_id",
|
|
887
1050
|
expected: "string",
|
|
888
1051
|
value: input.hardware_id
|
|
1052
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
1053
|
+
path: _path + ".product",
|
|
1054
|
+
expected: "string",
|
|
1055
|
+
value: input.product
|
|
889
1056
|
}, _errorFactory)) && ("string" === typeof input.id_token || $guard(_exceptionable, {
|
|
890
1057
|
path: _path + ".id_token",
|
|
891
1058
|
expected: "string",
|
|
@@ -895,20 +1062,20 @@ let LicenseAPI = (() => {
|
|
|
895
1062
|
expected: "string",
|
|
896
1063
|
value: input.customer_account_code
|
|
897
1064
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
898
|
-
if (["
|
|
1065
|
+
if (["license_key", "username", "password", "code", "bundle_code", "variables", "hardware_id", "product", "id_token", "customer_account_code"].some(prop => key === prop))
|
|
899
1066
|
return true;
|
|
900
1067
|
const value = input[key];
|
|
901
1068
|
if (undefined === value)
|
|
902
1069
|
return true;
|
|
903
1070
|
return true;
|
|
904
|
-
})); const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
905
|
-
path: _path + ".username",
|
|
906
|
-
expected: "(string | undefined)",
|
|
907
|
-
value: input.username
|
|
908
|
-
}, _errorFactory)) && (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
1071
|
+
})); const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
909
1072
|
path: _path + ".license_key",
|
|
910
1073
|
expected: "(string | undefined)",
|
|
911
1074
|
value: input.license_key
|
|
1075
|
+
}, _errorFactory)) && (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
1076
|
+
path: _path + ".username",
|
|
1077
|
+
expected: "(string | undefined)",
|
|
1078
|
+
value: input.username
|
|
912
1079
|
}, _errorFactory)) && (undefined === input.password || "string" === typeof input.password || $guard(_exceptionable, {
|
|
913
1080
|
path: _path + ".password",
|
|
914
1081
|
expected: "(string | undefined)",
|
|
@@ -929,24 +1096,24 @@ let LicenseAPI = (() => {
|
|
|
929
1096
|
path: _path + ".variables",
|
|
930
1097
|
expected: "(__type.o1 | undefined)",
|
|
931
1098
|
value: input.variables
|
|
932
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
933
|
-
path: _path + ".
|
|
1099
|
+
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
1100
|
+
path: _path + ".hardware_id",
|
|
934
1101
|
expected: "string",
|
|
935
|
-
value: input.
|
|
1102
|
+
value: input.hardware_id
|
|
936
1103
|
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
937
1104
|
path: _path + ".product",
|
|
938
1105
|
expected: "string",
|
|
939
1106
|
value: input.product
|
|
940
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
941
|
-
path: _path + ".
|
|
1107
|
+
}, _errorFactory)) && ("string" === typeof input.code || $guard(_exceptionable, {
|
|
1108
|
+
path: _path + ".code",
|
|
942
1109
|
expected: "string",
|
|
943
|
-
value: input.
|
|
1110
|
+
value: input.code
|
|
944
1111
|
}, _errorFactory)) && ("string" === typeof input.customer_account_code || $guard(_exceptionable, {
|
|
945
1112
|
path: _path + ".customer_account_code",
|
|
946
1113
|
expected: "string",
|
|
947
1114
|
value: input.customer_account_code
|
|
948
1115
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
949
|
-
if (["
|
|
1116
|
+
if (["license_key", "username", "password", "id_token", "bundle_code", "variables", "hardware_id", "product", "code", "customer_account_code"].some(prop => key === prop))
|
|
950
1117
|
return true;
|
|
951
1118
|
const value = input[key];
|
|
952
1119
|
if (undefined === value)
|
|
@@ -978,25 +1145,48 @@ let LicenseAPI = (() => {
|
|
|
978
1145
|
});
|
|
979
1146
|
}
|
|
980
1147
|
;
|
|
981
|
-
|
|
1148
|
+
activateBundle(payload) {
|
|
982
1149
|
return __awaiter(this, void 0, void 0, function* () {
|
|
983
|
-
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.
|
|
984
|
-
if (["username", "
|
|
1150
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.id_token || "string" === typeof input.id_token) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.customer_account_code || "string" === typeof input.customer_account_code) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
1151
|
+
if (["username", "password", "id_token", "code", "customer_account_code", "variables", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
1152
|
+
return true;
|
|
1153
|
+
const value = input[key];
|
|
1154
|
+
if (undefined === value)
|
|
1155
|
+
return true;
|
|
1156
|
+
return true;
|
|
1157
|
+
}); const $io1 = input => Object.keys(input).every(key => {
|
|
1158
|
+
const value = input[key];
|
|
1159
|
+
if (undefined === value)
|
|
1160
|
+
return true;
|
|
1161
|
+
return true;
|
|
1162
|
+
}); const $io2 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.id_token || "string" === typeof input.id_token) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.customer_account_code || "string" === typeof input.customer_account_code) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && "string" === typeof input.username && "string" === typeof input.password && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
1163
|
+
if (["license_key", "id_token", "code", "customer_account_code", "variables", "username", "password", "hardware_id", "product"].some(prop => key === prop))
|
|
1164
|
+
return true;
|
|
1165
|
+
const value = input[key];
|
|
1166
|
+
if (undefined === value)
|
|
1167
|
+
return true;
|
|
1168
|
+
return true;
|
|
1169
|
+
}); const $io3 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && "string" === typeof input.hardware_id && "string" === typeof input.product && "string" === typeof input.id_token && "string" === typeof input.customer_account_code && Object.keys(input).every(key => {
|
|
1170
|
+
if (["license_key", "username", "password", "code", "variables", "hardware_id", "product", "id_token", "customer_account_code"].some(prop => key === prop))
|
|
985
1171
|
return true;
|
|
986
1172
|
const value = input[key];
|
|
987
1173
|
if (undefined === value)
|
|
988
1174
|
return true;
|
|
989
1175
|
return true;
|
|
990
|
-
}); const $
|
|
991
|
-
if (["license_key", "
|
|
1176
|
+
}); const $io4 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.id_token || "string" === typeof input.id_token) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && "string" === typeof input.hardware_id && "string" === typeof input.product && "string" === typeof input.code && "string" === typeof input.customer_account_code && Object.keys(input).every(key => {
|
|
1177
|
+
if (["license_key", "username", "password", "id_token", "variables", "hardware_id", "product", "code", "customer_account_code"].some(prop => key === prop))
|
|
992
1178
|
return true;
|
|
993
1179
|
const value = input[key];
|
|
994
1180
|
if (undefined === value)
|
|
995
1181
|
return true;
|
|
996
1182
|
return true;
|
|
997
1183
|
}); const $iu0 = input => (() => {
|
|
998
|
-
if ($
|
|
999
|
-
return $
|
|
1184
|
+
if ($io4(input))
|
|
1185
|
+
return $io4(input);
|
|
1186
|
+
if ($io3(input))
|
|
1187
|
+
return $io3(input);
|
|
1188
|
+
if ($io2(input))
|
|
1189
|
+
return $io2(input);
|
|
1000
1190
|
if ($io0(input))
|
|
1001
1191
|
return $io0(input);
|
|
1002
1192
|
return false;
|
|
@@ -1004,130 +1194,445 @@ let LicenseAPI = (() => {
|
|
|
1004
1194
|
path: _path + ".username",
|
|
1005
1195
|
expected: "(string | undefined)",
|
|
1006
1196
|
value: input.username
|
|
1007
|
-
}, _errorFactory)) && (undefined === input.
|
|
1008
|
-
path: _path + ".
|
|
1197
|
+
}, _errorFactory)) && (undefined === input.password || "string" === typeof input.password || $guard(_exceptionable, {
|
|
1198
|
+
path: _path + ".password",
|
|
1009
1199
|
expected: "(string | undefined)",
|
|
1010
|
-
value: input.
|
|
1200
|
+
value: input.password
|
|
1201
|
+
}, _errorFactory)) && (undefined === input.id_token || "string" === typeof input.id_token || $guard(_exceptionable, {
|
|
1202
|
+
path: _path + ".id_token",
|
|
1203
|
+
expected: "(string | undefined)",
|
|
1204
|
+
value: input.id_token
|
|
1205
|
+
}, _errorFactory)) && (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
|
|
1206
|
+
path: _path + ".code",
|
|
1207
|
+
expected: "(string | undefined)",
|
|
1208
|
+
value: input.code
|
|
1209
|
+
}, _errorFactory)) && (undefined === input.customer_account_code || "string" === typeof input.customer_account_code || $guard(_exceptionable, {
|
|
1210
|
+
path: _path + ".customer_account_code",
|
|
1211
|
+
expected: "(string | undefined)",
|
|
1212
|
+
value: input.customer_account_code
|
|
1213
|
+
}, _errorFactory)) && (undefined === input.variables || ("object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) || $guard(_exceptionable, {
|
|
1214
|
+
path: _path + ".variables",
|
|
1215
|
+
expected: "(__type.o1 | undefined)",
|
|
1216
|
+
value: input.variables
|
|
1217
|
+
}, _errorFactory)) && $ao1(input.variables, _path + ".variables", true && _exceptionable) || $guard(_exceptionable, {
|
|
1218
|
+
path: _path + ".variables",
|
|
1219
|
+
expected: "(__type.o1 | undefined)",
|
|
1220
|
+
value: input.variables
|
|
1221
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
1222
|
+
path: _path + ".license_key",
|
|
1223
|
+
expected: "string",
|
|
1224
|
+
value: input.license_key
|
|
1225
|
+
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
1226
|
+
path: _path + ".hardware_id",
|
|
1227
|
+
expected: "string",
|
|
1228
|
+
value: input.hardware_id
|
|
1011
1229
|
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
1012
1230
|
path: _path + ".product",
|
|
1013
1231
|
expected: "string",
|
|
1014
1232
|
value: input.product
|
|
1233
|
+
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1234
|
+
if (["username", "password", "id_token", "code", "customer_account_code", "variables", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
1235
|
+
return true;
|
|
1236
|
+
const value = input[key];
|
|
1237
|
+
if (undefined === value)
|
|
1238
|
+
return true;
|
|
1239
|
+
return true;
|
|
1240
|
+
})); const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1241
|
+
const value = input[key];
|
|
1242
|
+
if (undefined === value)
|
|
1243
|
+
return true;
|
|
1244
|
+
return true;
|
|
1245
|
+
}); const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
1246
|
+
path: _path + ".license_key",
|
|
1247
|
+
expected: "(string | undefined)",
|
|
1248
|
+
value: input.license_key
|
|
1249
|
+
}, _errorFactory)) && (undefined === input.id_token || "string" === typeof input.id_token || $guard(_exceptionable, {
|
|
1250
|
+
path: _path + ".id_token",
|
|
1251
|
+
expected: "(string | undefined)",
|
|
1252
|
+
value: input.id_token
|
|
1253
|
+
}, _errorFactory)) && (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
|
|
1254
|
+
path: _path + ".code",
|
|
1255
|
+
expected: "(string | undefined)",
|
|
1256
|
+
value: input.code
|
|
1257
|
+
}, _errorFactory)) && (undefined === input.customer_account_code || "string" === typeof input.customer_account_code || $guard(_exceptionable, {
|
|
1258
|
+
path: _path + ".customer_account_code",
|
|
1259
|
+
expected: "(string | undefined)",
|
|
1260
|
+
value: input.customer_account_code
|
|
1261
|
+
}, _errorFactory)) && (undefined === input.variables || ("object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) || $guard(_exceptionable, {
|
|
1262
|
+
path: _path + ".variables",
|
|
1263
|
+
expected: "(__type.o1 | undefined)",
|
|
1264
|
+
value: input.variables
|
|
1265
|
+
}, _errorFactory)) && $ao1(input.variables, _path + ".variables", true && _exceptionable) || $guard(_exceptionable, {
|
|
1266
|
+
path: _path + ".variables",
|
|
1267
|
+
expected: "(__type.o1 | undefined)",
|
|
1268
|
+
value: input.variables
|
|
1269
|
+
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
1270
|
+
path: _path + ".username",
|
|
1271
|
+
expected: "string",
|
|
1272
|
+
value: input.username
|
|
1273
|
+
}, _errorFactory)) && ("string" === typeof input.password || $guard(_exceptionable, {
|
|
1274
|
+
path: _path + ".password",
|
|
1275
|
+
expected: "string",
|
|
1276
|
+
value: input.password
|
|
1015
1277
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
1016
1278
|
path: _path + ".hardware_id",
|
|
1017
1279
|
expected: "string",
|
|
1018
1280
|
value: input.hardware_id
|
|
1019
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
1020
|
-
path: _path + ".
|
|
1281
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
1282
|
+
path: _path + ".product",
|
|
1021
1283
|
expected: "string",
|
|
1022
|
-
value: input.
|
|
1284
|
+
value: input.product
|
|
1023
1285
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1024
|
-
if (["
|
|
1286
|
+
if (["license_key", "id_token", "code", "customer_account_code", "variables", "username", "password", "hardware_id", "product"].some(prop => key === prop))
|
|
1025
1287
|
return true;
|
|
1026
1288
|
const value = input[key];
|
|
1027
1289
|
if (undefined === value)
|
|
1028
1290
|
return true;
|
|
1029
1291
|
return true;
|
|
1030
|
-
})); const $
|
|
1292
|
+
})); const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
1031
1293
|
path: _path + ".license_key",
|
|
1032
1294
|
expected: "(string | undefined)",
|
|
1033
1295
|
value: input.license_key
|
|
1034
|
-
}, _errorFactory)) && (undefined === input.
|
|
1035
|
-
path: _path + ".
|
|
1296
|
+
}, _errorFactory)) && (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
1297
|
+
path: _path + ".username",
|
|
1036
1298
|
expected: "(string | undefined)",
|
|
1037
|
-
value: input.
|
|
1299
|
+
value: input.username
|
|
1300
|
+
}, _errorFactory)) && (undefined === input.password || "string" === typeof input.password || $guard(_exceptionable, {
|
|
1301
|
+
path: _path + ".password",
|
|
1302
|
+
expected: "(string | undefined)",
|
|
1303
|
+
value: input.password
|
|
1304
|
+
}, _errorFactory)) && (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
|
|
1305
|
+
path: _path + ".code",
|
|
1306
|
+
expected: "(string | undefined)",
|
|
1307
|
+
value: input.code
|
|
1308
|
+
}, _errorFactory)) && (undefined === input.variables || ("object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) || $guard(_exceptionable, {
|
|
1309
|
+
path: _path + ".variables",
|
|
1310
|
+
expected: "(__type.o1 | undefined)",
|
|
1311
|
+
value: input.variables
|
|
1312
|
+
}, _errorFactory)) && $ao1(input.variables, _path + ".variables", true && _exceptionable) || $guard(_exceptionable, {
|
|
1313
|
+
path: _path + ".variables",
|
|
1314
|
+
expected: "(__type.o1 | undefined)",
|
|
1315
|
+
value: input.variables
|
|
1316
|
+
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
1317
|
+
path: _path + ".hardware_id",
|
|
1318
|
+
expected: "string",
|
|
1319
|
+
value: input.hardware_id
|
|
1038
1320
|
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
1039
1321
|
path: _path + ".product",
|
|
1040
1322
|
expected: "string",
|
|
1041
1323
|
value: input.product
|
|
1042
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
1043
|
-
path: _path + ".
|
|
1324
|
+
}, _errorFactory)) && ("string" === typeof input.id_token || $guard(_exceptionable, {
|
|
1325
|
+
path: _path + ".id_token",
|
|
1326
|
+
expected: "string",
|
|
1327
|
+
value: input.id_token
|
|
1328
|
+
}, _errorFactory)) && ("string" === typeof input.customer_account_code || $guard(_exceptionable, {
|
|
1329
|
+
path: _path + ".customer_account_code",
|
|
1044
1330
|
expected: "string",
|
|
1331
|
+
value: input.customer_account_code
|
|
1332
|
+
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1333
|
+
if (["license_key", "username", "password", "code", "variables", "hardware_id", "product", "id_token", "customer_account_code"].some(prop => key === prop))
|
|
1334
|
+
return true;
|
|
1335
|
+
const value = input[key];
|
|
1336
|
+
if (undefined === value)
|
|
1337
|
+
return true;
|
|
1338
|
+
return true;
|
|
1339
|
+
})); const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
1340
|
+
path: _path + ".license_key",
|
|
1341
|
+
expected: "(string | undefined)",
|
|
1342
|
+
value: input.license_key
|
|
1343
|
+
}, _errorFactory)) && (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
1344
|
+
path: _path + ".username",
|
|
1345
|
+
expected: "(string | undefined)",
|
|
1045
1346
|
value: input.username
|
|
1347
|
+
}, _errorFactory)) && (undefined === input.password || "string" === typeof input.password || $guard(_exceptionable, {
|
|
1348
|
+
path: _path + ".password",
|
|
1349
|
+
expected: "(string | undefined)",
|
|
1350
|
+
value: input.password
|
|
1351
|
+
}, _errorFactory)) && (undefined === input.id_token || "string" === typeof input.id_token || $guard(_exceptionable, {
|
|
1352
|
+
path: _path + ".id_token",
|
|
1353
|
+
expected: "(string | undefined)",
|
|
1354
|
+
value: input.id_token
|
|
1355
|
+
}, _errorFactory)) && (undefined === input.variables || ("object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) || $guard(_exceptionable, {
|
|
1356
|
+
path: _path + ".variables",
|
|
1357
|
+
expected: "(__type.o1 | undefined)",
|
|
1358
|
+
value: input.variables
|
|
1359
|
+
}, _errorFactory)) && $ao1(input.variables, _path + ".variables", true && _exceptionable) || $guard(_exceptionable, {
|
|
1360
|
+
path: _path + ".variables",
|
|
1361
|
+
expected: "(__type.o1 | undefined)",
|
|
1362
|
+
value: input.variables
|
|
1046
1363
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
1047
1364
|
path: _path + ".hardware_id",
|
|
1048
1365
|
expected: "string",
|
|
1049
1366
|
value: input.hardware_id
|
|
1367
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
1368
|
+
path: _path + ".product",
|
|
1369
|
+
expected: "string",
|
|
1370
|
+
value: input.product
|
|
1371
|
+
}, _errorFactory)) && ("string" === typeof input.code || $guard(_exceptionable, {
|
|
1372
|
+
path: _path + ".code",
|
|
1373
|
+
expected: "string",
|
|
1374
|
+
value: input.code
|
|
1375
|
+
}, _errorFactory)) && ("string" === typeof input.customer_account_code || $guard(_exceptionable, {
|
|
1376
|
+
path: _path + ".customer_account_code",
|
|
1377
|
+
expected: "string",
|
|
1378
|
+
value: input.customer_account_code
|
|
1050
1379
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1051
|
-
if (["license_key", "
|
|
1380
|
+
if (["license_key", "username", "password", "id_token", "variables", "hardware_id", "product", "code", "customer_account_code"].some(prop => key === prop))
|
|
1052
1381
|
return true;
|
|
1053
1382
|
const value = input[key];
|
|
1054
1383
|
if (undefined === value)
|
|
1055
1384
|
return true;
|
|
1056
1385
|
return true;
|
|
1057
|
-
})); const $au0 = (input, _path, _exceptionable = true) => $
|
|
1386
|
+
})); const $au0 = (input, _path, _exceptionable = true) => $ao4(input, _path, false && _exceptionable) || $ao3(input, _path, false && _exceptionable) || $ao2(input, _path, false && _exceptionable) || $ao0(input, _path, false && _exceptionable) || $guard(_exceptionable, {
|
|
1058
1387
|
path: _path,
|
|
1059
|
-
expected: "(__type.
|
|
1388
|
+
expected: "(__type.o4 | __type.o3 | __type.o2 | __type)",
|
|
1060
1389
|
value: input
|
|
1061
1390
|
}, _errorFactory); const __is = input => "object" === typeof input && null !== input && $iu0(input); let _errorFactory; return (input, errorFactory) => {
|
|
1062
1391
|
if (false === __is(input)) {
|
|
1063
1392
|
_errorFactory = errorFactory;
|
|
1064
1393
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $guard(true, {
|
|
1065
1394
|
path: _path + "",
|
|
1066
|
-
expected: "(__type | __type.
|
|
1395
|
+
expected: "(__type | __type.o2 | __type.o3 | __type.o4)",
|
|
1067
1396
|
value: input
|
|
1068
1397
|
}, _errorFactory)) && $au0(input, _path + "", true) || $guard(true, {
|
|
1069
1398
|
path: _path + "",
|
|
1070
|
-
expected: "(__type | __type.
|
|
1399
|
+
expected: "(__type | __type.o2 | __type.o3 | __type.o4)",
|
|
1071
1400
|
value: input
|
|
1072
1401
|
}, _errorFactory))(input, "$input", true);
|
|
1073
1402
|
}
|
|
1074
1403
|
return input;
|
|
1075
1404
|
}; })()(payload);
|
|
1076
|
-
const { response } = yield this.service.postRequest('
|
|
1077
|
-
|
|
1405
|
+
const { headers, response } = yield this.service.postRequest('activate_bundle', payload);
|
|
1406
|
+
for (const license of response) {
|
|
1407
|
+
(0, common_1.checkSignatureV1)(this.config.publicKey, license, payload);
|
|
1408
|
+
}
|
|
1409
|
+
(0, common_1.checkSignatureV2)(this.config.publicKey, response, (0, common_1.getHeaderString)(headers, 'LicenseSignature'));
|
|
1410
|
+
return response;
|
|
1078
1411
|
});
|
|
1079
1412
|
}
|
|
1080
1413
|
;
|
|
1081
|
-
|
|
1414
|
+
deactivateLicense(payload) {
|
|
1082
1415
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1083
|
-
(() => { const $guard = typia_1.default.assert.guard; const
|
|
1416
|
+
(() => { const $guard = typia_1.default.assert.guard; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product; const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.product; const $iu0 = input => (() => {
|
|
1417
|
+
if ($io1(input))
|
|
1418
|
+
return $io1(input);
|
|
1419
|
+
if ($io0(input))
|
|
1420
|
+
return $io0(input);
|
|
1421
|
+
return false;
|
|
1422
|
+
})(); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
1423
|
+
path: _path + ".username",
|
|
1424
|
+
expected: "(string | undefined)",
|
|
1425
|
+
value: input.username
|
|
1426
|
+
}, _errorFactory)) && (undefined === input.bundle_code || "string" === typeof input.bundle_code || $guard(_exceptionable, {
|
|
1427
|
+
path: _path + ".bundle_code",
|
|
1428
|
+
expected: "(string | undefined)",
|
|
1429
|
+
value: input.bundle_code
|
|
1430
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
1431
|
+
path: _path + ".license_key",
|
|
1432
|
+
expected: "string",
|
|
1433
|
+
value: input.license_key
|
|
1434
|
+
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
1435
|
+
path: _path + ".hardware_id",
|
|
1436
|
+
expected: "string",
|
|
1437
|
+
value: input.hardware_id
|
|
1438
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
1439
|
+
path: _path + ".product",
|
|
1440
|
+
expected: "string",
|
|
1441
|
+
value: input.product
|
|
1442
|
+
}, _errorFactory)); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
1443
|
+
path: _path + ".license_key",
|
|
1444
|
+
expected: "(string | undefined)",
|
|
1445
|
+
value: input.license_key
|
|
1446
|
+
}, _errorFactory)) && (undefined === input.bundle_code || "string" === typeof input.bundle_code || $guard(_exceptionable, {
|
|
1447
|
+
path: _path + ".bundle_code",
|
|
1448
|
+
expected: "(string | undefined)",
|
|
1449
|
+
value: input.bundle_code
|
|
1450
|
+
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
1451
|
+
path: _path + ".username",
|
|
1452
|
+
expected: "string",
|
|
1453
|
+
value: input.username
|
|
1454
|
+
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
1455
|
+
path: _path + ".hardware_id",
|
|
1456
|
+
expected: "string",
|
|
1457
|
+
value: input.hardware_id
|
|
1458
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
1459
|
+
path: _path + ".product",
|
|
1460
|
+
expected: "string",
|
|
1461
|
+
value: input.product
|
|
1462
|
+
}, _errorFactory)); const $au0 = (input, _path, _exceptionable = true) => $ao1(input, _path, false && _exceptionable) || $ao0(input, _path, false && _exceptionable) || $guard(_exceptionable, {
|
|
1463
|
+
path: _path,
|
|
1464
|
+
expected: "(__type.o1 | __type)",
|
|
1465
|
+
value: input
|
|
1466
|
+
}, _errorFactory); const __is = input => "object" === typeof input && null !== input && $iu0(input); let _errorFactory; return (input, errorFactory) => {
|
|
1084
1467
|
if (false === __is(input)) {
|
|
1085
1468
|
_errorFactory = errorFactory;
|
|
1086
|
-
((input, _path, _exceptionable = true) => "
|
|
1469
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $guard(true, {
|
|
1087
1470
|
path: _path + "",
|
|
1088
|
-
expected: "
|
|
1471
|
+
expected: "(__type | __type.o1)",
|
|
1089
1472
|
value: input
|
|
1090
|
-
}, _errorFactory))(input, "
|
|
1091
|
-
}
|
|
1092
|
-
return input;
|
|
1093
|
-
}; })()(payload);
|
|
1094
|
-
const { response } = yield this.service.postRequest('activate_offline', payload, { 'Content-Type': 'text/plain' });
|
|
1095
|
-
(0, common_1.checkSignatureV1)(this.config.publicKey, response, this.decodeOfflineActivationPayload(payload));
|
|
1096
|
-
const responsePartial = response;
|
|
1097
|
-
const signatureV2 = response.license_signature_v2;
|
|
1098
|
-
delete responsePartial.license_signature;
|
|
1099
|
-
delete responsePartial.license_signature_v2;
|
|
1100
|
-
(0, common_1.checkSignatureV2)(this.config.publicKey, responsePartial, signatureV2);
|
|
1101
|
-
return response;
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
;
|
|
1105
|
-
deactivateOffline(payload) {
|
|
1106
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1107
|
-
(() => { const $guard = typia_1.default.assert.guard; const __is = input => "string" === typeof input; let _errorFactory; return (input, errorFactory) => {
|
|
1108
|
-
if (false === __is(input)) {
|
|
1109
|
-
_errorFactory = errorFactory;
|
|
1110
|
-
((input, _path, _exceptionable = true) => "string" === typeof input || $guard(true, {
|
|
1473
|
+
}, _errorFactory)) && $au0(input, _path + "", true) || $guard(true, {
|
|
1111
1474
|
path: _path + "",
|
|
1112
|
-
expected: "
|
|
1475
|
+
expected: "(__type | __type.o1)",
|
|
1113
1476
|
value: input
|
|
1114
1477
|
}, _errorFactory))(input, "$input", true);
|
|
1115
1478
|
}
|
|
1116
1479
|
return input;
|
|
1117
1480
|
}; })()(payload);
|
|
1118
|
-
const { response } = yield this.service.postRequest('
|
|
1481
|
+
const { response } = yield this.service.postRequest('deactivate_license', payload);
|
|
1119
1482
|
return (0, common_1.assertResponseString)(response, 'license_deactivated');
|
|
1120
1483
|
});
|
|
1121
1484
|
}
|
|
1122
1485
|
;
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1486
|
+
deactivateBundle(payload) {
|
|
1487
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1488
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
1489
|
+
if (["username", "bundle_code", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
1490
|
+
return true;
|
|
1491
|
+
const value = input[key];
|
|
1492
|
+
if (undefined === value)
|
|
1493
|
+
return true;
|
|
1494
|
+
return true;
|
|
1495
|
+
}); const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
1496
|
+
if (["license_key", "bundle_code", "username", "hardware_id", "product"].some(prop => key === prop))
|
|
1497
|
+
return true;
|
|
1498
|
+
const value = input[key];
|
|
1499
|
+
if (undefined === value)
|
|
1500
|
+
return true;
|
|
1501
|
+
return true;
|
|
1502
|
+
}); const $iu0 = input => (() => {
|
|
1503
|
+
if ($io1(input))
|
|
1504
|
+
return $io1(input);
|
|
1505
|
+
if ($io0(input))
|
|
1506
|
+
return $io0(input);
|
|
1507
|
+
return false;
|
|
1508
|
+
})(); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
1509
|
+
path: _path + ".username",
|
|
1510
|
+
expected: "(string | undefined)",
|
|
1511
|
+
value: input.username
|
|
1512
|
+
}, _errorFactory)) && (undefined === input.bundle_code || "string" === typeof input.bundle_code || $guard(_exceptionable, {
|
|
1513
|
+
path: _path + ".bundle_code",
|
|
1514
|
+
expected: "(string | undefined)",
|
|
1515
|
+
value: input.bundle_code
|
|
1516
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
1517
|
+
path: _path + ".license_key",
|
|
1518
|
+
expected: "string",
|
|
1519
|
+
value: input.license_key
|
|
1520
|
+
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
1521
|
+
path: _path + ".hardware_id",
|
|
1522
|
+
expected: "string",
|
|
1523
|
+
value: input.hardware_id
|
|
1524
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
1525
|
+
path: _path + ".product",
|
|
1526
|
+
expected: "string",
|
|
1527
|
+
value: input.product
|
|
1528
|
+
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1529
|
+
if (["username", "bundle_code", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
1530
|
+
return true;
|
|
1531
|
+
const value = input[key];
|
|
1532
|
+
if (undefined === value)
|
|
1533
|
+
return true;
|
|
1534
|
+
return true;
|
|
1535
|
+
})); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
1536
|
+
path: _path + ".license_key",
|
|
1537
|
+
expected: "(string | undefined)",
|
|
1538
|
+
value: input.license_key
|
|
1539
|
+
}, _errorFactory)) && (undefined === input.bundle_code || "string" === typeof input.bundle_code || $guard(_exceptionable, {
|
|
1540
|
+
path: _path + ".bundle_code",
|
|
1541
|
+
expected: "(string | undefined)",
|
|
1542
|
+
value: input.bundle_code
|
|
1543
|
+
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
1544
|
+
path: _path + ".username",
|
|
1545
|
+
expected: "string",
|
|
1546
|
+
value: input.username
|
|
1547
|
+
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
1548
|
+
path: _path + ".hardware_id",
|
|
1549
|
+
expected: "string",
|
|
1550
|
+
value: input.hardware_id
|
|
1551
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
1552
|
+
path: _path + ".product",
|
|
1553
|
+
expected: "string",
|
|
1554
|
+
value: input.product
|
|
1555
|
+
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1556
|
+
if (["license_key", "bundle_code", "username", "hardware_id", "product"].some(prop => key === prop))
|
|
1557
|
+
return true;
|
|
1558
|
+
const value = input[key];
|
|
1559
|
+
if (undefined === value)
|
|
1560
|
+
return true;
|
|
1561
|
+
return true;
|
|
1562
|
+
})); const $au0 = (input, _path, _exceptionable = true) => $ao1(input, _path, false && _exceptionable) || $ao0(input, _path, false && _exceptionable) || $guard(_exceptionable, {
|
|
1563
|
+
path: _path,
|
|
1564
|
+
expected: "(__type.o1 | __type)",
|
|
1565
|
+
value: input
|
|
1566
|
+
}, _errorFactory); const __is = input => "object" === typeof input && null !== input && $iu0(input); let _errorFactory; return (input, errorFactory) => {
|
|
1567
|
+
if (false === __is(input)) {
|
|
1568
|
+
_errorFactory = errorFactory;
|
|
1569
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $guard(true, {
|
|
1570
|
+
path: _path + "",
|
|
1571
|
+
expected: "(__type | __type.o1)",
|
|
1572
|
+
value: input
|
|
1573
|
+
}, _errorFactory)) && $au0(input, _path + "", true) || $guard(true, {
|
|
1574
|
+
path: _path + "",
|
|
1575
|
+
expected: "(__type | __type.o1)",
|
|
1576
|
+
value: input
|
|
1577
|
+
}, _errorFactory))(input, "$input", true);
|
|
1578
|
+
}
|
|
1579
|
+
return input;
|
|
1580
|
+
}; })()(payload);
|
|
1581
|
+
const { response } = yield this.service.postRequest('deactivate_bundle', payload);
|
|
1582
|
+
return (0, common_1.assertResponseString)(response, 'license_deactivated');
|
|
1583
|
+
});
|
|
1584
|
+
}
|
|
1585
|
+
;
|
|
1586
|
+
activateOffline(payload) {
|
|
1587
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1588
|
+
(() => { const $guard = typia_1.default.assert.guard; const __is = input => "string" === typeof input; let _errorFactory; return (input, errorFactory) => {
|
|
1589
|
+
if (false === __is(input)) {
|
|
1590
|
+
_errorFactory = errorFactory;
|
|
1591
|
+
((input, _path, _exceptionable = true) => "string" === typeof input || $guard(true, {
|
|
1592
|
+
path: _path + "",
|
|
1593
|
+
expected: "string",
|
|
1594
|
+
value: input
|
|
1595
|
+
}, _errorFactory))(input, "$input", true);
|
|
1596
|
+
}
|
|
1597
|
+
return input;
|
|
1598
|
+
}; })()(payload);
|
|
1599
|
+
const { response } = yield this.service.postRequest('activate_offline', payload, { 'Content-Type': 'text/plain' });
|
|
1600
|
+
(0, common_1.checkSignatureV1)(this.config.publicKey, response, this.decodeOfflineActivationPayload(payload));
|
|
1601
|
+
const responsePartial = response;
|
|
1602
|
+
const signatureV2 = response.license_signature_v2;
|
|
1603
|
+
delete responsePartial.license_signature;
|
|
1604
|
+
delete responsePartial.license_signature_v2;
|
|
1605
|
+
(0, common_1.checkSignatureV2)(this.config.publicKey, responsePartial, signatureV2);
|
|
1606
|
+
return response;
|
|
1607
|
+
});
|
|
1608
|
+
}
|
|
1609
|
+
;
|
|
1610
|
+
deactivateOffline(payload) {
|
|
1611
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1612
|
+
(() => { const $guard = typia_1.default.assert.guard; const __is = input => "string" === typeof input; let _errorFactory; return (input, errorFactory) => {
|
|
1613
|
+
if (false === __is(input)) {
|
|
1614
|
+
_errorFactory = errorFactory;
|
|
1615
|
+
((input, _path, _exceptionable = true) => "string" === typeof input || $guard(true, {
|
|
1616
|
+
path: _path + "",
|
|
1617
|
+
expected: "string",
|
|
1618
|
+
value: input
|
|
1619
|
+
}, _errorFactory))(input, "$input", true);
|
|
1620
|
+
}
|
|
1621
|
+
return input;
|
|
1622
|
+
}; })()(payload);
|
|
1623
|
+
const { response } = yield this.service.postRequest('deactivate_offline', payload, { 'Content-Type': 'text/plain' });
|
|
1624
|
+
return (0, common_1.assertResponseString)(response, 'license_deactivated');
|
|
1625
|
+
});
|
|
1626
|
+
}
|
|
1627
|
+
;
|
|
1628
|
+
checkLicenseOffline(payloadBase64) {
|
|
1629
|
+
let payloadObject;
|
|
1630
|
+
try {
|
|
1631
|
+
const payloadString = Buffer.from(payloadBase64.trim(), 'base64').toString();
|
|
1632
|
+
payloadObject = JSON.parse(payloadString);
|
|
1633
|
+
if (!payloadObject)
|
|
1634
|
+
throw new Error();
|
|
1635
|
+
}
|
|
1131
1636
|
catch (e) {
|
|
1132
1637
|
throw new Error('Invalid License File contents');
|
|
1133
1638
|
}
|
|
@@ -1140,35 +1645,41 @@ let LicenseAPI = (() => {
|
|
|
1140
1645
|
return payloadObject;
|
|
1141
1646
|
}
|
|
1142
1647
|
;
|
|
1648
|
+
checkBundleOffline(payloadBase64) {
|
|
1649
|
+
let payloadObject;
|
|
1650
|
+
try {
|
|
1651
|
+
const payloadString = Buffer.from(payloadBase64.trim(), 'base64').toString();
|
|
1652
|
+
payloadObject = JSON.parse(payloadString);
|
|
1653
|
+
if (!payloadObject)
|
|
1654
|
+
throw new Error();
|
|
1655
|
+
}
|
|
1656
|
+
catch (e) {
|
|
1657
|
+
throw new Error('Invalid License File contents');
|
|
1658
|
+
}
|
|
1659
|
+
for (const product in payloadObject) {
|
|
1660
|
+
(0, common_1.checkSignatureV1)(this.config.publicKey, payloadObject[product], payloadObject[product]);
|
|
1661
|
+
(0, common_1.checkOfflineSignature)(this.config, payloadObject[product], payloadObject[product].offline_signature);
|
|
1662
|
+
}
|
|
1663
|
+
return payloadObject;
|
|
1664
|
+
}
|
|
1665
|
+
;
|
|
1143
1666
|
getTrialKey(payload) {
|
|
1144
1667
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1145
|
-
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.
|
|
1146
|
-
if (["
|
|
1668
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.license_policy || "string" === typeof input.license_policy) && (undefined === input.first_name || "string" === typeof input.first_name) && (undefined === input.last_name || "string" === typeof input.last_name) && (undefined === input.phone || "string" === typeof input.phone) && (undefined === input.address || "string" === typeof input.address) && (undefined === input.postcode || "string" === typeof input.postcode) && (undefined === input.state || "string" === typeof input.state) && (undefined === input.country || "string" === typeof input.country) && (undefined === input.city || "string" === typeof input.city) && (undefined === input.reference || "string" === typeof input.reference) && (undefined === input.company_name || "string" === typeof input.company_name) && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
1669
|
+
if (["sdk_ver", "email", "license_policy", "first_name", "last_name", "phone", "address", "postcode", "state", "country", "city", "reference", "company_name", "hardware_id", "product"].some(prop => key === prop))
|
|
1147
1670
|
return true;
|
|
1148
1671
|
const value = input[key];
|
|
1149
1672
|
if (undefined === value)
|
|
1150
1673
|
return true;
|
|
1151
1674
|
return true;
|
|
1152
|
-
}); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
1153
|
-
path: _path + ".
|
|
1154
|
-
expected: "(string | undefined)",
|
|
1155
|
-
value: input.state
|
|
1156
|
-
}, _errorFactory)) && (undefined === input.address || "string" === typeof input.address || $guard(_exceptionable, {
|
|
1157
|
-
path: _path + ".address",
|
|
1158
|
-
expected: "(string | undefined)",
|
|
1159
|
-
value: input.address
|
|
1160
|
-
}, _errorFactory)) && (undefined === input.country || "string" === typeof input.country || $guard(_exceptionable, {
|
|
1161
|
-
path: _path + ".country",
|
|
1675
|
+
}); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.sdk_ver || "string" === typeof input.sdk_ver || $guard(_exceptionable, {
|
|
1676
|
+
path: _path + ".sdk_ver",
|
|
1162
1677
|
expected: "(string | undefined)",
|
|
1163
|
-
value: input.
|
|
1678
|
+
value: input.sdk_ver
|
|
1164
1679
|
}, _errorFactory)) && (undefined === input.email || "string" === typeof input.email || $guard(_exceptionable, {
|
|
1165
1680
|
path: _path + ".email",
|
|
1166
1681
|
expected: "(string | undefined)",
|
|
1167
1682
|
value: input.email
|
|
1168
|
-
}, _errorFactory)) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver || $guard(_exceptionable, {
|
|
1169
|
-
path: _path + ".sdk_ver",
|
|
1170
|
-
expected: "(string | undefined)",
|
|
1171
|
-
value: input.sdk_ver
|
|
1172
1683
|
}, _errorFactory)) && (undefined === input.license_policy || "string" === typeof input.license_policy || $guard(_exceptionable, {
|
|
1173
1684
|
path: _path + ".license_policy",
|
|
1174
1685
|
expected: "(string | undefined)",
|
|
@@ -1185,10 +1696,22 @@ let LicenseAPI = (() => {
|
|
|
1185
1696
|
path: _path + ".phone",
|
|
1186
1697
|
expected: "(string | undefined)",
|
|
1187
1698
|
value: input.phone
|
|
1699
|
+
}, _errorFactory)) && (undefined === input.address || "string" === typeof input.address || $guard(_exceptionable, {
|
|
1700
|
+
path: _path + ".address",
|
|
1701
|
+
expected: "(string | undefined)",
|
|
1702
|
+
value: input.address
|
|
1188
1703
|
}, _errorFactory)) && (undefined === input.postcode || "string" === typeof input.postcode || $guard(_exceptionable, {
|
|
1189
1704
|
path: _path + ".postcode",
|
|
1190
1705
|
expected: "(string | undefined)",
|
|
1191
1706
|
value: input.postcode
|
|
1707
|
+
}, _errorFactory)) && (undefined === input.state || "string" === typeof input.state || $guard(_exceptionable, {
|
|
1708
|
+
path: _path + ".state",
|
|
1709
|
+
expected: "(string | undefined)",
|
|
1710
|
+
value: input.state
|
|
1711
|
+
}, _errorFactory)) && (undefined === input.country || "string" === typeof input.country || $guard(_exceptionable, {
|
|
1712
|
+
path: _path + ".country",
|
|
1713
|
+
expected: "(string | undefined)",
|
|
1714
|
+
value: input.country
|
|
1192
1715
|
}, _errorFactory)) && (undefined === input.city || "string" === typeof input.city || $guard(_exceptionable, {
|
|
1193
1716
|
path: _path + ".city",
|
|
1194
1717
|
expected: "(string | undefined)",
|
|
@@ -1201,16 +1724,16 @@ let LicenseAPI = (() => {
|
|
|
1201
1724
|
path: _path + ".company_name",
|
|
1202
1725
|
expected: "(string | undefined)",
|
|
1203
1726
|
value: input.company_name
|
|
1204
|
-
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
1205
|
-
path: _path + ".product",
|
|
1206
|
-
expected: "string",
|
|
1207
|
-
value: input.product
|
|
1208
1727
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
1209
1728
|
path: _path + ".hardware_id",
|
|
1210
1729
|
expected: "string",
|
|
1211
1730
|
value: input.hardware_id
|
|
1731
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
1732
|
+
path: _path + ".product",
|
|
1733
|
+
expected: "string",
|
|
1734
|
+
value: input.product
|
|
1212
1735
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1213
|
-
if (["
|
|
1736
|
+
if (["sdk_ver", "email", "license_policy", "first_name", "last_name", "phone", "address", "postcode", "state", "country", "city", "reference", "company_name", "hardware_id", "product"].some(prop => key === prop))
|
|
1214
1737
|
return true;
|
|
1215
1738
|
const value = input[key];
|
|
1216
1739
|
if (undefined === value)
|
|
@@ -1239,22 +1762,22 @@ let LicenseAPI = (() => {
|
|
|
1239
1762
|
;
|
|
1240
1763
|
getUserLicenses(payload) {
|
|
1241
1764
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1242
|
-
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.
|
|
1243
|
-
if (["
|
|
1765
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.product || "string" === typeof input.product) && (undefined === input.id_token || "string" === typeof input.id_token) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.customer_account_code || "string" === typeof input.customer_account_code) && "string" === typeof input.username && "string" === typeof input.password && Object.keys(input).every(key => {
|
|
1766
|
+
if (["product", "id_token", "code", "customer_account_code", "username", "password"].some(prop => key === prop))
|
|
1244
1767
|
return true;
|
|
1245
1768
|
const value = input[key];
|
|
1246
1769
|
if (undefined === value)
|
|
1247
1770
|
return true;
|
|
1248
1771
|
return true;
|
|
1249
|
-
}); const $io1 = input => (undefined === input.
|
|
1250
|
-
if (["
|
|
1772
|
+
}); const $io1 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.product || "string" === typeof input.product) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.customer_account_code || "string" === typeof input.customer_account_code) && "string" === typeof input.id_token && Object.keys(input).every(key => {
|
|
1773
|
+
if (["username", "password", "product", "code", "customer_account_code", "id_token"].some(prop => key === prop))
|
|
1251
1774
|
return true;
|
|
1252
1775
|
const value = input[key];
|
|
1253
1776
|
if (undefined === value)
|
|
1254
1777
|
return true;
|
|
1255
1778
|
return true;
|
|
1256
|
-
}); const $io2 = input => (undefined === input.
|
|
1257
|
-
if (["
|
|
1779
|
+
}); const $io2 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.product || "string" === typeof input.product) && (undefined === input.id_token || "string" === typeof input.id_token) && (undefined === input.customer_account_code || "string" === typeof input.customer_account_code) && "string" === typeof input.code && Object.keys(input).every(key => {
|
|
1780
|
+
if (["username", "password", "product", "id_token", "customer_account_code", "code"].some(prop => key === prop))
|
|
1258
1781
|
return true;
|
|
1259
1782
|
const value = input[key];
|
|
1260
1783
|
if (undefined === value)
|
|
@@ -1268,11 +1791,7 @@ let LicenseAPI = (() => {
|
|
|
1268
1791
|
if ($io0(input))
|
|
1269
1792
|
return $io0(input);
|
|
1270
1793
|
return false;
|
|
1271
|
-
})(); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
1272
|
-
path: _path + ".code",
|
|
1273
|
-
expected: "(string | undefined)",
|
|
1274
|
-
value: input.code
|
|
1275
|
-
}, _errorFactory)) && (undefined === input.product || "string" === typeof input.product || $guard(_exceptionable, {
|
|
1794
|
+
})(); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.product || "string" === typeof input.product || $guard(_exceptionable, {
|
|
1276
1795
|
path: _path + ".product",
|
|
1277
1796
|
expected: "(string | undefined)",
|
|
1278
1797
|
value: input.product
|
|
@@ -1280,6 +1799,10 @@ let LicenseAPI = (() => {
|
|
|
1280
1799
|
path: _path + ".id_token",
|
|
1281
1800
|
expected: "(string | undefined)",
|
|
1282
1801
|
value: input.id_token
|
|
1802
|
+
}, _errorFactory)) && (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
|
|
1803
|
+
path: _path + ".code",
|
|
1804
|
+
expected: "(string | undefined)",
|
|
1805
|
+
value: input.code
|
|
1283
1806
|
}, _errorFactory)) && (undefined === input.customer_account_code || "string" === typeof input.customer_account_code || $guard(_exceptionable, {
|
|
1284
1807
|
path: _path + ".customer_account_code",
|
|
1285
1808
|
expected: "(string | undefined)",
|
|
@@ -1293,21 +1816,13 @@ let LicenseAPI = (() => {
|
|
|
1293
1816
|
expected: "string",
|
|
1294
1817
|
value: input.password
|
|
1295
1818
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1296
|
-
if (["
|
|
1819
|
+
if (["product", "id_token", "code", "customer_account_code", "username", "password"].some(prop => key === prop))
|
|
1297
1820
|
return true;
|
|
1298
1821
|
const value = input[key];
|
|
1299
1822
|
if (undefined === value)
|
|
1300
1823
|
return true;
|
|
1301
1824
|
return true;
|
|
1302
|
-
})); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
1303
|
-
path: _path + ".code",
|
|
1304
|
-
expected: "(string | undefined)",
|
|
1305
|
-
value: input.code
|
|
1306
|
-
}, _errorFactory)) && (undefined === input.product || "string" === typeof input.product || $guard(_exceptionable, {
|
|
1307
|
-
path: _path + ".product",
|
|
1308
|
-
expected: "(string | undefined)",
|
|
1309
|
-
value: input.product
|
|
1310
|
-
}, _errorFactory)) && (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
1825
|
+
})); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
1311
1826
|
path: _path + ".username",
|
|
1312
1827
|
expected: "(string | undefined)",
|
|
1313
1828
|
value: input.username
|
|
@@ -1315,6 +1830,14 @@ let LicenseAPI = (() => {
|
|
|
1315
1830
|
path: _path + ".password",
|
|
1316
1831
|
expected: "(string | undefined)",
|
|
1317
1832
|
value: input.password
|
|
1833
|
+
}, _errorFactory)) && (undefined === input.product || "string" === typeof input.product || $guard(_exceptionable, {
|
|
1834
|
+
path: _path + ".product",
|
|
1835
|
+
expected: "(string | undefined)",
|
|
1836
|
+
value: input.product
|
|
1837
|
+
}, _errorFactory)) && (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
|
|
1838
|
+
path: _path + ".code",
|
|
1839
|
+
expected: "(string | undefined)",
|
|
1840
|
+
value: input.code
|
|
1318
1841
|
}, _errorFactory)) && (undefined === input.customer_account_code || "string" === typeof input.customer_account_code || $guard(_exceptionable, {
|
|
1319
1842
|
path: _path + ".customer_account_code",
|
|
1320
1843
|
expected: "(string | undefined)",
|
|
@@ -1324,17 +1847,13 @@ let LicenseAPI = (() => {
|
|
|
1324
1847
|
expected: "string",
|
|
1325
1848
|
value: input.id_token
|
|
1326
1849
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1327
|
-
if (["
|
|
1850
|
+
if (["username", "password", "product", "code", "customer_account_code", "id_token"].some(prop => key === prop))
|
|
1328
1851
|
return true;
|
|
1329
1852
|
const value = input[key];
|
|
1330
1853
|
if (undefined === value)
|
|
1331
1854
|
return true;
|
|
1332
1855
|
return true;
|
|
1333
|
-
})); const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
1334
|
-
path: _path + ".product",
|
|
1335
|
-
expected: "(string | undefined)",
|
|
1336
|
-
value: input.product
|
|
1337
|
-
}, _errorFactory)) && (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
1856
|
+
})); const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
1338
1857
|
path: _path + ".username",
|
|
1339
1858
|
expected: "(string | undefined)",
|
|
1340
1859
|
value: input.username
|
|
@@ -1342,6 +1861,10 @@ let LicenseAPI = (() => {
|
|
|
1342
1861
|
path: _path + ".password",
|
|
1343
1862
|
expected: "(string | undefined)",
|
|
1344
1863
|
value: input.password
|
|
1864
|
+
}, _errorFactory)) && (undefined === input.product || "string" === typeof input.product || $guard(_exceptionable, {
|
|
1865
|
+
path: _path + ".product",
|
|
1866
|
+
expected: "(string | undefined)",
|
|
1867
|
+
value: input.product
|
|
1345
1868
|
}, _errorFactory)) && (undefined === input.id_token || "string" === typeof input.id_token || $guard(_exceptionable, {
|
|
1346
1869
|
path: _path + ".id_token",
|
|
1347
1870
|
expected: "(string | undefined)",
|
|
@@ -1355,7 +1878,7 @@ let LicenseAPI = (() => {
|
|
|
1355
1878
|
expected: "string",
|
|
1356
1879
|
value: input.code
|
|
1357
1880
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1358
|
-
if (["
|
|
1881
|
+
if (["username", "password", "product", "id_token", "customer_account_code", "code"].some(prop => key === prop))
|
|
1359
1882
|
return true;
|
|
1360
1883
|
const value = input[key];
|
|
1361
1884
|
if (undefined === value)
|
|
@@ -1437,15 +1960,15 @@ let LicenseAPI = (() => {
|
|
|
1437
1960
|
;
|
|
1438
1961
|
checkLicenseFeature(payload) {
|
|
1439
1962
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1440
|
-
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.include_metadata_string || "boolean" === typeof input.include_metadata_string) && "string" === typeof input.
|
|
1441
|
-
if (["username", "bundle_code", "license_id", "sdk_ver", "include_metadata_string", "
|
|
1963
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.include_metadata_string || "boolean" === typeof input.include_metadata_string) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product && "string" === typeof input.feature && Object.keys(input).every(key => {
|
|
1964
|
+
if (["username", "bundle_code", "license_id", "sdk_ver", "include_metadata_string", "license_key", "hardware_id", "product", "feature"].some(prop => key === prop))
|
|
1442
1965
|
return true;
|
|
1443
1966
|
const value = input[key];
|
|
1444
1967
|
if (undefined === value)
|
|
1445
1968
|
return true;
|
|
1446
1969
|
return true;
|
|
1447
|
-
}); const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.include_metadata_string || "boolean" === typeof input.include_metadata_string) && "string" === typeof input.
|
|
1448
|
-
if (["license_key", "bundle_code", "license_id", "sdk_ver", "include_metadata_string", "
|
|
1970
|
+
}); const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.include_metadata_string || "boolean" === typeof input.include_metadata_string) && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.product && "string" === typeof input.feature && Object.keys(input).every(key => {
|
|
1971
|
+
if (["license_key", "bundle_code", "license_id", "sdk_ver", "include_metadata_string", "username", "hardware_id", "product", "feature"].some(prop => key === prop))
|
|
1449
1972
|
return true;
|
|
1450
1973
|
const value = input[key];
|
|
1451
1974
|
if (undefined === value)
|
|
@@ -1477,24 +2000,24 @@ let LicenseAPI = (() => {
|
|
|
1477
2000
|
path: _path + ".include_metadata_string",
|
|
1478
2001
|
expected: "(boolean | undefined)",
|
|
1479
2002
|
value: input.include_metadata_string
|
|
1480
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
1481
|
-
path: _path + ".
|
|
2003
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
2004
|
+
path: _path + ".license_key",
|
|
1482
2005
|
expected: "string",
|
|
1483
|
-
value: input.
|
|
2006
|
+
value: input.license_key
|
|
1484
2007
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
1485
2008
|
path: _path + ".hardware_id",
|
|
1486
2009
|
expected: "string",
|
|
1487
2010
|
value: input.hardware_id
|
|
1488
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
1489
|
-
path: _path + ".
|
|
2011
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2012
|
+
path: _path + ".product",
|
|
1490
2013
|
expected: "string",
|
|
1491
|
-
value: input.
|
|
2014
|
+
value: input.product
|
|
1492
2015
|
}, _errorFactory)) && ("string" === typeof input.feature || $guard(_exceptionable, {
|
|
1493
2016
|
path: _path + ".feature",
|
|
1494
2017
|
expected: "string",
|
|
1495
2018
|
value: input.feature
|
|
1496
2019
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1497
|
-
if (["username", "bundle_code", "license_id", "sdk_ver", "include_metadata_string", "
|
|
2020
|
+
if (["username", "bundle_code", "license_id", "sdk_ver", "include_metadata_string", "license_key", "hardware_id", "product", "feature"].some(prop => key === prop))
|
|
1498
2021
|
return true;
|
|
1499
2022
|
const value = input[key];
|
|
1500
2023
|
if (undefined === value)
|
|
@@ -1520,10 +2043,6 @@ let LicenseAPI = (() => {
|
|
|
1520
2043
|
path: _path + ".include_metadata_string",
|
|
1521
2044
|
expected: "(boolean | undefined)",
|
|
1522
2045
|
value: input.include_metadata_string
|
|
1523
|
-
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
1524
|
-
path: _path + ".product",
|
|
1525
|
-
expected: "string",
|
|
1526
|
-
value: input.product
|
|
1527
2046
|
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
1528
2047
|
path: _path + ".username",
|
|
1529
2048
|
expected: "string",
|
|
@@ -1532,12 +2051,16 @@ let LicenseAPI = (() => {
|
|
|
1532
2051
|
path: _path + ".hardware_id",
|
|
1533
2052
|
expected: "string",
|
|
1534
2053
|
value: input.hardware_id
|
|
2054
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2055
|
+
path: _path + ".product",
|
|
2056
|
+
expected: "string",
|
|
2057
|
+
value: input.product
|
|
1535
2058
|
}, _errorFactory)) && ("string" === typeof input.feature || $guard(_exceptionable, {
|
|
1536
2059
|
path: _path + ".feature",
|
|
1537
2060
|
expected: "string",
|
|
1538
2061
|
value: input.feature
|
|
1539
2062
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1540
|
-
if (["license_key", "bundle_code", "license_id", "sdk_ver", "include_metadata_string", "
|
|
2063
|
+
if (["license_key", "bundle_code", "license_id", "sdk_ver", "include_metadata_string", "username", "hardware_id", "product", "feature"].some(prop => key === prop))
|
|
1541
2064
|
return true;
|
|
1542
2065
|
const value = input[key];
|
|
1543
2066
|
if (undefined === value)
|
|
@@ -1570,15 +2093,15 @@ let LicenseAPI = (() => {
|
|
|
1570
2093
|
;
|
|
1571
2094
|
addConsumption(payload) {
|
|
1572
2095
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1573
|
-
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.
|
|
1574
|
-
if (["username", "
|
|
2096
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.allow_overages || "boolean" === typeof input.allow_overages) && (undefined === input.max_overages || "number" === typeof input.max_overages) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.ignore_events || "boolean" === typeof input.ignore_events) && (undefined === input.event || Array.isArray(input.event) && input.event.every(elem => "consumption_add" === elem || "offline_floating_consumptions_sync" === elem)) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product && "number" === typeof input.consumptions && Object.keys(input).every(key => {
|
|
2097
|
+
if (["username", "allow_overages", "max_overages", "bundle_code", "license_id", "sdk_ver", "ignore_events", "event", "license_key", "hardware_id", "product", "consumptions"].some(prop => key === prop))
|
|
1575
2098
|
return true;
|
|
1576
2099
|
const value = input[key];
|
|
1577
2100
|
if (undefined === value)
|
|
1578
2101
|
return true;
|
|
1579
2102
|
return true;
|
|
1580
|
-
}); const $io1 = input => (undefined === input.
|
|
1581
|
-
if (["
|
|
2103
|
+
}); const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.allow_overages || "boolean" === typeof input.allow_overages) && (undefined === input.max_overages || "number" === typeof input.max_overages) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.ignore_events || "boolean" === typeof input.ignore_events) && (undefined === input.event || Array.isArray(input.event) && input.event.every(elem => "consumption_add" === elem || "offline_floating_consumptions_sync" === elem)) && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.product && "number" === typeof input.consumptions && Object.keys(input).every(key => {
|
|
2104
|
+
if (["license_key", "allow_overages", "max_overages", "bundle_code", "license_id", "sdk_ver", "ignore_events", "event", "username", "hardware_id", "product", "consumptions"].some(prop => key === prop))
|
|
1582
2105
|
return true;
|
|
1583
2106
|
const value = input[key];
|
|
1584
2107
|
if (undefined === value)
|
|
@@ -1594,18 +2117,6 @@ let LicenseAPI = (() => {
|
|
|
1594
2117
|
path: _path + ".username",
|
|
1595
2118
|
expected: "(string | undefined)",
|
|
1596
2119
|
value: input.username
|
|
1597
|
-
}, _errorFactory)) && (undefined === input.event || (Array.isArray(input.event) || $guard(_exceptionable, {
|
|
1598
|
-
path: _path + ".event",
|
|
1599
|
-
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
1600
|
-
value: input.event
|
|
1601
|
-
}, _errorFactory)) && input.event.every((elem, _index3) => "consumption_add" === elem || "offline_floating_consumptions_sync" === elem || $guard(_exceptionable, {
|
|
1602
|
-
path: _path + ".event[" + _index3 + "]",
|
|
1603
|
-
expected: "(\"consumption_add\" | \"offline_floating_consumptions_sync\")",
|
|
1604
|
-
value: elem
|
|
1605
|
-
}, _errorFactory)) || $guard(_exceptionable, {
|
|
1606
|
-
path: _path + ".event",
|
|
1607
|
-
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
1608
|
-
value: input.event
|
|
1609
2120
|
}, _errorFactory)) && (undefined === input.allow_overages || "boolean" === typeof input.allow_overages || $guard(_exceptionable, {
|
|
1610
2121
|
path: _path + ".allow_overages",
|
|
1611
2122
|
expected: "(boolean | undefined)",
|
|
@@ -1630,42 +2141,42 @@ let LicenseAPI = (() => {
|
|
|
1630
2141
|
path: _path + ".ignore_events",
|
|
1631
2142
|
expected: "(boolean | undefined)",
|
|
1632
2143
|
value: input.ignore_events
|
|
1633
|
-
}, _errorFactory)) && (
|
|
1634
|
-
path: _path + ".
|
|
1635
|
-
expected: "
|
|
1636
|
-
value: input.
|
|
2144
|
+
}, _errorFactory)) && (undefined === input.event || (Array.isArray(input.event) || $guard(_exceptionable, {
|
|
2145
|
+
path: _path + ".event",
|
|
2146
|
+
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
2147
|
+
value: input.event
|
|
2148
|
+
}, _errorFactory)) && input.event.every((elem, _index3) => "consumption_add" === elem || "offline_floating_consumptions_sync" === elem || $guard(_exceptionable, {
|
|
2149
|
+
path: _path + ".event[" + _index3 + "]",
|
|
2150
|
+
expected: "(\"consumption_add\" | \"offline_floating_consumptions_sync\")",
|
|
2151
|
+
value: elem
|
|
2152
|
+
}, _errorFactory)) || $guard(_exceptionable, {
|
|
2153
|
+
path: _path + ".event",
|
|
2154
|
+
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
2155
|
+
value: input.event
|
|
2156
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
2157
|
+
path: _path + ".license_key",
|
|
2158
|
+
expected: "string",
|
|
2159
|
+
value: input.license_key
|
|
1637
2160
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
1638
2161
|
path: _path + ".hardware_id",
|
|
1639
2162
|
expected: "string",
|
|
1640
2163
|
value: input.hardware_id
|
|
1641
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
1642
|
-
path: _path + ".
|
|
2164
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2165
|
+
path: _path + ".product",
|
|
1643
2166
|
expected: "string",
|
|
1644
|
-
value: input.
|
|
2167
|
+
value: input.product
|
|
1645
2168
|
}, _errorFactory)) && ("number" === typeof input.consumptions || $guard(_exceptionable, {
|
|
1646
2169
|
path: _path + ".consumptions",
|
|
1647
2170
|
expected: "number",
|
|
1648
2171
|
value: input.consumptions
|
|
1649
2172
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1650
|
-
if (["username", "
|
|
2173
|
+
if (["username", "allow_overages", "max_overages", "bundle_code", "license_id", "sdk_ver", "ignore_events", "event", "license_key", "hardware_id", "product", "consumptions"].some(prop => key === prop))
|
|
1651
2174
|
return true;
|
|
1652
2175
|
const value = input[key];
|
|
1653
2176
|
if (undefined === value)
|
|
1654
2177
|
return true;
|
|
1655
2178
|
return true;
|
|
1656
|
-
})); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
1657
|
-
path: _path + ".event",
|
|
1658
|
-
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
1659
|
-
value: input.event
|
|
1660
|
-
}, _errorFactory)) && input.event.every((elem, _index4) => "consumption_add" === elem || "offline_floating_consumptions_sync" === elem || $guard(_exceptionable, {
|
|
1661
|
-
path: _path + ".event[" + _index4 + "]",
|
|
1662
|
-
expected: "(\"consumption_add\" | \"offline_floating_consumptions_sync\")",
|
|
1663
|
-
value: elem
|
|
1664
|
-
}, _errorFactory)) || $guard(_exceptionable, {
|
|
1665
|
-
path: _path + ".event",
|
|
1666
|
-
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
1667
|
-
value: input.event
|
|
1668
|
-
}, _errorFactory)) && (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
2179
|
+
})); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
1669
2180
|
path: _path + ".license_key",
|
|
1670
2181
|
expected: "(string | undefined)",
|
|
1671
2182
|
value: input.license_key
|
|
@@ -1693,10 +2204,18 @@ let LicenseAPI = (() => {
|
|
|
1693
2204
|
path: _path + ".ignore_events",
|
|
1694
2205
|
expected: "(boolean | undefined)",
|
|
1695
2206
|
value: input.ignore_events
|
|
1696
|
-
}, _errorFactory)) && (
|
|
1697
|
-
path: _path + ".
|
|
1698
|
-
expected: "
|
|
1699
|
-
value: input.
|
|
2207
|
+
}, _errorFactory)) && (undefined === input.event || (Array.isArray(input.event) || $guard(_exceptionable, {
|
|
2208
|
+
path: _path + ".event",
|
|
2209
|
+
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
2210
|
+
value: input.event
|
|
2211
|
+
}, _errorFactory)) && input.event.every((elem, _index4) => "consumption_add" === elem || "offline_floating_consumptions_sync" === elem || $guard(_exceptionable, {
|
|
2212
|
+
path: _path + ".event[" + _index4 + "]",
|
|
2213
|
+
expected: "(\"consumption_add\" | \"offline_floating_consumptions_sync\")",
|
|
2214
|
+
value: elem
|
|
2215
|
+
}, _errorFactory)) || $guard(_exceptionable, {
|
|
2216
|
+
path: _path + ".event",
|
|
2217
|
+
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
2218
|
+
value: input.event
|
|
1700
2219
|
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
1701
2220
|
path: _path + ".username",
|
|
1702
2221
|
expected: "string",
|
|
@@ -1705,12 +2224,16 @@ let LicenseAPI = (() => {
|
|
|
1705
2224
|
path: _path + ".hardware_id",
|
|
1706
2225
|
expected: "string",
|
|
1707
2226
|
value: input.hardware_id
|
|
2227
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2228
|
+
path: _path + ".product",
|
|
2229
|
+
expected: "string",
|
|
2230
|
+
value: input.product
|
|
1708
2231
|
}, _errorFactory)) && ("number" === typeof input.consumptions || $guard(_exceptionable, {
|
|
1709
2232
|
path: _path + ".consumptions",
|
|
1710
2233
|
expected: "number",
|
|
1711
2234
|
value: input.consumptions
|
|
1712
2235
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
1713
|
-
if (["
|
|
2236
|
+
if (["license_key", "allow_overages", "max_overages", "bundle_code", "license_id", "sdk_ver", "ignore_events", "event", "username", "hardware_id", "product", "consumptions"].some(prop => key === prop))
|
|
1714
2237
|
return true;
|
|
1715
2238
|
const value = input[key];
|
|
1716
2239
|
if (undefined === value)
|
|
@@ -1743,21 +2266,7 @@ let LicenseAPI = (() => {
|
|
|
1743
2266
|
;
|
|
1744
2267
|
addFeatureConsumption(payload) {
|
|
1745
2268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1746
|
-
(() => { const $guard = typia_1.default.assert.guard; const $
|
|
1747
|
-
if (["username", "event", "bundle_code", "license_id", "sdk_ver", "product", "hardware_id", "license_key", "feature", "consumptions"].some(prop => key === prop))
|
|
1748
|
-
return true;
|
|
1749
|
-
const value = input[key];
|
|
1750
|
-
if (undefined === value)
|
|
1751
|
-
return true;
|
|
1752
|
-
return true;
|
|
1753
|
-
}); const $io1 = input => (undefined === input.event || Array.isArray(input.event) && input.event.every(elem => "consumption_add" === elem || "offline_floating_consumptions_sync" === elem)) && (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.product && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.feature && "number" === typeof input.consumptions && Object.keys(input).every(key => {
|
|
1754
|
-
if (["event", "license_key", "bundle_code", "license_id", "sdk_ver", "product", "username", "hardware_id", "feature", "consumptions"].some(prop => key === prop))
|
|
1755
|
-
return true;
|
|
1756
|
-
const value = input[key];
|
|
1757
|
-
if (undefined === value)
|
|
1758
|
-
return true;
|
|
1759
|
-
return true;
|
|
1760
|
-
}); const $iu0 = input => (() => {
|
|
2269
|
+
(() => { const $guard = typia_1.default.assert.guard; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.event || Array.isArray(input.event) && input.event.every(elem => "consumption_add" === elem || "offline_floating_consumptions_sync" === elem)) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product && "string" === typeof input.feature && "number" === typeof input.consumptions; const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.event || Array.isArray(input.event) && input.event.every(elem => "consumption_add" === elem || "offline_floating_consumptions_sync" === elem)) && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.product && "string" === typeof input.feature && "number" === typeof input.consumptions; const $iu0 = input => (() => {
|
|
1761
2270
|
if ($io1(input))
|
|
1762
2271
|
return $io1(input);
|
|
1763
2272
|
if ($io0(input))
|
|
@@ -1767,18 +2276,6 @@ let LicenseAPI = (() => {
|
|
|
1767
2276
|
path: _path + ".username",
|
|
1768
2277
|
expected: "(string | undefined)",
|
|
1769
2278
|
value: input.username
|
|
1770
|
-
}, _errorFactory)) && (undefined === input.event || (Array.isArray(input.event) || $guard(_exceptionable, {
|
|
1771
|
-
path: _path + ".event",
|
|
1772
|
-
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
1773
|
-
value: input.event
|
|
1774
|
-
}, _errorFactory)) && input.event.every((elem, _index3) => "consumption_add" === elem || "offline_floating_consumptions_sync" === elem || $guard(_exceptionable, {
|
|
1775
|
-
path: _path + ".event[" + _index3 + "]",
|
|
1776
|
-
expected: "(\"consumption_add\" | \"offline_floating_consumptions_sync\")",
|
|
1777
|
-
value: elem
|
|
1778
|
-
}, _errorFactory)) || $guard(_exceptionable, {
|
|
1779
|
-
path: _path + ".event",
|
|
1780
|
-
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
1781
|
-
value: input.event
|
|
1782
2279
|
}, _errorFactory)) && (undefined === input.bundle_code || "string" === typeof input.bundle_code || $guard(_exceptionable, {
|
|
1783
2280
|
path: _path + ".bundle_code",
|
|
1784
2281
|
expected: "(string | undefined)",
|
|
@@ -1791,18 +2288,30 @@ let LicenseAPI = (() => {
|
|
|
1791
2288
|
path: _path + ".sdk_ver",
|
|
1792
2289
|
expected: "(string | undefined)",
|
|
1793
2290
|
value: input.sdk_ver
|
|
1794
|
-
}, _errorFactory)) && (
|
|
1795
|
-
path: _path + ".
|
|
2291
|
+
}, _errorFactory)) && (undefined === input.event || (Array.isArray(input.event) || $guard(_exceptionable, {
|
|
2292
|
+
path: _path + ".event",
|
|
2293
|
+
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
2294
|
+
value: input.event
|
|
2295
|
+
}, _errorFactory)) && input.event.every((elem, _index3) => "consumption_add" === elem || "offline_floating_consumptions_sync" === elem || $guard(_exceptionable, {
|
|
2296
|
+
path: _path + ".event[" + _index3 + "]",
|
|
2297
|
+
expected: "(\"consumption_add\" | \"offline_floating_consumptions_sync\")",
|
|
2298
|
+
value: elem
|
|
2299
|
+
}, _errorFactory)) || $guard(_exceptionable, {
|
|
2300
|
+
path: _path + ".event",
|
|
2301
|
+
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
2302
|
+
value: input.event
|
|
2303
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
2304
|
+
path: _path + ".license_key",
|
|
1796
2305
|
expected: "string",
|
|
1797
|
-
value: input.
|
|
2306
|
+
value: input.license_key
|
|
1798
2307
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
1799
2308
|
path: _path + ".hardware_id",
|
|
1800
2309
|
expected: "string",
|
|
1801
2310
|
value: input.hardware_id
|
|
1802
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
1803
|
-
path: _path + ".
|
|
2311
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2312
|
+
path: _path + ".product",
|
|
1804
2313
|
expected: "string",
|
|
1805
|
-
value: input.
|
|
2314
|
+
value: input.product
|
|
1806
2315
|
}, _errorFactory)) && ("string" === typeof input.feature || $guard(_exceptionable, {
|
|
1807
2316
|
path: _path + ".feature",
|
|
1808
2317
|
expected: "string",
|
|
@@ -1811,26 +2320,7 @@ let LicenseAPI = (() => {
|
|
|
1811
2320
|
path: _path + ".consumptions",
|
|
1812
2321
|
expected: "number",
|
|
1813
2322
|
value: input.consumptions
|
|
1814
|
-
}, _errorFactory))
|
|
1815
|
-
if (["username", "event", "bundle_code", "license_id", "sdk_ver", "product", "hardware_id", "license_key", "feature", "consumptions"].some(prop => key === prop))
|
|
1816
|
-
return true;
|
|
1817
|
-
const value = input[key];
|
|
1818
|
-
if (undefined === value)
|
|
1819
|
-
return true;
|
|
1820
|
-
return true;
|
|
1821
|
-
})); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.event || (Array.isArray(input.event) || $guard(_exceptionable, {
|
|
1822
|
-
path: _path + ".event",
|
|
1823
|
-
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
1824
|
-
value: input.event
|
|
1825
|
-
}, _errorFactory)) && input.event.every((elem, _index4) => "consumption_add" === elem || "offline_floating_consumptions_sync" === elem || $guard(_exceptionable, {
|
|
1826
|
-
path: _path + ".event[" + _index4 + "]",
|
|
1827
|
-
expected: "(\"consumption_add\" | \"offline_floating_consumptions_sync\")",
|
|
1828
|
-
value: elem
|
|
1829
|
-
}, _errorFactory)) || $guard(_exceptionable, {
|
|
1830
|
-
path: _path + ".event",
|
|
1831
|
-
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
1832
|
-
value: input.event
|
|
1833
|
-
}, _errorFactory)) && (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
2323
|
+
}, _errorFactory)); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
1834
2324
|
path: _path + ".license_key",
|
|
1835
2325
|
expected: "(string | undefined)",
|
|
1836
2326
|
value: input.license_key
|
|
@@ -1846,10 +2336,18 @@ let LicenseAPI = (() => {
|
|
|
1846
2336
|
path: _path + ".sdk_ver",
|
|
1847
2337
|
expected: "(string | undefined)",
|
|
1848
2338
|
value: input.sdk_ver
|
|
1849
|
-
}, _errorFactory)) && (
|
|
1850
|
-
path: _path + ".
|
|
1851
|
-
expected: "
|
|
1852
|
-
value: input.
|
|
2339
|
+
}, _errorFactory)) && (undefined === input.event || (Array.isArray(input.event) || $guard(_exceptionable, {
|
|
2340
|
+
path: _path + ".event",
|
|
2341
|
+
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
2342
|
+
value: input.event
|
|
2343
|
+
}, _errorFactory)) && input.event.every((elem, _index4) => "consumption_add" === elem || "offline_floating_consumptions_sync" === elem || $guard(_exceptionable, {
|
|
2344
|
+
path: _path + ".event[" + _index4 + "]",
|
|
2345
|
+
expected: "(\"consumption_add\" | \"offline_floating_consumptions_sync\")",
|
|
2346
|
+
value: elem
|
|
2347
|
+
}, _errorFactory)) || $guard(_exceptionable, {
|
|
2348
|
+
path: _path + ".event",
|
|
2349
|
+
expected: "(Array<\"consumption_add\" | \"offline_floating_consumptions_sync\"> | undefined)",
|
|
2350
|
+
value: input.event
|
|
1853
2351
|
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
1854
2352
|
path: _path + ".username",
|
|
1855
2353
|
expected: "string",
|
|
@@ -1858,6 +2356,10 @@ let LicenseAPI = (() => {
|
|
|
1858
2356
|
path: _path + ".hardware_id",
|
|
1859
2357
|
expected: "string",
|
|
1860
2358
|
value: input.hardware_id
|
|
2359
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2360
|
+
path: _path + ".product",
|
|
2361
|
+
expected: "string",
|
|
2362
|
+
value: input.product
|
|
1861
2363
|
}, _errorFactory)) && ("string" === typeof input.feature || $guard(_exceptionable, {
|
|
1862
2364
|
path: _path + ".feature",
|
|
1863
2365
|
expected: "string",
|
|
@@ -1866,14 +2368,7 @@ let LicenseAPI = (() => {
|
|
|
1866
2368
|
path: _path + ".consumptions",
|
|
1867
2369
|
expected: "number",
|
|
1868
2370
|
value: input.consumptions
|
|
1869
|
-
}, _errorFactory))
|
|
1870
|
-
if (["event", "license_key", "bundle_code", "license_id", "sdk_ver", "product", "username", "hardware_id", "feature", "consumptions"].some(prop => key === prop))
|
|
1871
|
-
return true;
|
|
1872
|
-
const value = input[key];
|
|
1873
|
-
if (undefined === value)
|
|
1874
|
-
return true;
|
|
1875
|
-
return true;
|
|
1876
|
-
})); const $au0 = (input, _path, _exceptionable = true) => $ao1(input, _path, false && _exceptionable) || $ao0(input, _path, false && _exceptionable) || $guard(_exceptionable, {
|
|
2371
|
+
}, _errorFactory)); const $au0 = (input, _path, _exceptionable = true) => $ao1(input, _path, false && _exceptionable) || $ao0(input, _path, false && _exceptionable) || $guard(_exceptionable, {
|
|
1877
2372
|
path: _path,
|
|
1878
2373
|
expected: "(__type.o1 | __type)",
|
|
1879
2374
|
value: input
|
|
@@ -1900,21 +2395,7 @@ let LicenseAPI = (() => {
|
|
|
1900
2395
|
;
|
|
1901
2396
|
featureRelease(payload) {
|
|
1902
2397
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1903
|
-
(() => { const $guard = typia_1.default.assert.guard; const $
|
|
1904
|
-
if (["username", "bundle_code", "license_id", "sdk_ver", "product", "hardware_id", "license_key", "feature"].some(prop => key === prop))
|
|
1905
|
-
return true;
|
|
1906
|
-
const value = input[key];
|
|
1907
|
-
if (undefined === value)
|
|
1908
|
-
return true;
|
|
1909
|
-
return true;
|
|
1910
|
-
}); const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.product && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.feature && Object.keys(input).every(key => {
|
|
1911
|
-
if (["license_key", "bundle_code", "license_id", "sdk_ver", "product", "username", "hardware_id", "feature"].some(prop => key === prop))
|
|
1912
|
-
return true;
|
|
1913
|
-
const value = input[key];
|
|
1914
|
-
if (undefined === value)
|
|
1915
|
-
return true;
|
|
1916
|
-
return true;
|
|
1917
|
-
}); const $iu0 = input => (() => {
|
|
2398
|
+
(() => { const $guard = typia_1.default.assert.guard; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product && "string" === typeof input.feature; const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.product && "string" === typeof input.feature; const $iu0 = input => (() => {
|
|
1918
2399
|
if ($io1(input))
|
|
1919
2400
|
return $io1(input);
|
|
1920
2401
|
if ($io0(input))
|
|
@@ -1936,30 +2417,23 @@ let LicenseAPI = (() => {
|
|
|
1936
2417
|
path: _path + ".sdk_ver",
|
|
1937
2418
|
expected: "(string | undefined)",
|
|
1938
2419
|
value: input.sdk_ver
|
|
1939
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
1940
|
-
path: _path + ".
|
|
2420
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
2421
|
+
path: _path + ".license_key",
|
|
1941
2422
|
expected: "string",
|
|
1942
|
-
value: input.
|
|
2423
|
+
value: input.license_key
|
|
1943
2424
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
1944
2425
|
path: _path + ".hardware_id",
|
|
1945
2426
|
expected: "string",
|
|
1946
2427
|
value: input.hardware_id
|
|
1947
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
1948
|
-
path: _path + ".
|
|
2428
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2429
|
+
path: _path + ".product",
|
|
1949
2430
|
expected: "string",
|
|
1950
|
-
value: input.
|
|
2431
|
+
value: input.product
|
|
1951
2432
|
}, _errorFactory)) && ("string" === typeof input.feature || $guard(_exceptionable, {
|
|
1952
2433
|
path: _path + ".feature",
|
|
1953
2434
|
expected: "string",
|
|
1954
2435
|
value: input.feature
|
|
1955
|
-
}, _errorFactory))
|
|
1956
|
-
if (["username", "bundle_code", "license_id", "sdk_ver", "product", "hardware_id", "license_key", "feature"].some(prop => key === prop))
|
|
1957
|
-
return true;
|
|
1958
|
-
const value = input[key];
|
|
1959
|
-
if (undefined === value)
|
|
1960
|
-
return true;
|
|
1961
|
-
return true;
|
|
1962
|
-
})); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
2436
|
+
}, _errorFactory)); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
1963
2437
|
path: _path + ".license_key",
|
|
1964
2438
|
expected: "(string | undefined)",
|
|
1965
2439
|
value: input.license_key
|
|
@@ -1975,10 +2449,6 @@ let LicenseAPI = (() => {
|
|
|
1975
2449
|
path: _path + ".sdk_ver",
|
|
1976
2450
|
expected: "(string | undefined)",
|
|
1977
2451
|
value: input.sdk_ver
|
|
1978
|
-
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
1979
|
-
path: _path + ".product",
|
|
1980
|
-
expected: "string",
|
|
1981
|
-
value: input.product
|
|
1982
2452
|
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
1983
2453
|
path: _path + ".username",
|
|
1984
2454
|
expected: "string",
|
|
@@ -1987,18 +2457,15 @@ let LicenseAPI = (() => {
|
|
|
1987
2457
|
path: _path + ".hardware_id",
|
|
1988
2458
|
expected: "string",
|
|
1989
2459
|
value: input.hardware_id
|
|
2460
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2461
|
+
path: _path + ".product",
|
|
2462
|
+
expected: "string",
|
|
2463
|
+
value: input.product
|
|
1990
2464
|
}, _errorFactory)) && ("string" === typeof input.feature || $guard(_exceptionable, {
|
|
1991
2465
|
path: _path + ".feature",
|
|
1992
2466
|
expected: "string",
|
|
1993
2467
|
value: input.feature
|
|
1994
|
-
}, _errorFactory))
|
|
1995
|
-
if (["license_key", "bundle_code", "license_id", "sdk_ver", "product", "username", "hardware_id", "feature"].some(prop => key === prop))
|
|
1996
|
-
return true;
|
|
1997
|
-
const value = input[key];
|
|
1998
|
-
if (undefined === value)
|
|
1999
|
-
return true;
|
|
2000
|
-
return true;
|
|
2001
|
-
})); const $au0 = (input, _path, _exceptionable = true) => $ao1(input, _path, false && _exceptionable) || $ao0(input, _path, false && _exceptionable) || $guard(_exceptionable, {
|
|
2468
|
+
}, _errorFactory)); const $au0 = (input, _path, _exceptionable = true) => $ao1(input, _path, false && _exceptionable) || $ao0(input, _path, false && _exceptionable) || $guard(_exceptionable, {
|
|
2002
2469
|
path: _path,
|
|
2003
2470
|
expected: "(__type.o1 | __type)",
|
|
2004
2471
|
value: input
|
|
@@ -2017,15 +2484,15 @@ let LicenseAPI = (() => {
|
|
|
2017
2484
|
}
|
|
2018
2485
|
return input;
|
|
2019
2486
|
}; })()(payload);
|
|
2020
|
-
|
|
2021
|
-
return
|
|
2487
|
+
yield this.service.postRequest('feature_release', payload);
|
|
2488
|
+
return true;
|
|
2022
2489
|
});
|
|
2023
2490
|
}
|
|
2024
2491
|
;
|
|
2025
2492
|
getProductDetails(payload) {
|
|
2026
2493
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2027
|
-
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.env || "string" === typeof input.env) && "
|
|
2028
|
-
if (["env", "
|
|
2494
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.env || "string" === typeof input.env) && (undefined === input.include_latest_version || "boolean" === typeof input.include_latest_version) && (undefined === input.include_custom_fields || "boolean" === typeof input.include_custom_fields) && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
2495
|
+
if (["env", "include_latest_version", "include_custom_fields", "product"].some(prop => key === prop))
|
|
2029
2496
|
return true;
|
|
2030
2497
|
const value = input[key];
|
|
2031
2498
|
if (undefined === value)
|
|
@@ -2035,20 +2502,20 @@ let LicenseAPI = (() => {
|
|
|
2035
2502
|
path: _path + ".env",
|
|
2036
2503
|
expected: "(string | undefined)",
|
|
2037
2504
|
value: input.env
|
|
2038
|
-
}, _errorFactory)) && ("
|
|
2039
|
-
path: _path + ".product",
|
|
2040
|
-
expected: "string",
|
|
2041
|
-
value: input.product
|
|
2042
|
-
}, _errorFactory)) && ("boolean" === typeof input.include_latest_version || $guard(_exceptionable, {
|
|
2505
|
+
}, _errorFactory)) && (undefined === input.include_latest_version || "boolean" === typeof input.include_latest_version || $guard(_exceptionable, {
|
|
2043
2506
|
path: _path + ".include_latest_version",
|
|
2044
|
-
expected: "boolean",
|
|
2507
|
+
expected: "(boolean | undefined)",
|
|
2045
2508
|
value: input.include_latest_version
|
|
2046
|
-
}, _errorFactory)) && ("boolean" === typeof input.include_custom_fields || $guard(_exceptionable, {
|
|
2509
|
+
}, _errorFactory)) && (undefined === input.include_custom_fields || "boolean" === typeof input.include_custom_fields || $guard(_exceptionable, {
|
|
2047
2510
|
path: _path + ".include_custom_fields",
|
|
2048
|
-
expected: "boolean",
|
|
2511
|
+
expected: "(boolean | undefined)",
|
|
2049
2512
|
value: input.include_custom_fields
|
|
2513
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2514
|
+
path: _path + ".product",
|
|
2515
|
+
expected: "string",
|
|
2516
|
+
value: input.product
|
|
2050
2517
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
2051
|
-
if (["env", "
|
|
2518
|
+
if (["env", "include_latest_version", "include_custom_fields", "product"].some(prop => key === prop))
|
|
2052
2519
|
return true;
|
|
2053
2520
|
const value = input[key];
|
|
2054
2521
|
if (undefined === value)
|
|
@@ -2078,15 +2545,15 @@ let LicenseAPI = (() => {
|
|
|
2078
2545
|
;
|
|
2079
2546
|
getDeviceVariables(payload) {
|
|
2080
2547
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2081
|
-
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.
|
|
2082
|
-
if (["username", "bundle_code", "license_id", "sdk_ver", "
|
|
2548
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
2549
|
+
if (["username", "bundle_code", "license_id", "sdk_ver", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
2083
2550
|
return true;
|
|
2084
2551
|
const value = input[key];
|
|
2085
2552
|
if (undefined === value)
|
|
2086
2553
|
return true;
|
|
2087
2554
|
return true;
|
|
2088
|
-
}); const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.
|
|
2089
|
-
if (["license_key", "bundle_code", "license_id", "sdk_ver", "
|
|
2555
|
+
}); const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
2556
|
+
if (["license_key", "bundle_code", "license_id", "sdk_ver", "username", "hardware_id", "product"].some(prop => key === prop))
|
|
2090
2557
|
return true;
|
|
2091
2558
|
const value = input[key];
|
|
2092
2559
|
if (undefined === value)
|
|
@@ -2114,20 +2581,20 @@ let LicenseAPI = (() => {
|
|
|
2114
2581
|
path: _path + ".sdk_ver",
|
|
2115
2582
|
expected: "(string | undefined)",
|
|
2116
2583
|
value: input.sdk_ver
|
|
2117
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
2118
|
-
path: _path + ".
|
|
2584
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
2585
|
+
path: _path + ".license_key",
|
|
2119
2586
|
expected: "string",
|
|
2120
|
-
value: input.
|
|
2587
|
+
value: input.license_key
|
|
2121
2588
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
2122
2589
|
path: _path + ".hardware_id",
|
|
2123
2590
|
expected: "string",
|
|
2124
2591
|
value: input.hardware_id
|
|
2125
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
2126
|
-
path: _path + ".
|
|
2592
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2593
|
+
path: _path + ".product",
|
|
2127
2594
|
expected: "string",
|
|
2128
|
-
value: input.
|
|
2595
|
+
value: input.product
|
|
2129
2596
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
2130
|
-
if (["username", "bundle_code", "license_id", "sdk_ver", "
|
|
2597
|
+
if (["username", "bundle_code", "license_id", "sdk_ver", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
2131
2598
|
return true;
|
|
2132
2599
|
const value = input[key];
|
|
2133
2600
|
if (undefined === value)
|
|
@@ -2149,10 +2616,6 @@ let LicenseAPI = (() => {
|
|
|
2149
2616
|
path: _path + ".sdk_ver",
|
|
2150
2617
|
expected: "(string | undefined)",
|
|
2151
2618
|
value: input.sdk_ver
|
|
2152
|
-
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2153
|
-
path: _path + ".product",
|
|
2154
|
-
expected: "string",
|
|
2155
|
-
value: input.product
|
|
2156
2619
|
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
2157
2620
|
path: _path + ".username",
|
|
2158
2621
|
expected: "string",
|
|
@@ -2161,8 +2624,12 @@ let LicenseAPI = (() => {
|
|
|
2161
2624
|
path: _path + ".hardware_id",
|
|
2162
2625
|
expected: "string",
|
|
2163
2626
|
value: input.hardware_id
|
|
2627
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2628
|
+
path: _path + ".product",
|
|
2629
|
+
expected: "string",
|
|
2630
|
+
value: input.product
|
|
2164
2631
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
2165
|
-
if (["license_key", "bundle_code", "license_id", "sdk_ver", "
|
|
2632
|
+
if (["license_key", "bundle_code", "license_id", "sdk_ver", "username", "hardware_id", "product"].some(prop => key === prop))
|
|
2166
2633
|
return true;
|
|
2167
2634
|
const value = input[key];
|
|
2168
2635
|
if (undefined === value)
|
|
@@ -2195,8 +2662,8 @@ let LicenseAPI = (() => {
|
|
|
2195
2662
|
;
|
|
2196
2663
|
trackDeviceVariables(payload) {
|
|
2197
2664
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2198
|
-
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && "string" === typeof input.
|
|
2199
|
-
if (["username", "bundle_code", "license_id", "sdk_ver", "variables", "
|
|
2665
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
2666
|
+
if (["username", "bundle_code", "license_id", "sdk_ver", "variables", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
2200
2667
|
return true;
|
|
2201
2668
|
const value = input[key];
|
|
2202
2669
|
if (undefined === value)
|
|
@@ -2207,8 +2674,8 @@ let LicenseAPI = (() => {
|
|
|
2207
2674
|
if (undefined === value)
|
|
2208
2675
|
return true;
|
|
2209
2676
|
return true;
|
|
2210
|
-
}); const $io2 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && "string" === typeof input.
|
|
2211
|
-
if (["license_key", "bundle_code", "license_id", "sdk_ver", "variables", "
|
|
2677
|
+
}); const $io2 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
2678
|
+
if (["license_key", "bundle_code", "license_id", "sdk_ver", "variables", "username", "hardware_id", "product"].some(prop => key === prop))
|
|
2212
2679
|
return true;
|
|
2213
2680
|
const value = input[key];
|
|
2214
2681
|
if (undefined === value)
|
|
@@ -2244,20 +2711,20 @@ let LicenseAPI = (() => {
|
|
|
2244
2711
|
path: _path + ".variables",
|
|
2245
2712
|
expected: "(__type.o1 | undefined)",
|
|
2246
2713
|
value: input.variables
|
|
2247
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
2248
|
-
path: _path + ".
|
|
2714
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
2715
|
+
path: _path + ".license_key",
|
|
2249
2716
|
expected: "string",
|
|
2250
|
-
value: input.
|
|
2717
|
+
value: input.license_key
|
|
2251
2718
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
2252
2719
|
path: _path + ".hardware_id",
|
|
2253
2720
|
expected: "string",
|
|
2254
2721
|
value: input.hardware_id
|
|
2255
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
2256
|
-
path: _path + ".
|
|
2722
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2723
|
+
path: _path + ".product",
|
|
2257
2724
|
expected: "string",
|
|
2258
|
-
value: input.
|
|
2725
|
+
value: input.product
|
|
2259
2726
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
2260
|
-
if (["username", "bundle_code", "license_id", "sdk_ver", "variables", "
|
|
2727
|
+
if (["username", "bundle_code", "license_id", "sdk_ver", "variables", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
2261
2728
|
return true;
|
|
2262
2729
|
const value = input[key];
|
|
2263
2730
|
if (undefined === value)
|
|
@@ -2292,10 +2759,6 @@ let LicenseAPI = (() => {
|
|
|
2292
2759
|
path: _path + ".variables",
|
|
2293
2760
|
expected: "(__type.o1 | undefined)",
|
|
2294
2761
|
value: input.variables
|
|
2295
|
-
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2296
|
-
path: _path + ".product",
|
|
2297
|
-
expected: "string",
|
|
2298
|
-
value: input.product
|
|
2299
2762
|
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
2300
2763
|
path: _path + ".username",
|
|
2301
2764
|
expected: "string",
|
|
@@ -2304,8 +2767,12 @@ let LicenseAPI = (() => {
|
|
|
2304
2767
|
path: _path + ".hardware_id",
|
|
2305
2768
|
expected: "string",
|
|
2306
2769
|
value: input.hardware_id
|
|
2770
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2771
|
+
path: _path + ".product",
|
|
2772
|
+
expected: "string",
|
|
2773
|
+
value: input.product
|
|
2307
2774
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
2308
|
-
if (["license_key", "bundle_code", "license_id", "sdk_ver", "variables", "
|
|
2775
|
+
if (["license_key", "bundle_code", "license_id", "sdk_ver", "variables", "username", "hardware_id", "product"].some(prop => key === prop))
|
|
2309
2776
|
return true;
|
|
2310
2777
|
const value = input[key];
|
|
2311
2778
|
if (undefined === value)
|
|
@@ -2338,15 +2805,15 @@ let LicenseAPI = (() => {
|
|
|
2338
2805
|
;
|
|
2339
2806
|
floatingBorrow(payload) {
|
|
2340
2807
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2341
|
-
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.
|
|
2342
|
-
if (["username", "password", "bundle_code", "license_id", "sdk_ver", "
|
|
2808
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product && (null === input.borrowed_until || "string" === typeof input.borrowed_until) && Object.keys(input).every(key => {
|
|
2809
|
+
if (["username", "password", "bundle_code", "license_id", "sdk_ver", "license_key", "hardware_id", "product", "borrowed_until"].some(prop => key === prop))
|
|
2343
2810
|
return true;
|
|
2344
2811
|
const value = input[key];
|
|
2345
2812
|
if (undefined === value)
|
|
2346
2813
|
return true;
|
|
2347
2814
|
return true;
|
|
2348
|
-
}); const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.
|
|
2349
|
-
if (["license_key", "bundle_code", "license_id", "sdk_ver", "
|
|
2815
|
+
}); const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.username && "string" === typeof input.password && "string" === typeof input.hardware_id && "string" === typeof input.product && (null === input.borrowed_until || "string" === typeof input.borrowed_until) && Object.keys(input).every(key => {
|
|
2816
|
+
if (["license_key", "bundle_code", "license_id", "sdk_ver", "username", "password", "hardware_id", "product", "borrowed_until"].some(prop => key === prop))
|
|
2350
2817
|
return true;
|
|
2351
2818
|
const value = input[key];
|
|
2352
2819
|
if (undefined === value)
|
|
@@ -2378,24 +2845,24 @@ let LicenseAPI = (() => {
|
|
|
2378
2845
|
path: _path + ".sdk_ver",
|
|
2379
2846
|
expected: "(string | undefined)",
|
|
2380
2847
|
value: input.sdk_ver
|
|
2381
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
2382
|
-
path: _path + ".
|
|
2848
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
2849
|
+
path: _path + ".license_key",
|
|
2383
2850
|
expected: "string",
|
|
2384
|
-
value: input.
|
|
2851
|
+
value: input.license_key
|
|
2385
2852
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
2386
2853
|
path: _path + ".hardware_id",
|
|
2387
2854
|
expected: "string",
|
|
2388
2855
|
value: input.hardware_id
|
|
2389
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
2390
|
-
path: _path + ".
|
|
2856
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2857
|
+
path: _path + ".product",
|
|
2391
2858
|
expected: "string",
|
|
2392
|
-
value: input.
|
|
2859
|
+
value: input.product
|
|
2393
2860
|
}, _errorFactory)) && (null === input.borrowed_until || "string" === typeof input.borrowed_until || $guard(_exceptionable, {
|
|
2394
2861
|
path: _path + ".borrowed_until",
|
|
2395
2862
|
expected: "(null | string)",
|
|
2396
2863
|
value: input.borrowed_until
|
|
2397
2864
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
2398
|
-
if (["username", "password", "bundle_code", "license_id", "sdk_ver", "
|
|
2865
|
+
if (["username", "password", "bundle_code", "license_id", "sdk_ver", "license_key", "hardware_id", "product", "borrowed_until"].some(prop => key === prop))
|
|
2399
2866
|
return true;
|
|
2400
2867
|
const value = input[key];
|
|
2401
2868
|
if (undefined === value)
|
|
@@ -2417,28 +2884,28 @@ let LicenseAPI = (() => {
|
|
|
2417
2884
|
path: _path + ".sdk_ver",
|
|
2418
2885
|
expected: "(string | undefined)",
|
|
2419
2886
|
value: input.sdk_ver
|
|
2420
|
-
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2421
|
-
path: _path + ".product",
|
|
2422
|
-
expected: "string",
|
|
2423
|
-
value: input.product
|
|
2424
2887
|
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
2425
2888
|
path: _path + ".username",
|
|
2426
2889
|
expected: "string",
|
|
2427
2890
|
value: input.username
|
|
2891
|
+
}, _errorFactory)) && ("string" === typeof input.password || $guard(_exceptionable, {
|
|
2892
|
+
path: _path + ".password",
|
|
2893
|
+
expected: "string",
|
|
2894
|
+
value: input.password
|
|
2428
2895
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
2429
2896
|
path: _path + ".hardware_id",
|
|
2430
2897
|
expected: "string",
|
|
2431
2898
|
value: input.hardware_id
|
|
2432
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
2433
|
-
path: _path + ".
|
|
2899
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2900
|
+
path: _path + ".product",
|
|
2434
2901
|
expected: "string",
|
|
2435
|
-
value: input.
|
|
2902
|
+
value: input.product
|
|
2436
2903
|
}, _errorFactory)) && (null === input.borrowed_until || "string" === typeof input.borrowed_until || $guard(_exceptionable, {
|
|
2437
2904
|
path: _path + ".borrowed_until",
|
|
2438
2905
|
expected: "(null | string)",
|
|
2439
2906
|
value: input.borrowed_until
|
|
2440
2907
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
2441
|
-
if (["license_key", "bundle_code", "license_id", "sdk_ver", "
|
|
2908
|
+
if (["license_key", "bundle_code", "license_id", "sdk_ver", "username", "password", "hardware_id", "product", "borrowed_until"].some(prop => key === prop))
|
|
2442
2909
|
return true;
|
|
2443
2910
|
const value = input[key];
|
|
2444
2911
|
if (undefined === value)
|
|
@@ -2471,15 +2938,15 @@ let LicenseAPI = (() => {
|
|
|
2471
2938
|
;
|
|
2472
2939
|
floatingRelease(payload) {
|
|
2473
2940
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2474
|
-
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.
|
|
2475
|
-
if (["username", "bundle_code", "license_id", "sdk_ver", "
|
|
2941
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
2942
|
+
if (["username", "bundle_code", "license_id", "sdk_ver", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
2476
2943
|
return true;
|
|
2477
2944
|
const value = input[key];
|
|
2478
2945
|
if (undefined === value)
|
|
2479
2946
|
return true;
|
|
2480
2947
|
return true;
|
|
2481
|
-
}); const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.
|
|
2482
|
-
if (["license_key", "bundle_code", "license_id", "sdk_ver", "
|
|
2948
|
+
}); const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.license_id || "number" === typeof input.license_id) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
2949
|
+
if (["license_key", "bundle_code", "license_id", "sdk_ver", "username", "hardware_id", "product"].some(prop => key === prop))
|
|
2483
2950
|
return true;
|
|
2484
2951
|
const value = input[key];
|
|
2485
2952
|
if (undefined === value)
|
|
@@ -2507,20 +2974,20 @@ let LicenseAPI = (() => {
|
|
|
2507
2974
|
path: _path + ".sdk_ver",
|
|
2508
2975
|
expected: "(string | undefined)",
|
|
2509
2976
|
value: input.sdk_ver
|
|
2510
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
2511
|
-
path: _path + ".
|
|
2977
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
2978
|
+
path: _path + ".license_key",
|
|
2512
2979
|
expected: "string",
|
|
2513
|
-
value: input.
|
|
2980
|
+
value: input.license_key
|
|
2514
2981
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
2515
2982
|
path: _path + ".hardware_id",
|
|
2516
2983
|
expected: "string",
|
|
2517
2984
|
value: input.hardware_id
|
|
2518
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
2519
|
-
path: _path + ".
|
|
2985
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2986
|
+
path: _path + ".product",
|
|
2520
2987
|
expected: "string",
|
|
2521
|
-
value: input.
|
|
2988
|
+
value: input.product
|
|
2522
2989
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
2523
|
-
if (["username", "bundle_code", "license_id", "sdk_ver", "
|
|
2990
|
+
if (["username", "bundle_code", "license_id", "sdk_ver", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
2524
2991
|
return true;
|
|
2525
2992
|
const value = input[key];
|
|
2526
2993
|
if (undefined === value)
|
|
@@ -2542,10 +3009,6 @@ let LicenseAPI = (() => {
|
|
|
2542
3009
|
path: _path + ".sdk_ver",
|
|
2543
3010
|
expected: "(string | undefined)",
|
|
2544
3011
|
value: input.sdk_ver
|
|
2545
|
-
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2546
|
-
path: _path + ".product",
|
|
2547
|
-
expected: "string",
|
|
2548
|
-
value: input.product
|
|
2549
3012
|
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
2550
3013
|
path: _path + ".username",
|
|
2551
3014
|
expected: "string",
|
|
@@ -2554,8 +3017,12 @@ let LicenseAPI = (() => {
|
|
|
2554
3017
|
path: _path + ".hardware_id",
|
|
2555
3018
|
expected: "string",
|
|
2556
3019
|
value: input.hardware_id
|
|
3020
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
3021
|
+
path: _path + ".product",
|
|
3022
|
+
expected: "string",
|
|
3023
|
+
value: input.product
|
|
2557
3024
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
2558
|
-
if (["license_key", "bundle_code", "license_id", "sdk_ver", "
|
|
3025
|
+
if (["license_key", "bundle_code", "license_id", "sdk_ver", "username", "hardware_id", "product"].some(prop => key === prop))
|
|
2559
3026
|
return true;
|
|
2560
3027
|
const value = input[key];
|
|
2561
3028
|
if (undefined === value)
|
|
@@ -2580,8 +3047,8 @@ let LicenseAPI = (() => {
|
|
|
2580
3047
|
}
|
|
2581
3048
|
return input;
|
|
2582
3049
|
}; })()(payload);
|
|
2583
|
-
|
|
2584
|
-
return
|
|
3050
|
+
yield this.service.postRequest('floating/release', payload);
|
|
3051
|
+
return true;
|
|
2585
3052
|
});
|
|
2586
3053
|
}
|
|
2587
3054
|
;
|
|
@@ -2635,15 +3102,15 @@ let LicenseAPI = (() => {
|
|
|
2635
3102
|
;
|
|
2636
3103
|
getVersions(payload) {
|
|
2637
3104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2638
|
-
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.
|
|
2639
|
-
if (["
|
|
3105
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.env || "string" === typeof input.env) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.channel || "string" === typeof input.channel) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
3106
|
+
if (["username", "bundle_code", "env", "sdk_ver", "channel", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
2640
3107
|
return true;
|
|
2641
3108
|
const value = input[key];
|
|
2642
3109
|
if (undefined === value)
|
|
2643
3110
|
return true;
|
|
2644
3111
|
return true;
|
|
2645
|
-
}); const $io1 = input => (undefined === input.
|
|
2646
|
-
if (["
|
|
3112
|
+
}); const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.env || "string" === typeof input.env) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.channel || "string" === typeof input.channel) && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
3113
|
+
if (["license_key", "bundle_code", "env", "sdk_ver", "channel", "username", "hardware_id", "product"].some(prop => key === prop))
|
|
2647
3114
|
return true;
|
|
2648
3115
|
const value = input[key];
|
|
2649
3116
|
if (undefined === value)
|
|
@@ -2655,54 +3122,46 @@ let LicenseAPI = (() => {
|
|
|
2655
3122
|
if ($io0(input))
|
|
2656
3123
|
return $io0(input);
|
|
2657
3124
|
return false;
|
|
2658
|
-
})(); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
2659
|
-
path: _path + ".channel",
|
|
2660
|
-
expected: "(string | undefined)",
|
|
2661
|
-
value: input.channel
|
|
2662
|
-
}, _errorFactory)) && (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
3125
|
+
})(); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
2663
3126
|
path: _path + ".username",
|
|
2664
3127
|
expected: "(string | undefined)",
|
|
2665
3128
|
value: input.username
|
|
2666
|
-
}, _errorFactory)) && (undefined === input.env || "string" === typeof input.env || $guard(_exceptionable, {
|
|
2667
|
-
path: _path + ".env",
|
|
2668
|
-
expected: "(string | undefined)",
|
|
2669
|
-
value: input.env
|
|
2670
3129
|
}, _errorFactory)) && (undefined === input.bundle_code || "string" === typeof input.bundle_code || $guard(_exceptionable, {
|
|
2671
3130
|
path: _path + ".bundle_code",
|
|
2672
3131
|
expected: "(string | undefined)",
|
|
2673
3132
|
value: input.bundle_code
|
|
3133
|
+
}, _errorFactory)) && (undefined === input.env || "string" === typeof input.env || $guard(_exceptionable, {
|
|
3134
|
+
path: _path + ".env",
|
|
3135
|
+
expected: "(string | undefined)",
|
|
3136
|
+
value: input.env
|
|
2674
3137
|
}, _errorFactory)) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver || $guard(_exceptionable, {
|
|
2675
3138
|
path: _path + ".sdk_ver",
|
|
2676
3139
|
expected: "(string | undefined)",
|
|
2677
3140
|
value: input.sdk_ver
|
|
2678
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
2679
|
-
path: _path + ".
|
|
3141
|
+
}, _errorFactory)) && (undefined === input.channel || "string" === typeof input.channel || $guard(_exceptionable, {
|
|
3142
|
+
path: _path + ".channel",
|
|
3143
|
+
expected: "(string | undefined)",
|
|
3144
|
+
value: input.channel
|
|
3145
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
3146
|
+
path: _path + ".license_key",
|
|
2680
3147
|
expected: "string",
|
|
2681
|
-
value: input.
|
|
3148
|
+
value: input.license_key
|
|
2682
3149
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
2683
3150
|
path: _path + ".hardware_id",
|
|
2684
3151
|
expected: "string",
|
|
2685
3152
|
value: input.hardware_id
|
|
2686
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
2687
|
-
path: _path + ".
|
|
3153
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
3154
|
+
path: _path + ".product",
|
|
2688
3155
|
expected: "string",
|
|
2689
|
-
value: input.
|
|
3156
|
+
value: input.product
|
|
2690
3157
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
2691
|
-
if (["
|
|
3158
|
+
if (["username", "bundle_code", "env", "sdk_ver", "channel", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
2692
3159
|
return true;
|
|
2693
3160
|
const value = input[key];
|
|
2694
3161
|
if (undefined === value)
|
|
2695
3162
|
return true;
|
|
2696
3163
|
return true;
|
|
2697
|
-
})); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
2698
|
-
path: _path + ".channel",
|
|
2699
|
-
expected: "(string | undefined)",
|
|
2700
|
-
value: input.channel
|
|
2701
|
-
}, _errorFactory)) && (undefined === input.env || "string" === typeof input.env || $guard(_exceptionable, {
|
|
2702
|
-
path: _path + ".env",
|
|
2703
|
-
expected: "(string | undefined)",
|
|
2704
|
-
value: input.env
|
|
2705
|
-
}, _errorFactory)) && (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
3164
|
+
})); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
2706
3165
|
path: _path + ".license_key",
|
|
2707
3166
|
expected: "(string | undefined)",
|
|
2708
3167
|
value: input.license_key
|
|
@@ -2710,14 +3169,18 @@ let LicenseAPI = (() => {
|
|
|
2710
3169
|
path: _path + ".bundle_code",
|
|
2711
3170
|
expected: "(string | undefined)",
|
|
2712
3171
|
value: input.bundle_code
|
|
3172
|
+
}, _errorFactory)) && (undefined === input.env || "string" === typeof input.env || $guard(_exceptionable, {
|
|
3173
|
+
path: _path + ".env",
|
|
3174
|
+
expected: "(string | undefined)",
|
|
3175
|
+
value: input.env
|
|
2713
3176
|
}, _errorFactory)) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver || $guard(_exceptionable, {
|
|
2714
3177
|
path: _path + ".sdk_ver",
|
|
2715
3178
|
expected: "(string | undefined)",
|
|
2716
3179
|
value: input.sdk_ver
|
|
2717
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
2718
|
-
path: _path + ".
|
|
2719
|
-
expected: "string",
|
|
2720
|
-
value: input.
|
|
3180
|
+
}, _errorFactory)) && (undefined === input.channel || "string" === typeof input.channel || $guard(_exceptionable, {
|
|
3181
|
+
path: _path + ".channel",
|
|
3182
|
+
expected: "(string | undefined)",
|
|
3183
|
+
value: input.channel
|
|
2721
3184
|
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
2722
3185
|
path: _path + ".username",
|
|
2723
3186
|
expected: "string",
|
|
@@ -2726,8 +3189,12 @@ let LicenseAPI = (() => {
|
|
|
2726
3189
|
path: _path + ".hardware_id",
|
|
2727
3190
|
expected: "string",
|
|
2728
3191
|
value: input.hardware_id
|
|
3192
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
3193
|
+
path: _path + ".product",
|
|
3194
|
+
expected: "string",
|
|
3195
|
+
value: input.product
|
|
2729
3196
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
2730
|
-
if (["
|
|
3197
|
+
if (["license_key", "bundle_code", "env", "sdk_ver", "channel", "username", "hardware_id", "product"].some(prop => key === prop))
|
|
2731
3198
|
return true;
|
|
2732
3199
|
const value = input[key];
|
|
2733
3200
|
if (undefined === value)
|
|
@@ -2760,15 +3227,15 @@ let LicenseAPI = (() => {
|
|
|
2760
3227
|
;
|
|
2761
3228
|
getInstallationFile(payload) {
|
|
2762
3229
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2763
|
-
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.
|
|
2764
|
-
if (["
|
|
3230
|
+
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.env || "string" === typeof input.env) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.channel || "string" === typeof input.channel) && (undefined === input.version || "string" === typeof input.version) && "string" === typeof input.license_key && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
3231
|
+
if (["username", "bundle_code", "env", "sdk_ver", "channel", "version", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
2765
3232
|
return true;
|
|
2766
3233
|
const value = input[key];
|
|
2767
3234
|
if (undefined === value)
|
|
2768
3235
|
return true;
|
|
2769
3236
|
return true;
|
|
2770
|
-
}); const $io1 = input => (undefined === input.
|
|
2771
|
-
if (["
|
|
3237
|
+
}); const $io1 = input => (undefined === input.license_key || "string" === typeof input.license_key) && (undefined === input.bundle_code || "string" === typeof input.bundle_code) && (undefined === input.env || "string" === typeof input.env) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver) && (undefined === input.channel || "string" === typeof input.channel) && (undefined === input.version || "string" === typeof input.version) && "string" === typeof input.username && "string" === typeof input.hardware_id && "string" === typeof input.product && Object.keys(input).every(key => {
|
|
3238
|
+
if (["license_key", "bundle_code", "env", "sdk_ver", "channel", "version", "username", "hardware_id", "product"].some(prop => key === prop))
|
|
2772
3239
|
return true;
|
|
2773
3240
|
const value = input[key];
|
|
2774
3241
|
if (undefined === value)
|
|
@@ -2780,58 +3247,50 @@ let LicenseAPI = (() => {
|
|
|
2780
3247
|
if ($io0(input))
|
|
2781
3248
|
return $io0(input);
|
|
2782
3249
|
return false;
|
|
2783
|
-
})(); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
2784
|
-
path: _path + ".channel",
|
|
2785
|
-
expected: "(string | undefined)",
|
|
2786
|
-
value: input.channel
|
|
2787
|
-
}, _errorFactory)) && (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
3250
|
+
})(); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
2788
3251
|
path: _path + ".username",
|
|
2789
3252
|
expected: "(string | undefined)",
|
|
2790
3253
|
value: input.username
|
|
2791
|
-
}, _errorFactory)) && (undefined === input.env || "string" === typeof input.env || $guard(_exceptionable, {
|
|
2792
|
-
path: _path + ".env",
|
|
2793
|
-
expected: "(string | undefined)",
|
|
2794
|
-
value: input.env
|
|
2795
3254
|
}, _errorFactory)) && (undefined === input.bundle_code || "string" === typeof input.bundle_code || $guard(_exceptionable, {
|
|
2796
3255
|
path: _path + ".bundle_code",
|
|
2797
3256
|
expected: "(string | undefined)",
|
|
2798
3257
|
value: input.bundle_code
|
|
3258
|
+
}, _errorFactory)) && (undefined === input.env || "string" === typeof input.env || $guard(_exceptionable, {
|
|
3259
|
+
path: _path + ".env",
|
|
3260
|
+
expected: "(string | undefined)",
|
|
3261
|
+
value: input.env
|
|
2799
3262
|
}, _errorFactory)) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver || $guard(_exceptionable, {
|
|
2800
3263
|
path: _path + ".sdk_ver",
|
|
2801
3264
|
expected: "(string | undefined)",
|
|
2802
3265
|
value: input.sdk_ver
|
|
3266
|
+
}, _errorFactory)) && (undefined === input.channel || "string" === typeof input.channel || $guard(_exceptionable, {
|
|
3267
|
+
path: _path + ".channel",
|
|
3268
|
+
expected: "(string | undefined)",
|
|
3269
|
+
value: input.channel
|
|
2803
3270
|
}, _errorFactory)) && (undefined === input.version || "string" === typeof input.version || $guard(_exceptionable, {
|
|
2804
3271
|
path: _path + ".version",
|
|
2805
3272
|
expected: "(string | undefined)",
|
|
2806
3273
|
value: input.version
|
|
2807
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
2808
|
-
path: _path + ".
|
|
3274
|
+
}, _errorFactory)) && ("string" === typeof input.license_key || $guard(_exceptionable, {
|
|
3275
|
+
path: _path + ".license_key",
|
|
2809
3276
|
expected: "string",
|
|
2810
|
-
value: input.
|
|
3277
|
+
value: input.license_key
|
|
2811
3278
|
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
2812
3279
|
path: _path + ".hardware_id",
|
|
2813
3280
|
expected: "string",
|
|
2814
3281
|
value: input.hardware_id
|
|
2815
|
-
}, _errorFactory)) && ("string" === typeof input.
|
|
2816
|
-
path: _path + ".
|
|
3282
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
3283
|
+
path: _path + ".product",
|
|
2817
3284
|
expected: "string",
|
|
2818
|
-
value: input.
|
|
3285
|
+
value: input.product
|
|
2819
3286
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
2820
|
-
if (["
|
|
3287
|
+
if (["username", "bundle_code", "env", "sdk_ver", "channel", "version", "license_key", "hardware_id", "product"].some(prop => key === prop))
|
|
2821
3288
|
return true;
|
|
2822
3289
|
const value = input[key];
|
|
2823
3290
|
if (undefined === value)
|
|
2824
3291
|
return true;
|
|
2825
3292
|
return true;
|
|
2826
|
-
})); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.
|
|
2827
|
-
path: _path + ".channel",
|
|
2828
|
-
expected: "(string | undefined)",
|
|
2829
|
-
value: input.channel
|
|
2830
|
-
}, _errorFactory)) && (undefined === input.env || "string" === typeof input.env || $guard(_exceptionable, {
|
|
2831
|
-
path: _path + ".env",
|
|
2832
|
-
expected: "(string | undefined)",
|
|
2833
|
-
value: input.env
|
|
2834
|
-
}, _errorFactory)) && (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
3293
|
+
})); const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
2835
3294
|
path: _path + ".license_key",
|
|
2836
3295
|
expected: "(string | undefined)",
|
|
2837
3296
|
value: input.license_key
|
|
@@ -2839,18 +3298,22 @@ let LicenseAPI = (() => {
|
|
|
2839
3298
|
path: _path + ".bundle_code",
|
|
2840
3299
|
expected: "(string | undefined)",
|
|
2841
3300
|
value: input.bundle_code
|
|
3301
|
+
}, _errorFactory)) && (undefined === input.env || "string" === typeof input.env || $guard(_exceptionable, {
|
|
3302
|
+
path: _path + ".env",
|
|
3303
|
+
expected: "(string | undefined)",
|
|
3304
|
+
value: input.env
|
|
2842
3305
|
}, _errorFactory)) && (undefined === input.sdk_ver || "string" === typeof input.sdk_ver || $guard(_exceptionable, {
|
|
2843
3306
|
path: _path + ".sdk_ver",
|
|
2844
3307
|
expected: "(string | undefined)",
|
|
2845
3308
|
value: input.sdk_ver
|
|
3309
|
+
}, _errorFactory)) && (undefined === input.channel || "string" === typeof input.channel || $guard(_exceptionable, {
|
|
3310
|
+
path: _path + ".channel",
|
|
3311
|
+
expected: "(string | undefined)",
|
|
3312
|
+
value: input.channel
|
|
2846
3313
|
}, _errorFactory)) && (undefined === input.version || "string" === typeof input.version || $guard(_exceptionable, {
|
|
2847
3314
|
path: _path + ".version",
|
|
2848
3315
|
expected: "(string | undefined)",
|
|
2849
3316
|
value: input.version
|
|
2850
|
-
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
2851
|
-
path: _path + ".product",
|
|
2852
|
-
expected: "string",
|
|
2853
|
-
value: input.product
|
|
2854
3317
|
}, _errorFactory)) && ("string" === typeof input.username || $guard(_exceptionable, {
|
|
2855
3318
|
path: _path + ".username",
|
|
2856
3319
|
expected: "string",
|
|
@@ -2859,8 +3322,12 @@ let LicenseAPI = (() => {
|
|
|
2859
3322
|
path: _path + ".hardware_id",
|
|
2860
3323
|
expected: "string",
|
|
2861
3324
|
value: input.hardware_id
|
|
3325
|
+
}, _errorFactory)) && ("string" === typeof input.product || $guard(_exceptionable, {
|
|
3326
|
+
path: _path + ".product",
|
|
3327
|
+
expected: "string",
|
|
3328
|
+
value: input.product
|
|
2862
3329
|
}, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
|
|
2863
|
-
if (["
|
|
3330
|
+
if (["license_key", "bundle_code", "env", "sdk_ver", "channel", "version", "username", "hardware_id", "product"].some(prop => key === prop))
|
|
2864
3331
|
return true;
|
|
2865
3332
|
const value = input[key];
|
|
2866
3333
|
if (undefined === value)
|
|
@@ -2996,34 +3463,20 @@ let LicenseAPI = (() => {
|
|
|
2996
3463
|
return true;
|
|
2997
3464
|
}
|
|
2998
3465
|
activateAirgappedLicense(activationPayload, licenseKey, policyId) {
|
|
2999
|
-
const
|
|
3000
|
-
|
|
3001
|
-
|
|
3466
|
+
const payloadObject = activationPayload.data;
|
|
3467
|
+
if (!payloadObject) {
|
|
3468
|
+
throw { status: 500, code: 'invalid_activation_payload' };
|
|
3469
|
+
}
|
|
3470
|
+
if (String(payloadObject.id) != policyId) {
|
|
3002
3471
|
throw { status: 400, code: 'air_gap_activation_error', message: 'Policy file ID mismatch' };
|
|
3003
3472
|
}
|
|
3004
3473
|
if (activationPayload.isGuardFileEnabled) {
|
|
3005
|
-
this.checkGuard(activationPayload
|
|
3474
|
+
this.checkGuard(activationPayload, licenseKey);
|
|
3006
3475
|
}
|
|
3007
3476
|
payloadObject.license_key = licenseKey;
|
|
3008
|
-
payloadObject.
|
|
3009
|
-
payloadObject.policy_id = payloadObject.id;
|
|
3010
|
-
delete payloadObject.default_license_type;
|
|
3011
|
-
delete payloadObject.product;
|
|
3477
|
+
payloadObject.policy_id = String(payloadObject.id);
|
|
3012
3478
|
return payloadObject;
|
|
3013
3479
|
}
|
|
3014
|
-
createActivationGuard(licenseKey) {
|
|
3015
|
-
const payload = {
|
|
3016
|
-
isActivation: false,
|
|
3017
|
-
isGuardFileEnabled: false,
|
|
3018
|
-
guard: {},
|
|
3019
|
-
data: {
|
|
3020
|
-
id: licenseKey,
|
|
3021
|
-
device_id: this.getHardwareID(),
|
|
3022
|
-
date_created: (0, dayjs_1.default)().utc(),
|
|
3023
|
-
}
|
|
3024
|
-
};
|
|
3025
|
-
return payload;
|
|
3026
|
-
}
|
|
3027
3480
|
createOfflineActivationPayload(payload) {
|
|
3028
3481
|
(() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => (undefined === input.bundle_code || "string" === typeof input.bundle_code) && "string" === typeof input.hardware_id && (undefined === input.hostname || "string" === typeof input.hostname) && (undefined === input.ip || "string" === typeof input.ip) && (undefined === input.mac_address || "string" === typeof input.mac_address) && (undefined === input.os_ver || "string" === typeof input.os_ver) && "string" === typeof input.product && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io1(input.variables)) && (undefined === input.vm_info || "string" === typeof input.vm_info) && (undefined === input.license_key || "string" === typeof input.license_key); const $io1 = input => Object.keys(input).every(key => {
|
|
3029
3482
|
const value = input[key];
|
|
@@ -3307,7 +3760,7 @@ let LicenseAPI = (() => {
|
|
|
3307
3760
|
catch (error) {
|
|
3308
3761
|
throw new Error('Invalid activation data');
|
|
3309
3762
|
}
|
|
3310
|
-
(() => { 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 &&
|
|
3763
|
+
(() => { 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 => {
|
|
3311
3764
|
const value = input[key];
|
|
3312
3765
|
if (undefined === value)
|
|
3313
3766
|
return true;
|
|
@@ -3317,7 +3770,7 @@ let LicenseAPI = (() => {
|
|
|
3317
3770
|
if (undefined === value)
|
|
3318
3771
|
return true;
|
|
3319
3772
|
return undefined !== value && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && ($ia0(value) || false) || "object" === typeof value && null !== value && false === Array.isArray(value) && $io6(value)));
|
|
3320
|
-
}); const $io7 = input => "number" === typeof input.id; const $io8 = input => "number" === typeof input.product_id && (undefined === input.product_name || "string" === typeof input.product_name) && "string" === typeof input.short_code && ("
|
|
3773
|
+
}); const $io7 = input => "number" === typeof input.id; const $io8 = input => "number" === typeof input.product_id && (undefined === input.product_name || "string" === typeof input.product_name) && "string" === typeof input.short_code && ("license-key" === input.authorization_method || "user" === input.authorization_method) && ("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 $io9 = input => "number" === typeof input.id && "string" === typeof input.code && (undefined === input.name || "string" === typeof input.name) && (null === input.expiry_date || "string" === typeof input.expiry_date) && "boolean" === typeof input.is_floating && "boolean" === typeof input.is_floating_cloud && (undefined === input.floating_timeout || "number" === typeof input.floating_timeout) && (undefined === input.floating_users || "number" === typeof input.floating_users) && ("object" === typeof input.metadata && null !== input.metadata && false === Array.isArray(input.metadata) && $iu1(input.metadata)) && (undefined === input.metadata_string || "string" === typeof input.metadata_string) && "activation" === input.feature_type; const $io10 = input => "number" === typeof input.id && "string" === typeof input.code && (undefined === input.name || "string" === typeof input.name) && (null === input.expiry_date || "string" === typeof input.expiry_date) && "boolean" === typeof input.is_floating && "boolean" === typeof input.is_floating_cloud && (undefined === input.floating_timeout || "number" === typeof input.floating_timeout) && (undefined === input.floating_users || "number" === typeof input.floating_users) && ("object" === typeof input.metadata && null !== input.metadata && false === Array.isArray(input.metadata) && $iu1(input.metadata)) && (undefined === input.metadata_string || "string" === typeof input.metadata_string) && "consumption" === input.feature_type && "boolean" === typeof input.allow_negative_consumptions && "boolean" === typeof input.allow_overages && "boolean" === typeof input.allow_unlimited_consumptions && ("daily" === input.consumption_period || "weekly" === input.consumption_period || "monthly" === input.consumption_period || "annually" === input.consumption_period) && "number" === typeof input.max_consumption && "number" === typeof input.max_overages && "boolean" === typeof input.reset_consumption && "number" === typeof input.total_consumptions; const $io11 = input => "number" === typeof input.id && "string" === typeof input.email && "string" === typeof input.first_name && "boolean" === typeof input.is_initial_password && "string" === typeof input.last_name && "string" === typeof input.phone_number && (undefined === input.allow_unlimited_activations || "boolean" === typeof input.allow_unlimited_activations) && (undefined === input.max_activations || "number" === typeof input.max_activations) && (undefined === input.total_activations || "number" === typeof input.total_activations); const $io12 = input => "string" === typeof input.value && "number" === typeof input.device_id && "string" === typeof input.variable && (null === input.created_at || "string" === typeof input.created_at); const $iu0 = input => (() => {
|
|
3321
3774
|
if ("activation" === input.feature_type)
|
|
3322
3775
|
return $io9(input);
|
|
3323
3776
|
else if ("consumption" === input.feature_type)
|
|
@@ -3330,13 +3783,6 @@ let LicenseAPI = (() => {
|
|
|
3330
3783
|
if ($io5(input))
|
|
3331
3784
|
return $io5(input);
|
|
3332
3785
|
return false;
|
|
3333
|
-
})(); const $iu2 = input => (() => {
|
|
3334
|
-
if ("consumption" === input.license_type)
|
|
3335
|
-
return $io13(input);
|
|
3336
|
-
else if ("perpetual" === input.license_type || "time-limited" === input.license_type || "subscription" === input.license_type)
|
|
3337
|
-
return $io0(input);
|
|
3338
|
-
else
|
|
3339
|
-
return false;
|
|
3340
3786
|
})(); const $ia0 = input => input.every(elem => undefined !== elem && (null === elem || "string" === typeof elem || "number" === typeof elem || "boolean" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io6(elem)))); const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.id || $guard(_exceptionable, {
|
|
3341
3787
|
path: _path + ".id",
|
|
3342
3788
|
expected: "number",
|
|
@@ -3365,12 +3811,12 @@ let LicenseAPI = (() => {
|
|
|
3365
3811
|
path: _path + ".custom_fields",
|
|
3366
3812
|
expected: "Array<CustomField>",
|
|
3367
3813
|
value: input.custom_fields
|
|
3368
|
-
}, _errorFactory)) && input.custom_fields.every((elem,
|
|
3369
|
-
path: _path + ".custom_fields[" +
|
|
3814
|
+
}, _errorFactory)) && input.custom_fields.every((elem, _index5) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
3815
|
+
path: _path + ".custom_fields[" + _index5 + "]",
|
|
3370
3816
|
expected: "CustomField",
|
|
3371
3817
|
value: elem
|
|
3372
|
-
}, _errorFactory)) && $ao1(elem, _path + ".custom_fields[" +
|
|
3373
|
-
path: _path + ".custom_fields[" +
|
|
3818
|
+
}, _errorFactory)) && $ao1(elem, _path + ".custom_fields[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
3819
|
+
path: _path + ".custom_fields[" + _index5 + "]",
|
|
3374
3820
|
expected: "CustomField",
|
|
3375
3821
|
value: elem
|
|
3376
3822
|
}, _errorFactory)) || $guard(_exceptionable, {
|
|
@@ -3417,14 +3863,6 @@ let LicenseAPI = (() => {
|
|
|
3417
3863
|
path: _path + ".is_hardware_key_auth",
|
|
3418
3864
|
expected: "boolean",
|
|
3419
3865
|
value: input.is_hardware_key_auth
|
|
3420
|
-
}, _errorFactory)) && ("boolean" === typeof input.license_active || $guard(_exceptionable, {
|
|
3421
|
-
path: _path + ".license_active",
|
|
3422
|
-
expected: "boolean",
|
|
3423
|
-
value: input.license_active
|
|
3424
|
-
}, _errorFactory)) && ("boolean" === typeof input.license_enabled || $guard(_exceptionable, {
|
|
3425
|
-
path: _path + ".license_enabled",
|
|
3426
|
-
expected: "boolean",
|
|
3427
|
-
value: input.license_enabled
|
|
3428
3866
|
}, _errorFactory)) && (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
3429
3867
|
path: _path + ".license_key",
|
|
3430
3868
|
expected: "(string | undefined)",
|
|
@@ -3445,9 +3883,9 @@ let LicenseAPI = (() => {
|
|
|
3445
3883
|
path: _path + ".max_borrow_time",
|
|
3446
3884
|
expected: "number",
|
|
3447
3885
|
value: input.max_borrow_time
|
|
3448
|
-
}, _errorFactory)) && ("number" === typeof input.max_license_users || $guard(_exceptionable, {
|
|
3886
|
+
}, _errorFactory)) && (undefined === input.max_license_users || "number" === typeof input.max_license_users || $guard(_exceptionable, {
|
|
3449
3887
|
path: _path + ".max_license_users",
|
|
3450
|
-
expected: "number",
|
|
3888
|
+
expected: "(number | undefined)",
|
|
3451
3889
|
value: input.max_license_users
|
|
3452
3890
|
}, _errorFactory)) && ("number" === typeof input.max_overages || $guard(_exceptionable, {
|
|
3453
3891
|
path: _path + ".max_overages",
|
|
@@ -3469,9 +3907,9 @@ let LicenseAPI = (() => {
|
|
|
3469
3907
|
path: _path + ".metadata_string",
|
|
3470
3908
|
expected: "(string | undefined)",
|
|
3471
3909
|
value: input.metadata_string
|
|
3472
|
-
}, _errorFactory)) && ("string" === typeof input.order_store_id || $guard(_exceptionable, {
|
|
3910
|
+
}, _errorFactory)) && (undefined === input.order_store_id || "string" === typeof input.order_store_id || $guard(_exceptionable, {
|
|
3473
3911
|
path: _path + ".order_store_id",
|
|
3474
|
-
expected: "string",
|
|
3912
|
+
expected: "(string | undefined)",
|
|
3475
3913
|
value: input.order_store_id
|
|
3476
3914
|
}, _errorFactory)) && ("boolean" === typeof input.prevent_vm || $guard(_exceptionable, {
|
|
3477
3915
|
path: _path + ".prevent_vm",
|
|
@@ -3485,24 +3923,24 @@ let LicenseAPI = (() => {
|
|
|
3485
3923
|
path: _path + ".company",
|
|
3486
3924
|
expected: "__type.o4",
|
|
3487
3925
|
value: input.company
|
|
3488
|
-
}, _errorFactory)) && (("object" === typeof input.product_details && null !== input.product_details || $guard(_exceptionable, {
|
|
3926
|
+
}, _errorFactory)) && (undefined === input.product_details || ("object" === typeof input.product_details && null !== input.product_details || $guard(_exceptionable, {
|
|
3489
3927
|
path: _path + ".product_details",
|
|
3490
|
-
expected: "ProductDetailsResponse",
|
|
3928
|
+
expected: "(ProductDetailsResponse | undefined)",
|
|
3491
3929
|
value: input.product_details
|
|
3492
3930
|
}, _errorFactory)) && $ao8(input.product_details, _path + ".product_details", true && _exceptionable) || $guard(_exceptionable, {
|
|
3493
3931
|
path: _path + ".product_details",
|
|
3494
|
-
expected: "ProductDetailsResponse",
|
|
3932
|
+
expected: "(ProductDetailsResponse | undefined)",
|
|
3495
3933
|
value: input.product_details
|
|
3496
3934
|
}, _errorFactory)) && ((Array.isArray(input.product_features) || $guard(_exceptionable, {
|
|
3497
3935
|
path: _path + ".product_features",
|
|
3498
3936
|
expected: "Array<FeatureResponse>",
|
|
3499
3937
|
value: input.product_features
|
|
3500
|
-
}, _errorFactory)) && input.product_features.every((elem,
|
|
3501
|
-
path: _path + ".product_features[" +
|
|
3938
|
+
}, _errorFactory)) && input.product_features.every((elem, _index6) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
3939
|
+
path: _path + ".product_features[" + _index6 + "]",
|
|
3502
3940
|
expected: "({ id: number; code: string; name?: string | undefined; expiry_date: string | null; is_floating: boolean; is_floating_cloud: boolean; floating_timeout?: number | undefined; floating_users?: number | undefined; metadata: JSONObjectRequired; metadata_string?: string | undefined; } & { ...; } | { id: number; code: string; name?: string | undefined; expiry_date: string | null; is_floating: boolean; is_floating_cloud: boolean; floating_timeout?: number | undefined; floating_users?: number | undefined; metadata: JSONObjectRequired; metadata_string?: string | undefined; } & { ...; }.o1)",
|
|
3503
3941
|
value: elem
|
|
3504
|
-
}, _errorFactory)) && $au0(elem, _path + ".product_features[" +
|
|
3505
|
-
path: _path + ".product_features[" +
|
|
3942
|
+
}, _errorFactory)) && $au0(elem, _path + ".product_features[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
3943
|
+
path: _path + ".product_features[" + _index6 + "]",
|
|
3506
3944
|
expected: "({ id: number; code: string; name?: string | undefined; expiry_date: string | null; is_floating: boolean; is_floating_cloud: boolean; floating_timeout?: number | undefined; floating_users?: number | undefined; metadata: JSONObjectRequired; metadata_string?: string | undefined; } & { ...; } | { id: number; code: string; name?: string | undefined; expiry_date: string | null; is_floating: boolean; is_floating_cloud: boolean; floating_timeout?: number | undefined; floating_users?: number | undefined; metadata: JSONObjectRequired; metadata_string?: string | undefined; } & { ...; }.o1)",
|
|
3507
3945
|
value: elem
|
|
3508
3946
|
}, _errorFactory)) || $guard(_exceptionable, {
|
|
@@ -3533,59 +3971,43 @@ let LicenseAPI = (() => {
|
|
|
3533
3971
|
path: _path + ".trial_days",
|
|
3534
3972
|
expected: "(number | undefined)",
|
|
3535
3973
|
value: input.trial_days
|
|
3536
|
-
}, _errorFactory)) && (
|
|
3974
|
+
}, _errorFactory)) && (undefined === input.user || ("object" === typeof input.user && null !== input.user || $guard(_exceptionable, {
|
|
3975
|
+
path: _path + ".user",
|
|
3976
|
+
expected: "(LicenseUserResponse | undefined)",
|
|
3977
|
+
value: input.user
|
|
3978
|
+
}, _errorFactory)) && $ao11(input.user, _path + ".user", true && _exceptionable) || $guard(_exceptionable, {
|
|
3979
|
+
path: _path + ".user",
|
|
3980
|
+
expected: "(LicenseUserResponse | undefined)",
|
|
3981
|
+
value: input.user
|
|
3982
|
+
}, _errorFactory)) && ("perpetual" === input.license_type || "time-limited" === input.license_type || "consumption" === input.license_type || "subscription" === input.license_type || $guard(_exceptionable, {
|
|
3537
3983
|
path: _path + ".license_type",
|
|
3538
|
-
expected: "(\"perpetual\" | \"subscription\" | \"time-limited\")",
|
|
3984
|
+
expected: "(\"consumption\" | \"perpetual\" | \"subscription\" | \"time-limited\")",
|
|
3539
3985
|
value: input.license_type
|
|
3540
|
-
}, _errorFactory)) && (
|
|
3541
|
-
path: _path + ".allow_negative_consumptions",
|
|
3542
|
-
expected: "undefined",
|
|
3543
|
-
value: input.allow_negative_consumptions
|
|
3544
|
-
}, _errorFactory)) && (undefined === input.allow_negative_consumptions || $guard(_exceptionable, {
|
|
3986
|
+
}, _errorFactory)) && (undefined === input.allow_negative_consumptions || "boolean" === typeof input.allow_negative_consumptions || $guard(_exceptionable, {
|
|
3545
3987
|
path: _path + ".allow_negative_consumptions",
|
|
3546
|
-
expected: "undefined",
|
|
3988
|
+
expected: "(boolean | undefined)",
|
|
3547
3989
|
value: input.allow_negative_consumptions
|
|
3548
|
-
}, _errorFactory))
|
|
3990
|
+
}, _errorFactory)) && (undefined === input.allow_unlimited_consumptions || "boolean" === typeof input.allow_unlimited_consumptions || $guard(_exceptionable, {
|
|
3549
3991
|
path: _path + ".allow_unlimited_consumptions",
|
|
3550
|
-
expected: "undefined",
|
|
3551
|
-
value: input.allow_unlimited_consumptions
|
|
3552
|
-
}, _errorFactory)) && (undefined === input.allow_unlimited_consumptions || $guard(_exceptionable, {
|
|
3553
|
-
path: _path + ".allow_unlimited_consumptions",
|
|
3554
|
-
expected: "undefined",
|
|
3992
|
+
expected: "(boolean | undefined)",
|
|
3555
3993
|
value: input.allow_unlimited_consumptions
|
|
3556
|
-
}, _errorFactory))
|
|
3994
|
+
}, _errorFactory)) && (null === input.consumption_period || undefined === input.consumption_period || "daily" === input.consumption_period || "weekly" === input.consumption_period || "monthly" === input.consumption_period || "annually" === input.consumption_period || $guard(_exceptionable, {
|
|
3557
3995
|
path: _path + ".consumption_period",
|
|
3558
|
-
expected: "undefined",
|
|
3996
|
+
expected: "(\"annually\" | \"daily\" | \"monthly\" | \"weekly\" | null | undefined)",
|
|
3559
3997
|
value: input.consumption_period
|
|
3560
|
-
}, _errorFactory)) && (undefined === input.
|
|
3561
|
-
path: _path + ".consumption_period",
|
|
3562
|
-
expected: "undefined",
|
|
3563
|
-
value: input.consumption_period
|
|
3564
|
-
}, _errorFactory))) && ((null !== input.max_consumptions || $guard(_exceptionable, {
|
|
3565
|
-
path: _path + ".max_consumptions",
|
|
3566
|
-
expected: "undefined",
|
|
3567
|
-
value: input.max_consumptions
|
|
3568
|
-
}, _errorFactory)) && (undefined === input.max_consumptions || $guard(_exceptionable, {
|
|
3998
|
+
}, _errorFactory)) && (undefined === input.max_consumptions || "number" === typeof input.max_consumptions || $guard(_exceptionable, {
|
|
3569
3999
|
path: _path + ".max_consumptions",
|
|
3570
|
-
expected: "undefined",
|
|
4000
|
+
expected: "(number | undefined)",
|
|
3571
4001
|
value: input.max_consumptions
|
|
3572
|
-
}, _errorFactory))
|
|
3573
|
-
path: _path + ".reset_consumption",
|
|
3574
|
-
expected: "undefined",
|
|
3575
|
-
value: input.reset_consumption
|
|
3576
|
-
}, _errorFactory)) && (undefined === input.reset_consumption || $guard(_exceptionable, {
|
|
4002
|
+
}, _errorFactory)) && (undefined === input.reset_consumption || "boolean" === typeof input.reset_consumption || $guard(_exceptionable, {
|
|
3577
4003
|
path: _path + ".reset_consumption",
|
|
3578
|
-
expected: "undefined",
|
|
4004
|
+
expected: "(boolean | undefined)",
|
|
3579
4005
|
value: input.reset_consumption
|
|
3580
|
-
}, _errorFactory))
|
|
3581
|
-
path: _path + ".total_consumptions",
|
|
3582
|
-
expected: "undefined",
|
|
3583
|
-
value: input.total_consumptions
|
|
3584
|
-
}, _errorFactory)) && (undefined === input.total_consumptions || $guard(_exceptionable, {
|
|
4006
|
+
}, _errorFactory)) && (undefined === input.total_consumptions || "number" === typeof input.total_consumptions || $guard(_exceptionable, {
|
|
3585
4007
|
path: _path + ".total_consumptions",
|
|
3586
|
-
expected: "undefined",
|
|
4008
|
+
expected: "(number | undefined)",
|
|
3587
4009
|
value: input.total_consumptions
|
|
3588
|
-
}, _errorFactory))
|
|
4010
|
+
}, _errorFactory)) && ("string" === typeof input.request || $guard(_exceptionable, {
|
|
3589
4011
|
path: _path + ".request",
|
|
3590
4012
|
expected: "string",
|
|
3591
4013
|
value: input.request
|
|
@@ -3609,14 +4031,6 @@ let LicenseAPI = (() => {
|
|
|
3609
4031
|
path: _path + ".username",
|
|
3610
4032
|
expected: "(string | undefined)",
|
|
3611
4033
|
value: input.username
|
|
3612
|
-
}, _errorFactory)) && (undefined === input.user || ("object" === typeof input.user && null !== input.user || $guard(_exceptionable, {
|
|
3613
|
-
path: _path + ".user",
|
|
3614
|
-
expected: "(__type.o5 | undefined)",
|
|
3615
|
-
value: input.user
|
|
3616
|
-
}, _errorFactory)) && $ao11(input.user, _path + ".user", true && _exceptionable) || $guard(_exceptionable, {
|
|
3617
|
-
path: _path + ".user",
|
|
3618
|
-
expected: "(__type.o5 | undefined)",
|
|
3619
|
-
value: input.user
|
|
3620
4034
|
}, _errorFactory)) && (undefined === input.floating_in_use || "boolean" === typeof input.floating_in_use || $guard(_exceptionable, {
|
|
3621
4035
|
path: _path + ".floating_in_use",
|
|
3622
4036
|
expected: "(boolean | undefined)",
|
|
@@ -3629,13 +4043,13 @@ let LicenseAPI = (() => {
|
|
|
3629
4043
|
path: _path + ".variables",
|
|
3630
4044
|
expected: "(Array<__type> | undefined)",
|
|
3631
4045
|
value: input.variables
|
|
3632
|
-
}, _errorFactory)) && input.variables.every((elem,
|
|
3633
|
-
path: _path + ".variables[" +
|
|
3634
|
-
expected: "__type.
|
|
4046
|
+
}, _errorFactory)) && input.variables.every((elem, _index7) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
4047
|
+
path: _path + ".variables[" + _index7 + "]",
|
|
4048
|
+
expected: "__type.o5",
|
|
3635
4049
|
value: elem
|
|
3636
|
-
}, _errorFactory)) && $ao12(elem, _path + ".variables[" +
|
|
3637
|
-
path: _path + ".variables[" +
|
|
3638
|
-
expected: "__type.
|
|
4050
|
+
}, _errorFactory)) && $ao12(elem, _path + ".variables[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
4051
|
+
path: _path + ".variables[" + _index7 + "]",
|
|
4052
|
+
expected: "__type.o5",
|
|
3639
4053
|
value: elem
|
|
3640
4054
|
}, _errorFactory)) || $guard(_exceptionable, {
|
|
3641
4055
|
path: _path + ".variables",
|
|
@@ -3657,7 +4071,7 @@ let LicenseAPI = (() => {
|
|
|
3657
4071
|
path: _path + ".name",
|
|
3658
4072
|
expected: "string",
|
|
3659
4073
|
value: input.name
|
|
3660
|
-
}, _errorFactory)) && ("
|
|
4074
|
+
}, _errorFactory)) && ("numer" === input.data_type || "text" === input.data_type || "date/time" === input.data_type || $guard(_exceptionable, {
|
|
3661
4075
|
path: _path + ".data_type",
|
|
3662
4076
|
expected: "(\"date/time\" | \"numer\" | \"text\")",
|
|
3663
4077
|
value: input.data_type
|
|
@@ -3799,7 +4213,7 @@ let LicenseAPI = (() => {
|
|
|
3799
4213
|
path: _path + ".short_code",
|
|
3800
4214
|
expected: "string",
|
|
3801
4215
|
value: input.short_code
|
|
3802
|
-
}, _errorFactory)) && ("
|
|
4216
|
+
}, _errorFactory)) && ("license-key" === input.authorization_method || "user" === input.authorization_method || $guard(_exceptionable, {
|
|
3803
4217
|
path: _path + ".authorization_method",
|
|
3804
4218
|
expected: "(\"license-key\" | \"user\")",
|
|
3805
4219
|
value: input.authorization_method
|
|
@@ -3947,10 +4361,6 @@ let LicenseAPI = (() => {
|
|
|
3947
4361
|
path: _path + ".id",
|
|
3948
4362
|
expected: "number",
|
|
3949
4363
|
value: input.id
|
|
3950
|
-
}, _errorFactory)) && ("boolean" === typeof input.allow_unlimited_activations || $guard(_exceptionable, {
|
|
3951
|
-
path: _path + ".allow_unlimited_activations",
|
|
3952
|
-
expected: "boolean",
|
|
3953
|
-
value: input.allow_unlimited_activations
|
|
3954
4364
|
}, _errorFactory)) && ("string" === typeof input.email || $guard(_exceptionable, {
|
|
3955
4365
|
path: _path + ".email",
|
|
3956
4366
|
expected: "string",
|
|
@@ -3967,17 +4377,21 @@ let LicenseAPI = (() => {
|
|
|
3967
4377
|
path: _path + ".last_name",
|
|
3968
4378
|
expected: "string",
|
|
3969
4379
|
value: input.last_name
|
|
3970
|
-
}, _errorFactory)) && ("number" === typeof input.max_activations || $guard(_exceptionable, {
|
|
3971
|
-
path: _path + ".max_activations",
|
|
3972
|
-
expected: "number",
|
|
3973
|
-
value: input.max_activations
|
|
3974
4380
|
}, _errorFactory)) && ("string" === typeof input.phone_number || $guard(_exceptionable, {
|
|
3975
4381
|
path: _path + ".phone_number",
|
|
3976
4382
|
expected: "string",
|
|
3977
4383
|
value: input.phone_number
|
|
3978
|
-
}, _errorFactory)) && ("
|
|
4384
|
+
}, _errorFactory)) && (undefined === input.allow_unlimited_activations || "boolean" === typeof input.allow_unlimited_activations || $guard(_exceptionable, {
|
|
4385
|
+
path: _path + ".allow_unlimited_activations",
|
|
4386
|
+
expected: "(boolean | undefined)",
|
|
4387
|
+
value: input.allow_unlimited_activations
|
|
4388
|
+
}, _errorFactory)) && (undefined === input.max_activations || "number" === typeof input.max_activations || $guard(_exceptionable, {
|
|
4389
|
+
path: _path + ".max_activations",
|
|
4390
|
+
expected: "(number | undefined)",
|
|
4391
|
+
value: input.max_activations
|
|
4392
|
+
}, _errorFactory)) && (undefined === input.total_activations || "number" === typeof input.total_activations || $guard(_exceptionable, {
|
|
3979
4393
|
path: _path + ".total_activations",
|
|
3980
|
-
expected: "number",
|
|
4394
|
+
expected: "(number | undefined)",
|
|
3981
4395
|
value: input.total_activations
|
|
3982
4396
|
}, _errorFactory)); const $ao12 = (input, _path, _exceptionable = true) => ("string" === typeof input.value || $guard(_exceptionable, {
|
|
3983
4397
|
path: _path + ".value",
|
|
@@ -3995,298 +4409,6 @@ let LicenseAPI = (() => {
|
|
|
3995
4409
|
path: _path + ".created_at",
|
|
3996
4410
|
expected: "(null | string)",
|
|
3997
4411
|
value: input.created_at
|
|
3998
|
-
}, _errorFactory)); const $ao13 = (input, _path, _exceptionable = true) => ("number" === typeof input.id || $guard(_exceptionable, {
|
|
3999
|
-
path: _path + ".id",
|
|
4000
|
-
expected: "number",
|
|
4001
|
-
value: input.id
|
|
4002
|
-
}, _errorFactory)) && ("boolean" === typeof input.allow_grace_period || $guard(_exceptionable, {
|
|
4003
|
-
path: _path + ".allow_grace_period",
|
|
4004
|
-
expected: "boolean",
|
|
4005
|
-
value: input.allow_grace_period
|
|
4006
|
-
}, _errorFactory)) && ("boolean" === typeof input.allow_overages || $guard(_exceptionable, {
|
|
4007
|
-
path: _path + ".allow_overages",
|
|
4008
|
-
expected: "boolean",
|
|
4009
|
-
value: input.allow_overages
|
|
4010
|
-
}, _errorFactory)) && ("boolean" === typeof input.allow_unlimited_activations || $guard(_exceptionable, {
|
|
4011
|
-
path: _path + ".allow_unlimited_activations",
|
|
4012
|
-
expected: "boolean",
|
|
4013
|
-
value: input.allow_unlimited_activations
|
|
4014
|
-
}, _errorFactory)) && ("boolean" === typeof input.allow_offline_activation || $guard(_exceptionable, {
|
|
4015
|
-
path: _path + ".allow_offline_activation",
|
|
4016
|
-
expected: "boolean",
|
|
4017
|
-
value: input.allow_offline_activation
|
|
4018
|
-
}, _errorFactory)) && ("boolean" === typeof input.can_borrow || $guard(_exceptionable, {
|
|
4019
|
-
path: _path + ".can_borrow",
|
|
4020
|
-
expected: "boolean",
|
|
4021
|
-
value: input.can_borrow
|
|
4022
|
-
}, _errorFactory)) && ((Array.isArray(input.custom_fields) || $guard(_exceptionable, {
|
|
4023
|
-
path: _path + ".custom_fields",
|
|
4024
|
-
expected: "Array<CustomField>",
|
|
4025
|
-
value: input.custom_fields
|
|
4026
|
-
}, _errorFactory)) && input.custom_fields.every((elem, _index11) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
4027
|
-
path: _path + ".custom_fields[" + _index11 + "]",
|
|
4028
|
-
expected: "CustomField",
|
|
4029
|
-
value: elem
|
|
4030
|
-
}, _errorFactory)) && $ao1(elem, _path + ".custom_fields[" + _index11 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
4031
|
-
path: _path + ".custom_fields[" + _index11 + "]",
|
|
4032
|
-
expected: "CustomField",
|
|
4033
|
-
value: elem
|
|
4034
|
-
}, _errorFactory)) || $guard(_exceptionable, {
|
|
4035
|
-
path: _path + ".custom_fields",
|
|
4036
|
-
expected: "Array<CustomField>",
|
|
4037
|
-
value: input.custom_fields
|
|
4038
|
-
}, _errorFactory)) && (("object" === typeof input.customer && null !== input.customer || $guard(_exceptionable, {
|
|
4039
|
-
path: _path + ".customer",
|
|
4040
|
-
expected: "CustomerResponse",
|
|
4041
|
-
value: input.customer
|
|
4042
|
-
}, _errorFactory)) && $ao2(input.customer, _path + ".customer", true && _exceptionable) || $guard(_exceptionable, {
|
|
4043
|
-
path: _path + ".customer",
|
|
4044
|
-
expected: "CustomerResponse",
|
|
4045
|
-
value: input.customer
|
|
4046
|
-
}, _errorFactory)) && ("boolean" === typeof input.enable_maintenance_period || $guard(_exceptionable, {
|
|
4047
|
-
path: _path + ".enable_maintenance_period",
|
|
4048
|
-
expected: "boolean",
|
|
4049
|
-
value: input.enable_maintenance_period
|
|
4050
|
-
}, _errorFactory)) && ("number" === typeof input.floating_timeout || $guard(_exceptionable, {
|
|
4051
|
-
path: _path + ".floating_timeout",
|
|
4052
|
-
expected: "number",
|
|
4053
|
-
value: input.floating_timeout
|
|
4054
|
-
}, _errorFactory)) && (undefined === input.floating_users || "number" === typeof input.floating_users || $guard(_exceptionable, {
|
|
4055
|
-
path: _path + ".floating_users",
|
|
4056
|
-
expected: "(number | undefined)",
|
|
4057
|
-
value: input.floating_users
|
|
4058
|
-
}, _errorFactory)) && (null === input.grace_period || "number" === typeof input.grace_period || $guard(_exceptionable, {
|
|
4059
|
-
path: _path + ".grace_period",
|
|
4060
|
-
expected: "(null | number)",
|
|
4061
|
-
value: input.grace_period
|
|
4062
|
-
}, _errorFactory)) && ("boolean" === typeof input.is_air_gapped || $guard(_exceptionable, {
|
|
4063
|
-
path: _path + ".is_air_gapped",
|
|
4064
|
-
expected: "boolean",
|
|
4065
|
-
value: input.is_air_gapped
|
|
4066
|
-
}, _errorFactory)) && ("boolean" === typeof input.is_floating || $guard(_exceptionable, {
|
|
4067
|
-
path: _path + ".is_floating",
|
|
4068
|
-
expected: "boolean",
|
|
4069
|
-
value: input.is_floating
|
|
4070
|
-
}, _errorFactory)) && ("boolean" === typeof input.is_floating_cloud || $guard(_exceptionable, {
|
|
4071
|
-
path: _path + ".is_floating_cloud",
|
|
4072
|
-
expected: "boolean",
|
|
4073
|
-
value: input.is_floating_cloud
|
|
4074
|
-
}, _errorFactory)) && ("boolean" === typeof input.is_hardware_key_auth || $guard(_exceptionable, {
|
|
4075
|
-
path: _path + ".is_hardware_key_auth",
|
|
4076
|
-
expected: "boolean",
|
|
4077
|
-
value: input.is_hardware_key_auth
|
|
4078
|
-
}, _errorFactory)) && ("boolean" === typeof input.license_active || $guard(_exceptionable, {
|
|
4079
|
-
path: _path + ".license_active",
|
|
4080
|
-
expected: "boolean",
|
|
4081
|
-
value: input.license_active
|
|
4082
|
-
}, _errorFactory)) && ("boolean" === typeof input.license_enabled || $guard(_exceptionable, {
|
|
4083
|
-
path: _path + ".license_enabled",
|
|
4084
|
-
expected: "boolean",
|
|
4085
|
-
value: input.license_enabled
|
|
4086
|
-
}, _errorFactory)) && (undefined === input.license_key || "string" === typeof input.license_key || $guard(_exceptionable, {
|
|
4087
|
-
path: _path + ".license_key",
|
|
4088
|
-
expected: "(string | undefined)",
|
|
4089
|
-
value: input.license_key
|
|
4090
|
-
}, _errorFactory)) && (undefined === input.license_template_id || "number" === typeof input.license_template_id || $guard(_exceptionable, {
|
|
4091
|
-
path: _path + ".license_template_id",
|
|
4092
|
-
expected: "(number | undefined)",
|
|
4093
|
-
value: input.license_template_id
|
|
4094
|
-
}, _errorFactory)) && (null === input.maintenance_period || "string" === typeof input.maintenance_period || $guard(_exceptionable, {
|
|
4095
|
-
path: _path + ".maintenance_period",
|
|
4096
|
-
expected: "(null | string)",
|
|
4097
|
-
value: input.maintenance_period
|
|
4098
|
-
}, _errorFactory)) && ("number" === typeof input.max_activations || $guard(_exceptionable, {
|
|
4099
|
-
path: _path + ".max_activations",
|
|
4100
|
-
expected: "number",
|
|
4101
|
-
value: input.max_activations
|
|
4102
|
-
}, _errorFactory)) && ("number" === typeof input.max_borrow_time || $guard(_exceptionable, {
|
|
4103
|
-
path: _path + ".max_borrow_time",
|
|
4104
|
-
expected: "number",
|
|
4105
|
-
value: input.max_borrow_time
|
|
4106
|
-
}, _errorFactory)) && ("number" === typeof input.max_license_users || $guard(_exceptionable, {
|
|
4107
|
-
path: _path + ".max_license_users",
|
|
4108
|
-
expected: "number",
|
|
4109
|
-
value: input.max_license_users
|
|
4110
|
-
}, _errorFactory)) && ("number" === typeof input.max_overages || $guard(_exceptionable, {
|
|
4111
|
-
path: _path + ".max_overages",
|
|
4112
|
-
expected: "number",
|
|
4113
|
-
value: input.max_overages
|
|
4114
|
-
}, _errorFactory)) && (undefined === input.max_transfers || "number" === typeof input.max_transfers || $guard(_exceptionable, {
|
|
4115
|
-
path: _path + ".max_transfers",
|
|
4116
|
-
expected: "(number | undefined)",
|
|
4117
|
-
value: input.max_transfers
|
|
4118
|
-
}, _errorFactory)) && (("object" === typeof input.metadata && null !== input.metadata && false === Array.isArray(input.metadata) || $guard(_exceptionable, {
|
|
4119
|
-
path: _path + ".metadata",
|
|
4120
|
-
expected: "(__type.o1 | __type.o2)",
|
|
4121
|
-
value: input.metadata
|
|
4122
|
-
}, _errorFactory)) && $au1(input.metadata, _path + ".metadata", true && _exceptionable) || $guard(_exceptionable, {
|
|
4123
|
-
path: _path + ".metadata",
|
|
4124
|
-
expected: "(__type.o1 | __type.o2)",
|
|
4125
|
-
value: input.metadata
|
|
4126
|
-
}, _errorFactory)) && (undefined === input.metadata_string || "string" === typeof input.metadata_string || $guard(_exceptionable, {
|
|
4127
|
-
path: _path + ".metadata_string",
|
|
4128
|
-
expected: "(string | undefined)",
|
|
4129
|
-
value: input.metadata_string
|
|
4130
|
-
}, _errorFactory)) && ("string" === typeof input.order_store_id || $guard(_exceptionable, {
|
|
4131
|
-
path: _path + ".order_store_id",
|
|
4132
|
-
expected: "string",
|
|
4133
|
-
value: input.order_store_id
|
|
4134
|
-
}, _errorFactory)) && ("boolean" === typeof input.prevent_vm || $guard(_exceptionable, {
|
|
4135
|
-
path: _path + ".prevent_vm",
|
|
4136
|
-
expected: "boolean",
|
|
4137
|
-
value: input.prevent_vm
|
|
4138
|
-
}, _errorFactory)) && (("object" === typeof input.company && null !== input.company || $guard(_exceptionable, {
|
|
4139
|
-
path: _path + ".company",
|
|
4140
|
-
expected: "__type.o4",
|
|
4141
|
-
value: input.company
|
|
4142
|
-
}, _errorFactory)) && $ao7(input.company, _path + ".company", true && _exceptionable) || $guard(_exceptionable, {
|
|
4143
|
-
path: _path + ".company",
|
|
4144
|
-
expected: "__type.o4",
|
|
4145
|
-
value: input.company
|
|
4146
|
-
}, _errorFactory)) && (("object" === typeof input.product_details && null !== input.product_details || $guard(_exceptionable, {
|
|
4147
|
-
path: _path + ".product_details",
|
|
4148
|
-
expected: "ProductDetailsResponse",
|
|
4149
|
-
value: input.product_details
|
|
4150
|
-
}, _errorFactory)) && $ao8(input.product_details, _path + ".product_details", true && _exceptionable) || $guard(_exceptionable, {
|
|
4151
|
-
path: _path + ".product_details",
|
|
4152
|
-
expected: "ProductDetailsResponse",
|
|
4153
|
-
value: input.product_details
|
|
4154
|
-
}, _errorFactory)) && ((Array.isArray(input.product_features) || $guard(_exceptionable, {
|
|
4155
|
-
path: _path + ".product_features",
|
|
4156
|
-
expected: "Array<FeatureResponse>",
|
|
4157
|
-
value: input.product_features
|
|
4158
|
-
}, _errorFactory)) && input.product_features.every((elem, _index12) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
4159
|
-
path: _path + ".product_features[" + _index12 + "]",
|
|
4160
|
-
expected: "({ id: number; code: string; name?: string | undefined; expiry_date: string | null; is_floating: boolean; is_floating_cloud: boolean; floating_timeout?: number | undefined; floating_users?: number | undefined; metadata: JSONObjectRequired; metadata_string?: string | undefined; } & { ...; } | { id: number; code: string; name?: string | undefined; expiry_date: string | null; is_floating: boolean; is_floating_cloud: boolean; floating_timeout?: number | undefined; floating_users?: number | undefined; metadata: JSONObjectRequired; metadata_string?: string | undefined; } & { ...; }.o1)",
|
|
4161
|
-
value: elem
|
|
4162
|
-
}, _errorFactory)) && $au0(elem, _path + ".product_features[" + _index12 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
4163
|
-
path: _path + ".product_features[" + _index12 + "]",
|
|
4164
|
-
expected: "({ id: number; code: string; name?: string | undefined; expiry_date: string | null; is_floating: boolean; is_floating_cloud: boolean; floating_timeout?: number | undefined; floating_users?: number | undefined; metadata: JSONObjectRequired; metadata_string?: string | undefined; } & { ...; } | { id: number; code: string; name?: string | undefined; expiry_date: string | null; is_floating: boolean; is_floating_cloud: boolean; floating_timeout?: number | undefined; floating_users?: number | undefined; metadata: JSONObjectRequired; metadata_string?: string | undefined; } & { ...; }.o1)",
|
|
4165
|
-
value: elem
|
|
4166
|
-
}, _errorFactory)) || $guard(_exceptionable, {
|
|
4167
|
-
path: _path + ".product_features",
|
|
4168
|
-
expected: "Array<FeatureResponse>",
|
|
4169
|
-
value: input.product_features
|
|
4170
|
-
}, _errorFactory)) && (null === input.start_date || "string" === typeof input.start_date || $guard(_exceptionable, {
|
|
4171
|
-
path: _path + ".start_date",
|
|
4172
|
-
expected: "(null | string)",
|
|
4173
|
-
value: input.start_date
|
|
4174
|
-
}, _errorFactory)) && ("number" === typeof input.times_activated || $guard(_exceptionable, {
|
|
4175
|
-
path: _path + ".times_activated",
|
|
4176
|
-
expected: "number",
|
|
4177
|
-
value: input.times_activated
|
|
4178
|
-
}, _errorFactory)) && ("number" === typeof input.transfer_count || $guard(_exceptionable, {
|
|
4179
|
-
path: _path + ".transfer_count",
|
|
4180
|
-
expected: "number",
|
|
4181
|
-
value: input.transfer_count
|
|
4182
|
-
}, _errorFactory)) && (null === input.validity_period || "string" === typeof input.validity_period || $guard(_exceptionable, {
|
|
4183
|
-
path: _path + ".validity_period",
|
|
4184
|
-
expected: "(null | string)",
|
|
4185
|
-
value: input.validity_period
|
|
4186
|
-
}, _errorFactory)) && ("boolean" === typeof input.is_trial || $guard(_exceptionable, {
|
|
4187
|
-
path: _path + ".is_trial",
|
|
4188
|
-
expected: "boolean",
|
|
4189
|
-
value: input.is_trial
|
|
4190
|
-
}, _errorFactory)) && (undefined === input.trial_days || "number" === typeof input.trial_days || $guard(_exceptionable, {
|
|
4191
|
-
path: _path + ".trial_days",
|
|
4192
|
-
expected: "(number | undefined)",
|
|
4193
|
-
value: input.trial_days
|
|
4194
|
-
}, _errorFactory)) && ("consumption" === input.license_type || $guard(_exceptionable, {
|
|
4195
|
-
path: _path + ".license_type",
|
|
4196
|
-
expected: "\"consumption\"",
|
|
4197
|
-
value: input.license_type
|
|
4198
|
-
}, _errorFactory)) && ("boolean" === typeof input.allow_negative_consumptions || $guard(_exceptionable, {
|
|
4199
|
-
path: _path + ".allow_negative_consumptions",
|
|
4200
|
-
expected: "boolean",
|
|
4201
|
-
value: input.allow_negative_consumptions
|
|
4202
|
-
}, _errorFactory)) && ("boolean" === typeof input.allow_unlimited_consumptions || $guard(_exceptionable, {
|
|
4203
|
-
path: _path + ".allow_unlimited_consumptions",
|
|
4204
|
-
expected: "boolean",
|
|
4205
|
-
value: input.allow_unlimited_consumptions
|
|
4206
|
-
}, _errorFactory)) && (null === input.consumption_period || "daily" === input.consumption_period || "weekly" === input.consumption_period || "monthly" === input.consumption_period || "annually" === input.consumption_period || $guard(_exceptionable, {
|
|
4207
|
-
path: _path + ".consumption_period",
|
|
4208
|
-
expected: "(\"annually\" | \"daily\" | \"monthly\" | \"weekly\" | null)",
|
|
4209
|
-
value: input.consumption_period
|
|
4210
|
-
}, _errorFactory)) && ("number" === typeof input.max_consumptions || $guard(_exceptionable, {
|
|
4211
|
-
path: _path + ".max_consumptions",
|
|
4212
|
-
expected: "number",
|
|
4213
|
-
value: input.max_consumptions
|
|
4214
|
-
}, _errorFactory)) && ("boolean" === typeof input.reset_consumption || $guard(_exceptionable, {
|
|
4215
|
-
path: _path + ".reset_consumption",
|
|
4216
|
-
expected: "boolean",
|
|
4217
|
-
value: input.reset_consumption
|
|
4218
|
-
}, _errorFactory)) && ("number" === typeof input.total_consumptions || $guard(_exceptionable, {
|
|
4219
|
-
path: _path + ".total_consumptions",
|
|
4220
|
-
expected: "number",
|
|
4221
|
-
value: input.total_consumptions
|
|
4222
|
-
}, _errorFactory)) && ("string" === typeof input.request || $guard(_exceptionable, {
|
|
4223
|
-
path: _path + ".request",
|
|
4224
|
-
expected: "string",
|
|
4225
|
-
value: input.request
|
|
4226
|
-
}, _errorFactory)) && ("boolean" === typeof input.active || $guard(_exceptionable, {
|
|
4227
|
-
path: _path + ".active",
|
|
4228
|
-
expected: "boolean",
|
|
4229
|
-
value: input.active
|
|
4230
|
-
}, _errorFactory)) && ("number" === typeof input.device_id || $guard(_exceptionable, {
|
|
4231
|
-
path: _path + ".device_id",
|
|
4232
|
-
expected: "number",
|
|
4233
|
-
value: input.device_id
|
|
4234
|
-
}, _errorFactory)) && ("boolean" === typeof input.is_expired || $guard(_exceptionable, {
|
|
4235
|
-
path: _path + ".is_expired",
|
|
4236
|
-
expected: "boolean",
|
|
4237
|
-
value: input.is_expired
|
|
4238
|
-
}, _errorFactory)) && ("string" === typeof input.hardware_id || $guard(_exceptionable, {
|
|
4239
|
-
path: _path + ".hardware_id",
|
|
4240
|
-
expected: "string",
|
|
4241
|
-
value: input.hardware_id
|
|
4242
|
-
}, _errorFactory)) && (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
|
|
4243
|
-
path: _path + ".username",
|
|
4244
|
-
expected: "(string | undefined)",
|
|
4245
|
-
value: input.username
|
|
4246
|
-
}, _errorFactory)) && (undefined === input.user || ("object" === typeof input.user && null !== input.user || $guard(_exceptionable, {
|
|
4247
|
-
path: _path + ".user",
|
|
4248
|
-
expected: "(__type.o5 | undefined)",
|
|
4249
|
-
value: input.user
|
|
4250
|
-
}, _errorFactory)) && $ao11(input.user, _path + ".user", true && _exceptionable) || $guard(_exceptionable, {
|
|
4251
|
-
path: _path + ".user",
|
|
4252
|
-
expected: "(__type.o5 | undefined)",
|
|
4253
|
-
value: input.user
|
|
4254
|
-
}, _errorFactory)) && (undefined === input.floating_in_use || "boolean" === typeof input.floating_in_use || $guard(_exceptionable, {
|
|
4255
|
-
path: _path + ".floating_in_use",
|
|
4256
|
-
expected: "(boolean | undefined)",
|
|
4257
|
-
value: input.floating_in_use
|
|
4258
|
-
}, _errorFactory)) && ("string" === typeof input.license_signature || $guard(_exceptionable, {
|
|
4259
|
-
path: _path + ".license_signature",
|
|
4260
|
-
expected: "string",
|
|
4261
|
-
value: input.license_signature
|
|
4262
|
-
}, _errorFactory)) && (undefined === input.variables || (Array.isArray(input.variables) || $guard(_exceptionable, {
|
|
4263
|
-
path: _path + ".variables",
|
|
4264
|
-
expected: "(Array<__type> | undefined)",
|
|
4265
|
-
value: input.variables
|
|
4266
|
-
}, _errorFactory)) && input.variables.every((elem, _index13) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
|
4267
|
-
path: _path + ".variables[" + _index13 + "]",
|
|
4268
|
-
expected: "__type.o6",
|
|
4269
|
-
value: elem
|
|
4270
|
-
}, _errorFactory)) && $ao12(elem, _path + ".variables[" + _index13 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
4271
|
-
path: _path + ".variables[" + _index13 + "]",
|
|
4272
|
-
expected: "__type.o6",
|
|
4273
|
-
value: elem
|
|
4274
|
-
}, _errorFactory)) || $guard(_exceptionable, {
|
|
4275
|
-
path: _path + ".variables",
|
|
4276
|
-
expected: "(Array<__type> | undefined)",
|
|
4277
|
-
value: input.variables
|
|
4278
|
-
}, _errorFactory)) && ("string" === typeof input.date || $guard(_exceptionable, {
|
|
4279
|
-
path: _path + ".date",
|
|
4280
|
-
expected: "string",
|
|
4281
|
-
value: input.date
|
|
4282
|
-
}, _errorFactory)) && ("string" === typeof input.offline_signature || $guard(_exceptionable, {
|
|
4283
|
-
path: _path + ".offline_signature",
|
|
4284
|
-
expected: "string",
|
|
4285
|
-
value: input.offline_signature
|
|
4286
|
-
}, _errorFactory)) && ("string" === typeof input.license_signature_v2 || $guard(_exceptionable, {
|
|
4287
|
-
path: _path + ".license_signature_v2",
|
|
4288
|
-
expected: "string",
|
|
4289
|
-
value: input.license_signature_v2
|
|
4290
4412
|
}, _errorFactory)); const $au0 = (input, _path, _exceptionable = true) => (() => {
|
|
4291
4413
|
if ("activation" === input.feature_type)
|
|
4292
4414
|
return $ao9(input, _path, true && _exceptionable);
|
|
@@ -4302,43 +4424,32 @@ let LicenseAPI = (() => {
|
|
|
4302
4424
|
path: _path,
|
|
4303
4425
|
expected: "(__type.o1 | __type.o2)",
|
|
4304
4426
|
value: input
|
|
4305
|
-
}, _errorFactory); const $
|
|
4306
|
-
|
|
4307
|
-
return $ao13(input, _path, true && _exceptionable);
|
|
4308
|
-
else if ("perpetual" === input.license_type || "time-limited" === input.license_type || "subscription" === input.license_type)
|
|
4309
|
-
return $ao0(input, _path, true && _exceptionable);
|
|
4310
|
-
else
|
|
4311
|
-
return $guard(_exceptionable, {
|
|
4312
|
-
path: _path,
|
|
4313
|
-
expected: "({ id: number; allow_grace_period: boolean; allow_overages: boolean; allow_unlimited_activations: boolean; allow_offline_activation: boolean; can_borrow: boolean; custom_fields: CustomField[]; ... 31 more ...; trial_days?: number | undefined; } & { ...; } & { ...; } & { ...; } & { ...; }.o1 | { id: number; allow_grace_period: boolean; allow_overages: boolean; allow_unlimited_activations: boolean; allow_offline_activation: boolean; can_borrow: boolean; custom_fields: CustomField[]; ... 31 more ...; trial_days?: number | undefined; } & { ...; } & { ...; } & { ...; } & { ...; })",
|
|
4314
|
-
value: input
|
|
4315
|
-
}, _errorFactory);
|
|
4316
|
-
})(); const $aa0 = (input, _path, _exceptionable = true) => input.every((elem, _index14) => (undefined !== elem || $guard(_exceptionable, {
|
|
4317
|
-
path: _path + "[" + _index14 + "]",
|
|
4427
|
+
}, _errorFactory); const $aa0 = (input, _path, _exceptionable = true) => input.every((elem, _index8) => (undefined !== elem || $guard(_exceptionable, {
|
|
4428
|
+
path: _path + "[" + _index8 + "]",
|
|
4318
4429
|
expected: "(Array<JSONValue> | __type.o3 | boolean | null | number | string)",
|
|
4319
4430
|
value: elem
|
|
4320
|
-
}, _errorFactory)) && (null === elem || "string" === typeof elem || "number" === typeof elem || "boolean" === typeof elem || (Array.isArray(elem) && ($aa0(elem, _path + "[" +
|
|
4321
|
-
path: _path + "[" +
|
|
4431
|
+
}, _errorFactory)) && (null === elem || "string" === typeof elem || "number" === typeof elem || "boolean" === typeof elem || (Array.isArray(elem) && ($aa0(elem, _path + "[" + _index8 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
4432
|
+
path: _path + "[" + _index8 + "]",
|
|
4322
4433
|
expected: "Array<JSONValue>",
|
|
4323
4434
|
value: elem
|
|
4324
|
-
}, _errorFactory)) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $ao6(elem, _path + "[" +
|
|
4325
|
-
path: _path + "[" +
|
|
4435
|
+
}, _errorFactory)) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $ao6(elem, _path + "[" + _index8 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
|
4436
|
+
path: _path + "[" + _index8 + "]",
|
|
4326
4437
|
expected: "(Array<JSONValue> | __type.o3 | boolean | null | number | string)",
|
|
4327
4438
|
value: elem
|
|
4328
4439
|
}, _errorFactory)) || $guard(_exceptionable, {
|
|
4329
|
-
path: _path + "[" +
|
|
4440
|
+
path: _path + "[" + _index8 + "]",
|
|
4330
4441
|
expected: "(Array<JSONValue> | __type.o3 | boolean | null | number | string)",
|
|
4331
4442
|
value: elem
|
|
4332
|
-
}, _errorFactory))); const __is = input => "object" === typeof input && null !== input && $
|
|
4443
|
+
}, _errorFactory))); const __is = input => "object" === typeof input && null !== input && $io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
4333
4444
|
if (false === __is(input)) {
|
|
4334
4445
|
_errorFactory = errorFactory;
|
|
4335
4446
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $guard(true, {
|
|
4336
4447
|
path: _path + "",
|
|
4337
|
-
expected: "
|
|
4448
|
+
expected: "ActivateOfflineResponse",
|
|
4338
4449
|
value: input
|
|
4339
|
-
}, _errorFactory)) && $
|
|
4450
|
+
}, _errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
4340
4451
|
path: _path + "",
|
|
4341
|
-
expected: "
|
|
4452
|
+
expected: "ActivateOfflineResponse",
|
|
4342
4453
|
value: input
|
|
4343
4454
|
}, _errorFactory))(input, "$input", true);
|
|
4344
4455
|
}
|