squarefi-bff-api-module 1.23.1 → 1.23.2
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/list.d.ts +3 -0
- package/dist/api/list.js +3 -0
- package/dist/api/types/autogen/apiV2.types.d.ts +88 -0
- package/dist/api/types/types.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/list.ts +4 -0
- package/src/api/types/autogen/apiV2.types.ts +88 -0
- package/src/api/types/types.ts +8 -0
package/dist/api/list.d.ts
CHANGED
|
@@ -10,4 +10,7 @@ export declare const list: {
|
|
|
10
10
|
countries: {
|
|
11
11
|
getAll: (params?: AxiosRequestConfig) => Promise<API.Location.Countries.List.Response>;
|
|
12
12
|
};
|
|
13
|
+
states: {
|
|
14
|
+
getAll: ({ country_id }: API.Location.States.List.Request) => Promise<API.Location.States.List.Response>;
|
|
15
|
+
};
|
|
13
16
|
};
|
package/dist/api/list.js
CHANGED
|
@@ -13,4 +13,7 @@ exports.list = {
|
|
|
13
13
|
countries: {
|
|
14
14
|
getAll: (params) => apiClientFactory_1.apiClientV2.getRequest('/system/countries', params),
|
|
15
15
|
},
|
|
16
|
+
states: {
|
|
17
|
+
getAll: ({ country_id }) => apiClientFactory_1.apiClientV2.getRequest(`/system/states/${country_id}`),
|
|
18
|
+
},
|
|
16
19
|
};
|
|
@@ -898,6 +898,23 @@ export interface paths {
|
|
|
898
898
|
patch?: never;
|
|
899
899
|
trace?: never;
|
|
900
900
|
};
|
|
901
|
+
"/system/states/{country_id}": {
|
|
902
|
+
parameters: {
|
|
903
|
+
query?: never;
|
|
904
|
+
header?: never;
|
|
905
|
+
path?: never;
|
|
906
|
+
cookie?: never;
|
|
907
|
+
};
|
|
908
|
+
/** List of states of country */
|
|
909
|
+
get: operations["SystemController_states"];
|
|
910
|
+
put?: never;
|
|
911
|
+
post?: never;
|
|
912
|
+
delete?: never;
|
|
913
|
+
options?: never;
|
|
914
|
+
head?: never;
|
|
915
|
+
patch?: never;
|
|
916
|
+
trace?: never;
|
|
917
|
+
};
|
|
901
918
|
"/system/exchange-rates": {
|
|
902
919
|
parameters: {
|
|
903
920
|
query?: never;
|
|
@@ -1913,6 +1930,24 @@ export interface components {
|
|
|
1913
1930
|
type?: "DOMESTIC_WIRE" | "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL";
|
|
1914
1931
|
created_at?: string;
|
|
1915
1932
|
};
|
|
1933
|
+
StateEntity: {
|
|
1934
|
+
id: number;
|
|
1935
|
+
name: string;
|
|
1936
|
+
country_id: number;
|
|
1937
|
+
country_code: string;
|
|
1938
|
+
fips_code: string | null;
|
|
1939
|
+
iso2: string | null;
|
|
1940
|
+
type: string | null;
|
|
1941
|
+
level: number | null;
|
|
1942
|
+
parent_id: number | null;
|
|
1943
|
+
native: string | null;
|
|
1944
|
+
latitude: number | null;
|
|
1945
|
+
longitude: number | null;
|
|
1946
|
+
created_at: string | null;
|
|
1947
|
+
updated_at: string;
|
|
1948
|
+
flag: number;
|
|
1949
|
+
wikiDataId: string | null;
|
|
1950
|
+
};
|
|
1916
1951
|
AddressEntity: {
|
|
1917
1952
|
id?: string;
|
|
1918
1953
|
city?: string | null;
|
|
@@ -1922,6 +1957,8 @@ export interface components {
|
|
|
1922
1957
|
street1?: string | null;
|
|
1923
1958
|
street2?: string | null;
|
|
1924
1959
|
description?: string | null;
|
|
1960
|
+
state_id?: number | null;
|
|
1961
|
+
readonly state?: components["schemas"]["StateEntity"] | null;
|
|
1925
1962
|
};
|
|
1926
1963
|
CounterpartyExternalBankingDataDto: {
|
|
1927
1964
|
account_number?: string | null;
|
|
@@ -1976,6 +2013,7 @@ export interface components {
|
|
|
1976
2013
|
street1?: string | null;
|
|
1977
2014
|
street2?: string | null;
|
|
1978
2015
|
description?: string | null;
|
|
2016
|
+
state_id?: number | null;
|
|
1979
2017
|
};
|
|
1980
2018
|
CreateCounterpartyExternalBankingDataDto: {
|
|
1981
2019
|
account_number?: string | null;
|
|
@@ -2021,6 +2059,28 @@ export interface components {
|
|
|
2021
2059
|
total: number;
|
|
2022
2060
|
data: components["schemas"]["CountryDto"][];
|
|
2023
2061
|
};
|
|
2062
|
+
StateDto: {
|
|
2063
|
+
id: number;
|
|
2064
|
+
name: string;
|
|
2065
|
+
country_id: number;
|
|
2066
|
+
country_code: string;
|
|
2067
|
+
fips_code: string | null;
|
|
2068
|
+
iso2: string | null;
|
|
2069
|
+
type: string | null;
|
|
2070
|
+
level: number | null;
|
|
2071
|
+
parent_id: number | null;
|
|
2072
|
+
native: string | null;
|
|
2073
|
+
latitude: number | null;
|
|
2074
|
+
longitude: number | null;
|
|
2075
|
+
created_at: string | null;
|
|
2076
|
+
updated_at: string;
|
|
2077
|
+
flag: number;
|
|
2078
|
+
wikiDataId: string | null;
|
|
2079
|
+
};
|
|
2080
|
+
SystemStatesResponseDto: {
|
|
2081
|
+
total: number;
|
|
2082
|
+
data: components["schemas"]["StateDto"][];
|
|
2083
|
+
};
|
|
2024
2084
|
SystemExchangeRatesResponseDto: {
|
|
2025
2085
|
total: number;
|
|
2026
2086
|
data: components["schemas"]["ExchangeRateDto"][];
|
|
@@ -4314,6 +4374,34 @@ export interface operations {
|
|
|
4314
4374
|
};
|
|
4315
4375
|
};
|
|
4316
4376
|
};
|
|
4377
|
+
SystemController_states: {
|
|
4378
|
+
parameters: {
|
|
4379
|
+
query?: never;
|
|
4380
|
+
header?: never;
|
|
4381
|
+
path: {
|
|
4382
|
+
country_id: number;
|
|
4383
|
+
};
|
|
4384
|
+
cookie?: never;
|
|
4385
|
+
};
|
|
4386
|
+
requestBody?: never;
|
|
4387
|
+
responses: {
|
|
4388
|
+
200: {
|
|
4389
|
+
headers: {
|
|
4390
|
+
[name: string]: unknown;
|
|
4391
|
+
};
|
|
4392
|
+
content: {
|
|
4393
|
+
"application/json": components["schemas"]["SystemStatesResponseDto"];
|
|
4394
|
+
};
|
|
4395
|
+
};
|
|
4396
|
+
/** @description Invalid tenant */
|
|
4397
|
+
401: {
|
|
4398
|
+
headers: {
|
|
4399
|
+
[name: string]: unknown;
|
|
4400
|
+
};
|
|
4401
|
+
content?: never;
|
|
4402
|
+
};
|
|
4403
|
+
};
|
|
4404
|
+
};
|
|
4317
4405
|
SystemController_findAll: {
|
|
4318
4406
|
parameters: {
|
|
4319
4407
|
query: {
|
|
@@ -396,6 +396,7 @@ export declare namespace API {
|
|
|
396
396
|
address: {
|
|
397
397
|
city: string;
|
|
398
398
|
country_id: number;
|
|
399
|
+
state_id: number;
|
|
399
400
|
postcode: string;
|
|
400
401
|
street1: string;
|
|
401
402
|
street2?: string;
|
|
@@ -972,6 +973,13 @@ export declare namespace API {
|
|
|
972
973
|
};
|
|
973
974
|
}
|
|
974
975
|
}
|
|
976
|
+
namespace States {
|
|
977
|
+
type State = components['schemas']['StateDto'];
|
|
978
|
+
namespace List {
|
|
979
|
+
type Request = operations['SystemController_states']['parameters']['path'];
|
|
980
|
+
type Response = operations['SystemController_states']['responses']['200']['content']['application/json'];
|
|
981
|
+
}
|
|
982
|
+
}
|
|
975
983
|
}
|
|
976
984
|
namespace Orders {
|
|
977
985
|
namespace Create {
|
package/package.json
CHANGED
package/src/api/list.ts
CHANGED
|
@@ -19,4 +19,8 @@ export const list = {
|
|
|
19
19
|
getAll: (params?: AxiosRequestConfig): Promise<API.Location.Countries.List.Response> =>
|
|
20
20
|
apiClientV2.getRequest<API.Location.Countries.List.Response>('/system/countries', params),
|
|
21
21
|
},
|
|
22
|
+
states: {
|
|
23
|
+
getAll: ({ country_id }: API.Location.States.List.Request): Promise<API.Location.States.List.Response> =>
|
|
24
|
+
apiClientV2.getRequest<API.Location.States.List.Response>(`/system/states/${country_id}`),
|
|
25
|
+
},
|
|
22
26
|
};
|
|
@@ -899,6 +899,23 @@ export interface paths {
|
|
|
899
899
|
patch?: never;
|
|
900
900
|
trace?: never;
|
|
901
901
|
};
|
|
902
|
+
"/system/states/{country_id}": {
|
|
903
|
+
parameters: {
|
|
904
|
+
query?: never;
|
|
905
|
+
header?: never;
|
|
906
|
+
path?: never;
|
|
907
|
+
cookie?: never;
|
|
908
|
+
};
|
|
909
|
+
/** List of states of country */
|
|
910
|
+
get: operations["SystemController_states"];
|
|
911
|
+
put?: never;
|
|
912
|
+
post?: never;
|
|
913
|
+
delete?: never;
|
|
914
|
+
options?: never;
|
|
915
|
+
head?: never;
|
|
916
|
+
patch?: never;
|
|
917
|
+
trace?: never;
|
|
918
|
+
};
|
|
902
919
|
"/system/exchange-rates": {
|
|
903
920
|
parameters: {
|
|
904
921
|
query?: never;
|
|
@@ -1914,6 +1931,24 @@ export interface components {
|
|
|
1914
1931
|
type?: "DOMESTIC_WIRE" | "ACH" | "SWIFT" | "SEPA" | "CRYPTO_EXTERNAL" | "CRYPTO_INTERNAL";
|
|
1915
1932
|
created_at?: string;
|
|
1916
1933
|
};
|
|
1934
|
+
StateEntity: {
|
|
1935
|
+
id: number;
|
|
1936
|
+
name: string;
|
|
1937
|
+
country_id: number;
|
|
1938
|
+
country_code: string;
|
|
1939
|
+
fips_code: string | null;
|
|
1940
|
+
iso2: string | null;
|
|
1941
|
+
type: string | null;
|
|
1942
|
+
level: number | null;
|
|
1943
|
+
parent_id: number | null;
|
|
1944
|
+
native: string | null;
|
|
1945
|
+
latitude: number | null;
|
|
1946
|
+
longitude: number | null;
|
|
1947
|
+
created_at: string | null;
|
|
1948
|
+
updated_at: string;
|
|
1949
|
+
flag: number;
|
|
1950
|
+
wikiDataId: string | null;
|
|
1951
|
+
};
|
|
1917
1952
|
AddressEntity: {
|
|
1918
1953
|
id?: string;
|
|
1919
1954
|
city?: string | null;
|
|
@@ -1923,6 +1958,8 @@ export interface components {
|
|
|
1923
1958
|
street1?: string | null;
|
|
1924
1959
|
street2?: string | null;
|
|
1925
1960
|
description?: string | null;
|
|
1961
|
+
state_id?: number | null;
|
|
1962
|
+
readonly state?: components["schemas"]["StateEntity"] | null;
|
|
1926
1963
|
};
|
|
1927
1964
|
CounterpartyExternalBankingDataDto: {
|
|
1928
1965
|
account_number?: string | null;
|
|
@@ -1977,6 +2014,7 @@ export interface components {
|
|
|
1977
2014
|
street1?: string | null;
|
|
1978
2015
|
street2?: string | null;
|
|
1979
2016
|
description?: string | null;
|
|
2017
|
+
state_id?: number | null;
|
|
1980
2018
|
};
|
|
1981
2019
|
CreateCounterpartyExternalBankingDataDto: {
|
|
1982
2020
|
account_number?: string | null;
|
|
@@ -2022,6 +2060,28 @@ export interface components {
|
|
|
2022
2060
|
total: number;
|
|
2023
2061
|
data: components["schemas"]["CountryDto"][];
|
|
2024
2062
|
};
|
|
2063
|
+
StateDto: {
|
|
2064
|
+
id: number;
|
|
2065
|
+
name: string;
|
|
2066
|
+
country_id: number;
|
|
2067
|
+
country_code: string;
|
|
2068
|
+
fips_code: string | null;
|
|
2069
|
+
iso2: string | null;
|
|
2070
|
+
type: string | null;
|
|
2071
|
+
level: number | null;
|
|
2072
|
+
parent_id: number | null;
|
|
2073
|
+
native: string | null;
|
|
2074
|
+
latitude: number | null;
|
|
2075
|
+
longitude: number | null;
|
|
2076
|
+
created_at: string | null;
|
|
2077
|
+
updated_at: string;
|
|
2078
|
+
flag: number;
|
|
2079
|
+
wikiDataId: string | null;
|
|
2080
|
+
};
|
|
2081
|
+
SystemStatesResponseDto: {
|
|
2082
|
+
total: number;
|
|
2083
|
+
data: components["schemas"]["StateDto"][];
|
|
2084
|
+
};
|
|
2025
2085
|
SystemExchangeRatesResponseDto: {
|
|
2026
2086
|
total: number;
|
|
2027
2087
|
data: components["schemas"]["ExchangeRateDto"][];
|
|
@@ -4315,6 +4375,34 @@ export interface operations {
|
|
|
4315
4375
|
};
|
|
4316
4376
|
};
|
|
4317
4377
|
};
|
|
4378
|
+
SystemController_states: {
|
|
4379
|
+
parameters: {
|
|
4380
|
+
query?: never;
|
|
4381
|
+
header?: never;
|
|
4382
|
+
path: {
|
|
4383
|
+
country_id: number;
|
|
4384
|
+
};
|
|
4385
|
+
cookie?: never;
|
|
4386
|
+
};
|
|
4387
|
+
requestBody?: never;
|
|
4388
|
+
responses: {
|
|
4389
|
+
200: {
|
|
4390
|
+
headers: {
|
|
4391
|
+
[name: string]: unknown;
|
|
4392
|
+
};
|
|
4393
|
+
content: {
|
|
4394
|
+
"application/json": components["schemas"]["SystemStatesResponseDto"];
|
|
4395
|
+
};
|
|
4396
|
+
};
|
|
4397
|
+
/** @description Invalid tenant */
|
|
4398
|
+
401: {
|
|
4399
|
+
headers: {
|
|
4400
|
+
[name: string]: unknown;
|
|
4401
|
+
};
|
|
4402
|
+
content?: never;
|
|
4403
|
+
};
|
|
4404
|
+
};
|
|
4405
|
+
};
|
|
4318
4406
|
SystemController_findAll: {
|
|
4319
4407
|
parameters: {
|
|
4320
4408
|
query: {
|
package/src/api/types/types.ts
CHANGED
|
@@ -457,6 +457,7 @@ export namespace API {
|
|
|
457
457
|
address: {
|
|
458
458
|
city: string;
|
|
459
459
|
country_id: number;
|
|
460
|
+
state_id: number;
|
|
460
461
|
postcode: string;
|
|
461
462
|
street1: string;
|
|
462
463
|
street2?: string;
|
|
@@ -1154,6 +1155,13 @@ export namespace API {
|
|
|
1154
1155
|
};
|
|
1155
1156
|
}
|
|
1156
1157
|
}
|
|
1158
|
+
export namespace States {
|
|
1159
|
+
export type State = components['schemas']['StateDto'];
|
|
1160
|
+
export namespace List {
|
|
1161
|
+
export type Request = operations['SystemController_states']['parameters']['path'];
|
|
1162
|
+
export type Response = operations['SystemController_states']['responses']['200']['content']['application/json'];
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1157
1165
|
}
|
|
1158
1166
|
export namespace Orders {
|
|
1159
1167
|
export namespace Create {
|