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.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +13 -0
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +15 -1
  4. package/dist/apis/DefaultApi.js +65 -0
  5. package/dist/models/Attribute.d.ts +65 -0
  6. package/dist/models/Attribute.js +68 -0
  7. package/dist/models/AttributeFilterGroupSchemaInner.d.ts +23 -0
  8. package/dist/models/AttributeFilterGroupSchemaInner.js +58 -0
  9. package/dist/models/AttributeKind.d.ts +76 -0
  10. package/dist/models/AttributeKind.js +75 -0
  11. package/dist/models/AttributeSource.d.ts +25 -0
  12. package/dist/models/AttributeSource.js +51 -0
  13. package/dist/models/AttributeStatsSchemaInner.d.ts +40 -0
  14. package/dist/models/AttributeStatsSchemaInner.js +57 -0
  15. package/dist/models/AttributeStatsSchemaInnerKind.d.ts +57 -0
  16. package/dist/models/AttributeStatsSchemaInnerKind.js +64 -0
  17. package/dist/models/AttributeStatsSchemaInnerValuesInner.d.ts +38 -0
  18. package/dist/models/AttributeStatsSchemaInnerValuesInner.js +55 -0
  19. package/dist/models/AttributeValueKind.d.ts +26 -0
  20. package/dist/models/AttributeValueKind.js +52 -0
  21. package/dist/models/InviteResponse.d.ts +7 -0
  22. package/dist/models/InviteResponse.js +3 -0
  23. package/dist/models/InviteResponseAttribute.d.ts +71 -0
  24. package/dist/models/InviteResponseAttribute.js +74 -0
  25. package/dist/models/NumberFilterSchema.d.ts +57 -0
  26. package/dist/models/NumberFilterSchema.js +66 -0
  27. package/dist/models/Participant.d.ts +7 -0
  28. package/dist/models/Participant.js +3 -0
  29. package/dist/models/ParticipantAttribute.d.ts +77 -0
  30. package/dist/models/ParticipantAttribute.js +78 -0
  31. package/dist/models/RepDataSurveyStatusLegacy.d.ts +3 -3
  32. package/dist/models/RepDataSurveyStatusLegacy.js +3 -3
  33. package/dist/models/SelectFilterSchema.d.ts +45 -0
  34. package/dist/models/SelectFilterSchema.js +60 -0
  35. package/dist/models/SelectFilterSchemaKind.d.ts +26 -0
  36. package/dist/models/SelectFilterSchemaKind.js +39 -0
  37. package/dist/models/index.d.ts +13 -0
  38. package/dist/models/index.js +13 -0
  39. package/package.json +1 -1
  40. package/src/apis/DefaultApi.ts +67 -0
  41. package/src/models/Attribute.ts +130 -0
  42. package/src/models/AttributeFilterGroupSchemaInner.ts +76 -0
  43. package/src/models/AttributeKind.ts +143 -0
  44. package/src/models/AttributeSource.ts +53 -0
  45. package/src/models/AttributeStatsSchemaInner.ts +90 -0
  46. package/src/models/AttributeStatsSchemaInnerKind.ts +110 -0
  47. package/src/models/AttributeStatsSchemaInnerValuesInner.ts +75 -0
  48. package/src/models/AttributeValueKind.ts +54 -0
  49. package/src/models/InviteResponse.ts +15 -0
  50. package/src/models/InviteResponseAttribute.ts +142 -0
  51. package/src/models/NumberFilterSchema.ts +101 -0
  52. package/src/models/Participant.ts +15 -0
  53. package/src/models/ParticipantAttribute.ts +151 -0
  54. package/src/models/RepDataSurveyStatusLegacy.ts +3 -3
  55. package/src/models/SelectFilterSchema.ts +92 -0
  56. package/src/models/SelectFilterSchemaKind.ts +46 -0
  57. package/src/models/index.ts +13 -0
