@infisale-client/api-client 1.2.52 → 1.2.54

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
@@ -920,18 +920,6 @@ export interface IBasketSummary {
920
920
  * @memberof IBasketSummary
921
921
  */
922
922
  'tax': number;
923
- /**
924
- *
925
- * @type {number}
926
- * @memberof IBasketSummary
927
- */
928
- 'shipping': number;
929
- /**
930
- *
931
- * @type {boolean}
932
- * @memberof IBasketSummary
933
- */
934
- 'freeShipping': boolean;
935
923
  /**
936
924
  *
937
925
  * @type {number}
@@ -5135,6 +5123,12 @@ export interface IOrderPostRequest {
5135
5123
  * @memberof IOrderPostRequest
5136
5124
  */
5137
5125
  'cardCvv'?: number;
5126
+ /**
5127
+ *
5128
+ * @type {string}
5129
+ * @memberof IOrderPostRequest
5130
+ */
5131
+ 'shippingRateId': string;
5138
5132
  }
5139
5133
  /**
5140
5134
  *
@@ -5264,10 +5258,10 @@ export interface IOrderResponse {
5264
5258
  'shipping': number;
5265
5259
  /**
5266
5260
  *
5267
- * @type {boolean}
5261
+ * @type {string}
5268
5262
  * @memberof IOrderResponse
5269
5263
  */
5270
- 'freeShipping': boolean;
5264
+ 'shippingRate': string;
5271
5265
  /**
5272
5266
  *
5273
5267
  * @type {number}
@@ -5280,6 +5274,30 @@ export interface IOrderResponse {
5280
5274
  * @memberof IOrderResponse
5281
5275
  */
5282
5276
  'note'?: string;
5277
+ /**
5278
+ *
5279
+ * @type {string}
5280
+ * @memberof IOrderResponse
5281
+ */
5282
+ 'cargoCode'?: string;
5283
+ /**
5284
+ *
5285
+ * @type {string}
5286
+ * @memberof IOrderResponse
5287
+ */
5288
+ 'cargoUrl'?: string;
5289
+ /**
5290
+ *
5291
+ * @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner>}
5292
+ * @memberof IOrderResponse
5293
+ */
5294
+ 'returns': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner>;
5295
+ /**
5296
+ *
5297
+ * @type {OrderPaymentStatusEnum}
5298
+ * @memberof IOrderResponse
5299
+ */
5300
+ 'paymentStatus': OrderPaymentStatusEnum;
5283
5301
  }
5284
5302
  /**
5285
5303
  *
@@ -7898,14 +7916,35 @@ export type OrderEnum = typeof OrderEnum[keyof typeof OrderEnum];
7898
7916
  * @export
7899
7917
  * @enum {string}
7900
7918
  */
7901
- export declare const OrderStatusEnum: {
7919
+ export declare const OrderPaymentStatusEnum: {
7902
7920
  readonly WAITING_PAYMENT: "waiting_payment";
7903
7921
  readonly PAID: "paid";
7904
- readonly CANCELED: "canceled";
7922
+ readonly FAILED: "failed";
7923
+ };
7924
+ export type OrderPaymentStatusEnum = typeof OrderPaymentStatusEnum[keyof typeof OrderPaymentStatusEnum];
7925
+ /**
7926
+ *
7927
+ * @export
7928
+ * @enum {string}
7929
+ */
7930
+ export declare const OrderReturnStatusEnum: {
7931
+ readonly WAITING_APPROVAL: "waiting_approval";
7932
+ readonly REJECTED: "rejected";
7933
+ readonly WAITING_RETURN: "waiting_return";
7934
+ readonly RETURNED: "returned";
7935
+ };
7936
+ export type OrderReturnStatusEnum = typeof OrderReturnStatusEnum[keyof typeof OrderReturnStatusEnum];
7937
+ /**
7938
+ *
7939
+ * @export
7940
+ * @enum {string}
7941
+ */
7942
+ export declare const OrderStatusEnum: {
7943
+ readonly CANCELLED: "cancelled";
7944
+ readonly NOT_SHIPPED: "not_shipped";
7905
7945
  readonly READY_TO_SHIP: "ready_to_ship";
7906
7946
  readonly SHIPPED: "shipped";
7907
7947
  readonly COMPLETED: "completed";
7908
- readonly FAILED: "failed";
7909
7948
  };
7910
7949
  export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];
