@infisale-client/api-client 1.2.21 → 1.2.23

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.mjs CHANGED
@@ -469,6 +469,66 @@ export const FontSizeEnum = {
469
469
  _4XL: 'text-4xl',
470
470
  _6XL: 'text-6xl'
471
471
  };
472
+ export const IBrandCollectionQueryParamsDateFieldEnum = {
473
+ CREATED_AT: 'createdAt',
474
+ UPDATED_AT: 'updatedAt'
475
+ };
476
+ export const ICategoryCollectionQueryParamsDateFieldEnum = {
477
+ CREATED_AT: 'createdAt',
478
+ UPDATED_AT: 'updatedAt'
479
+ };
480
+ export const ICollectionCollectionsQueryParamsDateFieldEnum = {
481
+ CREATED_AT: 'createdAt',
482
+ UPDATED_AT: 'updatedAt'
483
+ };
484
+ export const ICompanyCollectionQueryParamsDateFieldEnum = {
485
+ CREATED_AT: 'createdAt',
486
+ UPDATED_AT: 'updatedAt'
487
+ };
488
+ export const ICompanyUsersCollectionQueryParamsDateFieldEnum = {
489
+ CREATED_AT: 'createdAt',
490
+ UPDATED_AT: 'updatedAt'
491
+ };
492
+ export const IContactFormCollectionQueryParamsDateFieldEnum = {
493
+ CREATED_AT: 'createdAt',
494
+ UPDATED_AT: 'updatedAt'
495
+ };
496
+ export const IFileCollectionQueryParamsDateFieldEnum = {
497
+ CREATED_AT: 'createdAt',
498
+ UPDATED_AT: 'updatedAt'
499
+ };
500
+ export const IMyOrderCollectionQueryParamsDateFieldEnum = {
501
+ CREATED_AT: 'createdAt',
502
+ UPDATED_AT: 'updatedAt'
503
+ };
504
+ export const INotificationCollectionQueryParamsDateFieldEnum = {
505
+ CREATED_AT: 'createdAt',
506
+ UPDATED_AT: 'updatedAt'
507
+ };
508
+ export const IOperationCollectionQueryParamsDateFieldEnum = {
509
+ CREATED_AT: 'createdAt',
510
+ UPDATED_AT: 'updatedAt'
511
+ };
512
+ export const IOrderCollectionQueryParamsDateFieldEnum = {
513
+ CREATED_AT: 'createdAt',
514
+ UPDATED_AT: 'updatedAt'
515
+ };
516
+ export const IPageCollectionQueryParamsDateFieldEnum = {
517
+ CREATED_AT: 'createdAt',
518
+ UPDATED_AT: 'updatedAt'
519
+ };
520
+ export const IPlanCollectionQueryParamsDateFieldEnum = {
521
+ CREATED_AT: 'createdAt',
522
+ UPDATED_AT: 'updatedAt'
523
+ };
524
+ export const IProductCollectionQueryParamsDateFieldEnum = {
525
+ CREATED_AT: 'createdAt',
526
+ UPDATED_AT: 'updatedAt'
527
+ };
528
+ export const IUserCollectionQueryParamsDateFieldEnum = {
529
+ CREATED_AT: 'createdAt',
530
+ UPDATED_AT: 'updatedAt'
531
+ };
472
532
  /**
473
533
  *
474
534
  * @export
@@ -549,6 +609,14 @@ export const PageTypeEnum = {
549
609
  CHECKOUT: 'checkout',
550
610
  NOT_FOUND: 'not-found'
551
611
  };
612
+ /**
613
+ *
614
+ * @export
615
+ * @enum {string}
616
+ */
617
+ export const PaymentGatewayEnum = {
618
+ IYZICO: 'iyzico'
619
+ };
552
620
  /**
553
621
  *
554
622
  * @export
@@ -1806,7 +1874,7 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
1806
1874
  * @param {string} [search]
1807
1875
  * @param {string} [startDate]
1808
1876
  * @param {string} [endDate]
1809
- * @param {string} [dateField]
1877
+ * @param {GetCollectionsDateFieldEnum} [dateField]
1810
1878
  * @param {OrderEnum} [order]
1811
1879
  * @param {string} [sort]
1812
1880
  * @param {ContentStatusEnum} [status]
@@ -1898,7 +1966,7 @@ export const CollectionApiFp = function (configuration) {
1898
1966
  * @param {string} [search]
1899
1967
  * @param {string} [startDate]
1900
1968
  * @param {string} [endDate]
1901
- * @param {string} [dateField]
1969
+ * @param {GetCollectionsDateFieldEnum} [dateField]
1902
1970
  * @param {OrderEnum} [order]
1903
1971
  * @param {string} [sort]
1904
1972
  * @param {ContentStatusEnum} [status]
@@ -1968,6 +2036,13 @@ export class CollectionApi extends BaseAPI {
1968
2036
  return CollectionApiFp(this.configuration).getCollections(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
1969
2037
  }
1970
2038
  }
2039
+ /**
2040
+ * @export
2041
+ */
2042
+ export const GetCollectionsDateFieldEnum = {
2043
+ CREATED_AT: 'createdAt',
2044
+ UPDATED_AT: 'updatedAt'
2045
+ };
1971
2046
  /**
1972
2047
  * CompanyApi - axios parameter creator
1973
2048
  * @export
@@ -2190,6 +2265,70 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2190
2265
  options: localVarRequestOptions,
2191
2266
  };
2192
2267
  },
2268
+ /**
2269
+ *
2270
+ * @param {number} [page]
2271
+ * @param {number} [itemsPerPage]
2272
+ * @param {string} [search]
2273
+ * @param {string} [startDate]
2274
+ * @param {string} [endDate]
2275
+ * @param {GetMyOrdersDateFieldEnum} [dateField]
2276
+ * @param {OrderEnum} [order]
2277
+ * @param {string} [sort]
2278
+ * @param {OrderStatusEnum} [status]
2279
+ * @param {*} [options] Override http request option.
2280
+ * @throws {RequiredError}
2281
+ */
2282
+ getMyOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
2283
+ const localVarPath = `/api/orders/my`;
2284
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2285
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2286
+ let baseOptions;
2287
+ if (configuration) {
2288
+ baseOptions = configuration.baseOptions;
2289
+ }
2290
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2291
+ const localVarHeaderParameter = {};
2292
+ const localVarQueryParameter = {};
2293
+ if (page !== undefined) {
2294
+ localVarQueryParameter['page'] = page;
2295
+ }
2296
+ if (itemsPerPage !== undefined) {
2297
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
2298
+ }
2299
+ if (search !== undefined) {
2300
+ localVarQueryParameter['search'] = search;
2301
+ }
2302
+ if (startDate !== undefined) {
2303
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
2304
+ startDate.toISOString() :
2305
+ startDate;
2306
+ }
2307
+ if (endDate !== undefined) {
2308
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
2309
+ endDate.toISOString() :
2310
+ endDate;
2311
+ }
2312
+ if (dateField !== undefined) {
2313
+ localVarQueryParameter['dateField'] = dateField;
2314
+ }
2315
+ if (order !== undefined) {
2316
+ localVarQueryParameter['order'] = order;
2317
+ }
2318
+ if (sort !== undefined) {
2319
+ localVarQueryParameter['sort'] = sort;
2320
+ }
2321
+ if (status !== undefined) {
2322
+ localVarQueryParameter['status'] = status;
2323
+ }
2324
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2325
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2326
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2327
+ return {
2328
+ url: toPathString(localVarUrlObj),
2329
+ options: localVarRequestOptions,
2330
+ };
2331
+ },
2193
2332
  /**
2194
2333
  *
2195
2334
  * @param {string} id
@@ -2226,7 +2365,7 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2226
2365
  * @param {string} [search]
2227
2366
  * @param {string} [startDate]
2228
2367
  * @param {string} [endDate]
2229
- * @param {string} [dateField]
2368
+ * @param {GetOrdersDateFieldEnum} [dateField]
2230
2369
  * @param {OrderEnum} [order]
2231
2370
  * @param {string} [sort]
2232
2371
  * @param {string} [user]
@@ -2313,6 +2452,26 @@ export const OrderApiFp = function (configuration) {
2313
2452
  const localVarOperationServerBasePath = operationServerMap['OrderApi.createOrder']?.[localVarOperationServerIndex]?.url;
2314
2453
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2315
2454
  },
2455
+ /**
2456
+ *
2457
+ * @param {number} [page]
2458
+ * @param {number} [itemsPerPage]
2459
+ * @param {string} [search]
2460
+ * @param {string} [startDate]
2461
+ * @param {string} [endDate]
2462
+ * @param {GetMyOrdersDateFieldEnum} [dateField]
2463
+ * @param {OrderEnum} [order]
2464
+ * @param {string} [sort]
2465
+ * @param {OrderStatusEnum} [status]
2466
+ * @param {*} [options] Override http request option.
2467
+ * @throws {RequiredError}
2468
+ */
2469
+ async getMyOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
2470
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
2471
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2472
+ const localVarOperationServerBasePath = operationServerMap['OrderApi.getMyOrders']?.[localVarOperationServerIndex]?.url;
2473
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2474
+ },
2316
2475
  /**
2317
2476
  *
2318
2477
  * @param {string} id
@@ -2333,7 +2492,7 @@ export const OrderApiFp = function (configuration) {
2333
2492
  * @param {string} [search]
2334
2493
  * @param {string} [startDate]
2335
2494
  * @param {string} [endDate]
2336
- * @param {string} [dateField]
2495
+ * @param {GetOrdersDateFieldEnum} [dateField]
2337
2496
  * @param {OrderEnum} [order]
2338
2497
  * @param {string} [sort]
2339
2498
  * @param {string} [user]
@@ -2365,6 +2524,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
2365
2524
  createOrder(requestParameters, options) {
2366
2525
  return localVarFp.createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(axios, basePath));
2367
2526
  },
2527
+ /**
2528
+ *
2529
+ * @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
2530
+ * @param {*} [options] Override http request option.
2531
+ * @throws {RequiredError}
2532
+ */
2533
+ getMyOrders(requestParameters = {}, options) {
2534
+ return localVarFp.getMyOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
2535
+ },
2368
2536
  /**
2369
2537
  *
2370
2538
  * @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
@@ -2402,6 +2570,16 @@ export class OrderApi extends BaseAPI {
2402
2570
  createOrder(requestParameters, options) {
2403
2571
  return OrderApiFp(this.configuration).createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(this.axios, this.basePath));
2404
2572
  }
2573
+ /**
2574
+ *
2575
+ * @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
2576
+ * @param {*} [options] Override http request option.
2577
+ * @throws {RequiredError}
2578
+ * @memberof OrderApi
2579
+ */
2580
+ getMyOrders(requestParameters = {}, options) {
2581
+ return OrderApiFp(this.configuration).getMyOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2582
+ }
2405
2583
  /**
2406
2584
  *
2407
2585
  * @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
@@ -2423,6 +2601,20 @@ export class OrderApi extends BaseAPI {
2423
2601
  return OrderApiFp(this.configuration).getOrders(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2424
2602
  }
2425
2603
  }
2604
+ /**
2605
+ * @export
2606
+ */
2607
+ export const GetMyOrdersDateFieldEnum = {
2608
+ CREATED_AT: 'createdAt',
2609
+ UPDATED_AT: 'updatedAt'
2610
+ };
2611
+ /**
2612
+ * @export
2613
+ */
2614
+ export const GetOrdersDateFieldEnum = {
2615
+ CREATED_AT: 'createdAt',
2616
+ UPDATED_AT: 'updatedAt'
2617
+ };
2426
2618
  /**
2427
2619
  * PageApi - axios parameter creator
2428
2620
  * @export
@@ -2512,7 +2704,7 @@ export const PageApiAxiosParamCreator = function (configuration) {
2512
2704
  * @param {string} [search]
2513
2705
  * @param {string} [startDate]
2514
2706
  * @param {string} [endDate]
2515
- * @param {string} [dateField]
2707
+ * @param {GetPagesDateFieldEnum} [dateField]
2516
2708
  * @param {OrderEnum} [order]
2517
2709
  * @param {string} [sort]
2518
2710
  * @param {string} [companyId]
@@ -2626,7 +2818,7 @@ export const PageApiFp = function (configuration) {
2626
2818
  * @param {string} [search]
2627
2819
  * @param {string} [startDate]
2628
2820
  * @param {string} [endDate]
2629
- * @param {string} [dateField]
2821
+ * @param {GetPagesDateFieldEnum} [dateField]
2630
2822
  * @param {OrderEnum} [order]
2631
2823
  * @param {string} [sort]
2632
2824
  * @param {string} [companyId]
@@ -2718,6 +2910,13 @@ export class PageApi extends BaseAPI {
2718
2910
  return PageApiFp(this.configuration).getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2719
2911
  }
2720
2912
  }
2913
+ /**
2914
+ * @export
2915
+ */
2916
+ export const GetPagesDateFieldEnum = {
2917
+ CREATED_AT: 'createdAt',
2918
+ UPDATED_AT: 'updatedAt'
2919
+ };
2721
2920
  /**
2722
2921
  * ProductApi - axios parameter creator
2723
2922
  * @export
@@ -2767,7 +2966,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
2767
2966
  * @param {string} [search]
2768
2967
  * @param {string} [startDate]
2769
2968
  * @param {string} [endDate]
2770
- * @param {string} [dateField]
2969
+ * @param {GetProductsDateFieldEnum} [dateField]
2771
2970
  * @param {OrderEnum} [order]
2772
2971
  * @param {string} [sort]
2773
2972
  * @param {string} [companyId]
@@ -2912,7 +3111,7 @@ export const ProductApiFp = function (configuration) {
2912
3111
  * @param {string} [search]
2913
3112
  * @param {string} [startDate]
2914
3113
  * @param {string} [endDate]
2915
- * @param {string} [dateField]
3114
+ * @param {GetProductsDateFieldEnum} [dateField]
2916
3115
  * @param {OrderEnum} [order]
2917
3116
  * @param {string} [sort]
2918
3117
  * @param {string} [companyId]
@@ -3020,6 +3219,13 @@ export class ProductApi extends BaseAPI {
3020
3219
  return ProductApiFp(this.configuration).searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
3021
3220
  }
3022
3221
  }
3222
+ /**
3223
+ * @export
3224
+ */
3225
+ export const GetProductsDateFieldEnum = {
3226
+ CREATED_AT: 'createdAt',
3227
+ UPDATED_AT: 'updatedAt'
3228
+ };
3023
3229
  /**
3024
3230
  * SitemapApi - axios parameter creator
3025
3231
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.21",
3
+ "version": "1.2.23",
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": "f9e34f389e5f7f98b7cd930fa2e782b5f8b340e4"
40
+ "gitHead": "cbe98dcab96083c92f583ffc67099fbb00167f27"
41
41
  }