@webitel/api-services 0.0.41 → 0.0.42
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 +1 -1
- package/src/api/clients/wtTypes/adjunctTypes/adjunctTypes.ts +6 -1
- package/src/gen/_docs/html/assets/search.js +1 -1
- package/src/gen/_docs/html/interfaces/_models_engineCallFile.EngineCallFile.html +3 -2
- package/src/gen/_docs/html/variables/call-service_call-service.zod.gen.patchHistoryCallResponse.html +1 -1
- package/src/gen/_docs/html/variables/call-service_call-service.zod.gen.searchHistoryCallPostResponse.html +1 -1
- package/src/gen/_docs/html/variables/call-service_call-service.zod.gen.searchHistoryCallResponse.html +1 -1
- package/src/gen/_models/engineCallFile.ts +1 -0
- package/src/gen/call-service/call-service.msw.api.gen.ts +12 -0
- package/src/gen/call-service/call-service.zod.gen.ts +3 -0
- package/types/api/clients/wtTypes/adjunctTypes/adjunctTypes.d.ts +4 -0
- package/types/api/clients/wtTypes/index.d.ts +1 -1
- package/types/gen/_models/engineCallFile.d.ts +1 -0
- package/types/gen/call-service/call-service.zod.gen.d.ts +3 -0
package/package.json
CHANGED
|
@@ -13,7 +13,10 @@ import {
|
|
|
13
13
|
starToSearch,
|
|
14
14
|
} from '../../../transformers';
|
|
15
15
|
|
|
16
|
-
const getAdjunctTypesList = async (
|
|
16
|
+
const getAdjunctTypesList = async (
|
|
17
|
+
{ repo, ...params },
|
|
18
|
+
{ silent = false } = {},
|
|
19
|
+
) => {
|
|
17
20
|
const fieldsToSend = ['page', 'size', 'q', 'sort', 'fields', 'id'];
|
|
18
21
|
|
|
19
22
|
const { page, size, fields, sort, id, q } = applyTransform(params, [
|
|
@@ -40,6 +43,8 @@ const getAdjunctTypesList = async ({ repo, ...params }) => {
|
|
|
40
43
|
next,
|
|
41
44
|
};
|
|
42
45
|
} catch (err) {
|
|
46
|
+
if (silent) throw err; // dont show error if has no access to custom types
|
|
47
|
+
|
|
43
48
|
throw applyTransform(err, [notify]);
|
|
44
49
|
}
|
|
45
50
|
};
|