@longvansoftware/storefront-js-client 2.9.5 → 2.9.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 (33) hide show
  1. package/README.md +185 -185
  2. package/dist/config/config.d.ts +2 -0
  3. package/dist/config/config.js +2 -0
  4. package/dist/src/graphql/auth/mutations.js +130 -130
  5. package/dist/src/graphql/auth/queries.js +55 -55
  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.d.ts +2 -0
  9. package/dist/src/graphql/cashbook/queries.js +99 -0
  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/computing/mutations.js +96 -96
  13. package/dist/src/graphql/computing/queries.js +41 -41
  14. package/dist/src/graphql/crm/mutations.js +813 -813
  15. package/dist/src/graphql/crm/queries.js +661 -661
  16. package/dist/src/graphql/payment/mutations.js +146 -146
  17. package/dist/src/graphql/payment/queries.js +116 -116
  18. package/dist/src/graphql/paymentV2/mutations.js +47 -47
  19. package/dist/src/graphql/paymentV2/queries.js +176 -176
  20. package/dist/src/graphql/product/mutations.js +94 -94
  21. package/dist/src/graphql/product/queries.js +472 -468
  22. package/dist/src/graphql/service/mutations.js +304 -304
  23. package/dist/src/graphql/service/queries.js +131 -131
  24. package/dist/src/graphql/user/mutations.js +142 -142
  25. package/dist/src/graphql/user/queries.js +298 -298
  26. package/dist/src/lib/SDK.d.ts +3 -0
  27. package/dist/src/lib/SDK.js +5 -0
  28. package/dist/src/lib/cashbook/index.d.ts +6 -0
  29. package/dist/src/lib/cashbook/index.js +56 -0
  30. package/dist/src/lib/serviceSDK.js +12 -12
  31. package/dist/src/lib/shareZalo/index.d.ts +5 -0
  32. package/dist/src/lib/shareZalo/index.js +32 -0
  33. package/package.json +43 -44
@@ -0,0 +1,2 @@
1
+ export declare const SEARCH_TRANSACTIONS: import("graphql").DocumentNode;
2
+ export declare const GET_CASHBOOK_TRANSACTION_DETAIL: import("graphql").DocumentNode;
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_CASHBOOK_TRANSACTION_DETAIL = exports.SEARCH_TRANSACTIONS = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.SEARCH_TRANSACTIONS = (0, graphql_tag_1.gql) `
6
+ query SearchTransactions(
7
+ $partnerId: String!
8
+ $keyword: String
9
+ $dateFrom: Long
10
+ $dateTo: Long
11
+ $currentPage: Int
12
+ $pageSize: Int
13
+ ) {
14
+ searchTransactions(
15
+ partnerId: $partnerId
16
+ keyword: $keyword
17
+ dateFrom: $dateFrom
18
+ dateTo: $dateTo
19
+ currentPage: $currentPage
20
+ pageSize: $pageSize
21
+ ) {
22
+ total
23
+ index
24
+ maxResult
25
+ resultList {
26
+ id
27
+ createdStamp
28
+ updatedStamp
29
+ createdBy
30
+ updatedBy
31
+ partnerId
32
+ extId
33
+ transactionId
34
+ paymentGatewayType
35
+ bankCode
36
+ bankAccountNumber
37
+ extBankAccountNumber
38
+ extBank
39
+ amount
40
+ currencyCode
41
+ description
42
+ timeTransaction
43
+ status
44
+ gateway
45
+ paymentId
46
+ paymentAmount
47
+ paymentConfirmStatus
48
+ paymentConfirmNote
49
+ accountTransactionId
50
+ orderId
51
+ invoiceId
52
+ cashAccountId
53
+ purpose
54
+ customAttributes
55
+ }
56
+ }
57
+ }
58
+ `;
59
+ exports.GET_CASHBOOK_TRANSACTION_DETAIL = (0, graphql_tag_1.gql) `
60
+ query GetCashbookTransactionDetail(
61
+ $partnerId: String!
62
+ $cashTransactionId: String!
63
+ ) {
64
+ getCashbookTransactionDetail(
65
+ partnerId: $partnerId
66
+ cashTransactionId: $cashTransactionId
67
+ ) {
68
+ id
69
+ createdStamp
70
+ updatedStamp
71
+ createdBy
72
+ updatedBy
73
+ partnerId
74
+ extId
75
+ transactionId
76
+ paymentGatewayType
77
+ bankCode
78
+ bankAccountNumber
79
+ extBankAccountNumber
80
+ extBank
81
+ amount
82
+ currencyCode
83
+ description
84
+ timeTransaction
85
+ status
86
+ gateway
87
+ paymentId
88
+ paymentAmount
89
+ paymentConfirmStatus
90
+ paymentConfirmNote
91
+ accountTransactionId
92
+ orderId
93
+ invoiceId
94
+ cashAccountId
95
+ purpose
96
+ customAttributes
97
+ }
98
+ }
99
+ `;
@@ -2,114 +2,114 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
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
- }
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
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
- }
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
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
- }
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
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
- }
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
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
- }
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
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
- }
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
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
- }
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
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
- }
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
115
  `;
@@ -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
  `;