@gooday_corp/gooday-api-client 1.1.6 → 1.1.8
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/api.ts +397 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -147,6 +147,120 @@ export interface AttributesDto {
|
|
|
147
147
|
*/
|
|
148
148
|
'dislikes': Array<string>;
|
|
149
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @export
|
|
153
|
+
* @interface BusinessTypeEntity
|
|
154
|
+
*/
|
|
155
|
+
export interface BusinessTypeEntity {
|
|
156
|
+
/**
|
|
157
|
+
* Unique identifier for the category
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof BusinessTypeEntity
|
|
160
|
+
*/
|
|
161
|
+
'_id': string;
|
|
162
|
+
/**
|
|
163
|
+
* name of the category
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof BusinessTypeEntity
|
|
166
|
+
*/
|
|
167
|
+
'name': string;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @export
|
|
172
|
+
* @interface BusinessTypeListResponse
|
|
173
|
+
*/
|
|
174
|
+
export interface BusinessTypeListResponse {
|
|
175
|
+
/**
|
|
176
|
+
* statusCode
|
|
177
|
+
* @type {number}
|
|
178
|
+
* @memberof BusinessTypeListResponse
|
|
179
|
+
*/
|
|
180
|
+
'statusCode': number;
|
|
181
|
+
/**
|
|
182
|
+
* User
|
|
183
|
+
* @type {Array<BusinessTypeEntity>}
|
|
184
|
+
* @memberof BusinessTypeListResponse
|
|
185
|
+
*/
|
|
186
|
+
'data': Array<BusinessTypeEntity>;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* @export
|
|
191
|
+
* @interface BusinessVerificationEntity
|
|
192
|
+
*/
|
|
193
|
+
export interface BusinessVerificationEntity {
|
|
194
|
+
/**
|
|
195
|
+
* Verification of business number
|
|
196
|
+
* @type {boolean}
|
|
197
|
+
* @memberof BusinessVerificationEntity
|
|
198
|
+
*/
|
|
199
|
+
'verified': boolean;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @export
|
|
204
|
+
* @interface BusinessVerificationResponse
|
|
205
|
+
*/
|
|
206
|
+
export interface BusinessVerificationResponse {
|
|
207
|
+
/**
|
|
208
|
+
* statusCode
|
|
209
|
+
* @type {number}
|
|
210
|
+
* @memberof BusinessVerificationResponse
|
|
211
|
+
*/
|
|
212
|
+
'statusCode': number;
|
|
213
|
+
/**
|
|
214
|
+
* Business verification
|
|
215
|
+
* @type {BusinessVerificationEntity}
|
|
216
|
+
* @memberof BusinessVerificationResponse
|
|
217
|
+
*/
|
|
218
|
+
'data': BusinessVerificationEntity;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @export
|
|
223
|
+
* @interface CategoryEntity
|
|
224
|
+
*/
|
|
225
|
+
export interface CategoryEntity {
|
|
226
|
+
/**
|
|
227
|
+
* Unique identifier for the category
|
|
228
|
+
* @type {string}
|
|
229
|
+
* @memberof CategoryEntity
|
|
230
|
+
*/
|
|
231
|
+
'_id': string;
|
|
232
|
+
/**
|
|
233
|
+
* name of the category
|
|
234
|
+
* @type {string}
|
|
235
|
+
* @memberof CategoryEntity
|
|
236
|
+
*/
|
|
237
|
+
'name': string;
|
|
238
|
+
/**
|
|
239
|
+
* Unique identifier or reference of the business Type
|
|
240
|
+
* @type {string}
|
|
241
|
+
* @memberof CategoryEntity
|
|
242
|
+
*/
|
|
243
|
+
'businessTypeId': string;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @export
|
|
248
|
+
* @interface CategoryListResponse
|
|
249
|
+
*/
|
|
250
|
+
export interface CategoryListResponse {
|
|
251
|
+
/**
|
|
252
|
+
* statusCode
|
|
253
|
+
* @type {number}
|
|
254
|
+
* @memberof CategoryListResponse
|
|
255
|
+
*/
|
|
256
|
+
'statusCode': number;
|
|
257
|
+
/**
|
|
258
|
+
* User
|
|
259
|
+
* @type {Array<CategoryEntity>}
|
|
260
|
+
* @memberof CategoryListResponse
|
|
261
|
+
*/
|
|
262
|
+
'data': Array<CategoryEntity>;
|
|
263
|
+
}
|
|
150
264
|
/**
|
|
151
265
|
*
|
|
152
266
|
* @export
|
|
@@ -1711,6 +1825,289 @@ export class AuthApi extends BaseAPI {
|
|
|
1711
1825
|
|
|
1712
1826
|
|
|
1713
1827
|
|
|
1828
|
+
/**
|
|
1829
|
+
* BusinessCategoriesApi - axios parameter creator
|
|
1830
|
+
* @export
|
|
1831
|
+
*/
|
|
1832
|
+
export const BusinessCategoriesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1833
|
+
return {
|
|
1834
|
+
/**
|
|
1835
|
+
*
|
|
1836
|
+
* @param {*} [options] Override http request option.
|
|
1837
|
+
* @throws {RequiredError}
|
|
1838
|
+
*/
|
|
1839
|
+
businessTypeControllerListBusinessType: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1840
|
+
const localVarPath = `/v1/business/list`;
|
|
1841
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1842
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1843
|
+
let baseOptions;
|
|
1844
|
+
if (configuration) {
|
|
1845
|
+
baseOptions = configuration.baseOptions;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1849
|
+
const localVarHeaderParameter = {} as any;
|
|
1850
|
+
const localVarQueryParameter = {} as any;
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
|
|
1854
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1855
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1856
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1857
|
+
|
|
1858
|
+
return {
|
|
1859
|
+
url: toPathString(localVarUrlObj),
|
|
1860
|
+
options: localVarRequestOptions,
|
|
1861
|
+
};
|
|
1862
|
+
},
|
|
1863
|
+
/**
|
|
1864
|
+
*
|
|
1865
|
+
* @param {string} type
|
|
1866
|
+
* @param {*} [options] Override http request option.
|
|
1867
|
+
* @throws {RequiredError}
|
|
1868
|
+
*/
|
|
1869
|
+
businessTypeControllerListCategories: async (type: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1870
|
+
// verify required parameter 'type' is not null or undefined
|
|
1871
|
+
assertParamExists('businessTypeControllerListCategories', 'type', type)
|
|
1872
|
+
const localVarPath = `/v1/business/{type}/categories`
|
|
1873
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)));
|
|
1874
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1875
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1876
|
+
let baseOptions;
|
|
1877
|
+
if (configuration) {
|
|
1878
|
+
baseOptions = configuration.baseOptions;
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1882
|
+
const localVarHeaderParameter = {} as any;
|
|
1883
|
+
const localVarQueryParameter = {} as any;
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
|
|
1887
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1888
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1889
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1890
|
+
|
|
1891
|
+
return {
|
|
1892
|
+
url: toPathString(localVarUrlObj),
|
|
1893
|
+
options: localVarRequestOptions,
|
|
1894
|
+
};
|
|
1895
|
+
},
|
|
1896
|
+
}
|
|
1897
|
+
};
|
|
1898
|
+
|
|
1899
|
+
/**
|
|
1900
|
+
* BusinessCategoriesApi - functional programming interface
|
|
1901
|
+
* @export
|
|
1902
|
+
*/
|
|
1903
|
+
export const BusinessCategoriesApiFp = function(configuration?: Configuration) {
|
|
1904
|
+
const localVarAxiosParamCreator = BusinessCategoriesApiAxiosParamCreator(configuration)
|
|
1905
|
+
return {
|
|
1906
|
+
/**
|
|
1907
|
+
*
|
|
1908
|
+
* @param {*} [options] Override http request option.
|
|
1909
|
+
* @throws {RequiredError}
|
|
1910
|
+
*/
|
|
1911
|
+
async businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessTypeListResponse>> {
|
|
1912
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListBusinessType(options);
|
|
1913
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1914
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessCategoriesApi.businessTypeControllerListBusinessType']?.[localVarOperationServerIndex]?.url;
|
|
1915
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1916
|
+
},
|
|
1917
|
+
/**
|
|
1918
|
+
*
|
|
1919
|
+
* @param {string} type
|
|
1920
|
+
* @param {*} [options] Override http request option.
|
|
1921
|
+
* @throws {RequiredError}
|
|
1922
|
+
*/
|
|
1923
|
+
async businessTypeControllerListCategories(type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryListResponse>> {
|
|
1924
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListCategories(type, options);
|
|
1925
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1926
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessCategoriesApi.businessTypeControllerListCategories']?.[localVarOperationServerIndex]?.url;
|
|
1927
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1928
|
+
},
|
|
1929
|
+
}
|
|
1930
|
+
};
|
|
1931
|
+
|
|
1932
|
+
/**
|
|
1933
|
+
* BusinessCategoriesApi - factory interface
|
|
1934
|
+
* @export
|
|
1935
|
+
*/
|
|
1936
|
+
export const BusinessCategoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1937
|
+
const localVarFp = BusinessCategoriesApiFp(configuration)
|
|
1938
|
+
return {
|
|
1939
|
+
/**
|
|
1940
|
+
*
|
|
1941
|
+
* @param {*} [options] Override http request option.
|
|
1942
|
+
* @throws {RequiredError}
|
|
1943
|
+
*/
|
|
1944
|
+
businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig): AxiosPromise<BusinessTypeListResponse> {
|
|
1945
|
+
return localVarFp.businessTypeControllerListBusinessType(options).then((request) => request(axios, basePath));
|
|
1946
|
+
},
|
|
1947
|
+
/**
|
|
1948
|
+
*
|
|
1949
|
+
* @param {string} type
|
|
1950
|
+
* @param {*} [options] Override http request option.
|
|
1951
|
+
* @throws {RequiredError}
|
|
1952
|
+
*/
|
|
1953
|
+
businessTypeControllerListCategories(type: string, options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
|
|
1954
|
+
return localVarFp.businessTypeControllerListCategories(type, options).then((request) => request(axios, basePath));
|
|
1955
|
+
},
|
|
1956
|
+
};
|
|
1957
|
+
};
|
|
1958
|
+
|
|
1959
|
+
/**
|
|
1960
|
+
* BusinessCategoriesApi - object-oriented interface
|
|
1961
|
+
* @export
|
|
1962
|
+
* @class BusinessCategoriesApi
|
|
1963
|
+
* @extends {BaseAPI}
|
|
1964
|
+
*/
|
|
1965
|
+
export class BusinessCategoriesApi extends BaseAPI {
|
|
1966
|
+
/**
|
|
1967
|
+
*
|
|
1968
|
+
* @param {*} [options] Override http request option.
|
|
1969
|
+
* @throws {RequiredError}
|
|
1970
|
+
* @memberof BusinessCategoriesApi
|
|
1971
|
+
*/
|
|
1972
|
+
public businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig) {
|
|
1973
|
+
return BusinessCategoriesApiFp(this.configuration).businessTypeControllerListBusinessType(options).then((request) => request(this.axios, this.basePath));
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
/**
|
|
1977
|
+
*
|
|
1978
|
+
* @param {string} type
|
|
1979
|
+
* @param {*} [options] Override http request option.
|
|
1980
|
+
* @throws {RequiredError}
|
|
1981
|
+
* @memberof BusinessCategoriesApi
|
|
1982
|
+
*/
|
|
1983
|
+
public businessTypeControllerListCategories(type: string, options?: RawAxiosRequestConfig) {
|
|
1984
|
+
return BusinessCategoriesApiFp(this.configuration).businessTypeControllerListCategories(type, options).then((request) => request(this.axios, this.basePath));
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
|
|
1989
|
+
|
|
1990
|
+
/**
|
|
1991
|
+
* BusinessVerificationApi - axios parameter creator
|
|
1992
|
+
* @export
|
|
1993
|
+
*/
|
|
1994
|
+
export const BusinessVerificationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1995
|
+
return {
|
|
1996
|
+
/**
|
|
1997
|
+
*
|
|
1998
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
1999
|
+
* @param {string} businessNumber
|
|
2000
|
+
* @param {*} [options] Override http request option.
|
|
2001
|
+
* @throws {RequiredError}
|
|
2002
|
+
*/
|
|
2003
|
+
businessVerificationControllerABNVerification: async (type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2004
|
+
// verify required parameter 'type' is not null or undefined
|
|
2005
|
+
assertParamExists('businessVerificationControllerABNVerification', 'type', type)
|
|
2006
|
+
// verify required parameter 'businessNumber' is not null or undefined
|
|
2007
|
+
assertParamExists('businessVerificationControllerABNVerification', 'businessNumber', businessNumber)
|
|
2008
|
+
const localVarPath = `/v1/business/verify/{type}/{businessNumber}`
|
|
2009
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)))
|
|
2010
|
+
.replace(`{${"businessNumber"}}`, encodeURIComponent(String(businessNumber)));
|
|
2011
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2012
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2013
|
+
let baseOptions;
|
|
2014
|
+
if (configuration) {
|
|
2015
|
+
baseOptions = configuration.baseOptions;
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2019
|
+
const localVarHeaderParameter = {} as any;
|
|
2020
|
+
const localVarQueryParameter = {} as any;
|
|
2021
|
+
|
|
2022
|
+
|
|
2023
|
+
|
|
2024
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2025
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2026
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2027
|
+
|
|
2028
|
+
return {
|
|
2029
|
+
url: toPathString(localVarUrlObj),
|
|
2030
|
+
options: localVarRequestOptions,
|
|
2031
|
+
};
|
|
2032
|
+
},
|
|
2033
|
+
}
|
|
2034
|
+
};
|
|
2035
|
+
|
|
2036
|
+
/**
|
|
2037
|
+
* BusinessVerificationApi - functional programming interface
|
|
2038
|
+
* @export
|
|
2039
|
+
*/
|
|
2040
|
+
export const BusinessVerificationApiFp = function(configuration?: Configuration) {
|
|
2041
|
+
const localVarAxiosParamCreator = BusinessVerificationApiAxiosParamCreator(configuration)
|
|
2042
|
+
return {
|
|
2043
|
+
/**
|
|
2044
|
+
*
|
|
2045
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
2046
|
+
* @param {string} businessNumber
|
|
2047
|
+
* @param {*} [options] Override http request option.
|
|
2048
|
+
* @throws {RequiredError}
|
|
2049
|
+
*/
|
|
2050
|
+
async businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVerificationResponse>> {
|
|
2051
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessVerificationControllerABNVerification(type, businessNumber, options);
|
|
2052
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2053
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessVerificationApi.businessVerificationControllerABNVerification']?.[localVarOperationServerIndex]?.url;
|
|
2054
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2055
|
+
},
|
|
2056
|
+
}
|
|
2057
|
+
};
|
|
2058
|
+
|
|
2059
|
+
/**
|
|
2060
|
+
* BusinessVerificationApi - factory interface
|
|
2061
|
+
* @export
|
|
2062
|
+
*/
|
|
2063
|
+
export const BusinessVerificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2064
|
+
const localVarFp = BusinessVerificationApiFp(configuration)
|
|
2065
|
+
return {
|
|
2066
|
+
/**
|
|
2067
|
+
*
|
|
2068
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
2069
|
+
* @param {string} businessNumber
|
|
2070
|
+
* @param {*} [options] Override http request option.
|
|
2071
|
+
* @throws {RequiredError}
|
|
2072
|
+
*/
|
|
2073
|
+
businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVerificationResponse> {
|
|
2074
|
+
return localVarFp.businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(axios, basePath));
|
|
2075
|
+
},
|
|
2076
|
+
};
|
|
2077
|
+
};
|
|
2078
|
+
|
|
2079
|
+
/**
|
|
2080
|
+
* BusinessVerificationApi - object-oriented interface
|
|
2081
|
+
* @export
|
|
2082
|
+
* @class BusinessVerificationApi
|
|
2083
|
+
* @extends {BaseAPI}
|
|
2084
|
+
*/
|
|
2085
|
+
export class BusinessVerificationApi extends BaseAPI {
|
|
2086
|
+
/**
|
|
2087
|
+
*
|
|
2088
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
2089
|
+
* @param {string} businessNumber
|
|
2090
|
+
* @param {*} [options] Override http request option.
|
|
2091
|
+
* @throws {RequiredError}
|
|
2092
|
+
* @memberof BusinessVerificationApi
|
|
2093
|
+
*/
|
|
2094
|
+
public businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig) {
|
|
2095
|
+
return BusinessVerificationApiFp(this.configuration).businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(this.axios, this.basePath));
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
/**
|
|
2100
|
+
* @export
|
|
2101
|
+
*/
|
|
2102
|
+
export const BusinessVerificationControllerABNVerificationTypeEnum = {
|
|
2103
|
+
Abn: 'ABN',
|
|
2104
|
+
Nzbn: 'NZBN',
|
|
2105
|
+
Crn: 'CRN',
|
|
2106
|
+
Ein: 'EIN'
|
|
2107
|
+
} as const;
|
|
2108
|
+
export type BusinessVerificationControllerABNVerificationTypeEnum = typeof BusinessVerificationControllerABNVerificationTypeEnum[keyof typeof BusinessVerificationControllerABNVerificationTypeEnum];
|
|
2109
|
+
|
|
2110
|
+
|
|
1714
2111
|
/**
|
|
1715
2112
|
* DeviceApi - axios parameter creator
|
|
1716
2113
|
* @export
|