@darraghor/nest-backend-libs 2.12.7 → 2.12.8

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.
Files changed (24) hide show
  1. package/dist/stripe-client/{stripe-checkout-controller.d.ts → controllers/stripe-checkout-controller.d.ts} +4 -4
  2. package/dist/stripe-client/{stripe-checkout-controller.js → controllers/stripe-checkout-controller.js} +3 -3
  3. package/dist/stripe-client/controllers/stripe-checkout-controller.js.map +1 -0
  4. package/dist/stripe-client/{stripe-customer-portal-controller.d.ts → controllers/stripe-customer-portal-controller.d.ts} +2 -2
  5. package/dist/stripe-client/{stripe-customer-portal-controller.js → controllers/stripe-customer-portal-controller.js} +1 -1
  6. package/dist/stripe-client/controllers/stripe-customer-portal-controller.js.map +1 -0
  7. package/dist/stripe-client/{stripe-unauthenticated-checkout-controller.d.ts → controllers/stripe-unauthenticated-checkout-controller.d.ts} +3 -3
  8. package/dist/stripe-client/{stripe-unauthenticated-checkout-controller.js → controllers/stripe-unauthenticated-checkout-controller.js} +3 -3
  9. package/dist/stripe-client/controllers/stripe-unauthenticated-checkout-controller.js.map +1 -0
  10. package/dist/stripe-client/{stripe-webhook-controller.d.ts → controllers/stripe-webhook-controller.d.ts} +1 -1
  11. package/dist/stripe-client/{stripe-webhook-controller.js → controllers/stripe-webhook-controller.js} +1 -1
  12. package/dist/stripe-client/controllers/stripe-webhook-controller.js.map +1 -0
  13. package/dist/stripe-client/index.d.ts +2 -2
  14. package/dist/stripe-client/index.js +2 -2
  15. package/dist/stripe-client/index.js.map +1 -1
  16. package/dist/stripe-client/services/stripe-event-handler.js +2 -0
  17. package/dist/stripe-client/services/stripe-event-handler.js.map +1 -1
  18. package/dist/stripe-client/stripe-account.module.js +2 -2
  19. package/dist/stripe-client/stripe-account.module.js.map +1 -1
  20. package/package.json +1 -1
  21. package/dist/stripe-client/stripe-checkout-controller.js.map +0 -1
  22. package/dist/stripe-client/stripe-customer-portal-controller.js.map +0 -1
  23. package/dist/stripe-client/stripe-unauthenticated-checkout-controller.js.map +0 -1
  24. package/dist/stripe-client/stripe-webhook-controller.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { RequestWithUser } from "../authz/RequestWithUser";
