@bondsports/types 2.0.45 → 2.0.47

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 (78) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/cart/dto/cart-item.dto.d.ts +33 -0
  3. package/dist/types/cart/dto/cart-item.dto.js +11 -0
  4. package/dist/types/cart/dto/cart-item.dto.js.map +1 -0
  5. package/dist/types/cart/dto/cart.dto.d.ts +38 -0
  6. package/dist/types/cart/dto/cart.dto.js +24 -0
  7. package/dist/types/cart/dto/cart.dto.js.map +1 -0
  8. package/dist/types/cart/dto/index.d.ts +2 -0
  9. package/dist/types/cart/dto/index.js +19 -0
  10. package/dist/types/cart/dto/index.js.map +1 -0
  11. package/dist/types/cart/entities/cart-item.entity.d.ts +34 -0
  12. package/dist/types/cart/entities/cart-item.entity.js +8 -0
  13. package/dist/types/cart/entities/cart-item.entity.js.map +1 -0
  14. package/dist/types/cart/entities/cart.entity.d.ts +23 -0
  15. package/dist/types/cart/entities/cart.entity.js +8 -0
  16. package/dist/types/cart/entities/cart.entity.js.map +1 -0
  17. package/dist/types/cart/entities/index.d.ts +2 -0
  18. package/dist/types/cart/entities/index.js +19 -0
  19. package/dist/types/cart/entities/index.js.map +1 -0
  20. package/dist/types/cart/index.d.ts +3 -0
  21. package/dist/types/cart/index.js +20 -0
  22. package/dist/types/cart/index.js.map +1 -0
  23. package/dist/types/cart/types/enums/cart.enums.d.ts +12 -0
  24. package/dist/types/cart/types/enums/cart.enums.js +18 -0
  25. package/dist/types/cart/types/enums/cart.enums.js.map +1 -0
  26. package/dist/types/cart/types/enums/index.d.ts +1 -0
  27. package/dist/types/cart/types/enums/index.js +18 -0
  28. package/dist/types/cart/types/enums/index.js.map +1 -0
  29. package/dist/types/cart/types/index.d.ts +2 -0
  30. package/dist/types/cart/types/index.js +19 -0
  31. package/dist/types/cart/types/index.js.map +1 -0
  32. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +28 -0
  33. package/dist/types/cart/types/interfaces/cart.interfaces.js +3 -0
  34. package/dist/types/cart/types/interfaces/cart.interfaces.js.map +1 -0
  35. package/dist/types/cart/types/interfaces/index.d.ts +2 -0
  36. package/dist/types/cart/types/interfaces/index.js +19 -0
  37. package/dist/types/cart/types/interfaces/index.js.map +1 -0
  38. package/dist/types/cart/types/interfaces/validate-cart.interfaces.d.ts +11 -0
  39. package/dist/types/cart/types/interfaces/validate-cart.interfaces.js +3 -0
  40. package/dist/types/cart/types/interfaces/validate-cart.interfaces.js.map +1 -0
  41. package/dist/types/communication/index.d.ts +1 -0
  42. package/dist/types/communication/index.js +18 -0
  43. package/dist/types/communication/index.js.map +1 -0
  44. package/dist/types/communication/types/enums/index.d.ts +1 -0
  45. package/dist/types/communication/types/enums/index.js +18 -0
  46. package/dist/types/communication/types/enums/index.js.map +1 -0
  47. package/dist/types/communication/types/enums/slack.enums.d.ts +15 -0
  48. package/dist/types/communication/types/enums/slack.enums.js +20 -0
  49. package/dist/types/communication/types/enums/slack.enums.js.map +1 -0
  50. package/dist/types/communication/types/index.d.ts +2 -0
  51. package/dist/types/communication/types/index.js +19 -0
  52. package/dist/types/communication/types/index.js.map +1 -0
  53. package/dist/types/communication/types/interfaces/index.d.ts +1 -0
  54. package/dist/types/communication/types/interfaces/index.js +18 -0
  55. package/dist/types/communication/types/interfaces/index.js.map +1 -0
  56. package/dist/types/communication/types/interfaces/slack.interfaces.d.ts +5 -0
  57. package/dist/types/communication/types/interfaces/slack.interfaces.js +3 -0
  58. package/dist/types/communication/types/interfaces/slack.interfaces.js.map +1 -0
  59. package/dist/types/dto/customer.dto.d.ts +0 -3
  60. package/dist/types/dto/customer.dto.js +1 -4
  61. package/dist/types/dto/customer.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/payment/entities/Payment.d.ts +1 -1
  66. package/dist/types/programs-seasons/entities/ProgramSeason.js.map +1 -1
  67. package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +9 -10
  68. package/dist/types/punch-pass/dto/punch-pass.dto.js +2 -2
  69. package/dist/types/punch-pass/dto/punch-pass.dto.js.map +1 -1
  70. package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +0 -5
  71. package/dist/types/user/dto/user.dto.d.ts +1 -4
  72. package/dist/types/user/dto/user.dto.js +3 -6
  73. package/dist/types/user/dto/user.dto.js.map +1 -1
  74. package/dist/types/user-activities/dto/user-activities.dto.d.ts +3 -3
  75. package/dist/types/user-activities/dto/user-activities.dto.js +2 -2
  76. package/dist/types/user-activities/dto/user-activities.dto.js.map +1 -1
  77. package/dist/types/webhooks/types/webhooks.interfaces.d.ts +0 -6
  78. package/package.json +1 -1
