@darraghor/nest-backend-libs 2.17.8 → 2.17.9
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.
|
@@ -6,7 +6,7 @@ export declare class OrganisationSubscriptionsController {
|
|
|
6
6
|
private readonly osrService;
|
|
7
7
|
constructor(osrService: OrganisationSubscriptionService);
|
|
8
8
|
findAll(orgUuid: string, request: RequestWithUser): Promise<OrganisationSubscriptionRecord[]>;
|
|
9
|
-
addSubscription(body: SaveOrganisationSubscriptionRecordDto): Promise<OrganisationSubscriptionRecord>;
|
|
10
|
-
updateSubscription(subUuid: string, body: SaveOrganisationSubscriptionRecordDto): Promise<OrganisationSubscriptionRecord>;
|
|
11
|
-
deleteSubscription(uuid: string): Promise<boolean>;
|
|
9
|
+
addSubscription(orgUuid: string, body: SaveOrganisationSubscriptionRecordDto): Promise<OrganisationSubscriptionRecord>;
|
|
10
|
+
updateSubscription(subUuid: string, orgUuid: string, body: SaveOrganisationSubscriptionRecordDto): Promise<OrganisationSubscriptionRecord>;
|
|
11
|
+
deleteSubscription(orgUuid: string, uuid: string): Promise<boolean>;
|
|
12
12
|
}
|
|
@@ -29,13 +29,13 @@ let OrganisationSubscriptionsController = class OrganisationSubscriptionsControl
|
|
|
29
29
|
async findAll(orgUuid, request) {
|
|
30
30
|
return this.osrService.findAllForOwnerOfOrg(orgUuid, request.user.id);
|
|
31
31
|
}
|
|
32
|
-
async addSubscription(body) {
|
|
32
|
+
async addSubscription(orgUuid, body) {
|
|
33
33
|
return this.osrService.create(body);
|
|
34
34
|
}
|
|
35
|
-
async updateSubscription(subUuid, body) {
|
|
35
|
+
async updateSubscription(subUuid, orgUuid, body) {
|
|
36
36
|
return this.osrService.update(subUuid, body);
|
|
37
37
|
}
|
|
38
|
-
async deleteSubscription(uuid) {
|
|
38
|
+
async deleteSubscription(orgUuid, uuid) {
|
|
39
39
|
return this.osrService.delete(uuid);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
@@ -52,9 +52,10 @@ __decorate([
|
|
|
52
52
|
(0, authz_1.MandatoryUserClaims)("modify:all"),
|
|
53
53
|
(0, common_1.Post)(),
|
|
54
54
|
(0, swagger_1.ApiOkResponse)({ type: organisation_subscription_entity_1.OrganisationSubscriptionRecord }),
|
|
55
|
-
__param(0, (0, common_1.
|
|
55
|
+
__param(0, (0, common_1.Param)("orgUuid")),
|
|
56
|
+
__param(1, (0, common_1.Body)()),
|
|
56
57
|
__metadata("design:type", Function),
|
|
57
|
-
__metadata("design:paramtypes", [saveSubscriptionDto_1.SaveOrganisationSubscriptionRecordDto]),
|
|
58
|
+
__metadata("design:paramtypes", [String, saveSubscriptionDto_1.SaveOrganisationSubscriptionRecordDto]),
|
|
58
59
|
__metadata("design:returntype", Promise)
|
|
59
60
|
], OrganisationSubscriptionsController.prototype, "addSubscription", null);
|
|
60
61
|
__decorate([
|
|
@@ -62,18 +63,20 @@ __decorate([
|
|
|
62
63
|
(0, common_1.Put)(":uuid"),
|
|
63
64
|
(0, swagger_1.ApiOkResponse)({ type: organisation_subscription_entity_1.OrganisationSubscriptionRecord }),
|
|
64
65
|
__param(0, (0, common_1.Param)("uuid")),
|
|
65
|
-
__param(1, (0, common_1.
|
|
66
|
+
__param(1, (0, common_1.Param)("orgUuid")),
|
|
67
|
+
__param(2, (0, common_1.Body)()),
|
|
66
68
|
__metadata("design:type", Function),
|
|
67
|
-
__metadata("design:paramtypes", [String, saveSubscriptionDto_1.SaveOrganisationSubscriptionRecordDto]),
|
|
69
|
+
__metadata("design:paramtypes", [String, String, saveSubscriptionDto_1.SaveOrganisationSubscriptionRecordDto]),
|
|
68
70
|
__metadata("design:returntype", Promise)
|
|
69
71
|
], OrganisationSubscriptionsController.prototype, "updateSubscription", null);
|
|
70
72
|
__decorate([
|
|
71
73
|
(0, authz_1.MandatoryUserClaims)("modify:all"),
|
|
72
74
|
(0, common_1.Delete)(":uuid"),
|
|
73
75
|
(0, swagger_1.ApiOkResponse)({ type: [organisation_subscription_entity_1.OrganisationSubscriptionRecord] }),
|
|
74
|
-
__param(0, (0, common_1.Param)("
|
|
76
|
+
__param(0, (0, common_1.Param)("orgUuid")),
|
|
77
|
+
__param(1, (0, common_1.Param)("uuid")),
|
|
75
78
|
__metadata("design:type", Function),
|
|
76
|
-
__metadata("design:paramtypes", [String]),
|
|
79
|
+
__metadata("design:paramtypes", [String, String]),
|
|
77
80
|
__metadata("design:returntype", Promise)
|
|
78
81
|
], OrganisationSubscriptionsController.prototype, "deleteSubscription", null);
|
|
79
82
|
OrganisationSubscriptionsController = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organisation-subscriptions.controller.js","sourceRoot":"","sources":["../../src/organisation-subscriptions/organisation-subscriptions.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,2CAUwB;AACxB,6CAAsE;AACtE,+CAA2C;AAE3C,kGAA2F;AAC3F,6FAAqF;AACrF,oCAAuE;AACvE,sEAAmF;AAM5E,IAAM,mCAAmC,GAAzC,MAAM,mCAAmC;IACf;IAA7B,YAA6B,UAA2C;QAA3C,eAAU,GAAV,UAAU,CAAiC;IAAG,CAAC;IAItE,AAAN,KAAK,CAAC,OAAO,CACS,OAAe,EACtB,OAAwB;QAEnC,OAAO,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1E,CAAC;IAKK,AAAN,KAAK,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"organisation-subscriptions.controller.js","sourceRoot":"","sources":["../../src/organisation-subscriptions/organisation-subscriptions.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,2CAUwB;AACxB,6CAAsE;AACtE,+CAA2C;AAE3C,kGAA2F;AAC3F,6FAAqF;AACrF,oCAAuE;AACvE,sEAAmF;AAM5E,IAAM,mCAAmC,GAAzC,MAAM,mCAAmC;IACf;IA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