@autologix-engineering/shared 1.2.395 → 1.2.396
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 +2 -2
- package/src/lib/data-transfer-objects/src/update.global.config.dto.d.ts +2 -0
- package/src/lib/data-transfer-objects/src/update.global.config.dto.js +11 -0
- package/src/lib/data-transfer-objects/src/update.global.config.dto.js.map +1 -1
- package/src/lib/enums/src/internal.alert.type.map.d.ts +9 -1
- package/src/lib/enums/src/internal.alert.type.map.js +11 -1
- package/src/lib/enums/src/internal.alert.type.map.js.map +1 -1
- package/src/lib/models/src/configurations.model.d.ts +22 -1
- package/src/lib/models/src/configurations.model.js +19 -0
- package/src/lib/models/src/configurations.model.js.map +1 -1
- package/src/lib/utilities/src/ba.contract.lock.d.ts +17 -9
- package/src/lib/utilities/src/ba.contract.lock.js +23 -14
- package/src/lib/utilities/src/ba.contract.lock.js.map +1 -1
- package/src/lib/utilities/src/find.primary.passenger.pickup.d.ts +14 -0
- package/src/lib/utilities/src/find.primary.passenger.pickup.js +25 -0
- package/src/lib/utilities/src/find.primary.passenger.pickup.js.map +1 -0
- package/src/lib/utilities/src/index.d.ts +1 -0
- package/src/lib/utilities/src/index.js +1 -0
- package/src/lib/utilities/src/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autologix-engineering/shared",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.396",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.3.0"
|
|
6
6
|
},
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
"author": "autologix-engineering",
|
|
15
15
|
"types": "./src/index.d.ts",
|
|
16
16
|
"module": "./src/index.js"
|
|
17
|
-
}
|
|
17
|
+
}
|
|
@@ -107,4 +107,6 @@ export declare class UpdateGlobalConfigDTO {
|
|
|
107
107
|
sendBookingCancellationAlertForFleetOperatorDuties?: boolean;
|
|
108
108
|
ltrSignOffMethod?: TripAuthType;
|
|
109
109
|
ltrAllowSkipOtp?: boolean;
|
|
110
|
+
hideEscortForAirportTransfer?: boolean;
|
|
111
|
+
hideEscortAirportAllowedClients?: string[];
|
|
110
112
|
}
|
|
@@ -470,4 +470,15 @@ __decorate([
|
|
|
470
470
|
IsOptional(),
|
|
471
471
|
__metadata("design:type", Boolean)
|
|
472
472
|
], UpdateGlobalConfigDTO.prototype, "ltrAllowSkipOtp", void 0);
|
|
473
|
+
__decorate([
|
|
474
|
+
IsBoolean(),
|
|
475
|
+
IsOptional(),
|
|
476
|
+
__metadata("design:type", Boolean)
|
|
477
|
+
], UpdateGlobalConfigDTO.prototype, "hideEscortForAirportTransfer", void 0);
|
|
478
|
+
__decorate([
|
|
479
|
+
IsArray(),
|
|
480
|
+
IsUUID(undefined, { each: true }),
|
|
481
|
+
IsOptional(),
|
|
482
|
+
__metadata("design:type", Array)
|
|
483
|
+
], UpdateGlobalConfigDTO.prototype, "hideEscortAirportAllowedClients", void 0);
|
|
473
484
|
//# sourceMappingURL=update.global.config.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.global.config.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/update.global.config.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EACN,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EAErB,QAAQ,EACR,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,GACtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EACN,OAAO,EACP,SAAS,EACT,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,MAAM,EACN,GAAG,EACH,cAAc,GACd,MAAM,iBAAiB,CAAC;AAEzB,2EAA2E;AAC3E,wEAAwE;AACxE,2EAA2E;AAC3E,wDAAwD;AACxD,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,MAAM,CAC3E,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,mBAAmB,CAAC,SAAS,CAChD,CAAC;AACF,MAAM,OAAO,yBAAyB;CAMrC;AAJA;IADC,MAAM,EAAE;;4DACS;AAGlB;IADC,QAAQ,EAAE;;mEAC4D;AAGxE,MAAM,OAAO,gBAAgB;IAY5B,YAAY,IAAgC;QAC3C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC3B,CAAC;CACD;AAbA;IADC,QAAQ,EAAE;;mDACO;AAIlB;IAFC,QAAQ,EAAE;IACV,SAAS,CAAC,MAAM,CAAC;;kDACD;AAIjB;IAFC,QAAQ,EAAE;IACV,SAAS,CAAC,MAAM,CAAC;;mDACA;AAOnB,MAAM,OAAO,sBAAsB;IAOlC,YAAY,IAAsC;QACjD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC3B,CAAC;CACD;AARA;IADC,QAAQ,EAAE;;0DACQ;AAGnB;IADC,SAAS,EAAE;;yDACO;AAOpB,MAAM,OAAO,uBAAuB;IAgBnC,YAAY,IAAuC;QAClD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC3B,CAAC;CACD;AAjBA;IADC,QAAQ,EAAE;;sDACG;AAId;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;yDACO;AAInB;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;uDACK;AAIjB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;4DACU;AAOtB,MAAM,OAAO,qBAAqB;
|
|
1
|
+
{"version":3,"file":"update.global.config.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/update.global.config.dto.ts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AAY,CAAC;IACpB,UAAU,EAAE;;+DACmB;AAIhC;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;8DACa;AAS1B;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;2EAC0B;AAKvC;IAHC,OAAO,EAAE;IACT,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACjC,UAAU,EAAE;;8EAC8B"}
|
|
@@ -5,6 +5,14 @@ export declare const InternalAlertTypeMap: Record<InternalAlertFeature, Internal
|
|
|
5
5
|
* NRT / Work Order alerts that filter records by how long they have been in
|
|
6
6
|
* their current status ("days in status"). For these, an `After` trigger is the
|
|
7
7
|
* minimum days in status (`triggerValue`), and `Repeat Every` is the send
|
|
8
|
-
* schedule. No other trigger type applies
|
|
8
|
+
* schedule. No other trigger type applies, except `Real Time` for the types in
|
|
9
|
+
* RealTimeDaysInStatusAlertTypes.
|
|
9
10
|
*/
|
|
10
11
|
export declare const DaysInStatusAlertTypes: InternalAlertType[];
|
|
12
|
+
/**
|
|
13
|
+
* Days-in-status alerts that can also carry a `Real Time` trigger: the mail is
|
|
14
|
+
* sent by the action that puts the record in the status (Work Order On Hold:
|
|
15
|
+
* UpdateWorkOrderStatus), independently of any After / Repeat Every reminder.
|
|
16
|
+
* With a Real Time trigger, Repeat Every is optional.
|
|
17
|
+
*/
|
|
18
|
+
export declare const RealTimeDaysInStatusAlertTypes: InternalAlertType[];
|
|
@@ -70,7 +70,8 @@ export const InternalAlertTypeMap = {
|
|
|
70
70
|
* NRT / Work Order alerts that filter records by how long they have been in
|
|
71
71
|
* their current status ("days in status"). For these, an `After` trigger is the
|
|
72
72
|
* minimum days in status (`triggerValue`), and `Repeat Every` is the send
|
|
73
|
-
* schedule. No other trigger type applies
|
|
73
|
+
* schedule. No other trigger type applies, except `Real Time` for the types in
|
|
74
|
+
* RealTimeDaysInStatusAlertTypes.
|
|
74
75
|
*/
|
|
75
76
|
export const DaysInStatusAlertTypes = [
|
|
76
77
|
InternalAlertType.OpenNRT,
|
|
@@ -79,4 +80,13 @@ export const DaysInStatusAlertTypes = [
|
|
|
79
80
|
InternalAlertType.WorkOrderPendingApproval,
|
|
80
81
|
InternalAlertType.WorkOrderOnHold,
|
|
81
82
|
];
|
|
83
|
+
/**
|
|
84
|
+
* Days-in-status alerts that can also carry a `Real Time` trigger: the mail is
|
|
85
|
+
* sent by the action that puts the record in the status (Work Order On Hold:
|
|
86
|
+
* UpdateWorkOrderStatus), independently of any After / Repeat Every reminder.
|
|
87
|
+
* With a Real Time trigger, Repeat Every is optional.
|
|
88
|
+
*/
|
|
89
|
+
export const RealTimeDaysInStatusAlertTypes = [
|
|
90
|
+
InternalAlertType.WorkOrderOnHold,
|
|
91
|
+
];
|
|
82
92
|
//# sourceMappingURL=internal.alert.type.map.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.alert.type.map.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/internal.alert.type.map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,MAAM,CAAC,MAAM,oBAAoB,GAG7B;IACH,CAAC,oBAAoB,CAAC,OAAO,CAAC,EAAE;QAC/B,iBAAiB,CAAC,aAAa;QAC/B,iBAAiB,CAAC,WAAW;QAC7B,iBAAiB,CAAC,mBAAmB;KACrC;IACD,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,EAAE;QAC1C,iBAAiB,CAAC,sBAAsB;QACxC,iBAAiB,CAAC,cAAc;QAChC,iBAAiB,CAAC,mBAAmB;QACrC,iBAAiB,CAAC,iBAAiB;KACnC;IACD,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE;QAChC,iBAAiB,CAAC,QAAQ;QAC1B,iBAAiB,CAAC,gBAAgB;QAClC,iBAAiB,CAAC,UAAU;QAC5B,iBAAiB,CAAC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,CAAC,WAAW;QAC7B,iBAAiB,CAAC,wBAAwB;QAC1C,iBAAiB,CAAC,eAAe;KACjC;CACD,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"internal.alert.type.map.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/internal.alert.type.map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,MAAM,CAAC,MAAM,oBAAoB,GAG7B;IACH,CAAC,oBAAoB,CAAC,OAAO,CAAC,EAAE;QAC/B,iBAAiB,CAAC,aAAa;QAC/B,iBAAiB,CAAC,WAAW;QAC7B,iBAAiB,CAAC,mBAAmB;KACrC;IACD,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,EAAE;QAC1C,iBAAiB,CAAC,sBAAsB;QACxC,iBAAiB,CAAC,cAAc;QAChC,iBAAiB,CAAC,mBAAmB;QACrC,iBAAiB,CAAC,iBAAiB;KACnC;IACD,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE;QAChC,iBAAiB,CAAC,QAAQ;QAC1B,iBAAiB,CAAC,gBAAgB;QAClC,iBAAiB,CAAC,UAAU;QAC5B,iBAAiB,CAAC,qBAAqB;QACvC,iBAAiB,CAAC,kBAAkB;QACpC,iBAAiB,CAAC,cAAc;QAChC,iBAAiB,CAAC,cAAc;QAChC,iBAAiB,CAAC,MAAM;QACxB,iBAAiB,CAAC,eAAe;QACjC,iBAAiB,CAAC,gBAAgB;KAClC;IACD,CAAC,oBAAoB,CAAC,OAAO,CAAC,EAAE;QAC/B,iBAAiB,CAAC,WAAW;QAC7B,iBAAiB,CAAC,cAAc;QAChC,iBAAiB,CAAC,oBAAoB;QACtC,iBAAiB,CAAC,yBAAyB;QAC3C,iBAAiB,CAAC,eAAe;QACjC,iBAAiB,CAAC,qBAAqB;QACvC,iBAAiB,CAAC,sBAAsB;QACxC,iB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ationField {
|
|
|
181
181
|
SendBookingModificationAlertForFleetOperatorDuties = "sndBkngModAlrtFoDuties",
|
|
182
182
|
SendBookingCancellationAlertForFleetOperatorDuties = "sndBkngCnclAlrtFoDuties",
|
|
183
183
|
LTRSignOffMethod = "ltrSignOffMethod",
|
|
184
|
-
LTRAllowSkipOtp = "ltrAllowSkipOtp"
|
|
184
|
+
LTRAllowSkipOtp = "ltrAllowSkipOtp",
|
|
185
|
+
/**
|
|
186
|
+
* AD-3466 — hide the Escort section on Airport Transfer bookings.
|
|
187
|
+
*
|
|
188
|
+
* When true, the web booking forms (add.duty and duty.booking) hide the
|
|
189
|
+
* Escort section for every Airport Transfer booking and submit it with
|
|
190
|
+
* isEscortAvailable = false. The exception is a client listed in
|
|
191
|
+
* HideEscortAirportAllowedClients. The hide overrides a client's
|
|
192
|
+
* "Escort required by default" (ClientConfigurationField
|
|
193
|
+
* .EscortRequiredByDefault). NOT NULL DEFAULT false, so existing tenants
|
|
194
|
+
* keep today's behaviour. Partner and external booking APIs ignore it.
|
|
195
|
+
*/
|
|
196
|
+
HideEscortForAirportTransfer = "hdEscrtArprtTrnsfr",
|
|
197
|
+
/**
|
|
198
|
+
* AD-3466 — ClientPersonaIds (of this org) that keep the Escort section on
|
|
199
|
+
* Airport Transfer bookings while HideEscortForAirportTransfer is on. The
|
|
200
|
+
* global-config save requires at least one id when the toggle is on and
|
|
201
|
+
* clears the list when it is turned off.
|
|
202
|
+
*/
|
|
203
|
+
HideEscortAirportAllowedClients = "hdEscrtArprtAlwdClnts"
|
|
185
204
|
}
|
|
186
205
|
export interface IConfigurations extends TypedModel {
|
|
187
206
|
[ConfigurationField.ConfigurationId]: string;
|
|
@@ -315,6 +334,8 @@ export interface IConfigurations extends TypedModel {
|
|
|
315
334
|
[ConfigurationField.SendBookingCancellationAlertForFleetOperatorDuties]: boolean;
|
|
316
335
|
[ConfigurationField.LTRSignOffMethod]: TripAuthType;
|
|
317
336
|
[ConfigurationField.LTRAllowSkipOtp]: boolean;
|
|
337
|
+
[ConfigurationField.HideEscortForAirportTransfer]: boolean;
|
|
338
|
+
[ConfigurationField.HideEscortAirportAllowedClients]?: string[] | null;
|
|
318
339
|
}
|
|
319
340
|
export interface ISafetyAndCompliance {
|
|
320
341
|
[safetyAndComplianceFiled.RegistrationCertificate]: mandatoryOptional;
|
|
@@ -173,6 +173,25 @@ export var ConfigurationField;
|
|
|
173
173
|
ConfigurationField["SendBookingCancellationAlertForFleetOperatorDuties"] = "sndBkngCnclAlrtFoDuties";
|
|
174
174
|
ConfigurationField["LTRSignOffMethod"] = "ltrSignOffMethod";
|
|
175
175
|
ConfigurationField["LTRAllowSkipOtp"] = "ltrAllowSkipOtp";
|
|
176
|
+
/**
|
|
177
|
+
* AD-3466 — hide the Escort section on Airport Transfer bookings.
|
|
178
|
+
*
|
|
179
|
+
* When true, the web booking forms (add.duty and duty.booking) hide the
|
|
180
|
+
* Escort section for every Airport Transfer booking and submit it with
|
|
181
|
+
* isEscortAvailable = false. The exception is a client listed in
|
|
182
|
+
* HideEscortAirportAllowedClients. The hide overrides a client's
|
|
183
|
+
* "Escort required by default" (ClientConfigurationField
|
|
184
|
+
* .EscortRequiredByDefault). NOT NULL DEFAULT false, so existing tenants
|
|
185
|
+
* keep today's behaviour. Partner and external booking APIs ignore it.
|
|
186
|
+
*/
|
|
187
|
+
ConfigurationField["HideEscortForAirportTransfer"] = "hdEscrtArprtTrnsfr";
|
|
188
|
+
/**
|
|
189
|
+
* AD-3466 — ClientPersonaIds (of this org) that keep the Escort section on
|
|
190
|
+
* Airport Transfer bookings while HideEscortForAirportTransfer is on. The
|
|
191
|
+
* global-config save requires at least one id when the toggle is on and
|
|
192
|
+
* clears the list when it is turned off.
|
|
193
|
+
*/
|
|
194
|
+
ConfigurationField["HideEscortAirportAllowedClients"] = "hdEscrtArprtAlwdClnts";
|
|
176
195
|
})(ConfigurationField || (ConfigurationField = {}));
|
|
177
196
|
export var ApprovalLevelField;
|
|
178
197
|
(function (ApprovalLevelField) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurations.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/configurations.model.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"configurations.model.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/models/src/configurations.model.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,kBAiMX;AAjMD,WAAY,kBAAkB;IAC7B,yDAAmC,CAAA;IACnC,0DAAoC,CAAA;IACpC,8DAAwC,CAAA;IACxC,6DAAuC,CAAA;IACvC,8DAAwC,CAAA;IACxC,6CAAuB,CAAA;IACvB,+CAAyB,CAAA;IACzB,wCAAkB,CAAA;IAClB,yCAAmB,CAAA;IACnB,kDAA4B,CAAA;IAC5B,yDAAmC,CAAA;IACnC,qDAA+B,CAAA;IAC/B,+CAAyB,CAAA;IACzB,mEAA6C,CAAA;IAC7C,8CAAwB,CAAA;IACxB,oEAA8C,CAAA;IAC9C,gEAA0C,CAAA;IAC1C,kEAA4C,CAAA;IAC5C,qEAA+C,CAAA;IAC/C,0DAAoC,CAAA;IACpC,kEAA4C,CAAA;IAC5C,6CAAuB,CAAA;IACvB,sDAAgC,CAAA;IAChC,6CAAuB,CAAA;IACvB,8CAAwB,CAAA;IACxB,8CAAwB,CAAA;IACxB,+CAAyB,CAAA;IACzB,kDAA4B,CAAA;IAC5B,iDAA2B,CAAA;IAC3B,yDAAmC,CAAA;IACnC,+DAAyC,CAAA;IACzC,6CAAuB,CAAA;IACvB,qEAA+C,CAAA;IAC/C,qDAA+B,CAAA;IAC/B,+DAAyC,CAAA;IACzC,gFAA0D,CAAA;IAC1D,yFAAmE,CAAA;IACnE,6EAAuD,CAAA;IACvD,oDAA8B,CAAA;IAC9B;;;;;OAKG;IACH,kEAA4C,CAAA;IAC5C;;;;OAIG;IACH,iEAA2C,CAAA;IAC3C;;;;;;;;;;;;OAYG;IACH,s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M,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC5B,4CAAuB,CAAA;IACvB,0CAAqB,CAAA;AACtB,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAED,MAAM,CAAN,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IACnC,0DAA8B,CAAA;IAC9B,sDAA0B,CAAA;AAC3B,CAAC,EAHW,wBAAwB,KAAxB,wBAAwB,QAGnC"}
|
|
@@ -14,17 +14,25 @@ import { BAContractField, IBAContract } from '../../models/src/index';
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function isBAContractExpired(contract: IBAContract | null | undefined, now?: Date): boolean;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* Has the contract been cancelled or surrendered, and is therefore entirely
|
|
18
|
+
* read-only?
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* Both are final. Nothing on such a contract may be edited afterwards — the RM
|
|
21
|
+
* and SD refund fields are frozen along with everything else — and the update
|
|
22
|
+
* command refuses the request outright.
|
|
23
|
+
*/
|
|
24
|
+
export declare function isBAContractReadOnly(contract: IBAContract | null | undefined): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Has the contract expired, and is therefore read-only apart from the RM and
|
|
27
|
+
* SD refund fields?
|
|
28
|
+
*
|
|
29
|
+
* True when the contract is Inactive (where the expiry cron parks expired
|
|
30
|
+
* contracts), or still Active only because that cron has not run since its
|
|
31
|
+
* effective end day passed.
|
|
23
32
|
*
|
|
24
|
-
* Cancelled
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* its own.
|
|
33
|
+
* Cancelled and Surrendered are deliberately not here. The lock means
|
|
34
|
+
* "read-only except the refund fields", and those two are stricter than that:
|
|
35
|
+
* nothing on them may be edited at all. See `isBAContractReadOnly`.
|
|
28
36
|
*
|
|
29
37
|
* Inactive covers one case that is not strictly expiry — a contract
|
|
30
38
|
* deactivated because its business associate was switched off. Locking that is
|
|
@@ -106,17 +106,29 @@ export function isBAContractExpired(contract, now = new Date()) {
|
|
|
106
106
|
return endDay < istDayNumber(now);
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
110
|
-
*
|
|
109
|
+
* Has the contract been cancelled or surrendered, and is therefore entirely
|
|
110
|
+
* read-only?
|
|
111
111
|
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
112
|
+
* Both are final. Nothing on such a contract may be edited afterwards — the RM
|
|
113
|
+
* and SD refund fields are frozen along with everything else — and the update
|
|
114
|
+
* command refuses the request outright.
|
|
115
|
+
*/
|
|
116
|
+
export function isBAContractReadOnly(contract) {
|
|
117
|
+
const status = contract?.[BAContractField.Status];
|
|
118
|
+
return (status === BAContractStatus.Cancelled ||
|
|
119
|
+
status === BAContractStatus.Surrendered);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Has the contract expired, and is therefore read-only apart from the RM and
|
|
123
|
+
* SD refund fields?
|
|
115
124
|
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
125
|
+
* True when the contract is Inactive (where the expiry cron parks expired
|
|
126
|
+
* contracts), or still Active only because that cron has not run since its
|
|
127
|
+
* effective end day passed.
|
|
128
|
+
*
|
|
129
|
+
* Cancelled and Surrendered are deliberately not here. The lock means
|
|
130
|
+
* "read-only except the refund fields", and those two are stricter than that:
|
|
131
|
+
* nothing on them may be edited at all. See `isBAContractReadOnly`.
|
|
120
132
|
*
|
|
121
133
|
* Inactive covers one case that is not strictly expiry — a contract
|
|
122
134
|
* deactivated because its business associate was switched off. Locking that is
|
|
@@ -127,12 +139,9 @@ export function isBAContractExpired(contract, now = new Date()) {
|
|
|
127
139
|
export function isBAContractLocked(contract, now = new Date()) {
|
|
128
140
|
if (!contract)
|
|
129
141
|
return false;
|
|
130
|
-
|
|
131
|
-
if (status === BAContractStatus.Cancelled)
|
|
142
|
+
if (isBAContractReadOnly(contract))
|
|
132
143
|
return false;
|
|
133
|
-
if (
|
|
134
|
-
return true;
|
|
135
|
-
if (status === BAContractStatus.InActive)
|
|
144
|
+
if (contract?.[BAContractField.Status] === BAContractStatus.InActive)
|
|
136
145
|
return true;
|
|
137
146
|
return isBAContractExpired(contract, now);
|
|
138
147
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ba.contract.lock.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/utilities/src/ba.contract.lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAe,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,UAAU,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEvC;;;;;;;;;;;;GAYG;AACH,SAAS,YAAY,CAAC,OAAa;IAClC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,aAAa,CAAC,GAAG,UAAU,CAAC,CAAC;AACrE,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,SAAS,eAAe,CAAC,QAAqB;IAC7C,MAAM,MAAM,GAAG,QAAQ,EAAE,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;IAC3D,MAAM,YAAY,GAAG,QAAQ,EAAE,CAAC,eAAe,CAAC,sBAAsB,CAAC,CAAC;IAExE,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,KAAK,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC;QAC1C,IAAI,CAAC,GAAG;YAAE,SAAS;QACnB,MAAM,MAAM,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7B,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YAAE,SAAS;QACtC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACjC,CAAC;IAED,IAAI,CAAC,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IAC9B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,mBAAmB,CAClC,QAAwC,EACxC,MAAY,IAAI,IAAI,EAAE;IAEtB,IAAI,CAAC,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5B,MAAM,MAAM,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IACzC,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAClC,OAAO,MAAM,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;AACnC,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"ba.contract.lock.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/utilities/src/ba.contract.lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAe,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,UAAU,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEvC;;;;;;;;;;;;GAYG;AACH,SAAS,YAAY,CAAC,OAAa;IAClC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,aAAa,CAAC,GAAG,UAAU,CAAC,CAAC;AACrE,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,SAAS,eAAe,CAAC,QAAqB;IAC7C,MAAM,MAAM,GAAG,QAAQ,EAAE,CAAC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AAY,IAAI,IAAI,EAAE;IAEtB,IAAI,CAAC,QAAQ;QAAE,OAAO,KAAK,CAAC;IAE5B,IAAI,oBAAoB,CAAC,QAAQ,CAAC;QAAE,OAAO,KAAK,CAAC;IAEjD,IAAI,QAAQ,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,gBAAgB,CAAC,QAAQ;QACnE,OAAO,IAAI,CAAC;IAEb,OAAO,mBAAmB,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AAC3C,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAsB;IAClE,eAAe,CAAC,QAAQ;IACxB,eAAe,CAAC,QAAQ;IACxB,eAAe,CAAC,YAAY;IAC5B,eAAe,CAAC,SAAS;IACzB,eAAe,CAAC,QAAQ;IACxB,eAAe,CAAC,YAAY;IAC5B,eAAe,CAAC,UAAU;IAC1B,eAAe,CAAC,aAAa;CAC7B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IPickupRequest, IRequest } from '@autologix/shared/models';
|
|
2
|
+
/**
|
|
3
|
+
* Finds the pickup stop the booking's primary passenger boards at — the stop
|
|
4
|
+
* that decides the reporting address. The primary passenger is not necessarily
|
|
5
|
+
* picked up first, so this can be any stop on the route; when they are listed
|
|
6
|
+
* on more than one, the earliest by {@link PickupRequestField.Order} wins.
|
|
7
|
+
*
|
|
8
|
+
* Returns null when the booking has no primary passenger, or when that
|
|
9
|
+
* passenger is not on any stop. Callers fall back to their first-pickup logic
|
|
10
|
+
* in that case.
|
|
11
|
+
*
|
|
12
|
+
* Needs `pickups` loaded with their `psngrPersonas`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function findPrimaryPassengerPickup(request: IRequest | null | undefined): IPickupRequest | null;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PassengerPersonaField, PickupRequestField, RequestField, } from '@autologix/shared/models';
|
|
2
|
+
/**
|
|
3
|
+
* Finds the pickup stop the booking's primary passenger boards at — the stop
|
|
4
|
+
* that decides the reporting address. The primary passenger is not necessarily
|
|
5
|
+
* picked up first, so this can be any stop on the route; when they are listed
|
|
6
|
+
* on more than one, the earliest by {@link PickupRequestField.Order} wins.
|
|
7
|
+
*
|
|
8
|
+
* Returns null when the booking has no primary passenger, or when that
|
|
9
|
+
* passenger is not on any stop. Callers fall back to their first-pickup logic
|
|
10
|
+
* in that case.
|
|
11
|
+
*
|
|
12
|
+
* Needs `pickups` loaded with their `psngrPersonas`.
|
|
13
|
+
*/
|
|
14
|
+
export function findPrimaryPassengerPickup(request) {
|
|
15
|
+
const primaryPassengerId = request?.[RequestField.PrimaryPassengerId] ??
|
|
16
|
+
request?.[RequestField.PrimaryPassenger]?.[PassengerPersonaField.PassengerPersonaId];
|
|
17
|
+
if (!primaryPassengerId) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
const sortedPickups = [...(request?.[RequestField.Pickups] ?? [])].sort((a, b) => (a?.[PickupRequestField.Order] ?? 0) -
|
|
21
|
+
(b?.[PickupRequestField.Order] ?? 0));
|
|
22
|
+
return (sortedPickups.find((_pkp) => _pkp?.[PickupRequestField.PassengerPersonas]?.some((_pp) => _pp?.[PassengerPersonaField.PassengerPersonaId] ===
|
|
23
|
+
primaryPassengerId)) ?? null);
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=find.primary.passenger.pickup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find.primary.passenger.pickup.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/utilities/src/find.primary.passenger.pickup.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,GACZ,MAAM,0BAA0B,CAAC;AAElC;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,0BAA0B,CACzC,OAAoC;IAEpC,MAAM,kBAAkB,GACvB,OAAO,EAAE,CAAC,YAAY,CAAC,kBAAkB,CAAC;QAC1C,OAAO,EAAE,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE,CACzC,qBAAqB,CAAC,kBAAkB,CACxC,CAAC;IACH,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACb,CAAC;IACD,MAAM,aAAa,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CACtE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACR,CAAC,CAAC,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC,CAAC,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CACrC,CAAC;IACF,OAAO,CACN,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAC3B,IAAI,EAAE,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,EAAE,IAAI,CACjD,CAAC,GAAG,EAAE,EAAE,CACP,GAAG,EAAE,CAAC,qBAAqB,CAAC,kBAAkB,CAAC;QAC/C,kBAAkB,CACnB,CACD,IAAI,IAAI,CACT,CAAC;AACH,CAAC"}
|
|
@@ -15,6 +15,7 @@ export * from './validate.password.regex';
|
|
|
15
15
|
export * from './aes.encryption';
|
|
16
16
|
export * from './bill.matrix.request.util';
|
|
17
17
|
export * from './build.request.guests.in.pickup.order';
|
|
18
|
+
export * from './find.primary.passenger.pickup';
|
|
18
19
|
export * from './dedupe.email.recipients';
|
|
19
20
|
export * from './ist';
|
|
20
21
|
export * from './ltr.cycle.month.index';
|
|
@@ -15,6 +15,7 @@ export * from './validate.password.regex';
|
|
|
15
15
|
export * from './aes.encryption';
|
|
16
16
|
export * from './bill.matrix.request.util';
|
|
17
17
|
export * from './build.request.guests.in.pickup.order';
|
|
18
|
+
export * from './find.primary.passenger.pickup';
|
|
18
19
|
export * from './dedupe.email.recipients';
|
|
19
20
|
export * from './ist';
|
|
20
21
|
export * from './ltr.cycle.month.index';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/utilities/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,YAAY,CAAC;AAC3B,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,OAAO,CAAC;AACtB,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC;AACrC,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uCAAuC,CAAC;AACtD,cAAc,mBAAmB,CAAC;AAClC,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/utilities/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,YAAY,CAAC;AAC3B,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,OAAO,CAAC;AACtB,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,s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