ultracart_rest_api_v2_typescript 4.0.142 → 4.0.143

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.
@@ -658,6 +658,7 @@ src/models/ReportDataSetQuery.ts
658
658
  src/models/ReportDataSetResponse.ts
659
659
  src/models/ReportDataSetRow.ts
660
660
  src/models/ReportDataSetSchema.ts
661
+ src/models/ReportDataSetSummary.ts
661
662
  src/models/ReportDataSource.ts
662
663
  src/models/ReportDataSourceSchema.ts
663
664
  src/models/ReportExecuteQueriesRequest.ts
@@ -668,6 +669,7 @@ src/models/ReportPageVisualization.ts
668
669
  src/models/ReportPageVisualizationDimension.ts
669
670
  src/models/ReportPageVisualizationMetric.ts
670
671
  src/models/ReportResponse.ts
672
+ src/models/ReportWebsocketEvent.ts
671
673
  src/models/ReportsResponse.ts
672
674
  src/models/ResponseMetadata.ts
673
675
  src/models/ResultSet.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.142
1
+ ## ultracart_rest_api_v2_typescript@4.0.143
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.142 --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.143 --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.143 | 03/22/2023 | data warehouse internal dev |
57
58
  | 4.0.142 | 03/22/2023 | dw initial framework |
58
59
  | 4.0.141 | 03/22/2023 | order api - refundable response added manual_because_multiple_charges boolean field |
59
60
  | 4.0.140 | 03/21/2023 | order api - new stage named Hold |
