types-salon-management 1.0.37 → 1.0.38

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.
@@ -1,6 +1,6 @@
1
1
  import type { AuditActor } from '../audit';
2
- import type { ServiceAudience, ServiceTaxMode, ServiceVariantPriceType } from '../services/service.enums';
3
- import type { ServiceComboBookingType, ServiceComboDisplayPricePrefix, ServiceComboPricingType } from './service-combo.enums';
2
+ import type { ServiceAudience, ServiceDisplayPricePrefix, ServiceTaxMode, ServiceVariantPriceType } from '../services/service.enums';
3
+ import type { ServiceComboBookingType, ServiceComboPricingType } from './service-combo.enums';
4
4
  export interface ServiceComboItemDto {
5
5
  id: string;
6
6
  variantId: string;
@@ -24,7 +24,7 @@ export interface ServiceComboSummaryDto {
24
24
  comboImageUrl: string | null;
25
25
  itemCount: number;
26
26
  displayPrice: string;
27
- displayPricePrefix: ServiceComboDisplayPricePrefix;
27
+ displayPricePrefix: ServiceDisplayPricePrefix;
28
28
  lastKnownReferenceTotal: string | null;
29
29
  createdAt: string;
30
30
  updatedAt: string | null;
@@ -45,7 +45,7 @@ export interface ServiceComboPickerItemDto {
45
45
  pricingType: ServiceComboPricingType;
46
46
  itemCount: number;
47
47
  displayPrice: string;
48
- displayPricePrefix: ServiceComboDisplayPricePrefix;
48
+ displayPricePrefix: ServiceDisplayPricePrefix;
49
49
  }
50
50
  export interface ResolvedServiceComboLineDto {
51
51
  variantId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"service-combo.dto.d.ts","sourceRoot":"","sources":["../../../src/api/service-combos/service-combo.dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC1G,OAAO,KAAK,EACV,uBAAuB,EACvB,8BAA8B,EAC9B,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;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AAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,eAAe,CAAC;IAC5B,WAAW,EAAE,uBAAuB,CAAC;IACrC,WAAW,EAAE,uBAAuB,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,8BAA8B,CAAC;CACpD;AAED,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,uBAAuB,CAAC;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,cAAc,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,uBAAuB,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,2BAA2B,EAAE,CAAC;CACtC"}
1
+ {"version":3,"file":"service-combo.dto.d.ts","sourceRoot":"","sources":["../../../src/api/service-combos/service-combo.dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EACV,eAAe,EACf,yBAAyB,EACzB,cAAc,EACd,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAE9F,MAAM,WAAW,mBAAmB;IAClC,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C;IAC3B,UAAU,EAAE,eAAe,CAAC;IAC5B,WAAW,EAAE,uBAAuB,CAAC;IACrC,WAAW,EAAE,uBAAuB,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,yBAAyB,CAAC;CAC/C;AAED,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,uBAAuB,CAAC;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,cAAc,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,uBAAuB,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,2BAA2B,EAAE,CAAC;CACtC"}
@@ -12,16 +12,4 @@ export declare const ServiceComboPricingType: {
12
12
  readonly PercentageOff: "percentage_off";
13
13
  };
14
14
  export type ServiceComboPricingType = (typeof ServiceComboPricingType)[keyof typeof ServiceComboPricingType];
15
- /**
16
- * UI hint for list/picker price labels (e.g. "From $X").
17
- * Distinct from `ServiceVariantPriceType`, which describes variant price semantics.
18
- */
19
- export declare const ServiceComboDisplayPricePrefix: {
20
- readonly From: "from";
21
- readonly Fixed: "fixed";
22
- readonly Free: "free";
23
- };
24
- export type ServiceComboDisplayPricePrefixValue = (typeof ServiceComboDisplayPricePrefix)[keyof typeof ServiceComboDisplayPricePrefix];
25
- /** `null` means no prefix label — show price only. */
26
- export type ServiceComboDisplayPricePrefix = ServiceComboDisplayPricePrefixValue | null;
27
15
  //# sourceMappingURL=service-combo.enums.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service-combo.enums.d.ts","sourceRoot":"","sources":["../../../src/api/service-combos/service-combo.enums.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,eAAO,MAAM,uBAAuB;;;CAG1B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAEzE,qDAAqD;AACrD,eAAO,MAAM,uBAAuB;;;;;CAK1B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAEzE;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;CAIjC,CAAC;AAEX,MAAM,MAAM,mCAAmC,GAC7C,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,OAAO,8BAA8B,CAAC,CAAC;AAEvF,sDAAsD;AACtD,MAAM,MAAM,8BAA8B,GAAG,mCAAmC,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"service-combo.enums.d.ts","sourceRoot":"","sources":["../../../src/api/service-combos/service-combo.enums.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,eAAO,MAAM,uBAAuB;;;CAG1B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAEzE,qDAAqD;AACrD,eAAO,MAAM,uBAAuB;;;;;CAK1B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceComboDisplayPricePrefix = exports.ServiceComboPricingType = exports.ServiceComboBookingType = void 0;
3
+ exports.ServiceComboPricingType = exports.ServiceComboBookingType = void 0;
4
4
  /** How combo services are scheduled when booked. */
5
5
  exports.ServiceComboBookingType = {
6
6
  Sequence: 'sequence',
@@ -13,13 +13,4 @@ exports.ServiceComboPricingType = {
13
13
  Free: 'free',
14
14
  PercentageOff: 'percentage_off',
15
15
  };
16
- /**
17
- * UI hint for list/picker price labels (e.g. "From $X").
18
- * Distinct from `ServiceVariantPriceType`, which describes variant price semantics.
19
- */
20
- exports.ServiceComboDisplayPricePrefix = {
21
- From: 'from',
22
- Fixed: 'fixed',
23
- Free: 'free',
24
- };
25
16
  //# sourceMappingURL=service-combo.enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"service-combo.enums.js","sourceRoot":"","sources":["../../../src/api/service-combos/service-combo.enums.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACvC,QAAA,uBAAuB,GAAG;IACrC,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAKX,qDAAqD;AACxC,QAAA,uBAAuB,GAAG;IACrC,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,aAAa,EAAE,gBAAgB;CACvB,CAAC;AAKX;;;GAGG;AACU,QAAA,8BAA8B,GAAG;IAC5C,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACJ,CAAC"}
1
+ {"version":3,"file":"service-combo.enums.js","sourceRoot":"","sources":["../../../src/api/service-combos/service-combo.enums.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACvC,QAAA,uBAAuB,GAAG;IACrC,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAKX,qDAAqD;AACxC,QAAA,uBAAuB,GAAG;IACrC,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,aAAa,EAAE,gBAAgB;CACvB,CAAC"}
@@ -22,7 +22,11 @@ export declare const ServiceVariantPriceType: {
22
22
  readonly Fixed: "fixed";
23
23
  };
24
24
  export type ServiceVariantPriceType = (typeof ServiceVariantPriceType)[keyof typeof ServiceVariantPriceType];
25
- /** UI hint for service list price labels (e.g. "From $X"). */
25
+ /**
26
+ * Computed list/picker label hint (e.g. "From $X").
27
+ * Shared by service summaries and service combos — not stored in DB.
28
+ * Distinct from {@link ServiceVariantPriceType}, which describes variant price semantics.
29
+ */
26
30
  export declare const ServiceDisplayPricePrefix: {
27
31
  readonly From: "from";
28
32
  readonly Fixed: "fixed";
@@ -30,6 +34,17 @@ export declare const ServiceDisplayPricePrefix: {
30
34
  };
31
35
  export type ServiceDisplayPricePrefixValue = (typeof ServiceDisplayPricePrefix)[keyof typeof ServiceDisplayPricePrefix];
32
36
  export type ServiceDisplayPricePrefix = ServiceDisplayPricePrefixValue;
37
+ /**
38
+ * How price labels render in UI — catalog "from", picker "*", plain price, etc.
39
+ * Superset of {@link ServiceDisplayPricePrefix} and {@link ServiceVariantPriceType.StartAt}.
40
+ */
41
+ export declare const ServicePriceDisplayMode: {
42
+ readonly From: "from";
43
+ readonly StartAt: "start_at";
44
+ readonly Fixed: "fixed";
45
+ readonly Free: "free";
46
+ };
47
+ export type ServicePriceDisplayModeValue = (typeof ServicePriceDisplayMode)[keyof typeof ServicePriceDisplayMode];
33
48
  /** Duration segment kinds for a service variant. */
34
49
  export declare const ServiceDurationSegmentType: {
35
50
  readonly ServicingTime: "servicing_time";
@@ -1 +1 @@
1
- {"version":3,"file":"service.enums.d.ts","sourceRoot":"","sources":["../../../src/api/services/service.enums.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,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AM,gBAAgB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAExF,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAElF,eAAO,MAAM,uBAAuB;;;;CAI1B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAEzE;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAC;AAEX,MAAM,MAAM,8BAA8B,GACxC,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAE7E,MAAM,MAAM,yBAAyB,GAAG,8BAA8B,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;;CAK1B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GACtC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAEzE,oDAAoD;AACpD,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AAEX,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;AAE/E,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FollowUpReminderUnit = exports.ServiceDurationSegmentType = exports.ServiceDisplayPricePrefix = exports.ServiceVariantPriceType = exports.ServiceTaxMode = exports.OnlineVisibility = exports.ServiceAudience = void 0;
3
+ exports.FollowUpReminderUnit = exports.ServiceDurationSegmentType = exports.ServicePriceDisplayMode = exports.ServiceDisplayPricePrefix = exports.ServiceVariantPriceType = exports.ServiceTaxMode = exports.OnlineVisibility = exports.ServiceAudience = void 0;
4
4
  /** Postgres service audience enum (`service_for` column). */
5
5
  exports.ServiceAudience = {
6
6
  Man: 'man',
@@ -21,12 +21,26 @@ exports.ServiceVariantPriceType = {
21
21
  StartAt: 'start_at',
22
22
  Fixed: 'fixed',
23
23
  };
24
- /** UI hint for service list price labels (e.g. "From $X"). */
24
+ /**
25
+ * Computed list/picker label hint (e.g. "From $X").
26
+ * Shared by service summaries and service combos — not stored in DB.
27
+ * Distinct from {@link ServiceVariantPriceType}, which describes variant price semantics.
28
+ */
25
29
  exports.ServiceDisplayPricePrefix = {
26
30
  From: 'from',
27
31
  Fixed: 'fixed',
28
32
  Free: 'free',
29
33
  };
34
+ /**
35
+ * How price labels render in UI — catalog "from", picker "*", plain price, etc.
36
+ * Superset of {@link ServiceDisplayPricePrefix} and {@link ServiceVariantPriceType.StartAt}.
37
+ */
38
+ exports.ServicePriceDisplayMode = {
39
+ From: exports.ServiceDisplayPricePrefix.From,
40
+ StartAt: exports.ServiceVariantPriceType.StartAt,
41
+ Fixed: exports.ServiceVariantPriceType.Fixed,
42
+ Free: exports.ServiceVariantPriceType.Free,
43
+ };
30
44
  /** Duration segment kinds for a service variant. */
31
45
  exports.ServiceDurationSegmentType = {
32
46
  ServicingTime: 'servicing_time',
@@ -1 +1 @@
1
- {"version":3,"file":"service.enums.js","sourceRoot":"","sources":["../../../src/api/services/service.enums.ts"],"names":[],"mappings":";;;AAAA,6DAA6D;AAChD,QAAA,eAAe,GAAG;IAC7B,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACZ,CAAC;AAIE,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,cAAc;IAC3B,eAAe,EAAE,mBAAmB;CAC5B,CAAC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;;;GAGG;AACU,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,iCAAyB,CAAC,IAAI;IACpC,OAAO,EAAE,+BAAuB,CAAC,OAAO;IACxC,KAAK,EAAE,+BAAuB,CAAC,KAAK;IACpC,IAAI,EAAE,+BAAuB,CAAC,IAAI;CAC1B,CAAC;AAKX,oDAAoD;AACvC,QAAA,0BAA0B,GAAG;IACxC,aAAa,EAAE,gBAAgB;IAC/B,kBAAkB,EAAE,sBAAsB;IAC1C,cAAc,EAAE,iBAAiB;IACjC,SAAS,EAAE,YAAY;CACf,CAAC;AAKE,QAAA,oBAAoB,GAAG;IAClC,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC"}
@@ -2,7 +2,8 @@ import type { PaginatedResult } from '../pagination';
2
2
  import type { ServiceAudience, ServiceDurationSegmentType, ServiceTaxMode, ServiceVariantPriceType } from './service.enums';
3
3
  export interface SearchServicePickerQuery {
4
4
  search?: string;
5
- locationId: string;
5
+ /** Omit for catalog-wide search (settings); required for outlet-scoped POS/scheduler pickers. */
6
+ locationId?: string;
6
7
  categoryId?: string;
7
8
  serviceFor?: ServiceAudience;
8
9
  active?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"service.picker.d.ts","sourceRoot":"","sources":["../../../src/api/services/service.picker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,cAAc,EACd,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,+BAA+B;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,0BAA0B,CAAC;IACxC,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,eAAe,CAAC;IAC5B,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE,cAAc,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,uBAAuB,CAAC;IACnC,eAAe,EAAE,OAAO,CAAC;IACzB,gBAAgB,EAAE,+BAA+B,EAAE,CAAC;IACpD,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,uBAAuB,CAAC;CAC3C;AAED,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAExE,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,uBAAuB,CAAC;CACpC"}
1
+ {"version":3,"file":"service.picker.d.ts","sourceRoot":"","sources":["../../../src/api/services/service.picker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE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uB,CAAC;CAC3C;AAED,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAExE,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,uBAAuB,CAAC;CACpC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-salon-management",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "Types for Salon Management",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,10 +1,11 @@
1
1
  import type { AuditActor } from '../audit';
2
- import type { ServiceAudience, ServiceTaxMode, ServiceVariantPriceType } from '../services/service.enums';
3
2
  import type {
4
- ServiceComboBookingType,
5
- ServiceComboDisplayPricePrefix,
6
- ServiceComboPricingType,
7
- } from './service-combo.enums';
3
+ ServiceAudience,
4
+ ServiceDisplayPricePrefix,
5
+ ServiceTaxMode,
6
+ ServiceVariantPriceType,
7
+ } from '../services/service.enums';
8
+ import type { ServiceComboBookingType, ServiceComboPricingType } from './service-combo.enums';
8
9
 
9
10
  export interface ServiceComboItemDto {
10
11
  id: string;
@@ -30,7 +31,7 @@ export interface ServiceComboSummaryDto {
30
31
  comboImageUrl: string | null;
31
32
  itemCount: number;
32
33
  displayPrice: string;
33
- displayPricePrefix: ServiceComboDisplayPricePrefix;
34
+ displayPricePrefix: ServiceDisplayPricePrefix;
34
35
  lastKnownReferenceTotal: string | null;
35
36
  createdAt: string;
36
37
  updatedAt: string | null;
@@ -53,7 +54,7 @@ export interface ServiceComboPickerItemDto {
53
54
  pricingType: ServiceComboPricingType;
54
55
  itemCount: number;
55
56
  displayPrice: string;
56
- displayPricePrefix: ServiceComboDisplayPricePrefix;
57
+ displayPricePrefix: ServiceDisplayPricePrefix;
57
58
  }
58
59
 
59
60
  export interface ResolvedServiceComboLineDto {
@@ -17,19 +17,3 @@ export const ServiceComboPricingType = {
17
17
 
18
18
  export type ServiceComboPricingType =
19
19
  (typeof ServiceComboPricingType)[keyof typeof ServiceComboPricingType];
20
-
21
- /**
22
- * UI hint for list/picker price labels (e.g. "From $X").
23
- * Distinct from `ServiceVariantPriceType`, which describes variant price semantics.
24
- */
25
- export const ServiceComboDisplayPricePrefix = {
26
- From: 'from',
27
- Fixed: 'fixed',
28
- Free: 'free',
29
- } as const;
30
-
31
- export type ServiceComboDisplayPricePrefixValue =
32
- (typeof ServiceComboDisplayPricePrefix)[keyof typeof ServiceComboDisplayPricePrefix];
33
-
34
- /** `null` means no prefix label — show price only. */
35
- export type ServiceComboDisplayPricePrefix = ServiceComboDisplayPricePrefixValue | null;
@@ -31,7 +31,11 @@ export const ServiceVariantPriceType = {
31
31
  export type ServiceVariantPriceType =
32
32
  (typeof ServiceVariantPriceType)[keyof typeof ServiceVariantPriceType];
33
33
 
34
- /** UI hint for service list price labels (e.g. "From $X"). */
34
+ /**
35
+ * Computed list/picker label hint (e.g. "From $X").
36
+ * Shared by service summaries and service combos — not stored in DB.
37
+ * Distinct from {@link ServiceVariantPriceType}, which describes variant price semantics.
38
+ */
35
39
  export const ServiceDisplayPricePrefix = {
36
40
  From: 'from',
37
41
  Fixed: 'fixed',
@@ -43,6 +47,20 @@ export type ServiceDisplayPricePrefixValue =
43
47
 
44
48
  export type ServiceDisplayPricePrefix = ServiceDisplayPricePrefixValue;
45
49
 
50
+ /**
51
+ * How price labels render in UI — catalog "from", picker "*", plain price, etc.
52
+ * Superset of {@link ServiceDisplayPricePrefix} and {@link ServiceVariantPriceType.StartAt}.
53
+ */
54
+ export const ServicePriceDisplayMode = {
55
+ From: ServiceDisplayPricePrefix.From,
56
+ StartAt: ServiceVariantPriceType.StartAt,
57
+ Fixed: ServiceVariantPriceType.Fixed,
58
+ Free: ServiceVariantPriceType.Free,
59
+ } as const;
60
+
61
+ export type ServicePriceDisplayModeValue =
62
+ (typeof ServicePriceDisplayMode)[keyof typeof ServicePriceDisplayMode];
63
+
46
64
  /** Duration segment kinds for a service variant. */
47
65
  export const ServiceDurationSegmentType = {
48
66
  ServicingTime: 'servicing_time',
@@ -1,6 +1,7 @@
1
1
  import type { PaginatedResult } from '../pagination';
2
2
  import type {
3
3
  ServiceAudience,
4
+ ServiceDisplayPricePrefix,
4
5
  ServiceDurationSegmentType,
5
6
  ServiceTaxMode,
6
7
  ServiceVariantPriceType,
@@ -8,7 +9,8 @@ import type {
8
9
 
9
10
  export interface SearchServicePickerQuery {
10
11
  search?: string;
11
- locationId: string;
12
+ /** Omit for catalog-wide search (settings); required for outlet-scoped POS/scheduler pickers. */
13
+ locationId?: string;
12
14
  categoryId?: string;
13
15
  serviceFor?: ServiceAudience;
14
16
  active?: boolean;
@@ -40,7 +42,7 @@ export interface ServicePickerItemDto {
40
42
  qualifiedStaffIds: string[];
41
43
  resourceIds: string[];
42
44
  displayPrice: string;
43
- displayPriceType: ServiceVariantPriceType;
45
+ displayPricePrefix: ServiceDisplayPricePrefix;
44
46
  }
45
47
 
46
48
  export type ServicePickerResult = PaginatedResult<ServicePickerItemDto>;