nextemos 6.1.8 → 6.1.10

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.
@@ -80,9 +80,6 @@ const fetchRequest = () => {
80
80
  }
81
81
  // İstek seçeneklerini oluştur
82
82
  const requestOptions = Object.assign(Object.assign({}, options), { method });
83
- // Node.js(Next.js) için cache'i no-cache yap
84
- if (process.env.NEXT_RUNTIME === "nodejs")
85
- requestOptions.cache = "no-cache";
86
83
  if (FETCH_OPTIONS.CACHE && FETCH_OPTIONS.CACHE !== "")
87
84
  requestOptions.cache = FETCH_OPTIONS.CACHE;
88
85
  // Cache seçeneği varsa onu kullan
@@ -97,4 +97,7 @@ exports.OrderManagementService = {
97
97
  GetSalesForm: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
98
98
  return (0, __1.fetchRequest)().post(exports.OrderManagementService.Url(urls_1.default.OrderManagement.GetSalesForm, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
99
99
  }),
100
+ ApproveOrder: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
101
+ return (0, __1.fetchRequest)().post(exports.OrderManagementService.Url(urls_1.default.OrderManagement.ApproveOrder, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
102
+ }),
100
103
  };
@@ -1,4 +1,4 @@
1
- import { IApiResponse, ICancelOrderResponse, IGetGuestMemberOrderDetailsResponse, IGetInvoicesResponse, IGetMemberOrderDetailsResponse, IGetOrderCancelReasonsResponse, IGetOrderReturnReasonsResponse, IGetOrdersResponse, IGetRefundDetailResponse, IGetRefundsResponse, IGetSalesFormResponse, IGuestCancelOrderResponse, IGuestRefundOrderResponse, IRefundOrderResponse, IRepeatOrderResponse, IRequestBase, IRequestInfo, IRequestInit, IService } from "../..";
1
+ import { IApiResponse, ICancelOrderResponse, IGetGuestMemberOrderDetailsResponse, IGetInvoicesResponse, IGetMemberOrderDetailsResponse, IGetOrderCancelReasonsResponse, IGetOrderReturnReasonsResponse, IGetOrdersResponse, IGetRefundDetailResponse, IGetRefundsResponse, IGetSalesFormResponse, IGuestCancelOrderResponse, IGuestRefundOrderResponse, IRefundOrderResponse, IRepeatOrderResponse, IRequestBase, IRequestInfo, IRequestInit, IResponse, IService } from "../..";
2
2
  export interface IGetOrdersRequest extends IRequestBase {
3
3
  paymentType?: number;
4
4
  type?: "All" | "Active" | "Cancel";
@@ -73,6 +73,9 @@ export interface IGetSalesFormRequest extends IRequestBase {
73
73
  orderId: number;
74
74
  extraTypeId: number;
75
75
  }
76
+ export interface IApproveOrderRequest extends IRequestBase {
77
+ token: string;
78
+ }
76
79
  export interface IOrderManagementService extends IService {
77
80
  GetMemberOrderDetails: (data: IGetMemberOrderDetailsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetMemberOrderDetailsResponse>>;
78
81
  GetGuestMemberOrderDetails: (data: IGetGuestMemberOrderDetailsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetGuestMemberOrderDetailsResponse>>;
@@ -89,4 +92,5 @@ export interface IOrderManagementService extends IService {
89
92
  GetInvoices: (data: IGetInvoicesRequest, options?: IRequestInit) => Promise<IApiResponse<IGetInvoicesResponse>>;
90
93
  GetGuestInvoices: (data: IGetGuestInvoicesRequest, options?: IRequestInit) => Promise<IApiResponse<IGetInvoicesResponse>>;
91
94
  GetSalesForm: (data: IGetSalesFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesFormResponse>>;
95
+ ApproveOrder: (data: IApproveOrderRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
92
96
  }
@@ -197,6 +197,7 @@ declare const _default: {
197
197
  GetInvoices: string;
198
198
  GetGuestInvoices: string;
199
199
  GetSalesForm: string;
200
+ ApproveOrder: string;
200
201
  };
201
202
  Payment: {
202
203
  GetBanks: string;
@@ -208,6 +208,7 @@ exports.default = {
208
208
  GetInvoices: "/{language}/OrderManagement/{version}/GetInvoices",
209
209
  GetGuestInvoices: "/{language}/OrderManagement/{version}/GetGuestInvoices",
210
210
  GetSalesForm: "/{language}/OrderManagement/{version}/GetSalesForm",
211
+ ApproveOrder: "/{language}/PayAtDoor/{version}/ApproveOrder",
211
212
  },
212
213
  Payment: {
213
214
  GetBanks: "/{language}/Bank/{version}/GetBanks",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "6.1.8",
3
+ "version": "6.1.10",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",