@sutech_jp/raas-react-client 0.0.28 → 0.0.30

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.
Files changed (2) hide show
  1. package/dist/api.json +137 -0
  2. package/package.json +5 -4
package/dist/api.json ADDED
@@ -0,0 +1,137 @@
1
+ {
2
+ "paths": {
3
+ "reportSession": {
4
+ "post": {
5
+ "tags": ["RaasController"],
6
+ "summary": "Create Report Session to Raas",
7
+ "description": "Create Report Session to Raas",
8
+ "operationId": "createRepoerSession",
9
+ "requestBody": {
10
+ "content": {
11
+ "application/json": { "schema": { "$ref": "#/components/schemas/RaasCreateSessionRequest" } }
12
+ },
13
+ "required": true
14
+ },
15
+ "responses": {
16
+ "404": {
17
+ "description": "User not found",
18
+ "content": {
19
+ "application/json": {
20
+ "schema": {
21
+ "$ref": "#/components/schemas/ErrorResponse"
22
+ }
23
+ }
24
+ }
25
+ },
26
+ "401": {
27
+ "description": "Unauthorized",
28
+ "content": {
29
+ "application/json": {
30
+ "schema": {
31
+ "$ref": "#/components/schemas/ErrorResponse"
32
+ }
33
+ }
34
+ }
35
+ },
36
+ "200": {
37
+ "description": "Success",
38
+ "content": {
39
+ "application/json": {
40
+ "schema": {
41
+ "$ref": "#/components/schemas/RaasCreateSessionResponse"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ },
49
+ "dataTravellerSession": {
50
+ "post": {
51
+ "tags": ["RaasController"],
52
+ "summary": "Create Report Session to Raas",
53
+ "description": "Create Datatraveler Session to Raas",
54
+ "operationId": "createDatatravelerSession",
55
+ "requestBody": {
56
+ "content": {
57
+ "application/json": { "schema": { "$ref": "#/components/schemas/RaasCreateSessionRequest" } }
58
+ },
59
+ "required": true
60
+ },
61
+ "responses": {
62
+ "404": {
63
+ "description": "User not found",
64
+ "content": {
65
+ "application/json": {
66
+ "schema": {
67
+ "$ref": "#/components/schemas/ErrorResponse"
68
+ }
69
+ }
70
+ }
71
+ },
72
+ "401": {
73
+ "description": "Unauthorized",
74
+ "content": {
75
+ "application/json": {
76
+ "schema": {
77
+ "$ref": "#/components/schemas/ErrorResponse"
78
+ }
79
+ }
80
+ }
81
+ },
82
+ "200": {
83
+ "description": "Success",
84
+ "content": {
85
+ "application/json": {
86
+ "schema": {
87
+ "$ref": "#/components/schemas/RaasCreateSessionResponse"
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ },
96
+ "components": {
97
+ "schemas": {
98
+ "ErrorResponse": {
99
+ "required": ["errors"],
100
+ "type": "object",
101
+ "properties": {
102
+ "errors": {
103
+ "type": "array",
104
+ "items": {
105
+ "$ref": "#/components/schemas/ErrorDetail"
106
+ }
107
+ }
108
+ }
109
+ },
110
+ "RaasCreateSessionRequest": {
111
+ "type": "object",
112
+ "properties": {
113
+ "backUrl": {
114
+ "type": "string"
115
+ },
116
+ "subUrl": {
117
+ "type": "string"
118
+ }
119
+ }
120
+ },
121
+ "RaasCreateSessionResponse": {
122
+ "type": "object",
123
+ "properties": {
124
+ "application": {
125
+ "type": "string"
126
+ },
127
+ "url": {
128
+ "type": "string"
129
+ },
130
+ "newUrl": {
131
+ "type": "string"
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sutech_jp/raas-react-client",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "description": "react client for raas produced by SuTech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,9 +13,10 @@
13
13
  "test": "jest",
14
14
  "watch": "tsc -w",
15
15
  "build": "rimraf dist&&tsc",
16
+ "postbuild": "cpy 'api.json' '../dist' --cwd=src",
16
17
  "prepublishOnly": "npm run build&&npm version patch",
17
- "lint:fix": "eslint --fix \"./{src,test}/**/*.{tsx,ts,js}\" --ignore-path .gitignore",
18
- "format": "prettier --write \"./{src,test}/**/*.{tsx,ts,js}\" --ignore-path .gitignore",
18
+ "lint:fix": "eslint --fix \"./{src,test}/**/*.{tsx,ts,js,json}\" --ignore-path .gitignore",
19
+ "format": "prettier --write \"./{src,test}/**/*.{tsx,ts,js,json}\" --ignore-path .gitignore",
19
20
  "precommit": "npm run format && npm run lint:fix"
20
21
  },
21
22
  "husky": {
@@ -23,7 +24,6 @@
23
24
  "pre-commit": "npm run precommit"
24
25
  }
25
26
  },
26
- "dependencies": {},
27
27
  "devDependencies": {
28
28
  "@testing-library/dom": "^8.11.1",
29
29
  "@testing-library/jest-dom": "^5.15.1",
@@ -33,6 +33,7 @@
33
33
  "@types/node": "^16.9.4",
34
34
  "@typescript-eslint/eslint-plugin": "^4.31.2",
35
35
  "@typescript-eslint/parser": "^4.31.2",
36
+ "cpy-cli": "^4.2.0",
36
37
  "eslint": "^7.32.0",
37
38
  "eslint-config-prettier": "^8.3.0",
38
39
  "eslint-plugin-import": "^2.24.2",