@sudoplatform/sudo-privacy-interaction 2.2.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/cjs/gen/graphqlTypes.js +443 -11
  2. package/cjs/gen/schema-types.js +2 -0
  3. package/cjs/private/data/action/defaultActionService.js +7 -0
  4. package/cjs/private/data/analysis-result/defaultAnalysisResultService.js +6 -0
  5. package/cjs/private/data/analysis-result/transformer/analysisResultStatusReasonTransformer.js +45 -0
  6. package/cjs/private/data/analysis-result/transformer/analysisResultTransformer.js +6 -0
  7. package/cjs/private/data/analysis-result/transformer/capabilitySignalsTransformer.js +5 -2
  8. package/cjs/private/data/analysis-result/transformer/organizationCategoryTransformer.js +4 -0
  9. package/cjs/private/data/common/apiClient.js +29 -1
  10. package/cjs/private/data/data-holder/defaultDataHolderService.js +8 -0
  11. package/cjs/private/data/data-holder/transformer/dataHolderProtectionStateTransformer.js +4 -0
  12. package/cjs/private/data/organization-analysis/defaultOrganizationAnalysisService.js +6 -0
  13. package/cjs/private/data/organization-analysis/transformer/organizationAnalysisDomainResolutionTransformer.js +29 -0
  14. package/cjs/private/data/organization-analysis/transformer/organizationAnalysisTransformer.js +6 -0
  15. package/cjs/private/data/virtual-presence/transformer/virtualPresenceTransformer.js +8 -0
  16. package/cjs/private/domain/entities/analysis-result/analysisResultEntity.js +21 -1
  17. package/cjs/private/domain/entities/data-holder/dataHolderEntity.js +2 -0
  18. package/cjs/private/domain/entities/organization-analysis/organizationAnalysisEntity.js +17 -1
  19. package/cjs/private/domain/use-cases/action/getActionUseCase.js +25 -0
  20. package/cjs/private/domain/use-cases/data-holder/archiveDataHolderUseCase.js +25 -0
  21. package/cjs/private/domain/use-cases/data-holder/unarchiveDataHolderUseCase.js +25 -0
  22. package/cjs/public/defaultSudoPrivacyInteractionClient.js +31 -0
  23. package/cjs/public/typings/analysisResult.js +21 -1
  24. package/cjs/public/typings/dataHolder.js +2 -0
  25. package/cjs/public/typings/organizationAnalysis.js +17 -1
  26. package/docs/assets/hierarchy.js +1 -1
  27. package/docs/assets/navigation.js +1 -1
  28. package/docs/assets/search.js +1 -1
  29. package/docs/classes/DefaultSudoPrivacyInteractionClient.html +93 -27
  30. package/docs/enums/AnalysisResultStatus.html +6 -6
  31. package/docs/enums/AnalysisResultStatusReason.html +81 -0
  32. package/docs/enums/DataCategory.html +18 -18
  33. package/docs/enums/DataHolderProtectionState.html +12 -6
  34. package/docs/enums/OrganizationAnalysisDomainResolution.html +70 -0
  35. package/docs/enums/OrganizationAnalysisMode.html +3 -3
  36. package/docs/enums/OrganizationCategory.html +38 -32
  37. package/docs/enums/ProviderType.html +3 -3
  38. package/docs/enums/RetentionStyle.html +5 -5
  39. package/docs/enums/ShareStyle.html +6 -6
  40. package/docs/enums/SignalValue.html +4 -4
  41. package/docs/enums/VirtualPresenceState.html +7 -7
  42. package/docs/hierarchy.html +6 -6
  43. package/docs/interfaces/AnalysisResult.html +21 -13
  44. package/docs/interfaces/AnalysisResultData.html +8 -8
  45. package/docs/interfaces/AnalysisResultUpdate.html +20 -12
  46. package/docs/interfaces/CapabilitySignals.html +41 -29
  47. package/docs/interfaces/CategorySignals.html +11 -11
  48. package/docs/interfaces/DataHolderCount.html +98 -0
  49. package/docs/interfaces/DataHolderScanSummary.html +14 -14
  50. package/docs/interfaces/GetOrganizationAnalysisInput.html +24 -5
  51. package/docs/interfaces/ListAnalysisResultsInput.html +1 -1
  52. package/docs/interfaces/ListDataHolderScanSummariesInput.html +1 -1
  53. package/docs/interfaces/ListDataHoldersInput.html +1 -1
  54. package/docs/interfaces/ListVirtualPresencesInput.html +1 -1
  55. package/docs/interfaces/OrganizationAnalysis.html +20 -12
  56. package/docs/interfaces/OrganizationIdentity.html +5 -5
  57. package/docs/interfaces/Pagination.html +1 -1
  58. package/docs/interfaces/PrivacyScore.html +4 -4
  59. package/docs/interfaces/PrivacySummary.html +4 -4
  60. package/docs/interfaces/RetentionInfo.html +4 -4
  61. package/docs/interfaces/RiskIndicators.html +8 -8
  62. package/docs/interfaces/ScoreContribution.html +3 -3
  63. package/docs/interfaces/ScoreCoverage.html +3 -3
  64. package/docs/interfaces/SudoPrivacyInteractionClient.html +78 -15
  65. package/docs/interfaces/VirtualPresence.html +22 -13
  66. package/docs/modules.html +4 -4
  67. package/docs/types/SudoPrivacyInteractionClientOptions.html +2 -2
  68. package/lib/gen/graphqlTypes.js +441 -10
  69. package/lib/gen/schema-types.js +1 -0
  70. package/lib/private/data/action/defaultActionService.js +7 -0
  71. package/lib/private/data/analysis-result/defaultAnalysisResultService.js +6 -0
  72. package/lib/private/data/analysis-result/transformer/analysisResultStatusReasonTransformer.js +41 -0
  73. package/lib/private/data/analysis-result/transformer/analysisResultTransformer.js +6 -0
  74. package/lib/private/data/analysis-result/transformer/capabilitySignalsTransformer.js +5 -2
  75. package/lib/private/data/analysis-result/transformer/organizationCategoryTransformer.js +4 -0
  76. package/lib/private/data/common/apiClient.js +30 -2
  77. package/lib/private/data/data-holder/defaultDataHolderService.js +8 -0
  78. package/lib/private/data/data-holder/transformer/dataHolderProtectionStateTransformer.js +4 -0
  79. package/lib/private/data/organization-analysis/defaultOrganizationAnalysisService.js +6 -0
  80. package/lib/private/data/organization-analysis/transformer/organizationAnalysisDomainResolutionTransformer.js +25 -0
  81. package/lib/private/data/organization-analysis/transformer/organizationAnalysisTransformer.js +6 -0
  82. package/lib/private/data/virtual-presence/transformer/virtualPresenceTransformer.js +8 -0
  83. package/lib/private/domain/entities/analysis-result/analysisResultEntity.js +20 -0
  84. package/lib/private/domain/entities/data-holder/dataHolderEntity.js +2 -0
  85. package/lib/private/domain/entities/organization-analysis/organizationAnalysisEntity.js +16 -0
  86. package/lib/private/domain/use-cases/action/getActionUseCase.js +21 -0
  87. package/lib/private/domain/use-cases/data-holder/archiveDataHolderUseCase.js +21 -0
  88. package/lib/private/domain/use-cases/data-holder/unarchiveDataHolderUseCase.js +21 -0
  89. package/lib/public/defaultSudoPrivacyInteractionClient.js +31 -0
  90. package/lib/public/typings/analysisResult.js +20 -0
  91. package/lib/public/typings/dataHolder.js +2 -0
  92. package/lib/public/typings/organizationAnalysis.js +16 -0
  93. package/package.json +19 -23
  94. package/types/gen/graphqlTypes.d.ts +338 -645
  95. package/types/gen/schema-types.d.ts +525 -0
  96. package/types/private/data/action/defaultActionService.d.ts +1 -0
  97. package/types/private/data/analysis-result/defaultAnalysisResultService.d.ts +1 -0
  98. package/types/private/data/analysis-result/transformer/analysisResultStatusReasonTransformer.d.ts +12 -0
  99. package/types/private/data/analysis-result/transformer/analysisResultTransformer.d.ts +1 -0
  100. package/types/private/data/common/apiClient.d.ts +6 -1
  101. package/types/private/data/data-holder/defaultDataHolderService.d.ts +2 -0
  102. package/types/private/data/organization-analysis/defaultOrganizationAnalysisService.d.ts +1 -0
  103. package/types/private/data/organization-analysis/transformer/organizationAnalysisDomainResolutionTransformer.d.ts +12 -0
  104. package/types/private/data/organization-analysis/transformer/organizationAnalysisTransformer.d.ts +1 -0
  105. package/types/private/domain/entities/action/actionService.d.ts +11 -0
  106. package/types/private/domain/entities/analysis-result/analysisResultEntity.d.ts +23 -2
  107. package/types/private/domain/entities/data-holder/dataHolderEntity.d.ts +2 -0
  108. package/types/private/domain/entities/data-holder/dataHolderService.d.ts +16 -0
  109. package/types/private/domain/entities/organization-analysis/organizationAnalysisEntity.d.ts +18 -1
  110. package/types/private/domain/entities/organization-analysis/organizationAnalysisService.d.ts +8 -1
  111. package/types/private/domain/entities/virtual-presence/virtualPresenceEntity.d.ts +24 -0
  112. package/types/private/domain/use-cases/action/getActionUseCase.d.ts +16 -0
  113. package/types/private/domain/use-cases/data-holder/archiveDataHolderUseCase.d.ts +16 -0
  114. package/types/private/domain/use-cases/data-holder/unarchiveDataHolderUseCase.d.ts +16 -0
  115. package/types/public/defaultSudoPrivacyInteractionClient.d.ts +4 -0
  116. package/types/public/inputs/organizationAnalysis.d.ts +8 -1
  117. package/types/public/sudoPrivacyInteractionClient.d.ts +27 -0
  118. package/types/public/typings/analysisResult.d.ts +30 -0
  119. package/types/public/typings/dataHolder.d.ts +2 -0
  120. package/types/public/typings/organizationAnalysis.d.ts +18 -1
  121. package/types/public/typings/virtualPresence.d.ts +25 -0
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OnActionStatusUpdateDocument = exports.OnAnalysisResultUpdateDocument = exports.OnDataHoldersUpdateDocument = exports.OnVirtualPresenceUpdateDocument = exports.ListAvailableActionsDocument = exports.ListDataHolderScanSummariesDocument = exports.ListAnalysisResultsDocument = exports.GetOrganizationAnalysisDocument = exports.GetAnalysisResultDocument = exports.ListDataHoldersDocument = exports.GetDataHolderDocument = exports.ListVirtualPresencesDocument = exports.GetProviderConfigurationDocument = exports.ConfirmActionOutcomeDocument = exports.InitiateActionDocument = exports.RescanVirtualPresenceDocument = exports.DisconnectVirtualPresenceDocument = exports.ConnectVirtualPresenceDocument = exports.VirtualPresenceFieldsFragmentDoc = exports.OrganizationAnalysisFieldsFragmentDoc = exports.DataHolderScanSummaryFieldsFragmentDoc = exports.DataHolderFieldsFragmentDoc = exports.AnalysisResultFieldsFragmentDoc = exports.AnalysisResultDataFieldsFragmentDoc = exports.AvailableActionFieldsFragmentDoc = exports.ActionFieldsFragmentDoc = void 0;
3
+ exports.OnActionStatusUpdateDocument = exports.OnAnalysisResultUpdateDocument = exports.OnDataHoldersUpdateDocument = exports.OnVirtualPresenceUpdateDocument = exports.GetActionDocument = exports.ListAvailableActionsDocument = exports.ListDataHolderScanSummariesDocument = exports.ListAnalysisResultsDocument = exports.GetOrganizationAnalysisDocument = exports.GetAnalysisResultDocument = exports.ListDataHoldersDocument = exports.GetDataHolderDocument = exports.ListVirtualPresencesDocument = exports.GetProviderConfigurationDocument = exports.UnarchiveDataHolderDocument = exports.ArchiveDataHolderDocument = exports.ConfirmActionOutcomeDocument = exports.InitiateActionDocument = exports.RescanVirtualPresenceDocument = exports.DisconnectVirtualPresenceDocument = exports.ConnectVirtualPresenceDocument = exports.VirtualPresenceFieldsFragmentDoc = exports.OrganizationAnalysisFieldsFragmentDoc = exports.DataHolderScanSummaryFieldsFragmentDoc = exports.DataHolderFieldsFragmentDoc = exports.AnalysisResultFieldsFragmentDoc = exports.AnalysisResultDataFieldsFragmentDoc = exports.AvailableActionFieldsFragmentDoc = exports.ActionFieldsFragmentDoc = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./schema-types"), exports);
4
6
  exports.ActionFieldsFragmentDoc = {
5
7
  kind: 'Document',
6
8
  definitions: [
@@ -265,7 +267,7 @@ exports.AnalysisResultDataFieldsFragmentDoc = {
265
267
  },
266
268
  {
267
269
  kind: 'Field',
268
- name: { kind: 'Name', value: 'sellsPersonalInformation' },
270
+ name: { kind: 'Name', value: 'supportsOptOutOfSale' },
269
271
  },
270
272
  {
271
273
  kind: 'Field',
@@ -357,6 +359,7 @@ exports.AnalysisResultFieldsFragmentDoc = {
357
359
  name: { kind: 'Name', value: 'dataHolderIdentifier' },
358
360
  },
359
361
  { kind: 'Field', name: { kind: 'Name', value: 'status' } },
362
+ { kind: 'Field', name: { kind: 'Name', value: 'statusReason' } },
360
363
  {
361
364
  kind: 'Field',
362
365
  name: { kind: 'Name', value: 'lastAnalyzedAtEpochMs' },
@@ -526,7 +529,7 @@ exports.AnalysisResultFieldsFragmentDoc = {
526
529
  },
527
530
  {
528
531
  kind: 'Field',
529
- name: { kind: 'Name', value: 'sellsPersonalInformation' },
532
+ name: { kind: 'Name', value: 'supportsOptOutOfSale' },
530
533
  },
531
534
  {
532
535
  kind: 'Field',
@@ -692,6 +695,7 @@ exports.OrganizationAnalysisFieldsFragmentDoc = {
692
695
  { kind: 'Field', name: { kind: 'Name', value: 'id' } },
693
696
  { kind: 'Field', name: { kind: 'Name', value: 'domain' } },
694
697
  { kind: 'Field', name: { kind: 'Name', value: 'status' } },
698
+ { kind: 'Field', name: { kind: 'Name', value: 'statusReason' } },
695
699
  {
696
700
  kind: 'Field',
697
701
  name: { kind: 'Name', value: 'lastAnalyzedAtEpochMs' },
@@ -861,7 +865,7 @@ exports.OrganizationAnalysisFieldsFragmentDoc = {
861
865
  },
862
866
  {
863
867
  kind: 'Field',
864
- name: { kind: 'Name', value: 'sellsPersonalInformation' },
868
+ name: { kind: 'Name', value: 'supportsOptOutOfSale' },
865
869
  },
866
870
  {
867
871
  kind: 'Field',
@@ -958,6 +962,26 @@ exports.VirtualPresenceFieldsFragmentDoc = {
958
962
  kind: 'Field',
959
963
  name: { kind: 'Name', value: 'lastScanFailureReason' },
960
964
  },
965
+ {
966
+ kind: 'Field',
967
+ name: { kind: 'Name', value: 'dataHolderCount' },
968
+ selectionSet: {
969
+ kind: 'SelectionSet',
970
+ selections: [
971
+ { kind: 'Field', name: { kind: 'Name', value: 'count' } },
972
+ { kind: 'Field', name: { kind: 'Name', value: 'monitored' } },
973
+ {
974
+ kind: 'Field',
975
+ name: { kind: 'Name', value: 'initiatedActions' },
976
+ },
977
+ {
978
+ kind: 'Field',
979
+ name: { kind: 'Name', value: 'completedActions' },
980
+ },
981
+ { kind: 'Field', name: { kind: 'Name', value: 'archived' } },
982
+ ],
983
+ },
984
+ },
961
985
  { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
962
986
  { kind: 'Field', name: { kind: 'Name', value: 'version' } },
963
987
  { kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
@@ -1038,6 +1062,26 @@ exports.ConnectVirtualPresenceDocument = {
1038
1062
  kind: 'Field',
1039
1063
  name: { kind: 'Name', value: 'lastScanFailureReason' },
1040
1064
  },
1065
+ {
1066
+ kind: 'Field',
1067
+ name: { kind: 'Name', value: 'dataHolderCount' },
1068
+ selectionSet: {
1069
+ kind: 'SelectionSet',
1070
+ selections: [
1071
+ { kind: 'Field', name: { kind: 'Name', value: 'count' } },
1072
+ { kind: 'Field', name: { kind: 'Name', value: 'monitored' } },
1073
+ {
1074
+ kind: 'Field',
1075
+ name: { kind: 'Name', value: 'initiatedActions' },
1076
+ },
1077
+ {
1078
+ kind: 'Field',
1079
+ name: { kind: 'Name', value: 'completedActions' },
1080
+ },
1081
+ { kind: 'Field', name: { kind: 'Name', value: 'archived' } },
1082
+ ],
1083
+ },
1084
+ },
1041
1085
  { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
1042
1086
  { kind: 'Field', name: { kind: 'Name', value: 'version' } },
1043
1087
  { kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
@@ -1118,6 +1162,26 @@ exports.DisconnectVirtualPresenceDocument = {
1118
1162
  kind: 'Field',
1119
1163
  name: { kind: 'Name', value: 'lastScanFailureReason' },
1120
1164
  },
1165
+ {
1166
+ kind: 'Field',
1167
+ name: { kind: 'Name', value: 'dataHolderCount' },
1168
+ selectionSet: {
1169
+ kind: 'SelectionSet',
1170
+ selections: [
1171
+ { kind: 'Field', name: { kind: 'Name', value: 'count' } },
1172
+ { kind: 'Field', name: { kind: 'Name', value: 'monitored' } },
1173
+ {
1174
+ kind: 'Field',
1175
+ name: { kind: 'Name', value: 'initiatedActions' },
1176
+ },
1177
+ {
1178
+ kind: 'Field',
1179
+ name: { kind: 'Name', value: 'completedActions' },
1180
+ },
1181
+ { kind: 'Field', name: { kind: 'Name', value: 'archived' } },
1182
+ ],
1183
+ },
1184
+ },
1121
1185
  { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
1122
1186
  { kind: 'Field', name: { kind: 'Name', value: 'version' } },
1123
1187
  { kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
@@ -1217,6 +1281,26 @@ exports.RescanVirtualPresenceDocument = {
1217
1281
  kind: 'Field',
1218
1282
  name: { kind: 'Name', value: 'lastScanFailureReason' },
1219
1283
  },
1284
+ {
1285
+ kind: 'Field',
1286
+ name: { kind: 'Name', value: 'dataHolderCount' },
1287
+ selectionSet: {
1288
+ kind: 'SelectionSet',
1289
+ selections: [
1290
+ { kind: 'Field', name: { kind: 'Name', value: 'count' } },
1291
+ { kind: 'Field', name: { kind: 'Name', value: 'monitored' } },
1292
+ {
1293
+ kind: 'Field',
1294
+ name: { kind: 'Name', value: 'initiatedActions' },
1295
+ },
1296
+ {
1297
+ kind: 'Field',
1298
+ name: { kind: 'Name', value: 'completedActions' },
1299
+ },
1300
+ { kind: 'Field', name: { kind: 'Name', value: 'archived' } },
1301
+ ],
1302
+ },
1303
+ },
1220
1304
  { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
1221
1305
  { kind: 'Field', name: { kind: 'Name', value: 'version' } },
1222
1306
  { kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
@@ -1502,6 +1586,156 @@ exports.ConfirmActionOutcomeDocument = {
1502
1586
  },
1503
1587
  ],
1504
1588
  };
1589
+ exports.ArchiveDataHolderDocument = {
1590
+ kind: 'Document',
1591
+ definitions: [
1592
+ {
1593
+ kind: 'OperationDefinition',
1594
+ operation: 'mutation',
1595
+ name: { kind: 'Name', value: 'ArchiveDataHolder' },
1596
+ variableDefinitions: [
1597
+ {
1598
+ kind: 'VariableDefinition',
1599
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
1600
+ type: {
1601
+ kind: 'NonNullType',
1602
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
1603
+ },
1604
+ },
1605
+ ],
1606
+ selectionSet: {
1607
+ kind: 'SelectionSet',
1608
+ selections: [
1609
+ {
1610
+ kind: 'Field',
1611
+ name: { kind: 'Name', value: 'archiveDataHolder' },
1612
+ arguments: [
1613
+ {
1614
+ kind: 'Argument',
1615
+ name: { kind: 'Name', value: 'id' },
1616
+ value: {
1617
+ kind: 'Variable',
1618
+ name: { kind: 'Name', value: 'id' },
1619
+ },
1620
+ },
1621
+ ],
1622
+ selectionSet: {
1623
+ kind: 'SelectionSet',
1624
+ selections: [
1625
+ {
1626
+ kind: 'FragmentSpread',
1627
+ name: { kind: 'Name', value: 'DataHolderFields' },
1628
+ },
1629
+ ],
1630
+ },
1631
+ },
1632
+ ],
1633
+ },
1634
+ },
1635
+ {
1636
+ kind: 'FragmentDefinition',
1637
+ name: { kind: 'Name', value: 'DataHolderFields' },
1638
+ typeCondition: {
1639
+ kind: 'NamedType',
1640
+ name: { kind: 'Name', value: 'DataHolder' },
1641
+ },
1642
+ selectionSet: {
1643
+ kind: 'SelectionSet',
1644
+ selections: [
1645
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
1646
+ { kind: 'Field', name: { kind: 'Name', value: 'virtualPresenceId' } },
1647
+ { kind: 'Field', name: { kind: 'Name', value: 'domainName' } },
1648
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
1649
+ { kind: 'Field', name: { kind: 'Name', value: 'protectionState' } },
1650
+ { kind: 'Field', name: { kind: 'Name', value: 'complianceConcern' } },
1651
+ {
1652
+ kind: 'Field',
1653
+ name: { kind: 'Name', value: 'mostRecentInteractionEpochMs' },
1654
+ },
1655
+ { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
1656
+ { kind: 'Field', name: { kind: 'Name', value: 'version' } },
1657
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
1658
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAtEpochMs' } },
1659
+ ],
1660
+ },
1661
+ },
1662
+ ],
1663
+ };
1664
+ exports.UnarchiveDataHolderDocument = {
1665
+ kind: 'Document',
1666
+ definitions: [
1667
+ {
1668
+ kind: 'OperationDefinition',
1669
+ operation: 'mutation',
1670
+ name: { kind: 'Name', value: 'UnarchiveDataHolder' },
1671
+ variableDefinitions: [
1672
+ {
1673
+ kind: 'VariableDefinition',
1674
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
1675
+ type: {
1676
+ kind: 'NonNullType',
1677
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
1678
+ },
1679
+ },
1680
+ ],
1681
+ selectionSet: {
1682
+ kind: 'SelectionSet',
1683
+ selections: [
1684
+ {
1685
+ kind: 'Field',
1686
+ name: { kind: 'Name', value: 'unarchiveDataHolder' },
1687
+ arguments: [
1688
+ {
1689
+ kind: 'Argument',
1690
+ name: { kind: 'Name', value: 'id' },
1691
+ value: {
1692
+ kind: 'Variable',
1693
+ name: { kind: 'Name', value: 'id' },
1694
+ },
1695
+ },
1696
+ ],
1697
+ selectionSet: {
1698
+ kind: 'SelectionSet',
1699
+ selections: [
1700
+ {
1701
+ kind: 'FragmentSpread',
1702
+ name: { kind: 'Name', value: 'DataHolderFields' },
1703
+ },
1704
+ ],
1705
+ },
1706
+ },
1707
+ ],
1708
+ },
1709
+ },
1710
+ {
1711
+ kind: 'FragmentDefinition',
1712
+ name: { kind: 'Name', value: 'DataHolderFields' },
1713
+ typeCondition: {
1714
+ kind: 'NamedType',
1715
+ name: { kind: 'Name', value: 'DataHolder' },
1716
+ },
1717
+ selectionSet: {
1718
+ kind: 'SelectionSet',
1719
+ selections: [
1720
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
1721
+ { kind: 'Field', name: { kind: 'Name', value: 'virtualPresenceId' } },
1722
+ { kind: 'Field', name: { kind: 'Name', value: 'domainName' } },
1723
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
1724
+ { kind: 'Field', name: { kind: 'Name', value: 'protectionState' } },
1725
+ { kind: 'Field', name: { kind: 'Name', value: 'complianceConcern' } },
1726
+ {
1727
+ kind: 'Field',
1728
+ name: { kind: 'Name', value: 'mostRecentInteractionEpochMs' },
1729
+ },
1730
+ { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
1731
+ { kind: 'Field', name: { kind: 'Name', value: 'version' } },
1732
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
1733
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAtEpochMs' } },
1734
+ ],
1735
+ },
1736
+ },
1737
+ ],
1738
+ };
1505
1739
  exports.GetProviderConfigurationDocument = {
1506
1740
  kind: 'Document',
1507
1741
  definitions: [
@@ -1608,6 +1842,26 @@ exports.ListVirtualPresencesDocument = {
1608
1842
  kind: 'Field',
1609
1843
  name: { kind: 'Name', value: 'lastScanFailureReason' },
1610
1844
  },
1845
+ {
1846
+ kind: 'Field',
1847
+ name: { kind: 'Name', value: 'dataHolderCount' },
1848
+ selectionSet: {
1849
+ kind: 'SelectionSet',
1850
+ selections: [
1851
+ { kind: 'Field', name: { kind: 'Name', value: 'count' } },
1852
+ { kind: 'Field', name: { kind: 'Name', value: 'monitored' } },
1853
+ {
1854
+ kind: 'Field',
1855
+ name: { kind: 'Name', value: 'initiatedActions' },
1856
+ },
1857
+ {
1858
+ kind: 'Field',
1859
+ name: { kind: 'Name', value: 'completedActions' },
1860
+ },
1861
+ { kind: 'Field', name: { kind: 'Name', value: 'archived' } },
1862
+ ],
1863
+ },
1864
+ },
1611
1865
  { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
1612
1866
  { kind: 'Field', name: { kind: 'Name', value: 'version' } },
1613
1867
  { kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
@@ -2003,7 +2257,7 @@ exports.GetAnalysisResultDocument = {
2003
2257
  },
2004
2258
  {
2005
2259
  kind: 'Field',
2006
- name: { kind: 'Name', value: 'sellsPersonalInformation' },
2260
+ name: { kind: 'Name', value: 'supportsOptOutOfSale' },
2007
2261
  },
2008
2262
  {
2009
2263
  kind: 'Field',
@@ -2090,6 +2344,7 @@ exports.GetAnalysisResultDocument = {
2090
2344
  name: { kind: 'Name', value: 'dataHolderIdentifier' },
2091
2345
  },
2092
2346
  { kind: 'Field', name: { kind: 'Name', value: 'status' } },
2347
+ { kind: 'Field', name: { kind: 'Name', value: 'statusReason' } },
2093
2348
  {
2094
2349
  kind: 'Field',
2095
2350
  name: { kind: 'Name', value: 'lastAnalyzedAtEpochMs' },
@@ -2140,10 +2395,18 @@ exports.GetOrganizationAnalysisDocument = {
2140
2395
  },
2141
2396
  {
2142
2397
  kind: 'VariableDefinition',
2143
- variable: { kind: 'Variable', name: { kind: 'Name', value: 'mode' } },
2398
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'name' } },
2399
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
2400
+ },
2401
+ {
2402
+ kind: 'VariableDefinition',
2403
+ variable: {
2404
+ kind: 'Variable',
2405
+ name: { kind: 'Name', value: 'options' },
2406
+ },
2144
2407
  type: {
2145
2408
  kind: 'NamedType',
2146
- name: { kind: 'Name', value: 'OrganizationAnalysisMode' },
2409
+ name: { kind: 'Name', value: 'OrganizationAnalysisOptions' },
2147
2410
  },
2148
2411
  },
2149
2412
  ],
@@ -2164,10 +2427,18 @@ exports.GetOrganizationAnalysisDocument = {
2164
2427
  },
2165
2428
  {
2166
2429
  kind: 'Argument',
2167
- name: { kind: 'Name', value: 'mode' },
2430
+ name: { kind: 'Name', value: 'name' },
2431
+ value: {
2432
+ kind: 'Variable',
2433
+ name: { kind: 'Name', value: 'name' },
2434
+ },
2435
+ },
2436
+ {
2437
+ kind: 'Argument',
2438
+ name: { kind: 'Name', value: 'options' },
2168
2439
  value: {
2169
2440
  kind: 'Variable',
2170
- name: { kind: 'Name', value: 'mode' },
2441
+ name: { kind: 'Name', value: 'options' },
2171
2442
  },
2172
2443
  },
2173
2444
  ],
@@ -2329,7 +2600,7 @@ exports.GetOrganizationAnalysisDocument = {
2329
2600
  },
2330
2601
  {
2331
2602
  kind: 'Field',
2332
- name: { kind: 'Name', value: 'sellsPersonalInformation' },
2603
+ name: { kind: 'Name', value: 'supportsOptOutOfSale' },
2333
2604
  },
2334
2605
  {
2335
2606
  kind: 'Field',
@@ -2412,6 +2683,7 @@ exports.GetOrganizationAnalysisDocument = {
2412
2683
  { kind: 'Field', name: { kind: 'Name', value: 'id' } },
2413
2684
  { kind: 'Field', name: { kind: 'Name', value: 'domain' } },
2414
2685
  { kind: 'Field', name: { kind: 'Name', value: 'status' } },
2686
+ { kind: 'Field', name: { kind: 'Name', value: 'statusReason' } },
2415
2687
  {
2416
2688
  kind: 'Field',
2417
2689
  name: { kind: 'Name', value: 'lastAnalyzedAtEpochMs' },
@@ -2674,7 +2946,7 @@ exports.ListAnalysisResultsDocument = {
2674
2946
  },
2675
2947
  {
2676
2948
  kind: 'Field',
2677
- name: { kind: 'Name', value: 'sellsPersonalInformation' },
2949
+ name: { kind: 'Name', value: 'supportsOptOutOfSale' },
2678
2950
  },
2679
2951
  {
2680
2952
  kind: 'Field',
@@ -2761,6 +3033,7 @@ exports.ListAnalysisResultsDocument = {
2761
3033
  name: { kind: 'Name', value: 'dataHolderIdentifier' },
2762
3034
  },
2763
3035
  { kind: 'Field', name: { kind: 'Name', value: 'status' } },
3036
+ { kind: 'Field', name: { kind: 'Name', value: 'statusReason' } },
2764
3037
  {
2765
3038
  kind: 'Field',
2766
3039
  name: { kind: 'Name', value: 'lastAnalyzedAtEpochMs' },
@@ -3004,6 +3277,141 @@ exports.ListAvailableActionsDocument = {
3004
3277
  },
3005
3278
  ],
3006
3279
  };
3280
+ exports.GetActionDocument = {
3281
+ kind: 'Document',
3282
+ definitions: [
3283
+ {
3284
+ kind: 'OperationDefinition',
3285
+ operation: 'query',
3286
+ name: { kind: 'Name', value: 'GetAction' },
3287
+ variableDefinitions: [
3288
+ {
3289
+ kind: 'VariableDefinition',
3290
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
3291
+ type: {
3292
+ kind: 'NonNullType',
3293
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
3294
+ },
3295
+ },
3296
+ ],
3297
+ selectionSet: {
3298
+ kind: 'SelectionSet',
3299
+ selections: [
3300
+ {
3301
+ kind: 'Field',
3302
+ name: { kind: 'Name', value: 'getAction' },
3303
+ arguments: [
3304
+ {
3305
+ kind: 'Argument',
3306
+ name: { kind: 'Name', value: 'id' },
3307
+ value: {
3308
+ kind: 'Variable',
3309
+ name: { kind: 'Name', value: 'id' },
3310
+ },
3311
+ },
3312
+ ],
3313
+ selectionSet: {
3314
+ kind: 'SelectionSet',
3315
+ selections: [
3316
+ {
3317
+ kind: 'FragmentSpread',
3318
+ name: { kind: 'Name', value: 'ActionFields' },
3319
+ },
3320
+ ],
3321
+ },
3322
+ },
3323
+ ],
3324
+ },
3325
+ },
3326
+ {
3327
+ kind: 'FragmentDefinition',
3328
+ name: { kind: 'Name', value: 'ActionFields' },
3329
+ typeCondition: {
3330
+ kind: 'NamedType',
3331
+ name: { kind: 'Name', value: 'Action' },
3332
+ },
3333
+ selectionSet: {
3334
+ kind: 'SelectionSet',
3335
+ selections: [
3336
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
3337
+ { kind: 'Field', name: { kind: 'Name', value: 'virtualPresenceId' } },
3338
+ { kind: 'Field', name: { kind: 'Name', value: 'dataHolderId' } },
3339
+ { kind: 'Field', name: { kind: 'Name', value: 'intent' } },
3340
+ { kind: 'Field', name: { kind: 'Name', value: 'additionalInfo' } },
3341
+ { kind: 'Field', name: { kind: 'Name', value: 'fulfilmentMethod' } },
3342
+ { kind: 'Field', name: { kind: 'Name', value: 'status' } },
3343
+ {
3344
+ kind: 'Field',
3345
+ name: { kind: 'Name', value: 'assistedPayload' },
3346
+ selectionSet: {
3347
+ kind: 'SelectionSet',
3348
+ selections: [
3349
+ { kind: 'Field', name: { kind: 'Name', value: 'toAddress' } },
3350
+ {
3351
+ kind: 'Field',
3352
+ name: { kind: 'Name', value: 'unsubscribeUrl' },
3353
+ },
3354
+ {
3355
+ kind: 'Field',
3356
+ name: { kind: 'Name', value: 'unsubscribeMailto' },
3357
+ },
3358
+ {
3359
+ kind: 'Field',
3360
+ name: { kind: 'Name', value: 'contact' },
3361
+ selectionSet: {
3362
+ kind: 'SelectionSet',
3363
+ selections: [
3364
+ { kind: 'Field', name: { kind: 'Name', value: 'email' } },
3365
+ { kind: 'Field', name: { kind: 'Name', value: 'phone' } },
3366
+ {
3367
+ kind: 'Field',
3368
+ name: { kind: 'Name', value: 'address' },
3369
+ },
3370
+ ],
3371
+ },
3372
+ },
3373
+ {
3374
+ kind: 'Field',
3375
+ name: { kind: 'Name', value: 'jurisdiction' },
3376
+ },
3377
+ {
3378
+ kind: 'Field',
3379
+ name: { kind: 'Name', value: 'instructions' },
3380
+ },
3381
+ {
3382
+ kind: 'Field',
3383
+ name: { kind: 'Name', value: 'emailTemplate' },
3384
+ selectionSet: {
3385
+ kind: 'SelectionSet',
3386
+ selections: [
3387
+ {
3388
+ kind: 'Field',
3389
+ name: { kind: 'Name', value: 'subject' },
3390
+ },
3391
+ { kind: 'Field', name: { kind: 'Name', value: 'body' } },
3392
+ ],
3393
+ },
3394
+ },
3395
+ ],
3396
+ },
3397
+ },
3398
+ {
3399
+ kind: 'Field',
3400
+ name: { kind: 'Name', value: 'initiatedAtEpochMs' },
3401
+ },
3402
+ {
3403
+ kind: 'Field',
3404
+ name: { kind: 'Name', value: 'completedAtEpochMs' },
3405
+ },
3406
+ { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
3407
+ { kind: 'Field', name: { kind: 'Name', value: 'version' } },
3408
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
3409
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAtEpochMs' } },
3410
+ ],
3411
+ },
3412
+ },
3413
+ ],
3414
+ };
3007
3415
  exports.OnVirtualPresenceUpdateDocument = {
3008
3416
  kind: 'Document',
3009
3417
  definitions: [
@@ -3075,6 +3483,26 @@ exports.OnVirtualPresenceUpdateDocument = {
3075
3483
  kind: 'Field',
3076
3484
  name: { kind: 'Name', value: 'lastScanFailureReason' },
3077
3485
  },
3486
+ {
3487
+ kind: 'Field',
3488
+ name: { kind: 'Name', value: 'dataHolderCount' },
3489
+ selectionSet: {
3490
+ kind: 'SelectionSet',
3491
+ selections: [
3492
+ { kind: 'Field', name: { kind: 'Name', value: 'count' } },
3493
+ { kind: 'Field', name: { kind: 'Name', value: 'monitored' } },
3494
+ {
3495
+ kind: 'Field',
3496
+ name: { kind: 'Name', value: 'initiatedActions' },
3497
+ },
3498
+ {
3499
+ kind: 'Field',
3500
+ name: { kind: 'Name', value: 'completedActions' },
3501
+ },
3502
+ { kind: 'Field', name: { kind: 'Name', value: 'archived' } },
3503
+ ],
3504
+ },
3505
+ },
3078
3506
  { kind: 'Field', name: { kind: 'Name', value: 'owner' } },
3079
3507
  { kind: 'Field', name: { kind: 'Name', value: 'version' } },
3080
3508
  { kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
@@ -3228,6 +3656,10 @@ exports.OnAnalysisResultUpdateDocument = {
3228
3656
  name: { kind: 'Name', value: 'dataHolderIdentifier' },
3229
3657
  },
3230
3658
  { kind: 'Field', name: { kind: 'Name', value: 'status' } },
3659
+ {
3660
+ kind: 'Field',
3661
+ name: { kind: 'Name', value: 'statusReason' },
3662
+ },
3231
3663
  {
3232
3664
  kind: 'Field',
3233
3665
  name: { kind: 'Name', value: 'lastAnalyzedAtEpochMs' },
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -35,6 +35,13 @@ class DefaultActionService {
35
35
  });
36
36
  return this.actionTransformer.fromGraphQLToEntity(result);
37
37
  }
38
+ async get(id) {
39
+ const result = await this.appSync.getAction(id);
40
+ if (!result) {
41
+ return undefined;
42
+ }
43
+ return this.actionTransformer.fromGraphQLToEntity(result);
44
+ }
38
45
  async confirmOutcome(id) {
39
46
  const result = await this.appSync.confirmActionOutcome(id);
40
47
  return this.actionTransformer.fromGraphQLToEntity(result);