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.
Files changed (35) hide show
  1. package/esm2020/shared/services/dealer.service.mjs +13 -27
  2. package/esm2020/shared/services/firearm-milling-type.service.mjs +25 -0
  3. package/esm2020/shared/services/index.mjs +3 -1
  4. package/esm2020/shared/services/milling-type-addon.service.mjs +25 -0
  5. package/esm2020/shared/services/sight.service.mjs +4 -1
  6. package/esm2020/shared/types/configuration.mjs +1 -1
  7. package/esm2020/shared/types/dealer.mjs +1 -1
  8. package/esm2020/shared/types/index.mjs +4 -1
  9. package/esm2020/shared/types/milling-detail.mjs +2 -1
  10. package/esm2020/shared/types/milling-type-addon-option.mjs +4 -0
  11. package/esm2020/shared/types/milling-type-addon.mjs +7 -0
  12. package/esm2020/shared/types/milling-type.mjs +2 -2
  13. package/esm2020/shared/types/optic-report-item.mjs +1 -1
  14. package/esm2020/shared/types/sight-report-item.mjs +2 -0
  15. package/fesm2015/gunsmith-common.mjs +71 -28
  16. package/fesm2015/gunsmith-common.mjs.map +1 -1
  17. package/fesm2020/gunsmith-common.mjs +67 -28
  18. package/fesm2020/gunsmith-common.mjs.map +1 -1
  19. package/gunsmith-common-2.3.9.tgz +0 -0
  20. package/package.json +1 -1
  21. package/shared/services/dealer.service.d.ts +5 -9
  22. package/shared/services/firearm-milling-type.service.d.ts +11 -0
  23. package/shared/services/index.d.ts +2 -0
  24. package/shared/services/milling-type-addon.service.d.ts +11 -0
  25. package/shared/services/sight.service.d.ts +3 -1
  26. package/shared/types/configuration.d.ts +1 -0
  27. package/shared/types/dealer.d.ts +1 -0
  28. package/shared/types/index.d.ts +3 -0
  29. package/shared/types/milling-detail.d.ts +2 -0
  30. package/shared/types/milling-type-addon-option.d.ts +5 -0
  31. package/shared/types/milling-type-addon.d.ts +8 -0
  32. package/shared/types/milling-type.d.ts +2 -2
  33. package/shared/types/optic-report-item.d.ts +2 -0
  34. package/shared/types/sight-report-item.d.ts +10 -0
  35. package/gunsmith-common-2.3.7.tgz +0 -0
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gunsmith-common",
3
- "version": "2.3.7",
3
+ "version": "2.3.9",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": ">= 6.1.10",
6
6
  "@angular/common": ">= 6.1.10",
@@ -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
- private http;
8
- private env;
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
  }
@@ -10,6 +10,7 @@ export declare class Configuration {
10
10
  quickbooksFileLocation: string;
11
11
  waitlistErrorEmail: string;
12
12
  warrantyEmail: string;
13
+ dealerEmail: string;
13
14
  blacklistEmails: string;
14
15
  timestamp: string;
15
16
  }
@@ -14,6 +14,7 @@ export declare class Dealer {
14
14
  fflFile: JFile;
15
15
  fflFileName: string;
16
16
  resaleCertFile: JFile;
17
+ resaleTaxCertificateDate: Date;
17
18
  resaleTaxCertificateFileName: string;
18
19
  couponId: number;
19
20
  couponCode: string;
@@ -75,3 +75,6 @@ export * from './simple-type';
75
75
  export * from './firearm-optic';
76
76
  export * from './optic-sight';
77
77
  export * from './slide-addon';
78
+ export * from './milling-type-addon-option';
79
+ export * from './milling-type-addon';
80
+ export * from './sight-report-item';
@@ -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;
@@ -0,0 +1,5 @@
1
+ import { MillingType } from "./milling-type";
2
+ export declare class MillingTypeAddonOption extends MillingType {
3
+ sortOrder: number;
4
+ millingTypeAddonId: number;
5
+ }
@@ -0,0 +1,8 @@
1
+ import { MillingTypeAddonOption } from "./milling-type-addon-option";
2
+ export declare class MillingTypeAddon {
3
+ id: number;
4
+ millingTypeId: number;
5
+ addonName: string;
6
+ addonOptions: MillingTypeAddonOption[];
7
+ active: boolean;
8
+ }
@@ -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
- firearms: Firearm[];
11
+ addons: MillingTypeAddon[];
12
12
  imageUrl: string;
13
13
  active: boolean;
14
14
  timestamp: string;
@@ -1,6 +1,8 @@
1
1
  export interface OpticReportItem {
2
2
  customerName: string;
3
3
  estShipDate: Date | null;
4
+ plateSku: string;
5
+ plateName: string;
4
6
  opticSku: string;
5
7
  opticName: string;
6
8
  opticPulled: boolean;
@@ -0,0 +1,10 @@
1
+ export interface SightReportItem {
2
+ customerName: string;
3
+ estShipDate: Date | null;
4
+ sightSku: string;
5
+ sightName: string;
6
+ workOrderType: string;
7
+ serialNumber: string;
8
+ id: number;
9
+ type: string;
10
+ }
Binary file