gunsmith-common 2.3.7 → 2.3.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/esm2020/shared/services/dealer.service.mjs +13 -27
- package/esm2020/shared/services/firearm-milling-type.service.mjs +25 -0
- package/esm2020/shared/services/index.mjs +3 -1
- package/esm2020/shared/services/milling-type-addon.service.mjs +25 -0
- package/esm2020/shared/services/sight.service.mjs +4 -1
- package/esm2020/shared/types/configuration.mjs +1 -1
- package/esm2020/shared/types/dealer.mjs +1 -1
- package/esm2020/shared/types/index.mjs +4 -1
- package/esm2020/shared/types/milling-detail.mjs +2 -1
- package/esm2020/shared/types/milling-type-addon-option.mjs +4 -0
- package/esm2020/shared/types/milling-type-addon.mjs +7 -0
- package/esm2020/shared/types/milling-type.mjs +2 -2
- package/esm2020/shared/types/optic-report-item.mjs +1 -1
- package/esm2020/shared/types/sight-report-item.mjs +2 -0
- package/fesm2015/gunsmith-common.mjs +71 -28
- package/fesm2015/gunsmith-common.mjs.map +1 -1
- package/fesm2020/gunsmith-common.mjs +67 -28
- package/fesm2020/gunsmith-common.mjs.map +1 -1
- package/gunsmith-common-2.3.9.tgz +0 -0
- package/package.json +1 -1
- package/shared/services/dealer.service.d.ts +5 -9
- package/shared/services/firearm-milling-type.service.d.ts +11 -0
- package/shared/services/index.d.ts +2 -0
- package/shared/services/milling-type-addon.service.d.ts +11 -0
- package/shared/services/sight.service.d.ts +3 -1
- package/shared/types/configuration.d.ts +1 -0
- package/shared/types/dealer.d.ts +1 -0
- package/shared/types/index.d.ts +3 -0
- package/shared/types/milling-detail.d.ts +2 -0
- package/shared/types/milling-type-addon-option.d.ts +5 -0
- package/shared/types/milling-type-addon.d.ts +8 -0
- package/shared/types/milling-type.d.ts +2 -2
- package/shared/types/optic-report-item.d.ts +2 -0
- package/shared/types/sight-report-item.d.ts +10 -0
- package/gunsmith-common-2.3.7.tgz +0 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,18 +2,14 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Dealer } from '../types/dealer';
|
|
4
4
|
import { DealerCoupon } from '../types';
|
|
5
|
+
import { BaseService } from './base.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DealerService {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
private url;
|
|
7
|
+
export declare class DealerService extends BaseService<Dealer> {
|
|
8
|
+
protected http: HttpClient;
|
|
9
|
+
protected env: any;
|
|
10
10
|
constructor(http: HttpClient, env: any);
|
|
11
|
-
readDealers(includeInactive?: boolean): Observable<Dealer[]>;
|
|
12
|
-
readDealer(id: number): Observable<Dealer>;
|
|
13
|
-
createDealer(dealer: Dealer): Observable<Dealer>;
|
|
14
|
-
updateDealer(id: number, dealer: Dealer): Observable<Dealer>;
|
|
15
|
-
deleteDealer(id: number): Observable<any>;
|
|
16
11
|
updateDealerCoupon(dealerId: number, couponId: number, dealerCoupon: DealerCoupon): Observable<Dealer>;
|
|
12
|
+
sendExpiredEmail(): Observable<any>;
|
|
17
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<DealerService, never>;
|
|
18
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<DealerService>;
|
|
19
15
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { BaseService } from './base.service';
|
|
3
|
+
import { MillingType } from '../types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FirearmMillingTypeService extends BaseService<MillingType> {
|
|
6
|
+
protected http: HttpClient;
|
|
7
|
+
protected env: any;
|
|
8
|
+
constructor(http: HttpClient, env: any);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FirearmMillingTypeService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FirearmMillingTypeService>;
|
|
11
|
+
}
|
|
@@ -39,3 +39,5 @@ export * from './package-variation.service';
|
|
|
39
39
|
export * from './slide-addon.service';
|
|
40
40
|
export * from './coating-value.service';
|
|
41
41
|
export * from './finish-date-helper.service';
|
|
42
|
+
export * from './milling-type-addon.service';
|
|
43
|
+
export * from './firearm-milling-type.service';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseService } from './base.service';
|
|
2
|
+
import { MillingTypeAddon } from '../types';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MillingTypeAddonService extends BaseService<MillingTypeAddon> {
|
|
6
|
+
protected http: HttpClient;
|
|
7
|
+
protected env: any;
|
|
8
|
+
constructor(http: HttpClient, env: any);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MillingTypeAddonService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MillingTypeAddonService>;
|
|
11
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { BaseService } from './base.service';
|
|
2
|
-
import { Sight } from '../types';
|
|
2
|
+
import { Sight, SightReportItem } from '../types';
|
|
3
3
|
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class SightService extends BaseService<Sight> {
|
|
6
7
|
protected http: HttpClient;
|
|
7
8
|
protected env: any;
|
|
8
9
|
constructor(http: HttpClient, env: any);
|
|
10
|
+
getSightReport(): Observable<SightReportItem[]>;
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SightService, never>;
|
|
10
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<SightService>;
|
|
11
13
|
}
|
package/shared/types/dealer.d.ts
CHANGED
package/shared/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { ShieldRMSOptions } from './shield-rms-options';
|
|
|
5
5
|
import { MillingType } from './milling-type';
|
|
6
6
|
import { FirearmOptic } from './firearm-optic';
|
|
7
7
|
import { OpticSight } from './optic-sight';
|
|
8
|
+
import { MillingTypeAddonOption } from './milling-type-addon-option';
|
|
8
9
|
export declare class MillingDetail {
|
|
9
10
|
id: number;
|
|
10
11
|
firearmOptic: FirearmOptic;
|
|
@@ -16,6 +17,7 @@ export declare class MillingDetail {
|
|
|
16
17
|
rearSightPosition: RearSightPosition;
|
|
17
18
|
shieldRMSOptions: ShieldRMSOptions;
|
|
18
19
|
cosmeticMilling: MillingType;
|
|
20
|
+
millingAddons: MillingTypeAddonOption[];
|
|
19
21
|
barrelCrown: boolean;
|
|
20
22
|
bushingInstallation: boolean;
|
|
21
23
|
opticPulled: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Firearm } from './firearm';
|
|
2
1
|
import { GunPart } from './gun-part';
|
|
2
|
+
import { MillingTypeAddon } from './milling-type-addon';
|
|
3
3
|
export declare class MillingType {
|
|
4
4
|
id: number;
|
|
5
5
|
name: string;
|
|
@@ -8,7 +8,7 @@ export declare class MillingType {
|
|
|
8
8
|
gunPart: GunPart;
|
|
9
9
|
isCosmetic: boolean;
|
|
10
10
|
mustRefinish: boolean;
|
|
11
|
-
|
|
11
|
+
addons: MillingTypeAddon[];
|
|
12
12
|
imageUrl: string;
|
|
13
13
|
active: boolean;
|
|
14
14
|
timestamp: string;
|
|
Binary file
|