7911
7950
  /**
@@ -8816,10 +8855,10 @@ export interface PickIOrderExcludeKeyofIOrderHtmlOrIframe {
8816
8855
  'shipping': number;
8817
8856
  /**
8818
8857
  *
8819
- * @type {boolean}
8858
+ * @type {string}
8820
8859
  * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
8821
8860
  */
8822
- 'freeShipping': boolean;
8861
+ 'shippingRate': string;
8823
8862
  /**
8824
8863
  *
8825
8864
  * @type {number}
@@ -8832,6 +8871,30 @@ export interface PickIOrderExcludeKeyofIOrderHtmlOrIframe {
8832
8871
  * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
8833
8872
  */
8834
8873
  'note'?: string;
8874
+ /**
8875
+ *
8876
+ * @type {string}
8877
+ * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
8878
+ */
8879
+ 'cargoCode'?: string;
8880
+ /**
8881
+ *
8882
+ * @type {string}
8883
+ * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
8884
+ */
8885
+ 'cargoUrl'?: string;
8886
+ /**
8887
+ *
8888
+ * @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner>}
8889
+ * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
8890
+ */
8891
+ 'returns': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner>;
8892
+ /**
8893
+ *
8894
+ * @type {OrderPaymentStatusEnum}
8895
+ * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
8896
+ */
8897
+ 'paymentStatus': OrderPaymentStatusEnum;
8835
8898
  }
8836
8899
  /**
8837
8900
  *
@@ -8899,6 +8962,74 @@ export interface PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner {
8899
8962
  * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
8900
8963
  */
8901
8964
  'productId': string;
8965
+ /**
8966
+ *
8967
+ * @type {string}
8968
+ * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner
8969
+ */
8970
+ '_id': string;
8971
+ }
8972
+ /**
8973
+ *
8974
+ * @export
8975
+ * @interface PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
8976
+ */
8977
+ export interface PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner {
8978
+ /**
8979
+ *
8980
+ * @type {string}
8981
+ * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
8982
+ */
8983
+ 'returnedAt'?: string;
8984
+ /**
8985
+ *
8986
+ * @type {string}
8987
+ * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
8988
+ */
8989
+ 'createdAt': string;
8990
+ /**
8991
+ *
8992
+ * @type {OrderReturnStatusEnum}
8993
+ * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
8994
+ */
8995
+ 'status': OrderReturnStatusEnum;
8996
+ /**
8997
+ *
8998
+ * @type {string}
8999
+ * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
9000
+ */
9001
+ 'cargoUrl'?: string;
9002
+ /**
9003
+ *
9004
+ * @type {string}
9005
+ * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
9006
+ */
9007
+ 'cargoCode'?: string;
9008
+ /**
9009
+ *
9010
+ * @type {number}
9011
+ * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
9012
+ */
9013
+ 'price': number;
9014
+ /**
9015
+ *
9016
+ * @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInnerProductsInner>}
9017
+ * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
9018
+ */
9019
+ 'products': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInnerProductsInner>;
9020
+ /**
9021
+ *
9022
+ * @type {string}
9023
+ * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner
9024
+ */
9025
+ '_id': string;
9026
+ }
9027
+ /**
9028
+ *
9029
+ * @export
9030
+ * @interface PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInnerProductsInner
9031
+ */
9032
+ export interface PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInnerProductsInner {
8902
9033
  }
8903
9034
  /**
8904
9035
  * From T, pick a set of properties whose keys are in the union K
package/dist/api/api.js CHANGED
@@ -16,9 +16,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.ShippingPricingTypeEnum = exports.ProductDetailImageZoomTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = exports.PageTypeEnum = exports.OrderStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = exports.IMyOrderCollectionQueryParamsDateFieldEnum = exports.IFileCollectionQueryParamsDateFieldEnum = exports.IContactFormCollectionQueryParamsDateFieldEnum = exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = exports.ICompanyCollectionQueryParamsDateFieldEnum = exports.ICollectionCollectionsQueryParamsDateFieldEnum = exports.ICategoryCollectionQueryParamsDateFieldEnum = exports.IBrandCollectionQueryParamsDateFieldEnum = exports.FontSizeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ContentPositionYEnum = exports.ContentPositionXEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = exports.ButtonVariantEnum = void 0;
20
- exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.GetOrdersDateFieldEnum = exports.GetMyOrdersDateFieldEnum = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.GetCollectionsDateFieldEnum = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.TemplateTypeEnum = exports.SitemapTypeEnum = void 0;
21
- exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = void 0;
19
+ exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = exports.PageTypeEnum = exports.OrderStatusEnum = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = exports.IMyOrderCollectionQueryParamsDateFieldEnum = exports.IFileCollectionQueryParamsDateFieldEnum = exports.IContactFormCollectionQueryParamsDateFieldEnum = exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = exports.ICompanyCollectionQueryParamsDateFieldEnum = exports.ICollectionCollectionsQueryParamsDateFieldEnum = exports.ICategoryCollectionQueryParamsDateFieldEnum = exports.IBrandCollectionQueryParamsDateFieldEnum = exports.FontSizeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ContentPositionYEnum = exports.ContentPositionXEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = exports.ButtonVariantEnum = void 0;
20
+ exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.GetOrdersDateFieldEnum = exports.GetMyOrdersDateFieldEnum = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.GetCollectionsDateFieldEnum = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.TemplateTypeEnum = exports.SitemapTypeEnum = exports.ShippingPricingTypeEnum = exports.ProductDetailImageZoomTypeEnum = void 0;
21
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = void 0;
22
22
  const axios_1 = __importDefault(require("axios"));
23
23
  // Some imports not used depending on template conditions
24
24
  // @ts-ignore
@@ -631,14 +631,33 @@ exports.OrderEnum = {
631
631
  * @export
632
632
  * @enum {string}
633
633
  */
634
- exports.OrderStatusEnum = {
634
+ exports.OrderPaymentStatusEnum = {
635
635
  WAITING_PAYMENT: 'waiting_payment',
636
636
  PAID: 'paid',
637
- CANCELED: 'canceled',
637
+ FAILED: 'failed'
638
+ };
639
+ /**
640
+ *
641
+ * @export
642
+ * @enum {string}
643
+ */
644
+ exports.OrderReturnStatusEnum = {
645
+ WAITING_APPROVAL: 'waiting_approval',
646
+ REJECTED: 'rejected',
647
+ WAITING_RETURN: 'waiting_return',
648
+ RETURNED: 'returned'
649
+ };
650
+ /**
651
+ *
652
+ * @export
653
+ * @enum {string}
654
+ */
655
+ exports.OrderStatusEnum = {
656
+ CANCELLED: 'cancelled',
657
+ NOT_SHIPPED: 'not_shipped',
638
658
  READY_TO_SHIP: 'ready_to_ship',
639
659
  SHIPPED: 'shipped',
640
- COMPLETED: 'completed',
641
- FAILED: 'failed'
660
+ COMPLETED: 'completed'
642
661
  };
643
662
  /**
644
663
  *
package/dist/api/api.mjs CHANGED
@@ -620,14 +620,33 @@ export const OrderEnum = {
620
620
  * @export
621
621
  * @enum {string}
622
622
  */
623
- export const OrderStatusEnum = {
623
+ export const OrderPaymentStatusEnum = {
624
624
  WAITING_PAYMENT: 'waiting_payment',
625
625
  PAID: 'paid',
626
- CANCELED: 'canceled',
626
+ FAILED: 'failed'
627
+ };
628
+ /**
629
+ *
630
+ * @export
631
+ * @enum {string}
632
+ */
633
+ export const OrderReturnStatusEnum = {
634
+ WAITING_APPROVAL: 'waiting_approval',
635
+ REJECTED: 'rejected',
636
+ WAITING_RETURN: 'waiting_return',
637
+ RETURNED: 'returned'
638
+ };
639
+ /**
640
+ *
641
+ * @export
642
+ * @enum {string}
643
+ */
644
+ export const OrderStatusEnum = {
645
+ CANCELLED: 'cancelled',
646
+ NOT_SHIPPED: 'not_shipped',
627
647
  READY_TO_SHIP: 'ready_to_ship',
628
648
  SHIPPED: 'shipped',
629
- COMPLETED: 'completed',
630
- FAILED: 'failed'
649
+ COMPLETED: 'completed'
631
650
  };
632
651
  /**
633
652
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.52",
3
+ "version": "1.2.54",
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": "1ca5ddd8d00a4fa30fe97a8e3fa3d34c43d74777"
40
+ "gitHead": "06af9e7831c4470bfe4ec03484f9ded54fdedb56"
41
41
  }