types-salon-management 1.0.13 → 1.0.14

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.
@@ -14,4 +14,5 @@ export * from './user/index';
14
14
  export * from './company-settings/index';
15
15
  export * from './staff/index';
16
16
  export * from './user-roles/index';
17
+ export * from './permissions/index';
17
18
  //# 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"}
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"}
package/dist/api/index.js CHANGED
@@ -30,4 +30,5 @@ __exportStar(require("./user/index"), exports);
30
30
  __exportStar(require("./company-settings/index"), exports);
31
31
  __exportStar(require("./staff/index"), exports);
32
32
  __exportStar(require("./user-roles/index"), exports);
33
+ __exportStar(require("./permissions/index"), exports);
33
34
  //# 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"}
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"}
@@ -0,0 +1,2 @@
1
+ export type { PermissionCatalogDto, PermissionCatalogGroupDto, PermissionCatalogItemDto, } from './permission-catalog.dto';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/permissions/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/permissions/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ export interface PermissionCatalogGroupDto {
2
+ id: string;
3
+ name: string;
4
+ order: number;
5
+ }
6
+ export interface PermissionCatalogItemDto {
7
+ key: string;
8
+ groupId: string;
9
+ label: string;
10
+ order: number;
11
+ }
12
+ export interface PermissionCatalogDto {
13
+ groups: PermissionCatalogGroupDto[];
14
+ permissions: PermissionCatalogItemDto[];
15
+ }
16
+ //# sourceMappingURL=permission-catalog.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission-catalog.dto.d.ts","sourceRoot":"","sources":["../../../src/api/permissions/permission-catalog.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,yBAAyB,EAAE,CAAC;IACpC,WAAW,EAAE,wBAAwB,EAAE,CAAC;CACzC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=permission-catalog.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission-catalog.dto.js","sourceRoot":"","sources":["../../../src/api/permissions/permission-catalog.dto.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- export type { CreateUserRoleRequest, UpdateUserRoleRequest, UserRoleDetailDto, UserRoleDto, UserRoleSummaryDto, } from './user-role.dto';
1
+ export type { CreateUserRoleRequest, ReorderUserRolesRequest, UpdateUserRoleRequest, UserRoleDetailDto, UserRoleDto, UserRoleSummaryDto, } from './user-role.dto';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/user-roles/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,WAAW,EACX,kBAAkB,GACnB,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/user-roles/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,WAAW,EACX,kBAAkB,GACnB,MAAM,iBAAiB,CAAC"}
@@ -22,6 +22,12 @@ export interface UpdateUserRoleRequest {
22
22
  name?: string;
23
23
  permissions?: Record<string, boolean>;
24
24
  }
25
+ export interface ReorderUserRolesRequest {
26
+ updates: Array<{
27
+ id: string;
28
+ order: number;
29
+ }>;
30
+ }
25
31
  /** Same shape as staff summary `role`; list item for pickers. */
26
32
  export type UserRoleSummaryDto = Pick<UserRoleDto, 'id' | 'name' | 'value'>;
27
33
  //# sourceMappingURL=user-role.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-role.dto.d.ts","sourceRoot":"","sources":["../../../src/api/user-roles/user-role.dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,UAA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AC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/C;AAED,iEAAiE;AACjE,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-salon-management",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
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
@@ -14,3 +14,4 @@ export * from './user/index';
14
14
  export * from './company-settings/index';
15
15
  export * from './staff/index';
16
16
  export * from './user-roles/index';
17
+ export * from './permissions/index';
@@ -0,0 +1,5 @@
1
+ export type {
2
+ PermissionCatalogDto,
3
+ PermissionCatalogGroupDto,
4
+ PermissionCatalogItemDto,
5
+ } from './permission-catalog.dto';
@@ -0,0 +1,17 @@
1
+ export interface PermissionCatalogGroupDto {
2
+ id: string;
3
+ name: string;
4
+ order: number;
5
+ }
6
+
7
+ export interface PermissionCatalogItemDto {
8
+ key: string;
9
+ groupId: string;
10
+ label: string;
11
+ order: number;
12
+ }
13
+
14
+ export interface PermissionCatalogDto {
15
+ groups: PermissionCatalogGroupDto[];
16
+ permissions: PermissionCatalogItemDto[];
17
+ }
@@ -1,5 +1,6 @@
1
1
  export type {
2
2
  CreateUserRoleRequest,
3
+ ReorderUserRolesRequest,
3
4
  UpdateUserRoleRequest,
4
5
  UserRoleDetailDto,
5
6
  UserRoleDto,
@@ -27,5 +27,9 @@ export interface UpdateUserRoleRequest {
27
27
  permissions?: Record<string, boolean>;
28
28
  }
29
29
 
30
+ export interface ReorderUserRolesRequest {
31
+ updates: Array<{ id: string; order: number }>;
32
+ }
33
+
30
34
  /** Same shape as staff summary `role`; list item for pickers. */
31
35
  export type UserRoleSummaryDto = Pick<UserRoleDto, 'id' | 'name' | 'value'>;