nextemos 5.2.3 → 5.2.5

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.
@@ -90,4 +90,7 @@ exports.OrderManagementService = {
90
90
  GetInvoices: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
91
91
  return (0, __1.fetchRequest)().post(exports.OrderManagementService.Url(urls_1.default.OrderManagement.GetInvoices, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
92
92
  }),
93
+ GetGuestInvoices: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
94
+ return (0, __1.fetchRequest)().post(exports.OrderManagementService.Url(urls_1.default.OrderManagement.GetGuestInvoices, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
95
+ }),
93
96
  };
@@ -63,6 +63,12 @@ export interface IGetInvoicesRequest extends IRequestBase {
63
63
  orderId: number;
64
64
  includeDetails?: boolean;
65
65
  }
66
+ export interface IGetGuestInvoicesRequest extends IRequestBase {
67
+ docNo: string;
68
+ mobilePhone?: string;
69
+ email?: string;
70
+ includeDetails?: boolean;
71
+ }
66
72
  export interface IOrderManagementService extends IService {
67
73
  GetMemberOrderDetails: (data: IGetMemberOrderDetailsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetMemberOrderDetailsResponse>>;
68
74
  GetGuestMemberOrderDetails: (data: IGetGuestMemberOrderDetailsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetGuestMemberOrderDetailsResponse>>;
@@ -77,4 +83,5 @@ export interface IOrderManagementService extends IService {
77
83
  GetOrderCancelReasons: (data: IGetOrderCancelReasonsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetOrderCancelReasonsResponse>>;
78
84
  GetOrderReturnReasons: (data: IGetOrderReturnReasonsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetOrderReturnReasonsResponse>>;
79
85
  GetInvoices: (data: IGetInvoicesRequest, options?: IRequestInit) => Promise<IApiResponse<IGetInvoicesResponse>>;
86
+ GetGuestInvoices: (data: IGetGuestInvoicesRequest, options?: IRequestInit) => Promise<IApiResponse<IGetInvoicesResponse>>;
80
87
  }
@@ -74,11 +74,10 @@ exports.ProductService = {
74
74
  return (0, __1.fetchRequest)().get(exports.ProductService.Url(urls_1.default.ProductCategory.ProductCategory.replace("{id}", ((_a = data === null || data === void 0 ? void 0 : data.id) === null || _a === void 0 ? void 0 : _a.toString()) || ""), options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
75
75
  }),
76
76
  ProductType: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
77
- var _a;
78
- return (0, __1.fetchRequest)().get(exports.ProductService.Url(urls_1.default.ProductType.ProductType.replace("{id}", ((_a = data === null || data === void 0 ? void 0 : data.id) === null || _a === void 0 ? void 0 : _a.toString()) || ""), options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
77
+ return (0, __1.fetchRequest)().post(exports.ProductService.Url(urls_1.default.ProductType.ProductType, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
79
78
  }),
80
79
  ProductTypeList: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
81
- return (0, __1.fetchRequest)().get(exports.ProductService.Url(urls_1.default.ProductType.All, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
80
+ return (0, __1.fetchRequest)().post(exports.ProductService.Url(urls_1.default.ProductType.All, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
82
81
  }),
83
82
  GetFavorites: (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (data = {}, options) {
84
83
  return (0, __1.fetchRequest)().get(exports.ProductService.Url(urls_1.default.ProductFavorite, options), Object.assign(Object.assign({}, options), { params: data }));
@@ -139,6 +139,7 @@ declare const _default: {
139
139
  GetOrderCancelReasons: string;
140
140
  GetOrderReturnReasons: string;
141
141
  GetInvoices: string;
142
+ GetGuestInvoices: string;
142
143
  };
143
144
  Payment: {
144
145
  GetBanks: string;
@@ -52,7 +52,7 @@ exports.default = {
52
52
  ProductStockAlert: "/live/{language}/Alert/v1/ProductStockAlerts",
53
53
  ProductType: {
54
54
  All: "/live/{language}/ProductType/v1/All",
55
- ProductType: "/live/{language}/ProductType/v1/{id}",
55
+ ProductType: "/live/{language}/ProductType/v1",
56
56
  },
57
57
  Stocks: {
58
58
  StockAvailabilitiesByProductId: "/{language}/Stocks/v1/StockAvailabilitiesByProductId",
@@ -150,6 +150,7 @@ exports.default = {
150
150
  GetOrderCancelReasons: "/{language}/OrderManagement/v1/GetOrderCancelReasons",
151
151
  GetOrderReturnReasons: "/{language}/OrderManagement/v1/GetOrderReturnReasons",
152
152
  GetInvoices: "/{language}/OrderManagement/v1/GetInvoices",
153
+ GetGuestInvoices: "/{language}/OrderManagement/v1/GetGuestInvoices",
153
154
  },
154
155
  Payment: {
155
156
  GetBanks: "/{language}/Bank/v1/GetBanks",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "5.2.3",
3
+ "version": "5.2.5",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",