@longvansoftware/service-js-client 1.10.7 → 1.10.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/config/config.d.ts
CHANGED
@@ -13,7 +13,6 @@ export declare const environmentEndpoints: {
|
|
13
13
|
dns: string;
|
14
14
|
crm_camping: string;
|
15
15
|
order_graphQL: string;
|
16
|
-
order_cloud_rest: string;
|
17
16
|
paymentLV: string;
|
18
17
|
resource_permission: string;
|
19
18
|
cloud_rest: string;
|
@@ -32,7 +31,6 @@ export declare const environmentEndpoints: {
|
|
32
31
|
dns: string;
|
33
32
|
crm_camping: string;
|
34
33
|
order_graphQL: string;
|
35
|
-
order_cloud_rest: string;
|
36
34
|
paymentLV: string;
|
37
35
|
resource_permission: string;
|
38
36
|
cloud_rest: string;
|
package/dist/config/config.js
CHANGED
@@ -16,10 +16,9 @@ exports.environmentEndpoints = {
|
|
16
16
|
dns: "https://admin-dev.longvan.net/powerdns/dns",
|
17
17
|
crm_camping: "https://crm.dev.longvan.vn/campaign-gateway/graphql",
|
18
18
|
order_graphQL: "https://api-gateway.dev.longvan.vn/order-cloud-service/graphql",
|
19
|
-
order_cloud_rest: "https://api-gateway.dev.longvan.vn/order-cloud-service",
|
20
19
|
paymentLV: "https://payment.dev.longvan.vn/graphql",
|
21
20
|
resource_permission: "https://api-gateway.dev.longvan.vn/resource-permission-api/graphql",
|
22
|
-
cloud_rest: "https://api-gateway.dev.longvan.vn/cloud-service-api/v1"
|
21
|
+
cloud_rest: "https://api-gateway.dev.longvan.vn/cloud-service-api/v1"
|
23
22
|
},
|
24
23
|
live: {
|
25
24
|
product: "https://product-service.longvan.vn/product-service/graphql",
|
@@ -35,9 +34,8 @@ exports.environmentEndpoints = {
|
|
35
34
|
dns: "https://admin.longvan.net/powerdns/dns",
|
36
35
|
crm_camping: "https://crm.longvan.vn/campaign-gateway/graphql",
|
37
36
|
order_graphQL: "https://api-gateway.longvan.vn/order-cloud-service/graphql",
|
38
|
-
order_cloud_rest: "https://api-gateway.longvan.vn/order-cloud-service",
|
39
37
|
paymentLV: "https://payment.longvan.vn/graphql",
|
40
38
|
resource_permission: "https://api-gateway.longvan.vn/resource-permission-api/graphql",
|
41
|
-
cloud_rest: "https://api-gateway.longvan.vn/cloud-service-api/v1"
|
39
|
+
cloud_rest: "https://api-gateway.longvan.vn/cloud-service-api/v1"
|
42
40
|
},
|
43
41
|
};
|
@@ -439,46 +439,11 @@ exports.GET_TEMPLATE = (0, graphql_tag_1.gql) `
|
|
439
439
|
getTemplates {
|
440
440
|
id
|
441
441
|
name
|
442
|
+
status
|
442
443
|
osType
|
443
444
|
username
|
444
|
-
|
445
|
-
|
446
|
-
size
|
447
|
-
used
|
448
|
-
unit
|
449
|
-
}
|
450
|
-
ram {
|
451
|
-
size
|
452
|
-
used
|
453
|
-
unit
|
454
|
-
}
|
455
|
-
disk {
|
456
|
-
index
|
457
|
-
storageId
|
458
|
-
size
|
459
|
-
used
|
460
|
-
unit
|
461
|
-
}
|
462
|
-
}
|
463
|
-
resourceMinimum {
|
464
|
-
cpu {
|
465
|
-
size
|
466
|
-
used
|
467
|
-
unit
|
468
|
-
}
|
469
|
-
ram {
|
470
|
-
size
|
471
|
-
used
|
472
|
-
unit
|
473
|
-
}
|
474
|
-
disk {
|
475
|
-
index
|
476
|
-
storageId
|
477
|
-
size
|
478
|
-
used
|
479
|
-
unit
|
480
|
-
}
|
481
|
-
}
|
445
|
+
createdStamp
|
446
|
+
updatedStamp
|
482
447
|
}
|
483
448
|
}
|
484
449
|
`;
|
package/dist/src/lib/SDK.d.ts
CHANGED
@@ -14,7 +14,6 @@ import { OrderGraphQLService } from "./orderGraphQL";
|
|
14
14
|
import { PaymentLVService } from "./paymentLV";
|
15
15
|
import { ResourcePermissionService } from "./resource_permission";
|
16
16
|
import { CloudRestService } from "./cloud_rest";
|
17
|
-
import { OrderCloudRestService } from "./order_cloud_rest";
|
18
17
|
export interface Endpoints {
|
19
18
|
product: string;
|
20
19
|
crm: string;
|
@@ -32,7 +31,6 @@ export interface Endpoints {
|
|
32
31
|
paymentLV: string;
|
33
32
|
resource_permission: string;
|
34
33
|
cloud_rest: string;
|
35
|
-
order_cloud_rest: string;
|
36
34
|
}
|
37
35
|
export declare class SDK {
|
38
36
|
orgId: string;
|
@@ -55,7 +53,6 @@ export declare class SDK {
|
|
55
53
|
paymentLV: PaymentLVService;
|
56
54
|
resource_permission: ResourcePermissionService;
|
57
55
|
cloud_rest: CloudRestService;
|
58
|
-
order_cloud_rest: OrderCloudRestService;
|
59
56
|
token: string | null;
|
60
57
|
private endpoints;
|
61
58
|
constructor(orgId: string, storeId: string, storefrontAccessToken: string, environment: string);
|
package/dist/src/lib/SDK.js
CHANGED
@@ -20,7 +20,6 @@ const orderGraphQL_1 = require("./orderGraphQL");
|
|
20
20
|
const paymentLV_1 = require("./paymentLV");
|
21
21
|
const resource_permission_1 = require("./resource_permission");
|
22
22
|
const cloud_rest_1 = require("./cloud_rest");
|
23
|
-
const order_cloud_rest_1 = require("./order_cloud_rest");
|
24
23
|
class SDK {
|
25
24
|
constructor(orgId, storeId, storefrontAccessToken, environment) {
|
26
25
|
this.orgId = orgId;
|
@@ -51,7 +50,6 @@ class SDK {
|
|
51
50
|
this.paymentLV = new paymentLV_1.PaymentLVService(this.endpoints.paymentLV, orgId, storeId);
|
52
51
|
this.resource_permission = new resource_permission_1.ResourcePermissionService(this.endpoints.resource_permission, orgId, storeId);
|
53
52
|
this.cloud_rest = new cloud_rest_1.CloudRestService(this.endpoints.cloud_rest, orgId, storeId);
|
54
|
-
this.order_cloud_rest = new order_cloud_rest_1.OrderCloudRestService(this.endpoints.order_cloud_rest, orgId, storeId);
|
55
53
|
// Initialize other services here
|
56
54
|
}
|
57
55
|
setToken(token) {
|
@@ -73,7 +71,6 @@ class SDK {
|
|
73
71
|
this.paymentLV.setToken(token);
|
74
72
|
this.resource_permission.setToken(token);
|
75
73
|
this.cloud_rest.setToken(token);
|
76
|
-
this.order_cloud_rest.setToken(token);
|
77
74
|
// Set token for other services here
|
78
75
|
}
|
79
76
|
// các module export từ serviceSDK.ts set storeId vào serviceSDK.ts
|
@@ -97,7 +94,6 @@ class SDK {
|
|
97
94
|
this.paymentLV = new paymentLV_1.PaymentLVService(this.endpoints.paymentLV, this.orgId, storeId);
|
98
95
|
this.resource_permission = new resource_permission_1.ResourcePermissionService(this.endpoints.resource_permission, this.orgId, storeId);
|
99
96
|
this.cloud_rest = new cloud_rest_1.CloudRestService(this.endpoints.cloud_rest, this.orgId, storeId);
|
100
|
-
this.order_cloud_rest = new order_cloud_rest_1.OrderCloudRestService(this.endpoints.order_cloud_rest, this.orgId, storeId);
|
101
97
|
}
|
102
98
|
}
|
103
99
|
exports.SDK = SDK;
|
@@ -231,7 +231,7 @@ class AuthService extends serviceSDK_1.Service {
|
|
231
231
|
partyId,
|
232
232
|
};
|
233
233
|
try {
|
234
|
-
const response = yield this.
|
234
|
+
const response = yield this.graphqlQuery(query, variables);
|
235
235
|
return response.getUserLoginsByPartyId;
|
236
236
|
}
|
237
237
|
catch (error) {
|