contensis-management-api
Advanced tools
Comparing version 1.0.0-beta.3 to 1.0.0-beta.4
@@ -1,2 +0,2 @@ | ||
import { Config, ContensisClient, IContentTypeOperations, IEntryOperations, INodeOperations, IProjectOperations } from '../models'; | ||
import { Config, ContensisClient, IContentTypeOperations, IEntryOperations, INodeOperations, IProjectOperations, IRoleOperations, IPermissionOperations, IComponentOperations } from '../models'; | ||
import { ClientConfig } from './client-config'; | ||
@@ -7,6 +7,9 @@ import { ClientParams } from 'contensis-core-api'; | ||
clientConfig: ClientConfig; | ||
components: IComponentOperations; | ||
contentTypes: IContentTypeOperations; | ||
entries: IEntryOperations; | ||
contentTypes: IContentTypeOperations; | ||
nodes: INodeOperations; | ||
permissions: IPermissionOperations; | ||
projects: IProjectOperations; | ||
roles: IRoleOperations; | ||
private httpClient; | ||
@@ -13,0 +16,0 @@ private token; |
@@ -8,3 +8,6 @@ import fetch from 'cross-fetch'; | ||
import { ProjectOperations } from '../projects/project-operations'; | ||
const Scopes = 'Entry_Read Entry_Write Entry_Delete ContentType_Read Project_Read'; | ||
import { RoleOperations } from '../roles/RolesOperations'; | ||
import { PermissionOperations } from '../permissions/permission-operations'; | ||
import { ComponentOperations } from '../components/component-operations'; | ||
const Scopes = 'ContentType_Read ContentType_Write ContentType_Delete Entry_Read Entry_Write Entry_Delete Project_Read Project_Write Project_Delete'; | ||
export class Client { | ||
@@ -15,6 +18,9 @@ constructor(config = null) { | ||
this.httpClient = new HttpClient(this); | ||
this.components = new ComponentOperations(this.httpClient, this); | ||
this.contentTypes = new ContentTypeOperations(this.httpClient, this); | ||
this.entries = new EntryOperations(this.httpClient, this); | ||
this.nodes = new NodeOperations(this.httpClient, this); | ||
this.permissions = new PermissionOperations(this.httpClient, this); | ||
this.projects = new ProjectOperations(this.httpClient, this); | ||
this.roles = new RoleOperations(this.httpClient, this); | ||
} | ||
@@ -21,0 +27,0 @@ static create(config = null) { |
@@ -5,6 +5,14 @@ import { IEntryOperations } from './IEntryOperations'; | ||
import { INodeOperations } from './INodeOperations'; | ||
import { IRoleOperations } from './IRoleOperations'; | ||
import { IProjectOperations } from './IProjectOperations'; | ||
import { IPermissionOperations } from './IPermissionOperations'; | ||
import { IComponentOperations } from './IComponentOperations'; | ||
export interface ContensisClient extends IParamsProvider { | ||
components: IComponentOperations; | ||
contentTypes: IContentTypeOperations; | ||
entries: IEntryOperations; | ||
contentTypes: IContentTypeOperations; | ||
nodes: INodeOperations; | ||
permissions: IPermissionOperations; | ||
projects: IProjectOperations; | ||
roles: IRoleOperations; | ||
getHeaders: (contentType?: string) => { | ||
@@ -11,0 +19,0 @@ [key: string]: string; |
@@ -0,3 +1,8 @@ | ||
export * from './AllowedPermissions'; | ||
export * from './Authorization'; | ||
export * from './AuthorizationGetOptions'; | ||
export * from './Assignments'; | ||
export * from './ClientConfigFactory'; | ||
export * from './ClientStatic'; | ||
export * from './ComponentGetOptions'; | ||
export * from './Config'; | ||
@@ -10,6 +15,9 @@ export * from './ContensisClient'; | ||
export * from './EntryListOptions'; | ||
export * from './IComponentOperations'; | ||
export * from './IContentTypeOperations'; | ||
export * from './IEntryOperations'; | ||
export * from './INodeOperations'; | ||
export * from './IPermissionOperations'; | ||
export * from './IProjectOperations'; | ||
export * from './IRoleOperations'; | ||
export * from './ManagementApiScope'; | ||
@@ -20,3 +28,8 @@ export * from './Node'; | ||
export * from './NodeIdOptions'; | ||
export * from './Permission'; | ||
export * from './PermissionGetOptions'; | ||
export * from './Permissions'; | ||
export * from './ResourceType'; | ||
export * from './Role'; | ||
export * from './WorkflowTrigger'; | ||
export * from './ZengentiStatic'; |
export interface WorkflowTrigger { | ||
language: string; | ||
language?: string; | ||
version: string; | ||
@@ -4,0 +4,0 @@ event: string; |
@@ -7,5 +7,9 @@ # Changelog | ||
## [1.0.0-beta.4] - 2019-12-11 | ||
### Added | ||
- full api support for components, roles and permissions; | ||
## [1.0.0-beta.3] - 2019-12-06 | ||
### Added | ||
- complete api support for projects, content types, entries and nodes; | ||
- full api support for projects, content types, entries and nodes; | ||
@@ -12,0 +16,0 @@ ## [1.0.0-beta.2] - 2019-11-28 |
@@ -1,2 +0,2 @@ | ||
import { Config, ContensisClient, IContentTypeOperations, IEntryOperations, INodeOperations, IProjectOperations } from '../models'; | ||
import { Config, ContensisClient, IContentTypeOperations, IEntryOperations, INodeOperations, IProjectOperations, IRoleOperations, IPermissionOperations, IComponentOperations } from '../models'; | ||
import { ClientConfig } from './client-config'; | ||
@@ -7,6 +7,9 @@ import { ClientParams } from 'contensis-core-api'; | ||
clientConfig: ClientConfig; | ||
components: IComponentOperations; | ||
contentTypes: IContentTypeOperations; | ||
entries: IEntryOperations; | ||
contentTypes: IContentTypeOperations; | ||
nodes: INodeOperations; | ||
permissions: IPermissionOperations; | ||
projects: IProjectOperations; | ||
roles: IRoleOperations; | ||
private httpClient; | ||
@@ -13,0 +16,0 @@ private token; |
@@ -10,3 +10,6 @@ "use strict"; | ||
const project_operations_1 = require("../projects/project-operations"); | ||
const Scopes = 'Entry_Read Entry_Write Entry_Delete ContentType_Read Project_Read'; | ||
const RolesOperations_1 = require("../roles/RolesOperations"); | ||
const permission_operations_1 = require("../permissions/permission-operations"); | ||
const component_operations_1 = require("../components/component-operations"); | ||
const Scopes = 'ContentType_Read ContentType_Write ContentType_Delete Entry_Read Entry_Write Entry_Delete Project_Read Project_Write Project_Delete'; | ||
class Client { | ||
@@ -17,6 +20,9 @@ constructor(config = null) { | ||
this.httpClient = new contensis_core_api_1.HttpClient(this); | ||
this.components = new component_operations_1.ComponentOperations(this.httpClient, this); | ||
this.contentTypes = new content_type_operations_1.ContentTypeOperations(this.httpClient, this); | ||
this.entries = new entry_operations_1.EntryOperations(this.httpClient, this); | ||
this.nodes = new node_operations_1.NodeOperations(this.httpClient, this); | ||
this.permissions = new permission_operations_1.PermissionOperations(this.httpClient, this); | ||
this.projects = new project_operations_1.ProjectOperations(this.httpClient, this); | ||
this.roles = new RolesOperations_1.RoleOperations(this.httpClient, this); | ||
} | ||
@@ -23,0 +29,0 @@ static create(config = null) { |
@@ -5,6 +5,14 @@ import { IEntryOperations } from './IEntryOperations'; | ||
import { INodeOperations } from './INodeOperations'; | ||
import { IRoleOperations } from './IRoleOperations'; | ||
import { IProjectOperations } from './IProjectOperations'; | ||
import { IPermissionOperations } from './IPermissionOperations'; | ||
import { IComponentOperations } from './IComponentOperations'; | ||
export interface ContensisClient extends IParamsProvider { | ||
components: IComponentOperations; | ||
contentTypes: IContentTypeOperations; | ||
entries: IEntryOperations; | ||
contentTypes: IContentTypeOperations; | ||
nodes: INodeOperations; | ||
permissions: IPermissionOperations; | ||
projects: IProjectOperations; | ||
roles: IRoleOperations; | ||
getHeaders: (contentType?: string) => { | ||
@@ -11,0 +19,0 @@ [key: string]: string; |
@@ -0,3 +1,8 @@ | ||
export * from './AllowedPermissions'; | ||
export * from './Authorization'; | ||
export * from './AuthorizationGetOptions'; | ||
export * from './Assignments'; | ||
export * from './ClientConfigFactory'; | ||
export * from './ClientStatic'; | ||
export * from './ComponentGetOptions'; | ||
export * from './Config'; | ||
@@ -10,6 +15,9 @@ export * from './ContensisClient'; | ||
export * from './EntryListOptions'; | ||
export * from './IComponentOperations'; | ||
export * from './IContentTypeOperations'; | ||
export * from './IEntryOperations'; | ||
export * from './INodeOperations'; | ||
export * from './IPermissionOperations'; | ||
export * from './IProjectOperations'; | ||
export * from './IRoleOperations'; | ||
export * from './ManagementApiScope'; | ||
@@ -20,3 +28,8 @@ export * from './Node'; | ||
export * from './NodeIdOptions'; | ||
export * from './Permission'; | ||
export * from './PermissionGetOptions'; | ||
export * from './Permissions'; | ||
export * from './ResourceType'; | ||
export * from './Role'; | ||
export * from './WorkflowTrigger'; | ||
export * from './ZengentiStatic'; |
export interface WorkflowTrigger { | ||
language: string; | ||
language?: string; | ||
version: string; | ||
@@ -4,0 +4,0 @@ event: string; |
{ | ||
"name": "contensis-management-api", | ||
"version": "1.0.0-beta.3", | ||
"version": "1.0.0-beta.4", | ||
"description": "Contensis Javascript Management API", | ||
@@ -53,3 +53,3 @@ "engines": { | ||
"dependencies": { | ||
"contensis-core-api": "^1.0.0-beta.1", | ||
"contensis-core-api": "^1.0.0-beta.2", | ||
"cross-fetch": "^3.0.4", | ||
@@ -56,0 +56,0 @@ "es6-promise": "^4.2.6", |
import fetch from 'cross-fetch'; | ||
import { | ||
Config, ContensisClient, IContentTypeOperations, | ||
IEntryOperations, INodeOperations, IProjectOperations | ||
IEntryOperations, INodeOperations, IProjectOperations, IRoleOperations, IPermissionOperations, IComponentOperations | ||
} from '../models'; | ||
@@ -12,4 +12,7 @@ import { EntryOperations } from '../entries/entry-operations'; | ||
import { ProjectOperations } from '../projects/project-operations'; | ||
import { RoleOperations } from '../roles/RolesOperations'; | ||
import { PermissionOperations } from '../permissions/permission-operations'; | ||
import { ComponentOperations } from '../components/component-operations'; | ||
const Scopes = 'Entry_Read Entry_Write Entry_Delete ContentType_Read Project_Read'; | ||
const Scopes = 'ContentType_Read ContentType_Write ContentType_Delete Entry_Read Entry_Write Entry_Delete Project_Read Project_Write Project_Delete'; | ||
@@ -21,6 +24,9 @@ export class Client implements ContensisClient { | ||
clientConfig: ClientConfig = null; | ||
components: IComponentOperations; | ||
contentTypes: IContentTypeOperations; | ||
entries: IEntryOperations; | ||
contentTypes: IContentTypeOperations; | ||
nodes: INodeOperations; | ||
permissions: IPermissionOperations; | ||
projects: IProjectOperations; | ||
roles: IRoleOperations; | ||
@@ -42,6 +48,9 @@ private httpClient: IHttpClient; | ||
this.components = new ComponentOperations(this.httpClient, this); | ||
this.contentTypes = new ContentTypeOperations(this.httpClient, this); | ||
this.entries = new EntryOperations(this.httpClient, this); | ||
this.nodes = new NodeOperations(this.httpClient, this); | ||
this.permissions = new PermissionOperations(this.httpClient, this); | ||
this.projects = new ProjectOperations(this.httpClient, this); | ||
this.roles = new RoleOperations(this.httpClient, this); | ||
} | ||
@@ -48,0 +57,0 @@ |
@@ -6,7 +6,16 @@ import { IEntryOperations } from './IEntryOperations'; | ||
import { INodeOperations } from './INodeOperations'; | ||
import { IRoleOperations } from './IRoleOperations'; | ||
import { IProjectOperations } from './IProjectOperations'; | ||
import { IPermissionOperations } from './IPermissionOperations'; | ||
import { IComponentOperations } from './IComponentOperations'; | ||
export interface ContensisClient extends IParamsProvider { | ||
components: IComponentOperations; | ||
contentTypes: IContentTypeOperations; | ||
entries: IEntryOperations; | ||
contentTypes: IContentTypeOperations; | ||
nodes: INodeOperations; | ||
permissions: IPermissionOperations; | ||
projects: IProjectOperations; | ||
roles: IRoleOperations; | ||
@@ -13,0 +22,0 @@ getHeaders: (contentType?: string) => { [key: string]: string }; |
@@ -0,3 +1,8 @@ | ||
export * from './AllowedPermissions'; | ||
export * from './Authorization'; | ||
export * from './AuthorizationGetOptions'; | ||
export * from './Assignments'; | ||
export * from './ClientConfigFactory'; | ||
export * from './ClientStatic'; | ||
export * from './ComponentGetOptions'; | ||
export * from './Config'; | ||
@@ -10,6 +15,9 @@ export * from './ContensisClient'; | ||
export * from './EntryListOptions'; | ||
export * from './IComponentOperations'; | ||
export * from './IContentTypeOperations'; | ||
export * from './IEntryOperations'; | ||
export * from './INodeOperations'; | ||
export * from './IPermissionOperations'; | ||
export * from './IProjectOperations'; | ||
export * from './IRoleOperations'; | ||
export * from './ManagementApiScope'; | ||
@@ -20,3 +28,8 @@ export * from './Node'; | ||
export * from './NodeIdOptions'; | ||
export * from './Permission'; | ||
export * from './PermissionGetOptions'; | ||
export * from './Permissions'; | ||
export * from './ResourceType'; | ||
export * from './Role'; | ||
export * from './WorkflowTrigger'; | ||
export * from './ZengentiStatic'; |
export interface WorkflowTrigger { | ||
language: string; | ||
language?: string; | ||
version: string; | ||
@@ -4,0 +4,0 @@ event: string; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
482789
266
11336