cecon-interfaces 1.0.15 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (260) hide show
  1. package/dist/company/entities/company.entity.d.ts +39 -0
  2. package/dist/company/entities/company.entity.js +51 -0
  3. package/dist/company/entities/index.d.ts +1 -0
  4. package/dist/company/entities/index.js +6 -0
  5. package/dist/company/enums/index.d.ts +2 -0
  6. package/dist/company/enums/index.js +8 -0
  7. package/dist/company/index.d.ts +3 -3
  8. package/dist/company/index.js +17 -6
  9. package/dist/company/interfaces/i-company.d.ts +1 -0
  10. package/dist/company/interfaces/index.d.ts +1 -0
  11. package/dist/device/entities/device.entity.d.ts +19 -0
  12. package/dist/device/entities/device.entity.js +35 -0
  13. package/dist/device/entities/index.d.ts +3 -0
  14. package/dist/device/entities/index.js +10 -0
  15. package/dist/device/entities/metadata.entity.d.ts +6 -0
  16. package/dist/device/entities/metadata.entity.js +21 -0
  17. package/dist/device/entities/natigo.entity.d.ts +8 -0
  18. package/dist/device/entities/natigo.entity.js +23 -0
  19. package/dist/device/enums/index.d.ts +1 -0
  20. package/dist/device/enums/index.js +6 -0
  21. package/dist/device/index.d.ts +3 -4
  22. package/dist/device/index.js +17 -4
  23. package/dist/device/interfaces/index.d.ts +3 -0
  24. package/dist/device/interfaces/index.js +3 -0
  25. package/dist/esm2022/company/entities/company.entity.mjs +47 -0
  26. package/dist/esm2022/company/entities/index.mjs +3 -0
  27. package/dist/esm2022/company/enums/index.mjs +4 -0
  28. package/dist/esm2022/company/index.mjs +4 -4
  29. package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
  30. package/dist/esm2022/company/interfaces/index.mjs +2 -0
  31. package/dist/esm2022/device/entities/device.entity.mjs +31 -0
  32. package/dist/esm2022/device/entities/index.mjs +5 -0
  33. package/dist/esm2022/device/entities/metadata.entity.mjs +17 -0
  34. package/dist/esm2022/device/entities/natigo.entity.mjs +19 -0
  35. package/dist/esm2022/device/enums/index.mjs +3 -0
  36. package/dist/esm2022/device/index.mjs +4 -3
  37. package/dist/esm2022/device/interfaces/index.mjs +3 -0
  38. package/dist/esm2022/general/entities/address.entity.mjs +24 -0
  39. package/dist/esm2022/general/entities/coords.entity.mjs +14 -0
  40. package/dist/esm2022/general/entities/delivery-area.entity.mjs +23 -0
  41. package/dist/esm2022/general/entities/dellivery-area-fixed.entity.mjs +20 -0
  42. package/dist/esm2022/general/entities/index.mjs +13 -0
  43. package/dist/esm2022/general/entities/messager-channel.entity.mjs +18 -0
  44. package/dist/esm2022/general/entities/mobyo-apiconfig.entity.mjs +21 -0
  45. package/dist/esm2022/general/entities/origin.entity.mjs +22 -0
  46. package/dist/esm2022/general/entities/payment-method.entity.mjs +31 -0
  47. package/dist/esm2022/general/entities/payment-provider-agent.entity.mjs +17 -0
  48. package/dist/esm2022/general/entities/payment-provider.entity.mjs +29 -0
  49. package/dist/esm2022/general/entities/payment-token-data.entity.mjs +22 -0
  50. package/dist/esm2022/general/entities/payment-token.entity.mjs +21 -0
  51. package/dist/esm2022/general/enums/index.mjs +7 -0
  52. package/dist/esm2022/general/enums/payment-type.enum.mjs +2 -1
  53. package/dist/esm2022/general/index.mjs +4 -7
  54. package/dist/esm2022/general/interfaces/i-address.mjs +1 -1
  55. package/dist/esm2022/general/interfaces/{i-mobyo-server-api.mjs → i-mobyo-api-config.mjs} +1 -1
  56. package/dist/esm2022/general/interfaces/i-payment-provider.mjs +1 -1
  57. package/dist/esm2022/general/interfaces/i-payment-token-data.mjs +3 -0
  58. package/dist/esm2022/general/interfaces/i-payment-token.mjs +3 -0
  59. package/dist/esm2022/general/interfaces/index.mjs +3 -0
  60. package/dist/esm2022/index.mjs +2 -2
  61. package/dist/esm2022/order/entities/index.mjs +20 -0
  62. package/dist/esm2022/order/entities/order-additional-fees.entity.mjs +17 -0
  63. package/dist/esm2022/order/entities/order-benefits-sponsor-ship.entity.mjs +17 -0
  64. package/dist/esm2022/order/entities/order-benefits.entity.mjs +21 -0
  65. package/dist/esm2022/order/entities/order-cancellation.entity.mjs +18 -0
  66. package/dist/esm2022/order/entities/order-customer-phone.entity.mjs +19 -0
  67. package/dist/esm2022/order/entities/order-customer.entity.mjs +23 -0
  68. package/dist/esm2022/order/entities/order-item-composition.entity.mjs +21 -0
  69. package/dist/esm2022/order/entities/order-item-option.entity.mjs +30 -0
  70. package/dist/esm2022/order/entities/order-item.entity.mjs +36 -0
  71. package/dist/esm2022/order/entities/order-payment-card.entity.mjs +16 -0
  72. package/dist/esm2022/order/entities/order-payment-cash.entity.mjs +16 -0
  73. package/dist/esm2022/order/entities/order-payment-method.entity.mjs +27 -0
  74. package/dist/esm2022/order/entities/order-payment-pix.entity.mjs +17 -0
  75. package/dist/esm2022/order/entities/order-payment-wallet.entity.mjs +16 -0
  76. package/dist/esm2022/order/entities/order-payment.entity.mjs +18 -0
  77. package/dist/esm2022/order/entities/order-scale-item.entity.mjs +17 -0
  78. package/dist/esm2022/order/entities/order-scale-price.entity.mjs +17 -0
  79. package/dist/esm2022/order/entities/order-total.entity.mjs +20 -0
  80. package/dist/esm2022/order/entities/order.entity.mjs +34 -0
  81. package/dist/esm2022/order/enums/index.mjs +3 -0
  82. package/dist/esm2022/{general/enums/order-satus.enum.mjs → order/enums/order-status.enum.mjs} +1 -1
  83. package/dist/esm2022/order/index.mjs +4 -0
  84. package/dist/esm2022/order/interfaces/i-order-additional-fee.mjs +2 -0
  85. package/dist/esm2022/order/interfaces/i-order-benefits-sponsor-ship.mjs +2 -0
  86. package/dist/esm2022/order/interfaces/i-order-benefits.mjs +2 -0
  87. package/dist/esm2022/order/interfaces/i-order-cancellation.mjs +2 -0
  88. package/dist/esm2022/order/interfaces/i-order-customer-phone.mjs +2 -0
  89. package/dist/esm2022/order/interfaces/i-order-customer.mjs +2 -0
  90. package/dist/esm2022/order/interfaces/i-order-item-composition.mjs +2 -0
  91. package/dist/esm2022/order/interfaces/i-order-item-option.mjs +2 -0
  92. package/dist/esm2022/order/interfaces/i-order-item.mjs +2 -0
  93. package/dist/esm2022/order/interfaces/i-order-payment-card.mjs +2 -0
  94. package/dist/esm2022/order/interfaces/i-order-payment-cash.mjs +2 -0
  95. package/dist/esm2022/order/interfaces/i-order-payment-method.mjs +2 -0
  96. package/dist/esm2022/order/interfaces/i-order-payment-pix.mjs +2 -0
  97. package/dist/esm2022/order/interfaces/i-order-payment-wallet.mjs +2 -0
  98. package/dist/esm2022/order/interfaces/i-order-payment.mjs +2 -0
  99. package/dist/esm2022/order/interfaces/i-order-scale-item.mjs +2 -0
  100. package/dist/esm2022/order/interfaces/i-order-scale-price.mjs +2 -0
  101. package/dist/esm2022/order/interfaces/i-order-total.mjs +2 -0
  102. package/dist/esm2022/order/interfaces/i-order.mjs +2 -0
  103. package/dist/esm2022/order/interfaces/index.mjs +2 -0
  104. package/dist/esm2022/purchases/entities/app-info.entity.mjs +18 -0
  105. package/dist/esm2022/purchases/entities/index.mjs +3 -0
  106. package/dist/esm2022/purchases/entities/purchase.entity.mjs +23 -0
  107. package/dist/esm2022/purchases/index.mjs +3 -3
  108. package/dist/esm2022/purchases/interfaces/i-purchase.mjs +1 -1
  109. package/dist/esm2022/purchases/interfaces/index.mjs +2 -0
  110. package/dist/fesm2022/cecon-interfaces.mjs +877 -31
  111. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  112. package/dist/general/entities/address.entity.d.ts +12 -0
  113. package/dist/general/entities/address.entity.js +28 -0
  114. package/dist/general/entities/coords.entity.d.ts +5 -0
  115. package/dist/general/entities/coords.entity.js +18 -0
  116. package/dist/general/entities/delivery-area.entity.d.ts +12 -0
  117. package/dist/general/entities/delivery-area.entity.js +27 -0
  118. package/dist/general/entities/dellivery-area-fixed.entity.d.ts +8 -0
  119. package/dist/general/entities/dellivery-area-fixed.entity.js +24 -0
  120. package/dist/general/entities/index.d.ts +12 -0
  121. package/dist/general/entities/index.js +27 -0
  122. package/dist/general/entities/messager-channel.entity.d.ts +6 -0
  123. package/dist/general/entities/messager-channel.entity.js +22 -0
  124. package/dist/general/entities/mobyo-apiconfig.entity.d.ts +9 -0
  125. package/dist/general/entities/mobyo-apiconfig.entity.js +25 -0
  126. package/dist/general/entities/origin.entity.d.ts +10 -0
  127. package/dist/general/entities/origin.entity.js +26 -0
  128. package/dist/general/entities/payment-method.entity.d.ts +19 -0
  129. package/dist/general/entities/payment-method.entity.js +35 -0
  130. package/dist/general/entities/payment-provider-agent.entity.d.ts +5 -0
  131. package/dist/general/entities/payment-provider-agent.entity.js +21 -0
  132. package/dist/general/entities/payment-provider.entity.d.ts +18 -0
  133. package/dist/general/entities/payment-provider.entity.js +33 -0
  134. package/dist/general/entities/payment-token-data.entity.d.ts +10 -0
  135. package/dist/general/entities/payment-token-data.entity.js +26 -0
  136. package/dist/general/entities/payment-token.entity.d.ts +9 -0
  137. package/dist/general/entities/payment-token.entity.js +25 -0
  138. package/dist/general/enums/index.d.ts +6 -0
  139. package/dist/general/enums/index.js +15 -0
  140. package/dist/general/enums/payment-type.enum.d.ts +1 -0
  141. package/dist/general/enums/payment-type.enum.js +1 -0
  142. package/dist/general/index.d.ts +3 -17
  143. package/dist/general/index.js +17 -12
  144. package/dist/general/interfaces/i-address.d.ts +2 -0
  145. package/dist/general/interfaces/i-payment-provider.d.ts +1 -1
  146. package/dist/general/interfaces/{i-payment-tokens.d.ts → i-payment-token.d.ts} +1 -1
  147. package/dist/general/interfaces/index.d.ts +12 -0
  148. package/dist/general/interfaces/index.js +3 -0
  149. package/dist/index.d.ts +1 -0
  150. package/dist/index.js +1 -1
  151. package/dist/order/entities/index.d.ts +19 -0
  152. package/dist/order/entities/index.js +41 -0
  153. package/dist/order/entities/order-additional-fees.entity.d.ts +5 -0
  154. package/dist/order/entities/order-additional-fees.entity.js +21 -0
  155. package/dist/order/entities/order-benefits-sponsor-ship.entity.d.ts +5 -0
  156. package/dist/order/entities/order-benefits-sponsor-ship.entity.js +21 -0
  157. package/dist/order/entities/order-benefits.entity.d.ts +10 -0
  158. package/dist/order/entities/order-benefits.entity.js +25 -0
  159. package/dist/order/entities/order-cancellation.entity.d.ts +6 -0
  160. package/dist/order/entities/order-cancellation.entity.js +22 -0
  161. package/dist/order/entities/order-customer-phone.entity.d.ts +7 -0
  162. package/dist/order/entities/order-customer-phone.entity.js +23 -0
  163. package/dist/order/entities/order-customer.entity.d.ts +11 -0
  164. package/dist/order/entities/order-customer.entity.js +27 -0
  165. package/dist/order/entities/order-item-composition.entity.d.ts +9 -0
  166. package/dist/order/entities/order-item-composition.entity.js +25 -0
  167. package/dist/order/entities/order-item-option.entity.d.ts +18 -0
  168. package/dist/order/entities/order-item-option.entity.js +34 -0
  169. package/dist/order/entities/order-item.entity.d.ts +26 -0
  170. package/dist/order/entities/order-item.entity.js +40 -0
  171. package/dist/order/entities/order-payment-card.entity.d.ts +4 -0
  172. package/dist/order/entities/order-payment-card.entity.js +20 -0
  173. package/dist/order/entities/order-payment-cash.entity.d.ts +4 -0
  174. package/dist/order/entities/order-payment-cash.entity.js +20 -0
  175. package/dist/order/entities/order-payment-method.entity.d.ts +19 -0
  176. package/dist/order/entities/order-payment-method.entity.js +31 -0
  177. package/dist/order/entities/order-payment-pix.entity.d.ts +5 -0
  178. package/dist/order/entities/order-payment-pix.entity.js +21 -0
  179. package/dist/order/entities/order-payment-wallet.entity.d.ts +4 -0
  180. package/dist/order/entities/order-payment-wallet.entity.js +20 -0
  181. package/dist/order/entities/order-payment.entity.d.ts +7 -0
  182. package/dist/order/entities/order-payment.entity.js +22 -0
  183. package/dist/order/entities/order-scale-item.entity.d.ts +5 -0
  184. package/dist/order/entities/order-scale-item.entity.js +21 -0
  185. package/dist/order/entities/order-scale-price.entity.d.ts +6 -0
  186. package/dist/order/entities/order-scale-price.entity.js +21 -0
  187. package/dist/order/entities/order-total.entity.d.ts +8 -0
  188. package/dist/order/entities/order-total.entity.js +24 -0
  189. package/dist/order/entities/order.entity.d.ts +27 -0
  190. package/dist/order/entities/order.entity.js +38 -0
  191. package/dist/order/enums/index.d.ts +1 -0
  192. package/dist/order/enums/index.js +6 -0
  193. package/dist/order/index.d.ts +3 -0
  194. package/dist/order/index.js +19 -0
  195. package/dist/order/interfaces/i-order-additional-fee.d.ts +4 -0
  196. package/dist/order/interfaces/i-order-additional-fee.js +2 -0
  197. package/dist/order/interfaces/i-order-benefits-sponsor-ship.d.ts +4 -0
  198. package/dist/order/interfaces/i-order-benefits-sponsor-ship.js +2 -0
  199. package/dist/order/interfaces/i-order-benefits.d.ts +9 -0
  200. package/dist/order/interfaces/i-order-benefits.js +2 -0
  201. package/dist/order/interfaces/i-order-cancellation.d.ts +5 -0
  202. package/dist/order/interfaces/i-order-cancellation.js +2 -0
  203. package/dist/order/interfaces/i-order-customer-phone.d.ts +6 -0
  204. package/dist/order/interfaces/i-order-customer-phone.js +2 -0
  205. package/dist/order/interfaces/i-order-customer.d.ts +10 -0
  206. package/dist/order/interfaces/i-order-customer.js +2 -0
  207. package/dist/order/interfaces/i-order-item-composition.d.ts +8 -0
  208. package/dist/order/interfaces/i-order-item-composition.js +2 -0
  209. package/dist/order/interfaces/i-order-item-option.d.ts +17 -0
  210. package/dist/order/interfaces/i-order-item-option.js +2 -0
  211. package/dist/order/interfaces/i-order-item.d.ts +25 -0
  212. package/dist/order/interfaces/i-order-item.js +2 -0
  213. package/dist/order/interfaces/i-order-payment-card.d.ts +3 -0
  214. package/dist/order/interfaces/i-order-payment-card.js +2 -0
  215. package/dist/order/interfaces/i-order-payment-cash.d.ts +3 -0
  216. package/dist/order/interfaces/i-order-payment-cash.js +2 -0
  217. package/dist/order/interfaces/i-order-payment-method.d.ts +18 -0
  218. package/dist/order/interfaces/i-order-payment-method.js +2 -0
  219. package/dist/order/interfaces/i-order-payment-pix.d.ts +4 -0
  220. package/dist/order/interfaces/i-order-payment-pix.js +2 -0
  221. package/dist/order/interfaces/i-order-payment-wallet.d.ts +3 -0
  222. package/dist/order/interfaces/i-order-payment-wallet.js +2 -0
  223. package/dist/order/interfaces/i-order-payment.d.ts +6 -0
  224. package/dist/order/interfaces/i-order-payment.js +2 -0
  225. package/dist/order/interfaces/i-order-scale-item.d.ts +4 -0
  226. package/dist/order/interfaces/i-order-scale-item.js +2 -0
  227. package/dist/order/interfaces/i-order-scale-price.d.ts +5 -0
  228. package/dist/order/interfaces/i-order-scale-price.js +2 -0
  229. package/dist/order/interfaces/i-order-total.d.ts +12 -0
  230. package/dist/order/interfaces/i-order-total.js +2 -0
  231. package/dist/order/interfaces/i-order.d.ts +26 -0
  232. package/dist/order/interfaces/i-order.js +2 -0
  233. package/dist/order/interfaces/index.d.ts +19 -0
  234. package/dist/order/interfaces/index.js +2 -0
  235. package/dist/package.json +2 -4
  236. package/dist/purchases/entities/app-info.entity.d.ts +6 -0
  237. package/dist/purchases/entities/app-info.entity.js +22 -0
  238. package/dist/purchases/entities/index.d.ts +2 -0
  239. package/dist/purchases/entities/index.js +7 -0
  240. package/dist/purchases/entities/purchase.entity.d.ts +10 -0
  241. package/dist/purchases/entities/purchase.entity.js +44 -0
  242. package/dist/purchases/index.d.ts +2 -3
  243. package/dist/purchases/index.js +16 -1
  244. package/dist/purchases/interfaces/i-purchase.d.ts +7 -15
  245. package/dist/purchases/interfaces/index.d.ts +2 -0
  246. package/dist/purchases/interfaces/index.js +2 -0
  247. package/package.json +2 -4
  248. package/tsconfig.json +3 -3
  249. package/dist/esm2022/general/interfaces/i-payment-tokens-data.mjs +0 -3
  250. package/dist/esm2022/general/interfaces/i-payment-tokens.mjs +0 -3
  251. package/dist/esm2022/purchases/interfaces/i-payment-details.mjs +0 -2
  252. package/dist/purchases/interfaces/i-payment-details.d.ts +0 -17
  253. /package/dist/{general/interfaces/i-mobyo-server-api.js → company/interfaces/index.js} +0 -0
  254. /package/dist/general/interfaces/{i-mobyo-server-api.d.ts → i-mobyo-api-config.d.ts} +0 -0
  255. /package/dist/{purchases/interfaces/i-payment-details.js → general/interfaces/i-mobyo-api-config.js} +0 -0
  256. /package/dist/general/interfaces/{i-payment-tokens-data.d.ts → i-payment-token-data.d.ts} +0 -0
  257. /package/dist/general/interfaces/{i-payment-tokens-data.js → i-payment-token-data.js} +0 -0
  258. /package/dist/general/interfaces/{i-payment-tokens.js → i-payment-token.js} +0 -0
  259. /package/dist/{general/enums/order-satus.enum.d.ts → order/enums/order-status.enum.d.ts} +0 -0
  260. /package/dist/{general/enums/order-satus.enum.js → order/enums/order-status.enum.js} +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface IOrderScaleItem {
2
+ minQuantity: number;
3
+ price: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { IOrderScaleItem } from './i-order-scale-item';
2
+ export interface IOrderScale {
3
+ defaultPrice: number;
4
+ scales: IOrderScaleItem[];
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ export interface IOrderTotal {
2
+ /** Valor final, equivalente ao subTotal + deliveryFee - benefits */
3
+ additionalFees: number;
4
+ /** Valor consolidado dos descontos aplicados ao pedido */
5
+ benefits: number;
6
+ /** Valor total de entrega */
7
+ deliveryFee: number;
8
+ /** Montante total representado pelo preço dos itens no pedido */
9
+ orderAmount: number;
10
+ /** Subtotal do pedido */
11
+ subTotal: number;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
1
+ import { OrderStatusEnum } from '../enums';
2
+ import { IOrderAdditionalFee } from './i-order-additional-fee';
3
+ import { IOrderBenefits } from './i-order-benefits';
4
+ import { IOrderCancellation } from './i-order-cancellation';
5
+ import { IOrderCustomer } from './i-order-customer';
6
+ import { IOrderItem } from './i-order-item';
7
+ import { IOrderPayment } from './i-order-payment';
8
+ import { IOrderTotal } from './i-order-total';
9
+ export interface IOrder {
10
+ additionalFees: IOrderAdditionalFee[];
11
+ benefits: IOrderBenefits[];
12
+ cancellation: IOrderCancellation;
13
+ companyId: string;
14
+ containerId: string;
15
+ createdAt: Date;
16
+ customer: IOrderCustomer;
17
+ id: string;
18
+ sandbox: boolean;
19
+ items: IOrderItem[];
20
+ payments: IOrderPayment;
21
+ salesChannel: string;
22
+ status: OrderStatusEnum;
23
+ total: IOrderTotal;
24
+ updatedAt: number;
25
+ version: string;
26
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ export { IOrder } from './i-order';
2
+ export { IOrderAdditionalFee } from './i-order-additional-fee';
3
+ export { IOrderBenefits } from './i-order-benefits';
4
+ export { ISponsorshipValues } from './i-order-benefits-sponsor-ship';
5
+ export { IOrderCancellation } from './i-order-cancellation';
6
+ export { IOrderCustomer } from './i-order-customer';
7
+ export { IOrdersCustomerPhone } from './i-order-customer-phone';
8
+ export { IOrderItem } from './i-order-item';
9
+ export { IOrderItemComposition } from './i-order-item-composition';
10
+ export { IOrderItemOption } from './i-order-item-option';
11
+ export { IOrderPayment } from './i-order-payment';
12
+ export { IOrderPaymentCard } from './i-order-payment-card';
13
+ export { IOrderPaymentCash } from './i-order-payment-cash';
14
+ export { IOrderPaymentMethod } from './i-order-payment-method';
15
+ export { IOrderPaymentPix } from './i-order-payment-pix';
16
+ export { IOrderPaymentWallet } from './i-order-payment-wallet';
17
+ export { IOrderScaleItem } from './i-order-scale-item';
18
+ export { IOrderScale } from './i-order-scale-price';
19
+ export { IOrderTotal } from './i-order-total';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/package.json CHANGED
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
7
7
  },
8
- "peerDependencies": {
9
- "@nestjs/swagger": "^7.1.8"
10
- },
8
+ "peerDependencies": {},
11
9
  "main": "dist/index.js",
12
10
  "types": "dist/index.d.ts",
13
11
  "private": false,
@@ -0,0 +1,6 @@
1
+ export declare class AppInfoEntity {
2
+ appId: string;
3
+ name: string;
4
+ version: string;
5
+ constructor(data?: Partial<AppInfoEntity>);
6
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppInfoEntity = void 0;
4
+ var AppInfoEntity = /** @class */ (function () {
5
+ // #endregion Properties (3)
6
+ // #region Constructors (1)
7
+ function AppInfoEntity(data) {
8
+ // #region Properties (3)
9
+ this.appId = '';
10
+ this.name = '';
11
+ this.version = '';
12
+ if (data) {
13
+ for (var key in data) {
14
+ if (data.hasOwnProperty(key) && key in this) {
15
+ this[key] = data[key];
16
+ }
17
+ }
18
+ }
19
+ }
20
+ return AppInfoEntity;
21
+ }());
22
+ exports.AppInfoEntity = AppInfoEntity;
@@ -0,0 +1,2 @@
1
+ export { AppInfoEntity } from './app-info.entity';
2
+ export { PurchaseEntity } from './purchase.entity';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PurchaseEntity = exports.AppInfoEntity = void 0;
4
+ var app_info_entity_1 = require("./app-info.entity");
5
+ Object.defineProperty(exports, "AppInfoEntity", { enumerable: true, get: function () { return app_info_entity_1.AppInfoEntity; } });
6
+ var purchase_entity_1 = require("./purchase.entity");
7
+ Object.defineProperty(exports, "PurchaseEntity", { enumerable: true, get: function () { return purchase_entity_1.PurchaseEntity; } });
@@ -0,0 +1,10 @@
1
+ import { PaymentProviderEnum } from '../../general/enums/providers.enum';
2
+ import { OrderEntity } from '../../order';
3
+ import { AppInfoEntity } from './app-info.entity';
4
+ export declare class PurchaseEntity extends OrderEntity {
5
+ additionalNotes?: string;
6
+ appInfo: AppInfoEntity;
7
+ deviceUid: string;
8
+ providerName: PaymentProviderEnum;
9
+ constructor(data?: Partial<PurchaseEntity>);
10
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.PurchaseEntity = void 0;
19
+ var providers_enum_1 = require("../../general/enums/providers.enum");
20
+ var order_1 = require("../../order");
21
+ var app_info_entity_1 = require("./app-info.entity");
22
+ var PurchaseEntity = /** @class */ (function (_super) {
23
+ __extends(PurchaseEntity, _super);
24
+ // #endregion Properties (4)
25
+ // #region Constructors (1)
26
+ function PurchaseEntity(data) {
27
+ var _this = _super.call(this) || this;
28
+ // #region Properties (4)
29
+ _this.additionalNotes = '';
30
+ _this.appInfo = new app_info_entity_1.AppInfoEntity();
31
+ _this.deviceUid = '';
32
+ _this.providerName = providers_enum_1.PaymentProviderEnum.iugu;
33
+ if (data) {
34
+ for (var key in data) {
35
+ if (data.hasOwnProperty(key) && key in _this) {
36
+ _this[key] = data[key];
37
+ }
38
+ }
39
+ }
40
+ return _this;
41
+ }
42
+ return PurchaseEntity;
43
+ }(order_1.OrderEntity));
44
+ exports.PurchaseEntity = PurchaseEntity;
@@ -1,3 +1,2 @@
1
- export { IAppInfo } from './interfaces/i-app-info';
2
- export { IPaymentDetails } from './interfaces/i-payment-details';
3
- export { IPurchase } from './interfaces/i-purchase';
1
+ export * from './entities';
2
+ export * from './interfaces';
@@ -1,3 +1,18 @@
1
1
  "use strict";
2
- // index.ts
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
3
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./interfaces"), exports);
@@ -1,26 +1,18 @@
1
1
  import { PaymentProviderEnum } from '../../general/enums/providers.enum';
2
+ import { IOrder } from '../../order';
2
3
  import { IAppInfo } from './i-app-info';
3
- import { IPaymentDetails } from './i-payment-details';
4
4
  /**
5
5
  * Representa uma compra dentro do sistema.
6
6
  * Esta interface fornece uma separação clara de diferentes aspectos da compra,
7
7
  * como detalhes do pagamento e informações sobre o aplicativo.
8
8
  */
9
- export interface IPurchase {
10
- /** Identificador único para a compra. */
11
- purchaseId: string;
12
- /** ID da empresa associada à compra. */
13
- companyId: string;
14
- /** ID do dispositivo para o qual o aplicativo foi ativado. */
15
- deviceUid: string;
9
+ export interface IPurchase extends IOrder {
10
+ /** Qualquer informação adicional ou notas relacionadas à compra. */
11
+ additionalNotes?: string;
16
12
  /** Informações sobre o aplicativo ou módulo ativado. */
17
13
  appInfo: IAppInfo;
18
- /** Data e hora da compra. */
19
- purchaseDate: Date;
14
+ /** ID do dispositivo para o qual o aplicativo foi ativado. */
15
+ deviceUid: string;
20
16
  /** Identificação da origem do pagamento ex: DESENFILA */
21
- provider: PaymentProviderEnum;
22
- /** Detalhes específicos do pagamento. */
23
- paymentDetails: IPaymentDetails;
24
- /** Qualquer informação adicional ou notas relacionadas à compra. */
25
- additionalNotes?: string;
17
+ providerName: PaymentProviderEnum;
26
18
  }
@@ -0,0 +1,2 @@
1
+ export { IAppInfo } from './i-app-info';
2
+ export { IPurchase } from './i-purchase';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,11 +1,9 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {},
6
- "peerDependencies": {
7
- "@nestjs/swagger": "^7.1.8"
8
- },
6
+ "peerDependencies": {},
9
7
  "main": "dist/index.js",
10
8
  "types": "dist/index.d.ts",
11
9
  "private": false,
package/tsconfig.json CHANGED
@@ -16,15 +16,15 @@
16
16
  "purchase/*"
17
17
  ]
18
18
  },
19
- "target": "es5",
19
+ "target": "es6",
20
20
  "declaration": true,
21
21
  "declarationDir": "./dist",
22
22
  "experimentalDecorators": true,
23
23
  "esModuleInterop": true,
24
24
  "outDir": "./dist",
25
25
  "lib": [
26
- "ES2015",
27
- "DOM"
26
+ "es6",
27
+ "dom"
28
28
  ],
29
29
  "strict": true
30
30
  },
@@ -1,3 +0,0 @@
1
- // src/models/base.entity.ts
2
- export {};
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1wYXltZW50LXRva2Vucy1kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2dlbmVyYWwvaW50ZXJmYWNlcy9pLXBheW1lbnQtdG9rZW5zLWRhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsNEJBQTRCIiwic291cmNlc0NvbnRlbnQiOlsiLy8gc3JjL21vZGVscy9iYXNlLmVudGl0eS50c1xuXG5leHBvcnQgaW50ZXJmYWNlIElQYXltZW50VG9rZW5EYXRhIHtcbiAgICAvLyAjcmVnaW9uIFByb3BlcnRpZXMgKDcpXG5cbiAgICBiaW46IHN0cmluZztcbiAgICBicmFuZDogc3RyaW5nO1xuICAgIGRpc3BsYXlOdW1iZXI6IHN0cmluZztcbiAgICBmaXJzdERpZ2l0czogc3RyaW5nO1xuICAgIG1hc2tlZE51bWJlcjogc3RyaW5nO1xuICAgIG1vbnRoOiBudW1iZXI7XG4gICAgeWVhcjogbnVtYmVyO1xuXG4gICAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICg3KVxufVxuIl19
@@ -1,3 +0,0 @@
1
- // src/models/base.entity.ts
2
- export {};
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1wYXltZW50LXRva2Vucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9nZW5lcmFsL2ludGVyZmFjZXMvaS1wYXltZW50LXRva2Vucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw0QkFBNEIiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBzcmMvbW9kZWxzL2Jhc2UuZW50aXR5LnRzXG5cbmltcG9ydCB7IElQYXltZW50VG9rZW5EYXRhIH0gZnJvbSAnLi9pLXBheW1lbnQtdG9rZW5zLWRhdGEnO1xuXG5cbmV4cG9ydCBpbnRlcmZhY2UgSVBheW1lbnRUb2tlbiB7XG4gICAgLy8gI3JlZ2lvbiBQcm9wZXJ0aWVzICg1KVxuXG4gICAgY3VzdG9tZXJJZDogc3RyaW5nO1xuICAgIGRhdGE6IElQYXltZW50VG9rZW5EYXRhO1xuICAgIGRlc2NyaXB0aW9uOiBzdHJpbmc7XG4gICAgaWQ6IHN0cmluZztcbiAgICBpdGVtVHlwZTogc3RyaW5nO1xuXG4gICAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICg1KVxufVxuIl19
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1wYXltZW50LWRldGFpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcHVyY2hhc2VzL2ludGVyZmFjZXMvaS1wYXltZW50LWRldGFpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFBheW1lbnRUeXBlRW51bSB9IGZyb20gJy4uLy4uL2dlbmVyYWwnO1xuaW1wb3J0IHsgT3JkZXJTdGF0dXNFbnVtIH0gZnJvbSAnLi4vLi4vZ2VuZXJhbC9lbnVtcy9vcmRlci1zYXR1cy5lbnVtJztcblxuLyoqXG4gKiBSZXByZXNlbnRhIG9zIGRldGFsaGVzIGVzcGVjw61maWNvcyBkbyBwYWdhbWVudG8gZGUgdW1hIGNvbXByYS5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBJUGF5bWVudERldGFpbHMge1xuICAgIC8qKiBUaXBvIGRlIG3DqXRvZG8gZGUgcGFnYW1lbnRvIHVzYWRvIChwb3IgZXhlbXBsbywgY2FydMOjbyBkZSBjcsOpZGl0bywgUGF5UGFsKS4gKi9cbiAgICBtZXRob2Q6IFBheW1lbnRUeXBlRW51bTtcblxuICAgIC8qKiBJZGVudGlmaWNhZG9yIMO6bmljbyBwYXJhIGEgdHJhbnNhw6fDo28gZGUgcGFnYW1lbnRvLiAqL1xuICAgIHRyYW5zYWN0aW9uSWQ6IHN0cmluZztcblxuICAgIC8qKiBNb250YW50ZSB0b3RhbCBwYWdvLiAqL1xuICAgIGFtb3VudDogbnVtYmVyO1xuXG4gICAgLyoqIE1vZWRhIG5hIHF1YWwgbyBwYWdhbWVudG8gZm9pIHJlYWxpemFkbyAocG9yIGV4ZW1wbG86ICdVU0QnLCAnQlJMJykuICovXG4gICAgY3VycmVuY3k6IHN0cmluZztcblxuICAgIC8qKiBFc3RhZG8gYXR1YWwgZGEgdHJhbnNhw6fDo28gKHBvciBleGVtcGxvLCBwZW5kZW50ZSwgY29uY2x1w61kbykuICovXG4gICAgc3RhdHVzOiBPcmRlclN0YXR1c0VudW07XG59XG4iXX0=
@@ -1,17 +0,0 @@
1
- import { PaymentTypeEnum } from '../../general';
2
- import { OrderStatusEnum } from '../../general/enums/order-satus.enum';
3
- /**
4
- * Representa os detalhes específicos do pagamento de uma compra.
5
- */
6
- export interface IPaymentDetails {
7
- /** Tipo de método de pagamento usado (por exemplo, cartão de crédito, PayPal). */
8
- method: PaymentTypeEnum;
9
- /** Identificador único para a transação de pagamento. */
10
- transactionId: string;
11
- /** Montante total pago. */
12
- amount: number;
13
- /** Moeda na qual o pagamento foi realizado (por exemplo: 'USD', 'BRL'). */
14
- currency: string;
15
- /** Estado atual da transação (por exemplo, pendente, concluído). */
16
- status: OrderStatusEnum;
17
- }