@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/lib/gen/graphqlTypes.js
CHANGED
|
@@ -110,6 +110,7 @@ export const AvailableActionFieldsFragmentDoc = {
|
|
|
110
110
|
{ kind: 'Field', name: { kind: 'Name', value: 'origin' } },
|
|
111
111
|
{ kind: 'Field', name: { kind: 'Name', value: 'title' } },
|
|
112
112
|
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
113
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
113
114
|
],
|
|
114
115
|
},
|
|
115
116
|
},
|
|
@@ -273,6 +274,10 @@ export const AnalysisResultDataFieldsFragmentDoc = {
|
|
|
273
274
|
kind: 'Field',
|
|
274
275
|
name: { kind: 'Name', value: 'supportsTwoFactorAuth' },
|
|
275
276
|
},
|
|
277
|
+
{
|
|
278
|
+
kind: 'Field',
|
|
279
|
+
name: { kind: 'Name', value: 'supportsPasskeys' },
|
|
280
|
+
},
|
|
276
281
|
],
|
|
277
282
|
},
|
|
278
283
|
},
|
|
@@ -535,6 +540,10 @@ export const AnalysisResultFieldsFragmentDoc = {
|
|
|
535
540
|
kind: 'Field',
|
|
536
541
|
name: { kind: 'Name', value: 'supportsTwoFactorAuth' },
|
|
537
542
|
},
|
|
543
|
+
{
|
|
544
|
+
kind: 'Field',
|
|
545
|
+
name: { kind: 'Name', value: 'supportsPasskeys' },
|
|
546
|
+
},
|
|
538
547
|
],
|
|
539
548
|
},
|
|
540
549
|
},
|
|
@@ -618,7 +627,11 @@ export const DataHolderFieldsFragmentDoc = {
|
|
|
618
627
|
{ kind: 'Field', name: { kind: 'Name', value: 'complianceConcern' } },
|
|
619
628
|
{
|
|
620
629
|
kind: 'Field',
|
|
621
|
-
name: { kind: 'Name', value: '
|
|
630
|
+
name: { kind: 'Name', value: 'mostRecentInboundContactEpochMs' },
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
kind: 'Field',
|
|
634
|
+
name: { kind: 'Name', value: 'firstInboundContactEpochMs' },
|
|
622
635
|
},
|
|
623
636
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
624
637
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
@@ -871,6 +884,10 @@ export const OrganizationAnalysisFieldsFragmentDoc = {
|
|
|
871
884
|
kind: 'Field',
|
|
872
885
|
name: { kind: 'Name', value: 'supportsTwoFactorAuth' },
|
|
873
886
|
},
|
|
887
|
+
{
|
|
888
|
+
kind: 'Field',
|
|
889
|
+
name: { kind: 'Name', value: 'supportsPasskeys' },
|
|
890
|
+
},
|
|
874
891
|
],
|
|
875
892
|
},
|
|
876
893
|
},
|
|
@@ -1306,6 +1323,106 @@ export const RescanVirtualPresenceDocument = {
|
|
|
1306
1323
|
},
|
|
1307
1324
|
],
|
|
1308
1325
|
};
|
|
1326
|
+
export const RefreshVirtualPresenceStateDocument = {
|
|
1327
|
+
kind: 'Document',
|
|
1328
|
+
definitions: [
|
|
1329
|
+
{
|
|
1330
|
+
kind: 'OperationDefinition',
|
|
1331
|
+
operation: 'mutation',
|
|
1332
|
+
name: { kind: 'Name', value: 'RefreshVirtualPresenceState' },
|
|
1333
|
+
variableDefinitions: [
|
|
1334
|
+
{
|
|
1335
|
+
kind: 'VariableDefinition',
|
|
1336
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
1337
|
+
type: {
|
|
1338
|
+
kind: 'NonNullType',
|
|
1339
|
+
type: {
|
|
1340
|
+
kind: 'NamedType',
|
|
1341
|
+
name: { kind: 'Name', value: 'String' },
|
|
1342
|
+
},
|
|
1343
|
+
},
|
|
1344
|
+
},
|
|
1345
|
+
],
|
|
1346
|
+
selectionSet: {
|
|
1347
|
+
kind: 'SelectionSet',
|
|
1348
|
+
selections: [
|
|
1349
|
+
{
|
|
1350
|
+
kind: 'Field',
|
|
1351
|
+
name: { kind: 'Name', value: 'refreshVirtualPresenceState' },
|
|
1352
|
+
arguments: [
|
|
1353
|
+
{
|
|
1354
|
+
kind: 'Argument',
|
|
1355
|
+
name: { kind: 'Name', value: 'id' },
|
|
1356
|
+
value: {
|
|
1357
|
+
kind: 'Variable',
|
|
1358
|
+
name: { kind: 'Name', value: 'id' },
|
|
1359
|
+
},
|
|
1360
|
+
},
|
|
1361
|
+
],
|
|
1362
|
+
selectionSet: {
|
|
1363
|
+
kind: 'SelectionSet',
|
|
1364
|
+
selections: [
|
|
1365
|
+
{
|
|
1366
|
+
kind: 'FragmentSpread',
|
|
1367
|
+
name: { kind: 'Name', value: 'VirtualPresenceFields' },
|
|
1368
|
+
},
|
|
1369
|
+
],
|
|
1370
|
+
},
|
|
1371
|
+
},
|
|
1372
|
+
],
|
|
1373
|
+
},
|
|
1374
|
+
},
|
|
1375
|
+
{
|
|
1376
|
+
kind: 'FragmentDefinition',
|
|
1377
|
+
name: { kind: 'Name', value: 'VirtualPresenceFields' },
|
|
1378
|
+
typeCondition: {
|
|
1379
|
+
kind: 'NamedType',
|
|
1380
|
+
name: { kind: 'Name', value: 'VirtualPresence' },
|
|
1381
|
+
},
|
|
1382
|
+
selectionSet: {
|
|
1383
|
+
kind: 'SelectionSet',
|
|
1384
|
+
selections: [
|
|
1385
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
1386
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'providerType' } },
|
|
1387
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'identifier' } },
|
|
1388
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'state' } },
|
|
1389
|
+
{
|
|
1390
|
+
kind: 'Field',
|
|
1391
|
+
name: { kind: 'Name', value: 'lastScannedAtEpochMs' },
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
kind: 'Field',
|
|
1395
|
+
name: { kind: 'Name', value: 'lastScanFailureReason' },
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
kind: 'Field',
|
|
1399
|
+
name: { kind: 'Name', value: 'dataHolderCount' },
|
|
1400
|
+
selectionSet: {
|
|
1401
|
+
kind: 'SelectionSet',
|
|
1402
|
+
selections: [
|
|
1403
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'count' } },
|
|
1404
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'monitored' } },
|
|
1405
|
+
{
|
|
1406
|
+
kind: 'Field',
|
|
1407
|
+
name: { kind: 'Name', value: 'initiatedActions' },
|
|
1408
|
+
},
|
|
1409
|
+
{
|
|
1410
|
+
kind: 'Field',
|
|
1411
|
+
name: { kind: 'Name', value: 'completedActions' },
|
|
1412
|
+
},
|
|
1413
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'archived' } },
|
|
1414
|
+
],
|
|
1415
|
+
},
|
|
1416
|
+
},
|
|
1417
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
1418
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
1419
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
|
|
1420
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAtEpochMs' } },
|
|
1421
|
+
],
|
|
1422
|
+
},
|
|
1423
|
+
},
|
|
1424
|
+
],
|
|
1425
|
+
};
|
|
1309
1426
|
export const InitiateActionDocument = {
|
|
1310
1427
|
kind: 'Document',
|
|
1311
1428
|
definitions: [
|
|
@@ -1646,7 +1763,11 @@ export const ArchiveDataHolderDocument = {
|
|
|
1646
1763
|
{ kind: 'Field', name: { kind: 'Name', value: 'complianceConcern' } },
|
|
1647
1764
|
{
|
|
1648
1765
|
kind: 'Field',
|
|
1649
|
-
name: { kind: 'Name', value: '
|
|
1766
|
+
name: { kind: 'Name', value: 'mostRecentInboundContactEpochMs' },
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
kind: 'Field',
|
|
1770
|
+
name: { kind: 'Name', value: 'firstInboundContactEpochMs' },
|
|
1650
1771
|
},
|
|
1651
1772
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
1652
1773
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
@@ -1721,7 +1842,11 @@ export const UnarchiveDataHolderDocument = {
|
|
|
1721
1842
|
{ kind: 'Field', name: { kind: 'Name', value: 'complianceConcern' } },
|
|
1722
1843
|
{
|
|
1723
1844
|
kind: 'Field',
|
|
1724
|
-
name: { kind: 'Name', value: '
|
|
1845
|
+
name: { kind: 'Name', value: 'mostRecentInboundContactEpochMs' },
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
kind: 'Field',
|
|
1849
|
+
name: { kind: 'Name', value: 'firstInboundContactEpochMs' },
|
|
1725
1850
|
},
|
|
1726
1851
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
1727
1852
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
@@ -1931,7 +2056,11 @@ export const GetDataHolderDocument = {
|
|
|
1931
2056
|
{ kind: 'Field', name: { kind: 'Name', value: 'complianceConcern' } },
|
|
1932
2057
|
{
|
|
1933
2058
|
kind: 'Field',
|
|
1934
|
-
name: { kind: 'Name', value: '
|
|
2059
|
+
name: { kind: 'Name', value: 'mostRecentInboundContactEpochMs' },
|
|
2060
|
+
},
|
|
2061
|
+
{
|
|
2062
|
+
kind: 'Field',
|
|
2063
|
+
name: { kind: 'Name', value: 'firstInboundContactEpochMs' },
|
|
1935
2064
|
},
|
|
1936
2065
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
1937
2066
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
@@ -2051,7 +2180,11 @@ export const ListDataHoldersDocument = {
|
|
|
2051
2180
|
{ kind: 'Field', name: { kind: 'Name', value: 'complianceConcern' } },
|
|
2052
2181
|
{
|
|
2053
2182
|
kind: 'Field',
|
|
2054
|
-
name: { kind: 'Name', value: '
|
|
2183
|
+
name: { kind: 'Name', value: 'mostRecentInboundContactEpochMs' },
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
kind: 'Field',
|
|
2187
|
+
name: { kind: 'Name', value: 'firstInboundContactEpochMs' },
|
|
2055
2188
|
},
|
|
2056
2189
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
2057
2190
|
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
@@ -2263,6 +2396,10 @@ export const GetAnalysisResultDocument = {
|
|
|
2263
2396
|
kind: 'Field',
|
|
2264
2397
|
name: { kind: 'Name', value: 'supportsTwoFactorAuth' },
|
|
2265
2398
|
},
|
|
2399
|
+
{
|
|
2400
|
+
kind: 'Field',
|
|
2401
|
+
name: { kind: 'Name', value: 'supportsPasskeys' },
|
|
2402
|
+
},
|
|
2266
2403
|
],
|
|
2267
2404
|
},
|
|
2268
2405
|
},
|
|
@@ -2606,6 +2743,10 @@ export const GetOrganizationAnalysisDocument = {
|
|
|
2606
2743
|
kind: 'Field',
|
|
2607
2744
|
name: { kind: 'Name', value: 'supportsTwoFactorAuth' },
|
|
2608
2745
|
},
|
|
2746
|
+
{
|
|
2747
|
+
kind: 'Field',
|
|
2748
|
+
name: { kind: 'Name', value: 'supportsPasskeys' },
|
|
2749
|
+
},
|
|
2609
2750
|
],
|
|
2610
2751
|
},
|
|
2611
2752
|
},
|
|
@@ -2952,6 +3093,10 @@ export const ListAnalysisResultsDocument = {
|
|
|
2952
3093
|
kind: 'Field',
|
|
2953
3094
|
name: { kind: 'Name', value: 'supportsTwoFactorAuth' },
|
|
2954
3095
|
},
|
|
3096
|
+
{
|
|
3097
|
+
kind: 'Field',
|
|
3098
|
+
name: { kind: 'Name', value: 'supportsPasskeys' },
|
|
3099
|
+
},
|
|
2955
3100
|
],
|
|
2956
3101
|
},
|
|
2957
3102
|
},
|
|
@@ -3212,6 +3357,14 @@ export const ListAvailableActionsDocument = {
|
|
|
3212
3357
|
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
3213
3358
|
},
|
|
3214
3359
|
},
|
|
3360
|
+
{
|
|
3361
|
+
kind: 'VariableDefinition',
|
|
3362
|
+
variable: {
|
|
3363
|
+
kind: 'Variable',
|
|
3364
|
+
name: { kind: 'Name', value: 'includeCompleted' },
|
|
3365
|
+
},
|
|
3366
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Boolean' } },
|
|
3367
|
+
},
|
|
3215
3368
|
],
|
|
3216
3369
|
selectionSet: {
|
|
3217
3370
|
kind: 'SelectionSet',
|
|
@@ -3228,6 +3381,14 @@ export const ListAvailableActionsDocument = {
|
|
|
3228
3381
|
name: { kind: 'Name', value: 'dataHolderId' },
|
|
3229
3382
|
},
|
|
3230
3383
|
},
|
|
3384
|
+
{
|
|
3385
|
+
kind: 'Argument',
|
|
3386
|
+
name: { kind: 'Name', value: 'includeCompleted' },
|
|
3387
|
+
value: {
|
|
3388
|
+
kind: 'Variable',
|
|
3389
|
+
name: { kind: 'Name', value: 'includeCompleted' },
|
|
3390
|
+
},
|
|
3391
|
+
},
|
|
3231
3392
|
],
|
|
3232
3393
|
selectionSet: {
|
|
3233
3394
|
kind: 'SelectionSet',
|
|
@@ -3268,6 +3429,187 @@ export const ListAvailableActionsDocument = {
|
|
|
3268
3429
|
{ kind: 'Field', name: { kind: 'Name', value: 'origin' } },
|
|
3269
3430
|
{ kind: 'Field', name: { kind: 'Name', value: 'title' } },
|
|
3270
3431
|
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
3432
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
3433
|
+
],
|
|
3434
|
+
},
|
|
3435
|
+
},
|
|
3436
|
+
],
|
|
3437
|
+
};
|
|
3438
|
+
export const ListActionsForDataHolderDocument = {
|
|
3439
|
+
kind: 'Document',
|
|
3440
|
+
definitions: [
|
|
3441
|
+
{
|
|
3442
|
+
kind: 'OperationDefinition',
|
|
3443
|
+
operation: 'query',
|
|
3444
|
+
name: { kind: 'Name', value: 'ListActionsForDataHolder' },
|
|
3445
|
+
variableDefinitions: [
|
|
3446
|
+
{
|
|
3447
|
+
kind: 'VariableDefinition',
|
|
3448
|
+
variable: {
|
|
3449
|
+
kind: 'Variable',
|
|
3450
|
+
name: { kind: 'Name', value: 'dataHolderId' },
|
|
3451
|
+
},
|
|
3452
|
+
type: {
|
|
3453
|
+
kind: 'NonNullType',
|
|
3454
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
3455
|
+
},
|
|
3456
|
+
},
|
|
3457
|
+
{
|
|
3458
|
+
kind: 'VariableDefinition',
|
|
3459
|
+
variable: {
|
|
3460
|
+
kind: 'Variable',
|
|
3461
|
+
name: { kind: 'Name', value: 'limit' },
|
|
3462
|
+
},
|
|
3463
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
|
|
3464
|
+
},
|
|
3465
|
+
{
|
|
3466
|
+
kind: 'VariableDefinition',
|
|
3467
|
+
variable: {
|
|
3468
|
+
kind: 'Variable',
|
|
3469
|
+
name: { kind: 'Name', value: 'nextToken' },
|
|
3470
|
+
},
|
|
3471
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3472
|
+
},
|
|
3473
|
+
],
|
|
3474
|
+
selectionSet: {
|
|
3475
|
+
kind: 'SelectionSet',
|
|
3476
|
+
selections: [
|
|
3477
|
+
{
|
|
3478
|
+
kind: 'Field',
|
|
3479
|
+
name: { kind: 'Name', value: 'listActionsForDataHolder' },
|
|
3480
|
+
arguments: [
|
|
3481
|
+
{
|
|
3482
|
+
kind: 'Argument',
|
|
3483
|
+
name: { kind: 'Name', value: 'dataHolderId' },
|
|
3484
|
+
value: {
|
|
3485
|
+
kind: 'Variable',
|
|
3486
|
+
name: { kind: 'Name', value: 'dataHolderId' },
|
|
3487
|
+
},
|
|
3488
|
+
},
|
|
3489
|
+
{
|
|
3490
|
+
kind: 'Argument',
|
|
3491
|
+
name: { kind: 'Name', value: 'limit' },
|
|
3492
|
+
value: {
|
|
3493
|
+
kind: 'Variable',
|
|
3494
|
+
name: { kind: 'Name', value: 'limit' },
|
|
3495
|
+
},
|
|
3496
|
+
},
|
|
3497
|
+
{
|
|
3498
|
+
kind: 'Argument',
|
|
3499
|
+
name: { kind: 'Name', value: 'nextToken' },
|
|
3500
|
+
value: {
|
|
3501
|
+
kind: 'Variable',
|
|
3502
|
+
name: { kind: 'Name', value: 'nextToken' },
|
|
3503
|
+
},
|
|
3504
|
+
},
|
|
3505
|
+
],
|
|
3506
|
+
selectionSet: {
|
|
3507
|
+
kind: 'SelectionSet',
|
|
3508
|
+
selections: [
|
|
3509
|
+
{
|
|
3510
|
+
kind: 'Field',
|
|
3511
|
+
name: { kind: 'Name', value: 'items' },
|
|
3512
|
+
selectionSet: {
|
|
3513
|
+
kind: 'SelectionSet',
|
|
3514
|
+
selections: [
|
|
3515
|
+
{
|
|
3516
|
+
kind: 'FragmentSpread',
|
|
3517
|
+
name: { kind: 'Name', value: 'ActionFields' },
|
|
3518
|
+
},
|
|
3519
|
+
],
|
|
3520
|
+
},
|
|
3521
|
+
},
|
|
3522
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'nextToken' } },
|
|
3523
|
+
],
|
|
3524
|
+
},
|
|
3525
|
+
},
|
|
3526
|
+
],
|
|
3527
|
+
},
|
|
3528
|
+
},
|
|
3529
|
+
{
|
|
3530
|
+
kind: 'FragmentDefinition',
|
|
3531
|
+
name: { kind: 'Name', value: 'ActionFields' },
|
|
3532
|
+
typeCondition: {
|
|
3533
|
+
kind: 'NamedType',
|
|
3534
|
+
name: { kind: 'Name', value: 'Action' },
|
|
3535
|
+
},
|
|
3536
|
+
selectionSet: {
|
|
3537
|
+
kind: 'SelectionSet',
|
|
3538
|
+
selections: [
|
|
3539
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
3540
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'virtualPresenceId' } },
|
|
3541
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'dataHolderId' } },
|
|
3542
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'intent' } },
|
|
3543
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'additionalInfo' } },
|
|
3544
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'fulfilmentMethod' } },
|
|
3545
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
3546
|
+
{
|
|
3547
|
+
kind: 'Field',
|
|
3548
|
+
name: { kind: 'Name', value: 'assistedPayload' },
|
|
3549
|
+
selectionSet: {
|
|
3550
|
+
kind: 'SelectionSet',
|
|
3551
|
+
selections: [
|
|
3552
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'toAddress' } },
|
|
3553
|
+
{
|
|
3554
|
+
kind: 'Field',
|
|
3555
|
+
name: { kind: 'Name', value: 'unsubscribeUrl' },
|
|
3556
|
+
},
|
|
3557
|
+
{
|
|
3558
|
+
kind: 'Field',
|
|
3559
|
+
name: { kind: 'Name', value: 'unsubscribeMailto' },
|
|
3560
|
+
},
|
|
3561
|
+
{
|
|
3562
|
+
kind: 'Field',
|
|
3563
|
+
name: { kind: 'Name', value: 'contact' },
|
|
3564
|
+
selectionSet: {
|
|
3565
|
+
kind: 'SelectionSet',
|
|
3566
|
+
selections: [
|
|
3567
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'email' } },
|
|
3568
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'phone' } },
|
|
3569
|
+
{
|
|
3570
|
+
kind: 'Field',
|
|
3571
|
+
name: { kind: 'Name', value: 'address' },
|
|
3572
|
+
},
|
|
3573
|
+
],
|
|
3574
|
+
},
|
|
3575
|
+
},
|
|
3576
|
+
{
|
|
3577
|
+
kind: 'Field',
|
|
3578
|
+
name: { kind: 'Name', value: 'jurisdiction' },
|
|
3579
|
+
},
|
|
3580
|
+
{
|
|
3581
|
+
kind: 'Field',
|
|
3582
|
+
name: { kind: 'Name', value: 'instructions' },
|
|
3583
|
+
},
|
|
3584
|
+
{
|
|
3585
|
+
kind: 'Field',
|
|
3586
|
+
name: { kind: 'Name', value: 'emailTemplate' },
|
|
3587
|
+
selectionSet: {
|
|
3588
|
+
kind: 'SelectionSet',
|
|
3589
|
+
selections: [
|
|
3590
|
+
{
|
|
3591
|
+
kind: 'Field',
|
|
3592
|
+
name: { kind: 'Name', value: 'subject' },
|
|
3593
|
+
},
|
|
3594
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'body' } },
|
|
3595
|
+
],
|
|
3596
|
+
},
|
|
3597
|
+
},
|
|
3598
|
+
],
|
|
3599
|
+
},
|
|
3600
|
+
},
|
|
3601
|
+
{
|
|
3602
|
+
kind: 'Field',
|
|
3603
|
+
name: { kind: 'Name', value: 'initiatedAtEpochMs' },
|
|
3604
|
+
},
|
|
3605
|
+
{
|
|
3606
|
+
kind: 'Field',
|
|
3607
|
+
name: { kind: 'Name', value: 'completedAtEpochMs' },
|
|
3608
|
+
},
|
|
3609
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
3610
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'version' } },
|
|
3611
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdAtEpochMs' } },
|
|
3612
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAtEpochMs' } },
|
|
3271
3613
|
],
|
|
3272
3614
|
},
|
|
3273
3615
|
},
|
|
@@ -3575,7 +3917,14 @@ export const OnDataHoldersUpdateDocument = {
|
|
|
3575
3917
|
kind: 'Field',
|
|
3576
3918
|
name: {
|
|
3577
3919
|
kind: 'Name',
|
|
3578
|
-
value: '
|
|
3920
|
+
value: 'mostRecentInboundContactEpochMs',
|
|
3921
|
+
},
|
|
3922
|
+
},
|
|
3923
|
+
{
|
|
3924
|
+
kind: 'Field',
|
|
3925
|
+
name: {
|
|
3926
|
+
kind: 'Name',
|
|
3927
|
+
value: 'firstInboundContactEpochMs',
|
|
3579
3928
|
},
|
|
3580
3929
|
},
|
|
3581
3930
|
{ kind: 'Field', name: { kind: 'Name', value: 'owner' } },
|
|
@@ -51,6 +51,14 @@ export class DefaultActionService {
|
|
|
51
51
|
nextToken: result.nextToken ?? undefined,
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
+
async listForDataHolder(input) {
|
|
55
|
+
const result = await this.appSync.listActionsForDataHolder(input);
|
|
56
|
+
const actions = (result.items ?? []).map((item) => this.actionTransformer.fromGraphQLToEntity(item));
|
|
57
|
+
return {
|
|
58
|
+
actions,
|
|
59
|
+
nextToken: result.nextToken ?? undefined,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
54
62
|
async subscribe(input) {
|
|
55
63
|
this.subscriptionManager.subscribe(input.subscriptionId, input.subscriber);
|
|
56
64
|
if (!this.subscriptionManager.getWatcher()) {
|
|
@@ -16,6 +16,14 @@ export class ActionIntentTransformer {
|
|
|
16
16
|
return ActionIntent.DeleteMyData;
|
|
17
17
|
case ActionIntentEntity.LimitDataUse:
|
|
18
18
|
return ActionIntent.LimitDataUse;
|
|
19
|
+
case ActionIntentEntity.SwapEmail:
|
|
20
|
+
return ActionIntent.SwapEmail;
|
|
21
|
+
case ActionIntentEntity.SwapPhone:
|
|
22
|
+
return ActionIntent.SwapPhone;
|
|
23
|
+
case ActionIntentEntity.SwapVirtualCard:
|
|
24
|
+
return ActionIntent.SwapVirtualCard;
|
|
25
|
+
case ActionIntentEntity.SaveInPassword:
|
|
26
|
+
return ActionIntent.SaveInPassword;
|
|
19
27
|
case ActionIntentEntity.Other:
|
|
20
28
|
return ActionIntent.Other;
|
|
21
29
|
}
|
|
@@ -30,6 +38,14 @@ export class ActionIntentTransformer {
|
|
|
30
38
|
return ActionIntentEntity.DeleteMyData;
|
|
31
39
|
case ActionIntent.LimitDataUse:
|
|
32
40
|
return ActionIntentEntity.LimitDataUse;
|
|
41
|
+
case ActionIntent.SwapEmail:
|
|
42
|
+
return ActionIntentEntity.SwapEmail;
|
|
43
|
+
case ActionIntent.SwapPhone:
|
|
44
|
+
return ActionIntentEntity.SwapPhone;
|
|
45
|
+
case ActionIntent.SwapVirtualCard:
|
|
46
|
+
return ActionIntentEntity.SwapVirtualCard;
|
|
47
|
+
case ActionIntent.SaveInPassword:
|
|
48
|
+
return ActionIntentEntity.SaveInPassword;
|
|
33
49
|
case ActionIntent.Other:
|
|
34
50
|
return ActionIntentEntity.Other;
|
|
35
51
|
}
|
|
@@ -44,6 +60,14 @@ export class ActionIntentTransformer {
|
|
|
44
60
|
return ActionIntentEntity.DeleteMyData;
|
|
45
61
|
case 'LIMIT_DATA_USE':
|
|
46
62
|
return ActionIntentEntity.LimitDataUse;
|
|
63
|
+
case 'SWAP_EMAIL':
|
|
64
|
+
return ActionIntentEntity.SwapEmail;
|
|
65
|
+
case 'SWAP_PHONE':
|
|
66
|
+
return ActionIntentEntity.SwapPhone;
|
|
67
|
+
case 'SWAP_VIRTUAL_CARD':
|
|
68
|
+
return ActionIntentEntity.SwapVirtualCard;
|
|
69
|
+
case 'SAVE_IN_PASSWORD':
|
|
70
|
+
return ActionIntentEntity.SaveInPassword;
|
|
47
71
|
default:
|
|
48
72
|
return ActionIntentEntity.Other;
|
|
49
73
|
}
|
|
@@ -58,6 +82,14 @@ export class ActionIntentTransformer {
|
|
|
58
82
|
return 'DELETE_MY_DATA';
|
|
59
83
|
case ActionIntentEntity.LimitDataUse:
|
|
60
84
|
return 'LIMIT_DATA_USE';
|
|
85
|
+
case ActionIntentEntity.SwapEmail:
|
|
86
|
+
return 'SWAP_EMAIL';
|
|
87
|
+
case ActionIntentEntity.SwapPhone:
|
|
88
|
+
return 'SWAP_PHONE';
|
|
89
|
+
case ActionIntentEntity.SwapVirtualCard:
|
|
90
|
+
return 'SWAP_VIRTUAL_CARD';
|
|
91
|
+
case ActionIntentEntity.SaveInPassword:
|
|
92
|
+
return 'SAVE_IN_PASSWORD';
|
|
61
93
|
case ActionIntentEntity.Other:
|
|
62
94
|
return 'OTHER';
|
|
63
95
|
}
|
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
import { ActionFulfilmentMethodTransformer } from './actionFulfilmentMethodTransformer';
|
|
7
7
|
import { ActionIntentTransformer } from './actionIntentTransformer';
|
|
8
8
|
import { ActionOriginTransformer } from './actionOriginTransformer';
|
|
9
|
+
import { ActionStatusTransformer } from './actionStatusTransformer';
|
|
9
10
|
export class AvailableActionTransformer {
|
|
10
11
|
intentTransformer = new ActionIntentTransformer();
|
|
11
12
|
fulfilmentMethodTransformer = new ActionFulfilmentMethodTransformer();
|
|
12
13
|
originTransformer = new ActionOriginTransformer();
|
|
14
|
+
statusTransformer = new ActionStatusTransformer();
|
|
13
15
|
fromGraphQLToEntity(data) {
|
|
14
16
|
return {
|
|
15
17
|
intent: this.intentTransformer.fromGraphQLToEntity(data.intent),
|
|
@@ -18,6 +20,9 @@ export class AvailableActionTransformer {
|
|
|
18
20
|
origin: this.originTransformer.fromGraphQLToEntity(data.origin),
|
|
19
21
|
title: data.title ?? undefined,
|
|
20
22
|
description: data.description ?? undefined,
|
|
23
|
+
status: data.status != null
|
|
24
|
+
? this.statusTransformer.fromGraphQLToEntity(data.status)
|
|
25
|
+
: undefined,
|
|
21
26
|
};
|
|
22
27
|
}
|
|
23
28
|
fromEntityToAPI(entity) {
|
|
@@ -28,6 +33,9 @@ export class AvailableActionTransformer {
|
|
|
28
33
|
origin: this.originTransformer.fromEntityToAPI(entity.origin),
|
|
29
34
|
title: entity.title,
|
|
30
35
|
description: entity.description,
|
|
36
|
+
status: entity.status !== undefined
|
|
37
|
+
? this.statusTransformer.fromEntityToAPI(entity.status)
|
|
38
|
+
: undefined,
|
|
31
39
|
};
|
|
32
40
|
}
|
|
33
41
|
}
|
|
@@ -16,6 +16,7 @@ export class CapabilitySignalsTransformer {
|
|
|
16
16
|
supportsOptOutOfSale: this.signalValueTransformer.fromGraphQLToEntity(data.supportsOptOutOfSale),
|
|
17
17
|
usesCookiesOrTracking: this.signalValueTransformer.fromGraphQLToEntity(data.usesCookiesOrTracking),
|
|
18
18
|
supportsTwoFactorAuth: this.signalValueTransformer.fromGraphQLToEntity(data.supportsTwoFactorAuth),
|
|
19
|
+
supportsPasskeys: this.signalValueTransformer.fromGraphQLToEntity(data.supportsPasskeys),
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
22
|
fromEntityToAPI(entity) {
|
|
@@ -31,6 +32,7 @@ export class CapabilitySignalsTransformer {
|
|
|
31
32
|
sellsPersonalInformation: this.signalValueTransformer.fromEntityToAPI(entity.supportsOptOutOfSale),
|
|
32
33
|
usesCookiesOrTracking: this.signalValueTransformer.fromEntityToAPI(entity.usesCookiesOrTracking),
|
|
33
34
|
supportsTwoFactorAuth: this.signalValueTransformer.fromEntityToAPI(entity.supportsTwoFactorAuth),
|
|
35
|
+
supportsPasskeys: this.signalValueTransformer.fromEntityToAPI(entity.supportsPasskeys),
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { DefaultApiClientManager, } from '@sudoplatform/sudo-api-client';
|
|
7
7
|
import { DefaultLogger, FatalError, UnknownGraphQLError, isGraphQLNetworkError, mapNetworkErrorToClientError, } from '@sudoplatform/sudo-common';
|
|
8
|
-
import { ArchiveDataHolderDocument, ConfirmActionOutcomeDocument, ConnectVirtualPresenceDocument, DisconnectVirtualPresenceDocument, GetActionDocument, GetAnalysisResultDocument, GetDataHolderDocument, GetProviderConfigurationDocument, GetOrganizationAnalysisDocument, InitiateActionDocument, ListAnalysisResultsDocument, ListAvailableActionsDocument, ListDataHolderScanSummariesDocument, ListDataHoldersDocument, ListVirtualPresencesDocument, OnActionStatusUpdateDocument, OnAnalysisResultUpdateDocument, OnDataHoldersUpdateDocument, OnVirtualPresenceUpdateDocument, RescanVirtualPresenceDocument, UnarchiveDataHolderDocument, } from '../../../gen/graphqlTypes';
|
|
8
|
+
import { ArchiveDataHolderDocument, ConfirmActionOutcomeDocument, ConnectVirtualPresenceDocument, DisconnectVirtualPresenceDocument, GetActionDocument, GetAnalysisResultDocument, GetDataHolderDocument, GetProviderConfigurationDocument, GetOrganizationAnalysisDocument, InitiateActionDocument, ListAnalysisResultsDocument, ListActionsForDataHolderDocument, ListAvailableActionsDocument, ListDataHolderScanSummariesDocument, ListDataHoldersDocument, ListVirtualPresencesDocument, OnActionStatusUpdateDocument, OnAnalysisResultUpdateDocument, OnDataHoldersUpdateDocument, OnVirtualPresenceUpdateDocument, RefreshVirtualPresenceStateDocument, RescanVirtualPresenceDocument, UnarchiveDataHolderDocument, } from '../../../gen/graphqlTypes';
|
|
9
9
|
import { ErrorTransformer } from './transformer/errorTransformer';
|
|
10
10
|
export class ApiClient {
|
|
11
11
|
log;
|
|
@@ -43,6 +43,14 @@ export class ApiClient {
|
|
|
43
43
|
});
|
|
44
44
|
return data.rescanVirtualPresence;
|
|
45
45
|
}
|
|
46
|
+
async refreshVirtualPresenceState(id) {
|
|
47
|
+
const data = await this.performMutation({
|
|
48
|
+
mutation: RefreshVirtualPresenceStateDocument,
|
|
49
|
+
variables: { id },
|
|
50
|
+
calleeName: this.refreshVirtualPresenceState.name,
|
|
51
|
+
});
|
|
52
|
+
return data.refreshVirtualPresenceState;
|
|
53
|
+
}
|
|
46
54
|
async listVirtualPresences(input) {
|
|
47
55
|
const data = await this.performQuery({
|
|
48
56
|
query: ListVirtualPresencesDocument,
|
|
@@ -171,11 +179,24 @@ export class ApiClient {
|
|
|
171
179
|
query: ListAvailableActionsDocument,
|
|
172
180
|
variables: {
|
|
173
181
|
dataHolderId: input.dataHolderId,
|
|
182
|
+
includeCompleted: input.includeCompleted,
|
|
174
183
|
},
|
|
175
184
|
calleeName: this.listAvailableActions.name,
|
|
176
185
|
});
|
|
177
186
|
return data.listAvailableActions;
|
|
178
187
|
}
|
|
188
|
+
async listActionsForDataHolder(input) {
|
|
189
|
+
const data = await this.performQuery({
|
|
190
|
+
query: ListActionsForDataHolderDocument,
|
|
191
|
+
variables: {
|
|
192
|
+
dataHolderId: input.dataHolderId,
|
|
193
|
+
limit: input.limit,
|
|
194
|
+
nextToken: input.nextToken,
|
|
195
|
+
},
|
|
196
|
+
calleeName: this.listActionsForDataHolder.name,
|
|
197
|
+
});
|
|
198
|
+
return data.listActionsForDataHolder;
|
|
199
|
+
}
|
|
179
200
|
onVirtualPresenceUpdated(owner) {
|
|
180
201
|
return this.performSubscription({
|
|
181
202
|
subscription: OnVirtualPresenceUpdateDocument,
|