@replyke/core 7.0.0-beta.29 → 7.0.0-beta.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.
Files changed (41) hide show
  1. package/dist/cjs/hooks/entities/useCreateEntity.d.ts +27 -0
  2. package/dist/cjs/hooks/entities/useCreateEntity.js +88 -15
  3. package/dist/cjs/hooks/entities/useCreateEntity.js.map +1 -1
  4. package/dist/cjs/hooks/storage/index.d.ts +1 -0
  5. package/dist/cjs/hooks/storage/index.js +3 -1
  6. package/dist/cjs/hooks/storage/index.js.map +1 -1
  7. package/dist/cjs/hooks/storage/useUploadFile.d.ts +12 -1
  8. package/dist/cjs/hooks/storage/useUploadFile.js +22 -8
  9. package/dist/cjs/hooks/storage/useUploadFile.js.map +1 -1
  10. package/dist/cjs/hooks/storage/useUploadImage.d.ts +14 -0
  11. package/dist/cjs/hooks/storage/useUploadImage.js +161 -0
  12. package/dist/cjs/hooks/storage/useUploadImage.js.map +1 -0
  13. package/dist/cjs/index.d.ts +2 -1
  14. package/dist/cjs/index.js +2 -1
  15. package/dist/cjs/index.js.map +1 -1
  16. package/dist/cjs/interfaces/models/Entity.d.ts +40 -1
  17. package/dist/cjs/interfaces/models/Image.d.ts +35 -0
  18. package/dist/cjs/interfaces/models/Image.js +3 -0
  19. package/dist/cjs/interfaces/models/Image.js.map +1 -0
  20. package/dist/cjs/store/slices/entityListsSlice.d.ts +480 -0
  21. package/dist/esm/hooks/entities/useCreateEntity.d.ts +27 -0
  22. package/dist/esm/hooks/entities/useCreateEntity.js +88 -15
  23. package/dist/esm/hooks/entities/useCreateEntity.js.map +1 -1
  24. package/dist/esm/hooks/storage/index.d.ts +1 -0
  25. package/dist/esm/hooks/storage/index.js +1 -0
  26. package/dist/esm/hooks/storage/index.js.map +1 -1
  27. package/dist/esm/hooks/storage/useUploadFile.d.ts +12 -1
  28. package/dist/esm/hooks/storage/useUploadFile.js +22 -8
  29. package/dist/esm/hooks/storage/useUploadFile.js.map +1 -1
  30. package/dist/esm/hooks/storage/useUploadImage.d.ts +14 -0
  31. package/dist/esm/hooks/storage/useUploadImage.js +156 -0
  32. package/dist/esm/hooks/storage/useUploadImage.js.map +1 -0
  33. package/dist/esm/index.d.ts +2 -1
  34. package/dist/esm/index.js +1 -1
  35. package/dist/esm/index.js.map +1 -1
  36. package/dist/esm/interfaces/models/Entity.d.ts +40 -1
  37. package/dist/esm/interfaces/models/Image.d.ts +35 -0
  38. package/dist/esm/interfaces/models/Image.js +2 -0
  39. package/dist/esm/interfaces/models/Image.js.map +1 -0
  40. package/dist/esm/store/slices/entityListsSlice.d.ts +480 -0
  41. package/package.json +1 -1
@@ -161,6 +161,46 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
161
161
  attachments: {
162
162
  [x: string]: any;
163
163
  }[];
164
+ files?: {
165
+ id: string;
166
+ projectId: string;
167
+ userId: string | null;
168
+ entityId: string | null;
169
+ commentId: string | null;
170
+ spaceId: string | null;
171
+ type: "image" | "video" | "document" | "other";
172
+ originalPath: string;
173
+ originalSize: number;
174
+ originalMimeType: string;
175
+ position: number;
176
+ metadata: {
177
+ [x: string]: any;
178
+ };
179
+ image?: {
180
+ fileId: string;
181
+ originalWidth: number;
182
+ originalHeight: number;
183
+ variants: {
184
+ [x: string]: {
185
+ path: string;
186
+ publicPath: string;
187
+ width: number;
188
+ height: number;
189
+ size: number;
190
+ format: string;
191
+ };
192
+ };
193
+ processingStatus: "completed" | "failed";
194
+ processingError: string | null;
195
+ format: string;
196
+ quality: number;
197
+ exifStripped: boolean;
198
+ createdAt: string;
199
+ updatedAt: string;
200
+ } | undefined;
201
+ createdAt: string;
202
+ updatedAt: string;
203
+ }[] | undefined;
164
204
  keywords: string[];
165
205
  upvotes: string[];
166
206
  downvotes: string[];
@@ -335,6 +375,46 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
335
375
  attachments: {
336
376
  [x: string]: any;
337
377
  }[];
378
+ files?: {
379
+ id: string;
380
+ projectId: string;
381
+ userId: string | null;
382
+ entityId: string | null;
383
+ commentId: string | null;
384
+ spaceId: string | null;
385
+ type: "image" | "video" | "document" | "other";
386
+ originalPath: string;
387
+ originalSize: number;
388
+ originalMimeType: string;
389
+ position: number;
390
+ metadata: {
391
+ [x: string]: any;
392
+ };
393
+ image?: {
394
+ fileId: string;
395
+ originalWidth: number;
396
+ originalHeight: number;
397
+ variants: {
398
+ [x: string]: {
399
+ path: string;
400
+ publicPath: string;
401
+ width: number;
402
+ height: number;
403
+ size: number;
404
+ format: string;
405
+ };
406
+ };
407
+ processingStatus: "completed" | "failed";
408
+ processingError: string | null;
409
+ format: string;
410
+ quality: number;
411
+ exifStripped: boolean;
412
+ createdAt: string;
413
+ updatedAt: string;
414
+ } | undefined;
415
+ createdAt: string;
416
+ updatedAt: string;
417
+ }[] | undefined;
338
418
  keywords: string[];
339
419
  upvotes: string[];
340
420
  downvotes: string[];
@@ -509,6 +589,46 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
509
589
  attachments: {
510
590
  [x: string]: any;
511
591
  }[];
592
+ files?: {
593
+ id: string;
594
+ projectId: string;
595
+ userId: string | null;
596
+ entityId: string | null;
597
+ commentId: string | null;
598
+ spaceId: string | null;
599
+ type: "image" | "video" | "document" | "other";
600
+ originalPath: string;
601
+ originalSize: number;
602
+ originalMimeType: string;
603
+ position: number;
604
+ metadata: {
605
+ [x: string]: any;
606
+ };
607
+ image?: {
608
+ fileId: string;
609
+ originalWidth: number;
610
+ originalHeight: number;
611
+ variants: {
612
+ [x: string]: {
613
+ path: string;
614
+ publicPath: string;
615
+ width: number;
616
+ height: number;
617
+ size: number;
618
+ format: string;
619
+ };
620
+ };
621
+ processingStatus: "completed" | "failed";
622
+ processingError: string | null;
623
+ format: string;
624
+ quality: number;
625
+ exifStripped: boolean;
626
+ createdAt: string;
627
+ updatedAt: string;
628
+ } | undefined;
629
+ createdAt: string;
630
+ updatedAt: string;
631
+ }[] | undefined;
512
632
  keywords: string[];
513
633
  upvotes: string[];
514
634
  downvotes: string[];
@@ -686,6 +806,46 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
686
806
  attachments: {
687
807
  [x: string]: any;
688
808
  }[];
809
+ files?: {
810
+ id: string;
811
+ projectId: string;
812
+ userId: string | null;
813
+ entityId: string | null;
814
+ commentId: string | null;
815
+ spaceId: string | null;
816
+ type: "image" | "video" | "document" | "other";
817
+ originalPath: string;
818
+ originalSize: number;
819
+ originalMimeType: string;
820
+ position: number;
821
+ metadata: {
822
+ [x: string]: any;
823
+ };
824
+ image?: {
825
+ fileId: string;
826
+ originalWidth: number;
827
+ originalHeight: number;
828
+ variants: {
829
+ [x: string]: {
830
+ path: string;
831
+ publicPath: string;
832
+ width: number;
833
+ height: number;
834
+ size: number;
835
+ format: string;
836
+ };
837
+ };
838
+ processingStatus: "completed" | "failed";
839
+ processingError: string | null;
840
+ format: string;
841
+ quality: number;
842
+ exifStripped: boolean;
843
+ createdAt: string;
844
+ updatedAt: string;
845
+ } | undefined;
846
+ createdAt: string;
847
+ updatedAt: string;
848
+ }[] | undefined;
689
849
  keywords: string[];
690
850
  upvotes: string[];
691
851
  downvotes: string[];
@@ -860,6 +1020,46 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
860
1020
  attachments: {
861
1021
  [x: string]: any;
862
1022
  }[];
1023
+ files?: {
1024
+ id: string;
1025
+ projectId: string;
1026
+ userId: string | null;
1027
+ entityId: string | null;
1028
+ commentId: string | null;
1029
+ spaceId: string | null;
1030
+ type: "image" | "video" | "document" | "other";
1031
+ originalPath: string;
1032
+ originalSize: number;
1033
+ originalMimeType: string;
1034
+ position: number;
1035
+ metadata: {
1036
+ [x: string]: any;
1037
+ };
1038
+ image?: {
1039
+ fileId: string;
1040
+ originalWidth: number;
1041
+ originalHeight: number;
1042
+ variants: {
1043
+ [x: string]: {
1044
+ path: string;
1045
+ publicPath: string;
1046
+ width: number;
1047
+ height: number;
1048
+ size: number;
1049
+ format: string;
1050
+ };
1051
+ };
1052
+ processingStatus: "completed" | "failed";
1053
+ processingError: string | null;
1054
+ format: string;
1055
+ quality: number;
1056
+ exifStripped: boolean;
1057
+ createdAt: string;
1058
+ updatedAt: string;
1059
+ } | undefined;
1060
+ createdAt: string;
1061
+ updatedAt: string;
1062
+ }[] | undefined;
863
1063
  keywords: string[];
864
1064
  upvotes: string[];
865
1065
  downvotes: string[];
@@ -1034,6 +1234,46 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
1034
1234
  attachments: {
1035
1235
  [x: string]: any;
1036
1236
  }[];
1237
+ files?: {
1238
+ id: string;
1239
+ projectId: string;
1240
+ userId: string | null;
1241
+ entityId: string | null;
1242
+ commentId: string | null;
1243
+ spaceId: string | null;
1244
+ type: "image" | "video" | "document" | "other";
1245
+ originalPath: string;
1246
+ originalSize: number;
1247
+ originalMimeType: string;
1248
+ position: number;
1249
+ metadata: {
1250
+ [x: string]: any;
1251
+ };
1252
+ image?: {
1253
+ fileId: string;
1254
+ originalWidth: number;
1255
+ originalHeight: number;
1256
+ variants: {
1257
+ [x: string]: {
1258
+ path: string;
1259
+ publicPath: string;
1260
+ width: number;
1261
+ height: number;
1262
+ size: number;
1263
+ format: string;
1264
+ };
1265
+ };
1266
+ processingStatus: "completed" | "failed";
1267
+ processingError: string | null;
1268
+ format: string;
1269
+ quality: number;
1270
+ exifStripped: boolean;
1271
+ createdAt: string;
1272
+ updatedAt: string;
1273
+ } | undefined;
1274
+ createdAt: string;
1275
+ updatedAt: string;
1276
+ }[] | undefined;
1037
1277
  keywords: string[];
1038
1278
  upvotes: string[];
1039
1279
  downvotes: string[];
@@ -1211,6 +1451,46 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
1211
1451
  attachments: {
1212
1452
  [x: string]: any;
1213
1453
  }[];
1454
+ files?: {
1455
+ id: string;
1456
+ projectId: string;
1457
+ userId: string | null;
1458
+ entityId: string | null;
1459
+ commentId: string | null;
1460
+ spaceId: string | null;
1461
+ type: "image" | "video" | "document" | "other";
1462
+ originalPath: string;
1463
+ originalSize: number;
1464
+ originalMimeType: string;
1465
+ position: number;
1466
+ metadata: {
1467
+ [x: string]: any;
1468
+ };
1469
+ image?: {
1470
+ fileId: string;
1471
+ originalWidth: number;
1472
+ originalHeight: number;
1473
+ variants: {
1474
+ [x: string]: {
1475
+ path: string;
1476
+ publicPath: string;
1477
+ width: number;
1478
+ height: number;
1479
+ size: number;
1480
+ format: string;
1481
+ };
1482
+ };
1483
+ processingStatus: "completed" | "failed";
1484
+ processingError: string | null;
1485
+ format: string;
1486
+ quality: number;
1487
+ exifStripped: boolean;
1488
+ createdAt: string;
1489
+ updatedAt: string;
1490
+ } | undefined;
1491
+ createdAt: string;
1492
+ updatedAt: string;
1493
+ }[] | undefined;
1214
1494
  keywords: string[];
1215
1495
  upvotes: string[];
1216
1496
  downvotes: string[];
@@ -1388,6 +1668,46 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
1388
1668
  attachments: {
1389
1669
  [x: string]: any;
1390
1670
  }[];
1671
+ files?: {
1672
+ id: string;
1673
+ projectId: string;
1674
+ userId: string | null;
1675
+ entityId: string | null;
1676
+ commentId: string | null;
1677
+ spaceId: string | null;
1678
+ type: "image" | "video" | "document" | "other";
1679
+ originalPath: string;
1680
+ originalSize: number;
1681
+ originalMimeType: string;
1682
+ position: number;
1683
+ metadata: {
1684
+ [x: string]: any;
1685
+ };
1686
+ image?: {
1687
+ fileId: string;
1688
+ originalWidth: number;
1689
+ originalHeight: number;
1690
+ variants: {
1691
+ [x: string]: {
1692
+ path: string;
1693
+ publicPath: string;
1694
+ width: number;
1695
+ height: number;
1696
+ size: number;
1697
+ format: string;
1698
+ };
1699
+ };
1700
+ processingStatus: "completed" | "failed";
1701
+ processingError: string | null;
1702
+ format: string;
1703
+ quality: number;
1704
+ exifStripped: boolean;
1705
+ createdAt: string;
1706
+ updatedAt: string;
1707
+ } | undefined;
1708
+ createdAt: string;
1709
+ updatedAt: string;
1710
+ }[] | undefined;
1391
1711
  keywords: string[];
1392
1712
  upvotes: string[];
1393
1713
  downvotes: string[];
@@ -1562,6 +1882,46 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
1562
1882
  attachments: {
1563
1883
  [x: string]: any;
1564
1884
  }[];
1885
+ files?: {
1886
+ id: string;
1887
+ projectId: string;
1888
+ userId: string | null;
1889
+ entityId: string | null;
1890
+ commentId: string | null;
1891
+ spaceId: string | null;
1892
+ type: "image" | "video" | "document" | "other";
1893
+ originalPath: string;
1894
+ originalSize: number;
1895
+ originalMimeType: string;
1896
+ position: number;
1897
+ metadata: {
1898
+ [x: string]: any;
1899
+ };
1900
+ image?: {
1901
+ fileId: string;
1902
+ originalWidth: number;
1903
+ originalHeight: number;
1904
+ variants: {
1905
+ [x: string]: {
1906
+ path: string;
1907
+ publicPath: string;
1908
+ width: number;
1909
+ height: number;
1910
+ size: number;
1911
+ format: string;
1912
+ };
1913
+ };
1914
+ processingStatus: "completed" | "failed";
1915
+ processingError: string | null;
1916
+ format: string;
1917
+ quality: number;
1918
+ exifStripped: boolean;
1919
+ createdAt: string;
1920
+ updatedAt: string;
1921
+ } | undefined;
1922
+ createdAt: string;
1923
+ updatedAt: string;
1924
+ }[] | undefined;
1565
1925
  keywords: string[];
1566
1926
  upvotes: string[];
1567
1927
  downvotes: string[];
@@ -1736,6 +2096,46 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
1736
2096
  attachments: {
1737
2097
  [x: string]: any;
1738
2098
  }[];
2099
+ files?: {
2100
+ id: string;
2101
+ projectId: string;
2102
+ userId: string | null;
2103
+ entityId: string | null;
2104
+ commentId: string | null;
2105
+ spaceId: string | null;
2106
+ type: "image" | "video" | "document" | "other";
2107
+ originalPath: string;
2108
+ originalSize: number;
2109
+ originalMimeType: string;
2110
+ position: number;
2111
+ metadata: {
2112
+ [x: string]: any;
2113
+ };
2114
+ image?: {
2115
+ fileId: string;
2116
+ originalWidth: number;
2117
+ originalHeight: number;
2118
+ variants: {
2119
+ [x: string]: {
2120
+ path: string;
2121
+ publicPath: string;
2122
+ width: number;
2123
+ height: number;
2124
+ size: number;
2125
+ format: string;
2126
+ };
2127
+ };
2128
+ processingStatus: "completed" | "failed";
2129
+ processingError: string | null;
2130
+ format: string;
2131
+ quality: number;
2132
+ exifStripped: boolean;
2133
+ createdAt: string;
2134
+ updatedAt: string;
2135
+ } | undefined;
2136
+ createdAt: string;
2137
+ updatedAt: string;
2138
+ }[] | undefined;
1739
2139
  keywords: string[];
1740
2140
  upvotes: string[];
1741
2141
  downvotes: string[];
@@ -1910,6 +2310,46 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
1910
2310
  attachments: {
1911
2311
  [x: string]: any;
1912
2312
  }[];
2313
+ files?: {
2314
+ id: string;
2315
+ projectId: string;
2316
+ userId: string | null;
2317
+ entityId: string | null;
2318
+ commentId: string | null;
2319
+ spaceId: string | null;
2320
+ type: "image" | "video" | "document" | "other";
2321
+ originalPath: string;
2322
+ originalSize: number;
2323
+ originalMimeType: string;
2324
+ position: number;
2325
+ metadata: {
2326
+ [x: string]: any;
2327
+ };
2328
+ image?: {
2329
+ fileId: string;
2330
+ originalWidth: number;
2331
+ originalHeight: number;
2332
+ variants: {
2333
+ [x: string]: {
2334
+ path: string;
2335
+ publicPath: string;
2336
+ width: number;
2337
+ height: number;
2338
+ size: number;
2339
+ format: string;
2340
+ };
2341
+ };
2342
+ processingStatus: "completed" | "failed";
2343
+ processingError: string | null;
2344
+ format: string;
2345
+ quality: number;
2346
+ exifStripped: boolean;
2347
+ createdAt: string;
2348
+ updatedAt: string;
2349
+ } | undefined;
2350
+ createdAt: string;
2351
+ updatedAt: string;
2352
+ }[] | undefined;
1913
2353
  keywords: string[];
1914
2354
  upvotes: string[];
1915
2355
  downvotes: string[];
@@ -2084,6 +2524,46 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
2084
2524
  attachments: {
2085
2525
  [x: string]: any;
2086
2526
  }[];
2527
+ files?: {
2528
+ id: string;
2529
+ projectId: string;
2530
+ userId: string | null;
2531
+ entityId: string | null;
2532
+ commentId: string | null;
2533
+ spaceId: string | null;
2534
+ type: "image" | "video" | "document" | "other";
2535
+ originalPath: string;
2536
+ originalSize: number;
2537
+ originalMimeType: string;
2538
+ position: number;
2539
+ metadata: {
2540
+ [x: string]: any;
2541
+ };
2542
+ image?: {
2543
+ fileId: string;
2544
+ originalWidth: number;
2545
+ originalHeight: number;
2546
+ variants: {
2547
+ [x: string]: {
2548
+ path: string;
2549
+ publicPath: string;
2550
+ width: number;
2551
+ height: number;
2552
+ size: number;
2553
+ format: string;
2554
+ };
2555
+ };
2556
+ processingStatus: "completed" | "failed";
2557
+ processingError: string | null;
2558
+ format: string;
2559
+ quality: number;
2560
+ exifStripped: boolean;
2561
+ createdAt: string;
2562
+ updatedAt: string;
2563
+ } | undefined;
2564
+ createdAt: string;
2565
+ updatedAt: string;
2566
+ }[] | undefined;
2087
2567
  keywords: string[];
2088
2568
  upvotes: string[];
2089
2569
  downvotes: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replyke/core",
3
- "version": "7.0.0-beta.29",
3
+ "version": "7.0.0-beta.30",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "author": "Replyke, maintained by Yanay Tsabary",