@infisale-client/api-client 1.2.85 → 1.2.86

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
@@ -2231,6 +2231,12 @@ export interface ICompany {
2231
2231
  * @memberof ICompany
2232
2232
  */
2233
2233
  'versions': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTVersionsInner>;
2234
+ /**
2235
+ *
2236
+ * @type {string}
2237
+ * @memberof ICompany
2238
+ */
2239
+ 'subscriptionEndsAt': string;
2234
2240
  }
2235
2241
  /**
2236
2242
  *
@@ -2426,6 +2432,12 @@ export interface ICompanyAdminResponse {
2426
2432
  * @memberof ICompanyAdminResponse
2427
2433
  */
2428
2434
  'autoApproveReviews': boolean;
2435
+ /**
2436
+ *
2437
+ * @type {string}
2438
+ * @memberof ICompanyAdminResponse
2439
+ */
2440
+ 'subscriptionEndsAt': string;
2429
2441
  /**
2430
2442
  *
2431
2443
  * @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles}
@@ -2864,6 +2876,12 @@ export interface ICompanyPatchRequest {
2864
2876
  * @memberof ICompanyPatchRequest
2865
2877
  */
2866
2878
  'autoApproveReviews'?: boolean;
2879
+ /**
2880
+ *
2881
+ * @type {string}
2882
+ * @memberof ICompanyPatchRequest
2883
+ */
2884
+ 'subscriptionEndsAt'?: string;
2867
2885
  }
2868
2886
  /**
2869
2887
  *
@@ -3170,6 +3188,12 @@ export interface ICompanyResponse {
3170
3188
  * @memberof ICompanyResponse
3171
3189
  */
3172
3190
  'autoApproveReviews': boolean;
3191
+ /**
3192
+ *
3193
+ * @type {string}
3194
+ * @memberof ICompanyResponse
3195
+ */
3196
+ 'subscriptionEndsAt': string;
3173
3197
  /**
3174
3198
  *
3175
3199
  * @type {PickICompanyNameOrDomainsOrIdOrLanguage}
@@ -5223,28 +5247,28 @@ export interface IOrderPostRequest {
5223
5247
  'cardOwner'?: string;
5224
5248
  /**
5225
5249
  *
5226
- * @type {number}
5250
+ * @type {string}
5227
5251
  * @memberof IOrderPostRequest
5228
5252
  */
5229
- 'cardNumber'?: number;
5253
+ 'cardNumber'?: string;
5230
5254
  /**
5231
5255
  *
5232
- * @type {number}
5256
+ * @type {string}
5233
5257
  * @memberof IOrderPostRequest
5234
5258
  */
5235
- 'cardExpiryMonth'?: number;
5259
+ 'cardExpiryMonth'?: string;
5236
5260
  /**
5237
5261
  *
5238
- * @type {number}
5262
+ * @type {string}
5239
5263
  * @memberof IOrderPostRequest
5240
5264
  */
5241
- 'cardExpiryYear'?: number;
5265
+ 'cardExpiryYear'?: string;
5242
5266
  /**
5243
5267
  *
5244
- * @type {number}
5268
+ * @type {string}
5245
5269
  * @memberof IOrderPostRequest
5246
5270
  */
5247
- 'cardCvv'?: number;
5271
+ 'cardCvv'?: string;
5248
5272
  /**
5249
5273
  *
5250
5274
  * @type {string}
@@ -5938,6 +5962,177 @@ export interface IPagesResponse {
5938
5962
  */
5939
5963
  'data': Array<IPageResponse>;
5940
5964
  }
