@longvansoftware/service-js-client 1.0.2
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 -0
- package/dist/config/config.d.ts +26 -0
- package/dist/config/config.js +29 -0
- package/dist/src/graphql/auth/mutations.d.ts +7 -0
- package/dist/src/graphql/auth/mutations.js +99 -0
- package/dist/src/graphql/auth/queries.d.ts +1 -0
- package/dist/src/graphql/auth/queries.js +25 -0
- package/dist/src/graphql/cloud/mutations.d.ts +8 -0
- package/dist/src/graphql/cloud/mutations.js +115 -0
- package/dist/src/graphql/cloud/queries.d.ts +5 -0
- package/dist/src/graphql/cloud/queries.js +121 -0
- package/dist/src/graphql/computing/mutations.d.ts +10 -0
- package/dist/src/graphql/computing/mutations.js +110 -0
- package/dist/src/graphql/computing/queries.d.ts +3 -0
- package/dist/src/graphql/computing/queries.js +48 -0
- package/dist/src/graphql/crm/mutations.d.ts +8 -0
- package/dist/src/graphql/crm/mutations.js +316 -0
- package/dist/src/graphql/crm/queries.d.ts +7 -0
- package/dist/src/graphql/crm/queries.js +281 -0
- package/dist/src/graphql/payment/mutations.d.ts +1 -0
- package/dist/src/graphql/payment/mutations.js +35 -0
- package/dist/src/graphql/payment/queries.d.ts +2 -0
- package/dist/src/graphql/payment/queries.js +23 -0
- package/dist/src/graphql/product/mutations.d.ts +0 -0
- package/dist/src/graphql/product/mutations.js +1 -0
- package/dist/src/graphql/product/queries.d.ts +11 -0
- package/dist/src/graphql/product/queries.js +431 -0
- package/dist/src/graphql/service/mutations.d.ts +10 -0
- package/dist/src/graphql/service/mutations.js +284 -0
- package/dist/src/graphql/service/queries.d.ts +6 -0
- package/dist/src/graphql/service/queries.js +174 -0
- package/dist/src/graphql/user/mutations.d.ts +4 -0
- package/dist/src/graphql/user/mutations.js +118 -0
- package/dist/src/graphql/user/queries.d.ts +13 -0
- package/dist/src/graphql/user/queries.js +252 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +5 -0
- package/dist/src/lib/SDK.d.ts +42 -0
- package/dist/src/lib/SDK.js +71 -0
- package/dist/src/lib/auth/index.d.ts +27 -0
- package/dist/src/lib/auth/index.js +72 -0
- package/dist/src/lib/cloud/index.d.ts +25 -0
- package/dist/src/lib/cloud/index.js +248 -0
- package/dist/src/lib/computing/index.d.ts +25 -0
- package/dist/src/lib/computing/index.js +254 -0
- package/dist/src/lib/crm/index.d.ts +21 -0
- package/dist/src/lib/crm/index.js +296 -0
- package/dist/src/lib/order/index.d.ts +452 -0
- package/dist/src/lib/order/index.js +1204 -0
- package/dist/src/lib/payment/index.d.ts +7 -0
- package/dist/src/lib/payment/index.js +69 -0
- package/dist/src/lib/product/index.d.ts +37 -0
- package/dist/src/lib/product/index.js +132 -0
- package/dist/src/lib/service/index.d.ts +94 -0
- package/dist/src/lib/service/index.js +348 -0
- package/dist/src/lib/service.d.ts +14 -0
- package/dist/src/lib/service.js +101 -0
- package/dist/src/lib/serviceSDK.d.ts +18 -0
- package/dist/src/lib/serviceSDK.js +187 -0
- package/dist/src/lib/user/index.d.ts +23 -0
- package/dist/src/lib/user/index.js +345 -0
- package/dist/src/lib/warehouse/index.d.ts +20 -0
- package/dist/src/lib/warehouse/index.js +48 -0
- package/dist/src/types/auth.d.ts +82 -0
- package/dist/src/types/auth.js +2 -0
- package/dist/src/types/cloud.d.ts +40 -0
- package/dist/src/types/cloud.js +2 -0
- package/dist/src/types/computing.d.ts +16 -0
- package/dist/src/types/computing.js +2 -0
- package/dist/src/types/crm.d.ts +291 -0
- package/dist/src/types/crm.js +2 -0
- package/dist/src/types/order.d.ts +54 -0
- package/dist/src/types/order.js +2 -0
- package/dist/src/types/product.d.ts +63 -0
- package/dist/src/types/product.js +2 -0
- package/dist/src/types/service.d.ts +29 -0
- package/dist/src/types/service.js +2 -0
- package/dist/src/types/user.d.ts +95 -0
- package/dist/src/types/user.js +2 -0
- package/dist/src/types/warehouse.d.ts +5 -0
- package/dist/src/types/warehouse.js +2 -0
- package/dist/src/utils/helpers.d.ts +4 -0
- package/dist/src/utils/helpers.js +41 -0
- package/package.json +43 -0
@@ -0,0 +1,284 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ADD_ACTION_ATTRIBUTE = exports.UPDATE_ATTR_VALUE = exports.CREATE_SERVICE_ACTION = exports.CREATE_SERVICE_TICKET = exports.UPDATE_FAIL_ACTION_PROCESS_STATUS = exports.UPDATE_SUCCESS_ACTION_PROCESS_STATUS = exports.DELETE_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
|
+
// export const UPDATE_ATTR_VALUE = 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
|
+
`;
|
204
|
+
// mutation CreateServiceAction {
|
205
|
+
// createServiceAction(serviceId: null, actionType: null, createdBy: null) {
|
206
|
+
// id
|
207
|
+
// serviceId
|
208
|
+
// actionType
|
209
|
+
// description
|
210
|
+
// status
|
211
|
+
// processStatus
|
212
|
+
// createdBy
|
213
|
+
// createdStamp
|
214
|
+
// updatedBy
|
215
|
+
// updatedStamp
|
216
|
+
// }
|
217
|
+
// }
|
218
|
+
exports.CREATE_SERVICE_ACTION = (0, graphql_tag_1.gql) `
|
219
|
+
mutation CreateServiceAction(
|
220
|
+
$serviceId: String!
|
221
|
+
$actionType: String!
|
222
|
+
$createdBy: String!
|
223
|
+
) {
|
224
|
+
createServiceAction(
|
225
|
+
serviceId: $serviceId
|
226
|
+
actionType: $actionType
|
227
|
+
createdBy: $createdBy
|
228
|
+
) {
|
229
|
+
id
|
230
|
+
serviceId
|
231
|
+
actionType
|
232
|
+
description
|
233
|
+
status
|
234
|
+
processStatus
|
235
|
+
createdBy
|
236
|
+
createdStamp
|
237
|
+
updatedBy
|
238
|
+
updatedStamp
|
239
|
+
}
|
240
|
+
}
|
241
|
+
`;
|
242
|
+
// const mutation = gql`
|
243
|
+
// mutation UpdateAttrValue {
|
244
|
+
// updateAttrValue(
|
245
|
+
// partnerId: "PKH"
|
246
|
+
// serviceId: "20.5791"
|
247
|
+
// attrName: "test"
|
248
|
+
// attrValue: "123123"
|
249
|
+
// updatedBy: "20.5791"
|
250
|
+
// )
|
251
|
+
// }
|
252
|
+
// `;
|
253
|
+
exports.UPDATE_ATTR_VALUE = (0, graphql_tag_1.gql) `
|
254
|
+
mutation UpdateAttrValue(
|
255
|
+
$partnerId: String!
|
256
|
+
$serviceId: String!
|
257
|
+
$attrName: String!
|
258
|
+
$attrValue: String!
|
259
|
+
$updatedBy: String!
|
260
|
+
) {
|
261
|
+
updateAttrValue(
|
262
|
+
partnerId: $partnerId
|
263
|
+
serviceId: $serviceId
|
264
|
+
attrName: $attrName
|
265
|
+
attrValue: $attrValue
|
266
|
+
updatedBy: $updatedBy
|
267
|
+
)
|
268
|
+
}
|
269
|
+
`;
|
270
|
+
exports.ADD_ACTION_ATTRIBUTE = (0, graphql_tag_1.gql) `
|
271
|
+
mutation AddActionAttribute(
|
272
|
+
$actionId: String!
|
273
|
+
$attributeName: String!
|
274
|
+
$attributeValue: String!
|
275
|
+
$createdBy: String!
|
276
|
+
) {
|
277
|
+
addActionAttribute(
|
278
|
+
actionId: $actionId
|
279
|
+
attributeName: $attributeName
|
280
|
+
attributeValue: $attributeValue
|
281
|
+
createdBy: $createdBy
|
282
|
+
)
|
283
|
+
}
|
284
|
+
`;
|
@@ -0,0 +1,6 @@
|
|
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;
|
5
|
+
export declare const GET_SERVICE_TICKETS: import("graphql").DocumentNode;
|
6
|
+
export declare const GET_ACTION_ATTRIBUTE: import("graphql").DocumentNode;
|
@@ -0,0 +1,174 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
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
|
+
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
|
+
`;
|
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
|
+
`;
|
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
|
+
`;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export declare const CREATE_COMPANY: import("graphql").DocumentNode;
|
2
|
+
export declare const UPDATE_COMPANY_INFOR: import("graphql").DocumentNode;
|
3
|
+
export declare const UPDATE_CUSTOMER_V2: import("graphql").DocumentNode;
|
4
|
+
export declare const CREATE_CUSTOMER_V2: import("graphql").DocumentNode;
|
@@ -0,0 +1,118 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CREATE_CUSTOMER_V2 = exports.UPDATE_CUSTOMER_V2 = exports.UPDATE_COMPANY_INFOR = exports.CREATE_COMPANY = void 0;
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
5
|
+
exports.CREATE_COMPANY = (0, graphql_tag_1.gql) `
|
6
|
+
mutation CreateCompany(
|
7
|
+
$createCompanyRequest: CreateCompanyRequest!
|
8
|
+
$createTaxCodeRequest: CreateTaxCodeRequest
|
9
|
+
$orgId: String!
|
10
|
+
$createdBy: String!
|
11
|
+
) {
|
12
|
+
createCompany(
|
13
|
+
createCompanyRequest: $createCompanyRequest
|
14
|
+
createTaxCodeRequest: $createTaxCodeRequest
|
15
|
+
orgId: $orgId
|
16
|
+
createdBy: $createdBy
|
17
|
+
) {
|
18
|
+
id
|
19
|
+
name
|
20
|
+
address
|
21
|
+
gender
|
22
|
+
identityNumber
|
23
|
+
birthDate
|
24
|
+
email
|
25
|
+
phone
|
26
|
+
createdStamp
|
27
|
+
createdBy
|
28
|
+
memberLevel
|
29
|
+
}
|
30
|
+
}
|
31
|
+
`;
|
32
|
+
exports.UPDATE_COMPANY_INFOR = (0, graphql_tag_1.gql) `
|
33
|
+
mutation UpdateCompanyInfo(
|
34
|
+
$id: String!
|
35
|
+
$fieldName: String!
|
36
|
+
$valueUpdate: String!
|
37
|
+
$orgId: String!
|
38
|
+
$updatedBy: String!
|
39
|
+
) {
|
40
|
+
updateCompanyInfo(
|
41
|
+
id: $id
|
42
|
+
fieldName: $fieldName
|
43
|
+
valueUpdate: $valueUpdate
|
44
|
+
orgId: $orgId
|
45
|
+
updatedBy: $updatedBy
|
46
|
+
) {
|
47
|
+
id
|
48
|
+
name
|
49
|
+
address
|
50
|
+
gender
|
51
|
+
identityNumber
|
52
|
+
birthDate
|
53
|
+
email
|
54
|
+
phone
|
55
|
+
createdStamp
|
56
|
+
createdBy
|
57
|
+
memberLevel
|
58
|
+
}
|
59
|
+
}
|
60
|
+
`;
|
61
|
+
exports.UPDATE_CUSTOMER_V2 = (0, graphql_tag_1.gql) `
|
62
|
+
mutation UpdateCustomerV2(
|
63
|
+
$id: String!
|
64
|
+
$updateCustomerRequest: UpdateCustomerRequest!
|
65
|
+
$tenantId: String!
|
66
|
+
$updatedBy: String!
|
67
|
+
) {
|
68
|
+
updateCustomerV2(
|
69
|
+
id: $id
|
70
|
+
updateCustomerRequest: $updateCustomerRequest
|
71
|
+
tenantId: $tenantId
|
72
|
+
updatedBy: $updatedBy
|
73
|
+
) {
|
74
|
+
id
|
75
|
+
name
|
76
|
+
address
|
77
|
+
gender
|
78
|
+
identityNumber
|
79
|
+
birthDate
|
80
|
+
email
|
81
|
+
phone
|
82
|
+
createdStamp
|
83
|
+
createdBy
|
84
|
+
memberLevel
|
85
|
+
}
|
86
|
+
}
|
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
|
+
`;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare const GET_PERSON_BY_IDS_QUERY: import("graphql").DocumentNode;
|
2
|
+
export declare const SEARCH_COMPANY: import("graphql").DocumentNode;
|
3
|
+
export declare const GET_CUSTOMER_BY_ID: import("graphql").DocumentNode;
|
4
|
+
export declare const SEARCH_CUSTOMER: import("graphql").DocumentNode;
|
5
|
+
export declare const SEARCH_EMPLOYEES: import("graphql").DocumentNode;
|
6
|
+
export declare const GET_POSTIONS_BY_EMPLOYEES_ID: import("graphql").DocumentNode;
|
7
|
+
export declare const GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID: import("graphql").DocumentNode;
|
8
|
+
export declare const GET_EMPLOYEES_BY_STORE_CHANEL_ID: import("graphql").DocumentNode;
|
9
|
+
export declare const GET_COMPANY_BY_CONTACT_INFO_ID: import("graphql").DocumentNode;
|
10
|
+
export declare const GET_CONTACT_INFOS_BY_COMPANY_ID: import("graphql").DocumentNode;
|
11
|
+
export declare const GET_PROVINCES: import("graphql").DocumentNode;
|
12
|
+
export declare const GET_DISTRICTS: import("graphql").DocumentNode;
|
13
|
+
export declare const GET_WARDS: import("graphql").DocumentNode;
|