@breign/client 1.0.112 → 1.0.113

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 (64) hide show
  1. package/dist/apis/AgentApi.d.ts +60 -10
  2. package/dist/apis/AgentApi.js +99 -7
  3. package/dist/apis/MetricsApi.d.ts +131 -7
  4. package/dist/apis/MetricsApi.js +269 -5
  5. package/dist/models/AgentFeedbackMetricsUio.d.ts +50 -0
  6. package/dist/models/AgentFeedbackMetricsUio.js +60 -0
  7. package/dist/models/AgentMetricsByAppUio.d.ts +56 -0
  8. package/dist/models/AgentMetricsByAppUio.js +64 -0
  9. package/dist/models/AgentMetricsOverviewUio.d.ts +79 -0
  10. package/dist/models/AgentMetricsOverviewUio.js +31 -0
  11. package/dist/models/AgentMetricsPeriodComparisonUio.d.ts +41 -0
  12. package/dist/models/AgentMetricsPeriodComparisonUio.js +55 -0
  13. package/dist/models/AgentMetricsPeriodSnapshotUio.d.ts +68 -0
  14. package/dist/models/AgentMetricsPeriodSnapshotUio.js +74 -0
  15. package/dist/models/AgentMetricsUnitsTypeUio.d.ts +1 -0
  16. package/dist/models/AgentMetricsUnitsTypeUio.js +2 -1
  17. package/dist/models/AgentTokenBreakdownUio.d.ts +44 -0
  18. package/dist/models/AgentTokenBreakdownUio.js +58 -0
  19. package/dist/models/AgentTokenUsageByTaskUio.d.ts +38 -0
  20. package/dist/models/AgentTokenUsageByTaskUio.js +54 -0
  21. package/dist/models/AgentTokenUsageMetricUio.d.ts +56 -0
  22. package/dist/models/AgentTokenUsageMetricUio.js +66 -0
  23. package/dist/models/AgentToolUsageMetricUio.d.ts +38 -0
  24. package/dist/models/AgentToolUsageMetricUio.js +54 -0
  25. package/dist/models/AppCreateRequestEphemeralInstancesUio.d.ts +2 -2
  26. package/dist/models/AppCreateRequestEphemeralInstancesUio.js +6 -2
  27. package/dist/models/EphemeralInstancesMetricsResponseUio.d.ts +39 -0
  28. package/dist/models/EphemeralInstancesMetricsResponseUio.js +55 -0
  29. package/dist/models/EphemeralInstancesTimeSeriesPointUio.d.ts +44 -0
  30. package/dist/models/EphemeralInstancesTimeSeriesPointUio.js +58 -0
  31. package/dist/models/MetricForDayInnerIdUio.d.ts +56 -0
  32. package/dist/models/MetricForDayInnerIdUio.js +56 -0
  33. package/dist/models/MetricForDayInnerUio.d.ts +51 -0
  34. package/dist/models/MetricForDayInnerUio.js +57 -0
  35. package/dist/models/MetricForVisitorByMonthInnerUio.d.ts +44 -0
  36. package/dist/models/MetricForVisitorByMonthInnerUio.js +58 -0
  37. package/dist/models/MetricUio.d.ts +6 -0
  38. package/dist/models/MetricUio.js +2 -0
  39. package/dist/models/MetricsBrainsAgentResponseUio.d.ts +51 -0
  40. package/dist/models/MetricsBrainsAgentResponseUio.js +63 -0
  41. package/dist/models/MetricsTopAgentsResponseInnerUio.d.ts +50 -0
  42. package/dist/models/MetricsTopAgentsResponseInnerUio.js +54 -0
  43. package/dist/models/MetricsTopAgentsUsageResponseInnerUio.d.ts +44 -0
  44. package/dist/models/MetricsTopAgentsUsageResponseInnerUio.js +58 -0
  45. package/dist/models/MetricsUsersResponseUio.d.ts +39 -0
  46. package/dist/models/MetricsUsersResponseUio.js +55 -0
  47. package/dist/models/OrgUsageMetricsResponseTotalUio.d.ts +38 -0
  48. package/dist/models/OrgUsageMetricsResponseTotalUio.js +54 -0
  49. package/dist/models/OrgUsageMetricsResponseUio.d.ts +40 -0
  50. package/dist/models/OrgUsageMetricsResponseUio.js +56 -0
  51. package/dist/models/OrgUsageTimeSeriesPointUio.d.ts +50 -0
  52. package/dist/models/OrgUsageTimeSeriesPointUio.js +62 -0
  53. package/dist/models/SubscriptionAdditionalMetricUio.d.ts +44 -0
  54. package/dist/models/SubscriptionAdditionalMetricUio.js +58 -0
  55. package/dist/models/SubscriptionInteractionsMetricUio.d.ts +39 -0
  56. package/dist/models/SubscriptionInteractionsMetricUio.js +55 -0
  57. package/dist/models/SubscriptionMetricUio.d.ts +6 -5
  58. package/dist/models/SubscriptionMetricUio.js +12 -5
  59. package/dist/models/TotalTokensUsedByAgentUio.d.ts +38 -0
  60. package/dist/models/TotalTokensUsedByAgentUio.js +50 -0
  61. package/dist/models/index.d.ts +23 -0
  62. package/dist/models/index.js +23 -0
  63. package/dist/openapi.json +1063 -67
  64. package/package.json +1 -1
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentToolUsageMetricUio = instanceOfAgentToolUsageMetricUio;
17
+ exports.AgentToolUsageMetricUioFromJSON = AgentToolUsageMetricUioFromJSON;
18
+ exports.AgentToolUsageMetricUioFromJSONTyped = AgentToolUsageMetricUioFromJSONTyped;
19
+ exports.AgentToolUsageMetricUioToJSON = AgentToolUsageMetricUioToJSON;
20
+ exports.AgentToolUsageMetricUioToJSONTyped = AgentToolUsageMetricUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentToolUsageMetricUio interface.
23
+ */
24
+ function instanceOfAgentToolUsageMetricUio(value) {
25
+ if (!('toolName' in value) || value['toolName'] === undefined)
26
+ return false;
27
+ if (!('count' in value) || value['count'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AgentToolUsageMetricUioFromJSON(json) {
32
+ return AgentToolUsageMetricUioFromJSONTyped(json, false);
33
+ }
34
+ function AgentToolUsageMetricUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'toolName': json['toolName'],
40
+ 'count': json['count'],
41
+ };
42
+ }
43
+ function AgentToolUsageMetricUioToJSON(json) {
44
+ return AgentToolUsageMetricUioToJSONTyped(json, false);
45
+ }
46
+ function AgentToolUsageMetricUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'toolName': value['toolName'],
52
+ 'count': value['count'],
53
+ };
54
+ }
@@ -20,13 +20,13 @@ export interface AppCreateRequestEphemeralInstancesUio {
20
20
  * @type {boolean}
21
21
  * @memberof AppCreateRequestEphemeralInstancesUio
22
22
  */
23
- allowed?: boolean;
23
+ allowed: boolean;
24
24
  /**
25
25
  *
26
26
  * @type {number}
27
27
  * @memberof AppCreateRequestEphemeralInstancesUio
28
28
  */
29
- maxInstances?: number;
29
+ maxInstances: number;
30
30
  }
