@jugarhoy/api 1.0.6 → 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,81 @@
|
|
|
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 { Customer } from './Customer';
|
|
17
|
+
import {
|
|
18
|
+
CustomerFromJSON,
|
|
19
|
+
CustomerFromJSONTyped,
|
|
20
|
+
CustomerToJSON,
|
|
21
|
+
CustomerToJSONTyped,
|
|
22
|
+
} from './Customer';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApproveClubResponseResult
|
|
28
|
+
*/
|
|
29
|
+
export interface ApproveClubResponseResult {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Customer}
|
|
33
|
+
* @memberof ApproveClubResponseResult
|
|
34
|
+
*/
|
|
35
|
+
customer?: Customer;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApproveClubResponseResult
|
|
40
|
+
*/
|
|
41
|
+
message?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApproveClubResponseResult interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfApproveClubResponseResult(value: object): value is ApproveClubResponseResult {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ApproveClubResponseResultFromJSON(json: any): ApproveClubResponseResult {
|
|
52
|
+
return ApproveClubResponseResultFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ApproveClubResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApproveClubResponseResult {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'customer': json['customer'] == null ? undefined : CustomerFromJSON(json['customer']),
|
|
62
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApproveClubResponseResultToJSON(json: any): ApproveClubResponseResult {
|
|
67
|
+
return ApproveClubResponseResultToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApproveClubResponseResultToJSONTyped(value?: ApproveClubResponseResult | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'customer': CustomerToJSON(value['customer']),
|
|
78
|
+
'message': value['message'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
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 computed value from Reserve data
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ComputedValueType = {
|
|
21
|
+
DateFormat: 'DATE_FORMAT',
|
|
22
|
+
TimeRange: 'TIME_RANGE',
|
|
23
|
+
PriceFormat: 'PRICE_FORMAT',
|
|
24
|
+
PhoneFormat: 'PHONE_FORMAT',
|
|
25
|
+
CustomerName: 'CUSTOMER_NAME',
|
|
26
|
+
LocationName: 'LOCATION_NAME',
|
|
27
|
+
SpotName: 'SPOT_NAME',
|
|
28
|
+
DurationMinutes: 'DURATION_MINUTES'
|
|
29
|
+
} as const;
|
|
30
|
+
export type ComputedValueType = typeof ComputedValueType[keyof typeof ComputedValueType];
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
export function instanceOfComputedValueType(value: any): boolean {
|
|
34
|
+
for (const key in ComputedValueType) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(ComputedValueType, key)) {
|
|
36
|
+
if (ComputedValueType[key as keyof typeof ComputedValueType] === value) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ComputedValueTypeFromJSON(json: any): ComputedValueType {
|
|
45
|
+
return ComputedValueTypeFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ComputedValueTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComputedValueType {
|
|
49
|
+
return json as ComputedValueType;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ComputedValueTypeToJSON(value?: ComputedValueType | null): any {
|
|
53
|
+
return value as any;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ComputedValueTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ComputedValueType {
|
|
57
|
+
return value as ComputedValueType;
|
|
58
|
+
}
|
|
59
|
+
|
|
@@ -0,0 +1,152 @@
|
|
|
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 CreateServiceConfigRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateServiceConfigRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Customer ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateServiceConfigRequest
|
|
26
|
+
*/
|
|
27
|
+
customerId: string;
|
|
28
|
+
/**
|
|
29
|
+
* Service type
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateServiceConfigRequest
|
|
32
|
+
*/
|
|
33
|
+
type: CreateServiceConfigRequestTypeEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the service is enabled
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof CreateServiceConfigRequest
|
|
38
|
+
*/
|
|
39
|
+
enabled?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Service provider (for WhatsApp only)
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateServiceConfigRequest
|
|
44
|
+
*/
|
|
45
|
+
provider?: CreateServiceConfigRequestProviderEnum;
|
|
46
|
+
/**
|
|
47
|
+
* WhatsApp Phone Number ID (for WhatsApp custom provider)
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateServiceConfigRequest
|
|
50
|
+
*/
|
|
51
|
+
phoneNumberId?: string;
|
|
52
|
+
/**
|
|
53
|
+
* WhatsApp access token (for WhatsApp custom provider)
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CreateServiceConfigRequest
|
|
56
|
+
*/
|
|
57
|
+
accessToken?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Tuya API host URL (for Tuya only)
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof CreateServiceConfigRequest
|
|
62
|
+
*/
|
|
63
|
+
host?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Tuya or WhatsApp access key
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof CreateServiceConfigRequest
|
|
68
|
+
*/
|
|
69
|
+
accessKey?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Tuya secret key (for Tuya only)
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof CreateServiceConfigRequest
|
|
74
|
+
*/
|
|
75
|
+
secretKey?: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export const CreateServiceConfigRequestTypeEnum = {
|
|
83
|
+
Whatsapp: 'whatsapp',
|
|
84
|
+
Tuya: 'tuya'
|
|
85
|
+
} as const;
|
|
86
|
+
export type CreateServiceConfigRequestTypeEnum = typeof CreateServiceConfigRequestTypeEnum[keyof typeof CreateServiceConfigRequestTypeEnum];
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export const CreateServiceConfigRequestProviderEnum = {
|
|
92
|
+
None: 'none',
|
|
93
|
+
Jugarhoy: 'jugarhoy',
|
|
94
|
+
Custom: 'custom'
|
|
95
|
+
} as const;
|
|
96
|
+
export type CreateServiceConfigRequestProviderEnum = typeof CreateServiceConfigRequestProviderEnum[keyof typeof CreateServiceConfigRequestProviderEnum];
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Check if a given object implements the CreateServiceConfigRequest interface.
|
|
101
|
+
*/
|
|
102
|
+
export function instanceOfCreateServiceConfigRequest(value: object): value is CreateServiceConfigRequest {
|
|
103
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
104
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function CreateServiceConfigRequestFromJSON(json: any): CreateServiceConfigRequest {
|
|
109
|
+
return CreateServiceConfigRequestFromJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function CreateServiceConfigRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateServiceConfigRequest {
|
|
113
|
+
if (json == null) {
|
|
114
|
+
return json;
|
|
115
|
+
}
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'customerId': json['customerId'],
|
|
119
|
+
'type': json['type'],
|
|
120
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
121
|
+
'provider': json['provider'] == null ? undefined : json['provider'],
|
|
122
|
+
'phoneNumberId': json['phoneNumberId'] == null ? undefined : json['phoneNumberId'],
|
|
123
|
+
'accessToken': json['accessToken'] == null ? undefined : json['accessToken'],
|
|
124
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
125
|
+
'accessKey': json['accessKey'] == null ? undefined : json['accessKey'],
|
|
126
|
+
'secretKey': json['secretKey'] == null ? undefined : json['secretKey'],
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function CreateServiceConfigRequestToJSON(json: any): CreateServiceConfigRequest {
|
|
131
|
+
return CreateServiceConfigRequestToJSONTyped(json, false);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function CreateServiceConfigRequestToJSONTyped(value?: CreateServiceConfigRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
135
|
+
if (value == null) {
|
|
136
|
+
return value;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return {
|
|
140
|
+
|
|
141
|
+
'customerId': value['customerId'],
|
|
142
|
+
'type': value['type'],
|
|
143
|
+
'enabled': value['enabled'],
|
|
144
|
+
'provider': value['provider'],
|
|
145
|
+
'phoneNumberId': value['phoneNumberId'],
|
|
146
|
+
'accessToken': value['accessToken'],
|
|
147
|
+
'host': value['host'],
|
|
148
|
+
'accessKey': value['accessKey'],
|
|
149
|
+
'secretKey': value['secretKey'],
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
@@ -0,0 +1,168 @@
|
|
|
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 { ServiceType } from './ServiceType';
|
|
17
|
+
import {
|
|
18
|
+
ServiceTypeFromJSON,
|
|
19
|
+
ServiceTypeFromJSONTyped,
|
|
20
|
+
ServiceTypeToJSON,
|
|
21
|
+
ServiceTypeToJSONTyped,
|
|
22
|
+
} from './ServiceType';
|
|
23
|
+
import type { WhatsAppProvider } from './WhatsAppProvider';
|
|
24
|
+
import {
|
|
25
|
+
WhatsAppProviderFromJSON,
|
|
26
|
+
WhatsAppProviderFromJSONTyped,
|
|
27
|
+
WhatsAppProviderToJSON,
|
|
28
|
+
WhatsAppProviderToJSONTyped,
|
|
29
|
+
} from './WhatsAppProvider';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface CustomerServiceConfig
|
|
35
|
+
*/
|
|
36
|
+
export interface CustomerServiceConfig {
|
|
37
|
+
/**
|
|
38
|
+
* Unique identifier for the service configuration
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CustomerServiceConfig
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Customer ID this configuration belongs to
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CustomerServiceConfig
|
|
47
|
+
*/
|
|
48
|
+
customerId: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {ServiceType}
|
|
52
|
+
* @memberof CustomerServiceConfig
|
|
53
|
+
*/
|
|
54
|
+
type: ServiceType;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the service is enabled
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof CustomerServiceConfig
|
|
59
|
+
*/
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {WhatsAppProvider}
|
|
64
|
+
* @memberof CustomerServiceConfig
|
|
65
|
+
*/
|
|
66
|
+
provider?: WhatsAppProvider;
|
|
67
|
+
/**
|
|
68
|
+
* WhatsApp Phone Number ID (for custom WhatsApp provider only)
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CustomerServiceConfig
|
|
71
|
+
*/
|
|
72
|
+
phoneNumberId?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Service API host URL (required for Tuya)
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CustomerServiceConfig
|
|
77
|
+
*/
|
|
78
|
+
host?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Encrypted API access key (for custom WhatsApp or Tuya)
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof CustomerServiceConfig
|
|
83
|
+
*/
|
|
84
|
+
accessKey?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Encrypted API secret key (for Tuya only)
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof CustomerServiceConfig
|
|
89
|
+
*/
|
|
90
|
+
secretKey?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* Timestamp when the configuration was created
|
|
93
|
+
* @type {Date}
|
|
94
|
+
* @memberof CustomerServiceConfig
|
|
95
|
+
*/
|
|
96
|
+
createdAt: Date;
|
|
97
|
+
/**
|
|
98
|
+
* Timestamp when the configuration was last updated
|
|
99
|
+
* @type {Date}
|
|
100
|
+
* @memberof CustomerServiceConfig
|
|
101
|
+
*/
|
|
102
|
+
updatedAt: Date;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the CustomerServiceConfig interface.
|
|
109
|
+
*/
|
|
110
|
+
export function instanceOfCustomerServiceConfig(value: object): value is CustomerServiceConfig {
|
|
111
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
112
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
113
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
114
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
115
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
116
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function CustomerServiceConfigFromJSON(json: any): CustomerServiceConfig {
|
|
121
|
+
return CustomerServiceConfigFromJSONTyped(json, false);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function CustomerServiceConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerServiceConfig {
|
|
125
|
+
if (json == null) {
|
|
126
|
+
return json;
|
|
127
|
+
}
|
|
128
|
+
return {
|
|
129
|
+
|
|
130
|
+
'id': json['id'],
|
|
131
|
+
'customerId': json['customerId'],
|
|
132
|
+
'type': ServiceTypeFromJSON(json['type']),
|
|
133
|
+
'enabled': json['enabled'],
|
|
134
|
+
'provider': json['provider'] == null ? undefined : WhatsAppProviderFromJSON(json['provider']),
|
|
135
|
+
'phoneNumberId': json['phoneNumberId'] == null ? undefined : json['phoneNumberId'],
|
|
136
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
137
|
+
'accessKey': json['accessKey'] == null ? undefined : json['accessKey'],
|
|
138
|
+
'secretKey': json['secretKey'] == null ? undefined : json['secretKey'],
|
|
139
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
140
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function CustomerServiceConfigToJSON(json: any): CustomerServiceConfig {
|
|
145
|
+
return CustomerServiceConfigToJSONTyped(json, false);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function CustomerServiceConfigToJSONTyped(value?: CustomerServiceConfig | null, ignoreDiscriminator: boolean = false): any {
|
|
149
|
+
if (value == null) {
|
|
150
|
+
return value;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return {
|
|
154
|
+
|
|
155
|
+
'id': value['id'],
|
|
156
|
+
'customerId': value['customerId'],
|
|
157
|
+
'type': ServiceTypeToJSON(value['type']),
|
|
158
|
+
'enabled': value['enabled'],
|
|
159
|
+
'provider': WhatsAppProviderToJSON(value['provider']),
|
|
160
|
+
'phoneNumberId': value['phoneNumberId'],
|
|
161
|
+
'host': value['host'],
|
|
162
|
+
'accessKey': value['accessKey'],
|
|
163
|
+
'secretKey': value['secretKey'],
|
|
164
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
165
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
@@ -0,0 +1,180 @@
|
|
|
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 CustomerServiceConfigDto
|
|
20
|
+
*/
|
|
21
|
+
export interface CustomerServiceConfigDto {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier for the service configuration
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CustomerServiceConfigDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Customer ID this configuration belongs to
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CustomerServiceConfigDto
|
|
32
|
+
*/
|
|
33
|
+
customerId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Customer name (for display purposes)
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CustomerServiceConfigDto
|
|
38
|
+
*/
|
|
39
|
+
customerName?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Type of service
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CustomerServiceConfigDto
|
|
44
|
+
*/
|
|
45
|
+
type: CustomerServiceConfigDtoTypeEnum;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the service is enabled
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof CustomerServiceConfigDto
|
|
50
|
+
*/
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* WhatsApp provider type (only for WhatsApp type)
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CustomerServiceConfigDto
|
|
56
|
+
*/
|
|
57
|
+
provider?: CustomerServiceConfigDtoProviderEnum | null;
|
|
58
|
+
/**
|
|
59
|
+
* WhatsApp Phone Number ID (for custom WhatsApp provider only)
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof CustomerServiceConfigDto
|
|
62
|
+
*/
|
|
63
|
+
phoneNumberId?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* Service API host URL (for Tuya)
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof CustomerServiceConfigDto
|
|
68
|
+
*/
|
|
69
|
+
host?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* Indicates if access key is configured (key itself is never returned)
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof CustomerServiceConfigDto
|
|
74
|
+
*/
|
|
75
|
+
hasAccessKey?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Indicates if secret key is configured (key itself is never returned)
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof CustomerServiceConfigDto
|
|
80
|
+
*/
|
|
81
|
+
hasSecretKey?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Timestamp when the configuration was created
|
|
84
|
+
* @type {Date}
|
|
85
|
+
* @memberof CustomerServiceConfigDto
|
|
86
|
+
*/
|
|
87
|
+
createdAt: Date;
|
|
88
|
+
/**
|
|
89
|
+
* Timestamp when the configuration was last updated
|
|
90
|
+
* @type {Date}
|
|
91
|
+
* @memberof CustomerServiceConfigDto
|
|
92
|
+
*/
|
|
93
|
+
updatedAt: Date;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export const CustomerServiceConfigDtoTypeEnum = {
|
|
101
|
+
Whatsapp: 'whatsapp',
|
|
102
|
+
Tuya: 'tuya'
|
|
103
|
+
} as const;
|
|
104
|
+
export type CustomerServiceConfigDtoTypeEnum = typeof CustomerServiceConfigDtoTypeEnum[keyof typeof CustomerServiceConfigDtoTypeEnum];
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export const CustomerServiceConfigDtoProviderEnum = {
|
|
110
|
+
None: 'none',
|
|
111
|
+
Jugarhoy: 'jugarhoy',
|
|
112
|
+
Custom: 'custom'
|
|
113
|
+
} as const;
|
|
114
|
+
export type CustomerServiceConfigDtoProviderEnum = typeof CustomerServiceConfigDtoProviderEnum[keyof typeof CustomerServiceConfigDtoProviderEnum];
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Check if a given object implements the CustomerServiceConfigDto interface.
|
|
119
|
+
*/
|
|
120
|
+
export function instanceOfCustomerServiceConfigDto(value: object): value is CustomerServiceConfigDto {
|
|
121
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
122
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
123
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
124
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
125
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
126
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function CustomerServiceConfigDtoFromJSON(json: any): CustomerServiceConfigDto {
|
|
131
|
+
return CustomerServiceConfigDtoFromJSONTyped(json, false);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function CustomerServiceConfigDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerServiceConfigDto {
|
|
135
|
+
if (json == null) {
|
|
136
|
+
return json;
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
|
|
140
|
+
'id': json['id'],
|
|
141
|
+
'customerId': json['customerId'],
|
|
142
|
+
'customerName': json['customerName'] == null ? undefined : json['customerName'],
|
|
143
|
+
'type': json['type'],
|
|
144
|
+
'enabled': json['enabled'],
|
|
145
|
+
'provider': json['provider'] == null ? undefined : json['provider'],
|
|
146
|
+
'phoneNumberId': json['phoneNumberId'] == null ? undefined : json['phoneNumberId'],
|
|
147
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
148
|
+
'hasAccessKey': json['hasAccessKey'] == null ? undefined : json['hasAccessKey'],
|
|
149
|
+
'hasSecretKey': json['hasSecretKey'] == null ? undefined : json['hasSecretKey'],
|
|
150
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
151
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function CustomerServiceConfigDtoToJSON(json: any): CustomerServiceConfigDto {
|
|
156
|
+
return CustomerServiceConfigDtoToJSONTyped(json, false);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function CustomerServiceConfigDtoToJSONTyped(value?: CustomerServiceConfigDto | null, ignoreDiscriminator: boolean = false): any {
|
|
160
|
+
if (value == null) {
|
|
161
|
+
return value;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return {
|
|
165
|
+
|
|
166
|
+
'id': value['id'],
|
|
167
|
+
'customerId': value['customerId'],
|
|
168
|
+
'customerName': value['customerName'],
|
|
169
|
+
'type': value['type'],
|
|
170
|
+
'enabled': value['enabled'],
|
|
171
|
+
'provider': value['provider'],
|
|
172
|
+
'phoneNumberId': value['phoneNumberId'],
|
|
173
|
+
'host': value['host'],
|
|
174
|
+
'hasAccessKey': value['hasAccessKey'],
|
|
175
|
+
'hasSecretKey': value['hasSecretKey'],
|
|
176
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
177
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
|
@@ -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 HasDoorlock200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface HasDoorlock200Response {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the location has a doorlock device
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof HasDoorlock200Response
|
|
26
|
+
*/
|
|
27
|
+
hasDoorlock?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the HasDoorlock200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfHasDoorlock200Response(value: object): value is HasDoorlock200Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function HasDoorlock200ResponseFromJSON(json: any): HasDoorlock200Response {
|
|
38
|
+
return HasDoorlock200ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function HasDoorlock200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HasDoorlock200Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'hasDoorlock': json['hasDoorlock'] == null ? undefined : json['hasDoorlock'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function HasDoorlock200ResponseToJSON(json: any): HasDoorlock200Response {
|
|
52
|
+
return HasDoorlock200ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function HasDoorlock200ResponseToJSONTyped(value?: HasDoorlock200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'hasDoorlock': value['hasDoorlock'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|