@longvansoftware/storefront-js-client 1.0.17 → 1.0.19

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.
@@ -2,86 +2,86 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UPDATE_CUSTOMER_V2 = exports.UPDATE_COMPANY_INFOR = exports.CREATE_COMPANY = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.CREATE_COMPANY = (0, graphql_tag_1.gql) `
6
- mutation CreateCompany(
7
- $createCompanyRequest: CreateCompanyRequest!,
8
- $createTaxCodeRequest: CreateTaxCodeRequest,
9
- $orgId: String!,
10
- $createdBy: String!
11
- ) {
12
- createCompany(
13
- createCompanyRequest: $createCompanyRequest,
14
- createTaxCodeRequest: $createTaxCodeRequest,
15
- orgId: $orgId,
16
- createdBy: $createdBy
17
- ) {
18
- id
19
- name
20
- address
21
- gender
22
- identityNumber
23
- birthDate
24
- email
25
- phone
26
- createdStamp
27
- createdBy
28
- memberLevel
29
- }
30
- }
5
+ exports.CREATE_COMPANY = (0, graphql_tag_1.gql) `
6
+ mutation CreateCompany(
7
+ $createCompanyRequest: CreateCompanyRequest!,
8
+ $createTaxCodeRequest: CreateTaxCodeRequest,
9
+ $orgId: String!,
10
+ $createdBy: String!
11
+ ) {
12
+ createCompany(
13
+ createCompanyRequest: $createCompanyRequest,
14
+ createTaxCodeRequest: $createTaxCodeRequest,
15
+ orgId: $orgId,
16
+ createdBy: $createdBy
17
+ ) {
18
+ id
19
+ name
20
+ address
21
+ gender
22
+ identityNumber
23
+ birthDate
24
+ email
25
+ phone
26
+ createdStamp
27
+ createdBy
28
+ memberLevel
29
+ }
30
+ }
31
31
  `;
32
- exports.UPDATE_COMPANY_INFOR = (0, graphql_tag_1.gql) `
33
- mutation UpdateCompanyInfo(
34
- $id: String!,
35
- $fieldName: String!,
36
- $valueUpdate: String!,
37
- $orgId: String!,
38
- $updatedBy: String!
39
- ) {
40
- updateCompanyInfo(
41
- id: $id,
42
- fieldName: $fieldName,
43
- valueUpdate: $valueUpdate,
44
- orgId: $orgId,
45
- updatedBy: $updatedBy
46
- ) {
47
- id
48
- name
49
- address
50
- gender
51
- identityNumber
52
- birthDate
53
- email
54
- phone
55
- createdStamp
56
- createdBy
57
- memberLevel
58
- }
59
- }
32
+ exports.UPDATE_COMPANY_INFOR = (0, graphql_tag_1.gql) `
33
+ mutation UpdateCompanyInfo(
34
+ $id: String!,
35
+ $fieldName: String!,
36
+ $valueUpdate: String!,
37
+ $orgId: String!,
38
+ $updatedBy: String!
39
+ ) {
40
+ updateCompanyInfo(
41
+ id: $id,
42
+ fieldName: $fieldName,
43
+ valueUpdate: $valueUpdate,
44
+ orgId: $orgId,
45
+ updatedBy: $updatedBy
46
+ ) {
47
+ id
48
+ name
49
+ address
50
+ gender
51
+ identityNumber
52
+ birthDate
53
+ email
54
+ phone
55
+ createdStamp
56
+ createdBy
57
+ memberLevel
58
+ }
59
+ }
60
60
  `;
61
- exports.UPDATE_CUSTOMER_V2 = (0, graphql_tag_1.gql) `
62
- mutation UpdateCustomerV2(
63
- $id: String!,
64
- $updateCustomerRequest: UpdateCustomerRequest!,
65
- $tenantId: String!,
66
- $updatedBy: String!
67
- ) {
68
- updateCustomerV2(
69
- id: $id,
70
- updateCustomerRequest: $updateCustomerRequest,
71
- tenantId: $tenantId,
72
- updatedBy: $updatedBy
73
- ) {
74
- id
75
- name
76
- address
77
- gender
78
- identityNumber
79
- birthDate
80
- email
81
- phone
82
- createdStamp
83
- createdBy
84
- memberLevel
85
- }
86
- }
61
+ exports.UPDATE_CUSTOMER_V2 = (0, graphql_tag_1.gql) `
62
+ mutation UpdateCustomerV2(
63
+ $id: String!,
64
+ $updateCustomerRequest: UpdateCustomerRequest!,
65
+ $tenantId: String!,
66
+ $updatedBy: String!
67
+ ) {
68
+ updateCustomerV2(
69
+ id: $id,
70
+ updateCustomerRequest: $updateCustomerRequest,
71
+ tenantId: $tenantId,
72
+ updatedBy: $updatedBy
73
+ ) {
74
+ id
75
+ name
76
+ address
77
+ gender
78
+ identityNumber
79
+ birthDate
80
+ email
81
+ phone
82
+ createdStamp
83
+ createdBy
84
+ memberLevel
85
+ }
86
+ }
87
87
  `;
@@ -2,49 +2,49 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GET_CUSTOMER_BY_ID = exports.GET_PERSON_BY_IDS_QUERY = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.GET_PERSON_BY_IDS_QUERY = (0, graphql_tag_1.gql) `
6
- query GetPersonByIds($partyIds: [String!]!) {
7
- getPersonByPartyIds(partyIds: $partyIds) {
8
- status
9
- partyId
10
- fullName
11
- phone
12
- address
13
- gender
14
- birthDate
15
- email
16
- personalTitle
17
- imageUrl
18
- identityNumber
19
- id
20
- addressModel {
21
- id
22
- addressInfo
23
- provinceGeoId
24
- districtGeoId
25
- wardGeoId
26
- provinceName
27
- districtName
28
- wardName
29
- isDefault
30
- }
31
- }
32
- }
5
+ exports.GET_PERSON_BY_IDS_QUERY = (0, graphql_tag_1.gql) `
6
+ query GetPersonByIds($partyIds: [String!]!) {
7
+ getPersonByPartyIds(partyIds: $partyIds) {
8
+ status
9
+ partyId
10
+ fullName
11
+ phone
12
+ address
13
+ gender
14
+ birthDate
15
+ email
16
+ personalTitle
17
+ imageUrl
18
+ identityNumber
19
+ id
20
+ addressModel {
21
+ id
22
+ addressInfo
23
+ provinceGeoId
24
+ districtGeoId
25
+ wardGeoId
26
+ provinceName
27
+ districtName
28
+ wardName
29
+ isDefault
30
+ }
31
+ }
32
+ }
33
33
  `;
