shopeasy-sdk 1.0.4 → 1.1.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 (74) hide show
  1. package/dist/client/ShopeeasyClient.cjs +67 -0
  2. package/dist/client/ShopeeasyClient.mjs +65 -0
  3. package/dist/core/errors.cjs +13 -0
  4. package/dist/core/errors.mjs +11 -0
  5. package/dist/core/request.cjs +107 -0
  6. package/dist/core/request.mjs +99 -0
  7. package/dist/functions/utils/cart.cjs +6 -8
  8. package/dist/functions/utils/cart.mjs +6 -8
  9. package/dist/index.cjs +33 -26
  10. package/dist/index.d.cts +1024 -681
  11. package/dist/index.d.mts +1024 -681
  12. package/dist/index.d.ts +1024 -681
  13. package/dist/index.mjs +16 -28
  14. package/dist/modules/bots/index.cjs +65 -0
  15. package/dist/modules/bots/index.mjs +63 -0
  16. package/dist/modules/carts/index.cjs +51 -0
  17. package/dist/modules/carts/index.mjs +49 -0
  18. package/dist/modules/catalogs/index.cjs +55 -0
  19. package/dist/modules/catalogs/index.mjs +53 -0
  20. package/dist/modules/config/index.cjs +38 -0
  21. package/dist/modules/config/index.mjs +36 -0
  22. package/dist/modules/coupons/index.cjs +53 -0
  23. package/dist/modules/coupons/index.mjs +51 -0
  24. package/dist/modules/customers/index.cjs +49 -0
  25. package/dist/modules/customers/index.mjs +47 -0
  26. package/dist/modules/images/index.cjs +17 -0
  27. package/dist/modules/images/index.mjs +15 -0
  28. package/dist/modules/orders/index.cjs +35 -0
  29. package/dist/modules/orders/index.mjs +33 -0
  30. package/dist/modules/payments/index.cjs +21 -0
  31. package/dist/modules/payments/index.mjs +19 -0
  32. package/dist/modules/plans/index.cjs +73 -0
  33. package/dist/modules/plans/index.mjs +71 -0
  34. package/dist/modules/products/index.cjs +92 -0
  35. package/dist/modules/products/index.mjs +90 -0
  36. package/dist/modules/sales/index.cjs +29 -0
  37. package/dist/modules/sales/index.mjs +27 -0
  38. package/dist/modules/tokens/index.cjs +17 -0
  39. package/dist/modules/tokens/index.mjs +15 -0
  40. package/dist/modules/wallet/index.cjs +42 -0
  41. package/dist/modules/wallet/index.mjs +40 -0
  42. package/package.json +1 -1
  43. package/dist/functions/api/config.cjs +0 -81
  44. package/dist/functions/api/config.mjs +0 -71
  45. package/dist/functions/api/index.cjs +0 -35
  46. package/dist/functions/api/index.mjs +0 -33
  47. package/dist/functions/api/services/carts.service.cjs +0 -64
  48. package/dist/functions/api/services/carts.service.mjs +0 -62
  49. package/dist/functions/api/services/catalog.service.cjs +0 -60
  50. package/dist/functions/api/services/catalog.service.mjs +0 -58
  51. package/dist/functions/api/services/configs.service.cjs +0 -46
  52. package/dist/functions/api/services/configs.service.mjs +0 -44
  53. package/dist/functions/api/services/coupons.service.cjs +0 -54
  54. package/dist/functions/api/services/coupons.service.mjs +0 -52
  55. package/dist/functions/api/services/customer.service.cjs +0 -65
  56. package/dist/functions/api/services/customer.service.mjs +0 -63
  57. package/dist/functions/api/services/images.service.cjs +0 -17
  58. package/dist/functions/api/services/images.service.mjs +0 -15
  59. package/dist/functions/api/services/orders.service.cjs +0 -36
  60. package/dist/functions/api/services/orders.service.mjs +0 -34
  61. package/dist/functions/api/services/payment.service.cjs +0 -26
  62. package/dist/functions/api/services/payment.service.mjs +0 -24
  63. package/dist/functions/api/services/plans.service.cjs +0 -67
  64. package/dist/functions/api/services/plans.service.mjs +0 -65
  65. package/dist/functions/api/services/products.service.cjs +0 -114
  66. package/dist/functions/api/services/products.service.mjs +0 -112
  67. package/dist/functions/api/services/sales.service.cjs +0 -29
  68. package/dist/functions/api/services/sales.service.mjs +0 -27
  69. package/dist/functions/api/services/token.service.cjs +0 -17
  70. package/dist/functions/api/services/token.service.mjs +0 -15
  71. package/dist/functions/api/services/users.service.cjs +0 -13
  72. package/dist/functions/api/services/users.service.mjs +0 -11
  73. package/dist/functions/api/services/wallet.service.cjs +0 -37
  74. package/dist/functions/api/services/wallet.service.mjs +0 -35
@@ -0,0 +1,67 @@
1
+ 'use strict';
2
+
3
+ const request = require('../core/request.cjs');
4
+ const index$d = require('../modules/bots/index.cjs');
5
+ const index$1 = require('../modules/carts/index.cjs');
6
+ const index$6 = require('../modules/catalogs/index.cjs');
7
+ const index$4 = require('../modules/config/index.cjs');
8
+ const index$7 = require('../modules/coupons/index.cjs');
9
+ const index$3 = require('../modules/customers/index.cjs');
10
+ const index$c = require('../modules/images/index.cjs');
11
+ const index$2 = require('../modules/orders/index.cjs');
12
+ const index$5 = require('../modules/payments/index.cjs');
13
+ const index$a = require('../modules/plans/index.cjs');
14
+ const index = require('../modules/products/index.cjs');
15
+ const index$8 = require('../modules/sales/index.cjs');
16
+ const index$b = require('../modules/tokens/index.cjs');
17
+ const index$9 = require('../modules/wallet/index.cjs');
18
+
19
+ class ShopeeasyClient {
20
+ /** Gerenciamento de produtos */
21
+ products;
22
+ /** Gerenciamento de carrinhos */
23
+ carts;
24
+ /** Gerenciamento de pedidos */
25
+ orders;
26
+ /** Gerenciamento de clientes */
27
+ customers;
28
+ /** Configurações da guild */
29
+ config;
30
+ /** Configuração de pagamentos */
31
+ payments;
32
+ /** Catálogos de produtos */
33
+ catalogs;
34
+ /** Cupons de desconto */
35
+ coupons;
36
+ /** Histórico de vendas */
37
+ sales;
38
+ /** Carteiras de usuários */
39
+ wallet;
40
+ /** Planos de assinatura */
41
+ plans;
42
+ /** Tokens de bot */
43
+ tokens;
44
+ /** Imagens da guild */
45
+ images;
46
+ /** Gerenciamento de bots */
47
+ bots;
48
+ constructor(config) {
49
+ const http = new request.RequestClient(config);
50
+ this.products = new index.ProductsModule(http);
51
+ this.carts = new index$1.CartsModule(http);
52
+ this.orders = new index$2.OrdersModule(http);
53
+ this.customers = new index$3.CustomersModule(http);
54
+ this.config = new index$4.ConfigModule(http);
55
+ this.payments = new index$5.PaymentsModule(http);
56
+ this.catalogs = new index$6.CatalogsModule(http);
57
+ this.coupons = new index$7.CouponsModule(http);
58
+ this.sales = new index$8.SalesModule(http);
59
+ this.wallet = new index$9.WalletModule(http);
60
+ this.plans = new index$a.PlansModule(http);
61
+ this.tokens = new index$b.TokensModule(http);
62
+ this.images = new index$c.ImagesModule(http);
63
+ this.bots = new index$d.BotsModule(http);
64
+ }
65
+ }
66
+
67
+ exports.ShopeeasyClient = ShopeeasyClient;
@@ -0,0 +1,65 @@
1
+ import { RequestClient } from '../core/request.mjs';
2
+ import { BotsModule } from '../modules/bots/index.mjs';
3
+ import { CartsModule } from '../modules/carts/index.mjs';
4
+ import { CatalogsModule } from '../modules/catalogs/index.mjs';
5
+ import { ConfigModule } from '../modules/config/index.mjs';
6
+ import { CouponsModule } from '../modules/coupons/index.mjs';
7
+ import { CustomersModule } from '../modules/customers/index.mjs';
8
+ import { ImagesModule } from '../modules/images/index.mjs';
9
+ import { OrdersModule } from '../modules/orders/index.mjs';
10
+ import { PaymentsModule } from '../modules/payments/index.mjs';
11
+ import { PlansModule } from '../modules/plans/index.mjs';
12
+ import { ProductsModule } from '../modules/products/index.mjs';
13
+ import { SalesModule } from '../modules/sales/index.mjs';
14
+ import { TokensModule } from '../modules/tokens/index.mjs';
15
+ import { WalletModule } from '../modules/wallet/index.mjs';
16
+
17
+ class ShopeeasyClient {
18
+ /** Gerenciamento de produtos */
19
+ products;
20
+ /** Gerenciamento de carrinhos */
21
+ carts;
22
+ /** Gerenciamento de pedidos */
23
+ orders;
24
+ /** Gerenciamento de clientes */
25
+ customers;
26
+ /** Configurações da guild */
27
+ config;
28
+ /** Configuração de pagamentos */
29
+ payments;
30
+ /** Catálogos de produtos */
31
+ catalogs;
32
+ /** Cupons de desconto */
33
+ coupons;
34
+ /** Histórico de vendas */
35
+ sales;
36
+ /** Carteiras de usuários */
37
+ wallet;
38
+ /** Planos de assinatura */
39
+ plans;
40
+ /** Tokens de bot */
41
+ tokens;
42
+ /** Imagens da guild */
43
+ images;
44
+ /** Gerenciamento de bots */
45
+ bots;
46
+ constructor(config) {
47
+ const http = new RequestClient(config);
48
+ this.products = new ProductsModule(http);
49
+ this.carts = new CartsModule(http);
50
+ this.orders = new OrdersModule(http);
51
+ this.customers = new CustomersModule(http);
52
+ this.config = new ConfigModule(http);
53
+ this.payments = new PaymentsModule(http);
54
+ this.catalogs = new CatalogsModule(http);
55
+ this.coupons = new CouponsModule(http);
56
+ this.sales = new SalesModule(http);
57
+ this.wallet = new WalletModule(http);
58
+ this.plans = new PlansModule(http);
59
+ this.tokens = new TokensModule(http);
60
+ this.images = new ImagesModule(http);
61
+ this.bots = new BotsModule(http);
62
+ }
63
+ }
64
+
65
+ export { ShopeeasyClient };
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ class ShopeeasyError extends Error {
4
+ statusCode;
5
+ constructor(message, statusCode) {
6
+ super(message);
7
+ this.name = "ShopeeasyError";
8
+ this.statusCode = statusCode;
9
+ Error.captureStackTrace(this, this.constructor);
10
+ }
11
+ }
12
+
13
+ exports.ShopeeasyError = ShopeeasyError;
@@ -0,0 +1,11 @@
1
+ class ShopeeasyError extends Error {
2
+ statusCode;
3
+ constructor(message, statusCode) {
4
+ super(message);
5
+ this.name = "ShopeeasyError";
6
+ this.statusCode = statusCode;
7
+ Error.captureStackTrace(this, this.constructor);
8
+ }
9
+ }
10
+
11
+ export { ShopeeasyError };
@@ -0,0 +1,107 @@
1
+ 'use strict';
2
+
3
+ const axios = require('axios');
4
+ const http = require('node:http');
5
+ const https = require('node:https');
6
+ const errors = require('./errors.cjs');
7
+
8
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
9
+
10
+ const axios__default = /*#__PURE__*/_interopDefaultCompat(axios);
11
+ const http__default = /*#__PURE__*/_interopDefaultCompat(http);
12
+ const https__default = /*#__PURE__*/_interopDefaultCompat(https);
13
+
14
+ const httpAgent = new http__default.Agent({
15
+ keepAlive: true,
16
+ maxSockets: 100,
17
+ maxFreeSockets: 20
18
+ });
19
+ const httpsAgent = new https__default.Agent({
20
+ keepAlive: true,
21
+ maxSockets: 100,
22
+ maxFreeSockets: 20
23
+ });
24
+ class RequestClient {
25
+ guildId;
26
+ http;
27
+ constructor(config) {
28
+ if (!config.apiKey || config.apiKey.trim() === "") {
29
+ throw new errors.ShopeeasyError(
30
+ "apiKey \xE9 obrigat\xF3rio para inicializar o ShopeeasyClient.",
31
+ 0
32
+ );
33
+ }
34
+ this.guildId = config.guildId;
35
+ this.http = axios__default.create({
36
+ baseURL: config.baseURL ?? "https://api.shopeasy.site",
37
+ timeout: 1e4,
38
+ httpAgent,
39
+ httpsAgent,
40
+ headers: {
41
+ "Content-Type": "application/json",
42
+ Authorization: `Bearer ${config.apiKey}`
43
+ }
44
+ });
45
+ this.http.interceptors.response.use(
46
+ (res) => res,
47
+ (err) => {
48
+ if (err.response) {
49
+ const data = err.response.data;
50
+ return Promise.reject(
51
+ new errors.ShopeeasyError(
52
+ data?.message ?? "Erro na API",
53
+ err.response.status
54
+ )
55
+ );
56
+ }
57
+ if (err.request) {
58
+ return Promise.reject(new errors.ShopeeasyError("API indispon\xEDvel", 503));
59
+ }
60
+ return Promise.reject(new errors.ShopeeasyError(err.message, 500));
61
+ }
62
+ );
63
+ }
64
+ get guildPrefix() {
65
+ if (!this.guildId) {
66
+ throw new errors.ShopeeasyError(
67
+ "guildId \xE9 obrigat\xF3rio para chamadas de rotas de guild. Informe guildId na configura\xE7\xE3o do ShopeeasyClient.",
68
+ 400
69
+ );
70
+ }
71
+ return `/guilds/${this.guildId}`;
72
+ }
73
+ async exec(method, url, body, config) {
74
+ const response = await this.http.request({
75
+ method,
76
+ url,
77
+ data: body,
78
+ ...config
79
+ });
80
+ return response.data;
81
+ }
82
+ /**
83
+ * Métodos HTTP com escopo de guild.
84
+ * Automaticamente prefixa a URL com /guilds/:guildId.
85
+ * Lança ShopeeasyError se guildId não estiver configurado.
86
+ */
87
+ guild = {
88
+ get: (path, config) => this.exec("GET", `${this.guildPrefix}${path}`, void 0, config),
89
+ post: (path, body, config) => this.exec("POST", `${this.guildPrefix}${path}`, body, config),
90
+ patch: (path, body, config) => this.exec("PATCH", `${this.guildPrefix}${path}`, body, config),
91
+ put: (path, body, config) => this.exec("PUT", `${this.guildPrefix}${path}`, body, config),
92
+ delete: (path, config) => this.exec("DELETE", `${this.guildPrefix}${path}`, {}, config)
93
+ };
94
+ /**
95
+ * Métodos HTTP globais.
96
+ * Para rotas /auth/*, /system/*, /admin/*.
97
+ */
98
+ global = {
99
+ get: (path, config) => this.exec("GET", path, void 0, config),
100
+ post: (path, body, config) => this.exec("POST", path, body, config),
101
+ patch: (path, body, config) => this.exec("PATCH", path, body, config),
102
+ put: (path, body, config) => this.exec("PUT", path, body, config),
103
+ delete: (path, config) => this.exec("DELETE", path, {}, config)
104
+ };
105
+ }
106
+
107
+ exports.RequestClient = RequestClient;
@@ -0,0 +1,99 @@
1
+ import axios from 'axios';
2
+ import http from 'node:http';
3
+ import https from 'node:https';
4
+ import { ShopeeasyError } from './errors.mjs';
5
+
6
+ const httpAgent = new http.Agent({
7
+ keepAlive: true,
8
+ maxSockets: 100,
9
+ maxFreeSockets: 20
10
+ });
11
+ const httpsAgent = new https.Agent({
12
+ keepAlive: true,
13
+ maxSockets: 100,
14
+ maxFreeSockets: 20
15
+ });
16
+ class RequestClient {
17
+ guildId;
18
+ http;
19
+ constructor(config) {
20
+ if (!config.apiKey || config.apiKey.trim() === "") {
21
+ throw new ShopeeasyError(
22
+ "apiKey \xE9 obrigat\xF3rio para inicializar o ShopeeasyClient.",
23
+ 0
24
+ );
25
+ }
26
+ this.guildId = config.guildId;
27
+ this.http = axios.create({
28
+ baseURL: config.baseURL ?? "https://api.shopeasy.site",
29
+ timeout: 1e4,
30
+ httpAgent,
31
+ httpsAgent,
32
+ headers: {
33
+ "Content-Type": "application/json",
34
+ Authorization: `Bearer ${config.apiKey}`
35
+ }
36
+ });
37
+ this.http.interceptors.response.use(
38
+ (res) => res,
39
+ (err) => {
40
+ if (err.response) {
41
+ const data = err.response.data;
42
+ return Promise.reject(
43
+ new ShopeeasyError(
44
+ data?.message ?? "Erro na API",
45
+ err.response.status
46
+ )
47
+ );
48
+ }
49
+ if (err.request) {
50
+ return Promise.reject(new ShopeeasyError("API indispon\xEDvel", 503));
51
+ }
52
+ return Promise.reject(new ShopeeasyError(err.message, 500));
53
+ }
54
+ );
55
+ }
56
+ get guildPrefix() {
57
+ if (!this.guildId) {
58
+ throw new ShopeeasyError(
59
+ "guildId \xE9 obrigat\xF3rio para chamadas de rotas de guild. Informe guildId na configura\xE7\xE3o do ShopeeasyClient.",
60
+ 400
61
+ );
62
+ }
63
+ return `/guilds/${this.guildId}`;
64
+ }
65
+ async exec(method, url, body, config) {
66
+ const response = await this.http.request({
67
+ method,
68
+ url,
69
+ data: body,
70
+ ...config
71
+ });
72
+ return response.data;
73
+ }
74
+ /**
75
+ * Métodos HTTP com escopo de guild.
76
+ * Automaticamente prefixa a URL com /guilds/:guildId.
77
+ * Lança ShopeeasyError se guildId não estiver configurado.
78
+ */
79
+ guild = {
80
+ get: (path, config) => this.exec("GET", `${this.guildPrefix}${path}`, void 0, config),
81
+ post: (path, body, config) => this.exec("POST", `${this.guildPrefix}${path}`, body, config),
82
+ patch: (path, body, config) => this.exec("PATCH", `${this.guildPrefix}${path}`, body, config),
83
+ put: (path, body, config) => this.exec("PUT", `${this.guildPrefix}${path}`, body, config),
84
+ delete: (path, config) => this.exec("DELETE", `${this.guildPrefix}${path}`, {}, config)
85
+ };
86
+ /**
87
+ * Métodos HTTP globais.
88
+ * Para rotas /auth/*, /system/*, /admin/*.
89
+ */
90
+ global = {
91
+ get: (path, config) => this.exec("GET", path, void 0, config),
92
+ post: (path, body, config) => this.exec("POST", path, body, config),
93
+ patch: (path, body, config) => this.exec("PATCH", path, body, config),
94
+ put: (path, body, config) => this.exec("PUT", path, body, config),
95
+ delete: (path, config) => this.exec("DELETE", path, {}, config)
96
+ };
97
+ }
98
+
99
+ export { RequestClient };
@@ -1,14 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  const decimal_js = require('decimal.js');
4
- const index = require('../api/index.cjs');
5
4
  const permission = require('./permission.cjs');
