@coinflowlabs/react 5.1.0 → 5.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.
Files changed (64) hide show
  1. package/build/cjs/common/CoinflowTypes.d.ts +65 -37
  2. package/build/cjs/common/CoinflowTypes.js.map +1 -1
  3. package/build/cjs/common/CoinflowUtils.js +1 -1
  4. package/build/cjs/common/CoinflowUtils.js.map +1 -1
  5. package/build/cjs/common/index.d.ts +5 -1
  6. package/build/cjs/common/index.js +5 -1
  7. package/build/cjs/common/index.js.map +1 -1
  8. package/build/cjs/common/types/AnyObject.d.ts +5 -0
  9. package/build/cjs/common/types/AnyObject.js +3 -0
  10. package/build/cjs/common/types/AnyObject.js.map +1 -0
  11. package/build/cjs/common/types/CartitemCommon.d.ts +163 -0
  12. package/build/cjs/common/types/CartitemCommon.js +3 -0
  13. package/build/cjs/common/types/CartitemCommon.js.map +1 -0
  14. package/build/cjs/common/types/Subtotal.d.ts +173 -0
  15. package/build/cjs/common/types/Subtotal.js +150 -0
  16. package/build/cjs/common/types/Subtotal.js.map +1 -0
  17. package/build/cjs/common/types/cryptoCartItem.d.ts +62 -0
  18. package/build/cjs/common/types/cryptoCartItem.js +3 -0
  19. package/build/cjs/common/types/cryptoCartItem.js.map +1 -0
  20. package/build/cjs/common/types/giftCardCartItem.d.ts +58 -0
  21. package/build/cjs/common/types/giftCardCartItem.js +3 -0
  22. package/build/cjs/common/types/giftCardCartItem.js.map +1 -0
  23. package/build/cjs/common/types/moneyTopUpCartItem.d.ts +44 -0
  24. package/build/cjs/common/types/moneyTopUpCartItem.js +3 -0
  25. package/build/cjs/common/types/moneyTopUpCartItem.js.map +1 -0
  26. package/build/cjs/common/types/nftCartItem.d.ts +99 -0
  27. package/build/cjs/common/types/nftCartItem.js +47 -0
  28. package/build/cjs/common/types/nftCartItem.js.map +1 -0
  29. package/build/esm/common/CoinflowTypes.d.ts +65 -37
  30. package/build/esm/common/CoinflowTypes.js.map +1 -1
  31. package/build/esm/common/CoinflowUtils.js +1 -1
  32. package/build/esm/common/CoinflowUtils.js.map +1 -1
  33. package/build/esm/common/index.d.ts +5 -1
  34. package/build/esm/common/index.js +5 -1
  35. package/build/esm/common/index.js.map +1 -1
  36. package/build/esm/common/types/AnyObject.d.ts +5 -0
  37. package/build/esm/common/types/AnyObject.js +2 -0
  38. package/build/esm/common/types/AnyObject.js.map +1 -0
  39. package/build/esm/common/types/CartitemCommon.d.ts +163 -0
  40. package/build/esm/common/types/CartitemCommon.js +2 -0
  41. package/build/esm/common/types/CartitemCommon.js.map +1 -0
  42. package/build/esm/common/types/Subtotal.d.ts +173 -0
  43. package/build/esm/common/types/Subtotal.js +145 -0
  44. package/build/esm/common/types/Subtotal.js.map +1 -0
  45. package/build/esm/common/types/cryptoCartItem.d.ts +62 -0
  46. package/build/esm/common/types/cryptoCartItem.js +2 -0
  47. package/build/esm/common/types/cryptoCartItem.js.map +1 -0
  48. package/build/esm/common/types/giftCardCartItem.d.ts +58 -0
  49. package/build/esm/common/types/giftCardCartItem.js +2 -0
  50. package/build/esm/common/types/giftCardCartItem.js.map +1 -0
  51. package/build/esm/common/types/moneyTopUpCartItem.d.ts +44 -0
  52. package/build/esm/common/types/moneyTopUpCartItem.js +2 -0
  53. package/build/esm/common/types/moneyTopUpCartItem.js.map +1 -0
  54. package/build/esm/common/types/nftCartItem.d.ts +99 -0
  55. package/build/esm/common/types/nftCartItem.js +44 -0
  56. package/build/esm/common/types/nftCartItem.js.map +1 -0
  57. package/build/tsconfig.tsbuildinfo +1 -1
  58. package/package.json +1 -1
  59. package/build/cjs/common/Subtotal.d.ts +0 -86
  60. package/build/cjs/common/Subtotal.js +0 -63
  61. package/build/cjs/common/Subtotal.js.map +0 -1
  62. package/build/esm/common/Subtotal.d.ts +0 -86
  63. package/build/esm/common/Subtotal.js +0 -59
  64. package/build/esm/common/Subtotal.js.map +0 -1
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=giftCardCartItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"giftCardCartItem.js","sourceRoot":"","sources":["../../../../src/common/types/giftCardCartItem.ts"],"names":[],"mappings":""}
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moneyTopUpCartItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moneyTopUpCartItem.js","sourceRoot":"","sources":["../../../../src/common/types/moneyTopUpCartItem.ts"],"names":[],"mappings":""}
@@ -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
+ }
@@ -0,0 +1,44 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export var nftCartItem;
6
+ (function (nftCartItem) {
7
+ /**
8
+ * Denotes the cart item class. The item schema is chosen based on this value
9
+ */
10
+ var itemClass;
11
+ (function (itemClass) {
12
+ itemClass["NFT"] = "nft";
13
+ })(itemClass = nftCartItem.itemClass || (nftCartItem.itemClass = {}));
14
+ /**
15
+ * 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
16
+ */
17
+ var productType;
18
+ (function (productType) {
19
+ productType["IN_GAME_PRODUCT"] = "inGameProduct";
20
+ productType["GAME_OF_SKILL"] = "gameOfSkill";
21
+ productType["DATA_STORAGE"] = "dataStorage";
22
+ productType["COMPUTING_RESOURCES"] = "computingResources";
23
+ productType["SPORTS_TICKET"] = "sportsTicket";
24
+ productType["E_SPORTS_TICKET"] = "eSportsTicket";
25
+ productType["MUSIC_TICKET"] = "musicTicket";
26
+ productType["CONFERENCE_TICKET"] = "conferenceTicket";
27
+ productType["VIRTUAL_SPORTS_TICKET"] = "virtualSportsTicket";
28
+ productType["VIRTUAL_ESPORTS_TICKET"] = "virtualESportsTicket";
29
+ productType["VIRTUAL_MUSIC_TICKET"] = "virtualMusicTicket";
30
+ productType["VIRTUAL_CONFERENCE_TICKET"] = "virtualConferenceTicket";
31
+ productType["ALCOHOL"] = "alcohol";
32
+ productType["DLC"] = "DLC";
33
+ productType["SUBSCRIPTION"] = "subscription";
34
+ productType["FUND_ACAUSE"] = "fundACause";
35
+ productType["REAL_ESTATE"] = "realEstate";
36
+ productType["COMPUTING_CONTRACT"] = "computingContract";
37
+ productType["DIGITAL_ART"] = "digitalArt";
38
+ productType["TOP_UP"] = "topUp";
39
+ productType["OWNERSHIP_CONTRACT"] = "ownershipContract";
40
+ productType["IN_GAME_CURRENCY"] = "inGameCurrency";
41
+ productType["MONEY_TOP_UP_CART_ITEM"] = "moneyTopUpCartItem";
42
+ })(productType = nftCartItem.productType || (nftCartItem.productType = {}));
43
+ })(nftCartItem || (nftCartItem = {}));
44
+ //# sourceMappingURL=nftCartItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nftCartItem.js","sourceRoot":"","sources":["../../../../src/common/types/nftCartItem.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AA0FpB,MAAM,KAAW,WAAW,CAoC3B;AApCD,WAAiB,WAAW;IAC1B;;OAEG;IACH,IAAY,SAEX;IAFD,WAAY,SAAS;QACnB,wBAAW,CAAA;IACb,CAAC,EAFW,SAAS,GAAT,qBAAS,KAAT,qBAAS,QAEpB;IAED;;OAEG;IACH,IAAY,WAwBX;IAxBD,WAAY,WAAW;QACrB,gDAAiC,CAAA;QACjC,4CAA6B,CAAA;QAC7B,2CAA4B,CAAA;QAC5B,yDAA0C,CAAA;QAC1C,6CAA8B,CAAA;QAC9B,gDAAiC,CAAA;QACjC,2CAA4B,CAAA;QAC5B,qDAAsC,CAAA;QACtC,4DAA6C,CAAA;QAC7C,8DAA+C,CAAA;QAC/C,0DAA2C,CAAA;QAC3C,oEAAqD,CAAA;QACrD,kCAAmB,CAAA;QACnB,0BAAW,CAAA;QACX,4CAA6B,CAAA;QAC7B,yCAA0B,CAAA;QAC1B,yCAA0B,CAAA;QAC1B,uDAAwC,CAAA;QACxC,yCAA0B,CAAA;QAC1B,+BAAgB,CAAA;QAChB,uDAAwC,CAAA;QACxC,kDAAmC,CAAA;QACnC,4DAA6C,CAAA;IAC/C,CAAC,EAxBW,WAAW,GAAX,uBAAW,KAAX,uBAAW,QAwBtB;AACH,CAAC,EApCgB,WAAW,KAAX,WAAW,QAoC3B"}