@bondsports/types 2.4.39 → 2.4.40

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 (105) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/cart/dto/cart.dto.d.ts +3 -0
  3. package/dist/types/cart/dto/cart.dto.js.map +1 -1
  4. package/dist/types/cart/entities/cart.entity.d.ts +1 -0
  5. package/dist/types/cart/entities/cart.entity.js.map +1 -1
  6. package/dist/types/dto/general.dto.d.ts +1 -1
  7. package/dist/types/dto/index.d.ts +1 -0
  8. package/dist/types/dto/index.js +1 -0
  9. package/dist/types/dto/index.js.map +1 -1
  10. package/dist/types/dto/package.dto.d.ts +2 -0
  11. package/dist/types/dto/package.dto.js.map +1 -1
  12. package/dist/types/dto/station.dto.d.ts +6 -0
  13. package/dist/types/dto/station.dto.js +8 -0
  14. package/dist/types/dto/station.dto.js.map +1 -0
  15. package/dist/types/entity/Facility.d.ts +4 -0
  16. package/dist/types/entity/Facility.js.map +1 -1
  17. package/dist/types/entity/Invoice.d.ts +2 -0
  18. package/dist/types/entity/Invoice.js.map +1 -1
  19. package/dist/types/entity/Station.d.ts +4 -0
  20. package/dist/types/entity/Station.js.map +1 -1
  21. package/dist/types/facilities/types/facilities.types.d.ts +20 -1
  22. package/dist/types/fee/dto/fee.dto.d.ts +7 -4
  23. package/dist/types/fee/dto/fee.dto.js +11 -0
  24. package/dist/types/fee/dto/fee.dto.js.map +1 -1
  25. package/dist/types/fee/entities/Fee.d.ts +3 -2
  26. package/dist/types/fee/entities/Fee.js.map +1 -1
  27. package/dist/types/fee/types/enums/fee.enums.d.ts +5 -0
  28. package/dist/types/fee/types/enums/fee.enums.js +10 -0
  29. package/dist/types/fee/types/enums/fee.enums.js.map +1 -0
  30. package/dist/types/fee/types/enums/index.d.ts +1 -0
  31. package/dist/types/fee/types/enums/index.js +18 -0
  32. package/dist/types/fee/types/enums/index.js.map +1 -0
  33. package/dist/types/fee/types/index.d.ts +1 -0
  34. package/dist/types/fee/types/index.js +1 -0
  35. package/dist/types/fee/types/index.js.map +1 -1
  36. package/dist/types/fee/types/interfaces/fee.interfaces.d.ts +1 -0
  37. package/dist/types/fee/types/interfaces/fee.interfaces.js.map +1 -1
  38. package/dist/types/index.d.ts +1 -0
  39. package/dist/types/index.js +1 -0
  40. package/dist/types/index.js.map +1 -1
  41. package/dist/types/media/entities/Media.d.ts +2 -0
  42. package/dist/types/media/entities/Media.js.map +1 -1
  43. package/dist/types/payment/dto/payment.dto.d.ts +1 -0
  44. package/dist/types/payment/dto/payment.dto.js.map +1 -1
  45. package/dist/types/payment/entities/Payment.d.ts +1 -0
  46. package/dist/types/payment/entities/Payment.js.map +1 -1
  47. package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +1 -0
  48. package/dist/types/product-pricing/dto/product-categories.dto.d.ts +16 -0
  49. package/dist/types/product-pricing/dto/product-categories.dto.js +4 -1
  50. package/dist/types/product-pricing/dto/product-categories.dto.js.map +1 -1
  51. package/dist/types/product-pricing/dto/product.dto.d.ts +6 -0
  52. package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
  53. package/dist/types/product-pricing/entities/index.d.ts +1 -0
  54. package/dist/types/product-pricing/entities/index.js +1 -0
  55. package/dist/types/product-pricing/entities/index.js.map +1 -1
  56. package/dist/types/product-pricing/entities/product-category.entity.d.ts +6 -0
  57. package/dist/types/product-pricing/entities/product-category.entity.js.map +1 -1
  58. package/dist/types/product-pricing/entities/product.entity.d.ts +3 -0
  59. package/dist/types/product-pricing/entities/product.entity.js.map +1 -1
  60. package/dist/types/product-pricing/entities/station-to-product-category.entity.d.ts +12 -0
  61. package/dist/types/product-pricing/entities/station-to-product-category.entity.js +8 -0
  62. package/dist/types/product-pricing/entities/station-to-product-category.entity.js.map +1 -0
  63. package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +8 -0
  64. package/dist/types/product-pricing/types/consts/product-category.consts.js +4 -1
  65. package/dist/types/product-pricing/types/consts/product-category.consts.js.map +1 -1
  66. package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.d.ts +10 -0
  67. package/dist/types/purchase/dto/purchase.dto.d.ts +2 -0
  68. package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
  69. package/dist/types/tip-configurations/dto/index.d.ts +1 -0
  70. package/dist/types/tip-configurations/dto/index.js +18 -0
  71. package/dist/types/tip-configurations/dto/index.js.map +1 -0
  72. package/dist/types/tip-configurations/dto/tip-configuration.dto.d.ts +43 -0
  73. package/dist/types/tip-configurations/dto/tip-configuration.dto.js +37 -0
  74. package/dist/types/tip-configurations/dto/tip-configuration.dto.js.map +1 -0
  75. package/dist/types/tip-configurations/entities/TipConfiguration.d.ts +11 -0
  76. package/dist/types/tip-configurations/entities/TipConfiguration.js +8 -0
  77. package/dist/types/tip-configurations/entities/TipConfiguration.js.map +1 -0
  78. package/dist/types/tip-configurations/entities/index.d.ts +1 -0
  79. package/dist/types/tip-configurations/entities/index.js +18 -0
  80. package/dist/types/tip-configurations/entities/index.js.map +1 -0
  81. package/dist/types/tip-configurations/index.d.ts +3 -0
  82. package/dist/types/tip-configurations/index.js +20 -0
  83. package/dist/types/tip-configurations/index.js.map +1 -0
  84. package/dist/types/tip-configurations/types/consts/index.d.ts +1 -0
  85. package/dist/types/tip-configurations/types/consts/index.js +18 -0
  86. package/dist/types/tip-configurations/types/consts/index.js.map +1 -0
  87. package/dist/types/tip-configurations/types/consts/tip-configuration.consts.d.ts +4 -0
  88. package/dist/types/tip-configurations/types/consts/tip-configuration.consts.js +7 -0
  89. package/dist/types/tip-configurations/types/consts/tip-configuration.consts.js.map +1 -0
  90. package/dist/types/tip-configurations/types/enums/index.d.ts +1 -0
  91. package/dist/types/tip-configurations/types/enums/index.js +18 -0
  92. package/dist/types/tip-configurations/types/enums/index.js.map +1 -0
  93. package/dist/types/tip-configurations/types/enums/tipping-mode.enum.d.ts +9 -0
  94. package/dist/types/tip-configurations/types/enums/tipping-mode.enum.js +15 -0
  95. package/dist/types/tip-configurations/types/enums/tipping-mode.enum.js.map +1 -0
  96. package/dist/types/tip-configurations/types/index.d.ts +3 -0
  97. package/dist/types/tip-configurations/types/index.js +20 -0
  98. package/dist/types/tip-configurations/types/index.js.map +1 -0
  99. package/dist/types/tip-configurations/types/interfaces/index.d.ts +1 -0
  100. package/dist/types/tip-configurations/types/interfaces/index.js +18 -0
  101. package/dist/types/tip-configurations/types/interfaces/index.js.map +1 -0
  102. package/dist/types/tip-configurations/types/interfaces/tip-configuration.interfaces.d.ts +44 -0
  103. package/dist/types/tip-configurations/types/interfaces/tip-configuration.interfaces.js +3 -0
  104. package/dist/types/tip-configurations/types/interfaces/tip-configuration.interfaces.js.map +1 -0
  105. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
