@infisale-client/api 1.3.23 → 1.3.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api/api.d.ts CHANGED
@@ -25,16 +25,6 @@ export declare const CompanyStatusEnum: {
25
25
  readonly DELETED: "deleted";
26
26
  };
27
27
  export type CompanyStatusEnum = typeof CompanyStatusEnum[keyof typeof CompanyStatusEnum];
28
- /**
29
- *
30
- * @export
31
- * @enum {string}
32
- */
33
- export declare const CompanyTypeEnum: {
34
- readonly B2_C: "B2C";
35
- readonly B2_B: "B2B";
36
- };
37
- export type CompanyTypeEnum = typeof CompanyTypeEnum[keyof typeof CompanyTypeEnum];
38
28
  /**
39
29
  *
40
30
  * @export
@@ -2023,12 +2013,6 @@ export interface ICompany {
2023
2013
  * @memberof ICompany
2024
2014
  */
2025
2015
  'plan': PlanTypeEnum;
2026
- /**
2027
- *
2028
- * @type {CompanyTypeEnum}
2029
- * @memberof ICompany
2030
- */
2031
- 'type': CompanyTypeEnum;
2032
2016
  /**
2033
2017
  *
2034
2018
  * @type {string}
@@ -2085,14 +2069,6 @@ export interface ICompany {
2085
2069
  'roles': {
2086
2070
  [key: string]: PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue;
2087
2071
  };
2088
- /**
2089
- *
2090
- * @type {{ [key: string]: string; }}
2091
- * @memberof ICompany
2092
- */
2093
- 'socials'?: {
2094
- [key: string]: string;
2095
- };
2096
2072
  /**
2097
2073
  *
2098
2074
  * @type {string}
@@ -2203,12 +2179,6 @@ export interface ICompany {
2203
2179
  * @memberof ICompany
2204
2180
  */
2205
2181
  'firebaseAdminCredentials'?: ICompanyResponseFirebaseAdminCredentials;
2206
- /**
2207
- *
2208
- * @type {ICompanyResponseAddress}
2209
- * @memberof ICompany
2210
- */
2211
- 'address'?: ICompanyResponseAddress;
2212
2182
  /**
2213
2183
  *
2214
2184
  * @type {Array<ICompanyResponseCustomHostnamesInner>}
@@ -2362,12 +2332,6 @@ export interface ICompanyAdminResponse {
2362
2332
  * @memberof ICompanyAdminResponse
2363
2333
  */
2364
2334
  'updatedAt': string;
2365
- /**
2366
- *
2367
- * @type {CompanyTypeEnum}
2368
- * @memberof ICompanyAdminResponse
2369
- */
2370
- 'type': CompanyTypeEnum;
2371
2335
  /**
2372
2336
  *
2373
2337
  * @type {PlanTypeEnum}
@@ -2398,14 +2362,6 @@ export interface ICompanyAdminResponse {
2398
2362
  * @memberof ICompanyAdminResponse
2399
2363
  */
2400
2364
  'customPaymentMethods': RecordCustomPaymentMethodEnumExtraFeeNumberInfoPartialRecordLanguageEnumStringActiveBoolean;
2401
- /**
2402
- *
2403
- * @type {{ [key: string]: string; }}
2404
- * @memberof ICompanyAdminResponse
2405
- */
2406
- 'socials'?: {
2407
- [key: string]: string;
2408
- };
2409
2365
  /**
2410
2366
  *
2411
2367
  * @type {string}
@@ -2594,16 +2550,16 @@ export interface ICompanyAdminResponse {
2594
2550
  'firebaseAdminCredentials'?: ICompanyResponseFirebaseAdminCredentials;
2595
2551
  /**
2596
2552
  *
2597
- * @type {ICompanyResponseAddress}
2553
+ * @type {Array<ICompanyResponseCustomHostnamesInner>}
2598
2554
  * @memberof ICompanyAdminResponse
2599
2555
  */
2600
- 'address'?: ICompanyResponseAddress;
2556
+ 'customHostnames': Array<ICompanyResponseCustomHostnamesInner>;
2601
2557
  /**
2602
2558
  *
2603
- * @type {Array<ICompanyResponseCustomHostnamesInner>}
2559
+ * @type {number}
2604
2560
  * @memberof ICompanyAdminResponse
2605
2561
  */
2606
- 'customHostnames': Array<ICompanyResponseCustomHostnamesInner>;
2562
+ 'totalBandwidth': number;
2607
2563
  }
2608
2564
  /**
2609
2565
  *
@@ -3000,6 +2956,56 @@ export interface ICompanyDashboardResponseOrdersInner {
3000
2956
  */
3001
2957
  'date': string;
3002
2958
  }
