@bondsports/types 2.5.22 → 2.5.23

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 (32) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/family-account/dto/get-families.dto.d.ts +1 -1
  3. package/dist/types/family-account/types/consts/family-account.consts.d.ts +6 -0
  4. package/dist/types/family-account/types/consts/family-account.consts.js +22 -0
  5. package/dist/types/family-account/types/consts/family-account.consts.js.map +1 -0
  6. package/dist/types/family-account/types/consts/index.d.ts +1 -0
  7. package/dist/types/family-account/types/consts/index.js +18 -0
  8. package/dist/types/family-account/types/consts/index.js.map +1 -0
  9. package/dist/types/family-account/types/enums/{enums.js → family-account.enums.js} +1 -1
  10. package/dist/types/family-account/types/enums/family-account.enums.js.map +1 -0
  11. package/dist/types/family-account/types/enums/index.d.ts +1 -1
  12. package/dist/types/family-account/types/enums/index.js +1 -1
  13. package/dist/types/family-account/types/enums/index.js.map +1 -1
  14. package/dist/types/family-account/types/index.d.ts +1 -0
  15. package/dist/types/family-account/types/index.js +1 -0
  16. package/dist/types/family-account/types/index.js.map +1 -1
  17. package/dist/types/leagues-scheduler/types/leagues-scheduler-consts.d.ts +0 -2
  18. package/dist/types/leagues-scheduler/types/leagues-scheduler-consts.js +1 -3
  19. package/dist/types/leagues-scheduler/types/leagues-scheduler-consts.js.map +1 -1
  20. package/dist/types/utils/types/consts/date.consts.d.ts +5 -0
  21. package/dist/types/utils/types/consts/date.consts.js +9 -0
  22. package/dist/types/utils/types/consts/date.consts.js.map +1 -0
  23. package/dist/types/utils/types/consts/index.d.ts +1 -0
  24. package/dist/types/utils/types/consts/index.js +18 -0
  25. package/dist/types/utils/types/consts/index.js.map +1 -0
  26. package/dist/types/utils/types/index.d.ts +1 -0
  27. package/dist/types/utils/types/index.js +1 -0
  28. package/dist/types/utils/types/index.js.map +1 -1
  29. package/dist/types/utils/types/interfaces/date-util.interfaces.d.ts +6 -0
  30. package/package.json +1 -1
  31. package/dist/types/family-account/types/enums/enums.js.map +0 -1
  32. /package/dist/types/family-account/types/enums/{enums.d.ts → family-account.enums.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { IdsQueryDto } from '../../dto/general.dto';
2
2
  import { TUserInOrganization } from '../../user/entities/user.entity';
3
3
  import { FamilyAccount } from '../entities/family-account.entity';
4
- import { FamilyAccountExpandEnum } from '../types/enums/enums';
4
+ import { FamilyAccountExpandEnum } from '../types/enums/family-account.enums';
5
5
  export declare class FamilyAccountExpandQueryDto extends IdsQueryDto {
6
6
  expand?: FamilyAccountExpandEnum[];
7
7
  }
@@ -0,0 +1,6 @@
1
+ import { FamilyAccountExpandEnum } from '../enums/family-account.enums';
2
+ export declare const FAMILY_ACCOUNT_INVITE_TTL_MS: number;
3
+ export declare const FAMILY_ACCOUNT_INVITE_CONSUMER_PATH = "/user/profile";
4
+ export declare const FAMILY_ACCOUNT_INVITE_TOKEN_QUERY_PARAM = "familyInviteToken";
5
+ export declare const FAMILY_ACCOUNT_INVITE_KIND = "familyAccount";
6
+ export declare const ORGANIZATION_FAMILY_EXPANDS_MAPPING: Record<FamilyAccountExpandEnum, string[]>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ORGANIZATION_FAMILY_EXPANDS_MAPPING = exports.FAMILY_ACCOUNT_INVITE_KIND = exports.FAMILY_ACCOUNT_INVITE_TOKEN_QUERY_PARAM = exports.FAMILY_ACCOUNT_INVITE_CONSUMER_PATH = exports.FAMILY_ACCOUNT_INVITE_TTL_MS = void 0;
4
+ const date_consts_1 = require("../../../utils/types/consts/date.consts");
5
+ const family_account_enums_1 = require("../enums/family-account.enums");
6
+ const FAMILY_ACCOUNT_INVITE_TTL_DAYS = 7;
7
+ exports.FAMILY_ACCOUNT_INVITE_TTL_MS = FAMILY_ACCOUNT_INVITE_TTL_DAYS * date_consts_1.MILLISEC_IN_DAY;
8
+ exports.FAMILY_ACCOUNT_INVITE_CONSUMER_PATH = '/user/profile';
9
+ exports.FAMILY_ACCOUNT_INVITE_TOKEN_QUERY_PARAM = 'familyInviteToken';
10
+ exports.FAMILY_ACCOUNT_INVITE_KIND = 'familyAccount';
11
+ exports.ORGANIZATION_FAMILY_EXPANDS_MAPPING = {
12
+ [family_account_enums_1.FamilyAccountExpandEnum.MEMBERS]: [
13
+ 'userInFamilyAccounts',
14
+ 'userInFamilyAccounts.user',
15
+ 'userInFamilyAccounts.user.customers',
16
+ ],
17
+ [family_account_enums_1.FamilyAccountExpandEnum.MEMBERS_PROFILE_PIC]: [
18
+ 'userInFamilyAccounts.user.customers.profilePicture',
19
+ 'userInFamilyAccounts.user.profilePicture',
20
+ ],
21
+ };
22
+ //# sourceMappingURL=family-account.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"family-account.consts.js","sourceRoot":"","sources":["../../../../../src/types/family-account/types/consts/family-account.consts.ts"],"names":[],"mappings":";;;AAAA,yEAA0E;AAC1E,wEAAwE;AAExE,MAAM,8BAA8B,GAAG,CAAC,CAAC;AAE5B,QAAA,4BAA4B,GAAG,8BAA8B,GAAG,6BAAe,CAAC;AAEhF,QAAA,mCAAmC,GAAG,eAAe,CAAC;AAEtD,QAAA,uCAAuC,GAAG,mBAAmB,CAAC;AAE9D,QAAA,0BAA0B,GAAG,eAAe,CAAC;AAE7C,QAAA,mCAAmC,GAA8C;IAC7F,CAAC,8CAAuB,CAAC,OAAO,CAAC,EAAE;QAClC,sBAAsB;QACtB,2BAA2B;QAC3B,qCAAqC;KACrC;IACD,CAAC,8CAAuB,CAAC,mBAAmB,CAAC,EAAE;QAC9C,oDAAoD;QACpD,0CAA0C;KAC1C;CACD,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './family-account.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("./family-account.consts"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/family-account/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
@@ -6,4 +6,4 @@ var FamilyAccountExpandEnum;
6
6
  FamilyAccountExpandEnum["MEMBERS"] = "members";
7
7
  FamilyAccountExpandEnum["MEMBERS_PROFILE_PIC"] = "members.profilePicture";
8
8
  })(FamilyAccountExpandEnum = exports.FamilyAccountExpandEnum || (exports.FamilyAccountExpandEnum = {}));
