@artaio/node-api 0.27.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.md +21 -0
- package/README.md +48 -0
- package/dist/lib/ArtaClient.d.ts +21 -0
- package/dist/lib/ArtaClient.js +155 -0
- package/dist/lib/MetadataTypes.d.ts +96 -0
- package/dist/lib/MetadataTypes.js +2 -0
- package/dist/lib/arta.d.ts +45 -0
- package/dist/lib/arta.js +57 -0
- package/dist/lib/endpoint/attachment.d.ts +32 -0
- package/dist/lib/endpoint/attachment.js +27 -0
- package/dist/lib/endpoint/emailRules.d.ts +30 -0
- package/dist/lib/endpoint/emailRules.js +33 -0
- package/dist/lib/endpoint/emailSubscriptions.d.ts +32 -0
- package/dist/lib/endpoint/emailSubscriptions.js +33 -0
- package/dist/lib/endpoint/endpoint.d.ts +26 -0
- package/dist/lib/endpoint/endpoint.js +168 -0
- package/dist/lib/endpoint/hostedSessions.d.ts +53 -0
- package/dist/lib/endpoint/hostedSessions.js +81 -0
- package/dist/lib/endpoint/invoicePayments.d.ts +24 -0
- package/dist/lib/endpoint/invoicePayments.js +26 -0
- package/dist/lib/endpoint/invoices.d.ts +27 -0
- package/dist/lib/endpoint/invoices.js +27 -0
- package/dist/lib/endpoint/keys.d.ts +28 -0
- package/dist/lib/endpoint/keys.js +30 -0
- package/dist/lib/endpoint/logs.d.ts +29 -0
- package/dist/lib/endpoint/logs.js +27 -0
- package/dist/lib/endpoint/metadata.d.ts +67 -0
- package/dist/lib/endpoint/metadata.js +56 -0
- package/dist/lib/endpoint/organization.d.ts +31 -0
- package/dist/lib/endpoint/organization.js +84 -0
- package/dist/lib/endpoint/payments.d.ts +21 -0
- package/dist/lib/endpoint/payments.js +26 -0
- package/dist/lib/endpoint/requests.d.ts +80 -0
- package/dist/lib/endpoint/requests.js +113 -0
- package/dist/lib/endpoint/shipments.d.ts +80 -0
- package/dist/lib/endpoint/shipments.js +44 -0
- package/dist/lib/endpoint/trackings.d.ts +25 -0
- package/dist/lib/endpoint/trackings.js +64 -0
- package/dist/lib/endpoint/uploads.d.ts +36 -0
- package/dist/lib/endpoint/uploads.js +27 -0
- package/dist/lib/endpoint/webhookDeliveries.d.ts +26 -0
- package/dist/lib/endpoint/webhookDeliveries.js +21 -0
- package/dist/lib/endpoint/webhooks.d.ts +35 -0
- package/dist/lib/endpoint/webhooks.js +124 -0
- package/dist/lib/error.d.ts +8 -0
- package/dist/lib/error.js +54 -0
- package/dist/lib/index.d.ts +19 -0
- package/dist/lib/index.js +20 -0
- package/dist/lib/logging.d.ts +17 -0
- package/dist/lib/logging.js +79 -0
- package/dist/lib/net/HttpClient.d.ts +19 -0
- package/dist/lib/net/HttpClient.js +2 -0
- package/dist/lib/net/NodeHttpClient.d.ts +20 -0
- package/dist/lib/net/NodeHttpClient.js +203 -0
- package/dist/lib/net/RestClient.d.ts +6 -0
- package/dist/lib/net/RestClient.js +2 -0
- package/dist/lib/pagination.d.ts +9 -0
- package/dist/lib/pagination.js +2 -0
- package/dist/lib/queryParams.d.ts +7 -0
- package/dist/lib/queryParams.js +23 -0
- package/dist/lib/search.d.ts +3 -0
- package/dist/lib/search.js +2 -0
- package/dist/lib/utils.d.ts +9 -0
- package/dist/lib/utils.js +24 -0
- package/dist/package.json +49 -0
- package/package.json +58 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
46
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
|
+
function step(op) {
|
|
50
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
53
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
|
+
switch (op[0]) {
|
|
55
|
+
case 0: case 1: t = op; break;
|
|
56
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
57
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
58
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
59
|
+
default:
|
|
60
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
61
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
62
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
63
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
64
|
+
if (t[2]) _.ops.pop();
|
|
65
|
+
_.trys.pop(); continue;
|
|
66
|
+
}
|
|
67
|
+
op = body.call(thisArg, _);
|
|
68
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
69
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73
|
+
exports.NodeHttpClient = exports.NodeHttpClientResponse = void 0;
|
|
74
|
+
var http = __importStar(require("http"));
|
|
75
|
+
var https = __importStar(require("https"));
|
|
76
|
+
var logging_1 = require("../logging");
|
|
77
|
+
var defaultHttpAgent = new http.Agent({ keepAlive: true });
|
|
78
|
+
var defaultHttpsAgent = new https.Agent({ keepAlive: true });
|
|
79
|
+
var NodeHttpClientResponse = /** @class */ (function () {
|
|
80
|
+
function NodeHttpClientResponse(res) {
|
|
81
|
+
this.res = res;
|
|
82
|
+
this.rawBody = '';
|
|
83
|
+
this.statusCode = res.statusCode;
|
|
84
|
+
this.headers = res.headers;
|
|
85
|
+
}
|
|
86
|
+
NodeHttpClientResponse.prototype.body = function () {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88
|
+
var bodyPromise;
|
|
89
|
+
var _this = this;
|
|
90
|
+
return __generator(this, function (_a) {
|
|
91
|
+
switch (_a.label) {
|
|
92
|
+
case 0:
|
|
93
|
+
if (!(this.rawBody !== '')) return [3 /*break*/, 2];
|
|
94
|
+
return [4 /*yield*/, Promise.resolve(this.rawBody)];
|
|
95
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
96
|
+
case 2:
|
|
97
|
+
bodyPromise = new Promise(function (resolve) {
|
|
98
|
+
_this.rawBody = '';
|
|
99
|
+
_this.res.setEncoding('utf8');
|
|
100
|
+
_this.res.on('data', function (chunk) {
|
|
101
|
+
_this.rawBody += chunk;
|
|
102
|
+
});
|
|
103
|
+
_this.res.once('end', function () {
|
|
104
|
+
resolve(_this.rawBody);
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
return [4 /*yield*/, bodyPromise];
|
|
108
|
+
case 3: return [2 /*return*/, _a.sent()];
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
NodeHttpClientResponse.prototype.json = function () {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
115
|
+
var body;
|
|
116
|
+
return __generator(this, function (_a) {
|
|
117
|
+
switch (_a.label) {
|
|
118
|
+
case 0: return [4 /*yield*/, this.body()];
|
|
119
|
+
case 1:
|
|
120
|
+
body = _a.sent();
|
|
121
|
+
return [2 /*return*/, JSON.parse(body)];
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
return NodeHttpClientResponse;
|
|
127
|
+
}());
|
|
128
|
+
exports.NodeHttpClientResponse = NodeHttpClientResponse;
|
|
129
|
+
function initParams(params) {
|
|
130
|
+
var defaultParams = {
|
|
131
|
+
protocol: 'https',
|
|
132
|
+
port: 443,
|
|
133
|
+
path: '/',
|
|
134
|
+
method: 'get',
|
|
135
|
+
headers: {},
|
|
136
|
+
requestData: '',
|
|
137
|
+
timeout: 30000,
|
|
138
|
+
};
|
|
139
|
+
return __assign(__assign({}, defaultParams), params);
|
|
140
|
+
}
|
|
141
|
+
var NodeHttpClient = /** @class */ (function () {
|
|
142
|
+
function NodeHttpClient(agent) {
|
|
143
|
+
this.agent = agent;
|
|
144
|
+
this.logger = (0, logging_1.getLogger)();
|
|
145
|
+
}
|
|
146
|
+
NodeHttpClient.prototype.request = function (host, params) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
148
|
+
var _a, protocol, port, path, method, timeout, headers, requestData, isInsecureConnection, agent, requestPromise;
|
|
149
|
+
return __generator(this, function (_b) {
|
|
150
|
+
switch (_b.label) {
|
|
151
|
+
case 0:
|
|
152
|
+
_a = initParams(params), protocol = _a.protocol, port = _a.port, path = _a.path, method = _a.method, timeout = _a.timeout, headers = _a.headers, requestData = _a.requestData;
|
|
153
|
+
isInsecureConnection = protocol === 'http';
|
|
154
|
+
agent = this.agent;
|
|
155
|
+
if (agent == null) {
|
|
156
|
+
agent = isInsecureConnection ? defaultHttpAgent : defaultHttpsAgent;
|
|
157
|
+
}
|
|
158
|
+
this.logger.debug("[".concat(method, "] ").concat(protocol, "://").concat(host, ":").concat(port).concat(path));
|
|
159
|
+
requestPromise = new Promise(function (resolve, reject) {
|
|
160
|
+
var req = (isInsecureConnection ? http : https).request({
|
|
161
|
+
host: host,
|
|
162
|
+
port: port,
|
|
163
|
+
path: path,
|
|
164
|
+
method: method,
|
|
165
|
+
agent: agent,
|
|
166
|
+
headers: headers,
|
|
167
|
+
ciphers: 'DEFAULT:!aNULL:!eNULL:!LOW:!EXPORT:!SSLv2:!MD5',
|
|
168
|
+
});
|
|
169
|
+
req.setTimeout(timeout, function () {
|
|
170
|
+
var err = new Error("Request timed out to ".concat(host, ":").concat(port));
|
|
171
|
+
req.destroy(err);
|
|
172
|
+
reject(err);
|
|
173
|
+
});
|
|
174
|
+
req.on('response', function (res) {
|
|
175
|
+
resolve(new NodeHttpClientResponse(res));
|
|
176
|
+
});
|
|
177
|
+
req.on('error', function (error) {
|
|
178
|
+
reject(error);
|
|
179
|
+
});
|
|
180
|
+
req.once('socket', function (socket) {
|
|
181
|
+
if (socket.connecting) {
|
|
182
|
+
socket.once(isInsecureConnection ? 'connect' : 'secureConnect', function () {
|
|
183
|
+
// Send payload; we're safe:
|
|
184
|
+
req.write(requestData);
|
|
185
|
+
req.end();
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
// we're already connected
|
|
190
|
+
req.write(requestData);
|
|
191
|
+
req.end();
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
return [4 /*yield*/, requestPromise];
|
|
196
|
+
case 1: return [2 /*return*/, _b.sent()];
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
return NodeHttpClient;
|
|
202
|
+
}());
|
|
203
|
+
exports.NodeHttpClient = NodeHttpClient;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseQueryParams = exports.defaultQueryParams = void 0;
|
|
4
|
+
exports.defaultQueryParams = {
|
|
5
|
+
page: 1,
|
|
6
|
+
page_size: 20,
|
|
7
|
+
};
|
|
8
|
+
var parseQueryParams = function (params) {
|
|
9
|
+
var parsedParams = '';
|
|
10
|
+
for (var _i = 0, _a = Object.entries(params); _i < _a.length; _i++) {
|
|
11
|
+
var _b = _a[_i], key = _b[0], value = _b[1];
|
|
12
|
+
if (key && value) {
|
|
13
|
+
if (parsedParams === '') {
|
|
14
|
+
parsedParams = "?".concat(key, "=").concat(value);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
parsedParams += "&".concat(key, "=").concat(value);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return parsedParams;
|
|
22
|
+
};
|
|
23
|
+
exports.parseQueryParams = parseQueryParams;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface DatedInterface {
|
|
2
|
+
updated_at?: Date;
|
|
3
|
+
created_at: Date;
|
|
4
|
+
}
|
|
5
|
+
export declare function createDateAsUTC(dateStr: string): Date;
|
|
6
|
+
export declare function convertDatesToUtc(artaResponse: any): any;
|
|
7
|
+
export type Nullable<T> = T | null;
|
|
8
|
+
export type NullableString = Nullable<string>;
|
|
9
|
+
export declare const parseService: (s: any) => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseService = exports.convertDatesToUtc = exports.createDateAsUTC = void 0;
|
|
4
|
+
function createDateAsUTC(dateStr) {
|
|
5
|
+
var date = new Date(dateStr);
|
|
6
|
+
var timestamp = Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
7
|
+
return new Date(timestamp);
|
|
8
|
+
}
|
|
9
|
+
exports.createDateAsUTC = createDateAsUTC;
|
|
10
|
+
function convertDatesToUtc(artaResponse) {
|
|
11
|
+
if (artaResponse.updated_at) {
|
|
12
|
+
artaResponse.updated_at = createDateAsUTC(artaResponse.updated_at);
|
|
13
|
+
}
|
|
14
|
+
artaResponse.created_at = createDateAsUTC(artaResponse.created_at);
|
|
15
|
+
return artaResponse;
|
|
16
|
+
}
|
|
17
|
+
exports.convertDatesToUtc = convertDatesToUtc;
|
|
18
|
+
var parseService = function (s) {
|
|
19
|
+
s.amount = Number(s.amount);
|
|
20
|
+
if (s.included_services) {
|
|
21
|
+
s.included_services.forEach(exports.parseService);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.parseService = parseService;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "arta-node",
|
|
3
|
+
"version": "0.26.1",
|
|
4
|
+
"description": "The Arta Node library provides a seamless integration to Arta API for applications running on Node.js using both Typescript or Javascript.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "tsc -p tsconfig-build.json",
|
|
7
|
+
"test": "npm run lint && jest --coverage --detectOpenHandles --verbose",
|
|
8
|
+
"lint": "eslint .",
|
|
9
|
+
"lint:fix": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"",
|
|
10
|
+
"postinstall": "husky install",
|
|
11
|
+
"prepublishOnly": "pinst --disable",
|
|
12
|
+
"postpublish": "pinst --enable"
|
|
13
|
+
},
|
|
14
|
+
"types": "dist/lib/index.d.ts",
|
|
15
|
+
"module": "dist/lib/index.js",
|
|
16
|
+
"main": "dist/lib/index.js",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist/"
|
|
19
|
+
],
|
|
20
|
+
"keywords": [],
|
|
21
|
+
"author": "ARTA <hello@arta.io> (https://arta.io/)",
|
|
22
|
+
"contributors": [
|
|
23
|
+
"Otavio Jacobi <otaviojacobi@gmail.com>",
|
|
24
|
+
"Marina Boaventura <marina@arta.io>",
|
|
25
|
+
"Dylan Fareed <email@dylanfareed.com>",
|
|
26
|
+
"Selman Uysal <selman@arta.io>"
|
|
27
|
+
],
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@commitlint/cli": "^17.1.2",
|
|
30
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
31
|
+
"@types/jest": "^29.1.2",
|
|
32
|
+
"@types/nock": "^11.1.0",
|
|
33
|
+
"@types/node": "^18.8.2",
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^5.39.0",
|
|
35
|
+
"@typescript-eslint/parser": "^5.40.1",
|
|
36
|
+
"eslint": "^8.24.0",
|
|
37
|
+
"eslint-config-prettier": "^8.5.0",
|
|
38
|
+
"eslint-plugin-import": "^2.26.0",
|
|
39
|
+
"eslint-plugin-n": "^15.3.0",
|
|
40
|
+
"eslint-plugin-promise": "^6.0.1",
|
|
41
|
+
"husky": "^8.0.1",
|
|
42
|
+
"jest": "^29.2.0",
|
|
43
|
+
"nock": "^13.2.9",
|
|
44
|
+
"pinst": "^3.0.0",
|
|
45
|
+
"prettier": "2.7.1",
|
|
46
|
+
"ts-jest": "^29.0.3",
|
|
47
|
+
"typescript": "^4.8.4"
|
|
48
|
+
}
|
|
49
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@artaio/node-api",
|
|
3
|
+
"version": "0.27.0",
|
|
4
|
+
"description": "The Arta Node library provides a seamless integration to Arta API for applications running on Node.js using both Typescript or Javascript.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "tsc -p tsconfig-build.json",
|
|
7
|
+
"test": "npm run lint && jest --coverage --detectOpenHandles --verbose",
|
|
8
|
+
"lint": "eslint .",
|
|
9
|
+
"lint:fix": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"",
|
|
10
|
+
"_postinstall": "husky install",
|
|
11
|
+
"prepublishOnly": "pinst --disable",
|
|
12
|
+
"postpublish": "pinst --enable"
|
|
13
|
+
},
|
|
14
|
+
"types": "dist/lib/index.d.ts",
|
|
15
|
+
"module": "dist/lib/index.js",
|
|
16
|
+
"main": "dist/lib/index.js",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist/"
|
|
19
|
+
],
|
|
20
|
+
"homepage": "https://github.com/artaio/arta-node-api",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git://github.com/artaio/arta-node-api.git"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [],
|
|
26
|
+
"author": "ARTA <hello@arta.io> (https://arta.io/)",
|
|
27
|
+
"contributors": [
|
|
28
|
+
"Otavio Jacobi <otaviojacobi@gmail.com>",
|
|
29
|
+
"Marina Boaventura <marina@arta.io>",
|
|
30
|
+
"Dylan Fareed <email@dylanfareed.com>",
|
|
31
|
+
"Selman Uysal <selman@arta.io>"
|
|
32
|
+
],
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@commitlint/cli": "^17.1.2",
|
|
35
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
36
|
+
"@types/jest": "^29.1.2",
|
|
37
|
+
"@types/nock": "^11.1.0",
|
|
38
|
+
"@types/node": "^18.8.2",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^5.39.0",
|
|
40
|
+
"@typescript-eslint/parser": "^5.40.1",
|
|
41
|
+
"eslint": "^8.24.0",
|
|
42
|
+
"eslint-config-prettier": "^8.5.0",
|
|
43
|
+
"eslint-plugin-import": "^2.26.0",
|
|
44
|
+
"eslint-plugin-n": "^15.3.0",
|
|
45
|
+
"eslint-plugin-promise": "^6.0.1",
|
|
46
|
+
"husky": "^8.0.1",
|
|
47
|
+
"jest": "^29.2.0",
|
|
48
|
+
"nock": "^13.2.9",
|
|
49
|
+
"pinst": "^3.0.0",
|
|
50
|
+
"prettier": "2.7.1",
|
|
51
|
+
"ts-jest": "^29.0.3",
|
|
52
|
+
"typescript": "^4.8.4"
|
|
53
|
+
},
|
|
54
|
+
"bugs": {
|
|
55
|
+
"url": "https://github.com/artaio/arta-node-api/issues"
|
|
56
|
+
},
|
|
57
|
+
"license": "MIT"
|
|
58
|
+
}
|