@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.
- package/cjs/gen/graphqlTypes.js +443 -11
- package/cjs/gen/schema-types.js +2 -0
- package/cjs/private/data/action/defaultActionService.js +7 -0
- package/cjs/private/data/analysis-result/defaultAnalysisResultService.js +6 -0
- package/cjs/private/data/analysis-result/transformer/analysisResultStatusReasonTransformer.js +45 -0
- package/cjs/private/data/analysis-result/transformer/analysisResultTransformer.js +6 -0
- package/cjs/private/data/analysis-result/transformer/capabilitySignalsTransformer.js +5 -2
- package/cjs/private/data/analysis-result/transformer/organizationCategoryTransformer.js +4 -0
- package/cjs/private/data/common/apiClient.js +29 -1
- package/cjs/private/data/data-holder/defaultDataHolderService.js +8 -0
- package/cjs/private/data/data-holder/transformer/dataHolderProtectionStateTransformer.js +4 -0
- package/cjs/private/data/organization-analysis/defaultOrganizationAnalysisService.js +6 -0
- package/cjs/private/data/organization-analysis/transformer/organizationAnalysisDomainResolutionTransformer.js +29 -0
- package/cjs/private/data/organization-analysis/transformer/organizationAnalysisTransformer.js +6 -0
- package/cjs/private/data/virtual-presence/transformer/virtualPresenceTransformer.js +8 -0
- package/cjs/private/domain/entities/analysis-result/analysisResultEntity.js +21 -1
- package/cjs/private/domain/entities/data-holder/dataHolderEntity.js +2 -0
- package/cjs/private/domain/entities/organization-analysis/organizationAnalysisEntity.js +17 -1
- package/cjs/private/domain/use-cases/action/getActionUseCase.js +25 -0
- package/cjs/private/domain/use-cases/data-holder/archiveDataHolderUseCase.js +25 -0
- package/cjs/private/domain/use-cases/data-holder/unarchiveDataHolderUseCase.js +25 -0
- package/cjs/public/defaultSudoPrivacyInteractionClient.js +31 -0
- package/cjs/public/typings/analysisResult.js +21 -1
- package/cjs/public/typings/dataHolder.js +2 -0
- package/cjs/public/typings/organizationAnalysis.js +17 -1
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/DefaultSudoPrivacyInteractionClient.html +93 -27
- package/docs/enums/AnalysisResultStatus.html +6 -6
- package/docs/enums/AnalysisResultStatusReason.html +81 -0
- package/docs/enums/DataCategory.html +18 -18
- package/docs/enums/DataHolderProtectionState.html +12 -6
- package/docs/enums/OrganizationAnalysisDomainResolution.html +70 -0
- package/docs/enums/OrganizationAnalysisMode.html +3 -3
- package/docs/enums/OrganizationCategory.html +38 -32
- package/docs/enums/ProviderType.html +3 -3
- package/docs/enums/RetentionStyle.html +5 -5
- package/docs/enums/ShareStyle.html +6 -6
- package/docs/enums/SignalValue.html +4 -4
- package/docs/enums/VirtualPresenceState.html +7 -7
- package/docs/hierarchy.html +6 -6
- package/docs/interfaces/AnalysisResult.html +21 -13
- package/docs/interfaces/AnalysisResultData.html +8 -8
- package/docs/interfaces/AnalysisResultUpdate.html +20 -12
- package/docs/interfaces/CapabilitySignals.html +41 -29
- package/docs/interfaces/CategorySignals.html +11 -11
- package/docs/interfaces/DataHolderCount.html +98 -0
- package/docs/interfaces/DataHolderScanSummary.html +14 -14
- package/docs/interfaces/GetOrganizationAnalysisInput.html +24 -5
- package/docs/interfaces/ListAnalysisResultsInput.html +1 -1
- package/docs/interfaces/ListDataHolderScanSummariesInput.html +1 -1
- package/docs/interfaces/ListDataHoldersInput.html +1 -1
- package/docs/interfaces/ListVirtualPresencesInput.html +1 -1
- package/docs/interfaces/OrganizationAnalysis.html +20 -12
- package/docs/interfaces/OrganizationIdentity.html +5 -5
- package/docs/interfaces/Pagination.html +1 -1
- package/docs/interfaces/PrivacyScore.html +4 -4
- package/docs/interfaces/PrivacySummary.html +4 -4
- package/docs/interfaces/RetentionInfo.html +4 -4
- package/docs/interfaces/RiskIndicators.html +8 -8
- package/docs/interfaces/ScoreContribution.html +3 -3
- package/docs/interfaces/ScoreCoverage.html +3 -3
- package/docs/interfaces/SudoPrivacyInteractionClient.html +78 -15
- package/docs/interfaces/VirtualPresence.html +22 -13
- package/docs/modules.html +4 -4
- package/docs/types/SudoPrivacyInteractionClientOptions.html +2 -2
- package/lib/gen/graphqlTypes.js +441 -10
- package/lib/gen/schema-types.js +1 -0
- package/lib/private/data/action/defaultActionService.js +7 -0
- package/lib/private/data/analysis-result/defaultAnalysisResultService.js +6 -0
- package/lib/private/data/analysis-result/transformer/analysisResultStatusReasonTransformer.js +41 -0
- package/lib/private/data/analysis-result/transformer/analysisResultTransformer.js +6 -0
- package/lib/private/data/analysis-result/transformer/capabilitySignalsTransformer.js +5 -2
- package/lib/private/data/analysis-result/transformer/organizationCategoryTransformer.js +4 -0
- package/lib/private/data/common/apiClient.js +30 -2
- package/lib/private/data/data-holder/defaultDataHolderService.js +8 -0
- package/lib/private/data/data-holder/transformer/dataHolderProtectionStateTransformer.js +4 -0
- package/lib/private/data/organization-analysis/defaultOrganizationAnalysisService.js +6 -0
- package/lib/private/data/organization-analysis/transformer/organizationAnalysisDomainResolutionTransformer.js +25 -0
- package/lib/private/data/organization-analysis/transformer/organizationAnalysisTransformer.js +6 -0
- package/lib/private/data/virtual-presence/transformer/virtualPresenceTransformer.js +8 -0
- package/lib/private/domain/entities/analysis-result/analysisResultEntity.js +20 -0
- package/lib/private/domain/entities/data-holder/dataHolderEntity.js +2 -0
- package/lib/private/domain/entities/organization-analysis/organizationAnalysisEntity.js +16 -0
- package/lib/private/domain/use-cases/action/getActionUseCase.js +21 -0
- package/lib/private/domain/use-cases/data-holder/archiveDataHolderUseCase.js +21 -0
- package/lib/private/domain/use-cases/data-holder/unarchiveDataHolderUseCase.js +21 -0
- package/lib/public/defaultSudoPrivacyInteractionClient.js +31 -0
- package/lib/public/typings/analysisResult.js +20 -0
- package/lib/public/typings/dataHolder.js +2 -0
- package/lib/public/typings/organizationAnalysis.js +16 -0
- package/package.json +19 -23
- package/types/gen/graphqlTypes.d.ts +338 -645
- package/types/gen/schema-types.d.ts +525 -0
- package/types/private/data/action/defaultActionService.d.ts +1 -0
- package/types/private/data/analysis-result/defaultAnalysisResultService.d.ts +1 -0
- package/types/private/data/analysis-result/transformer/analysisResultStatusReasonTransformer.d.ts +12 -0
- package/types/private/data/analysis-result/transformer/analysisResultTransformer.d.ts +1 -0
- package/types/private/data/common/apiClient.d.ts +6 -1
- package/types/private/data/data-holder/defaultDataHolderService.d.ts +2 -0
- package/types/private/data/organization-analysis/defaultOrganizationAnalysisService.d.ts +1 -0
- package/types/private/data/organization-analysis/transformer/organizationAnalysisDomainResolutionTransformer.d.ts +12 -0
- package/types/private/data/organization-analysis/transformer/organizationAnalysisTransformer.d.ts +1 -0
- package/types/private/domain/entities/action/actionService.d.ts +11 -0
- package/types/private/domain/entities/analysis-result/analysisResultEntity.d.ts +23 -2
- package/types/private/domain/entities/data-holder/dataHolderEntity.d.ts +2 -0
- package/types/private/domain/entities/data-holder/dataHolderService.d.ts +16 -0
- package/types/private/domain/entities/organization-analysis/organizationAnalysisEntity.d.ts +18 -1
- package/types/private/domain/entities/organization-analysis/organizationAnalysisService.d.ts +8 -1
- package/types/private/domain/entities/virtual-presence/virtualPresenceEntity.d.ts +24 -0
- package/types/private/domain/use-cases/action/getActionUseCase.d.ts +16 -0
- package/types/private/domain/use-cases/data-holder/archiveDataHolderUseCase.d.ts +16 -0
- package/types/private/domain/use-cases/data-holder/unarchiveDataHolderUseCase.d.ts +16 -0
- package/types/public/defaultSudoPrivacyInteractionClient.d.ts +4 -0
- package/types/public/inputs/organizationAnalysis.d.ts +8 -1
- package/types/public/sudoPrivacyInteractionClient.d.ts +27 -0
- package/types/public/typings/analysisResult.d.ts +30 -0
- package/types/public/typings/dataHolder.d.ts +2 -0
- package/types/public/typings/organizationAnalysis.d.ts +18 -1
- package/types/public/typings/virtualPresence.d.ts +25 -0
package/lib/gen/graphqlTypes.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './schema-types';
|
|
1
2
|
export const ActionFieldsFragmentDoc = {
|
|
2
3
|
kind: 'Document',
|
|
3
4
|
definitions: [
|
|
@@ -262,7 +263,7 @@ export const AnalysisResultDataFieldsFragmentDoc = {
|
|
|
262
263
|
},
|
|
263
264
|
{
|
|
264
265
|
kind: 'Field',
|
|
265
|
-
name: { kind: 'Name', value: '
|
|
266
|
+
name: { kind: 'Name', value: 'supportsOptOutOfSale' },
|
|
266
267
|
},
|
|
267
268
|
{
|
|
268
269
|
kind: 'Field',
|
|
@@ -354,6 +355,7 @@ export const AnalysisResultFieldsFragmentDoc = {
|
|
|
354
355
|
name: { kind: 'Name', value: 'dataHolderIdentifier' },
|
|
355
356
|
},
|
|
356
357
|
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
358
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'statusReason' } },
|
|
357
359
|
{
|
|
358
360
|
kind: 'Field',
|
|
359
361
|
name: { kind: 'Name', value: 'lastAnalyzedAtEpochMs' },
|
|
@@ -523,7 +525,7 @@ export const AnalysisResultFieldsFragmentDoc = {
|
|
|
523
525
|
},
|
|
524
526
|
{
|
|
525
527
|
kind: 'Field',
|
|
526
|
-
name: { kind: 'Name', value: '
|
|
528
|
+
name: { kind: 'Name', value: 'supportsOptOutOfSale' },
|
|
527
529
|
},
|
|
528
530
|
{
|
|
529
531
|
kind: 'Field',
|
|
@@ -689,6 +691,7 @@ export const OrganizationAnalysisFieldsFragmentDoc = {
|
|
|
689
691
|
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
690
692
|
{ kind: 'Field', name: { kind: 'Name', value: 'domain' } },
|
|
691
693
|
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
694
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'statusReason' } },
|
|
692
695
|
{
|
|
693
696
|
kind: 'Field',
|
|
694
697
|
name: { kind: 'Name', value: 'lastAnalyzedAtEpochMs' },
|
|
@@ -858,7 +861,7 @@ export const OrganizationAnalysisFieldsFragmentDoc = {
|
|
|
858
861
|
},
|
|
859
862
|
{
|
|
860
863
|
kind: 'Field',
|
|
861
|
-
name: { kind: 'Name', value: '
|
|
864
|
+
name: { kind: 'Name', value: 'supportsOptOutOfSale' },
|
|
862
865
|
},
|
|
863
866
|
{
|
|
864
867
|
kind: 'Field',
|
|
@@ -955,6 +958,26 @@ export const VirtualPresenceFieldsFragmentDoc = {
|
|
|
955
958
|
kind: 'Field',
|
|
956
959
|
name: { kind: 'Name', value: 'lastScanFailureReason' },
|
|
957
960
|
},
|
|
961
|
+
{
|
|
962
|
+
kind: 'Field',
|
|
963
|
+
name: { kind: 'Name', value: 'dataHolderCount' },
|
|
964
|
+
selectionSet: {
|
|
965
|
+
kind: 'SelectionSet',
|
|
966
|
+
selections: [
|
|
967
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'count' } },
|
|
968
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'monitored' } },
|
|
969
|
+
{
|
|
970
|
+
kind: 'Field',
|
|
971
|
+
name: { kind: 'Name', value: 'initiatedActions' },
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
kind: 'Field',
|
|
975
|
+
name: { kind: 'Name', value: 'completedActions' },
|
|
976
|
+
},
|
|
977
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'archived' } },
|
|
978
|
+
],
|
|
979
|
+
},
|
|
980
|
+
},
|
|
958
981
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
959
982
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
960
983
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
|
|
@@ -1035,6 +1058,26 @@ export const ConnectVirtualPresenceDocument = {
|
|
|
1035
1058
|
kind: 'Field',
|
|
1036
1059
|
name: { kind: 'Name', value: 'lastScanFailureReason' },
|
|
1037
1060
|
},
|
|
1061
|
+
{
|
|
1062
|
+
kind: 'Field',
|
|
1063
|
+
name: { kind: 'Name', value: 'dataHolderCount' },
|
|
1064
|
+
selectionSet: {
|
|
1065
|
+
kind: 'SelectionSet',
|
|
1066
|
+
selections: [
|
|
1067
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'count' } },
|
|
1068
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'monitored' } },
|
|
1069
|
+
{
|
|
1070
|
+
kind: 'Field',
|
|
1071
|
+
name: { kind: 'Name', value: 'initiatedActions' },
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
kind: 'Field',
|
|
1075
|
+
name: { kind: 'Name', value: 'completedActions' },
|
|
1076
|
+
},
|
|
1077
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'archived' } },
|
|
1078
|
+
],
|
|
1079
|
+
},
|
|
1080
|
+
},
|
|
1038
1081
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
1039
1082
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
1040
1083
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
|
|
@@ -1115,6 +1158,26 @@ export const DisconnectVirtualPresenceDocument = {
|
|
|
1115
1158
|
kind: 'Field',
|
|
1116
1159
|
name: { kind: 'Name', value: 'lastScanFailureReason' },
|
|
1117
1160
|
},
|
|
1161
|
+
{
|
|
1162
|
+
kind: 'Field',
|
|
1163
|
+
name: { kind: 'Name', value: 'dataHolderCount' },
|
|
1164
|
+
selectionSet: {
|
|
1165
|
+
kind: 'SelectionSet',
|
|
1166
|
+
selections: [
|
|
1167
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'count' } },
|
|
1168
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'monitored' } },
|
|
1169
|
+
{
|
|
1170
|
+
kind: 'Field',
|
|
1171
|
+
name: { kind: 'Name', value: 'initiatedActions' },
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
kind: 'Field',
|
|
1175
|
+
name: { kind: 'Name', value: 'completedActions' },
|
|
1176
|
+
},
|
|
1177
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'archived' } },
|
|
1178
|
+
],
|
|
1179
|
+
},
|
|
1180
|
+
},
|
|
1118
1181
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
1119
1182
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
1120
1183
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
|
|
@@ -1214,6 +1277,26 @@ export const RescanVirtualPresenceDocument = {
|
|
|
1214
1277
|
kind: 'Field',
|
|
1215
1278
|
name: { kind: 'Name', value: 'lastScanFailureReason' },
|
|
1216
1279
|
},
|
|
1280
|
+
{
|
|
1281
|
+
kind: 'Field',
|
|
1282
|
+
name: { kind: 'Name', value: 'dataHolderCount' },
|
|
1283
|
+
selectionSet: {
|
|
1284
|
+
kind: 'SelectionSet',
|
|
1285
|
+
selections: [
|
|
1286
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'count' } },
|
|
1287
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'monitored' } },
|
|
1288
|
+
{
|
|
1289
|
+
kind: 'Field',
|
|
1290
|
+
name: { kind: 'Name', value: 'initiatedActions' },
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
kind: 'Field',
|
|
1294
|
+
name: { kind: 'Name', value: 'completedActions' },
|
|
1295
|
+
},
|
|
1296
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'archived' } },
|
|
1297
|
+
],
|
|
1298
|
+
},
|
|
1299
|
+
},
|
|
1217
1300
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
1218
1301
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
1219
1302
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
|
|
@@ -1499,6 +1582,156 @@ export const ConfirmActionOutcomeDocument = {
|
|
|
1499
1582
|
},
|
|
1500
1583
|
],
|
|
1501
1584
|
};
|
|
1585
|
+
export const ArchiveDataHolderDocument = {
|
|
1586
|
+
kind: 'Document',
|
|
1587
|
+
definitions: [
|
|
1588
|
+
{
|
|
1589
|
+
kind: 'OperationDefinition',
|
|
1590
|
+
operation: 'mutation',
|
|
1591
|
+
name: { kind: 'Name', value: 'ArchiveDataHolder' },
|
|
1592
|
+
variableDefinitions: [
|
|
1593
|
+
{
|
|
1594
|
+
kind: 'VariableDefinition',
|
|
1595
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
1596
|
+
type: {
|
|
1597
|
+
kind: 'NonNullType',
|
|
1598
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
1599
|
+
},
|
|
1600
|
+
},
|
|
1601
|
+
],
|
|
1602
|
+
selectionSet: {
|
|
1603
|
+
kind: 'SelectionSet',
|
|
1604
|
+
selections: [
|
|
1605
|
+
{
|
|
1606
|
+
kind: 'Field',
|
|
1607
|
+
name: { kind: 'Name', value: 'archiveDataHolder' },
|
|
1608
|
+
arguments: [
|
|
1609
|
+
{
|
|
1610
|
+
kind: 'Argument',
|
|
1611
|
+
name: { kind: 'Name', value: 'id' },
|
|
1612
|
+
value: {
|
|
1613
|
+
kind: 'Variable',
|
|
1614
|
+
name: { kind: 'Name', value: 'id' },
|
|
1615
|
+
},
|
|
1616
|
+
},
|
|
1617
|
+
],
|
|
1618
|
+
selectionSet: {
|
|
1619
|
+
kind: 'SelectionSet',
|
|
1620
|
+
selections: [
|
|
1621
|
+
{
|
|
1622
|
+
kind: 'FragmentSpread',
|
|
1623
|
+
name: { kind: 'Name', value: 'DataHolderFields' },
|
|
1624
|
+
},
|
|
1625
|
+
],
|
|
1626
|
+
},
|
|
1627
|
+
},
|
|
1628
|
+
],
|
|
1629
|
+
},
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
kind: 'FragmentDefinition',
|
|
1633
|
+
name: { kind: 'Name', value: 'DataHolderFields' },
|
|
1634
|
+
typeCondition: {
|
|
1635
|
+
kind: 'NamedType',
|
|
1636
|
+
name: { kind: 'Name', value: 'DataHolder' },
|
|
1637
|
+
},
|
|
1638
|
+
selectionSet: {
|
|
1639
|
+
kind: 'SelectionSet',
|
|
1640
|
+
selections: [
|
|
1641
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
1642
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'virtualPresenceId' } },
|
|
1643
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'domainName' } },
|
|
1644
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
1645
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'protectionState' } },
|
|
1646
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'complianceConcern' } },
|
|
1647
|
+
{
|
|
1648
|
+
kind: 'Field',
|
|
1649
|
+
name: { kind: 'Name', value: 'mostRecentInteractionEpochMs' },
|
|
1650
|
+
},
|
|
1651
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
1652
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
1653
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
|
|
1654
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAtEpochMs' } },
|
|
1655
|
+
],
|
|
1656
|
+
},
|
|
1657
|
+
},
|
|
1658
|
+
],
|
|
1659
|
+
};
|
|
1660
|
+
export const UnarchiveDataHolderDocument = {
|
|
1661
|
+
kind: 'Document',
|
|
1662
|
+
definitions: [
|
|
1663
|
+
{
|
|
1664
|
+
kind: 'OperationDefinition',
|
|
1665
|
+
operation: 'mutation',
|
|
1666
|
+
name: { kind: 'Name', value: 'UnarchiveDataHolder' },
|
|
1667
|
+
variableDefinitions: [
|
|
1668
|
+
{
|
|
1669
|
+
kind: 'VariableDefinition',
|
|
1670
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
1671
|
+
type: {
|
|
1672
|
+
kind: 'NonNullType',
|
|
1673
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
1674
|
+
},
|
|
1675
|
+
},
|
|
1676
|
+
],
|
|
1677
|
+
selectionSet: {
|
|
1678
|
+
kind: 'SelectionSet',
|
|
1679
|
+
selections: [
|
|
1680
|
+
{
|
|
1681
|
+
kind: 'Field',
|
|
1682
|
+
name: { kind: 'Name', value: 'unarchiveDataHolder' },
|
|
1683
|
+
arguments: [
|
|
1684
|
+
{
|
|
1685
|
+
kind: 'Argument',
|
|
1686
|
+
name: { kind: 'Name', value: 'id' },
|
|
1687
|
+
value: {
|
|
1688
|
+
kind: 'Variable',
|
|
1689
|
+
name: { kind: 'Name', value: 'id' },
|
|
1690
|
+
},
|
|
1691
|
+
},
|
|
1692
|
+
],
|
|
1693
|
+
selectionSet: {
|
|
1694
|
+
kind: 'SelectionSet',
|
|
1695
|
+
selections: [
|
|
1696
|
+
{
|
|
1697
|
+
kind: 'FragmentSpread',
|
|
1698
|
+
name: { kind: 'Name', value: 'DataHolderFields' },
|
|
1699
|
+
},
|
|
1700
|
+
],
|
|
1701
|
+
},
|
|
1702
|
+
},
|
|
1703
|
+
],
|
|
1704
|
+
},
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
kind: 'FragmentDefinition',
|
|
1708
|
+
name: { kind: 'Name', value: 'DataHolderFields' },
|
|
1709
|
+
typeCondition: {
|
|
1710
|
+
kind: 'NamedType',
|
|
1711
|
+
name: { kind: 'Name', value: 'DataHolder' },
|
|
1712
|
+
},
|
|
1713
|
+
selectionSet: {
|
|
1714
|
+
kind: 'SelectionSet',
|
|
1715
|
+
selections: [
|
|
1716
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
1717
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'virtualPresenceId' } },
|
|
1718
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'domainName' } },
|
|
1719
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
1720
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'protectionState' } },
|
|
1721
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'complianceConcern' } },
|
|
1722
|
+
{
|
|
1723
|
+
kind: 'Field',
|
|
1724
|
+
name: { kind: 'Name', value: 'mostRecentInteractionEpochMs' },
|
|
1725
|
+
},
|
|
1726
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
1727
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
1728
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
|
|
1729
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAtEpochMs' } },
|
|
1730
|
+
],
|
|
1731
|
+
},
|
|
1732
|
+
},
|
|
1733
|
+
],
|
|
1734
|
+
};
|
|
1502
1735
|
export const GetProviderConfigurationDocument = {
|
|
1503
1736
|
kind: 'Document',
|
|
1504
1737
|
definitions: [
|
|
@@ -1605,6 +1838,26 @@ export const ListVirtualPresencesDocument = {
|
|
|
1605
1838
|
kind: 'Field',
|
|
1606
1839
|
name: { kind: 'Name', value: 'lastScanFailureReason' },
|
|
1607
1840
|
},
|
|
1841
|
+
{
|
|
1842
|
+
kind: 'Field',
|
|
1843
|
+
name: { kind: 'Name', value: 'dataHolderCount' },
|
|
1844
|
+
selectionSet: {
|
|
1845
|
+
kind: 'SelectionSet',
|
|
1846
|
+
selections: [
|
|
1847
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'count' } },
|
|
1848
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'monitored' } },
|
|
1849
|
+
{
|
|
1850
|
+
kind: 'Field',
|
|
1851
|
+
name: { kind: 'Name', value: 'initiatedActions' },
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
kind: 'Field',
|
|
1855
|
+
name: { kind: 'Name', value: 'completedActions' },
|
|
1856
|
+
},
|
|
1857
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'archived' } },
|
|
1858
|
+
],
|
|
1859
|
+
},
|
|
1860
|
+
},
|
|
1608
1861
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
1609
1862
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
1610
1863
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
|
|
@@ -2000,7 +2253,7 @@ export const GetAnalysisResultDocument = {
|
|
|
2000
2253
|
},
|
|
2001
2254
|
{
|
|
2002
2255
|
kind: 'Field',
|
|
2003
|
-
name: { kind: 'Name', value: '
|
|
2256
|
+
name: { kind: 'Name', value: 'supportsOptOutOfSale' },
|
|
2004
2257
|
},
|
|
2005
2258
|
{
|
|
2006
2259
|
kind: 'Field',
|
|
@@ -2087,6 +2340,7 @@ export const GetAnalysisResultDocument = {
|
|
|
2087
2340
|
name: { kind: 'Name', value: 'dataHolderIdentifier' },
|
|
2088
2341
|
},
|
|
2089
2342
|
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
2343
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'statusReason' } },
|
|
2090
2344
|
{
|
|
2091
2345
|
kind: 'Field',
|
|
2092
2346
|
name: { kind: 'Name', value: 'lastAnalyzedAtEpochMs' },
|
|
@@ -2137,10 +2391,18 @@ export const GetOrganizationAnalysisDocument = {
|
|
|
2137
2391
|
},
|
|
2138
2392
|
{
|
|
2139
2393
|
kind: 'VariableDefinition',
|
|
2140
|
-
variable: { kind: 'Variable', name: { kind: 'Name', value: '
|
|
2394
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'name' } },
|
|
2395
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
kind: 'VariableDefinition',
|
|
2399
|
+
variable: {
|
|
2400
|
+
kind: 'Variable',
|
|
2401
|
+
name: { kind: 'Name', value: 'options' },
|
|
2402
|
+
},
|
|
2141
2403
|
type: {
|
|
2142
2404
|
kind: 'NamedType',
|
|
2143
|
-
name: { kind: 'Name', value: '
|
|
2405
|
+
name: { kind: 'Name', value: 'OrganizationAnalysisOptions' },
|
|
2144
2406
|
},
|
|
2145
2407
|
},
|
|
2146
2408
|
],
|
|
@@ -2161,10 +2423,18 @@ export const GetOrganizationAnalysisDocument = {
|
|
|
2161
2423
|
},
|
|
2162
2424
|
{
|
|
2163
2425
|
kind: 'Argument',
|
|
2164
|
-
name: { kind: 'Name', value: '
|
|
2426
|
+
name: { kind: 'Name', value: 'name' },
|
|
2427
|
+
value: {
|
|
2428
|
+
kind: 'Variable',
|
|
2429
|
+
name: { kind: 'Name', value: 'name' },
|
|
2430
|
+
},
|
|
2431
|
+
},
|
|
2432
|
+
{
|
|
2433
|
+
kind: 'Argument',
|
|
2434
|
+
name: { kind: 'Name', value: 'options' },
|
|
2165
2435
|
value: {
|
|
2166
2436
|
kind: 'Variable',
|
|
2167
|
-
name: { kind: 'Name', value: '
|
|
2437
|
+
name: { kind: 'Name', value: 'options' },
|
|
2168
2438
|
},
|
|
2169
2439
|
},
|
|
2170
2440
|
],
|
|
@@ -2326,7 +2596,7 @@ export const GetOrganizationAnalysisDocument = {
|
|
|
2326
2596
|
},
|
|
2327
2597
|
{
|
|
2328
2598
|
kind: 'Field',
|
|
2329
|
-
name: { kind: 'Name', value: '
|
|
2599
|
+
name: { kind: 'Name', value: 'supportsOptOutOfSale' },
|
|
2330
2600
|
},
|
|
2331
2601
|
{
|
|
2332
2602
|
kind: 'Field',
|
|
@@ -2409,6 +2679,7 @@ export const GetOrganizationAnalysisDocument = {
|
|
|
2409
2679
|
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
2410
2680
|
{ kind: 'Field', name: { kind: 'Name', value: 'domain' } },
|
|
2411
2681
|
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
2682
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'statusReason' } },
|
|
2412
2683
|
{
|
|
2413
2684
|
kind: 'Field',
|
|
2414
2685
|
name: { kind: 'Name', value: 'lastAnalyzedAtEpochMs' },
|
|
@@ -2671,7 +2942,7 @@ export const ListAnalysisResultsDocument = {
|
|
|
2671
2942
|
},
|
|
2672
2943
|
{
|
|
2673
2944
|
kind: 'Field',
|
|
2674
|
-
name: { kind: 'Name', value: '
|
|
2945
|
+
name: { kind: 'Name', value: 'supportsOptOutOfSale' },
|
|
2675
2946
|
},
|
|
2676
2947
|
{
|
|
2677
2948
|
kind: 'Field',
|
|
@@ -2758,6 +3029,7 @@ export const ListAnalysisResultsDocument = {
|
|
|
2758
3029
|
name: { kind: 'Name', value: 'dataHolderIdentifier' },
|
|
2759
3030
|
},
|
|
2760
3031
|
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
3032
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'statusReason' } },
|
|
2761
3033
|
{
|
|
2762
3034
|
kind: 'Field',
|
|
2763
3035
|
name: { kind: 'Name', value: 'lastAnalyzedAtEpochMs' },
|
|
@@ -3001,6 +3273,141 @@ export const ListAvailableActionsDocument = {
|
|
|
3001
3273
|
},
|
|
3002
3274
|
],
|
|
3003
3275
|
};
|
|
3276
|
+
export const GetActionDocument = {
|
|
3277
|
+
kind: 'Document',
|
|
3278
|
+
definitions: [
|
|
3279
|
+
{
|
|
3280
|
+
kind: 'OperationDefinition',
|
|
3281
|
+
operation: 'query',
|
|
3282
|
+
name: { kind: 'Name', value: 'GetAction' },
|
|
3283
|
+
variableDefinitions: [
|
|
3284
|
+
{
|
|
3285
|
+
kind: 'VariableDefinition',
|
|
3286
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
3287
|
+
type: {
|
|
3288
|
+
kind: 'NonNullType',
|
|
3289
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
3290
|
+
},
|
|
3291
|
+
},
|
|
3292
|
+
],
|
|
3293
|
+
selectionSet: {
|
|
3294
|
+
kind: 'SelectionSet',
|
|
3295
|
+
selections: [
|
|
3296
|
+
{
|
|
3297
|
+
kind: 'Field',
|
|
3298
|
+
name: { kind: 'Name', value: 'getAction' },
|
|
3299
|
+
arguments: [
|
|
3300
|
+
{
|
|
3301
|
+
kind: 'Argument',
|
|
3302
|
+
name: { kind: 'Name', value: 'id' },
|
|
3303
|
+
value: {
|
|
3304
|
+
kind: 'Variable',
|
|
3305
|
+
name: { kind: 'Name', value: 'id' },
|
|
3306
|
+
},
|
|
3307
|
+
},
|
|
3308
|
+
],
|
|
3309
|
+
selectionSet: {
|
|
3310
|
+
kind: 'SelectionSet',
|
|
3311
|
+
selections: [
|
|
3312
|
+
{
|
|
3313
|
+
kind: 'FragmentSpread',
|
|
3314
|
+
name: { kind: 'Name', value: 'ActionFields' },
|
|
3315
|
+
},
|
|
3316
|
+
],
|
|
3317
|
+
},
|
|
3318
|
+
},
|
|
3319
|
+
],
|
|
3320
|
+
},
|
|
3321
|
+
},
|
|
3322
|
+
{
|
|
3323
|
+
kind: 'FragmentDefinition',
|
|
3324
|
+
name: { kind: 'Name', value: 'ActionFields' },
|
|
3325
|
+
typeCondition: {
|
|
3326
|
+
kind: 'NamedType',
|
|
3327
|
+
name: { kind: 'Name', value: 'Action' },
|
|
3328
|
+
},
|
|
3329
|
+
selectionSet: {
|
|
3330
|
+
kind: 'SelectionSet',
|
|
3331
|
+
selections: [
|
|
3332
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
3333
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'virtualPresenceId' } },
|
|
3334
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'dataHolderId' } },
|
|
3335
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'intent' } },
|
|
3336
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'additionalInfo' } },
|
|
3337
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'fulfilmentMethod' } },
|
|
3338
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
3339
|
+
{
|
|
3340
|
+
kind: 'Field',
|
|
3341
|
+
name: { kind: 'Name', value: 'assistedPayload' },
|
|
3342
|
+
selectionSet: {
|
|
3343
|
+
kind: 'SelectionSet',
|
|
3344
|
+
selections: [
|
|
3345
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'toAddress' } },
|
|
3346
|
+
{
|
|
3347
|
+
kind: 'Field',
|
|
3348
|
+
name: { kind: 'Name', value: 'unsubscribeUrl' },
|
|
3349
|
+
},
|
|
3350
|
+
{
|
|
3351
|
+
kind: 'Field',
|
|
3352
|
+
name: { kind: 'Name', value: 'unsubscribeMailto' },
|
|
3353
|
+
},
|
|
3354
|
+
{
|
|
3355
|
+
kind: 'Field',
|
|
3356
|
+
name: { kind: 'Name', value: 'contact' },
|
|
3357
|
+
selectionSet: {
|
|
3358
|
+
kind: 'SelectionSet',
|
|
3359
|
+
selections: [
|
|
3360
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'email' } },
|
|
3361
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'phone' } },
|
|
3362
|
+
{
|
|
3363
|
+
kind: 'Field',
|
|
3364
|
+
name: { kind: 'Name', value: 'address' },
|
|
3365
|
+
},
|
|
3366
|
+
],
|
|
3367
|
+
},
|
|
3368
|
+
},
|
|
3369
|
+
{
|
|
3370
|
+
kind: 'Field',
|
|
3371
|
+
name: { kind: 'Name', value: 'jurisdiction' },
|
|
3372
|
+
},
|
|
3373
|
+
{
|
|
3374
|
+
kind: 'Field',
|
|
3375
|
+
name: { kind: 'Name', value: 'instructions' },
|
|
3376
|
+
},
|
|
3377
|
+
{
|
|
3378
|
+
kind: 'Field',
|
|
3379
|
+
name: { kind: 'Name', value: 'emailTemplate' },
|
|
3380
|
+
selectionSet: {
|
|
3381
|
+
kind: 'SelectionSet',
|
|
3382
|
+
selections: [
|
|
3383
|
+
{
|
|
3384
|
+
kind: 'Field',
|
|
3385
|
+
name: { kind: 'Name', value: 'subject' },
|
|
3386
|
+
},
|
|
3387
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'body' } },
|
|
3388
|
+
],
|
|
3389
|
+
},
|
|
3390
|
+
},
|
|
3391
|
+
],
|
|
3392
|
+
},
|
|
3393
|
+
},
|
|
3394
|
+
{
|
|
3395
|
+
kind: 'Field',
|
|
3396
|
+
name: { kind: 'Name', value: 'initiatedAtEpochMs' },
|
|
3397
|
+
},
|
|
3398
|
+
{
|
|
3399
|
+
kind: 'Field',
|
|
3400
|
+
name: { kind: 'Name', value: 'completedAtEpochMs' },
|
|
3401
|
+
},
|
|
3402
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
3403
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
3404
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
|
|
3405
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAtEpochMs' } },
|
|
3406
|
+
],
|
|
3407
|
+
},
|
|
3408
|
+
},
|
|
3409
|
+
],
|
|
3410
|
+
};
|
|
3004
3411
|
export const OnVirtualPresenceUpdateDocument = {
|
|
3005
3412
|
kind: 'Document',
|
|
3006
3413
|
definitions: [
|
|
@@ -3072,6 +3479,26 @@ export const OnVirtualPresenceUpdateDocument = {
|
|
|
3072
3479
|
kind: 'Field',
|
|
3073
3480
|
name: { kind: 'Name', value: 'lastScanFailureReason' },
|
|
3074
3481
|
},
|
|
3482
|
+
{
|
|
3483
|
+
kind: 'Field',
|
|
3484
|
+
name: { kind: 'Name', value: 'dataHolderCount' },
|
|
3485
|
+
selectionSet: {
|
|
3486
|
+
kind: 'SelectionSet',
|
|
3487
|
+
selections: [
|
|
3488
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'count' } },
|
|
3489
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'monitored' } },
|
|
3490
|
+
{
|
|
3491
|
+
kind: 'Field',
|
|
3492
|
+
name: { kind: 'Name', value: 'initiatedActions' },
|
|
3493
|
+
},
|
|
3494
|
+
{
|
|
3495
|
+
kind: 'Field',
|
|
3496
|
+
name: { kind: 'Name', value: 'completedActions' },
|
|
3497
|
+
},
|
|
3498
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'archived' } },
|
|
3499
|
+
],
|
|
3500
|
+
},
|
|
3501
|
+
},
|
|
3075
3502
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
3076
3503
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
3077
3504
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
|
|
@@ -3225,6 +3652,10 @@ export const OnAnalysisResultUpdateDocument = {
|
|
|
3225
3652
|
name: { kind: 'Name', value: 'dataHolderIdentifier' },
|
|
3226
3653
|
},
|
|
3227
3654
|
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
3655
|
+
{
|
|
3656
|
+
kind: 'Field',
|
|
3657
|
+
name: { kind: 'Name', value: 'statusReason' },
|
|
3658
|
+
},
|
|
3228
3659
|
{
|
|
3229
3660
|
kind: 'Field',
|
|
3230
3661
|
name: { kind: 'Name', value: 'lastAnalyzedAtEpochMs' },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -32,6 +32,13 @@ export class DefaultActionService {
|
|
|
32
32
|
});
|
|
33
33
|
return this.actionTransformer.fromGraphQLToEntity(result);
|
|
34
34
|
}
|
|
35
|
+
async get(id) {
|
|
36
|
+
const result = await this.appSync.getAction(id);
|
|
37
|
+
if (!result) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
return this.actionTransformer.fromGraphQLToEntity(result);
|
|
41
|
+
}
|
|
35
42
|
async confirmOutcome(id) {
|
|
36
43
|
const result = await this.appSync.confirmActionOutcome(id);
|
|
37
44
|
return this.actionTransformer.fromGraphQLToEntity(result);
|
|
@@ -5,17 +5,21 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { ConnectionState, } from '../../../public/typings/subscription';
|
|
7
7
|
import { AnalysisResultSubscriptionManager } from './analysisResultSubscriptionManager';
|
|
8
|
+
import { AnalysisResultStatusReasonTransformer } from './transformer/analysisResultStatusReasonTransformer';
|
|
8
9
|
import { AnalysisResultStatusTransformer } from './transformer/analysisResultStatusTransformer';
|
|
9
10
|
import { AnalysisResultTransformer } from './transformer/analysisResultTransformer';
|
|
10
11
|
export class DefaultAnalysisResultService {
|
|
11
12
|
appSync;
|
|
12
13
|
analysisResultTransformer;
|
|
13
14
|
analysisResultStatusTransformer;
|
|
15
|
+
analysisResultStatusReasonTransformer;
|
|
14
16
|
subscriptionManager;
|
|
15
17
|
constructor(appSync) {
|
|
16
18
|
this.appSync = appSync;
|
|
17
19
|
this.analysisResultTransformer = new AnalysisResultTransformer();
|
|
18
20
|
this.analysisResultStatusTransformer = new AnalysisResultStatusTransformer();
|
|
21
|
+
this.analysisResultStatusReasonTransformer =
|
|
22
|
+
new AnalysisResultStatusReasonTransformer();
|
|
19
23
|
this.subscriptionManager = new AnalysisResultSubscriptionManager();
|
|
20
24
|
}
|
|
21
25
|
async get(id) {
|
|
@@ -59,11 +63,13 @@ export class DefaultAnalysisResultService {
|
|
|
59
63
|
const item = result.data?.onAnalysisResultUpdate;
|
|
60
64
|
if (item) {
|
|
61
65
|
const statusEntity = this.analysisResultStatusTransformer.fromGraphQLToEntity(item.status);
|
|
66
|
+
const statusReason = this.analysisResultStatusReasonTransformer.fromEntityToAPI(this.analysisResultStatusReasonTransformer.fromGraphQLToEntity(item.statusReason));
|
|
62
67
|
const update = {
|
|
63
68
|
id: item.id,
|
|
64
69
|
virtualPresenceId: item.virtualPresenceId,
|
|
65
70
|
dataHolderIdentifier: item.dataHolderIdentifier,
|
|
66
71
|
status: this.analysisResultStatusTransformer.fromEntityToAPI(statusEntity),
|
|
72
|
+
...(statusReason !== undefined && { statusReason }),
|
|
67
73
|
lastAnalyzedAt: new Date(item.lastAnalyzedAtEpochMs),
|
|
68
74
|
owner: item.owner,
|
|
69
75
|
version: item.version,
|