plaza-sdk 1.0.4 → 1.1.1
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.
- package/README.md +49 -1
- package/lib/cjs/common/params.js +1 -0
- package/lib/cjs/modules/alif-shop-api/common/interfaces.js +1 -0
- package/lib/cjs/modules/alif-shop-api/common/types.js +1 -0
- package/lib/cjs/modules/alif-shop-api/common/utils.js +1 -0
- package/lib/cjs/modules/alif-shop-api/core/auth/api.js +1 -0
- package/lib/cjs/modules/alif-shop-api/core/auth/index.js +1 -0
- package/lib/cjs/modules/alif-shop-api/core/auth/types.js +1 -0
- package/lib/cjs/modules/alif-shop-api/core/index.js +1 -0
- package/lib/cjs/modules/alif-shop-api/index.js +1 -0
- package/lib/cjs/modules/uzum-market-api/core/index.js +1 -1
- package/lib/esm/common/params.js +1 -0
- package/lib/esm/modules/alif-shop-api/common/interfaces.js +1 -0
- package/lib/esm/modules/alif-shop-api/common/types.js +1 -0
- package/lib/esm/modules/alif-shop-api/common/utils.js +1 -0
- package/lib/esm/modules/alif-shop-api/core/auth/api.js +1 -0
- package/lib/esm/modules/alif-shop-api/core/auth/index.js +1 -0
- package/lib/esm/modules/alif-shop-api/core/auth/types.js +1 -0
- package/lib/esm/modules/alif-shop-api/core/index.js +1 -0
- package/lib/esm/modules/alif-shop-api/index.js +1 -0
- package/lib/esm/modules/uzum-market-api/core/index.js +1 -1
- package/lib/types/src/common/constants.d.ts +2 -0
- package/lib/types/src/common/enums.d.ts +2 -0
- package/lib/types/src/common/index.d.ts +5 -0
- package/lib/types/src/common/interfaces.d.ts +10 -0
- package/lib/types/src/common/params.d.ts +6 -0
- package/lib/types/src/common/types.d.ts +11 -0
- package/lib/types/src/common/utils.d.ts +3 -0
- package/lib/types/src/index.d.ts +5 -0
- package/lib/types/src/modules/alif-shop-api/common/interfaces.d.ts +2 -0
- package/lib/types/src/modules/alif-shop-api/common/types.d.ts +2 -0
- package/lib/types/src/modules/alif-shop-api/common/utils.d.ts +2 -0
- package/lib/types/src/modules/alif-shop-api/core/auth/api.d.ts +8 -0
- package/lib/types/src/modules/alif-shop-api/core/auth/index.d.ts +5 -0
- package/lib/types/src/modules/alif-shop-api/core/auth/types.d.ts +16 -0
- package/lib/types/src/modules/alif-shop-api/core/index.d.ts +5 -0
- package/lib/types/src/modules/alif-shop-api/index.d.ts +5 -0
- package/lib/types/src/modules/index.d.ts +14 -0
- package/lib/{cjs → types/src}/modules/uzum-market-api/common/interfaces.d.ts +25 -21
- package/lib/types/src/modules/uzum-market-api/common/types.d.ts +3 -0
- package/lib/types/src/modules/uzum-market-api/common/utils.d.ts +5 -0
- package/lib/types/src/modules/uzum-market-api/core/auth/api.d.ts +10 -0
- package/lib/{cjs → types/src}/modules/uzum-market-api/core/auth/enums.d.ts +3 -1
- package/lib/types/src/modules/uzum-market-api/core/auth/index.d.ts +6 -0
- package/lib/types/src/modules/uzum-market-api/core/auth/params.d.ts +2 -0
- package/lib/{cjs → types/src}/modules/uzum-market-api/core/auth/types.d.ts +6 -3
- package/lib/types/src/modules/uzum-market-api/core/index.d.ts +13 -0
- package/lib/types/src/modules/uzum-market-api/core/products/api.d.ts +24 -0
- package/lib/types/src/modules/uzum-market-api/core/products/index.d.ts +9 -0
- package/lib/types/src/modules/uzum-market-api/core/products/mappers.d.ts +12 -0
- package/lib/types/src/modules/uzum-market-api/core/products/params.d.ts +28 -0
- package/lib/{esm → types/src}/modules/uzum-market-api/core/products/types.d.ts +10 -2
- package/lib/{cjs → types/src}/modules/uzum-market-api/core/types.d.ts +9 -4
- package/lib/types/src/modules/uzum-market-api/index.d.ts +14 -0
- package/package.json +19 -13
- package/lib/cjs/common/index.d.ts +0 -3
- package/lib/cjs/common/interfaces.d.ts +0 -8
- package/lib/cjs/common/types.d.ts +0 -8
- package/lib/cjs/common/utils.d.ts +0 -1
- package/lib/cjs/index.d.ts +0 -1
- package/lib/cjs/modules/index.d.ts +0 -1
- package/lib/cjs/modules/uzum-market-api/common/types.d.ts +0 -1
- package/lib/cjs/modules/uzum-market-api/common/utils.d.ts +0 -3
- package/lib/cjs/modules/uzum-market-api/core/auth/api.d.ts +0 -5
- package/lib/cjs/modules/uzum-market-api/core/auth/index.d.ts +0 -1
- package/lib/cjs/modules/uzum-market-api/core/auth/params.d.ts +0 -4
- package/lib/cjs/modules/uzum-market-api/core/index.d.ts +0 -1
- package/lib/cjs/modules/uzum-market-api/core/products/api.d.ts +0 -16
- package/lib/cjs/modules/uzum-market-api/core/products/index.d.ts +0 -1
- package/lib/cjs/modules/uzum-market-api/core/products/mappers.d.ts +0 -9
- package/lib/cjs/modules/uzum-market-api/core/products/params.d.ts +0 -26
- package/lib/cjs/modules/uzum-market-api/core/products/types.d.ts +0 -37
- package/lib/cjs/modules/uzum-market-api/index.d.ts +0 -3
- package/lib/esm/common/index.d.ts +0 -3
- package/lib/esm/common/interfaces.d.ts +0 -8
- package/lib/esm/common/types.d.ts +0 -8
- package/lib/esm/common/utils.d.ts +0 -1
- package/lib/esm/index.d.ts +0 -1
- package/lib/esm/modules/index.d.ts +0 -1
- package/lib/esm/modules/uzum-market-api/common/interfaces.d.ts +0 -108
- package/lib/esm/modules/uzum-market-api/common/types.d.ts +0 -1
- package/lib/esm/modules/uzum-market-api/common/utils.d.ts +0 -3
- package/lib/esm/modules/uzum-market-api/core/auth/api.d.ts +0 -5
- package/lib/esm/modules/uzum-market-api/core/auth/enums.d.ts +0 -6
- package/lib/esm/modules/uzum-market-api/core/auth/index.d.ts +0 -1
- package/lib/esm/modules/uzum-market-api/core/auth/params.d.ts +0 -4
- package/lib/esm/modules/uzum-market-api/core/auth/types.d.ts +0 -42
- package/lib/esm/modules/uzum-market-api/core/index.d.ts +0 -1
- package/lib/esm/modules/uzum-market-api/core/products/api.d.ts +0 -16
- package/lib/esm/modules/uzum-market-api/core/products/index.d.ts +0 -1
- package/lib/esm/modules/uzum-market-api/core/products/mappers.d.ts +0 -9
- package/lib/esm/modules/uzum-market-api/core/products/params.d.ts +0 -26
- package/lib/esm/modules/uzum-market-api/core/types.d.ts +0 -220
- package/lib/esm/modules/uzum-market-api/index.d.ts +0 -3
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import { NumberNullable, StringNullable } from "@/common/types";
|
|
2
|
-
import { Category, ColorImage, Commission, DefinedCharacteristic, DimensionalGroup, Dimensions, Filter, ProductFilterValue, ProductMedia, PromotionSku, RankInfo, RatingInfo, SkuCharacteristic, Status, StatusValue } from "../common/interfaces";
|
|
3
|
-
import { IMultiLang, IMultiLangArray } from "@/common/interfaces";
|
|
4
|
-
export declare namespace UzumMarketEntity {
|
|
5
|
-
interface SkuCore {
|
|
6
|
-
id: number;
|
|
7
|
-
skuTitle: string;
|
|
8
|
-
quantityCreated: number;
|
|
9
|
-
fullPrice: number;
|
|
10
|
-
sellPrice: number;
|
|
11
|
-
barcode: string;
|
|
12
|
-
ikpu: string;
|
|
13
|
-
skuCharacteristicList: SkuCharacteristic[];
|
|
14
|
-
isActive: boolean;
|
|
15
|
-
canEdit: boolean;
|
|
16
|
-
blocked: boolean;
|
|
17
|
-
status: StatusValue;
|
|
18
|
-
commission: number;
|
|
19
|
-
}
|
|
20
|
-
interface FilledSkuItem extends SkuCore {
|
|
21
|
-
dimensions: Dimensions;
|
|
22
|
-
article: StringNullable;
|
|
23
|
-
switchbackActive: boolean;
|
|
24
|
-
marketPrice: number;
|
|
25
|
-
blockReasons: unknown[];
|
|
26
|
-
}
|
|
27
|
-
interface SkuWithDetails extends SkuCore {
|
|
28
|
-
dimensions: Dimensions;
|
|
29
|
-
article: StringNullable;
|
|
30
|
-
switchbackActive: boolean;
|
|
31
|
-
marketPrice: number;
|
|
32
|
-
blockReasons: unknown[];
|
|
33
|
-
}
|
|
34
|
-
interface PromotionProduct {
|
|
35
|
-
productId: number;
|
|
36
|
-
skus: PromotionSku[];
|
|
37
|
-
}
|
|
38
|
-
interface ProductQuantity {
|
|
39
|
-
quantityCreated: number;
|
|
40
|
-
quantityActive: number;
|
|
41
|
-
quantityFbs: number;
|
|
42
|
-
quantityAdditional: number;
|
|
43
|
-
quantityOnPhotoStudio: number;
|
|
44
|
-
quantityArchived?: number;
|
|
45
|
-
quantitySold: number;
|
|
46
|
-
quantityReturned: number;
|
|
47
|
-
quantityMissing: number;
|
|
48
|
-
quantityDefected: number;
|
|
49
|
-
quantityPending: number;
|
|
50
|
-
returnedPercentage: number;
|
|
51
|
-
pstorage: boolean;
|
|
52
|
-
}
|
|
53
|
-
interface SkuWithCardDetails {
|
|
54
|
-
skuTitle: string;
|
|
55
|
-
productTitle: string;
|
|
56
|
-
skuFullTitle: string;
|
|
57
|
-
archived: boolean;
|
|
58
|
-
characteristics: string;
|
|
59
|
-
previewImage: string;
|
|
60
|
-
ikpu: string;
|
|
61
|
-
recommendedTotalPrice: NumberNullable;
|
|
62
|
-
blockingReason: StringNullable;
|
|
63
|
-
blockReasons: string[];
|
|
64
|
-
skuBlockReason: StringNullable;
|
|
65
|
-
blocked: boolean;
|
|
66
|
-
rankInfo: RankInfo;
|
|
67
|
-
article: unknown;
|
|
68
|
-
paidStorageDimensionalGroup: StringNullable;
|
|
69
|
-
actualDimensionalGroup: DimensionalGroup | null;
|
|
70
|
-
hasStudioPhoto: unknown;
|
|
71
|
-
forecastOutOfStock: boolean;
|
|
72
|
-
activeSale: boolean;
|
|
73
|
-
switchbackActive: boolean;
|
|
74
|
-
marketPrice: number;
|
|
75
|
-
characteristicsList: SkuCharacteristic[];
|
|
76
|
-
status: StatusValue;
|
|
77
|
-
skuDimension: Dimensions;
|
|
78
|
-
}
|
|
79
|
-
interface CreatableSku extends SkuWithCardDetails {
|
|
80
|
-
quantityArchived: number;
|
|
81
|
-
quantityMissing: number;
|
|
82
|
-
returnedPercentage: number;
|
|
83
|
-
}
|
|
84
|
-
type SkuWithQuantities = SkuWithCardDetails & Required<ProductQuantity> & {
|
|
85
|
-
skuId: number;
|
|
86
|
-
barcode: number;
|
|
87
|
-
commission: NumberNullable;
|
|
88
|
-
purchasePrice: NumberNullable;
|
|
89
|
-
price: number;
|
|
90
|
-
turnover: StringNullable;
|
|
91
|
-
dimensionalGroup: StringNullable;
|
|
92
|
-
paidStoragePriceItem: StringNullable;
|
|
93
|
-
paidStorageAmount: StringNullable;
|
|
94
|
-
avgdsales: NumberNullable;
|
|
95
|
-
avgdquantity: NumberNullable;
|
|
96
|
-
};
|
|
97
|
-
interface ProductItem extends ProductQuantity {
|
|
98
|
-
productId: number;
|
|
99
|
-
category: string;
|
|
100
|
-
rating: string;
|
|
101
|
-
commission: NumberNullable;
|
|
102
|
-
status: Status;
|
|
103
|
-
skuList: SkuWithQuantities[];
|
|
104
|
-
skuTitle: string;
|
|
105
|
-
image: string;
|
|
106
|
-
title: string;
|
|
107
|
-
price: number;
|
|
108
|
-
clicks: NumberNullable;
|
|
109
|
-
viewers: number;
|
|
110
|
-
conversion: number;
|
|
111
|
-
blockReason: StringNullable;
|
|
112
|
-
blockComment: StringNullable;
|
|
113
|
-
dateModerated: StringNullable;
|
|
114
|
-
auctionMember: boolean;
|
|
115
|
-
isActive: boolean;
|
|
116
|
-
}
|
|
117
|
-
interface CreatableProduct {
|
|
118
|
-
attributes: IMultiLangArray;
|
|
119
|
-
blockReason: string;
|
|
120
|
-
blockReasons: string[];
|
|
121
|
-
blockComment: string;
|
|
122
|
-
blockedImages: Record<string, unknown>;
|
|
123
|
-
categoryId: number;
|
|
124
|
-
categoryEditable: boolean;
|
|
125
|
-
allFiltersFilled: boolean;
|
|
126
|
-
colorImages: ColorImage[];
|
|
127
|
-
colorCollectionImages: unknown[];
|
|
128
|
-
colorVideos: unknown[];
|
|
129
|
-
comments: Comment[];
|
|
130
|
-
customCharacteristics: unknown[];
|
|
131
|
-
dateModerated: StringNullable;
|
|
132
|
-
definedCharacteristics: DefinedCharacteristic[];
|
|
133
|
-
description: IMultiLang;
|
|
134
|
-
filterValues: ProductFilterValue[];
|
|
135
|
-
filters: unknown[];
|
|
136
|
-
imageCollection: unknown | null;
|
|
137
|
-
okpd2: unknown | null;
|
|
138
|
-
hasAnySkuBlocked: boolean;
|
|
139
|
-
photoOnPreview: boolean;
|
|
140
|
-
productFields: Record<string, unknown>;
|
|
141
|
-
productImages: ProductMedia[];
|
|
142
|
-
productCertificates: unknown[];
|
|
143
|
-
ratingInfo: unknown | null;
|
|
144
|
-
shortDescription: IMultiLang;
|
|
145
|
-
skuBlockReason: unknown | null;
|
|
146
|
-
title: IMultiLang;
|
|
147
|
-
video: ProductMedia | null;
|
|
148
|
-
skuList: UzumMarketEntity.CreatableSku[];
|
|
149
|
-
switchbackActive: boolean;
|
|
150
|
-
}
|
|
151
|
-
interface ProductDescriptionInfo {
|
|
152
|
-
id: number;
|
|
153
|
-
shopSkuTitle: string;
|
|
154
|
-
title: IMultiLang;
|
|
155
|
-
productSkuTitle: string;
|
|
156
|
-
commission: number;
|
|
157
|
-
commissionDto: Commission;
|
|
158
|
-
hasCustomCharacteristics: boolean;
|
|
159
|
-
definedCharacteristicList: DefinedCharacteristic[];
|
|
160
|
-
customCharacteristicList: unknown[];
|
|
161
|
-
skuList: UzumMarketEntity.FilledSkuItem[] | null;
|
|
162
|
-
filters: Filter[];
|
|
163
|
-
newYearStatus: StatusValue;
|
|
164
|
-
hasActiveCalendarEvents: boolean;
|
|
165
|
-
}
|
|
166
|
-
interface FullProductDetails {
|
|
167
|
-
title: IMultiLang;
|
|
168
|
-
productImages: ProductMedia[];
|
|
169
|
-
video: ProductMedia | null;
|
|
170
|
-
imageCollection: unknown | null;
|
|
171
|
-
colorImages: ColorImage[];
|
|
172
|
-
colorVideos: unknown[];
|
|
173
|
-
colorCollectionImages: unknown[];
|
|
174
|
-
status: Status;
|
|
175
|
-
moderationStatus: StatusValue & {
|
|
176
|
-
hasAnySkuBlocked: boolean;
|
|
177
|
-
};
|
|
178
|
-
commissionDto: Commission;
|
|
179
|
-
commission: null;
|
|
180
|
-
ratingInfo: RatingInfo;
|
|
181
|
-
category: Category;
|
|
182
|
-
skuTitle: string;
|
|
183
|
-
skuList: CreatableSku[];
|
|
184
|
-
definedCharacteristics: DefinedCharacteristic[];
|
|
185
|
-
customCharacteristics: DefinedCharacteristic[];
|
|
186
|
-
description: IMultiLang;
|
|
187
|
-
attributes: IMultiLangArray;
|
|
188
|
-
tags: IMultiLang[];
|
|
189
|
-
synonyms: [];
|
|
190
|
-
comments: Comment[];
|
|
191
|
-
filters: Filter[];
|
|
192
|
-
shortDescription: IMultiLang;
|
|
193
|
-
vat: string;
|
|
194
|
-
newYearStatus: StatusValue;
|
|
195
|
-
tnVedCode: unknown | null;
|
|
196
|
-
okpd2: unknown | null;
|
|
197
|
-
conversion: number;
|
|
198
|
-
rankInfo: RankInfo;
|
|
199
|
-
roi: Record<string, number>;
|
|
200
|
-
productFields: Record<string, unknown>;
|
|
201
|
-
applyWatermark: boolean;
|
|
202
|
-
moderationBlockReason: StringNullable;
|
|
203
|
-
blockReason: StringNullable;
|
|
204
|
-
blockComment: StringNullable;
|
|
205
|
-
dateModerated: null;
|
|
206
|
-
blockReasons: [];
|
|
207
|
-
skusHasAllRequiredFilters: true;
|
|
208
|
-
allFiltersFilled: boolean;
|
|
209
|
-
hasAnySkuBlocked: boolean;
|
|
210
|
-
wantToPhotoStudio: null;
|
|
211
|
-
isIlliquid: boolean;
|
|
212
|
-
customCharacteristicClosed: boolean;
|
|
213
|
-
productCertificates: unknown[];
|
|
214
|
-
switchbackActive: boolean;
|
|
215
|
-
promotionStatus: string;
|
|
216
|
-
categoryEditable: boolean;
|
|
217
|
-
keSeller: boolean;
|
|
218
|
-
pstorage: boolean;
|
|
219
|
-
}
|
|
220
|
-
}
|