@@ -0,0 +1,73 @@
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 { ReportDataSetSchema } from './ReportDataSetSchema';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ReportDataSetSummary
17
+ */
18
+ export interface ReportDataSetSummary {
19
+ /**
20
+ * A unique identifier assigned to the data set that is returned.
21
+ * @type {string}
22
+ * @memberof ReportDataSetSummary
23
+ */
24
+ data_set_uuid?: string;
25
+ /**
26
+ * Error message if the query failed.
27
+ * @type {string}
28
+ * @memberof ReportDataSetSummary
29
+ */
30
+ error_message?: string;
31
+ /**
32
+ * An identifier that can be used to help match up the returned data set
33
+ * @type {string}
34
+ * @memberof ReportDataSetSummary
35
+ */
36
+ for_object_id?: string;
37
+ /**
38
+ * The type of object this data set is for
39
+ * @type {string}
40
+ * @memberof ReportDataSetSummary
41
+ */
42
+ for_object_type?: ReportDataSetSummaryForObjectTypeEnum;
43
+ /**
44
+ * The total number of results
45
+ * @type {number}
46
+ * @memberof ReportDataSetSummary
47
+ */
48
+ max_results?: number;
49
+ /**
50
+ * The schema associated with the data set.
51
+ * @type {Array<ReportDataSetSchema>}
52
+ * @memberof ReportDataSetSummary
53
+ */
54
+ schema?: Array<ReportDataSetSchema>;
55
+ /**
56
+ * Any other data that needs to be returned with the response to help the UI
57
+ * @type {string}
58
+ * @memberof ReportDataSetSummary
59
+ */
60
+ user_data?: string;
61
+ }
62
+ /**
63
+ * @export
64
+ */
65
+ export declare const ReportDataSetSummaryForObjectTypeEnum: {
66
+ readonly Schema: "schema";
67
+ readonly Filter: "filter";
68
+ readonly Visualization: "visualization";
69
+ };
70
+ export type ReportDataSetSummaryForObjectTypeEnum = typeof ReportDataSetSummaryForObjectTypeEnum[keyof typeof ReportDataSetSummaryForObjectTypeEnum];
71
+ export declare function ReportDataSetSummaryFromJSON(json: any): ReportDataSetSummary;
72
+ export declare function ReportDataSetSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportDataSetSummary;
73
+ export declare function ReportDataSetSummaryToJSON(value?: ReportDataSetSummary | null): any;
@@ -0,0 +1,63 @@
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.ReportDataSetSummaryToJSON = exports.ReportDataSetSummaryFromJSONTyped = exports.ReportDataSetSummaryFromJSON = exports.ReportDataSetSummaryForObjectTypeEnum = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var ReportDataSetSchema_1 = require("./ReportDataSetSchema");
19
+ /**
20
+ * @export
21
+ */
22
+ exports.ReportDataSetSummaryForObjectTypeEnum = {
23
+ Schema: 'schema',
24
+ Filter: 'filter',
25
+ Visualization: 'visualization'
26
+ };
27
+ function ReportDataSetSummaryFromJSON(json) {
28
+ return ReportDataSetSummaryFromJSONTyped(json, false);
29
+ }
30
+ exports.ReportDataSetSummaryFromJSON = ReportDataSetSummaryFromJSON;
31
+ function ReportDataSetSummaryFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data_set_uuid': !(0, runtime_1.exists)(json, 'data_set_uuid') ? undefined : json['data_set_uuid'],
37
+ 'error_message': !(0, runtime_1.exists)(json, 'error_message') ? undefined : json['error_message'],
38
+ 'for_object_id': !(0, runtime_1.exists)(json, 'for_object_id') ? undefined : json['for_object_id'],
39
+ 'for_object_type': !(0, runtime_1.exists)(json, 'for_object_type') ? undefined : json['for_object_type'],
40
+ 'max_results': !(0, runtime_1.exists)(json, 'max_results') ? undefined : json['max_results'],
41
+ 'schema': !(0, runtime_1.exists)(json, 'schema') ? undefined : (json['schema'].map(ReportDataSetSchema_1.ReportDataSetSchemaFromJSON)),
42
+ 'user_data': !(0, runtime_1.exists)(json, 'user_data') ? undefined : json['user_data'],
43
+ };
44
+ }
45
+ exports.ReportDataSetSummaryFromJSONTyped = ReportDataSetSummaryFromJSONTyped;
46
+ function ReportDataSetSummaryToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'data_set_uuid': value.data_set_uuid,
55
+ 'error_message': value.error_message,
56
+ 'for_object_id': value.for_object_id,
57
+ 'for_object_type': value.for_object_type,
58
+ 'max_results': value.max_results,
59
+ 'schema': value.schema === undefined ? undefined : (value.schema.map(ReportDataSetSchema_1.ReportDataSetSchemaToJSON)),
60
+ 'user_data': value.user_data,
61
+ };
62
+ }
63
+ exports.ReportDataSetSummaryToJSON = ReportDataSetSummaryToJSON;
@@ -0,0 +1,42 @@
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 { ReportDataSetSummary } from './ReportDataSetSummary';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ReportWebsocketEvent
17
+ */
18
+ export interface ReportWebsocketEvent {
19
+ /**
20
+ * Event type
21
+ * @type {string}
22
+ * @memberof ReportWebsocketEvent
23
+ */
24
+ event_type?: ReportWebsocketEventEventTypeEnum;
25
+ /**
26
+ *
27
+ * @type {ReportDataSetSummary}
28
+ * @memberof ReportWebsocketEvent
29
+ */
30
+ query_completion?: ReportDataSetSummary;
31
+ }
32
+ /**
33
+ * @export
34
+ */
35
+ export declare const ReportWebsocketEventEventTypeEnum: {
36
+ readonly Ping: "ping";
37
+ readonly QueryCompletion: "query completion";
38
+ };
39
+ export type ReportWebsocketEventEventTypeEnum = typeof ReportWebsocketEventEventTypeEnum[keyof typeof ReportWebsocketEventEventTypeEnum];
40
+ export declare function ReportWebsocketEventFromJSON(json: any): ReportWebsocketEvent;
41
+ export declare function ReportWebsocketEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportWebsocketEvent;
42
+ export declare function ReportWebsocketEventToJSON(value?: ReportWebsocketEvent | null): any;
@@ -0,0 +1,52 @@
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.ReportWebsocketEventToJSON = exports.ReportWebsocketEventFromJSONTyped = exports.ReportWebsocketEventFromJSON = exports.ReportWebsocketEventEventTypeEnum = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var ReportDataSetSummary_1 = require("./ReportDataSetSummary");
19
+ /**
20
+ * @export
21
+ */
22
+ exports.ReportWebsocketEventEventTypeEnum = {
23
+ Ping: 'ping',
24
+ QueryCompletion: 'query completion'
25
+ };
26
+ function ReportWebsocketEventFromJSON(json) {
27
+ return ReportWebsocketEventFromJSONTyped(json, false);
28
+ }
29
+ exports.ReportWebsocketEventFromJSON = ReportWebsocketEventFromJSON;
30
+ function ReportWebsocketEventFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'event_type': !(0, runtime_1.exists)(json, 'event_type') ? undefined : json['event_type'],
36
+ 'query_completion': !(0, runtime_1.exists)(json, 'query_completion') ? undefined : (0, ReportDataSetSummary_1.ReportDataSetSummaryFromJSON)(json['query_completion']),
37
+ };
38
+ }
39
+ exports.ReportWebsocketEventFromJSONTyped = ReportWebsocketEventFromJSONTyped;
40
+ function ReportWebsocketEventToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'event_type': value.event_type,
49
+ 'query_completion': (0, ReportDataSetSummary_1.ReportDataSetSummaryToJSON)(value.query_completion),
50
+ };
51
+ }
52
+ exports.ReportWebsocketEventToJSON = ReportWebsocketEventToJSON;
@@ -632,6 +632,7 @@ export * from './ReportDataSetQuery';
632
632
  export * from './ReportDataSetResponse';
