@infisale-client/api-client 1.1.25 → 1.1.28

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
@@ -779,7 +779,13 @@ export interface IBrandCollectionQueryParams {
779
779
  * @type {string}
780
780
  * @memberof IBrandCollectionQueryParams
781
781
  */
782
- 'company_id': string;
782
+ 'company_id'?: string;
783
+ /**
784
+ *
785
+ * @type {string}
786
+ * @memberof IBrandCollectionQueryParams
787
+ */
788
+ 'domain'?: string;
783
789
  /**
784
790
  *
785
791
  * @type {ContentStatusEnum}
@@ -1065,7 +1071,13 @@ export interface ICategoryCollectionQueryParams {
1065
1071
  * @type {string}
1066
1072
  * @memberof ICategoryCollectionQueryParams
1067
1073
  */
1068
- 'company_id': string;
1074
+ 'company_id'?: string;
1075
+ /**
1076
+ *
1077
+ * @type {string}
1078
+ * @memberof ICategoryCollectionQueryParams
1079
+ */
1080
+ 'domain'?: string;
1069
1081
  /**
1070
1082
  *
1071
1083
  * @type {ContentStatusEnum}
@@ -3331,6 +3343,190 @@ export interface ICompanyUsersResponse {
3331
3343
  */
3332
3344
  'users': Array<ICompanyAdminResponseUsersInner>;
3333
3345
  }
3346
+ /**
3347
+ *
3348
+ * @export
3349
+ * @interface IContactFormCollectionQueryParams
3350
+ */
3351
+ export interface IContactFormCollectionQueryParams {
3352
+ /**
3353
+ *
3354
+ * @type {number}
3355
+ * @memberof IContactFormCollectionQueryParams
3356
+ */
3357
+ 'page'?: number;
3358
+ /**
3359
+ *
3360
+ * @type {number}
3361
+ * @memberof IContactFormCollectionQueryParams
3362
+ */
3363
+ 'itemsPerPage'?: number;
3364
+ /**
3365
+ *
3366
+ * @type {string}
3367
+ * @memberof IContactFormCollectionQueryParams
3368
+ */
3369
+ 'search'?: string;
3370
+ /**
3371
+ *
3372
+ * @type {string}
3373
+ * @memberof IContactFormCollectionQueryParams
3374
+ */
3375
+ 'startDate'?: string;
3376
+ /**
3377
+ *
3378
+ * @type {string}
3379
+ * @memberof IContactFormCollectionQueryParams
3380
+ */
3381
+ 'endDate'?: string;
3382
+ /**
3383
+ *
3384
+ * @type {string}
3385
+ * @memberof IContactFormCollectionQueryParams
3386
+ */
3387
+ 'dateField'?: string;
3388
+ /**
3389
+ *
3390
+ * @type {OrderEnum}
3391
+ * @memberof IContactFormCollectionQueryParams
3392
+ */
3393
+ 'order'?: OrderEnum;
3394
+ /**
3395
+ *
3396
+ * @type {string}
3397
+ * @memberof IContactFormCollectionQueryParams
3398
+ */
3399
+ 'sort'?: string;
3400
+ /**
3401
+ *
3402
+ * @type {string}
3403
+ * @memberof IContactFormCollectionQueryParams
3404
+ */
3405
+ 'company_id': string;
3406
+ }
3407
+ /**
3408
+ *
3409
+ * @export
3410
+ * @interface IContactFormPostRequest
3411
+ */
3412
+ export interface IContactFormPostRequest {
3413
+ /**
3414
+ *
3415
+ * @type {string}
3416
+ * @memberof IContactFormPostRequest
3417
+ */
3418
+ 'name'?: string;
3419
+ /**
3420
+ *
3421
+ * @type {string}
3422
+ * @memberof IContactFormPostRequest
3423
+ */
3424
+ 'email': string;
3425
+ /**
3426
+ *
3427
+ * @type {string}
3428
+ * @memberof IContactFormPostRequest
3429
+ */
3430
+ 'message': string;
3431
+ }
3432
+ /**
3433
+ *
3434
+ * @export
3435
+ * @interface IContactFormResponse
3436
+ */
3437
+ export interface IContactFormResponse {
3438
+ /**
3439
+ *
3440
+ * @type {string}
3441
+ * @memberof IContactFormResponse
3442
+ */
3443
+ '_id': string;
3444
+ /**
3445
+ *
3446
+ * @type {number}
3447
+ * @memberof IContactFormResponse
3448
+ */
3449
+ '__v': number;
3450
+ /**
3451
+ *
3452
+ * @type {string}
3453
+ * @memberof IContactFormResponse
3454
+ */
3455
+ 'createdAt': string;
3456
+ /**
3457
+ *
3458
+ * @type {string}
3459
+ * @memberof IContactFormResponse
3460
+ */
3461
+ 'updatedAt': string;
3462
+ /**
3463
+ *
3464
+ * @type {string}
3465
+ * @memberof IContactFormResponse
3466
+ */
3467
+ 'company': string;
3468
+ /**
3469
+ *
3470
+ * @type {string}
3471
+ * @memberof IContactFormResponse
3472
+ */
3473
+ 'email': string;
3474
+ /**
3475
+ *
3476
+ * @type {string}
3477
+ * @memberof IContactFormResponse
3478
+ */
3479
+ 'name'?: string;
3480
+ /**
3481
+ *
3482
+ * @type {string}
3483
+ * @memberof IContactFormResponse
3484
+ */
3485
+ 'message': string;
3486
+ /**
3487
+ *
3488
+ * @type {string}
3489
+ * @memberof IContactFormResponse
3490
+ */
3491
+ 'ip': string;
3492
+ }
3493
+ /**
3494
+ *
3495
+ * @export
3496
+ * @interface IContactFormsResponse
3497
+ */
3498
+ export interface IContactFormsResponse {
3499
+ /**
3500
+ *
3501
+ * @type {number}
3502
+ * @memberof IContactFormsResponse
3503
+ */
3504
+ 'page': number;
3505
+ /**
3506
+ *
3507
+ * @type {number}
3508
+ * @memberof IContactFormsResponse
3509
+ */
3510
+ 'itemsPerPage': number;
3511
+ /**
3512
+ *
3513
+ * @type {number}
3514
+ * @memberof IContactFormsResponse
3515
+ */
3516
+ 'total': number;
3517
+ /**
3518
+ *
3519
+ * @type {number}
3520
+ * @memberof IContactFormsResponse
3521
+ */
3522
+ 'totalPages': number;
3523
+ /**
3524
+ *
3525
+ * @type {Array<IContactFormResponse>}
3526
+ * @memberof IContactFormsResponse
3527
+ */
3528
+ 'data': Array<IContactFormResponse>;
3529
+ }
3334
3530
  /**
3335
3531
  *
3336
3532
  * @export
@@ -5600,12 +5796,6 @@ export interface IResetPasswordRequest {
5600
5796
  * @memberof IResetPasswordRequest
5601
5797
  */
