ultracart_rest_api_v2_typescript 3.10.103 → 3.10.105
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 +162 -1
- package/dist/api.d.ts +98 -1
- package/dist/api.js +89 -0
- 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.105
|
|
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.105 --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.105 | 01/24/2023 | auto order - cancel minimum and change balance options |
|
|
58
|
+
| 3.10.104 | 01/23/2023 | conversation - method to fetch single engagement record |
|
|
57
59
|
| 3.10.103 | 01/19/2023 | added skip_on_rebill field to coupon object |
|
|
58
60
|
| 3.10.102 | 01/19/2023 | convo - getConversationPermissions added |
|
|
59
61
|
| 3.10.101 | 01/18/2023 | conversation get dept member list method added |
|
package/api.ts
CHANGED
|
@@ -22387,6 +22387,12 @@ export interface ItemAutoOrder {
|
|
|
22387
22387
|
* @memberof ItemAutoOrder
|
|
22388
22388
|
*/
|
|
22389
22389
|
auth_test_amount?: number;
|
|
22390
|
+
/**
|
|
22391
|
+
* If true, the cost of the cancel item will be the remaining balance of the minimum rebill or lifetime value
|
|
22392
|
+
* @type {boolean}
|
|
22393
|
+
* @memberof ItemAutoOrder
|
|
22394
|
+
*/
|
|
22395
|
+
auto_order_cancel_charge_minimum_balance?: boolean;
|
|
22390
22396
|
/**
|
|
22391
22397
|
* Item id to attempt charging the customer for if they cancel
|
|
22392
22398
|
* @type {string}
|
|
@@ -22399,6 +22405,18 @@ export interface ItemAutoOrder {
|
|
|
22399
22405
|
* @memberof ItemAutoOrder
|
|
22400
22406
|
*/
|
|
22401
22407
|
auto_order_cancel_item_oid?: number;
|
|
22408
|
+
/**
|
|
22409
|
+
* The minimum life time value that must be paid in order to not be charged the cancellation item.
|
|
22410
|
+
* @type {number}
|
|
22411
|
+
* @memberof ItemAutoOrder
|
|
22412
|
+
*/
|
|
22413
|
+
auto_order_cancel_minimum_life_time_value?: number;
|
|
22414
|
+
/**
|
|
22415
|
+
* The minimum rebill value that must be paid in order to not be charged the cancellation item.
|
|
22416
|
+
* @type {number}
|
|
22417
|
+
* @memberof ItemAutoOrder
|
|
22418
|
+
*/
|
|
22419
|
+
auto_order_cancel_minimum_rebill_value?: number;
|
|
22402
22420
|
/**
|
|
22403
22421
|
* List of downgrade items presented to customer service representatives
|
|
22404
22422
|
* @type {Array<string>}
|
|
@@ -29263,7 +29281,7 @@ export interface OrderInternal {
|
|
|
29263
29281
|
*/
|
|
29264
29282
|
exported_to_accounting?: boolean;
|
|
29265
29283
|
/**
|
|
29266
|
-
* Merchant notes
|
|
29284
|
+
* Merchant notes. Full notes in non-transactional mode. Just used to write a new merchant note when transaction merchant notes enabled.
|
|
29267
29285
|
* @type {string}
|
|
29268
29286
|
* @memberof OrderInternal
|
|
29269
29287
|
*/
|
|
@@ -29286,6 +29304,12 @@ export interface OrderInternal {
|
|
|
29286
29304
|
* @memberof OrderInternal
|
|
29287
29305
|
*/
|
|
29288
29306
|
sales_rep_code?: string;
|
|
29307
|
+
/**
|
|
29308
|
+
* Transactional merchant notes
|
|
29309
|
+
* @type {Array<OrderTransactionalMerchantNote>}
|
|
29310
|
+
* @memberof OrderInternal
|
|
29311
|
+
*/
|
|
29312
|
+
transactional_merchant_notes?: Array<OrderTransactionalMerchantNote>;
|
|
29289
29313
|
}
|
|
29290
29314
|
|
|
29291
29315
|
/**
|
|
@@ -31848,6 +31872,38 @@ export interface OrderTrackingNumberDetails {
|
|
|
31848
31872
|
tracking_url?: string;
|
|
31849
31873
|
}
|
|
31850
31874
|
|
|
31875
|
+
/**
|
|
31876
|
+
*
|
|
31877
|
+
* @export
|
|
31878
|
+
* @interface OrderTransactionalMerchantNote
|
|
31879
|
+
*/
|
|
31880
|
+
export interface OrderTransactionalMerchantNote {
|
|
31881
|
+
/**
|
|
31882
|
+
* IP Address
|
|
31883
|
+
* @type {string}
|
|
31884
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31885
|
+
*/
|
|
31886
|
+
ip_address?: string;
|
|
31887
|
+
/**
|
|
31888
|
+
* note
|
|
31889
|
+
* @type {string}
|
|
31890
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31891
|
+
*/
|
|
31892
|
+
note?: string;
|
|
31893
|
+
/**
|
|
31894
|
+
* Timestamp when the note was added
|
|
31895
|
+
* @type {string}
|
|
31896
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31897
|
+
*/
|
|
31898
|
+
note_dts?: string;
|
|
31899
|
+
/**
|
|
31900
|
+
* User that wrote the merchant note
|
|
31901
|
+
* @type {string}
|
|
31902
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31903
|
+
*/
|
|
31904
|
+
user?: string;
|
|
31905
|
+
}
|
|
31906
|
+
|
|
31851
31907
|
/**
|
|
31852
31908
|
*
|
|
31853
31909
|
* @export
|
|
@@ -44227,6 +44283,58 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
|
|
|
44227
44283
|
|
|
44228
44284
|
|
|
44229
44285
|
|
|
44286
|
+
// authentication ultraCartOauth required
|
|
44287
|
+
// oauth required
|
|
44288
|
+
if (configuration && configuration.accessToken) {
|
|
44289
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
44290
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_read"])
|
|
44291
|
+
: configuration.accessToken;
|
|
44292
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
44293
|
+
}
|
|
44294
|
+
|
|
44295
|
+
// authentication ultraCartSimpleApiKey required
|
|
44296
|
+
if (configuration && configuration.apiKey) {
|
|
44297
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
44298
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
44299
|
+
: configuration.apiKey;
|
|
44300
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
44301
|
+
}
|
|
44302
|
+
|
|
44303
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
44304
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
44305
|
+
delete localVarUrlObj.search;
|
|
44306
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
44307
|
+
|
|
44308
|
+
return {
|
|
44309
|
+
url: url.format(localVarUrlObj),
|
|
44310
|
+
options: localVarRequestOptions,
|
|
44311
|
+
};
|
|
44312
|
+
},
|
|
44313
|
+
/**
|
|
44314
|
+
* Retrieve an engagement
|
|
44315
|
+
* @summary Retrieve an engagement
|
|
44316
|
+
* @param {number} conversation_engagement_oid
|
|
44317
|
+
* @param {*} [options] Override http request option.
|
|
44318
|
+
* @throws {RequiredError}
|
|
44319
|
+
*/
|
|
44320
|
+
getConversationEngagement(conversation_engagement_oid: number, options: any = {}): FetchArgs {
|
|
44321
|
+
// verify required parameter 'conversation_engagement_oid' is not null or undefined
|
|
44322
|
+
if (conversation_engagement_oid === null || conversation_engagement_oid === undefined) {
|
|
44323
|
+
throw new RequiredError('conversation_engagement_oid','Required parameter conversation_engagement_oid was null or undefined when calling getConversationEngagement.');
|
|
44324
|
+
}
|
|
44325
|
+
const localVarPath = `/conversation/engagements/{conversation_engagement_oid}`
|
|
44326
|
+
.replace(`{${"conversation_engagement_oid"}}`, encodeURIComponent(String(conversation_engagement_oid)));
|
|
44327
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
44328
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
44329
|
+
const localVarHeaderParameter = {} as any;
|
|
44330
|
+
const localVarQueryParameter = {} as any;
|
|
44331
|
+
|
|
44332
|
+
if(configuration && configuration.apiVersion) {
|
|
44333
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
44334
|
+
}
|
|
44335
|
+
|
|
44336
|
+
|
|
44337
|
+
|
|
44230
44338
|
// authentication ultraCartOauth required
|
|
44231
44339
|
// oauth required
|
|
44232
44340
|
if (configuration && configuration.accessToken) {
|
|
@@ -45578,6 +45686,27 @@ export const ConversationApiFp = function(configuration?: Configuration) {
|
|
|
45578
45686
|
});
|
|
45579
45687
|
};
|
|
45580
45688
|
},
|
|
45689
|
+
/**
|
|
45690
|
+
* Retrieve an engagement
|
|
45691
|
+
* @summary Retrieve an engagement
|
|
45692
|
+
* @param {number} conversation_engagement_oid
|
|
45693
|
+
* @param {*} [options] Override http request option.
|
|
45694
|
+
* @throws {RequiredError}
|
|
45695
|
+
*/
|
|
45696
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationEngagementResponse> {
|
|
45697
|
+
const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getConversationEngagement(conversation_engagement_oid, options);
|
|
45698
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
45699
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
45700
|
+
|
|
45701
|
+
if (response.status >= 200 && response.status < 300) {
|
|
45702
|
+
return response.json();
|
|
45703
|
+
|
|
45704
|
+
} else {
|
|
45705
|
+
throw response;
|
|
45706
|
+
}
|
|
45707
|
+
});
|
|
45708
|
+
};
|
|
45709
|
+
},
|
|
45581
45710
|
/**
|
|
45582
45711
|
* Retrieve a list of engagements ordered by name
|
|
45583
45712
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -46110,6 +46239,16 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
|
|
|
46110
46239
|
getConversationDepartments(options?: any) {
|
|
46111
46240
|
return ConversationApiFp(configuration).getConversationDepartments(options)(fetch, basePath);
|
|
46112
46241
|
},
|
|
46242
|
+
/**
|
|
46243
|
+
* Retrieve an engagement
|
|
46244
|
+
* @summary Retrieve an engagement
|
|
46245
|
+
* @param {number} conversation_engagement_oid
|
|
46246
|
+
* @param {*} [options] Override http request option.
|
|
46247
|
+
* @throws {RequiredError}
|
|
46248
|
+
*/
|
|
46249
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any) {
|
|
46250
|
+
return ConversationApiFp(configuration).getConversationEngagement(conversation_engagement_oid, options)(fetch, basePath);
|
|
46251
|
+
},
|
|
46113
46252
|
/**
|
|
46114
46253
|
* Retrieve a list of engagements ordered by name
|
|
46115
46254
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -46422,6 +46561,16 @@ export interface ConversationApiInterface {
|
|
|
46422
46561
|
*/
|
|
46423
46562
|
getConversationDepartments(options?: any): Promise<ConversationDepartmentsResponse>;
|
|
46424
46563
|
|
|
46564
|
+
/**
|
|
46565
|
+
* Retrieve an engagement
|
|
46566
|
+
* @summary Retrieve an engagement
|
|
46567
|
+
* @param {number} conversation_engagement_oid
|
|
46568
|
+
* @param {*} [options] Override http request option.
|
|
46569
|
+
* @throws {RequiredError}
|
|
46570
|
+
* @memberof ConversationApiInterface
|
|
46571
|
+
*/
|
|
46572
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any): Promise<ConversationEngagementResponse>;
|
|
46573
|
+
|
|
46425
46574
|
/**
|
|
46426
46575
|
* Retrieve a list of engagements ordered by name
|
|
46427
46576
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -46754,6 +46903,18 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
|
|
|
46754
46903
|
return ConversationApiFp(this.configuration).getConversationDepartments(options)(this.fetch, this.basePath);
|
|
46755
46904
|
}
|
|
46756
46905
|
|
|
46906
|
+
/**
|
|
46907
|
+
* Retrieve an engagement
|
|
46908
|
+
* @summary Retrieve an engagement
|
|
46909
|
+
* @param {number} conversation_engagement_oid
|
|
46910
|
+
* @param {*} [options] Override http request option.
|
|
46911
|
+
* @throws {RequiredError}
|
|
46912
|
+
* @memberof ConversationApi
|
|
46913
|
+
*/
|
|
46914
|
+
public getConversationEngagement(conversation_engagement_oid: number, options?: any) {
|
|
46915
|
+
return ConversationApiFp(this.configuration).getConversationEngagement(conversation_engagement_oid, options)(this.fetch, this.basePath);
|
|
46916
|
+
}
|
|
46917
|
+
|
|
46757
46918
|
/**
|
|
46758
46919
|
* Retrieve a list of engagements ordered by name
|
|
46759
46920
|
* @summary Retrieve a list of engagements ordered by name
|
package/dist/api.d.ts
CHANGED
|
@@ -21900,6 +21900,12 @@ export interface ItemAutoOrder {
|
|
|
21900
21900
|
* @memberof ItemAutoOrder
|
|
21901
21901
|
*/
|
|
21902
21902
|
auth_test_amount?: number;
|
|
21903
|
+
/**
|
|
21904
|
+
* If true, the cost of the cancel item will be the remaining balance of the minimum rebill or lifetime value
|
|
21905
|
+
* @type {boolean}
|
|
21906
|
+
* @memberof ItemAutoOrder
|
|
21907
|
+
*/
|
|
21908
|
+
auto_order_cancel_charge_minimum_balance?: boolean;
|
|
21903
21909
|
/**
|
|
21904
21910
|
* Item id to attempt charging the customer for if they cancel
|
|
21905
21911
|
* @type {string}
|
|
@@ -21912,6 +21918,18 @@ export interface ItemAutoOrder {
|
|
|
21912
21918
|
* @memberof ItemAutoOrder
|
|
21913
21919
|
*/
|
|
21914
21920
|
auto_order_cancel_item_oid?: number;
|
|
21921
|
+
/**
|
|
21922
|
+
* The minimum life time value that must be paid in order to not be charged the cancellation item.
|
|
21923
|
+
* @type {number}
|
|
21924
|
+
* @memberof ItemAutoOrder
|
|
21925
|
+
*/
|
|
21926
|
+
auto_order_cancel_minimum_life_time_value?: number;
|
|
21927
|
+
/**
|
|
21928
|
+
* The minimum rebill value that must be paid in order to not be charged the cancellation item.
|
|
21929
|
+
* @type {number}
|
|
21930
|
+
* @memberof ItemAutoOrder
|
|
21931
|
+
*/
|
|
21932
|
+
auto_order_cancel_minimum_rebill_value?: number;
|
|
21915
21933
|
/**
|
|
21916
21934
|
* List of downgrade items presented to customer service representatives
|
|
21917
21935
|
* @type {Array<string>}
|
|
@@ -28642,7 +28660,7 @@ export interface OrderInternal {
|
|
|
28642
28660
|
*/
|
|
28643
28661
|
exported_to_accounting?: boolean;
|
|
28644
28662
|
/**
|
|
28645
|
-
* Merchant notes
|
|
28663
|
+
* Merchant notes. Full notes in non-transactional mode. Just used to write a new merchant note when transaction merchant notes enabled.
|
|
28646
28664
|
* @type {string}
|
|
28647
28665
|
* @memberof OrderInternal
|
|
28648
28666
|
*/
|
|
@@ -28665,6 +28683,12 @@ export interface OrderInternal {
|
|
|
28665
28683
|
* @memberof OrderInternal
|
|
28666
28684
|
*/
|
|
28667
28685
|
sales_rep_code?: string;
|
|
28686
|
+
/**
|
|
28687
|
+
* Transactional merchant notes
|
|
28688
|
+
* @type {Array<OrderTransactionalMerchantNote>}
|
|
28689
|
+
* @memberof OrderInternal
|
|
28690
|
+
*/
|
|
28691
|
+
transactional_merchant_notes?: Array<OrderTransactionalMerchantNote>;
|
|
28668
28692
|
}
|
|
28669
28693
|
/**
|
|
28670
28694
|
*
|
|
@@ -31181,6 +31205,37 @@ export interface OrderTrackingNumberDetails {
|
|
|
31181
31205
|
*/
|
|
31182
31206
|
tracking_url?: string;
|
|
31183
31207
|
}
|
|
31208
|
+
/**
|
|
31209
|
+
*
|
|
31210
|
+
* @export
|
|
31211
|
+
* @interface OrderTransactionalMerchantNote
|
|
31212
|
+
*/
|
|
31213
|
+
export interface OrderTransactionalMerchantNote {
|
|
31214
|
+
/**
|
|
31215
|
+
* IP Address
|
|
31216
|
+
* @type {string}
|
|
31217
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31218
|
+
*/
|
|
31219
|
+
ip_address?: string;
|
|
31220
|
+
/**
|
|
31221
|
+
* note
|
|
31222
|
+
* @type {string}
|
|
31223
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31224
|
+
*/
|
|
31225
|
+
note?: string;
|
|
31226
|
+
/**
|
|
31227
|
+
* Timestamp when the note was added
|
|
31228
|
+
* @type {string}
|
|
31229
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31230
|
+
*/
|
|
31231
|
+
note_dts?: string;
|
|
31232
|
+
/**
|
|
31233
|
+
* User that wrote the merchant note
|
|
31234
|
+
* @type {string}
|
|
31235
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31236
|
+
*/
|
|
31237
|
+
user?: string;
|
|
31238
|
+
}
|
|
31184
31239
|
/**
|
|
31185
31240
|
*
|
|
31186
31241
|
* @export
|
|
@@ -39640,6 +39695,14 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
|
|
|
39640
39695
|
* @throws {RequiredError}
|
|
39641
39696
|
*/
|
|
39642
39697
|
getConversationDepartments(options?: any): FetchArgs;
|
|
39698
|
+
/**
|
|
39699
|
+
* Retrieve an engagement
|
|
39700
|
+
* @summary Retrieve an engagement
|
|
39701
|
+
* @param {number} conversation_engagement_oid
|
|
39702
|
+
* @param {*} [options] Override http request option.
|
|
39703
|
+
* @throws {RequiredError}
|
|
39704
|
+
*/
|
|
39705
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any): FetchArgs;
|
|
39643
39706
|
/**
|
|
39644
39707
|
* Retrieve a list of engagements ordered by name
|
|
39645
39708
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -39889,6 +39952,14 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
|
|
|
39889
39952
|
* @throws {RequiredError}
|
|
39890
39953
|
*/
|
|
39891
39954
|
getConversationDepartments(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationDepartmentsResponse>;
|
|
39955
|
+
/**
|
|
39956
|
+
* Retrieve an engagement
|
|
39957
|
+
* @summary Retrieve an engagement
|
|
39958
|
+
* @param {number} conversation_engagement_oid
|
|
39959
|
+
* @param {*} [options] Override http request option.
|
|
39960
|
+
* @throws {RequiredError}
|
|
39961
|
+
*/
|
|
39962
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationEngagementResponse>;
|
|
39892
39963
|
/**
|
|
39893
39964
|
* Retrieve a list of engagements ordered by name
|
|
39894
39965
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -40138,6 +40209,14 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
|
|
|
40138
40209
|
* @throws {RequiredError}
|
|
40139
40210
|
*/
|
|
40140
40211
|
getConversationDepartments(options?: any): Promise<ConversationDepartmentsResponse>;
|
|
40212
|
+
/**
|
|
40213
|
+
* Retrieve an engagement
|
|
40214
|
+
* @summary Retrieve an engagement
|
|
40215
|
+
* @param {number} conversation_engagement_oid
|
|
40216
|
+
* @param {*} [options] Override http request option.
|
|
40217
|
+
* @throws {RequiredError}
|
|
40218
|
+
*/
|
|
40219
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any): Promise<ConversationEngagementResponse>;
|
|
40141
40220
|
/**
|
|
40142
40221
|
* Retrieve a list of engagements ordered by name
|
|
40143
40222
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -40398,6 +40477,15 @@ export interface ConversationApiInterface {
|
|
|
40398
40477
|
* @memberof ConversationApiInterface
|
|
40399
40478
|
*/
|
|
40400
40479
|
getConversationDepartments(options?: any): Promise<ConversationDepartmentsResponse>;
|
|
40480
|
+
/**
|
|
40481
|
+
* Retrieve an engagement
|
|
40482
|
+
* @summary Retrieve an engagement
|
|
40483
|
+
* @param {number} conversation_engagement_oid
|
|
40484
|
+
* @param {*} [options] Override http request option.
|
|
40485
|
+
* @throws {RequiredError}
|
|
40486
|
+
* @memberof ConversationApiInterface
|
|
40487
|
+
*/
|
|
40488
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any): Promise<ConversationEngagementResponse>;
|
|
40401
40489
|
/**
|
|
40402
40490
|
* Retrieve a list of engagements ordered by name
|
|
40403
40491
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -40679,6 +40767,15 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
|
|
|
40679
40767
|
* @memberof ConversationApi
|
|
40680
40768
|
*/
|
|
40681
40769
|
getConversationDepartments(options?: any): Promise<ConversationDepartmentsResponse>;
|
|
40770
|
+
/**
|
|
40771
|
+
* Retrieve an engagement
|
|
40772
|
+
* @summary Retrieve an engagement
|
|
40773
|
+
* @param {number} conversation_engagement_oid
|
|
40774
|
+
* @param {*} [options] Override http request option.
|
|
40775
|
+
* @throws {RequiredError}
|
|
40776
|
+
* @memberof ConversationApi
|
|
40777
|
+
*/
|
|
40778
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any): Promise<ConversationEngagementResponse>;
|
|
40682
40779
|
/**
|
|
40683
40780
|
* Retrieve a list of engagements ordered by name
|
|
40684
40781
|
* @summary Retrieve a list of engagements ordered by name
|
package/dist/api.js
CHANGED
|
@@ -6587,6 +6587,52 @@ var ConversationApiFetchParamCreator = function (configuration) {
|
|
|
6587
6587
|
options: localVarRequestOptions,
|
|
6588
6588
|
};
|
|
6589
6589
|
},
|
|
6590
|
+
/**
|
|
6591
|
+
* Retrieve an engagement
|
|
6592
|
+
* @summary Retrieve an engagement
|
|
6593
|
+
* @param {number} conversation_engagement_oid
|
|
6594
|
+
* @param {*} [options] Override http request option.
|
|
6595
|
+
* @throws {RequiredError}
|
|
6596
|
+
*/
|
|
6597
|
+
getConversationEngagement: function (conversation_engagement_oid, options) {
|
|
6598
|
+
if (options === void 0) { options = {}; }
|
|
6599
|
+
// verify required parameter 'conversation_engagement_oid' is not null or undefined
|
|
6600
|
+
if (conversation_engagement_oid === null || conversation_engagement_oid === undefined) {
|
|
6601
|
+
throw new RequiredError('conversation_engagement_oid', 'Required parameter conversation_engagement_oid was null or undefined when calling getConversationEngagement.');
|
|
6602
|
+
}
|
|
6603
|
+
var localVarPath = "/conversation/engagements/{conversation_engagement_oid}"
|
|
6604
|
+
.replace("{".concat("conversation_engagement_oid", "}"), encodeURIComponent(String(conversation_engagement_oid)));
|
|
6605
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
6606
|
+
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
6607
|
+
var localVarHeaderParameter = {};
|
|
6608
|
+
var localVarQueryParameter = {};
|
|
6609
|
+
if (configuration && configuration.apiVersion) {
|
|
6610
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
6611
|
+
}
|
|
6612
|
+
// authentication ultraCartOauth required
|
|
6613
|
+
// oauth required
|
|
6614
|
+
if (configuration && configuration.accessToken) {
|
|
6615
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
6616
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_read"])
|
|
6617
|
+
: configuration.accessToken;
|
|
6618
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
6619
|
+
}
|
|
6620
|
+
// authentication ultraCartSimpleApiKey required
|
|
6621
|
+
if (configuration && configuration.apiKey) {
|
|
6622
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
6623
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
6624
|
+
: configuration.apiKey;
|
|
6625
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
6626
|
+
}
|
|
6627
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
6628
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
6629
|
+
delete localVarUrlObj.search;
|
|
6630
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
6631
|
+
return {
|
|
6632
|
+
url: url.format(localVarUrlObj),
|
|
6633
|
+
options: localVarRequestOptions,
|
|
6634
|
+
};
|
|
6635
|
+
},
|
|
6590
6636
|
/**
|
|
6591
6637
|
* Retrieve a list of engagements ordered by name
|
|
6592
6638
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -7784,6 +7830,28 @@ var ConversationApiFp = function (configuration) {
|
|
|
7784
7830
|
});
|
|
7785
7831
|
};
|
|
7786
7832
|
},
|
|
7833
|
+
/**
|
|
7834
|
+
* Retrieve an engagement
|
|
7835
|
+
* @summary Retrieve an engagement
|
|
7836
|
+
* @param {number} conversation_engagement_oid
|
|
7837
|
+
* @param {*} [options] Override http request option.
|
|
7838
|
+
* @throws {RequiredError}
|
|
7839
|
+
*/
|
|
7840
|
+
getConversationEngagement: function (conversation_engagement_oid, options) {
|
|
7841
|
+
var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).getConversationEngagement(conversation_engagement_oid, options);
|
|
7842
|
+
return function (fetch, basePath) {
|
|
7843
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
7844
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
7845
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
7846
|
+
if (response.status >= 200 && response.status < 300) {
|
|
7847
|
+
return response.json();
|
|
7848
|
+
}
|
|
7849
|
+
else {
|
|
7850
|
+
throw response;
|
|
7851
|
+
}
|
|
7852
|
+
});
|
|
7853
|
+
};
|
|
7854
|
+
},
|
|
7787
7855
|
/**
|
|
7788
7856
|
* Retrieve a list of engagements ordered by name
|
|
7789
7857
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -8336,6 +8404,16 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
|
|
|
8336
8404
|
getConversationDepartments: function (options) {
|
|
8337
8405
|
return (0, exports.ConversationApiFp)(configuration).getConversationDepartments(options)(fetch, basePath);
|
|
8338
8406
|
},
|
|
8407
|
+
/**
|
|
8408
|
+
* Retrieve an engagement
|
|
8409
|
+
* @summary Retrieve an engagement
|
|
8410
|
+
* @param {number} conversation_engagement_oid
|
|
8411
|
+
* @param {*} [options] Override http request option.
|
|
8412
|
+
* @throws {RequiredError}
|
|
8413
|
+
*/
|
|
8414
|
+
getConversationEngagement: function (conversation_engagement_oid, options) {
|
|
8415
|
+
return (0, exports.ConversationApiFp)(configuration).getConversationEngagement(conversation_engagement_oid, options)(fetch, basePath);
|
|
8416
|
+
},
|
|
8339
8417
|
/**
|
|
8340
8418
|
* Retrieve a list of engagements ordered by name
|
|
8341
8419
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -8663,6 +8741,17 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
8663
8741
|
ConversationApi.prototype.getConversationDepartments = function (options) {
|
|
8664
8742
|
return (0, exports.ConversationApiFp)(this.configuration).getConversationDepartments(options)(this.fetch, this.basePath);
|
|
8665
8743
|
};
|
|
8744
|
+
/**
|
|
8745
|
+
* Retrieve an engagement
|
|
8746
|
+
* @summary Retrieve an engagement
|
|
8747
|
+
* @param {number} conversation_engagement_oid
|
|
8748
|
+
* @param {*} [options] Override http request option.
|
|
8749
|
+
* @throws {RequiredError}
|
|
8750
|
+
* @memberof ConversationApi
|
|
8751
|
+
*/
|
|
8752
|
+
ConversationApi.prototype.getConversationEngagement = function (conversation_engagement_oid, options) {
|
|
8753
|
+
return (0, exports.ConversationApiFp)(this.configuration).getConversationEngagement(conversation_engagement_oid, options)(this.fetch, this.basePath);
|
|
8754
|
+
};
|
|
8666
8755
|
/**
|
|
8667
8756
|
* Retrieve a list of engagements ordered by name
|
|
8668
8757
|
* @summary Retrieve a list of engagements ordered by name
|