ultracart_rest_api_v2_typescript 4.0.85-RC → 4.0.86-RC

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.
@@ -161,6 +161,7 @@ src/models/ConversationStartRequest.ts
161
161
  src/models/ConversationStartResponse.ts
162
162
  src/models/ConversationSummary.ts
163
163
  src/models/ConversationTwilioAccount.ts
164
+ src/models/ConversationWebchatContext.ts
164
165
  src/models/ConversationWebchatQueueStatus.ts
165
166
  src/models/ConversationWebchatQueueStatusAgent.ts
166
167
  src/models/ConversationWebchatQueueStatusQueueEntry.ts
@@ -412,6 +413,10 @@ src/models/GroupResponse.ts
412
413
  src/models/GroupUserMembership.ts
413
414
  src/models/GroupsResponse.ts
414
415
  src/models/HTTPHeader.ts
416
+ src/models/HitPageView.ts
417
+ src/models/HitPageViewMetaData.ts
418
+ src/models/HitSessionStart.ts
419
+ src/models/HitSessionUtm.ts
415
420
  src/models/IntegrationLog.ts
416
421
  src/models/IntegrationLogFile.ts
417
422
  src/models/IntegrationLogLog.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.85-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.86-RC
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.85-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.86-RC --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.86-RC | 11/21/2022 | conversation context method |
57
58
  | 4.0.85-RC | 11/21/2022 | adjusted conversation event model |
58
59
  | 4.0.84-RC | 11/15/2022 | conversation methods bug fix |
59
60
  | 4.0.83-RC | 11/15/2022 | conversations - enw events for add coupon and items |
@@ -10,11 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { ConversationAgentAuthResponse, ConversationMessagesResponse, ConversationMultimediaUploadUrlResponse, ConversationResponse, ConversationStartRequest, ConversationStartResponse, ConversationWebchatQueueStatusUpdateRequest, ConversationWebchatQueueStatusesResponse, ConversationsResponse } from '../models';
13
+ import { ConversationAgentAuthResponse, ConversationMessagesResponse, ConversationMultimediaUploadUrlResponse, ConversationResponse, ConversationStartRequest, ConversationStartResponse, ConversationWebchatContext, ConversationWebchatQueueStatusUpdateRequest, ConversationWebchatQueueStatusesResponse, ConversationsResponse } from '../models';
14
14
  export interface GetConversationRequest {
15
15
  conversationUuid: string;
16
16
  limit?: number;
17
17
  }
