types-salon-management 1.0.54 → 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.
- package/dist/api/appointment-groups/appointment-group.dto.d.ts +25 -0
- package/dist/api/appointment-groups/appointment-group.dto.d.ts.map +1 -0
- package/dist/api/appointment-groups/appointment-group.dto.js +3 -0
- package/dist/api/appointment-groups/appointment-group.dto.js.map +1 -0
- package/dist/api/appointment-groups/index.d.ts +3 -0
- package/dist/api/appointment-groups/index.d.ts.map +1 -0
- package/dist/api/appointment-groups/index.js +19 -0
- package/dist/api/appointment-groups/index.js.map +1 -0
- package/dist/api/appointment-groups/update-primary-contact.request.d.ts +4 -0
- package/dist/api/appointment-groups/update-primary-contact.request.d.ts.map +1 -0
- package/dist/api/appointment-groups/update-primary-contact.request.js +3 -0
- package/dist/api/appointment-groups/update-primary-contact.request.js.map +1 -0
- package/dist/api/appointments/book-appointment.request.d.ts +11 -0
- package/dist/api/appointments/book-appointment.request.d.ts.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1 -0
- package/dist/api/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/appointment-groups/appointment-group.dto.ts +26 -0
- package/src/api/appointment-groups/index.ts +2 -0
- package/src/api/appointment-groups/update-primary-contact.request.ts +3 -0
- package/src/api/appointments/book-appointment.request.ts +12 -0
- package/src/api/index.ts +1 -0
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"appointment-group.dto.js","sourceRoot":"","sources":["../../../src/api/appointment-groups/appointment-group.dto.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"update-primary-contact.request.js","sourceRoot":"","sources":["../../../src/api/appointment-groups/update-primary-contact.request.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import type { PhoneNumberModel } from '../../models/phone-number-model';
|
|
2
|
+
import type { ServiceDurationSegmentType } from '../services/service.enums';
|
|
3
|
+
export interface BookAppointmentItemDurationSegmentInput {
|
|
4
|
+
segmentType: ServiceDurationSegmentType;
|
|
5
|
+
durationMinutes: number;
|
|
6
|
+
sortOrder: number;
|
|
7
|
+
}
|
|
2
8
|
export interface BookAppointmentItemRequest {
|
|
3
9
|
serviceVariantId: string;
|
|
4
10
|
staffId: string;
|
|
5
11
|
staffId2?: string;
|
|
6
12
|
resourceId?: string;
|
|
7
13
|
startAt: string;
|
|
14
|
+
/**
|
|
15
|
+
* When set, these segments define the booked duration and calendar shading instead of
|
|
16
|
+
* copying the service variant template (e.g. after adding processing or block time).
|
|
17
|
+
*/
|
|
18
|
+
durationSegments?: BookAppointmentItemDurationSegmentInput[];
|
|
8
19
|
}
|
|
9
20
|
export interface BookAppointmentRequest {
|
|
10
21
|
locationId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"book-appointment.request.d.ts","sourceRoot":"","sources":["../../../src/api/appointments/book-appointment.request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"book-appointment.request.d.ts","sourceRoot":"","sources":["../../../src/api/appointments/book-appointment.request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAE5E,MAAM,WAAW,uCAAuC;IACtD,WAAW,EAAE,0BAA0B,CAAC;IACxC,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,uCAAuC,EAAE,CAAC;CAC9D;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,0BAA0B,EAAE,CAAC;IACpC;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB"}
|
package/dist/api/index.d.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';
|
package/dist/api/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts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BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,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);
|
package/dist/api/index.js.map
CHANGED
|
@@ -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
|
@@ -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
|
+
}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import type { PhoneNumberModel } from '../../models/phone-number-model';
|
|
2
|
+
import type { ServiceDurationSegmentType } from '../services/service.enums';
|
|
3
|
+
|
|
4
|
+
export interface BookAppointmentItemDurationSegmentInput {
|
|
5
|
+
segmentType: ServiceDurationSegmentType;
|
|
6
|
+
durationMinutes: number;
|
|
7
|
+
sortOrder: number;
|
|
8
|
+
}
|
|
2
9
|
|
|
3
10
|
export interface BookAppointmentItemRequest {
|
|
4
11
|
serviceVariantId: string;
|
|
@@ -6,6 +13,11 @@ export interface BookAppointmentItemRequest {
|
|
|
6
13
|
staffId2?: string;
|
|
7
14
|
resourceId?: string;
|
|
8
15
|
startAt: string;
|
|
16
|
+
/**
|
|
17
|
+
* When set, these segments define the booked duration and calendar shading instead of
|
|
18
|
+
* copying the service variant template (e.g. after adding processing or block time).
|
|
19
|
+
*/
|
|
20
|
+
durationSegments?: BookAppointmentItemDurationSegmentInput[];
|
|
9
21
|
}
|
|
10
22
|
|
|
11
23
|
export interface BookAppointmentRequest {
|
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';
|