@gesagro/jaspion-sdk 1.0.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.
@@ -0,0 +1,53 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ type ContentType = 'application/pdf' | 'text/csv';
4
+ interface Parameter {
5
+ key: string;
6
+ value: string | number | boolean | null;
7
+ }
8
+ interface Resource {
9
+ key: string;
10
+ value: string;
11
+ }
12
+ interface ReportConfig {
13
+ template: string;
14
+ fileName: string;
15
+ }
16
+ interface RequestReportInput {
17
+ contentType: ContentType;
18
+ parameters: Parameter[];
19
+ resources: Resource[];
20
+ }
21
+ declare abstract class Report {
22
+ protected readonly http: AxiosInstance;
23
+ protected readonly config: ReportConfig;
24
+ constructor(http: AxiosInstance, config: ReportConfig);
25
+ protected request({ contentType, parameters, resources, }: RequestReportInput): Promise<void>;
26
+ }
27
+
28
+ type LanguageCode = 'pt-BR';
29
+
30
+ interface OriginListInput {
31
+ farmId: string;
32
+ language: LanguageCode;
33
+ }
34
+ declare class OriginList extends Report {
35
+ constructor(http: AxiosInstance);
36
+ pdf(input: OriginListInput): Promise<void>;
37
+ csv(input: OriginListInput): Promise<void>;
38
+ }
39
+
40
+ declare class PigMasterNamespace {
41
+ readonly originList: OriginList;
42
+ constructor(http: AxiosInstance);
43
+ }
44
+
45
+ declare class JaspionClient {
46
+ private readonly http;
47
+ readonly pigMaster: PigMasterNamespace;
48
+ constructor(http: AxiosInstance);
49
+ setAccessToken(token: string): void;
50
+ }
51
+ declare function jaspion(baseURL: string): JaspionClient;
52
+
53
+ export { jaspion };
@@ -0,0 +1,53 @@
1
+ import { AxiosInstance } from 'axios';
2
+
3
+ type ContentType = 'application/pdf' | 'text/csv';
4
+ interface Parameter {
5
+ key: string;
6
+ value: string | number | boolean | null;
7
+ }
8
+ interface Resource {
9
+ key: string;
10
+ value: string;
11
+ }
12
+ interface ReportConfig {
13
+ template: string;
14
+ fileName: string;
15
+ }
16
+ interface RequestReportInput {
17
+ contentType: ContentType;
18
+ parameters: Parameter[];
19
+ resources: Resource[];
20
+ }
21
+ declare abstract class Report {
22
+ protected readonly http: AxiosInstance;
23
+ protected readonly config: ReportConfig;
24
+ constructor(http: AxiosInstance, config: ReportConfig);
25
+ protected request({ contentType, parameters, resources, }: RequestReportInput): Promise<void>;
26
+ }
27
+
28
+ type LanguageCode = 'pt-BR';
29
+
30
+ interface OriginListInput {
31
+ farmId: string;
32
+ language: LanguageCode;
33
+ }
34
+ declare class OriginList extends Report {
35
+ constructor(http: AxiosInstance);
36
+ pdf(input: OriginListInput): Promise<void>;
37
+ csv(input: OriginListInput): Promise<void>;
38
+ }
39
+
40
+ declare class PigMasterNamespace {
41
+ readonly originList: OriginList;
42
+ constructor(http: AxiosInstance);
43
+ }
44
+
45
+ declare class JaspionClient {
46
+ private readonly http;
47
+ readonly pigMaster: PigMasterNamespace;
48
+ constructor(http: AxiosInstance);
49
+ setAccessToken(token: string): void;
50
+ }
51
+ declare function jaspion(baseURL: string): JaspionClient;
52
+
53
+ export { jaspion };
package/dist/index.js ADDED
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
+ jaspion: () => jaspion
34
+ });
35
+ module.exports = __toCommonJS(index_exports);
36
+
37
+ // src/client.ts
38
+ var import_axios = __toESM(require("axios"));
39
+
40
+ // src/core/report.ts
41
+ var Report = class {
42
+ constructor(http, config) {
43
+ this.http = http;
44
+ this.config = config;
45
+ }
46
+ async request({
47
+ contentType,
48
+ parameters,
49
+ resources
50
+ }) {
51
+ const extension = contentType === "application/pdf" ? ".pdf" : ".csv";
52
+ const fileName = `${this.config.fileName}${extension}`;
53
+ await this.http.post("/reports", {
54
+ template: this.config.template,
55
+ fileName,
56
+ parameters,
57
+ resources,
58
+ contentType,
59
+ type: "jasper-reports"
60
+ });
61
+ }
62
+ };
63
+
64
+ // src/namespaces/pig-master/reports/origin-list.ts
65
+ var OriginList = class extends Report {
66
+ constructor(http) {
67
+ super(http, {
68
+ template: "@pig-master/origin-list",
69
+ fileName: "Listagem de origens"
70
+ });
71
+ }
72
+ async pdf(input) {
73
+ return await this.request({
74
+ contentType: "application/pdf",
75
+ resources: [{ key: "farmId", value: input.farmId }],
76
+ parameters: [
77
+ { key: "DATA_ONLY", value: false },
78
+ { key: "LOCATE", value: input.language.replace("-", "_") }
79
+ ]
80
+ });
81
+ }
82
+ async csv(input) {
83
+ return await this.request({
84
+ contentType: "text/csv",
85
+ resources: [{ key: "farmId", value: input.farmId }],
86
+ parameters: [
87
+ { key: "DATA_ONLY", value: false },
88
+ { key: "LOCATE", value: input.language.replace("-", "_") }
89
+ ]
90
+ });
91
+ }
92
+ };
93
+
94
+ // src/namespaces/pig-master/index.ts
95
+ var PigMasterNamespace = class {
96
+ constructor(http) {
97
+ this.originList = new OriginList(http);
98
+ }
99
+ };
100
+
101
+ // src/client.ts
102
+ var JaspionClient = class {
103
+ constructor(http) {
104
+ this.http = http;
105
+ this.pigMaster = new PigMasterNamespace(http);
106
+ }
107
+ setAccessToken(token) {
108
+ this.http.defaults.headers.common.Authorization = `Bearer ${token}`;
109
+ }
110
+ };
111
+ function jaspion(baseURL) {
112
+ const http = import_axios.default.create({ baseURL });
113
+ return new JaspionClient(http);
114
+ }
115
+ // Annotate the CommonJS export names for ESM import in node:
116
+ 0 && (module.exports = {
117
+ jaspion
118
+ });
119
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/client.ts","../src/core/report.ts","../src/namespaces/pig-master/reports/origin-list.ts","../src/namespaces/pig-master/index.ts"],"sourcesContent":["export { jaspion } from './client'\n","import axios, { type AxiosInstance } from 'axios'\nimport { PigMasterNamespace } from './namespaces/pig-master'\n\nexport class JaspionClient {\n public readonly pigMaster: PigMasterNamespace\n\n constructor(private readonly http: AxiosInstance) {\n this.pigMaster = new PigMasterNamespace(http)\n }\n\n setAccessToken(token: string) {\n this.http.defaults.headers.common.Authorization = `Bearer ${token}`\n }\n}\n\nexport function jaspion(baseURL: string) {\n const http = axios.create({ baseURL })\n\n return new JaspionClient(http)\n}\n","import type { AxiosInstance } from 'axios'\n\ntype ContentType = 'application/pdf' | 'text/csv'\n\nexport interface Parameter {\n key: string\n value: string | number | boolean | null\n}\n\nexport interface Resource {\n key: string\n value: string\n}\n\ninterface ReportConfig {\n template: string\n fileName: string\n}\n\ninterface RequestReportInput {\n contentType: ContentType\n parameters: Parameter[]\n resources: Resource[]\n}\n\nexport abstract class Report {\n constructor(\n protected readonly http: AxiosInstance,\n protected readonly config: ReportConfig,\n ) {}\n\n protected async request({\n contentType,\n parameters,\n resources,\n }: RequestReportInput) {\n const extension = contentType === 'application/pdf' ? '.pdf' : '.csv'\n const fileName = `${this.config.fileName}${extension}`\n\n await this.http.post('/reports', {\n template: this.config.template,\n fileName: fileName,\n parameters,\n resources,\n contentType,\n type: 'jasper-reports',\n })\n }\n}\n","import type { AxiosInstance } from 'axios'\nimport { Report } from '../../../core/report'\nimport { LanguageCode } from '../../../core/types'\n\ninterface OriginListInput {\n farmId: string\n language: LanguageCode\n}\n\nexport class OriginList extends Report {\n constructor(http: AxiosInstance) {\n super(http, {\n template: '@pig-master/origin-list',\n fileName: 'Listagem de origens',\n })\n }\n\n async pdf(input: OriginListInput) {\n return await this.request({\n contentType: 'application/pdf',\n resources: [{ key: 'farmId', value: input.farmId }],\n parameters: [\n { key: 'DATA_ONLY', value: false },\n { key: 'LOCATE', value: input.language.replace('-', '_') },\n ],\n })\n }\n\n async csv(input: OriginListInput) {\n return await this.request({\n contentType: 'text/csv',\n resources: [{ key: 'farmId', value: input.farmId }],\n parameters: [\n { key: 'DATA_ONLY', value: false },\n { key: 'LOCATE', value: input.language.replace('-', '_') },\n ],\n })\n }\n}\n","import type { AxiosInstance } from 'axios'\nimport { OriginList } from './reports/origin-list'\n\nexport class PigMasterNamespace {\n public readonly originList: OriginList\n\n constructor(http: AxiosInstance) {\n this.originList = new OriginList(http)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAA0C;;;ACyBnC,IAAe,SAAf,MAAsB;AAAA,EAC3B,YACqB,MACA,QACnB;AAFmB;AACA;AAAA,EAClB;AAAA,EAEH,MAAgB,QAAQ;AAAA,IACtB;AAAA,IACA;AAAA,IACA;AAAA,EACF,GAAuB;AACrB,UAAM,YAAY,gBAAgB,oBAAoB,SAAS;AAC/D,UAAM,WAAW,GAAG,KAAK,OAAO,QAAQ,GAAG,SAAS;AAEpD,UAAM,KAAK,KAAK,KAAK,YAAY;AAAA,MAC/B,UAAU,KAAK,OAAO;AAAA,MACtB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,MAAM;AAAA,IACR,CAAC;AAAA,EACH;AACF;;;ACvCO,IAAM,aAAN,cAAyB,OAAO;AAAA,EACrC,YAAY,MAAqB;AAC/B,UAAM,MAAM;AAAA,MACV,UAAU;AAAA,MACV,UAAU;AAAA,IACZ,CAAC;AAAA,EACH;AAAA,EAEA,MAAM,IAAI,OAAwB;AAChC,WAAO,MAAM,KAAK,QAAQ;AAAA,MACxB,aAAa;AAAA,MACb,WAAW,CAAC,EAAE,KAAK,UAAU,OAAO,MAAM,OAAO,CAAC;AAAA,MAClD,YAAY;AAAA,QACV,EAAE,KAAK,aAAa,OAAO,MAAM;AAAA,QACjC,EAAE,KAAK,UAAU,OAAO,MAAM,SAAS,QAAQ,KAAK,GAAG,EAAE;AAAA,MAC3D;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,MAAM,IAAI,OAAwB;AAChC,WAAO,MAAM,KAAK,QAAQ;AAAA,MACxB,aAAa;AAAA,MACb,WAAW,CAAC,EAAE,KAAK,UAAU,OAAO,MAAM,OAAO,CAAC;AAAA,MAClD,YAAY;AAAA,QACV,EAAE,KAAK,aAAa,OAAO,MAAM;AAAA,QACjC,EAAE,KAAK,UAAU,OAAO,MAAM,SAAS,QAAQ,KAAK,GAAG,EAAE;AAAA,MAC3D;AAAA,IACF,CAAC;AAAA,EACH;AACF;;;ACnCO,IAAM,qBAAN,MAAyB;AAAA,EAG9B,YAAY,MAAqB;AAC/B,SAAK,aAAa,IAAI,WAAW,IAAI;AAAA,EACvC;AACF;;;AHNO,IAAM,gBAAN,MAAoB;AAAA,EAGzB,YAA6B,MAAqB;AAArB;AAC3B,SAAK,YAAY,IAAI,mBAAmB,IAAI;AAAA,EAC9C;AAAA,EAEA,eAAe,OAAe;AAC5B,SAAK,KAAK,SAAS,QAAQ,OAAO,gBAAgB,UAAU,KAAK;AAAA,EACnE;AACF;AAEO,SAAS,QAAQ,SAAiB;AACvC,QAAM,OAAO,aAAAA,QAAM,OAAO,EAAE,QAAQ,CAAC;AAErC,SAAO,IAAI,cAAc,IAAI;AAC/B;","names":["axios"]}
package/dist/index.mjs ADDED
@@ -0,0 +1,82 @@
1
+ // src/client.ts
2
+ import axios from "axios";
3
+
4
+ // src/core/report.ts
5
+ var Report = class {
6
+ constructor(http, config) {
7
+ this.http = http;
8
+ this.config = config;
9
+ }
10
+ async request({
11
+ contentType,
12
+ parameters,
13
+ resources
14
+ }) {
15
+ const extension = contentType === "application/pdf" ? ".pdf" : ".csv";
16
+ const fileName = `${this.config.fileName}${extension}`;
17
+ await this.http.post("/reports", {
18
+ template: this.config.template,
19
+ fileName,
20
+ parameters,
21
+ resources,
22
+ contentType,
23
+ type: "jasper-reports"
24
+ });
25
+ }
26
+ };
27
+
28
+ // src/namespaces/pig-master/reports/origin-list.ts
29
+ var OriginList = class extends Report {
30
+ constructor(http) {
31
+ super(http, {
32
+ template: "@pig-master/origin-list",
33
+ fileName: "Listagem de origens"
34
+ });
35
+ }
36
+ async pdf(input) {
37
+ return await this.request({
38
+ contentType: "application/pdf",
39
+ resources: [{ key: "farmId", value: input.farmId }],
40
+ parameters: [
41
+ { key: "DATA_ONLY", value: false },
42
+ { key: "LOCATE", value: input.language.replace("-", "_") }
43
+ ]
44
+ });
45
+ }
46
+ async csv(input) {
47
+ return await this.request({
48
+ contentType: "text/csv",
49
+ resources: [{ key: "farmId", value: input.farmId }],
50
+ parameters: [
51
+ { key: "DATA_ONLY", value: false },
52
+ { key: "LOCATE", value: input.language.replace("-", "_") }
53
+ ]
54
+ });
55
+ }
56
+ };
57
+
58
+ // src/namespaces/pig-master/index.ts
59
+ var PigMasterNamespace = class {
60
+ constructor(http) {
61
+ this.originList = new OriginList(http);
62
+ }
63
+ };
64
+
65
+ // src/client.ts
66
+ var JaspionClient = class {
67
+ constructor(http) {
68
+ this.http = http;
69
+ this.pigMaster = new PigMasterNamespace(http);
70
+ }
71
+ setAccessToken(token) {
72
+ this.http.defaults.headers.common.Authorization = `Bearer ${token}`;
73
+ }
74
+ };
75
+ function jaspion(baseURL) {
76
+ const http = axios.create({ baseURL });
77
+ return new JaspionClient(http);
78
+ }
79
+ export {
80
+ jaspion
81
+ };
82
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/client.ts","../src/core/report.ts","../src/namespaces/pig-master/reports/origin-list.ts","../src/namespaces/pig-master/index.ts"],"sourcesContent":["import axios, { type AxiosInstance } from 'axios'\nimport { PigMasterNamespace } from './namespaces/pig-master'\n\nexport class JaspionClient {\n public readonly pigMaster: PigMasterNamespace\n\n constructor(private readonly http: AxiosInstance) {\n this.pigMaster = new PigMasterNamespace(http)\n }\n\n setAccessToken(token: string) {\n this.http.defaults.headers.common.Authorization = `Bearer ${token}`\n }\n}\n\nexport function jaspion(baseURL: string) {\n const http = axios.create({ baseURL })\n\n return new JaspionClient(http)\n}\n","import type { AxiosInstance } from 'axios'\n\ntype ContentType = 'application/pdf' | 'text/csv'\n\nexport interface Parameter {\n key: string\n value: string | number | boolean | null\n}\n\nexport interface Resource {\n key: string\n value: string\n}\n\ninterface ReportConfig {\n template: string\n fileName: string\n}\n\ninterface RequestReportInput {\n contentType: ContentType\n parameters: Parameter[]\n resources: Resource[]\n}\n\nexport abstract class Report {\n constructor(\n protected readonly http: AxiosInstance,\n protected readonly config: ReportConfig,\n ) {}\n\n protected async request({\n contentType,\n parameters,\n resources,\n }: RequestReportInput) {\n const extension = contentType === 'application/pdf' ? '.pdf' : '.csv'\n const fileName = `${this.config.fileName}${extension}`\n\n await this.http.post('/reports', {\n template: this.config.template,\n fileName: fileName,\n parameters,\n resources,\n contentType,\n type: 'jasper-reports',\n })\n }\n}\n","import type { AxiosInstance } from 'axios'\nimport { Report } from '../../../core/report'\nimport { LanguageCode } from '../../../core/types'\n\ninterface OriginListInput {\n farmId: string\n language: LanguageCode\n}\n\nexport class OriginList extends Report {\n constructor(http: AxiosInstance) {\n super(http, {\n template: '@pig-master/origin-list',\n fileName: 'Listagem de origens',\n })\n }\n\n async pdf(input: OriginListInput) {\n return await this.request({\n contentType: 'application/pdf',\n resources: [{ key: 'farmId', value: input.farmId }],\n parameters: [\n { key: 'DATA_ONLY', value: false },\n { key: 'LOCATE', value: input.language.replace('-', '_') },\n ],\n })\n }\n\n async csv(input: OriginListInput) {\n return await this.request({\n contentType: 'text/csv',\n resources: [{ key: 'farmId', value: input.farmId }],\n parameters: [\n { key: 'DATA_ONLY', value: false },\n { key: 'LOCATE', value: input.language.replace('-', '_') },\n ],\n })\n }\n}\n","import type { AxiosInstance } from 'axios'\nimport { OriginList } from './reports/origin-list'\n\nexport class PigMasterNamespace {\n public readonly originList: OriginList\n\n constructor(http: AxiosInstance) {\n this.originList = new OriginList(http)\n }\n}\n"],"mappings":";AAAA,OAAO,WAAmC;;;ACyBnC,IAAe,SAAf,MAAsB;AAAA,EAC3B,YACqB,MACA,QACnB;AAFmB;AACA;AAAA,EAClB;AAAA,EAEH,MAAgB,QAAQ;AAAA,IACtB;AAAA,IACA;AAAA,IACA;AAAA,EACF,GAAuB;AACrB,UAAM,YAAY,gBAAgB,oBAAoB,SAAS;AAC/D,UAAM,WAAW,GAAG,KAAK,OAAO,QAAQ,GAAG,SAAS;AAEpD,UAAM,KAAK,KAAK,KAAK,YAAY;AAAA,MAC/B,UAAU,KAAK,OAAO;AAAA,MACtB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,MAAM;AAAA,IACR,CAAC;AAAA,EACH;AACF;;;ACvCO,IAAM,aAAN,cAAyB,OAAO;AAAA,EACrC,YAAY,MAAqB;AAC/B,UAAM,MAAM;AAAA,MACV,UAAU;AAAA,MACV,UAAU;AAAA,IACZ,CAAC;AAAA,EACH;AAAA,EAEA,MAAM,IAAI,OAAwB;AAChC,WAAO,MAAM,KAAK,QAAQ;AAAA,MACxB,aAAa;AAAA,MACb,WAAW,CAAC,EAAE,KAAK,UAAU,OAAO,MAAM,OAAO,CAAC;AAAA,MAClD,YAAY;AAAA,QACV,EAAE,KAAK,aAAa,OAAO,MAAM;AAAA,QACjC,EAAE,KAAK,UAAU,OAAO,MAAM,SAAS,QAAQ,KAAK,GAAG,EAAE;AAAA,MAC3D;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,MAAM,IAAI,OAAwB;AAChC,WAAO,MAAM,KAAK,QAAQ;AAAA,MACxB,aAAa;AAAA,MACb,WAAW,CAAC,EAAE,KAAK,UAAU,OAAO,MAAM,OAAO,CAAC;AAAA,MAClD,YAAY;AAAA,QACV,EAAE,KAAK,aAAa,OAAO,MAAM;AAAA,QACjC,EAAE,KAAK,UAAU,OAAO,MAAM,SAAS,QAAQ,KAAK,GAAG,EAAE;AAAA,MAC3D;AAAA,IACF,CAAC;AAAA,EACH;AACF;;;ACnCO,IAAM,qBAAN,MAAyB;AAAA,EAG9B,YAAY,MAAqB;AAC/B,SAAK,aAAa,IAAI,WAAW,IAAI;AAAA,EACvC;AACF;;;AHNO,IAAM,gBAAN,MAAoB;AAAA,EAGzB,YAA6B,MAAqB;AAArB;AAC3B,SAAK,YAAY,IAAI,mBAAmB,IAAI;AAAA,EAC9C;AAAA,EAEA,eAAe,OAAe;AAC5B,SAAK,KAAK,SAAS,QAAQ,OAAO,gBAAgB,UAAU,KAAK;AAAA,EACnE;AACF;AAEO,SAAS,QAAQ,SAAiB;AACvC,QAAM,OAAO,MAAM,OAAO,EAAE,QAAQ,CAAC;AAErC,SAAO,IAAI,cAAc,IAAI;AAC/B;","names":[]}
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@gesagro/jaspion-sdk",
3
+ "version": "1.0.0",
4
+ "description": "SDK for Jaspion",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.mjs",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.mjs",
15
+ "require": "./dist/index.js"
16
+ }
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "scripts": {
22
+ "build": "tsup",
23
+ "dev": "tsup --watch",
24
+ "lint": "biome check",
25
+ "lint:fix": "biome check --write",
26
+ "typecheck": "tsc --noEmit",
27
+ "prepublishOnly": "npm run build"
28
+ },
29
+ "dependencies": {
30
+ "axios": "^1.15.2"
31
+ },
32
+ "devDependencies": {
33
+ "@biomejs/biome": "^2.4.13",
34
+ "@types/node": "^25.6.0",
35
+ "biomejs": "^0.0.0",
36
+ "tsup": "^8.5.1",
37
+ "typescript": "^6.0.3"
38
+ }
39
+ }