@hellena-sdk/hellena 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.
Files changed (35) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +33 -0
  3. package/dist/core/HellenaConnect.d.ts +16 -0
  4. package/dist/core/HellenaConnect.d.ts.map +1 -0
  5. package/dist/core/HellenaConnect.js +19 -0
  6. package/dist/core/HellenaConnect.js.map +1 -0
  7. package/dist/index.d.ts +2 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +12 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/libs/graphql-client.ts.d.ts +3 -0
  12. package/dist/libs/graphql-client.ts.d.ts.map +1 -0
  13. package/dist/libs/graphql-client.ts.js +3 -0
  14. package/dist/libs/graphql-client.ts.js.map +1 -0
  15. package/dist/main.d.ts +6 -0
  16. package/dist/main.d.ts.map +1 -0
  17. package/dist/main.js +9 -0
  18. package/dist/main.js.map +1 -0
  19. package/dist/resources/product/dto/product.dto.d.ts +22 -0
  20. package/dist/resources/product/dto/product.dto.d.ts.map +1 -0
  21. package/dist/resources/product/dto/product.dto.js +2 -0
  22. package/dist/resources/product/dto/product.dto.js.map +1 -0
  23. package/dist/resources/product/product.feature.d.ts +11 -0
  24. package/dist/resources/product/product.feature.d.ts.map +1 -0
  25. package/dist/resources/product/product.feature.js +12 -0
  26. package/dist/resources/product/product.feature.js.map +1 -0
  27. package/dist/resources/product/product.model.d.ts +4 -0
  28. package/dist/resources/product/product.model.d.ts.map +1 -0
  29. package/dist/resources/product/product.model.js +7 -0
  30. package/dist/resources/product/product.model.js.map +1 -0
  31. package/dist/resources/product/service/product.ser.d.ts +9 -0
  32. package/dist/resources/product/service/product.ser.d.ts.map +1 -0
  33. package/dist/resources/product/service/product.ser.js +26 -0
  34. package/dist/resources/product/service/product.ser.js.map +1 -0
  35. package/package.json +46 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Hellena
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # hellena-JavaScript-SDK
2
+
3
+ A JavaScript SDK for the Hellena platform.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install hellena-javascript-sdk
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```javascript
14
+ const Hellena = require('hellena-javascript-sdk');
15
+
16
+ const client = new Hellena({
17
+ apiKey: 'your-api-key'
18
+ });
19
+ ```
20
+
21
+ ## Features
22
+
23
+ - Easy integration
24
+ - Full API support
25
+ - TypeScript ready
26
+
27
+ ## Documentation
28
+
29
+ For more information, visit the [documentation](./docs).
30
+
31
+ ## License
32
+
33
+ MIT
@@ -0,0 +1,16 @@
1
+ export declare class HellenaConnect {
2
+ protected readonly apiKey: string;
3
+ protected readonly apiUrl = "https://hellena-api-for-devs.vercel.app";
4
+ protected readonly apiVersion = "v1";
5
+ protected readonly apiEndpoint: string;
6
+ constructor(apiKey: string);
7
+ protected getHeaders(): {
8
+ "Content-Type": string;
9
+ Authorization: string;
10
+ };
11
+ getApiKey(): string;
12
+ getApiEndpoint(): string;
13
+ getApiVersion(): string;
14
+ getApiUrl(): string;
15
+ }
16
+ //# sourceMappingURL=HellenaConnect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HellenaConnect.d.ts","sourceRoot":"","sources":["../../src/core/HellenaConnect.ts"],"names":[],"mappings":"AAAA,qBAAa,cAAc;IAKX,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM;IAJ7C,SAAS,CAAC,QAAQ,CAAC,MAAM,6CAA6C;IACtE,SAAS,CAAC,QAAQ,CAAC,UAAU,QAAQ;IACrC,SAAS,CAAC,QAAQ,CAAC,WAAW,SAAuC;gBAEtC,MAAM,EAAE,MAAM;IAE7C,SAAS,CAAC,UAAU;;;;IAOpB,SAAS;IAET,cAAc;IAEd,aAAa;IAEb,SAAS;CACZ"}
@@ -0,0 +1,19 @@
1
+ export class HellenaConnect {
2
+ constructor(apiKey) {
3
+ this.apiKey = apiKey;
4
+ this.apiUrl = "https://hellena-api-for-devs.vercel.app";
5
+ this.apiVersion = "v1";
6
+ this.apiEndpoint = `${this.apiUrl}/${this.apiVersion}`;
7
+ }
8
+ getHeaders() {
9
+ return {
10
+ "Content-Type": "application/json",
11
+ Authorization: `Bearer ${this.apiKey}`,
12
+ };
13
+ }
14
+ getApiKey() { return this.apiKey; }
15
+ getApiEndpoint() { return this.apiEndpoint; }
16
+ getApiVersion() { return this.apiVersion; }
17
+ getApiUrl() { return this.apiUrl; }
18
+ }
19
+ //# sourceMappingURL=HellenaConnect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HellenaConnect.js","sourceRoot":"","sources":["../../src/core/HellenaConnect.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,cAAc;IAKvB,YAA+B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QAJ1B,WAAM,GAAG,yCAAyC,CAAC;QACnD,eAAU,GAAG,IAAI,CAAC;QAClB,gBAAW,GAAG,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;IAEpB,CAAC;IAExC,UAAU;QAChB,OAAO;YACH,cAAc,EAAE,kBAAkB;YAClC,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACzC,CAAC;IACN,CAAC;IAED,SAAS,KAAK,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAEnC,cAAc,KAAK,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAE7C,aAAa,KAAK,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IAE3C,SAAS,KAAK,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;CACtC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js ADDED
@@ -0,0 +1,12 @@
1
+ import dotenv from "dotenv";
2
+ import { HellenaClient } from "./main.js";
3
+ dotenv.config({ quiet: true });
4
+ async function main() {
5
+ const hellena = new HellenaClient(process.env.HELLENA_API_KEY);
6
+ const products = await hellena.product.findMany();
7
+ products.forEach((product) => {
8
+ console.log(product.barcode);
9
+ });
10
+ }
11
+ main();
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAE/B,KAAK,UAAU,IAAI;IACf,MAAM,OAAO,GAAG,IAAI,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,eAAgB,CAAC,CAAC;IAEhE,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;IAClD,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACzB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACP,CAAC;AAED,IAAI,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { GraphQLClient } from "graphql-request";
2
+ export declare const graphQLClient: GraphQLClient;
3
+ //# sourceMappingURL=graphql-client.ts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql-client.ts.d.ts","sourceRoot":"","sources":["../../src/libs/graphql-client.ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,aAAa,eAA+D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { GraphQLClient } from "graphql-request";
2
+ export const graphQLClient = new GraphQLClient("https://hellena-api-for-devs.vercel.app");
3
+ //# sourceMappingURL=graphql-client.ts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql-client.ts.js","sourceRoot":"","sources":["../../src/libs/graphql-client.ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,yCAAyC,CAAC,CAAC"}
package/dist/main.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { HellenaConnect } from "./core/HellenaConnect.js";
2
+ export declare class HellenaClient extends HellenaConnect {
3
+ readonly product: import("./resources/product/product.feature.js").ProductFeature;
4
+ constructor(apiKey: string);
5
+ }
6
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,qBAAa,aAAc,SAAQ,cAAc;IAC7C,SAAgB,OAAO,kEAAsB;gBAEjC,MAAM,EAAE,MAAM;CAG7B"}
package/dist/main.js ADDED
@@ -0,0 +1,9 @@
1
+ import { HellenaConnect } from "./core/HellenaConnect.js";
2
+ import { ProductModel } from "./resources/product/product.model.js";
3
+ export class HellenaClient extends HellenaConnect {
4
+ constructor(apiKey) {
5
+ super(apiKey);
6
+ this.product = ProductModel(this);
7
+ }
8
+ }
9
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEpE,MAAM,OAAO,aAAc,SAAQ,cAAc;IAG7C,YAAY,MAAc;QACtB,KAAK,CAAC,MAAM,CAAC,CAAC;QAHF,YAAO,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAI7C,CAAC;CACJ"}
@@ -0,0 +1,22 @@
1
+ export interface PriceDTO {
2
+ id: string;
3
+ stockId: string;
4
+ quantity: number;
5
+ price: number;
6
+ createdAt: string;
7
+ updatedAt: string;
8
+ }
9
+ export interface ProductDTO {
10
+ id: string;
11
+ barcode: string;
12
+ name: string;
13
+ category: string | null;
14
+ image: string | null;
15
+ Price: PriceDTO[];
16
+ unit: string;
17
+ quantity: number;
18
+ purchasePrice: number;
19
+ expirationDate: string | null;
20
+ updatedAt: string;
21
+ }
22
+ //# sourceMappingURL=product.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.dto.d.ts","sourceRoot":"","sources":["../../../../src/resources/product/dto/product.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=product.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/resources/product/dto/product.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { ProductDTO } from "./dto/product.dto.js";
2
+ import type { ProductService } from "./service/product.ser.js";
3
+ export declare class ProductFeature {
4
+ private readonly service;
5
+ constructor(service: ProductService);
6
+ findMany(): Promise<ProductDTO[]>;
7
+ findOne({ id }: {
8
+ id: string;
9
+ }): Promise<ProductDTO>;
10
+ }
11
+ //# sourceMappingURL=product.feature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.feature.d.ts","sourceRoot":"","sources":["../../../src/resources/product/product.feature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,qBAAa,cAAc;IACX,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,cAAc;IAEpD,QAAQ,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAIjC,OAAO,CAAC,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,UAAU,CAAC;CAGvD"}
@@ -0,0 +1,12 @@
1
+ export class ProductFeature {
2
+ constructor(service) {
3
+ this.service = service;
4
+ }
5
+ findMany() {
6
+ return this.service.getAllProducts();
7
+ }
8
+ findOne({ id }) {
9
+ return this.service.getProductById(id);
10
+ }
11
+ }
12
+ //# sourceMappingURL=product.feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.feature.js","sourceRoot":"","sources":["../../../src/resources/product/product.feature.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,cAAc;IACvB,YAA6B,OAAuB;QAAvB,YAAO,GAAP,OAAO,CAAgB;IAAG,CAAC;IAExD,QAAQ;QACJ,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;IACzC,CAAC;IAED,OAAO,CAAC,EAAE,EAAE,EAAkB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IAC3C,CAAC;CACJ"}
@@ -0,0 +1,4 @@
1
+ import type { HellenaConnect } from "@/core/HellenaConnect.js";
2
+ import { ProductFeature } from "./product.feature.js";
3
+ export declare function ProductModel(connect: HellenaConnect): ProductFeature;
4
+ //# sourceMappingURL=product.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.model.d.ts","sourceRoot":"","sources":["../../../src/resources/product/product.model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,kBAGnD"}
@@ -0,0 +1,7 @@
1
+ import { ProductFeature } from "./product.feature.js";
2
+ import { ProductService } from "./service/product.ser.js";
3
+ export function ProductModel(connect) {
4
+ const service = new ProductService(connect);
5
+ return new ProductFeature(service);
6
+ }
7
+ //# sourceMappingURL=product.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.model.js","sourceRoot":"","sources":["../../../src/resources/product/product.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,UAAU,YAAY,CAAC,OAAuB;IAChD,MAAM,OAAO,GAAG,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;IAC5C,OAAO,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { HellenaConnect } from "@/core/HellenaConnect.js";
2
+ import type { ProductDTO } from "../dto/product.dto.js";
3
+ export declare class ProductService {
4
+ private readonly connect;
5
+ constructor(connect: HellenaConnect);
6
+ getAllProducts(): Promise<ProductDTO[]>;
7
+ getProductById(id: string): Promise<ProductDTO>;
8
+ }
9
+ //# sourceMappingURL=product.ser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.ser.d.ts","sourceRoot":"","sources":["../../../../src/resources/product/service/product.ser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,qBAAa,cAAc;IACX,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,cAAc;IAE9C,cAAc,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAgBvC,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;CAexD"}
@@ -0,0 +1,26 @@
1
+ export class ProductService {
2
+ constructor(connect) {
3
+ this.connect = connect;
4
+ }
5
+ async getAllProducts() {
6
+ const response = await fetch(`${this.connect["apiEndpoint"]}/product/all`, {
7
+ method: "GET",
8
+ headers: this.connect["getHeaders"](),
9
+ });
10
+ if (!response.ok) {
11
+ throw new Error(`Erro ao buscar produtos (${response.status})`);
12
+ }
13
+ return response.json();
14
+ }
15
+ async getProductById(id) {
16
+ const response = await fetch(`${this.connect["apiEndpoint"]}/product/${id}`, {
17
+ method: "GET",
18
+ headers: this.connect["getHeaders"](),
19
+ });
20
+ if (!response.ok) {
21
+ throw new Error(`Erro ao buscar produto (${response.status})`);
22
+ }
23
+ return response.json();
24
+ }
25
+ }
26
+ //# sourceMappingURL=product.ser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.ser.js","sourceRoot":"","sources":["../../../../src/resources/product/service/product.ser.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,cAAc;IACvB,YAA6B,OAAuB;QAAvB,YAAO,GAAP,OAAO,CAAgB;IAAG,CAAC;IAExD,KAAK,CAAC,cAAc;QAChB,MAAM,QAAQ,GAAG,MAAM,KAAK,CACxB,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,cAAc,EAC5C;YACI,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;SACxC,CACJ,CAAC;QAEF,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,4BAA4B,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;QACpE,CAAC;QAED,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,EAAU;QAC3B,MAAM,QAAQ,GAAG,MAAM,KAAK,CACxB,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,YAAY,EAAE,EAAE,EAC9C;YACI,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;SACxC,CACJ,CAAC;QAEF,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,2BAA2B,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;QACnE,CAAC;QAED,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC3B,CAAC;CACJ"}
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@hellena-sdk/hellena",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "build": "tsc",
8
+ "start": "node dist/index.js",
9
+ "pack": "mkdir -p packages && npm pack && mv *.tgz packages/",
10
+ "dev": "node --loader ts-node/esm src/index.ts"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "packDestination": "./packages",
16
+ "types": "dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "import": "./dist/index.js",
20
+ "types": "./dist/index.d.ts"
21
+ }
22
+ },
23
+ "files": ["dist"],
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/Helena-mother/hellena-javascript-SDK.git"
27
+ },
28
+ "keywords": [],
29
+ "author": "",
30
+ "license": "ISC",
31
+ "type": "module",
32
+ "bugs": {
33
+ "url": "https://github.com/Helena-mother/hellena-javascript-SDK/issues"
34
+ },
35
+ "homepage": "https://github.com/Helena-mother/hellena-javascript-SDK#readme",
36
+ "devDependencies": {
37
+ "@types/node": "^25.0.3",
38
+ "ts-node": "^10.9.2",
39
+ "tsconfig-paths": "^4.2.0",
40
+ "typescript": "^5.9.3"
41
+ },
42
+ "dependencies": {
43
+ "dotenv": "^17.2.3",
44
+ "graphql-request": "^7.4.0"
45
+ }
46
+ }