gunsmith-common 2.3.9 → 2.3.10
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/firearm-optic.mjs +2 -1
- package/esm2020/shared/types/milling-detail.mjs +2 -1
- package/esm2020/shared/types/waitlist-status.mjs +2 -1
- package/fesm2015/gunsmith-common.mjs +25 -14
- package/fesm2015/gunsmith-common.mjs.map +1 -1
- package/fesm2020/gunsmith-common.mjs +25 -14
- package/fesm2020/gunsmith-common.mjs.map +1 -1
- package/gunsmith-common-2.3.10.tgz +0 -0
- package/package.json +1 -1
- package/shared/services/waitlist.service.d.ts +2 -0
- package/shared/types/firearm-optic.d.ts +1 -0
- package/shared/types/milling-detail.d.ts +1 -0
- package/shared/types/waitlist-status.d.ts +2 -1
- 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
|
}
|
|
@@ -1071,33 +1074,33 @@ class WaitlistService {
|
|
|
1071
1074
|
constructor(http, env) {
|
|
1072
1075
|
this.http = http;
|
|
1073
1076
|
this.env = env;
|
|
1074
|
-
this.url = this.env.baseUrl +
|
|
1077
|
+
this.url = this.env.baseUrl + "api/waitlist-items";
|
|
1075
1078
|
}
|
|
1076
1079
|
retrieveWaitlistItems(statuses = null, id = null, customerName = null, customerEmail = null, serialNumber = null, workOrderTypes = null, projectTypes = null) {
|
|
1077
1080
|
const params = {};
|
|
1078
1081
|
if (statuses) {
|
|
1079
|
-
params[
|
|
1082
|
+
params["statuses"] = statuses.map((status) => status.toString());
|
|
1080
1083
|
}
|
|
1081
1084
|
if (id) {
|
|
1082
|
-
params[
|
|
1085
|
+
params["id"] = id.toString();
|
|
1083
1086
|
}
|
|
1084
1087
|
if (customerName) {
|
|
1085
|
-
params[
|
|
1088
|
+
params["customerName"] = customerName;
|
|
1086
1089
|
}
|
|
1087
1090
|
if (customerEmail) {
|
|
1088
|
-
params[
|
|
1091
|
+
params["customerEmail"] = customerEmail;
|
|
1089
1092
|
}
|
|
1090
1093
|
if (serialNumber) {
|
|
1091
|
-
params[
|
|
1094
|
+
params["serialNumber"] = serialNumber;
|
|
1092
1095
|
}
|
|
1093
1096
|
if (workOrderTypes) {
|
|
1094
|
-
params[
|
|
1097
|
+
params["workOrderTypes"] = workOrderTypes.map((t) => t.toString());
|
|
1095
1098
|
}
|
|
1096
1099
|
if (projectTypes) {
|
|
1097
|
-
params[
|
|
1100
|
+
params["projectTypes"] = projectTypes.map((t) => t.toString());
|
|
1098
1101
|
}
|
|
1099
1102
|
return this.http.get(this.url, {
|
|
1100
|
-
params: params
|
|
1103
|
+
params: params,
|
|
1101
1104
|
});
|
|
1102
1105
|
}
|
|
1103
1106
|
retrieveWaitlistItem(id) {
|
|
@@ -1118,8 +1121,16 @@ class WaitlistService {
|
|
|
1118
1121
|
}
|
|
1119
1122
|
return this.http.get(`${this.url}/${id}/actions/${actionId}`);
|
|
1120
1123
|
}
|
|
1124
|
+
sendNIBEmail(id) {
|
|
1125
|
+
return this.http.get(`${this.url}/${id}/send-nib-email`);
|
|
1126
|
+
}
|
|
1127
|
+
sendNIBReminderEmails() {
|
|
1128
|
+
return this.http.get(`${this.url}/send-nib-reminder-emails`);
|
|
1129
|
+
}
|
|
1121
1130
|
retrieveProjectPdf(id, projectId) {
|
|
1122
|
-
return this.http.get(`${this.url}/${id}/projects/${projectId}/pdf`, {
|
|
1131
|
+
return this.http.get(`${this.url}/${id}/projects/${projectId}/pdf`, {
|
|
1132
|
+
responseType: "blob",
|
|
1133
|
+
});
|
|
1123
1134
|
}
|
|
1124
1135
|
retrieveProjects(waitlistId) {
|
|
1125
1136
|
return this.http.get(`${this.url}/${waitlistId}/projects`);
|
|
@@ -1143,16 +1154,16 @@ class WaitlistService {
|
|
|
1143
1154
|
return this.http.get(`${this.url}/trigger-update`);
|
|
1144
1155
|
}
|
|
1145
1156
|
}
|
|
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:
|
|
1157
|
+
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 });
|
|
1158
|
+
WaitlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistService, providedIn: "root" });
|
|
1148
1159
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistService, decorators: [{
|
|
1149
1160
|
type: Injectable,
|
|
1150
1161
|
args: [{
|
|
1151
|
-
providedIn:
|
|
1162
|
+
providedIn: "root",
|
|
1152
1163
|
}]
|
|
1153
1164
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1154
1165
|
type: Inject,
|
|
1155
|
-
args: [
|
|
1166
|
+
args: ["env"]
|
|
1156
1167
|
}] }]; } });
|
|
1157
1168
|
|
|
1158
1169
|
class ConfigurationService {
|