@itxch/contentful-import
Version:
This tool allows you to import JSON dump exported by contentful-export
36 lines (35 loc) • 4.36 kB
TypeScript
export default function initClient(opts: any): {
getEnvironmentTemplates: (organizationId: string, query?: import('contentful-management').BasicCursorPaginationOptions & {
select?: string;
}) => Promise<import('contentful-management').CursorPaginatedCollection<import('contentful-management').EnvironmentTemplate, import('contentful-management').EnvironmentTemplateProps>>;
getEnvironmentTemplate: ({ organizationId, environmentTemplateId, version, query, }: import('contentful-management').GetEnvironmentTemplateParams & {
version?: number;
query?: {
select?: string;
};
}) => Promise<import('contentful-management').EnvironmentTemplate>;
createEnvironmentTemplate: (organizationId: string, environmentTemplateData: import('contentful-management').CreateEnvironmentTemplateProps) => Promise<import('contentful-management').EnvironmentTemplate>;
getSpaces: (query?: import('contentful-management').QueryOptions) => Promise<import('contentful-management').Collection<import('contentful-management').Space, import('contentful-management').SpaceProps>>;
getSpace: (spaceId: string) => Promise<import('contentful-management').Space>;
createSpace: (spaceData: Omit<import('contentful-management').SpaceProps, "sys"> & {
defaultLocale?: string;
}, organizationId: string) => Promise<import('contentful-management').Space>;
getOrganization: (id: string) => Promise<import('contentful-management').Organization>;
getOrganizations: (query?: import('contentful-management').PaginationQueryParams["query"]) => Promise<import('contentful-management').Collection<import('contentful-management').Organization, import('contentful-management').OrganizationProps>>;
getCurrentUser: <T = import('contentful-management').UserProps>(params?: import('contentful-management').QueryParams) => Promise<T>;
getOAuthApplication: (params: import('contentful-management').GetOAuthApplicationParams) => Promise<import('contentful-management').OAuthApplicationProps>;
getOAuthApplications: (params: import('contentful-management').GetUserParams & import('contentful-management').QueryParams) => Promise<import('contentful-management').CursorPaginatedCollection<import('contentful-management').OAuthApplication, import('contentful-management').OAuthApplicationProps>>;
createOAuthApplication: (params: import('contentful-management').GetUserParams, rawData: import('contentful-management').CreateOAuthApplicationProps) => Promise<import('contentful-management').OAuthApplicationProps>;
getAppDefinition: (params: import('contentful-management').GetAppDefinitionParams) => Promise<import('contentful-management').AppDefinition>;
createPersonalAccessToken: (data: import('contentful-management').CreatePersonalAccessTokenProps) => Promise<import('contentful-management').PersonalAccessToken>;
getPersonalAccessToken: (tokenId: string) => Promise<import('contentful-management').PersonalAccessToken>;
getPersonalAccessTokens: () => Promise<import('contentful-management').Collection<import('contentful-management').PersonalAccessToken, import('contentful-management').PersonalAccessTokenProps>>;
getAccessToken: (tokenId: string) => Promise<import('contentful-management').AccessToken>;
getAccessTokens: () => Promise<import('contentful-management').Collection<import('contentful-management').AccessToken, import('contentful-management').AccessTokenProp>>;
getOrganizationAccessTokens: (organizationId: string, query?: import('contentful-management').QueryOptions) => Promise<import('contentful-management').Collection<import('contentful-management').AccessToken, import('contentful-management').AccessTokenProp>>;
getOrganizationUsage: (organizationId: string, query?: import('contentful-management').QueryOptions) => Promise<import('contentful-management').Collection<import('contentful-management').Usage, import('contentful-management').UsageProps>>;
getSpaceUsage: (organizationId: string, query?: import('contentful-management/dist/typings/entities/usage').UsageQuery) => Promise<import('contentful-management').Collection<import('contentful-management').Usage, import('contentful-management').UsageProps>>;
rawRequest: ({ url, ...config }: import('axios').RawAxiosRequestConfig & {
url: string;
}) => Promise<any>;
};