5602
5798
  'code': string;
5603
- /**
5604
- *
5605
- * @type {string}
5606
- * @memberof IResetPasswordRequest
5607
- */
5608
- 'email': string;
5609
5799
  }
5610
5800
  /**
5611
5801
  *
@@ -5848,6 +6038,12 @@ export interface ITemplateResponseComponentsInnerConfig {
5848
6038
  * @memberof ITemplateResponseComponentsInnerConfig
5849
6039
  */
5850
6040
  'autoPlay'?: boolean;
6041
+ /**
6042
+ *
6043
+ * @type {boolean}
6044
+ * @memberof ITemplateResponseComponentsInnerConfig
6045
+ */
6046
+ 'addName'?: boolean;
5851
6047
  }
5852
6048
  /**
5853
6049
  *
@@ -6366,6 +6562,12 @@ export interface IUserResponse {
6366
6562
  * @memberof IUserResponse
6367
6563
  */
6368
6564
  'language': LanguageEnum;
6565
+ /**
6566
+ *
6567
+ * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions}
6568
+ * @memberof IUserResponse
6569
+ */
6570
+ 'contact_permissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
6369
6571
  /**
6370
6572
  *
6371
6573
  * @type {UserStatusEnum}
@@ -6514,7 +6716,7 @@ export type NavigationUrlTargetEnum = typeof NavigationUrlTargetEnum[keyof typeo
6514
6716
  /**
6515
6717
  *
6516
6718
  * @export
6517
- * @enum {string}
6719
+ * @enum {number}
6518
6720
  */
