ultracart_rest_api_v2_typescript 4.0.144 → 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.
@@ -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
@@ -660,6 +661,9 @@ src/models/ReportDataSetRow.ts
660
661
  src/models/ReportDataSetSchema.ts
661
662
  src/models/ReportDataSource.ts
662
663
  src/models/ReportDataSourceSchema.ts
664
+ src/models/ReportDryRunQueriesRequest.ts
665
+ src/models/ReportDryRunQueriesResponse.ts
666
+ src/models/ReportDryRunQueryResult.ts
663
667
  src/models/ReportExecuteQueriesRequest.ts
664
668
  src/models/ReportFilter.ts
665
669
  src/models/ReportFilterConnection.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.144
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.144 --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.145 --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.145 | 04/10/2023 | data warehouse internal dev |
57
58
  | 4.0.144 | 03/29/2023 | internal development |
58
59
  | 4.0.143 | 03/22/2023 | data warehouse internal dev |
59
60
  | 4.0.142 | 03/22/2023 | dw initial framework |
@@ -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;
@@ -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;
@@ -5,6 +5,7 @@ export * from './AccountsReceivableRetryStatAccount';
5
5
  export * from './AccountsReceivableRetryStatMetrics';
6
6
  export * from './AccountsReceivableRetryStatRevenue';
7
7
  export * from './AccountsReceivableRetryStatsResponse';
8
+ export * from './AccountsReceivableRetryTransactionReject';
8
9
  export * from './Activity';
9
10
  export * from './AddLibraryItemRequest';
10
11
  export * from './AdjustInternalCertificateRequest';
@@ -634,6 +635,9 @@ export * from './ReportDataSetRow';
634
635
  export * from './ReportDataSetSchema';
635
636
  export * from './ReportDataSource';
636
637
  export * from './ReportDataSourceSchema';
638
+ export * from './ReportDryRunQueriesRequest';
639
+ export * from './ReportDryRunQueriesResponse';
640
+ export * from './ReportDryRunQueryResult';
637
641
  export * from './ReportExecuteQueriesRequest';
638
642
  export * from './ReportFilter';
639
643
  export * from './ReportFilterConnection';
@@ -23,6 +23,7 @@ __exportStar(require("./AccountsReceivableRetryStatAccount"), exports);
23
23
  __exportStar(require("./AccountsReceivableRetryStatMetrics"), exports);
24
24
  __exportStar(require("./AccountsReceivableRetryStatRevenue"), exports);
25
25
  __exportStar(require("./AccountsReceivableRetryStatsResponse"), exports);
26
+ __exportStar(require("./AccountsReceivableRetryTransactionReject"), exports);
26
27
  __exportStar(require("./Activity"), exports);
27
28
  __exportStar(require("./AddLibraryItemRequest"), exports);
28
29
  __exportStar(require("./AdjustInternalCertificateRequest"), exports);
@@ -652,6 +653,9 @@ __exportStar(require("./ReportDataSetRow"), exports);
652
653
  __exportStar(require("./ReportDataSetSchema"), exports);
653
654
  __exportStar(require("./ReportDataSource"), exports);
654
655
  __exportStar(require("./ReportDataSourceSchema"), exports);
656
+ __exportStar(require("./ReportDryRunQueriesRequest"), exports);
657
+ __exportStar(require("./ReportDryRunQueriesResponse"), exports);
658
+ __exportStar(require("./ReportDryRunQueryResult"), exports);
655
659
  __exportStar(require("./ReportExecuteQueriesRequest"), exports);
656
660
  __exportStar(require("./ReportFilter"), exports);
