keplar-api 0.0.8 → 0.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.
- package/.openapi-generator/FILES +13 -0
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +15 -1
- package/dist/apis/DefaultApi.js +65 -0
- package/dist/models/Attribute.d.ts +65 -0
- package/dist/models/Attribute.js +68 -0
- package/dist/models/AttributeFilterGroupSchemaInner.d.ts +23 -0
- package/dist/models/AttributeFilterGroupSchemaInner.js +58 -0
- package/dist/models/AttributeKind.d.ts +76 -0
- package/dist/models/AttributeKind.js +75 -0
- package/dist/models/AttributeSource.d.ts +25 -0
- package/dist/models/AttributeSource.js +51 -0
- package/dist/models/AttributeStatsSchemaInner.d.ts +40 -0
- package/dist/models/AttributeStatsSchemaInner.js +57 -0
- package/dist/models/AttributeStatsSchemaInnerKind.d.ts +57 -0
- package/dist/models/AttributeStatsSchemaInnerKind.js +64 -0
- package/dist/models/AttributeStatsSchemaInnerValuesInner.d.ts +38 -0
- package/dist/models/AttributeStatsSchemaInnerValuesInner.js +55 -0
- package/dist/models/AttributeValueKind.d.ts +26 -0
- package/dist/models/AttributeValueKind.js +52 -0
- package/dist/models/InviteResponse.d.ts +7 -0
- package/dist/models/InviteResponse.js +3 -0
- package/dist/models/InviteResponseAttribute.d.ts +71 -0
- package/dist/models/InviteResponseAttribute.js +74 -0
- package/dist/models/NumberFilterSchema.d.ts +57 -0
- package/dist/models/NumberFilterSchema.js +66 -0
- package/dist/models/Participant.d.ts +7 -0
- package/dist/models/Participant.js +3 -0
- package/dist/models/ParticipantAttribute.d.ts +77 -0
- package/dist/models/ParticipantAttribute.js +78 -0
- package/dist/models/RepDataSurveyStatusLegacy.d.ts +3 -3
- package/dist/models/RepDataSurveyStatusLegacy.js +3 -3
- package/dist/models/SelectFilterSchema.d.ts +45 -0
- package/dist/models/SelectFilterSchema.js +60 -0
- package/dist/models/SelectFilterSchemaKind.d.ts +26 -0
- package/dist/models/SelectFilterSchemaKind.js +39 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +67 -0
- package/src/models/Attribute.ts +130 -0
- package/src/models/AttributeFilterGroupSchemaInner.ts +76 -0
- package/src/models/AttributeKind.ts +143 -0
- package/src/models/AttributeSource.ts +53 -0
- package/src/models/AttributeStatsSchemaInner.ts +90 -0
- package/src/models/AttributeStatsSchemaInnerKind.ts +110 -0
- package/src/models/AttributeStatsSchemaInnerValuesInner.ts +75 -0
- package/src/models/AttributeValueKind.ts +54 -0
- package/src/models/InviteResponse.ts +15 -0
- package/src/models/InviteResponseAttribute.ts +142 -0
- package/src/models/NumberFilterSchema.ts +101 -0
- package/src/models/Participant.ts +15 -0
- package/src/models/ParticipantAttribute.ts +151 -0
- package/src/models/RepDataSurveyStatusLegacy.ts +3 -3
- package/src/models/SelectFilterSchema.ts +92 -0
- package/src/models/SelectFilterSchemaKind.ts +46 -0
- package/src/models/index.ts +13 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AttributeValueKind = {
|
|
21
|
+
Single: 'single',
|
|
22
|
+
Multi: 'multi',
|
|
23
|
+
Numeric: 'numeric'
|
|
24
|
+
} as const;
|
|
25
|
+
export type AttributeValueKind = typeof AttributeValueKind[keyof typeof AttributeValueKind];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfAttributeValueKind(value: any): boolean {
|
|
29
|
+
for (const key in AttributeValueKind) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(AttributeValueKind, key)) {
|
|
31
|
+
if (AttributeValueKind[key as keyof typeof AttributeValueKind] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function AttributeValueKindFromJSON(json: any): AttributeValueKind {
|
|
40
|
+
return AttributeValueKindFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function AttributeValueKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeValueKind {
|
|
44
|
+
return json as AttributeValueKind;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function AttributeValueKindToJSON(value?: AttributeValueKind | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function AttributeValueKindToJSONTyped(value: any, ignoreDiscriminator: boolean): AttributeValueKind {
|
|
52
|
+
return value as AttributeValueKind;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { InviteResponseAttribute } from './InviteResponseAttribute';
|
|
17
|
+
import {
|
|
18
|
+
InviteResponseAttributeFromJSON,
|
|
19
|
+
InviteResponseAttributeFromJSONTyped,
|
|
20
|
+
InviteResponseAttributeToJSON,
|
|
21
|
+
InviteResponseAttributeToJSONTyped,
|
|
22
|
+
} from './InviteResponseAttribute';
|
|
16
23
|
import type { Call } from './Call';
|
|
17
24
|
import {
|
|
18
25
|
CallFromJSON,
|
|
@@ -147,6 +154,12 @@ export interface InviteResponse {
|
|
|
147
154
|
* @memberof InviteResponse
|
|
148
155
|
*/
|
|
149
156
|
calls?: Array<Call>;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {Array<InviteResponseAttribute>}
|
|
160
|
+
* @memberof InviteResponse
|
|
161
|
+
*/
|
|
162
|
+
inviteResponseAttributes?: Array<InviteResponseAttribute>;
|
|
150
163
|
}
|
|
151
164
|
|
|
152
165
|
|
|
@@ -187,6 +200,7 @@ export function InviteResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
187
200
|
'invite': json['invite'] == null ? undefined : InviteFromJSON(json['invite']),
|
|
188
201
|
'participant': json['participant'] == null ? undefined : ParticipantFromJSON(json['participant']),
|
|
189
202
|
'calls': json['calls'] == null ? undefined : ((json['calls'] as Array<any>).map(CallFromJSON)),
|
|
203
|
+
'inviteResponseAttributes': json['inviteResponseAttributes'] == null ? undefined : ((json['inviteResponseAttributes'] as Array<any>).map(InviteResponseAttributeFromJSON)),
|
|
190
204
|
};
|
|
191
205
|
}
|
|
192
206
|
|
|
@@ -214,6 +228,7 @@ export function InviteResponseToJSONTyped(value?: InviteResponse | null, ignoreD
|
|
|
214
228
|
'invite': InviteToJSON(value['invite']),
|
|
215
229
|
'participant': ParticipantToJSON(value['participant']),
|
|
216
230
|
'calls': value['calls'] == null ? undefined : ((value['calls'] as Array<any>).map(CallToJSON)),
|
|
231
|
+
'inviteResponseAttributes': value['inviteResponseAttributes'] == null ? undefined : ((value['inviteResponseAttributes'] as Array<any>).map(InviteResponseAttributeToJSON)),
|
|
217
232
|
};
|
|
218
233
|
}
|
|
219
234
|
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 { AttributeSource } from './AttributeSource';
|
|
17
|
+
import {
|
|
18
|
+
AttributeSourceFromJSON,
|
|
19
|
+
AttributeSourceFromJSONTyped,
|
|
20
|
+
AttributeSourceToJSON,
|
|
21
|
+
AttributeSourceToJSONTyped,
|
|
22
|
+
} from './AttributeSource';
|
|
23
|
+
import type { Attribute } from './Attribute';
|
|
24
|
+
import {
|
|
25
|
+
AttributeFromJSON,
|
|
26
|
+
AttributeFromJSONTyped,
|
|
27
|
+
AttributeToJSON,
|
|
28
|
+
AttributeToJSONTyped,
|
|
29
|
+
} from './Attribute';
|
|
30
|
+
import type { InviteResponse } from './InviteResponse';
|
|
31
|
+
import {
|
|
32
|
+
InviteResponseFromJSON,
|
|
33
|
+
InviteResponseFromJSONTyped,
|
|
34
|
+
InviteResponseToJSON,
|
|
35
|
+
InviteResponseToJSONTyped,
|
|
36
|
+
} from './InviteResponse';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface InviteResponseAttribute
|
|
42
|
+
*/
|
|
43
|
+
export interface InviteResponseAttribute {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof InviteResponseAttribute
|
|
48
|
+
*/
|
|
49
|
+
inviteResponseId: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof InviteResponseAttribute
|
|
54
|
+
*/
|
|
55
|
+
attributeKindKey: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof InviteResponseAttribute
|
|
60
|
+
*/
|
|
61
|
+
attributeValue: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {AttributeSource}
|
|
65
|
+
* @memberof InviteResponseAttribute
|
|
66
|
+
*/
|
|
67
|
+
source: AttributeSource;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Date}
|
|
71
|
+
* @memberof InviteResponseAttribute
|
|
72
|
+
*/
|
|
73
|
+
createdAt: Date;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {InviteResponse}
|
|
77
|
+
* @memberof InviteResponseAttribute
|
|
78
|
+
*/
|
|
79
|
+
inviteResponse?: InviteResponse;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Attribute}
|
|
83
|
+
* @memberof InviteResponseAttribute
|
|
84
|
+
*/
|
|
85
|
+
attribute?: Attribute;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Check if a given object implements the InviteResponseAttribute interface.
|
|
92
|
+
*/
|
|
93
|
+
export function instanceOfInviteResponseAttribute(value: object): value is InviteResponseAttribute {
|
|
94
|
+
if (!('inviteResponseId' in value) || value['inviteResponseId'] === undefined) return false;
|
|
95
|
+
if (!('attributeKindKey' in value) || value['attributeKindKey'] === undefined) return false;
|
|
96
|
+
if (!('attributeValue' in value) || value['attributeValue'] === undefined) return false;
|
|
97
|
+
if (!('source' in value) || value['source'] === undefined) return false;
|
|
98
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function InviteResponseAttributeFromJSON(json: any): InviteResponseAttribute {
|
|
103
|
+
return InviteResponseAttributeFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function InviteResponseAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): InviteResponseAttribute {
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'inviteResponseId': json['inviteResponseId'],
|
|
113
|
+
'attributeKindKey': json['attributeKindKey'],
|
|
114
|
+
'attributeValue': json['attributeValue'],
|
|
115
|
+
'source': AttributeSourceFromJSON(json['source']),
|
|
116
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
117
|
+
'inviteResponse': json['inviteResponse'] == null ? undefined : InviteResponseFromJSON(json['inviteResponse']),
|
|
118
|
+
'attribute': json['attribute'] == null ? undefined : AttributeFromJSON(json['attribute']),
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function InviteResponseAttributeToJSON(json: any): InviteResponseAttribute {
|
|
123
|
+
return InviteResponseAttributeToJSONTyped(json, false);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function InviteResponseAttributeToJSONTyped(value?: InviteResponseAttribute | null, ignoreDiscriminator: boolean = false): any {
|
|
127
|
+
if (value == null) {
|
|
128
|
+
return value;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
|
|
133
|
+
'inviteResponseId': value['inviteResponseId'],
|
|
134
|
+
'attributeKindKey': value['attributeKindKey'],
|
|
135
|
+
'attributeValue': value['attributeValue'],
|
|
136
|
+
'source': AttributeSourceToJSON(value['source']),
|
|
137
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
138
|
+
'inviteResponse': InviteResponseToJSON(value['inviteResponse']),
|
|
139
|
+
'attribute': AttributeToJSON(value['attribute']),
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 NumberFilterSchema
|
|
20
|
+
*/
|
|
21
|
+
export interface NumberFilterSchema {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof NumberFilterSchema
|
|
26
|
+
*/
|
|
27
|
+
kind: NumberFilterSchemaKindEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof NumberFilterSchema
|
|
32
|
+
*/
|
|
33
|
+
key: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof NumberFilterSchema
|
|
38
|
+
*/
|
|
39
|
+
min?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof NumberFilterSchema
|
|
44
|
+
*/
|
|
45
|
+
max?: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const NumberFilterSchemaKindEnum = {
|
|
53
|
+
Numeric: 'numeric'
|
|
54
|
+
} as const;
|
|
55
|
+
export type NumberFilterSchemaKindEnum = typeof NumberFilterSchemaKindEnum[keyof typeof NumberFilterSchemaKindEnum];
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the NumberFilterSchema interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfNumberFilterSchema(value: object): value is NumberFilterSchema {
|
|
62
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
63
|
+
if (!('key' in value) || value['key'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function NumberFilterSchemaFromJSON(json: any): NumberFilterSchema {
|
|
68
|
+
return NumberFilterSchemaFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function NumberFilterSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): NumberFilterSchema {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'kind': json['kind'],
|
|
78
|
+
'key': json['key'],
|
|
79
|
+
'min': json['min'] == null ? undefined : json['min'],
|
|
80
|
+
'max': json['max'] == null ? undefined : json['max'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function NumberFilterSchemaToJSON(json: any): NumberFilterSchema {
|
|
85
|
+
return NumberFilterSchemaToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function NumberFilterSchemaToJSONTyped(value?: NumberFilterSchema | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'kind': value['kind'],
|
|
96
|
+
'key': value['key'],
|
|
97
|
+
'min': value['min'],
|
|
98
|
+
'max': value['max'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
OrgToJSON,
|
|
28
28
|
OrgToJSONTyped,
|
|
29
29
|
} from './Org';
|
|
30
|
+
import type { ParticipantAttribute } from './ParticipantAttribute';
|
|
31
|
+
import {
|
|
32
|
+
ParticipantAttributeFromJSON,
|
|
33
|
+
ParticipantAttributeFromJSONTyped,
|
|
34
|
+
ParticipantAttributeToJSON,
|
|
35
|
+
ParticipantAttributeToJSONTyped,
|
|
36
|
+
} from './ParticipantAttribute';
|
|
30
37
|
import type { InviteResponse } from './InviteResponse';
|
|
31
38
|
import {
|
|
32
39
|
InviteResponseFromJSON,
|
|
@@ -120,6 +127,12 @@ export interface Participant {
|
|
|
120
127
|
* @memberof Participant
|
|
121
128
|
*/
|
|
122
129
|
calls?: Array<Call>;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {Array<ParticipantAttribute>}
|
|
133
|
+
* @memberof Participant
|
|
134
|
+
*/
|
|
135
|
+
participantAttributes?: Array<ParticipantAttribute>;
|
|
123
136
|
}
|
|
124
137
|
|
|
125
138
|
/**
|
|
@@ -155,6 +168,7 @@ export function ParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
155
168
|
'participantInvites': json['participantInvites'] == null ? undefined : ((json['participantInvites'] as Array<any>).map(ParticipantInviteFromJSON)),
|
|
156
169
|
'inviteResponses': json['inviteResponses'] == null ? undefined : ((json['inviteResponses'] as Array<any>).map(InviteResponseFromJSON)),
|
|
157
170
|
'calls': json['calls'] == null ? undefined : ((json['calls'] as Array<any>).map(CallFromJSON)),
|
|
171
|
+
'participantAttributes': json['participantAttributes'] == null ? undefined : ((json['participantAttributes'] as Array<any>).map(ParticipantAttributeFromJSON)),
|
|
158
172
|
};
|
|
159
173
|
}
|
|
160
174
|
|
|
@@ -181,6 +195,7 @@ export function ParticipantToJSONTyped(value?: Participant | null, ignoreDiscrim
|
|
|
181
195
|
'participantInvites': value['participantInvites'] == null ? undefined : ((value['participantInvites'] as Array<any>).map(ParticipantInviteToJSON)),
|
|
182
196
|
'inviteResponses': value['inviteResponses'] == null ? undefined : ((value['inviteResponses'] as Array<any>).map(InviteResponseToJSON)),
|
|
183
197
|
'calls': value['calls'] == null ? undefined : ((value['calls'] as Array<any>).map(CallToJSON)),
|
|
198
|
+
'participantAttributes': value['participantAttributes'] == null ? undefined : ((value['participantAttributes'] as Array<any>).map(ParticipantAttributeToJSON)),
|
|
184
199
|
};
|
|
185
200
|
}
|
|
186
201
|
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 { AttributeSource } from './AttributeSource';
|
|
17
|
+
import {
|
|
18
|
+
AttributeSourceFromJSON,
|
|
19
|
+
AttributeSourceFromJSONTyped,
|
|
20
|
+
AttributeSourceToJSON,
|
|
21
|
+
AttributeSourceToJSONTyped,
|
|
22
|
+
} from './AttributeSource';
|
|
23
|
+
import type { Participant } from './Participant';
|
|
24
|
+
import {
|
|
25
|
+
ParticipantFromJSON,
|
|
26
|
+
ParticipantFromJSONTyped,
|
|
27
|
+
ParticipantToJSON,
|
|
28
|
+
ParticipantToJSONTyped,
|
|
29
|
+
} from './Participant';
|
|
30
|
+
import type { Attribute } from './Attribute';
|
|
31
|
+
import {
|
|
32
|
+
AttributeFromJSON,
|
|
33
|
+
AttributeFromJSONTyped,
|
|
34
|
+
AttributeToJSON,
|
|
35
|
+
AttributeToJSONTyped,
|
|
36
|
+
} from './Attribute';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ParticipantAttribute
|
|
42
|
+
*/
|
|
43
|
+
export interface ParticipantAttribute {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ParticipantAttribute
|
|
48
|
+
*/
|
|
49
|
+
participantId: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ParticipantAttribute
|
|
54
|
+
*/
|
|
55
|
+
attributeKindKey: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ParticipantAttribute
|
|
60
|
+
*/
|
|
61
|
+
attributeValue: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {AttributeSource}
|
|
65
|
+
* @memberof ParticipantAttribute
|
|
66
|
+
*/
|
|
67
|
+
source: AttributeSource;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Date}
|
|
71
|
+
* @memberof ParticipantAttribute
|
|
72
|
+
*/
|
|
73
|
+
createdAt: Date;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Date}
|
|
77
|
+
* @memberof ParticipantAttribute
|
|
78
|
+
*/
|
|
79
|
+
updatedAt: Date;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Participant}
|
|
83
|
+
* @memberof ParticipantAttribute
|
|
84
|
+
*/
|
|
85
|
+
participant?: Participant;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {Attribute}
|
|
89
|
+
* @memberof ParticipantAttribute
|
|
90
|
+
*/
|
|
91
|
+
attribute?: Attribute;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Check if a given object implements the ParticipantAttribute interface.
|
|
98
|
+
*/
|
|
99
|
+
export function instanceOfParticipantAttribute(value: object): value is ParticipantAttribute {
|
|
100
|
+
if (!('participantId' in value) || value['participantId'] === undefined) return false;
|
|
101
|
+
if (!('attributeKindKey' in value) || value['attributeKindKey'] === undefined) return false;
|
|
102
|
+
if (!('attributeValue' in value) || value['attributeValue'] === undefined) return false;
|
|
103
|
+
if (!('source' in value) || value['source'] === undefined) return false;
|
|
104
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
105
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function ParticipantAttributeFromJSON(json: any): ParticipantAttribute {
|
|
110
|
+
return ParticipantAttributeFromJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function ParticipantAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParticipantAttribute {
|
|
114
|
+
if (json == null) {
|
|
115
|
+
return json;
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'participantId': json['participantId'],
|
|
120
|
+
'attributeKindKey': json['attributeKindKey'],
|
|
121
|
+
'attributeValue': json['attributeValue'],
|
|
122
|
+
'source': AttributeSourceFromJSON(json['source']),
|
|
123
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
124
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
125
|
+
'participant': json['participant'] == null ? undefined : ParticipantFromJSON(json['participant']),
|
|
126
|
+
'attribute': json['attribute'] == null ? undefined : AttributeFromJSON(json['attribute']),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function ParticipantAttributeToJSON(json: any): ParticipantAttribute {
|
|
131
|
+
return ParticipantAttributeToJSONTyped(json, false);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function ParticipantAttributeToJSONTyped(value?: ParticipantAttribute | null, ignoreDiscriminator: boolean = false): any {
|
|
135
|
+
if (value == null) {
|
|
136
|
+
return value;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return {
|
|
140
|
+
|
|
141
|
+
'participantId': value['participantId'],
|
|
142
|
+
'attributeKindKey': value['attributeKindKey'],
|
|
143
|
+
'attributeValue': value['attributeValue'],
|
|
144
|
+
'source': AttributeSourceToJSON(value['source']),
|
|
145
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
146
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
147
|
+
'participant': ParticipantToJSON(value['participant']),
|
|
148
|
+
'attribute': AttributeToJSON(value['attribute']),
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
20
|
export const RepDataSurveyStatusLegacy = {
|
|
21
|
-
Live: '
|
|
22
|
-
Draft: '
|
|
23
|
-
Paused: '
|
|
21
|
+
Live: 'Live',
|
|
22
|
+
Draft: 'Draft',
|
|
23
|
+
Paused: 'Paused'
|
|
24
24
|
} as const;
|
|
25
25
|
export type RepDataSurveyStatusLegacy = typeof RepDataSurveyStatusLegacy[keyof typeof RepDataSurveyStatusLegacy];
|
|
26
26
|
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 { SelectFilterSchemaKind } from './SelectFilterSchemaKind';
|
|
17
|
+
import {
|
|
18
|
+
SelectFilterSchemaKindFromJSON,
|
|
19
|
+
SelectFilterSchemaKindFromJSONTyped,
|
|
20
|
+
SelectFilterSchemaKindToJSON,
|
|
21
|
+
SelectFilterSchemaKindToJSONTyped,
|
|
22
|
+
} from './SelectFilterSchemaKind';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SelectFilterSchema
|
|
28
|
+
*/
|
|
29
|
+
export interface SelectFilterSchema {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {SelectFilterSchemaKind}
|
|
33
|
+
* @memberof SelectFilterSchema
|
|
34
|
+
*/
|
|
35
|
+
kind: SelectFilterSchemaKind;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SelectFilterSchema
|
|
40
|
+
*/
|
|
41
|
+
key: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof SelectFilterSchema
|
|
46
|
+
*/
|
|
47
|
+
values: Array<string>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the SelectFilterSchema interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfSelectFilterSchema(value: object): value is SelectFilterSchema {
|
|
54
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
55
|
+
if (!('key' in value) || value['key'] === undefined) return false;
|
|
56
|
+
if (!('values' in value) || value['values'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SelectFilterSchemaFromJSON(json: any): SelectFilterSchema {
|
|
61
|
+
return SelectFilterSchemaFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SelectFilterSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelectFilterSchema {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'kind': SelectFilterSchemaKindFromJSON(json['kind']),
|
|
71
|
+
'key': json['key'],
|
|
72
|
+
'values': json['values'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function SelectFilterSchemaToJSON(json: any): SelectFilterSchema {
|
|
77
|
+
return SelectFilterSchemaToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function SelectFilterSchemaToJSONTyped(value?: SelectFilterSchema | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'kind': SelectFilterSchemaKindToJSON(value['kind']),
|
|
88
|
+
'key': value['key'],
|
|
89
|
+
'values': value['values'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 SelectFilterSchemaKind
|
|
20
|
+
*/
|
|
21
|
+
export interface SelectFilterSchemaKind {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the SelectFilterSchemaKind interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfSelectFilterSchemaKind(value: object): value is SelectFilterSchemaKind {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function SelectFilterSchemaKindFromJSON(json: any): SelectFilterSchemaKind {
|
|
32
|
+
return SelectFilterSchemaKindFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function SelectFilterSchemaKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelectFilterSchemaKind {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function SelectFilterSchemaKindToJSON(json: any): SelectFilterSchemaKind {
|
|
40
|
+
return SelectFilterSchemaKindToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function SelectFilterSchemaKindToJSONTyped(value?: SelectFilterSchemaKind | null, ignoreDiscriminator: boolean = false): any {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
|