@autologix-engineering/shared 1.2.353 → 1.2.354

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.2.353",
3
+ "version": "1.2.354",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0"
6
6
  },
@@ -2,22 +2,36 @@ import { GenericStatus } from '../../enums/src/index';
2
2
  /** Longest reason text the dialog will accept. */
3
3
  export declare const VENDOR_CITY_STATUS_REASON_MAX_LENGTH = 255;
4
4
  /**
5
- * Marks one city Active / Inactive for a vendor (AD-3211).
5
+ * Marks one Operational Info row Active / Inactive for a vendor (AD-3211).
6
6
  *
7
- * The Operational Info tab can hold several rows for the same city (one per
8
- * business type), so this command deliberately keys on (vendor, city) and flips
9
- * every row for that pair the user acts on a *city*, not on a business-type
10
- * row.
7
+ * Keyed on (vendor, city, businessType) one row of the grid, which is what
8
+ * the user actually clicked. An earlier version keyed on (vendor, city) alone
9
+ * and flipped every business type for that city together; a vendor serving a
10
+ * city under five arrangements lost all five from one click, all stamped with
11
+ * the same reason. Roughly a quarter of configured vendor-cities carry more
12
+ * than one business type, so that was not a rare case.
13
+ *
14
+ * `businessType` is required rather than optional on purpose: an omitted value
15
+ * would otherwise widen the command back to every row for the city, which is
16
+ * the exact bug this replaced.
11
17
  *
12
18
  * `remark` carries the reason text, picked from the global
13
19
  * `ReasonMaster.VendorCityStatus` list or typed free-hand. It is the same shape
14
20
  * every other status-reason flow in the product uses (vendor, driver and city
15
21
  * profile status all store the chosen reason as text), so there is no reason id
16
- * to resolve and no second master list to keep in step.
22
+ * to resolve and no second master list to keep in step. It is recorded against
23
+ * the single row this command touches, so each business type keeps the reason
24
+ * it was actually withdrawn for.
17
25
  */