@@ -0,0 +1,33 @@
1
+ import { Product } from '../../entity/Product';
2
+ import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
3
+ import { SimpleDiscountDto } from '../../payment/dto/discount.dto';
4
+ import { ResourceDto } from '../../spaces/dto/resource.dto';
5
+ import { CartStatusEnum } from '../types/enums/cart.enums';
6
+ export declare class CartItemDto extends OrganizationBaseEntityDto {
7
+ cartId: number;
8
+ userId?: number;
9
+ productId: number;
10
+ product?: Product;
11
+ price: number;
12
+ unitPrice?: number;
13
+ quantity?: number;
14
+ status: CartStatusEnum;
15
+ errors?: string[];
16
+ ordinal?: number;
17
+ percentage?: number;
18
+ isTaxInclusive?: boolean;
19
+ entitlementGroupId?: number;
20
+ parentId?: number;
21
+ parent?: CartItemDto;
22
+ taxItem?: CartItemDto;
23
+ children?: CartItemDto[];
24
+ discountId?: number;
25
+ discount?: SimpleDiscountDto;
26
+ resources?: ResourceDto[];
27
+ }
28
+ export declare class AddCartItemDto {
29
+ productId: number;
30
+ unitPrice: number;
31
+ quantity?: number;
32
+ userId?: number;
33
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddCartItemDto = exports.CartItemDto = void 0;
4
+ const organization_dto_1 = require("../../organization/dto/organization.dto");
5
+ class CartItemDto extends organization_dto_1.OrganizationBaseEntityDto {
6
+ }
7
+ exports.CartItemDto = CartItemDto;
8
+ class AddCartItemDto {
9
+ }
10
+ exports.AddCartItemDto = AddCartItemDto;
11
+ //# sourceMappingURL=cart-item.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart-item.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-item.dto.ts"],"names":[],"mappings":";;;AACA,8EAAoF;AAKpF,MAAa,WAAY,SAAQ,4CAAyB;CAwCzD;AAxCD,kCAwCC;AAED,MAAa,cAAc;CAQ1B;AARD,wCAQC"}
@@ -0,0 +1,38 @@
1
+ import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
2
+ import { CurrencyEnum, PlatformsEnum } from '../../services/enums.service';
3
+ import { ByOrganizationAndUserDto, SimpleUserDto } from '../../user/dto/user.dto';
4
+ import { CartStateEnum, CartStatusEnum } from '../types/enums/cart.enums';
5
+ import { AddCartItemDto, CartItemDto } from './cart-item.dto';
6
+ export declare class CartDto extends OrganizationBaseEntityDto {
7
+ createdAt: Date;
8
+ price: number;
9
+ state: CartStateEnum;
10
+ status: CartStatusEnum;
11
+ creatorId: number;
12
+ ownerId: number;
13
+ owner: SimpleUserDto;
14
+ currency: CurrencyEnum;
15
+ shiftId?: number;
16
+ platform: PlatformsEnum;
17
+ lastActiveTime: Date;
18
+ lastFetchedTime: Date;
19
+ cartItems: CartItemDto[];
20
+ }
21
+ export declare class UpdateCartDto {
22
+ ownerId?: number;
23
+ currency?: CurrencyEnum;
24
+ }
25
+ export declare class CreateCartDto extends UpdateCartDto {
26
+ shiftId?: number;
27
+ platform: PlatformsEnum;
28
+ cartItems?: AddCartItemDto[];
29
+ }
30
+ export declare class AddCartItemsDto {
31
+ cartItems: AddCartItemDto[];
32
+ }
33
+ export declare class CartItemsIdsDto {
34
+ cartItemsIds: number[];
35
+ }
36
+ export declare class ByOrganizationCartDto extends ByOrganizationAndUserDto {
37
+ cartId: number;
38
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ByOrganizationCartDto = exports.CartItemsIdsDto = exports.AddCartItemsDto = exports.CreateCartDto = exports.UpdateCartDto = exports.CartDto = void 0;
4
+ const organization_dto_1 = require("../../organization/dto/organization.dto");
5
+ const user_dto_1 = require("../../user/dto/user.dto");
6
+ class CartDto extends organization_dto_1.OrganizationBaseEntityDto {
7
+ }
8
+ exports.CartDto = CartDto;
9
+ class UpdateCartDto {
10
+ }
11
+ exports.UpdateCartDto = UpdateCartDto;
12
+ class CreateCartDto extends UpdateCartDto {
13
+ }
14
+ exports.CreateCartDto = CreateCartDto;
15
+ class AddCartItemsDto {
16
+ }
17
+ exports.AddCartItemsDto = AddCartItemsDto;
18
+ class CartItemsIdsDto {
19
+ }
20
+ exports.CartItemsIdsDto = CartItemsIdsDto;
21
+ class ByOrganizationCartDto extends user_dto_1.ByOrganizationAndUserDto {
22
+ }
23
+ exports.ByOrganizationCartDto = ByOrganizationCartDto;
24
+ //# sourceMappingURL=cart.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart.dto.ts"],"names":[],"mappings":";;;AAAA,8EAAoF;AAEpF,sDAAkF;AAIlF,MAAa,OAAQ,SAAQ,4CAAyB;CA0BrD;AA1BD,0BA0BC;AAED,MAAa,aAAa;CAIzB;AAJD,sCAIC;AAED,MAAa,aAAc,SAAQ,aAAa;CAM/C;AAND,sCAMC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,qBAAsB,SAAQ,mCAAwB;CAElE;AAFD,sDAEC"}
@@ -0,0 +1,2 @@
1
+ export * from './cart-item.dto';
2
+ export * from './cart.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("./cart-item.dto"), exports);
18
+ __exportStar(require("./cart.dto"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,6CAA2B"}
@@ -0,0 +1,34 @@
1
+ import { EntitlementGroup } from '../../entity/EntitlementGroup';
2
+ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
3
+ import { Product } from '../../entity/Product';
4
+ import { Discount } from '../../payment/entities/Discount';
5
+ import { ProductTypesEnum } from '../../services/enums.service';
6
+ import { ResourceDto } from '../../spaces/dto/resource.dto';
7
+ import { CartStatusEnum } from '../types/enums/cart.enums';
8
+ import { Cart } from './cart.entity';
9
+ export declare class CartItem extends OrganizationConnectionBaseEntity {
10
+ deletedAt?: Date;
11
+ cartId: number;
12
+ cart: Cart;
13
+ userId: number;
14
+ productId: number;
15
+ product: Product;
16
+ productType: ProductTypesEnum;
17
+ price: number;
18
+ unitPrice?: number;
19
+ quantity?: number;
20
+ status: CartStatusEnum;
21
+ errors?: string[];
22
+ ordinal?: number;
23
+ percentage?: number;
24
+ isTaxInclusive?: boolean;
25
+ entitlementGroupId?: number;
26
+ entitlementGroup?: EntitlementGroup;
27
+ parentId?: number;
28
+ parent?: CartItem;
29
+ children?: CartItem[];
30
+ taxItem?: CartItem;
31
+ discountId?: number;
32
+ discount?: Discount;
33
+ resources?: ResourceDto[];
34
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CartItem = void 0;
4
+ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
5
+ class CartItem extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
+ }
7
+ exports.CartItem = CartItem;
8
+ //# sourceMappingURL=cart-item.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAQjG,MAAa,QAAS,SAAQ,mEAAgC;CAgD7D;AAhDD,4BAgDC"}
@@ -0,0 +1,23 @@
1
+ import { UserAnswersDto } from '../../dto/application.dto';
2
+ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
3
+ import { Answer } from '../../questionnaires/entities/Answer';
4
+ import { CurrencyEnum, PlatformsEnum } from '../../services/enums.service';
5
+ import { User } from '../../user/entities/User';
6
+ import { CartStateEnum, CartStatusEnum } from '../types/enums/cart.enums';
7
+ import { CartItem } from './cart-item.entity';
8
+ export declare class Cart extends OrganizationConnectionBaseEntity {
9
+ deletedAt?: Date;
10
+ price: number;
11
+ state: CartStateEnum;
12
+ status: CartStatusEnum;
13
+ creatorId: number;
14
+ ownerId: number;
15
+ owner: User;
16
+ currency: CurrencyEnum;
17
+ shiftId?: number;
18
+ platform?: PlatformsEnum;
19
+ lastActiveTime: Date;
20
+ lastFetchedTime: Date;
21
+ cartItems: CartItem[];
22
+ answers: Answer[] | UserAnswersDto[];
23
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Cart = void 0;
4
+ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
5
+ class Cart extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
+ }
7
+ exports.Cart = Cart;
8
+ //# sourceMappingURL=cart.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAOjG,MAAa,IAAK,SAAQ,mEAAgC;CA4BzD;AA5BD,oBA4BC"}
@@ -0,0 +1,2 @@
1
+ export * from './cart-item.entity';
2
+ export * from './cart.entity';
@@ -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("./cart-item.entity"), exports);
18
+ __exportStar(require("./cart.entity"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,gDAA8B"}
@@ -0,0 +1,3 @@
1
+ export * from './dto';
2
+ export * from './entities';
3
+ export * from './types';
@@ -0,0 +1,20 @@
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("./entities"), exports);
19
+ __exportStar(require("./types"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/cart/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
@@ -0,0 +1,12 @@
1
+ export declare enum CartStateEnum {
2
+ ACTIVE = "active",
3
+ CANCELLED = "cancelled",
4
+ CLEARED = "cleared",
5
+ INVOICED = "invoiced"
6
+ }
7
+ export declare enum CartStatusEnum {
8
+ VALID = "valid",
9
+ INVALID = "invalid",
10
+ UNKNOWN = "unknown",
11
+ PROCESSING = "processing"
12
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CartStatusEnum = exports.CartStateEnum = void 0;
4
+ var CartStateEnum;
5
+ (function (CartStateEnum) {
6
+ CartStateEnum["ACTIVE"] = "active";
7
+ CartStateEnum["CANCELLED"] = "cancelled";
8
+ CartStateEnum["CLEARED"] = "cleared";
9
+ CartStateEnum["INVOICED"] = "invoiced";
10
+ })(CartStateEnum = exports.CartStateEnum || (exports.CartStateEnum = {}));
11
+ var CartStatusEnum;
12
+ (function (CartStatusEnum) {
13
+ CartStatusEnum["VALID"] = "valid";
14
+ CartStatusEnum["INVALID"] = "invalid";
15
+ CartStatusEnum["UNKNOWN"] = "unknown";
16
+ CartStatusEnum["PROCESSING"] = "processing";
17
+ })(CartStatusEnum = exports.CartStatusEnum || (exports.CartStatusEnum = {}));
18
+ //# sourceMappingURL=cart.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart.enums.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/enums/cart.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACxB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;AACtB,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAED,IAAY,cAKX;AALD,WAAY,cAAc;IACzB,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,2CAAyB,CAAA;AAC1B,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB"}
@@ -0,0 +1 @@
1
+ export * from './cart.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("./cart.enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
@@ -0,0 +1,2 @@
1
+ export * from './enums';
2
+ export * from './interfaces';
@@ -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("./enums"), exports);
18
+ __exportStar(require("./interfaces"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/cart/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,+CAA6B"}
@@ -0,0 +1,28 @@
1
+ import { Product } from '../../../entity/Product';
2
+ import { IPricesOfProductsResults } from '../../../services/interfaces.service';
3
+ import { ResourceDto } from '../../../spaces/dto/resource.dto';
4
+ import { Cart } from '../../entities/cart.entity';
5
+ export interface IAddCartItems {
6
+ cartId: number;
7
+ userId: number;
8
+ cartItems: ICreateCartItem[];
9
+ cart?: Cart;
10
+ }
11
+ export interface ICreateCartItem {
12
+ productId: number;
13
+ unitPrice: number;
14
+ quantity?: number;
15
+ userId?: number;
16
+ resources?: ResourceDto[];
17
+ }
18
+ export interface IValidateCartOptions {
19
+ overridePrice?: boolean;
20
+ skipValidations?: boolean;
21
+ }
22
+ export interface IValidateCartResult {
23
+ currentPrices: IPricesOfProductsResults[];
24
+ productsDict?: {
25
+ [key: number]: Product;
26
+ };
27
+ productsDataDeprecated?: Product[];
28
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=cart.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/interfaces/cart.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './cart.interfaces';
2
+ export * from './validate-cart.interfaces';
@@ -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("./cart.interfaces"), exports);
18
+ __exportStar(require("./validate-cart.interfaces"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,6DAA2C"}
@@ -0,0 +1,11 @@
1
+ import { IPricesOfProductsResults } from '../../../services/interfaces.service';
2
+ export type PriceValidationResult = {
3
+ currentPrices: IPricesOfProductsResults[];
4
+ };
5
+ export type TotalSumValidationResult = PriceValidationResult & {
6
+ currentPricesSum: number;
7
+ downpaymentsSum: number;
8
+ };
9
+ export interface IPricingValidator<TReturn = PriceValidationResult> {
10
+ validate(): TReturn;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=validate-cart.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate-cart.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/interfaces/validate-cart.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './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("./types"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/communication/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from './slack.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("./slack.enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/communication/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
@@ -0,0 +1,15 @@
1
+ export declare enum SlackIconsEnum {
2
+ DEFAULT = ":ghost:",
3
+ SLACK = ":slack:",
4
+ INFO = ":information_source:",
5
+ SUCCESS = ":white_check_mark:",
6
+ CHECK_YES = ":check_yes:",
7
+ BLUE_TICK = ":blue-tick:",
8
+ WARNING = ":warning:",
9
+ ERROR = ":x:",
10
+ SOS = ":sos:",
11
+ GREEN_ALERT = ":green_alert:",
12
+ HEART = ":heart:",
13
+ BONDY = ":bondy:",
14
+ BONDY_WORKING = ":working:"
15
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlackIconsEnum = void 0;
4
+ var SlackIconsEnum;
5
+ (function (SlackIconsEnum) {
6
+ SlackIconsEnum["DEFAULT"] = ":ghost:";
7
+ SlackIconsEnum["SLACK"] = ":slack:";
8
+ SlackIconsEnum["INFO"] = ":information_source:";
9
+ SlackIconsEnum["SUCCESS"] = ":white_check_mark:";
10
+ SlackIconsEnum["CHECK_YES"] = ":check_yes:";
11
+ SlackIconsEnum["BLUE_TICK"] = ":blue-tick:";
12
+ SlackIconsEnum["WARNING"] = ":warning:";
13
+ SlackIconsEnum["ERROR"] = ":x:";
14
+ SlackIconsEnum["SOS"] = ":sos:";
15
+ SlackIconsEnum["GREEN_ALERT"] = ":green_alert:";
16
+ SlackIconsEnum["HEART"] = ":heart:";
17
+ SlackIconsEnum["BONDY"] = ":bondy:";
18
+ SlackIconsEnum["BONDY_WORKING"] = ":working:";
19
+ })(SlackIconsEnum = exports.SlackIconsEnum || (exports.SlackIconsEnum = {}));
20
+ //# sourceMappingURL=slack.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slack.enums.js","sourceRoot":"","sources":["../../../../../src/types/communication/types/enums/slack.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAcX;AAdD,WAAY,cAAc;IACtB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,+CAA6B,CAAA;IAC7B,gDAA8B,CAAA;IAC9B,2CAAyB,CAAA;IACzB,2CAAyB,CAAA;IACzB,uCAAqB,CAAA;IACrB,+BAAa,CAAA;IACb,+BAAa,CAAA;IACb,+CAA6B,CAAA;IAC7B,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,6CAA2B,CAAA;AAC/B,CAAC,EAdW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAczB"}
@@ -0,0 +1,2 @@
1
+ export * from './enums';
2
+ export * from './interfaces';
@@ -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("./enums"), exports);
18
+ __exportStar(require("./interfaces"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/communication/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,+CAA6B"}
@@ -0,0 +1 @@
1
+ export * from './slack.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("./slack.interfaces"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/communication/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
@@ -0,0 +1,5 @@
1
+ import { SlackIconsEnum } from '../enums/slack.enums';
2
+ export interface ISendMessageOptions {
3
+ channel?: string;
4
+ icon?: SlackIconsEnum;
5
+ }