@longvansoftware/service-js-client 1.15.8 → 1.16.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.
- package/README.md +93 -93
- package/dist/src/graphql/accounting_service/mutations.js +96 -96
- package/dist/src/graphql/accounting_service/queries.js +57 -57
- package/dist/src/graphql/auth/mutations.js +235 -235
- package/dist/src/graphql/auth/queries.js +68 -68
- package/dist/src/graphql/campaign/mutations.d.ts +1 -0
- package/dist/src/graphql/campaign/mutations.js +34 -0
- package/dist/src/graphql/campaign/queries.d.ts +9 -0
- package/dist/src/graphql/campaign/queries.js +412 -0
- package/dist/src/graphql/cashbook/queries.d.ts +2 -0
- package/dist/src/graphql/cashbook/queries.js +99 -0
- package/dist/src/graphql/cloud/mutations.js +282 -282
- package/dist/src/graphql/cloud/queries.js +341 -341
- package/dist/src/graphql/computing/mutations.js +303 -303
- package/dist/src/graphql/computing/queries.js +548 -548
- package/dist/src/graphql/crm/mutations.d.ts +1 -0
- package/dist/src/graphql/crm/mutations.js +392 -375
- package/dist/src/graphql/crm/queries.d.ts +1 -0
- package/dist/src/graphql/crm/queries.js +359 -332
- package/dist/src/graphql/crm_camping/mutations.js +32 -32
- package/dist/src/graphql/crm_camping/queries.js +198 -198
- package/dist/src/graphql/orderGraphQL/mutations.js +351 -351
- package/dist/src/graphql/orderGraphQL/queries.js +387 -387
- package/dist/src/graphql/payment/mutations.js +45 -45
- package/dist/src/graphql/payment/queries.js +60 -60
- package/dist/src/graphql/paymentLV/mutations.js +19 -19
- package/dist/src/graphql/paymentLV/queries.js +75 -75
- package/dist/src/graphql/paymentV2/mutations.d.ts +3 -0
- package/dist/src/graphql/paymentV2/mutations.js +54 -0
- package/dist/src/graphql/paymentV2/queries.d.ts +6 -0
- package/dist/src/graphql/paymentV2/queries.js +186 -0
- package/dist/src/graphql/product/queries.js +891 -891
- package/dist/src/graphql/quicklab_service/mutations.js +154 -154
- package/dist/src/graphql/quicklab_service/queries.js +108 -108
- package/dist/src/graphql/resource_permission/mutations.js +57 -57
- package/dist/src/graphql/resource_permission/queries.js +13 -13
- package/dist/src/graphql/service/mutations.js +228 -228
- package/dist/src/graphql/service/queries.js +128 -128
- package/dist/src/graphql/store/mutations.d.ts +1 -0
- package/dist/src/graphql/store/mutations.js +29 -0
- package/dist/src/graphql/store/queries.d.ts +1 -0
- package/dist/src/graphql/store/queries.js +29 -0
- package/dist/src/graphql/user/mutations.js +214 -214
- package/dist/src/graphql/user/queries.js +312 -312
- package/dist/src/lib/accounting/index.d.ts +5 -0
- package/dist/src/lib/accounting/index.js +32 -0
- package/dist/src/lib/campaign/index.d.ts +20 -0
- package/dist/src/lib/campaign/index.js +213 -0
- package/dist/src/lib/cashbook/index.d.ts +6 -0
- package/dist/src/lib/cashbook/index.js +56 -0
- package/dist/src/lib/comhub/index.d.ts +6 -0
- package/dist/src/lib/comhub/index.js +50 -0
- package/dist/src/lib/crm/index.d.ts +2 -0
- package/dist/src/lib/crm/index.js +40 -0
- package/dist/src/lib/deepLinkVietQr/index.d.ts +6 -0
- package/dist/src/lib/deepLinkVietQr/index.js +45 -0
- package/dist/src/lib/getImage/index.d.ts +4 -0
- package/dist/src/lib/getImage/index.js +10 -0
- package/dist/src/lib/image/index.d.ts +7 -0
- package/dist/src/lib/image/index.js +49 -0
- package/dist/src/lib/omnigateway/index.d.ts +7 -0
- package/dist/src/lib/omnigateway/index.js +58 -0
- package/dist/src/lib/paymentV2/index.d.ts +13 -0
- package/dist/src/lib/paymentV2/index.js +163 -0
- package/dist/src/lib/portal/index.d.ts +21 -0
- package/dist/src/lib/portal/index.js +225 -0
- package/dist/src/lib/serviceSDK.js +12 -12
- package/dist/src/lib/store/index.d.ts +30 -0
- package/dist/src/lib/store/index.js +74 -0
- package/dist/src/lib/token/index.d.ts +5 -0
- package/dist/src/lib/token/index.js +32 -0
- package/dist/src/lib/upload/index.d.ts +5 -0
- package/dist/src/lib/upload/index.js +35 -0
- package/dist/src/lib/warehouseV2/index.d.ts +13 -0
- package/dist/src/lib/warehouseV2/index.js +54 -0
- package/dist/src/lib/zca/index.d.ts +12 -0
- package/dist/src/lib/zca/index.js +41 -0
- package/dist/src/types/campaign.d.ts +14 -0
- package/dist/src/types/campaign.js +2 -0
- package/dist/src/types/invoice.d.ts +13 -0
- package/dist/src/types/invoice.js +2 -0
- package/dist/src/types/store.d.ts +158 -0
- package/dist/src/types/store.js +3 -0
- package/dist/src/utils/validatePhoneNumber.d.ts +1 -0
- package/dist/src/utils/validatePhoneNumber.js +20 -0
- package/package.json +44 -43
@@ -2,66 +2,66 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GET_ACTION_ATTRIBUTE = exports.GET_SERVICE_TICKETS = exports.GET_SERVICE_ACTION = exports.GET_SERVICE_BY_OWNER_ID = exports.GET_SERVICE_BY_TYPE = exports.GET_SERVICE_BY_ID = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
|
-
exports.GET_SERVICE_BY_ID = (0, graphql_tag_1.gql) `
|
6
|
-
query GetServiceById($partnerId: String!, $serviceId: String!) {
|
7
|
-
getServiceById(partnerId: $partnerId, serviceId: $serviceId) {
|
8
|
-
createdStamp
|
9
|
-
updatedStamp
|
10
|
-
updatedBy
|
11
|
-
createdBy
|
12
|
-
partnerId
|
13
|
-
serviceName
|
14
|
-
serviceId
|
15
|
-
type
|
16
|
-
typeName
|
17
|
-
orderId
|
18
|
-
orderLineItemId
|
19
|
-
status
|
20
|
-
ownerId
|
21
|
-
ownerName
|
22
|
-
ownerEmail
|
23
|
-
ownerPhone
|
24
|
-
saleName
|
25
|
-
salePartyId
|
26
|
-
startDate
|
27
|
-
endDate
|
28
|
-
location
|
29
|
-
description
|
30
|
-
serviceType
|
31
|
-
actionResult
|
32
|
-
}
|
33
|
-
}
|
5
|
+
exports.GET_SERVICE_BY_ID = (0, graphql_tag_1.gql) `
|
6
|
+
query GetServiceById($partnerId: String!, $serviceId: String!) {
|
7
|
+
getServiceById(partnerId: $partnerId, serviceId: $serviceId) {
|
8
|
+
createdStamp
|
9
|
+
updatedStamp
|
10
|
+
updatedBy
|
11
|
+
createdBy
|
12
|
+
partnerId
|
13
|
+
serviceName
|
14
|
+
serviceId
|
15
|
+
type
|
16
|
+
typeName
|
17
|
+
orderId
|
18
|
+
orderLineItemId
|
19
|
+
status
|
20
|
+
ownerId
|
21
|
+
ownerName
|
22
|
+
ownerEmail
|
23
|
+
ownerPhone
|
24
|
+
saleName
|
25
|
+
salePartyId
|
26
|
+
startDate
|
27
|
+
endDate
|
28
|
+
location
|
29
|
+
description
|
30
|
+
serviceType
|
31
|
+
actionResult
|
32
|
+
}
|
33
|
+
}
|
34
34
|
`;
|
35
35
|
// GET_SERVICE_BY_TYPE
|
36
|
-
exports.GET_SERVICE_BY_TYPE = (0, graphql_tag_1.gql) `
|
37
|
-
query GetServiceByType($partnerId: String!, $type: String!) {
|
38
|
-
getServiceByType(partnerId: $partnerId, type: $type) {
|
39
|
-
createdStamp
|
40
|
-
updatedStamp
|
41
|
-
updatedBy
|
42
|
-
createdBy
|
43
|
-
partnerId
|
44
|
-
serviceName
|
45
|
-
serviceId
|
46
|
-
type
|
47
|
-
typeName
|
48
|
-
orderId
|
49
|
-
status
|
50
|
-
ownerId
|
51
|
-
ownerName
|
52
|
-
ownerEmail
|
53
|
-
ownerPhone
|
54
|
-
saleName
|
55
|
-
salePartyId
|
56
|
-
startDate
|
57
|
-
endDate
|
58
|
-
version
|
59
|
-
location
|
60
|
-
description
|
61
|
-
serviceType
|
62
|
-
actionResult
|
63
|
-
}
|
64
|
-
}
|
36
|
+
exports.GET_SERVICE_BY_TYPE = (0, graphql_tag_1.gql) `
|
37
|
+
query GetServiceByType($partnerId: String!, $type: String!) {
|
38
|
+
getServiceByType(partnerId: $partnerId, type: $type) {
|
39
|
+
createdStamp
|
40
|
+
updatedStamp
|
41
|
+
updatedBy
|
42
|
+
createdBy
|
43
|
+
partnerId
|
44
|
+
serviceName
|
45
|
+
serviceId
|
46
|
+
type
|
47
|
+
typeName
|
48
|
+
orderId
|
49
|
+
status
|
50
|
+
ownerId
|
51
|
+
ownerName
|
52
|
+
ownerEmail
|
53
|
+
ownerPhone
|
54
|
+
saleName
|
55
|
+
salePartyId
|
56
|
+
startDate
|
57
|
+
endDate
|
58
|
+
version
|
59
|
+
location
|
60
|
+
description
|
61
|
+
serviceType
|
62
|
+
actionResult
|
63
|
+
}
|
64
|
+
}
|
65
65
|
`;
|
66
66
|
// query GetServiceByOwnerId {
|
67
67
|
// getServiceByOwnerId(partnerId: "LONGVAN", ownerId: "20.52731") {
|
@@ -98,77 +98,77 @@ exports.GET_SERVICE_BY_TYPE = (0, graphql_tag_1.gql) `
|
|
98
98
|
// attrs
|
99
99
|
// }
|
100
100
|
// }
|
101
|
-
exports.GET_SERVICE_BY_OWNER_ID = (0, graphql_tag_1.gql) `
|
102
|
-
query GetServiceByOwnerId($partnerId: String!, $ownerId: String!) {
|
103
|
-
getServiceByOwnerId(partnerId: $partnerId, ownerId: $ownerId) {
|
104
|
-
createdStamp
|
105
|
-
updatedStamp
|
106
|
-
updatedBy
|
107
|
-
createdBy
|
108
|
-
partnerId
|
109
|
-
serviceName
|
110
|
-
serviceId
|
111
|
-
type
|
112
|
-
typeName
|
113
|
-
orderId
|
114
|
-
orderLineItemId
|
115
|
-
status
|
116
|
-
ownerId
|
117
|
-
ownerName
|
118
|
-
ownerEmail
|
119
|
-
ownerPhone
|
120
|
-
saleName
|
121
|
-
salePartyId
|
122
|
-
startDate
|
123
|
-
endDate
|
124
|
-
location
|
125
|
-
description
|
126
|
-
serviceType
|
127
|
-
actionResult
|
128
|
-
}
|
129
|
-
}
|
101
|
+
exports.GET_SERVICE_BY_OWNER_ID = (0, graphql_tag_1.gql) `
|
102
|
+
query GetServiceByOwnerId($partnerId: String!, $ownerId: String!) {
|
103
|
+
getServiceByOwnerId(partnerId: $partnerId, ownerId: $ownerId) {
|
104
|
+
createdStamp
|
105
|
+
updatedStamp
|
106
|
+
updatedBy
|
107
|
+
createdBy
|
108
|
+
partnerId
|
109
|
+
serviceName
|
110
|
+
serviceId
|
111
|
+
type
|
112
|
+
typeName
|
113
|
+
orderId
|
114
|
+
orderLineItemId
|
115
|
+
status
|
116
|
+
ownerId
|
117
|
+
ownerName
|
118
|
+
ownerEmail
|
119
|
+
ownerPhone
|
120
|
+
saleName
|
121
|
+
salePartyId
|
122
|
+
startDate
|
123
|
+
endDate
|
124
|
+
location
|
125
|
+
description
|
126
|
+
serviceType
|
127
|
+
actionResult
|
128
|
+
}
|
129
|
+
}
|
130
130
|
`;
|
131
|
-
exports.GET_SERVICE_ACTION = (0, graphql_tag_1.gql) `
|
132
|
-
query GetServiceActions(
|
133
|
-
$serviceId: String!
|
134
|
-
$actionType: String
|
135
|
-
$updatedBy: String
|
136
|
-
) {
|
137
|
-
getServiceActions(
|
138
|
-
serviceId: $serviceId
|
139
|
-
actionType: $actionType
|
140
|
-
updatedBy: $updatedBy
|
141
|
-
) {
|
142
|
-
id
|
143
|
-
serviceId
|
144
|
-
actionType
|
145
|
-
description
|
146
|
-
status
|
147
|
-
processStatus
|
148
|
-
createdBy
|
149
|
-
createdStamp
|
150
|
-
updatedBy
|
151
|
-
updatedStamp
|
152
|
-
}
|
153
|
-
}
|
131
|
+
exports.GET_SERVICE_ACTION = (0, graphql_tag_1.gql) `
|
132
|
+
query GetServiceActions(
|
133
|
+
$serviceId: String!
|
134
|
+
$actionType: String
|
135
|
+
$updatedBy: String
|
136
|
+
) {
|
137
|
+
getServiceActions(
|
138
|
+
serviceId: $serviceId
|
139
|
+
actionType: $actionType
|
140
|
+
updatedBy: $updatedBy
|
141
|
+
) {
|
142
|
+
id
|
143
|
+
serviceId
|
144
|
+
actionType
|
145
|
+
description
|
146
|
+
status
|
147
|
+
processStatus
|
148
|
+
createdBy
|
149
|
+
createdStamp
|
150
|
+
updatedBy
|
151
|
+
updatedStamp
|
152
|
+
}
|
153
|
+
}
|
154
154
|
`;
|
155
|
-
exports.GET_SERVICE_TICKETS = (0, graphql_tag_1.gql) `
|
156
|
-
query GetServiceTickets($serviceId: String!) {
|
157
|
-
getServiceTickets(serviceId: $serviceId) {
|
158
|
-
id
|
159
|
-
serviceId
|
160
|
-
description
|
161
|
-
status
|
162
|
-
processStatus
|
163
|
-
createdBy
|
164
|
-
createdStamp
|
165
|
-
updatedBy
|
166
|
-
updatedStamp
|
167
|
-
}
|
168
|
-
}
|
155
|
+
exports.GET_SERVICE_TICKETS = (0, graphql_tag_1.gql) `
|
156
|
+
query GetServiceTickets($serviceId: String!) {
|
157
|
+
getServiceTickets(serviceId: $serviceId) {
|
158
|
+
id
|
159
|
+
serviceId
|
160
|
+
description
|
161
|
+
status
|
162
|
+
processStatus
|
163
|
+
createdBy
|
164
|
+
createdStamp
|
165
|
+
updatedBy
|
166
|
+
updatedStamp
|
167
|
+
}
|
168
|
+
}
|
169
169
|
`;
|
170
|
-
exports.GET_ACTION_ATTRIBUTE = (0, graphql_tag_1.gql) `
|
171
|
-
query GetActionAttribute($actionId: String!, $attributeName: String!) {
|
172
|
-
getActionAttribute(actionId: $actionId, attributeName: $attributeName)
|
173
|
-
}
|
170
|
+
exports.GET_ACTION_ATTRIBUTE = (0, graphql_tag_1.gql) `
|
171
|
+
query GetActionAttribute($actionId: String!, $attributeName: String!) {
|
172
|
+
getActionAttribute(actionId: $actionId, attributeName: $attributeName)
|
173
|
+
}
|
174
174
|
`;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const CREATE_STORE_MUTATION: import("graphql").DocumentNode;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CREATE_STORE_MUTATION = void 0;
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
5
|
+
exports.CREATE_STORE_MUTATION = (0, graphql_tag_1.gql) `
|
6
|
+
mutation CreateStore($partnerId: String, $storeName: String) {
|
7
|
+
createStore(partnerId: $partnerId, storeName: $storeName) {
|
8
|
+
id
|
9
|
+
createdStamp
|
10
|
+
name
|
11
|
+
type
|
12
|
+
enable
|
13
|
+
partyId
|
14
|
+
warehouses
|
15
|
+
warehouseIdDefault
|
16
|
+
enableOrderAbleFuture
|
17
|
+
enableOrderNegativeQuantity
|
18
|
+
storeEcommerceName
|
19
|
+
shippingCompanies
|
20
|
+
shippingCompanyIdPrimary
|
21
|
+
customerIdPrimary
|
22
|
+
paymentMethodIdPrimary
|
23
|
+
enableCustomProductPrice
|
24
|
+
enablePaymentPartial
|
25
|
+
paymentPartialPercent
|
26
|
+
productStoreLink
|
27
|
+
}
|
28
|
+
}
|
29
|
+
`;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const GET_STORE_CHANNEL_BY_EMP_ID_QUERY: import("graphql").DocumentNode;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GET_STORE_CHANNEL_BY_EMP_ID_QUERY = void 0;
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
5
|
+
exports.GET_STORE_CHANNEL_BY_EMP_ID_QUERY = (0, graphql_tag_1.gql) `
|
6
|
+
query GetStoreChannelByEmpId($saleId: String) {
|
7
|
+
getStoreChannelByEmpId(saleId: $saleId) {
|
8
|
+
id
|
9
|
+
createdStamp
|
10
|
+
name
|
11
|
+
type
|
12
|
+
enable
|
13
|
+
partyId
|
14
|
+
warehouses
|
15
|
+
warehouseIdDefault
|
16
|
+
enableOrderAbleFuture
|
17
|
+
enableOrderNegativeQuantity
|
18
|
+
storeEcommerceName
|
19
|
+
shippingCompanies
|
20
|
+
shippingCompanyIdPrimary
|
21
|
+
customerIdPrimary
|
22
|
+
paymentMethodIdPrimary
|
23
|
+
enableCustomProductPrice
|
24
|
+
enablePaymentPartial
|
25
|
+
paymentPartialPercent
|
26
|
+
productStoreLink
|
27
|
+
}
|
28
|
+
}
|
29
|
+
`;
|