plaza-sdk 1.3.4 → 1.3.6

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 (31) hide show
  1. package/README.md +5 -0
  2. package/lib/cjs/modules/alif-shop-client-api/core/index.js +1 -1
  3. package/lib/cjs/modules/alif-shop-client-api/core/products/api.js +1 -1
  4. package/lib/cjs/modules/alif-shop-client-api/core/products/index.js +1 -1
  5. package/lib/cjs/modules/alif-shop-client-api/core/products/types.js +1 -0
  6. package/lib/cjs/modules/alif-shop-client-api/core/types.js +1 -0
  7. package/lib/cjs/modules/alif-shop-client-api/index.js +1 -1
  8. package/lib/esm/modules/alif-shop-client-api/core/index.js +1 -1
  9. package/lib/esm/modules/alif-shop-client-api/core/products/api.js +1 -1
  10. package/lib/esm/modules/alif-shop-client-api/core/products/index.js +1 -1
  11. package/lib/esm/modules/alif-shop-client-api/core/products/types.js +1 -0
  12. package/lib/esm/modules/alif-shop-client-api/core/types.js +1 -0
  13. package/lib/esm/modules/alif-shop-client-api/index.js +1 -1
  14. package/lib/types/src/common/index.d.ts +1 -1
  15. package/lib/types/src/common/params.d.ts +4 -1
  16. package/lib/types/src/index.d.ts +1 -1
  17. package/lib/types/src/modules/alif-shop-api/common/interfaces.d.ts +4 -2
  18. package/lib/types/src/modules/alif-shop-client-api/common/types.d.ts +37 -1
  19. package/lib/types/src/modules/alif-shop-client-api/core/index.d.ts +7 -1
  20. package/lib/types/src/modules/alif-shop-client-api/core/products/api.d.ts +13 -4
  21. package/lib/types/src/modules/alif-shop-client-api/core/products/index.d.ts +7 -1
  22. package/lib/types/src/modules/alif-shop-client-api/core/products/params.d.ts +6 -2
  23. package/lib/types/src/modules/alif-shop-client-api/core/products/types.d.ts +63 -0
  24. package/lib/types/src/modules/alif-shop-client-api/core/types.d.ts +229 -0
  25. package/lib/types/src/modules/alif-shop-client-api/index.d.ts +7 -1
  26. package/lib/types/src/modules/uzum-market-api/core/index.d.ts +1 -1
  27. package/lib/types/src/modules/uzum-market-api/core/products/api.d.ts +9 -9
  28. package/lib/types/src/modules/uzum-market-api/core/products/index.d.ts +1 -1
  29. package/lib/types/src/modules/uzum-market-api/core/products/types.d.ts +2 -2
  30. package/lib/types/src/modules/uzum-market-api/index.d.ts +1 -1
  31. package/package.json +1 -1
package/README.md CHANGED
@@ -68,6 +68,11 @@ export { alifIdHttp };
68
68
  const baseURL = "https://api-merchant.alif.uz/merchant";
69
69
  const alifMerchantHttp = axios.create({ baseURL });
70
70
  export { alifMerchantHttp };
