@saasquatch/vanilla-components 1.2.4-24 → 1.2.4-25

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 (112) hide show
  1. package/CHANGELOG.md +163 -0
  2. package/LICENSE +21 -21
  3. package/dist/cjs/{WidgetHost-f349e877.js → WidgetHost-d7b870ce.js} +615 -772
  4. package/dist/cjs/{en-3a7cb52e.js → en-a49a5ef5.js} +2 -2
  5. package/dist/cjs/{index-09a04159.js → index-deb40352.js} +3 -54
  6. package/dist/cjs/loader.cjs.js +3 -3
  7. package/dist/cjs/sqh-close-button.cjs.entry.js +26 -26
  8. package/dist/cjs/{sqh-copy-button_14.cjs.entry.js → sqh-copy-button_12.cjs.entry.js} +1213 -2287
  9. package/dist/cjs/sqh-referral-code.cjs.entry.js +23 -23
  10. package/dist/cjs/sqh-rewards-actions.cjs.entry.js +27 -27
  11. package/dist/cjs/widget-components.cjs.js +3 -3
  12. package/dist/collection/collection-manifest.json +0 -2
  13. package/dist/collection/components/close-button/close-button.js +68 -70
  14. package/dist/collection/components/copy-button/copy-button.js +380 -380
  15. package/dist/collection/components/copy-link-button/copy-link-button.js +230 -230
  16. package/dist/collection/components/global-container/global-container.js +158 -158
  17. package/dist/collection/components/image-component/image-component.js +175 -175
  18. package/dist/collection/components/partner-stat-component/partner-stat-component.js +196 -196
  19. package/dist/collection/components/referral-code/referral-code.js +36 -36
  20. package/dist/collection/components/referral-component/referral-component.js +255 -255
  21. package/dist/collection/components/referral-list/referral-list.js +911 -911
  22. package/dist/collection/components/rewards-actions/rewards-actions.js +105 -105
  23. package/dist/collection/components/share-button/share-button.js +301 -301
  24. package/dist/collection/components/share-button-container/share-button-container.js +2384 -2384
  25. package/dist/collection/components/stat-component/stat-component.js +196 -197
  26. package/dist/collection/components/stats-container/stats-container.js +210 -210
  27. package/dist/collection/components/text-component/text-component.js +304 -301
  28. package/dist/collection/entrypoint.js +34 -34
  29. package/dist/collection/global/global.js +4 -4
  30. package/dist/collection/services/FormatJs.js +15 -15
  31. package/dist/collection/services/WidgetHost.js +621 -778
  32. package/dist/collection/utilities.js +81 -81
  33. package/dist/esm/{WidgetHost-c033b6ac.js → WidgetHost-a27e693d.js} +615 -772
  34. package/dist/esm/{en-a652ab83.js → en-be593af0.js} +1 -1
  35. package/dist/esm/{index-342d7c26.js → index-8ea8b6d8.js} +3 -54
  36. package/dist/esm/loader.mjs +3 -3
  37. package/dist/esm/polyfills/core-js.js +0 -0
  38. package/dist/esm/polyfills/dom.js +0 -0
  39. package/dist/esm/polyfills/es5-html-element.js +0 -0
  40. package/dist/esm/polyfills/index.js +0 -0
  41. package/dist/esm/polyfills/system.js +0 -0
  42. package/dist/esm/sqh-close-button.entry.js +26 -26
  43. package/dist/esm/{sqh-copy-button_14.entry.js → sqh-copy-button_12.entry.js} +1214 -2286
  44. package/dist/esm/sqh-referral-code.entry.js +23 -23
  45. package/dist/esm/sqh-rewards-actions.entry.js +27 -27
  46. package/dist/esm/widget-components.mjs +3 -3
  47. package/dist/esm-es5/{WidgetHost-c033b6ac.js → WidgetHost-a27e693d.js} +9432 -9524
  48. package/dist/esm-es5/_commonjsHelpers-1d681858.js +17 -17
  49. package/dist/esm-es5/css-shim-a659079f.js +122 -122
  50. package/dist/esm-es5/dom-4061ceba.js +468 -468
  51. package/dist/esm-es5/{en-a652ab83.js → en-be593af0.js} +1471 -1471
  52. package/dist/esm-es5/{index-342d7c26.js → index-8ea8b6d8.js} +1758 -1808
  53. package/dist/esm-es5/loader.mjs +11 -11
  54. package/dist/esm-es5/sqh-close-button.entry.js +35 -35
  55. package/dist/esm-es5/{sqh-copy-button_14.entry.js → sqh-copy-button_12.entry.js} +9624 -10588
  56. package/dist/esm-es5/sqh-referral-code.entry.js +29 -29
  57. package/dist/esm-es5/sqh-rewards-actions.entry.js +31 -31
  58. package/dist/esm-es5/widget-components.mjs +6 -6
  59. package/dist/types/components/close-button/close-button.d.ts +16 -18
  60. package/dist/types/components/copy-button/copy-button.d.ts +90 -90
  61. package/dist/types/components/copy-link-button/copy-link-button.d.ts +53 -53
  62. package/dist/types/components/global-container/global-container.d.ts +39 -39
  63. package/dist/types/components/image-component/image-component.d.ts +45 -45
  64. package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +51 -51
  65. package/dist/types/components/referral-code/referral-code.d.ts +12 -12
  66. package/dist/types/components/referral-component/referral-component.d.ts +46 -46
  67. package/dist/types/components/referral-list/referral-list.d.ts +234 -234
  68. package/dist/types/components/rewards-actions/rewards-actions.d.ts +25 -25
  69. package/dist/types/components/share-button/share-button.d.ts +77 -77
  70. package/dist/types/components/share-button-container/share-button-container.d.ts +593 -593
  71. package/dist/types/components/stat-component/stat-component.d.ts +48 -49
  72. package/dist/types/components/stats-container/stats-container.d.ts +47 -47
  73. package/dist/types/components/text-component/text-component.d.ts +74 -73
  74. package/dist/types/components.d.ts +2 -292
  75. package/dist/types/global/global.d.ts +4 -4
  76. package/dist/types/saasquatch.d.ts +105 -105
  77. package/dist/types/services/FormatJs.d.ts +7 -7
  78. package/dist/types/services/WidgetHost.d.ts +45 -51
  79. package/dist/types/utilities.d.ts +7 -7
  80. package/dist/widget-components/entrypoint.js +34 -34
  81. package/dist/widget-components/p-0bfec452.entry.js +149 -0
  82. package/dist/widget-components/p-24fc4ba9.js +1 -1
  83. package/dist/widget-components/{p-17d80384.js → p-44a6559d.js} +1 -1
  84. package/dist/widget-components/p-46109683.js +3 -3
  85. package/dist/widget-components/p-485eaf44.js +1 -0
  86. package/dist/widget-components/{p-e82def83.system.js → p-58be1132.system.js} +1 -1
  87. package/dist/widget-components/{p-3ba562d0.entry.js → p-650d012d.entry.js} +1 -1
  88. package/dist/widget-components/p-796dc228.system.entry.js +8 -0
  89. package/dist/widget-components/{p-d9e9c55c.system.entry.js → p-908068c2.system.entry.js} +1 -1
  90. package/dist/widget-components/{p-6e753d23.js → p-9525bf4a.js} +3 -68
  91. package/dist/widget-components/{p-fb528be6.entry.js → p-9746ae26.entry.js} +1 -1
  92. package/dist/widget-components/{p-54e83dfb.system.js → p-9adc7c50.system.js} +2 -2
  93. package/dist/widget-components/{p-aaf44379.system.js → p-a846f503.system.js} +1 -1
  94. package/dist/widget-components/{p-abf8a511.system.entry.js → p-c0cdba77.system.entry.js} +1 -1
  95. package/dist/widget-components/{p-4293e873.entry.js → p-d4b27c72.entry.js} +1 -1
  96. package/dist/widget-components/{p-665b8d42.system.entry.js → p-e2b4739f.system.entry.js} +1 -1
  97. package/dist/widget-components/p-e61a8100.system.js +1 -0
  98. package/dist/widget-components/widget-components.esm.js +1 -1
  99. package/dist/widget-components/widget-components.js +1 -1
  100. package/docs/raisins.json +1 -1
  101. package/package.json +97 -98
  102. package/readme.md +52 -52
  103. package/dist/collection/components/cta-component/cta-component.css +0 -6
  104. package/dist/collection/components/cta-component/cta-component.js +0 -396
  105. package/dist/collection/components/progress-indicator/progress-indicator.css +0 -73
  106. package/dist/collection/components/progress-indicator/progress-indicator.js +0 -557
  107. package/dist/types/components/cta-component/cta-component.d.ts +0 -95
  108. package/dist/types/components/progress-indicator/progress-indicator.d.ts +0 -94
  109. package/dist/widget-components/p-9fb4b935.system.entry.js +0 -10
  110. package/dist/widget-components/p-ad5121cf.system.js +0 -1
  111. package/dist/widget-components/p-d9a22d83.entry.js +0 -233
  112. package/dist/widget-components/p-fbf0c7fe.js +0 -1
