@longvansoftware/storefront-js-client 1.0.18 → 1.0.20
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.
- package/dist/src/lib/crm/index.js +10 -10
- package/package.json +2 -2
|
@@ -89,14 +89,14 @@ class CrmService extends service_1.Service {
|
|
|
89
89
|
}
|
|
90
90
|
updateStatusAttachmentById(performerId, attachmentId, status) {
|
|
91
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
-
const
|
|
92
|
+
const mutation = mutations_1.UPDATE_STATUS_ATTACHMENT_BY_ID;
|
|
93
93
|
const variables = {
|
|
94
94
|
performerId,
|
|
95
95
|
attachmentId,
|
|
96
96
|
status
|
|
97
97
|
};
|
|
98
98
|
try {
|
|
99
|
-
const response = yield this.
|
|
99
|
+
const response = yield this.graphqlMutation(mutation, variables);
|
|
100
100
|
return response.updateStatusAttachmentById;
|
|
101
101
|
}
|
|
102
102
|
catch (error) {
|
|
@@ -107,14 +107,14 @@ class CrmService extends service_1.Service {
|
|
|
107
107
|
}
|
|
108
108
|
updateWorkEffortDescription(performerId, workEffortId, description) {
|
|
109
109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
-
const
|
|
110
|
+
const mutation = mutations_1.UPDATE_WORK_EFFORT_DESCRIPTION;
|
|
111
111
|
const variables = {
|
|
112
112
|
performerId,
|
|
113
113
|
workEffortId,
|
|
114
114
|
description
|
|
115
115
|
};
|
|
116
116
|
try {
|
|
117
|
-
const response = yield this.
|
|
117
|
+
const response = yield this.graphqlMutation(mutation, variables);
|
|
118
118
|
return response.updateWorkEffortDescription;
|
|
119
119
|
}
|
|
120
120
|
catch (error) {
|
|
@@ -125,7 +125,7 @@ class CrmService extends service_1.Service {
|
|
|
125
125
|
}
|
|
126
126
|
updateWorkEffortName(performerId, workEffortId, name) {
|
|
127
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
-
const
|
|
128
|
+
const mutation = mutations_1.UPDATE_WORK_EFFORT_NAME;
|
|
129
129
|
const variables = {
|
|
130
130
|
partyId: this.orgId,
|
|
131
131
|
performerId,
|
|
@@ -133,7 +133,7 @@ class CrmService extends service_1.Service {
|
|
|
133
133
|
newName: name
|
|
134
134
|
};
|
|
135
135
|
try {
|
|
136
|
-
const response = yield this.
|
|
136
|
+
const response = yield this.graphqlMutation(mutation, variables);
|
|
137
137
|
return response.updateWorkEffortName;
|
|
138
138
|
}
|
|
139
139
|
catch (error) {
|
|
@@ -144,7 +144,7 @@ class CrmService extends service_1.Service {
|
|
|
144
144
|
}
|
|
145
145
|
updateWorkEffortStatus(performerId, workEffortId, source, status) {
|
|
146
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
-
const
|
|
147
|
+
const mutation = mutations_1.UPDATE_WORK_EFFORT_STATUS;
|
|
148
148
|
const variables = {
|
|
149
149
|
partyId: this.orgId,
|
|
150
150
|
performerId,
|
|
@@ -153,7 +153,7 @@ class CrmService extends service_1.Service {
|
|
|
153
153
|
status
|
|
154
154
|
};
|
|
155
155
|
try {
|
|
156
|
-
const response = yield this.
|
|
156
|
+
const response = yield this.graphqlMutation(mutation, variables);
|
|
157
157
|
return response.updateWorkEffortStatus;
|
|
158
158
|
}
|
|
159
159
|
catch (error) {
|
|
@@ -164,7 +164,7 @@ class CrmService extends service_1.Service {
|
|
|
164
164
|
}
|
|
165
165
|
addAttachmentForWorkEffort(performerId, workEffortId, attachments) {
|
|
166
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
-
const
|
|
167
|
+
const mutation = mutations_1.ADD_ATTACHMENT_FOR_WORK_EFFORT;
|
|
168
168
|
const variables = {
|
|
169
169
|
partyId: this.orgId,
|
|
170
170
|
performerId,
|
|
@@ -172,7 +172,7 @@ class CrmService extends service_1.Service {
|
|
|
172
172
|
attachments,
|
|
173
173
|
};
|
|
174
174
|
try {
|
|
175
|
-
const response = yield this.
|
|
175
|
+
const response = yield this.graphqlMutation(mutation, variables);
|
|
176
176
|
return response.addAttachmentForWorkEffort;
|
|
177
177
|
}
|
|
178
178
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longvansoftware/storefront-js-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"main": "dist/src/index.js",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"author": "",
|
|
20
20
|
"license": "ISC",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@apollo/client": "
|
|
22
|
+
"@apollo/client": "3.9.11",
|
|
23
23
|
"apollo-boost": "^0.4.9",
|
|
24
24
|
"axios": "^1.6.8",
|
|
25
25
|
"crypto-js": "^4.2.0",
|