@bondsports/types 2.4.54 → 2.4.56

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.
@@ -136,6 +136,8 @@ export declare class CartPricingResultDto {
136
136
  discountAmount?: number;
137
137
  discountSubTotal?: number;
138
138
  }
139
+ export declare class CartPricingResponseDto extends CartPricingResultDto {
140
+ }
139
141
  export declare class UpdateProductPriceDto implements IUpdateProductPrice {
140
142
  productId: number;
141
143
  priceId: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateCartPricesDto = exports.UpdatePricesByCategoriesDto = exports.UpdatePricesByProductsDto = exports.UpdateProductPriceDto = exports.CartPricingResultDto = exports.ByCategoriesResultDto = exports.ByProductsResultDto = exports.ProductPriceResultDto = exports.GetExtendedCartDto = exports.UsePromoCodesOnCartDto = exports.RemoveCartDiscountQueryDto = exports.SetCartDiscountsDto = exports.SetCartDiscountDto = exports.GetCartsFiltersDto = exports.RemoveCartItemsQueryDto = exports.ByOrganizationCartDto = exports.ByUserCartDto = exports.UpdateCartItemsDto = exports.AddCartItemsDto = exports.ClearCartDto = exports.CreateCartDto = exports.UpdateCartDto = exports.OrganizationCartDto = exports.CartDto = exports.SimpleCartDto = void 0;
3
+ exports.UpdateCartPricesDto = exports.UpdatePricesByCategoriesDto = exports.UpdatePricesByProductsDto = exports.UpdateProductPriceDto = exports.CartPricingResponseDto = exports.CartPricingResultDto = exports.ByCategoriesResultDto = exports.ByProductsResultDto = exports.ProductPriceResultDto = exports.GetExtendedCartDto = exports.UsePromoCodesOnCartDto = exports.RemoveCartDiscountQueryDto = exports.SetCartDiscountsDto = exports.SetCartDiscountDto = exports.GetCartsFiltersDto = exports.RemoveCartItemsQueryDto = exports.ByOrganizationCartDto = exports.ByUserCartDto = exports.UpdateCartItemsDto = exports.AddCartItemsDto = exports.ClearCartDto = exports.CreateCartDto = exports.UpdateCartDto = exports.OrganizationCartDto = exports.CartDto = exports.SimpleCartDto = void 0;
4
4
  const general_dto_1 = require("../../dto/general.dto");
5
5
  const organization_dto_1 = require("../../organization/dto/organization.dto");
6
6
  const user_dto_1 = require("../../user/dto/user.dto");
@@ -67,6 +67,9 @@ exports.ByCategoriesResultDto = ByCategoriesResultDto;
67
67
  class CartPricingResultDto {
68
68
  }
69
69
  exports.CartPricingResultDto = CartPricingResultDto;
70
+ class CartPricingResponseDto extends CartPricingResultDto {
71
+ }
72
+ exports.CartPricingResponseDto = CartPricingResponseDto;
70
73
  class UpdateProductPriceDto {
71
74
  }
72
75
  exports.UpdateProductPriceDto = UpdateProductPriceDto;
@@ -1 +1 @@
1
- {"version":3,"file":"cart.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart.dto.ts"],"names":[],"mappings":";;;AAIA,uDAAwD;AACxD,8EAAyG;AAWzG,sDAAkF;AAWlF,MAAa,aAAc,SAAQ,4CAAyB;CAQ3D;AARD,sCAQC;AAED,MAAa,OAAQ,SAAQ,aAAa;CAsCzC;AAtCD,0BAsCC;AAED,MAAa,mBAAoB,SAAQ,OAAO;CAAG;AAAnD,kDAAmD;AAEnD,MAAa,aAAa;CASzB;AATD,sCASC;AAED,MAAa,aAAc,SAAQ,aAAa;CAM/C;AAND,sCAMC;AAED,MAAa,YAAY;CAIxB;AAJD,oCAIC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,aAAc,SAAQ,mCAAwB;CAE1D;AAFD,sCAEC;AAED,MAAa,qBAAsB,SAAQ,sCAAmB;CAE7D;AAFD,sDAEC;AAED,MAAa,uBAAuB;CAMnC;AAND,0DAMC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAQtD;AARD,gDAQC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAE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sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,qBAAqB;CAkCjC;AAlCD,sDAkCC;AAED,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,oBAAoB;CAkBhC;AAlBD,oDAkBC;AAED,MAAa,sBAAuB,SAAQ,oBAAoB;CAAG;AAAnE,wDAAmE;AAEnE,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
@@ -26,6 +26,7 @@ export declare class Invoice extends BondBaseEntity {
26
26
  sentForClientDate?: Date;
27
27
  payingUserId?: number;
28
28
  owner?: User;
29
+ organizationId?: number;
29
30
  invoiceToPayments: InvoiceToPayment[];
30
31
  payments: Payment[];
31
32
  lineItems: LineItems[];
@@ -1 +1 @@
1
- {"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAqBA,qDAAkD;AAOlD,MAAa,OAAQ,SAAQ,+BAAc;CA2G1C;AA3GD,0BA2GC"}
1
+ {"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAqBA,qDAAkD;AAOlD,MAAa,OAAQ,SAAQ,+BAAc;CA6G1C;AA7GD,0BA6GC"}
@@ -1,4 +1,5 @@
1
1
  export * from './invoice-history.dto';
2
2
  export * from './invoice.dto';
3
3
  export * from './lineItem.dto';
4
+ export * from './organization-invoice.dto';
4
5
  export * from './share-invoice.dto';
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./invoice-history.dto"), exports);
18
18
  __exportStar(require("./invoice.dto"), exports);
19
19
  __exportStar(require("./lineItem.dto"), exports);
20
+ __exportStar(require("./organization-invoice.dto"), exports);
20
21
  __exportStar(require("./share-invoice.dto"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gDAA8B;AAC9B,iDAA+B;AAC/B,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gDAA8B;AAC9B,iDAA+B;AAC/B,6DAA2C;AAC3C,sDAAoC"}
@@ -0,0 +1,66 @@
1
+ import { PaginationSearchQuery } from '../../dto/general.dto';
2
+ import { DueDateTypeEnum, PaymentMethodTypeEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
3
+ import { PlatformsEnum } from '../../services/enums.service';
4
+ export declare enum OrganizationInvoicePaymentStatusInputEnum {
5
+ NOT_PAID = "not_paid",
6
+ PARTIAL_PAYMENT = "partial",
7
+ FULLY_PAID = "paid",
8
+ REFUNDED = "refunded",
9
+ DISPUTED = "disputed",
10
+ CHARGEBACK = "chargeback",
11
+ VOID = "void",
12
+ DISCOUNT = "discount",
13
+ REVERT_DISCOUNT = "revert_discount",
14
+ REVERT = "revert",
15
+ PENDING = "pending",
16
+ RETRY_IN_PROGRESS = "retry_in_progress",
17
+ SCHEDULED = "scheduled"
18
+ }
19
+ export declare const ORGANIZATION_INVOICE_SCHEDULED_PAYMENT_STATUS = OrganizationInvoicePaymentStatusInputEnum.SCHEDULED;
20
+ export declare enum OrganizationInvoicesOrderByEnum {
21
+ INVOICE_ID = "invoiceId",
22
+ PAYING_USER_NAME = "payingUserName",
23
+ PAYING_USER_ID = "payingUserId",
24
+ CREATED_AT = "createdAt",
25
+ DUE_DATE = "dueDate",
26
+ TOTAL_AMOUNT = "totalAmount",
27
+ PAID_AMOUNT = "paidAmount",
28
+ BALANCE_DUE = "balanceDue",
29
+ PAYMENT_STATUS = "paymentStatus",
30
+ AGING = "aging",
31
+ PLATFORM = "platform"
32
+ }
33
+ export declare class GetOrganizationInvoicesQueryDto extends PaginationSearchQuery<OrganizationInvoicesOrderByEnum> {
34
+ paymentStatuses?: OrganizationInvoicePaymentStatusInputEnum[];
35
+ paymentTypes?: PaymentMethodTypeEnum[];
36
+ isScheduled?: boolean;
37
+ isAnonymousPayingUser?: boolean;
38
+ hasDueDate?: boolean;
39
+ isOverdue?: boolean;
40
+ platforms?: PlatformsEnum[];
41
+ createdAtFrom?: Date;
42
+ createdAtTo?: Date;
43
+ dueDateFrom?: Date;
44
+ dueDateTo?: Date;
45
+ orderBy?: OrganizationInvoicesOrderByEnum;
46
+ }
47
+ export declare class OrganizationInvoiceDto {
48
+ invoiceId: number;
49
+ payingUserName?: string;
50
+ payingUserId: number;
51
+ payingUserEmail?: string;
52
+ createdAt: Date;
53
+ dueDate?: Date;
54
+ dueDateType?: DueDateTypeEnum;
55
+ totalAmount: number;
56
+ paidAmount: number;
57
+ paymentStatus: PaymentStatusEnum;
58
+ isScheduled: boolean;
59
+ isOverdue: boolean;
60
+ isPublic: boolean;
61
+ paymentType?: PaymentMethodTypeEnum;
62
+ paymentTypes?: PaymentMethodTypeEnum[];
63
+ platform?: PlatformsEnum;
64
+ creatingUserName?: string;
65
+ creatingUserEmail?: string;
66
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrganizationInvoiceDto = exports.GetOrganizationInvoicesQueryDto = exports.OrganizationInvoicesOrderByEnum = exports.ORGANIZATION_INVOICE_SCHEDULED_PAYMENT_STATUS = exports.OrganizationInvoicePaymentStatusInputEnum = void 0;
4
+ const general_dto_1 = require("../../dto/general.dto");
5
+ var OrganizationInvoicePaymentStatusInputEnum;
6
+ (function (OrganizationInvoicePaymentStatusInputEnum) {
7
+ OrganizationInvoicePaymentStatusInputEnum["NOT_PAID"] = "not_paid";
8
+ OrganizationInvoicePaymentStatusInputEnum["PARTIAL_PAYMENT"] = "partial";
9
+ OrganizationInvoicePaymentStatusInputEnum["FULLY_PAID"] = "paid";
10
+ OrganizationInvoicePaymentStatusInputEnum["REFUNDED"] = "refunded";
11
+ OrganizationInvoicePaymentStatusInputEnum["DISPUTED"] = "disputed";
12
+ OrganizationInvoicePaymentStatusInputEnum["CHARGEBACK"] = "chargeback";
13
+ OrganizationInvoicePaymentStatusInputEnum["VOID"] = "void";
14
+ OrganizationInvoicePaymentStatusInputEnum["DISCOUNT"] = "discount";
15
+ OrganizationInvoicePaymentStatusInputEnum["REVERT_DISCOUNT"] = "revert_discount";
16
+ OrganizationInvoicePaymentStatusInputEnum["REVERT"] = "revert";
17
+ OrganizationInvoicePaymentStatusInputEnum["PENDING"] = "pending";
18
+ OrganizationInvoicePaymentStatusInputEnum["RETRY_IN_PROGRESS"] = "retry_in_progress";
19
+ OrganizationInvoicePaymentStatusInputEnum["SCHEDULED"] = "scheduled";
20
+ })(OrganizationInvoicePaymentStatusInputEnum = exports.OrganizationInvoicePaymentStatusInputEnum || (exports.OrganizationInvoicePaymentStatusInputEnum = {}));
21
+ exports.ORGANIZATION_INVOICE_SCHEDULED_PAYMENT_STATUS = OrganizationInvoicePaymentStatusInputEnum.SCHEDULED;
22
+ var OrganizationInvoicesOrderByEnum;
23
+ (function (OrganizationInvoicesOrderByEnum) {
24
+ OrganizationInvoicesOrderByEnum["INVOICE_ID"] = "invoiceId";
25
+ OrganizationInvoicesOrderByEnum["PAYING_USER_NAME"] = "payingUserName";
26
+ OrganizationInvoicesOrderByEnum["PAYING_USER_ID"] = "payingUserId";
27
+ OrganizationInvoicesOrderByEnum["CREATED_AT"] = "createdAt";
28
+ OrganizationInvoicesOrderByEnum["DUE_DATE"] = "dueDate";
29
+ OrganizationInvoicesOrderByEnum["TOTAL_AMOUNT"] = "totalAmount";
30
+ OrganizationInvoicesOrderByEnum["PAID_AMOUNT"] = "paidAmount";
31
+ OrganizationInvoicesOrderByEnum["BALANCE_DUE"] = "balanceDue";
32
+ OrganizationInvoicesOrderByEnum["PAYMENT_STATUS"] = "paymentStatus";
33
+ OrganizationInvoicesOrderByEnum["AGING"] = "aging";
34
+ OrganizationInvoicesOrderByEnum["PLATFORM"] = "platform";
35
+ })(OrganizationInvoicesOrderByEnum = exports.OrganizationInvoicesOrderByEnum || (exports.OrganizationInvoicesOrderByEnum = {}));
36
+ class GetOrganizationInvoicesQueryDto extends general_dto_1.PaginationSearchQuery {
37
+ }
38
+ exports.GetOrganizationInvoicesQueryDto = GetOrganizationInvoicesQueryDto;
39
+ class OrganizationInvoiceDto {
40
+ }
41
+ exports.OrganizationInvoiceDto = OrganizationInvoiceDto;
42
+ //# sourceMappingURL=organization-invoice.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization-invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/organization-invoice.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8D;AAI9D,IAAY,yCAcX;AAdD,WAAY,yCAAyC;IACpD,kEAAqB,CAAA;IACrB,wEAA2B,CAAA;IAC3B,gEAAmB,CAAA;IACnB,kEAAqB,CAAA;IACrB,kEAAqB,CAAA;IACrB,sEAAyB,CAAA;IACzB,0DAAa,CAAA;IACb,kEAAqB,CAAA;IACrB,gFAAmC,CAAA;IACnC,8DAAiB,CAAA;IACjB,gEAAmB,CAAA;IACnB,oFAAuC,CAAA;IACvC,oEAAuB,CAAA;AACxB,CAAC,EAdW,yCAAyC,GAAzC,iDAAyC,KAAzC,iDAAyC,QAcpD;AAEY,QAAA,6CAA6C,GAAG,yCAAyC,CAAC,SAAS,CAAC;AAEjH,IAAY,+BAYX;AAZD,WAAY,+BAA+B;IAC1C,2DAAwB,CAAA;IACxB,sEAAmC,CAAA;IACnC,kEAA+B,CAAA;IAC/B,2DAAwB,CAAA;IACxB,uDAAoB,CAAA;IACpB,+DAA4B,CAAA;IAC5B,6DAA0B,CAAA;IAC1B,6DAA0B,CAAA;IAC1B,mEAAgC,CAAA;IAChC,kDAAe,CAAA;IACf,wDAAqB,CAAA;AACtB,CAAC,EAZW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAY1C;AAED,MAAa,+BAAgC,SAAQ,mCAAsD;CAwB1G;AAxBD,0EAwBC;AAED,MAAa,sBAAsB;CAoClC;AApCD,wDAoCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.4.54",
3
+ "version": "2.4.56",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {