@hellena-sdk/hellena 1.0.6 → 1.0.8

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 (47) hide show
  1. package/README.md +279 -50
  2. package/dist/core/HellenaConnect.d.ts +27 -2
  3. package/dist/main.d.ts +15 -3
  4. package/dist/main.js +384 -38
  5. package/dist/resources/category/category.feature.d.ts +10 -0
  6. package/dist/resources/category/category.model.d.ts +3 -0
  7. package/dist/resources/category/dto/category.dto.d.ts +26 -0
  8. package/dist/resources/category/service/category.ser.d.ts +8 -0
  9. package/dist/resources/comment/comment.feature.d.ts +22 -0
  10. package/dist/resources/comment/comment.model.d.ts +3 -0
  11. package/dist/resources/comment/dto/comment.dto.d.ts +31 -0
  12. package/dist/resources/comment/service/comment.ser.d.ts +17 -0
  13. package/dist/resources/order/dto/order.dto.d.ts +57 -52
  14. package/dist/resources/order/order.feature.d.ts +12 -3
  15. package/dist/resources/order/order.model.d.ts +1 -2
  16. package/dist/resources/order/service/order.ser.d.ts +8 -3
  17. package/dist/resources/organization/dto/organization.dto.d.ts +0 -1
  18. package/dist/resources/organization/organization.feature.d.ts +4 -3
  19. package/dist/resources/organization/organization.model.d.ts +0 -1
  20. package/dist/resources/organization/service/organization.ser.d.ts +0 -1
  21. package/dist/resources/payment/dto/payment.dto.d.ts +14 -0
  22. package/dist/resources/payment/payment.feature.d.ts +10 -0
  23. package/dist/resources/payment/payment.model.d.ts +3 -0
  24. package/dist/resources/payment/service/payment.ser.d.ts +8 -0
  25. package/dist/resources/product/dto/product.dto.d.ts +59 -4
  26. package/dist/resources/product/product.feature.d.ts +27 -6
  27. package/dist/resources/product/product.model.d.ts +1 -2
  28. package/dist/resources/product/service/product.ser.d.ts +5 -4
  29. package/dist/resources/rating/dto/rating.dto.d.ts +52 -0
  30. package/dist/resources/rating/rating.feature.d.ts +29 -0
  31. package/dist/resources/rating/rating.model.d.ts +3 -0
  32. package/dist/resources/rating/service/rating.ser.d.ts +24 -0
  33. package/package.json +5 -3
  34. package/dist/core/HellenaConnect.d.ts.map +0 -1
  35. package/dist/main.d.ts.map +0 -1
  36. package/dist/resources/order/dto/order.dto.d.ts.map +0 -1
  37. package/dist/resources/order/order.feature.d.ts.map +0 -1
  38. package/dist/resources/order/order.model.d.ts.map +0 -1
  39. package/dist/resources/order/service/order.ser.d.ts.map +0 -1
  40. package/dist/resources/organization/dto/organization.dto.d.ts.map +0 -1
  41. package/dist/resources/organization/organization.feature.d.ts.map +0 -1
  42. package/dist/resources/organization/organization.model.d.ts.map +0 -1
  43. package/dist/resources/organization/service/organization.ser.d.ts.map +0 -1
  44. package/dist/resources/product/dto/product.dto.d.ts.map +0 -1
  45. package/dist/resources/product/product.feature.d.ts.map +0 -1
  46. package/dist/resources/product/product.model.d.ts.map +0 -1
  47. package/dist/resources/product/service/product.ser.d.ts.map +0 -1
