@retailcrm/embed-ui-v1-contexts 0.4.8 → 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,8 +218,8 @@
|
|
|
218
218
|
"readonly": true
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
|
-
"name": "
|
|
222
|
-
"type": "\"enterpreneur\" | \"legal-entity\"",
|
|
221
|
+
"name": "company.contragentType",
|
|
222
|
+
"type": "\"enterpreneur\" | \"legal-entity\" | \"individual\"",
|
|
223
223
|
"description": {
|
|
224
224
|
"en-GB": "Legal entity type",
|
|
225
225
|
"es-ES": "Tipo de entidad legal",
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
"readonly": true
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
|
-
"name": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
261
|
+
"name": "company.OGRNIP",
|
|
262
262
|
"type": "string | null",
|
|
263
263
|
"description": {
|
|
264
264
|
"en-GB": "PSRN of Individual entrepreneur",
|
|
@@ -77,30 +77,31 @@ const schema = {
|
|
|
77
77
|
defaults: () => "",
|
|
78
78
|
readonly: true
|
|
79
79
|
},
|
|
80
|
-
"
|
|
80
|
+
"company.contragentType": {
|
|
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
|
|
87
88
|
},
|
|
88
|
-
"
|
|
89
|
+
"company.certificateNumber": {
|
|
89
90
|
accepts: predicates.oneOf(predicates.isString, predicates.isNull),
|
|
90
91
|
defaults: () => null,
|
|
91
92
|
readonly: false
|
|
92
93
|
},
|
|
93
|
-
"
|
|
94
|
+
"company.certificateDate": {
|
|
94
95
|
accepts: predicates.oneOf(predicates.isString, predicates.isNull),
|
|
95
96
|
defaults: () => null,
|
|
96
97
|
readonly: false
|
|
97
98
|
},
|
|
98
|
-
"
|
|
99
|
+
"company.OGRN": {
|
|
99
100
|
accepts: predicates.oneOf(predicates.isString, predicates.isNull),
|
|
100
101
|
defaults: () => null,
|
|
101
102
|
readonly: false
|
|
102
103
|
},
|
|
103
|
-
"
|
|
104
|
+
"company.OGRNIP": {
|
|
104
105
|
accepts: predicates.oneOf(predicates.isString, predicates.isNull),
|
|
105
106
|
defaults: () => null,
|
|
106
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" | "
|
|
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,30 +75,31 @@ const schema = {
|
|
|
75
75
|
defaults: () => "",
|
|
76
76
|
readonly: true
|
|
77
77
|
},
|
|
78
|
-
"
|
|
78
|
+
"company.contragentType": {
|
|
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
|
|
85
86
|
},
|
|
86
|
-
"
|
|
87
|
+
"company.certificateNumber": {
|
|
87
88
|
accepts: oneOf(isString, isNull),
|
|
88
89
|
defaults: () => null,
|
|
89
90
|
readonly: false
|
|
90
91
|
},
|
|
91
|
-
"
|
|
92
|
+
"company.certificateDate": {
|
|
92
93
|
accepts: oneOf(isString, isNull),
|
|
93
94
|
defaults: () => null,
|
|
94
95
|
readonly: false
|
|
95
96
|
},
|
|
96
|
-
"
|
|
97
|
+
"company.OGRN": {
|
|
97
98
|
accepts: oneOf(isString, isNull),
|
|
98
99
|
defaults: () => null,
|
|
99
100
|
readonly: false
|
|
100
101
|
},
|
|
101
|
-
"
|
|
102
|
+
"company.OGRNIP": {
|
|
102
103
|
accepts: oneOf(isString, isNull),
|
|
103
104
|
defaults: () => null,
|
|
104
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.
|
|
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.
|
|
96
|
+
"@retailcrm/embed-ui-v1-types": "^0.5.0"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@retailcrm/embed-ui-v1-testing": "^0.
|
|
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",
|
package/types/order/card.d.ts
CHANGED
|
@@ -15,11 +15,11 @@ export type Schema = {
|
|
|
15
15
|
'country': ReadonlyField<string | null>;
|
|
16
16
|
'currency': ReadonlyField<string>;
|
|
17
17
|
'status': ReadonlyField<string>;
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
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>;
|