@infisale-client/api 1.1.13 → 1.1.14

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
@@ -1723,11 +1723,11 @@ export interface ICompany {
1723
1723
  'users': Array<PickICompanyNameOrDomainsOrIdOrUsersOrLanguageUsersInner>;
1724
1724
  /**
1725
1725
  *
1726
- * @type {{ [key: string]: ICompanyResponseRolesValue; }}
1726
+ * @type {{ [key: string]: ICompanyAdminResponseRolesValue; }}
1727
1727
  * @memberof ICompany
1728
1728
  */
1729
1729
  'roles': {
1730
- [key: string]: ICompanyResponseRolesValue;
1730
+ [key: string]: ICompanyAdminResponseRolesValue;
1731
1731
  };
1732
1732
  /**
1733
1733
  *
@@ -1848,6 +1848,316 @@ export interface ICompany {
1848
1848
  */
1849
1849
  'versions': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTVersionsInner>;
1850
1850
  }
1851
+ /**
1852
+ *
1853
+ * @export
1854
+ * @interface ICompanyAdminResponse
1855
+ */
1856
+ export interface ICompanyAdminResponse {
1857
+ /**
1858
+ *
1859
+ * @type {string}
1860
+ * @memberof ICompanyAdminResponse
1861
+ */
1862
+ 'name': string;
1863
+ /**
1864
+ *
1865
+ * @type {string}
1866
+ * @memberof ICompanyAdminResponse
1867
+ */
1868
+ 'phone'?: string;
1869
+ /**
1870
+ *
1871
+ * @type {string}
1872
+ * @memberof ICompanyAdminResponse
1873
+ */
1874
+ 'email'?: string;
1875
+ /**
1876
+ *
1877
+ * @type {{ [key: string]: ICompanyAdminResponseRolesValue; }}
1878
+ * @memberof ICompanyAdminResponse
1879
+ */
1880
+ 'roles': {
1881
+ [key: string]: ICompanyAdminResponseRolesValue;
1882
+ };
1883
+ /**
1884
+ *
1885
+ * @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTVersionsInner>}
1886
+ * @memberof ICompanyAdminResponse
1887
+ */
1888
+ 'versions': Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTVersionsInner>;
1889
+ /**
1890
+ *
1891
+ * @type {LanguageEnum}
1892
+ * @memberof ICompanyAdminResponse
1893
+ */
1894
+ 'language': LanguageEnum;
1895
+ /**
1896
+ *
1897
+ * @type {CompanyStatusEnum}
1898
+ * @memberof ICompanyAdminResponse
1899
+ */
1900
+ 'status': CompanyStatusEnum;
1901
+ /**
1902
+ *
1903
+ * @type {string}
1904
+ * @memberof ICompanyAdminResponse
1905
+ */
1906
+ '_id': string;
1907
+ /**
1908
+ *
1909
+ * @type {number}
1910
+ * @memberof ICompanyAdminResponse
1911
+ */
1912
+ '__v': number;
1913
+ /**
1914
+ *
1915
+ * @type {string}
1916
+ * @memberof ICompanyAdminResponse
1917
+ */
1918
+ 'createdAt': string;
1919
+ /**
1920
+ *
1921
+ * @type {string}
1922
+ * @memberof ICompanyAdminResponse
1923
+ */
1924
+ 'updatedAt': string;
1925
+ /**
1926
+ *
1927
+ * @type {PlanTypeEnum}
1928
+ * @memberof ICompanyAdminResponse
1929
+ */
1930
+ 'plan': PlanTypeEnum;
1931
+ /**
1932
+ *
1933
+ * @type {CompanyTypeEnum}
1934
+ * @memberof ICompanyAdminResponse
1935
+ */
1936
+ 'type': CompanyTypeEnum;
1937
+ /**
1938
+ *
1939
+ * @type {string}
1940
+ * @memberof ICompanyAdminResponse
1941
+ */
1942
+ 'owner': string;
1943
+ /**
1944
+ *
1945
+ * @type {ICompanyResponseAddress}
1946
+ * @memberof ICompanyAdminResponse
1947
+ */
1948
+ 'address'?: ICompanyResponseAddress;
1949
+ /**
1950
+ *
1951
+ * @type {Array<string>}
1952
+ * @memberof ICompanyAdminResponse
1953
+ */
1954
+ 'domains': Array<string>;
1955
+ /**
1956
+ *
1957
+ * @type {string}
1958
+ * @memberof ICompanyAdminResponse
1959
+ */
1960
+ 'dns_zone_id'?: string;
1961
+ /**
1962
+ *
1963
+ * @type {Array<ICompanyResponseCustomHostnamesInner>}
1964
+ * @memberof ICompanyAdminResponse
1965
+ */
1966
+ 'custom_hostnames': Array<ICompanyResponseCustomHostnamesInner>;
1967
+ /**
1968
+ *
1969
+ * @type {{ [key: string]: string; }}
1970
+ * @memberof ICompanyAdminResponse
1971
+ */
1972
+ 'socials'?: {
1973
+ [key: string]: string;
1974
+ };
1975
+ /**
1976
+ *
1977
+ * @type {string}
1978
+ * @memberof ICompanyAdminResponse
1979
+ */
1980
+ 'description'?: string;
1981
+ /**
1982
+ *
1983
+ * @type {IImage}
1984
+ * @memberof ICompanyAdminResponse
1985
+ */
1986
+ 'logo'?: IImage;
1987
+ /**
1988
+ *
1989
+ * @type {TimezoneEnum}
1990
+ * @memberof ICompanyAdminResponse
1991
+ */
1992
+ 'timezone': TimezoneEnum;
1993
+ /**
1994
+ *
1995
+ * @type {Array<LanguageEnum>}
1996
+ * @memberof ICompanyAdminResponse
1997
+ */
1998
+ 'languages': Array<LanguageEnum>;
1999
+ /**
2000
+ *
2001
+ * @type {CurrencyEnum}
2002
+ * @memberof ICompanyAdminResponse
2003
+ */
2004
+ 'currency': CurrencyEnum;
2005
+ /**
2006
+ *
2007
+ * @type {RecordCurrencyEnumCurrency}
2008
+ * @memberof ICompanyAdminResponse
2009
+ */
2010
+ 'currencies': RecordCurrencyEnumCurrency;
2011
+ /**
2012
+ *
2013
+ * @type {Array<ICompanyResponseWarehousesInner>}
2014
+ * @memberof ICompanyAdminResponse
2015
+ */
2016
+ 'warehouses': Array<ICompanyResponseWarehousesInner>;
2017
+ /**
2018
+ *
2019
+ * @type {{ [key: string]: ICompanyResponseNavigationsValue; }}
2020
+ * @memberof ICompanyAdminResponse
2021
+ */
2022
+ 'navigations': {
2023
+ [key: string]: ICompanyResponseNavigationsValue;
2024
+ };
2025
+ /**
2026
+ *
2027
+ * @type {ICompanyResponseFirebaseWebCredentials}
2028
+ * @memberof ICompanyAdminResponse
2029
+ */
2030
+ 'firebase_web_credentials'?: ICompanyResponseFirebaseWebCredentials;
2031
+ /**
2032
+ *
2033
+ * @type {ICompanyResponseFirebaseLogin}
2034
+ * @memberof ICompanyAdminResponse
2035
+ */
2036
+ 'firebase_login': ICompanyResponseFirebaseLogin;
2037
+ /**
2038
+ *
2039
+ * @type {string}
2040
+ * @memberof ICompanyAdminResponse
2041
+ */
2042
+ 'sender_email'?: string;
2043
+ /**
2044
+ *
2045
+ * @type {string}
2046
+ * @memberof ICompanyAdminResponse
2047
+ */
2048
+ 'sender_name'?: string;
2049
+ /**
2050
+ *
2051
+ * @type {Array<ICompanyResponseSenderEmailDnsRecordsInner>}
2052
+ * @memberof ICompanyAdminResponse
2053
+ */
2054
+ 'sender_email_dns_records'?: Array<ICompanyResponseSenderEmailDnsRecordsInner>;
2055
+ /**
2056
+ *
2057
+ * @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwner}
2058
+ * @memberof ICompanyAdminResponse
2059
+ */
2060
+ 'main'?: PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwner;
2061
+ /**
2062
+ *
2063
+ * @type {Array<ICompanyAdminResponseUsersInner>}
2064
+ * @memberof ICompanyAdminResponse
2065
+ */
2066
+ 'users': Array<ICompanyAdminResponseUsersInner>;
2067
+ /**
2068
+ *
2069
+ * @type {ICompanyResponseConfig}
2070
+ * @memberof ICompanyAdminResponse
2071
+ */
2072
+ 'config': ICompanyResponseConfig;
2073
+ /**
2074
+ *
2075
+ * @type {RecordCurrencyEnumNumber}
2076
+ * @memberof ICompanyAdminResponse
2077
+ */
2078
+ 'currency_rates': RecordCurrencyEnumNumber;
2079
+ }
2080
+ /**
2081
+ *
2082
+ * @export
2083
+ * @interface ICompanyAdminResponseRolesValue
2084
+ */
2085
+ export interface ICompanyAdminResponseRolesValue {
2086
+ /**
2087
+ *
2088
+ * @type {ICompanyAdminResponseRolesValueConfig}
2089
+ * @memberof ICompanyAdminResponseRolesValue
2090
+ */
2091
+ 'config': ICompanyAdminResponseRolesValueConfig;
2092
+ /**
2093
+ *
2094
+ * @type {ICompanyAdminResponseRolesValueConfig}
2095
+ * @memberof ICompanyAdminResponseRolesValue
2096
+ */
2097
+ 'navigation': ICompanyAdminResponseRolesValueConfig;
2098
+ /**
2099
+ *
2100
+ * @type {ICompanyAdminResponseRolesValueConfig}
2101
+ * @memberof ICompanyAdminResponseRolesValue
2102
+ */
2103
+ 'company': ICompanyAdminResponseRolesValueConfig;
2104
+ /**
2105
+ *
2106
+ * @type {ICompanyAdminResponseRolesValueConfig}
2107
+ * @memberof ICompanyAdminResponseRolesValue
2108
+ */
2109
+ 'page': ICompanyAdminResponseRolesValueConfig;
2110
+ /**
2111
+ *
2112
+ * @type {ICompanyAdminResponseRolesValueConfig}
2113
+ * @memberof ICompanyAdminResponseRolesValue
2114
+ */
2115
+ 'product': ICompanyAdminResponseRolesValueConfig;
2116
+ }
2117
+ /**
2118
+ *
2119
+ * @export
2120
+ * @interface ICompanyAdminResponseRolesValueConfig
2121
+ */
2122
+ export interface ICompanyAdminResponseRolesValueConfig {
2123
+ /**
2124
+ *
2125
+ * @type {boolean}
2126
+ * @memberof ICompanyAdminResponseRolesValueConfig
2127
+ */
2128
+ 'd': boolean;
2129
+ /**
2130
+ *
2131
+ * @type {boolean}
2132
+ * @memberof ICompanyAdminResponseRolesValueConfig
2133
+ */
2134
+ 'm': boolean;
2135
+ }
2136
+ /**
2137
+ *
2138
+ * @export
2139
+ * @interface ICompanyAdminResponseUsersInner
2140
+ */
2141
+ export interface ICompanyAdminResponseUsersInner {
2142
+ /**
2143
+ *
2144
+ * @type {CompanyUserStatusEnum}
2145
+ * @memberof ICompanyAdminResponseUsersInner
2146
+ */
2147
+ 'status': CompanyUserStatusEnum;
2148
+ /**
2149
+ *
2150
+ * @type {string}
2151
+ * @memberof ICompanyAdminResponseUsersInner
2152
+ */
2153
+ 'role': string;
2154
+ /**
2155
+ *
2156
+ * @type {PickIUserIdOrNameOrEmail}
2157
+ * @memberof ICompanyAdminResponseUsersInner
2158
+ */
2159
+ 'user': PickIUserIdOrNameOrEmail;
2160
+ }
1851
2161
  /**
1852
2162
  *
1853
2163
  * @export
@@ -2176,11 +2486,11 @@ export interface ICompanyPatchRequest {
2176
2486
  'email'?: string;
2177
2487
  /**
2178
2488
  *
2179
- * @type {{ [key: string]: ICompanyResponseRolesValue; }}
2489
+ * @type {{ [key: string]: ICompanyAdminResponseRolesValue; }}
2180
2490
  * @memberof ICompanyPatchRequest
2181
2491
  */
