@longvansoftware/service-js-client 1.0.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.
Files changed (84) hide show
  1. package/README.md +93 -0
  2. package/dist/config/config.d.ts +26 -0
  3. package/dist/config/config.js +29 -0
  4. package/dist/src/graphql/auth/mutations.d.ts +7 -0
  5. package/dist/src/graphql/auth/mutations.js +99 -0
  6. package/dist/src/graphql/auth/queries.d.ts +1 -0
  7. package/dist/src/graphql/auth/queries.js +25 -0
  8. package/dist/src/graphql/cloud/mutations.d.ts +8 -0
  9. package/dist/src/graphql/cloud/mutations.js +115 -0
  10. package/dist/src/graphql/cloud/queries.d.ts +5 -0
  11. package/dist/src/graphql/cloud/queries.js +121 -0
  12. package/dist/src/graphql/computing/mutations.d.ts +10 -0
  13. package/dist/src/graphql/computing/mutations.js +110 -0
  14. package/dist/src/graphql/computing/queries.d.ts +3 -0
  15. package/dist/src/graphql/computing/queries.js +48 -0
  16. package/dist/src/graphql/crm/mutations.d.ts +8 -0
  17. package/dist/src/graphql/crm/mutations.js +316 -0
  18. package/dist/src/graphql/crm/queries.d.ts +7 -0
  19. package/dist/src/graphql/crm/queries.js +281 -0
  20. package/dist/src/graphql/payment/mutations.d.ts +1 -0
  21. package/dist/src/graphql/payment/mutations.js +35 -0
  22. package/dist/src/graphql/payment/queries.d.ts +2 -0
  23. package/dist/src/graphql/payment/queries.js +23 -0
  24. package/dist/src/graphql/product/mutations.d.ts +0 -0
  25. package/dist/src/graphql/product/mutations.js +1 -0
  26. package/dist/src/graphql/product/queries.d.ts +11 -0
  27. package/dist/src/graphql/product/queries.js +431 -0
  28. package/dist/src/graphql/service/mutations.d.ts +10 -0
  29. package/dist/src/graphql/service/mutations.js +284 -0
  30. package/dist/src/graphql/service/queries.d.ts +6 -0
  31. package/dist/src/graphql/service/queries.js +174 -0
  32. package/dist/src/graphql/user/mutations.d.ts +4 -0
  33. package/dist/src/graphql/user/mutations.js +118 -0
  34. package/dist/src/graphql/user/queries.d.ts +13 -0
  35. package/dist/src/graphql/user/queries.js +252 -0
  36. package/dist/src/index.d.ts +1 -0
  37. package/dist/src/index.js +5 -0
  38. package/dist/src/lib/SDK.d.ts +42 -0
  39. package/dist/src/lib/SDK.js +71 -0
  40. package/dist/src/lib/auth/index.d.ts +27 -0
  41. package/dist/src/lib/auth/index.js +72 -0
  42. package/dist/src/lib/cloud/index.d.ts +25 -0
  43. package/dist/src/lib/cloud/index.js +248 -0
  44. package/dist/src/lib/computing/index.d.ts +25 -0
  45. package/dist/src/lib/computing/index.js +254 -0
  46. package/dist/src/lib/crm/index.d.ts +21 -0
  47. package/dist/src/lib/crm/index.js +296 -0
  48. package/dist/src/lib/order/index.d.ts +452 -0
  49. package/dist/src/lib/order/index.js +1204 -0
  50. package/dist/src/lib/payment/index.d.ts +7 -0
  51. package/dist/src/lib/payment/index.js +69 -0
  52. package/dist/src/lib/product/index.d.ts +37 -0
  53. package/dist/src/lib/product/index.js +132 -0
  54. package/dist/src/lib/service/index.d.ts +94 -0
  55. package/dist/src/lib/service/index.js +348 -0
  56. package/dist/src/lib/service.d.ts +14 -0
  57. package/dist/src/lib/service.js +101 -0
  58. package/dist/src/lib/serviceSDK.d.ts +18 -0
  59. package/dist/src/lib/serviceSDK.js +187 -0
  60. package/dist/src/lib/user/index.d.ts +23 -0
  61. package/dist/src/lib/user/index.js +345 -0
  62. package/dist/src/lib/warehouse/index.d.ts +20 -0
  63. package/dist/src/lib/warehouse/index.js +48 -0
  64. package/dist/src/types/auth.d.ts +82 -0
  65. package/dist/src/types/auth.js +2 -0
  66. package/dist/src/types/cloud.d.ts +40 -0
  67. package/dist/src/types/cloud.js +2 -0
  68. package/dist/src/types/computing.d.ts +16 -0
  69. package/dist/src/types/computing.js +2 -0
  70. package/dist/src/types/crm.d.ts +291 -0
  71. package/dist/src/types/crm.js +2 -0
  72. package/dist/src/types/order.d.ts +54 -0
  73. package/dist/src/types/order.js +2 -0
  74. package/dist/src/types/product.d.ts +63 -0
  75. package/dist/src/types/product.js +2 -0
  76. package/dist/src/types/service.d.ts +29 -0
  77. package/dist/src/types/service.js +2 -0
  78. package/dist/src/types/user.d.ts +95 -0
  79. package/dist/src/types/user.js +2 -0
  80. package/dist/src/types/warehouse.d.ts +5 -0
  81. package/dist/src/types/warehouse.js +2 -0
  82. package/dist/src/utils/helpers.d.ts +4 -0
  83. package/dist/src/utils/helpers.js +41 -0
  84. package/package.json +43 -0
