@longvansoftware/storefront-js-client 4.3.5 → 4.3.7-beta.0

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 (41) hide show
  1. package/README.md +221 -221
  2. package/dist/index.d.ts +1698 -0
  3. package/dist/index.js +13673 -0
  4. package/dist/src/graphql/auth/mutations.js +309 -309
  5. package/dist/src/graphql/auth/queries.js +209 -209
  6. package/dist/src/graphql/campaign/mutations.js +26 -26
  7. package/dist/src/graphql/campaign/queries.d.ts +1 -0
  8. package/dist/src/graphql/campaign/queries.js +459 -410
  9. package/dist/src/graphql/cashbook/queries.js +93 -93
  10. package/dist/src/graphql/cloud/mutations.js +103 -103
  11. package/dist/src/graphql/cloud/queries.js +112 -112
  12. package/dist/src/graphql/cloudCloud/mutations.js +12 -12
  13. package/dist/src/graphql/cloudCloud/queries.js +117 -117
  14. package/dist/src/graphql/computing/mutations.js +96 -96
  15. package/dist/src/graphql/computing/queries.js +41 -41
  16. package/dist/src/graphql/crm/mutations.js +1064 -1064
  17. package/dist/src/graphql/crm/queries.js +920 -920
  18. package/dist/src/graphql/orderCloud/mutations.js +7 -7
  19. package/dist/src/graphql/orderCloud/queries.js +7 -7
  20. package/dist/src/graphql/payment/mutations.js +194 -194
  21. package/dist/src/graphql/payment/queries.js +117 -117
  22. package/dist/src/graphql/paymentV2/mutations.js +115 -115
  23. package/dist/src/graphql/paymentV2/queries.js +263 -263
  24. package/dist/src/graphql/product/mutations.js +652 -652
  25. package/dist/src/graphql/product/queries.js +989 -989
  26. package/dist/src/graphql/service/mutations.js +304 -304
  27. package/dist/src/graphql/service/queries.js +131 -131
  28. package/dist/src/graphql/store/mutations.js +24 -24
  29. package/dist/src/graphql/store/queries.js +24 -24
  30. package/dist/src/graphql/user/mutations.js +201 -201
  31. package/dist/src/graphql/user/queries.js +339 -339
  32. package/dist/src/lib/campaign/index.d.ts +1 -0
  33. package/dist/src/lib/campaign/index.js +19 -0
  34. package/dist/src/lib/order/index.d.ts +10 -0
  35. package/dist/src/lib/order/index.js +34 -0
  36. package/dist/src/lib/serviceSDK.js +14 -14
  37. package/package.json +43 -43
  38. package/dist/src/graphql/cloudService/queries.d.ts +0 -1
  39. package/dist/src/graphql/cloudService/queries.js +0 -71
  40. package/dist/src/lib/cloudService/index.d.ts +0 -5
  41. package/dist/src/lib/cloudService/index.js +0 -35
