@bondsports/types 2.3.13 → 2.3.15-a-0

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 (171) hide show
  1. package/README.md +71 -71
  2. package/dist/tsconfig.build.tsbuildinfo +1 -1
  3. package/dist/types/cart/dto/cart-item.dto.d.ts +0 -2
  4. package/dist/types/cart/dto/cart-item.dto.js +0 -9
  5. package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
  6. package/dist/types/cart/dto/cart.dto.d.ts +0 -1
  7. package/dist/types/cart/dto/cart.dto.js +0 -5
  8. package/dist/types/cart/dto/cart.dto.js.map +1 -1
  9. package/dist/types/cart/entities/cart-item.entity.d.ts +2 -0
  10. package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
  11. package/dist/types/cart/entities/cart.entity.d.ts +2 -0
  12. package/dist/types/cart/entities/cart.entity.js.map +1 -1
  13. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +5 -0
  14. package/dist/types/dto/general.dto.d.ts +6 -9
  15. package/dist/types/dto/general.dto.js +5 -12
  16. package/dist/types/dto/general.dto.js.map +1 -1
  17. package/dist/types/filters/dto/filters.dto.d.ts +63 -0
  18. package/dist/types/filters/dto/filters.dto.js +45 -0
  19. package/dist/types/filters/dto/filters.dto.js.map +1 -0
  20. package/dist/types/filters/dto/index.d.ts +1 -0
  21. package/dist/types/{notifications/dto/types → filters/dto}/index.js +1 -1
  22. package/dist/types/filters/dto/index.js.map +1 -0
  23. package/dist/types/filters/entities/Filter.d.ts +14 -0
  24. package/dist/types/filters/entities/Filter.js +8 -0
  25. package/dist/types/filters/entities/Filter.js.map +1 -0
  26. package/dist/types/filters/entities/UserFavoriteFilter.d.ts +13 -0
  27. package/dist/types/filters/entities/UserFavoriteFilter.js +8 -0
  28. package/dist/types/filters/entities/UserFavoriteFilter.js.map +1 -0
  29. package/dist/types/filters/entities/index.d.ts +2 -0
  30. package/dist/types/filters/entities/index.js +19 -0
  31. package/dist/types/filters/entities/index.js.map +1 -0
  32. package/dist/types/filters/index.d.ts +3 -0
  33. package/dist/types/filters/index.js +20 -0
  34. package/dist/types/filters/index.js.map +1 -0
  35. package/dist/types/filters/types/classes/filter.classes.d.ts +8 -0
  36. package/dist/types/filters/types/classes/filter.classes.js +7 -0
  37. package/dist/types/filters/types/classes/filter.classes.js.map +1 -0
  38. package/dist/types/filters/types/classes/index.d.ts +1 -0
  39. package/dist/types/filters/types/classes/index.js +18 -0
  40. package/dist/types/filters/types/classes/index.js.map +1 -0
  41. package/dist/types/filters/types/consts.d.ts +5 -0
  42. package/dist/types/filters/types/consts.js +10 -0
  43. package/dist/types/filters/types/consts.js.map +1 -0
  44. package/dist/types/filters/types/enums/filter.enums.d.ts +8 -0
  45. package/dist/types/filters/types/enums/filter.enums.js +14 -0
  46. package/dist/types/filters/types/enums/filter.enums.js.map +1 -0
  47. package/dist/types/filters/types/enums/index.d.ts +1 -0
  48. package/dist/types/filters/types/enums/index.js +18 -0
  49. package/dist/types/filters/types/enums/index.js.map +1 -0
  50. package/dist/types/filters/types/index.d.ts +4 -0
  51. package/dist/types/filters/types/index.js +21 -0
  52. package/dist/types/filters/types/index.js.map +1 -0
  53. package/dist/types/filters/types/interfaces/filters.interfaces.d.ts +18 -0
  54. package/dist/types/filters/types/interfaces/filters.interfaces.js +3 -0
  55. package/dist/types/filters/types/interfaces/filters.interfaces.js.map +1 -0
  56. package/dist/types/filters/types/interfaces/index.d.ts +1 -0
  57. package/dist/types/filters/types/interfaces/index.js +18 -0
  58. package/dist/types/filters/types/interfaces/index.js.map +1 -0
  59. package/dist/types/folders/dto/folder.dto.d.ts +2 -6
  60. package/dist/types/folders/dto/folder.dto.js +0 -31
  61. package/dist/types/folders/dto/folder.dto.js.map +1 -1
  62. package/dist/types/index.d.ts +2 -0
  63. package/dist/types/index.js +2 -0
  64. package/dist/types/index.js.map +1 -1
  65. package/dist/types/notifications/dto/index.d.ts +0 -1
  66. package/dist/types/notifications/dto/index.js +0 -1
  67. package/dist/types/notifications/dto/index.js.map +1 -1
  68. package/dist/types/notifications/dto/notification.create.dto.d.ts +1 -17
  69. package/dist/types/notifications/dto/notification.create.dto.js +9 -66
  70. package/dist/types/notifications/dto/notification.create.dto.js.map +1 -1
  71. package/dist/types/notifications/dto/notification.response.dto.d.ts +0 -2
  72. package/dist/types/notifications/dto/notification.response.dto.js +1 -8
  73. package/dist/types/notifications/dto/notification.response.dto.js.map +1 -1
  74. package/dist/types/notifications/index.d.ts +1 -0
  75. package/dist/types/notifications/index.js +1 -0
  76. package/dist/types/notifications/index.js.map +1 -1
  77. package/dist/types/notifications/types/consts/index.d.ts +1 -0
  78. package/dist/types/notifications/types/consts/index.js +18 -0
  79. package/dist/types/notifications/types/consts/index.js.map +1 -0
  80. package/dist/types/notifications/types/consts/notification.consts.d.ts +4 -0
  81. package/dist/types/notifications/types/consts/notification.consts.js +9 -0
  82. package/dist/types/notifications/types/consts/notification.consts.js.map +1 -0
  83. package/dist/types/notifications/types/enums/index.js.map +1 -0
  84. package/dist/types/notifications/types/enums/notification.enums.js.map +1 -0
  85. package/dist/types/notifications/types/index.d.ts +4 -0
  86. package/dist/types/notifications/types/index.js +21 -0
  87. package/dist/types/notifications/types/index.js.map +1 -0
  88. package/dist/types/notifications/types/interfaces/index.d.ts +1 -0
  89. package/dist/types/notifications/types/interfaces/index.js +18 -0
  90. package/dist/types/notifications/types/interfaces/index.js.map +1 -0
  91. package/dist/types/notifications/types/interfaces/notification.interfaces.d.ts +40 -0
  92. package/dist/types/notifications/types/interfaces/notification.interfaces.js +3 -0
  93. package/dist/types/notifications/types/interfaces/notification.interfaces.js.map +1 -0
  94. package/dist/types/notifications/types/types/index.d.ts +1 -0
  95. package/dist/types/notifications/types/types/index.js +18 -0
  96. package/dist/types/notifications/types/types/index.js.map +1 -0
  97. package/dist/types/notifications/types/types/notification.types.d.ts +2 -0
  98. package/dist/types/notifications/types/types/notification.types.js +3 -0
  99. package/dist/types/notifications/types/types/notification.types.js.map +1 -0
  100. package/dist/types/payment/types/interfaces/stripe.interfaces.d.ts +0 -1
  101. package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +1 -1
  102. package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
  103. package/dist/types/programs-seasons/types/enums/program-season.enums.d.ts +5 -0
  104. package/dist/types/programs-seasons/types/enums/program-season.enums.js +7 -1
  105. package/dist/types/programs-seasons/types/enums/program-season.enums.js.map +1 -1
  106. package/dist/types/programs-seasons/types/interfaces/index.d.ts +1 -0
  107. package/dist/types/programs-seasons/types/interfaces/index.js +1 -0
  108. package/dist/types/programs-seasons/types/interfaces/index.js.map +1 -1
  109. package/dist/types/programs-seasons/types/interfaces/program-season.interfaces.d.ts +4 -1
  110. package/dist/types/programs-seasons/types/interfaces/season-attendee.interfaces.d.ts +4 -0
  111. package/dist/types/programs-seasons/types/interfaces/season-attendee.interfaces.js +3 -0
  112. package/dist/types/programs-seasons/types/interfaces/season-attendee.interfaces.js.map +1 -0
  113. package/dist/types/purchase/types/consts/purchase.consts.d.ts +0 -1
  114. package/dist/types/purchase/types/consts/purchase.consts.js +1 -2
  115. package/dist/types/purchase/types/consts/purchase.consts.js.map +1 -1
  116. package/dist/types/reservations/dto/reservation.dto.d.ts +2 -1
  117. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  118. package/dist/types/resource-settings/entities/resource-setting.entity.d.ts +2 -0
  119. package/dist/types/resource-settings/entities/resource-setting.entity.js.map +1 -1
  120. package/dist/types/resources/dto/resource.dto.d.ts +9 -2
  121. package/dist/types/resources/dto/resource.dto.js +4 -1
  122. package/dist/types/resources/dto/resource.dto.js.map +1 -1
  123. package/dist/types/resources/dto/space.dto.d.ts +3 -0
  124. package/dist/types/resources/dto/space.dto.js.map +1 -1
  125. package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +1 -0
  126. package/dist/types/services/enums.service.d.ts +2 -0
  127. package/dist/types/services/enums.service.js +2 -0
  128. package/dist/types/services/enums.service.js.map +1 -1
  129. package/dist/types/services/interfaces.service.d.ts +10 -1
  130. package/dist/types/services/interfaces.service.js +4 -0
  131. package/dist/types/services/interfaces.service.js.map +1 -1
  132. package/dist/types/util/models/interfaces/general.interfaces.d.ts +10 -0
  133. package/dist/types/waitlist/dto/index.d.ts +1 -0
  134. package/dist/types/waitlist/dto/index.js +18 -0
  135. package/dist/types/waitlist/dto/index.js.map +1 -0
  136. package/dist/types/waitlist/dto/waitlist.dto.d.ts +74 -0
  137. package/dist/types/waitlist/dto/waitlist.dto.js +49 -0
  138. package/dist/types/waitlist/dto/waitlist.dto.js.map +1 -0
  139. package/dist/types/waitlist/entities/index.d.ts +2 -0
  140. package/dist/types/waitlist/entities/index.js +19 -0
  141. package/dist/types/waitlist/entities/index.js.map +1 -0
  142. package/dist/types/waitlist/entities/waitlistChild.entity.d.ts +17 -0
  143. package/dist/types/waitlist/entities/waitlistChild.entity.js +8 -0
  144. package/dist/types/waitlist/entities/waitlistChild.entity.js.map +1 -0
  145. package/dist/types/waitlist/entities/waitlistEntry.entity.d.ts +22 -0
  146. package/dist/types/waitlist/entities/waitlistEntry.entity.js +8 -0
  147. package/dist/types/waitlist/entities/waitlistEntry.entity.js.map +1 -0
  148. package/dist/types/waitlist/index.d.ts +3 -0
  149. package/dist/types/waitlist/index.js +20 -0
  150. package/dist/types/waitlist/index.js.map +1 -0
  151. package/dist/types/waitlist/types/index.d.ts +3 -0
  152. package/dist/types/waitlist/types/index.js +20 -0
  153. package/dist/types/waitlist/types/index.js.map +1 -0
  154. package/dist/types/waitlist/types/waitlist.consts.d.ts +1 -0
  155. package/dist/types/waitlist/types/waitlist.consts.js +5 -0
  156. package/dist/types/waitlist/types/waitlist.consts.js.map +1 -0
  157. package/dist/types/waitlist/types/waitlist.enums.d.ts +27 -0
  158. package/dist/types/waitlist/types/waitlist.enums.js +37 -0
  159. package/dist/types/waitlist/types/waitlist.enums.js.map +1 -0
  160. package/dist/types/waitlist/types/waitlist.interface.d.ts +45 -0
  161. package/dist/types/waitlist/types/waitlist.interface.js +4 -0
  162. package/dist/types/waitlist/types/waitlist.interface.js.map +1 -0
  163. package/package.json +54 -54
  164. package/dist/types/notifications/dto/types/enums/index.js.map +0 -1
  165. package/dist/types/notifications/dto/types/enums/notification.enums.js.map +0 -1
  166. package/dist/types/notifications/dto/types/index.d.ts +0 -1
  167. package/dist/types/notifications/dto/types/index.js.map +0 -1
  168. /package/dist/types/notifications/{dto/types → types}/enums/index.d.ts +0 -0
  169. /package/dist/types/notifications/{dto/types → types}/enums/index.js +0 -0
  170. /package/dist/types/notifications/{dto/types → types}/enums/notification.enums.d.ts +0 -0
  171. /package/dist/types/notifications/{dto/types → types}/enums/notification.enums.js +0 -0