package/README.md ADDED
@@ -0,0 +1,93 @@
1
+ # storefront-js-client
2
+
3
+
4
+
5
+ ## Getting started
6
+
7
+ To make it easy for you to get started with GitLab, here's a list of recommended next steps.
8
+
9
+ Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
10
+
11
+ ## Add your files
12
+
13
+ - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14
+ - [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
15
+
16
+ ```
17
+ cd existing_repo
18
+ git remote add origin https://gitlab.longvan.vn/long-van-platform-2.0/website/storefront-js-client.git
19
+ git branch -M main
20
+ git push -uf origin main
21
+ ```
22
+
23
+ ## Integrate with your tools
24
+
25
+ - [ ] [Set up project integrations](https://gitlab.longvan.vn/long-van-platform-2.0/website/storefront-js-client/-/settings/integrations)
26
+
27
+ ## Collaborate with your team
28
+
29
+ - [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30
+ - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31
+ - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32
+ - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33
+ - [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
34
+
35
+ ## Test and Deploy
36
+
37
+ Use the built-in continuous integration in GitLab.
38
+
39
+ - [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40
+ - [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41
+ - [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42
+ - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43
+ - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
44
+
45
+ ***
46
+
47
+ # Editing this README
48
+
49
+ When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
50
+
51
+ ## Suggestions for a good README
52
+
53
+ Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
54
+
55
+ ## Name
56
+ Choose a self-explaining name for your project.
57
+
58
+ ## Description
59
+ Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
60
+
61
+ ## Badges
62
+ On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
63
+
64
+ ## Visuals
65
+ Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
66
+
67
+ ## Installation
68
+ Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
69
+
70
+ ## Usage
71
+ Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
72
+
73
+ ## Support
74
+ Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
75
+
76
+ ## Roadmap
77
+ If you have ideas for releases in the future, it is a good idea to list them in the README.
78
+
79
+ ## Contributing
80
+ State if you are open to contributions and what your requirements are for accepting them.
81
+
82
+ For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
83
+
84
+ You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
85
+
86
+ ## Authors and acknowledgment
87
+ Show your appreciation to those who have contributed to the project.
88
+
89
+ ## License
90
+ For open source projects, say how it is licensed.
91
+
92
+ ## Project status
93
+ If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
@@ -0,0 +1,26 @@
1
+ export declare const environmentEndpoints: {
2
+ dev: {
3
+ product: string;
4
+ crm: string;
5
+ auth: string;
6
+ order: string;
7
+ user: string;
8
+ payment: string;
9
+ service: string;
10
+ warehouse: string;
11
+ computing: string;
12
+ cloud: string;
13
+ };
14
+ live: {
15
+ product: string;
16
+ crm: string;
17
+ auth: string;
18
+ order: string;
19
+ user: string;
20
+ payment: string;
21
+ service: string;
22
+ warehouse: string;
23
+ computing: string;
24
+ cloud: string;
25
+ };
26
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.environmentEndpoints = void 0;
4
+ exports.environmentEndpoints = {
5
+ dev: {
6
+ product: "https://product-service.dev.longvan.vn/product-service/graphql",
7
+ crm: "https://crm-ticket-gateway.dev.longvan.vn/crm-graph-gateway/graphql",
8
+ auth: "https://crm.dev.longvan.vn/authorization-gateway/graphql",
9
+ order: "https://storefront.dev.longvan.vn/v2",
10
+ user: "https://user.dev.longvan.vn/user-gateway/graphql",
11
+ payment: "https://portal.dev.longvan.vn/invoice-gateway/graphql",
12
+ service: "https://portal.dev.longvan.vn/service-api/graphql",
13
+ warehouse: "https://facility-api-v2.dev.longvan.vn/facility-api/public-facility/1.0.0",
14
+ computing: "https://api-gateway.dev.longvan.vn/computing-service/graphql",
15
+ cloud: "https://api-gateway.dev.longvan.vn/cloud-service-api/graphql",
16
+ },
17
+ live: {
18
+ product: "https://product-service.longvan.vn/product-service/graphql",
19
+ crm: "https://crm-ticket-gateway.longvan.vn/crm-graph-gateway/graphql",
20
+ auth: "https://crm.longvan.vn/authorization-gateway/graphql",
21
+ order: "https://storefront.longvan.vn/v2",
22
+ user: "https://user.longvan.vn/user-gateway/graphql",
23
+ payment: "https://portal.longvan.vn/invoice-gateway/graphql",
24
+ service: "https://portal.longvan.vn/service-api/graphql",
25
+ warehouse: "https://facility-api-v2.longvan.vn/facility-api/public-facility/1.0.0",
26
+ computing: "https://api-gateway.longvan.vn/computing-service/graphql",
27
+ cloud: "https://api-gateway.longvan.vn/cloud-service-api/graphql"
28
+ },
29
+ };
@@ -0,0 +1,7 @@
1
+ export declare const LOGIN_MUTATION: import("graphql").DocumentNode;
2
+ export declare const REGISTER_MUTATION: import("graphql").DocumentNode;
3
+ export declare const SEND_SMS_VERIFY_CODE_MUTATION: import("graphql").DocumentNode;
4
+ export declare const VERIFY_CODE_MUTATION: import("graphql").DocumentNode;
5
+ export declare const RESET_PASSWORD_MUTATION: import("graphql").DocumentNode;
6
+ export declare const UPDATE_INFO_MUTATION: import("graphql").DocumentNode;
7
+ export declare const UPDATE_PASSWORD_MUTATION = "\n mutation UpdatePassword($orgId: String!, $accessToken: String!, $currentPassword: String!, $newPassword: String!) {\n updatePassword(orgId: $orgId, accessToken: $accessToken, currentPassword: $currentPassword, newPassword: $newPassword)\n }\n";
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UPDATE_PASSWORD_MUTATION = exports.UPDATE_INFO_MUTATION = exports.RESET_PASSWORD_MUTATION = exports.VERIFY_CODE_MUTATION = exports.SEND_SMS_VERIFY_CODE_MUTATION = exports.REGISTER_MUTATION = exports.LOGIN_MUTATION = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.LOGIN_MUTATION = (0, graphql_tag_1.gql) `
6
+ mutation Login($loginRequest: LoginRequest!) {
7
+ login(loginRequest: $loginRequest) {
8
+ partyId
9
+ orgId
10
+ fullName
11
+ email
12
+ phone
13
+ address
14
+ identityNumber
15
+ gender
16
+ birthDate
17
+ avatarUrl
18
+ accessToken
19
+ username
20
+ orgPermissionsMap
21
+ orgPositionsMap
22
+ orgRolesMap
23
+ }
24
+ }
25
+ `;
26
+ exports.REGISTER_MUTATION = (0, graphql_tag_1.gql) `
27
+ mutation Register($orgId: String!, $registerRequest: RegisterRequest!) {
28
+ register(orgId: $orgId, registerRequest: $registerRequest) {
29
+ id
30
+ partyId
31
+ type
32
+ username
33
+ status
34
+ accessToken
35
+ }
36
+ }
37
+ `;
38
+ exports.SEND_SMS_VERIFY_CODE_MUTATION = (0, graphql_tag_1.gql) `
39
+ mutation SendSmsVerifyCode($orgId: String!, $username: String!) {
40
+ sendSmsVerifyCode(orgId: $orgId, username: $username) {
41
+ id
42
+ code
43
+ username
44
+ timeExpired
45
+ }
46
+ }
47
+ `;
48
+ exports.VERIFY_CODE_MUTATION = (0, graphql_tag_1.gql) `
49
+ mutation VerifyCode($orgId: String!, $verifyCodeRequest: VerifyCodeRequest!) {
50
+ verifyCode(orgId: $orgId, verifyCodeRequest: $verifyCodeRequest)
51
+ }
52
+ `;
53
+ exports.RESET_PASSWORD_MUTATION = (0, graphql_tag_1.gql) `
54
+ mutation ResetPassword(
55
+ $orgId: String!
56
+ $username: String!
57
+ $newPassword: String!
58
+ $accessToken: String!
59
+ ) {
60
+ resetPassword(
61
+ orgId: $orgId
62
+ username: $username
63
+ newPassword: $newPassword
64
+ accessToken: $accessToken
65
+ )
66
+ }
67
+ `;
68
+ exports.UPDATE_INFO_MUTATION = (0, graphql_tag_1.gql) `
69
+ mutation UpdateInfo(
70
+ $orgId: String
71
+ $accessToken: String
72
+ $updateUserRequest: UpdateUserRequest
73
+ $type: String
74
+ $password: String
75
+ ) {
76
+ updateInfo(
77
+ orgId: $orgId
78
+ accessToken: $accessToken
79
+ updateUserRequest: $updateUserRequest
80
+ type: $type
81
+ password: $password
82
+ ) {
83
+ partyId
84
+ fullName
85
+ email
86
+ phone
87
+ address
88
+ identityNumber
89
+ gender
90
+ birthDate
91
+ avatarUrl
92
+ }
93
+ }
94
+ `;
95
+ exports.UPDATE_PASSWORD_MUTATION = `
96
+ mutation UpdatePassword($orgId: String!, $accessToken: String!, $currentPassword: String!, $newPassword: String!) {
97
+ updatePassword(orgId: $orgId, accessToken: $accessToken, currentPassword: $currentPassword, newPassword: $newPassword)
98
+ }
99
+ `;
@@ -0,0 +1 @@
1
+ export declare const GET_USER_DETAIL: import("graphql").DocumentNode;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_USER_DETAIL = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.GET_USER_DETAIL = (0, graphql_tag_1.gql) `
6
+ query GetUserDetail($orgId: String!, $accessToken: String!) {
7
+ getUserDetail(orgId: $orgId, accessToken: $accessToken) {
8
+ partyId
9
+ orgId
10
+ fullName
11
+ email
12
+ phone
13
+ address
14
+ identityNumber
15
+ gender
16
+ birthDate
17
+ avatarUrl
18
+ accessToken
19
+ username
20
+ orgPermissionsMap
21
+ orgPositionsMap
22
+ orgRolesMap
23
+ }
24
+ }
25
+ `;
@@ -0,0 +1,8 @@
1
+ export declare const CHANGE_SERVICE_NAME: import("graphql").DocumentNode;
2
+ export declare const CREATE_USER_MAIL_HOSTING: import("graphql").DocumentNode;
3
+ export declare const DELETE_USER_MAIL_HOSTING: import("graphql").DocumentNode;
4
+ export declare const UPDATE_DOMAIN_NAME: import("graphql").DocumentNode;
5
+ export declare const UPDATE_USER_NAME: import("graphql").DocumentNode;
6
+ export declare const UPDATE_PASSWORD: import("graphql").DocumentNode;
7
+ export declare const UPDATE_USER_PASSWORD: import("graphql").DocumentNode;
8
+ export declare const UPDATE_DNS: import("graphql").DocumentNode;
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UPDATE_DNS = exports.UPDATE_USER_PASSWORD = exports.UPDATE_PASSWORD = exports.UPDATE_USER_NAME = exports.UPDATE_DOMAIN_NAME = exports.DELETE_USER_MAIL_HOSTING = exports.CREATE_USER_MAIL_HOSTING = exports.CHANGE_SERVICE_NAME = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.CHANGE_SERVICE_NAME = (0, graphql_tag_1.gql) `
6
+ mutation ChangeServiceName(
7
+ $serviceId: String!
8
+ $updateBy: String!
9
+ $name: String!
10
+ ) {
11
+ changeServiceName(serviceId: $serviceId, updateBy: $updateBy, name: $name) {
12
+ partnerId
13
+ status
14
+ ownerId
15
+ startDate
16
+ endDate
17
+ actionRequest {
18
+ id
19
+ name
20
+ uri
21
+ }
22
+ }
23
+ }
24
+ `;
25
+ exports.CREATE_USER_MAIL_HOSTING = (0, graphql_tag_1.gql) `
26
+ mutation CreateUserMailHosting(
27
+ $serviceId: String!
28
+ $username: String!
29
+ $password: String!
30
+ $fullName: String!
31
+ ) {
32
+ createUserMailHosting(
33
+ serviceId: $serviceId
34
+ username: $username
35
+ password: $password
36
+ fullName: $fullName
37
+ )
38
+ }
39
+ `;
40
+ exports.DELETE_USER_MAIL_HOSTING = (0, graphql_tag_1.gql) `
41
+ mutation DeleteUserMailHosting($serviceId: String!, $username: String!) {
42
+ deleteUserMailHosting(serviceId: $serviceId, username: $username)
43
+ }
44
+ `;
45
+ exports.UPDATE_DOMAIN_NAME = (0, graphql_tag_1.gql) `
46
+ mutation UpdateDomainName(
47
+ $serviceId: String!
48
+ $updateBy: String!
49
+ $updateData: String!
50
+ ) {
51
+ updateDomainName(
52
+ serviceId: $serviceId
53
+ updateBy: $updateBy
54
+ updateData: $updateData
55
+ )
56
+ }
57
+ `;
58
+ exports.UPDATE_USER_NAME = (0, graphql_tag_1.gql) `
59
+ mutation UpdateUserName(
60
+ $serviceId: String!
61
+ $updateBy: String!
62
+ $updateData: String!
63
+ ) {
64
+ updateUsername(
65
+ serviceId: $serviceId
66
+ updateBy: $updateBy
67
+ updateData: $updateData
68
+ )
69
+ }
70
+ `;
71
+ exports.UPDATE_PASSWORD = (0, graphql_tag_1.gql) `
72
+ mutation UpdatePassword(
73
+ $serviceId: String!
74
+ $updateBy: String!
75
+ $updateData: String!
76
+ ) {
77
+ updatePassword(
78
+ serviceId: $serviceId
79
+ updateBy: $updateBy
80
+ updateData: $updateData
81
+ )
82
+ }
83
+ `;
84
+ exports.UPDATE_USER_PASSWORD = (0, graphql_tag_1.gql) `
85
+ mutation UpdateUserPassword(
86
+ $serviceId: String!
87
+ $username: String!
88
+ $password: String!
89
+ ) {
90
+ updateUserPassword(
91
+ serviceId: $serviceId
92
+ username: $username
93
+ password: $password
94
+ )
95
+ }
96
+ `;
97
+ exports.UPDATE_DNS = (0, graphql_tag_1.gql) `
98
+ mutation UpdateDNS(
99
+ $serviceId: String!
100
+ $dns1: String
101
+ $dns2: String
102
+ $dns3: String
103
+ $dns4: String
104
+ $createBy: String
105
+ ) {
106
+ updateDNS(
107
+ serviceId: $serviceId
108
+ dns1: $dns1
109
+ dns2: $dns2
110
+ dns3: $dns3
111
+ dns4: $dns4
112
+ createBy: $createBy
113
+ )
114
+ }
115
+ `;
@@ -0,0 +1,5 @@
1
+ export declare const SERVICE_DETAIL: import("graphql").DocumentNode;
2
+ export declare const GET_MAIL_RESOURCE: import("graphql").DocumentNode;
3
+ export declare const GET_USER_MAIL_HOSTING: import("graphql").DocumentNode;
4
+ export declare const SERVICE_TYPE: import("graphql").DocumentNode;
5
+ export declare const SEARCH_SERVICE: import("graphql").DocumentNode;
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SEARCH_SERVICE = exports.SERVICE_TYPE = exports.GET_USER_MAIL_HOSTING = exports.GET_MAIL_RESOURCE = exports.SERVICE_DETAIL = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.SERVICE_DETAIL = (0, graphql_tag_1.gql) `
6
+ query ServiceDetail($serviceId: String) {
7
+ serviceDetail(serviceId: $serviceId) {
8
+ service {
9
+ serviceId
10
+ partnerId
11
+ serviceName
12
+ type
13
+ typeName
14
+ status
15
+ ownerId
16
+ startDate
17
+ endDate
18
+ serviceType
19
+ actionRequest {
20
+ id
21
+ name
22
+ type
23
+ uri
24
+ }
25
+ urlPrivate
26
+ urlPublic
27
+ username
28
+ password
29
+ attrs
30
+ }
31
+ resources {
32
+ type
33
+ name
34
+ total
35
+ unit
36
+ value
37
+ component
38
+ }
39
+ configs {
40
+ configId
41
+ name
42
+ configValue
43
+ }
44
+ extraData {
45
+ title
46
+ content {
47
+ name
48
+ type
49
+ value
50
+ action
51
+ }
52
+ }
53
+ }
54
+ }
55
+ `;
56
+ exports.GET_MAIL_RESOURCE = (0, graphql_tag_1.gql) `
57
+ query GetMailResource($serviceId: String!) {
58
+ getMailResource(serviceId: $serviceId) {
59
+ accountTotal
60
+ accountUsed
61
+ accountRemain
62
+ storageTotal
63
+ storageUsed
64
+ storageRemain
65
+ storageRemainUnit
66
+ storageTotalUnit
67
+ storageUsedUnit
68
+ enableAntiVirus
69
+ enableAntiSpam
70
+ attachmentLimitUnit
71
+ }
72
+ }
73
+ `;
74
+ exports.GET_USER_MAIL_HOSTING = (0, graphql_tag_1.gql) `
75
+ query GetUserMailResource($serviceId: String!) {
76
+ getUserMailHosting(serviceId: $serviceId) {
77
+ email
78
+ username
79
+ fullName
80
+ storageUsedUnit
81
+ storageUsed
82
+ }
83
+ }
84
+ `;
85
+ exports.SERVICE_TYPE = (0, graphql_tag_1.gql) `
86
+ query {
87
+ serviceTypes
88
+ }
89
+ `;
90
+ exports.SEARCH_SERVICE = (0, graphql_tag_1.gql) `
91
+ query SearchService($filter: CloudServiceFilterInput) {
92
+ searchService(filter: $filter) {
93
+ total
94
+ offset
95
+ maxResult
96
+ resultList {
97
+ serviceId
98
+ partnerId
99
+ serviceName
100
+ type
101
+ typeName
102
+ status
103
+ ownerId
104
+ startDate
105
+ endDate
106
+ serviceType
107
+ actionRequest {
108
+ id
109
+ name
110
+ type
111
+ uri
112
+ }
113
+ urlPrivate
114
+ urlPublic
115
+ username
116
+ password
117
+ attrs
118
+ }
119
+ }
120
+ }
121
+ `;
@@ -0,0 +1,10 @@
1
+ export declare const RESTARTVM: import("graphql").DocumentNode;
2
+ export declare const UPDATE_DESCRIPTION_PORTNAT: import("graphql").DocumentNode;
3
+ export declare const CREATE_PORT_NAT: import("graphql").DocumentNode;
4
+ export declare const UPDATE_PORT_NAT: import("graphql").DocumentNode;
5
+ export declare const REMOVE_PORT_NAT: import("graphql").DocumentNode;
6
+ export declare const POWER_ON: import("graphql").DocumentNode;
7
+ export declare const POWER_OFF: import("graphql").DocumentNode;
8
+ export declare const CREATE_SNAP_SHOT: import("graphql").DocumentNode;
9
+ export declare const ROLLBACK_SNAPSHOT: import("graphql").DocumentNode;
10
+ export declare const DELETE_SNAPSHOT: import("graphql").DocumentNode;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DELETE_SNAPSHOT = exports.ROLLBACK_SNAPSHOT = exports.CREATE_SNAP_SHOT = exports.POWER_OFF = exports.POWER_ON = exports.REMOVE_PORT_NAT = exports.UPDATE_PORT_NAT = exports.CREATE_PORT_NAT = exports.UPDATE_DESCRIPTION_PORTNAT = exports.RESTARTVM = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.RESTARTVM = (0, graphql_tag_1.gql) `
6
+ mutation Restart($computingId: String!, $actor: String!) {
7
+ restart(computingId: $computingId, actor: $actor)
8
+ }
9
+ `;
10
+ exports.UPDATE_DESCRIPTION_PORTNAT = (0, graphql_tag_1.gql) `
11
+ mutation UpdateDescriptionPortNat(
12
+ $portNatId: String!
13
+ $description: String!
14
+ $updateBy: String
15
+ ) {
16
+ updateDescriptionPortNat(
17
+ portNatId: $portNatId
18
+ description: $description
19
+ updateBy: $updateBy
20
+ )
21
+ }
22
+ `;
23
+ exports.CREATE_PORT_NAT = (0, graphql_tag_1.gql) `
24
+ mutation CreatePortNat(
25
+ $portNatId: String!
26
+ $translatedPort: String!
27
+ $createBy: String
28
+ ) {
29
+ createPortNat(
30
+ portNatId: $portNatId
31
+ translatedPort: $translatedPort
32
+ createBy: $createBy
33
+ )
34
+ }
35
+ `;
36
+ exports.UPDATE_PORT_NAT = (0, graphql_tag_1.gql) `
37
+ mutation UpdatePortNat(
38
+ $portNatId: String!
39
+ $translatedPort: String!
40
+ $updateBy: String
41
+ ) {
42
+ updatePortNat(
43
+ portNatId: $portNatId
44
+ translatedPort: $translatedPort
45
+ updateBy: $updateBy
46
+ )
47
+ }
48
+ `;
49
+ exports.REMOVE_PORT_NAT = (0, graphql_tag_1.gql) `
50
+ mutation RemovePortNat($portNatId: String!, $updateBy: String) {
51
+ removePortNat(portNatId: $portNatId, updateBy: $updateBy)
52
+ }
53
+ `;
54
+ exports.POWER_ON = (0, graphql_tag_1.gql) `
55
+ mutation PowerOn($computingId: String!, $actor: String!) {
56
+ powerOn(computingId: $computingId, actor: $actor)
57
+ }
58
+ `;
59
+ exports.POWER_OFF = (0, graphql_tag_1.gql) `
60
+ mutation PowerOff($computingId: String!, $actor: String!) {
61
+ powerOff(computingId: $computingId, actor: $actor)
62
+ }
63
+ `;
64
+ exports.CREATE_SNAP_SHOT = (0, graphql_tag_1.gql) `
65
+ mutation CreateSnapshot(
66
+ $computingId: String!
67
+ $snapshotName: String!
68
+ $createBy: String
69
+ ) {
70
+ createSnapshot(
71
+ computingId: $computingId
72
+ snapshotName: $snapshotName
73
+ createBy: $createBy
74
+ ) {
75
+ id
76
+ computingId
77
+ snapshotId
78
+ name
79
+ status
80
+ createdStamp
81
+ endDate
82
+ }
83
+ }
84
+ `;
85
+ exports.ROLLBACK_SNAPSHOT = (0, graphql_tag_1.gql) `
86
+ mutation RollbackSnapshot(
87
+ $computingId: String!
88
+ $snapshotId: String!
89
+ $createBy: String
90
+ ) {
91
+ rollbackSnapshot(
92
+ computingId: $computingId
93
+ snapshotId: $snapshotId
94
+ createBy: $createBy
95
+ )
96
+ }
97
+ `;
98
+ exports.DELETE_SNAPSHOT = (0, graphql_tag_1.gql) `
99
+ mutation DeleteSnapshot(
100
+ $computingId: String!
101
+ $snapshotId: String!
102
+ $updateBy: String
103
+ ) {
104
+ deleteSnapshot(
105
+ computingId: $computingId
106
+ snapshotId: $snapshotId
107
+ updateBy: $updateBy
108
+ )
109
+ }
110
+ `;
@@ -0,0 +1,3 @@
1
+ export declare const COMPUTING_DETAIL: import("graphql").DocumentNode;
2
+ export declare const PORTNATS: import("graphql").DocumentNode;
3
+ export declare const SNAP_SHOTS: import("graphql").DocumentNode;