@symanticreative/vendure-admin-client
Version:
A TypeScript GraphQL client for Vendure Admin API to create custom dashboards
64 lines (63 loc) • 1.91 kB
TypeScript
import { BasePaginatedRepository } from './base.repository';
import { GraphQLClientService } from '../core/graphql/graphql-client.service';
import { Customer } from '../models/customer.model';
/**
* Repository for customer operations
*/
export declare class CustomerRepository extends BasePaginatedRepository<Customer, string> {
constructor(graphqlClient: GraphQLClientService);
/**
* Get the GraphQL query for finding by ID
*/
protected getFindByIdQuery(): string;
/**
* Get the GraphQL query for finding all
*/
protected getFindAllQuery(): string;
/**
* Get the GraphQL mutation for creating
*/
protected getCreateMutation(): string;
/**
* Get the GraphQL mutation for updating
*/
protected getUpdateMutation(): string;
/**
* Get the GraphQL mutation for deleting
* Note: Deleting customers is typically not supported or is done differently
*/
protected getDeleteMutation(): string;
/**
* Get the GraphQL query for pagination
*/
protected getFindWithPaginationQuery(): string;
/**
* Get the result path for finding by ID
*/
protected getFindByIdResultPath(): string;
/**
* Get the result path for finding all
*/
protected getFindAllResultPath(): string;
/**
* Get the result path for creating
*/
protected getCreateResultPath(): string;
/**
* Get the result path for updating
*/
protected getUpdateResultPath(): string;
/**
* Get the result path for deleting
*/
protected getDeleteResultPath(): string;
/**
* Get the result path for pagination
*/
protected getFindWithPaginationResultPath(): string;
/**
* Delete is intentionally overridden to throw an error
* since this operation might not be supported in the API
*/
delete(_id: string): Promise<boolean>;
}