types-salon-management 1.0.45 → 1.0.47
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/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +2 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/location-closures/index.d.ts +2 -0
- package/dist/api/location-closures/index.d.ts.map +1 -0
- package/dist/api/location-closures/index.js +18 -0
- package/dist/api/location-closures/index.js.map +1 -0
- package/dist/api/location-closures/location-closure.dto.d.ts +36 -0
- package/dist/api/location-closures/location-closure.dto.d.ts.map +1 -0
- package/dist/api/location-closures/location-closure.dto.js +3 -0
- package/dist/api/location-closures/location-closure.dto.js.map +1 -0
- package/dist/api/staff-shifts/index.d.ts +3 -0
- package/dist/api/staff-shifts/index.d.ts.map +1 -0
- package/dist/api/staff-shifts/index.js +3 -0
- package/dist/api/staff-shifts/index.js.map +1 -0
- package/dist/api/staff-shifts/staff-shift.dto.d.ts +49 -0
- package/dist/api/staff-shifts/staff-shift.dto.d.ts.map +1 -0
- package/dist/api/staff-shifts/staff-shift.dto.js +3 -0
- package/dist/api/staff-shifts/staff-shift.dto.js.map +1 -0
- package/dist/api/staff-shifts/staff-shift.requests.d.ts +17 -0
- package/dist/api/staff-shifts/staff-shift.requests.d.ts.map +1 -0
- package/dist/api/staff-shifts/staff-shift.requests.js +3 -0
- package/dist/api/staff-shifts/staff-shift.requests.js.map +1 -0
- package/package.json +1 -1
- package/src/api/index.ts +2 -0
- package/src/api/location-closures/index.ts +1 -0
- package/src/api/location-closures/location-closure.dto.ts +40 -0
- package/src/api/staff-shifts/index.ts +16 -0
- package/src/api/staff-shifts/staff-shift.dto.ts +57 -0
- package/src/api/staff-shifts/staff-shift.requests.ts +19 -0
package/dist/api/index.d.ts
CHANGED
|
@@ -8,12 +8,14 @@ export * from './pagination';
|
|
|
8
8
|
export * from './tax/index';
|
|
9
9
|
export * from './gst-number/index';
|
|
10
10
|
export * from './cancellation-reason';
|
|
11
|
+
export * from './location-closures/index';
|
|
11
12
|
export * from './location';
|
|
12
13
|
export * from './platform-terms';
|
|
13
14
|
export * from './user/index';
|
|
14
15
|
export * from './company-settings/index';
|
|
15
16
|
export * from './company-profile';
|
|
16
17
|
export * from './staff/index';
|
|
18
|
+
export * from './staff-shifts/index';
|
|
17
19
|
export * from './resources/index';
|
|
18
20
|
export * from './contraindications/index';
|
|
19
21
|
export * from './service-categories/index';
|
package/dist/api/index.d.ts.map
CHANGED
|
@@ -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,uBAAuB,CAAC;AACtC,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,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"}
|
|
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,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,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
|
@@ -24,12 +24,14 @@ __exportStar(require("./pagination"), exports);
|
|
|
24
24
|
__exportStar(require("./tax/index"), exports);
|
|
25
25
|
__exportStar(require("./gst-number/index"), exports);
|
|
26
26
|
__exportStar(require("./cancellation-reason"), exports);
|
|
27
|
+
__exportStar(require("./location-closures/index"), exports);
|
|
27
28
|
__exportStar(require("./location"), exports);
|
|
28
29
|
__exportStar(require("./platform-terms"), exports);
|
|
29
30
|
__exportStar(require("./user/index"), exports);
|
|
30
31
|
__exportStar(require("./company-settings/index"), exports);
|
|
31
32
|
__exportStar(require("./company-profile"), exports);
|
|
32
33
|
__exportStar(require("./staff/index"), exports);
|
|
34
|
+
__exportStar(require("./staff-shifts/index"), exports);
|
|
33
35
|
__exportStar(require("./resources/index"), exports);
|
|
34
36
|
__exportStar(require("./contraindications/index"), exports);
|
|
35
37
|
__exportStar(require("./service-categories/index"), 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,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,2DAAyC;AACzC,oDAAkC;AAClC,gDAA8B;AAC9B,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,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/location-closures/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./location-closure.dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/location-closures/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { AuditActor } from '../audit';
|
|
2
|
+
export type LocationClosureKind = 'full_day';
|
|
3
|
+
export interface LocationClosureLocationSummaryDto {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export interface LocationClosureDto {
|
|
8
|
+
id: string;
|
|
9
|
+
startsOn: string;
|
|
10
|
+
endsOn: string;
|
|
11
|
+
title: string | null;
|
|
12
|
+
reason: string;
|
|
13
|
+
closureKind: LocationClosureKind;
|
|
14
|
+
locationIds: string[];
|
|
15
|
+
locations: LocationClosureLocationSummaryDto[];
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string | null;
|
|
18
|
+
createdBy: AuditActor | null;
|
|
19
|
+
updatedBy: AuditActor | null;
|
|
20
|
+
deletedBy: AuditActor | null;
|
|
21
|
+
}
|
|
22
|
+
export interface CreateLocationClosureRequest {
|
|
23
|
+
startsOn: string;
|
|
24
|
+
endsOn: string;
|
|
25
|
+
locationIds: string[];
|
|
26
|
+
reason: string;
|
|
27
|
+
title?: string | null;
|
|
28
|
+
}
|
|
29
|
+
export interface UpdateLocationClosureRequest {
|
|
30
|
+
startsOn?: string;
|
|
31
|
+
endsOn?: string;
|
|
32
|
+
locationIds?: string[];
|
|
33
|
+
reason?: string;
|
|
34
|
+
title?: string | null;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=location-closure.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location-closure.dto.d.ts","sourceRoot":"","sources":["../../../src/api/location-closures/location-closure.dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC;AAE7C,MAAM,WAAW,iCAAiC;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,mBAAmB,CAAC;IACjC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,iCAAiC,EAAE,CAAC;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location-closure.dto.js","sourceRoot":"","sources":["../../../src/api/location-closures/location-closure.dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { ListLocationStaffShiftsQuery, ListStaffShiftPatternsResult, LocationStaffShiftItemDto, LocationStaffShiftsResult, ResolvedStaffShiftDayDto, StaffShiftPatternDayDto, StaffShiftPatternVersionDto, StaffShiftSegmentDto, StaffShiftSource, } from './staff-shift.dto';
|
|
2
|
+
export type { CreateStaffShiftPatternRequest, EndStaffShiftPatternsRequest, PutStaffShiftDayOverrideRequest, } from './staff-shift.requests';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/staff-shifts/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,4BAA4B,EAC5B,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,8BAA8B,EAC9B,4BAA4B,EAC5B,+BAA+B,GAChC,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/staff-shifts/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { AuditActor } from '../audit';
|
|
2
|
+
export type StaffShiftSource = 'pattern' | 'override';
|
|
3
|
+
export interface StaffShiftSegmentDto {
|
|
4
|
+
startMinutes: number;
|
|
5
|
+
endMinutes: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ResolvedStaffShiftDayDto {
|
|
8
|
+
date: string;
|
|
9
|
+
source: StaffShiftSource;
|
|
10
|
+
segments: StaffShiftSegmentDto[];
|
|
11
|
+
}
|
|
12
|
+
export interface LocationStaffShiftItemDto {
|
|
13
|
+
staffId: string;
|
|
14
|
+
days: ResolvedStaffShiftDayDto[];
|
|
15
|
+
}
|
|
16
|
+
export interface LocationStaffShiftsResult {
|
|
17
|
+
items: LocationStaffShiftItemDto[];
|
|
18
|
+
}
|
|
19
|
+
export interface StaffShiftPatternDayDto {
|
|
20
|
+
weekIndex: number;
|
|
21
|
+
dayOfWeek: number;
|
|
22
|
+
segments: StaffShiftSegmentDto[];
|
|
23
|
+
}
|
|
24
|
+
export interface StaffShiftPatternVersionDto {
|
|
25
|
+
id: string;
|
|
26
|
+
staffId: string;
|
|
27
|
+
locationId: string;
|
|
28
|
+
effectiveFrom: string;
|
|
29
|
+
effectiveUntil: string | null;
|
|
30
|
+
repeatIntervalWeeks: number;
|
|
31
|
+
cycleAnchorDate: string;
|
|
32
|
+
days: StaffShiftPatternDayDto[];
|
|
33
|
+
createdAt: string;
|
|
34
|
+
updatedAt: string | null;
|
|
35
|
+
createdBy: AuditActor | null;
|
|
36
|
+
updatedBy: AuditActor | null;
|
|
37
|
+
supersededAt: string | null;
|
|
38
|
+
}
|
|
39
|
+
export interface ListStaffShiftPatternsResult {
|
|
40
|
+
items: StaffShiftPatternVersionDto[];
|
|
41
|
+
}
|
|
42
|
+
export interface ListLocationStaffShiftsQuery {
|
|
43
|
+
from: string;
|
|
44
|
+
to: string;
|
|
45
|
+
staffId?: string;
|
|
46
|
+
/** ISO datetime — resolve shifts as the system believed at this moment (compliance). */
|
|
47
|
+
systemAsOf?: string;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=staff-shift.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staff-shift.dto.d.ts","sourceRoot":"","sources":["../../../src/api/staff-shifts/staff-shift.dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,UAAU,CAAC;AAEtD,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,EAAE,oBAAoB,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,wBAAwB,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,yBAAyB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,oBAAoB,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,uBAAuB,EAAE,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,2BAA2B,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wFAAwF;IACxF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staff-shift.dto.js","sourceRoot":"","sources":["../../../src/api/staff-shifts/staff-shift.dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StaffShiftSegmentDto } from './staff-shift.dto';
|
|
2
|
+
export interface CreateStaffShiftPatternRequest {
|
|
3
|
+
effectiveFrom: string;
|
|
4
|
+
repeatIntervalWeeks: number;
|
|
5
|
+
days: Array<{
|
|
6
|
+
weekIndex: number;
|
|
7
|
+
dayOfWeek: number;
|
|
8
|
+
segments: StaffShiftSegmentDto[];
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
11
|
+
export interface EndStaffShiftPatternsRequest {
|
|
12
|
+
fromDate: string;
|
|
13
|
+
}
|
|
14
|
+
export interface PutStaffShiftDayOverrideRequest {
|
|
15
|
+
segments: StaffShiftSegmentDto[];
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=staff-shift.requests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staff-shift.requests.d.ts","sourceRoot":"","sources":["../../../src/api/staff-shifts/staff-shift.requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,MAAM,WAAW,8BAA8B;IAC7C,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,IAAI,EAAE,KAAK,CAAC;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,oBAAoB,EAAE,CAAC;KAClC,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,oBAAoB,EAAE,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staff-shift.requests.js","sourceRoot":"","sources":["../../../src/api/staff-shifts/staff-shift.requests.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
package/src/api/index.ts
CHANGED
|
@@ -8,12 +8,14 @@ export * from './pagination';
|
|
|
8
8
|
export * from './tax/index';
|
|
9
9
|
export * from './gst-number/index';
|
|
10
10
|
export * from './cancellation-reason';
|
|
11
|
+
export * from './location-closures/index';
|
|
11
12
|
export * from './location';
|
|
12
13
|
export * from './platform-terms';
|
|
13
14
|
export * from './user/index';
|
|
14
15
|
export * from './company-settings/index';
|
|
15
16
|
export * from './company-profile';
|
|
16
17
|
export * from './staff/index';
|
|
18
|
+
export * from './staff-shifts/index';
|
|
17
19
|
export * from './resources/index';
|
|
18
20
|
export * from './contraindications/index';
|
|
19
21
|
export * from './service-categories/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './location-closure.dto';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { AuditActor } from '../audit';
|
|
2
|
+
|
|
3
|
+
export type LocationClosureKind = 'full_day';
|
|
4
|
+
|
|
5
|
+
export interface LocationClosureLocationSummaryDto {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface LocationClosureDto {
|
|
11
|
+
id: string;
|
|
12
|
+
startsOn: string;
|
|
13
|
+
endsOn: string;
|
|
14
|
+
title: string | null;
|
|
15
|
+
reason: string;
|
|
16
|
+
closureKind: LocationClosureKind;
|
|
17
|
+
locationIds: string[];
|
|
18
|
+
locations: LocationClosureLocationSummaryDto[];
|
|
19
|
+
createdAt: string;
|
|
20
|
+
updatedAt: string | null;
|
|
21
|
+
createdBy: AuditActor | null;
|
|
22
|
+
updatedBy: AuditActor | null;
|
|
23
|
+
deletedBy: AuditActor | null;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface CreateLocationClosureRequest {
|
|
27
|
+
startsOn: string;
|
|
28
|
+
endsOn: string;
|
|
29
|
+
locationIds: string[];
|
|
30
|
+
reason: string;
|
|
31
|
+
title?: string | null;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface UpdateLocationClosureRequest {
|
|
35
|
+
startsOn?: string;
|
|
36
|
+
endsOn?: string;
|
|
37
|
+
locationIds?: string[];
|
|
38
|
+
reason?: string;
|
|
39
|
+
title?: string | null;
|
|
40
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type {
|
|
2
|
+
ListLocationStaffShiftsQuery,
|
|
3
|
+
ListStaffShiftPatternsResult,
|
|
4
|
+
LocationStaffShiftItemDto,
|
|
5
|
+
LocationStaffShiftsResult,
|
|
6
|
+
ResolvedStaffShiftDayDto,
|
|
7
|
+
StaffShiftPatternDayDto,
|
|
8
|
+
StaffShiftPatternVersionDto,
|
|
9
|
+
StaffShiftSegmentDto,
|
|
10
|
+
StaffShiftSource,
|
|
11
|
+
} from './staff-shift.dto';
|
|
12
|
+
export type {
|
|
13
|
+
CreateStaffShiftPatternRequest,
|
|
14
|
+
EndStaffShiftPatternsRequest,
|
|
15
|
+
PutStaffShiftDayOverrideRequest,
|
|
16
|
+
} from './staff-shift.requests';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { AuditActor } from '../audit';
|
|
2
|
+
|
|
3
|
+
export type StaffShiftSource = 'pattern' | 'override';
|
|
4
|
+
|
|
5
|
+
export interface StaffShiftSegmentDto {
|
|
6
|
+
startMinutes: number;
|
|
7
|
+
endMinutes: number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface ResolvedStaffShiftDayDto {
|
|
11
|
+
date: string;
|
|
12
|
+
source: StaffShiftSource;
|
|
13
|
+
segments: StaffShiftSegmentDto[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface LocationStaffShiftItemDto {
|
|
17
|
+
staffId: string;
|
|
18
|
+
days: ResolvedStaffShiftDayDto[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface LocationStaffShiftsResult {
|
|
22
|
+
items: LocationStaffShiftItemDto[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface StaffShiftPatternDayDto {
|
|
26
|
+
weekIndex: number;
|
|
27
|
+
dayOfWeek: number;
|
|
28
|
+
segments: StaffShiftSegmentDto[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface StaffShiftPatternVersionDto {
|
|
32
|
+
id: string;
|
|
33
|
+
staffId: string;
|
|
34
|
+
locationId: string;
|
|
35
|
+
effectiveFrom: string;
|
|
36
|
+
effectiveUntil: string | null;
|
|
37
|
+
repeatIntervalWeeks: number;
|
|
38
|
+
cycleAnchorDate: string;
|
|
39
|
+
days: StaffShiftPatternDayDto[];
|
|
40
|
+
createdAt: string;
|
|
41
|
+
updatedAt: string | null;
|
|
42
|
+
createdBy: AuditActor | null;
|
|
43
|
+
updatedBy: AuditActor | null;
|
|
44
|
+
supersededAt: string | null;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface ListStaffShiftPatternsResult {
|
|
48
|
+
items: StaffShiftPatternVersionDto[];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface ListLocationStaffShiftsQuery {
|
|
52
|
+
from: string;
|
|
53
|
+
to: string;
|
|
54
|
+
staffId?: string;
|
|
55
|
+
/** ISO datetime — resolve shifts as the system believed at this moment (compliance). */
|
|
56
|
+
systemAsOf?: string;
|
|
57
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StaffShiftSegmentDto } from './staff-shift.dto';
|
|
2
|
+
|
|
3
|
+
export interface CreateStaffShiftPatternRequest {
|
|
4
|
+
effectiveFrom: string;
|
|
5
|
+
repeatIntervalWeeks: number;
|
|
6
|
+
days: Array<{
|
|
7
|
+
weekIndex: number;
|
|
8
|
+
dayOfWeek: number;
|
|
9
|
+
segments: StaffShiftSegmentDto[];
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface EndStaffShiftPatternsRequest {
|
|
14
|
+
fromDate: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface PutStaffShiftDayOverrideRequest {
|
|
18
|
+
segments: StaffShiftSegmentDto[];
|
|
19
|
+
}
|