@bunnyapp/components 1.0.4 → 1.0.5
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.
- package/dist/cjs/index.js +6 -8
- package/dist/esm/index.js +6 -8
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -3256,7 +3256,7 @@ var PandadocPollingModal = function (_a) {
|
|
|
3256
3256
|
return (jsxRuntime.jsxs(antd.Modal, __assign({ title: "Uploading quote to Pandadoc", open: isVisible, closable: false, footer: null }, { children: [jsxRuntime.jsxs("div", __assign({ className: "py-4 text-center" }, { children: ["This may take a few seconds", ".".repeat(numberOfPolls)] })), jsxRuntime.jsx("div", __assign({ className: "text-center" }, { children: infoMessage }))] })));
|
|
3257
3257
|
};
|
|
3258
3258
|
|
|
3259
|
-
var MUTATION$6 = function (id) { return "\n query formattedQuote {\n formattedQuote (id:
|
|
3259
|
+
var MUTATION$6 = function (id) { return "\n query formattedQuote ($id: ID) {\n formattedQuote (id: $id) {\n payableId\n acceptedAt\n acceptedByName\n amount\n amountDue\n amountsByPeriod {\n id\n name\n amount\n }\n object { documents { id filename size date url } }\n billingCity\n billingCountry\n billingState\n billingStreet\n billingZip\n contactName\n currency\n customerBillingCity\n customerBillingCountry\n customerBillingState\n customerBillingStreet\n customerBillingZip\n customerName\n discount\n discountValue\n duration\n endDate\n expiresAt\n html\n formattedLines {\n amount\n amountsByPeriod {\n quantity\n id\n name\n startDate\n endDate\n amount\n amountsByTier {\n id\n tier {\n starts\n ends\n price\n }\n quantity\n amount\n }\n prorationRate\n }\n billingPeriodEnd\n billingPeriodStart\n chargeType\n discount\n frequency\n isRamp\n periods\n planName\n position\n price\n priceDecimals\n priceListChargeId\n priceListChargeName\n priceListId\n priceListName\n priceTiers {\n price\n starts\n }\n pricingModel\n productName\n prorationRate\n quantity\n showProductNameOnLineItem\n taxCode\n trialEndDate\n trialStartDate\n unitOfMeasure\n vatCode\n }\n netPaymentDays\n notes\n number\n poNumberRequired\n salesContactEmail\n sharedAt\n startDate\n state\n subtotal\n taxAmount\n taxNumberLabel\n taxNumberRequired\n vendorName\n }\n }"; };
|
|
3260
3260
|
var getFormattedQuote = function (_a) {
|
|
3261
3261
|
var id = _a.id, token = _a.token, subdomain = _a.subdomain;
|
|
3262
3262
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3264,9 +3264,10 @@ var getFormattedQuote = function (_a) {
|
|
|
3264
3264
|
return __generator(this, function (_b) {
|
|
3265
3265
|
switch (_b.label) {
|
|
3266
3266
|
case 0: return [4 /*yield*/, common.gqlRequest({
|
|
3267
|
-
query: MUTATION$6(
|
|
3267
|
+
query: MUTATION$6(),
|
|
3268
3268
|
token: token,
|
|
3269
3269
|
subdomain: subdomain,
|
|
3270
|
+
vars: { id: id },
|
|
3270
3271
|
})];
|
|
3271
3272
|
case 1:
|
|
3272
3273
|
response = _b.sent();
|
|
@@ -3322,7 +3323,6 @@ function ActualQuote(_a) {
|
|
|
3322
3323
|
styled__default["default"].div(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n span {\n width: 100%;\n }\n"], ["\n span {\n width: 100%;\n }\n"])));
|
|
3323
3324
|
function Quote(_a) {
|
|
3324
3325
|
var id = _a.id;
|
|
3325
|
-
console.log("id", id);
|
|
3326
3326
|
return (jsxRuntime.jsx(reactHelmetAsync.HelmetProvider, { children: jsxRuntime.jsx(ActualQuote, { id: id }) }));
|
|
3327
3327
|
}
|
|
3328
3328
|
var templateObject_1$5;
|
|
@@ -4066,7 +4066,6 @@ var getTransactions = function (filter, token, subdomain, kindsToShow) { return
|
|
|
4066
4066
|
})];
|
|
4067
4067
|
case 1:
|
|
4068
4068
|
response = _d.sent();
|
|
4069
|
-
console.log("response", response);
|
|
4070
4069
|
return [4 /*yield*/, response.json()];
|
|
4071
4070
|
case 2:
|
|
4072
4071
|
_a = _d.sent(), data = _a.data, errors = _a.errors;
|
|
@@ -4158,7 +4157,6 @@ var isQuote = function (transaction) {
|
|
|
4158
4157
|
};
|
|
4159
4158
|
var TransactionRowTitle = function (_a) {
|
|
4160
4159
|
var transaction = _a.transaction;
|
|
4161
|
-
console.log("transaction", transaction);
|
|
4162
4160
|
if (!isInvoice(transaction) && !isQuote(transaction)) {
|
|
4163
4161
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
4164
4162
|
}
|
|
@@ -4780,7 +4778,7 @@ var getPlanChangeOptions = function (_a) {
|
|
|
4780
4778
|
});
|
|
4781
4779
|
};
|
|
4782
4780
|
|
|
4783
|
-
var QUOTE_QUERY = function (
|
|
4781
|
+
var QUOTE_QUERY = function () { return "\n query quote($id: ID) {\n quote(id: $id) {\n accountId\n amount\n amountDue\n smallUnitAmountDue\n currencyId\n formattedQuote {\n html\n }\n id\n payableId\n periodAmount\n subtotal\n taxAmount\n amountsByPeriod {\n amount\n startDate\n }\n quoteChanges {\n currencyId\n id\n charges {\n amountsByPeriod {\n amount\n startDate\n }\n amount\n billingPeriod\n currencyId\n feature {\n unitName\n }\n id\n name\n priceListCharge {\n id\n }\n quantity\n }\n priceList {\n id\n plan {\n name\n }\n product {\n name\n }\n }\n\n }\n }\n }"; };
|
|
4784
4782
|
var getQuote = function (_a) {
|
|
4785
4783
|
var id = _a.id, token = _a.token, subdomain = _a.subdomain;
|
|
4786
4784
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4788,9 +4786,9 @@ var getQuote = function (_a) {
|
|
|
4788
4786
|
return __generator(this, function (_b) {
|
|
4789
4787
|
switch (_b.label) {
|
|
4790
4788
|
case 0: return [4 /*yield*/, common.gqlRequest({
|
|
4791
|
-
query: QUOTE_QUERY(
|
|
4789
|
+
query: QUOTE_QUERY(),
|
|
4792
4790
|
token: token,
|
|
4793
|
-
vars: {},
|
|
4791
|
+
vars: { id: id },
|
|
4794
4792
|
subdomain: subdomain,
|
|
4795
4793
|
})];
|
|
4796
4794
|
case 1:
|
package/dist/esm/index.js
CHANGED
|
@@ -3227,7 +3227,7 @@ var PandadocPollingModal = function (_a) {
|
|
|
3227
3227
|
return (jsxs(Modal, __assign({ title: "Uploading quote to Pandadoc", open: isVisible, closable: false, footer: null }, { children: [jsxs("div", __assign({ className: "py-4 text-center" }, { children: ["This may take a few seconds", ".".repeat(numberOfPolls)] })), jsx("div", __assign({ className: "text-center" }, { children: infoMessage }))] })));
|
|
3228
3228
|
};
|
|
3229
3229
|
|
|
3230
|
-
var MUTATION$6 = function (id) { return "\n query formattedQuote {\n formattedQuote (id:
|
|
3230
|
+
var MUTATION$6 = function (id) { return "\n query formattedQuote ($id: ID) {\n formattedQuote (id: $id) {\n payableId\n acceptedAt\n acceptedByName\n amount\n amountDue\n amountsByPeriod {\n id\n name\n amount\n }\n object { documents { id filename size date url } }\n billingCity\n billingCountry\n billingState\n billingStreet\n billingZip\n contactName\n currency\n customerBillingCity\n customerBillingCountry\n customerBillingState\n customerBillingStreet\n customerBillingZip\n customerName\n discount\n discountValue\n duration\n endDate\n expiresAt\n html\n formattedLines {\n amount\n amountsByPeriod {\n quantity\n id\n name\n startDate\n endDate\n amount\n amountsByTier {\n id\n tier {\n starts\n ends\n price\n }\n quantity\n amount\n }\n prorationRate\n }\n billingPeriodEnd\n billingPeriodStart\n chargeType\n discount\n frequency\n isRamp\n periods\n planName\n position\n price\n priceDecimals\n priceListChargeId\n priceListChargeName\n priceListId\n priceListName\n priceTiers {\n price\n starts\n }\n pricingModel\n productName\n prorationRate\n quantity\n showProductNameOnLineItem\n taxCode\n trialEndDate\n trialStartDate\n unitOfMeasure\n vatCode\n }\n netPaymentDays\n notes\n number\n poNumberRequired\n salesContactEmail\n sharedAt\n startDate\n state\n subtotal\n taxAmount\n taxNumberLabel\n taxNumberRequired\n vendorName\n }\n }"; };
|
|
3231
3231
|
var getFormattedQuote = function (_a) {
|
|
3232
3232
|
var id = _a.id, token = _a.token, subdomain = _a.subdomain;
|
|
3233
3233
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3235,9 +3235,10 @@ var getFormattedQuote = function (_a) {
|
|
|
3235
3235
|
return __generator(this, function (_b) {
|
|
3236
3236
|
switch (_b.label) {
|
|
3237
3237
|
case 0: return [4 /*yield*/, gqlRequest({
|
|
3238
|
-
query: MUTATION$6(
|
|
3238
|
+
query: MUTATION$6(),
|
|
3239
3239
|
token: token,
|
|
3240
3240
|
subdomain: subdomain,
|
|
3241
|
+
vars: { id: id },
|
|
3241
3242
|
})];
|
|
3242
3243
|
case 1:
|
|
3243
3244
|
response = _b.sent();
|
|
@@ -3293,7 +3294,6 @@ function ActualQuote(_a) {
|
|
|
3293
3294
|
styled.div(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n span {\n width: 100%;\n }\n"], ["\n span {\n width: 100%;\n }\n"])));
|
|
3294
3295
|
function Quote(_a) {
|
|
3295
3296
|
var id = _a.id;
|
|
3296
|
-
console.log("id", id);
|
|
3297
3297
|
return (jsx(HelmetProvider, { children: jsx(ActualQuote, { id: id }) }));
|
|
3298
3298
|
}
|
|
3299
3299
|
var templateObject_1$5;
|
|
@@ -4037,7 +4037,6 @@ var getTransactions = function (filter, token, subdomain, kindsToShow) { return
|
|
|
4037
4037
|
})];
|
|
4038
4038
|
case 1:
|
|
4039
4039
|
response = _d.sent();
|
|
4040
|
-
console.log("response", response);
|
|
4041
4040
|
return [4 /*yield*/, response.json()];
|
|
4042
4041
|
case 2:
|
|
4043
4042
|
_a = _d.sent(), data = _a.data, errors = _a.errors;
|
|
@@ -4129,7 +4128,6 @@ var isQuote = function (transaction) {
|
|
|
4129
4128
|
};
|
|
4130
4129
|
var TransactionRowTitle = function (_a) {
|
|
4131
4130
|
var transaction = _a.transaction;
|
|
4132
|
-
console.log("transaction", transaction);
|
|
4133
4131
|
if (!isInvoice(transaction) && !isQuote(transaction)) {
|
|
4134
4132
|
return jsx(Fragment, {});
|
|
4135
4133
|
}
|
|
@@ -4751,7 +4749,7 @@ var getPlanChangeOptions = function (_a) {
|
|
|
4751
4749
|
});
|
|
4752
4750
|
};
|
|
4753
4751
|
|
|
4754
|
-
var QUOTE_QUERY = function (
|
|
4752
|
+
var QUOTE_QUERY = function () { return "\n query quote($id: ID) {\n quote(id: $id) {\n accountId\n amount\n amountDue\n smallUnitAmountDue\n currencyId\n formattedQuote {\n html\n }\n id\n payableId\n periodAmount\n subtotal\n taxAmount\n amountsByPeriod {\n amount\n startDate\n }\n quoteChanges {\n currencyId\n id\n charges {\n amountsByPeriod {\n amount\n startDate\n }\n amount\n billingPeriod\n currencyId\n feature {\n unitName\n }\n id\n name\n priceListCharge {\n id\n }\n quantity\n }\n priceList {\n id\n plan {\n name\n }\n product {\n name\n }\n }\n\n }\n }\n }"; };
|
|
4755
4753
|
var getQuote = function (_a) {
|
|
4756
4754
|
var id = _a.id, token = _a.token, subdomain = _a.subdomain;
|
|
4757
4755
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4759,9 +4757,9 @@ var getQuote = function (_a) {
|
|
|
4759
4757
|
return __generator(this, function (_b) {
|
|
4760
4758
|
switch (_b.label) {
|
|
4761
4759
|
case 0: return [4 /*yield*/, gqlRequest({
|
|
4762
|
-
query: QUOTE_QUERY(
|
|
4760
|
+
query: QUOTE_QUERY(),
|
|
4763
4761
|
token: token,
|
|
4764
|
-
vars: {},
|
|
4762
|
+
vars: { id: id },
|
|
4765
4763
|
subdomain: subdomain,
|
|
4766
4764
|
})];
|
|
4767
4765
|
case 1:
|
package/package.json
CHANGED