@jugarhoy/api 1.0.7 → 1.0.9

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.
Files changed (46) hide show
  1. package/apis/AdminClubConfigApi.ts +294 -0
  2. package/apis/AdminClubsApi.ts +48 -0
  3. package/apis/AdminPlaySpotShiftsApi.ts +11 -3
  4. package/apis/AdminPlaySpotsApi.ts +11 -3
  5. package/apis/AdminReservationsApi.ts +5 -0
  6. package/apis/AdminWhatsAppTemplatesApi.ts +330 -0
  7. package/apis/AuthApi.ts +12 -12
  8. package/apis/DevicesApi.ts +52 -0
  9. package/apis/NotificationsApi.ts +167 -0
  10. package/apis/ReservesApi.ts +2 -10
  11. package/apis/index.ts +3 -0
  12. package/models/ApiAdminPlayPricesIdPutRequest.ts +6 -22
  13. package/models/ApiAdminPlayPricesPostRequest.ts +7 -23
  14. package/models/ApproveClubResponse.ts +83 -0
  15. package/models/ApproveClubResponseResult.ts +81 -0
  16. package/models/ComputedValueType.ts +59 -0
  17. package/models/CreateServiceConfigRequest.ts +152 -0
  18. package/models/CustomerServiceConfig.ts +168 -0
  19. package/models/CustomerServiceConfigDto.ts +180 -0
  20. package/models/HasDoorlock200Response.ts +65 -0
  21. package/models/MarkNotificationAsRead200Response.ts +65 -0
  22. package/models/Notification.ts +147 -0
  23. package/models/NotificationCategory.ts +58 -0
  24. package/models/NotificationChannelType.ts +55 -0
  25. package/models/NotificationDto.ts +139 -0
  26. package/models/NotificationListResponseDto.ts +89 -0
  27. package/models/NotificationTemplate.ts +146 -0
  28. package/models/NotificationTemplateDto.ts +155 -0
  29. package/models/NotificationType.ts +5 -5
  30. package/models/ParameterMapping.ts +161 -0
  31. package/models/ParameterValueType.ts +55 -0
  32. package/models/PlayPrice.ts +8 -25
  33. package/models/ProcessEmailMessageRequest.ts +41 -5
  34. package/models/ServiceType.ts +53 -0
  35. package/models/TestNotificationTemplate200Response.ts +73 -0
  36. package/models/TestNotificationTemplateRequest.ts +66 -0
  37. package/models/ToggleServiceConfigRequest.ts +66 -0
  38. package/models/UnreadCountResponseDto.ts +65 -0
  39. package/models/UpdateServiceConfigRequest.ts +125 -0
  40. package/models/UpsertNotificationTemplateRequest.ts +123 -0
  41. package/models/{UserNotification.ts → UserNotificationConfig.ts} +27 -27
  42. package/models/UserSession.ts +8 -0
  43. package/models/WhatsAppProvider.ts +54 -0
  44. package/models/index.ts +26 -2
  45. package/package.json +1 -1
  46. package/models/RequestPasswordReset200Response.ts +0 -65
