@coinflowlabs/vue 1.1.0 → 1.2.0
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/coinflow-vue.js +1812 -1799
- package/dist/coinflow-vue.umd.cjs +6 -6
- package/dist/lib/common/CoinflowTypes.d.ts +65 -37
- package/dist/lib/common/index.d.ts +5 -1
- package/dist/lib/common/types/AnyObject.d.ts +5 -0
- package/dist/lib/common/types/CartitemCommon.d.ts +163 -0
- package/dist/lib/common/types/Subtotal.d.ts +173 -0
- package/dist/lib/common/types/cryptoCartItem.d.ts +62 -0
- package/dist/lib/common/types/giftCardCartItem.d.ts +58 -0
- package/dist/lib/common/types/moneyTopUpCartItem.d.ts +44 -0
- package/dist/lib/common/types/nftCartItem.d.ts +99 -0
- package/package.json +3 -3
- package/dist/lib/common/Subtotal.d.ts +0 -86
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { AnyObject } from './AnyObject';
|
|
2
|
+
/**
|
|
3
|
+
* An nft cart item
|
|
4
|
+
*/
|
|
5
|
+
export type nftCartItem = {
|
|
6
|
+
/**
|
|
7
|
+
* Denotes the cart item class. The item schema is chosen based on this value
|
|
8
|
+
*/
|
|
9
|
+
itemClass: 'nft';
|
|
10
|
+
/**
|
|
11
|
+
* The name of the related product
|
|
12
|
+
*
|
|
13
|
+
* @minLength 1
|
|
14
|
+
*/
|
|
15
|
+
productName: string;
|
|
16
|
+
/**
|
|
17
|
+
* The product type. Possible values include: inGameProduct, gameOfSkill, dataStorage, computingResources, sportsTicket, eSportsTicket, musicTicket, conferenceTicket, virtualSportsTicket, virtualESportsTicket, virtualMusicTicket, virtualConferenceTicket, alcohol, DLC, subscription, fundACause, realEstate, computingContract, digitalArt, topUp
|
|
18
|
+
*/
|
|
19
|
+
productType: productType;
|
|
20
|
+
/**
|
|
21
|
+
* The item's list price
|
|
22
|
+
*/
|
|
23
|
+
listPrice?: {
|
|
24
|
+
/**
|
|
25
|
+
* The amount in the currency, which is specified in the `currency` property
|
|
26
|
+
*/
|
|
27
|
+
valueInCurrency?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Currency specified as a three letter code according to ISO 4217
|
|
30
|
+
*/
|
|
31
|
+
currency?: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* The item's list price
|
|
35
|
+
*/
|
|
36
|
+
sellingPrice: {
|
|
37
|
+
/**
|
|
38
|
+
* The amount in the currency, which is specified in the `currency` property
|
|
39
|
+
*/
|
|
40
|
+
valueInCurrency?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Currency specified as a three-letter code according to ISO 4217
|
|
43
|
+
*/
|
|
44
|
+
currency?: string;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* The number of units sold
|
|
48
|
+
*/
|
|
49
|
+
quantity: number;
|
|
50
|
+
/**
|
|
51
|
+
* Any additional data that the store can provide on the product, e.g. description, link to image, etc.
|
|
52
|
+
*/
|
|
53
|
+
rawProductData?: AnyObject;
|
|
54
|
+
seller?: {
|
|
55
|
+
id: string;
|
|
56
|
+
email: string;
|
|
57
|
+
firstName: string;
|
|
58
|
+
lastName: string;
|
|
59
|
+
dob: string;
|
|
60
|
+
rawSellerData: Record<string, any>;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export type productType = 'inGameProduct' | 'gameOfSkill' | 'dataStorage' | 'computingResources' | 'sportsTicket' | 'eSportsTicket' | 'musicTicket' | 'conferenceTicket' | 'virtualSportsTicket' | 'virtualESportsTicket' | 'virtualMusicTicket' | 'virtualConferenceTicket' | 'alcohol' | 'DLC' | 'subscription' | 'fundACause' | 'realEstate' | 'computingContract' | 'digitalArt' | 'topUp' | 'ownershipContract' | 'inGameCurrency';
|
|
64
|
+
export declare namespace nftCartItem {
|
|
65
|
+
/**
|
|
66
|
+
* Denotes the cart item class. The item schema is chosen based on this value
|
|
67
|
+
*/
|
|
68
|
+
enum itemClass {
|
|
69
|
+
NFT = "nft"
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The product type. Possible values include: inGameProduct, gameOfSkill, dataStorage, computingResources, sportsTicket, eSportsTicket, musicTicket, conferenceTicket, virtualSportsTicket, virtualESportsTicket, virtualMusicTicket, virtualConferenceTicket, alcohol, DLC, subscription, fundACause, realEstate, computingContract, digitalArt, topUp
|
|
73
|
+
*/
|
|
74
|
+
enum productType {
|
|
75
|
+
IN_GAME_PRODUCT = "inGameProduct",
|
|
76
|
+
GAME_OF_SKILL = "gameOfSkill",
|
|
77
|
+
DATA_STORAGE = "dataStorage",
|
|
78
|
+
COMPUTING_RESOURCES = "computingResources",
|
|
79
|
+
SPORTS_TICKET = "sportsTicket",
|
|
80
|
+
E_SPORTS_TICKET = "eSportsTicket",
|
|
81
|
+
MUSIC_TICKET = "musicTicket",
|
|
82
|
+
CONFERENCE_TICKET = "conferenceTicket",
|
|
83
|
+
VIRTUAL_SPORTS_TICKET = "virtualSportsTicket",
|
|
84
|
+
VIRTUAL_ESPORTS_TICKET = "virtualESportsTicket",
|
|
85
|
+
VIRTUAL_MUSIC_TICKET = "virtualMusicTicket",
|
|
86
|
+
VIRTUAL_CONFERENCE_TICKET = "virtualConferenceTicket",
|
|
87
|
+
ALCOHOL = "alcohol",
|
|
88
|
+
DLC = "DLC",
|
|
89
|
+
SUBSCRIPTION = "subscription",
|
|
90
|
+
FUND_ACAUSE = "fundACause",
|
|
91
|
+
REAL_ESTATE = "realEstate",
|
|
92
|
+
COMPUTING_CONTRACT = "computingContract",
|
|
93
|
+
DIGITAL_ART = "digitalArt",
|
|
94
|
+
TOP_UP = "topUp",
|
|
95
|
+
OWNERSHIP_CONTRACT = "ownershipContract",
|
|
96
|
+
IN_GAME_CURRENCY = "inGameCurrency",
|
|
97
|
+
MONEY_TOP_UP_CART_ITEM = "moneyTopUpCartItem"
|
|
98
|
+
}
|
|
99
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinflowlabs/vue",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/bs58": "^4.0.4",
|
|
34
34
|
"@rushstack/eslint-patch": "^1.11.0",
|
|
35
|
-
"@types/node": "^22.13.
|
|
35
|
+
"@types/node": "^22.13.14",
|
|
36
36
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
37
37
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
38
38
|
"@vue/eslint-config-typescript": "^14.5.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"eslint-plugin-vue": "^10.0.0",
|
|
42
42
|
"prettier": "^3.5.3",
|
|
43
43
|
"typescript": "^5.6.3",
|
|
44
|
-
"vite": "^6.2.
|
|
44
|
+
"vite": "^6.2.4",
|
|
45
45
|
"vite-plugin-dts": "^4.4.0",
|
|
46
46
|
"vitepress": "^1.6.3",
|
|
47
47
|
"vue": "^3.5.13",
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
export declare enum Currency {
|
|
2
|
-
USD = "USD",// Dollar - USA
|
|
3
|
-
EUR = "EUR",// Euro - European Union
|
|
4
|
-
GBP = "GBP",// Pound - United Kingdom
|
|
5
|
-
BRL = "BRL",// Real - Brazil
|
|
6
|
-
ARS = "ARS",// Peso - Argentina
|
|
7
|
-
BHD = "BHD",// Dinar - Bahrain
|
|
8
|
-
BWP = "BWP",// Pula - Botswana
|
|
9
|
-
BND = "BND",// Dollar - Brunei
|
|
10
|
-
BGN = "BGN",// Lev - Bulgaria
|
|
11
|
-
CLP = "CLP",// Peso - Chile
|
|
12
|
-
HRK = "HRK",// Kuna - Croatia
|
|
13
|
-
DJF = "DJF",// Djibouti Franc - Djibouti
|
|
14
|
-
DOP = "DOP",// Peso - Dominican Republic
|
|
15
|
-
EGP = "EGP",// Pounds - Egypt
|
|
16
|
-
GEL = "GEL",// Lari - Georgia
|
|
17
|
-
HUF = "HUF",// Forint - Hungary
|
|
18
|
-
ISK = "ISK",// Krona - Iceland
|
|
19
|
-
INR = "INR",// Rupees - India
|
|
20
|
-
ILS = "ILS",// New Shekel - Israel
|
|
21
|
-
JMD = "JMD",// Dollar - Jamaica
|
|
22
|
-
JOD = "JOD",// Dinar - Jordan
|
|
23
|
-
KZT = "KZT",// Tenge - Kazakhstan
|
|
24
|
-
KWD = "KWD",// Dinar - Kuwait
|
|
25
|
-
KGS = "KGS",// Som - Kyrgyzstan
|
|
26
|
-
LVL = "LVL",// Lat - Latvia
|
|
27
|
-
LTL = "LTL",// Litai - Lithuania
|
|
28
|
-
MWK = "MWK",// Kwacha - Malawi
|
|
29
|
-
MYR = "MYR",// Ringgit - Malaysia
|
|
30
|
-
MUR = "MUR",// Rupee - Mauritius
|
|
31
|
-
MXN = "MXN",// Peso - Mexico
|
|
32
|
-
MAD = "MAD",// Dirham - Morocco
|
|
33
|
-
NAD = "NAD",// Dollar - Namibia
|
|
34
|
-
NZD = "NZD",// Dollars - New Zealand
|
|
35
|
-
PEN = "PEN",// Nuevo Sol - Peru
|
|
36
|
-
PHP = "PHP",// Peso - Philippines
|
|
37
|
-
PLN = "PLN",// Zloty - Poland
|
|
38
|
-
RON = "RON",// Leu - Romania
|
|
39
|
-
SAR = "SAR",// Riyal - Saudi Arabia
|
|
40
|
-
SGD = "SGD",// Dollar - Singapore
|
|
41
|
-
LKR = "LKR",// Rupee - Sri Lanka
|
|
42
|
-
TWD = "TWD",// New Dollar - Taiwan
|
|
43
|
-
TZS = "TZS",// Shilling - Tanzania
|
|
44
|
-
THB = "THB",// Baht - Thailand
|
|
45
|
-
TRY = "TRY",// New Lira - Turkey
|
|
46
|
-
UAH = "UAH"
|
|
47
|
-
}
|
|
48
|
-
export type WithdrawCurrency = Currency.USD | Currency.EUR | Currency.GBP | Currency.BRL;
|
|
49
|
-
export declare const WithdrawCurrencies: {
|
|
50
|
-
readonly USD: Currency.USD;
|
|
51
|
-
readonly EUR: Currency.EUR;
|
|
52
|
-
readonly GBP: Currency.GBP;
|
|
53
|
-
readonly BRL: Currency.BRL;
|
|
54
|
-
};
|
|
55
|
-
export declare function isWithdrawCurrency(currency: Currency): currency is WithdrawCurrency;
|
|
56
|
-
export interface Cents {
|
|
57
|
-
/**
|
|
58
|
-
* @isInt Cents must be an integer
|
|
59
|
-
* @minimum 0 Minimum Cents is 0
|
|
60
|
-
*/
|
|
61
|
-
cents: number;
|
|
62
|
-
}
|
|
63
|
-
export interface CurrencyCents extends Cents {
|
|
64
|
-
currency: Currency;
|
|
65
|
-
}
|
|
66
|
-
export interface TokenSubtotal {
|
|
67
|
-
/**
|
|
68
|
-
* The tokens address
|
|
69
|
-
*
|
|
70
|
-
* Solana - Token Mint Address
|
|
71
|
-
* Evm - Token Contract Address
|
|
72
|
-
*/
|
|
73
|
-
address: string;
|
|
74
|
-
/**
|
|
75
|
-
* Number of tokens
|
|
76
|
-
*/
|
|
77
|
-
amount: number | string;
|
|
78
|
-
/**
|
|
79
|
-
* Number of decimals for the token
|
|
80
|
-
*/
|
|
81
|
-
decimals?: number;
|
|
82
|
-
}
|
|
83
|
-
export type Subtotal = CurrencyCents | Cents | TokenSubtotal;
|
|
84
|
-
export interface NearDeposit {
|
|
85
|
-
yocto: string;
|
|
86
|
-
}
|