@kuzntsv/uikit 1.0.46 → 1.0.47
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.
|
@@ -3086,6 +3086,7 @@ var BaseSignalServiceClass = class BaseSignalServiceClass {
|
|
|
3086
3086
|
return { url: this.baseRoute };
|
|
3087
3087
|
}, {
|
|
3088
3088
|
...this.getHttpContext(),
|
|
3089
|
+
defaultValue: [],
|
|
3089
3090
|
parse: (data) => {
|
|
3090
3091
|
if (!data) return [];
|
|
3091
3092
|
return z.array(this.schema).parse(data);
|
|
@@ -3101,6 +3102,7 @@ var BaseSignalServiceClass = class BaseSignalServiceClass {
|
|
|
3101
3102
|
return { url: `${this.baseRoute}${currentId}` };
|
|
3102
3103
|
}, {
|
|
3103
3104
|
...this.getHttpContext(),
|
|
3105
|
+
defaultValue: null,
|
|
3104
3106
|
parse: (data) => {
|
|
3105
3107
|
if (!data) return null;
|
|
3106
3108
|
return this.schema.parse(data);
|
|
@@ -3113,6 +3115,7 @@ var BaseSignalServiceClass = class BaseSignalServiceClass {
|
|
|
3113
3115
|
return { url: `${this.baseRoute}${this.countRoute}` };
|
|
3114
3116
|
}, {
|
|
3115
3117
|
...this.getHttpContext(),
|
|
3118
|
+
defaultValue: 0,
|
|
3116
3119
|
parse: (data) => z.coerce.number().parse(data)
|
|
3117
3120
|
});
|
|
3118
3121
|
}
|
|
@@ -3130,6 +3133,7 @@ var BaseSignalServiceClass = class BaseSignalServiceClass {
|
|
|
3130
3133
|
};
|
|
3131
3134
|
}, {
|
|
3132
3135
|
...this.getHttpContext(),
|
|
3136
|
+
defaultValue: [],
|
|
3133
3137
|
parse: (data) => {
|
|
3134
3138
|
if (!data) return [];
|
|
3135
3139
|
return z.array(this.schema).parse(data);
|