2182
2492
  'roles'?: {
2183
- [key: string]: ICompanyResponseRolesValue;
2493
+ [key: string]: ICompanyAdminResponseRolesValue;
2184
2494
  };
2185
2495
  /**
2186
2496
  *
@@ -2319,11 +2629,11 @@ export interface ICompanyPostRequest {
2319
2629
  'email'?: string;
2320
2630
  /**
2321
2631
  *
2322
- * @type {{ [key: string]: ICompanyResponseRolesValue; }}
2632
+ * @type {{ [key: string]: ICompanyAdminResponseRolesValue; }}
2323
2633
  * @memberof ICompanyPostRequest
2324
2634
  */
2325
2635
  'roles': {
2326
- [key: string]: ICompanyResponseRolesValue;
2636
+ [key: string]: ICompanyAdminResponseRolesValue;
2327
2637
  };
2328
2638
  /**
2329
2639
  *
@@ -2564,14 +2874,6 @@ export interface ICompanyResponse {
2564
2874
  * @memberof ICompanyResponse
2565
2875
  */
2566
2876
  'email'?: string;
2567
- /**
2568
- *
2569
- * @type {{ [key: string]: ICompanyResponseRolesValue; }}
2570
- * @memberof ICompanyResponse
2571
- */
2572
- 'roles': {
2573
- [key: string]: ICompanyResponseRolesValue;
2574
- };
2575
2877
  /**
2576
2878
  *
2577
2879
  * @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTVersionsInner>}
@@ -3002,62 +3304,6 @@ export interface ICompanyResponseNavigationsValue {
3002
3304
  */
