@infisale-client/api 1.1.13 → 1.1.15
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 +427 -119
- package/dist/api/api.js +59 -0
- package/dist/api/api.mjs +59 -0
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -1717,17 +1717,17 @@ export interface ICompany {
|
|
|
1717
1717
|
'custom_hostnames': Array<ICompanyResponseCustomHostnamesInner>;
|
|
1718
1718
|
/**
|
|
1719
1719
|
*
|
|
1720
|
-
* @type {Array<
|
|
1720
|
+
* @type {Array<PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUsersInner>}
|
|
1721
1721
|
* @memberof ICompany
|
|
1722
1722
|
*/
|
|
1723
|
-
'users': Array<
|
|
1723
|
+
'users': Array<PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUsersInner>;
|
|
1724
1724
|
/**
|
|
1725
1725
|
*
|
|
1726
|
-
* @type {{ [key: string]:
|
|
1726
|
+
* @type {{ [key: string]: PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue; }}
|
|
1727
1727
|
* @memberof ICompany
|
|
1728
1728
|
*/
|
|
1729
1729
|
'roles': {
|
|
1730
|
-
[key: string]:
|
|
1730
|
+
[key: string]: PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue;
|
|
1731
1731
|
};
|
|
1732
1732
|
/**
|
|
1733
1733
|
*
|
|
@@ -1848,6 +1848,260 @@ 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]: PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue; }}
|
|
1878
|
+
* @memberof ICompanyAdminResponse
|
|
1879
|
+
*/
|
|
1880
|
+
'roles': {
|
|
1881
|
+
[key: string]: PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue;
|
|
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 {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles}
|
|
2058
|
+
* @memberof ICompanyAdminResponse
|
|
2059
|
+
*/
|
|
2060
|
+
'main'?: PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles;
|
|
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 ICompanyAdminResponseUsersInner
|
|
2084
|
+
*/
|
|
2085
|
+
export interface ICompanyAdminResponseUsersInner {
|
|
2086
|
+
/**
|
|
2087
|
+
*
|
|
2088
|
+
* @type {CompanyUserStatusEnum}
|
|
2089
|
+
* @memberof ICompanyAdminResponseUsersInner
|
|
2090
|
+
*/
|
|
2091
|
+
'status': CompanyUserStatusEnum;
|
|
2092
|
+
/**
|
|
2093
|
+
*
|
|
2094
|
+
* @type {string}
|
|
2095
|
+
* @memberof ICompanyAdminResponseUsersInner
|
|
2096
|
+
*/
|
|
2097
|
+
'role': string;
|
|
2098
|
+
/**
|
|
2099
|
+
*
|
|
2100
|
+
* @type {PickIUserIdOrNameOrEmail}
|
|
2101
|
+
* @memberof ICompanyAdminResponseUsersInner
|
|
2102
|
+
*/
|
|
2103
|
+
'user': PickIUserIdOrNameOrEmail;
|
|
2104
|
+
}
|
|
1851
2105
|
/**
|
|
1852
2106
|
*
|
|
1853
2107
|
* @export
|
|
@@ -2176,11 +2430,11 @@ export interface ICompanyPatchRequest {
|
|
|
2176
2430
|
'email'?: string;
|
|
2177
2431
|
/**
|
|
2178
2432
|
*
|
|
2179
|
-
* @type {{ [key: string]:
|
|
2433
|
+
* @type {{ [key: string]: PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue; }}
|
|
2180
2434
|
* @memberof ICompanyPatchRequest
|
|
2181
2435
|
*/
|
|
2182
2436
|
'roles'?: {
|
|
2183
|
-
[key: string]:
|
|
2437
|
+
[key: string]: PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue;
|
|
2184
2438
|
};
|
|
2185
2439
|
/**
|
|
2186
2440
|
*
|
|
@@ -2196,10 +2450,10 @@ export interface ICompanyPatchRequest {
|
|
|
2196
2450
|
'status'?: CompanyStatusEnum;
|
|
2197
2451
|
/**
|
|
2198
2452
|
*
|
|
2199
|
-
* @type {Array<
|
|
2453
|
+
* @type {Array<PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUsersInner>}
|
|
2200
2454
|
* @memberof ICompanyPatchRequest
|
|
2201
2455
|
*/
|
|
2202
|
-
'users'?: Array<
|
|
2456
|
+
'users'?: Array<PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUsersInner>;
|
|
2203
2457
|
/**
|
|
2204
2458
|
*
|
|
2205
2459
|
* @type {ICompanyPostRequestFirebaseAdminCredentials}
|
|
@@ -2319,11 +2573,11 @@ export interface ICompanyPostRequest {
|
|
|
2319
2573
|
'email'?: string;
|
|
2320
2574
|
/**
|
|
2321
2575
|
*
|
|
2322
|
-
* @type {{ [key: string]:
|
|
2576
|
+
* @type {{ [key: string]: PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue; }}
|
|
2323
2577
|
* @memberof ICompanyPostRequest
|
|
2324
2578
|
*/
|
|
2325
2579
|
'roles': {
|
|
2326
|
-
[key: string]:
|
|
2580
|
+
[key: string]: PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue;
|
|
2327
2581
|
};
|
|
2328
2582
|
/**
|
|
2329
2583
|
*
|
|
@@ -2425,10 +2679,10 @@ export interface ICompanyPostRequest {
|
|
|
2425
2679
|
'owner': string;
|
|
2426
2680
|
/**
|
|
2427
2681
|
*
|
|
2428
|
-
* @type {Array<
|
|
2682
|
+
* @type {Array<PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUsersInner>}
|
|
2429
2683
|
* @memberof ICompanyPostRequest
|
|
2430
2684
|
*/
|
|
2431
|
-
'users': Array<
|
|
2685
|
+
'users': Array<PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUsersInner>;
|
|
2432
2686
|
/**
|
|
2433
2687
|
*
|
|
2434
2688
|
* @type {Array<ICompanyPostRequestWarehousesInner>}
|
|
@@ -2564,14 +2818,6 @@ export interface ICompanyResponse {
|
|
|
2564
2818
|
* @memberof ICompanyResponse
|
|
2565
2819
|
*/
|
|
2566
2820
|
'email'?: string;
|
|
2567
|
-
/**
|
|
2568
|
-
*
|
|
2569
|
-
* @type {{ [key: string]: ICompanyResponseRolesValue; }}
|
|
2570
|
-
* @memberof ICompanyResponse
|
|
2571
|
-
*/
|
|
2572
|
-
'roles': {
|
|
2573
|
-
[key: string]: ICompanyResponseRolesValue;
|
|
2574
|
-
};
|
|
2575
2821
|
/**
|
|
2576
2822
|
*
|
|
2577
2823
|
* @type {Array<PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTVersionsInner>}
|
|
@@ -2746,10 +2992,10 @@ export interface ICompanyResponse {
|
|
|
2746
2992
|
'sender_email_dns_records'?: Array<ICompanyResponseSenderEmailDnsRecordsInner>;
|
|
2747
2993
|
/**
|
|
2748
2994
|
*
|
|
2749
|
-
* @type {
|
|
2995
|
+
* @type {PickICompanyNameOrDomainsOrIdOrLanguage}
|
|
2750
2996
|
* @memberof ICompanyResponse
|
|
2751
2997
|
*/
|
|
2752
|
-
'main'?:
|
|
2998
|
+
'main'?: PickICompanyNameOrDomainsOrIdOrLanguage;
|
|
2753
2999
|
/**
|
|
2754
3000
|
*
|
|
2755
3001
|
* @type {ICompanyResponseConfig}
|
|
@@ -3002,62 +3248,6 @@ export interface ICompanyResponseNavigationsValue {
|
|
|
3002
3248
|
*/
|
|
3003
3249
|
'header': Array<NavigationUrl>;
|
|
3004
3250
|
}
|
|
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
3251
|
/**
|
|
3062
3252
|
*
|
|
3063
3253
|
* @export
|
|
@@ -3286,35 +3476,10 @@ export interface ICompanyUsersCollectionQueryParams {
|
|
|
3286
3476
|
export interface ICompanyUsersResponse {
|
|
3287
3477
|
/**
|
|
3288
3478
|
*
|
|
3289
|
-
* @type {Array<
|
|
3479
|
+
* @type {Array<ICompanyAdminResponseUsersInner>}
|
|
3290
3480
|
* @memberof ICompanyUsersResponse
|
|
3291
3481
|
*/
|
|
3292
|
-
'users': Array<
|
|
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;
|
|
3482
|
+
'users': Array<ICompanyAdminResponseUsersInner>;
|
|
3318
3483
|
}
|
|
3319
3484
|
/**
|
|
3320
3485
|
*
|
|
@@ -6574,62 +6739,163 @@ export interface PickICompanyIdOrName {
|
|
|
6574
6739
|
/**
|
|
6575
6740
|
* From T, pick a set of properties whose keys are in the union K
|
|
6576
6741
|
* @export
|
|
6577
|
-
* @interface
|
|
6742
|
+
* @interface PickICompanyNameOrDomainsOrIdOrLanguage
|
|
6743
|
+
*/
|
|
6744
|
+
export interface PickICompanyNameOrDomainsOrIdOrLanguage {
|
|
6745
|
+
/**
|
|
6746
|
+
*
|
|
6747
|
+
* @type {string}
|
|
6748
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrLanguage
|
|
6749
|
+
*/
|
|
6750
|
+
'name': string;
|
|
6751
|
+
/**
|
|
6752
|
+
*
|
|
6753
|
+
* @type {LanguageEnum}
|
|
6754
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrLanguage
|
|
6755
|
+
*/
|
|
6756
|
+
'language': LanguageEnum;
|
|
6757
|
+
/**
|
|
6758
|
+
*
|
|
6759
|
+
* @type {string}
|
|
6760
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrLanguage
|
|
6761
|
+
*/
|
|
6762
|
+
'_id': string;
|
|
6763
|
+
/**
|
|
6764
|
+
*
|
|
6765
|
+
* @type {Array<string>}
|
|
6766
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrLanguage
|
|
6767
|
+
*/
|
|
6768
|
+
'domains': Array<string>;
|
|
6769
|
+
}
|
|
6770
|
+
/**
|
|
6771
|
+
* From T, pick a set of properties whose keys are in the union K
|
|
6772
|
+
* @export
|
|
6773
|
+
* @interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles
|
|
6578
6774
|
*/
|
|
6579
|
-
export interface
|
|
6775
|
+
export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles {
|
|
6580
6776
|
/**
|
|
6581
6777
|
*
|
|
6582
6778
|
* @type {string}
|
|
6583
|
-
* @memberof
|
|
6779
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles
|
|
6584
6780
|
*/
|
|
6585
6781
|
'name': string;
|
|
6782
|
+
/**
|
|
6783
|
+
*
|
|
6784
|
+
* @type {{ [key: string]: PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue; }}
|
|
6785
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles
|
|
6786
|
+
*/
|
|
6787
|
+
'roles': {
|
|
6788
|
+
[key: string]: PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue;
|
|
6789
|
+
};
|
|
6586
6790
|
/**
|
|
6587
6791
|
*
|
|
6588
6792
|
* @type {LanguageEnum}
|
|
6589
|
-
* @memberof
|
|
6793
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles
|
|
6590
6794
|
*/
|
|
6591
6795
|
'language': LanguageEnum;
|
|
6592
6796
|
/**
|
|
6593
6797
|
*
|
|
6594
6798
|
* @type {string}
|
|
6595
|
-
* @memberof
|
|
6799
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles
|
|
6596
6800
|
*/
|
|
6597
6801
|
'_id': string;
|
|
6598
6802
|
/**
|
|
6599
6803
|
*
|
|
6600
|
-
* @type {Array<
|
|
6601
|
-
* @memberof
|
|
6804
|
+
* @type {Array<PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUsersInner>}
|
|
6805
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles
|
|
6806
|
+
*/
|
|
6807
|
+
'users': Array<PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUsersInner>;
|
|
6808
|
+
/**
|
|
6809
|
+
*
|
|
6810
|
+
* @type {string}
|
|
6811
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles
|
|
6602
6812
|
*/
|
|
6603
|
-
'
|
|
6813
|
+
'owner': string;
|
|
6604
6814
|
/**
|
|
6605
6815
|
*
|
|
6606
6816
|
* @type {Array<string>}
|
|
6607
|
-
* @memberof
|
|
6817
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles
|
|
6608
6818
|
*/
|
|
6609
6819
|
'domains': Array<string>;
|
|
6610
6820
|
}
|
|
6611
6821
|
/**
|
|
6612
6822
|
*
|
|
6613
6823
|
* @export
|
|
6614
|
-
* @interface
|
|
6824
|
+
* @interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
6825
|
+
*/
|
|
6826
|
+
export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue {
|
|
6827
|
+
/**
|
|
6828
|
+
*
|
|
6829
|
+
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
6830
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
6831
|
+
*/
|
|
6832
|
+
'config': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
6833
|
+
/**
|
|
6834
|
+
*
|
|
6835
|
+
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
6836
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
6837
|
+
*/
|
|
6838
|
+
'navigation': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
6839
|
+
/**
|
|
6840
|
+
*
|
|
6841
|
+
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
6842
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
6843
|
+
*/
|
|
6844
|
+
'company': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
6845
|
+
/**
|
|
6846
|
+
*
|
|
6847
|
+
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
6848
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
6849
|
+
*/
|
|
6850
|
+
'page': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
6851
|
+
/**
|
|
6852
|
+
*
|
|
6853
|
+
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
6854
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
6855
|
+
*/
|
|
6856
|
+
'product': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
6857
|
+
}
|
|
6858
|
+
/**
|
|
6859
|
+
*
|
|
6860
|
+
* @export
|
|
6861
|
+
* @interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig
|
|
6862
|
+
*/
|
|
6863
|
+
export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig {
|
|
6864
|
+
/**
|
|
6865
|
+
*
|
|
6866
|
+
* @type {boolean}
|
|
6867
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig
|
|
6868
|
+
*/
|
|
6869
|
+
'd': boolean;
|
|
6870
|
+
/**
|
|
6871
|
+
*
|
|
6872
|
+
* @type {boolean}
|
|
6873
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig
|
|
6874
|
+
*/
|
|
6875
|
+
'm': boolean;
|
|
6876
|
+
}
|
|
6877
|
+
/**
|
|
6878
|
+
*
|
|
6879
|
+
* @export
|
|
6880
|
+
* @interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUsersInner
|
|
6615
6881
|
*/
|
|
6616
|
-
export interface
|
|
6882
|
+
export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUsersInner {
|
|
6617
6883
|
/**
|
|
6618
6884
|
*
|
|
6619
6885
|
* @type {CompanyUserStatusEnum}
|
|
6620
|
-
* @memberof
|
|
6886
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUsersInner
|
|
6621
6887
|
*/
|
|
6622
6888
|
'status': CompanyUserStatusEnum;
|
|
6623
6889
|
/**
|
|
6624
6890
|
*
|
|
6625
6891
|
* @type {string}
|
|
6626
|
-
* @memberof
|
|
6892
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUsersInner
|
|
6627
6893
|
*/
|
|
6628
6894
|
'role': string;
|
|
6629
6895
|
/**
|
|
6630
6896
|
*
|
|
6631
6897
|
* @type {string}
|
|
6632
|
-
* @memberof
|
|
6898
|
+
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUsersInner
|
|
6633
6899
|
*/
|
|
6634
6900
|
'user': string;
|
|
6635
6901
|
}
|
|
@@ -9121,6 +9387,13 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
|
|
|
9121
9387
|
* @throws {RequiredError}
|
|
9122
9388
|
*/
|
|
9123
9389
|
deleteUserFromCompany: (id: string, userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9390
|
+
/**
|
|
9391
|
+
*
|
|
9392
|
+
* @param {string} id
|
|
9393
|
+
* @param {*} [options] Override http request option.
|
|
9394
|
+
* @throws {RequiredError}
|
|
9395
|
+
*/
|
|
9396
|
+
getAdminCompanyById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9124
9397
|
/**
|
|
9125
9398
|
*
|
|
9126
9399
|
* @param {number} [page]
|
|
@@ -9293,6 +9566,13 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
|
|
|
9293
9566
|
* @throws {RequiredError}
|
|
9294
9567
|
*/
|
|
9295
9568
|
deleteUserFromCompany(id: string, userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICompanyResponse>>;
|
|
9569
|
+
/**
|
|
9570
|
+
*
|
|
9571
|
+
* @param {string} id
|
|
9572
|
+
* @param {*} [options] Override http request option.
|
|
9573
|
+
* @throws {RequiredError}
|
|
9574
|
+
*/
|
|
9575
|
+
getAdminCompanyById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICompanyAdminResponse>>;
|
|
9296
9576
|
/**
|
|
9297
9577
|
*
|
|
9298
9578
|
* @param {number} [page]
|
|
@@ -9461,6 +9741,13 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
|
|
|
9461
9741
|
* @throws {RequiredError}
|
|
9462
9742
|
*/
|
|
9463
9743
|
deleteUserFromCompany(requestParameters: CompanyApiDeleteUserFromCompanyRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyResponse>;
|
|
9744
|
+
/**
|
|
9745
|
+
*
|
|
9746
|
+
* @param {CompanyApiGetAdminCompanyByIdRequest} requestParameters Request parameters.
|
|
9747
|
+
* @param {*} [options] Override http request option.
|
|
9748
|
+
* @throws {RequiredError}
|
|
9749
|
+
*/
|
|
9750
|
+
getAdminCompanyById(requestParameters: CompanyApiGetAdminCompanyByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ICompanyAdminResponse>;
|
|
9464
9751
|
/**
|
|
9465
9752
|
*
|
|
9466
9753
|
* @param {CompanyApiGetCompaniesRequest} requestParameters Request parameters.
|
|
@@ -9655,6 +9942,19 @@ export interface CompanyApiDeleteUserFromCompanyRequest {
|
|
|
9655
9942
|
*/
|
|
9656
9943
|
readonly userId: string;
|
|
9657
9944
|
}
|
|
9945
|
+
/**
|
|
9946
|
+
* Request parameters for getAdminCompanyById operation in CompanyApi.
|
|
9947
|
+
* @export
|
|
9948
|
+
* @interface CompanyApiGetAdminCompanyByIdRequest
|
|
9949
|
+
*/
|
|
9950
|
+
export interface CompanyApiGetAdminCompanyByIdRequest {
|
|
9951
|
+
/**
|
|
9952
|
+
*
|
|
9953
|
+
* @type {string}
|
|
9954
|
+
* @memberof CompanyApiGetAdminCompanyById
|
|
9955
|
+
*/
|
|
9956
|
+
readonly id: string;
|
|
9957
|
+
}
|
|
9658
9958
|
/**
|
|
9659
9959
|
* Request parameters for getCompanies operation in CompanyApi.
|
|
9660
9960
|
* @export
|
|
@@ -10053,6 +10353,14 @@ export declare class CompanyApi extends BaseAPI {
|
|
|
10053
10353
|
* @memberof CompanyApi
|
|
10054
10354
|
*/
|
|
10055
10355
|
deleteUserFromCompany(requestParameters: CompanyApiDeleteUserFromCompanyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyResponse, any>>;
|
|
10356
|
+
/**
|
|
10357
|
+
*
|
|
10358
|
+
* @param {CompanyApiGetAdminCompanyByIdRequest} requestParameters Request parameters.
|
|
10359
|
+
* @param {*} [options] Override http request option.
|
|
10360
|
+
* @throws {RequiredError}
|
|
10361
|
+
* @memberof CompanyApi
|
|
10362
|
+
*/
|
|
10363
|
+
getAdminCompanyById(requestParameters: CompanyApiGetAdminCompanyByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ICompanyAdminResponse, any>>;
|
|
10056
10364
|
/**
|
|
10057
10365
|
*
|
|
10058
10366
|
* @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.
|
|
3
|
+
"version": "1.1.15",
|
|
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": "
|
|
39
|
+
"gitHead": "66d187ea5768f8648727baf136894002e98c2b64"
|
|
40
40
|
}
|