@longvansoftware/storefront-js-client 4.5.8 → 4.6.0
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.
|
@@ -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,14 @@ 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
|
+
shortName
|
|
366
|
+
groupName
|
|
367
|
+
groupType
|
|
368
|
+
status
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
`;
|
|
@@ -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;
|