ultracart_rest_api_v2_typescript 4.0.143 → 4.0.145
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 +4 -1
- package/README.md +4 -2
- package/dist/apis/DatawarehouseApi.d.ts +28 -1
- package/dist/apis/DatawarehouseApi.js +61 -0
- package/dist/models/AccountsReceivableRetryConfig.d.ts +7 -0
- package/dist/models/AccountsReceivableRetryConfig.js +3 -0
- package/dist/models/AccountsReceivableRetryTransactionReject.d.ts +33 -0
- package/dist/models/AccountsReceivableRetryTransactionReject.js +44 -0
- package/dist/models/Experiment.d.ts +39 -0
- package/dist/models/Experiment.js +19 -1
- package/dist/models/ReportDryRunQueriesRequest.d.ts +58 -0
- package/dist/models/ReportDryRunQueriesRequest.js +53 -0
- package/dist/models/ReportDryRunQueriesResponse.d.ts +28 -0
- package/dist/models/ReportDryRunQueriesResponse.js +43 -0
- package/dist/models/ReportDryRunQueryResult.d.ts +33 -0
- package/dist/models/ReportDryRunQueryResult.js +44 -0
- package/dist/models/ReportWebsocketEvent.d.ts +3 -3
- package/dist/models/ReportWebsocketEvent.js +3 -3
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/package.json +1 -1
- package/src/apis/DatawarehouseApi.ts +70 -0
- package/src/models/AccountsReceivableRetryConfig.ts +14 -0
- package/src/models/AccountsReceivableRetryTransactionReject.ts +64 -0
- package/src/models/Experiment.ts +50 -0
- package/src/models/ReportDryRunQueriesRequest.ts +103 -0
- package/src/models/ReportDryRunQueriesResponse.ts +63 -0
- package/src/models/ReportDryRunQueryResult.ts +64 -0
- package/src/models/ReportWebsocketEvent.ts +9 -9
- package/src/models/index.ts +4 -1
- package/dist/models/ReportDataSetSummary.d.ts +0 -73
- package/src/models/ReportDataSetSummary.ts +0 -123
package/.openapi-generator/FILES
CHANGED
|
@@ -31,6 +31,7 @@ src/models/AccountsReceivableRetryStatAccount.ts
|
|
|
31
31
|
src/models/AccountsReceivableRetryStatMetrics.ts
|
|
32
32
|
src/models/AccountsReceivableRetryStatRevenue.ts
|
|
33
33
|
src/models/AccountsReceivableRetryStatsResponse.ts
|
|
34
|
+
src/models/AccountsReceivableRetryTransactionReject.ts
|
|
34
35
|
src/models/Activity.ts
|
|
35
36
|
src/models/AddLibraryItemRequest.ts
|
|
36
37
|
src/models/AdjustInternalCertificateRequest.ts
|
|
@@ -658,9 +659,11 @@ src/models/ReportDataSetQuery.ts
|
|
|
658
659
|
src/models/ReportDataSetResponse.ts
|
|
659
660
|
src/models/ReportDataSetRow.ts
|
|
660
661
|
src/models/ReportDataSetSchema.ts
|
|
661
|
-
src/models/ReportDataSetSummary.ts
|
|
662
662
|
src/models/ReportDataSource.ts
|
|
663
663
|
src/models/ReportDataSourceSchema.ts
|
|
664
|
+
src/models/ReportDryRunQueriesRequest.ts
|
|
665
|
+
src/models/ReportDryRunQueriesResponse.ts
|
|
666
|
+
src/models/ReportDryRunQueryResult.ts
|
|
664
667
|
src/models/ReportExecuteQueriesRequest.ts
|
|
665
668
|
src/models/ReportFilter.ts
|
|
666
669
|
src/models/ReportFilterConnection.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.145
|
|
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.145 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.145 | 04/10/2023 | data warehouse internal dev |
|
|
58
|
+
| 4.0.144 | 03/29/2023 | internal development |
|
|
57
59
|
| 4.0.143 | 03/22/2023 | data warehouse internal dev |
|
|
58
60
|
| 4.0.142 | 03/22/2023 | dw initial framework |
|
|
59
61
|
| 4.0.141 | 03/22/2023 | order api - refundable response added manual_because_multiple_charges boolean field |
|
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Report, ReportAuthResponse, ReportDataSetPageResponse, ReportDataSetResponse, ReportExecuteQueriesRequest, ReportResponse, ReportsResponse } from '../models';
|
|
13
|
+
import { Report, ReportAuthResponse, ReportDataSetPageResponse, ReportDataSetResponse, ReportDryRunQueriesRequest, ReportDryRunQueriesResponse, ReportExecuteQueriesRequest, ReportResponse, ReportsResponse } from '../models';
|
|
14
14
|
export interface DeleteReportRequest {
|
|
15
15
|
reportOid: number;
|
|
16
16
|
}
|
|
17
|
+
export interface DryRunReportQueriesRequest {
|
|
18
|
+
queryRequest: ReportDryRunQueriesRequest;
|
|
19
|
+
}
|
|
17
20
|
export interface ExecuteReportQueriesRequest {
|
|
18
21
|
queryRequest: ReportExecuteQueriesRequest;
|
|
19
22
|
}
|
|
@@ -55,6 +58,20 @@ export interface DatawarehouseApiInterface {
|
|
|
55
58
|
* Delete a report
|
|
56
59
|
*/
|
|
57
60
|
deleteReport(requestParameters: DeleteReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Dry run the report queries
|
|
63
|
+
* @summary Dry run the report queries
|
|
64
|
+
* @param {ReportDryRunQueriesRequest} queryRequest Dry run request
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
* @memberof DatawarehouseApiInterface
|
|
68
|
+
*/
|
|
69
|
+
dryRunReportQueriesRaw(requestParameters: DryRunReportQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReportDryRunQueriesResponse>>;
|
|
70
|
+
/**
|
|
71
|
+
* Dry run the report queries
|
|
72
|
+
* Dry run the report queries
|
|
73
|
+
*/
|
|
74
|
+
dryRunReportQueries(requestParameters: DryRunReportQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReportDryRunQueriesResponse>;
|
|
58
75
|
/**
|
|
59
76
|
* Execute the report queries
|
|
60
77
|
* @summary Execute the report queries
|
|
@@ -182,6 +199,16 @@ export declare class DatawarehouseApi extends runtime.BaseAPI implements Datawar
|
|
|
182
199
|
* Delete a report
|
|
183
200
|
*/
|
|
184
201
|
deleteReport(requestParameters: DeleteReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
202
|
+
/**
|
|
203
|
+
* Dry run the report queries
|
|
204
|
+
* Dry run the report queries
|
|
205
|
+
*/
|
|
206
|
+
dryRunReportQueriesRaw(requestParameters: DryRunReportQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReportDryRunQueriesResponse>>;
|
|
207
|
+
/**
|
|
208
|
+
* Dry run the report queries
|
|
209
|
+
* Dry run the report queries
|
|
210
|
+
*/
|
|
211
|
+
dryRunReportQueries(requestParameters: DryRunReportQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReportDryRunQueriesResponse>;
|
|
185
212
|
/**
|
|
186
213
|
* Execute the report queries
|
|
187
214
|
* Execute the report queries
|
|
@@ -132,6 +132,67 @@ var DatawarehouseApi = /** @class */ (function (_super) {
|
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
|
+
/**
|
|
136
|
+
* Dry run the report queries
|
|
137
|
+
* Dry run the report queries
|
|
138
|
+
*/
|
|
139
|
+
DatawarehouseApi.prototype.dryRunReportQueriesRaw = function (requestParameters, initOverrides) {
|
|
140
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
141
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
142
|
+
return __generator(this, function (_c) {
|
|
143
|
+
switch (_c.label) {
|
|
144
|
+
case 0:
|
|
145
|
+
if (requestParameters.queryRequest === null || requestParameters.queryRequest === undefined) {
|
|
146
|
+
throw new runtime.RequiredError('queryRequest', 'Required parameter requestParameters.queryRequest was null or undefined when calling dryRunReportQueries.');
|
|
147
|
+
}
|
|
148
|
+
queryParameters = {};
|
|
149
|
+
headerParameters = {};
|
|
150
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
151
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
152
|
+
// oauth required
|
|
153
|
+
_a = headerParameters;
|
|
154
|
+
_b = "Authorization";
|
|
155
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", [])];
|
|
156
|
+
case 1:
|
|
157
|
+
// oauth required
|
|
158
|
+
_a[_b] = _c.sent();
|
|
159
|
+
_c.label = 2;
|
|
160
|
+
case 2:
|
|
161
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
162
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
163
|
+
}
|
|
164
|
+
return [4 /*yield*/, this.request({
|
|
165
|
+
path: "/datawarehouse/reports/dryrun",
|
|
166
|
+
method: 'PUT',
|
|
167
|
+
headers: headerParameters,
|
|
168
|
+
query: queryParameters,
|
|
169
|
+
body: (0, models_1.ReportDryRunQueriesRequestToJSON)(requestParameters.queryRequest),
|
|
170
|
+
}, initOverrides)];
|
|
171
|
+
case 3:
|
|
172
|
+
response = _c.sent();
|
|
173
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ReportDryRunQueriesResponseFromJSON)(jsonValue); })];
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Dry run the report queries
|
|
180
|
+
* Dry run the report queries
|
|
181
|
+
*/
|
|
182
|
+
DatawarehouseApi.prototype.dryRunReportQueries = function (requestParameters, initOverrides) {
|
|
183
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
184
|
+
var response;
|
|
185
|
+
return __generator(this, function (_a) {
|
|
186
|
+
switch (_a.label) {
|
|
187
|
+
case 0: return [4 /*yield*/, this.dryRunReportQueriesRaw(requestParameters, initOverrides)];
|
|
188
|
+
case 1:
|
|
189
|
+
response = _a.sent();
|
|
190
|
+
return [4 /*yield*/, response.value()];
|
|
191
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
};
|
|
135
196
|
/**
|
|
136
197
|
* Execute the report queries
|
|
137
198
|
* Execute the report queries
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { AccountsReceivableRetryDayActivity } from './AccountsReceivableRetryDayActivity';
|
|
13
|
+
import { AccountsReceivableRetryTransactionReject } from './AccountsReceivableRetryTransactionReject';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -94,6 +95,12 @@ export interface AccountsReceivableRetryConfig {
|
|
|
94
95
|
* @memberof AccountsReceivableRetryConfig
|
|
95
96
|
*/
|
|
96
97
|
reject_at_end?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Array of key/value pairs that when found in the response cause the rejection of the transaction.
|
|
100
|
+
* @type {Array<AccountsReceivableRetryTransactionReject>}
|
|
101
|
+
* @memberof AccountsReceivableRetryConfig
|
|
102
|
+
*/
|
|
103
|
+
transaction_rejects?: Array<AccountsReceivableRetryTransactionReject>;
|
|
97
104
|
/**
|
|
98
105
|
* True if the account is currently in trial mode. Set to false to exit trial mode.
|
|
99
106
|
* @type {boolean}
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.AccountsReceivableRetryConfigToJSON = exports.AccountsReceivableRetryConfigFromJSONTyped = exports.AccountsReceivableRetryConfigFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var AccountsReceivableRetryDayActivity_1 = require("./AccountsReceivableRetryDayActivity");
|
|
19
|
+
var AccountsReceivableRetryTransactionReject_1 = require("./AccountsReceivableRetryTransactionReject");
|
|
19
20
|
function AccountsReceivableRetryConfigFromJSON(json) {
|
|
20
21
|
return AccountsReceivableRetryConfigFromJSONTyped(json, false);
|
|
21
22
|
}
|
|
@@ -38,6 +39,7 @@ function AccountsReceivableRetryConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
39
|
'process_linked_accounts': !(0, runtime_1.exists)(json, 'process_linked_accounts') ? undefined : json['process_linked_accounts'],
|
|
39
40
|
'processing_percentage': !(0, runtime_1.exists)(json, 'processing_percentage') ? undefined : json['processing_percentage'],
|
|
40
41
|
'reject_at_end': !(0, runtime_1.exists)(json, 'reject_at_end') ? undefined : json['reject_at_end'],
|
|
42
|
+
'transaction_rejects': !(0, runtime_1.exists)(json, 'transaction_rejects') ? undefined : (json['transaction_rejects'].map(AccountsReceivableRetryTransactionReject_1.AccountsReceivableRetryTransactionRejectFromJSON)),
|
|
41
43
|
'trial_mode': !(0, runtime_1.exists)(json, 'trial_mode') ? undefined : json['trial_mode'],
|
|
42
44
|
'trial_mode_expiration_dts': !(0, runtime_1.exists)(json, 'trial_mode_expiration_dts') ? undefined : json['trial_mode_expiration_dts'],
|
|
43
45
|
};
|
|
@@ -64,6 +66,7 @@ function AccountsReceivableRetryConfigToJSON(value) {
|
|
|
64
66
|
'process_linked_accounts': value.process_linked_accounts,
|
|
65
67
|
'processing_percentage': value.processing_percentage,
|
|
66
68
|
'reject_at_end': value.reject_at_end,
|
|
69
|
+
'transaction_rejects': value.transaction_rejects === undefined ? undefined : (value.transaction_rejects.map(AccountsReceivableRetryTransactionReject_1.AccountsReceivableRetryTransactionRejectToJSON)),
|
|
67
70
|
'trial_mode': value.trial_mode,
|
|
68
71
|
'trial_mode_expiration_dts': value.trial_mode_expiration_dts,
|
|
69
72
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AccountsReceivableRetryTransactionReject
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountsReceivableRetryTransactionReject {
|
|
18
|
+
/**
|
|
19
|
+
* Transaction response name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountsReceivableRetryTransactionReject
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Transaction response value
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AccountsReceivableRetryTransactionReject
|
|
28
|
+
*/
|
|
29
|
+
value?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function AccountsReceivableRetryTransactionRejectFromJSON(json: any): AccountsReceivableRetryTransactionReject;
|
|
32
|
+
export declare function AccountsReceivableRetryTransactionRejectFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountsReceivableRetryTransactionReject;
|
|
33
|
+
export declare function AccountsReceivableRetryTransactionRejectToJSON(value?: AccountsReceivableRetryTransactionReject | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
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.AccountsReceivableRetryTransactionRejectToJSON = exports.AccountsReceivableRetryTransactionRejectFromJSONTyped = exports.AccountsReceivableRetryTransactionRejectFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function AccountsReceivableRetryTransactionRejectFromJSON(json) {
|
|
19
|
+
return AccountsReceivableRetryTransactionRejectFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.AccountsReceivableRetryTransactionRejectFromJSON = AccountsReceivableRetryTransactionRejectFromJSON;
|
|
22
|
+
function AccountsReceivableRetryTransactionRejectFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
28
|
+
'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.AccountsReceivableRetryTransactionRejectFromJSONTyped = AccountsReceivableRetryTransactionRejectFromJSONTyped;
|
|
32
|
+
function AccountsReceivableRetryTransactionRejectToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': value.name,
|
|
41
|
+
'value': value.value,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.AccountsReceivableRetryTransactionRejectToJSON = AccountsReceivableRetryTransactionRejectToJSON;
|
|
@@ -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,
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { ReportDataSetQuery } from './ReportDataSetQuery';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ReportDryRunQueriesRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface ReportDryRunQueriesRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ReportDryRunQueriesRequest
|
|
23
|
+
*/
|
|
24
|
+
connection_id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ReportDryRunQueriesRequest
|
|
29
|
+
*/
|
|
30
|
+
default_dataset_id?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ReportDryRunQueriesRequest
|
|
35
|
+
*/
|
|
36
|
+
default_project_id?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ReportDryRunQueriesRequest
|
|
41
|
+
*/
|
|
42
|
+
merchant_id?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<ReportDataSetQuery>}
|
|
46
|
+
* @memberof ReportDryRunQueriesRequest
|
|
47
|
+
*/
|
|
48
|
+
queries?: Array<ReportDataSetQuery>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ReportDryRunQueriesRequest
|
|
53
|
+
*/
|
|
54
|
+
security_level?: string;
|
|
55
|
+
}
|
|
56
|
+
export declare function ReportDryRunQueriesRequestFromJSON(json: any): ReportDryRunQueriesRequest;
|
|
57
|
+
export declare function ReportDryRunQueriesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportDryRunQueriesRequest;
|
|
58
|
+
export declare function ReportDryRunQueriesRequestToJSON(value?: ReportDryRunQueriesRequest | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
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.ReportDryRunQueriesRequestToJSON = exports.ReportDryRunQueriesRequestFromJSONTyped = exports.ReportDryRunQueriesRequestFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ReportDataSetQuery_1 = require("./ReportDataSetQuery");
|
|
19
|
+
function ReportDryRunQueriesRequestFromJSON(json) {
|
|
20
|
+
return ReportDryRunQueriesRequestFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
exports.ReportDryRunQueriesRequestFromJSON = ReportDryRunQueriesRequestFromJSON;
|
|
23
|
+
function ReportDryRunQueriesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'connection_id': !(0, runtime_1.exists)(json, 'connection_id') ? undefined : json['connection_id'],
|
|
29
|
+
'default_dataset_id': !(0, runtime_1.exists)(json, 'default_dataset_id') ? undefined : json['default_dataset_id'],
|
|
30
|
+
'default_project_id': !(0, runtime_1.exists)(json, 'default_project_id') ? undefined : json['default_project_id'],
|
|
31
|
+
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
32
|
+
'queries': !(0, runtime_1.exists)(json, 'queries') ? undefined : (json['queries'].map(ReportDataSetQuery_1.ReportDataSetQueryFromJSON)),
|
|
33
|
+
'security_level': !(0, runtime_1.exists)(json, 'security_level') ? undefined : json['security_level'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.ReportDryRunQueriesRequestFromJSONTyped = ReportDryRunQueriesRequestFromJSONTyped;
|
|
37
|
+
function ReportDryRunQueriesRequestToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'connection_id': value.connection_id,
|
|
46
|
+
'default_dataset_id': value.default_dataset_id,
|
|
47
|
+
'default_project_id': value.default_project_id,
|
|
48
|
+
'merchant_id': value.merchant_id,
|
|
49
|
+
'queries': value.queries === undefined ? undefined : (value.queries.map(ReportDataSetQuery_1.ReportDataSetQueryToJSON)),
|
|
50
|
+
'security_level': value.security_level,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.ReportDryRunQueriesRequestToJSON = ReportDryRunQueriesRequestToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { ReportDryRunQueryResult } from './ReportDryRunQueryResult';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ReportDryRunQueriesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ReportDryRunQueriesResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ReportDryRunQueryResult>}
|
|
22
|
+
* @memberof ReportDryRunQueriesResponse
|
|
23
|
+
*/
|
|
24
|
+
dry_run_query_results?: Array<ReportDryRunQueryResult>;
|
|
25
|
+
}
|
|
26
|
+
export declare function ReportDryRunQueriesResponseFromJSON(json: any): ReportDryRunQueriesResponse;
|
|
27
|
+
export declare function ReportDryRunQueriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportDryRunQueriesResponse;
|
|
28
|
+
export declare function ReportDryRunQueriesResponseToJSON(value?: ReportDryRunQueriesResponse | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
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.ReportDryRunQueriesResponseToJSON = exports.ReportDryRunQueriesResponseFromJSONTyped = exports.ReportDryRunQueriesResponseFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ReportDryRunQueryResult_1 = require("./ReportDryRunQueryResult");
|
|
19
|
+
function ReportDryRunQueriesResponseFromJSON(json) {
|
|
20
|
+
return ReportDryRunQueriesResponseFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
exports.ReportDryRunQueriesResponseFromJSON = ReportDryRunQueriesResponseFromJSON;
|
|
23
|
+
function ReportDryRunQueriesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'dry_run_query_results': !(0, runtime_1.exists)(json, 'dry_run_query_results') ? undefined : (json['dry_run_query_results'].map(ReportDryRunQueryResult_1.ReportDryRunQueryResultFromJSON)),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.ReportDryRunQueriesResponseFromJSONTyped = ReportDryRunQueriesResponseFromJSONTyped;
|
|
32
|
+
function ReportDryRunQueriesResponseToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'dry_run_query_results': value.dry_run_query_results === undefined ? undefined : (value.dry_run_query_results.map(ReportDryRunQueryResult_1.ReportDryRunQueryResultToJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.ReportDryRunQueriesResponseToJSON = ReportDryRunQueriesResponseToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ReportDryRunQueryResult
|
|
16
|
+
*/
|
|
17
|
+
export interface ReportDryRunQueryResult {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ReportDryRunQueryResult
|
|
22
|
+
*/
|
|
23
|
+
error_message?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ReportDryRunQueryResult
|
|
28
|
+
*/
|
|
29
|
+
total_bytes_processed?: number;
|
|
30
|
+
}
|
|
31
|
+
export declare function ReportDryRunQueryResultFromJSON(json: any): ReportDryRunQueryResult;
|
|
32
|
+
export declare function ReportDryRunQueryResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportDryRunQueryResult;
|
|
33
|
+
export declare function ReportDryRunQueryResultToJSON(value?: ReportDryRunQueryResult | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
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.ReportDryRunQueryResultToJSON = exports.ReportDryRunQueryResultFromJSONTyped = exports.ReportDryRunQueryResultFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ReportDryRunQueryResultFromJSON(json) {
|
|
19
|
+
return ReportDryRunQueryResultFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ReportDryRunQueryResultFromJSON = ReportDryRunQueryResultFromJSON;
|
|
22
|
+
function ReportDryRunQueryResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'error_message': !(0, runtime_1.exists)(json, 'error_message') ? undefined : json['error_message'],
|
|
28
|
+
'total_bytes_processed': !(0, runtime_1.exists)(json, 'total_bytes_processed') ? undefined : json['total_bytes_processed'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.ReportDryRunQueryResultFromJSONTyped = ReportDryRunQueryResultFromJSONTyped;
|
|
32
|
+
function ReportDryRunQueryResultToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'error_message': value.error_message,
|
|
41
|
+
'total_bytes_processed': value.total_bytes_processed,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.ReportDryRunQueryResultToJSON = ReportDryRunQueryResultToJSON;
|