5965
+ /**
5966
+ *
5967
+ * @export
5968
+ * @interface IPayment
5969
+ */
5970
+ export interface IPayment {
5971
+ /**
5972
+ *
5973
+ * @type {string}
5974
+ * @memberof IPayment
5975
+ */
5976
+ '_id': string;
5977
+ /**
5978
+ *
5979
+ * @type {number}
5980
+ * @memberof IPayment
5981
+ */
5982
+ '__v': number;
5983
+ /**
5984
+ *
5985
+ * @type {string}
5986
+ * @memberof IPayment
5987
+ */
5988
+ 'createdAt': string;
5989
+ /**
5990
+ *
5991
+ * @type {string}
5992
+ * @memberof IPayment
5993
+ */
5994
+ 'updatedAt': string;
5995
+ /**
5996
+ *
5997
+ * @type {string}
5998
+ * @memberof IPayment
5999
+ */
6000
+ 'company': string;
6001
+ /**
6002
+ *
6003
+ * @type {number}
6004
+ * @memberof IPayment
6005
+ */
6006
+ 'period': number;
6007
+ /**
6008
+ *
6009
+ * @type {number}
6010
+ * @memberof IPayment
6011
+ */
6012
+ 'total': number;
6013
+ /**
6014
+ *
6015
+ * @type {PaymentStatusEnum}
6016
+ * @memberof IPayment
6017
+ */
6018
+ 'status': PaymentStatusEnum;
6019
+ }
6020
+ /**
6021
+ *
6022
+ * @export
6023
+ * @interface IPaymentCreateResponse
6024
+ */
6025
+ export interface IPaymentCreateResponse {
6026
+ /**
6027
+ *
6028
+ * @type {string}
6029
+ * @memberof IPaymentCreateResponse
6030
+ */
6031
+ 'redirectUrl': string;
6032
+ /**
6033
+ *
6034
+ * @type {string}
6035
+ * @memberof IPaymentCreateResponse
6036
+ */
6037
+ 'html'?: string;
6038
+ /**
6039
+ *
6040
+ * @type {string}
6041
+ * @memberof IPaymentCreateResponse
6042
+ */
6043
+ 'paymentId'?: string;
6044
+ /**
6045
+ *
6046
+ * @type {string}
6047
+ * @memberof IPaymentCreateResponse
6048
+ */
6049
+ 'iframe'?: string;
6050
+ }
6051
+ /**
6052
+ *
6053
+ * @export
6054
+ * @interface IPaymentPostRequest
6055
+ */
6056
+ export interface IPaymentPostRequest {
6057
+ /**
6058
+ *
6059
+ * @type {string}
6060
+ * @memberof IPaymentPostRequest
6061
+ */
6062
+ 'period': IPaymentPostRequestPeriodEnum;
6063
+ /**
6064
+ *
6065
+ * @type {string}
6066
+ * @memberof IPaymentPostRequest
6067
+ */
6068
+ 'cardOwner': string;
6069
+ /**
6070
+ *
6071
+ * @type {string}
6072
+ * @memberof IPaymentPostRequest
6073
+ */
6074
+ 'cardNumber': string;
6075
+ /**
6076
+ *
6077
+ * @type {string}
6078
+ * @memberof IPaymentPostRequest
6079
+ */
6080
+ 'cardExpiryMonth': string;
6081
+ /**
6082
+ *
6083
+ * @type {string}
6084
+ * @memberof IPaymentPostRequest
6085
+ */
6086
+ 'cardExpiryYear': string;
6087
+ /**
6088
+ *
6089
+ * @type {string}
6090
+ * @memberof IPaymentPostRequest
6091
+ */
6092
+ 'cardCvv': string;
6093
+ }
6094
+ export declare const IPaymentPostRequestPeriodEnum: {
6095
+ readonly MONTHLY: "monthly";
6096
+ readonly YEARLY: "yearly";
6097
+ };
6098
+ export type IPaymentPostRequestPeriodEnum = typeof IPaymentPostRequestPeriodEnum[keyof typeof IPaymentPostRequestPeriodEnum];
6099
+ /**
6100
+ *
6101
+ * @export
6102
+ * @interface IPaymentResponse
6103
+ */
6104
+ export interface IPaymentResponse {
6105
+ /**
6106
+ *
6107
+ * @type {number}
6108
+ * @memberof IPaymentResponse
6109
+ */
6110
+ 'totalPages': number;
6111
+ /**
6112
+ *
6113
+ * @type {number}
6114
+ * @memberof IPaymentResponse
6115
+ */
6116
+ 'page': number;
6117
+ /**
6118
+ *
6119
+ * @type {number}
6120
+ * @memberof IPaymentResponse
6121
+ */
6122
+ 'itemsPerPage': number;
6123
+ /**
6124
+ *
6125
+ * @type {number}
6126
+ * @memberof IPaymentResponse
6127
+ */
6128
+ 'total': number;
6129
+ /**
6130
+ *
6131
+ * @type {Array<IPayment>}
6132
+ * @memberof IPaymentResponse
6133
+ */
6134
+ 'data': Array<IPayment>;
6135
+ }
5941
6136
  /**
5942
6137
  *
5943
6138
  * @export
@@ -8878,6 +9073,7 @@ export interface PartialRecordLanguageEnumTitleString {
8878
9073
  export declare const PaymentGatewayEnum: {
8879
9074
  readonly IYZICO: "iyzico";
8880
9075
  readonly PAYTR: "paytr";
9076
+ readonly PAPARA: "papara";
8881
9077
  };
8882
9078
  export type PaymentGatewayEnum = typeof PaymentGatewayEnum[keyof typeof PaymentGatewayEnum];
8883
9079
  /**
@@ -8892,6 +9088,17 @@ export declare const PaymentMethodEnum: {
8892
9088
  readonly CARD_ON_DELIVERY: "card_on_delivery";
8893
9089
  };
8894
9090
  export type PaymentMethodEnum = typeof PaymentMethodEnum[keyof typeof PaymentMethodEnum];
9091
+ /**
9092
+ *
9093
+ * @export
9094
+ * @enum {string}
9095
+ */
9096
+ export declare const PaymentStatusEnum: {
9097
+ readonly WAITING_APPROVAL: "waiting_approval";
9098
+ readonly PAID: "paid";
9099
+ readonly FAILED: "failed";
9100
+ };
9101
+ export type PaymentStatusEnum = typeof PaymentStatusEnum[keyof typeof PaymentStatusEnum];
8895
9102
  /**
8896
9103
  * From T, pick a set of properties whose keys are in the union K
8897
9104
  * @export
@@ -9369,6 +9576,12 @@ export interface PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys {
9369
9576
  * @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
9370
9577
  */