2
- import { StripeCheckoutSessionRequestDto } from "./models/StripeCheckoutSessionRequestDto";
3
- import { StripeCheckoutService } from "./services/stripe-checkout.service";
4
- import { StripeCheckoutSessionResponseDto } from "./models/StripeCheckoutSessionResponseDto";
1
+ import { RequestWithUser } from "../../authz/RequestWithUser";
2
+ import { StripeCheckoutSessionRequestDto } from "../models/StripeCheckoutSessionRequestDto";
3
+ import { StripeCheckoutService } from "../services/stripe-checkout.service";
4
+ import { StripeCheckoutSessionResponseDto } from "../models/StripeCheckoutSessionResponseDto";
5
5
  /**
6
6
  * This controller creates authenticated checkout sessions for Stripe.
7
7
  * It adds the user's email address and user ID to the session.
@@ -16,9 +16,9 @@ exports.StripeCheckoutController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
17
  const passport_1 = require("@nestjs/passport");
18
18
  const swagger_1 = require("@nestjs/swagger");
19
- const StripeCheckoutSessionRequestDto_1 = require("./models/StripeCheckoutSessionRequestDto");
20
- const stripe_checkout_service_1 = require("./services/stripe-checkout.service");
21
- const StripeCheckoutSessionResponseDto_1 = require("./models/StripeCheckoutSessionResponseDto");
19
+ const StripeCheckoutSessionRequestDto_1 = require("../models/StripeCheckoutSessionRequestDto");
20
+ const stripe_checkout_service_1 = require("../services/stripe-checkout.service");
21
+ const StripeCheckoutSessionResponseDto_1 = require("../models/StripeCheckoutSessionResponseDto");
22
22
  /**
23
23
  * This controller creates authenticated checkout sessions for Stripe.
24
24
  * It adds the user's email address and user ID to the session.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripe-checkout-controller.js","sourceRoot":"","sources":["../../../src/stripe-client/controllers/stripe-checkout-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA0E;AAC1E,+CAA2C;AAC3C,6CAAsE;AAEtE,+FAA0F;AAC1F,iFAA0E;AAC1E,iGAA4F;AAE5F;;;;;;GAMG;AAII,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACJ;IAA7B,YAA6B,aAAoC;QAApC,kBAAa,GAAb,aAAa,CAAuB;IAAG,CAAC;IAO/D,AADN,6DAA6D;IAC7D,KAAK,CAAC,qBAAqB,CACZ,OAAwB,EAC3B,gBAAiD;QAEzD,OAAO,IAAI,CAAC,aAAa,CAAC,kCAAkC,CACxD,gBAAgB,EAChB,OAAO,CAAC,IAAI,CACf,CAAC;IACN,CAAC;CACJ,CAAA;AATS;IALL,IAAA,kBAAS,EAAC,IAAA,oBAAS,EAAC,KAAK,CAAC,CAAC;IAC3B,IAAA,uBAAa,GAAE;IACf,IAAA,aAAI,EAAC,kBAAkB,CAAC;IACxB,IAAA,uBAAa,EAAC,EAAC,IAAI,EAAE,mEAAgC,EAAC,CAAC;IACxD,6DAA6D;;IAExD,WAAA,IAAA,gBAAO,GAAE,CAAA;IACT,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAmB,iEAA+B;;qEAM5D;AAhBQ,wBAAwB;IAHpC,IAAA,mBAAU,EAAC,iBAAiB,CAAC;IAC7B,IAAA,iBAAO,EAAC,UAAU,CAAC;IACpB,iFAAiF;;qCAEjC,+CAAqB;GADxD,wBAAwB,CAiBpC;AAjBY,4DAAwB"}
@@ -1,5 +1,5 @@
1
- import { RequestWithUser } from "../authz/RequestWithUser";
2
- import { StripeCheckoutService } from "./services/stripe-checkout.service";
1
+ import { RequestWithUser } from "../../authz/RequestWithUser";
2
+ import { StripeCheckoutService } from "./../services/stripe-checkout.service";
3
3
  export declare class StripeCustomerPortalController {
4
4
  private readonly stripeService;
5
5
  constructor(stripeService: StripeCheckoutService);
@@ -16,7 +16,7 @@ exports.StripeCustomerPortalController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
17
  const passport_1 = require("@nestjs/passport");
18
18
  const swagger_1 = require("@nestjs/swagger");
19
- const stripe_checkout_service_1 = require("./services/stripe-checkout.service");
19
+ const stripe_checkout_service_1 = require("./../services/stripe-checkout.service");
20
20
  let StripeCustomerPortalController = class StripeCustomerPortalController {
21
21
  stripeService;
22
22
  constructor(stripeService) {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripe-customer-portal-controller.js","sourceRoot":"","sources":["../../../src/stripe-client/controllers/stripe-customer-portal-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,+CAA2C;AAC3C,6CAAsE;AAEtE,mFAA4E;AAIrE,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IACV;IAA7B,YAA6B,aAAoC;QAApC,kBAAa,GAAb,aAAa,CAAuB;IAAG,CAAC;IAO/D,AADN,6DAA6D;IAC7D,KAAK,CAAC,2BAA2B,CAAY,OAAwB;QACjE,OAAO,IAAI,CAAC,aAAa,CAAC,2BAA2B,CAAC;YAClD,IAAI,EAAE,OAAO,CAAC,IAAI;SACrB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AALS;IALL,IAAA,kBAAS,EAAC,IAAA,oBAAS,EAAC,KAAK,CAAC,CAAC;IAC3B,IAAA,uBAAa,GAAE;IACf,IAAA,aAAI,EAAC,yBAAyB,CAAC;IAC/B,IAAA,uBAAa,GAAE;IAChB,6DAA6D;;IAC1B,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;iFAI3C;AAZQ,8BAA8B;IAF1C,IAAA,mBAAU,EAAC,iBAAiB,CAAC;IAC7B,IAAA,iBAAO,EAAC,UAAU,CAAC;qCAE4B,+CAAqB;GADxD,8BAA8B,CAa1C;AAbY,wEAA8B"}
@@ -1,6 +1,6 @@
1
- import { StripeCheckoutSessionRequestDto } from "./models/StripeCheckoutSessionRequestDto";
2
- import { StripeCheckoutService } from "./services/stripe-checkout.service";
3
- import { StripeCheckoutSessionResponseDto } from "./models/StripeCheckoutSessionResponseDto";
1
+ import { StripeCheckoutSessionRequestDto } from "./../models/StripeCheckoutSessionRequestDto";
2
+ import { StripeCheckoutService } from "./../services/stripe-checkout.service";
3
+ import { StripeCheckoutSessionResponseDto } from "./../models/StripeCheckoutSessionResponseDto";
4
4
  /**
5
5
  * This controller creates checkout sessions for Stripe.
6
6
  * It does not require the user to be logged in.
@@ -15,9 +15,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.StripeUnauthenticatedCheckoutController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
17
  const swagger_1 = require("@nestjs/swagger");
18
- const StripeCheckoutSessionRequestDto_1 = require("./models/StripeCheckoutSessionRequestDto");
19
- const stripe_checkout_service_1 = require("./services/stripe-checkout.service");
20
- const StripeCheckoutSessionResponseDto_1 = require("./models/StripeCheckoutSessionResponseDto");
18
+ const StripeCheckoutSessionRequestDto_1 = require("./../models/StripeCheckoutSessionRequestDto");
19
+ const stripe_checkout_service_1 = require("./../services/stripe-checkout.service");
20
+ const StripeCheckoutSessionResponseDto_1 = require("./../models/StripeCheckoutSessionResponseDto");
21
21
  /**
22
22
  * This controller creates checkout sessions for Stripe.
23
23
  * It does not require the user to be logged in.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripe-unauthenticated-checkout-controller.js","sourceRoot":"","sources":["../../../src/stripe-client/controllers/stripe-unauthenticated-checkout-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,6CAAuD;AACvD,iGAA4F;AAC5F,mFAA4E;AAC5E,mGAA8F;AAE9F;;;;;;GAMG;AAII,IAAM,uCAAuC,GAA7C,MAAM,uCAAuC;IACnB;IAA7B,YAA6B,aAAoC;QAApC,kBAAa,GAAb,aAAa,CAAuB;IAAG,CAAC;IAK/D,AADN,6DAA6D;IAC7D,KAAK,CAAC,qBAAqB,CACf,gBAAiD;QAEzD,OAAO,IAAI,CAAC,aAAa,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;IACtE,CAAC;CACJ,CAAA;AALS;IAHL,IAAA,aAAI,EAAC,kCAAkC,CAAC;IACxC,IAAA,uBAAa,EAAC,EAAC,IAAI,EAAE,mEAAgC,EAAC,CAAC;IACxD,6DAA6D;;IAExD,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAmB,iEAA+B;;oFAG5D;AAVQ,uCAAuC;IAHnD,IAAA,mBAAU,EAAC,iBAAiB,CAAC;IAC7B,IAAA,iBAAO,EAAC,UAAU,CAAC;IACpB,iFAAiF;;qCAEjC,+CAAqB;GADxD,uCAAuC,CAWnD;AAXY,0FAAuC"}
@@ -1,6 +1,6 @@
1
1
  import { RawBodyRequest } from "@nestjs/common";
2
2
  import { Request as ExpressRequest } from "express";
3
- import { StripeWebhookHandler } from "./services/stripe-webhook-handler.service";
3
+ import { StripeWebhookHandler } from "./../services/stripe-webhook-handler.service";
4
4
  export declare class StripeWebhookController {
5
5
  private readonly stripeWebhookService;
6
6
  constructor(stripeWebhookService: StripeWebhookHandler);
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.StripeWebhookController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
17
  const swagger_1 = require("@nestjs/swagger");
18
- const stripe_webhook_handler_service_1 = require("./services/stripe-webhook-handler.service");
18
+ const stripe_webhook_handler_service_1 = require("./../services/stripe-webhook-handler.service");
19
19
  /*
20
20
  * This is a controller that is used to receive webhooks from Stripe.
21
21
  * It is not used to send requests to Stripe.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripe-webhook-controller.js","sourceRoot":"","sources":["../../../src/stripe-client/controllers/stripe-webhook-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAqE;AACrE,6CAA8E;AAE9E,iGAAkF;AAElF;;;;GAIG;AAGI,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IACH;IAA7B,YAA6B,oBAA0C;QAA1C,yBAAoB,GAApB,oBAAoB,CAAsB;IAAG,CAAC;IAE3E,4DAA4D;IAKtD,AADN,4FAA4F;IAC5F,KAAK,CAAC,eAAe,CAAQ,GAAmC;QAC5D,OAAO,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACxD,CAAC;CACJ,CAAA;AAHS;IAJL,IAAA,aAAI,EAAC,kBAAkB,CAAC;IACxB,IAAA,uBAAa,GAAE;IACf,IAAA,+BAAqB,GAAE;IACxB,4FAA4F;;IACrE,WAAA,IAAA,YAAG,GAAE,CAAA;;;;8DAE3B;AAVQ,uBAAuB;IAFnC,IAAA,mBAAU,EAAC,iBAAiB,CAAC;IAC7B,IAAA,iBAAO,EAAC,UAAU,CAAC;qCAEmC,qDAAoB;GAD9D,uBAAuB,CAWnC;AAXY,0DAAuB"}
@@ -1,5 +1,5 @@
1
- export { StripeCheckoutController } from "./stripe-checkout-controller";
2
- export { StripeUnauthenticatedCheckoutController } from "./stripe-unauthenticated-checkout-controller";
1
+ export { StripeCheckoutController } from "./controllers/stripe-checkout-controller";
2
+ export { StripeUnauthenticatedCheckoutController } from "./controllers/stripe-unauthenticated-checkout-controller";
3
3
  export { StripeEventHandler } from "./services/stripe-event-handler";
4
4
  export { StripeCheckoutSessionRequestDto } from "./models/StripeCheckoutSessionRequestDto";
5
5
  export { StripeCheckoutSessionResponseDto } from "./models/StripeCheckoutSessionResponseDto";
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StripeAccountModule = exports.StripeCheckoutLineItem = exports.StripeCheckoutSessionResponseDto = exports.StripeCheckoutSessionRequestDto = exports.StripeEventHandler = exports.StripeUnauthenticatedCheckoutController = exports.StripeCheckoutController = void 0;
4
- var stripe_checkout_controller_1 = require("./stripe-checkout-controller");
4
+ var stripe_checkout_controller_1 = require("./controllers/stripe-checkout-controller");
5
5
  Object.defineProperty(exports, "StripeCheckoutController", { enumerable: true, get: function () { return stripe_checkout_controller_1.StripeCheckoutController; } });
6
- var stripe_unauthenticated_checkout_controller_1 = require("./stripe-unauthenticated-checkout-controller");
6
+ var stripe_unauthenticated_checkout_controller_1 = require("./controllers/stripe-unauthenticated-checkout-controller");
7
7
  Object.defineProperty(exports, "StripeUnauthenticatedCheckoutController", { enumerable: true, get: function () { return stripe_unauthenticated_checkout_controller_1.StripeUnauthenticatedCheckoutController; } });
8
8
  var stripe_event_handler_1 = require("./services/stripe-event-handler");
9
9
  Object.defineProperty(exports, "StripeEventHandler", { enumerable: true, get: function () { return stripe_event_handler_1.StripeEventHandler; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/stripe-client/index.ts"],"names":[],"mappings":";;;AAAA,2EAAsE;AAA9D,sIAAA,wBAAwB,OAAA;AAChC,2GAAqG;AAA7F,qKAAA,uCAAuC,OAAA;AAC/C,wEAAmE;AAA3D,0HAAA,kBAAkB,OAAA;AAC1B,4FAAyF;AAAjF,kJAAA,+BAA+B,OAAA;AACvC,8FAA2F;AAAnF,oJAAA,gCAAgC,OAAA;AACxC,0EAAuE;AAA/D,gIAAA,sBAAsB,OAAA;AAC9B,iEAA4D;AAApD,4HAAA,mBAAmB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/stripe-client/index.ts"],"names":[],"mappings":";;;AAAA,uFAAkF;AAA1E,sIAAA,wBAAwB,OAAA;AAChC,uHAAiH;AAAzG,qKAAA,uCAAuC,OAAA;AAC/C,wEAAmE;AAA3D,0HAAA,kBAAkB,OAAA;AAC1B,4FAAyF;AAAjF,kJAAA,+BAA+B,OAAA;AACvC,8FAA2F;AAAnF,oJAAA,gCAAgC,OAAA;AACxC,0EAAuE;AAA/D,gIAAA,sBAAsB,OAAA;AAC9B,iEAA4D;AAApD,4HAAA,mBAAmB,OAAA"}
@@ -13,6 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.StripeEventHandler = void 0;
16
+ /* eslint-disable sonarjs/no-duplicated-branches */
16
17
  const common_1 = require("@nestjs/common");
