@bondsports/types 2.0.72 → 2.0.74

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 (29) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/index.d.ts +1 -0
  3. package/dist/types/index.js +1 -0
  4. package/dist/types/index.js.map +1 -1
  5. package/dist/types/notifications/dto/index.d.ts +2 -0
  6. package/dist/types/notifications/dto/index.js +19 -0
  7. package/dist/types/notifications/dto/index.js.map +1 -0
  8. package/dist/types/notifications/dto/notification.create.dto.d.ts +39 -0
  9. package/dist/types/notifications/dto/notification.create.dto.js +62 -0
  10. package/dist/types/notifications/dto/notification.create.dto.js.map +1 -0
  11. package/dist/types/notifications/dto/notification.response.dto.d.ts +21 -0
  12. package/dist/types/notifications/dto/notification.response.dto.js +30 -0
  13. package/dist/types/notifications/dto/notification.response.dto.js.map +1 -0
  14. package/dist/types/notifications/index.d.ts +2 -0
  15. package/dist/types/notifications/index.js +19 -0
  16. package/dist/types/notifications/index.js.map +1 -0
  17. package/dist/types/notifications/types/enums/index.d.ts +1 -0
  18. package/dist/types/notifications/types/enums/index.js +18 -0
  19. package/dist/types/notifications/types/enums/index.js.map +1 -0
  20. package/dist/types/notifications/types/enums/notification.enums.d.ts +18 -0
  21. package/dist/types/notifications/types/enums/notification.enums.js +28 -0
  22. package/dist/types/notifications/types/enums/notification.enums.js.map +1 -0
  23. package/dist/types/notifications/types/index.d.ts +1 -0
  24. package/dist/types/notifications/types/index.js +18 -0
  25. package/dist/types/notifications/types/index.js.map +1 -0
  26. package/dist/types/payment/dto/payment-plan.dto.d.ts +3 -2
  27. package/dist/types/payment/dto/payment-plan.dto.js +2 -2
  28. package/dist/types/payment/dto/payment-plan.dto.js.map +1 -1
  29. package/package.json +1 -1
@@ -17,6 +17,7 @@ export * from './membership';
17
17
  export * from './models';
18
18
  export * from './monitor-config';
19
19
  export * from './notes';
20
+ export * from './notifications';
20
21
  export * from './notifyTracker';
21
22
  export * from './organization';
22
23
  export * from './payment';
@@ -33,6 +33,7 @@ __exportStar(require("./membership"), exports);
33
33
  __exportStar(require("./models"), exports);
34
34
  __exportStar(require("./monitor-config"), exports);
35
35
  __exportStar(require("./notes"), exports);
36
+ __exportStar(require("./notifications"), exports);
36
37
  __exportStar(require("./notifyTracker"), exports);
37
38
  __exportStar(require("./organization"), exports);
