@bondsports/types 2.5.8 → 2.5.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.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +0 -1
- package/dist/types/dto/package.dto.d.ts +2 -0
- package/dist/types/dto/package.dto.js.map +1 -1
- package/dist/types/import/dto/import-punch-pass.dto.d.ts +11 -3
- package/dist/types/import/dto/import-punch-pass.dto.js +7 -1
- package/dist/types/import/dto/import-punch-pass.dto.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +0 -3
- package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
- package/dist/types/membership/types/membership.interfaces.d.ts +0 -5
- package/dist/types/payment/dto/refund.dto.d.ts +1 -0
- package/dist/types/payment/dto/refund.dto.js.map +1 -1
- package/dist/types/payment/dto/void.dto.d.ts +1 -0
- package/dist/types/payment/dto/void.dto.js.map +1 -1
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +1 -8
- package/dist/types/payment/types/interfaces/payment.interfaces.js +1 -4
- package/dist/types/payment/types/interfaces/payment.interfaces.js.map +1 -1
- package/dist/types/payment/types/interfaces/void.interfaces.d.ts +1 -0
- package/dist/types/product-pricing/dto/index.d.ts +2 -0
- package/dist/types/product-pricing/dto/index.js +2 -0
- package/dist/types/product-pricing/dto/index.js.map +1 -1
- package/dist/types/product-pricing/dto/product-facility-inventory.dto.d.ts +7 -0
- package/dist/types/product-pricing/dto/product-facility-inventory.dto.js +8 -0
- package/dist/types/product-pricing/dto/product-facility-inventory.dto.js.map +1 -0
- package/dist/types/product-pricing/dto/product-inventory.dto.d.ts +16 -0
- package/dist/types/product-pricing/dto/product-inventory.dto.js +17 -0
- package/dist/types/product-pricing/dto/product-inventory.dto.js.map +1 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -1
- package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +7 -0
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/entities/index.d.ts +2 -0
- package/dist/types/product-pricing/entities/index.js +2 -0
- package/dist/types/product-pricing/entities/index.js.map +1 -1
- package/dist/types/product-pricing/entities/product-facility-inventory.entity.d.ts +12 -0
- package/dist/types/product-pricing/entities/product-facility-inventory.entity.js +8 -0
- package/dist/types/product-pricing/entities/product-facility-inventory.entity.js.map +1 -0
- package/dist/types/product-pricing/entities/product-inventory-adjustment.entity.d.ts +17 -0
- package/dist/types/product-pricing/entities/product-inventory-adjustment.entity.js +8 -0
- package/dist/types/product-pricing/entities/product-inventory-adjustment.entity.js.map +1 -0
- package/dist/types/product-pricing/entities/product.entity.d.ts +6 -0
- package/dist/types/product-pricing/entities/product.entity.js.map +1 -1
- package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
- package/dist/types/product-pricing/types/consts/index.js +1 -0
- package/dist/types/product-pricing/types/consts/index.js.map +1 -1
- package/dist/types/product-pricing/types/consts/product-inventory.consts.d.ts +1 -0
- package/dist/types/product-pricing/types/consts/product-inventory.consts.js +5 -0
- package/dist/types/product-pricing/types/consts/product-inventory.consts.js.map +1 -0
- package/dist/types/product-pricing/types/consts/product-resource.consts.d.ts +6 -1
- package/dist/types/product-pricing/types/consts/product-resource.consts.js +6 -1
- package/dist/types/product-pricing/types/consts/product-resource.consts.js.map +1 -1
- package/dist/types/product-pricing/types/enums/index.d.ts +1 -0
- package/dist/types/product-pricing/types/enums/index.js +1 -0
- package/dist/types/product-pricing/types/enums/index.js.map +1 -1
- package/dist/types/product-pricing/types/enums/product-inventory.enums.d.ts +9 -0
- package/dist/types/product-pricing/types/enums/product-inventory.enums.js +15 -0
- package/dist/types/product-pricing/types/enums/product-inventory.enums.js.map +1 -0
- package/dist/types/product-pricing/types/enums/product.enums.d.ts +9 -1
- package/dist/types/product-pricing/types/enums/product.enums.js +10 -1
- package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/index.d.ts +1 -0
- package/dist/types/product-pricing/types/interfaces/index.js +1 -0
- package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-inventory.interfaces.d.ts +36 -0
- package/dist/types/product-pricing/types/interfaces/product-inventory.interfaces.js +3 -0
- package/dist/types/product-pricing/types/interfaces/product-inventory.interfaces.js.map +1 -0
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +7 -1
- package/dist/types/product-pricing/types/interfaces/product-resource.interfaces.d.ts +1 -0
- package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +1 -0
- package/dist/types/purchase/dto/purchase.dto.d.ts +1 -36
- package/dist/types/purchase/dto/purchase.dto.js +1 -10
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +0 -11
- package/dist/types/registration/index.d.ts +1 -0
- package/dist/types/registration/index.js +18 -0
- package/dist/types/registration/index.js.map +1 -0
- package/dist/types/registration/types/index.d.ts +1 -0
- package/dist/types/registration/types/index.js +18 -0
- package/dist/types/registration/types/index.js.map +1 -0
- package/dist/types/registration/types/interfaces/index.d.ts +1 -0
- package/dist/types/registration/types/interfaces/index.js +18 -0
- package/dist/types/registration/types/interfaces/index.js.map +1 -0
- package/dist/types/registration/types/interfaces/registration.interfaces.d.ts +10 -0
- package/dist/types/registration/types/interfaces/registration.interfaces.js +3 -0
- package/dist/types/registration/types/interfaces/registration.interfaces.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductVariantInventoryScopeEnum = exports.ProductInventoryAdjustmentSourceEnum = void 0;
|
|
4
|
+
var ProductInventoryAdjustmentSourceEnum;
|
|
5
|
+
(function (ProductInventoryAdjustmentSourceEnum) {
|
|
6
|
+
ProductInventoryAdjustmentSourceEnum["MANUAL_SET"] = "manual_set";
|
|
7
|
+
ProductInventoryAdjustmentSourceEnum["SALE"] = "sale";
|
|
8
|
+
ProductInventoryAdjustmentSourceEnum["VOID"] = "void";
|
|
9
|
+
})(ProductInventoryAdjustmentSourceEnum = exports.ProductInventoryAdjustmentSourceEnum || (exports.ProductInventoryAdjustmentSourceEnum = {}));
|
|
10
|
+
var ProductVariantInventoryScopeEnum;
|
|
11
|
+
(function (ProductVariantInventoryScopeEnum) {
|
|
12
|
+
ProductVariantInventoryScopeEnum["SHARED"] = "shared";
|
|
13
|
+
ProductVariantInventoryScopeEnum["PER_VARIANT"] = "per_variant";
|
|
14
|
+
})(ProductVariantInventoryScopeEnum = exports.ProductVariantInventoryScopeEnum || (exports.ProductVariantInventoryScopeEnum = {}));
|
|
15
|
+
//# sourceMappingURL=product-inventory.enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-inventory.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product-inventory.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,oCAIX;AAJD,WAAY,oCAAoC;IAC/C,iEAAyB,CAAA;IACzB,qDAAa,CAAA;IACb,qDAAa,CAAA;AACd,CAAC,EAJW,oCAAoC,GAApC,4CAAoC,KAApC,4CAAoC,QAI/C;AAED,IAAY,gCAGX;AAHD,WAAY,gCAAgC;IAC3C,qDAAiB,CAAA;IACjB,+DAA2B,CAAA;AAC5B,CAAC,EAHW,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAG3C"}
|
|
@@ -34,7 +34,8 @@ export declare enum ProductExpandEnum {
|
|
|
34
34
|
RESOURCE_SETTINGS = "resourceSettings",
|
|
35
35
|
PUNCH_PASS = "punchPass",
|
|
36
36
|
PUNCH_PASS_HOLDERS = "punchPass.holders",
|
|
37
|
-
VARIANTS = "variants"
|
|
37
|
+
VARIANTS = "variants",
|
|
38
|
+
INVENTORY = "inventory"
|
|
38
39
|
}
|
|
39
40
|
export declare const PUBLIC_PRODUCT_EXPAND_VALUES: ProductExpandEnum[];
|
|
40
41
|
/**
|
|
@@ -47,3 +48,10 @@ export declare enum ProductBuilderTypeEnum {
|
|
|
47
48
|
PROGRAM_PUNCH_PASS = "program_punch_pass",
|
|
48
49
|
RENTAL_PUNCH_PASS = "rental_punch_pass"
|
|
49
50
|
}
|
|
51
|
+
export declare enum CommerceProductInventoryFilterStatusEnum {
|
|
52
|
+
NOT_TRACKED = "not_tracked",
|
|
53
|
+
SOLD_OUT = "sold_out",
|
|
54
|
+
LOW_STOCK = "low_stock",
|
|
55
|
+
IN_STOCK = "in_stock",
|
|
56
|
+
OVERSOLD = "oversold"
|
|
57
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProductBuilderTypeEnum = exports.PRODUCT_EXPAND_CREATE_RESPONSE = exports.PUBLIC_PRODUCT_EXPAND_VALUES = exports.ProductExpandEnum = exports.OrderByProductEnum = exports.ProductStateEnum = void 0;
|
|
3
|
+
exports.CommerceProductInventoryFilterStatusEnum = exports.ProductBuilderTypeEnum = exports.PRODUCT_EXPAND_CREATE_RESPONSE = exports.PUBLIC_PRODUCT_EXPAND_VALUES = exports.ProductExpandEnum = exports.OrderByProductEnum = exports.ProductStateEnum = void 0;
|
|
4
4
|
var ProductStateEnum;
|
|
5
5
|
(function (ProductStateEnum) {
|
|
6
6
|
ProductStateEnum["VALID"] = "valid";
|
|
@@ -41,6 +41,7 @@ var ProductExpandEnum;
|
|
|
41
41
|
ProductExpandEnum["PUNCH_PASS"] = "punchPass";
|
|
42
42
|
ProductExpandEnum["PUNCH_PASS_HOLDERS"] = "punchPass.holders";
|
|
43
43
|
ProductExpandEnum["VARIANTS"] = "variants";
|
|
44
|
+
ProductExpandEnum["INVENTORY"] = "inventory";
|
|
44
45
|
})(ProductExpandEnum = exports.ProductExpandEnum || (exports.ProductExpandEnum = {}));
|
|
45
46
|
exports.PUBLIC_PRODUCT_EXPAND_VALUES = [
|
|
46
47
|
ProductExpandEnum.PRICES,
|
|
@@ -73,4 +74,12 @@ var ProductBuilderTypeEnum;
|
|
|
73
74
|
ProductBuilderTypeEnum["PROGRAM_PUNCH_PASS"] = "program_punch_pass";
|
|
74
75
|
ProductBuilderTypeEnum["RENTAL_PUNCH_PASS"] = "rental_punch_pass";
|
|
75
76
|
})(ProductBuilderTypeEnum = exports.ProductBuilderTypeEnum || (exports.ProductBuilderTypeEnum = {}));
|
|
77
|
+
var CommerceProductInventoryFilterStatusEnum;
|
|
78
|
+
(function (CommerceProductInventoryFilterStatusEnum) {
|
|
79
|
+
CommerceProductInventoryFilterStatusEnum["NOT_TRACKED"] = "not_tracked";
|
|
80
|
+
CommerceProductInventoryFilterStatusEnum["SOLD_OUT"] = "sold_out";
|
|
81
|
+
CommerceProductInventoryFilterStatusEnum["LOW_STOCK"] = "low_stock";
|
|
82
|
+
CommerceProductInventoryFilterStatusEnum["IN_STOCK"] = "in_stock";
|
|
83
|
+
CommerceProductInventoryFilterStatusEnum["OVERSOLD"] = "oversold";
|
|
84
|
+
})(CommerceProductInventoryFilterStatusEnum = exports.CommerceProductInventoryFilterStatusEnum || (exports.CommerceProductInventoryFilterStatusEnum = {}));
|
|
76
85
|
//# sourceMappingURL=product.enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC7B,+BAAS,CAAA;IACT,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;IACjB,sDAAgC,CAAA;IAChC,2DAAqC,CAAA;IACrC,+DAAyC,CAAA;AAC1C,CAAC,EAVW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAU7B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC7B,+BAAS,CAAA;IACT,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;IACjB,sDAAgC,CAAA;IAChC,2DAAqC,CAAA;IACrC,+DAAyC,CAAA;AAC1C,CAAC,EAVW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAU7B;AAED,IAAY,iBAuBX;AAvBD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,2DAAsC,CAAA;IACtC,mEAA8C,CAAA;IAC9C,yDAAoC,CAAA;IACpC,kDAA6B,CAAA;IAC7B,yDAAoC,CAAA;IACpC,qDAAgC,CAAA;IAChC,oCAAe,CAAA;IACf,4CAAuB,CAAA;IACvB,2DAAsC,CAAA;IACtC,8CAAyB,CAAA;IACzB,iDAA4B,CAAA;IAC5B,yCAAoB,CAAA;IACpB,6DAAwC,CAAA;IACxC,4CAAuB,CAAA;IACvB,iDAA4B,CAAA;IAC5B,mDAA8B,CAAA;IAC9B,2DAAsC,CAAA;IACtC,6CAAwB,CAAA;IACxB,6DAAwC,CAAA;IACxC,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;AACxB,CAAC,EAvBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAuB5B;AAEY,QAAA,4BAA4B,GAAwB;IAChE,iBAAiB,CAAC,MAAM;IACxB,iBAAiB,CAAC,iBAAiB;IACnC,iBAAiB,CAAC,qBAAqB;IACvC,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,cAAc;IAChC,iBAAiB,CAAC,KAAK;CACvB,CAAC;AAEF;;;GAGG;AACU,QAAA,8BAA8B,GAAwB;IAClE,iBAAiB,CAAC,QAAQ;IAC1B,iBAAiB,CAAC,SAAS;IAC3B,iBAAiB,CAAC,UAAU;IAC5B,iBAAiB,CAAC,iBAAiB;IACnC,iBAAiB,CAAC,iBAAiB;IACnC,iBAAiB,CAAC,MAAM;IACxB,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,qBAAqB;IACvC,iBAAiB,CAAC,KAAK;CACvB,CAAC;AAEF,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,2CAAiB,CAAA;IACjB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACxC,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC;AAED,IAAY,wCAMX;AAND,WAAY,wCAAwC;IACnD,uEAA2B,CAAA;IAC3B,iEAAqB,CAAA;IACrB,mEAAuB,CAAA;IACvB,iEAAqB,CAAA;IACrB,iEAAqB,CAAA;AACtB,CAAC,EANW,wCAAwC,GAAxC,gDAAwC,KAAxC,gDAAwC,QAMnD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './product-categories.interfaces';
|
|
2
2
|
export * from './product-creation.interfaces';
|
|
3
|
+
export * from './product-inventory.interfaces';
|
|
3
4
|
export * from './product-pricing.interfaces';
|
|
4
5
|
export * from './product-resource.interfaces';
|
|
5
6
|
export * from './validate-resources.interfaces';
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./product-categories.interfaces"), exports);
|
|
18
18
|
__exportStar(require("./product-creation.interfaces"), exports);
|
|
19
|
+
__exportStar(require("./product-inventory.interfaces"), exports);
|
|
19
20
|
__exportStar(require("./product-pricing.interfaces"), exports);
|
|
20
21
|
__exportStar(require("./product-resource.interfaces"), exports);
|
|
21
22
|
__exportStar(require("./validate-resources.interfaces"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,gEAA8C;AAC9C,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,gEAA8C;AAC9C,iEAA+C;AAC/C,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ProductInventoryAdjustmentSourceEnum } from '../enums/product-inventory.enums';
|
|
2
|
+
/**
|
|
3
|
+
* One claimed facility inventory mutation.
|
|
4
|
+
* `lowInventoryThreshold` undefined leaves the stored threshold unchanged; `null` clears it.
|
|
5
|
+
*/
|
|
6
|
+
export interface IFacilityInventoryAdjustmentInput {
|
|
7
|
+
organizationId: number;
|
|
8
|
+
facilityId: number;
|
|
9
|
+
lineItemId?: number;
|
|
10
|
+
productId: number;
|
|
11
|
+
idempotencyKey: string;
|
|
12
|
+
lowInventoryThreshold?: number | null;
|
|
13
|
+
quantityDelta: number;
|
|
14
|
+
/**
|
|
15
|
+
* When set, the mutation applies only to a facility row created at or before this instant.
|
|
16
|
+
*/
|
|
17
|
+
saleCreatedAt?: Date;
|
|
18
|
+
source: ProductInventoryAdjustmentSourceEnum;
|
|
19
|
+
/**
|
|
20
|
+
* When set, the facility quantity is overwritten to this value.
|
|
21
|
+
* The ledger `quantityDelta` is rewritten after the locked read.
|
|
22
|
+
*/
|
|
23
|
+
targetQuantity?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface ITrackedProductFamilyRow {
|
|
26
|
+
productId: number;
|
|
27
|
+
variantParentId: number | null;
|
|
28
|
+
}
|
|
29
|
+
export interface ILineItemQuantityOverride {
|
|
30
|
+
lineItemId: number;
|
|
31
|
+
quantity?: number;
|
|
32
|
+
}
|
|
33
|
+
export interface IReplenishLineItemsOptions {
|
|
34
|
+
idempotencyScope: string;
|
|
35
|
+
quantityOverrides?: ILineItemQuantityOverride[];
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-inventory.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/product-inventory.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -9,7 +9,7 @@ import { ActivityEnum, CancellationStatusEnum, OrderByEnum } from '../../../serv
|
|
|
9
9
|
import { ICalculatedTax } from '../../../services/interfaces.service';
|
|
10
10
|
import { IPagination } from '../../../util/models/interfaces/general.interfaces';
|
|
11
11
|
import { Product } from '../../entities/product.entity';
|
|
12
|
-
import { OrderByProductEnum, ProductExpandEnum } from '../enums/product.enums';
|
|
12
|
+
import { CommerceProductInventoryFilterStatusEnum, OrderByProductEnum, ProductExpandEnum } from '../enums/product.enums';
|
|
13
13
|
import { IProductResource } from './product-resource.interfaces';
|
|
14
14
|
export interface IGetCurrentPricesOptions {
|
|
15
15
|
userId?: number;
|
|
@@ -24,6 +24,7 @@ export interface IGetCurrentPricesOptions {
|
|
|
24
24
|
*/
|
|
25
25
|
export interface IGetExtendedProductsOptions {
|
|
26
26
|
expand?: ProductExpandEnum[];
|
|
27
|
+
facilityId?: number;
|
|
27
28
|
skipProrated?: boolean;
|
|
28
29
|
}
|
|
29
30
|
export interface IGetProductsByTypeOptions extends IPagination {
|
|
@@ -35,8 +36,13 @@ export interface IGetProductsByTypeOptions extends IPagination {
|
|
|
35
36
|
excludeResourceIds?: number[];
|
|
36
37
|
expand?: ProductExpandEnum[];
|
|
37
38
|
facilitiesIds?: number[];
|
|
39
|
+
/**
|
|
40
|
+
* When set, list and detail responses attach `facilityInventory` for this facility.
|
|
41
|
+
*/
|
|
42
|
+
facilityId?: number;
|
|
38
43
|
includeAddons?: boolean;
|
|
39
44
|
includeArchived?: boolean;
|
|
45
|
+
inventoryStatuses?: CommerceProductInventoryFilterStatusEnum[];
|
|
40
46
|
includeOnlyNotAssignedToCategory?: boolean;
|
|
41
47
|
inclusion?: boolean;
|
|
42
48
|
instructorsIds?: number[];
|
|
@@ -5,6 +5,7 @@ import { OrderByEnum, PlatformsEnum, ProductSubTypesEnum, ProductTypesEnum, Reso
|
|
|
5
5
|
import { IPagination } from '../../../util/models/interfaces/general.interfaces';
|
|
6
6
|
export interface IResource {
|
|
7
7
|
id?: number;
|
|
8
|
+
endDate?: DateInput;
|
|
8
9
|
excludedIds?: number[];
|
|
9
10
|
includedIds?: number[];
|
|
10
11
|
isAll?: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AddCartItemDto } from '../../cart/dto/cart-item.dto';
|
|
2
2
|
import { UpdateCartPricesDto } from '../../cart/dto/cart.dto';
|
|
3
|
-
import { UserAnswersDto } from '../../dto/application.dto';
|
|
4
3
|
import { SaveCardTerminalInputDto } from '../../dto/userPaymentMethod.dto';
|
|
5
4
|
import { Customer } from '../../entity/Customer';
|
|
6
5
|
import { ProductsUsers } from '../../entity/ProductsUsers';
|
|
@@ -22,35 +21,6 @@ export declare class PurchasePaymentDto implements IPurchasePayment {
|
|
|
22
21
|
allowRedisplay?: AllowRedisplayEnum;
|
|
23
22
|
cardSaveTerminalData?: SaveCardTerminalInputDto;
|
|
24
23
|
}
|
|
25
|
-
export declare class ChargeRentalsReuqestDto {
|
|
26
|
-
organizationId: number;
|
|
27
|
-
userId?: number;
|
|
28
|
-
customerId?: number;
|
|
29
|
-
invoiceId: number;
|
|
30
|
-
paymentData?: PurchasePaymentDto;
|
|
31
|
-
amountToPay: number;
|
|
32
|
-
total: number;
|
|
33
|
-
platform: PlatformsEnum;
|
|
34
|
-
shiftId?: number;
|
|
35
|
-
}
|
|
36
|
-
export declare class PurchaseRequestDto {
|
|
37
|
-
purchasingUserId: number;
|
|
38
|
-
customerId?: number;
|
|
39
|
-
products: PurchaseProductDto[];
|
|
40
|
-
paymentData?: PurchasePaymentDto;
|
|
41
|
-
platform: PlatformsEnum;
|
|
42
|
-
answers: UserAnswersDto[];
|
|
43
|
-
amountToPay: number;
|
|
44
|
-
parentPurchasedType?: ResourceNameTypeEnum;
|
|
45
|
-
parentPurchasedId?: number;
|
|
46
|
-
existingInvoiceToken?: string;
|
|
47
|
-
installments?: ScheduledPaymentDto[];
|
|
48
|
-
shiftId?: number;
|
|
49
|
-
invoiceId?: number;
|
|
50
|
-
existingInvoiceId?: number;
|
|
51
|
-
installmentId?: number;
|
|
52
|
-
isAutoRenewal?: boolean;
|
|
53
|
-
}
|
|
54
24
|
/**
|
|
55
25
|
* Resource selection shared by public and backoffice request surfaces. Revenue attribution
|
|
56
26
|
* (`facilityId`) is server-stamped and lives on `PurchaseResourceDto` only.
|
|
@@ -59,6 +29,7 @@ export declare class BasePurchaseResourceDto {
|
|
|
59
29
|
id?: number;
|
|
60
30
|
type: ResourceNameTypeEnum;
|
|
61
31
|
startDate?: Date;
|
|
32
|
+
endDate?: Date;
|
|
62
33
|
resourceIdToRenew?: number;
|
|
63
34
|
isAll?: boolean;
|
|
64
35
|
includedIds?: number[];
|
|
@@ -117,12 +88,6 @@ export declare class PartialPaymentRequestDto {
|
|
|
117
88
|
installmentIds?: number[];
|
|
118
89
|
tipAmount?: number;
|
|
119
90
|
}
|
|
120
|
-
export declare class RedeemPunchCardRequestDto {
|
|
121
|
-
products: PurchaseProductDto[];
|
|
122
|
-
answersTitlesIds: number[];
|
|
123
|
-
organizationId: number;
|
|
124
|
-
purchasingUserId: number;
|
|
125
|
-
}
|
|
126
91
|
export declare class AddCartItemsToInvoiceDto {
|
|
127
92
|
cartItems: AddCartItemDto[];
|
|
128
93
|
shiftId?: number;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PurchaseCartDto = exports.BasicPurchaseDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddCartItemsToInvoiceDto = exports.
|
|
3
|
+
exports.PurchaseCartDto = exports.BasicPurchaseDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddCartItemsToInvoiceDto = exports.PartialPaymentRequestDto = exports.ScheduledPaymentRequestBodyDto = exports.ScheduledPaymentRequestDto = exports.ScheduledPaymentConsumerRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.BasePurchaseResourceDto = exports.PurchasePaymentDto = void 0;
|
|
4
4
|
const invoice_cart_dto_1 = require("../../invoice/dto/invoice-cart.dto");
|
|
5
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
6
|
class PurchasePaymentDto {
|
|
7
7
|
}
|
|
8
8
|
exports.PurchasePaymentDto = PurchasePaymentDto;
|
|
9
|
-
class ChargeRentalsReuqestDto {
|
|
10
|
-
}
|
|
11
|
-
exports.ChargeRentalsReuqestDto = ChargeRentalsReuqestDto;
|
|
12
|
-
class PurchaseRequestDto {
|
|
13
|
-
}
|
|
14
|
-
exports.PurchaseRequestDto = PurchaseRequestDto;
|
|
15
9
|
/**
|
|
16
10
|
* Resource selection shared by public and backoffice request surfaces. Revenue attribution
|
|
17
11
|
* (`facilityId`) is server-stamped and lives on `PurchaseResourceDto` only.
|
|
@@ -37,9 +31,6 @@ exports.ScheduledPaymentRequestBodyDto = ScheduledPaymentRequestBodyDto;
|
|
|
37
31
|
class PartialPaymentRequestDto {
|
|
38
32
|
}
|
|
39
33
|
exports.PartialPaymentRequestDto = PartialPaymentRequestDto;
|
|
40
|
-
class RedeemPunchCardRequestDto {
|
|
41
|
-
}
|
|
42
|
-
exports.RedeemPunchCardRequestDto = RedeemPunchCardRequestDto;
|
|
43
34
|
class AddCartItemsToInvoiceDto {
|
|
44
35
|
}
|
|
45
36
|
exports.AddCartItemsToInvoiceDto = AddCartItemsToInvoiceDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAQA,yEAAoE;AAEpE,8EAA8E;AAe9E,MAAa,kBAAkB;CAY9B;AAZD,gDAYC;AAED;;;GAGG;AACH,MAAa,uBAAuB;CAsBnC;AAtBD,0DAsBC;AAED,MAAa,mBAAoB,SAAQ,uBAAuB;CAE/D;AAFD,kDAEC;AAED,MAAa,kBAAkB;CAqC9B;AArCD,gDAqCC;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,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,gBAAgB;CAI5B;AAJD,4CAIC;AAED,MAAa,eAAgB,SAAQ,iCAAc;CAkBlD;AAlBD,0CAkBC"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { IUpdateCartPrices, IValidateCartOptions } from '../../../cart/types/interfaces/cart.interfaces';
|
|
2
2
|
import { UserAnswersDto } from '../../../dto/application.dto';
|
|
3
3
|
import { Customer } from '../../../entity/Customer';
|
|
4
|
-
import { EventAttendee } from '../../../entity/EventAttendees';
|
|
5
4
|
import { Invoice } from '../../../entity/Invoice';
|
|
6
5
|
import { ProductsUsers } from '../../../entity/ProductsUsers';
|
|
7
|
-
import { PurchasedResource } from '../../../entity/PurchasedResources';
|
|
8
6
|
import { IInvoiceCart } from '../../../invoice/types/interfaces/invoice.interfaces';
|
|
9
|
-
import { IMembershipMemberAndRenewalRecord } from '../../../membership/types/membership.interfaces';
|
|
10
7
|
import { Organization } from '../../../organization/entities/Organization';
|
|
11
8
|
import { ScheduledPaymentDto } from '../../../payment/dto/payment-plan.dto';
|
|
12
9
|
import { Payment } from '../../../payment/entities/Payment';
|
|
@@ -15,7 +12,6 @@ import { ISaveInvoicePayment } from '../../../payment/types/interfaces/payment.i
|
|
|
15
12
|
import { ISaveCardTerminalInput } from '../../../payment/types/interfaces/user-payment-method.interfaces';
|
|
16
13
|
import { Product } from '../../../product-pricing/entities/product.entity';
|
|
17
14
|
import { IResource } from '../../../product-pricing/types/interfaces/product-resource.interfaces';
|
|
18
|
-
import { UserPunchPass } from '../../../punch-pass/entities';
|
|
19
15
|
import { CurrencyEnum, GenderEnum, LineItemsStatusEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
|
|
20
16
|
import { Tax } from '../../../taxes/entities/Tax';
|
|
21
17
|
import { User } from '../../../user/entities/User';
|
|
@@ -88,7 +84,6 @@ export interface IPurchaseResult extends ChargeInvoiceResult {
|
|
|
88
84
|
export interface IPurchaseOptions extends IValidateCartOptions {
|
|
89
85
|
allowWaitlistCartPurchase?: boolean;
|
|
90
86
|
isImport?: boolean;
|
|
91
|
-
overrideQuantity?: number;
|
|
92
87
|
skipMail?: boolean;
|
|
93
88
|
}
|
|
94
89
|
export interface IPurchasePayment {
|
|
@@ -113,12 +108,6 @@ export interface IPurchaseCart extends IInvoiceCart {
|
|
|
113
108
|
tipAmount?: number;
|
|
114
109
|
updatePrices?: IUpdateCartPrices;
|
|
115
110
|
}
|
|
116
|
-
export interface IRegisteredResourcesResult {
|
|
117
|
-
eventAttendees: EventAttendee[];
|
|
118
|
-
membershipMembers: IMembershipMemberAndRenewalRecord[];
|
|
119
|
-
purchasedResources: PurchasedResource[];
|
|
120
|
-
userPunchPass?: UserPunchPass;
|
|
121
|
-
}
|
|
122
111
|
export interface IAnswersParentResource extends IResource {
|
|
123
112
|
answers?: UserAnswersDto[];
|
|
124
113
|
}
|
|
@@ -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/registration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './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("./interfaces"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/registration/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './registration.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("./registration.interfaces"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/registration/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
|
|
2
|
+
/**
|
|
3
|
+
* The product and user a registration is created for.
|
|
4
|
+
* Cart items already carry these fields.
|
|
5
|
+
*/
|
|
6
|
+
export interface IRegistrationItem {
|
|
7
|
+
productId: number;
|
|
8
|
+
userId: number;
|
|
9
|
+
paymentStatus?: PaymentStatusEnum;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registration.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/registration/types/interfaces/registration.interfaces.ts"],"names":[],"mappings":""}
|