@autologix-engineering/shared 1.0.950 → 1.0.951

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autologix-engineering/shared",
3
- "version": "1.0.950",
3
+ "version": "1.0.951",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0"
6
6
  },
@@ -1,9 +1,14 @@
1
- import { LTRBillingType, LTRConfigBillingType } from '../../enums/src/index';
1
+ import { LTRBillingType, KMBillingType, BillingMethod } from '../../enums/src/index';
2
2
  export declare class UpdateLTRConfigurationDTO {
3
3
  clientPersonaId: string;
4
4
  contextOwnerId: string;
5
- billingType: LTRBillingType;
6
- configBillingType?: LTRConfigBillingType;
5
+ kmBillingType: KMBillingType;
6
+ ltrBillingType?: LTRBillingType;
7
+ billingMethod?: BillingMethod;
8
+ extraDistance?: number;
9
+ extraTime?: number;
10
+ fixedAmount?: number;
11
+ isFixedAmount?: boolean;
7
12
  basicRentalConsolidation: boolean;
8
13
  addOnsConsolidation: boolean;
9
14
  advanceBillingAllowed: boolean;
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { IsUUID, IsNumber, IsBoolean, IsOptional, IsEnum, } from 'class-validator';
3
- import { LTRBillingType, LTRConfigBillingType } from '../../enums/src/index';
3
+ import { LTRBillingType, KMBillingType, BillingMethod, } from '../../enums/src/index';
4
4
  export class UpdateLTRConfigurationDTO {
5
5
  constructor(obj) {
6
6
  Object.assign(this, obj);
@@ -15,14 +15,39 @@ __decorate([
15
15
  __metadata("design:type", String)
16
16
  ], UpdateLTRConfigurationDTO.prototype, "contextOwnerId", void 0);
17
17
  __decorate([
18
+ IsEnum(KMBillingType),
19
+ __metadata("design:type", String)
20
+ ], UpdateLTRConfigurationDTO.prototype, "kmBillingType", void 0);
21
+ __decorate([
22
+ IsOptional(),
18
23
  IsEnum(LTRBillingType),
19
24
  __metadata("design:type", String)
20
- ], UpdateLTRConfigurationDTO.prototype, "billingType", void 0);
25
+ ], UpdateLTRConfigurationDTO.prototype, "ltrBillingType", void 0);
21
26
  __decorate([
22
27
  IsOptional(),
23
- IsEnum(LTRConfigBillingType),
28
+ IsEnum(BillingMethod),
24
29
  __metadata("design:type", String)
25
- ], UpdateLTRConfigurationDTO.prototype, "configBillingType", void 0);
30
+ ], UpdateLTRConfigurationDTO.prototype, "billingMethod", void 0);
31
+ __decorate([
32
+ IsOptional(),
33
+ IsNumber(),
34
+ __metadata("design:type", Number)
35
+ ], UpdateLTRConfigurationDTO.prototype, "extraDistance", void 0);
36
+ __decorate([
37
+ IsOptional(),
38
+ IsNumber(),
39
+ __metadata("design:type", Number)
40
+ ], UpdateLTRConfigurationDTO.prototype, "extraTime", void 0);
41
+ __decorate([
42
+ IsOptional(),
43
+ IsNumber(),
44
+ __metadata("design:type", Number)
45
+ ], UpdateLTRConfigurationDTO.prototype, "fixedAmount", void 0);
46
+ __decorate([
47
+ IsOptional(),
48
+ IsBoolean(),
49
+ __metadata("design:type", Boolean)
50
+ ], UpdateLTRConfigurationDTO.prototype, "isFixedAmount", void 0);
26
51
  __decorate([
27
52
  IsBoolean(),
28
53
  __metadata("design:type", Boolean)
@@ -1 +1 @@
1
- {"version":3,"file":"update.ltr.configuration.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/update.ltr.configuration.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,MAAM,EACN,QAAQ,EACR,SAAS,EACT,UAAU,EACV,MAAM,GACN,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7E,MAAM,OAAO,yBAAyB;IAmCrC,YAAY,GAAwC;QACnD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1B,CAAC;CACD;AApCA;IADC,MAAM,EAAE;;kEACe;AAGxB;IADC,MAAM,EAAE;;iEACc;AAGvB;IADC,MAAM,CAAC,cAAc,CAAC;;8DACK;AAI5B;IAFC,UAAU,EAAE;IACZ,MAAM,CAAC,oBAAoB,CAAC;;oEACY;AAGzC;IADC,SAAS,EAAE;;2EACsB;AAGlC;IADC,SAAS,EAAE;;sEACiB;AAG7B;IADC,SAAS,EAAE;;wEACmB;AAI/B;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;iFAC6B;AAIxC;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;4EACwB;AAInC;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;8EAC0B"}
1
+ {"version":3,"file":"update.ltr.configuration.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/update.ltr.configuration.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,MAAM,EACN,QAAQ,EACR,SAAS,EACT,UAAU,EACV,MAAM,GACN,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,cAAc,EACd,aAAa,EACb,aAAa,GACb,MAAM,uBAAuB,CAAC;AAE/B,MAAM,OAAO,yBAAyB;IAuDrC,YAAY,GAAwC;QACnD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1B,CAAC;CACD;AAxDA;IADC,MAAM,EAAE;;kEACe;AAGxB;IADC,MAAM,EAAE;;iEACc;AAGvB;IADC,MAAM,CAAC,aAAa,CAAC;;gEACO;AAI7B;IAFC,UAAU,EAAE;IACZ,MAAM,CAAC,cAAc,CAAC;;iEACS;AAIhC;IAFC,UAAU,EAAE;IACZ,MAAM,CAAC,aAAa,CAAC;;gEACQ;AAI9B;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;gEACY;AAIvB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;4DACQ;AAInB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;8DACU;AAIrB;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;gEACY;AAGxB;IADC,SAAS,EAAE;;2EACsB;AAGlC;IADC,SAAS,EAAE;;sEACiB;AAG7B;IADC,SAAS,EAAE;;wEACmB;AAI/B;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;iFAC6B;AAIxC;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;4EACwB;AAInC;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;8EAC0B"}
@@ -1,8 +1,9 @@
1
- export declare enum LTRBillingType {
2
- VehicleBased = "Vehicle Based",
3
- ClientBased = "Client Based"
1
+ export declare enum KMBillingType {
2
+ VehicleLevel = "Vehicle Level",
3
+ ClientLevel = "Client Level",
4
+ CityLevel = "City Level"
4
5
  }
5
- export declare enum LTRConfigBillingType {
6
+ export declare enum LTRBillingType {
6
7
  PtoP = "P to P Billing with Extras",
7
8
  GtoG = "G to G Billing"
8
9
  }
@@ -1,11 +1,12 @@
1
+ export var KMBillingType;
2
+ (function (KMBillingType) {
3
+ KMBillingType["VehicleLevel"] = "Vehicle Level";
4
+ KMBillingType["ClientLevel"] = "Client Level";
5
+ KMBillingType["CityLevel"] = "City Level";
6
+ })(KMBillingType || (KMBillingType = {}));
1
7
  export var LTRBillingType;
2
8
  (function (LTRBillingType) {
3
- LTRBillingType["VehicleBased"] = "Vehicle Based";
4
- LTRBillingType["ClientBased"] = "Client Based";
9
+ LTRBillingType["PtoP"] = "P to P Billing with Extras";
10
+ LTRBillingType["GtoG"] = "G to G Billing";
5
11
  })(LTRBillingType || (LTRBillingType = {}));
6
- export var LTRConfigBillingType;
7
- (function (LTRConfigBillingType) {
8
- LTRConfigBillingType["PtoP"] = "P to P Billing with Extras";
9
- LTRConfigBillingType["GtoG"] = "G to G Billing";
10
- })(LTRConfigBillingType || (LTRConfigBillingType = {}));
11
12
  //# sourceMappingURL=ltr.billing.type.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ltr.billing.type.enum.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/ltr.billing.type.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,gDAA8B,CAAA;IAC9B,8CAA4B,CAAA;AAC7B,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAED,MAAM,CAAN,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC/B,2DAAmC,CAAA;IACnC,+CAAuB,CAAA;AACxB,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B"}
1
+ {"version":3,"file":"ltr.billing.type.enum.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/ltr.billing.type.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACxB,+CAA8B,CAAA;IAC9B,6CAA4B,CAAA;IAC5B,yCAAwB,CAAA;AACzB,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAED,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,qDAAmC,CAAA;IACnC,yCAAuB,CAAA;AACxB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB"}
@@ -1,25 +1,37 @@
1
- import { LTRConfigBillingType } from '@autologix/shared/enums';
1
+ import { BillingMethod, KMBillingType, LTRBillingType } from '@autologix/shared/enums';
2
2
  import { IClientPersona } from './client.persona.model';
3
3
  import { TypedModel } from './typed.model';
4
4
  export declare enum LTRConfigurationField {
5
5
  LTRConfigurationId = "ltrConfigurationId",
6
6
  ClientPersona = "clientPersona",
7
7
  ClientPersonaId = "clientPersonaId",
8
- BillingType = "billingType",
8
+ KmBillingType = "kmBillingType",
9
9
  LTRBillingType = "ltrBillingType",
10
+ BillingMethod = "billingMethod",
11
+ SelectedGarageId = "selectedGarageId",
12
+ ApplyDayWise = "applyDayWise",
13
+ ExtraDistance = "extraDistance",
14
+ ExtraTime = "extraTime",
15
+ FixedAmount = "fixedAmount",
10
16
  BasicRentalConsolidation = "basicRentalConsolidation",
11
17
  AddOnsConsolidation = "addOnsConsolidation",
12
18
  AdvanceBillingAllowed = "advanceBillingAllowed",
13
19
  BasicRentalConsolidationPeriod = "basicRentalConsolidationPeriod",
14
20
  AddOnsConsolidationPeriod = "addOnsConsolidationPeriod",
15
- AdvanceBillingAllowedPeriod = "advanceBillingAllowedPeriod"
21
+ AdvanceBillingAllowedPeriod = "advanceBillingAllowedPeriod",
22
+ IsFixedAmount = "isFixedAmount"
16
23
  }
17
24
  export interface ILTRConfiguration extends TypedModel {
18
25
  [LTRConfigurationField.LTRConfigurationId]: string;
19
26
  [LTRConfigurationField.ClientPersona]: IClientPersona;
20
27
  [LTRConfigurationField.ClientPersonaId]: string;
21
- [LTRConfigurationField.BillingType]: string;
22
- [LTRConfigurationField.LTRBillingType]: LTRConfigBillingType;
28
+ [LTRConfigurationField.KmBillingType]: KMBillingType;
29
+ [LTRConfigurationField.LTRBillingType]: LTRBillingType;
30
+ [LTRConfigurationField.BillingMethod]: BillingMethod;
31
+ [LTRConfigurationField.ExtraDistance]: number;
32
+ [LTRConfigurationField.ExtraTime]: number;
33
+ [LTRConfigurationField.FixedAmount]: number;
34
+ [LTRConfigurationField.IsFixedAmount]: boolean;
23
35
  [LTRConfigurationField.BasicRentalConsolidation]: boolean;
24
36
  [LTRConfigurationField.AddOnsConsolidation]: boolean;
25
37
  [LTRConfigurationField.AdvanceBillingAllowed]: boolean;
@@ -3,13 +3,20 @@ export var LTRConfigurationField;
3
3
  LTRConfigurationField["LTRConfigurationId"] = "ltrConfigurationId";
4
4
  LTRConfigurationField["ClientPersona"] = "clientPersona";
5
5
  LTRConfigurationField["ClientPersonaId"] = "clientPersonaId";
6
- LTRConfigurationField["BillingType"] = "billingType";
6
+ LTRConfigurationField["KmBillingType"] = "kmBillingType";
7
7
  LTRConfigurationField["LTRBillingType"] = "ltrBillingType";
8
+ LTRConfigurationField["BillingMethod"] = "billingMethod";
9
+ LTRConfigurationField["SelectedGarageId"] = "selectedGarageId";
10
+ LTRConfigurationField["ApplyDayWise"] = "applyDayWise";
11
+ LTRConfigurationField["ExtraDistance"] = "extraDistance";
12
+ LTRConfigurationField["ExtraTime"] = "extraTime";
13
+ LTRConfigurationField["FixedAmount"] = "fixedAmount";
8
14
  LTRConfigurationField["BasicRentalConsolidation"] = "basicRentalConsolidation";
9
15
  LTRConfigurationField["AddOnsConsolidation"] = "addOnsConsolidation";
10
16
  LTRConfigurationField["AdvanceBillingAllowed"] = "advanceBillingAllowed";
11
17
  LTRConfigurationField["BasicRentalConsolidationPeriod"] = "basicRentalConsolidationPeriod";
12
18
  LTRConfigurationField["AddOnsConsolidationPeriod"] = "addOnsConsolidationPeriod";
13
19
  LTRConfigurationField["AdvanceBillingAllowedPeriod"] = "advanceBillingAllowedPeriod";
20
+ LTRConfigurationField["IsFixedAmount"] = "isFixedAmount";
14
21
  })(LTRConfigurationField || (LTRConfigurationField = {}));
15
22
  //# sourceMappingURL=ltr.configuration.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ltr.configuration.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/ltr.configuration.model.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,qBAYX;AAZD,WAAY,qBAAqB;IAChC,kEAAyC,CAAA;IACzC,wDAA+B,CAAA;IAC/B,4DAAmC,CAAA;IACnC,oDAA2B,CAAA;IAC3B,0DAAiC,CAAA;IACjC,8EAAqD,CAAA;IACrD,oEAA2C,CAAA;IAC3C,wEAA+C,CAAA;IAC/C,0FAAiE,CAAA;IACjE,gFAAuD,CAAA;IACvD,oFAA2D,CAAA;AAC5D,CAAC,EAZW,qBAAqB,KAArB,qBAAqB,QAYhC"}
1
+ {"version":3,"file":"ltr.configuration.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/ltr.configuration.model.ts"],"names":[],"mappings":"AAQA,MAAM,CAAN,IAAY,qBAmBX;AAnBD,WAAY,qBAAqB;IAChC,kEAAyC,CAAA;IACzC,wDAA+B,CAAA;IAC/B,4DAAmC,CAAA;IACnC,wDAA+B,CAAA;IAC/B,0DAAiC,CAAA;IACjC,wDAA+B,CAAA;IAC/B,8DAAqC,CAAA;IACrC,sDAA6B,CAAA;IAC7B,wDAA+B,CAAA;IAC/B,gDAAuB,CAAA;IACvB,oDAA2B,CAAA;IAC3B,8EAAqD,CAAA;IACrD,oEAA2C,CAAA;IAC3C,wEAA+C,CAAA;IAC/C,0FAAiE,CAAA;IACjE,gFAAuD,CAAA;IACvD,oFAA2D,CAAA;IAC3D,wDAA+B,CAAA;AAChC,CAAC,EAnBW,qBAAqB,KAArB,qBAAqB,QAmBhC"}