@@ -0,0 +1,18 @@
1
+ import { Filter } from '../../entities/Filter';
2
+ export interface IGetFilterOptions {
3
+ organizationId?: number;
4
+ facilityId?: number;
5
+ userId?: number;
6
+ }
7
+ export interface IGetPaginatedFiltersOptions extends IGetFilterOptions {
8
+ search?: string;
9
+ }
10
+ export interface IGetFavoriteFilters {
11
+ default?: Filter;
12
+ systemFilters: Filter[];
13
+ /**
14
+ * The default filter for the organization.
15
+ * This is a future feature that will be implemented.
16
+ */
17
+ organizationDefault?: Filter;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=filters.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/filters/types/interfaces/filters.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './filters.interfaces';
@@ -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("./filters.interfaces"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/filters/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
@@ -1,6 +1,5 @@
1
- import { ContentType, FolderContent } from '../entities/folder-content.entity';
2
- import { Folder, ReferableType, MetaType } from '../entities/folder.entity';
3
- import { FolderInvite } from '../entities/folder-invite.entity';
1
+ import { ContentType } from '../entities/folder-content.entity';
2
+ import { ReferableType, MetaType } from '../entities/folder.entity';
4
3
  import { PaginationQuery } from '../../dto/general.dto';
5
4
  import { IGroupResponse } from '../types';
6
5
  import { MediaDto } from '../../media/dto/media.dto';
@@ -26,7 +25,6 @@ export declare class FolderShowDto {
26
25
  updatedAt?: Date;
27
26
  parentId?: number;
28
27
  parentName?: string;
29
- constructor(folder?: Folder);
30
28
  }
31
29
  export declare class CreateFolderDto {
32
30
  parentFolderId: number;
@@ -62,7 +60,6 @@ export declare class FolderContentShowDto {
62
60
  id: number;
63
61
  contentType: ContentType;
64
62
  contentId: number;
65
- constructor(folderContent?: FolderContent);
66
63
  }
67
64
  export declare class GetFolderContentsDto extends PaginationQuery {
68
65
  folderIds: number[];
@@ -82,7 +79,6 @@ export declare class FolderInviteShowDto {
82
79
  uuid: string;
83
80
  createdAt: Date;
84
81
  updatedAt: Date;
85
- constructor(folderInvite?: FolderInvite);
86
82
  }
87
83
  export declare class MoveFolderContentDto {
88
84
  targetFolderId: number;
@@ -9,21 +9,6 @@ class FolderByIdDto {
9
9
  }
10
10
  exports.FolderByIdDto = FolderByIdDto;
11
11
  class FolderShowDto {
12
- constructor(folder) {
13
- if (folder) {
14
- this.id = folder.id;
15
- this.name = folder.name;
16
- this.category = folder.category;
17
- this.metaType = folder.metaType;
18
- this.organizationId = folder.organizationId;
19
- this.facilityId = folder.facilityId;
20
- this.referableType = folder.referableType;
21
- this.referableId = folder.referableId;
22
- this.mainMediaId = folder.mainMediaId;
23
- this.createdAt = folder.createdAt;
24
- this.updatedAt = folder.updatedAt;
25
- }
26
- }
27
12
  }
28
13
  exports.FolderShowDto = FolderShowDto;
29
14
  class CreateFolderDto {
@@ -42,13 +27,6 @@ class FolderContentByIdDto {
42
27
  }
43
28
  exports.FolderContentByIdDto = FolderContentByIdDto;
44
29
  class FolderContentShowDto {
45
- constructor(folderContent) {
46
- if (folderContent) {
47
- this.id = folderContent.id;
48
- this.contentType = folderContent.contentType;
49
- this.contentId = folderContent.contentId;
50
- }
51
- }
52
30
  }
53
31
  exports.FolderContentShowDto = FolderContentShowDto;
54
32
  class GetFolderContentsDto extends general_dto_1.PaginationQuery {
@@ -61,15 +39,6 @@ class FolderInviteUuidDto {
61
39
  }
62
40
  exports.FolderInviteUuidDto = FolderInviteUuidDto;
63
41
  class FolderInviteShowDto {
64
- constructor(folderInvite) {
65
- if (folderInvite) {
66
- this.id = folderInvite.id;
67
- this.folderId = folderInvite.folderId;
68
- this.uuid = folderInvite.uuid;
69
- this.createdAt = folderInvite.createdAt;
70
- this.updatedAt = folderInvite.updatedAt;
71
- }
72
- }
73
42
  }
74
43
  exports.FolderInviteShowDto = FolderInviteShowDto;
75
44
  class MoveFolderContentDto {
@@ -1 +1 @@
1
- {"version":3,"file":"folder.dto.js","sourceRoot":"","sources":["../../../../src/types/folders/dto/folder.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AAIxD,gEAAyE;AACzE,yFAAoF;AACpF,0CAAkD;AAElD,MAAa,aAAa;CA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lBD,0CAkBC;AAED,MAAa,eAAe;CAc3B;AAdD,0CAcC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,aAAa;CAIzB;AAJD,sCAIC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,oBAAoB;CAOhC;AAPD,oDAOC;AAED,MAAa,oBAAqB,SAAQ,6BAAe;CAIxD;AAJD,oDAIC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,mBAAmB;CAW/B;AAXD,kDAWC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,wBAAwB;CAoCpC;AApCD,4DAoCC;AAED,MAAa,0BAA0B;CAyDtC;AAzDD,gEAyDC;AAED;;;;;;;;;GASG;AACH,MAAa,aAAc,SAAQ,qBAAqB;IAAxD;;QACC,eAAU,GAAsB,wBAAgB,CAAC,IAAI,CAAC;QAEtD,cAAS,GAAiB,2BAAW,CAAC,GAAG,CAAC;IAC3C,CAAC;CAAA;AAJD,sCAIC;AAED;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,2CAAmB;CAE7D;AAFD,sDAEC;AAED;;;;GAIG;AACH,MAAa,4BAA6B,SAAQ,2CAAmB;CAEpE;AAFD,oEAEC"}
@@ -12,6 +12,7 @@ export * from './errors';
12
12
  export * from './facilities';
13
13
  export * from './familyAccount';
14
14
  export * from './fee';
15
+ export * from './filters';
15
16
  export * from './folders';
16
17
  export * from './future-installments';
17
18
  export * from './gl-codes';
@@ -47,5 +48,6 @@ export * from './user-activities';
47
48
  export * from './user-identification';
48
49
  export * from './util';
49
50
  export * from './utility';
51
+ export * from './waitlist';
50
52
  export * from './webflow';
51
53
  export * from './webhooks';
@@ -28,6 +28,7 @@ __exportStar(require("./errors"), exports);
28
28
  __exportStar(require("./facilities"), exports);
29
29
  __exportStar(require("./familyAccount"), exports);
30
30
  __exportStar(require("./fee"), exports);
31
+ __exportStar(require("./filters"), exports);
31
32
  __exportStar(require("./folders"), exports);
32
33
  __exportStar(require("./future-installments"), exports);
33
34
  __exportStar(require("./gl-codes"), exports);
@@ -63,6 +64,7 @@ __exportStar(require("./user-activities"), exports);
63
64
  __exportStar(require("./user-identification"), exports);
64
65
  __exportStar(require("./util"), exports);
65
66
  __exportStar(require("./utility"), exports);
67
+ __exportStar(require("./waitlist"), exports);
66
68
  __exportStar(require("./webflow"), exports);
67
69
  __exportStar(require("./webhooks"), exports);
68
70
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,8CAA4B;AAC5B,wCAAsB;AACtB,8CAA4B;AAC5B,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,mDAAiC;AACjC,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,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,4CAA0B;AAC1B,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,8CAA4B;AAC5B,wCAAsB;AACtB,8CAA4B;AAC5B,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,wDAAsC;AACtC,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,mDAAiC;AACjC,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,8CAA4B;AAC5B,0CAAwB;AACxB,6CAA2B;AAC3B,yDAAuC;AACvC,2CAAyB;AACzB,yCAAuB;AACvB,oDAAkC;AAClC,wDAAsC;AACtC,yCAAuB;AACvB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B"}
@@ -2,4 +2,3 @@ export * from './backoffice.notify.dto';
2
2
  export * from './notification.blast.query.dto';
3
3
  export * from './notification.create.dto';
4
4
  export * from './notification.response.dto';
5
- export * from './types';
@@ -18,5 +18,4 @@ __exportStar(require("./backoffice.notify.dto"), exports);
18
18
  __exportStar(require("./notification.blast.query.dto"), exports);
19
19
  __exportStar(require("./notification.create.dto"), exports);
20
20
  __exportStar(require("./notification.response.dto"), exports);
21
- __exportStar(require("./types"), exports);
22
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,iEAA+C;AAC/C,4DAA0C;AAC1C,8DAA4C;AAC5C,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,iEAA+C;AAC/C,4DAA0C;AAC1C,8DAA4C"}
@@ -9,30 +9,25 @@
9
9
  * ************************
10
10
  * ************************
11
11
  */
12
- import { NotificationCreateDto as INotificationCreateDto, ContentDto as IContentDto, SenderDto as ISenderDto, RecipientsDto as IRecipientsDto, NotificationClassification, NotificationDeliveryChannel } from '@bondsports/notifications-sdk';
12
+ import { ContentDto as IContentDto, NotificationCreateDto as INotificationCreateDto, RecipientsDto as IRecipientsDto, SenderDto as ISenderDto, NotificationClassification, NotificationDeliveryChannel } from '@bondsports/notifications-sdk';
13
13
  export declare class SenderDto implements ISenderDto {
14
- static UNKNOWN_USER_ID: number;
15
14
  userId: number;
16
15
  organizationId?: number;
17
16
  facilityId?: number;
18
17
  replyTo?: string;
19
18
  fromDisplayName?: string;
20
- constructor(userId: number, organizationId?: number, facilityId?: number, replyTo?: string, fromDisplayName?: string);
21
19
  }
22
20
  export declare class RecipientsDto implements IRecipientsDto {
23
21
  to: string[];
24
22
  cc?: string[];
25
23
  bcc?: string[];
26
24
  interpolationData?: Record<string, unknown>;
27
- static to(to?: string): RecipientsDto;
28
- constructor(to?: string[], cc?: string[], bcc?: string[]);
29
25
  }
30
26
  export declare class ContentDto implements IContentDto {
31
27
  bodyText?: string;
32
28
  bodyHtml: string;
33
29
  subject?: string;
34
30
  interpolationData?: Record<string, unknown>;
35
- constructor(subject?: string, bodyHtml?: string, bodyText?: string);
36
31
  }
37
32
  export declare class NotificationCreateDto implements INotificationCreateDto {
38
33
  channel: NotificationDeliveryChannel;
@@ -41,15 +36,4 @@ export declare class NotificationCreateDto implements INotificationCreateDto {
41
36
  recipients: RecipientsDto[];
42
37
  content: ContentDto;
43
38
  deliveryPayload?: any;
44
- /**
45
- * Use NotificationCreateDto.emailTemplate(...) instead.
46
- */
47
- static sendgridTemplate(toEmailAddress: string, dynamicTemplateData: any, sendingUserId: number, sendingOrganizationId?: number, sendingFacilityId?: number, fromDisplayName?: string): NotificationCreateDto;
48
- /**
49
- * Send an email notification using a templateKey and dynamic data.
50
- *
51
- * (Added for convenience; Not part of NotificationsService object definitions.)
52
- *
53
- */
54
- static emailTemplate(toEmailAddress: string, templateKey: string, dynamicTemplateData: any, sendingUserId: number, sendingOrganizationId?: number, sendingFacilityId?: number, fromDisplayName?: string): NotificationCreateDto;
55
39
  }
@@ -17,83 +17,26 @@ const notifications_sdk_1 = require("@bondsports/notifications-sdk");
17
17
  // Start at the Notification object, below.
18
18
  // It contains all the other request objects.
19
19
  class SenderDto {
20
- // Added for convenience.
21
- // Not part of NotificationsService object definitions.
22
- constructor(userId, organizationId, facilityId, replyTo, fromDisplayName) {
23
- this.userId = userId;
24
- this.organizationId = organizationId;
25
- this.facilityId = facilityId;
26
- this.replyTo = replyTo;
27
- this.fromDisplayName = fromDisplayName;
28
- }
29
20
  }
30
21
  exports.SenderDto = SenderDto;
31
- // used in cases where the user is unknown / unknowable (ie. "system" generated without clear user action)
32
- SenderDto.UNKNOWN_USER_ID = -10;
33
22
  class RecipientsDto {
34
- // Added for convenience.
35
- // Not part of NotificationsService object definitions.
36
- static to(to) {
37
- const r = new RecipientsDto();
38
- r.to = to ? [to] : [];
39
- return r;
40
- }
41
- constructor(to, cc, bcc) {
42
- this.to = to || [];
43
- this.cc = cc;
44
- this.bcc = bcc;
45
- }
46
23
  }
47
24
  exports.RecipientsDto = RecipientsDto;
48
25
  class ContentDto {
49
- // Added for convenience.
50
- // Not part of NotificationsService object definitions.
51
- constructor(subject, bodyHtml, bodyText) {
52
- this.bodyText = bodyText;
53
- this.bodyHtml = bodyHtml;
54
- this.subject = subject;
55
- }
56
26
  }
57
27
  exports.ContentDto = ContentDto;
58
28
  class NotificationCreateDto {
59
29
  constructor() {
60
30
  this.classification = notifications_sdk_1.NotificationClassification.UNKNOWN;
61
- }
62
- /**
63
- * Use NotificationCreateDto.emailTemplate(...) instead.
64
- */
65
- static sendgridTemplate(toEmailAddress, dynamicTemplateData, sendingUserId, sendingOrganizationId, sendingFacilityId, fromDisplayName) {
66
- const note = new NotificationCreateDto();
67
- note.channel = notifications_sdk_1.NotificationDeliveryChannel.EMAIL;
68
- note.classification = notifications_sdk_1.NotificationClassification.TRANSACTIONAL;
69
- note.sender = new SenderDto(sendingUserId, sendingOrganizationId, sendingFacilityId, null, fromDisplayName);
70
- note.recipients = [RecipientsDto.to(toEmailAddress)];
71
- // there is no Content object when using a sendgrid template, it's the template and dynamic data:
72
- note.deliveryPayload = {
73
- // `templateId` *is necessary* -- it is looked up (via template Name) & set in the NotificationsService.
74
- dynamicTemplateData: dynamicTemplateData,
75
- };
76
- return note;
77
- }
78
- /**
79
- * Send an email notification using a templateKey and dynamic data.
80
- *
81
- * (Added for convenience; Not part of NotificationsService object definitions.)
82
- *
83
- */
84
- static emailTemplate(toEmailAddress, templateKey, dynamicTemplateData, sendingUserId, sendingOrganizationId, sendingFacilityId, fromDisplayName) {
85
- const note = new NotificationCreateDto();
86
- note.channel = notifications_sdk_1.NotificationDeliveryChannel.EMAIL;
87
- note.classification = notifications_sdk_1.NotificationClassification.TRANSACTIONAL;
88
- note.sender = new SenderDto(sendingUserId, sendingOrganizationId, sendingFacilityId, null, fromDisplayName);
89
- note.recipients = [RecipientsDto.to(toEmailAddress)];
90
- // there is no Content object when using an email template, it's the templateKey and dynamic data to be interpolated:
91
- note.deliveryPayload = {
92
- // templateId is not used. It's a legacy field from when we used SendGrid templates.
93
- templateKey: templateKey,
94
- dynamicTemplateData: dynamicTemplateData, // used by NotificationService when rendering the template.
95
- };
96
- return note;
31
+ /**
32
+ *
33
+ */
34
+ /**
35
+ * Send an email notification using a templateKey and dynamic data.
36
+ *
37
+ * (Added for convenience; Not part of NotificationsService object definitions.)
38
+ *
39
+ */
97
40
  }
98
41
  }
99
42
  exports.NotificationCreateDto = NotificationCreateDto;
@@ -1 +1 @@
1
- {"version":3,"file":"notification.create.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/notification.create.dto.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,qEAOuC;AAEvC,0EAA0E;AAE1E,2CAA2C;AAC3C,6CAA6C;AAE7C,MAAa,SAAS;IAcrB,yBAAyB;IACzB,uDAAuD;IACvD,YACC,MAAc,EACd,cAAuB,EACvB,UAAmB,EACnB,OAAgB,EAChB,eAAwB;QAExB,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;QACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACxC,CAAC;;AA5BF,8BA6BC;AA5BA,0GAA0G;AACnG,yBAAe,GAAG,CAAC,EAAE,CAAC;AA6B9B,MAAa,aAAa;IAYzB,yBAAyB;IACzB,uDAAuD;IACvD,MAAM,CAAC,EAAE,CAAC,EAAW;QACpB,MAAM,CAAC,GAAG,IAAI,aAAa,EAAE,CAAC;QAC9B,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtB,OAAO,CAAC,CAAC;IACV,CAAC;IAED,YAAY,EAAa,EAAE,EAAa,EAAE,GAAc;QACvD,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;QACnB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC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C,KAAK,CAAC;QACjD,IAAI,CAAC,cAAc,GAAG,8CAA0B,CAAC,aAAa,CAAC;QAC/D,IAAI,CAAC,MAAM,GAAG,IAAI,SAAS,CAAC,aAAa,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC;QAC5G,IAAI,CAAC,UAAU,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;QACrD,qHAAqH;QACrH,IAAI,CAAC,eAAe,GAAG;YACtB,qFAAqF;YACrF,WAAW,EAAE,WAAW;YACxB,mBAAmB,EAAE,mBAAmB,EAAE,2DAA2D;SACrG,CAAC;QACF,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AAvED,sDAuEC"}
1
+ {"version":3,"file":"notification.create.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/notification.create.dto.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,qEAOuC;AAGvC,0EAA0E;AAE1E,2CAA2C;AAC3C,6CAA6C;AAC7C,MAAa,SAAS;CAerB;AAfD,8BAeC;AAED,MAAa,aAAa;CAezB;AAfD,sCAeC;AAED,MAAa,UAAU;CAWtB;AAXD,gCAWC;AAED,MAAa,qBAAqB;IAAlC;QAGC,mBAAc,GAAgC,8CAA0B,CAAC,OAAO,CAAC;QAgBjF;;WAEG;QAEH;;;;;WAKG;IACJ,CAAC;CAAA;AA7BD,sDA6BC"}
@@ -16,7 +16,5 @@ export declare class SendResultDto implements ISendResult {
16
16
  succeeded: number;
17
17
  failed: number;
18
18
  errors: SendErrorDto[];
19
- constructor(attempted?: number, succeeded?: number, failed?: number, errors?: SendErrorDto[]);
20
- static withError(error: SendErrorDto): SendResultDto;
21
19
  merge(other: SendResultDto): void;
22
20
  }
@@ -12,18 +12,11 @@ class SendErrorDto {
12
12
  }
13
13
  exports.SendErrorDto = SendErrorDto;
14
14
  class SendResultDto {
15
- constructor(attempted = 0, succeeded = 0, failed = 0, errors) {
15
+ constructor() {
16
16
  this.attempted = 0;
17
17
  this.succeeded = 0;
18
18
  this.failed = 0;
19
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
20
  }
28
21
  merge(other) {
29
22
  this.attempted += other.attempted;
@@ -1 +1 @@
1
- {"version":3,"file":"notification.response.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/notification.response.dto.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAQH,MAAa,YAAY;CAMxB;AAND,oCAMC;AAED,MAAa,aAAa;IASzB,YAAY,SAAS,GAAG,CAAC,EAAE,SAAS,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,MAAuB;QAR7E,cAAS,GAAG,CAAC,CAAC;QAEd,cAAS,GAAG,CAAC,CAAC;QAEd,WAAM,GAAG,CAAC,CAAC;QAEX,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;IAED,KAAK,CAAC,KAAoB;QACzB,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;CACD;AA1BD,sCA0BC"}
1
+ {"version":3,"file":"notification.response.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/notification.response.dto.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAQH,MAAa,YAAY;CAMxB;AAND,oCAMC;AAED,MAAa,aAAa;IAA1B;QACC,cAAS,GAAG,CAAC,CAAC;QAEd,cAAS,GAAG,CAAC,CAAC;QAEd,WAAM,GAAG,CAAC,CAAC;QAEX,WAAM,GAAmB,EAAE,CAAC;IAU7B,CAAC;IANA,KAAK,CAAC,KAAoB;QACzB,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;CACD;AAjBD,sCAiBC"}
@@ -1 +1,2 @@
1
1
  export * from './dto';
2
+ export * from './types';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dto"), exports);
18
+ __exportStar(require("./types"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
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.consts';
@@ -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.consts"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
@@ -0,0 +1,4 @@
1
+ export declare const DEFAULT_NOTIFICATION_CLASSIFICATION: "TRANSACTIONAL";
2
+ export declare const DEFAULT_NOTIFICATION_DELIVERY_CHANNEL: "EMAIL";
3
+ export declare const EMAIL_REGEX: RegExp;
4
+ export declare const MAX_HTTP_REQUESTS = 10;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MAX_HTTP_REQUESTS = exports.EMAIL_REGEX = exports.DEFAULT_NOTIFICATION_DELIVERY_CHANNEL = exports.DEFAULT_NOTIFICATION_CLASSIFICATION = void 0;
4
+ const notifications_sdk_1 = require("@bondsports/notifications-sdk");
5
+ exports.DEFAULT_NOTIFICATION_CLASSIFICATION = notifications_sdk_1.NotificationClassification.TRANSACTIONAL;
6
+ exports.DEFAULT_NOTIFICATION_DELIVERY_CHANNEL = notifications_sdk_1.NotificationDeliveryChannel.EMAIL;
7
+ exports.EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
8
+ exports.MAX_HTTP_REQUESTS = 10;
9
+ //# sourceMappingURL=notification.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.consts.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/consts/notification.consts.ts"],"names":[],"mappings":";;;AAAA,qEAAwG;AAE3F,QAAA,mCAAmC,GAAG,8CAA0B,CAAC,aAAa,CAAC;AAC/E,QAAA,qCAAqC,GAAG,+CAA2B,CAAC,KAAK,CAAC;AAE1E,QAAA,WAAW,GAAG,4BAA4B,CAAC;AAE3C,QAAA,iBAAiB,GAAG,EAAE,CAAC"}
@@ -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 @@
1
+ {"version":3,"file":"notification.enums.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/enums/notification.enums.ts"],"names":[],"mappings":";;;AAAA,qEAAuH;AAE9G,2GAFA,8CAA0B,OAEA;AAAE,4GAFA,+CAA2B,OAEA;AAAE,8FAFA,iCAAa,OAEA"}
@@ -0,0 +1,4 @@
1
+ export * from './consts';
2
+ export * from './enums';
3
+ export * from './interfaces';
4
+ export * from './types';
@@ -0,0 +1,21 @@
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("./consts"), exports);
18
+ __exportStar(require("./enums"), exports);
19
+ __exportStar(require("./interfaces"), exports);
20
+ __exportStar(require("./types"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/notifications/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from './notification.interfaces';
@@ -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.interfaces"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
@@ -0,0 +1,40 @@
1
+ export interface INotificationRecipients {
2
+ to: string | string[];
3
+ cc?: string | string[];
4
+ bcc?: string | string[];
5
+ interpolationData?: Record<string, unknown>;
6
+ }
7
+ /**
8
+ * If organizationId is provided, fromDisplayName will be the organization name if not provided.
9
+ * If replyToOrganization is true and organizationId is provided, replyTo will be the organization email if not provided.
10
+ */
11
+ export interface INotificationSender {
12
+ /**
13
+ */
14
+ userId?: number;
15
+ /**
16
+ */
17
+ organizationId?: number;
18
+ /**
19
+ */
20
+ facilityId?: number;
21
+ /**
22
+ */
23
+ replyTo?: string;
24
+ /**
25
+ */
26
+ replyToOrganization?: boolean;
27
+ /**
28
+ */
29
+ fromDisplayName?: string;
30
+ }
31
+ export interface INotificationDynamicContent {
32
+ bodyHtml: string;
33
+ bodyText?: string;
34
+ subject?: string;
35
+ interpolationData?: Record<string, unknown>;
36
+ }
37
+ export interface INotificationTemplateContent {
38
+ templateKey: string;
39
+ interpolationData?: Record<string, unknown>;
40
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/interfaces/notification.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './notification.types';
@@ -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.types"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
@@ -0,0 +1,2 @@
1
+ import { INotificationDynamicContent, INotificationTemplateContent } from '../interfaces/notification.interfaces';
2
+ export type TNotificationContent = INotificationDynamicContent | INotificationTemplateContent;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.types.js","sourceRoot":"","sources":["../../../../../src/types/notifications/types/types/notification.types.ts"],"names":[],"mappings":""}
@@ -25,7 +25,6 @@ export interface StripePrice {
25
25
  created: number;
26
26
  currency: string;
27
27
  livemode: boolean;
28
- lookup_key: string;
29
28
  metadata: StripeMetaData;
30
29
  nickname: string;
31
30
  product: string;