@longvansoftware/service-js-client 1.7.1 → 1.7.3
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.
@@ -115,14 +115,30 @@ exports.CREATE_DOMAIN_CONTACT = (0, graphql_tag_1.gql) `
|
|
115
115
|
serviceId: $serviceId
|
116
116
|
domainContacts: $domainContacts
|
117
117
|
) {
|
118
|
-
domainName
|
119
|
-
domainId
|
120
118
|
supplierId
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
119
|
+
domainContacts {
|
120
|
+
partyId
|
121
|
+
fullName
|
122
|
+
otherName
|
123
|
+
customerType
|
124
|
+
email
|
125
|
+
country
|
126
|
+
provinceId
|
127
|
+
province
|
128
|
+
districtId
|
129
|
+
district
|
130
|
+
wardId
|
131
|
+
ward
|
132
|
+
address
|
133
|
+
phone
|
134
|
+
contactType
|
135
|
+
taxCode
|
136
|
+
businessCode
|
137
|
+
idNumber
|
138
|
+
gender
|
139
|
+
birthday
|
140
|
+
level
|
141
|
+
}
|
126
142
|
}
|
127
143
|
}
|
128
144
|
`;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GET_ORDER_LINE_ITEM_BY_SERVICE_ID = exports.GET_ORDER_DETAIL = void 0;
|
3
|
+
exports.GET_ORDER_BY_SERVICE_ID = exports.GET_ORDER_LINE_ITEM_BY_SERVICE_ID = exports.GET_ORDER_DETAIL = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.GET_ORDER_DETAIL = (0, graphql_tag_1.gql) `
|
6
6
|
query getOrderDetail($orderId: String!) {
|
@@ -149,3 +149,136 @@ exports.GET_ORDER_LINE_ITEM_BY_SERVICE_ID = (0, graphql_tag_1.gql) `
|
|
149
149
|
}
|
150
150
|
}
|
151
151
|
`;
|
152
|
+
exports.GET_ORDER_BY_SERVICE_ID = (0, graphql_tag_1.gql) `
|
153
|
+
query GetOrderByServiceId($serviceId: String!) {
|
154
|
+
getOrderByServiceId(serviceId: $serviceId) {
|
155
|
+
cancelReason
|
156
|
+
currencyCode
|
157
|
+
currentSubtotalPrice {
|
158
|
+
amount
|
159
|
+
currencyCode
|
160
|
+
}
|
161
|
+
currentTotalDuties {
|
162
|
+
amount
|
163
|
+
currencyCode
|
164
|
+
}
|
165
|
+
currentTotalPrice {
|
166
|
+
amount
|
167
|
+
currencyCode
|
168
|
+
}
|
169
|
+
currentTotalTax {
|
170
|
+
amount
|
171
|
+
currencyCode
|
172
|
+
}
|
173
|
+
edited
|
174
|
+
financialStatus
|
175
|
+
fulfillmentStatus
|
176
|
+
orderStatus
|
177
|
+
id
|
178
|
+
partnerId
|
179
|
+
ownerName
|
180
|
+
ownerEmail
|
181
|
+
ownerPhone
|
182
|
+
orderNumber
|
183
|
+
originalTotalDuties {
|
184
|
+
amount
|
185
|
+
currencyCode
|
186
|
+
}
|
187
|
+
originalTotalPrice {
|
188
|
+
amount
|
189
|
+
currencyCode
|
190
|
+
}
|
191
|
+
shippingAddress {
|
192
|
+
address1
|
193
|
+
address2
|
194
|
+
city
|
195
|
+
company
|
196
|
+
country
|
197
|
+
countryCode
|
198
|
+
firstName
|
199
|
+
formattedArea
|
200
|
+
id
|
201
|
+
lastName
|
202
|
+
latitude
|
203
|
+
longitude
|
204
|
+
name
|
205
|
+
phone
|
206
|
+
province
|
207
|
+
provinceCode
|
208
|
+
zip
|
209
|
+
}
|
210
|
+
subtotalPrice {
|
211
|
+
amount
|
212
|
+
currencyCode
|
213
|
+
}
|
214
|
+
totalPrice {
|
215
|
+
amount
|
216
|
+
currencyCode
|
217
|
+
}
|
218
|
+
totalRefunded {
|
219
|
+
amount
|
220
|
+
currencyCode
|
221
|
+
}
|
222
|
+
totalShippingPrice {
|
223
|
+
amount
|
224
|
+
currencyCode
|
225
|
+
}
|
226
|
+
totalTax {
|
227
|
+
amount
|
228
|
+
currencyCode
|
229
|
+
}
|
230
|
+
discountTotalPrice {
|
231
|
+
amount
|
232
|
+
currencyCode
|
233
|
+
}
|
234
|
+
cod {
|
235
|
+
amount
|
236
|
+
currencyCode
|
237
|
+
}
|
238
|
+
rawData
|
239
|
+
orderId
|
240
|
+
note
|
241
|
+
pending
|
242
|
+
checkCommodities
|
243
|
+
shipmentNote
|
244
|
+
shopId
|
245
|
+
facilityId
|
246
|
+
orderType
|
247
|
+
shippingServiceId
|
248
|
+
carrierId
|
249
|
+
fromOrderId
|
250
|
+
externalCode
|
251
|
+
createdAt
|
252
|
+
createdStamp
|
253
|
+
canceledAt
|
254
|
+
updatedAt
|
255
|
+
approvedAt
|
256
|
+
processedAt
|
257
|
+
completedAt
|
258
|
+
createdBy
|
259
|
+
saleName
|
260
|
+
salePartyId
|
261
|
+
ownerPartyId
|
262
|
+
customerLocale
|
263
|
+
orderParentId
|
264
|
+
totalVAT {
|
265
|
+
amount
|
266
|
+
currencyCode
|
267
|
+
}
|
268
|
+
shopName
|
269
|
+
version
|
270
|
+
discountApplications {
|
271
|
+
allocationMethod
|
272
|
+
targetSelection
|
273
|
+
targetType
|
274
|
+
title
|
275
|
+
value {
|
276
|
+
amount
|
277
|
+
currencyCode
|
278
|
+
}
|
279
|
+
}
|
280
|
+
orderDate
|
281
|
+
dueDatePayment
|
282
|
+
}
|
283
|
+
}
|
284
|
+
`;
|
@@ -7,4 +7,5 @@ export declare class OrderGraphQLService extends Service {
|
|
7
7
|
getOrderDetail(orderId: string): Promise<any>;
|
8
8
|
updateQuantityV2(payload: any): Promise<any>;
|
9
9
|
getOrderLineItemByServiceId(serviceId: string): Promise<any>;
|
10
|
+
getOrderByServiceId(serviceId: string): Promise<any>;
|
10
11
|
}
|
@@ -86,5 +86,21 @@ class OrderGraphQLService extends serviceSDK_1.Service {
|
|
86
86
|
}
|
87
87
|
});
|
88
88
|
}
|
89
|
+
getOrderByServiceId(serviceId) {
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
91
|
+
const query = queries_1.GET_ORDER_BY_SERVICE_ID;
|
92
|
+
const variables = {
|
93
|
+
serviceId,
|
94
|
+
};
|
95
|
+
try {
|
96
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
97
|
+
return response.getOrderByServiceId;
|
98
|
+
}
|
99
|
+
catch (error) {
|
100
|
+
console.log(`Error in getOrderByServiceId: ${error}`);
|
101
|
+
throw error;
|
102
|
+
}
|
103
|
+
});
|
104
|
+
}
|
89
105
|
}
|
90
106
|
exports.OrderGraphQLService = OrderGraphQLService;
|