9
- //# sourceMappingURL=enums.js.map
9
+ //# sourceMappingURL=family-account.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"family-account.enums.js","sourceRoot":"","sources":["../../../../../src/types/family-account/types/enums/family-account.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAClC,8CAAmB,CAAA;IACnB,yEAA8C,CAAA;AAC/C,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAGlC"}
@@ -1 +1 @@
1
- export * from './enums';
1
+ export * from './family-account.enums';
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./enums"), exports);
17
+ __exportStar(require("./family-account.enums"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/family-account/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/family-account/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC"}
@@ -1 +1,2 @@
1
+ export * from './consts';
1
2
  export * from './enums';
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./consts"), exports);
17
18
  __exportStar(require("./enums"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/family-account/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/family-account/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB"}
@@ -1,4 +1,2 @@
1
- export declare const MINUTES_IN_HOUR = 60;
2
- export declare const HOURS_IN_DAY = 24;
3
1
  export declare const HOURS_IN_HALF_DAY = 12;
4
2
  export declare const DAYS_IN_WEEK = 7;
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DAYS_IN_WEEK = exports.HOURS_IN_HALF_DAY = exports.HOURS_IN_DAY = exports.MINUTES_IN_HOUR = void 0;
4
- exports.MINUTES_IN_HOUR = 60;
5
- exports.HOURS_IN_DAY = 24;
3
+ exports.DAYS_IN_WEEK = exports.HOURS_IN_HALF_DAY = void 0;
6
4
  exports.HOURS_IN_HALF_DAY = 12;
7
5
  exports.DAYS_IN_WEEK = 7;
8
6
  //# sourceMappingURL=leagues-scheduler-consts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"leagues-scheduler-consts.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/types/leagues-scheduler-consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,EAAE,CAAC;AAErB,QAAA,YAAY,GAAG,EAAE,CAAC;AAElB,QAAA,iBAAiB,GAAG,EAAE,CAAC;AAEvB,QAAA,YAAY,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"leagues-scheduler-consts.js","sourceRoot":"","sources":["../../../../src/types/leagues-scheduler/types/leagues-scheduler-consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,EAAE,CAAC;AAEvB,QAAA,YAAY,GAAG,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const HOURS_IN_DAY = 24;
2
+ export declare const MINUTES_IN_HOUR = 60;
3
+ export declare const SECONDS_IN_MINUTE = 60;
4
+ export declare const MILLISECS_IN_SECOND = 1000;
5
+ export declare const MILLISEC_IN_DAY: number;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MILLISEC_IN_DAY = exports.MILLISECS_IN_SECOND = exports.SECONDS_IN_MINUTE = exports.MINUTES_IN_HOUR = exports.HOURS_IN_DAY = void 0;
4
+ exports.HOURS_IN_DAY = 24;
5
+ exports.MINUTES_IN_HOUR = 60;
6
+ exports.SECONDS_IN_MINUTE = 60;
7
+ exports.MILLISECS_IN_SECOND = 1000;
8
+ exports.MILLISEC_IN_DAY = exports.HOURS_IN_DAY * exports.MINUTES_IN_HOUR * exports.SECONDS_IN_MINUTE * exports.MILLISECS_IN_SECOND;
9
+ //# sourceMappingURL=date.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.consts.js","sourceRoot":"","sources":["../../../../../src/types/utils/types/consts/date.consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,EAAE,CAAC;AAClB,QAAA,eAAe,GAAG,EAAE,CAAC;AACrB,QAAA,iBAAiB,GAAG,EAAE,CAAC;AACvB,QAAA,mBAAmB,GAAG,IAAI,CAAC;AAC3B,QAAA,eAAe,GAAW,oBAAY,GAAG,uBAAe,GAAG,yBAAiB,GAAG,2BAAmB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './date.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("./date.consts"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/utils/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
@@ -1,3 +1,4 @@
1
+ export * from './consts';
1
2
  export * from './enums';
2
3
  export * from './general.types';
3
4
  export * from './interfaces';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./consts"), exports);
17
18
  __exportStar(require("./enums"), exports);
18
19
  __exportStar(require("./general.types"), exports);
19
20
  __exportStar(require("./interfaces"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/utils/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,kDAAgC;AAChC,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/utils/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,kDAAgC;AAChC,+CAA6B"}
@@ -16,3 +16,9 @@ export interface ITimeRangeMinutes {
16
16
  end: number;
17
17
  start: number;
18
18
  }
19
+ export interface ITimeRangeOverlapParams {
20
+ end1: string;
21
+ end2: string;
22
+ start1: string;
23
+ start2: string;
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.5.22",
3
+ "version": "2.5.23",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../../src/types/family-account/types/enums/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAClC,8CAAmB,CAAA;IACnB,yEAA8C,CAAA;AAC/C,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAGlC"}