@retailcrm/embed-ui 0.9.0 → 0.9.1-alpha.1
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/CHANGELOG.md +6 -0
- package/Makefile +6 -1
- package/dist/meta.json +942 -212
- package/package.json +4 -4
- package/types/widget.d.ts +37 -1
package/dist/meta.json
CHANGED
|
@@ -73,6 +73,101 @@
|
|
|
73
73
|
}
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
|
+
{
|
|
77
|
+
"name": "Offer",
|
|
78
|
+
"fields": [
|
|
79
|
+
{
|
|
80
|
+
"name": "id",
|
|
81
|
+
"type": "number",
|
|
82
|
+
"description": {
|
|
83
|
+
"en-GB": "ID",
|
|
84
|
+
"es-ES": "ID",
|
|
85
|
+
"ru-RU": "Идентификатор"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "name",
|
|
90
|
+
"type": "string",
|
|
91
|
+
"description": {
|
|
92
|
+
"en-GB": "Name",
|
|
93
|
+
"es-ES": "Nombre",
|
|
94
|
+
"ru-RU": "Наименование"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "image",
|
|
99
|
+
"type": "string|null",
|
|
100
|
+
"description": {
|
|
101
|
+
"en-GB": "Image URL",
|
|
102
|
+
"es-ES": "URL de la imagen",
|
|
103
|
+
"ru-RU": "URL изображения"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "dimensions",
|
|
108
|
+
"type": "Dimensions",
|
|
109
|
+
"description": {
|
|
110
|
+
"en-GB": "Product dimensions L - length, W - width, H - height",
|
|
111
|
+
"es-ES": "Dimensiones del producto L - longitud, W - ancho, H - altura",
|
|
112
|
+
"ru-RU": "Размеры товара L - длина, W - ширина, H - высота"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "weight",
|
|
117
|
+
"type": "Weight|null",
|
|
118
|
+
"description": {
|
|
119
|
+
"en-GB": "Weight",
|
|
120
|
+
"es-ES": "Peso",
|
|
121
|
+
"ru-RU": "Вес"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "article",
|
|
126
|
+
"type": "string|null",
|
|
127
|
+
"description": {
|
|
128
|
+
"en-GB": "Article",
|
|
129
|
+
"es-ES": "Artículo",
|
|
130
|
+
"ru-RU": "Артикул"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "barcode",
|
|
135
|
+
"type": "string|null",
|
|
136
|
+
"description": {
|
|
137
|
+
"en-GB": "Barcode",
|
|
138
|
+
"es-ES": "Código de barras",
|
|
139
|
+
"ru-RU": "Штрих-код"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "properties",
|
|
144
|
+
"type": "Array<Property>",
|
|
145
|
+
"description": {
|
|
146
|
+
"en-GB": "Array of custom properties",
|
|
147
|
+
"es-ES": "Matriz de propiedades personalizadas",
|
|
148
|
+
"ru-RU": "Массив пользовательских свойств"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "unit",
|
|
153
|
+
"type": "string|null",
|
|
154
|
+
"description": {
|
|
155
|
+
"en-GB": "Unit of quantity measurement, if not specified (null), will be set to \"pcs.\"",
|
|
156
|
+
"es-ES": "Unidad de medida de cantidad, si no se especifica (null), se establecerá en \"pcs.\"",
|
|
157
|
+
"ru-RU": "Единица измерения количества, если не указана (null), будет указано \"шт.\""
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "purchasePrice",
|
|
162
|
+
"type": "Money|null",
|
|
163
|
+
"description": {
|
|
164
|
+
"en-GB": "Purchase price, value + currency",
|
|
165
|
+
"es-ES": "Precio de compra, valor + moneda",
|
|
166
|
+
"ru-RU": "Закупочная цена, значение + валюта"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
76
171
|
{
|
|
77
172
|
"name": "PriceType",
|
|
78
173
|
"fields": [
|
|
@@ -282,101 +377,6 @@
|
|
|
282
377
|
}
|
|
283
378
|
]
|
|
284
379
|
},
|
|
285
|
-
{
|
|
286
|
-
"name": "Offer",
|
|
287
|
-
"fields": [
|
|
288
|
-
{
|
|
289
|
-
"name": "id",
|
|
290
|
-
"type": "number",
|
|
291
|
-
"description": {
|
|
292
|
-
"en-GB": "ID",
|
|
293
|
-
"es-ES": "ID",
|
|
294
|
-
"ru-RU": "Идентификатор"
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
"name": "name",
|
|
299
|
-
"type": "string",
|
|
300
|
-
"description": {
|
|
301
|
-
"en-GB": "Name",
|
|
302
|
-
"es-ES": "Nombre",
|
|
303
|
-
"ru-RU": "Наименование"
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"name": "image",
|
|
308
|
-
"type": "string|null",
|
|
309
|
-
"description": {
|
|
310
|
-
"en-GB": "Image URL",
|
|
311
|
-
"es-ES": "URL de la imagen",
|
|
312
|
-
"ru-RU": "URL изображения"
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"name": "dimensions",
|
|
317
|
-
"type": "Dimensions",
|
|
318
|
-
"description": {
|
|
319
|
-
"en-GB": "Product dimensions L - length, W - width, H - height",
|
|
320
|
-
"es-ES": "Dimensiones del producto L - longitud, W - ancho, H - altura",
|
|
321
|
-
"ru-RU": "Размеры товара L - длина, W - ширина, H - высота"
|
|
322
|
-
}
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"name": "weight",
|
|
326
|
-
"type": "Weight|null",
|
|
327
|
-
"description": {
|
|
328
|
-
"en-GB": "Weight",
|
|
329
|
-
"es-ES": "Peso",
|
|
330
|
-
"ru-RU": "Вес"
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
"name": "article",
|
|
335
|
-
"type": "string|null",
|
|
336
|
-
"description": {
|
|
337
|
-
"en-GB": "Article",
|
|
338
|
-
"es-ES": "Artículo",
|
|
339
|
-
"ru-RU": "Артикул"
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"name": "barcode",
|
|
344
|
-
"type": "string|null",
|
|
345
|
-
"description": {
|
|
346
|
-
"en-GB": "Barcode",
|
|
347
|
-
"es-ES": "Código de barras",
|
|
348
|
-
"ru-RU": "Штрих-код"
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
"name": "properties",
|
|
353
|
-
"type": "Array<Property>",
|
|
354
|
-
"description": {
|
|
355
|
-
"en-GB": "Array of custom properties",
|
|
356
|
-
"es-ES": "Matriz de propiedades personalizadas",
|
|
357
|
-
"ru-RU": "Массив пользовательских свойств"
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
"name": "unit",
|
|
362
|
-
"type": "string|null",
|
|
363
|
-
"description": {
|
|
364
|
-
"en-GB": "Unit of quantity measurement, if not specified (null), will be set to \"pcs.\"",
|
|
365
|
-
"es-ES": "Unidad de medida de cantidad, si no se especifica (null), se establecerá en \"pcs.\"",
|
|
366
|
-
"ru-RU": "Единица измерения количества, если не указана (null), будет указано \"шт.\""
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
"name": "purchasePrice",
|
|
371
|
-
"type": "Money|null",
|
|
372
|
-
"description": {
|
|
373
|
-
"en-GB": "Purchase price, value + currency",
|
|
374
|
-
"es-ES": "Precio de compra, valor + moneda",
|
|
375
|
-
"ru-RU": "Закупочная цена, значение + валюта"
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
]
|
|
379
|
-
},
|
|
380
380
|
{
|
|
381
381
|
"name": "OrderItem",
|
|
382
382
|
"fields": [
|
|
@@ -585,6 +585,256 @@
|
|
|
585
585
|
}
|
|
586
586
|
]
|
|
587
587
|
},
|
|
588
|
+
{
|
|
589
|
+
"name": "CreateMgOrderItemInput",
|
|
590
|
+
"fields": [
|
|
591
|
+
{
|
|
592
|
+
"name": "productId",
|
|
593
|
+
"type": "number",
|
|
594
|
+
"description": {
|
|
595
|
+
"en-GB": "Product or service ID",
|
|
596
|
+
"es-ES": "ID del producto o servicio",
|
|
597
|
+
"ru-RU": "Идентификатор товара или услуги"
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"name": "offerId",
|
|
602
|
+
"type": "number",
|
|
603
|
+
"description": {
|
|
604
|
+
"en-GB": "Trade offer ID",
|
|
605
|
+
"es-ES": "ID de la oferta comercial",
|
|
606
|
+
"ru-RU": "Идентификатор торгового предложения"
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"name": "priceAmount",
|
|
611
|
+
"type": "number",
|
|
612
|
+
"description": {
|
|
613
|
+
"en-GB": "Price value in order currency",
|
|
614
|
+
"es-ES": "Valor del precio en la moneda del pedido",
|
|
615
|
+
"ru-RU": "Значение цены в валюте заказа"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"name": "priceTypeCode",
|
|
620
|
+
"type": "string",
|
|
621
|
+
"description": {
|
|
622
|
+
"en-GB": "Character price type code",
|
|
623
|
+
"es-ES": "Código de tipo de precio de caracteres",
|
|
624
|
+
"ru-RU": "Символьный код типа цены"
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"name": "quantity",
|
|
629
|
+
"type": "number",
|
|
630
|
+
"description": {
|
|
631
|
+
"en-GB": "Item quantity",
|
|
632
|
+
"es-ES": "Cantidad del artículo",
|
|
633
|
+
"ru-RU": "Количество товарной позиции"
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
]
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"name": "MgOrderItem",
|
|
640
|
+
"fields": [
|
|
641
|
+
{
|
|
642
|
+
"name": "id",
|
|
643
|
+
"type": "number|null",
|
|
644
|
+
"description": {
|
|
645
|
+
"en-GB": "ID",
|
|
646
|
+
"es-ES": "ID",
|
|
647
|
+
"ru-RU": "Идентификатор"
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"name": "index",
|
|
652
|
+
"type": "number",
|
|
653
|
+
"description": {
|
|
654
|
+
"en-GB": "Temporary ID while editing order",
|
|
655
|
+
"es-ES": "ID temporal durante la edición del pedido",
|
|
656
|
+
"ru-RU": "Порядковый номер товара в заказе"
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"name": "type",
|
|
661
|
+
"type": "\"PRODUCT\"|\"SERVICE\"",
|
|
662
|
+
"description": {
|
|
663
|
+
"en-GB": "Item type - product or service",
|
|
664
|
+
"es-ES": "Tipo de artículo - producto o servicio",
|
|
665
|
+
"ru-RU": "Тип товарной позиции - товар или услуга"
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"name": "product",
|
|
670
|
+
"type": "Product|null",
|
|
671
|
+
"description": {
|
|
672
|
+
"en-GB": "Selected product or service",
|
|
673
|
+
"es-ES": "Producto o servicio seleccionado",
|
|
674
|
+
"ru-RU": "Выбранный товар или услуга"
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "offer",
|
|
679
|
+
"type": "Offer|null",
|
|
680
|
+
"description": {
|
|
681
|
+
"en-GB": "Trade offer for selected product or service",
|
|
682
|
+
"es-ES": "Oferta comercial para el producto o servicio seleccionado",
|
|
683
|
+
"ru-RU": "Торговое предложение для выбранного товара или услуги"
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"name": "price",
|
|
688
|
+
"type": "Price",
|
|
689
|
+
"description": {
|
|
690
|
+
"en-GB": "Product price and currency",
|
|
691
|
+
"es-ES": "Precio del producto y moneda",
|
|
692
|
+
"ru-RU": "Цена товара и валюта"
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"name": "quantity",
|
|
697
|
+
"type": "number",
|
|
698
|
+
"description": {
|
|
699
|
+
"en-GB": "Item quantity",
|
|
700
|
+
"es-ES": "Cantidad del artículo",
|
|
701
|
+
"ru-RU": "Количество товарной позиции"
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"name": "discount",
|
|
706
|
+
"type": "Discount",
|
|
707
|
+
"description": {
|
|
708
|
+
"en-GB": "Final monetary discount including all product and order discounts (in the object currency)",
|
|
709
|
+
"es-ES": "Descuento monetario final incluyendo todos los descuentos del producto y del pedido (en la moneda del objeto)",
|
|
710
|
+
"ru-RU": "Итоговая денежная скидка c учетом всех скидок на товар и заказ (в валюте объекта)"
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"name": "bonuses",
|
|
715
|
+
"type": "Bonuses",
|
|
716
|
+
"description": {
|
|
717
|
+
"en-GB": "Number of redeemed and accrued bonuses",
|
|
718
|
+
"es-ES": "Cantidad de bonos canjeados y acumulados",
|
|
719
|
+
"ru-RU": "Количество списанных и начисленных бонусов"
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"name": "total",
|
|
724
|
+
"type": "Money|null",
|
|
725
|
+
"description": {
|
|
726
|
+
"en-GB": "Total item cost including discounts",
|
|
727
|
+
"es-ES": "Coste total del artículo con descuentos",
|
|
728
|
+
"ru-RU": "Общая стоимость товарной позиции с учетом скидок"
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"name": "totalPerUnit",
|
|
733
|
+
"type": "Money|null",
|
|
734
|
+
"description": {
|
|
735
|
+
"en-GB": "Final unit price of the product",
|
|
736
|
+
"es-ES": "Precio final por unidad del producto",
|
|
737
|
+
"ru-RU": "Итоговая стоимость единицы товара"
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"name": "status",
|
|
742
|
+
"type": "OrderItemStatus|null",
|
|
743
|
+
"description": {
|
|
744
|
+
"en-GB": "Status",
|
|
745
|
+
"es-ES": "Estado",
|
|
746
|
+
"ru-RU": "Статус"
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
]
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"name": "Price",
|
|
753
|
+
"fields": [
|
|
754
|
+
{
|
|
755
|
+
"name": "type",
|
|
756
|
+
"type": "PriceType|null",
|
|
757
|
+
"description": {
|
|
758
|
+
"en-GB": "Price type",
|
|
759
|
+
"es-ES": "Tipo de precio",
|
|
760
|
+
"ru-RU": "Тип цены"
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"name": "value",
|
|
765
|
+
"type": "Money",
|
|
766
|
+
"description": {
|
|
767
|
+
"en-GB": "Product price",
|
|
768
|
+
"es-ES": "Precio del producto",
|
|
769
|
+
"ru-RU": "Цена товара"
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
]
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"name": "MgDiscount",
|
|
776
|
+
"fields": [
|
|
777
|
+
{
|
|
778
|
+
"name": "amount",
|
|
779
|
+
"type": "number",
|
|
780
|
+
"description": {
|
|
781
|
+
"en-GB": "Discount amount",
|
|
782
|
+
"es-ES": "Importe del descuento",
|
|
783
|
+
"ru-RU": "Размер скидки"
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"name": "percent",
|
|
788
|
+
"type": "number",
|
|
789
|
+
"description": {
|
|
790
|
+
"en-GB": "Discount percentage",
|
|
791
|
+
"es-ES": "Porcentaje de descuento",
|
|
792
|
+
"ru-RU": "Процент скидки"
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"name": "share",
|
|
797
|
+
"type": "Money",
|
|
798
|
+
"description": {
|
|
799
|
+
"en-GB": "Discount share",
|
|
800
|
+
"es-ES": "Participación en el descuento",
|
|
801
|
+
"ru-RU": "Доля скидки"
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"name": "total",
|
|
806
|
+
"type": "Money",
|
|
807
|
+
"description": {
|
|
808
|
+
"en-GB": "Share of the discount in the total final order discount",
|
|
809
|
+
"es-ES": "Participación del descuento en el importe total del descuento final del pedido",
|
|
810
|
+
"ru-RU": "Доля скидки в общем размере итоговой скидки по заказу"
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
]
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"name": "Bonuses",
|
|
817
|
+
"fields": [
|
|
818
|
+
{
|
|
819
|
+
"name": "charge",
|
|
820
|
+
"type": "number",
|
|
821
|
+
"description": {
|
|
822
|
+
"en-GB": "Amount of charged bonuses",
|
|
823
|
+
"es-ES": "Cantidad de bonos cargados",
|
|
824
|
+
"ru-RU": "Количество списанных бонусов"
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"name": "credit",
|
|
829
|
+
"type": "number",
|
|
830
|
+
"description": {
|
|
831
|
+
"en-GB": "Amount of credited bonuses",
|
|
832
|
+
"es-ES": "Cantidad de bonos acreditados",
|
|
833
|
+
"ru-RU": "Количество начисленных бонусов"
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
]
|
|
837
|
+
},
|
|
588
838
|
{
|
|
589
839
|
"name": "Dimensions",
|
|
590
840
|
"fields": [
|
|
@@ -661,17 +911,144 @@
|
|
|
661
911
|
"ru-RU": "Единица измерения"
|
|
662
912
|
}
|
|
663
913
|
}
|
|
664
|
-
]
|
|
665
|
-
}
|
|
666
|
-
],
|
|
667
|
-
"actions": {
|
|
668
|
-
"order/card": [
|
|
914
|
+
]
|
|
915
|
+
}
|
|
916
|
+
],
|
|
917
|
+
"actions": {
|
|
918
|
+
"order/card": [
|
|
919
|
+
{
|
|
920
|
+
"name": "createItem",
|
|
921
|
+
"arguments": [
|
|
922
|
+
{
|
|
923
|
+
"name": "input",
|
|
924
|
+
"type": "CreateOrderItemInput"
|
|
925
|
+
}
|
|
926
|
+
],
|
|
927
|
+
"returns": "Promise<number>",
|
|
928
|
+
"description": {
|
|
929
|
+
"en-GB": "Creates and adds a new item to the order",
|
|
930
|
+
"es-ES": "Crea y agrega un nuevo artículo al pedido",
|
|
931
|
+
"ru-RU": "Создает и добавляет новую товарную позицию в заказ"
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"name": "changeItemPrice",
|
|
936
|
+
"arguments": [
|
|
937
|
+
{
|
|
938
|
+
"name": "index",
|
|
939
|
+
"type": "number"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"name": "amount",
|
|
943
|
+
"type": "number"
|
|
944
|
+
}
|
|
945
|
+
],
|
|
946
|
+
"returns": "Promise<void>",
|
|
947
|
+
"description": {
|
|
948
|
+
"en-GB": "Changes the price value of an item",
|
|
949
|
+
"es-ES": "Cambia el valor del precio de un artículo",
|
|
950
|
+
"ru-RU": "Изменяет значение цены товарной позиции"
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"name": "changeItemPriceType",
|
|
955
|
+
"arguments": [
|
|
956
|
+
{
|
|
957
|
+
"name": "index",
|
|
958
|
+
"type": "number"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"name": "code",
|
|
962
|
+
"type": "string|null"
|
|
963
|
+
}
|
|
964
|
+
],
|
|
965
|
+
"returns": "Promise<void>",
|
|
966
|
+
"description": {
|
|
967
|
+
"en-GB": "Changes the price type value of an item, changes the price if the new price type is not empty",
|
|
968
|
+
"es-ES": "Cambia el valor del tipo de precio de un artículo, cambia el precio si el nuevo tipo de precio no está vacío",
|
|
969
|
+
"ru-RU": "Изменяет значение типа цены товарной позиции, изменяет цену, если новый тип цены не пуст"
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"name": "changeItemDiscount",
|
|
974
|
+
"arguments": [
|
|
975
|
+
{
|
|
976
|
+
"name": "index",
|
|
977
|
+
"type": "number"
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"name": "discount",
|
|
981
|
+
"type": "{ amount: number|undefined, percent: number|undefined }"
|
|
982
|
+
}
|
|
983
|
+
],
|
|
984
|
+
"returns": "Promise<void>",
|
|
985
|
+
"description": {
|
|
986
|
+
"en-GB": "Changes the discount value of an item",
|
|
987
|
+
"es-ES": "Cambia el valor del descuento de un artículo",
|
|
988
|
+
"ru-RU": "Изменяет значение скидки товарной позиции"
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
"name": "changeItemQuantity",
|
|
993
|
+
"arguments": [
|
|
994
|
+
{
|
|
995
|
+
"name": "index",
|
|
996
|
+
"type": "number"
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"name": "quantity",
|
|
1000
|
+
"type": "number"
|
|
1001
|
+
}
|
|
1002
|
+
],
|
|
1003
|
+
"returns": "Promise<void>",
|
|
1004
|
+
"description": {
|
|
1005
|
+
"en-GB": "Changes the quantity of an item",
|
|
1006
|
+
"es-ES": "Cambia la cantidad de un artículo",
|
|
1007
|
+
"ru-RU": "Изменяет количество товарной позиции"
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
"name": "changeItemStatus",
|
|
1012
|
+
"arguments": [
|
|
1013
|
+
{
|
|
1014
|
+
"name": "index",
|
|
1015
|
+
"type": "number"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"name": "statusCode",
|
|
1019
|
+
"type": "string"
|
|
1020
|
+
}
|
|
1021
|
+
],
|
|
1022
|
+
"returns": "Promise<void>",
|
|
1023
|
+
"description": {
|
|
1024
|
+
"en-GB": "Changes the status of an item by specified identifier",
|
|
1025
|
+
"es-ES": "Cambia el estado de un artículo por identificador especificado",
|
|
1026
|
+
"ru-RU": "Изменяет статус товарной позиции по указанному идентификатору"
|
|
1027
|
+
}
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
"name": "removeItem",
|
|
1031
|
+
"arguments": [
|
|
1032
|
+
{
|
|
1033
|
+
"name": "index",
|
|
1034
|
+
"type": "number"
|
|
1035
|
+
}
|
|
1036
|
+
],
|
|
1037
|
+
"returns": "Promise<void>",
|
|
1038
|
+
"description": {
|
|
1039
|
+
"en-GB": "Removes an item from the order",
|
|
1040
|
+
"es-ES": "Elimina un artículo del pedido",
|
|
1041
|
+
"ru-RU": "Удаляет товарную позицию из заказа"
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
],
|
|
1045
|
+
"order/mg": [
|
|
669
1046
|
{
|
|
670
1047
|
"name": "createItem",
|
|
671
1048
|
"arguments": [
|
|
672
1049
|
{
|
|
673
1050
|
"name": "input",
|
|
674
|
-
"type": "
|
|
1051
|
+
"type": "CreateMgOrderItemInput"
|
|
675
1052
|
}
|
|
676
1053
|
],
|
|
677
1054
|
"returns": "Promise<number>",
|
|
@@ -685,50 +1062,31 @@
|
|
|
685
1062
|
"name": "changeItemPrice",
|
|
686
1063
|
"arguments": [
|
|
687
1064
|
{
|
|
688
|
-
"name": "
|
|
689
|
-
"type": "
|
|
1065
|
+
"name": "item",
|
|
1066
|
+
"type": "OrderItem"
|
|
690
1067
|
},
|
|
691
1068
|
{
|
|
692
|
-
"name": "
|
|
693
|
-
"type": "number"
|
|
1069
|
+
"name": "price",
|
|
1070
|
+
"type": "number|Price"
|
|
694
1071
|
}
|
|
695
1072
|
],
|
|
696
1073
|
"returns": "Promise<void>",
|
|
697
1074
|
"description": {
|
|
698
1075
|
"en-GB": "Changes the price value of an item",
|
|
699
1076
|
"es-ES": "Cambia el valor del precio de un artículo",
|
|
700
|
-
"ru-RU": "Изменяет значение цены товарной
|
|
701
|
-
}
|
|
702
|
-
},
|
|
703
|
-
{
|
|
704
|
-
"name": "changeItemPriceType",
|
|
705
|
-
"arguments": [
|
|
706
|
-
{
|
|
707
|
-
"name": "index",
|
|
708
|
-
"type": "number"
|
|
709
|
-
},
|
|
710
|
-
{
|
|
711
|
-
"name": "code",
|
|
712
|
-
"type": "string|null"
|
|
713
|
-
}
|
|
714
|
-
],
|
|
715
|
-
"returns": "Promise<void>",
|
|
716
|
-
"description": {
|
|
717
|
-
"en-GB": "Changes the price type value of an item, changes the price if the new price type is not empty",
|
|
718
|
-
"es-ES": "Cambia el valor del tipo de precio de un artículo, cambia el precio si el nuevo tipo de precio no está vacío",
|
|
719
|
-
"ru-RU": "Изменяет значение типа цены товарной позиции, изменяет цену, если новый тип цены не пуст"
|
|
1077
|
+
"ru-RU": "Изменяет значение цены и её типа товарной позиции. Изменяет цену, если новый тип цены не пуст"
|
|
720
1078
|
}
|
|
721
1079
|
},
|
|
722
1080
|
{
|
|
723
1081
|
"name": "changeItemDiscount",
|
|
724
1082
|
"arguments": [
|
|
725
1083
|
{
|
|
726
|
-
"name": "
|
|
727
|
-
"type": "
|
|
1084
|
+
"name": "item",
|
|
1085
|
+
"type": "OrderItem"
|
|
728
1086
|
},
|
|
729
1087
|
{
|
|
730
1088
|
"name": "discount",
|
|
731
|
-
"type": "
|
|
1089
|
+
"type": "object"
|
|
732
1090
|
}
|
|
733
1091
|
],
|
|
734
1092
|
"returns": "Promise<void>",
|
|
@@ -742,8 +1100,8 @@
|
|
|
742
1100
|
"name": "changeItemQuantity",
|
|
743
1101
|
"arguments": [
|
|
744
1102
|
{
|
|
745
|
-
"name": "
|
|
746
|
-
"type": "
|
|
1103
|
+
"name": "item",
|
|
1104
|
+
"type": "OrderItem"
|
|
747
1105
|
},
|
|
748
1106
|
{
|
|
749
1107
|
"name": "quantity",
|
|
@@ -761,11 +1119,11 @@
|
|
|
761
1119
|
"name": "changeItemStatus",
|
|
762
1120
|
"arguments": [
|
|
763
1121
|
{
|
|
764
|
-
"name": "
|
|
765
|
-
"type": "
|
|
1122
|
+
"name": "item",
|
|
1123
|
+
"type": "OrderItem"
|
|
766
1124
|
},
|
|
767
1125
|
{
|
|
768
|
-
"name": "
|
|
1126
|
+
"name": "code",
|
|
769
1127
|
"type": "string"
|
|
770
1128
|
}
|
|
771
1129
|
],
|
|
@@ -773,15 +1131,15 @@
|
|
|
773
1131
|
"description": {
|
|
774
1132
|
"en-GB": "Changes the status of an item by specified identifier",
|
|
775
1133
|
"es-ES": "Cambia el estado de un artículo por identificador especificado",
|
|
776
|
-
"ru-RU": "Изменяет статус товарной позиции по указанному
|
|
1134
|
+
"ru-RU": "Изменяет статус товарной позиции по указанному коду"
|
|
777
1135
|
}
|
|
778
1136
|
},
|
|
779
1137
|
{
|
|
780
1138
|
"name": "removeItem",
|
|
781
1139
|
"arguments": [
|
|
782
1140
|
{
|
|
783
|
-
"name": "
|
|
784
|
-
"type": "
|
|
1141
|
+
"name": "item",
|
|
1142
|
+
"type": "OrderItem"
|
|
785
1143
|
}
|
|
786
1144
|
],
|
|
787
1145
|
"returns": "Promise<void>",
|
|
@@ -1281,158 +1639,364 @@
|
|
|
1281
1639
|
"readonly": true
|
|
1282
1640
|
},
|
|
1283
1641
|
{
|
|
1284
|
-
"name": "priceEditable",
|
|
1285
|
-
"type": "boolean",
|
|
1642
|
+
"name": "priceEditable",
|
|
1643
|
+
"type": "boolean",
|
|
1644
|
+
"description": {
|
|
1645
|
+
"en-GB": "Ability to edit item prices",
|
|
1646
|
+
"es-ES": "Capacidad de editar precios de artículos",
|
|
1647
|
+
"ru-RU": "Возможность редактировать цену товарных позиций"
|
|
1648
|
+
},
|
|
1649
|
+
"readonly": true
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
"name": "productsRemoveAllowed",
|
|
1653
|
+
"type": "boolean",
|
|
1654
|
+
"description": {
|
|
1655
|
+
"en-GB": "Ability to delete items from the order",
|
|
1656
|
+
"es-ES": "Posibilidad de eliminar artículos del pedido",
|
|
1657
|
+
"ru-RU": "Возможность удалять товарные позиции из заказа"
|
|
1658
|
+
},
|
|
1659
|
+
"readonly": true
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
"name": "productsMarkingEnabled",
|
|
1663
|
+
"type": "boolean",
|
|
1664
|
+
"description": {
|
|
1665
|
+
"en-GB": "Possibility of working with marked products",
|
|
1666
|
+
"es-ES": "Posibilidad de trabajar con productos marcados",
|
|
1667
|
+
"ru-RU": "Возможность работы с маркированными товарами"
|
|
1668
|
+
},
|
|
1669
|
+
"readonly": true
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"name": "propertiesToShow.additional",
|
|
1673
|
+
"type": "Array<string>",
|
|
1674
|
+
"description": {
|
|
1675
|
+
"en-GB": "Additional product fields displayed in the product list",
|
|
1676
|
+
"es-ES": "Campos adicionales de productos que se muestran en la lista de productos",
|
|
1677
|
+
"ru-RU": "Дополнительные поля товаров, выводимые в списке товарных позиций"
|
|
1678
|
+
},
|
|
1679
|
+
"readonly": true
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"name": "propertiesToShow.base",
|
|
1683
|
+
"type": "Array<string>",
|
|
1684
|
+
"description": {
|
|
1685
|
+
"en-GB": "Basic product fields displayed in the product list",
|
|
1686
|
+
"es-ES": "Campos básicos de productos que se muestran en la lista de productos",
|
|
1687
|
+
"ru-RU": "Базовые поля товаров, выводимые в списке товарных позиций"
|
|
1688
|
+
},
|
|
1689
|
+
"readonly": true
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
"name": "purchasePriceEditable",
|
|
1693
|
+
"type": "boolean",
|
|
1694
|
+
"description": {
|
|
1695
|
+
"en-GB": "Ability to edit purchase prices in the product list",
|
|
1696
|
+
"es-ES": "Capacidad de editar precios de compra en la lista de productos",
|
|
1697
|
+
"ru-RU": "Возможность редактирования закупочных цен в списке товарных позиций"
|
|
1698
|
+
},
|
|
1699
|
+
"readonly": true
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
"name": "purchasePriceVisible",
|
|
1703
|
+
"type": "boolean",
|
|
1704
|
+
"description": {
|
|
1705
|
+
"en-GB": "Display purchase prices in the product list",
|
|
1706
|
+
"es-ES": "Mostrar precios de compra en la lista de productos",
|
|
1707
|
+
"ru-RU": "Отображать закупочные цены в списке товарных позиций"
|
|
1708
|
+
},
|
|
1709
|
+
"readonly": true
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
"name": "reserveDeliveryNoteEditable",
|
|
1713
|
+
"type": "boolean",
|
|
1714
|
+
"description": {
|
|
1715
|
+
"en-GB": "Ability to edit delivery note number when reserving products",
|
|
1716
|
+
"es-ES": "Posibilidad de editar el número de albarán al reservar productos",
|
|
1717
|
+
"ru-RU": "Возможность редактирования номера накладной при бронировании товаров"
|
|
1718
|
+
},
|
|
1719
|
+
"readonly": true
|
|
1720
|
+
},
|
|
1721
|
+
{
|
|
1722
|
+
"name": "reserveInvoiceEditable",
|
|
1723
|
+
"type": "boolean",
|
|
1724
|
+
"description": {
|
|
1725
|
+
"en-GB": "Ability to edit invoice number when reserving products",
|
|
1726
|
+
"es-ES": "Posibilidad de editar el número de factura al reservar productos",
|
|
1727
|
+
"ru-RU": "Возможность редактирования номера счет-фактуры при бронировании товара"
|
|
1728
|
+
},
|
|
1729
|
+
"readonly": true
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"name": "reserveShipmentDateEditable",
|
|
1733
|
+
"type": "boolean",
|
|
1734
|
+
"description": {
|
|
1735
|
+
"en-GB": "Ability to edit shipment date when reserving products",
|
|
1736
|
+
"es-ES": "Posibilidad de editar la fecha de envío al reservar productos",
|
|
1737
|
+
"ru-RU": "Возможность редактирования даты отгрузки при бронировании товара"
|
|
1738
|
+
},
|
|
1739
|
+
"readonly": true
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"name": "reserveTelephonyEnabled",
|
|
1743
|
+
"type": "boolean",
|
|
1744
|
+
"description": {
|
|
1745
|
+
"en-GB": "Telephony availability when reserving products",
|
|
1746
|
+
"es-ES": "Disponibilidad de telefonía al reservar productos",
|
|
1747
|
+
"ru-RU": "Доступность телефонии при бронировании товара"
|
|
1748
|
+
},
|
|
1749
|
+
"readonly": true
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
"name": "showArticle",
|
|
1753
|
+
"type": "boolean",
|
|
1754
|
+
"description": {
|
|
1755
|
+
"en-GB": "Display SKU",
|
|
1756
|
+
"es-ES": "Mostrar SKU",
|
|
1757
|
+
"ru-RU": "Отображать артикул"
|
|
1758
|
+
},
|
|
1759
|
+
"readonly": true
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
"name": "showPriceTypes",
|
|
1763
|
+
"type": "boolean",
|
|
1764
|
+
"description": {
|
|
1765
|
+
"en-GB": "Work with price types",
|
|
1766
|
+
"es-ES": "Trabajo con tipos de precios",
|
|
1767
|
+
"ru-RU": "Работа с типами цен"
|
|
1768
|
+
},
|
|
1769
|
+
"readonly": true
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
"name": "useStores",
|
|
1773
|
+
"type": "boolean",
|
|
1774
|
+
"description": {
|
|
1775
|
+
"en-GB": "Work with warehouses",
|
|
1776
|
+
"es-ES": "Trabajo con almacenes",
|
|
1777
|
+
"ru-RU": "Работа со складами"
|
|
1778
|
+
},
|
|
1779
|
+
"readonly": true
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"name": "useReserve",
|
|
1783
|
+
"type": "boolean",
|
|
1784
|
+
"description": {
|
|
1785
|
+
"en-GB": "Work with reservations",
|
|
1786
|
+
"es-ES": "Trabajo con reservas",
|
|
1787
|
+
"ru-RU": "Работа с бронированием"
|
|
1788
|
+
},
|
|
1789
|
+
"readonly": true
|
|
1790
|
+
}
|
|
1791
|
+
],
|
|
1792
|
+
"usage": {
|
|
1793
|
+
"import": "import { useContext } from '@retailcrm/embed-ui-v1-contexts/remote/order/card-settings'",
|
|
1794
|
+
"call": "const orderSettings = useContext()"
|
|
1795
|
+
}
|
|
1796
|
+
},
|
|
1797
|
+
"order/mg": {
|
|
1798
|
+
"fields": [
|
|
1799
|
+
{
|
|
1800
|
+
"name": "id",
|
|
1801
|
+
"type": "number|null",
|
|
1802
|
+
"description": {
|
|
1803
|
+
"en-GB": "Order ID in CRM",
|
|
1804
|
+
"es-ES": "ID del pedido en CRM",
|
|
1805
|
+
"ru-RU": "Идентификатор заказа в CRM"
|
|
1806
|
+
},
|
|
1807
|
+
"readonly": true
|
|
1808
|
+
},
|
|
1809
|
+
{
|
|
1810
|
+
"name": "externalId",
|
|
1811
|
+
"type": "string|null",
|
|
1812
|
+
"description": {
|
|
1813
|
+
"en-GB": "The order ID in the external source system",
|
|
1814
|
+
"es-ES": "El ID del pedido en el sistema de origen externo",
|
|
1815
|
+
"ru-RU": "Идентифкатор заказа во внешней системе источника"
|
|
1816
|
+
},
|
|
1817
|
+
"readonly": true
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
"name": "type",
|
|
1821
|
+
"type": "string|null",
|
|
1822
|
+
"description": {
|
|
1823
|
+
"en-GB": "Order type code",
|
|
1824
|
+
"es-ES": "Código del tipo de pedido",
|
|
1825
|
+
"ru-RU": "Код типа заказа"
|
|
1826
|
+
},
|
|
1827
|
+
"readonly": true
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"name": "site",
|
|
1831
|
+
"type": "string|null",
|
|
1832
|
+
"description": {
|
|
1833
|
+
"en-GB": "Store code associated with the order",
|
|
1834
|
+
"es-ES": "Código de la tienda asociado al pedido",
|
|
1835
|
+
"ru-RU": "Код магазина, к которому относится заказ"
|
|
1836
|
+
},
|
|
1837
|
+
"readonly": true
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
"name": "number",
|
|
1841
|
+
"type": "string",
|
|
1286
1842
|
"description": {
|
|
1287
|
-
"en-GB": "
|
|
1288
|
-
"es-ES": "
|
|
1289
|
-
"ru-RU": "
|
|
1843
|
+
"en-GB": "Displayed order number",
|
|
1844
|
+
"es-ES": "Número de pedido mostrado",
|
|
1845
|
+
"ru-RU": "Отображаемый номер заказа"
|
|
1290
1846
|
},
|
|
1291
1847
|
"readonly": true
|
|
1292
1848
|
},
|
|
1293
1849
|
{
|
|
1294
|
-
"name": "
|
|
1295
|
-
"type": "
|
|
1850
|
+
"name": "country",
|
|
1851
|
+
"type": "string|null",
|
|
1296
1852
|
"description": {
|
|
1297
|
-
"en-GB": "
|
|
1298
|
-
"es-ES": "
|
|
1299
|
-
"ru-RU": "
|
|
1853
|
+
"en-GB": "Character code of the country",
|
|
1854
|
+
"es-ES": "Código de caracteres del país",
|
|
1855
|
+
"ru-RU": "Символьный код страны"
|
|
1300
1856
|
},
|
|
1301
1857
|
"readonly": true
|
|
1302
1858
|
},
|
|
1303
1859
|
{
|
|
1304
|
-
"name": "
|
|
1305
|
-
"type": "
|
|
1860
|
+
"name": "currency",
|
|
1861
|
+
"type": "string",
|
|
1306
1862
|
"description": {
|
|
1307
|
-
"en-GB": "
|
|
1308
|
-
"es-ES": "
|
|
1309
|
-
"ru-RU": "
|
|
1863
|
+
"en-GB": "Currency code",
|
|
1864
|
+
"es-ES": "Código de moneda",
|
|
1865
|
+
"ru-RU": "Символьный код валюты"
|
|
1310
1866
|
},
|
|
1311
1867
|
"readonly": true
|
|
1312
1868
|
},
|
|
1313
1869
|
{
|
|
1314
|
-
"name": "
|
|
1315
|
-
"type": "
|
|
1870
|
+
"name": "customer.id",
|
|
1871
|
+
"type": "number|null",
|
|
1316
1872
|
"description": {
|
|
1317
|
-
"en-GB": "
|
|
1318
|
-
"es-ES": "
|
|
1319
|
-
"ru-RU": "
|
|
1873
|
+
"en-GB": "Client ID in CRM",
|
|
1874
|
+
"es-ES": "ID del cliente en CRM",
|
|
1875
|
+
"ru-RU": "Идентификатор клиента в CRM"
|
|
1320
1876
|
},
|
|
1321
1877
|
"readonly": true
|
|
1322
1878
|
},
|
|
1323
1879
|
{
|
|
1324
|
-
"name": "
|
|
1325
|
-
"type": "
|
|
1880
|
+
"name": "customer.type",
|
|
1881
|
+
"type": "\"customer\"|\"customer_corporate\"",
|
|
1326
1882
|
"description": {
|
|
1327
|
-
"en-GB": "
|
|
1328
|
-
"es-ES": "
|
|
1329
|
-
"ru-RU": "
|
|
1883
|
+
"en-GB": "Client type",
|
|
1884
|
+
"es-ES": "Tipo de cliente",
|
|
1885
|
+
"ru-RU": "Тип клиента"
|
|
1330
1886
|
},
|
|
1331
1887
|
"readonly": true
|
|
1332
1888
|
},
|
|
1333
1889
|
{
|
|
1334
|
-
"name": "
|
|
1335
|
-
"type": "
|
|
1890
|
+
"name": "items",
|
|
1891
|
+
"type": "Array<OrderItem>",
|
|
1336
1892
|
"description": {
|
|
1337
|
-
"en-GB": "
|
|
1338
|
-
"es-ES": "
|
|
1339
|
-
"ru-RU": "
|
|
1893
|
+
"en-GB": "List of items in the order",
|
|
1894
|
+
"es-ES": "Lista de artículos en el pedido",
|
|
1895
|
+
"ru-RU": "Список товарных позиций заказа"
|
|
1340
1896
|
},
|
|
1341
1897
|
"readonly": true
|
|
1342
1898
|
},
|
|
1343
1899
|
{
|
|
1344
|
-
"name": "
|
|
1345
|
-
"type": "
|
|
1900
|
+
"name": "discount.amount",
|
|
1901
|
+
"type": "number",
|
|
1346
1902
|
"description": {
|
|
1347
|
-
"en-GB": "
|
|
1348
|
-
"es-ES": "
|
|
1349
|
-
"ru-RU": "
|
|
1903
|
+
"en-GB": "One-time discount amount in order currency",
|
|
1904
|
+
"es-ES": "Importe del descuento único en la moneda del pedido",
|
|
1905
|
+
"ru-RU": "Размер одноразовой скидки в валюте заказа"
|
|
1350
1906
|
},
|
|
1351
|
-
"readonly":
|
|
1907
|
+
"readonly": false
|
|
1352
1908
|
},
|
|
1353
1909
|
{
|
|
1354
|
-
"name": "
|
|
1355
|
-
"type": "
|
|
1910
|
+
"name": "discount.percent",
|
|
1911
|
+
"type": "number",
|
|
1356
1912
|
"description": {
|
|
1357
|
-
"en-GB": "
|
|
1358
|
-
"es-ES": "
|
|
1359
|
-
"ru-RU": "
|
|
1913
|
+
"en-GB": "One-time discount percentage",
|
|
1914
|
+
"es-ES": "Porcentaje de descuento único",
|
|
1915
|
+
"ru-RU": "Процент одноразовой скидки"
|
|
1360
1916
|
},
|
|
1361
|
-
"readonly":
|
|
1917
|
+
"readonly": false
|
|
1362
1918
|
},
|
|
1363
1919
|
{
|
|
1364
|
-
"name": "
|
|
1365
|
-
"type": "
|
|
1920
|
+
"name": "discount.total",
|
|
1921
|
+
"type": "number",
|
|
1366
1922
|
"description": {
|
|
1367
|
-
"en-GB": "
|
|
1368
|
-
"es-ES": "
|
|
1369
|
-
"ru-RU": "
|
|
1923
|
+
"en-GB": "Total order discount",
|
|
1924
|
+
"es-ES": "Descuento total del pedido",
|
|
1925
|
+
"ru-RU": "Общая скидка по заказу"
|
|
1370
1926
|
},
|
|
1371
1927
|
"readonly": true
|
|
1372
1928
|
},
|
|
1373
1929
|
{
|
|
1374
|
-
"name": "
|
|
1375
|
-
"type": "
|
|
1930
|
+
"name": "status",
|
|
1931
|
+
"type": "string",
|
|
1376
1932
|
"description": {
|
|
1377
|
-
"en-GB": "
|
|
1378
|
-
"es-ES": "
|
|
1379
|
-
"ru-RU": "
|
|
1933
|
+
"en-GB": "Order status",
|
|
1934
|
+
"es-ES": "Estado del pedido",
|
|
1935
|
+
"ru-RU": "Статус заказа"
|
|
1380
1936
|
},
|
|
1381
1937
|
"readonly": true
|
|
1382
|
-
}
|
|
1938
|
+
}
|
|
1939
|
+
],
|
|
1940
|
+
"usage": {
|
|
1941
|
+
"import": "import { useContext } from '@retailcrm/embed-ui-v1-contexts/remote/order/mg'",
|
|
1942
|
+
"call": "const order = useContext()"
|
|
1943
|
+
}
|
|
1944
|
+
},
|
|
1945
|
+
"order/mg:settings": {
|
|
1946
|
+
"fields": [
|
|
1383
1947
|
{
|
|
1384
|
-
"name": "
|
|
1385
|
-
"type": "
|
|
1948
|
+
"name": "defaultUnit",
|
|
1949
|
+
"type": "string|null",
|
|
1386
1950
|
"description": {
|
|
1387
|
-
"en-GB": "
|
|
1388
|
-
"es-ES": "
|
|
1389
|
-
"ru-RU": "
|
|
1951
|
+
"en-GB": "Default quantity unit of measurement",
|
|
1952
|
+
"es-ES": "Unidad de medida de cantidad predeterminada",
|
|
1953
|
+
"ru-RU": "Единица измерения количества по-умолчанию"
|
|
1390
1954
|
},
|
|
1391
1955
|
"readonly": true
|
|
1392
1956
|
},
|
|
1393
1957
|
{
|
|
1394
|
-
"name": "
|
|
1958
|
+
"name": "duplicatesAllowed",
|
|
1395
1959
|
"type": "boolean",
|
|
1396
1960
|
"description": {
|
|
1397
|
-
"en-GB": "
|
|
1398
|
-
"es-ES": "
|
|
1399
|
-
"ru-RU": "
|
|
1961
|
+
"en-GB": "Possibility of adding the same SKUs to the order as different items",
|
|
1962
|
+
"es-ES": "La posibilidad de añadir las mismas variantes como diferentes productos al pedido",
|
|
1963
|
+
"ru-RU": "Возможность добавлять в заказ одинаковые торговые предложения как разные позиции"
|
|
1400
1964
|
},
|
|
1401
1965
|
"readonly": true
|
|
1402
1966
|
},
|
|
1403
1967
|
{
|
|
1404
|
-
"name": "
|
|
1968
|
+
"name": "quantityIsFractional",
|
|
1405
1969
|
"type": "boolean",
|
|
1406
1970
|
"description": {
|
|
1407
|
-
"en-GB": "
|
|
1408
|
-
"es-ES": "
|
|
1409
|
-
"ru-RU": "
|
|
1971
|
+
"en-GB": "Integer or fractional quantity of items",
|
|
1972
|
+
"es-ES": "Cantidad entera o fraccionada de productos",
|
|
1973
|
+
"ru-RU": "Целое или дробное количество товара"
|
|
1410
1974
|
},
|
|
1411
1975
|
"readonly": true
|
|
1412
1976
|
},
|
|
1413
1977
|
{
|
|
1414
|
-
"name": "
|
|
1978
|
+
"name": "priceEditable",
|
|
1415
1979
|
"type": "boolean",
|
|
1416
1980
|
"description": {
|
|
1417
|
-
"en-GB": "
|
|
1418
|
-
"es-ES": "
|
|
1419
|
-
"ru-RU": "
|
|
1981
|
+
"en-GB": "Ability to edit item prices",
|
|
1982
|
+
"es-ES": "Capacidad de editar precios de artículos",
|
|
1983
|
+
"ru-RU": "Возможность редактировать цену товарных позиций"
|
|
1420
1984
|
},
|
|
1421
1985
|
"readonly": true
|
|
1422
1986
|
},
|
|
1423
1987
|
{
|
|
1424
|
-
"name": "
|
|
1425
|
-
"type": "
|
|
1988
|
+
"name": "availableStatuses",
|
|
1989
|
+
"type": "Array<OrderItemStatus>",
|
|
1426
1990
|
"description": {
|
|
1427
|
-
"en-GB": "
|
|
1428
|
-
"es-ES": "
|
|
1429
|
-
"ru-RU": "
|
|
1991
|
+
"en-GB": "List of available order item statuses",
|
|
1992
|
+
"es-ES": "Lista de estados disponibles de los artículos del pedido",
|
|
1993
|
+
"ru-RU": "Доступные статусы товарных позиций заказа"
|
|
1430
1994
|
},
|
|
1431
1995
|
"readonly": true
|
|
1432
1996
|
}
|
|
1433
1997
|
],
|
|
1434
1998
|
"usage": {
|
|
1435
|
-
"import": "import { useContext } from '@retailcrm/embed-ui-v1-contexts/remote/order/
|
|
1999
|
+
"import": "import { useContext } from '@retailcrm/embed-ui-v1-contexts/remote/order/mg-settings'",
|
|
1436
2000
|
"call": "const orderSettings = useContext()"
|
|
1437
2001
|
}
|
|
1438
2002
|
},
|
|
@@ -2032,6 +2596,156 @@
|
|
|
2032
2596
|
"actions": [
|
|
2033
2597
|
"order/card"
|
|
2034
2598
|
]
|
|
2599
|
+
},
|
|
2600
|
+
{
|
|
2601
|
+
"id": "order/mg:list.before",
|
|
2602
|
+
"description": {
|
|
2603
|
+
"en-GB": "Widget for the block \"Order items\"",
|
|
2604
|
+
"es-ES": "Widget para el bloque \"Artículos del pedido\"",
|
|
2605
|
+
"ru-RU": "Виджет для блока \"Состав заказа\""
|
|
2606
|
+
},
|
|
2607
|
+
"location": {
|
|
2608
|
+
"en-GB": "Section start, right above the list of order items",
|
|
2609
|
+
"es-ES": "Inicio de la sección, justo encima de la lista de artículos del pedido",
|
|
2610
|
+
"ru-RU": "Начало секции, над списком товарных позиций"
|
|
2611
|
+
},
|
|
2612
|
+
"contexts": [
|
|
2613
|
+
"order/mg",
|
|
2614
|
+
"order/mg:settings",
|
|
2615
|
+
"user/current",
|
|
2616
|
+
"settings"
|
|
2617
|
+
],
|
|
2618
|
+
"customContexts": [
|
|
2619
|
+
"order"
|
|
2620
|
+
],
|
|
2621
|
+
"actions": [
|
|
2622
|
+
"order/mg"
|
|
2623
|
+
]
|
|
2624
|
+
},
|
|
2625
|
+
{
|
|
2626
|
+
"id": "order/mg:list.after",
|
|
2627
|
+
"description": {
|
|
2628
|
+
"en-GB": "Widget for the block \"Order items\"",
|
|
2629
|
+
"es-ES": "Widget para el bloque \"Artículos del pedido\"",
|
|
2630
|
+
"ru-RU": "Виджет для блока \"Состав заказа\""
|
|
2631
|
+
},
|
|
2632
|
+
"location": {
|
|
2633
|
+
"en-GB": "Section end, right after the list of order items and before the discount, privilege selection, etc. input fields",
|
|
2634
|
+
"es-ES": "Fin de la sección, justo después de la lista de artículos del pedido y antes de los campos de entrada de descuento, selección de privilegios, etc.",
|
|
2635
|
+
"ru-RU": "Конец секции, сразу после списка товарных позиций и до полей ввода скидки, выбора привилегии и т.п."
|
|
2636
|
+
},
|
|
2637
|
+
"contexts": [
|
|
2638
|
+
"order/mg",
|
|
2639
|
+
"order/mg:settings",
|
|
2640
|
+
"user/current",
|
|
2641
|
+
"settings"
|
|
2642
|
+
],
|
|
2643
|
+
"customContexts": [
|
|
2644
|
+
"order"
|
|
2645
|
+
],
|
|
2646
|
+
"actions": [
|
|
2647
|
+
"order/mg"
|
|
2648
|
+
]
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
"id": "order/mg:delivery.before",
|
|
2652
|
+
"description": {
|
|
2653
|
+
"en-GB": "Widget for the block \"Delivery\"",
|
|
2654
|
+
"es-ES": "Widget para el bloque \"Entrega\"",
|
|
2655
|
+
"ru-RU": "Виджет для блока \"Доставка\""
|
|
2656
|
+
},
|
|
2657
|
+
"location": {
|
|
2658
|
+
"en-GB": "Section start, right above the input field",
|
|
2659
|
+
"es-ES": "Inicio de la sección, justo encima del campo de entrada",
|
|
2660
|
+
"ru-RU": "Начало секции, над полем ввода"
|
|
2661
|
+
},
|
|
2662
|
+
"contexts": [
|
|
2663
|
+
"order/mg",
|
|
2664
|
+
"order/mg:settings",
|
|
2665
|
+
"user/current",
|
|
2666
|
+
"settings"
|
|
2667
|
+
],
|
|
2668
|
+
"customContexts": [
|
|
2669
|
+
"order"
|
|
2670
|
+
],
|
|
2671
|
+
"actions": [
|
|
2672
|
+
"order/mg"
|
|
2673
|
+
]
|
|
2674
|
+
},
|
|
2675
|
+
{
|
|
2676
|
+
"id": "order/mg:delivery.after",
|
|
2677
|
+
"description": {
|
|
2678
|
+
"en-GB": "Widget for the block \"Delivery\"",
|
|
2679
|
+
"es-ES": "Widget para el bloque \"Entrega\"",
|
|
2680
|
+
"ru-RU": "Виджет для блока \"Доставка\""
|
|
2681
|
+
},
|
|
2682
|
+
"location": {
|
|
2683
|
+
"en-GB": "Section end, right under the input fields",
|
|
2684
|
+
"es-ES": "Fin de la sección, justo debajo de los campos de entrada",
|
|
2685
|
+
"ru-RU": "Конец секции, под полями ввода"
|
|
2686
|
+
},
|
|
2687
|
+
"contexts": [
|
|
2688
|
+
"order/mg",
|
|
2689
|
+
"order/mg:settings",
|
|
2690
|
+
"user/current",
|
|
2691
|
+
"settings"
|
|
2692
|
+
],
|
|
2693
|
+
"customContexts": [
|
|
2694
|
+
"order"
|
|
2695
|
+
],
|
|
2696
|
+
"actions": [
|
|
2697
|
+
"order/mg"
|
|
2698
|
+
]
|
|
2699
|
+
},
|
|
2700
|
+
{
|
|
2701
|
+
"id": "order/mg:payment.before",
|
|
2702
|
+
"description": {
|
|
2703
|
+
"en-GB": "Widget for the block \"Payment\"",
|
|
2704
|
+
"es-ES": "Widget para el bloque \"Pago\"",
|
|
2705
|
+
"ru-RU": "Виджет для блока \"Оплата\""
|
|
2706
|
+
},
|
|
2707
|
+
"location": {
|
|
2708
|
+
"en-GB": "Section start, right above the input field",
|
|
2709
|
+
"es-ES": "Inicio de la sección, justo encima del campo de entrada",
|
|
2710
|
+
"ru-RU": "Начало секции, над полем ввода"
|
|
2711
|
+
},
|
|
2712
|
+
"contexts": [
|
|
2713
|
+
"order/mg",
|
|
2714
|
+
"order/mg:settings",
|
|
2715
|
+
"user/current",
|
|
2716
|
+
"settings"
|
|
2717
|
+
],
|
|
2718
|
+
"customContexts": [
|
|
2719
|
+
"order"
|
|
2720
|
+
],
|
|
2721
|
+
"actions": [
|
|
2722
|
+
"order/mg"
|
|
2723
|
+
]
|
|
2724
|
+
},
|
|
2725
|
+
{
|
|
2726
|
+
"id": "order/mg:payment.after",
|
|
2727
|
+
"description": {
|
|
2728
|
+
"en-GB": "Widget for the block \"Payment\"",
|
|
2729
|
+
"es-ES": "Widget para el bloque \"Pago\"",
|
|
2730
|
+
"ru-RU": "Виджет для блока \"Оплата\""
|
|
2731
|
+
},
|
|
2732
|
+
"location": {
|
|
2733
|
+
"en-GB": "Section end, after the list of payments, controls, and custom fields",
|
|
2734
|
+
"es-ES": "Fin de la sección, después de la lista de pagos, controles y campos personalizados",
|
|
2735
|
+
"ru-RU": "Конец секции, после списка оплат, контролов и пользовательских полей"
|
|
2736
|
+
},
|
|
2737
|
+
"contexts": [
|
|
2738
|
+
"order/mg",
|
|
2739
|
+
"order/mg:settings",
|
|
2740
|
+
"user/current",
|
|
2741
|
+
"settings"
|
|
2742
|
+
],
|
|
2743
|
+
"customContexts": [
|
|
2744
|
+
"order"
|
|
2745
|
+
],
|
|
2746
|
+
"actions": [
|
|
2747
|
+
"order/mg"
|
|
2748
|
+
]
|
|
2035
2749
|
}
|
|
2036
2750
|
],
|
|
2037
2751
|
"pages": [
|
|
@@ -2073,6 +2787,22 @@
|
|
|
2073
2787
|
"order/card:payment.before",
|
|
2074
2788
|
"order/card:comment.manager.before"
|
|
2075
2789
|
]
|
|
2790
|
+
},
|
|
2791
|
+
{
|
|
2792
|
+
"id": "order/mg",
|
|
2793
|
+
"description": {
|
|
2794
|
+
"en-GB": "Page with the order creation/editing form in chats",
|
|
2795
|
+
"es-ES": "Página con el formulario de creación/edición de pedidos en los chats",
|
|
2796
|
+
"ru-RU": "Страница с формой создания/редактирования заказа в чатах"
|
|
2797
|
+
},
|
|
2798
|
+
"targets": [
|
|
2799
|
+
"order/mg:list.before",
|
|
2800
|
+
"order/mg:list.after",
|
|
2801
|
+
"order/mg:delivery.before",
|
|
2802
|
+
"order/mg:delivery.after",
|
|
2803
|
+
"order/mg:payment.before",
|
|
2804
|
+
"order/mg:payment.after"
|
|
2805
|
+
]
|
|
2076
2806
|
}
|
|
2077
2807
|
]
|
|
2078
2808
|
}
|