31
31
  /**
32
32
  * Check if a given object implements the AppCreateRequestEphemeralInstancesUio interface.
@@ -22,6 +22,10 @@ exports.AppCreateRequestEphemeralInstancesUioToJSONTyped = AppCreateRequestEphem
22
22
  * Check if a given object implements the AppCreateRequestEphemeralInstancesUio interface.
23
23
  */
24
24
  function instanceOfAppCreateRequestEphemeralInstancesUio(value) {
25
+ if (!('allowed' in value) || value['allowed'] === undefined)
26
+ return false;
27
+ if (!('maxInstances' in value) || value['maxInstances'] === undefined)
28
+ return false;
25
29
  return true;
26
30
  }
27
31
  function AppCreateRequestEphemeralInstancesUioFromJSON(json) {
@@ -32,8 +36,8 @@ function AppCreateRequestEphemeralInstancesUioFromJSONTyped(json, ignoreDiscrimi
32
36
  return json;
33
37
  }
34
38
  return {
35
- 'allowed': json['allowed'] == null ? undefined : json['allowed'],
36
- 'maxInstances': json['maxInstances'] == null ? undefined : json['maxInstances'],
39
+ 'allowed': json['allowed'],
40
+ 'maxInstances': json['maxInstances'],
37
41
  };
38
42
  }
39
43
  function AppCreateRequestEphemeralInstancesUioToJSON(json) {
@@ -0,0 +1,39 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { EphemeralInstancesTimeSeriesPointUio } from './EphemeralInstancesTimeSeriesPointUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface EphemeralInstancesMetricsResponseUio
17
+ */
18
+ export interface EphemeralInstancesMetricsResponseUio {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof EphemeralInstancesMetricsResponseUio
23
+ */
24
+ total: number;
25
+ /**
26
+ *
27
+ * @type {Array<EphemeralInstancesTimeSeriesPointUio>}
28
+ * @memberof EphemeralInstancesMetricsResponseUio
29
+ */
30
+ series: Array<EphemeralInstancesTimeSeriesPointUio>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the EphemeralInstancesMetricsResponseUio interface.
34
+ */
35
+ export declare function instanceOfEphemeralInstancesMetricsResponseUio(value: object): value is EphemeralInstancesMetricsResponseUio;
36
+ export declare function EphemeralInstancesMetricsResponseUioFromJSON(json: any): EphemeralInstancesMetricsResponseUio;
37
+ export declare function EphemeralInstancesMetricsResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): EphemeralInstancesMetricsResponseUio;
38
+ export declare function EphemeralInstancesMetricsResponseUioToJSON(json: any): EphemeralInstancesMetricsResponseUio;
39
+ export declare function EphemeralInstancesMetricsResponseUioToJSONTyped(value?: EphemeralInstancesMetricsResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfEphemeralInstancesMetricsResponseUio = instanceOfEphemeralInstancesMetricsResponseUio;
17
+ exports.EphemeralInstancesMetricsResponseUioFromJSON = EphemeralInstancesMetricsResponseUioFromJSON;
18
+ exports.EphemeralInstancesMetricsResponseUioFromJSONTyped = EphemeralInstancesMetricsResponseUioFromJSONTyped;
19
+ exports.EphemeralInstancesMetricsResponseUioToJSON = EphemeralInstancesMetricsResponseUioToJSON;
20
+ exports.EphemeralInstancesMetricsResponseUioToJSONTyped = EphemeralInstancesMetricsResponseUioToJSONTyped;
21
+ const EphemeralInstancesTimeSeriesPointUio_1 = require("./EphemeralInstancesTimeSeriesPointUio");
22
+ /**
23
+ * Check if a given object implements the EphemeralInstancesMetricsResponseUio interface.
24
+ */
25
+ function instanceOfEphemeralInstancesMetricsResponseUio(value) {
26
+ if (!('total' in value) || value['total'] === undefined)
27
+ return false;
28
+ if (!('series' in value) || value['series'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function EphemeralInstancesMetricsResponseUioFromJSON(json) {
33
+ return EphemeralInstancesMetricsResponseUioFromJSONTyped(json, false);
34
+ }
35
+ function EphemeralInstancesMetricsResponseUioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'total': json['total'],
41
+ 'series': (json['series'].map(EphemeralInstancesTimeSeriesPointUio_1.EphemeralInstancesTimeSeriesPointUioFromJSON)),
42
+ };
43
+ }
44
+ function EphemeralInstancesMetricsResponseUioToJSON(json) {
45
+ return EphemeralInstancesMetricsResponseUioToJSONTyped(json, false);
46
+ }
47
+ function EphemeralInstancesMetricsResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'total': value['total'],
53
+ 'series': (value['series'].map(EphemeralInstancesTimeSeriesPointUio_1.EphemeralInstancesTimeSeriesPointUioToJSON)),
54
+ };
55
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface EphemeralInstancesTimeSeriesPointUio
16
+ */
17
+ export interface EphemeralInstancesTimeSeriesPointUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof EphemeralInstancesTimeSeriesPointUio
22
+ */
23
+ bucket: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof EphemeralInstancesTimeSeriesPointUio
28
+ */
29
+ label: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof EphemeralInstancesTimeSeriesPointUio
34
+ */
35
+ count: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the EphemeralInstancesTimeSeriesPointUio interface.
39
+ */
40
+ export declare function instanceOfEphemeralInstancesTimeSeriesPointUio(value: object): value is EphemeralInstancesTimeSeriesPointUio;
41
+ export declare function EphemeralInstancesTimeSeriesPointUioFromJSON(json: any): EphemeralInstancesTimeSeriesPointUio;
42
+ export declare function EphemeralInstancesTimeSeriesPointUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): EphemeralInstancesTimeSeriesPointUio;
43
+ export declare function EphemeralInstancesTimeSeriesPointUioToJSON(json: any): EphemeralInstancesTimeSeriesPointUio;
44
+ export declare function EphemeralInstancesTimeSeriesPointUioToJSONTyped(value?: EphemeralInstancesTimeSeriesPointUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfEphemeralInstancesTimeSeriesPointUio = instanceOfEphemeralInstancesTimeSeriesPointUio;
17
+ exports.EphemeralInstancesTimeSeriesPointUioFromJSON = EphemeralInstancesTimeSeriesPointUioFromJSON;
18
+ exports.EphemeralInstancesTimeSeriesPointUioFromJSONTyped = EphemeralInstancesTimeSeriesPointUioFromJSONTyped;
19
+ exports.EphemeralInstancesTimeSeriesPointUioToJSON = EphemeralInstancesTimeSeriesPointUioToJSON;
20
+ exports.EphemeralInstancesTimeSeriesPointUioToJSONTyped = EphemeralInstancesTimeSeriesPointUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the EphemeralInstancesTimeSeriesPointUio interface.
23
+ */
24
+ function instanceOfEphemeralInstancesTimeSeriesPointUio(value) {
25
+ if (!('bucket' in value) || value['bucket'] === undefined)
26
+ return false;
27
+ if (!('label' in value) || value['label'] === undefined)
28
+ return false;
29
+ if (!('count' in value) || value['count'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function EphemeralInstancesTimeSeriesPointUioFromJSON(json) {
34
+ return EphemeralInstancesTimeSeriesPointUioFromJSONTyped(json, false);
35
+ }
36
+ function EphemeralInstancesTimeSeriesPointUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'bucket': json['bucket'],
42
+ 'label': json['label'],
43
+ 'count': json['count'],
44
+ };
45
+ }
46
+ function EphemeralInstancesTimeSeriesPointUioToJSON(json) {
47
+ return EphemeralInstancesTimeSeriesPointUioToJSONTyped(json, false);
48
+ }
49
+ function EphemeralInstancesTimeSeriesPointUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'bucket': value['bucket'],
55
+ 'label': value['label'],
56
+ 'count': value['count'],
57
+ };
58
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface MetricForDayInnerIdUio
16
+ */
17
+ export interface MetricForDayInnerIdUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MetricForDayInnerIdUio
22
+ */
23
+ agentId?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MetricForDayInnerIdUio
28
+ */
29
+ type?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof MetricForDayInnerIdUio
34
+ */
35
+ model?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof MetricForDayInnerIdUio
40
+ */
41
+ provider?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof MetricForDayInnerIdUio
46
+ */
47
+ units?: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the MetricForDayInnerIdUio interface.
51
+ */
52
+ export declare function instanceOfMetricForDayInnerIdUio(value: object): value is MetricForDayInnerIdUio;
53
+ export declare function MetricForDayInnerIdUioFromJSON(json: any): MetricForDayInnerIdUio;
54
+ export declare function MetricForDayInnerIdUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricForDayInnerIdUio;
55
+ export declare function MetricForDayInnerIdUioToJSON(json: any): MetricForDayInnerIdUio;
56
+ export declare function MetricForDayInnerIdUioToJSONTyped(value?: MetricForDayInnerIdUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfMetricForDayInnerIdUio = instanceOfMetricForDayInnerIdUio;
17
+ exports.MetricForDayInnerIdUioFromJSON = MetricForDayInnerIdUioFromJSON;
18
+ exports.MetricForDayInnerIdUioFromJSONTyped = MetricForDayInnerIdUioFromJSONTyped;
19
+ exports.MetricForDayInnerIdUioToJSON = MetricForDayInnerIdUioToJSON;
20
+ exports.MetricForDayInnerIdUioToJSONTyped = MetricForDayInnerIdUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MetricForDayInnerIdUio interface.
23
+ */
24
+ function instanceOfMetricForDayInnerIdUio(value) {
25
+ return true;
26
+ }
27
+ function MetricForDayInnerIdUioFromJSON(json) {
28
+ return MetricForDayInnerIdUioFromJSONTyped(json, false);
29
+ }
30
+ function MetricForDayInnerIdUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'agentId': json['agentId'] == null ? undefined : json['agentId'],
36
+ 'type': json['type'] == null ? undefined : json['type'],
37
+ 'model': json['model'] == null ? undefined : json['model'],
38
+ 'provider': json['provider'] == null ? undefined : json['provider'],
39
+ 'units': json['units'] == null ? undefined : json['units'],
40
+ };
41
+ }
42
+ function MetricForDayInnerIdUioToJSON(json) {
43
+ return MetricForDayInnerIdUioToJSONTyped(json, false);
44
+ }
45
+ function MetricForDayInnerIdUioToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'agentId': value['agentId'],
51
+ 'type': value['type'],
52
+ 'model': value['model'],
53
+ 'provider': value['provider'],
54
+ 'units': value['units'],
55
+ };
56
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { MetricForDayInnerIdUio } from './MetricForDayInnerIdUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface MetricForDayInnerUio
17
+ */
18
+ export interface MetricForDayInnerUio {
19
+ /**
20
+ *
21
+ * @type {MetricForDayInnerIdUio}
22
+ * @memberof MetricForDayInnerUio
23
+ */
24
+ id: MetricForDayInnerIdUio;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof MetricForDayInnerUio
29
+ */
30
+ total?: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof MetricForDayInnerUio
35
+ */
36
+ count?: number;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof MetricForDayInnerUio
41
+ */
42
+ timestamp?: Date;
43
+ }
44
+ /**
45
+ * Check if a given object implements the MetricForDayInnerUio interface.
46
+ */
47
+ export declare function instanceOfMetricForDayInnerUio(value: object): value is MetricForDayInnerUio;
48
+ export declare function MetricForDayInnerUioFromJSON(json: any): MetricForDayInnerUio;
49
+ export declare function MetricForDayInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricForDayInnerUio;
50
+ export declare function MetricForDayInnerUioToJSON(json: any): MetricForDayInnerUio;
51
+ export declare function MetricForDayInnerUioToJSONTyped(value?: MetricForDayInnerUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfMetricForDayInnerUio = instanceOfMetricForDayInnerUio;
17
+ exports.MetricForDayInnerUioFromJSON = MetricForDayInnerUioFromJSON;
18
+ exports.MetricForDayInnerUioFromJSONTyped = MetricForDayInnerUioFromJSONTyped;
19
+ exports.MetricForDayInnerUioToJSON = MetricForDayInnerUioToJSON;
20
+ exports.MetricForDayInnerUioToJSONTyped = MetricForDayInnerUioToJSONTyped;
21
+ const MetricForDayInnerIdUio_1 = require("./MetricForDayInnerIdUio");
22
+ /**
23
+ * Check if a given object implements the MetricForDayInnerUio interface.
24
+ */
25
+ function instanceOfMetricForDayInnerUio(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function MetricForDayInnerUioFromJSON(json) {
31
+ return MetricForDayInnerUioFromJSONTyped(json, false);
32
+ }
33
+ function MetricForDayInnerUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'id': (0, MetricForDayInnerIdUio_1.MetricForDayInnerIdUioFromJSON)(json['_id']),
39
+ 'total': json['total'] == null ? undefined : json['total'],
40
+ 'count': json['count'] == null ? undefined : json['count'],
41
+ 'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
42
+ };
43
+ }
44
+ function MetricForDayInnerUioToJSON(json) {
45
+ return MetricForDayInnerUioToJSONTyped(json, false);
46
+ }
47
+ function MetricForDayInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ '_id': (0, MetricForDayInnerIdUio_1.MetricForDayInnerIdUioToJSON)(value['id']),
53
+ 'total': value['total'],
54
+ 'count': value['count'],
55
+ 'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()),
56
+ };
57
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface MetricForVisitorByMonthInnerUio
16
+ */
17
+ export interface MetricForVisitorByMonthInnerUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MetricForVisitorByMonthInnerUio
22
+ */
23
+ date: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MetricForVisitorByMonthInnerUio
28
+ */
29
+ label: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof MetricForVisitorByMonthInnerUio
34
+ */
35
+ users: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the MetricForVisitorByMonthInnerUio interface.
39
+ */
40
+ export declare function instanceOfMetricForVisitorByMonthInnerUio(value: object): value is MetricForVisitorByMonthInnerUio;
41
+ export declare function MetricForVisitorByMonthInnerUioFromJSON(json: any): MetricForVisitorByMonthInnerUio;
42
+ export declare function MetricForVisitorByMonthInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricForVisitorByMonthInnerUio;
43
+ export declare function MetricForVisitorByMonthInnerUioToJSON(json: any): MetricForVisitorByMonthInnerUio;
44
+ export declare function MetricForVisitorByMonthInnerUioToJSONTyped(value?: MetricForVisitorByMonthInnerUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfMetricForVisitorByMonthInnerUio = instanceOfMetricForVisitorByMonthInnerUio;
17
+ exports.MetricForVisitorByMonthInnerUioFromJSON = MetricForVisitorByMonthInnerUioFromJSON;
18
+ exports.MetricForVisitorByMonthInnerUioFromJSONTyped = MetricForVisitorByMonthInnerUioFromJSONTyped;
19
+ exports.MetricForVisitorByMonthInnerUioToJSON = MetricForVisitorByMonthInnerUioToJSON;
20
+ exports.MetricForVisitorByMonthInnerUioToJSONTyped = MetricForVisitorByMonthInnerUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MetricForVisitorByMonthInnerUio interface.
23
+ */
24
+ function instanceOfMetricForVisitorByMonthInnerUio(value) {
25
+ if (!('date' in value) || value['date'] === undefined)
26
+ return false;
27
+ if (!('label' in value) || value['label'] === undefined)
28
+ return false;
29
+ if (!('users' in value) || value['users'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function MetricForVisitorByMonthInnerUioFromJSON(json) {
34
+ return MetricForVisitorByMonthInnerUioFromJSONTyped(json, false);
35
+ }
36
+ function MetricForVisitorByMonthInnerUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'date': json['date'],
42
+ 'label': json['label'],
43
+ 'users': json['users'],
44
+ };
45
+ }
46
+ function MetricForVisitorByMonthInnerUioToJSON(json) {
47
+ return MetricForVisitorByMonthInnerUioToJSONTyped(json, false);
48
+ }
49
+ function MetricForVisitorByMonthInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'date': value['date'],
55
+ 'label': value['label'],
56
+ 'users': value['users'],
57
+ };
58
+ }
@@ -34,6 +34,12 @@ export interface MetricUio {
34
34
  * @memberof MetricUio
35
35
  */
36
36
  count: number;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof MetricUio
41
+ */
42
+ timestamp?: string;
37
43
  }
38
44
  /**
39
45
  * Check if a given object implements the MetricUio interface.
@@ -42,6 +42,7 @@ function MetricUioFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'identifier': (0, MetricIdentifierUio_1.MetricIdentifierUioFromJSON)(json['identifier']),
43
43
  'total': json['total'],
44
44
  'count': json['count'],
45
+ 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
45
46
  };
46
47
  }
47
48
  function MetricUioToJSON(json) {
@@ -55,5 +56,6 @@ function MetricUioToJSONTyped(value, ignoreDiscriminator = false) {
55
56
  'identifier': (0, MetricIdentifierUio_1.MetricIdentifierUioToJSON)(value['identifier']),
56
57
  'total': value['total'],
57
58
  'count': value['count'],
59
+ 'timestamp': value['timestamp'],
58
60
  };
59
61
  }