@shitty-scope-name/wapm-registry
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

registry.wapm.io TypeScript API client

GraphQL client for registry.wapm.io with full TypeScript support

Installation

npm install @shitty-scope-name/wapm-registry

Docs

You can read more about usage in the client docs and Genql docs

Example usage

import { createClient } from '@shitty-scope-name/wapm-registry'
const client = createClient()


// query variables
let size = 3
let input

client
  .mutation({
    acceptNamespaceCollaboratorInvite: {
      __args: {
        input: input,
      },
      clientMutationId: true,
      namespaceCollaboratorInvite: {
        accepted: {
          createdAt: true,
          id: true,
        },
        approvedBy: {
          avatar: {
            __args: {
              size: size,
            },
          },
        },
        closedAt: true,
      },
    },
  })
  .then((x) => console.log(JSON.stringify(x, null, 4)))



// query variables
let size = 3
let input

client
  .mutation({
    acceptPackageCollaboratorInvite: {
      __args: {
        input: input,
      },
      clientMutationId: true,
      packageCollaboratorInvite: {
        accepted: {
          createdAt: true,
          id: true,
        },
        approvedBy: {
          avatar: {
            __args: {
              size: size,
            },
          },
        },
        closedAt: true,
      },
    },
  })
  .then((x) => console.log(JSON.stringify(x, null, 4)))

Sponsor

This project is sponsored by Notaku: Create public docs websites from your Notion pages

Notaku

Package Sidebar

Install

npm i @shitty-scope-name/wapm-registry

Weekly Downloads

2

Version

0.2.0

License

none

Unpacked Size

1.03 MB

Total Files

51

Last publish

Collaborators

  • xmorse