@sudoplatform/sudo-privacy-interaction 2.4.0 → 2.6.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 +356 -7
- package/cjs/private/data/action/defaultActionService.js +8 -0
- package/cjs/private/data/action/transformer/actionIntentTransformer.js +32 -0
- package/cjs/private/data/action/transformer/availableActionTransformer.js +8 -0
- package/cjs/private/data/analysis-result/transformer/capabilitySignalsTransformer.js +2 -0
- package/cjs/private/data/common/apiClient.js +21 -0
- package/cjs/private/data/data-holder/transformer/dataHolderTransformer.js +8 -1
- package/cjs/private/data/virtual-presence/defaultVirtualPresenceService.js +4 -0
- package/cjs/private/domain/entities/action/actionEntity.js +14 -0
- package/cjs/private/domain/use-cases/action/listActionsForDataHolderUseCase.js +26 -0
- package/cjs/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithRefreshTokenUseCase.js +4 -1
- package/cjs/private/domain/use-cases/virtual-presence/refreshVirtualPresenceStateUseCase.js +25 -0
- package/cjs/public/defaultSudoPrivacyInteractionClient.js +24 -1
- package/cjs/public/typings/action.js +14 -0
- 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 +77 -29
- package/docs/enums/ActionFulfilmentMethod.html +3 -3
- package/docs/enums/ActionIntent.html +31 -7
- package/docs/enums/ActionOrigin.html +5 -5
- package/docs/enums/ActionStatus.html +9 -9
- package/docs/enums/DataHolderProtectionState.html +6 -6
- package/docs/enums/OrganizationCategory.html +31 -31
- package/docs/enums/RelationshipProvider.html +3 -3
- package/docs/hierarchy.html +7 -6
- package/docs/interfaces/Action.html +15 -15
- package/docs/interfaces/ActionContact.html +4 -4
- package/docs/interfaces/AssistedEmailTemplate.html +3 -3
- package/docs/interfaces/AssistedPayload.html +8 -8
- package/docs/interfaces/AvailableAction.html +20 -9
- package/docs/interfaces/CapabilitySignals.html +20 -12
- package/docs/interfaces/ConnectVirtualPresenceWithRefreshTokenInput.html +36 -21
- package/docs/interfaces/DataHolder.html +62 -42
- package/docs/interfaces/DataHolderScanSummary.html +14 -14
- package/docs/interfaces/InitiateActionInput.html +4 -4
- package/docs/interfaces/ListActionsForDataHolderInput.html +85 -0
- package/docs/interfaces/ListAnalysisResultsInput.html +1 -1
- package/docs/interfaces/ListAvailableActionsInput.html +14 -4
- package/docs/interfaces/ListDataHolderScanSummariesInput.html +1 -1
- package/docs/interfaces/ListDataHoldersInput.html +1 -1
- package/docs/interfaces/ListVirtualPresencesInput.html +2 -2
- package/docs/interfaces/OrganizationIdentity.html +5 -5
- package/docs/interfaces/Pagination.html +2 -1
- package/docs/interfaces/RescanVirtualPresenceInput.html +3 -3
- package/docs/interfaces/RiskIndicators.html +8 -8
- package/docs/interfaces/ScanOptions.html +6 -6
- package/docs/interfaces/SudoPrivacyInteractionClient.html +75 -29
- package/docs/modules.html +2 -2
- package/docs/types/SudoPrivacyInteractionClientOptions.html +2 -2
- package/lib/gen/graphqlTypes.js +355 -6
- package/lib/private/data/action/defaultActionService.js +8 -0
- package/lib/private/data/action/transformer/actionIntentTransformer.js +32 -0
- package/lib/private/data/action/transformer/availableActionTransformer.js +8 -0
- package/lib/private/data/analysis-result/transformer/capabilitySignalsTransformer.js +2 -0
- package/lib/private/data/common/apiClient.js +22 -1
- package/lib/private/data/data-holder/transformer/dataHolderTransformer.js +8 -1
- package/lib/private/data/virtual-presence/defaultVirtualPresenceService.js +4 -0
- package/lib/private/domain/entities/action/actionEntity.js +14 -0
- package/lib/private/domain/use-cases/action/listActionsForDataHolderUseCase.js +22 -0
- package/lib/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithRefreshTokenUseCase.js +4 -1
- package/lib/private/domain/use-cases/virtual-presence/refreshVirtualPresenceStateUseCase.js +21 -0
- package/lib/public/defaultSudoPrivacyInteractionClient.js +24 -1
- package/lib/public/typings/action.js +14 -0
- package/package.json +6 -1
- package/types/gen/graphqlTypes.d.ts +90 -8
- package/types/gen/schema-types.d.ts +41 -5
- package/types/private/data/action/defaultActionService.d.ts +2 -1
- package/types/private/data/action/transformer/availableActionTransformer.d.ts +1 -0
- package/types/private/data/common/apiClient.d.ts +8 -1
- package/types/private/data/virtual-presence/defaultVirtualPresenceService.d.ts +1 -0
- package/types/private/domain/entities/action/actionEntity.d.ts +18 -0
- package/types/private/domain/entities/action/actionService.d.ts +36 -0
- package/types/private/domain/entities/analysis-result/analysisResultEntity.d.ts +2 -0
- package/types/private/domain/entities/data-holder/dataHolderEntity.d.ts +5 -1
- package/types/private/domain/entities/virtual-presence/virtualPresenceService.d.ts +13 -3
- package/types/private/domain/use-cases/action/listActionsForDataHolderUseCase.d.ts +16 -0
- package/types/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithRefreshTokenUseCase.d.ts +2 -0
- package/types/private/domain/use-cases/virtual-presence/refreshVirtualPresenceStateUseCase.d.ts +16 -0
- package/types/public/defaultSudoPrivacyInteractionClient.d.ts +3 -1
- package/types/public/inputs/action.d.ts +16 -0
- package/types/public/inputs/virtualPresence.d.ts +10 -1
- package/types/public/sudoPrivacyInteractionClient.d.ts +23 -1
- package/types/public/typings/action.d.ts +19 -0
- package/types/public/typings/analysisResult.d.ts +2 -0
- package/types/public/typings/dataHolder.d.ts +9 -1
package/cjs/gen/graphqlTypes.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
3
|
+
exports.OnActionStatusUpdateDocument = exports.OnAnalysisResultUpdateDocument = exports.OnDataHoldersUpdateDocument = exports.OnVirtualPresenceUpdateDocument = exports.GetActionDocument = exports.ListActionsForDataHolderDocument = 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.RefreshVirtualPresenceStateDocument = 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
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
tslib_1.__exportStar(require("./schema-types"), exports);
|
|
6
6
|
exports.ActionFieldsFragmentDoc = {
|
|
@@ -114,6 +114,7 @@ exports.AvailableActionFieldsFragmentDoc = {
|
|
|
114
114
|
{ kind: 'Field', name: { kind: 'Name', value: 'origin' } },
|
|
115
115
|
{ kind: 'Field', name: { kind: 'Name', value: 'title' } },
|
|
116
116
|
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
117
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
117
118
|
],
|
|
118
119
|
},
|
|
119
120
|
},
|
|
@@ -277,6 +278,10 @@ exports.AnalysisResultDataFieldsFragmentDoc = {
|
|
|
277
278
|
kind: 'Field',
|
|
278
279
|
name: { kind: 'Name', value: 'supportsTwoFactorAuth' },
|
|
279
280
|
},
|
|
281
|
+
{
|
|
282
|
+
kind: 'Field',
|
|
283
|
+
name: { kind: 'Name', value: 'supportsPasskeys' },
|
|
284
|
+
},
|
|
280
285
|
],
|
|
281
286
|
},
|
|
282
287
|
},
|
|
@@ -539,6 +544,10 @@ exports.AnalysisResultFieldsFragmentDoc = {
|
|
|
539
544
|
kind: 'Field',
|
|
540
545
|
name: { kind: 'Name', value: 'supportsTwoFactorAuth' },
|
|
541
546
|
},
|
|
547
|
+
{
|
|
548
|
+
kind: 'Field',
|
|
549
|
+
name: { kind: 'Name', value: 'supportsPasskeys' },
|
|
550
|
+
},
|
|
542
551
|
],
|
|
543
552
|
},
|
|
544
553
|
},
|
|
@@ -622,7 +631,11 @@ exports.DataHolderFieldsFragmentDoc = {
|
|
|
622
631
|
{ kind: 'Field', name: { kind: 'Name', value: 'complianceConcern' } },
|
|
623
632
|
{
|
|
624
633
|
kind: 'Field',
|
|
625
|
-
name: { kind: 'Name', value: '
|
|
634
|
+
name: { kind: 'Name', value: 'mostRecentInboundContactEpochMs' },
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
kind: 'Field',
|
|
638
|
+
name: { kind: 'Name', value: 'firstInboundContactEpochMs' },
|
|
626
639
|
},
|
|
627
640
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
628
641
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
@@ -875,6 +888,10 @@ exports.OrganizationAnalysisFieldsFragmentDoc = {
|
|
|
875
888
|
kind: 'Field',
|
|
876
889
|
name: { kind: 'Name', value: 'supportsTwoFactorAuth' },
|
|
877
890
|
},
|
|
891
|
+
{
|
|
892
|
+
kind: 'Field',
|
|
893
|
+
name: { kind: 'Name', value: 'supportsPasskeys' },
|
|
894
|
+
},
|
|
878
895
|
],
|
|
879
896
|
},
|
|
880
897
|
},
|
|
@@ -1310,6 +1327,106 @@ exports.RescanVirtualPresenceDocument = {
|
|
|
1310
1327
|
},
|
|
1311
1328
|
],
|
|
1312
1329
|
};
|
|
1330
|
+
exports.RefreshVirtualPresenceStateDocument = {
|
|
1331
|
+
kind: 'Document',
|
|
1332
|
+
definitions: [
|
|
1333
|
+
{
|
|
1334
|
+
kind: 'OperationDefinition',
|
|
1335
|
+
operation: 'mutation',
|
|
1336
|
+
name: { kind: 'Name', value: 'RefreshVirtualPresenceState' },
|
|
1337
|
+
variableDefinitions: [
|
|
1338
|
+
{
|
|
1339
|
+
kind: 'VariableDefinition',
|
|
1340
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
1341
|
+
type: {
|
|
1342
|
+
kind: 'NonNullType',
|
|
1343
|
+
type: {
|
|
1344
|
+
kind: 'NamedType',
|
|
1345
|
+
name: { kind: 'Name', value: 'String' },
|
|
1346
|
+
},
|
|
1347
|
+
},
|
|
1348
|
+
},
|
|
1349
|
+
],
|
|
1350
|
+
selectionSet: {
|
|
1351
|
+
kind: 'SelectionSet',
|
|
1352
|
+
selections: [
|
|
1353
|
+
{
|
|
1354
|
+
kind: 'Field',
|
|
1355
|
+
name: { kind: 'Name', value: 'refreshVirtualPresenceState' },
|
|
1356
|
+
arguments: [
|
|
1357
|
+
{
|
|
1358
|
+
kind: 'Argument',
|
|
1359
|
+
name: { kind: 'Name', value: 'id' },
|
|
1360
|
+
value: {
|
|
1361
|
+
kind: 'Variable',
|
|
1362
|
+
name: { kind: 'Name', value: 'id' },
|
|
1363
|
+
},
|
|
1364
|
+
},
|
|
1365
|
+
],
|
|
1366
|
+
selectionSet: {
|
|
1367
|
+
kind: 'SelectionSet',
|
|
1368
|
+
selections: [
|
|
1369
|
+
{
|
|
1370
|
+
kind: 'FragmentSpread',
|
|
1371
|
+
name: { kind: 'Name', value: 'VirtualPresenceFields' },
|
|
1372
|
+
},
|
|
1373
|
+
],
|
|
1374
|
+
},
|
|
1375
|
+
},
|
|
1376
|
+
],
|
|
1377
|
+
},
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
kind: 'FragmentDefinition',
|
|
1381
|
+
name: { kind: 'Name', value: 'VirtualPresenceFields' },
|
|
1382
|
+
typeCondition: {
|
|
1383
|
+
kind: 'NamedType',
|
|
1384
|
+
name: { kind: 'Name', value: 'VirtualPresence' },
|
|
1385
|
+
},
|
|
1386
|
+
selectionSet: {
|
|
1387
|
+
kind: 'SelectionSet',
|
|
1388
|
+
selections: [
|
|
1389
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
1390
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'providerType' } },
|
|
1391
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'identifier' } },
|
|
1392
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'state' } },
|
|
1393
|
+
{
|
|
1394
|
+
kind: 'Field',
|
|
1395
|
+
name: { kind: 'Name', value: 'lastScannedAtEpochMs' },
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
kind: 'Field',
|
|
1399
|
+
name: { kind: 'Name', value: 'lastScanFailureReason' },
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
kind: 'Field',
|
|
1403
|
+
name: { kind: 'Name', value: 'dataHolderCount' },
|
|
1404
|
+
selectionSet: {
|
|
1405
|
+
kind: 'SelectionSet',
|
|
1406
|
+
selections: [
|
|
1407
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'count' } },
|
|
1408
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'monitored' } },
|
|
1409
|
+
{
|
|
1410
|
+
kind: 'Field',
|
|
1411
|
+
name: { kind: 'Name', value: 'initiatedActions' },
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
kind: 'Field',
|
|
1415
|
+
name: { kind: 'Name', value: 'completedActions' },
|
|
1416
|
+
},
|
|
1417
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'archived' } },
|
|
1418
|
+
],
|
|
1419
|
+
},
|
|
1420
|
+
},
|
|
1421
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
1422
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
1423
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
|
|
1424
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAtEpochMs' } },
|
|
1425
|
+
],
|
|
1426
|
+
},
|
|
1427
|
+
},
|
|
1428
|
+
],
|
|
1429
|
+
};
|
|
1313
1430
|
exports.InitiateActionDocument = {
|
|
1314
1431
|
kind: 'Document',
|
|
1315
1432
|
definitions: [
|
|
@@ -1650,7 +1767,11 @@ exports.ArchiveDataHolderDocument = {
|
|
|
1650
1767
|
{ kind: 'Field', name: { kind: 'Name', value: 'complianceConcern' } },
|
|
1651
1768
|
{
|
|
1652
1769
|
kind: 'Field',
|
|
1653
|
-
name: { kind: 'Name', value: '
|
|
1770
|
+
name: { kind: 'Name', value: 'mostRecentInboundContactEpochMs' },
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
kind: 'Field',
|
|
1774
|
+
name: { kind: 'Name', value: 'firstInboundContactEpochMs' },
|
|
1654
1775
|
},
|
|
1655
1776
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
1656
1777
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
@@ -1725,7 +1846,11 @@ exports.UnarchiveDataHolderDocument = {
|
|
|
1725
1846
|
{ kind: 'Field', name: { kind: 'Name', value: 'complianceConcern' } },
|
|
1726
1847
|
{
|
|
1727
1848
|
kind: 'Field',
|
|
1728
|
-
name: { kind: 'Name', value: '
|
|
1849
|
+
name: { kind: 'Name', value: 'mostRecentInboundContactEpochMs' },
|
|
1850
|
+
},
|
|
1851
|
+
{
|
|
1852
|
+
kind: 'Field',
|
|
1853
|
+
name: { kind: 'Name', value: 'firstInboundContactEpochMs' },
|
|
1729
1854
|
},
|
|
1730
1855
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
1731
1856
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
@@ -1935,7 +2060,11 @@ exports.GetDataHolderDocument = {
|
|
|
1935
2060
|
{ kind: 'Field', name: { kind: 'Name', value: 'complianceConcern' } },
|
|
1936
2061
|
{
|
|
1937
2062
|
kind: 'Field',
|
|
1938
|
-
name: { kind: 'Name', value: '
|
|
2063
|
+
name: { kind: 'Name', value: 'mostRecentInboundContactEpochMs' },
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
kind: 'Field',
|
|
2067
|
+
name: { kind: 'Name', value: 'firstInboundContactEpochMs' },
|
|
1939
2068
|
},
|
|
1940
2069
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
1941
2070
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
@@ -2055,7 +2184,11 @@ exports.ListDataHoldersDocument = {
|
|
|
2055
2184
|
{ kind: 'Field', name: { kind: 'Name', value: 'complianceConcern' } },
|
|
2056
2185
|
{
|
|
2057
2186
|
kind: 'Field',
|
|
2058
|
-
name: { kind: 'Name', value: '
|
|
2187
|
+
name: { kind: 'Name', value: 'mostRecentInboundContactEpochMs' },
|
|
2188
|
+
},
|
|
2189
|
+
{
|
|
2190
|
+
kind: 'Field',
|
|
2191
|
+
name: { kind: 'Name', value: 'firstInboundContactEpochMs' },
|
|
2059
2192
|
},
|
|
2060
2193
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
2061
2194
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
@@ -2267,6 +2400,10 @@ exports.GetAnalysisResultDocument = {
|
|
|
2267
2400
|
kind: 'Field',
|
|
2268
2401
|
name: { kind: 'Name', value: 'supportsTwoFactorAuth' },
|
|
2269
2402
|
},
|
|
2403
|
+
{
|
|
2404
|
+
kind: 'Field',
|
|
2405
|
+
name: { kind: 'Name', value: 'supportsPasskeys' },
|
|
2406
|
+
},
|
|
2270
2407
|
],
|
|
2271
2408
|
},
|
|
2272
2409
|
},
|
|
@@ -2610,6 +2747,10 @@ exports.GetOrganizationAnalysisDocument = {
|
|
|
2610
2747
|
kind: 'Field',
|
|
2611
2748
|
name: { kind: 'Name', value: 'supportsTwoFactorAuth' },
|
|
2612
2749
|
},
|
|
2750
|
+
{
|
|
2751
|
+
kind: 'Field',
|
|
2752
|
+
name: { kind: 'Name', value: 'supportsPasskeys' },
|
|
2753
|
+
},
|
|
2613
2754
|
],
|
|
2614
2755
|
},
|
|
2615
2756
|
},
|
|
@@ -2956,6 +3097,10 @@ exports.ListAnalysisResultsDocument = {
|
|
|
2956
3097
|
kind: 'Field',
|
|
2957
3098
|
name: { kind: 'Name', value: 'supportsTwoFactorAuth' },
|
|
2958
3099
|
},
|
|
3100
|
+
{
|
|
3101
|
+
kind: 'Field',
|
|
3102
|
+
name: { kind: 'Name', value: 'supportsPasskeys' },
|
|
3103
|
+
},
|
|
2959
3104
|
],
|
|
2960
3105
|
},
|
|
2961
3106
|
},
|
|
@@ -3216,6 +3361,14 @@ exports.ListAvailableActionsDocument = {
|
|
|
3216
3361
|
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
3217
3362
|
},
|
|
3218
3363
|
},
|
|
3364
|
+
{
|
|
3365
|
+
kind: 'VariableDefinition',
|
|
3366
|
+
variable: {
|
|
3367
|
+
kind: 'Variable',
|
|
3368
|
+
name: { kind: 'Name', value: 'includeCompleted' },
|
|
3369
|
+
},
|
|
3370
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Boolean' } },
|
|
3371
|
+
},
|
|
3219
3372
|
],
|
|
3220
3373
|
selectionSet: {
|
|
3221
3374
|
kind: 'SelectionSet',
|
|
@@ -3232,6 +3385,14 @@ exports.ListAvailableActionsDocument = {
|
|
|
3232
3385
|
name: { kind: 'Name', value: 'dataHolderId' },
|
|
3233
3386
|
},
|
|
3234
3387
|
},
|
|
3388
|
+
{
|
|
3389
|
+
kind: 'Argument',
|
|
3390
|
+
name: { kind: 'Name', value: 'includeCompleted' },
|
|
3391
|
+
value: {
|
|
3392
|
+
kind: 'Variable',
|
|
3393
|
+
name: { kind: 'Name', value: 'includeCompleted' },
|
|
3394
|
+
},
|
|
3395
|
+
},
|
|
3235
3396
|
],
|
|
3236
3397
|
selectionSet: {
|
|
3237
3398
|
kind: 'SelectionSet',
|
|
@@ -3272,6 +3433,187 @@ exports.ListAvailableActionsDocument = {
|
|
|
3272
3433
|
{ kind: 'Field', name: { kind: 'Name', value: 'origin' } },
|
|
3273
3434
|
{ kind: 'Field', name: { kind: 'Name', value: 'title' } },
|
|
3274
3435
|
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
3436
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
3437
|
+
],
|
|
3438
|
+
},
|
|
3439
|
+
},
|
|
3440
|
+
],
|
|
3441
|
+
};
|
|
3442
|
+
exports.ListActionsForDataHolderDocument = {
|
|
3443
|
+
kind: 'Document',
|
|
3444
|
+
definitions: [
|
|
3445
|
+
{
|
|
3446
|
+
kind: 'OperationDefinition',
|
|
3447
|
+
operation: 'query',
|
|
3448
|
+
name: { kind: 'Name', value: 'ListActionsForDataHolder' },
|
|
3449
|
+
variableDefinitions: [
|
|
3450
|
+
{
|
|
3451
|
+
kind: 'VariableDefinition',
|
|
3452
|
+
variable: {
|
|
3453
|
+
kind: 'Variable',
|
|
3454
|
+
name: { kind: 'Name', value: 'dataHolderId' },
|
|
3455
|
+
},
|
|
3456
|
+
type: {
|
|
3457
|
+
kind: 'NonNullType',
|
|
3458
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
3459
|
+
},
|
|
3460
|
+
},
|
|
3461
|
+
{
|
|
3462
|
+
kind: 'VariableDefinition',
|
|
3463
|
+
variable: {
|
|
3464
|
+
kind: 'Variable',
|
|
3465
|
+
name: { kind: 'Name', value: 'limit' },
|
|
3466
|
+
},
|
|
3467
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
|
|
3468
|
+
},
|
|
3469
|
+
{
|
|
3470
|
+
kind: 'VariableDefinition',
|
|
3471
|
+
variable: {
|
|
3472
|
+
kind: 'Variable',
|
|
3473
|
+
name: { kind: 'Name', value: 'nextToken' },
|
|
3474
|
+
},
|
|
3475
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3476
|
+
},
|
|
3477
|
+
],
|
|
3478
|
+
selectionSet: {
|
|
3479
|
+
kind: 'SelectionSet',
|
|
3480
|
+
selections: [
|
|
3481
|
+
{
|
|
3482
|
+
kind: 'Field',
|
|
3483
|
+
name: { kind: 'Name', value: 'listActionsForDataHolder' },
|
|
3484
|
+
arguments: [
|
|
3485
|
+
{
|
|
3486
|
+
kind: 'Argument',
|
|
3487
|
+
name: { kind: 'Name', value: 'dataHolderId' },
|
|
3488
|
+
value: {
|
|
3489
|
+
kind: 'Variable',
|
|
3490
|
+
name: { kind: 'Name', value: 'dataHolderId' },
|
|
3491
|
+
},
|
|
3492
|
+
},
|
|
3493
|
+
{
|
|
3494
|
+
kind: 'Argument',
|
|
3495
|
+
name: { kind: 'Name', value: 'limit' },
|
|
3496
|
+
value: {
|
|
3497
|
+
kind: 'Variable',
|
|
3498
|
+
name: { kind: 'Name', value: 'limit' },
|
|
3499
|
+
},
|
|
3500
|
+
},
|
|
3501
|
+
{
|
|
3502
|
+
kind: 'Argument',
|
|
3503
|
+
name: { kind: 'Name', value: 'nextToken' },
|
|
3504
|
+
value: {
|
|
3505
|
+
kind: 'Variable',
|
|
3506
|
+
name: { kind: 'Name', value: 'nextToken' },
|
|
3507
|
+
},
|
|
3508
|
+
},
|
|
3509
|
+
],
|
|
3510
|
+
selectionSet: {
|
|
3511
|
+
kind: 'SelectionSet',
|
|
3512
|
+
selections: [
|
|
3513
|
+
{
|
|
3514
|
+
kind: 'Field',
|
|
3515
|
+
name: { kind: 'Name', value: 'items' },
|
|
3516
|
+
selectionSet: {
|
|
3517
|
+
kind: 'SelectionSet',
|
|
3518
|
+
selections: [
|
|
3519
|
+
{
|
|
3520
|
+
kind: 'FragmentSpread',
|
|
3521
|
+
name: { kind: 'Name', value: 'ActionFields' },
|
|
3522
|
+
},
|
|
3523
|
+
],
|
|
3524
|
+
},
|
|
3525
|
+
},
|
|
3526
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'nextToken' } },
|
|
3527
|
+
],
|
|
3528
|
+
},
|
|
3529
|
+
},
|
|
3530
|
+
],
|
|
3531
|
+
},
|
|
3532
|
+
},
|
|
3533
|
+
{
|
|
3534
|
+
kind: 'FragmentDefinition',
|
|
3535
|
+
name: { kind: 'Name', value: 'ActionFields' },
|
|
3536
|
+
typeCondition: {
|
|
3537
|
+
kind: 'NamedType',
|
|
3538
|
+
name: { kind: 'Name', value: 'Action' },
|
|
3539
|
+
},
|
|
3540
|
+
selectionSet: {
|
|
3541
|
+
kind: 'SelectionSet',
|
|
3542
|
+
selections: [
|
|
3543
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
3544
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'virtualPresenceId' } },
|
|
3545
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'dataHolderId' } },
|
|
3546
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'intent' } },
|
|
3547
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'additionalInfo' } },
|
|
3548
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'fulfilmentMethod' } },
|
|
3549
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
3550
|
+
{
|
|
3551
|
+
kind: 'Field',
|
|
3552
|
+
name: { kind: 'Name', value: 'assistedPayload' },
|
|
3553
|
+
selectionSet: {
|
|
3554
|
+
kind: 'SelectionSet',
|
|
3555
|
+
selections: [
|
|
3556
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'toAddress' } },
|
|
3557
|
+
{
|
|
3558
|
+
kind: 'Field',
|
|
3559
|
+
name: { kind: 'Name', value: 'unsubscribeUrl' },
|
|
3560
|
+
},
|
|
3561
|
+
{
|
|
3562
|
+
kind: 'Field',
|
|
3563
|
+
name: { kind: 'Name', value: 'unsubscribeMailto' },
|
|
3564
|
+
},
|
|
3565
|
+
{
|
|
3566
|
+
kind: 'Field',
|
|
3567
|
+
name: { kind: 'Name', value: 'contact' },
|
|
3568
|
+
selectionSet: {
|
|
3569
|
+
kind: 'SelectionSet',
|
|
3570
|
+
selections: [
|
|
3571
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'email' } },
|
|
3572
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'phone' } },
|
|
3573
|
+
{
|
|
3574
|
+
kind: 'Field',
|
|
3575
|
+
name: { kind: 'Name', value: 'address' },
|
|
3576
|
+
},
|
|
3577
|
+
],
|
|
3578
|
+
},
|
|
3579
|
+
},
|
|
3580
|
+
{
|
|
3581
|
+
kind: 'Field',
|
|
3582
|
+
name: { kind: 'Name', value: 'jurisdiction' },
|
|
3583
|
+
},
|
|
3584
|
+
{
|
|
3585
|
+
kind: 'Field',
|
|
3586
|
+
name: { kind: 'Name', value: 'instructions' },
|
|
3587
|
+
},
|
|
3588
|
+
{
|
|
3589
|
+
kind: 'Field',
|
|
3590
|
+
name: { kind: 'Name', value: 'emailTemplate' },
|
|
3591
|
+
selectionSet: {
|
|
3592
|
+
kind: 'SelectionSet',
|
|
3593
|
+
selections: [
|
|
3594
|
+
{
|
|
3595
|
+
kind: 'Field',
|
|
3596
|
+
name: { kind: 'Name', value: 'subject' },
|
|
3597
|
+
},
|
|
3598
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'body' } },
|
|
3599
|
+
],
|
|
3600
|
+
},
|
|
3601
|
+
},
|
|
3602
|
+
],
|
|
3603
|
+
},
|
|
3604
|
+
},
|
|
3605
|
+
{
|
|
3606
|
+
kind: 'Field',
|
|
3607
|
+
name: { kind: 'Name', value: 'initiatedAtEpochMs' },
|
|
3608
|
+
},
|
|
3609
|
+
{
|
|
3610
|
+
kind: 'Field',
|
|
3611
|
+
name: { kind: 'Name', value: 'completedAtEpochMs' },
|
|
3612
|
+
},
|
|
3613
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
3614
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
3615
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
|
|
3616
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAtEpochMs' } },
|
|
3275
3617
|
],
|
|
3276
3618
|
},
|
|
3277
3619
|
},
|
|
@@ -3579,7 +3921,14 @@ exports.OnDataHoldersUpdateDocument = {
|
|
|
3579
3921
|
kind: 'Field',
|
|
3580
3922
|
name: {
|
|
3581
3923
|
kind: 'Name',
|
|
3582
|
-
value: '
|
|
3924
|
+
value: 'mostRecentInboundContactEpochMs',
|
|
3925
|
+
},
|
|
3926
|
+
},
|
|
3927
|
+
{
|
|
3928
|
+
kind: 'Field',
|
|
3929
|
+
name: {
|
|
3930
|
+
kind: 'Name',
|
|
3931
|
+
value: 'firstInboundContactEpochMs',
|
|
3583
3932
|
},
|
|
3584
3933
|
},
|
|
3585
3934
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
@@ -54,6 +54,14 @@ class DefaultActionService {
|
|
|
54
54
|
nextToken: result.nextToken ?? undefined,
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
+
async listForDataHolder(input) {
|
|
58
|
+
const result = await this.appSync.listActionsForDataHolder(input);
|
|
59
|
+
const actions = (result.items ?? []).map((item) => this.actionTransformer.fromGraphQLToEntity(item));
|
|
60
|
+
return {
|
|
61
|
+
actions,
|
|
62
|
+
nextToken: result.nextToken ?? undefined,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
57
65
|
async subscribe(input) {
|
|
58
66
|
this.subscriptionManager.subscribe(input.subscriptionId, input.subscriber);
|
|
59
67
|
if (!this.subscriptionManager.getWatcher()) {
|
|
@@ -19,6 +19,14 @@ class ActionIntentTransformer {
|
|
|
19
19
|
return public_1.ActionIntent.DeleteMyData;
|
|
20
20
|
case actionEntity_1.ActionIntentEntity.LimitDataUse:
|
|
21
21
|
return public_1.ActionIntent.LimitDataUse;
|
|
22
|
+
case actionEntity_1.ActionIntentEntity.SwapEmail:
|
|
23
|
+
return public_1.ActionIntent.SwapEmail;
|
|
24
|
+
case actionEntity_1.ActionIntentEntity.SwapPhone:
|
|
25
|
+
return public_1.ActionIntent.SwapPhone;
|
|
26
|
+
case actionEntity_1.ActionIntentEntity.SwapVirtualCard:
|
|
27
|
+
return public_1.ActionIntent.SwapVirtualCard;
|
|
28
|
+
case actionEntity_1.ActionIntentEntity.SaveInPassword:
|
|
29
|
+
return public_1.ActionIntent.SaveInPassword;
|
|
22
30
|
case actionEntity_1.ActionIntentEntity.Other:
|
|
23
31
|
return public_1.ActionIntent.Other;
|
|
24
32
|
}
|
|
@@ -33,6 +41,14 @@ class ActionIntentTransformer {
|
|
|
33
41
|
return actionEntity_1.ActionIntentEntity.DeleteMyData;
|
|
34
42
|
case public_1.ActionIntent.LimitDataUse:
|
|
35
43
|
return actionEntity_1.ActionIntentEntity.LimitDataUse;
|
|
44
|
+
case public_1.ActionIntent.SwapEmail:
|
|
45
|
+
return actionEntity_1.ActionIntentEntity.SwapEmail;
|
|
46
|
+
case public_1.ActionIntent.SwapPhone:
|
|
47
|
+
return actionEntity_1.ActionIntentEntity.SwapPhone;
|
|
48
|
+
case public_1.ActionIntent.SwapVirtualCard:
|
|
49
|
+
return actionEntity_1.ActionIntentEntity.SwapVirtualCard;
|
|
50
|
+
case public_1.ActionIntent.SaveInPassword:
|
|
51
|
+
return actionEntity_1.ActionIntentEntity.SaveInPassword;
|
|
36
52
|
case public_1.ActionIntent.Other:
|
|
37
53
|
return actionEntity_1.ActionIntentEntity.Other;
|
|
38
54
|
}
|
|
@@ -47,6 +63,14 @@ class ActionIntentTransformer {
|
|
|
47
63
|
return actionEntity_1.ActionIntentEntity.DeleteMyData;
|
|
48
64
|
case 'LIMIT_DATA_USE':
|
|
49
65
|
return actionEntity_1.ActionIntentEntity.LimitDataUse;
|
|
66
|
+
case 'SWAP_EMAIL':
|
|
67
|
+
return actionEntity_1.ActionIntentEntity.SwapEmail;
|
|
68
|
+
case 'SWAP_PHONE':
|
|
69
|
+
return actionEntity_1.ActionIntentEntity.SwapPhone;
|
|
70
|
+
case 'SWAP_VIRTUAL_CARD':
|
|
71
|
+
return actionEntity_1.ActionIntentEntity.SwapVirtualCard;
|
|
72
|
+
case 'SAVE_IN_PASSWORD':
|
|
73
|
+
return actionEntity_1.ActionIntentEntity.SaveInPassword;
|
|
50
74
|
default:
|
|
51
75
|
return actionEntity_1.ActionIntentEntity.Other;
|
|
52
76
|
}
|
|
@@ -61,6 +85,14 @@ class ActionIntentTransformer {
|
|
|
61
85
|
return 'DELETE_MY_DATA';
|
|
62
86
|
case actionEntity_1.ActionIntentEntity.LimitDataUse:
|
|
63
87
|
return 'LIMIT_DATA_USE';
|
|
88
|
+
case actionEntity_1.ActionIntentEntity.SwapEmail:
|
|
89
|
+
return 'SWAP_EMAIL';
|
|
90
|
+
case actionEntity_1.ActionIntentEntity.SwapPhone:
|
|
91
|
+
return 'SWAP_PHONE';
|
|
92
|
+
case actionEntity_1.ActionIntentEntity.SwapVirtualCard:
|
|
93
|
+
return 'SWAP_VIRTUAL_CARD';
|
|
94
|
+
case actionEntity_1.ActionIntentEntity.SaveInPassword:
|
|
95
|
+
return 'SAVE_IN_PASSWORD';
|
|
64
96
|
case actionEntity_1.ActionIntentEntity.Other:
|
|
65
97
|
return 'OTHER';
|
|
66
98
|
}
|
|
@@ -9,10 +9,12 @@ exports.AvailableActionTransformer = void 0;
|
|
|
9
9
|
const actionFulfilmentMethodTransformer_1 = require("./actionFulfilmentMethodTransformer");
|
|
10
10
|
const actionIntentTransformer_1 = require("./actionIntentTransformer");
|
|
11
11
|
const actionOriginTransformer_1 = require("./actionOriginTransformer");
|
|
12
|
+
const actionStatusTransformer_1 = require("./actionStatusTransformer");
|
|
12
13
|
class AvailableActionTransformer {
|
|
13
14
|
intentTransformer = new actionIntentTransformer_1.ActionIntentTransformer();
|
|
14
15
|
fulfilmentMethodTransformer = new actionFulfilmentMethodTransformer_1.ActionFulfilmentMethodTransformer();
|
|
15
16
|
originTransformer = new actionOriginTransformer_1.ActionOriginTransformer();
|
|
17
|
+
statusTransformer = new actionStatusTransformer_1.ActionStatusTransformer();
|
|
16
18
|
fromGraphQLToEntity(data) {
|
|
17
19
|
return {
|
|
18
20
|
intent: this.intentTransformer.fromGraphQLToEntity(data.intent),
|
|
@@ -21,6 +23,9 @@ class AvailableActionTransformer {
|
|
|
21
23
|
origin: this.originTransformer.fromGraphQLToEntity(data.origin),
|
|
22
24
|
title: data.title ?? undefined,
|
|
23
25
|
description: data.description ?? undefined,
|
|
26
|
+
status: data.status != null
|
|
27
|
+
? this.statusTransformer.fromGraphQLToEntity(data.status)
|
|
28
|
+
: undefined,
|
|
24
29
|
};
|
|
25
30
|
}
|
|
26
31
|
fromEntityToAPI(entity) {
|
|
@@ -31,6 +36,9 @@ class AvailableActionTransformer {
|
|
|
31
36
|
origin: this.originTransformer.fromEntityToAPI(entity.origin),
|
|
32
37
|
title: entity.title,
|
|
33
38
|
description: entity.description,
|
|
39
|
+
status: entity.status !== undefined
|
|
40
|
+
? this.statusTransformer.fromEntityToAPI(entity.status)
|
|
41
|
+
: undefined,
|
|
34
42
|
};
|
|
35
43
|
}
|
|
36
44
|
}
|
|
@@ -19,6 +19,7 @@ class CapabilitySignalsTransformer {
|
|
|
19
19
|
supportsOptOutOfSale: this.signalValueTransformer.fromGraphQLToEntity(data.supportsOptOutOfSale),
|
|
20
20
|
usesCookiesOrTracking: this.signalValueTransformer.fromGraphQLToEntity(data.usesCookiesOrTracking),
|
|
21
21
|
supportsTwoFactorAuth: this.signalValueTransformer.fromGraphQLToEntity(data.supportsTwoFactorAuth),
|
|
22
|
+
supportsPasskeys: this.signalValueTransformer.fromGraphQLToEntity(data.supportsPasskeys),
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
fromEntityToAPI(entity) {
|
|
@@ -34,6 +35,7 @@ class CapabilitySignalsTransformer {
|
|
|
34
35
|
sellsPersonalInformation: this.signalValueTransformer.fromEntityToAPI(entity.supportsOptOutOfSale),
|
|
35
36
|
usesCookiesOrTracking: this.signalValueTransformer.fromEntityToAPI(entity.usesCookiesOrTracking),
|
|
36
37
|
supportsTwoFactorAuth: this.signalValueTransformer.fromEntityToAPI(entity.supportsTwoFactorAuth),
|
|
38
|
+
supportsPasskeys: this.signalValueTransformer.fromEntityToAPI(entity.supportsPasskeys),
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
}
|
|
@@ -46,6 +46,14 @@ class ApiClient {
|
|
|
46
46
|
});
|
|
47
47
|
return data.rescanVirtualPresence;
|
|
48
48
|
}
|
|
49
|
+
async refreshVirtualPresenceState(id) {
|
|
50
|
+
const data = await this.performMutation({
|
|
51
|
+
mutation: graphqlTypes_1.RefreshVirtualPresenceStateDocument,
|
|
52
|
+
variables: { id },
|
|
53
|
+
calleeName: this.refreshVirtualPresenceState.name,
|
|
54
|
+
});
|
|
55
|
+
return data.refreshVirtualPresenceState;
|
|
56
|
+
}
|
|
49
57
|
async listVirtualPresences(input) {
|
|
50
58
|
const data = await this.performQuery({
|
|
51
59
|
query: graphqlTypes_1.ListVirtualPresencesDocument,
|
|
@@ -174,11 +182,24 @@ class ApiClient {
|
|
|
174
182
|
query: graphqlTypes_1.ListAvailableActionsDocument,
|
|
175
183
|
variables: {
|
|
176
184
|
dataHolderId: input.dataHolderId,
|
|
185
|
+
includeCompleted: input.includeCompleted,
|
|
177
186
|
},
|
|
178
187
|
calleeName: this.listAvailableActions.name,
|
|
179
188
|
});
|
|
180
189
|
return data.listAvailableActions;
|
|
181
190
|
}
|
|
191
|
+
async listActionsForDataHolder(input) {
|
|
192
|
+
const data = await this.performQuery({
|
|
193
|
+
query: graphqlTypes_1.ListActionsForDataHolderDocument,
|
|
194
|
+
variables: {
|
|
195
|
+
dataHolderId: input.dataHolderId,
|
|
196
|
+
limit: input.limit,
|
|
197
|
+
nextToken: input.nextToken,
|
|
198
|
+
},
|
|
199
|
+
calleeName: this.listActionsForDataHolder.name,
|
|
200
|
+
});
|
|
201
|
+
return data.listActionsForDataHolder;
|
|
202
|
+
}
|
|
182
203
|
onVirtualPresenceUpdated(owner) {
|
|
183
204
|
return this.performSubscription({
|
|
184
205
|
subscription: graphqlTypes_1.OnVirtualPresenceUpdateDocument,
|