34
- exports.GET_CUSTOMER_BY_ID = (0, graphql_tag_1.gql) `
35
- query GetCustomerById($id: String!){
36
- getCustomerById(id: $id) {
37
- id
38
- name
39
- address
40
- gender
41
- identityNumber
42
- birthDate
43
- email
44
- phone
45
- createdStamp
46
- createdBy
47
- memberLevel
48
- }
49
- }
34
+ exports.GET_CUSTOMER_BY_ID = (0, graphql_tag_1.gql) `
35
+ query GetCustomerById($id: String!){
36
+ getCustomerById(id: $id) {
37
+ id
38
+ name
39
+ address
40
+ gender
41
+ identityNumber
42
+ birthDate
43
+ email
44
+ phone
45
+ createdStamp
46
+ createdBy
47
+ memberLevel
48
+ }
49
+ }
50
50
  `;
@@ -39,8 +39,8 @@ class Service {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
40
  try {
41
41
  const { data, errors } = yield this.client.query({
42
- query: (0, client_1.gql) `
43
- ${query}
42
+ query: (0, client_1.gql) `
43
+ ${query}
44
44
  `,
45
45
  variables,
46
46
  });
@@ -59,8 +59,8 @@ class Service {
59
59
  return __awaiter(this, void 0, void 0, function* () {
60
60
  try {
61
61
  const { data, errors } = yield this.client.mutate({
62
- mutation: (0, client_1.gql) `
63
- ${mutation}
62
+ mutation: (0, client_1.gql) `
63
+ ${mutation}
64
64
  `,
65
65
  variables,
66
66
  });
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "@longvansoftware/storefront-js-client",
3
- "version": "1.0.17",
4
- "main": "dist/src/index.js",
5
- "types": "dist/src/index.d.ts",
6
- "files": [
7
- "dist/**/*.d.ts",
8
- "dist/**/*.js"
9
- ],
10
- "directories": {
11
- "test": "jest"
12
- },
13
- "scripts": {
14
- "test": "jest",
15
- "build": "tsc",
16
- "publish": "npm run build && npm publish"
17
- },
18
- "keywords": [],
19
- "author": "",
20
- "license": "ISC",
21
- "dependencies": {
22
- "@apollo/client": "^3.9.11",
23
- "apollo-boost": "^0.4.9",
24
- "axios": "^1.6.8",
25
- "crypto-js": "^4.2.0",
26
- "graphql": "^15.8.0",
27
- "graphql-request": "^6.1.0",
28
- "graphql-tag": "^2.12.6",
29
- "react": "^18.2.0",
30
- "ts-node": "^10.9.2"
31
- },
32
- "devDependencies": {
33
- "@types/axios": "^0.14.0",
34
- "@types/crypto-js": "^4.2.2",
35
- "@types/jest": "^29.5.12",
36
- "@types/node": "^20.12.7",
37
- "jest": "^29.7.0",
38
- "ts-jest": "^29.1.2",
39
- "typescript": "^5.4.5"
40
- },
41
- "description": ""
42
- }
1
+ {
2
+ "name": "@longvansoftware/storefront-js-client",
3
+ "version": "1.0.19",
4
+ "main": "dist/src/index.js",
5
+ "types": "dist/src/index.d.ts",
6
+ "files": [
7
+ "dist/**/*.d.ts",
8
+ "dist/**/*.js"
9
+ ],
10
+ "directories": {
11
+ "test": "jest"
12
+ },
13
+ "scripts": {
14
+ "test": "jest",
15
+ "build": "tsc",
16
+ "publish": "npm run build && npm publish"
17
+ },
18
+ "keywords": [],
19
+ "author": "",
20
+ "license": "ISC",
21
+ "dependencies": {
22
+ "@apollo/client": "3.7.11",
23
+ "apollo-boost": "^0.4.9",
24
+ "axios": "^1.6.8",
25
+ "crypto-js": "^4.2.0",
26
+ "graphql": "^15.8.0",
27
+ "graphql-request": "^6.1.0",
28
+ "graphql-tag": "^2.12.6",
29
+ "react": "^18.2.0",
30
+ "ts-node": "^10.9.2"
31
+ },
32
+ "devDependencies": {
33
+ "@types/axios": "^0.14.0",
34
+ "@types/crypto-js": "^4.2.2",
35
+ "@types/jest": "^29.5.12",
36
+ "@types/node": "^20.12.7",
37
+ "jest": "^29.7.0",
38
+ "ts-jest": "^29.1.2",
39
+ "typescript": "^5.4.5"
40
+ },
41
+ "description": ""
42
+ }