657
661
  __exportStar(require("./ReportFilterConnection"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.144",
3
+ "version": "4.0.145",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -30,6 +30,12 @@ import {
30
30
  ReportDataSetResponse,
31
31
  ReportDataSetResponseFromJSON,
32
32
  ReportDataSetResponseToJSON,
33
+ ReportDryRunQueriesRequest,
34
+ ReportDryRunQueriesRequestFromJSON,
35
+ ReportDryRunQueriesRequestToJSON,
36
+ ReportDryRunQueriesResponse,
37
+ ReportDryRunQueriesResponseFromJSON,
38
+ ReportDryRunQueriesResponseToJSON,
33
39
  ReportExecuteQueriesRequest,
34
40
  ReportExecuteQueriesRequestFromJSON,
35
41
  ReportExecuteQueriesRequestToJSON,
@@ -45,6 +51,10 @@ export interface DeleteReportRequest {
45
51
  reportOid: number;
46
52
  }
47
53
 
54
+ export interface DryRunReportQueriesRequest {
55
+ queryRequest: ReportDryRunQueriesRequest;
56
+ }
57
+
48
58
  export interface ExecuteReportQueriesRequest {
49
59
  queryRequest: ReportExecuteQueriesRequest;
50
60
  }
@@ -94,6 +104,22 @@ export interface DatawarehouseApiInterface {
94
104
  */
95
105
  deleteReport(requestParameters: DeleteReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
96
106
 
107
+ /**
108
+ * Dry run the report queries
109
+ * @summary Dry run the report queries
110
+ * @param {ReportDryRunQueriesRequest} queryRequest Dry run request
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ * @memberof DatawarehouseApiInterface
114
+ */
115
+ dryRunReportQueriesRaw(requestParameters: DryRunReportQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReportDryRunQueriesResponse>>;
116
+
117
+ /**
118
+ * Dry run the report queries
119
+ * Dry run the report queries
120
+ */
121
+ dryRunReportQueries(requestParameters: DryRunReportQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReportDryRunQueriesResponse>;
122
+
97
123
  /**
98
124
  * Execute the report queries
99
125
  * @summary Execute the report queries
@@ -269,6 +295,50 @@ export class DatawarehouseApi extends runtime.BaseAPI implements DatawarehouseAp
269
295
  await this.deleteReportRaw(requestParameters, initOverrides);
270
296
  }
271
297
 
298
+ /**
299
+ * Dry run the report queries
300
+ * Dry run the report queries
301
+ */
302
+ async dryRunReportQueriesRaw(requestParameters: DryRunReportQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReportDryRunQueriesResponse>> {
303
+ if (requestParameters.queryRequest === null || requestParameters.queryRequest === undefined) {
304
+ throw new runtime.RequiredError('queryRequest','Required parameter requestParameters.queryRequest was null or undefined when calling dryRunReportQueries.');
305
+ }
306
+
307
+ const queryParameters: any = {};
308
+
309
+ const headerParameters: runtime.HTTPHeaders = {};
310
+
311
+ headerParameters['Content-Type'] = 'application/json';
312
+
313
+ if (this.configuration && this.configuration.accessToken) {
314
+ // oauth required
315
+ headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", []);
316
+ }
317
+
318
+ if (this.configuration && this.configuration.apiKey) {
319
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
320
+ }
321
+
322
+ const response = await this.request({
323
+ path: `/datawarehouse/reports/dryrun`,
324
+ method: 'PUT',
325
+ headers: headerParameters,
326
+ query: queryParameters,
327
+ body: ReportDryRunQueriesRequestToJSON(requestParameters.queryRequest),
328
+ }, initOverrides);
329
+
330
+ return new runtime.JSONApiResponse(response, (jsonValue) => ReportDryRunQueriesResponseFromJSON(jsonValue));
331
+ }
332
+
333
+ /**
334
+ * Dry run the report queries
335
+ * Dry run the report queries
336
+ */
337
+ async dryRunReportQueries(requestParameters: DryRunReportQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReportDryRunQueriesResponse> {
338
+ const response = await this.dryRunReportQueriesRaw(requestParameters, initOverrides);
339
+ return await response.value();
340
+ }
341
+
272
342
  /**
273
343
  * Execute the report queries
274
344
  * Execute the report queries
@@ -19,6 +19,12 @@ import {
19
19
  AccountsReceivableRetryDayActivityFromJSONTyped,
20
20
  AccountsReceivableRetryDayActivityToJSON,
21
21
  } from './AccountsReceivableRetryDayActivity';
22
+ import {
23
+ AccountsReceivableRetryTransactionReject,
24
+ AccountsReceivableRetryTransactionRejectFromJSON,
25
+ AccountsReceivableRetryTransactionRejectFromJSONTyped,
26
+ AccountsReceivableRetryTransactionRejectToJSON,
27
+ } from './AccountsReceivableRetryTransactionReject';
22
28
 
23
29
  /**
24
30
  *
@@ -104,6 +110,12 @@ export interface AccountsReceivableRetryConfig {
104
110
  * @memberof AccountsReceivableRetryConfig
105
111
  */
106
112
  reject_at_end?: boolean;
113
+ /**
114
+ * Array of key/value pairs that when found in the response cause the rejection of the transaction.
115
+ * @type {Array<AccountsReceivableRetryTransactionReject>}
116
+ * @memberof AccountsReceivableRetryConfig
117
+ */
118
+ transaction_rejects?: Array<AccountsReceivableRetryTransactionReject>;
107
119
  /**
108
120
  * True if the account is currently in trial mode. Set to false to exit trial mode.
109
121
  * @type {boolean}
@@ -141,6 +153,7 @@ export function AccountsReceivableRetryConfigFromJSONTyped(json: any, ignoreDisc
141
153
  'process_linked_accounts': !exists(json, 'process_linked_accounts') ? undefined : json['process_linked_accounts'],
142
154
  'processing_percentage': !exists(json, 'processing_percentage') ? undefined : json['processing_percentage'],
143
155
  'reject_at_end': !exists(json, 'reject_at_end') ? undefined : json['reject_at_end'],
156
+ 'transaction_rejects': !exists(json, 'transaction_rejects') ? undefined : ((json['transaction_rejects'] as Array<any>).map(AccountsReceivableRetryTransactionRejectFromJSON)),
144
157
  'trial_mode': !exists(json, 'trial_mode') ? undefined : json['trial_mode'],
145
158
  'trial_mode_expiration_dts': !exists(json, 'trial_mode_expiration_dts') ? undefined : json['trial_mode_expiration_dts'],
146
159
  };
@@ -168,6 +181,7 @@ export function AccountsReceivableRetryConfigToJSON(value?: AccountsReceivableRe
168
181
  'process_linked_accounts': value.process_linked_accounts,
169
182
  'processing_percentage': value.processing_percentage,
170
183
  'reject_at_end': value.reject_at_end,
184
+ 'transaction_rejects': value.transaction_rejects === undefined ? undefined : ((value.transaction_rejects as Array<any>).map(AccountsReceivableRetryTransactionRejectToJSON)),
171
185
  'trial_mode': value.trial_mode,
172
186
  'trial_mode_expiration_dts': value.trial_mode_expiration_dts,
173
187
  };
@@ -0,0 +1,64 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface AccountsReceivableRetryTransactionReject
20
+ */
21
+ export interface AccountsReceivableRetryTransactionReject {
22
+ /**
23
+ * Transaction response name
24
+ * @type {string}
25
+ * @memberof AccountsReceivableRetryTransactionReject
26
+ */
27
+ name?: string;
28
+ /**
29
+ * Transaction response value
30
+ * @type {string}
31
+ * @memberof AccountsReceivableRetryTransactionReject
32
+ */
33
+ value?: string;
34
+ }
35
+
36
+ export function AccountsReceivableRetryTransactionRejectFromJSON(json: any): AccountsReceivableRetryTransactionReject {
37
+ return AccountsReceivableRetryTransactionRejectFromJSONTyped(json, false);
38
+ }
39
+
40
+ export function AccountsReceivableRetryTransactionRejectFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountsReceivableRetryTransactionReject {
41
+ if ((json === undefined) || (json === null)) {
42
+ return json;
43
+ }
44
+ return {
45
+
46
+ 'name': !exists(json, 'name') ? undefined : json['name'],
47
+ 'value': !exists(json, 'value') ? undefined : json['value'],
48
+ };
49
+ }
50
+
51
+ export function AccountsReceivableRetryTransactionRejectToJSON(value?: AccountsReceivableRetryTransactionReject | null): any {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+
60
+ 'name': value.name,
61
+ 'value': value.value,
62
+ };
63
+ }
64
+
@@ -0,0 +1,103 @@
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
+ ReportDataSetQuery,
18
+ ReportDataSetQueryFromJSON,
19
+ ReportDataSetQueryFromJSONTyped,
20
+ ReportDataSetQueryToJSON,
21
+ } from './ReportDataSetQuery';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ReportDryRunQueriesRequest
27
+ */
28
+ export interface ReportDryRunQueriesRequest {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof ReportDryRunQueriesRequest
33
+ */
34
+ connection_id?: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof ReportDryRunQueriesRequest
39
+ */
40
+ default_dataset_id?: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof ReportDryRunQueriesRequest
45
+ */
46
+ default_project_id?: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof ReportDryRunQueriesRequest
51
+ */
52
+ merchant_id?: string;
53
+ /**
54
+ *
55
+ * @type {Array<ReportDataSetQuery>}
56
+ * @memberof ReportDryRunQueriesRequest
57
+ */
58
+ queries?: Array<ReportDataSetQuery>;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof ReportDryRunQueriesRequest
63
+ */
64
+ security_level?: string;
65
+ }
66
+
67
+ export function ReportDryRunQueriesRequestFromJSON(json: any): ReportDryRunQueriesRequest {
68
+ return ReportDryRunQueriesRequestFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function ReportDryRunQueriesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportDryRunQueriesRequest {
72
+ if ((json === undefined) || (json === null)) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'connection_id': !exists(json, 'connection_id') ? undefined : json['connection_id'],
78
+ 'default_dataset_id': !exists(json, 'default_dataset_id') ? undefined : json['default_dataset_id'],
79
+ 'default_project_id': !exists(json, 'default_project_id') ? undefined : json['default_project_id'],
80
+ 'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
81
+ 'queries': !exists(json, 'queries') ? undefined : ((json['queries'] as Array<any>).map(ReportDataSetQueryFromJSON)),
82
+ 'security_level': !exists(json, 'security_level') ? undefined : json['security_level'],
83
+ };
84
+ }
85
+
86
+ export function ReportDryRunQueriesRequestToJSON(value?: ReportDryRunQueriesRequest | null): any {
87
+ if (value === undefined) {
88
+ return undefined;
89
+ }
90
+ if (value === null) {
91
+ return null;
92
+ }
93
+ return {
94
+
95
+ 'connection_id': value.connection_id,
96
+ 'default_dataset_id': value.default_dataset_id,
97
+ 'default_project_id': value.default_project_id,
98
+ 'merchant_id': value.merchant_id,
99
+ 'queries': value.queries === undefined ? undefined : ((value.queries as Array<any>).map(ReportDataSetQueryToJSON)),
100
+ 'security_level': value.security_level,
101
+ };
102
+ }
103
+
@@ -0,0 +1,63 @@
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
+ ReportDryRunQueryResult,
18
+ ReportDryRunQueryResultFromJSON,
19
+ ReportDryRunQueryResultFromJSONTyped,
20
+ ReportDryRunQueryResultToJSON,
21
+ } from './ReportDryRunQueryResult';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ReportDryRunQueriesResponse
27
+ */
28
+ export interface ReportDryRunQueriesResponse {
29
+ /**
30
+ *
31
+ * @type {Array<ReportDryRunQueryResult>}
32
+ * @memberof ReportDryRunQueriesResponse
33
+ */
34
+ dry_run_query_results?: Array<ReportDryRunQueryResult>;
35
+ }
36
+
37
+ export function ReportDryRunQueriesResponseFromJSON(json: any): ReportDryRunQueriesResponse {
38
+ return ReportDryRunQueriesResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ReportDryRunQueriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportDryRunQueriesResponse {
42
+ if ((json === undefined) || (json === null)) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'dry_run_query_results': !exists(json, 'dry_run_query_results') ? undefined : ((json['dry_run_query_results'] as Array<any>).map(ReportDryRunQueryResultFromJSON)),
48
+ };
49
+ }
50
+
51
+ export function ReportDryRunQueriesResponseToJSON(value?: ReportDryRunQueriesResponse | null): any {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+
60
+ 'dry_run_query_results': value.dry_run_query_results === undefined ? undefined : ((value.dry_run_query_results as Array<any>).map(ReportDryRunQueryResultToJSON)),
61
+ };
62
+ }
63
+
@@ -0,0 +1,64 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface ReportDryRunQueryResult
20
+ */
21
+ export interface ReportDryRunQueryResult {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ReportDryRunQueryResult
26
+ */
27
+ error_message?: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ReportDryRunQueryResult
32
+ */
33
+ total_bytes_processed?: number;
34
+ }
35
+
36
+ export function ReportDryRunQueryResultFromJSON(json: any): ReportDryRunQueryResult {
37
+ return ReportDryRunQueryResultFromJSONTyped(json, false);
38
+ }
39
+
40
+ export function ReportDryRunQueryResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportDryRunQueryResult {
41
+ if ((json === undefined) || (json === null)) {
42
+ return json;
43
+ }
44
+ return {
45
+
46
+ 'error_message': !exists(json, 'error_message') ? undefined : json['error_message'],
47
+ 'total_bytes_processed': !exists(json, 'total_bytes_processed') ? undefined : json['total_bytes_processed'],
48
+ };
49
+ }
50
+
51
+ export function ReportDryRunQueryResultToJSON(value?: ReportDryRunQueryResult | null): any {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+
60
+ 'error_message': value.error_message,
61
+ 'total_bytes_processed': value.total_bytes_processed,
62
+ };
63
+ }
64
+
@@ -7,6 +7,7 @@ export * from './AccountsReceivableRetryStatAccount';
7
7
  export * from './AccountsReceivableRetryStatMetrics';
8
8
  export * from './AccountsReceivableRetryStatRevenue';
9
9
  export * from './AccountsReceivableRetryStatsResponse';
10
+ export * from './AccountsReceivableRetryTransactionReject';
10
11
  export * from './Activity';
11
12
  export * from './AddLibraryItemRequest';
12
13
  export * from './AdjustInternalCertificateRequest';
@@ -636,6 +637,9 @@ export * from './ReportDataSetRow';
636
637
  export * from './ReportDataSetSchema';
637
638
  export * from './ReportDataSource';
638
639
  export * from './ReportDataSourceSchema';
640
+ export * from './ReportDryRunQueriesRequest';
641
+ export * from './ReportDryRunQueriesResponse';
642
+ export * from './ReportDryRunQueryResult';
639
643
  export * from './ReportExecuteQueriesRequest';
640
644
  export * from './ReportFilter';
641
645
  export * from './ReportFilterConnection';