dochub-sdk 0.1.333 → 0.1.334

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.333",
3
+ "version": "0.1.334",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",
@@ -1,6 +1,6 @@
1
1
  import {
2
- IDocHubSchema,
3
- BaseTypes,
2
+ DocHubJSONSchema,
3
+ DocHubJSONSchemaBasicTypes,
4
4
  } from './basetypes';
5
5
 
6
6
  /**
@@ -19,13 +19,13 @@ export enum DocHubYamlPatterns {
19
19
  /**
20
20
  * Схема зависимостей пакета
21
21
  */
22
- export const dochubYamlDependencies: IDocHubSchema = {
22
+ export const dochubYamlDependencies: DocHubJSONSchema = {
23
23
  title: 'Зависимости пакета',
24
- type: BaseTypes.object,
24
+ type: DocHubJSONSchemaBasicTypes.object,
25
25
  patternProperties: {
26
26
  [DocHubYamlPatterns.packageID]: {
27
27
  title: 'Выражение требуемой версии зависимости',
28
- type: BaseTypes.string,
28
+ type: DocHubJSONSchemaBasicTypes.string,
29
29
  pattern: DocHubYamlPatterns.packageRequest
30
30
  }
31
31
  },
@@ -35,21 +35,21 @@ export const dochubYamlDependencies: IDocHubSchema = {
35
35
  /**
36
36
  * Структура репозитория
37
37
  */
38
- export const dochubYamlStructure: IDocHubSchema = {
38
+ export const dochubYamlStructure: DocHubJSONSchema = {
39
39
  title: 'Структура репозитория',
40
- type: BaseTypes.object,
40
+ type: DocHubJSONSchemaBasicTypes.object,
41
41
  patternProperties: {
42
42
  [DocHubYamlPatterns.packageStructPattern]: {
43
43
  title: 'Пространство репозитория',
44
- type: BaseTypes.object,
44
+ type: DocHubJSONSchemaBasicTypes.object,
45
45
  properties: {
46
46
  title: {
47
47
  title: 'Описание пространства',
48
- type: BaseTypes.string
48
+ type: DocHubJSONSchemaBasicTypes.string
49
49
  },
50
50
  location: {
51
51
  title: 'Размещение в репозитории',
52
- type: BaseTypes.string,
52
+ type: DocHubJSONSchemaBasicTypes.string,
53
53
  pattern: DocHubYamlPatterns.packageStructSpace
54
54
  }
55
55
  },
@@ -62,31 +62,31 @@ export const dochubYamlStructure: IDocHubSchema = {
62
62
  /**
63
63
  * Схема корневого манифеста
64
64
  */
65
- export const dochubYaml: IDocHubSchema = {
65
+ export const dochubYaml: DocHubJSONSchema = {
66
66
  title: 'Схема файла dochub.yaml',
67
- type: BaseTypes.object,
67
+ type: DocHubJSONSchemaBasicTypes.object,
68
68
  properties: {
69
69
  $package: {
70
70
  title: 'Манифест пакета',
71
- type: BaseTypes.object,
71
+ type: DocHubJSONSchemaBasicTypes.object,
72
72
  patternProperties: {
73
73
  [DocHubYamlPatterns.packageID]: {
74
74
  title: 'Декларируемый пакет',
75
- type: BaseTypes.object,
75
+ type: DocHubJSONSchemaBasicTypes.object,
76
76
  properties: {
77
77
  version: {
78
78
  title: 'Версия пакета',
79
- type: BaseTypes.string,
79
+ type: DocHubJSONSchemaBasicTypes.string,
80
80
  pattern: DocHubYamlPatterns.packageVer
81
81
  },
82
82
  name: {
83
83
  title: 'Наименование пакета',
84
- type: BaseTypes.string,
84
+ type: DocHubJSONSchemaBasicTypes.string,
85
85
  pattern: DocHubYamlPatterns.packageName
86
86
  },
87
87
  description: {
88
88
  title: 'Описание пакета',
89
- type: BaseTypes.string,
89
+ type: DocHubJSONSchemaBasicTypes.string,
90
90
  pattern: DocHubYamlPatterns.packageDescription
91
91
  },
92
92
  dependencies: dochubYamlDependencies,