gunsmith-common 2.3.9 → 2.3.11
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/esm2020/shared/services/waitlist.service.mjs +23 -15
- package/esm2020/shared/types/address.mjs +3 -0
- package/esm2020/shared/types/configuration.mjs +1 -1
- package/esm2020/shared/types/firearm-optic.mjs +2 -1
- package/esm2020/shared/types/index.mjs +2 -1
- package/esm2020/shared/types/milling-detail.mjs +2 -1
- package/esm2020/shared/types/waitlist-status.mjs +2 -1
- package/esm2020/shared/types/work-order.mjs +1 -1
- package/fesm2015/gunsmith-common.mjs +29 -15
- package/fesm2015/gunsmith-common.mjs.map +1 -1
- package/fesm2020/gunsmith-common.mjs +29 -15
- package/fesm2020/gunsmith-common.mjs.map +1 -1
- package/gunsmith-common-2.3.11.tgz +0 -0
- package/package.json +1 -1
- package/shared/services/waitlist.service.d.ts +2 -0
- package/shared/types/address.d.ts +9 -0
- package/shared/types/configuration.d.ts +1 -0
- package/shared/types/firearm-optic.d.ts +1 -0
- package/shared/types/index.d.ts +1 -0
- package/shared/types/milling-detail.d.ts +1 -0
- package/shared/types/waitlist-status.d.ts +2 -1
- package/shared/types/work-order.d.ts +3 -0
- package/gunsmith-common-2.3.9.tgz +0 -0
|
@@ -168,6 +168,7 @@ var WaitlistStatus;
|
|
|
168
168
|
WaitlistStatus[WaitlistStatus["Voided"] = 10] = "Voided";
|
|
169
169
|
WaitlistStatus[WaitlistStatus["Pending"] = 11] = "Pending";
|
|
170
170
|
WaitlistStatus[WaitlistStatus["Rejected"] = 12] = "Rejected";
|
|
171
|
+
WaitlistStatus[WaitlistStatus["NewInBoxPending"] = 13] = "NewInBoxPending";
|
|
171
172
|
})(WaitlistStatus || (WaitlistStatus = {}));
|
|
172
173
|
|
|
173
174
|
var WorkOrderType;
|
|
@@ -306,6 +307,7 @@ class MillingDetail {
|
|
|
306
307
|
this.millingAddons = [];
|
|
307
308
|
this.barrelCrown = false;
|
|
308
309
|
this.bushingInstallation = false;
|
|
310
|
+
this.weightReduction = false;
|
|
309
311
|
this.opticPulled = false;
|
|
310
312
|
}
|
|
311
313
|
}
|
|
@@ -508,6 +510,7 @@ class FirearmOptic {
|
|
|
508
510
|
this.rearSights = [];
|
|
509
511
|
this.keepDovetail = false;
|
|
510
512
|
this.removeDovetail = false;
|
|
513
|
+
this.weightReduction = false;
|
|
511
514
|
this.active = true;
|
|
512
515
|
}
|
|
513
516
|
}
|
|
@@ -532,6 +535,9 @@ class MillingTypeAddon {
|
|
|
532
535
|
}
|
|
533
536
|
}
|
|
534
537
|
|
|
538
|
+
class Address {
|
|
539
|
+
}
|
|
540
|
+
|
|
535
541
|
class CustomerService {
|
|
536
542
|
constructor(http, env) {
|
|
537
543
|
this.http = http;
|
|
@@ -1071,33 +1077,33 @@ class WaitlistService {
|
|
|
1071
1077
|
constructor(http, env) {
|
|
1072
1078
|
this.http = http;
|
|
1073
1079
|
this.env = env;
|
|
1074
|
-
this.url = this.env.baseUrl +
|
|
1080
|
+
this.url = this.env.baseUrl + "api/waitlist-items";
|
|
1075
1081
|
}
|
|
1076
1082
|
retrieveWaitlistItems(statuses = null, id = null, customerName = null, customerEmail = null, serialNumber = null, workOrderTypes = null, projectTypes = null) {
|
|
1077
1083
|
const params = {};
|
|
1078
1084
|
if (statuses) {
|
|
1079
|
-
params[
|
|
1085
|
+
params["statuses"] = statuses.map((status) => status.toString());
|
|
1080
1086
|
}
|
|
1081
1087
|
if (id) {
|
|
1082
|
-
params[
|
|
1088
|
+
params["id"] = id.toString();
|
|
1083
1089
|
}
|
|
1084
1090
|
if (customerName) {
|
|
1085
|
-
params[
|
|
1091
|
+
params["customerName"] = customerName;
|
|
1086
1092
|
}
|
|
1087
1093
|
if (customerEmail) {
|
|
1088
|
-
params[
|
|
1094
|
+
params["customerEmail"] = customerEmail;
|
|
1089
1095
|
}
|
|
1090
1096
|
if (serialNumber) {
|
|
1091
|
-
params[
|
|
1097
|
+
params["serialNumber"] = serialNumber;
|
|
1092
1098
|
}
|
|
1093
1099
|
if (workOrderTypes) {
|
|
1094
|
-
params[
|
|
1100
|
+
params["workOrderTypes"] = workOrderTypes.map((t) => t.toString());
|
|
1095
1101
|
}
|
|
1096
1102
|
if (projectTypes) {
|
|
1097
|
-
params[
|
|
1103
|
+
params["projectTypes"] = projectTypes.map((t) => t.toString());
|
|
1098
1104
|
}
|
|
1099
1105
|
return this.http.get(this.url, {
|
|
1100
|
-
params: params
|
|
1106
|
+
params: params,
|
|
1101
1107
|
});
|
|
1102
1108
|
}
|
|
1103
1109
|
retrieveWaitlistItem(id) {
|
|
@@ -1118,8 +1124,16 @@ class WaitlistService {
|
|
|
1118
1124
|
}
|
|
1119
1125
|
return this.http.get(`${this.url}/${id}/actions/${actionId}`);
|
|
1120
1126
|
}
|
|
1127
|
+
sendNIBEmail(id) {
|
|
1128
|
+
return this.http.get(`${this.url}/${id}/send-nib-email`);
|
|
1129
|
+
}
|
|
1130
|
+
sendNIBReminderEmails() {
|
|
1131
|
+
return this.http.get(`${this.url}/send-nib-reminder-emails`);
|
|
1132
|
+
}
|
|
1121
1133
|
retrieveProjectPdf(id, projectId) {
|
|
1122
|
-
return this.http.get(`${this.url}/${id}/projects/${projectId}/pdf`, {
|
|
1134
|
+
return this.http.get(`${this.url}/${id}/projects/${projectId}/pdf`, {
|
|
1135
|
+
responseType: "blob",
|
|
1136
|
+
});
|
|
1123
1137
|
}
|
|
1124
1138
|
retrieveProjects(waitlistId) {
|
|
1125
1139
|
return this.http.get(`${this.url}/${waitlistId}/projects`);
|
|
@@ -1143,16 +1157,16 @@ class WaitlistService {
|
|
|
1143
1157
|
return this.http.get(`${this.url}/trigger-update`);
|
|
1144
1158
|
}
|
|
1145
1159
|
}
|
|
1146
|
-
WaitlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistService, deps: [{ token: i1.HttpClient }, { token:
|
|
1147
|
-
WaitlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistService, providedIn:
|
|
1160
|
+
WaitlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1161
|
+
WaitlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistService, providedIn: "root" });
|
|
1148
1162
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistService, decorators: [{
|
|
1149
1163
|
type: Injectable,
|
|
1150
1164
|
args: [{
|
|
1151
|
-
providedIn:
|
|
1165
|
+
providedIn: "root",
|
|
1152
1166
|
}]
|
|
1153
1167
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1154
1168
|
type: Inject,
|
|
1155
|
-
args: [
|
|
1169
|
+
args: ["env"]
|
|
1156
1170
|
}] }]; } });
|
|
1157
1171
|
|
|
1158
1172
|
class ConfigurationService {
|
|
@@ -2512,5 +2526,5 @@ var NotificationType;
|
|
|
2512
2526
|
* Generated bundle index. Do not edit.
|
|
2513
2527
|
*/
|
|
2514
2528
|
|
|
2515
|
-
export { BaseService, BundleItem, ChangeOrderPackageDetail, ChangeOrderStatus, Coating, CoatingService, CoatingValue, CoatingValueService, Configuration, ConfigurationService, Customer, CustomerService, Dealer, DealerContact, DealerCoupon, DealerService, DisableControlDirective, EnumPipe, FileNamePipe, FileUploadService, FilterOptions, FinishDateHelperService, Firearm, FirearmMillingTypeService, FirearmOptic, FirearmOpticService, FirearmService, FirearmSightService, FormErrorMessageComponent, FrameMaterial, FrameMaterialPipe, GunCaliber, GunPart, GunPartOption, GunPartService, InventoryItem, InventoryService, JFile, Material, MaterialService, MillingDetail, MillingItem, MillingType, MillingTypeAddon, MillingTypeAddonOption, MillingTypeAddonService, MillingTypeService, ModalHeaderComponent, MountType, MountTypeService, NewLinePipe, NotificationBarComponent, NotificationModule, NotificationService, NotificationType, Optic, OpticService, OpticSight, OpticStatus, Package, PackageItem, PackageOptionalItem, PackageOptionalItemService, PackageSelectorComponent, PackageService, PackageTotal, PackageVariation, PackageVariationOption, PackageVariationService, PhonePipe, Product, ProductService, ProjectType, PurchaseOrder, PurchaseOrderRefinishItem, PurchaseOrderService, PurchaseOrderStatus, QuickbooksService, RearSightPosition, RefinishCode, RefinishCodeService, RefinishDetail, ReportMillingItem, ReportRefinishItem, SharedModule, ShieldRMSOptions, Sight, SightMaterialService, SightMaterialType, SightService, SightType, SightTypeEnum, SightTypeService, SlideAddon, SlideAddonService, State, StateService, StatusHistoryService, Total, TotalItem, TotalsService, UserService, Vendor, VendorContact, VendorService, WaitlistAction, WaitlistCustomerService, WaitlistGun, WaitlistGunPackageDetail, WaitlistHistory, WaitlistItem, WaitlistProjectService, WaitlistService, WaitlistStatus, WorkChangeOrder, WorkHoliday, WorkHolidayService, WorkOrder, WorkOrderAction, WorkOrderDiscount, WorkOrderDiscountService, WorkOrderHistory, WorkOrderInventoryItem, WorkOrderListItem, WorkOrderNonInventoryItem, WorkOrderNonInventoryItemService, WorkOrderPackageDetail, WorkOrderRefinishItem, WorkOrderService, WorkOrderShippingItem, WorkOrderShippingItemService, WorkOrderStatus, WorkOrderType, coatingDescriptionValidator, coatingValueValidator, convertEnumToObjectArray, getCoatingValues, getCoatings, hasCoatingDescription, hasCoatingValues, refinishDetailsValidator, touchControls };
|
|
2529
|
+
export { Address, BaseService, BundleItem, ChangeOrderPackageDetail, ChangeOrderStatus, Coating, CoatingService, CoatingValue, CoatingValueService, Configuration, ConfigurationService, Customer, CustomerService, Dealer, DealerContact, DealerCoupon, DealerService, DisableControlDirective, EnumPipe, FileNamePipe, FileUploadService, FilterOptions, FinishDateHelperService, Firearm, FirearmMillingTypeService, FirearmOptic, FirearmOpticService, FirearmService, FirearmSightService, FormErrorMessageComponent, FrameMaterial, FrameMaterialPipe, GunCaliber, GunPart, GunPartOption, GunPartService, InventoryItem, InventoryService, JFile, Material, MaterialService, MillingDetail, MillingItem, MillingType, MillingTypeAddon, MillingTypeAddonOption, MillingTypeAddonService, MillingTypeService, ModalHeaderComponent, MountType, MountTypeService, NewLinePipe, NotificationBarComponent, NotificationModule, NotificationService, NotificationType, Optic, OpticService, OpticSight, OpticStatus, Package, PackageItem, PackageOptionalItem, PackageOptionalItemService, PackageSelectorComponent, PackageService, PackageTotal, PackageVariation, PackageVariationOption, PackageVariationService, PhonePipe, Product, ProductService, ProjectType, PurchaseOrder, PurchaseOrderRefinishItem, PurchaseOrderService, PurchaseOrderStatus, QuickbooksService, RearSightPosition, RefinishCode, RefinishCodeService, RefinishDetail, ReportMillingItem, ReportRefinishItem, SharedModule, ShieldRMSOptions, Sight, SightMaterialService, SightMaterialType, SightService, SightType, SightTypeEnum, SightTypeService, SlideAddon, SlideAddonService, State, StateService, StatusHistoryService, Total, TotalItem, TotalsService, UserService, Vendor, VendorContact, VendorService, WaitlistAction, WaitlistCustomerService, WaitlistGun, WaitlistGunPackageDetail, WaitlistHistory, WaitlistItem, WaitlistProjectService, WaitlistService, WaitlistStatus, WorkChangeOrder, WorkHoliday, WorkHolidayService, WorkOrder, WorkOrderAction, WorkOrderDiscount, WorkOrderDiscountService, WorkOrderHistory, WorkOrderInventoryItem, WorkOrderListItem, WorkOrderNonInventoryItem, WorkOrderNonInventoryItemService, WorkOrderPackageDetail, WorkOrderRefinishItem, WorkOrderService, WorkOrderShippingItem, WorkOrderShippingItemService, WorkOrderStatus, WorkOrderType, coatingDescriptionValidator, coatingValueValidator, convertEnumToObjectArray, getCoatingValues, getCoatings, hasCoatingDescription, hasCoatingValues, refinishDetailsValidator, touchControls };
|
|
2516
2530
|
//# sourceMappingURL=gunsmith-common.mjs.map
|