@longvansoftware/service-js-client 1.12.5 → 1.12.8
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 +0 -1
- package/dist/src/graphql/cloud/mutations.js +1 -16
- package/dist/src/graphql/resource_permission/queries.js +0 -1
- package/dist/src/lib/auth/index.d.ts +2 -2
- package/dist/src/lib/auth/index.js +4 -2
- package/dist/src/lib/cloud/index.d.ts +3 -1
- package/dist/src/lib/cloud/index.js +49 -59
- 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!, $channelType: String) {
|
194
|
+
sendOTP(orgId: $orgId, phone: $phone, channelType: $channelType) {
|
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!, $channelType: String) {
|
204
|
+
validateOTP(otpCode: $otpCode, phone: $phone, channelType: $channelType)
|
205
205
|
}
|
206
206
|
`;
|
207
207
|
exports.CREATE_USER_LOGIN = (0, graphql_tag_1.gql) `
|
@@ -10,4 +10,3 @@ 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;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
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;
|
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,18 +181,3 @@ 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
|
-
`;
|
@@ -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): Promise<any>;
|
41
|
-
validateOTP(otpCode: string, phone: string): Promise<any>;
|
40
|
+
sendOTP(phone: string, channelType: string | null): Promise<any>;
|
41
|
+
validateOTP(otpCode: string, phone: string, channelType: string | null): 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,12 +271,13 @@ class AuthService extends serviceSDK_1.Service {
|
|
271
271
|
}
|
272
272
|
});
|
273
273
|
}
|
274
|
-
sendOTP(phone) {
|
274
|
+
sendOTP(phone, channelType) {
|
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
|
280
281
|
};
|
281
282
|
try {
|
282
283
|
const response = yield this.graphqlMutation(mutation, variables);
|
@@ -288,12 +289,13 @@ class AuthService extends serviceSDK_1.Service {
|
|
288
289
|
}
|
289
290
|
});
|
290
291
|
}
|
291
|
-
validateOTP(otpCode, phone) {
|
292
|
+
validateOTP(otpCode, phone, channelType) {
|
292
293
|
return __awaiter(this, void 0, void 0, function* () {
|
293
294
|
const mutation = mutations_1.VALIDATE_OTP;
|
294
295
|
const variables = {
|
295
296
|
otpCode,
|
296
297
|
phone,
|
298
|
+
channelType
|
297
299
|
};
|
298
300
|
try {
|
299
301
|
const response = yield this.graphqlMutation(mutation, variables);
|
@@ -26,6 +26,8 @@ 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>;
|
29
31
|
checkDomainNameAvailable(domainName: string): Promise<any>;
|
30
32
|
checkDomainNameAvailableVnnic(domainNames: [string]): Promise<any>;
|
31
33
|
getServiceTypeList(): Promise<any>;
|
@@ -33,8 +35,8 @@ export declare class CloudService extends Service {
|
|
33
35
|
getDomainContacts(serviceId: string): Promise<any>;
|
34
36
|
getOwnersByCustomerId(userId: string): Promise<any>;
|
35
37
|
getContactsByOwnerId(ownerId: string): Promise<any>;
|
38
|
+
getDomainInfo(domainName: string): Promise<any>;
|
36
39
|
getWhoisDomainInfo(domainName: string): Promise<any>;
|
37
40
|
getDomainSupplier(serviceId: string): Promise<any>;
|
38
41
|
checkDomainExist(domainName: string): Promise<any>;
|
39
|
-
getOrderChangeResourceTerm(serviceId: string, createdBy: string): Promise<any>;
|
40
42
|
}
|
@@ -295,7 +295,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
295
295
|
}
|
296
296
|
});
|
297
297
|
}
|
298
|
-
|
298
|
+
checkDomainName(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
|
+
checkListDomainName(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,32 +327,38 @@ class CloudService extends serviceSDK_1.Service {
|
|
327
327
|
}
|
328
328
|
});
|
329
329
|
}
|
330
|
-
|
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
|
-
|
330
|
+
checkDomainNameAvailable(domainName) {
|
331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
332
|
+
const query = queries_1.CHECK_DOMAIN_NAME_AVAILABLE;
|
333
|
+
const variables = {
|
334
|
+
domainName,
|
335
|
+
};
|
336
|
+
try {
|
337
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
338
|
+
return response.checkDomainNameAvailable;
|
339
|
+
}
|
340
|
+
catch (error) {
|
341
|
+
console.log(`Error in checkDomainNameAvailable: ${error}`);
|
342
|
+
throw error;
|
343
|
+
}
|
344
|
+
});
|
345
|
+
}
|
346
|
+
checkDomainNameAvailableVnnic(domainNames) {
|
347
|
+
return __awaiter(this, void 0, void 0, function* () {
|
348
|
+
const query = queries_1.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC;
|
349
|
+
const variables = {
|
350
|
+
domainNames,
|
351
|
+
};
|
352
|
+
try {
|
353
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
354
|
+
return response.checkDomainNameAvailableVnnic;
|
355
|
+
}
|
356
|
+
catch (error) {
|
357
|
+
console.log(`Error in checkDomainNameAvailableVnnic: ${error}`);
|
358
|
+
throw error;
|
359
|
+
}
|
360
|
+
});
|
361
|
+
}
|
356
362
|
getServiceTypeList() {
|
357
363
|
return __awaiter(this, void 0, void 0, function* () {
|
358
364
|
const query = queries_1.GET_SERVICE_TYPE_LIST;
|
@@ -423,7 +429,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
423
429
|
}
|
424
430
|
});
|
425
431
|
}
|
426
|
-
|
432
|
+
getDomainInfo(domainName) {
|
427
433
|
return __awaiter(this, void 0, void 0, function* () {
|
428
434
|
const mutation = mutations_1.GET_DOMAIN_INFO;
|
429
435
|
const variables = { domainName };
|
@@ -437,17 +443,20 @@ class CloudService extends serviceSDK_1.Service {
|
|
437
443
|
}
|
438
444
|
});
|
439
445
|
}
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
446
|
+
getWhoisDomainInfo(domainName) {
|
447
|
+
return __awaiter(this, void 0, void 0, function* () {
|
448
|
+
const query = queries_1.GET_WHOIS_DOMAIN_INFO;
|
449
|
+
const variables = { domainName };
|
450
|
+
try {
|
451
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
452
|
+
return response.getWhoisDomainInfo;
|
453
|
+
}
|
454
|
+
catch (error) {
|
455
|
+
console.log(`Error in getWhoisDomainInfo: ${error}`);
|
456
|
+
throw error;
|
457
|
+
}
|
458
|
+
});
|
459
|
+
}
|
451
460
|
getDomainSupplier(serviceId) {
|
452
461
|
return __awaiter(this, void 0, void 0, function* () {
|
453
462
|
const query = queries_1.GET_DOMAIN_SUPPLIER;
|
@@ -476,24 +485,5 @@ class CloudService extends serviceSDK_1.Service {
|
|
476
485
|
}
|
477
486
|
});
|
478
487
|
}
|
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
488
|
}
|
499
489
|
exports.CloudService = CloudService;
|