gunsmith-common 2.2.17 → 2.3.0

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 (94) hide show
  1. package/esm2020/notification/notification-bar/notification-bar.component.mjs +3 -3
  2. package/esm2020/public_api.mjs +3 -1
  3. package/esm2020/shared/controls/form-error-message/form-error-message.component.mjs +17 -0
  4. package/esm2020/shared/controls/modal-header/modal-header.component.mjs +25 -0
  5. package/esm2020/shared/services/base.service.mjs +4 -1
  6. package/esm2020/shared/services/coating-value.service.mjs +25 -0
  7. package/esm2020/shared/services/coating.service.mjs +31 -29
  8. package/esm2020/shared/services/configuration.service.mjs +4 -1
  9. package/esm2020/shared/services/firearm-optic.service.mjs +25 -0
  10. package/esm2020/shared/services/firearm-sight.service.mjs +25 -0
  11. package/esm2020/shared/services/index.mjs +11 -1
  12. package/esm2020/shared/services/milling-type.service.mjs +9 -28
  13. package/esm2020/shared/services/mount-type.service.mjs +25 -0
  14. package/esm2020/shared/services/package-optional-item.service.mjs +25 -0
  15. package/esm2020/shared/services/package-variation.service.mjs +25 -0
  16. package/esm2020/shared/services/sight-material.service.mjs +25 -0
  17. package/esm2020/shared/services/sight-type.service.mjs +25 -0
  18. package/esm2020/shared/services/sight.service.mjs +25 -0
  19. package/esm2020/shared/services/slide-addon.service.mjs +25 -0
  20. package/esm2020/shared/services/waitlist-customer.service.mjs +4 -1
  21. package/esm2020/shared/shared.module.mjs +18 -21
  22. package/esm2020/shared/types/coating-value.mjs +1 -1
  23. package/esm2020/shared/types/coating.mjs +1 -1
  24. package/esm2020/shared/types/firearm-optic.mjs +9 -0
  25. package/esm2020/shared/types/firearm-series-optic.mjs +1 -1
  26. package/esm2020/shared/types/gun-part.mjs +1 -1
  27. package/esm2020/shared/types/index.mjs +9 -2
  28. package/esm2020/shared/types/inventory-item.mjs +2 -1
  29. package/esm2020/shared/types/milling-detail.mjs +1 -1
  30. package/esm2020/shared/types/milling-type.mjs +5 -1
  31. package/esm2020/shared/types/mount-type.mjs +6 -9
  32. package/esm2020/shared/types/optic-sight.mjs +4 -0
  33. package/esm2020/shared/types/optic.mjs +1 -1
  34. package/esm2020/shared/types/package-optional-item.mjs +5 -1
  35. package/esm2020/shared/types/package-variation-option.mjs +1 -1
  36. package/esm2020/shared/types/package.mjs +2 -1
  37. package/esm2020/shared/types/sight-material-type.mjs +6 -0
  38. package/esm2020/shared/types/sight-type-enum.mjs +7 -0
  39. package/esm2020/shared/types/sight-type.mjs +6 -7
  40. package/esm2020/shared/types/sight.mjs +6 -0
  41. package/esm2020/shared/types/simple-type.mjs +2 -0
  42. package/esm2020/shared/types/slide-addon.mjs +7 -0
  43. package/esm2020/shared/types/waitlist-gun.mjs +3 -1
  44. package/esm2020/shared/types/waitlist-status.mjs +2 -1
  45. package/fesm2015/gunsmith-common.mjs +417 -130
  46. package/fesm2015/gunsmith-common.mjs.map +1 -1
  47. package/fesm2020/gunsmith-common.mjs +397 -130
  48. package/fesm2020/gunsmith-common.mjs.map +1 -1
  49. package/gunsmith-common-2.3.0.tgz +0 -0
  50. package/package.json +1 -1
  51. package/public_api.d.ts +2 -0
  52. package/shared/controls/form-error-message/form-error-message.component.d.ts +8 -0
  53. package/shared/controls/modal-header/modal-header.component.d.ts +11 -0
  54. package/shared/services/base.service.d.ts +1 -0
  55. package/shared/services/coating-value.service.d.ts +11 -0
  56. package/shared/services/coating.service.d.ts +4 -8
  57. package/shared/services/configuration.service.d.ts +1 -0
  58. package/shared/services/firearm-optic.service.d.ts +11 -0
  59. package/shared/services/firearm-sight.service.d.ts +11 -0
  60. package/shared/services/index.d.ts +10 -0
  61. package/shared/services/milling-type.service.d.ts +4 -10
  62. package/shared/services/mount-type.service.d.ts +11 -0
  63. package/shared/services/package-optional-item.service.d.ts +11 -0
  64. package/shared/services/package-variation.service.d.ts +11 -0
  65. package/shared/services/sight-material.service.d.ts +11 -0
  66. package/shared/services/sight-type.service.d.ts +11 -0
  67. package/shared/services/sight.service.d.ts +11 -0
  68. package/shared/services/slide-addon.service.d.ts +11 -0
  69. package/shared/services/waitlist-customer.service.d.ts +1 -0
  70. package/shared/shared.module.d.ts +6 -4
  71. package/shared/types/coating-value.d.ts +1 -0
  72. package/shared/types/coating.d.ts +3 -0
  73. package/shared/types/firearm-optic.d.ts +19 -0
  74. package/shared/types/firearm-series-optic.d.ts +1 -2
  75. package/shared/types/gun-part.d.ts +1 -0
  76. package/shared/types/index.d.ts +8 -1
  77. package/shared/types/inventory-item.d.ts +2 -0
  78. package/shared/types/milling-detail.d.ts +5 -2
  79. package/shared/types/milling-type.d.ts +1 -0
  80. package/shared/types/mount-type.d.ts +7 -6
  81. package/shared/types/optic-sight.d.ts +8 -0
  82. package/shared/types/optic.d.ts +3 -0
  83. package/shared/types/package-optional-item.d.ts +10 -0
  84. package/shared/types/package-variation-option.d.ts +1 -0
  85. package/shared/types/package.d.ts +2 -0
  86. package/shared/types/sight-material-type.d.ts +6 -0
  87. package/shared/types/sight-type-enum.d.ts +5 -0
  88. package/shared/types/sight-type.d.ts +7 -4
  89. package/shared/types/sight.d.ts +15 -0
  90. package/shared/types/simple-type.d.ts +6 -0
  91. package/shared/types/slide-addon.d.ts +20 -0
  92. package/shared/types/waitlist-gun.d.ts +4 -0
  93. package/shared/types/waitlist-status.d.ts +2 -1
  94. package/gunsmith-common-2.2.17.tgz +0 -0
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gunsmith-common",
3
- "version": "2.2.17",
3
+ "version": "2.3.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": ">= 6.1.10",
6
6
  "@angular/common": ">= 6.1.10",
