ultracart_rest_api_v2_typescript 4.0.143 → 4.0.144
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 +0 -1
- package/README.md +3 -2
- package/dist/models/Experiment.d.ts +39 -0
- package/dist/models/Experiment.js +19 -1
- package/dist/models/ReportWebsocketEvent.d.ts +3 -3
- package/dist/models/ReportWebsocketEvent.js +3 -3
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/src/models/Experiment.ts +50 -0
- package/src/models/ReportWebsocketEvent.ts +9 -9
- package/src/models/index.ts +0 -1
- package/dist/models/ReportDataSetSummary.d.ts +0 -73
- package/src/models/ReportDataSetSummary.ts +0 -123
package/.openapi-generator/FILES
CHANGED
|
@@ -658,7 +658,6 @@ src/models/ReportDataSetQuery.ts
|
|
|
658
658
|
src/models/ReportDataSetResponse.ts
|
|
659
659
|
src/models/ReportDataSetRow.ts
|
|
660
660
|
src/models/ReportDataSetSchema.ts
|
|
661
|
-
src/models/ReportDataSetSummary.ts
|
|
662
661
|
src/models/ReportDataSource.ts
|
|
663
662
|
src/models/ReportDataSourceSchema.ts
|
|
664
663
|
src/models/ReportExecuteQueriesRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.144
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install ultracart_rest_api_v2_typescript@4.0.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.144 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.144 | 03/29/2023 | internal development |
|
|
57
58
|
| 4.0.143 | 03/22/2023 | data warehouse internal dev |
|
|
58
59
|
| 4.0.142 | 03/22/2023 | dw initial framework |
|
|
59
60
|
| 4.0.141 | 03/22/2023 | order api - refundable response added manual_because_multiple_charges boolean field |
|
|
@@ -76,12 +76,42 @@ export interface Experiment {
|
|
|
76
76
|
* @memberof Experiment
|
|
77
77
|
*/
|
|
78
78
|
objective_parameter?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The current iteration of the OpenAI related experiment
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof Experiment
|
|
83
|
+
*/
|
|
84
|
+
openai_current_iteration?: number;
|
|
85
|
+
/**
|
|
86
|
+
* The type of OpenAI element being experimented on
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof Experiment
|
|
89
|
+
*/
|
|
90
|
+
openai_element_type?: ExperimentOpenaiElementTypeEnum;
|
|
91
|
+
/**
|
|
92
|
+
* The type of OpenAI model used
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof Experiment
|
|
95
|
+
*/
|
|
96
|
+
openai_model?: string;
|
|
97
|
+
/**
|
|
98
|
+
* The total number of iterations to perform on the experiment
|
|
99
|
+
* @type {number}
|
|
100
|
+
* @memberof Experiment
|
|
101
|
+
*/
|
|
102
|
+
openai_total_iterations?: number;
|
|
79
103
|
/**
|
|
80
104
|
* Type of optimization
|
|
81
105
|
* @type {string}
|
|
82
106
|
* @memberof Experiment
|
|
83
107
|
*/
|
|
84
108
|
optimization_type?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Statistics p-value for the experiment
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @memberof Experiment
|
|
113
|
+
*/
|
|
114
|
+
p_value?: number;
|
|
85
115
|
/**
|
|
86
116
|
* Total number of sessions in the experiment
|
|
87
117
|
* @type {number}
|
|
@@ -125,6 +155,15 @@ export interface Experiment {
|
|
|
125
155
|
*/
|
|
126
156
|
variations?: Array<ExperimentVariation>;
|
|
127
157
|
}
|
|
158
|
+
/**
|
|
159
|
+
* @export
|
|
160
|
+
*/
|
|
161
|
+
export declare const ExperimentOpenaiElementTypeEnum: {
|
|
162
|
+
readonly Headline: "headline";
|
|
163
|
+
readonly Text: "text";
|
|
164
|
+
readonly Textblock: "textblock";
|
|
165
|
+
};
|
|
166
|
+
export type ExperimentOpenaiElementTypeEnum = typeof ExperimentOpenaiElementTypeEnum[keyof typeof ExperimentOpenaiElementTypeEnum];
|
|
128
167
|
/**
|
|
129
168
|
* @export
|
|
130
169
|
*/
|
|
@@ -13,9 +13,17 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ExperimentToJSON = exports.ExperimentFromJSONTyped = exports.ExperimentFromJSON = exports.ExperimentStatusEnum = void 0;
|
|
16
|
+
exports.ExperimentToJSON = exports.ExperimentFromJSONTyped = exports.ExperimentFromJSON = exports.ExperimentStatusEnum = exports.ExperimentOpenaiElementTypeEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var ExperimentVariation_1 = require("./ExperimentVariation");
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
exports.ExperimentOpenaiElementTypeEnum = {
|
|
23
|
+
Headline: 'headline',
|
|
24
|
+
Text: 'text',
|
|
25
|
+
Textblock: 'textblock'
|
|
26
|
+
};
|
|
19
27
|
/**
|
|
20
28
|
* @export
|
|
21
29
|
*/
|
|
@@ -43,7 +51,12 @@ function ExperimentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
51
|
'notes': !(0, runtime_1.exists)(json, 'notes') ? undefined : json['notes'],
|
|
44
52
|
'objective': !(0, runtime_1.exists)(json, 'objective') ? undefined : json['objective'],
|
|
45
53
|
'objective_parameter': !(0, runtime_1.exists)(json, 'objective_parameter') ? undefined : json['objective_parameter'],
|
|
54
|
+
'openai_current_iteration': !(0, runtime_1.exists)(json, 'openai_current_iteration') ? undefined : json['openai_current_iteration'],
|
|
55
|
+
'openai_element_type': !(0, runtime_1.exists)(json, 'openai_element_type') ? undefined : json['openai_element_type'],
|
|
56
|
+
'openai_model': !(0, runtime_1.exists)(json, 'openai_model') ? undefined : json['openai_model'],
|
|
57
|
+
'openai_total_iterations': !(0, runtime_1.exists)(json, 'openai_total_iterations') ? undefined : json['openai_total_iterations'],
|
|
46
58
|
'optimization_type': !(0, runtime_1.exists)(json, 'optimization_type') ? undefined : json['optimization_type'],
|
|
59
|
+
'p_value': !(0, runtime_1.exists)(json, 'p_value') ? undefined : json['p_value'],
|
|
47
60
|
'session_count': !(0, runtime_1.exists)(json, 'session_count') ? undefined : json['session_count'],
|
|
48
61
|
'start_dts': !(0, runtime_1.exists)(json, 'start_dts') ? undefined : json['start_dts'],
|
|
49
62
|
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
@@ -72,7 +85,12 @@ function ExperimentToJSON(value) {
|
|
|
72
85
|
'notes': value.notes,
|
|
73
86
|
'objective': value.objective,
|
|
74
87
|
'objective_parameter': value.objective_parameter,
|
|
88
|
+
'openai_current_iteration': value.openai_current_iteration,
|
|
89
|
+
'openai_element_type': value.openai_element_type,
|
|
90
|
+
'openai_model': value.openai_model,
|
|
91
|
+
'openai_total_iterations': value.openai_total_iterations,
|
|
75
92
|
'optimization_type': value.optimization_type,
|
|
93
|
+
'p_value': value.p_value,
|
|
76
94
|
'session_count': value.session_count,
|
|
77
95
|
'start_dts': value.start_dts,
|
|
78
96
|
'status': value.status,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ReportDataSet } from './ReportDataSet';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -24,10 +24,10 @@ export interface ReportWebsocketEvent {
|
|
|
24
24
|
event_type?: ReportWebsocketEventEventTypeEnum;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {ReportDataSet}
|
|
28
28
|
* @memberof ReportWebsocketEvent
|
|
29
29
|
*/
|
|
30
|
-
query_completion?:
|
|
30
|
+
query_completion?: ReportDataSet;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* @export
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ReportWebsocketEventToJSON = exports.ReportWebsocketEventFromJSONTyped = exports.ReportWebsocketEventFromJSON = exports.ReportWebsocketEventEventTypeEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
-
var
|
|
18
|
+
var ReportDataSet_1 = require("./ReportDataSet");
|
|
19
19
|
/**
|
|
20
20
|
* @export
|
|
21
21
|
*/
|
|
@@ -33,7 +33,7 @@ function ReportWebsocketEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'event_type': !(0, runtime_1.exists)(json, 'event_type') ? undefined : json['event_type'],
|
|
36
|
-
'query_completion': !(0, runtime_1.exists)(json, 'query_completion') ? undefined : (0,
|
|
36
|
+
'query_completion': !(0, runtime_1.exists)(json, 'query_completion') ? undefined : (0, ReportDataSet_1.ReportDataSetFromJSON)(json['query_completion']),
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
exports.ReportWebsocketEventFromJSONTyped = ReportWebsocketEventFromJSONTyped;
|
|
@@ -46,7 +46,7 @@ function ReportWebsocketEventToJSON(value) {
|
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
48
|
'event_type': value.event_type,
|
|
49
|
-
'query_completion': (0,
|
|
49
|
+
'query_completion': (0, ReportDataSet_1.ReportDataSetToJSON)(value.query_completion),
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
exports.ReportWebsocketEventToJSON = ReportWebsocketEventToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -632,7 +632,6 @@ export * from './ReportDataSetQuery';
|
|
|
632
632
|
export * from './ReportDataSetResponse';
|
|
633
633
|
export * from './ReportDataSetRow';
|
|
634
634
|
export * from './ReportDataSetSchema';
|
|
635
|
-
export * from './ReportDataSetSummary';
|
|
636
635
|
export * from './ReportDataSource';
|
|
637
636
|
export * from './ReportDataSourceSchema';
|
|
638
637
|
export * from './ReportExecuteQueriesRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -650,7 +650,6 @@ __exportStar(require("./ReportDataSetQuery"), exports);
|
|
|
650
650
|
__exportStar(require("./ReportDataSetResponse"), exports);
|
|
651
651
|
__exportStar(require("./ReportDataSetRow"), exports);
|
|
652
652
|
__exportStar(require("./ReportDataSetSchema"), exports);
|
|
653
|
-
__exportStar(require("./ReportDataSetSummary"), exports);
|
|
654
653
|
__exportStar(require("./ReportDataSource"), exports);
|
|
655
654
|
__exportStar(require("./ReportDataSourceSchema"), exports);
|
|
656
655
|
__exportStar(require("./ReportExecuteQueriesRequest"), exports);
|
package/package.json
CHANGED
package/src/models/Experiment.ts
CHANGED
|
@@ -86,12 +86,42 @@ export interface Experiment {
|
|
|
86
86
|
* @memberof Experiment
|
|
87
87
|
*/
|
|
88
88
|
objective_parameter?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The current iteration of the OpenAI related experiment
|
|
91
|
+
* @type {number}
|
|
92
|
+
* @memberof Experiment
|
|
93
|
+
*/
|
|
94
|
+
openai_current_iteration?: number;
|
|
95
|
+
/**
|
|
96
|
+
* The type of OpenAI element being experimented on
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof Experiment
|
|
99
|
+
*/
|
|
100
|
+
openai_element_type?: ExperimentOpenaiElementTypeEnum;
|
|
101
|
+
/**
|
|
102
|
+
* The type of OpenAI model used
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof Experiment
|
|
105
|
+
*/
|
|
106
|
+
openai_model?: string;
|
|
107
|
+
/**
|
|
108
|
+
* The total number of iterations to perform on the experiment
|
|
109
|
+
* @type {number}
|
|
110
|
+
* @memberof Experiment
|
|
111
|
+
*/
|
|
112
|
+
openai_total_iterations?: number;
|
|
89
113
|
/**
|
|
90
114
|
* Type of optimization
|
|
91
115
|
* @type {string}
|
|
92
116
|
* @memberof Experiment
|
|
93
117
|
*/
|
|
94
118
|
optimization_type?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Statistics p-value for the experiment
|
|
121
|
+
* @type {number}
|
|
122
|
+
* @memberof Experiment
|
|
123
|
+
*/
|
|
124
|
+
p_value?: number;
|
|
95
125
|
/**
|
|
96
126
|
* Total number of sessions in the experiment
|
|
97
127
|
* @type {number}
|
|
@@ -137,6 +167,16 @@ export interface Experiment {
|
|
|
137
167
|
}
|
|
138
168
|
|
|
139
169
|
|
|
170
|
+
/**
|
|
171
|
+
* @export
|
|
172
|
+
*/
|
|
173
|
+
export const ExperimentOpenaiElementTypeEnum = {
|
|
174
|
+
Headline: 'headline',
|
|
175
|
+
Text: 'text',
|
|
176
|
+
Textblock: 'textblock'
|
|
177
|
+
} as const;
|
|
178
|
+
export type ExperimentOpenaiElementTypeEnum = typeof ExperimentOpenaiElementTypeEnum[keyof typeof ExperimentOpenaiElementTypeEnum];
|
|
179
|
+
|
|
140
180
|
/**
|
|
141
181
|
* @export
|
|
142
182
|
*/
|
|
@@ -168,7 +208,12 @@ export function ExperimentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
168
208
|
'notes': !exists(json, 'notes') ? undefined : json['notes'],
|
|
169
209
|
'objective': !exists(json, 'objective') ? undefined : json['objective'],
|
|
170
210
|
'objective_parameter': !exists(json, 'objective_parameter') ? undefined : json['objective_parameter'],
|
|
211
|
+
'openai_current_iteration': !exists(json, 'openai_current_iteration') ? undefined : json['openai_current_iteration'],
|
|
212
|
+
'openai_element_type': !exists(json, 'openai_element_type') ? undefined : json['openai_element_type'],
|
|
213
|
+
'openai_model': !exists(json, 'openai_model') ? undefined : json['openai_model'],
|
|
214
|
+
'openai_total_iterations': !exists(json, 'openai_total_iterations') ? undefined : json['openai_total_iterations'],
|
|
171
215
|
'optimization_type': !exists(json, 'optimization_type') ? undefined : json['optimization_type'],
|
|
216
|
+
'p_value': !exists(json, 'p_value') ? undefined : json['p_value'],
|
|
172
217
|
'session_count': !exists(json, 'session_count') ? undefined : json['session_count'],
|
|
173
218
|
'start_dts': !exists(json, 'start_dts') ? undefined : json['start_dts'],
|
|
174
219
|
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
@@ -198,7 +243,12 @@ export function ExperimentToJSON(value?: Experiment | null): any {
|
|
|
198
243
|
'notes': value.notes,
|
|
199
244
|
'objective': value.objective,
|
|
200
245
|
'objective_parameter': value.objective_parameter,
|
|
246
|
+
'openai_current_iteration': value.openai_current_iteration,
|
|
247
|
+
'openai_element_type': value.openai_element_type,
|
|
248
|
+
'openai_model': value.openai_model,
|
|
249
|
+
'openai_total_iterations': value.openai_total_iterations,
|
|
201
250
|
'optimization_type': value.optimization_type,
|
|
251
|
+
'p_value': value.p_value,
|
|
202
252
|
'session_count': value.session_count,
|
|
203
253
|
'start_dts': value.start_dts,
|
|
204
254
|
'status': value.status,
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
17
|
+
ReportDataSet,
|
|
18
|
+
ReportDataSetFromJSON,
|
|
19
|
+
ReportDataSetFromJSONTyped,
|
|
20
|
+
ReportDataSetToJSON,
|
|
21
|
+
} from './ReportDataSet';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
@@ -34,10 +34,10 @@ export interface ReportWebsocketEvent {
|
|
|
34
34
|
event_type?: ReportWebsocketEventEventTypeEnum;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {
|
|
37
|
+
* @type {ReportDataSet}
|
|
38
38
|
* @memberof ReportWebsocketEvent
|
|
39
39
|
*/
|
|
40
|
-
query_completion?:
|
|
40
|
+
query_completion?: ReportDataSet;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
|
|
@@ -62,7 +62,7 @@ export function ReportWebsocketEventFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
62
62
|
return {
|
|
63
63
|
|
|
64
64
|
'event_type': !exists(json, 'event_type') ? undefined : json['event_type'],
|
|
65
|
-
'query_completion': !exists(json, 'query_completion') ? undefined :
|
|
65
|
+
'query_completion': !exists(json, 'query_completion') ? undefined : ReportDataSetFromJSON(json['query_completion']),
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -76,7 +76,7 @@ export function ReportWebsocketEventToJSON(value?: ReportWebsocketEvent | null):
|
|
|
76
76
|
return {
|
|
77
77
|
|
|
78
78
|
'event_type': value.event_type,
|
|
79
|
-
'query_completion':
|
|
79
|
+
'query_completion': ReportDataSetToJSON(value.query_completion),
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
|
package/src/models/index.ts
CHANGED
|
@@ -634,7 +634,6 @@ export * from './ReportDataSetQuery';
|
|
|
634
634
|
export * from './ReportDataSetResponse';
|
|
635
635
|
export * from './ReportDataSetRow';
|
|
636
636
|
export * from './ReportDataSetSchema';
|
|
637
|
-
export * from './ReportDataSetSummary';
|
|
638
637
|
export * from './ReportDataSource';
|
|
639
638
|
export * from './ReportDataSourceSchema';
|
|
640
639
|
export * from './ReportExecuteQueriesRequest';
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UltraCart Rest API V2
|
|
3
|
-
* UltraCart REST API Version 2
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.0
|
|
6
|
-
* Contact: support@ultracart.com
|
|
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 { ReportDataSetSchema } from './ReportDataSetSchema';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ReportDataSetSummary
|
|
17
|
-
*/
|
|
18
|
-
export interface ReportDataSetSummary {
|
|
19
|
-
/**
|
|
20
|
-
* A unique identifier assigned to the data set that is returned.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof ReportDataSetSummary
|
|
23
|
-
*/
|
|
24
|
-
data_set_uuid?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Error message if the query failed.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof ReportDataSetSummary
|
|
29
|
-
*/
|
|
30
|
-
error_message?: string;
|
|
31
|
-
/**
|
|
32
|
-
* An identifier that can be used to help match up the returned data set
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof ReportDataSetSummary
|
|
35
|
-
*/
|
|
36
|
-
for_object_id?: string;
|
|
37
|
-
/**
|
|
38
|
-
* The type of object this data set is for
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof ReportDataSetSummary
|
|
41
|
-
*/
|
|
42
|
-
for_object_type?: ReportDataSetSummaryForObjectTypeEnum;
|
|
43
|
-
/**
|
|
44
|
-
* The total number of results
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof ReportDataSetSummary
|
|
47
|
-
*/
|
|
48
|
-
max_results?: number;
|
|
49
|
-
/**
|
|
50
|
-
* The schema associated with the data set.
|
|
51
|
-
* @type {Array<ReportDataSetSchema>}
|
|
52
|
-
* @memberof ReportDataSetSummary
|
|
53
|
-
*/
|
|
54
|
-
schema?: Array<ReportDataSetSchema>;
|
|
55
|
-
/**
|
|
56
|
-
* Any other data that needs to be returned with the response to help the UI
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof ReportDataSetSummary
|
|
59
|
-
*/
|
|
60
|
-
user_data?: string;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
|
-
export declare const ReportDataSetSummaryForObjectTypeEnum: {
|
|
66
|
-
readonly Schema: "schema";
|
|
67
|
-
readonly Filter: "filter";
|
|
68
|
-
readonly Visualization: "visualization";
|
|
69
|
-
};
|
|
70
|
-
export type ReportDataSetSummaryForObjectTypeEnum = typeof ReportDataSetSummaryForObjectTypeEnum[keyof typeof ReportDataSetSummaryForObjectTypeEnum];
|
|
71
|
-
export declare function ReportDataSetSummaryFromJSON(json: any): ReportDataSetSummary;
|
|
72
|
-
export declare function ReportDataSetSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportDataSetSummary;
|
|
73
|
-
export declare function ReportDataSetSummaryToJSON(value?: ReportDataSetSummary | null): any;
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* UltraCart Rest API V2
|
|
5
|
-
* UltraCart REST API Version 2
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.0
|
|
8
|
-
* Contact: support@ultracart.com
|
|
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 { exists, mapValues } from '../runtime';
|
|
16
|
-
import {
|
|
17
|
-
ReportDataSetSchema,
|
|
18
|
-
ReportDataSetSchemaFromJSON,
|
|
19
|
-
ReportDataSetSchemaFromJSONTyped,
|
|
20
|
-
ReportDataSetSchemaToJSON,
|
|
21
|
-
} from './ReportDataSetSchema';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface ReportDataSetSummary
|
|
27
|
-
*/
|
|
28
|
-
export interface ReportDataSetSummary {
|
|
29
|
-
/**
|
|
30
|
-
* A unique identifier assigned to the data set that is returned.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof ReportDataSetSummary
|
|
33
|
-
*/
|
|
34
|
-
data_set_uuid?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Error message if the query failed.
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof ReportDataSetSummary
|
|
39
|
-
*/
|
|
40
|
-
error_message?: string;
|
|
41
|
-
/**
|
|
42
|
-
* An identifier that can be used to help match up the returned data set
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof ReportDataSetSummary
|
|
45
|
-
*/
|
|
46
|
-
for_object_id?: string;
|
|
47
|
-
/**
|
|
48
|
-
* The type of object this data set is for
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof ReportDataSetSummary
|
|
51
|
-
*/
|
|
52
|
-
for_object_type?: ReportDataSetSummaryForObjectTypeEnum;
|
|
53
|
-
/**
|
|
54
|
-
* The total number of results
|
|
55
|
-
* @type {number}
|
|
56
|
-
* @memberof ReportDataSetSummary
|
|
57
|
-
*/
|
|
58
|
-
max_results?: number;
|
|
59
|
-
/**
|
|
60
|
-
* The schema associated with the data set.
|
|
61
|
-
* @type {Array<ReportDataSetSchema>}
|
|
62
|
-
* @memberof ReportDataSetSummary
|
|
63
|
-
*/
|
|
64
|
-
schema?: Array<ReportDataSetSchema>;
|
|
65
|
-
/**
|
|
66
|
-
* Any other data that needs to be returned with the response to help the UI
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof ReportDataSetSummary
|
|
69
|
-
*/
|
|
70
|
-
user_data?: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @export
|
|
76
|
-
*/
|
|
77
|
-
export const ReportDataSetSummaryForObjectTypeEnum = {
|
|
78
|
-
Schema: 'schema',
|
|
79
|
-
Filter: 'filter',
|
|
80
|
-
Visualization: 'visualization'
|
|
81
|
-
} as const;
|
|
82
|
-
export type ReportDataSetSummaryForObjectTypeEnum = typeof ReportDataSetSummaryForObjectTypeEnum[keyof typeof ReportDataSetSummaryForObjectTypeEnum];
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
export function ReportDataSetSummaryFromJSON(json: any): ReportDataSetSummary {
|
|
86
|
-
return ReportDataSetSummaryFromJSONTyped(json, false);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export function ReportDataSetSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportDataSetSummary {
|
|
90
|
-
if ((json === undefined) || (json === null)) {
|
|
91
|
-
return json;
|
|
92
|
-
}
|
|
93
|
-
return {
|
|
94
|
-
|
|
95
|
-
'data_set_uuid': !exists(json, 'data_set_uuid') ? undefined : json['data_set_uuid'],
|
|
96
|
-
'error_message': !exists(json, 'error_message') ? undefined : json['error_message'],
|
|
97
|
-
'for_object_id': !exists(json, 'for_object_id') ? undefined : json['for_object_id'],
|
|
98
|
-
'for_object_type': !exists(json, 'for_object_type') ? undefined : json['for_object_type'],
|
|
99
|
-
'max_results': !exists(json, 'max_results') ? undefined : json['max_results'],
|
|
100
|
-
'schema': !exists(json, 'schema') ? undefined : ((json['schema'] as Array<any>).map(ReportDataSetSchemaFromJSON)),
|
|
101
|
-
'user_data': !exists(json, 'user_data') ? undefined : json['user_data'],
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export function ReportDataSetSummaryToJSON(value?: ReportDataSetSummary | null): any {
|
|
106
|
-
if (value === undefined) {
|
|
107
|
-
return undefined;
|
|
108
|
-
}
|
|
109
|
-
if (value === null) {
|
|
110
|
-
return null;
|
|
111
|
-
}
|
|
112
|
-
return {
|
|
113
|
-
|
|
114
|
-
'data_set_uuid': value.data_set_uuid,
|
|
115
|
-
'error_message': value.error_message,
|
|
116
|
-
'for_object_id': value.for_object_id,
|
|
117
|
-
'for_object_type': value.for_object_type,
|
|
118
|
-
'max_results': value.max_results,
|
|
119
|
-
'schema': value.schema === undefined ? undefined : ((value.schema as Array<any>).map(ReportDataSetSchemaToJSON)),
|
|
120
|
-
'user_data': value.user_data,
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
|