6519
6721
  export declare const NotificationMessageEnum: {
6520
6722
  readonly NUMBER_404: 404;
@@ -7263,6 +7465,31 @@ export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUse
7263
7465
  */
7264
7466
  'user': string;
7265
7467
  }
7468
+ /**
7469
+ * From T, pick a set of properties whose keys are in the union K
7470
+ * @export
7471
+ * @interface PickIContactFormExcludeKeyofIContactFormKeyofMongoResponseOrCompanyOrIp
7472
+ */
7473
+ export interface PickIContactFormExcludeKeyofIContactFormKeyofMongoResponseOrCompanyOrIp {
7474
+ /**
7475
+ *
7476
+ * @type {string}
7477
+ * @memberof PickIContactFormExcludeKeyofIContactFormKeyofMongoResponseOrCompanyOrIp
7478
+ */
7479
+ 'name'?: string;
7480
+ /**
7481
+ *
7482
+ * @type {string}
7483
+ * @memberof PickIContactFormExcludeKeyofIContactFormKeyofMongoResponseOrCompanyOrIp
7484
+ */
7485
+ 'email': string;
7486
+ /**
7487
+ *
7488
+ * @type {string}
7489
+ * @memberof PickIContactFormExcludeKeyofIContactFormKeyofMongoResponseOrCompanyOrIp
7490
+ */
7491
+ 'message': string;
7492
+ }
7266
7493
  /**
7267
7494
  * From T, pick a set of properties whose keys are in the union K
7268
7495
  * @export
@@ -7727,6 +7954,12 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
7727
7954
  * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
7728
7955
  */
7729
7956
  'language': LanguageEnum;
7957
+ /**
7958
+ *
7959
+ * @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions}
7960
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
7961
+ */
7962
+ 'contact_permissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
7730
7963
  /**
7731
7964
  *
7732
7965
  * @type {UserStatusEnum}
@@ -7758,6 +7991,25 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
7758
7991
  */
7759
7992
  'updatedAt': string;
7760
7993
  }
7994
+ /**
7995
+ *
7996
+ * @export
7997
+ * @interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions
7998
+ */
7999
+ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions {
8000
+ /**
8001
+ *
8002
+ * @type {boolean}
8003
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions
8004
+ */
8005
+ 'sms': boolean;
8006
+ /**
8007
+ *
8008
+ * @type {boolean}
8009
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions
8010
+ */
8011
+ 'email': boolean;
8012
+ }
7761
8013
  /**
7762
8014
  *
7763
8015
  * @export
@@ -8773,6 +9025,74 @@ export declare class CompanyApi extends BaseAPI {
8773
9025
  */
8774
9026
  getCompanyByDomainName(requestParameters: CompanyApiGetCompanyByDomainNameRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyResponse, any>>;
8775
9027
  }
9028
+ /**
9029
+ * ContactFormApi - axios parameter creator
9030
+ * @export
9031
+ */
9032
+ export declare const ContactFormApiAxiosParamCreator: (configuration?: Configuration) => {
9033
+ /**
9034
+ *
9035
+ * @param {IContactFormPostRequest} iContactFormPostRequest
9036
+ * @param {*} [options] Override http request option.
9037
+ * @throws {RequiredError}
9038
+ */
9039
+ createContactForm: (iContactFormPostRequest: IContactFormPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9040
+ };
9041
+ /**
9042
+ * ContactFormApi - functional programming interface
9043
+ * @export
9044
+ */
9045
+ export declare const ContactFormApiFp: (configuration?: Configuration) => {
9046
+ /**
9047
+ *
9048
+ * @param {IContactFormPostRequest} iContactFormPostRequest
9049
+ * @param {*} [options] Override http request option.
9050
+ * @throws {RequiredError}
9051
+ */
9052
+ createContactForm(iContactFormPostRequest: IContactFormPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IContactFormResponse>>;
9053
+ };
9054
+ /**
9055
+ * ContactFormApi - factory interface
9056
+ * @export
9057
+ */
9058
+ export declare const ContactFormApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
9059
+ /**
9060
+ *
9061
+ * @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
9062
+ * @param {*} [options] Override http request option.
9063
+ * @throws {RequiredError}
9064
+ */
9065
+ createContactForm(requestParameters: ContactFormApiCreateContactFormRequest, options?: RawAxiosRequestConfig): AxiosPromise<IContactFormResponse>;
9066
+ };
9067
+ /**
9068
+ * Request parameters for createContactForm operation in ContactFormApi.
9069
+ * @export
9070
+ * @interface ContactFormApiCreateContactFormRequest
9071
+ */
9072
+ export interface ContactFormApiCreateContactFormRequest {
9073
+ /**
9074
+ *
9075
+ * @type {IContactFormPostRequest}
9076
+ * @memberof ContactFormApiCreateContactForm
9077
+ */
9078
+ readonly iContactFormPostRequest: IContactFormPostRequest;
9079
+ }
9080
+ /**
9081
+ * ContactFormApi - object-oriented interface
9082
+ * @export
9083
+ * @class ContactFormApi
9084
+ * @extends {BaseAPI}
9085
+ */
9086
+ export declare class ContactFormApi extends BaseAPI {
9087
+ /**
9088
+ *
9089
+ * @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
9090
+ * @param {*} [options] Override http request option.
9091
+ * @throws {RequiredError}
9092
+ * @memberof ContactFormApi
9093
+ */
9094
+ createContactForm(requestParameters: ContactFormApiCreateContactFormRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IContactFormResponse, any>>;
9095
+ }
8776
9096
  /**
8777
9097
  * PageApi - axios parameter creator
8778
9098
  * @export
package/dist/api/api.js CHANGED
@@ -16,8 +16,8 @@ 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.PageApiFp = exports.PageApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.ThemeTypeEnum = exports.TemplateTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PageTypeEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.GridTypeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = void 0;
20
- exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = void 0;
19
+ exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.ThemeTypeEnum = exports.TemplateTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PageTypeEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.GridTypeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = void 0;
20
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.ContactFormApi = exports.ContactFormApiFactory = void 0;
21
21
  const axios_1 = __importDefault(require("axios"));
22
22
  // Some imports not used depending on template conditions
23
23
  // @ts-ignore
@@ -492,7 +492,7 @@ exports.NavigationUrlTargetEnum = {
492
492
  /**
493
493
  *
494
494
  * @export
495
- * @enum {string}
495
+ * @enum {number}
496
496
  */
497
497
  exports.NotificationMessageEnum = {
498
498
  NUMBER_404: 404,
@@ -1634,6 +1634,104 @@ class CompanyApi extends base_1.BaseAPI {
1634
1634
  }
1635
1635
  }
1636
1636
  exports.CompanyApi = CompanyApi;
1637
+ /**
1638
+ * ContactFormApi - axios parameter creator
1639
+ * @export
1640
+ */
1641
+ const ContactFormApiAxiosParamCreator = function (configuration) {
1642
+ return {
1643
+ /**
1644
+ *
1645
+ * @param {IContactFormPostRequest} iContactFormPostRequest
1646
+ * @param {*} [options] Override http request option.
1647
+ * @throws {RequiredError}
1648
+ */
1649
+ createContactForm: async (iContactFormPostRequest, options = {}) => {
1650
+ // verify required parameter 'iContactFormPostRequest' is not null or undefined
1651
+ (0, common_1.assertParamExists)('createContactForm', 'iContactFormPostRequest', iContactFormPostRequest);
1652
+ const localVarPath = `/api/contact-forms`;
1653
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1654
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1655
+ let baseOptions;
1656
+ if (configuration) {
1657
+ baseOptions = configuration.baseOptions;
1658
+ }
1659
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1660
+ const localVarHeaderParameter = {};
1661
+ const localVarQueryParameter = {};
1662
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1663
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1664
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1665
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1666
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iContactFormPostRequest, localVarRequestOptions, configuration);
1667
+ return {
1668
+ url: (0, common_1.toPathString)(localVarUrlObj),
1669
+ options: localVarRequestOptions,
1670
+ };
1671
+ },
1672
+ };
1673
+ };
1674
+ exports.ContactFormApiAxiosParamCreator = ContactFormApiAxiosParamCreator;
1675
+ /**
1676
+ * ContactFormApi - functional programming interface
1677
+ * @export
1678
+ */
1679
+ const ContactFormApiFp = function (configuration) {
1680
+ const localVarAxiosParamCreator = (0, exports.ContactFormApiAxiosParamCreator)(configuration);
1681
+ return {
1682
+ /**
1683
+ *
1684
+ * @param {IContactFormPostRequest} iContactFormPostRequest
1685
+ * @param {*} [options] Override http request option.
1686
+ * @throws {RequiredError}
1687
+ */
1688
+ async createContactForm(iContactFormPostRequest, options) {
1689
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createContactForm(iContactFormPostRequest, options);
1690
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1691
+ const localVarOperationServerBasePath = base_1.operationServerMap['ContactFormApi.createContactForm']?.[localVarOperationServerIndex]?.url;
1692
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1693
+ },
1694
+ };
1695
+ };
1696
+ exports.ContactFormApiFp = ContactFormApiFp;
1697
+ /**
1698
+ * ContactFormApi - factory interface
1699
+ * @export
1700
+ */
1701
+ const ContactFormApiFactory = function (configuration, basePath, axios) {
1702
+ const localVarFp = (0, exports.ContactFormApiFp)(configuration);
1703
+ return {
1704
+ /**
1705
+ *
1706
+ * @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
1707
+ * @param {*} [options] Override http request option.
1708
+ * @throws {RequiredError}
1709
+ */
1710
+ createContactForm(requestParameters, options) {
1711
+ return localVarFp.createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(axios, basePath));
1712
+ },
1713
+ };
1714
+ };
1715
+ exports.ContactFormApiFactory = ContactFormApiFactory;
1716
+ /**
1717
+ * ContactFormApi - object-oriented interface
1718
+ * @export
1719
+ * @class ContactFormApi
1720
+ * @extends {BaseAPI}
1721
+ */
1722
+ class ContactFormApi extends base_1.BaseAPI {
1723
+ /**
1724
+ *
1725
+ * @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
1726
+ * @param {*} [options] Override http request option.
1727
+ * @throws {RequiredError}
1728
+ * @memberof ContactFormApi
1729
+ */
1730
+ createContactForm(requestParameters, options) {
1731
+ return (0, exports.ContactFormApiFp)(this.configuration).createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(this.axios, this.basePath));
1732
+ }
1733
+ }
1734
+ exports.ContactFormApi = ContactFormApi;
1637
1735
  /**
1638
1736
  * PageApi - axios parameter creator
1639
1737
  * @export
package/dist/api/api.mjs CHANGED
@@ -482,7 +482,7 @@ export const NavigationUrlTargetEnum = {
482
482
  /**
483
483
  *
484
484
  * @export
485
- * @enum {string}
485
+ * @enum {number}
486
486
  */
