@retailcrm/embed-ui-v1-contexts 0.4.8 → 0.4.9

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/dist/meta.json CHANGED
@@ -219,7 +219,7 @@
219
219
  },
220
220
  {
221
221
  "name": "contragent.type",
222
- "type": "\"enterpreneur\" | \"legal-entity\"",
222
+ "type": "\"enterpreneur\" | \"legal-entity\" | \"individual\"",
223
223
  "description": {
224
224
  "en-GB": "Legal entity type",
225
225
  "es-ES": "Tipo de entidad legal",
@@ -80,7 +80,8 @@ const schema = {
80
80
  "contragent.type": {
81
81
  accepts: predicates.oneOf(
82
82
  predicates.isExactly("enterpreneur"),
83
- predicates.isExactly("legal-entity")
83
+ predicates.isExactly("legal-entity"),
84
+ predicates.isExactly("individual")
84
85
  ),
85
86
  defaults: () => "legal-entity",
86
87
  readonly: true
@@ -78,7 +78,8 @@ const schema = {
78
78
  "contragent.type": {
79
79
  accepts: oneOf(
80
80
  isExactly("enterpreneur"),
81
- isExactly("legal-entity")
81
+ isExactly("legal-entity"),
82
+ isExactly("individual")
82
83
  ),
83
84
  defaults: () => "legal-entity",
84
85
  readonly: true
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@retailcrm/embed-ui-v1-contexts",
3
3
  "description": "Reactive contexts for RetailCRM JS API",
4
4
  "type": "module",
5
- "version": "0.4.8",
5
+ "version": "0.4.9",
6
6
  "license": "MIT",
7
7
  "author": "RetailDriverLLC <integration@retailcrm.ru>",
8
8
  "repository": "git@github.com:retailcrm/embed-ui.git",
@@ -93,10 +93,10 @@
93
93
  "pinia": "^2.2"
94
94
  },
95
95
  "dependencies": {
96
- "@retailcrm/embed-ui-v1-types": "^0.4.8"
96
+ "@retailcrm/embed-ui-v1-types": "^0.4.9"
97
97
  },
98
98
  "devDependencies": {
99
- "@retailcrm/embed-ui-v1-testing": "^0.4.8",
99
+ "@retailcrm/embed-ui-v1-testing": "^0.4.9",
100
100
  "tsx": "^4.19.2",
101
101
  "typescript": "^5.6.3",
102
102
  "vite": "^5.4.11",
@@ -15,7 +15,7 @@ export type Schema = {
15
15
  'country': ReadonlyField<string | null>;
16
16
  'currency': ReadonlyField<string>;
17
17
  'status': ReadonlyField<string>;
18
- 'contragent.type': ReadonlyField<'enterpreneur' | 'legal-entity'>;
18
+ 'contragent.type': ReadonlyField<'enterpreneur' | 'legal-entity' | 'individual'>;
19
19
  'contragent.certificateNumber': Field<string | null>;
20
20
  'contragent.certificateDate': Field<string | null>;
21
21
  'contragent.OGRN': Field<string | null>;