ultracart_rest_api_v2_typescript 4.0.116-RC → 4.0.117-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.
- package/.openapi-generator/FILES +1 -0
- package/README.md +3 -2
- package/dist/models/ConversationDepartment.d.ts +7 -0
- package/dist/models/ConversationDepartment.js +3 -0
- package/dist/models/ConversationDepartmentMember.d.ts +39 -0
- package/dist/models/ConversationDepartmentMember.js +46 -0
- package/dist/models/ConversationDepartmentsResponse.d.ts +6 -0
- package/dist/models/ConversationDepartmentsResponse.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/ConversationDepartment.ts +15 -0
- package/src/models/ConversationDepartmentMember.ts +72 -0
- package/src/models/ConversationDepartmentsResponse.ts +8 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -157,6 +157,7 @@ src/models/ConversationCannedMessageResponse.ts
|
|
|
157
157
|
src/models/ConversationCannedMessagesResponse.ts
|
|
158
158
|
src/models/ConversationCannedMessagesSearch.ts
|
|
159
159
|
src/models/ConversationDepartment.ts
|
|
160
|
+
src/models/ConversationDepartmentMember.ts
|
|
160
161
|
src/models/ConversationDepartmentResponse.ts
|
|
161
162
|
src/models/ConversationDepartmentsResponse.ts
|
|
162
163
|
src/models/ConversationEngagement.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.117-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.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.117-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.117-RC | 01/18/2023 | conversation dept members |
|
|
57
58
|
| 4.0.116-RC | 01/18/2023 | channel partner ship to pref desc field |
|
|
58
59
|
| 4.0.115-RC | 01/17/2023 | changed convo webchat constant |
|
|
59
60
|
| 4.0.114-RC | 01/17/2023 | support for checkout item properties |
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ConversationDepartmentMember } from './ConversationDepartmentMember';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,12 @@ export interface ConversationDepartment {
|
|
|
27
28
|
* @memberof ConversationDepartment
|
|
28
29
|
*/
|
|
29
30
|
department_name?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<ConversationDepartmentMember>}
|
|
34
|
+
* @memberof ConversationDepartment
|
|
35
|
+
*/
|
|
36
|
+
members?: Array<ConversationDepartmentMember>;
|
|
30
37
|
/**
|
|
31
38
|
*
|
|
32
39
|
* @type {string}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ConversationDepartmentToJSON = exports.ConversationDepartmentFromJSONTyped = exports.ConversationDepartmentFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var ConversationDepartmentMember_1 = require("./ConversationDepartmentMember");
|
|
18
19
|
function ConversationDepartmentFromJSON(json) {
|
|
19
20
|
return ConversationDepartmentFromJSONTyped(json, false);
|
|
20
21
|
}
|
|
@@ -26,6 +27,7 @@ function ConversationDepartmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
27
|
return {
|
|
27
28
|
'conversation_department_oid': !(0, runtime_1.exists)(json, 'conversation_department_oid') ? undefined : json['conversation_department_oid'],
|
|
28
29
|
'department_name': !(0, runtime_1.exists)(json, 'department_name') ? undefined : json['department_name'],
|
|
30
|
+
'members': !(0, runtime_1.exists)(json, 'members') ? undefined : (json['members'].map(ConversationDepartmentMember_1.ConversationDepartmentMemberFromJSON)),
|
|
29
31
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
30
32
|
'settings': !(0, runtime_1.exists)(json, 'settings') ? undefined : json['settings'],
|
|
31
33
|
};
|
|
@@ -41,6 +43,7 @@ function ConversationDepartmentToJSON(value) {
|
|
|
41
43
|
return {
|
|
42
44
|
'conversation_department_oid': value.conversation_department_oid,
|
|
43
45
|
'department_name': value.department_name,
|
|
46
|
+
'members': value.members === undefined ? undefined : (value.members.map(ConversationDepartmentMember_1.ConversationDepartmentMemberToJSON)),
|
|
44
47
|
'merchant_id': value.merchant_id,
|
|
45
48
|
'settings': value.settings,
|
|
46
49
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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 ConversationDepartmentMember
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationDepartmentMember {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ConversationDepartmentMember
|
|
22
|
+
*/
|
|
23
|
+
member?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationDepartmentMember
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ConversationDepartmentMember
|
|
34
|
+
*/
|
|
35
|
+
user_id?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare function ConversationDepartmentMemberFromJSON(json: any): ConversationDepartmentMember;
|
|
38
|
+
export declare function ConversationDepartmentMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationDepartmentMember;
|
|
39
|
+
export declare function ConversationDepartmentMemberToJSON(value?: ConversationDepartmentMember | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.ConversationDepartmentMemberToJSON = exports.ConversationDepartmentMemberFromJSONTyped = exports.ConversationDepartmentMemberFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ConversationDepartmentMemberFromJSON(json) {
|
|
19
|
+
return ConversationDepartmentMemberFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ConversationDepartmentMemberFromJSON = ConversationDepartmentMemberFromJSON;
|
|
22
|
+
function ConversationDepartmentMemberFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'member': !(0, runtime_1.exists)(json, 'member') ? undefined : json['member'],
|
|
28
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
29
|
+
'user_id': !(0, runtime_1.exists)(json, 'user_id') ? undefined : json['user_id'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.ConversationDepartmentMemberFromJSONTyped = ConversationDepartmentMemberFromJSONTyped;
|
|
33
|
+
function ConversationDepartmentMemberToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'member': value.member,
|
|
42
|
+
'name': value.name,
|
|
43
|
+
'user_id': value.user_id,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.ConversationDepartmentMemberToJSON = ConversationDepartmentMemberToJSON;
|
|
@@ -37,6 +37,12 @@ export interface ConversationDepartmentsResponse {
|
|
|
37
37
|
* @memberof ConversationDepartmentsResponse
|
|
38
38
|
*/
|
|
39
39
|
metadata?: ResponseMetadata;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof ConversationDepartmentsResponse
|
|
44
|
+
*/
|
|
45
|
+
read_only?: boolean;
|
|
40
46
|
/**
|
|
41
47
|
* Indicates if API call was successful
|
|
42
48
|
* @type {boolean}
|
|
@@ -31,6 +31,7 @@ function ConversationDepartmentsResponseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
31
31
|
'conversation_departments': !(0, runtime_1.exists)(json, 'conversation_departments') ? undefined : (json['conversation_departments'].map(ConversationDepartment_1.ConversationDepartmentFromJSON)),
|
|
32
32
|
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
33
33
|
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
34
|
+
'read_only': !(0, runtime_1.exists)(json, 'read_only') ? undefined : json['read_only'],
|
|
34
35
|
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
35
36
|
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
36
37
|
};
|
|
@@ -47,6 +48,7 @@ function ConversationDepartmentsResponseToJSON(value) {
|
|
|
47
48
|
'conversation_departments': value.conversation_departments === undefined ? undefined : (value.conversation_departments.map(ConversationDepartment_1.ConversationDepartmentToJSON)),
|
|
48
49
|
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
49
50
|
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
51
|
+
'read_only': value.read_only,
|
|
50
52
|
'success': value.success,
|
|
51
53
|
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
|
52
54
|
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -132,6 +132,7 @@ export * from './ConversationCannedMessageResponse';
|
|
|
132
132
|
export * from './ConversationCannedMessagesResponse';
|
|
133
133
|
export * from './ConversationCannedMessagesSearch';
|
|
134
134
|
export * from './ConversationDepartment';
|
|
135
|
+
export * from './ConversationDepartmentMember';
|
|
135
136
|
export * from './ConversationDepartmentResponse';
|
|
136
137
|
export * from './ConversationDepartmentsResponse';
|
|
137
138
|
export * from './ConversationEngagement';
|
package/dist/models/index.js
CHANGED
|
@@ -150,6 +150,7 @@ __exportStar(require("./ConversationCannedMessageResponse"), exports);
|
|
|
150
150
|
__exportStar(require("./ConversationCannedMessagesResponse"), exports);
|
|
151
151
|
__exportStar(require("./ConversationCannedMessagesSearch"), exports);
|
|
152
152
|
__exportStar(require("./ConversationDepartment"), exports);
|
|
153
|
+
__exportStar(require("./ConversationDepartmentMember"), exports);
|
|
153
154
|
__exportStar(require("./ConversationDepartmentResponse"), exports);
|
|
154
155
|
__exportStar(require("./ConversationDepartmentsResponse"), exports);
|
|
155
156
|
__exportStar(require("./ConversationEngagement"), exports);
|
package/package.json
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
ConversationDepartmentMember,
|
|
18
|
+
ConversationDepartmentMemberFromJSON,
|
|
19
|
+
ConversationDepartmentMemberFromJSONTyped,
|
|
20
|
+
ConversationDepartmentMemberToJSON,
|
|
21
|
+
} from './ConversationDepartmentMember';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -31,6 +38,12 @@ export interface ConversationDepartment {
|
|
|
31
38
|
* @memberof ConversationDepartment
|
|
32
39
|
*/
|
|
33
40
|
department_name?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<ConversationDepartmentMember>}
|
|
44
|
+
* @memberof ConversationDepartment
|
|
45
|
+
*/
|
|
46
|
+
members?: Array<ConversationDepartmentMember>;
|
|
34
47
|
/**
|
|
35
48
|
*
|
|
36
49
|
* @type {string}
|
|
@@ -57,6 +70,7 @@ export function ConversationDepartmentFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
57
70
|
|
|
58
71
|
'conversation_department_oid': !exists(json, 'conversation_department_oid') ? undefined : json['conversation_department_oid'],
|
|
59
72
|
'department_name': !exists(json, 'department_name') ? undefined : json['department_name'],
|
|
73
|
+
'members': !exists(json, 'members') ? undefined : ((json['members'] as Array<any>).map(ConversationDepartmentMemberFromJSON)),
|
|
60
74
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
61
75
|
'settings': !exists(json, 'settings') ? undefined : json['settings'],
|
|
62
76
|
};
|
|
@@ -73,6 +87,7 @@ export function ConversationDepartmentToJSON(value?: ConversationDepartment | nu
|
|
|
73
87
|
|
|
74
88
|
'conversation_department_oid': value.conversation_department_oid,
|
|
75
89
|
'department_name': value.department_name,
|
|
90
|
+
'members': value.members === undefined ? undefined : ((value.members as Array<any>).map(ConversationDepartmentMemberToJSON)),
|
|
76
91
|
'merchant_id': value.merchant_id,
|
|
77
92
|
'settings': value.settings,
|
|
78
93
|
};
|
|
@@ -0,0 +1,72 @@
|
|
|
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 ConversationDepartmentMember
|
|
20
|
+
*/
|
|
21
|
+
export interface ConversationDepartmentMember {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof ConversationDepartmentMember
|
|
26
|
+
*/
|
|
27
|
+
member?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ConversationDepartmentMember
|
|
32
|
+
*/
|
|
33
|
+
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ConversationDepartmentMember
|
|
38
|
+
*/
|
|
39
|
+
user_id?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ConversationDepartmentMemberFromJSON(json: any): ConversationDepartmentMember {
|
|
43
|
+
return ConversationDepartmentMemberFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ConversationDepartmentMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationDepartmentMember {
|
|
47
|
+
if ((json === undefined) || (json === null)) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
|
|
52
|
+
'member': !exists(json, 'member') ? undefined : json['member'],
|
|
53
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
54
|
+
'user_id': !exists(json, 'user_id') ? undefined : json['user_id'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ConversationDepartmentMemberToJSON(value?: ConversationDepartmentMember | null): any {
|
|
59
|
+
if (value === undefined) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
if (value === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'member': value.member,
|
|
68
|
+
'name': value.name,
|
|
69
|
+
'user_id': value.user_id,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -62,6 +62,12 @@ export interface ConversationDepartmentsResponse {
|
|
|
62
62
|
* @memberof ConversationDepartmentsResponse
|
|
63
63
|
*/
|
|
64
64
|
metadata?: ResponseMetadata;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof ConversationDepartmentsResponse
|
|
69
|
+
*/
|
|
70
|
+
read_only?: boolean;
|
|
65
71
|
/**
|
|
66
72
|
* Indicates if API call was successful
|
|
67
73
|
* @type {boolean}
|
|
@@ -89,6 +95,7 @@ export function ConversationDepartmentsResponseFromJSONTyped(json: any, ignoreDi
|
|
|
89
95
|
'conversation_departments': !exists(json, 'conversation_departments') ? undefined : ((json['conversation_departments'] as Array<any>).map(ConversationDepartmentFromJSON)),
|
|
90
96
|
'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
|
|
91
97
|
'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
|
|
98
|
+
'read_only': !exists(json, 'read_only') ? undefined : json['read_only'],
|
|
92
99
|
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
93
100
|
'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
|
|
94
101
|
};
|
|
@@ -106,6 +113,7 @@ export function ConversationDepartmentsResponseToJSON(value?: ConversationDepart
|
|
|
106
113
|
'conversation_departments': value.conversation_departments === undefined ? undefined : ((value.conversation_departments as Array<any>).map(ConversationDepartmentToJSON)),
|
|
107
114
|
'error': ModelErrorToJSON(value.error),
|
|
108
115
|
'metadata': ResponseMetadataToJSON(value.metadata),
|
|
116
|
+
'read_only': value.read_only,
|
|
109
117
|
'success': value.success,
|
|
110
118
|
'warning': WarningToJSON(value.warning),
|
|
111
119
|
};
|
package/src/models/index.ts
CHANGED
|
@@ -134,6 +134,7 @@ export * from './ConversationCannedMessageResponse';
|
|
|
134
134
|
export * from './ConversationCannedMessagesResponse';
|
|
135
135
|
export * from './ConversationCannedMessagesSearch';
|
|
136
136
|
export * from './ConversationDepartment';
|
|
137
|
+
export * from './ConversationDepartmentMember';
|
|
137
138
|
export * from './ConversationDepartmentResponse';
|
|
138
139
|
export * from './ConversationDepartmentsResponse';
|
|
139
140
|
export * from './ConversationEngagement';
|