plaza-sdk 1.0.1 → 1.0.2

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.
@@ -1 +1 @@
1
- var plazaSdk=function(e,r){"use strict";const t=e=>({Authorization:`Bearer ${e}`}),s=(e,r=0)=>{if("number"==typeof e)return e;if("string"==typeof e){const t=parseFloat(e);return isNaN(t)?r:t}return r},o=e=>({searchQuery:r.get(e,"searchQuery","")||"",filter:r.get(e,"filter")||"ALL",sortBy:r.get(e,"sortBy")||"id",order:r.get(e,"order")||"descending",size:s(r.get(e,"size"),250),page:s(r.get(e,"page"),0)});return e.AddPromotion=(e,r,s)=>e.post(`/seller/shop/${r.shopId}/marketing/calendar-event/add`,s,{headers:t(r.token)}),e.ArchiveProduct=(e,{token:r,shopId:s,skuId:o})=>e.post(`/seller/shop/${s}/product/sku/${o}/archive`,null,{headers:t(r)}),e.ProductsList=async(e,r)=>await e.get(`/seller/shop/${r.shopId}/product/getProducts`,{params:o(r),headers:t(r.token)}),e.RemovePromotion=(e,r,s)=>e.post(`/seller/shop/${r.shopId}/marketing/calendar-event/remove`,s,{headers:t(r.token)}),e.UnarchiveProduct=(e,{token:r,shopId:s,skuId:o})=>e.post(`/seller/shop/${s}/product/sku/${o}/archive/restore`,null,{headers:t(r)}),e}({},lodash);
1
+ var plazaSdk=function(e,r){"use strict";const s=e=>({Authorization:`Bearer ${e}`}),t=(e,r=0)=>{if("number"==typeof e)return e;if("string"==typeof e){const s=parseFloat(e);return isNaN(s)?r:s}return r},o=e=>({searchQuery:r.get(e,"searchQuery","")||"",filter:r.get(e,"filter")||"ALL",sortBy:r.get(e,"sortBy")||"id",order:r.get(e,"order")||"descending",size:t(r.get(e,"size"),250),page:t(r.get(e,"page"),0)});return e.AddPromotion=(e,r,t)=>e.post(`/seller/shop/${r.shopId}/marketing/calendar-event/add`,t,{headers:s(r.token)}),e.ArchiveProduct=(e,{token:r,shopId:t,skuId:o})=>e.post(`/seller/shop/${t}/product/sku/${o}/archive`,null,{headers:s(r)}),e.InvolvedProductsList=async(e,r)=>e.get(`/seller/shop/${r.shopId}/marketing/calendar-event/products-involved`,{params:{eventId:r.eventId,page:r.page,size:r.size},headers:s(r.token)}),e.ProductDescription=async(e,r)=>e.get(`/seller/shop/${r.shopId}/product/${r.productId}/description-response`,{headers:s(r.token)}),e.ProductsList=async(e,r)=>await e.get(`/seller/shop/${r.shopId}/product/getProducts`,{params:o(r),headers:s(r.token)}),e.RemovePromotion=(e,r,t)=>e.post(`/seller/shop/${r.shopId}/marketing/calendar-event/remove`,t,{headers:s(r.token)}),e.UnarchiveProduct=(e,{token:r,shopId:t,skuId:o})=>e.post(`/seller/shop/${t}/product/sku/${o}/archive/restore`,null,{headers:s(r)}),e}({},lodash);
@@ -1 +1 @@
1
- !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("lodash")):"function"==typeof define&&define.amd?define(["exports","lodash"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).plazaSdk={},e.lodash)}(this,function(e,o){"use strict";const t=e=>({Authorization:`Bearer ${e}`}),r=(e,o=0)=>{if("number"==typeof e)return e;if("string"==typeof e){const t=parseFloat(e);return isNaN(t)?o:t}return o},s=e=>({searchQuery:o.get(e,"searchQuery","")||"",filter:o.get(e,"filter")||"ALL",sortBy:o.get(e,"sortBy")||"id",order:o.get(e,"order")||"descending",size:r(o.get(e,"size"),250),page:r(o.get(e,"page"),0)});e.AddPromotion=(e,o,r)=>e.post(`/seller/shop/${o.shopId}/marketing/calendar-event/add`,r,{headers:t(o.token)}),e.ArchiveProduct=(e,{token:o,shopId:r,skuId:s})=>e.post(`/seller/shop/${r}/product/sku/${s}/archive`,null,{headers:t(o)}),e.ProductsList=async(e,o)=>await e.get(`/seller/shop/${o.shopId}/product/getProducts`,{params:s(o),headers:t(o.token)}),e.RemovePromotion=(e,o,r)=>e.post(`/seller/shop/${o.shopId}/marketing/calendar-event/remove`,r,{headers:t(o.token)}),e.UnarchiveProduct=(e,{token:o,shopId:r,skuId:s})=>e.post(`/seller/shop/${r}/product/sku/${s}/archive/restore`,null,{headers:t(o)})});
1
+ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("lodash")):"function"==typeof define&&define.amd?define(["exports","lodash"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).plazaSdk={},e.lodash)}(this,function(e,o){"use strict";const s=e=>({Authorization:`Bearer ${e}`}),t=(e,o=0)=>{if("number"==typeof e)return e;if("string"==typeof e){const s=parseFloat(e);return isNaN(s)?o:s}return o},r=e=>({searchQuery:o.get(e,"searchQuery","")||"",filter:o.get(e,"filter")||"ALL",sortBy:o.get(e,"sortBy")||"id",order:o.get(e,"order")||"descending",size:t(o.get(e,"size"),250),page:t(o.get(e,"page"),0)});e.AddPromotion=(e,o,t)=>e.post(`/seller/shop/${o.shopId}/marketing/calendar-event/add`,t,{headers:s(o.token)}),e.ArchiveProduct=(e,{token:o,shopId:t,skuId:r})=>e.post(`/seller/shop/${t}/product/sku/${r}/archive`,null,{headers:s(o)}),e.InvolvedProductsList=async(e,o)=>e.get(`/seller/shop/${o.shopId}/marketing/calendar-event/products-involved`,{params:{eventId:o.eventId,page:o.page,size:o.size},headers:s(o.token)}),e.ProductDescription=async(e,o)=>e.get(`/seller/shop/${o.shopId}/product/${o.productId}/description-response`,{headers:s(o.token)}),e.ProductsList=async(e,o)=>await e.get(`/seller/shop/${o.shopId}/product/getProducts`,{params:r(o),headers:s(o.token)}),e.RemovePromotion=(e,o,t)=>e.post(`/seller/shop/${o.shopId}/marketing/calendar-event/remove`,t,{headers:s(o.token)}),e.UnarchiveProduct=(e,{token:o,shopId:t,skuId:r})=>e.post(`/seller/shop/${t}/product/sku/${r}/archive/restore`,null,{headers:s(o)})});
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var o=require("./modules/uzum-market/core/products/api.js");exports.AddPromotion=o.AddPromotion,exports.ArchiveProduct=o.ArchiveProduct,exports.ProductsList=o.ProductsList,exports.RemovePromotion=o.RemovePromotion,exports.UnarchiveProduct=o.UnarchiveProduct;
1
+ "use strict";var o=require("./modules/uzum-market/core/products/api.js");exports.AddPromotion=o.AddPromotion,exports.ArchiveProduct=o.ArchiveProduct,exports.InvolvedProductsList=o.InvolvedProductsList,exports.ProductDescription=o.ProductDescription,exports.ProductsList=o.ProductsList,exports.RemovePromotion=o.RemovePromotion,exports.UnarchiveProduct=o.UnarchiveProduct;
@@ -1 +1 @@
1
- "use strict";var o=require("./uzum-market/core/products/api.js");exports.AddPromotion=o.AddPromotion,exports.ArchiveProduct=o.ArchiveProduct,exports.ProductsList=o.ProductsList,exports.RemovePromotion=o.RemovePromotion,exports.UnarchiveProduct=o.UnarchiveProduct;
1
+ "use strict";var o=require("./uzum-market/core/products/api.js");exports.AddPromotion=o.AddPromotion,exports.ArchiveProduct=o.ArchiveProduct,exports.InvolvedProductsList=o.InvolvedProductsList,exports.ProductDescription=o.ProductDescription,exports.ProductsList=o.ProductsList,exports.RemovePromotion=o.RemovePromotion,exports.UnarchiveProduct=o.UnarchiveProduct;
@@ -34,3 +34,39 @@ export interface SkuCharacteristic {
34
34
  definedType: boolean;
35
35
  characteristicValue: IMultiLang;
36
36
  }