2959
+ /**
2960
+ *
2961
+ * @export
2962
+ * @interface ICompanyMonthlyBandwidth
2963
+ */
2964
+ export interface ICompanyMonthlyBandwidth {
2965
+ /**
2966
+ *
2967
+ * @type {string}
2968
+ * @memberof ICompanyMonthlyBandwidth
2969
+ */
2970
+ '_id': string;
2971
+ /**
2972
+ *
2973
+ * @type {string}
2974
+ * @memberof ICompanyMonthlyBandwidth
2975
+ */
2976
+ 'company': string;
2977
+ /**
2978
+ *
2979
+ * @type {number}
2980
+ * @memberof ICompanyMonthlyBandwidth
2981
+ */
2982
+ 'year': number;
2983
+ /**
2984
+ *
2985
+ * @type {number}
2986
+ * @memberof ICompanyMonthlyBandwidth
2987
+ */
2988
+ 'month': number;
2989
+ /**
2990
+ *
2991
+ * @type {number}
2992
+ * @memberof ICompanyMonthlyBandwidth
2993
+ */
2994
+ 'bandwidth': number;
2995
+ }
2996
+ /**
2997
+ *
2998
+ * @export
2999
+ * @interface ICompanyMonthlyBandwidthResponse
3000
+ */
3001
+ export interface ICompanyMonthlyBandwidthResponse {
3002
+ /**
3003
+ *
3004
+ * @type {Array<ICompanyMonthlyBandwidth>}
3005
+ * @memberof ICompanyMonthlyBandwidthResponse
3006
+ */
3007
+ 'data': Array<ICompanyMonthlyBandwidth>;
3008
+ }
3003
3009
  /**
3004
3010
  *
3005
3011
  * @export
@@ -3050,12 +3056,6 @@ export interface ICompanyPatchRequest {
3050
3056
  * @memberof ICompanyPatchRequest
3051
3057
  */
3052
3058
  'theme'?: string;
3053
- /**
3054
- *
3055
- * @type {CompanyTypeEnum}
3056
- * @memberof ICompanyPatchRequest
3057
- */
3058
- 'type'?: CompanyTypeEnum;
3059
3059
  /**
3060
3060
  *
3061
3061
  * @type {ICompanyResponseFirebaseAdminCredentials}
@@ -3080,12 +3080,6 @@ export interface ICompanyPatchRequest {
3080
3080
  * @memberof ICompanyPatchRequest
3081
3081
  */
3082
3082
  'warehouses'?: Array<ICompanyPatchRequestWarehousesInner>;
3083
- /**
3084
- *
3085
- * @type {ICompanyResponseAddress}
3086
- * @memberof ICompanyPatchRequest
3087
- */
3088
- 'address'?: ICompanyResponseAddress;
3089
3083
  /**
3090
3084
  *
3091
3085
  * @type {string}
@@ -3110,14 +3104,6 @@ export interface ICompanyPatchRequest {
3110
3104
  * @memberof ICompanyPatchRequest
3111
3105
  */
3112
3106
  'customPaymentMethods'?: RecordCustomPaymentMethodEnumExtraFeeNumberInfoPartialRecordLanguageEnumStringActiveBoolean;
3113
- /**
3114
- *
3115
- * @type {{ [key: string]: string; }}
3116
- * @memberof ICompanyPatchRequest
3117
- */
3118
- 'socials'?: {
3119
- [key: string]: string;
3120
- };
3121
3107
  /**
3122
3108
  *
3123
3109
  * @type {string}
@@ -3334,12 +3320,6 @@ export interface ICompanyPostRequest {
3334
3320
  * @memberof ICompanyPostRequest
3335
3321
  */
3336
3322
  'plan': PlanTypeEnum;
3337
- /**
3338
- *
3339
- * @type {CompanyTypeEnum}
3340
- * @memberof ICompanyPostRequest
3341
- */
3342
- 'type': CompanyTypeEnum;
3343
3323
  /**
3344
3324
  *
3345
3325
  * @type {LanguageEnum}
@@ -3425,12 +3405,6 @@ export interface ICompanyResponse {
3425
3405
  * @memberof ICompanyResponse
3426
3406
  */
3427
3407
  'updatedAt': string;
3428
- /**
3429
- *
3430
- * @type {CompanyTypeEnum}
3431
- * @memberof ICompanyResponse
3432
- */
3433
- 'type': CompanyTypeEnum;
3434
3408
  /**
3435
3409
  *
3436
3410
  * @type {PlanTypeEnum}
@@ -3461,14 +3435,6 @@ export interface ICompanyResponse {
3461
3435
  * @memberof ICompanyResponse
3462
3436
  */
3463
3437
  'customPaymentMethods': RecordCustomPaymentMethodEnumExtraFeeNumberInfoPartialRecordLanguageEnumStringActiveBoolean;
3464
- /**
3465
- *
3466
- * @type {{ [key: string]: string; }}
3467
- * @memberof ICompanyResponse
3468
- */
3469
- 'socials'?: {
3470
- [key: string]: string;
3471
- };
3472
3438
  /**
3473
3439
  *
3474
3440
  * @type {string}
@@ -3635,49 +3601,18 @@ export interface ICompanyResponse {
3635
3601
  * @memberof ICompanyResponse
3636
3602
  */
3637
3603
  'firebaseAdminCredentials'?: ICompanyResponseFirebaseAdminCredentials;
3638
- /**
3639
- *
3640
- * @type {ICompanyResponseAddress}
3641
- * @memberof ICompanyResponse
3642
- */
3643
- 'address'?: ICompanyResponseAddress;
3644
3604
  /**
3645
3605
  *
3646
3606
  * @type {Array<ICompanyResponseCustomHostnamesInner>}
3647
3607
  * @memberof ICompanyResponse
3648
3608
  */
3649
3609
  'customHostnames': Array<ICompanyResponseCustomHostnamesInner>;
3650
- }
3651
- /**
3652
- *
3653
- * @export
3654
- * @interface ICompanyResponseAddress
3655
- */
3656
- export interface ICompanyResponseAddress {
3657
- /**
3658
- *
3659
- * @type {string}
3660
- * @memberof ICompanyResponseAddress
3661
- */
3662
- 'description': string;
3663
- /**
3664
- *
3665
- * @type {string}
3666
- * @memberof ICompanyResponseAddress
3667
- */
3668
- 'city': string;
3669
3610
  /**
3670
3611
  *
3671
- * @type {string}
3672
- * @memberof ICompanyResponseAddress
3673
- */
3674
- 'state': string;
3675
- /**
3676
- *
3677
- * @type {string}
3678
- * @memberof ICompanyResponseAddress
3612
+ * @type {number}
3613
+ * @memberof ICompanyResponse
3679
3614
  */
3680
- 'country': string;
3615
+ 'totalBandwidth': number;
3681
3616
  }
3682
3617
  /**
3683
3618
  *
@@ -10200,12 +10135,6 @@ export interface PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys {
10200
10135
  * @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
10201
10136
  */
10202
10137
  'updatedAt': string;
10203
- /**
10204
- *
10205
- * @type {CompanyTypeEnum}
10206
- * @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
10207
- */
10208
- 'type': CompanyTypeEnum;
10209
10138
  /**
10210
10139
  *
10211
10140
  * @type {PlanTypeEnum}
@@ -10236,14 +10165,6 @@ export interface PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys {
10236
10165
  * @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
10237
10166
  */
10238
10167
  'customPaymentMethods': RecordCustomPaymentMethodEnumExtraFeeNumberInfoPartialRecordLanguageEnumStringActiveBoolean;
10239
- /**
10240
- *
10241
- * @type {{ [key: string]: string; }}
10242
- * @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
10243
- */
10244
- 'socials'?: {
10245
- [key: string]: string;
10246
- };
10247
10168
  /**
10248
10169
  *
10249
10170
  * @type {string}
@@ -12098,9 +12019,12 @@ export type PlanStatusEnum = typeof PlanStatusEnum[keyof typeof PlanStatusEnum];
12098
12019
  * @enum {string}
12099
12020
  */
12100
12021
  export declare const PlanTypeEnum: {
12101
- readonly STANDARD: "standard";
12102
- readonly ADVANCED: "advanced";
12103
- readonly PREMIUM: "premium";
12022
+ readonly STANDARD_B2C: "standard-b2c";
12023
+ readonly ADVANCED_B2C: "advanced-b2c";
12024
+ readonly PREMIUM_B2C: "premium-b2c";
12025
+ readonly STANDARD_CMS: "standard-cms";
12026
+ readonly ADVANCED_CMS: "advanced-cms";
12027
+ readonly PREMIUM_CMS: "premium-cms";
12104
12028
  };
12105
12029
  export type PlanTypeEnum = typeof PlanTypeEnum[keyof typeof PlanTypeEnum];
12106
12030
  /**
@@ -12321,6 +12245,62 @@ export interface RecordLanguageEnumTitleStringTr {
12321
12245
  */
12322
12246
  'title': string;
12323
12247
  }
12248
+ /**
12249
+ * Construct a type with a set of properties K of type T
12250
+ * @export
12251
+ * @interface RecordPlanTypeEnumMonthlyBandwidthNumber
12252
+ */
12253
+ export interface RecordPlanTypeEnumMonthlyBandwidthNumber {
12254
+ /**
12255
+ *
12256
+ * @type {RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c}
12257
+ * @memberof RecordPlanTypeEnumMonthlyBandwidthNumber
12258
+ */
12259
+ 'standard-b2c': RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c;
12260
+ /**
12261
+ *
12262
+ * @type {RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c}
12263
+ * @memberof RecordPlanTypeEnumMonthlyBandwidthNumber
12264
+ */
12265
+ 'advanced-b2c': RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c;
12266
+ /**
12267
+ *
12268
+ * @type {RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c}
12269
+ * @memberof RecordPlanTypeEnumMonthlyBandwidthNumber
12270
+ */
12271
+ 'premium-b2c': RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c;
12272
+ /**
12273
+ *
12274
+ * @type {RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c}
12275
+ * @memberof RecordPlanTypeEnumMonthlyBandwidthNumber
12276
+ */
12277
+ 'standard-cms': RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c;
12278
+ /**
12279
+ *
12280
+ * @type {RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c}
12281
+ * @memberof RecordPlanTypeEnumMonthlyBandwidthNumber
12282
+ */
12283
+ 'advanced-cms': RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c;
12284
+ /**
12285
+ *
12286
+ * @type {RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c}
12287
+ * @memberof RecordPlanTypeEnumMonthlyBandwidthNumber
12288
+ */
12289
+ 'premium-cms': RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c;
12290
+ }
12291
+ /**
12292
+ *
12293
+ * @export
12294
+ * @interface RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c
12295
+ */
12296
+ export interface RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c {
12297
+ /**
12298
+ *
12299
+ * @type {number}
12300
+ * @memberof RecordPlanTypeEnumMonthlyBandwidthNumberStandardB2c
12301
+ */
12302
+ 'monthlyBandwidth': number;
12303
+ }
12324
12304
  /**
12325
12305
  *
12326
12306
  * @export
@@ -14973,6 +14953,13 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
14973
14953
  * @throws {RequiredError}
14974
14954
  */
14975
14955
  getCompanyDashboard: (id: string, start?: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14956
+ /**
14957
+ *
14958
+ * @param {string} id
14959
+ * @param {*} [options] Override http request option.
14960
+ * @throws {RequiredError}
14961
+ */
14962
+ getCompanyMonthlyBandwidth: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14976
14963
  /**
14977
14964
  *
14978
14965
  * @param {string} id
@@ -15313,6 +15300,13 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
15313
15300
  * @throws {RequiredError}
15314
15301
  */
15315
15302
  getCompanyDashboard(id: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICompanyDashboardResponse>>;
15303
+ /**
15304
+ *
15305
+ * @param {string} id
15306
+ * @param {*} [options] Override http request option.
15307
+ * @throws {RequiredError}
15308
+ */
15309
+ getCompanyMonthlyBandwidth(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICompanyMonthlyBandwidthResponse>>;
15316
15310
  /**
15317
15311
  *
15318
15312
  * @param {string} id
@@ -15620,6 +15614,13 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
15620
15614
  * @throws {RequiredError}
15621
15615
  */
15622
15616
  getCompanyDashboard(requestParameters: CompanyApiGetCompanyDashboardRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyDashboardResponse>;
15617
+ /**
15618
+ *
15619
+ * @param {CompanyApiGetCompanyMonthlyBandwidthRequest} requestParameters Request parameters.
15620
+ * @param {*} [options] Override http request option.
15621
+ * @throws {RequiredError}
15622
+ */
15623
+ getCompanyMonthlyBandwidth(requestParameters: CompanyApiGetCompanyMonthlyBandwidthRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyMonthlyBandwidthResponse>;
15623
15624
  /**
15624
15625
  *
15625
15626
  * @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
@@ -16225,6 +16226,19 @@ export interface CompanyApiGetCompanyDashboardRequest {
16225
16226
  */
16226
16227
  readonly end?: string;
16227
16228
  }
16229
+ /**
16230
+ * Request parameters for getCompanyMonthlyBandwidth operation in CompanyApi.
16231
+ * @export
16232
+ * @interface CompanyApiGetCompanyMonthlyBandwidthRequest
16233
+ */
16234
+ export interface CompanyApiGetCompanyMonthlyBandwidthRequest {
16235
+ /**
16236
+ *
16237
+ * @type {string}
16238
+ * @memberof CompanyApiGetCompanyMonthlyBandwidth
16239
+ */
16240
+ readonly id: string;
16241
+ }
16228
16242
  /**
16229
16243
  * Request parameters for getCompanyOnboarding operation in CompanyApi.
16230
16244
  * @export
@@ -16773,6 +16787,14 @@ export declare class CompanyApi extends BaseAPI {
16773
16787
  * @memberof CompanyApi
16774
16788
  */
16775
16789
  getCompanyDashboard(requestParameters: CompanyApiGetCompanyDashboardRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyDashboardResponse, any>>;
16790
+ /**
16791
+ *
16792
+ * @param {CompanyApiGetCompanyMonthlyBandwidthRequest} requestParameters Request parameters.
16793
+ * @param {*} [options] Override http request option.
16794
+ * @throws {RequiredError}
16795
+ * @memberof CompanyApi
16796
+ */
16797
+ getCompanyMonthlyBandwidth(requestParameters: CompanyApiGetCompanyMonthlyBandwidthRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyMonthlyBandwidthResponse, any>>;
16776
16798
  /**
16777
16799
  *
16778
16800
  * @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
@@ -20179,6 +20201,12 @@ export declare const PlanApiAxiosParamCreator: (configuration?: Configuration) =
20179
20201
  * @throws {RequiredError}
20180
20202
  */
20181
20203
  getPlanById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20204
+ /**
20205
+ *
20206
+ * @param {*} [options] Override http request option.
20207
+ * @throws {RequiredError}
20208
+ */
20209
+ getPlanLimits: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20182
20210
  /**
20183
20211
  *
20184
20212
  * @param {number} [page]
@@ -20230,6 +20258,12 @@ export declare const PlanApiFp: (configuration?: Configuration) => {
20230
20258
  * @throws {RequiredError}
20231
20259
  */
20232
20260
  getPlanById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPlanResponse>>;
20261
+ /**
20262
+ *
20263
+ * @param {*} [options] Override http request option.
20264
+ * @throws {RequiredError}
20265
+ */
20266
+ getPlanLimits(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RecordPlanTypeEnumMonthlyBandwidthNumber>>;
20233
20267
  /**
20234
20268
  *
20235
20269
  * @param {number} [page]
@@ -20281,6 +20315,12 @@ export declare const PlanApiFactory: (configuration?: Configuration, basePath?:
20281
20315
  * @throws {RequiredError}
20282
20316
  */
20283
20317
  getPlanById(requestParameters: PlanApiGetPlanByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IPlanResponse>;
20318
+ /**
20319
+ *
20320
+ * @param {*} [options] Override http request option.
20321
+ * @throws {RequiredError}
20322
+ */
20323
+ getPlanLimits(options?: RawAxiosRequestConfig): AxiosPromise<RecordPlanTypeEnumMonthlyBandwidthNumber>;
20284
20324
  /**
20285
20325
  *
20286
20326
  * @param {PlanApiGetPlansRequest} requestParameters Request parameters.
@@ -20452,6 +20492,13 @@ export declare class PlanApi extends BaseAPI {
20452
20492
  * @memberof PlanApi
20453
20493
  */
20454
20494
  getPlanById(requestParameters: PlanApiGetPlanByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IPlanResponse, any>>;
20495
+ /**
20496
+ *
20497
+ * @param {*} [options] Override http request option.
20498
+ * @throws {RequiredError}
20499
+ * @memberof PlanApi
20500
+ */
20501
+ getPlanLimits(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RecordPlanTypeEnumMonthlyBandwidthNumber, any>>;
20455
20502
  /**
20456
20503
  *
20457
20504
  * @param {PlanApiGetPlansRequest} 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.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = exports.PaymentStatusEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = exports.OrderStatusEnum = exports.OrderShippedStatusEnum = exports.OrderReturnStatusEnumWAITINGRETURN = exports.OrderReturnStatusEnumRETURNED = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.NavigationLinkTypeEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IUniqueCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsSortEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPaymentPostRequestPeriodEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = exports.INavigationCollectionQueryParamsDateFieldEnum = exports.IMyOrderCollectionQueryParamsDateFieldEnum = exports.IFileCollectionQueryParamsDateFieldEnum = exports.IContactFormCollectionQueryParamsDateFieldEnum = exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = exports.ICompanyDashboardResponsePeriodEnum = exports.ICompanyCollectionQueryParamsDateFieldEnum = exports.ICollectionCollectionsQueryParamsDateFieldEnum = exports.ICategoryCollectionQueryParamsDateFieldEnum = exports.IBrandCollectionQueryParamsDateFieldEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = void 0;
20
- exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.GetContactFormsDateFieldEnum = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = 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.StoreLocationEnum = exports.SitemapTypeEnum = exports.ShippingPricingTypeEnum = exports.ReviewStatusEnum = exports.PlanTypeEnum = void 0;
21
- exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = 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.GetNavigationsDateFieldEnum = exports.NavigationApi = exports.NavigationApiFactory = exports.NavigationApiFp = exports.NavigationApiAxiosParamCreator = exports.GetFilesDateFieldEnum = void 0;
22
- exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.GetUniquePagesDateFieldEnum = exports.UniquePageApi = exports.UniquePageApiFactory = exports.UniquePageApiFp = exports.UniquePageApiAxiosParamCreator = void 0;
19
+ exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PickICollectionQueryParamsExcludeKeyofICollectionQueryParamsSortDateFieldEnum = exports.PaymentStatusEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = exports.OrderStatusEnum = exports.OrderShippedStatusEnum = exports.OrderReturnStatusEnumWAITINGRETURN = exports.OrderReturnStatusEnumRETURNED = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.NavigationLinkTypeEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IUniqueCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsSortEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPaymentPostRequestPeriodEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = exports.INavigationCollectionQueryParamsDateFieldEnum = exports.IMyOrderCollectionQueryParamsDateFieldEnum = exports.IFileCollectionQueryParamsDateFieldEnum = exports.IContactFormCollectionQueryParamsDateFieldEnum = exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = exports.ICompanyDashboardResponsePeriodEnum = exports.ICompanyCollectionQueryParamsDateFieldEnum = exports.ICollectionCollectionsQueryParamsDateFieldEnum = exports.ICategoryCollectionQueryParamsDateFieldEnum = exports.IBrandCollectionQueryParamsDateFieldEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.CompanyUserStatusEnum = exports.CompanyStatusEnum = void 0;
20
+ exports.GetFilesDateFieldEnum = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.GetContactFormsDateFieldEnum = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = 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.StoreLocationEnum = exports.SitemapTypeEnum = exports.ShippingPricingTypeEnum = exports.ReviewStatusEnum = void 0;
21
+ exports.UniquePageApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = 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.GetNavigationsDateFieldEnum = exports.NavigationApi = exports.NavigationApiFactory = exports.NavigationApiFp = exports.NavigationApiAxiosParamCreator = void 0;
22
+ exports.GetUsersDateFieldEnum = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.GetUniquePagesDateFieldEnum = exports.UniquePageApi = exports.UniquePageApiFactory = exports.UniquePageApiFp = void 0;
23
23
  const axios_1 = __importDefault(require("axios"));
24
24
  // Some imports not used depending on template conditions
25
25
  // @ts-ignore
@@ -37,15 +37,6 @@ exports.CompanyStatusEnum = {
37
37
  PAYMENT_REQUIRED: 'payment_required',
38
38
  DELETED: 'deleted'
39
39
  };
40
- /**
41
- *
42
- * @export
43
- * @enum {string}
44
- */
45
- exports.CompanyTypeEnum = {
46
- B2_C: 'B2C',
47
- B2_B: 'B2B'
48
- };
49
40
  /**
50
41
  *
51
42
  * @export
@@ -656,9 +647,12 @@ exports.PlanStatusEnum = {
656
647
  * @enum {string}
657
648
  */
658
649
  exports.PlanTypeEnum = {
659
- STANDARD: 'standard',
660
- ADVANCED: 'advanced',
661
- PREMIUM: 'premium'
650
+ STANDARD_B2C: 'standard-b2c',
651
+ ADVANCED_B2C: 'advanced-b2c',
652
+ PREMIUM_B2C: 'premium-b2c',
653
+ STANDARD_CMS: 'standard-cms',
654
+ ADVANCED_CMS: 'advanced-cms',
655
+ PREMIUM_CMS: 'premium-cms'
662
656
  };
663
657
  /**
664
658
  *
@@ -4283,6 +4277,34 @@ const CompanyApiAxiosParamCreator = function (configuration) {
4283
4277
  options: localVarRequestOptions,
4284
4278
  };
4285
4279
  },
4280
+ /**
4281
+ *
4282
+ * @param {string} id
4283
+ * @param {*} [options] Override http request option.
4284
+ * @throws {RequiredError}
4285
+ */
4286
+ getCompanyMonthlyBandwidth: async (id, options = {}) => {
4287
+ // verify required parameter 'id' is not null or undefined
4288
+ (0, common_1.assertParamExists)('getCompanyMonthlyBandwidth', 'id', id);
4289
+ const localVarPath = `/api/companies/{id}/monthly-bandwidth`
4290
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4291
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4292
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4293
+ let baseOptions;
4294
+ if (configuration) {
4295
+ baseOptions = configuration.baseOptions;
4296
+ }
4297
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4298
+ const localVarHeaderParameter = {};
4299
+ const localVarQueryParameter = {};
4300
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4301
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4302
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4303
+ return {
4304
+ url: (0, common_1.toPathString)(localVarUrlObj),
4305
+ options: localVarRequestOptions,
4306
+ };
4307
+ },
4286
4308
  /**
4287
4309
  *
4288
4310
  * @param {string} id
@@ -5203,6 +5225,18 @@ const CompanyApiFp = function (configuration) {
5203
5225
  const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyDashboard']?.[localVarOperationServerIndex]?.url;
5204
5226
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5205
5227
  },
5228
+ /**
5229
+ *
5230
+ * @param {string} id
5231
+ * @param {*} [options] Override http request option.
5232
+ * @throws {RequiredError}
5233
+ */
5234
+ async getCompanyMonthlyBandwidth(id, options) {
5235
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyMonthlyBandwidth(id, options);
5236
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5237
+ const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getCompanyMonthlyBandwidth']?.[localVarOperationServerIndex]?.url;
5238
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5239
+ },
5206
5240
  /**
5207
5241
  *
5208
5242
  * @param {string} id
@@ -5651,6 +5685,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
5651
5685
  getCompanyDashboard(requestParameters, options) {
5652
5686
  return localVarFp.getCompanyDashboard(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
5653
5687
  },
5688
+ /**
5689
+ *
5690
+ * @param {CompanyApiGetCompanyMonthlyBandwidthRequest} requestParameters Request parameters.
5691
+ * @param {*} [options] Override http request option.
5692
+ * @throws {RequiredError}
5693
+ */
5694
+ getCompanyMonthlyBandwidth(requestParameters, options) {
5695
+ return localVarFp.getCompanyMonthlyBandwidth(requestParameters.id, options).then((request) => request(axios, basePath));
5696
+ },
5654
5697
  /**
5655
5698
  *
5656
5699
  * @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
@@ -6042,6 +6085,16 @@ class CompanyApi extends base_1.BaseAPI {
6042
6085
  getCompanyDashboard(requestParameters, options) {
6043
6086
  return (0, exports.CompanyApiFp)(this.configuration).getCompanyDashboard(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
6044
6087
  }
6088
+ /**
6089
+ *
6090
+ * @param {CompanyApiGetCompanyMonthlyBandwidthRequest} requestParameters Request parameters.
6091
+ * @param {*} [options] Override http request option.
6092
+ * @throws {RequiredError}
6093
+ * @memberof CompanyApi
6094
+ */
6095
+ getCompanyMonthlyBandwidth(requestParameters, options) {
6096
+ return (0, exports.CompanyApiFp)(this.configuration).getCompanyMonthlyBandwidth(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6097
+ }
6045
6098
  /**
6046
6099
  *
6047
6100
  * @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
@@ -10264,6 +10317,30 @@ const PlanApiAxiosParamCreator = function (configuration) {
10264
10317
  options: localVarRequestOptions,
10265
10318
  };
10266
10319
  },
10320
+ /**
10321
+ *
10322
+ * @param {*} [options] Override http request option.
10323
+ * @throws {RequiredError}
10324
+ */
10325
+ getPlanLimits: async (options = {}) => {
10326
+ const localVarPath = `/api/plans/limits`;
10327
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10328
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10329
+ let baseOptions;
10330
+ if (configuration) {
10331
+ baseOptions = configuration.baseOptions;
10332
+ }
10333
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
10334
+ const localVarHeaderParameter = {};
10335
+ const localVarQueryParameter = {};
10336
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10337
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10338
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10339
+ return {
10340
+ url: (0, common_1.toPathString)(localVarUrlObj),
10341
+ options: localVarRequestOptions,
10342
+ };
10343
+ },
10267
10344
  /**
10268
10345
  *
10269
10346
  * @param {number} [page]
@@ -10411,6 +10488,17 @@ const PlanApiFp = function (configuration) {
10411
10488
  const localVarOperationServerBasePath = base_1.operationServerMap['PlanApi.getPlanById']?.[localVarOperationServerIndex]?.url;
10412
10489
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10413
10490
  },
10491
+ /**
10492
+ *
10493
+ * @param {*} [options] Override http request option.
10494
+ * @throws {RequiredError}
10495
+ */
10496
+ async getPlanLimits(options) {
10497
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPlanLimits(options);
10498
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10499
+ const localVarOperationServerBasePath = base_1.operationServerMap['PlanApi.getPlanLimits']?.[localVarOperationServerIndex]?.url;
10500
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10501
+ },
10414
10502
  /**
10415
10503
  *
10416
10504
  * @param {number} [page]
@@ -10482,6 +10570,14 @@ const PlanApiFactory = function (configuration, basePath, axios) {
10482
10570
  getPlanById(requestParameters, options) {
10483
10571
  return localVarFp.getPlanById(requestParameters.id, options).then((request) => request(axios, basePath));
10484
10572
  },
10573
+ /**
10574
+ *
10575
+ * @param {*} [options] Override http request option.
10576
+ * @throws {RequiredError}
10577
+ */
10578
+ getPlanLimits(options) {
10579
+ return localVarFp.getPlanLimits(options).then((request) => request(axios, basePath));
10580
+ },
10485
10581
  /**
10486
10582
  *
10487
10583
  * @param {PlanApiGetPlansRequest} requestParameters Request parameters.
@@ -10540,6 +10636,15 @@ class PlanApi extends base_1.BaseAPI {
10540
10636
  getPlanById(requestParameters, options) {
10541
10637
  return (0, exports.PlanApiFp)(this.configuration).getPlanById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
10542
10638
  }
10639
+ /**
10640
+ *
10641
+ * @param {*} [options] Override http request option.
10642
+ * @throws {RequiredError}
10643
+ * @memberof PlanApi
10644
+ */
10645
+ getPlanLimits(options) {
10646
+ return (0, exports.PlanApiFp)(this.configuration).getPlanLimits(options).then((request) => request(this.axios, this.basePath));
10647
+ }
10543
10648
  /**
10544
10649
  *
10545
10650
  * @param {PlanApiGetPlansRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -25,15 +25,6 @@ export const CompanyStatusEnum = {
25
25
  PAYMENT_REQUIRED: 'payment_required',
26
26
  DELETED: 'deleted'
27
27
  };
28
- /**
29
- *
30
- * @export
31
- * @enum {string}
32
- */
33
- export const CompanyTypeEnum = {
34
- B2_C: 'B2C',
35
- B2_B: 'B2B'
36
- };
37
28
  /**
38
29
  *
39
30
  * @export
@@ -644,9 +635,12 @@ export const PlanStatusEnum = {
644
635
  * @enum {string}
645
636
  */
646
637
  export const PlanTypeEnum = {
647
- STANDARD: 'standard',
648
- ADVANCED: 'advanced',
649
- PREMIUM: 'premium'
638
+ STANDARD_B2C: 'standard-b2c',
639
+ ADVANCED_B2C: 'advanced-b2c',
640
+ PREMIUM_B2C: 'premium-b2c',
641
+ STANDARD_CMS: 'standard-cms',
642
+ ADVANCED_CMS: 'advanced-cms',
643
+ PREMIUM_CMS: 'premium-cms'
650
644
  };
651
645
  /**
652
646
  *
@@ -4247,6 +4241,34 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
4247
4241
  options: localVarRequestOptions,
4248
4242
  };
4249
4243
  },
4244
+ /**
4245
+ *
4246
+ * @param {string} id
4247
+ * @param {*} [options] Override http request option.
4248
+ * @throws {RequiredError}
4249
+ */
4250
+ getCompanyMonthlyBandwidth: async (id, options = {}) => {
4251
+ // verify required parameter 'id' is not null or undefined
4252
+ assertParamExists('getCompanyMonthlyBandwidth', 'id', id);
4253
+ const localVarPath = `/api/companies/{id}/monthly-bandwidth`
4254
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4255
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4256
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4257
+ let baseOptions;
4258
+ if (configuration) {
4259
+ baseOptions = configuration.baseOptions;
4260
+ }
4261
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4262
+ const localVarHeaderParameter = {};
4263
+ const localVarQueryParameter = {};
4264
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4265
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4266
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4267
+ return {
4268
+ url: toPathString(localVarUrlObj),
4269
+ options: localVarRequestOptions,
4270
+ };
4271
+ },
4250
4272
  /**
4251
4273
  *
4252
4274
  * @param {string} id
@@ -5166,6 +5188,18 @@ export const CompanyApiFp = function (configuration) {
5166
5188
  const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyDashboard']?.[localVarOperationServerIndex]?.url;
5167
5189
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5168
5190
  },
5191
+ /**
5192
+ *
5193
+ * @param {string} id
5194
+ * @param {*} [options] Override http request option.
5195
+ * @throws {RequiredError}
5196
+ */
5197
+ async getCompanyMonthlyBandwidth(id, options) {
5198
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyMonthlyBandwidth(id, options);
5199
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5200
+ const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyMonthlyBandwidth']?.[localVarOperationServerIndex]?.url;
5201
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5202
+ },
5169
5203
  /**
5170
5204
  *
5171
5205
  * @param {string} id
@@ -5613,6 +5647,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
5613
5647
  getCompanyDashboard(requestParameters, options) {
5614
5648
  return localVarFp.getCompanyDashboard(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
5615
5649
  },
5650
+ /**
5651
+ *
5652
+ * @param {CompanyApiGetCompanyMonthlyBandwidthRequest} requestParameters Request parameters.
5653
+ * @param {*} [options] Override http request option.
5654
+ * @throws {RequiredError}
5655
+ */
5656
+ getCompanyMonthlyBandwidth(requestParameters, options) {
5657
+ return localVarFp.getCompanyMonthlyBandwidth(requestParameters.id, options).then((request) => request(axios, basePath));
5658
+ },
5616
5659
  /**
5617
5660
  *
5618
5661
  * @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
@@ -6003,6 +6046,16 @@ export class CompanyApi extends BaseAPI {
6003
6046
  getCompanyDashboard(requestParameters, options) {
6004
6047
  return CompanyApiFp(this.configuration).getCompanyDashboard(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
6005
6048
  }
6049
+ /**
6050
+ *
6051
+ * @param {CompanyApiGetCompanyMonthlyBandwidthRequest} requestParameters Request parameters.
6052
+ * @param {*} [options] Override http request option.
6053
+ * @throws {RequiredError}
6054
+ * @memberof CompanyApi
6055
+ */
6056
+ getCompanyMonthlyBandwidth(requestParameters, options) {
6057
+ return CompanyApiFp(this.configuration).getCompanyMonthlyBandwidth(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6058
+ }
6006
6059
  /**
6007
6060
  *
6008
6061
  * @param {CompanyApiGetCompanyOnboardingRequest} requestParameters Request parameters.
@@ -10196,6 +10249,30 @@ export const PlanApiAxiosParamCreator = function (configuration) {
10196
10249
  options: localVarRequestOptions,
10197
10250
  };
10198
10251
  },
10252
+ /**
10253
+ *
10254
+ * @param {*} [options] Override http request option.
10255
+ * @throws {RequiredError}
10256
+ */
10257
+ getPlanLimits: async (options = {}) => {
10258
+ const localVarPath = `/api/plans/limits`;
10259
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10260
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10261
+ let baseOptions;
10262
+ if (configuration) {
10263
+ baseOptions = configuration.baseOptions;
10264
+ }
10265
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
10266
+ const localVarHeaderParameter = {};
10267
+ const localVarQueryParameter = {};
10268
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10269
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10270
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10271
+ return {
10272
+ url: toPathString(localVarUrlObj),
10273
+ options: localVarRequestOptions,
10274
+ };
10275
+ },
10199
10276
  /**
10200
10277
  *
10201
10278
  * @param {number} [page]
@@ -10342,6 +10419,17 @@ export const PlanApiFp = function (configuration) {
10342
10419
  const localVarOperationServerBasePath = operationServerMap['PlanApi.getPlanById']?.[localVarOperationServerIndex]?.url;
10343
10420
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10344
10421
  },
10422
+ /**
10423
+ *
10424
+ * @param {*} [options] Override http request option.
10425
+ * @throws {RequiredError}
10426
+ */
10427
+ async getPlanLimits(options) {
10428
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPlanLimits(options);
10429
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10430
+ const localVarOperationServerBasePath = operationServerMap['PlanApi.getPlanLimits']?.[localVarOperationServerIndex]?.url;
10431
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10432
+ },
10345
10433
  /**
10346
10434
  *
10347
10435
  * @param {number} [page]
@@ -10412,6 +10500,14 @@ export const PlanApiFactory = function (configuration, basePath, axios) {
10412
10500
  getPlanById(requestParameters, options) {
10413
10501
  return localVarFp.getPlanById(requestParameters.id, options).then((request) => request(axios, basePath));
10414
10502
  },
10503
+ /**
10504
+ *
10505
+ * @param {*} [options] Override http request option.
10506
+ * @throws {RequiredError}
10507
+ */
10508
+ getPlanLimits(options) {
10509
+ return localVarFp.getPlanLimits(options).then((request) => request(axios, basePath));
10510
+ },
10415
10511
  /**
10416
10512
  *
10417
10513
  * @param {PlanApiGetPlansRequest} requestParameters Request parameters.
@@ -10469,6 +10565,15 @@ export class PlanApi extends BaseAPI {
10469
10565
  getPlanById(requestParameters, options) {
10470
10566
  return PlanApiFp(this.configuration).getPlanById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
10471
10567
  }
10568
+ /**
10569
+ *
10570
+ * @param {*} [options] Override http request option.
10571
+ * @throws {RequiredError}
10572
+ * @memberof PlanApi
10573
+ */
10574
+ getPlanLimits(options) {
10575
+ return PlanApiFp(this.configuration).getPlanLimits(options).then((request) => request(this.axios, this.basePath));
10576
+ }
10472
10577
  /**
10473
10578
  *
10474
10579
  * @param {PlanApiGetPlansRequest} requestParameters Request parameters.
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ interface IApiClient {
22
22
  OrderApi: doc.OrderApi;
23
23
  UniquePageApi: doc.UniquePageApi;
24
24
  NavigationApi: doc.NavigationApi;
25
+ PlanApi: doc.PlanApi;
25
26
  interceptors: {
26
27
  request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
27
28
  response: AxiosInterceptorManager<AxiosResponse>;
@@ -57,6 +58,7 @@ export declare class ApiClient implements IApiClient {
57
58
  OrderApi: doc.OrderApi;
58
59
  UniquePageApi: doc.UniquePageApi;
59
60
  NavigationApi: doc.NavigationApi;
61
+ PlanApi: doc.PlanApi;
60
62
  constructor(baseURL: string, options?: {
61
63
  headers?: Record<string, string>;
62
64
  } | undefined);
package/dist/index.js CHANGED
@@ -66,6 +66,7 @@ class ApiClient {
66
66
  this.OrderApi = new doc.OrderApi(undefined, this.baseURL, this.api);
67
67
  this.UniquePageApi = new doc.UniquePageApi(undefined, this.baseURL, this.api);
68
68
  this.NavigationApi = new doc.NavigationApi(undefined, this.baseURL, this.api);
69
+ this.PlanApi = new doc.PlanApi(undefined, this.baseURL, this.api);
69
70
  this.interceptors = {
70
71
  request: this.api.interceptors.request,
71
72
  response: this.api.interceptors.response,
package/dist/index.mjs CHANGED
@@ -34,6 +34,7 @@ export class ApiClient {
34
34
  this.OrderApi = new doc.OrderApi(undefined, this.baseURL, this.api);
35
35
  this.UniquePageApi = new doc.UniquePageApi(undefined, this.baseURL, this.api);
36
36
  this.NavigationApi = new doc.NavigationApi(undefined, this.baseURL, this.api);
37
+ this.PlanApi = new doc.PlanApi(undefined, this.baseURL, this.api);
37
38
  this.interceptors = {
38
39
  request: this.api.interceptors.request,
39
40
  response: this.api.interceptors.response,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.3.23",
3
+ "version": "1.3.26",
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": "33fb9ed7753c73afb90c50b42e6ac78ccb14dc46"
40
+ "gitHead": "aad1d3074b1e8962e88b026acdfa2d08dc9c35cd"
41
41
  }