@infisale-client/api 1.2.100 → 1.2.102
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 +196 -196
- package/dist/api/api.js +82 -4
- package/dist/api/api.mjs +78 -0
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -569,6 +569,19 @@ export declare const FontSizeEnum: {
|
|
|
569
569
|
readonly _6XL: "text-6xl";
|
|
570
570
|
};
|
|
571
571
|
export type FontSizeEnum = typeof FontSizeEnum[keyof typeof FontSizeEnum];
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
* @export
|
|
575
|
+
* @interface GetCompanyOnboarding200Response
|
|
576
|
+
*/
|
|
577
|
+
export interface GetCompanyOnboarding200Response {
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @type {RecordCompanyOnboardingStepEnumBoolean}
|
|
581
|
+
* @memberof GetCompanyOnboarding200Response
|
|
582
|
+
*/
|
|
583
|
+
'onboarding': RecordCompanyOnboardingStepEnumBoolean;
|
|
584
|
+
}
|
|
572
585
|
/**
|
|
573
586
|
*
|
|
574
587
|
* @export
|
|
@@ -2465,6 +2478,12 @@ export interface ICompanyAdminResponse {
|
|
|
2465
2478
|
'legalDocuments': {
|
|
2466
2479
|
[key: string]: RecordStringUrlStringFileIImageValue;
|
|
2467
2480
|
};
|
|
2481
|
+
/**
|
|
2482
|
+
*
|
|
2483
|
+
* @type {RecordCompanyOnboardingStepEnumBoolean}
|
|
2484
|
+
* @memberof ICompanyAdminResponse
|
|
2485
|
+
*/
|
|
2486
|
+
'onboarding': RecordCompanyOnboardingStepEnumBoolean;
|
|
2468
2487
|
/**
|
|
2469
2488
|
*
|
|
2470
2489
|
* @type {string}
|
|
@@ -2725,6 +2744,80 @@ export interface ICompanyCreateUserRequest {
|
|
|
2725
2744
|
*/
|
|
2726
2745
|
'role': string;
|
|
2727
2746
|
}
|
|
2747
|
+
/**
|
|
2748
|
+
*
|
|
2749
|
+
* @export
|
|
2750
|
+
* @interface ICompanyDashboardResponse
|
|
2751
|
+
*/
|
|
2752
|
+
export interface ICompanyDashboardResponse {
|
|
2753
|
+
/**
|
|
2754
|
+
*
|
|
2755
|
+
* @type {Array<ICompanyDashboardResponseOrdersInner>}
|
|
2756
|
+
* @memberof ICompanyDashboardResponse
|
|
2757
|
+
*/
|
|
2758
|
+
'orders': Array<ICompanyDashboardResponseOrdersInner>;
|
|
2759
|
+
/**
|
|
2760
|
+
*
|
|
2761
|
+
* @type {string}
|
|
2762
|
+
* @memberof ICompanyDashboardResponse
|
|
2763
|
+
*/
|
|
2764
|
+
'period': ICompanyDashboardResponsePeriodEnum;
|
|
2765
|
+
/**
|
|
2766
|
+
*
|
|
2767
|
+
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframe>}
|
|
2768
|
+
* @memberof ICompanyDashboardResponse
|
|
2769
|
+
*/
|
|
2770
|
+
'lastOrders': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframe>;
|
|
2771
|
+
/**
|
|
2772
|
+
*
|
|
2773
|
+
* @type {Array<PickIProductIdOrContentsOrTotalSale>}
|
|
2774
|
+
* @memberof ICompanyDashboardResponse
|
|
2775
|
+
*/
|
|
2776
|
+
'mostSoldProducts': Array<PickIProductIdOrContentsOrTotalSale>;
|
|
2777
|
+
/**
|
|
2778
|
+
*
|
|
2779
|
+
* @type {number}
|
|
2780
|
+
* @memberof ICompanyDashboardResponse
|
|
2781
|
+
*/
|
|
2782
|
+
'totalCustomerCount': number;
|
|
2783
|
+
/**
|
|
2784
|
+
*
|
|
2785
|
+
* @type {number}
|
|
2786
|
+
* @memberof ICompanyDashboardResponse
|
|
2787
|
+
*/
|
|
2788
|
+
'totalReviewCount': number;
|
|
2789
|
+
}
|
|
2790
|
+
export declare const ICompanyDashboardResponsePeriodEnum: {
|
|
2791
|
+
readonly DAY: "day";
|
|
2792
|
+
readonly MONTH: "month";
|
|
2793
|
+
readonly WEEK: "week";
|
|
2794
|
+
};
|
|
2795
|
+
export type ICompanyDashboardResponsePeriodEnum = typeof ICompanyDashboardResponsePeriodEnum[keyof typeof ICompanyDashboardResponsePeriodEnum];
|
|
2796
|
+
/**
|
|
2797
|
+
*
|
|
2798
|
+
* @export
|
|
2799
|
+
* @interface ICompanyDashboardResponseOrdersInner
|
|
2800
|
+
*/
|
|
2801
|
+
export interface ICompanyDashboardResponseOrdersInner {
|
|
2802
|
+
/**
|
|
2803
|
+
*
|
|
2804
|
+
* @type {number}
|
|
2805
|
+
* @memberof ICompanyDashboardResponseOrdersInner
|
|
2806
|
+
*/
|
|
2807
|
+
'totalOrder': number;
|
|
2808
|
+
/**
|
|
2809
|
+
*
|
|
2810
|
+
* @type {number}
|
|
2811
|
+
* @memberof ICompanyDashboardResponseOrdersInner
|
|
2812
|
+
*/
|
|
2813
|
+
'totalPrice': number;
|
|
2814
|
+
/**
|
|
2815
|
+
*
|
|
2816
|
+
* @type {string}
|
|
2817
|
+
* @memberof ICompanyDashboardResponseOrdersInner
|
|
2818
|
+
*/
|
|
2819
|
+
'date': string;
|
|
2820
|
+
}
|
|
2728
2821
|
/**
|
|
2729
2822
|
*
|
|
2730
2823
|
* @export
|
|
@@ -2823,12 +2916,6 @@ export interface ICompanyPatchRequest {
|
|
|
2823
2916
|
* @memberof ICompanyPatchRequest
|
|
2824
2917
|
*/
|
|
2825
2918
|
'paymentGateways'?: Array<ICompanyPatchRequestPaymentGatewaysInner>;
|
|
2826
|
-
/**
|
|
2827
|
-
*
|
|
2828
|
-
* @type {RecordCompanyOnboardingStepEnumBoolean}
|
|
2829
|
-
* @memberof ICompanyPatchRequest
|
|
2830
|
-
*/
|
|
2831
|
-
'onboarding'?: RecordCompanyOnboardingStepEnumBoolean;
|
|
2832
2919
|
/**
|
|
2833
2920
|
*
|
|
2834
2921
|
* @type {string}
|
|
@@ -3255,6 +3342,12 @@ export interface ICompanyResponse {
|
|
|
3255
3342
|
'legalDocuments': {
|
|
3256
3343
|
[key: string]: RecordStringUrlStringFileIImageValue;
|
|
3257
3344
|
};
|
|
3345
|
+
/**
|
|
3346
|
+
*
|
|
3347
|
+
* @type {RecordCompanyOnboardingStepEnumBoolean}
|
|
3348
|
+
* @memberof ICompanyResponse
|
|
3349
|
+
*/
|
|
3350
|
+
'onboarding': RecordCompanyOnboardingStepEnumBoolean;
|
|
3258
3351
|
/**
|
|
3259
3352
|
*
|
|
3260
3353
|
* @type {string}
|
|
@@ -5325,175 +5418,6 @@ export interface IOrderPostRequest {
|
|
|
5325
5418
|
*/
|
|
5326
5419
|
'shippingRateId': string;
|
|
5327
5420
|
}
|
|
5328
|
-
/**
|
|
5329
|
-
*
|
|
5330
|
-
* @export
|
|
5331
|
-
* @interface IOrderResponse
|
|
5332
|
-
*/
|
|
5333
|
-
export interface IOrderResponse {
|
|
5334
|
-
/**
|
|
5335
|
-
*
|
|
5336
|
-
* @type {number}
|
|
5337
|
-
* @memberof IOrderResponse
|
|
5338
|
-
*/
|
|
5339
|
-
'number': number;
|
|
5340
|
-
/**
|
|
5341
|
-
*
|
|
5342
|
-
* @type {string}
|
|
5343
|
-
* @memberof IOrderResponse
|
|
5344
|
-
*/
|
|
5345
|
-
'email'?: string;
|
|
5346
|
-
/**
|
|
5347
|
-
*
|
|
5348
|
-
* @type {string}
|
|
5349
|
-
* @memberof IOrderResponse
|
|
5350
|
-
*/
|
|
5351
|
-
'company': string;
|
|
5352
|
-
/**
|
|
5353
|
-
*
|
|
5354
|
-
* @type {OrderStatusEnum}
|
|
5355
|
-
* @memberof IOrderResponse
|
|
5356
|
-
*/
|
|
5357
|
-
'status': OrderStatusEnum;
|
|
5358
|
-
/**
|
|
5359
|
-
*
|
|
5360
|
-
* @type {string}
|
|
5361
|
-
* @memberof IOrderResponse
|
|
5362
|
-
*/
|
|
5363
|
-
'_id': string;
|
|
5364
|
-
/**
|
|
5365
|
-
*
|
|
5366
|
-
* @type {number}
|
|
5367
|
-
* @memberof IOrderResponse
|
|
5368
|
-
*/
|
|
5369
|
-
'__v': number;
|
|
5370
|
-
/**
|
|
5371
|
-
*
|
|
5372
|
-
* @type {string}
|
|
5373
|
-
* @memberof IOrderResponse
|
|
5374
|
-
*/
|
|
5375
|
-
'createdAt': string;
|
|
5376
|
-
/**
|
|
5377
|
-
*
|
|
5378
|
-
* @type {string}
|
|
5379
|
-
* @memberof IOrderResponse
|
|
5380
|
-
*/
|
|
5381
|
-
'updatedAt': string;
|
|
5382
|
-
/**
|
|
5383
|
-
*
|
|
5384
|
-
* @type {string}
|
|
5385
|
-
* @memberof IOrderResponse
|
|
5386
|
-
*/
|
|
5387
|
-
'user'?: string;
|
|
5388
|
-
/**
|
|
5389
|
-
*
|
|
5390
|
-
* @type {CurrencyEnum}
|
|
5391
|
-
* @memberof IOrderResponse
|
|
5392
|
-
*/
|
|
5393
|
-
'currency': CurrencyEnum;
|
|
5394
|
-
/**
|
|
5395
|
-
*
|
|
5396
|
-
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner>}
|
|
5397
|
-
* @memberof IOrderResponse
|
|
5398
|
-
*/
|
|
5399
|
-
'products': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner>;
|
|
5400
|
-
/**
|
|
5401
|
-
*
|
|
5402
|
-
* @type {IAddress}
|
|
5403
|
-
* @memberof IOrderResponse
|
|
5404
|
-
*/
|
|
5405
|
-
'shippingAddress': IAddress;
|
|
5406
|
-
/**
|
|
5407
|
-
*
|
|
5408
|
-
* @type {IAddress}
|
|
5409
|
-
* @memberof IOrderResponse
|
|
5410
|
-
*/
|
|
5411
|
-
'billingAddress'?: IAddress;
|
|
5412
|
-
/**
|
|
5413
|
-
*
|
|
5414
|
-
* @type {PaymentMethodEnum}
|
|
5415
|
-
* @memberof IOrderResponse
|
|
5416
|
-
*/
|
|
5417
|
-
'paymentMethod': PaymentMethodEnum;
|
|
5418
|
-
/**
|
|
5419
|
-
*
|
|
5420
|
-
* @type {PaymentGatewayEnum}
|
|
5421
|
-
* @memberof IOrderResponse
|
|
5422
|
-
*/
|
|
5423
|
-
'paymentGateway': PaymentGatewayEnum;
|
|
5424
|
-
/**
|
|
5425
|
-
*
|
|
5426
|
-
* @type {string}
|
|
5427
|
-
* @memberof IOrderResponse
|
|
5428
|
-
*/
|
|
5429
|
-
'paymentId': string;
|
|
5430
|
-
/**
|
|
5431
|
-
*
|
|
5432
|
-
* @type {number}
|
|
5433
|
-
* @memberof IOrderResponse
|
|
5434
|
-
*/
|
|
5435
|
-
'subtotal': number;
|
|
5436
|
-
/**
|
|
5437
|
-
*
|
|
5438
|
-
* @type {number}
|
|
5439
|
-
* @memberof IOrderResponse
|
|
5440
|
-
*/
|
|
5441
|
-
'discount': number;
|
|
5442
|
-
/**
|
|
5443
|
-
*
|
|
5444
|
-
* @type {number}
|
|
5445
|
-
* @memberof IOrderResponse
|
|
5446
|
-
*/
|
|
5447
|
-
'tax': number;
|
|
5448
|
-
/**
|
|
5449
|
-
*
|
|
5450
|
-
* @type {number}
|
|
5451
|
-
* @memberof IOrderResponse
|
|
5452
|
-
*/
|
|
5453
|
-
'shipping': number;
|
|
5454
|
-
/**
|
|
5455
|
-
*
|
|
5456
|
-
* @type {string}
|
|
5457
|
-
* @memberof IOrderResponse
|
|
5458
|
-
*/
|
|
5459
|
-
'shippingRate': string;
|
|
5460
|
-
/**
|
|
5461
|
-
*
|
|
5462
|
-
* @type {number}
|
|
5463
|
-
* @memberof IOrderResponse
|
|
5464
|
-
*/
|
|
5465
|
-
'total': number;
|
|
5466
|
-
/**
|
|
5467
|
-
*
|
|
5468
|
-
* @type {string}
|
|
5469
|
-
* @memberof IOrderResponse
|
|
5470
|
-
*/
|
|
5471
|
-
'note'?: string;
|
|
5472
|
-
/**
|
|
5473
|
-
*
|
|
5474
|
-
* @type {string}
|
|
5475
|
-
* @memberof IOrderResponse
|
|
5476
|
-
*/
|
|
5477
|
-
'ip': string;
|
|
5478
|
-
/**
|
|
5479
|
-
*
|
|
5480
|
-
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner>}
|
|
5481
|
-
* @memberof IOrderResponse
|
|
5482
|
-
*/
|
|
5483
|
-
'returns': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner>;
|
|
5484
|
-
/**
|
|
5485
|
-
*
|
|
5486
|
-
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeShippedInner>}
|
|
5487
|
-
* @memberof IOrderResponse
|
|
5488
|
-
*/
|
|
5489
|
-
'shipped': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeShippedInner>;
|
|
5490
|
-
/**
|
|
5491
|
-
*
|
|
5492
|
-
* @type {OrderPaymentStatusEnum}
|
|
5493
|
-
* @memberof IOrderResponse
|
|
5494
|
-
*/
|
|
5495
|
-
'paymentStatus': OrderPaymentStatusEnum;
|
|
5496
|
-
}
|
|
5497
5421
|
/**
|
|
5498
5422
|
*
|
|
5499
5423
|
* @export
|
|
@@ -5791,10 +5715,10 @@ export interface IOrdersResponse {
|
|
|
5791
5715
|
'totalPages': number;
|
|
5792
5716
|
/**
|
|
5793
5717
|
*
|
|
5794
|
-
* @type {Array<
|
|
5718
|
+
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframe>}
|
|
5795
5719
|
* @memberof IOrdersResponse
|
|
5796
5720
|
*/
|
|
5797
|
-
'data': Array<
|
|
5721
|
+
'data': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframe>;
|
|
5798
5722
|
}
|
|
5799
5723
|
/**
|
|
5800
5724
|
*
|
|
@@ -9769,6 +9693,12 @@ export interface PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys {
|
|
|
9769
9693
|
'legalDocuments': {
|
|
9770
9694
|
[key: string]: RecordStringUrlStringFileIImageValue;
|
|
9771
9695
|
};
|
|
9696
|
+
/**
|
|
9697
|
+
*
|
|
9698
|
+
* @type {RecordCompanyOnboardingStepEnumBoolean}
|
|
9699
|
+
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
|
|
9700
|
+
*/
|
|
9701
|
+
'onboarding': RecordCompanyOnboardingStepEnumBoolean;
|
|
9772
9702
|
/**
|
|
9773
9703
|
*
|
|
9774
9704
|
* @type {string}
|
|
@@ -10020,19 +9950,6 @@ export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUse
|
|
|
10020
9950
|
*/
|
|
10021
9951
|
'user': string;
|
|
10022
9952
|
}
|
|
10023
|
-
/**
|
|
10024
|
-
* From T, pick a set of properties whose keys are in the union K
|
|
10025
|
-
* @export
|
|
10026
|
-
* @interface PickICompanyOnboarding
|
|
10027
|
-
*/
|
|
10028
|
-
export interface PickICompanyOnboarding {
|
|
10029
|
-
/**
|
|
10030
|
-
*
|
|
10031
|
-
* @type {RecordCompanyOnboardingStepEnumBoolean}
|
|
10032
|
-
* @memberof PickICompanyOnboarding
|
|
10033
|
-
*/
|
|
10034
|
-
'onboarding': RecordCompanyOnboardingStepEnumBoolean;
|
|
10035
|
-
}
|
|
10036
9953
|
/**
|
|
10037
9954
|
* From T, pick a set of properties whose keys are in the union K
|
|
10038
9955
|
* @export
|
|
@@ -10713,6 +10630,31 @@ export interface PickIProductIdOrContentsOrCollectionsOrCategory {
|
|
|
10713
10630
|
*/
|
|
10714
10631
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
10715
10632
|
}
|
|
10633
|
+
/**
|
|
10634
|
+
* From T, pick a set of properties whose keys are in the union K
|
|
10635
|
+
* @export
|
|
10636
|
+
* @interface PickIProductIdOrContentsOrTotalSale
|
|
10637
|
+
*/
|
|
10638
|
+
export interface PickIProductIdOrContentsOrTotalSale {
|
|
10639
|
+
/**
|
|
10640
|
+
*
|
|
10641
|
+
* @type {string}
|
|
10642
|
+
* @memberof PickIProductIdOrContentsOrTotalSale
|
|
10643
|
+
*/
|
|
10644
|
+
'_id': string;
|
|
10645
|
+
/**
|
|
10646
|
+
*
|
|
10647
|
+
* @type {number}
|
|
10648
|
+
* @memberof PickIProductIdOrContentsOrTotalSale
|
|
10649
|
+
*/
|
|
10650
|
+
'totalSale': number;
|
|
10651
|
+
/**
|
|
10652
|
+
*
|
|
10653
|
+
* @type {PartialRecordLanguageEnumIContentsValue}
|
|
10654
|
+
* @memberof PickIProductIdOrContentsOrTotalSale
|
|
10655
|
+
*/
|
|
10656
|
+
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
10657
|
+
}
|
|
10716
10658
|
/**
|
|
10717
10659
|
* From T, pick a set of properties whose keys are in the union K
|
|
10718
10660
|
* @export
|
|
@@ -14339,6 +14281,15 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
|
|
|
14339
14281
|
* @throws {RequiredError}
|
|
14340
14282
|
*/
|
|
14341
14283
|
getCompanyCustomers: (id: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetCompanyCustomersDateFieldEnum, order?: OrderEnum, sort?: string, status?: CompanyUserStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14284
|
+
/**
|
|
14285
|
+
*
|
|
14286
|
+
* @param {string} id
|
|
14287
|
+
* @param {string} [start]
|
|
14288
|
+
* @param {string} [end]
|
|
14289
|
+
* @param {*} [options] Override http request option.
|
|
14290
|
+
* @throws {RequiredError}
|
|
14291
|
+
*/
|
|
14292
|
+
getCompanyDashboard: (id: string, start?: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14342
14293
|
/**
|
|
14343
14294
|
*
|
|
14344
14295
|
* @param {string} id
|
|
@@ -14599,10 +14550,19 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
|
|
|
14599
14550
|
/**
|
|
14600
14551
|
*
|
|
14601
14552
|
* @param {string} id
|
|
14553
|
+
* @param {string} [start]
|
|
14554
|
+
* @param {string} [end]
|
|
14602
14555
|
* @param {*} [options] Override http request option.
|
|
14603
14556
|
* @throws {RequiredError}
|
|
14604
14557
|
*/
|
|
14605
|
-
|
|
14558
|
+
getCompanyDashboard(id: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICompanyDashboardResponse>>;
|
|
14559
|
+
/**
|
|
14560
|
+
*
|
|
14561
|
+
* @param {string} id
|
|
14562
|
+
* @param {*} [options] Override http request option.
|
|
14563
|
+
* @throws {RequiredError}
|
|
14564
|
+
*/
|
|
14565
|
+
getCompanyOnboarding(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCompanyOnboarding200Response>>;
|
|
14606
14566
|
/**
|
|
14607
14567
|
*
|
|
14608
14568
|
* @param {string} id
|
|
@@ -14828,13 +14788,20 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
|
|
|
14828
14788
|
* @throws {RequiredError}
|
|
14829
14789
|
*/
|
|
14830
14790
|
getCompanyCustomers(requestParameters: CompanyApiGetCompanyCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUsersResponse>;
|
|
14791
|
+
/**
|
|
14792
|
+
*
|
|
14793
|
+
* @param {CompanyApiGetCompanyDashboardRequest} requestParameters Request parameters.
|
|
14794
|
+
* @param {*} [options] Override http request option.
|
|
14795
|
+
* @throws {RequiredError}
|
|
14796
|
+
*/
|
|
14797
|
+
getCompanyDashboard(requestParameters: CompanyApiGetCompanyDashboardRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyDashboardResponse>;
|
|
14831
14798
|
/**
|
|
14832
14799
|
*
|
|
14833
14800
|
* @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
|
|
14834
14801
|
* @param {*} [options] Override http request option.
|
|
14835
14802
|
* @throws {RequiredError}
|
|
14836
14803
|
*/
|
|
14837
|
-
getCompanyOnboarding(requestParameters: CompanyApiGetCompanyOnboardingRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
14804
|
+
getCompanyOnboarding(requestParameters: CompanyApiGetCompanyOnboardingRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetCompanyOnboarding200Response>;
|
|
14838
14805
|
/**
|
|
14839
14806
|
*
|
|
14840
14807
|
* @param {CompanyApiGetCompanyPaymentRequest} requestParameters Request parameters.
|
|
@@ -15267,6 +15234,31 @@ export interface CompanyApiGetCompanyCustomersRequest {
|
|
|
15267
15234
|
*/
|
|
15268
15235
|
readonly status?: CompanyUserStatusEnum;
|
|
15269
15236
|
}
|
|
15237
|
+
/**
|
|
15238
|
+
* Request parameters for getCompanyDashboard operation in CompanyApi.
|
|
15239
|
+
* @export
|
|
15240
|
+
* @interface CompanyApiGetCompanyDashboardRequest
|
|
15241
|
+
*/
|
|
15242
|
+
export interface CompanyApiGetCompanyDashboardRequest {
|
|
15243
|
+
/**
|
|
15244
|
+
*
|
|
15245
|
+
* @type {string}
|
|
15246
|
+
* @memberof CompanyApiGetCompanyDashboard
|
|
15247
|
+
*/
|
|
15248
|
+
readonly id: string;
|
|
15249
|
+
/**
|
|
15250
|
+
*
|
|
15251
|
+
* @type {string}
|
|
15252
|
+
* @memberof CompanyApiGetCompanyDashboard
|
|
15253
|
+
*/
|
|
15254
|
+
readonly start?: string;
|
|
15255
|
+
/**
|
|
15256
|
+
*
|
|
15257
|
+
* @type {string}
|
|
15258
|
+
* @memberof CompanyApiGetCompanyDashboard
|
|
15259
|
+
*/
|
|
15260
|
+
readonly end?: string;
|
|
15261
|
+
}
|
|
15270
15262
|
/**
|
|
15271
15263
|
* Request parameters for getCompanyOnboarding operation in CompanyApi.
|
|
15272
15264
|
* @export
|
|
@@ -15695,6 +15687,14 @@ export declare class CompanyApi extends BaseAPI {
|
|
|
15695
15687
|
* @memberof CompanyApi
|
|
15696
15688
|
*/
|
|
15697
15689
|
getCompanyCustomers(requestParameters: CompanyApiGetCompanyCustomersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUsersResponse, any>>;
|
|
15690
|
+
/**
|
|
15691
|
+
*
|
|
15692
|
+
* @param {CompanyApiGetCompanyDashboardRequest} requestParameters Request parameters.
|
|
15693
|
+
* @param {*} [options] Override http request option.
|
|
15694
|
+
* @throws {RequiredError}
|
|
15695
|
+
* @memberof CompanyApi
|
|
15696
|
+
*/
|
|
15697
|
+
getCompanyDashboard(requestParameters: CompanyApiGetCompanyDashboardRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyDashboardResponse, any>>;
|
|
15698
15698
|
/**
|
|
15699
15699
|
*
|
|
15700
15700
|
* @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
|
|
@@ -15702,7 +15702,7 @@ export declare class CompanyApi extends BaseAPI {
|
|
|
15702
15702
|
* @throws {RequiredError}
|
|
15703
15703
|
* @memberof CompanyApi
|
|
15704
15704
|
*/
|
|
15705
|
-
getCompanyOnboarding(requestParameters: CompanyApiGetCompanyOnboardingRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
15705
|
+
getCompanyOnboarding(requestParameters: CompanyApiGetCompanyOnboardingRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCompanyOnboarding200Response, any>>;
|
|
15706
15706
|
/**
|
|
15707
15707
|
*
|
|
15708
15708
|
* @param {CompanyApiGetCompanyPaymentRequest} requestParameters Request parameters.
|
|
@@ -17390,7 +17390,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
17390
17390
|
* @param {*} [options] Override http request option.
|
|
17391
17391
|
* @throws {RequiredError}
|
|
17392
17392
|
*/
|
|
17393
|
-
getOrderById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
17393
|
+
getOrderById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PickIOrderExcludeKeyofIOrderHtmlOrIframe>>;
|
|
17394
17394
|
/**
|
|
17395
17395
|
*
|
|
17396
17396
|
* @param {string} id
|
|
@@ -17512,7 +17512,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
17512
17512
|
* @param {*} [options] Override http request option.
|
|
17513
17513
|
* @throws {RequiredError}
|
|
17514
17514
|
*/
|
|
17515
|
-
getOrderById(requestParameters: OrderApiGetOrderByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
17515
|
+
getOrderById(requestParameters: OrderApiGetOrderByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PickIOrderExcludeKeyofIOrderHtmlOrIframe>;
|
|
17516
17516
|
/**
|
|
17517
17517
|
*
|
|
17518
17518
|
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
@@ -17981,7 +17981,7 @@ export declare class OrderApi extends BaseAPI {
|
|
|
17981
17981
|
* @throws {RequiredError}
|
|
17982
17982
|
* @memberof OrderApi
|
|
17983
17983
|
*/
|
|
17984
|
-
getOrderById(requestParameters: OrderApiGetOrderByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
17984
|
+
getOrderById(requestParameters: OrderApiGetOrderByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PickIOrderExcludeKeyofIOrderHtmlOrIframe, any>>;
|
|
17985
17985
|
/**
|
|
17986
17986
|
*
|
|
17987
17987
|
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
package/dist/api/api.js
CHANGED
|
@@ -16,10 +16,10 @@ 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.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = void 0;
|
|
19
|
+
exports.OrderStatusEnum = exports.OrderShippedStatusEnum = exports.OrderReturnStatusEnumWAITINGRETURN = exports.OrderReturnStatusEnumRETURNED = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsSortEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPaymentPostRequestPeriodEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = exports.IMyOrderCollectionQueryParamsDateFieldEnum = exports.IFileCollectionQueryParamsDateFieldEnum = exports.IContactFormCollectionQueryParamsDateFieldEnum = exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = exports.ICompanyDashboardResponsePeriodEnum = exports.ICompanyCollectionQueryParamsDateFieldEnum = exports.ICollectionCollectionsQueryParamsDateFieldEnum = exports.ICategoryCollectionQueryParamsDateFieldEnum = exports.IBrandCollectionQueryParamsDateFieldEnum = exports.FontSizeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ContentPositionYEnum = exports.ContentPositionXEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = exports.ButtonVariantEnum = void 0;
|
|
20
|
+
exports.GetCompanyCustomersDateFieldEnum = exports.GetCompaniesDateFieldEnum = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.GetCollectionsDateFieldEnum = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.GetCategoriesDateFieldEnum = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.GetBrandsDateFieldEnum = 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.TemplateTypeEnum = exports.SitemapTypeEnum = exports.ShippingPricingTypeEnum = exports.ReviewStatusEnum = exports.ProductDetailImageZoomTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PickIThemeExcludeKeyofIThemeTemplateConfigBlogCardTextAlignEnum = exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = exports.PaymentStatusEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = exports.PageTypeEnum = void 0;
|
|
21
|
+
exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsSortEnum = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPlansDateFieldEnum = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.GetOrdersDateFieldEnum = exports.GetMyOrdersDateFieldEnum = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.GetOperationsDateFieldEnum = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.GetNotificationsDateFieldEnum = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.GetFilesDateFieldEnum = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.GetContactFormsDateFieldEnum = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = void 0;
|
|
22
|
+
exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = void 0;
|
|
23
23
|
const axios_1 = __importDefault(require("axios"));
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
@@ -534,6 +534,11 @@ exports.ICompanyCollectionQueryParamsDateFieldEnum = {
|
|
|
534
534
|
CREATED_AT: 'createdAt',
|
|
535
535
|
UPDATED_AT: 'updatedAt'
|
|
536
536
|
};
|
|
537
|
+
exports.ICompanyDashboardResponsePeriodEnum = {
|
|
538
|
+
DAY: 'day',
|
|
539
|
+
MONTH: 'month',
|
|
540
|
+
WEEK: 'week'
|
|
541
|
+
};
|
|
537
542
|
exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = {
|
|
538
543
|
CREATED_AT: 'createdAt',
|
|
539
544
|
UPDATED_AT: 'updatedAt'
|
|
@@ -4161,6 +4166,46 @@ const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4161
4166
|
options: localVarRequestOptions,
|
|
4162
4167
|
};
|
|
4163
4168
|
},
|
|
4169
|
+
/**
|
|
4170
|
+
*
|
|
4171
|
+
* @param {string} id
|
|
4172
|
+
* @param {string} [start]
|
|
4173
|
+
* @param {string} [end]
|
|
4174
|
+
* @param {*} [options] Override http request option.
|
|
4175
|
+
* @throws {RequiredError}
|
|
4176
|
+
*/
|
|
4177
|
+
getCompanyDashboard: async (id, start, end, options = {}) => {
|
|
4178
|
+
// verify required parameter 'id' is not null or undefined
|
|
4179
|
+
(0, common_1.assertParamExists)('getCompanyDashboard', 'id', id);
|
|
4180
|
+
const localVarPath = `/api/companies/{id}/dashboard`
|
|
4181
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4182
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4183
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4184
|
+
let baseOptions;
|
|
4185
|
+
if (configuration) {
|
|
4186
|
+
baseOptions = configuration.baseOptions;
|
|
4187
|
+
}
|
|
4188
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4189
|
+
const localVarHeaderParameter = {};
|
|
4190
|
+
const localVarQueryParameter = {};
|
|
4191
|
+
if (start !== undefined) {
|
|
4192
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
4193
|
+
start.toISOString() :
|
|
4194
|
+
start;
|
|
4195
|
+
}
|
|
4196
|
+
if (end !== undefined) {
|
|
4197
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
4198
|
+
end.toISOString() :
|
|
4199
|
+
end;
|
|
4200
|
+
}
|
|
4201
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4202
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4203
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4204
|
+
return {
|
|
4205
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4206
|
+
options: localVarRequestOptions,
|
|
4207
|
+
};
|
|
4208
|
+
},
|
|
4164
4209
|
/**
|
|
4165
4210
|
*
|
|
4166
4211
|
* @param {string} id
|
|
@@ -4900,6 +4945,20 @@ const CompanyApiFp = function (configuration) {
|
|
|
4900
4945
|
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyCustomers']?.[localVarOperationServerIndex]?.url;
|
|
4901
4946
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4902
4947
|
},
|
|
4948
|
+
/**
|
|
4949
|
+
*
|
|
4950
|
+
* @param {string} id
|
|
4951
|
+
* @param {string} [start]
|
|
4952
|
+
* @param {string} [end]
|
|
4953
|
+
* @param {*} [options] Override http request option.
|
|
4954
|
+
* @throws {RequiredError}
|
|
4955
|
+
*/
|
|
4956
|
+
async getCompanyDashboard(id, start, end, options) {
|
|
4957
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyDashboard(id, start, end, options);
|
|
4958
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4959
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyDashboard']?.[localVarOperationServerIndex]?.url;
|
|
4960
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4961
|
+
},
|
|
4903
4962
|
/**
|
|
4904
4963
|
*
|
|
4905
4964
|
* @param {string} id
|
|
@@ -5247,6 +5306,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5247
5306
|
getCompanyCustomers(requestParameters, options) {
|
|
5248
5307
|
return localVarFp.getCompanyCustomers(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
5249
5308
|
},
|
|
5309
|
+
/**
|
|
5310
|
+
*
|
|
5311
|
+
* @param {CompanyApiGetCompanyDashboardRequest} requestParameters Request parameters.
|
|
5312
|
+
* @param {*} [options] Override http request option.
|
|
5313
|
+
* @throws {RequiredError}
|
|
5314
|
+
*/
|
|
5315
|
+
getCompanyDashboard(requestParameters, options) {
|
|
5316
|
+
return localVarFp.getCompanyDashboard(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
5317
|
+
},
|
|
5250
5318
|
/**
|
|
5251
5319
|
*
|
|
5252
5320
|
* @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
|
|
@@ -5540,6 +5608,16 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
5540
5608
|
getCompanyCustomers(requestParameters, options) {
|
|
5541
5609
|
return (0, exports.CompanyApiFp)(this.configuration).getCompanyCustomers(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
5542
5610
|
}
|
|
5611
|
+
/**
|
|
5612
|
+
*
|
|
5613
|
+
* @param {CompanyApiGetCompanyDashboardRequest} requestParameters Request parameters.
|
|
5614
|
+
* @param {*} [options] Override http request option.
|
|
5615
|
+
* @throws {RequiredError}
|
|
5616
|
+
* @memberof CompanyApi
|
|
5617
|
+
*/
|
|
5618
|
+
getCompanyDashboard(requestParameters, options) {
|
|
5619
|
+
return (0, exports.CompanyApiFp)(this.configuration).getCompanyDashboard(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
5620
|
+
}
|
|
5543
5621
|
/**
|
|
5544
5622
|
*
|
|
5545
5623
|
* @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
|
package/dist/api/api.mjs
CHANGED
|
@@ -522,6 +522,11 @@ export const ICompanyCollectionQueryParamsDateFieldEnum = {
|
|
|
522
522
|
CREATED_AT: 'createdAt',
|
|
523
523
|
UPDATED_AT: 'updatedAt'
|
|
524
524
|
};
|
|
525
|
+
export const ICompanyDashboardResponsePeriodEnum = {
|
|
526
|
+
DAY: 'day',
|
|
527
|
+
MONTH: 'month',
|
|
528
|
+
WEEK: 'week'
|
|
529
|
+
};
|
|
525
530
|
export const ICompanyUsersCollectionQueryParamsDateFieldEnum = {
|
|
526
531
|
CREATED_AT: 'createdAt',
|
|
527
532
|
UPDATED_AT: 'updatedAt'
|
|
@@ -4125,6 +4130,46 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
4125
4130
|
options: localVarRequestOptions,
|
|
4126
4131
|
};
|
|
4127
4132
|
},
|
|
4133
|
+
/**
|
|
4134
|
+
*
|
|
4135
|
+
* @param {string} id
|
|
4136
|
+
* @param {string} [start]
|
|
4137
|
+
* @param {string} [end]
|
|
4138
|
+
* @param {*} [options] Override http request option.
|
|
4139
|
+
* @throws {RequiredError}
|
|
4140
|
+
*/
|
|
4141
|
+
getCompanyDashboard: async (id, start, end, options = {}) => {
|
|
4142
|
+
// verify required parameter 'id' is not null or undefined
|
|
4143
|
+
assertParamExists('getCompanyDashboard', 'id', id);
|
|
4144
|
+
const localVarPath = `/api/companies/{id}/dashboard`
|
|
4145
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4146
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4147
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4148
|
+
let baseOptions;
|
|
4149
|
+
if (configuration) {
|
|
4150
|
+
baseOptions = configuration.baseOptions;
|
|
4151
|
+
}
|
|
4152
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4153
|
+
const localVarHeaderParameter = {};
|
|
4154
|
+
const localVarQueryParameter = {};
|
|
4155
|
+
if (start !== undefined) {
|
|
4156
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
4157
|
+
start.toISOString() :
|
|
4158
|
+
start;
|
|
4159
|
+
}
|
|
4160
|
+
if (end !== undefined) {
|
|
4161
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
4162
|
+
end.toISOString() :
|
|
4163
|
+
end;
|
|
4164
|
+
}
|
|
4165
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4166
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4167
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4168
|
+
return {
|
|
4169
|
+
url: toPathString(localVarUrlObj),
|
|
4170
|
+
options: localVarRequestOptions,
|
|
4171
|
+
};
|
|
4172
|
+
},
|
|
4128
4173
|
/**
|
|
4129
4174
|
*
|
|
4130
4175
|
* @param {string} id
|
|
@@ -4863,6 +4908,20 @@ export const CompanyApiFp = function (configuration) {
|
|
|
4863
4908
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyCustomers']?.[localVarOperationServerIndex]?.url;
|
|
4864
4909
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4865
4910
|
},
|
|
4911
|
+
/**
|
|
4912
|
+
*
|
|
4913
|
+
* @param {string} id
|
|
4914
|
+
* @param {string} [start]
|
|
4915
|
+
* @param {string} [end]
|
|
4916
|
+
* @param {*} [options] Override http request option.
|
|
4917
|
+
* @throws {RequiredError}
|
|
4918
|
+
*/
|
|
4919
|
+
async getCompanyDashboard(id, start, end, options) {
|
|
4920
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyDashboard(id, start, end, options);
|
|
4921
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4922
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyDashboard']?.[localVarOperationServerIndex]?.url;
|
|
4923
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4924
|
+
},
|
|
4866
4925
|
/**
|
|
4867
4926
|
*
|
|
4868
4927
|
* @param {string} id
|
|
@@ -5209,6 +5268,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
5209
5268
|
getCompanyCustomers(requestParameters, options) {
|
|
5210
5269
|
return localVarFp.getCompanyCustomers(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
5211
5270
|
},
|
|
5271
|
+
/**
|
|
5272
|
+
*
|
|
5273
|
+
* @param {CompanyApiGetCompanyDashboardRequest} requestParameters Request parameters.
|
|
5274
|
+
* @param {*} [options] Override http request option.
|
|
5275
|
+
* @throws {RequiredError}
|
|
5276
|
+
*/
|
|
5277
|
+
getCompanyDashboard(requestParameters, options) {
|
|
5278
|
+
return localVarFp.getCompanyDashboard(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
5279
|
+
},
|
|
5212
5280
|
/**
|
|
5213
5281
|
*
|
|
5214
5282
|
* @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
|
|
@@ -5501,6 +5569,16 @@ export class CompanyApi extends BaseAPI {
|
|
|
5501
5569
|
getCompanyCustomers(requestParameters, options) {
|
|
5502
5570
|
return CompanyApiFp(this.configuration).getCompanyCustomers(requestParameters.id, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
5503
5571
|
}
|
|
5572
|
+
/**
|
|
5573
|
+
*
|
|
5574
|
+
* @param {CompanyApiGetCompanyDashboardRequest} requestParameters Request parameters.
|
|
5575
|
+
* @param {*} [options] Override http request option.
|
|
5576
|
+
* @throws {RequiredError}
|
|
5577
|
+
* @memberof CompanyApi
|
|
5578
|
+
*/
|
|
5579
|
+
getCompanyDashboard(requestParameters, options) {
|
|
5580
|
+
return CompanyApiFp(this.configuration).getCompanyDashboard(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
5581
|
+
}
|
|
5504
5582
|
/**
|
|
5505
5583
|
*
|
|
5506
5584
|
* @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.102",
|
|
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",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"bugs": {
|
|
38
38
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "9a7ba30d3f0bf741ab54cd158e069810f2f7d4ba"
|
|
41
41
|
}
|