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.
- 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/dist/api/permissions/index.d.ts +2 -0
- package/dist/api/permissions/index.d.ts.map +1 -0
- package/dist/api/permissions/index.js +3 -0
- package/dist/api/permissions/index.js.map +1 -0
- package/dist/api/permissions/permission-catalog.dto.d.ts +16 -0
- package/dist/api/permissions/permission-catalog.dto.d.ts.map +1 -0
- package/dist/api/permissions/permission-catalog.dto.js +3 -0
- package/dist/api/permissions/permission-catalog.dto.js.map +1 -0
- package/dist/api/user-roles/index.d.ts +1 -1
- package/dist/api/user-roles/index.d.ts.map +1 -1
- package/dist/api/user-roles/user-role.dto.d.ts +6 -0
- package/dist/api/user-roles/user-role.dto.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/index.ts +1 -0
- package/src/api/permissions/index.ts +5 -0
- package/src/api/permissions/permission-catalog.dto.ts +17 -0
- package/src/api/user-roles/index.ts +1 -0
- package/src/api/user-roles/user-role.dto.ts +4 -0
package/dist/api/index.d.ts
CHANGED
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,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
|
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,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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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,UAAU,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,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,iEAAiE;AACjE,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC"}
|
|
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,UAAU,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,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
package/src/api/index.ts
CHANGED
|
@@ -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
|
+
}
|
|
@@ -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'>;
|