@infisale-client/api-client 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}
@@ -10276,14 +10276,13 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
10276
10276
  * @param {string} [dateField]
10277
10277
  * @param {OrderEnum} [order]
10278
10278
  * @param {string} [sort]
10279
- * @param {string} [companyId]
10280
- * @param {string} [domain]
10281
- * @param {string} [userId]
10279
+ * @param {string} [company]
10280
+ * @param {string} [user]
10282
10281
  * @param {OrderStatusEnum} [status]
10283
10282
  * @param {*} [options] Override http request option.
10284
10283
  * @throws {RequiredError}
10285
10284
  */
10286
- 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>;
10285
+ 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>;
10287
10286
  };
10288
10287
  /**
10289
10288
  * OrderApi - functional programming interface
@@ -10314,14 +10313,13 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
10314
10313
  * @param {string} [dateField]
10315
10314
  * @param {OrderEnum} [order]
10316
10315
  * @param {string} [sort]
10317
- * @param {string} [companyId]
10318
- * @param {string} [domain]
10319
- * @param {string} [userId]
10316
+ * @param {string} [company]
10317
+ * @param {string} [user]
10320
10318
  * @param {OrderStatusEnum} [status]
10321
10319
  * @param {*} [options] Override http request option.
10322
10320
  * @throws {RequiredError}
10323
10321
  */
10324
- 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>>;
10322
+ 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>>;
10325
10323
  };
10326
10324
  /**
10327
10325
  * OrderApi - factory interface
@@ -10435,19 +10433,13 @@ export interface OrderApiGetOrdersRequest {
10435
10433
  * @type {string}
10436
10434
  * @memberof OrderApiGetOrders
10437
10435
  */
10438
- readonly companyId?: string;
10439
- /**
10440
- *
10441
- * @type {string}
10442
- * @memberof OrderApiGetOrders
10443
- */
10444
- readonly domain?: string;
10436
+ readonly company?: string;
10445
10437
  /**
10446
10438
  *
10447
10439
  * @type {string}
10448
10440
  * @memberof OrderApiGetOrders
10449
10441
  */
10450
- readonly userId?: string;
10442
+ readonly user?: string;
10451
10443
  /**
10452
10444
  *
10453
10445
  * @type {OrderStatusEnum}
package/dist/api/api.js CHANGED
@@ -2260,14 +2260,13 @@ const OrderApiAxiosParamCreator = function (configuration) {
2260
2260
  * @param {string} [dateField]
2261
2261
  * @param {OrderEnum} [order]
2262
2262
  * @param {string} [sort]
2263
- * @param {string} [companyId]
2264
- * @param {string} [domain]
2265
- * @param {string} [userId]
2263
+ * @param {string} [company]
2264
+ * @param {string} [user]
2266
2265
  * @param {OrderStatusEnum} [status]
2267
2266
  * @param {*} [options] Override http request option.
2268
2267
  * @throws {RequiredError}
2269
2268
  */
2270
- getOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, userId, status, options = {}) => {
2269
+ getOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, company, user, status, options = {}) => {
2271
2270
  const localVarPath = `/api/orders`;
2272
2271
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2273
2272
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2306,14 +2305,11 @@ const OrderApiAxiosParamCreator = function (configuration) {
2306
2305
  if (sort !== undefined) {
2307
2306
  localVarQueryParameter['sort'] = sort;
2308
2307
  }
2309
- if (companyId !== undefined) {
2310
- localVarQueryParameter['companyId'] = companyId;
2308
+ if (company !== undefined) {
2309
+ localVarQueryParameter['company'] = company;
2311
2310
  }
2312
- if (domain !== undefined) {
2313
- localVarQueryParameter['domain'] = domain;
2314
- }
2315
- if (userId !== undefined) {
2316
- localVarQueryParameter['userId'] = userId;
2311
+ if (user !== undefined) {
2312
+ localVarQueryParameter['user'] = user;
2317
2313
  }
2318
2314
  if (status !== undefined) {
2319
2315
  localVarQueryParameter['status'] = status;
@@ -2370,15 +2366,14 @@ const OrderApiFp = function (configuration) {
2370
2366
  * @param {string} [dateField]
2371
2367
  * @param {OrderEnum} [order]
2372
2368
  * @param {string} [sort]
2373
- * @param {string} [companyId]
2374
- * @param {string} [domain]
2375
- * @param {string} [userId]
2369
+ * @param {string} [company]
2370
+ * @param {string} [user]
2376
2371
  * @param {OrderStatusEnum} [status]
2377
2372
  * @param {*} [options] Override http request option.
2378
2373
  * @throws {RequiredError}
2379
2374
  */
2380
- async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, userId, status, options) {
2381
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, userId, status, options);
2375
+ async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, company, user, status, options) {
2376
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, company, user, status, options);
2382
2377
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2383
2378
  const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
2384
2379
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2418,7 +2413,7 @@ const OrderApiFactory = function (configuration, basePath, axios) {
2418
2413
  * @throws {RequiredError}
2419
2414
  */
2420
2415
  getOrders(requestParameters = {}, options) {
2421
- 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));
2416
+ 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));
2422
2417
  },
2423
2418
  };
2424
2419
  };
@@ -2458,7 +2453,7 @@ class OrderApi extends base_1.BaseAPI {
2458
2453
  * @memberof OrderApi
2459
2454
  */
2460
2455
  getOrders(requestParameters = {}, options) {
2461
- 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));
2456
+ 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));
2462
2457
  }
2463
2458
  }
2464
2459
  exports.OrderApi = OrderApi;
package/dist/api/api.mjs CHANGED
@@ -2226,14 +2226,13 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2226
2226
  * @param {string} [dateField]
2227
2227
  * @param {OrderEnum} [order]
2228
2228
  * @param {string} [sort]
2229
- * @param {string} [companyId]
2230
- * @param {string} [domain]
2231
- * @param {string} [userId]
2229
+ * @param {string} [company]
2230
+ * @param {string} [user]
2232
2231
  * @param {OrderStatusEnum} [status]
2233
2232
  * @param {*} [options] Override http request option.
2234
2233
  * @throws {RequiredError}
2235
2234
  */
2236
- getOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, userId, status, options = {}) => {
2235
+ getOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, company, user, status, options = {}) => {
2237
2236
  const localVarPath = `/api/orders`;
2238
2237
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2239
2238
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2272,14 +2271,11 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2272
2271
  if (sort !== undefined) {
2273
2272
  localVarQueryParameter['sort'] = sort;
2274
2273
  }
2275
- if (companyId !== undefined) {
2276
- localVarQueryParameter['companyId'] = companyId;
2274
+ if (company !== undefined) {
2275
+ localVarQueryParameter['company'] = company;
2277
2276
  }
2278
- if (domain !== undefined) {
2279
- localVarQueryParameter['domain'] = domain;
2280
- }
2281
- if (userId !== undefined) {
2282
- localVarQueryParameter['userId'] = userId;
2277
+ if (user !== undefined) {
2278
+ localVarQueryParameter['user'] = user;
2283
2279
  }
2284
2280
  if (status !== undefined) {
2285
2281
  localVarQueryParameter['status'] = status;
@@ -2335,15 +2331,14 @@ export const OrderApiFp = function (configuration) {
2335
2331
  * @param {string} [dateField]
2336
2332
  * @param {OrderEnum} [order]
2337
2333
  * @param {string} [sort]
2338
- * @param {string} [companyId]
2339
- * @param {string} [domain]
2340
- * @param {string} [userId]
2334
+ * @param {string} [company]
2335
+ * @param {string} [user]
2341
2336
  * @param {OrderStatusEnum} [status]
2342
2337
  * @param {*} [options] Override http request option.
2343
2338
  * @throws {RequiredError}
2344
2339
  */
2345
- async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, userId, status, options) {
2346
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, userId, status, options);
2340
+ async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, company, user, status, options) {
2341
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, company, user, status, options);
2347
2342
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2348
2343
  const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
2349
2344
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2382,7 +2377,7 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
2382
2377
  * @throws {RequiredError}
2383
2378
  */
2384
2379
  getOrders(requestParameters = {}, options) {
2385
- 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));
2380
+ 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));
2386
2381
  },
2387
2382
  };
2388
2383
  };
@@ -2421,7 +2416,7 @@ export class OrderApi extends BaseAPI {
2421
2416
  * @memberof OrderApi
2422
2417
  */
2423
2418
  getOrders(requestParameters = {}, options) {
2424
- 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));
2419
+ 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));
2425
2420
  }
2426
2421
  }
2427
2422
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.17",
3
+ "version": "1.2.19",
4
4
  "description": "api-client-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
  }