633
633
  export * from './ReportDataSetRow';
634
634
  export * from './ReportDataSetSchema';
635
+ export * from './ReportDataSetSummary';
635
636
  export * from './ReportDataSource';
636
637
  export * from './ReportDataSourceSchema';
637
638
  export * from './ReportExecuteQueriesRequest';
@@ -642,6 +643,7 @@ export * from './ReportPageVisualization';
642
643
  export * from './ReportPageVisualizationDimension';
643
644
  export * from './ReportPageVisualizationMetric';
644
645
  export * from './ReportResponse';
646
+ export * from './ReportWebsocketEvent';
645
647
  export * from './ReportsResponse';
646
648
  export * from './ResponseMetadata';
647
649
  export * from './ResultSet';
@@ -650,6 +650,7 @@ __exportStar(require("./ReportDataSetQuery"), exports);
650
650
  __exportStar(require("./ReportDataSetResponse"), exports);
651
651
  __exportStar(require("./ReportDataSetRow"), exports);
652
652
  __exportStar(require("./ReportDataSetSchema"), exports);
653
+ __exportStar(require("./ReportDataSetSummary"), exports);
653
654
  __exportStar(require("./ReportDataSource"), exports);
654
655
  __exportStar(require("./ReportDataSourceSchema"), exports);
655
656
  __exportStar(require("./ReportExecuteQueriesRequest"), exports);
@@ -660,6 +661,7 @@ __exportStar(require("./ReportPageVisualization"), exports);
660
661
  __exportStar(require("./ReportPageVisualizationDimension"), exports);
661
662
  __exportStar(require("./ReportPageVisualizationMetric"), exports);
662
663
  __exportStar(require("./ReportResponse"), exports);
664
+ __exportStar(require("./ReportWebsocketEvent"), exports);
663
665
  __exportStar(require("./ReportsResponse"), exports);
664
666
  __exportStar(require("./ResponseMetadata"), exports);