1
  export * from './product-category.entity';
2
2
  export * from './product-to-facility.entity';
3
3
  export * from './product.entity';
4
+ export * from './station-to-product-category.entity';
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./product-category.entity"), exports);
18
18
  __exportStar(require("./product-to-facility.entity"), exports);
19
19
  __exportStar(require("./product.entity"), exports);
20
+ __exportStar(require("./station-to-product-category.entity"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC;AACjC,uEAAqD"}
@@ -1,12 +1,18 @@
1
1
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
2
2
  import { ProductTypesEnum } from '../../services/enums.service';
3
3
  import { Product } from './product.entity';
4
+ import { Station } from '../../entity/Station';
5
+ import { StationToProductCategory } from './station-to-product-category.entity';
4
6
  export declare class ProductCategory extends OrganizationConnectionBaseEntity {
5
7
  name: string;
6
8
  description?: string;
7
9
  productType: ProductTypesEnum;
8
10
  settings?: unknown;
11
+ ordinal?: number;
12
+ isTipEligible: boolean;
9
13
  deletedAt?: Date;
10
14
  products?: Product[];
15
+ stationToProductCategories?: StationToProductCategory[];
16
+ stations?: Station[];
11
17
  productsCount?: number;
12
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"product-category.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product-category.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAKjG,MAAa,eAAgB,SAAQ,mEAAgC;CAcpE;AAdD,0CAcC"}
1
+ {"version":3,"file":"product-category.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product-category.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAOjG,MAAa,eAAgB,SAAQ,mEAAgC;CAsBpE;AAtBD,0CAsBC"}
@@ -11,6 +11,7 @@ import { PurchasedResource } from '../../entity/PurchasedResources';
11
11
  import { Variant } from '../../entity/Variants';
12
12
  import { VariantTitle } from '../../entity/VariantTitles';
13
13
  import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
14
+ import { Media } from '../../media/entities/Media';
14
15
  import { Membership } from '../../membership/entities/membership.entity';
15
16
  import { Discount } from '../../payment/entities/Discount';
16
17
  import { ProductPaymentPlan } from '../../payment/entities/ProductPaymentPlan';
@@ -38,6 +39,8 @@ export declare class Product extends OrganizationConnectionBaseEntity {
38
39
  glCodes?: ResourceGlDto[];
39
40
  downpayment?: number;
40
41
  description?: string;
42
+ mainMediaId?: number;
43
+ mainMedia?: Media;
41
44
  prices: Price[];
42
45
  currPrice: Price;
43
46
  productSubType?: ProductSubTypesEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;AAyBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAuJ5D;AAvJD,0BAuJC"}
1
+ {"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;AA0BjG,MAAa,OAAQ,SAAQ,mEAAgC;CA2J5D;AA3JD,0BA2JC"}
@@ -0,0 +1,12 @@
1
+ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
2
+ import { Station } from '../../entity/Station';
3
+ import { ProductTypesEnum } from '../../services/enums.service';
4
+ import { ProductCategory } from './product-category.entity';
5
+ export declare class StationToProductCategory extends OrganizationConnectionBaseEntity {
6
+ stationId: number;
7
+ productCategoryId: number;
8
+ productType: ProductTypesEnum;
9
+ deletedAt?: Date;
10
+ station: Station;
11
+ productCategory: ProductCategory;
12
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StationToProductCategory = void 0;
4
+ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
5
+ class StationToProductCategory extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
+ }
7
+ exports.StationToProductCategory = StationToProductCategory;
8
+ //# sourceMappingURL=station-to-product-category.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"station-to-product-category.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/station-to-product-category.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAMjG,MAAa,wBAAyB,SAAQ,mEAAgC;CAY7E;AAZD,4DAYC"}
@@ -531,4 +531,12 @@ export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
531
531
  }[]];
532
532
  }>;
