ultracart_rest_api_v2_typescript 3.10.102 → 3.10.104
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 +150 -1
- package/dist/api.d.ts +86 -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.104
|
|
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.104 --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.104 | 01/23/2023 | conversation - method to fetch single engagement record |
|
|
58
|
+
| 3.10.103 | 01/19/2023 | added skip_on_rebill field to coupon object |
|
|
57
59
|
| 3.10.102 | 01/19/2023 | convo - getConversationPermissions added |
|
|
58
60
|
| 3.10.101 | 01/18/2023 | conversation get dept member list method added |
|
|
59
61
|
| 3.10.100 | 01/18/2023 | conversation dept members |
|
package/api.ts
CHANGED
|
@@ -9391,6 +9391,12 @@ export interface Coupon {
|
|
|
9391
9391
|
* @memberof Coupon
|
|
9392
9392
|
*/
|
|
9393
9393
|
restrict_by_storefronts?: Array<CouponRestriction>;
|
|
9394
|
+
/**
|
|
9395
|
+
* Skip this coupon when it is on a rebill of an auto order.
|
|
9396
|
+
* @type {boolean}
|
|
9397
|
+
* @memberof Coupon
|
|
9398
|
+
*/
|
|
9399
|
+
skip_on_rebill?: boolean;
|
|
9394
9400
|
/**
|
|
9395
9401
|
* Date/time when coupon is valid
|
|
9396
9402
|
* @type {string}
|
|
@@ -29257,7 +29263,7 @@ export interface OrderInternal {
|
|
|
29257
29263
|
*/
|
|
29258
29264
|
exported_to_accounting?: boolean;
|
|
29259
29265
|
/**
|
|
29260
|
-
* Merchant notes
|
|
29266
|
+
* Merchant notes. Full notes in non-transactional mode. Just used to write a new merchant note when transaction merchant notes enabled.
|
|
29261
29267
|
* @type {string}
|
|
29262
29268
|
* @memberof OrderInternal
|
|
29263
29269
|
*/
|
|
@@ -29280,6 +29286,12 @@ export interface OrderInternal {
|
|
|
29280
29286
|
* @memberof OrderInternal
|
|
29281
29287
|
*/
|
|
29282
29288
|
sales_rep_code?: string;
|
|
29289
|
+
/**
|
|
29290
|
+
* Transactional merchant notes
|
|
29291
|
+
* @type {Array<OrderTransactionalMerchantNote>}
|
|
29292
|
+
* @memberof OrderInternal
|
|
29293
|
+
*/
|
|
29294
|
+
transactional_merchant_notes?: Array<OrderTransactionalMerchantNote>;
|
|
29283
29295
|
}
|
|
29284
29296
|
|
|
29285
29297
|
/**
|
|
@@ -31842,6 +31854,38 @@ export interface OrderTrackingNumberDetails {
|
|
|
31842
31854
|
tracking_url?: string;
|
|
31843
31855
|
}
|
|
31844
31856
|
|
|
31857
|
+
/**
|
|
31858
|
+
*
|
|
31859
|
+
* @export
|
|
31860
|
+
* @interface OrderTransactionalMerchantNote
|
|
31861
|
+
*/
|
|
31862
|
+
export interface OrderTransactionalMerchantNote {
|
|
31863
|
+
/**
|
|
31864
|
+
* IP Address
|
|
31865
|
+
* @type {string}
|
|
31866
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31867
|
+
*/
|
|
31868
|
+
ip_address?: string;
|
|
31869
|
+
/**
|
|
31870
|
+
* note
|
|
31871
|
+
* @type {string}
|
|
31872
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31873
|
+
*/
|
|
31874
|
+
note?: string;
|
|
31875
|
+
/**
|
|
31876
|
+
* Timestamp when the note was added
|
|
31877
|
+
* @type {string}
|
|
31878
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31879
|
+
*/
|
|
31880
|
+
note_dts?: string;
|
|
31881
|
+
/**
|
|
31882
|
+
* User that wrote the merchant note
|
|
31883
|
+
* @type {string}
|
|
31884
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31885
|
+
*/
|
|
31886
|
+
user?: string;
|
|
31887
|
+
}
|
|
31888
|
+
|
|
31845
31889
|
/**
|
|
31846
31890
|
*
|
|
31847
31891
|
* @export
|
|
@@ -44221,6 +44265,58 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
|
|
|
44221
44265
|
|
|
44222
44266
|
|
|
44223
44267
|
|
|
44268
|
+
// authentication ultraCartOauth required
|
|
44269
|
+
// oauth required
|
|
44270
|
+
if (configuration && configuration.accessToken) {
|
|
44271
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
44272
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_read"])
|
|
44273
|
+
: configuration.accessToken;
|
|
44274
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
44275
|
+
}
|
|
44276
|
+
|
|
44277
|
+
// authentication ultraCartSimpleApiKey required
|
|
44278
|
+
if (configuration && configuration.apiKey) {
|
|
44279
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
44280
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
44281
|
+
: configuration.apiKey;
|
|
44282
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
44283
|
+
}
|
|
44284
|
+
|
|
44285
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
44286
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
44287
|
+
delete localVarUrlObj.search;
|
|
44288
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
44289
|
+
|
|
44290
|
+
return {
|
|
44291
|
+
url: url.format(localVarUrlObj),
|
|
44292
|
+
options: localVarRequestOptions,
|
|
44293
|
+
};
|
|
44294
|
+
},
|
|
44295
|
+
/**
|
|
44296
|
+
* Retrieve an engagement
|
|
44297
|
+
* @summary Retrieve an engagement
|
|
44298
|
+
* @param {number} conversation_engagement_oid
|
|
44299
|
+
* @param {*} [options] Override http request option.
|
|
44300
|
+
* @throws {RequiredError}
|
|
44301
|
+
*/
|
|
44302
|
+
getConversationEngagement(conversation_engagement_oid: number, options: any = {}): FetchArgs {
|
|
44303
|
+
// verify required parameter 'conversation_engagement_oid' is not null or undefined
|
|
44304
|
+
if (conversation_engagement_oid === null || conversation_engagement_oid === undefined) {
|
|
44305
|
+
throw new RequiredError('conversation_engagement_oid','Required parameter conversation_engagement_oid was null or undefined when calling getConversationEngagement.');
|
|
44306
|
+
}
|
|
44307
|
+
const localVarPath = `/conversation/engagements/{conversation_engagement_oid}`
|
|
44308
|
+
.replace(`{${"conversation_engagement_oid"}}`, encodeURIComponent(String(conversation_engagement_oid)));
|
|
44309
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
44310
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
44311
|
+
const localVarHeaderParameter = {} as any;
|
|
44312
|
+
const localVarQueryParameter = {} as any;
|
|
44313
|
+
|
|
44314
|
+
if(configuration && configuration.apiVersion) {
|
|
44315
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
44316
|
+
}
|
|
44317
|
+
|
|
44318
|
+
|
|
44319
|
+
|
|
44224
44320
|
// authentication ultraCartOauth required
|
|
44225
44321
|
// oauth required
|
|
44226
44322
|
if (configuration && configuration.accessToken) {
|
|
@@ -45572,6 +45668,27 @@ export const ConversationApiFp = function(configuration?: Configuration) {
|
|
|
45572
45668
|
});
|
|
45573
45669
|
};
|
|
45574
45670
|
},
|
|
45671
|
+
/**
|
|
45672
|
+
* Retrieve an engagement
|
|
45673
|
+
* @summary Retrieve an engagement
|
|
45674
|
+
* @param {number} conversation_engagement_oid
|
|
45675
|
+
* @param {*} [options] Override http request option.
|
|
45676
|
+
* @throws {RequiredError}
|
|
45677
|
+
*/
|
|
45678
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationEngagementResponse> {
|
|
45679
|
+
const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getConversationEngagement(conversation_engagement_oid, options);
|
|
45680
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
45681
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
45682
|
+
|
|
45683
|
+
if (response.status >= 200 && response.status < 300) {
|
|
45684
|
+
return response.json();
|
|
45685
|
+
|
|
45686
|
+
} else {
|
|
45687
|
+
throw response;
|
|
45688
|
+
}
|
|
45689
|
+
});
|
|
45690
|
+
};
|
|
45691
|
+
},
|
|
45575
45692
|
/**
|
|
45576
45693
|
* Retrieve a list of engagements ordered by name
|
|
45577
45694
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -46104,6 +46221,16 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
|
|
|
46104
46221
|
getConversationDepartments(options?: any) {
|
|
46105
46222
|
return ConversationApiFp(configuration).getConversationDepartments(options)(fetch, basePath);
|
|
46106
46223
|
},
|
|
46224
|
+
/**
|
|
46225
|
+
* Retrieve an engagement
|
|
46226
|
+
* @summary Retrieve an engagement
|
|
46227
|
+
* @param {number} conversation_engagement_oid
|
|
46228
|
+
* @param {*} [options] Override http request option.
|
|
46229
|
+
* @throws {RequiredError}
|
|
46230
|
+
*/
|
|
46231
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any) {
|
|
46232
|
+
return ConversationApiFp(configuration).getConversationEngagement(conversation_engagement_oid, options)(fetch, basePath);
|
|
46233
|
+
},
|
|
46107
46234
|
/**
|
|
46108
46235
|
* Retrieve a list of engagements ordered by name
|
|
46109
46236
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -46416,6 +46543,16 @@ export interface ConversationApiInterface {
|
|
|
46416
46543
|
*/
|
|
46417
46544
|
getConversationDepartments(options?: any): Promise<ConversationDepartmentsResponse>;
|
|
46418
46545
|
|
|
46546
|
+
/**
|
|
46547
|
+
* Retrieve an engagement
|
|
46548
|
+
* @summary Retrieve an engagement
|
|
46549
|
+
* @param {number} conversation_engagement_oid
|
|
46550
|
+
* @param {*} [options] Override http request option.
|
|
46551
|
+
* @throws {RequiredError}
|
|
46552
|
+
* @memberof ConversationApiInterface
|
|
46553
|
+
*/
|
|
46554
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any): Promise<ConversationEngagementResponse>;
|
|
46555
|
+
|
|
46419
46556
|
/**
|
|
46420
46557
|
* Retrieve a list of engagements ordered by name
|
|
46421
46558
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -46748,6 +46885,18 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
|
|
|
46748
46885
|
return ConversationApiFp(this.configuration).getConversationDepartments(options)(this.fetch, this.basePath);
|
|
46749
46886
|
}
|
|
46750
46887
|
|
|
46888
|
+
/**
|
|
46889
|
+
* Retrieve an engagement
|
|
46890
|
+
* @summary Retrieve an engagement
|
|
46891
|
+
* @param {number} conversation_engagement_oid
|
|
46892
|
+
* @param {*} [options] Override http request option.
|
|
46893
|
+
* @throws {RequiredError}
|
|
46894
|
+
* @memberof ConversationApi
|
|
46895
|
+
*/
|
|
46896
|
+
public getConversationEngagement(conversation_engagement_oid: number, options?: any) {
|
|
46897
|
+
return ConversationApiFp(this.configuration).getConversationEngagement(conversation_engagement_oid, options)(this.fetch, this.basePath);
|
|
46898
|
+
}
|
|
46899
|
+
|
|
46751
46900
|
/**
|
|
46752
46901
|
* Retrieve a list of engagements ordered by name
|
|
46753
46902
|
* @summary Retrieve a list of engagements ordered by name
|
package/dist/api.d.ts
CHANGED
|
@@ -9172,6 +9172,12 @@ export interface Coupon {
|
|
|
9172
9172
|
* @memberof Coupon
|
|
9173
9173
|
*/
|
|
9174
9174
|
restrict_by_storefronts?: Array<CouponRestriction>;
|
|
9175
|
+
/**
|
|
9176
|
+
* Skip this coupon when it is on a rebill of an auto order.
|
|
9177
|
+
* @type {boolean}
|
|
9178
|
+
* @memberof Coupon
|
|
9179
|
+
*/
|
|
9180
|
+
skip_on_rebill?: boolean;
|
|
9175
9181
|
/**
|
|
9176
9182
|
* Date/time when coupon is valid
|
|
9177
9183
|
* @type {string}
|
|
@@ -28636,7 +28642,7 @@ export interface OrderInternal {
|
|
|
28636
28642
|
*/
|
|
28637
28643
|
exported_to_accounting?: boolean;
|
|
28638
28644
|
/**
|
|
28639
|
-
* Merchant notes
|
|
28645
|
+
* Merchant notes. Full notes in non-transactional mode. Just used to write a new merchant note when transaction merchant notes enabled.
|
|
28640
28646
|
* @type {string}
|
|
28641
28647
|
* @memberof OrderInternal
|
|
28642
28648
|
*/
|
|
@@ -28659,6 +28665,12 @@ export interface OrderInternal {
|
|
|
28659
28665
|
* @memberof OrderInternal
|
|
28660
28666
|
*/
|
|
28661
28667
|
sales_rep_code?: string;
|
|
28668
|
+
/**
|
|
28669
|
+
* Transactional merchant notes
|
|
28670
|
+
* @type {Array<OrderTransactionalMerchantNote>}
|
|
28671
|
+
* @memberof OrderInternal
|
|
28672
|
+
*/
|
|
28673
|
+
transactional_merchant_notes?: Array<OrderTransactionalMerchantNote>;
|
|
28662
28674
|
}
|
|
28663
28675
|
/**
|
|
28664
28676
|
*
|
|
@@ -31175,6 +31187,37 @@ export interface OrderTrackingNumberDetails {
|
|
|
31175
31187
|
*/
|
|
31176
31188
|
tracking_url?: string;
|
|
31177
31189
|
}
|
|
31190
|
+
/**
|
|
31191
|
+
*
|
|
31192
|
+
* @export
|
|
31193
|
+
* @interface OrderTransactionalMerchantNote
|
|
31194
|
+
*/
|
|
31195
|
+
export interface OrderTransactionalMerchantNote {
|
|
31196
|
+
/**
|
|
31197
|
+
* IP Address
|
|
31198
|
+
* @type {string}
|
|
31199
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31200
|
+
*/
|
|
31201
|
+
ip_address?: string;
|
|
31202
|
+
/**
|
|
31203
|
+
* note
|
|
31204
|
+
* @type {string}
|
|
31205
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31206
|
+
*/
|
|
31207
|
+
note?: string;
|
|
31208
|
+
/**
|
|
31209
|
+
* Timestamp when the note was added
|
|
31210
|
+
* @type {string}
|
|
31211
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31212
|
+
*/
|
|
31213
|
+
note_dts?: string;
|
|
31214
|
+
/**
|
|
31215
|
+
* User that wrote the merchant note
|
|
31216
|
+
* @type {string}
|
|
31217
|
+
* @memberof OrderTransactionalMerchantNote
|
|
31218
|
+
*/
|
|
31219
|
+
user?: string;
|
|
31220
|
+
}
|
|
31178
31221
|
/**
|
|
31179
31222
|
*
|
|
31180
31223
|
* @export
|
|
@@ -39634,6 +39677,14 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
|
|
|
39634
39677
|
* @throws {RequiredError}
|
|
39635
39678
|
*/
|
|
39636
39679
|
getConversationDepartments(options?: any): FetchArgs;
|
|
39680
|
+
/**
|
|
39681
|
+
* Retrieve an engagement
|
|
39682
|
+
* @summary Retrieve an engagement
|
|
39683
|
+
* @param {number} conversation_engagement_oid
|
|
39684
|
+
* @param {*} [options] Override http request option.
|
|
39685
|
+
* @throws {RequiredError}
|
|
39686
|
+
*/
|
|
39687
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any): FetchArgs;
|
|
39637
39688
|
/**
|
|
39638
39689
|
* Retrieve a list of engagements ordered by name
|
|
39639
39690
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -39883,6 +39934,14 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
|
|
|
39883
39934
|
* @throws {RequiredError}
|
|
39884
39935
|
*/
|
|
39885
39936
|
getConversationDepartments(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationDepartmentsResponse>;
|
|
39937
|
+
/**
|
|
39938
|
+
* Retrieve an engagement
|
|
39939
|
+
* @summary Retrieve an engagement
|
|
39940
|
+
* @param {number} conversation_engagement_oid
|
|
39941
|
+
* @param {*} [options] Override http request option.
|
|
39942
|
+
* @throws {RequiredError}
|
|
39943
|
+
*/
|
|
39944
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationEngagementResponse>;
|
|
39886
39945
|
/**
|
|
39887
39946
|
* Retrieve a list of engagements ordered by name
|
|
39888
39947
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -40132,6 +40191,14 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
|
|
|
40132
40191
|
* @throws {RequiredError}
|
|
40133
40192
|
*/
|
|
40134
40193
|
getConversationDepartments(options?: any): Promise<ConversationDepartmentsResponse>;
|
|
40194
|
+
/**
|
|
40195
|
+
* Retrieve an engagement
|
|
40196
|
+
* @summary Retrieve an engagement
|
|
40197
|
+
* @param {number} conversation_engagement_oid
|
|
40198
|
+
* @param {*} [options] Override http request option.
|
|
40199
|
+
* @throws {RequiredError}
|
|
40200
|
+
*/
|
|
40201
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any): Promise<ConversationEngagementResponse>;
|
|
40135
40202
|
/**
|
|
40136
40203
|
* Retrieve a list of engagements ordered by name
|
|
40137
40204
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -40392,6 +40459,15 @@ export interface ConversationApiInterface {
|
|
|
40392
40459
|
* @memberof ConversationApiInterface
|
|
40393
40460
|
*/
|
|
40394
40461
|
getConversationDepartments(options?: any): Promise<ConversationDepartmentsResponse>;
|
|
40462
|
+
/**
|
|
40463
|
+
* Retrieve an engagement
|
|
40464
|
+
* @summary Retrieve an engagement
|
|
40465
|
+
* @param {number} conversation_engagement_oid
|
|
40466
|
+
* @param {*} [options] Override http request option.
|
|
40467
|
+
* @throws {RequiredError}
|
|
40468
|
+
* @memberof ConversationApiInterface
|
|
40469
|
+
*/
|
|
40470
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any): Promise<ConversationEngagementResponse>;
|
|
40395
40471
|
/**
|
|
40396
40472
|
* Retrieve a list of engagements ordered by name
|
|
40397
40473
|
* @summary Retrieve a list of engagements ordered by name
|
|
@@ -40673,6 +40749,15 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
|
|
|
40673
40749
|
* @memberof ConversationApi
|
|
40674
40750
|
*/
|
|
40675
40751
|
getConversationDepartments(options?: any): Promise<ConversationDepartmentsResponse>;
|
|
40752
|
+
/**
|
|
40753
|
+
* Retrieve an engagement
|
|
40754
|
+
* @summary Retrieve an engagement
|
|
40755
|
+
* @param {number} conversation_engagement_oid
|
|
40756
|
+
* @param {*} [options] Override http request option.
|
|
40757
|
+
* @throws {RequiredError}
|
|
40758
|
+
* @memberof ConversationApi
|
|
40759
|
+
*/
|
|
40760
|
+
getConversationEngagement(conversation_engagement_oid: number, options?: any): Promise<ConversationEngagementResponse>;
|
|
40676
40761
|
/**
|
|
40677
40762
|
* Retrieve a list of engagements ordered by name
|
|
40678
40763
|
* @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
|