18
+ export interface GetConversationContextRequest {
19
+ conversationUuid: string;
20
+ }
18
21
  export interface GetConversationMessagesRequest {
19
22
  conversationUuid: string;
20
23
  since: number;
@@ -90,6 +93,20 @@ export interface ConversationApiInterface {
90
93
  * Retrieve a conversation
91
94
  */
92
95
  getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationResponse>;
96
+ /**
97
+ * Get a webchat conversation context
98
+ * @summary Get a webchat conversation context
99
+ * @param {string} conversationUuid
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ * @memberof ConversationApiInterface
103
+ */
104
+ getConversationContextRaw(requestParameters: GetConversationContextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationWebchatContext>>;
105
+ /**
106
+ * Get a webchat conversation context
107
+ * Get a webchat conversation context
108
+ */
109
+ getConversationContext(requestParameters: GetConversationContextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationWebchatContext>;
93
110
  /**
94
111
  * Retrieve conversation messages since a particular time
95
112
  * @summary Retrieve conversation messages
@@ -242,6 +259,16 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
242
259
  * Retrieve a conversation
243
260
  */
244
261
  getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationResponse>;
262
+ /**
263
+ * Get a webchat conversation context
264
+ * Get a webchat conversation context
265
+ */
266
+ getConversationContextRaw(requestParameters: GetConversationContextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationWebchatContext>>;
267
+ /**
268
+ * Get a webchat conversation context
269
+ * Get a webchat conversation context
270
+ */
271
+ getConversationContext(requestParameters: GetConversationContextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationWebchatContext>;
245
272
  /**
246
273
  * Retrieve conversation messages since a particular time
247
274
  * Retrieve conversation messages
@@ -247,6 +247,65 @@ var ConversationApi = /** @class */ (function (_super) {
247
247
  });
248
248
  });
249
249
  };
250
+ /**
251
+ * Get a webchat conversation context
252
+ * Get a webchat conversation context
253
+ */
254
+ ConversationApi.prototype.getConversationContextRaw = function (requestParameters, initOverrides) {
255
+ return __awaiter(this, void 0, void 0, function () {
256
+ var queryParameters, headerParameters, _a, _b, response;
257
+ return __generator(this, function (_c) {
258
+ switch (_c.label) {
259
+ case 0:
260
+ if (requestParameters.conversationUuid === null || requestParameters.conversationUuid === undefined) {
261
+ throw new runtime.RequiredError('conversationUuid', 'Required parameter requestParameters.conversationUuid was null or undefined when calling getConversationContext.');
262
+ }
263
+ queryParameters = {};
264
+ headerParameters = {};
265
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
266
+ // oauth required
267
+ _a = headerParameters;
268
+ _b = "Authorization";
269
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["conversation_write"])];
270
+ case 1:
271
+ // oauth required
272
+ _a[_b] = _c.sent();
273
+ _c.label = 2;
274
+ case 2:
275
+ if (this.configuration && this.configuration.apiKey) {
276
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
277
+ }
278
+ return [4 /*yield*/, this.request({
279
+ path: "/conversation/conversations/{conversation_uuid}/context".replace("{".concat("conversation_uuid", "}"), encodeURIComponent(String(requestParameters.conversationUuid))),
280
+ method: 'PUT',
281
+ headers: headerParameters,
282
+ query: queryParameters,
283
+ }, initOverrides)];
284
+ case 3:
285
+ response = _c.sent();
286
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationWebchatContextFromJSON)(jsonValue); })];
287
+ }
288
+ });
289
+ });
290
+ };
291
+ /**
292
+ * Get a webchat conversation context
293
+ * Get a webchat conversation context
294
+ */
295
+ ConversationApi.prototype.getConversationContext = function (requestParameters, initOverrides) {
296
+ return __awaiter(this, void 0, void 0, function () {
297
+ var response;
298
+ return __generator(this, function (_a) {
299
+ switch (_a.label) {
300
+ case 0: return [4 /*yield*/, this.getConversationContextRaw(requestParameters, initOverrides)];
301
+ case 1:
302
+ response = _a.sent();
303
+ return [4 /*yield*/, response.value()];
304
+ case 2: return [2 /*return*/, _a.sent()];
305
+ }
306
+ });
307
+ });
308
+ };
250
309
  /**
251
310
  * Retrieve conversation messages since a particular time
252
311
  * Retrieve conversation messages
@@ -0,0 +1,55 @@
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 { Cart } from './Cart';
13
+ import { HitPageView } from './HitPageView';
14
+ import { HitSessionStart } from './HitSessionStart';
15
+ import { HitSessionUtm } from './HitSessionUtm';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ConversationWebchatContext
20
+ */
21
+ export interface ConversationWebchatContext {
22
+ /**
23
+ *
24
+ * @type {Cart}
25
+ * @memberof ConversationWebchatContext
26
+ */
27
+ cart?: Cart;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ConversationWebchatContext
32
+ */
33
+ current_url?: string;
34
+ /**
35
+ *
36
+ * @type {Array<HitPageView>}
37
+ * @memberof ConversationWebchatContext
38
+ */
39
+ page_view?: Array<HitPageView>;
40
+ /**
41
+ *
42
+ * @type {HitSessionStart}
43
+ * @memberof ConversationWebchatContext
44
+ */
45
+ session_start?: HitSessionStart;
46
+ /**
47
+ *
48
+ * @type {HitSessionUtm}
49
+ * @memberof ConversationWebchatContext
50
+ */
51
+ session_utm?: HitSessionUtm;
52
+ }
53
+ export declare function ConversationWebchatContextFromJSON(json: any): ConversationWebchatContext;
54
+ export declare function ConversationWebchatContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationWebchatContext;
55
+ export declare function ConversationWebchatContextToJSON(value?: ConversationWebchatContext | null): any;
@@ -0,0 +1,54 @@
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.ConversationWebchatContextToJSON = exports.ConversationWebchatContextFromJSONTyped = exports.ConversationWebchatContextFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var Cart_1 = require("./Cart");
19
+ var HitPageView_1 = require("./HitPageView");
20
+ var HitSessionStart_1 = require("./HitSessionStart");
21
+ var HitSessionUtm_1 = require("./HitSessionUtm");
22
+ function ConversationWebchatContextFromJSON(json) {
23
+ return ConversationWebchatContextFromJSONTyped(json, false);
24
+ }
25
+ exports.ConversationWebchatContextFromJSON = ConversationWebchatContextFromJSON;
26
+ function ConversationWebchatContextFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'cart': !(0, runtime_1.exists)(json, 'cart') ? undefined : (0, Cart_1.CartFromJSON)(json['cart']),
32
+ 'current_url': !(0, runtime_1.exists)(json, 'current_url') ? undefined : json['current_url'],
33
+ 'page_view': !(0, runtime_1.exists)(json, 'page_view') ? undefined : (json['page_view'].map(HitPageView_1.HitPageViewFromJSON)),
34
+ 'session_start': !(0, runtime_1.exists)(json, 'session_start') ? undefined : (0, HitSessionStart_1.HitSessionStartFromJSON)(json['session_start']),
35
+ 'session_utm': !(0, runtime_1.exists)(json, 'session_utm') ? undefined : (0, HitSessionUtm_1.HitSessionUtmFromJSON)(json['session_utm']),
36
+ };
37
+ }
38
+ exports.ConversationWebchatContextFromJSONTyped = ConversationWebchatContextFromJSONTyped;
39
+ function ConversationWebchatContextToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'cart': (0, Cart_1.CartToJSON)(value.cart),
48
+ 'current_url': value.current_url,
49
+ 'page_view': value.page_view === undefined ? undefined : (value.page_view.map(HitPageView_1.HitPageViewToJSON)),
50
+ 'session_start': (0, HitSessionStart_1.HitSessionStartToJSON)(value.session_start),
51
+ 'session_utm': (0, HitSessionUtm_1.HitSessionUtmToJSON)(value.session_utm),
52
+ };
53
+ }
54
+ exports.ConversationWebchatContextToJSON = ConversationWebchatContextToJSON;
@@ -145,6 +145,7 @@ export declare const ConversationWebsocketMessageEventTypeEnum: {
145
145
  readonly Typing: "typing";
146
146
  readonly AddCoupon: "add coupon";
147
147
  readonly AddItem: "add item";
148
+ readonly WebchatContext: "webchat context";
148
149
  };