3003
3305
  'header': Array<NavigationUrl>;
3004
3306
  }
3005
- /**
3006
- *
3007
- * @export
3008
- * @interface ICompanyResponseRolesValue
3009
- */
3010
- export interface ICompanyResponseRolesValue {
3011
- /**
3012
- *
3013
- * @type {ICompanyResponseRolesValueConfig}
3014
- * @memberof ICompanyResponseRolesValue
3015
- */
3016
- 'config': ICompanyResponseRolesValueConfig;
3017
- /**
3018
- *
3019
- * @type {ICompanyResponseRolesValueConfig}
3020
- * @memberof ICompanyResponseRolesValue
3021
- */
3022
- 'navigation': ICompanyResponseRolesValueConfig;
3023
- /**
3024
- *
3025
- * @type {ICompanyResponseRolesValueConfig}
3026
- * @memberof ICompanyResponseRolesValue
3027
- */
3028
- 'company': ICompanyResponseRolesValueConfig;
3029
- /**
3030
- *
3031
- * @type {ICompanyResponseRolesValueConfig}
3032
- * @memberof ICompanyResponseRolesValue
3033
- */
3034
- 'page': ICompanyResponseRolesValueConfig;
3035
- /**
3036
- *
3037
- * @type {ICompanyResponseRolesValueConfig}
3038
- * @memberof ICompanyResponseRolesValue
3039
- */
3040
- 'product': ICompanyResponseRolesValueConfig;
3041
- }
3042
- /**
3043
- *
3044
- * @export
3045
- * @interface ICompanyResponseRolesValueConfig
3046
- */
3047
- export interface ICompanyResponseRolesValueConfig {
3048
- /**
3049
- *
3050
- * @type {boolean}
3051
- * @memberof ICompanyResponseRolesValueConfig
3052
- */
3053
- 'd': boolean;
3054
- /**
3055
- *
3056
- * @type {boolean}
3057
- * @memberof ICompanyResponseRolesValueConfig
3058
- */
3059
- 'm': boolean;
3060
- }
3061
3307
  /**
3062
3308
  *
3063
3309
  * @export
@@ -3286,35 +3532,10 @@ export interface ICompanyUsersCollectionQueryParams {
3286
3532
  export interface ICompanyUsersResponse {
3287
3533
  /**
3288
3534
  *
3289
- * @type {Array<ICompanyUsersResponseUsersInner>}
3535
+ * @type {Array<ICompanyAdminResponseUsersInner>}
3290
3536
  * @memberof ICompanyUsersResponse
3291
3537
  */
3292
- 'users': Array<ICompanyUsersResponseUsersInner>;
3293
- }
3294
- /**
3295
- *
3296
- * @export
3297
- * @interface ICompanyUsersResponseUsersInner
3298
- */
3299
- export interface ICompanyUsersResponseUsersInner {
3300
- /**
3301
- *
3302
- * @type {CompanyUserStatusEnum}
3303
- * @memberof ICompanyUsersResponseUsersInner
3304
- */
3305
- 'status': CompanyUserStatusEnum;
3306
- /**
3307
- *
3308
- * @type {string}
3309
- * @memberof ICompanyUsersResponseUsersInner
3310
- */
3311
- 'role': string;
3312
- /**
3313
- *
3314
- * @type {PickIUserIdOrNameOrEmail}
3315
- * @memberof ICompanyUsersResponseUsersInner
3316
- */
3317
- 'user': PickIUserIdOrNameOrEmail;
3538
+ 'users': Array<ICompanyAdminResponseUsersInner>;
3318
3539
  }
3319
3540
  /**
3320
3541
  *
@@ -6608,6 +6829,49 @@ export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguage {
6608
6829
  */
6609
6830
  'domains': Array<string>;
6610
6831
  }
6832
+ /**
6833
+ * From T, pick a set of properties whose keys are in the union K
6834
+ * @export
6835
+ * @interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwner
6836
+ */
6837
+ export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwner {
6838
+ /**
6839
+ *
6840
+ * @type {string}
6841
+ * @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwner
6842
+ */
6843
+ 'name': string;
6844
+ /**
6845
+ *
6846
+ * @type {LanguageEnum}
6847
+ * @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwner
6848
+ */
6849
+ 'language': LanguageEnum;
6850
+ /**
6851
+ *
6852
+ * @type {string}
6853
+ * @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwner
6854
+ */
6855
+ '_id': string;
6856
+ /**
6857
+ *
6858
+ * @type {Array<PickICompanyNameOrDomainsOrIdOrUsersOrLanguageUsersInner>}
6859
+ * @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwner
6860
+ */
6861
+ 'users': Array<PickICompanyNameOrDomainsOrIdOrUsersOrLanguageUsersInner>;
6862
+ /**
6863
+ *
6864
+ * @type {string}
6865
+ * @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwner
6866
+ */
6867
+ 'owner': string;
6868
+ /**
6869
+ *
6870
+ * @type {Array<string>}
6871
+ * @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwner
6872
+ */
6873
+ 'domains': Array<string>;
6874
+ }
6611
6875
  /**
6612
6876
  *
6613
6877
  * @export
@@ -9121,6 +9385,13 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
9121
9385
  * @throws {RequiredError}
9122
9386
  */
