ultracart_rest_api_v2_typescript 3.10.127 → 3.10.128
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/README.md +3 -2
- package/api.ts +212 -0
- package/dist/api.d.ts +142 -0
- package/dist/api.js +91 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@3.10.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@3.10.128
|
|
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@3.10.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@3.10.128 --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
|
+
| 3.10.128 | 04/10/2023 | data warehouse internal dev |
|
|
57
58
|
| 3.10.127 | 03/29/2023 | internal development |
|
|
58
59
|
| 3.10.126 | 03/22/2023 | data warehouse internal dev |
|
|
59
60
|
| 3.10.125 | 03/22/2023 | dw initial framework |
|
package/api.ts
CHANGED
|
@@ -162,6 +162,12 @@ export interface AccountsReceivableRetryConfig {
|
|
|
162
162
|
* @memberof AccountsReceivableRetryConfig
|
|
163
163
|
*/
|
|
164
164
|
reject_at_end?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Array of key/value pairs that when found in the response cause the rejection of the transaction.
|
|
167
|
+
* @type {Array<AccountsReceivableRetryTransactionReject>}
|
|
168
|
+
* @memberof AccountsReceivableRetryConfig
|
|
169
|
+
*/
|
|
170
|
+
transaction_rejects?: Array<AccountsReceivableRetryTransactionReject>;
|
|
165
171
|
/**
|
|
166
172
|
* True if the account is currently in trial mode. Set to false to exit trial mode.
|
|
167
173
|
* @type {boolean}
|
|
@@ -428,6 +434,26 @@ export interface AccountsReceivableRetryStatsResponse {
|
|
|
428
434
|
warning?: Warning;
|
|
429
435
|
}
|
|
430
436
|
|
|
437
|
+
/**
|
|
438
|
+
*
|
|
439
|
+
* @export
|
|
440
|
+
* @interface AccountsReceivableRetryTransactionReject
|
|
441
|
+
*/
|
|
442
|
+
export interface AccountsReceivableRetryTransactionReject {
|
|
443
|
+
/**
|
|
444
|
+
* Transaction response name
|
|
445
|
+
* @type {string}
|
|
446
|
+
* @memberof AccountsReceivableRetryTransactionReject
|
|
447
|
+
*/
|
|
448
|
+
name?: string;
|
|
449
|
+
/**
|
|
450
|
+
* Transaction response value
|
|
451
|
+
* @type {string}
|
|
452
|
+
* @memberof AccountsReceivableRetryTransactionReject
|
|
453
|
+
*/
|
|
454
|
+
value?: string;
|
|
455
|
+
}
|
|
456
|
+
|
|
431
457
|
/**
|
|
432
458
|
*
|
|
433
459
|
* @export
|
|
@@ -34008,6 +34034,84 @@ export namespace ReportDataSourceSchema {
|
|
|
34008
34034
|
}
|
|
34009
34035
|
}
|
|
34010
34036
|
|
|
34037
|
+
/**
|
|
34038
|
+
*
|
|
34039
|
+
* @export
|
|
34040
|
+
* @interface ReportDryRunQueriesRequest
|
|
34041
|
+
*/
|
|
34042
|
+
export interface ReportDryRunQueriesRequest {
|
|
34043
|
+
/**
|
|
34044
|
+
*
|
|
34045
|
+
* @type {string}
|
|
34046
|
+
* @memberof ReportDryRunQueriesRequest
|
|
34047
|
+
*/
|
|
34048
|
+
connection_id?: string;
|
|
34049
|
+
/**
|
|
34050
|
+
*
|
|
34051
|
+
* @type {string}
|
|
34052
|
+
* @memberof ReportDryRunQueriesRequest
|
|
34053
|
+
*/
|
|
34054
|
+
default_dataset_id?: string;
|
|
34055
|
+
/**
|
|
34056
|
+
*
|
|
34057
|
+
* @type {string}
|
|
34058
|
+
* @memberof ReportDryRunQueriesRequest
|
|
34059
|
+
*/
|
|
34060
|
+
default_project_id?: string;
|
|
34061
|
+
/**
|
|
34062
|
+
*
|
|
34063
|
+
* @type {string}
|
|
34064
|
+
* @memberof ReportDryRunQueriesRequest
|
|
34065
|
+
*/
|
|
34066
|
+
merchant_id?: string;
|
|
34067
|
+
/**
|
|
34068
|
+
*
|
|
34069
|
+
* @type {Array<ReportDataSetQuery>}
|
|
34070
|
+
* @memberof ReportDryRunQueriesRequest
|
|
34071
|
+
*/
|
|
34072
|
+
queries?: Array<ReportDataSetQuery>;
|
|
34073
|
+
/**
|
|
34074
|
+
*
|
|
34075
|
+
* @type {string}
|
|
34076
|
+
* @memberof ReportDryRunQueriesRequest
|
|
34077
|
+
*/
|
|
34078
|
+
security_level?: string;
|
|
34079
|
+
}
|
|
34080
|
+
|
|
34081
|
+
/**
|
|
34082
|
+
*
|
|
34083
|
+
* @export
|
|
34084
|
+
* @interface ReportDryRunQueriesResponse
|
|
34085
|
+
*/
|
|
34086
|
+
export interface ReportDryRunQueriesResponse {
|
|
34087
|
+
/**
|
|
34088
|
+
*
|
|
34089
|
+
* @type {Array<ReportDryRunQueryResult>}
|
|
34090
|
+
* @memberof ReportDryRunQueriesResponse
|
|
34091
|
+
*/
|
|
34092
|
+
dry_run_query_results?: Array<ReportDryRunQueryResult>;
|
|
34093
|
+
}
|
|
34094
|
+
|
|
34095
|
+
/**
|
|
34096
|
+
*
|
|
34097
|
+
* @export
|
|
34098
|
+
* @interface ReportDryRunQueryResult
|
|
34099
|
+
*/
|
|
34100
|
+
export interface ReportDryRunQueryResult {
|
|
34101
|
+
/**
|
|
34102
|
+
*
|
|
34103
|
+
* @type {string}
|
|
34104
|
+
* @memberof ReportDryRunQueryResult
|
|
34105
|
+
*/
|
|
34106
|
+
error_message?: string;
|
|
34107
|
+
/**
|
|
34108
|
+
*
|
|
34109
|
+
* @type {number}
|
|
34110
|
+
* @memberof ReportDryRunQueryResult
|
|
34111
|
+
*/
|
|
34112
|
+
total_bytes_processed?: number;
|
|
34113
|
+
}
|
|
34114
|
+
|
|
34011
34115
|
/**
|
|
34012
34116
|
*
|
|
34013
34117
|
* @export
|
|
@@ -54400,6 +54504,61 @@ export const DatawarehouseApiFetchParamCreator = function (configuration?: Confi
|
|
|
54400
54504
|
options: localVarRequestOptions,
|
|
54401
54505
|
};
|
|
54402
54506
|
},
|
|
54507
|
+
/**
|
|
54508
|
+
* Dry run the report queries
|
|
54509
|
+
* @summary Dry run the report queries
|
|
54510
|
+
* @param {ReportDryRunQueriesRequest} query_request Dry run request
|
|
54511
|
+
* @param {*} [options] Override http request option.
|
|
54512
|
+
* @throws {RequiredError}
|
|
54513
|
+
*/
|
|
54514
|
+
dryRunReportQueries(query_request: ReportDryRunQueriesRequest, options: any = {}): FetchArgs {
|
|
54515
|
+
// verify required parameter 'query_request' is not null or undefined
|
|
54516
|
+
if (query_request === null || query_request === undefined) {
|
|
54517
|
+
throw new RequiredError('query_request','Required parameter query_request was null or undefined when calling dryRunReportQueries.');
|
|
54518
|
+
}
|
|
54519
|
+
const localVarPath = `/datawarehouse/reports/dryrun`;
|
|
54520
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
54521
|
+
const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
|
|
54522
|
+
const localVarHeaderParameter = {} as any;
|
|
54523
|
+
const localVarQueryParameter = {} as any;
|
|
54524
|
+
|
|
54525
|
+
if(configuration && configuration.apiVersion) {
|
|
54526
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
54527
|
+
}
|
|
54528
|
+
|
|
54529
|
+
|
|
54530
|
+
|
|
54531
|
+
// authentication ultraCartOauth required
|
|
54532
|
+
// oauth required
|
|
54533
|
+
if (configuration && configuration.accessToken) {
|
|
54534
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
54535
|
+
? configuration.accessToken("ultraCartOauth", [])
|
|
54536
|
+
: configuration.accessToken;
|
|
54537
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
54538
|
+
}
|
|
54539
|
+
|
|
54540
|
+
// authentication ultraCartSimpleApiKey required
|
|
54541
|
+
if (configuration && configuration.apiKey) {
|
|
54542
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
54543
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
54544
|
+
: configuration.apiKey;
|
|
54545
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
54546
|
+
}
|
|
54547
|
+
|
|
54548
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
54549
|
+
|
|
54550
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
54551
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
54552
|
+
delete localVarUrlObj.search;
|
|
54553
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
54554
|
+
const needsSerialization = (<any>"ReportDryRunQueriesRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
54555
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(query_request || {}) : (query_request || "");
|
|
54556
|
+
|
|
54557
|
+
return {
|
|
54558
|
+
url: url.format(localVarUrlObj),
|
|
54559
|
+
options: localVarRequestOptions,
|
|
54560
|
+
};
|
|
54561
|
+
},
|
|
54403
54562
|
/**
|
|
54404
54563
|
* Execute the report queries
|
|
54405
54564
|
* @summary Execute the report queries
|
|
@@ -54855,6 +55014,27 @@ export const DatawarehouseApiFp = function(configuration?: Configuration) {
|
|
|
54855
55014
|
});
|
|
54856
55015
|
};
|
|
54857
55016
|
},
|
|
55017
|
+
/**
|
|
55018
|
+
* Dry run the report queries
|
|
55019
|
+
* @summary Dry run the report queries
|
|
55020
|
+
* @param {ReportDryRunQueriesRequest} query_request Dry run request
|
|
55021
|
+
* @param {*} [options] Override http request option.
|
|
55022
|
+
* @throws {RequiredError}
|
|
55023
|
+
*/
|
|
55024
|
+
dryRunReportQueries(query_request: ReportDryRunQueriesRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ReportDryRunQueriesResponse> {
|
|
55025
|
+
const localVarFetchArgs = DatawarehouseApiFetchParamCreator(configuration).dryRunReportQueries(query_request, options);
|
|
55026
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
55027
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
55028
|
+
|
|
55029
|
+
if (response.status >= 200 && response.status < 300) {
|
|
55030
|
+
return response.json();
|
|
55031
|
+
|
|
55032
|
+
} else {
|
|
55033
|
+
throw response;
|
|
55034
|
+
}
|
|
55035
|
+
});
|
|
55036
|
+
};
|
|
55037
|
+
},
|
|
54858
55038
|
/**
|
|
54859
55039
|
* Execute the report queries
|
|
54860
55040
|
* @summary Execute the report queries
|
|
@@ -55042,6 +55222,16 @@ export const DatawarehouseApiFactory = function (configuration?: Configuration,
|
|
|
55042
55222
|
deleteReport(report_oid: number, options?: any) {
|
|
55043
55223
|
return DatawarehouseApiFp(configuration).deleteReport(report_oid, options)(fetch, basePath);
|
|
55044
55224
|
},
|
|
55225
|
+
/**
|
|
55226
|
+
* Dry run the report queries
|
|
55227
|
+
* @summary Dry run the report queries
|
|
55228
|
+
* @param {ReportDryRunQueriesRequest} query_request Dry run request
|
|
55229
|
+
* @param {*} [options] Override http request option.
|
|
55230
|
+
* @throws {RequiredError}
|
|
55231
|
+
*/
|
|
55232
|
+
dryRunReportQueries(query_request: ReportDryRunQueriesRequest, options?: any) {
|
|
55233
|
+
return DatawarehouseApiFp(configuration).dryRunReportQueries(query_request, options)(fetch, basePath);
|
|
55234
|
+
},
|
|
55045
55235
|
/**
|
|
55046
55236
|
* Execute the report queries
|
|
55047
55237
|
* @summary Execute the report queries
|
|
@@ -55141,6 +55331,16 @@ export interface DatawarehouseApiInterface {
|
|
|
55141
55331
|
*/
|
|
55142
55332
|
deleteReport(report_oid: number, options?: any): Promise<{}>;
|
|
55143
55333
|
|
|
55334
|
+
/**
|
|
55335
|
+
* Dry run the report queries
|
|
55336
|
+
* @summary Dry run the report queries
|
|
55337
|
+
* @param {ReportDryRunQueriesRequest} query_request Dry run request
|
|
55338
|
+
* @param {*} [options] Override http request option.
|
|
55339
|
+
* @throws {RequiredError}
|
|
55340
|
+
* @memberof DatawarehouseApiInterface
|
|
55341
|
+
*/
|
|
55342
|
+
dryRunReportQueries(query_request: ReportDryRunQueriesRequest, options?: any): Promise<ReportDryRunQueriesResponse>;
|
|
55343
|
+
|
|
55144
55344
|
/**
|
|
55145
55345
|
* Execute the report queries
|
|
55146
55346
|
* @summary Execute the report queries
|
|
@@ -55242,6 +55442,18 @@ export class DatawarehouseApi extends BaseAPI implements DatawarehouseApiInterfa
|
|
|
55242
55442
|
return DatawarehouseApiFp(this.configuration).deleteReport(report_oid, options)(this.fetch, this.basePath);
|
|
55243
55443
|
}
|
|
55244
55444
|
|
|
55445
|
+
/**
|
|
55446
|
+
* Dry run the report queries
|
|
55447
|
+
* @summary Dry run the report queries
|
|
55448
|
+
* @param {ReportDryRunQueriesRequest} query_request Dry run request
|
|
55449
|
+
* @param {*} [options] Override http request option.
|
|
55450
|
+
* @throws {RequiredError}
|
|
55451
|
+
* @memberof DatawarehouseApi
|
|
55452
|
+
*/
|
|
55453
|
+
public dryRunReportQueries(query_request: ReportDryRunQueriesRequest, options?: any) {
|
|
55454
|
+
return DatawarehouseApiFp(this.configuration).dryRunReportQueries(query_request, options)(this.fetch, this.basePath);
|
|
55455
|
+
}
|
|
55456
|
+
|
|
55245
55457
|
/**
|
|
55246
55458
|
* Execute the report queries
|
|
55247
55459
|
* @summary Execute the report queries
|
package/dist/api.d.ts
CHANGED
|
@@ -144,6 +144,12 @@ export interface AccountsReceivableRetryConfig {
|
|
|
144
144
|
* @memberof AccountsReceivableRetryConfig
|
|
145
145
|
*/
|
|
146
146
|
reject_at_end?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Array of key/value pairs that when found in the response cause the rejection of the transaction.
|
|
149
|
+
* @type {Array<AccountsReceivableRetryTransactionReject>}
|
|
150
|
+
* @memberof AccountsReceivableRetryConfig
|
|
151
|
+
*/
|
|
152
|
+
transaction_rejects?: Array<AccountsReceivableRetryTransactionReject>;
|
|
147
153
|
/**
|
|
148
154
|
* True if the account is currently in trial mode. Set to false to exit trial mode.
|
|
149
155
|
* @type {boolean}
|
|
@@ -403,6 +409,25 @@ export interface AccountsReceivableRetryStatsResponse {
|
|
|
403
409
|
*/
|
|
404
410
|
warning?: Warning;
|
|
405
411
|
}
|
|
412
|
+
/**
|
|
413
|
+
*
|
|
414
|
+
* @export
|
|
415
|
+
* @interface AccountsReceivableRetryTransactionReject
|
|
416
|
+
*/
|
|
417
|
+
export interface AccountsReceivableRetryTransactionReject {
|
|
418
|
+
/**
|
|
419
|
+
* Transaction response name
|
|
420
|
+
* @type {string}
|
|
421
|
+
* @memberof AccountsReceivableRetryTransactionReject
|
|
422
|
+
*/
|
|
423
|
+
name?: string;
|
|
424
|
+
/**
|
|
425
|
+
* Transaction response value
|
|
426
|
+
* @type {string}
|
|
427
|
+
* @memberof AccountsReceivableRetryTransactionReject
|
|
428
|
+
*/
|
|
429
|
+
value?: string;
|
|
430
|
+
}
|
|
406
431
|
/**
|
|
407
432
|
*
|
|
408
433
|
* @export
|
|
@@ -33295,6 +33320,81 @@ export declare namespace ReportDataSourceSchema {
|
|
|
33295
33320
|
TIMESTAMP
|
|
33296
33321
|
}
|
|
33297
33322
|
}
|
|
33323
|
+
/**
|
|
33324
|
+
*
|
|
33325
|
+
* @export
|
|
33326
|
+
* @interface ReportDryRunQueriesRequest
|
|
33327
|
+
*/
|
|
33328
|
+
export interface ReportDryRunQueriesRequest {
|
|
33329
|
+
/**
|
|
33330
|
+
*
|
|
33331
|
+
* @type {string}
|
|
33332
|
+
* @memberof ReportDryRunQueriesRequest
|
|
33333
|
+
*/
|
|
33334
|
+
connection_id?: string;
|
|
33335
|
+
/**
|
|
33336
|
+
*
|
|
33337
|
+
* @type {string}
|
|
33338
|
+
* @memberof ReportDryRunQueriesRequest
|
|
33339
|
+
*/
|
|
33340
|
+
default_dataset_id?: string;
|
|
33341
|
+
/**
|
|
33342
|
+
*
|
|
33343
|
+
* @type {string}
|
|
33344
|
+
* @memberof ReportDryRunQueriesRequest
|
|
33345
|
+
*/
|
|
33346
|
+
default_project_id?: string;
|
|
33347
|
+
/**
|
|
33348
|
+
*
|
|
33349
|
+
* @type {string}
|
|
33350
|
+
* @memberof ReportDryRunQueriesRequest
|
|
33351
|
+
*/
|
|
33352
|
+
merchant_id?: string;
|
|
33353
|
+
/**
|
|
33354
|
+
*
|
|
33355
|
+
* @type {Array<ReportDataSetQuery>}
|
|
33356
|
+
* @memberof ReportDryRunQueriesRequest
|
|
33357
|
+
*/
|
|
33358
|
+
queries?: Array<ReportDataSetQuery>;
|
|
33359
|
+
/**
|
|
33360
|
+
*
|
|
33361
|
+
* @type {string}
|
|
33362
|
+
* @memberof ReportDryRunQueriesRequest
|
|
33363
|
+
*/
|
|
33364
|
+
security_level?: string;
|
|
33365
|
+
}
|
|
33366
|
+
/**
|
|
33367
|
+
*
|
|
33368
|
+
* @export
|
|
33369
|
+
* @interface ReportDryRunQueriesResponse
|
|
33370
|
+
*/
|
|
33371
|
+
export interface ReportDryRunQueriesResponse {
|
|
33372
|
+
/**
|
|
33373
|
+
*
|
|
33374
|
+
* @type {Array<ReportDryRunQueryResult>}
|
|
33375
|
+
* @memberof ReportDryRunQueriesResponse
|
|
33376
|
+
*/
|
|
33377
|
+
dry_run_query_results?: Array<ReportDryRunQueryResult>;
|
|
33378
|
+
}
|
|
33379
|
+
/**
|
|
33380
|
+
*
|
|
33381
|
+
* @export
|
|
33382
|
+
* @interface ReportDryRunQueryResult
|
|
33383
|
+
*/
|
|
33384
|
+
export interface ReportDryRunQueryResult {
|
|
33385
|
+
/**
|
|
33386
|
+
*
|
|
33387
|
+
* @type {string}
|
|
33388
|
+
* @memberof ReportDryRunQueryResult
|
|
33389
|
+
*/
|
|
33390
|
+
error_message?: string;
|
|
33391
|
+
/**
|
|
33392
|
+
*
|
|
33393
|
+
* @type {number}
|
|
33394
|
+
* @memberof ReportDryRunQueryResult
|
|
33395
|
+
*/
|
|
33396
|
+
total_bytes_processed?: number;
|
|
33397
|
+
}
|
|
33298
33398
|
/**
|
|
33299
33399
|
*
|
|
33300
33400
|
* @export
|
|
@@ -45082,6 +45182,14 @@ export declare const DatawarehouseApiFetchParamCreator: (configuration?: Configu
|
|
|
45082
45182
|
* @throws {RequiredError}
|
|
45083
45183
|
*/
|
|
45084
45184
|
deleteReport(report_oid: number, options?: any): FetchArgs;
|
|
45185
|
+
/**
|
|
45186
|
+
* Dry run the report queries
|
|
45187
|
+
* @summary Dry run the report queries
|
|
45188
|
+
* @param {ReportDryRunQueriesRequest} query_request Dry run request
|
|
45189
|
+
* @param {*} [options] Override http request option.
|
|
45190
|
+
* @throws {RequiredError}
|
|
45191
|
+
*/
|
|
45192
|
+
dryRunReportQueries(query_request: ReportDryRunQueriesRequest, options?: any): FetchArgs;
|
|
45085
45193
|
/**
|
|
45086
45194
|
* Execute the report queries
|
|
45087
45195
|
* @summary Execute the report queries
|
|
@@ -45160,6 +45268,14 @@ export declare const DatawarehouseApiFp: (configuration?: Configuration) => {
|
|
|
45160
45268
|
* @throws {RequiredError}
|
|
45161
45269
|
*/
|
|
45162
45270
|
deleteReport(report_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
45271
|
+
/**
|
|
45272
|
+
* Dry run the report queries
|
|
45273
|
+
* @summary Dry run the report queries
|
|
45274
|
+
* @param {ReportDryRunQueriesRequest} query_request Dry run request
|
|
45275
|
+
* @param {*} [options] Override http request option.
|
|
45276
|
+
* @throws {RequiredError}
|
|
45277
|
+
*/
|
|
45278
|
+
dryRunReportQueries(query_request: ReportDryRunQueriesRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ReportDryRunQueriesResponse>;
|
|
45163
45279
|
/**
|
|
45164
45280
|
* Execute the report queries
|
|
45165
45281
|
* @summary Execute the report queries
|
|
@@ -45238,6 +45354,14 @@ export declare const DatawarehouseApiFactory: (configuration?: Configuration, fe
|
|
|
45238
45354
|
* @throws {RequiredError}
|
|
45239
45355
|
*/
|
|
45240
45356
|
deleteReport(report_oid: number, options?: any): Promise<Response>;
|
|
45357
|
+
/**
|
|
45358
|
+
* Dry run the report queries
|
|
45359
|
+
* @summary Dry run the report queries
|
|
45360
|
+
* @param {ReportDryRunQueriesRequest} query_request Dry run request
|
|
45361
|
+
* @param {*} [options] Override http request option.
|
|
45362
|
+
* @throws {RequiredError}
|
|
45363
|
+
*/
|
|
45364
|
+
dryRunReportQueries(query_request: ReportDryRunQueriesRequest, options?: any): Promise<ReportDryRunQueriesResponse>;
|
|
45241
45365
|
/**
|
|
45242
45366
|
* Execute the report queries
|
|
45243
45367
|
* @summary Execute the report queries
|
|
@@ -45318,6 +45442,15 @@ export interface DatawarehouseApiInterface {
|
|
|
45318
45442
|
* @memberof DatawarehouseApiInterface
|
|
45319
45443
|
*/
|
|
45320
45444
|
deleteReport(report_oid: number, options?: any): Promise<{}>;
|
|
45445
|
+
/**
|
|
45446
|
+
* Dry run the report queries
|
|
45447
|
+
* @summary Dry run the report queries
|
|
45448
|
+
* @param {ReportDryRunQueriesRequest} query_request Dry run request
|
|
45449
|
+
* @param {*} [options] Override http request option.
|
|
45450
|
+
* @throws {RequiredError}
|
|
45451
|
+
* @memberof DatawarehouseApiInterface
|
|
45452
|
+
*/
|
|
45453
|
+
dryRunReportQueries(query_request: ReportDryRunQueriesRequest, options?: any): Promise<ReportDryRunQueriesResponse>;
|
|
45321
45454
|
/**
|
|
45322
45455
|
* Execute the report queries
|
|
45323
45456
|
* @summary Execute the report queries
|
|
@@ -45407,6 +45540,15 @@ export declare class DatawarehouseApi extends BaseAPI implements DatawarehouseAp
|
|
|
45407
45540
|
* @memberof DatawarehouseApi
|
|
45408
45541
|
*/
|
|
45409
45542
|
deleteReport(report_oid: number, options?: any): Promise<Response>;
|
|
45543
|
+
/**
|
|
45544
|
+
* Dry run the report queries
|
|
45545
|
+
* @summary Dry run the report queries
|
|
45546
|
+
* @param {ReportDryRunQueriesRequest} query_request Dry run request
|
|
45547
|
+
* @param {*} [options] Override http request option.
|
|
45548
|
+
* @throws {RequiredError}
|
|
45549
|
+
* @memberof DatawarehouseApi
|
|
45550
|
+
*/
|
|
45551
|
+
dryRunReportQueries(query_request: ReportDryRunQueriesRequest, options?: any): Promise<ReportDryRunQueriesResponse>;
|
|
45410
45552
|
/**
|
|
45411
45553
|
* Execute the report queries
|
|
45412
45554
|
* @summary Execute the report queries
|
package/dist/api.js
CHANGED
|
@@ -13659,6 +13659,54 @@ var DatawarehouseApiFetchParamCreator = function (configuration) {
|
|
|
13659
13659
|
options: localVarRequestOptions,
|
|
13660
13660
|
};
|
|
13661
13661
|
},
|
|
13662
|
+
/**
|
|
13663
|
+
* Dry run the report queries
|
|
13664
|
+
* @summary Dry run the report queries
|
|
13665
|
+
* @param {ReportDryRunQueriesRequest} query_request Dry run request
|
|
13666
|
+
* @param {*} [options] Override http request option.
|
|
13667
|
+
* @throws {RequiredError}
|
|
13668
|
+
*/
|
|
13669
|
+
dryRunReportQueries: function (query_request, options) {
|
|
13670
|
+
if (options === void 0) { options = {}; }
|
|
13671
|
+
// verify required parameter 'query_request' is not null or undefined
|
|
13672
|
+
if (query_request === null || query_request === undefined) {
|
|
13673
|
+
throw new RequiredError('query_request', 'Required parameter query_request was null or undefined when calling dryRunReportQueries.');
|
|
13674
|
+
}
|
|
13675
|
+
var localVarPath = "/datawarehouse/reports/dryrun";
|
|
13676
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
13677
|
+
var localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
|
|
13678
|
+
var localVarHeaderParameter = {};
|
|
13679
|
+
var localVarQueryParameter = {};
|
|
13680
|
+
if (configuration && configuration.apiVersion) {
|
|
13681
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
13682
|
+
}
|
|
13683
|
+
// authentication ultraCartOauth required
|
|
13684
|
+
// oauth required
|
|
13685
|
+
if (configuration && configuration.accessToken) {
|
|
13686
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
13687
|
+
? configuration.accessToken("ultraCartOauth", [])
|
|
13688
|
+
: configuration.accessToken;
|
|
13689
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
13690
|
+
}
|
|
13691
|
+
// authentication ultraCartSimpleApiKey required
|
|
13692
|
+
if (configuration && configuration.apiKey) {
|
|
13693
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
13694
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
13695
|
+
: configuration.apiKey;
|
|
13696
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
13697
|
+
}
|
|
13698
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13699
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
13700
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
13701
|
+
delete localVarUrlObj.search;
|
|
13702
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
13703
|
+
var needsSerialization = ("ReportDryRunQueriesRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
13704
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(query_request || {}) : (query_request || "");
|
|
13705
|
+
return {
|
|
13706
|
+
url: url.format(localVarUrlObj),
|
|
13707
|
+
options: localVarRequestOptions,
|
|
13708
|
+
};
|
|
13709
|
+
},
|
|
13662
13710
|
/**
|
|
13663
13711
|
* Execute the report queries
|
|
13664
13712
|
* @summary Execute the report queries
|
|
@@ -14064,6 +14112,28 @@ var DatawarehouseApiFp = function (configuration) {
|
|
|
14064
14112
|
});
|
|
14065
14113
|
};
|
|
14066
14114
|
},
|
|
14115
|
+
/**
|
|
14116
|
+
* Dry run the report queries
|
|
14117
|
+
* @summary Dry run the report queries
|
|
14118
|
+
* @param {ReportDryRunQueriesRequest} query_request Dry run request
|
|
14119
|
+
* @param {*} [options] Override http request option.
|
|
14120
|
+
* @throws {RequiredError}
|
|
14121
|
+
*/
|
|
14122
|
+
dryRunReportQueries: function (query_request, options) {
|
|
14123
|
+
var localVarFetchArgs = (0, exports.DatawarehouseApiFetchParamCreator)(configuration).dryRunReportQueries(query_request, options);
|
|
14124
|
+
return function (fetch, basePath) {
|
|
14125
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
14126
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
14127
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
14128
|
+
if (response.status >= 200 && response.status < 300) {
|
|
14129
|
+
return response.json();
|
|
14130
|
+
}
|
|
14131
|
+
else {
|
|
14132
|
+
throw response;
|
|
14133
|
+
}
|
|
14134
|
+
});
|
|
14135
|
+
};
|
|
14136
|
+
},
|
|
14067
14137
|
/**
|
|
14068
14138
|
* Execute the report queries
|
|
14069
14139
|
* @summary Execute the report queries
|
|
@@ -14259,6 +14329,16 @@ var DatawarehouseApiFactory = function (configuration, fetch, basePath) {
|
|
|
14259
14329
|
deleteReport: function (report_oid, options) {
|
|
14260
14330
|
return (0, exports.DatawarehouseApiFp)(configuration).deleteReport(report_oid, options)(fetch, basePath);
|
|
14261
14331
|
},
|
|
14332
|
+
/**
|
|
14333
|
+
* Dry run the report queries
|
|
14334
|
+
* @summary Dry run the report queries
|
|
14335
|
+
* @param {ReportDryRunQueriesRequest} query_request Dry run request
|
|
14336
|
+
* @param {*} [options] Override http request option.
|
|
14337
|
+
* @throws {RequiredError}
|
|
14338
|
+
*/
|
|
14339
|
+
dryRunReportQueries: function (query_request, options) {
|
|
14340
|
+
return (0, exports.DatawarehouseApiFp)(configuration).dryRunReportQueries(query_request, options)(fetch, basePath);
|
|
14341
|
+
},
|
|
14262
14342
|
/**
|
|
14263
14343
|
* Execute the report queries
|
|
14264
14344
|
* @summary Execute the report queries
|
|
@@ -14364,6 +14444,17 @@ var DatawarehouseApi = /** @class */ (function (_super) {
|
|
|
14364
14444
|
DatawarehouseApi.prototype.deleteReport = function (report_oid, options) {
|
|
14365
14445
|
return (0, exports.DatawarehouseApiFp)(this.configuration).deleteReport(report_oid, options)(this.fetch, this.basePath);
|
|
14366
14446
|
};
|
|
14447
|
+
/**
|
|
14448
|
+
* Dry run the report queries
|
|
14449
|
+
* @summary Dry run the report queries
|
|
14450
|
+
* @param {ReportDryRunQueriesRequest} query_request Dry run request
|
|
14451
|
+
* @param {*} [options] Override http request option.
|
|
14452
|
+
* @throws {RequiredError}
|
|
14453
|
+
* @memberof DatawarehouseApi
|
|
14454
|
+
*/
|
|
14455
|
+
DatawarehouseApi.prototype.dryRunReportQueries = function (query_request, options) {
|
|
14456
|
+
return (0, exports.DatawarehouseApiFp)(this.configuration).dryRunReportQueries(query_request, options)(this.fetch, this.basePath);
|
|
14457
|
+
};
|
|
14367
14458
|
/**
|
|
14368
14459
|
* Execute the report queries
|
|
14369
14460
|
* @summary Execute the report queries
|