@longvansoftware/service-js-client 2.4.1 → 2.4.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.
@@ -242,8 +242,8 @@ const CREATE_PARTY_DETAIL = (fields = []) => {
242
242
  const fieldStr = fields.join("\n ");
243
243
  const hasFields = fields.length > 0;
244
244
  return (0, graphql_tag_1.gql) `
245
- mutation CreatePartyDetail($name: String, $phone: String, $email: String, $orgId: String!, $createdBy: String!, $source: String) {
246
- createPartyDetail(name: $name ,phone: $phone, email: $email, orgId: $orgId, createdBy: $createdBy, source: $source) {
245
+ mutation CreatePartyDetail($name: String, $phone: String, $email: String, $orgId: String!, $isCreateUserLogin: Boolean, $createdBy: String!, $source: String) {
246
+ createPartyDetail(name: $name ,phone: $phone, email: $email, orgId: $orgId, isCreateUserLogin: $isCreateUserLogin, createdBy: $createdBy, source: $source) {
247
247
  ${hasFields ? `${fieldStr}` : ""}
248
248
  }
249
249
  }
@@ -46,7 +46,7 @@ export declare class AuthService extends Service {
46
46
  getEmailByPartyId(partyId: string): Promise<any>;
47
47
  getPartyDetailByPhone(phone: string, fields: string[]): Promise<any>;
48
48
  getPartyDetailByContactInfo(contactInfo: string, fields: string[]): Promise<any>;
49
- createPartyDetail(name: string, phone: string | null, email: string | null, createdBy: string, source: string, fields: string[]): Promise<any>;
49
+ createPartyDetail(name: string, phone: string | null, email: string | null, createdBy: string, isCreateUserLogin: boolean, source: string, fields: string[]): Promise<any>;
50
50
  getOrganizationsByPartyIdDynamic(partyId: string, fields: string[]): Promise<any>;
51
51
  checkEnabled2FA(partyId: string, fields: string[]): Promise<any>;
52
52
  logout(accessToken: string, partyId: string): Promise<any>;
@@ -425,7 +425,7 @@ class AuthService extends serviceSDK_1.Service {
425
425
  }
426
426
  });
427
427
  }
428
- createPartyDetail(name, phone, email, createdBy, source, fields) {
428
+ createPartyDetail(name, phone, email, createdBy, isCreateUserLogin, source, fields) {
429
429
  return __awaiter(this, void 0, void 0, function* () {
430
430
  const mutation = (0, mutations_1.CREATE_PARTY_DETAIL)(fields);
431
431
  const variables = {
@@ -433,6 +433,7 @@ class AuthService extends serviceSDK_1.Service {
433
433
  phone,
434
434
  email,
435
435
  orgId: this.orgId,
436
+ isCreateUserLogin,
436
437
  createdBy,
437
438
  source,
438
439
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [