@sigmaott/base-library-next 2.2.5 → 2.2.7
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/.npmrc +3 -0
- package/locales/en.yaml +289 -289
- package/locales/vi.yaml +294 -294
- package/nuxt.config.ts +18 -18
- package/package.json +32 -33
- package/public/routes.json +33 -33
- package/src/api/axios.ts +3 -3
- package/src/api/index.ts +86 -86
- package/src/api-client-library/.openapi-generator/FILES +20 -20
- package/src/api-client-library/.openapi-generator-ignore +23 -23
- package/src/api-client-library/api/health-api.ts +119 -119
- package/src/api-client-library/api/presets-api.ts +599 -599
- package/src/api-client-library/api/profiles-api.ts +676 -676
- package/src/api-client-library/api.ts +20 -20
- package/src/api-client-library/base.ts +72 -72
- package/src/api-client-library/common.ts +150 -150
- package/src/api-client-library/configuration.ts +101 -101
- package/src/api-client-library/git_push.sh +57 -57
- package/src/api-client-library/index.ts +18 -18
- package/src/api-client-library/models/create-preset-dto.ts +223 -223
- package/src/api-client-library/models/create-profile-dto.ts +45 -45
- package/src/api-client-library/models/health-controller-get-health200-response-info-value.ts +32 -32
- package/src/api-client-library/models/health-controller-get-health200-response.ts +51 -51
- package/src/api-client-library/models/health-controller-get-health503-response.ts +51 -51
- package/src/api-client-library/models/index.ts +7 -7
- package/src/api-client-library/models/update-preset-dto.ts +223 -223
- package/src/api-client-library/models/update-profile-dto.ts +45 -45
- package/src/components/MediaSelection.vue +40 -40
- package/src/components/PresetModify.vue +154 -154
- package/src/components/PresetTable.vue +114 -114
- package/src/components/ProfileAllList.vue +137 -137
- package/src/components/ProfileFormModal.vue +79 -79
- package/src/components/ProfileModify.vue +152 -152
- package/src/components/ProfileTable.vue +68 -68
- package/src/components/WatermarkDraggableItem.vue +88 -88
- package/src/components/channel/ConfigWatermarkItem.vue +239 -239
- package/src/components/channel/WatermarkPreview.vue +19 -19
- package/src/components/common/Vue3DraggableResizable/Container.vue +71 -71
- package/src/components/common/Vue3DraggableResizable/index.vue +1327 -1327
- package/src/components/common/Vue3DraggableResizable/utils/dom.js +63 -63
- package/src/components/common/Vue3DraggableResizable/utils/fns.js +37 -37
- package/src/components/common/VueDraggableResizable/dom.js +63 -63
- package/src/components/common/VueDraggableResizable/fns.js +37 -37
- package/src/components/common/VueDraggableResizable/index.vue +958 -958
- package/src/components/preset/ConfigItem.vue +956 -956
- package/src/components/profile/ConfigItem.vue +765 -765
- package/src/components/profile/TableColumns.vue +137 -137
- package/src/components/shared/AudioInfoViewer.vue +101 -101
- package/src/components/shared/MediaInfoViewer.vue +249 -249
- package/src/components/shared/MediaInfoViewerSmall.vue +111 -105
- package/src/components/shared/PopoverProfile.vue +17 -17
- package/src/components/shared/VideoInfoViewer.vue +136 -136
- package/src/components/shared/fileSizeFilter.ts +26 -26
- package/src/composables/preset.ts +141 -141
- package/src/public/build-time.json +1 -1
- package/src/public/favicon.svg +15 -15
- package/src/public/logo.svg +9 -9
- package/src/public/routes.json +86 -86
- package/src/utils/common.ts +175 -175
- package/src/utils/config.ts +19 -19
- package/src/utils/preset.ts +353 -353
- package/src/utils/profile.ts +30 -30
- package/tsconfig.json +3 -3
package/package.json
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@sigmaott/base-library-next",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "2.2.
|
|
5
|
-
"publishConfig": {
|
|
6
|
-
"access": "public"
|
|
7
|
-
},
|
|
8
|
-
"main": "./nuxt.config.ts",
|
|
9
|
-
"files": [
|
|
10
|
-
"locales",
|
|
11
|
-
"src",
|
|
12
|
-
"public",
|
|
13
|
-
".npmrc",
|
|
14
|
-
"nuxt.config.ts",
|
|
15
|
-
"tsconfig.json"
|
|
16
|
-
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build:development": "nuxi build --dotenv .env.development",
|
|
19
|
-
"build:staging": "nuxi build --dotenv .env.staging",
|
|
20
|
-
"build:production": "nuxi build --dotenv .env.production",
|
|
21
|
-
"dev": "nuxi dev --dotenv .env.development",
|
|
22
|
-
"dev:pwa": "VITE_PLUGIN_PWA=true nuxi dev",
|
|
23
|
-
"start": "node .output/server/index.mjs",
|
|
24
|
-
"typecheck": "vue-tsc --noEmit",
|
|
25
|
-
"postinstall": "nuxi prepare",
|
|
26
|
-
|
|
27
|
-
"generate": "
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@sigmaott/base-library-next",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.2.7",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"main": "./nuxt.config.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"locales",
|
|
11
|
+
"src",
|
|
12
|
+
"public",
|
|
13
|
+
".npmrc",
|
|
14
|
+
"nuxt.config.ts",
|
|
15
|
+
"tsconfig.json"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build:development": "nuxi build --dotenv .env.development",
|
|
19
|
+
"build:staging": "nuxi build --dotenv .env.staging",
|
|
20
|
+
"build:production": "nuxi build --dotenv .env.production",
|
|
21
|
+
"dev": "nuxi dev --dotenv .env.development",
|
|
22
|
+
"dev:pwa": "VITE_PLUGIN_PWA=true nuxi dev",
|
|
23
|
+
"start": "node .output/server/index.mjs",
|
|
24
|
+
"typecheck": "vue-tsc --noEmit",
|
|
25
|
+
"postinstall": "nuxi prepare",
|
|
26
|
+
"generate": "nuxi generate",
|
|
27
|
+
"start:generate": "npx serve .output/public"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@sigmaott/base-next": "1.4.5"
|
|
31
|
+
}
|
|
32
|
+
}
|
package/public/routes.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"name": "all",
|
|
4
|
-
"path": "/:all(.*)*",
|
|
5
|
-
"meta": {
|
|
6
|
-
"__nuxt_dynamic_meta_key": {}
|
|
7
|
-
},
|
|
8
|
-
"children": []
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"name": "403",
|
|
12
|
-
"path": "/403",
|
|
13
|
-
"meta": {
|
|
14
|
-
"__nuxt_dynamic_meta_key": {}
|
|
15
|
-
},
|
|
16
|
-
"children": []
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "500",
|
|
20
|
-
"path": "/500",
|
|
21
|
-
"meta": {
|
|
22
|
-
"__nuxt_dynamic_meta_key": {}
|
|
23
|
-
},
|
|
24
|
-
"children": []
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "login",
|
|
28
|
-
"path": "/login",
|
|
29
|
-
"meta": {
|
|
30
|
-
"__nuxt_dynamic_meta_key": {}
|
|
31
|
-
},
|
|
32
|
-
"children": []
|
|
33
|
-
}
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "all",
|
|
4
|
+
"path": "/:all(.*)*",
|
|
5
|
+
"meta": {
|
|
6
|
+
"__nuxt_dynamic_meta_key": {}
|
|
7
|
+
},
|
|
8
|
+
"children": []
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "403",
|
|
12
|
+
"path": "/403",
|
|
13
|
+
"meta": {
|
|
14
|
+
"__nuxt_dynamic_meta_key": {}
|
|
15
|
+
},
|
|
16
|
+
"children": []
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "500",
|
|
20
|
+
"path": "/500",
|
|
21
|
+
"meta": {
|
|
22
|
+
"__nuxt_dynamic_meta_key": {}
|
|
23
|
+
},
|
|
24
|
+
"children": []
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "login",
|
|
28
|
+
"path": "/login",
|
|
29
|
+
"meta": {
|
|
30
|
+
"__nuxt_dynamic_meta_key": {}
|
|
31
|
+
},
|
|
32
|
+
"children": []
|
|
33
|
+
}
|
|
34
34
|
]
|
package/src/api/axios.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import service from '@sigmaott/base-next/src/api/axios'
|
|
2
|
-
|
|
3
|
-
export default service
|
|
1
|
+
import service from '@sigmaott/base-next/src/api/axios'
|
|
2
|
+
|
|
3
|
+
export default service
|
package/src/api/index.ts
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import axiosInstance from './axios'
|
|
2
|
-
|
|
3
|
-
export function getProfiles(params: any) {
|
|
4
|
-
return axiosInstance({
|
|
5
|
-
method: 'GET',
|
|
6
|
-
url: '/api/library/profiles',
|
|
7
|
-
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
8
|
-
params,
|
|
9
|
-
})
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function getProfile(id: string) {
|
|
13
|
-
return axiosInstance({
|
|
14
|
-
method: 'GET',
|
|
15
|
-
url: `/api/library/profiles/${id}`,
|
|
16
|
-
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
17
|
-
})
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export function createProfile(data: any) {
|
|
21
|
-
return axiosInstance({
|
|
22
|
-
method: 'POST',
|
|
23
|
-
url: '/api/library/profiles',
|
|
24
|
-
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
25
|
-
data,
|
|
26
|
-
})
|
|
27
|
-
}
|
|
28
|
-
export function updateProfile(data: any) {
|
|
29
|
-
return axiosInstance({
|
|
30
|
-
method: 'PATCH',
|
|
31
|
-
url: `/api/library/profiles/${data.id}`,
|
|
32
|
-
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
33
|
-
data,
|
|
34
|
-
})
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function deleteProfile(id: string) {
|
|
38
|
-
return axiosInstance({
|
|
39
|
-
method: 'DELETE',
|
|
40
|
-
url: `/api/library/profiles/${id}`,
|
|
41
|
-
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
42
|
-
})
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function getPresets(params: any) {
|
|
46
|
-
return axiosInstance({
|
|
47
|
-
method: 'GET',
|
|
48
|
-
url: '/api/library/presets',
|
|
49
|
-
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
50
|
-
params,
|
|
51
|
-
})
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function getPreset(id: string) {
|
|
55
|
-
return axiosInstance({
|
|
56
|
-
method: 'GET',
|
|
57
|
-
url: `/api/library/presets/${id}`,
|
|
58
|
-
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
59
|
-
})
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function createPreset(formData: any) {
|
|
63
|
-
return axiosInstance({
|
|
64
|
-
method: 'POST',
|
|
65
|
-
url: '/api/library/presets',
|
|
66
|
-
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
67
|
-
data: formData,
|
|
68
|
-
})
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function updatePreset(id: string, formData: any) {
|
|
72
|
-
return axiosInstance({
|
|
73
|
-
method: 'PATCH',
|
|
74
|
-
url: `/api/library/presets/${id}`,
|
|
75
|
-
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
76
|
-
data: formData,
|
|
77
|
-
})
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function deletePreset(id: string) {
|
|
81
|
-
return axiosInstance({
|
|
82
|
-
method: 'DELETE',
|
|
83
|
-
url: `/api/library/presets/${id}`,
|
|
84
|
-
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
85
|
-
})
|
|
86
|
-
}
|
|
1
|
+
import axiosInstance from './axios'
|
|
2
|
+
|
|
3
|
+
export function getProfiles(params: any) {
|
|
4
|
+
return axiosInstance({
|
|
5
|
+
method: 'GET',
|
|
6
|
+
url: '/api/library/profiles',
|
|
7
|
+
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
8
|
+
params,
|
|
9
|
+
})
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function getProfile(id: string) {
|
|
13
|
+
return axiosInstance({
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: `/api/library/profiles/${id}`,
|
|
16
|
+
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
17
|
+
})
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function createProfile(data: any) {
|
|
21
|
+
return axiosInstance({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
url: '/api/library/profiles',
|
|
24
|
+
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
25
|
+
data,
|
|
26
|
+
})
|
|
27
|
+
}
|
|
28
|
+
export function updateProfile(data: any) {
|
|
29
|
+
return axiosInstance({
|
|
30
|
+
method: 'PATCH',
|
|
31
|
+
url: `/api/library/profiles/${data.id}`,
|
|
32
|
+
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
33
|
+
data,
|
|
34
|
+
})
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function deleteProfile(id: string) {
|
|
38
|
+
return axiosInstance({
|
|
39
|
+
method: 'DELETE',
|
|
40
|
+
url: `/api/library/profiles/${id}`,
|
|
41
|
+
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
42
|
+
})
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function getPresets(params: any) {
|
|
46
|
+
return axiosInstance({
|
|
47
|
+
method: 'GET',
|
|
48
|
+
url: '/api/library/presets',
|
|
49
|
+
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
50
|
+
params,
|
|
51
|
+
})
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function getPreset(id: string) {
|
|
55
|
+
return axiosInstance({
|
|
56
|
+
method: 'GET',
|
|
57
|
+
url: `/api/library/presets/${id}`,
|
|
58
|
+
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
59
|
+
})
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function createPreset(formData: any) {
|
|
63
|
+
return axiosInstance({
|
|
64
|
+
method: 'POST',
|
|
65
|
+
url: '/api/library/presets',
|
|
66
|
+
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
67
|
+
data: formData,
|
|
68
|
+
})
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function updatePreset(id: string, formData: any) {
|
|
72
|
+
return axiosInstance({
|
|
73
|
+
method: 'PATCH',
|
|
74
|
+
url: `/api/library/presets/${id}`,
|
|
75
|
+
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
76
|
+
data: formData,
|
|
77
|
+
})
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function deletePreset(id: string) {
|
|
81
|
+
return axiosInstance({
|
|
82
|
+
method: 'DELETE',
|
|
83
|
+
url: `/api/library/presets/${id}`,
|
|
84
|
+
baseURL: ENV.NUXT_PUBLIC_API_BASE,
|
|
85
|
+
})
|
|
86
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
.gitignore
|
|
2
|
-
.npmignore
|
|
3
|
-
.openapi-generator-ignore
|
|
4
|
-
api.ts
|
|
5
|
-
api/health-api.ts
|
|
6
|
-
api/presets-api.ts
|
|
7
|
-
api/profiles-api.ts
|
|
8
|
-
base.ts
|
|
9
|
-
common.ts
|
|
10
|
-
configuration.ts
|
|
11
|
-
git_push.sh
|
|
12
|
-
index.ts
|
|
13
|
-
models/create-preset-dto.ts
|
|
14
|
-
models/create-profile-dto.ts
|
|
15
|
-
models/health-controller-get-health200-response-info-value.ts
|
|
16
|
-
models/health-controller-get-health200-response.ts
|
|
17
|
-
models/health-controller-get-health503-response.ts
|
|
18
|
-
models/index.ts
|
|
19
|
-
models/update-preset-dto.ts
|
|
20
|
-
models/update-profile-dto.ts
|
|
1
|
+
.gitignore
|
|
2
|
+
.npmignore
|
|
3
|
+
.openapi-generator-ignore
|
|
4
|
+
api.ts
|
|
5
|
+
api/health-api.ts
|
|
6
|
+
api/presets-api.ts
|
|
7
|
+
api/profiles-api.ts
|
|
8
|
+
base.ts
|
|
9
|
+
common.ts
|
|
10
|
+
configuration.ts
|
|
11
|
+
git_push.sh
|
|
12
|
+
index.ts
|
|
13
|
+
models/create-preset-dto.ts
|
|
14
|
+
models/create-profile-dto.ts
|
|
15
|
+
models/health-controller-get-health200-response-info-value.ts
|
|
16
|
+
models/health-controller-get-health200-response.ts
|
|
17
|
+
models/health-controller-get-health503-response.ts
|
|
18
|
+
models/index.ts
|
|
19
|
+
models/update-preset-dto.ts
|
|
20
|
+
models/update-profile-dto.ts
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# OpenAPI Generator Ignore
|
|
2
|
-
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
3
|
-
|
|
4
|
-
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
-
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
-
|
|
7
|
-
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
-
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
9
|
-
#ApiClient.cs
|
|
10
|
-
|
|
11
|
-
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
-
#foo/*/qux
|
|
13
|
-
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
-
|
|
15
|
-
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
-
#foo/**/qux
|
|
17
|
-
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
-
|
|
19
|
-
# You can also negate patterns with an exclamation (!).
|
|
20
|
-
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
-
#docs/*.md
|
|
22
|
-
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
-
#!docs/README.md
|
|
1
|
+
# OpenAPI Generator Ignore
|
|
2
|
+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
3
|
+
|
|
4
|
+
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
+
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
+
|
|
7
|
+
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
9
|
+
#ApiClient.cs
|
|
10
|
+
|
|
11
|
+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
+
#foo/*/qux
|
|
13
|
+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
+
|
|
15
|
+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
+
#foo/**/qux
|
|
17
|
+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
+
|
|
19
|
+
# You can also negate patterns with an exclamation (!).
|
|
20
|
+
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
+
#docs/*.md
|
|
22
|
+
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
+
#!docs/README.md
|
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Sigma Library
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import type { Configuration } from '../configuration';
|
|
17
|
-
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
18
|
-
import globalAxios from 'axios';
|
|
19
|
-
// Some imports not used depending on template conditions
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
import { HealthControllerGetHealth200Response } from '../models';
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
import { HealthControllerGetHealth503Response } from '../models';
|
|
28
|
-
/**
|
|
29
|
-
* HealthApi - axios parameter creator
|
|
30
|
-
* @export
|
|
31
|
-
*/
|
|
32
|
-
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33
|
-
return {
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @param {*} [options] Override http request option.
|
|
37
|
-
* @throws {RequiredError}
|
|
38
|
-
*/
|
|
39
|
-
healthControllerGetHealth: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40
|
-
const localVarPath = `/api/library/health`;
|
|
41
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43
|
-
let baseOptions;
|
|
44
|
-
if (configuration) {
|
|
45
|
-
baseOptions = configuration.baseOptions;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
49
|
-
const localVarHeaderParameter = {} as any;
|
|
50
|
-
const localVarQueryParameter = {} as any;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
55
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
57
|
-
|
|
58
|
-
return {
|
|
59
|
-
url: toPathString(localVarUrlObj),
|
|
60
|
-
options: localVarRequestOptions,
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* HealthApi - functional programming interface
|
|
68
|
-
* @export
|
|
69
|
-
*/
|
|
70
|
-
export const HealthApiFp = function(configuration?: Configuration) {
|
|
71
|
-
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
72
|
-
return {
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @param {*} [options] Override http request option.
|
|
76
|
-
* @throws {RequiredError}
|
|
77
|
-
*/
|
|
78
|
-
async healthControllerGetHealth(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HealthControllerGetHealth200Response>> {
|
|
79
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.healthControllerGetHealth(options);
|
|
80
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
81
|
-
},
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* HealthApi - factory interface
|
|
87
|
-
* @export
|
|
88
|
-
*/
|
|
89
|
-
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
90
|
-
const localVarFp = HealthApiFp(configuration)
|
|
91
|
-
return {
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @param {*} [options] Override http request option.
|
|
95
|
-
* @throws {RequiredError}
|
|
96
|
-
*/
|
|
97
|
-
healthControllerGetHealth(options?: AxiosRequestConfig): AxiosPromise<HealthControllerGetHealth200Response> {
|
|
98
|
-
return localVarFp.healthControllerGetHealth(options).then((request) => request(axios, basePath));
|
|
99
|
-
},
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* HealthApi - object-oriented interface
|
|
105
|
-
* @export
|
|
106
|
-
* @class HealthApi
|
|
107
|
-
* @extends {BaseAPI}
|
|
108
|
-
*/
|
|
109
|
-
export class HealthApi extends BaseAPI {
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
112
|
-
* @param {*} [options] Override http request option.
|
|
113
|
-
* @throws {RequiredError}
|
|
114
|
-
* @memberof HealthApi
|
|
115
|
-
*/
|
|
116
|
-
public healthControllerGetHealth(options?: AxiosRequestConfig) {
|
|
117
|
-
return HealthApiFp(this.configuration).healthControllerGetHealth(options).then((request) => request(this.axios, this.basePath));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sigma Library
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { HealthControllerGetHealth200Response } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { HealthControllerGetHealth503Response } from '../models';
|
|
28
|
+
/**
|
|
29
|
+
* HealthApi - axios parameter creator
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
healthControllerGetHealth: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40
|
+
const localVarPath = `/api/library/health`;
|
|
41
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43
|
+
let baseOptions;
|
|
44
|
+
if (configuration) {
|
|
45
|
+
baseOptions = configuration.baseOptions;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
49
|
+
const localVarHeaderParameter = {} as any;
|
|
50
|
+
const localVarQueryParameter = {} as any;
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
55
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
57
|
+
|
|
58
|
+
return {
|
|
59
|
+
url: toPathString(localVarUrlObj),
|
|
60
|
+
options: localVarRequestOptions,
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* HealthApi - functional programming interface
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const HealthApiFp = function(configuration?: Configuration) {
|
|
71
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
72
|
+
return {
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
async healthControllerGetHealth(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HealthControllerGetHealth200Response>> {
|
|
79
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.healthControllerGetHealth(options);
|
|
80
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
81
|
+
},
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* HealthApi - factory interface
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
90
|
+
const localVarFp = HealthApiFp(configuration)
|
|
91
|
+
return {
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
healthControllerGetHealth(options?: AxiosRequestConfig): AxiosPromise<HealthControllerGetHealth200Response> {
|
|
98
|
+
return localVarFp.healthControllerGetHealth(options).then((request) => request(axios, basePath));
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* HealthApi - object-oriented interface
|
|
105
|
+
* @export
|
|
106
|
+
* @class HealthApi
|
|
107
|
+
* @extends {BaseAPI}
|
|
108
|
+
*/
|
|
109
|
+
export class HealthApi extends BaseAPI {
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
* @memberof HealthApi
|
|
115
|
+
*/
|
|
116
|
+
public healthControllerGetHealth(options?: AxiosRequestConfig) {
|
|
117
|
+
return HealthApiFp(this.configuration).healthControllerGetHealth(options).then((request) => request(this.axios, this.basePath));
|
|
118
|
+
}
|
|
119
|
+
}
|