ultracart_rest_api_v2_typescript 3.10.120 → 3.10.122
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/README.md +4 -2
- package/api.ts +323 -0
- package/dist/api.d.ts +255 -0
- package/dist/api.js +126 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@3.10.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@3.10.122
|
|
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@3.10.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@3.10.122 --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
|
+
| 3.10.122 | 03/14/2023 | order.getOrderEdiDocuments |
|
|
58
|
+
| 3.10.121 | 03/01/2023 | convo - add sentiment record to conversation obj |
|
|
57
59
|
| 3.10.120 | 02/22/2023 | convo - customer initiated flag on engagement |
|
|
58
60
|
| 3.10.119 | 02/20/2023 | refund reasons |
|
|
59
61
|
| 3.10.118 | 02/17/2023 | convo api - smsUnsubscribeConversation method |
|
package/api.ts
CHANGED
|
@@ -6655,6 +6655,12 @@ export interface Conversation {
|
|
|
6655
6655
|
* @memberof Conversation
|
|
6656
6656
|
*/
|
|
6657
6657
|
participants?: Array<ConversationParticipant>;
|
|
6658
|
+
/**
|
|
6659
|
+
*
|
|
6660
|
+
* @type {ConversationSentiment}
|
|
6661
|
+
* @memberof Conversation
|
|
6662
|
+
*/
|
|
6663
|
+
sentiment?: ConversationSentiment;
|
|
6658
6664
|
/**
|
|
6659
6665
|
* Start of the conversation date/time
|
|
6660
6666
|
* @type {string}
|
|
@@ -8506,6 +8512,67 @@ export interface ConversationSearchResponse {
|
|
|
8506
8512
|
total?: number;
|
|
8507
8513
|
}
|
|
8508
8514
|
|
|
8515
|
+
/**
|
|
8516
|
+
*
|
|
8517
|
+
* @export
|
|
8518
|
+
* @interface ConversationSentiment
|
|
8519
|
+
*/
|
|
8520
|
+
export interface ConversationSentiment {
|
|
8521
|
+
/**
|
|
8522
|
+
* The last time the detect sentiment was run on this conversation
|
|
8523
|
+
* @type {string}
|
|
8524
|
+
* @memberof ConversationSentiment
|
|
8525
|
+
*/
|
|
8526
|
+
last_detect_sentiment?: string;
|
|
8527
|
+
/**
|
|
8528
|
+
* The mixed score
|
|
8529
|
+
* @type {number}
|
|
8530
|
+
* @memberof ConversationSentiment
|
|
8531
|
+
*/
|
|
8532
|
+
mixed?: number;
|
|
8533
|
+
/**
|
|
8534
|
+
* The negative score
|
|
8535
|
+
* @type {number}
|
|
8536
|
+
* @memberof ConversationSentiment
|
|
8537
|
+
*/
|
|
8538
|
+
negative?: number;
|
|
8539
|
+
/**
|
|
8540
|
+
* The neutral score
|
|
8541
|
+
* @type {number}
|
|
8542
|
+
* @memberof ConversationSentiment
|
|
8543
|
+
*/
|
|
8544
|
+
neutral?: number;
|
|
8545
|
+
/**
|
|
8546
|
+
* The positive score
|
|
8547
|
+
* @type {number}
|
|
8548
|
+
* @memberof ConversationSentiment
|
|
8549
|
+
*/
|
|
8550
|
+
positive?: number;
|
|
8551
|
+
/**
|
|
8552
|
+
* The overall sentiment
|
|
8553
|
+
* @type {string}
|
|
8554
|
+
* @memberof ConversationSentiment
|
|
8555
|
+
*/
|
|
8556
|
+
sentiment?: ConversationSentiment.SentimentEnum;
|
|
8557
|
+
}
|
|
8558
|
+
|
|
8559
|
+
/**
|
|
8560
|
+
* @export
|
|
8561
|
+
* @namespace ConversationSentiment
|
|
8562
|
+
*/
|
|
8563
|
+
export namespace ConversationSentiment {
|
|
8564
|
+
/**
|
|
8565
|
+
* @export
|
|
8566
|
+
* @enum {string}
|
|
8567
|
+
*/
|
|
8568
|
+
export enum SentimentEnum {
|
|
8569
|
+
POSITIVE = <any> 'POSITIVE',
|
|
8570
|
+
NEUTRAL = <any> 'NEUTRAL',
|
|
8571
|
+
NEGATIVE = <any> 'NEGATIVE',
|
|
8572
|
+
MIXED = <any> 'MIXED'
|
|
8573
|
+
}
|
|
8574
|
+
}
|
|
8575
|
+
|
|
8509
8576
|
/**
|
|
8510
8577
|
*
|
|
8511
8578
|
* @export
|
|
@@ -8630,6 +8697,12 @@ export interface ConversationSummary {
|
|
|
8630
8697
|
* @memberof ConversationSummary
|
|
8631
8698
|
*/
|
|
8632
8699
|
participants?: Array<ConversationParticipant>;
|
|
8700
|
+
/**
|
|
8701
|
+
*
|
|
8702
|
+
* @type {ConversationSentiment}
|
|
8703
|
+
* @memberof ConversationSummary
|
|
8704
|
+
*/
|
|
8705
|
+
sentiment?: ConversationSentiment;
|
|
8633
8706
|
/**
|
|
8634
8707
|
* Start of the conversation date/time
|
|
8635
8708
|
* @type {string}
|
|
@@ -29169,6 +29242,151 @@ export interface OrderEdi {
|
|
|
29169
29242
|
ship_to_edi_code?: string;
|
|
29170
29243
|
}
|
|
29171
29244
|
|
|
29245
|
+
/**
|
|
29246
|
+
*
|
|
29247
|
+
* @export
|
|
29248
|
+
* @interface OrderEdiDocument
|
|
29249
|
+
*/
|
|
29250
|
+
export interface OrderEdiDocument {
|
|
29251
|
+
/**
|
|
29252
|
+
* Direction the document flowed
|
|
29253
|
+
* @type {string}
|
|
29254
|
+
* @memberof OrderEdiDocument
|
|
29255
|
+
*/
|
|
29256
|
+
direction?: OrderEdiDocument.DirectionEnum;
|
|
29257
|
+
/**
|
|
29258
|
+
* Date/time the document was created/received
|
|
29259
|
+
* @type {string}
|
|
29260
|
+
* @memberof OrderEdiDocument
|
|
29261
|
+
*/
|
|
29262
|
+
doc_dts?: string;
|
|
29263
|
+
/**
|
|
29264
|
+
*
|
|
29265
|
+
* @type {string}
|
|
29266
|
+
* @memberof OrderEdiDocument
|
|
29267
|
+
*/
|
|
29268
|
+
document?: string;
|
|
29269
|
+
/**
|
|
29270
|
+
*
|
|
29271
|
+
* @type {string}
|
|
29272
|
+
* @memberof OrderEdiDocument
|
|
29273
|
+
*/
|
|
29274
|
+
document_type_description?: string;
|
|
29275
|
+
/**
|
|
29276
|
+
*
|
|
29277
|
+
* @type {number}
|
|
29278
|
+
* @memberof OrderEdiDocument
|
|
29279
|
+
*/
|
|
29280
|
+
document_type_number?: number;
|
|
29281
|
+
/**
|
|
29282
|
+
*
|
|
29283
|
+
* @type {string}
|
|
29284
|
+
* @memberof OrderEdiDocument
|
|
29285
|
+
*/
|
|
29286
|
+
external_id?: string;
|
|
29287
|
+
/**
|
|
29288
|
+
*
|
|
29289
|
+
* @type {string}
|
|
29290
|
+
* @memberof OrderEdiDocument
|
|
29291
|
+
*/
|
|
29292
|
+
functional_acknowledgement?: string;
|
|
29293
|
+
/**
|
|
29294
|
+
*
|
|
29295
|
+
* @type {string}
|
|
29296
|
+
* @memberof OrderEdiDocument
|
|
29297
|
+
*/
|
|
29298
|
+
functional_acknowledgement_dts?: string;
|
|
29299
|
+
/**
|
|
29300
|
+
*
|
|
29301
|
+
* @type {boolean}
|
|
29302
|
+
* @memberof OrderEdiDocument
|
|
29303
|
+
*/
|
|
29304
|
+
functional_acknowledgement_pending?: boolean;
|
|
29305
|
+
/**
|
|
29306
|
+
*
|
|
29307
|
+
* @type {number}
|
|
29308
|
+
* @memberof OrderEdiDocument
|
|
29309
|
+
*/
|
|
29310
|
+
group_control_number?: number;
|
|
29311
|
+
/**
|
|
29312
|
+
*
|
|
29313
|
+
* @type {string}
|
|
29314
|
+
* @memberof OrderEdiDocument
|
|
29315
|
+
*/
|
|
29316
|
+
internal_id?: string;
|
|
29317
|
+
/**
|
|
29318
|
+
*
|
|
29319
|
+
* @type {string}
|
|
29320
|
+
* @memberof OrderEdiDocument
|
|
29321
|
+
*/
|
|
29322
|
+
merchant_id?: string;
|
|
29323
|
+
/**
|
|
29324
|
+
*
|
|
29325
|
+
* @type {string}
|
|
29326
|
+
* @memberof OrderEdiDocument
|
|
29327
|
+
*/
|
|
29328
|
+
order_id?: string;
|
|
29329
|
+
/**
|
|
29330
|
+
*
|
|
29331
|
+
* @type {boolean}
|
|
29332
|
+
* @memberof OrderEdiDocument
|
|
29333
|
+
*/
|
|
29334
|
+
test_mode?: boolean;
|
|
29335
|
+
}
|
|
29336
|
+
|
|
29337
|
+
/**
|
|
29338
|
+
* @export
|
|
29339
|
+
* @namespace OrderEdiDocument
|
|
29340
|
+
*/
|
|
29341
|
+
export namespace OrderEdiDocument {
|
|
29342
|
+
/**
|
|
29343
|
+
* @export
|
|
29344
|
+
* @enum {string}
|
|
29345
|
+
*/
|
|
29346
|
+
export enum DirectionEnum {
|
|
29347
|
+
Inbound = <any> 'inbound',
|
|
29348
|
+
Outbound = <any> 'outbound'
|
|
29349
|
+
}
|
|
29350
|
+
}
|
|
29351
|
+
|
|
29352
|
+
/**
|
|
29353
|
+
*
|
|
29354
|
+
* @export
|
|
29355
|
+
* @interface OrderEdiDocumentsResponse
|
|
29356
|
+
*/
|
|
29357
|
+
export interface OrderEdiDocumentsResponse {
|
|
29358
|
+
/**
|
|
29359
|
+
* edi_documents
|
|
29360
|
+
* @type {Array<OrderEdiDocument>}
|
|
29361
|
+
* @memberof OrderEdiDocumentsResponse
|
|
29362
|
+
*/
|
|
29363
|
+
ediDocuments?: Array<OrderEdiDocument>;
|
|
29364
|
+
/**
|
|
29365
|
+
*
|
|
29366
|
+
* @type {ModelError}
|
|
29367
|
+
* @memberof OrderEdiDocumentsResponse
|
|
29368
|
+
*/
|
|
29369
|
+
error?: ModelError;
|
|
29370
|
+
/**
|
|
29371
|
+
*
|
|
29372
|
+
* @type {ResponseMetadata}
|
|
29373
|
+
* @memberof OrderEdiDocumentsResponse
|
|
29374
|
+
*/
|
|
29375
|
+
metadata?: ResponseMetadata;
|
|
29376
|
+
/**
|
|
29377
|
+
* Indicates if API call was successful
|
|
29378
|
+
* @type {boolean}
|
|
29379
|
+
* @memberof OrderEdiDocumentsResponse
|
|
29380
|
+
*/
|
|
29381
|
+
success?: boolean;
|
|
29382
|
+
/**
|
|
29383
|
+
*
|
|
29384
|
+
* @type {Warning}
|
|
29385
|
+
* @memberof OrderEdiDocumentsResponse
|
|
29386
|
+
*/
|
|
29387
|
+
warning?: Warning;
|
|
29388
|
+
}
|
|
29389
|
+
|
|
29172
29390
|
/**
|
|
29173
29391
|
*
|
|
29174
29392
|
* @export
|
|
@@ -58328,6 +58546,58 @@ export const OrderApiFetchParamCreator = function (configuration?: Configuration
|
|
|
58328
58546
|
options: localVarRequestOptions,
|
|
58329
58547
|
};
|
|
58330
58548
|
},
|
|
58549
|
+
/**
|
|
58550
|
+
* Retrieve EDI documents associated with this order.
|
|
58551
|
+
* @summary Retrieve EDI documents associated with this order.
|
|
58552
|
+
* @param {string} order_id The order id to retrieve EDI documents for.
|
|
58553
|
+
* @param {*} [options] Override http request option.
|
|
58554
|
+
* @throws {RequiredError}
|
|
58555
|
+
*/
|
|
58556
|
+
getOrderEdiDocuments(order_id: string, options: any = {}): FetchArgs {
|
|
58557
|
+
// verify required parameter 'order_id' is not null or undefined
|
|
58558
|
+
if (order_id === null || order_id === undefined) {
|
|
58559
|
+
throw new RequiredError('order_id','Required parameter order_id was null or undefined when calling getOrderEdiDocuments.');
|
|
58560
|
+
}
|
|
58561
|
+
const localVarPath = `/order/orders/{order_id}/edi`
|
|
58562
|
+
.replace(`{${"order_id"}}`, encodeURIComponent(String(order_id)));
|
|
58563
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
58564
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
58565
|
+
const localVarHeaderParameter = {} as any;
|
|
58566
|
+
const localVarQueryParameter = {} as any;
|
|
58567
|
+
|
|
58568
|
+
if(configuration && configuration.apiVersion) {
|
|
58569
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
58570
|
+
}
|
|
58571
|
+
|
|
58572
|
+
|
|
58573
|
+
|
|
58574
|
+
// authentication ultraCartOauth required
|
|
58575
|
+
// oauth required
|
|
58576
|
+
if (configuration && configuration.accessToken) {
|
|
58577
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
58578
|
+
? configuration.accessToken("ultraCartOauth", ["order_write"])
|
|
58579
|
+
: configuration.accessToken;
|
|
58580
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
58581
|
+
}
|
|
58582
|
+
|
|
58583
|
+
// authentication ultraCartSimpleApiKey required
|
|
58584
|
+
if (configuration && configuration.apiKey) {
|
|
58585
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
58586
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
58587
|
+
: configuration.apiKey;
|
|
58588
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
58589
|
+
}
|
|
58590
|
+
|
|
58591
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
58592
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
58593
|
+
delete localVarUrlObj.search;
|
|
58594
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
58595
|
+
|
|
58596
|
+
return {
|
|
58597
|
+
url: url.format(localVarUrlObj),
|
|
58598
|
+
options: localVarRequestOptions,
|
|
58599
|
+
};
|
|
58600
|
+
},
|
|
58331
58601
|
/**
|
|
58332
58602
|
* Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
58333
58603
|
* @summary Retrieve orders
|
|
@@ -59507,6 +59777,27 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
|
59507
59777
|
});
|
|
59508
59778
|
};
|
|
59509
59779
|
},
|
|
59780
|
+
/**
|
|
59781
|
+
* Retrieve EDI documents associated with this order.
|
|
59782
|
+
* @summary Retrieve EDI documents associated with this order.
|
|
59783
|
+
* @param {string} order_id The order id to retrieve EDI documents for.
|
|
59784
|
+
* @param {*} [options] Override http request option.
|
|
59785
|
+
* @throws {RequiredError}
|
|
59786
|
+
*/
|
|
59787
|
+
getOrderEdiDocuments(order_id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<OrderEdiDocumentsResponse> {
|
|
59788
|
+
const localVarFetchArgs = OrderApiFetchParamCreator(configuration).getOrderEdiDocuments(order_id, options);
|
|
59789
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
59790
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
59791
|
+
|
|
59792
|
+
if (response.status >= 200 && response.status < 300) {
|
|
59793
|
+
return response.json();
|
|
59794
|
+
|
|
59795
|
+
} else {
|
|
59796
|
+
throw response;
|
|
59797
|
+
}
|
|
59798
|
+
});
|
|
59799
|
+
};
|
|
59800
|
+
},
|
|
59510
59801
|
/**
|
|
59511
59802
|
* Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
59512
59803
|
* @summary Retrieve orders
|
|
@@ -59952,6 +60243,16 @@ export const OrderApiFactory = function (configuration?: Configuration, fetch?:
|
|
|
59952
60243
|
getOrderByToken(order_by_token_query: OrderByTokenQuery, _expand?: string, options?: any) {
|
|
59953
60244
|
return OrderApiFp(configuration).getOrderByToken(order_by_token_query, _expand, options)(fetch, basePath);
|
|
59954
60245
|
},
|
|
60246
|
+
/**
|
|
60247
|
+
* Retrieve EDI documents associated with this order.
|
|
60248
|
+
* @summary Retrieve EDI documents associated with this order.
|
|
60249
|
+
* @param {string} order_id The order id to retrieve EDI documents for.
|
|
60250
|
+
* @param {*} [options] Override http request option.
|
|
60251
|
+
* @throws {RequiredError}
|
|
60252
|
+
*/
|
|
60253
|
+
getOrderEdiDocuments(order_id: string, options?: any) {
|
|
60254
|
+
return OrderApiFp(configuration).getOrderEdiDocuments(order_id, options)(fetch, basePath);
|
|
60255
|
+
},
|
|
59955
60256
|
/**
|
|
59956
60257
|
* Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
59957
60258
|
* @summary Retrieve orders
|
|
@@ -60265,6 +60566,16 @@ export interface OrderApiInterface {
|
|
|
60265
60566
|
*/
|
|
60266
60567
|
getOrderByToken(order_by_token_query: OrderByTokenQuery, _expand?: string, options?: any): Promise<OrderResponse>;
|
|
60267
60568
|
|
|
60569
|
+
/**
|
|
60570
|
+
* Retrieve EDI documents associated with this order.
|
|
60571
|
+
* @summary Retrieve EDI documents associated with this order.
|
|
60572
|
+
* @param {string} order_id The order id to retrieve EDI documents for.
|
|
60573
|
+
* @param {*} [options] Override http request option.
|
|
60574
|
+
* @throws {RequiredError}
|
|
60575
|
+
* @memberof OrderApiInterface
|
|
60576
|
+
*/
|
|
60577
|
+
getOrderEdiDocuments(order_id: string, options?: any): Promise<OrderEdiDocumentsResponse>;
|
|
60578
|
+
|
|
60268
60579
|
/**
|
|
60269
60580
|
* Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
60270
60581
|
* @summary Retrieve orders
|
|
@@ -60604,6 +60915,18 @@ export class OrderApi extends BaseAPI implements OrderApiInterface {
|
|
|
60604
60915
|
return OrderApiFp(this.configuration).getOrderByToken(order_by_token_query, _expand, options)(this.fetch, this.basePath);
|
|
60605
60916
|
}
|
|
60606
60917
|
|
|
60918
|
+
/**
|
|
60919
|
+
* Retrieve EDI documents associated with this order.
|
|
60920
|
+
* @summary Retrieve EDI documents associated with this order.
|
|
60921
|
+
* @param {string} order_id The order id to retrieve EDI documents for.
|
|
60922
|
+
* @param {*} [options] Override http request option.
|
|
60923
|
+
* @throws {RequiredError}
|
|
60924
|
+
* @memberof OrderApi
|
|
60925
|
+
*/
|
|
60926
|
+
public getOrderEdiDocuments(order_id: string, options?: any) {
|
|
60927
|
+
return OrderApiFp(this.configuration).getOrderEdiDocuments(order_id, options)(this.fetch, this.basePath);
|
|
60928
|
+
}
|
|
60929
|
+
|
|
60607
60930
|
/**
|
|
60608
60931
|
* Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
60609
60932
|
* @summary Retrieve orders
|
package/dist/api.d.ts
CHANGED
|
@@ -6502,6 +6502,12 @@ export interface Conversation {
|
|
|
6502
6502
|
* @memberof Conversation
|
|
6503
6503
|
*/
|
|
6504
6504
|
participants?: Array<ConversationParticipant>;
|
|
6505
|
+
/**
|
|
6506
|
+
*
|
|
6507
|
+
* @type {ConversationSentiment}
|
|
6508
|
+
* @memberof Conversation
|
|
6509
|
+
*/
|
|
6510
|
+
sentiment?: ConversationSentiment;
|
|
6505
6511
|
/**
|
|
6506
6512
|
* Start of the conversation date/time
|
|
6507
6513
|
* @type {string}
|
|
@@ -8299,6 +8305,65 @@ export interface ConversationSearchResponse {
|
|
|
8299
8305
|
*/
|
|
8300
8306
|
total?: number;
|
|
8301
8307
|
}
|
|
8308
|
+
/**
|
|
8309
|
+
*
|
|
8310
|
+
* @export
|
|
8311
|
+
* @interface ConversationSentiment
|
|
8312
|
+
*/
|
|
8313
|
+
export interface ConversationSentiment {
|
|
8314
|
+
/**
|
|
8315
|
+
* The last time the detect sentiment was run on this conversation
|
|
8316
|
+
* @type {string}
|
|
8317
|
+
* @memberof ConversationSentiment
|
|
8318
|
+
*/
|
|
8319
|
+
last_detect_sentiment?: string;
|
|
8320
|
+
/**
|
|
8321
|
+
* The mixed score
|
|
8322
|
+
* @type {number}
|
|
8323
|
+
* @memberof ConversationSentiment
|
|
8324
|
+
*/
|
|
8325
|
+
mixed?: number;
|
|
8326
|
+
/**
|
|
8327
|
+
* The negative score
|
|
8328
|
+
* @type {number}
|
|
8329
|
+
* @memberof ConversationSentiment
|
|
8330
|
+
*/
|
|
8331
|
+
negative?: number;
|
|
8332
|
+
/**
|
|
8333
|
+
* The neutral score
|
|
8334
|
+
* @type {number}
|
|
8335
|
+
* @memberof ConversationSentiment
|
|
8336
|
+
*/
|
|
8337
|
+
neutral?: number;
|
|
8338
|
+
/**
|
|
8339
|
+
* The positive score
|
|
8340
|
+
* @type {number}
|
|
8341
|
+
* @memberof ConversationSentiment
|
|
8342
|
+
*/
|
|
8343
|
+
positive?: number;
|
|
8344
|
+
/**
|
|
8345
|
+
* The overall sentiment
|
|
8346
|
+
* @type {string}
|
|
8347
|
+
* @memberof ConversationSentiment
|
|
8348
|
+
*/
|
|
8349
|
+
sentiment?: ConversationSentiment.SentimentEnum;
|
|
8350
|
+
}
|
|
8351
|
+
/**
|
|
8352
|
+
* @export
|
|
8353
|
+
* @namespace ConversationSentiment
|
|
8354
|
+
*/
|
|
8355
|
+
export declare namespace ConversationSentiment {
|
|
8356
|
+
/**
|
|
8357
|
+
* @export
|
|
8358
|
+
* @enum {string}
|
|
8359
|
+
*/
|
|
8360
|
+
enum SentimentEnum {
|
|
8361
|
+
POSITIVE,
|
|
8362
|
+
NEUTRAL,
|
|
8363
|
+
NEGATIVE,
|
|
8364
|
+
MIXED
|
|
8365
|
+
}
|
|
8366
|
+
}
|
|
8302
8367
|
/**
|
|
8303
8368
|
*
|
|
8304
8369
|
* @export
|
|
@@ -8421,6 +8486,12 @@ export interface ConversationSummary {
|
|
|
8421
8486
|
* @memberof ConversationSummary
|
|
8422
8487
|
*/
|
|
8423
8488
|
participants?: Array<ConversationParticipant>;
|
|
8489
|
+
/**
|
|
8490
|
+
*
|
|
8491
|
+
* @type {ConversationSentiment}
|
|
8492
|
+
* @memberof ConversationSummary
|
|
8493
|
+
*/
|
|
8494
|
+
sentiment?: ConversationSentiment;
|
|
8424
8495
|
/**
|
|
8425
8496
|
* Start of the conversation date/time
|
|
8426
8497
|
* @type {string}
|
|
@@ -28549,6 +28620,148 @@ export interface OrderEdi {
|
|
|
28549
28620
|
*/
|
|
28550
28621
|
ship_to_edi_code?: string;
|
|
28551
28622
|
}
|
|
28623
|
+
/**
|
|
28624
|
+
*
|
|
28625
|
+
* @export
|
|
28626
|
+
* @interface OrderEdiDocument
|
|
28627
|
+
*/
|
|
28628
|
+
export interface OrderEdiDocument {
|
|
28629
|
+
/**
|
|
28630
|
+
* Direction the document flowed
|
|
28631
|
+
* @type {string}
|
|
28632
|
+
* @memberof OrderEdiDocument
|
|
28633
|
+
*/
|
|
28634
|
+
direction?: OrderEdiDocument.DirectionEnum;
|
|
28635
|
+
/**
|
|
28636
|
+
* Date/time the document was created/received
|
|
28637
|
+
* @type {string}
|
|
28638
|
+
* @memberof OrderEdiDocument
|
|
28639
|
+
*/
|
|
28640
|
+
doc_dts?: string;
|
|
28641
|
+
/**
|
|
28642
|
+
*
|
|
28643
|
+
* @type {string}
|
|
28644
|
+
* @memberof OrderEdiDocument
|
|
28645
|
+
*/
|
|
28646
|
+
document?: string;
|
|
28647
|
+
/**
|
|
28648
|
+
*
|
|
28649
|
+
* @type {string}
|
|
28650
|
+
* @memberof OrderEdiDocument
|
|
28651
|
+
*/
|
|
28652
|
+
document_type_description?: string;
|
|
28653
|
+
/**
|
|
28654
|
+
*
|
|
28655
|
+
* @type {number}
|
|
28656
|
+
* @memberof OrderEdiDocument
|
|
28657
|
+
*/
|
|
28658
|
+
document_type_number?: number;
|
|
28659
|
+
/**
|
|
28660
|
+
*
|
|
28661
|
+
* @type {string}
|
|
28662
|
+
* @memberof OrderEdiDocument
|
|
28663
|
+
*/
|
|
28664
|
+
external_id?: string;
|
|
28665
|
+
/**
|
|
28666
|
+
*
|
|
28667
|
+
* @type {string}
|
|
28668
|
+
* @memberof OrderEdiDocument
|
|
28669
|
+
*/
|
|
28670
|
+
functional_acknowledgement?: string;
|
|
28671
|
+
/**
|
|
28672
|
+
*
|
|
28673
|
+
* @type {string}
|
|
28674
|
+
* @memberof OrderEdiDocument
|
|
28675
|
+
*/
|
|
28676
|
+
functional_acknowledgement_dts?: string;
|
|
28677
|
+
/**
|
|
28678
|
+
*
|
|
28679
|
+
* @type {boolean}
|
|
28680
|
+
* @memberof OrderEdiDocument
|
|
28681
|
+
*/
|
|
28682
|
+
functional_acknowledgement_pending?: boolean;
|
|
28683
|
+
/**
|
|
28684
|
+
*
|
|
28685
|
+
* @type {number}
|
|
28686
|
+
* @memberof OrderEdiDocument
|
|
28687
|
+
*/
|
|
28688
|
+
group_control_number?: number;
|
|
28689
|
+
/**
|
|
28690
|
+
*
|
|
28691
|
+
* @type {string}
|
|
28692
|
+
* @memberof OrderEdiDocument
|
|
28693
|
+
*/
|
|
28694
|
+
internal_id?: string;
|
|
28695
|
+
/**
|
|
28696
|
+
*
|
|
28697
|
+
* @type {string}
|
|
28698
|
+
* @memberof OrderEdiDocument
|
|
28699
|
+
*/
|
|
28700
|
+
merchant_id?: string;
|
|
28701
|
+
/**
|
|
28702
|
+
*
|
|
28703
|
+
* @type {string}
|
|
28704
|
+
* @memberof OrderEdiDocument
|
|
28705
|
+
*/
|
|
28706
|
+
order_id?: string;
|
|
28707
|
+
/**
|
|
28708
|
+
*
|
|
28709
|
+
* @type {boolean}
|
|
28710
|
+
* @memberof OrderEdiDocument
|
|
28711
|
+
*/
|
|
28712
|
+
test_mode?: boolean;
|
|
28713
|
+
}
|
|
28714
|
+
/**
|
|
28715
|
+
* @export
|
|
28716
|
+
* @namespace OrderEdiDocument
|
|
28717
|
+
*/
|
|
28718
|
+
export declare namespace OrderEdiDocument {
|
|
28719
|
+
/**
|
|
28720
|
+
* @export
|
|
28721
|
+
* @enum {string}
|
|
28722
|
+
*/
|
|
28723
|
+
enum DirectionEnum {
|
|
28724
|
+
Inbound,
|
|
28725
|
+
Outbound
|
|
28726
|
+
}
|
|
28727
|
+
}
|
|
28728
|
+
/**
|
|
28729
|
+
*
|
|
28730
|
+
* @export
|
|
28731
|
+
* @interface OrderEdiDocumentsResponse
|
|
28732
|
+
*/
|
|
28733
|
+
export interface OrderEdiDocumentsResponse {
|
|
28734
|
+
/**
|
|
28735
|
+
* edi_documents
|
|
28736
|
+
* @type {Array<OrderEdiDocument>}
|
|
28737
|
+
* @memberof OrderEdiDocumentsResponse
|
|
28738
|
+
*/
|
|
28739
|
+
ediDocuments?: Array<OrderEdiDocument>;
|
|
28740
|
+
/**
|
|
28741
|
+
*
|
|
28742
|
+
* @type {ModelError}
|
|
28743
|
+
* @memberof OrderEdiDocumentsResponse
|
|
28744
|
+
*/
|
|
28745
|
+
error?: ModelError;
|
|
28746
|
+
/**
|
|
28747
|
+
*
|
|
28748
|
+
* @type {ResponseMetadata}
|
|
28749
|
+
* @memberof OrderEdiDocumentsResponse
|
|
28750
|
+
*/
|
|
28751
|
+
metadata?: ResponseMetadata;
|
|
28752
|
+
/**
|
|
28753
|
+
* Indicates if API call was successful
|
|
28754
|
+
* @type {boolean}
|
|
28755
|
+
* @memberof OrderEdiDocumentsResponse
|
|
28756
|
+
*/
|
|
28757
|
+
success?: boolean;
|
|
28758
|
+
/**
|
|
28759
|
+
*
|
|
28760
|
+
* @type {Warning}
|
|
28761
|
+
* @memberof OrderEdiDocumentsResponse
|
|
28762
|
+
*/
|
|
28763
|
+
warning?: Warning;
|
|
28764
|
+
}
|
|
28552
28765
|
/**
|
|
28553
28766
|
*
|
|
28554
28767
|
* @export
|
|
@@ -45796,6 +46009,14 @@ export declare const OrderApiFetchParamCreator: (configuration?: Configuration)
|
|
|
45796
46009
|
* @throws {RequiredError}
|
|
45797
46010
|
*/
|
|
45798
46011
|
getOrderByToken(order_by_token_query: OrderByTokenQuery, _expand?: string, options?: any): FetchArgs;
|
|
46012
|
+
/**
|
|
46013
|
+
* Retrieve EDI documents associated with this order.
|
|
46014
|
+
* @summary Retrieve EDI documents associated with this order.
|
|
46015
|
+
* @param {string} order_id The order id to retrieve EDI documents for.
|
|
46016
|
+
* @param {*} [options] Override http request option.
|
|
46017
|
+
* @throws {RequiredError}
|
|
46018
|
+
*/
|
|
46019
|
+
getOrderEdiDocuments(order_id: string, options?: any): FetchArgs;
|
|
45799
46020
|
/**
|
|
45800
46021
|
* Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
45801
46022
|
* @summary Retrieve orders
|
|
@@ -46056,6 +46277,14 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
46056
46277
|
* @throws {RequiredError}
|
|
46057
46278
|
*/
|
|
46058
46279
|
getOrderByToken(order_by_token_query: OrderByTokenQuery, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<OrderResponse>;
|
|
46280
|
+
/**
|
|
46281
|
+
* Retrieve EDI documents associated with this order.
|
|
46282
|
+
* @summary Retrieve EDI documents associated with this order.
|
|
46283
|
+
* @param {string} order_id The order id to retrieve EDI documents for.
|
|
46284
|
+
* @param {*} [options] Override http request option.
|
|
46285
|
+
* @throws {RequiredError}
|
|
46286
|
+
*/
|
|
46287
|
+
getOrderEdiDocuments(order_id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<OrderEdiDocumentsResponse>;
|
|
46059
46288
|
/**
|
|
46060
46289
|
* Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
46061
46290
|
* @summary Retrieve orders
|
|
@@ -46316,6 +46545,14 @@ export declare const OrderApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
46316
46545
|
* @throws {RequiredError}
|
|
46317
46546
|
*/
|
|
46318
46547
|
getOrderByToken(order_by_token_query: OrderByTokenQuery, _expand?: string, options?: any): Promise<OrderResponse>;
|
|
46548
|
+
/**
|
|
46549
|
+
* Retrieve EDI documents associated with this order.
|
|
46550
|
+
* @summary Retrieve EDI documents associated with this order.
|
|
46551
|
+
* @param {string} order_id The order id to retrieve EDI documents for.
|
|
46552
|
+
* @param {*} [options] Override http request option.
|
|
46553
|
+
* @throws {RequiredError}
|
|
46554
|
+
*/
|
|
46555
|
+
getOrderEdiDocuments(order_id: string, options?: any): Promise<OrderEdiDocumentsResponse>;
|
|
46319
46556
|
/**
|
|
46320
46557
|
* Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
46321
46558
|
* @summary Retrieve orders
|
|
@@ -46590,6 +46827,15 @@ export interface OrderApiInterface {
|
|
|
46590
46827
|
* @memberof OrderApiInterface
|
|
46591
46828
|
*/
|
|
46592
46829
|
getOrderByToken(order_by_token_query: OrderByTokenQuery, _expand?: string, options?: any): Promise<OrderResponse>;
|
|
46830
|
+
/**
|
|
46831
|
+
* Retrieve EDI documents associated with this order.
|
|
46832
|
+
* @summary Retrieve EDI documents associated with this order.
|
|
46833
|
+
* @param {string} order_id The order id to retrieve EDI documents for.
|
|
46834
|
+
* @param {*} [options] Override http request option.
|
|
46835
|
+
* @throws {RequiredError}
|
|
46836
|
+
* @memberof OrderApiInterface
|
|
46837
|
+
*/
|
|
46838
|
+
getOrderEdiDocuments(order_id: string, options?: any): Promise<OrderEdiDocumentsResponse>;
|
|
46593
46839
|
/**
|
|
46594
46840
|
* Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
46595
46841
|
* @summary Retrieve orders
|
|
@@ -46877,6 +47123,15 @@ export declare class OrderApi extends BaseAPI implements OrderApiInterface {
|
|
|
46877
47123
|
* @memberof OrderApi
|
|
46878
47124
|
*/
|
|
46879
47125
|
getOrderByToken(order_by_token_query: OrderByTokenQuery, _expand?: string, options?: any): Promise<OrderResponse>;
|
|
47126
|
+
/**
|
|
47127
|
+
* Retrieve EDI documents associated with this order.
|
|
47128
|
+
* @summary Retrieve EDI documents associated with this order.
|
|
47129
|
+
* @param {string} order_id The order id to retrieve EDI documents for.
|
|
47130
|
+
* @param {*} [options] Override http request option.
|
|
47131
|
+
* @throws {RequiredError}
|
|
47132
|
+
* @memberof OrderApi
|
|
47133
|
+
*/
|
|
47134
|
+
getOrderEdiDocuments(order_id: string, options?: any): Promise<OrderEdiDocumentsResponse>;
|
|
46880
47135
|
/**
|
|
46881
47136
|
* Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
46882
47137
|
* @summary Retrieve orders
|
package/dist/api.js
CHANGED
|
@@ -28,9 +28,9 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
28
28
|
};
|
|
29
29
|
})();
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = exports.OauthApi = exports.OauthApiFactory = exports.OauthApiFp = exports.OauthApiFetchParamCreator = exports.ItemApi = exports.ItemApiFactory = exports.ItemApiFp = exports.ItemApiFetchParamCreator = exports.IntegrationLogApi = void 0;
|
|
31
|
+
exports.OrderItem = exports.OrderFraudScore = exports.OrderFormat = exports.OrderEdiDocument = exports.OrderAutoOrder = exports.OrderAffiliateLedger = exports.Order = exports.OauthTokenResponse = exports.ItemThirdPartyEmailMarketing = exports.ItemTax = exports.ItemTag = exports.ItemShippingMethod = exports.ItemShippingDestinationRestriction = exports.ItemRestrictionItem = exports.ItemRelatedItem = exports.ItemOptionValue = exports.ItemOption = exports.ItemContentMultimedia = exports.ItemAutoOrderStep = exports.Experiment = exports.EmailPerformance = exports.EmailCommseqStep = exports.Distance = exports.ConversationWebsocketMessage = exports.ConversationWebchatQueueStatusUpdateRequest = exports.ConversationWebchatQueueStatusAgent = exports.ConversationSummary = exports.ConversationSentiment = exports.ConversationMessageTransportStatus = exports.ConversationMessage = exports.ConversationEventRRWeb = exports.ConversationEngagementEquationFunction = exports.ConversationEngagement = exports.ConversationAgentProfile = exports.Conversation = exports.CheckoutHandoffRequest = exports.ChannelPartnerOrderItem = exports.ChannelPartnerOrder = exports.CartKitComponentOption = exports.CartItemOption = exports.CartItemMultimedia = exports.CartCustomerProfileCreditCard = exports.AutoOrderItemSimpleSchedule = exports.AutoOrderItem = exports.AutoOrder = exports.AffiliateLink = exports.AffiliateLedger = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
|
|
32
|
+
exports.IntegrationLogApiFetchParamCreator = exports.GiftCertificateApi = exports.GiftCertificateApiFactory = exports.GiftCertificateApiFp = exports.GiftCertificateApiFetchParamCreator = exports.FulfillmentApi = exports.FulfillmentApiFactory = exports.FulfillmentApiFp = exports.FulfillmentApiFetchParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiFetchParamCreator = exports.CouponApi = exports.CouponApiFactory = exports.CouponApiFp = exports.CouponApiFetchParamCreator = exports.ConversationApi = exports.ConversationApiFactory = exports.ConversationApiFp = exports.ConversationApiFetchParamCreator = exports.CheckoutApi = exports.CheckoutApiFactory = exports.CheckoutApiFp = exports.CheckoutApiFetchParamCreator = exports.ChargebackApi = exports.ChargebackApiFactory = exports.ChargebackApiFp = exports.ChargebackApiFetchParamCreator = exports.ChannelPartnerApi = exports.ChannelPartnerApiFactory = exports.ChannelPartnerApiFp = exports.ChannelPartnerApiFetchParamCreator = exports.AutoOrderApi = exports.AutoOrderApiFactory = exports.AutoOrderApiFp = exports.AutoOrderApiFetchParamCreator = exports.AffiliateApi = exports.AffiliateApiFactory = exports.AffiliateApiFp = exports.AffiliateApiFetchParamCreator = exports.Weight = exports.Webhook = exports.TempMultimedia = exports.PointOfSaleReader = exports.OrderQuery = exports.OrderPaymentECheck = exports.OrderPaymentCreditCard = exports.OrderPayment = exports.OrderItemOption = void 0;
|
|
33
|
+
exports.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = exports.OauthApi = exports.OauthApiFactory = exports.OauthApiFp = exports.OauthApiFetchParamCreator = exports.ItemApi = exports.ItemApiFactory = exports.ItemApiFp = exports.ItemApiFetchParamCreator = exports.IntegrationLogApi = exports.IntegrationLogApiFactory = exports.IntegrationLogApiFp = void 0;
|
|
34
34
|
var url = require("url");
|
|
35
35
|
var portableFetch = require("portable-fetch");
|
|
36
36
|
var BASE_PATH = "https://secure.ultracart.com/rest/v2".replace(/\/+$/, "");
|
|
@@ -551,6 +551,24 @@ var ConversationMessageTransportStatus;
|
|
|
551
551
|
StatusEnum[StatusEnum["PINPOINTERROR"] = 'PINPOINT_ERROR'] = "PINPOINTERROR";
|
|
552
552
|
})(StatusEnum = ConversationMessageTransportStatus.StatusEnum || (ConversationMessageTransportStatus.StatusEnum = {}));
|
|
553
553
|
})(ConversationMessageTransportStatus = exports.ConversationMessageTransportStatus || (exports.ConversationMessageTransportStatus = {}));
|
|
554
|
+
/**
|
|
555
|
+
* @export
|
|
556
|
+
* @namespace ConversationSentiment
|
|
557
|
+
*/
|
|
558
|
+
var ConversationSentiment;
|
|
559
|
+
(function (ConversationSentiment) {
|
|
560
|
+
/**
|
|
561
|
+
* @export
|
|
562
|
+
* @enum {string}
|
|
563
|
+
*/
|
|
564
|
+
var SentimentEnum;
|
|
565
|
+
(function (SentimentEnum) {
|
|
566
|
+
SentimentEnum[SentimentEnum["POSITIVE"] = 'POSITIVE'] = "POSITIVE";
|
|
567
|
+
SentimentEnum[SentimentEnum["NEUTRAL"] = 'NEUTRAL'] = "NEUTRAL";
|
|
568
|
+
SentimentEnum[SentimentEnum["NEGATIVE"] = 'NEGATIVE'] = "NEGATIVE";
|
|
569
|
+
SentimentEnum[SentimentEnum["MIXED"] = 'MIXED'] = "MIXED";
|
|
570
|
+
})(SentimentEnum = ConversationSentiment.SentimentEnum || (ConversationSentiment.SentimentEnum = {}));
|
|
571
|
+
})(ConversationSentiment = exports.ConversationSentiment || (exports.ConversationSentiment = {}));
|
|
554
572
|
/**
|
|
555
573
|
* @export
|
|
556
574
|
* @namespace ConversationSummary
|
|
@@ -994,6 +1012,22 @@ var OrderAutoOrder;
|
|
|
994
1012
|
StatusEnum[StatusEnum["Disabled"] = 'disabled'] = "Disabled";
|
|
995
1013
|
})(StatusEnum = OrderAutoOrder.StatusEnum || (OrderAutoOrder.StatusEnum = {}));
|
|
996
1014
|
})(OrderAutoOrder = exports.OrderAutoOrder || (exports.OrderAutoOrder = {}));
|
|
1015
|
+
/**
|
|
1016
|
+
* @export
|
|
1017
|
+
* @namespace OrderEdiDocument
|
|
1018
|
+
*/
|
|
1019
|
+
var OrderEdiDocument;
|
|
1020
|
+
(function (OrderEdiDocument) {
|
|
1021
|
+
/**
|
|
1022
|
+
* @export
|
|
1023
|
+
* @enum {string}
|
|
1024
|
+
*/
|
|
1025
|
+
var DirectionEnum;
|
|
1026
|
+
(function (DirectionEnum) {
|
|
1027
|
+
DirectionEnum[DirectionEnum["Inbound"] = 'inbound'] = "Inbound";
|
|
1028
|
+
DirectionEnum[DirectionEnum["Outbound"] = 'outbound'] = "Outbound";
|
|
1029
|
+
})(DirectionEnum = OrderEdiDocument.DirectionEnum || (OrderEdiDocument.DirectionEnum = {}));
|
|
1030
|
+
})(OrderEdiDocument = exports.OrderEdiDocument || (exports.OrderEdiDocument = {}));
|
|
997
1031
|
/**
|
|
998
1032
|
* @export
|
|
999
1033
|
* @namespace OrderFormat
|
|
@@ -17954,6 +17988,52 @@ var OrderApiFetchParamCreator = function (configuration) {
|
|
|
17954
17988
|
options: localVarRequestOptions,
|
|
17955
17989
|
};
|
|
17956
17990
|
},
|
|
17991
|
+
/**
|
|
17992
|
+
* Retrieve EDI documents associated with this order.
|
|
17993
|
+
* @summary Retrieve EDI documents associated with this order.
|
|
17994
|
+
* @param {string} order_id The order id to retrieve EDI documents for.
|
|
17995
|
+
* @param {*} [options] Override http request option.
|
|
17996
|
+
* @throws {RequiredError}
|
|
17997
|
+
*/
|
|
17998
|
+
getOrderEdiDocuments: function (order_id, options) {
|
|
17999
|
+
if (options === void 0) { options = {}; }
|
|
18000
|
+
// verify required parameter 'order_id' is not null or undefined
|
|
18001
|
+
if (order_id === null || order_id === undefined) {
|
|
18002
|
+
throw new RequiredError('order_id', 'Required parameter order_id was null or undefined when calling getOrderEdiDocuments.');
|
|
18003
|
+
}
|
|
18004
|
+
var localVarPath = "/order/orders/{order_id}/edi"
|
|
18005
|
+
.replace("{".concat("order_id", "}"), encodeURIComponent(String(order_id)));
|
|
18006
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
18007
|
+
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
18008
|
+
var localVarHeaderParameter = {};
|
|
18009
|
+
var localVarQueryParameter = {};
|
|
18010
|
+
if (configuration && configuration.apiVersion) {
|
|
18011
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
18012
|
+
}
|
|
18013
|
+
// authentication ultraCartOauth required
|
|
18014
|
+
// oauth required
|
|
18015
|
+
if (configuration && configuration.accessToken) {
|
|
18016
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
18017
|
+
? configuration.accessToken("ultraCartOauth", ["order_write"])
|
|
18018
|
+
: configuration.accessToken;
|
|
18019
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
18020
|
+
}
|
|
18021
|
+
// authentication ultraCartSimpleApiKey required
|
|
18022
|
+
if (configuration && configuration.apiKey) {
|
|
18023
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
18024
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
18025
|
+
: configuration.apiKey;
|
|
18026
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
18027
|
+
}
|
|
18028
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
18029
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
18030
|
+
delete localVarUrlObj.search;
|
|
18031
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
18032
|
+
return {
|
|
18033
|
+
url: url.format(localVarUrlObj),
|
|
18034
|
+
options: localVarRequestOptions,
|
|
18035
|
+
};
|
|
18036
|
+
},
|
|
17957
18037
|
/**
|
|
17958
18038
|
* Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
17959
18039
|
* @summary Retrieve orders
|
|
@@ -19021,6 +19101,28 @@ var OrderApiFp = function (configuration) {
|
|
|
19021
19101
|
});
|
|
19022
19102
|
};
|
|
19023
19103
|
},
|
|
19104
|
+
/**
|
|
19105
|
+
* Retrieve EDI documents associated with this order.
|
|
19106
|
+
* @summary Retrieve EDI documents associated with this order.
|
|
19107
|
+
* @param {string} order_id The order id to retrieve EDI documents for.
|
|
19108
|
+
* @param {*} [options] Override http request option.
|
|
19109
|
+
* @throws {RequiredError}
|
|
19110
|
+
*/
|
|
19111
|
+
getOrderEdiDocuments: function (order_id, options) {
|
|
19112
|
+
var localVarFetchArgs = (0, exports.OrderApiFetchParamCreator)(configuration).getOrderEdiDocuments(order_id, options);
|
|
19113
|
+
return function (fetch, basePath) {
|
|
19114
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
19115
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
19116
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
19117
|
+
if (response.status >= 200 && response.status < 300) {
|
|
19118
|
+
return response.json();
|
|
19119
|
+
}
|
|
19120
|
+
else {
|
|
19121
|
+
throw response;
|
|
19122
|
+
}
|
|
19123
|
+
});
|
|
19124
|
+
};
|
|
19125
|
+
},
|
|
19024
19126
|
/**
|
|
19025
19127
|
* Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
19026
19128
|
* @summary Retrieve orders
|
|
@@ -19478,6 +19580,16 @@ var OrderApiFactory = function (configuration, fetch, basePath) {
|
|
|
19478
19580
|
getOrderByToken: function (order_by_token_query, _expand, options) {
|
|
19479
19581
|
return (0, exports.OrderApiFp)(configuration).getOrderByToken(order_by_token_query, _expand, options)(fetch, basePath);
|
|
19480
19582
|
},
|
|
19583
|
+
/**
|
|
19584
|
+
* Retrieve EDI documents associated with this order.
|
|
19585
|
+
* @summary Retrieve EDI documents associated with this order.
|
|
19586
|
+
* @param {string} order_id The order id to retrieve EDI documents for.
|
|
19587
|
+
* @param {*} [options] Override http request option.
|
|
19588
|
+
* @throws {RequiredError}
|
|
19589
|
+
*/
|
|
19590
|
+
getOrderEdiDocuments: function (order_id, options) {
|
|
19591
|
+
return (0, exports.OrderApiFp)(configuration).getOrderEdiDocuments(order_id, options)(fetch, basePath);
|
|
19592
|
+
},
|
|
19481
19593
|
/**
|
|
19482
19594
|
* Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
19483
19595
|
* @summary Retrieve orders
|
|
@@ -19809,6 +19921,17 @@ var OrderApi = /** @class */ (function (_super) {
|
|
|
19809
19921
|
OrderApi.prototype.getOrderByToken = function (order_by_token_query, _expand, options) {
|
|
19810
19922
|
return (0, exports.OrderApiFp)(this.configuration).getOrderByToken(order_by_token_query, _expand, options)(this.fetch, this.basePath);
|
|
19811
19923
|
};
|
|
19924
|
+
/**
|
|
19925
|
+
* Retrieve EDI documents associated with this order.
|
|
19926
|
+
* @summary Retrieve EDI documents associated with this order.
|
|
19927
|
+
* @param {string} order_id The order id to retrieve EDI documents for.
|
|
19928
|
+
* @param {*} [options] Override http request option.
|
|
19929
|
+
* @throws {RequiredError}
|
|
19930
|
+
* @memberof OrderApi
|
|
19931
|
+
*/
|
|
19932
|
+
OrderApi.prototype.getOrderEdiDocuments = function (order_id, options) {
|
|
19933
|
+
return (0, exports.OrderApiFp)(this.configuration).getOrderEdiDocuments(order_id, options)(this.fetch, this.basePath);
|
|
19934
|
+
};
|
|
19812
19935
|
/**
|
|
19813
19936
|
* Retrieves a group of orders from the account. If no parameters are specified, the API call will fail with a bad request error. Always specify some parameters to limit the scope of the orders returned to ones you are truly interested in. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
|
19814
19937
|
* @summary Retrieve orders
|