ultracart_rest_api_v2_typescript 4.0.147 → 4.0.148

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.147
1
+ ## ultracart_rest_api_v2_typescript@4.0.148
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.147 --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.148 --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.148 | 04/19/2023 | internal dev - data warehouse |
57
58
  | 4.0.147 | 04/17/2023 | OrderPaymentTransaction - expose the transaction id |
58
59
  | 4.0.146 | 04/11/2023 | missing sezzle payment constant |
59
60
  | 4.0.145 | 04/10/2023 | data warehouse internal dev |
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { ReportDataSource } from './ReportDataSource';
13
- import { ReportFilter } from './ReportFilter';
14
13
  import { ReportPage } from './ReportPage';
15
14
  /**
16
15
  *
@@ -42,12 +41,6 @@ export interface Report {
42
41
  * @memberof Report
43
42
  */
44
43
  default_project_id?: string;
45
- /**
46
- *
47
- * @type {Array<ReportFilter>}
48
- * @memberof Report
49
- */
50
- filters?: Array<ReportFilter>;
51
44
  /**
52
45
  *
53
46
  * @type {string}
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ReportToJSON = exports.ReportFromJSONTyped = exports.ReportFromJSON = exports.ReportSecurityLevelEnum = void 0;
17
17
  var runtime_1 = require("../runtime");
18
18
  var ReportDataSource_1 = require("./ReportDataSource");
19
- var ReportFilter_1 = require("./ReportFilter");
20
19
  var ReportPage_1 = require("./ReportPage");
21
20
  /**
22
21
  * @export
@@ -40,7 +39,6 @@ function ReportFromJSONTyped(json, ignoreDiscriminator) {
40
39
  'data_sources': !(0, runtime_1.exists)(json, 'data_sources') ? undefined : (json['data_sources'].map(ReportDataSource_1.ReportDataSourceFromJSON)),
41
40
  'default_dataset_id': !(0, runtime_1.exists)(json, 'default_dataset_id') ? undefined : json['default_dataset_id'],
42
41
  'default_project_id': !(0, runtime_1.exists)(json, 'default_project_id') ? undefined : json['default_project_id'],
43
- 'filters': !(0, runtime_1.exists)(json, 'filters') ? undefined : (json['filters'].map(ReportFilter_1.ReportFilterFromJSON)),
44
42
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
45
43
  'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
46
44
  'pages': !(0, runtime_1.exists)(json, 'pages') ? undefined : (json['pages'].map(ReportPage_1.ReportPageFromJSON)),
@@ -61,7 +59,6 @@ function ReportToJSON(value) {
61
59
  'data_sources': value.data_sources === undefined ? undefined : (value.data_sources.map(ReportDataSource_1.ReportDataSourceToJSON)),
62
60
  'default_dataset_id': value.default_dataset_id,
63
61
  'default_project_id': value.default_project_id,
64
- 'filters': value.filters === undefined ? undefined : (value.filters.map(ReportFilter_1.ReportFilterToJSON)),
65
62
  'merchant_id': value.merchant_id,
66
63
  'name': value.name,
67
64
  'pages': value.pages === undefined ? undefined : (value.pages.map(ReportPage_1.ReportPageToJSON)),
@@ -16,6 +16,12 @@ import { ReportFilterConnection } from './ReportFilterConnection';
16
16
  * @interface ReportFilter
17
17
  */
