test-bdk-cli 0.1.19 → 0.1.21

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.
@@ -2,14 +2,91 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "title": "BoldDesk App Manifest",
4
4
  "type": "object",
5
- "required": ["name", "version", "author"],
5
+ "required": ["name", "version", "frameworkVersion", "developer", "widgets", "defaultLocale"],
6
6
  "properties": {
7
- "name": { "type": "string" },
8
- "version": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$" },
9
- "author": { "type": ["string", "object"] },
10
- "description": { "type": "string" },
11
- "main": { "type": "string" },
12
- "permissions": { "type": "array", "items": { "type": "string" } }
7
+ "name": { "type": "string", "minLength": 1 },
8
+ "version": {
9
+ "type": "string",
10
+ "pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$"
11
+ },
12
+ "frameworkVersion": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "description": "Framework version is required"
16
+ },
17
+ "developer": {
18
+ "type": "object",
19
+ "required": ["name"],
20
+ "properties": {
21
+ "name": { "type": "string", "minLength": 1 },
22
+ "contactEmail": { "type": "string" },
23
+ "supportEmail": { "type": "string" },
24
+ "privacyUrl": { "type": "string" },
25
+ "websiteUrl": { "type": "string" },
26
+ "termsOfUseUrl":{ "type": "string" }
27
+ },
28
+ "additionalProperties": false
29
+ },
30
+ "widgets": {
31
+ "type": "array",
32
+ "minItems": 1,
33
+ "items": {
34
+ "type": "object",
35
+ "required": ["url", "name", "location"],
36
+ "properties": {
37
+ "url": { "type": "string", "minLength": 1 },
38
+ "name": { "type": "string", "minLength": 1 },
39
+ "location": { "type": "string", "minLength": 1 }
40
+ },
41
+ "additionalProperties": true
42
+ }
43
+ },
44
+ "oauth": {
45
+ "type": "object",
46
+ "required": ["clientId", "redirectUri", "authorizeUri", "clientSecret", "accessTokenUri"],
47
+ "properties": {
48
+ "clientId": { "type": "string", "minLength": 1 },
49
+ "redirectUri": { "type": "string", "minLength": 1 },
50
+ "authorizeUri": { "type": "string", "minLength": 1 },
51
+ "clientSecret": { "type": "string", "minLength": 1 },
52
+ "accessTokenUri": { "type": "string", "minLength": 1 }
53
+ },
54
+ "additionalProperties": false
55
+ },
56
+ "settings": {
57
+ "type": "object",
58
+ "properties": {
59
+ "fields": {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "object",
63
+ "required": ["key", "type"],
64
+ "properties": {
65
+ "key": { "type": "string", "minLength": 1 },
66
+ "type": { "type": "string", "enum": ["text", "password", "number", "textarea", "radio", "checkbox", "dropdown", "email", "url", "hidden", "OAuth"] },
67
+ "label": { "type": "string" },
68
+ "secure": { "type": "boolean" },
69
+ "options": { "type": "array" },
70
+ "required": { "type": "boolean" },
71
+ "maxLength": { "type": "number" },
72
+ "placeholder": { "type": "string" },
73
+ "defaultValue": { "type": "string" },
74
+ "helpText": { "type": "string" }
75
+ },
76
+ "additionalProperties": false
77
+ }
78
+ },
79
+ "enablePermission": { "type": "boolean" },
80
+ "enableReadPermission": { "type": "boolean" },
81
+ "enableWritePermission": { "type": "boolean" }
82
+ },
83
+ "additionalProperties": false
84
+ },
85
+ "defaultLocale": { "type": "string", "minLength": 1 },
86
+ "domainWhitelist": { "type": "array", "items": { "type": "string" } },
87
+ "private": { "type": "boolean" },
88
+ "product": { "type": "string" },
89
+ "description": { "type": "string" }
13
90
  },
14
- "additionalProperties": true
91
+ "additionalProperties": false
15
92
  }
@@ -1,22 +1,31 @@
1
1
  {
2
2
  "name": "sample-app",
3
- "author": {
4
- "name": "Your Name",
5
- "email": ""
3
+ "developer": {
4
+ "name": "",
5
+ "contactEmail": "",
6
+ "supportEmail": "",
7
+ "privacyUrl": "",
8
+ "websiteUrl": "",
9
+ "termsOfUseUrl": ""
6
10
  },
7
- "defaultLocale": "en",
8
- "private": true,
9
- "location": {
10
- "support": {
11
- "ticket_sidebar": {
12
- "url": "assets/iframe.html",
13
- "flexible": true
14
- }
11
+ "widgets": [
12
+ {
13
+ "url": "assets/iframe.html",
14
+ "name": "Sample Widget",
15
+ "location": "desk.ticket.view.rightpanel"
15
16
  }
17
+ ],
18
+ "settings": {
19
+ "fields": [],
20
+ "enablePermission": false,
21
+ "enableReadPermission": false,
22
+ "enableWritePermission": false
16
23
  },
24
+ "defaultLocale": "en",
25
+ "domainWhitelist": [],
26
+ "private": false,
27
+ "product": "BoldDesk",
17
28
  "version": "1.0.0",
18
- "frameworkVersion": "2.0",
19
- "description": "A sample BoldDesk app scaffolded by the bdk CLI",
20
- "main": "dist/index.html",
21
- "permissions": []
29
+ "frameworkVersion": "1.0",
30
+ "description": ""
22
31
  }