@@ -0,0 +1,130 @@
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 { InviteResponseAttribute } from './InviteResponseAttribute';
17
+ import {
18
+ InviteResponseAttributeFromJSON,
19
+ InviteResponseAttributeFromJSONTyped,
20
+ InviteResponseAttributeToJSON,
21
+ InviteResponseAttributeToJSONTyped,
22
+ } from './InviteResponseAttribute';
23
+ import type { ParticipantAttribute } from './ParticipantAttribute';
24
+ import {
25
+ ParticipantAttributeFromJSON,
26
+ ParticipantAttributeFromJSONTyped,
27
+ ParticipantAttributeToJSON,
28
+ ParticipantAttributeToJSONTyped,
29
+ } from './ParticipantAttribute';
30
+ import type { AttributeKind } from './AttributeKind';
31
+ import {
32
+ AttributeKindFromJSON,
33
+ AttributeKindFromJSONTyped,
34
+ AttributeKindToJSON,
35
+ AttributeKindToJSONTyped,
36
+ } from './AttributeKind';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface Attribute
42
+ */
43
+ export interface Attribute {
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof Attribute
48
+ */
49
+ attributeKindKey: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof Attribute
54
+ */
55
+ value: string;
56
+ /**
57
+ *
58
+ * @type {Date}
59
+ * @memberof Attribute
60
+ */
61
+ createdAt: Date;
62
+ /**
63
+ *
64
+ * @type {AttributeKind}
65
+ * @memberof Attribute
66
+ */
67
+ attributeKind?: AttributeKind;
68
+ /**
69
+ *
70
+ * @type {Array<ParticipantAttribute>}
71
+ * @memberof Attribute
72
+ */
73
+ participantAttributes?: Array<ParticipantAttribute>;
74
+ /**
75
+ *
76
+ * @type {Array<InviteResponseAttribute>}
77
+ * @memberof Attribute
78
+ */
79
+ inviteResponseAttributes?: Array<InviteResponseAttribute>;
80
+ }
81
+
82
+ /**
83
+ * Check if a given object implements the Attribute interface.
84
+ */
85
+ export function instanceOfAttribute(value: object): value is Attribute {
86
+ if (!('attributeKindKey' in value) || value['attributeKindKey'] === undefined) return false;
87
+ if (!('value' in value) || value['value'] === undefined) return false;
88
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
89
+ return true;
90
+ }
91
+
92
+ export function AttributeFromJSON(json: any): Attribute {
93
+ return AttributeFromJSONTyped(json, false);
94
+ }
95
+
96
+ export function AttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Attribute {
97
+ if (json == null) {
98
+ return json;
99
+ }
100
+ return {
101
+
102
+ 'attributeKindKey': json['attributeKindKey'],
103
+ 'value': json['value'],
104
+ 'createdAt': (new Date(json['createdAt'])),
105
+ 'attributeKind': json['attributeKind'] == null ? undefined : AttributeKindFromJSON(json['attributeKind']),
106
+ 'participantAttributes': json['participantAttributes'] == null ? undefined : ((json['participantAttributes'] as Array<any>).map(ParticipantAttributeFromJSON)),
107
+ 'inviteResponseAttributes': json['inviteResponseAttributes'] == null ? undefined : ((json['inviteResponseAttributes'] as Array<any>).map(InviteResponseAttributeFromJSON)),
108
+ };
109
+ }
110
+
111
+ export function AttributeToJSON(json: any): Attribute {
112
+ return AttributeToJSONTyped(json, false);
113
+ }
114
+
115
+ export function AttributeToJSONTyped(value?: Attribute | null, ignoreDiscriminator: boolean = false): any {
116
+ if (value == null) {
117
+ return value;
118
+ }
119
+
120
+ return {
121
+
122
+ 'attributeKindKey': value['attributeKindKey'],
123
+ 'value': value['value'],
124
+ 'createdAt': ((value['createdAt']).toISOString()),
125
+ 'attributeKind': AttributeKindToJSON(value['attributeKind']),
126
+ 'participantAttributes': value['participantAttributes'] == null ? undefined : ((value['participantAttributes'] as Array<any>).map(ParticipantAttributeToJSON)),
127
+ 'inviteResponseAttributes': value['inviteResponseAttributes'] == null ? undefined : ((value['inviteResponseAttributes'] as Array<any>).map(InviteResponseAttributeToJSON)),
128
+ };
129
+ }
130
+
@@ -0,0 +1,76 @@
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 type { NumberFilterSchema } from './NumberFilterSchema';
16
+ import {
17
+ instanceOfNumberFilterSchema,
18
+ NumberFilterSchemaFromJSON,
19
+ NumberFilterSchemaFromJSONTyped,
20
+ NumberFilterSchemaToJSON,
21
+ } from './NumberFilterSchema';
22
+ import type { SelectFilterSchema } from './SelectFilterSchema';
23
+ import {
24
+ instanceOfSelectFilterSchema,
25
+ SelectFilterSchemaFromJSON,
26
+ SelectFilterSchemaFromJSONTyped,
27
+ SelectFilterSchemaToJSON,
28
+ } from './SelectFilterSchema';
29
+
30
+ /**
31
+ * @type AttributeFilterGroupSchemaInner
32
+ *
33
+ * @export
34
+ */
35
+ export type AttributeFilterGroupSchemaInner = NumberFilterSchema | SelectFilterSchema;
36
+
37
+ export function AttributeFilterGroupSchemaInnerFromJSON(json: any): AttributeFilterGroupSchemaInner {
38
+ return AttributeFilterGroupSchemaInnerFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function AttributeFilterGroupSchemaInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeFilterGroupSchemaInner {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ if (typeof json !== 'object') {
46
+ return json;
47
+ }
48
+ if (instanceOfNumberFilterSchema(json)) {
49
+ return NumberFilterSchemaFromJSONTyped(json, true);
50
+ }
51
+ if (instanceOfSelectFilterSchema(json)) {
52
+ return SelectFilterSchemaFromJSONTyped(json, true);
53
+ }
54
+ return {} as any;
55
+ }
56
+
57
+ export function AttributeFilterGroupSchemaInnerToJSON(json: any): any {
58
+ return AttributeFilterGroupSchemaInnerToJSONTyped(json, false);
59
+ }
60
+
61
+ export function AttributeFilterGroupSchemaInnerToJSONTyped(value?: AttributeFilterGroupSchemaInner | null, ignoreDiscriminator: boolean = false): any {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ if (typeof value !== 'object') {
66
+ return value;
67
+ }
68
+ if (instanceOfNumberFilterSchema(value)) {
69
+ return NumberFilterSchemaToJSON(value as NumberFilterSchema);
70
+ }
71
+ if (instanceOfSelectFilterSchema(value)) {
72
+ return SelectFilterSchemaToJSON(value as SelectFilterSchema);
73
+ }
74
+ return {};
75
+ }
76
+
@@ -0,0 +1,143 @@
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 { Attribute } from './Attribute';
17
+ import {
18
+ AttributeFromJSON,
19
+ AttributeFromJSONTyped,
20
+ AttributeToJSON,
21
+ AttributeToJSONTyped,
22
+ } from './Attribute';
23
+ import type { AttributeValueKind } from './AttributeValueKind';
24
+ import {
25
+ AttributeValueKindFromJSON,
26
+ AttributeValueKindFromJSONTyped,
27
+ AttributeValueKindToJSON,
28
+ AttributeValueKindToJSONTyped,
29
+ } from './AttributeValueKind';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface AttributeKind
35
+ */
36
+ export interface AttributeKind {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof AttributeKind
41
+ */
42
+ key: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof AttributeKind
47
+ */
48
+ label: string;
49
+ /**
50
+ *
51
+ * @type {AttributeValueKind}
52
+ * @memberof AttributeKind
53
+ */
54
+ valueKind: AttributeValueKind;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof AttributeKind
59
+ */
60
+ description?: string | null;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof AttributeKind
65
+ */
66
+ category?: string | null;
67
+ /**
68
+ *
69
+ * @type {Date}
70
+ * @memberof AttributeKind
71
+ */
72
+ createdAt: Date;
73
+ /**
74
+ *
75
+ * @type {Date}
76
+ * @memberof AttributeKind
77
+ */
78
+ updatedAt: Date;
79
+ /**
80
+ *
81
+ * @type {Array<Attribute>}
82
+ * @memberof AttributeKind
83
+ */
84
+ attributes?: Array<Attribute>;
85
+ }
86
+
87
+
88
+
89
+ /**
90
+ * Check if a given object implements the AttributeKind interface.
91
+ */
92
+ export function instanceOfAttributeKind(value: object): value is AttributeKind {
93
+ if (!('key' in value) || value['key'] === undefined) return false;
94
+ if (!('label' in value) || value['label'] === undefined) return false;
95
+ if (!('valueKind' in value) || value['valueKind'] === undefined) return false;
96
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
97
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
98
+ return true;
99
+ }
100
+
101
+ export function AttributeKindFromJSON(json: any): AttributeKind {
102
+ return AttributeKindFromJSONTyped(json, false);
103
+ }
104
+
105
+ export function AttributeKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeKind {
106
+ if (json == null) {
107
+ return json;
108
+ }
109
+ return {
110
+
111
+ 'key': json['key'],
112
+ 'label': json['label'],
113
+ 'valueKind': AttributeValueKindFromJSON(json['valueKind']),
114
+ 'description': json['description'] == null ? undefined : json['description'],
115
+ 'category': json['category'] == null ? undefined : json['category'],
116
+ 'createdAt': (new Date(json['createdAt'])),
117
+ 'updatedAt': (new Date(json['updatedAt'])),
118
+ 'attributes': json['attributes'] == null ? undefined : ((json['attributes'] as Array<any>).map(AttributeFromJSON)),
119
+ };
120
+ }
121
+
122
+ export function AttributeKindToJSON(json: any): AttributeKind {
123
+ return AttributeKindToJSONTyped(json, false);
124
+ }
125
+
126
+ export function AttributeKindToJSONTyped(value?: AttributeKind | null, ignoreDiscriminator: boolean = false): any {
127
+ if (value == null) {
128
+ return value;
129
+ }
130
+
131
+ return {
132
+
133
+ 'key': value['key'],
134
+ 'label': value['label'],
135
+ 'valueKind': AttributeValueKindToJSON(value['valueKind']),
136
+ 'description': value['description'],
137
+ 'category': value['category'],
138
+ 'createdAt': ((value['createdAt']).toISOString()),
139
+ 'updatedAt': ((value['updatedAt']).toISOString()),
140
+ 'attributes': value['attributes'] == null ? undefined : ((value['attributes'] as Array<any>).map(AttributeToJSON)),
141
+ };
142
+ }
143
+
@@ -0,0 +1,53 @@
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 AttributeSource = {
21
+ Panel: 'panel',
22
+ Generated: 'generated'
23
+ } as const;
24
+ export type AttributeSource = typeof AttributeSource[keyof typeof AttributeSource];
25
+
26
+
27
+ export function instanceOfAttributeSource(value: any): boolean {
28
+ for (const key in AttributeSource) {
29
+ if (Object.prototype.hasOwnProperty.call(AttributeSource, key)) {
30
+ if (AttributeSource[key as keyof typeof AttributeSource] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function AttributeSourceFromJSON(json: any): AttributeSource {
39
+ return AttributeSourceFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AttributeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeSource {
43
+ return json as AttributeSource;
44
+ }
45
+
46
+ export function AttributeSourceToJSON(value?: AttributeSource | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function AttributeSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): AttributeSource {
51
+ return value as AttributeSource;
52
+ }
53
+
@@ -0,0 +1,90 @@
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 { AttributeStatsSchemaInnerKind } from './AttributeStatsSchemaInnerKind';
17
+ import {
18
+ AttributeStatsSchemaInnerKindFromJSON,
19
+ AttributeStatsSchemaInnerKindFromJSONTyped,
20
+ AttributeStatsSchemaInnerKindToJSON,
21
+ AttributeStatsSchemaInnerKindToJSONTyped,
22
+ } from './AttributeStatsSchemaInnerKind';
23
+ import type { AttributeStatsSchemaInnerValuesInner } from './AttributeStatsSchemaInnerValuesInner';
24
+ import {
25
+ AttributeStatsSchemaInnerValuesInnerFromJSON,
26
+ AttributeStatsSchemaInnerValuesInnerFromJSONTyped,
27
+ AttributeStatsSchemaInnerValuesInnerToJSON,
28
+ AttributeStatsSchemaInnerValuesInnerToJSONTyped,
29
+ } from './AttributeStatsSchemaInnerValuesInner';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface AttributeStatsSchemaInner
35
+ */
36
+ export interface AttributeStatsSchemaInner {
37
+ /**
38
+ *
39
+ * @type {AttributeStatsSchemaInnerKind}
40
+ * @memberof AttributeStatsSchemaInner
41
+ */
42
+ kind: AttributeStatsSchemaInnerKind;
43
+ /**
44
+ *
45
+ * @type {Array<AttributeStatsSchemaInnerValuesInner>}
46
+ * @memberof AttributeStatsSchemaInner
47
+ */
48
+ values: Array<AttributeStatsSchemaInnerValuesInner>;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the AttributeStatsSchemaInner interface.
53
+ */
54
+ export function instanceOfAttributeStatsSchemaInner(value: object): value is AttributeStatsSchemaInner {
55
+ if (!('kind' in value) || value['kind'] === undefined) return false;
56
+ if (!('values' in value) || value['values'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function AttributeStatsSchemaInnerFromJSON(json: any): AttributeStatsSchemaInner {
61
+ return AttributeStatsSchemaInnerFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function AttributeStatsSchemaInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeStatsSchemaInner {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'kind': AttributeStatsSchemaInnerKindFromJSON(json['kind']),
71
+ 'values': ((json['values'] as Array<any>).map(AttributeStatsSchemaInnerValuesInnerFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function AttributeStatsSchemaInnerToJSON(json: any): AttributeStatsSchemaInner {
76
+ return AttributeStatsSchemaInnerToJSONTyped(json, false);
77
+ }
78
+
79
+ export function AttributeStatsSchemaInnerToJSONTyped(value?: AttributeStatsSchemaInner | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'kind': AttributeStatsSchemaInnerKindToJSON(value['kind']),
87
+ 'values': ((value['values'] as Array<any>).map(AttributeStatsSchemaInnerValuesInnerToJSON)),
88
+ };
89
+ }
90
+
@@ -0,0 +1,110 @@
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 { AttributeValueKind } from './AttributeValueKind';
17
+ import {
18
+ AttributeValueKindFromJSON,
19
+ AttributeValueKindFromJSONTyped,
20
+ AttributeValueKindToJSON,
21
+ AttributeValueKindToJSONTyped,
22
+ } from './AttributeValueKind';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AttributeStatsSchemaInnerKind
28
+ */
29
+ export interface AttributeStatsSchemaInnerKind {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AttributeStatsSchemaInnerKind
34
+ */
35
+ key: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AttributeStatsSchemaInnerKind
40
+ */
41
+ label: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof AttributeStatsSchemaInnerKind
46
+ */
47
+ description?: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof AttributeStatsSchemaInnerKind
52
+ */
53
+ category?: string | null;
54
+ /**
55
+ *
56
+ * @type {AttributeValueKind}
57
+ * @memberof AttributeStatsSchemaInnerKind
58
+ */
59
+ valueKind: AttributeValueKind;
60
+ }
61
+
62
+
63
+
64
+ /**
65
+ * Check if a given object implements the AttributeStatsSchemaInnerKind interface.
66
+ */
67
+ export function instanceOfAttributeStatsSchemaInnerKind(value: object): value is AttributeStatsSchemaInnerKind {
68
+ if (!('key' in value) || value['key'] === undefined) return false;
69
+ if (!('label' in value) || value['label'] === undefined) return false;
70
+ if (!('valueKind' in value) || value['valueKind'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function AttributeStatsSchemaInnerKindFromJSON(json: any): AttributeStatsSchemaInnerKind {
75
+ return AttributeStatsSchemaInnerKindFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function AttributeStatsSchemaInnerKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeStatsSchemaInnerKind {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'key': json['key'],
85
+ 'label': json['label'],
86
+ 'description': json['description'] == null ? undefined : json['description'],
87
+ 'category': json['category'] == null ? undefined : json['category'],
88
+ 'valueKind': AttributeValueKindFromJSON(json['valueKind']),
89
+ };
90
+ }
91
+
92
+ export function AttributeStatsSchemaInnerKindToJSON(json: any): AttributeStatsSchemaInnerKind {
93
+ return AttributeStatsSchemaInnerKindToJSONTyped(json, false);
94
+ }
95
+
96
+ export function AttributeStatsSchemaInnerKindToJSONTyped(value?: AttributeStatsSchemaInnerKind | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'key': value['key'],
104
+ 'label': value['label'],
105
+ 'description': value['description'],
106
+ 'category': value['category'],
107
+ 'valueKind': AttributeValueKindToJSON(value['valueKind']),
108
+ };
109
+ }
110
+
@@ -0,0 +1,75 @@
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 AttributeStatsSchemaInnerValuesInner
20
+ */
21
+ export interface AttributeStatsSchemaInnerValuesInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AttributeStatsSchemaInnerValuesInner
26
+ */
27
+ value: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof AttributeStatsSchemaInnerValuesInner
32
+ */
33
+ count: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the AttributeStatsSchemaInnerValuesInner interface.
38
+ */
39
+ export function instanceOfAttributeStatsSchemaInnerValuesInner(value: object): value is AttributeStatsSchemaInnerValuesInner {
40
+ if (!('value' in value) || value['value'] === undefined) return false;
41
+ if (!('count' in value) || value['count'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function AttributeStatsSchemaInnerValuesInnerFromJSON(json: any): AttributeStatsSchemaInnerValuesInner {
46
+ return AttributeStatsSchemaInnerValuesInnerFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AttributeStatsSchemaInnerValuesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeStatsSchemaInnerValuesInner {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'value': json['value'],
56
+ 'count': json['count'],
57
+ };
58
+ }
59
+
60
+ export function AttributeStatsSchemaInnerValuesInnerToJSON(json: any): AttributeStatsSchemaInnerValuesInner {
61
+ return AttributeStatsSchemaInnerValuesInnerToJSONTyped(json, false);
62
+ }
63
+
64
+ export function AttributeStatsSchemaInnerValuesInnerToJSONTyped(value?: AttributeStatsSchemaInnerValuesInner | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'value': value['value'],
72
+ 'count': value['count'],
73
+ };
74
+ }
75
+