@coinflowlabs/angular 1.1.0 → 1.1.1

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.
@@ -0,0 +1,62 @@
1
+ import { RecipientInfo, SellerInfo } from './CartitemCommon';
2
+ /**
3
+ * Represents a crypto item in a shopping cart
4
+ */
5
+ export interface CryptoCartItem {
6
+ /**
7
+ * Denotes the cart item class. The item schema is chosen based on this value.
8
+ * Allowed value: crypto
9
+ * Example: crypto
10
+ */
11
+ itemClass: 'crypto';
12
+ /**
13
+ * The cart items's unique ID
14
+ * Example: 5de33332-546a-4171-8988-2a43d2bfe9c6
15
+ */
16
+ id?: string;
17
+ /**
18
+ * Any additional product data which can be provided, e.g. description, link to image, etc
19
+ * Example: {"any":"data","description":"This is the product description"}
20
+ */
21
+ rawProductData?: Record<string, any>;
22
+ /**
23
+ * The amount in the crypto currency which is specified in the `cryptoCurrency` property
24
+ * Example: 1.04112
25
+ * Pattern: ^[0-9]+(\.[0-9]+)?$
26
+ */
27
+ units: string;
28
+ /**
29
+ * The crypto-currency symbol (uppercase)
30
+ * Example: BTC
31
+ * Pattern: ^[A-Z0-9-]+$
32
+ */
33
+ cryptoCurrency: string;
34
+ /**
35
+ * The price per 1 unit
36
+ */
37
+ unitPrice: {
38
+ /**
39
+ * The amount in the currency, which is specified in the `currency` property
40
+ * Example: 90
41
+ */
42
+ valueInCurrency: number;
43
+ /**
44
+ * Currency specified as a three letter code according to ISO 4217
45
+ * Example: USD
46
+ */
47
+ currency: string;
48
+ };
49
+ /**
50
+ * The expected delay in delivery, in hours
51
+ * Min value: 0
52
+ */
53
+ expectedDeliveryDelay?: number;
54
+ /**
55
+ * The user's personal info
56
+ */
57
+ recipientInfo: RecipientInfo;
58
+ /**
59
+ * Seller info
60
+ */
61
+ seller?: SellerInfo;
62
+ }
@@ -0,0 +1,58 @@
1
+ import { RecipientInfo, SellerInfo } from './CartitemCommon';
2
+ export interface GiftCardCartItem {
3
+ itemClass: 'giftCard';
4
+ productType: 'giftCard';
5
+ /**
6
+ * The cart items’s unique ID
7
+ */
8
+ id: string;
9
+ /**
10
+ * The number of units sold
11
+ */
12
+ quantity: number;
13
+ /**
14
+ * How the product was fulfilled.
15
+ */
16
+ itemFulfillment: 'digital' | 'physical';
17
+ sellingPrice: {
18
+ valueInCurrency: number;
19
+ currency: string;
20
+ };
21
+ /**
22
+ * Any additional product data which can be provided, e.g. description, link to image, etc
23
+ */
24
+ rawProductData?: Record<string, any>;
25
+ /**
26
+ * The stock-keeping unit (SKU) number
27
+ */
28
+ sku?: string;
29
+ /**
30
+ * The name of the brand
31
+ */
32
+ brand?: string;
33
+ /**
34
+ * The category in the site/app in which the item was classified (e.g., fashion)
35
+ */
36
+ categories?: string[];
37
+ listPrice?: {
38
+ valueInCurrency: number;
39
+ currency: string;
40
+ };
41
+ isGift?: boolean;
42
+ /**
43
+ * The user's personal info
44
+ */
45
+ recipientInfo?: RecipientInfo;
46
+ /**
47
+ * The item's selling price
48
+ */
49
+ seller?: SellerInfo;
50
+ /**
51
+ * The expected delay in delivery, in hours
52
+ */
53
+ expectedDeliveryDelay?: number;
54
+ /**
55
+ * Represents whether the item amount is taken from a preset list, e.g. 25, 50, 100, etc. or whether it was a different amount, e.g. 27
56
+ */
57
+ isPresetAmount?: boolean;
58
+ }
@@ -0,0 +1,44 @@
1
+ import { CurrencyAmount, RecipientInfo } from './CartitemCommon';
2
+ /**
3
+ * Represents a money top-up item in a shopping cart
4
+ */
5
+ export interface MoneyTopUpCartItem {
6
+ /**
7
+ * Denotes the cart item class. The item schema is chosen based on this value.
8
+ * Allowed value: moneyTopUp
9
+ * Example: moneyTopUp
10
+ */
11
+ itemClass: 'moneyTopUp';
12
+ /**
13
+ * The cart items's unique ID
14
+ * Example: 5de33332-546a-4171-8988-2a43d2bfe9c6
15
+ */
16
+ id?: string;
17
+ /**
18
+ * Any additional product data which can be provided, e.g. description, link to image, etc
19
+ * Example: {"any":"data","description":"This is the product description"}
20
+ */
21
+ rawProductData?: Record<string, any>;
22
+ /**
23
+ * The item's selling price
24
+ */
25
+ sellingPrice: CurrencyAmount;
26
+ /**
27
+ * The user's personal info
28
+ */
29
+ recipientInfo?: RecipientInfo;
30
+ /**
31
+ * The item's topUp amount
32
+ */
33
+ topUpAmount: CurrencyAmount;
34
+ /**
35
+ * Quantity
36
+ * Example: 2
37
+ */
38
+ quantity: number;
39
+ /**
40
+ * Represents whether the item amount is taken from a preset list, e.g. 25, 50, 100, etc.
41
+ * or whether it was a different amount, e.g. 27
42
+ */
43
+ isPresetAmount: boolean;
44
+ }
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinflowlabs/angular",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",
@@ -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
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class CoinflowApplePayOverlayComponent {
3
- color: 'white' | 'black';
4
- fill(): "#000" | "#FFF";
5
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowApplePayOverlayComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowApplePayOverlayComponent, "coinflow-apple-pay-overlay", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
7
- }