@bondsports/types 2.4.69-a-8 → 2.4.69-a-10

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 (71) 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 +2 -0
  4. package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
  5. package/dist/types/cart/entities/cart-item.entity.d.ts +3 -0
  6. package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
  7. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +1 -0
  8. package/dist/types/employees/types/interfaces/employee-facility-access.interfaces.d.ts +0 -4
  9. package/dist/types/entity/LineItems.d.ts +3 -0
  10. package/dist/types/entity/LineItems.js.map +1 -1
  11. package/dist/types/folders/types/interfaces/folder-restrictions.interfaces.d.ts +1 -1
  12. package/dist/types/invoice/dto/lineItem.dto.d.ts +1 -0
  13. package/dist/types/invoice/dto/lineItem.dto.js.map +1 -1
  14. package/dist/types/membership/types/membership.interfaces.d.ts +1 -0
  15. package/dist/types/notifications/dto/notification-subscriptions.dto.d.ts +2 -0
  16. package/dist/types/notifications/dto/notification-subscriptions.dto.js.map +1 -1
  17. package/dist/types/online-booking/types/interfaces/schedule.interfaces.d.ts +7 -0
  18. package/dist/types/payment/dto/discount.dto.d.ts +4 -4
  19. package/dist/types/payment/dto/discount.dto.js +1 -1
  20. package/dist/types/payment/dto/discount.dto.js.map +1 -1
  21. package/dist/types/product-pricing/dto/product.dto.d.ts +0 -4
  22. package/dist/types/product-pricing/dto/product.dto.js +1 -4
  23. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  24. package/dist/types/product-pricing/dto/public-product.dto.d.ts +4 -0
  25. package/dist/types/product-pricing/dto/public-product.dto.js +4 -1
  26. package/dist/types/product-pricing/dto/public-product.dto.js.map +1 -1
  27. package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +5 -0
  28. package/dist/types/product-pricing/types/consts/product-category.consts.js +2 -0
  29. package/dist/types/product-pricing/types/consts/product-category.consts.js.map +1 -1
  30. package/dist/types/product-pricing/types/interfaces/index.d.ts +1 -0
  31. package/dist/types/product-pricing/types/interfaces/index.js +1 -0
  32. package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
  33. package/dist/types/product-pricing/types/interfaces/product-creation.interfaces.d.ts +8 -0
  34. package/dist/types/product-pricing/types/interfaces/product-creation.interfaces.js +3 -0
  35. package/dist/types/product-pricing/types/interfaces/product-creation.interfaces.js.map +1 -0
  36. package/dist/types/reservations/dto/slot.dto.d.ts +1 -0
  37. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  38. package/dist/types/reservations/types/classes/slot.classes.d.ts +1 -0
  39. package/dist/types/reservations/types/classes/slot.classes.js.map +1 -1
  40. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +2 -0
  41. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
  42. package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +1 -0
  43. package/dist/types/services/enums.service.d.ts +3 -1
  44. package/dist/types/services/enums.service.js +2 -0
  45. package/dist/types/services/enums.service.js.map +1 -1
  46. package/dist/types/user-identification/dto/index.d.ts +1 -0
  47. package/dist/types/user-identification/dto/index.js +1 -0
  48. package/dist/types/user-identification/dto/index.js.map +1 -1
  49. package/dist/types/user-identification/dto/user-identifier-public.dto.d.ts +16 -0
  50. package/dist/types/user-identification/dto/user-identifier-public.dto.js +11 -0
  51. package/dist/types/user-identification/dto/user-identifier-public.dto.js.map +1 -0
  52. package/dist/types/user-identification/dto/user-identifier.dto.d.ts +1 -1
  53. package/dist/types/user-identification/types/consts/index.d.ts +2 -0
  54. package/dist/types/user-identification/types/consts/index.js +19 -0
  55. package/dist/types/user-identification/types/consts/index.js.map +1 -0
  56. package/dist/types/user-identification/types/consts/public-user-identification.consts.d.ts +6 -0
  57. package/dist/types/user-identification/types/consts/public-user-identification.consts.js +20 -0
  58. package/dist/types/user-identification/types/consts/public-user-identification.consts.js.map +1 -0
  59. package/dist/types/user-identification/types/consts/user-identification.consts.d.ts +2 -0
  60. package/dist/types/user-identification/types/consts/user-identification.consts.js +12 -0
  61. package/dist/types/user-identification/types/consts/user-identification.consts.js.map +1 -0
  62. package/dist/types/user-identification/types/enums/user-identifier.types.d.ts +15 -0
  63. package/dist/types/user-identification/types/enums/user-identifier.types.js +19 -1
  64. package/dist/types/user-identification/types/enums/user-identifier.types.js.map +1 -1
  65. package/dist/types/user-identification/types/index.d.ts +2 -0
  66. package/dist/types/user-identification/types/index.js +2 -0
  67. package/dist/types/user-identification/types/index.js.map +1 -1
  68. package/dist/types/user-identification/types/interfaces.d.ts +19 -0
  69. package/dist/types/user-identification/types/interfaces.js +3 -0
  70. package/dist/types/user-identification/types/interfaces.js.map +1 -0
  71. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PublicUserIdentifierDto = exports.FindOrCreateUserIdentifierDto = void 0;
