ultracart_rest_api_v2_typescript 4.0.147 → 4.0.149

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.
@@ -668,6 +668,7 @@ src/models/ReportExecuteQueriesRequest.ts
668
668
  src/models/ReportFilter.ts
669
669
  src/models/ReportFilterConnection.ts
670
670
  src/models/ReportPage.ts
671
+ src/models/ReportPageFilter.ts
671
672
  src/models/ReportPageVisualization.ts
672
673
  src/models/ReportPageVisualizationDimension.ts
673
674
  src/models/ReportPageVisualizationMetric.ts
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.149
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.149 --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.149 | 04/19/2023 | internal development - data warehouse |
58
+ | 4.0.148 | 04/19/2023 | internal dev - data warehouse |
57
59
  | 4.0.147 | 04/17/2023 | OrderPaymentTransaction - expose the transaction id |
58
60
  | 4.0.146 | 04/11/2023 | missing sezzle payment constant |
59
61
  | 4.0.145 | 04/10/2023 | data warehouse internal dev |
@@ -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 { ReportPageFilter } from './ReportPageFilter';
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<ReportPageFilter>}
23
+ * @memberof ReportPage
24
+ */
25
+ filters?: Array<ReportPageFilter>;
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 ReportPageFilter_1 = require("./ReportPageFilter");
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(ReportPageFilter_1.ReportPageFilterFromJSON)),
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(ReportPageFilter_1.ReportPageFilterToJSON)),
43
46
  'height': value.height,
44
47
  'title': value.title,
45
48
  'visualizations': value.visualizations === undefined ? undefined : (value.visualizations.map(ReportPageVisualization_1.ReportPageVisualizationToJSON)),
@@ -0,0 +1,45 @@
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 ReportPageFilter
16
+ */
17
+ export interface ReportPageFilter {
18
+ /**
19
+ * A JSON representation of the configuration for this visualization
20
+ * @type {string}
21
+ * @memberof ReportPageFilter
22
+ */
23
+ config?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ReportPageFilter
28
+ */
29
+ name?: string;
30
+ /**
31
+ * A JSON representation of the style configuration for this visualization
32
+ * @type {string}
33
+ * @memberof ReportPageFilter
34
+ */
35
+ styles?: string;
36
+ /**
37
+ * Unique UUID assigned to the filter. Assists when returning values that the filter can use.
38
+ * @type {string}
39
+ * @memberof ReportPageFilter
40
+ */
41
+ uuid?: string;
42
+ }
43
+ export declare function ReportPageFilterFromJSON(json: any): ReportPageFilter;
44
+ export declare function ReportPageFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportPageFilter;
45
+ export declare function ReportPageFilterToJSON(value?: ReportPageFilter | null): any;
@@ -0,0 +1,48 @@
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.ReportPageFilterToJSON = exports.ReportPageFilterFromJSONTyped = exports.ReportPageFilterFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function ReportPageFilterFromJSON(json) {
19
+ return ReportPageFilterFromJSONTyped(json, false);
20
+ }
21
+ exports.ReportPageFilterFromJSON = ReportPageFilterFromJSON;
22
+ function ReportPageFilterFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'config': !(0, runtime_1.exists)(json, 'config') ? undefined : json['config'],
28
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
29
+ 'styles': !(0, runtime_1.exists)(json, 'styles') ? undefined : json['styles'],
30
+ 'uuid': !(0, runtime_1.exists)(json, 'uuid') ? undefined : json['uuid'],
31
+ };
32
+ }
33
+ exports.ReportPageFilterFromJSONTyped = ReportPageFilterFromJSONTyped;
34
+ function ReportPageFilterToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'config': value.config,
43
+ 'name': value.name,
44
+ 'styles': value.styles,
45
+ 'uuid': value.uuid,
46
+ };
47
+ }
48
+ exports.ReportPageFilterToJSON = ReportPageFilterToJSON;
@@ -642,6 +642,7 @@ export * from './ReportExecuteQueriesRequest';
642
642
  export * from './ReportFilter';
