types-salon-management 1.0.16 → 1.0.17

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.
@@ -13,6 +13,7 @@ export * from './platform-terms';
13
13
  export * from './user/index';
14
14
  export * from './company-settings/index';
15
15
  export * from './staff/index';
16
+ export * from './resources/index';
16
17
  export * from './user-roles/index';
17
18
  export * from './permissions/index';
18
19
  //# sourceMappingURL=index.d.ts.map
@@ -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,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,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,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
package/dist/api/index.js CHANGED
@@ -29,6 +29,7 @@ __exportStar(require("./platform-terms"), exports);
29
29
  __exportStar(require("./user/index"), exports);
30
30
  __exportStar(require("./company-settings/index"), exports);
31
31
  __exportStar(require("./staff/index"), exports);
32
+ __exportStar(require("./resources/index"), exports);
32
33
  __exportStar(require("./user-roles/index"), exports);
33
34
  __exportStar(require("./permissions/index"), exports);
34
35
  //# sourceMappingURL=index.js.map
@@ -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,gDAA8B;AAC9B,qDAAmC;AACnC,sDAAoC"}
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,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,sDAAoC"}
@@ -0,0 +1,3 @@
1
+ export * from './resource.dto';
2
+ export * from './resource.requests';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,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("./resource.dto"), exports);
18
+ __exportStar(require("./resource.requests"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/resources/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,sDAAoC"}
@@ -0,0 +1,21 @@
1
+ import type { AuditActor } from '../audit';
2
+ export interface ResourceLocationSummaryDto {
3
+ id: string;
4
+ name: string;
5
+ }
6
+ export interface ResourceSummaryDto {
7
+ id: string;
8
+ companyId: string;
9
+ name: string;
10
+ location: ResourceLocationSummaryDto;
11
+ order: number;
12
+ active: boolean;
13
+ onlineBooking: boolean;
14
+ createdAt: string;
15
+ updatedAt: string | null;
16
+ createdBy: AuditActor | null;
17
+ updatedBy: AuditActor | null;
18
+ deletedBy: AuditActor | null;
19
+ }
20
+ export type ResourceDetailDto = ResourceSummaryDto;
21
+ //# sourceMappingURL=resource.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.dto.d.ts","sourceRoot":"","sources":["../../../src/api/resources/resource.dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,0BAA0B,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,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,MAAM,iBAAiB,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=resource.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../src/api/resources/resource.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ export interface CreateResourceRequest {
2
+ name: string;
3
+ locationId: string;
4
+ active?: boolean;
5
+ onlineBooking?: boolean;
6
+ }
7
+ export interface UpdateResourceRequest {
8
+ name?: string;
9
+ locationId?: string;
10
+ active?: boolean;
11
+ onlineBooking?: boolean;
12
+ }
13
+ export interface ReorderResourcesRequest {
14
+ locationId: string;
15
+ resourceIds: string[];
16
+ }
17
+ //# sourceMappingURL=resource.requests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.requests.d.ts","sourceRoot":"","sources":["../../../src/api/resources/resource.requests.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=resource.requests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.requests.js","sourceRoot":"","sources":["../../../src/api/resources/resource.requests.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-salon-management",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Types for Salon Management",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/api/index.ts CHANGED
@@ -13,5 +13,6 @@ export * from './platform-terms';
13
13
  export * from './user/index';
14
14
  export * from './company-settings/index';
15
15
  export * from './staff/index';
16
+ export * from './resources/index';
16
17
  export * from './user-roles/index';
17
18
  export * from './permissions/index';
@@ -0,0 +1,2 @@
1
+ export * from './resource.dto';
2
+ export * from './resource.requests';
@@ -0,0 +1,23 @@
1
+ import type { AuditActor } from '../audit';
2
+
3
+ export interface ResourceLocationSummaryDto {
4
+ id: string;
5
+ name: string;
6
+ }
7
+
8
+ export interface ResourceSummaryDto {
9
+ id: string;
10
+ companyId: string;
11
+ name: string;
12
+ location: ResourceLocationSummaryDto;
13
+ order: number;
14
+ active: boolean;
15
+ onlineBooking: boolean;
16
+ createdAt: string;
17
+ updatedAt: string | null;
18
+ createdBy: AuditActor | null;
19
+ updatedBy: AuditActor | null;
20
+ deletedBy: AuditActor | null;
21
+ }
22
+
23
+ export type ResourceDetailDto = ResourceSummaryDto;
@@ -0,0 +1,18 @@
1
+ export interface CreateResourceRequest {
2
+ name: string;
3
+ locationId: string;
4
+ active?: boolean;
5
+ onlineBooking?: boolean;
6
+ }
7
+
8
+ export interface UpdateResourceRequest {
9
+ name?: string;
10
+ locationId?: string;
11
+ active?: boolean;
12
+ onlineBooking?: boolean;
13
+ }
14
+
15
+ export interface ReorderResourcesRequest {
16
+ locationId: string;
17
+ resourceIds: string[];
18
+ }