@webitel/api-services 1.0.2 → 1.0.4
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/package.json
CHANGED
|
@@ -15,7 +15,11 @@ import {
|
|
|
15
15
|
sanitizeToWire,
|
|
16
16
|
snakeToCamel,
|
|
17
17
|
} from '../../transformers';
|
|
18
|
-
import type {
|
|
18
|
+
import type {
|
|
19
|
+
ApiId,
|
|
20
|
+
ApiParams,
|
|
21
|
+
NestedUpdateItemParams,
|
|
22
|
+
} from '../_shared/types';
|
|
19
23
|
|
|
20
24
|
const getCloseReasonsList = async ({
|
|
21
25
|
parentId,
|
|
@@ -120,7 +124,8 @@ const addCloseReason = async ({
|
|
|
120
124
|
const updateCloseReason = async ({
|
|
121
125
|
itemInstance,
|
|
122
126
|
itemId: id,
|
|
123
|
-
|
|
127
|
+
parentId,
|
|
128
|
+
}: NestedUpdateItemParams) => {
|
|
124
129
|
const fieldsToSend = getShallowFieldsToSendFromZodSchema(
|
|
125
130
|
UpdateCloseReasonBody,
|
|
126
131
|
);
|
|
@@ -132,7 +137,7 @@ const updateCloseReason = async ({
|
|
|
132
137
|
|
|
133
138
|
try {
|
|
134
139
|
const response = await getCloseReasons().updateCloseReason(
|
|
135
|
-
String(
|
|
140
|
+
String(parentId),
|
|
136
141
|
String(id),
|
|
137
142
|
item,
|
|
138
143
|
);
|