nextemos 5.8.12 → 5.8.14

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,5 +1,8 @@
1
1
  import { IResponse, IResponsePaging } from "./response";
2
2
  import { OrderFlags } from "../enums/order";
3
+ export interface IOrderItemFlags {
4
+ flags: "None" | "ShipmentFee" | "PaymentFee" | "Customization";
5
+ }
3
6
  export interface IGetMemberOrderDetailsResponse extends IResponse {
4
7
  order: IOrder;
5
8
  flags: keyof typeof OrderFlags;
@@ -114,7 +117,7 @@ export interface IInvoice {
114
117
  isGiftBoxRequested: boolean;
115
118
  giftBoxNote: string;
116
119
  gainPoint: number;
117
- flags: "None";
120
+ flags: IOrderItemFlags;
118
121
  shipments: {
119
122
  waybillNo: string;
120
123
  trackingUrl: string;
@@ -161,7 +164,7 @@ export interface IOrderItem {
161
164
  isGiftBoxRequested: boolean;
162
165
  giftBoxNote: string;
163
166
  gainPoint: number;
164
- flags: "None" | "ShipmentFee" | "PaymentFee" | "Customization";
167
+ flags: IOrderItemFlags;
165
168
  shipments: IOrderShipment[];
166
169
  invoices: IOrderInvoice[];
167
170
  totals: IOrderTotal[];
@@ -295,7 +298,7 @@ export interface IOrderShipmentItem {
295
298
  customLineStatus: string;
296
299
  availBalance: number;
297
300
  refOrderLineId: number;
298
- flags: "None";
301
+ flags: IOrderItemFlags;
299
302
  }
300
303
  export interface IOrderShipment {
301
304
  id: number;
@@ -324,7 +327,7 @@ export interface IOrderInvoiceItem {
324
327
  customLineStatus: string;
325
328
  availBalance: number;
326
329
  refOrderLineId: number;
327
- flags: "None";
330
+ flags: IOrderItemFlags;
328
331
  }
329
332
  export interface IOrderInvoice {
330
333
  invoiceNo: string;
@@ -342,7 +345,7 @@ export interface IOrderCancelItem {
342
345
  customLineStatus: string;
343
346
  availBalance: number;
344
347
  refOrderLineId: number;
345
- flags: "None";
348
+ flags: IOrderItemFlags;
346
349
  }
347
350
  export interface IOrderCancel {
348
351
  items: IOrderCancelItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "5.8.12",
3
+ "version": "5.8.14",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",