@longvansoftware/storefront-js-client 0.0.1 → 0.0.3

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 (30) hide show
  1. package/README.md +93 -93
  2. package/dist/constants/graphql/mutations/authorizationMutations.d.ts +7 -0
  3. package/dist/constants/graphql/mutations/authorizationMutations.js +99 -0
  4. package/dist/constants/graphql/mutations/crmMutations.d.ts +8 -0
  5. package/dist/constants/graphql/mutations/crmMutations.js +368 -0
  6. package/dist/constants/graphql/mutations/userMutations.d.ts +4 -0
  7. package/dist/constants/graphql/mutations/userMutations.js +116 -0
  8. package/dist/constants/graphql/queries/crmQueries.d.ts +1 -0
  9. package/dist/constants/graphql/queries/crmQueries.js +45 -0
  10. package/dist/constants/graphql/queries/productQueries.d.ts +9 -0
  11. package/dist/constants/graphql/queries/productQueries.js +368 -0
  12. package/dist/constants/interfaces/authorization.d.ts +82 -0
  13. package/dist/constants/interfaces/authorization.js +2 -0
  14. package/dist/constants/interfaces/crm.d.ts +218 -0
  15. package/dist/constants/interfaces/crm.js +2 -0
  16. package/dist/constants/interfaces/product.d.ts +61 -0
  17. package/dist/constants/interfaces/product.js +2 -0
  18. package/dist/constants/interfaces/user.d.ts +49 -0
  19. package/dist/constants/interfaces/user.js +2 -0
  20. package/dist/index.d.ts +19 -0
  21. package/dist/index.js +17 -0
  22. package/dist/modules/authorization/graphql.d.ts +15 -0
  23. package/dist/modules/authorization/graphql.js +116 -0
  24. package/dist/modules/crm/graphql.d.ts +19 -0
  25. package/dist/modules/crm/graphql.js +291 -0
  26. package/dist/modules/product/graphql.d.ts +19 -0
  27. package/dist/modules/product/graphql.js +180 -0
  28. package/dist/modules/user/graphql.d.ts +14 -0
  29. package/dist/modules/user/graphql.js +156 -0
  30. package/package.json +36 -36
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.
@@ -0,0 +1,7 @@
1
+ export declare const LOGIN_MUTATION: import("graphql").DocumentNode;
2
+ export declare const REGISTER_MUTATION: import("graphql").DocumentNode;
3
+ export declare const SEND_SMS_VERIFY_CODE_MUTATION: import("graphql").DocumentNode;
4
+ export declare const VERIFY_CODE_MUTATION: import("graphql").DocumentNode;
5
+ export declare const RESET_PASSWORD_MUTATION: import("graphql").DocumentNode;
6
+ export declare const UPDATE_INFO_MUTATION: import("graphql").DocumentNode;
7
+ export declare const UPDATE_PASSWORD_MUTATION = "\n mutation UpdatePassword($orgId: String!, $accessToken: String!, $currentPassword: String!, $newPassword: String!) {\n updatePassword(orgId: $orgId, accessToken: $accessToken, currentPassword: $currentPassword, newPassword: $newPassword)\n }\n";
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ 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
+ 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
+ }
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
+ }
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
+ }
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
+ }
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
+ }
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
+ }
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
+ }
99
+ `;
@@ -0,0 +1,8 @@
1
+ export declare const ADD_OPPORTUNITY_MUTATION: import("graphql").DocumentNode;
2
+ export declare const GET_LIST_TODO: import("graphql").DocumentNode;
3
+ export declare const GET_LIST_WORK_EFFORT_TYPE: import("graphql").DocumentNode;
4
+ export declare const UPDATE_STATUS_ATTACHMENT_BY_ID: import("graphql").DocumentNode;
5
+ export declare const UPDATE_WORK_EFFORT_DESCRIPTION: import("graphql").DocumentNode;
6
+ export declare const UPDATE_WORK_EFFORT_NAME: import("graphql").DocumentNode;
7
+ export declare const UPDATE_WORK_EFFORT_STATUS: import("graphql").DocumentNode;
8
+ export declare const ADD_ATTACHMENT_FOR_WORK_EFFORT: import("graphql").DocumentNode;
@@ -0,0 +1,368 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = exports.UPDATE_WORK_EFFORT_STATUS = exports.UPDATE_WORK_EFFORT_NAME = exports.UPDATE_WORK_EFFORT_DESCRIPTION = exports.UPDATE_STATUS_ATTACHMENT_BY_ID = exports.GET_LIST_WORK_EFFORT_TYPE = exports.GET_LIST_TODO = exports.ADD_OPPORTUNITY_MUTATION = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.ADD_OPPORTUNITY_MUTATION = (0, graphql_tag_1.gql) `
6
+ mutation AddOpportunity(
7
+ $partyId: String!
8
+ $addOpportunityRequest: AddOpportunityRequest!
9
+ $performerId: String!
10
+ ) {
11
+ addOpportunity(
12
+ partyId: $partyId
13
+ addOpportunityRequest: $addOpportunityRequest
14
+ performerId: $performerId
15
+ ) {
16
+ goal
17
+ campaignId
18
+ valueReal
19
+ valueExpect
20
+ successRate
21
+ referName
22
+ referPhone
23
+ referEmail
24
+ id
25
+ createdBy
26
+ ownerId
27
+ workEffortTypeId
28
+ partyId
29
+ name
30
+ description
31
+ parentId
32
+ status
33
+ stmId
34
+ createdStamp
35
+ updatedStamp
36
+ endDateExpect
37
+ priorityName
38
+ targetId
39
+ targetType
40
+ targetUrl
41
+ extSource
42
+ connectorId
43
+ processResult
44
+ }
45
+ }
46
+ `;
47
+ exports.GET_LIST_TODO = (0, graphql_tag_1.gql) `
48
+ query GetListTodo($partyId: String!, $workEffortId: [String]!) {
49
+ getListTodo(partyId: $partyId, workEffortId: $workEffortId) {
50
+ workEffortId
51
+ toDoList {
52
+ listAttachment {
53
+ id
54
+ createdStamp
55
+ createdBy
56
+ updatedBy
57
+ updatedStamp
58
+ partyId
59
+ path
60
+ srcId
61
+ srcName
62
+ srcPath
63
+ srcConfigPathId
64
+ name
65
+ fileType
66
+ type
67
+ status
68
+ referId
69
+ }
70
+ isDone
71
+ id
72
+ workEffortTypeId
73
+ workEffortType {
74
+ id
75
+ name
76
+ group
77
+ createdStamp
78
+ updatedStamp
79
+ updatedBy
80
+ createdBy
81
+ partyId
82
+ actionLinkId
83
+ partyGroupIds
84
+ description
85
+ workFlow {
86
+ stages {
87
+ id
88
+ name
89
+ mode
90
+ workEffortTypeId
91
+ }
92
+ }
93
+ }
94
+ partyId
95
+ name
96
+ description
97
+ parentId
98
+ parentType
99
+ status
100
+ createdStamp
101
+ updatedStamp
102
+ source
103
+ mode
104
+ connectorId
105
+ actionLink {
106
+ name
107
+ uri
108
+ type
109
+ partyId
110
+ fromCollection
111
+ toCollection
112
+ group
113
+ params
114
+ id
115
+ createdStamp
116
+ updatedStamp
117
+ updatedBy
118
+ createdBy
119
+ }
120
+ partyGroupIds
121
+ tagIds
122
+ processResult
123
+ }
124
+ }
125
+ }
126
+ `;
127
+ exports.GET_LIST_WORK_EFFORT_TYPE = (0, graphql_tag_1.gql) `
128
+ query GetListWorkEffortType($partyId: String!, $id: String!){
129
+ getListWorkEffortType(
130
+ partyId: $partyId
131
+ getWorkEffortTypeRequest: {
132
+ id: $id
133
+ isPagination: true }
134
+ ) {
135
+ id
136
+ name
137
+ group
138
+ createdStamp
139
+ updatedStamp
140
+ updatedBy
141
+ createdBy
142
+ partyId
143
+ actionLinkId
144
+ partyGroupIds
145
+ description
146
+ workFlow {
147
+ stages{
148
+ id
149
+ name
150
+ mode
151
+ workEffortTypeId
152
+ }
153
+ }
154
+ }
155
+ }
156
+ `;
157
+ exports.UPDATE_STATUS_ATTACHMENT_BY_ID = (0, graphql_tag_1.gql) `
158
+ mutation UpdateStatusAttachmentById(
159
+ $performerId: String!,
160
+ $attachmentId: String!,
161
+ $status: String!
162
+ ) {
163
+ updateStatusAttachmentById(
164
+ performerId: $performerId,
165
+ attachmentId: $attachmentId,
166
+ status: $status
167
+ ) {
168
+ id
169
+ createdStamp
170
+ updatedStamp
171
+ updatedBy
172
+ createdBy
173
+ partyId
174
+ path
175
+ srcId
176
+ srcName
177
+ srcPath
178
+ srcConfigPathId
179
+ name
180
+ fileType
181
+ type
182
+ status
183
+ referId
184
+ }
185
+ }
186
+ `;
187
+ exports.UPDATE_WORK_EFFORT_DESCRIPTION = (0, graphql_tag_1.gql) `
188
+ mutation UpdateWorkEffortDescription(
189
+ $performerId: String!,
190
+ $workEffortId: String!,
191
+ $description: String!
192
+ ) {
193
+ updateWorkEffortDescription(
194
+ performerId: $performerId,
195
+ workEffortId: $workEffortId,
196
+ description: $description
197
+ ) {
198
+ id
199
+ createdStamp
200
+ updatedStamp
201
+ createdBy
202
+ updatedBy
203
+ name
204
+ partyId
205
+ targetId
206
+ targetType
207
+ targetUrl
208
+ description
209
+ status
210
+ parentId
211
+ workEffortTypeId
212
+ stmId
213
+ workflowId
214
+ endDateExpect
215
+ endDateActual
216
+ startDateActual
217
+ startDateExpect
218
+ source
219
+ ownerId
220
+ priorityName
221
+ priorityValue
222
+ extSource
223
+ extSourceTopicId
224
+ extSourceSocialAppId
225
+ extSourceSupportChannelType
226
+ extSourceSocialChannelType
227
+ extSourceSocialAppName
228
+ extSourceTopicUrl
229
+ connectorId
230
+ mode
231
+ partyGroupIds
232
+ tagIds
233
+ processResult
234
+ }
235
+ }
236
+ `;
237
+ exports.UPDATE_WORK_EFFORT_NAME = (0, graphql_tag_1.gql) `
238
+ mutation UpdateWorkEffortName(
239
+ $partyId: String!,
240
+ $performerId: String!,
241
+ $workEffortId: String!,
242
+ $newName: String!
243
+ ) {
244
+ updateWorkEffortName(
245
+ partyId: $partyId,
246
+ performerId: $performerId,
247
+ workEffortId: $workEffortId,
248
+ newName: $newName
249
+ ) {
250
+ id
251
+ createdStamp
252
+ updatedStamp
253
+ createdBy
254
+ updatedBy
255
+ name
256
+ partyId
257
+ targetId
258
+ targetType
259
+ targetUrl
260
+ description
261
+ status
262
+ parentId
263
+ workEffortTypeId
264
+ stmId
265
+ workflowId
266
+ endDateExpect
267
+ endDateActual
268
+ startDateActual
269
+ startDateExpect
270
+ source
271
+ ownerId
272
+ priorityName
273
+ priorityValue
274
+ extSource
275
+ extSourceTopicId
276
+ extSourceSocialAppId
277
+ extSourceSupportChannelType
278
+ extSourceSocialChannelType
279
+ extSourceSocialAppName
280
+ extSourceTopicUrl
281
+ connectorId
282
+ mode
283
+ partyGroupIds
284
+ tagIds
285
+ processResult
286
+ }
287
+ }
288
+ `;
289
+ exports.UPDATE_WORK_EFFORT_STATUS = (0, graphql_tag_1.gql) `
290
+ mutation UpdateWorkEffortStatus(
291
+ $partyId: String!,
292
+ $performerId: String!,
293
+ $workEffortId: String!,
294
+ $source: String!,
295
+ $status: String!
296
+ ) {
297
+ updateWorkEffortStatus(
298
+ partyId: $partyId,
299
+ performerId: $performerId,
300
+ workEffortId: $workEffortId,
301
+ source: $source,
302
+ status: $status
303
+ ) {
304
+ id
305
+ createdStamp
306
+ updatedStamp
307
+ createdBy
308
+ updatedBy
309
+ name
310
+ partyId
311
+ targetId
312
+ targetType
313
+ targetUrl
314
+ description
315
+ status
316
+ parentId
317
+ workEffortTypeId
318
+ stmId
319
+ workflowId
320
+ endDateExpect
321
+ endDateActual
322
+ startDateActual
323
+ startDateExpect
324
+ source
325
+ ownerId
326
+ priorityName
327
+ priorityValue
328
+ extSource
329
+ extSourceTopicId
330
+ extSourceSocialAppId
331
+ extSourceSupportChannelType
332
+ extSourceSocialChannelType
333
+ extSourceSocialAppName
334
+ extSourceTopicUrl
335
+ connectorId
336
+ mode
337
+ partyGroupIds
338
+ tagIds
339
+ processResult
340
+ }
341
+ }
342
+ `;
343
+ exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = (0, graphql_tag_1.gql) `
344
+ mutation ($partyId: String!, $performerId: String!, $workEffortId: String!, $attachments: [AddAttachmentRequest]) {
345
+ addAttachmentForWorkEffort(
346
+ partyId: $partyId
347
+ performerId: $performerId
348
+ workEffortId: $workEffortId
349
+ addAttachmentRequest: $attachments
350
+ ) {
351
+ id
352
+ createdStamp
353
+ updatedStamp
354
+ updatedBy
355
+ createdBy
356
+ partyId
357
+ path
358
+ srcId
359
+ srcName
360
+ srcPath
361
+ srcConfigPathId
362
+ name
363
+ fileType
364
+ type
365
+ referId
366
+ }
367
+ }
368
+ `;
@@ -0,0 +1,4 @@
1
+ export declare const CREATE_COMPANY: import("graphql").DocumentNode;
2
+ export declare const UPDATE_COMPANY_INFOR: import("graphql").DocumentNode;
3
+ export declare const UPDATE_CUSTOMER_V2: import("graphql").DocumentNode;
4
+ export declare const GET_PERSON_BY_PARTY_IDS: import("graphql").DocumentNode;