@infisale-client/api 1.2.101 → 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 +162 -174
- 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
|
@@ -2744,6 +2744,80 @@ export interface ICompanyCreateUserRequest {
|
|
|
2744
2744
|
*/
|
|
2745
2745
|
'role': string;
|
|
2746
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
|
+
}
|
|
2747
2821
|
/**
|
|
2748
2822
|
*
|
|
2749
2823
|
* @export
|
|
@@ -5344,175 +5418,6 @@ export interface IOrderPostRequest {
|
|
|
5344
5418
|
*/
|
|
5345
5419
|
'shippingRateId': string;
|
|
5346
5420
|
}
|
|
5347
|
-
/**
|
|
5348
|
-
*
|
|
5349
|
-
* @export
|
|
5350
|
-
* @interface IOrderResponse
|
|
5351
|
-
*/
|
|
5352
|
-
export interface IOrderResponse {
|
|
5353
|
-
/**
|
|
5354
|
-
*
|
|
5355
|
-
* @type {number}
|
|
5356
|
-
* @memberof IOrderResponse
|
|
5357
|
-
*/
|
|
5358
|
-
'number': number;
|
|
5359
|
-
/**
|
|
5360
|
-
*
|
|
5361
|
-
* @type {string}
|
|
5362
|
-
* @memberof IOrderResponse
|
|
5363
|
-
*/
|
|
5364
|
-
'email'?: string;
|
|
5365
|
-
/**
|
|
5366
|
-
*
|
|
5367
|
-
* @type {string}
|
|
5368
|
-
* @memberof IOrderResponse
|
|
5369
|
-
*/
|
|
5370
|
-
'company': string;
|
|
5371
|
-
/**
|
|
5372
|
-
*
|
|
5373
|
-
* @type {OrderStatusEnum}
|
|
5374
|
-
* @memberof IOrderResponse
|
|
5375
|
-
*/
|
|
5376
|
-
'status': OrderStatusEnum;
|
|
5377
|
-
/**
|
|
5378
|
-
*
|
|
5379
|
-
* @type {string}
|
|
5380
|
-
* @memberof IOrderResponse
|
|
5381
|
-
*/
|
|
5382
|
-
'_id': string;
|
|
5383
|
-
/**
|
|
5384
|
-
*
|
|
5385
|
-
* @type {number}
|
|
5386
|
-
* @memberof IOrderResponse
|
|
5387
|
-
*/
|
|
5388
|
-
'__v': number;
|
|
5389
|
-
/**
|
|
5390
|
-
*
|
|
5391
|
-
* @type {string}
|
|
5392
|
-
* @memberof IOrderResponse
|
|
5393
|
-
*/
|
|
5394
|
-
'createdAt': string;
|
|
5395
|
-
/**
|
|
5396
|
-
*
|
|
5397
|
-
* @type {string}
|
|
5398
|
-
* @memberof IOrderResponse
|
|
5399
|
-
*/
|
|
5400
|
-
'updatedAt': string;
|
|
5401
|
-
/**
|
|
5402
|
-
*
|
|
5403
|
-
* @type {string}
|
|
5404
|
-
* @memberof IOrderResponse
|
|
5405
|
-
*/
|
|
5406
|
-
'user'?: string;
|
|
5407
|
-
/**
|
|
5408
|
-
*
|
|
5409
|
-
* @type {CurrencyEnum}
|
|
5410
|
-
* @memberof IOrderResponse
|
|
5411
|
-
*/
|
|
5412
|
-
'currency': CurrencyEnum;
|
|
5413
|
-
/**
|
|
5414
|
-
*
|
|
5415
|
-
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner>}
|
|
5416
|
-
* @memberof IOrderResponse
|
|
5417
|
-
*/
|
|
5418
|
-
'products': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeProductsInner>;
|
|
5419
|
-
/**
|
|
5420
|
-
*
|
|
5421
|
-
* @type {IAddress}
|
|
5422
|
-
* @memberof IOrderResponse
|
|
5423
|
-
*/
|
|
5424
|
-
'shippingAddress': IAddress;
|
|
5425
|
-
/**
|
|
5426
|
-
*
|
|
5427
|
-
* @type {IAddress}
|
|
5428
|
-
* @memberof IOrderResponse
|
|
5429
|
-
*/
|
|
5430
|
-
'billingAddress'?: IAddress;
|
|
5431
|
-
/**
|
|
5432
|
-
*
|
|
5433
|
-
* @type {PaymentMethodEnum}
|
|
5434
|
-
* @memberof IOrderResponse
|
|
5435
|
-
*/
|
|
5436
|
-
'paymentMethod': PaymentMethodEnum;
|
|
5437
|
-
/**
|
|
5438
|
-
*
|
|
5439
|
-
* @type {PaymentGatewayEnum}
|
|
5440
|
-
* @memberof IOrderResponse
|
|
5441
|
-
*/
|
|
5442
|
-
'paymentGateway': PaymentGatewayEnum;
|
|
5443
|
-
/**
|
|
5444
|
-
*
|
|
5445
|
-
* @type {string}
|
|
5446
|
-
* @memberof IOrderResponse
|
|
5447
|
-
*/
|
|
5448
|
-
'paymentId': string;
|
|
5449
|
-
/**
|
|
5450
|
-
*
|
|
5451
|
-
* @type {number}
|
|
5452
|
-
* @memberof IOrderResponse
|
|
5453
|
-
*/
|
|
5454
|
-
'subtotal': number;
|
|
5455
|
-
/**
|
|
5456
|
-
*
|
|
5457
|
-
* @type {number}
|
|
5458
|
-
* @memberof IOrderResponse
|
|
5459
|
-
*/
|
|
5460
|
-
'discount': number;
|
|
5461
|
-
/**
|
|
5462
|
-
*
|
|
5463
|
-
* @type {number}
|
|
5464
|
-
* @memberof IOrderResponse
|
|
5465
|
-
*/
|
|
5466
|
-
'tax': number;
|
|
5467
|
-
/**
|
|
5468
|
-
*
|
|
5469
|
-
* @type {number}
|
|
5470
|
-
* @memberof IOrderResponse
|
|
5471
|
-
*/
|
|
5472
|
-
'shipping': number;
|
|
5473
|
-
/**
|
|
5474
|
-
*
|
|
5475
|
-
* @type {string}
|
|
5476
|
-
* @memberof IOrderResponse
|
|
5477
|
-
*/
|
|
5478
|
-
'shippingRate': string;
|
|
5479
|
-
/**
|
|
5480
|
-
*
|
|
5481
|
-
* @type {number}
|
|
5482
|
-
* @memberof IOrderResponse
|
|
5483
|
-
*/
|
|
5484
|
-
'total': number;
|
|
5485
|
-
/**
|
|
5486
|
-
*
|
|
5487
|
-
* @type {string}
|
|
5488
|
-
* @memberof IOrderResponse
|
|
5489
|
-
*/
|
|
5490
|
-
'note'?: string;
|
|
5491
|
-
/**
|
|
5492
|
-
*
|
|
5493
|
-
* @type {string}
|
|
5494
|
-
* @memberof IOrderResponse
|
|
5495
|
-
*/
|
|
5496
|
-
'ip': string;
|
|
5497
|
-
/**
|
|
5498
|
-
*
|
|
5499
|
-
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner>}
|
|
5500
|
-
* @memberof IOrderResponse
|
|
5501
|
-
*/
|
|
5502
|
-
'returns': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInner>;
|
|
5503
|
-
/**
|
|
5504
|
-
*
|
|
5505
|
-
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeShippedInner>}
|
|
5506
|
-
* @memberof IOrderResponse
|
|
5507
|
-
*/
|
|
5508
|
-
'shipped': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeShippedInner>;
|
|
5509
|
-
/**
|
|
5510
|
-
*
|
|
5511
|
-
* @type {OrderPaymentStatusEnum}
|
|
5512
|
-
* @memberof IOrderResponse
|
|
5513
|
-
*/
|
|
5514
|
-
'paymentStatus': OrderPaymentStatusEnum;
|
|
5515
|
-
}
|
|
5516
5421
|
/**
|
|
5517
5422
|
*
|
|
5518
5423
|
* @export
|
|
@@ -5810,10 +5715,10 @@ export interface IOrdersResponse {
|
|
|
5810
5715
|
'totalPages': number;
|
|
5811
5716
|
/**
|
|
5812
5717
|
*
|
|
5813
|
-
* @type {Array<
|
|
5718
|
+
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframe>}
|
|
5814
5719
|
* @memberof IOrdersResponse
|
|
5815
5720
|
*/
|
|
5816
|
-
'data': Array<
|
|
5721
|
+
'data': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframe>;
|
|
5817
5722
|
}
|
|
5818
5723
|
/**
|
|
5819
5724
|
*
|
|
@@ -10725,6 +10630,31 @@ export interface PickIProductIdOrContentsOrCollectionsOrCategory {
|
|
|
10725
10630
|
*/
|
|
10726
10631
|
'contents': PartialRecordLanguageEnumIContentsValue;
|
|
10727
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
|
+
}
|
|
10728
10658
|
/**
|
|
10729
10659
|
* From T, pick a set of properties whose keys are in the union K
|
|
10730
10660
|
* @export
|
|
@@ -14351,6 +14281,15 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
|
|
|
14351
14281
|
* @throws {RequiredError}
|
|
14352
14282
|
*/
|
|
14353
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>;
|
|
14354
14293
|
/**
|
|
14355
14294
|
*
|
|
14356
14295
|
* @param {string} id
|
|
@@ -14608,6 +14547,15 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
|
|
|
14608
14547
|
* @throws {RequiredError}
|
|
14609
14548
|
*/
|
|
14610
14549
|
getCompanyCustomers(id: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: GetCompanyCustomersDateFieldEnum, order?: OrderEnum, sort?: string, status?: CompanyUserStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUsersResponse>>;
|
|
14550
|
+
/**
|
|
14551
|
+
*
|
|
14552
|
+
* @param {string} id
|
|
14553
|
+
* @param {string} [start]
|
|
14554
|
+
* @param {string} [end]
|
|
14555
|
+
* @param {*} [options] Override http request option.
|
|
14556
|
+
* @throws {RequiredError}
|
|
14557
|
+
*/
|
|
14558
|
+
getCompanyDashboard(id: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICompanyDashboardResponse>>;
|
|
14611
14559
|
/**
|
|
14612
14560
|
*
|
|
14613
14561
|
* @param {string} id
|
|
@@ -14840,6 +14788,13 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
|
|
|
14840
14788
|
* @throws {RequiredError}
|
|
14841
14789
|
*/
|
|
14842
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>;
|
|
14843
14798
|
/**
|
|
14844
14799
|
*
|
|
14845
14800
|
* @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
|
|
@@ -15279,6 +15234,31 @@ export interface CompanyApiGetCompanyCustomersRequest {
|
|
|
15279
15234
|
*/
|
|
15280
15235
|
readonly status?: CompanyUserStatusEnum;
|
|
15281
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
|
+
}
|
|
15282
15262
|
/**
|
|
15283
15263
|
* Request parameters for getCompanyOnboarding operation in CompanyApi.
|
|
15284
15264
|
* @export
|
|
@@ -15707,6 +15687,14 @@ export declare class CompanyApi extends BaseAPI {
|
|
|
15707
15687
|
* @memberof CompanyApi
|
|
15708
15688
|
*/
|
|
15709
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>>;
|
|
15710
15698
|
/**
|
|
15711
15699
|
*
|
|
15712
15700
|
* @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
|
|
@@ -17402,7 +17390,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
17402
17390
|
* @param {*} [options] Override http request option.
|
|
17403
17391
|
* @throws {RequiredError}
|
|
17404
17392
|
*/
|
|
17405
|
-
getOrderById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
17393
|
+
getOrderById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PickIOrderExcludeKeyofIOrderHtmlOrIframe>>;
|
|
17406
17394
|
/**
|
|
17407
17395
|
*
|
|
17408
17396
|
* @param {string} id
|
|
@@ -17524,7 +17512,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
17524
17512
|
* @param {*} [options] Override http request option.
|
|
17525
17513
|
* @throws {RequiredError}
|
|
17526
17514
|
*/
|
|
17527
|
-
getOrderById(requestParameters: OrderApiGetOrderByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
17515
|
+
getOrderById(requestParameters: OrderApiGetOrderByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PickIOrderExcludeKeyofIOrderHtmlOrIframe>;
|
|
17528
17516
|
/**
|
|
17529
17517
|
*
|
|
17530
17518
|
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
@@ -17993,7 +17981,7 @@ export declare class OrderApi extends BaseAPI {
|
|
|
17993
17981
|
* @throws {RequiredError}
|
|
17994
17982
|
* @memberof OrderApi
|
|
17995
17983
|
*/
|
|
17996
|
-
getOrderById(requestParameters: OrderApiGetOrderByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
17984
|
+
getOrderById(requestParameters: OrderApiGetOrderByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PickIOrderExcludeKeyofIOrderHtmlOrIframe, any>>;
|
|
17997
17985
|
/**
|
|
17998
17986
|
*
|
|
17999
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
|
}
|