18
26
  export declare class UpdateVendorCityStatusDto {
19
27
  vendorPersonaId: string;
20
28
  cityId: string;
29
+ /**
30
+ * The Operational Info row's business type, e.g. `Rate Card (RC)`. Matches
31
+ * `VendorOperations.bizType`, which stores the plain label rather than an
32
+ * enum key, so this is a string and not `@IsEnum`.
33
+ */
34
+ businessType: string;
21
35
  status: GenericStatus;
22
36
  /** Required when marking Inactive; ignored when reactivating. */
23
37
  remark?: string;
@@ -5,18 +5,26 @@ import { GenericStatus } from '../../enums/src/index';
5
5
  /** Longest reason text the dialog will accept. */
6
6
  export const VENDOR_CITY_STATUS_REASON_MAX_LENGTH = 255;
7
7
  /**
8
- * Marks one city Active / Inactive for a vendor (AD-3211).
8
+ * Marks one Operational Info row Active / Inactive for a vendor (AD-3211).
9
9
  *
10
- * The Operational Info tab can hold several rows for the same city (one per
11
- * business type), so this command deliberately keys on (vendor, city) and flips
12
- * every row for that pair the user acts on a *city*, not on a business-type
13
- * row.
10
+ * Keyed on (vendor, city, businessType) one row of the grid, which is what
11
+ * the user actually clicked. An earlier version keyed on (vendor, city) alone
12
+ * and flipped every business type for that city together; a vendor serving a
13
+ * city under five arrangements lost all five from one click, all stamped with
14
+ * the same reason. Roughly a quarter of configured vendor-cities carry more
15
+ * than one business type, so that was not a rare case.
16
+ *
17
+ * `businessType` is required rather than optional on purpose: an omitted value
18
+ * would otherwise widen the command back to every row for the city, which is
19
+ * the exact bug this replaced.
14
20
  *
15
21
  * `remark` carries the reason text, picked from the global
16
22
  * `ReasonMaster.VendorCityStatus` list or typed free-hand. It is the same shape
17
23
  * every other status-reason flow in the product uses (vendor, driver and city
18
24
  * profile status all store the chosen reason as text), so there is no reason id
19
- * to resolve and no second master list to keep in step.
25
+ * to resolve and no second master list to keep in step. It is recorded against
26
+ * the single row this command touches, so each business type keeps the reason
27
+ * it was actually withdrawn for.
20
28
  */
21
29
  export class UpdateVendorCityStatusDto {
22
30
  }
@@ -28,6 +36,11 @@ __decorate([
28
36
  IsUUID(),
29
37
  __metadata("design:type", String)
30
38
  ], UpdateVendorCityStatusDto.prototype, "cityId", void 0);
39
+ __decorate([
40
+ IsString(),
41
+ IsNotEmpty({ message: 'A business type is required' }),
42
+ __metadata("design:type", String)
43
+ ], UpdateVendorCityStatusDto.prototype, "businessType", void 0);
31
44
  __decorate([
32
45
  IsEnum(GenericStatus),
33
46
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"update.vendor.city.status.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/update.vendor.city.status.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,MAAM,EACN,UAAU,EACV,UAAU,EACV,QAAQ,EACR,MAAM,EACN,SAAS,EACT,UAAU,GACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,kDAAkD;AAClD,MAAM,CAAC,MAAM,oCAAoC,GAAG,GAAG,CAAC;AAExD;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,yBAAyB;CA4BrC;AA1BA;IADC,MAAM,EAAE;;kEACe;AAGxB;IADC,MAAM,EAAE;;yDACM;AAGf;IADC,MAAM,CAAC,aAAa,CAAC;;yDACA;AAetB;IAZC,UAAU,CACV,CAAC,GAA8B,EAAE,EAAE,CAClC,GAAG,CAAC,MAAM,KAAK,aAAa,CAAC,QAAQ,CACtC;IACA,QAAQ,EAAE;IACV,UAAU,CAAC,EAAE,OAAO,EAAE,8CAA8C,EAAE,CAAC;IACvE,SAAS,CAAC,oCAAoC,CAAC;IAChD,2EAA2E;IAC3E,2EAA2E;IAC3E,sEAAsE;IACtE,kEAAkE;;IACjE,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;;yDACzD;AAIhB;IAFC,UAAU,EAAE;IACZ,MAAM,EAAE;;8DACY"}
1
+ {"version":3,"file":"update.vendor.city.status.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/update.vendor.city.status.dto.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,MAAM,EACN,UAAU,EACV,UAAU,EACV,QAAQ,EACR,MAAM,EACN,SAAS,EACT,UAAU,GACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,kDAAkD;AAClD,MAAM,CAAC,MAAM,oCAAoC,GAAG,GAAG,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,OAAO,yBAAyB;CAqCrC;AAnCA;IADC,MAAM,EAAE;;kEACe;AAGxB;IADC,MAAM,EAAE;;yDACM;AASf;IAFC,QAAQ,EAAE;IACV,UAAU,CAAC,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;;+DAClC;AAGrB;IADC,MAAM,CAAC,aAAa,CAAC;;yDACA;AAetB;IAZC,UAAU,CACV,CAAC,GAA8B,EAAE,EAAE,CAClC,GAAG,CAAC,MAAM,KAAK,aAAa,CAAC,QAAQ,CACtC;IACA,QAAQ,EAAE;IACV,UAAU,CAAC,EAAE,OAAO,EAAE,8CAA8C,EAAE,CAAC;IACvE,SAAS,CAAC,oCAAoC,CAAC;IAChD,2EAA2E;IAC3E,2EAA2E;IAC3E,sEAAsE;IACtE,kEAAkE;;IACjE,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;;yDACzD;AAIhB;IAFC,UAAU,EAAE;IACZ,MAAM,EAAE;;8DACY"}