@dfx.swiss/react 1.3.0-beta.270 → 1.3.0-beta.274
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/definitions/aml.d.ts +1 -53
- package/dist/definitions/aml.d.ts.map +1 -1
- package/dist/definitions/aml.js +1 -55
- package/dist/definitions/aml.js.map +1 -1
- package/dist/definitions/asset.d.ts +2 -32
- package/dist/definitions/asset.d.ts.map +1 -1
- package/dist/definitions/asset.js +1 -11
- package/dist/definitions/asset.js.map +1 -1
- package/dist/definitions/auth.d.ts +2 -40
- package/dist/definitions/auth.d.ts.map +1 -1
- package/dist/definitions/auth.js +1 -25
- package/dist/definitions/auth.js.map +1 -1
- package/dist/definitions/bank-account.d.ts +2 -14
- package/dist/definitions/bank-account.d.ts.map +1 -1
- package/dist/definitions/bank-account.js +1 -5
- package/dist/definitions/bank-account.js.map +1 -1
- package/dist/definitions/bank.d.ts +2 -9
- package/dist/definitions/bank.d.ts.map +1 -1
- package/dist/definitions/bank.js +1 -3
- package/dist/definitions/bank.js.map +1 -1
- package/dist/definitions/blockchain.d.ts +1 -28
- package/dist/definitions/blockchain.d.ts.map +1 -1
- package/dist/definitions/blockchain.js +1 -29
- package/dist/definitions/blockchain.js.map +1 -1
- package/dist/definitions/buy.d.ts +2 -57
- package/dist/definitions/buy.d.ts.map +1 -1
- package/dist/definitions/buy.js +1 -5
- package/dist/definitions/buy.js.map +1 -1
- package/dist/definitions/country.d.ts +2 -15
- package/dist/definitions/country.d.ts.map +1 -1
- package/dist/definitions/country.js +1 -1
- package/dist/definitions/country.js.map +1 -1
- package/dist/definitions/error.d.ts +2 -12
- package/dist/definitions/error.d.ts.map +1 -1
- package/dist/definitions/error.js +1 -27
- package/dist/definitions/error.js.map +1 -1
- package/dist/definitions/fees.d.ts +1 -13
- package/dist/definitions/fees.d.ts.map +1 -1
- package/dist/definitions/fiat.d.ts +2 -13
- package/dist/definitions/fiat.d.ts.map +1 -1
- package/dist/definitions/fiat.js +1 -1
- package/dist/definitions/fiat.js.map +1 -1
- package/dist/definitions/file.d.ts +1 -4
- package/dist/definitions/file.d.ts.map +1 -1
- package/dist/definitions/jwt.d.ts +2 -23
- package/dist/definitions/jwt.d.ts.map +1 -1
- package/dist/definitions/jwt.js +1 -14
- package/dist/definitions/jwt.js.map +1 -1
- package/dist/definitions/kyc.d.ts +2 -427
- package/dist/definitions/kyc.d.ts.map +1 -1
- package/dist/definitions/kyc.js +1 -289
- package/dist/definitions/kyc.js.map +1 -1
- package/dist/definitions/language.d.ts +2 -10
- package/dist/definitions/language.d.ts.map +1 -1
- package/dist/definitions/language.js +1 -1
- package/dist/definitions/language.js.map +1 -1
- package/dist/definitions/price-step.d.ts +1 -7
- package/dist/definitions/price-step.d.ts.map +1 -1
- package/dist/definitions/route.d.ts +2 -202
- package/dist/definitions/route.d.ts.map +1 -1
- package/dist/definitions/route.js +1 -75
- package/dist/definitions/route.js.map +1 -1
- package/dist/definitions/sell.d.ts +2 -75
- package/dist/definitions/sell.d.ts.map +1 -1
- package/dist/definitions/sell.js +1 -4
- package/dist/definitions/sell.js.map +1 -1
- package/dist/definitions/session.d.ts +1 -9
- package/dist/definitions/session.d.ts.map +1 -1
- package/dist/definitions/settings.d.ts +2 -9
- package/dist/definitions/settings.d.ts.map +1 -1
- package/dist/definitions/settings.js +1 -1
- package/dist/definitions/settings.js.map +1 -1
- package/dist/definitions/support.d.ts +2 -123
- package/dist/definitions/support.d.ts.map +1 -1
- package/dist/definitions/support.js +1 -64
- package/dist/definitions/support.js.map +1 -1
- package/dist/definitions/swap.d.ts +2 -47
- package/dist/definitions/swap.d.ts.map +1 -1
- package/dist/definitions/swap.js +1 -4
- package/dist/definitions/swap.js.map +1 -1
- package/dist/definitions/transaction.d.ts +2 -221
- package/dist/definitions/transaction.d.ts.map +1 -1
- package/dist/definitions/transaction.js +1 -112
- package/dist/definitions/transaction.js.map +1 -1
- package/dist/definitions/user.d.ts +2 -125
- package/dist/definitions/user.d.ts.map +1 -1
- package/dist/definitions/user.js +1 -37
- package/dist/definitions/user.js.map +1 -1
- package/dist/hooks/kyc.hook.d.ts.map +1 -1
- package/dist/hooks/kyc.hook.js +27 -26
- package/dist/hooks/kyc.hook.js.map +1 -1
- package/dist/hooks/sell.hook.js +1 -1
- package/dist/hooks/sell.hook.js.map +1 -1
- package/dist/hooks/swap.hook.js +1 -1
- package/dist/hooks/swap.hook.js.map +1 -1
- package/dist/index.d.ts +16 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -6
- package/dist/index.js.map +1 -1
- package/dist/utils.d.ts +1 -17
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -65
- package/dist/utils.js.map +1 -1
- package/dist/validations.d.ts +2 -26
- package/dist/validations.d.ts.map +1 -1
- package/dist/validations.js +1 -79
- package/dist/validations.js.map +1 -1
- package/package.json +3 -4
- package/dist/definitions/blocked-iban.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../src/definitions/route.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../src/definitions/route.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,76 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { Fees } from './fees';
|
|
4
|
-
import { Fiat } from './fiat';
|
|
5
|
-
import { PriceStep } from './price-step';
|
|
6
|
-
import { TransactionError } from './transaction';
|
|
7
|
-
export declare const SellUrl: {
|
|
8
|
-
receive: string;
|
|
9
|
-
confirm: string;
|
|
10
|
-
};
|
|
11
|
-
export interface Eip5792Call {
|
|
12
|
-
to: string;
|
|
13
|
-
data: string;
|
|
14
|
-
value: string;
|
|
15
|
-
}
|
|
16
|
-
export interface Eip5792Data {
|
|
17
|
-
paymasterUrl: string;
|
|
18
|
-
chainId: number;
|
|
19
|
-
calls: Eip5792Call[];
|
|
20
|
-
}
|
|
21
|
-
export interface UnsignedTx {
|
|
22
|
-
chainId: number;
|
|
23
|
-
from: string;
|
|
24
|
-
to: string;
|
|
25
|
-
data: string;
|
|
26
|
-
value: string;
|
|
27
|
-
nonce: number;
|
|
28
|
-
gasPrice: string;
|
|
29
|
-
gasLimit: string;
|
|
30
|
-
eip5792?: Eip5792Data;
|
|
31
|
-
}
|
|
32
|
-
export interface Sell {
|
|
33
|
-
id: number;
|
|
34
|
-
uid: string;
|
|
35
|
-
timestamp: Date;
|
|
36
|
-
routeId: number;
|
|
37
|
-
depositAddress: string;
|
|
38
|
-
blockchain: Blockchain;
|
|
39
|
-
fees: Fees;
|
|
40
|
-
minVolume: number;
|
|
41
|
-
maxVolume: number;
|
|
42
|
-
amount: number;
|
|
43
|
-
asset: Asset;
|
|
44
|
-
feesTarget: Fees;
|
|
45
|
-
minVolumeTarget: number;
|
|
46
|
-
maxVolumeTarget: number;
|
|
47
|
-
exchangeRate: number;
|
|
48
|
-
priceSteps: PriceStep[];
|
|
49
|
-
rate: number;
|
|
50
|
-
exactPrice: boolean;
|
|
51
|
-
estimatedAmount: number;
|
|
52
|
-
currency: Fiat;
|
|
53
|
-
beneficiary: Beneficiary;
|
|
54
|
-
paymentRequest?: string;
|
|
55
|
-
depositTx?: UnsignedTx;
|
|
56
|
-
isValid: boolean;
|
|
57
|
-
error?: TransactionError;
|
|
58
|
-
}
|
|
59
|
-
export interface Beneficiary {
|
|
60
|
-
iban: string;
|
|
61
|
-
name: string;
|
|
62
|
-
}
|
|
63
|
-
export interface SellPaymentInfo {
|
|
64
|
-
iban: string;
|
|
65
|
-
asset: Asset;
|
|
66
|
-
amount?: number;
|
|
67
|
-
currency: Fiat;
|
|
68
|
-
targetAmount?: number;
|
|
69
|
-
externalTransactionId?: string;
|
|
70
|
-
exactPrice?: boolean;
|
|
71
|
-
}
|
|
72
|
-
export interface ConfirmSellData {
|
|
73
|
-
signedTxHex?: string;
|
|
74
|
-
txHash?: string;
|
|
75
|
-
}
|
|
1
|
+
export { SellUrl } from '@dfx.swiss/core';
|
|
2
|
+
export type { Eip5792Call, Eip5792Data, UnsignedTx, Sell, Beneficiary, SellPaymentInfo, ConfirmSellData } from '@dfx.swiss/core';
|
|
76
3
|
//# sourceMappingURL=sell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sell.d.ts","sourceRoot":"","sources":["../../src/definitions/sell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"sell.d.ts","sourceRoot":"","sources":["../../src/definitions/sell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/definitions/sell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sell.js","sourceRoot":"","sources":["../../src/definitions/sell.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sell.js","sourceRoot":"","sources":["../../src/definitions/sell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { UserRole } from './jwt';
|
|
3
|
-
export interface Session {
|
|
4
|
-
address?: string;
|
|
5
|
-
user?: number;
|
|
6
|
-
account: number;
|
|
7
|
-
role: UserRole;
|
|
8
|
-
blockchains: Blockchain[];
|
|
9
|
-
}
|
|
1
|
+
export type { Session } from '@dfx.swiss/core';
|
|
10
2
|
//# sourceMappingURL=session.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/definitions/session.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/definitions/session.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
export interface InfoBanner {
|
|
5
|
-
de: string;
|
|
6
|
-
en: string;
|
|
7
|
-
fr: string;
|
|
8
|
-
it: string;
|
|
9
|
-
}
|
|
1
|
+
export { SettingsUrl } from '@dfx.swiss/core';
|
|
2
|
+
export type { InfoBanner } from '@dfx.swiss/core';
|
|
10
3
|
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/definitions/settings.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/definitions/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { SettingsUrl } from '@dfx.swiss/core';
|
|
2
2
|
//# sourceMappingURL=settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/definitions/settings.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/definitions/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,124 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
supportIssue: string;
|
|
4
|
-
createMessage: (uid: string) => string;
|
|
5
|
-
getIssue: (uid: string, fromMessageId?: number) => string;
|
|
6
|
-
fetchFileData: (uid: string, messageId: number) => string;
|
|
7
|
-
};
|
|
8
|
-
export declare enum SupportIssueType {
|
|
9
|
-
GENERIC_ISSUE = "GenericIssue",
|
|
10
|
-
TRANSACTION_ISSUE = "TransactionIssue",
|
|
11
|
-
VERIFICATION_CALL = "VerificationCall",
|
|
12
|
-
KYC_ISSUE = "KycIssue",
|
|
13
|
-
LIMIT_REQUEST = "LimitRequest",
|
|
14
|
-
PARTNERSHIP_REQUEST = "PartnershipRequest",
|
|
15
|
-
NOTIFICATION_OF_CHANGES = "NotificationOfChanges",
|
|
16
|
-
BUG_REPORT = "BugReport"
|
|
17
|
-
}
|
|
18
|
-
export declare enum SupportIssueReason {
|
|
19
|
-
OTHER = "Other",
|
|
20
|
-
DATA_REQUEST = "DataRequest",
|
|
21
|
-
FUNDS_NOT_RECEIVED = "FundsNotReceived",
|
|
22
|
-
TRANSACTION_MISSING = "TransactionMissing",
|
|
23
|
-
REJECT_CALL = "RejectCall",
|
|
24
|
-
REPEAT_CALL = "RepeatCall",
|
|
25
|
-
NAME_CHANGED = "NameChanged",
|
|
26
|
-
ADDRESS_CHANGED = "AddressChanged",
|
|
27
|
-
CIVIL_STATUS_CHANGED = "CivilStatusChanged"
|
|
28
|
-
}
|
|
29
|
-
export declare enum SupportIssueState {
|
|
30
|
-
CREATED = "Created",
|
|
31
|
-
PENDING = "Pending",
|
|
32
|
-
COMPLETED = "Completed",
|
|
33
|
-
CANCELED = "Canceled"
|
|
34
|
-
}
|
|
35
|
-
export declare enum SupportIssueInternalState {
|
|
36
|
-
CREATED = "Created",
|
|
37
|
-
PENDING = "Pending",
|
|
38
|
-
COMPLETED = "Completed",
|
|
39
|
-
CANCELED = "Canceled",
|
|
40
|
-
ON_HOLD = "OnHold"
|
|
41
|
-
}
|
|
42
|
-
export declare enum Department {
|
|
43
|
-
SUPPORT = "Support",
|
|
44
|
-
COMPLIANCE = "Compliance",
|
|
45
|
-
MARKETING = "Marketing",
|
|
46
|
-
COOPERATION = "Cooperation"
|
|
47
|
-
}
|
|
48
|
-
export declare enum SupportMessageStatus {
|
|
49
|
-
SENT = "Sent",
|
|
50
|
-
RECEIVED = "Received",
|
|
51
|
-
FAILED = "Failed"
|
|
52
|
-
}
|
|
53
|
-
export interface Reaction {
|
|
54
|
-
emoji: string;
|
|
55
|
-
users: string[];
|
|
56
|
-
}
|
|
57
|
-
export interface BlobContent {
|
|
58
|
-
data: any;
|
|
59
|
-
contentType: string;
|
|
60
|
-
}
|
|
61
|
-
export interface DataFile {
|
|
62
|
-
file: string;
|
|
63
|
-
type: string;
|
|
64
|
-
size: number;
|
|
65
|
-
url: string;
|
|
66
|
-
}
|
|
67
|
-
export interface SupportIssueTransaction {
|
|
68
|
-
uid: string;
|
|
69
|
-
url: string;
|
|
70
|
-
}
|
|
71
|
-
export interface SupportIssueLimitRequest {
|
|
72
|
-
id: number;
|
|
73
|
-
limit: number;
|
|
74
|
-
}
|
|
75
|
-
export interface SupportMessage {
|
|
76
|
-
id: number;
|
|
77
|
-
author?: string;
|
|
78
|
-
created: Date;
|
|
79
|
-
message?: string;
|
|
80
|
-
fileName?: string;
|
|
81
|
-
file?: DataFile;
|
|
82
|
-
status?: SupportMessageStatus;
|
|
83
|
-
replyTo?: number;
|
|
84
|
-
reactions?: Reaction[];
|
|
85
|
-
}
|
|
86
|
-
export interface SupportIssue {
|
|
87
|
-
uid: string;
|
|
88
|
-
state: SupportIssueState;
|
|
89
|
-
type: SupportIssueType;
|
|
90
|
-
reason: SupportIssueReason;
|
|
91
|
-
name: string;
|
|
92
|
-
created: Date;
|
|
93
|
-
messages: SupportMessage[];
|
|
94
|
-
transaction?: SupportIssueTransaction;
|
|
95
|
-
limitRequest?: SupportIssueLimitRequest;
|
|
96
|
-
}
|
|
97
|
-
export interface TransactionIssue {
|
|
98
|
-
id?: number;
|
|
99
|
-
uid?: string;
|
|
100
|
-
orderUid?: string;
|
|
101
|
-
senderIban?: string;
|
|
102
|
-
receiverIban?: string;
|
|
103
|
-
date?: Date;
|
|
104
|
-
}
|
|
105
|
-
export interface LimitRequestIssue {
|
|
106
|
-
limit: Limit;
|
|
107
|
-
investmentDate: InvestmentDate;
|
|
108
|
-
fundOrigin: FundOrigin;
|
|
109
|
-
fundOriginText?: string;
|
|
110
|
-
}
|
|
111
|
-
export interface CreateSupportMessage {
|
|
112
|
-
author?: string;
|
|
113
|
-
message?: string;
|
|
114
|
-
file?: string;
|
|
115
|
-
fileName?: string;
|
|
116
|
-
}
|
|
117
|
-
export interface CreateSupportIssue extends CreateSupportMessage {
|
|
118
|
-
type: SupportIssueType;
|
|
119
|
-
reason: SupportIssueReason;
|
|
120
|
-
name: string;
|
|
121
|
-
transaction?: TransactionIssue;
|
|
122
|
-
limitRequest?: LimitRequestIssue;
|
|
123
|
-
}
|
|
1
|
+
export { SupportUrl, SupportIssueType, SupportIssueReason, SupportIssueState, SupportIssueInternalState, Department, SupportMessageStatus, } from '@dfx.swiss/core';
|
|
2
|
+
export type { Reaction, BlobContent, DataFile, SupportIssueTransaction, SupportIssueLimitRequest, SupportMessage, SupportIssue, TransactionIssue, LimitRequestIssue, CreateSupportMessage, CreateSupportIssue, } from '@dfx.swiss/core';
|
|
124
3
|
//# sourceMappingURL=support.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support.d.ts","sourceRoot":"","sources":["../../src/definitions/support.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"support.d.ts","sourceRoot":"","sources":["../../src/definitions/support.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,EACzB,UAAU,EACV,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EACV,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,uBAAuB,EACvB,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,65 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
supportIssue: 'support/issue',
|
|
3
|
-
createMessage: function (uid) { return "support/issue/".concat(uid, "/message"); },
|
|
4
|
-
getIssue: function (uid, fromMessageId) {
|
|
5
|
-
return "support/issue/".concat(uid).concat(fromMessageId ? "?fromMessageId=".concat(fromMessageId) : '');
|
|
6
|
-
},
|
|
7
|
-
fetchFileData: function (uid, messageId) { return "support/issue/".concat(uid, "/message/").concat(messageId, "/file"); },
|
|
8
|
-
};
|
|
9
|
-
export var SupportIssueType;
|
|
10
|
-
(function (SupportIssueType) {
|
|
11
|
-
SupportIssueType["GENERIC_ISSUE"] = "GenericIssue";
|
|
12
|
-
SupportIssueType["TRANSACTION_ISSUE"] = "TransactionIssue";
|
|
13
|
-
SupportIssueType["VERIFICATION_CALL"] = "VerificationCall";
|
|
14
|
-
SupportIssueType["KYC_ISSUE"] = "KycIssue";
|
|
15
|
-
SupportIssueType["LIMIT_REQUEST"] = "LimitRequest";
|
|
16
|
-
SupportIssueType["PARTNERSHIP_REQUEST"] = "PartnershipRequest";
|
|
17
|
-
SupportIssueType["NOTIFICATION_OF_CHANGES"] = "NotificationOfChanges";
|
|
18
|
-
SupportIssueType["BUG_REPORT"] = "BugReport";
|
|
19
|
-
})(SupportIssueType || (SupportIssueType = {}));
|
|
20
|
-
export var SupportIssueReason;
|
|
21
|
-
(function (SupportIssueReason) {
|
|
22
|
-
// general
|
|
23
|
-
SupportIssueReason["OTHER"] = "Other";
|
|
24
|
-
// support
|
|
25
|
-
SupportIssueReason["DATA_REQUEST"] = "DataRequest";
|
|
26
|
-
// transaction issue
|
|
27
|
-
SupportIssueReason["FUNDS_NOT_RECEIVED"] = "FundsNotReceived";
|
|
28
|
-
SupportIssueReason["TRANSACTION_MISSING"] = "TransactionMissing";
|
|
29
|
-
// verification call
|
|
30
|
-
SupportIssueReason["REJECT_CALL"] = "RejectCall";
|
|
31
|
-
SupportIssueReason["REPEAT_CALL"] = "RepeatCall";
|
|
32
|
-
// notification of changes issue
|
|
33
|
-
SupportIssueReason["NAME_CHANGED"] = "NameChanged";
|
|
34
|
-
SupportIssueReason["ADDRESS_CHANGED"] = "AddressChanged";
|
|
35
|
-
SupportIssueReason["CIVIL_STATUS_CHANGED"] = "CivilStatusChanged";
|
|
36
|
-
})(SupportIssueReason || (SupportIssueReason = {}));
|
|
37
|
-
export var SupportIssueState;
|
|
38
|
-
(function (SupportIssueState) {
|
|
39
|
-
SupportIssueState["CREATED"] = "Created";
|
|
40
|
-
SupportIssueState["PENDING"] = "Pending";
|
|
41
|
-
SupportIssueState["COMPLETED"] = "Completed";
|
|
42
|
-
SupportIssueState["CANCELED"] = "Canceled";
|
|
43
|
-
})(SupportIssueState || (SupportIssueState = {}));
|
|
44
|
-
export var SupportIssueInternalState;
|
|
45
|
-
(function (SupportIssueInternalState) {
|
|
46
|
-
SupportIssueInternalState["CREATED"] = "Created";
|
|
47
|
-
SupportIssueInternalState["PENDING"] = "Pending";
|
|
48
|
-
SupportIssueInternalState["COMPLETED"] = "Completed";
|
|
49
|
-
SupportIssueInternalState["CANCELED"] = "Canceled";
|
|
50
|
-
SupportIssueInternalState["ON_HOLD"] = "OnHold";
|
|
51
|
-
})(SupportIssueInternalState || (SupportIssueInternalState = {}));
|
|
52
|
-
export var Department;
|
|
53
|
-
(function (Department) {
|
|
54
|
-
Department["SUPPORT"] = "Support";
|
|
55
|
-
Department["COMPLIANCE"] = "Compliance";
|
|
56
|
-
Department["MARKETING"] = "Marketing";
|
|
57
|
-
Department["COOPERATION"] = "Cooperation";
|
|
58
|
-
})(Department || (Department = {}));
|
|
59
|
-
export var SupportMessageStatus;
|
|
60
|
-
(function (SupportMessageStatus) {
|
|
61
|
-
SupportMessageStatus["SENT"] = "Sent";
|
|
62
|
-
SupportMessageStatus["RECEIVED"] = "Received";
|
|
63
|
-
SupportMessageStatus["FAILED"] = "Failed";
|
|
64
|
-
})(SupportMessageStatus || (SupportMessageStatus = {}));
|
|
1
|
+
export { SupportUrl, SupportIssueType, SupportIssueReason, SupportIssueState, SupportIssueInternalState, Department, SupportMessageStatus, } from '@dfx.swiss/core';
|
|
65
2
|
//# sourceMappingURL=support.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support.js","sourceRoot":"","sources":["../../src/definitions/support.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"support.js","sourceRoot":"","sources":["../../src/definitions/support.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,EACzB,UAAU,EACV,oBAAoB,GACrB,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,48 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { PriceStep } from './price-step';
|
|
4
|
-
import { UnsignedTx } from './sell';
|
|
5
|
-
import { TransactionError } from './transaction';
|
|
6
|
-
export declare const SwapUrl: {
|
|
7
|
-
receive: string;
|
|
8
|
-
confirm: string;
|
|
9
|
-
};
|
|
10
|
-
export interface Swap {
|
|
11
|
-
id: number;
|
|
12
|
-
uid: string;
|
|
13
|
-
timestamp: Date;
|
|
14
|
-
routeId: number;
|
|
15
|
-
depositAddress: string;
|
|
16
|
-
sourceAsset: Asset;
|
|
17
|
-
targetAsset: Asset;
|
|
18
|
-
fees: Fees;
|
|
19
|
-
minVolume: number;
|
|
20
|
-
maxVolume: number;
|
|
21
|
-
amount: number;
|
|
22
|
-
feesTarget: Fees;
|
|
23
|
-
minVolumeTarget: number;
|
|
24
|
-
maxVolumeTarget: number;
|
|
25
|
-
exchangeRate: number;
|
|
26
|
-
priceSteps: PriceStep[];
|
|
27
|
-
rate: number;
|
|
28
|
-
exactPrice: boolean;
|
|
29
|
-
estimatedAmount: number;
|
|
30
|
-
paymentRequest?: string;
|
|
31
|
-
depositTx?: UnsignedTx;
|
|
32
|
-
isValid: boolean;
|
|
33
|
-
error?: TransactionError;
|
|
34
|
-
}
|
|
35
|
-
export interface SwapPaymentInfo {
|
|
36
|
-
sourceAsset: Asset;
|
|
37
|
-
amount?: number;
|
|
38
|
-
targetAsset: Asset;
|
|
39
|
-
targetAmount?: number;
|
|
40
|
-
receiverAddress?: string;
|
|
41
|
-
externalTransactionId?: string;
|
|
42
|
-
exactPrice?: boolean;
|
|
43
|
-
}
|
|
44
|
-
export interface ConfirmSwapData {
|
|
45
|
-
signedTxHex?: string;
|
|
46
|
-
txHash?: string;
|
|
47
|
-
}
|
|
1
|
+
export { SwapUrl } from '@dfx.swiss/core';
|
|
2
|
+
export type { Swap, SwapPaymentInfo, ConfirmSwapData } from '@dfx.swiss/core';
|
|
48
3
|
//# sourceMappingURL=swap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap.d.ts","sourceRoot":"","sources":["../../src/definitions/swap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"swap.d.ts","sourceRoot":"","sources":["../../src/definitions/swap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/definitions/swap.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap.js","sourceRoot":"","sources":["../../src/definitions/swap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"swap.js","sourceRoot":"","sources":["../../src/definitions/swap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,222 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
single: string;
|
|
4
|
-
detail: string;
|
|
5
|
-
csv: string;
|
|
6
|
-
unassigned: string;
|
|
7
|
-
target: string;
|
|
8
|
-
refund: (id: number) => string;
|
|
9
|
-
bankRefund: (id: number) => string;
|
|
10
|
-
setTarget: (id: number) => string;
|
|
11
|
-
invoice: (id: number | string) => string;
|
|
12
|
-
receipt: (id: number) => string;
|
|
13
|
-
};
|
|
14
|
-
import { Asset } from './asset';
|
|
15
|
-
import { Blockchain } from './blockchain';
|
|
16
|
-
import { Fees } from './fees';
|
|
17
|
-
import { Fiat } from './fiat';
|
|
18
|
-
import { PriceStep } from './price-step';
|
|
19
|
-
export declare enum FiatPaymentMethod {
|
|
20
|
-
BANK = "Bank",
|
|
21
|
-
INSTANT = "Instant",
|
|
22
|
-
CARD = "Card"
|
|
23
|
-
}
|
|
24
|
-
export declare enum CryptoPaymentMethod {
|
|
25
|
-
CRYPTO = "Crypto"
|
|
26
|
-
}
|
|
27
|
-
export type PaymentMethod = FiatPaymentMethod | CryptoPaymentMethod;
|
|
28
|
-
export declare enum TransactionError {
|
|
29
|
-
AMOUNT_TOO_LOW = "AmountTooLow",
|
|
30
|
-
AMOUNT_TOO_HIGH = "AmountTooHigh",
|
|
31
|
-
BANK_TRANSACTION_MISSING = "BankTransactionMissing",
|
|
32
|
-
BANK_TRANSACTION_OR_VIDEO_MISSING = "BankTransactionOrVideoMissing",
|
|
33
|
-
KYC_REQUIRED = "KycRequired",
|
|
34
|
-
KYC_DATA_REQUIRED = "KycDataRequired",
|
|
35
|
-
NAME_REQUIRED = "NameRequired",
|
|
36
|
-
KYC_REQUIRED_INSTANT = "KycRequiredInstant",
|
|
37
|
-
LIMIT_EXCEEDED = "LimitExceeded",
|
|
38
|
-
NATIONALITY_NOT_ALLOWED = "NationalityNotAllowed",
|
|
39
|
-
PAYMENT_METHOD_NOT_ALLOWED = "PaymentMethodNotAllowed",
|
|
40
|
-
VIDEO_IDENT_REQUIRED = "VideoIdentRequired",
|
|
41
|
-
IBAN_CURRENCY_MISMATCH = "IbanCurrencyMismatch",
|
|
42
|
-
TRADING_NOT_ALLOWED = "TradingNotAllowed",
|
|
43
|
-
RECOMMENDATION_REQUIRED = "RecommendationRequired",
|
|
44
|
-
EMAIL_REQUIRED = "EmailRequired"
|
|
45
|
-
}
|
|
46
|
-
export declare enum TransactionType {
|
|
47
|
-
BUY = "Buy",
|
|
48
|
-
SELL = "Sell",
|
|
49
|
-
SWAP = "Swap",
|
|
50
|
-
REFERRAL = "Referral"
|
|
51
|
-
}
|
|
52
|
-
export declare enum TransactionState {
|
|
53
|
-
CREATED = "Created",
|
|
54
|
-
PROCESSING = "Processing",
|
|
55
|
-
LIQUIDITY_PENDING = "LiquidityPending",
|
|
56
|
-
CHECK_PENDING = "CheckPending",
|
|
57
|
-
KYC_REQUIRED = "KycRequired",
|
|
58
|
-
LIMIT_EXCEEDED = "LimitExceeded",
|
|
59
|
-
FEE_TOO_HIGH = "FeeTooHigh",
|
|
60
|
-
PRICE_UNDETERMINABLE = "PriceUndeterminable",
|
|
61
|
-
PAYOUT_IN_PROGRESS = "PayoutInProgress",
|
|
62
|
-
COMPLETED = "Completed",
|
|
63
|
-
FAILED = "Failed",
|
|
64
|
-
RETURN_PENDING = "ReturnPending",
|
|
65
|
-
RETURNED = "Returned",
|
|
66
|
-
UNASSIGNED = "Unassigned",
|
|
67
|
-
WAITING_FOR_PAYMENT = "WaitingForPayment",
|
|
68
|
-
STOPPED = "Stopped"
|
|
69
|
-
}
|
|
70
|
-
export declare enum TransactionFailureReason {
|
|
71
|
-
UNKNOWN = "Unknown",
|
|
72
|
-
DAILY_LIMIT_EXCEEDED = "DailyLimitExceeded",
|
|
73
|
-
MONTHLY_LIMIT_EXCEEDED = "MonthlyLimitExceeded",
|
|
74
|
-
ANNUAL_LIMIT_EXCEEDED = "AnnualLimitExceeded",
|
|
75
|
-
ACCOUNT_HOLDER_MISMATCH = "AccountHolderMismatch",
|
|
76
|
-
KYC_REJECTED = "KycRejected",
|
|
77
|
-
FRAUD_SUSPICION = "FraudSuspicion",
|
|
78
|
-
SANCTION_SUSPICION = "SanctionSuspicion",
|
|
79
|
-
MIN_DEPOSIT_NOT_REACHED = "MinDepositNotReached",
|
|
80
|
-
ASSET_NOT_AVAILABLE = "AssetNotAvailable",
|
|
81
|
-
ASSET_NOT_AVAILABLE_WITH_CHOSEN_BANK = "AssetNotAvailableWithChosenBank",
|
|
82
|
-
STAKING_DISCONTINUED = "StakingDiscontinued",
|
|
83
|
-
BANK_NOT_ALLOWED = "BankNotAllowed",
|
|
84
|
-
PAYMENT_ACCOUNT_NOT_ALLOWED = "PaymentAccountNotAllowed",
|
|
85
|
-
COUNTRY_NOT_ALLOWED = "CountryNotAllowed",
|
|
86
|
-
INSTANT_PAYMENT = "InstantPayment",
|
|
87
|
-
FEE_TOO_HIGH = "FeeTooHigh",
|
|
88
|
-
RECEIVER_REJECTED = "ReceiverRejected",
|
|
89
|
-
CHF_ABROAD_NOT_ALLOWED = "ChfAbroadNotAllowed",
|
|
90
|
-
ASSET_KYC_NEEDED = "AssetKycNeeded",
|
|
91
|
-
CARD_NAME_MISMATCH = "CardNameMismatch",
|
|
92
|
-
USER_DELETED = "UserDeleted",
|
|
93
|
-
VIDEO_IDENT_NEEDED = "VideoIdentNeeded",
|
|
94
|
-
MISSING_LIQUIDITY = "MissingLiquidity",
|
|
95
|
-
KYC_DATA_NEEDED = "KycDataNeeded",
|
|
96
|
-
BANK_TX_NEEDED = "BankTxNeeded",
|
|
97
|
-
MERGE_INCOMPLETE = "MergeIncomplete",
|
|
98
|
-
PHONE_VERIFICATION_NEEDED = "PhoneVerificationNeeded",
|
|
99
|
-
BANK_RELEASE_PENDING = "BankReleasePending",
|
|
100
|
-
INPUT_NOT_CONFIRMED = "InputNotConfirmed"
|
|
101
|
-
}
|
|
102
|
-
export declare enum ExportType {
|
|
103
|
-
COMPACT = "Compact",
|
|
104
|
-
COIN_TRACKING = "CoinTracking",
|
|
105
|
-
CHAIN_REPORT = "ChainReport"
|
|
106
|
-
}
|
|
107
|
-
export declare enum ExportFormat {
|
|
108
|
-
CSV = "csv",
|
|
109
|
-
JSON = "json"
|
|
110
|
-
}
|
|
111
|
-
export interface UnassignedTransaction {
|
|
112
|
-
id?: number;
|
|
113
|
-
uid: string;
|
|
114
|
-
orderUid: string;
|
|
115
|
-
type: TransactionType;
|
|
116
|
-
state: TransactionState;
|
|
117
|
-
inputAmount?: number;
|
|
118
|
-
inputAsset?: string;
|
|
119
|
-
inputAssetId?: number;
|
|
120
|
-
inputBlockchain?: Blockchain;
|
|
121
|
-
inputPaymentMethod?: PaymentMethod;
|
|
122
|
-
inputTxId?: string;
|
|
123
|
-
inputTxUrl?: string;
|
|
124
|
-
chargebackAmount?: number;
|
|
125
|
-
chargebackAsset?: string;
|
|
126
|
-
chargebackAssetId?: number;
|
|
127
|
-
chargebackTarget?: string;
|
|
128
|
-
chargeBackTxId?: string;
|
|
129
|
-
chargeBackTxUrl?: string;
|
|
130
|
-
chargebackDate?: Date;
|
|
131
|
-
date: Date;
|
|
132
|
-
}
|
|
133
|
-
export interface NetworkStartTx {
|
|
134
|
-
txId: string;
|
|
135
|
-
txUrl: string;
|
|
136
|
-
amount: number;
|
|
137
|
-
exchangeRate: number;
|
|
138
|
-
asset: string;
|
|
139
|
-
}
|
|
140
|
-
export interface Transaction extends UnassignedTransaction {
|
|
141
|
-
reason: TransactionFailureReason;
|
|
142
|
-
exchangeRate?: number;
|
|
143
|
-
priceSteps?: PriceStep[];
|
|
144
|
-
rate?: number;
|
|
145
|
-
outputAmount?: number;
|
|
146
|
-
outputAsset?: string;
|
|
147
|
-
outputAssetId?: number;
|
|
148
|
-
outputBlockchain?: Blockchain;
|
|
149
|
-
outputPaymentMethod?: PaymentMethod;
|
|
150
|
-
outputTxId?: string;
|
|
151
|
-
outputTxUrl?: string;
|
|
152
|
-
fees?: Fees;
|
|
153
|
-
externalTransactionId?: string;
|
|
154
|
-
networkStartTx?: NetworkStartTx;
|
|
155
|
-
}
|
|
156
|
-
export interface DetailTransaction extends Transaction {
|
|
157
|
-
sourceAccount?: string;
|
|
158
|
-
targetAccount?: string;
|
|
159
|
-
}
|
|
160
|
-
export interface TransactionTarget {
|
|
161
|
-
id: number;
|
|
162
|
-
bankUsage: string;
|
|
163
|
-
asset: Asset;
|
|
164
|
-
address: string;
|
|
165
|
-
}
|
|
166
|
-
export interface TransactionFilter {
|
|
167
|
-
buy?: boolean;
|
|
168
|
-
sell?: boolean;
|
|
169
|
-
staking?: boolean;
|
|
170
|
-
ref?: boolean;
|
|
171
|
-
lm?: boolean;
|
|
172
|
-
}
|
|
173
|
-
export interface RefundFeeData {
|
|
174
|
-
dfx: number;
|
|
175
|
-
network: number;
|
|
176
|
-
bank: number;
|
|
177
|
-
}
|
|
178
|
-
export interface RefundBankDetails {
|
|
179
|
-
name?: string;
|
|
180
|
-
address?: string;
|
|
181
|
-
houseNumber?: string;
|
|
182
|
-
zip?: string;
|
|
183
|
-
city?: string;
|
|
184
|
-
country?: string;
|
|
185
|
-
iban?: string;
|
|
186
|
-
bic?: string;
|
|
187
|
-
}
|
|
188
|
-
export interface TransactionRefundData {
|
|
189
|
-
expiryDate: Date;
|
|
190
|
-
fee: RefundFeeData;
|
|
191
|
-
refundAmount: number;
|
|
192
|
-
refundAsset: Asset | Fiat;
|
|
193
|
-
inputAmount: number;
|
|
194
|
-
inputAsset: Asset | Fiat;
|
|
195
|
-
refundTarget?: string;
|
|
196
|
-
bankDetails?: RefundBankDetails;
|
|
197
|
-
}
|
|
198
|
-
export interface TransactionHistoryQuery {
|
|
199
|
-
userAddress?: string;
|
|
200
|
-
from?: Date;
|
|
201
|
-
to?: Date;
|
|
202
|
-
format?: ExportFormat;
|
|
203
|
-
buy?: boolean;
|
|
204
|
-
sell?: boolean;
|
|
205
|
-
staking?: boolean;
|
|
206
|
-
ref?: boolean;
|
|
207
|
-
lm?: boolean;
|
|
208
|
-
}
|
|
209
|
-
export interface CreditorData {
|
|
210
|
-
name: string;
|
|
211
|
-
address: string;
|
|
212
|
-
houseNumber?: string;
|
|
213
|
-
zip: string;
|
|
214
|
-
city: string;
|
|
215
|
-
country: string;
|
|
216
|
-
}
|
|
217
|
-
export interface TransactionRefundTarget {
|
|
218
|
-
refundTarget?: string;
|
|
219
|
-
creditorData?: CreditorData;
|
|
220
|
-
}
|
|
221
|
-
export type TransactionFilterKey = keyof TransactionFilter;
|
|
1
|
+
export { TransactionUrl, FiatPaymentMethod, CryptoPaymentMethod, TransactionError, TransactionType, TransactionState, TransactionFailureReason, ExportType, ExportFormat, } from '@dfx.swiss/core';
|
|
2
|
+
export type { PaymentMethod, UnassignedTransaction, NetworkStartTx, Transaction, DetailTransaction, TransactionTarget, TransactionFilter, RefundFeeData, RefundBankDetails, TransactionRefundData, TransactionHistoryQuery, CreditorData, TransactionRefundTarget, TransactionFilterKey, } from '@dfx.swiss/core';
|
|
222
3
|
//# sourceMappingURL=transaction.d.ts.map
|