643
643
  export * from './ReportFilterConnection';
644
644
  export * from './ReportPage';
645
+ export * from './ReportPageFilter';
645
646
  export * from './ReportPageVisualization';
646
647
  export * from './ReportPageVisualizationDimension';
647
648
  export * from './ReportPageVisualizationMetric';
@@ -660,6 +660,7 @@ __exportStar(require("./ReportExecuteQueriesRequest"), exports);
660
660
  __exportStar(require("./ReportFilter"), exports);
661
661
  __exportStar(require("./ReportFilterConnection"), exports);
662
662
  __exportStar(require("./ReportPage"), exports);
663
+ __exportStar(require("./ReportPageFilter"), exports);
663
664
  __exportStar(require("./ReportPageVisualization"), exports);
664
665
  __exportStar(require("./ReportPageVisualizationDimension"), exports);
665
666
  __exportStar(require("./ReportPageVisualizationMetric"), exports);
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.149",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -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
+ ReportPageFilter,
18
+ ReportPageFilterFromJSON,
19
+ ReportPageFilterFromJSONTyped,
20
+ ReportPageFilterToJSON,
21
+ } from './ReportPageFilter';
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<ReportPageFilter>}
38
+ * @memberof ReportPage
39
+ */
40
+ filters?: Array<ReportPageFilter>;
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(ReportPageFilterFromJSON)),
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(ReportPageFilterToJSON)),
81
95
  'height': value.height,
82
96
  'title': value.title,
83
97
  'visualizations': value.visualizations === undefined ? undefined : ((value.visualizations as Array<any>).map(ReportPageVisualizationToJSON)),
@@ -0,0 +1,80 @@
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 ReportPageFilter
20
+ */
21
+ export interface ReportPageFilter {
22
+ /**
23
+ * A JSON representation of the configuration for this visualization
24
+ * @type {string}
25
+ * @memberof ReportPageFilter
26
+ */
27
+ config?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ReportPageFilter
32
+ */
33
+ name?: string;
34
+ /**
35
+ * A JSON representation of the style configuration for this visualization
36
+ * @type {string}
37
+ * @memberof ReportPageFilter
38
+ */
39
+ styles?: string;
40
+ /**
41
+ * Unique UUID assigned to the filter. Assists when returning values that the filter can use.
42
+ * @type {string}
43
+ * @memberof ReportPageFilter
44
+ */
45
+ uuid?: string;
46
+ }
47
+
48
+ export function ReportPageFilterFromJSON(json: any): ReportPageFilter {
49
+ return ReportPageFilterFromJSONTyped(json, false);
50
+ }
51
+
52
+ export function ReportPageFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportPageFilter {
53
+ if ((json === undefined) || (json === null)) {
54
+ return json;
55
+ }
56
+ return {
57
+
58
+ 'config': !exists(json, 'config') ? undefined : json['config'],
59
+ 'name': !exists(json, 'name') ? undefined : json['name'],
60
+ 'styles': !exists(json, 'styles') ? undefined : json['styles'],
61
+ 'uuid': !exists(json, 'uuid') ? undefined : json['uuid'],
62
+ };
63
+ }
64
+
65
+ export function ReportPageFilterToJSON(value?: ReportPageFilter | null): any {
66
+ if (value === undefined) {
67
+ return undefined;
68
+ }
69
+ if (value === null) {
70
+ return null;
71
+ }
72
+ return {
73
+
74
+ 'config': value.config,
75
+ 'name': value.name,
76
+ 'styles': value.styles,
77
+ 'uuid': value.uuid,
78
+ };
79
+ }
80
+
@@ -644,6 +644,7 @@ export * from './ReportExecuteQueriesRequest';
644
644
  export * from './ReportFilter';
645
645
  export * from './ReportFilterConnection';
646
646
  export * from './ReportPage';
647
+ export * from './ReportPageFilter';
647
648
  export * from './ReportPageVisualization';
648
649
  export * from './ReportPageVisualizationDimension';
649
650
  export * from './ReportPageVisualizationMetric';