@longvansoftware/storefront-js-client 2.9.0 → 2.9.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.
Files changed (33) hide show
  1. package/README.md +93 -93
  2. package/dist/src/graphql/auth/mutations.js +130 -130
  3. package/dist/src/graphql/auth/queries.js +55 -55
  4. package/dist/src/graphql/campaign/mutations.js +26 -26
  5. package/dist/src/graphql/campaign/queries.js +375 -375
  6. package/dist/src/graphql/cloud/mutations.js +103 -103
  7. package/dist/src/graphql/cloud/queries.js +112 -112
  8. package/dist/src/graphql/computing/mutations.js +96 -96
  9. package/dist/src/graphql/computing/queries.js +41 -41
  10. package/dist/src/graphql/crm/mutations.js +813 -813
  11. package/dist/src/graphql/crm/queries.js +661 -661
  12. package/dist/src/graphql/payment/mutations.d.ts +1 -0
  13. package/dist/src/graphql/payment/mutations.js +148 -125
  14. package/dist/src/graphql/payment/queries.d.ts +1 -0
  15. package/dist/src/graphql/payment/queries.js +112 -93
  16. package/dist/src/graphql/paymentV2/mutations.js +47 -47
  17. package/dist/src/graphql/paymentV2/queries.js +176 -176
  18. package/dist/src/graphql/product/mutations.js +94 -94
  19. package/dist/src/graphql/product/queries.js +464 -464
  20. package/dist/src/graphql/service/mutations.js +304 -304
  21. package/dist/src/graphql/service/queries.js +131 -131
  22. package/dist/src/graphql/user/mutations.js +142 -142
  23. package/dist/src/graphql/user/queries.js +298 -298
  24. package/dist/src/lib/order/index.d.ts +2 -1
  25. package/dist/src/lib/order/index.js +4 -4
  26. package/dist/src/lib/payment/index.d.ts +2 -0
  27. package/dist/src/lib/payment/index.js +33 -0
  28. package/dist/src/lib/serviceSDK.js +12 -12
  29. package/dist/src/lib/shareZalo/index.d.ts +5 -0
  30. package/dist/src/lib/shareZalo/index.js +32 -0
  31. package/dist/src/lib/zca/index.d.ts +1 -1
  32. package/dist/src/lib/zca/index.js +2 -2
  33. package/package.json +43 -43
