oneentry 1.0.29 → 1.0.30

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/README.md CHANGED
@@ -59,14 +59,10 @@ const api = defineOneEntry('your-url', 'your-token')
59
59
  const { Admins } = defineOneEntry('your-url')
60
60
  ```
61
61
 
62
- ### Admins.getAdminsInfo()
62
+ ### Admins.getAdminsInfo(langCode, offset, limit)
63
63
 
64
64
  ```
65
- const langCode = 'en_US'
66
- const offset = 0
67
- const limit = 30
68
-
69
- const value = await Admins.getAdminsInfo(langCode, offset, limit)
65
+ const value = await Admins.getAdminsInfo('en_US', 0, 30)
70
66
  ```
71
67
 
72
68
 
@@ -75,28 +71,30 @@ const value = await Admins.getAdminsInfo(langCode, offset, limit)
75
71
  Example return:
76
72
 
77
73
  ```
78
- {
79
- "id": 1764,
80
- "identifier": "admin1",
81
- "attributeSetId": 7,
82
- "isSync": false,
83
- "attributeValues": {
84
- "en_US": {
85
- "marker": {
86
- "value": "",
87
- "type": "string"
74
+ [
75
+ {
76
+ "id": 1764,
77
+ "identifier": "admin1",
78
+ "attributeSetId": 7,
79
+ "isSync": false,
80
+ "attributeValues": {
81
+ "en_US": {
82
+ "marker": {
83
+ "value": "",
84
+ "type": "string"
85
+ }
88
86
  }
89
- }
90
- },
91
- "position": 192
92
- }
87
+ },
88
+ "position": 192
89
+ }
90
+ ]
93
91
  ```
94
92
 
95
93
  ## FileUploading
96
94
 
97
95
  const { FileUploading } = defineOneEntry('your-url');
98
96
 
99
- ### FileUploading.upload()
97
+ ### FileUploading.upload(data, fileQuery)
100
98
 
101
99
  ```
102
100
  const query = {
@@ -117,14 +115,16 @@ const value = await FileUploading.upload(data, query)
117
115
  Example return:
118
116
 
119
117
  ```
120
- {
121
- "filename": "string",
122
- "downloadLink": "string",
123
- "size": 0
124
- }
118
+ [
119
+ {
120
+ "filename": "string",
121
+ "downloadLink": "string",
122
+ "size": 0
123
+ }
124
+ ]
125
125
  ```
126
126
 
127
- ### FileUploading.delete()
127
+ ### FileUploading.delete(filename, fileQuery)
128
128
 
129
129
  ```
130
130
  const query = {
@@ -139,15 +139,9 @@ const value = await FileUploading.delete("file.png", query)
139
139
 
140
140
  > This void method delete a file from the cloud file storage.
141
141
 
142
- ### FileUploading.getFile()
142
+ ### FileUploading.getFile(id, type, entity, filename)
143
143
  ```
144
- const id = 123
145
- const type = 'page'
146
- const entity = 'editor'
147
- const filename = 'file.png'
148
-
149
-
150
- const value = await FileUploading.getFile(id, type, entity, filename)
144
+ const value = await FileUploading.getFile(123, 'page', 'editor', 'file.png')
151
145
  ```
152
146
 
153
147
  > This method return file object by parameters.
@@ -164,14 +158,10 @@ Example return:
164
158
 
165
159
  const { Forms } = defineOneEntry('your-url');
166
160
 
167
- ### Forms.getAllForms()
161
+ ### Forms.getAllForms(langCode, offset, limit)
168
162
 
169
163
  ```
170
- const langCode = 'en_US'
171
- const offset = 0
172
- const limit = 30
173
-
174
- const value = await Forms.getAllForms(langCode, offset, limit)
164
+ const value = await Forms.getAllForms('en_US', 0, 30)
175
165
  ```
176
166
 
177
167
  > This method retrieves all form objects from the API. It returns a Promise that resolves to an array of FormEntity objects.
@@ -186,7 +176,7 @@ Example return:
186
176
  "processingType": "email",
187
177
  "localizeInfos": {
188
178
  "en_US": {
189
- "title": "My form",
179
+ "title": "My Form",
190
180
  "titleForSite": "",
191
181
  "successMessage": "",
192
182
  "unsuccessMessage": "",
@@ -196,28 +186,44 @@ Example return:
196
186
  }
197
187
  },
198
188
  "processingData": "Unknown Type: ProcessingData",
199
- "attributeValues": {
200
- "en_US": {
201
- "marker": {
202
- "value": "",
203
- "type": "string"
204
- }
205
- }
206
- },
207
189
  "version": 10,
208
190
  "identifier": "catalog",
209
- "position": 192
191
+ "position": 192,
192
+ "attributes": [
193
+ {
194
+ "type": "list",
195
+ "marker": "l1",
196
+ "position": 2,
197
+ "listTitles": [
198
+ {
199
+ "title": "red",
200
+ "value": 1,
201
+ "position": 1,
202
+ "extendedValue": null,
203
+ "extendedValueType": null
204
+ },
205
+ {
206
+ "title": "yellow",
207
+ "value": 2,
208
+ "position": 2,
209
+ "extendedValue": null,
210
+ "extendedValueType": null
211
+ }
212
+ ],
213
+ "validators": {},
214
+ "localizeInfos": {
215
+ "title": "l1"
216
+ }
217
+ }
218
+ ]
210
219
  }
211
220
  ]
212
221
  ```
213
222
 
214
- ### Forms.getFormByMarker()
223
+ ### Forms.getFormByMarker(marker, langCode)
215
224
 
216
225
  ```
217
- const marker = 'My form'
218
- const langCode = 'en_US'
219
-
220
- const value = await Forms.getFormByMarker(marker, langCode)
226
+ const value = await Forms.getFormByMarker('My form', 'en_US')
221
227
  ```
222
228
 
223
229
  > This method retrieves a single form object based on its textual identifier (marker) from the API. It returns a Promise that resolves to a FormEntity object.
@@ -231,7 +237,7 @@ Example return:
231
237
  "processingType": "email",
232
238
  "localizeInfos": {
233
239
  "en_US": {
234
- "title": "My form",
240
+ "title": "My Form",
235
241
  "titleForSite": "",
236
242
  "successMessage": "",
237
243
  "unsuccessMessage": "",
@@ -241,17 +247,36 @@ Example return:
241
247
  }
242
248
  },
243
249
  "processingData": "Unknown Type: ProcessingData",
244
- "attributeValues": {
245
- "en_US": {
246
- "marker": {
247
- "value": "",
248
- "type": "string"
249
- }
250
- }
251
- },
252
250
  "version": 10,
253
251
  "identifier": "catalog",
254
- "position": 192
252
+ "position": 192,
253
+ "attributes": [
254
+ {
255
+ "type": "list",
256
+ "marker": "l1",
257
+ "position": 2,
258
+ "listTitles": [
259
+ {
260
+ "title": "red",
261
+ "value": 1,
262
+ "position": 1,
263
+ "extendedValue": null,
264
+ "extendedValueType": null
265
+ },
266
+ {
267
+ "title": "yellow",
268
+ "value": 2,
269
+ "position": 2,
270
+ "extendedValue": null,
271
+ "extendedValueType": null
272
+ }
273
+ ],
274
+ "validators": {},
275
+ "localizeInfos": {
276
+ "title": "l1"
277
+ }
278
+ }
279
+ ]
255
280
  }
256
281
  ```
257
282
 
@@ -259,7 +284,7 @@ Example return:
259
284
 
260
285
  const { FormData } = defineOneEntry('your-url');
261
286
 
262
- ### FormData.postFormsData()
287
+ ### FormData.postFormsData(data)
263
288
 
264
289
  ```
265
290
  const value = await FormData.postFormsData(data)
@@ -285,14 +310,10 @@ Example return:
285
310
  }
