@congminh1254/shopee-sdk 0.10.0 → 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 (133) hide show
  1. package/README.md +172 -36
  2. package/lib/fetch.js +13 -0
  3. package/lib/fetch.js.map +1 -1
  4. package/lib/managers/add-on-deal.manager.d.ts +140 -0
  5. package/lib/managers/add-on-deal.manager.js +240 -0
  6. package/lib/managers/add-on-deal.manager.js.map +1 -0
  7. package/lib/managers/ads.manager.d.ts +217 -1
  8. package/lib/managers/ads.manager.js +312 -0
  9. package/lib/managers/ads.manager.js.map +1 -1
  10. package/lib/managers/bundle-deal.manager.d.ts +106 -0
  11. package/lib/managers/bundle-deal.manager.js +178 -0
  12. package/lib/managers/bundle-deal.manager.js.map +1 -0
  13. package/lib/managers/discount.manager.d.ts +102 -0
  14. package/lib/managers/discount.manager.js +167 -0
  15. package/lib/managers/discount.manager.js.map +1 -0
  16. package/lib/managers/fbs.manager.d.ts +115 -0
  17. package/lib/managers/fbs.manager.js +145 -0
  18. package/lib/managers/fbs.manager.js.map +1 -0
  19. package/lib/managers/first-mile.manager.d.ts +150 -0
  20. package/lib/managers/first-mile.manager.js +264 -0
  21. package/lib/managers/first-mile.manager.js.map +1 -0
  22. package/lib/managers/follow-prize.manager.d.ts +108 -0
  23. package/lib/managers/follow-prize.manager.js +152 -0
  24. package/lib/managers/follow-prize.manager.js.map +1 -0
  25. package/lib/managers/global-product.manager.d.ts +664 -0
  26. package/lib/managers/global-product.manager.js +904 -0
  27. package/lib/managers/global-product.manager.js.map +1 -0
  28. package/lib/managers/index.d.ts +17 -1
  29. package/lib/managers/index.js +17 -1
  30. package/lib/managers/index.js.map +1 -1
  31. package/lib/managers/livestream.manager.d.ts +377 -0
  32. package/lib/managers/livestream.manager.js +529 -0
  33. package/lib/managers/livestream.manager.js.map +1 -0
  34. package/lib/managers/logistics.manager.d.ts +267 -1
  35. package/lib/managers/logistics.manager.js +544 -0
  36. package/lib/managers/logistics.manager.js.map +1 -1
  37. package/lib/managers/media-space.manager.d.ts +179 -0
  38. package/lib/managers/media-space.manager.js +220 -0
  39. package/lib/managers/media-space.manager.js.map +1 -0
  40. package/lib/managers/media.manager.d.ts +226 -0
  41. package/lib/managers/media.manager.js +274 -0
  42. package/lib/managers/media.manager.js.map +1 -0
  43. package/lib/managers/merchant.manager.d.ts +100 -0
  44. package/lib/managers/merchant.manager.js +144 -0
  45. package/lib/managers/merchant.manager.js.map +1 -0
  46. package/lib/managers/order.manager.d.ts +213 -1
  47. package/lib/managers/order.manager.js +305 -0
  48. package/lib/managers/order.manager.js.map +1 -1
  49. package/lib/managers/payment.manager.d.ts +186 -1
  50. package/lib/managers/payment.manager.js +288 -0
  51. package/lib/managers/payment.manager.js.map +1 -1
  52. package/lib/managers/returns.manager.d.ts +200 -0
  53. package/lib/managers/returns.manager.js +300 -0
  54. package/lib/managers/returns.manager.js.map +1 -0
  55. package/lib/managers/sbs.manager.d.ts +112 -0
  56. package/lib/managers/sbs.manager.js +149 -0
  57. package/lib/managers/sbs.manager.js.map +1 -0
  58. package/lib/managers/shop-category.manager.d.ts +207 -0
  59. package/lib/managers/shop-category.manager.js +258 -0
  60. package/lib/managers/shop-category.manager.js.map +1 -0
  61. package/lib/managers/shop-flash-sale.manager.d.ts +242 -0
  62. package/lib/managers/shop-flash-sale.manager.js +321 -0
  63. package/lib/managers/shop-flash-sale.manager.js.map +1 -0
  64. package/lib/managers/shop.manager.d.ts +173 -0
  65. package/lib/managers/shop.manager.js +217 -0
  66. package/lib/managers/shop.manager.js.map +1 -0
  67. package/lib/managers/top-picks.manager.d.ts +62 -0
  68. package/lib/managers/top-picks.manager.js +91 -0
  69. package/lib/managers/top-picks.manager.js.map +1 -0
  70. package/lib/schemas/add-on-deal.d.ts +390 -0
  71. package/lib/schemas/add-on-deal.js +45 -0
  72. package/lib/schemas/add-on-deal.js.map +1 -0
  73. package/lib/schemas/ads.d.ts +437 -0
  74. package/lib/schemas/bundle-deal.d.ts +300 -0
  75. package/lib/schemas/bundle-deal.js +27 -0
  76. package/lib/schemas/bundle-deal.js.map +1 -0
  77. package/lib/schemas/discount.d.ts +334 -0
  78. package/lib/schemas/discount.js +15 -0
  79. package/lib/schemas/discount.js.map +1 -0
  80. package/lib/schemas/fbs.d.ts +117 -0
  81. package/lib/schemas/fbs.js +2 -0
  82. package/lib/schemas/fbs.js.map +1 -0
  83. package/lib/schemas/first-mile.d.ts +551 -0
  84. package/lib/schemas/first-mile.js +2 -0
  85. package/lib/schemas/first-mile.js.map +1 -0
  86. package/lib/schemas/follow-prize.d.ts +198 -0
  87. package/lib/schemas/follow-prize.js +27 -0
  88. package/lib/schemas/follow-prize.js.map +1 -0
  89. package/lib/schemas/global-product.d.ts +1127 -0
  90. package/lib/schemas/global-product.js +2 -0
  91. package/lib/schemas/global-product.js.map +1 -0
  92. package/lib/schemas/index.d.ts +13 -0
  93. package/lib/schemas/index.js +17 -0
  94. package/lib/schemas/index.js.map +1 -1
  95. package/lib/schemas/livestream.d.ts +649 -0
  96. package/lib/schemas/livestream.js +2 -0
  97. package/lib/schemas/livestream.js.map +1 -0
  98. package/lib/schemas/logistics.d.ts +979 -0
  99. package/lib/schemas/logistics.js +13 -0
  100. package/lib/schemas/logistics.js.map +1 -1
  101. package/lib/schemas/media-space.d.ts +189 -0
  102. package/lib/schemas/media-space.js +2 -0
  103. package/lib/schemas/media-space.js.map +1 -0
  104. package/lib/schemas/media.d.ts +230 -0
  105. package/lib/schemas/media.js +2 -0
  106. package/lib/schemas/media.js.map +1 -0
  107. package/lib/schemas/merchant.d.ts +236 -0
  108. package/lib/schemas/merchant.js +2 -0
  109. package/lib/schemas/merchant.js.map +1 -0
  110. package/lib/schemas/order.d.ts +431 -0
  111. package/lib/schemas/payment.d.ts +397 -0
  112. package/lib/schemas/returns.d.ts +632 -0
  113. package/lib/schemas/returns.js +63 -0
  114. package/lib/schemas/returns.js.map +1 -0
  115. package/lib/schemas/sbs.d.ts +484 -0
  116. package/lib/schemas/sbs.js +2 -0
  117. package/lib/schemas/sbs.js.map +1 -0
  118. package/lib/schemas/shop-category.d.ts +176 -0
  119. package/lib/schemas/shop-category.js +2 -0
  120. package/lib/schemas/shop-category.js.map +1 -0
  121. package/lib/schemas/shop-flash-sale.d.ts +473 -0
  122. package/lib/schemas/shop-flash-sale.js +43 -0
  123. package/lib/schemas/shop-flash-sale.js.map +1 -0
  124. package/lib/schemas/shop.d.ts +250 -0
  125. package/lib/schemas/shop.js +2 -0
  126. package/lib/schemas/shop.js.map +1 -0
  127. package/lib/schemas/top-picks.d.ts +99 -0
  128. package/lib/schemas/top-picks.js +2 -0
  129. package/lib/schemas/top-picks.js.map +1 -0
  130. package/lib/sdk.d.ts +34 -0
  131. package/lib/sdk.js +34 -0
  132. package/lib/sdk.js.map +1 -1
  133. package/package.json +2 -4
