@infisale-client/api 1.1.26 → 1.1.29
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 +505 -1
- package/dist/api/api.js +323 -2
- package/dist/api/api.mjs +318 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +4 -3
package/dist/api/api.d.ts
CHANGED
|
@@ -3343,6 +3343,190 @@ export interface ICompanyUsersResponse {
|
|
|
3343
3343
|
*/
|
|
3344
3344
|
'users': Array<ICompanyAdminResponseUsersInner>;
|
|
3345
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
|
+
}
|
|
3346
3530
|
/**
|
|
3347
3531
|
*
|
|
3348
3532
|
* @export
|
|
@@ -5854,6 +6038,12 @@ export interface ITemplateResponseComponentsInnerConfig {
|
|
|
5854
6038
|
* @memberof ITemplateResponseComponentsInnerConfig
|
|
5855
6039
|
*/
|
|
5856
6040
|
'autoPlay'?: boolean;
|
|
6041
|
+
/**
|
|
6042
|
+
*
|
|
6043
|
+
* @type {boolean}
|
|
6044
|
+
* @memberof ITemplateResponseComponentsInnerConfig
|
|
6045
|
+
*/
|
|
6046
|
+
'addName'?: boolean;
|
|
5857
6047
|
}
|
|
5858
6048
|
/**
|
|
5859
6049
|
*
|
|
@@ -6372,6 +6562,12 @@ export interface IUserResponse {
|
|
|
6372
6562
|
* @memberof IUserResponse
|
|
6373
6563
|
*/
|
|
6374
6564
|
'language': LanguageEnum;
|
|
6565
|
+
/**
|
|
6566
|
+
*
|
|
6567
|
+
* @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions}
|
|
6568
|
+
* @memberof IUserResponse
|
|
6569
|
+
*/
|
|
6570
|
+
'contact_permissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
|
|
6375
6571
|
/**
|
|
6376
6572
|
*
|
|
6377
6573
|
* @type {UserStatusEnum}
|
|
@@ -6520,7 +6716,7 @@ export type NavigationUrlTargetEnum = typeof NavigationUrlTargetEnum[keyof typeo
|
|
|
6520
6716
|
/**
|
|
6521
6717
|
*
|
|
6522
6718
|
* @export
|
|
6523
|
-
* @enum {
|
|
6719
|
+
* @enum {number}
|
|
6524
6720
|
*/
|
|
6525
6721
|
export declare const NotificationMessageEnum: {
|
|
6526
6722
|
readonly NUMBER_404: 404;
|
|
@@ -7269,6 +7465,31 @@ export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUse
|
|
|
7269
7465
|
*/
|
|
7270
7466
|
'user': string;
|
|
7271
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
|
+
}
|
|
7272
7493
|
/**
|
|
7273
7494
|
* From T, pick a set of properties whose keys are in the union K
|
|
7274
7495
|
* @export
|
|
@@ -7733,6 +7954,12 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
|
|
|
7733
7954
|
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
|
|
7734
7955
|
*/
|
|
7735
7956
|
'language': LanguageEnum;
|
|
7957
|
+
/**
|
|
7958
|
+
*
|
|
7959
|
+
* @type {PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions}
|
|
7960
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrT
|
|
7961
|
+
*/
|
|
7962
|
+
'contact_permissions': PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTContactPermissions;
|
|
7736
7963
|
/**
|
|
7737
7964
|
*
|
|
7738
7965
|
* @type {UserStatusEnum}
|
|
@@ -7764,6 +7991,25 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
|
|
|
7764
7991
|
*/
|
|
7765
7992
|
'updatedAt': string;
|
|
7766
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
|
+
}
|
|
7767
8013
|
/**
|
|
7768
8014
|
*
|
|
7769
8015
|
* @export
|
|
@@ -11204,6 +11450,264 @@ export declare class CompanyApi extends BaseAPI {
|
|
|
11204
11450
|
*/
|
|
11205
11451
|
updateUserInCompany(requestParameters: CompanyApiUpdateUserInCompanyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyResponse, any>>;
|
|
11206
11452
|
}
|
|
11453
|
+
/**
|
|
11454
|
+
* ContactFormApi - axios parameter creator
|
|
11455
|
+
* @export
|
|
11456
|
+
*/
|
|
11457
|
+
export declare const ContactFormApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
11458
|
+
/**
|
|
11459
|
+
*
|
|
11460
|
+
* @param {IContactFormPostRequest} iContactFormPostRequest
|
|
11461
|
+
* @param {*} [options] Override http request option.
|
|
11462
|
+
* @throws {RequiredError}
|
|
11463
|
+
*/
|
|
11464
|
+
createContactForm: (iContactFormPostRequest: IContactFormPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11465
|
+
/**
|
|
11466
|
+
*
|
|
11467
|
+
* @param {string} id
|
|
11468
|
+
* @param {*} [options] Override http request option.
|
|
11469
|
+
* @throws {RequiredError}
|
|
11470
|
+
*/
|
|
11471
|
+
deleteContactForm: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11472
|
+
/**
|
|
11473
|
+
*
|
|
11474
|
+
* @param {string} id
|
|
11475
|
+
* @param {*} [options] Override http request option.
|
|
11476
|
+
* @throws {RequiredError}
|
|
11477
|
+
*/
|
|
11478
|
+
getContactFormById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11479
|
+
/**
|
|
11480
|
+
*
|
|
11481
|
+
* @param {string} companyId
|
|
11482
|
+
* @param {number} [page]
|
|
11483
|
+
* @param {number} [itemsPerPage]
|
|
11484
|
+
* @param {string} [search]
|
|
11485
|
+
* @param {string} [startDate]
|
|
11486
|
+
* @param {string} [endDate]
|
|
11487
|
+
* @param {string} [dateField]
|
|
11488
|
+
* @param {OrderEnum} [order]
|
|
11489
|
+
* @param {string} [sort]
|
|
11490
|
+
* @param {*} [options] Override http request option.
|
|
11491
|
+
* @throws {RequiredError}
|
|
11492
|
+
*/
|
|
11493
|
+
getContactForms: (companyId: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11494
|
+
};
|
|
11495
|
+
/**
|
|
11496
|
+
* ContactFormApi - functional programming interface
|
|
11497
|
+
* @export
|
|
11498
|
+
*/
|
|
11499
|
+
export declare const ContactFormApiFp: (configuration?: Configuration) => {
|
|
11500
|
+
/**
|
|
11501
|
+
*
|
|
11502
|
+
* @param {IContactFormPostRequest} iContactFormPostRequest
|
|
11503
|
+
* @param {*} [options] Override http request option.
|
|
11504
|
+
* @throws {RequiredError}
|
|
11505
|
+
*/
|
|
11506
|
+
createContactForm(iContactFormPostRequest: IContactFormPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IContactFormResponse>>;
|
|
11507
|
+
/**
|
|
11508
|
+
*
|
|
11509
|
+
* @param {string} id
|
|
11510
|
+
* @param {*} [options] Override http request option.
|
|
11511
|
+
* @throws {RequiredError}
|
|
11512
|
+
*/
|
|
11513
|
+
deleteContactForm(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
11514
|
+
/**
|
|
11515
|
+
*
|
|
11516
|
+
* @param {string} id
|
|
11517
|
+
* @param {*} [options] Override http request option.
|
|
11518
|
+
* @throws {RequiredError}
|
|
11519
|
+
*/
|
|
11520
|
+
getContactFormById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IContactFormResponse>>;
|
|
11521
|
+
/**
|
|
11522
|
+
*
|
|
11523
|
+
* @param {string} companyId
|
|
11524
|
+
* @param {number} [page]
|
|
11525
|
+
* @param {number} [itemsPerPage]
|
|
11526
|
+
* @param {string} [search]
|
|
11527
|
+
* @param {string} [startDate]
|
|
11528
|
+
* @param {string} [endDate]
|
|
11529
|
+
* @param {string} [dateField]
|
|
11530
|
+
* @param {OrderEnum} [order]
|
|
11531
|
+
* @param {string} [sort]
|
|
11532
|
+
* @param {*} [options] Override http request option.
|
|
11533
|
+
* @throws {RequiredError}
|
|
11534
|
+
*/
|
|
11535
|
+
getContactForms(companyId: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IContactFormsResponse>>;
|
|
11536
|
+
};
|
|
11537
|
+
/**
|
|
11538
|
+
* ContactFormApi - factory interface
|
|
11539
|
+
* @export
|
|
11540
|
+
*/
|
|
11541
|
+
export declare const ContactFormApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
11542
|
+
/**
|
|
11543
|
+
*
|
|
11544
|
+
* @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
|
|
11545
|
+
* @param {*} [options] Override http request option.
|
|
11546
|
+
* @throws {RequiredError}
|
|
11547
|
+
*/
|
|
11548
|
+
createContactForm(requestParameters: ContactFormApiCreateContactFormRequest, options?: RawAxiosRequestConfig): AxiosPromise<IContactFormResponse>;
|
|
11549
|
+
/**
|
|
11550
|
+
*
|
|
11551
|
+
* @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
|
|
11552
|
+
* @param {*} [options] Override http request option.
|
|
11553
|
+
* @throws {RequiredError}
|
|
11554
|
+
*/
|
|
11555
|
+
deleteContactForm(requestParameters: ContactFormApiDeleteContactFormRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
11556
|
+
/**
|
|
11557
|
+
*
|
|
11558
|
+
* @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
|
|
11559
|
+
* @param {*} [options] Override http request option.
|
|
11560
|
+
* @throws {RequiredError}
|
|
11561
|
+
*/
|
|
11562
|
+
getContactFormById(requestParameters: ContactFormApiGetContactFormByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IContactFormResponse>;
|
|
11563
|
+
/**
|
|
11564
|
+
*
|
|
11565
|
+
* @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
|
|
11566
|
+
* @param {*} [options] Override http request option.
|
|
11567
|
+
* @throws {RequiredError}
|
|
11568
|
+
*/
|
|
11569
|
+
getContactForms(requestParameters: ContactFormApiGetContactFormsRequest, options?: RawAxiosRequestConfig): AxiosPromise<IContactFormsResponse>;
|
|
11570
|
+
};
|
|
11571
|
+
/**
|
|
11572
|
+
* Request parameters for createContactForm operation in ContactFormApi.
|
|
11573
|
+
* @export
|
|
11574
|
+
* @interface ContactFormApiCreateContactFormRequest
|
|
11575
|
+
*/
|
|
11576
|
+
export interface ContactFormApiCreateContactFormRequest {
|
|
11577
|
+
/**
|
|
11578
|
+
*
|
|
11579
|
+
* @type {IContactFormPostRequest}
|
|
11580
|
+
* @memberof ContactFormApiCreateContactForm
|
|
11581
|
+
*/
|
|
11582
|
+
readonly iContactFormPostRequest: IContactFormPostRequest;
|
|
11583
|
+
}
|
|
11584
|
+
/**
|
|
11585
|
+
* Request parameters for deleteContactForm operation in ContactFormApi.
|
|
11586
|
+
* @export
|
|
11587
|
+
* @interface ContactFormApiDeleteContactFormRequest
|
|
11588
|
+
*/
|
|
11589
|
+
export interface ContactFormApiDeleteContactFormRequest {
|
|
11590
|
+
/**
|
|
11591
|
+
*
|
|
11592
|
+
* @type {string}
|
|
11593
|
+
* @memberof ContactFormApiDeleteContactForm
|
|
11594
|
+
*/
|
|
11595
|
+
readonly id: string;
|
|
11596
|
+
}
|
|
11597
|
+
/**
|
|
11598
|
+
* Request parameters for getContactFormById operation in ContactFormApi.
|
|
11599
|
+
* @export
|
|
11600
|
+
* @interface ContactFormApiGetContactFormByIdRequest
|
|
11601
|
+
*/
|
|
11602
|
+
export interface ContactFormApiGetContactFormByIdRequest {
|
|
11603
|
+
/**
|
|
11604
|
+
*
|
|
11605
|
+
* @type {string}
|
|
11606
|
+
* @memberof ContactFormApiGetContactFormById
|
|
11607
|
+
*/
|
|
11608
|
+
readonly id: string;
|
|
11609
|
+
}
|
|
11610
|
+
/**
|
|
11611
|
+
* Request parameters for getContactForms operation in ContactFormApi.
|
|
11612
|
+
* @export
|
|
11613
|
+
* @interface ContactFormApiGetContactFormsRequest
|
|
11614
|
+
*/
|
|
11615
|
+
export interface ContactFormApiGetContactFormsRequest {
|
|
11616
|
+
/**
|
|
11617
|
+
*
|
|
11618
|
+
* @type {string}
|
|
11619
|
+
* @memberof ContactFormApiGetContactForms
|
|
11620
|
+
*/
|
|
11621
|
+
readonly companyId: string;
|
|
11622
|
+
/**
|
|
11623
|
+
*
|
|
11624
|
+
* @type {number}
|
|
11625
|
+
* @memberof ContactFormApiGetContactForms
|
|
11626
|
+
*/
|
|
11627
|
+
readonly page?: number;
|
|
11628
|
+
/**
|
|
11629
|
+
*
|
|
11630
|
+
* @type {number}
|
|
11631
|
+
* @memberof ContactFormApiGetContactForms
|
|
11632
|
+
*/
|
|
11633
|
+
readonly itemsPerPage?: number;
|
|
11634
|
+
/**
|
|
11635
|
+
*
|
|
11636
|
+
* @type {string}
|
|
11637
|
+
* @memberof ContactFormApiGetContactForms
|
|
11638
|
+
*/
|
|
11639
|
+
readonly search?: string;
|
|
11640
|
+
/**
|
|
11641
|
+
*
|
|
11642
|
+
* @type {string}
|
|
11643
|
+
* @memberof ContactFormApiGetContactForms
|
|
11644
|
+
*/
|
|
11645
|
+
readonly startDate?: string;
|
|
11646
|
+
/**
|
|
11647
|
+
*
|
|
11648
|
+
* @type {string}
|
|
11649
|
+
* @memberof ContactFormApiGetContactForms
|
|
11650
|
+
*/
|
|
11651
|
+
readonly endDate?: string;
|
|
11652
|
+
/**
|
|
11653
|
+
*
|
|
11654
|
+
* @type {string}
|
|
11655
|
+
* @memberof ContactFormApiGetContactForms
|
|
11656
|
+
*/
|
|
11657
|
+
readonly dateField?: string;
|
|
11658
|
+
/**
|
|
11659
|
+
*
|
|
11660
|
+
* @type {OrderEnum}
|
|
11661
|
+
* @memberof ContactFormApiGetContactForms
|
|
11662
|
+
*/
|
|
11663
|
+
readonly order?: OrderEnum;
|
|
11664
|
+
/**
|
|
11665
|
+
*
|
|
11666
|
+
* @type {string}
|
|
11667
|
+
* @memberof ContactFormApiGetContactForms
|
|
11668
|
+
*/
|
|
11669
|
+
readonly sort?: string;
|
|
11670
|
+
}
|
|
11671
|
+
/**
|
|
11672
|
+
* ContactFormApi - object-oriented interface
|
|
11673
|
+
* @export
|
|
11674
|
+
* @class ContactFormApi
|
|
11675
|
+
* @extends {BaseAPI}
|
|
11676
|
+
*/
|
|
11677
|
+
export declare class ContactFormApi extends BaseAPI {
|
|
11678
|
+
/**
|
|
11679
|
+
*
|
|
11680
|
+
* @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
|
|
11681
|
+
* @param {*} [options] Override http request option.
|
|
11682
|
+
* @throws {RequiredError}
|
|
11683
|
+
* @memberof ContactFormApi
|
|
11684
|
+
*/
|
|
11685
|
+
createContactForm(requestParameters: ContactFormApiCreateContactFormRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IContactFormResponse, any>>;
|
|
11686
|
+
/**
|
|
11687
|
+
*
|
|
11688
|
+
* @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
|
|
11689
|
+
* @param {*} [options] Override http request option.
|
|
11690
|
+
* @throws {RequiredError}
|
|
11691
|
+
* @memberof ContactFormApi
|
|
11692
|
+
*/
|
|
11693
|
+
deleteContactForm(requestParameters: ContactFormApiDeleteContactFormRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
11694
|
+
/**
|
|
11695
|
+
*
|
|
11696
|
+
* @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
|
|
11697
|
+
* @param {*} [options] Override http request option.
|
|
11698
|
+
* @throws {RequiredError}
|
|
11699
|
+
* @memberof ContactFormApi
|
|
11700
|
+
*/
|
|
11701
|
+
getContactFormById(requestParameters: ContactFormApiGetContactFormByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IContactFormResponse, any>>;
|
|
11702
|
+
/**
|
|
11703
|
+
*
|
|
11704
|
+
* @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
|
|
11705
|
+
* @param {*} [options] Override http request option.
|
|
11706
|
+
* @throws {RequiredError}
|
|
11707
|
+
* @memberof ContactFormApi
|
|
11708
|
+
*/
|
|
11709
|
+
getContactForms(requestParameters: ContactFormApiGetContactFormsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IContactFormsResponse, any>>;
|
|
11710
|
+
}
|
|
11207
11711
|
/**
|
|
11208
11712
|
* FileApi - axios parameter creator
|
|
11209
11713
|
* @export
|
package/dist/api/api.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BrandApi = exports.BrandApiFactory = exports.BrandApiFp = exports.BrandApiAxiosParamCreator = 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.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.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = void 0;
|
|
20
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = 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 {
|
|
495
|
+
* @enum {number}
|
|
496
496
|
*/
|
|
497
497
|
exports.NotificationMessageEnum = {
|
|
498
498
|
NUMBER_404: 404,
|
|
@@ -4688,6 +4688,327 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
4688
4688
|
}
|
|
4689
4689
|
}
|
|
4690
4690
|
exports.CompanyApi = CompanyApi;
|
|
4691
|
+
/**
|
|
4692
|
+
* ContactFormApi - axios parameter creator
|
|
4693
|
+
* @export
|
|
4694
|
+
*/
|
|
4695
|
+
const ContactFormApiAxiosParamCreator = function (configuration) {
|
|
4696
|
+
return {
|
|
4697
|
+
/**
|
|
4698
|
+
*
|
|
4699
|
+
* @param {IContactFormPostRequest} iContactFormPostRequest
|
|
4700
|
+
* @param {*} [options] Override http request option.
|
|
4701
|
+
* @throws {RequiredError}
|
|
4702
|
+
*/
|
|
4703
|
+
createContactForm: async (iContactFormPostRequest, options = {}) => {
|
|
4704
|
+
// verify required parameter 'iContactFormPostRequest' is not null or undefined
|
|
4705
|
+
(0, common_1.assertParamExists)('createContactForm', 'iContactFormPostRequest', iContactFormPostRequest);
|
|
4706
|
+
const localVarPath = `/api/contact-forms`;
|
|
4707
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4708
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4709
|
+
let baseOptions;
|
|
4710
|
+
if (configuration) {
|
|
4711
|
+
baseOptions = configuration.baseOptions;
|
|
4712
|
+
}
|
|
4713
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
4714
|
+
const localVarHeaderParameter = {};
|
|
4715
|
+
const localVarQueryParameter = {};
|
|
4716
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4717
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4718
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4719
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4720
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iContactFormPostRequest, localVarRequestOptions, configuration);
|
|
4721
|
+
return {
|
|
4722
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4723
|
+
options: localVarRequestOptions,
|
|
4724
|
+
};
|
|
4725
|
+
},
|
|
4726
|
+
/**
|
|
4727
|
+
*
|
|
4728
|
+
* @param {string} id
|
|
4729
|
+
* @param {*} [options] Override http request option.
|
|
4730
|
+
* @throws {RequiredError}
|
|
4731
|
+
*/
|
|
4732
|
+
deleteContactForm: async (id, options = {}) => {
|
|
4733
|
+
// verify required parameter 'id' is not null or undefined
|
|
4734
|
+
(0, common_1.assertParamExists)('deleteContactForm', 'id', id);
|
|
4735
|
+
const localVarPath = `/api/contact-forms/{id}`
|
|
4736
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4737
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4738
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4739
|
+
let baseOptions;
|
|
4740
|
+
if (configuration) {
|
|
4741
|
+
baseOptions = configuration.baseOptions;
|
|
4742
|
+
}
|
|
4743
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
4744
|
+
const localVarHeaderParameter = {};
|
|
4745
|
+
const localVarQueryParameter = {};
|
|
4746
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4747
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4748
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4749
|
+
return {
|
|
4750
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4751
|
+
options: localVarRequestOptions,
|
|
4752
|
+
};
|
|
4753
|
+
},
|
|
4754
|
+
/**
|
|
4755
|
+
*
|
|
4756
|
+
* @param {string} id
|
|
4757
|
+
* @param {*} [options] Override http request option.
|
|
4758
|
+
* @throws {RequiredError}
|
|
4759
|
+
*/
|
|
4760
|
+
getContactFormById: async (id, options = {}) => {
|
|
4761
|
+
// verify required parameter 'id' is not null or undefined
|
|
4762
|
+
(0, common_1.assertParamExists)('getContactFormById', 'id', id);
|
|
4763
|
+
const localVarPath = `/api/contact-forms/{id}`
|
|
4764
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4765
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4766
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4767
|
+
let baseOptions;
|
|
4768
|
+
if (configuration) {
|
|
4769
|
+
baseOptions = configuration.baseOptions;
|
|
4770
|
+
}
|
|
4771
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4772
|
+
const localVarHeaderParameter = {};
|
|
4773
|
+
const localVarQueryParameter = {};
|
|
4774
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4775
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4776
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4777
|
+
return {
|
|
4778
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4779
|
+
options: localVarRequestOptions,
|
|
4780
|
+
};
|
|
4781
|
+
},
|
|
4782
|
+
/**
|
|
4783
|
+
*
|
|
4784
|
+
* @param {string} companyId
|
|
4785
|
+
* @param {number} [page]
|
|
4786
|
+
* @param {number} [itemsPerPage]
|
|
4787
|
+
* @param {string} [search]
|
|
4788
|
+
* @param {string} [startDate]
|
|
4789
|
+
* @param {string} [endDate]
|
|
4790
|
+
* @param {string} [dateField]
|
|
4791
|
+
* @param {OrderEnum} [order]
|
|
4792
|
+
* @param {string} [sort]
|
|
4793
|
+
* @param {*} [options] Override http request option.
|
|
4794
|
+
* @throws {RequiredError}
|
|
4795
|
+
*/
|
|
4796
|
+
getContactForms: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options = {}) => {
|
|
4797
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4798
|
+
(0, common_1.assertParamExists)('getContactForms', 'companyId', companyId);
|
|
4799
|
+
const localVarPath = `/api/contact-forms`;
|
|
4800
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4801
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4802
|
+
let baseOptions;
|
|
4803
|
+
if (configuration) {
|
|
4804
|
+
baseOptions = configuration.baseOptions;
|
|
4805
|
+
}
|
|
4806
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4807
|
+
const localVarHeaderParameter = {};
|
|
4808
|
+
const localVarQueryParameter = {};
|
|
4809
|
+
if (page !== undefined) {
|
|
4810
|
+
localVarQueryParameter['page'] = page;
|
|
4811
|
+
}
|
|
4812
|
+
if (itemsPerPage !== undefined) {
|
|
4813
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
4814
|
+
}
|
|
4815
|
+
if (search !== undefined) {
|
|
4816
|
+
localVarQueryParameter['search'] = search;
|
|
4817
|
+
}
|
|
4818
|
+
if (startDate !== undefined) {
|
|
4819
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
4820
|
+
startDate.toISOString() :
|
|
4821
|
+
startDate;
|
|
4822
|
+
}
|
|
4823
|
+
if (endDate !== undefined) {
|
|
4824
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
4825
|
+
endDate.toISOString() :
|
|
4826
|
+
endDate;
|
|
4827
|
+
}
|
|
4828
|
+
if (dateField !== undefined) {
|
|
4829
|
+
localVarQueryParameter['dateField'] = dateField;
|
|
4830
|
+
}
|
|
4831
|
+
if (order !== undefined) {
|
|
4832
|
+
localVarQueryParameter['order'] = order;
|
|
4833
|
+
}
|
|
4834
|
+
if (sort !== undefined) {
|
|
4835
|
+
localVarQueryParameter['sort'] = sort;
|
|
4836
|
+
}
|
|
4837
|
+
if (companyId !== undefined) {
|
|
4838
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
4839
|
+
}
|
|
4840
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4841
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4842
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4843
|
+
return {
|
|
4844
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4845
|
+
options: localVarRequestOptions,
|
|
4846
|
+
};
|
|
4847
|
+
},
|
|
4848
|
+
};
|
|
4849
|
+
};
|
|
4850
|
+
exports.ContactFormApiAxiosParamCreator = ContactFormApiAxiosParamCreator;
|
|
4851
|
+
/**
|
|
4852
|
+
* ContactFormApi - functional programming interface
|
|
4853
|
+
* @export
|
|
4854
|
+
*/
|
|
4855
|
+
const ContactFormApiFp = function (configuration) {
|
|
4856
|
+
const localVarAxiosParamCreator = (0, exports.ContactFormApiAxiosParamCreator)(configuration);
|
|
4857
|
+
return {
|
|
4858
|
+
/**
|
|
4859
|
+
*
|
|
4860
|
+
* @param {IContactFormPostRequest} iContactFormPostRequest
|
|
4861
|
+
* @param {*} [options] Override http request option.
|
|
4862
|
+
* @throws {RequiredError}
|
|
4863
|
+
*/
|
|
4864
|
+
async createContactForm(iContactFormPostRequest, options) {
|
|
4865
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createContactForm(iContactFormPostRequest, options);
|
|
4866
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4867
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ContactFormApi.createContactForm']?.[localVarOperationServerIndex]?.url;
|
|
4868
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4869
|
+
},
|
|
4870
|
+
/**
|
|
4871
|
+
*
|
|
4872
|
+
* @param {string} id
|
|
4873
|
+
* @param {*} [options] Override http request option.
|
|
4874
|
+
* @throws {RequiredError}
|
|
4875
|
+
*/
|
|
4876
|
+
async deleteContactForm(id, options) {
|
|
4877
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteContactForm(id, options);
|
|
4878
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4879
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ContactFormApi.deleteContactForm']?.[localVarOperationServerIndex]?.url;
|
|
4880
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4881
|
+
},
|
|
4882
|
+
/**
|
|
4883
|
+
*
|
|
4884
|
+
* @param {string} id
|
|
4885
|
+
* @param {*} [options] Override http request option.
|
|
4886
|
+
* @throws {RequiredError}
|
|
4887
|
+
*/
|
|
4888
|
+
async getContactFormById(id, options) {
|
|
4889
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContactFormById(id, options);
|
|
4890
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4891
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ContactFormApi.getContactFormById']?.[localVarOperationServerIndex]?.url;
|
|
4892
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4893
|
+
},
|
|
4894
|
+
/**
|
|
4895
|
+
*
|
|
4896
|
+
* @param {string} companyId
|
|
4897
|
+
* @param {number} [page]
|
|
4898
|
+
* @param {number} [itemsPerPage]
|
|
4899
|
+
* @param {string} [search]
|
|
4900
|
+
* @param {string} [startDate]
|
|
4901
|
+
* @param {string} [endDate]
|
|
4902
|
+
* @param {string} [dateField]
|
|
4903
|
+
* @param {OrderEnum} [order]
|
|
4904
|
+
* @param {string} [sort]
|
|
4905
|
+
* @param {*} [options] Override http request option.
|
|
4906
|
+
* @throws {RequiredError}
|
|
4907
|
+
*/
|
|
4908
|
+
async getContactForms(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options) {
|
|
4909
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContactForms(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options);
|
|
4910
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4911
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ContactFormApi.getContactForms']?.[localVarOperationServerIndex]?.url;
|
|
4912
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4913
|
+
},
|
|
4914
|
+
};
|
|
4915
|
+
};
|
|
4916
|
+
exports.ContactFormApiFp = ContactFormApiFp;
|
|
4917
|
+
/**
|
|
4918
|
+
* ContactFormApi - factory interface
|
|
4919
|
+
* @export
|
|
4920
|
+
*/
|
|
4921
|
+
const ContactFormApiFactory = function (configuration, basePath, axios) {
|
|
4922
|
+
const localVarFp = (0, exports.ContactFormApiFp)(configuration);
|
|
4923
|
+
return {
|
|
4924
|
+
/**
|
|
4925
|
+
*
|
|
4926
|
+
* @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
|
|
4927
|
+
* @param {*} [options] Override http request option.
|
|
4928
|
+
* @throws {RequiredError}
|
|
4929
|
+
*/
|
|
4930
|
+
createContactForm(requestParameters, options) {
|
|
4931
|
+
return localVarFp.createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(axios, basePath));
|
|
4932
|
+
},
|
|
4933
|
+
/**
|
|
4934
|
+
*
|
|
4935
|
+
* @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
|
|
4936
|
+
* @param {*} [options] Override http request option.
|
|
4937
|
+
* @throws {RequiredError}
|
|
4938
|
+
*/
|
|
4939
|
+
deleteContactForm(requestParameters, options) {
|
|
4940
|
+
return localVarFp.deleteContactForm(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
4941
|
+
},
|
|
4942
|
+
/**
|
|
4943
|
+
*
|
|
4944
|
+
* @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
|
|
4945
|
+
* @param {*} [options] Override http request option.
|
|
4946
|
+
* @throws {RequiredError}
|
|
4947
|
+
*/
|
|
4948
|
+
getContactFormById(requestParameters, options) {
|
|
4949
|
+
return localVarFp.getContactFormById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
4950
|
+
},
|
|
4951
|
+
/**
|
|
4952
|
+
*
|
|
4953
|
+
* @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
|
|
4954
|
+
* @param {*} [options] Override http request option.
|
|
4955
|
+
* @throws {RequiredError}
|
|
4956
|
+
*/
|
|
4957
|
+
getContactForms(requestParameters, options) {
|
|
4958
|
+
return localVarFp.getContactForms(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(axios, basePath));
|
|
4959
|
+
},
|
|
4960
|
+
};
|
|
4961
|
+
};
|
|
4962
|
+
exports.ContactFormApiFactory = ContactFormApiFactory;
|
|
4963
|
+
/**
|
|
4964
|
+
* ContactFormApi - object-oriented interface
|
|
4965
|
+
* @export
|
|
4966
|
+
* @class ContactFormApi
|
|
4967
|
+
* @extends {BaseAPI}
|
|
4968
|
+
*/
|
|
4969
|
+
class ContactFormApi extends base_1.BaseAPI {
|
|
4970
|
+
/**
|
|
4971
|
+
*
|
|
4972
|
+
* @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
|
|
4973
|
+
* @param {*} [options] Override http request option.
|
|
4974
|
+
* @throws {RequiredError}
|
|
4975
|
+
* @memberof ContactFormApi
|
|
4976
|
+
*/
|
|
4977
|
+
createContactForm(requestParameters, options) {
|
|
4978
|
+
return (0, exports.ContactFormApiFp)(this.configuration).createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4979
|
+
}
|
|
4980
|
+
/**
|
|
4981
|
+
*
|
|
4982
|
+
* @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
|
|
4983
|
+
* @param {*} [options] Override http request option.
|
|
4984
|
+
* @throws {RequiredError}
|
|
4985
|
+
* @memberof ContactFormApi
|
|
4986
|
+
*/
|
|
4987
|
+
deleteContactForm(requestParameters, options) {
|
|
4988
|
+
return (0, exports.ContactFormApiFp)(this.configuration).deleteContactForm(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
4989
|
+
}
|
|
4990
|
+
/**
|
|
4991
|
+
*
|
|
4992
|
+
* @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
|
|
4993
|
+
* @param {*} [options] Override http request option.
|
|
4994
|
+
* @throws {RequiredError}
|
|
4995
|
+
* @memberof ContactFormApi
|
|
4996
|
+
*/
|
|
4997
|
+
getContactFormById(requestParameters, options) {
|
|
4998
|
+
return (0, exports.ContactFormApiFp)(this.configuration).getContactFormById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
4999
|
+
}
|
|
5000
|
+
/**
|
|
5001
|
+
*
|
|
5002
|
+
* @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
|
|
5003
|
+
* @param {*} [options] Override http request option.
|
|
5004
|
+
* @throws {RequiredError}
|
|
5005
|
+
* @memberof ContactFormApi
|
|
5006
|
+
*/
|
|
5007
|
+
getContactForms(requestParameters, options) {
|
|
5008
|
+
return (0, exports.ContactFormApiFp)(this.configuration).getContactForms(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));
|
|
5009
|
+
}
|
|
5010
|
+
}
|
|
5011
|
+
exports.ContactFormApi = ContactFormApi;
|
|
4691
5012
|
/**
|
|
4692
5013
|
* FileApi - axios parameter creator
|
|
4693
5014
|
* @export
|
package/dist/api/api.mjs
CHANGED
|
@@ -482,7 +482,7 @@ export const NavigationUrlTargetEnum = {
|
|
|
482
482
|
/**
|
|
483
483
|
*
|
|
484
484
|
* @export
|
|
485
|
-
* @enum {
|
|
485
|
+
* @enum {number}
|
|
486
486
|
*/
|
|
487
487
|
export const NotificationMessageEnum = {
|
|
488
488
|
NUMBER_404: 404,
|
|
@@ -4650,6 +4650,323 @@ export class CompanyApi extends BaseAPI {
|
|
|
4650
4650
|
return CompanyApiFp(this.configuration).updateUserInCompany(requestParameters.id, requestParameters.userId, requestParameters.iCompanyUpdateUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4651
4651
|
}
|
|
4652
4652
|
}
|
|
4653
|
+
/**
|
|
4654
|
+
* ContactFormApi - axios parameter creator
|
|
4655
|
+
* @export
|
|
4656
|
+
*/
|
|
4657
|
+
export const ContactFormApiAxiosParamCreator = function (configuration) {
|
|
4658
|
+
return {
|
|
4659
|
+
/**
|
|
4660
|
+
*
|
|
4661
|
+
* @param {IContactFormPostRequest} iContactFormPostRequest
|
|
4662
|
+
* @param {*} [options] Override http request option.
|
|
4663
|
+
* @throws {RequiredError}
|
|
4664
|
+
*/
|
|
4665
|
+
createContactForm: async (iContactFormPostRequest, options = {}) => {
|
|
4666
|
+
// verify required parameter 'iContactFormPostRequest' is not null or undefined
|
|
4667
|
+
assertParamExists('createContactForm', 'iContactFormPostRequest', iContactFormPostRequest);
|
|
4668
|
+
const localVarPath = `/api/contact-forms`;
|
|
4669
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4670
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4671
|
+
let baseOptions;
|
|
4672
|
+
if (configuration) {
|
|
4673
|
+
baseOptions = configuration.baseOptions;
|
|
4674
|
+
}
|
|
4675
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
4676
|
+
const localVarHeaderParameter = {};
|
|
4677
|
+
const localVarQueryParameter = {};
|
|
4678
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4679
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4680
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4681
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4682
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iContactFormPostRequest, localVarRequestOptions, configuration);
|
|
4683
|
+
return {
|
|
4684
|
+
url: toPathString(localVarUrlObj),
|
|
4685
|
+
options: localVarRequestOptions,
|
|
4686
|
+
};
|
|
4687
|
+
},
|
|
4688
|
+
/**
|
|
4689
|
+
*
|
|
4690
|
+
* @param {string} id
|
|
4691
|
+
* @param {*} [options] Override http request option.
|
|
4692
|
+
* @throws {RequiredError}
|
|
4693
|
+
*/
|
|
4694
|
+
deleteContactForm: async (id, options = {}) => {
|
|
4695
|
+
// verify required parameter 'id' is not null or undefined
|
|
4696
|
+
assertParamExists('deleteContactForm', 'id', id);
|
|
4697
|
+
const localVarPath = `/api/contact-forms/{id}`
|
|
4698
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4699
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4700
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4701
|
+
let baseOptions;
|
|
4702
|
+
if (configuration) {
|
|
4703
|
+
baseOptions = configuration.baseOptions;
|
|
4704
|
+
}
|
|
4705
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
4706
|
+
const localVarHeaderParameter = {};
|
|
4707
|
+
const localVarQueryParameter = {};
|
|
4708
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4709
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4710
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4711
|
+
return {
|
|
4712
|
+
url: toPathString(localVarUrlObj),
|
|
4713
|
+
options: localVarRequestOptions,
|
|
4714
|
+
};
|
|
4715
|
+
},
|
|
4716
|
+
/**
|
|
4717
|
+
*
|
|
4718
|
+
* @param {string} id
|
|
4719
|
+
* @param {*} [options] Override http request option.
|
|
4720
|
+
* @throws {RequiredError}
|
|
4721
|
+
*/
|
|
4722
|
+
getContactFormById: async (id, options = {}) => {
|
|
4723
|
+
// verify required parameter 'id' is not null or undefined
|
|
4724
|
+
assertParamExists('getContactFormById', 'id', id);
|
|
4725
|
+
const localVarPath = `/api/contact-forms/{id}`
|
|
4726
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4727
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4728
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4729
|
+
let baseOptions;
|
|
4730
|
+
if (configuration) {
|
|
4731
|
+
baseOptions = configuration.baseOptions;
|
|
4732
|
+
}
|
|
4733
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4734
|
+
const localVarHeaderParameter = {};
|
|
4735
|
+
const localVarQueryParameter = {};
|
|
4736
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4737
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4738
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4739
|
+
return {
|
|
4740
|
+
url: toPathString(localVarUrlObj),
|
|
4741
|
+
options: localVarRequestOptions,
|
|
4742
|
+
};
|
|
4743
|
+
},
|
|
4744
|
+
/**
|
|
4745
|
+
*
|
|
4746
|
+
* @param {string} companyId
|
|
4747
|
+
* @param {number} [page]
|
|
4748
|
+
* @param {number} [itemsPerPage]
|
|
4749
|
+
* @param {string} [search]
|
|
4750
|
+
* @param {string} [startDate]
|
|
4751
|
+
* @param {string} [endDate]
|
|
4752
|
+
* @param {string} [dateField]
|
|
4753
|
+
* @param {OrderEnum} [order]
|
|
4754
|
+
* @param {string} [sort]
|
|
4755
|
+
* @param {*} [options] Override http request option.
|
|
4756
|
+
* @throws {RequiredError}
|
|
4757
|
+
*/
|
|
4758
|
+
getContactForms: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options = {}) => {
|
|
4759
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4760
|
+
assertParamExists('getContactForms', 'companyId', companyId);
|
|
4761
|
+
const localVarPath = `/api/contact-forms`;
|
|
4762
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4763
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4764
|
+
let baseOptions;
|
|
4765
|
+
if (configuration) {
|
|
4766
|
+
baseOptions = configuration.baseOptions;
|
|
4767
|
+
}
|
|
4768
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4769
|
+
const localVarHeaderParameter = {};
|
|
4770
|
+
const localVarQueryParameter = {};
|
|
4771
|
+
if (page !== undefined) {
|
|
4772
|
+
localVarQueryParameter['page'] = page;
|
|
4773
|
+
}
|
|
4774
|
+
if (itemsPerPage !== undefined) {
|
|
4775
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
4776
|
+
}
|
|
4777
|
+
if (search !== undefined) {
|
|
4778
|
+
localVarQueryParameter['search'] = search;
|
|
4779
|
+
}
|
|
4780
|
+
if (startDate !== undefined) {
|
|
4781
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
4782
|
+
startDate.toISOString() :
|
|
4783
|
+
startDate;
|
|
4784
|
+
}
|
|
4785
|
+
if (endDate !== undefined) {
|
|
4786
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
4787
|
+
endDate.toISOString() :
|
|
4788
|
+
endDate;
|
|
4789
|
+
}
|
|
4790
|
+
if (dateField !== undefined) {
|
|
4791
|
+
localVarQueryParameter['dateField'] = dateField;
|
|
4792
|
+
}
|
|
4793
|
+
if (order !== undefined) {
|
|
4794
|
+
localVarQueryParameter['order'] = order;
|
|
4795
|
+
}
|
|
4796
|
+
if (sort !== undefined) {
|
|
4797
|
+
localVarQueryParameter['sort'] = sort;
|
|
4798
|
+
}
|
|
4799
|
+
if (companyId !== undefined) {
|
|
4800
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
4801
|
+
}
|
|
4802
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4803
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4804
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4805
|
+
return {
|
|
4806
|
+
url: toPathString(localVarUrlObj),
|
|
4807
|
+
options: localVarRequestOptions,
|
|
4808
|
+
};
|
|
4809
|
+
},
|
|
4810
|
+
};
|
|
4811
|
+
};
|
|
4812
|
+
/**
|
|
4813
|
+
* ContactFormApi - functional programming interface
|
|
4814
|
+
* @export
|
|
4815
|
+
*/
|
|
4816
|
+
export const ContactFormApiFp = function (configuration) {
|
|
4817
|
+
const localVarAxiosParamCreator = ContactFormApiAxiosParamCreator(configuration);
|
|
4818
|
+
return {
|
|
4819
|
+
/**
|
|
4820
|
+
*
|
|
4821
|
+
* @param {IContactFormPostRequest} iContactFormPostRequest
|
|
4822
|
+
* @param {*} [options] Override http request option.
|
|
4823
|
+
* @throws {RequiredError}
|
|
4824
|
+
*/
|
|
4825
|
+
async createContactForm(iContactFormPostRequest, options) {
|
|
4826
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createContactForm(iContactFormPostRequest, options);
|
|
4827
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4828
|
+
const localVarOperationServerBasePath = operationServerMap['ContactFormApi.createContactForm']?.[localVarOperationServerIndex]?.url;
|
|
4829
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4830
|
+
},
|
|
4831
|
+
/**
|
|
4832
|
+
*
|
|
4833
|
+
* @param {string} id
|
|
4834
|
+
* @param {*} [options] Override http request option.
|
|
4835
|
+
* @throws {RequiredError}
|
|
4836
|
+
*/
|
|
4837
|
+
async deleteContactForm(id, options) {
|
|
4838
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteContactForm(id, options);
|
|
4839
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4840
|
+
const localVarOperationServerBasePath = operationServerMap['ContactFormApi.deleteContactForm']?.[localVarOperationServerIndex]?.url;
|
|
4841
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4842
|
+
},
|
|
4843
|
+
/**
|
|
4844
|
+
*
|
|
4845
|
+
* @param {string} id
|
|
4846
|
+
* @param {*} [options] Override http request option.
|
|
4847
|
+
* @throws {RequiredError}
|
|
4848
|
+
*/
|
|
4849
|
+
async getContactFormById(id, options) {
|
|
4850
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContactFormById(id, options);
|
|
4851
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4852
|
+
const localVarOperationServerBasePath = operationServerMap['ContactFormApi.getContactFormById']?.[localVarOperationServerIndex]?.url;
|
|
4853
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4854
|
+
},
|
|
4855
|
+
/**
|
|
4856
|
+
*
|
|
4857
|
+
* @param {string} companyId
|
|
4858
|
+
* @param {number} [page]
|
|
4859
|
+
* @param {number} [itemsPerPage]
|
|
4860
|
+
* @param {string} [search]
|
|
4861
|
+
* @param {string} [startDate]
|
|
4862
|
+
* @param {string} [endDate]
|
|
4863
|
+
* @param {string} [dateField]
|
|
4864
|
+
* @param {OrderEnum} [order]
|
|
4865
|
+
* @param {string} [sort]
|
|
4866
|
+
* @param {*} [options] Override http request option.
|
|
4867
|
+
* @throws {RequiredError}
|
|
4868
|
+
*/
|
|
4869
|
+
async getContactForms(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options) {
|
|
4870
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContactForms(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options);
|
|
4871
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4872
|
+
const localVarOperationServerBasePath = operationServerMap['ContactFormApi.getContactForms']?.[localVarOperationServerIndex]?.url;
|
|
4873
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4874
|
+
},
|
|
4875
|
+
};
|
|
4876
|
+
};
|
|
4877
|
+
/**
|
|
4878
|
+
* ContactFormApi - factory interface
|
|
4879
|
+
* @export
|
|
4880
|
+
*/
|
|
4881
|
+
export const ContactFormApiFactory = function (configuration, basePath, axios) {
|
|
4882
|
+
const localVarFp = ContactFormApiFp(configuration);
|
|
4883
|
+
return {
|
|
4884
|
+
/**
|
|
4885
|
+
*
|
|
4886
|
+
* @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
|
|
4887
|
+
* @param {*} [options] Override http request option.
|
|
4888
|
+
* @throws {RequiredError}
|
|
4889
|
+
*/
|
|
4890
|
+
createContactForm(requestParameters, options) {
|
|
4891
|
+
return localVarFp.createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(axios, basePath));
|
|
4892
|
+
},
|
|
4893
|
+
/**
|
|
4894
|
+
*
|
|
4895
|
+
* @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
|
|
4896
|
+
* @param {*} [options] Override http request option.
|
|
4897
|
+
* @throws {RequiredError}
|
|
4898
|
+
*/
|
|
4899
|
+
deleteContactForm(requestParameters, options) {
|
|
4900
|
+
return localVarFp.deleteContactForm(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
4901
|
+
},
|
|
4902
|
+
/**
|
|
4903
|
+
*
|
|
4904
|
+
* @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
|
|
4905
|
+
* @param {*} [options] Override http request option.
|
|
4906
|
+
* @throws {RequiredError}
|
|
4907
|
+
*/
|
|
4908
|
+
getContactFormById(requestParameters, options) {
|
|
4909
|
+
return localVarFp.getContactFormById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
4910
|
+
},
|
|
4911
|
+
/**
|
|
4912
|
+
*
|
|
4913
|
+
* @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
|
|
4914
|
+
* @param {*} [options] Override http request option.
|
|
4915
|
+
* @throws {RequiredError}
|
|
4916
|
+
*/
|
|
4917
|
+
getContactForms(requestParameters, options) {
|
|
4918
|
+
return localVarFp.getContactForms(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(axios, basePath));
|
|
4919
|
+
},
|
|
4920
|
+
};
|
|
4921
|
+
};
|
|
4922
|
+
/**
|
|
4923
|
+
* ContactFormApi - object-oriented interface
|
|
4924
|
+
* @export
|
|
4925
|
+
* @class ContactFormApi
|
|
4926
|
+
* @extends {BaseAPI}
|
|
4927
|
+
*/
|
|
4928
|
+
export class ContactFormApi extends BaseAPI {
|
|
4929
|
+
/**
|
|
4930
|
+
*
|
|
4931
|
+
* @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
|
|
4932
|
+
* @param {*} [options] Override http request option.
|
|
4933
|
+
* @throws {RequiredError}
|
|
4934
|
+
* @memberof ContactFormApi
|
|
4935
|
+
*/
|
|
4936
|
+
createContactForm(requestParameters, options) {
|
|
4937
|
+
return ContactFormApiFp(this.configuration).createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4938
|
+
}
|
|
4939
|
+
/**
|
|
4940
|
+
*
|
|
4941
|
+
* @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
|
|
4942
|
+
* @param {*} [options] Override http request option.
|
|
4943
|
+
* @throws {RequiredError}
|
|
4944
|
+
* @memberof ContactFormApi
|
|
4945
|
+
*/
|
|
4946
|
+
deleteContactForm(requestParameters, options) {
|
|
4947
|
+
return ContactFormApiFp(this.configuration).deleteContactForm(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
4948
|
+
}
|
|
4949
|
+
/**
|
|
4950
|
+
*
|
|
4951
|
+
* @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
|
|
4952
|
+
* @param {*} [options] Override http request option.
|
|
4953
|
+
* @throws {RequiredError}
|
|
4954
|
+
* @memberof ContactFormApi
|
|
4955
|
+
*/
|
|
4956
|
+
getContactFormById(requestParameters, options) {
|
|
4957
|
+
return ContactFormApiFp(this.configuration).getContactFormById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
4958
|
+
}
|
|
4959
|
+
/**
|
|
4960
|
+
*
|
|
4961
|
+
* @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
|
|
4962
|
+
* @param {*} [options] Override http request option.
|
|
4963
|
+
* @throws {RequiredError}
|
|
4964
|
+
* @memberof ContactFormApi
|
|
4965
|
+
*/
|
|
4966
|
+
getContactForms(requestParameters, options) {
|
|
4967
|
+
return ContactFormApiFp(this.configuration).getContactForms(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));
|
|
4968
|
+
}
|
|
4969
|
+
}
|
|
4653
4970
|
/**
|
|
4654
4971
|
* FileApi - axios parameter creator
|
|
4655
4972
|
* @export
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ interface IApiClient {
|
|
|
16
16
|
CollectionApi: doc.CollectionApi;
|
|
17
17
|
ThemeApi: doc.ThemeApi;
|
|
18
18
|
TemplateApi: doc.TemplateApi;
|
|
19
|
+
ContactFormApi: doc.ContactFormApi;
|
|
19
20
|
interceptors: {
|
|
20
21
|
request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
|
|
21
22
|
response: AxiosInterceptorManager<AxiosResponse>;
|
|
@@ -45,6 +46,7 @@ export declare class ApiClient implements IApiClient {
|
|
|
45
46
|
CollectionApi: doc.CollectionApi;
|
|
46
47
|
ThemeApi: doc.ThemeApi;
|
|
47
48
|
TemplateApi: doc.TemplateApi;
|
|
49
|
+
ContactFormApi: doc.ContactFormApi;
|
|
48
50
|
constructor(baseURL: string, options?: {
|
|
49
51
|
headers?: Record<string, string>;
|
|
50
52
|
} | undefined);
|
package/dist/index.js
CHANGED
|
@@ -60,6 +60,7 @@ class ApiClient {
|
|
|
60
60
|
this.CollectionApi = new doc.CollectionApi(undefined, this.baseURL, this.api);
|
|
61
61
|
this.ThemeApi = new doc.ThemeApi(undefined, this.baseURL, this.api);
|
|
62
62
|
this.TemplateApi = new doc.TemplateApi(undefined, this.baseURL, this.api);
|
|
63
|
+
this.ContactFormApi = new doc.ContactFormApi(undefined, this.baseURL, this.api);
|
|
63
64
|
this.interceptors = {
|
|
64
65
|
request: this.api.interceptors.request,
|
|
65
66
|
response: this.api.interceptors.response,
|
package/dist/index.mjs
CHANGED
|
@@ -28,6 +28,7 @@ export class ApiClient {
|
|
|
28
28
|
this.CollectionApi = new doc.CollectionApi(undefined, this.baseURL, this.api);
|
|
29
29
|
this.ThemeApi = new doc.ThemeApi(undefined, this.baseURL, this.api);
|
|
30
30
|
this.TemplateApi = new doc.TemplateApi(undefined, this.baseURL, this.api);
|
|
31
|
+
this.ContactFormApi = new doc.ContactFormApi(undefined, this.baseURL, this.api);
|
|
31
32
|
this.interceptors = {
|
|
32
33
|
request: this.api.interceptors.request,
|
|
33
34
|
response: this.api.interceptors.response,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.29",
|
|
4
4
|
"description": "api-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.json -g typescript-axios -o lib/api --additional-properties=useSingleRequestParameter=true,enumPropertyNaming=UPPERCASE"
|
|
14
|
+
"openapi": "npx @openapitools/openapi-generator-cli generate -i swagger.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": "
|
|
40
|
+
"gitHead": "018e180dd37eb5efce46edab6dfc325ffe94b278"
|
|
40
41
|
}
|