@retailcrm/embed-ui-v1-types 0.5.1-alpha.2 → 0.5.1-alpha.3
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/context.d.ts +7 -7
- package/package.json +1 -1
package/context.d.ts
CHANGED
|
@@ -149,14 +149,14 @@ export type CustomField<K extends CustomFieldKind = CustomFieldKind> = CustomFie
|
|
|
149
149
|
export type CustomFieldType = TypeOfCustom<CustomFieldKind>
|
|
150
150
|
export type CustomFieldKind = keyof CustomFieldList
|
|
151
151
|
export type CustomFieldList = {
|
|
152
|
-
'boolean': BasicCustomField<'boolean', boolean>;
|
|
152
|
+
'boolean': BasicCustomField<'boolean', boolean | null>;
|
|
153
153
|
'choice': ChoiceCustomField;
|
|
154
|
-
'date': BasicCustomField<'date', string>;
|
|
155
|
-
'datetime': BasicCustomField<'datetime', string>;
|
|
156
|
-
'email': BasicCustomField<'email', string>;
|
|
157
|
-
'float': BasicCustomField<'float', number>;
|
|
158
|
-
'integer': BasicCustomField<'integer', number>;
|
|
159
|
-
'string': BasicCustomField<'string', string>;
|
|
154
|
+
'date': BasicCustomField<'date', string | null>;
|
|
155
|
+
'datetime': BasicCustomField<'datetime', string | null>;
|
|
156
|
+
'email': BasicCustomField<'email', string | null>;
|
|
157
|
+
'float': BasicCustomField<'float', number | null>;
|
|
158
|
+
'integer': BasicCustomField<'integer', number | null>;
|
|
159
|
+
'string': BasicCustomField<'string', string | null>;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
export type TypeOfCustom<K extends string> = K extends CustomFieldKind
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@retailcrm/embed-ui-v1-types",
|
|
3
3
|
"description": "Basic types declarations for RetailCRM JS API",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.5.1-alpha.
|
|
5
|
+
"version": "0.5.1-alpha.3",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "RetailDriverLLC <integration@retailcrm.ru>",
|
|
8
8
|
"repository": "git@github.com:retailcrm/embed-ui.git",
|