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

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
@@ -218,7 +218,7 @@
218
218
  "readonly": true
219
219
  },
220
220
  {
221
- "name": "contragent.type",
221
+ "name": "company.contragentType",
222
222
  "type": "\"enterpreneur\" | \"legal-entity\" | \"individual\"",
223
223
  "description": {
224
224
  "en-GB": "Legal entity type",
@@ -228,7 +228,7 @@
228
228
  "readonly": true
229
229
  },
230
230
  {
231
- "name": "contragent.certificateNumber",
231
+ "name": "company.certificateNumber",
232
232
  "type": "string | null",
233
233
  "description": {
234
234
  "en-GB": "Certificate number",
@@ -238,7 +238,7 @@
238
238
  "readonly": false
239
239
  },
240
240
  {
241
- "name": "contragent.certificateDate",
241
+ "name": "company.certificateDate",
242
242
  "type": "string | null",
243
243
  "description": {
244
244
  "en-GB": "Certificate date",
@@ -248,7 +248,7 @@
248
248
  "readonly": false
249
249
  },
250
250
  {
251
- "name": "contragent.OGRN",
251
+ "name": "company.OGRN",
252
252
  "type": "string | null",
253
253
  "description": {
254
254
  "en-GB": "PSRN of the counterparty",
@@ -258,7 +258,7 @@
258
258
  "readonly": false
259
259
  },
260
260
  {
261
- "name": "contragent.OGRNIP",
261
+ "name": "company.OGRNIP",
262
262
  "type": "string | null",
263
263
  "description": {
264
264
  "en-GB": "PSRN of Individual entrepreneur",
@@ -77,7 +77,7 @@ const schema = {
77
77
  defaults: () => "",
78
78
  readonly: true
79
79
  },
80
- "contragent.type": {
80
+ "company.contragentType": {
81
81
  accepts: predicates.oneOf(
82
82
  predicates.isExactly("enterpreneur"),
83
83
  predicates.isExactly("legal-entity"),
@@ -86,22 +86,22 @@ const schema = {
86
86
  defaults: () => "legal-entity",
87
87
  readonly: true
88
88
  },
89
- "contragent.certificateNumber": {
89
+ "company.certificateNumber": {
90
90
  accepts: predicates.oneOf(predicates.isString, predicates.isNull),
91
91
  defaults: () => null,
92
92
  readonly: false
93
93
  },
94
- "contragent.certificateDate": {
94
+ "company.certificateDate": {
95
95
  accepts: predicates.oneOf(predicates.isString, predicates.isNull),
96
96
  defaults: () => null,
97
97
  readonly: false
98
98
  },
99
- "contragent.OGRN": {
99
+ "company.OGRN": {
100
100
  accepts: predicates.oneOf(predicates.isString, predicates.isNull),
101
101
  defaults: () => null,
102
102
  readonly: false
103
103
  },
104
- "contragent.OGRNIP": {
104
+ "company.OGRNIP": {
105
105
  accepts: predicates.oneOf(predicates.isString, predicates.isNull),
106
106
  defaults: () => null,
107
107
  readonly: false
@@ -8,5 +8,5 @@ export declare const useContext: StoreDefinition<"order/card", Context<Schema>,
8
8
  schema: () => Schema;
9
9
  }, {
10
10
  initialize(): Promise<void>;
11
- set<F extends "customer.lastName" | "customer.firstName" | "customer.patronymic" | "customer.email" | "customer.phone" | "contragent.certificateNumber" | "contragent.certificateDate" | "contragent.OGRN" | "contragent.OGRNIP" | "company.name" | "company.legalName" | "company.legalAddress" | "company.INN" | "company.OKPO" | "company.BIK" | "company.bank" | "company.bankAddress" | "company.corrAccount" | "company.bankAccount" | "delivery.address">(field: F, value: TypeOf< Schema[F]>, onReject?: Maybe<RejectionHandler>): void;
11
+ set<F extends "customer.lastName" | "customer.firstName" | "customer.patronymic" | "customer.email" | "customer.phone" | "company.certificateNumber" | "company.certificateDate" | "company.OGRN" | "company.OGRNIP" | "company.name" | "company.legalName" | "company.legalAddress" | "company.INN" | "company.OKPO" | "company.BIK" | "company.bank" | "company.bankAddress" | "company.corrAccount" | "company.bankAccount" | "delivery.address">(field: F, value: TypeOf< Schema[F]>, onReject?: Maybe<RejectionHandler>): void;
12
12
  }>;
@@ -75,7 +75,7 @@ const schema = {
75
75
  defaults: () => "",
76
76
  readonly: true
77
77
  },
78
- "contragent.type": {
78
+ "company.contragentType": {
79
79
  accepts: oneOf(
80
80
  isExactly("enterpreneur"),
81
81
  isExactly("legal-entity"),
@@ -84,22 +84,22 @@ const schema = {
84
84
  defaults: () => "legal-entity",
85
85
  readonly: true
86
86
  },
87
- "contragent.certificateNumber": {
87
+ "company.certificateNumber": {
88
88
  accepts: oneOf(isString, isNull),
89
89
  defaults: () => null,
90
90
  readonly: false
91
91
  },
92
- "contragent.certificateDate": {
92
+ "company.certificateDate": {
93
93
  accepts: oneOf(isString, isNull),
94
94
  defaults: () => null,
95
95
  readonly: false
96
96
  },
97
- "contragent.OGRN": {
97
+ "company.OGRN": {
98
98
  accepts: oneOf(isString, isNull),
99
99
  defaults: () => null,
100
100
  readonly: false
101
101
  },
102
- "contragent.OGRNIP": {
102
+ "company.OGRNIP": {
103
103
  accepts: oneOf(isString, isNull),
104
104
  defaults: () => null,
105
105
  readonly: false
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.9",
5
+ "version": "0.5.0",
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.9"
96
+ "@retailcrm/embed-ui-v1-types": "^0.5.0"
97
97
  },
98
98
  "devDependencies": {
99
- "@retailcrm/embed-ui-v1-testing": "^0.4.9",
99
+ "@retailcrm/embed-ui-v1-testing": "^0.5.0",
100
100
  "tsx": "^4.19.2",
101
101
  "typescript": "^5.6.3",
102
102
  "vite": "^5.4.11",
@@ -15,11 +15,11 @@ 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' | 'individual'>;
19
- 'contragent.certificateNumber': Field<string | null>;
20
- 'contragent.certificateDate': Field<string | null>;
21
- 'contragent.OGRN': Field<string | null>;
22
- 'contragent.OGRNIP': Field<string | null>;
18
+ 'company.contragentType': ReadonlyField<'enterpreneur' | 'legal-entity' | 'individual'>;
19
+ 'company.certificateNumber': Field<string | null>;
20
+ 'company.certificateDate': Field<string | null>;
21
+ 'company.OGRN': Field<string | null>;
22
+ 'company.OGRNIP': Field<string | null>;
23
23
  'company.name': Field<string | null>;
24
24
  'company.legalName': Field<string | null>;
25
25
  'company.legalAddress': Field<string | null>;