@longvansoftware/storefront-js-client 3.1.6 → 3.1.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.
Files changed (42) hide show
  1. package/README.md +221 -221
  2. package/dist/src/graphql/auth/mutations.d.ts +0 -1
  3. package/dist/src/graphql/auth/mutations.js +220 -225
  4. package/dist/src/graphql/auth/queries.d.ts +1 -0
  5. package/dist/src/graphql/auth/queries.js +65 -60
  6. package/dist/src/graphql/campaign/mutations.js +26 -26
  7. package/dist/src/graphql/campaign/queries.js +375 -375
  8. package/dist/src/graphql/cashbook/queries.js +93 -93
  9. package/dist/src/graphql/cloud/mutations.js +103 -103
  10. package/dist/src/graphql/cloud/queries.js +112 -112
  11. package/dist/src/graphql/computing/mutations.js +96 -96
  12. package/dist/src/graphql/computing/queries.js +41 -41
  13. package/dist/src/graphql/crm/mutations.js +813 -813
  14. package/dist/src/graphql/crm/queries.js +661 -661
  15. package/dist/src/graphql/payment/mutations.js +146 -146
  16. package/dist/src/graphql/payment/queries.js +116 -116
  17. package/dist/src/graphql/paymentV2/mutations.js +47 -47
  18. package/dist/src/graphql/paymentV2/queries.js +176 -176
  19. package/dist/src/graphql/product/mutations.js +94 -94
  20. package/dist/src/graphql/product/queries.js +472 -472
  21. package/dist/src/graphql/service/mutations.js +304 -304
  22. package/dist/src/graphql/service/queries.js +131 -131
  23. package/dist/src/graphql/store/mutations.js +24 -24
  24. package/dist/src/graphql/store/queries.js +24 -24
  25. package/dist/src/graphql/user/mutations.js +142 -142
  26. package/dist/src/graphql/user/queries.d.ts +0 -1
  27. package/dist/src/graphql/user/queries.js +299 -319
  28. package/dist/src/lib/auth/index.d.ts +13 -2
  29. package/dist/src/lib/auth/index.js +31 -2
  30. package/dist/src/lib/serviceSDK.js +12 -12
  31. package/dist/src/lib/store/index.js +1 -1
  32. package/dist/src/lib/user/index.d.ts +1 -2
  33. package/dist/src/lib/user/index.js +2 -20
  34. package/package.json +44 -44
  35. package/dist/src/graphql/fragments/product.d.ts +0 -38
  36. package/dist/src/graphql/fragments/product.js +0 -196
  37. package/dist/src/lib/shareZalo/index.d.ts +0 -5
  38. package/dist/src/lib/shareZalo/index.js +0 -32
  39. package/dist/src/types/common.d.ts +0 -264
  40. package/dist/src/types/common.js +0 -35
  41. package/dist/src/utils/errorHandler.d.ts +0 -64
  42. package/dist/src/utils/errorHandler.js +0 -197
@@ -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
  `;