@nmshd/consumption 2.0.0-alpha.15 → 2.0.0-alpha.18
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/dist/buildInformation.js +5 -5
- package/dist/consumption/ConsumptionController.d.ts +6 -1
- package/dist/consumption/ConsumptionController.js +10 -6
- package/dist/consumption/ConsumptionController.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/attributes/ConsumptionAttributesController.d.ts +5 -1
- package/dist/modules/attributes/ConsumptionAttributesController.js +17 -2
- package/dist/modules/attributes/ConsumptionAttributesController.js.map +1 -1
- package/dist/modules/attributes/CreateConsumptionAttributeParams.d.ts +5 -2
- package/dist/modules/attributes/CreateConsumptionAttributeParams.js.map +1 -1
- package/dist/modules/attributes/CreatePeerConsumptionAttributeParams.d.ts +8 -2
- package/dist/modules/attributes/CreatePeerConsumptionAttributeParams.js.map +1 -1
- package/dist/modules/attributes/CreateSharedConsumptionAttributeCopyParams.d.ts +6 -1
- package/dist/modules/attributes/CreateSharedConsumptionAttributeCopyParams.js.map +1 -1
- package/dist/modules/attributes/GetIdentityAttributesParams.d.ts +12 -0
- package/dist/modules/attributes/GetIdentityAttributesParams.js +26 -0
- package/dist/modules/attributes/GetIdentityAttributesParams.js.map +1 -0
- package/dist/modules/attributes/GetRelationshipAttributesParams.d.ts +12 -0
- package/dist/modules/attributes/GetRelationshipAttributesParams.js +26 -0
- package/dist/modules/attributes/GetRelationshipAttributesParams.js.map +1 -0
- package/dist/modules/attributes/{SuccedConsumptionAttributeParams.d.ts → SucceedConsumptionAttributeParams.d.ts} +6 -2
- package/dist/modules/attributes/{SuccedConsumptionAttributeParams.js → SucceedConsumptionAttributeParams.js} +1 -1
- package/dist/modules/attributes/SucceedConsumptionAttributeParams.js.map +1 -0
- package/dist/modules/attributes/UpdateConsumptionAttributeParams.d.ts +6 -2
- package/dist/modules/attributes/UpdateConsumptionAttributeParams.js.map +1 -1
- package/dist/modules/attributes/local/QueryTranslator.d.ts +3 -0
- package/dist/modules/attributes/local/QueryTranslator.js +110 -0
- package/dist/modules/attributes/local/QueryTranslator.js.map +1 -0
- package/dist/modules/index.d.ts +8 -3
- package/dist/modules/index.js +8 -3
- package/dist/modules/index.js.map +1 -1
- package/lib-web/nmshd.consumption.js +9031 -138
- package/lib-web/nmshd.consumption.js.map +1 -1
- package/lib-web/nmshd.consumption.min.js +1 -1
- package/lib-web/nmshd.consumption.min.js.map +1 -1
- package/package.json +13 -10
- package/dist/modules/attributes/SuccedConsumptionAttributeParams.js.map +0 -1
- package/dist/modules/signatures/Signature.d.ts +0 -16
- package/dist/modules/signatures/Signature.js +0 -56
- package/dist/modules/signatures/Signature.js.map +0 -1
- package/dist/modules/signatures/SignatureContent.d.ts +0 -21
- package/dist/modules/signatures/SignatureContent.js +0 -59
- package/dist/modules/signatures/SignatureContent.js.map +0 -1
package/dist/buildInformation.js
CHANGED
|
@@ -6,11 +6,11 @@ const content_1 = require("@nmshd/content");
|
|
|
6
6
|
const crypto_1 = require("@nmshd/crypto");
|
|
7
7
|
const transport_1 = require("@nmshd/transport");
|
|
8
8
|
exports.buildInformation = {
|
|
9
|
-
version: "2.0.0-alpha.
|
|
10
|
-
build: "
|
|
11
|
-
date: "2022-05-
|
|
12
|
-
commit: "
|
|
13
|
-
dependencies: {},
|
|
9
|
+
version: "2.0.0-alpha.18",
|
|
10
|
+
build: "36",
|
|
11
|
+
date: "2022-05-31T09:24:56+00:00",
|
|
12
|
+
commit: "cc8c401d2579fc97a3540924841473b1525fdd32",
|
|
13
|
+
dependencies: {"@js-soft/docdb-querytranslator":"^1.0.1"},
|
|
14
14
|
libraries: {
|
|
15
15
|
transport: transport_1.buildInformation,
|
|
16
16
|
crypto: crypto_1.buildInformation,
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { AccountController, Transport } from "@nmshd/transport";
|
|
2
|
-
import { ConsumptionAttributesController
|
|
2
|
+
import { ConsumptionAttributesController } from "../modules/attributes/ConsumptionAttributesController";
|
|
3
|
+
import { DraftsController } from "../modules/drafts/DraftsController";
|
|
3
4
|
import { IncomingRequestsController } from "../modules/requests/incoming/IncomingRequestsController";
|
|
5
|
+
import { ProcessorConstructor } from "../modules/requests/itemProcessors/ProcessorConstructor";
|
|
6
|
+
import { RequestItemConstructor } from "../modules/requests/itemProcessors/RequestItemConstructor";
|
|
7
|
+
import { OutgoingRequestsController } from "../modules/requests/outgoing/OutgoingRequestsController";
|
|
8
|
+
import { SettingsController } from "../modules/settings/SettingsController";
|
|
4
9
|
export declare class ConsumptionController {
|
|
5
10
|
readonly transport: Transport;
|
|
6
11
|
readonly accountController: AccountController;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConsumptionController = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ConsumptionAttributesController_1 = require("../modules/attributes/ConsumptionAttributesController");
|
|
5
|
+
const DraftsController_1 = require("../modules/drafts/DraftsController");
|
|
5
6
|
const IncomingRequestsController_1 = require("../modules/requests/incoming/IncomingRequestsController");
|
|
7
|
+
const RequestItemProcessorRegistry_1 = require("../modules/requests/itemProcessors/RequestItemProcessorRegistry");
|
|
8
|
+
const OutgoingRequestsController_1 = require("../modules/requests/outgoing/OutgoingRequestsController");
|
|
9
|
+
const SettingsController_1 = require("../modules/settings/SettingsController");
|
|
6
10
|
class ConsumptionController {
|
|
7
11
|
constructor(transport, accountController) {
|
|
8
12
|
this.transport = transport;
|
|
@@ -24,12 +28,12 @@ class ConsumptionController {
|
|
|
24
28
|
return this._settings;
|
|
25
29
|
}
|
|
26
30
|
async init(requestItemProcessors = []) {
|
|
27
|
-
this._attributes = await new
|
|
28
|
-
this._drafts = await new
|
|
29
|
-
const processorRegistry = new
|
|
30
|
-
this._outgoingRequests = await new
|
|
31
|
+
this._attributes = await new ConsumptionAttributesController_1.ConsumptionAttributesController(this).init();
|
|
32
|
+
this._drafts = await new DraftsController_1.DraftsController(this).init();
|
|
33
|
+
const processorRegistry = new RequestItemProcessorRegistry_1.RequestItemProcessorRegistry(this, requestItemProcessors);
|
|
34
|
+
this._outgoingRequests = await new OutgoingRequestsController_1.OutgoingRequestsController(await this.accountController.getSynchronizedCollection("Requests"), processorRegistry, this).init();
|
|
31
35
|
this._incomingRequests = await new IncomingRequestsController_1.IncomingRequestsController(await this.accountController.getSynchronizedCollection("Requests"), processorRegistry, this).init();
|
|
32
|
-
this._settings = await new
|
|
36
|
+
this._settings = await new SettingsController_1.SettingsController(this).init();
|
|
33
37
|
return this;
|
|
34
38
|
}
|
|
35
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionController.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionController.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"ConsumptionController.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionController.ts"],"names":[],"mappings":";;;AACA,2GAAuG;AACvG,yEAAqE;AACrE,wGAAoG;AAGpG,kHAA8G;AAC9G,wGAAoG;AACpG,+EAA2E;AAE3E,MAAa,qBAAqB;IAC9B,YAAmC,SAAoB,EAAkB,iBAAoC;QAA1E,cAAS,GAAT,SAAS,CAAW;QAAkB,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAGjH,IAAW,UAAU;QACjB,OAAO,IAAI,CAAC,WAAW,CAAA;IAC3B,CAAC;IAGD,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAA;IACvB,CAAC;IAGD,IAAW,gBAAgB;QACvB,OAAO,IAAI,CAAC,iBAAiB,CAAA;IACjC,CAAC;IAGD,IAAW,gBAAgB;QACvB,OAAO,IAAI,CAAC,iBAAiB,CAAA;IACjC,CAAC;IAGD,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,SAAS,CAAA;IACzB,CAAC;IAEM,KAAK,CAAC,IAAI,CACb,wBAGM,EAAE;QAER,IAAI,CAAC,WAAW,GAAG,MAAM,IAAI,iEAA+B,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAA;QACzE,IAAI,CAAC,OAAO,GAAG,MAAM,IAAI,mCAAgB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAA;QACtD,MAAM,iBAAiB,GAAG,IAAI,2DAA4B,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAA;QACvF,IAAI,CAAC,iBAAiB,GAAG,MAAM,IAAI,uDAA0B,CACzD,MAAM,IAAI,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,UAAU,CAAC,EAClE,iBAAiB,EACjB,IAAI,CACP,CAAC,IAAI,EAAE,CAAA;QACR,IAAI,CAAC,iBAAiB,GAAG,MAAM,IAAI,uDAA0B,CACzD,MAAM,IAAI,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,UAAU,CAAC,EAClE,iBAAiB,EACjB,IAAI,CACP,CAAC,IAAI,EAAE,CAAA;QACR,IAAI,CAAC,SAAS,GAAG,MAAM,IAAI,uCAAkB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAA;QAC1D,OAAO,IAAI,CAAA;IACf,CAAC;CACJ;AAlDD,sDAkDC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./buildInformation"), exports);
|
|
18
|
+
__exportStar(require("./consumption"), exports);
|
|
18
19
|
__exportStar(require("./consumption/ConsumptionController"), exports);
|
|
19
|
-
__exportStar(require("./consumption/ConsumptionIds"), exports);
|
|
20
20
|
__exportStar(require("./modules"), exports);
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,sEAAmD;AACnD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,gDAA6B;AAC7B,sEAAmD;AACnD,4CAAyB"}
|
|
@@ -4,8 +4,10 @@ import { ConsumptionController } from "../../consumption/ConsumptionController";
|
|
|
4
4
|
import { ICreateConsumptionAttributeParams } from "./CreateConsumptionAttributeParams";
|
|
5
5
|
import { ICreatePeerConsumptionAttributeParams } from "./CreatePeerConsumptionAttributeParams";
|
|
6
6
|
import { ICreateSharedConsumptionAttributeCopyParams } from "./CreateSharedConsumptionAttributeCopyParams";
|
|
7
|
+
import { IGetIdentityAttributesParams } from "./GetIdentityAttributesParams";
|
|
8
|
+
import { IGetRelationshipAttributesParams } from "./GetRelationshipAttributesParams";
|
|
7
9
|
import { ConsumptionAttribute } from "./local/ConsumptionAttribute";
|
|
8
|
-
import { ISucceedConsumptionAttributeParams } from "./
|
|
10
|
+
import { ISucceedConsumptionAttributeParams } from "./SucceedConsumptionAttributeParams";
|
|
9
11
|
import { IUpdateConsumptionAttributeParams } from "./UpdateConsumptionAttributeParams";
|
|
10
12
|
export declare class ConsumptionAttributesController extends ConsumptionBaseController {
|
|
11
13
|
private attributes;
|
|
@@ -17,6 +19,8 @@ export declare class ConsumptionAttributesController extends ConsumptionBaseCont
|
|
|
17
19
|
getConsumptionAttribute(id: CoreId): Promise<ConsumptionAttribute | undefined>;
|
|
18
20
|
getConsumptionAttributes(query?: any): Promise<ConsumptionAttribute[]>;
|
|
19
21
|
getValidConsumptionAttributes(query?: any): Promise<ConsumptionAttribute[]>;
|
|
22
|
+
executeRelationshipAttributeQuery(params: IGetRelationshipAttributesParams): Promise<ConsumptionAttribute[]>;
|
|
23
|
+
executeIdentityAttributeQuery(params: IGetIdentityAttributesParams): Promise<ConsumptionAttribute[]>;
|
|
20
24
|
createConsumptionAttribute(params: ICreateConsumptionAttributeParams): Promise<ConsumptionAttribute>;
|
|
21
25
|
succeedConsumptionAttribute(params: ISucceedConsumptionAttributeParams): Promise<ConsumptionAttribute>;
|
|
22
26
|
createSharedConsumptionAttributeCopy(params: ICreateSharedConsumptionAttributeCopyParams): Promise<ConsumptionAttribute>;
|
|
@@ -7,7 +7,8 @@ const consumption_1 = require("../../consumption");
|
|
|
7
7
|
const CreateSharedConsumptionAttributeCopyParams_1 = require("./CreateSharedConsumptionAttributeCopyParams");
|
|
8
8
|
const ConsumptionAttribute_1 = require("./local/ConsumptionAttribute");
|
|
9
9
|
const ConsumptionAttributeShareInfo_1 = require("./local/ConsumptionAttributeShareInfo");
|
|
10
|
-
const
|
|
10
|
+
const QueryTranslator_1 = require("./local/QueryTranslator");
|
|
11
|
+
const SucceedConsumptionAttributeParams_1 = require("./SucceedConsumptionAttributeParams");
|
|
11
12
|
class ConsumptionAttributesController extends consumption_1.ConsumptionBaseController {
|
|
12
13
|
constructor(parent) {
|
|
13
14
|
super(consumption_1.ConsumptionControllerName.ConsumptionAttributesController, parent);
|
|
@@ -81,13 +82,27 @@ class ConsumptionAttributesController extends consumption_1.ConsumptionBaseContr
|
|
|
81
82
|
const items = await this.parseArray(attributes, ConsumptionAttribute_1.ConsumptionAttribute);
|
|
82
83
|
return this.filterCurrent(items);
|
|
83
84
|
}
|
|
85
|
+
async executeRelationshipAttributeQuery(params) {
|
|
86
|
+
const queryWithType = params.query;
|
|
87
|
+
queryWithType["attributeType"] = "RelationshipAttribute";
|
|
88
|
+
const dbQuery = QueryTranslator_1.relationshipQueryTranslator.parse(queryWithType);
|
|
89
|
+
const attributes = await this.attributes.find(dbQuery);
|
|
90
|
+
return attributes;
|
|
91
|
+
}
|
|
92
|
+
async executeIdentityAttributeQuery(params) {
|
|
93
|
+
const queryWithType = params.query;
|
|
94
|
+
queryWithType["attributeType"] = "IdentityAttribute";
|
|
95
|
+
const dbQuery = QueryTranslator_1.identityQueryTranslator.parse(queryWithType);
|
|
96
|
+
const attributes = await this.attributes.find(dbQuery);
|
|
97
|
+
return attributes;
|
|
98
|
+
}
|
|
84
99
|
async createConsumptionAttribute(params) {
|
|
85
100
|
const consumptionAttribute = await ConsumptionAttribute_1.ConsumptionAttribute.fromAttribute(params.content);
|
|
86
101
|
await this.attributes.create(consumptionAttribute);
|
|
87
102
|
return consumptionAttribute;
|
|
88
103
|
}
|
|
89
104
|
async succeedConsumptionAttribute(params) {
|
|
90
|
-
const parsedParams =
|
|
105
|
+
const parsedParams = SucceedConsumptionAttributeParams_1.SucceedConsumptionAttributeParams.from(params);
|
|
91
106
|
const current = await this.attributes.findOne({
|
|
92
107
|
[(0, ts_simple_nameof_1.nameof)((c) => c.id)]: params.succeeds.toString()
|
|
93
108
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionAttributesController.js","sourceRoot":"","sources":["../../../src/modules/attributes/ConsumptionAttributesController.ts"],"names":[],"mappings":";;;AAAA,gDAA4F;AAC5F,uDAAyC;AACzC,mDAA2G;AAI3G,6GAGqD;
|
|
1
|
+
{"version":3,"file":"ConsumptionAttributesController.js","sourceRoot":"","sources":["../../../src/modules/attributes/ConsumptionAttributesController.ts"],"names":[],"mappings":";;;AAAA,gDAA4F;AAC5F,uDAAyC;AACzC,mDAA2G;AAI3G,6GAGqD;AAGrD,uEAAmE;AACnE,yFAAqF;AACrF,6DAA8F;AAC9F,2FAG4C;AAG5C,MAAa,+BAAgC,SAAQ,uCAAyB;IAG1E,YAAmB,MAA6B;QAC5C,KAAK,CAAC,uCAAyB,CAAC,+BAA+B,EAAE,MAAM,CAAC,CAAA;IAC5E,CAAC;IAEe,KAAK,CAAC,IAAI;QACtB,MAAM,KAAK,CAAC,IAAI,EAAE,CAAA;QAElB,IAAI,CAAC,UAAU,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,YA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AC,OAAO,EAAE;YACV,MAAM,2BAAe,CAAC,OAAO,CAAC,cAAc,CAAC,2CAAoB,EAAE,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAA;SAC3F;QACD,MAAM,2BAA2B,GAAG,2CAAoB,CAAC,IAAI,CAAC;YAC1D,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ;SAC7B,CAAC,CAAA;QACF,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,2BAA2B,CAAC,CAAA;QAClE,OAAO,2BAA2B,CAAA;IACtC,CAAC;IAEM,KAAK,CAAC,eAAe,CAAC,SAA+B;QACxD,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IAC3C,CAAC;CACJ;AAtMD,0EAsMC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
import { IdentityAttribute, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute } from "@nmshd/content";
|
|
2
|
+
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "@nmshd/content";
|
|
3
|
+
export interface CreateConsumptionAttributeParamsJSON {
|
|
4
|
+
content: IdentityAttributeJSON | RelationshipAttributeJSON;
|
|
5
|
+
}
|
|
3
6
|
export interface ICreateConsumptionAttributeParams extends ISerializable {
|
|
4
7
|
content: IIdentityAttribute | IRelationshipAttribute;
|
|
5
8
|
}
|
|
6
9
|
export declare class CreateConsumptionAttributeParams extends Serializable implements ICreateConsumptionAttributeParams {
|
|
7
10
|
content: IdentityAttribute | RelationshipAttribute;
|
|
8
|
-
static from(value: ICreateConsumptionAttributeParams): CreateConsumptionAttributeParams;
|
|
11
|
+
static from(value: ICreateConsumptionAttributeParams | CreateConsumptionAttributeParamsJSON): CreateConsumptionAttributeParams;
|
|
9
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateConsumptionAttributeParams.js","sourceRoot":"","sources":["../../../src/modules/attributes/CreateConsumptionAttributeParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AACrF,
|
|
1
|
+
{"version":3,"file":"CreateConsumptionAttributeParams.js","sourceRoot":"","sources":["../../../src/modules/attributes/CreateConsumptionAttributeParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AACrF,4CAOuB;AAUvB,MAAa,gCAAiC,SAAQ,wBAAY;IAKvD,MAAM,CAAC,IAAI,CACd,KAA+E;QAE/E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AAPG;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,2BAAiB,EAAE,+BAAqB,CAAC,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;;iEAC8C;AAH7D,4EAUC"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
import { IdentityAttribute, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute } from "@nmshd/content";
|
|
2
|
+
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "@nmshd/content";
|
|
3
3
|
import { CoreAddress, CoreId, ICoreAddress, ICoreId } from "@nmshd/transport";
|
|
4
|
+
export interface CreatePeerConsumptionAttributeParamsJSON {
|
|
5
|
+
id: string;
|
|
6
|
+
content: IdentityAttributeJSON | RelationshipAttributeJSON;
|
|
7
|
+
requestReferece: string;
|
|
8
|
+
peer: string;
|
|
9
|
+
}
|
|
4
10
|
export interface ICreatePeerConsumptionAttributeParams extends ISerializable {
|
|
5
11
|
id: ICoreId;
|
|
6
12
|
content: IIdentityAttribute | IRelationshipAttribute;
|
|
@@ -12,5 +18,5 @@ export declare class CreatePeerConsumptionAttributeParams extends Serializable i
|
|
|
12
18
|
content: IdentityAttribute | RelationshipAttribute;
|
|
13
19
|
requestReference: CoreId;
|
|
14
20
|
peer: CoreAddress;
|
|
15
|
-
static from(value: ICreatePeerConsumptionAttributeParams): CreatePeerConsumptionAttributeParams;
|
|
21
|
+
static from(value: ICreatePeerConsumptionAttributeParams | CreatePeerConsumptionAttributeParamsJSON): CreatePeerConsumptionAttributeParams;
|
|
16
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreatePeerConsumptionAttributeParams.js","sourceRoot":"","sources":["../../../src/modules/attributes/CreatePeerConsumptionAttributeParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AACrF,
|
|
1
|
+
{"version":3,"file":"CreatePeerConsumptionAttributeParams.js","sourceRoot":"","sources":["../../../src/modules/attributes/CreatePeerConsumptionAttributeParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AACrF,4CAOuB;AACvB,gDAA6E;AAgB7E,MAAa,oCACT,SAAQ,wBAAY;IAmBb,MAAM,CAAC,IAAI,CACd,KAAuF;QAEvF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AAnBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACA,kBAAM;gEAAA;AAIjB;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,2BAAiB,EAAE,+BAAqB,CAAC,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;;qEAC8C;AAIzD;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACc,kBAAM;8EAAA;AAI/B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACE,uBAAW;kEAAA;AAlB5B,oFAyBC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreAddress, CoreId, ICoreAddress, ICoreId } from "@nmshd/transport";
|
|
3
|
+
export interface CreateSharedConsumptionAttributeCopyParamsJSON {
|
|
4
|
+
attributeId: string;
|
|
5
|
+
peer: string;
|
|
6
|
+
requestReference: string;
|
|
7
|
+
}
|
|
3
8
|
export interface ICreateSharedConsumptionAttributeCopyParams extends ISerializable {
|
|
4
9
|
attributeId: ICoreId;
|
|
5
10
|
peer: ICoreAddress;
|
|
@@ -9,5 +14,5 @@ export declare class CreateSharedConsumptionAttributeCopyParams extends Serializ
|
|
|
9
14
|
attributeId: CoreId;
|
|
10
15
|
peer: CoreAddress;
|
|
11
16
|
requestReference: CoreId;
|
|
12
|
-
static from(value: ICreateSharedConsumptionAttributeCopyParams): CreateSharedConsumptionAttributeCopyParams;
|
|
17
|
+
static from(value: ICreateSharedConsumptionAttributeCopyParams | CreateSharedConsumptionAttributeCopyParamsJSON): CreateSharedConsumptionAttributeCopyParams;
|
|
13
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateSharedConsumptionAttributeCopyParams.js","sourceRoot":"","sources":["../../../src/modules/attributes/CreateSharedConsumptionAttributeCopyParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AACrF,gDAA6E;
|
|
1
|
+
{"version":3,"file":"CreateSharedConsumptionAttributeCopyParams.js","sourceRoot":"","sources":["../../../src/modules/attributes/CreateSharedConsumptionAttributeCopyParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AACrF,gDAA6E;AAc7E,MAAa,0CACT,SAAQ,wBAAY;IAeb,MAAM,CAAC,IAAI,CACd,KAAmG;QAEnG,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AAfG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACS,kBAAM;+EAAA;AAI1B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACE,uBAAW;wEAAA;AAIxB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACc,kBAAM;oFAAA;AAdnC,gGAqBC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { IdentityAttributeQuery, IdentityAttributeQueryJSON, IIdentityAttributeQuery } from "@nmshd/content";
|
|
3
|
+
export interface GetIdentityAttributesParamsJSON {
|
|
4
|
+
query: IdentityAttributeQueryJSON;
|
|
5
|
+
}
|
|
6
|
+
export interface IGetIdentityAttributesParams extends ISerializable {
|
|
7
|
+
query: IIdentityAttributeQuery;
|
|
8
|
+
}
|
|
9
|
+
export declare class GetIdentityAttributesParams extends Serializable implements IGetIdentityAttributesParams {
|
|
10
|
+
query: IdentityAttributeQuery;
|
|
11
|
+
static from(value: IGetIdentityAttributesParams | GetIdentityAttributesParamsJSON): GetIdentityAttributesParams;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetIdentityAttributesParams = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const content_1 = require("@nmshd/content");
|
|
15
|
+
class GetIdentityAttributesParams extends ts_serval_1.Serializable {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, ts_serval_1.serialize)(),
|
|
22
|
+
(0, ts_serval_1.validate)(),
|
|
23
|
+
__metadata("design:type", content_1.IdentityAttributeQuery)
|
|
24
|
+
], GetIdentityAttributesParams.prototype, "query", void 0);
|
|
25
|
+
exports.GetIdentityAttributesParams = GetIdentityAttributesParams;
|
|
26
|
+
//# sourceMappingURL=GetIdentityAttributesParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetIdentityAttributesParams.js","sourceRoot":"","sources":["../../../src/modules/attributes/GetIdentityAttributesParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AACrF,4CAA4G;AAU5G,MAAa,2BAA4B,SAAQ,wBAAY;IAKlD,MAAM,CAAC,IAAI,CACd,KAAqE;QAErE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AAPG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACG,gCAAsB;0DAAA;AAHxC,kEAUC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { IRelationshipAttributeQuery, RelationshipAttributeQuery, RelationshipAttributeQueryJSON } from "@nmshd/content";
|
|
3
|
+
export interface GetRelationshipAttributesParamsJSON {
|
|
4
|
+
query: RelationshipAttributeQueryJSON;
|
|
5
|
+
}
|
|
6
|
+
export interface IGetRelationshipAttributesParams extends ISerializable {
|
|
7
|
+
query: IRelationshipAttributeQuery;
|
|
8
|
+
}
|
|
9
|
+
export declare class GetRelationshipAttributesParams extends Serializable implements IGetRelationshipAttributesParams {
|
|
10
|
+
query: RelationshipAttributeQuery;
|
|
11
|
+
static from(value: IGetRelationshipAttributesParams | GetRelationshipAttributesParamsJSON): GetRelationshipAttributesParams;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetRelationshipAttributesParams = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const content_1 = require("@nmshd/content");
|
|
15
|
+
class GetRelationshipAttributesParams extends ts_serval_1.Serializable {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, ts_serval_1.serialize)(),
|
|
22
|
+
(0, ts_serval_1.validate)(),
|
|
23
|
+
__metadata("design:type", content_1.RelationshipAttributeQuery)
|
|
24
|
+
], GetRelationshipAttributesParams.prototype, "query", void 0);
|
|
25
|
+
exports.GetRelationshipAttributesParams = GetRelationshipAttributesParams;
|
|
26
|
+
//# sourceMappingURL=GetRelationshipAttributesParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetRelationshipAttributesParams.js","sourceRoot":"","sources":["../../../src/modules/attributes/GetRelationshipAttributesParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AACrF,4CAAwH;AAUxH,MAAa,+BAAgC,SAAQ,wBAAY;IAKtD,MAAM,CAAC,IAAI,CACd,KAA6E;QAE7E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AAPG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACG,oCAA0B;8DAAA;AAH5C,0EAUC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
import { IdentityAttribute, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute } from "@nmshd/content";
|
|
2
|
+
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "@nmshd/content";
|
|
3
3
|
import { CoreId, ICoreId } from "@nmshd/transport";
|
|
4
|
+
export interface SucceedConsumptionAttributeParamsJSON {
|
|
5
|
+
successorContent: IdentityAttributeJSON | RelationshipAttributeJSON;
|
|
6
|
+
succeeds: string;
|
|
7
|
+
}
|
|
4
8
|
export interface ISucceedConsumptionAttributeParams extends ISerializable {
|
|
5
9
|
successorContent: IIdentityAttribute | IRelationshipAttribute;
|
|
6
10
|
succeeds: ICoreId;
|
|
@@ -8,5 +12,5 @@ export interface ISucceedConsumptionAttributeParams extends ISerializable {
|
|
|
8
12
|
export declare class SucceedConsumptionAttributeParams extends Serializable implements ISucceedConsumptionAttributeParams {
|
|
9
13
|
successorContent: IdentityAttribute | RelationshipAttribute;
|
|
10
14
|
succeeds: CoreId;
|
|
11
|
-
static from(value: ISucceedConsumptionAttributeParams): SucceedConsumptionAttributeParams;
|
|
15
|
+
static from(value: ISucceedConsumptionAttributeParams | SucceedConsumptionAttributeParamsJSON): SucceedConsumptionAttributeParams;
|
|
12
16
|
}
|
|
@@ -29,4 +29,4 @@ __decorate([
|
|
|
29
29
|
__metadata("design:type", transport_1.CoreId)
|
|
30
30
|
], SucceedConsumptionAttributeParams.prototype, "succeeds", void 0);
|
|
31
31
|
exports.SucceedConsumptionAttributeParams = SucceedConsumptionAttributeParams;
|
|
32
|
-
//# sourceMappingURL=
|
|
32
|
+
//# sourceMappingURL=SucceedConsumptionAttributeParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SucceedConsumptionAttributeParams.js","sourceRoot":"","sources":["../../../src/modules/attributes/SucceedConsumptionAttributeParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AACrF,4CAOuB;AACvB,gDAAkD;AAYlD,MAAa,iCAAkC,SAAQ,wBAAY;IASxD,MAAM,CAAC,IAAI,CACd,KAAiF;QAEjF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AAXG;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,2BAAiB,EAAE,+BAAqB,CAAC,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;;2EACuD;AAIlE;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACM,kBAAM;mEAAA;AAP3B,8EAcC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
import { IdentityAttribute, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute } from "@nmshd/content";
|
|
2
|
+
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "@nmshd/content";
|
|
3
3
|
import { CoreId, ICoreId } from "@nmshd/transport";
|
|
4
|
+
export interface UpdateConsumptionAttributeParamsJSON extends ISerializable {
|
|
5
|
+
id: string;
|
|
6
|
+
content: IdentityAttributeJSON | RelationshipAttributeJSON;
|
|
7
|
+
}
|
|
4
8
|
export interface IUpdateConsumptionAttributeParams extends ISerializable {
|
|
5
9
|
id: ICoreId;
|
|
6
10
|
content: IIdentityAttribute | IRelationshipAttribute;
|
|
@@ -8,5 +12,5 @@ export interface IUpdateConsumptionAttributeParams extends ISerializable {
|
|
|
8
12
|
export declare class UpdateConsumptionAttributeParams extends Serializable implements IUpdateConsumptionAttributeParams {
|
|
9
13
|
id: CoreId;
|
|
10
14
|
content: IdentityAttribute | RelationshipAttribute;
|
|
11
|
-
static from(value: IUpdateConsumptionAttributeParams): UpdateConsumptionAttributeParams;
|
|
15
|
+
static from(value: IUpdateConsumptionAttributeParams | UpdateConsumptionAttributeParamsJSON): UpdateConsumptionAttributeParams;
|
|
12
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateConsumptionAttributeParams.js","sourceRoot":"","sources":["../../../src/modules/attributes/UpdateConsumptionAttributeParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AACrF,
|
|
1
|
+
{"version":3,"file":"UpdateConsumptionAttributeParams.js","sourceRoot":"","sources":["../../../src/modules/attributes/UpdateConsumptionAttributeParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AACrF,4CAOuB;AACvB,gDAAkD;AAYlD,MAAa,gCAAiC,SAAQ,wBAAY;IASvD,MAAM,CAAC,IAAI,CACd,KAA+E;QAE/E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AAXG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACA,kBAAM;4DAAA;AAIjB;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,2BAAiB,EAAE,+BAAqB,CAAC,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;;iEAC8C;AAP7D,4EAcC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.relationshipQueryTranslator = exports.identityQueryTranslator = void 0;
|
|
4
|
+
const docdb_querytranslator_1 = require("@js-soft/docdb-querytranslator");
|
|
5
|
+
const luxon_1 = require("luxon");
|
|
6
|
+
const ts_simple_nameof_1 = require("ts-simple-nameof");
|
|
7
|
+
exports.identityQueryTranslator = new docdb_querytranslator_1.QueryTranslator({
|
|
8
|
+
whitelist: {
|
|
9
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.tags)]: true,
|
|
10
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.valueType)]: true,
|
|
11
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.validFrom)]: true,
|
|
12
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.validTo)]: true,
|
|
13
|
+
attributeType: true
|
|
14
|
+
},
|
|
15
|
+
alias: {
|
|
16
|
+
// @type of attributeValue
|
|
17
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.valueType)]: [
|
|
18
|
+
`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.value)}.@type`
|
|
19
|
+
],
|
|
20
|
+
// @type of attribute
|
|
21
|
+
attributeType: [`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.@type`]
|
|
22
|
+
},
|
|
23
|
+
custom: {
|
|
24
|
+
// tags
|
|
25
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.tags)]: (query, input) => {
|
|
26
|
+
const allowedTags = [];
|
|
27
|
+
for (const tag of input) {
|
|
28
|
+
const tagQuery = {
|
|
29
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.tags)}`]: { $contains: tag }
|
|
30
|
+
};
|
|
31
|
+
allowedTags.push(tagQuery);
|
|
32
|
+
}
|
|
33
|
+
query["$or"] = allowedTags;
|
|
34
|
+
},
|
|
35
|
+
// validFrom
|
|
36
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.validFrom)]: (query, input) => {
|
|
37
|
+
if (!input) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const validFromUtcString = luxon_1.DateTime.fromISO(input).toUTC().toString();
|
|
41
|
+
query[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.validFrom)}`] = {
|
|
42
|
+
$gte: validFromUtcString
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
// validTo
|
|
46
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.validTo)]: (query, input) => {
|
|
47
|
+
if (!input) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const validToUtcString = luxon_1.DateTime.fromISO(input).toUTC().toString();
|
|
51
|
+
query[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.validTo)}`] = {
|
|
52
|
+
$lte: validToUtcString
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
exports.relationshipQueryTranslator = new docdb_querytranslator_1.QueryTranslator({
|
|
58
|
+
whitelist: {
|
|
59
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.key)]: true,
|
|
60
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.valueType)]: true,
|
|
61
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.validFrom)]: true,
|
|
62
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.validTo)]: true,
|
|
63
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.owner)]: true,
|
|
64
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.thirdParty)]: true,
|
|
65
|
+
attributeType: true
|
|
66
|
+
},
|
|
67
|
+
alias: {
|
|
68
|
+
// key
|
|
69
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.key)]: [
|
|
70
|
+
`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.key)}`
|
|
71
|
+
],
|
|
72
|
+
// @type of attributeValue
|
|
73
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.valueType)]: [
|
|
74
|
+
`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.value)}.@type`
|
|
75
|
+
],
|
|
76
|
+
// @type of attribute
|
|
77
|
+
attributeType: [`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.@type`],
|
|
78
|
+
// owner
|
|
79
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.owner)]: [
|
|
80
|
+
`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.owner)}`
|
|
81
|
+
],
|
|
82
|
+
// peer
|
|
83
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.thirdParty)]: [
|
|
84
|
+
`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.peer)}`
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
custom: {
|
|
88
|
+
// validFrom
|
|
89
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.validFrom)]: (query, input) => {
|
|
90
|
+
if (!input) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
const validFromUtcString = luxon_1.DateTime.fromISO(input).toUTC().toString();
|
|
94
|
+
query[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.validFrom)}`] = {
|
|
95
|
+
$gte: validFromUtcString
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
// validTo
|
|
99
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.validTo)]: (query, input) => {
|
|
100
|
+
if (!input) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const validToUtcString = luxon_1.DateTime.fromISO(input).toUTC().toString();
|
|
104
|
+
query[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.validTo)}`] = {
|
|
105
|
+
$lte: validToUtcString
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
//# sourceMappingURL=QueryTranslator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryTranslator.js","sourceRoot":"","sources":["../../../../src/modules/attributes/local/QueryTranslator.ts"],"names":[],"mappings":";;;AAAA,0EAAgE;AAShE,iCAAgC;AAChC,uDAAyC;AAI5B,QAAA,uBAAuB,GAAG,IAAI,uCAAe,CAAC;IACvD,SAAS,EAAE;QACP,CAAC,IAAA,yBAAM,EAA0B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI;QACtD,CAAC,IAAA,yBAAM,EAA0B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI;QAC3D,CAAC,IAAA,yBAAM,EAA0B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI;QAC3D,CAAC,IAAA,yBAAM,EAA0B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI;QACzD,aAAa,EAAE,IAAI;KACtB;IACD,KAAK,EAAE;QACH,0BAA0B;QAC1B,CAAC,IAAA,yBAAM,EAA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AM,gBAAgB,GAAG,gBAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAA;YACnE,KAAK,CACD,GAAG,IAAA,yBAAM,EAAuB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,IAAA,yBAAM,EAAwB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CACzG,GAAG;gBACA,IAAI,EAAE,gBAAgB;aACzB,CAAA;QACL,CAAC;KACJ;CACJ,CAAC,CAAA"}
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -2,8 +2,12 @@ export * from "./attributes/ConsumptionAttributesController";
|
|
|
2
2
|
export * from "./attributes/CreateConsumptionAttributeParams";
|
|
3
3
|
export * from "./attributes/CreatePeerConsumptionAttributeParams";
|
|
4
4
|
export * from "./attributes/CreateSharedConsumptionAttributeCopyParams";
|
|
5
|
+
export * from "./attributes/GetIdentityAttributesParams";
|
|
6
|
+
export * from "./attributes/GetRelationshipAttributesParams";
|
|
5
7
|
export * from "./attributes/local/ConsumptionAttribute";
|
|
6
|
-
export * from "./attributes/
|
|
8
|
+
export * from "./attributes/local/ConsumptionAttributeShareInfo";
|
|
9
|
+
export * from "./attributes/SucceedConsumptionAttributeParams";
|
|
10
|
+
export * from "./attributes/UpdateConsumptionAttributeParams";
|
|
7
11
|
export * from "./drafts/DraftsController";
|
|
8
12
|
export * from "./drafts/local/Draft";
|
|
9
13
|
export * from "./requests/incoming/checkPrerequisites/CheckPrerequisitesOfIncomingRequestParameters";
|
|
@@ -17,7 +21,9 @@ export * from "./requests/incoming/DecideRequestParametersValidator";
|
|
|
17
21
|
export * from "./requests/incoming/IncomingRequestsController";
|
|
18
22
|
export * from "./requests/incoming/received/ReceivedIncomingRequestParameters";
|
|
19
23
|
export * from "./requests/incoming/requireManualDecision/RequireManualDecisionOfIncomingRequestParameters";
|
|
24
|
+
export * from "./requests/itemProcessors/AbstractRequestItemProcessor";
|
|
20
25
|
export * from "./requests/itemProcessors/GenericRequestItemProcessor";
|
|
26
|
+
export * from "./requests/itemProcessors/IRequestItemProcessor";
|
|
21
27
|
export * from "./requests/itemProcessors/ProcessorConstructor";
|
|
22
28
|
export * from "./requests/itemProcessors/readAttribute/AcceptReadAttributeRequestItemParameters";
|
|
23
29
|
export * from "./requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor";
|
|
@@ -33,7 +39,6 @@ export * from "./requests/outgoing/createFromRelationshipCreationChange/CreateOu
|
|
|
33
39
|
export * from "./requests/outgoing/createOutgoingRequest/CreateOutgoingRequestParameters";
|
|
34
40
|
export * from "./requests/outgoing/OutgoingRequestsController";
|
|
35
41
|
export * from "./requests/outgoing/sentOutgoingRequest/SentOutgoingRequestParameters";
|
|
42
|
+
export * from "./settings/local/CreateSettingParameter";
|
|
36
43
|
export * from "./settings/local/Setting";
|
|
37
44
|
export * from "./settings/SettingsController";
|
|
38
|
-
export * from "./signatures/Signature";
|
|
39
|
-
export * from "./signatures/SignatureContent";
|