@longvansoftware/storefront-js-client 4.5.7 → 4.5.9
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.
|
@@ -1241,18 +1241,21 @@ exports.GET_PRODUCT_MARKET_PLACE = (0, graphql_tag_1.gql) `
|
|
|
1241
1241
|
$supplierId: String
|
|
1242
1242
|
$categoryId: String
|
|
1243
1243
|
$productId: String
|
|
1244
|
+
$handle: String
|
|
1244
1245
|
) {
|
|
1245
1246
|
getProductMarketplace(
|
|
1246
1247
|
storeChannel: $storeChannel
|
|
1247
1248
|
supplierId: $supplierId
|
|
1248
1249
|
categoryId: $categoryId
|
|
1249
1250
|
productId: $productId
|
|
1251
|
+
handle: $handle
|
|
1250
1252
|
) {
|
|
1251
1253
|
total
|
|
1252
1254
|
currentPage
|
|
1253
1255
|
maxResult
|
|
1254
1256
|
totalPage
|
|
1255
1257
|
data {
|
|
1258
|
+
partyId
|
|
1256
1259
|
id
|
|
1257
1260
|
title
|
|
1258
1261
|
subType
|
|
@@ -15,3 +15,4 @@ export declare const GET_WARDS: import("graphql").DocumentNode;
|
|
|
15
15
|
export declare const GET_PERSON_BY_PARTY_ID: import("graphql").DocumentNode;
|
|
16
16
|
export declare const GET_VAT_INFO_BY_OWNER_PARTYID: import("graphql").DocumentNode;
|
|
17
17
|
export declare const GET_RELATED_PARTIES: import("graphql").DocumentNode;
|
|
18
|
+
export declare const GET_PARTY_GROUP_BY_ID: import("graphql").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_RELATED_PARTIES = exports.GET_VAT_INFO_BY_OWNER_PARTYID = exports.GET_PERSON_BY_PARTY_ID = exports.GET_WARDS = exports.GET_DISTRICTS = exports.GET_WARDS_BY_PROVINCEID = exports.GET_PROVINCES = exports.GET_CONTACT_INFOS_BY_COMPANY_ID = exports.GET_COMPANY_BY_CONTACT_INFO_ID = exports.GET_EMPLOYEES_BY_STORE_CHANEL_ID = exports.GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID = exports.GET_POSTIONS_BY_EMPLOYEES_ID = exports.SEARCH_EMPLOYEES = exports.SEARCH_CUSTOMER = exports.GET_CUSTOMER_BY_ID = exports.SEARCH_COMPANY = exports.GET_PERSON_BY_IDS_QUERY = void 0;
|
|
3
|
+
exports.GET_PARTY_GROUP_BY_ID = exports.GET_RELATED_PARTIES = exports.GET_VAT_INFO_BY_OWNER_PARTYID = exports.GET_PERSON_BY_PARTY_ID = exports.GET_WARDS = exports.GET_DISTRICTS = exports.GET_WARDS_BY_PROVINCEID = exports.GET_PROVINCES = exports.GET_CONTACT_INFOS_BY_COMPANY_ID = exports.GET_COMPANY_BY_CONTACT_INFO_ID = exports.GET_EMPLOYEES_BY_STORE_CHANEL_ID = exports.GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID = exports.GET_POSTIONS_BY_EMPLOYEES_ID = exports.SEARCH_EMPLOYEES = exports.SEARCH_CUSTOMER = exports.GET_CUSTOMER_BY_ID = exports.SEARCH_COMPANY = exports.GET_PERSON_BY_IDS_QUERY = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.GET_PERSON_BY_IDS_QUERY = (0, graphql_tag_1.gql) `
|
|
6
6
|
query GetPersonByIds($partyIds: [String!]!) {
|
|
@@ -358,3 +358,15 @@ exports.GET_RELATED_PARTIES = (0, graphql_tag_1.gql) `
|
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
`;
|
|
361
|
+
exports.GET_PARTY_GROUP_BY_ID = (0, graphql_tag_1.gql) `
|
|
362
|
+
query GetPartyGroupById($id: String!) {
|
|
363
|
+
getPartyGroupById(id: $id) {
|
|
364
|
+
id
|
|
365
|
+
partyId
|
|
366
|
+
shortName
|
|
367
|
+
groupName
|
|
368
|
+
groupType
|
|
369
|
+
status
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
`;
|
|
@@ -27,4 +27,5 @@ export declare class UserService extends Service {
|
|
|
27
27
|
getRelatedParties(partyId: string): Promise<any>;
|
|
28
28
|
createRelatedParty(user: Record<string, any>): Promise<any>;
|
|
29
29
|
updateRelatedParty(relatedPartyId: string, partyId: string, updateRelatedPartyRequest: any, updatedBy: string): Promise<any>;
|
|
30
|
+
getPartyGroupById(partyId: string): Promise<any>;
|
|
30
31
|
}
|
|
@@ -458,5 +458,20 @@ class UserService extends serviceSDK_1.Service {
|
|
|
458
458
|
}
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
|
+
getPartyGroupById(partyId) {
|
|
462
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
463
|
+
const queries = queries_1.GET_PARTY_GROUP_BY_ID;
|
|
464
|
+
const variables = {
|
|
465
|
+
id: partyId,
|
|
466
|
+
};
|
|
467
|
+
try {
|
|
468
|
+
const response = yield this.graphqlQueryV2(queries, variables);
|
|
469
|
+
return response.getPartyGroupById;
|
|
470
|
+
}
|
|
471
|
+
catch (error) {
|
|
472
|
+
throw error;
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
}
|
|
461
476
|
}
|
|
462
477
|
exports.UserService = UserService;
|