@duely/client
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.query = query; | ||
exports.current_user_agencies_Q = exports.services_agreement_Q = exports.country_codes_Q = exports.current_user_Q = void 0; | ||
exports.subdomain_public_Q = exports.current_user_agencies_Q = exports.services_agreement_Q = exports.country_codes_Q = exports.current_user_Q = void 0; | ||
@@ -24,2 +24,12 @@ var _client = require("@apollo/client"); | ||
function _templateObject5() { | ||
var data = _taggedTemplateLiteral(["\n query($subdomain_name: !String) {\n subdomains(filter: { name: $subdomain_name }) {\n id\n name\n agency {\n id\n name\n theme {\n id\n image_logo {\n id\n data\n }\n }\n }\n }\n }\n "]); | ||
_templateObject5 = function _templateObject5() { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _templateObject4() { | ||
@@ -156,2 +166,9 @@ var data = _taggedTemplateLiteral(["\n query {\n current_user {\n id\n memberships {\n id\n access\n subdomain {\n id\n name\n agency {\n id\n name\n stripe_account {\n id\n id_ext\n business_profile {\n mcc\n name\n product_description\n support_address\n support_email\n support_phone\n support_url\n url\n }\n business_type\n capabilities {\n card_payments\n transfers\n }\n requirements {\n current_deadline\n disabled_reason\n currently_due\n eventually_due\n past_due\n pending_verification\n }\n settings {\n branding {\n icon\n logo\n primary_color\n secondary_color\n }\n }\n charges_enabled\n country\n created\n default_currency\n details_submitted\n email\n payouts_enabled\n }\n }\n memberships {\n id\n access\n user {\n id\n name\n }\n }\n }\n user {\n id\n }\n }\n }\n }\n "]); | ||
} | ||
}; | ||
exports.current_user_agencies_Q = current_user_agencies_Q; | ||
var subdomain_public_Q = { | ||
query: (0, _client.gql)(_templateObject5()), | ||
result: function result(d) { | ||
return d === null || d === void 0 ? void 0 : d.subdomains[0].data; | ||
} | ||
}; // agencies: { | ||
@@ -520,3 +537,3 @@ // query: gql` | ||
exports.current_user_agencies_Q = current_user_agencies_Q; | ||
exports.subdomain_public_Q = subdomain_public_Q; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@duely/client", | ||
"type": "module", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"repository": "github:uoleevi/duely", | ||
@@ -6,0 +6,0 @@ "description": "GraphQL client by Duely (wrapper for @apollo/client)", |
@@ -136,4 +136,25 @@ import { gql } from '@apollo/client'; | ||
export const subdomain_public_Q = { | ||
query: gql` | ||
query($subdomain_name: !String) { | ||
subdomains(filter: { name: $subdomain_name }) { | ||
id | ||
name | ||
agency { | ||
id | ||
name | ||
theme { | ||
id | ||
image_logo { | ||
id | ||
data | ||
} | ||
} | ||
} | ||
} | ||
} | ||
`, | ||
result: d => d?.subdomains[0].data | ||
}; | ||
// agencies: { | ||
@@ -140,0 +161,0 @@ // query: gql` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123199
2288