665
667
  __exportStar(require("./ResultSet"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.142",
3
+ "version": "4.0.143",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -0,0 +1,123 @@
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
+ ReportDataSetSchema,
18
+ ReportDataSetSchemaFromJSON,
19
+ ReportDataSetSchemaFromJSONTyped,
20
+ ReportDataSetSchemaToJSON,
21
+ } from './ReportDataSetSchema';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ReportDataSetSummary
27
+ */
28
+ export interface ReportDataSetSummary {
29
+ /**
30
+ * A unique identifier assigned to the data set that is returned.
31
+ * @type {string}
32
+ * @memberof ReportDataSetSummary
33
+ */
34
+ data_set_uuid?: string;
35
+ /**
36
+ * Error message if the query failed.
37
+ * @type {string}
38
+ * @memberof ReportDataSetSummary
39
+ */
40
+ error_message?: string;
41
+ /**
42
+ * An identifier that can be used to help match up the returned data set
43
+ * @type {string}
44
+ * @memberof ReportDataSetSummary
45
+ */
46
+ for_object_id?: string;
47
+ /**
48
+ * The type of object this data set is for
49
+ * @type {string}
50
+ * @memberof ReportDataSetSummary
51
+ */
52
+ for_object_type?: ReportDataSetSummaryForObjectTypeEnum;
53
+ /**
54
+ * The total number of results
55
+ * @type {number}
56
+ * @memberof ReportDataSetSummary
57
+ */
58
+ max_results?: number;
59
+ /**
60
+ * The schema associated with the data set.
61
+ * @type {Array<ReportDataSetSchema>}
62
+ * @memberof ReportDataSetSummary
63
+ */
64
+ schema?: Array<ReportDataSetSchema>;
65
+ /**
66
+ * Any other data that needs to be returned with the response to help the UI
67
+ * @type {string}
68
+ * @memberof ReportDataSetSummary
69
+ */
70
+ user_data?: string;
71
+ }
72
+
73
+
74
+ /**
75
+ * @export
76
+ */
77
+ export const ReportDataSetSummaryForObjectTypeEnum = {
78
+ Schema: 'schema',
79
+ Filter: 'filter',
80
+ Visualization: 'visualization'
81
+ } as const;
82
+ export type ReportDataSetSummaryForObjectTypeEnum = typeof ReportDataSetSummaryForObjectTypeEnum[keyof typeof ReportDataSetSummaryForObjectTypeEnum];
83
+
84
+
85
+ export function ReportDataSetSummaryFromJSON(json: any): ReportDataSetSummary {
86
+ return ReportDataSetSummaryFromJSONTyped(json, false);
87
+ }
88
+
89
+ export function ReportDataSetSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportDataSetSummary {
90
+ if ((json === undefined) || (json === null)) {
91
+ return json;
92
+ }
93
+ return {
94
+
95
+ 'data_set_uuid': !exists(json, 'data_set_uuid') ? undefined : json['data_set_uuid'],
96
+ 'error_message': !exists(json, 'error_message') ? undefined : json['error_message'],
97
+ 'for_object_id': !exists(json, 'for_object_id') ? undefined : json['for_object_id'],
98
+ 'for_object_type': !exists(json, 'for_object_type') ? undefined : json['for_object_type'],
99
+ 'max_results': !exists(json, 'max_results') ? undefined : json['max_results'],
100
+ 'schema': !exists(json, 'schema') ? undefined : ((json['schema'] as Array<any>).map(ReportDataSetSchemaFromJSON)),
101
+ 'user_data': !exists(json, 'user_data') ? undefined : json['user_data'],
102
+ };
103
+ }
104
+
105
+ export function ReportDataSetSummaryToJSON(value?: ReportDataSetSummary | null): any {
106
+ if (value === undefined) {
107
+ return undefined;
108
+ }
109
+ if (value === null) {
110
+ return null;
111
+ }
112
+ return {
113
+
114
+ 'data_set_uuid': value.data_set_uuid,
115
+ 'error_message': value.error_message,
116
+ 'for_object_id': value.for_object_id,
117
+ 'for_object_type': value.for_object_type,
118
+ 'max_results': value.max_results,
119
+ 'schema': value.schema === undefined ? undefined : ((value.schema as Array<any>).map(ReportDataSetSchemaToJSON)),
120
+ 'user_data': value.user_data,
121
+ };
122
+ }
123
+
@@ -0,0 +1,82 @@
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
+ ReportDataSetSummary,
18
+ ReportDataSetSummaryFromJSON,
19
+ ReportDataSetSummaryFromJSONTyped,
20
+ ReportDataSetSummaryToJSON,
21
+ } from './ReportDataSetSummary';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ReportWebsocketEvent
27
+ */
28
+ export interface ReportWebsocketEvent {
29
+ /**
30
+ * Event type
31
+ * @type {string}
32
+ * @memberof ReportWebsocketEvent
33
+ */
34
+ event_type?: ReportWebsocketEventEventTypeEnum;
35
+ /**
36
+ *
37
+ * @type {ReportDataSetSummary}
38
+ * @memberof ReportWebsocketEvent
39
+ */
40
+ query_completion?: ReportDataSetSummary;
41
+ }
42
+
43
+
44
+ /**
45
+ * @export
46
+ */
47
+ export const ReportWebsocketEventEventTypeEnum = {
48
+ Ping: 'ping',
49
+ QueryCompletion: 'query completion'
50
+ } as const;
51
+ export type ReportWebsocketEventEventTypeEnum = typeof ReportWebsocketEventEventTypeEnum[keyof typeof ReportWebsocketEventEventTypeEnum];
52
+
53
+
54
+ export function ReportWebsocketEventFromJSON(json: any): ReportWebsocketEvent {
55
+ return ReportWebsocketEventFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function ReportWebsocketEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportWebsocketEvent {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'event_type': !exists(json, 'event_type') ? undefined : json['event_type'],
65
+ 'query_completion': !exists(json, 'query_completion') ? undefined : ReportDataSetSummaryFromJSON(json['query_completion']),
66
+ };
67
+ }
68
+
69
+ export function ReportWebsocketEventToJSON(value?: ReportWebsocketEvent | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'event_type': value.event_type,
79
+ 'query_completion': ReportDataSetSummaryToJSON(value.query_completion),
80
+ };
81
+ }
82
+
@@ -634,6 +634,7 @@ export * from './ReportDataSetQuery';
634
634
  export * from './ReportDataSetResponse';
635
635
  export * from './ReportDataSetRow';
636
636
  export * from './ReportDataSetSchema';
637
+ export * from './ReportDataSetSummary';
637
638
  export * from './ReportDataSource';
638
639
  export * from './ReportDataSourceSchema';
639
640
  export * from './ReportExecuteQueriesRequest';
@@ -644,6 +645,7 @@ export * from './ReportPageVisualization';
644
645
  export * from './ReportPageVisualizationDimension';
645
646
  export * from './ReportPageVisualizationMetric';
646
647
  export * from './ReportResponse';
648
+ export * from './ReportWebsocketEvent';
647
649
  export * from './ReportsResponse';
648
650
  export * from './ResponseMetadata';
649
651
  export * from './ResultSet';