@ikas/storefront 0.0.88 → 0.0.90
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/build/__generated__/global-types.d.ts +8 -12
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +215 -0
- package/build/api/customer/index.d.ts +2 -0
- package/build/api/index.d.ts +0 -1
- package/build/index.es.js +7057 -7167
- package/build/index.js +7109 -7221
- package/build/models/data/order/index.d.ts +18 -1
- package/build/models/data/order/line-item/index.d.ts +16 -0
- package/build/models/data/order/refund/index.d.ts +6 -0
- package/build/models/data/order/refund/refund-line-item/index.d.ts +5 -0
- package/build/utils/providers/prop-value/category.d.ts +2 -2
- package/package.json +1 -1
- package/build/api/product/__generated__/listProduct.d.ts +0 -92
- package/build/api/product/index.d.ts +0 -17
|
@@ -193,14 +193,6 @@ export declare enum ProductFilterTypeEnum {
|
|
|
193
193
|
TAG = "TAG",
|
|
194
194
|
VARIANT_TYPE = "VARIANT_TYPE"
|
|
195
195
|
}
|
|
196
|
-
/**
|
|
197
|
-
* Product Types
|
|
198
|
-
*/
|
|
199
|
-
export declare enum ProductTypeEnum {
|
|
200
|
-
DIGITAL = "DIGITAL",
|
|
201
|
-
MEMBERSHIP = "MEMBERSHIP",
|
|
202
|
-
PHYSICAL = "PHYSICAL"
|
|
203
|
-
}
|
|
204
196
|
/**
|
|
205
197
|
* Shipping Method Enum
|
|
206
198
|
*/
|
|
@@ -274,10 +266,6 @@ export interface CartLineVariantInput {
|
|
|
274
266
|
id?: string | null;
|
|
275
267
|
name?: string | null;
|
|
276
268
|
}
|
|
277
|
-
export interface CategoryFilterInput {
|
|
278
|
-
eq?: string | null;
|
|
279
|
-
in?: string[] | null;
|
|
280
|
-
}
|
|
281
269
|
export interface CheckStocksLineInput {
|
|
282
270
|
productId: string;
|
|
283
271
|
quantity: number;
|
|
@@ -382,6 +370,14 @@ export interface OrderAdjustmentInput {
|
|
|
382
370
|
order: number;
|
|
383
371
|
type: AdjustmentEnum;
|
|
384
372
|
}
|
|
373
|
+
export interface OrderRefundOrderLineInput {
|
|
374
|
+
orderLineItemId: string;
|
|
375
|
+
quantity: number;
|
|
376
|
+
}
|
|
377
|
+
export interface OrderRefundRequestInput {
|
|
378
|
+
orderId: string;
|
|
379
|
+
orderLineItems: OrderRefundOrderLineInput[];
|
|
380
|
+
}
|
|
385
381
|
export interface PaginationInput {
|
|
386
382
|
limit?: number | null;
|
|
387
383
|
page?: number | null;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { OrderRefundRequestInput, CancelledReasonEnum, AdjustmentEnum, AmountTypeEnum, OrderLineItemStatusEnum, OrderPackageFulfillStatusEnum, OrderPackageStatusEnum, PaymentStatusEnum, ShippingMethodEnum, OrderStatusEnum } from "../../../__generated__/global-types";
|
|
2
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_billingAddress_city {
|
|
3
|
+
__typename: "OrderAddressCity";
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_billingAddress_country {
|
|
9
|
+
__typename: "OrderAddressCountry";
|
|
10
|
+
name: string;
|
|
11
|
+
id: string | null;
|
|
12
|
+
code: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_billingAddress_district {
|
|
15
|
+
__typename: "OrderAddressDistrict";
|
|
16
|
+
name: string | null;
|
|
17
|
+
id: string | null;
|
|
18
|
+
code: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_billingAddress_state {
|
|
21
|
+
__typename: "OrderAddressState";
|
|
22
|
+
name: string | null;
|
|
23
|
+
id: string | null;
|
|
24
|
+
code: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_billingAddress {
|
|
27
|
+
__typename: "OrderAddress";
|
|
28
|
+
addressLine1: string;
|
|
29
|
+
addressLine2: string | null;
|
|
30
|
+
city: createOrderRefundRequest_createOrderRefundRequest_billingAddress_city;
|
|
31
|
+
company: string | null;
|
|
32
|
+
country: createOrderRefundRequest_createOrderRefundRequest_billingAddress_country;
|
|
33
|
+
district: createOrderRefundRequest_createOrderRefundRequest_billingAddress_district | null;
|
|
34
|
+
firstName: string;
|
|
35
|
+
identityNumber: string | null;
|
|
36
|
+
isDefault: boolean;
|
|
37
|
+
lastName: string;
|
|
38
|
+
phone: string | null;
|
|
39
|
+
postalCode: string;
|
|
40
|
+
state: createOrderRefundRequest_createOrderRefundRequest_billingAddress_state | null;
|
|
41
|
+
taxNumber: string | null;
|
|
42
|
+
taxOffice: string | null;
|
|
43
|
+
}
|
|
44
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_currencyRates {
|
|
45
|
+
__typename: "OrderCurrencyRate";
|
|
46
|
+
rate: number;
|
|
47
|
+
originalRate: number;
|
|
48
|
+
code: string;
|
|
49
|
+
}
|
|
50
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_customer {
|
|
51
|
+
__typename: "OrderCustomer";
|
|
52
|
+
lastName: string | null;
|
|
53
|
+
firstName: string | null;
|
|
54
|
+
email: string | null;
|
|
55
|
+
id: string | null;
|
|
56
|
+
}
|
|
57
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_orderAdjustments {
|
|
58
|
+
__typename: "OrderAdjustment";
|
|
59
|
+
type: AdjustmentEnum;
|
|
60
|
+
order: number;
|
|
61
|
+
name: string;
|
|
62
|
+
amountType: AmountTypeEnum;
|
|
63
|
+
amount: number;
|
|
64
|
+
}
|
|
65
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_orderLineItems_discount {
|
|
66
|
+
__typename: "OrderLineDiscount";
|
|
67
|
+
reason: string | null;
|
|
68
|
+
amountType: AmountTypeEnum;
|
|
69
|
+
amount: number;
|
|
70
|
+
}
|
|
71
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_orderLineItems_variant_variantValues {
|
|
72
|
+
__typename: "OrderLineVariantVariantValues";
|
|
73
|
+
variantValueName: string;
|
|
74
|
+
variantValueId: string;
|
|
75
|
+
variantTypeName: string;
|
|
76
|
+
variantTypeId: string;
|
|
77
|
+
order: number;
|
|
78
|
+
}
|
|
79
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_orderLineItems_variant {
|
|
80
|
+
__typename: "OrderLineVariant";
|
|
81
|
+
barcodeList: string[] | null;
|
|
82
|
+
id: string | null;
|
|
83
|
+
mainImageId: string | null;
|
|
84
|
+
name: string;
|
|
85
|
+
productId: string | null;
|
|
86
|
+
sku: string | null;
|
|
87
|
+
variantValues: createOrderRefundRequest_createOrderRefundRequest_orderLineItems_variant_variantValues[] | null;
|
|
88
|
+
}
|
|
89
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_orderLineItems {
|
|
90
|
+
__typename: "OrderLineItem";
|
|
91
|
+
createdAt: any | null;
|
|
92
|
+
currencyCode: string | null;
|
|
93
|
+
deleted: boolean | null;
|
|
94
|
+
discount: createOrderRefundRequest_createOrderRefundRequest_orderLineItems_discount | null;
|
|
95
|
+
discountPrice: number | null;
|
|
96
|
+
finalPrice: number | null;
|
|
97
|
+
id: string;
|
|
98
|
+
originalOrderLineItemId: string | null;
|
|
99
|
+
price: number;
|
|
100
|
+
quantity: number;
|
|
101
|
+
status: OrderLineItemStatusEnum;
|
|
102
|
+
statusUpdatedAt: any | null;
|
|
103
|
+
stockLocationId: string | null;
|
|
104
|
+
taxValue: number | null;
|
|
105
|
+
updatedAt: any | null;
|
|
106
|
+
variant: createOrderRefundRequest_createOrderRefundRequest_orderLineItems_variant;
|
|
107
|
+
}
|
|
108
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_orderPackages_trackingInfo {
|
|
109
|
+
__typename: "TrackingInfo";
|
|
110
|
+
trackingNumber: string | null;
|
|
111
|
+
trackingLink: string | null;
|
|
112
|
+
isSendNotification: boolean | null;
|
|
113
|
+
cargoCompany: string | null;
|
|
114
|
+
}
|
|
115
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_orderPackages {
|
|
116
|
+
__typename: "OrderPackage";
|
|
117
|
+
updatedAt: any | null;
|
|
118
|
+
trackingInfo: createOrderRefundRequest_createOrderRefundRequest_orderPackages_trackingInfo | null;
|
|
119
|
+
stockLocationId: string;
|
|
120
|
+
orderPackageNumber: string;
|
|
121
|
+
orderPackageFulfillStatus: OrderPackageFulfillStatusEnum;
|
|
122
|
+
orderLineItemIds: string[];
|
|
123
|
+
id: string;
|
|
124
|
+
deleted: boolean | null;
|
|
125
|
+
createdAt: any | null;
|
|
126
|
+
}
|
|
127
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_shippingAddress_state {
|
|
128
|
+
__typename: "OrderAddressState";
|
|
129
|
+
name: string | null;
|
|
130
|
+
id: string | null;
|
|
131
|
+
code: string | null;
|
|
132
|
+
}
|
|
133
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_shippingAddress_district {
|
|
134
|
+
__typename: "OrderAddressDistrict";
|
|
135
|
+
name: string | null;
|
|
136
|
+
id: string | null;
|
|
137
|
+
code: string | null;
|
|
138
|
+
}
|
|
139
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_shippingAddress_country {
|
|
140
|
+
__typename: "OrderAddressCountry";
|
|
141
|
+
name: string;
|
|
142
|
+
id: string | null;
|
|
143
|
+
code: string | null;
|
|
144
|
+
}
|
|
145
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_shippingAddress_city {
|
|
146
|
+
__typename: "OrderAddressCity";
|
|
147
|
+
id: string | null;
|
|
148
|
+
code: string | null;
|
|
149
|
+
name: string;
|
|
150
|
+
}
|
|
151
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_shippingAddress {
|
|
152
|
+
__typename: "OrderAddress";
|
|
153
|
+
taxOffice: string | null;
|
|
154
|
+
taxNumber: string | null;
|
|
155
|
+
state: createOrderRefundRequest_createOrderRefundRequest_shippingAddress_state | null;
|
|
156
|
+
postalCode: string;
|
|
157
|
+
phone: string | null;
|
|
158
|
+
lastName: string;
|
|
159
|
+
isDefault: boolean;
|
|
160
|
+
identityNumber: string | null;
|
|
161
|
+
firstName: string;
|
|
162
|
+
district: createOrderRefundRequest_createOrderRefundRequest_shippingAddress_district | null;
|
|
163
|
+
country: createOrderRefundRequest_createOrderRefundRequest_shippingAddress_country;
|
|
164
|
+
company: string | null;
|
|
165
|
+
city: createOrderRefundRequest_createOrderRefundRequest_shippingAddress_city;
|
|
166
|
+
addressLine2: string | null;
|
|
167
|
+
addressLine1: string;
|
|
168
|
+
}
|
|
169
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_shippingLines {
|
|
170
|
+
__typename: "OrderShippingLine";
|
|
171
|
+
title: string;
|
|
172
|
+
taxValue: number | null;
|
|
173
|
+
price: number;
|
|
174
|
+
}
|
|
175
|
+
export interface createOrderRefundRequest_createOrderRefundRequest_taxLines {
|
|
176
|
+
__typename: "OrderTaxLine";
|
|
177
|
+
rate: number;
|
|
178
|
+
price: number;
|
|
179
|
+
}
|
|
180
|
+
export interface createOrderRefundRequest_createOrderRefundRequest {
|
|
181
|
+
__typename: "Order";
|
|
182
|
+
billingAddress: createOrderRefundRequest_createOrderRefundRequest_billingAddress | null;
|
|
183
|
+
cancelledAt: any | null;
|
|
184
|
+
cancelReason: CancelledReasonEnum | null;
|
|
185
|
+
createdAt: any | null;
|
|
186
|
+
currencyCode: string;
|
|
187
|
+
currencyRates: createOrderRefundRequest_createOrderRefundRequest_currencyRates[];
|
|
188
|
+
customer: createOrderRefundRequest_createOrderRefundRequest_customer | null;
|
|
189
|
+
deleted: boolean | null;
|
|
190
|
+
id: string;
|
|
191
|
+
merchantId: string;
|
|
192
|
+
note: string | null;
|
|
193
|
+
orderedAt: any | null;
|
|
194
|
+
orderAdjustments: createOrderRefundRequest_createOrderRefundRequest_orderAdjustments[] | null;
|
|
195
|
+
orderLineItems: createOrderRefundRequest_createOrderRefundRequest_orderLineItems[];
|
|
196
|
+
orderNumber: string | null;
|
|
197
|
+
orderPackages: createOrderRefundRequest_createOrderRefundRequest_orderPackages[] | null;
|
|
198
|
+
orderPackageStatus: OrderPackageStatusEnum | null;
|
|
199
|
+
orderPaymentStatus: PaymentStatusEnum | null;
|
|
200
|
+
orderTagIds: string[] | null;
|
|
201
|
+
shippingAddress: createOrderRefundRequest_createOrderRefundRequest_shippingAddress | null;
|
|
202
|
+
shippingLines: createOrderRefundRequest_createOrderRefundRequest_shippingLines[] | null;
|
|
203
|
+
shippingMethod: ShippingMethodEnum;
|
|
204
|
+
status: OrderStatusEnum;
|
|
205
|
+
taxLines: createOrderRefundRequest_createOrderRefundRequest_taxLines[] | null;
|
|
206
|
+
totalFinalPrice: number;
|
|
207
|
+
totalPrice: number;
|
|
208
|
+
updatedAt: any | null;
|
|
209
|
+
}
|
|
210
|
+
export interface createOrderRefundRequest {
|
|
211
|
+
createOrderRefundRequest: createOrderRefundRequest_createOrderRefundRequest;
|
|
212
|
+
}
|
|
213
|
+
export interface createOrderRefundRequestVariables {
|
|
214
|
+
input: OrderRefundRequestInput;
|
|
215
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IkasCustomer, IkasOrder } from "../../models/index";
|
|
2
2
|
import * as RefreshTokenTypes from "./__generated__/customerRefreshToken";
|
|
3
|
+
import { IkasRefund } from "../../models/data/order/refund/index";
|
|
3
4
|
export declare class IkasCustomerAPI {
|
|
4
5
|
static login(email: string, password: string): Promise<{
|
|
5
6
|
customer: IkasCustomer;
|
|
@@ -25,4 +26,5 @@ export declare class IkasCustomerAPI {
|
|
|
25
26
|
id?: string;
|
|
26
27
|
orderId?: string;
|
|
27
28
|
}): Promise<any>;
|
|
29
|
+
static saveIkasOrderRefund(input: IkasRefund): Promise<IkasOrder | undefined>;
|
|
28
30
|
}
|
package/build/api/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export { IkasCustomerAPI } from "./customer/index";
|
|
|
8
8
|
export { IkasDistrictAPI } from "./district/index";
|
|
9
9
|
export { IkasHTMLMetaDataAPI } from "./html-meta-data/index";
|
|
10
10
|
export { IkasMerchantAPI } from "./merchant/index";
|
|
11
|
-
export { IkasProductAPI } from "./product/index";
|
|
12
11
|
export { IkasProductSearchAPI } from "./product-search/index";
|
|
13
12
|
export { IkasProductAttributeAPI } from "./product-attribute/index";
|
|
14
13
|
export { IkasFavoriteProductAPI } from "./favorite-product/index";
|