37
+ export interface CommissionDto {
38
+ minCommission: number;
39
+ maxCommission: number;
40
+ }
41
+ export interface CharacteristicValue {
42
+ title: IMultiLang;
43
+ value: string;
44
+ skuValue: string;
45
+ wantToPhotoStudio: boolean | null;
46
+ }
47
+ export interface DefinedCharacteristic {
48
+ orderingNumber: number;
49
+ characteristicValues: CharacteristicValue[];
50
+ characteristicTitle: IMultiLang;
51
+ characteristicId: number | null;
52
+ defined: boolean;
53
+ requiredType?: string;
54
+ }
55
+ export interface FilterValue {
56
+ id: number;
57
+ value: string;
58
+ title: string;
59
+ predefined: boolean;
60
+ isApproved: boolean | null;
61
+ }
62
+ export interface Filter {
63
+ id: number;
64
+ title: string;
65
+ description: string | null;
66
+ extendableValues: boolean;
67
+ required: boolean;
68
+ values: FilterValue[];
69
+ emptyValue: FilterValue;
70
+ maxLength: number | null;
71
+ brandFilter: boolean;
72
+ }
@@ -1 +1 @@
1
- "use strict";var o=require("./products/api.js");exports.AddPromotion=o.AddPromotion,exports.ArchiveProduct=o.ArchiveProduct,exports.ProductsList=o.ProductsList,exports.RemovePromotion=o.RemovePromotion,exports.UnarchiveProduct=o.UnarchiveProduct;
1
+ "use strict";var o=require("./products/api.js");exports.AddPromotion=o.AddPromotion,exports.ArchiveProduct=o.ArchiveProduct,exports.InvolvedProductsList=o.InvolvedProductsList,exports.ProductDescription=o.ProductDescription,exports.ProductsList=o.ProductsList,exports.RemovePromotion=o.RemovePromotion,exports.UnarchiveProduct=o.UnarchiveProduct;
@@ -1,8 +1,10 @@
1
1
  import * as Types from "./types";