package/README.md CHANGED
@@ -1,93 +1,93 @@
1
- # storefront-js-client
2
-
3
-
4
-
5
- ## Getting started
6
-
7
- To make it easy for you to get started with GitLab, here's a list of recommended next steps.
8
-
9
- Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
10
-
11
- ## Add your files
12
-
13
- - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14
- - [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
15
-
16
- ```
17
- cd existing_repo
18
- git remote add origin https://gitlab.longvan.vn/long-van-platform-2.0/website/storefront-js-client.git
19
- git branch -M main
20
- git push -uf origin main
21
- ```
22
-
23
- ## Integrate with your tools
24
-
25
- - [ ] [Set up project integrations](https://gitlab.longvan.vn/long-van-platform-2.0/website/storefront-js-client/-/settings/integrations)
26
-
27
- ## Collaborate with your team
28
-
29
- - [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30
- - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31
- - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32
- - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33
- - [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
34
-
35
- ## Test and Deploy
36
-
37
- Use the built-in continuous integration in GitLab.
38
-
39
- - [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40
- - [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41
- - [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42
- - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43
- - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
44
-
45
- ***
46
-
47
- # Editing this README
48
-
49
- When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
50
-
51
- ## Suggestions for a good README
52
-
53
- Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
54
-
55
- ## Name
56
- Choose a self-explaining name for your project.
57
-
58
- ## Description
59
- Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
60
-
61
- ## Badges
62
- On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
63
-
64
- ## Visuals
65
- Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
66
-
67
- ## Installation
68
- Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
69
-
70
- ## Usage
71
- Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
72
-
73
- ## Support
74
- Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
75
-
76
- ## Roadmap
77
- If you have ideas for releases in the future, it is a good idea to list them in the README.
78
-
79
- ## Contributing
80
- State if you are open to contributions and what your requirements are for accepting them.
81
-
82
- For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
83
-
84
- You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
85
-
86
- ## Authors and acknowledgment
87
- Show your appreciation to those who have contributed to the project.
88
-
89
- ## License
90
- For open source projects, say how it is licensed.
91
-
92
- ## Project status
93
- If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
1
+ # storefront-js-client
2
+
3
+
4
+
5
+ ## Getting started
6
+
7
+ To make it easy for you to get started with GitLab, here's a list of recommended next steps.
8
+
9
+ Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
10
+
11
+ ## Add your files
12
+
13
+ - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14
+ - [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
15
+
16
+ ```
17
+ cd existing_repo
18
+ git remote add origin https://gitlab.longvan.vn/long-van-platform-2.0/website/storefront-js-client.git
19
+ git branch -M main
20
+ git push -uf origin main
21
+ ```
22
+
23
+ ## Integrate with your tools
24
+
25
+ - [ ] [Set up project integrations](https://gitlab.longvan.vn/long-van-platform-2.0/website/storefront-js-client/-/settings/integrations)
26
+
27
+ ## Collaborate with your team
28
+
29
+ - [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30
+ - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31
+ - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32
+ - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33
+ - [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
34
+
35
+ ## Test and Deploy
36
+
37
+ Use the built-in continuous integration in GitLab.
38
+
39
+ - [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40
+ - [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41
+ - [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42
+ - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43
+ - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
44
+
45
+ ***
46
+
47
+ # Editing this README
48
+
49
+ When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
50
+
51
+ ## Suggestions for a good README
52
+
53
+ Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
54
+
55
+ ## Name
56
+ Choose a self-explaining name for your project.
57
+
58
+ ## Description
59
+ Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
60
+
61
+ ## Badges
62
+ On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
63
+
64
+ ## Visuals
65
+ Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
66
+
67
+ ## Installation
68
+ Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
69
+
70
+ ## Usage
71
+ Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
72
+
73
+ ## Support
74
+ Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
75
+
76
+ ## Roadmap
77
+ If you have ideas for releases in the future, it is a good idea to list them in the README.
78
+
79
+ ## Contributing
80
+ State if you are open to contributions and what your requirements are for accepting them.
81
+
82
+ For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
83
+
84
+ You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
85
+
86
+ ## Authors and acknowledgment
87
+ Show your appreciation to those who have contributed to the project.
88
+
89
+ ## License
90
+ For open source projects, say how it is licensed.
91
+
92
+ ## Project status
93
+ If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
@@ -2,143 +2,143 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CREATE_USER_DETAIL_MUTATION = exports.LINKING_USER_LOGIN_AND_USER_DETAIL_MUTATION = exports.UPDATE_PROFILE_MUTATION = 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
- exports.LOGIN_MUTATION = (0, graphql_tag_1.gql) `
6
- mutation Login($loginRequest: LoginRequest!) {
7
- login(loginRequest: $loginRequest) {
8
- partyId
9
- orgId
10
- fullName
11
- email
12
- phone
13
- address
14
- identityNumber
15
- gender
16
- birthDate
17
- avatarUrl
18
- accessToken
19
- username
20
- orgPermissionsMap
21
- orgPositionsMap
22
- orgRolesMap
23
- }
24
- }
5
+ exports.LOGIN_MUTATION = (0, graphql_tag_1.gql) `
6
+ mutation Login($loginRequest: LoginRequest!) {
7
+ login(loginRequest: $loginRequest) {
8
+ partyId
9
+ orgId
10
+ fullName
11
+ email
12
+ phone
13
+ address
14
+ identityNumber
15
+ gender
16
+ birthDate
17
+ avatarUrl
18
+ accessToken
19
+ username
20
+ orgPermissionsMap
21
+ orgPositionsMap
22
+ orgRolesMap
23
+ }
24
+ }
25
25
  `;
26
- exports.REGISTER_MUTATION = (0, graphql_tag_1.gql) `
27
- mutation Register($orgId: String!, $registerRequest: RegisterRequest!) {
28
- register(orgId: $orgId, registerRequest: $registerRequest) {
29
- id
30
- partyId
31
- type
32
- username
33
- status
34
- accessToken
35
- }
36
- }
26
+ exports.REGISTER_MUTATION = (0, graphql_tag_1.gql) `
27
+ mutation Register($orgId: String!, $registerRequest: RegisterRequest!) {
28
+ register(orgId: $orgId, registerRequest: $registerRequest) {
29
+ id
30
+ partyId
31
+ type
32
+ username
33
+ status
34
+ accessToken
35
+ }
36
+ }
37
37
  `;
38
- exports.SEND_SMS_VERIFY_CODE_MUTATION = (0, graphql_tag_1.gql) `
39
- mutation SendSmsVerifyCode($orgId: String!, $username: String!) {
40
- sendSmsVerifyCode(orgId: $orgId, username: $username) {
41
- id
42
- code
43
- username
44
- timeExpired
45
- }
46
- }
38
+ exports.SEND_SMS_VERIFY_CODE_MUTATION = (0, graphql_tag_1.gql) `
39
+ mutation SendSmsVerifyCode($orgId: String!, $username: String!) {
40
+ sendSmsVerifyCode(orgId: $orgId, username: $username) {
41
+ id
42
+ code
43
+ username
44
+ timeExpired
45
+ }
46
+ }
47
47
  `;
48
- exports.VERIFY_CODE_MUTATION = (0, graphql_tag_1.gql) `
49
- mutation VerifyCode($orgId: String!, $verifyCodeRequest: VerifyCodeRequest!) {
50
- verifyCode(orgId: $orgId, verifyCodeRequest: $verifyCodeRequest)
51
- }
48
+ exports.VERIFY_CODE_MUTATION = (0, graphql_tag_1.gql) `
49
+ mutation VerifyCode($orgId: String!, $verifyCodeRequest: VerifyCodeRequest!) {
50
+ verifyCode(orgId: $orgId, verifyCodeRequest: $verifyCodeRequest)
51
+ }
52
52
  `;
53
- exports.RESET_PASSWORD_MUTATION = (0, graphql_tag_1.gql) `
54
- mutation ResetPassword(
55
- $orgId: String!
56
- $username: String!
57
- $newPassword: String!
58
- $accessToken: String!
59
- ) {
60
- resetPassword(
61
- orgId: $orgId
62
- username: $username
63
- newPassword: $newPassword
64
- accessToken: $accessToken
65
- )
66
- }
53
+ exports.RESET_PASSWORD_MUTATION = (0, graphql_tag_1.gql) `
54
+ mutation ResetPassword(
55
+ $orgId: String!
56
+ $username: String!
57
+ $newPassword: String!
58
+ $accessToken: String!
59
+ ) {
60
+ resetPassword(
61
+ orgId: $orgId
62
+ username: $username
63
+ newPassword: $newPassword
64
+ accessToken: $accessToken
65
+ )
66
+ }
67
67
  `;
68
- exports.UPDATE_INFO_MUTATION = (0, graphql_tag_1.gql) `
69
- mutation UpdateInfo(
70
- $orgId: String
71
- $accessToken: String
72
- $updateUserRequest: UpdateUserRequest
73
- $type: String
74
- $password: String
75
- ) {
76
- updateInfo(
77
- orgId: $orgId
78
- accessToken: $accessToken
79
- updateUserRequest: $updateUserRequest
80
- type: $type
81
- password: $password
82
- ) {
83
- partyId
84
- fullName
85
- email
86
- phone
87
- address
88
- identityNumber
89
- gender
90
- birthDate
91
- avatarUrl
92
- }
93
- }
68
+ exports.UPDATE_INFO_MUTATION = (0, graphql_tag_1.gql) `
69
+ mutation UpdateInfo(
70
+ $orgId: String
71
+ $accessToken: String
72
+ $updateUserRequest: UpdateUserRequest
73
+ $type: String
74
+ $password: String
75
+ ) {
76
+ updateInfo(
77
+ orgId: $orgId
78
+ accessToken: $accessToken
79
+ updateUserRequest: $updateUserRequest
80
+ type: $type
81
+ password: $password
82
+ ) {
83
+ partyId
84
+ fullName
85
+ email
86
+ phone
87
+ address
88
+ identityNumber
89
+ gender
90
+ birthDate
91
+ avatarUrl
92
+ }
93
+ }
94
94
  `;
95
- exports.UPDATE_PASSWORD_MUTATION = `
96
- mutation UpdatePassword($orgId: String!, $accessToken: String!, $currentPassword: String!, $newPassword: String!) {
97
- updatePassword(orgId: $orgId, accessToken: $accessToken, currentPassword: $currentPassword, newPassword: $newPassword)
98
- }
95
+ exports.UPDATE_PASSWORD_MUTATION = `
96
+ mutation UpdatePassword($orgId: String!, $accessToken: String!, $currentPassword: String!, $newPassword: String!) {
97
+ updatePassword(orgId: $orgId, accessToken: $accessToken, currentPassword: $currentPassword, newPassword: $newPassword)
98
+ }
99
99
  `;
100
- exports.UPDATE_PROFILE_MUTATION = (0, graphql_tag_1.gql) `
101
- mutation UpdateProfile(
102
- $userLoginId: String!
103
- $name: String!
104
- $phone: String!
105
- $email: String
106
- ) {
107
- updateProfile(
108
- userLoginId: $userLoginId
109
- name: $name
110
- phone: $phone
111
- email: $email
112
- )
113
- }
100
+ exports.UPDATE_PROFILE_MUTATION = (0, graphql_tag_1.gql) `
101
+ mutation UpdateProfile(
102
+ $userLoginId: String!
103
+ $name: String!
104
+ $phone: String!
105
+ $email: String
106
+ ) {
107
+ updateProfile(
108
+ userLoginId: $userLoginId
109
+ name: $name
110
+ phone: $phone
111
+ email: $email
112
+ )
113
+ }
114
114
  `;
115
- exports.LINKING_USER_LOGIN_AND_USER_DETAIL_MUTATION = (0, graphql_tag_1.gql) `
116
- mutation LinkingUserLoginAndUserDetail(
117
- $userLoginId: String!
118
- $partyId: String!
119
- ) {
120
- linkingUserLoginAndUserDetail(userLoginId: $userLoginId, partyId: $partyId)
121
- }
115
+ exports.LINKING_USER_LOGIN_AND_USER_DETAIL_MUTATION = (0, graphql_tag_1.gql) `
116
+ mutation LinkingUserLoginAndUserDetail(
117
+ $userLoginId: String!
118
+ $partyId: String!
119
+ ) {
120
+ linkingUserLoginAndUserDetail(userLoginId: $userLoginId, partyId: $partyId)
121
+ }
122
122
  `;
123
- exports.CREATE_USER_DETAIL_MUTATION = (0, graphql_tag_1.gql) `
124
- mutation CreateUserDetail($userLoginId: String!, $partnerId: String!) {
125
- createUserDetail(userLoginId: $userLoginId, partnerId: $partnerId) {
126
- partyId
127
- orgId
128
- fullName
129
- email
130
- phone
131
- address
132
- identityNumber
133
- gender
134
- birthDate
135
- avatarUrl
136
- accessToken
137
- username
138
- readyV2
139
- orgPermissionsMap
140
- orgPositionsMap
141
- orgRolesMap
142
- }
143
- }
123
+ exports.CREATE_USER_DETAIL_MUTATION = (0, graphql_tag_1.gql) `
124
+ mutation CreateUserDetail($userLoginId: String!, $partnerId: String!) {
125
+ createUserDetail(userLoginId: $userLoginId, partnerId: $partnerId) {
126
+ partyId
127
+ orgId
128
+ fullName
129
+ email
130
+ phone
131
+ address
132
+ identityNumber
133
+ gender
134
+ birthDate
135
+ avatarUrl
136
+ accessToken
137
+ username
138
+ readyV2
139
+ orgPermissionsMap
140
+ orgPositionsMap
141
+ orgRolesMap
142
+ }
143
+ }
144
144
  `;
@@ -2,36 +2,36 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LOGIN_ZALO = exports.LOGIN_FACEBOOK = exports.LOGIN_GOOGLE = exports.CHECK_USERNAME_EXISTED = exports.GET_USER_LOGIN_BY_USER_LOGIN_ID = exports.GET_USER_LOGIN_BY_TOKEN = exports.GET_USER_DETAIL = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.GET_USER_DETAIL = (0, graphql_tag_1.gql) `
6
- query GetUserDetail($orgId: String!, $accessToken: String!) {
7
- getUserDetail(orgId: $orgId, accessToken: $accessToken) {
8
- partyId
9
- orgId
10
- fullName
11
- email
12
- phone
13
- address
14
- identityNumber
15
- gender
16
- birthDate
17
- avatarUrl
18
- accessToken
19
- username
20
- orgPermissionsMap
21
- orgPositionsMap
22
- orgRolesMap
23
- }
24
- }
5
+ exports.GET_USER_DETAIL = (0, graphql_tag_1.gql) `
6
+ query GetUserDetail($orgId: String!, $accessToken: String!) {
7
+ getUserDetail(orgId: $orgId, accessToken: $accessToken) {
8
+ partyId
9
+ orgId
10
+ fullName
11
+ email
12
+ phone
13
+ address
14
+ identityNumber
15
+ gender
16
+ birthDate
17
+ avatarUrl
18
+ accessToken
19
+ username
20
+ orgPermissionsMap
21
+ orgPositionsMap
22
+ orgRolesMap
23
+ }
24
+ }
25
25
  `;
26
- exports.GET_USER_LOGIN_BY_TOKEN = (0, graphql_tag_1.gql) `
27
- query GetUserLoginByToken($accessToken: String!) {
28
- getUserLoginByToken(accessToken: $accessToken) {
29
- id
30
- status
31
- partyId
32
- userLoginId
33
- }
34
- }
26
+ exports.GET_USER_LOGIN_BY_TOKEN = (0, graphql_tag_1.gql) `
27
+ query GetUserLoginByToken($accessToken: String!) {
28
+ getUserLoginByToken(accessToken: $accessToken) {
29
+ id
30
+ status
31
+ partyId
32
+ userLoginId
33
+ }
34
+ }
35
35
  `;
36
36
  // query GetUserLoginByUserLoginId {
37
37
  // getUserLoginByUserLoginId(userLoginId: "0971879660") {
@@ -42,34 +42,34 @@ exports.GET_USER_LOGIN_BY_TOKEN = (0, graphql_tag_1.gql) `
42
42
  // partyId
43
43
  // }
44
44
  // }
45
- exports.GET_USER_LOGIN_BY_USER_LOGIN_ID = (0, graphql_tag_1.gql) `
46
- query GetUserLoginByUserLoginId($userLoginId: String!) {
47
- getUserLoginByUserLoginId(userLoginId: $userLoginId) {
48
- id
49
- userLoginId
50
- accessToken
51
- status
52
- partyId
53
- }
54
- }
45
+ exports.GET_USER_LOGIN_BY_USER_LOGIN_ID = (0, graphql_tag_1.gql) `
46
+ query GetUserLoginByUserLoginId($userLoginId: String!) {
47
+ getUserLoginByUserLoginId(userLoginId: $userLoginId) {
48
+ id
49
+ userLoginId
50
+ accessToken
51
+ status
52
+ partyId
53
+ }
54
+ }
55
55
  `;
56
- exports.CHECK_USERNAME_EXISTED = (0, graphql_tag_1.gql) `
57
- query CheckUsernameExisted($username: String!, $orgId: String!) {
58
- checkUsernameExisted(username: $username, orgId: $orgId)
59
- }
56
+ exports.CHECK_USERNAME_EXISTED = (0, graphql_tag_1.gql) `
57
+ query CheckUsernameExisted($username: String!, $orgId: String!) {
58
+ checkUsernameExisted(username: $username, orgId: $orgId)
59
+ }
60
60
  `;
61
- exports.LOGIN_GOOGLE = (0, graphql_tag_1.gql) `
62
- query LoginGoogle($orgId: String!, $type: String!, $redirectUrl: String!) {
63
- loginGoogle(orgId: $orgId, type: $type, redirectUrl: $redirectUrl)
64
- }
61
+ exports.LOGIN_GOOGLE = (0, graphql_tag_1.gql) `
62
+ query LoginGoogle($orgId: String!, $type: String!, $redirectUrl: String!) {
63
+ loginGoogle(orgId: $orgId, type: $type, redirectUrl: $redirectUrl)
64
+ }
65
65
  `;
66
- exports.LOGIN_FACEBOOK = (0, graphql_tag_1.gql) `
67
- query LoginFacebook($orgId: String!, $type: String!, $redirectUrl: String!) {
68
- loginFacebook(orgId: $orgId, type: $type, redirectUrl: $redirectUrl)
69
- }
66
+ exports.LOGIN_FACEBOOK = (0, graphql_tag_1.gql) `
67
+ query LoginFacebook($orgId: String!, $type: String!, $redirectUrl: String!) {
68
+ loginFacebook(orgId: $orgId, type: $type, redirectUrl: $redirectUrl)
69
+ }
70
70
  `;
71
- exports.LOGIN_ZALO = (0, graphql_tag_1.gql) `
72
- query LoginZalo($orgId: String!, $type: String!, $redirectUrl: String!) {
73
- loginZalo(orgId: $orgId, type: $type, redirectUrl: $redirectUrl)
74
- }
71
+ exports.LOGIN_ZALO = (0, graphql_tag_1.gql) `
72
+ query LoginZalo($orgId: String!, $type: String!, $redirectUrl: String!) {
73
+ loginZalo(orgId: $orgId, type: $type, redirectUrl: $redirectUrl)
74
+ }
75
75
  `;
@@ -5,30 +5,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ADD_CUSTOMER_ID_INTO_VOUCHER = void 0;
7
7
  const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
- exports.ADD_CUSTOMER_ID_INTO_VOUCHER = (0, graphql_tag_1.default) `
9
- mutation AddCustomerToVoucher(
10
- $partyId: String!
11
- $voucherCode: String!
12
- $userId: String!
13
- $affiliateId: String
14
- ) {
15
- addCustomerToVoucher(
16
- partyId: $partyId
17
- voucherCode: $voucherCode
18
- userId: $userId
19
- affiliateId: $affiliateId
20
- ) {
21
- id
22
- customerId
23
- campaignActionId
24
- campaignId
25
- partyId
26
- voucherCode
27
- voucherType
28
- status
29
- discountAmount
30
- discountPercent
31
- usageLimitPerVoucher
32
- }
33
- }
8
+ exports.ADD_CUSTOMER_ID_INTO_VOUCHER = (0, graphql_tag_1.default) `
9
+ mutation AddCustomerToVoucher(
10
+ $partyId: String!
11
+ $voucherCode: String!
12
+ $userId: String!
13
+ $affiliateId: String
14
+ ) {
15
+ addCustomerToVoucher(
16
+ partyId: $partyId
17
+ voucherCode: $voucherCode
18
+ userId: $userId
19
+ affiliateId: $affiliateId
20
+ ) {
21
+ id
22
+ customerId
23
+ campaignActionId
24
+ campaignId
25
+ partyId
26
+ voucherCode
27
+ voucherType
28
+ status
29
+ discountAmount
30
+ discountPercent
31
+ usageLimitPerVoucher
32
+ }
33
+ }
34
34
  `;