@longvansoftware/service-js-client 2.1.1 → 2.1.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.
@@ -16,4 +16,4 @@ export declare const SEND_OTP: DocumentNode;
16
16
  export declare const VALIDATE_OTP: DocumentNode;
17
17
  export declare const CREATE_USER_LOGIN: DocumentNode;
18
18
  export declare const CREATE_USER_DETAIL_WITHOUT_USER_LOGIN: DocumentNode;
19
- export declare const GET_PARTY_DETAIL_BY_PHONE: (fields?: string[]) => DocumentNode;
19
+ export declare const CREATE_PARTY_DETAIL: (fields?: string[]) => DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_PARTY_DETAIL_BY_PHONE = exports.CREATE_USER_DETAIL_WITHOUT_USER_LOGIN = exports.CREATE_USER_LOGIN = exports.VALIDATE_OTP = exports.SEND_OTP = exports.LINKING_USER_LOGIN_AND_USER_DETAIL = exports.CREATE_USER_DETAIL = exports.UPDATE_PROFILE = exports.CHECK_RESET_KEY = exports.CREATE_RESET_KEY = exports.LOGIN_v2 = exports.UPDATE_PASSWORD_MUTATION = exports.UPDATE_INFO_MUTATION = exports.RESET_PASSWORD_MUTATION = exports.VERIFY_CODE_MUTATION = exports.SEND_SMS_VERIFY_CODE_MUTATION = exports.REGISTER_MUTATION = exports.LOGIN_MUTATION = void 0;
3
+ exports.CREATE_PARTY_DETAIL = exports.CREATE_USER_DETAIL_WITHOUT_USER_LOGIN = exports.CREATE_USER_LOGIN = exports.VALIDATE_OTP = exports.SEND_OTP = exports.LINKING_USER_LOGIN_AND_USER_DETAIL = exports.CREATE_USER_DETAIL = exports.UPDATE_PROFILE = exports.CHECK_RESET_KEY = exports.CREATE_RESET_KEY = exports.LOGIN_v2 = exports.UPDATE_PASSWORD_MUTATION = exports.UPDATE_INFO_MUTATION = exports.RESET_PASSWORD_MUTATION = exports.VERIFY_CODE_MUTATION = exports.SEND_SMS_VERIFY_CODE_MUTATION = exports.REGISTER_MUTATION = exports.LOGIN_MUTATION = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.LOGIN_MUTATION = (0, graphql_tag_1.gql) `
6
6
  mutation Login($loginRequest: LoginRequest!) {
@@ -238,15 +238,15 @@ exports.CREATE_USER_DETAIL_WITHOUT_USER_LOGIN = (0, graphql_tag_1.gql) `
238
238
  }
239
239
  }
240
240
  `;
241
- const GET_PARTY_DETAIL_BY_PHONE = (fields = []) => {
241
+ 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
- query createPartyDetail($name: String!, $phone: String!, $orgId: String!, $createdBy: String!, $source: String) {
245
+ mutation CreatePartyDetail($name: String!, $phone: String!, $orgId: String!, $createdBy: String!, $source: String) {
246
246
  createPartyDetail(name: $name ,phone: $phone, orgId: $orgId, createdBy: $createdBy, source: $source) {
247
247
  ${hasFields ? `${fieldStr}` : ""}
248
248
  }
249
249
  }
250
250
  `;
251
251
  };
252
- exports.GET_PARTY_DETAIL_BY_PHONE = GET_PARTY_DETAIL_BY_PHONE;
252
+ exports.CREATE_PARTY_DETAIL = CREATE_PARTY_DETAIL;
@@ -410,7 +410,7 @@ class AuthService extends serviceSDK_1.Service {
410
410
  }
411
411
  createPartyDetail(name, phone, createdBy, source, fields) {
412
412
  return __awaiter(this, void 0, void 0, function* () {
413
- const mutation = (0, queries_1.GET_PARTY_DETAIL_BY_PHONE)(fields);
413
+ const mutation = (0, mutations_1.CREATE_PARTY_DETAIL)(fields);
414
414
  const variables = {
415
415
  name,
416
416
  phone,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [