orc-shared 1.7.0-dev.8 → 5.2.0-dev.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.
Files changed (175) hide show
  1. package/dist/actions/modules.js +15 -1
  2. package/dist/actions/navigation.js +1 -14
  3. package/dist/actions/scopes.js +2 -3
  4. package/dist/buildStore.js +1 -7
  5. package/dist/components/AppFrame/Sidebar.js +8 -4
  6. package/dist/components/MaterialUI/DataDisplay/Notification.js +0 -6
  7. package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +6 -18
  8. package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +1 -2
  9. package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +2 -4
  10. package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +7 -7
  11. package/dist/components/MaterialUI/Inputs/Autocomplete.js +0 -5
  12. package/dist/components/MaterialUI/Inputs/DatePicker.js +8 -15
  13. package/dist/components/MaterialUI/Inputs/InputBase.js +16 -102
  14. package/dist/components/MaterialUI/Inputs/InputBaseProps.js +1 -7
  15. package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +46 -43
  16. package/dist/components/MaterialUI/Inputs/TimePicker.js +2 -5
  17. package/dist/components/MaterialUI/Navigation/DropDownMenu.js +1 -6
  18. package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +0 -1
  19. package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +1 -3
  20. package/dist/components/Routing/Page.js +1 -4
  21. package/dist/components/Routing/SegmentPage.js +1 -4
  22. package/dist/components/Routing/SubPage.js +8 -38
  23. package/dist/components/Scope/useScopeConfirmationModalState.js +3 -1
  24. package/dist/constants.js +2 -18
  25. package/dist/content/icons/hide.svg +1 -10
  26. package/dist/content/icons/open-in-new-tab.svg +1 -3
  27. package/dist/content/iconsSheet.svg +650 -117
  28. package/dist/content/orckestra-logo-white.png +0 -0
  29. package/dist/hooks/useEditState.js +2 -4
  30. package/dist/reducers/modules.js +3 -4
  31. package/dist/reducers/navigation.js +0 -16
  32. package/dist/reducers/request.js +1 -6
  33. package/dist/reducers/scopes.js +0 -3
  34. package/dist/reducers/view.js +1 -1
  35. package/dist/selectors/authentication.js +1 -15
  36. package/dist/selectors/metadata.js +1 -1
  37. package/dist/sharedMessages.js +1 -17
  38. package/dist/utils/propertyHelper.js +0 -33
  39. package/dist/utils/timezoneHelper.js +1 -23
  40. package/package.json +7 -10
  41. package/src/actions/modules.js +10 -0
  42. package/src/actions/modules.test.js +14 -0
  43. package/src/actions/navigation.js +0 -7
  44. package/src/actions/navigation.test.js +0 -12
  45. package/src/actions/scopes.js +1 -2
  46. package/src/actions/scopes.test.js +1 -2
  47. package/src/buildStore.js +0 -6
  48. package/src/components/AppFrame/About.test.js +3 -3
  49. package/src/components/AppFrame/Sidebar.js +3 -4
  50. package/src/components/Form/InputField.test.js +0 -18
  51. package/src/components/Form/Inputs/Date.test.js +0 -18
  52. package/src/components/MaterialUI/DataDisplay/Notification.js +0 -6
  53. package/src/components/MaterialUI/DataDisplay/Notification.test.js +0 -37
  54. package/src/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +5 -23
  55. package/src/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.test.js +0 -121
  56. package/src/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +1 -2
  57. package/src/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.test.js +0 -20
  58. package/src/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +1 -2
  59. package/src/components/MaterialUI/DataDisplay/tableHelpers.js +8 -8
  60. package/src/components/MaterialUI/DataDisplay/tableHelpers.test.js +0 -93
  61. package/src/components/MaterialUI/Inputs/Autocomplete.js +0 -5
  62. package/src/components/MaterialUI/Inputs/Autocomplete.test.js +0 -15
  63. package/src/components/MaterialUI/Inputs/DatePicker.js +3 -17
  64. package/src/components/MaterialUI/Inputs/DatePicker.test.js +1 -143
  65. package/src/components/MaterialUI/Inputs/InputBase.js +15 -103
  66. package/src/components/MaterialUI/Inputs/InputBase.test.js +1 -376
  67. package/src/components/MaterialUI/Inputs/InputBaseProps.js +0 -6
  68. package/src/components/MaterialUI/Inputs/InputBaseProps.test.js +0 -6
  69. package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +27 -39
  70. package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.test.js +34 -39
  71. package/src/components/MaterialUI/Inputs/TimePicker.js +1 -5
  72. package/src/components/MaterialUI/Navigation/DropDownMenu.js +1 -6
  73. package/src/components/MaterialUI/Surfaces/SectionExpansionPanel.js +0 -1
  74. package/src/components/MaterialUI/hocs/withDeferredTooltip.js +1 -2
  75. package/src/components/MaterialUI/hocs/withDeferredTooltip.test.js +0 -52
  76. package/src/components/Routing/Page.js +1 -12
  77. package/src/components/Routing/SegmentPage.js +1 -12
  78. package/src/components/Routing/SubPage.js +9 -41
  79. package/src/components/Routing/SubPage.test.js +1 -295
  80. package/src/components/Scope/useScopeConfirmationModalState.js +3 -1
  81. package/src/components/Scope/useScopeConfirmationModalState.test.js +35 -4
  82. package/src/components/Text.test.js +59 -44
  83. package/src/constants.js +0 -15
  84. package/src/content/icons/hide.svg +1 -10
  85. package/src/content/icons/open-in-new-tab.svg +1 -3
  86. package/src/content/iconsSheet.svg +650 -117
  87. package/src/content/orckestra-logo-white.png +0 -0
  88. package/src/hooks/useEditState.js +2 -12
  89. package/src/hooks/useEditState.test.js +1 -1
  90. package/src/hooks/useLabelMessage.test.js +10 -16
  91. package/src/reducers/modules.js +4 -4
  92. package/src/reducers/modules.test.js +5 -5
  93. package/src/reducers/navigation.js +0 -24
  94. package/src/reducers/navigation.test.js +0 -38
  95. package/src/reducers/request.js +1 -6
  96. package/src/reducers/request.test.js +0 -34
  97. package/src/reducers/scopes.js +0 -3
  98. package/src/reducers/scopes.test.js +0 -47
  99. package/src/reducers/view.js +1 -1
  100. package/src/reducers/view.test.js +8 -1
  101. package/src/selectors/authentication.js +0 -13
  102. package/src/selectors/authentication.test.js +0 -322
  103. package/src/selectors/metadata.js +1 -1
  104. package/src/selectors/metadata.test.js +0 -12
  105. package/src/sharedMessages.js +1 -17
  106. package/src/translations/en-US.json +12 -16
  107. package/src/translations/fr-CA.json +12 -16
  108. package/src/utils/propertyHelper.js +0 -38
  109. package/src/utils/propertyHelper.test.js +0 -160
  110. package/src/utils/timezoneHelper.js +0 -18
  111. package/src/utils/timezoneHelper.test.js +1 -23
  112. package/dist/actions/globalErrorMessages.js +0 -63
  113. package/dist/actions/tasks.js +0 -170
  114. package/dist/components/MaterialUI/DataDisplay/PredefinedElements/GlobalErrorMessages.js +0 -160
  115. package/dist/components/MaterialUI/DataDisplay/PredefinedElements/LookupDisplayValue.js +0 -88
  116. package/dist/components/TaskDetailsModal.js +0 -191
  117. package/dist/content/icons/anonymize.svg +0 -3
  118. package/dist/content/icons/archives.svg +0 -3
  119. package/dist/content/icons/clean-index.svg +0 -3
  120. package/dist/content/icons/date-index.svg +0 -3
  121. package/dist/content/icons/inventory.svg +0 -4
  122. package/dist/content/icons/query-tester.svg +0 -10
  123. package/dist/content/icons/reciprocity.svg +0 -10
  124. package/dist/content/icons/schema.svg +0 -11
  125. package/dist/content/icons/synonyms.svg +0 -3
  126. package/dist/content/icons/tenant.svg +0 -3
  127. package/dist/content/icons/time-index.svg +0 -3
  128. package/dist/hooks/useDispatchWithErrorHandling.js +0 -103
  129. package/dist/hooks/useScopeGuardLoader.js +0 -77
  130. package/dist/reducers/globalErrorMessages.js +0 -78
  131. package/dist/reducers/scopeRouteState.js +0 -83
  132. package/dist/reducers/tasks.js +0 -98
  133. package/dist/selectors/globalErrorMessages.js +0 -57
  134. package/dist/selectors/scopeRouteState.js +0 -53
  135. package/dist/selectors/tasks.js +0 -64
  136. package/dist/utils/responseProcessingHelper.js +0 -86
  137. package/src/actions/globalErrorMessages.js +0 -12
  138. package/src/actions/globalErrorMessages.test.js +0 -21
  139. package/src/actions/tasks.js +0 -77
  140. package/src/actions/tasks.test.js +0 -169
  141. package/src/components/MaterialUI/DataDisplay/PredefinedElements/GlobalErrorMessages.js +0 -108
  142. package/src/components/MaterialUI/DataDisplay/PredefinedElements/GlobalErrorMessages.test.js +0 -468
  143. package/src/components/MaterialUI/DataDisplay/PredefinedElements/LookupDisplayValue.js +0 -29
  144. package/src/components/MaterialUI/DataDisplay/PredefinedElements/LookupDisplayValue.test.js +0 -147
  145. package/src/components/TaskDetailsModal.js +0 -132
  146. package/src/components/TaskDetailsModal.test.js +0 -317
  147. package/src/content/icons/anonymize.svg +0 -3
  148. package/src/content/icons/archives.svg +0 -3
  149. package/src/content/icons/clean-index.svg +0 -3
  150. package/src/content/icons/date-index.svg +0 -3
  151. package/src/content/icons/inventory.svg +0 -4
  152. package/src/content/icons/query-tester.svg +0 -10
  153. package/src/content/icons/reciprocity.svg +0 -10
  154. package/src/content/icons/schema.svg +0 -11
  155. package/src/content/icons/synonyms.svg +0 -3
  156. package/src/content/icons/tenant.svg +0 -3
  157. package/src/content/icons/time-index.svg +0 -3
  158. package/src/hooks/useDispatchWithErrorHandling.js +0 -57
  159. package/src/hooks/useDispatchWithErrorHandling.test.js +0 -230
  160. package/src/hooks/useScopeGuardLoader.js +0 -25
  161. package/src/hooks/useScopeGuardLoader.test.js +0 -187
  162. package/src/reducers/globalErrorMessages.js +0 -25
  163. package/src/reducers/globalErrorMessages.test.js +0 -66
  164. package/src/reducers/scopeRouteState.js +0 -29
  165. package/src/reducers/scopeRouteState.test.js +0 -49
  166. package/src/reducers/tasks.js +0 -56
  167. package/src/reducers/tasks.test.js +0 -404
  168. package/src/selectors/globalErrorMessages.js +0 -11
  169. package/src/selectors/globalErrorMessages.test.js +0 -25
  170. package/src/selectors/scopeRouteState.js +0 -5
  171. package/src/selectors/scopeRouteState.test.js +0 -13
  172. package/src/selectors/tasks.js +0 -16
  173. package/src/selectors/tasks.test.js +0 -60
  174. package/src/utils/responseProcessingHelper.js +0 -42
  175. package/src/utils/responseProcessingHelper.test.js +0 -218