@@ -119,88 +119,6 @@ export namespace Components {
119
119
  */
120
120
  "textcolor": string;
121
121
  }
122
- interface SqhCtaComponent {
123
- /**
124
- * @uiName Container Background Color
125
- * @uiWidget color
126
- */
127
- "background": string;
128
- /**
129
- * Define the border radius of the button with a pixel amount.
130
- * @uiName Border Radius
131
- * @default 8
132
- * @uiWidget number
133
- */
134
- "borderradius": string;
135
- /**
136
- * @uiName Button Color
137
- * @uiWidget color
138
- * @default #F5A100
139
- */
140
- "buttonbackground": string;
141
- /**
142
- * @uiName Text Color
143
- * @uiWidget color
144
- */
145
- "color": string;
146
- /**
147
- * @uiName Font Family
148
- */
149
- "fontfamily": string;
150
- /**
151
- * Define the font size of the button text with pixel amount.
152
- * @uiName Font Size
153
- */
154
- "fontsize": string;
155
- /**
156
- * Define the font weight of the button text.
157
- * @uiName Font Weight
158
- */
159
- "fontweight": string;
160
- /**
161
- * Define the height of the container with a pixel amount.
162
- * @uiName Button Height
163
- */
164
- "height": string;
165
- /**
166
- * @uiName Hide Text
167
- */
168
- "ishidden": boolean;
169
- /**
170
- * Compile plain text into HTML. See [markdown](https://www.markdownguide.org/getting-started/) for more details.
171
- * @uiName Use Markdown
172
- */
173
- "ismarkdown": boolean;
174
- /**
175
- * Define the bottom padding with a pixel amount.
176
- * @uiName Padding Bottom
177
- */
178
- "paddingbottom": string;
179
- /**
180
- * Define the top padding with a pixel amount.
181
- * @uiName Padding Top
182
- */
183
- "paddingtop": string;
184
- /**
185
- * @uiName Button Text
186
- */
187
- "text": string;
188
- /**
189
- * @uiName Button Alignment
190
- * @uiEnum ["left", "center", "right"]
191
- * @uiEnumNames ["Left", "Center", "Right"]
192
- */
193
- "textalign": string;
194
- /**
195
- * @uiName Button Link
196
- */
197
- "url": string;
198
- /**
199
- * Define the width of the button with a pixel amount.
200
- * @uiName Button Width
201
- */
202
- "width": string;
203
- }
204
122
  interface SqhGlobalContainer {
205
123
  /**
206
124
  * @uiName Background Color
@@ -297,61 +215,6 @@ export namespace Components {
297
215
  */
298
216
  "statvalue": string;
299
217
  }