6
5
 
7
- async function cartWillExpire(cart) {
6
+ async function cartWillExpire(cart, carts) {
8
7
  if (cart.expireAt && new Date(cart.expireAt).getTime() - Date.now() < 12e4) {
9
- await index.db.carts.update({
10
- id: cart.id,
11
- data: { expireAt: new Date(new Date(cart.expireAt).getTime() + 12e4) }
8
+ await carts.update(cart.id, {
9
+ expireAt: new Date(new Date(cart.expireAt).getTime() + 12e4)
12
10
  });
13
11
  }
14
12
  }
@@ -39,10 +37,10 @@ function cartCalculeTotal(cart) {
39
37
  return total.plus(price.mul(item.amount));
40
38
  }, new decimal_js.Decimal(0));
41
39
  }
42
- async function cartVerifyAproved(cartId) {
43
- const cart = await index.db.carts.getById(cartId);
40
+ async function cartVerifyAproved(cartId, carts) {
41
+ const cart = await carts.getById(cartId);
44
42
  if (!cart) throw new Error("Cart not Found");
45
- if (cart?.status === "APPROVED") return true;
43
+ if (cart.status === "APPROVED") return true;
46
44
  return false;
47
45
  }
48
46
 
@@ -1,12 +1,10 @@
1
1
  import { Decimal } from 'decimal.js';
2
- import { db } from '../api/index.mjs';
3
2
  import { hasPermission } from './permission.mjs';
4
3
 
5
- async function cartWillExpire(cart) {
4
+ async function cartWillExpire(cart, carts) {
6
5
  if (cart.expireAt && new Date(cart.expireAt).getTime() - Date.now() < 12e4) {
7
- await db.carts.update({
8
- id: cart.id,
9
- data: { expireAt: new Date(new Date(cart.expireAt).getTime() + 12e4) }
6
+ await carts.update(cart.id, {
7
+ expireAt: new Date(new Date(cart.expireAt).getTime() + 12e4)
10
8
  });
11
9
  }
12
10
  }
@@ -37,10 +35,10 @@ function cartCalculeTotal(cart) {
37
35
  return total.plus(price.mul(item.amount));
38
36
  }, new Decimal(0));
39
37
  }
40
- async function cartVerifyAproved(cartId) {
41
- const cart = await db.carts.getById(cartId);
38
+ async function cartVerifyAproved(cartId, carts) {
39
+ const cart = await carts.getById(cartId);
42
40
  if (!cart) throw new Error("Cart not Found");
43
- if (cart?.status === "APPROVED") return true;
41
+ if (cart.status === "APPROVED") return true;
44
42
  return false;
45
43
  }
46
44
 
package/dist/index.cjs CHANGED
@@ -1,36 +1,44 @@
1
1
  'use strict';
2
2
 
3
- const config = require('./functions/api/config.cjs');
4
- const index = require('./functions/api/index.cjs');
3
+ const ShopeeasyClient = require('./client/ShopeeasyClient.cjs');
4
+ const errors = require('./core/errors.cjs');
5
+ const index$a = require('./modules/products/index.cjs');
6
+ const index$1 = require('./modules/carts/index.cjs');
7
+ const index$7 = require('./modules/orders/index.cjs');
8
+ const index$5 = require('./modules/customers/index.cjs');
9
+ const index$3 = require('./modules/config/index.cjs');
10
+ const index$8 = require('./modules/payments/index.cjs');
11
+ const index$2 = require('./modules/catalogs/index.cjs');
12
+ const index$4 = require('./modules/coupons/index.cjs');
13
+ const index$b = require('./modules/sales/index.cjs');
14
+ const index$d = require('./modules/wallet/index.cjs');
15
+ const index$9 = require('./modules/plans/index.cjs');
16
+ const index$c = require('./modules/tokens/index.cjs');
17
+ const index$6 = require('./modules/images/index.cjs');
18
+ const index = require('./modules/bots/index.cjs');
5
19
  const cart = require('./functions/utils/cart.cjs');
6
20
  const formarts = require('./functions/utils/formarts.cjs');
7
21
  const permission = require('./functions/utils/permission.cjs');
8
22
  const pix = require('./tools/pix.cjs');
9
23
 
10
- class ShopEasySdk {
11
- constructor(options) {
12
- config.configureApi(
13
- options.baseUrl ?? "https://api.shopeasy.site",
14
- options.secretKey
15
- );
16
- }
17
- //services crud
18
- carts = index.db.carts;
19
- catalogs = index.db.catalogs;
20
- configs = index.db.configs;
21
- coupons = index.db.coupon;
22
- customers = index.db.customers;
23
- images = index.db.images;
24
- orders = index.db.orders;
25
- paymentConfig = index.db.payment;
26
- plans = index.db.plans;
27
- products = index.db.products;
28
- sales = index.db.sales;
29
- tokens = index.db.tokens;
30
- users = index.db.users;
31
- wallet = index.db.wallet;
32
- }
33
24
 
25
+
26
+ exports.ShopeeasyClient = ShopeeasyClient.ShopeeasyClient;
27
+ exports.ShopeeasyError = errors.ShopeeasyError;
28
+ exports.ProductsModule = index$a.ProductsModule;
29
+ exports.CartsModule = index$1.CartsModule;
30
+ exports.OrdersModule = index$7.OrdersModule;
31
+ exports.CustomersModule = index$5.CustomersModule;
32
+ exports.ConfigModule = index$3.ConfigModule;
33
+ exports.PaymentsModule = index$8.PaymentsModule;
34
+ exports.CatalogsModule = index$2.CatalogsModule;
35
+ exports.CouponsModule = index$4.CouponsModule;
36
+ exports.SalesModule = index$b.SalesModule;
37
+ exports.WalletModule = index$d.WalletModule;
38
+ exports.PlansModule = index$9.PlansModule;
39
+ exports.TokensModule = index$c.TokensModule;
40
+ exports.ImagesModule = index$6.ImagesModule;
41
+ exports.BotsModule = index.BotsModule;
34
42
  exports.cartAntiFakeVerify = cart.cartAntiFakeVerify;
35
43
  exports.cartCalculeTotal = cart.cartCalculeTotal;
36
44
  exports.cartVerifyAproved = cart.cartVerifyAproved;
@@ -42,4 +50,3 @@ exports.formatPrice = formarts.formatPrice;
42
50
  exports.formatRelativeTime = formarts.formatRelativeTime;
43
51
  exports.hasPermission = permission.hasPermission;
44
52
  exports.pixUtils = pix.pixUtils;
45
- exports.ShopEasySdk = ShopEasySdk;