addigy 2.10.4 → 2.11.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/index.d.ts +7 -0
- package/index.js +14 -1
- package/lib/addigy.utils.d.ts +0 -2
- package/lib/addigy.utils.js +1 -2
- package/lib/users/users.d.ts +2 -2
- package/lib/users/users.js +2 -1
- package/lib/v2/addigy-v2.d.ts +14 -0
- package/lib/v2/addigy-v2.js +31 -0
- package/lib/v2/certs-v2.d.ts +7 -0
- package/lib/v2/certs-v2.js +22 -0
- package/lib/v2/devices-v2.d.ts +7 -0
- package/lib/v2/devices-v2.js +22 -0
- package/lib/v2/pagination-v2.d.ts +6 -0
- package/lib/v2/pagination-v2.js +48 -0
- package/lib/v2/policies-v2.d.ts +8 -0
- package/lib/v2/policies-v2.js +26 -0
- package/lib/v2/users-v2.d.ts +10 -0
- package/lib/v2/users-v2.js +46 -0
- package/lib/v2/v2.types.d.ts +31 -0
- package/lib/v2/v2.types.js +2 -0
- package/package.json +20 -21
package/index.d.ts
CHANGED
|
@@ -29,3 +29,10 @@ export { Software } from './lib/software/software';
|
|
|
29
29
|
export * from './lib/software/software.types';
|
|
30
30
|
export { Users } from './lib/users/users';
|
|
31
31
|
export * from './lib/users/user.types';
|
|
32
|
+
export { AddigyV2 } from './lib/v2/addigy-v2';
|
|
33
|
+
export { CertsV2 } from './lib/v2/certs-v2';
|
|
34
|
+
export { DevicesV2 } from './lib/v2/devices-v2';
|
|
35
|
+
export { PaginationV2 } from './lib/v2/pagination-v2';
|
|
36
|
+
export { PoliciesV2 } from './lib/v2/policies-v2';
|
|
37
|
+
export { UsersV2 } from './lib/v2/users-v2';
|
|
38
|
+
export * from './lib/v2/v2.types';
|
package/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Users = exports.Software = exports.ScreenConnect = exports.Profiles = exports.Policies = exports.MdmProfiles = exports.MdmPolicies = exports.MdmConfigurations = exports.Maintenance = exports.Integrations = exports.Files = exports.Facts = exports.Devices = exports.Certs = exports.Billing = exports.Applications = exports.Auth = exports.Alerts = exports.Addigy = void 0;
|
|
17
|
+
exports.UsersV2 = exports.PoliciesV2 = exports.PaginationV2 = exports.DevicesV2 = exports.CertsV2 = exports.AddigyV2 = exports.Users = exports.Software = exports.ScreenConnect = exports.Profiles = exports.Policies = exports.MdmProfiles = exports.MdmPolicies = exports.MdmConfigurations = exports.Maintenance = exports.Integrations = exports.Files = exports.Facts = exports.Devices = exports.Certs = exports.Billing = exports.Applications = exports.Auth = exports.Alerts = exports.Addigy = void 0;
|
|
18
18
|
__exportStar(require("./lib/types"), exports);
|
|
19
19
|
var addigy_1 = require("./lib/addigy");
|
|
20
20
|
Object.defineProperty(exports, "Addigy", { enumerable: true, get: function () { return addigy_1.Addigy; } });
|
|
@@ -65,3 +65,16 @@ __exportStar(require("./lib/software/software.types"), exports);
|
|
|
65
65
|
var users_1 = require("./lib/users/users");
|
|
66
66
|
Object.defineProperty(exports, "Users", { enumerable: true, get: function () { return users_1.Users; } });
|
|
67
67
|
__exportStar(require("./lib/users/user.types"), exports);
|
|
68
|
+
var addigy_v2_1 = require("./lib/v2/addigy-v2");
|
|
69
|
+
Object.defineProperty(exports, "AddigyV2", { enumerable: true, get: function () { return addigy_v2_1.AddigyV2; } });
|
|
70
|
+
var certs_v2_1 = require("./lib/v2/certs-v2");
|
|
71
|
+
Object.defineProperty(exports, "CertsV2", { enumerable: true, get: function () { return certs_v2_1.CertsV2; } });
|
|
72
|
+
var devices_v2_1 = require("./lib/v2/devices-v2");
|
|
73
|
+
Object.defineProperty(exports, "DevicesV2", { enumerable: true, get: function () { return devices_v2_1.DevicesV2; } });
|
|
74
|
+
var pagination_v2_1 = require("./lib/v2/pagination-v2");
|
|
75
|
+
Object.defineProperty(exports, "PaginationV2", { enumerable: true, get: function () { return pagination_v2_1.PaginationV2; } });
|
|
76
|
+
var policies_v2_1 = require("./lib/v2/policies-v2");
|
|
77
|
+
Object.defineProperty(exports, "PoliciesV2", { enumerable: true, get: function () { return policies_v2_1.PoliciesV2; } });
|
|
78
|
+
var users_v2_1 = require("./lib/v2/users-v2");
|
|
79
|
+
Object.defineProperty(exports, "UsersV2", { enumerable: true, get: function () { return users_v2_1.UsersV2; } });
|
|
80
|
+
__exportStar(require("./lib/v2/v2.types"), exports);
|
package/lib/addigy.utils.d.ts
CHANGED
package/lib/addigy.utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAxiosHttpAgents =
|
|
3
|
+
exports.getAxiosHttpAgents = getAxiosHttpAgents;
|
|
4
4
|
const http_1 = require("http-cookie-agent/http");
|
|
5
5
|
const tough_cookie_1 = require("tough-cookie");
|
|
6
6
|
function getAxiosHttpAgents() {
|
|
@@ -9,4 +9,3 @@ function getAxiosHttpAgents() {
|
|
|
9
9
|
httpsAgent: new http_1.HttpsCookieAgent({ cookies: { jar: new tough_cookie_1.CookieJar() } }),
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
exports.getAxiosHttpAgents = getAxiosHttpAgents;
|
package/lib/users/users.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IAddigyInternalAuthObject } from '../auth/auth.types';
|
|
2
|
-
import { UserRoles } from './user.types';
|
|
2
|
+
import { User, UserRoles } from './user.types';
|
|
3
3
|
export declare class Users {
|
|
4
4
|
private readonly http;
|
|
5
5
|
createUser(authObject: IAddigyInternalAuthObject, email: string, name: string, policies: string[] | undefined, role: UserRoles | string, phone?: string): Promise<object[]>;
|
|
6
6
|
updateUser(authObject: IAddigyInternalAuthObject, email: string, name: string, policies: string[] | undefined, role: string, phone?: string): Promise<object[]>;
|
|
7
7
|
deleteUser(authObject: IAddigyInternalAuthObject, email: string): Promise<object[]>;
|
|
8
|
-
getUsers(authObject: IAddigyInternalAuthObject): Promise<
|
|
8
|
+
getUsers(authObject: IAddigyInternalAuthObject): Promise<User[]>;
|
|
9
9
|
}
|
package/lib/users/users.js
CHANGED
|
@@ -87,6 +87,7 @@ class Users {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
async getUsers(authObject) {
|
|
90
|
+
var _a, _b;
|
|
90
91
|
try {
|
|
91
92
|
let res = await this.http.get('https://app-prod.addigy.com/api/account', {
|
|
92
93
|
headers: {
|
|
@@ -94,7 +95,7 @@ class Users {
|
|
|
94
95
|
},
|
|
95
96
|
method: 'GET',
|
|
96
97
|
});
|
|
97
|
-
return res.data.users;
|
|
98
|
+
return (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.users) !== null && _b !== void 0 ? _b : [];
|
|
98
99
|
}
|
|
99
100
|
catch (err) {
|
|
100
101
|
throw err;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CertsV2 } from './certs-v2';
|
|
2
|
+
import { DevicesV2 } from './devices-v2';
|
|
3
|
+
import { PoliciesV2 } from './policies-v2';
|
|
4
|
+
import { IAddigyV2Config } from './v2.types';
|
|
5
|
+
import { UsersV2 } from './users-v2';
|
|
6
|
+
export declare class AddigyV2 {
|
|
7
|
+
private readonly config;
|
|
8
|
+
certs: CertsV2;
|
|
9
|
+
devices: DevicesV2;
|
|
10
|
+
policies: PoliciesV2;
|
|
11
|
+
users: UsersV2;
|
|
12
|
+
private readonly http;
|
|
13
|
+
constructor(config: IAddigyV2Config);
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AddigyV2 = void 0;
|
|
7
|
+
const axios_1 = __importDefault(require("axios"));
|
|
8
|
+
const addigy_utils_1 = require("../addigy.utils");
|
|
9
|
+
const certs_v2_1 = require("./certs-v2");
|
|
10
|
+
const devices_v2_1 = require("./devices-v2");
|
|
11
|
+
const policies_v2_1 = require("./policies-v2");
|
|
12
|
+
const users_v2_1 = require("./users-v2");
|
|
13
|
+
class AddigyV2 {
|
|
14
|
+
constructor(config) {
|
|
15
|
+
this.config = config;
|
|
16
|
+
this.http = axios_1.default.create({
|
|
17
|
+
baseURL: 'https://api.addigy.com/api/v2',
|
|
18
|
+
...(0, addigy_utils_1.getAxiosHttpAgents)(),
|
|
19
|
+
headers: {
|
|
20
|
+
'content-type': 'application/json',
|
|
21
|
+
accept: 'application/json',
|
|
22
|
+
'x-api-key': this.config.apiKey,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
this.certs = new certs_v2_1.CertsV2(this.http);
|
|
26
|
+
this.devices = new devices_v2_1.DevicesV2(this.http);
|
|
27
|
+
this.policies = new policies_v2_1.PoliciesV2(this.http);
|
|
28
|
+
this.users = new users_v2_1.UsersV2(this.http);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.AddigyV2 = AddigyV2;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CertsV2 = void 0;
|
|
4
|
+
const pagination_v2_1 = require("./pagination-v2");
|
|
5
|
+
class CertsV2 {
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
async list(options) {
|
|
10
|
+
const baseRequest = {};
|
|
11
|
+
return pagination_v2_1.PaginationV2.fetchItems(async ({ page, per_page }) => {
|
|
12
|
+
const requestBody = pagination_v2_1.PaginationV2.buildRequestBody(baseRequest, {
|
|
13
|
+
...options,
|
|
14
|
+
page,
|
|
15
|
+
perPage: per_page,
|
|
16
|
+
});
|
|
17
|
+
const response = await this.http.post('/mdm/certificates/query', requestBody);
|
|
18
|
+
return response.data;
|
|
19
|
+
}, options);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.CertsV2 = CertsV2;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DevicesV2 = void 0;
|
|
4
|
+
const pagination_v2_1 = require("./pagination-v2");
|
|
5
|
+
class DevicesV2 {
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
async list(options) {
|
|
10
|
+
const baseRequest = {};
|
|
11
|
+
return pagination_v2_1.PaginationV2.fetchItems(async ({ page, per_page }) => {
|
|
12
|
+
const requestBody = pagination_v2_1.PaginationV2.buildRequestBody(baseRequest, {
|
|
13
|
+
...options,
|
|
14
|
+
page,
|
|
15
|
+
perPage: per_page,
|
|
16
|
+
});
|
|
17
|
+
const response = await this.http.post('/devices', requestBody);
|
|
18
|
+
return response.data;
|
|
19
|
+
}, options);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.DevicesV2 = DevicesV2;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { V2ListOptions, V2ListRequestBody, V2PaginatedResponse, V2PaginationRequest } from './v2.types';
|
|
2
|
+
export declare class PaginationV2 {
|
|
3
|
+
private static readonly DEFAULT_PER_PAGE;
|
|
4
|
+
static buildRequestBody(baseRequest: V2ListRequestBody, options?: V2ListOptions): V2ListRequestBody;
|
|
5
|
+
static fetchItems<T>(getPage: (request: V2PaginationRequest) => Promise<V2PaginatedResponse<T>>, options?: V2ListOptions): Promise<T[]>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaginationV2 = void 0;
|
|
4
|
+
class PaginationV2 {
|
|
5
|
+
static buildRequestBody(baseRequest, options) {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
const requestBody = {
|
|
8
|
+
...baseRequest,
|
|
9
|
+
page: (_a = options === null || options === void 0 ? void 0 : options.page) !== null && _a !== void 0 ? _a : 1,
|
|
10
|
+
per_page: (_b = options === null || options === void 0 ? void 0 : options.perPage) !== null && _b !== void 0 ? _b : PaginationV2.DEFAULT_PER_PAGE,
|
|
11
|
+
};
|
|
12
|
+
if (options === null || options === void 0 ? void 0 : options.sortField) {
|
|
13
|
+
requestBody.sort_field = options.sortField;
|
|
14
|
+
}
|
|
15
|
+
if (options === null || options === void 0 ? void 0 : options.sortDirection) {
|
|
16
|
+
requestBody.sort_direction = options.sortDirection;
|
|
17
|
+
}
|
|
18
|
+
return requestBody;
|
|
19
|
+
}
|
|
20
|
+
static async fetchItems(getPage, options) {
|
|
21
|
+
var _a, _b, _c, _d, _e, _f;
|
|
22
|
+
const shouldPaginate = (_a = options === null || options === void 0 ? void 0 : options.paginate) !== null && _a !== void 0 ? _a : true;
|
|
23
|
+
const perPage = (_b = options === null || options === void 0 ? void 0 : options.perPage) !== null && _b !== void 0 ? _b : PaginationV2.DEFAULT_PER_PAGE;
|
|
24
|
+
let page = (_c = options === null || options === void 0 ? void 0 : options.page) !== null && _c !== void 0 ? _c : 1;
|
|
25
|
+
const allItems = [];
|
|
26
|
+
for (;;) {
|
|
27
|
+
const response = await getPage({ page, per_page: perPage });
|
|
28
|
+
const items = (_d = response === null || response === void 0 ? void 0 : response.items) !== null && _d !== void 0 ? _d : [];
|
|
29
|
+
const metadata = response === null || response === void 0 ? void 0 : response.metadata;
|
|
30
|
+
allItems.push(...items);
|
|
31
|
+
if (!shouldPaginate)
|
|
32
|
+
break;
|
|
33
|
+
if (typeof (metadata === null || metadata === void 0 ? void 0 : metadata.page_count) === 'number' && page >= metadata.page_count)
|
|
34
|
+
break;
|
|
35
|
+
const effectivePerPage = (_e = metadata === null || metadata === void 0 ? void 0 : metadata.per_page) !== null && _e !== void 0 ? _e : perPage;
|
|
36
|
+
if (items.length === 0 || items.length < effectivePerPage)
|
|
37
|
+
break;
|
|
38
|
+
const currentPage = (_f = metadata === null || metadata === void 0 ? void 0 : metadata.page) !== null && _f !== void 0 ? _f : page;
|
|
39
|
+
const nextPage = currentPage + 1;
|
|
40
|
+
if (nextPage <= page)
|
|
41
|
+
break;
|
|
42
|
+
page = nextPage;
|
|
43
|
+
}
|
|
44
|
+
return allItems;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.PaginationV2 = PaginationV2;
|
|
48
|
+
PaginationV2.DEFAULT_PER_PAGE = 100;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { V2ListOptions } from './v2.types';
|
|
3
|
+
export declare class PoliciesV2 {
|
|
4
|
+
private readonly http;
|
|
5
|
+
constructor(http: AxiosInstance);
|
|
6
|
+
list(options?: V2ListOptions): Promise<object[]>;
|
|
7
|
+
create(name: string): Promise<object>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PoliciesV2 = void 0;
|
|
4
|
+
const pagination_v2_1 = require("./pagination-v2");
|
|
5
|
+
class PoliciesV2 {
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
async list(options) {
|
|
10
|
+
const baseRequest = {};
|
|
11
|
+
return pagination_v2_1.PaginationV2.fetchItems(async ({ page, per_page }) => {
|
|
12
|
+
const requestBody = pagination_v2_1.PaginationV2.buildRequestBody(baseRequest, {
|
|
13
|
+
...options,
|
|
14
|
+
page,
|
|
15
|
+
perPage: per_page,
|
|
16
|
+
});
|
|
17
|
+
const response = await this.http.post('/oa/policies/query', requestBody);
|
|
18
|
+
return response.data;
|
|
19
|
+
}, options);
|
|
20
|
+
}
|
|
21
|
+
async create(name) {
|
|
22
|
+
const response = await this.http.post('/policies', { name });
|
|
23
|
+
return response.data;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.PoliciesV2 = PoliciesV2;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { V2ListOptions } from './v2.types';
|
|
3
|
+
export declare class UsersV2 {
|
|
4
|
+
private readonly http;
|
|
5
|
+
constructor(http: AxiosInstance);
|
|
6
|
+
get(organizationId: string, options?: V2ListOptions): Promise<object[]>;
|
|
7
|
+
list(organizationId: string, options?: V2ListOptions): Promise<object[]>;
|
|
8
|
+
update(email: string, name: string, policies: string[], role: string, phone?: string): Promise<object>;
|
|
9
|
+
remove(email: string): Promise<object>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UsersV2 = void 0;
|
|
4
|
+
const pagination_v2_1 = require("./pagination-v2");
|
|
5
|
+
class UsersV2 {
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
async get(organizationId, options) {
|
|
10
|
+
return this.list(organizationId, options);
|
|
11
|
+
}
|
|
12
|
+
async list(organizationId, options) {
|
|
13
|
+
const baseRequest = {};
|
|
14
|
+
return pagination_v2_1.PaginationV2.fetchItems(async ({ page, per_page }) => {
|
|
15
|
+
const requestBody = pagination_v2_1.PaginationV2.buildRequestBody(baseRequest, {
|
|
16
|
+
...options,
|
|
17
|
+
page,
|
|
18
|
+
perPage: per_page,
|
|
19
|
+
});
|
|
20
|
+
const response = await this.http.post(`/o/${encodeURIComponent(organizationId)}/users/query`, requestBody);
|
|
21
|
+
return response.data;
|
|
22
|
+
}, options);
|
|
23
|
+
}
|
|
24
|
+
async update(email, name, policies, role, phone) {
|
|
25
|
+
const requestBody = {
|
|
26
|
+
email,
|
|
27
|
+
name,
|
|
28
|
+
role,
|
|
29
|
+
policies,
|
|
30
|
+
};
|
|
31
|
+
if (typeof phone === 'string') {
|
|
32
|
+
requestBody.phone = phone;
|
|
33
|
+
}
|
|
34
|
+
const response = await this.http.put('/users', requestBody);
|
|
35
|
+
return response.data;
|
|
36
|
+
}
|
|
37
|
+
async remove(email) {
|
|
38
|
+
const response = await this.http.delete('/users', {
|
|
39
|
+
params: {
|
|
40
|
+
email,
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
return response.data;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UsersV2 = UsersV2;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface IAddigyV2Config {
|
|
2
|
+
apiKey: string;
|
|
3
|
+
}
|
|
4
|
+
export type V2SortDirection = 'asc' | 'desc';
|
|
5
|
+
export interface V2ListOptions {
|
|
6
|
+
page?: number;
|
|
7
|
+
perPage?: number;
|
|
8
|
+
sortField?: string;
|
|
9
|
+
sortDirection?: V2SortDirection;
|
|
10
|
+
paginate?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface V2PaginatedMetadata {
|
|
13
|
+
page?: number;
|
|
14
|
+
per_page?: number;
|
|
15
|
+
page_count?: number;
|
|
16
|
+
total?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface V2PaginatedResponse<T> {
|
|
19
|
+
items?: T[];
|
|
20
|
+
metadata?: V2PaginatedMetadata;
|
|
21
|
+
}
|
|
22
|
+
export type V2ListRequestBody = Record<string, unknown> & {
|
|
23
|
+
page?: number;
|
|
24
|
+
per_page?: number;
|
|
25
|
+
sort_field?: string;
|
|
26
|
+
sort_direction?: V2SortDirection;
|
|
27
|
+
};
|
|
28
|
+
export interface V2PaginationRequest {
|
|
29
|
+
page: number;
|
|
30
|
+
per_page: number;
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -6,31 +6,30 @@
|
|
|
6
6
|
}
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@expo/plist": "0.
|
|
10
|
-
"axios": "1.
|
|
11
|
-
"http-cookie-agent": "
|
|
12
|
-
"tough-cookie": "
|
|
13
|
-
"uuid": "
|
|
9
|
+
"@expo/plist": "0.5.2",
|
|
10
|
+
"axios": "1.13.6",
|
|
11
|
+
"http-cookie-agent": "7.0.3",
|
|
12
|
+
"tough-cookie": "6.0.0",
|
|
13
|
+
"uuid": "11.1.0"
|
|
14
14
|
},
|
|
15
15
|
"description": "",
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@pliancy/eslint-config-ts": "1.1.1",
|
|
18
18
|
"@pliancy/semantic-release-config-npm": "2.2.0",
|
|
19
|
-
"@types/jest": "
|
|
20
|
-
"@types/node": "
|
|
19
|
+
"@types/jest": "30.0.0",
|
|
20
|
+
"@types/node": "22.13.9",
|
|
21
21
|
"@types/tough-cookie": "4.0.5",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"cpy-cli": "5.0.0",
|
|
22
|
+
"commitizen": "4.3.1",
|
|
23
|
+
"concurrently": "9.2.1",
|
|
24
|
+
"cpy-cli": "7.0.0",
|
|
26
25
|
"cz-conventional-changelog": "3.3.0",
|
|
27
|
-
"husky": "9.
|
|
28
|
-
"jest": "
|
|
29
|
-
"open": "
|
|
26
|
+
"husky": "9.1.7",
|
|
27
|
+
"jest": "30.2.0",
|
|
28
|
+
"open": "11.0.0",
|
|
30
29
|
"pinst": "3.0.0",
|
|
31
|
-
"rimraf": "
|
|
32
|
-
"ts-jest": "29.
|
|
33
|
-
"typescript": "5.
|
|
30
|
+
"rimraf": "6.1.3",
|
|
31
|
+
"ts-jest": "29.4.6",
|
|
32
|
+
"typescript": "5.9.3"
|
|
34
33
|
},
|
|
35
34
|
"keywords": [
|
|
36
35
|
"addigy",
|
|
@@ -46,10 +45,10 @@
|
|
|
46
45
|
"url": "https://github.com/pliancy/addigy-node"
|
|
47
46
|
},
|
|
48
47
|
"scripts": {
|
|
49
|
-
"build": "
|
|
48
|
+
"build": "yarn clean && yarn test && yarn tsc && yarn copy",
|
|
50
49
|
"build:check": "tsc --noEmit",
|
|
51
50
|
"clean": "rimraf coverage dist tmp",
|
|
52
|
-
"copy": "pinst --disable && cpy package.json dist && cpy README.md dist && pinst --enable",
|
|
51
|
+
"copy": "pinst --disable && mkdir -p dist && cpy package.json dist/ && cpy README.md dist/ && pinst --enable",
|
|
53
52
|
"lint": "eslint \"src/**/*.ts\" --fix",
|
|
54
53
|
"_postinstall": "husky install",
|
|
55
54
|
"qa": "concurrently 'yarn lint' 'yarn test' ' yarn clean' 'yarn build:check'",
|
|
@@ -58,9 +57,9 @@
|
|
|
58
57
|
"tsc": "tsc -p tsconfig.build.json"
|
|
59
58
|
},
|
|
60
59
|
"types": "index.d.ts",
|
|
61
|
-
"version": "2.
|
|
60
|
+
"version": "2.11.0",
|
|
62
61
|
"volta": {
|
|
63
|
-
"node": "
|
|
62
|
+
"node": "22.14.0",
|
|
64
63
|
"yarn": "1.22.22"
|
|
65
64
|
}
|
|
66
65
|
}
|