@futdevpro/nts-dynamo 1.15.430 → 1.15.431
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/build/_modules/privacy-lifecycle/index.d.ts +1 -0
- package/build/_modules/privacy-lifecycle/index.d.ts.map +1 -1
- package/build/_modules/privacy-lifecycle/index.js +4 -1
- package/build/_modules/privacy-lifecycle/index.js.map +1 -1
- package/build/_modules/privacy-lifecycle/privacy-contributor-verify.util.d.ts +26 -0
- package/build/_modules/privacy-lifecycle/privacy-contributor-verify.util.d.ts.map +1 -0
- package/build/_modules/privacy-lifecycle/privacy-contributor-verify.util.js +40 -0
- package/build/_modules/privacy-lifecycle/privacy-contributor-verify.util.js.map +1 -0
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { DyNTS_PrivacyLifecycle_ControlService } from './privacy-lifecycle.control-service';
|
|
2
|
+
export { DyNTS_PrivacyContributorVerify_Util } from './privacy-contributor-verify.util';
|
|
2
3
|
export { DyNTS_PrivacyContributorRequestRouter_ControlService } from './privacy-contributor-request-router.control-service';
|
|
3
4
|
export { DyNTS_PrivacyRightsInput_ControlService } from './privacy-rights-input.control-service';
|
|
4
5
|
export { DyNTS_PrivacyRightsCustody_MongoStore } from './privacy-rights-custody.mongo-store';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_modules/privacy-lifecycle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_modules/privacy-lifecycle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,qCAAqC,CAAC;AAE5F,OAAO,EAAE,mCAAmC,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EACL,oDAAoD,EACrD,MAAM,sDAAsD,CA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AAE,MAAM,oDAAoD,CAAC;AACjH,OAAO,EACL,uDAAuD,EACxD,MAAM,iEAAiE,CAAC;AACzE,OAAO,EAAE,4CAA4C,EAAE,MAAM,qDAAqD,CAAC;AACnH,OAAO,EACL,0CAA0C,EAC3C,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,sCAAsC,EAAE,MAAM,8CAA8C,CAAC;AACtG,OAAO,EAAE,0CAA0C,EAAE,MAAM,mDAAmD,CAAC;AAC/G,OAAO,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,EACL,qDAAqD,EACtD,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EACL,yCAAyC,EAC1C,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,kCAAkC,EAClC,uCAAuC,EACxC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,wCAAwC,EACxC,mDAAmD,EACpD,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,EACL,8CAA8C,EAC9C,2CAA2C,EAC3C,4CAA4C,EAC5C,iDAAiD,EACjD,2CAA2C,EAC3C,+CAA+C,EAC/C,2CAA2C,EAC3C,2CAA2C,EAC3C,0CAA0C,EAC1C,iDAAiD,EACjD,yCAAyC,EACzC,0CAA0C,EAC3C,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,iDAAiD,EACjD,kDAAkD,EAClD,0CAA0C,EAC1C,yCAAyC,EAC1C,MAAM,2CAA2C,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DyNTS_PrivacyRequest_Type = exports.DyNTS_PrivacyRequestState_Type = exports.DyNTS_PrivacyContributorOutcome_Type = exports.DyNTS_PrivacyContributorExecutionMode_Type = exports.DyNTS_PrivacyContributorAction_Type = exports.DyNTS_PrivacyConsentAuthorizationReason_Type = exports.DyNTS_PrivacyConsentDecision_Type = exports.DyNTS_PrivacyShareGrant_MongoStore = exports.DyNTS_PrivacyShareGrant_ControlService = exports.DyNTS_PrivacyExportSchema_Util = exports.DyNTS_PrivacyExportBundle_ControlService = exports.DyNTS_PrivacyLedger_MongoStore = exports.DyNTS_PrivacyLifecycle_MongoStore = exports.DyNTS_PrivacyExportArtifact_MongoStore = exports.DyNTS_privacyExportArtifactContributorId = exports.DyNTS_PrivacyExportArtifactPrivacyContributor_ControlService = exports.DyNTS_PrivacyExportArtifact_ControlService = exports.DyNTS_PrivacyConsentAuthorization_ControlService = exports.DyNTS_PrivacyLedger_ControlService = exports.DyNTS_PrivacyRequestCursor_ControlService = exports.DyNTS_PrivacyMutationGate_MongoStore = exports.DyNTS_PrivacyRightsNotificationState_Type = exports.DyNTS_PrivacyRightsNotificationChannel_Type = exports.DyNTS_PrivacyRightsRectificationDecision_Type = exports.DyNTS_PrivacyRightsPurposeDecision_Type = exports.DyNTS_PrivacyRightsValue_Type = exports.DyNTS_PrivacyRightsNotification_MongoStore = exports.DyNTS_PrivacyRightsExecution_MongoStore = exports.DyNTS_PrivacyRightsCustody_MongoStore = exports.DyNTS_PrivacyRightsInput_ControlService = exports.DyNTS_PrivacyContributorRequestRouter_ControlService = exports.DyNTS_PrivacyLifecycle_ControlService = void 0;
|
|
3
|
+
exports.DyNTS_PrivacyRequest_Type = exports.DyNTS_PrivacyRequestState_Type = exports.DyNTS_PrivacyContributorOutcome_Type = exports.DyNTS_PrivacyContributorExecutionMode_Type = exports.DyNTS_PrivacyContributorAction_Type = exports.DyNTS_PrivacyConsentAuthorizationReason_Type = exports.DyNTS_PrivacyConsentDecision_Type = exports.DyNTS_PrivacyShareGrant_MongoStore = exports.DyNTS_PrivacyShareGrant_ControlService = exports.DyNTS_PrivacyExportSchema_Util = exports.DyNTS_PrivacyExportBundle_ControlService = exports.DyNTS_PrivacyLedger_MongoStore = exports.DyNTS_PrivacyLifecycle_MongoStore = exports.DyNTS_PrivacyExportArtifact_MongoStore = exports.DyNTS_privacyExportArtifactContributorId = exports.DyNTS_PrivacyExportArtifactPrivacyContributor_ControlService = exports.DyNTS_PrivacyExportArtifact_ControlService = exports.DyNTS_PrivacyConsentAuthorization_ControlService = exports.DyNTS_PrivacyLedger_ControlService = exports.DyNTS_PrivacyRequestCursor_ControlService = exports.DyNTS_PrivacyMutationGate_MongoStore = exports.DyNTS_PrivacyRightsNotificationState_Type = exports.DyNTS_PrivacyRightsNotificationChannel_Type = exports.DyNTS_PrivacyRightsRectificationDecision_Type = exports.DyNTS_PrivacyRightsPurposeDecision_Type = exports.DyNTS_PrivacyRightsValue_Type = exports.DyNTS_PrivacyRightsNotification_MongoStore = exports.DyNTS_PrivacyRightsExecution_MongoStore = exports.DyNTS_PrivacyRightsCustody_MongoStore = exports.DyNTS_PrivacyRightsInput_ControlService = exports.DyNTS_PrivacyContributorRequestRouter_ControlService = exports.DyNTS_PrivacyContributorVerify_Util = exports.DyNTS_PrivacyLifecycle_ControlService = void 0;
|
|
4
4
|
var privacy_lifecycle_control_service_1 = require("./privacy-lifecycle.control-service");
|
|
5
5
|
Object.defineProperty(exports, "DyNTS_PrivacyLifecycle_ControlService", { enumerable: true, get: function () { return privacy_lifecycle_control_service_1.DyNTS_PrivacyLifecycle_ControlService; } });
|
|
6
|
+
// BFR-FUTDEVPRO-065 — the shared post-condition of the privacy domain adapters
|
|
7
|
+
var privacy_contributor_verify_util_1 = require("./privacy-contributor-verify.util");
|
|
8
|
+
Object.defineProperty(exports, "DyNTS_PrivacyContributorVerify_Util", { enumerable: true, get: function () { return privacy_contributor_verify_util_1.DyNTS_PrivacyContributorVerify_Util; } });
|
|
6
9
|
var privacy_contributor_request_router_control_service_1 = require("./privacy-contributor-request-router.control-service");
|
|
7
10
|
Object.defineProperty(exports, "DyNTS_PrivacyContributorRequestRouter_ControlService", { enumerable: true, get: function () { return privacy_contributor_request_router_control_service_1.DyNTS_PrivacyContributorRequestRouter_ControlService; } });
|
|
8
11
|
var privacy_rights_input_control_service_1 = require("./privacy-rights-input.control-service");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/_modules/privacy-lifecycle/index.ts"],"names":[],"mappings":";;;AAAA,yFAA4F;AAAnF,0JAAA,qCAAqC,OAAA;AAC9C,2HAE8D;AAD5D,0LAAA,oDAAoD,OAAA;AAEtD,+FAAiG;AAAxF,+JAAA,uCAAuC,OAAA;AAChD,2FAA6F;AAApF,2JAAA,qCAAqC,OAAA;AAC9C,+FAAiG;AAAxF,+JAAA,uCAAuC,OAAA;AAChD,qGAAuG;AAA9F,qKAAA,0CAA0C,OAAA;AAUnD,0FAAwF;AAA/E,+IAAA,6BAA6B,OAAA;AACtC,gGAGoD;AAFlD,4JAAA,uCAAuC,OAAA;AACvC,kKAAA,6CAA6C,OAAA;AAiC/C,oHAG8D;AAF5D,0KAAA,2CAA2C,OAAA;AAC3C,wKAAA,yCAAyC,OAAA;AAE3C,yFAA2F;AAAlF,yJAAA,oCAAoC,OAAA;AAM7C,mGAAqG;AAA5F,mKAAA,yCAAyC,OAAA;AAClD,mFAAsF;AAA7E,oJAAA,kCAAkC,OAAA;AAC3C,iHAEyD;AADvD,iLAAA,gDAAgD,OAAA;AAElD,qGAAuG;AAA9F,qKAAA,0CAA0C,OAAA;AACnD,6IAGuE;AAFrE,2MAAA,4DAA4D,OAAA;AAC5D,uLAAA,wCAAwC,OAAA;AAE1C,6FAA+F;AAAtF,6JAAA,sCAAsC,OAAA;AAC/C,iFAKyC;AAJvC,kJAAA,iCAAiC,OAAA;AAKnC,2EAKsC;AAJpC,4IAAA,8BAA8B,OAAA;AAKhC,iGAAmG;AAA1F,iKAAA,wCAAwC,OAAA;AACjD,2EAA8E;AAArE,4IAAA,8BAA8B,OAAA;AAC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E;AAFrE,2MAAA,4DAA4D,OAAA;AAC5D,uLAAA,wCAAwC,OAAA;AAE1C,6FAA+F;AAAtF,6JAAA,sCAAsC,OAAA;AAC/C,iFAKyC;AAJvC,kJAAA,iCAAiC,OAAA;AAKnC,2EAKsC;AAJpC,4IAAA,8BAA8B,OAAA;AAKhC,iGAAmG;AAA1F,iKAAA,wCAAwC,OAAA;AACjD,2EAA8E;AAArE,4IAAA,8BAA8B,OAAA;AACvC,6FAA+F;AAAtF,6JAAA,sCAAsC,OAAA;AAC/C,qFAAuF;AAA9E,qJAAA,kCAAkC,OAAA;AAe3C,kGAAgG;AAAvF,uJAAA,iCAAiC,OAAA;AAC1C,0HAEiE;AAD/D,8KAAA,4CAA4C,OAAA;AAE9C,sGAAoG;AAA3F,2JAAA,mCAAmC,OAAA;AAC5C,sHAE+D;AAD7D,0KAAA,0CAA0C,OAAA;AAE5C,wGAAsG;AAA7F,6JAAA,oCAAoC,OAAA;AAC7C,4FAA0F;AAAjF,iJAAA,8BAA8B,OAAA;AACvC,gFAA+E;AAAtE,sIAAA,yBAAyB,OAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DyNTS_PrivacyContributorOutcome_Interface } from './_models/privacy-contributor-outcome.interface';
|
|
2
|
+
/**
|
|
3
|
+
* BFR-FUTDEVPRO-065 — the post-condition of a privacy contributor (`verify`) in ONE place. The same `switch` lived in 7
|
|
4
|
+
* domain adapters of 4 products (adventor, credit, master-prompter, futdevpro x4), so a future change of the rule would
|
|
5
|
+
* have drifted between them.
|
|
6
|
+
*/
|
|
7
|
+
export declare class DyNTS_PrivacyContributorVerify_Util {
|
|
8
|
+
/**
|
|
9
|
+
* The post-condition by the records that are STILL there after the action.
|
|
10
|
+
*
|
|
11
|
+
* - `delete` / `noData` ⇒ nothing may remain;
|
|
12
|
+
* - `export` ⇒ the records must still be there, at least as many as the export processed (an export removes nothing);
|
|
13
|
+
* - any other action ⇒ `false` (fail-closed: an action this rule does not know is never reported as verified).
|
|
14
|
+
*
|
|
15
|
+
* @param outcome the outcome the contributor reported
|
|
16
|
+
* @param remaining how many of the subject's records the adapter finds NOW
|
|
17
|
+
* @returns whether the outcome holds
|
|
18
|
+
* @example
|
|
19
|
+
* async verify(context, outcome): Promise<boolean> {
|
|
20
|
+
* const { points, levels } = await this.loadAll(context);
|
|
21
|
+
* return DyNTS_PrivacyContributorVerify_Util.byRemaining(outcome, points.length + levels.length);
|
|
22
|
+
* }
|
|
23
|
+
*/
|
|
24
|
+
static byRemaining(outcome: DyNTS_PrivacyContributorOutcome_Interface, remaining: number): boolean;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=privacy-contributor-verify.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privacy-contributor-verify.util.d.ts","sourceRoot":"","sources":["../../../src/_modules/privacy-lifecycle/privacy-contributor-verify.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yCAAyC,EAAE,MAAM,iDAAiD,CAAC;AAE5G;;;;GAIG;AACH,qBAAa,mCAAmC;IAE9C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,yCAAyC,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO;CAanG"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DyNTS_PrivacyContributorVerify_Util = void 0;
|
|
4
|
+
const privacy_contributor_action_type_enum_1 = require("./_enums/privacy-contributor-action.type-enum");
|
|
5
|
+
/**
|
|
6
|
+
* BFR-FUTDEVPRO-065 — the post-condition of a privacy contributor (`verify`) in ONE place. The same `switch` lived in 7
|
|
7
|
+
* domain adapters of 4 products (adventor, credit, master-prompter, futdevpro x4), so a future change of the rule would
|
|
8
|
+
* have drifted between them.
|
|
9
|
+
*/
|
|
10
|
+
class DyNTS_PrivacyContributorVerify_Util {
|
|
11
|
+
/**
|
|
12
|
+
* The post-condition by the records that are STILL there after the action.
|
|
13
|
+
*
|
|
14
|
+
* - `delete` / `noData` ⇒ nothing may remain;
|
|
15
|
+
* - `export` ⇒ the records must still be there, at least as many as the export processed (an export removes nothing);
|
|
16
|
+
* - any other action ⇒ `false` (fail-closed: an action this rule does not know is never reported as verified).
|
|
17
|
+
*
|
|
18
|
+
* @param outcome the outcome the contributor reported
|
|
19
|
+
* @param remaining how many of the subject's records the adapter finds NOW
|
|
20
|
+
* @returns whether the outcome holds
|
|
21
|
+
* @example
|
|
22
|
+
* async verify(context, outcome): Promise<boolean> {
|
|
23
|
+
* const { points, levels } = await this.loadAll(context);
|
|
24
|
+
* return DyNTS_PrivacyContributorVerify_Util.byRemaining(outcome, points.length + levels.length);
|
|
25
|
+
* }
|
|
26
|
+
*/
|
|
27
|
+
static byRemaining(outcome, remaining) {
|
|
28
|
+
switch (outcome?.action) {
|
|
29
|
+
case privacy_contributor_action_type_enum_1.DyNTS_PrivacyContributorAction_Type.delete:
|
|
30
|
+
case privacy_contributor_action_type_enum_1.DyNTS_PrivacyContributorAction_Type.noData:
|
|
31
|
+
return !remaining;
|
|
32
|
+
case privacy_contributor_action_type_enum_1.DyNTS_PrivacyContributorAction_Type.export:
|
|
33
|
+
return remaining >= outcome.processedRecordCount;
|
|
34
|
+
default:
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.DyNTS_PrivacyContributorVerify_Util = DyNTS_PrivacyContributorVerify_Util;
|
|
40
|
+
//# sourceMappingURL=privacy-contributor-verify.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privacy-contributor-verify.util.js","sourceRoot":"","sources":["../../../src/_modules/privacy-lifecycle/privacy-contributor-verify.util.ts"],"names":[],"mappings":";;;AAAA,wGAAoG;AAGpG;;;;GAIG;AACH,MAAa,mCAAmC;IAE9C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,WAAW,CAAC,OAAkD,EAAE,SAAiB;QACtF,QAAQ,OAAO,EAAE,MAAM,EAAE,CAAC;YACxB,KAAK,0EAAmC,CAAC,MAAM,CAAC;YAChD,KAAK,0EAAmC,CAAC,MAAM;gBAC7C,OAAO,CAAC,SAAS,CAAC;YAEpB,KAAK,0EAAmC,CAAC,MAAM;gBAC7C,OAAO,SAAS,IAAI,OAAO,CAAC,oBAAoB,CAAC;YAEnD;gBACE,OAAO,KAAK,CAAC;QACjB,CAAC;IACH,CAAC;CACF;AA/BD,kFA+BC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@futdevpro/nts-dynamo",
|
|
3
|
-
"version": "01.15.
|
|
3
|
+
"version": "01.15.431",
|
|
4
4
|
"description": "Dynamic NodeTS (NodeJS-Typescript), MongoDB Backend System Framework by Future Development Program Ltd.",
|
|
5
5
|
"DyBu_settings": {
|
|
6
6
|
"packageType": "server-package",
|
|
@@ -544,7 +544,7 @@
|
|
|
544
544
|
}
|
|
545
545
|
},
|
|
546
546
|
"devDependencies": {
|
|
547
|
-
"@futdevpro/fsm-dynamo": "1.20.
|
|
547
|
+
"@futdevpro/fsm-dynamo": "1.20.135",
|
|
548
548
|
"@futdevpro/dynamo-eslint": "1.20.66",
|
|
549
549
|
"@discordjs/opus": "^0.10.0",
|
|
550
550
|
"@discordjs/voice": "^0.18.0",
|