@bondsports/types 2.4.16 → 2.4.17-squad-c-1

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 (43) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/product-pricing/dto/index.d.ts +1 -0
  3. package/dist/types/product-pricing/dto/index.js +1 -0
  4. package/dist/types/product-pricing/dto/index.js.map +1 -1
  5. package/dist/types/product-pricing/dto/product-categories.dto.d.ts +43 -0
  6. package/dist/types/product-pricing/dto/product-categories.dto.js +30 -0
  7. package/dist/types/product-pricing/dto/product-categories.dto.js.map +1 -0
  8. package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -0
  9. package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
  10. package/dist/types/product-pricing/dto/product.dto.d.ts +2 -0
  11. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  12. package/dist/types/product-pricing/entities/index.d.ts +1 -0
  13. package/dist/types/product-pricing/entities/index.js +1 -0
  14. package/dist/types/product-pricing/entities/index.js.map +1 -1
  15. package/dist/types/product-pricing/entities/product-category.entity.d.ts +12 -0
  16. package/dist/types/product-pricing/entities/product-category.entity.js +8 -0
  17. package/dist/types/product-pricing/entities/product-category.entity.js.map +1 -0
  18. package/dist/types/product-pricing/entities/product.entity.d.ts +3 -0
  19. package/dist/types/product-pricing/entities/product.entity.js.map +1 -1
  20. package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
  21. package/dist/types/product-pricing/types/consts/index.js +1 -0
  22. package/dist/types/product-pricing/types/consts/index.js.map +1 -1
  23. package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +510 -0
  24. package/dist/types/product-pricing/types/consts/product-category.consts.js +124 -0
  25. package/dist/types/product-pricing/types/consts/product-category.consts.js.map +1 -0
  26. package/dist/types/product-pricing/types/enums/index.d.ts +1 -0
  27. package/dist/types/product-pricing/types/enums/index.js +1 -0
  28. package/dist/types/product-pricing/types/enums/index.js.map +1 -1
  29. package/dist/types/product-pricing/types/enums/product-categories.enums.d.ts +8 -0
  30. package/dist/types/product-pricing/types/enums/product-categories.enums.js +13 -0
  31. package/dist/types/product-pricing/types/enums/product-categories.enums.js.map +1 -0
  32. package/dist/types/product-pricing/types/enums/product.enums.d.ts +2 -1
  33. package/dist/types/product-pricing/types/enums/product.enums.js +1 -0
  34. package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
  35. package/dist/types/product-pricing/types/interfaces/index.d.ts +1 -0
  36. package/dist/types/product-pricing/types/interfaces/index.js +1 -0
  37. package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
  38. package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.d.ts +25 -0
  39. package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.js +3 -0
  40. package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.js.map +1 -0
  41. package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +3 -0
  42. package/package.json +6 -5
  43. package/LICENSE.md +0 -0
@@ -15,6 +15,7 @@ var OrderByProductEnum;
15
15
  OrderByProductEnum["PRODUCT_SUB_TYPE"] = "productSubType";
16
16
  OrderByProductEnum["STATUS"] = "status";
17
17
  OrderByProductEnum["PRODUCT_STATUS"] = "productStatus";
18
+ OrderByProductEnum["PRODUCT_CATEGORY"] = "product_category";
18
19
  })(OrderByProductEnum = exports.OrderByProductEnum || (exports.OrderByProductEnum = {}));
19
20
  var ProductExpandEnum;
