@sentio/api 1.0.2-rc.1 → 1.0.2-rc.11

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 (96) hide show
  1. package/README.md +48 -1
  2. package/dist/src/apis/DataApi.d.ts +3 -29
  3. package/dist/src/apis/DataApi.js +14 -76
  4. package/dist/src/apis/DataApi.js.map +1 -1
  5. package/dist/src/apis/DebugAndSimulationApi.d.ts +2 -1
  6. package/dist/src/apis/DebugAndSimulationApi.js +10 -10
  7. package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
  8. package/dist/src/apis/PriceApi.d.ts +68 -0
  9. package/dist/src/apis/PriceApi.js +149 -0
  10. package/dist/src/apis/PriceApi.js.map +1 -0
  11. package/dist/src/apis/WebApi.js +9 -9
  12. package/dist/src/apis/index.d.ts +1 -0
  13. package/dist/src/apis/index.js +1 -0
  14. package/dist/src/apis/index.js.map +1 -1
  15. package/dist/src/models/CommonTimeRangeLite.d.ts +1 -1
  16. package/dist/src/models/GoogleProtobufAny.d.ts +2 -1
  17. package/dist/src/models/GoogleProtobufAny.js.map +1 -1
  18. package/dist/src/models/PriceServiceBatchGetPricesResponse.d.ts +32 -0
  19. package/dist/src/models/PriceServiceBatchGetPricesResponse.js +40 -0
  20. package/dist/src/models/PriceServiceBatchGetPricesResponse.js.map +1 -0
  21. package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPrice.d.ts +45 -0
  22. package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPrice.js +45 -0
  23. package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPrice.js.map +1 -0
  24. package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.d.ts +32 -0
  25. package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.js +40 -0
  26. package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.js.map +1 -0
  27. package/dist/src/models/PriceServiceCheckLatestPriceResponse.d.ts +38 -0
  28. package/dist/src/models/PriceServiceCheckLatestPriceResponse.js +42 -0
  29. package/dist/src/models/PriceServiceCheckLatestPriceResponse.js.map +1 -0
  30. package/dist/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.d.ts +44 -0
  31. package/dist/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.js +44 -0
  32. package/dist/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.js.map +1 -0
  33. package/dist/src/models/PriceServiceCoinID.d.ts +38 -0
  34. package/dist/src/models/PriceServiceCoinID.js +42 -0
  35. package/dist/src/models/PriceServiceCoinID.js.map +1 -0
  36. package/dist/src/models/PriceServiceCoinIDAddressIdentifier.d.ts +38 -0
  37. package/dist/src/models/PriceServiceCoinIDAddressIdentifier.js +41 -0
  38. package/dist/src/models/PriceServiceCoinIDAddressIdentifier.js.map +1 -0
  39. package/dist/src/models/PriceServiceGetPriceResponse.d.ts +37 -0
  40. package/dist/src/models/PriceServiceGetPriceResponse.js +41 -0
  41. package/dist/src/models/PriceServiceGetPriceResponse.js.map +1 -0
  42. package/dist/src/models/PriceServiceListCoinsResponse.d.ts +40 -0
  43. package/dist/src/models/PriceServiceListCoinsResponse.js +43 -0
  44. package/dist/src/models/PriceServiceListCoinsResponse.js.map +1 -0
  45. package/dist/src/models/SolidityServiceSimulation.d.ts +16 -10
  46. package/dist/src/models/SolidityServiceSimulation.js +29 -9
  47. package/dist/src/models/SolidityServiceSimulation.js.map +1 -1
  48. package/dist/src/models/SolidityServiceTxIdentifier.d.ts +2 -2
  49. package/dist/src/models/SolidityServiceTxIdentifier.js +1 -3
  50. package/dist/src/models/SolidityServiceTxIdentifier.js.map +1 -1
  51. package/dist/src/models/WebServiceChartConfig.d.ts +7 -0
  52. package/dist/src/models/WebServiceChartConfig.js +3 -0
  53. package/dist/src/models/WebServiceChartConfig.js.map +1 -1
  54. package/dist/src/models/WebServiceChartConfigLineConfig.d.ts +32 -0
  55. package/dist/src/models/WebServiceChartConfigLineConfig.js +40 -0
  56. package/dist/src/models/WebServiceChartConfigLineConfig.js.map +1 -0
  57. package/dist/src/models/WebServiceChartConfigLineConfigStyle.d.ts +24 -0
  58. package/dist/src/models/WebServiceChartConfigLineConfigStyle.js +34 -0
  59. package/dist/src/models/WebServiceChartConfigLineConfigStyle.js.map +1 -0
  60. package/dist/src/models/index.d.ts +11 -2
  61. package/dist/src/models/index.js +11 -2
  62. package/dist/src/models/index.js.map +1 -1
  63. package/dist/src/runtime.js +1 -1
  64. package/dist/src/runtime.js.map +1 -1
  65. package/package.json +1 -1
  66. package/src/apis/DataApi.ts +13 -111
  67. package/src/apis/DebugAndSimulationApi.ts +13 -15
  68. package/src/apis/PriceApi.ts +220 -0
  69. package/src/apis/WebApi.ts +9 -9
  70. package/src/apis/index.ts +1 -0
  71. package/src/models/CommonTimeRangeLite.ts +1 -1
  72. package/src/models/GoogleProtobufAny.ts +2 -1
  73. package/src/models/PriceServiceBatchGetPricesResponse.ts +67 -0
  74. package/src/models/PriceServiceBatchGetPricesResponseCoinPrice.ts +89 -0
  75. package/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.ts +67 -0
  76. package/src/models/PriceServiceCheckLatestPriceResponse.ts +75 -0
  77. package/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.ts +83 -0
  78. package/src/models/PriceServiceCoinID.ts +75 -0
  79. package/src/models/PriceServiceCoinIDAddressIdentifier.ts +69 -0
  80. package/src/models/PriceServiceGetPriceResponse.ts +68 -0
  81. package/src/models/PriceServiceListCoinsResponse.ts +75 -0
  82. package/src/models/SolidityServiceSimulation.ts +36 -19
  83. package/src/models/SolidityServiceTxIdentifier.ts +3 -4
  84. package/src/models/WebServiceChartConfig.ts +14 -0
  85. package/src/models/WebServiceChartConfigLineConfig.ts +67 -0
  86. package/src/models/WebServiceChartConfigLineConfigStyle.ts +42 -0
  87. package/src/models/index.ts +11 -2
  88. package/src/runtime.ts +1 -1
  89. package/dist/src/models/AnalyticServiceSyncExecuteSQLRequest.d.ts +0 -75
  90. package/dist/src/models/AnalyticServiceSyncExecuteSQLRequest.js +0 -55
  91. package/dist/src/models/AnalyticServiceSyncExecuteSQLRequest.js.map +0 -1
  92. package/dist/src/models/InsightsServiceQueryRequest.d.ts +0 -95
  93. package/dist/src/models/InsightsServiceQueryRequest.js +0 -63
  94. package/dist/src/models/InsightsServiceQueryRequest.js.map +0 -1
  95. package/src/models/AnalyticServiceSyncExecuteSQLRequest.ts +0 -129
  96. package/src/models/InsightsServiceQueryRequest.ts +0 -165
@@ -1 +0,0 @@
1
- {"version":3,"file":"InsightsServiceQueryRequest.js","sourceRoot":"","sources":["../../../src/models/InsightsServiceQueryRequest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH,OAAO,EACH,yBAAyB,EAEzB,uBAAuB,GAC1B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACH,qBAAqB,EAErB,mBAAmB,GACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACH,2BAA2B,EAE3B,yBAAyB,GAC5B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACH,wCAAwC,EAExC,sCAAsC,GACzC,MAAM,uCAAuC,CAAC;AA4E/C;;GAEG;AACH,MAAM,UAAU,qCAAqC,CAAC,KAAa;IAC/D,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,mCAAmC,CAAC,IAAS;IACzD,OAAO,wCAAwC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,wCAAwC,CAAC,IAAS,EAAE,mBAA4B;IAC5F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC;QAC/E,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;QAC5E,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;QACtE,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;QAChE,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,2BAA2B,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACnG,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,SAAS,CAAgB,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;QAChI,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,UAAU,CAAgB,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;QAChH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAC1D,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC7D,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;QAC5E,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,yBAAyB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KAC1G,CAAC;AACN,CAAC;AAED,MAAM,UAAU,iCAAiC,CAAC,KAA0C;IACxF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO;QAEH,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;QACrC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,WAAW,EAAE,yBAAyB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC1D,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,SAAS,CAAgB,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;QAChI,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,UAAU,CAAgB,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QAChH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,aAAa,EAAE,uBAAuB,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC"}
@@ -1,129 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Sentio API
5
- * Sentio Open API for query data
6
- *
7
- * The version of the OpenAPI document: version not set
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.js';
16
- import type { AnalyticServiceSQLQuery } from './AnalyticServiceSQLQuery.js';
17
- import {
18
- AnalyticServiceSQLQueryFromJSON,
19
- AnalyticServiceSQLQueryFromJSONTyped,
20
- AnalyticServiceSQLQueryToJSON,
21
- } from './AnalyticServiceSQLQuery.js';
22
- import type { CommonCachePolicy } from './CommonCachePolicy.js';
23
- import {
24
- CommonCachePolicyFromJSON,
25
- CommonCachePolicyFromJSONTyped,
26
- CommonCachePolicyToJSON,
27
- } from './CommonCachePolicy.js';
28
-
29
- /**
30
- *
31
- * @export
32
- * @interface AnalyticServiceSyncExecuteSQLRequest
33
- */
34
- export interface AnalyticServiceSyncExecuteSQLRequest {
35
- /**
36
- *
37
- * @type {string}
38
- * @memberof AnalyticServiceSyncExecuteSQLRequest
39
- */
40
- projectOwner?: string;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof AnalyticServiceSyncExecuteSQLRequest
45
- */
46
- projectSlug?: string;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof AnalyticServiceSyncExecuteSQLRequest
51
- */
52
- projectId?: string;
53
- /**
54
- *
55
- * @type {number}
56
- * @memberof AnalyticServiceSyncExecuteSQLRequest
57
- */
58
- version?: number;
59
- /**
60
- *
61
- * @type {AnalyticServiceSQLQuery}
62
- * @memberof AnalyticServiceSyncExecuteSQLRequest
63
- */
64
- sqlQuery?: AnalyticServiceSQLQuery;
65
- /**
66
- *
67
- * @type {string}
68
- * @memberof AnalyticServiceSyncExecuteSQLRequest
69
- */
70
- cursor?: string;
71
- /**
72
- *
73
- * @type {boolean}
74
- * @memberof AnalyticServiceSyncExecuteSQLRequest
75
- */
76
- bypassCache?: boolean;
77
- /**
78
- *
79
- * @type {CommonCachePolicy}
80
- * @memberof AnalyticServiceSyncExecuteSQLRequest
81
- */
82
- cachePolicy?: CommonCachePolicy;
83
- }
84
-
85
- /**
86
- * Check if a given object implements the AnalyticServiceSyncExecuteSQLRequest interface.
87
- */
88
- export function instanceOfAnalyticServiceSyncExecuteSQLRequest(value: object): boolean {
89
- return true;
90
- }
91
-
92
- export function AnalyticServiceSyncExecuteSQLRequestFromJSON(json: any): AnalyticServiceSyncExecuteSQLRequest {
93
- return AnalyticServiceSyncExecuteSQLRequestFromJSONTyped(json, false);
94
- }
95
-
96
- export function AnalyticServiceSyncExecuteSQLRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnalyticServiceSyncExecuteSQLRequest {
97
- if (json == null) {
98
- return json;
99
- }
100
- return {
101
-
102
- 'projectOwner': json['projectOwner'] == null ? undefined : json['projectOwner'],
103
- 'projectSlug': json['projectSlug'] == null ? undefined : json['projectSlug'],
104
- 'projectId': json['projectId'] == null ? undefined : json['projectId'],
105
- 'version': json['version'] == null ? undefined : json['version'],
106
- 'sqlQuery': json['sqlQuery'] == null ? undefined : AnalyticServiceSQLQueryFromJSON(json['sqlQuery']),
107
- 'cursor': json['cursor'] == null ? undefined : json['cursor'],
108
- 'bypassCache': json['bypassCache'] == null ? undefined : json['bypassCache'],
109
- 'cachePolicy': json['cachePolicy'] == null ? undefined : CommonCachePolicyFromJSON(json['cachePolicy']),
110
- };
111
- }
112
-
113
- export function AnalyticServiceSyncExecuteSQLRequestToJSON(value?: AnalyticServiceSyncExecuteSQLRequest | null): any {
114
- if (value == null) {
115
- return value;
116
- }
117
- return {
118
-
119
- 'projectOwner': value['projectOwner'],
120
- 'projectSlug': value['projectSlug'],
121
- 'projectId': value['projectId'],
122
- 'version': value['version'],
123
- 'sqlQuery': AnalyticServiceSQLQueryToJSON(value['sqlQuery']),
124
- 'cursor': value['cursor'],
125
- 'bypassCache': value['bypassCache'],
126
- 'cachePolicy': CommonCachePolicyToJSON(value['cachePolicy']),
127
- };
128
- }
129
-
@@ -1,165 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Sentio API
5
- * Sentio Open API for query data
6
- *
7
- * The version of the OpenAPI document: version not set
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.js';
16
- import type { CommonCachePolicy } from './CommonCachePolicy.js';
17
- import {
18
- CommonCachePolicyFromJSON,
19
- CommonCachePolicyFromJSONTyped,
20
- CommonCachePolicyToJSON,
21
- } from './CommonCachePolicy.js';
22
- import type { CommonFormula } from './CommonFormula.js';
23
- import {
24
- CommonFormulaFromJSON,
25
- CommonFormulaFromJSONTyped,
26
- CommonFormulaToJSON,
27
- } from './CommonFormula.js';
28
- import type { CommonTimeRangeLite } from './CommonTimeRangeLite.js';
29
- import {
30
- CommonTimeRangeLiteFromJSON,
31
- CommonTimeRangeLiteFromJSONTyped,
32
- CommonTimeRangeLiteToJSON,
33
- } from './CommonTimeRangeLite.js';
34
- import type { InsightsServiceQueryRequestQuery } from './InsightsServiceQueryRequestQuery.js';
35
- import {
36
- InsightsServiceQueryRequestQueryFromJSON,
37
- InsightsServiceQueryRequestQueryFromJSONTyped,
38
- InsightsServiceQueryRequestQueryToJSON,
39
- } from './InsightsServiceQueryRequestQuery.js';
40
-
41
- /**
42
- *
43
- * @export
44
- * @interface InsightsServiceQueryRequest
45
- */
46
- export interface InsightsServiceQueryRequest {
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof InsightsServiceQueryRequest
51
- */
52
- projectOwner?: string;
53
- /**
54
- *
55
- * @type {string}
56
- * @memberof InsightsServiceQueryRequest
57
- */
58
- projectSlug?: string;
59
- /**
60
- *
61
- * @type {string}
62
- * @memberof InsightsServiceQueryRequest
63
- */
64
- projectId?: string;
65
- /**
66
- *
67
- * @type {number}
68
- * @memberof InsightsServiceQueryRequest
69
- */
70
- version?: number;
71
- /**
72
- *
73
- * @type {CommonTimeRangeLite}
74
- * @memberof InsightsServiceQueryRequest
75
- */
76
- timeRange?: CommonTimeRangeLite;
77
- /**
78
- *
79
- * @type {Array<InsightsServiceQueryRequestQuery>}
80
- * @memberof InsightsServiceQueryRequest
81
- */
82
- queries?: Array<InsightsServiceQueryRequestQuery>;
83
- /**
84
- *
85
- * @type {Array<CommonFormula>}
86
- * @memberof InsightsServiceQueryRequest
87
- */
88
- formulas?: Array<CommonFormula>;
89
- /**
90
- *
91
- * @type {number}
92
- * @memberof InsightsServiceQueryRequest
93
- */
94
- limit?: number;
95
- /**
96
- *
97
- * @type {number}
98
- * @memberof InsightsServiceQueryRequest
99
- */
100
- offset?: number;
101
- /**
102
- *
103
- * @type {boolean}
104
- * @memberof InsightsServiceQueryRequest
105
- */
106
- bypassCache?: boolean;
107
- /**
108
- *
109
- * @type {CommonCachePolicy}
110
- * @memberof InsightsServiceQueryRequest
111
- */
112
- cachePolicy?: CommonCachePolicy;
113
- }
114
-
115
- /**
116
- * Check if a given object implements the InsightsServiceQueryRequest interface.
117
- */
118
- export function instanceOfInsightsServiceQueryRequest(value: object): boolean {
119
- return true;
120
- }
121
-
122
- export function InsightsServiceQueryRequestFromJSON(json: any): InsightsServiceQueryRequest {
123
- return InsightsServiceQueryRequestFromJSONTyped(json, false);
124
- }
125
-
126
- export function InsightsServiceQueryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InsightsServiceQueryRequest {
127
- if (json == null) {
128
- return json;
129
- }
130
- return {
131
-
132
- 'projectOwner': json['projectOwner'] == null ? undefined : json['projectOwner'],
133
- 'projectSlug': json['projectSlug'] == null ? undefined : json['projectSlug'],
134
- 'projectId': json['projectId'] == null ? undefined : json['projectId'],
135
- 'version': json['version'] == null ? undefined : json['version'],
136
- 'timeRange': json['timeRange'] == null ? undefined : CommonTimeRangeLiteFromJSON(json['timeRange']),
137
- 'queries': json['queries'] == null ? undefined : ((json['queries'] as Array<any>).map(InsightsServiceQueryRequestQueryFromJSON)),
138
- 'formulas': json['formulas'] == null ? undefined : ((json['formulas'] as Array<any>).map(CommonFormulaFromJSON)),
139
- 'limit': json['limit'] == null ? undefined : json['limit'],
140
- 'offset': json['offset'] == null ? undefined : json['offset'],
141
- 'bypassCache': json['bypassCache'] == null ? undefined : json['bypassCache'],
142
- 'cachePolicy': json['cachePolicy'] == null ? undefined : CommonCachePolicyFromJSON(json['cachePolicy']),
143
- };
144
- }
145
-
146
- export function InsightsServiceQueryRequestToJSON(value?: InsightsServiceQueryRequest | null): any {
147
- if (value == null) {
148
- return value;
149
- }
150
- return {
151
-
152
- 'projectOwner': value['projectOwner'],
153
- 'projectSlug': value['projectSlug'],
154
- 'projectId': value['projectId'],
155
- 'version': value['version'],
156
- 'timeRange': CommonTimeRangeLiteToJSON(value['timeRange']),
157
- 'queries': value['queries'] == null ? undefined : ((value['queries'] as Array<any>).map(InsightsServiceQueryRequestQueryToJSON)),
158
- 'formulas': value['formulas'] == null ? undefined : ((value['formulas'] as Array<any>).map(CommonFormulaToJSON)),
159
- 'limit': value['limit'],
160
- 'offset': value['offset'],
161
- 'bypassCache': value['bypassCache'],
162
- 'cachePolicy': CommonCachePolicyToJSON(value['cachePolicy']),
163
- };
164
- }
165
-