71
+
72
+ // 3. alif shop client apilarni olish uchun (no-auth)
73
+ const baseURL = "https://gw.alifshop.uz/web/client";
74
+ const alifClientHttp = axios.create({ baseURL });
75
+ export { alifClientHttp };
71
76
  ```
72
77
 
73
78
  Va ularni quyidagicha ishlatishimiz mumkin:
@@ -1 +1 @@
1
- "use strict";var e=require("./auth/api.js"),r=require("./products/api.js");exports.Login=e.Login,exports.RequestLogin=e.RequestLogin,exports.SearchList=r.SearchList;
1
+ "use strict";var e=require("./auth/api.js"),r=require("./products/api.js");exports.Login=e.Login,exports.RequestLogin=e.RequestLogin,exports.CategoryOffersList=r.CategoryOffersList,exports.SearchOffersList=r.SearchOffersList,exports.SingleModeratedOffer=r.SingleModeratedOffer,exports.SingleOffer=r.SingleOffer;
@@ -1 +1 @@
1
- "use strict";exports.SearchList=(r,e)=>{const{order:s=null,price_range:t={},brands:n=[],filters:a={},...c}=e;return r.post("/search/full-text",{order:s,price_range:t,brands:n,filters:a,...c})};
1
+ "use strict";exports.CategoryOffersList=(e,r)=>e.get("/categories/offers",{params:r}),exports.SearchOffersList=(e,r)=>{const{order:s=null,price_range:t={},brands:f=[],filters:o={},...a}=r;return e.post("/search/full-text",{order:s,price_range:t,brands:f,filters:o,...a})},exports.SingleModeratedOffer=(e,r)=>e.get(`/moderated-offers/${r.slug}`),exports.SingleOffer=(e,r)=>e.get(`/offers/${r.slug}`);
@@ -1 +1 @@
1
- "use strict";var r=require("./api.js");exports.SearchList=r.SearchList;
1
+ "use strict";var e=require("./api.js");exports.CategoryOffersList=e.CategoryOffersList,exports.SearchOffersList=e.SearchOffersList,exports.SingleModeratedOffer=e.SingleModeratedOffer,exports.SingleOffer=e.SingleOffer;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1 +1 @@
1
- "use strict";var e=require("./core/auth/api.js"),r=require("./core/products/api.js");exports.Login=e.Login,exports.RequestLogin=e.RequestLogin,exports.SearchList=r.SearchList;
1
+ "use strict";var e=require("./core/auth/api.js"),r=require("./core/products/api.js");exports.Login=e.Login,exports.RequestLogin=e.RequestLogin,exports.CategoryOffersList=r.CategoryOffersList,exports.SearchOffersList=r.SearchOffersList,exports.SingleModeratedOffer=r.SingleModeratedOffer,exports.SingleOffer=r.SingleOffer;
@@ -1 +1 @@
1
- export{Login,RequestLogin}from"./auth/api.js";export{SearchList}from"./products/api.js";
1
+ export{Login,RequestLogin}from"./auth/api.js";export{CategoryOffersList,SearchOffersList,SingleModeratedOffer,SingleOffer}from"./products/api.js";
@@ -1 +1 @@
1
- const r=(r,e)=>{const{order:t=null,price_range:n={},brands:s=[],filters:l={},...o}=e;return r.post("/search/full-text",{order:t,price_range:n,brands:s,filters:l,...o})};export{r as SearchList};
1
+ const e=(e,r)=>{const{order:s=null,price_range:t={},brands:o=[],filters:a={},...f}=r;return e.post("/search/full-text",{order:s,price_range:t,brands:o,filters:a,...f})},r=(e,r)=>e.get(`/offers/${r.slug}`),s=(e,r)=>e.get(`/moderated-offers/${r.slug}`),t=(e,r)=>e.get("/categories/offers",{params:r});export{t as CategoryOffersList,e as SearchOffersList,s as SingleModeratedOffer,r as SingleOffer};
@@ -1 +1 @@
1
- export{SearchList}from"./api.js";
1
+ export{CategoryOffersList,SearchOffersList,SingleModeratedOffer,SingleOffer}from"./api.js";
@@ -1 +1 @@
1
- export{Login,RequestLogin}from"./core/auth/api.js";export{SearchList}from"./core/products/api.js";
1
+ export{Login,RequestLogin}from"./core/auth/api.js";export{CategoryOffersList,SearchOffersList,SingleModeratedOffer,SingleOffer}from"./core/products/api.js";
@@ -1,5 +1,5 @@
1
1
  export { BooleanNullable, CallerNoParam, CallerParam, CallerParamPayload, CallerPayload, NumberNullable, NumberRange, StringNullable } from './types.js';
2
2
  export { getNumber, pasteAuthHeader, pasteAuthHeaderAndApikey } from './utils.js';
3
- export { TokenParams, UsernamePasswordParams } from './params.js';
3
+ export { SlugParams, TokenParams, UsernamePasswordParams } from './params.js';
4
4
  export { IMultiLang, IMultiLangArray } from './interfaces.js';
5
5
  import 'axios';
@@ -5,5 +5,8 @@ interface UsernamePasswordParams {
5
5
  username: string;
6
6
  password: string;
7
7
  }
8
+ interface SlugParams {
9
+ slug: string;
10
+ }
8
11
 
9
- export type { TokenParams, UsernamePasswordParams };
12
+ export type { SlugParams, TokenParams, UsernamePasswordParams };
@@ -1,5 +1,5 @@
1
1
  export { BooleanNullable, CallerNoParam, CallerParam, CallerParamPayload, CallerPayload, NumberNullable, NumberRange, StringNullable } from './common/types.js';
2
2
  export { getNumber, pasteAuthHeader, pasteAuthHeaderAndApikey } from './common/utils.js';
3
- export { TokenParams, UsernamePasswordParams } from './common/params.js';
3
+ export { SlugParams, TokenParams, UsernamePasswordParams } from './common/params.js';
4
4
  export { IMultiLang, IMultiLangArray } from './common/interfaces.js';
5
5
  import 'axios';
@@ -16,9 +16,11 @@ interface IMetaLink {
16
16
  label: string;
17
17
  active: boolean;
18
18
  }
19
- interface IMetaWithPagination extends IMeta {
19
+ interface IMetaWithTotalLast extends IMeta {
20
20
  total: number;
21
21
  last_page: number;
22
+ }
23
+ interface IMetaWithPagination extends IMetaWithTotalLast {
22
24
  links: IMetaLink[];
23
25
  }
24
26
  interface IPaginatedResponse<T> {
@@ -27,4 +29,4 @@ interface IPaginatedResponse<T> {
27
29
  links: ILinks;
28
30
  }
29
31
 
30
- export type { ILinks, IMeta, IMetaLink, IMetaWithPagination, IPaginatedResponse };
32
+ export type { ILinks, IMeta, IMetaLink, IMetaWithPagination, IMetaWithTotalLast, IPaginatedResponse };
@@ -1,2 +1,38 @@
1
+ import { IMultiLang } from '../../../common/interfaces.js';
1
2
 
2
- export { };
3
+ interface PartnerShop {
4
+ id: number;
5
+ slug: string;
6
+ }
7
+ interface MediaItem {
8
+ order: number;
9
+ sm_path: string;
10
+ }
11
+ interface AlifBrand {
12
+ id: number;
13
+ name: string;
14
+ slug: string;
15
+ }
16
+ interface TitleMedia {
17
+ sm_path: string;
18
+ }
19
+ interface ModereatedCardGroupItem {
20
+ id: number;
21
+ name: string;
22
+ names: IMultiLang;
23
+ attributes: ModeratedAttributeItem[];
24
+ }
25
+ interface TermItem {
26
+ doc_count: number;
27
+ key: string;
28
+ }
29
+ interface AttributeItem {
30
+ doc_count: number;
31
+ key: string;
32
+ values: TermItem[];
33
+ }
34
+ interface ModeratedAttributeItem extends AttributeItem {
35
+ names: IMultiLang;
36
+ }
37
+
38
+ export type { AlifBrand, AttributeItem, MediaItem, ModeratedAttributeItem, ModereatedCardGroupItem, PartnerShop, TermItem, TitleMedia };
@@ -1,5 +1,11 @@
1
1
  export { Login, RequestLogin } from './auth/api.js';
2
- export { SearchList } from './products/api.js';
2
+ export { CategoryOffersList, SearchOffersList, SingleModeratedOffer, SingleOffer } from './products/api.js';
3
3
  import '../../../common/types.js';
4
4
  import 'axios';
5
+ import '../../../common/params.js';
6
+ import './products/types.js';
7
+ import './types.js';
8
+ import '../../../common/interfaces.js';
9
+ import '../common/types.js';
10
+ import '../../alif-shop-api/common/interfaces.js';
5
11
  import './products/params.js';
@@ -1,7 +1,16 @@
1
- import { CallerPayload } from '../../../../common/types.js';
2
- import { SearchListParams } from './params.js';
1
+ import { CallerPayload, CallerParam } from '../../../../common/types.js';
2
+ import { SlugParams } from '../../../../common/params.js';
3
+ import { AlifClientApi } from './types.js';
4
+ import { SearchOffersListParams, CategoryOffersListParams } from './params.js';
3
5
  import 'axios';
6
+ import '../types.js';
7
+ import '../../../../common/interfaces.js';
8
+ import '../../common/types.js';
9
+ import '../../../alif-shop-api/common/interfaces.js';
4
10
 
5
- declare const SearchList: CallerPayload<SearchListParams>;
11
+ declare const SearchOffersList: CallerPayload<SearchOffersListParams, AlifClientApi.SearchOffersListParams.Response>;
12
+ declare const SingleOffer: CallerParam<SlugParams, AlifClientApi.SingleOffer.Response>;
13
+ declare const SingleModeratedOffer: CallerParam<SlugParams, AlifClientApi.SingleModeratedOffer.Response>;
14
+ declare const CategoryOffersList: CallerParam<CategoryOffersListParams, AlifClientApi.CategoryOffersList.Response>;
6
15
 
7
- export { SearchList };
16
+ export { CategoryOffersList, SearchOffersList, SingleModeratedOffer, SingleOffer };
@@ -1,4 +1,10 @@
1
- export { SearchList } from './api.js';
1
+ export { CategoryOffersList, SearchOffersList, SingleModeratedOffer, SingleOffer } from './api.js';
2
2
  import '../../../../common/types.js';
3
3
  import 'axios';
4
+ import '../../../../common/params.js';
5
+ import './types.js';
6
+ import '../types.js';
7
+ import '../../../../common/interfaces.js';
8
+ import '../../common/types.js';
9
+ import '../../../alif-shop-api/common/interfaces.js';
4
10
  import './params.js';
@@ -1,4 +1,4 @@
1
- interface SearchListParams {
1
+ interface SearchOffersListParams {
2
2
  page: number;
3
3
  price_range?: {
4
4
  min?: string;
@@ -9,5 +9,9 @@ interface SearchListParams {
9
9
  query: string;
10
10
  filters?: Record<string, any[]>;
11
11
  }
12
+ interface CategoryOffersListParams {
13
+ page?: number;
14
+ category: string;
15
+ }
12
16
 
13
- export type { SearchListParams };
17
+ export type { CategoryOffersListParams, SearchOffersListParams };
@@ -0,0 +1,63 @@
1
+ import { AlifShopClientApiEntity } from '../types.js';
2
+ import { TermItem, AttributeItem } from '../../common/types.js';
3
+ import { IMetaWithTotalLast } from '../../../alif-shop-api/common/interfaces.js';
4
+ import '../../../../common/types.js';
5
+ import 'axios';
6
+ import '../../../../common/interfaces.js';
7
+
8
+ declare namespace AlifClientApi {
9
+ namespace SearchOffersListParams {
10
+ interface Response {
11
+ n_pages: number;
12
+ n_items: number;
13
+ current_page: number;
14
+ items: AlifShopClientApiEntity.AlifProduct[];
15
+ aggregations: {
16
+ price: {
17
+ doc_count: number;
18
+ stats: {
19
+ count: number;
20
+ min: number;
21
+ max: number;
22
+ avg: number;
23
+ sum: number;
24
+ };
25
+ };
26
+ brand: {
27
+ doc_count: number;
28
+ terms: TermItem[];
29
+ };
30
+ category: {
31
+ doc_count: number;
32
+ terms: TermItem[];
33
+ };
34
+ filters: {
35
+ doc_count: number;
36
+ attributes: AttributeItem[];
37
+ };
38
+ };
39
+ }
40
+ }
41
+ namespace SingleOffer {
42
+ interface Response {
43
+ data: {
44
+ item: AlifShopClientApiEntity.SingleOffer;
45
+ item_conditions: AlifShopClientApiEntity.ConditionItem[];
46
+ };
47
+ }
48
+ }
49
+ namespace SingleModeratedOffer {
50
+ interface Response {
51
+ moderated_offer: AlifShopClientApiEntity.SingleModeratedOffer;
52
+ item_conditions: Required<AlifShopClientApiEntity.ConditionItem>[];
53
+ }
54
+ }
55
+ namespace CategoryOffersList {
56
+ interface Response {
57
+ data: AlifShopClientApiEntity.CategoryOfferItem[];
58
+ meta: IMetaWithTotalLast;
59
+ }
60
+ }
61
+ }
62
+
63
+ export { AlifClientApi };
@@ -0,0 +1,229 @@
1
+ import { StringNullable, NumberNullable } from '../../../common/types.js';
2
+ import { IMultiLang } from '../../../common/interfaces.js';
3
+ import { PartnerShop, AlifBrand, TitleMedia, ModereatedCardGroupItem, MediaItem } from '../common/types.js';
4
+ import 'axios';
5
+
6
+ declare namespace AlifShopClientApiEntity {
7
+ interface CardThirdCategory extends CardCategory {
8
+ sub_category: CardSubCategory;
9
+ }
10
+ interface CardCategory {
11
+ slug: string | null;
12
+ name: string;
13
+ name_uz: string | null;
14
+ image?: unknown | null;
15
+ is_active: boolean;
16
+ }
17
+ interface CardSubCategory extends CardCategory {
18
+ category: CardCategory;
19
+ }
20
+ interface EventItem {
21
+ id: string;
22
+ slug: string;
23
+ status: string;
24
+ conditions: AlifShopClientApiEntity.ConditionItem[];
25
+ }
26
+ interface AttributeValue {
27
+ id: number;
28
+ value: string;
29
+ }
30
+ interface CardAttributeItem {
31
+ id: number;
32
+ name: string;
33
+ values: AttributeValue[];
34
+ }
35
+ interface CardGroupItem {
36
+ id: number;
37
+ name: string;
38
+ attributes: CardAttributeItem[];
39
+ }
40
+ interface DeliveryItem {
41
+ id: number;
42
+ partner_id: number;
43
+ amount: number;
44
+ note: string;
45
+ note_uz: string;
46
+ is_active: boolean;
47
+ }
48
+ interface CardMedia {
49
+ id: number;
50
+ order: number;
51
+ lg_path: string;
52
+ md_path: string;
53
+ sm_path: string;
54
+ }
55
+ interface ConditionCore {
56
+ id: number;
57
+ duration: number;
58
+ commission: number;
59
+ prepayment: number;
60
+ event_id: number | null;
61
+ }
62
+ interface ConditionItem extends ConditionCore {
63
+ event_id: number | null;
64
+ event_id_v2: unknown | null;
65
+ merchant_condition_id: number;
66
+ partner_id: number;
67
+ event_label?: null;
68
+ event_label_uz?: null;
69
+ is_active?: boolean;
70
+ event_v2_id?: null;
71
+ }
72
+ interface PartnerInfo extends PartnerShop {
73
+ name: string;
74
+ is_active: boolean;
75
+ has_delivery: boolean;
76
+ delivery_amount: number;
77
+ cash_sales: boolean;
78
+ has_credit: boolean;
79
+ information: unknown | null;
80
+ information_uz: unknown | null;
81
+ is_official_reseller: boolean;
82
+ is_recommend: boolean;
83
+ logo_path: string | null;
84
+ rating: number;
85
+ active_deliveries: DeliveryItem[];
86
+ conditions: ConditionItem[];
87
+ min_application_price: number;
88
+ }
89
+ interface ModeratedCategory {
90
+ id: number;
91
+ parent_id: number;
92
+ parent: ModeratedCategory | null;
93
+ name: string;
94
+ name_uz: string;
95
+ slug: string;
96
+ is_active: boolean;
97
+ order: number;
98
+ icon: unknown | null;
99
+ image: string;
100
+ description_ru: unknown | null;
101
+ description_uz: unknown | null;
102
+ meta_title_uz: unknown | null;
103
+ meta_title_ru: string;
104
+ meta_description_ru: string;
105
+ meta_description_uz: unknown | null;
106
+ mobile_image_ru: string;
107
+ mobile_image_uz: string;
108
+ label: string | null;
109
+ search_priority: number;
110
+ }
111
+ interface SingleOffer {
112
+ id: number;
113
+ name: string;
114
+ title_name: string;
115
+ slug: string;
116
+ quantity: number;
117
+ is_available: boolean;
118
+ price: number;
119
+ raw_old_price: number;
120
+ old_price: number;
121
+ discount: number;
122
+ has_guarantee: boolean;
123
+ has_imei: boolean;
124
+ in_fulfillment_center: boolean;
125
+ rating: unknown | null;
126
+ review_count: unknown | null;
127
+ bnpl_details: unknown | null;
128
+ purchase_restrictions: unknown | null;
129
+ partner: PartnerInfo;
130
+ product: {
131
+ id: number;
132
+ name: string;
133
+ brand: AlifBrand;
134
+ title_image: TitleMedia;
135
+ videos: unknown | null;
136
+ third_category: CardThirdCategory;
137
+ images: CardMedia[];
138
+ groups: CardGroupItem[];
139
+ };
140
+ condition: ConditionItem;
141
+ label: {
142
+ id: number;
143
+ text_ru: string;
144
+ text_uz: string;
145
+ };
146
+ events: EventItem[];
147
+ }
148
+ interface SingleModeratedOffer {
149
+ id: string;
150
+ name: string;
151
+ slug: string;
152
+ price: number;
153
+ raw_old_price: number;
154
+ old_price: number;
155
+ discount: number;
156
+ is_visible: boolean;
157
+ is_available: boolean;
158
+ quantity: number;
159
+ has_guarantee: boolean;
160
+ has_imei: boolean;
161
+ in_fulfillment_center: boolean;
162
+ rating: unknown | null;
163
+ review_count: unknown | null;
164
+ path: unknown | null;
165
+ event_label: unknown | null;
166
+ event_label_uz: unknown | null;
167
+ model: AlifBrand;
168
+ series: unknown | null;
169
+ brand: AlifBrand;
170
+ category: ModeratedCategory;
171
+ groups: ModereatedCardGroupItem[];
172
+ images: string[];
173
+ title_image: string;
174
+ video_links: unknown | null;
175
+ descriptions: IMultiLang;
176
+ partner: PartnerInfo;
177
+ events: unknown[];
178
+ label: unknown | null;
179
+ title_name: null;
180
+ condition: Required<AlifShopClientApiEntity.ConditionItem>;
181
+ purchase_restrictions: null;
182
+ variations: null;
183
+ }
184
+ interface AlifProduct {
185
+ id: number;
186
+ slug: string;
187
+ product_id: number;
188
+ moderated_offer_id?: number;
189
+ brand_id: number;
190
+ brand_name: string;
191
+ brand_image: string;
192
+ price: number;
193
+ old_price: number;
194
+ discount: number | null;
195
+ label_ru: string | null;
196
+ label_uz: string | null;
197
+ quantity: number;
198
+ condition: ConditionCore;
199
+ partner: PartnerShop;
200
+ product: {
201
+ name: string;
202
+ title_image: TitleMedia;
203
+ images: MediaItem[];
204
+ };
205
+ has_imei: boolean;
206
+ has_guarantee: boolean;
207
+ }
208
+ interface CategoryOfferItem {
209
+ offer_id: number;
210
+ moderated_offer_id: StringNullable;
211
+ product_id: number;
212
+ slug: string;
213
+ name: string;
214
+ price: number;
215
+ quantity: number;
216
+ raw_old_price: number;
217
+ old_price: NumberNullable;
218
+ image_path: string;
219
+ has_video_links: boolean;
220
+ label: unknown | null;
221
+ discount: NumberNullable;
222
+ partner: PartnerShop;
223
+ condition: Omit<ConditionCore, "event_id">;
224
+ bnpl_details: unknown | null;
225
+ purchase_restrictions: unknown | null;
226
+ }
227
+ }
228
+
229
+ export { AlifShopClientApiEntity };
@@ -1,5 +1,11 @@
1
1
  export { Login, RequestLogin } from './core/auth/api.js';
2
- export { SearchList } from './core/products/api.js';
2
+ export { CategoryOffersList, SearchOffersList, SingleModeratedOffer, SingleOffer } from './core/products/api.js';
3
3
  import '../../common/types.js';
4
4
  import 'axios';
5
+ import '../../common/params.js';
6
+ import './core/products/types.js';
7
+ import './core/types.js';
8
+ import '../../common/interfaces.js';
9
+ import './common/types.js';
10
+ import '../alif-shop-api/common/interfaces.js';
5
11
  import './core/products/params.js';
@@ -2,7 +2,7 @@ export { CheckToken, GetToken, RefreshToken } from './auth/api.js';
2
2
  export { AuthApi, AuthEntity } from './auth/types.js';
3
3
  export { GetTokenParams, RefreshTokenParams } from './auth/params.js';
4
4
  export { AddPromotion, ArchiveProduct, CheckSkuExists, CreateProduct, GetProduct, InvolvedProductsList, ProductDescription, ProductsList, RemovePromotion, SendSkuData, UnarchiveProduct } from './products/api.js';
5
- export { IApi } from './products/types.js';
5
+ export { ProductsApi } from './products/types.js';
6
6
  export { CorePaginationParams, InvolvedProductsParams, ProductIdBasedParams, ProductListParams, SkuBasedParams, SkuIdBasedParams, TokenAndShopId } from './products/params.js';
7
7
  export { UzumMarketEntity } from './types.js';
8
8
  import '../../../common/types.js';
@@ -1,4 +1,4 @@
1
- import { IApi } from './types.js';
1
+ import { ProductsApi } from './types.js';
2
2
  import { SkuIdBasedParams, ProductListParams, TokenAndShopId, InvolvedProductsParams, ProductIdBasedParams, SkuBasedParams } from './params.js';
3
3
  import { CallerParam, CallerParamPayload } from '../../../../common/types.js';
4
4
  import '../types.js';
@@ -8,18 +8,18 @@ import '../../common/types.js';
8
8
  import 'axios';
9
9
  import '../../../../common/params.js';
10
10
 
11
- declare const ArchiveProduct: CallerParam<SkuIdBasedParams, IApi.ArchiveProduct.Response>;
12
- declare const UnarchiveProduct: CallerParam<SkuIdBasedParams, IApi.UnarchiveProduct.Response>;
13
- declare const ProductsList: CallerParam<ProductListParams, IApi.ProductsList.Response>;
14
- declare const RemovePromotion: CallerParamPayload<TokenAndShopId, IApi.RemovePromotion.Request>;
15
- declare const AddPromotion: CallerParamPayload<TokenAndShopId, IApi.AddPromotion.Request>;
11
+ declare const ArchiveProduct: CallerParam<SkuIdBasedParams, ProductsApi.ArchiveProduct.Response>;
12
+ declare const UnarchiveProduct: CallerParam<SkuIdBasedParams, ProductsApi.UnarchiveProduct.Response>;
13
+ declare const ProductsList: CallerParam<ProductListParams, ProductsApi.ProductsList.Response>;
14
+ declare const RemovePromotion: CallerParamPayload<TokenAndShopId, ProductsApi.RemovePromotion.Request>;
15
+ declare const AddPromotion: CallerParamPayload<TokenAndShopId, ProductsApi.AddPromotion.Request>;
16
16
  declare const InvolvedProductsList: CallerParam<InvolvedProductsParams>;
17
- declare const ProductDescription: CallerParam<ProductIdBasedParams, IApi.ProductDescription.Response>;
17
+ declare const ProductDescription: CallerParam<ProductIdBasedParams, ProductsApi.ProductDescription.Response>;
18
18
  declare const CheckSkuExists: CallerParam<SkuBasedParams, {
19
19
  exists: boolean;
20
20
  }>;
21
- declare const CreateProduct: CallerParamPayload<TokenAndShopId, IApi.CreateProduct.Request, IApi.CreateProduct.Response>;
22
- declare const GetProduct: CallerParam<ProductIdBasedParams, IApi.GetProduct.Response>;
21
+ declare const CreateProduct: CallerParamPayload<TokenAndShopId, ProductsApi.CreateProduct.Request, ProductsApi.CreateProduct.Response>;
22
+ declare const GetProduct: CallerParam<ProductIdBasedParams, ProductsApi.GetProduct.Response>;
23
23
  declare const SendSkuData: CallerParamPayload<TokenAndShopId, unknown>;
24
24
 
25
25
  export { AddPromotion, ArchiveProduct, CheckSkuExists, CreateProduct, GetProduct, InvolvedProductsList, ProductDescription, ProductsList, RemovePromotion, SendSkuData, UnarchiveProduct };
@@ -1,5 +1,5 @@
1
1
  export { AddPromotion, ArchiveProduct, CheckSkuExists, CreateProduct, GetProduct, InvolvedProductsList, ProductDescription, ProductsList, RemovePromotion, SendSkuData, UnarchiveProduct } from './api.js';
2
- export { IApi } from './types.js';
2
+ export { ProductsApi } from './types.js';
3
3
  export { CorePaginationParams, InvolvedProductsParams, ProductIdBasedParams, ProductListParams, SkuBasedParams, SkuIdBasedParams, TokenAndShopId } from './params.js';
4
4
  import '../../../../common/types.js';
5
5
  import 'axios';
@@ -5,7 +5,7 @@ import '../../common/interfaces.js';
5
5
  import '../../../../common/interfaces.js';
6
6
  import '../../common/types.js';
7
7
 
8
- declare namespace IApi {
8
+ declare namespace ProductsApi {
9
9
  namespace ArchiveProduct {
10
10
  type Response = UzumMarketEntity.SkuCore;
11
11
  }
@@ -42,4 +42,4 @@ declare namespace IApi {
42
42
  }
43
43
  }
44
44
 
45
- export { IApi };
45
+ export { ProductsApi };
@@ -2,7 +2,7 @@ export { CheckToken, GetToken, RefreshToken } from './core/auth/api.js';
2
2
  export { AuthApi, AuthEntity } from './core/auth/types.js';
3
3
  export { GetTokenParams, RefreshTokenParams } from './core/auth/params.js';
4
4
  export { AddPromotion, ArchiveProduct, CheckSkuExists, CreateProduct, GetProduct, InvolvedProductsList, ProductDescription, ProductsList, RemovePromotion, SendSkuData, UnarchiveProduct } from './core/products/api.js';
5
- export { IApi } from './core/products/types.js';
5
+ export { ProductsApi } from './core/products/types.js';
6
6
  export { CorePaginationParams, InvolvedProductsParams, ProductIdBasedParams, ProductListParams, SkuBasedParams, SkuIdBasedParams, TokenAndShopId } from './core/products/params.js';
7
7
  export { UzumMarketEntity } from './core/types.js';
8
8
  import '../../common/types.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plaza-sdk",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "outputDir": "./lib",
5
5
  "exports": {
6
6
  ".": {