300
- interface SqhProgressIndicator {
301
- /**
302
- * @undocumented
303
- * @uiName Text Alignment
304
- * @uiEnum ["left", "center", "right"]
305
- * @uiEnumNames ["Left", "Center", "Right"]
306
- */
307
- "align": string;
308
- /**
309
- * Text displayed before a user’s credit earned amount.
310
- * @uiName Credit Earned Text
311
- */
312
- "earned": string;
313
- /**
314
- * @uiName Hide Component
315
- */
316
- "ishidden": boolean;
317
- /**
318
- * @uiName Percentage Text Color
319
- * @uiWidget color
320
- */
321
- "percentagecolor": string;
322
- /**
323
- * Define the font size of the percentage text in a pixel amount
324
- * @uiName Percentage Text Size
325
- */
326
- "percentagesize": string;
327
- /**
328
- * Text displayed below the completion percentage.
329
- * @uiName Progress Text
330
- */
331
- "progress": string;
332
- /**
333
- * @uiName Progress Color
334
- * @uiWidget color
335
- */
336
- "progresscolor": string;
337
- /**
338
- * The type of icon used to display a user’s progress.
339
- * @uiName Indicator Icon
340
- * @uiEnum ["Path"]
341
- * @uiEnumNames ["Path"]
342
- */
343
- "progresstype": string;
344
- /**
345
- * Width of the progress bar.
346
- * @uiName Progress Width
347
- */
348
- "progresswidth": string;
349
- /**
350
- * @uiName Text Color
351
- * @uiWidget color
352
- */
353
- "textcolor": string;
354
- }
355
218
  interface SqhReferralCode {
356
219
  }
