@longvansoftware/service-js-client 1.2.4 → 1.2.5
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.
@@ -5,3 +5,4 @@ export declare const SERVICE_TYPE: import("graphql").DocumentNode;
|
|
5
5
|
export declare const SEARCH_SERVICE: import("graphql").DocumentNode;
|
6
6
|
export declare const GET_PRODUCTS_OF_SERVICE: import("graphql").DocumentNode;
|
7
7
|
export declare const GET_IPS_OF_SERVICE: import("graphql").DocumentNode;
|
8
|
+
export declare const GET_SERVICES_BY_ORDER_ID: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
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 = void 0;
|
3
|
+
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 = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.SERVICE_DETAIL = (0, graphql_tag_1.gql) `
|
6
6
|
query ServiceDetail($serviceId: String) {
|
@@ -129,3 +129,30 @@ exports.GET_IPS_OF_SERVICE = (0, graphql_tag_1.gql) `
|
|
129
129
|
getIpsOfService(serviceId: $serviceId)
|
130
130
|
}
|
131
131
|
`;
|
132
|
+
exports.GET_SERVICES_BY_ORDER_ID = (0, graphql_tag_1.gql) `
|
133
|
+
query GetServicesByOrderId($orderId: String!) {
|
134
|
+
getServicesByOrderId(orderId: $orderId) {
|
135
|
+
serviceId
|
136
|
+
partnerId
|
137
|
+
serviceName
|
138
|
+
type
|
139
|
+
typeName
|
140
|
+
status
|
141
|
+
ownerId
|
142
|
+
startDate
|
143
|
+
endDate
|
144
|
+
serviceType
|
145
|
+
actionRequest {
|
146
|
+
id
|
147
|
+
name
|
148
|
+
uri
|
149
|
+
type
|
150
|
+
}
|
151
|
+
urlPrivate
|
152
|
+
urlPublic
|
153
|
+
username
|
154
|
+
password
|
155
|
+
attrs
|
156
|
+
}
|
157
|
+
}
|
158
|
+
`;
|
@@ -276,5 +276,21 @@ class CloudService extends serviceSDK_1.Service {
|
|
276
276
|
}
|
277
277
|
});
|
278
278
|
}
|
279
|
+
getServicesByOrderId(orderId) {
|
280
|
+
return __awaiter(this, void 0, void 0, function* () {
|
281
|
+
const query = queries_1.GET_SERVICES_BY_ORDER_ID;
|
282
|
+
const variables = {
|
283
|
+
orderId,
|
284
|
+
};
|
285
|
+
try {
|
286
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
287
|
+
return response.getServicesByOrderId;
|
288
|
+
}
|
289
|
+
catch (error) {
|
290
|
+
console.log(`Error in getServicesByOrderId: ${error}`);
|
291
|
+
throw error;
|
292
|
+
}
|
293
|
+
});
|
294
|
+
}
|
279
295
|
}
|
280
296
|
exports.CloudService = CloudService;
|