ultracart_rest_api_v2_typescript 3.10.109 → 3.10.110
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 +3 -2
- package/api.ts +179 -0
- package/dist/api.d.ts +118 -0
- package/dist/api.js +80 -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.110
|
|
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.110 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 3.10.110 | 01/27/2023 | conversations - getLocationsForEngagement method |
|
|
57
58
|
| 3.10.109 | 01/26/2023 | typo in ConversationWebsocketMessage |
|
|
58
59
|
| 3.10.108 | 01/25/2023 | conversation - added message type of engagement prompt |
|
|
59
60
|
| 3.10.107 | 01/25/2023 | convo event for engage customer |
|
package/api.ts
CHANGED
|
@@ -7732,6 +7732,90 @@ export interface ConversationJoinRequest {
|
|
|
7732
7732
|
participant_language_iso_code?: string;
|
|
7733
7733
|
}
|
|
7734
7734
|
|
|
7735
|
+
/**
|
|
7736
|
+
*
|
|
7737
|
+
* @export
|
|
7738
|
+
* @interface ConversationLocationCountry
|
|
7739
|
+
*/
|
|
7740
|
+
export interface ConversationLocationCountry {
|
|
7741
|
+
/**
|
|
7742
|
+
*
|
|
7743
|
+
* @type {string}
|
|
7744
|
+
* @memberof ConversationLocationCountry
|
|
7745
|
+
*/
|
|
7746
|
+
iso2?: string;
|
|
7747
|
+
/**
|
|
7748
|
+
*
|
|
7749
|
+
* @type {string}
|
|
7750
|
+
* @memberof ConversationLocationCountry
|
|
7751
|
+
*/
|
|
7752
|
+
name?: string;
|
|
7753
|
+
/**
|
|
7754
|
+
*
|
|
7755
|
+
* @type {Array<ConversationLocationStateProvince>}
|
|
7756
|
+
* @memberof ConversationLocationCountry
|
|
7757
|
+
*/
|
|
7758
|
+
state_provinces?: Array<ConversationLocationStateProvince>;
|
|
7759
|
+
}
|
|
7760
|
+
|
|
7761
|
+
/**
|
|
7762
|
+
*
|
|
7763
|
+
* @export
|
|
7764
|
+
* @interface ConversationLocationStateProvince
|
|
7765
|
+
*/
|
|
7766
|
+
export interface ConversationLocationStateProvince {
|
|
7767
|
+
/**
|
|
7768
|
+
*
|
|
7769
|
+
* @type {string}
|
|
7770
|
+
* @memberof ConversationLocationStateProvince
|
|
7771
|
+
*/
|
|
7772
|
+
abbreviation?: string;
|
|
7773
|
+
/**
|
|
7774
|
+
*
|
|
7775
|
+
* @type {string}
|
|
7776
|
+
* @memberof ConversationLocationStateProvince
|
|
7777
|
+
*/
|
|
7778
|
+
name?: string;
|
|
7779
|
+
}
|
|
7780
|
+
|
|
7781
|
+
/**
|
|
7782
|
+
*
|
|
7783
|
+
* @export
|
|
7784
|
+
* @interface ConversationLocationsResponse
|
|
7785
|
+
*/
|
|
7786
|
+
export interface ConversationLocationsResponse {
|
|
7787
|
+
/**
|
|
7788
|
+
*
|
|
7789
|
+
* @type {Array<ConversationLocationCountry>}
|
|
7790
|
+
* @memberof ConversationLocationsResponse
|
|
7791
|
+
*/
|
|
7792
|
+
countries?: Array<ConversationLocationCountry>;
|
|
7793
|
+
/**
|
|
7794
|
+
*
|
|
7795
|
+
* @type {ModelError}
|
|
7796
|
+
* @memberof ConversationLocationsResponse
|
|
7797
|
+
*/
|
|
7798
|
+
error?: ModelError;
|
|
7799
|
+
/**
|
|
7800
|
+
*
|
|
7801
|
+
* @type {ResponseMetadata}
|
|
7802
|
+
* @memberof ConversationLocationsResponse
|
|
7803
|
+
*/
|
|
7804
|
+
metadata?: ResponseMetadata;
|
|
7805
|
+
/**
|
|
7806
|
+
* Indicates if API call was successful
|
|
7807
|
+
* @type {boolean}
|
|
7808
|
+
* @memberof ConversationLocationsResponse
|
|
7809
|
+
*/
|
|
7810
|
+
success?: boolean;
|
|
7811
|
+
/**
|
|
7812
|
+
*
|
|
7813
|
+
* @type {Warning}
|
|
7814
|
+
* @memberof ConversationLocationsResponse
|
|
7815
|
+
*/
|
|
7816
|
+
warning?: Warning;
|
|
7817
|
+
}
|
|
7818
|
+
|
|
7735
7819
|
/**
|
|
7736
7820
|
*
|
|
7737
7821
|
* @export
|
|
@@ -44837,6 +44921,52 @@ export const ConversationApiFetchParamCreator = function (configuration?: Config
|
|
|
44837
44921
|
options: localVarRequestOptions,
|
|
44838
44922
|
};
|
|
44839
44923
|
},
|
|
44924
|
+
/**
|
|
44925
|
+
* Get location data for engagement configuration
|
|
44926
|
+
* @summary Get location data for engagement configuration
|
|
44927
|
+
* @param {*} [options] Override http request option.
|
|
44928
|
+
* @throws {RequiredError}
|
|
44929
|
+
*/
|
|
44930
|
+
getLocationsForEngagement(options: any = {}): FetchArgs {
|
|
44931
|
+
const localVarPath = `/conversation/locations`;
|
|
44932
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
44933
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
44934
|
+
const localVarHeaderParameter = {} as any;
|
|
44935
|
+
const localVarQueryParameter = {} as any;
|
|
44936
|
+
|
|
44937
|
+
if(configuration && configuration.apiVersion) {
|
|
44938
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
44939
|
+
}
|
|
44940
|
+
|
|
44941
|
+
|
|
44942
|
+
|
|
44943
|
+
// authentication ultraCartOauth required
|
|
44944
|
+
// oauth required
|
|
44945
|
+
if (configuration && configuration.accessToken) {
|
|
44946
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
44947
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_read"])
|
|
44948
|
+
: configuration.accessToken;
|
|
44949
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
44950
|
+
}
|
|
44951
|
+
|
|
44952
|
+
// authentication ultraCartSimpleApiKey required
|
|
44953
|
+
if (configuration && configuration.apiKey) {
|
|
44954
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
44955
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
44956
|
+
: configuration.apiKey;
|
|
44957
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
44958
|
+
}
|
|
44959
|
+
|
|
44960
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
44961
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
44962
|
+
delete localVarUrlObj.search;
|
|
44963
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
44964
|
+
|
|
44965
|
+
return {
|
|
44966
|
+
url: url.format(localVarUrlObj),
|
|
44967
|
+
options: localVarRequestOptions,
|
|
44968
|
+
};
|
|
44969
|
+
},
|
|
44840
44970
|
/**
|
|
44841
44971
|
* Insert a canned message
|
|
44842
44972
|
* @summary Insert a canned message
|
|
@@ -45923,6 +46053,26 @@ export const ConversationApiFp = function(configuration?: Configuration) {
|
|
|
45923
46053
|
});
|
|
45924
46054
|
};
|
|
45925
46055
|
},
|
|
46056
|
+
/**
|
|
46057
|
+
* Get location data for engagement configuration
|
|
46058
|
+
* @summary Get location data for engagement configuration
|
|
46059
|
+
* @param {*} [options] Override http request option.
|
|
46060
|
+
* @throws {RequiredError}
|
|
46061
|
+
*/
|
|
46062
|
+
getLocationsForEngagement(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationLocationsResponse> {
|
|
46063
|
+
const localVarFetchArgs = ConversationApiFetchParamCreator(configuration).getLocationsForEngagement(options);
|
|
46064
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
46065
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
46066
|
+
|
|
46067
|
+
if (response.status >= 200 && response.status < 300) {
|
|
46068
|
+
return response.json();
|
|
46069
|
+
|
|
46070
|
+
} else {
|
|
46071
|
+
throw response;
|
|
46072
|
+
}
|
|
46073
|
+
});
|
|
46074
|
+
};
|
|
46075
|
+
},
|
|
45926
46076
|
/**
|
|
45927
46077
|
* Insert a canned message
|
|
45928
46078
|
* @summary Insert a canned message
|
|
@@ -46377,6 +46527,15 @@ export const ConversationApiFactory = function (configuration?: Configuration, f
|
|
|
46377
46527
|
getConversationsSearch(search_request: ConversationSearchRequest, options?: any) {
|
|
46378
46528
|
return ConversationApiFp(configuration).getConversationsSearch(search_request, options)(fetch, basePath);
|
|
46379
46529
|
},
|
|
46530
|
+
/**
|
|
46531
|
+
* Get location data for engagement configuration
|
|
46532
|
+
* @summary Get location data for engagement configuration
|
|
46533
|
+
* @param {*} [options] Override http request option.
|
|
46534
|
+
* @throws {RequiredError}
|
|
46535
|
+
*/
|
|
46536
|
+
getLocationsForEngagement(options?: any) {
|
|
46537
|
+
return ConversationApiFp(configuration).getLocationsForEngagement(options)(fetch, basePath);
|
|
46538
|
+
},
|
|
46380
46539
|
/**
|
|
46381
46540
|
* Insert a canned message
|
|
46382
46541
|
* @summary Insert a canned message
|
|
@@ -46699,6 +46858,15 @@ export interface ConversationApiInterface {
|
|
|
46699
46858
|
*/
|
|
46700
46859
|
getConversationsSearch(search_request: ConversationSearchRequest, options?: any): Promise<ConversationSearchResponse>;
|
|
46701
46860
|
|
|
46861
|
+
/**
|
|
46862
|
+
* Get location data for engagement configuration
|
|
46863
|
+
* @summary Get location data for engagement configuration
|
|
46864
|
+
* @param {*} [options] Override http request option.
|
|
46865
|
+
* @throws {RequiredError}
|
|
46866
|
+
* @memberof ConversationApiInterface
|
|
46867
|
+
*/
|
|
46868
|
+
getLocationsForEngagement(options?: any): Promise<ConversationLocationsResponse>;
|
|
46869
|
+
|
|
46702
46870
|
/**
|
|
46703
46871
|
* Insert a canned message
|
|
46704
46872
|
* @summary Insert a canned message
|
|
@@ -47059,6 +47227,17 @@ export class ConversationApi extends BaseAPI implements ConversationApiInterface
|
|
|
47059
47227
|
return ConversationApiFp(this.configuration).getConversationsSearch(search_request, options)(this.fetch, this.basePath);
|
|
47060
47228
|
}
|
|
47061
47229
|
|
|
47230
|
+
/**
|
|
47231
|
+
* Get location data for engagement configuration
|
|
47232
|
+
* @summary Get location data for engagement configuration
|
|
47233
|
+
* @param {*} [options] Override http request option.
|
|
47234
|
+
* @throws {RequiredError}
|
|
47235
|
+
* @memberof ConversationApi
|
|
47236
|
+
*/
|
|
47237
|
+
public getLocationsForEngagement(options?: any) {
|
|
47238
|
+
return ConversationApiFp(this.configuration).getLocationsForEngagement(options)(this.fetch, this.basePath);
|
|
47239
|
+
}
|
|
47240
|
+
|
|
47062
47241
|
/**
|
|
47063
47242
|
* Insert a canned message
|
|
47064
47243
|
* @summary Insert a canned message
|
package/dist/api.d.ts
CHANGED
|
@@ -7545,6 +7545,87 @@ export interface ConversationJoinRequest {
|
|
|
7545
7545
|
*/
|
|
7546
7546
|
participant_language_iso_code?: string;
|
|
7547
7547
|
}
|
|
7548
|
+
/**
|
|
7549
|
+
*
|
|
7550
|
+
* @export
|
|
7551
|
+
* @interface ConversationLocationCountry
|
|
7552
|
+
*/
|
|
7553
|
+
export interface ConversationLocationCountry {
|
|
7554
|
+
/**
|
|
7555
|
+
*
|
|
7556
|
+
* @type {string}
|
|
7557
|
+
* @memberof ConversationLocationCountry
|
|
7558
|
+
*/
|
|
7559
|
+
iso2?: string;
|
|
7560
|
+
/**
|
|
7561
|
+
*
|
|
7562
|
+
* @type {string}
|
|
7563
|
+
* @memberof ConversationLocationCountry
|
|
7564
|
+
*/
|
|
7565
|
+
name?: string;
|
|
7566
|
+
/**
|
|
7567
|
+
*
|
|
7568
|
+
* @type {Array<ConversationLocationStateProvince>}
|
|
7569
|
+
* @memberof ConversationLocationCountry
|
|
7570
|
+
*/
|
|
7571
|
+
state_provinces?: Array<ConversationLocationStateProvince>;
|
|
7572
|
+
}
|
|
7573
|
+
/**
|
|
7574
|
+
*
|
|
7575
|
+
* @export
|
|
7576
|
+
* @interface ConversationLocationStateProvince
|
|
7577
|
+
*/
|
|
7578
|
+
export interface ConversationLocationStateProvince {
|
|
7579
|
+
/**
|
|
7580
|
+
*
|
|
7581
|
+
* @type {string}
|
|
7582
|
+
* @memberof ConversationLocationStateProvince
|
|
7583
|
+
*/
|
|
7584
|
+
abbreviation?: string;
|
|
7585
|
+
/**
|
|
7586
|
+
*
|
|
7587
|
+
* @type {string}
|
|
7588
|
+
* @memberof ConversationLocationStateProvince
|
|
7589
|
+
*/
|
|
7590
|
+
name?: string;
|
|
7591
|
+
}
|
|
7592
|
+
/**
|
|
7593
|
+
*
|
|
7594
|
+
* @export
|
|
7595
|
+
* @interface ConversationLocationsResponse
|
|
7596
|
+
*/
|
|
7597
|
+
export interface ConversationLocationsResponse {
|
|
7598
|
+
/**
|
|
7599
|
+
*
|
|
7600
|
+
* @type {Array<ConversationLocationCountry>}
|
|
7601
|
+
* @memberof ConversationLocationsResponse
|
|
7602
|
+
*/
|
|
7603
|
+
countries?: Array<ConversationLocationCountry>;
|
|
7604
|
+
/**
|
|
7605
|
+
*
|
|
7606
|
+
* @type {ModelError}
|
|
7607
|
+
* @memberof ConversationLocationsResponse
|
|
7608
|
+
*/
|
|
7609
|
+
error?: ModelError;
|
|
7610
|
+
/**
|
|
7611
|
+
*
|
|
7612
|
+
* @type {ResponseMetadata}
|
|
7613
|
+
* @memberof ConversationLocationsResponse
|
|
7614
|
+
*/
|
|
7615
|
+
metadata?: ResponseMetadata;
|
|
7616
|
+
/**
|
|
7617
|
+
* Indicates if API call was successful
|
|
7618
|
+
* @type {boolean}
|
|
7619
|
+
* @memberof ConversationLocationsResponse
|
|
7620
|
+
*/
|
|
7621
|
+
success?: boolean;
|
|
7622
|
+
/**
|
|
7623
|
+
*
|
|
7624
|
+
* @type {Warning}
|
|
7625
|
+
* @memberof ConversationLocationsResponse
|
|
7626
|
+
*/
|
|
7627
|
+
warning?: Warning;
|
|
7628
|
+
}
|
|
7548
7629
|
/**
|
|
7549
7630
|
*
|
|
7550
7631
|
* @export
|
|
@@ -39814,6 +39895,13 @@ export declare const ConversationApiFetchParamCreator: (configuration?: Configur
|
|
|
39814
39895
|
* @throws {RequiredError}
|
|
39815
39896
|
*/
|
|
39816
39897
|
getConversationsSearch(search_request: ConversationSearchRequest, options?: any): FetchArgs;
|
|
39898
|
+
/**
|
|
39899
|
+
* Get location data for engagement configuration
|
|
39900
|
+
* @summary Get location data for engagement configuration
|
|
39901
|
+
* @param {*} [options] Override http request option.
|
|
39902
|
+
* @throws {RequiredError}
|
|
39903
|
+
*/
|
|
39904
|
+
getLocationsForEngagement(options?: any): FetchArgs;
|
|
39817
39905
|
/**
|
|
39818
39906
|
* Insert a canned message
|
|
39819
39907
|
* @summary Insert a canned message
|
|
@@ -40071,6 +40159,13 @@ export declare const ConversationApiFp: (configuration?: Configuration) => {
|
|
|
40071
40159
|
* @throws {RequiredError}
|
|
40072
40160
|
*/
|
|
40073
40161
|
getConversationsSearch(search_request: ConversationSearchRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationSearchResponse>;
|
|
40162
|
+
/**
|
|
40163
|
+
* Get location data for engagement configuration
|
|
40164
|
+
* @summary Get location data for engagement configuration
|
|
40165
|
+
* @param {*} [options] Override http request option.
|
|
40166
|
+
* @throws {RequiredError}
|
|
40167
|
+
*/
|
|
40168
|
+
getLocationsForEngagement(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<ConversationLocationsResponse>;
|
|
40074
40169
|
/**
|
|
40075
40170
|
* Insert a canned message
|
|
40076
40171
|
* @summary Insert a canned message
|
|
@@ -40328,6 +40423,13 @@ export declare const ConversationApiFactory: (configuration?: Configuration, fet
|
|
|
40328
40423
|
* @throws {RequiredError}
|
|
40329
40424
|
*/
|
|
40330
40425
|
getConversationsSearch(search_request: ConversationSearchRequest, options?: any): Promise<ConversationSearchResponse>;
|
|
40426
|
+
/**
|
|
40427
|
+
* Get location data for engagement configuration
|
|
40428
|
+
* @summary Get location data for engagement configuration
|
|
40429
|
+
* @param {*} [options] Override http request option.
|
|
40430
|
+
* @throws {RequiredError}
|
|
40431
|
+
*/
|
|
40432
|
+
getLocationsForEngagement(options?: any): Promise<ConversationLocationsResponse>;
|
|
40331
40433
|
/**
|
|
40332
40434
|
* Insert a canned message
|
|
40333
40435
|
* @summary Insert a canned message
|
|
@@ -40605,6 +40707,14 @@ export interface ConversationApiInterface {
|
|
|
40605
40707
|
* @memberof ConversationApiInterface
|
|
40606
40708
|
*/
|
|
40607
40709
|
getConversationsSearch(search_request: ConversationSearchRequest, options?: any): Promise<ConversationSearchResponse>;
|
|
40710
|
+
/**
|
|
40711
|
+
* Get location data for engagement configuration
|
|
40712
|
+
* @summary Get location data for engagement configuration
|
|
40713
|
+
* @param {*} [options] Override http request option.
|
|
40714
|
+
* @throws {RequiredError}
|
|
40715
|
+
* @memberof ConversationApiInterface
|
|
40716
|
+
*/
|
|
40717
|
+
getLocationsForEngagement(options?: any): Promise<ConversationLocationsResponse>;
|
|
40608
40718
|
/**
|
|
40609
40719
|
* Insert a canned message
|
|
40610
40720
|
* @summary Insert a canned message
|
|
@@ -40895,6 +41005,14 @@ export declare class ConversationApi extends BaseAPI implements ConversationApiI
|
|
|
40895
41005
|
* @memberof ConversationApi
|
|
40896
41006
|
*/
|
|
40897
41007
|
getConversationsSearch(search_request: ConversationSearchRequest, options?: any): Promise<ConversationSearchResponse>;
|
|
41008
|
+
/**
|
|
41009
|
+
* Get location data for engagement configuration
|
|
41010
|
+
* @summary Get location data for engagement configuration
|
|
41011
|
+
* @param {*} [options] Override http request option.
|
|
41012
|
+
* @throws {RequiredError}
|
|
41013
|
+
* @memberof ConversationApi
|
|
41014
|
+
*/
|
|
41015
|
+
getLocationsForEngagement(options?: any): Promise<ConversationLocationsResponse>;
|
|
40898
41016
|
/**
|
|
40899
41017
|
* Insert a canned message
|
|
40900
41018
|
* @summary Insert a canned message
|
package/dist/api.js
CHANGED
|
@@ -7009,6 +7009,46 @@ var ConversationApiFetchParamCreator = function (configuration) {
|
|
|
7009
7009
|
options: localVarRequestOptions,
|
|
7010
7010
|
};
|
|
7011
7011
|
},
|
|
7012
|
+
/**
|
|
7013
|
+
* Get location data for engagement configuration
|
|
7014
|
+
* @summary Get location data for engagement configuration
|
|
7015
|
+
* @param {*} [options] Override http request option.
|
|
7016
|
+
* @throws {RequiredError}
|
|
7017
|
+
*/
|
|
7018
|
+
getLocationsForEngagement: function (options) {
|
|
7019
|
+
if (options === void 0) { options = {}; }
|
|
7020
|
+
var localVarPath = "/conversation/locations";
|
|
7021
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
7022
|
+
var localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
7023
|
+
var localVarHeaderParameter = {};
|
|
7024
|
+
var localVarQueryParameter = {};
|
|
7025
|
+
if (configuration && configuration.apiVersion) {
|
|
7026
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
7027
|
+
}
|
|
7028
|
+
// authentication ultraCartOauth required
|
|
7029
|
+
// oauth required
|
|
7030
|
+
if (configuration && configuration.accessToken) {
|
|
7031
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
7032
|
+
? configuration.accessToken("ultraCartOauth", ["conversation_read"])
|
|
7033
|
+
: configuration.accessToken;
|
|
7034
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
7035
|
+
}
|
|
7036
|
+
// authentication ultraCartSimpleApiKey required
|
|
7037
|
+
if (configuration && configuration.apiKey) {
|
|
7038
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
7039
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
7040
|
+
: configuration.apiKey;
|
|
7041
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
7042
|
+
}
|
|
7043
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
7044
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
7045
|
+
delete localVarUrlObj.search;
|
|
7046
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
7047
|
+
return {
|
|
7048
|
+
url: url.format(localVarUrlObj),
|
|
7049
|
+
options: localVarRequestOptions,
|
|
7050
|
+
};
|
|
7051
|
+
},
|
|
7012
7052
|
/**
|
|
7013
7053
|
* Insert a canned message
|
|
7014
7054
|
* @summary Insert a canned message
|
|
@@ -8032,6 +8072,27 @@ var ConversationApiFp = function (configuration) {
|
|
|
8032
8072
|
});
|
|
8033
8073
|
};
|
|
8034
8074
|
},
|
|
8075
|
+
/**
|
|
8076
|
+
* Get location data for engagement configuration
|
|
8077
|
+
* @summary Get location data for engagement configuration
|
|
8078
|
+
* @param {*} [options] Override http request option.
|
|
8079
|
+
* @throws {RequiredError}
|
|
8080
|
+
*/
|
|
8081
|
+
getLocationsForEngagement: function (options) {
|
|
8082
|
+
var localVarFetchArgs = (0, exports.ConversationApiFetchParamCreator)(configuration).getLocationsForEngagement(options);
|
|
8083
|
+
return function (fetch, basePath) {
|
|
8084
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
8085
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
8086
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
8087
|
+
if (response.status >= 200 && response.status < 300) {
|
|
8088
|
+
return response.json();
|
|
8089
|
+
}
|
|
8090
|
+
else {
|
|
8091
|
+
throw response;
|
|
8092
|
+
}
|
|
8093
|
+
});
|
|
8094
|
+
};
|
|
8095
|
+
},
|
|
8035
8096
|
/**
|
|
8036
8097
|
* Insert a canned message
|
|
8037
8098
|
* @summary Insert a canned message
|
|
@@ -8498,6 +8559,15 @@ var ConversationApiFactory = function (configuration, fetch, basePath) {
|
|
|
8498
8559
|
getConversationsSearch: function (search_request, options) {
|
|
8499
8560
|
return (0, exports.ConversationApiFp)(configuration).getConversationsSearch(search_request, options)(fetch, basePath);
|
|
8500
8561
|
},
|
|
8562
|
+
/**
|
|
8563
|
+
* Get location data for engagement configuration
|
|
8564
|
+
* @summary Get location data for engagement configuration
|
|
8565
|
+
* @param {*} [options] Override http request option.
|
|
8566
|
+
* @throws {RequiredError}
|
|
8567
|
+
*/
|
|
8568
|
+
getLocationsForEngagement: function (options) {
|
|
8569
|
+
return (0, exports.ConversationApiFp)(configuration).getLocationsForEngagement(options)(fetch, basePath);
|
|
8570
|
+
},
|
|
8501
8571
|
/**
|
|
8502
8572
|
* Insert a canned message
|
|
8503
8573
|
* @summary Insert a canned message
|
|
@@ -8844,6 +8914,16 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
8844
8914
|
ConversationApi.prototype.getConversationsSearch = function (search_request, options) {
|
|
8845
8915
|
return (0, exports.ConversationApiFp)(this.configuration).getConversationsSearch(search_request, options)(this.fetch, this.basePath);
|
|
8846
8916
|
};
|
|
8917
|
+
/**
|
|
8918
|
+
* Get location data for engagement configuration
|
|
8919
|
+
* @summary Get location data for engagement configuration
|
|
8920
|
+
* @param {*} [options] Override http request option.
|
|
8921
|
+
* @throws {RequiredError}
|
|
8922
|
+
* @memberof ConversationApi
|
|
8923
|
+
*/
|
|
8924
|
+
ConversationApi.prototype.getLocationsForEngagement = function (options) {
|
|
8925
|
+
return (0, exports.ConversationApiFp)(this.configuration).getLocationsForEngagement(options)(this.fetch, this.basePath);
|
|
8926
|
+
};
|
|
8847
8927
|
/**
|
|
8848
8928
|
* Insert a canned message
|
|
8849
8929
|
* @summary Insert a canned message
|