makerspace-react-rails 0.10.1 → 0.10.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31971ce0f73a82d62e57809989bf488f3666d1efa99516580694432a7e89573f
4
- data.tar.gz: 1026de01effb2953b9ac828552ff936eec8ee8ecec45c527c0b1a6b534840253
3
+ metadata.gz: 34121f954100d831f52ff0ea0e2f92f56b199e74172ceda6251158a149b85352
4
+ data.tar.gz: 9d5d7cc0f30d004db0f6eb9316ff48775e15e8e4b7fa5e32741c8c2b5ab77c60
5
5
  SHA512:
6
- metadata.gz: 71128e5938cfef460f6bb8ab6a43f3a39b75ce296d58ed758e5860d130573ada70a90c2fefaf498c203082fbe4ac3ed02aefe845c3b0fd14116a69194ca38d35
7
- data.tar.gz: 8184b8451e10932e5b7be80f360cb0c39f9505bff9f00bb0b25ccad8e3ec7cbc1b83807b1a63342f7b513e7d6dd8fa9666707b792ac27ded9cb537ec386e38b4
6
+ metadata.gz: 681a1f4bc1fd851fbb20b091f61c454861d101214dba1e4d5836bcc98a5d3b49833efbae1ee97044fb5c5c7fc0606b9d0e7dda0c0157e9bfbc5e22bd332cc4f6
7
+ data.tar.gz: e024725e0e40810c6e8b4ea2c28e887c238a7d966d8c5bd03e6bdfb9f191984c5d6c37c9706d03ae9e42d7ad45abb656ec1d81ee333748ebfe48024026c05744
@@ -1,7 +1,7 @@
1
1
  module Makerspace
2
2
  module React
3
3
  module Rails
4
- VERSION = "0.10.1"
4
+ VERSION = "0.10.2"
5
5
  end
6
6
  end
7
7
  end
@@ -102782,10 +102782,10 @@ var TransactionStatus;
102782
102782
  TransactionStatus["SubmmittedForSettlement"] = "submmitted_for_settlement";
102783
102783
  TransactionStatus["Voided"] = "voided";
102784
102784
  })(TransactionStatus = exports.TransactionStatus || (exports.TransactionStatus = {}));
102785
- function listAnalytics(params) {
102785
+ function adminListAnalytics(params) {
102786
102786
  return exports.makeRequest("GET", "/admin/analytics", undefined, "analytics");
102787
102787
  }
102788
- exports.listAnalytics = listAnalytics;
102788
+ exports.adminListAnalytics = adminListAnalytics;
102789
102789
  function adminListBillingPlans(params) {
102790
102790
  return exports.makeRequest("GET", "/admin/billing/plans", params, "plans");
102791
102791
  }
@@ -102794,6 +102794,10 @@ function adminListBillingPlanDiscounts(params) {
102794
102794
  return exports.makeRequest("GET", "/admin/billing/plans/discounts", params, "discounts");
102795
102795
  }
102796
102796
  exports.adminListBillingPlanDiscounts = adminListBillingPlanDiscounts;
102797
+ function adminGetReceipt(params) {
102798
+ return exports.makeRequest("GET", "/admin/billing/receipts/{id}".replace("{id}", params.id));
102799
+ }
102800
+ exports.adminGetReceipt = adminGetReceipt;
102797
102801
  function adminListSubscriptions(params) {
102798
102802
  return exports.makeRequest("GET", "/admin/billing/subscriptions", params, "subscriptions");
102799
102803
  }
@@ -189054,7 +189058,7 @@ const BillingContainer = () => {
189054
189058
  isRequesting,
189055
189059
  data,
189056
189060
  error
189057
- } = Object(_hooks_useReadTransaction__WEBPACK_IMPORTED_MODULE_8__["default"])(makerspace_ts_api_client__WEBPACK_IMPORTED_MODULE_9__["listAnalytics"], {});
189061
+ } = Object(_hooks_useReadTransaction__WEBPACK_IMPORTED_MODULE_8__["default"])(makerspace_ts_api_client__WEBPACK_IMPORTED_MODULE_9__["adminListAnalytics"], {});
189058
189062
  const {
189059
189063
  totalMembers,
189060
189064
  newMembers,
@@ -192062,7 +192066,7 @@ __webpack_require__.r(__webpack_exports__);
192062
192066
 
192063
192067
 
192064
192068
 
192065
- const buildReceiptUrl = id => `${ false || ""}/api/billing/receipts/${id}`;
192069
+ const buildReceiptUrl = (id, admin) => `${ false || ""}/api/${admin ? "admin/" : ""}billing/receipts/${id}`;
192066
192070
  const receiptContainerId = "receipt-container";
192067
192071
 
192068
192072
  const Receipt = () => {
@@ -192118,7 +192122,7 @@ const Receipt = () => {
192118
192122
  onClick: printReceipt
192119
192123
  }))), react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_documents_Document__WEBPACK_IMPORTED_MODULE_7__["default"], {
192120
192124
  id: receiptContainerId,
192121
- src: buildReceiptUrl(invoiceId)
192125
+ src: buildReceiptUrl(invoiceId, false)
192122
192126
  }));
192123
192127
  };
192124
192128
 
@@ -202801,7 +202805,7 @@ const ViewTransactionModal = ({
202801
202805
  width: "100%",
202802
202806
  height: "600px"
202803
202807
  },
202804
- src: Object(_checkout_Receipt__WEBPACK_IMPORTED_MODULE_10__["buildReceiptUrl"])(transaction.invoice.id)
202808
+ src: Object(_checkout_Receipt__WEBPACK_IMPORTED_MODULE_10__["buildReceiptUrl"])(transaction.invoice.id, isAdmin)
202805
202809
  }) : react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](ui_common_KeyValueItem__WEBPACK_IMPORTED_MODULE_2__["default"], {
202806
202810
  label: "Date"
202807
202811
  }, react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", {