@@ -0,0 +1,161 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ParameterMapping
20
+ */
21
+ export interface ParameterMapping {
22
+ /**
23
+ * Parameter name (e.g., "1", "2", "3" for WhatsApp template parameters)
24
+ * @type {string}
25
+ * @memberof ParameterMapping
26
+ */
27
+ name: string;
28
+ /**
29
+ * Type of parameter value mapping
30
+ * @type {string}
31
+ * @memberof ParameterMapping
32
+ */
33
+ valueType: ParameterMappingValueTypeEnum;
34
+ /**
35
+ * Field name from Reserve model (when valueType is FIELD)
36
+ * @type {string}
37
+ * @memberof ParameterMapping
38
+ */
39
+ fieldName?: string | null;
40
+ /**
41
+ * Computed value type (when valueType is COMPUTED)
42
+ * @type {string}
43
+ * @memberof ParameterMapping
44
+ */
45
+ computedType?: ParameterMappingComputedTypeEnum | null;
46
+ /**
47
+ * Static constant value (when valueType is CONSTANT)
48
+ * @type {string}
49
+ * @memberof ParameterMapping
50
+ */
51
+ constantValue?: string | null;
52
+ /**
53
+ * URL type to generate (when valueType is URL)
54
+ * @type {string}
55
+ * @memberof ParameterMapping
56
+ */
57
+ urlType?: ParameterMappingUrlTypeEnum | null;
58
+ /**
59
+ * Button sub-type (when parameter name starts with "button_")
60
+ * @type {string}
61
+ * @memberof ParameterMapping
62
+ */
63
+ buttonSubType?: ParameterMappingButtonSubTypeEnum | null;
64
+ }
65
+
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const ParameterMappingValueTypeEnum = {
71
+ Field: 'FIELD',
72
+ Computed: 'COMPUTED',
73
+ Constant: 'CONSTANT',
74
+ Url: 'URL'
75
+ } as const;
76
+ export type ParameterMappingValueTypeEnum = typeof ParameterMappingValueTypeEnum[keyof typeof ParameterMappingValueTypeEnum];
77
+
78
+ /**
79
+ * @export
80
+ */
81
+ export const ParameterMappingComputedTypeEnum = {
82
+ DateFormat: 'DATE_FORMAT',
83
+ TimeRange: 'TIME_RANGE',
84
+ PriceFormat: 'PRICE_FORMAT',
85
+ PhoneFormat: 'PHONE_FORMAT',
86
+ CustomerName: 'CUSTOMER_NAME',
87
+ LocationName: 'LOCATION_NAME',
88
+ SpotName: 'SPOT_NAME',
89
+ DurationMinutes: 'DURATION_MINUTES'
90
+ } as const;
91
+ export type ParameterMappingComputedTypeEnum = typeof ParameterMappingComputedTypeEnum[keyof typeof ParameterMappingComputedTypeEnum];
92
+
93
+ /**
94
+ * @export
95
+ */
96
+ export const ParameterMappingUrlTypeEnum = {
97
+ AccessCode: 'ACCESS_CODE',
98
+ ReservationDetails: 'RESERVATION_DETAILS'
99
+ } as const;
100
+ export type ParameterMappingUrlTypeEnum = typeof ParameterMappingUrlTypeEnum[keyof typeof ParameterMappingUrlTypeEnum];
101
+
102
+ /**
103
+ * @export
104
+ */
105
+ export const ParameterMappingButtonSubTypeEnum = {
106
+ Url: 'url',
107
+ QuickReply: 'quick_reply'
108
+ } as const;
109
+ export type ParameterMappingButtonSubTypeEnum = typeof ParameterMappingButtonSubTypeEnum[keyof typeof ParameterMappingButtonSubTypeEnum];
110
+
111
+
112
+ /**
113
+ * Check if a given object implements the ParameterMapping interface.
114
+ */
115
+ export function instanceOfParameterMapping(value: object): value is ParameterMapping {
116
+ if (!('name' in value) || value['name'] === undefined) return false;
117
+ if (!('valueType' in value) || value['valueType'] === undefined) return false;
118
+ return true;
119
+ }
120
+
121
+ export function ParameterMappingFromJSON(json: any): ParameterMapping {
122
+ return ParameterMappingFromJSONTyped(json, false);
123
+ }
124
+
125
+ export function ParameterMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParameterMapping {
126
+ if (json == null) {
127
+ return json;
128
+ }
129
+ return {
130
+
131
+ 'name': json['name'],
132
+ 'valueType': json['valueType'],
133
+ 'fieldName': json['fieldName'] == null ? undefined : json['fieldName'],
134
+ 'computedType': json['computedType'] == null ? undefined : json['computedType'],
135
+ 'constantValue': json['constantValue'] == null ? undefined : json['constantValue'],
136
+ 'urlType': json['urlType'] == null ? undefined : json['urlType'],
137
+ 'buttonSubType': json['buttonSubType'] == null ? undefined : json['buttonSubType'],
138
+ };
139
+ }
140
+
141
+ export function ParameterMappingToJSON(json: any): ParameterMapping {
142
+ return ParameterMappingToJSONTyped(json, false);
143
+ }
144
+
145
+ export function ParameterMappingToJSONTyped(value?: ParameterMapping | null, ignoreDiscriminator: boolean = false): any {
146
+ if (value == null) {
147
+ return value;
148
+ }
149
+
150
+ return {
151
+
152
+ 'name': value['name'],
153
+ 'valueType': value['valueType'],
154
+ 'fieldName': value['fieldName'],
155
+ 'computedType': value['computedType'],
156
+ 'constantValue': value['constantValue'],
157
+ 'urlType': value['urlType'],
158
+ 'buttonSubType': value['buttonSubType'],
159
+ };
160
+ }
161
+
@@ -0,0 +1,55 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ * Represents the type of parameter value mapping
18
+ * @export
19
+ */
20
+ export const ParameterValueType = {
21
+ Field: 'FIELD',
22
+ Computed: 'COMPUTED',
23
+ Constant: 'CONSTANT',
24
+ Url: 'URL'
25
+ } as const;
26
+ export type ParameterValueType = typeof ParameterValueType[keyof typeof ParameterValueType];
27
+
28
+
29
+ export function instanceOfParameterValueType(value: any): boolean {
30
+ for (const key in ParameterValueType) {
31
+ if (Object.prototype.hasOwnProperty.call(ParameterValueType, key)) {
32
+ if (ParameterValueType[key as keyof typeof ParameterValueType] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function ParameterValueTypeFromJSON(json: any): ParameterValueType {
41
+ return ParameterValueTypeFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function ParameterValueTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParameterValueType {
45
+ return json as ParameterValueType;
46
+ }
47
+
48
+ export function ParameterValueTypeToJSON(value?: ParameterValueType | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function ParameterValueTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ParameterValueType {
53
+ return value as ParameterValueType;
54
+ }
55
+
@@ -13,14 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { DayOfWeek } from './DayOfWeek';
17
- import {
18
- DayOfWeekFromJSON,
19
- DayOfWeekFromJSONTyped,
20
- DayOfWeekToJSON,
21
- DayOfWeekToJSONTyped,
22
- } from './DayOfWeek';
23
-
24
16
  /**
25
17
  *
26
18
  * @export
@@ -58,23 +50,17 @@ export interface PlayPrice {
58
50
  */
59
51
  price: number;
60
52
  /**
61
- * Days of the week this price applies to
62
- * @type {Array<DayOfWeek>}
63
- * @memberof PlayPrice
64
- */
65
- weekDays: Array<DayOfWeek>;
66
- /**
67
- * Time from which the price applies in HH:MM format (e.g., "09:15", "14:30")
68
- * @type {string}
53
+ * IDs of the play spots this price applies to. Empty array means applies to all spots.
54
+ * @type {Array<string>}
69
55
  * @memberof PlayPrice
70
56
  */
71
- hourFrom: string;
57
+ playSpotIds: Array<string>;
72
58
  /**
73
- * IDs of the play spots this price applies to
59
+ * IDs of the play spot shifts this price applies to. Can be empty array if shifts not configured yet.
74
60
  * @type {Array<string>}
75
61
  * @memberof PlayPrice
76
62
  */
77
- playSpotIds: Array<string>;
63
+ playSpotShiftIds: Array<string>;
78
64
  /**
79
65
  * Whether this price is for subscription-based access
80
66
  * @type {boolean}
@@ -108,9 +94,8 @@ export function instanceOfPlayPrice(value: object): value is PlayPrice {
108
94
  if (!('name' in value) || value['name'] === undefined) return false;
109
95
  if (!('duration' in value) || value['duration'] === undefined) return false;
110
96
  if (!('price' in value) || value['price'] === undefined) return false;
111
- if (!('weekDays' in value) || value['weekDays'] === undefined) return false;
112
- if (!('hourFrom' in value) || value['hourFrom'] === undefined) return false;
113
97
  if (!('playSpotIds' in value) || value['playSpotIds'] === undefined) return false;
98
+ if (!('playSpotShiftIds' in value) || value['playSpotShiftIds'] === undefined) return false;
114
99
  if (!('isSubscription' in value) || value['isSubscription'] === undefined) return false;
115
100
  if (!('chargeOn' in value) || value['chargeOn'] === undefined) return false;
116
101
  return true;
@@ -131,9 +116,8 @@ export function PlayPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean):
131
116
  'name': json['name'],
132
117
  'duration': json['duration'],
133
118
  'price': json['price'],
134
- 'weekDays': ((json['weekDays'] as Array<any>).map(DayOfWeekFromJSON)),
135
- 'hourFrom': json['hourFrom'],
136
119
  'playSpotIds': json['playSpotIds'],
120
+ 'playSpotShiftIds': json['playSpotShiftIds'],
137
121
  'isSubscription': json['isSubscription'],
138
122
  'chargeOn': json['chargeOn'],
139
123
  };
@@ -155,9 +139,8 @@ export function PlayPriceToJSONTyped(value?: PlayPrice | null, ignoreDiscriminat
155
139
  'name': value['name'],
156
140
  'duration': value['duration'],
157
141
  'price': value['price'],
158
- 'weekDays': ((value['weekDays'] as Array<any>).map(DayOfWeekToJSON)),
159
- 'hourFrom': value['hourFrom'],
160
142
  'playSpotIds': value['playSpotIds'],
143
+ 'playSpotShiftIds': value['playSpotShiftIds'],
161
144
  'isSubscription': value['isSubscription'],
162
145
  'chargeOn': value['chargeOn'],
163
146
  };
@@ -20,18 +20,46 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface ProcessEmailMessageRequest {
22
22
  /**
23
- * The email message content
23
+ * Gmail message ID
24
24
  * @type {string}
25
25
  * @memberof ProcessEmailMessageRequest
26
26
  */
27
- message: string;
27
+ gmailMessageId: string;
28
+ /**
29
+ * Email subject line
30
+ * @type {string}
31
+ * @memberof ProcessEmailMessageRequest
32
+ */
33
+ subject: string;
34
+ /**
35
+ * Email HTML body content (will be parsed for reservation data)
36
+ * @type {string}
37
+ * @memberof ProcessEmailMessageRequest
38
+ */
39
+ body: string;
40
+ /**
41
+ * Sender email address
42
+ * @type {string}
43
+ * @memberof ProcessEmailMessageRequest
44
+ */
45
+ from: string;
46
+ /**
47
+ * Date when email was received
48
+ * @type {Date}
49
+ * @memberof ProcessEmailMessageRequest
50
+ */
51
+ receivedDate: Date;
28
52
  }
29
53
 
30
54
  /**
31
55
  * Check if a given object implements the ProcessEmailMessageRequest interface.
32
56
  */
33
57
  export function instanceOfProcessEmailMessageRequest(value: object): value is ProcessEmailMessageRequest {
34
- if (!('message' in value) || value['message'] === undefined) return false;
58
+ if (!('gmailMessageId' in value) || value['gmailMessageId'] === undefined) return false;
59
+ if (!('subject' in value) || value['subject'] === undefined) return false;
60
+ if (!('body' in value) || value['body'] === undefined) return false;
61
+ if (!('from' in value) || value['from'] === undefined) return false;
62
+ if (!('receivedDate' in value) || value['receivedDate'] === undefined) return false;
35
63
  return true;
36
64
  }
37
65
 
@@ -45,7 +73,11 @@ export function ProcessEmailMessageRequestFromJSONTyped(json: any, ignoreDiscrim
45
73
  }
46
74
  return {
47
75
 
48
- 'message': json['message'],
76
+ 'gmailMessageId': json['gmailMessageId'],
77
+ 'subject': json['subject'],
78
+ 'body': json['body'],
79
+ 'from': json['from'],
80
+ 'receivedDate': (new Date(json['receivedDate'])),
49
81
  };
50
82
  }
51
83
 
@@ -60,7 +92,11 @@ export function ProcessEmailMessageRequestToJSONTyped(value?: ProcessEmailMessag
60
92
 
61
93
  return {
62
94
 
63
- 'message': value['message'],
95
+ 'gmailMessageId': value['gmailMessageId'],
96
+ 'subject': value['subject'],
97
+ 'body': value['body'],
98
+ 'from': value['from'],
99
+ 'receivedDate': ((value['receivedDate']).toISOString()),
64
100
  };
65
101
  }
66
102
 
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ * Type of service configuration (WhatsApp or Tuya IoT)
18
+ * @export
19
+ */
20
+ export const ServiceType = {
21
+ Whatsapp: 'whatsapp',
22
+ Tuya: 'tuya'
23
+ } as const;
24
+ export type ServiceType = typeof ServiceType[keyof typeof ServiceType];
25
+
26
+
27
+ export function instanceOfServiceType(value: any): boolean {
28
+ for (const key in ServiceType) {
29
+ if (Object.prototype.hasOwnProperty.call(ServiceType, key)) {
30
+ if (ServiceType[key as keyof typeof ServiceType] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function ServiceTypeFromJSON(json: any): ServiceType {
39
+ return ServiceTypeFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ServiceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServiceType {
43
+ return json as ServiceType;
44
+ }
45
+
46
+ export function ServiceTypeToJSON(value?: ServiceType | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function ServiceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ServiceType {
51
+ return value as ServiceType;
52
+ }
53
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface TestNotificationTemplate200Response
20
+ */
21
+ export interface TestNotificationTemplate200Response {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof TestNotificationTemplate200Response
26
+ */
27
+ success?: boolean;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof TestNotificationTemplate200Response
32
+ */
33
+ message?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the TestNotificationTemplate200Response interface.
38
+ */
39
+ export function instanceOfTestNotificationTemplate200Response(value: object): value is TestNotificationTemplate200Response {
40
+ return true;
41
+ }
42
+
43
+ export function TestNotificationTemplate200ResponseFromJSON(json: any): TestNotificationTemplate200Response {
44
+ return TestNotificationTemplate200ResponseFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function TestNotificationTemplate200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestNotificationTemplate200Response {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'success': json['success'] == null ? undefined : json['success'],
54
+ 'message': json['message'] == null ? undefined : json['message'],
55
+ };
56
+ }
57
+
58
+ export function TestNotificationTemplate200ResponseToJSON(json: any): TestNotificationTemplate200Response {
59
+ return TestNotificationTemplate200ResponseToJSONTyped(json, false);
60
+ }
61
+
62
+ export function TestNotificationTemplate200ResponseToJSONTyped(value?: TestNotificationTemplate200Response | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'success': value['success'],
70
+ 'message': value['message'],
71
+ };
72
+ }
73
+
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface TestNotificationTemplateRequest
20
+ */
21
+ export interface TestNotificationTemplateRequest {
22
+ /**
23
+ * Phone number to send test message to (including country code, e.g., +59891234567)
24
+ * @type {string}
25
+ * @memberof TestNotificationTemplateRequest
26
+ */
27
+ phoneNumber: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the TestNotificationTemplateRequest interface.
32
+ */
33
+ export function instanceOfTestNotificationTemplateRequest(value: object): value is TestNotificationTemplateRequest {
34
+ if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function TestNotificationTemplateRequestFromJSON(json: any): TestNotificationTemplateRequest {
39
+ return TestNotificationTemplateRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function TestNotificationTemplateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestNotificationTemplateRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'phoneNumber': json['phoneNumber'],
49
+ };
50
+ }
51
+
52
+ export function TestNotificationTemplateRequestToJSON(json: any): TestNotificationTemplateRequest {
53
+ return TestNotificationTemplateRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function TestNotificationTemplateRequestToJSONTyped(value?: TestNotificationTemplateRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'phoneNumber': value['phoneNumber'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ToggleServiceConfigRequest
20
+ */
21
+ export interface ToggleServiceConfigRequest {
22
+ /**
23
+ * New enabled status
24
+ * @type {boolean}
25
+ * @memberof ToggleServiceConfigRequest
26
+ */
27
+ enabled: boolean;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ToggleServiceConfigRequest interface.
32
+ */
33
+ export function instanceOfToggleServiceConfigRequest(value: object): value is ToggleServiceConfigRequest {
34
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ToggleServiceConfigRequestFromJSON(json: any): ToggleServiceConfigRequest {
39
+ return ToggleServiceConfigRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ToggleServiceConfigRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToggleServiceConfigRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'enabled': json['enabled'],
49
+ };
50
+ }
51
+
52
+ export function ToggleServiceConfigRequestToJSON(json: any): ToggleServiceConfigRequest {
53
+ return ToggleServiceConfigRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function ToggleServiceConfigRequestToJSONTyped(value?: ToggleServiceConfigRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'enabled': value['enabled'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface UnreadCountResponseDto
20
+ */
21
+ export interface UnreadCountResponseDto {
22
+ /**
23
+ * Number of unread notifications
24
+ * @type {number}
25
+ * @memberof UnreadCountResponseDto
26
+ */
27
+ count?: number;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the UnreadCountResponseDto interface.
32
+ */
33
+ export function instanceOfUnreadCountResponseDto(value: object): value is UnreadCountResponseDto {
34
+ return true;
35
+ }
36
+
37
+ export function UnreadCountResponseDtoFromJSON(json: any): UnreadCountResponseDto {
38
+ return UnreadCountResponseDtoFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function UnreadCountResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnreadCountResponseDto {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'count': json['count'] == null ? undefined : json['count'],
48
+ };
49
+ }
50
+
51
+ export function UnreadCountResponseDtoToJSON(json: any): UnreadCountResponseDto {
52
+ return UnreadCountResponseDtoToJSONTyped(json, false);
53
+ }
54
+
55
+ export function UnreadCountResponseDtoToJSONTyped(value?: UnreadCountResponseDto | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'count': value['count'],
63
+ };
64
+ }
65
+