149
150
  export type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
150
151
  /**
@@ -41,7 +41,8 @@ exports.ConversationWebsocketMessageEventTypeEnum = {
41
41
  ReadMessage: 'read message',
42
42
  Typing: 'typing',
43
43
  AddCoupon: 'add coupon',
44
- AddItem: 'add item'
44
+ AddItem: 'add item',
45
+ WebchatContext: 'webchat context'
45
46
  };
46
47
  /**
47
48
  * @export
@@ -0,0 +1,88 @@
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 { HitPageViewMetaData } from './HitPageViewMetaData';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface HitPageView
17
+ */
18
+ export interface HitPageView {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof HitPageView
23
+ */
24
+ bounce?: boolean;
25
+ /**
26
+ *
27
+ * @type {Array<HitPageViewMetaData>}
28
+ * @memberof HitPageView
29
+ */
30
+ meta_data?: Array<HitPageViewMetaData>;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof HitPageView
35
+ */
36
+ method?: string;
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof HitPageView
41
+ */
42
+ prefetch?: boolean;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof HitPageView
47
+ */
48
+ query?: string;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof HitPageView
53
+ */
54
+ recording?: boolean;
55
+ /**
56
+ *
57
+ * @type {boolean}
58
+ * @memberof HitPageView
59
+ */
60
+ redirect?: boolean;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof HitPageView
65
+ */
66
+ referrer?: string;
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof HitPageView
71
+ */
72
+ time_on_page?: number;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof HitPageView
77
+ */
78
+ title?: string;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof HitPageView
83
+ */
84
+ url?: string;
85
+ }
86
+ export declare function HitPageViewFromJSON(json: any): HitPageView;
87
+ export declare function HitPageViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): HitPageView;
88
+ export declare function HitPageViewToJSON(value?: HitPageView | 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.HitPageViewToJSON = exports.HitPageViewFromJSONTyped = exports.HitPageViewFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var HitPageViewMetaData_1 = require("./HitPageViewMetaData");
19
+ function HitPageViewFromJSON(json) {
20
+ return HitPageViewFromJSONTyped(json, false);
21
+ }
22
+ exports.HitPageViewFromJSON = HitPageViewFromJSON;
23
+ function HitPageViewFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'bounce': !(0, runtime_1.exists)(json, 'bounce') ? undefined : json['bounce'],
29
+ 'meta_data': !(0, runtime_1.exists)(json, 'meta_data') ? undefined : (json['meta_data'].map(HitPageViewMetaData_1.HitPageViewMetaDataFromJSON)),
30
+ 'method': !(0, runtime_1.exists)(json, 'method') ? undefined : json['method'],
31
+ 'prefetch': !(0, runtime_1.exists)(json, 'prefetch') ? undefined : json['prefetch'],
32
+ 'query': !(0, runtime_1.exists)(json, 'query') ? undefined : json['query'],
33
+ 'recording': !(0, runtime_1.exists)(json, 'recording') ? undefined : json['recording'],
34
+ 'redirect': !(0, runtime_1.exists)(json, 'redirect') ? undefined : json['redirect'],
35
+ 'referrer': !(0, runtime_1.exists)(json, 'referrer') ? undefined : json['referrer'],
36
+ 'time_on_page': !(0, runtime_1.exists)(json, 'time_on_page') ? undefined : json['time_on_page'],
37
+ 'title': !(0, runtime_1.exists)(json, 'title') ? undefined : json['title'],
38
+ 'url': !(0, runtime_1.exists)(json, 'url') ? undefined : json['url'],
39
+ };
40
+ }
41
+ exports.HitPageViewFromJSONTyped = HitPageViewFromJSONTyped;
42
+ function HitPageViewToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'bounce': value.bounce,
51
+ 'meta_data': value.meta_data === undefined ? undefined : (value.meta_data.map(HitPageViewMetaData_1.HitPageViewMetaDataToJSON)),
52
+ 'method': value.method,
53
+ 'prefetch': value.prefetch,
54
+ 'query': value.query,
55
+ 'recording': value.recording,
56
+ 'redirect': value.redirect,
57
+ 'referrer': value.referrer,
58
+ 'time_on_page': value.time_on_page,
59
+ 'title': value.title,
60
+ 'url': value.url,
61
+ };
62
+ }
63
+ exports.HitPageViewToJSON = HitPageViewToJSON;
@@ -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 HitPageViewMetaData
16
+ */
17
+ export interface HitPageViewMetaData {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof HitPageViewMetaData
22
+ */
23
+ key?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof HitPageViewMetaData
28
+ */
29
+ value?: string;
30
+ }
31
+ export declare function HitPageViewMetaDataFromJSON(json: any): HitPageViewMetaData;
32
+ export declare function HitPageViewMetaDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): HitPageViewMetaData;
33
+ export declare function HitPageViewMetaDataToJSON(value?: HitPageViewMetaData | 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.HitPageViewMetaDataToJSON = exports.HitPageViewMetaDataFromJSONTyped = exports.HitPageViewMetaDataFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function HitPageViewMetaDataFromJSON(json) {
19
+ return HitPageViewMetaDataFromJSONTyped(json, false);
20
+ }
21
+ exports.HitPageViewMetaDataFromJSON = HitPageViewMetaDataFromJSON;
22
+ function HitPageViewMetaDataFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'key': !(0, runtime_1.exists)(json, 'key') ? undefined : json['key'],
28
+ 'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
29
+ };
30
+ }
31
+ exports.HitPageViewMetaDataFromJSONTyped = HitPageViewMetaDataFromJSONTyped;
32
+ function HitPageViewMetaDataToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'key': value.key,
41
+ 'value': value.value,
42
+ };
43
+ }
44
+ exports.HitPageViewMetaDataToJSON = HitPageViewMetaDataToJSON;
@@ -0,0 +1,123 @@
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 HitSessionStart
16
+ */
17
+ export interface HitSessionStart {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof HitSessionStart
22
+ */
23
+ bot?: boolean;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof HitSessionStart
28
+ */
29
+ bounce?: boolean;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof HitSessionStart
34
+ */
35
+ channel?: string;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof HitSessionStart
40
+ */
41
+ device_switch_detected?: boolean;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof HitSessionStart
46
+ */
47
+ fake_bot?: boolean;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof HitSessionStart
52
+ */
53
+ geolocation_country?: string;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof HitSessionStart
58
+ */
59
+ geolocation_latitude?: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof HitSessionStart
64
+ */
65
+ geolocation_longitude?: number;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof HitSessionStart
70
+ */
71
+ geolocation_province?: string;
72
+ /**
73
+ *
74
+ * @type {boolean}
75
+ * @memberof HitSessionStart
76
+ */
77
+ no_cookie_support?: boolean;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof HitSessionStart
82
+ */
83
+ prefetch?: boolean;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof HitSessionStart
88
+ */
89
+ referrer?: string;
90
+ /**
91
+ *
92
+ * @type {number}
93
+ * @memberof HitSessionStart
94
+ */
95
+ screen_height?: number;
96
+ /**
97
+ *
98
+ * @type {number}
99
+ * @memberof HitSessionStart
100
+ */
101
+ screen_width?: number;
102
+ /**
103
+ *
104
+ * @type {number}
105
+ * @memberof HitSessionStart
106
+ */
107
+ time_on_Site?: number;
108
+ /**
109
+ *
110
+ * @type {string}
111
+ * @memberof HitSessionStart
112
+ */
113
+ user_agent?: string;
114
+ /**
115
+ *
116
+ * @type {string}
117
+ * @memberof HitSessionStart
118
+ */
119
+ user_ip?: string;
120
+ }
121
+ export declare function HitSessionStartFromJSON(json: any): HitSessionStart;
122
+ export declare function HitSessionStartFromJSONTyped(json: any, ignoreDiscriminator: boolean): HitSessionStart;
123
+ export declare function HitSessionStartToJSON(value?: HitSessionStart | null): any;