357
220
  interface SqhReferralComponent {
@@ -1276,6 +1139,7 @@ export namespace Components {
1276
1139
  "paddingtop": string;
1277
1140
  /**
1278
1141
  * @uiName Text
1142
+ * @uiWidget textArea
1279
1143
  */
1280
1144
  "text": string;
1281
1145
  /**
@@ -1305,12 +1169,6 @@ declare global {
1305
1169
  prototype: HTMLSqhCopyLinkButtonElement;
1306
1170
  new (): HTMLSqhCopyLinkButtonElement;
1307
1171
  };
1308
- interface HTMLSqhCtaComponentElement extends Components.SqhCtaComponent, HTMLStencilElement {
1309
- }
1310
- var HTMLSqhCtaComponentElement: {
1311
- prototype: HTMLSqhCtaComponentElement;
1312
- new (): HTMLSqhCtaComponentElement;
1313
- };
1314
1172
  interface HTMLSqhGlobalContainerElement extends Components.SqhGlobalContainer, HTMLStencilElement {
1315
1173
  }
1316
1174
  var HTMLSqhGlobalContainerElement: {
@@ -1329,12 +1187,6 @@ declare global {
1329
1187
  prototype: HTMLSqhPartnerStatComponentElement;
1330
1188
  new (): HTMLSqhPartnerStatComponentElement;
1331
1189
  };
1332
- interface HTMLSqhProgressIndicatorElement extends Components.SqhProgressIndicator, HTMLStencilElement {
1333
- }
1334
- var HTMLSqhProgressIndicatorElement: {
1335
- prototype: HTMLSqhProgressIndicatorElement;
1336
- new (): HTMLSqhProgressIndicatorElement;
1337
- };
1338
1190
  interface HTMLSqhReferralCodeElement extends Components.SqhReferralCode, HTMLStencilElement {
1339
1191
  }
1340
1192
  var HTMLSqhReferralCodeElement: {
@@ -1393,11 +1245,9 @@ declare global {
1393
1245
  "sqh-close-button": HTMLSqhCloseButtonElement;
1394
1246
  "sqh-copy-button": HTMLSqhCopyButtonElement;
1395
1247
  "sqh-copy-link-button": HTMLSqhCopyLinkButtonElement;
1396
- "sqh-cta-component": HTMLSqhCtaComponentElement;
1397
1248
  "sqh-global-container": HTMLSqhGlobalContainerElement;
1398
1249
  "sqh-image-component": HTMLSqhImageComponentElement;
1399
1250
  "sqh-partner-stat-component": HTMLSqhPartnerStatComponentElement;
1400
- "sqh-progress-indicator": HTMLSqhProgressIndicatorElement;
1401
1251
  "sqh-referral-code": HTMLSqhReferralCodeElement;
1402
1252
  "sqh-referral-component": HTMLSqhReferralComponentElement;
1403
1253
  "sqh-referral-list": HTMLSqhReferralListElement;
@@ -1523,88 +1373,6 @@ declare namespace LocalJSX {
1523
1373
  */
1524
1374
  "textcolor"?: string;
1525
1375
  }
1526
- interface SqhCtaComponent {
1527
- /**
1528
- * @uiName Container Background Color
1529
- * @uiWidget color
1530
- */
1531
- "background"?: string;
1532
- /**
1533
- * Define the border radius of the button with a pixel amount.
1534
- * @uiName Border Radius
1535
- * @default 8
1536
- * @uiWidget number
1537
- */
1538
- "borderradius"?: string;
1539
- /**
1540
- * @uiName Button Color
1541
- * @uiWidget color
1542
- * @default #F5A100
1543
- */
1544
- "buttonbackground"?: string;
1545
- /**
1546
- * @uiName Text Color
1547
- * @uiWidget color
1548
- */
1549
- "color"?: string;
1550
- /**
1551
- * @uiName Font Family
1552
- */
1553
- "fontfamily"?: string;
1554
- /**
1555
- * Define the font size of the button text with pixel amount.
1556
- * @uiName Font Size
1557
- */
1558
- "fontsize"?: string;
1559
- /**
1560
- * Define the font weight of the button text.
1561
- * @uiName Font Weight
1562
- */
1563
- "fontweight"?: string;
1564
- /**
1565
- * Define the height of the container with a pixel amount.
1566
- * @uiName Button Height
1567
- */
1568
- "height"?: string;
1569
- /**
1570
- * @uiName Hide Text
1571
- */
1572
- "ishidden"?: boolean;
1573
- /**
1574
- * Compile plain text into HTML. See [markdown](https://www.markdownguide.org/getting-started/) for more details.
1575
- * @uiName Use Markdown
1576
- */
1577
- "ismarkdown"?: boolean;
1578
- /**
1579
- * Define the bottom padding with a pixel amount.
1580
- * @uiName Padding Bottom
1581
- */
1582
- "paddingbottom"?: string;
1583
- /**
1584
- * Define the top padding with a pixel amount.
1585
- * @uiName Padding Top
1586
- */
1587
- "paddingtop"?: string;
1588
- /**
1589
- * @uiName Button Text
1590
- */
1591
- "text"?: string;
1592
- /**
1593
- * @uiName Button Alignment
1594
- * @uiEnum ["left", "center", "right"]
1595
- * @uiEnumNames ["Left", "Center", "Right"]
1596
- */
1597
- "textalign"?: string;
1598
- /**
1599
- * @uiName Button Link
1600
- */
1601
- "url"?: string;
1602
- /**
1603
- * Define the width of the button with a pixel amount.
1604
- * @uiName Button Width
1605
- */
1606
- "width"?: string;
1607
- }
1608
1376
  interface SqhGlobalContainer {
1609
1377
  /**
1610
1378
  * @uiName Background Color
@@ -1703,61 +1471,6 @@ declare namespace LocalJSX {
1703
1471
  */
1704
1472
  "statvalue"?: string;
1705
1473
  }
1706
- interface SqhProgressIndicator {
1707
- /**
1708
- * @undocumented
1709
- * @uiName Text Alignment
1710
- * @uiEnum ["left", "center", "right"]
1711
- * @uiEnumNames ["Left", "Center", "Right"]
1712
- */
1713
- "align"?: string;
1714
- /**
1715
- * Text displayed before a user’s credit earned amount.
1716
- * @uiName Credit Earned Text
1717
- */
1718
- "earned"?: string;
1719
- /**
1720
- * @uiName Hide Component
1721
- */
1722
- "ishidden"?: boolean;
1723
- /**
1724
- * @uiName Percentage Text Color
1725
- * @uiWidget color
1726
- */
1727
- "percentagecolor"?: string;
1728
- /**
1729
- * Define the font size of the percentage text in a pixel amount
1730
- * @uiName Percentage Text Size
1731
- */
1732
- "percentagesize"?: string;
1733
- /**
1734
- * Text displayed below the completion percentage.
1735
- * @uiName Progress Text
1736
- */
1737
- "progress"?: string;
1738
- /**
1739
- * @uiName Progress Color
1740
- * @uiWidget color
1741
- */
1742
- "progresscolor"?: string;
1743
- /**
1744
- * The type of icon used to display a user’s progress.
1745
- * @uiName Indicator Icon
1746
- * @uiEnum ["Path"]
1747
- * @uiEnumNames ["Path"]
1748
- */
1749
- "progresstype"?: string;
1750
- /**
1751
- * Width of the progress bar.
1752
- * @uiName Progress Width
1753
- */
1754
- "progresswidth"?: string;
1755
- /**
1756
- * @uiName Text Color
1757
- * @uiWidget color
1758
- */
1759
- "textcolor"?: string;
1760
- }
1761
1474
  interface SqhReferralCode {
1762
1475
  }
1763
1476
  interface SqhReferralComponent {
@@ -2684,6 +2397,7 @@ declare namespace LocalJSX {
2684
2397
  "paddingtop"?: string;
2685
2398
  /**
2686
2399
  * @uiName Text
2400
+ * @uiWidget textArea
2687
2401
  */
2688
2402
  "text"?: string;
2689
2403
  /**
@@ -2697,11 +2411,9 @@ declare namespace LocalJSX {
2697
2411
  "sqh-close-button": SqhCloseButton;
2698
2412
  "sqh-copy-button": SqhCopyButton;
2699
2413
  "sqh-copy-link-button": SqhCopyLinkButton;
2700
- "sqh-cta-component": SqhCtaComponent;
2701
2414
  "sqh-global-container": SqhGlobalContainer;
2702
2415
  "sqh-image-component": SqhImageComponent;
2703
2416
  "sqh-partner-stat-component": SqhPartnerStatComponent;
2704
- "sqh-progress-indicator": SqhProgressIndicator;
2705
2417
  "sqh-referral-code": SqhReferralCode;
2706
2418
  "sqh-referral-component": SqhReferralComponent;
2707
2419
  "sqh-referral-list": SqhReferralList;
@@ -2720,11 +2432,9 @@ declare module "@stencil/core" {
2720
2432
  "sqh-close-button": LocalJSX.SqhCloseButton & JSXBase.HTMLAttributes<HTMLSqhCloseButtonElement>;
2721
2433
  "sqh-copy-button": LocalJSX.SqhCopyButton & JSXBase.HTMLAttributes<HTMLSqhCopyButtonElement>;
2722
2434
  "sqh-copy-link-button": LocalJSX.SqhCopyLinkButton & JSXBase.HTMLAttributes<HTMLSqhCopyLinkButtonElement>;
2723
- "sqh-cta-component": LocalJSX.SqhCtaComponent & JSXBase.HTMLAttributes<HTMLSqhCtaComponentElement>;
2724
2435
  "sqh-global-container": LocalJSX.SqhGlobalContainer & JSXBase.HTMLAttributes<HTMLSqhGlobalContainerElement>;
2725
2436
  "sqh-image-component": LocalJSX.SqhImageComponent & JSXBase.HTMLAttributes<HTMLSqhImageComponentElement>;
2726
2437
  "sqh-partner-stat-component": LocalJSX.SqhPartnerStatComponent & JSXBase.HTMLAttributes<HTMLSqhPartnerStatComponentElement>;
2727
- "sqh-progress-indicator": LocalJSX.SqhProgressIndicator & JSXBase.HTMLAttributes<HTMLSqhProgressIndicatorElement>;
2728
2438
  "sqh-referral-code": LocalJSX.SqhReferralCode & JSXBase.HTMLAttributes<HTMLSqhReferralCodeElement>;
2729
2439
  "sqh-referral-component": LocalJSX.SqhReferralComponent & JSXBase.HTMLAttributes<HTMLSqhReferralComponentElement>;
2730
2440
  "sqh-referral-list": LocalJSX.SqhReferralList & JSXBase.HTMLAttributes<HTMLSqhReferralListElement>;
@@ -1,4 +1,4 @@
1
- import "@formatjs/intl-relativetimeformat/polyfill";
2
- import "@formatjs/intl-relativetimeformat/dist/locale-data/en";
3
- import "@formatjs/intl-pluralrules/polyfill";
4
- import "@formatjs/intl-pluralrules/dist/locale-data/en";
1
+ import "@formatjs/intl-relativetimeformat/polyfill";
2
+ import "@formatjs/intl-relativetimeformat/dist/locale-data/en";
3
+ import "@formatjs/intl-pluralrules/polyfill";
4
+ import "@formatjs/intl-pluralrules/dist/locale-data/en";
@@ -1,105 +1,105 @@
1
- interface UserPayload {
2
- data: {
3
- user: {
4
- referredByReferral: {
5
- referrerUser: {
6
- firstName: string;
7
- lastName: string;
8
- imageUrl: string;
9
- };
10
- dateReferralStarted: number;
11
- rewards: {
12
- count: number;
13
- totalCount: number;
14
- data: Reward[];
15
- };
16
- };
17
- referrals: {
18
- count: number;
19
- totalCount: number;
20
- data: Referral[];
21
- };
22
- rewards: {
23
- count: number;
24
- totalCount: number;
25
- data: Reward[];
26
- };
27
- };
28
- };
29
- }
30
-
31
- interface ReferredByReferral {
32
- referrerUser: {
33
- firstName: string;
34
- lastName: string;
35
- imageUrl: string;
36
- };
37
- dateReferralStarted: number;
38
- dateConverted:number;
39
- rewards: Reward[];
40
- }
41
-
42
- interface Referral {
43
- id: string;
44
- dateReferralStarted: number;
45
- dateReferralPaid: number;
46
- dateReferralEnded: number;
47
- dateConverted:number;
48
- moderationStatus: string;
49
- referredUser: {
50
- firstName: string;
51
- lastName: string;
52
- imageUrl: string;
53
- };
54
- rewards: Reward[];
55
- }
56
-
57
- interface Meta {
58
- message: string;
59
- }
60
-
61
- interface Reward {
62
- id: string;
63
- type: string;
64
- value: number;
65
- unit: string;
66
- name: string;
67
- dateGiven: number;
68
- dateExpires: number;
69
- dateCancelled: number;
70
- fuelTankCode: string;
71
- fuelTankType: string;
72
- currency: string;
73
- prettyValue: string;
74
- statuses: string[];
75
- meta: Meta;
76
- }
77
-
78
- interface ReferralVariables {
79
- usefirstreward: boolean;
80
- referrercontent: string;
81
- convertedcontent: string;
82
- pendingcontent: string;
83
- pendingvalue: string;
84
- referrervalue: string;
85
- valuecontent: string;
86
- expiredvalue: string;
87
- expiredcontent: string;
88
- expiresvalue: string;
89
- redeemedvalue: string;
90
- showexpiry: boolean;
91
- shownotes: boolean;
92
- cancelledvalue: string;
93
- cancelledcontent: string;
94
- }
95
-
96
- interface RewardBalance {
97
- type: string;
98
- unit: string;
99
- value: number;
100
- prettyValue: string;
101
- }
102
-
103
- declare module 'react';
104
-
105
- declare module 'progress.js'
1
+ interface UserPayload {
2
+ data: {
3
+ user: {
4
+ referredByReferral: {
5
+ referrerUser: {
6
+ firstName: string;
7
+ lastName: string;
8
+ imageUrl: string;
9
+ };
10
+ dateReferralStarted: number;
11
+ rewards: {
12
+ count: number;
13
+ totalCount: number;
14
+ data: Reward[];
15
+ };
16
+ };
17
+ referrals: {
18
+ count: number;
19
+ totalCount: number;
20
+ data: Referral[];
21
+ };
22
+ rewards: {
23
+ count: number;
24
+ totalCount: number;
25
+ data: Reward[];
26
+ };
27
+ };
28
+ };
29
+ }
30
+
31
+ interface ReferredByReferral {
32
+ referrerUser: {
33
+ firstName: string;
34
+ lastName: string;
35
+ imageUrl: string;
36
+ };
37
+ dateReferralStarted: number;
38
+ dateConverted:number;
39
+ rewards: Reward[];
40
+ }
41
+
42
+ interface Referral {
43
+ id: string;
44
+ dateReferralStarted: number;
45
+ dateReferralPaid: number;
46
+ dateReferralEnded: number;
47
+ dateConverted:number;
48
+ moderationStatus: string;
49
+ referredUser: {
50
+ firstName: string;
51
+ lastName: string;
52
+ imageUrl: string;
53
+ };
54
+ rewards: Reward[];
55
+ }
56
+
57
+ interface Meta {
58
+ message: string;
59
+ }
60
+
61
+ interface Reward {
62
+ id: string;
63
+ type: string;
64
+ value: number;
65
+ unit: string;
66
+ name: string;
67
+ dateGiven: number;
68
+ dateExpires: number;
69
+ dateCancelled: number;
70
+ fuelTankCode: string;
71
+ fuelTankType: string;
72
+ currency: string;
73
+ prettyValue: string;
74
+ statuses: string[];
75
+ meta: Meta;
76
+ }
77
+
78
+ interface ReferralVariables {
79
+ usefirstreward: boolean;
80
+ referrercontent: string;
81
+ convertedcontent: string;
82
+ pendingcontent: string;
83
+ pendingvalue: string;
84
+ referrervalue: string;
85
+ valuecontent: string;
86
+ expiredvalue: string;
87
+ expiredcontent: string;
88
+ expiresvalue: string;
89
+ redeemedvalue: string;
90
+ showexpiry: boolean;
91
+ shownotes: boolean;
92
+ cancelledvalue: string;
93
+ cancelledcontent: string;
94
+ }
95
+
96
+ interface RewardBalance {
97
+ type: string;
98
+ unit: string;
99
+ value: number;
100
+ prettyValue: string;
101
+ }
102
+
103
+ declare module 'react';
104
+
105
+ declare module 'progress.js'
@@ -1,7 +1,7 @@
1
- declare const FormatJS: {
2
- format(msg: string, values: {
3
- [key: string]: any;
4
- }, userLocale: string): string;
5
- formatRelative(value: string | number, userLocale: string): string;
6
- };
7
- export default FormatJS;
1
+ declare const FormatJS: {
2
+ format(msg: string, values: {
3
+ [key: string]: any;
4
+ }, userLocale: string): string;
5
+ formatRelative(value: string | number, userLocale: string): string;
6
+ };
7
+ export default FormatJS;