@longvansoftware/service-js-client 2.8.9 → 2.9.1
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.js +1 -1
- package/dist/src/graphql/cashbook/mutation.js +4 -0
- package/dist/src/graphql/cashbook/query.d.ts +2 -0
- package/dist/src/graphql/cashbook/query.js +17 -1
- package/dist/src/graphql/cloud/mutations.d.ts +2 -0
- package/dist/src/graphql/cloud/mutations.js +53 -186
- package/dist/src/graphql/computing/queries.d.ts +1 -0
- package/dist/src/graphql/computing/queries.js +6 -1
- package/dist/src/graphql/crm/queries.d.ts +1 -0
- package/dist/src/graphql/crm/queries.js +20 -1
- package/dist/src/graphql/paymentLV/mutations.d.ts +4 -0
- package/dist/src/graphql/paymentLV/mutations.js +41 -13
- package/dist/src/lib/cashbook/index.d.ts +4 -0
- package/dist/src/lib/cashbook/index.js +60 -2
- package/dist/src/lib/cloud/index.d.ts +2 -0
- package/dist/src/lib/cloud/index.js +65 -37
- package/dist/src/lib/computing/index.d.ts +1 -0
- package/dist/src/lib/computing/index.js +16 -0
- package/dist/src/lib/crm/index.d.ts +1 -0
- package/dist/src/lib/crm/index.js +17 -0
- package/dist/src/lib/paymentLV/index.d.ts +4 -0
- package/dist/src/lib/paymentLV/index.js +55 -7
- package/package.json +1 -1
package/dist/config/config.js
CHANGED
|
@@ -17,7 +17,7 @@ exports.environmentEndpoints = {
|
|
|
17
17
|
crm_camping: "https://api-gateway.longvan.dev/campaign-gateway/graphql",
|
|
18
18
|
order_graphQL: "https://api-gateway.longvan.dev/order-cloud-service/graphql",
|
|
19
19
|
order_cloud_rest: "https://api-gateway.longvan.dev/order-cloud-service",
|
|
20
|
-
paymentLV: "https://api-gateway.longvan.dev/graphql",
|
|
20
|
+
paymentLV: "https://api-gateway.longvan.dev/payment-service/graphql",
|
|
21
21
|
resource_permission: "https://api-gateway.longvan.dev/resource-permission-api/graphql",
|
|
22
22
|
cloud_rest: "https://api-gateway.longvan.dev/cloud-service-api/v1",
|
|
23
23
|
accounting_service: "https://api-gateway.longvan.dev/accounting-service/graphql/",
|
|
@@ -14,6 +14,7 @@ const CREATE_CASH_ACCOUNT_CUSTOMER = (fields = []) => {
|
|
|
14
14
|
$name: String!
|
|
15
15
|
$accountNumber: String!
|
|
16
16
|
$typeCard: CardType!
|
|
17
|
+
$expiryDate: String!
|
|
17
18
|
$partyId: String!
|
|
18
19
|
) {
|
|
19
20
|
createCashAccountCustomer(
|
|
@@ -23,6 +24,7 @@ const CREATE_CASH_ACCOUNT_CUSTOMER = (fields = []) => {
|
|
|
23
24
|
name: $name
|
|
24
25
|
accountNumber: $accountNumber
|
|
25
26
|
typeCard: $typeCard
|
|
27
|
+
expiryDate: $expiryDate
|
|
26
28
|
partyId: $partyId
|
|
27
29
|
}
|
|
28
30
|
) ${(0, helpers_1.hasFields)(fields) ? `{ ${(0, helpers_1.joinField)(fields)} }` : ""}
|
|
@@ -39,6 +41,7 @@ const UPDATE_CASH_ACCOUNT_CUSTOMER = (fields = []) => {
|
|
|
39
41
|
$name: String
|
|
40
42
|
$accountNumber: String
|
|
41
43
|
$typeCard: CardType
|
|
44
|
+
$expiryDate: String
|
|
42
45
|
$isDefault: Boolean
|
|
43
46
|
$partyId: String!
|
|
44
47
|
) {
|
|
@@ -50,6 +53,7 @@ const UPDATE_CASH_ACCOUNT_CUSTOMER = (fields = []) => {
|
|
|
50
53
|
name: $name
|
|
51
54
|
accountNumber: $accountNumber
|
|
52
55
|
typeCard: $typeCard
|
|
56
|
+
expiryDate: $expiryDate
|
|
53
57
|
isDefault: $isDefault
|
|
54
58
|
partyId: $partyId
|
|
55
59
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { DocumentNode } from "graphql";
|
|
2
2
|
export declare const GET_CASH_ACCOUNT_CUSTOMERS: (fields?: string[]) => DocumentNode;
|
|
3
3
|
export declare const GET_BANK_CODES: (fields?: string[]) => DocumentNode;
|
|
4
|
+
export declare const GET_BANK_CODES_FOR_CUSTOMER: (fields?: string[]) => DocumentNode;
|
|
5
|
+
export declare const GET_CART_TYPE: (fields?: string[]) => DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_BANK_CODES = exports.GET_CASH_ACCOUNT_CUSTOMERS = void 0;
|
|
3
|
+
exports.GET_CART_TYPE = exports.GET_BANK_CODES_FOR_CUSTOMER = exports.GET_BANK_CODES = exports.GET_CASH_ACCOUNT_CUSTOMERS = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
const helpers_1 = require("../../utils/helpers");
|
|
6
6
|
const GET_CASH_ACCOUNT_CUSTOMERS = (fields = []) => {
|
|
@@ -25,3 +25,19 @@ const GET_BANK_CODES = (fields = []) => {
|
|
|
25
25
|
`;
|
|
26
26
|
};
|
|
27
27
|
exports.GET_BANK_CODES = GET_BANK_CODES;
|
|
28
|
+
const GET_BANK_CODES_FOR_CUSTOMER = (fields = []) => {
|
|
29
|
+
return (0, graphql_tag_1.gql) `
|
|
30
|
+
query GetBankCodesForCustomer {
|
|
31
|
+
getBankCodesForCustomer ${(0, helpers_1.hasFields)(fields) ? `{ ${(0, helpers_1.joinField)(fields)} }` : ""}
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
};
|
|
35
|
+
exports.GET_BANK_CODES_FOR_CUSTOMER = GET_BANK_CODES_FOR_CUSTOMER;
|
|
36
|
+
const GET_CART_TYPE = (fields = []) => {
|
|
37
|
+
return (0, graphql_tag_1.gql) `
|
|
38
|
+
query GetCardTypes {
|
|
39
|
+
getCardTypes ${(0, helpers_1.hasFields)(fields) ? `{ ${(0, helpers_1.joinField)(fields)} }` : ""}
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
};
|
|
43
|
+
exports.GET_CART_TYPE = GET_CART_TYPE;
|
|
@@ -25,3 +25,5 @@ export declare const CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST: (fie
|
|
|
25
25
|
export declare const REMOVE_RECORD: DocumentNode;
|
|
26
26
|
export declare const UPDATE_RECORD: DocumentNode;
|
|
27
27
|
export declare const SAVE_RECORD: DocumentNode;
|
|
28
|
+
export declare const REGISTER_AUTO_EXTEND_SERVICE: DocumentNode;
|
|
29
|
+
export declare const CANCEL_AUTO_EXTEND_SERVICE: DocumentNode;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SAVE_RECORD = exports.UPDATE_RECORD = exports.REMOVE_RECORD = exports.CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST = exports.CHECK_BUSINESS_BY_TAX_CODE_DYNAMIC = exports.CHECK_ENTERPRISE_BY_TAX_CODE_DYNAMIC = exports.UPDATE_URL_PUBLIC = exports.UPDATE_SERVICE_READY_DEPLOY = exports.UPDATE_SERVICE_NEW = exports.UPDATE_SERVICE_COMPLETED = 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;
|
|
3
|
+
exports.CANCEL_AUTO_EXTEND_SERVICE = exports.REGISTER_AUTO_EXTEND_SERVICE = exports.SAVE_RECORD = exports.UPDATE_RECORD = exports.REMOVE_RECORD = exports.CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST = exports.CHECK_BUSINESS_BY_TAX_CODE_DYNAMIC = exports.CHECK_ENTERPRISE_BY_TAX_CODE_DYNAMIC = exports.UPDATE_URL_PUBLIC = exports.UPDATE_SERVICE_READY_DEPLOY = exports.UPDATE_SERVICE_NEW = exports.UPDATE_SERVICE_COMPLETED = 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
|
-
mutation GetDomainInfo($domainName: String
|
|
7
|
-
getDomainInfo(domainName: $domainName isClearCache: $isClearCache) {
|
|
6
|
+
mutation GetDomainInfo($domainName: String!, $isClearCache: Boolean) {
|
|
7
|
+
getDomainInfo(domainName: $domainName, isClearCache: $isClearCache) {
|
|
8
8
|
dnssec
|
|
9
9
|
domainName
|
|
10
10
|
existed
|
|
@@ -23,8 +23,8 @@ exports.GET_DOMAIN_INFO = (0, graphql_tag_1.gql) `
|
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
25
|
exports.CHECK_LIST_DOMAIN_NAME = (0, graphql_tag_1.gql) `
|
|
26
|
-
mutation CheckListDomainName($domainNames: [String!]
|
|
27
|
-
checkListDomainName(domainNames: $domainNames isClearCache: $isClearCache) {
|
|
26
|
+
mutation CheckListDomainName($domainNames: [String!]!, $isClearCache: Boolean) {
|
|
27
|
+
checkListDomainName(domainNames: $domainNames, isClearCache: $isClearCache) {
|
|
28
28
|
domainName
|
|
29
29
|
isAvailable
|
|
30
30
|
topDomain
|
|
@@ -32,8 +32,8 @@ exports.CHECK_LIST_DOMAIN_NAME = (0, graphql_tag_1.gql) `
|
|
|
32
32
|
}
|
|
33
33
|
`;
|
|
34
34
|
exports.CHECK_DOMAIN_NAME = (0, graphql_tag_1.gql) `
|
|
35
|
-
mutation CheckDomainName($domainName: String
|
|
36
|
-
checkDomainName(domainName: $domainName isClearCache: $isClearCache) {
|
|
35
|
+
mutation CheckDomainName($domainName: String!, $isClearCache: Boolean) {
|
|
36
|
+
checkDomainName(domainName: $domainName, isClearCache: $isClearCache) {
|
|
37
37
|
domainName
|
|
38
38
|
isAvailable
|
|
39
39
|
topDomain
|
|
@@ -42,31 +42,13 @@ exports.CHECK_DOMAIN_NAME = (0, graphql_tag_1.gql) `
|
|
|
42
42
|
}
|
|
43
43
|
`;
|
|
44
44
|
exports.CHANGE_SERVICE_NAME = (0, graphql_tag_1.gql) `
|
|
45
|
-
mutation ChangeServiceName(
|
|
46
|
-
$serviceId:
|
|
47
|
-
$updateBy: String!
|
|
48
|
-
$updateData: String!
|
|
49
|
-
) {
|
|
50
|
-
changeServiceName(
|
|
51
|
-
serviceId: $serviceId
|
|
52
|
-
updateBy: $updateBy
|
|
53
|
-
updateData: $updateData
|
|
54
|
-
)
|
|
45
|
+
mutation ChangeServiceName($serviceId: String!, $updateBy: String!, $updateData: String!) {
|
|
46
|
+
changeServiceName(serviceId: $serviceId, updateBy: $updateBy, updateData: $updateData)
|
|
55
47
|
}
|
|
56
48
|
`;
|
|
57
49
|
exports.CREATE_USER_MAIL_HOSTING = (0, graphql_tag_1.gql) `
|
|
58
|
-
mutation CreateUserMailHosting(
|
|
59
|
-
$serviceId:
|
|
60
|
-
$username: String!
|
|
61
|
-
$password: String!
|
|
62
|
-
$fullName: String!
|
|
63
|
-
) {
|
|
64
|
-
createUserMailHosting(
|
|
65
|
-
serviceId: $serviceId
|
|
66
|
-
username: $username
|
|
67
|
-
password: $password
|
|
68
|
-
fullName: $fullName
|
|
69
|
-
)
|
|
50
|
+
mutation CreateUserMailHosting($serviceId: String!, $username: String!, $password: String!, $fullName: String!) {
|
|
51
|
+
createUserMailHosting(serviceId: $serviceId, username: $username, password: $password, fullName: $fullName)
|
|
70
52
|
}
|
|
71
53
|
`;
|
|
72
54
|
exports.DELETE_USER_MAIL_HOSTING = (0, graphql_tag_1.gql) `
|
|
@@ -75,85 +57,33 @@ exports.DELETE_USER_MAIL_HOSTING = (0, graphql_tag_1.gql) `
|
|
|
75
57
|
}
|
|
76
58
|
`;
|
|
77
59
|
exports.UPDATE_DOMAIN_NAME = (0, graphql_tag_1.gql) `
|
|
78
|
-
mutation UpdateDomainName(
|
|
79
|
-
$serviceId:
|
|
80
|
-
$updateBy: String!
|
|
81
|
-
$updateData: String!
|
|
82
|
-
) {
|
|
83
|
-
updateDomainName(
|
|
84
|
-
serviceId: $serviceId
|
|
85
|
-
updateBy: $updateBy
|
|
86
|
-
updateData: $updateData
|
|
87
|
-
)
|
|
60
|
+
mutation UpdateDomainName($serviceId: String!, $updateBy: String!, $updateData: String!) {
|
|
61
|
+
updateDomainName(serviceId: $serviceId, updateBy: $updateBy, updateData: $updateData)
|
|
88
62
|
}
|
|
89
63
|
`;
|
|
90
64
|
exports.UPDATE_USER_NAME = (0, graphql_tag_1.gql) `
|
|
91
|
-
mutation UpdateUserName(
|
|
92
|
-
$serviceId:
|
|
93
|
-
$updateBy: String!
|
|
94
|
-
$updateData: String!
|
|
95
|
-
) {
|
|
96
|
-
updateUsername(
|
|
97
|
-
serviceId: $serviceId
|
|
98
|
-
updateBy: $updateBy
|
|
99
|
-
updateData: $updateData
|
|
100
|
-
)
|
|
65
|
+
mutation UpdateUserName($serviceId: String!, $updateBy: String!, $updateData: String!) {
|
|
66
|
+
updateUsername(serviceId: $serviceId, updateBy: $updateBy, updateData: $updateData)
|
|
101
67
|
}
|
|
102
68
|
`;
|
|
103
69
|
exports.UPDATE_PASSWORD = (0, graphql_tag_1.gql) `
|
|
104
|
-
mutation UpdatePassword(
|
|
105
|
-
$serviceId:
|
|
106
|
-
$updateBy: String!
|
|
107
|
-
$updateData: String!
|
|
108
|
-
) {
|
|
109
|
-
updatePassword(
|
|
110
|
-
serviceId: $serviceId
|
|
111
|
-
updateBy: $updateBy
|
|
112
|
-
updateData: $updateData
|
|
113
|
-
)
|
|
70
|
+
mutation UpdatePassword($serviceId: String!, $updateBy: String!, $updateData: String!) {
|
|
71
|
+
updatePassword(serviceId: $serviceId, updateBy: $updateBy, updateData: $updateData)
|
|
114
72
|
}
|
|
115
73
|
`;
|
|
116
74
|
exports.UPDATE_USER_PASSWORD = (0, graphql_tag_1.gql) `
|
|
117
|
-
mutation UpdateUserPassword(
|
|
118
|
-
$serviceId:
|
|
119
|
-
$username: String!
|
|
120
|
-
$password: String!
|
|
121
|
-
) {
|
|
122
|
-
updateUserPassword(
|
|
123
|
-
serviceId: $serviceId
|
|
124
|
-
username: $username
|
|
125
|
-
password: $password
|
|
126
|
-
)
|
|
75
|
+
mutation UpdateUserPassword($serviceId: String!, $username: String!, $password: String!) {
|
|
76
|
+
updateUserPassword(serviceId: $serviceId, username: $username, password: $password)
|
|
127
77
|
}
|
|
128
78
|
`;
|
|
129
79
|
exports.UPDATE_DNS = (0, graphql_tag_1.gql) `
|
|
130
|
-
mutation UpdateDNS(
|
|
131
|
-
$serviceId:
|
|
132
|
-
$dns1: String
|
|
133
|
-
$dns2: String
|
|
134
|
-
$dns3: String
|
|
135
|
-
$dns4: String
|
|
136
|
-
$createBy: String
|
|
137
|
-
) {
|
|
138
|
-
updateDNS(
|
|
139
|
-
serviceId: $serviceId
|
|
140
|
-
dns1: $dns1
|
|
141
|
-
dns2: $dns2
|
|
142
|
-
dns3: $dns3
|
|
143
|
-
dns4: $dns4
|
|
144
|
-
createBy: $createBy
|
|
145
|
-
)
|
|
80
|
+
mutation UpdateDNS($serviceId: String!, $dns1: String, $dns2: String, $dns3: String, $dns4: String, $createBy: String) {
|
|
81
|
+
updateDNS(serviceId: $serviceId, dns1: $dns1, dns2: $dns2, dns3: $dns3, dns4: $dns4, createBy: $createBy)
|
|
146
82
|
}
|
|
147
83
|
`;
|
|
148
84
|
exports.CREATE_DOMAIN_CONTACT = (0, graphql_tag_1.gql) `
|
|
149
|
-
mutation CreateDomainContact(
|
|
150
|
-
$serviceId:
|
|
151
|
-
$domainContacts: [DomainContact]!
|
|
152
|
-
) {
|
|
153
|
-
createDomainContact(
|
|
154
|
-
serviceId: $serviceId
|
|
155
|
-
domainContacts: $domainContacts
|
|
156
|
-
) {
|
|
85
|
+
mutation CreateDomainContact($serviceId: String!, $domainContacts: [DomainContact]!) {
|
|
86
|
+
createDomainContact(serviceId: $serviceId, domainContacts: $domainContacts) {
|
|
157
87
|
supplierId
|
|
158
88
|
domainContacts {
|
|
159
89
|
partyId
|
|
@@ -182,25 +112,12 @@ exports.CREATE_DOMAIN_CONTACT = (0, graphql_tag_1.gql) `
|
|
|
182
112
|
}
|
|
183
113
|
`;
|
|
184
114
|
exports.GET_ORDER_CHANGE_RESOURCE_TERM = (0, graphql_tag_1.gql) `
|
|
185
|
-
mutation GetOrderChangeResourceTerm(
|
|
186
|
-
$serviceId:
|
|
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
|
-
)
|
|
115
|
+
mutation GetOrderChangeResourceTerm($serviceId: String!, $storeId: String!, $createdBy: String!, $partnerId: String!) {
|
|
116
|
+
getOrderChangeResourceTerm(serviceId: $serviceId, storeId: $storeId, createdBy: $createdBy, partnerId: $partnerId)
|
|
197
117
|
}
|
|
198
118
|
`;
|
|
199
119
|
exports.CREATE_ACTION_CHANGE_IP_OF_SERVICE = (0, graphql_tag_1.gql) `
|
|
200
|
-
mutation CreateActionChangeIpOfService(
|
|
201
|
-
$action: ActionInput!
|
|
202
|
-
$byUser: String!
|
|
203
|
-
) {
|
|
120
|
+
mutation CreateActionChangeIpOfService($action: ActionInput!, $byUser: String!) {
|
|
204
121
|
createActionChangeIpOfService(action: $action, byUser: $byUser) {
|
|
205
122
|
id
|
|
206
123
|
partyId
|
|
@@ -235,73 +152,33 @@ exports.CREATE_ACTION_CHANGE_IP_OF_SERVICE = (0, graphql_tag_1.gql) `
|
|
|
235
152
|
}
|
|
236
153
|
`;
|
|
237
154
|
exports.UPDATE_ACTION_STATUS = (0, graphql_tag_1.gql) `
|
|
238
|
-
mutation UpdateActionStatus(
|
|
239
|
-
$actionId: String!
|
|
240
|
-
$status: String!
|
|
241
|
-
$byUser: String!
|
|
242
|
-
) {
|
|
155
|
+
mutation UpdateActionStatus($actionId: String!, $status: String!, $byUser: String!) {
|
|
243
156
|
updateActionStatus(actionId: $actionId, status: $status, byUser: $byUser)
|
|
244
157
|
}
|
|
245
158
|
`;
|
|
246
159
|
exports.UPDATE_ACTION_CUSTOM_ATTRIBUTE = (0, graphql_tag_1.gql) `
|
|
247
|
-
mutation UpdateActionCustomAttribute(
|
|
248
|
-
$actionId:
|
|
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
|
-
)
|
|
160
|
+
mutation UpdateActionCustomAttribute($actionId: String!, $attrName: String!, $attrValue: String!, $byUser: String!) {
|
|
161
|
+
updateActionCustomAttribute(actionId: $actionId, attrName: $attrName, attrValue: $attrValue, byUser: $byUser)
|
|
259
162
|
}
|
|
260
163
|
`;
|
|
261
164
|
exports.UPDATE_SERVICE_COMPLETED = (0, graphql_tag_1.gql) `
|
|
262
|
-
mutation UpdateServiceCompleted(
|
|
263
|
-
$serviceId:
|
|
264
|
-
$handleBy: String!
|
|
265
|
-
) {
|
|
266
|
-
updateServiceCompleted(
|
|
267
|
-
serviceId: $serviceId
|
|
268
|
-
handleBy: $handleBy
|
|
269
|
-
)
|
|
165
|
+
mutation UpdateServiceCompleted($serviceId: String!, $handleBy: String!) {
|
|
166
|
+
updateServiceCompleted(serviceId: $serviceId, handleBy: $handleBy)
|
|
270
167
|
}
|
|
271
168
|
`;
|
|
272
169
|
exports.UPDATE_SERVICE_NEW = (0, graphql_tag_1.gql) `
|
|
273
|
-
mutation UpdateServiceNew(
|
|
274
|
-
$serviceId:
|
|
275
|
-
$handleBy: String!
|
|
276
|
-
) {
|
|
277
|
-
updateServiceNew(
|
|
278
|
-
serviceId: $serviceId
|
|
279
|
-
handleBy: $handleBy
|
|
280
|
-
)
|
|
170
|
+
mutation UpdateServiceNew($serviceId: String!, $handleBy: String!) {
|
|
171
|
+
updateServiceNew(serviceId: $serviceId, handleBy: $handleBy)
|
|
281
172
|
}
|
|
282
173
|
`;
|
|
283
174
|
exports.UPDATE_SERVICE_READY_DEPLOY = (0, graphql_tag_1.gql) `
|
|
284
|
-
mutation UpdateServiceReadyDeploy(
|
|
285
|
-
$serviceId:
|
|
286
|
-
$handleBy: String!
|
|
287
|
-
) {
|
|
288
|
-
updateServiceReadyDeploy(
|
|
289
|
-
serviceId: $serviceId
|
|
290
|
-
handleBy: $handleBy
|
|
291
|
-
)
|
|
175
|
+
mutation UpdateServiceReadyDeploy($serviceId: String!, $handleBy: String!) {
|
|
176
|
+
updateServiceReadyDeploy(serviceId: $serviceId, handleBy: $handleBy)
|
|
292
177
|
}
|
|
293
178
|
`;
|
|
294
179
|
exports.UPDATE_URL_PUBLIC = (0, graphql_tag_1.gql) `
|
|
295
|
-
mutation UpdateUrlPublic(
|
|
296
|
-
$serviceId:
|
|
297
|
-
$handleBy: String!
|
|
298
|
-
$urlPublic: String!
|
|
299
|
-
) {
|
|
300
|
-
updateUrlPublic(
|
|
301
|
-
serviceId: $serviceId
|
|
302
|
-
handleBy: $handleBy
|
|
303
|
-
urlPublic: $urlPublic
|
|
304
|
-
)
|
|
180
|
+
mutation UpdateUrlPublic($serviceId: String!, $handleBy: String!, $urlPublic: String!) {
|
|
181
|
+
updateUrlPublic(serviceId: $serviceId, handleBy: $handleBy, urlPublic: $urlPublic)
|
|
305
182
|
}
|
|
306
183
|
`;
|
|
307
184
|
const CHECK_ENTERPRISE_BY_TAX_CODE_DYNAMIC = (fields = []) => {
|
|
@@ -375,27 +252,13 @@ const CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST = (fields = []) => {
|
|
|
375
252
|
};
|
|
376
253
|
exports.CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST = CONVERT_PRODUCT_RESOURCE_OUTPUTS_TO_PRODUCT_JSON_LIST;
|
|
377
254
|
exports.REMOVE_RECORD = (0, graphql_tag_1.gql) `
|
|
378
|
-
mutation RemoveRecord(
|
|
379
|
-
$serviceId:
|
|
380
|
-
$nameRecord: String!
|
|
381
|
-
$typeRecord: String!
|
|
382
|
-
) {
|
|
383
|
-
removeRecord(
|
|
384
|
-
serviceId: $serviceId
|
|
385
|
-
nameRecord: $nameRecord
|
|
386
|
-
typeRecord: $typeRecord
|
|
387
|
-
)
|
|
255
|
+
mutation RemoveRecord($serviceId: String!, $nameRecord: String!, $typeRecord: String!) {
|
|
256
|
+
removeRecord(serviceId: $serviceId, nameRecord: $nameRecord, typeRecord: $typeRecord)
|
|
388
257
|
}
|
|
389
258
|
`;
|
|
390
259
|
exports.UPDATE_RECORD = (0, graphql_tag_1.gql) `
|
|
391
|
-
mutation UpdateRecord(
|
|
392
|
-
$serviceId:
|
|
393
|
-
$record: RecordDnsInput!
|
|
394
|
-
) {
|
|
395
|
-
updateRecord(
|
|
396
|
-
serviceId: $serviceId
|
|
397
|
-
record: $record
|
|
398
|
-
) {
|
|
260
|
+
mutation UpdateRecord($serviceId: String!, $record: RecordDnsInput!) {
|
|
261
|
+
updateRecord(serviceId: $serviceId, record: $record) {
|
|
399
262
|
id
|
|
400
263
|
domainName
|
|
401
264
|
domainId
|
|
@@ -412,14 +275,8 @@ exports.UPDATE_RECORD = (0, graphql_tag_1.gql) `
|
|
|
412
275
|
}
|
|
413
276
|
`;
|
|
414
277
|
exports.SAVE_RECORD = (0, graphql_tag_1.gql) `
|
|
415
|
-
mutation SaveRecord(
|
|
416
|
-
$serviceId:
|
|
417
|
-
$record: RecordDnsInput!
|
|
418
|
-
) {
|
|
419
|
-
saveRecord(
|
|
420
|
-
serviceId: $serviceId
|
|
421
|
-
record: $record
|
|
422
|
-
) {
|
|
278
|
+
mutation SaveRecord($serviceId: String!, $record: RecordDnsInput!) {
|
|
279
|
+
saveRecord(serviceId: $serviceId, record: $record) {
|
|
423
280
|
id
|
|
424
281
|
domainName
|
|
425
282
|
domainId
|
|
@@ -435,3 +292,13 @@ exports.SAVE_RECORD = (0, graphql_tag_1.gql) `
|
|
|
435
292
|
}
|
|
436
293
|
}
|
|
437
294
|
`;
|
|
295
|
+
exports.REGISTER_AUTO_EXTEND_SERVICE = (0, graphql_tag_1.gql) `
|
|
296
|
+
mutation RegisterAutoExtendService($serviceId: String!, $updateBy: String!) {
|
|
297
|
+
registerAutoExtendService(serviceId: $serviceId, updateBy: $updateBy)
|
|
298
|
+
}
|
|
299
|
+
`;
|
|
300
|
+
exports.CANCEL_AUTO_EXTEND_SERVICE = (0, graphql_tag_1.gql) `
|
|
301
|
+
mutation CancelAutoExtendService($serviceId: String!, $updateBy: String!) {
|
|
302
|
+
cancelAutoExtendService(serviceId: $serviceId, updateBy: $updateBy)
|
|
303
|
+
}
|
|
304
|
+
`;
|
|
@@ -30,3 +30,4 @@ export declare const GET_COMPUTINGS_DYNAMIC: (fields?: string[]) => DocumentNode
|
|
|
30
30
|
export declare const COMPUTING_DETAIL_DYNAMIC: (fields?: string[]) => DocumentNode;
|
|
31
31
|
export declare const IS_TEMPLATE_SUPPORT_EXTEND_DISK_AUTO: DocumentNode;
|
|
32
32
|
export declare const GET_SCRIPT_EXTEND_DISK: DocumentNode;
|
|
33
|
+
export declare const IS_COMPUTING_ON: DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_SCRIPT_EXTEND_DISK = exports.IS_TEMPLATE_SUPPORT_EXTEND_DISK_AUTO = exports.COMPUTING_DETAIL_DYNAMIC = exports.GET_COMPUTINGS_DYNAMIC = 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;
|
|
3
|
+
exports.IS_COMPUTING_ON = exports.GET_SCRIPT_EXTEND_DISK = exports.IS_TEMPLATE_SUPPORT_EXTEND_DISK_AUTO = exports.COMPUTING_DETAIL_DYNAMIC = exports.GET_COMPUTINGS_DYNAMIC = 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!, $serviceId: String) {
|
|
@@ -612,3 +612,8 @@ exports.GET_SCRIPT_EXTEND_DISK = (0, graphql_tag_1.gql) `
|
|
|
612
612
|
getScriptExtendDisk(templateId: $templateId)
|
|
613
613
|
}
|
|
614
614
|
`;
|
|
615
|
+
exports.IS_COMPUTING_ON = (0, graphql_tag_1.gql) `
|
|
616
|
+
query IsComputingOn($computingId: String!) {
|
|
617
|
+
isComputingOn(computingId: $computingId)
|
|
618
|
+
}
|
|
619
|
+
`;
|
|
@@ -11,6 +11,7 @@ export declare const GET_LIST_COMMENT: DocumentNode;
|
|
|
11
11
|
export declare const GET_RESUME_ID_BY_RESOURCE: DocumentNode;
|
|
12
12
|
export declare const GET_RESUME_CONTACT: DocumentNode;
|
|
13
13
|
export declare const GET_REUSME_BY_CUSTOMER_ID: DocumentNode;
|
|
14
|
+
export declare const GET_REUSME_BY_CUSTOMER_ID_DYNAMIC: (fields?: string[]) => DocumentNode;
|
|
14
15
|
export declare const GET_RESUME_DOMAIN_BY_SERVICE_ID: DocumentNode;
|
|
15
16
|
export declare const GET_COLLEGES_BY_PROVINCE_ID: DocumentNode;
|
|
16
17
|
export declare const GET_RELATED_RESOURCE_BY_RESOURCE_TYPE: DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_RESUME_ID = exports.GET_LIST_TICKET_BY_OWNER_DYNAMIC = exports.GET_RESUME_INFO_BY_CUSTOMER_ID_DYNAMIC = exports.GET_RESUME_INFO_BY_CUSTOMER_ID = exports.GET_RELATED_RESOURCE_BY_RESOURCE_TYPE = exports.GET_COLLEGES_BY_PROVINCE_ID = exports.GET_RESUME_DOMAIN_BY_SERVICE_ID = exports.GET_REUSME_BY_CUSTOMER_ID = exports.GET_RESUME_CONTACT = exports.GET_RESUME_ID_BY_RESOURCE = exports.GET_LIST_COMMENT = exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = exports.GET_LIST_TICKET_BY_ID_DYNAMIC = exports.GET_TICKET_BY_ID = exports.GET_LIST_TICKET_DYNAMIC = exports.GET_LIST_TICKET = exports.GET_LIST_WORK_EFFORT_TYPE = exports.GET_LIST_TODO = exports.GET_LIST_OPPORTUNITY_QUERY = void 0;
|
|
3
|
+
exports.GET_RESUME_ID = exports.GET_LIST_TICKET_BY_OWNER_DYNAMIC = exports.GET_RESUME_INFO_BY_CUSTOMER_ID_DYNAMIC = exports.GET_RESUME_INFO_BY_CUSTOMER_ID = exports.GET_RELATED_RESOURCE_BY_RESOURCE_TYPE = exports.GET_COLLEGES_BY_PROVINCE_ID = exports.GET_RESUME_DOMAIN_BY_SERVICE_ID = exports.GET_REUSME_BY_CUSTOMER_ID_DYNAMIC = exports.GET_REUSME_BY_CUSTOMER_ID = exports.GET_RESUME_CONTACT = exports.GET_RESUME_ID_BY_RESOURCE = exports.GET_LIST_COMMENT = exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = exports.GET_LIST_TICKET_BY_ID_DYNAMIC = exports.GET_TICKET_BY_ID = exports.GET_LIST_TICKET_DYNAMIC = exports.GET_LIST_TICKET = exports.GET_LIST_WORK_EFFORT_TYPE = exports.GET_LIST_TODO = exports.GET_LIST_OPPORTUNITY_QUERY = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.GET_LIST_OPPORTUNITY_QUERY = (0, graphql_tag_1.gql) `
|
|
6
6
|
query GetListOpportunity(
|
|
@@ -361,6 +361,25 @@ exports.GET_REUSME_BY_CUSTOMER_ID = (0, graphql_tag_1.gql) `
|
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
`;
|
|
364
|
+
const GET_REUSME_BY_CUSTOMER_ID_DYNAMIC = (fields = []) => {
|
|
365
|
+
const fieldStr = fields.join("\n ");
|
|
366
|
+
const hasFields = fields.length > 0;
|
|
367
|
+
return (0, graphql_tag_1.gql) `
|
|
368
|
+
query GetResumesByCustomerId(
|
|
369
|
+
$customerId: String,
|
|
370
|
+
$partyId: String
|
|
371
|
+
) {
|
|
372
|
+
getResumesByCustomerId(
|
|
373
|
+
customerId: $customerId,
|
|
374
|
+
partyId: $partyId
|
|
375
|
+
)
|
|
376
|
+
{
|
|
377
|
+
${hasFields ? `${fieldStr}` : ""}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
`;
|
|
381
|
+
};
|
|
382
|
+
exports.GET_REUSME_BY_CUSTOMER_ID_DYNAMIC = GET_REUSME_BY_CUSTOMER_ID_DYNAMIC;
|
|
364
383
|
exports.GET_RESUME_DOMAIN_BY_SERVICE_ID = (0, graphql_tag_1.gql) `
|
|
365
384
|
query GetResumeDomainByServiceId($serviceId: String!) {
|
|
366
385
|
getResumeDomainByServiceId(serviceId: $serviceId) {
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export declare const CANCEL_PAYMENT: import("graphql").DocumentNode;
|
|
2
2
|
export declare const CONFIRM_PAID_MANUAL: import("graphql").DocumentNode;
|
|
3
|
+
export declare const REGISTER_AUTO_DEBIT: import("graphql").DocumentNode;
|
|
4
|
+
export declare const CONFIRM_REGISTER_AUTO_DEBIT: import("graphql").DocumentNode;
|
|
5
|
+
export declare const CANCEL_AUTO_DEBIT: import("graphql").DocumentNode;
|
|
6
|
+
export declare const CONFIRM_CANCEL_AUTO_DEBIT: import("graphql").DocumentNode;
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CONFIRM_PAID_MANUAL = exports.CANCEL_PAYMENT = void 0;
|
|
3
|
+
exports.CONFIRM_CANCEL_AUTO_DEBIT = exports.CANCEL_AUTO_DEBIT = exports.CONFIRM_REGISTER_AUTO_DEBIT = exports.REGISTER_AUTO_DEBIT = exports.CONFIRM_PAID_MANUAL = exports.CANCEL_PAYMENT = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.CANCEL_PAYMENT = (0, graphql_tag_1.gql) `
|
|
6
|
-
mutation CancelPayment(
|
|
7
|
-
$paymentId:
|
|
8
|
-
$safeMode: Boolean!
|
|
9
|
-
$reason: String!
|
|
10
|
-
$createBy: String
|
|
11
|
-
) {
|
|
12
|
-
cancelPayment(
|
|
13
|
-
paymentId: $paymentId
|
|
14
|
-
safeMode: $safeMode
|
|
15
|
-
reason: $reason
|
|
16
|
-
createBy: $createBy
|
|
17
|
-
)
|
|
6
|
+
mutation CancelPayment($paymentId: String!, $safeMode: Boolean!, $reason: String!, $createBy: String) {
|
|
7
|
+
cancelPayment(paymentId: $paymentId, safeMode: $safeMode, reason: $reason, createBy: $createBy)
|
|
18
8
|
}
|
|
19
9
|
`;
|
|
20
10
|
exports.CONFIRM_PAID_MANUAL = (0, graphql_tag_1.gql) `
|
|
@@ -29,3 +19,41 @@ exports.CONFIRM_PAID_MANUAL = (0, graphql_tag_1.gql) `
|
|
|
29
19
|
}
|
|
30
20
|
}
|
|
31
21
|
`;
|
|
22
|
+
exports.REGISTER_AUTO_DEBIT = (0, graphql_tag_1.gql) `
|
|
23
|
+
mutation RegisterAutoDebit($cashAccountId: String!) {
|
|
24
|
+
registerAutoDebit(cashAccountId: $cashAccountId) {
|
|
25
|
+
message
|
|
26
|
+
status
|
|
27
|
+
otpRequired
|
|
28
|
+
otpExpiresInSeconds
|
|
29
|
+
otpMaxAttempts
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
exports.CONFIRM_REGISTER_AUTO_DEBIT = (0, graphql_tag_1.gql) `
|
|
34
|
+
mutation ConfirmRegisterAutoDebit($cashAccountId: String!, $otp: String!) {
|
|
35
|
+
confirmRegisterAutoDebit(cashAccountId: $cashAccountId, otp: $otp) {
|
|
36
|
+
message
|
|
37
|
+
status
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
exports.CANCEL_AUTO_DEBIT = (0, graphql_tag_1.gql) `
|
|
42
|
+
mutation CancelAutoDebit($cashAccountId: String!) {
|
|
43
|
+
cancelAutoDebit(cashAccountId: $cashAccountId) {
|
|
44
|
+
message
|
|
45
|
+
status
|
|
46
|
+
otpRequired
|
|
47
|
+
otpExpiresInSeconds
|
|
48
|
+
otpMaxAttempts
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
exports.CONFIRM_CANCEL_AUTO_DEBIT = (0, graphql_tag_1.gql) `
|
|
53
|
+
mutation ConfirmCancelAutoDebit($cashAccountId: String!, $otp: String!) {
|
|
54
|
+
confirmCancelAutoDebit(cashAccountId: $cashAccountId, otp: $otp) {
|
|
55
|
+
message
|
|
56
|
+
status
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
@@ -3,13 +3,16 @@ export declare class Cashbook extends Service {
|
|
|
3
3
|
constructor(endpoint: string, orgId: string, storeId: string);
|
|
4
4
|
setToken(token: string): void;
|
|
5
5
|
setStoreId(storeId: string): void;
|
|
6
|
+
getCardTypes(fields?: string[]): Promise<any>;
|
|
6
7
|
getCashAccountCustomers(partyId: string, fields?: string[]): Promise<any>;
|
|
7
8
|
getBankCodes(fields?: string[]): Promise<any>;
|
|
9
|
+
getBankCodesForCustomer(fields?: string[]): Promise<any>;
|
|
8
10
|
createCashAccountCustomer(input: {
|
|
9
11
|
bankCode: string;
|
|
10
12
|
name: string;
|
|
11
13
|
accountNumber: string;
|
|
12
14
|
typeCard: string;
|
|
15
|
+
expiryDate: string;
|
|
13
16
|
partyId: string;
|
|
14
17
|
}, fields?: string[]): Promise<any>;
|
|
15
18
|
updateCashAccountCustomer(input: {
|
|
@@ -19,6 +22,7 @@ export declare class Cashbook extends Service {
|
|
|
19
22
|
name?: string;
|
|
20
23
|
accountNumber?: string;
|
|
21
24
|
typeCard?: string;
|
|
25
|
+
expiryDate?: string;
|
|
22
26
|
isDefault?: boolean;
|
|
23
27
|
}, fields?: string[]): Promise<any>;
|
|
24
28
|
deleteCashAccountCustomer(id: string, partyId: string, fields?: string[]): Promise<any>;
|
|
@@ -23,8 +23,36 @@ class Cashbook extends serviceSDK_1.Service {
|
|
|
23
23
|
setStoreId(storeId) {
|
|
24
24
|
this.storeId = storeId;
|
|
25
25
|
}
|
|
26
|
+
getCardTypes() {
|
|
27
|
+
return __awaiter(this, arguments, void 0, function* (fields = ["code", "description"]) {
|
|
28
|
+
const query = (0, query_1.GET_CART_TYPE)(fields);
|
|
29
|
+
try {
|
|
30
|
+
const response = yield this.graphqlQuery(query, {});
|
|
31
|
+
return response.getCardTypes;
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
console.log(`Error getCardTypes: ${error}`);
|
|
35
|
+
throw error;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
26
39
|
getCashAccountCustomers(partyId_1) {
|
|
27
|
-
return __awaiter(this, arguments, void 0, function* (partyId, fields = [
|
|
40
|
+
return __awaiter(this, arguments, void 0, function* (partyId, fields = [
|
|
41
|
+
"id",
|
|
42
|
+
"partnerId",
|
|
43
|
+
"bankCode",
|
|
44
|
+
"name",
|
|
45
|
+
"accountNumber",
|
|
46
|
+
"typeCard",
|
|
47
|
+
"partyId",
|
|
48
|
+
"isDefault",
|
|
49
|
+
"customAttributes",
|
|
50
|
+
"bankName",
|
|
51
|
+
"bankShortName",
|
|
52
|
+
"bankLogo",
|
|
53
|
+
"bankColors",
|
|
54
|
+
"expiryDate"
|
|
55
|
+
]) {
|
|
28
56
|
const query = (0, query_1.GET_CASH_ACCOUNT_CUSTOMERS)(fields);
|
|
29
57
|
const variables = { partnerId: this.orgId, partyId };
|
|
30
58
|
try {
|
|
@@ -50,8 +78,36 @@ class Cashbook extends serviceSDK_1.Service {
|
|
|
50
78
|
}
|
|
51
79
|
});
|
|
52
80
|
}
|
|
81
|
+
getBankCodesForCustomer() {
|
|
82
|
+
return __awaiter(this, arguments, void 0, function* (fields = ["bankCode", "shortName", "description", "logo", "colors"]) {
|
|
83
|
+
const query = (0, query_1.GET_BANK_CODES_FOR_CUSTOMER)(fields);
|
|
84
|
+
try {
|
|
85
|
+
const response = yield this.graphqlQuery(query, {});
|
|
86
|
+
return response.getBankCodesForCustomer;
|
|
87
|
+
}
|
|
88
|
+
catch (error) {
|
|
89
|
+
console.log(`Error getBankCodesForCustomer: ${error}`);
|
|
90
|
+
throw error;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
53
94
|
createCashAccountCustomer(input_1) {
|
|
54
|
-
return __awaiter(this, arguments, void 0, function* (input, fields = [
|
|
95
|
+
return __awaiter(this, arguments, void 0, function* (input, fields = [
|
|
96
|
+
"id",
|
|
97
|
+
"partnerId",
|
|
98
|
+
"bankCode",
|
|
99
|
+
"name",
|
|
100
|
+
"accountNumber",
|
|
101
|
+
"typeCard",
|
|
102
|
+
"partyId",
|
|
103
|
+
"isDefault",
|
|
104
|
+
"bankName",
|
|
105
|
+
"bankShortName",
|
|
106
|
+
"bankLogo",
|
|
107
|
+
"bankColors",
|
|
108
|
+
"expiryDate",
|
|
109
|
+
"customAttributes"
|
|
110
|
+
]) {
|
|
55
111
|
const mutation = (0, mutation_1.CREATE_CASH_ACCOUNT_CUSTOMER)(fields);
|
|
56
112
|
const variables = {
|
|
57
113
|
partnerId: this.orgId,
|
|
@@ -59,6 +115,7 @@ class Cashbook extends serviceSDK_1.Service {
|
|
|
59
115
|
bankCode: input.bankCode,
|
|
60
116
|
name: input.name,
|
|
61
117
|
accountNumber: input.accountNumber,
|
|
118
|
+
expiryDate: input.expiryDate,
|
|
62
119
|
typeCard: input.typeCard
|
|
63
120
|
};
|
|
64
121
|
try {
|
|
@@ -82,6 +139,7 @@ class Cashbook extends serviceSDK_1.Service {
|
|
|
82
139
|
name: input.name,
|
|
83
140
|
accountNumber: input.accountNumber,
|
|
84
141
|
typeCard: input.typeCard,
|
|
142
|
+
expiryDate: input.expiryDate,
|
|
85
143
|
isDefault: input.isDefault
|
|
86
144
|
};
|
|
87
145
|
try {
|
|
@@ -61,4 +61,6 @@ export declare class CloudService extends Service {
|
|
|
61
61
|
saveRecord(serviceId: string, record: RecordDnsInput): Promise<RecordDns>;
|
|
62
62
|
getRecord(serviceId: string): Promise<RecordDns[]>;
|
|
63
63
|
getDomainDns(serviceId: string): Promise<DomainDns | null>;
|
|
64
|
+
registerAutoExtentService(serviceId: string, updateBy: string): Promise<any>;
|
|
65
|
+
cancelAutoExtentService(serviceId: string, updateBy: string): Promise<any>;
|
|
64
66
|
}
|
|
@@ -33,7 +33,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
const query = queries_1.SERVICE_DETAIL;
|
|
35
35
|
const variables = {
|
|
36
|
-
serviceId
|
|
36
|
+
serviceId
|
|
37
37
|
};
|
|
38
38
|
try {
|
|
39
39
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -49,7 +49,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
49
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
50
50
|
const query = (0, queries_1.SERVICE_DETAIL_DYNAMIC)(fields);
|
|
51
51
|
const variables = {
|
|
52
|
-
serviceId
|
|
52
|
+
serviceId
|
|
53
53
|
};
|
|
54
54
|
try {
|
|
55
55
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -66,7 +66,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
66
66
|
const mutation = mutations_1.UPDATE_SERVICE_COMPLETED;
|
|
67
67
|
const variables = {
|
|
68
68
|
serviceId,
|
|
69
|
-
handleBy
|
|
69
|
+
handleBy
|
|
70
70
|
};
|
|
71
71
|
try {
|
|
72
72
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -83,7 +83,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
83
83
|
const mutation = mutations_1.UPDATE_SERVICE_NEW;
|
|
84
84
|
const variables = {
|
|
85
85
|
serviceId,
|
|
86
|
-
handleBy
|
|
86
|
+
handleBy
|
|
87
87
|
};
|
|
88
88
|
try {
|
|
89
89
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -100,7 +100,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
100
100
|
const mutation = mutations_1.UPDATE_SERVICE_READY_DEPLOY;
|
|
101
101
|
const variables = {
|
|
102
102
|
serviceId,
|
|
103
|
-
handleBy
|
|
103
|
+
handleBy
|
|
104
104
|
};
|
|
105
105
|
try {
|
|
106
106
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -134,7 +134,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
134
134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
135
135
|
const query = queries_1.GET_MAIL_RESOURCE;
|
|
136
136
|
const variables = {
|
|
137
|
-
serviceId
|
|
137
|
+
serviceId
|
|
138
138
|
};
|
|
139
139
|
try {
|
|
140
140
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -152,7 +152,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
152
152
|
const variables = {
|
|
153
153
|
serviceId,
|
|
154
154
|
updateBy,
|
|
155
|
-
updateData
|
|
155
|
+
updateData
|
|
156
156
|
};
|
|
157
157
|
try {
|
|
158
158
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -168,7 +168,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
168
168
|
return __awaiter(this, void 0, void 0, function* () {
|
|
169
169
|
const query = queries_1.GET_USER_MAIL_HOSTING;
|
|
170
170
|
const variables = {
|
|
171
|
-
serviceId
|
|
171
|
+
serviceId
|
|
172
172
|
};
|
|
173
173
|
try {
|
|
174
174
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -187,7 +187,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
187
187
|
serviceId: payload.serviceId,
|
|
188
188
|
username: payload.username,
|
|
189
189
|
password: payload.password,
|
|
190
|
-
fullName: payload.fullName
|
|
190
|
+
fullName: payload.fullName
|
|
191
191
|
};
|
|
192
192
|
try {
|
|
193
193
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -205,7 +205,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
205
205
|
const variables = {
|
|
206
206
|
serviceId: payload.serviceId,
|
|
207
207
|
username: payload.username,
|
|
208
|
-
password: payload.password
|
|
208
|
+
password: payload.password
|
|
209
209
|
};
|
|
210
210
|
try {
|
|
211
211
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -222,7 +222,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
222
222
|
const mutation = mutations_1.DELETE_USER_MAIL_HOSTING;
|
|
223
223
|
const variables = {
|
|
224
224
|
serviceId: payload.serviceId,
|
|
225
|
-
username: payload.username
|
|
225
|
+
username: payload.username
|
|
226
226
|
};
|
|
227
227
|
try {
|
|
228
228
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -240,7 +240,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
240
240
|
const variables = {
|
|
241
241
|
serviceId: payload.serviceId,
|
|
242
242
|
updateBy: payload.useUpdate,
|
|
243
|
-
updateData: payload.valueUpdate
|
|
243
|
+
updateData: payload.valueUpdate
|
|
244
244
|
};
|
|
245
245
|
try {
|
|
246
246
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -258,7 +258,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
258
258
|
const variables = {
|
|
259
259
|
serviceId: payload.serviceId,
|
|
260
260
|
updateBy: payload.useUpdate,
|
|
261
|
-
updateData: payload.valueUpdate
|
|
261
|
+
updateData: payload.valueUpdate
|
|
262
262
|
};
|
|
263
263
|
try {
|
|
264
264
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -276,7 +276,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
276
276
|
const variables = {
|
|
277
277
|
serviceId: payload.serviceId,
|
|
278
278
|
updateBy: payload.useUpdate,
|
|
279
|
-
updateData: payload.valueUpdate
|
|
279
|
+
updateData: payload.valueUpdate
|
|
280
280
|
};
|
|
281
281
|
try {
|
|
282
282
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -306,7 +306,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
306
306
|
return __awaiter(this, void 0, void 0, function* () {
|
|
307
307
|
const query = queries_1.SEARCH_SERVICE;
|
|
308
308
|
const variables = {
|
|
309
|
-
filter
|
|
309
|
+
filter
|
|
310
310
|
};
|
|
311
311
|
try {
|
|
312
312
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -336,7 +336,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
336
336
|
return __awaiter(this, void 0, void 0, function* () {
|
|
337
337
|
const query = queries_1.GET_PRODUCTS_OF_SERVICE;
|
|
338
338
|
const variables = {
|
|
339
|
-
serviceId
|
|
339
|
+
serviceId
|
|
340
340
|
};
|
|
341
341
|
try {
|
|
342
342
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -352,7 +352,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
352
352
|
return __awaiter(this, void 0, void 0, function* () {
|
|
353
353
|
const query = queries_1.GET_IPS_OF_SERVICE;
|
|
354
354
|
const variables = {
|
|
355
|
-
serviceId
|
|
355
|
+
serviceId
|
|
356
356
|
};
|
|
357
357
|
try {
|
|
358
358
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -368,7 +368,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
368
368
|
return __awaiter(this, void 0, void 0, function* () {
|
|
369
369
|
const query = queries_1.GET_SERVICES_BY_ORDER_ID;
|
|
370
370
|
const variables = {
|
|
371
|
-
orderId
|
|
371
|
+
orderId
|
|
372
372
|
};
|
|
373
373
|
try {
|
|
374
374
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -384,7 +384,8 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
384
384
|
return __awaiter(this, void 0, void 0, function* () {
|
|
385
385
|
const mutation = mutations_1.CHECK_DOMAIN_NAME;
|
|
386
386
|
const variables = {
|
|
387
|
-
domainName,
|
|
387
|
+
domainName,
|
|
388
|
+
isClearCache
|
|
388
389
|
};
|
|
389
390
|
try {
|
|
390
391
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -400,7 +401,8 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
400
401
|
return __awaiter(this, void 0, void 0, function* () {
|
|
401
402
|
const mutation = mutations_1.CHECK_LIST_DOMAIN_NAME;
|
|
402
403
|
const variables = {
|
|
403
|
-
domainNames,
|
|
404
|
+
domainNames,
|
|
405
|
+
isClearCache
|
|
404
406
|
};
|
|
405
407
|
try {
|
|
406
408
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -416,7 +418,8 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
416
418
|
return __awaiter(this, void 0, void 0, function* () {
|
|
417
419
|
const mutation = mutations_1.CHECK_DOMAIN_NAME;
|
|
418
420
|
const variables = {
|
|
419
|
-
domainName,
|
|
421
|
+
domainName,
|
|
422
|
+
isClearCache
|
|
420
423
|
};
|
|
421
424
|
try {
|
|
422
425
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -432,7 +435,8 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
432
435
|
return __awaiter(this, void 0, void 0, function* () {
|
|
433
436
|
const mutation = mutations_1.CHECK_LIST_DOMAIN_NAME;
|
|
434
437
|
const variables = {
|
|
435
|
-
domainNames,
|
|
438
|
+
domainNames,
|
|
439
|
+
isClearCache
|
|
436
440
|
};
|
|
437
441
|
try {
|
|
438
442
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -652,7 +656,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
652
656
|
serviceId,
|
|
653
657
|
storeId: this.storeId,
|
|
654
658
|
createdBy,
|
|
655
|
-
partnerId: this.orgId
|
|
659
|
+
partnerId: this.orgId
|
|
656
660
|
};
|
|
657
661
|
try {
|
|
658
662
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -668,7 +672,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
668
672
|
return __awaiter(this, void 0, void 0, function* () {
|
|
669
673
|
const query = queries_1.SEARCH_ACTIONS;
|
|
670
674
|
const variables = {
|
|
671
|
-
parameter: Object.assign(Object.assign({}, parameter), { partyId: this.orgId })
|
|
675
|
+
parameter: Object.assign(Object.assign({}, parameter), { partyId: this.orgId })
|
|
672
676
|
};
|
|
673
677
|
try {
|
|
674
678
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -685,7 +689,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
685
689
|
const mutation = mutations_1.CREATE_ACTION_CHANGE_IP_OF_SERVICE;
|
|
686
690
|
const variables = {
|
|
687
691
|
action: Object.assign(Object.assign({}, action), { partyId: this.orgId }),
|
|
688
|
-
byUser
|
|
692
|
+
byUser
|
|
689
693
|
};
|
|
690
694
|
try {
|
|
691
695
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -703,7 +707,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
703
707
|
const variables = {
|
|
704
708
|
actionId,
|
|
705
709
|
status,
|
|
706
|
-
byUser
|
|
710
|
+
byUser
|
|
707
711
|
};
|
|
708
712
|
try {
|
|
709
713
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -722,7 +726,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
722
726
|
actionId,
|
|
723
727
|
attrName,
|
|
724
728
|
attrValue,
|
|
725
|
-
byUser
|
|
729
|
+
byUser
|
|
726
730
|
};
|
|
727
731
|
try {
|
|
728
732
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -738,7 +742,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
738
742
|
return __awaiter(this, void 0, void 0, function* () {
|
|
739
743
|
const query = queries_1.GET_ELASTIC_CLOUD_RESOURCE;
|
|
740
744
|
const variables = {
|
|
741
|
-
serviceId
|
|
745
|
+
serviceId
|
|
742
746
|
};
|
|
743
747
|
try {
|
|
744
748
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -754,7 +758,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
754
758
|
return __awaiter(this, void 0, void 0, function* () {
|
|
755
759
|
const query = (0, queries_1.SEARCH_SERVICE_DYNAMIC)(fields);
|
|
756
760
|
const variables = {
|
|
757
|
-
filter
|
|
761
|
+
filter
|
|
758
762
|
};
|
|
759
763
|
try {
|
|
760
764
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -772,7 +776,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
772
776
|
const variables = {
|
|
773
777
|
productResourceInput: {
|
|
774
778
|
productId: productResourceInput === null || productResourceInput === void 0 ? void 0 : productResourceInput.productId,
|
|
775
|
-
resources: productResourceInput === null || productResourceInput === void 0 ? void 0 : productResourceInput.resources
|
|
779
|
+
resources: productResourceInput === null || productResourceInput === void 0 ? void 0 : productResourceInput.resources
|
|
776
780
|
}
|
|
777
781
|
};
|
|
778
782
|
try {
|
|
@@ -789,7 +793,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
789
793
|
return __awaiter(this, void 0, void 0, function* () {
|
|
790
794
|
const query = (0, queries_1.SEARCH_ACTIONS_DYNAMIC)(fields);
|
|
791
795
|
const variables = {
|
|
792
|
-
parameter
|
|
796
|
+
parameter
|
|
793
797
|
};
|
|
794
798
|
try {
|
|
795
799
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -806,7 +810,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
806
810
|
const query = queries_1.ADD_LETS_ENCRYPT_SSL_FOR_MAIL_HOSTING;
|
|
807
811
|
const variables = {
|
|
808
812
|
serviceId,
|
|
809
|
-
actorId
|
|
813
|
+
actorId
|
|
810
814
|
};
|
|
811
815
|
try {
|
|
812
816
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -824,7 +828,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
824
828
|
const variables = {
|
|
825
829
|
serviceId,
|
|
826
830
|
nameRecord,
|
|
827
|
-
typeRecord
|
|
831
|
+
typeRecord
|
|
828
832
|
};
|
|
829
833
|
try {
|
|
830
834
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -841,7 +845,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
841
845
|
const mutation = mutations_1.UPDATE_RECORD;
|
|
842
846
|
const variables = {
|
|
843
847
|
serviceId,
|
|
844
|
-
record
|
|
848
|
+
record
|
|
845
849
|
};
|
|
846
850
|
try {
|
|
847
851
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -858,7 +862,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
858
862
|
const mutation = mutations_1.SAVE_RECORD;
|
|
859
863
|
const variables = {
|
|
860
864
|
serviceId,
|
|
861
|
-
record
|
|
865
|
+
record
|
|
862
866
|
};
|
|
863
867
|
try {
|
|
864
868
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
@@ -874,7 +878,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
874
878
|
return __awaiter(this, void 0, void 0, function* () {
|
|
875
879
|
const query = queries_1.GET_RECORD;
|
|
876
880
|
const variables = {
|
|
877
|
-
serviceId
|
|
881
|
+
serviceId
|
|
878
882
|
};
|
|
879
883
|
try {
|
|
880
884
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -890,7 +894,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
890
894
|
return __awaiter(this, void 0, void 0, function* () {
|
|
891
895
|
const query = queries_1.GET_DOMAIN_DNS;
|
|
892
896
|
const variables = {
|
|
893
|
-
serviceId
|
|
897
|
+
serviceId
|
|
894
898
|
};
|
|
895
899
|
try {
|
|
896
900
|
const response = yield this.graphqlQueryV2(query, variables);
|
|
@@ -902,5 +906,29 @@ class CloudService extends serviceSDK_1.Service {
|
|
|
902
906
|
}
|
|
903
907
|
});
|
|
904
908
|
}
|
|
909
|
+
registerAutoExtentService(serviceId, updateBy) {
|
|
910
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
911
|
+
try {
|
|
912
|
+
const response = yield this.graphqlMutation(mutations_1.REGISTER_AUTO_EXTEND_SERVICE, { serviceId, updateBy });
|
|
913
|
+
return response.registerAutoExtendService;
|
|
914
|
+
}
|
|
915
|
+
catch (error) {
|
|
916
|
+
console.log(`Error in registerAutoExtendService: ${error}`);
|
|
917
|
+
throw error;
|
|
918
|
+
}
|
|
919
|
+
});
|
|
920
|
+
}
|
|
921
|
+
cancelAutoExtentService(serviceId, updateBy) {
|
|
922
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
923
|
+
try {
|
|
924
|
+
const response = yield this.graphqlMutation(mutations_1.CANCEL_AUTO_EXTEND_SERVICE, { serviceId, updateBy });
|
|
925
|
+
return response.cancelAutoExtendService;
|
|
926
|
+
}
|
|
927
|
+
catch (error) {
|
|
928
|
+
console.log(`Error in cancelAutoExtendService: ${error}`);
|
|
929
|
+
throw error;
|
|
930
|
+
}
|
|
931
|
+
});
|
|
932
|
+
}
|
|
905
933
|
}
|
|
906
934
|
exports.CloudService = CloudService;
|
|
@@ -70,4 +70,5 @@ export declare class ComputingService extends Service {
|
|
|
70
70
|
resizeDisk(computingId: string, diskIndex: number, size: number, unit: string): Promise<any>;
|
|
71
71
|
isTemplateSupportExtendDiskAuto(computingId: string, diskIndex: number): Promise<any>;
|
|
72
72
|
getScriptExtendDisk(templateId: string): Promise<any>;
|
|
73
|
+
isComputingOn(computingId: string): Promise<any>;
|
|
73
74
|
}
|
|
@@ -1083,5 +1083,21 @@ class ComputingService extends serviceSDK_1.Service {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
});
|
|
1085
1085
|
}
|
|
1086
|
+
isComputingOn(computingId) {
|
|
1087
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1088
|
+
const query = queries_1.IS_COMPUTING_ON;
|
|
1089
|
+
const variables = {
|
|
1090
|
+
computingId
|
|
1091
|
+
};
|
|
1092
|
+
try {
|
|
1093
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
|
1094
|
+
return response.isComputingOn;
|
|
1095
|
+
}
|
|
1096
|
+
catch (error) {
|
|
1097
|
+
console.log(`Error in isComputingOn: ${error}`);
|
|
1098
|
+
throw error;
|
|
1099
|
+
}
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1086
1102
|
}
|
|
1087
1103
|
exports.ComputingService = ComputingService;
|
|
@@ -39,4 +39,5 @@ export declare class CrmService extends Service {
|
|
|
39
39
|
updateFieldResume(resumeId: string, fieldName: string, value: string, resourceType: string, updatedBy: string): Promise<any>;
|
|
40
40
|
getListTicketByOwnerDynamic(ownerId: string, getTicketRequest: getTicketRequest, fields: string[]): Promise<any>;
|
|
41
41
|
getResumeById(resumeId: string, fields: string[]): Promise<any>;
|
|
42
|
+
getResumesByCustomerIdDynamic(customerId: string, fields: string[]): Promise<any>;
|
|
42
43
|
}
|
|
@@ -650,5 +650,22 @@ class CrmService extends serviceSDK_1.Service {
|
|
|
650
650
|
}
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
|
+
getResumesByCustomerIdDynamic(customerId, fields) {
|
|
654
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
655
|
+
const query = (0, queries_1.GET_REUSME_BY_CUSTOMER_ID_DYNAMIC)(fields);
|
|
656
|
+
const variables = {
|
|
657
|
+
customerId,
|
|
658
|
+
partyId: this.orgId,
|
|
659
|
+
};
|
|
660
|
+
try {
|
|
661
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
|
662
|
+
return response.getResumesByCustomerId;
|
|
663
|
+
}
|
|
664
|
+
catch (error) {
|
|
665
|
+
console.log(`Error in getResumesByCustomerId: ${error}`);
|
|
666
|
+
throw error;
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
}
|
|
653
670
|
}
|
|
654
671
|
exports.CrmService = CrmService;
|
|
@@ -10,4 +10,8 @@ export declare class PaymentLVService extends Service {
|
|
|
10
10
|
getPaymentMethodTypes(store: string): Promise<any>;
|
|
11
11
|
paymentMethods(): Promise<any>;
|
|
12
12
|
paymentStatus(paymentId: string): Promise<any>;
|
|
13
|
+
registerAutoDebit(cashAccountId: string): Promise<any>;
|
|
14
|
+
confirmRegisterAutoDebit(cashAccountId: string, otp: string): Promise<any>;
|
|
15
|
+
cancelAutoDebit(cashAccountId: string): Promise<any>;
|
|
16
|
+
confirmCancelAutoDebit(cashAccountId: string, otp: string): Promise<any>;
|
|
13
17
|
}
|
|
@@ -27,7 +27,7 @@ class PaymentLVService extends serviceSDK_1.Service {
|
|
|
27
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
const query = queries_1.PAYMENTS_BY_ORDERS;
|
|
29
29
|
const variables = {
|
|
30
|
-
orderIds
|
|
30
|
+
orderIds
|
|
31
31
|
};
|
|
32
32
|
// const headers = { PartnerId: this.orgId };
|
|
33
33
|
try {
|
|
@@ -48,7 +48,7 @@ class PaymentLVService extends serviceSDK_1.Service {
|
|
|
48
48
|
const variables = {
|
|
49
49
|
partnerId: this.orgId,
|
|
50
50
|
storeId: store ? store : this.storeId,
|
|
51
|
-
paymentId
|
|
51
|
+
paymentId
|
|
52
52
|
};
|
|
53
53
|
try {
|
|
54
54
|
const response = yield this.graphqlQueryCustomHeader(query, variables);
|
|
@@ -67,7 +67,7 @@ class PaymentLVService extends serviceSDK_1.Service {
|
|
|
67
67
|
paymentId,
|
|
68
68
|
safeMode: true,
|
|
69
69
|
reason,
|
|
70
|
-
createBy
|
|
70
|
+
createBy
|
|
71
71
|
};
|
|
72
72
|
try {
|
|
73
73
|
const response = yield this.graphqlMutationCustomHeader(mutation, variables);
|
|
@@ -84,7 +84,7 @@ class PaymentLVService extends serviceSDK_1.Service {
|
|
|
84
84
|
const mutation = mutations_1.CONFIRM_PAID_MANUAL;
|
|
85
85
|
const variables = {
|
|
86
86
|
paymentId,
|
|
87
|
-
confirmBy
|
|
87
|
+
confirmBy
|
|
88
88
|
};
|
|
89
89
|
try {
|
|
90
90
|
const response = yield this.graphqlMutationCustomHeader(mutation, variables);
|
|
@@ -101,7 +101,7 @@ class PaymentLVService extends serviceSDK_1.Service {
|
|
|
101
101
|
const query = queries_1.GET_PAYMENT_METHOD_TYPES;
|
|
102
102
|
const variables = {
|
|
103
103
|
partnerId: this.orgId,
|
|
104
|
-
storeId: store ? store : this.storeId
|
|
104
|
+
storeId: store ? store : this.storeId
|
|
105
105
|
};
|
|
106
106
|
try {
|
|
107
107
|
const response = yield this.graphqlQueryCustomHeader(query, variables);
|
|
@@ -117,7 +117,7 @@ class PaymentLVService extends serviceSDK_1.Service {
|
|
|
117
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
118
|
const query = queries_1.PAYMENT_METHODS;
|
|
119
119
|
const variables = {
|
|
120
|
-
partnerCode: this.orgId
|
|
120
|
+
partnerCode: this.orgId
|
|
121
121
|
};
|
|
122
122
|
try {
|
|
123
123
|
const response = yield this.graphqlQueryCustomHeader(query, variables);
|
|
@@ -133,7 +133,7 @@ class PaymentLVService extends serviceSDK_1.Service {
|
|
|
133
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
134
134
|
const query = queries_1.PAYMENT_STATUS;
|
|
135
135
|
const variables = {
|
|
136
|
-
paymentId
|
|
136
|
+
paymentId
|
|
137
137
|
};
|
|
138
138
|
try {
|
|
139
139
|
const response = yield this.graphqlQueryCustomHeader(query, variables);
|
|
@@ -145,5 +145,53 @@ class PaymentLVService extends serviceSDK_1.Service {
|
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
+
registerAutoDebit(cashAccountId) {
|
|
149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
try {
|
|
151
|
+
const response = yield this.graphqlMutationV2(mutations_1.REGISTER_AUTO_DEBIT, cashAccountId);
|
|
152
|
+
return response.registerAutoDebit;
|
|
153
|
+
}
|
|
154
|
+
catch (error) {
|
|
155
|
+
console.log(`Error mutation registerAutoDebit: ${error}`);
|
|
156
|
+
throw error;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
confirmRegisterAutoDebit(cashAccountId, otp) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
try {
|
|
163
|
+
const response = yield this.graphqlMutationV2(mutations_1.CONFIRM_REGISTER_AUTO_DEBIT, { cashAccountId, otp });
|
|
164
|
+
return response.confirmRegisterAutoDebit;
|
|
165
|
+
}
|
|
166
|
+
catch (error) {
|
|
167
|
+
console.log(`Error mutation confirmRegisterAutoDebit: ${error}`);
|
|
168
|
+
throw error;
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
cancelAutoDebit(cashAccountId) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
try {
|
|
175
|
+
const response = yield this.graphqlMutationV2(mutations_1.CANCEL_AUTO_DEBIT, cashAccountId);
|
|
176
|
+
return response.cancelAutoDebit;
|
|
177
|
+
}
|
|
178
|
+
catch (error) {
|
|
179
|
+
console.log(`Error mutation cancelAutoDebit: ${error}`);
|
|
180
|
+
throw error;
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
confirmCancelAutoDebit(cashAccountId, otp) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
try {
|
|
187
|
+
const response = yield this.graphqlMutationV2(mutations_1.CONFIRM_CANCEL_AUTO_DEBIT, { cashAccountId, otp });
|
|
188
|
+
return response.confirmCancelAutoDebit;
|
|
189
|
+
}
|
|
190
|
+
catch (error) {
|
|
191
|
+
console.log(`Error mutation confirmCancelAutoDebit: ${error}`);
|
|
192
|
+
throw error;
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
}
|
|
148
196
|
}
|
|
149
197
|
exports.PaymentLVService = PaymentLVService;
|