package/public_api.d.ts CHANGED
@@ -4,6 +4,8 @@ export * from './shared/services';
4
4
  export * from './shared/pipes';
5
5
  export * from './shared/directives';
6
6
  export * from './shared/controls/package-selector/package-selector.component';
7
+ export * from "./shared/controls/form-error-message/form-error-message.component";
8
+ export * from "./shared/controls/modal-header/modal-header.component";
7
9
  export * from './shared/shared.module';
8
10
  export * from './notification/notification.module';
9
11
  export * from './notification';
@@ -0,0 +1,8 @@
1
+ import { AbstractControl } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormErrorMessageComponent {
4
+ control: AbstractControl;
5
+ controlName: string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorMessageComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormErrorMessageComponent, "cgw-error-message", never, { "control": "control"; "controlName": "controlName"; }, {}, never, never>;
8
+ }
@@ -0,0 +1,11 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ import { FormGroup } from "@angular/forms";
3
+ import * as i0 from "@angular/core";
4
+ export declare class ModalHeaderComponent {
5
+ headerTitle: string;
6
+ form: FormGroup;
7
+ close: EventEmitter<MouseEvent | TouchEvent>;
8
+ onCloseClick(e: MouseEvent | TouchEvent): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalHeaderComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalHeaderComponent, "cgw-modal-header", never, { "headerTitle": "headerTitle"; "form": "form"; }, { "close": "close"; }, never, never>;
11
+ }
@@ -7,6 +7,7 @@ export declare abstract class BaseService<T> {
7
7
  constructor(http: HttpClient);
8
8
  getUrl(...params: number[]): string;
9
9
  getAll(...params: number[]): Observable<T[]>;
10
+ getAllWithParams(queryParams?: {}, ...params: number[]): Observable<T[]>;
10
11
  get(...params: number[]): Observable<T>;
11
12
  create(item: T, ...params: number[]): Observable<T>;
12
13
  update(item: T, ...params: number[]): Observable<T>;
@@ -0,0 +1,11 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { BaseService } from './base.service';
3
+ import { CoatingValue } from '../types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class CoatingValueService extends BaseService<CoatingValue> {
6
+ protected http: HttpClient;
7
+ protected env: any;
8
+ constructor(http: HttpClient, env: any);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<CoatingValueService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<CoatingValueService>;
11
+ }
@@ -1,17 +1,13 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Coating, CoatingValue } from '../types';
4
+ import { BaseService } from './base.service';
4
5
  import * as i0 from "@angular/core";