@@ -4,11 +4,9 @@ import {
4
4
  selectRolesClaims,
5
5
  selectGroupRolesClaims,
6
6
  hasEditorPermissions,
7
- hasPermissionsForRole,
8
7
  hasAdministratorPermissions,
9
8
  hasReaderPermissions,
10
9
  hasEditorPermissionsForScope,
11
- hasPermissionsForRoleAndScope,
12
10
  hasAdministratorPermissionsForScope,
13
11
  hasReaderPermissionsForScope,
14
12
  } from "./authentication";
@@ -457,326 +455,6 @@ describe("hasEditorPermissionsForScope", () => {
457
455
  });
458
456
  });
459
457
 
460
- describe("hasPermissionsForRole", () => {
461
- it("Retrieves true if user has permissions in specified group and role", () => {
462
- const claims = Immutable.fromJS({
463
- Orders: {
464
- "*": {
465
- Tester: true,
466
- },
467
- },
468
- });
469
-
470
- expect(
471
- hasPermissionsForRole,
472
- "when called with",
473
- ["Orders", "Tester"],
474
- "called with",
475
- [
476
- Immutable.fromJS({
477
- authentication: { rolesClaimsValues: claims },
478
- navigation: {
479
- route: { location: {}, match: { params: { scope: "Global" } } },
480
- },
481
- settings: { defaultScope: "Global" },
482
- }),
483
- ],
484
- "to equal",
485
- true,
486
- );
487
- });
488
-
489
- it("Retrieves false if user does not have permissions in specified group and role", () => {
490
- const claims = Immutable.fromJS({
491
- Orders: {
492
- "*": {
493
- Tester: false,
494
- },
495
- },
496
- });
497
-
498
- expect(
499
- hasPermissionsForRole,
500
- "when called with",
501
- ["Orders", "Tester"],
502
- "called with",
503
- [
504
- Immutable.fromJS({
505
- authentication: { rolesClaimsValues: claims },
506
- ...state,
507
- }),
508
- ],
509
- "to equal",
510
- false,
511
- );
512
- });
513
-
514
- it("Retrieves true if user hasn't global permissions but, has in current scope in specified group for role", () => {
515
- const claims = Immutable.fromJS({
516
- Orders: {
517
- "*": {
518
- Tester: false,
519
- },
520
- MyScope: {
521
- Tester: true,
522
- },
523
- },
524
- });
525
-
526
- expect(
527
- hasPermissionsForRole,
528
- "when called with",
529
- ["Orders", "Tester"],
530
- "called with",
531
- [
532
- Immutable.fromJS({
533
- authentication: { rolesClaimsValues: claims },
534
- navigation: {
535
- route: { location: {}, match: { params: { scope: "MyScope" } } },
536
- },
537
- settings: { defaultScope: "Global" },
538
- }),
539
- ],
540
- "to equal",
541
- true,
542
- );
543
- });
544
-
545
- it("Retrieves true if user has permissions just in specified scope for role", () => {
546
- const claims = Immutable.fromJS({
547
- Orders: {
548
- MyScope: {
549
- Tester: true,
550
- },
551
- },
552
- });
553
-
554
- expect(
555
- hasPermissionsForRole,
556
- "when called with",
557
- ["Orders", "Tester"],
558
- "called with",
559
- [
560
- Immutable.fromJS({
561
- authentication: { rolesClaimsValues: claims },
562
- navigation: {
563
- route: { location: {}, match: { params: { scope: "MyScope" } } },
564
- },
565
- settings: { defaultScope: "Global" },
566
- }),
567
- ],
568
- "to equal",
569
- true,
570
- );
571
- });
572
-
573
- it("Retrieves true if user has permissions just in specified scope with permission on parents for role", () => {
574
- const claims = Immutable.fromJS({
575
- Orders: {
576
- MyScope: {
577
- Tester: true,
578
- },
579
- },
580
- });
581
-
582
- expect(
583
- hasPermissionsForRole,
584
- "when called with",
585
- ["Orders", "Tester"],
586
- "called with",
587
- [
588
- Immutable.fromJS({
589
- authentication: { rolesClaimsValues: claims },
590
- ...state,
591
- navigation: {
592
- route: { location: {}, match: { params: { scope: "ChildScope" } } },
593
- },
594
- }),
595
- ],
596
- "to equal",
597
- true,
598
- );
599
- });
600
-
601
- it("Retrieves false if app roles claims are null", () => {
602
- expect(
603
- hasPermissionsForRole,
604
- "when called with",
605
- ["Orders", "Tester"],
606
- "called with",
607
- [
608
- Immutable.fromJS({
609
- authentication: { rolesClaimsValues: {} },
610
- navigation: {
611
- route: { location: {}, match: { params: { scope: "Global" } } },
612
- },
613
- settings: { defaultScope: "Global" },
614
- }),
615
- ],
616
- "to equal",
617
- false,
618
- );
619
- });
620
- });
621
-
622
- describe("hasPermissionsForRoleAndScope", () => {
623
- it("Retrieves true if user has permissions in specified group for role", () => {
624
- const claims = Immutable.fromJS({
625
- Orders: {
626
- "*": {
627
- Tester: true,
628
- },
629
- },
630
- });
631
-
632
- expect(
633
- hasPermissionsForRoleAndScope,
634
- "when called with",
635
- ["Global", "Orders", "Tester"],
636
- "called with",
637
- [
638
- Immutable.fromJS({
639
- authentication: { rolesClaimsValues: claims },
640
- }),
641
- ],
642
- "to equal",
643
- true,
644
- );
645
- });
646
-
647
- it("Retrieves false if user does not have permissions in specified group for role", () => {
648
- const claims = Immutable.fromJS({
649
- Orders: {
650
- "*": {
651
- Tester: false,
652
- },
653
- },
654
- });
655
-
656
- expect(
657
- hasPermissionsForRoleAndScope,
658
- "when called with",
659
- ["Global", "Orders", "Tester"],
660
- "called with",
661
- [
662
- Immutable.fromJS({
663
- authentication: { rolesClaimsValues: claims },
664
- ...state,
665
- }),
666
- ],
667
- "to equal",
668
- false,
669
- );
670
- });
671
-
672
- it("Retrieves true if user hasn't global permissions but, has in current scope in specified group for role", () => {
673
- const claims = Immutable.fromJS({
674
- Orders: {
675
- "*": {
676
- Tester: false,
677
- },
678
- MyScope: {
679
- Tester: true,
680
- },
681
- },
682
- });
683
-
684
- expect(
685
- hasPermissionsForRoleAndScope,
686
- "when called with",
687
- ["MyScope", "Orders", "Tester"],
688
- "called with",
689
- [
690
- Immutable.fromJS({
691
- authentication: { rolesClaimsValues: claims },
692
- navigation: {
693
- route: { location: {}, match: { params: { scope: "MyScope" } } },
694
- },
695
- settings: { defaultScope: "Global" },
696
- }),
697
- ],
698
- "to equal",
699
- true,
700
- );
701
- });
702
-
703
- it("Retrieves true if user has permissions just in specified scope and role", () => {
704
- const claims = Immutable.fromJS({
705
- Orders: {
706
- MyScope: {
707
- Tester: true,
708
- },
709
- },
710
- });
711
-
712
- expect(
713
- hasPermissionsForRoleAndScope,
714
- "when called with",
715
- ["MyScope", "Orders", "Tester"],
716
- "called with",
717
- [
718
- Immutable.fromJS({
719
- authentication: { rolesClaimsValues: claims },
720
- navigation: {
721
- route: { location: {}, match: { params: { scope: "MyScope" } } },
722
- },
723
- settings: { defaultScope: "Global" },
724
- }),
725
- ],
726
- "to equal",
727
- true,
728
- );
729
- });
730
-
731
- it("Retrieves true if user has permissions just in specified scope with permission on parents for role", () => {
732
- const claims = Immutable.fromJS({
733
- Orders: {
734
- MyScope: {
735
- Tester: true,
736
- },
737
- },
738
- });
739
-
740
- expect(
741
- hasPermissionsForRoleAndScope,
742
- "when called with",
743
- ["ChildScope", "Orders", "Tester"],
744
- "called with",
745
- [
746
- Immutable.fromJS({
747
- authentication: { rolesClaimsValues: claims },
748
- ...state,
749
- navigation: {
750
- route: { location: {}, match: { params: { scope: "ChildScope" } } },
751
- },
752
- }),
753
- ],
754
- "to equal",
755
- true,
756
- );
757
- });
758
-
759
- it("Retrieves false if app roles claims are null", () => {
760
- expect(
761
- hasPermissionsForRoleAndScope,
762
- "when called with",
763
- ["Global", "Orders", "Tester"],
764
- "called with",
765
- [
766
- Immutable.fromJS({
767
- authentication: { rolesClaimsValues: {} },
768
- navigation: {
769
- route: { location: {}, match: { params: { scope: "Global" } } },
770
- },
771
- settings: { defaultScope: "Global" },
772
- }),
773
- ],
774
- "to equal",
775
- false,
776
- );
777
- });
778
- });
779
-
780
458
  describe("hasAdministratorPermissions", () => {
781
459
  it("Retrieves true if user has global administrator permissions in specified group", () => {
782
460
  const claims = Immutable.fromJS({
@@ -30,7 +30,7 @@ export const mappedLookupsListSelector = memoize(moduleName =>
30
30
  );
31
31
 
32
32
  const lookupValuesSelector = memoize((moduleName, lookupName) =>
33
- createSelector(lookups, lookups => lookups.getIn([moduleName.toLowerCase(), "index", lookupName]) || Immutable.Map()),
33
+ createSelector(lookups, lookups => lookups.getIn([moduleName, "index", lookupName]) || Immutable.Map()),
34
34
  );
35
35
 
36
36
  export const lookupByNameSelector = memoize((moduleName, lookupName) =>
@@ -394,18 +394,6 @@ describe("namedLookupValuesSelector", () => {
394
394
  "Annulla per motivo 1",
395
395
  );
396
396
  });
397
-
398
- it("retrieves localized values with an uppercase module", () => {
399
- expect(
400
- namedLookupLocalizedSelector,
401
- "when called with",
402
- ["ORDER", "CanceledStatusReasons", "CanceledReason1"],
403
- "when called with",
404
- [state],
405
- "to satisfy",
406
- "Annulla per motivo 1",
407
- );
408
- });
409
397
  });
410
398
 
411
399
  describe("selectCurrentLookupDetails", () => {
@@ -56,7 +56,7 @@ const sharedMessages = defineMessages({
56
56
  },
57
57
  copyright: {
58
58
  id: "orc-shared.copyright",
59
- defaultMessage: "© {year} Orckestra Technologies Inc.",
59
+ defaultMessage: "© 2021 Orckestra Technologies Inc.",
60
60
  },
61
61
  allRightsReserved: {
62
62
  id: "orc-shared.allRightsReserved",
@@ -255,22 +255,6 @@ const sharedMessages = defineMessages({
255
255
  id: "orc-shared.errorUnknown",
256
256
  defaultMessage: "Unknown Error",
257
257
  },
258
- taskInProgressModalTitle: {
259
- id: "orc-shared.taskInProgressModalTitle",
260
- defaultMessage: "Task In Progress",
261
- },
262
- taskId: {
263
- id: "orc-shared.taskId",
264
- defaultMessage: "Task ID",
265
- },
266
- taskStatus: {
267
- id: "orc-shared.taskStatus",
268
- defaultMessage: "Status",
269
- },
270
- taskLogs: {
271
- id: "orc-shared.taskLogs",
272
- defaultMessage: "Logs",
273
- },
274
258
  });
275
259
 
276
260
  export default sharedMessages;
@@ -3,8 +3,8 @@
3
3
  "orc-shared.active": "Active",
4
4
  "orc-shared.add": "Add",
5
5
  "orc-shared.allRightsReserved": "All rights reserved.",
6
- "orc-shared.appSelectorTitle": "Orckestra Commerce Cloud Applications List",
7
6
  "orc-shared.applyChanges": "Apply Changes",
7
+ "orc-shared.appSelectorTitle": "Orckestra Commerce Cloud Applications List",
8
8
  "orc-shared.back": "Back",
9
9
  "orc-shared.cancel": "Cancel",
10
10
  "orc-shared.ccDescription": "The API-first commerce platform that makes omnichannel retail work.",
@@ -14,21 +14,12 @@
14
14
  "orc-shared.confirmation": "Confirmation",
15
15
  "orc-shared.copyright": "© {year} Orckestra Technologies Inc.",
16
16
  "orc-shared.copyrightTermsNotice": "This computer program is protected by copyright laws and international treaties. Unauthorized reproduction or redistribution of this program, or any portion of it, may result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible under the law. Orckestra is a trademark of Orckestra Technologies Inc. All other trademarks are property of the respective owners.",
17
- "orc-shared.dataTypeBoolean": "Yes/No Choice",
18
- "orc-shared.dataTypeDate": "Date/Calendar",
19
- "orc-shared.dataTypeDecimal": "Decimal Number",
20
- "orc-shared.dataTypeEntityReference": "Profile Reference",
21
- "orc-shared.dataTypeInteger": "Whole Number",
22
- "orc-shared.dataTypeLookup": "Lookup List",
23
- "orc-shared.dataTypeText": "Text",
24
17
  "orc-shared.defaultApp": "Default application",
25
18
  "orc-shared.delete": "Delete",
26
19
  "orc-shared.description": "Description",
27
20
  "orc-shared.displayLanguage": "Display language",
28
21
  "orc-shared.displayName": "Display Name",
29
- "orc-shared.embedded": "Embedded",
30
22
  "orc-shared.error": "Error",
31
- "orc-shared.errorUnknown": "Unknown Error",
32
23
  "orc-shared.fieldIsRequired": "This field is required",
33
24
  "orc-shared.fieldMustBeValidEmail": "This field must be a valid email",
34
25
  "orc-shared.fieldMustBeValidPhoneExtension": "This field must be a valid phone extension",
@@ -53,17 +44,22 @@
53
44
  "orc-shared.scopeChangeWithUnsavedDataConfirmation": "One or more entities opened will be closed with unsaved data. Would you like to change scope?",
54
45
  "orc-shared.scopeChangeWithUnsavedDataTitle": "Confirm scope change without saving data",
55
46
  "orc-shared.scopeFilterPlaceholder": "Type a scope name",
56
- "orc-shared.shared": "Shared",
57
47
  "orc-shared.showFewerLanguages": "Show fewer languages",
58
48
  "orc-shared.showMoreLanguages": "Show more languages",
59
49
  "orc-shared.signOut": "Sign out",
60
50
  "orc-shared.sortOrder": "Sort Order",
61
51
  "orc-shared.status": "Status",
62
- "orc-shared.taskId": "Task ID",
63
- "orc-shared.taskInProgressModalTitle": "Task In Progress",
64
- "orc-shared.taskLogs": "Logs",
65
- "orc-shared.taskStatus": "Status",
66
52
  "orc-shared.unsavedChanges": "This entity has unsaved changes. All changes will be lost.\n\nAre you sure you want to close it?",
67
53
  "orc-shared.valueName": "Value Name",
68
- "orc-shared.yes": "Yes"
54
+ "orc-shared.yes": "Yes",
55
+ "orc-shared.embedded": "Embedded",
56
+ "orc-shared.shared": "Shared",
57
+ "orc-shared.dataTypeText": "Text",
58
+ "orc-shared.dataTypeBoolean": "Yes/No Choice",
59
+ "orc-shared.dataTypeDate": "Date/Calendar",
60
+ "orc-shared.dataTypeDecimal": "Decimal Number",
61
+ "orc-shared.dataTypeInteger": "Whole Number",
62
+ "orc-shared.dataTypeEntityReference": "Profile Reference",
63
+ "orc-shared.dataTypeLookup": "Lookup List",
64
+ "orc-shared.errorUnknown": "Unknown Error"
69
65
  }
@@ -3,8 +3,8 @@
3
3
  "orc-shared.active": "Actif",
4
4
  "orc-shared.add": "Ajouter",
5
5
  "orc-shared.allRightsReserved": "Tout droits réservés.",
6
- "orc-shared.appSelectorTitle": "Orckestra Commerce Cloud : Liste des applications",
7
6
  "orc-shared.applyChanges": "Appliquer les modifications",
7
+ "orc-shared.appSelectorTitle": "Orckestra Commerce Cloud : Liste des applications",
8
8
  "orc-shared.back": "Précédent",
9
9
  "orc-shared.cancel": "Annuler",
10
10
  "orc-shared.ccDescription": "La plateforme de commerce « API-first » qui rend le commerce de détail omnicanal fluide.",
@@ -14,21 +14,12 @@
14
14
  "orc-shared.confirmation": "Confirmation",
15
15
  "orc-shared.copyright": "© {year} Technologies Orckestra Inc.",
16
16
  "orc-shared.copyrightTermsNotice": "Avertissement: Ce programme est protégé par la loi relative au droit d'auteur et par les conventions internationales. Toute reproduction ou distribution partielle ou totale du logiciel, par quelque moyen que ce soit, est strictement interdite. Toute personne ne respectant pas ces dispositions se rendra coupable du délit de contrefaçon et sera passible des sanctions pénales prévues par la loi. Orckestra est une marque de commerce déposée et détenue par Technologies Orckestra Inc. Toutes les autres marques de commerce sont la propriété de leurs détenteurs respectifs.",
17
- "orc-shared.dataTypeBoolean": "Choix Oui/Non",
18
- "orc-shared.dataTypeDate": "Date/Calendrier",
19
- "orc-shared.dataTypeDecimal": "Nombre décimal",
20
- "orc-shared.dataTypeEntityReference": "Profil de référence",
21
- "orc-shared.dataTypeInteger": "Nombre entier",
22
- "orc-shared.dataTypeLookup": "Index des listes",
23
- "orc-shared.dataTypeText": "Texte",
24
17
  "orc-shared.defaultApp": "Application par défaut",
25
18
  "orc-shared.delete": "Supprimer",
26
19
  "orc-shared.description": "Description",
27
20
  "orc-shared.displayLanguage": "Langue d'affichage",
28
21
  "orc-shared.displayName": "Nom d'affichage",
29
- "orc-shared.embedded": "Intégré",
30
22
  "orc-shared.error": "Erreur",
31
- "orc-shared.errorUnknown": "Erreur inconnue",
32
23
  "orc-shared.fieldIsRequired": "Est requis",
33
24
  "orc-shared.fieldMustBeValidEmail": "Ce champ doit contenir un courriel valide",
34
25
  "orc-shared.fieldMustBeValidPhoneExtension": "Ce champ doit contenir une extension de téléphone valide",
@@ -53,17 +44,22 @@
53
44
  "orc-shared.scopeChangeWithUnsavedDataConfirmation": "Une ou plusieurs entités ouvertes seront fermées, entraînant la perte de données non-sauvegardées. Voulez-vous vraiment changer de Scope?",
54
45
  "orc-shared.scopeChangeWithUnsavedDataTitle": "Confirmation du changement de Scope sans sauvegarde",
55
46
  "orc-shared.scopeFilterPlaceholder": "Entrez un nom de Scope",
56
- "orc-shared.shared": "Partagé",
57
47
  "orc-shared.showFewerLanguages": "Afficher moins de langues",
58
48
  "orc-shared.showMoreLanguages": "Afficher plus de langues",
59
49
  "orc-shared.signOut": "Se déconnecter",
60
50
  "orc-shared.sortOrder": "Ordre de tri",
61
51
  "orc-shared.status": "Statut",
62
- "orc-shared.taskId": "Identifiant de la tâche",
63
- "orc-shared.taskInProgressModalTitle": "Tâche en cours",
64
- "orc-shared.taskLogs": "Journal",
65
- "orc-shared.taskStatus": "Statut",
66
52
  "orc-shared.unsavedChanges": "Ce dossier contient des modifications qui ne sont sauvegardées. Si vous quittez, les modifications seront perdues.\n\nVoulez vous vraiment quitter?",
67
53
  "orc-shared.valueName": "Nom de la valeur",
68
- "orc-shared.yes": "Oui"
54
+ "orc-shared.yes": "Oui",
55
+ "orc-shared.embedded": "Intégré",
56
+ "orc-shared.shared": "Partagé",
57
+ "orc-shared.dataTypeText": "Texte",
58
+ "orc-shared.dataTypeBoolean": "Choix Oui/Non",
59
+ "orc-shared.dataTypeDate": "Date/Calendrier",
60
+ "orc-shared.dataTypeDecimal": "Nombre décimal",
61
+ "orc-shared.dataTypeInteger": "Nombre entier",
62
+ "orc-shared.dataTypeEntityReference": "Profil de référence",
63
+ "orc-shared.dataTypeLookup": "Index des listes",
64
+ "orc-shared.errorUnknown": "Erreur inconnue"
69
65
  }
@@ -67,41 +67,3 @@ export const isObjectContainsPropertyWithAnyValue = (obj, propertyName) => {
67
67
 
68
68
  return false;
69
69
  };
70
-
71
- export const compareObjectProperty = (obj1, obj2, propertyName) => {
72
- if (propertyName == null || propertyName === "") {
73
- return 0;
74
- }
75
-
76
- const val1 = obj1?.[propertyName];
77
- const val2 = obj2?.[propertyName];
78
-
79
- if (val1 === val2) {
80
- return 0;
81
- }
82
-
83
- if (val1 < val2) {
84
- return -1;
85
- }
86
-
87
- return 1;
88
- };
89
-
90
- export const compareObjectPropertyDescending = (obj1, obj2, propertyName) => {
91
- if (propertyName == null || propertyName === "") {
92
- return 0;
93
- }
94
-
95
- const val1 = obj1?.[propertyName];
96
- const val2 = obj2?.[propertyName];
97
-
98
- if (val1 === val2) {
99
- return 0;
100
- }
101
-
102
- if (val1 > val2) {
103
- return -1;
104
- }
105
-
106
- return 1;
107
- };