286
311
  ```
287
312
 
288
- ### FormData.getFormsData()
313
+ ### FormData.getFormsData(langCode, offset, limit)
289
314
 
290
315
  ```
291
- const langCode = 'en_US'
292
- const offset = 0
293
- const limit = 30
294
-
295
- const value = await FormData.getFormsData(langCode, offset, limit)
316
+ const value = await FormData.getFormsData('en_US', 0, 30)
296
317
  ```
297
318
 
298
319
  > This method creates form data objects by sending a request to the API. It accepts an array of objects of type IFormsPost as the request body to provide the necessary form data. It returns a Promise that resolves to the created CreateFormDataDto objects.
@@ -300,32 +321,26 @@ const value = await FormData.getFormsData(langCode, offset, limit)
300
321
  Example return:
301
322
 
302
323
  ```
303
- [
304
- {
305
- "id": 1764,
306
- "formIdentifier": "my-form",
307
- "time": "2023-02-12 10:56",
308
- "formData": {
309
- "en_US": [
310
- {
311
- "marker": "naimenovanie_1",
312
- "value": "Name"
313
- }
314
- ]
324
+ {
325
+ "id": 1764,
326
+ "formIdentifier": "my-form",
327
+ "time": "2023-02-12 10:56",
328
+ "formData": {
329
+ "en_US": [
330
+ {
331
+ "marker": "name_1",
332
+ "value": "Name"
315
333
  }
316
- }
317
- ]
334
+ ]
335
+ },
336
+ "attributeSetIdentifier": "test-form"
337
+ }
318
338
  ```
319
339
 
320
- ### FormData.getFormsDataByMarker()
340
+ ### FormData.getFormsDataByMarker(marker, langCode, offset, limit)
321
341
 
322
342
  ```
323
- const marker = 'my-marker'
324
- const langCode = 'en_US'
325
- const offset = 0
326
- const limit = 30
327
-
328
- const value = await FormData.getFormsDataByMarker(marker, langCode, offset, limit)
343
+ const value = await FormData.getFormsDataByMarker('my-marker', 'en_US', 0, 30)
329
344
  ```
330
345
 
331
346
  > This method retrieves a specific form data object by its marker from the API. It accepts a marker parameter as the marker of the form data. It returns a Promise that resolves to an array of objects of type FormDataEntity.
@@ -344,7 +359,8 @@ Example return:
344
359
  "value": "Name"
345
360
  }
346
361
  ]
347
- }
362
+ },
363
+ "attributeSetIdentifier": "test-form"
348
364
  }
349
365
  ```
350
366
 
@@ -408,10 +424,10 @@ Example return:
408
424
  const { Menus } = defineOneEntry('your-url')
409
425
  ```
410
426
 
411
- ### Menus.getMenusByMarker()
427
+ ### Menus.getMenusByMarker(marker)
412
428
 
413
429
  ```
414
- const value = await Menus.getMenusByMarker('marker')
430
+ const value = await Menus.getMenusByMarker('my-marker')
415
431
  ```
416
432
 
417
433
  > This method retrieves a single menu object based on its marker (marker) from the API. It returns a Promise that resolves to a single menu object as a ContentMenuDto object with included pages.
@@ -508,7 +524,7 @@ const value = await Pages.getRootPages([ 'en_US', 'it_IT' ])
508
524
  }
509
525
  ```
510
526
 
511
- ### Pages.getRootPages()
527
+ ### Pages.getRootPages(langCode)
512
528
 
513
529
  ```
514
530
  const value = await Pages.getRootPages('en_US')
@@ -556,10 +572,10 @@ Example return:
556
572
  ]
557
573
  ```
558
574
 
559
- ### Pages.getCatalogPages()
575
+ ### Pages.getCatalogPages(langCode, limit, offset)
560
576
 
561
577
  ```
562
- const value = await Pages.getCatalogPages(langCode = 'en_US', limit = 20, offset = 5)
578
+ const value = await Pages.getCatalogPages('en_US', 0, 30)
563
579
  ```
564
580
 
565
581
  > This method retrieves all page objects with product information as an array from the API. It accepts two optional parameters limit and offset for pagination and language code parameter. It returns a Promise that resolves to an array of ContentIndexedPageDto objects or an empty array [] if there is no data.
@@ -604,7 +620,7 @@ Example return:
604
620
  ]
605
621
  ```
606
622
 
607
- ### Pages.getPages()
623
+ ### Pages.getPages(langCode)
608
624
 
609
625
  ```
610
626
  const value = await Pages.getPages('en_US')
@@ -652,7 +668,7 @@ Example return:
652
668
  ]
653
669
  ```
654
670
 
655
- ### Pages.getPageById()
671
+ ### Pages.getPageById(id, langCode)
656
672
 
657
673
  ```
658
674
  const value = await Pages.getPageById(1, 'en_US')
@@ -692,7 +708,7 @@ Example return:
692
708
  }
693
709
  ```
694
710
 
695
- ### Pages.getPageByUrl()
711
+ ### Pages.getPageByUrl(url, langCode)
696
712
 
697
713
  ```
698
714
  const value = await Pages.getPageByUrl('shop', 'en_US')
@@ -732,7 +748,7 @@ Example return:
732
748
  }
733
749
  ```
734
750
 
735
- ### Pages.getChildPagesByParentUrl()
751
+ ### Pages.getChildPagesByParentUrl(url, langCode)
736
752
 
737
753
  ```
738
754
  const value = await Pages.getChildPagesByParentUrl('shop', 'en_US')
@@ -774,7 +790,7 @@ Example return:
774
790
  ]
775
791
  ```
776
792
 
777
- ### Pages.getFormsByPageUrl()
793
+ ### Pages.getFormsByPageUrl(url, langCode)
778
794
 
779
795
  ```
780
796
  const value = await Pages.getFormsByPageUrl('shop', 'en_US')
@@ -785,38 +801,58 @@ const value = await Pages.getFormsByPageUrl('shop', 'en_US')
785
801
  Example return:
786
802
 
787
803
  ```
788
- {
789
- "id": 1764,
790
- "version": 10,
791
- "identifier": "catalog",
792
- "attributeSetId": 0,
793
- "processingType": "email",
794
- "localizeInfos": {
795
- "en_US": {
796
- "title": "My form",
797
- "titleForSite": "",
798
- "successMessage": "",
799
- "unsuccessMessage": "",
800
- "urlAddress": "",
801
- "database": "0",
802
- "script": "0"
803
- }
804
- },
805
- "processingData": {},
806
- "position": 0,
807
- "isSync": false,
808
- "attributeValues": {
809
- "en_US": {
810
- "marker": {
811
- "value": "",
812
- "type": "string"
804
+ [
805
+ {
806
+ "id": 1764,
807
+ "version": 10,
808
+ "identifier": "catalog",
809
+ "attributeSetId": 0,
810
+ "processingType": "email",
811
+ "localizeInfos": {
812
+ "en_US": {
813
+ "title": "My form",
814
+ "titleForSite": "",
815
+ "successMessage": "",
816
+ "unsuccessMessage": "",
817
+ "urlAddress": "",
818
+ "database": "0",
819
+ "script": "0"
813
820
  }
814
- }
821
+ },
822
+ "processingData": {},
823
+ "position": 0,
824
+ "attributes": [
825
+ {
826
+ "type": "list",
827
+ "marker": "l1",
828
+ "position": 2,
829
+ "listTitles": [
830
+ {
831
+ "title": "red",
832
+ "value": 1,
833
+ "position": 1,
834
+ "extendedValue": null,
835
+ "extendedValueType": null
836
+ },
837
+ {
838
+ "title": "yellow",
839
+ "value": 2,
840
+ "position": 2,
841
+ "extendedValue": null,
842
+ "extendedValueType": null
843
+ }
844
+ ],
845
+ "validators": {},
846
+ "localizeInfos": {
847
+ "title": "l1"
848
+ }
849
+ }
850
+ ]
815
851
  }
816
- }
852
+ ]
817
853
  ```
818
854
 
819
- ### Pages.getConfigPageByUrl()
855
+ ### Pages.getConfigPageByUrl(url)
820
856
 
821
857
  ```
822
858
  const value = await Pages.getConfigPageByUrl('shop')
@@ -833,7 +869,7 @@ Example return:
833
869
  }
834
870
  ```
835
871
 
836
- ### Pages.searchPage()
872
+ ### Pages.searchPage(name, langCode)
837
873
 
838
874
  ```
839
875
  const value = await Pages.searchPage('cup', 'en_US')
@@ -886,7 +922,7 @@ const { Products } = defineOneEntry('your-url')
886
922
  Parameters:
887
923
 
888
924
  ```
889
- {
925
+ const userQuery = {
890
926
  offset: 0,
891
927
  limit: 30,
892
928
  statusMarker: null,
@@ -972,10 +1008,10 @@ const value = await Products.getProducts([ 'en_US', 'it_IT' ])
972
1008
  }
973
1009
  ```
974
1010
 
975
- ### Products.getProducts()
1011
+ ### Products.getProducts(langCode, userQuery)
976
1012
 
977
1013
  ```
978
- const value = await Products.getProducts('en_US')
1014
+ const value = await Products.getProducts('en_US', userQuery)
979
1015
  ```
980
1016
 
981
1017
  > This method searches for product page objects with pagination and filtering based on the provided query parameters (userQuery). It returns a Promise that resolves to a list of products (IProduct[]).
@@ -1016,10 +1052,10 @@ Example return:
1016
1052
  ]
1017
1053
  ```
1018
1054
 
1019
- ### Products.getProductsEmptyPage()
1055
+ ### Products.getProductsEmptyPage(langCode, userQuery)
1020
1056
 
1021
1057
  ```
1022
- const value = await Products.getProductsEmptyPage('en_US')
1058
+ const value = await Products.getProductsEmptyPage('en_US', userQuery)
1023
1059
  ```
1024
1060
 
1025
1061
  > This method searches for product page objects with pagination that do not have a category, based on the provided query parameters (userQuery). It returns a Promise that resolves to an array of items, where each item is a ContentIndexedProductDto object.
@@ -1060,10 +1096,10 @@ Example return:
1060
1096
  ]
1061
1097
  ```
1062
1098
 
1063
- ### Products.getProductsPageById()
1099
+ ### Products.getProductsPageById(id, langCode, userQuery)
1064
1100
 
1065
1101
  ```
1066
- const value = await Products.getProductsPageById(1, 'en_US')
1102
+ const value = await Products.getProductsPageById(1, 'en_US', userQuery)
1067
1103
  ```
1068
1104
 
1069
1105
  > This method searches for all product page objects with pagination for the selected category based on the page identifier (id). It accepts an optional userQuery parameter to set query parameters for the search. The query parameters include limit, offset, statusMarker, conditionValue, conditionMarker, attributeMarker, sortOrder, and sortKey. It returns a Promise that resolves to an array of ContentIndexedProductDto objects.
@@ -1110,10 +1146,10 @@ Example return:
1110
1146
  }
1111
1147
  ```
1112
1148
 
1113
- ### Products.getProductsPageByUrl()
1149
+ ### Products.getProductsPageByUrl(url, langCode, userQuery)
1114
1150
 
1115
1151
  ```
1116
- const value = await Products.getProductsPageByUrl('cup', 'en_US')
1152
+ const value = await Products.getProductsPageByUrl('cup', 'en_US', userQuery)
1117
1153
  ```
1118
1154
 
1119
1155
  > This method searches for all product page objects with pagination for the selected category based on the page URL (url). It accepts an optional userQuery parameter to set query parameters for the search. The query parameters include limit, offset, statusMarker, conditionValue, conditionMarker, attributeMarker, sortOrder, and sortKey. It returns a Promise that resolves to an array of ContentIndexedProductDto objects.
@@ -1160,10 +1196,10 @@ Example return:
1160
1196
  }
1161
1197
  ```
1162
1198
 
1163
- ### Products.getRelatedProductsById()
1199
+ ### Products.getRelatedProductsById(id, langCode, userQuery)
1164
1200
 
1165
1201
  ```
1166
- const value = await Products.getRelatedProductsById(1, ''en_US'', {limit:20, offset:1})
1202
+ const value = await Products.getRelatedProductsById(1, 'en_US', {limit:20, offset:1})
1167
1203
  ```
1168
1204
 
1169
1205
  > This method retrieves all related product page objects for a specific product based on its identifier (id) from the API. It accepts an optional userQuery parameter for additional query parameters such as limit, offset, sortOrder, and sortKey. It returns a Promise that resolves to an array of ContentIndexedProductDto objects.
@@ -1202,7 +1238,7 @@ Example return:
1202
1238
  }
1203
1239
  ```
1204
1240
 
1205
- ### Products.getProductById()
1241
+ ### Products.getProductById(id, langCode)
1206
1242
 
1207
1243
  ```
1208
1244
  const value = await Products.getProductById(1, 'en_US')
@@ -1245,10 +1281,16 @@ Example return:
1245
1281
 
1246
1282
  ```
1247
1283
 
1248
- ### Products.filterProduct()
1284
+ ### Products.filterProduct(data, langCode, userQuery)
1249
1285
 
1250
1286
  ```
1251
- const value = await Products.filterProduct({conditionValue:1})
1287
+ const data = {
1288
+ attributeMarker: "price",
1289
+ conditionMarker: "lth",
1290
+ conditionValue: "200",
1291
+ }
1292
+
1293
+ const value = await Products.filterProduct(data, 'en_US', userQuery)
1252
1294
  ```
1253
1295
 
1254
1296
  Example body:
@@ -1314,7 +1356,7 @@ Example return:
1314
1356
  }
1315
1357
  ```
1316
1358
 
1317
- ### Products.searchProduct()
1359
+ ### Products.searchProduct(name, langCode)
1318
1360
 
1319
1361
  ```
1320
1362
  const value = await Products.searchProduct('cup', 'en_US')
@@ -1398,7 +1440,7 @@ Example return:
1398
1440
  ]
1399
1441
  ```
1400
1442
 
1401
- ### ProductStatuses.getProductStatusesById()
1443
+ ### ProductStatuses.getProductStatusesById(id)
1402
1444
 
1403
1445
  ```
1404
1446
  const value = await ProductStatuses.getProductStatusesById(1)
@@ -1422,10 +1464,10 @@ Example return:
1422
1464
  }
1423
1465
  ```
1424
1466
 
1425
- ### ProductStatuses.getProductsByStatusMarker()
1467
+ ### ProductStatuses.getProductsByStatusMarker(marker)
1426
1468
 
1427
1469
  ```
1428
- const value = await ProductStatuses.getProductsByStatusMarker('marker')
1470
+ const value = await ProductStatuses.getProductsByStatusMarker('my-marker')
1429
1471
  ```
1430
1472
 
1431
1473
  > This method searches for a product status object based on its textual identifier (marker) from the API. It returns a Promise that resolves to a product status object.
@@ -1446,7 +1488,7 @@ Example return:
1446
1488
  }
1447
1489
  ```
1448
1490
 
1449
- ### ProductStatuses.validateMarker()
1491
+ ### ProductStatuses.validateMarker(marker)
1450
1492
 
1451
1493
  ```
1452
1494
  const value = await ProductStatuses.validateMarker('marker')
@@ -1501,9 +1543,9 @@ Example return:
1501
1543
 
1502
1544
  ```
