@jugarhoy/api 1.0.7 → 1.0.8
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/apis/AdminClubConfigApi.ts +294 -0
- package/apis/AdminClubsApi.ts +48 -0
- package/apis/AdminPlaySpotShiftsApi.ts +11 -3
- package/apis/AdminPlaySpotsApi.ts +11 -3
- package/apis/AdminReservationsApi.ts +5 -0
- package/apis/AdminWhatsAppTemplatesApi.ts +330 -0
- package/apis/DevicesApi.ts +52 -0
- package/apis/ReservesApi.ts +2 -10
- package/apis/index.ts +2 -0
- package/models/ApiAdminPlayPricesIdPutRequest.ts +6 -22
- package/models/ApiAdminPlayPricesPostRequest.ts +7 -23
- package/models/ApproveClubResponse.ts +83 -0
- package/models/ApproveClubResponseResult.ts +81 -0
- package/models/ComputedValueType.ts +59 -0
- package/models/CreateServiceConfigRequest.ts +152 -0
- package/models/CustomerServiceConfig.ts +168 -0
- package/models/CustomerServiceConfigDto.ts +180 -0
- package/models/HasDoorlock200Response.ts +65 -0
- package/models/NotificationTemplate.ts +146 -0
- package/models/NotificationTemplateDto.ts +155 -0
- package/models/ParameterMapping.ts +161 -0
- package/models/ParameterValueType.ts +55 -0
- package/models/PlayPrice.ts +8 -25
- package/models/ProcessEmailMessageRequest.ts +41 -5
- package/models/ServiceType.ts +53 -0
- package/models/TestNotificationTemplate200Response.ts +73 -0
- package/models/TestNotificationTemplateRequest.ts +66 -0
- package/models/ToggleServiceConfigRequest.ts +66 -0
- package/models/UpdateServiceConfigRequest.ts +125 -0
- package/models/UpsertNotificationTemplateRequest.ts +123 -0
- package/models/UserSession.ts +8 -0
- package/models/WhatsAppProvider.ts +54 -0
- package/models/index.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,146 @@
|
|
|
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
|
+
import type { ParameterMapping } from './ParameterMapping';
|
|
17
|
+
import {
|
|
18
|
+
ParameterMappingFromJSON,
|
|
19
|
+
ParameterMappingFromJSONTyped,
|
|
20
|
+
ParameterMappingToJSON,
|
|
21
|
+
ParameterMappingToJSONTyped,
|
|
22
|
+
} from './ParameterMapping';
|
|
23
|
+
import type { NotificationType } from './NotificationType';
|
|
24
|
+
import {
|
|
25
|
+
NotificationTypeFromJSON,
|
|
26
|
+
NotificationTypeFromJSONTyped,
|
|
27
|
+
NotificationTypeToJSON,
|
|
28
|
+
NotificationTypeToJSONTyped,
|
|
29
|
+
} from './NotificationType';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface NotificationTemplate
|
|
35
|
+
*/
|
|
36
|
+
export interface NotificationTemplate {
|
|
37
|
+
/**
|
|
38
|
+
* Unique identifier for the notification template
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof NotificationTemplate
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Customer ID this template belongs to
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof NotificationTemplate
|
|
47
|
+
*/
|
|
48
|
+
customerId: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {NotificationType}
|
|
52
|
+
* @memberof NotificationTemplate
|
|
53
|
+
*/
|
|
54
|
+
type: NotificationType;
|
|
55
|
+
/**
|
|
56
|
+
* WhatsApp template name (e.g., "reserve_confirmation")
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof NotificationTemplate
|
|
59
|
+
*/
|
|
60
|
+
templateName: string;
|
|
61
|
+
/**
|
|
62
|
+
* Template language code (e.g., "es", "en")
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof NotificationTemplate
|
|
65
|
+
*/
|
|
66
|
+
languageCode: string;
|
|
67
|
+
/**
|
|
68
|
+
* Array of parameter mappings for template variables
|
|
69
|
+
* @type {Array<ParameterMapping>}
|
|
70
|
+
* @memberof NotificationTemplate
|
|
71
|
+
*/
|
|
72
|
+
parameterMappings: Array<ParameterMapping>;
|
|
73
|
+
/**
|
|
74
|
+
* Timestamp when the template was created
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof NotificationTemplate
|
|
77
|
+
*/
|
|
78
|
+
createdAt: Date;
|
|
79
|
+
/**
|
|
80
|
+
* Timestamp when the template was last updated
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof NotificationTemplate
|
|
83
|
+
*/
|
|
84
|
+
updatedAt: Date;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Check if a given object implements the NotificationTemplate interface.
|
|
91
|
+
*/
|
|
92
|
+
export function instanceOfNotificationTemplate(value: object): value is NotificationTemplate {
|
|
93
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
94
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
95
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
96
|
+
if (!('templateName' in value) || value['templateName'] === undefined) return false;
|
|
97
|
+
if (!('languageCode' in value) || value['languageCode'] === undefined) return false;
|
|
98
|
+
if (!('parameterMappings' in value) || value['parameterMappings'] === undefined) return false;
|
|
99
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
100
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function NotificationTemplateFromJSON(json: any): NotificationTemplate {
|
|
105
|
+
return NotificationTemplateFromJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function NotificationTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTemplate {
|
|
109
|
+
if (json == null) {
|
|
110
|
+
return json;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
|
|
114
|
+
'id': json['id'],
|
|
115
|
+
'customerId': json['customerId'],
|
|
116
|
+
'type': NotificationTypeFromJSON(json['type']),
|
|
117
|
+
'templateName': json['templateName'],
|
|
118
|
+
'languageCode': json['languageCode'],
|
|
119
|
+
'parameterMappings': ((json['parameterMappings'] as Array<any>).map(ParameterMappingFromJSON)),
|
|
120
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
121
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function NotificationTemplateToJSON(json: any): NotificationTemplate {
|
|
126
|
+
return NotificationTemplateToJSONTyped(json, false);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function NotificationTemplateToJSONTyped(value?: NotificationTemplate | null, ignoreDiscriminator: boolean = false): any {
|
|
130
|
+
if (value == null) {
|
|
131
|
+
return value;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
|
|
136
|
+
'id': value['id'],
|
|
137
|
+
'customerId': value['customerId'],
|
|
138
|
+
'type': NotificationTypeToJSON(value['type']),
|
|
139
|
+
'templateName': value['templateName'],
|
|
140
|
+
'languageCode': value['languageCode'],
|
|
141
|
+
'parameterMappings': ((value['parameterMappings'] as Array<any>).map(ParameterMappingToJSON)),
|
|
142
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
143
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
@@ -0,0 +1,155 @@
|
|
|
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
|
+
import type { ParameterMapping } from './ParameterMapping';
|
|
17
|
+
import {
|
|
18
|
+
ParameterMappingFromJSON,
|
|
19
|
+
ParameterMappingFromJSONTyped,
|
|
20
|
+
ParameterMappingToJSON,
|
|
21
|
+
ParameterMappingToJSONTyped,
|
|
22
|
+
} from './ParameterMapping';
|
|
23
|
+
import type { NotificationType } from './NotificationType';
|
|
24
|
+
import {
|
|
25
|
+
NotificationTypeFromJSON,
|
|
26
|
+
NotificationTypeFromJSONTyped,
|
|
27
|
+
NotificationTypeToJSON,
|
|
28
|
+
NotificationTypeToJSONTyped,
|
|
29
|
+
} from './NotificationType';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface NotificationTemplateDto
|
|
35
|
+
*/
|
|
36
|
+
export interface NotificationTemplateDto {
|
|
37
|
+
/**
|
|
38
|
+
* Unique identifier for the notification template
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof NotificationTemplateDto
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Customer ID this template belongs to
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof NotificationTemplateDto
|
|
47
|
+
*/
|
|
48
|
+
customerId: string;
|
|
49
|
+
/**
|
|
50
|
+
* Customer name for display (superadmin view)
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof NotificationTemplateDto
|
|
53
|
+
*/
|
|
54
|
+
customerName: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {NotificationType}
|
|
58
|
+
* @memberof NotificationTemplateDto
|
|
59
|
+
*/
|
|
60
|
+
type: NotificationType;
|
|
61
|
+
/**
|
|
62
|
+
* WhatsApp template name (e.g., "reserve_confirmation")
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof NotificationTemplateDto
|
|
65
|
+
*/
|
|
66
|
+
templateName: string;
|
|
67
|
+
/**
|
|
68
|
+
* Template language code (e.g., "es", "en")
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof NotificationTemplateDto
|
|
71
|
+
*/
|
|
72
|
+
languageCode: string;
|
|
73
|
+
/**
|
|
74
|
+
* Array of parameter mappings for template variables
|
|
75
|
+
* @type {Array<ParameterMapping>}
|
|
76
|
+
* @memberof NotificationTemplateDto
|
|
77
|
+
*/
|
|
78
|
+
parameterMappings: Array<ParameterMapping>;
|
|
79
|
+
/**
|
|
80
|
+
* Timestamp when the template was created
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof NotificationTemplateDto
|
|
83
|
+
*/
|
|
84
|
+
createdAt: Date;
|
|
85
|
+
/**
|
|
86
|
+
* Timestamp when the template was last updated
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof NotificationTemplateDto
|
|
89
|
+
*/
|
|
90
|
+
updatedAt: Date;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the NotificationTemplateDto interface.
|
|
97
|
+
*/
|
|
98
|
+
export function instanceOfNotificationTemplateDto(value: object): value is NotificationTemplateDto {
|
|
99
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
100
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
101
|
+
if (!('customerName' in value) || value['customerName'] === undefined) return false;
|
|
102
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
103
|
+
if (!('templateName' in value) || value['templateName'] === undefined) return false;
|
|
104
|
+
if (!('languageCode' in value) || value['languageCode'] === undefined) return false;
|
|
105
|
+
if (!('parameterMappings' in value) || value['parameterMappings'] === undefined) return false;
|
|
106
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
107
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function NotificationTemplateDtoFromJSON(json: any): NotificationTemplateDto {
|
|
112
|
+
return NotificationTemplateDtoFromJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function NotificationTemplateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTemplateDto {
|
|
116
|
+
if (json == null) {
|
|
117
|
+
return json;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'id': json['id'],
|
|
122
|
+
'customerId': json['customerId'],
|
|
123
|
+
'customerName': json['customerName'],
|
|
124
|
+
'type': NotificationTypeFromJSON(json['type']),
|
|
125
|
+
'templateName': json['templateName'],
|
|
126
|
+
'languageCode': json['languageCode'],
|
|
127
|
+
'parameterMappings': ((json['parameterMappings'] as Array<any>).map(ParameterMappingFromJSON)),
|
|
128
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
129
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function NotificationTemplateDtoToJSON(json: any): NotificationTemplateDto {
|
|
134
|
+
return NotificationTemplateDtoToJSONTyped(json, false);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function NotificationTemplateDtoToJSONTyped(value?: NotificationTemplateDto | null, ignoreDiscriminator: boolean = false): any {
|
|
138
|
+
if (value == null) {
|
|
139
|
+
return value;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
|
|
144
|
+
'id': value['id'],
|
|
145
|
+
'customerId': value['customerId'],
|
|
146
|
+
'customerName': value['customerName'],
|
|
147
|
+
'type': NotificationTypeToJSON(value['type']),
|
|
148
|
+
'templateName': value['templateName'],
|
|
149
|
+
'languageCode': value['languageCode'],
|
|
150
|
+
'parameterMappings': ((value['parameterMappings'] as Array<any>).map(ParameterMappingToJSON)),
|
|
151
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
152
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
@@ -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
|
+
|
package/models/PlayPrice.ts
CHANGED
|
@@ -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
|
-
*
|
|
62
|
-
* @type {Array<
|
|
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
|
-
|
|
57
|
+
playSpotIds: Array<string>;
|
|
72
58
|
/**
|
|
73
|
-
* IDs of the play
|
|
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
|
-
|
|
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
|
-
*
|
|
23
|
+
* Gmail message ID
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ProcessEmailMessageRequest
|
|
26
26
|
*/
|
|
27
|
-
|
|
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 (!('
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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
|
|