@infisale-client/api 1.2.17 → 1.2.19

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/dist/api/api.d.ts CHANGED
@@ -591,6 +591,12 @@ export interface IAddProductToBasketResponse {
591
591
  * @interface IAddress
592
592
  */
593
593
  export interface IAddress {
594
+ /**
595
+ *
596
+ * @type {string}
597
+ * @memberof IAddress
598
+ */
599
+ '_id': string;
594
600
  /**
595
601
  *
596
602
  * @type {string}
@@ -4854,19 +4860,13 @@ export interface IOrderCollectionQueryParams {
4854
4860
  * @type {string}
4855
4861
  * @memberof IOrderCollectionQueryParams
4856
4862
  */
4857
- 'companyId'?: string;
4858
- /**
4859
- *
4860
- * @type {string}
4861
- * @memberof IOrderCollectionQueryParams
4862
- */
4863
- 'domain'?: string;
4863
+ 'company'?: string;
4864
4864
  /**
4865
4865
  *
4866
4866
  * @type {string}
4867
4867
  * @memberof IOrderCollectionQueryParams
4868
4868
  */
4869
- 'userId'?: string;
4869
+ 'user'?: string;
4870
4870
  /**
4871
4871
  *
4872
4872
  * @type {OrderStatusEnum}
@@ -4982,13 +4982,13 @@ export interface IOrderResponse {
4982
4982
  * @type {string}
4983
4983
  * @memberof IOrderResponse
4984
4984
  */
4985
- 'user': string;
4985
+ 'user'?: string;
4986
4986
  /**
4987
4987
  *
4988
4988
  * @type {string}
4989
4989
  * @memberof IOrderResponse
4990
4990
  */
4991
- 'email': string;
4991
+ 'email'?: string;
4992
4992
  /**
4993
4993
  *
4994
4994
  * @type {Array<IOrderResponseProductsInner>}
@@ -5006,7 +5006,7 @@ export interface IOrderResponse {
5006
5006
  * @type {IAddress}
5007
5007
  * @memberof IOrderResponse
5008
5008
  */
5009
- 'billingAddress': IAddress;
5009
+ 'billingAddress'?: IAddress;
5010
5010
  /**
5011
5011
  *
5012
5012
  * @type {PaymentMethodEnum}
@@ -13660,14 +13660,13 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
13660
13660
  * @param {string} [dateField]
13661
13661
  * @param {OrderEnum} [order]
13662
13662
  * @param {string} [sort]
13663
- * @param {string} [companyId]
13664
- * @param {string} [domain]
13665
- * @param {string} [userId]
13663
+ * @param {string} [company]
13664
+ * @param {string} [user]
13666
13665
  * @param {OrderStatusEnum} [status]
13667
13666
  * @param {*} [options] Override http request option.
13668
13667
  * @throws {RequiredError}
13669
13668
  */
13670
- getOrders: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, companyId?: string, domain?: string, userId?: string, status?: OrderStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13669
+ getOrders: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, company?: string, user?: string, status?: OrderStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13671
13670
  };
13672
13671
  /**
13673
13672
  * OrderApi - functional programming interface
@@ -13698,14 +13697,13 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
13698
13697
  * @param {string} [dateField]
13699
13698
  * @param {OrderEnum} [order]
13700
13699
  * @param {string} [sort]
13701
- * @param {string} [companyId]
13702
- * @param {string} [domain]
13703
- * @param {string} [userId]
13700
+ * @param {string} [company]
13701
+ * @param {string} [user]
13704
13702
  * @param {OrderStatusEnum} [status]
13705
13703
  * @param {*} [options] Override http request option.
13706
13704
  * @throws {RequiredError}
13707
13705
  */
13708
- getOrders(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, companyId?: string, domain?: string, userId?: string, status?: OrderStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrdersResponse>>;
13706
+ getOrders(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, company?: string, user?: string, status?: OrderStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrdersResponse>>;
13709
13707
  };
13710
13708
  /**
13711
13709
  * OrderApi - factory interface
@@ -13819,19 +13817,13 @@ export interface OrderApiGetOrdersRequest {
13819
13817
  * @type {string}
13820
13818
  * @memberof OrderApiGetOrders
13821
13819
  */
13822
- readonly companyId?: string;
13823
- /**
13824
- *
13825
- * @type {string}
13826
- * @memberof OrderApiGetOrders
13827
- */
13828
- readonly domain?: string;
13820
+ readonly company?: string;
13829
13821
  /**
13830
13822
  *
13831
13823
  * @type {string}
13832
13824
  * @memberof OrderApiGetOrders
13833
13825
  */
13834
- readonly userId?: string;
13826
+ readonly user?: string;
13835
13827
  /**
13836
13828
  *
13837
13829
  * @type {OrderStatusEnum}
package/dist/api/api.js CHANGED
@@ -6449,14 +6449,13 @@ const OrderApiAxiosParamCreator = function (configuration) {
6449
6449
  * @param {string} [dateField]
6450
6450
  * @param {OrderEnum} [order]
6451
6451
  * @param {string} [sort]
6452
- * @param {string} [companyId]
6453
- * @param {string} [domain]
6454
- * @param {string} [userId]
6452
+ * @param {string} [company]
6453
+ * @param {string} [user]
6455
6454
  * @param {OrderStatusEnum} [status]
6456
6455
  * @param {*} [options] Override http request option.
6457
6456
  * @throws {RequiredError}
6458
6457
  */
6459
- getOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, userId, status, options = {}) => {
6458
+ getOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, company, user, status, options = {}) => {
6460
6459
  const localVarPath = `/api/orders`;
6461
6460
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6462
6461
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -6495,14 +6494,11 @@ const OrderApiAxiosParamCreator = function (configuration) {
6495
6494
  if (sort !== undefined) {
6496
6495
  localVarQueryParameter['sort'] = sort;
6497
6496
  }
6498
- if (companyId !== undefined) {
6499
- localVarQueryParameter['companyId'] = companyId;
6500
- }
6501
- if (domain !== undefined) {
6502
- localVarQueryParameter['domain'] = domain;
6497
+ if (company !== undefined) {
6498
+ localVarQueryParameter['company'] = company;
6503
6499
  }
6504
- if (userId !== undefined) {
6505
- localVarQueryParameter['userId'] = userId;
6500
+ if (user !== undefined) {
6501
+ localVarQueryParameter['user'] = user;
6506
6502
  }
6507
6503
  if (status !== undefined) {
6508
6504
  localVarQueryParameter['status'] = status;
@@ -6559,15 +6555,14 @@ const OrderApiFp = function (configuration) {
6559
6555
  * @param {string} [dateField]
6560
6556
  * @param {OrderEnum} [order]
6561
6557
  * @param {string} [sort]
6562
- * @param {string} [companyId]
6563
- * @param {string} [domain]
6564
- * @param {string} [userId]
6558
+ * @param {string} [company]
6559
+ * @param {string} [user]
6565
6560
  * @param {OrderStatusEnum} [status]
6566
6561
  * @param {*} [options] Override http request option.
6567
6562
  * @throws {RequiredError}
6568
6563
  */
6569
- async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, userId, status, options) {
6570
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, userId, status, options);
6564
+ async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, company, user, status, options) {
6565
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, company, user, status, options);
6571
6566
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6572
6567
  const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
6573
6568
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -6607,7 +6602,7 @@ const OrderApiFactory = function (configuration, basePath, axios) {
6607
6602
  * @throws {RequiredError}
6608
6603
  */
6609
6604
  getOrders(requestParameters = {}, options) {
6610
- return localVarFp.getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.userId, requestParameters.status, options).then((request) => request(axios, basePath));
6605
+ return localVarFp.getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.company, requestParameters.user, requestParameters.status, options).then((request) => request(axios, basePath));
6611
6606
  },
6612
6607
  };
6613
6608
  };
@@ -6647,7 +6642,7 @@ class OrderApi extends base_1.BaseAPI {
6647
6642
  * @memberof OrderApi
6648
6643
  */
6649
6644
  getOrders(requestParameters = {}, options) {
6650
- return (0, exports.OrderApiFp)(this.configuration).getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.userId, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
6645
+ return (0, exports.OrderApiFp)(this.configuration).getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.company, requestParameters.user, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
6651
6646
  }
6652
6647
  }
6653
6648
  exports.OrderApi = OrderApi;
package/dist/api/api.mjs CHANGED
@@ -6394,14 +6394,13 @@ export const OrderApiAxiosParamCreator = function (configuration) {
6394
6394
  * @param {string} [dateField]
6395
6395
  * @param {OrderEnum} [order]
6396
6396
  * @param {string} [sort]
6397
- * @param {string} [companyId]
6398
- * @param {string} [domain]
6399
- * @param {string} [userId]
6397
+ * @param {string} [company]
6398
+ * @param {string} [user]
6400
6399
  * @param {OrderStatusEnum} [status]
6401
6400
  * @param {*} [options] Override http request option.
6402
6401
  * @throws {RequiredError}
6403
6402
  */
6404
- getOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, userId, status, options = {}) => {
6403
+ getOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, company, user, status, options = {}) => {
6405
6404
  const localVarPath = `/api/orders`;
6406
6405
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6407
6406
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6440,14 +6439,11 @@ export const OrderApiAxiosParamCreator = function (configuration) {
6440
6439
  if (sort !== undefined) {
6441
6440
  localVarQueryParameter['sort'] = sort;
6442
6441
  }
6443
- if (companyId !== undefined) {
6444
- localVarQueryParameter['companyId'] = companyId;
6445
- }
6446
- if (domain !== undefined) {
6447
- localVarQueryParameter['domain'] = domain;
6442
+ if (company !== undefined) {
6443
+ localVarQueryParameter['company'] = company;
6448
6444
  }
6449
- if (userId !== undefined) {
6450
- localVarQueryParameter['userId'] = userId;
6445
+ if (user !== undefined) {
6446
+ localVarQueryParameter['user'] = user;
6451
6447
  }
6452
6448
  if (status !== undefined) {
6453
6449
  localVarQueryParameter['status'] = status;
@@ -6503,15 +6499,14 @@ export const OrderApiFp = function (configuration) {
6503
6499
  * @param {string} [dateField]
6504
6500
  * @param {OrderEnum} [order]
6505
6501
  * @param {string} [sort]
6506
- * @param {string} [companyId]
6507
- * @param {string} [domain]
6508
- * @param {string} [userId]
6502
+ * @param {string} [company]
6503
+ * @param {string} [user]
6509
6504
  * @param {OrderStatusEnum} [status]
6510
6505
  * @param {*} [options] Override http request option.
6511
6506
  * @throws {RequiredError}
6512
6507
  */
6513
- async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, userId, status, options) {
6514
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, userId, status, options);
6508
+ async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, company, user, status, options) {
6509
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, company, user, status, options);
6515
6510
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6516
6511
  const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
6517
6512
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -6550,7 +6545,7 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
6550
6545
  * @throws {RequiredError}
6551
6546
  */
6552
6547
  getOrders(requestParameters = {}, options) {
6553
- return localVarFp.getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.userId, requestParameters.status, options).then((request) => request(axios, basePath));
6548
+ return localVarFp.getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.company, requestParameters.user, requestParameters.status, options).then((request) => request(axios, basePath));
6554
6549
  },
6555
6550
  };
6556
6551
  };
@@ -6589,7 +6584,7 @@ export class OrderApi extends BaseAPI {
6589
6584
  * @memberof OrderApi
6590
6585
  */
6591
6586
  getOrders(requestParameters = {}, options) {
6592
- return OrderApiFp(this.configuration).getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.userId, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
6587
+ return OrderApiFp(this.configuration).getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.company, requestParameters.user, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
6593
6588
  }
6594
6589
  }
6595
6590
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.2.17",
3
+ "version": "1.2.19",
4
4
  "description": "api-sdk",
5
5
  "author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
6
6
  "homepage": "https://github.com/infisale/infisale-client#readme",
@@ -37,5 +37,5 @@
37
37
  "bugs": {
38
38
  "url": "https://github.com/infisale/infisale-client/issues"
39
39
  },
40
- "gitHead": "37df627108b697a6baea6dd76c9e4d053ce74716"
40
+ "gitHead": "8d87b661880e9f1424f12cd42f5a41d292d477fb"
41
41
  }