@@ -1,71 +1,76 @@
1
- export interface OrderDTO {
2
- customerName?: string;
3
- customerEmail?: string;
1
+ export interface DashboardOrderInfoDTO {
4
2
  customerId?: string;
5
3
  customerProfile?: string;
4
+ customerName?: string;
5
+ customerEmail?: string;
6
+ customerPhone?: string;
7
+ customerNIF?: string;
6
8
  notes?: string;
7
9
  lat?: number;
8
10
  lng?: number;
9
- origin?: string;
10
- shippingMethod?: string;
11
- paymentMethod?: string;
12
- cupon?: string;
13
- meta?: Record<string, any>;
14
11
  address?: string;
15
- items: Order_ItemsDTO[];
16
12
  }
17
- interface Order_ItemsDTO {
13
+ export interface DashboardOrderItemDTO {
18
14
  productId: string;
15
+ name: string;
16
+ category?: string;
17
+ image?: string;
19
18
  quantity: number;
19
+ size?: string;
20
+ color?: string;
21
+ material?: string;
22
+ model?: string;
23
+ gender?: string;
20
24
  price: number;
21
- image?: string;
22
- category?: string;
23
- name?: string;
25
+ }
26
+ export interface OrderDTO {
27
+ info?: DashboardOrderInfoDTO;
28
+ items: DashboardOrderItemDTO[];
29
+ coupon?: string;
30
+ frete?: number;
31
+ localization?: string;
24
32
  }
25
33
  export interface Order_Return {
26
34
  id: string;
35
+ invoice?: string | null;
36
+ invoice_link?: string | null;
27
37
  organizationId: string;
28
- createdAt: string;
29
- updatedAt: any;
30
- origin: string;
31
- status: string;
32
38
  amount: number;
33
- deletedAt: any;
34
- deliveryDate: any;
35
- dueDate: any;
36
- trackingCode: any;
37
- shippingMethod: any;
38
- paymentMethod: any;
39
- cupon: any;
40
- meta: any;
41
- orderInfo: OrderInfo;
42
- items: Item[];
39
+ couponCode?: string | null;
40
+ couponDiscount?: number | null;
41
+ frete?: number | null;
42
+ status: string;
43
+ transactionId?: string;
44
+ [key: string]: unknown;
43
45
  }
44
- export interface OrderInfo {
45
- id: string;
46
- orderId: string;
47
- customerId: any;
48
- customerProfile: any;
49
- customerName: string;
50
- customerEmail: string;
51
- notes: any;
52
- lat: string;
53
- lng: string;
54
- address: string;
55
- createdAt: string;
56
- updatedAt: any;
46
+ export interface GetFreteDTO {
47
+ localization?: string;
48
+ lat?: number;
49
+ long?: number;
50
+ coupon?: string;
51
+ items?: DashboardOrderItemDTO[];
57
52
  }
58
- export interface Item {
59
- id: string;
60
- orderId: string;
61
- productId: string;
62
- image: string;
63
- category: string;
64
- name: string;
65
- quantity: number;
53
+ export interface CouponDiscountDTO {
54
+ code: string;
55
+ items: DashboardOrderItemDTO[];
56
+ customerId?: string;
57
+ customerEmail?: string;
58
+ fretePrice?: number;
59
+ }
60
+ export interface FreteResponseDTO {
61
+ required: boolean;
66
62
  price: number;
67
- createdAt: string;
68
- updatedAt: any;
63
+ isFreeShipping: boolean;
64
+ message?: string;
65
+ }
66
+ export interface CouponDiscountResponseDTO {
67
+ valid: boolean;
68
+ message?: string;
69
+ code?: string;
70
+ discountType?: string;
71
+ discountValue?: number;
72
+ discountAmount?: number;
73
+ isFreeShipping?: boolean;
74
+ subtotal?: number;
75
+ finalAmount?: number;
69
76
  }
70
- export {};
71
- //# sourceMappingURL=order.dto.d.ts.map
@@ -1,8 +1,17 @@
1
- import type { Order_Return, OrderDTO } from "./dto/order.dto";
1
+ import type { CouponDiscountDTO, CouponDiscountResponseDTO, GetFreteDTO, FreteResponseDTO, OrderDTO, Order_Return } from "./dto/order.dto";
2
2
  import type { OrderService } from "./service/order.ser";
3
3
  export declare class OrderFeature {
4
4
  private readonly service;
5
5
  constructor(service: OrderService);
6
- new(data: OrderDTO): Promise<Order_Return>;
6
+ /** Cria uma encomenda através do serviço central de checkout Hellena. */
7
+ createOrder(data: OrderDTO): Promise<Order_Return>;
8
+ /** Renova o identificador de transação de uma encomenda existente. */
9
+ renewOrderTransactionId(id: string): Promise<{
10
+ id: string;
11
+ transactionId: string;
12
+ }>;
13
+ /** Calcula o custo de entrega para os artigos e a localização indicados. */
14
+ calculateShippingCost(data: GetFreteDTO): Promise<FreteResponseDTO>;
15
+ /** Calcula o desconto aplicável a um cupão e aos artigos indicados. */
16
+ calculateCouponDiscount(data: CouponDiscountDTO): Promise<CouponDiscountResponseDTO>;
7
17
  }
8
- //# sourceMappingURL=order.feature.d.ts.map
@@ -1,4 +1,3 @@
1
- import type { HellenaConnect } from "@//core/HellenaConnect";
2
1
  import { OrderFeature } from "./order.feature";
2
+ import type { HellenaConnect } from "@/core/HellenaConnect";
3
3
  export declare function OrderModel(connect: HellenaConnect): OrderFeature;
4
- //# sourceMappingURL=order.model.d.ts.map
@@ -1,10 +1,15 @@
1
- import type { HellenaConnect } from "@//core/HellenaConnect";
2
- import type { Order_Return, OrderDTO } from "../dto/order.dto";
1
+ import type { HellenaConnect } from "../../../core/HellenaConnect";
2
+ import type { CouponDiscountDTO, CouponDiscountResponseDTO, GetFreteDTO, FreteResponseDTO, OrderDTO, Order_Return } from "../dto/order.dto";
3
3
  export declare class OrderService {
4
4
  private readonly connect;
5
5
  constructor(connect: HellenaConnect);
6
6
  make({ data }: {
7
7
  data: OrderDTO;
8
8
  }): Promise<Order_Return>;
9
+ renewTransactionId(id: string): Promise<{
10
+ id: string;
11
+ transactionId: string;
12
+ }>;
13
+ getFrete(payload: GetFreteDTO): Promise<FreteResponseDTO>;
14
+ calculateCouponDiscount(payload: CouponDiscountDTO): Promise<CouponDiscountResponseDTO>;
9
15
  }
10
- //# sourceMappingURL=order.ser.d.ts.map
@@ -24,4 +24,3 @@ export interface OrganizationLinkDTO {
24
24
  name: string;
25
25
  link: string;
26
26
  }
27
- //# sourceMappingURL=organization.dto.d.ts.map
@@ -3,7 +3,8 @@ import { OrganizationService } from "./service/organization.ser";
3
3
  export declare class OrganizationFeature {
4
4
  private readonly service;
5
5
  constructor(service: OrganizationService);
6
- info(): Promise<OrganizationInfoResponseDTO>;
7
- socialLinks(): Promise<OrganizationLinkDTO[]>;
6
+ /** Obtém as informações públicas da organização associada à API Key. */
7
+ getOrganizationInfo(): Promise<OrganizationInfoResponseDTO>;
8
+ /** Obtém os links sociais configurados pela organização. */
9
+ getOrganizationSocialLinks(): Promise<OrganizationLinkDTO[]>;
8
10
  }
9
- //# sourceMappingURL=organization.feature.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import type { HellenaConnect } from "@/core/HellenaConnect.js";
2
2
  import { OrganizationFeature } from "./organization.feature.js";
3
3
  export declare function OrganizationModel(connect: HellenaConnect): OrganizationFeature;
4
- //# sourceMappingURL=organization.model.d.ts.map
@@ -6,4 +6,3 @@ export declare class OrganizationService {
6
6
  getInfo(): Promise<OrganizationInfoResponseDTO>;
7
7
  getLinks(): Promise<OrganizationLinkDTO[]>;
8
8
  }
9
- //# sourceMappingURL=organization.ser.d.ts.map
@@ -0,0 +1,14 @@
1
+ export interface PaymentMethodDTO {
2
+ id: string;
3
+ method: string;
4
+ testMode: boolean;
5
+ }
6
+ export interface CreateWiPayPaymentDTO {
7
+ customer: string;
8
+ reference: string;
9
+ failure_url: string;
10
+ success_url: string;
11
+ }
12
+ export interface CreateWiPayPaymentResponseDTO {
13
+ url: string;
14
+ }
@@ -0,0 +1,10 @@
1
+ import type { CreateWiPayPaymentDTO, CreateWiPayPaymentResponseDTO, PaymentMethodDTO } from "./dto/payment.dto";
2
+ import type { PaymentService } from "./service/payment.ser";
3
+ export declare class PaymentFeature {
4
+ private readonly service;
5
+ constructor(service: PaymentService);
6
+ /** Lista os métodos de pagamento configurados para a organização. */
7
+ listAvailablePaymentMethods(): Promise<PaymentMethodDTO[]>;
8
+ /** Cria uma sessão de pagamento WiPay e devolve o URL para continuar o fluxo. */
9
+ createWiPayPayment(data: CreateWiPayPaymentDTO): Promise<CreateWiPayPaymentResponseDTO>;
10
+ }
@@ -0,0 +1,3 @@
1
+ import type { HellenaConnect } from "../../core/HellenaConnect";
2
+ import { PaymentFeature } from "./payment.feature";
3
+ export declare function PaymentModel(connect: HellenaConnect): PaymentFeature;
@@ -0,0 +1,8 @@
1
+ import type { HellenaConnect } from "../../../core/HellenaConnect";
2
+ import type { CreateWiPayPaymentDTO, CreateWiPayPaymentResponseDTO, PaymentMethodDTO } from "../dto/payment.dto";
3
+ export declare class PaymentService {
4
+ private readonly connect;
5
+ constructor(connect: HellenaConnect);
6
+ methods(): Promise<PaymentMethodDTO[]>;
7
+ createWiPayPayment(data: CreateWiPayPaymentDTO): Promise<CreateWiPayPaymentResponseDTO>;
8
+ }
@@ -2,10 +2,26 @@ export interface PriceDTO {
2
2
  id: string;
3
3
  quantity: number;
4
4
  price: number;
5
+ priceType?: string;
6
+ isPromotion?: boolean;
7
+ }
8
+ export interface ProductVariantDTO {
9
+ id: string;
10
+ value: string;
11
+ color?: string | null;
12
+ link?: string | null;
13
+ variantProduct?: {
14
+ id: string;
15
+ name: string;
16
+ slug?: string;
17
+ image: string | null;
18
+ prices: PriceDTO[];
19
+ } | null;
5
20
  }
6
21
  export interface ProductDTO {
7
22
  id: string;
8
- barcode: string;
23
+ slug?: string | null;
24
+ barcode: string | null;
9
25
  name: string;
10
26
  category: string | null;
11
27
  image: string | null;
@@ -15,11 +31,50 @@ export interface ProductDTO {
15
31
  image_sides: string[] | null;
16
32
  color: string[] | null;
17
33
  brand: string | null;
34
+ model?: string[] | null;
18
35
  material: string[] | null;
19
36
  size: string[] | null;
20
37
  tags: string[] | null;
21
- Price: PriceDTO[];
22
- unit: string;
38
+ gender?: string[] | null;
39
+ prices: PriceDTO[];
40
+ unit: string | null;
41
+ unitsPerBox?: number | null;
23
42
  quantity: number;
43
+ averageRating?: number;
44
+ ratingCount?: number;
45
+ commentsCount?: number;
46
+ variants?: ProductVariantDTO[];
47
+ }
48
+ export interface PaginationMeta {
49
+ page: number;
50
+ limit: number;
51
+ total: number;
52
+ totalPages: number;
53
+ hasNextPage: boolean;
54
+ hasPreviousPage: boolean;
55
+ }
56
+ export interface PaginatedResponse<T> {
57
+ data: T[];
58
+ meta: PaginationMeta;
59
+ }
60
+ export interface ProductListParams {
61
+ page?: number;
62
+ limit?: number;
63
+ q?: string;
64
+ category?: string;
65
+ color?: string | string[];
66
+ brand?: string;
67
+ model?: string | string[];
68
+ material?: string | string[];
69
+ size?: string | string[];
70
+ tags?: string | string[];
71
+ gender?: string | string[];
72
+ minPrice?: number;
73
+ maxPrice?: number;
74
+ inStock?: boolean;
75
+ sortBy?: "createdAt" | "updatedAt" | "name";
76
+ sortOrder?: "asc" | "desc";
77
+ }
78
+ export interface ProductSearchParams extends ProductListParams {
79
+ ref?: string;
24
80
  }
25
- //# sourceMappingURL=product.dto.d.ts.map
@@ -1,11 +1,32 @@
1
- import type { ProductDTO } from "./dto/product.dto";
1
+ import type { ProductDTO, ProductListParams, ProductSearchParams, PaginatedResponse } from "./dto/product.dto";
2
2
  import type { ProductService } from "./service/product.ser";
3
3
  export declare class ProductFeature {
4
4
  private readonly service;
5
5
  constructor(service: ProductService);
6
- findMany(): Promise<ProductDTO[]>;
7
- findOne({ id }: {
8
- id: string;
9
- }): Promise<ProductDTO>;
6
+ /**
7
+ * Lista produtos com paginação e filtros combináveis.
8
+ *
9
+ * Filtros suportados:
10
+ * - q: pesquisa textual;
11
+ * - minPrice / maxPrice: intervalo de preços;
12
+ * - category, brand: categoria e marca;
13
+ * - color, model, material, size, tags e gender: valor único ou lista;
14
+ * - inStock: disponibilidade em stock;
15
+ * - sortBy / sortOrder: ordenação dos resultados.
16
+ */
17
+ listProducts(params?: ProductListParams): Promise<PaginatedResponse<ProductDTO>>;
18
+ /**
19
+ * Filtra produtos sem exigir um termo de pesquisa.
20
+ * É um método explícito equivalente a listProducts, útil para interfaces de catálogo.
21
+ */
22
+ filterProducts(filters?: ProductListParams): Promise<PaginatedResponse<ProductDTO>>;
23
+ /**
24
+ * Pesquisa produtos por texto (ref ou q) e combina a pesquisa com os restantes filtros.
25
+ * Aceita os mesmos filtros de listProducts, incluindo intervalo de preço, categoria,
26
+ * cor, marca, modelo, material, tamanho, tags, género e disponibilidade.
27
+ */
28
+ searchProducts(params?: ProductSearchParams): Promise<PaginatedResponse<ProductDTO>>;
29
+ /** Obtém os detalhes de um produto através do ID ou slug. */
30
+ getProductByIdOrSlug(id: string): Promise<ProductDTO>;
31
+ private validatePriceRange;
10
32
  }
11
- //# sourceMappingURL=product.feature.d.ts.map
@@ -1,4 +1,3 @@
1
- import type { HellenaConnect } from "@//core/HellenaConnect";
1
+ import type { HellenaConnect } from "@/core/HellenaConnect";
2
2
  import { ProductFeature } from "./product.feature";
3
3
  export declare function ProductModel(connect: HellenaConnect): ProductFeature;
4
- //# sourceMappingURL=product.model.d.ts.map
@@ -1,9 +1,10 @@
1
- import type { HellenaConnect } from "@//core/HellenaConnect";
2
- import type { ProductDTO } from "../dto/product.dto";
1
+ import type { HellenaConnect } from "../../../core/HellenaConnect";
2
+ import type { PaginatedResponse, ProductDTO, ProductListParams, ProductSearchParams } from "../dto/product.dto";
3
3
  export declare class ProductService {
4
4
  private readonly connect;
5
5
  constructor(connect: HellenaConnect);
6
- getAllProducts(): Promise<ProductDTO[]>;
6
+ getAllProducts(params?: ProductListParams): Promise<PaginatedResponse<ProductDTO>>;
7
+ searchProducts(params: ProductSearchParams): Promise<PaginatedResponse<ProductDTO>>;
7
8
  getProductById(id: string): Promise<ProductDTO>;
9
+ private toQuery;
8
10
  }
9
- //# sourceMappingURL=product.ser.d.ts.map
@@ -0,0 +1,52 @@
1
+ import type { PaginatedResponse } from "../../product/dto/product.dto";
2
+ export interface RatingDTO {
3
+ id: string;
4
+ stockId: string;
5
+ score: number;
6
+ customerId?: string | null;
7
+ customerProfile?: string | null;
8
+ customerName?: string | null;
9
+ customerEmail?: string | null;
10
+ createdAt?: string;
11
+ updatedAt?: string | null;
12
+ }
13
+ export interface AddRatingDTO {
14
+ stockId: string;
15
+ score: number;
16
+ customerId?: string;
17
+ customerProfile?: string;
18
+ customerName?: string;
19
+ customerEmail?: string;
20
+ }
21
+ export interface RatingProductDTO {
22
+ id: string;
23
+ name: string;
24
+ slug?: string | null;
25
+ image?: string | null;
26
+ brand?: string | null;
27
+ category?: string | null;
28
+ averageRating?: number;
29
+ ratingCount?: number;
30
+ commentsCount?: number;
31
+ }
32
+ export interface RatingDistributionDTO {
33
+ score: 1 | 2 | 3 | 4 | 5;
34
+ count: number;
35
+ percentage: number;
36
+ }
37
+ export interface RatingSummaryStatsDTO {
38
+ averageRating: number;
39
+ totalRatings: number;
40
+ totalScore: number;
41
+ minScore: number | null;
42
+ maxScore: number | null;
43
+ commentsCount: number;
44
+ distribution: RatingDistributionDTO[];
45
+ ratingLabel: string;
46
+ }
47
+ export interface RatingSummaryDTO {
48
+ product: RatingProductDTO;
49
+ summary: RatingSummaryStatsDTO;
50
+ ratings: PaginatedResponse<RatingDTO>;
51
+ }
52
+ export type PaginatedRatingsDTO = PaginatedResponse<RatingDTO>;
@@ -0,0 +1,29 @@
1
+ import type { AddRatingDTO, PaginatedRatingsDTO, RatingDTO, RatingSummaryDTO } from "./dto/rating.dto";
2
+ import type { RatingService } from "./service/rating.ser";
3
+ export declare class RatingFeature {
4
+ private readonly service;
5
+ constructor(service: RatingService);
6
+ /** Obtém a média, distribuição por estrelas, comentários e avaliações recentes de um produto. */
7
+ getProductRatingSummary(stockId: string, params?: {
8
+ page?: number;
9
+ limit?: number;
10
+ }): Promise<RatingSummaryDTO>;
11
+ /** Lista as avaliações de um produto com paginação. */
12
+ listProductRatings(params: {
13
+ stockId: string;
14
+ page?: number;
15
+ limit?: number;
16
+ }): Promise<PaginatedRatingsDTO>;
17
+ /** Obtém a avaliação de um cliente para um produto, se existir. */
18
+ getCustomerProductRating(params: {
19
+ stockId: string;
20
+ customerId: string;
21
+ }): Promise<RatingDTO | null>;
22
+ /** Regista ou atualiza a avaliação de um cliente. */
23
+ createProductRating(data: AddRatingDTO): Promise<RatingDTO>;
24
+ /** Elimina uma avaliação pelo seu identificador. */
25
+ deleteProductRating(id: string): Promise<{
26
+ success: boolean;
27
+ id?: string;
28
+ }>;
29
+ }
@@ -0,0 +1,3 @@
1
+ import type { HellenaConnect } from "../../core/HellenaConnect";
2
+ import { RatingFeature } from "./rating.feature";
3
+ export declare function RatingModel(connect: HellenaConnect): RatingFeature;
@@ -0,0 +1,24 @@
1
+ import type { HellenaConnect } from "../../../core/HellenaConnect";
2
+ import type { AddRatingDTO, PaginatedRatingsDTO, RatingDTO, RatingSummaryDTO } from "../dto/rating.dto";
3
+ export declare class RatingService {
4
+ private readonly connect;
5
+ constructor(connect: HellenaConnect);
6
+ summary(stockId: string, params?: {
7
+ page?: number;
8
+ limit?: number;
9
+ }): Promise<RatingSummaryDTO>;
10
+ findMany(params: {
11
+ stockId: string;
12
+ page?: number;
13
+ limit?: number;
14
+ }): Promise<PaginatedRatingsDTO>;
15
+ findOne(params: {
16
+ stockId: string;
17
+ customerId: string;
18
+ }): Promise<RatingDTO | null>;
19
+ create(data: AddRatingDTO): Promise<RatingDTO>;
20
+ delete(id: string): Promise<{
21
+ success: boolean;
22
+ id?: string;
23
+ }>;
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellena-sdk/hellena",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Official JavaScript SDK for the Hellena API",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -14,9 +14,11 @@
14
14
  "import": "./dist/main.js"
15
15
  }
16
16
  },
17
- "files": ["dist"],
17
+ "files": [
18
+ "dist"
19
+ ],
18
20
  "scripts": {
19
- "build": "bun build src/main.ts --outdir dist --target node && tsc --emitDeclarationOnly",
21
+ "build": "bun build src/main.ts --outdir dist --target node && tsc --emitDeclarationOnly -p tsconfig.json",
20
22
  "dev": "bun run index.ts",
21
23
  "pack": "mkdir packages && npm pack && mv *.tgz packages/",
22
24
  "prepublishOnly": "bun run build"
@@ -1 +0,0 @@
1
- {"version":3,"file":"HellenaConnect.d.ts","sourceRoot":"","sources":["../../src/core/HellenaConnect.ts"],"names":[],"mappings":"AAAA,qBAAa,cAAc;IAKnB,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM;IAJrC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAClC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;gBAGf,MAAM,EAAE,MAAM,EACjC,MAAM,SAA4B,EAClC,UAAU,SAAO;IAMrB,SAAS,KAAK,WAAW,IAAI,MAAM,CAElC;IAED,SAAS,CAAC,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAMjD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAIvD,qBAAa,aAAc,SAAQ,cAAc;IAC7C,SAAgB,OAAO,+DAAsB;IAC7C,SAAgB,KAAK,yDAAoB;gBAG7B,MAAM,EAAE,MAAM;CAG7B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"order.dto.d.ts","sourceRoot":"","sources":["../../../../src/resources/order/dto/order.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,cAAc,EAAE,CAAA;CAC1B;AAED,UAAU,cAAc;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,GAAG,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,GAAG,CAAA;IACd,YAAY,EAAE,GAAG,CAAA;IACjB,OAAO,EAAE,GAAG,CAAA;IACZ,YAAY,EAAE,GAAG,CAAA;IACjB,cAAc,EAAE,GAAG,CAAA;IACnB,aAAa,EAAE,GAAG,CAAA;IAClB,KAAK,EAAE,GAAG,CAAA;IACV,IAAI,EAAE,GAAG,CAAA;IACT,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,IAAI,EAAE,CAAA;CAChB;AAED,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,GAAG,CAAA;IACf,eAAe,EAAE,GAAG,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,GAAG,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,GAAG,CAAA;CACjB;AAED,MAAM,WAAW,IAAI;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,GAAG,CAAA;CACjB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"order.feature.d.ts","sourceRoot":"","sources":["../../../src/resources/order/order.feature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,YAAY;IACT,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,YAAY;IAE5C,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC;CAInD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"order.model.d.ts","sourceRoot":"","sources":["../../../src/resources/order/order.model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,wBAAgB,UAAU,CAAC,OAAO,EAAE,cAAc,gBAGjD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"order.ser.d.ts","sourceRoot":"","sources":["../../../../src/resources/order/service/order.ser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE/D,qBAAa,YAAY;IACT,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,cAAc;IAE9C,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC,YAAY,CAAC;CAoBlE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"organization.dto.d.ts","sourceRoot":"","sources":["../../../../src/resources/organization/dto/organization.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,mCAAmC,GAAG,IAAI,CAAA;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,0CAA0C;IACvD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,mCAAmC;IAChD,OAAO,EAAE,0CAA0C,EAAE,CAAA;CACxD;AAED,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"organization.feature.d.ts","sourceRoot":"","sources":["../../../src/resources/organization/organization.feature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,qBAAa,mBAAmB;IAChB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,mBAAmB;IAEzD,IAAI,IAAI,OAAO,CAAC,2BAA2B,CAAC;IAC5C,WAAW,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAC;CAChD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"organization.model.d.ts","sourceRoot":"","sources":["../../../src/resources/organization/organization.model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,cAAc,uBAGxD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"organization.ser.d.ts","sourceRoot":"","sources":["../../../../src/resources/organization/service/organization.ser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEhG,qBAAa,mBAAmB;IAChB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,cAAc;IAE9C,OAAO,IAAI,OAAO,CAAC,2BAA2B,CAAC;IAgB/C,QAAQ,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAC;CAenD"}
@@ -1 +0,0 @@
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,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACjB;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,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC7B,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CACpB"}
@@ -1 +0,0 @@
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,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE3D,qBAAa,cAAc;IACX,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,cAAc;IAE9C,QAAQ,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAKjC,OAAO,CAAC,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,UAAU,CAAC;CAI7D"}
@@ -1 +0,0 @@
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,wBAAwB,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,kBAGnD"}
@@ -1 +0,0 @@
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,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,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"}