@longvansoftware/storefront-js-client 1.3.7 → 1.3.9
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/dist/config/config.d.ts +4 -0
- package/dist/config/config.js +4 -0
- package/dist/src/graphql/crm/mutations.js +49 -44
- package/dist/src/graphql/payment/mutations.js +1 -1
- package/dist/src/graphql/payment/queries.d.ts +1 -0
- package/dist/src/graphql/payment/queries.js +12 -1
- package/dist/src/graphql/service/mutations.d.ts +8 -0
- package/dist/src/graphql/service/mutations.js +203 -0
- package/dist/src/graphql/service/queries.d.ts +4 -0
- package/dist/src/graphql/service/queries.js +154 -0
- package/dist/src/graphql/user/mutations.d.ts +1 -0
- package/dist/src/graphql/user/mutations.js +52 -21
- package/dist/src/lib/SDK.d.ts +6 -0
- package/dist/src/lib/SDK.js +12 -6
- package/dist/src/lib/auth/index.d.ts +1 -1
- package/dist/src/lib/auth/index.js +2 -2
- package/dist/src/lib/crm/index.d.ts +1 -1
- package/dist/src/lib/crm/index.js +2 -2
- package/dist/src/lib/order/index.d.ts +66 -5
- package/dist/src/lib/order/index.js +201 -49
- package/dist/src/lib/payment/index.d.ts +2 -1
- package/dist/src/lib/payment/index.js +22 -3
- package/dist/src/lib/product/index.d.ts +1 -1
- package/dist/src/lib/product/index.js +2 -2
- package/dist/src/lib/service/index.d.ts +91 -0
- package/dist/src/lib/service/index.js +298 -0
- package/dist/src/lib/serviceSDK.d.ts +15 -0
- package/dist/src/lib/serviceSDK.js +117 -0
- package/dist/src/lib/user/index.d.ts +4 -2
- package/dist/src/lib/user/index.js +48 -2
- package/dist/src/lib/warehouse/index.d.ts +20 -0
- package/dist/src/lib/warehouse/index.js +48 -0
- package/dist/src/types/order.d.ts +2 -2
- package/dist/src/types/service.d.ts +28 -0
- package/dist/src/types/service.js +2 -0
- package/dist/src/types/user.d.ts +13 -0
- package/dist/src/types/warehouse.d.ts +5 -0
- package/dist/src/types/warehouse.js +2 -0
- package/package.json +1 -1
package/dist/config/config.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export declare const environmentEndpoints: {
|
|
|
6
6
|
order: string;
|
|
7
7
|
user: string;
|
|
8
8
|
payment: string;
|
|
9
|
+
service: string;
|
|
10
|
+
warehouse: string;
|
|
9
11
|
};
|
|
10
12
|
live: {
|
|
11
13
|
product: string;
|
|
@@ -14,5 +16,7 @@ export declare const environmentEndpoints: {
|
|
|
14
16
|
order: string;
|
|
15
17
|
user: string;
|
|
16
18
|
payment: string;
|
|
19
|
+
service: string;
|
|
20
|
+
warehouse: string;
|
|
17
21
|
};
|
|
18
22
|
};
|
package/dist/config/config.js
CHANGED
|
@@ -9,6 +9,8 @@ exports.environmentEndpoints = {
|
|
|
9
9
|
order: "https://storefront.dev.longvan.vn/v2",
|
|
10
10
|
user: "https://user.dev.longvan.vn/user-gateway/graphql",
|
|
11
11
|
payment: "https://portal.dev.longvan.vn/invoice-gateway/graphql",
|
|
12
|
+
service: "https://portal.dev.longvan.vn/service-api/graphql",
|
|
13
|
+
warehouse: "https://facility-api-v2.dev.longvan.vn/facility-api/public-facility/1.0.0",
|
|
12
14
|
},
|
|
13
15
|
live: {
|
|
14
16
|
product: "https://product-service.dev.longvan.vn/product-service/graphql",
|
|
@@ -17,5 +19,7 @@ exports.environmentEndpoints = {
|
|
|
17
19
|
order: "https://storefront.dev.longvan.vn/v2",
|
|
18
20
|
user: "https://user.dev.longvan.vn/user-gateway/graphql",
|
|
19
21
|
payment: "https://portal.dev.longvan.vn/invoice-gateway/graphql",
|
|
22
|
+
service: "https://portal.dev.longvan.vn/service-api/graphql",
|
|
23
|
+
warehouse: "https://facility-api-v2.dev.longvan.vn/facility-api/public-facility/1.0.0",
|
|
20
24
|
},
|
|
21
25
|
};
|
|
@@ -46,13 +46,13 @@ exports.ADD_OPPORTUNITY_MUTATION = (0, graphql_tag_1.gql) `
|
|
|
46
46
|
`;
|
|
47
47
|
exports.UPDATE_STATUS_ATTACHMENT_BY_ID = (0, graphql_tag_1.gql) `
|
|
48
48
|
mutation UpdateStatusAttachmentById(
|
|
49
|
-
$performerId: String
|
|
50
|
-
$attachmentId: String
|
|
49
|
+
$performerId: String!
|
|
50
|
+
$attachmentId: String!
|
|
51
51
|
$status: String!
|
|
52
52
|
) {
|
|
53
53
|
updateStatusAttachmentById(
|
|
54
|
-
performerId: $performerId
|
|
55
|
-
attachmentId: $attachmentId
|
|
54
|
+
performerId: $performerId
|
|
55
|
+
attachmentId: $attachmentId
|
|
56
56
|
status: $status
|
|
57
57
|
) {
|
|
58
58
|
id
|
|
@@ -76,13 +76,13 @@ exports.UPDATE_STATUS_ATTACHMENT_BY_ID = (0, graphql_tag_1.gql) `
|
|
|
76
76
|
`;
|
|
77
77
|
exports.UPDATE_WORK_EFFORT_DESCRIPTION = (0, graphql_tag_1.gql) `
|
|
78
78
|
mutation UpdateWorkEffortDescription(
|
|
79
|
-
$performerId: String
|
|
80
|
-
$workEffortId: String
|
|
79
|
+
$performerId: String!
|
|
80
|
+
$workEffortId: String!
|
|
81
81
|
$description: String!
|
|
82
82
|
) {
|
|
83
83
|
updateWorkEffortDescription(
|
|
84
|
-
performerId: $performerId
|
|
85
|
-
workEffortId: $workEffortId
|
|
84
|
+
performerId: $performerId
|
|
85
|
+
workEffortId: $workEffortId
|
|
86
86
|
description: $description
|
|
87
87
|
) {
|
|
88
88
|
id
|
|
@@ -126,15 +126,15 @@ exports.UPDATE_WORK_EFFORT_DESCRIPTION = (0, graphql_tag_1.gql) `
|
|
|
126
126
|
`;
|
|
127
127
|
exports.UPDATE_WORK_EFFORT_NAME = (0, graphql_tag_1.gql) `
|
|
128
128
|
mutation UpdateWorkEffortName(
|
|
129
|
-
$partyId: String
|
|
130
|
-
$performerId: String
|
|
131
|
-
$workEffortId: String
|
|
129
|
+
$partyId: String!
|
|
130
|
+
$performerId: String!
|
|
131
|
+
$workEffortId: String!
|
|
132
132
|
$newName: String!
|
|
133
133
|
) {
|
|
134
134
|
updateWorkEffortName(
|
|
135
|
-
partyId: $partyId
|
|
136
|
-
performerId: $performerId
|
|
137
|
-
workEffortId: $workEffortId
|
|
135
|
+
partyId: $partyId
|
|
136
|
+
performerId: $performerId
|
|
137
|
+
workEffortId: $workEffortId
|
|
138
138
|
newName: $newName
|
|
139
139
|
) {
|
|
140
140
|
id
|
|
@@ -178,17 +178,17 @@ exports.UPDATE_WORK_EFFORT_NAME = (0, graphql_tag_1.gql) `
|
|
|
178
178
|
`;
|
|
179
179
|
exports.UPDATE_WORK_EFFORT_STATUS = (0, graphql_tag_1.gql) `
|
|
180
180
|
mutation UpdateWorkEffortStatus(
|
|
181
|
-
$partyId: String
|
|
182
|
-
$performerId: String
|
|
183
|
-
$workEffortId: String
|
|
184
|
-
$source: String
|
|
181
|
+
$partyId: String!
|
|
182
|
+
$performerId: String!
|
|
183
|
+
$workEffortId: String!
|
|
184
|
+
$source: String!
|
|
185
185
|
$status: String!
|
|
186
186
|
) {
|
|
187
187
|
updateWorkEffortStatus(
|
|
188
|
-
partyId: $partyId
|
|
189
|
-
performerId: $performerId
|
|
190
|
-
workEffortId: $workEffortId
|
|
191
|
-
source: $source
|
|
188
|
+
partyId: $partyId
|
|
189
|
+
performerId: $performerId
|
|
190
|
+
workEffortId: $workEffortId
|
|
191
|
+
source: $source
|
|
192
192
|
status: $status
|
|
193
193
|
) {
|
|
194
194
|
id
|
|
@@ -231,28 +231,33 @@ exports.UPDATE_WORK_EFFORT_STATUS = (0, graphql_tag_1.gql) `
|
|
|
231
231
|
}
|
|
232
232
|
`;
|
|
233
233
|
exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = (0, graphql_tag_1.gql) `
|
|
234
|
-
mutation (
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
addAttachmentRequest: $attachments
|
|
234
|
+
mutation (
|
|
235
|
+
$partyId: String!
|
|
236
|
+
$performerId: String!
|
|
237
|
+
$workEffortId: String!
|
|
238
|
+
$attachments: [AddAttachmentRequest]
|
|
240
239
|
) {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
240
|
+
addAttachmentForWorkEffort(
|
|
241
|
+
partyId: $partyId
|
|
242
|
+
performerId: $performerId
|
|
243
|
+
workEffortId: $workEffortId
|
|
244
|
+
addAttachmentRequest: $attachments
|
|
245
|
+
) {
|
|
246
|
+
id
|
|
247
|
+
createdStamp
|
|
248
|
+
updatedStamp
|
|
249
|
+
updatedBy
|
|
250
|
+
createdBy
|
|
251
|
+
partyId
|
|
252
|
+
path
|
|
253
|
+
srcId
|
|
254
|
+
srcName
|
|
255
|
+
srcPath
|
|
256
|
+
srcConfigPathId
|
|
257
|
+
name
|
|
258
|
+
fileType
|
|
259
|
+
type
|
|
260
|
+
referId
|
|
261
|
+
}
|
|
256
262
|
}
|
|
257
|
-
}
|
|
258
263
|
`;
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_PAYMENT_METHOD = void 0;
|
|
3
|
+
exports.GEN_QR_PAYMENT = exports.GET_PAYMENT_METHOD = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.GET_PAYMENT_METHOD = (0, graphql_tag_1.gql) `
|
|
6
6
|
query GetPaymentMethod($orgId: String!, $storeChannelId: String) {
|
|
7
7
|
getPaymentMethod(orgId: $orgId, storeChannelId: $storeChannelId) {
|
|
8
|
+
id
|
|
8
9
|
code
|
|
9
10
|
name
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
`;
|
|
14
|
+
exports.GEN_QR_PAYMENT = (0, graphql_tag_1.gql) `
|
|
15
|
+
query GenQRPayment($orgId: String!, $orderId: String!, $storeId: String!, $totalAmount: BigDecimal){
|
|
16
|
+
genQRPayment(
|
|
17
|
+
orgId: $orgId
|
|
18
|
+
orderId: $orderId
|
|
19
|
+
storeId: $storeId
|
|
20
|
+
totalAmount: $totalAmount
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const CREATE_SERVICE: import("graphql").DocumentNode;
|
|
2
|
+
export declare const UPDATE_SERVICE: import("graphql").DocumentNode;
|
|
3
|
+
export declare const DELETE_SERVICE: import("graphql").DocumentNode;
|
|
4
|
+
export declare const UPDATE_ATTR_VALUE: import("graphql").DocumentNode;
|
|
5
|
+
export declare const DELETE_ATTR_VALUE: import("graphql").DocumentNode;
|
|
6
|
+
export declare const UPDATE_SUCCESS_ACTION_PROCESS_STATUS: import("graphql").DocumentNode;
|
|
7
|
+
export declare const UPDATE_FAIL_ACTION_PROCESS_STATUS: import("graphql").DocumentNode;
|
|
8
|
+
export declare const CREATE_SERVICE_TICKET: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CREATE_SERVICE_TICKET = exports.UPDATE_FAIL_ACTION_PROCESS_STATUS = exports.UPDATE_SUCCESS_ACTION_PROCESS_STATUS = exports.DELETE_ATTR_VALUE = exports.UPDATE_ATTR_VALUE = exports.DELETE_SERVICE = exports.UPDATE_SERVICE = exports.CREATE_SERVICE = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
exports.CREATE_SERVICE = (0, graphql_tag_1.gql) `
|
|
6
|
+
mutation CreateService($partnerId: String!, $createModel: ServiceRequest!) {
|
|
7
|
+
createCompany(partnerId: $partnerId, createModel: $createModel) {
|
|
8
|
+
createdStamp: DateCustom
|
|
9
|
+
updatedStamp: DateCustom
|
|
10
|
+
updatedBy: String
|
|
11
|
+
createdBy: String
|
|
12
|
+
partnerId: String
|
|
13
|
+
serviceName: String
|
|
14
|
+
serviceId: String
|
|
15
|
+
type: String
|
|
16
|
+
typeName: String
|
|
17
|
+
orderId: String
|
|
18
|
+
orderLineItemId: String
|
|
19
|
+
orderItemTermId: String
|
|
20
|
+
status: String
|
|
21
|
+
ownerId: String
|
|
22
|
+
ownerName: String
|
|
23
|
+
ownerEmail: String
|
|
24
|
+
ownerPhone: String
|
|
25
|
+
saleName: String
|
|
26
|
+
salePartyId: String
|
|
27
|
+
startDate: DateCustom
|
|
28
|
+
endDate: DateCustom
|
|
29
|
+
version: String
|
|
30
|
+
location: String
|
|
31
|
+
description: String
|
|
32
|
+
username: String
|
|
33
|
+
password: String
|
|
34
|
+
urlPrivate: String
|
|
35
|
+
urlPublic: String
|
|
36
|
+
serviceType: Int
|
|
37
|
+
actionResult: String
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
exports.UPDATE_SERVICE = (0, graphql_tag_1.gql) `
|
|
42
|
+
mutation UpdateService(
|
|
43
|
+
$partnerId: String!
|
|
44
|
+
$serviceId: String!
|
|
45
|
+
$updateModel: ServiceRequest!
|
|
46
|
+
$updatedBy: String!
|
|
47
|
+
) {
|
|
48
|
+
updateService(
|
|
49
|
+
partnerId: $partnerId
|
|
50
|
+
serviceId: $serviceId
|
|
51
|
+
updateModel: $updateModel
|
|
52
|
+
updatedBy: $updateBy
|
|
53
|
+
) {
|
|
54
|
+
createdStamp: DateCustom
|
|
55
|
+
updatedStamp: DateCustom
|
|
56
|
+
updatedBy: String
|
|
57
|
+
createdBy: String
|
|
58
|
+
partnerId: String
|
|
59
|
+
serviceName: String
|
|
60
|
+
serviceId: String
|
|
61
|
+
type: String
|
|
62
|
+
typeName: String
|
|
63
|
+
orderId: String
|
|
64
|
+
orderLineItemId: String
|
|
65
|
+
orderItemTermId: String
|
|
66
|
+
status: String
|
|
67
|
+
ownerId: String
|
|
68
|
+
ownerName: String
|
|
69
|
+
ownerEmail: String
|
|
70
|
+
ownerPhone: String
|
|
71
|
+
saleName: String
|
|
72
|
+
salePartyId: String
|
|
73
|
+
startDate: DateCustom
|
|
74
|
+
endDate: DateCustom
|
|
75
|
+
version: String
|
|
76
|
+
location: String
|
|
77
|
+
description: String
|
|
78
|
+
username: String
|
|
79
|
+
password: String
|
|
80
|
+
urlPrivate: String
|
|
81
|
+
urlPublic: String
|
|
82
|
+
serviceType: Int
|
|
83
|
+
actionResult: String
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
`;
|
|
87
|
+
exports.DELETE_SERVICE = (0, graphql_tag_1.gql) `
|
|
88
|
+
mutation UpdateService(
|
|
89
|
+
$partnerId: String!
|
|
90
|
+
$serviceId: String!
|
|
91
|
+
$deletedBy: String!
|
|
92
|
+
) {
|
|
93
|
+
updateService(
|
|
94
|
+
partnerId: $partnerId
|
|
95
|
+
serviceId: $serviceId
|
|
96
|
+
deletedBy: $deletedBy
|
|
97
|
+
)
|
|
98
|
+
}
|
|
99
|
+
`;
|
|
100
|
+
exports.UPDATE_ATTR_VALUE = (0, graphql_tag_1.gql) `
|
|
101
|
+
mutation UpdateAttrValue(
|
|
102
|
+
$partnerId: String!
|
|
103
|
+
$serviceId: String!
|
|
104
|
+
$attrName: String!
|
|
105
|
+
$attrValue: String!
|
|
106
|
+
$updatedBy: String!
|
|
107
|
+
) {
|
|
108
|
+
updateAttrValue(
|
|
109
|
+
partnerId: $partnerId
|
|
110
|
+
serviceId: $serviceId
|
|
111
|
+
attrName: $attrName
|
|
112
|
+
attrValue: $attrValue
|
|
113
|
+
updatedBy: $updatedBy
|
|
114
|
+
)
|
|
115
|
+
}
|
|
116
|
+
`;
|
|
117
|
+
exports.DELETE_ATTR_VALUE = (0, graphql_tag_1.gql) `
|
|
118
|
+
mutation DeleteAttrValue(
|
|
119
|
+
$partnerId: String!
|
|
120
|
+
$serviceId: String!
|
|
121
|
+
$attrName: String!
|
|
122
|
+
$updatedBy: String!
|
|
123
|
+
) {
|
|
124
|
+
deleteAttrValue(
|
|
125
|
+
partnerId: $partnerId
|
|
126
|
+
serviceId: $serviceId
|
|
127
|
+
attrName: $attrName
|
|
128
|
+
updatedBy: $updatedBy
|
|
129
|
+
)
|
|
130
|
+
}
|
|
131
|
+
`;
|
|
132
|
+
exports.UPDATE_SUCCESS_ACTION_PROCESS_STATUS = (0, graphql_tag_1.gql) `
|
|
133
|
+
mutation UpdateSuccessActionProcessStatus(
|
|
134
|
+
$serviceActionId: String!
|
|
135
|
+
$updatedBy: String!
|
|
136
|
+
) {
|
|
137
|
+
updateSuccessActionProcessStatus(
|
|
138
|
+
serviceActionId: $serviceActionId
|
|
139
|
+
updatedBy: $updatedBy
|
|
140
|
+
) {
|
|
141
|
+
id
|
|
142
|
+
serviceId
|
|
143
|
+
actionType
|
|
144
|
+
description
|
|
145
|
+
status
|
|
146
|
+
processStatus
|
|
147
|
+
createdBy
|
|
148
|
+
createdStamp
|
|
149
|
+
updatedBy
|
|
150
|
+
updatedStamp
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
`;
|
|
154
|
+
exports.UPDATE_FAIL_ACTION_PROCESS_STATUS = (0, graphql_tag_1.gql) `
|
|
155
|
+
mutation UpdateFailActionProcessStatus(
|
|
156
|
+
$serviceActionId: String!
|
|
157
|
+
$decription: String
|
|
158
|
+
$updatedBy: String!
|
|
159
|
+
) {
|
|
160
|
+
updateFailActionProcessStatus(
|
|
161
|
+
serviceActionId: $serviceActionId
|
|
162
|
+
description: $decription
|
|
163
|
+
updatedBy: $updatedBy
|
|
164
|
+
) {
|
|
165
|
+
id
|
|
166
|
+
serviceId
|
|
167
|
+
actionType
|
|
168
|
+
description
|
|
169
|
+
status
|
|
170
|
+
processStatus
|
|
171
|
+
createdBy
|
|
172
|
+
createdStamp
|
|
173
|
+
updatedBy
|
|
174
|
+
updatedStamp
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
`;
|
|
178
|
+
exports.CREATE_SERVICE_TICKET = (0, graphql_tag_1.gql) `
|
|
179
|
+
mutation CreateServiceTicket(
|
|
180
|
+
$serviceId: String!
|
|
181
|
+
$name: String!
|
|
182
|
+
$createdBy: String!
|
|
183
|
+
$description: String
|
|
184
|
+
) {
|
|
185
|
+
createServiceTicket(
|
|
186
|
+
serviceId: $serviceId
|
|
187
|
+
name: $name
|
|
188
|
+
createdBy: $createdBy
|
|
189
|
+
description: $description
|
|
190
|
+
) {
|
|
191
|
+
id
|
|
192
|
+
serviceId
|
|
193
|
+
status
|
|
194
|
+
processStatus
|
|
195
|
+
name
|
|
196
|
+
description
|
|
197
|
+
createdBy
|
|
198
|
+
createdStamp
|
|
199
|
+
updatedBy
|
|
200
|
+
updatedStamp
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
`;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const GET_SERVICE_BY_ID: import("graphql").DocumentNode;
|
|
2
|
+
export declare const GET_SERVICE_BY_TYPE: import("graphql").DocumentNode;
|
|
3
|
+
export declare const GET_SERVICE_BY_OWNER_ID: import("graphql").DocumentNode;
|
|
4
|
+
export declare const GET_SERVICE_ACTION: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_SERVICE_ACTION = exports.GET_SERVICE_BY_OWNER_ID = exports.GET_SERVICE_BY_TYPE = exports.GET_SERVICE_BY_ID = void 0;
|
|
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
|
+
}
|
|
34
|
+
`;
|
|
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
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
// query GetServiceByOwnerId {
|
|
67
|
+
// getServiceByOwnerId(partnerId: "LONGVAN", ownerId: "20.52731") {
|
|
68
|
+
// createdStamp
|
|
69
|
+
// updatedStamp
|
|
70
|
+
// updatedBy
|
|
71
|
+
// createdBy
|
|
72
|
+
// partnerId
|
|
73
|
+
// serviceName
|
|
74
|
+
// serviceId
|
|
75
|
+
// type
|
|
76
|
+
// typeName
|
|
77
|
+
// orderId
|
|
78
|
+
// orderLineItemId
|
|
79
|
+
// orderItemTermId
|
|
80
|
+
// status
|
|
81
|
+
// ownerId
|
|
82
|
+
// ownerName
|
|
83
|
+
// ownerEmail
|
|
84
|
+
// ownerPhone
|
|
85
|
+
// saleName
|
|
86
|
+
// salePartyId
|
|
87
|
+
// startDate
|
|
88
|
+
// endDate
|
|
89
|
+
// version
|
|
90
|
+
// location
|
|
91
|
+
// description
|
|
92
|
+
// username
|
|
93
|
+
// password
|
|
94
|
+
// urlPrivate
|
|
95
|
+
// urlPublic
|
|
96
|
+
// serviceType
|
|
97
|
+
// actionResult
|
|
98
|
+
// attrs
|
|
99
|
+
// }
|
|
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
|
+
}
|
|
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
|
+
}
|
|
154
|
+
`;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const CREATE_COMPANY: import("graphql").DocumentNode;
|
|
2
2
|
export declare const UPDATE_COMPANY_INFOR: import("graphql").DocumentNode;
|
|
3
3
|
export declare const UPDATE_CUSTOMER_V2: import("graphql").DocumentNode;
|
|
4
|
+
export declare const CREATE_CUSTOMER_V2: import("graphql").DocumentNode;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UPDATE_CUSTOMER_V2 = exports.UPDATE_COMPANY_INFOR = exports.CREATE_COMPANY = void 0;
|
|
3
|
+
exports.CREATE_CUSTOMER_V2 = exports.UPDATE_CUSTOMER_V2 = exports.UPDATE_COMPANY_INFOR = exports.CREATE_COMPANY = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.CREATE_COMPANY = (0, graphql_tag_1.gql) `
|
|
6
6
|
mutation CreateCompany(
|
|
7
|
-
$createCompanyRequest: CreateCompanyRequest
|
|
8
|
-
$createTaxCodeRequest: CreateTaxCodeRequest
|
|
9
|
-
$orgId: String
|
|
7
|
+
$createCompanyRequest: CreateCompanyRequest!
|
|
8
|
+
$createTaxCodeRequest: CreateTaxCodeRequest
|
|
9
|
+
$orgId: String!
|
|
10
10
|
$createdBy: String!
|
|
11
11
|
) {
|
|
12
12
|
createCompany(
|
|
13
|
-
createCompanyRequest: $createCompanyRequest
|
|
14
|
-
createTaxCodeRequest: $createTaxCodeRequest
|
|
15
|
-
orgId: $orgId
|
|
13
|
+
createCompanyRequest: $createCompanyRequest
|
|
14
|
+
createTaxCodeRequest: $createTaxCodeRequest
|
|
15
|
+
orgId: $orgId
|
|
16
16
|
createdBy: $createdBy
|
|
17
17
|
) {
|
|
18
18
|
id
|
|
@@ -31,17 +31,17 @@ exports.CREATE_COMPANY = (0, graphql_tag_1.gql) `
|
|
|
31
31
|
`;
|
|
32
32
|
exports.UPDATE_COMPANY_INFOR = (0, graphql_tag_1.gql) `
|
|
33
33
|
mutation UpdateCompanyInfo(
|
|
34
|
-
$id: String
|
|
35
|
-
$fieldName: String
|
|
36
|
-
$valueUpdate: String
|
|
37
|
-
$orgId: String
|
|
34
|
+
$id: String!
|
|
35
|
+
$fieldName: String!
|
|
36
|
+
$valueUpdate: String!
|
|
37
|
+
$orgId: String!
|
|
38
38
|
$updatedBy: String!
|
|
39
39
|
) {
|
|
40
40
|
updateCompanyInfo(
|
|
41
|
-
id: $id
|
|
42
|
-
fieldName: $fieldName
|
|
43
|
-
valueUpdate: $valueUpdate
|
|
44
|
-
orgId: $orgId
|
|
41
|
+
id: $id
|
|
42
|
+
fieldName: $fieldName
|
|
43
|
+
valueUpdate: $valueUpdate
|
|
44
|
+
orgId: $orgId
|
|
45
45
|
updatedBy: $updatedBy
|
|
46
46
|
) {
|
|
47
47
|
id
|
|
@@ -60,15 +60,15 @@ exports.UPDATE_COMPANY_INFOR = (0, graphql_tag_1.gql) `
|
|
|
60
60
|
`;
|
|
61
61
|
exports.UPDATE_CUSTOMER_V2 = (0, graphql_tag_1.gql) `
|
|
62
62
|
mutation UpdateCustomerV2(
|
|
63
|
-
$id: String
|
|
64
|
-
$updateCustomerRequest: UpdateCustomerRequest
|
|
65
|
-
$tenantId: String
|
|
63
|
+
$id: String!
|
|
64
|
+
$updateCustomerRequest: UpdateCustomerRequest!
|
|
65
|
+
$tenantId: String!
|
|
66
66
|
$updatedBy: String!
|
|
67
67
|
) {
|
|
68
68
|
updateCustomerV2(
|
|
69
|
-
id: $id
|
|
70
|
-
updateCustomerRequest: $updateCustomerRequest
|
|
71
|
-
tenantId: $tenantId
|
|
69
|
+
id: $id
|
|
70
|
+
updateCustomerRequest: $updateCustomerRequest
|
|
71
|
+
tenantId: $tenantId
|
|
72
72
|
updatedBy: $updatedBy
|
|
73
73
|
) {
|
|
74
74
|
id
|
|
@@ -85,3 +85,34 @@ exports.UPDATE_CUSTOMER_V2 = (0, graphql_tag_1.gql) `
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
`;
|
|
88
|
+
exports.CREATE_CUSTOMER_V2 = (0, graphql_tag_1.gql) `
|
|
89
|
+
mutation CreateCustomerV2(
|
|
90
|
+
$name: String!
|
|
91
|
+
$phone: String
|
|
92
|
+
$email: String
|
|
93
|
+
$birthDate: DateCustom
|
|
94
|
+
$tenantId: String!
|
|
95
|
+
$createdBy: String
|
|
96
|
+
) {
|
|
97
|
+
createCustomerV2(
|
|
98
|
+
name: $name
|
|
99
|
+
phone: $phone
|
|
100
|
+
email: $email
|
|
101
|
+
birthDate: $birthDate
|
|
102
|
+
tenantId: $tenantId
|
|
103
|
+
createdBy: $createdBy
|
|
104
|
+
) {
|
|
105
|
+
id
|
|
106
|
+
name
|
|
107
|
+
address
|
|
108
|
+
gender
|
|
109
|
+
identityNumber
|
|
110
|
+
birthDate
|
|
111
|
+
email
|
|
112
|
+
phone
|
|
113
|
+
createdStamp
|
|
114
|
+
createdBy
|
|
115
|
+
memberLevel
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
`;
|