0.1.7 • Published 3 months ago

gls-channel-information v0.1.7

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

Plugin de Channel Information Vendure

Este é um plugin para o framework de e-commerce Vendure permite gerenciar informações específicas do canal, como termos de uso, políticas de privacidade, informações sobre a loja (como "Sobre Nós"), entre outros. Com este plugin, você poderá criar, editar, ler e excluir facilmente essas informações diretamente da sua aplicação Gseller tendo essa funcionalidade para o Admin e fazer a leitura na loja.

Ter informações claras e precisas sobre a loja é essencial para estabelecer confiança com os clientes e garantir uma experiência de compra positiva. Com este plugin, você pode manter todas as informações importantes atualizadas e facilmente acessíveis para os clientes, ajudando a melhorar a transparência e a credibilidade da loja online.

Este é um plugin para o Vendure, um sistema de comércio eletrônico, que

Após configurar o seu projeto Vendure, você pode usar este plugin via npm install:

npm install channel-information

e inclua-o no arquivo vendure-config conforme abaixo:

import { ChannelInformationPlugin } from "channel-information";
...
export const config: VendureConfig = {
  ...
  plugins: [
    ...,
	ChannelInformationPlugin
  ]
}

Os tipos, entradas e mutações atualizadas após a instalação do plugin são:

Common Api Main Type

 enum InformationType {
      "This is the terms of use"
      USE_TERMS
      "This is the about us"
      ABOUT_US
      "This is the privacy policy"
      PRIVACY_POLICY
      "This is the exchange policy"
      EXCHANGE_POLICY
      "This is the delivery policy"
      DELIVERY_POLICY
      "This is the payment policy"
      PAYMENT_POLICY
      "This is the return policy"
      RETURN_POLICY
      "This is the security policy"
      SECURITY_POLICY
      "This is the contact us"
      CONTACT_US
      "This is the FAQ"
      FAQ
    }
  `;

Admin Api Main Type

  type ChannelInformationError {
      errorCode: String!
      message: String!
    }

    type ChannelInformation {
      id: ID!
      type: InformationType
      title: String
      content: String
      status: String
      deleted_at: DateTime
      channel: Channel!
      createdAt: DateTime!
      updatedAt: DateTime!
    }

    type DeleteOrUpdateChannelInformationSuccess {
      success: Boolean
    }

Admin Api Schema Inputs

    input RegisterChannelInformationInput {
      type: InformationType!
      title: String!
      content: String!
      status: String!
    }

    input UpdateChannelInformationInput {
      type: InformationType!
      title: String
      content: String
      status: String
    }

Admin Api Schema Unions

  union ChannelInformationResult = ChannelInformation | ChannelInformationError
  union ChannelInformationDeleteOrUpdateResult = DeleteOrUpdateChannelInformationSuccess| ChannelInformationError

Admin Api Mutations and Query

   extend type Mutation {
      registerChannelInformation(
        input: RegisterChannelInformationInput!
      ): ChannelInformationResult!

      updateChannelInformation(
        input: UpdateChannelInformationInput!
      ): ChannelInformationDeleteOrUpdateResult!
      deleteChannelInformation(
        type: InformationType
      ): ChannelInformationDeleteOrUpdateResult
    }

    extend type Query {
      getChannelInformation(type: InformationType): ChannelInformationResult
    }

Shop Api Main Type

  type ChannelInformationError {
      errorCode: String!
      message: String!
    }

    type ChannelInformation {
      id: ID!
      type: InformationType
      title: String
      content: String
      status: String
      deleted_at: DateTime
      channel: Channel!
      createdAt: DateTime!
      updatedAt: DateTime!
    }

Shop Api Schema Unions

  union ChannelInformationResult = ChannelInformation | ChannelInformationError

Shop Api Query

  extend type Query {
    getChannelInformation(type: InformationType): ChannelInformationResult
  }
0.1.7

3 months ago

0.1.0

3 months ago

0.1.1

3 months ago

0.1.4

3 months ago

0.1.6

3 months ago

0.1.5

3 months ago

0.0.9

3 months ago

0.0.8

3 months ago

0.0.7

3 months ago

0.0.6

3 months ago

0.0.5

3 months ago

0.0.4

3 months ago

0.0.3

3 months ago

0.0.2

3 months ago

0.0.1

3 months ago