@longvansoftware/storefront-js-client 1.9.8 → 2.0.1

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,120 +2,120 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SEARCH_SERVICE = exports.SERVICE_TYPE = exports.GET_USER_MAIL_HOSTING = exports.GET_MAIL_RESOURCE = exports.SERVICE_DETAIL = void 0;
4
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
- }
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
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
- }
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
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
- }
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
84
  `;
85
- exports.SERVICE_TYPE = (0, graphql_tag_1.gql) `
86
- query {
87
- serviceTypes
88
- }
85
+ exports.SERVICE_TYPE = (0, graphql_tag_1.gql) `
86
+ query {
87
+ serviceTypes
88
+ }
89
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
- }
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
121
  `;
@@ -2,109 +2,109 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
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
- }
5
+ exports.RESTARTVM = (0, graphql_tag_1.gql) `
6
+ mutation Restart($computingId: String!, $actor: String!) {
7
+ restart(computingId: $computingId, actor: $actor)
8
+ }
9
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
- }
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
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
- }
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
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
- }
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
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
- }
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
53
  `;
54
- exports.POWER_ON = (0, graphql_tag_1.gql) `
55
- mutation PowerOn($computingId: String!, $actor: String!) {
56
- powerOn(computingId: $computingId, actor: $actor)
57
- }
54
+ exports.POWER_ON = (0, graphql_tag_1.gql) `
55
+ mutation PowerOn($computingId: String!, $actor: String!) {
56
+ powerOn(computingId: $computingId, actor: $actor)
57
+ }
58
58
  `;
59
- exports.POWER_OFF = (0, graphql_tag_1.gql) `
60
- mutation PowerOff($computingId: String!, $actor: String!) {
61
- powerOff(computingId: $computingId, actor: $actor)
62
- }
59
+ exports.POWER_OFF = (0, graphql_tag_1.gql) `
60
+ mutation PowerOff($computingId: String!, $actor: String!) {
61
+ powerOff(computingId: $computingId, actor: $actor)
62
+ }
63
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
- }
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
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
- }
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
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
- }
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
110
  `;
@@ -2,47 +2,47 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
6
- query ComputingDetail($computingId: String!) {
7
- computingDetail(computingId: $computingId) {
8
- id
9
- name
10
- username
11
- password
12
- state
13
- os
14
- ips
15
- province
16
- console
17
- existPortNat
18
- }
19
- }
5
+ exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
6
+ query ComputingDetail($computingId: String!) {
7
+ computingDetail(computingId: $computingId) {
8
+ id
9
+ name
10
+ username
11
+ password
12
+ state
13
+ os
14
+ ips
15
+ province
16
+ console
17
+ existPortNat
18
+ }
19
+ }
20
20
  `;
21
- exports.PORTNATS = (0, graphql_tag_1.gql) `
22
- query PortNats($computingId: String!) {
23
- portNats(computingId: $computingId) {
24
- id
25
- action
26
- protocol
27
- originalAddress
28
- originalPort
29
- translatedAddress
30
- translatedPort
31
- description
32
- status
33
- }
34
- }
21
+ exports.PORTNATS = (0, graphql_tag_1.gql) `
22
+ query PortNats($computingId: String!) {
23
+ portNats(computingId: $computingId) {
24
+ id
25
+ action
26
+ protocol
27
+ originalAddress
28
+ originalPort
29
+ translatedAddress
30
+ translatedPort
31
+ description
32
+ status
33
+ }
34
+ }
35
35
  `;
36
- exports.SNAP_SHOTS = (0, graphql_tag_1.gql) `
37
- query Snapshots($computingId: String!) {
38
- snapshots(computingId: $computingId) {
39
- id
40
- computingId
41
- snapshotId
42
- name
43
- status
44
- createdStamp
45
- endDate
46
- }
47
- }
36
+ exports.SNAP_SHOTS = (0, graphql_tag_1.gql) `
37
+ query Snapshots($computingId: String!) {
38
+ snapshots(computingId: $computingId) {
39
+ id
40
+ computingId
41
+ snapshotId
42
+ name
43
+ status
44
+ createdStamp
45
+ endDate
46
+ }
47
+ }
48
48
  `;