@@ -0,0 +1,250 @@
1
+ import { BaseResponse } from "./base.js";
2
+ /**
3
+ * Parameters for getting shop profile
4
+ * Use this API to get information of shop.
5
+ */
6
+ export type GetProfileParams = Record<string, never>;
7
+ /**
8
+ * Shop profile information
9
+ */
10
+ export type ShopProfile = {
11
+ /** The Image URL of the shop logo */
12
+ shop_logo: string;
13
+ /** The content of the shop description */
14
+ description: string;
15
+ /** The content of the shop name */
16
+ shop_name: string;
17
+ /** The invoice issuer information for the shop. It could be "Shopee" or "Other" as the invoice issuer. This is for BR CNPJ seller only. */
18
+ invoice_issuer?: string;
19
+ };
20
+ /**
21
+ * Response for getting shop profile
22
+ */
23
+ export type GetProfileResponse = BaseResponse & {
24
+ /** The information about shop logo, shop name, shop description */
25
+ response: ShopProfile;
26
+ };
27
+ /**
28
+ * Parameters for getting shop information
29
+ * Use this call to get information of shop
30
+ */
31
+ export type GetShopInfoParams = Record<string, never>;
32
+ /**
33
+ * SIP affiliate shop information
34
+ */
35
+ export type SipAffiShop = {
36
+ /** Affiliate shop's id */
37
+ affi_shop_id: number;
38
+ /** Affiliate Shop's area */
39
+ region: string;
40
+ };
41
+ /**
42
+ * Linked direct shop information
43
+ */
44
+ export type LinkedDirectShop = {
45
+ /** Shop ID of the Cross Border Direct Shop */
46
+ direct_shop_id: number;
47
+ /** Shop Region of the Cross Border Direct Shop */
48
+ direct_shop_region: string;
49
+ };
50
+ /**
51
+ * Outlet shop information
52
+ */
53
+ export type OutletShopInfo = {
54
+ /** Shop ID of the Outlet Shop */
55
+ outlet_shop_id: number;
56
+ };
57
+ /**
58
+ * Response for getting shop information
59
+ */
60
+ export type GetShopInfoResponse = BaseResponse & {
61
+ /** Name of the shop */
62
+ shop_name: string;
63
+ /** Shop's area */
64
+ region: string;
65
+ /** Applicable status: BANNED, FROZEN, NORMAL */
66
+ status: string;
67
+ /** SIP affiliate shops info list. If you request for SIP primary shop, this field will be returned, if you request for SIP affiliate shop, this field won't be returned */
68
+ sip_affi_shops?: SipAffiShop[];
69
+ /** Use this filed to indicate whether the shop is a cross-border shop */
70
+ is_cb: boolean;
71
+ /** The timestamp when the shop was authorized to the partner */
72
+ auth_time: number;
73
+ /** Use this field to indicate the expiration date for shop authorization */
74
+ expire_time: number;
75
+ /** This filed will return "true" when SIP primary shop or affiliate shop calls */
76
+ is_sip: boolean;
77
+ /** Use this filed to indicate whether this merchant is upgraded to CBSC, including CNSC and KRSC */
78
+ is_upgraded_cbsc?: boolean;
79
+ /** Shopee's unique identifier for a merchant. If the shop won't under any merchant, then the value will be null */
80
+ merchant_id?: number;
81
+ /** Use this field to indicate the fulfillment type of current shop */
82
+ shop_fulfillment_flag?: string;
83
+ /** Identifies if the current shop is a Local Shop linked to Cross Border Direct Shop */
84
+ is_main_shop?: boolean;
85
+ /** Identifies if the current shop is a Cross Border Direct Shop */
86
+ is_direct_shop?: boolean;
87
+ /** Returns the Shop ID of the Local Shop linked to the Cross Border Direct Shop */
88
+ linked_main_shop_id?: number;
89
+ /** Returns the list of Cross Border Direct Shops linked to the Local Shop */
90
+ linked_direct_shop_list?: LinkedDirectShop[];
91
+ /** Use this filed to indicate if the shop is in 1-AWB whitelist */
92
+ is_one_awb?: boolean;
93
+ /** Indicates whether the current shop is a Mart Shop */
94
+ is_mart_shop?: boolean;
95
+ /** Indicates whether the current shop is an Outlet Shop */
96
+ is_outlet_shop?: boolean;
97
+ /** (Only returned when requesting an Outlet Shop) Refers to the Mart Shop ID this Outlet belongs to */
98
+ mart_shop_id?: number;
99
+ /** (Only returned when requesting a Mart Shop) List of Outlet Shop IDs under this Mart Shop */
100
+ outlet_shop_info_list?: OutletShopInfo[];
101
+ };
102
+ /**
103
+ * Parameters for updating shop profile
104
+ * This API support to let sellers to update the shop name, shop logo, and shop description.
105
+ */
106
+ export type UpdateProfileParams = {
107
+ /** The new shop name */
108
+ shop_name?: string;
109
+ /** The new shop logo url. Recommend to use images */
110
+ shop_logo?: string;
111
+ /** The new shop description */
112
+ description?: string;
113
+ };
114
+ /**
115
+ * Updated shop profile information
116
+ */
117
+ export type UpdatedShopProfile = {
118
+ /** The Image URL of the shop logo after updated */
119
+ shop_logo?: string;
120
+ /** The content of the shop description after updated */
121
+ description?: string;
122
+ /** The content of the shop name after updated */
123
+ shop_name?: string;
124
+ };
125
+ /**
126
+ * Response for updating shop profile
127
+ */
128
+ export type UpdateProfileResponse = BaseResponse & {
129
+ /** If update successfully, the information is about shop logo, shop name, shop description */
130
+ response: UpdatedShopProfile;
131
+ };
132
+ /**
133
+ * Parameters for getting warehouse detail
134
+ * For given shop id and region, return warehouse info including warehouse id, address id and location id
135
+ */
136
+ export type GetWarehouseDetailParams = {
137
+ /** Type of warehouse. Applicable values: 1: Pickup Warehouse, 2: Return Warehouse. Default value is 1 (Pickup Warehouse) */
138
+ warehouse_type?: number;
139
+ };
140
+ /**
141
+ * Warehouse detail information
142
+ */
143
+ export type WarehouseDetail = {
144
+ /** Warehouse address identifier. It should be unique for every warehouse address */
145
+ warehouse_id: number;
146
+ /** The warehouse name filled in when creating the warehouse address */
147
+ warehouse_name: string;
148
+ /** Type of warehouse. Applicable values: 1: Pickup Warehouse, 2: Return Warehouse */
149
+ warehouse_type: number;
150
+ /** Location identifier for stocks. Different location_ids represent that your addresses are in different item stocks */
151
+ location_id: string;
152
+ /** Identity of address */
153
+ address_id: number;
154
+ /** Region of your warehouse address */
155
+ region: string;
156
+ /** State of your warehouse address */
157
+ state: string;
158
+ /** City of your warehouse address */
159
+ city: string;
160
+ /** Detail address of your warehouse address */
161
+ address: string;
162
+ /** Zipcode of your warehouse address */
163
+ zipcode: string;
164
+ /** Distinct of your warehouse address */
165
+ district: string;
166
+ /** Town of your warehouse address */
167
+ town: string;
168
+ /** State code of your warehouse address */
169
+ state_code: string;
170
+ /** The holiday mode state of your address. 0: not in holiday mode, 1: holiday mode active, 2: holiday mode is turning off, 3: holiday mode is turning on */
171
+ holiday_mode_state: number;
172
+ };
173
+ /**
174
+ * Response for getting warehouse detail
175
+ */
176
+ export type GetWarehouseDetailResponse = BaseResponse & {
177
+ /** List of warehouse details */
178
+ response: WarehouseDetail[];
179
+ };
180
+ /**
181
+ * Parameters for getting shop notification
182
+ * Get Seller Center notification, the permission is controlled by App type
183
+ */
184
+ export type GetShopNotificationParams = {
185
+ /** The last notification_id returned on the page. When using the cursor, notifications will start with the one following this cursor notification. If no cursor is provided, the latest message from the shop will be returned. */
186
+ cursor?: number;
187
+ /** Default 10; maximum 50 */
188
+ page_size?: number;
189
+ };
190
+ /**
191
+ * Shop notification data
192
+ */
193
+ export type ShopNotificationData = {
194
+ /** the notification create time */
195
+ create_time: number;
196
+ /** The content of the notification */
197
+ content: string;
198
+ /** The content of the notification */
199
+ title: string;
200
+ /** Some notification may be attached with URL, it will redirect to seller center */
201
+ url: string;
202
+ };
203
+ /**
204
+ * Response for getting shop notification
205
+ */
206
+ export type GetShopNotificationResponse = BaseResponse & {
207
+ /** Last notification_id returned in the page */
208
+ cursor: number;
209
+ /** Notification data */
210
+ data: ShopNotificationData;
211
+ };
212
+ /**
213
+ * Parameters for getting authorised reseller brand
214
+ * Get the authorised reseller brand list for the shop.
215
+ */
216
+ export type GetAuthorisedResellerBrandParams = {
217
+ /** Specifies the page number of data to return in the current call. Starting from 1. if data is more than one page, the page_no can be some entry to start next call. */
218
+ page_no: number;
219
+ /** Each result set is returned as a page of entries. Use the "page_size" filters to control the maximum number of entries to retrieve per page (i.e., per call), and the "page_no" to start next call. This integer value is used to specify the maximum number of entries to return in a single "page" of data. The limit of page_size if between 1 and 30. */
220
+ page_size: number;
221
+ };
222
+ /**
223
+ * Authorised brand information
224
+ */
225
+ export type AuthorisedBrand = {
226
+ /** ID of the authorised brand, it may be the same in different regions */
227
+ brand_id: number;
228
+ /** Name of the authorised brand */
229
+ brand_name: string;
230
+ };
231
+ /**
232
+ * Authorised reseller brand response data
233
+ */
234
+ export type AuthorisedResellerBrandData = {
235
+ /** This is to indicate whether the shop is authorised reseller */
236
+ is_authorised_reseller: boolean;
237
+ /** The number of authorised brand linked with the shop */
238
+ total_count: number;
239
+ /** This is to indicate whether the authorised brand list is more than one page. If this value is true, you may want to continue to check next page to retrieve the rest of authorised brand. */
240
+ more: boolean;
241
+ /** List of authorised brands */
242
+ authorised_brand_list: AuthorisedBrand[];
243
+ };
244
+ /**
245
+ * Response for getting authorised reseller brand
246
+ */
247
+ export type GetAuthorisedResellerBrandResponse = BaseResponse & {
248
+ /** Authorised reseller brand data */
249
+ response: AuthorisedResellerBrandData;
250
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=shop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shop.js","sourceRoot":"","sources":["../../src/schemas/shop.ts"],"names":[],"mappings":""}
@@ -0,0 +1,99 @@
1
+ import { BaseResponse } from "./base.js";
2
+ /**
3
+ * Item information in a top picks collection
4
+ */
5
+ export interface TopPicksItem {
6
+ /** The name of the item */
7
+ item_name: string;
8
+ /** The ID of the item */
9
+ item_id: number;
10
+ /** The price before tax of item */
11
+ current_price: number;
12
+ /** The price after tax of item */
13
+ inflated_price_of_current_price: number;
14
+ /** The sales of item */
15
+ sales: number;
16
+ }
17
+ /**
18
+ * Top picks collection information
19
+ */
20
+ export interface TopPicksCollection {
21
+ /** Whether collection is activated */
22
+ is_activated: boolean;
23
+ /** The items of top picks */
24
+ item_list: TopPicksItem[];
25
+ /** Collection id */
26
+ top_picks_id: number;
27
+ /** The title of top picks */
28
+ name: string;
29
+ }
30
+ /**
31
+ * Parameters for adding a new top picks collection
32
+ */
33
+ export interface AddTopPicksParams {
34
+ /** The name of the top picks collection */
35
+ name: string;
36
+ /** List of item IDs to include in the collection */
37
+ item_id_list: number[];
38
+ /** Whether the collection should be activated */
39
+ is_activated: boolean;
40
+ [key: string]: string | number | boolean | number[] | undefined;
41
+ }
42
+ /**
43
+ * Response for the add top picks API
44
+ */
45
+ export interface AddTopPicksResponse extends BaseResponse {
46
+ response: {
47
+ /** The top picks list in this shop */
48
+ collection_list: TopPicksCollection[];
49
+ };
50
+ }
51
+ /**
52
+ * Parameters for deleting a top picks collection
53
+ */
54
+ export interface DeleteTopPicksParams {
55
+ /** The collection ID to delete */
56
+ top_picks_id: number;
57
+ [key: string]: string | number | boolean | undefined;
58
+ }
59
+ /**
60
+ * Response for the delete top picks API
61
+ */
62
+ export interface DeleteTopPicksResponse extends BaseResponse {
63
+ response: {
64
+ /** The deleted collection ID */
65
+ top_picks_id: number;
66
+ };
67
+ }
68
+ /**
69
+ * Response for the get top picks list API
70
+ */
71
+ export interface GetTopPicksListResponse extends BaseResponse {
72
+ response: {
73
+ /** The top picks list in this shop */
74
+ collection_list: TopPicksCollection[];
75
+ };
76
+ }
77
+ /**
78
+ * Parameters for updating a top picks collection
79
+ */
80
+ export interface UpdateTopPicksParams {
81
+ /** The collection ID to update */
82
+ top_picks_id: number;
83
+ /** The new name for the collection (optional) */
84
+ name?: string;
85
+ /** The new list of item IDs (optional, will replace old list) */
86
+ item_id_list?: number[];
87
+ /** Whether to activate the collection (optional, will deactivate others if true) */
88
+ is_activated?: boolean;
89
+ [key: string]: string | number | boolean | number[] | undefined;
90
+ }
91
+ /**
92
+ * Response for the update top picks API
93
+ */
94
+ export interface UpdateTopPicksResponse extends BaseResponse {
95
+ response: {
96
+ /** The top picks list in this shop */
97
+ collection_list: TopPicksCollection[];
98
+ };
99
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=top-picks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"top-picks.js","sourceRoot":"","sources":["../../src/schemas/top-picks.ts"],"names":[],"mappings":""}
package/lib/sdk.d.ts CHANGED
@@ -11,6 +11,23 @@ import { LogisticsManager } from "./managers/logistics.manager.js";
11
11
  import { VoucherManager } from "./managers/voucher.manager.js";
12
12
  import { AdsManager } from "./managers/ads.manager.js";
13
13
  import { AccountHealthManager } from "./managers/account-health.manager.js";
14
+ import { MerchantManager } from "./managers/merchant.manager.js";
15
+ import { ShopManager } from "./managers/shop.manager.js";
16
+ import { MediaManager } from "./managers/media.manager.js";
17
+ import { MediaSpaceManager } from "./managers/media-space.manager.js";
18
+ import { GlobalProductManager } from "./managers/global-product.manager.js";
19
+ import { FirstMileManager } from "./managers/first-mile.manager.js";
20
+ import { DiscountManager } from "./managers/discount.manager.js";
21
+ import { BundleDealManager } from "./managers/bundle-deal.manager.js";
22
+ import { AddOnDealManager } from "./managers/add-on-deal.manager.js";
23
+ import { ShopFlashSaleManager } from "./managers/shop-flash-sale.manager.js";
24
+ import { FollowPrizeManager } from "./managers/follow-prize.manager.js";
25
+ import { TopPicksManager } from "./managers/top-picks.manager.js";
26
+ import { ShopCategoryManager } from "./managers/shop-category.manager.js";
27
+ import { ReturnsManager } from "./managers/returns.manager.js";
28
+ import { SbsManager } from "./managers/sbs.manager.js";
29
+ import { FbsManager } from "./managers/fbs.manager.js";
30
+ import { LiveStreamManager } from "./managers/livestream.manager.js";
14
31
  import { Agent } from "node:http";
15
32
  export interface ShopeeConfig {
16
33
  partner_id: number;
@@ -34,6 +51,23 @@ export declare class ShopeeSDK {
34
51
  readonly logistics: LogisticsManager;
35
52
  readonly voucher: VoucherManager;
36
53
  readonly accountHealth: AccountHealthManager;
54
+ readonly merchant: MerchantManager;
55
+ readonly shop: ShopManager;
56
+ readonly media: MediaManager;
57
+ readonly mediaSpace: MediaSpaceManager;
58
+ readonly globalProduct: GlobalProductManager;
59
+ readonly firstMile: FirstMileManager;
60
+ readonly discount: DiscountManager;
61
+ readonly bundleDeal: BundleDealManager;
62
+ readonly addOnDeal: AddOnDealManager;
63
+ readonly shopFlashSale: ShopFlashSaleManager;
64
+ readonly followPrize: FollowPrizeManager;
65
+ readonly topPicks: TopPicksManager;
66
+ readonly shopCategory: ShopCategoryManager;
67
+ readonly returns: ReturnsManager;
68
+ readonly sbs: SbsManager;
69
+ readonly fbs: FbsManager;
70
+ readonly livestream: LiveStreamManager;
37
71
  constructor(config: ShopeeConfig, tokenStorage?: TokenStorage);
38
72
  getConfig(): ShopeeConfig;
39
73
  setRegion(region: ShopeeRegion): void;
package/lib/sdk.js CHANGED
@@ -12,6 +12,23 @@ import { LogisticsManager } from "./managers/logistics.manager.js";
12
12
  import { VoucherManager } from "./managers/voucher.manager.js";
13
13
  import { AdsManager } from "./managers/ads.manager.js";
14
14
  import { AccountHealthManager } from "./managers/account-health.manager.js";
15
+ import { MerchantManager } from "./managers/merchant.manager.js";
16
+ import { ShopManager } from "./managers/shop.manager.js";
17
+ import { MediaManager } from "./managers/media.manager.js";
18
+ import { MediaSpaceManager } from "./managers/media-space.manager.js";
19
+ import { GlobalProductManager } from "./managers/global-product.manager.js";
20
+ import { FirstMileManager } from "./managers/first-mile.manager.js";
21
+ import { DiscountManager } from "./managers/discount.manager.js";
22
+ import { BundleDealManager } from "./managers/bundle-deal.manager.js";
23
+ import { AddOnDealManager } from "./managers/add-on-deal.manager.js";
24
+ import { ShopFlashSaleManager } from "./managers/shop-flash-sale.manager.js";
25
+ import { FollowPrizeManager } from "./managers/follow-prize.manager.js";
26
+ import { TopPicksManager } from "./managers/top-picks.manager.js";
27
+ import { ShopCategoryManager } from "./managers/shop-category.manager.js";
28
+ import { ReturnsManager } from "./managers/returns.manager.js";
29
+ import { SbsManager } from "./managers/sbs.manager.js";
30
+ import { FbsManager } from "./managers/fbs.manager.js";
31
+ import { LiveStreamManager } from "./managers/livestream.manager.js";
15
32
  export class ShopeeSDK {
16
33
  constructor(config, tokenStorage) {
17
34
  this.config = {
@@ -34,6 +51,23 @@ export class ShopeeSDK {
34
51
  this.logistics = new LogisticsManager(this.config);
35
52
  this.voucher = new VoucherManager(this.config);
36
53
  this.accountHealth = new AccountHealthManager(this.config);
54
+ this.merchant = new MerchantManager(this.config);
55
+ this.shop = new ShopManager(this.config);
56
+ this.media = new MediaManager(this.config);
57
+ this.mediaSpace = new MediaSpaceManager(this.config);
58
+ this.globalProduct = new GlobalProductManager(this.config);
59
+ this.firstMile = new FirstMileManager(this.config);
60
+ this.discount = new DiscountManager(this.config);
61
+ this.bundleDeal = new BundleDealManager(this.config);
62
+ this.addOnDeal = new AddOnDealManager(this.config);
63
+ this.shopFlashSale = new ShopFlashSaleManager(this.config);
64
+ this.followPrize = new FollowPrizeManager(this.config);
65
+ this.topPicks = new TopPicksManager(this.config);
66
+ this.shopCategory = new ShopCategoryManager(this.config);
67
+ this.returns = new ReturnsManager(this.config);
68
+ this.sbs = new SbsManager(this.config);
69
+ this.fbs = new FbsManager(this.config);
70
+ this.livestream = new LiveStreamManager(this.config);
37
71
  }
38
72
  getConfig() {
39
73
  return this.config;
package/lib/sdk.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAErE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAm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.10.0",
3
+ "version": "1.0.0",
4
4
  "description": "Shopee SDK maintaining by community",
5
5
  "type": "module",
6
6
  "main": "./lib/sdk.js",
@@ -67,12 +67,12 @@
67
67
  },
68
68
  "homepage": "https://github.com/congminh1254/shopee-sdk#readme",
69
69
  "devDependencies": {
70
+ "@types/node-fetch": "^2.6.12",
70
71
  "@commitlint/cli": "^18.6.1",
71
72
  "@commitlint/config-conventional": "^18.6.1",
72
73
  "@types/jest": "^29.5.14",
73
74
  "@typescript-eslint/eslint-plugin": "^7.0.1",
74
75
  "@typescript-eslint/parser": "^7.0.1",
75
- "coveralls": "^3.1.1",
76
76
  "eslint": "^8.56.0",
77
77
  "eslint-config-prettier": "^10.1.5",
78
78
  "husky": "^8.0.3",
@@ -83,8 +83,6 @@
83
83
  "typescript": "^5.7.3"
84
84
  },
85
85
  "dependencies": {
86
- "@types/node-fetch": "^2.6.12",
87
- "axios": "^1.8.4",
88
86
  "node-fetch": "^2.6.3"
89
87
  }
90
88
  }