533
533
  export type TProductCategoryOnlineBookingSettings = z.infer<typeof RESERVATION_SETTINGS_SCHEMA>;
534
+ export declare const GOODS_SETTINGS_SCHEMA: z.ZodObject<{
535
+ colorCodeId: z.ZodNullable<z.ZodNumber>;
536
+ }, "strip", z.ZodTypeAny, {
537
+ colorCodeId?: number;
538
+ }, {
539
+ colorCodeId?: number;
540
+ }>;
541
+ export type TProductCategoryGoodsSettings = z.infer<typeof GOODS_SETTINGS_SCHEMA>;
534
542
  export declare const RESERVATION_DEFAULT_SETTINGS: TProductCategoryOnlineBookingSettings;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RESERVATION_DEFAULT_SETTINGS = exports.RESERVATION_SETTINGS_SCHEMA = void 0;
3
+ exports.RESERVATION_DEFAULT_SETTINGS = exports.GOODS_SETTINGS_SCHEMA = exports.RESERVATION_SETTINGS_SCHEMA = void 0;
4
4
  const date_time_1 = require("@bondsports/date-time");
5
5
  const zod_1 = require("zod");
6
6
  const enums_service_1 = require("../../../services/enums.service");
@@ -68,6 +68,9 @@ exports.RESERVATION_SETTINGS_SCHEMA = zod_1.z
68
68
  const membershipIds = settings.memberships?.flatMap(setting => setting.membershipsIds) ?? [];
69
69
  const uniqueMembershipIds = [...new Set(membershipIds)];
70
70
  });
71
+ exports.GOODS_SETTINGS_SCHEMA = zod_1.z.object({
72
+ colorCodeId: zod_1.z.number().int().nullable(),
73
+ });
71
74
  exports.RESERVATION_DEFAULT_SETTINGS = {
72
75
  default: {
73
76
  advanceBookingWindow: {
@@ -1 +1 @@
1
- {"version":3,"file":"product-category.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-category.consts.ts"],"names":[],"mappings":";;;AAAA,qDAA8D;AAC9D,6BAAmC;AAEnC,mEAAwF;AAExF,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,MAAM,2BAA2B,GAAW,IAAA,uBAAW,EAAC,eAAe,EAAE,oBAAQ,CAAC,MAAM,EAAE,oBAAQ,CAAC,MAAM,CAAC,CAAC;AAE3G,MAAM,cAAc,GAAc,OAA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M,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;KACD;IACD,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,IAAI;IACtB,sBAAsB,EAAE,IAAI;IAC5B,6BAA6B,EAAE,IAAI;CACnC,CAAC"}
1
+ {"version":3,"file":"product-category.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-category.consts.ts"],"names":[],"mappings":";;;AAAA,qDAA8D;AAC9D,6BAAmC;AAEnC,mEAAwF;AAExF,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,MAAM,2BAA2B,GAAW,IAAA,uBAAW,EAAC,eAAe,EAAE,oBAAQ,CAAC,MAAM,EAAE,oBAAQ,CAAC,MAAM,CAAC,CAAC;AAE3G,MAAM,cAAc,GAAc,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAE1D,MAAM,eAAe,GAAiF,OAAC,CAAC,MAAM,CAAC;IAC9G,MAAM,EAAE,cAAc;IACtB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,oBAAQ,CAAC;CAC5B,CAAC,CAAC;AAEH,MAAM,0BAA0B,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC7E,MAAM,iBAAiB,GAAG,IAAA,uBAAW,EAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,oBAAQ,CAAC,MAAM,CAAC,CAAC;AAElF,CAAC,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,OAAC;KAC1C,MAAM,CAAC;IACP,aAAa,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,UAAU,CAAC,gCAAgB,CAAC,CAAC,CAAC,QAAQ,EAAE;IAEjE,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAE3C,sBAAsB,EAAE,OAAC,CA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,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAIU,QAAA,4BAA4B,GAA0C;IAClF,OAAO,EAAE;QACR,oBAAoB,EAAE;YACrB,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,oBAAQ,CAAC,GAAG;SAClB;QACD,oBAAoB,EAAE;YACrB,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,GAAG;SAClB;QACD,eAAe,EAAE,IAAI;QACrB,qBAAqB,EAAE,IAAI;KAC3B;IACD,gBAAgB,EAAE;QACjB,WAAW,EAAE;YACZ,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,oBAAQ,CAAC,MAAM;SACrB;QACD,WAAW,EAAE;YACZ,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;QACD,YAAY,EAAE;YACb,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,oBAAQ,CAAC,MAAM;SACrB;QACD,eAAe,EAAE;YAChB,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,oBAAQ,CAAC,IAAI;SACnB;KACD;IACD,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,IAAI;IACtB,sBAAsB,EAAE,IAAI;IAC5B,6BAA6B,EAAE,IAAI;CACnC,CAAC"}
@@ -6,10 +6,12 @@ import { CategoryOrderColumnEnum } from '../enums/product-categories.enums';
6
6
  export interface IGetProductCategories extends IPagination {
7
7
  approvalRequired?: boolean;
8
8
  categoriesIds?: number[];
9
+ isTipEligible?: boolean;
9
10
  order?: OrderByEnum;
10
11
  orderBy?: CategoryOrderColumnEnum;
11
12
  resourceTypes?: ResourceTypeEnum[];
12
13
  search?: string;
14
+ stationIds?: number[];
13
15
  vipEnabled?: boolean;
14
16
  }
15
17
  export interface ISettingValidationIssue {
@@ -24,3 +26,11 @@ export interface ISettingsValidationResult<T = ISettings> {
24
26
  export interface IRawProductCategoryData extends BondBaseEntity {
25
27
  productsCount: number;
26
28
  }
29
+ export interface IItemWithProductCategory {
30
+ product?: {
31
+ productCategory?: {
32
+ isTipEligible?: boolean;
33
+ };
34
+ };
35
+ totalPrice?: number;
36
+ }
@@ -102,6 +102,7 @@ export declare class PartialPaymentRequestDto {
102
102
  platform: PlatformsEnum;
103
103
  shiftId?: number;
104
104
  installmentIds?: number[];
105
+ tipAmount?: number;
105
106
  }
106
107
  export declare class RedeemPunchCardRequestDto {
107
108
  products: PurchaseProductDto[];
@@ -140,4 +141,5 @@ export declare class PurchaseCartDto extends InvoiceCartDto implements IPurchase
140
141
  parentPurchasedType?: ResourceNameTypeEnum;
141
142
  updatePrices?: UpdateCartPricesDto;
142
143
  addToReservationId?: number;
144
+ tipAmount?: number;
143
145
  }
@@ -1 +1 @@
1
- {"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAOA,+DAA+D;AAC/D,8EAA8E;AAe9E,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CAiC9B;AAjCD,gDAiCC;AAED,MAAa,mBAAmB;CAkB/B;AAlBD,kDAkBC;AAED,MAAa,kBAAkB;CAkC9B;AAlCD,gDAkCC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,eAAgB,SAAQ,4BAAc;CAgBlD;AAhBD,0CAgBC"}
1
+ {"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAOA,+DAA+D;AAC/D,8EAA8E;AAe9E,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CAiC9B;AAjCD,gDAiCC;AAED,MAAa,mBAAmB;CAkB/B;AAlBD,kDAkBC;AAED,MAAa,kBAAkB;CAkC9B;AAlCD,gDAkCC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAkBpC;AAlBD,4DAkBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,eAAgB,SAAQ,4BAAc;CAkBlD;AAlBD,0CAkBC"}
@@ -0,0 +1 @@
1
+ export * from './tip-configuration.dto';
@@ -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("./tip-configuration.dto"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/tip-configurations/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
@@ -0,0 +1,43 @@
1
+ import { BasicFacilityDto } from '../../dto/facilities.dto';
2
+ import { PaginationQuery } from '../../dto/general.dto';
3
+ import { ByOrganizationIdDto, OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
4
+ import { OrderByEnum } from '../../services/enums.service';
5
+ import { TipConfigOrderByEnum, TippingModeEnum } from '../types/enums/tipping-mode.enum';
6
+ import { ITipConfigOptions, ITypeAndConfig } from '../types/interfaces/tip-configuration.interfaces';
7
+ export declare class ByTipConfigDto extends ByOrganizationIdDto {
8
+ tipConfigId: number;
9
+ }
10
+ export declare class ByFacilityTipConfigDto extends ByOrganizationIdDto {
11
+ facilityId: number;
12
+ }
13
+ export declare class TipConfigOptionsDto implements ITipConfigOptions {
14
+ percentages?: number[];
15
+ fixedAmounts?: number[];
16
+ smartTipThreshold?: number;
17
+ }
18
+ export declare class CreateTipConfigDto implements ITypeAndConfig {
19
+ facilityIds?: number[];
20
+ allFacilities?: boolean;
21
+ type: TippingModeEnum;
22
+ config: TipConfigOptionsDto;
23
+ }
24
+ export declare class UpdateTipConfigDto implements Partial<ITypeAndConfig> {
25
+ allFacilities?: boolean;
26
+ type?: TippingModeEnum;
27
+ config?: TipConfigOptionsDto;
28
+ facilitiesIdsToAdd?: number[];
29
+ facilitiesIdsToRemove?: number[];
30
+ }
31
+ export declare class ListTipConfigFiltersDto extends PaginationQuery {
32
+ sortBy?: TipConfigOrderByEnum;
33
+ order?: OrderByEnum;
34
+ types?: TippingModeEnum[];
35
+ search?: string;
36
+ }
37
+ export declare class TipConfigurationDto extends OrganizationBaseEntityDto {
38
+ type: TippingModeEnum;
39
+ config: ITipConfigOptions;
40
+ facilities?: BasicFacilityDto[];
41
+ createdAt: Date;
42
+ updatedAt: Date;
43
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TipConfigurationDto = exports.ListTipConfigFiltersDto = exports.UpdateTipConfigDto = exports.CreateTipConfigDto = exports.TipConfigOptionsDto = exports.ByFacilityTipConfigDto = exports.ByTipConfigDto = void 0;
4
+ const general_dto_1 = require("../../dto/general.dto");
5
+ const organization_dto_1 = require("../../organization/dto/organization.dto");
6
+ //# region Param DTOs
7
+ class ByTipConfigDto extends organization_dto_1.ByOrganizationIdDto {
8
+ }
9
+ exports.ByTipConfigDto = ByTipConfigDto;
10
+ class ByFacilityTipConfigDto extends organization_dto_1.ByOrganizationIdDto {
11
+ }
12
+ exports.ByFacilityTipConfigDto = ByFacilityTipConfigDto;
13
+ //# endregion
14
+ //# region Config Options DTO
15
+ class TipConfigOptionsDto {
16
+ }
17
+ exports.TipConfigOptionsDto = TipConfigOptionsDto;
18
+ //# endregion
19
+ //# region Request DTOs
20
+ class CreateTipConfigDto {
21
+ }
22
+ exports.CreateTipConfigDto = CreateTipConfigDto;
23
+ class UpdateTipConfigDto {
24
+ }
25
+ exports.UpdateTipConfigDto = UpdateTipConfigDto;
26
+ //# endregion
27
+ //# region Query DTOs
28
+ class ListTipConfigFiltersDto extends general_dto_1.PaginationQuery {
29
+ }
30
+ exports.ListTipConfigFiltersDto = ListTipConfigFiltersDto;
31
+ //# endregion
32
+ //# region Response DTOs
33
+ class TipConfigurationDto extends organization_dto_1.OrganizationBaseEntityDto {
34
+ }
35
+ exports.TipConfigurationDto = TipConfigurationDto;
36
+ //# endregion
37
+ //# sourceMappingURL=tip-configuration.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tip-configuration.dto.js","sourceRoot":"","sources":["../../../../src/types/tip-configurations/dto/tip-configuration.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAwD;AACxD,8EAAyG;AAMzG,qBAAqB;AAErB,MAAa,cAAe,SAAQ,sCAAmB;CAEtD;AAFD,wCAEC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,aAAa;AAEb,6BAA6B;AAE7B,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,aAAa;AAEb,uBAAuB;AAEvB,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,aAAa;AAEb,qBAAqB;AAErB,MAAa,uBAAwB,SAAQ,6BAAe;CAQ3D;AARD,0DAQC;AAED,aAAa;AAEb,wBAAwB;AACxB,MAAa,mBAAoB,SAAQ,4CAAyB;CAUjE;AAVD,kDAUC;AAED,aAAa"}
@@ -0,0 +1,11 @@
1
+ import { Facility } from '../../entity/Facility';
2
+ import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
3
+ import { TippingModeEnum } from '../types/enums/tipping-mode.enum';
4
+ import { ITipConfigOptions } from '../types/interfaces/tip-configuration.interfaces';
5
+ export declare class TipConfiguration extends OrganizationConnectionBaseEntity {
6
+ type: TippingModeEnum;
7
+ config: ITipConfigOptions;
8
+ deletedAt?: Date;
9
+ facilities?: Facility[];
10
+ }
11
+ export type TipConfigurationRelation = 'facilities';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TipConfiguration = void 0;
4
+ const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
5
+ class TipConfiguration extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
6
+ }
7
+ exports.TipConfiguration = TipConfiguration;
8
+ //# sourceMappingURL=TipConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TipConfiguration.js","sourceRoot":"","sources":["../../../../src/types/tip-configurations/entities/TipConfiguration.ts"],"names":[],"mappings":";;;AAGA,oGAAiG;AAIjG,MAAa,gBAAiB,SAAQ,mEAAgC;CAQrE;AARD,4CAQC"}
@@ -0,0 +1 @@
1
+ export * from './TipConfiguration';
@@ -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("./TipConfiguration"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/tip-configurations/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
@@ -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/tip-configurations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from './tip-configuration.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("./tip-configuration.consts"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C"}
@@ -0,0 +1,4 @@
1
+ import { ITipConfigOptions } from "../interfaces/tip-configuration.interfaces";
2
+ export declare const MAX_TIP_PERCENTAGE = 50;
3
+ export declare const TIP_CONFIG_FIELDS: (keyof ITipConfigOptions)[];
4
+ export declare const TIPS_EXPECTED_VALUES_LENGTH = 3;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TIPS_EXPECTED_VALUES_LENGTH = exports.TIP_CONFIG_FIELDS = exports.MAX_TIP_PERCENTAGE = void 0;
4
+ exports.MAX_TIP_PERCENTAGE = 50;
5
+ exports.TIP_CONFIG_FIELDS = ['percentages', 'fixedAmounts', 'smartTipThreshold'];
6
+ exports.TIPS_EXPECTED_VALUES_LENGTH = 3;
7
+ //# sourceMappingURL=tip-configuration.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tip-configuration.consts.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/consts/tip-configuration.consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAG,EAAE,CAAC;AAExB,QAAA,iBAAiB,GAAgC,CAAC,aAAa,EAAE,cAAc,EAAE,mBAAmB,CAAC,CAAC;AAEtG,QAAA,2BAA2B,GAAG,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './tipping-mode.enum';
@@ -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("./tipping-mode.enum"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
@@ -0,0 +1,9 @@
1
+ export declare enum TippingModeEnum {
2
+ FIXED = "FIXED",
3
+ PERCENTAGE = "PERCENTAGE",
4
+ SMART = "SMART"
5
+ }
6
+ export declare enum TipConfigOrderByEnum {
7
+ UPDATED_AT = "updatedAt",
8
+ TYPE = "type"
9
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TipConfigOrderByEnum = exports.TippingModeEnum = void 0;
4
+ var TippingModeEnum;
5
+ (function (TippingModeEnum) {
6
+ TippingModeEnum["FIXED"] = "FIXED";
7
+ TippingModeEnum["PERCENTAGE"] = "PERCENTAGE";
8
+ TippingModeEnum["SMART"] = "SMART";
9
+ })(TippingModeEnum = exports.TippingModeEnum || (exports.TippingModeEnum = {}));
10
+ var TipConfigOrderByEnum;
11
+ (function (TipConfigOrderByEnum) {
12
+ TipConfigOrderByEnum["UPDATED_AT"] = "updatedAt";
13
+ TipConfigOrderByEnum["TYPE"] = "type";
14
+ })(TipConfigOrderByEnum = exports.TipConfigOrderByEnum || (exports.TipConfigOrderByEnum = {}));
15
+ //# sourceMappingURL=tipping-mode.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tipping-mode.enum.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/enums/tipping-mode.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAIX;AAJD,WAAY,eAAe;IAC1B,kCAAe,CAAA;IACf,4CAAyB,CAAA;IACzB,kCAAe,CAAA;AAChB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC/B,gDAAwB,CAAA;IACxB,qCAAa,CAAA;AACd,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B"}
@@ -0,0 +1,3 @@
1
+ export * from './consts';
2
+ export * from './enums';
3
+ export * from './interfaces';
@@ -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("./consts"), exports);
18
+ __exportStar(require("./enums"), exports);
19
+ __exportStar(require("./interfaces"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/tip-configurations/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
@@ -0,0 +1 @@
1
+ export * from './tip-configuration.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("./tip-configuration.interfaces"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C"}
@@ -0,0 +1,44 @@
1
+ import { OrderByEnum } from '../../../services/enums.service';
2
+ import { IPagination } from '../../../util/models/interfaces/general.interfaces';
3
+ import { TipConfigOrderByEnum, TippingModeEnum } from '../enums/tipping-mode.enum';
4
+ export interface ITipConfigOptions {
5
+ fixedAmounts?: number[];
6
+ percentages?: number[];
7
+ smartTipThreshold?: number;
8
+ }
9
+ export interface IStripeTippingConfig {
10
+ fixed_amounts?: number[];
11
+ percentages?: number[];
12
+ smart_tip_threshold?: number;
13
+ }
14
+ export interface ITipConfigFacility {
15
+ id: number;
16
+ locationId: string;
17
+ name: string;
18
+ }
19
+ export interface ITypeAndConfig {
20
+ config: ITipConfigOptions;
21
+ type: TippingModeEnum;
22
+ }
23
+ export interface ICreateTipConfig {
24
+ allFacilities?: boolean;
25
+ config: ITipConfigOptions;
26
+ facilityIds?: number[];
27
+ type: TippingModeEnum;
28
+ }
29
+ export interface IUpdateTipConfig {
30
+ allFacilities?: boolean;
31
+ config?: ITipConfigOptions;
32
+ facilitiesIdsToAdd?: number[];
33
+ facilitiesIdsToRemove?: number[];
34
+ type?: TippingModeEnum;
35
+ }
36
+ export interface ICleanupOrphanedTipConfigsOptions {
37
+ specificIds?: number[];
38
+ }
39
+ export interface IListTipConfigFilters extends IPagination {
40
+ order?: OrderByEnum;
41
+ search?: string;
42
+ sortBy?: TipConfigOrderByEnum;
43
+ types?: TippingModeEnum[];
44
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=tip-configuration.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tip-configuration.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/tip-configurations/types/interfaces/tip-configuration.interfaces.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.4.39",
3
+ "version": "2.4.40",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {