@darraghor/nest-backend-libs 2.18.6 → 2.18.7

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.
@@ -7,6 +7,6 @@ export declare class OrganisationSubscriptionsController {
7
7
  private readonly osrService;
8
8
  constructor(osrService: OrganisationSubscriptionService);
9
9
  findAll(orgUuid: string, request: RequestWithUser): Promise<OrganisationSubscriptionRecord[]>;
10
- addSubscription(orgUuid: string, body: SaveOrganisationSubscriptionRecordDto[]): Promise<OrganisationSubscriptionRecord[]>;
10
+ addSubscription(orgUuid: string, body: SaveOrganisationSubscriptionRecordDto): Promise<OrganisationSubscriptionRecord[]>;
11
11
  deleteSubscription(orgUuid: string, uuid: string): Promise<BooleanResult>;
12
12
  }
@@ -20,6 +20,7 @@ const passport_1 = require("@nestjs/passport");
20
20
  const organisation_subscription_entity_1 = require("./entities/organisation-subscription.entity");
21
21
  const organisation_subscriptions_service_1 = require("./organisation-subscriptions.service");
22
22
  const authz_1 = require("../authz");
23
+ const fulfillSubscriptionDto_1 = require("./models/fulfillSubscriptionDto");
23
24
  const boolean_result_1 = require("../root-app/models/boolean-result");
24
25
  let OrganisationSubscriptionsController = class OrganisationSubscriptionsController {
25
26
  osrService;
@@ -30,7 +31,7 @@ let OrganisationSubscriptionsController = class OrganisationSubscriptionsControl
30
31
  return this.osrService.findAllForOwnerOfOrg(orgUuid, request.user.id);
31
32
  }
32
33
  async addSubscription(orgUuid, body) {
33
- return this.osrService.save(body);
34
+ return this.osrService.save([body]);
34
35
  }
35
36
  async deleteSubscription(orgUuid, uuid) {
36
37
  const isDeleted = await this.osrService.delete(uuid);
@@ -53,7 +54,7 @@ __decorate([
53
54
  __param(0, (0, common_1.Param)("orgUuid")),
54
55
  __param(1, (0, common_1.Body)()),
55
56
  __metadata("design:type", Function),
56
- __metadata("design:paramtypes", [String, Array]),
57
+ __metadata("design:paramtypes", [String, fulfillSubscriptionDto_1.SaveOrganisationSubscriptionRecordDto]),
57
58
  __metadata("design:returntype", Promise)
58
59
  ], OrganisationSubscriptionsController.prototype, "addSubscription", null);
59
60
  __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,2CASwB;AACxB,6CAAsE;AACtE,+CAA2C;AAE3C,kGAA2F;AAC3F,6FAAqF;AACrF,oCAAuE;AAEvE,sEAAgE;AAMzD,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,CACC,OAAe,EACzB,IAA6C;QAErD,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAKK,AAAN,KAAK,CAAC,kBAAkB,CACF,OAAe,EAClB,IAAY;QAE3B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACrD,OAAO,EAAC,MAAM,EAAE,SAAS,EAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AA3BS;IAFL,IAAA,YAAG,GAAE;IACL,IAAA,uBAAa,EAAC,EAAC,IAAI,EAAE,CAAC,iEAA8B,CAAC,EAAC,CAAC;IAEnD,WAAA,IAAA,cAAK,EAAC,SAAS,CAAC,CAAA;IAChB,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;kEAGb;AAKK;IAHL,IAAA,2BAAmB,EAAC,YAAY,CAAC;IACjC,IAAA,aAAI,GAAE;IACN,IAAA,uBAAa,EAAC,EAAC,IAAI,EAAE,CAAC,iEAA8B,CAAC,EAAC,CAAC;IAEnD,WAAA,IAAA,cAAK,EAAC,SAAS,CAAC,CAAA;IAChB,WAAA,IAAA,aAAI,GAAE,CAAA;;;;0EAGV;AAKK;IAHL,IAAA,2BAAmB,EAAC,YAAY,CAAC;IACjC,IAAA,eAAM,EAAC,OAAO,CAAC;IACf,IAAA,uBAAa,EAAC,EAAC,IAAI,EAAE,8BAAa,EAAC,CAAC;IAEhC,WAAA,IAAA,cAAK,EAAC,SAAS,CAAC,CAAA;IAChB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;;;6EAIjB;AA/BQ,mCAAmC;IAJ/C,IAAA,kBAAS,EAAC,IAAA,oBAAS,EAAC,KAAK,CAAC,EAAE,gCAAwB,CAAC;IACrD,IAAA,uBAAa,GAAE;IACf,IAAA,mBAAU,EAAC,qCAAqC,CAAC;IACjD,IAAA,iBAAO,EAAC,4BAA4B,CAAC;qCAEO,oEAA+B;GAD/D,mCAAmC,CAgC/C;AAhCY,kFAAmC"}
1
+ {"version":3,"file":"organisation-subscriptions.controller.js","sourceRoot":"","sources":["../../src/organisation-subscriptions/organisation-subscriptions.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,2CASwB;AACxB,6CAAsE;AACtE,+CAA2C;AAE3C,kGAA2F;AAC3F,6FAAqF;AACrF,oCAAuE;AACvE,4EAAsF;AACtF,sEAAgE;AAMzD,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,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AAO,EAAC,4BAA4B,CAAC;qCAEO,oEAA+B;GAD/D,mCAAmC,CAgC/C;AAhCY,kFAAmC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darraghor/nest-backend-libs",
3
- "version": "2.18.6",
3
+ "version": "2.18.7",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "description": "Some helpers for personal projects in nestjs",
6
6
  "homepage": "https://github.com/darraghoriordan/nest-backend-libs",