types-salon-management 1.0.55 → 1.0.56

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.
@@ -0,0 +1,25 @@
1
+ import type { AppointmentDetailDto } from '../appointments/appointment.dto';
2
+ /** Member row in a group drawer — extends appointment detail with group-specific fields. */
3
+ export interface AppointmentGroupMemberDto extends AppointmentDetailDto {
4
+ isPrimary: boolean;
5
+ /** Sum of line item unit prices (decimal string). */
6
+ totalPrice: string;
7
+ /** Earliest active occupancy start — used for per-card date/time in the drawer. */
8
+ appointmentStartAt: string | null;
9
+ }
10
+ export interface AppointmentGroupDetailDto {
11
+ id: string;
12
+ locationId: string;
13
+ name: string | null;
14
+ primaryAppointmentId: string | null;
15
+ primaryClientName: string | null;
16
+ memberCount: number;
17
+ /** Sum of all member totalPrice values (decimal string). */
18
+ totalPrice: string;
19
+ /** True when any member has status completed (invoice linkage deferred post-M6). */
20
+ hasSale: boolean;
21
+ /** True when only one member — staging group awaiting a second appointment. */
22
+ isStaging: boolean;
23
+ members: AppointmentGroupMemberDto[];
24
+ }
25
+ //# sourceMappingURL=appointment-group.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment-group.dto.d.ts","sourceRoot":"","sources":["../../../src/api/appointment-groups/appointment-group.dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,4FAA4F;AAC5F,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE,SAAS,EAAE,OAAO,CAAC;IACnB,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,OAAO,EAAE,OAAO,CAAC;IACjB,+EAA+E;IAC/E,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,yBAAyB,EAAE,CAAC;CACtC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=appointment-group.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment-group.dto.js","sourceRoot":"","sources":["../../../src/api/appointment-groups/appointment-group.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from './appointment-group.dto';
2
+ export * from './update-primary-contact.request';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/appointment-groups/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./appointment-group.dto"), exports);
18
+ __exportStar(require("./update-primary-contact.request"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/appointment-groups/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD"}
@@ -0,0 +1,4 @@
1
+ export interface UpdateAppointmentGroupPrimaryContactRequest {
2
+ appointmentId: string;
3
+ }
4
+ //# sourceMappingURL=update-primary-contact.request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-primary-contact.request.d.ts","sourceRoot":"","sources":["../../../src/api/appointment-groups/update-primary-contact.request.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2CAA2C;IAC1D,aAAa,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=update-primary-contact.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-primary-contact.request.js","sourceRoot":"","sources":["../../../src/api/appointment-groups/update-primary-contact.request.ts"],"names":[],"mappings":""}
@@ -10,6 +10,7 @@ export * from './gst-number/index';
10
10
  export * from './cancellation-reason';
11
11
  export * from './location-closures/index';
12
12
  export * from './appointments/index';
13
+ export * from './appointment-groups/index';
13
14
  export * from './staff-blocks/index';
14
15
  export * from './calendar/index';
15
16
  export * from './location';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBA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,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC"}
package/dist/api/index.js CHANGED
@@ -26,6 +26,7 @@ __exportStar(require("./gst-number/index"), exports);
26
26
  __exportStar(require("./cancellation-reason"), exports);
27
27
  __exportStar(require("./location-closures/index"), exports);
28
28
  __exportStar(require("./appointments/index"), exports);
29
+ __exportStar(require("./appointment-groups/index"), exports);
29
30
  __exportStar(require("./staff-blocks/index"), exports);
30
31
  __exportStar(require("./calendar/index"), exports);
31
32
  __exportStar(require("./location"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,0CAAwB;AACxB,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,8CAA4B;AAC5B,qDAAmC;AACnC,wDAAsC;AACtC,4DAA0C;AAC1C,uDAAqC;AACrC,uDAAqC;AACrC,mDAAiC;AACjC,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,2DAAyC;AACzC,oDAAkC;AAClC,gDAA8B;AAC9B,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,6DAA2C;AAC3C,mDAAiC;AACjC,yDAAuC;AACvC,qDAAmC;AACnC,sDAAoC;AACpC,0DAAwC;AACxC,kDAAgC;AAChC,mDAAiC;AACjC,+DAA6C;AAC7C,qDAAmC;AACnC,6DAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,0CAAwB;AACxB,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,8CAA4B;AAC5B,qDAAmC;AACnC,wDAAsC;AACtC,4DAA0C;AAC1C,uDAAqC;AACrC,6DAA2C;AAC3C,uDAAqC;AACrC,mDAAiC;AACjC,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,2DAAyC;AACzC,oDAAkC;AAClC,gDAA8B;AAC9B,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,6DAA2C;AAC3C,mDAAiC;AACjC,yDAAuC;AACvC,qDAAmC;AACnC,sDAAoC;AACpC,0DAAwC;AACxC,kDAAgC;AAChC,mDAAiC;AACjC,+DAA6C;AAC7C,qDAAmC;AACnC,6DAA2C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-salon-management",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "description": "Types for Salon Management",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,26 @@
1
+ import type { AppointmentDetailDto } from '../appointments/appointment.dto';
2
+
3
+ /** Member row in a group drawer — extends appointment detail with group-specific fields. */
4
+ export interface AppointmentGroupMemberDto extends AppointmentDetailDto {
5
+ isPrimary: boolean;
6
+ /** Sum of line item unit prices (decimal string). */
7
+ totalPrice: string;
8
+ /** Earliest active occupancy start — used for per-card date/time in the drawer. */
9
+ appointmentStartAt: string | null;
10
+ }
11
+
12
+ export interface AppointmentGroupDetailDto {
13
+ id: string;
14
+ locationId: string;
15
+ name: string | null;
16
+ primaryAppointmentId: string | null;
17
+ primaryClientName: string | null;
18
+ memberCount: number;
19
+ /** Sum of all member totalPrice values (decimal string). */
20
+ totalPrice: string;
21
+ /** True when any member has status completed (invoice linkage deferred post-M6). */
22
+ hasSale: boolean;
23
+ /** True when only one member — staging group awaiting a second appointment. */
24
+ isStaging: boolean;
25
+ members: AppointmentGroupMemberDto[];
26
+ }
@@ -0,0 +1,2 @@
1
+ export * from './appointment-group.dto';
2
+ export * from './update-primary-contact.request';
@@ -0,0 +1,3 @@
1
+ export interface UpdateAppointmentGroupPrimaryContactRequest {
2
+ appointmentId: string;
3
+ }
package/src/api/index.ts CHANGED
@@ -10,6 +10,7 @@ export * from './gst-number/index';
10
10
  export * from './cancellation-reason';
11
11
  export * from './location-closures/index';
12
12
  export * from './appointments/index';
13
+ export * from './appointment-groups/index';
13
14
  export * from './staff-blocks/index';
14
15
  export * from './calendar/index';
15
16
  export * from './location';