@@ -2,122 +2,122 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SERVICE_DETAIL = exports.SEARCH_SERVICE = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.SEARCH_SERVICE = (0, graphql_tag_1.gql) `
6
- query SearchService($filter: CloudServiceFilterInput) {
7
- searchService(filter: $filter) {
8
- total
9
- offset
10
- maxResult
11
- resultList {
12
- supplierId
13
- serviceId
14
- partnerId
15
- serviceName
16
- type
17
- typeName
18
- status
19
- statusFulfillment
20
- ownerId
21
- startDate
22
- endDate
23
- serviceType
24
- urlPrivate
25
- urlPublic
26
- username
27
- password
28
- attrs
29
- description
30
- productGroupId
31
- orderId
32
- actionRequest {
33
- id
34
- name
35
- uri
36
- type
37
- }
38
- billingCycle {
39
- quantity
40
- unit
41
- }
42
- productConfiguration {
43
- productId
44
- productTitle
45
- productResources {
46
- name
47
- quantity
48
- unit
49
- productId
50
- giftProductId
51
- gift
52
- giftQuantity
53
- campaignId
54
- campaignActionId
55
- qualify
56
- idParent
57
- addQuantity
58
- defaultQuantity
59
- title
60
- price
61
- unitPrice
62
- totalResource
63
- unitGift
64
- giftDuration
65
- giftDurationUnit
66
- }
67
- }
68
- }
69
- }
70
- }
5
+ exports.SEARCH_SERVICE = (0, graphql_tag_1.gql) `
6
+ query SearchService($filter: CloudServiceFilterInput) {
7
+ searchService(filter: $filter) {
8
+ total
9
+ offset
10
+ maxResult
11
+ resultList {
12
+ supplierId
13
+ serviceId
14
+ partnerId
15
+ serviceName
16
+ type
17
+ typeName
18
+ status
19
+ statusFulfillment
20
+ ownerId
21
+ startDate
22
+ endDate
23
+ serviceType
24
+ urlPrivate
25
+ urlPublic
26
+ username
27
+ password
28
+ attrs
29
+ description
30
+ productGroupId
31
+ orderId
32
+ actionRequest {
33
+ id
34
+ name
35
+ uri
36
+ type
37
+ }
38
+ billingCycle {
39
+ quantity
40
+ unit
41
+ }
42
+ productConfiguration {
43
+ productId
44
+ productTitle
45
+ productResources {
46
+ name
47
+ quantity
48
+ unit
49
+ productId
50
+ giftProductId
51
+ gift
52
+ giftQuantity
53
+ campaignId
54
+ campaignActionId
55
+ qualify
56
+ idParent
57
+ addQuantity
58
+ defaultQuantity
59
+ title
60
+ price
61
+ unitPrice
62
+ totalResource
63
+ unitGift
64
+ giftDuration
65
+ giftDurationUnit
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
71
  `;
72
- exports.SERVICE_DETAIL = (0, graphql_tag_1.gql) `
73
- query ServiceDetail($serviceId: String) {
74
- serviceDetail(serviceId: $serviceId) {
75
- service {
76
- supplierId
77
- serviceId
78
- partnerId
79
- serviceName
80
- type
81
- typeName
82
- status
83
- statusFulfillment
84
- ownerId
85
- startDate
86
- endDate
87
- serviceType
88
- urlPrivate
89
- urlPublic
90
- username
91
- password
92
- attrs
93
- description
94
- ips
95
- productGroupId
96
- orderId
97
- }
98
- resources {
99
- type
100
- name
101
- total
102
- unit
103
- component
104
- value
105
- keyId
106
- }
107
- configs {
108
- configId
109
- name
110
- configValue
111
- }
112
- extraData {
113
- title
114
- content {
115
- name
116
- value
117
- type
118
- action
119
- }
120
- }
121
- }
122
- }
72
+ exports.SERVICE_DETAIL = (0, graphql_tag_1.gql) `
73
+ query ServiceDetail($serviceId: String) {
74
+ serviceDetail(serviceId: $serviceId) {
75
+ service {
76
+ supplierId
77
+ serviceId
78
+ partnerId
79
+ serviceName
80
+ type
81
+ typeName
82
+ status
83
+ statusFulfillment
84
+ ownerId
85
+ startDate
86
+ endDate
87
+ serviceType
88
+ urlPrivate
89
+ urlPublic
90
+ username
91
+ password
92
+ attrs
93
+ description
94
+ ips
95
+ productGroupId
96
+ orderId
97
+ }
98
+ resources {
99
+ type
100
+ name
101
+ total
102
+ unit
103
+ component
104
+ value
105
+ keyId
106
+ }
107
+ configs {
108
+ configId
109
+ name
110
+ configValue
111
+ }
112
+ extraData {
113
+ title
114
+ content {
115
+ name
116
+ value
117
+ type
118
+ action
119
+ }
120
+ }
121
+ }
122
+ }
123
123
  `;
@@ -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
  `;