@devizovaburza/mdm-sdk 2.2.3 → 2.2.5-canary.2748d5db
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/v1/index.d.mts +245 -0
- package/dist/v1/index.d.ts +245 -0
- package/dist/v1/index.mjs +19 -5
- package/package.json +1 -1
package/dist/v1/index.d.mts
CHANGED
|
@@ -1681,6 +1681,7 @@ declare const partnerApi: OpenAPIHono<{
|
|
|
1681
1681
|
$put: {
|
|
1682
1682
|
input: {
|
|
1683
1683
|
param: {
|
|
1684
|
+
partyId: string;
|
|
1684
1685
|
id: string;
|
|
1685
1686
|
};
|
|
1686
1687
|
} & {
|
|
@@ -1750,6 +1751,7 @@ declare const partnerApi: OpenAPIHono<{
|
|
|
1750
1751
|
} | {
|
|
1751
1752
|
input: {
|
|
1752
1753
|
param: {
|
|
1754
|
+
partyId: string;
|
|
1753
1755
|
id: string;
|
|
1754
1756
|
};
|
|
1755
1757
|
} & {
|
|
@@ -1819,6 +1821,7 @@ declare const partnerApi: OpenAPIHono<{
|
|
|
1819
1821
|
} | {
|
|
1820
1822
|
input: {
|
|
1821
1823
|
param: {
|
|
1824
|
+
partyId: string;
|
|
1822
1825
|
id: string;
|
|
1823
1826
|
};
|
|
1824
1827
|
} & {
|
|
@@ -1934,6 +1937,75 @@ declare const partnerApi: OpenAPIHono<{
|
|
|
1934
1937
|
};
|
|
1935
1938
|
outputFormat: "json";
|
|
1936
1939
|
status: 200;
|
|
1940
|
+
} | {
|
|
1941
|
+
input: {
|
|
1942
|
+
param: {
|
|
1943
|
+
partyId: string;
|
|
1944
|
+
id: string;
|
|
1945
|
+
};
|
|
1946
|
+
} & {
|
|
1947
|
+
header: {
|
|
1948
|
+
'X-Idempotency-Key': string;
|
|
1949
|
+
'X-Signature': string;
|
|
1950
|
+
'X-Signature-Key': string;
|
|
1951
|
+
};
|
|
1952
|
+
} & {
|
|
1953
|
+
json: {
|
|
1954
|
+
aml: {
|
|
1955
|
+
id: string;
|
|
1956
|
+
estTxsVolumeMonth: "UP_TO_1M" | "1M_TO_5M" | "OVER_5M";
|
|
1957
|
+
estTxsVolumeYear: "LESS_THAN_12M" | "12M_TO_50M" | "OVER_50M";
|
|
1958
|
+
tradingCountries: ("CZ" | "EU" | "OUTSIDE_EU")[];
|
|
1959
|
+
tradingSide: "SELL" | "BUY" | "BOTH";
|
|
1960
|
+
acceptedAMLTermsAndConditions: boolean;
|
|
1961
|
+
partyId?: string | undefined;
|
|
1962
|
+
internalId?: string | undefined;
|
|
1963
|
+
sourceOfWealth?: {
|
|
1964
|
+
incomeSources: ("OTHER" | "EMPLOYMENT" | "PENSION" | "SAVINGS" | "INHERITANCE" | "INVESTMENTS" | "HOUSE_SALE" | "CAR_SALE" | "AUCTION_SALE")[];
|
|
1965
|
+
incomeSourceOther: string | null;
|
|
1966
|
+
monthlyIncome: "UP_TO_40K" | "40K_TO_80K" | "OVER_80K";
|
|
1967
|
+
employer: string | null;
|
|
1968
|
+
employerCountry: "IM" | "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW" | null;
|
|
1969
|
+
} | {
|
|
1970
|
+
financialFundsSources: ("OTHER" | "INVESTMENTS" | "BUSINESS_REVENUE" | "LOAN")[];
|
|
1971
|
+
financialFundsSourceOther: string | null;
|
|
1972
|
+
mainBusinessSubjects: ("R01" | "R02" | "R03" | "R04" | "R05" | "R06" | "R07" | "R08" | "R09" | "R10" | "R11" | "R12" | "R13" | "R14" | "R15" | "R16" | "R17" | "R18" | "R19" | "R20" | "R21" | "R22" | "R23" | "R24" | "R25" | "R26" | "R27" | "R28" | "R29" | "R30" | "R31" | "R32" | "R33" | "R34" | "R35" | "R36" | "R37" | "R38" | "R39" | "R40" | "R41" | "V01" | "V02" | "V03" | "V04" | "V05" | "V06" | "V07" | "V08" | "V09" | "V10" | "V11" | "V12" | "V13" | "V14" | "V15" | "V16" | "V17" | "V18" | "V19" | "V20" | "V21" | "V22" | "V23" | "V24" | "V25" | "V26" | "V27" | "V28" | "V29" | "V30" | "V31" | "V32" | "V33" | "K01" | "K02" | "K03" | "K04" | "K05" | "K06" | "K07" | "K08" | "K09" | "K10" | "K11" | "K12" | "K13" | "K14" | "K15" | "K16" | "K17" | "K18" | "K19" | "K20" | "K21" | "D01" | "D02" | "D03" | "D04" | "D05" | "D06" | "D07" | "D08" | "D09" | "D10" | "D11" | "D12" | "D13" | "D14" | "D15" | "D16" | "D17" | "D18" | "D19" | "D20" | "D21" | "D22" | "D23" | "D24" | "D25" | "D26" | "D27" | "D28" | "D29" | "D30" | "D31" | "D32" | "D33" | "D34" | "D35" | "D36" | "D37" | "D38" | "D39" | "D40" | "D41" | "D42" | "D43" | "D44" | "D45" | "D46" | "D47" | "D48" | "D49" | "D50" | "D51" | "D52" | "D53" | "D55" | "D56" | "D57" | "D58" | "D59" | "D60" | "D61" | "D62" | "D63" | "D64" | "D65" | "D66" | "D67" | "D68" | "D69" | "D70" | "D71" | "D72" | "D73" | "D74" | "D75" | "D76" | "D77" | "D78" | "D79" | "D80" | "D81" | "D82")[];
|
|
1973
|
+
companyTurnover: "LESS_THAN_50M" | "50M_TO_100M" | "OVER_100M";
|
|
1974
|
+
operatingCountries: ("CZ" | "EU" | "OUTSIDE_EU")[];
|
|
1975
|
+
operatingCountriesOther: ("IM" | "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[] | null;
|
|
1976
|
+
businessPartners: {
|
|
1977
|
+
name: string;
|
|
1978
|
+
country: "IM" | "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
|
|
1979
|
+
cooperationReason: string | null;
|
|
1980
|
+
}[] | null;
|
|
1981
|
+
businessActivitiesNote: string | null;
|
|
1982
|
+
} | undefined;
|
|
1983
|
+
yearlyIncome?: "UP_TO_40K" | "40K_TO_80K" | "OVER_80K" | "LESS_THAN_50M" | "50M_TO_100M" | "OVER_100M" | undefined;
|
|
1984
|
+
sourceOfIncome?: ("OTHER" | "EMPLOYMENT" | "PENSION" | "SAVINGS" | "INHERITANCE" | "INVESTMENTS" | "HOUSE_SALE" | "CAR_SALE" | "AUCTION_SALE")[] | undefined;
|
|
1985
|
+
incomeSourceOther?: string | undefined;
|
|
1986
|
+
servicePurposes?: ("OTHER" | "INVESTMENTS" | "PURCHASE_OF_GOODS_AND_SERVICES" | "PAYMENTS_TO_CUSTOMERS" | "PAYMENTS_TO_SUPPLIERS" | "FOREIGN_INVESTMENTS")[] | undefined;
|
|
1987
|
+
servicePurposesOther?: string | undefined;
|
|
1988
|
+
taxDomicile?: "CZ" | "US" | "OTHER" | "EU" | undefined;
|
|
1989
|
+
taxDomicileCountry?: "IM" | "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW" | undefined;
|
|
1990
|
+
transactionType?: string | undefined;
|
|
1991
|
+
transactionTypeExpiry?: unknown;
|
|
1992
|
+
isDistraint?: boolean | undefined;
|
|
1993
|
+
estTxsCountMonth?: number | undefined;
|
|
1994
|
+
tradingCountriesOther?: ("IM" | "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[] | undefined;
|
|
1995
|
+
signatureMethod?: "IN_PERSON" | "REMOTE" | "COURIER" | "POWER_OF_ATTORNEY" | undefined;
|
|
1996
|
+
existencePeriod?: "OVER_24_MONTHS" | "OVER_16_MONTHS" | "LESS_THAN_12_MONTHS" | "LESS_THAN_6_MONTHS" | undefined;
|
|
1997
|
+
reputation?: "NO_NEGATIVE_RECORDS" | "BUSINESS_INCREASES_RISK" | "NEGATIVE_RECORDS" | "SANCTIONS_LIST_HIT" | undefined;
|
|
1998
|
+
riskBusinessAreas?: ("PAWN_SHOPS" | "USED_CAR_DEALERS" | "CASINOS" | "REAL_ESTATE_AGENCIES" | "PRECIOUS_METALS_AND_GEMS" | "WEAPONS_AND_AMMUNITION" | "NON_BANK_CREDIT_INSTITUTIONS" | "CURRENCY_EXCHANGE" | "VIRTUAL_ASSET_SERVICES")[] | undefined;
|
|
1999
|
+
riskLevel?: "LOW" | "MEDIUM" | "HIGH" | "UNACCEPTABLE" | "UNVERIFIED" | "UNCLASSIFIED" | undefined;
|
|
2000
|
+
kycStatus?: "UNVERIFIED" | "NOT_APPROVED" | "VERIFIED" | "REJECTED" | undefined;
|
|
2001
|
+
};
|
|
2002
|
+
};
|
|
2003
|
+
};
|
|
2004
|
+
output: {
|
|
2005
|
+
message: string;
|
|
2006
|
+
};
|
|
2007
|
+
outputFormat: "json";
|
|
2008
|
+
status: 400;
|
|
1937
2009
|
};
|
|
1938
2010
|
};
|
|
1939
2011
|
}, "/v1/parties/:partyId/aml/:id"> & hono_types.MergeSchemaPath<{
|
|
@@ -3730,6 +3802,179 @@ declare const partnerApi: OpenAPIHono<{
|
|
|
3730
3802
|
};
|
|
3731
3803
|
};
|
|
3732
3804
|
}, "/v1/parties"> & hono_types.MergeSchemaPath<{
|
|
3805
|
+
"/": {
|
|
3806
|
+
$get: {
|
|
3807
|
+
input: {
|
|
3808
|
+
query: {
|
|
3809
|
+
since?: string | undefined;
|
|
3810
|
+
until?: string | undefined;
|
|
3811
|
+
entityType?: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client" | undefined;
|
|
3812
|
+
operation?: "INSERT" | "UPDATE" | "DELETE" | undefined;
|
|
3813
|
+
cursor?: string | undefined;
|
|
3814
|
+
limit?: unknown;
|
|
3815
|
+
};
|
|
3816
|
+
};
|
|
3817
|
+
output: {
|
|
3818
|
+
message: string;
|
|
3819
|
+
stackTrace?: string | undefined;
|
|
3820
|
+
};
|
|
3821
|
+
outputFormat: "json";
|
|
3822
|
+
status: 404;
|
|
3823
|
+
} | {
|
|
3824
|
+
input: {
|
|
3825
|
+
query: {
|
|
3826
|
+
since?: string | undefined;
|
|
3827
|
+
until?: string | undefined;
|
|
3828
|
+
entityType?: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client" | undefined;
|
|
3829
|
+
operation?: "INSERT" | "UPDATE" | "DELETE" | undefined;
|
|
3830
|
+
cursor?: string | undefined;
|
|
3831
|
+
limit?: unknown;
|
|
3832
|
+
};
|
|
3833
|
+
};
|
|
3834
|
+
output: {
|
|
3835
|
+
message: string;
|
|
3836
|
+
stackTrace?: string | undefined;
|
|
3837
|
+
};
|
|
3838
|
+
outputFormat: "json";
|
|
3839
|
+
status: 500;
|
|
3840
|
+
} | {
|
|
3841
|
+
input: {
|
|
3842
|
+
query: {
|
|
3843
|
+
since?: string | undefined;
|
|
3844
|
+
until?: string | undefined;
|
|
3845
|
+
entityType?: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client" | undefined;
|
|
3846
|
+
operation?: "INSERT" | "UPDATE" | "DELETE" | undefined;
|
|
3847
|
+
cursor?: string | undefined;
|
|
3848
|
+
limit?: unknown;
|
|
3849
|
+
};
|
|
3850
|
+
};
|
|
3851
|
+
output: {
|
|
3852
|
+
message: string;
|
|
3853
|
+
items: {
|
|
3854
|
+
id: string;
|
|
3855
|
+
partyId: string;
|
|
3856
|
+
entityType: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client";
|
|
3857
|
+
entityId: string;
|
|
3858
|
+
operation: "INSERT" | "UPDATE" | "DELETE";
|
|
3859
|
+
diff: {
|
|
3860
|
+
path: (string | number)[];
|
|
3861
|
+
before: hono_utils_types.JSONValue;
|
|
3862
|
+
after: hono_utils_types.JSONValue;
|
|
3863
|
+
}[];
|
|
3864
|
+
snapshotBefore: {
|
|
3865
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
3866
|
+
};
|
|
3867
|
+
snapshotAfter: {
|
|
3868
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
3869
|
+
};
|
|
3870
|
+
correlationId: string | null;
|
|
3871
|
+
internalId: string | null;
|
|
3872
|
+
createdAt: string | null;
|
|
3873
|
+
updatedAt: string | null;
|
|
3874
|
+
createdBy: string | null;
|
|
3875
|
+
updatedBy: string | null;
|
|
3876
|
+
}[];
|
|
3877
|
+
nextCursor: string | null;
|
|
3878
|
+
retentionWarning?: string | undefined;
|
|
3879
|
+
};
|
|
3880
|
+
outputFormat: "json";
|
|
3881
|
+
status: 200;
|
|
3882
|
+
};
|
|
3883
|
+
};
|
|
3884
|
+
}, "/v1/changes"> & hono_types.MergeSchemaPath<{
|
|
3885
|
+
"/": {
|
|
3886
|
+
$get: {
|
|
3887
|
+
input: {
|
|
3888
|
+
param: {
|
|
3889
|
+
partyId: string;
|
|
3890
|
+
};
|
|
3891
|
+
} & {
|
|
3892
|
+
query: {
|
|
3893
|
+
since?: string | undefined;
|
|
3894
|
+
until?: string | undefined;
|
|
3895
|
+
entityType?: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client" | undefined;
|
|
3896
|
+
operation?: "INSERT" | "UPDATE" | "DELETE" | undefined;
|
|
3897
|
+
page?: unknown;
|
|
3898
|
+
limit?: unknown;
|
|
3899
|
+
};
|
|
3900
|
+
};
|
|
3901
|
+
output: {
|
|
3902
|
+
message: string;
|
|
3903
|
+
stackTrace?: string | undefined;
|
|
3904
|
+
};
|
|
3905
|
+
outputFormat: "json";
|
|
3906
|
+
status: 404;
|
|
3907
|
+
} | {
|
|
3908
|
+
input: {
|
|
3909
|
+
param: {
|
|
3910
|
+
partyId: string;
|
|
3911
|
+
};
|
|
3912
|
+
} & {
|
|
3913
|
+
query: {
|
|
3914
|
+
since?: string | undefined;
|
|
3915
|
+
until?: string | undefined;
|
|
3916
|
+
entityType?: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client" | undefined;
|
|
3917
|
+
operation?: "INSERT" | "UPDATE" | "DELETE" | undefined;
|
|
3918
|
+
page?: unknown;
|
|
3919
|
+
limit?: unknown;
|
|
3920
|
+
};
|
|
3921
|
+
};
|
|
3922
|
+
output: {
|
|
3923
|
+
message: string;
|
|
3924
|
+
stackTrace?: string | undefined;
|
|
3925
|
+
};
|
|
3926
|
+
outputFormat: "json";
|
|
3927
|
+
status: 500;
|
|
3928
|
+
} | {
|
|
3929
|
+
input: {
|
|
3930
|
+
param: {
|
|
3931
|
+
partyId: string;
|
|
3932
|
+
};
|
|
3933
|
+
} & {
|
|
3934
|
+
query: {
|
|
3935
|
+
since?: string | undefined;
|
|
3936
|
+
until?: string | undefined;
|
|
3937
|
+
entityType?: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client" | undefined;
|
|
3938
|
+
operation?: "INSERT" | "UPDATE" | "DELETE" | undefined;
|
|
3939
|
+
page?: unknown;
|
|
3940
|
+
limit?: unknown;
|
|
3941
|
+
};
|
|
3942
|
+
};
|
|
3943
|
+
output: {
|
|
3944
|
+
message: string;
|
|
3945
|
+
items: {
|
|
3946
|
+
id: string;
|
|
3947
|
+
partyId: string;
|
|
3948
|
+
entityType: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client";
|
|
3949
|
+
entityId: string;
|
|
3950
|
+
operation: "INSERT" | "UPDATE" | "DELETE";
|
|
3951
|
+
diff: {
|
|
3952
|
+
path: (string | number)[];
|
|
3953
|
+
before: hono_utils_types.JSONValue;
|
|
3954
|
+
after: hono_utils_types.JSONValue;
|
|
3955
|
+
}[];
|
|
3956
|
+
snapshotBefore: {
|
|
3957
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
3958
|
+
};
|
|
3959
|
+
snapshotAfter: {
|
|
3960
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
3961
|
+
};
|
|
3962
|
+
correlationId: string | null;
|
|
3963
|
+
internalId: string | null;
|
|
3964
|
+
createdAt: string | null;
|
|
3965
|
+
updatedAt: string | null;
|
|
3966
|
+
createdBy: string | null;
|
|
3967
|
+
updatedBy: string | null;
|
|
3968
|
+
}[];
|
|
3969
|
+
total: number;
|
|
3970
|
+
page: number;
|
|
3971
|
+
limit: number;
|
|
3972
|
+
};
|
|
3973
|
+
outputFormat: "json";
|
|
3974
|
+
status: 200;
|
|
3975
|
+
};
|
|
3976
|
+
};
|
|
3977
|
+
}, "/v1/parties/:partyId/changes"> & hono_types.MergeSchemaPath<{
|
|
3733
3978
|
"/": {
|
|
3734
3979
|
$put: {
|
|
3735
3980
|
input: {
|
package/dist/v1/index.d.ts
CHANGED
|
@@ -1681,6 +1681,7 @@ declare const partnerApi: OpenAPIHono<{
|
|
|
1681
1681
|
$put: {
|
|
1682
1682
|
input: {
|
|
1683
1683
|
param: {
|
|
1684
|
+
partyId: string;
|
|
1684
1685
|
id: string;
|
|
1685
1686
|
};
|
|
1686
1687
|
} & {
|
|
@@ -1750,6 +1751,7 @@ declare const partnerApi: OpenAPIHono<{
|
|
|
1750
1751
|
} | {
|
|
1751
1752
|
input: {
|
|
1752
1753
|
param: {
|
|
1754
|
+
partyId: string;
|
|
1753
1755
|
id: string;
|
|
1754
1756
|
};
|
|
1755
1757
|
} & {
|
|
@@ -1819,6 +1821,7 @@ declare const partnerApi: OpenAPIHono<{
|
|
|
1819
1821
|
} | {
|
|
1820
1822
|
input: {
|
|
1821
1823
|
param: {
|
|
1824
|
+
partyId: string;
|
|
1822
1825
|
id: string;
|
|
1823
1826
|
};
|
|
1824
1827
|
} & {
|
|
@@ -1934,6 +1937,75 @@ declare const partnerApi: OpenAPIHono<{
|
|
|
1934
1937
|
};
|
|
1935
1938
|
outputFormat: "json";
|
|
1936
1939
|
status: 200;
|
|
1940
|
+
} | {
|
|
1941
|
+
input: {
|
|
1942
|
+
param: {
|
|
1943
|
+
partyId: string;
|
|
1944
|
+
id: string;
|
|
1945
|
+
};
|
|
1946
|
+
} & {
|
|
1947
|
+
header: {
|
|
1948
|
+
'X-Idempotency-Key': string;
|
|
1949
|
+
'X-Signature': string;
|
|
1950
|
+
'X-Signature-Key': string;
|
|
1951
|
+
};
|
|
1952
|
+
} & {
|
|
1953
|
+
json: {
|
|
1954
|
+
aml: {
|
|
1955
|
+
id: string;
|
|
1956
|
+
estTxsVolumeMonth: "UP_TO_1M" | "1M_TO_5M" | "OVER_5M";
|
|
1957
|
+
estTxsVolumeYear: "LESS_THAN_12M" | "12M_TO_50M" | "OVER_50M";
|
|
1958
|
+
tradingCountries: ("CZ" | "EU" | "OUTSIDE_EU")[];
|
|
1959
|
+
tradingSide: "SELL" | "BUY" | "BOTH";
|
|
1960
|
+
acceptedAMLTermsAndConditions: boolean;
|
|
1961
|
+
partyId?: string | undefined;
|
|
1962
|
+
internalId?: string | undefined;
|
|
1963
|
+
sourceOfWealth?: {
|
|
1964
|
+
incomeSources: ("OTHER" | "EMPLOYMENT" | "PENSION" | "SAVINGS" | "INHERITANCE" | "INVESTMENTS" | "HOUSE_SALE" | "CAR_SALE" | "AUCTION_SALE")[];
|
|
1965
|
+
incomeSourceOther: string | null;
|
|
1966
|
+
monthlyIncome: "UP_TO_40K" | "40K_TO_80K" | "OVER_80K";
|
|
1967
|
+
employer: string | null;
|
|
1968
|
+
employerCountry: "IM" | "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW" | null;
|
|
1969
|
+
} | {
|
|
1970
|
+
financialFundsSources: ("OTHER" | "INVESTMENTS" | "BUSINESS_REVENUE" | "LOAN")[];
|
|
1971
|
+
financialFundsSourceOther: string | null;
|
|
1972
|
+
mainBusinessSubjects: ("R01" | "R02" | "R03" | "R04" | "R05" | "R06" | "R07" | "R08" | "R09" | "R10" | "R11" | "R12" | "R13" | "R14" | "R15" | "R16" | "R17" | "R18" | "R19" | "R20" | "R21" | "R22" | "R23" | "R24" | "R25" | "R26" | "R27" | "R28" | "R29" | "R30" | "R31" | "R32" | "R33" | "R34" | "R35" | "R36" | "R37" | "R38" | "R39" | "R40" | "R41" | "V01" | "V02" | "V03" | "V04" | "V05" | "V06" | "V07" | "V08" | "V09" | "V10" | "V11" | "V12" | "V13" | "V14" | "V15" | "V16" | "V17" | "V18" | "V19" | "V20" | "V21" | "V22" | "V23" | "V24" | "V25" | "V26" | "V27" | "V28" | "V29" | "V30" | "V31" | "V32" | "V33" | "K01" | "K02" | "K03" | "K04" | "K05" | "K06" | "K07" | "K08" | "K09" | "K10" | "K11" | "K12" | "K13" | "K14" | "K15" | "K16" | "K17" | "K18" | "K19" | "K20" | "K21" | "D01" | "D02" | "D03" | "D04" | "D05" | "D06" | "D07" | "D08" | "D09" | "D10" | "D11" | "D12" | "D13" | "D14" | "D15" | "D16" | "D17" | "D18" | "D19" | "D20" | "D21" | "D22" | "D23" | "D24" | "D25" | "D26" | "D27" | "D28" | "D29" | "D30" | "D31" | "D32" | "D33" | "D34" | "D35" | "D36" | "D37" | "D38" | "D39" | "D40" | "D41" | "D42" | "D43" | "D44" | "D45" | "D46" | "D47" | "D48" | "D49" | "D50" | "D51" | "D52" | "D53" | "D55" | "D56" | "D57" | "D58" | "D59" | "D60" | "D61" | "D62" | "D63" | "D64" | "D65" | "D66" | "D67" | "D68" | "D69" | "D70" | "D71" | "D72" | "D73" | "D74" | "D75" | "D76" | "D77" | "D78" | "D79" | "D80" | "D81" | "D82")[];
|
|
1973
|
+
companyTurnover: "LESS_THAN_50M" | "50M_TO_100M" | "OVER_100M";
|
|
1974
|
+
operatingCountries: ("CZ" | "EU" | "OUTSIDE_EU")[];
|
|
1975
|
+
operatingCountriesOther: ("IM" | "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[] | null;
|
|
1976
|
+
businessPartners: {
|
|
1977
|
+
name: string;
|
|
1978
|
+
country: "IM" | "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
|
|
1979
|
+
cooperationReason: string | null;
|
|
1980
|
+
}[] | null;
|
|
1981
|
+
businessActivitiesNote: string | null;
|
|
1982
|
+
} | undefined;
|
|
1983
|
+
yearlyIncome?: "UP_TO_40K" | "40K_TO_80K" | "OVER_80K" | "LESS_THAN_50M" | "50M_TO_100M" | "OVER_100M" | undefined;
|
|
1984
|
+
sourceOfIncome?: ("OTHER" | "EMPLOYMENT" | "PENSION" | "SAVINGS" | "INHERITANCE" | "INVESTMENTS" | "HOUSE_SALE" | "CAR_SALE" | "AUCTION_SALE")[] | undefined;
|
|
1985
|
+
incomeSourceOther?: string | undefined;
|
|
1986
|
+
servicePurposes?: ("OTHER" | "INVESTMENTS" | "PURCHASE_OF_GOODS_AND_SERVICES" | "PAYMENTS_TO_CUSTOMERS" | "PAYMENTS_TO_SUPPLIERS" | "FOREIGN_INVESTMENTS")[] | undefined;
|
|
1987
|
+
servicePurposesOther?: string | undefined;
|
|
1988
|
+
taxDomicile?: "CZ" | "US" | "OTHER" | "EU" | undefined;
|
|
1989
|
+
taxDomicileCountry?: "IM" | "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW" | undefined;
|
|
1990
|
+
transactionType?: string | undefined;
|
|
1991
|
+
transactionTypeExpiry?: unknown;
|
|
1992
|
+
isDistraint?: boolean | undefined;
|
|
1993
|
+
estTxsCountMonth?: number | undefined;
|
|
1994
|
+
tradingCountriesOther?: ("IM" | "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[] | undefined;
|
|
1995
|
+
signatureMethod?: "IN_PERSON" | "REMOTE" | "COURIER" | "POWER_OF_ATTORNEY" | undefined;
|
|
1996
|
+
existencePeriod?: "OVER_24_MONTHS" | "OVER_16_MONTHS" | "LESS_THAN_12_MONTHS" | "LESS_THAN_6_MONTHS" | undefined;
|
|
1997
|
+
reputation?: "NO_NEGATIVE_RECORDS" | "BUSINESS_INCREASES_RISK" | "NEGATIVE_RECORDS" | "SANCTIONS_LIST_HIT" | undefined;
|
|
1998
|
+
riskBusinessAreas?: ("PAWN_SHOPS" | "USED_CAR_DEALERS" | "CASINOS" | "REAL_ESTATE_AGENCIES" | "PRECIOUS_METALS_AND_GEMS" | "WEAPONS_AND_AMMUNITION" | "NON_BANK_CREDIT_INSTITUTIONS" | "CURRENCY_EXCHANGE" | "VIRTUAL_ASSET_SERVICES")[] | undefined;
|
|
1999
|
+
riskLevel?: "LOW" | "MEDIUM" | "HIGH" | "UNACCEPTABLE" | "UNVERIFIED" | "UNCLASSIFIED" | undefined;
|
|
2000
|
+
kycStatus?: "UNVERIFIED" | "NOT_APPROVED" | "VERIFIED" | "REJECTED" | undefined;
|
|
2001
|
+
};
|
|
2002
|
+
};
|
|
2003
|
+
};
|
|
2004
|
+
output: {
|
|
2005
|
+
message: string;
|
|
2006
|
+
};
|
|
2007
|
+
outputFormat: "json";
|
|
2008
|
+
status: 400;
|
|
1937
2009
|
};
|
|
1938
2010
|
};
|
|
1939
2011
|
}, "/v1/parties/:partyId/aml/:id"> & hono_types.MergeSchemaPath<{
|
|
@@ -3730,6 +3802,179 @@ declare const partnerApi: OpenAPIHono<{
|
|
|
3730
3802
|
};
|
|
3731
3803
|
};
|
|
3732
3804
|
}, "/v1/parties"> & hono_types.MergeSchemaPath<{
|
|
3805
|
+
"/": {
|
|
3806
|
+
$get: {
|
|
3807
|
+
input: {
|
|
3808
|
+
query: {
|
|
3809
|
+
since?: string | undefined;
|
|
3810
|
+
until?: string | undefined;
|
|
3811
|
+
entityType?: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client" | undefined;
|
|
3812
|
+
operation?: "INSERT" | "UPDATE" | "DELETE" | undefined;
|
|
3813
|
+
cursor?: string | undefined;
|
|
3814
|
+
limit?: unknown;
|
|
3815
|
+
};
|
|
3816
|
+
};
|
|
3817
|
+
output: {
|
|
3818
|
+
message: string;
|
|
3819
|
+
stackTrace?: string | undefined;
|
|
3820
|
+
};
|
|
3821
|
+
outputFormat: "json";
|
|
3822
|
+
status: 404;
|
|
3823
|
+
} | {
|
|
3824
|
+
input: {
|
|
3825
|
+
query: {
|
|
3826
|
+
since?: string | undefined;
|
|
3827
|
+
until?: string | undefined;
|
|
3828
|
+
entityType?: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client" | undefined;
|
|
3829
|
+
operation?: "INSERT" | "UPDATE" | "DELETE" | undefined;
|
|
3830
|
+
cursor?: string | undefined;
|
|
3831
|
+
limit?: unknown;
|
|
3832
|
+
};
|
|
3833
|
+
};
|
|
3834
|
+
output: {
|
|
3835
|
+
message: string;
|
|
3836
|
+
stackTrace?: string | undefined;
|
|
3837
|
+
};
|
|
3838
|
+
outputFormat: "json";
|
|
3839
|
+
status: 500;
|
|
3840
|
+
} | {
|
|
3841
|
+
input: {
|
|
3842
|
+
query: {
|
|
3843
|
+
since?: string | undefined;
|
|
3844
|
+
until?: string | undefined;
|
|
3845
|
+
entityType?: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client" | undefined;
|
|
3846
|
+
operation?: "INSERT" | "UPDATE" | "DELETE" | undefined;
|
|
3847
|
+
cursor?: string | undefined;
|
|
3848
|
+
limit?: unknown;
|
|
3849
|
+
};
|
|
3850
|
+
};
|
|
3851
|
+
output: {
|
|
3852
|
+
message: string;
|
|
3853
|
+
items: {
|
|
3854
|
+
id: string;
|
|
3855
|
+
partyId: string;
|
|
3856
|
+
entityType: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client";
|
|
3857
|
+
entityId: string;
|
|
3858
|
+
operation: "INSERT" | "UPDATE" | "DELETE";
|
|
3859
|
+
diff: {
|
|
3860
|
+
path: (string | number)[];
|
|
3861
|
+
before: hono_utils_types.JSONValue;
|
|
3862
|
+
after: hono_utils_types.JSONValue;
|
|
3863
|
+
}[];
|
|
3864
|
+
snapshotBefore: {
|
|
3865
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
3866
|
+
};
|
|
3867
|
+
snapshotAfter: {
|
|
3868
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
3869
|
+
};
|
|
3870
|
+
correlationId: string | null;
|
|
3871
|
+
internalId: string | null;
|
|
3872
|
+
createdAt: string | null;
|
|
3873
|
+
updatedAt: string | null;
|
|
3874
|
+
createdBy: string | null;
|
|
3875
|
+
updatedBy: string | null;
|
|
3876
|
+
}[];
|
|
3877
|
+
nextCursor: string | null;
|
|
3878
|
+
retentionWarning?: string | undefined;
|
|
3879
|
+
};
|
|
3880
|
+
outputFormat: "json";
|
|
3881
|
+
status: 200;
|
|
3882
|
+
};
|
|
3883
|
+
};
|
|
3884
|
+
}, "/v1/changes"> & hono_types.MergeSchemaPath<{
|
|
3885
|
+
"/": {
|
|
3886
|
+
$get: {
|
|
3887
|
+
input: {
|
|
3888
|
+
param: {
|
|
3889
|
+
partyId: string;
|
|
3890
|
+
};
|
|
3891
|
+
} & {
|
|
3892
|
+
query: {
|
|
3893
|
+
since?: string | undefined;
|
|
3894
|
+
until?: string | undefined;
|
|
3895
|
+
entityType?: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client" | undefined;
|
|
3896
|
+
operation?: "INSERT" | "UPDATE" | "DELETE" | undefined;
|
|
3897
|
+
page?: unknown;
|
|
3898
|
+
limit?: unknown;
|
|
3899
|
+
};
|
|
3900
|
+
};
|
|
3901
|
+
output: {
|
|
3902
|
+
message: string;
|
|
3903
|
+
stackTrace?: string | undefined;
|
|
3904
|
+
};
|
|
3905
|
+
outputFormat: "json";
|
|
3906
|
+
status: 404;
|
|
3907
|
+
} | {
|
|
3908
|
+
input: {
|
|
3909
|
+
param: {
|
|
3910
|
+
partyId: string;
|
|
3911
|
+
};
|
|
3912
|
+
} & {
|
|
3913
|
+
query: {
|
|
3914
|
+
since?: string | undefined;
|
|
3915
|
+
until?: string | undefined;
|
|
3916
|
+
entityType?: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client" | undefined;
|
|
3917
|
+
operation?: "INSERT" | "UPDATE" | "DELETE" | undefined;
|
|
3918
|
+
page?: unknown;
|
|
3919
|
+
limit?: unknown;
|
|
3920
|
+
};
|
|
3921
|
+
};
|
|
3922
|
+
output: {
|
|
3923
|
+
message: string;
|
|
3924
|
+
stackTrace?: string | undefined;
|
|
3925
|
+
};
|
|
3926
|
+
outputFormat: "json";
|
|
3927
|
+
status: 500;
|
|
3928
|
+
} | {
|
|
3929
|
+
input: {
|
|
3930
|
+
param: {
|
|
3931
|
+
partyId: string;
|
|
3932
|
+
};
|
|
3933
|
+
} & {
|
|
3934
|
+
query: {
|
|
3935
|
+
since?: string | undefined;
|
|
3936
|
+
until?: string | undefined;
|
|
3937
|
+
entityType?: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client" | undefined;
|
|
3938
|
+
operation?: "INSERT" | "UPDATE" | "DELETE" | undefined;
|
|
3939
|
+
page?: unknown;
|
|
3940
|
+
limit?: unknown;
|
|
3941
|
+
};
|
|
3942
|
+
};
|
|
3943
|
+
output: {
|
|
3944
|
+
message: string;
|
|
3945
|
+
items: {
|
|
3946
|
+
id: string;
|
|
3947
|
+
partyId: string;
|
|
3948
|
+
entityType: "party" | "address" | "aml" | "individual" | "organization" | "contact" | "bank-account" | "id-document" | "recipient" | "tax-residence" | "party-relationship" | "party-product" | "trader-client";
|
|
3949
|
+
entityId: string;
|
|
3950
|
+
operation: "INSERT" | "UPDATE" | "DELETE";
|
|
3951
|
+
diff: {
|
|
3952
|
+
path: (string | number)[];
|
|
3953
|
+
before: hono_utils_types.JSONValue;
|
|
3954
|
+
after: hono_utils_types.JSONValue;
|
|
3955
|
+
}[];
|
|
3956
|
+
snapshotBefore: {
|
|
3957
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
3958
|
+
};
|
|
3959
|
+
snapshotAfter: {
|
|
3960
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
3961
|
+
};
|
|
3962
|
+
correlationId: string | null;
|
|
3963
|
+
internalId: string | null;
|
|
3964
|
+
createdAt: string | null;
|
|
3965
|
+
updatedAt: string | null;
|
|
3966
|
+
createdBy: string | null;
|
|
3967
|
+
updatedBy: string | null;
|
|
3968
|
+
}[];
|
|
3969
|
+
total: number;
|
|
3970
|
+
page: number;
|
|
3971
|
+
limit: number;
|
|
3972
|
+
};
|
|
3973
|
+
outputFormat: "json";
|
|
3974
|
+
status: 200;
|
|
3975
|
+
};
|
|
3976
|
+
};
|
|
3977
|
+
}, "/v1/parties/:partyId/changes"> & hono_types.MergeSchemaPath<{
|
|
3733
3978
|
"/": {
|
|
3734
3979
|
$put: {
|
|
3735
3980
|
input: {
|
package/dist/v1/index.mjs
CHANGED
|
@@ -355,13 +355,13 @@ function logAuditEvent(context, input) {
|
|
|
355
355
|
);
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
const requireRoutableAccount = (data, ctx) => {
|
|
358
|
+
const requireRoutableAccount = (data, ctx, basePath = []) => {
|
|
359
359
|
if (data.iban?.trim()) return;
|
|
360
360
|
if (!data.number?.trim()) {
|
|
361
361
|
ctx.addIssue({
|
|
362
362
|
code: "custom",
|
|
363
363
|
message: "Vypl\u0148te IBAN, nebo \u010D\xEDslo \xFA\u010Dtu spolu se SWIFT/BIC (alespo\u0148 jedna varianta je povinn\xE1)",
|
|
364
|
-
path: ["number"]
|
|
364
|
+
path: [...basePath, "number"]
|
|
365
365
|
});
|
|
366
366
|
return;
|
|
367
367
|
}
|
|
@@ -369,7 +369,7 @@ const requireRoutableAccount = (data, ctx) => {
|
|
|
369
369
|
ctx.addIssue({
|
|
370
370
|
code: "custom",
|
|
371
371
|
message: "Pro \xFA\u010Det bez IBAN je nutn\xE9 vyplnit SWIFT/BIC (banka p\u0159\xEDjemce ho pot\u0159ebuje pro sm\u011Brov\xE1n\xED platby)",
|
|
372
|
-
path: ["swiftBic"]
|
|
372
|
+
path: [...basePath, "swiftBic"]
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
};
|
|
@@ -502,7 +502,7 @@ const bankAccountInputSchema = updateBankAccountSchema.required({
|
|
|
502
502
|
holderName: true,
|
|
503
503
|
currency: true,
|
|
504
504
|
countryCode: true
|
|
505
|
-
}).omit({ id: true, partyId: true })
|
|
505
|
+
}).omit({ id: true, partyId: true });
|
|
506
506
|
const disponentSchema = z.object({
|
|
507
507
|
partyType: z.literal("INDIVIDUAL"),
|
|
508
508
|
data: individualInsertSchema
|
|
@@ -665,6 +665,13 @@ const createPartyInputSchema = z.object({
|
|
|
665
665
|
).refine((b) => b.party.blockReason !== "OTHER" || !!b.party.blockReasonNote, {
|
|
666
666
|
message: "blockReasonNote is required when blockReason is OTHER",
|
|
667
667
|
path: ["party", "blockReasonNote"]
|
|
668
|
+
}).superRefine((b, ctx) => {
|
|
669
|
+
b.bankAccounts.forEach(
|
|
670
|
+
(acc, i) => requireRoutableAccount(acc, ctx, ["bankAccounts", i])
|
|
671
|
+
);
|
|
672
|
+
b.recipients.forEach(
|
|
673
|
+
(acc, i) => requireRoutableAccount(acc, ctx, ["recipients", i])
|
|
674
|
+
);
|
|
668
675
|
});
|
|
669
676
|
const partyCreateOutputSchema = z.object({
|
|
670
677
|
customerStatus: z.enum(CUSTOMER_STATUS),
|
|
@@ -1059,7 +1066,7 @@ const syncBankAccountSchema = z.object({
|
|
|
1059
1066
|
countryCode: bankAccountMetadataSchema.shape.countryCode.nonoptional(),
|
|
1060
1067
|
id: z.uuid().optional(),
|
|
1061
1068
|
statementUri: z.string().optional()
|
|
1062
|
-
})
|
|
1069
|
+
});
|
|
1063
1070
|
const disponentIndividualSyncDataSchema = z.object({
|
|
1064
1071
|
id: z.uuid().optional(),
|
|
1065
1072
|
name: z.string(),
|
|
@@ -1243,6 +1250,13 @@ const partyUpdateInputSchema = z.object({
|
|
|
1243
1250
|
).refine((b) => b.party.blockReason !== "OTHER" || !!b.party.blockReasonNote, {
|
|
1244
1251
|
message: "blockReasonNote is required when blockReason is OTHER",
|
|
1245
1252
|
path: ["party", "blockReasonNote"]
|
|
1253
|
+
}).superRefine((b, ctx) => {
|
|
1254
|
+
b.bankAccounts?.forEach(
|
|
1255
|
+
(acc, i) => requireRoutableAccount(acc, ctx, ["bankAccounts", i])
|
|
1256
|
+
);
|
|
1257
|
+
b.recipients?.forEach(
|
|
1258
|
+
(acc, i) => requireRoutableAccount(acc, ctx, ["recipients", i])
|
|
1259
|
+
);
|
|
1246
1260
|
});
|
|
1247
1261
|
const updatePartyOuputSchema = z.object({
|
|
1248
1262
|
id: z.uuid(),
|