5
- export declare class CoatingService {
6
- private http;
7
- private env;
6
+ export declare class CoatingService extends BaseService<Coating> {
7
+ protected http: HttpClient;
8
+ protected env: any;
8
9
  private url;
9
10
  constructor(http: HttpClient, env: any);
10
- readCoatings(includeInactive?: boolean): Observable<Coating[]>;
11
- readCoating(id: number): Observable<Coating>;
12
- createCoating(coating: Coating): Observable<Coating>;
13
- updateCoating(id: number, coating: Coating): Observable<Coating>;
14
- deleteCoating(id: number): Observable<any>;
15
11
  readCoatingValues(coatingId: number, includeInactive?: boolean): Observable<CoatingValue[]>;
16
12
  readCoatingValue(coatingId: number, coatingValueId: number): Observable<CoatingValue>;
17
13
  createCoatingValue(coatingId: number, coatingValue: CoatingValue): Observable<CoatingValue>;
@@ -9,6 +9,7 @@ export declare class ConfigurationService {
9
9
  constructor(http: HttpClient, env: any);
10
10
  readConfigs(): Observable<Configuration>;
11
11
  updateConfigs(configuration: Configuration): Observable<Configuration>;
12
+ syncWooCommerce(): Observable<Object>;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
13
14
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationService>;
14
15
  }
@@ -0,0 +1,11 @@
1
+ import { BaseService } from '../services/base.service';
2
+ import { FirearmOptic } from '../types';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FirearmOpticService extends BaseService<FirearmOptic> {
6
+ protected http: HttpClient;
7
+ protected env: any;
8
+ constructor(http: HttpClient, env: any);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FirearmOpticService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<FirearmOpticService>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseService } from './base.service';
2
+ import { Sight } from '../types';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FirearmSightService extends BaseService<Sight> {
6
+ protected http: HttpClient;
7
+ protected env: any;
8
+ constructor(http: HttpClient, env: any);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FirearmSightService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<FirearmSightService>;
11
+ }
@@ -29,3 +29,13 @@ export * from './work-order-discount.service';
29
29
  export * from './quickbooks.service';
30
30
  export * from './work-order-non-inventory-item.service';
31
31
  export * from './base.service';
32
+ export * from './mount-type.service';
33
+ export * from './sight.service';
34
+ export * from './sight-type.service';
35
+ export * from './sight-material.service';
36
+ export * from './firearm-optic.service';
37
+ export * from './firearm-sight.service';
38
+ export * from './package-optional-item.service';
39
+ export * from './package-variation.service';
40
+ export * from './slide-addon.service';
41
+ export * from './coating-value.service';
@@ -1,17 +1,11 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
2
  import { MillingType } from '../types';
3
+ import { BaseService } from './base.service';
4
4
  import * as i0 from "@angular/core";
5
- export declare class MillingTypeService {
6
- private http;
7
- private env;
8
- private url;
5
+ export declare class MillingTypeService extends BaseService<MillingType> {
6
+ protected http: HttpClient;
7
+ protected env: any;
9
8
  constructor(http: HttpClient, env: any);
10
- readMillingTypes(includeInactive?: boolean): Observable<MillingType[]>;
11
- readMillingType(id: number): Observable<MillingType>;
12
- createMillingType(millingType: MillingType): Observable<MillingType>;
13
- updateMillingType(id: number, millingType: MillingType): Observable<MillingType>;
14
- deleteMillingType(id: number): Observable<any>;
15
9
  static ɵfac: i0.ɵɵFactoryDeclaration<MillingTypeService, never>;
16
10
  static ɵprov: i0.ɵɵInjectableDeclaration<MillingTypeService>;
17
11
  }
@@ -0,0 +1,11 @@
1
+ import { MountType } from '../types';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { BaseService } from './base.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class MountTypeService extends BaseService<MountType> {
6
+ protected http: HttpClient;
7
+ protected env: any;
8
+ constructor(http: HttpClient, env: any);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<MountTypeService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<MountTypeService>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseService } from './base.service';
2
+ import { PackageOptionalItem } from '../types';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import * as i0 from "@angular/core";
5
+ export declare class PackageOptionalItemService extends BaseService<PackageOptionalItem> {
6
+ protected http: HttpClient;
7
+ protected env: any;
8
+ constructor(http: HttpClient, env: any);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<PackageOptionalItemService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<PackageOptionalItemService>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { BaseService } from './base.service';
3
+ import { PackageVariation } from '../types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class PackageVariationService extends BaseService<PackageVariation> {
6
+ protected http: HttpClient;
7
+ protected env: any;
8
+ constructor(http: HttpClient, env: any);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<PackageVariationService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<PackageVariationService>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseService } from './base.service';
2
+ import { SightMaterialType } from '../types';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SightMaterialService extends BaseService<SightMaterialType> {
6
+ protected http: HttpClient;
7
+ protected env: any;
8
+ constructor(http: HttpClient, env: any);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SightMaterialService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<SightMaterialService>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseService } from './base.service';
2
+ import { SightType } from '../types';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SightTypeService extends BaseService<SightType> {
6
+ protected http: HttpClient;
7
+ protected env: any;
8
+ constructor(http: HttpClient, env: any);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SightTypeService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<SightTypeService>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseService } from './base.service';
2
+ import { Sight } from '../types';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SightService extends BaseService<Sight> {
6
+ protected http: HttpClient;
7
+ protected env: any;
8
+ constructor(http: HttpClient, env: any);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SightService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<SightService>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { BaseService } from './base.service';
3
+ import { SlideAddon } from '../types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SlideAddonService extends BaseService<SlideAddon> {
6
+ protected http: HttpClient;
7
+ protected env: any;
8
+ constructor(http: HttpClient, env: any);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SlideAddonService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<SlideAddonService>;
11
+ }
@@ -10,6 +10,7 @@ export declare class WaitlistCustomerService {
10
10
  readWaitlistItem(token: string): Observable<WaitlistItem>;
11
11
  updateWaitlistItem(token: string, waitlistItem: WaitlistItem): Observable<WaitlistItem>;
12
12
  cancelWaitlistItem(token: string): Observable<void>;
13
+ createWaitlistItem(waitlistItem: WaitlistItem): Observable<WaitlistItem>;
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<WaitlistCustomerService, never>;
14
15
  static ɵprov: i0.ɵɵInjectableDeclaration<WaitlistCustomerService>;
15
16
  }
@@ -6,11 +6,13 @@ import * as i4 from "./directives/disable-control.directive";
6
6
  import * as i5 from "./pipes/new-line.pipe";
7
7
  import * as i6 from "./pipes/frame-material.pipe";
8
8
  import * as i7 from "./controls/package-selector/package-selector.component";
9
- import * as i8 from "@angular/common";
10
- import * as i9 from "@progress/kendo-angular-dropdowns";
11
- import * as i10 from "@angular/forms";
9
+ import * as i8 from "./controls/form-error-message/form-error-message.component";
10
+ import * as i9 from "./controls/modal-header/modal-header.component";
11
+ import * as i10 from "@angular/common";
12
+ import * as i11 from "@progress/kendo-angular-dropdowns";
13
+ import * as i12 from "@angular/forms";
12
14
  export declare class SharedModule {
13
15
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.PhonePipe, typeof i2.FileNamePipe, typeof i3.EnumPipe, typeof i4.DisableControlDirective, typeof i5.NewLinePipe, typeof i6.FrameMaterialPipe, typeof i7.PackageSelectorComponent], [typeof i8.CommonModule, typeof i9.DropDownsModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule], [typeof i1.PhonePipe, typeof i2.FileNamePipe, typeof i3.EnumPipe, typeof i5.NewLinePipe, typeof i4.DisableControlDirective, typeof i6.FrameMaterialPipe, typeof i7.PackageSelectorComponent]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.PhonePipe, typeof i2.FileNamePipe, typeof i3.EnumPipe, typeof i4.DisableControlDirective, typeof i5.NewLinePipe, typeof i6.FrameMaterialPipe, typeof i7.PackageSelectorComponent, typeof i8.FormErrorMessageComponent, typeof i9.ModalHeaderComponent], [typeof i10.CommonModule, typeof i11.DropDownsModule, typeof i12.FormsModule, typeof i12.ReactiveFormsModule], [typeof i1.PhonePipe, typeof i2.FileNamePipe, typeof i3.EnumPipe, typeof i5.NewLinePipe, typeof i4.DisableControlDirective, typeof i6.FrameMaterialPipe, typeof i7.PackageSelectorComponent, typeof i8.FormErrorMessageComponent, typeof i9.ModalHeaderComponent]>;
15
17
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
16
18
  }
