@infisale-client/api 1.1.12 → 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
  *
@@ -2194,12 +2504,6 @@ export interface ICompanyPatchRequest {
2194
2504
  * @memberof ICompanyPatchRequest
2195
2505
  */
2196
2506
  'status'?: CompanyStatusEnum;
2197
- /**
2198
- *
2199
- * @type {string}
2200
- * @memberof ICompanyPatchRequest
2201
- */
2202
- 'owner'?: string;
2203
2507
  /**
2204
2508
  *
2205
2509
  * @type {Array<PickICompanyNameOrDomainsOrIdOrUsersOrLanguageUsersInner>}
@@ -2224,6 +2528,12 @@ export interface ICompanyPatchRequest {
2224
2528
  * @memberof ICompanyPatchRequest
2225
2529
  */
2226
2530
  'type'?: CompanyTypeEnum;
2531
+ /**
2532
+ *
2533
+ * @type {string}
2534
+ * @memberof ICompanyPatchRequest
2535
+ */
2536
+ 'owner'?: string;
2227
2537
  /**
2228
2538
  *
2229
2539
  * @type {ICompanyResponseAddress}
@@ -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>}
@@ -2626,6 +2928,12 @@ export interface ICompanyResponse {
2626
2928
  * @memberof ICompanyResponse
2627
2929
  */
2628
2930
  'type': CompanyTypeEnum;
2931
+ /**
2932
+ *
2933
+ * @type {string}
2934
+ * @memberof ICompanyResponse
2935
+ */
2936
+ 'owner': string;
2629
2937
  /**
2630
2938
  *
2631
2939
  * @type {ICompanyResponseAddress}
@@ -2996,62 +3304,6 @@ export interface ICompanyResponseNavigationsValue {
2996
3304
  */
2997
3305
  'header': Array<NavigationUrl>;
2998
3306
  }
2999
- /**
3000
- *
3001
- * @export
3002
- * @interface ICompanyResponseRolesValue
3003
- */
3004
- export interface ICompanyResponseRolesValue {
3005
- /**
3006
- *
3007
- * @type {ICompanyResponseRolesValueConfig}
3008
- * @memberof ICompanyResponseRolesValue
3009
- */
3010
- 'config': ICompanyResponseRolesValueConfig;
3011
- /**
3012
- *
3013
- * @type {ICompanyResponseRolesValueConfig}
3014
- * @memberof ICompanyResponseRolesValue
3015
- */
3016
- 'navigation': ICompanyResponseRolesValueConfig;
3017
- /**
3018
- *
3019
- * @type {ICompanyResponseRolesValueConfig}
3020
- * @memberof ICompanyResponseRolesValue
3021
- */
3022
- 'company': ICompanyResponseRolesValueConfig;
3023
- /**
3024
- *
3025
- * @type {ICompanyResponseRolesValueConfig}
3026
- * @memberof ICompanyResponseRolesValue
3027
- */
3028
- 'page': ICompanyResponseRolesValueConfig;
3029
- /**
3030
- *
3031
- * @type {ICompanyResponseRolesValueConfig}
3032
- * @memberof ICompanyResponseRolesValue
3033
- */
3034
- 'product': ICompanyResponseRolesValueConfig;
3035
- }
3036
- /**
3037
- *
3038
- * @export
3039
- * @interface ICompanyResponseRolesValueConfig
3040
- */
3041
- export interface ICompanyResponseRolesValueConfig {
3042
- /**
3043
- *
3044
- * @type {boolean}
3045
- * @memberof ICompanyResponseRolesValueConfig
3046
- */
3047
- 'd': boolean;
3048
- /**
3049
- *
3050
- * @type {boolean}
3051
- * @memberof ICompanyResponseRolesValueConfig
3052
- */
3053
- 'm': boolean;
3054
- }
3055
3307
  /**
3056
3308
  *
3057
3309
  * @export
@@ -3280,35 +3532,10 @@ export interface ICompanyUsersCollectionQueryParams {
3280
3532
  export interface ICompanyUsersResponse {
3281
3533
  /**
3282
3534
  *
3283
- * @type {Array<ICompanyUsersResponseUsersInner>}
3535
+ * @type {Array<ICompanyAdminResponseUsersInner>}
3284
3536
  * @memberof ICompanyUsersResponse
3285
3537
  */
3286
- 'users': Array<ICompanyUsersResponseUsersInner>;
3287
- }
3288
- /**
3289
- *
3290
- * @export
3291
- * @interface ICompanyUsersResponseUsersInner
3292
- */
3293
- export interface ICompanyUsersResponseUsersInner {
3294
- /**
3295
- *
3296
- * @type {CompanyUserStatusEnum}
3297
- * @memberof ICompanyUsersResponseUsersInner
3298
- */
3299
- 'status': CompanyUserStatusEnum;
3300
- /**
3301
- *
3302
- * @type {string}
3303
- * @memberof ICompanyUsersResponseUsersInner
3304
- */
3305
- 'role': string;
3306
- /**
3307
- *
3308
- * @type {PickIUserIdOrNameOrEmail}
3309
- * @memberof ICompanyUsersResponseUsersInner
3310
- */
3311
- 'user': PickIUserIdOrNameOrEmail;
3538
+ 'users': Array<ICompanyAdminResponseUsersInner>;
3312
3539
  }
3313
3540
  /**
3314
3541
  *
@@ -6602,6 +6829,49 @@ export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguage {
6602
6829
  */
6603
6830
  'domains': Array<string>;
6604
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
+ }
6605
6875
  /**
6606
6876
  *
6607
6877
  * @export
@@ -9115,6 +9385,13 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
9115
9385
  * @throws {RequiredError}
9116
9386
  */
9117
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>;
9118
9395
  /**
9119
9396
  *
9120
9397
  * @param {number} [page]
@@ -9287,6 +9564,13 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
9287
9564
  * @throws {RequiredError}
9288
9565
  */
9289
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>>;
9290
9574
  /**
9291
9575
  *
9292
9576
  * @param {number} [page]
@@ -9455,6 +9739,13 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
9455
9739
  * @throws {RequiredError}
9456
9740
  */
9457
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>;
9458
9749
  /**
9459
9750
  *
9460
9751
  * @param {CompanyApiGetCompaniesRequest} requestParameters Request parameters.
@@ -9649,6 +9940,19 @@ export interface CompanyApiDeleteUserFromCompanyRequest {
9649
9940
  */
9650
9941
  readonly userId: string;
9651
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
+ }
9652
9956
  /**
9653
9957
  * Request parameters for getCompanies operation in CompanyApi.
9654
9958
  * @export
@@ -10047,6 +10351,14 @@ export declare class CompanyApi extends BaseAPI {
10047
10351
  * @memberof CompanyApi
10048
10352
  */
10049
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>>;
10050
10362
  /**
10051
10363
  *
10052
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.12",
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": "6e81ee18dfce3d11777fff8e09d1731deedb8cb8"
39
+ "gitHead": "9b1f1d4dd970c2a828dcaf3a91a15e97e8ea2640"
40
40
  }