@coinflowlabs/angular 1.3.1 → 1.4.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 +9 -0
  2. package/fesm2022/coinflowlabs-angular.mjs +176 -60
  3. package/fesm2022/coinflowlabs-angular.mjs.map +1 -1
  4. package/package.json +5 -5
  5. package/types/coinflowlabs-angular.d.ts +1494 -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 -539
  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 -189
  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 -99
  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,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,99 +0,0 @@
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' | 'digitalCollectibles' | 'digitalCollectiblesMarketplace' | 'digitalGiftingMarketplace' | 'sweepstakes' | 'virtualSportsEvents' | 'contractInvoicing' | 'onlineCasino' | 'cryptoOnramp' | 'gaming' | 'travelDocuments' | 'musicStreaming' | 'digitalContent' | 'eBooks' | 'digitalSubscriptionContent';
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
- }
@@ -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
- };