@@ -2,5 +2,6 @@ export declare class CoatingValue {
2
2
  id: number;
3
3
  name: string;
4
4
  active: boolean;
5
+ imageUrl: string;
5
6
  timestamp: string;
6
7
  }
@@ -4,8 +4,11 @@ export declare class Coating {
4
4
  id: number;
5
5
  name: string;
6
6
  valueLabel: string;
7
+ helpText: string;
8
+ imageUrl: string;
7
9
  coatingValues: CoatingValue[];
8
10
  materials: Material[];
9
11
  active: boolean;
12
+ price: number;
10
13
  timestamp: string;
11
14
  }
@@ -0,0 +1,19 @@
1
+ import { OpticSight } from "./optic-sight";
2
+ export declare class FirearmOptic {
3
+ id: number;
4
+ firearmId: number;
5
+ opticId: number;
6
+ name: string;
7
+ imageUrl: string;
8
+ opticIsAvailable: string;
9
+ opticInventoryItemPrice: number;
10
+ mountTypeId: number;
11
+ mountTypeName: string;
12
+ mountTypeNonBuisPlatePrice: number;
13
+ mountTypeBuisPlatePrice: number;
14
+ frontSights: OpticSight[];
15
+ rearSights: OpticSight[];
16
+ keepDovetail: boolean;
17
+ removeDovetail: boolean;
18
+ timestamp: number[];
19
+ }
@@ -1,9 +1,8 @@
1
- import { MountType } from './mount-type';
2
1
  import { Optic } from './optic';
3
2
  export declare class FirearmSeriesOptic {
4
3
  id: number;
5
4
  optic: Optic;
6
- mountType: MountType;
5
+ mountTypeId: number;
7
6
  rearFrontSightBlack: boolean;
8
7
  rearFrontSightTritium: boolean;
9
8
  rearBehindSightBlack: boolean;
@@ -5,6 +5,7 @@ export declare class GunPart {
5
5
  name: string;
6
6
  coatings: Coating[];
7
7
  options: GunPartOption[];
8
+ imageUrl: string;
8
9
  defaultControl: boolean;
9
10
  customer: boolean;
10
11
  gunsmith: boolean;
@@ -32,7 +32,7 @@ export * from './product';
32
32
  export * from './bundle-item';
33
33
  export * from './change-order-status';
34
34
  export * from './mount-type';
35
- export * from './sight-type';
35
+ export * from './sight-type-enum';
36
36
  export * from './milling-detail';
37
37
  export * from './rear-sight-position';
38
38
  export * from './firearm-series';
@@ -70,3 +70,10 @@ export * from './work-order-discount';
70
70
  export * from './work-order-non-inventory-item';
71
71
  export * from './change-order-package-detail';
72
72
  export * from './optic-report-item';
73
+ export * from './sight';
74
+ export * from './sight-type';
75
+ export * from './sight-material-type';
76
+ export * from './simple-type';
77
+ export * from './firearm-optic';
78
+ export * from './optic-sight';
79
+ export * from './slide-addon';
@@ -2,6 +2,8 @@ export declare class InventoryItem {
2
2
  id: number;
3
3
  name: string;
4
4
  sku: string;
5
+ imageUrl: string;
6
+ imageOverride: boolean;
5
7
  price: number;
6
8
  count: number;
7
9
  orderPoint: number;
@@ -1,12 +1,15 @@
1
1
  import { SightType } from './sight-type';
2
2
  import { RearSightPosition } from './rear-sight-position';
3
- import { Optic } from './optic';
4
3
  import { OpticStatus } from './optic-status';
5
4
  import { ShieldRMSOptions } from './shield-rms-options';
6
5
  import { MillingType } from './milling-type';
6
+ import { FirearmOptic } from './firearm-optic';
7
+ import { OpticSight } from './optic-sight';
7
8
  export declare class MillingDetail {
8
9
  id: number;
9
- optic: Optic;
10
+ firearmOptic: FirearmOptic;
11
+ frontSight: OpticSight;
12
+ rearSight: OpticSight;
10
13
  opticStatus: OpticStatus;
11
14
  frontSightType: SightType;
12
15
  rearSightType: SightType;
@@ -9,6 +9,7 @@ export declare class MillingType {
9
9
  isCosmetic: boolean;
10
10
  mustRefinish: boolean;
11
11
  firearms: Firearm[];
12
+ imageUrl: string;
12
13
  active: boolean;
13
14
  timestamp: string;
14
15
  }
@@ -1,7 +1,8 @@
1
- export declare enum MountType {
2
- Standard = 0,
3
- Plate = 1,
4
- DeltaPointPro = 2,
5
- ShieldRMS = 3,
6
- PlateBUIS = 4
1
+ export declare class MountType {
2
+ id: number;
3
+ name: string;
4
+ nonBuisPlateId: number;
5
+ buisPlateId: number;
6
+ active: boolean;
7
+ timestamp: string;
7
8
  }
@@ -0,0 +1,8 @@
1
+ import { Sight } from './sight';
2
+ import { RearSightPosition } from './rear-sight-position';
3
+ export declare class OpticSight extends Sight {
4
+ sightId: number;
5
+ firearmOpticId: number;
6
+ serviceCodePrice: number;
7
+ rearSightPosition?: RearSightPosition;
8
+ }
@@ -3,6 +3,9 @@ export declare class Optic {
3
3
  name: string;
4
4
  isAvailable: boolean;
5
5
  inventoryItemId: number;
6
+ inventoryItemImageUrl: string;
7
+ inventoryItemPrice: number;
8
+ imageUrl: string;
6
9
  active: boolean;
7
10
  timestamp: string;
8
11
  }
@@ -1,10 +1,20 @@
1
1
  export declare class PackageOptionalItem {
2
+ id: number;
2
3
  packageId: number;
3
4
  inventoryItemId: number;
5
+ inventoryItemPrice: number;
6
+ imageUrl: string;
4
7
  sku: string;
5
8
  name: string;
6
9
  serviceChargeItemId: number;
7
10
  serviceChargeItemSku: string;
8
11
  serviceChargeItemName: string;
9
12
  serviceChargeItemPrice: number;
13
+ millingTypeId: number;
14
+ millingTypeName: string;
15
+ millingTypePrice: number;
16
+ subItems: number[];
17
+ active: boolean;
18
+ timestamp: string;
19
+ price: number;
10
20
  }
@@ -4,6 +4,7 @@ export declare class PackageVariationOption {
4
4
  packageVariationName: string;
5
5
  optionName: string;
6
6
  inventoryItemId: number;
7
+ imageUrl: string;
7
8
  sku: string;
8
9
  itemName: string;
9
10
  serviceChargeItemId: number;
@@ -5,6 +5,8 @@ export declare class Package {
5
5
  code: string;
6
6
  price: number;
7
7
  sku: string;
8
+ imageUrl: string;
9
+ imageOverride: boolean;
8
10
  name: string;
9
11
  active: boolean;
10
12
  gunsmithOnly: boolean;
@@ -0,0 +1,6 @@
1
+ export declare class SightMaterialType {
2
+ id: number;
3
+ name: string;
4
+ active: boolean;
5
+ timestamp: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum SightTypeEnum {
2
+ Black = 0,
3
+ Tritium = 1,
4
+ FiberOptic = 2
5
+ }
@@ -1,5 +1,8 @@
1
- export declare enum SightType {
2
- Black = 0,
3
- Tritium = 1,
4
- FiberOptic = 2
1
+ import { SimpleType } from "./simple-type";
2
+ export declare class SightType implements SimpleType {
3
+ id: number;
4
+ name: string;
5
+ serviceCodeId: number;
6
+ active: boolean;
7
+ timestamp: string;
5
8
  }
@@ -0,0 +1,15 @@
1
+ export declare class Sight {
2
+ id: number;
3
+ name: string;
4
+ sightTypeId: number;
5
+ sightTypeName: string;
6
+ inventoryItemId: number;
7
+ inventoryItemSku: string;
8
+ inventoryItemName: string;
9
+ inventoryItemImageUrl: string;
10
+ price: number;
11
+ sightMaterialTypeId: number;
12
+ sightMaterialTypeName: string;
13
+ active: boolean;
14
+ timestamp: string;
15
+ }
@@ -0,0 +1,6 @@
1
+ export interface SimpleType {
2
+ id: number;
3
+ name: string;
4
+ active: boolean;
5
+ timestamp: string;
6
+ }
@@ -0,0 +1,20 @@
1
+ export declare class SlideAddon {
2
+ id: number;
3
+ firearmId: number;
4
+ inventoryItemId: number;
5
+ inventoryItemPrice: number;
6
+ imageUrl: string;
7
+ sku: string;
8
+ name: string;
9
+ serviceChargeItemId: number;
10
+ serviceChargeItemSku: string;
11
+ serviceChargeItemName: string;
12
+ serviceChargeItemPrice: number;
13
+ millingTypeId: number;
14
+ millingTypeName: string;
15
+ millingTypePrice: number;
16
+ subItems: number[];
17
+ active: boolean;
18
+ timestamp: string;
19
+ price: number;
20
+ }
@@ -1,9 +1,11 @@
1
+ import { Sight } from './sight';
1
2
  import { Firearm } from './firearm';
2
3
  import { GunCaliber } from "./gun-caliber";
3
4
  import { MillingDetail } from './milling-detail';
4
5
  import { ProjectType } from './project-type';
5
6
  import { RefinishDetail } from './refinish-detail';
6
7
  import { WaitlistGunPackageDetail } from './waitlist-gun-package-detail';
8
+ import { SlideAddon } from './slide-addon';
7
9
  export declare class WaitlistGun {
8
10
  id: number;
9
11
  firearm: Firearm;
@@ -18,7 +20,9 @@ export declare class WaitlistGun {
18
20
  milling: boolean;
19
21
  specialOrder: boolean;
20
22
  shippingLabel: boolean;
23
+ sights: Sight[];
21
24
  packageDetail: WaitlistGunPackageDetail;
25
+ slideAddons: SlideAddon[];
22
26
  refinishDetails: RefinishDetail[];
23
27
  millingDetail: MillingDetail;
24
28
  timestamp: string;
@@ -9,5 +9,6 @@ export declare enum WaitlistStatus {
9
9
  InShop = 7,
10
10
  Cancelled = 8,
11
11
  OnHold = 9,
12
- Voided = 10
12
+ Voided = 10,
13
+ Pending = 11
13
14
  }
Binary file