9123
9387
  deleteUserFromCompany: (id: string, userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9388
+ /**
9389
+ *
9390
+ * @param {string} id
9391
+ * @param {*} [options] Override http request option.
9392
+ * @throws {RequiredError}
9393
+ */
9394
+ getAdminCompanyById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9124
9395
  /**
9125
9396
  *
9126
9397
  * @param {number} [page]
@@ -9293,6 +9564,13 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
9293
9564
  * @throws {RequiredError}
9294
9565
  */
9295
9566
  deleteUserFromCompany(id: string, userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICompanyResponse>>;
9567
+ /**
9568
+ *
9569
+ * @param {string} id
9570
+ * @param {*} [options] Override http request option.
9571
+ * @throws {RequiredError}
9572
+ */
9573
+ getAdminCompanyById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICompanyAdminResponse>>;
9296
9574
  /**
9297
9575
  *
9298
9576
  * @param {number} [page]
@@ -9461,6 +9739,13 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
9461
9739
  * @throws {RequiredError}
9462
9740
  */
9463
9741
  deleteUserFromCompany(requestParameters: CompanyApiDeleteUserFromCompanyRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyResponse>;
9742
+ /**
9743
+ *
9744
+ * @param {CompanyApiGetAdminCompanyByIdRequest} requestParameters Request parameters.
9745
+ * @param {*} [options] Override http request option.
9746
+ * @throws {RequiredError}
9747
+ */
9748
+ getAdminCompanyById(requestParameters: CompanyApiGetAdminCompanyByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyAdminResponse>;
9464
9749
  /**
9465
9750
  *
9466
9751
  * @param {CompanyApiGetCompaniesRequest} requestParameters Request parameters.
@@ -9655,6 +9940,19 @@ export interface CompanyApiDeleteUserFromCompanyRequest {
9655
9940
  */
9656
9941
  readonly userId: string;
9657
9942
  }
9943
+ /**
9944
+ * Request parameters for getAdminCompanyById operation in CompanyApi.
9945
+ * @export
9946
+ * @interface CompanyApiGetAdminCompanyByIdRequest
9947
+ */
9948
+ export interface CompanyApiGetAdminCompanyByIdRequest {
9949
+ /**
9950
+ *
9951
+ * @type {string}
9952
+ * @memberof CompanyApiGetAdminCompanyById
9953
+ */
9954
+ readonly id: string;
9955
+ }
9658
9956
  /**
9659
9957
  * Request parameters for getCompanies operation in CompanyApi.
9660
9958
  * @export
@@ -10053,6 +10351,14 @@ export declare class CompanyApi extends BaseAPI {
10053
10351
  * @memberof CompanyApi
10054
10352
  */
10055
10353
  deleteUserFromCompany(requestParameters: CompanyApiDeleteUserFromCompanyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyResponse, any>>;
10354
+ /**
10355
+ *
10356
+ * @param {CompanyApiGetAdminCompanyByIdRequest} requestParameters Request parameters.
10357
+ * @param {*} [options] Override http request option.
10358
+ * @throws {RequiredError}
10359
+ * @memberof CompanyApi
10360
+ */
10361
+ getAdminCompanyById(requestParameters: CompanyApiGetAdminCompanyByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyAdminResponse, any>>;
10056
10362
  /**
10057
10363
  *
10058
10364
  * @param {CompanyApiGetCompaniesRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -3431,6 +3431,34 @@ const CompanyApiAxiosParamCreator = function (configuration) {
3431
3431
  options: localVarRequestOptions,
3432
3432
  };
3433
3433
  },
3434
+ /**
3435
+ *
3436
+ * @param {string} id
3437
+ * @param {*} [options] Override http request option.
3438
+ * @throws {RequiredError}
3439
+ */
3440
+ getAdminCompanyById: async (id, options = {}) => {
3441
+ // verify required parameter 'id' is not null or undefined
3442
+ (0, common_1.assertParamExists)('getAdminCompanyById', 'id', id);
3443
+ const localVarPath = `/api/companies/admin/{id}`
3444
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3445
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3446
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3447
+ let baseOptions;
3448
+ if (configuration) {
3449
+ baseOptions = configuration.baseOptions;
3450
+ }
3451
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3452
+ const localVarHeaderParameter = {};
3453
+ const localVarQueryParameter = {};
3454
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3455
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3456
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3457
+ return {
3458
+ url: (0, common_1.toPathString)(localVarUrlObj),
3459
+ options: localVarRequestOptions,
3460
+ };
3461
+ },
3434
3462
  /**
3435
3463
  *
3436
3464
  * @param {number} [page]
@@ -4011,6 +4039,18 @@ const CompanyApiFp = function (configuration) {
4011
4039
  const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.deleteUserFromCompany']?.[localVarOperationServerIndex]?.url;
4012
4040
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4013
4041
  },
4042
+ /**
4043
+ *
4044
+ * @param {string} id
4045
+ * @param {*} [options] Override http request option.
4046
+ * @throws {RequiredError}
4047
+ */
4048
+ async getAdminCompanyById(id, options) {
4049
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAdminCompanyById(id, options);
4050
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4051
+ const localVarOperationServerBasePath = base_1.operationServerMap['CompanyApi.getAdminCompanyById']?.[localVarOperationServerIndex]?.url;
4052
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4053
+ },
4014
4054
  /**
4015
4055
  *
4016
4056
  * @param {number} [page]
@@ -4260,6 +4300,15 @@ const CompanyApiFactory = function (configuration, basePath, axios) {
4260
4300
  deleteUserFromCompany(requestParameters, options) {
4261
4301
  return localVarFp.deleteUserFromCompany(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
4262
4302
  },
4303
+ /**
4304
+ *
4305
+ * @param {CompanyApiGetAdminCompanyByIdRequest} requestParameters Request parameters.
4306
+ * @param {*} [options] Override http request option.
4307
+ * @throws {RequiredError}
4308
+ */
4309
+ getAdminCompanyById(requestParameters, options) {
4310
+ return localVarFp.getAdminCompanyById(requestParameters.id, options).then((request) => request(axios, basePath));
4311
+ },
4263
4312
  /**
4264
4313
  *
4265
4314
  * @param {CompanyApiGetCompaniesRequest} requestParameters Request parameters.
@@ -4447,6 +4496,16 @@ class CompanyApi extends base_1.BaseAPI {
4447
4496
  deleteUserFromCompany(requestParameters, options) {
4448
4497
  return (0, exports.CompanyApiFp)(this.configuration).deleteUserFromCompany(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
4449
4498
  }
4499
+ /**
4500
+ *
4501
+ * @param {CompanyApiGetAdminCompanyByIdRequest} requestParameters Request parameters.
4502
+ * @param {*} [options] Override http request option.
4503
+ * @throws {RequiredError}
4504
+ * @memberof CompanyApi
4505
+ */
4506
+ getAdminCompanyById(requestParameters, options) {
4507
+ return (0, exports.CompanyApiFp)(this.configuration).getAdminCompanyById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4508
+ }
4450
4509
  /**
4451
4510
  *
4452
4511
  * @param {CompanyApiGetCompaniesRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -3397,6 +3397,34 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
3397
3397
  options: localVarRequestOptions,
3398
3398
  };
3399
3399
  },
3400
+ /**
3401
+ *
3402
+ * @param {string} id
3403
+ * @param {*} [options] Override http request option.
3404
+ * @throws {RequiredError}
3405
+ */
3406
+ getAdminCompanyById: async (id, options = {}) => {
3407
+ // verify required parameter 'id' is not null or undefined
3408
+ assertParamExists('getAdminCompanyById', 'id', id);
3409
+ const localVarPath = `/api/companies/admin/{id}`
3410
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3411
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3412
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3413
+ let baseOptions;
3414
+ if (configuration) {
3415
+ baseOptions = configuration.baseOptions;
3416
+ }
3417
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3418
+ const localVarHeaderParameter = {};
3419
+ const localVarQueryParameter = {};
3420
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3421
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3422
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3423
+ return {
3424
+ url: toPathString(localVarUrlObj),
3425
+ options: localVarRequestOptions,
3426
+ };
3427
+ },
3400
3428
  /**
3401
3429
  *
3402
3430
  * @param {number} [page]
@@ -3976,6 +4004,18 @@ export const CompanyApiFp = function (configuration) {
3976
4004
  const localVarOperationServerBasePath = operationServerMap['CompanyApi.deleteUserFromCompany']?.[localVarOperationServerIndex]?.url;
3977
4005
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3978
4006
  },
4007
+ /**
4008
+ *
4009
+ * @param {string} id
4010
+ * @param {*} [options] Override http request option.
4011
+ * @throws {RequiredError}
4012
+ */
4013
+ async getAdminCompanyById(id, options) {
4014
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAdminCompanyById(id, options);
4015
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4016
+ const localVarOperationServerBasePath = operationServerMap['CompanyApi.getAdminCompanyById']?.[localVarOperationServerIndex]?.url;
4017
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4018
+ },
3979
4019
  /**
3980
4020
  *
3981
4021
  * @param {number} [page]
@@ -4224,6 +4264,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
4224
4264
  deleteUserFromCompany(requestParameters, options) {
4225
4265
  return localVarFp.deleteUserFromCompany(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
4226
4266
  },
4267
+ /**
4268
+ *
4269
+ * @param {CompanyApiGetAdminCompanyByIdRequest} requestParameters Request parameters.
4270
+ * @param {*} [options] Override http request option.
4271
+ * @throws {RequiredError}
4272
+ */
4273
+ getAdminCompanyById(requestParameters, options) {
4274
+ return localVarFp.getAdminCompanyById(requestParameters.id, options).then((request) => request(axios, basePath));
4275
+ },
4227
4276
  /**
4228
4277
  *
4229
4278
  * @param {CompanyApiGetCompaniesRequest} requestParameters Request parameters.
@@ -4410,6 +4459,16 @@ export class CompanyApi extends BaseAPI {
4410
4459
  deleteUserFromCompany(requestParameters, options) {
4411
4460
  return CompanyApiFp(this.configuration).deleteUserFromCompany(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
4412
4461
  }
4462
+ /**
4463
+ *
4464
+ * @param {CompanyApiGetAdminCompanyByIdRequest} requestParameters Request parameters.
4465
+ * @param {*} [options] Override http request option.
4466
+ * @throws {RequiredError}
4467
+ * @memberof CompanyApi
4468
+ */
4469
+ getAdminCompanyById(requestParameters, options) {
4470
+ return CompanyApiFp(this.configuration).getAdminCompanyById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4471
+ }
4413
4472
  /**
4414
4473
  *
4415
4474
  * @param {CompanyApiGetCompaniesRequest} requestParameters Request parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
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",
@@ -36,5 +36,5 @@
36
36
  "bugs": {
37
37
  "url": "https://github.com/infisale/infisale-client/issues"
38
38
  },
39
- "gitHead": "462dfea16f79b3014d34c000e2b5a4d943783acd"
39
+ "gitHead": "9b1f1d4dd970c2a828dcaf3a91a15e97e8ea2640"
40
40
  }