17
18
  const bull_1 = require("@nestjs/bull");
18
19
  const CoreLoggerService_1 = __importDefault(require("../../logger/CoreLoggerService"));
@@ -40,6 +41,7 @@ let StripeEventHandler = class StripeEventHandler {
40
41
  async handleEvent(job) {
41
42
  const data = job.data.data;
42
43
  const eventType = job.data.type;
44
+ this.logger.log({ data, eventType });
43
45
  // see - https://stripe.com/docs/billing/subscriptions/webhooks
44
46
  switch (eventType) {
45
47
  case "checkout.session.completed": {
@@ -1 +1 @@
1
- {"version":3,"file":"stripe-event-handler.js","sourceRoot":"","sources":["../../../src/stripe-client/services/stripe-event-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA0C;AAC1C,uCAMsB;AAEtB,uFAA+D;AAQxD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IACE;IAA7B,YAA6B,MAAyB;QAAzB,WAAM,GAAN,MAAM,CAAmB;IAAG,CAAC;IAE1D,OAAO,CAAC,GAAsB,EAAE,KAAU;QACtC,IAAI,CAAC,MAAM,CAAC,KAAK;QACb,0KAA0K;QAC1K,cAAc,GAAG,CAAC,EAAE,YAAY,GAAG,CAAC,IAAI,KAAK,KAAK,CAAC,OAAc,EAAE;QACnE,sEAAsE;QACtE,KAAK,CAAC,KAAK,CACd,CAAC;IACN,CAAC;IAGD,0DAA0D;IAC1D,QAAQ,CAAC,GAAsB;QAC3B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,GAAG,CAAC,EAAE,YAAY,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAC1E,CAAC;IAGD,0DAA0D;IAC1D,UAAU,CAAC,GAAsB;QAC7B,IAAI,CAAC,MAAM,CAAC,GAAG,CACX,iBAAiB,GAAG,CAAC,EAAE,YAAY,GAAG,CAAC,IAAI,EAAE,EAC7C,GAAG,CAAC,IAAI,CACX,CAAC;IACN,CAAC;IAED,4DAA4D;IAE/C,AAAN,KAAK,CAAC,WAAW,CAAC,GAAsB;QAC3C,M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GAAE;IACnB,0DAA0D;;;;;oDAMzD;AAIY;IADZ,IAAA,cAAO,GAAE;;;;qDA2ET;AAvGQ,kBAAkB;IAL9B,IAAA,mBAAU,GAAE;IACZ,IAAA,gBAAS,EAAC,eAAe,CAAC;IAC3B,gFAAgF;IAChF,4DAA4D;IAC5D,iFAAiF;;qCAExC,2BAAiB;GAD7C,kBAAkB,CAwG9B;AAxGY,gDAAkB"}
@@ -22,8 +22,8 @@ const bull_1 = require("@nestjs/bull");
22
22
  const typeorm_1 = require("@nestjs/typeorm");
23
23
  const stripe_checkout_event_entity_1 = require("./entities/stripe-checkout-event.entity");
24
24
  const stripe_webhook_handler_service_1 = require("./services/stripe-webhook-handler.service");
25
- const stripe_webhook_controller_1 = require("./stripe-webhook-controller");
26
- const stripe_customer_portal_controller_1 = require("./stripe-customer-portal-controller");
25
+ const stripe_webhook_controller_1 = require("./controllers/stripe-webhook-controller");
26
+ const stripe_customer_portal_controller_1 = require("./controllers/stripe-customer-portal-controller");
27
27
  let StripeAccountModule = class StripeAccountModule {
28
28
  };
29
29
  StripeAccountModule = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"stripe-account.module.js","sourceRoot":"","sources":["../../src/stripe-client/stripe-account.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAsC;AACtC,4BAA0B;AAC1B,yFAAoF;AACpF,gFAAyE;AACzE,kGAA6D;AAC7D,2CAA4C;AAC5C,iEAAuD;AACvD,iEAA4D;AAC5D,uCAAwC;AACxC,6CAA8C;AAC9C,0FAA4E;AAC5E,8FAA+E;AAC/E,2EAAoE;AACpE,2FAAmF;AAoB5E,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,mBAAmB;IAlB/B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE;YACL,qBAAY,CAAC,UAAU,CAAC,sCAAe,CAAC;YACxC,uBAAa,CAAC,UAAU,CAAC,CAAC,kDAAmB,CAAC,CAAC;YAC/C,4BAAU;YACV,iBAAU,CAAC,aAAa,CAAC;gBACrB,IAAI,EAAE,eAAe;aACxB,CAAC;SACL;QACD,SAAS,EAAE;YACP,2CAAoB;YACpB,mEAAgC;YAChC,+CAAqB;YACrB,qDAAoB;SACvB;QACD,OAAO,EAAE,CAAC,+CAAqB,CAAC;QAChC,WAAW,EAAE,CAAC,mDAAuB,EAAE,kEAA8B,CAAC;KACzE,CAAC;GACW,mBAAmB,CAAG;AAAtB,kDAAmB"}
1
+ {"version":3,"file":"stripe-account.module.js","sourceRoot":"","sources":["../../src/stripe-client/stripe-account.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAsC;AACtC,4BAA0B;AAC1B,yFAAoF;AACpF,gFAAyE;AACzE,kGAA6D;AAC7D,2CAA4C;AAC5C,iEAAuD;AACvD,iEAA4D;AAC5D,uCAAwC;AACxC,6CAA8C;AAC9C,0FAA4E;AAC5E,8FAA+E;AAC/E,uFAAgF;AAChF,uGAA+F;AAoBxF,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,mBAAmB;IAlB/B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE;YACL,qBAAY,CAAC,UAAU,CAAC,sCAAe,CAAC;YACxC,uBAAa,CAAC,UAAU,CAAC,CAAC,kDAAmB,CAAC,CAAC;YAC/C,4BAAU;YACV,iBAAU,CAAC,aAAa,CAAC;gBACrB,IAAI,EAAE,eAAe;aACxB,CAAC;SACL;QACD,SAAS,EAAE;YACP,2CAAoB;YACpB,mEAAgC;YAChC,+CAAqB;YACrB,qDAAoB;SACvB;QACD,OAAO,EAAE,CAAC,+CAAqB,CAAC;QAChC,WAAW,EAAE,CAAC,mDAAuB,EAAE,kEAA8B,CAAC;KACzE,CAAC;GACW,mBAAmB,CAAG;AAAtB,kDAAmB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darraghor/nest-backend-libs",
3
- "version": "2.12.7",
3
+ "version": "2.12.8",
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",
@@ -1 +0,0 @@
1
- {"version":3,"file":"stripe-checkout-controller.js","sourceRoot":"","sources":["../../src/stripe-client/stripe-checkout-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA0E;AAC1E,+CAA2C;AAC3C,6CAAsE;AAEtE,8FAAyF;AACzF,gFAAyE;AACzE,gGAA2F;AAE3F;;;;;;GAMG;AAII,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACJ;IAA7B,YAA6B,aAAoC;QAApC,kBAAa,GAAb,aAAa,CAAuB;IAAG,CAAC;IAO/D,AADN,6DAA6D;IAC7D,KAAK,CAAC,qBAAqB,CACZ,OAAwB,EAC3B,gBAAiD;QAEzD,OAAO,IAAI,CAAC,aAAa,CAAC,kCAAkC,CACxD,gBAAgB,EAChB,OAAO,CAAC,IAAI,CACf,CAAC;IACN,CAAC;CACJ,CAAA;AATS;IALL,IAAA,kBAAS,EAAC,IAAA,oBAAS,EAAC,KAAK,CAAC,CAAC;IAC3B,IAAA,uBAAa,GAAE;IACf,IAAA,aAAI,EAAC,kBAAkB,CAAC;IACxB,IAAA,uBAAa,EAAC,EAAC,IAAI,EAAE,mEAAgC,EAAC,CAAC;IACxD,6DAA6D;;IAExD,WAAA,IAAA,gBAAO,GAAE,CAAA;IACT,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAmB,iEAA+B;;qEAM5D;AAhBQ,wBAAwB;IAHpC,IAAA,mBAAU,EAAC,iBAAiB,CAAC;IAC7B,IAAA,iBAAO,EAAC,UAAU,CAAC;IACpB,iFAAiF;;qCAEjC,+CAAqB;GADxD,wBAAwB,CAiBpC;AAjBY,4DAAwB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stripe-customer-portal-controller.js","sourceRoot":"","sources":["../../src/stripe-client/stripe-customer-portal-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,+CAA2C;AAC3C,6CAAsE;AAEtE,gFAAyE;AAIlE,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IACV;IAA7B,YAA6B,aAAoC;QAApC,kBAAa,GAAb,aAAa,CAAuB;IAAG,CAAC;IAO/D,AADN,6DAA6D;IAC7D,KAAK,CAAC,2BAA2B,CAAY,OAAwB;QACjE,OAAO,IAAI,CAAC,aAAa,CAAC,2BAA2B,CAAC;YAClD,IAAI,EAAE,OAAO,CAAC,IAAI;SACrB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AALS;IALL,IAAA,kBAAS,EAAC,IAAA,oBAAS,EAAC,KAAK,CAAC,CAAC;IAC3B,IAAA,uBAAa,GAAE;IACf,IAAA,aAAI,EAAC,yBAAyB,CAAC;IAC/B,IAAA,uBAAa,GAAE;IAChB,6DAA6D;;IAC1B,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;iFAI3C;AAZQ,8BAA8B;IAF1C,IAAA,mBAAU,EAAC,iBAAiB,CAAC;IAC7B,IAAA,iBAAO,EAAC,UAAU,CAAC;qCAE4B,+CAAqB;GADxD,8BAA8B,CAa1C;AAbY,wEAA8B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stripe-unauthenticated-checkout-controller.js","sourceRoot":"","sources":["../../src/stripe-client/stripe-unauthenticated-checkout-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,6CAAuD;AACvD,8FAAyF;AACzF,gFAAyE;AACzE,gGAA2F;AAE3F;;;;;;GAMG;AAII,IAAM,uCAAuC,GAA7C,MAAM,uCAAuC;IACnB;IAA7B,YAA6B,aAAoC;QAApC,kBAAa,GAAb,aAAa,CAAuB;IAAG,CAAC;IAK/D,AADN,6DAA6D;IAC7D,KAAK,CAAC,qBAAqB,CACf,gBAAiD;QAEzD,OAAO,IAAI,CAAC,aAAa,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,C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