@coinflowlabs/angular 1.3.2 → 1.5.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.
Files changed (37) hide show
  1. package/README.md +8 -0
  2. package/fesm2022/coinflowlabs-angular.mjs +99 -59
  3. package/fesm2022/coinflowlabs-angular.mjs.map +1 -1
  4. package/package.json +5 -5
  5. package/types/coinflowlabs-angular.d.ts +1529 -0
  6. package/index.d.ts +0 -5
  7. package/lib/card-form/CardFormService.d.ts +0 -14
  8. package/lib/card-form/coinflow-card-number-input.component.d.ts +0 -17
  9. package/lib/card-form/coinflow-card-number-only-input.component.d.ts +0 -17
  10. package/lib/card-form/coinflow-cvv-input.component.d.ts +0 -6
  11. package/lib/card-form/coinflow-cvv-only-input.component.d.ts +0 -19
  12. package/lib/coinflow-iframe.component.d.ts +0 -22
  13. package/lib/coinflow-purchase-history.component.d.ts +0 -5
  14. package/lib/coinflow-purchase-protection.component.d.ts +0 -5
  15. package/lib/coinflow-purchase.component.d.ts +0 -11
  16. package/lib/coinflow-withdraw-history.component.d.ts +0 -5
  17. package/lib/coinflow-withdraw.component.d.ts +0 -11
  18. package/lib/common/CoinflowLibMessageHandlers.d.ts +0 -35
  19. package/lib/common/CoinflowTypes.d.ts +0 -547
  20. package/lib/common/CoinflowUtils.d.ts +0 -24
  21. package/lib/common/EventBus.d.ts +0 -6
  22. package/lib/common/SolanaPeerDeps.d.ts +0 -5
  23. package/lib/common/card-form/TokenEx.d.ts +0 -171
  24. package/lib/common/card-form/tokenexHelpers.d.ts +0 -35
  25. package/lib/common/index.d.ts +0 -11
  26. package/lib/common/types/AnyObject.d.ts +0 -5
  27. package/lib/common/types/CartitemCommon.d.ts +0 -163
  28. package/lib/common/types/Subtotal.d.ts +0 -210
  29. package/lib/common/types/cryptoCartItem.d.ts +0 -63
  30. package/lib/common/types/giftCardCartItem.d.ts +0 -58
  31. package/lib/common/types/moneyTopUpCartItem.d.ts +0 -44
  32. package/lib/common/types/nftCartItem.d.ts +0 -108
  33. package/lib/mobile-wallet/coinflow-apple-pay-button.component.d.ts +0 -11
  34. package/lib/mobile-wallet/coinflow-google-pay-button.component.d.ts +0 -10
  35. package/lib/mobile-wallet/coinflow-mobile-wallet-button.component.d.ts +0 -22
  36. package/lib/mobile-wallet/google-pay-overlay.component.d.ts +0 -6
  37. package/public-api.d.ts +0 -16
