ultracart_rest_api_v2_typescript 4.0.113-RC → 4.0.115-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 +4 -2
- package/dist/models/CartItem.d.ts +7 -0
- package/dist/models/CartItem.js +3 -0
- package/dist/models/CartItemProperty.d.ts +45 -0
- package/dist/models/CartItemProperty.js +48 -0
- package/dist/models/ConversationWebsocketMessage.d.ts +1 -1
- package/dist/models/ConversationWebsocketMessage.js +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/CartItem.ts +14 -0
- package/src/models/CartItemProperty.ts +80 -0
- package/src/models/ConversationWebsocketMessage.ts +1 -1
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -85,6 +85,7 @@ src/models/CartItemMultimediaThumbnail.ts
|
|
|
85
85
|
src/models/CartItemOption.ts
|
|
86
86
|
src/models/CartItemOptionValue.ts
|
|
87
87
|
src/models/CartItemPhysical.ts
|
|
88
|
+
src/models/CartItemProperty.ts
|
|
88
89
|
src/models/CartItemVariationSelection.ts
|
|
89
90
|
src/models/CartKitComponentOption.ts
|
|
90
91
|
src/models/CartMarketing.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.115-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.115-RC --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.115-RC | 01/17/2023 | changed convo webchat constant |
|
|
58
|
+
| 4.0.114-RC | 01/17/2023 | support for checkout item properties |
|
|
57
59
|
| 4.0.113-RC | 01/14/2023 | add external_id to the point of sale location object |
|
|
58
60
|
| 4.0.112-RC | 01/13/2023 | channel - ops to manage ship to prefs |
|
|
59
61
|
| 4.0.111-RC | 01/11/2023 | conversations - adjust search results to return multiple convo summaries |
|
|
@@ -13,6 +13,7 @@ import { CartItemAttribute } from './CartItemAttribute';
|
|
|
13
13
|
import { CartItemMultimedia } from './CartItemMultimedia';
|
|
14
14
|
import { CartItemOption } from './CartItemOption';
|
|
15
15
|
import { CartItemPhysical } from './CartItemPhysical';
|
|
16
|
+
import { CartItemProperty } from './CartItemProperty';
|
|
16
17
|
import { CartItemVariationSelection } from './CartItemVariationSelection';
|
|
17
18
|
import { CartKitComponentOption } from './CartKitComponentOption';
|
|
18
19
|
import { Currency } from './Currency';
|
|
@@ -142,6 +143,12 @@ export interface CartItem {
|
|
|
142
143
|
* @memberof CartItem
|
|
143
144
|
*/
|
|
144
145
|
preorder?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Properties associated with the item
|
|
148
|
+
* @type {Array<CartItemProperty>}
|
|
149
|
+
* @memberof CartItem
|
|
150
|
+
*/
|
|
151
|
+
properties?: Array<CartItemProperty>;
|
|
145
152
|
/**
|
|
146
153
|
* quantity
|
|
147
154
|
* @type {number}
|
package/dist/models/CartItem.js
CHANGED
|
@@ -19,6 +19,7 @@ var CartItemAttribute_1 = require("./CartItemAttribute");
|
|
|
19
19
|
var CartItemMultimedia_1 = require("./CartItemMultimedia");
|
|
20
20
|
var CartItemOption_1 = require("./CartItemOption");
|
|
21
21
|
var CartItemPhysical_1 = require("./CartItemPhysical");
|
|
22
|
+
var CartItemProperty_1 = require("./CartItemProperty");
|
|
22
23
|
var CartItemVariationSelection_1 = require("./CartItemVariationSelection");
|
|
23
24
|
var CartKitComponentOption_1 = require("./CartKitComponentOption");
|
|
24
25
|
var Currency_1 = require("./Currency");
|
|
@@ -51,6 +52,7 @@ function CartItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
52
|
'phsyical': !(0, runtime_1.exists)(json, 'phsyical') ? undefined : (0, CartItemPhysical_1.CartItemPhysicalFromJSON)(json['phsyical']),
|
|
52
53
|
'position': !(0, runtime_1.exists)(json, 'position') ? undefined : json['position'],
|
|
53
54
|
'preorder': !(0, runtime_1.exists)(json, 'preorder') ? undefined : json['preorder'],
|
|
55
|
+
'properties': !(0, runtime_1.exists)(json, 'properties') ? undefined : (json['properties'].map(CartItemProperty_1.CartItemPropertyFromJSON)),
|
|
54
56
|
'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : json['quantity'],
|
|
55
57
|
'schedules': !(0, runtime_1.exists)(json, 'schedules') ? undefined : json['schedules'],
|
|
56
58
|
'total_cost': !(0, runtime_1.exists)(json, 'total_cost') ? undefined : (0, Currency_1.CurrencyFromJSON)(json['total_cost']),
|
|
@@ -91,6 +93,7 @@ function CartItemToJSON(value) {
|
|
|
91
93
|
'phsyical': (0, CartItemPhysical_1.CartItemPhysicalToJSON)(value.phsyical),
|
|
92
94
|
'position': value.position,
|
|
93
95
|
'preorder': value.preorder,
|
|
96
|
+
'properties': value.properties === undefined ? undefined : (value.properties.map(CartItemProperty_1.CartItemPropertyToJSON)),
|
|
94
97
|
'quantity': value.quantity,
|
|
95
98
|
'schedules': value.schedules,
|
|
96
99
|
'total_cost': (0, Currency_1.CurrencyToJSON)(value.total_cost),
|
|
@@ -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 CartItemProperty
|
|
16
|
+
*/
|
|
17
|
+
export interface CartItemProperty {
|
|
18
|
+
/**
|
|
19
|
+
* True if this property is displayed to the customer
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof CartItemProperty
|
|
22
|
+
*/
|
|
23
|
+
display?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The date/time that the property expires and is deleted
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CartItemProperty
|
|
28
|
+
*/
|
|
29
|
+
expiration_dts?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CartItemProperty
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Value
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CartItemProperty
|
|
40
|
+
*/
|
|
41
|
+
value?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function CartItemPropertyFromJSON(json: any): CartItemProperty;
|
|
44
|
+
export declare function CartItemPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartItemProperty;
|
|
45
|
+
export declare function CartItemPropertyToJSON(value?: CartItemProperty | 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.CartItemPropertyToJSON = exports.CartItemPropertyFromJSONTyped = exports.CartItemPropertyFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function CartItemPropertyFromJSON(json) {
|
|
19
|
+
return CartItemPropertyFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.CartItemPropertyFromJSON = CartItemPropertyFromJSON;
|
|
22
|
+
function CartItemPropertyFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'display': !(0, runtime_1.exists)(json, 'display') ? undefined : json['display'],
|
|
28
|
+
'expiration_dts': !(0, runtime_1.exists)(json, 'expiration_dts') ? undefined : json['expiration_dts'],
|
|
29
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
30
|
+
'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
exports.CartItemPropertyFromJSONTyped = CartItemPropertyFromJSONTyped;
|
|
34
|
+
function CartItemPropertyToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'display': value.display,
|
|
43
|
+
'expiration_dts': value.expiration_dts,
|
|
44
|
+
'name': value.name,
|
|
45
|
+
'value': value.value,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.CartItemPropertyToJSON = CartItemPropertyToJSON;
|
|
@@ -167,7 +167,7 @@ export declare const ConversationWebsocketMessageEventTypeEnum: {
|
|
|
167
167
|
readonly Rrweb: "rrweb";
|
|
168
168
|
readonly ParticipantUpdate: "participant update";
|
|
169
169
|
readonly ParticipantJoin: "participant join";
|
|
170
|
-
readonly
|
|
170
|
+
readonly ParticipantLeft: "participant left";
|
|
171
171
|
readonly ReadMessage: "read message";
|
|
172
172
|
readonly Typing: "typing";
|
|
173
173
|
readonly AddCoupon: "add coupon";
|
|
@@ -40,7 +40,7 @@ exports.ConversationWebsocketMessageEventTypeEnum = {
|
|
|
40
40
|
Rrweb: 'rrweb',
|
|
41
41
|
ParticipantUpdate: 'participant update',
|
|
42
42
|
ParticipantJoin: 'participant join',
|
|
43
|
-
|
|
43
|
+
ParticipantLeft: 'participant left',
|
|
44
44
|
ReadMessage: 'read message',
|
|
45
45
|
Typing: 'typing',
|
|
46
46
|
AddCoupon: 'add coupon',
|
package/dist/models/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export * from './CartItemMultimediaThumbnail';
|
|
|
60
60
|
export * from './CartItemOption';
|
|
61
61
|
export * from './CartItemOptionValue';
|
|
62
62
|
export * from './CartItemPhysical';
|
|
63
|
+
export * from './CartItemProperty';
|
|
63
64
|
export * from './CartItemVariationSelection';
|
|
64
65
|
export * from './CartKitComponentOption';
|
|
65
66
|
export * from './CartMarketing';
|
package/dist/models/index.js
CHANGED
|
@@ -78,6 +78,7 @@ __exportStar(require("./CartItemMultimediaThumbnail"), exports);
|
|
|
78
78
|
__exportStar(require("./CartItemOption"), exports);
|
|
79
79
|
__exportStar(require("./CartItemOptionValue"), exports);
|
|
80
80
|
__exportStar(require("./CartItemPhysical"), exports);
|
|
81
|
+
__exportStar(require("./CartItemProperty"), exports);
|
|
81
82
|
__exportStar(require("./CartItemVariationSelection"), exports);
|
|
82
83
|
__exportStar(require("./CartKitComponentOption"), exports);
|
|
83
84
|
__exportStar(require("./CartMarketing"), exports);
|
package/package.json
CHANGED
package/src/models/CartItem.ts
CHANGED
|
@@ -37,6 +37,12 @@ import {
|
|
|
37
37
|
CartItemPhysicalFromJSONTyped,
|
|
38
38
|
CartItemPhysicalToJSON,
|
|
39
39
|
} from './CartItemPhysical';
|
|
40
|
+
import {
|
|
41
|
+
CartItemProperty,
|
|
42
|
+
CartItemPropertyFromJSON,
|
|
43
|
+
CartItemPropertyFromJSONTyped,
|
|
44
|
+
CartItemPropertyToJSON,
|
|
45
|
+
} from './CartItemProperty';
|
|
40
46
|
import {
|
|
41
47
|
CartItemVariationSelection,
|
|
42
48
|
CartItemVariationSelectionFromJSON,
|
|
@@ -182,6 +188,12 @@ export interface CartItem {
|
|
|
182
188
|
* @memberof CartItem
|
|
183
189
|
*/
|
|
184
190
|
preorder?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Properties associated with the item
|
|
193
|
+
* @type {Array<CartItemProperty>}
|
|
194
|
+
* @memberof CartItem
|
|
195
|
+
*/
|
|
196
|
+
properties?: Array<CartItemProperty>;
|
|
185
197
|
/**
|
|
186
198
|
* quantity
|
|
187
199
|
* @type {number}
|
|
@@ -268,6 +280,7 @@ export function CartItemFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
268
280
|
'phsyical': !exists(json, 'phsyical') ? undefined : CartItemPhysicalFromJSON(json['phsyical']),
|
|
269
281
|
'position': !exists(json, 'position') ? undefined : json['position'],
|
|
270
282
|
'preorder': !exists(json, 'preorder') ? undefined : json['preorder'],
|
|
283
|
+
'properties': !exists(json, 'properties') ? undefined : ((json['properties'] as Array<any>).map(CartItemPropertyFromJSON)),
|
|
271
284
|
'quantity': !exists(json, 'quantity') ? undefined : json['quantity'],
|
|
272
285
|
'schedules': !exists(json, 'schedules') ? undefined : json['schedules'],
|
|
273
286
|
'total_cost': !exists(json, 'total_cost') ? undefined : CurrencyFromJSON(json['total_cost']),
|
|
@@ -309,6 +322,7 @@ export function CartItemToJSON(value?: CartItem | null): any {
|
|
|
309
322
|
'phsyical': CartItemPhysicalToJSON(value.phsyical),
|
|
310
323
|
'position': value.position,
|
|
311
324
|
'preorder': value.preorder,
|
|
325
|
+
'properties': value.properties === undefined ? undefined : ((value.properties as Array<any>).map(CartItemPropertyToJSON)),
|
|
312
326
|
'quantity': value.quantity,
|
|
313
327
|
'schedules': value.schedules,
|
|
314
328
|
'total_cost': CurrencyToJSON(value.total_cost),
|
|
@@ -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 CartItemProperty
|
|
20
|
+
*/
|
|
21
|
+
export interface CartItemProperty {
|
|
22
|
+
/**
|
|
23
|
+
* True if this property is displayed to the customer
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof CartItemProperty
|
|
26
|
+
*/
|
|
27
|
+
display?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The date/time that the property expires and is deleted
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CartItemProperty
|
|
32
|
+
*/
|
|
33
|
+
expiration_dts?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Name
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CartItemProperty
|
|
38
|
+
*/
|
|
39
|
+
name?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Value
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CartItemProperty
|
|
44
|
+
*/
|
|
45
|
+
value?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function CartItemPropertyFromJSON(json: any): CartItemProperty {
|
|
49
|
+
return CartItemPropertyFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CartItemPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartItemProperty {
|
|
53
|
+
if ((json === undefined) || (json === null)) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'display': !exists(json, 'display') ? undefined : json['display'],
|
|
59
|
+
'expiration_dts': !exists(json, 'expiration_dts') ? undefined : json['expiration_dts'],
|
|
60
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
61
|
+
'value': !exists(json, 'value') ? undefined : json['value'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function CartItemPropertyToJSON(value?: CartItemProperty | null): any {
|
|
66
|
+
if (value === undefined) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
if (value === null) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'display': value.display,
|
|
75
|
+
'expiration_dts': value.expiration_dts,
|
|
76
|
+
'name': value.name,
|
|
77
|
+
'value': value.value,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -229,7 +229,7 @@ export const ConversationWebsocketMessageEventTypeEnum = {
|
|
|
229
229
|
Rrweb: 'rrweb',
|
|
230
230
|
ParticipantUpdate: 'participant update',
|
|
231
231
|
ParticipantJoin: 'participant join',
|
|
232
|
-
|
|
232
|
+
ParticipantLeft: 'participant left',
|
|
233
233
|
ReadMessage: 'read message',
|
|
234
234
|
Typing: 'typing',
|
|
235
235
|
AddCoupon: 'add coupon',
|
package/src/models/index.ts
CHANGED
|
@@ -62,6 +62,7 @@ export * from './CartItemMultimediaThumbnail';
|
|
|
62
62
|
export * from './CartItemOption';
|
|
63
63
|
export * from './CartItemOptionValue';
|
|
64
64
|
export * from './CartItemPhysical';
|
|
65
|
+
export * from './CartItemProperty';
|
|
65
66
|
export * from './CartItemVariationSelection';
|
|
66
67
|
export * from './CartKitComponentOption';
|
|
67
68
|
export * from './CartMarketing';
|