@riocrypto/common-server 1.0.626 → 1.0.629
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/build/{common-server/src/helpers → helpers}/get-platform-and-partner-fees.d.ts +1 -3
- package/package.json +1 -1
- package/build/common/src/types/business-user.d.ts +0 -30
- package/build/common/src/types/business-user.js +0 -2
- package/build/common/src/types/country.d.ts +0 -57
- package/build/common/src/types/country.js +0 -61
- package/build/common/src/types/kyc-status.d.ts +0 -7
- package/build/common/src/types/kyc-status.js +0 -11
- package/build/common/src/types/language.d.ts +0 -6
- package/build/common/src/types/language.js +0 -10
- package/build/common/src/types/platform-fee-range.d.ts +0 -5
- package/build/common/src/types/platform-fee-range.js +0 -2
- package/build/common/src/types/us-state.d.ts +0 -61
- package/build/common/src/types/us-state.js +0 -65
- package/build/common/src/types/user-attribute.d.ts +0 -10
- package/build/common/src/types/user-attribute.js +0 -14
- package/build/common/src/types/user-type.d.ts +0 -4
- package/build/common/src/types/user-type.js +0 -8
- package/build/common/src/types/user.d.ts +0 -30
- package/build/common/src/types/user.js +0 -2
- /package/build/{common-server/src/clients → clients}/bitstamp-client.d.ts +0 -0
- /package/build/{common-server/src/clients → clients}/bitstamp-client.js +0 -0
- /package/build/{common-server/src/clients → clients}/ccxt-client.d.ts +0 -0
- /package/build/{common-server/src/clients → clients}/ccxt-client.js +0 -0
- /package/build/{common-server/src/clients → clients}/currency-api-client.d.ts +0 -0
- /package/build/{common-server/src/clients → clients}/currency-api-client.js +0 -0
- /package/build/{common-server/src/clients → clients}/etherscan-client.d.ts +0 -0
- /package/build/{common-server/src/clients → clients}/etherscan-client.js +0 -0
- /package/build/{common-server/src/clients → clients}/fireblocks-client.d.ts +0 -0
- /package/build/{common-server/src/clients → clients}/fireblocks-client.js +0 -0
- /package/build/{common-server/src/clients → clients}/gcloud-storage-client.d.ts +0 -0
- /package/build/{common-server/src/clients → clients}/gcloud-storage-client.js +0 -0
- /package/build/{common-server/src/clients → clients}/gueno-client.d.ts +0 -0
- /package/build/{common-server/src/clients → clients}/gueno-client.js +0 -0
- /package/build/{common-server/src/clients → clients}/kapstar-client.d.ts +0 -0
- /package/build/{common-server/src/clients → clients}/kapstar-client.js +0 -0
- /package/build/{common-server/src/clients → clients}/kushki-client.d.ts +0 -0
- /package/build/{common-server/src/clients → clients}/kushki-client.js +0 -0
- /package/build/{common-server/src/clients → clients}/rio-client.d.ts +0 -0
- /package/build/{common-server/src/clients → clients}/rio-client.js +0 -0
- /package/build/{common-server/src/clients → clients}/secret-manager-client.d.ts +0 -0
- /package/build/{common-server/src/clients → clients}/secret-manager-client.js +0 -0
- /package/build/{common-server/src/clients → clients}/slack-client.d.ts +0 -0
- /package/build/{common-server/src/clients → clients}/slack-client.js +0 -0
- /package/build/{common-server/src/helpers → helpers}/get-platform-and-partner-fees.js +0 -0
- /package/build/{common-server/src/helpers → helpers}/get-user-helper.d.ts +0 -0
- /package/build/{common-server/src/helpers → helpers}/get-user-helper.js +0 -0
- /package/build/{common-server/src/index.d.ts → index.d.ts} +0 -0
- /package/build/{common-server/src/index.js → index.js} +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/authorize.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/authorize.js +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/current-admin-auth.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/current-admin-auth.js +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/current-auth.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/current-auth.js +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/error-handler.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/error-handler.js +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/get-order.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/get-order.js +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/get-partner.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/get-partner.js +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/get-user.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/get-user.js +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/require-admin-api-key.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/require-admin-api-key.js +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/require-auth.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/require-auth.js +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/require-priveleges.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/require-priveleges.js +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/validate-auth.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/validate-auth.js +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/validate-kyc.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/validate-kyc.js +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/validate-order.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/validate-order.js +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/validate-request.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/validate-request.js +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/verify-admin-api-key.d.ts +0 -0
- /package/build/{common-server/src/middlewares → middlewares}/verify-admin-api-key.js +0 -0
- /package/build/{common-server/src/models → models}/admin-auth.d.ts +0 -0
- /package/build/{common-server/src/models → models}/admin-auth.js +0 -0
- /package/build/{common-server/src/models → models}/auth.d.ts +0 -0
- /package/build/{common-server/src/models → models}/auth.js +0 -0
- /package/build/{common-server/src/models → models}/bank-payment.d.ts +0 -0
- /package/build/{common-server/src/models → models}/bank-payment.js +0 -0
- /package/build/{common-server/src/models → models}/bank-payout.d.ts +0 -0
- /package/build/{common-server/src/models → models}/bank-payout.js +0 -0
- /package/build/{common-server/src/models → models}/business-user.d.ts +0 -0
- /package/build/{common-server/src/models → models}/business-user.js +0 -0
- /package/build/{common-server/src/models → models}/ccxt-order.d.ts +0 -0
- /package/build/{common-server/src/models → models}/ccxt-order.js +0 -0
- /package/build/{common-server/src/models → models}/checked-address.d.ts +0 -0
- /package/build/{common-server/src/models → models}/checked-address.js +0 -0
- /package/build/{common-server/src/models → models}/kushki-payment.d.ts +0 -0
- /package/build/{common-server/src/models → models}/kushki-payment.js +0 -0
- /package/build/{common-server/src/models → models}/kyc.d.ts +0 -0
- /package/build/{common-server/src/models → models}/kyc.js +0 -0
- /package/build/{common-server/src/models → models}/order.d.ts +0 -0
- /package/build/{common-server/src/models → models}/order.js +0 -0
- /package/build/{common-server/src/models → models}/partner-auth.d.ts +0 -0
- /package/build/{common-server/src/models → models}/partner-auth.js +0 -0
- /package/build/{common-server/src/models → models}/partner.d.ts +0 -0
- /package/build/{common-server/src/models → models}/partner.js +0 -0
- /package/build/{common-server/src/models → models}/rio-settings.d.ts +0 -0
- /package/build/{common-server/src/models → models}/rio-settings.js +0 -0
- /package/build/{common-server/src/models → models}/user.d.ts +0 -0
- /package/build/{common-server/src/models → models}/user.js +0 -0
- /package/build/{common-server/src/services → services}/apiKey.d.ts +0 -0
- /package/build/{common-server/src/services → services}/apiKey.js +0 -0
- /package/build/{common-server/src/services → services}/password.d.ts +0 -0
- /package/build/{common-server/src/services → services}/password.js +0 -0
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { BusinessUser } from "
|
|
2
|
-
import { User } from "../../../common/src/types/user";
|
|
3
|
-
import { Order } from "@riocrypto/common";
|
|
1
|
+
import { Order, User, BusinessUser } from "@riocrypto/common";
|
|
4
2
|
export declare const getPlatformAndPartnerFees: (amountFiat: number, order: Order, user: User | BusinessUser) => Promise<{
|
|
5
3
|
platformFeeFiat: number;
|
|
6
4
|
plafformFeeFiatTax: number;
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Country } from "./country";
|
|
2
|
-
import { KYCStatus } from "./kyc-status";
|
|
3
|
-
import { Language } from "./language";
|
|
4
|
-
import { PlatformFeeRange } from "./platform-fee-range";
|
|
5
|
-
import { USState } from "./us-state";
|
|
6
|
-
import { UserAttribute } from "./user-attribute";
|
|
7
|
-
import { UserType } from "./user-type";
|
|
8
|
-
export interface BusinessUser {
|
|
9
|
-
id: string;
|
|
10
|
-
authId?: string;
|
|
11
|
-
type: UserType;
|
|
12
|
-
companyName: string;
|
|
13
|
-
legalRepresentative: string;
|
|
14
|
-
phoneNumber: string;
|
|
15
|
-
email: string;
|
|
16
|
-
street1: string;
|
|
17
|
-
street2?: string;
|
|
18
|
-
city: string;
|
|
19
|
-
state: USState | string;
|
|
20
|
-
postalCode: string;
|
|
21
|
-
country: Country;
|
|
22
|
-
kycStatus: KYCStatus;
|
|
23
|
-
cpf?: string;
|
|
24
|
-
language?: Language;
|
|
25
|
-
COIFile?: string;
|
|
26
|
-
KYCReportFile?: string;
|
|
27
|
-
attributes?: UserAttribute[];
|
|
28
|
-
brokerId?: string;
|
|
29
|
-
platformFeeRanges?: PlatformFeeRange[];
|
|
30
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export declare enum Country {
|
|
2
|
-
Algeria = "DZ",
|
|
3
|
-
Argentina = "AR",
|
|
4
|
-
Australia = "AU",
|
|
5
|
-
Austria = "AT",
|
|
6
|
-
Belgium = "BE",
|
|
7
|
-
Bolivia = "BO",
|
|
8
|
-
Brazil = "BR",
|
|
9
|
-
Canada = "CA",
|
|
10
|
-
Chile = "CL",
|
|
11
|
-
Colombia = "CO",
|
|
12
|
-
CostaRica = "CR",
|
|
13
|
-
Cyprus = "CY",
|
|
14
|
-
CzechRepublic = "CZ",
|
|
15
|
-
Denmark = "DK",
|
|
16
|
-
DominicanRepublic = "DO",
|
|
17
|
-
Estonia = "EE",
|
|
18
|
-
Fiji = "FJ",
|
|
19
|
-
France = "FR",
|
|
20
|
-
Germany = "DE",
|
|
21
|
-
Greece = "GR",
|
|
22
|
-
HongKong = "HK",
|
|
23
|
-
Iceland = "IS",
|
|
24
|
-
India = "IN",
|
|
25
|
-
Indonesia = "ID",
|
|
26
|
-
Ireland = "IE",
|
|
27
|
-
Israel = "IL",
|
|
28
|
-
Italy = "IT",
|
|
29
|
-
Japan = "JP",
|
|
30
|
-
Korea = "KR",
|
|
31
|
-
Latvia = "LV",
|
|
32
|
-
Lithuania = "LT",
|
|
33
|
-
Luxembourg = "LU",
|
|
34
|
-
Malaysia = "MY",
|
|
35
|
-
Mexico = "MX",
|
|
36
|
-
Nepal = "NP",
|
|
37
|
-
Netherlands = "NL",
|
|
38
|
-
NewZealand = "NZ",
|
|
39
|
-
Norway = "NO",
|
|
40
|
-
Paraguay = "PY",
|
|
41
|
-
Peru = "PE",
|
|
42
|
-
Philippines = "PH",
|
|
43
|
-
Poland = "PL",
|
|
44
|
-
Portugal = "PT",
|
|
45
|
-
Singapore = "SG",
|
|
46
|
-
Slovakia = "SK",
|
|
47
|
-
Slovenia = "SI",
|
|
48
|
-
SouthAfrica = "ZA",
|
|
49
|
-
Spain = "ES",
|
|
50
|
-
Sweden = "SE",
|
|
51
|
-
Switzerland = "CH",
|
|
52
|
-
Tanzania = "TZ",
|
|
53
|
-
Thailand = "TH",
|
|
54
|
-
Turkey = "TR",
|
|
55
|
-
UnitedKingdom = "GB",
|
|
56
|
-
Vietnam = "VN"
|
|
57
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Country = void 0;
|
|
4
|
-
var Country;
|
|
5
|
-
(function (Country) {
|
|
6
|
-
Country["Algeria"] = "DZ";
|
|
7
|
-
Country["Argentina"] = "AR";
|
|
8
|
-
Country["Australia"] = "AU";
|
|
9
|
-
Country["Austria"] = "AT";
|
|
10
|
-
Country["Belgium"] = "BE";
|
|
11
|
-
Country["Bolivia"] = "BO";
|
|
12
|
-
Country["Brazil"] = "BR";
|
|
13
|
-
Country["Canada"] = "CA";
|
|
14
|
-
Country["Chile"] = "CL";
|
|
15
|
-
Country["Colombia"] = "CO";
|
|
16
|
-
Country["CostaRica"] = "CR";
|
|
17
|
-
Country["Cyprus"] = "CY";
|
|
18
|
-
Country["CzechRepublic"] = "CZ";
|
|
19
|
-
Country["Denmark"] = "DK";
|
|
20
|
-
Country["DominicanRepublic"] = "DO";
|
|
21
|
-
Country["Estonia"] = "EE";
|
|
22
|
-
Country["Fiji"] = "FJ";
|
|
23
|
-
Country["France"] = "FR";
|
|
24
|
-
Country["Germany"] = "DE";
|
|
25
|
-
Country["Greece"] = "GR";
|
|
26
|
-
Country["HongKong"] = "HK";
|
|
27
|
-
Country["Iceland"] = "IS";
|
|
28
|
-
Country["India"] = "IN";
|
|
29
|
-
Country["Indonesia"] = "ID";
|
|
30
|
-
Country["Ireland"] = "IE";
|
|
31
|
-
Country["Israel"] = "IL";
|
|
32
|
-
Country["Italy"] = "IT";
|
|
33
|
-
Country["Japan"] = "JP";
|
|
34
|
-
Country["Korea"] = "KR";
|
|
35
|
-
Country["Latvia"] = "LV";
|
|
36
|
-
Country["Lithuania"] = "LT";
|
|
37
|
-
Country["Luxembourg"] = "LU";
|
|
38
|
-
Country["Malaysia"] = "MY";
|
|
39
|
-
Country["Mexico"] = "MX";
|
|
40
|
-
Country["Nepal"] = "NP";
|
|
41
|
-
Country["Netherlands"] = "NL";
|
|
42
|
-
Country["NewZealand"] = "NZ";
|
|
43
|
-
Country["Norway"] = "NO";
|
|
44
|
-
Country["Paraguay"] = "PY";
|
|
45
|
-
Country["Peru"] = "PE";
|
|
46
|
-
Country["Philippines"] = "PH";
|
|
47
|
-
Country["Poland"] = "PL";
|
|
48
|
-
Country["Portugal"] = "PT";
|
|
49
|
-
Country["Singapore"] = "SG";
|
|
50
|
-
Country["Slovakia"] = "SK";
|
|
51
|
-
Country["Slovenia"] = "SI";
|
|
52
|
-
Country["SouthAfrica"] = "ZA";
|
|
53
|
-
Country["Spain"] = "ES";
|
|
54
|
-
Country["Sweden"] = "SE";
|
|
55
|
-
Country["Switzerland"] = "CH";
|
|
56
|
-
Country["Tanzania"] = "TZ";
|
|
57
|
-
Country["Thailand"] = "TH";
|
|
58
|
-
Country["Turkey"] = "TR";
|
|
59
|
-
Country["UnitedKingdom"] = "GB";
|
|
60
|
-
Country["Vietnam"] = "VN";
|
|
61
|
-
})(Country = exports.Country || (exports.Country = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KYCStatus = void 0;
|
|
4
|
-
var KYCStatus;
|
|
5
|
-
(function (KYCStatus) {
|
|
6
|
-
KYCStatus["Passed"] = "passed";
|
|
7
|
-
KYCStatus["Failed"] = "failed";
|
|
8
|
-
KYCStatus["Review"] = "review";
|
|
9
|
-
KYCStatus["businessApproved"] = "businessApproved";
|
|
10
|
-
KYCStatus["None"] = "none";
|
|
11
|
-
})(KYCStatus = exports.KYCStatus || (exports.KYCStatus = {}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Language = void 0;
|
|
4
|
-
var Language;
|
|
5
|
-
(function (Language) {
|
|
6
|
-
Language["EN"] = "en";
|
|
7
|
-
Language["ES"] = "es";
|
|
8
|
-
Language["FR"] = "fr";
|
|
9
|
-
Language["PT"] = "pt";
|
|
10
|
-
})(Language = exports.Language || (exports.Language = {}));
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export declare enum USState {
|
|
2
|
-
"AL" = "AL",
|
|
3
|
-
"AK" = "AK",
|
|
4
|
-
"AS" = "AS",
|
|
5
|
-
"AZ" = "AZ",
|
|
6
|
-
"AR" = "AR",
|
|
7
|
-
"CA" = "CA",
|
|
8
|
-
"CO" = "CO",
|
|
9
|
-
"CT" = "CT",
|
|
10
|
-
"DE" = "DE",
|
|
11
|
-
"DC" = "DC",
|
|
12
|
-
"FM" = "FM",
|
|
13
|
-
"FL" = "FL",
|
|
14
|
-
"GA" = "GA",
|
|
15
|
-
"GU" = "GU",
|
|
16
|
-
"HI" = "HI",
|
|
17
|
-
"ID" = "ID",
|
|
18
|
-
"IL" = "IL",
|
|
19
|
-
"IN" = "IN",
|
|
20
|
-
"IA" = "IA",
|
|
21
|
-
"KS" = "KS",
|
|
22
|
-
"KY" = "KY",
|
|
23
|
-
"LA" = "LA",
|
|
24
|
-
"ME" = "ME",
|
|
25
|
-
"MH" = "MH",
|
|
26
|
-
"MD" = "MD",
|
|
27
|
-
"MA" = "MA",
|
|
28
|
-
"MI" = "MI",
|
|
29
|
-
"MN" = "MN",
|
|
30
|
-
"MS" = "MS",
|
|
31
|
-
"MO" = "MO",
|
|
32
|
-
"MT" = "MT",
|
|
33
|
-
"NE" = "NE",
|
|
34
|
-
"NV" = "NV",
|
|
35
|
-
"NH" = "NH",
|
|
36
|
-
"NJ" = "NJ",
|
|
37
|
-
"NM" = "NM",
|
|
38
|
-
"NY" = "NY",
|
|
39
|
-
"NC" = "NC",
|
|
40
|
-
"ND" = "ND",
|
|
41
|
-
"MP" = "MP",
|
|
42
|
-
"OH" = "OH",
|
|
43
|
-
"OK" = "OK",
|
|
44
|
-
"OR" = "OR",
|
|
45
|
-
"PW" = "PW",
|
|
46
|
-
"PA" = "PA",
|
|
47
|
-
"PR" = "PR",
|
|
48
|
-
"RI" = "RI",
|
|
49
|
-
"SC" = "SC",
|
|
50
|
-
"SD" = "SD",
|
|
51
|
-
"TN" = "TN",
|
|
52
|
-
"TX" = "TX",
|
|
53
|
-
"UT" = "UT",
|
|
54
|
-
"VT" = "VT",
|
|
55
|
-
"VI" = "VI",
|
|
56
|
-
"VA" = "VA",
|
|
57
|
-
"WA" = "WA",
|
|
58
|
-
"WV" = "WV",
|
|
59
|
-
"WI" = "WI",
|
|
60
|
-
"WY" = "WY"
|
|
61
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.USState = void 0;
|
|
4
|
-
var USState;
|
|
5
|
-
(function (USState) {
|
|
6
|
-
USState["AL"] = "AL";
|
|
7
|
-
USState["AK"] = "AK";
|
|
8
|
-
USState["AS"] = "AS";
|
|
9
|
-
USState["AZ"] = "AZ";
|
|
10
|
-
USState["AR"] = "AR";
|
|
11
|
-
USState["CA"] = "CA";
|
|
12
|
-
USState["CO"] = "CO";
|
|
13
|
-
USState["CT"] = "CT";
|
|
14
|
-
USState["DE"] = "DE";
|
|
15
|
-
USState["DC"] = "DC";
|
|
16
|
-
USState["FM"] = "FM";
|
|
17
|
-
USState["FL"] = "FL";
|
|
18
|
-
USState["GA"] = "GA";
|
|
19
|
-
USState["GU"] = "GU";
|
|
20
|
-
USState["HI"] = "HI";
|
|
21
|
-
USState["ID"] = "ID";
|
|
22
|
-
USState["IL"] = "IL";
|
|
23
|
-
USState["IN"] = "IN";
|
|
24
|
-
USState["IA"] = "IA";
|
|
25
|
-
USState["KS"] = "KS";
|
|
26
|
-
USState["KY"] = "KY";
|
|
27
|
-
USState["LA"] = "LA";
|
|
28
|
-
USState["ME"] = "ME";
|
|
29
|
-
USState["MH"] = "MH";
|
|
30
|
-
USState["MD"] = "MD";
|
|
31
|
-
USState["MA"] = "MA";
|
|
32
|
-
USState["MI"] = "MI";
|
|
33
|
-
USState["MN"] = "MN";
|
|
34
|
-
USState["MS"] = "MS";
|
|
35
|
-
USState["MO"] = "MO";
|
|
36
|
-
USState["MT"] = "MT";
|
|
37
|
-
USState["NE"] = "NE";
|
|
38
|
-
USState["NV"] = "NV";
|
|
39
|
-
USState["NH"] = "NH";
|
|
40
|
-
USState["NJ"] = "NJ";
|
|
41
|
-
USState["NM"] = "NM";
|
|
42
|
-
USState["NY"] = "NY";
|
|
43
|
-
USState["NC"] = "NC";
|
|
44
|
-
USState["ND"] = "ND";
|
|
45
|
-
USState["MP"] = "MP";
|
|
46
|
-
USState["OH"] = "OH";
|
|
47
|
-
USState["OK"] = "OK";
|
|
48
|
-
USState["OR"] = "OR";
|
|
49
|
-
USState["PW"] = "PW";
|
|
50
|
-
USState["PA"] = "PA";
|
|
51
|
-
USState["PR"] = "PR";
|
|
52
|
-
USState["RI"] = "RI";
|
|
53
|
-
USState["SC"] = "SC";
|
|
54
|
-
USState["SD"] = "SD";
|
|
55
|
-
USState["TN"] = "TN";
|
|
56
|
-
USState["TX"] = "TX";
|
|
57
|
-
USState["UT"] = "UT";
|
|
58
|
-
USState["VT"] = "VT";
|
|
59
|
-
USState["VI"] = "VI";
|
|
60
|
-
USState["VA"] = "VA";
|
|
61
|
-
USState["WA"] = "WA";
|
|
62
|
-
USState["WV"] = "WV";
|
|
63
|
-
USState["WI"] = "WI";
|
|
64
|
-
USState["WY"] = "WY";
|
|
65
|
-
})(USState = exports.USState || (exports.USState = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserAttribute = void 0;
|
|
4
|
-
var UserAttribute;
|
|
5
|
-
(function (UserAttribute) {
|
|
6
|
-
UserAttribute["deleted"] = "deleted";
|
|
7
|
-
UserAttribute["disabled"] = "disabled";
|
|
8
|
-
UserAttribute["banned"] = "banned";
|
|
9
|
-
UserAttribute["beta"] = "beta";
|
|
10
|
-
UserAttribute["alpha"] = "alpha";
|
|
11
|
-
UserAttribute["gamma"] = "gamma";
|
|
12
|
-
UserAttribute["broker"] = "broker";
|
|
13
|
-
UserAttribute["brokerCustomer"] = "brokerCustomer";
|
|
14
|
-
})(UserAttribute = exports.UserAttribute || (exports.UserAttribute = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserType = void 0;
|
|
4
|
-
var UserType;
|
|
5
|
-
(function (UserType) {
|
|
6
|
-
UserType["Business"] = "business";
|
|
7
|
-
UserType["Individual"] = "individual";
|
|
8
|
-
})(UserType = exports.UserType || (exports.UserType = {}));
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Country } from "./country";
|
|
2
|
-
import { KYCStatus } from "./kyc-status";
|
|
3
|
-
import { Language } from "./language";
|
|
4
|
-
import { PlatformFeeRange } from "./platform-fee-range";
|
|
5
|
-
import { USState } from "./us-state";
|
|
6
|
-
import { UserAttribute } from "./user-attribute";
|
|
7
|
-
import { UserType } from "./user-type";
|
|
8
|
-
export interface User {
|
|
9
|
-
authId: string;
|
|
10
|
-
id: string;
|
|
11
|
-
type: UserType;
|
|
12
|
-
firstName: string;
|
|
13
|
-
lastName: string;
|
|
14
|
-
phoneNumber: string;
|
|
15
|
-
birthday: Date;
|
|
16
|
-
email: string;
|
|
17
|
-
street1: string;
|
|
18
|
-
street2?: string;
|
|
19
|
-
city: string;
|
|
20
|
-
state: USState | string;
|
|
21
|
-
postalCode: string;
|
|
22
|
-
country: Country;
|
|
23
|
-
kycStatus: KYCStatus;
|
|
24
|
-
cpf?: string;
|
|
25
|
-
language?: Language;
|
|
26
|
-
partnerId?: string;
|
|
27
|
-
attributes?: UserAttribute[];
|
|
28
|
-
brokerId?: string;
|
|
29
|
-
platformFeeRanges?: PlatformFeeRange[];
|
|
30
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|