@exclusive-website/types 1.2.3 → 1.2.4

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.
@@ -1,3 +1,9 @@
1
+ export declare enum DayStatus {
2
+ WORKING = "Pracujem",
3
+ ON_DEMAND = "Na objednavku",
4
+ BUSY = "Obsadena",
5
+ NOT_WORKING = "Nepracujem"
6
+ }
1
7
  export declare enum SexualOrientation {
2
8
  HETERO = "hetero",
3
9
  BI = "bi",
@@ -1,4 +1,11 @@
1
1
  // ENUMS
2
+ export var DayStatus;
3
+ (function (DayStatus) {
4
+ DayStatus["WORKING"] = "Pracujem";
5
+ DayStatus["ON_DEMAND"] = "Na objednavku";
6
+ DayStatus["BUSY"] = "Obsadena";
7
+ DayStatus["NOT_WORKING"] = "Nepracujem";
8
+ })(DayStatus || (DayStatus = {}));
2
9
  export var SexualOrientation;
3
10
  (function (SexualOrientation) {
4
11
  SexualOrientation["HETERO"] = "hetero";
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AvailableService, BreastSize, ContactMethod, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherOption, Practice, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, SpecialService } from "./filterEnums";
1
+ import { AvailableService, BreastSize, ContactMethod, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherOption, Practice, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, SpecialService } from "./filterEnums";
2
2
  export interface ModelDTO {
3
3
  id: number;
4
4
  media: {
@@ -44,6 +44,7 @@ export interface ModelDTO {
44
44
  description: string;
45
45
  contactMethods: ContactMethod[];
46
46
  };
47
+ schedule: ScheduleDTO;
47
48
  }
48
49
  export type CardDTO = Pick<ModelDTO, "id" | "media" | "identity" | "location" | "physical" | "listing">;
49
50
  export type ActivityStatus = "active" | "inactive";
@@ -73,6 +74,24 @@ export interface LoginUserDto {
73
74
  export interface JwtDto {
74
75
  token: string;
75
76
  }
77
+ export interface TimeRange {
78
+ from: string;
79
+ to: string;
80
+ }
81
+ export interface DaySchedule {
82
+ status: DayStatus;
83
+ delivery?: boolean;
84
+ workingHours?: TimeRange;
85
+ }
86
+ export interface ScheduleDTO {
87
+ monday: DaySchedule;
88
+ tuesday: DaySchedule;
89
+ wednesday: DaySchedule;
90
+ thursday: DaySchedule;
91
+ friday: DaySchedule;
92
+ saturday: DaySchedule;
93
+ sunday: DaySchedule;
94
+ }
76
95
  export interface ChargingOption {
77
96
  cost: number;
78
97
  currency: SupportedCurrency;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "A collection of shared types (DTOs and DBEs) for the organization",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +1,11 @@
1
1
  // ENUMS
2
+ export enum DayStatus {
3
+ WORKING = "Pracujem",
4
+ ON_DEMAND = "Na objednavku",
5
+ BUSY = "Obsadena",
6
+ NOT_WORKING = "Nepracujem",
7
+ }
8
+
2
9
  export enum SexualOrientation {
3
10
  HETERO = "hetero",
4
11
  BI = "bi",
package/src/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AvailabilityStatus, AvailableService, BreastSize, ContactMethod, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherOption, Practice, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, SpecialService } from "./filterEnums";
1
+ import { AvailabilityStatus, AvailableService, BreastSize, ContactMethod, DayStatus, ExperienceLevel, HairColor, HairLength, Language, NationalityOption, OtherOption, Practice, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, SpecialService } from "./filterEnums";
2
2
 
3
3
  export interface ModelDTO {
4
4
  id: number;
@@ -15,7 +15,6 @@ export interface ModelDTO {
15
15
  };
16
16
  location: {
17
17
  city: Location;
18
- // availability: AvailabilityStatus;
19
18
  };
20
19
  physical: {
21
20
  age: number;
@@ -46,6 +45,7 @@ export interface ModelDTO {
46
45
  description: string;
47
46
  contactMethods: ContactMethod[];
48
47
  };
48
+ schedule: ScheduleDTO;
49
49
  }
50
50
 
51
51
  export type CardDTO = Pick<
@@ -86,6 +86,28 @@ export interface JwtDto {
86
86
  token: string;
87
87
  }
88
88
 
89
+ //SCHEDULE
90
+ export interface TimeRange {
91
+ from: string; // Format: "HH:mm"
92
+ to: string; // Format: "HH:mm"
93
+ }
94
+
95
+ export interface DaySchedule {
96
+ status: DayStatus;
97
+ delivery?: boolean; // Optional, only relevant for PRACUJEM
98
+ workingHours?: TimeRange; // Optional, only for PRACUJEM with delivery
99
+ }
100
+
101
+ export interface ScheduleDTO {
102
+ monday: DaySchedule;
103
+ tuesday: DaySchedule;
104
+ wednesday: DaySchedule;
105
+ thursday: DaySchedule;
106
+ friday: DaySchedule;
107
+ saturday: DaySchedule;
108
+ sunday: DaySchedule;
109
+ }
110
+
89
111
  //PRICING
90
112
  export interface ChargingOption {
91
113
  cost: number;