4
+ const general_dto_1 = require("../../dto/general.dto");
5
+ class FindOrCreateUserIdentifierDto extends general_dto_1.PaginationQuery {
6
+ }
7
+ exports.FindOrCreateUserIdentifierDto = FindOrCreateUserIdentifierDto;
8
+ class PublicUserIdentifierDto {
9
+ }
10
+ exports.PublicUserIdentifierDto = PublicUserIdentifierDto;
11
+ //# sourceMappingURL=user-identifier-public.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-identifier-public.dto.js","sourceRoot":"","sources":["../../../../src/types/user-identification/dto/user-identifier-public.dto.ts"],"names":[],"mappings":";;;AACA,uDAAsE;AAStE,MAAa,6BAA8B,SAAQ,6BAAe;CAMjE;AAND,sEAMC;AAED,MAAa,uBAAuB;CAYnC;AAZD,0DAYC"}
@@ -20,7 +20,7 @@ export declare class ByOrganizationAndUserIdentifierIdDto extends ByOrganization
20
20
  }
21
21
  declare class UserIdentifierCoreDto {
22
22
  organizationId: number;
23
- userId?: number;
23
+ userId: number;
24
24
  customerId?: number;
25
25
  facilityId?: number;
26
26
  validFrom?: Date;
@@ -0,0 +1,2 @@
1
+ export * from './public-user-identification.consts';
2
+ export * from './user-identification.consts';
@@ -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("./public-user-identification.consts"), exports);
18
+ __exportStar(require("./user-identification.consts"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/user-identification/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,+DAA6C"}
@@ -0,0 +1,6 @@
1
+ import { UserIdentifierType, UserIdentifierTypeNameEnum } from '../enums/user-identifier.types';
2
+ export declare const QR_CODE_ERRORS: {
3
+ FAILED_TO_CREATE_IDENTIFIER: string;
4
+ };
5
+ export declare const getIdentifierTypeName: (id: UserIdentifierType) => UserIdentifierTypeNameEnum;
6
+ export declare const getIdentifierTypeId: (name: UserIdentifierTypeNameEnum) => UserIdentifierType | UserIdentifierTypeNameEnum;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getIdentifierTypeId = exports.getIdentifierTypeName = exports.QR_CODE_ERRORS = void 0;
4
+ const user_identifier_types_1 = require("../enums/user-identifier.types");
5
+ exports.QR_CODE_ERRORS = {
6
+ FAILED_TO_CREATE_IDENTIFIER: 'QR_CODE.FAILED_TO_CREATE_IDENTIFIER',
7
+ };
8
+ const IDENTIFIER_TYPE_NAME_MAPPER = {
9
+ [user_identifier_types_1.UserIdentifierType.STANDARD]: user_identifier_types_1.UserIdentifierTypeNameEnum.STANDARD,
10
+ [user_identifier_types_1.UserIdentifierType.GLOBAL_DIGITAL]: user_identifier_types_1.UserIdentifierTypeNameEnum.GLOBAL,
11
+ };
12
+ const IDENTIFIER_TYPE_ID_MAPPER = {
13
+ [user_identifier_types_1.UserIdentifierTypeNameEnum.STANDARD]: user_identifier_types_1.UserIdentifierType.STANDARD,
14
+ [user_identifier_types_1.UserIdentifierTypeNameEnum.GLOBAL]: user_identifier_types_1.UserIdentifierType.GLOBAL_DIGITAL,
15
+ };
16
+ const getIdentifierTypeName = (id) => IDENTIFIER_TYPE_NAME_MAPPER[id];
17
+ exports.getIdentifierTypeName = getIdentifierTypeName;
18
+ const getIdentifierTypeId = (name) => (name ? (IDENTIFIER_TYPE_ID_MAPPER[name] ?? name) : undefined);
19
+ exports.getIdentifierTypeId = getIdentifierTypeId;
20
+ //# sourceMappingURL=public-user-identification.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-user-identification.consts.js","sourceRoot":"","sources":["../../../../../src/types/user-identification/types/consts/public-user-identification.consts.ts"],"names":[],"mappings":";;;AAAA,0EAAgG;AAEnF,QAAA,cAAc,GAAG;IAC7B,2BAA2B,EAAE,qCAAqC;CAClE,CAAC;AAEF,MAAM,2BAA2B,GAA2D;IAC3F,CAAC,0CAAkB,CAAC,QAAQ,CAAC,EAAE,kDAA0B,CAAC,QAAQ;IAClE,CAAC,0CAAkB,CAAC,cAAc,CAAC,EAAE,kDAA0B,CAAC,MAAM;CACtE,CAAC;AAEF,MAAM,yBAAyB,GAA2D;IACzF,CAAC,kDAA0B,CAAC,QAAQ,CAAC,EAAE,0CAAkB,CAAC,QAAQ;IAClE,CAAC,kDAA0B,CAAC,MAAM,CAAC,EAAE,0CAAkB,CAAC,cAAc;CACtE,CAAC;AAEK,MAAM,qBAAqB,GAAG,CAAC,EAAsB,EAA8B,EAAE,CAC3F,2BAA2B,CAAC,EAAE,CAAC,CAAC;AADpB,QAAA,qBAAqB,yBACD;AAE1B,MAAM,mBAAmB,GAAG,CAClC,IAAgC,EACkB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAFxG,QAAA,mBAAmB,uBAEqF"}
@@ -0,0 +1,2 @@
1
+ import { OrderByUserIdentifierEnum } from '../enums/user-identifier.types';
2
+ export declare const ORDER_BY_USER_IDENTIFIER_MAP: Record<OrderByUserIdentifierEnum, string>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ORDER_BY_USER_IDENTIFIER_MAP = void 0;
4
+ const user_identifier_types_1 = require("../enums/user-identifier.types");
5
+ exports.ORDER_BY_USER_IDENTIFIER_MAP = {
6
+ [user_identifier_types_1.OrderByUserIdentifierEnum.USER_ID]: 'ui.userId',
7
+ [user_identifier_types_1.OrderByUserIdentifierEnum.ORGANIZATION_ID]: 'ui.organizationId',
8
+ [user_identifier_types_1.OrderByUserIdentifierEnum.FACILITY_ID]: 'ui.facilityId',
9
+ [user_identifier_types_1.OrderByUserIdentifierEnum.IDENTIFIER_TYPE]: 'ui.identifierType',
10
+ [user_identifier_types_1.OrderByUserIdentifierEnum.CREATED_AT]: 'ui."createdAt"',
11
+ };
12
+ //# sourceMappingURL=user-identification.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-identification.consts.js","sourceRoot":"","sources":["../../../../../src/types/user-identification/types/consts/user-identification.consts.ts"],"names":[],"mappings":";;;AAAA,0EAA2E;AAE9D,QAAA,4BAA4B,GAA8C;IACtF,CAAC,iDAAyB,CAAC,OAAO,CAAC,EAAE,WAAW;IAChD,CAAC,iDAAyB,CAAC,eAAe,CAAC,EAAE,mBAAmB;IAChE,CAAC,iDAAyB,CAAC,WAAW,CAAC,EAAE,eAAe;IACxD,CAAC,iDAAyB,CAAC,eAAe,CAAC,EAAE,mBAAmB;IAChE,CAAC,iDAAyB,CAAC,UAAU,CAAC,EAAE,gBAAgB;CACxD,CAAC"}
@@ -2,3 +2,18 @@ export declare enum UserIdentifierType {
2
2
  STANDARD = 0,
3
3
  GLOBAL_DIGITAL = 1
4
4
  }
5
+ export declare enum UserIdentifierTypeNameEnum {
6
+ STANDARD = "standard",
7
+ GLOBAL = "global"
8
+ }
9
+ export declare enum IdentifierExpandEnum {
10
+ FACILITY = "facility",
11
+ USER = "user"
12
+ }
13
+ export declare enum OrderByUserIdentifierEnum {
14
+ USER_ID = "userId",
15
+ ORGANIZATION_ID = "organizationId",
16
+ FACILITY_ID = "facilityId",
17
+ IDENTIFIER_TYPE = "identifierType",
18
+ CREATED_AT = "createdAt"
19
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserIdentifierType = void 0;
3
+ exports.OrderByUserIdentifierEnum = exports.IdentifierExpandEnum = exports.UserIdentifierTypeNameEnum = exports.UserIdentifierType = void 0;
4
4
  var UserIdentifierType;
5
5
  (function (UserIdentifierType) {
6
6
  // "Standard" are issued by the organization, typically through a physical cards issued to members, entered into our system by the organization.
@@ -9,4 +9,22 @@ var UserIdentifierType;
9
9
  // They are linked to a User (not a Customer) and may be used by any Organization or Facility where that User is a Customer.
10
10
  UserIdentifierType[UserIdentifierType["GLOBAL_DIGITAL"] = 1] = "GLOBAL_DIGITAL";
11
11
  })(UserIdentifierType = exports.UserIdentifierType || (exports.UserIdentifierType = {}));
12
+ var UserIdentifierTypeNameEnum;
13
+ (function (UserIdentifierTypeNameEnum) {
14
+ UserIdentifierTypeNameEnum["STANDARD"] = "standard";
15
+ UserIdentifierTypeNameEnum["GLOBAL"] = "global";
16
+ })(UserIdentifierTypeNameEnum = exports.UserIdentifierTypeNameEnum || (exports.UserIdentifierTypeNameEnum = {}));
17
+ var IdentifierExpandEnum;
18
+ (function (IdentifierExpandEnum) {
19
+ IdentifierExpandEnum["FACILITY"] = "facility";
20
+ IdentifierExpandEnum["USER"] = "user";
21
+ })(IdentifierExpandEnum = exports.IdentifierExpandEnum || (exports.IdentifierExpandEnum = {}));
22
+ var OrderByUserIdentifierEnum;
23
+ (function (OrderByUserIdentifierEnum) {
24
+ OrderByUserIdentifierEnum["USER_ID"] = "userId";
25
+ OrderByUserIdentifierEnum["ORGANIZATION_ID"] = "organizationId";
26
+ OrderByUserIdentifierEnum["FACILITY_ID"] = "facilityId";
27
+ OrderByUserIdentifierEnum["IDENTIFIER_TYPE"] = "identifierType";
28
+ OrderByUserIdentifierEnum["CREATED_AT"] = "createdAt";
29
+ })(OrderByUserIdentifierEnum = exports.OrderByUserIdentifierEnum || (exports.OrderByUserIdentifierEnum = {}));
12
30
  //# sourceMappingURL=user-identifier.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-identifier.types.js","sourceRoot":"","sources":["../../../../../src/types/user-identification/types/enums/user-identifier.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC7B,gJAAgJ;IAChJ,mEAAY,CAAA;IAEZ,oJAAoJ;IACpJ,4HAA4H;IAC5H,+EAAkB,CAAA;AACnB,CAAC,EAPW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAO7B"}
1
+ {"version":3,"file":"user-identifier.types.js","sourceRoot":"","sources":["../../../../../src/types/user-identification/types/enums/user-identifier.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC7B,gJAAgJ;IAChJ,mEAAY,CAAA;IAEZ,oJAAoJ;IACpJ,4HAA4H;IAC5H,+EAAkB,CAAA;AACnB,CAAC,EAPW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAO7B;AAED,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACrC,mDAAqB,CAAA;IACrB,+CAAiB,CAAA;AAClB,CAAC,EAHW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAGrC;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC/B,6CAAqB,CAAA;IACrB,qCAAa,CAAA;AACd,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B;AAED,IAAY,yBAMX;AAND,WAAY,yBAAyB;IACpC,+CAAkB,CAAA;IAClB,+DAAkC,CAAA;IAClC,uDAA0B,CAAA;IAC1B,+DAAkC,CAAA;IAClC,qDAAwB,CAAA;AACzB,CAAC,EANW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAMpC"}
@@ -1 +1,3 @@
1
+ export * from './consts';
1
2
  export * from './enums';
3
+ export * from './interfaces';
@@ -14,5 +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);
19
+ __exportStar(require("./interfaces"), exports);
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/user-identification/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/user-identification/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
@@ -0,0 +1,19 @@
1
+ import { OrderByEnum } from '../../services/enums.service';
2
+ import { IPagination } from '../../util/models/interfaces/general.interfaces';
3
+ import { IdentifierExpandEnum, UserIdentifierType, OrderByUserIdentifierEnum } from './enums/user-identifier.types';
4
+ export interface IGetFamilyIdentifiersQuery extends IPagination {
5
+ organizationId: number;
6
+ facilityId?: number;
7
+ userId: number;
8
+ expand?: IdentifierExpandEnum[];
9
+ identifierType?: UserIdentifierType;
10
+ order?: OrderByEnum;
11
+ orderBy?: OrderByUserIdentifierEnum;
12
+ }
13
+ export interface IGetIdentifiersByUserIdsOptions {
14
+ organizationId?: number;
15
+ facilityId?: number;
16
+ identifierType?: UserIdentifierType;
17
+ relations?: string[];
18
+ validationTime?: Date;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/types/user-identification/types/interfaces.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.4.69-a-8",
3
+ "version": "2.4.69-a-10",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {