From a179222fc8459b3d794d3bd012f623283255f2e3 Mon Sep 17 00:00:00 2001 From: Toan Nguyen Date: Tue, 15 Oct 2024 11:21:00 +0700 Subject: [PATCH] update ndc-stripe v0.2.3 --- registry/hasura/stripe/README.md | 39 +++++++++++++++++++ registry/{ => hasura}/stripe/logo.svg | 0 registry/{ => hasura}/stripe/metadata.json | 21 ++-------- .../releases/v0.2.3/connector-packaging.json | 11 ++++++ registry/stripe/README.md | 9 ----- 5 files changed, 54 insertions(+), 26 deletions(-) create mode 100644 registry/hasura/stripe/README.md rename registry/{ => hasura}/stripe/logo.svg (100%) rename registry/{ => hasura}/stripe/metadata.json (51%) create mode 100644 registry/hasura/stripe/releases/v0.2.3/connector-packaging.json delete mode 100644 registry/stripe/README.md diff --git a/registry/hasura/stripe/README.md b/registry/hasura/stripe/README.md new file mode 100644 index 00000000..c1eab67f --- /dev/null +++ b/registry/hasura/stripe/README.md @@ -0,0 +1,39 @@ +# Stripe Connector + +## Overview + +The Stripe Data Connector provides an instant adapter for Engine v3 to request Stripe resources via GraphQL. This connector is built upon the [REST connector](https://github.com/hasura/ndc-rest) and [Stripe's OpenAPI Specification](https://github.com/stripe/openapi). + +- [GitHub Repository](https://github.com/hasura/ndc-stripe) + +## Prerequisites + +1. Create a [Hasura Cloud account](https://console.hasura.io) +2. Please ensure you have the [DDN CLI](https://hasura.io/docs/3.0/cli/installation) and + [Docker](https://docs.docker.com/engine/install/) installed +3. [Create a supergraph](https://hasura.io/docs/3.0/getting-started/init-supergraph) +4. [Create a subgraph](https://hasura.io/docs/3.0/getting-started/init-subgraph) + +The steps below explain how to initialize and configure a connector on your local machine (typically for development +purposes).You can learn how to deploy a connector to Hasura DDN — after it's been configured — +[here](https://hasura.io/docs/3.0/getting-started/deployment/deploy-a-connector). + +## Using the Stripe connector + +With the [context set](https://hasura.io/docs/3.0/cli/commands/ddn_context_set/) for an existing subgraph, initialize +the connector by choosing `hasura/stripe`. When the wizard runs, you'll also be prompted to enter the following env +vars necessary for your connector to function. + +After the CLI initializes the connector, you'll need to: + +- [Introspect](https://hasura.io/docs/3.0/cli/commands/ddn_connector_introspect) the source. +- Add your [models](https://hasura.io/docs/3.0/cli/commands/ddn_model_add) and + [commands](https://hasura.io/docs/3.0/cli/commands/ddn_command_add). +- Create a [new build](https://hasura.io/docs/3.0/cli/commands/ddn_supergraph_build_local). +- Test it by [running your project along with the connector](https://hasura.io/docs/3.0/cli/commands/ddn_run#examples + +See all available variables [here](https://github.com/hasura/ndc-stripe#environment-variables). + +## License + +The Hasura Stripe connector is available under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). diff --git a/registry/stripe/logo.svg b/registry/hasura/stripe/logo.svg similarity index 100% rename from registry/stripe/logo.svg rename to registry/hasura/stripe/logo.svg diff --git a/registry/stripe/metadata.json b/registry/hasura/stripe/metadata.json similarity index 51% rename from registry/stripe/metadata.json rename to registry/hasura/stripe/metadata.json index 988637d2..9c10ac2e 100644 --- a/registry/stripe/metadata.json +++ b/registry/hasura/stripe/metadata.json @@ -5,7 +5,7 @@ "title": "Stripe Data Connector", "logo": "logo.svg", "tags": [], - "latest_version": "v0.2.1" + "latest_version": "v0.2.3" }, "author": { "support_email": "support@hasura.io", @@ -13,27 +13,14 @@ "name": "Hasura" }, "is_verified": true, - "is_hosted_by_hasura": false, - "packages": [ - { - "version": "v0.2.1", - "uri": "https://github.com/hasura/ndc-stripe/releases/download/v0.2.1/connector-definition.tgz", - "checksum": { - "type": "sha256", - "value": "c805f655843881bebe1056b386954df9d7d9d3b33138342a5b7ed4480b8a4c02" - }, - "source": { - "hash": "3ae2790c8aff6bc6dd386a60809c6149158b5557" - } - } - ], + "is_hosted_by_hasura": true, "source_code": { "is_open_source": true, "repository": "https://github.com/hasura/ndc-stripe", "version": [ { - "tag": "v0.2.1", - "hash": "3ae2790c8aff6bc6dd386a60809c6149158b5557", + "tag": "v0.2.3", + "hash": "71956bc9cc3eb1c08c0f22441a8c9d106dc6cea8", "is_verified": true } ] diff --git a/registry/hasura/stripe/releases/v0.2.3/connector-packaging.json b/registry/hasura/stripe/releases/v0.2.3/connector-packaging.json new file mode 100644 index 00000000..70ca270d --- /dev/null +++ b/registry/hasura/stripe/releases/v0.2.3/connector-packaging.json @@ -0,0 +1,11 @@ +{ + "version": "v0.2.3", + "uri": "https://github.com/hasura/ndc-stripe/releases/download/v0.2.3/connector-definition.tgz", + "checksum": { + "type": "sha256", + "value": "01c3b462cfc89e78cbf72f8713c59c67d2c13b3054a16f39a584e293bee6ab10" + }, + "source": { + "hash": "71956bc9cc3eb1c08c0f22441a8c9d106dc6cea8" + } +} diff --git a/registry/stripe/README.md b/registry/stripe/README.md deleted file mode 100644 index 7ca3f1a4..00000000 --- a/registry/stripe/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# Stripe Connector - -## Overview - -The Stripe Data Connector provides an instant adapter for Engine v3 to request Stripe resources via GraphQL. This connector is built upon the [REST connector](https://github.com/hasura/ndc-rest) and [Stripe's OpenAPI Specification](https://github.com/stripe/openapi). - -## Usage - -Set the API key to `STRIPE_BEARER_AUTH_TOKEN` environment variable and start the container. See all available variables [here](https://github.com/hasura/ndc-stripe#environment-variables).