UNPKG

@shopify/shopify-api

Version:

Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks

1 lines 1.1 kB
{"version":3,"file":"index.mjs","sources":["../../../../../../lib/clients/index.ts"],"sourcesContent":["import {ConfigInterface} from '../base-types';\n\nimport {restClientClass, graphqlClientClass} from './admin';\nimport {storefrontClientClass} from './storefront';\nimport {graphqlProxy} from './graphql_proxy/graphql_proxy';\nimport {ShopifyClients} from './types';\n\nexport type {ShopifyClients} from './types';\n\nexport function clientClasses(config: ConfigInterface): ShopifyClients {\n return {\n // We don't pass in the HttpClient because the RestClient inherits from it, and goes through the same setup process\n Rest: restClientClass({config}),\n Graphql: graphqlClientClass({config}),\n Storefront: storefrontClientClass({config}),\n graphqlProxy: graphqlProxy(config),\n };\n}\n"],"names":[],"mappings":";;;;;AASM,SAAU,aAAa,CAAC,MAAuB,EAAA;IACnD,OAAO;;AAEL,QAAA,IAAI,EAAE,eAAe,CAAC,EAAC,MAAM,EAAC,CAAC;AAC/B,QAAA,OAAO,EAAE,kBAAkB,CAAC,EAAC,MAAM,EAAC,CAAC;AACrC,QAAA,UAAU,EAAE,qBAAqB,CAAC,EAAC,MAAM,EAAC,CAAC;AAC3C,QAAA,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC;KACnC;AACH;;;;"}