487
487
  export const NotificationMessageEnum = {
488
488
  NUMBER_404: 404,
@@ -1608,6 +1608,100 @@ export class CompanyApi extends BaseAPI {
1608
1608
  return CompanyApiFp(this.configuration).getCompanyByDomainName(requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
1609
1609
  }
1610
1610
  }
1611
+ /**
1612
+ * ContactFormApi - axios parameter creator
1613
+ * @export
1614
+ */
1615
+ export const ContactFormApiAxiosParamCreator = function (configuration) {
1616
+ return {
1617
+ /**
1618
+ *
1619
+ * @param {IContactFormPostRequest} iContactFormPostRequest
1620
+ * @param {*} [options] Override http request option.
1621
+ * @throws {RequiredError}
1622
+ */
1623
+ createContactForm: async (iContactFormPostRequest, options = {}) => {
1624
+ // verify required parameter 'iContactFormPostRequest' is not null or undefined
1625
+ assertParamExists('createContactForm', 'iContactFormPostRequest', iContactFormPostRequest);
1626
+ const localVarPath = `/api/contact-forms`;
1627
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1628
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1629
+ let baseOptions;
1630
+ if (configuration) {
1631
+ baseOptions = configuration.baseOptions;
1632
+ }
1633
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1634
+ const localVarHeaderParameter = {};
1635
+ const localVarQueryParameter = {};
1636
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1637
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1638
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1639
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1640
+ localVarRequestOptions.data = serializeDataIfNeeded(iContactFormPostRequest, localVarRequestOptions, configuration);
1641
+ return {
1642
+ url: toPathString(localVarUrlObj),
1643
+ options: localVarRequestOptions,
1644
+ };
1645
+ },
1646
+ };
1647
+ };
1648
+ /**
1649
+ * ContactFormApi - functional programming interface
1650
+ * @export
1651
+ */
1652
+ export const ContactFormApiFp = function (configuration) {
1653
+ const localVarAxiosParamCreator = ContactFormApiAxiosParamCreator(configuration);
1654
+ return {
1655
+ /**
1656
+ *
1657
+ * @param {IContactFormPostRequest} iContactFormPostRequest
1658
+ * @param {*} [options] Override http request option.
1659
+ * @throws {RequiredError}
1660
+ */
1661
+ async createContactForm(iContactFormPostRequest, options) {
1662
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createContactForm(iContactFormPostRequest, options);
1663
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1664
+ const localVarOperationServerBasePath = operationServerMap['ContactFormApi.createContactForm']?.[localVarOperationServerIndex]?.url;
1665
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1666
+ },
1667
+ };
1668
+ };
1669
+ /**
1670
+ * ContactFormApi - factory interface
1671
+ * @export
1672
+ */
1673
+ export const ContactFormApiFactory = function (configuration, basePath, axios) {
1674
+ const localVarFp = ContactFormApiFp(configuration);
1675
+ return {
1676
+ /**
1677
+ *
1678
+ * @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
1679
+ * @param {*} [options] Override http request option.
1680
+ * @throws {RequiredError}
1681
+ */
1682
+ createContactForm(requestParameters, options) {
1683
+ return localVarFp.createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(axios, basePath));
1684
+ },
1685
+ };
1686
+ };
1687
+ /**
1688
+ * ContactFormApi - object-oriented interface
1689
+ * @export
1690
+ * @class ContactFormApi
1691
+ * @extends {BaseAPI}
1692
+ */
1693
+ export class ContactFormApi extends BaseAPI {
1694
+ /**
1695
+ *
1696
+ * @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
1697
+ * @param {*} [options] Override http request option.
1698
+ * @throws {RequiredError}
1699
+ * @memberof ContactFormApi
1700
+ */
1701
+ createContactForm(requestParameters, options) {
1702
+ return ContactFormApiFp(this.configuration).createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(this.axios, this.basePath));
1703
+ }
1704
+ }
1611
1705
  /**
1612
1706
  * PageApi - axios parameter creator
1613
1707
  * @export
package/dist/index.js CHANGED
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
18
18
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
19
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
20
  };
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
28
38
  var __importDefault = (this && this.__importDefault) || function (mod) {
29
39
  return (mod && mod.__esModule) ? mod : { "default": mod };
30
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.1.25",
3
+ "version": "1.1.28",
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",
@@ -11,7 +11,7 @@
11
11
  "types": "dist/index.d.ts",
12
12
  "scripts": {
13
13
  "build": "npm run openapi && npm exec tsc-multi",
14
- "openapi": "openapi-generator generate -i swagger-client.json -g typescript-axios -o lib/api --additional-properties=useSingleRequestParameter=true,enumPropertyNaming=UPPERCASE"
14
+ "openapi": "npx @openapitools/openapi-generator-cli generate -i swagger-client.json -g typescript-axios -o lib/api --additional-properties=useSingleRequestParameter=true,enumPropertyNaming=UPPERCASE"
15
15
  },
16
16
  "files": [
17
17
  "dist"
@@ -27,6 +27,7 @@
27
27
  "typescript": "^5.6.2"
28
28
  },
29
29
  "dependencies": {
30
+ "@openapitools/openapi-generator-cli": "^2.15.3",
30
31
  "axios": "^1.7.7"
31
32
  },
32
33
  "repository": {
@@ -36,5 +37,5 @@
36
37
  "bugs": {
37
38
  "url": "https://github.com/infisale/infisale-client/issues"
38
39
  },
39
- "gitHead": "48cae91737103ce6d0d0ecf70c248c48e87d60ba"
40
+ "gitHead": "00ca022bb2f017b62eb0beaf0a0c6b719d784ee2"
40
41
  }