38
39
  __exportStar(require("./payment"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,yCAAuB;AACvB,kDAAgC;AAChC,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB;AACtB,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,yCAAuB;AACvB,kDAAgC;AAChC,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB;AACtB,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,4CAA0B;AAC1B,oDAAkC;AAClC,6CAA2B;AAC3B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B"}
@@ -0,0 +1,2 @@
1
+ export * from './notification.create.dto';
2
+ export * from './notification.response.dto';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./notification.create.dto"), exports);
18
+ __exportStar(require("./notification.response.dto"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,8DAA4C"}
@@ -0,0 +1,39 @@
1
+ /**************************
2
+ * ************************
3
+ * ************************
4
+ *
5
+ * COPIED FROM https://github.com/Bond-Sports/NotificationsService
6
+ *
7
+ * + Convenience API added.
8
+ *
9
+ * ************************
10
+ * ************************
11
+ */
12
+ import { NotificationDeliveryChannel } from '../types/enums/notification.enums';
13
+ export declare class SenderDto {
14
+ static UNKNOWN_USER_ID: number;
15
+ userId: number;
16
+ organizationId?: number;
17
+ facilityId?: number;
18
+ replyTo?: string;
19
+ constructor(userId: number, organizationId?: number, facilityId?: number, replyTo?: string);
20
+ }
21
+ export declare class RecipientsDto {
22
+ to: string[];
23
+ cc?: string[];
24
+ bcc?: string[];
25
+ static to(to: string): RecipientsDto;
26
+ }
27
+ export declare class ContentDto {
28
+ bodyText: string;
29
+ bodyHtml?: string;
30
+ subject?: string;
31
+ }
32
+ export declare class NotificationCreateDto {
33
+ channel: NotificationDeliveryChannel;
34
+ sender: SenderDto;
35
+ recipients: RecipientsDto[];
36
+ content: ContentDto;
37
+ deliveryPayload?: any;
38
+ static sendgridTemplate(toEmailAddress: string, dynamicTemplateData: any, sendingUserId: number, sendingOrganizationId?: number, sendingFacilityId?: number): NotificationCreateDto;
39
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /**************************
3
+ * ************************
4
+ * ************************
5
+ *
6
+ * COPIED FROM https://github.com/Bond-Sports/NotificationsService
7
+ *
8
+ * + Convenience API added.
9
+ *
10
+ * ************************
11
+ * ************************
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.NotificationCreateDto = exports.ContentDto = exports.RecipientsDto = exports.SenderDto = void 0;
15
+ const notification_enums_1 = require("../types/enums/notification.enums");
16
+ // This file contains DTOs for sending notifications with the SendService.
17
+ // Start at the Notification object, below.
18
+ // It contains all the other request objects.
19
+ class SenderDto {
20
+ // Added for convenience.
21
+ // Not part of NotificationsService object definitions.
22
+ constructor(userId, organizationId, facilityId, replyTo) {
23
+ this.userId = userId;
24
+ this.organizationId = organizationId;
25
+ this.facilityId = facilityId;
26
+ this.replyTo = replyTo;
27
+ }
28
+ }
29
+ exports.SenderDto = SenderDto;
30
+ // used in cases where the user is unknown / unknowable (ie. "system" generated without clear user action)
31
+ SenderDto.UNKNOWN_USER_ID = -10;
32
+ class RecipientsDto {
33
+ // Added for convenience.
34
+ // Not part of NotificationsService object definitions.
35
+ static to(to) {
36
+ const r = new RecipientsDto();
37
+ r.to = [to];
38
+ return r;
39
+ }
40
+ }
41
+ exports.RecipientsDto = RecipientsDto;
42
+ class ContentDto {
43
+ }
44
+ exports.ContentDto = ContentDto;
45
+ class NotificationCreateDto {
46
+ // Added for convenience.
47
+ // Not part of NotificationsService object definitions.
48
+ static sendgridTemplate(toEmailAddress, dynamicTemplateData, sendingUserId, sendingOrganizationId, sendingFacilityId) {
49
+ const note = new NotificationCreateDto();
50
+ note.channel = notification_enums_1.NotificationDeliveryChannel.EMAIL;
51
+ note.sender = new SenderDto(sendingUserId, sendingOrganizationId, sendingFacilityId);
52
+ note.recipients = [RecipientsDto.to(toEmailAddress)];
53
+ // there is no Content object when using a sendgrid template, it's the template and dynamic data:
54
+ note.deliveryPayload = {
55
+ // `templateId` *is necessary* -- it is looked up (via template Name) & set in the NotificationsService.
56
+ dynamicTemplateData: dynamicTemplateData,
57
+ };
58
+ return note;
59
+ }
60
+ }
61
+ exports.NotificationCreateDto = NotificationCreateDto;
62
+ //# sourceMappingURL=notification.create.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.create.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/notification.create.dto.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,0EAAgF;AAEhF,0EAA0E;AAE1E,2CAA2C;AAC3C,6CAA6C;AAE7C,MAAa,SAAS;IAYrB,yBAAyB;IACzB,uDAAuD;IACvD,YAAY,MAAc,EAAE,cAAuB,EAAE,UAAmB,EAAE,OAAgB;QACzF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACxB,CAAC;;AAnBF,8BAoBC;AAnBA,0GAA0G;AACnG,yBAAe,GAAG,CAAC,EAAE,CAAC;AAoB9B,MAAa,aAAa;IAUzB,yBAAyB;IACzB,uDAAuD;IACvD,MAAM,CAAC,EAAE,CAAC,EAAU;QACnB,MAAM,CAAC,GAAG,IAAI,aAAa,EAAE,CAAC;QAC9B,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;QACZ,OAAO,CAAC,CAAC;IACV,CAAC;CACD;AAjBD,sCAiBC;AAED,MAAa,UAAU;CAMtB;AAND,gCAMC;AAED,MAAa,qBAAqB;IAiBjC,yBAAyB;IACzB,uDAAuD;IACvD,MAAM,CAAC,gBAAgB,CACtB,cAAsB,EACtB,mBAAwB,EACxB,aAAqB,EACrB,qBAA8B,EAC9B,iBAA0B;QAE1B,MAAM,IAAI,GAAG,IAAI,qBAAqB,EAAE,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,gDAA2B,CAAC,KAAK,CAAC;QACjD,IAAI,CAAC,MAAM,GAAG,IAAI,SAAS,CAAC,aAAa,EAAE,qBAAqB,EAAE,iBAAiB,CAAC,CAAC;QACrF,IAAI,CAAC,UAAU,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;QACrD,iGAAiG;QACjG,IAAI,CAAC,eAAe,GAAG;YACtB,wGAAwG;YACxG,mBAAmB,EAAE,mBAAmB;SACxC,CAAC;QACF,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AArCD,sDAqCC"}
@@ -0,0 +1,21 @@
1
+ /**************************
2
+ * ************************
3
+ * ************************
4
+ * COPIED FROM https://github.com/Bond-Sports/NotificationsService
5
+ * ************************
6
+ * ************************
7
+ */
8
+ import { SendErrorCode } from '../types/enums/notification.enums';
9
+ export declare class SendErrorDto {
10
+ error: SendErrorCode;
11
+ serviceCode?: number;
12
+ serviceReason?: string;
13
+ }
14
+ export declare class SendResultDto {
15
+ attempted: number;
16
+ succeeded: number;
17
+ failed: number;
18
+ errors: SendErrorDto[];
19
+ constructor(attempted?: number, succeeded?: number, failed?: number, errors?: [SendErrorDto]);
20
+ static withError(error: SendErrorDto): SendResultDto;
21
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ /**************************
3
+ * ************************
4
+ * ************************
5
+ * COPIED FROM https://github.com/Bond-Sports/NotificationsService
6
+ * ************************
7
+ * ************************
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.SendResultDto = exports.SendErrorDto = void 0;
11
+ class SendErrorDto {
12
+ }
13
+ exports.SendErrorDto = SendErrorDto;
14
+ class SendResultDto {
15
+ constructor(attempted = 0, succeeded = 0, failed = 0, errors) {
16
+ this.attempted = 0;
17
+ this.succeeded = 0;
18
+ this.failed = 0;
19
+ this.errors = [];
20
+ this.attempted = attempted;
21
+ this.succeeded = succeeded;
22
+ this.failed = failed;
23
+ this.errors = errors ? errors : [];
24
+ }
25
+ static withError(error) {
26
+ return new SendResultDto(0, 0, 0, [error]);
27
+ }
28
+ }
29
+ exports.SendResultDto = SendResultDto;
30
+ //# sourceMappingURL=notification.response.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.response.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/notification.response.dto.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIH,MAAa,YAAY;CAMxB;AAND,oCAMC;AAED,MAAa,aAAa;IASzB,YAAY,YAAoB,CAAC,EAAE,YAAoB,CAAC,EAAE,SAAiB,CAAC,EAAE,MAAuB;QARrG,cAAS,GAAW,CAAC,CAAC;QAEtB,cAAS,GAAW,CAAC,CAAC;QAEtB,WAAM,GAAW,CAAC,CAAC;QAEnB,WAAM,GAAmB,EAAE,CAAC;QAG3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACpC,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,KAAmB;QACnC,OAAO,IAAI,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5C,CAAC;CACD;AAnBD,sCAmBC"}
@@ -0,0 +1,2 @@
1
+ export * from './dto';
2
+ export * from './types';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dto"), exports);
18
+ __exportStar(require("./types"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from './notification.enums';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./notification.enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
@@ -0,0 +1,18 @@
1
+ /**************************
2
+ * ************************
3
+ * ************************
4
+ *
5
+ * COPIED FROM https://github.com/Bond-Sports/NotificationsService
6
+ *
7
+ *
8
+ * ************************
9
+ * ************************
10
+ */
11
+ export declare enum NotificationDeliveryChannel {
12
+ EMAIL = "EMAIL",
13
+ SMS = "SMS"
14
+ }
15
+ export declare enum SendErrorCode {
16
+ BAD_DELIVERY_CHANNEL = 400,
17
+ SENDGRID_ERROR = 401
18
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ /**************************
3
+ * ************************
4
+ * ************************
5
+ *
6
+ * COPIED FROM https://github.com/Bond-Sports/NotificationsService
7
+ *
8
+ *
9
+ * ************************
10
+ * ************************
11
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.SendErrorCode = exports.NotificationDeliveryChannel = void 0;
14
+ var NotificationDeliveryChannel;
15
+ (function (NotificationDeliveryChannel) {
16
+ NotificationDeliveryChannel["EMAIL"] = "EMAIL";
17
+ // SMS is not yet implemented. Error will be returned if attempted.
18
+ NotificationDeliveryChannel["SMS"] = "SMS";
19
+ })(NotificationDeliveryChannel = exports.NotificationDeliveryChannel || (exports.NotificationDeliveryChannel = {}));
20
+ // Internal error codes.
21
+ // NB: Specific errors (ie. from Sendgrid) will be logged and returned directly.
22
+ // We are not translating each, as they are quite granular, and prone to frequent updates by service providers.
23
+ var SendErrorCode;
24
+ (function (SendErrorCode) {
25
+ SendErrorCode[SendErrorCode["BAD_DELIVERY_CHANNEL"] = 400] = "BAD_DELIVERY_CHANNEL";
26
+ SendErrorCode[SendErrorCode["SENDGRID_ERROR"] = 401] = "SENDGRID_ERROR";
27
+ })(SendErrorCode = exports.SendErrorCode || (exports.SendErrorCode = {}));
28
+ //# sourceMappingURL=notification.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.enums.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/enums/notification.enums.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,IAAY,2BAIX;AAJD,WAAY,2BAA2B;IACtC,8CAAe,CAAA;IACf,oEAAoE;IACpE,0CAAW,CAAA;AACZ,CAAC,EAJW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAItC;AAED,wBAAwB;AACxB,gFAAgF;AAChF,+GAA+G;AAC/G,IAAY,aAGX;AAHD,WAAY,aAAa;IACxB,mFAA0B,CAAA;IAC1B,uEAAoB,CAAA;AACrB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB"}
@@ -0,0 +1 @@
1
+ export * from './enums';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/notifications/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
@@ -1,6 +1,6 @@
1
+ import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
1
2
  import { PaymentPlanRepetitionEnum, PaymentPlanStatusEnum, PaymentPlanTypeEnum } from '../types/enums/payment-plan.enums';
2
3
  import { PaymentMethodTypeEnum } from '../types/enums/payment.enums';
3
- import { ByInvoiceDto } from './payment.dto';
4
4
  export declare class PaymentPlanScheduleDto {
5
5
  date: Date;
6
6
  percent?: number;
@@ -21,7 +21,8 @@ export declare class CreatePaymentPlanDto extends PaymentPlanDto {
21
21
  export declare class CalcPaymentPlanDto extends PaymentPlanDto {
22
22
  amountToSplit: number;
23
23
  }
24
- export declare class BasicInstallmentDataDto extends ByInvoiceDto {
24
+ export declare class BasicInstallmentDataDto extends ByOrganizationIdDto {
25
+ invoiceId: number;
25
26
  userId: number;
26
27
  }
27
28
  export declare class CreateScheduledPaymentsDto extends BasicInstallmentDataDto {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateScheduledPaymentsDto = exports.FutureInstallmentsIdsDto = exports.ScheduledPaymentDto = exports.CreateScheduledPaymentsDto = exports.BasicInstallmentDataDto = exports.CalcPaymentPlanDto = exports.CreatePaymentPlanDto = exports.PaymentPlanDto = exports.PaymentPlanScheduleDto = void 0;
4
- const payment_dto_1 = require("./payment.dto");
4
+ const organization_dto_1 = require("../../organization/dto/organization.dto");
5
5
  class PaymentPlanScheduleDto {
6
6
  }
7
7
  exports.PaymentPlanScheduleDto = PaymentPlanScheduleDto;
@@ -14,7 +14,7 @@ exports.CreatePaymentPlanDto = CreatePaymentPlanDto;
14
14
  class CalcPaymentPlanDto extends PaymentPlanDto {
15
15
  }
16
16
  exports.CalcPaymentPlanDto = CalcPaymentPlanDto;
17
- class BasicInstallmentDataDto extends payment_dto_1.ByInvoiceDto {
17
+ class BasicInstallmentDataDto extends organization_dto_1.ByOrganizationIdDto {
18
18
  }
19
19
  exports.BasicInstallmentDataDto = BasicInstallmentDataDto;
20
20
  class CreateScheduledPaymentsDto extends BasicInstallmentDataDto {
@@ -1 +1 @@
1
- {"version":3,"file":"payment-plan.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-plan.dto.ts"],"names":[],"mappings":";;;AAOA,+CAA6C;AAE7C,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AACD,MAAa,cAAc;CAc1B;AAdD,wCAcC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,kBAAmB,SAAQ,cAAc;CAErD;AAFD,gDAEC;AAED,MAAa,uBAAwB,SAAQ,0BAAY;CAExD;AAFD,0DAEC;AAED,MAAa,0BAA2B,SAAQ,uBAAuB;CAMtE;AAND,gEAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;AAED,MAAa,0BAA0B;CAQtC;AARD,gEAQC"}
1
+ {"version":3,"file":"payment-plan.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-plan.dto.ts"],"names":[],"mappings":";;;AACA,8EAA8E;AAQ9E,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AACD,MAAa,cAAc;CAc1B;AAdD,wCAcC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,kBAAmB,SAAQ,cAAc;CAErD;AAFD,gDAEC;AAED,MAAa,uBAAwB,SAAQ,sCAAmB;CAI/D;AAJD,0DAIC;AAED,MAAa,0BAA2B,SAAQ,uBAAuB;CAMtE;AAND,gEAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;AAED,MAAa,0BAA0B;CAQtC;AARD,gEAQC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.0.72",
3
+ "version": "2.0.74",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {