@webitel/api-services 1.0.3 → 1.0.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/api-services",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,7 +15,11 @@ import {
15
15
  sanitizeToWire,
16
16
  snakeToCamel,
17
17
  } from '../../transformers';
18
- import type { ApiId, ApiParams, UpdateItemParams } from '../_shared/types';
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
- }: UpdateItemParams) => {
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(itemInstance.closeReasonGroupId),
140
+ String(parentId),
136
141
  String(id),
137
142
  item,
138
143
  );
@@ -31,7 +31,7 @@ const getOnlineSkillsList = async (params: ApiParams) => {
31
31
  sanitizeToWire(listFieldsToSend),
32
32
  (params) => ({
33
33
  ...params,
34
- skipDefault: params.skipDefault ?? true,
34
+ skip_default: params.skip_default ?? true,
35
35
  fields: [
36
36
  'id',
37
37
  ...(params.fields || [