9371
9578
  'autoApproveReviews': boolean;
9579
+ /**
9580
+ *
9581
+ * @type {string}
9582
+ * @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
9583
+ */
9584
+ 'subscriptionEndsAt': string;
9372
9585
  }
9373
9586
  /**
9374
9587
  *
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.PaymentGatewayEnum = exports.PageTypeEnum = exports.OrderStatusEnum = exports.OrderShippedStatusEnum = exports.OrderReturnStatusEnumWAITINGRETURN = exports.OrderReturnStatusEnumRETURNED = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsSortEnum = 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.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.ReviewStatusEnum = exports.ProductDetailImageZoomTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PickIThemeExcludeKeyofIThemeTemplateConfigBlogCardTextAlignEnum = exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = exports.PaymentMethodEnum = void 0;
21
- exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsSortEnum = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = void 0;
19
+ exports.PageTypeEnum = exports.OrderStatusEnum = exports.OrderShippedStatusEnum = exports.OrderReturnStatusEnumWAITINGRETURN = exports.OrderReturnStatusEnumRETURNED = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsSortEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPaymentPostRequestPeriodEnum = 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.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.ReviewStatusEnum = exports.ProductDetailImageZoomTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PickIThemeExcludeKeyofIThemeTemplateConfigBlogCardTextAlignEnum = exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = exports.PaymentStatusEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = void 0;
21
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsSortEnum = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = void 0;
22
22
  const axios_1 = __importDefault(require("axios"));
23
23
  // Some imports not used depending on template conditions
24
24
  // @ts-ignore
@@ -566,6 +566,10 @@ exports.IPageCollectionQueryParamsDateFieldEnum = {
566
566
  CREATED_AT: 'createdAt',
567
567
  UPDATED_AT: 'updatedAt'
568
568
  };
569
+ exports.IPaymentPostRequestPeriodEnum = {
570
+ MONTHLY: 'monthly',
571
+ YEARLY: 'yearly'
572
+ };
569
573
  exports.IPlanCollectionQueryParamsDateFieldEnum = {
570
574
  CREATED_AT: 'createdAt',
571
575
  UPDATED_AT: 'updatedAt'
@@ -714,7 +718,8 @@ exports.PageTypeEnum = {
714
718
  */
715
719
  exports.PaymentGatewayEnum = {
716
720
  IYZICO: 'iyzico',
717
- PAYTR: 'paytr'
721
+ PAYTR: 'paytr',
722
+ PAPARA: 'papara'
718
723
  };
719
724
  /**
720
725
  *
@@ -727,6 +732,16 @@ exports.PaymentMethodEnum = {
727
732
  CASH_ON_DELIVERY: 'cash_on_delivery',
728
733
  CARD_ON_DELIVERY: 'card_on_delivery'
729
734
  };
735
+ /**
736
+ *
737
+ * @export
738
+ * @enum {string}
739
+ */
740
+ exports.PaymentStatusEnum = {
741
+ WAITING_APPROVAL: 'waiting_approval',
742
+ PAID: 'paid',
743
+ FAILED: 'failed'
744
+ };
730
745
  exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = {
731
746
  CREATED_AT: 'createdAt',
732
747
  UPDATED_AT: 'updatedAt'
package/dist/api/api.mjs CHANGED
@@ -555,6 +555,10 @@ export const IPageCollectionQueryParamsDateFieldEnum = {
555
555
  CREATED_AT: 'createdAt',
556
556
  UPDATED_AT: 'updatedAt'
557
557
  };
558
+ export const IPaymentPostRequestPeriodEnum = {
559
+ MONTHLY: 'monthly',
560
+ YEARLY: 'yearly'
561
+ };
558
562
  export const IPlanCollectionQueryParamsDateFieldEnum = {
559
563
  CREATED_AT: 'createdAt',
560
564
  UPDATED_AT: 'updatedAt'
@@ -703,7 +707,8 @@ export const PageTypeEnum = {
703
707
  */
704
708
  export const PaymentGatewayEnum = {
705
709
  IYZICO: 'iyzico',
706
- PAYTR: 'paytr'
710
+ PAYTR: 'paytr',
711
+ PAPARA: 'papara'
707
712
  };
708
713
  /**
709
714
  *
@@ -716,6 +721,16 @@ export const PaymentMethodEnum = {
716
721
  CASH_ON_DELIVERY: 'cash_on_delivery',
717
722
  CARD_ON_DELIVERY: 'card_on_delivery'
718
723
  };
724
+ /**
725
+ *
726
+ * @export
727
+ * @enum {string}
728
+ */
729
+ export const PaymentStatusEnum = {
730
+ WAITING_APPROVAL: 'waiting_approval',
731
+ PAID: 'paid',
732
+ FAILED: 'failed'
733
+ };
719
734
  export const PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = {
720
735
  CREATED_AT: 'createdAt',
721
736
  UPDATED_AT: 'updatedAt'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.85",
3
+ "version": "1.2.86",
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": "96c00b15179c70d7ab7f224addd78142ce581607"
40
+ "gitHead": "b4d72ad087dec98f5f24eb46bf5bf319826c318d"
41
41
  }