2
2
  import * as Params from "./params";
3
3
  import { CallerParam, CallerParamPayload } from "@/common/types";
4
- export declare const ArchiveProduct: CallerParam<Params.SkuIdBasedParams>;
5
- export declare const UnarchiveProduct: CallerParam<Params.SkuIdBasedParams>;
6
- export declare const ProductsList: CallerParam<Params.ProductListParams>;
4
+ export declare const ArchiveProduct: CallerParam<Params.SkuIdBasedParams, Types.IApi.ArchiveProduct.Response>;
5
+ export declare const UnarchiveProduct: CallerParam<Params.SkuIdBasedParams, Types.IApi.UnarchiveProduct.Response>;
6
+ export declare const ProductsList: CallerParam<Params.ProductListParams, Types.IApi.ProductsList.Response>;
7
7
  export declare const RemovePromotion: CallerParamPayload<Params.TokenAndShopId, Types.IApi.RemovePromotion.Request>;
8
8
  export declare const AddPromotion: CallerParamPayload<Params.TokenAndShopId, Types.IApi.AddPromotion.Request>;
9
+ export declare const InvolvedProductsList: CallerParam<Params.InvolvedProductsParams>;
10
+ export declare const ProductDescription: CallerParam<Params.ProductIdBasedParams, Types.IApi.ProductDescription.Response>;
@@ -1 +1 @@
1
- "use strict";var e=require("../../common/utils.js"),s=require("./mappers.js");exports.AddPromotion=(s,r,t)=>s.post(`/seller/shop/${r.shopId}/marketing/calendar-event/add`,t,{headers:e.pasteAuthHeader(r.token)}),exports.ArchiveProduct=(s,{token:r,shopId:t,skuId:o})=>s.post(`/seller/shop/${t}/product/sku/${o}/archive`,null,{headers:e.pasteAuthHeader(r)}),exports.ProductsList=async(r,t)=>await r.get(`/seller/shop/${t.shopId}/product/getProducts`,{params:s.ProductListParamsMapper(t),headers:e.pasteAuthHeader(t.token)}),exports.RemovePromotion=(s,r,t)=>s.post(`/seller/shop/${r.shopId}/marketing/calendar-event/remove`,t,{headers:e.pasteAuthHeader(r.token)}),exports.UnarchiveProduct=(s,{token:r,shopId:t,skuId:o})=>s.post(`/seller/shop/${t}/product/sku/${o}/archive/restore`,null,{headers:e.pasteAuthHeader(r)});
1
+ "use strict";var e=require("../../common/utils.js"),s=require("./mappers.js");exports.AddPromotion=(s,r,t)=>s.post(`/seller/shop/${r.shopId}/marketing/calendar-event/add`,t,{headers:e.pasteAuthHeader(r.token)}),exports.ArchiveProduct=(s,{token:r,shopId:t,skuId:o})=>s.post(`/seller/shop/${t}/product/sku/${o}/archive`,null,{headers:e.pasteAuthHeader(r)}),exports.InvolvedProductsList=async(s,r)=>s.get(`/seller/shop/${r.shopId}/marketing/calendar-event/products-involved`,{params:{eventId:r.eventId,page:r.page,size:r.size},headers:e.pasteAuthHeader(r.token)}),exports.ProductDescription=async(s,r)=>s.get(`/seller/shop/${r.shopId}/product/${r.productId}/description-response`,{headers:e.pasteAuthHeader(r.token)}),exports.ProductsList=async(r,t)=>await r.get(`/seller/shop/${t.shopId}/product/getProducts`,{params:s.ProductListParamsMapper(t),headers:e.pasteAuthHeader(t.token)}),exports.RemovePromotion=(s,r,t)=>s.post(`/seller/shop/${r.shopId}/marketing/calendar-event/remove`,t,{headers:e.pasteAuthHeader(r.token)}),exports.UnarchiveProduct=(s,{token:r,shopId:t,skuId:o})=>s.post(`/seller/shop/${t}/product/sku/${o}/archive/restore`,null,{headers:e.pasteAuthHeader(r)});
@@ -1 +1 @@
1
- "use strict";var o=require("./api.js");exports.AddPromotion=o.AddPromotion,exports.ArchiveProduct=o.ArchiveProduct,exports.ProductsList=o.ProductsList,exports.RemovePromotion=o.RemovePromotion,exports.UnarchiveProduct=o.UnarchiveProduct;
1
+ "use strict";var o=require("./api.js");exports.AddPromotion=o.AddPromotion,exports.ArchiveProduct=o.ArchiveProduct,exports.InvolvedProductsList=o.InvolvedProductsList,exports.ProductDescription=o.ProductDescription,exports.ProductsList=o.ProductsList,exports.RemovePromotion=o.RemovePromotion,exports.UnarchiveProduct=o.UnarchiveProduct;
@@ -2,14 +2,22 @@ export interface TokenAndShopId {
2
2
  token: string;
3
3
  shopId: number;
4
4
  }