1503
1545
  [
1504
- {
1546
+ {
1505
1547
  "id": 1764,
1506
- "updatedDate": "2023-11-20T22:16:17.531Z",
1548
+ "updatedDate": "2023-12-05T12:47:02.859Z",
1507
1549
  "version": 10,
1508
1550
  "identifier": "marker",
1509
1551
  "generalType": {
@@ -1523,7 +1565,7 @@ Example return:
1523
1565
  ]
1524
1566
  ```
1525
1567
 
1526
- ### Templates.getTemplateByType()
1568
+ ### Templates.getTemplateByType(type)
1527
1569
 
1528
1570
  ```
1529
1571
  const value = await Templates.getTemplateByType('forCatalogProducts')
@@ -1537,25 +1579,22 @@ Example return:
1537
1579
  [
1538
1580
  {
1539
1581
  "id": 1764,
1540
- "identifier": "admin1",
1541
- "attributeSetId": 7,
1542
- "generalTypeId": 2,
1543
- "generalTypeName": "forCatalogProducts",
1544
- "localizeInfos": {
1545
- "en_US": {
1546
- "title": "Product"
1547
- }
1582
+ "updatedDate": "2023-12-05T12:45:13.566Z",
1583
+ "version": 10,
1584
+ "identifier": "marker",
1585
+ "generalType": {
1586
+ "id": 4,
1587
+ "type": "forCatalogPages"
1548
1588
  },
1549
- "isSync": false,
1550
- "attributeValues": {
1589
+ "generalTypeId": 4,
1590
+ "localizeInfos": {
1551
1591
  "en_US": {
1552
- "marker": {
1553
- "value": "",
1554
- "type": "string"
1555
- }
1592
+ "title": "Page template"
1556
1593
  }
1557
1594
  },
1558
- "position": 192
1595
+ "position": 0,
1596
+ "positionId": 12,
1597
+ "generalTypeName": "forProductPreview"
1559
1598
  }
1560
1599
  ]
1561
1600
  ```
@@ -1579,43 +1618,43 @@ Example return:
1579
1618
  ```
1580
1619
  [
1581
1620
  {
1582
- "id": 1764,
1583
- "updatedDate": "2023-11-20T22:18:25.344Z",
1584
- "version": 10,
1585
- "identifier": "marker",
1586
- "proportion": {
1587
- "horizontal": {
1588
- "height": 200,
1589
- "weight": 10,
1590
- "marker": "horizontal",
1591
- "title": "Horizontal",
1592
- "alignmentType": "left"
1593
- },
1594
- "vertical": {
1595
- "height": 10,
1596
- "weight": 200,
1597
- "marker": "vertical",
1598
- "title": "Vertical",
1599
- "alignmentType": "left"
1600
- },
1601
- "square": {
1602
- "marker": "square",
1603
- "title": "Square",
1604
- "slide": 3,
1605
- "alignmentType": "center"
1606
- }
1621
+ "id": 1764,
1622
+ "updatedDate": "2023-12-05T12:44:55.663Z",
1623
+ "version": 10,
1624
+ "identifier": "marker",
1625
+ "proportion": {
1626
+ "horizontal": {
1627
+ "height": 200,
1628
+ "weight": 10,
1629
+ "marker": "horizontal",
1630
+ "title": "Horizontal",
1631
+ "alignmentType": "left"
1607
1632
  },
1608
- "localizeInfos": {
1609
- "en_US": {
1610
- "title": "Page Template"
1611
- }
1633
+ "vertical": {
1634
+ "height": 10,
1635
+ "weight": 200,
1636
+ "marker": "vertical",
1637
+ "title": "Vertical",
1638
+ "alignmentType": "left"
1612
1639
  },
1613
- "position": 0
1640
+ "square": {
1641
+ "marker": "square",
1642
+ "title": "Square",
1643
+ "slide": 3,
1644
+ "alignmentType": "center"
1645
+ }
1646
+ },
1647
+ "localizeInfos": {
1648
+ "en_US": {
1649
+ "title": "Page Template"
1650
+ }
1651
+ },
1652
+ "position": 0
1614
1653
  }
1615
1654
  ]
1616
1655
  ```
1617
1656
 
1618
- ### TemplatePreviews.getTemplatesPreviewById()
1657
+ ### TemplatePreviews.getTemplatesPreviewById(id)
1619
1658
 
1620
1659
  ```
1621
1660
  const value = await TemplatePreviews.getTemplatesPreviewById(1)
@@ -1626,47 +1665,46 @@ const value = await TemplatePreviews.getTemplatesPreviewById(1)
1626
1665
  Example return:
1627
1666
 
1628
1667
  ```
1629
- {
1630
- "id": 1764,
1631
- "updatedDate": "2023-11-20T22:18:25.344Z",
1632
- "version": 10,
1633
- "identifier": "marker",
1634
- "proportion": {
1635
- "horizontal": {
1636
- "height": 200,
1637
- "weight": 10,
1638
- "marker": "horizontal",
1639
- "title": "Horizontal",
1640
- "alignmentType": "left"
1641
- },
1642
- "vertical": {
1643
- "height": 10,
1644
- "weight": 200,
1645
- "marker": "vertical",
1646
- "title": "Vertical",
1647
- "alignmentType": "left"
1648
- },
1649
- "square": {
1650
- "marker": "square",
1651
- "title": "Square",
1652
- "slide": 3,
1653
- "alignmentType": "center"
1654
- }
1655
- },
1656
- "localizeInfos": {
1657
- "en_US": {
1658
- "title": "Page Template"
1659
- }
1660
- },
1661
- "position": 0
1662
- }
1663
-
1668
+ {
1669
+ "id": 1764,
1670
+ "updatedDate": "2023-12-05T12:44:37.348Z",
1671
+ "version": 10,
1672
+ "identifier": "marker",
1673
+ "proportion": {
1674
+ "horizontal": {
1675
+ "height": 200,
1676
+ "weight": 10,
1677
+ "marker": "horizontal",
1678
+ "title": "Horizontal",
1679
+ "alignmentType": "left"
1680
+ },
1681
+ "vertical": {
1682
+ "height": 10,
1683
+ "weight": 200,
1684
+ "marker": "vertical",
1685
+ "title": "Vertical",
1686
+ "alignmentType": "left"
1687
+ },
1688
+ "square": {
1689
+ "marker": "square",
1690
+ "title": "Square",
1691
+ "slide": 3,
1692
+ "alignmentType": "center"
1693
+ }
1694
+ },
1695
+ "localizeInfos": {
1696
+ "en_US": {
1697
+ "title": "Page Template"
1698
+ }
1699
+ },
1700
+ "position": 0
1701
+ }
1664
1702
  ```
1665
1703
 
1666
- ### TemplatePreviews.getTemplatesPreviewByMarker()
1704
+ ### TemplatePreviews.getTemplatesPreviewByMarker(marker)
1667
1705
 
1668
1706
  ```
1669
- const value = await TemplatePreviews.getTemplatesPreviewByMarker('marker')
1707
+ const value = await TemplatePreviews.getTemplatesPreviewByMarker('my-marker')
1670
1708
  ```
1671
1709
 
1672
1710
  > This method retrieves a single template object based on its textual identifier (marker) from the API. It returns a Promise that resolves to a TemplatePreviewsEntity object.
@@ -1676,7 +1714,7 @@ Example return:
1676
1714
  ```
1677
1715
  {
1678
1716
  "id": 1764,
1679
- "updatedDate": "2023-11-20T22:18:25.344Z",
1717
+ "updatedDate": "2023-12-05T12:44:20.008Z",
1680
1718
  "version": 10,
1681
1719
  "identifier": "marker",
1682
1720
  "proportion": {
@@ -38,11 +38,11 @@ interface IPosition {
38
38
  * @property {number} position - The position of the object.
39
39
  */
40
40
  interface IAdminEntity {
41
+ attributeSetId: number | null;
42
+ attributeValues: IAttributeValues;
41
43
  id: number;
42
44
  identifier: string;
43
- attributeSetId: number | null;
44
45
  isSync: boolean;
45
- attributeValues: IAttributeValues;
46
46
  position: number;
47
47
  }
48
48
  export { IAdmins, IAdminEntity, IPosition };
@@ -19,6 +19,20 @@ declare enum Types {
19
19
  forSlider = "forSlider",
20
20
  service = "service"
21
21
  }
22
+ interface IAttributes {
23
+ listTitles: Array<{
24
+ title: string;
25
+ value: number | string | null;
26
+ position: number;
27
+ extendedValue: number | string | null;
28
+ extendedValueType: number | string | null;
29
+ }>;
30
+ localizeInfos: ILocalizeInfo;
31
+ marker: string;
32
+ position: number;
33
+ type: string;
34
+ validators: object;
35
+ }
22
36
  interface ILocalizeInfos {
23
37
  [key: string]: ILocalizeInfo;
24
38
  }
@@ -51,4 +65,4 @@ interface IAttributeSetEntity {
51
65
  }
52
66
  type LangType = string | Array<string>;
53
67
  type LocalizeType = ILocalizeInfos | ILocalizeInfo;
54
- export { LocalizeType, ILocalizeInfos, Types, IAttributeSetEntity, LangType, AttributeType, IAttributeValues };
68
+ export { LocalizeType, ILocalizeInfos, Types, IAttributeSetEntity, LangType, AttributeType, IAttributeValues, IAttributes };
@@ -11,30 +11,30 @@ export default class FileUploadingApi extends OneEntry implements IFileUploading
11
11
  *
12
12
  * @param {Event} [data] Array of Express.Multer.File objects
13
13
  *
14
- * @param {IUploadingQuery} [userQuery] - Optional set query parameters.
15
- * @param {string} [userQuery.type] - Type, determines the folder name in the storage. Example : "page"
16
- * @param {string} [userQuery.entity] - Entity name from which the file is uploaded, determines the folder name in the storage. Example : "editor"
17
- * @param {number} [userQuery.id] - Identifier of the object from which the file is uploaded, determines the folder name in the storage. Example : 3787
18
- * @param {number} [userQuery.width] - Width parameter. Example : 0
19
- * @param {number} [userQuery.height] - Height parameter. Example : 0
20
- * @param {boolean} [userQuery.compress] - Flag of optimization (compression) for images. Example : true
14
+ * @param {IUploadingQuery} [fileQuery] - Optional set query parameters.
15
+ * @param {string} [fileQuery.type] - Type, determines the folder name in the storage. Example : "page"
16
+ * @param {string} [fileQuery.entity] - Entity name from which the file is uploaded, determines the folder name in the storage. Example : "editor"
17
+ * @param {number} [fileQuery.id] - Identifier of the object from which the file is uploaded, determines the folder name in the storage. Example : 3787
18
+ * @param {number} [fileQuery.width] - Optional width parameter. Example : 0
19
+ * @param {number} [fileQuery.height] - Optional height parameter. Example : 0
20
+ * @param {boolean} [fileQuery.compress] - Optional flag of optimization (compression) for images. Example : true
21
21
  *
22
22
  * @returns Uploads a file to an Amazon S3-compatible cloud file storage
23
23
  */
24
- upload(data: Event, userQuery?: IUploadingQuery): Promise<IUploadingReturns>;
24
+ upload(data: Event, fileQuery?: IUploadingQuery): Promise<IUploadingReturns>;
25
25
  /**
26
26
  * Deletes a file from the cloud file storage.
27
27
  *
28
28
  * @param {string} [filename] File name. Example "file.png"
29
29
  *
30
- * @param {IUploadingQuery} [userQuery] - Optional set query parameters.
31
- * @param {string} [userQuery.type] - Type, determines the folder name in the storage. Example : "page"
32
- * @param {string} [userQuery.entity] - Entity name from which the file is uploaded, determines the folder name in the storage. Example : "editor"
33
- * @param {number} [userQuery.id] - Identifier of the object from which the file is uploaded, determines the folder name in the storage. Example : 3787
30
+ * @param {IUploadingQuery} [fileQuery] - Optional set query parameters.
31
+ * @param {string} [fileQuery.type] - Type, determines the folder name in the storage. Example : "page"
32
+ * @param {string} [fileQuery.entity] - Entity name from which the file is uploaded, determines the folder name in the storage. Example : "editor"
33
+ * @param {number} [fileQuery.id] - Identifier of the object from which the file is uploaded, determines the folder name in the storage. Example : 3787
34
34
  *
35
35
  * @returns Deletes a file from the cloud file storage
36
36
  */
37
- delete(filename: string, userQuery?: IUploadingQuery): Promise<any>;
37
+ delete(filename: string, fileQuery?: IUploadingQuery): Promise<any>;
38
38
  /**
39
39
  * Get file by parameters.
40
40
  *
@@ -22,18 +22,18 @@ class FileUploadingApi extends oneEntry_1.default {
22
22
  *
23
23
  * @param {Event} [data] Array of Express.Multer.File objects
24
24
  *
25
- * @param {IUploadingQuery} [userQuery] - Optional set query parameters.
26
- * @param {string} [userQuery.type] - Type, determines the folder name in the storage. Example : "page"
27
- * @param {string} [userQuery.entity] - Entity name from which the file is uploaded, determines the folder name in the storage. Example : "editor"
28
- * @param {number} [userQuery.id] - Identifier of the object from which the file is uploaded, determines the folder name in the storage. Example : 3787
29
- * @param {number} [userQuery.width] - Width parameter. Example : 0
30
- * @param {number} [userQuery.height] - Height parameter. Example : 0
31
- * @param {boolean} [userQuery.compress] - Flag of optimization (compression) for images. Example : true
25
+ * @param {IUploadingQuery} [fileQuery] - Optional set query parameters.
26
+ * @param {string} [fileQuery.type] - Type, determines the folder name in the storage. Example : "page"
27
+ * @param {string} [fileQuery.entity] - Entity name from which the file is uploaded, determines the folder name in the storage. Example : "editor"
28
+ * @param {number} [fileQuery.id] - Identifier of the object from which the file is uploaded, determines the folder name in the storage. Example : 3787
29
+ * @param {number} [fileQuery.width] - Optional width parameter. Example : 0
30
+ * @param {number} [fileQuery.height] - Optional height parameter. Example : 0
31
+ * @param {boolean} [fileQuery.compress] - Optional flag of optimization (compression) for images. Example : true
32
32
  *
33
33
  * @returns Uploads a file to an Amazon S3-compatible cloud file storage
34
34
  */
35
- async upload(data, userQuery) {
36
- const query = { ...this._defaultQuery, ...userQuery };
35
+ async upload(data, fileQuery) {
36
+ const query = { ...this._defaultQuery, ...fileQuery };
37
37
  const result = await this._fetchPost('?' + this._queryParamsToString(query), data);
38
38
  return result;
39
39
  }
@@ -42,15 +42,15 @@ class FileUploadingApi extends oneEntry_1.default {
42
42
  *
43
43
  * @param {string} [filename] File name. Example "file.png"
44
44
  *
45
- * @param {IUploadingQuery} [userQuery] - Optional set query parameters.
46
- * @param {string} [userQuery.type] - Type, determines the folder name in the storage. Example : "page"
47
- * @param {string} [userQuery.entity] - Entity name from which the file is uploaded, determines the folder name in the storage. Example : "editor"
48
- * @param {number} [userQuery.id] - Identifier of the object from which the file is uploaded, determines the folder name in the storage. Example : 3787
45
+ * @param {IUploadingQuery} [fileQuery] - Optional set query parameters.
46
+ * @param {string} [fileQuery.type] - Type, determines the folder name in the storage. Example : "page"
47
+ * @param {string} [fileQuery.entity] - Entity name from which the file is uploaded, determines the folder name in the storage. Example : "editor"
48
+ * @param {number} [fileQuery.id] - Identifier of the object from which the file is uploaded, determines the folder name in the storage. Example : 3787
49
49
  *
50
50
  * @returns Deletes a file from the cloud file storage
51
51
  */
52
- async delete(filename, userQuery) {
53
- const query = { ...this._defaultQuery, ...userQuery };
52
+ async delete(filename, fileQuery) {
53
+ const query = { ...this._defaultQuery, ...fileQuery };
54
54
  const result = await this._fetchDelete(`?filename=${filename}&` + this._queryParamsToString(query));
55
55
  return result;
56
56
  }
@@ -6,13 +6,22 @@
6
6
  * @property {function} getFile - Get file by parameters.
7
7
  */
8
8
  interface IFileUploading {
9
- upload(data: Event, userQuery?: IUploadingQuery): Promise<IUploadingReturns>;
10
- delete(filename: string, userQuery?: IUploadingQuery): Promise<any>;
9
+ upload(data: Event, fileQuery?: IUploadingQuery): Promise<IUploadingReturns>;
10
+ delete(filename: string, fileQuery?: IUploadingQuery): Promise<any>;
11
11
  getFile(id: number, type: string, entity: string, filename?: string): Promise<IFileEntity>;
12
12
  }
13
13
  interface IFileEntity {
14
14
  file: File | string | null;
15
15
  }
16
+ /**
17
+ * @interface
18
+ * @property {string} type - Type, determines the folder name in the storage.
19
+ * @property {string} entity - Entity name from which the file is uploaded, determines the folder name in the storage.
20
+ * @property {number} id - Identifier of the object from which the file is uploaded, determines the folder name in the storage.
21
+ * @property {number} [width] - Width parameter.
22
+ * @property {number} [height] - Height parameter.
23
+ * @property {boolean} [compress] - Flag of optimization (compression) for images.
24
+ */
16
25
  interface IUploadingQuery {
17
26
  type?: string | null;
18
27
  entity?: string | null;
@@ -22,6 +31,12 @@ interface IUploadingQuery {
22
31
  compress?: boolean | null;
23
32
  [key: string]: string | number | boolean | null;
24
33
  }
34
+ /**
35
+ * @interface
36
+ * @property {string} filename - Filename with relative path.
37
+ * @property {string} downloadLink - Link for downloading the file.
38
+ * @property {number} size - Size of the file in bytes.
39
+ */
25
40
  interface IUploadingReturns {
26
41
  filename: string;
27
42
  downloadLink: string;
@@ -1,4 +1,4 @@
1
- import { IAttributeValues, ILocalizeInfos } from "../base/utils";
1
+ import { IAttributes, ILocalizeInfos } from "../base/utils";
2
2
  /**
3
3
  * Represents an interface object of Forms Api.
4
4
  *
@@ -19,20 +19,20 @@ interface IForms {
19
19
  * @property {string} processingType - Type of form processing.
20
20
  * @property {ILocalizeInfos} localizeInfos - The name of the form, taking into account localization.
21
21
  * @property {object} processingData - Form data.
22
- * @property {IAttributeValues} attributeValues - The attributes with values used by the object.
22
+ * @property {IAttributes} attribute - Array of attribute values from the used attribute set for displaying the form (taking into account the specified language)
23
23
  * @property {number} version - The version number of the object.
24
24
  * @property {string} identifier - The textual identifier for the record field.
25
25
  * @property {number} position - The position of the object.
26
26
  */
27
27
  interface IFormsEntity {
28
- id: number;
29
28
  attributeSetId: number;
30
- processingType: string;
29
+ attributes: IAttributes;
30
+ id: number;
31
+ identifier: string;
31
32
  localizeInfos: ILocalizeInfos;
33
+ position: number;
32
34
  processingData: object | string;
33
- attributes: IAttributeValues;
35
+ processingType: string;
34
36
  version: number;
35
- identifier: string;
36
- position: number;
37
37
  }
38
38
  export { IForms, IFormsEntity };
@@ -20,6 +20,7 @@ interface IFormsData {
20
20
  * @property {string} formIdentifier - The identifier of the page.
21
21
  * @property {Date | string} time - The identifier of the form.
22
22
  * @property {IFormData} formData - The identifier of the position.
23
+ * @property {string} attributeSetIdentifier - Text identifier (marker) of the used attribute set.
23
24
  */
24
25
  interface IFormsDataEntity {
25
26
  id: number;
@@ -1,6 +1,4 @@
1
- import { AttributeType, LangType, LocalizeType, Types } from "../base/utils";
2
- import { IAttributeSetEntity } from "../base/utils";
3
- import { IFormsEntity } from "../forms/formsInterfaces";
1
+ import { AttributeType, IAttributes, LangType, LocalizeType, Types } from "../base/utils";
4
2
  /**
5
3
  * Represents an interface object of Pages Api.
6
4
  *
@@ -50,29 +48,25 @@ interface IPageConfig {
50
48
  *
51
49
  * @interface
52
50
  * @property {number} id - The identifier of the object.
53
- * @property {Date | string} updatedDate - The date of last updated.
54
51
  * @property {number} version - The version number of the object.
55
52
  * @property {string} identifier - The textual identifier for the record field.
56
- * @property {IAttributesSets} attributesSets - The attributes with values used by the object.
53
+ * @property {IAttributes} attributes - Array of attribute values from the used attribute set for displaying the form (taking into account the specified language).
57
54
  * @property {number} attributeSetId - The identifier of the attribute set being used.
58
55
  * @property {string} processingType - Type of form processing.
59
- * @property {ILocalizeInfos} localizeInfos - The name of the page, taking into account localization.
56
+ * @property {LocalizeType} localizeInfos - The name of the page, taking into account localization.
60
57
  * @property {object} processingData - Form data.
61
58
  * @property {number} position - The position of the object.
62
- * @property {number} positionId - The position id.
63
59
  */
64
60
  interface IPositionForm {
65
61
  id: number;
66
- updatedDate: Date | string;
67
62
  version: number;
68
63
  identifier: string;
69
- attributesSets: IAttributeSetEntity;
64
+ attributes: IAttributes;
70
65
  attributeSetId: number;
71
66
  processingType: string;
72
67
  localizeInfos: LocalizeType;
73
68
  processingData: object;
74
69
  position: number;
75
- positionId: number;
76
70
  }
77
71
  /**
78
72
  * Represents an object with various properties.
@@ -87,29 +81,15 @@ interface IPositionForm {
87
81
  * @property {boolean} isVisible - A sign of page visibility.
88
82
  * @property {number} products - The number of products linked to the page.
89
83
  * @property {number} attributeSetId - Set of attributes id.
90
- * @property {Array<IFormsEntity>} forms - Array of identifier values of the Form Entity objects to which the page is linked (optional).
91
- * @property {Array<IFormsEntity>} blocks - array of identifier values of BlockEntity objects to which the page is linked (optional).
92
84
  * @property {boolean} isSync - Indication of page indexing.
93
85
  * @property {string} templateIdentifier - User id of the linked template.
94
- * @property {Array<[langCode:string]:object>} attributeValues - Array of attribute values from the index (represented as a pair of user attribute id: attribute value).
86
+ * @property {AttributeType} attributeValues - Array of attribute values from the index (represented as a pair of user attribute id: attribute value).
95
87
  * @property {number} position - Item number (for sorting).
96
88
  * @property {Types} type - Page type.
97
89
  * @property {number} childrenCount - Children count.
98
90
  */
99
91
  interface IPagesEntity {
100
- id: number;
101
- parentId: number | null;
102
- config: Record<string, number>;
103
- pageUrl: string;
104
- depth: number;
105
- localizeInfos: LocalizeType;
106
- isVisible: boolean;
107
- products: number;
108
92
  attributeSetId: number;
109
- forms?: Array<IFormsEntity>;
110
- blocks?: Array<object>;
111
- isSync: boolean;
112
- templateIdentifier: string;
113
93
  /**
114
94
  * Language-specific attribute values.
115
95
  * @example attributeValues['en_US']
@@ -117,8 +97,18 @@ interface IPagesEntity {
117
97
  * @property {langCode.<object>}
118
98
  */
119
99
  attributeValues: AttributeType;
100
+ childrenCount: number;
101
+ config: Record<string, number>;
102
+ depth: number;
103
+ id: number;
104
+ isSync: boolean;
105
+ isVisible: boolean;
106
+ localizeInfos: LocalizeType;
107
+ pageUrl: string;
108
+ parentId: number | null;
120
109
  position: number;
110
+ products: number;
111
+ templateIdentifier: string;
121
112
  type: Types;
122
- childrenCount: number;
123
113
  }
124
114
  export { IPageApi, IPageConfig, IPagesEntity, IPositionForm };
@@ -97,7 +97,6 @@ interface IFilterParams {
97
97
  * @property {boolean} isVisible - A sign of page visibility.
98
98
  * @property {number | null} statusId - Product page status identifiers (may be null).
99
99
  * @property {Array<number>} relatedIds - Ids of related product pages.
100
- * @property {object} productPages - ProductPageEntity objects associated with the product page.
101
100
  * @property {number} attributeSetId - Set of attributes id.
102
101
  * @property {boolean} isSync - Indication of page indexing.
103
102
  * @property {number} price - The value of the product page price taken from the index.
@@ -111,11 +110,6 @@ interface IProductsEntity {
111
110
  isVisible: boolean;
112
111
  statusId: number | null;
113
112
  relatedIds: number[];
114
- productPages: {
115
- id: number;
116
- pageId: number;
117
- productId: number;
118
- }[];
119
113
  attributeSetId: number;
120
114
  isSync: number | boolean;
121
115
  price: number;
@@ -1,3 +1,4 @@
1
+ import { IGeneralTypesEntity } from "../general-types/generalTypesInterfaces";
1
2
  import { ILocalizeInfos, Types } from "../base/utils";
2
3
  /**
3
4
  * Represents an interface object of Templates Api.
@@ -15,7 +16,7 @@ interface ITemplatesApi {
15
16
  *
16
17
  * @interface
17
18
  * @property {number} id - The unique identifier of the position.
18
- * @property {Date | string} updatedDate - The date of last updated.
19
+ * @property {Date | string} updateDate - The date of last updated.
19
20
  * @property {number} version - The version number of the object.
20
21
  * @property {string} identifier - The textual identifier for the record field.
21
22
  * @property {IGeneralTypesEntity} generalType - General type Entity object.
@@ -23,6 +24,7 @@ interface ITemplatesApi {
23
24
  * @property {ILocalizeInfos} localizeInfos - The name of the template, taking into account localization.
24
25
  * @property {number} position - The position of the object.
25
26
  * @property {number | string} positionId - Id of the item object.
27
+ * @property {Types} generalTypeName - General type name.
26
28
  *
27
29
  */
28
30
  interface ITemplateEntity {
@@ -30,10 +32,11 @@ interface ITemplateEntity {
30
32
  updateDate: string | Date;
31
33
  version: number;
32
34
  identifier: string;
33
- isSync: boolean;
35
+ generalType: IGeneralTypesEntity;
34
36
  generalTypeId: number;
35
37
  localizeInfos: ILocalizeInfos;
36
38
  position: number;
39
+ positionId: number;
37
40
  generalTypeName: Types;
38
41
  }
39
42
  export { ITemplatesApi, ITemplateEntity };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneentry",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",