@@ -1,58 +0,0 @@
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
- }
@@ -1,44 +0,0 @@
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
- }
@@ -1,108 +0,0 @@
1
- import { AnyObject } from './AnyObject';
2
- import { SellerInfo } from './CartitemCommon';
3
- /**
4
- * An nft cart item
5
- */
6
- export type nftCartItem = {
7
- /**
8
- * Denotes the cart item class. The item schema is chosen based on this value
9
- */
10
- itemClass: 'nft';
11
- /**
12
- * The name of the related product
13
- *
14
- * @minLength 1
15
- */
16
- productName: string;
17
- /**
18
- * 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
19
- */
20
- productType: productType;
21
- /**
22
- * The item's list price
23
- */
24
- listPrice?: {
25
- /**
26
- * The amount in the currency, which is specified in the `currency` property
27
- */
28
- valueInCurrency?: number;
29
- /**
30
- * Currency specified as a three letter code according to ISO 4217
31
- */
32
- currency?: string;
33
- };
34
- /**
35
- * The item's list price
36
- */
37
- sellingPrice: {
38
- /**
39
- * The amount in the currency, which is specified in the `currency` property
40
- */
41
- valueInCurrency?: number;
42
- /**
43
- * Currency specified as a three-letter code according to ISO 4217
44
- */
45
- currency?: string;
46
- };
47
- /**
48
- * The number of units sold
49
- */
50
- quantity: number;
51
- /**
52
- * Any additional data that the store can provide on the product, e.g. description, link to image, etc.
53
- */
54
- rawProductData?: AnyObject;
55
- seller?: SellerInfo;
56
- transactionHistory?: TransactionHistoryItem[];
57
- };
58
- type TransactionHistoryItem = {
59
- txHash: string;
60
- blockNumber: number;
61
- txTime: string;
62
- assetID: string;
63
- registryContract: string;
64
- from: string;
65
- to: string;
66
- paymentToken: string;
67
- paymentAmount: string;
68
- chain: string;
69
- txType: string;
70
- };
71
- 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' | 'digitalCollectibles' | 'digitalCollectiblesMarketplace' | 'digitalGiftingMarketplace' | 'sweepstakes' | 'virtualSportsEvents' | 'contractInvoicing' | 'onlineCasino' | 'cryptoOnramp' | 'gaming' | 'travelDocuments' | 'musicStreaming' | 'digitalContent' | 'eBooks' | 'digitalSubscriptionContent';
72
- export declare namespace nftCartItem {
73
- /**
74
- * Denotes the cart item class. The item schema is chosen based on this value
75
- */
76
- enum itemClass {
77
- NFT = "nft"
78
- }
79
- /**
80
- * 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
81
- */
82
- enum productType {
83
- IN_GAME_PRODUCT = "inGameProduct",
84
- GAME_OF_SKILL = "gameOfSkill",
85
- DATA_STORAGE = "dataStorage",
86
- COMPUTING_RESOURCES = "computingResources",
87
- SPORTS_TICKET = "sportsTicket",
88
- E_SPORTS_TICKET = "eSportsTicket",
89
- MUSIC_TICKET = "musicTicket",
90
- CONFERENCE_TICKET = "conferenceTicket",
91
- VIRTUAL_SPORTS_TICKET = "virtualSportsTicket",
92
- VIRTUAL_ESPORTS_TICKET = "virtualESportsTicket",
93
- VIRTUAL_MUSIC_TICKET = "virtualMusicTicket",
94
- VIRTUAL_CONFERENCE_TICKET = "virtualConferenceTicket",
95
- ALCOHOL = "alcohol",
96
- DLC = "DLC",
97
- SUBSCRIPTION = "subscription",
98
- FUND_ACAUSE = "fundACause",
99
- REAL_ESTATE = "realEstate",
100
- COMPUTING_CONTRACT = "computingContract",
101
- DIGITAL_ART = "digitalArt",
102
- TOP_UP = "topUp",
103
- OWNERSHIP_CONTRACT = "ownershipContract",
104
- IN_GAME_CURRENCY = "inGameCurrency",
105
- MONEY_TOP_UP_CART_ITEM = "moneyTopUpCartItem"
106
- }
107
- }
108
- export {};
@@ -1,11 +0,0 @@
1
- import { CoinflowPurchaseProps } from '../common';
2
- import * as i0 from "@angular/core";
3
- export declare class CoinflowApplePayButtonComponent {
4
- purchaseProps: CoinflowPurchaseProps & {
5
- color: 'white' | 'black';
6
- onError?: (message: string) => void;
7
- };
8
- fill(): "#000" | "#FFF";
9
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowApplePayButtonComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowApplePayButtonComponent, "lib-coinflow-apple-pay-button", never, { "purchaseProps": { "alias": "purchaseProps"; "required": false; }; }, {}, never, never, true, never>;
11
- }
@@ -1,10 +0,0 @@
1
- import { CoinflowPurchaseProps } from '../common';
2
- import * as i0 from "@angular/core";
3
- export declare class CoinflowGooglePayButtonComponent {
4
- purchaseProps: CoinflowPurchaseProps & {
5
- color: 'white' | 'black';
6
- onError?: (message: string) => void;
7
- };
8
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowGooglePayButtonComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowGooglePayButtonComponent, "lib-coinflow-google-pay-button", never, { "purchaseProps": { "alias": "purchaseProps"; "required": false; }; }, {}, never, never, true, never>;
10
- }
@@ -1,22 +0,0 @@
1
- import { CoinflowIFrameProps, CoinflowPurchaseProps, IFrameMessageHandlers } from '../common';
2
- import { WithOnLoad } from '../../public-api';
3
- import * as i0 from "@angular/core";
4
- export declare class CoinflowMobileWalletButtonComponent {
5
- purchaseProps: CoinflowPurchaseProps & WithOnLoad & {
6
- color: 'white' | 'black';
7
- onError?: (message: string) => void;
8
- };
9
- route: string;
10
- overlayDisplayOverride: string | undefined;
11
- alignItems: string | undefined;
12
- opacity: number;
13
- display: string;
14
- iframeProps?: CoinflowIFrameProps;
15
- messageHandlers?: IFrameMessageHandlers;
16
- handleMessage({ data }: {
17
- data: string;
18
- }): void;
19
- ngOnInit(): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowMobileWalletButtonComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowMobileWalletButtonComponent, "lib-coinflow-mobile-wallet-button", never, { "purchaseProps": { "alias": "purchaseProps"; "required": false; }; "route": { "alias": "route"; "required": false; }; "overlayDisplayOverride": { "alias": "overlayDisplayOverride"; "required": false; }; "alignItems": { "alias": "alignItems"; "required": false; }; }, {}, never, ["*"], true, never>;
22
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class CoinflowGooglePayOverlayComponent {
3
- color: 'white' | 'black';
4
- static ɵfac: i0.ɵɵFactoryDeclaration<CoinflowGooglePayOverlayComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<CoinflowGooglePayOverlayComponent, "coinflow-google-pay-overlay", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
6
- }
package/public-api.d.ts DELETED
@@ -1,16 +0,0 @@
1
- export * from './lib/coinflow-iframe.component';
2
- export * from './lib/coinflow-purchase.component';
3
- export * from './lib/coinflow-purchase-history.component';
4
- export * from './lib/coinflow-purchase-protection.component';
5
- export * from './lib/coinflow-withdraw.component';
6
- export * from './lib/coinflow-withdraw-history.component';
7
- export * from './lib/card-form/coinflow-card-number-input.component';
8
- export * from './lib/card-form/coinflow-card-number-only-input.component';
9
- export * from './lib/card-form/coinflow-cvv-input.component';
10
- export * from './lib/card-form/coinflow-cvv-only-input.component';
11
- export * from './lib/mobile-wallet/coinflow-apple-pay-button.component';
12
- export * from './lib/mobile-wallet/coinflow-google-pay-button.component';
13
- export * from './lib/common';
14
- export type WithOnLoad = {
15
- onLoad?: () => void | Promise<void>;
16
- };