20
21
  (function (ProductExpandEnum) {
@@ -1 +1 @@
1
- {"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC7B,+BAAS,CAAA;IACT,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;IACjB,sDAAgC,CAAA;AACjC,CAAC,EARW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAQ7B;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,2DAAsC,CAAA;IACtC,mEAA8C,CAAA;AAC/C,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,2CAAiB,CAAA;IACjB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACxC,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
1
+ {"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC7B,+BAAS,CAAA;IACT,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;IACjB,sDAAgC,CAAA;IAChC,2DAAqC,CAAA;AACtC,CAAC,EATW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAS7B;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,2DAAsC,CAAA;IACtC,mEAA8C,CAAA;AAC/C,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,2CAAiB,CAAA;IACjB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACxC,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
@@ -1,3 +1,4 @@
1
+ export * from './product-categories.interfaces';
1
2
  export * from './product-pricing.interfaces';
2
3
  export * from './product-resource.interfaces';
3
4
  export * from './validate-resources.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("./product-categories.interfaces"), exports);
17
18
  __exportStar(require("./product-pricing.interfaces"), exports);
18
19
  __exportStar(require("./product-resource.interfaces"), exports);
19
20
  __exportStar(require("./validate-resources.interfaces"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD"}
@@ -0,0 +1,25 @@
1
+ import { BondBaseEntity } from '../../../entity/BondBaseEntity';
2
+ import { ISettings } from '../../../resource-settings/types/resource-settings.interfaces';
3
+ import { OrderByEnum } from '../../../services/enums.service';
4
+ import { IPagination } from '../../../util/models/interfaces/general.interfaces';
5
+ import { CategoryOrderColumnEnum } from '../enums/product-categories.enums';
6
+ export interface IGetProductCategories extends IPagination {
7
+ approvalRequired?: boolean;
8
+ categoriesIds?: number[];
9
+ order?: OrderByEnum;
10
+ orderBy?: CategoryOrderColumnEnum;
11
+ search?: string;
12
+ vipEnabled?: boolean;
13
+ }
14
+ export interface ISettingValidationIssue {
15
+ error: string;
16
+ path: string;
17
+ }
18
+ export interface ISettingsValidationResult<T = ISettings> {
19
+ data?: T;
20
+ issues?: ISettingValidationIssue[];
21
+ success: boolean;
22
+ }
23
+ export interface IRawProductCategoryData extends BondBaseEntity {
24
+ productsCount: number;
25
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=product-categories.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-categories.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/product-categories.interfaces.ts"],"names":[],"mappings":""}
@@ -17,6 +17,7 @@ export interface IGetCurrentPricesOptions {
17
17
  skipProrated?: boolean;
18
18
  }
19
19
  export interface IGetProductsByTypeOptions extends IPagination {
20
+ categoriesIds?: number[];
20
21
  customersIds?: number[];
21
22
  excludeProductIds?: number[];
22
23
  excludeResourceIds?: number[];
@@ -27,8 +28,10 @@ export interface IGetProductsByTypeOptions extends IPagination {
27
28
  includeEntitlementDiscounts?: boolean;
28
29
  includeFacilities?: boolean;
29
30
  includeGlCodes?: boolean;
31
+ includeOnlyNotAssignedToCategory?: boolean;
30
32
  includePaymentPlan?: boolean;
31
33
  includePricesSchedule?: boolean;
34
+ includeProductCategories?: boolean;
32
35
  includeProductResources?: boolean;
33
36
  includePunchPass?: boolean;
34
37
  includeResources?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.4.16",
3
+ "version": "2.4.17-squad-c-1",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -33,12 +33,13 @@
33
33
  ],
34
34
  "homepage": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types#readme",
35
35
  "dependencies": {
36
- "@bondsports/date-time": "^2.4.48",
37
- "@bondsports/notifications-sdk": "latest",
38
36
  "moment": "^2.29.1",
39
37
  "rimraf": "^3.0.2",
40
38
  "stripe": "9.1.0",
41
- "typeorm": "^0.2.32"
39
+ "typeorm": "^0.2.32",
40
+ "@bondsports/date-time": "^2.4.53",
41
+ "zod": "^3.25.49",
42
+ "@bondsports/notifications-sdk": "latest"
42
43
  },
43
44
  "devDependencies": {
44
45
  "@bondsports/eslint-config": "^1.0.2",
@@ -50,5 +51,5 @@
50
51
  "ts-node": "^10.8.0",
51
52
  "typescript": "^4.4.3"
52
53
  },
53
- "gitHead": "7c61a6a19483111ef814041c5bfddb7697d33834"
54
+ "gitHead": "178ca9dc5ea5e94b44d765b6663e7a4ad0d19d98"
54
55
  }
package/LICENSE.md DELETED
File without changes