@longvansoftware/service-js-client 1.13.0 → 1.13.2
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/computing/mutations.js +1 -0
- package/dist/src/graphql/computing/queries.js +5 -0
- package/dist/src/graphql/orderGraphQL/queries.d.ts +1 -0
- package/dist/src/graphql/orderGraphQL/queries.js +7 -1
- package/dist/src/lib/orderGraphQL/index.d.ts +1 -0
- package/dist/src/lib/orderGraphQL/index.js +17 -0
- package/package.json +1 -1
@@ -11,6 +11,7 @@ exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
|
|
11
11
|
password
|
12
12
|
state
|
13
13
|
os
|
14
|
+
templateId
|
14
15
|
ips
|
15
16
|
province
|
16
17
|
existPortNat
|
@@ -228,6 +229,7 @@ exports.GET_COMPUTINGS = (0, graphql_tag_1.gql) `
|
|
228
229
|
password
|
229
230
|
state
|
230
231
|
os
|
232
|
+
templateId
|
231
233
|
ips
|
232
234
|
province
|
233
235
|
existPortNat
|
@@ -275,6 +277,7 @@ exports.GET_LAB_INSTANCE = (0, graphql_tag_1.gql) `
|
|
275
277
|
password
|
276
278
|
state
|
277
279
|
os
|
280
|
+
templateId
|
278
281
|
ips
|
279
282
|
province
|
280
283
|
existPortNat
|
@@ -328,6 +331,7 @@ exports.GET_COMPUTING_BY_CLUSTER = (0, graphql_tag_1.gql) `
|
|
328
331
|
password
|
329
332
|
state
|
330
333
|
os
|
334
|
+
templateId
|
331
335
|
ips
|
332
336
|
province
|
333
337
|
existPortNat
|
@@ -375,6 +379,7 @@ exports.GET_COMPUTING_BY_SERVICE = (0, graphql_tag_1.gql) `
|
|
375
379
|
password
|
376
380
|
state
|
377
381
|
os
|
382
|
+
templateId
|
378
383
|
ips
|
379
384
|
province
|
380
385
|
existPortNat
|
@@ -2,3 +2,4 @@ export declare const GET_ORDER_DETAIL: import("graphql").DocumentNode;
|
|
2
2
|
export declare const GET_QUANTITY_ORDER_LINEITEMS: import("graphql").DocumentNode;
|
3
3
|
export declare const GET_ORDER_LINE_ITEM_BY_SERVICE_ID: import("graphql").DocumentNode;
|
4
4
|
export declare const GET_ORDER_BY_SERVICE_ID: import("graphql").DocumentNode;
|
5
|
+
export declare const FIND_ORDER_BY_OWNER_PARTYID: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GET_ORDER_BY_SERVICE_ID = exports.GET_ORDER_LINE_ITEM_BY_SERVICE_ID = exports.GET_QUANTITY_ORDER_LINEITEMS = exports.GET_ORDER_DETAIL = void 0;
|
3
|
+
exports.FIND_ORDER_BY_OWNER_PARTYID = exports.GET_ORDER_BY_SERVICE_ID = exports.GET_ORDER_LINE_ITEM_BY_SERVICE_ID = exports.GET_QUANTITY_ORDER_LINEITEMS = exports.GET_ORDER_DETAIL = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.GET_ORDER_DETAIL = (0, graphql_tag_1.gql) `
|
6
6
|
query getOrderDetail($orderId: String!) {
|
@@ -135,6 +135,7 @@ exports.GET_ORDER_DETAIL = (0, graphql_tag_1.gql) `
|
|
135
135
|
}
|
136
136
|
itemType
|
137
137
|
}
|
138
|
+
serviceId
|
138
139
|
}
|
139
140
|
}
|
140
141
|
}
|
@@ -370,3 +371,8 @@ exports.GET_ORDER_BY_SERVICE_ID = (0, graphql_tag_1.gql) `
|
|
370
371
|
}
|
371
372
|
}
|
372
373
|
`;
|
374
|
+
exports.FIND_ORDER_BY_OWNER_PARTYID = (0, graphql_tag_1.gql) `
|
375
|
+
query FindOrderByOwnerPartyId($partnerId: String!, $ownerPartyId: String!) {
|
376
|
+
findOrderByOwnerPartyId(partnerId: $partnerId, ownerPartyId: $ownerPartyId)
|
377
|
+
}
|
378
|
+
`;
|
@@ -11,4 +11,5 @@ export declare class OrderGraphQLService extends Service {
|
|
11
11
|
getOrderByServiceId(serviceId: string): Promise<any>;
|
12
12
|
addToCart(serviceId: string, actorId: string, cartId: string): Promise<any>;
|
13
13
|
removeProductOptionOrderLineItem(orderLineItemId: string, optionId: string, updateBy: string): Promise<any>;
|
14
|
+
findOrderByOwnerPartyId(ownerPartyId: string): Promise<any>;
|
14
15
|
}
|
@@ -155,5 +155,22 @@ class OrderGraphQLService extends serviceSDK_1.Service {
|
|
155
155
|
}
|
156
156
|
});
|
157
157
|
}
|
158
|
+
findOrderByOwnerPartyId(ownerPartyId) {
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
160
|
+
const query = queries_1.FIND_ORDER_BY_OWNER_PARTYID;
|
161
|
+
const variables = {
|
162
|
+
partnerId: this.orgId,
|
163
|
+
ownerPartyId,
|
164
|
+
};
|
165
|
+
try {
|
166
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
167
|
+
return response.findOrderByOwnerPartyId;
|
168
|
+
}
|
169
|
+
catch (error) {
|
170
|
+
console.log(`Error in findOrderByOwnerPartyId: ${error}`);
|
171
|
+
throw error;
|
172
|
+
}
|
173
|
+
});
|
174
|
+
}
|
158
175
|
}
|
159
176
|
exports.OrderGraphQLService = OrderGraphQLService;
|