5
- export interface SkuIdBasedParams extends TokenAndShopId {
6
- skuId: number;
5
+ export interface ProductIdBasedParams extends TokenAndShopId {
6
+ productId: number;
7
7
  }
8
- export interface ProductListParams extends TokenAndShopId {
8
+ export interface CorePaginationParams {
9
9
  page: number;
10
10
  size: number;
11
+ }
12
+ export interface SkuIdBasedParams extends TokenAndShopId {
13
+ skuId: number;
14
+ }
15
+ export type ProductListParams = TokenAndShopId & CorePaginationParams & {
11
16
  searchQuery?: string;
12
17
  filter: "ALL" & (string & {});
13
18
  sortBy: "id" & (string & {});
14
19
  order: "ascending" | "descending";
15
- }
20
+ };
21
+ export type InvolvedProductsParams = TokenAndShopId & CorePaginationParams & {
22
+ eventId: number;
23
+ };
@@ -1,4 +1,6 @@
1
- import { UzumMarketEntity } from "@/modules/uzum-market/core/types";
1
+ import { IMultiLang } from "@/common/interfaces";
2
+ import { CommissionDto, DefinedCharacteristic, Filter, Status } from "@/modules/uzum-market/common/interfaces";
3
+ import { UzumMarketEntity } from "../types";
2
4
  export declare namespace IApi {
3
5
  namespace ArchiveProduct {
4
6
  type Response = UzumMarketEntity.SkuCore;
@@ -24,4 +26,21 @@ export declare namespace IApi {
24
26
  products: UzumMarketEntity.PromotionProduct[];
25
27
  }
26
28
  }
29
+ namespace ProductDescription {
30
+ interface Response {
31
+ id: number;
32
+ shopSkuTitle: string;
33
+ title: IMultiLang;
34
+ productSkuTitle: string;
35
+ commission: number;
36
+ commissionDto: CommissionDto;
37
+ hasCustomCharacteristics: boolean;
38
+ definedCharacteristicList: DefinedCharacteristic[];
39
+ customCharacteristicList: DefinedCharacteristic[];
40
+ skuList: UzumMarketEntity.FilledSkuItem[];
41
+ filters: Filter[];
42
+ newYearStatus: Status;
43
+ hasActiveCalendarEvents: boolean;
44
+ }
45
+ }
27
46
  }
@@ -16,6 +16,13 @@ export declare namespace UzumMarketEntity {
16
16
  status: StatusValue;
17
17
  commission: number;
18
18
  }
19
+ interface FilledSkuItem extends SkuCore {
20
+ dimensions: Dimensions;
21
+ article: string | null;
22
+ switchbackActive: boolean;
23
+ marketPrice: number;
24
+ blockReasons: unknown[];
25
+ }
19
26
  interface SkuWithDetails extends SkuCore {
20
27
  dimensions: Dimensions;
21
28
  article: StringNullable;
@@ -1 +1 @@
1
- "use strict";var o=require("./core/products/api.js");exports.AddPromotion=o.AddPromotion,exports.ArchiveProduct=o.ArchiveProduct,exports.ProductsList=o.ProductsList,exports.RemovePromotion=o.RemovePromotion,exports.UnarchiveProduct=o.UnarchiveProduct;
1
+ "use strict";var o=require("./core/products/api.js");exports.AddPromotion=o.AddPromotion,exports.ArchiveProduct=o.ArchiveProduct,exports.InvolvedProductsList=o.InvolvedProductsList,exports.ProductDescription=o.ProductDescription,exports.ProductsList=o.ProductsList,exports.RemovePromotion=o.RemovePromotion,exports.UnarchiveProduct=o.UnarchiveProduct;
package/lib/esm/index.js CHANGED
@@ -1 +1 @@
1
- export{AddPromotion,ArchiveProduct,ProductsList,RemovePromotion,UnarchiveProduct}from"./modules/uzum-market/core/products/api.js";
1
+ export{AddPromotion,ArchiveProduct,InvolvedProductsList,ProductDescription,ProductsList,RemovePromotion,UnarchiveProduct}from"./modules/uzum-market/core/products/api.js";
@@ -1 +1 @@
1
- export{AddPromotion,ArchiveProduct,ProductsList,RemovePromotion,UnarchiveProduct}from"./uzum-market/core/products/api.js";
1
+ export{AddPromotion,ArchiveProduct,InvolvedProductsList,ProductDescription,ProductsList,RemovePromotion,UnarchiveProduct}from"./uzum-market/core/products/api.js";
@@ -34,3 +34,39 @@ export interface SkuCharacteristic {
34
34
  definedType: boolean;
35
35
  characteristicValue: IMultiLang;
36
36
  }
37
+ export interface CommissionDto {
38
+ minCommission: number;
39
+ maxCommission: number;
40
+ }
41
+ export interface CharacteristicValue {
42
+ title: IMultiLang;
43
+ value: string;
44
+ skuValue: string;
45
+ wantToPhotoStudio: boolean | null;
46
+ }
47
+ export interface DefinedCharacteristic {
48
+ orderingNumber: number;
49
+ characteristicValues: CharacteristicValue[];
50
+ characteristicTitle: IMultiLang;
51
+ characteristicId: number | null;
52
+ defined: boolean;
53
+ requiredType?: string;
54
+ }
55
+ export interface FilterValue {
56
+ id: number;
57
+ value: string;
58
+ title: string;
59
+ predefined: boolean;
60
+ isApproved: boolean | null;
61
+ }
62
+ export interface Filter {
63
+ id: number;
64
+ title: string;
65
+ description: string | null;
66
+ extendableValues: boolean;
67
+ required: boolean;
68
+ values: FilterValue[];
69
+ emptyValue: FilterValue;
70
+ maxLength: number | null;
71
+ brandFilter: boolean;
72
+ }
@@ -1 +1 @@
1
- export{AddPromotion,ArchiveProduct,ProductsList,RemovePromotion,UnarchiveProduct}from"./products/api.js";
1
+ export{AddPromotion,ArchiveProduct,InvolvedProductsList,ProductDescription,ProductsList,RemovePromotion,UnarchiveProduct}from"./products/api.js";
@@ -1,8 +1,10 @@
1
1
  import * as Types from "./types";
2
2
  import * as Params from "./params";
3
3
  import { CallerParam, CallerParamPayload } from "@/common/types";
4
- export declare const ArchiveProduct: CallerParam<Params.SkuIdBasedParams>;
5
- export declare const UnarchiveProduct: CallerParam<Params.SkuIdBasedParams>;
6
- export declare const ProductsList: CallerParam<Params.ProductListParams>;
4
+ export declare const ArchiveProduct: CallerParam<Params.SkuIdBasedParams, Types.IApi.ArchiveProduct.Response>;
5
+ export declare const UnarchiveProduct: CallerParam<Params.SkuIdBasedParams, Types.IApi.UnarchiveProduct.Response>;
6
+ export declare const ProductsList: CallerParam<Params.ProductListParams, Types.IApi.ProductsList.Response>;
7
7
  export declare const RemovePromotion: CallerParamPayload<Params.TokenAndShopId, Types.IApi.RemovePromotion.Request>;
8
8
  export declare const AddPromotion: CallerParamPayload<Params.TokenAndShopId, Types.IApi.AddPromotion.Request>;
9
+ export declare const InvolvedProductsList: CallerParam<Params.InvolvedProductsParams>;
10
+ export declare const ProductDescription: CallerParam<Params.ProductIdBasedParams, Types.IApi.ProductDescription.Response>;
@@ -1 +1 @@
1
- import{pasteAuthHeader as e}from"../../common/utils.js";import{ProductListParamsMapper as s}from"./mappers.js";const o=(s,{token:o,shopId:r,skuId:t})=>s.post(`/seller/shop/${r}/product/sku/${t}/archive`,null,{headers:e(o)}),r=(s,{token:o,shopId:r,skuId:t})=>s.post(`/seller/shop/${r}/product/sku/${t}/archive/restore`,null,{headers:e(o)}),t=async(o,r)=>await o.get(`/seller/shop/${r.shopId}/product/getProducts`,{params:s(r),headers:e(r.token)}),p=(s,o,r)=>s.post(`/seller/shop/${o.shopId}/marketing/calendar-event/remove`,r,{headers:e(o.token)}),a=(s,o,r)=>s.post(`/seller/shop/${o.shopId}/marketing/calendar-event/add`,r,{headers:e(o.token)});export{a as AddPromotion,o as ArchiveProduct,t as ProductsList,p as RemovePromotion,r as UnarchiveProduct};
1
+ import{pasteAuthHeader as e}from"../../common/utils.js";import{ProductListParamsMapper as s}from"./mappers.js";const o=(s,{token:o,shopId:r,skuId:t})=>s.post(`/seller/shop/${r}/product/sku/${t}/archive`,null,{headers:e(o)}),r=(s,{token:o,shopId:r,skuId:t})=>s.post(`/seller/shop/${r}/product/sku/${t}/archive/restore`,null,{headers:e(o)}),t=async(o,r)=>await o.get(`/seller/shop/${r.shopId}/product/getProducts`,{params:s(r),headers:e(r.token)}),p=(s,o,r)=>s.post(`/seller/shop/${o.shopId}/marketing/calendar-event/remove`,r,{headers:e(o.token)}),d=(s,o,r)=>s.post(`/seller/shop/${o.shopId}/marketing/calendar-event/add`,r,{headers:e(o.token)}),a=async(s,o)=>s.get(`/seller/shop/${o.shopId}/marketing/calendar-event/products-involved`,{params:{eventId:o.eventId,page:o.page,size:o.size},headers:e(o.token)}),n=async(s,o)=>s.get(`/seller/shop/${o.shopId}/product/${o.productId}/description-response`,{headers:e(o.token)});export{d as AddPromotion,o as ArchiveProduct,a as InvolvedProductsList,n as ProductDescription,t as ProductsList,p as RemovePromotion,r as UnarchiveProduct};
@@ -1 +1 @@
1
- export{AddPromotion,ArchiveProduct,ProductsList,RemovePromotion,UnarchiveProduct}from"./api.js";
1
+ export{AddPromotion,ArchiveProduct,InvolvedProductsList,ProductDescription,ProductsList,RemovePromotion,UnarchiveProduct}from"./api.js";
@@ -2,14 +2,22 @@ export interface TokenAndShopId {
2
2
  token: string;
3
3
  shopId: number;
4
4
  }
5
- export interface SkuIdBasedParams extends TokenAndShopId {
6
- skuId: number;
5
+ export interface ProductIdBasedParams extends TokenAndShopId {
6
+ productId: number;
7
7
  }
8
- export interface ProductListParams extends TokenAndShopId {
8
+ export interface CorePaginationParams {
9
9
  page: number;
10
10
  size: number;
11
+ }
12
+ export interface SkuIdBasedParams extends TokenAndShopId {
13
+ skuId: number;
14
+ }
15
+ export type ProductListParams = TokenAndShopId & CorePaginationParams & {
11
16
  searchQuery?: string;
12
17
  filter: "ALL" & (string & {});
13
18
  sortBy: "id" & (string & {});
14
19
  order: "ascending" | "descending";
15
- }
20
+ };
21
+ export type InvolvedProductsParams = TokenAndShopId & CorePaginationParams & {
22
+ eventId: number;
23
+ };
@@ -1,4 +1,6 @@
1
- import { UzumMarketEntity } from "@/modules/uzum-market/core/types";
1
+ import { IMultiLang } from "@/common/interfaces";
2
+ import { CommissionDto, DefinedCharacteristic, Filter, Status } from "@/modules/uzum-market/common/interfaces";
3
+ import { UzumMarketEntity } from "../types";
2
4
  export declare namespace IApi {
3
5
  namespace ArchiveProduct {
4
6
  type Response = UzumMarketEntity.SkuCore;
@@ -24,4 +26,21 @@ export declare namespace IApi {
24
26
  products: UzumMarketEntity.PromotionProduct[];
25
27
  }
26
28
  }
29
+ namespace ProductDescription {
30
+ interface Response {
31
+ id: number;
32
+ shopSkuTitle: string;
33
+ title: IMultiLang;
34
+ productSkuTitle: string;
35
+ commission: number;
36
+ commissionDto: CommissionDto;
37
+ hasCustomCharacteristics: boolean;
38
+ definedCharacteristicList: DefinedCharacteristic[];
39
+ customCharacteristicList: DefinedCharacteristic[];
40
+ skuList: UzumMarketEntity.FilledSkuItem[];
41
+ filters: Filter[];
42
+ newYearStatus: Status;
43
+ hasActiveCalendarEvents: boolean;
44
+ }
45
+ }
27
46
  }
@@ -16,6 +16,13 @@ export declare namespace UzumMarketEntity {
16
16
  status: StatusValue;
17
17
  commission: number;
18
18
  }
19
+ interface FilledSkuItem extends SkuCore {
20
+ dimensions: Dimensions;
21
+ article: string | null;
22
+ switchbackActive: boolean;
23
+ marketPrice: number;
24
+ blockReasons: unknown[];
25
+ }
19
26
  interface SkuWithDetails extends SkuCore {
20
27
  dimensions: Dimensions;
21
28
  article: StringNullable;
@@ -1 +1 @@
1
- export{AddPromotion,ArchiveProduct,ProductsList,RemovePromotion,UnarchiveProduct}from"./core/products/api.js";
1
+ export{AddPromotion,ArchiveProduct,InvolvedProductsList,ProductDescription,ProductsList,RemovePromotion,UnarchiveProduct}from"./core/products/api.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plaza-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "outputDir": "./lib",
5
5
  "exports": {
6
6
  "import": {