open-index/open-npm huggingface dataset:
npm package: @rh-nestjs-shopify/graphql
Description: A NestJS module for exposing a Shopify GraphQL Admin API proxy. The `ShopifyGraphqlProxyModule` allows you to expose the GraphQL Admin API without having to pass in an `X-Shopify-Access-Token`. The module automatically provides everything necessary to cal
Latest version: 4.1.0

# @rh-nestjs-shopify/graphql

A NestJS module for exposing a Shopify GraphQL Admin API proxy. The `ShopifyGraphqlProxyModule` allows you to expose the GraphQL Admin API without having to pass in an `X-Shopify-Access-Token`. The module automatically provides everything necessary to call the Shopify GraphQL Admin API. Uses [`@shopify/shopify-api`](https://github.com/shopify/shopify-node-api) under the hood.

# Installation

Install required dependencies and this package using NPM:

```
npm i @shopify/shopify-api @rh-nestjs-shopify/core @rh-nestjs-shopify/auth @rh-nestjs-shopify/graphql
```

or using Yarn:

```
yarn add @shopify/shopify-api @rh-nestjs-shopify/core @rh-nestjs-shopify/auth @rh-nestjs-shopify/graphql
```

# Usage

From your application root module, import the `ShopifyGraphqlProxyModule`:

```ts
// app.module.ts
import { ShopifyAuthModule } from '@rh-nestjs-shopify/auth';
import { ShopifyCoreModule } from '@rh-nestjs-shopify/core';
import { ShopifyGraphqlProxyModule } from '@rh-nestjs-shopify/graphql';

@Module({
  imports: [
    ShopifyCoreModule.forRoot({
      apiKey: 'foo',
      apiSecret: 'bar',
      apiVersion: ApiVersion.Unstable,
      hostName: 'localhost:8081',
      isEmbeddedApp: true,
      scopes: ['test_scope'],
    }),
    ShopifyAuthModule.forRootOnline({
      basePath: 'user',
      returnHeaders: true,
    }),
    ShopifyGraphqlProxyModule,
  ],
})
export class AppModule {}
```

This will expose the `/graphql` endpoint.

Make sure to setup online session authentication using `ShopifyAuthModule` with `forRootOnline` or `forRootAsyncOnline`. The Admin GraphQL API proxy only works with online session tokens. Not with offline tokens.
npm package: @rh-support/cases
Description: Pluggable cases module
Latest version: 2.6.85

# `troubleshoot`

Pluggable cases module

## Usage

```
import {
    Cases, ICasesRouteURLParams
} from '@rh-support/cases';
import '@rh-support/cases/lib/cases.css';
import React from 'react';
import { RouteComponentProps } from 'react-router-dom';

export default function CasesApp(routeProps: RouteComponentProps<ICasesRouteURLParams>) {
    return (<Cases routeProps={routeProps} basePath="/cases" />);
}
```

.
npm package: @rh-support/troubleshoot
Description: Pluggable troubleshoot module
Latest version: 2.6.170

# `troubleshoot`

Pluggable troubleshoot module

## Usage

```
import {
    Troubleshoot
} from '@rh-support/troubleshoot';
<!-- import '@rh-support/troubleshoot/lib/troubleshoot.css'; -->
import React from 'react';
import { RouteComponentProps } from 'react-router-dom';

export function TroubleshootApp(routeProps: RouteComponentProps<{}>) {
    return (<Troubleshoot routeProps={routeProps} basePath="/troubleshoot"/>);
}

```