@longvansoftware/service-js-client 1.12.8 → 1.13.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/dist/src/graphql/auth/mutations.js +4 -4
- package/dist/src/graphql/cloud/mutations.d.ts +4 -0
- package/dist/src/graphql/cloud/mutations.js +78 -1
- package/dist/src/graphql/cloud/queries.d.ts +1 -0
- package/dist/src/graphql/cloud/queries.js +46 -1
- package/dist/src/graphql/computing/mutations.d.ts +2 -0
- package/dist/src/graphql/computing/mutations.js +31 -1
- package/dist/src/graphql/computing/queries.d.ts +1 -0
- package/dist/src/graphql/computing/queries.js +9 -1
- package/dist/src/graphql/resource_permission/queries.js +1 -0
- package/dist/src/graphql/user/queries.d.ts +1 -0
- package/dist/src/graphql/user/queries.js +28 -7
- package/dist/src/lib/auth/index.d.ts +2 -2
- package/dist/src/lib/auth/index.js +2 -4
- package/dist/src/lib/cloud/index.d.ts +5 -3
- package/dist/src/lib/cloud/index.js +129 -49
- package/dist/src/lib/computing/index.d.ts +3 -0
- package/dist/src/lib/computing/index.js +54 -0
- package/dist/src/lib/user/index.d.ts +4 -3
- package/dist/src/lib/user/index.js +23 -4
- package/package.json +1 -1
@@ -190,8 +190,8 @@ exports.LINKING_USER_LOGIN_AND_USER_DETAIL = (0, graphql_tag_1.gql) `
|
|
190
190
|
}
|
191
191
|
`;
|
192
192
|
exports.SEND_OTP = (0, graphql_tag_1.gql) `
|
193
|
-
mutation SendOTP($orgId: String!, $phone: String
|
194
|
-
sendOTP(orgId: $orgId, phone: $phone
|
193
|
+
mutation SendOTP($orgId: String!, $phone: String!) {
|
194
|
+
sendOTP(orgId: $orgId, phone: $phone) {
|
195
195
|
id
|
196
196
|
code
|
197
197
|
username
|
@@ -200,8 +200,8 @@ exports.SEND_OTP = (0, graphql_tag_1.gql) `
|
|
200
200
|
}
|
201
201
|
`;
|
202
202
|
exports.VALIDATE_OTP = (0, graphql_tag_1.gql) `
|
203
|
-
mutation ValidateOTP($otpCode: String!, $phone: String
|
204
|
-
validateOTP(otpCode: $otpCode, phone: $phone
|
203
|
+
mutation ValidateOTP($otpCode: String!, $phone: String!) {
|
204
|
+
validateOTP(otpCode: $otpCode, phone: $phone)
|
205
205
|
}
|
206
206
|
`;
|
207
207
|
exports.CREATE_USER_LOGIN = (0, graphql_tag_1.gql) `
|
@@ -10,3 +10,7 @@ export declare const UPDATE_PASSWORD: import("graphql").DocumentNode;
|
|
10
10
|
export declare const UPDATE_USER_PASSWORD: import("graphql").DocumentNode;
|
11
11
|
export declare const UPDATE_DNS: import("graphql").DocumentNode;
|
12
12
|
export declare const CREATE_DOMAIN_CONTACT: import("graphql").DocumentNode;
|
13
|
+
export declare const GET_ORDER_CHANGE_RESOURCE_TERM: import("graphql").DocumentNode;
|
14
|
+
export declare const CREATE_ACTION_CHANGE_IP_OF_SERVICE: import("graphql").DocumentNode;
|
15
|
+
export declare const UPDATE_ACTION_STATUS: import("graphql").DocumentNode;
|
16
|
+
export declare const UPDATE_ACTION_CUSTOM_ATTRIBUTE: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CREATE_DOMAIN_CONTACT = 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 = exports.CHECK_DOMAIN_NAME = exports.CHECK_LIST_DOMAIN_NAME = exports.GET_DOMAIN_INFO = void 0;
|
3
|
+
exports.UPDATE_ACTION_CUSTOM_ATTRIBUTE = exports.UPDATE_ACTION_STATUS = exports.CREATE_ACTION_CHANGE_IP_OF_SERVICE = exports.GET_ORDER_CHANGE_RESOURCE_TERM = exports.CREATE_DOMAIN_CONTACT = 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 = exports.CHECK_DOMAIN_NAME = exports.CHECK_LIST_DOMAIN_NAME = exports.GET_DOMAIN_INFO = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.GET_DOMAIN_INFO = (0, graphql_tag_1.gql) `
|
6
6
|
mutation GetDomainInfo($domainName: String!) {
|
@@ -181,3 +181,80 @@ exports.CREATE_DOMAIN_CONTACT = (0, graphql_tag_1.gql) `
|
|
181
181
|
}
|
182
182
|
}
|
183
183
|
`;
|
184
|
+
exports.GET_ORDER_CHANGE_RESOURCE_TERM = (0, graphql_tag_1.gql) `
|
185
|
+
mutation GetOrderChangeResourceTerm(
|
186
|
+
$serviceId: String!
|
187
|
+
$storeId: String!
|
188
|
+
$createdBy: String!
|
189
|
+
$partnerId: String!
|
190
|
+
) {
|
191
|
+
getOrderChangeResourceTerm(
|
192
|
+
serviceId: $serviceId
|
193
|
+
storeId: $storeId
|
194
|
+
createdBy: $createdBy
|
195
|
+
partnerId: $partnerId
|
196
|
+
)
|
197
|
+
}
|
198
|
+
`;
|
199
|
+
exports.CREATE_ACTION_CHANGE_IP_OF_SERVICE = (0, graphql_tag_1.gql) `
|
200
|
+
mutation CreateActionChangeIpOfService(
|
201
|
+
$action: ActionInput!
|
202
|
+
$byUser: String!
|
203
|
+
) {
|
204
|
+
createActionChangeIpOfService(action: $action, byUser: $byUser) {
|
205
|
+
id
|
206
|
+
partyId
|
207
|
+
parentId
|
208
|
+
name
|
209
|
+
description
|
210
|
+
workEffortTypeId
|
211
|
+
targetId
|
212
|
+
targetType
|
213
|
+
targetUrl
|
214
|
+
status
|
215
|
+
endDateExpect
|
216
|
+
endDateActual
|
217
|
+
startDateActual
|
218
|
+
startDateExpect
|
219
|
+
totalTimeActual
|
220
|
+
source
|
221
|
+
ownerId
|
222
|
+
detailUrl
|
223
|
+
execDate
|
224
|
+
retryCount
|
225
|
+
exception
|
226
|
+
attributes
|
227
|
+
group
|
228
|
+
requesterId
|
229
|
+
receiverId
|
230
|
+
createdBy
|
231
|
+
createdStamp
|
232
|
+
updatedBy
|
233
|
+
updatedStamp
|
234
|
+
}
|
235
|
+
}
|
236
|
+
`;
|
237
|
+
exports.UPDATE_ACTION_STATUS = (0, graphql_tag_1.gql) `
|
238
|
+
mutation UpdateActionStatus(
|
239
|
+
$actionId: String!
|
240
|
+
$status: String!
|
241
|
+
$byUser: String!
|
242
|
+
) {
|
243
|
+
updateActionStatus(actionId: $actionId, status: $status, byUser: $byUser)
|
244
|
+
}
|
245
|
+
`;
|
246
|
+
exports.UPDATE_ACTION_CUSTOM_ATTRIBUTE = (0, graphql_tag_1.gql) `
|
247
|
+
mutation UpdateActionCustomAttribute(
|
248
|
+
$actionId: String!
|
249
|
+
$attrName: String!
|
250
|
+
$attrValue: String!
|
251
|
+
$byUser: String!
|
252
|
+
) {
|
253
|
+
updateActionCustomAttribute(
|
254
|
+
actionId: $actionId
|
255
|
+
attrName: $attrName
|
256
|
+
attrValue: $attrValue
|
257
|
+
byUser: $byUser
|
258
|
+
)
|
259
|
+
}
|
260
|
+
`;
|
@@ -15,3 +15,4 @@ export declare const GET_OWNERS_BY_CUSTOMER_ID: import("graphql").DocumentNode;
|
|
15
15
|
export declare const GET_CONTACTS_BY_OWNER_ID: import("graphql").DocumentNode;
|
16
16
|
export declare const GET_DOMAIN_SUPPLIER: import("graphql").DocumentNode;
|
17
17
|
export declare const CHECK_DOMAIN_EXIST: import("graphql").DocumentNode;
|
18
|
+
export declare const SEARCH_ACTIONS: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CHECK_DOMAIN_EXIST = exports.GET_DOMAIN_SUPPLIER = exports.GET_CONTACTS_BY_OWNER_ID = exports.GET_OWNERS_BY_CUSTOMER_ID = exports.GET_DOMAIN_CONTACTS = exports.GET_SERVICE_TYPE_LIST = exports.GET_SERVICES_BY_ORDER_ID = exports.GET_IPS_OF_SERVICE = exports.GET_PRODUCTS_OF_SERVICE = exports.SEARCH_SERVICE = exports.SERVICE_TYPE = exports.GET_USER_MAIL_HOSTING = exports.GET_MAIL_RESOURCE = exports.SERVICE_DETAIL = exports.GET_WHOIS_DOMAIN_INFO = exports.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC = exports.CHECK_DOMAIN_NAME_AVAILABLE = void 0;
|
3
|
+
exports.SEARCH_ACTIONS = exports.CHECK_DOMAIN_EXIST = exports.GET_DOMAIN_SUPPLIER = exports.GET_CONTACTS_BY_OWNER_ID = exports.GET_OWNERS_BY_CUSTOMER_ID = exports.GET_DOMAIN_CONTACTS = exports.GET_SERVICE_TYPE_LIST = exports.GET_SERVICES_BY_ORDER_ID = exports.GET_IPS_OF_SERVICE = exports.GET_PRODUCTS_OF_SERVICE = exports.SEARCH_SERVICE = exports.SERVICE_TYPE = exports.GET_USER_MAIL_HOSTING = exports.GET_MAIL_RESOURCE = exports.SERVICE_DETAIL = exports.GET_WHOIS_DOMAIN_INFO = exports.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC = exports.CHECK_DOMAIN_NAME_AVAILABLE = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.CHECK_DOMAIN_NAME_AVAILABLE = (0, graphql_tag_1.gql) `
|
6
6
|
query CheckDomainNameAvailable($domainName: String!) {
|
@@ -292,3 +292,48 @@ exports.CHECK_DOMAIN_EXIST = (0, graphql_tag_1.gql) `
|
|
292
292
|
checkDomainExist(domainName: $domainName)
|
293
293
|
}
|
294
294
|
`;
|
295
|
+
exports.SEARCH_ACTIONS = (0, graphql_tag_1.gql) `
|
296
|
+
query SearchActions($parameter: ParameterSearchAction) {
|
297
|
+
searchActions(parameter: $parameter) {
|
298
|
+
content {
|
299
|
+
id
|
300
|
+
partyId
|
301
|
+
parentId
|
302
|
+
name
|
303
|
+
description
|
304
|
+
workEffortTypeId
|
305
|
+
targetId
|
306
|
+
targetType
|
307
|
+
targetUrl
|
308
|
+
status
|
309
|
+
endDateExpect
|
310
|
+
endDateActual
|
311
|
+
startDateActual
|
312
|
+
startDateExpect
|
313
|
+
totalTimeActual
|
314
|
+
source
|
315
|
+
ownerId
|
316
|
+
detailUrl
|
317
|
+
execDate
|
318
|
+
retryCount
|
319
|
+
exception
|
320
|
+
attributes
|
321
|
+
group
|
322
|
+
requesterId
|
323
|
+
receiverId
|
324
|
+
createdBy
|
325
|
+
createdStamp
|
326
|
+
updatedBy
|
327
|
+
updatedStamp
|
328
|
+
}
|
329
|
+
totalPages
|
330
|
+
totalElements
|
331
|
+
size
|
332
|
+
number
|
333
|
+
numberOfElements
|
334
|
+
first
|
335
|
+
last
|
336
|
+
empty
|
337
|
+
}
|
338
|
+
}
|
339
|
+
`;
|
@@ -20,3 +20,5 @@ export declare const UPDATE_NAME_COMPUTING: DocumentNode;
|
|
20
20
|
export declare const COMPUTING_WAITING_REVOKE: (fields?: string[]) => DocumentNode;
|
21
21
|
export declare const RESTORE_COMPUTING_WAITING_REVOKE: (fields?: string[]) => DocumentNode;
|
22
22
|
export declare const DELETE_COMPUTING: (fields?: string[]) => DocumentNode;
|
23
|
+
export declare const UPDATE_CPU: DocumentNode;
|
24
|
+
export declare const UPDATE_RAM: DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DELETE_COMPUTING = exports.RESTORE_COMPUTING_WAITING_REVOKE = exports.COMPUTING_WAITING_REVOKE = exports.UPDATE_NAME_COMPUTING = exports.CREATE_COMPUTING_FOR_DC = exports.UPDATE_DESCRIPTION_COMPUTING = exports.ADD_PORT_NAT = exports.STOP_USE_COMPUTING = exports.REMOVE_COMPUTING_IN_CLUSTER = exports.ADD_COMPUTING_IN_CLUSTER = exports.CREATE_CLUSTER = exports.DELETE_SNAPSHOT = exports.ROLLBACK_SNAPSHOT = exports.CREATE_SNAP_SHOT = exports.POWER_OFF = exports.POWER_ON = exports.REMOVE_PORT_NAT = exports.UPDATE_PORT_NAT = exports.CREATE_PORT_NAT = exports.UPDATE_DESCRIPTION_PORTNAT = exports.RESTARTVM = void 0;
|
3
|
+
exports.UPDATE_RAM = exports.UPDATE_CPU = exports.DELETE_COMPUTING = exports.RESTORE_COMPUTING_WAITING_REVOKE = exports.COMPUTING_WAITING_REVOKE = exports.UPDATE_NAME_COMPUTING = exports.CREATE_COMPUTING_FOR_DC = exports.UPDATE_DESCRIPTION_COMPUTING = exports.ADD_PORT_NAT = exports.STOP_USE_COMPUTING = exports.REMOVE_COMPUTING_IN_CLUSTER = exports.ADD_COMPUTING_IN_CLUSTER = exports.CREATE_CLUSTER = exports.DELETE_SNAPSHOT = exports.ROLLBACK_SNAPSHOT = exports.CREATE_SNAP_SHOT = exports.POWER_OFF = exports.POWER_ON = exports.REMOVE_PORT_NAT = exports.UPDATE_PORT_NAT = exports.CREATE_PORT_NAT = exports.UPDATE_DESCRIPTION_PORTNAT = exports.RESTARTVM = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.RESTARTVM = (0, graphql_tag_1.gql) `
|
6
6
|
mutation Restart($computingId: String!, $actor: String!) {
|
@@ -299,3 +299,33 @@ const DELETE_COMPUTING = (fields = []) => {
|
|
299
299
|
`;
|
300
300
|
};
|
301
301
|
exports.DELETE_COMPUTING = DELETE_COMPUTING;
|
302
|
+
exports.UPDATE_CPU = (0, graphql_tag_1.gql) `
|
303
|
+
mutation UpdateCPU(
|
304
|
+
$computingId: String!
|
305
|
+
$socket: Int!
|
306
|
+
$corePerSocket: Int!
|
307
|
+
$updateBy: String!
|
308
|
+
) {
|
309
|
+
updateCPU(
|
310
|
+
computingId: $computingId
|
311
|
+
socket: $socket
|
312
|
+
corePerSocket: $corePerSocket
|
313
|
+
updateBy: $updateBy
|
314
|
+
)
|
315
|
+
}
|
316
|
+
`;
|
317
|
+
exports.UPDATE_RAM = (0, graphql_tag_1.gql) `
|
318
|
+
mutation UpdateRAM(
|
319
|
+
$computingId: String!
|
320
|
+
$size: Int!
|
321
|
+
$unit: String!
|
322
|
+
$updateBy: String!
|
323
|
+
) {
|
324
|
+
updateRAM(
|
325
|
+
computingId: $computingId
|
326
|
+
size: $size
|
327
|
+
unit: $unit
|
328
|
+
updateBy: $updateBy
|
329
|
+
)
|
330
|
+
}
|
331
|
+
`;
|
@@ -25,3 +25,4 @@ export declare const GET_AVAILABLE_STORAGES_FOR_DC: DocumentNode;
|
|
25
25
|
export declare const GET_RESOUCE_POOL_BY_SERVICE: DocumentNode;
|
26
26
|
export declare const GET_CONSOLE: DocumentNode;
|
27
27
|
export declare const GET_COMPUTING_WAIT_REVOKE: (fields?: string[]) => DocumentNode;
|
28
|
+
export declare const GET_STOREGE_MAPPING_FOR_DC: DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GET_COMPUTING_WAIT_REVOKE = exports.GET_CONSOLE = exports.GET_RESOUCE_POOL_BY_SERVICE = exports.GET_AVAILABLE_STORAGES_FOR_DC = exports.GET_AVAILABLE_SUBNET_IPS_BY_RESOURCEPOLL_ID = exports.GET_TEMPLATE = exports.GET_PORT_NATS_BY_SERVICE_ID = exports.GET_EDGES = exports.GET_COMPUTING_BY_SERVICE = exports.GET_COMPUTING_BY_CLUSTER = exports.GET_CLUSTER = exports.GET_CLUSTERS = exports.GET_LAB_INSTANCE = exports.GET_COMPUTINGS = exports.BACKUP_POINT = exports.DISK_USAGE_DATE_RANGE = exports.NETWORK_USAGE_DATE_RANGE = exports.CPU_USAGE_DATE_RANGE = exports.RAM_USAGE_DATE_RANGE = exports.DISK_USAGE_START_TIME = exports.NETWORK_USAGE_START_TIME = exports.CPU_USAGE_START_TIME = exports.RAM_USAGE_START_TIME = exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
|
3
|
+
exports.GET_STOREGE_MAPPING_FOR_DC = exports.GET_COMPUTING_WAIT_REVOKE = exports.GET_CONSOLE = exports.GET_RESOUCE_POOL_BY_SERVICE = exports.GET_AVAILABLE_STORAGES_FOR_DC = exports.GET_AVAILABLE_SUBNET_IPS_BY_RESOURCEPOLL_ID = exports.GET_TEMPLATE = exports.GET_PORT_NATS_BY_SERVICE_ID = exports.GET_EDGES = exports.GET_COMPUTING_BY_SERVICE = exports.GET_COMPUTING_BY_CLUSTER = exports.GET_CLUSTER = exports.GET_CLUSTERS = exports.GET_LAB_INSTANCE = exports.GET_COMPUTINGS = exports.BACKUP_POINT = exports.DISK_USAGE_DATE_RANGE = exports.NETWORK_USAGE_DATE_RANGE = exports.CPU_USAGE_DATE_RANGE = exports.RAM_USAGE_DATE_RANGE = exports.DISK_USAGE_START_TIME = exports.NETWORK_USAGE_START_TIME = exports.CPU_USAGE_START_TIME = exports.RAM_USAGE_START_TIME = exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
|
6
6
|
query ComputingDetail($computingId: String!) {
|
@@ -565,3 +565,11 @@ const GET_COMPUTING_WAIT_REVOKE = (fields = []) => {
|
|
565
565
|
`;
|
566
566
|
};
|
567
567
|
exports.GET_COMPUTING_WAIT_REVOKE = GET_COMPUTING_WAIT_REVOKE;
|
568
|
+
exports.GET_STOREGE_MAPPING_FOR_DC = (0, graphql_tag_1.gql) `
|
569
|
+
query GetStorageMappingForDC($resourcePoolId: String!) {
|
570
|
+
getStorageMappingForDC(resourcePoolId: $resourcePoolId) {
|
571
|
+
name
|
572
|
+
storageId
|
573
|
+
}
|
574
|
+
}
|
575
|
+
`;
|
@@ -11,6 +11,7 @@ export declare const GET_CONTACT_INFOS_BY_COMPANY_ID: import("graphql").Document
|
|
11
11
|
export declare const GET_PROVINCES: import("graphql").DocumentNode;
|
12
12
|
export declare const GET_DISTRICTS: import("graphql").DocumentNode;
|
13
13
|
export declare const GET_WARDS: import("graphql").DocumentNode;
|
14
|
+
export declare const GET_WARDS_BY_PROVINCE_ID: import("graphql").DocumentNode;
|
14
15
|
export declare const GET_VAT_INFOR_BY_OWNER_PARTY_ID: import("graphql").DocumentNode;
|
15
16
|
export declare const GET_TEAM_BY_USER_ID: import("graphql").DocumentNode;
|
16
17
|
export declare const GET_USERS_BY_TEAM_ID: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GET_USERS_BY_TEAM_ID = exports.GET_TEAM_BY_USER_ID = exports.GET_VAT_INFOR_BY_OWNER_PARTY_ID = exports.GET_WARDS = exports.GET_DISTRICTS = exports.GET_PROVINCES = exports.GET_CONTACT_INFOS_BY_COMPANY_ID = exports.GET_COMPANY_BY_CONTACT_INFO_ID = exports.GET_EMPLOYEES_BY_STORE_CHANEL_ID = exports.GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID = exports.GET_POSTIONS_BY_EMPLOYEES_ID = exports.SEARCH_EMPLOYEES = exports.SEARCH_CUSTOMER = exports.GET_CUSTOMER_BY_ID = exports.SEARCH_COMPANY = exports.GET_PERSON_BY_IDS_QUERY = void 0;
|
3
|
+
exports.GET_USERS_BY_TEAM_ID = exports.GET_TEAM_BY_USER_ID = exports.GET_VAT_INFOR_BY_OWNER_PARTY_ID = exports.GET_WARDS_BY_PROVINCE_ID = exports.GET_WARDS = exports.GET_DISTRICTS = exports.GET_PROVINCES = exports.GET_CONTACT_INFOS_BY_COMPANY_ID = exports.GET_COMPANY_BY_CONTACT_INFO_ID = exports.GET_EMPLOYEES_BY_STORE_CHANEL_ID = exports.GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID = exports.GET_POSTIONS_BY_EMPLOYEES_ID = exports.SEARCH_EMPLOYEES = exports.SEARCH_CUSTOMER = exports.GET_CUSTOMER_BY_ID = exports.SEARCH_COMPANY = exports.GET_PERSON_BY_IDS_QUERY = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.GET_PERSON_BY_IDS_QUERY = (0, graphql_tag_1.gql) `
|
6
6
|
query GetPersonByIds($partyIds: [String!]!) {
|
@@ -204,8 +204,8 @@ exports.GET_CONTACT_INFOS_BY_COMPANY_ID = (0, graphql_tag_1.gql) `
|
|
204
204
|
}
|
205
205
|
`;
|
206
206
|
exports.GET_PROVINCES = (0, graphql_tag_1.gql) `
|
207
|
-
query GetProvinces {
|
208
|
-
getProvinces {
|
207
|
+
query GetProvinces($version: Int) {
|
208
|
+
getProvinces(version: $version) {
|
209
209
|
geoId
|
210
210
|
geoTypeId
|
211
211
|
geoName
|
@@ -225,8 +225,8 @@ exports.GET_PROVINCES = (0, graphql_tag_1.gql) `
|
|
225
225
|
}
|
226
226
|
`;
|
227
227
|
exports.GET_DISTRICTS = (0, graphql_tag_1.gql) `
|
228
|
-
query GetDistricts($provinceId: String
|
229
|
-
getDistricts(provinceId: $provinceId) {
|
228
|
+
query GetDistricts($provinceId: String!, $version: Int) {
|
229
|
+
getDistricts(provinceId: $provinceId, version: $version) {
|
230
230
|
geoId
|
231
231
|
geoTypeId
|
232
232
|
geoName
|
@@ -246,8 +246,29 @@ exports.GET_DISTRICTS = (0, graphql_tag_1.gql) `
|
|
246
246
|
}
|
247
247
|
`;
|
248
248
|
exports.GET_WARDS = (0, graphql_tag_1.gql) `
|
249
|
-
query GetWards($districtId: String
|
250
|
-
getWards(districtId: $districtId) {
|
249
|
+
query GetWards($districtId: String!, $version: Int) {
|
250
|
+
getWards(districtId: $districtId, version: $version) {
|
251
|
+
geoId
|
252
|
+
geoTypeId
|
253
|
+
geoName
|
254
|
+
geoNameLocal
|
255
|
+
geoCode
|
256
|
+
geoSecCode
|
257
|
+
abbreviation
|
258
|
+
vnPostId
|
259
|
+
jtExpressId
|
260
|
+
vnPostRegion
|
261
|
+
inetId
|
262
|
+
lastUpdatedStamp
|
263
|
+
lastUpdatedTxStamp
|
264
|
+
createdStamp
|
265
|
+
createdTxStamp
|
266
|
+
}
|
267
|
+
}
|
268
|
+
`;
|
269
|
+
exports.GET_WARDS_BY_PROVINCE_ID = (0, graphql_tag_1.gql) `
|
270
|
+
query getWardsByProvinceId($provinceId: String!) {
|
271
|
+
getWardsByProvinceId(provinceId: $provinceId) {
|
251
272
|
geoId
|
252
273
|
geoTypeId
|
253
274
|
geoName
|
@@ -37,8 +37,8 @@ export declare class AuthService extends Service {
|
|
37
37
|
getUserLoginByUserLoginId(userLoginId: string): Promise<any>;
|
38
38
|
checkUsernameExisted(username: string): Promise<any>;
|
39
39
|
getUserLoginsByPartyId(partyId: string): Promise<any>;
|
40
|
-
sendOTP(phone: string
|
41
|
-
validateOTP(otpCode: string, phone: string
|
40
|
+
sendOTP(phone: string): Promise<any>;
|
41
|
+
validateOTP(otpCode: string, phone: string): Promise<any>;
|
42
42
|
createUserLogin(userLoginId: string): Promise<any>;
|
43
43
|
createUserDetailWithoutUserLogin(name: string, phone: string, email: string): Promise<any>;
|
44
44
|
getPhoneByPartyId(partyId: string): Promise<any>;
|
@@ -271,13 +271,12 @@ class AuthService extends serviceSDK_1.Service {
|
|
271
271
|
}
|
272
272
|
});
|
273
273
|
}
|
274
|
-
sendOTP(phone
|
274
|
+
sendOTP(phone) {
|
275
275
|
return __awaiter(this, void 0, void 0, function* () {
|
276
276
|
const mutation = mutations_1.SEND_OTP;
|
277
277
|
const variables = {
|
278
278
|
orgId: this.orgId,
|
279
279
|
phone,
|
280
|
-
channelType
|
281
280
|
};
|
282
281
|
try {
|
283
282
|
const response = yield this.graphqlMutation(mutation, variables);
|
@@ -289,13 +288,12 @@ class AuthService extends serviceSDK_1.Service {
|
|
289
288
|
}
|
290
289
|
});
|
291
290
|
}
|
292
|
-
validateOTP(otpCode, phone
|
291
|
+
validateOTP(otpCode, phone) {
|
293
292
|
return __awaiter(this, void 0, void 0, function* () {
|
294
293
|
const mutation = mutations_1.VALIDATE_OTP;
|
295
294
|
const variables = {
|
296
295
|
otpCode,
|
297
296
|
phone,
|
298
|
-
channelType
|
299
297
|
};
|
300
298
|
try {
|
301
299
|
const response = yield this.graphqlMutation(mutation, variables);
|
@@ -26,8 +26,6 @@ export declare class CloudService extends Service {
|
|
26
26
|
getProductsOfService(serviceId: string): Promise<any>;
|
27
27
|
getIpsOfService(serviceId: string): Promise<any>;
|
28
28
|
getServicesByOrderId(orderId: string): Promise<any>;
|
29
|
-
checkDomainName(domainName: string): Promise<any>;
|
30
|
-
checkListDomainName(domainNames: [string]): Promise<any>;
|
31
29
|
checkDomainNameAvailable(domainName: string): Promise<any>;
|
32
30
|
checkDomainNameAvailableVnnic(domainNames: [string]): Promise<any>;
|
33
31
|
getServiceTypeList(): Promise<any>;
|
@@ -35,8 +33,12 @@ export declare class CloudService extends Service {
|
|
35
33
|
getDomainContacts(serviceId: string): Promise<any>;
|
36
34
|
getOwnersByCustomerId(userId: string): Promise<any>;
|
37
35
|
getContactsByOwnerId(ownerId: string): Promise<any>;
|
38
|
-
getDomainInfo(domainName: string): Promise<any>;
|
39
36
|
getWhoisDomainInfo(domainName: string): Promise<any>;
|
40
37
|
getDomainSupplier(serviceId: string): Promise<any>;
|
41
38
|
checkDomainExist(domainName: string): Promise<any>;
|
39
|
+
getOrderChangeResourceTerm(serviceId: string, createdBy: string): Promise<any>;
|
40
|
+
searchActions(parameter: any): Promise<any>;
|
41
|
+
createActionChangeIpOfService(action: any, byUser: string): Promise<any>;
|
42
|
+
updateActionStatus(actionId: string, status: string, byUser: string): Promise<any>;
|
43
|
+
updateActionCustomAttribute(actionId: string, attrName: string, attrValue: string, byUser: string): Promise<any>;
|
42
44
|
}
|
@@ -295,7 +295,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
295
295
|
}
|
296
296
|
});
|
297
297
|
}
|
298
|
-
|
298
|
+
checkDomainNameAvailable(domainName) {
|
299
299
|
return __awaiter(this, void 0, void 0, function* () {
|
300
300
|
const mutation = mutations_1.CHECK_DOMAIN_NAME;
|
301
301
|
const variables = {
|
@@ -311,7 +311,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
311
311
|
}
|
312
312
|
});
|
313
313
|
}
|
314
|
-
|
314
|
+
checkDomainNameAvailableVnnic(domainNames) {
|
315
315
|
return __awaiter(this, void 0, void 0, function* () {
|
316
316
|
const mutation = mutations_1.CHECK_LIST_DOMAIN_NAME;
|
317
317
|
const variables = {
|
@@ -327,38 +327,32 @@ class CloudService extends serviceSDK_1.Service {
|
|
327
327
|
}
|
328
328
|
});
|
329
329
|
}
|
330
|
-
checkDomainNameAvailable(domainName) {
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
catch (error) {
|
357
|
-
console.log(`Error in checkDomainNameAvailableVnnic: ${error}`);
|
358
|
-
throw error;
|
359
|
-
}
|
360
|
-
});
|
361
|
-
}
|
330
|
+
// async checkDomainNameAvailable(domainName: string) {
|
331
|
+
// const query = CHECK_DOMAIN_NAME_AVAILABLE;
|
332
|
+
// const variables = {
|
333
|
+
// domainName,
|
334
|
+
// };
|
335
|
+
// try {
|
336
|
+
// const response = await this.graphqlQueryV2(query, variables);
|
337
|
+
// return response.checkDomainNameAvailable;
|
338
|
+
// } catch (error) {
|
339
|
+
// console.log(`Error in checkDomainNameAvailable: ${error}`);
|
340
|
+
// throw error;
|
341
|
+
// }
|
342
|
+
// }
|
343
|
+
// async checkDomainNameAvailableVnnic(domainNames: [string]) {
|
344
|
+
// const query = CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC;
|
345
|
+
// const variables = {
|
346
|
+
// domainNames,
|
347
|
+
// };
|
348
|
+
// try {
|
349
|
+
// const response = await this.graphqlQueryV2(query, variables);
|
350
|
+
// return response.checkDomainNameAvailableVnnic;
|
351
|
+
// } catch (error) {
|
352
|
+
// console.log(`Error in checkDomainNameAvailableVnnic: ${error}`);
|
353
|
+
// throw error;
|
354
|
+
// }
|
355
|
+
// }
|
362
356
|
getServiceTypeList() {
|
363
357
|
return __awaiter(this, void 0, void 0, function* () {
|
364
358
|
const query = queries_1.GET_SERVICE_TYPE_LIST;
|
@@ -429,7 +423,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
429
423
|
}
|
430
424
|
});
|
431
425
|
}
|
432
|
-
|
426
|
+
getWhoisDomainInfo(domainName) {
|
433
427
|
return __awaiter(this, void 0, void 0, function* () {
|
434
428
|
const mutation = mutations_1.GET_DOMAIN_INFO;
|
435
429
|
const variables = { domainName };
|
@@ -443,20 +437,17 @@ class CloudService extends serviceSDK_1.Service {
|
|
443
437
|
}
|
444
438
|
});
|
445
439
|
}
|
446
|
-
getWhoisDomainInfo(domainName) {
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
}
|
458
|
-
});
|
459
|
-
}
|
440
|
+
// async getWhoisDomainInfo(domainName: string) {
|
441
|
+
// const query = GET_WHOIS_DOMAIN_INFO;
|
442
|
+
// const variables = { domainName };
|
443
|
+
// try {
|
444
|
+
// const response = await this.graphqlQueryV2(query, variables);
|
445
|
+
// return response.getWhoisDomainInfo;
|
446
|
+
// } catch (error) {
|
447
|
+
// console.log(`Error in getWhoisDomainInfo: ${error}`);
|
448
|
+
// throw error;
|
449
|
+
// }
|
450
|
+
// }
|
460
451
|
getDomainSupplier(serviceId) {
|
461
452
|
return __awaiter(this, void 0, void 0, function* () {
|
462
453
|
const query = queries_1.GET_DOMAIN_SUPPLIER;
|
@@ -485,5 +476,94 @@ class CloudService extends serviceSDK_1.Service {
|
|
485
476
|
}
|
486
477
|
});
|
487
478
|
}
|
479
|
+
getOrderChangeResourceTerm(serviceId, createdBy) {
|
480
|
+
return __awaiter(this, void 0, void 0, function* () {
|
481
|
+
const mutation = mutations_1.GET_ORDER_CHANGE_RESOURCE_TERM;
|
482
|
+
const variables = {
|
483
|
+
serviceId,
|
484
|
+
storeId: this.storeId,
|
485
|
+
createdBy,
|
486
|
+
partnerId: this.orgId,
|
487
|
+
};
|
488
|
+
try {
|
489
|
+
const response = yield this.graphqlMutationV2(mutation, variables);
|
490
|
+
return response.getOrderChangeResourceTerm;
|
491
|
+
}
|
492
|
+
catch (error) {
|
493
|
+
console.log(`Error in getOrderChangeResourceTerm: ${error}`);
|
494
|
+
throw error;
|
495
|
+
}
|
496
|
+
});
|
497
|
+
}
|
498
|
+
searchActions(parameter) {
|
499
|
+
return __awaiter(this, void 0, void 0, function* () {
|
500
|
+
const query = queries_1.SEARCH_ACTIONS;
|
501
|
+
const variables = {
|
502
|
+
parameter: Object.assign(Object.assign({}, parameter), { partyId: this.orgId }),
|
503
|
+
};
|
504
|
+
try {
|
505
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
506
|
+
return response.searchActions;
|
507
|
+
}
|
508
|
+
catch (error) {
|
509
|
+
console.log(`Error in searchActions: ${error}`);
|
510
|
+
throw error;
|
511
|
+
}
|
512
|
+
});
|
513
|
+
}
|
514
|
+
createActionChangeIpOfService(action, byUser) {
|
515
|
+
return __awaiter(this, void 0, void 0, function* () {
|
516
|
+
const mutation = mutations_1.CREATE_ACTION_CHANGE_IP_OF_SERVICE;
|
517
|
+
const variables = {
|
518
|
+
action: Object.assign(Object.assign({}, action), { partyId: this.orgId }),
|
519
|
+
byUser,
|
520
|
+
};
|
521
|
+
try {
|
522
|
+
const response = yield this.graphqlMutationV2(mutation, variables);
|
523
|
+
return response.createActionChangeIpOfService;
|
524
|
+
}
|
525
|
+
catch (error) {
|
526
|
+
console.log(`Error in createActionChangeIpOfService: ${error}`);
|
527
|
+
throw error;
|
528
|
+
}
|
529
|
+
});
|
530
|
+
}
|
531
|
+
updateActionStatus(actionId, status, byUser) {
|
532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
533
|
+
const mutation = mutations_1.UPDATE_ACTION_STATUS;
|
534
|
+
const variables = {
|
535
|
+
actionId,
|
536
|
+
status,
|
537
|
+
byUser,
|
538
|
+
};
|
539
|
+
try {
|
540
|
+
const response = yield this.graphqlMutationV2(mutation, variables);
|
541
|
+
return response.updateActionStatus;
|
542
|
+
}
|
543
|
+
catch (error) {
|
544
|
+
console.log(`Error in updateActionStatus : ${error}`);
|
545
|
+
throw error;
|
546
|
+
}
|
547
|
+
});
|
548
|
+
}
|
549
|
+
updateActionCustomAttribute(actionId, attrName, attrValue, byUser) {
|
550
|
+
return __awaiter(this, void 0, void 0, function* () {
|
551
|
+
const mutation = mutations_1.UPDATE_ACTION_CUSTOM_ATTRIBUTE;
|
552
|
+
const variables = {
|
553
|
+
actionId,
|
554
|
+
attrName,
|
555
|
+
attrValue,
|
556
|
+
byUser,
|
557
|
+
};
|
558
|
+
try {
|
559
|
+
const response = yield this.graphqlMutationV2(mutation, variables);
|
560
|
+
return response.updateActionCustomAttribute;
|
561
|
+
}
|
562
|
+
catch (error) {
|
563
|
+
console.log(`Error in updateActionCustomAttribute : ${error}`);
|
564
|
+
throw error;
|
565
|
+
}
|
566
|
+
});
|
567
|
+
}
|
488
568
|
}
|
489
569
|
exports.CloudService = CloudService;
|
@@ -57,4 +57,7 @@ export declare class ComputingService extends Service {
|
|
57
57
|
computingWaitingRevoke(computingId: string, userId: string, fields: string[]): Promise<any>;
|
58
58
|
restoreComputingWaitingRevoke(computingId: string, userId: string, fields: string[]): Promise<any>;
|
59
59
|
deleteComputing(computingId: string, userId: string, fields: string[]): Promise<any>;
|
60
|
+
getStorageMappingForDC(resourcePoolId: string): Promise<any>;
|
61
|
+
updateCPU(computingId: string, socket: number, corePerSocket: number, updateBy: string): Promise<any>;
|
62
|
+
updateRAM(computingId: string, size: number, unit: string, updateBy: string): Promise<any>;
|
60
63
|
}
|
@@ -836,5 +836,59 @@ class ComputingService extends serviceSDK_1.Service {
|
|
836
836
|
}
|
837
837
|
});
|
838
838
|
}
|
839
|
+
getStorageMappingForDC(resourcePoolId) {
|
840
|
+
return __awaiter(this, void 0, void 0, function* () {
|
841
|
+
const query = queries_1.GET_STOREGE_MAPPING_FOR_DC;
|
842
|
+
const variables = {
|
843
|
+
resourcePoolId,
|
844
|
+
};
|
845
|
+
try {
|
846
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
847
|
+
return response.getStorageMappingForDC;
|
848
|
+
}
|
849
|
+
catch (error) {
|
850
|
+
console.log(`Error fetching get getStorageMappingForDC method: ${error}`);
|
851
|
+
throw error;
|
852
|
+
}
|
853
|
+
});
|
854
|
+
}
|
855
|
+
updateCPU(computingId, socket, corePerSocket, updateBy) {
|
856
|
+
return __awaiter(this, void 0, void 0, function* () {
|
857
|
+
const mutation = mutations_1.UPDATE_CPU;
|
858
|
+
const variables = {
|
859
|
+
computingId,
|
860
|
+
socket,
|
861
|
+
corePerSocket,
|
862
|
+
updateBy,
|
863
|
+
};
|
864
|
+
try {
|
865
|
+
const response = yield this.graphqlMutationV2(mutation, variables);
|
866
|
+
return response.updateCPU;
|
867
|
+
}
|
868
|
+
catch (error) {
|
869
|
+
console.log(`Error fetching get updateCPU method: ${error}`);
|
870
|
+
throw error;
|
871
|
+
}
|
872
|
+
});
|
873
|
+
}
|
874
|
+
updateRAM(computingId, size, unit, updateBy) {
|
875
|
+
return __awaiter(this, void 0, void 0, function* () {
|
876
|
+
const mutation = mutations_1.UPDATE_RAM;
|
877
|
+
const variables = {
|
878
|
+
computingId,
|
879
|
+
size,
|
880
|
+
unit,
|
881
|
+
updateBy,
|
882
|
+
};
|
883
|
+
try {
|
884
|
+
const response = yield this.graphqlMutationV2(mutation, variables);
|
885
|
+
return response.updateRAM;
|
886
|
+
}
|
887
|
+
catch (error) {
|
888
|
+
console.log(`Error fetching get updateRAM method: ${error}`);
|
889
|
+
throw error;
|
890
|
+
}
|
891
|
+
});
|
892
|
+
}
|
839
893
|
}
|
840
894
|
exports.ComputingService = ComputingService;
|
@@ -19,9 +19,10 @@ export declare class UserService extends Service {
|
|
19
19
|
getEmployeesByStoreChannelId(): Promise<any>;
|
20
20
|
getCompanyByContactInfoId(contactId: string): Promise<any>;
|
21
21
|
getContactInfosByCompanyId(companyId: string): Promise<any>;
|
22
|
-
getProvinces(): Promise<any>;
|
23
|
-
getDistricts(provinceId: string): Promise<any>;
|
24
|
-
getWards(districtId: string): Promise<any>;
|
22
|
+
getProvinces(version: string): Promise<any>;
|
23
|
+
getDistricts(provinceId: string, version: string): Promise<any>;
|
24
|
+
getWards(districtId: string, version: string): Promise<any>;
|
25
|
+
getWardsByProvinceId(provinceId: string): Promise<any>;
|
25
26
|
getVatInfoByOwnerPartyId(ownerPartyId: string): Promise<any>;
|
26
27
|
createVatInfo(createVatInfoRequest: any, createdBy: string): Promise<any>;
|
27
28
|
updateVatInfo(id: string, updateVatInfoRequest: any, updateBy: string): Promise<any>;
|
@@ -301,10 +301,12 @@ class UserService extends serviceSDK_1.Service {
|
|
301
301
|
}
|
302
302
|
});
|
303
303
|
}
|
304
|
-
getProvinces() {
|
304
|
+
getProvinces(version) {
|
305
305
|
return __awaiter(this, void 0, void 0, function* () {
|
306
306
|
const query = queries_1.GET_PROVINCES;
|
307
|
-
const variables = {
|
307
|
+
const variables = {
|
308
|
+
version
|
309
|
+
};
|
308
310
|
try {
|
309
311
|
const response = yield this.graphqlQueryV2(query, variables);
|
310
312
|
return response.getProvinces;
|
@@ -315,7 +317,7 @@ class UserService extends serviceSDK_1.Service {
|
|
315
317
|
}
|
316
318
|
});
|
317
319
|
}
|
318
|
-
getDistricts(provinceId) {
|
320
|
+
getDistricts(provinceId, version) {
|
319
321
|
return __awaiter(this, void 0, void 0, function* () {
|
320
322
|
const query = queries_1.GET_DISTRICTS;
|
321
323
|
const variables = {
|
@@ -331,11 +333,12 @@ class UserService extends serviceSDK_1.Service {
|
|
331
333
|
}
|
332
334
|
});
|
333
335
|
}
|
334
|
-
getWards(districtId) {
|
336
|
+
getWards(districtId, version) {
|
335
337
|
return __awaiter(this, void 0, void 0, function* () {
|
336
338
|
const query = queries_1.GET_WARDS;
|
337
339
|
const variables = {
|
338
340
|
districtId,
|
341
|
+
version
|
339
342
|
};
|
340
343
|
try {
|
341
344
|
const response = yield this.graphqlQueryV2(query, variables);
|
@@ -347,6 +350,22 @@ class UserService extends serviceSDK_1.Service {
|
|
347
350
|
}
|
348
351
|
});
|
349
352
|
}
|
353
|
+
getWardsByProvinceId(provinceId) {
|
354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
355
|
+
const query = queries_1.GET_WARDS_BY_PROVINCE_ID;
|
356
|
+
const variables = {
|
357
|
+
provinceId
|
358
|
+
};
|
359
|
+
try {
|
360
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
361
|
+
return response.getWardsByProvinceId;
|
362
|
+
}
|
363
|
+
catch (error) {
|
364
|
+
console.log(`Error in getWards: ${error}`);
|
365
|
+
throw error;
|
366
|
+
}
|
367
|
+
});
|
368
|
+
}
|
350
369
|
getVatInfoByOwnerPartyId(ownerPartyId) {
|
351
370
|
return __awaiter(this, void 0, void 0, function* () {
|
352
371
|
const query = queries_1.GET_VAT_INFOR_BY_OWNER_PARTY_ID;
|