18
18
  export interface ReportFilter {
19
+ /**
20
+ * A JSON representation of the configuration for this visualization
21
+ * @type {string}
22
+ * @memberof ReportFilter
23
+ */
24
+ config?: string;
19
25
  /**
20
26
  * How this filter connects to the data sources and columns
21
27
  * @type {Array<ReportFilterConnection>}
@@ -28,6 +34,12 @@ export interface ReportFilter {
28
34
  * @memberof ReportFilter
29
35
  */
30
36
  name?: string;
37
+ /**
38
+ * A JSON representation of the style configuration for this visualization
39
+ * @type {string}
40
+ * @memberof ReportFilter
41
+ */
42
+ styles?: string;
31
43
  /**
32
44
  * The timezone that the date range is querying on.
33
45
  * @type {string}
@@ -34,8 +34,10 @@ function ReportFilterFromJSONTyped(json, ignoreDiscriminator) {
34
34
  return json;
35
35
  }
36
36
  return {
37
+ 'config': !(0, runtime_1.exists)(json, 'config') ? undefined : json['config'],
37
38
  'connections': !(0, runtime_1.exists)(json, 'connections') ? undefined : (json['connections'].map(ReportFilterConnection_1.ReportFilterConnectionFromJSON)),
38
39
  'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
40
+ 'styles': !(0, runtime_1.exists)(json, 'styles') ? undefined : json['styles'],
39
41
  'timezone': !(0, runtime_1.exists)(json, 'timezone') ? undefined : json['timezone'],
40
42
  'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
41
43
  'uuid': !(0, runtime_1.exists)(json, 'uuid') ? undefined : json['uuid'],
@@ -51,8 +53,10 @@ function ReportFilterToJSON(value) {
51
53
  return null;
52
54
  }
53
55
  return {
56
+ 'config': value.config,
54
57
  'connections': value.connections === undefined ? undefined : (value.connections.map(ReportFilterConnection_1.ReportFilterConnectionToJSON)),
55
58
  'name': value.name,
59
+ 'styles': value.styles,
56
60
  'timezone': value.timezone,
57
61
  'type': value.type,
58
62
  'uuid': value.uuid,
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ReportFilter } from './ReportFilter';
12
13
  import { ReportPageVisualization } from './ReportPageVisualization';
13
14
  /**
14
15
  *
@@ -16,6 +17,12 @@ import { ReportPageVisualization } from './ReportPageVisualization';
16
17
  * @interface ReportPage
17
18
  */
18
19
  export interface ReportPage {
20
+ /**
21
+ *
22
+ * @type {Array<ReportFilter>}
23
+ * @memberof ReportPage
24
+ */
25
+ filters?: Array<ReportFilter>;
19
26
  /**
20
27
  * Height of the report page in inches
21
28
  * @type {number}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ReportPageToJSON = exports.ReportPageFromJSONTyped = exports.ReportPageFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var ReportFilter_1 = require("./ReportFilter");
18
19
  var ReportPageVisualization_1 = require("./ReportPageVisualization");
19
20
  function ReportPageFromJSON(json) {
20
21
  return ReportPageFromJSONTyped(json, false);
@@ -25,6 +26,7 @@ function ReportPageFromJSONTyped(json, ignoreDiscriminator) {
25
26
  return json;
26
27
  }
27
28
  return {
29
+ 'filters': !(0, runtime_1.exists)(json, 'filters') ? undefined : (json['filters'].map(ReportFilter_1.ReportFilterFromJSON)),
28
30
  'height': !(0, runtime_1.exists)(json, 'height') ? undefined : json['height'],
29
31
  'title': !(0, runtime_1.exists)(json, 'title') ? undefined : json['title'],
30
32
  'visualizations': !(0, runtime_1.exists)(json, 'visualizations') ? undefined : (json['visualizations'].map(ReportPageVisualization_1.ReportPageVisualizationFromJSON)),
@@ -40,6 +42,7 @@ function ReportPageToJSON(value) {
40
42
  return null;
41
43
  }
42
44
  return {
45
+ 'filters': value.filters === undefined ? undefined : (value.filters.map(ReportFilter_1.ReportFilterToJSON)),
43
46
  'height': value.height,
44
47
  'title': value.title,
45
48
  'visualizations': value.visualizations === undefined ? undefined : (value.visualizations.map(ReportPageVisualization_1.ReportPageVisualizationToJSON)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.147",
3
+ "version": "4.0.148",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -19,12 +19,6 @@ import {
19
19
  ReportDataSourceFromJSONTyped,
20
20
  ReportDataSourceToJSON,
21
21
  } from './ReportDataSource';
22
- import {
23
- ReportFilter,
24
- ReportFilterFromJSON,
25
- ReportFilterFromJSONTyped,
26
- ReportFilterToJSON,
27
- } from './ReportFilter';
28
22
  import {
29
23
  ReportPage,
30
24
  ReportPageFromJSON,
@@ -62,12 +56,6 @@ export interface Report {
62
56
  * @memberof Report
63
57
  */
64
58
  default_project_id?: string;
65
- /**
66
- *
67
- * @type {Array<ReportFilter>}
68
- * @memberof Report
69
- */
70
- filters?: Array<ReportFilter>;
71
59
  /**
72
60
  *
73
61
  * @type {string}
@@ -127,7 +115,6 @@ export function ReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): Re
127
115
  'data_sources': !exists(json, 'data_sources') ? undefined : ((json['data_sources'] as Array<any>).map(ReportDataSourceFromJSON)),
128
116
  'default_dataset_id': !exists(json, 'default_dataset_id') ? undefined : json['default_dataset_id'],
129
117
  'default_project_id': !exists(json, 'default_project_id') ? undefined : json['default_project_id'],
130
- 'filters': !exists(json, 'filters') ? undefined : ((json['filters'] as Array<any>).map(ReportFilterFromJSON)),
131
118
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
132
119
  'name': !exists(json, 'name') ? undefined : json['name'],
133
120
  'pages': !exists(json, 'pages') ? undefined : ((json['pages'] as Array<any>).map(ReportPageFromJSON)),
@@ -149,7 +136,6 @@ export function ReportToJSON(value?: Report | null): any {
149
136
  'data_sources': value.data_sources === undefined ? undefined : ((value.data_sources as Array<any>).map(ReportDataSourceToJSON)),
150
137
  'default_dataset_id': value.default_dataset_id,
151
138
  'default_project_id': value.default_project_id,
152
- 'filters': value.filters === undefined ? undefined : ((value.filters as Array<any>).map(ReportFilterToJSON)),
153
139
  'merchant_id': value.merchant_id,
154
140
  'name': value.name,
155
141
  'pages': value.pages === undefined ? undefined : ((value.pages as Array<any>).map(ReportPageToJSON)),
@@ -26,6 +26,12 @@ import {
26
26
  * @interface ReportFilter
27
27
  */
28
28
  export interface ReportFilter {
29
+ /**
30
+ * A JSON representation of the configuration for this visualization
31
+ * @type {string}
32
+ * @memberof ReportFilter
33
+ */
34
+ config?: string;
29
35
  /**
30
36
  * How this filter connects to the data sources and columns
31
37
  * @type {Array<ReportFilterConnection>}
@@ -38,6 +44,12 @@ export interface ReportFilter {
38
44
  * @memberof ReportFilter
39
45
  */
40
46
  name?: string;
47
+ /**
48
+ * A JSON representation of the style configuration for this visualization
49
+ * @type {string}
50
+ * @memberof ReportFilter
51
+ */
52
+ styles?: string;
41
53
  /**
42
54
  * The timezone that the date range is querying on.
43
55
  * @type {string}
@@ -87,8 +99,10 @@ export function ReportFilterFromJSONTyped(json: any, ignoreDiscriminator: boolea
87
99
  }
88
100
  return {
89
101
 
102
+ 'config': !exists(json, 'config') ? undefined : json['config'],
90
103
  'connections': !exists(json, 'connections') ? undefined : ((json['connections'] as Array<any>).map(ReportFilterConnectionFromJSON)),
91
104
  'name': !exists(json, 'name') ? undefined : json['name'],
105
+ 'styles': !exists(json, 'styles') ? undefined : json['styles'],
92
106
  'timezone': !exists(json, 'timezone') ? undefined : json['timezone'],
93
107
  'type': !exists(json, 'type') ? undefined : json['type'],
94
108
  'uuid': !exists(json, 'uuid') ? undefined : json['uuid'],
@@ -105,8 +119,10 @@ export function ReportFilterToJSON(value?: ReportFilter | null): any {
105
119
  }
106
120
  return {
107
121
 
122
+ 'config': value.config,
108
123
  'connections': value.connections === undefined ? undefined : ((value.connections as Array<any>).map(ReportFilterConnectionToJSON)),
109
124
  'name': value.name,
125
+ 'styles': value.styles,
110
126
  'timezone': value.timezone,
111
127
  'type': value.type,
112
128
  'uuid': value.uuid,
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ ReportFilter,
18
+ ReportFilterFromJSON,
19
+ ReportFilterFromJSONTyped,
20
+ ReportFilterToJSON,
21
+ } from './ReportFilter';
16
22
  import {
17
23
  ReportPageVisualization,
18
24
  ReportPageVisualizationFromJSON,
@@ -26,6 +32,12 @@ import {
26
32
  * @interface ReportPage
27
33
  */
28
34
  export interface ReportPage {
35
+ /**
36
+ *
37
+ * @type {Array<ReportFilter>}
38
+ * @memberof ReportPage
39
+ */
40
+ filters?: Array<ReportFilter>;
29
41
  /**
30
42
  * Height of the report page in inches
31
43
  * @type {number}
@@ -62,6 +74,7 @@ export function ReportPageFromJSONTyped(json: any, ignoreDiscriminator: boolean)
62
74
  }
63
75
  return {
64
76
 
77
+ 'filters': !exists(json, 'filters') ? undefined : ((json['filters'] as Array<any>).map(ReportFilterFromJSON)),
65
78
  'height': !exists(json, 'height') ? undefined : json['height'],
66
79
  'title': !exists(json, 'title') ? undefined : json['title'],
67
80
  'visualizations': !exists(json, 'visualizations') ? undefined : ((json['visualizations'] as Array<any>).map(ReportPageVisualizationFromJSON)),
@@ -78,6 +91,7 @@ export function ReportPageToJSON(value?: ReportPage | null): any {
78
91
  }
79
92
  return {
80
93
 
94
+ 'filters': value.filters === undefined ? undefined : ((value.filters as Array<any>).map(ReportFilterToJSON)),
81
95
  'height': value.height,
82
96
  'title': value.title,
83
97
  'visualizations': value.visualizations === undefined ? undefined : ((value.visualizations as Array<any>).map(ReportPageVisualizationToJSON)),