@nocobase/plugin-map 0.12.0-alpha.5 → 0.13.0-alpha.2
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/dist/swagger/index.d.ts +77 -0
- package/dist/swagger/index.js +82 -0
- package/package.json +2 -2
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
info: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
paths: {
|
|
6
|
+
'/map-configuration:get': {
|
|
7
|
+
get: {
|
|
8
|
+
description: string;
|
|
9
|
+
tags: string[];
|
|
10
|
+
parameters: {
|
|
11
|
+
name: string;
|
|
12
|
+
in: string;
|
|
13
|
+
description: string;
|
|
14
|
+
required: boolean;
|
|
15
|
+
schema: {
|
|
16
|
+
type: string;
|
|
17
|
+
default: string;
|
|
18
|
+
enum: string[];
|
|
19
|
+
};
|
|
20
|
+
}[];
|
|
21
|
+
responses: {
|
|
22
|
+
200: {
|
|
23
|
+
description: string;
|
|
24
|
+
content: {
|
|
25
|
+
'application/json': {
|
|
26
|
+
schema: {
|
|
27
|
+
$ref: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
'/map-configuration:set': {
|
|
36
|
+
post: {
|
|
37
|
+
description: string;
|
|
38
|
+
tags: string[];
|
|
39
|
+
requestBody: {
|
|
40
|
+
content: {
|
|
41
|
+
'application/json': {
|
|
42
|
+
schema: {
|
|
43
|
+
$ref: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
responses: {
|
|
49
|
+
200: {
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
components: {
|
|
57
|
+
schemas: {
|
|
58
|
+
mapConfiguration: {
|
|
59
|
+
type: string;
|
|
60
|
+
properties: {
|
|
61
|
+
accessKey: {
|
|
62
|
+
type: string;
|
|
63
|
+
};
|
|
64
|
+
securityJsCode: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
type: {
|
|
68
|
+
type: string;
|
|
69
|
+
default: string;
|
|
70
|
+
enum: string[];
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export default _default;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var swagger_default = {
|
|
4
|
+
info: {
|
|
5
|
+
title: "NocoBase API - Map plugin"
|
|
6
|
+
},
|
|
7
|
+
paths: {
|
|
8
|
+
"/map-configuration:get": {
|
|
9
|
+
get: {
|
|
10
|
+
description: "Get map configuration",
|
|
11
|
+
tags: ["map-configuration"],
|
|
12
|
+
parameters: [
|
|
13
|
+
{
|
|
14
|
+
name: "type",
|
|
15
|
+
in: "query",
|
|
16
|
+
description: "Map type",
|
|
17
|
+
required: true,
|
|
18
|
+
schema: {
|
|
19
|
+
type: "string",
|
|
20
|
+
default: "amap",
|
|
21
|
+
enum: ["amap", "google"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
responses: {
|
|
26
|
+
200: {
|
|
27
|
+
description: "successful operation",
|
|
28
|
+
content: {
|
|
29
|
+
"application/json": {
|
|
30
|
+
schema: {
|
|
31
|
+
$ref: "#/components/schemas/mapConfiguration"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"/map-configuration:set": {
|
|
40
|
+
post: {
|
|
41
|
+
description: "\u8BBE\u7F6E\xB7\u5730\u56FE\u914D\u7F6E",
|
|
42
|
+
tags: ["map-configuration"],
|
|
43
|
+
requestBody: {
|
|
44
|
+
content: {
|
|
45
|
+
"application/json": {
|
|
46
|
+
schema: {
|
|
47
|
+
$ref: "#/components/schemas/mapConfiguration"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
responses: {
|
|
53
|
+
200: {
|
|
54
|
+
description: "ok"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
components: {
|
|
61
|
+
schemas: {
|
|
62
|
+
mapConfiguration: {
|
|
63
|
+
type: "object",
|
|
64
|
+
properties: {
|
|
65
|
+
accessKey: {
|
|
66
|
+
type: "string"
|
|
67
|
+
},
|
|
68
|
+
securityJsCode: {
|
|
69
|
+
type: "string"
|
|
70
|
+
},
|
|
71
|
+
type: {
|
|
72
|
+
type: "string",
|
|
73
|
+
default: "amap",
|
|
74
|
+
enum: ["amap", "google"]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
module.exports = swagger_default;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@nocobase/plugin-map",
|
|
3
3
|
"displayName": "Map",
|
|
4
4
|
"displayName.zh-CN": "地图",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.13.0-alpha.2",
|
|
6
6
|
"description": "Provide map fields and blocks",
|
|
7
7
|
"description.zh-CN": "提供地图字段和区块",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"@nocobase/test": "0.x",
|
|
35
35
|
"@nocobase/utils": "0.x"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "c43183b714350217788cf0466e1f32bcaa527302"
|
|
38
38
|
}
|