@bondsports/types 1.19.7 → 1.19.9

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 (29) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/payment/entities/Payment.d.ts +1 -1
  3. package/dist/types/payment/types/consts/payment.consts.d.ts +4 -0
  4. package/dist/types/payment/types/consts/payment.consts.js +4 -1
  5. package/dist/types/payment/types/consts/payment.consts.js.map +1 -1
  6. package/dist/types/purchase/index.d.ts +1 -1
  7. package/dist/types/purchase/index.js +1 -1
  8. package/dist/types/purchase/index.js.map +1 -1
  9. package/dist/types/purchase/types/consts/index.d.ts +1 -0
  10. package/dist/types/purchase/{interfaces → types/consts}/index.js +1 -1
  11. package/dist/types/purchase/types/consts/index.js.map +1 -0
  12. package/dist/types/purchase/types/consts/purchase.consts.d.ts +6 -0
  13. package/dist/types/purchase/{interfaces/purchase.js → types/consts/purchase.consts.js} +4 -6
  14. package/dist/types/purchase/types/consts/purchase.consts.js.map +1 -0
  15. package/dist/types/purchase/types/index.d.ts +2 -0
  16. package/dist/types/purchase/types/index.js +19 -0
  17. package/dist/types/purchase/types/index.js.map +1 -0
  18. package/dist/types/purchase/types/interfaces/index.d.ts +1 -0
  19. package/dist/types/purchase/types/interfaces/index.js +18 -0
  20. package/dist/types/purchase/types/interfaces/index.js.map +1 -0
  21. package/dist/types/purchase/{interfaces/purchase.d.ts → types/interfaces/purchase.interfaces.d.ts} +7 -10
  22. package/dist/types/purchase/types/interfaces/purchase.interfaces.js +7 -0
  23. package/dist/types/purchase/types/interfaces/purchase.interfaces.js.map +1 -0
  24. package/dist/types/services/interfaces.service.d.ts +2 -0
  25. package/dist/types/services/interfaces.service.js.map +1 -1
  26. package/package.json +1 -1
  27. package/dist/types/purchase/interfaces/index.d.ts +0 -1
  28. package/dist/types/purchase/interfaces/index.js.map +0 -1
  29. package/dist/types/purchase/interfaces/purchase.js.map +0 -1
@@ -15,7 +15,7 @@ export declare class Payment extends OrganizationConnectionBaseEntity {
15
15
  stripeFee?: number;
16
16
  currency: CurrencyEnum;
17
17
  payingUserId?: number;
18
- payingUser?: Partial<User>;
18
+ payingUser?: User;
19
19
  paymentMethodId?: string;
20
20
  paymentType?: PaymentMethodTypeEnum;
21
21
  status: FuturePaymentStatusEnum;
@@ -1 +1,5 @@
1
+ import { User } from '../../../entity/User';
2
+ import { PaymentStatusEnum } from '../../../services/enums.service';
1
3
  export declare const MIN_ACH_PAYMENT_AMOUNT = 0.5;
4
+ export declare const FINAL_PAYMENT_STATUSES: PaymentStatusEnum[];
5
+ export declare const USER_NAME_FIELDS: Array<keyof User>;
@@ -1,5 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MIN_ACH_PAYMENT_AMOUNT = void 0;
3
+ exports.USER_NAME_FIELDS = exports.FINAL_PAYMENT_STATUSES = exports.MIN_ACH_PAYMENT_AMOUNT = void 0;
4
+ const enums_service_1 = require("../../../services/enums.service");
4
5
  exports.MIN_ACH_PAYMENT_AMOUNT = 0.5;
6
+ exports.FINAL_PAYMENT_STATUSES = [enums_service_1.PaymentStatusEnum.VOID, enums_service_1.PaymentStatusEnum.REFUNDED];
7
+ exports.USER_NAME_FIELDS = ['id', 'firstName', 'lastName'];
5
8
  //# sourceMappingURL=payment.consts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payment.consts.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/consts/payment.consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG,GAAG,CAAC"}
1
+ {"version":3,"file":"payment.consts.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/consts/payment.consts.ts"],"names":[],"mappings":";;;AACA,mEAAoE;AAEvD,QAAA,sBAAsB,GAAG,GAAG,CAAC;AAC7B,QAAA,sBAAsB,GAAG,CAAC,iCAAiB,CAAC,IAAI,EAAE,iCAAiB,CAAC,QAAQ,CAAC,CAAC;AAC9E,QAAA,gBAAgB,GAAsB,CAAC,IAAI,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export * from './dto';
2
- export * from './interfaces';
2
+ export * from './types';
@@ -15,5 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dto"), exports);
18
- __exportStar(require("./interfaces"), exports);
18
+ __exportStar(require("./types"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/purchase/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/purchase/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,0CAAwB"}
@@ -0,0 +1 @@
1
+ export * from './purchase.consts';
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./purchase"), exports);
17
+ __exportStar(require("./purchase.consts"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/purchase/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
@@ -0,0 +1,6 @@
1
+ import { UserCount } from '../interfaces/purchase.interfaces';
2
+ import { PaymentMethodTypeEnum, PaymentStatusEnum } from '../../../services/enums.service';
3
+ export declare const ALLOWED_PAYMENT_INTENT_STATUSES: string[];
4
+ export declare const USER_COUNT_BY_GENDER_DEFAULT: UserCount;
5
+ export declare const CONSUMER_ALLOWED_PAYMENT_METHODS: PaymentMethodTypeEnum[];
6
+ export declare const VOID_OR_REFUND_STATUSES: PaymentStatusEnum[];
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PurchaseResult = exports.CONSUMER_ALLOWED_PAYMENT_METHODS = exports.USER_COUNT_BY_GENDER_DEFAULT = exports.ALLOWED_PAYMENT_INTENT_STATUSES = void 0;
4
- const enums_service_1 = require("../../services/enums.service");
3
+ exports.VOID_OR_REFUND_STATUSES = exports.CONSUMER_ALLOWED_PAYMENT_METHODS = exports.USER_COUNT_BY_GENDER_DEFAULT = exports.ALLOWED_PAYMENT_INTENT_STATUSES = void 0;
4
+ const enums_service_1 = require("../../../services/enums.service");
5
5
  exports.ALLOWED_PAYMENT_INTENT_STATUSES = ['processing', 'succeeded'];
6
6
  exports.USER_COUNT_BY_GENDER_DEFAULT = { male: 0, female: 0, other: 1 };
7
7
  exports.CONSUMER_ALLOWED_PAYMENT_METHODS = [
@@ -9,7 +9,5 @@ exports.CONSUMER_ALLOWED_PAYMENT_METHODS = [
9
9
  enums_service_1.PaymentMethodTypeEnum.CARD,
10
10
  enums_service_1.PaymentMethodTypeEnum.BALANCE,
11
11
  ];
12
- class PurchaseResult {
13
- }
14
- exports.PurchaseResult = PurchaseResult;
15
- //# sourceMappingURL=purchase.js.map
12
+ exports.VOID_OR_REFUND_STATUSES = [enums_service_1.PaymentStatusEnum.VOID, enums_service_1.PaymentStatusEnum.REFUNDED];
13
+ //# sourceMappingURL=purchase.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"purchase.consts.js","sourceRoot":"","sources":["../../../../../src/types/purchase/types/consts/purchase.consts.ts"],"names":[],"mappings":";;;AACA,mEAAyF;AAE5E,QAAA,+BAA+B,GAAG,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;AAE9D,QAAA,4BAA4B,GAAc,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAE3E,QAAA,gCAAgC,GAAG;IAC/C,qCAAqB,CAAC,GAAG;IACzB,qCAAqB,CAAC,IAAI;IAC1B,qCAAqB,CAAC,OAAO;CAC7B,CAAC;AAEW,QAAA,uBAAuB,GAAG,CAAC,iCAAiB,CAAC,IAAI,EAAE,iCAAiB,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './consts';
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("./consts"), exports);
18
+ __exportStar(require("./interfaces"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/purchase/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B"}
@@ -0,0 +1 @@
1
+ export * from './purchase.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("./purchase.interfaces"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/purchase/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
@@ -1,18 +1,15 @@
1
- import { IPricesOfProductsResults } from '../../services/interfaces.service';
2
- import { Customer } from '../../entity/Customer';
3
- import { Invoice } from '../../entity/Invoice';
4
- import { Product } from '../../entity/Product';
5
- import { ProductsUsers } from '../../entity/ProductsUsers';
6
- import { Payment } from '../../payment/entities/Payment';
7
- import { CurrencyEnum, LineItemsStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum, ProductSubTypesEnum, ProductTypesEnum } from '../../services/enums.service';
8
- export declare const ALLOWED_PAYMENT_INTENT_STATUSES: string[];
1
+ import { IPricesOfProductsResults } from '../../../services/interfaces.service';
2
+ import { Customer } from '../../../entity/Customer';
3
+ import { Invoice } from '../../../entity/Invoice';
4
+ import { Product } from '../../../entity/Product';
5
+ import { ProductsUsers } from '../../../entity/ProductsUsers';
6
+ import { Payment } from '../../../payment/entities/Payment';
7
+ import { CurrencyEnum, LineItemsStatusEnum, PaymentStatusEnum, ProductSubTypesEnum, ProductTypesEnum } from '../../../services/enums.service';
9
8
  export type UserCount = {
10
9
  male: number;
11
10
  female: number;
12
11
  other: number;
13
12
  };
14
- export declare const USER_COUNT_BY_GENDER_DEFAULT: UserCount;
15
- export declare const CONSUMER_ALLOWED_PAYMENT_METHODS: PaymentMethodTypeEnum[];
16
13
  export declare class PurchaseResult {
17
14
  status: PaymentStatusEnum;
18
15
  productUsers: ProductsUsers[];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PurchaseResult = void 0;
4
+ class PurchaseResult {
5
+ }
6
+ exports.PurchaseResult = PurchaseResult;
7
+ //# sourceMappingURL=purchase.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"purchase.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/purchase/types/interfaces/purchase.interfaces.ts"],"names":[],"mappings":";;;AAqBA,MAAa,cAAc;CAU1B;AAVD,wCAUC"}
@@ -13,6 +13,7 @@ import { Event } from './../entity/Events';
13
13
  import { Product } from './../entity/Product';
14
14
  import { ProgramSeason } from './../entity/ProgramSeason';
15
15
  import { AddonTimePeriodEnum, CurrencyEnum, EntitlementTermsTypesEnum, GenderEnum, LevelOfPlayEnum, MembershipStatusEnum, PackageProductsRelationTypeEnum, PaymentMethodTypeEnum, PaymentStatusEnum, ProductSubTypesEnum, ProductTypesEnum, ProgramTypesEnum, PurchasedResourceStatusEnum, RegistrationValidationStatusEnum, RegistrationWindowStatusEnum, ResourceNameTypeEnum, SlotTypeEnum, SportsEnum } from './enums.service';
16
+ import { User } from '../entity/User';
16
17
  export interface IEntitlementTerms {
17
18
  type: EntitlementTermsTypesEnum;
18
19
  id?: number;
@@ -127,6 +128,7 @@ export interface IPaymentMethodToFundLeft {
127
128
  fundLeft: number;
128
129
  ccLast4?: string;
129
130
  ccBrand?: string;
131
+ payingUser?: User;
130
132
  }
131
133
  export interface IVariantsAndTitle {
132
134
  title: VariantTitle;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.service.js","sourceRoot":"","sources":["../../../src/types/services/interfaces.service.ts"],"names":[],"mappings":";;;AAWA,+CAA2C;AAE3C,6DAA0D;AAC1D,mDAmByB;AAsEzB,MAAa,qBAAsB,SAAQ,6BAAa;IAAxD;;QACC,gBAAW,GAAyB,oCAAoB,CAAC,cAAc,CAAC;IAEzE,CAAC;CAAA;AAHD,sDAGC;AAED,MAAa,oBAAqB,SAAQ,cAAK;IAA/C;;QACC,gBAAW,GAAyB,oCAAoB,CAAC,KAAK,CAAC;IAEhE,CAAC;CAAA;AAHD,oDAGC"}
1
+ {"version":3,"file":"interfaces.service.js","sourceRoot":"","sources":["../../../src/types/services/interfaces.service.ts"],"names":[],"mappings":";;;AAWA,+CAA2C;AAE3C,6DAA0D;AAC1D,mDAmByB;AAuEzB,MAAa,qBAAsB,SAAQ,6BAAa;IAAxD;;QACC,gBAAW,GAAyB,oCAAoB,CAAC,cAAc,CAAC;IAEzE,CAAC;CAAA;AAHD,sDAGC;AAED,MAAa,oBAAqB,SAAQ,cAAK;IAA/C;;QACC,gBAAW,GAAyB,oCAAoB,CAAC,KAAK,CAAC;IAEhE,CAAC;CAAA;AAHD,oDAGC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "1.19.7",
3
+ "version": "1.19.9",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- export * from './purchase';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/purchase/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"purchase.js","sourceRoot":"","sources":["../../../../src/types/purchase/interfaces/purchase.ts"],"names":[],"mappings":";;;AAMA,gEAOsC;AAEzB,QAAA,+BAA+B,GAAG,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;AAQ9D,QAAA,4BAA4B,GAAc,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAE3E,QAAA,gCAAgC,GAAG;IAC/C,qCAAqB,CAAC,GAAG;IACzB,qCAAqB,CAAC,IAAI;IAC1B,qCAAqB,CAAC,OAAO;CAC7B,CAAC;AAEF,MAAa,cAAc;CAU1B;AAVD,wCAUC"}