types-salon-management 1.0.4 → 1.0.5
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.js +22 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/master.js +3 -0
- package/dist/api/master.js.map +1 -0
- package/dist/api/onboarding.js +3 -0
- package/dist/api/onboarding.js.map +1 -0
- package/dist/api/session.js +3 -0
- package/dist/api/session.js.map +1 -0
- package/dist/api/tax.js +3 -0
- package/dist/api/tax.js.map +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/models/session.model.js +18 -0
- package/dist/models/session.model.js.map +1 -1
- package/dist/models/tax.model.js +18 -0
- package/dist/models/tax.model.js.map +1 -1
- package/package.json +1 -1
- package/src/api/index.ts +5 -0
- package/src/api/master.ts +20 -0
- package/src/api/onboarding.ts +26 -0
- package/src/api/session.ts +111 -0
- package/src/api/tax.ts +34 -0
- package/src/index.ts +1 -0
- package/src/models/session.model.ts +4 -156
- package/src/models/tax.model.ts +4 -34
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
/** Postgres HTTP API contract — shared by backend and Angular app */
|
|
18
|
+
__exportStar(require("./session"), exports);
|
|
19
|
+
__exportStar(require("./onboarding"), exports);
|
|
20
|
+
__exportStar(require("./master"), exports);
|
|
21
|
+
__exportStar(require("./tax"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,4CAA0B;AAC1B,+CAA6B;AAC7B,2CAAyB;AACzB,wCAAsB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"master.js","sourceRoot":"","sources":["../../src/api/master.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding.js","sourceRoot":"","sources":["../../src/api/onboarding.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/api/session.ts"],"names":[],"mappings":""}
|
package/dist/api/tax.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tax.js","sourceRoot":"","sources":["../../src/api/tax.ts"],"names":[],"mappings":""}
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api/index"), exports);
|
|
17
18
|
__exportStar(require("./models/index"), exports);
|
|
18
19
|
__exportStar(require("./enum/index"), exports);
|
|
19
20
|
__exportStar(require("./consts/index"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,+CAA6B;AAC7B,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,+CAA6B;AAC7B,iDAA+B"}
|
|
@@ -1,3 +1,21 @@
|
|
|
1
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Import from `types-salon-management/api` or package root. Moved to src/api/session.ts.
|
|
19
|
+
*/
|
|
20
|
+
__exportStar(require("../api/session"), exports);
|
|
3
21
|
//# sourceMappingURL=session.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.model.js","sourceRoot":"","sources":["../../src/models/session.model.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"session.model.js","sourceRoot":"","sources":["../../src/models/session.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,iDAA+B"}
|
package/dist/models/tax.model.js
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Import from `types-salon-management/api` or package root. Moved to src/api/tax.ts.
|
|
19
|
+
*/
|
|
20
|
+
__exportStar(require("../api/tax"), exports);
|
|
3
21
|
//# sourceMappingURL=tax.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax.model.js","sourceRoot":"","sources":["../../src/models/tax.model.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"tax.model.js","sourceRoot":"","sources":["../../src/models/tax.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,6CAA2B"}
|
package/package.json
CHANGED
package/src/api/index.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface MasterCountryDto {
|
|
2
|
+
code: string;
|
|
3
|
+
name: string;
|
|
4
|
+
currencyCode: string;
|
|
5
|
+
currencySymbol: string;
|
|
6
|
+
locale: string;
|
|
7
|
+
taxLabel: string;
|
|
8
|
+
defaultTimezone: string;
|
|
9
|
+
paymentGateway: string;
|
|
10
|
+
signupActive: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface MasterBusinessCategoryDto {
|
|
14
|
+
id: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
name: string;
|
|
17
|
+
description: string | null;
|
|
18
|
+
imageUrl: string | null;
|
|
19
|
+
active: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { UserDto } from './session';
|
|
2
|
+
|
|
3
|
+
export interface CreateOnboardingUserRequest {
|
|
4
|
+
email: string;
|
|
5
|
+
firstName: string;
|
|
6
|
+
lastName: string;
|
|
7
|
+
phone?: unknown;
|
|
8
|
+
color?: string;
|
|
9
|
+
photoUrl?: string;
|
|
10
|
+
countryCode: string;
|
|
11
|
+
timezone: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface CreateOnboardingCompanyRequest {
|
|
15
|
+
companyName: string;
|
|
16
|
+
/** UUIDs from GET /api/master/business-categories (1–4 items) */
|
|
17
|
+
businessCategoryIds: string[];
|
|
18
|
+
address?: unknown;
|
|
19
|
+
countryCode: string;
|
|
20
|
+
timezone: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface OnboardingUserResponseDto {
|
|
24
|
+
user: UserDto;
|
|
25
|
+
onboardingComplete: false;
|
|
26
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export interface UserProfileDto {
|
|
2
|
+
firstName: string;
|
|
3
|
+
lastName: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
photoUrl?: string;
|
|
7
|
+
countryCode: string;
|
|
8
|
+
timezone: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface UserDto {
|
|
12
|
+
id: string;
|
|
13
|
+
firebaseUid: string;
|
|
14
|
+
email: string | null;
|
|
15
|
+
companyId: string | null;
|
|
16
|
+
roleId: string | null;
|
|
17
|
+
staffId: string | null;
|
|
18
|
+
locationIds: string[] | null;
|
|
19
|
+
profile: UserProfileDto | null;
|
|
20
|
+
onboardingComplete: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface CompanyCountryDto {
|
|
24
|
+
code: string;
|
|
25
|
+
name: string;
|
|
26
|
+
currencyCode: string;
|
|
27
|
+
currencySymbol: string;
|
|
28
|
+
locale: string;
|
|
29
|
+
taxLabel: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface CompanyBusinessCategoryDto {
|
|
33
|
+
id: string;
|
|
34
|
+
slug: string;
|
|
35
|
+
name: string;
|
|
36
|
+
isPrimary: boolean;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface CompanyDto {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
slug: string | null;
|
|
43
|
+
countryCode: string | null;
|
|
44
|
+
currency: string | null;
|
|
45
|
+
timezone: string | null;
|
|
46
|
+
adminStaffId: string | null;
|
|
47
|
+
adminLocationId: string | null;
|
|
48
|
+
country: CompanyCountryDto | null;
|
|
49
|
+
paymentGateway: string | null;
|
|
50
|
+
businessCategories: CompanyBusinessCategoryDto[];
|
|
51
|
+
primaryBusinessCategoryId: string | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface LocationDto {
|
|
55
|
+
id: string;
|
|
56
|
+
companyId: string;
|
|
57
|
+
name: string;
|
|
58
|
+
slug: string | null;
|
|
59
|
+
description: string | null;
|
|
60
|
+
email: string | null;
|
|
61
|
+
address: unknown;
|
|
62
|
+
phones: unknown;
|
|
63
|
+
businessHours: unknown;
|
|
64
|
+
bookingSlotMinutes: number;
|
|
65
|
+
logoUrl: string | null;
|
|
66
|
+
photos: unknown;
|
|
67
|
+
privacy: string | null;
|
|
68
|
+
termsAndConditions: string | null;
|
|
69
|
+
/** Default service tax — tenant `taxes.id` (null = no tax; Firestore used 0) */
|
|
70
|
+
serviceTax: string | null;
|
|
71
|
+
/** Default product tax — tenant `taxes.id` (null = no tax; Firestore used 0) */
|
|
72
|
+
productTax: string | null;
|
|
73
|
+
onlineStatus: boolean;
|
|
74
|
+
isPublishedOnline: boolean;
|
|
75
|
+
timezone: string | null;
|
|
76
|
+
source: string | null;
|
|
77
|
+
active: boolean;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface RoleDto {
|
|
81
|
+
id: string;
|
|
82
|
+
name: string;
|
|
83
|
+
value: string;
|
|
84
|
+
isSystem: boolean;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** Granted permission keys for the current user's role */
|
|
88
|
+
export type PermissionMap = Record<string, boolean>;
|
|
89
|
+
|
|
90
|
+
export interface StaffDto {
|
|
91
|
+
id: string;
|
|
92
|
+
companyId: string;
|
|
93
|
+
userId: string | null;
|
|
94
|
+
firstName: string | null;
|
|
95
|
+
lastName: string | null;
|
|
96
|
+
displayName: string;
|
|
97
|
+
email: string | null;
|
|
98
|
+
locationIds: string[] | null;
|
|
99
|
+
designation: string | null;
|
|
100
|
+
active: boolean;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface SessionDto {
|
|
104
|
+
user: UserDto;
|
|
105
|
+
company: CompanyDto | null;
|
|
106
|
+
location: LocationDto | null;
|
|
107
|
+
staff: StaffDto | null;
|
|
108
|
+
role: RoleDto | null;
|
|
109
|
+
permissions: PermissionMap;
|
|
110
|
+
onboardingComplete: boolean;
|
|
111
|
+
}
|
package/src/api/tax.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TaxCategory } from '../enum/tax-category';
|
|
2
|
+
|
|
3
|
+
export type TaxCatalogSource = 'system' | 'user';
|
|
4
|
+
|
|
5
|
+
export interface TaxDto {
|
|
6
|
+
id: string;
|
|
7
|
+
companyId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
type: TaxCategory;
|
|
10
|
+
percentage: number | null;
|
|
11
|
+
isDefault: boolean;
|
|
12
|
+
source: TaxCatalogSource;
|
|
13
|
+
memberTaxIds: string[];
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string | null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface CreateTaxRequest {
|
|
19
|
+
name: string;
|
|
20
|
+
type: TaxCategory;
|
|
21
|
+
percentage?: number | null;
|
|
22
|
+
memberTaxIds?: string[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface UpdateTaxRequest {
|
|
26
|
+
name?: string;
|
|
27
|
+
percentage?: number | null;
|
|
28
|
+
memberTaxIds?: string[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface UpdateLocationTaxConfigRequest {
|
|
32
|
+
serviceTaxId?: string | null;
|
|
33
|
+
productTaxId?: string | null;
|
|
34
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,156 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
color?: string;
|
|
6
|
-
photoUrl?: string;
|
|
7
|
-
countryCode: string;
|
|
8
|
-
timezone: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface UserDto {
|
|
12
|
-
id: string;
|
|
13
|
-
firebaseUid: string;
|
|
14
|
-
email: string | null;
|
|
15
|
-
companyId: string | null;
|
|
16
|
-
roleId: string | null;
|
|
17
|
-
staffId: string | null;
|
|
18
|
-
locationIds: string[] | null;
|
|
19
|
-
profile: UserProfileDto | null;
|
|
20
|
-
onboardingComplete: boolean;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface CompanyCountryDto {
|
|
24
|
-
code: string;
|
|
25
|
-
name: string;
|
|
26
|
-
currencyCode: string;
|
|
27
|
-
currencySymbol: string;
|
|
28
|
-
locale: string;
|
|
29
|
-
taxLabel: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface CompanyBusinessCategoryDto {
|
|
33
|
-
id: string;
|
|
34
|
-
slug: string;
|
|
35
|
-
name: string;
|
|
36
|
-
isPrimary: boolean;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface CompanyDto {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
slug: string | null;
|
|
43
|
-
countryCode: string | null;
|
|
44
|
-
currency: string | null;
|
|
45
|
-
timezone: string | null;
|
|
46
|
-
adminStaffId: string | null;
|
|
47
|
-
adminLocationId: string | null;
|
|
48
|
-
country: CompanyCountryDto | null;
|
|
49
|
-
paymentGateway: string | null;
|
|
50
|
-
businessCategories: CompanyBusinessCategoryDto[];
|
|
51
|
-
primaryBusinessCategoryId: string | null;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface LocationDto {
|
|
55
|
-
id: string;
|
|
56
|
-
companyId: string;
|
|
57
|
-
name: string;
|
|
58
|
-
slug: string | null;
|
|
59
|
-
description: string | null;
|
|
60
|
-
email: string | null;
|
|
61
|
-
address: unknown;
|
|
62
|
-
phones: unknown;
|
|
63
|
-
businessHours: unknown;
|
|
64
|
-
bookingSlotMinutes: number;
|
|
65
|
-
logoUrl: string | null;
|
|
66
|
-
photos: unknown;
|
|
67
|
-
privacy: string | null;
|
|
68
|
-
termsAndConditions: string | null;
|
|
69
|
-
/** Default service tax — tenant `taxes.id` (null = no tax; Firestore used 0) */
|
|
70
|
-
serviceTax: string | null;
|
|
71
|
-
/** Default product tax — tenant `taxes.id` (null = no tax; Firestore used 0) */
|
|
72
|
-
productTax: string | null;
|
|
73
|
-
onlineStatus: boolean;
|
|
74
|
-
isPublishedOnline: boolean;
|
|
75
|
-
timezone: string | null;
|
|
76
|
-
source: string | null;
|
|
77
|
-
active: boolean;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export interface RoleDto {
|
|
81
|
-
id: string;
|
|
82
|
-
name: string;
|
|
83
|
-
value: string;
|
|
84
|
-
isSystem: boolean;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/** Granted permission keys for the current user's role */
|
|
88
|
-
export type PermissionMap = Record<string, boolean>;
|
|
89
|
-
|
|
90
|
-
export interface StaffDto {
|
|
91
|
-
id: string;
|
|
92
|
-
companyId: string;
|
|
93
|
-
userId: string | null;
|
|
94
|
-
firstName: string | null;
|
|
95
|
-
lastName: string | null;
|
|
96
|
-
displayName: string;
|
|
97
|
-
email: string | null;
|
|
98
|
-
locationIds: string[] | null;
|
|
99
|
-
designation: string | null;
|
|
100
|
-
active: boolean;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export interface SessionDto {
|
|
104
|
-
user: UserDto;
|
|
105
|
-
company: CompanyDto | null;
|
|
106
|
-
location: LocationDto | null;
|
|
107
|
-
staff: StaffDto | null;
|
|
108
|
-
role: RoleDto | null;
|
|
109
|
-
permissions: PermissionMap;
|
|
110
|
-
onboardingComplete: boolean;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export interface OnboardingUserResponseDto {
|
|
114
|
-
user: UserDto;
|
|
115
|
-
onboardingComplete: false;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface MasterCountryDto {
|
|
119
|
-
code: string;
|
|
120
|
-
name: string;
|
|
121
|
-
currencyCode: string;
|
|
122
|
-
currencySymbol: string;
|
|
123
|
-
locale: string;
|
|
124
|
-
taxLabel: string;
|
|
125
|
-
defaultTimezone: string;
|
|
126
|
-
paymentGateway: string;
|
|
127
|
-
signupActive: boolean;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export interface MasterBusinessCategoryDto {
|
|
131
|
-
id: string;
|
|
132
|
-
slug: string;
|
|
133
|
-
name: string;
|
|
134
|
-
description: string | null;
|
|
135
|
-
imageUrl: string | null;
|
|
136
|
-
active: boolean;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export interface CreateOnboardingUserRequest {
|
|
140
|
-
email: string;
|
|
141
|
-
firstName: string;
|
|
142
|
-
lastName: string;
|
|
143
|
-
phone?: unknown;
|
|
144
|
-
color?: string;
|
|
145
|
-
photoUrl?: string;
|
|
146
|
-
countryCode: string;
|
|
147
|
-
timezone: string;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export interface CreateOnboardingCompanyRequest {
|
|
151
|
-
companyName: string;
|
|
152
|
-
businessCategoryIds: string[];
|
|
153
|
-
address?: unknown;
|
|
154
|
-
countryCode: string;
|
|
155
|
-
timezone: string;
|
|
156
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import from `types-salon-management/api` or package root. Moved to src/api/session.ts.
|
|
3
|
+
*/
|
|
4
|
+
export * from '../api/session';
|
package/src/models/tax.model.ts
CHANGED
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface TaxDto {
|
|
6
|
-
id: string;
|
|
7
|
-
companyId: string;
|
|
8
|
-
name: string;
|
|
9
|
-
type: TaxCategory;
|
|
10
|
-
percentage: number | null;
|
|
11
|
-
isDefault: boolean;
|
|
12
|
-
source: TaxCatalogSource;
|
|
13
|
-
memberTaxIds: string[];
|
|
14
|
-
createdAt: string;
|
|
15
|
-
updatedAt: string | null;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface CreateTaxRequest {
|
|
19
|
-
name: string;
|
|
20
|
-
type: TaxCategory;
|
|
21
|
-
percentage?: number | null;
|
|
22
|
-
memberTaxIds?: string[];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface UpdateTaxRequest {
|
|
26
|
-
name?: string;
|
|
27
|
-
percentage?: number | null;
|
|
28
|
-
memberTaxIds?: string[];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface UpdateLocationTaxConfigRequest {
|
|
32
|
-
serviceTaxId?: string | null;
|
|
33
|
-
productTaxId?: string | null;
|
|
34
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import from `types-salon-management/api` or package root. Moved to src/api/tax.ts.
|
|
3
|
+
*/
|
|
4
|
+
export * from '../api/tax';
|